tweb/public/033d698464b3de4b08fa.worker.js

13 lines
340 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

!function(e){var t={};function a(n){if(t[n])return t[n].exports;var s=t[n]={i:n,l:!1,exports:{}};return e[n].call(s.exports,s,s.exports,a),s.l=!0,s.exports}a.m=e,a.c=t,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var s in e)a.d(n,s,function(t){return e[t]}.bind(null,s));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=18)}([function(e,t,a){"use strict";
/*!
* Webogram v0.7.0 - messaging web application for MTProto
* https://github.com/zhukov/webogram
* Copyright (C) 2014 Igor Zhukov <igor.beatle@gmail.com>
* https://github.com/zhukov/webogram/blob/master/LICENSE
*/Object.defineProperty(t,"__esModule",{value:!0}),t.nextRandomInt=t.addPadding=t.longFromInts=t.longToBytes=t.bytesToWordss=t.bytesFromWordss=t.bytesFromWords=t.longToInts=t.bufferConcats=t.bufferConcat=t.bytesFromArrayBuffer=t.convertToByteArray=t.convertToUint8Array=t.convertToArrayBuffer=t.bytesToArrayBuffer=t.bytesFromBigInt=t.bytesXor=t.bytesCmp=t.blobSafeMimeType=t.blobConstruct=t.dataUrlToBlob=t.base64ToBlob=t.uint6ToBase64=t.bytesToBase64=t.bytesFromHex=t.bytesToHex=t.bigStringInt=t.bigint=t.isObject=t.dT=void 0;const n=a(5);var s=Date.now();function r(e){return new n.BigInteger(e.toString(16),16)}function i(e){return new n.BigInteger(e,10)}function p(e){return e<26?e+65:e<52?e+71:e<62?e-4:62===e?43:63===e?47:65}function o(e,t){for(var a=atob(e),n=a.length,s=Math.ceil(n/1024),r=new Array(s),i=0;i<s;++i){for(var p=1024*i,o=Math.min(p+1024,n),d=new Array(o-p),y=p,c=0;y<o;++c,++y)d[c]=a[y].charCodeAt(0);r[i]=new Uint8Array(d)}return m(r,t)}function m(e,t=""){var a,n=d(t);try{a=new Blob(e,{type:n})}catch(t){var s=new BlobBuilder;e.forEach((function(e){s.append(e)})),a=s.getBlob(n)}return a}function d(e){return-1===["image/jpeg","image/png","image/gif","image/webp","image/bmp","video/mp4","video/webm","video/quicktime","audio/ogg","audio/mpeg","audio/mp4"].indexOf(e)?"application/octet-stream":e}function y(e){return new Uint8Array(e).buffer}function c(e){return void 0!==e.buffer?e:new Uint8Array(e)}function l(e,t){var a=e.byteLength||e.length,n=t.byteLength||t.length,s=new Uint8Array(a+n);return s.set(e instanceof ArrayBuffer?new Uint8Array(e):e,0),s.set(t instanceof ArrayBuffer?new Uint8Array(t):t,a),s.buffer}function g(e){var t=i(e).divideAndRemainder(r(4294967296));return[t[0].intValue(),t[1].intValue()]}function u(e){for(var t=e.words,a=e.sigBytes,n=[],s=0;s<a;s++)n.push(t[s>>>2]>>>24-s%4*8&255);return n}t.dT=function(){return"["+((Date.now()-s)/1e3).toFixed(3)+"]"},t.isObject=function(e){return"object"==typeof e&&null!==e},t.bigint=r,t.bigStringInt=i,t.bytesToHex=function(e){e=e||[];for(var t=[],a=0;a<e.length;a++)t.push((e[a]<16?"0":"")+(e[a]||0).toString(16));return t.join("")},t.bytesFromHex=function(e){var t,a=e.length,n=0,s=[];for(e.length%2&&(s.push(parseInt(e.charAt(0),16)),n++),t=n;t<a;t+=2)s.push(parseInt(e.substr(t,2),16));return s},t.bytesToBase64=function(e){for(var t,a="",n=e.length,s=0,r=0;r<n;r++)t=r%3,s|=e[r]<<(16>>>t&24),2!==t&&n-r!=1||(a+=String.fromCharCode(p(s>>>18&63),p(s>>>12&63),p(s>>>6&63),p(63&s)),s=0);return a.replace(/A(?=A$|$)/g,"=")},t.uint6ToBase64=p,t.base64ToBlob=o,t.dataUrlToBlob=function(e){var t=e.split(",");return o(t[1],t[0].split(":")[1].split(";")[0])},t.blobConstruct=m,t.blobSafeMimeType=d,t.bytesCmp=function(e,t){var a=e.length;if(a!=t.length)return!1;for(var n=0;n<a;n++)if(e[n]!=t[n])return!1;return!0},t.bytesXor=function(e,t){for(var a=e.length,n=[],s=0;s<a;++s)n[s]=e[s]^t[s];return n},t.bytesFromBigInt=function(e,t){var a=e.toByteArray();if(t&&a.length<t){for(var n=[],s=0,r=t-a.length;s<r;s++)n[s]=0;a=a instanceof ArrayBuffer?l(n,a):n.concat(a)}else for(;!a[0]&&(!t||a.length>t);)a=a.slice(1);return a},t.bytesToArrayBuffer=y,t.convertToArrayBuffer=function(e){return e instanceof ArrayBuffer?e:void 0!==e.buffer&&e.buffer.byteLength==e.length*e.BYTES_PER_ELEMENT?e.buffer:y(e)},t.convertToUint8Array=c,t.convertToByteArray=function(e){if(Array.isArray(e))return e;for(var t=[],a=0,n=(e=c(e)).length;a<n;a++)t.push(e[a]);return t},t.bytesFromArrayBuffer=function(e){for(var t=e.byteLength,a=new Uint8Array(e),n=[],s=0;s<t;++s)n[s]=a[s];return n},t.bufferConcat=l,t.bufferConcats=function(...e){let t=0;e.forEach(e=>t+=e.byteLength||e.length);var a=new Uint8Array(t);let n=0;return e.forEach(e=>{a.set(e instanceof ArrayBuffer?new Uint8Array(e):e,n),n+=e.byteLength||e.length}),a},t.longToInts=g,t.bytesFromWords=u,t.bytesFromWordss=function(e){for(var t=[],a=0;a<4*e.length;a++)t.push(e[a>>>2]>>>24-a%4*8&255);return t},t.bytesToWordss=function(e){let t;t=e instanceof ArrayBuffer?new Uint8Array(e):e;var a,n=t.length,s=[];for(a=0;a<n;a++)s[a>>>2]|=t[a]<<24-a%4*8;return new Uint32Array(s)},t.longToBytes=function(e){return u({words:g(e),sigBytes:8}).reverse()},t.longFromInts=function(e,t){return r(e).shiftLeft(32).add(r(t)).toString(10)},t.addPadding=function(e,t=16,a,s=!1,r=!1){let i=t-(e.byteLength||e.length)%t;if(i>0&&(i<t||s)){let t=new Array(i);if(a)for(let e=0;e<i;e++)t[e]=0;else(new n.SecureRandom).nextBytes(t);if(e instanceof ArrayBuffer)e=r?l(t,e):l(e,t);else if(e instanceof Uint8Array){let a=new Uint8Array(e.length+t.length);r?(a.set(t),a.set(e,t.length)):(a.set(e),a.set(t,e.length)),e=a}else e=r?t.concat(e):e.concat(t)}return e},t.nextRandomInt=function(e){return Math.floor(Math.random()*e)}},function(e,t,a){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,a,n){void 0===n&&(n=a),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[a]}})}:function(e,t,a,n){void 0===n&&(n=a),e[n]=t[a]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.hasOwnProperty.call(e,a)&&n(t,e,a);return s(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const p=a(0),o=i(a(23));class m extends o.default{constructor(){super(),this.webWorker=!1,this.taskID=0,this.awaiting={},this.pending=[],this.debug=!1,this.utils={},console.log(p.dT(),"CW constructor"),Promise.all([Promise.resolve().then(()=>r(a(12))).then(e=>{Object.assign(this.utils,{"sha1-hash":e.sha1HashSync,"sha256-hash":e.sha256HashSync,pbkdf2:e.hash_pbkdf2,"aes-encrypt":e.aesEncryptSync,"aes-decrypt":e.aesDecryptSync,"rsa-encrypt":e.rsaEncrypt,factorize:e.pqPrimeFactorization,"mod-pow":e.bytesModPow,unzip:e.gzipUncompress})})])}finalizeTask(e,t){let a=this.awaiting[e];void 0!==a&&(this.debug&&console.log(p.dT(),"CW done",a.taskName,t),a.resolve(t),delete this.awaiting[e])}performTaskWorker(e,...t){return this.debug&&console.log(p.dT(),"CW start",e,t),Promise.resolve(this.utils[e](...t))}releasePending(){this.webWorker&&(this.pending.forEach(e=>{this.webWorker.postMessage(e)}),this.pending.length=0)}}const d=new m;t.default=d},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=a(3);const s=new class{constructor(){this.keyPrefix="",this.noPrefix=!1,this.cache={},this.useLs=!0}storageGetPrefix(){return this.noPrefix?(this.noPrefix=!1,""):this.keyPrefix}get(e,t){var a=!1;Array.isArray(e)||(t=(e=Array.prototype.slice.call(arguments)).pop(),a=1==e.length);var n,s,r,i=[],p=!0,o=this.storageGetPrefix();for(s=0;s<e.length;s++)if("xt_"!=(r=e[s]=o+e[s]).substr(0,3)&&void 0!==this.cache[r])i.push(this.cache[r]);else if(this.useLs){try{n=localStorage.getItem(r)}catch(e){this.useLs=!1}try{n=null!=n&&JSON.parse(n)}catch(e){n=!1}i.push(this.cache[r]=n)}else p=!1;if(p)return t(a?i[0]:i)}set(e,t){var a,n,s={},r=this.storageGetPrefix();for(a in e)if(e.hasOwnProperty(a))if(n=e[a],a=r+a,this.cache[a]=n,n=JSON.stringify(n,(e,t)=>{if("downloaded"!=e&&("url"!=e||0!==t.indexOf("blob:")))return t}),this.useLs)try{localStorage.setItem(a,n)}catch(e){this.useLs=!1}else s[a]=n;this.useLs&&t&&t()}remove(e,t){Array.isArray(e)||"function"==typeof(e=Array.prototype.slice.call(arguments))[e.length-1]&&(t=e.pop());var a,n,s=this.storageGetPrefix();for(a=0;a<e.length;a++)if(n=e[a]=s+e[a],delete this.cache[n],this.useLs)try{localStorage.removeItem(n)}catch(e){this.useLs=!1}t&&t()}clear(e){if(this.useLs)try{localStorage.clear()}catch(e){this.useLs=!1}this.cache={},e()}};t.default=new class{constructor(){this.taskID=0,this.tasks={},n.Modes.test&&this.setPrefix("t_"),this.isWebWorker="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope}setPrefix(e){s.keyPrefix=e}noPrefix(){s.noPrefix=!0}finishTask(e,t){this.tasks[e](t),delete this.tasks[e]}proxy(e,...t){return new Promise((a,n)=>{if(this.isWebWorker)this.tasks[this.taskID]=a,self.postMessage({useLs:!0,task:e,taskID:this.taskID,args:t}),this.taskID++;else{let n=Array.prototype.slice.call(t);n.push(e=>{a(e)}),s[e].apply(s,n)}})}get(...e){return this.proxy("get",...e)}set(...e){return this.proxy("set",...e)}remove(...e){return this.proxy("remove",...e)}clear(...e){return this.proxy("clear",...e)}}},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Modes=t.App=void 0,t.App={id:1025907,hash:"452b0359b988148995f22ff0f4229750",version:"0.3.0",domains:[],baseDcID:2},t.Modes={test:location.search.indexOf("test=1")>0,debug:location.search.indexOf("debug=1")>0,http:!1,ssl:!0,multipleConnections:!0}},function(e,t,a){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.logger=t.LogLevels=void 0,function(e){e[e.log=1]="log",e[e.warn=2]="warn",e[e.error=4]="error",e[e.debug=8]="debug"}(n=t.LogLevels||(t.LogLevels={}));var s=Date.now();function r(){return"["+((Date.now()-s)/1e3).toFixed(3)+"]"}t.logger=function(e,t=n.log|n.warn|n.error){function a(...a){return t&n.log&&console.log(r(),"["+e+"]:",...a)}return t=n.error,a.warn=function(...a){return t&n.warn&&console.warn(r(),"["+e+"]:",...a)},a.info=function(...a){return t&n.log&&console.info(r(),"["+e+"]:",...a)},a.error=function(...a){return t&n.error&&console.error(r(),"["+e+"]:",...a)},a.trace=function(...a){return t&n.log&&console.trace(r(),"["+e+"]:",...a)},a.debug=function(...a){return t&n.debug&&console.debug(r(),"["+e+"]:",...a)},a}},function(e,t,a){(function(){var t;function a(e,t,a){null!=e&&("number"==typeof e?this.fromNumber(e,t,a):null==t&&"string"!=typeof e?this.fromString(e,256):this.fromString(e,t))}function n(){return new a(null)}var s="undefined"!=typeof navigator;s&&"Microsoft Internet Explorer"==navigator.appName?(a.prototype.am=function(e,t,a,n,s,r){for(var i=32767&t,p=t>>15;--r>=0;){var o=32767&this[e],m=this[e++]>>15,d=p*o+m*i;s=((o=i*o+((32767&d)<<15)+a[n]+(1073741823&s))>>>30)+(d>>>15)+p*m+(s>>>30),a[n++]=1073741823&o}return s},t=30):s&&"Netscape"!=navigator.appName?(a.prototype.am=function(e,t,a,n,s,r){for(;--r>=0;){var i=t*this[e++]+a[n]+s;s=Math.floor(i/67108864),a[n++]=67108863&i}return s},t=26):(a.prototype.am=function(e,t,a,n,s,r){for(var i=16383&t,p=t>>14;--r>=0;){var o=16383&this[e],m=this[e++]>>14,d=p*o+m*i;s=((o=i*o+((16383&d)<<14)+a[n]+s)>>28)+(d>>14)+p*m,a[n++]=268435455&o}return s},t=28),a.prototype.DB=t,a.prototype.DM=(1<<t)-1,a.prototype.DV=1<<t;a.prototype.FV=Math.pow(2,52),a.prototype.F1=52-t,a.prototype.F2=2*t-52;var r,i,p=new Array;for(r="0".charCodeAt(0),i=0;i<=9;++i)p[r++]=i;for(r="a".charCodeAt(0),i=10;i<36;++i)p[r++]=i;for(r="A".charCodeAt(0),i=10;i<36;++i)p[r++]=i;function o(e){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(e)}function m(e,t){var a=p[e.charCodeAt(t)];return null==a?-1:a}function d(e){var t=n();return t.fromInt(e),t}function y(e){var t,a=1;return 0!=(t=e>>>16)&&(e=t,a+=16),0!=(t=e>>8)&&(e=t,a+=8),0!=(t=e>>4)&&(e=t,a+=4),0!=(t=e>>2)&&(e=t,a+=2),0!=(t=e>>1)&&(e=t,a+=1),a}function c(e){this.m=e}function l(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}function g(e,t){return e&t}function u(e,t){return e|t}function h(e,t){return e^t}function f(e,t){return e&~t}function _(e){if(0==e)return-1;var t=0;return 0==(65535&e)&&(e>>=16,t+=16),0==(255&e)&&(e>>=8,t+=8),0==(15&e)&&(e>>=4,t+=4),0==(3&e)&&(e>>=2,t+=2),0==(1&e)&&++t,t}function b(e){for(var t=0;0!=e;)e&=e-1,++t;return t}function v(){}function w(e){return e}function P(e){this.r2=n(),this.q3=n(),a.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e),this.m=e}c.prototype.convert=function(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e},c.prototype.revert=function(e){return e},c.prototype.reduce=function(e){e.divRemTo(this.m,null,e)},c.prototype.mulTo=function(e,t,a){e.multiplyTo(t,a),this.reduce(a)},c.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},l.prototype.convert=function(e){var t=n();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(a.ZERO)>0&&this.m.subTo(t,t),t},l.prototype.revert=function(e){var t=n();return e.copyTo(t),this.reduce(t),t},l.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t<this.m.t;++t){var a=32767&e[t],n=a*this.mpl+((a*this.mph+(e[t]>>15)*this.mpl&this.um)<<15)&e.DM;for(e[a=t+this.m.t]+=this.m.am(0,n,e,t,0,this.m.t);e[a]>=e.DV;)e[a]-=e.DV,e[++a]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},l.prototype.mulTo=function(e,t,a){e.multiplyTo(t,a),this.reduce(a)},l.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},a.prototype.copyTo=function(e){for(var t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s},a.prototype.fromInt=function(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0},a.prototype.fromString=function(e,t){var n;if(16==t)n=4;else if(8==t)n=3;else if(256==t)n=8;else if(2==t)n=1;else if(32==t)n=5;else{if(4!=t)return void this.fromRadix(e,t);n=2}this.t=0,this.s=0;for(var s=e.length,r=!1,i=0;--s>=0;){var p=8==n?255&e[s]:m(e,s);p<0?"-"==e.charAt(s)&&(r=!0):(r=!1,0==i?this[this.t++]=p:i+n>this.DB?(this[this.t-1]|=(p&(1<<this.DB-i)-1)<<i,this[this.t++]=p>>this.DB-i):this[this.t-1]|=p<<i,(i+=n)>=this.DB&&(i-=this.DB))}8==n&&0!=(128&e[0])&&(this.s=-1,i>0&&(this[this.t-1]|=(1<<this.DB-i)-1<<i)),this.clamp(),r&&a.ZERO.subTo(this,this)},a.prototype.clamp=function(){for(var e=this.s&this.DM;this.t>0&&this[this.t-1]==e;)--this.t},a.prototype.dlShiftTo=function(e,t){var a;for(a=this.t-1;a>=0;--a)t[a+e]=this[a];for(a=e-1;a>=0;--a)t[a]=0;t.t=this.t+e,t.s=this.s},a.prototype.drShiftTo=function(e,t){for(var a=e;a<this.t;++a)t[a-e]=this[a];t.t=Math.max(this.t-e,0),t.s=this.s},a.prototype.lShiftTo=function(e,t){var a,n=e%this.DB,s=this.DB-n,r=(1<<s)-1,i=Math.floor(e/this.DB),p=this.s<<n&this.DM;for(a=this.t-1;a>=0;--a)t[a+i+1]=this[a]>>s|p,p=(this[a]&r)<<n;for(a=i-1;a>=0;--a)t[a]=0;t[i]=p,t.t=this.t+i+1,t.s=this.s,t.clamp()},a.prototype.rShiftTo=function(e,t){t.s=this.s;var a=Math.floor(e/this.DB);if(a>=this.t)t.t=0;else{var n=e%this.DB,s=this.DB-n,r=(1<<n)-1;t[0]=this[a]>>n;for(var i=a+1;i<this.t;++i)t[i-a-1]|=(this[i]&r)<<s,t[i-a]=this[i]>>n;n>0&&(t[this.t-a-1]|=(this.s&r)<<s),t.t=this.t-a,t.clamp()}},a.prototype.subTo=function(e,t){for(var a=0,n=0,s=Math.min(e.t,this.t);a<s;)n+=this[a]-e[a],t[a++]=n&this.DM,n>>=this.DB;if(e.t<this.t){for(n-=e.s;a<this.t;)n+=this[a],t[a++]=n&this.DM,n>>=this.DB;n+=this.s}else{for(n+=this.s;a<e.t;)n-=e[a],t[a++]=n&this.DM,n>>=this.DB;n-=e.s}t.s=n<0?-1:0,n<-1?t[a++]=this.DV+n:n>0&&(t[a++]=n),t.t=a,t.clamp()},a.prototype.multiplyTo=function(e,t){var n=this.abs(),s=e.abs(),r=n.t;for(t.t=r+s.t;--r>=0;)t[r]=0;for(r=0;r<s.t;++r)t[r+n.t]=n.am(0,s[r],t,r,0,n.t);t.s=0,t.clamp(),this.s!=e.s&&a.ZERO.subTo(t,t)},a.prototype.squareTo=function(e){for(var t=this.abs(),a=e.t=2*t.t;--a>=0;)e[a]=0;for(a=0;a<t.t-1;++a){var n=t.am(a,t[a],e,2*a,0,1);(e[a+t.t]+=t.am(a+1,2*t[a],e,2*a+1,n,t.t-a-1))>=t.DV&&(e[a+t.t]-=t.DV,e[a+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(a,t[a],e,2*a,0,1)),e.s=0,e.clamp()},a.prototype.divRemTo=function(e,t,s){var r=e.abs();if(!(r.t<=0)){var i=this.abs();if(i.t<r.t)return null!=t&&t.fromInt(0),void(null!=s&&this.copyTo(s));null==s&&(s=n());var p=n(),o=this.s,m=e.s,d=this.DB-y(r[r.t-1]);d>0?(r.lShiftTo(d,p),i.lShiftTo(d,s)):(r.copyTo(p),i.copyTo(s));var c=p.t,l=p[c-1];if(0!=l){var g=l*(1<<this.F1)+(c>1?p[c-2]>>this.F2:0),u=this.FV/g,h=(1<<this.F1)/g,f=1<<this.F2,_=s.t,b=_-c,v=null==t?n():t;for(p.dlShiftTo(b,v),s.compareTo(v)>=0&&(s[s.t++]=1,s.subTo(v,s)),a.ONE.dlShiftTo(c,v),v.subTo(p,p);p.t<c;)p[p.t++]=0;for(;--b>=0;){var w=s[--_]==l?this.DM:Math.floor(s[_]*u+(s[_-1]+f)*h);if((s[_]+=p.am(0,w,s,b,0,c))<w)for(p.dlShiftTo(b,v),s.subTo(v,s);s[_]<--w;)s.subTo(v,s)}null!=t&&(s.drShiftTo(c,t),o!=m&&a.ZERO.subTo(t,t)),s.t=c,s.clamp(),d>0&&s.rShiftTo(d,s),o<0&&a.ZERO.subTo(s,s)}}},a.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if(0==(1&e))return 0;var t=3&e;return(t=(t=(t=(t=t*(2-(15&e)*t)&15)*(2-(255&e)*t)&255)*(2-((65535&e)*t&65535))&65535)*(2-e*t%this.DV)%this.DV)>0?this.DV-t:-t},a.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},a.prototype.exp=function(e,t){if(e>4294967295||e<1)return a.ONE;var s=n(),r=n(),i=t.convert(this),p=y(e)-1;for(i.copyTo(s);--p>=0;)if(t.sqrTo(s,r),(e&1<<p)>0)t.mulTo(r,i,s);else{var o=s;s=r,r=o}return t.revert(s)},a.prototype.toString=function(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(16==e)t=4;else if(8==e)t=3;else if(2==e)t=1;else if(32==e)t=5;else{if(4!=e)return this.toRadix(e);t=2}var a,n=(1<<t)-1,s=!1,r="",i=this.t,p=this.DB-i*this.DB%t;if(i-- >0)for(p<this.DB&&(a=this[i]>>p)>0&&(s=!0,r=o(a));i>=0;)p<t?(a=(this[i]&(1<<p)-1)<<t-p,a|=this[--i]>>(p+=this.DB-t)):(a=this[i]>>(p-=t)&n,p<=0&&(p+=this.DB,--i)),a>0&&(s=!0),s&&(r+=o(a));return s?r:"0"},a.prototype.negate=function(){var e=n();return a.ZERO.subTo(this,e),e},a.prototype.abs=function(){return this.s<0?this.negate():this},a.prototype.compareTo=function(e){var t=this.s-e.s;if(0!=t)return t;var a=this.t;if(0!=(t=a-e.t))return this.s<0?-t:t;for(;--a>=0;)if(0!=(t=this[a]-e[a]))return t;return 0},a.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+y(this[this.t-1]^this.s&this.DM)},a.prototype.mod=function(e){var t=n();return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(a.ZERO)>0&&e.subTo(t,t),t},a.prototype.modPowInt=function(e,t){var a;return a=e<256||t.isEven()?new c(t):new l(t),this.exp(e,a)},a.ZERO=d(0),a.ONE=d(1),v.prototype.convert=w,v.prototype.revert=w,v.prototype.mulTo=function(e,t,a){e.multiplyTo(t,a)},v.prototype.sqrTo=function(e,t){e.squareTo(t)},P.prototype.convert=function(e){if(e.s<0||e.t>2*this.m.t)return e.mod(this.m);if(e.compareTo(this.m)<0)return e;var t=n();return e.copyTo(t),this.reduce(t),t},P.prototype.revert=function(e){return e},P.prototype.reduce=function(e){for(e.drShiftTo(this.m.t-1,this.r2),e.t>this.m.t+1&&(e.t=this.m.t+1,e.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);e.compareTo(this.r2)<0;)e.dAddOffset(1,this.m.t+1);for(e.subTo(this.r2,e);e.compareTo(this.m)>=0;)e.subTo(this.m,e)},P.prototype.mulTo=function(e,t,a){e.multiplyTo(t,a),this.reduce(a)},P.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)};var S,k,I,M=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],C=(1<<26)/M[M.length-1];function A(){var e;e=(new Date).getTime(),k[I++]^=255&e,k[I++]^=e>>8&255,k[I++]^=e>>16&255,k[I++]^=e>>24&255,I>=E&&(I-=E)}if(a.prototype.chunkSize=function(e){return Math.floor(Math.LN2*this.DB/Math.log(e))},a.prototype.toRadix=function(e){if(null==e&&(e=10),0==this.signum()||e<2||e>36)return"0";var t=this.chunkSize(e),a=Math.pow(e,t),s=d(a),r=n(),i=n(),p="";for(this.divRemTo(s,r,i);r.signum()>0;)p=(a+i.intValue()).toString(e).substr(1)+p,r.divRemTo(s,r,i);return i.intValue().toString(e)+p},a.prototype.fromRadix=function(e,t){this.fromInt(0),null==t&&(t=10);for(var n=this.chunkSize(t),s=Math.pow(t,n),r=!1,i=0,p=0,o=0;o<e.length;++o){var d=m(e,o);d<0?"-"==e.charAt(o)&&0==this.signum()&&(r=!0):(p=t*p+d,++i>=n&&(this.dMultiply(s),this.dAddOffset(p,0),i=0,p=0))}i>0&&(this.dMultiply(Math.pow(t,i)),this.dAddOffset(p,0)),r&&a.ZERO.subTo(this,this)},a.prototype.fromNumber=function(e,t,n){if("number"==typeof t)if(e<2)this.fromInt(1);else for(this.fromNumber(e,n),this.testBit(e-1)||this.bitwiseTo(a.ONE.shiftLeft(e-1),u,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(t);)this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(a.ONE.shiftLeft(e-1),this);else{var s=new Array,r=7&e;s.length=1+(e>>3),t.nextBytes(s),r>0?s[0]&=(1<<r)-1:s[0]=0,this.fromString(s,256)}},a.prototype.bitwiseTo=function(e,t,a){var n,s,r=Math.min(e.t,this.t);for(n=0;n<r;++n)a[n]=t(this[n],e[n]);if(e.t<this.t){for(s=e.s&this.DM,n=r;n<this.t;++n)a[n]=t(this[n],s);a.t=this.t}else{for(s=this.s&this.DM,n=r;n<e.t;++n)a[n]=t(s,e[n]);a.t=e.t}a.s=t(this.s,e.s),a.clamp()},a.prototype.changeBit=function(e,t){var n=a.ONE.shiftLeft(e);return this.bitwiseTo(n,t,n),n},a.prototype.addTo=function(e,t){for(var a=0,n=0,s=Math.min(e.t,this.t);a<s;)n+=this[a]+e[a],t[a++]=n&this.DM,n>>=this.DB;if(e.t<this.t){for(n+=e.s;a<this.t;)n+=this[a],t[a++]=n&this.DM,n>>=this.DB;n+=this.s}else{for(n+=this.s;a<e.t;)n+=e[a],t[a++]=n&this.DM,n>>=this.DB;n+=e.s}t.s=n<0?-1:0,n>0?t[a++]=n:n<-1&&(t[a++]=this.DV+n),t.t=a,t.clamp()},a.prototype.dMultiply=function(e){this[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()},a.prototype.dAddOffset=function(e,t){if(0!=e){for(;this.t<=t;)this[this.t++]=0;for(this[t]+=e;this[t]>=this.DV;)this[t]-=this.DV,++t>=this.t&&(this[this.t++]=0),++this[t]}},a.prototype.multiplyLowerTo=function(e,t,a){var n,s=Math.min(this.t+e.t,t);for(a.s=0,a.t=s;s>0;)a[--s]=0;for(n=a.t-this.t;s<n;++s)a[s+this.t]=this.am(0,e[s],a,s,0,this.t);for(n=Math.min(e.t,t);s<n;++s)this.am(0,e[s],a,s,0,t-s);a.clamp()},a.prototype.multiplyUpperTo=function(e,t,a){--t;var n=a.t=this.t+e.t-t;for(a.s=0;--n>=0;)a[n]=0;for(n=Math.max(t-this.t,0);n<e.t;++n)a[this.t+n-t]=this.am(t-n,e[n],a,0,0,this.t+n-t);a.clamp(),a.drShiftTo(1,a)},a.prototype.modInt=function(e){if(e<=0)return 0;var t=this.DV%e,a=this.s<0?e-1:0;if(this.t>0)if(0==t)a=this[0]%e;else for(var n=this.t-1;n>=0;--n)a=(t*a+this[n])%e;return a},a.prototype.millerRabin=function(e){var t=this.subtract(a.ONE),s=t.getLowestSetBit();if(s<=0)return!1;var r=t.shiftRight(s);(e=e+1>>1)>M.length&&(e=M.length);for(var i=n(),p=0;p<e;++p){i.fromInt(M[Math.floor(Math.random()*M.length)]);var o=i.modPow(r,this);if(0!=o.compareTo(a.ONE)&&0!=o.compareTo(t)){for(var m=1;m++<s&&0!=o.compareTo(t);)if(0==(o=o.modPowInt(2,this)).compareTo(a.ONE))return!1;if(0!=o.compareTo(t))return!1}}return!0},a.prototype.clone=function(){var e=n();return this.copyTo(e),e},a.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},a.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},a.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},a.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},a.prototype.toByteArray=function(){var e=this.t,t=new Array;t[0]=this.s;var a,n=this.DB-e*this.DB%8,s=0;if(e-- >0)for(n<this.DB&&(a=this[e]>>n)!=(this.s&this.DM)>>n&&(t[s++]=a|this.s<<this.DB-n);e>=0;)n<8?(a=(this[e]&(1<<n)-1)<<8-n,a|=this[--e]>>(n+=this.DB-8)):(a=this[e]>>(n-=8)&255,n<=0&&(n+=this.DB,--e)),0!=(128&a)&&(a|=-256),0==s&&(128&this.s)!=(128&a)&&++s,(s>0||a!=this.s)&&(t[s++]=a);return t},a.prototype.equals=function(e){return 0==this.compareTo(e)},a.prototype.min=function(e){return this.compareTo(e)<0?this:e},a.prototype.max=function(e){return this.compareTo(e)>0?this:e},a.prototype.and=function(e){var t=n();return this.bitwiseTo(e,g,t),t},a.prototype.or=function(e){var t=n();return this.bitwiseTo(e,u,t),t},a.prototype.xor=function(e){var t=n();return this.bitwiseTo(e,h,t),t},a.prototype.andNot=function(e){var t=n();return this.bitwiseTo(e,f,t),t},a.prototype.not=function(){for(var e=n(),t=0;t<this.t;++t)e[t]=this.DM&~this[t];return e.t=this.t,e.s=~this.s,e},a.prototype.shiftLeft=function(e){var t=n();return e<0?this.rShiftTo(-e,t):this.lShiftTo(e,t),t},a.prototype.shiftRight=function(e){var t=n();return e<0?this.lShiftTo(-e,t):this.rShiftTo(e,t),t},a.prototype.getLowestSetBit=function(){for(var e=0;e<this.t;++e)if(0!=this[e])return e*this.DB+_(this[e]);return this.s<0?this.t*this.DB:-1},a.prototype.bitCount=function(){for(var e=0,t=this.s&this.DM,a=0;a<this.t;++a)e+=b(this[a]^t);return e},a.prototype.testBit=function(e){var t=Math.floor(e/this.DB);return t>=this.t?0!=this.s:0!=(this[t]&1<<e%this.DB)},a.prototype.setBit=function(e){return this.changeBit(e,u)},a.prototype.clearBit=function(e){return this.changeBit(e,f)},a.prototype.flipBit=function(e){return this.changeBit(e,h)},a.prototype.add=function(e){var t=n();return this.addTo(e,t),t},a.prototype.subtract=function(e){var t=n();return this.subTo(e,t),t},a.prototype.multiply=function(e){var t=n();return this.multiplyTo(e,t),t},a.prototype.divide=function(e){var t=n();return this.divRemTo(e,t,null),t},a.prototype.remainder=function(e){var t=n();return this.divRemTo(e,null,t),t},a.prototype.divideAndRemainder=function(e){var t=n(),a=n();return this.divRemTo(e,t,a),new Array(t,a)},a.prototype.modPow=function(e,t){var a,s,r=e.bitLength(),i=d(1);if(r<=0)return i;a=r<18?1:r<48?3:r<144?4:r<768?5:6,s=r<8?new c(t):t.isEven()?new P(t):new l(t);var p=new Array,o=3,m=a-1,g=(1<<a)-1;if(p[1]=s.convert(this),a>1){var u=n();for(s.sqrTo(p[1],u);o<=g;)p[o]=n(),s.mulTo(u,p[o-2],p[o]),o+=2}var h,f,_=e.t-1,b=!0,v=n();for(r=y(e[_])-1;_>=0;){for(r>=m?h=e[_]>>r-m&g:(h=(e[_]&(1<<r+1)-1)<<m-r,_>0&&(h|=e[_-1]>>this.DB+r-m)),o=a;0==(1&h);)h>>=1,--o;if((r-=o)<0&&(r+=this.DB,--_),b)p[h].copyTo(i),b=!1;else{for(;o>1;)s.sqrTo(i,v),s.sqrTo(v,i),o-=2;o>0?s.sqrTo(i,v):(f=i,i=v,v=f),s.mulTo(v,p[h],i)}for(;_>=0&&0==(e[_]&1<<r);)s.sqrTo(i,v),f=i,i=v,v=f,--r<0&&(r=this.DB-1,--_)}return s.revert(i)},a.prototype.modInverse=function(e){var t=e.isEven();if(this.isEven()&&t||0==e.signum())return a.ZERO;for(var n=e.clone(),s=this.clone(),r=d(1),i=d(0),p=d(0),o=d(1);0!=n.signum();){for(;n.isEven();)n.rShiftTo(1,n),t?(r.isEven()&&i.isEven()||(r.addTo(this,r),i.subTo(e,i)),r.rShiftTo(1,r)):i.isEven()||i.subTo(e,i),i.rShiftTo(1,i);for(;s.isEven();)s.rShiftTo(1,s),t?(p.isEven()&&o.isEven()||(p.addTo(this,p),o.subTo(e,o)),p.rShiftTo(1,p)):o.isEven()||o.subTo(e,o),o.rShiftTo(1,o);n.compareTo(s)>=0?(n.subTo(s,n),t&&r.subTo(p,r),i.subTo(o,i)):(s.subTo(n,s),t&&p.subTo(r,p),o.subTo(i,o))}return 0!=s.compareTo(a.ONE)?a.ZERO:o.compareTo(e)>=0?o.subtract(e):o.signum()<0?(o.addTo(e,o),o.signum()<0?o.add(e):o):o},a.prototype.pow=function(e){return this.exp(e,new v)},a.prototype.gcd=function(e){var t=this.s<0?this.negate():this.clone(),a=e.s<0?e.negate():e.clone();if(t.compareTo(a)<0){var n=t;t=a,a=n}var s=t.getLowestSetBit(),r=a.getLowestSetBit();if(r<0)return t;for(s<r&&(r=s),r>0&&(t.rShiftTo(r,t),a.rShiftTo(r,a));t.signum()>0;)(s=t.getLowestSetBit())>0&&t.rShiftTo(s,t),(s=a.getLowestSetBit())>0&&a.rShiftTo(s,a),t.compareTo(a)>=0?(t.subTo(a,t),t.rShiftTo(1,t)):(a.subTo(t,a),a.rShiftTo(1,a));return r>0&&a.lShiftTo(r,a),a},a.prototype.isProbablePrime=function(e){var t,a=this.abs();if(1==a.t&&a[0]<=M[M.length-1]){for(t=0;t<M.length;++t)if(a[0]==M[t])return!0;return!1}if(a.isEven())return!1;for(t=1;t<M.length;){for(var n=M[t],s=t+1;s<M.length&&n<C;)n*=M[s++];for(n=a.modInt(n);t<s;)if(n%M[t++]==0)return!1}return a.millerRabin(e)},a.prototype.square=function(){var e=n();return this.squareTo(e),e},a.prototype.Barrett=P,null==k){var T;if(k=new Array,I=0,"undefined"!=typeof window&&window.crypto)if(window.crypto.getRandomValues){var D=new Uint8Array(32);for(window.crypto.getRandomValues(D),T=0;T<32;++T)k[I++]=D[T]}else if("Netscape"==navigator.appName&&navigator.appVersion<"5"){var B=window.crypto.random(32);for(T=0;T<B.length;++T)k[I++]=255&B.charCodeAt(T)}for(;I<E;)T=Math.floor(65536*Math.random()),k[I++]=T>>>8,k[I++]=255&T;I=0,A()}function R(){if(null==S){for(A(),(S=new U).init(k),I=0;I<k.length;++I)k[I]=0;I=0}return S.next()}function V(){}function U(){this.i=0,this.j=0,this.S=new Array}V.prototype.nextBytes=function(e){var t;for(t=0;t<e.length;++t)e[t]=R()},U.prototype.init=function(e){var t,a,n;for(t=0;t<256;++t)this.S[t]=t;for(a=0,t=0;t<256;++t)a=a+this.S[t]+e[t%e.length]&255,n=this.S[t],this.S[t]=this.S[a],this.S[a]=n;this.i=0,this.j=0},U.prototype.next=function(){var e;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,e=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=e,this.S[e+this.S[this.i]&255]};var E=256;e.exports={default:a,BigInteger:a,SecureRandom:V}}).call(this)},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NetworkerFactory=void 0;const n=a(19);class s{constructor(){this.updatesProcessor=null}setUpdatesProcessor(e){this.updatesProcessor=e}getNetworker(e,t,a,s,r){return new n.MTPNetworker(e,t,a,s,r)}}t.NetworkerFactory=s,t.default=new s},function(e,t,a){"use strict";var n=this&&this.__awaiter||function(e,t,a,n){return new(a||(a=Promise))((function(s,r){function i(e){try{o(n.next(e))}catch(e){r(e)}}function p(e){try{o(n.throw(e))}catch(e){r(e)}}function o(e){var t;e.done?s(e.value):(t=e.value,t instanceof a?t:new a((function(e){e(t)}))).then(i,p)}o((n=n.apply(e,t||[])).next())}))},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ApiManager=void 0;const r=s(a(2)),i=a(0),p=s(a(6)),o=a(26),m=s(a(27)),d=a(3),y=s(a(9)),c=s(a(10)),l=a(4),g=s(a(29));class u{constructor(){this.cachedNetworkers={},this.cachedUploadNetworkers={},this.cachedExportPromise={},this.gettingNetworkers={},this.baseDcID=0,this.telegramMeNotified=!1,this.log=l.logger("API")}telegramMeNotify(e){this.telegramMeNotified!==e&&(this.telegramMeNotified=e,o.telegramMeWebService.setAuthorized(this.telegramMeNotified))}setUserAuth(e){var t=Object.assign({dcID:this.baseDcID},e);r.default.set({dc:this.baseDcID,user_auth:t}),this.telegramMeNotify(!0)}setBaseDcID(e){this.baseDcID=e}logOut(){return n(this,void 0,void 0,(function*(){let e=[],t=d.Modes.test?"t_dc":"dc";for(let a=1;a<=5;a++)e.push(t+a+"_auth_key");let a=yield r.default.get(e),n=[];for(let e=0;e<a.length;e++)a[e]&&n.push(this.invokeApi("auth.logOut",{},{dcID:e+1,ignoreErrors:!0}));return Promise.all(n).then(()=>{r.default.remove("dc","user_auth","stickerSets"),this.baseDcID=0,this.telegramMeNotify(!1),this.mtpClearStorage()},t=>{e.push("dc","user_auth","stickerSets"),r.default.remove(e),this.baseDcID=0,t.handled=!0,this.telegramMeNotify(!1),this.mtpClearStorage()})}))}mtpClearStorage(){for(var e=["user_auth","t_user_auth","dc","t_dc"],t=1;t<=5;t++)e.push("dc"+t+"_auth_key"),e.push("dc"+t+"_auth_keyID"),e.push("dc"+t+"_server_salt"),e.push("t_dc"+t+"_auth_key"),e.push("t_dc"+t+"_auth_keyID"),e.push("t_dc"+t+"_server_salt");r.default.noPrefix(),r.default.get(e).then(t=>{r.default.clear().then(()=>{var a={};return e.forEach((e,n)=>{var s=t[n];!1!==s&&void 0!==s&&(a[e]=s)}),r.default.noPrefix(),r.default.set(a)})})}getNetworker(e,t){return n(this,void 0,void 0,(function*(){const a=(t.fileUpload||t.fileDownload)&&(y.default.chooseServer(e,!0)instanceof c.default||d.Modes.multipleConnections),s=a?this.cachedUploadNetworkers:this.cachedNetworkers;if(!e)throw new Error("get Networker without dcID");if(void 0!==s[e])return s[e];const o=e+"-"+ +a;if(this.gettingNetworkers[o])return this.gettingNetworkers[o];const l="dc"+e+"_auth_key",g="dc"+e+"_auth_keyID",u="dc"+e+"_server_salt";return this.gettingNetworkers[o]=r.default.get([l,g,u]).then(([a,d,y])=>n(this,void 0,void 0,(function*(){let n;if(a&&512==a.length){y&&16==y.length||(y="AAAAAAAAAAAAAAAA");const s=i.bytesFromHex(a),r=new Uint8Array(i.bytesFromHex(d)),o=i.bytesFromHex(y);n=p.default.getNetworker(e,s,r,o,t)}else try{const a=yield m.default.auth(e),s={[l]:i.bytesToHex(a.authKey),[g]:a.authKeyID.hex,[u]:i.bytesToHex(a.serverSalt)};r.default.set(s),n=p.default.getNetworker(e,a.authKey,a.authKeyID,a.serverSalt,t)}catch(e){throw this.log("Get networker error",e,e.stack),delete this.gettingNetworkers[o],e}return delete this.gettingNetworkers[o],s[e]=n})))}))}invokeApi(e,t={},a={}){return new Promise((n,s)=>{let p=t=>{t?i.isObject(t)||(t={message:t}):t={type:"ERROR_EMPTY"},s(t),a.ignoreErrors||(406==t.code&&(t.handled=!0),a.noErrorBox||(t.input=e,t.stack=y||t.originalError&&t.originalError.stack||t.stack||(new Error).stack,setTimeout(()=>{t.handled||(401==t.code&&this.logOut(),t.handled=!0)},100)))};var o,m,y=(new Error).stack||"empty stack",c=s=>(m=s).wrapApiCall(e,t,a).then(n,i=>{if(this.log.error("Error",i.code,i.type,this.baseDcID,o),401==i.code&&this.baseDcID==o)r.default.remove("dc","user_auth"),this.telegramMeNotify(!1),p(i);else if(401==i.code&&this.baseDcID&&o!=this.baseDcID){if(void 0===this.cachedExportPromise[o]){let e=new Promise((e,t)=>{this.invokeApi("auth.exportAuthorization",{dc_id:o},{noErrorBox:!0}).then(a=>{this.invokeApi("auth.importAuthorization",{id:a.id,bytes:a.bytes},{dcID:o,noErrorBox:!0}).then(e,t)},t)});this.cachedExportPromise[o]=e}this.cachedExportPromise[o].then(()=>{(m=s).wrapApiCall(e,t,a).then(n,p)},p)}else if(303==i.code){var d=i.type.match(/^(PHONE_MIGRATE_|NETWORK_MIGRATE_|USER_MIGRATE_)(\d+)/)[2];d!=o&&(a.dcID?a.dcID=d:r.default.set({dc:this.baseDcID=d}),this.getNetworker(d,a).then(s=>{s.wrapApiCall(e,t,a).then(n,p)},p))}else if(a.rawError||420!=i.code)if(a.rawError||500!=i.code&&"MSG_WAIT_FAILED"!=i.type)p(i);else{var y=Date.now();if(a.stopTime){if(y>=a.stopTime)return p(i)}else a.stopTime=y+1e3*(void 0!==a.timeout?a.timeout:10);a.waitTime=a.waitTime?Math.min(60,1.5*a.waitTime):1,setTimeout(()=>{c(m)},1e3*a.waitTime)}else{var l=i.type.match(/^FLOOD_WAIT_(\d+)/)[1]||10;if(l>(void 0!==a.timeout?a.timeout:60))return p(i);setTimeout(()=>{c(m)},1e3*(l+5))}});(o=a.dcID||this.baseDcID)?this.getNetworker(o,a).then(c,p):r.default.get("dc").then(e=>{this.getNetworker(this.baseDcID=o=e||d.App.baseDcID,a).then(c,p)})})}getUserID(){return r.default.get("user_auth").then(e=>(this.telegramMeNotify(e&&e.id>0||!1),e.id||0))}checkPassword(e){return g.default.getState().then(t=>g.default.check(t,e))}}t.ApiManager=u,t.default=new u},function(e,t,a){"use strict";
/*!
* Webogram v0.7.0 - messaging web application for MTProto
* https://github.com/zhukov/webogram
* Copyright (C) 2014 Igor Zhukov <igor.beatle@gmail.com>
* https://github.com/zhukov/webogram/blob/master/LICENSE
*/var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TLSerialization=t.TLDeserialization=void 0;const s=a(0),r=n(a(11)),i=a(12),p=+r.default.API.constructors.find(e=>"boolFalse"==e.predicate).id>>>0,o=+r.default.API.constructors.find(e=>"boolTrue"==e.predicate).id>>>0,m=+r.default.API.constructors.find(e=>"vector"==e.predicate).id>>>0,d=+r.default.MTProto.constructors.find(e=>"gzip_packed"==e.predicate).id>>>0;t.TLSerialization=class{constructor(e={}){this.maxLength=2048,this.offset=0,this.mtproto=!1,this.debug=!1,this.maxLength=e.startMaxLength||2048,this.mtproto=e.mtproto||!1,this.createBuffer()}createBuffer(){this.buffer=new ArrayBuffer(this.maxLength),this.intView=new Int32Array(this.buffer),this.byteView=new Uint8Array(this.buffer)}getArray(){let e=new ArrayBuffer(this.offset),t=new Int32Array(e);return t.set(this.intView.subarray(0,this.offset/4)),t}getBuffer(){return this.getArray().buffer}getBytes(e){if(e){let e=new ArrayBuffer(this.offset),t=new Uint8Array(e);return t.set(this.byteView.subarray(0,this.offset)),t}let t=[];for(var a=0;a<this.offset;a++)t.push(this.byteView[a]);return t}checkLength(e){if(!(this.offset+e<this.maxLength)){this.maxLength=4*Math.ceil(Math.max(2*this.maxLength,this.offset+e+16)/4);var t=this.buffer,a=new Int32Array(t);this.createBuffer(),new Int32Array(this.buffer).set(a)}}writeInt(e,t){this.debug&&console.log(">>>",e.toString(16),e,t),this.checkLength(4),this.intView[this.offset/4]=e,this.offset+=4}storeInt(e,t){this.writeInt(e,(t||"")+":int")}storeBool(e,t){e?this.writeInt(o,(t||"")+":bool"):this.writeInt(p,(t||"")+":bool")}storeLongP(e,t,a){this.writeInt(t,(a||"")+":long[low]"),this.writeInt(e,(a||"")+":long[high]")}storeLong(e,t){if(Array.isArray(e))return 2==e.length?this.storeLongP(e[0],e[1],t):this.storeIntBytes(e,64,t);"string"!=typeof e&&(e=e?e.toString():"0");var a=s.bigStringInt(e).divideAndRemainder(s.bigint(4294967296));this.writeInt(a[1].intValue(),(t||"")+":long[low]"),this.writeInt(a[0].intValue(),(t||"")+":long[high]")}storeDouble(e,t){var a=new ArrayBuffer(8),n=new Int32Array(a);new Float64Array(a)[0]=e,this.writeInt(n[0],(t||"")+":double[low]"),this.writeInt(n[1],(t||"")+":double[high]")}storeString(e,t){this.debug&&console.log(">>>",e,(t||"")+":string"),void 0===e&&(e="");var a=unescape(encodeURIComponent(e));this.checkLength(a.length+8);var n=a.length;n<=253?this.byteView[this.offset++]=n:(this.byteView[this.offset++]=254,this.byteView[this.offset++]=255&n,this.byteView[this.offset++]=(65280&n)>>8,this.byteView[this.offset++]=(16711680&n)>>16);for(var s=0;s<n;s++)this.byteView[this.offset++]=a.charCodeAt(s);for(;this.offset%4;)this.byteView[this.offset++]=0}storeBytes(e,t){e instanceof ArrayBuffer?e=new Uint8Array(e):void 0===e&&(e=[]),this.debug&&console.log(">>>",s.bytesToHex(e),(t||"")+":bytes");var a=e.byteLength||e.length;for(this.checkLength(a+8),a<=253?this.byteView[this.offset++]=a:(this.byteView[this.offset++]=254,this.byteView[this.offset++]=255&a,this.byteView[this.offset++]=(65280&a)>>8,this.byteView[this.offset++]=(16711680&a)>>16),this.byteView.set(e,this.offset),this.offset+=a;this.offset%4;)this.byteView[this.offset++]=0}storeIntBytes(e,t,a){e instanceof ArrayBuffer&&(e=new Uint8Array(e));var n=e.length;if(t%32||8*n!=t)throw new Error("Invalid bits: "+t+", "+e.length);this.debug&&console.log(">>>",s.bytesToHex(e),(a||"")+":int"+t),this.checkLength(n),this.byteView.set(e,this.offset),this.offset+=n}storeRawBytes(e,t){e instanceof ArrayBuffer&&(e=new Uint8Array(e));var a=e.length;this.debug&&console.log(">>>",s.bytesToHex(e),t||""),this.checkLength(a),this.byteView.set(e,this.offset),this.offset+=a}storeMethod(e,t){var a,n,s,i,p,o=this.mtproto?r.default.MTProto:r.default.API,m=!1;for(s=0;s<o.methods.length;s++)if(o.methods[s].method==e){m=o.methods[s];break}if(!m)throw new Error("No method "+e+" found");this.storeInt(m.id,e+"[id]");var d=m.params.length;for(s=0;s<d;s++){if(-1!==(n=(a=m.params[s]).type).indexOf("?")){if(!(t[(p=(i=n.split("?"))[0].split("."))[0]]&1<<p[1]))continue;n=i[1]}this.storeObject(t[a.name],n,e+"["+a.name+"]")}return m.type}storeObject(e,t,a){switch(t){case"#":case"int":return this.storeInt(e,a);case"long":return this.storeLong(e,a);case"int128":return this.storeIntBytes(e,128,a);case"int256":return this.storeIntBytes(e,256,a);case"int512":return this.storeIntBytes(e,512,a);case"string":return this.storeString(e,a);case"bytes":return this.storeBytes(e,a);case"double":return this.storeDouble(e,a);case"Bool":return this.storeBool(e,a);case"true":return}if(Array.isArray(e)){if("Vector"==t.substr(0,6))this.writeInt(m,a+"[id]");else if("vector"!=t.substr(0,6))throw new Error("Invalid vector type "+t);var n=t.substr(7,t.length-8);this.writeInt(e.length,a+"[count]");for(var i=0;i<e.length;i++)this.storeObject(e[i],n,a+"["+i+"]");return!0}if("vector"==t.substr(0,6).toLowerCase())throw new Error("Invalid vector object");if(!s.isObject(e))throw new Error("Invalid object for type "+t);var p,o,d,y=this.mtproto?r.default.MTProto:r.default.API,c=e._,l=!1,g=!1;for((l="%"==t.charAt(0))&&(t=t.substr(1)),i=0;i<y.constructors.length;i++)if(y.constructors[i].predicate==c){g=y.constructors[i];break}if(!g)throw new Error("No predicate "+c+" found");c==t&&(l=!0),l||this.writeInt(g.id,a+"["+c+"][id]");var u=g.params.length;for(i=0;i<u;i++){if(-1!==(t=(p=g.params[i]).type).indexOf("?")){if(!(e[(d=(o=t.split("?"))[0].split("."))[0]]&1<<+d[1]))continue;t=o[1]}this.storeObject(e[p.name],t,a+"["+c+"]["+p.name+"]")}return g.type}};class y{constructor(e,t={}){this.offset=0,this.mtproto=!1,e instanceof ArrayBuffer?(this.buffer=e,this.byteView=new Uint8Array(this.buffer)):(this.buffer=e.buffer,this.byteView=e),this.override="override"in t?t.override:{},this.mtproto="mtproto"in t&&t.mtproto,this.debug=void 0!==t.debug&&t.debug}readInt(e){if(this.byteView.length-this.offset<4)throw console.error(this.byteView,this.offset),new Error("Nothing to fetch: "+e);let t=new Uint32Array(this.byteView.buffer.slice(this.offset,this.offset+4))[0];return this.debug&&console.log("<<<",t.toString(16),t,e,this.byteView.slice(this.offset-16,this.offset+16),this.byteView.slice(this.offset-16,this.offset+16).hex),this.offset+=4,t}fetchInt(e){return this.readInt((e||"")+":int")}fetchDouble(e){var t=new ArrayBuffer(8),a=new Int32Array(t),n=new Float64Array(t);return a[0]=this.readInt((e||"")+":double[low]"),a[1]=this.readInt((e||"")+":double[high]"),n[0]}fetchLong(e){var t=this.readInt((e||"")+":long[low]"),a=this.readInt((e||"")+":long[high]");return s.bigint(a).shiftLeft(32).add(s.bigint(t)).toString()}fetchBool(e){var t=this.readInt((e||"")+":bool");return t==o||t!=p&&(this.offset-=4,this.fetchObject("Object",e))}fetchString(e){if(254==(t=this.byteView[this.offset++]))var t=this.byteView[this.offset++]|this.byteView[this.offset++]<<8|this.byteView[this.offset++]<<16;for(var a="",n=0;n<t;n++)a+=String.fromCharCode(this.byteView[this.offset++]);for(;this.offset%4;)this.offset++;try{var s=decodeURIComponent(escape(a))}catch(e){s=a}return this.debug&&console.log("<<<",s,(e||"")+":string"),s}fetchBytes(e){var t=this.byteView[this.offset++];254==t&&(t=this.byteView[this.offset++]|this.byteView[this.offset++]<<8|this.byteView[this.offset++]<<16);var a=this.byteView.subarray(this.offset,this.offset+t);for(this.offset+=t;this.offset%4;)this.offset++;return this.debug&&console.log("<<<",s.bytesToHex(a),(e||"")+":bytes"),a}fetchIntBytes(e,t,a){if(e%32)throw new Error("Invalid bits: "+e);var n=e/8;if(t){var r=this.byteView.subarray(this.offset,this.offset+n);return this.offset+=n,r}for(var i=[],p=0;p<n;p++)i.push(this.byteView[this.offset++]);return this.debug&&console.log("<<<",s.bytesToHex(i),(a||"")+":int"+e),i}fetchRawBytes(e,t,a){if(!1===e&&(e=this.readInt((a||"")+"_length"))>this.byteView.byteLength)throw new Error("Invalid raw bytes length: "+e+", buffer len: "+this.byteView.byteLength);if(t){let t=new Uint8Array(e);return t.set(this.byteView.subarray(this.offset,this.offset+e)),this.offset+=e,t}for(var n=[],r=0;r<e;r++)n.push(this.byteView[this.offset++]);return this.debug&&console.log("<<<",s.bytesToHex(n),a||""),n}fetchObject(e,t){switch(e){case"#":case"int":return this.fetchInt(t);case"long":return this.fetchLong(t);case"int128":return this.fetchIntBytes(128,!1,t);case"int256":return this.fetchIntBytes(256,!1,t);case"int512":return this.fetchIntBytes(512,!1,t);case"string":return this.fetchString(t);case"bytes":return this.fetchBytes(t);case"double":return this.fetchDouble(t);case"Bool":return this.fetchBool(t);case"true":return!0}if(t=t||e||"Object","Vector"==e.substr(0,6)||"vector"==e.substr(0,6)){if("V"==e.charAt(0)){if((f=h=this.readInt(t+"[id]"))==d){var a=this.fetchBytes(t+"[packed_string]"),n=i.gzipUncompress(a);return new y(n).fetchObject(e,t)}if(f!=m)throw new Error("Invalid vector constructor "+h)}var s=[];if((C=this.readInt(t+"[count]"))>0)for(var p=e.substr(7,e.length-8),o=0;o<C;o++)s.push(this.fetchObject(p,t+"["+o+"]"));return s}var c,l=this.mtproto?r.default.MTProto:r.default.API,g=!1;if("%"==e.charAt(0)){var u=e.substr(1);for(o=0;o<l.constructors.length;o++)if(l.constructors[o].type==u){g=l.constructors[o];break}if(!g)throw new Error("Constructor not found for type: "+e)}else if(e.charAt(0)>=97&&e.charAt(0)<=122){for(o=0;o<l.constructors.length;o++)if(l.constructors[o].predicate==e){g=l.constructors[o];break}if(!g)throw new Error("Constructor not found for predicate: "+e)}else{var h,f;if((f=h=this.readInt(t+"[id]"))==d){a=this.fetchBytes(t+"[packed_string]"),n=i.gzipUncompress(a);return new y(n).fetchObject(e,t)}var _=l.constructorsIndex;if(!_){l.constructorsIndex=_={};for(var o=0;o<l.constructors.length;o++)_[l.constructors[o].id]=o}(o=_[f])&&(g=l.constructors[o]);var b=!1;if(!g&&this.mtproto){var v=r.default.API;for(o=0;o<v.constructors.length;o++)if(+v.constructors[o].id==f){g=v.constructors[o],delete this.mtproto,b=!0;break}}if(!g)throw new Error("Constructor not found: "+h+" "+this.fetchInt()+" "+this.fetchInt()+" "+t)}s={_:c=g.predicate};var w=(this.mtproto?"mt_":"")+c;if(this.override[w])this.override[w].apply(this,[s,t+"["+c+"]"]);else{var P,S,k,I,M,C=g.params.length;for(o=0;o<C;o++){if("#"==(e=(P=g.params[o]).type)&&void 0===s.pFlags&&(s.pFlags={}),S=-1!==e.indexOf("?")){if(!(s[(I=(k=e.split("?"))[0].split("."))[0]]&1<<I[1]))continue;e=k[1]}M=this.fetchObject(e,t+"["+c+"]["+P.name+"]"),S&&"true"===e?s.pFlags[P.name]=M:s[P.name]=M}}return b&&(this.mtproto=!0),s}getOffset(){return this.offset}fetchEnd(){if(this.offset!=this.byteView.length)throw new Error("Fetch end with non-empty buffer");return!0}}t.TLDeserialization=y},function(e,t,a){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DcConfigurator=void 0;const s=n(a(24)),r=n(a(10)),i=a(3);class p{constructor(){this.sslSubdomains=["pluto","venus","aurora","vesta","flora"],this.dcOptions=i.Modes.test?[{id:1,host:"149.154.175.10",port:80},{id:2,host:"149.154.167.40",port:80},{id:3,host:"149.154.175.117",port:80}]:[{id:1,host:"149.154.175.50",port:80},{id:2,host:"149.154.167.50",port:80},{id:3,host:"149.154.175.100",port:80},{id:4,host:"149.154.167.91",port:80},{id:5,host:"149.154.171.5",port:80}],this.chosenServers={websocket:{},https:{},http:{}},this.chosenUploadServers={websocket:{},https:{},http:{}}}chooseServer(e,t,a="websocket"){const n=t&&("websocket"!=a||i.Modes.multipleConnections)?this.chosenUploadServers[a]:this.chosenServers[a];e in n||(n[e]=[]);const p=n[e];if(!p.length||t&&p.length<1){let n;if("websocket"==a){const t="wss://"+this.sslSubdomains[e-1]+".web.telegram.org/"+(i.Modes.test?"apiws_test":"apiws");n=new s.default(e,t)}else if(i.Modes.ssl||!i.Modes.http||"https"==a){const a="https://"+(this.sslSubdomains[e-1]+(t?"-1":""))+".web.telegram.org/"+(i.Modes.test?"apiw_test1":"apiw1");n=new r.default(e,a)}else for(let t of this.dcOptions)if(t.id==e){const a="http://"+t.host+(80!=t.port?":"+t.port:"")+"/apiw1";n=new r.default(e,a);break}return n?(p.push(n),n):(console.error("No chosenServer!",e),null)}return p[0]}}t.DcConfigurator=p,t.default=new p},function(e,t,a){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(a(16)),r=a(0);class i extends s.default{constructor(e,t){super(e,t),this.send=e=>fetch(this.url,{method:"POST",body:e}).then(e=>{if(200!=e.status)throw e.arrayBuffer().then(e=>{console.log("not 200",new TextDecoder("utf-8").decode(new Uint8Array(r.bytesFromArrayBuffer(e))))}),e;return e.arrayBuffer().then(e=>new Uint8Array(r.bytesFromArrayBuffer(e)))})}}t.default=i},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={MTProto:{constructors:[{id:"481674261",predicate:"vector",params:[],type:"Vector t"},{id:"85337187",predicate:"resPQ",params:[{name:"nonce",type:"int128"},{name:"server_nonce",type:"int128"},{name:"pq",type:"bytes"},{name:"server_public_key_fingerprints",type:"Vector<long>"}],type:"ResPQ"},{id:2211011308,predicate:"p_q_inner_data",params:[{name:"pq",type:"bytes"},{name:"p",type:"bytes"},{name:"q",type:"bytes"},{name:"nonce",type:"int128"},{name:"server_nonce",type:"int128"},{name:"new_nonce",type:"int256"}],type:"P_Q_inner_data"},{id:2851430293,predicate:"p_q_inner_data_dc",params:[{name:"pq",type:"bytes"},{name:"p",type:"bytes"},{name:"q",type:"bytes"},{name:"nonce",type:"int128"},{name:"server_nonce",type:"int128"},{name:"new_nonce",type:"int256"},{name:"dc",type:"int"}],type:"P_Q_inner_data"},{id:"1013613780",predicate:"p_q_inner_data_temp",params:[{name:"pq",type:"bytes"},{name:"p",type:"bytes"},{name:"q",type:"bytes"},{name:"nonce",type:"int128"},{name:"server_nonce",type:"int128"},{name:"new_nonce",type:"int256"},{name:"expires_in",type:"int"}],type:"P_Q_inner_data"},{id:"1459478408",predicate:"p_q_inner_data_temp_dc",params:[{name:"pq",type:"bytes"},{name:"p",type:"bytes"},{name:"q",type:"bytes"},{name:"nonce",type:"int128"},{name:"server_nonce",type:"int128"},{name:"new_nonce",type:"int256"},{name:"dc",type:"int"},{name:"expires_in",type:"int"}],type:"P_Q_inner_d"},{id:"2043348061",predicate:"server_DH_params_fail",params:[{name:"nonce",type:"int128"},{name:"server_nonce",type:"int128"},{name:"new_nonce_hash",type:"int128"}],type:"Server_DH_Params"},{id:3504867164,predicate:"server_DH_params_ok",params:[{name:"nonce",type:"int128"},{name:"server_nonce",type:"int128"},{name:"encrypted_answer",type:"bytes"}],type:"Server_DH_Params"},{id:3045658042,predicate:"server_DH_inner_data",params:[{name:"nonce",type:"int128"},{name:"server_nonce",type:"int128"},{name:"g",type:"int"},{name:"dh_prime",type:"bytes"},{name:"g_a",type:"bytes"},{name:"server_time",type:"int"}],type:"Server_DH_inner_data"},{id:"1715713620",predicate:"client_DH_inner_data",params:[{name:"nonce",type:"int128"},{name:"server_nonce",type:"int128"},{name:"retry_id",type:"long"},{name:"g_b",type:"bytes"}],type:"Client_DH_Inner_Data"},{id:"1003222836",predicate:"dh_gen_ok",params:[{name:"nonce",type:"int128"},{name:"server_nonce",type:"int128"},{name:"new_nonce_hash1",type:"int128"}],type:"Set_client_DH_params_answer"},{id:"1188831161",predicate:"dh_gen_retry",params:[{name:"nonce",type:"int128"},{name:"server_nonce",type:"int128"},{name:"new_nonce_hash2",type:"int128"}],type:"Set_client_DH_params_answer"},{id:2795351554,predicate:"dh_gen_fail",params:[{name:"nonce",type:"int128"},{name:"server_nonce",type:"int128"},{name:"new_nonce_hash3",type:"int128"}],type:"Set_client_DH_params_answer"},{id:4082920705,predicate:"rpc_result",params:[{name:"req_msg_id",type:"long"},{name:"result",type:"Object"}],type:"RpcResult"},{id:"558156313",predicate:"rpc_error",params:[{name:"error_code",type:"int"},{name:"error_message",type:"string"}],type:"RpcError"},{id:"1579864942",predicate:"rpc_answer_unknown",params:[],type:"RpcDropAnswer"},{id:3447252358,predicate:"rpc_answer_dropped_running",params:[],type:"RpcDropAnswer"},{id:2755319991,predicate:"rpc_answer_dropped",params:[{name:"msg_id",type:"long"},{name:"seq_no",type:"int"},{name:"bytes",type:"int"}],type:"RpcDropAnswer"},{id:"155834844",predicate:"future_salt",params:[{name:"valid_since",type:"int"},{name:"valid_until",type:"int"},{name:"salt",type:"long"}],type:"FutureSalt"},{id:2924480661,predicate:"future_salts",params:[{name:"req_msg_id",type:"long"},{name:"now",type:"int"},{name:"salts",type:"vector<future_salt>"}],type:"FutureSalts"},{id:"880243653",predicate:"pong",params:[{name:"msg_id",type:"long"},{name:"ping_id",type:"long"}],type:"Pong"},{id:2663516424,predicate:"new_session_created",params:[{name:"first_msg_id",type:"long"},{name:"unique_id",type:"long"},{name:"server_salt",type:"long"}],type:"NewSession"},{id:"1945237724",predicate:"msg_container",params:[{name:"messages",type:"vector<%Message>"}],type:"MessageContainer"},{id:"1538843921",predicate:"message",params:[{name:"msg_id",type:"long"},{name:"seqno",type:"int"},{name:"bytes",type:"int"},{name:"body",type:"Object"}],type:"Message"},{id:3764405938,predicate:"msg_copy",params:[{name:"orig_message",type:"Message"}],type:"MessageCopy"},{id:"812830625",predicate:"gzip_packed",params:[{name:"packed_data",type:"bytes"}],type:"Object"},{id:"1658238041",predicate:"msgs_ack",params:[{name:"msg_ids",type:"Vector<long>"}],type:"MsgsAck"},{id:2817521681,predicate:"bad_msg_notification",params:[{name:"bad_msg_id",type:"long"},{name:"bad_msg_seqno",type:"int"},{name:"error_code",type:"int"}],type:"BadMsgNotification"},{id:3987424379,predicate:"bad_server_salt",params:[{name:"bad_msg_id",type:"long"},{name:"bad_msg_seqno",type:"int"},{name:"error_code",type:"int"},{name:"new_server_salt",type:"long"}],type:"BadMsgNotification"},{id:"2105940488",predicate:"msg_resend_req",params:[{name:"msg_ids",type:"Vector<long>"}],type:"MsgResendReq"},{id:2249243371,predicate:"msg_resend_ans_req",params:[{name:"msg_ids",type:"Vector<long>"}],type:"MsgResendReq"},{id:3664378706,predicate:"msgs_state_req",params:[{name:"msg_ids",type:"Vector<long>"}],type:"MsgsStateReq"},{id:"81704317",predicate:"msgs_state_info",params:[{name:"req_msg_id",type:"long"},{name:"info",type:"bytes"}],type:"MsgsStateInfo"},{id:2361446705,predicate:"msgs_all_info",params:[{name:"msg_ids",type:"Vector<long>"},{name:"info",type:"bytes"}],type:"MsgsAllInfo"},{id:"661470918",predicate:"msg_detailed_info",params:[{name:"msg_id",type:"long"},{name:"answer_msg_id",type:"long"},{name:"bytes",type:"int"},{name:"status",type:"int"}],type:"MsgDetailedInfo"},{id:2157819615,predicate:"msg_new_detailed_info",params:[{name:"answer_msg_id",type:"long"},{name:"bytes",type:"int"},{name:"status",type:"int"}],type:"MsgDetailedInfo"},{id:"1973679973",predicate:"bind_auth_key_inner",params:[{name:"nonce",type:"long"},{name:"temp_auth_key_id",type:"long"},{name:"perm_auth_key_id",type:"long"},{name:"temp_session_id",type:"long"},{name:"expires_at",type:"int"}],type:"BindAuthKeyInner"},{id:4133544404,predicate:"destroy_auth_key_ok",params:[],type:"DestroyAuthKeyRes"},{id:"178201177",predicate:"destroy_auth_key_none",params:[],type:"DestroyAuthKeyRes"},{id:3926956819,predicate:"destroy_auth_key_fail",params:[],type:"DestroyAuthKeyRes"},{id:3793765884,predicate:"destroy_session_ok",params:[{name:"session_id",type:"long"}],type:"DestroySessionRes"},{id:"1658015945",predicate:"destroy_session_none",params:[{name:"session_id",type:"long"}],type:"DestroySessionRes"}],methods:[{id:"1615239032",method:"req_pq",params:[{name:"nonce",type:"int128"}],type:"ResPQ"},{id:3195965169,method:"req_pq_multi",params:[{name:"nonce",type:"int128"}],type:"ResPQ"},{id:3608339646,method:"req_DH_params",params:[{name:"nonce",type:"int128"},{name:"server_nonce",type:"int128"},{name:"p",type:"bytes"},{name:"q",type:"bytes"},{name:"public_key_fingerprint",type:"long"},{name:"encrypted_data",type:"bytes"}],type:"Server_DH_Params"},{id:4110704415,method:"set_client_DH_params",params:[{name:"nonce",type:"int128"},{name:"server_nonce",type:"int128"},{name:"encrypted_data",type:"bytes"}],type:"Set_client_DH_params_answer"},{id:"1491380032",method:"rpc_drop_answer",params:[{name:"req_msg_id",type:"long"}],type:"RpcDropAnswer"},{id:3105996036,method:"get_future_salts",params:[{name:"num",type:"int"}],type:"FutureSalts"},{id:"2059302892",method:"ping",params:[{name:"ping_id",type:"long"}],type:"Pong"},{id:4081220492,method:"ping_delay_disconnect",params:[{name:"ping_id",type:"long"},{name:"disconnect_delay",type:"int"}],type:"Pong"},{id:2459514271,method:"http_wait",params:[{name:"max_delay",type:"int"},{name:"wait_after",type:"int"},{name:"max_wait",type:"int"}],type:"HttpWait"},{id:3510849888,method:"destroy_auth_key",params:[],type:"DestroyAuthKeyRes"},{id:3880853798,method:"destroy_session",params:[{name:"session_id",type:"long"}],type:"DestroySessionRes"}]},API:{constructors:[{id:3162085175,predicate:"boolFalse",params:[],type:"Bool"},{id:2574415285,predicate:"boolTrue",params:[],type:"Bool"},{id:1072550713,predicate:"true",params:[],type:"True"},{id:481674261,predicate:"vector",params:[],type:"Vector t"},{id:3300522427,predicate:"error",params:[{name:"code",type:"int"},{name:"text",type:"string"}],type:"Error"},{id:1450380236,predicate:"null",params:[],type:"Null"},{id:2134579434,predicate:"inputPeerEmpty",params:[],type:"InputPeer"},{id:2107670217,predicate:"inputPeerSelf",params:[],type:"InputPeer"},{id:396093539,predicate:"inputPeerChat",params:[{name:"chat_id",type:"int"}],type:"InputPeer"},{id:2072935910,predicate:"inputPeerUser",params:[{name:"user_id",type:"int"},{name:"access_hash",type:"long"}],type:"InputPeer"},{id:548253432,predicate:"inputPeerChannel",params:[{name:"channel_id",type:"int"},{name:"access_hash",type:"long"}],type:"InputPeer"},{id:398123750,predicate:"inputPeerUserFromMessage",params:[{name:"peer",type:"InputPeer"},{name:"msg_id",type:"int"},{name:"user_id",type:"int"}],type:"InputPeer"},{id:2627073979,predicate:"inputPeerChannelFromMessage",params:[{name:"peer",type:"InputPeer"},{name:"msg_id",type:"int"},{name:"channel_id",type:"int"}],type:"InputPeer"},{id:3112732367,predicate:"inputUserEmpty",params:[],type:"InputUser"},{id:4156666175,predicate:"inputUserSelf",params:[],type:"InputUser"},{id:3626575894,predicate:"inputUser",params:[{name:"user_id",type:"int"},{name:"access_hash",type:"long"}],type:"InputUser"},{id:756118935,predicate:"inputUserFromMessage",params:[{name:"peer",type:"InputPeer"},{name:"msg_id",type:"int"},{name:"user_id",type:"int"}],type:"InputUser"},{id:4086478836,predicate:"inputPhoneContact",params:[{name:"client_id",type:"long"},{name:"phone",type:"string"},{name:"first_name",type:"string"},{name:"last_name",type:"string"}],type:"InputContact"},{id:4113560191,predicate:"inputFile",params:[{name:"id",type:"long"},{name:"parts",type:"int"},{name:"name",type:"string"},{name:"md5_checksum",type:"string"}],type:"InputFile"},{id:4199484341,predicate:"inputFileBig",params:[{name:"id",type:"long"},{name:"parts",type:"int"},{name:"name",type:"string"}],type:"InputFile"},{id:2523198847,predicate:"inputMediaEmpty",params:[],type:"InputMedia"},{id:505969924,predicate:"inputMediaUploadedPhoto",params:[{name:"flags",type:"#"},{name:"file",type:"InputFile"},{name:"stickers",type:"flags.0?Vector<InputDocument>"},{name:"ttl_seconds",type:"flags.1?int"}],type:"InputMedia"},{id:3015312949,predicate:"inputMediaPhoto",params:[{name:"flags",type:"#"},{name:"id",type:"InputPhoto"},{name:"ttl_seconds",type:"flags.0?int"}],type:"InputMedia"},{id:4190388548,predicate:"inputMediaGeoPoint",params:[{name:"geo_point",type:"InputGeoPoint"}],type:"InputMedia"},{id:4171988475,predicate:"inputMediaContact",params:[{name:"phone_number",type:"string"},{name:"first_name",type:"string"},{name:"last_name",type:"string"},{name:"vcard",type:"string"}],type:"InputMedia"},{id:1530447553,predicate:"inputMediaUploadedDocument",params:[{name:"flags",type:"#"},{name:"nosound_video",type:"flags.3?true"},{name:"file",type:"InputFile"},{name:"thumb",type:"flags.2?InputFile"},{name:"mime_type",type:"string"},{name:"attributes",type:"Vector<DocumentAttribute>"},{name:"stickers",type:"flags.0?Vector<InputDocument>"},{name:"ttl_seconds",type:"flags.1?int"}],type:"InputMedia"},{id:598418386,predicate:"inputMediaDocument",params:[{name:"flags",type:"#"},{name:"id",type:"InputDocument"},{name:"ttl_seconds",type:"flags.0?int"}],type:"InputMedia"},{id:3242007569,predicate:"inputMediaVenue",params:[{name:"geo_point",type:"InputGeoPoint"},{name:"title",type:"string"},{name:"address",type:"string"},{name:"provider",type:"string"},{name:"venue_id",type:"string"},{name:"venue_type",type:"string"}],type:"InputMedia"},{id:1212395773,predicate:"inputMediaGifExternal",params:[{name:"url",type:"string"},{name:"q",type:"string"}],type:"InputMedia"},{id:3854302746,predicate:"inputMediaPhotoExternal",params:[{name:"flags",type:"#"},{name:"url",type:"string"},{name:"ttl_seconds",type:"flags.0?int"}],type:"InputMedia"},{id:4216511641,predicate:"inputMediaDocumentExternal",params:[{name:"flags",type:"#"},{name:"url",type:"string"},{name:"ttl_seconds",type:"flags.0?int"}],type:"InputMedia"},{id:3544138739,predicate:"inputMediaGame",params:[{name:"id",type:"InputGame"}],type:"InputMedia"},{id:4108359363,predicate:"inputMediaInvoice",params:[{name:"flags",type:"#"},{name:"title",type:"string"},{name:"description",type:"string"},{name:"photo",type:"flags.0?InputWebDocument"},{name:"invoice",type:"Invoice"},{name:"payload",type:"bytes"},{name:"provider",type:"string"},{name:"provider_data",type:"DataJSON"},{name:"start_param",type:"string"}],type:"InputMedia"},{id:3461251837,predicate:"inputMediaGeoLive",params:[{name:"flags",type:"#"},{name:"stopped",type:"flags.0?true"},{name:"geo_point",type:"InputGeoPoint"},{name:"period",type:"flags.1?int"}],type:"InputMedia"},{id:261416433,predicate:"inputMediaPoll",params:[{name:"flags",type:"#"},{name:"poll",type:"Poll"},{name:"correct_answers",type:"flags.0?Vector<bytes>"},{name:"solution",type:"flags.1?string"},{name:"solution_entities",type:"flags.1?Vector<MessageEntity>"}],type:"InputMedia"},{id:3866083195,predicate:"inputMediaDice",params:[{name:"emoticon",type:"string"}],type:"InputMedia"},{id:480546647,predicate:"inputChatPhotoEmpty",params:[],type:"InputChatPhoto"},{id:2457621940,predicate:"inputChatUploadedPhoto",params:[{name:"file",type:"InputFile"}],type:"InputChatPhoto"},{id:2303962423,predicate:"inputChatPhoto",params:[{name:"id",type:"InputPhoto"}],type:"InputChatPhoto"},{id:3837862870,predicate:"inputGeoPointEmpty",params:[],type:"InputGeoPoint"},{id:4088900809,predicate:"inputGeoPoint",params:[{name:"lat",type:"double"},{name:"long",type:"double"}],type:"InputGeoPoint"},{id:483901197,predicate:"inputPhotoEmpty",params:[],type:"InputPhoto"},{id:1001634122,predicate:"inputPhoto",params:[{name:"id",type:"long"},{name:"access_hash",type:"long"},{name:"file_reference",type:"bytes"}],type:"InputPhoto"},{id:3755650017,predicate:"inputFileLocation",params:[{name:"volume_id",type:"long"},{name:"local_id",type:"int"},{name:"secret",type:"long"},{name:"file_reference",type:"bytes"}],type:"InputFileLocation"},{id:4112735573,predicate:"inputEncryptedFileLocation",params:[{name:"id",type:"long"},{name:"access_hash",type:"long"}],type:"InputFileLocation"},{id:3134223748,predicate:"inputDocumentFileLocation",params:[{name:"id",type:"long"},{name:"access_hash",type:"long"},{name:"file_reference",type:"bytes"},{name:"thumb_size",type:"string"}],type:"InputFileLocation"},{id:3418877480,predicate:"inputSecureFileLocation",params:[{name:"id",type:"long"},{name:"access_hash",type:"long"}],type:"InputFileLocation"},{id:700340377,predicate:"inputTakeoutFileLocation",params:[],type:"InputFileLocation"},{id:1075322878,predicate:"inputPhotoFileLocation",params:[{name:"id",type:"long"},{name:"access_hash",type:"long"},{name:"file_reference",type:"bytes"},{name:"thumb_size",type:"string"}],type:"InputFileLocation"},{id:3627312883,predicate:"inputPhotoLegacyFileLocation",params:[{name:"id",type:"long"},{name:"access_hash",type:"long"},{name:"file_reference",type:"bytes"},{name:"volume_id",type:"long"},{name:"local_id",type:"int"},{name:"secret",type:"long"}],type:"InputFileLocation"},{id:668375447,predicate:"inputPeerPhotoFileLocation",params:[{name:"flags",type:"#"},{name:"big",type:"flags.0?true"},{name:"peer",type:"InputPeer"},{name:"volume_id",type:"long"},{name:"local_id",type:"int"}],type:"InputFileLocation"},{id:230353641,predicate:"inputStickerSetThumb",params:[{name:"stickerset",type:"InputStickerSet"},{name:"volume_id",type:"long"},{name:"local_id",type:"int"}],type:"InputFileLocation"},{id:2645671021,predicate:"peerUser",params:[{name:"user_id",type:"int"}],type:"Peer"},{id:3134252475,predicate:"peerChat",params:[{name:"chat_id",type:"int"}],type:"Peer"},{id:3185435954,predicate:"peerChannel",params:[{name:"channel_id",type:"int"}],type:"Peer"},{id:2861972229,predicate:"storage.fileUnknown",params:[],type:"storage.FileType"},{id:1086091090,predicate:"storage.filePartial",params:[],type:"storage.FileType"},{id:8322574,predicate:"storage.fileJpeg",params:[],type:"storage.FileType"},{id:3403786975,predicate:"storage.fileGif",params:[],type:"storage.FileType"},{id:172975040,predicate:"storage.filePng",params:[],type:"storage.FileType"},{id:2921222285,predicate:"storage.filePdf",params:[],type:"storage.FileType"},{id:1384777335,predicate:"storage.fileMp3",params:[],type:"storage.FileType"},{id:1258941372,predicate:"storage.fileMov",params:[],type:"storage.FileType"},{id:3016663268,predicate:"storage.fileMp4",params:[],type:"storage.FileType"},{id:276907596,predicate:"storage.fileWebp",params:[],type:"storage.FileType"},{id:537022650,predicate:"userEmpty",params:[{name:"id",type:"int"}],type:"User"},{id:2474924225,predicate:"user",params:[{name:"flags",type:"#"},{name:"self",type:"flags.10?true"},{name:"contact",type:"flags.11?true"},{name:"mutual_contact",type:"flags.12?true"},{name:"deleted",type:"flags.13?true"},{name:"bot",type:"flags.14?true"},{name:"bot_chat_history",type:"flags.15?true"},{name:"bot_nochats",type:"flags.16?true"},{name:"verified",type:"flags.17?true"},{name:"restricted",type:"flags.18?true"},{name:"min",type:"flags.20?true"},{name:"bot_inline_geo",type:"flags.21?true"},{name:"support",type:"flags.23?true"},{name:"scam",type:"flags.24?true"},{name:"id",type:"int"},{name:"access_hash",type:"flags.0?long"},{name:"first_name",type:"flags.1?string"},{name:"last_name",type:"flags.2?string"},{name:"username",type:"flags.3?string"},{name:"phone",type:"flags.4?string"},{name:"photo",type:"flags.5?UserProfilePhoto"},{name:"status",type:"flags.6?UserStatus"},{name:"bot_info_version",type:"flags.14?int"},{name:"restriction_reason",type:"flags.18?Vector<RestrictionReason>"},{name:"bot_inline_placeholder",type:"flags.19?string"},{name:"lang_code",type:"flags.22?string"}],type:"User"},{id:1326562017,predicate:"userProfilePhotoEmpty",params:[],type:"UserProfilePhoto"},{id:3973537164,predicate:"userProfilePhoto",params:[{name:"photo_id",type:"long"},{name:"photo_small",type:"FileLocation"},{name:"photo_big",type:"FileLocation"},{name:"dc_id",type:"int"}],type:"UserProfilePhoto"},{id:164646985,predicate:"userStatusEmpty",params:[],type:"UserStatus"},{id:3988339017,predicate:"userStatusOnline",params:[{name:"expires",type:"int"}],type:"UserStatus"},{id:9203775,predicate:"userStatusOffline",params:[{name:"was_online",type:"int"}],type:"UserStatus"},{id:3798942449,predicate:"userStatusRecently",params:[],type:"UserStatus"},{id:129960444,predicate:"userStatusLastWeek",params:[],type:"UserStatus"},{id:2011940674,predicate:"userStatusLastMonth",params:[],type:"UserStatus"},{id:2611140608,predicate:"chatEmpty",params:[{name:"id",type:"int"}],type:"Chat"},{id:1004149726,predicate:"chat",params:[{name:"flags",type:"#"},{name:"creator",type:"flags.0?true"},{name:"kicked",type:"flags.1?true"},{name:"left",type:"flags.2?true"},{name:"deactivated",type:"flags.5?true"},{name:"id",type:"int"},{name:"title",type:"string"},{name:"photo",type:"ChatPhoto"},{name:"participants_count",type:"int"},{name:"date",type:"int"},{name:"version",type:"int"},{name:"migrated_to",type:"flags.6?InputChannel"},{name:"admin_rights",type:"flags.14?ChatAdminRights"},{name:"default_banned_rights",type:"flags.18?ChatBannedRights"}],type:"Chat"},{id:120753115,predicate:"chatForbidden",params:[{name:"id",type:"int"},{name:"title",type:"string"}],type:"Chat"},{id:3541734942,predicate:"channel",params:[{name:"flags",type:"#"},{name:"creator",type:"flags.0?true"},{name:"left",type:"flags.2?true"},{name:"broadcast",type:"flags.5?true"},{name:"verified",type:"flags.7?true"},{name:"megagroup",type:"flags.8?true"},{name:"restricted",type:"flags.9?true"},{name:"signatures",type:"flags.11?true"},{name:"min",type:"flags.12?true"},{name:"scam",type:"flags.19?true"},{name:"has_link",type:"flags.20?true"},{name:"has_geo",type:"flags.21?true"},{name:"slowmode_enabled",type:"flags.22?true"},{name:"id",type:"int"},{name:"access_hash",type:"flags.13?long"},{name:"title",type:"string"},{name:"username",type:"flags.6?string"},{name:"photo",type:"ChatPhoto"},{name:"date",type:"int"},{name:"version",type:"int"},{name:"restriction_reason",type:"flags.9?Vector<RestrictionReason>"},{name:"admin_rights",type:"flags.14?ChatAdminRights"},{name:"banned_rights",type:"flags.15?ChatBannedRights"},{name:"default_banned_rights",type:"flags.18?ChatBannedRights"},{name:"participants_count",type:"flags.17?int"}],type:"Chat"},{id:681420594,predicate:"channelForbidden",params:[{name:"flags",type:"#"},{name:"broadcast",type:"flags.5?true"},{name:"megagroup",type:"flags.8?true"},{name:"id",type:"int"},{name:"access_hash",type:"long"},{name:"title",type:"string"},{name:"until_date",type:"flags.16?int"}],type:"Chat"},{id:461151667,predicate:"chatFull",params:[{name:"flags",type:"#"},{name:"can_set_username",type:"flags.7?true"},{name:"has_scheduled",type:"flags.8?true"},{name:"id",type:"int"},{name:"about",type:"string"},{name:"participants",type:"ChatParticipants"},{name:"chat_photo",type:"flags.2?Photo"},{name:"notify_settings",type:"PeerNotifySettings"},{name:"exported_invite",type:"ExportedChatInvite"},{name:"bot_info",type:"flags.3?Vector<BotInfo>"},{name:"pinned_msg_id",type:"flags.6?int"},{name:"folder_id",type:"flags.11?int"}],type:"ChatFull"},{id:4041631530,predicate:"channelFull",params:[{name:"flags",type:"#"},{name:"can_view_participants",type:"flags.3?true"},{name:"can_set_username",type:"flags.6?true"},{name:"can_set_stickers",type:"flags.7?true"},{name:"hidden_prehistory",type:"flags.10?true"},{name:"can_view_stats",type:"flags.12?true"},{name:"can_set_location",type:"flags.16?true"},{name:"has_scheduled",type:"flags.19?true"},{name:"id",type:"int"},{name:"about",type:"string"},{name:"participants_count",type:"flags.0?int"},{name:"admins_count",type:"flags.1?int"},{name:"kicked_count",type:"flags.2?int"},{name:"banned_count",type:"flags.2?int"},{name:"online_count",type:"flags.13?int"},{name:"read_inbox_max_id",type:"int"},{name:"read_outbox_max_id",type:"int"},{name:"unread_count",type:"int"},{name:"chat_photo",type:"Photo"},{name:"notify_settings",type:"PeerNotifySettings"},{name:"exported_invite",type:"ExportedChatInvite"},{name:"bot_info",type:"Vector<BotInfo>"},{name:"migrated_from_chat_id",type:"flags.4?int"},{name:"migrated_from_max_id",type:"flags.4?int"},{name:"pinned_msg_id",type:"flags.5?int"},{name:"stickerset",type:"flags.8?StickerSet"},{name:"available_min_id",type:"flags.9?int"},{name:"folder_id",type:"flags.11?int"},{name:"linked_chat_id",type:"flags.14?int"},{name:"location",type:"flags.15?ChannelLocation"},{name:"slowmode_seconds",type:"flags.17?int"},{name:"slowmode_next_send_date",type:"flags.18?int"},{name:"stats_dc",type:"flags.12?int"},{name:"pts",type:"int"}],type:"ChatFull"},{id:3369552190,predicate:"chatParticipant",params:[{name:"user_id",type:"int"},{name:"inviter_id",type:"int"},{name:"date",type:"int"}],type:"ChatParticipant"},{id:3658699658,predicate:"chatParticipantCreator",params:[{name:"user_id",type:"int"}],type:"ChatParticipant"},{id:3805733942,predicate:"chatParticipantAdmin",params:[{name:"user_id",type:"int"},{name:"inviter_id",type:"int"},{name:"date",type:"int"}],type:"ChatParticipant"},{id:4237298731,predicate:"chatParticipantsForbidden",params:[{name:"flags",type:"#"},{name:"chat_id",type:"int"},{name:"self_participant",type:"flags.0?ChatParticipant"}],type:"ChatParticipants"},{id:1061556205,predicate:"chatParticipants",params:[{name:"chat_id",type:"int"},{name:"participants",type:"Vector<ChatParticipant>"},{name:"version",type:"int"}],type:"ChatParticipants"},{id:935395612,predicate:"chatPhotoEmpty",params:[],type:"ChatPhoto"},{id:1197267925,predicate:"chatPhoto",params:[{name:"photo_small",type:"FileLocation"},{name:"photo_big",type:"FileLocation"},{name:"dc_id",type:"int"}],type:"ChatPhoto"},{id:2212879956,predicate:"messageEmpty",params:[{name:"id",type:"int"}],type:"Message"},{id:1160515173,predicate:"message",params:[{name:"flags",type:"#"},{name:"out",type:"flags.1?true"},{name:"mentioned",type:"flags.4?true"},{name:"media_unread",type:"flags.5?true"},{name:"silent",type:"flags.13?true"},{name:"post",type:"flags.14?true"},{name:"from_scheduled",type:"flags.18?true"},{name:"legacy",type:"flags.19?true"},{name:"edit_hide",type:"flags.21?true"},{name:"id",type:"int"},{name:"from_id",type:"flags.8?int"},{name:"to_id",type:"Peer"},{name:"fwd_from",type:"flags.2?MessageFwdHeader"},{name:"via_bot_id",type:"flags.11?int"},{name:"reply_to_msg_id",type:"flags.3?int"},{name:"date",type:"int"},{name:"message",type:"string"},{name:"media",type:"flags.9?MessageMedia"},{name:"reply_markup",type:"flags.6?ReplyMarkup"},{name:"entities",type:"flags.7?Vector<MessageEntity>"},{name:"views",type:"flags.10?int"},{name:"edit_date",type:"flags.15?int"},{name:"post_author",type:"flags.16?string"},{name:"grouped_id",type:"flags.17?long"},{name:"restriction_reason",type:"flags.22?Vector<RestrictionReason>"}],type:"Message"},{id:2652479990,predicate:"messageService",params:[{name:"flags",type:"#"},{name:"out",type:"flags.1?true"},{name:"mentioned",type:"flags.4?true"},{name:"media_unread",type:"flags.5?true"},{name:"silent",type:"flags.13?true"},{name:"post",type:"flags.14?true"},{name:"legacy",type:"flags.19?true"},{name:"id",type:"int"},{name:"from_id",type:"flags.8?int"},{name:"to_id",type:"Peer"},{name:"reply_to_msg_id",type:"flags.3?int"},{name:"date",type:"int"},{name:"action",type:"MessageAction"}],type:"Message"},{id:1038967584,predicate:"messageMediaEmpty",params:[],type:"MessageMedia"},{id:1766936791,predicate:"messageMediaPhoto",params:[{name:"flags",type:"#"},{name:"photo",type:"flags.0?Photo"},{name:"ttl_seconds",type:"flags.2?int"}],type:"MessageMedia"},{id:1457575028,predicate:"messageMediaGeo",params:[{name:"geo",type:"GeoPoint"}],type:"MessageMedia"},{id:3421653312,predicate:"messageMediaContact",params:[{name:"phone_number",type:"string"},{name:"first_name",type:"string"},{name:"last_name",type:"string"},{name:"vcard",type:"string"},{name:"user_id",type:"int"}],type:"MessageMedia"},{id:2676290718,predicate:"messageMediaUnsupported",params:[],type:"MessageMedia"},{id:2628808919,predicate:"messageMediaDocument",params:[{name:"flags",type:"#"},{name:"document",type:"flags.0?Document"},{name:"ttl_seconds",type:"flags.2?int"}],type:"MessageMedia"},{id:2737690112,predicate:"messageMediaWebPage",params:[{name:"webpage",type:"WebPage"}],type:"MessageMedia"},{id:784356159,predicate:"messageMediaVenue",params:[{name:"geo",type:"GeoPoint"},{name:"title",type:"string"},{name:"address",type:"string"},{name:"provider",type:"string"},{name:"venue_id",type:"string"},{name:"venue_type",type:"string"}],type:"MessageMedia"},{id:4256272392,predicate:"messageMediaGame",params:[{name:"game",type:"Game"}],type:"MessageMedia"},{id:2220168007,predicate:"messageMediaInvoice",params:[{name:"flags",type:"#"},{name:"shipping_address_requested",type:"flags.1?true"},{name:"test",type:"flags.3?true"},{name:"title",type:"string"},{name:"description",type:"string"},{name:"photo",type:"flags.0?WebDocument"},{name:"receipt_msg_id",type:"flags.2?int"},{name:"currency",type:"string"},{name:"total_amount",type:"long"},{name:"start_param",type:"string"}],type:"MessageMedia"},{id:2084316681,predicate:"messageMediaGeoLive",params:[{name:"geo",type:"GeoPoint"},{name:"period",type:"int"}],type:"MessageMedia"},{id:1272375192,predicate:"messageMediaPoll",params:[{name:"poll",type:"Poll"},{name:"results",type:"PollResults"}],type:"MessageMedia"},{id:1065280907,predicate:"messageMediaDice",params:[{name:"value",type:"int"},{name:"emoticon",type:"string"}],type:"MessageMedia"},{id:3064919984,predicate:"messageActionEmpty",params:[],type:"MessageAction"},{id:2791541658,predicate:"messageActionChatCreate",params:[{name:"title",type:"string"},{name:"users",type:"Vector<int>"}],type:"MessageAction"},{id:3047280218,predicate:"messageActionChatEditTitle",params:[{name:"title",type:"string"}],type:"MessageAction"},{id:2144015272,predicate:"messageActionChatEditPhoto",params:[{name:"photo",type:"Photo"}],type:"MessageAction"},{id:2514746351,predicate:"messageActionChatDeletePhoto",params:[],type:"MessageAction"},{id:1217033015,predicate:"messageActionChatAddUser",params:[{name:"users",type:"Vector<int>"}],type:"MessageAction"},{id:2997787404,predicate:"messageActionChatDeleteUser",params:[{name:"user_id",type:"int"}],type:"MessageAction"},{id:4171036136,predicate:"messageActionChatJoinedByLink",params:[{name:"inviter_id",type:"int"}],type:"MessageAction"},{id:2513611922,predicate:"messageActionChannelCreate",params:[{name:"title",type:"string"}],type:"MessageAction"},{id:1371385889,predicate:"messageActionChatMigrateTo",params:[{name:"channel_id",type:"int"}],type:"MessageAction"},{id:2958420718,predicate:"messageActionChannelMigrateFrom",params:[{name:"title",type:"string"},{name:"chat_id",type:"int"}],type:"MessageAction"},{id:2495428845,predicate:"messageActionPinMessage",params:[],type:"MessageAction"},{id:2679813636,predicate:"messageActionHistoryClear",params:[],type:"MessageAction"},{id:2460428406,predicate:"messageActionGameScore",params:[{name:"game_id",type:"long"},{name:"score",type:"int"}],type:"MessageAction"},{id:2402399015,predicate:"messageActionPaymentSentMe",params:[{name:"flags",type:"#"},{name:"currency",type:"string"},{name:"total_amount",type:"long"},{name:"payload",type:"bytes"},{name:"info",type:"flags.0?PaymentRequestedInfo"},{name:"shipping_option_id",type:"flags.1?string"},{name:"charge",type:"PaymentCharge"}],type:"MessageAction"},{id:1080663248,predicate:"messageActionPaymentSent",params:[{name:"currency",type:"string"},{name:"total_amount",type:"long"}],type:"MessageAction"},{id:2162236031,predicate:"messageActionPhoneCall",params:[{name:"flags",type:"#"},{name:"video",type:"flags.2?true"},{name:"call_id",type:"long"},{name:"reason",type:"flags.0?PhoneCallDiscardReason"},{name:"duration",type:"flags.1?int"}],type:"MessageAction"},{id:1200788123,predicate:"messageActionScreenshotTaken",params:[],type:"MessageAction"},{id:4209418070,predicate:"messageActionCustomAction",params:[{name:"message",type:"string"}],type:"MessageAction"},{id:2884218878,predicate:"messageActionBotAllowed",params:[{name:"domain",type:"string"}],type:"MessageAction"},{id:455635795,predicate:"messageActionSecureValuesSentMe",params:[{name:"values",type:"Vector<SecureValue>"},{name:"credentials",type:"SecureCredentialsEncrypted"}],type:"MessageAction"},{id:3646710100,predicate:"messageActionSecureValuesSent",params:[{name:"types",type:"Vector<SecureValueType>"}],type:"MessageAction"},{id:4092747638,predicate:"messageActionContactSignUp",params:[],type:"MessageAction"},{id:739712882,predicate:"dialog",params:[{name:"flags",type:"#"},{name:"pinned",type:"flags.2?true"},{name:"unread_mark",type:"flags.3?true"},{name:"peer",type:"Peer"},{name:"top_message",type:"int"},{name:"read_inbox_max_id",type:"int"},{name:"read_outbox_max_id",type:"int"},{name:"unread_count",type:"int"},{name:"unread_mentions_count",type:"int"},{name:"notify_settings",type:"PeerNotifySettings"},{name:"pts",type:"flags.0?int"},{name:"draft",type:"flags.1?DraftMessage"},{name:"folder_id",type:"flags.4?int"}],type:"Dialog"},{id:1908216652,predicate:"dialogFolder",params:[{name:"flags",type:"#"},{name:"pinned",type:"flags.2?true"},{name:"folder",type:"Folder"},{name:"peer",type:"Peer"},{name:"top_message",type:"int"},{name:"unread_muted_peers_count",type:"int"},{name:"unread_unmuted_peers_count",type:"int"},{name:"unread_muted_messages_count",type:"int"},{name:"unread_unmuted_messages_count",type:"int"}],type:"Dialog"},{id:590459437,predicate:"photoEmpty",params:[{name:"id",type:"long"}],type:"Photo"},{id:3497329829,predicate:"photo",params:[{name:"flags",type:"#"},{name:"has_stickers",type:"flags.0?true"},{name:"id",type:"long"},{name:"access_hash",type:"long"},{name:"file_reference",type:"bytes"},{name:"date",type:"int"},{name:"sizes",type:"Vector<PhotoSize>"},{name:"dc_id",type:"int"}],type:"Photo"},{id:236446268,predicate:"photoSizeEmpty",params:[{name:"type",type:"string"}],type:"PhotoSize"},{id:2009052699,predicate:"photoSize",params:[{name:"type",type:"string"},{name:"location",type:"FileLocation"},{name:"w",type:"int"},{name:"h",type:"int"},{name:"size",type:"int"}],type:"PhotoSize"},{id:3920049402,predicate:"photoCachedSize",params:[{name:"type",type:"string"},{name:"location",type:"FileLocation"},{name:"w",type:"int"},{name:"h",type:"int"},{name:"bytes",type:"bytes"}],type:"PhotoSize"},{id:3769678894,predicate:"photoStrippedSize",params:[{name:"type",type:"string"},{name:"bytes",type:"bytes"}],type:"PhotoSize"},{id:286776671,predicate:"geoPointEmpty",params:[],type:"GeoPoint"},{id:43446532,predicate:"geoPoint",params:[{name:"long",type:"double"},{name:"lat",type:"double"},{name:"access_hash",type:"long"}],type:"GeoPoint"},{id:1577067778,predicate:"auth.sentCode",params:[{name:"flags",type:"#"},{name:"type",type:"auth.SentCodeType"},{name:"phone_code_hash",type:"string"},{name:"next_type",type:"flags.1?auth.CodeType"},{name:"timeout",type:"flags.2?int"}],type:"auth.SentCode"},{id:3439659286,predicate:"auth.authorization",params:[{name:"flags",type:"#"},{name:"tmp_sessions",type:"flags.0?int"},{name:"user",type:"User"}],type:"auth.Authorization"},{id:1148485274,predicate:"auth.authorizationSignUpRequired",params:[{name:"flags",type:"#"},{name:"terms_of_service",type:"flags.0?help.TermsOfService"}],type:"auth.Authorization"},{id:3751189549,predicate:"auth.exportedAuthorization",params:[{name:"id",type:"int"},{name:"bytes",type:"bytes"}],type:"auth.ExportedAuthorization"},{id:3099351820,predicate:"inputNotifyPeer",params:[{name:"peer",type:"InputPeer"}],type:"InputNotifyPeer"},{id:423314455,predicate:"inputNotifyUsers",params:[],type:"InputNotifyPeer"},{id:1251338318,predicate:"inputNotifyChats",params:[],type:"InputNotifyPeer"},{id:2983951486,predicate:"inputNotifyBroadcasts",params:[],type:"InputNotifyPeer"},{id:2621249934,predicate:"inputPeerNotifySettings",params:[{name:"flags",type:"#"},{name:"show_previews",type:"flags.0?Bool"},{name:"silent",type:"flags.1?Bool"},{name:"mute_until",type:"flags.2?int"},{name:"sound",type:"flags.3?string"}],type:"InputPeerNotifySettings"},{id:2941295904,predicate:"peerNotifySettings",params:[{name:"flags",type:"#"},{name:"show_previews",type:"flags.0?Bool"},{name:"silent",type:"flags.1?Bool"},{name:"mute_until",type:"flags.2?int"},{name:"sound",type:"flags.3?string"}],type:"PeerNotifySettings"},{id:2172921549,predicate:"peerSettings",params:[{name:"flags",type:"#"},{name:"report_spam",type:"flags.0?true"},{name:"add_contact",type:"flags.1?true"},{name:"block_contact",type:"flags.2?true"},{name:"share_contact",type:"flags.3?true"},{name:"need_contacts_exception",type:"flags.4?true"},{name:"report_geo",type:"flags.5?true"}],type:"PeerSettings"},{id:2755118061,predicate:"wallPaper",params:[{name:"id",type:"long"},{name:"flags",type:"#"},{name:"creator",type:"flags.0?true"},{name:"default",type:"flags.1?true"},{name:"pattern",type:"flags.3?true"},{name:"dark",type:"flags.4?true"},{name:"access_hash",type:"long"},{name:"slug",type:"string"},{name:"document",type:"Document"},{name:"settings",type:"flags.2?WallPaperSettings"}],type:"WallPaper"},{id:2331249445,predicate:"wallPaperNoFile",params:[{name:"flags",type:"#"},{name:"default",type:"flags.1?true"},{name:"dark",type:"flags.4?true"},{name:"settings",type:"flags.2?WallPaperSettings"}],type:"WallPaper"},{id:1490799288,predicate:"inputReportReasonSpam",params:[],type:"ReportReason"},{id:505595789,predicate:"inputReportReasonViolence",params:[],type:"ReportReason"},{id:777640226,predicate:"inputReportReasonPornography",params:[],type:"ReportReason"},{id:2918469347,predicate:"inputReportReasonChildAbuse",params:[],type:"ReportReason"},{id:3782503690,predicate:"inputReportReasonOther",params:[{name:"text",type:"string"}],type:"ReportReason"},{id:2609510714,predicate:"inputReportReasonCopyright",params:[],type:"ReportReason"},{id:3688169197,predicate:"inputReportReasonGeoIrrelevant",params:[],type:"ReportReason"},{id:3992026130,predicate:"userFull",params:[{name:"flags",type:"#"},{name:"blocked",type:"flags.0?true"},{name:"phone_calls_available",type:"flags.4?true"},{name:"phone_calls_private",type:"flags.5?true"},{name:"can_pin_message",type:"flags.7?true"},{name:"has_scheduled",type:"flags.12?true"},{name:"user",type:"User"},{name:"about",type:"flags.1?string"},{name:"settings",type:"PeerSettings"},{name:"profile_photo",type:"flags.2?Photo"},{name:"notify_settings",type:"PeerNotifySettings"},{name:"bot_info",type:"flags.3?BotInfo"},{name:"pinned_msg_id",type:"flags.6?int"},{name:"common_chats_count",type:"int"},{name:"folder_id",type:"flags.11?int"}],type:"UserFull"},{id:4178692500,predicate:"contact",params:[{name:"user_id",type:"int"},{name:"mutual",type:"Bool"}],type:"Contact"},{id:3489825848,predicate:"importedContact",params:[{name:"user_id",type:"int"},{name:"client_id",type:"long"}],type:"ImportedContact"},{id:1444661369,predicate:"contactBlocked",params:[{name:"user_id",type:"int"},{name:"date",type:"int"}],type:"ContactBlocked"},{id:3546811489,predicate:"contactStatus",params:[{name:"user_id",type:"int"},{name:"status",type:"UserStatus"}],type:"ContactStatus"},{id:3075189202,predicate:"contacts.contactsNotModified",params:[],type:"contacts.Contacts"},{id:3941105218,predicate:"contacts.contacts",params:[{name:"contacts",type:"Vector<Contact>"},{name:"saved_count",type:"int"},{name:"users",type:"Vector<User>"}],type:"contacts.Contacts"},{id:2010127419,predicate:"contacts.importedContacts",params:[{name:"imported",type:"Vector<ImportedContact>"},{name:"popular_invites",type:"Vector<PopularContact>"},{name:"retry_contacts",type:"Vector<long>"},{name:"users",type:"Vector<User>"}],type:"contacts.ImportedContacts"},{id:471043349,predicate:"contacts.blocked",params:[{name:"blocked",type:"Vector<ContactBlocked>"},{name:"users",type:"Vector<User>"}],type:"contacts.Blocked"},{id:2416444065,predicate:"contacts.blockedSlice",params:[{name:"count",type:"int"},{name:"blocked",type:"Vector<ContactBlocked>"},{name:"users",type:"Vector<User>"}],type:"contacts.Blocked"},{id:364538944,predicate:"messages.dialogs",params:[{name:"dialogs",type:"Vector<Dialog>"},{name:"messages",type:"Vector<Message>"},{name:"chats",type:"Vector<Chat>"},{name:"users",type:"Vector<User>"}],type:"messages.Dialogs"},{id:1910543603,predicate:"messages.dialogsSlice",params:[{name:"count",type:"int"},{name:"dialogs",type:"Vector<Dialog>"},{name:"messages",type:"Vector<Message>"},{name:"chats",type:"Vector<Chat>"},{name:"users",type:"Vector<User>"}],type:"messages.Dialogs"},{id:4041467286,predicate:"messages.dialogsNotModified",params:[{name:"count",type:"int"}],type:"messages.Dialogs"},{id:2356252295,predicate:"messages.messages",params:[{name:"messages",type:"Vector<Message>"},{name:"chats",type:"Vector<Chat>"},{name:"users",type:"Vector<User>"}],type:"messages.Messages"},{id:3371027998,predicate:"messages.messagesSlice",params:[{name:"flags",type:"#"},{name:"inexact",type:"flags.1?true"},{name:"count",type:"int"},{name:"next_rate",type:"flags.0?int"},{name:"messages",type:"Vector<Message>"},{name:"chats",type:"Vector<Chat>"},{name:"users",type:"Vector<User>"}],type:"messages.Messages"},{id:2569416247,predicate:"messages.channelMessages",params:[{name:"flags",type:"#"},{name:"inexact",type:"flags.1?true"},{name:"pts",type:"int"},{name:"count",type:"int"},{name:"messages",type:"Vector<Message>"},{name:"chats",type:"Vector<Chat>"},{name:"users",type:"Vector<User>"}],type:"messages.Messages"},{id:1951620897,predicate:"messages.messagesNotModified",params:[{name:"count",type:"int"}],type:"messages.Messages"},{id:1694474197,predicate:"messages.chats",params:[{name:"chats",type:"Vector<Chat>"}],type:"messages.Chats"},{id:2631405892,predicate:"messages.chatsSlice",params:[{name:"count",type:"int"},{name:"chats",type:"Vector<Chat>"}],type:"messages.Chats"},{id:3856126364,predicate:"messages.chatFull",params:[{name:"full_chat",type:"ChatFull"},{name:"chats",type:"Vector<Chat>"},{name:"users",type:"Vector<User>"}],type:"messages.ChatFull"},{id:3025955281,predicate:"messages.affectedHistory",params:[{name:"pts",type:"int"},{name:"pts_count",type:"int"},{name:"offset",type:"int"}],type:"messages.AffectedHistory"},{id:1474492012,predicate:"inputMessagesFilterEmpty",params:[],type:"MessagesFilter"},{id:2517214492,predicate:"inputMessagesFilterPhotos",params:[],type:"MessagesFilter"},{id:2680163941,predicate:"inputMessagesFilterVideo",params:[],type:"MessagesFilter"},{id:1458172132,predicate:"inputMessagesFilterPhotoVideo",params:[],type:"MessagesFilter"},{id:2665345416,predicate:"inputMessagesFilterDocument",params:[],type:"MessagesFilter"},{id:2129714567,predicate:"inputMessagesFilterUrl",params:[],type:"MessagesFilter"},{id:4291323271,predicate:"inputMessagesFilterGif",params:[],type:"MessagesFilter"},{id:1358283666,predicate:"inputMessagesFilterVoice",params:[],type:"MessagesFilter"},{id:928101534,predicate:"inputMessagesFilterMusic",params:[],type:"MessagesFilter"},{id:975236280,predicate:"inputMessagesFilterChatPhotos",params:[],type:"MessagesFilter"},{id:2160695144,predicate:"inputMessagesFilterPhoneCalls",params:[{name:"flags",type:"#"},{name:"missed",type:"flags.0?true"}],type:"MessagesFilter"},{id:2054952868,predicate:"inputMessagesFilterRoundVoice",params:[],type:"MessagesFilter"},{id:3041516115,predicate:"inputMessagesFilterRoundVideo",params:[],type:"MessagesFilter"},{id:3254314650,predicate:"inputMessagesFilterMyMentions",params:[],type:"MessagesFilter"},{id:3875695885,predicate:"inputMessagesFilterGeo",params:[],type:"MessagesFilter"},{id:3764575107,predicate:"inputMessagesFilterContacts",params:[],type:"MessagesFilter"},{id:522914557,predicate:"updateNewMessage",params:[{name:"message",type:"Message"},{name:"pts",type:"int"},{name:"pts_count",type:"int"}],type:"Update"},{id:1318109142,predicate:"updateMessageID",params:[{name:"id",type:"int"},{name:"random_id",type:"long"}],type:"Update"},{id:2718806245,predicate:"updateDeleteMessages",params:[{name:"messages",type:"Vector<int>"},{name:"pts",type:"int"},{name:"pts_count",type:"int"}],type:"Update"},{id:1548249383,predicate:"updateUserTyping",params:[{name:"user_id",type:"int"},{name:"action",type:"SendMessageAction"}],type:"Update"},{id:2590370335,predicate:"updateChatUserTyping",params:[{name:"chat_id",type:"int"},{name:"user_id",type:"int"},{name:"action",type:"SendMessageAction"}],type:"Update"},{id:125178264,predicate:"updateChatParticipants",params:[{name:"participants",type:"ChatParticipants"}],type:"Update"},{id:469489699,predicate:"updateUserStatus",params:[{name:"user_id",type:"int"},{name:"status",type:"UserStatus"}],type:"Update"},{id:2805148531,predicate:"updateUserName",params:[{name:"user_id",type:"int"},{name:"first_name",type:"string"},{name:"last_name",type:"string"},{name:"username",type:"string"}],type:"Update"},{id:2503031564,predicate:"updateUserPhoto",params:[{name:"user_id",type:"int"},{name:"date",type:"int"},{name:"photo",type:"UserProfilePhoto"},{name:"previous",type:"Bool"}],type:"Update"},{id:314359194,predicate:"updateNewEncryptedMessage",params:[{name:"message",type:"EncryptedMessage"},{name:"qts",type:"int"}],type:"Update"},{id:386986326,predicate:"updateEncryptedChatTyping",params:[{name:"chat_id",type:"int"}],type:"Update"},{id:3030575245,predicate:"updateEncryption",params:[{name:"chat",type:"EncryptedChat"},{name:"date",type:"int"}],type:"Update"},{id:956179895,predicate:"updateEncryptedMessagesRead",params:[{name:"chat_id",type:"int"},{name:"max_date",type:"int"},{name:"date",type:"int"}],type:"Update"},{id:3930787420,predicate:"updateChatParticipantAdd",params:[{name:"chat_id",type:"int"},{name:"user_id",type:"int"},{name:"inviter_id",type:"int"},{name:"date",type:"int"},{name:"version",type:"int"}],type:"Update"},{id:1851755554,predicate:"updateChatParticipantDelete",params:[{name:"chat_id",type:"int"},{name:"user_id",type:"int"},{name:"version",type:"int"}],type:"Update"},{id:2388564083,predicate:"updateDcOptions",params:[{name:"dc_options",type:"Vector<DcOption>"}],type:"Update"},{id:2163009562,predicate:"updateUserBlocked",params:[{name:"user_id",type:"int"},{name:"blocked",type:"Bool"}],type:"Update"},{id:3200411887,predicate:"updateNotifySettings",params:[{name:"peer",type:"NotifyPeer"},{name:"notify_settings",type:"PeerNotifySettings"}],type:"Update"},{id:3957614617,predicate:"updateServiceNotification",params:[{name:"flags",type:"#"},{name:"popup",type:"flags.0?true"},{name:"inbox_date",type:"flags.1?int"},{name:"type",type:"string"},{name:"message",type:"string"},{name:"media",type:"MessageMedia"},{name:"entities",type:"Vector<MessageEntity>"}],type:"Update"},{id:3996854058,predicate:"updatePrivacy",params:[{name:"key",type:"PrivacyKey"},{name:"rules",type:"Vector<PrivacyRule>"}],type:"Update"},{id:314130811,predicate:"updateUserPhone",params:[{name:"user_id",type:"int"},{name:"phone",type:"string"}],type:"Update"},{id:2627162079,predicate:"updateReadHistoryInbox",params:[{name:"flags",type:"#"},{name:"folder_id",type:"flags.0?int"},{name:"peer",type:"Peer"},{name:"max_id",type:"int"},{name:"still_unread_count",type:"int"},{name:"pts",type:"int"},{name:"pts_count",type:"int"}],type:"Update"},{id:791617983,predicate:"updateReadHistoryOutbox",params:[{name:"peer",type:"Peer"},{name:"max_id",type:"int"},{name:"pts",type:"int"},{name:"pts_count",type:"int"}],type:"Update"},{id:2139689491,predicate:"updateWebPage",params:[{name:"webpage",type:"WebPage"},{name:"pts",type:"int"},{name:"pts_count",type:"int"}],type:"Update"},{id:1757493555,predicate:"updateReadMessagesContents",params:[{name:"messages",type:"Vector<int>"},{name:"pts",type:"int"},{name:"pts_count",type:"int"}],type:"Update"},{id:3942934523,predicate:"updateChannelTooLong",params:[{name:"flags",type:"#"},{name:"channel_id",type:"int"},{name:"pts",type:"flags.0?int"}],type:"Update"},{id:3067369046,predicate:"updateChannel",params:[{name:"channel_id",type:"int"}],type:"Update"},{id:1656358105,predicate:"updateNewChannelMessage",params:[{name:"message",type:"Message"},{name:"pts",type:"int"},{name:"pts_count",type:"int"}],type:"Update"},{id:856380452,predicate:"updateReadChannelInbox",params:[{name:"flags",type:"#"},{name:"folder_id",type:"flags.0?int"},{name:"channel_id",type:"int"},{name:"max_id",type:"int"},{name:"still_unread_count",type:"int"},{name:"pts",type:"int"}],type:"Update"},{id:3279233481,predicate:"updateDeleteChannelMessages",params:[{name:"channel_id",type:"int"},{name:"messages",type:"Vector<int>"},{name:"pts",type:"int"},{name:"pts_count",type:"int"}],type:"Update"},{id:2560699211,predicate:"updateChannelMessageViews",params:[{name:"channel_id",type:"int"},{name:"id",type:"int"},{name:"views",type:"int"}],type:"Update"},{id:3062896985,predicate:"updateChatParticipantAdmin",params:[{name:"chat_id",type:"int"},{name:"user_id",type:"int"},{name:"is_admin",type:"Bool"},{name:"version",type:"int"}],type:"Update"},{id:1753886890,predicate:"updateNewStickerSet",params:[{name:"stickerset",type:"messages.StickerSet"}],type:"Update"},{id:196268545,predicate:"updateStickerSetsOrder",params:[{name:"flags",type:"#"},{name:"masks",type:"flags.0?true"},{name:"order",type:"Vector<long>"}],type:"Update"},{id:1135492588,predicate:"updateStickerSets",params:[],type:"Update"},{id:2473931806,predicate:"updateSavedGifs",params:[],type:"Update"},{id:1417832080,predicate:"updateBotInlineQuery",params:[{name:"flags",type:"#"},{name:"query_id",type:"long"},{name:"user_id",type:"int"},{name:"query",type:"string"},{name:"geo",type:"flags.0?GeoPoint"},{name:"offset",type:"string"}],type:"Update"},{id:239663460,predicate:"updateBotInlineSend",params:[{name:"flags",type:"#"},{name:"user_id",type:"int"},{name:"query",type:"string"},{name:"geo",type:"flags.0?GeoPoint"},{name:"id",type:"string"},{name:"msg_id",type:"flags.1?InputBotInlineMessageID"}],type:"Update"},{id:457133559,predicate:"updateEditChannelMessage",params:[{name:"message",type:"Message"},{name:"pts",type:"int"},{name:"pts_count",type:"int"}],type:"Update"},{id:2555978869,predicate:"updateChannelPinnedMessage",params:[{name:"channel_id",type:"int"},{name:"id",type:"int"}],type:"Update"},{id:3879028705,predicate:"updateBotCallbackQuery",params:[{name:"flags",type:"#"},{name:"query_id",type:"long"},{name:"user_id",type:"int"},{name:"peer",type:"Peer"},{name:"msg_id",type:"int"},{name:"chat_instance",type:"long"},{name:"data",type:"flags.0?bytes"},{name:"game_short_name",type:"flags.1?string"}],type:"Update"},{id:3825430691,predicate:"updateEditMessage",params:[{name:"message",type:"Message"},{name:"pts",type:"int"},{name:"pts_count",type:"int"}],type:"Update"},{id:4191320666,predicate:"updateInlineBotCallbackQuery",params:[{name:"flags",type:"#"},{name:"query_id",type:"long"},{name:"user_id",type:"int"},{name:"msg_id",type:"InputBotInlineMessageID"},{name:"chat_instance",type:"long"},{name:"data",type:"flags.0?bytes"},{name:"game_short_name",type:"flags.1?string"}],type:"Update"},{id:634833351,predicate:"updateReadChannelOutbox",params:[{name:"channel_id",type:"int"},{name:"max_id",type:"int"}],type:"Update"},{id:3995842921,predicate:"updateDraftMessage",params:[{name:"peer",type:"Peer"},{name:"draft",type:"DraftMessage"}],type:"Update"},{id:1461528386,predicate:"updateReadFeaturedStickers",params:[],type:"Update"},{id:2588027936,predicate:"updateRecentStickers",params:[],type:"Update"},{id:2720652550,predicate:"updateConfig",params:[],type:"Update"},{id:861169551,predicate:"updatePtsChanged",params:[],type:"Update"},{id:1081547008,predicate:"updateChannelWebPage",params:[{name:"channel_id",type:"int"},{name:"webpage",type:"WebPage"},{name:"pts",type:"int"},{name:"pts_count",type:"int"}],type:"Update"},{id:1852826908,predicate:"updateDialogPinned",params:[{name:"flags",type:"#"},{name:"pinned",type:"flags.0?true"},{name:"folder_id",type:"flags.1?int"},{name:"peer",type:"DialogPeer"}],type:"Update"},{id:4195302562,predicate:"updatePinnedDialogs",params:[{name:"flags",type:"#"},{name:"folder_id",type:"flags.1?int"},{name:"order",type:"flags.0?Vector<DialogPeer>"}],type:"Update"},{id:2199371971,predicate:"updateBotWebhookJSON",params:[{name:"data",type:"DataJSON"}],type:"Update"},{id:2610053286,predicate:"updateBotWebhookJSONQuery",params:[{name:"query_id",type:"long"},{name:"data",type:"DataJSON"},{name:"timeout",type:"int"}],type:"Update"},{id:3771582784,predicate:"updateBotShippingQuery",params:[{name:"query_id",type:"long"},{name:"user_id",type:"int"},{name:"payload",type:"bytes"},{name:"shipping_address",type:"PostAddress"}],type:"Update"},{id:1563376297,predicate:"updateBotPrecheckoutQuery",params:[{name:"flags",type:"#"},{name:"query_id",type:"long"},{name:"user_id",type:"int"},{name:"payload",type:"bytes"},{name:"info",type:"flags.0?PaymentRequestedInfo"},{name:"shipping_option_id",type:"flags.1?string"},{name:"currency",type:"string"},{name:"total_amount",type:"long"}],type:"Update"},{id:2869914398,predicate:"updatePhoneCall",params:[{name:"phone_call",type:"PhoneCall"}],type:"Update"},{id:1180041828,predicate:"updateLangPackTooLong",params:[{name:"lang_code",type:"string"}],type:"Update"},{id:1442983757,predicate:"updateLangPack",params:[{name:"difference",type:"LangPackDifference"}],type:"Update"},{id:3843135853,predicate:"updateFavedStickers",params:[],type:"Update"},{id:2307472197,predicate:"updateChannelReadMessagesContents",params:[{name:"channel_id",type:"int"},{name:"messages",type:"Vector<int>"}],type:"Update"},{id:1887741886,predicate:"updateContactsReset",params:[],type:"Update"},{id:1893427255,predicate:"updateChannelAvailableMessages",params:[{name:"channel_id",type:"int"},{name:"available_min_id",type:"int"}],type:"Update"},{id:3781450179,predicate:"updateDialogUnreadMark",params:[{name:"flags",type:"#"},{name:"unread",type:"flags.0?true"},{name:"peer",type:"DialogPeer"}],type:"Update"},{id:1279515160,predicate:"updateUserPinnedMessage",params:[{name:"user_id",type:"int"},{name:"id",type:"int"}],type:"Update"},{id:3775771465,predicate:"updateChatPinnedMessage",params:[{name:"chat_id",type:"int"},{name:"id",type:"int"},{name:"version",type:"int"}],type:"Update"},{id:2896258427,predicate:"updateMessagePoll",params:[{name:"flags",type:"#"},{name:"poll_id",type:"long"},{name:"poll",type:"flags.0?Poll"},{name:"results",type:"PollResults"}],type:"Update"},{id:1421875280,predicate:"updateChatDefaultBannedRights",params:[{name:"peer",type:"Peer"},{name:"default_banned_rights",type:"ChatBannedRights"},{name:"version",type:"int"}],type:"Update"},{id:422972864,predicate:"updateFolderPeers",params:[{name:"folder_peers",type:"Vector<FolderPeer>"},{name:"pts",type:"int"},{name:"pts_count",type:"int"}],type:"Update"},{id:1786671974,predicate:"updatePeerSettings",params:[{name:"peer",type:"Peer"},{name:"settings",type:"PeerSettings"}],type:"Update"},{id:3031420848,predicate:"updatePeerLocated",params:[{name:"peers",type:"Vector<PeerLocated>"}],type:"Update"},{id:967122427,predicate:"updateNewScheduledMessage",params:[{name:"message",type:"Message"}],type:"Update"},{id:2424728814,predicate:"updateDeleteScheduledMessages",params:[{name:"peer",type:"Peer"},{name:"messages",type:"Vector<int>"}],type:"Update"},{id:2182544291,predicate:"updateTheme",params:[{name:"theme",type:"Theme"}],type:"Update"},{id:2267003193,predicate:"updateGeoLiveViewed",params:[{name:"peer",type:"Peer"},{name:"msg_id",type:"int"}],type:"Update"},{id:1448076945,predicate:"updateLoginToken",params:[],type:"Update"},{id:1123585836,predicate:"updateMessagePollVote",params:[{name:"poll_id",type:"long"},{name:"user_id",type:"int"},{name:"options",type:"Vector<bytes>"}],type:"Update"},{id:654302845,predicate:"updateDialogFilter",params:[{name:"flags",type:"#"},{name:"id",type:"int"},{name:"filter",type:"flags.0?DialogFilter"}],type:"Update"},{id:2782339333,predicate:"updateDialogFilterOrder",params:[{name:"order",type:"Vector<int>"}],type:"Update"},{id:889491791,predicate:"updateDialogFilters",params:[],type:"Update"},{id:643940105,predicate:"updatePhoneCallSignalingData",params:[{name:"phone_call_id",type:"long"},{name:"data",type:"bytes"}],type:"Update"},{id:2775329342,predicate:"updates.state",params:[{name:"pts",type:"int"},{name:"qts",type:"int"},{name:"date",type:"int"},{name:"seq",type:"int"},{name:"unread_count",type:"int"}],type:"updates.State"},{id:1567990072,predicate:"updates.differenceEmpty",params:[{name:"date",type:"int"},{name:"seq",type:"int"}],type:"updates.Difference"},{id:16030880,predicate:"updates.difference",params:[{name:"new_messages",type:"Vector<Message>"},{name:"new_encrypted_messages",type:"Vector<EncryptedMessage>"},{name:"other_updates",type:"Vector<Update>"},{name:"chats",type:"Vector<Chat>"},{name:"users",type:"Vector<User>"},{name:"state",type:"updates.State"}],type:"updates.Difference"},{id:2835028353,predicate:"updates.differenceSlice",params:[{name:"new_messages",type:"Vector<Message>"},{name:"new_encrypted_messages",type:"Vector<EncryptedMessage>"},{name:"other_updates",type:"Vector<Update>"},{name:"chats",type:"Vector<Chat>"},{name:"users",type:"Vector<User>"},{name:"intermediate_state",type:"updates.State"}],type:"updates.Difference"},{id:1258196845,predicate:"updates.differenceTooLong",params:[{name:"pts",type:"int"}],type:"updates.Difference"},{id:3809980286,predicate:"updatesTooLong",params:[],type:"Updates"},{id:2437922577,predicate:"updateShortMessage",params:[{name:"flags",type:"#"},{name:"out",type:"flags.1?true"},{name:"mentioned",type:"flags.4?true"},{name:"media_unread",type:"flags.5?true"},{name:"silent",type:"flags.13?true"},{name:"id",type:"int"},{name:"user_id",type:"int"},{name:"message",type:"string"},{name:"pts",type:"int"},{name:"pts_count",type:"int"},{name:"date",type:"int"},{name:"fwd_from",type:"flags.2?MessageFwdHeader"},{name:"via_bot_id",type:"flags.11?int"},{name:"reply_to_msg_id",type:"flags.3?int"},{name:"entities",type:"flags.7?Vector<MessageEntity>"}],type:"Updates"},{id:377562760,predicate:"updateShortChatMessage",params:[{name:"flags",type:"#"},{name:"out",type:"flags.1?true"},{name:"mentioned",type:"flags.4?true"},{name:"media_unread",type:"flags.5?true"},{name:"silent",type:"flags.13?true"},{name:"id",type:"int"},{name:"from_id",type:"int"},{name:"chat_id",type:"int"},{name:"message",type:"string"},{name:"pts",type:"int"},{name:"pts_count",type:"int"},{name:"date",type:"int"},{name:"fwd_from",type:"flags.2?MessageFwdHeader"},{name:"via_bot_id",type:"flags.11?int"},{name:"reply_to_msg_id",type:"flags.3?int"},{name:"entities",type:"flags.7?Vector<MessageEntity>"}],type:"Updates"},{id:2027216577,predicate:"updateShort",params:[{name:"update",type:"Update"},{name:"date",type:"int"}],type:"Updates"},{id:1918567619,predicate:"updatesCombined",params:[{name:"updates",type:"Vector<Update>"},{name:"users",type:"Vector<User>"},{name:"chats",type:"Vector<Chat>"},{name:"date",type:"int"},{name:"seq_start",type:"int"},{name:"seq",type:"int"}],type:"Updates"},{id:1957577280,predicate:"updates",params:[{name:"updates",type:"Vector<Update>"},{name:"users",type:"Vector<User>"},{name:"chats",type:"Vector<Chat>"},{name:"date",type:"int"},{name:"seq",type:"int"}],type:"Updates"},{id:301019932,predicate:"updateShortSentMessage",params:[{name:"flags",type:"#"},{name:"out",type:"flags.1?true"},{name:"id",type:"int"},{name:"pts",type:"int"},{name:"pts_count",type:"int"},{name:"date",type:"int"},{name:"media",type:"flags.9?MessageMedia"},{name:"entities",type:"flags.7?Vector<MessageEntity>"}],type:"Updates"},{id:2378853029,predicate:"photos.photos",params:[{name:"photos",type:"Vector<Photo>"},{name:"users",type:"Vector<User>"}],type:"photos.Photos"},{id:352657236,predicate:"photos.photosSlice",params:[{name:"count",type:"int"},{name:"photos",type:"Vector<Photo>"},{name:"users",type:"Vector<User>"}],type:"photos.Photos"},{id:539045032,predicate:"photos.photo",params:[{name:"photo",type:"Photo"},{name:"users",type:"Vector<User>"}],type:"photos.Photo"},{id:157948117,predicate:"upload.file",params:[{name:"type",type:"storage.FileType"},{name:"mtime",type:"int"},{name:"bytes",type:"bytes"}],type:"upload.File"},{id:4052539972,predicate:"upload.fileCdnRedirect",params:[{name:"dc_id",type:"int"},{name:"file_token",type:"bytes"},{name:"encryption_key",type:"bytes"},{name:"encryption_iv",type:"bytes"},{name:"file_hashes",type:"Vector<FileHash>"}],type:"upload.File"},{id:414687501,predicate:"dcOption",params:[{name:"flags",type:"#"},{name:"ipv6",type:"flags.0?true"},{name:"media_only",type:"flags.1?true"},{name:"tcpo_only",type:"flags.2?true"},{name:"cdn",type:"flags.3?true"},{name:"static",type:"flags.4?true"},{name:"id",type:"int"},{name:"ip_address",type:"string"},{name:"port",type:"int"},{name:"secret",type:"flags.10?bytes"}],type:"DcOption"},{id:856375399,predicate:"config",params:[{name:"flags",type:"#"},{name:"phonecalls_enabled",type:"flags.1?true"},{name:"default_p2p_contacts",type:"flags.3?true"},{name:"preload_featured_stickers",type:"flags.4?true"},{name:"ignore_phone_entities",type:"flags.5?true"},{name:"revoke_pm_inbox",type:"flags.6?true"},{name:"blocked_mode",type:"flags.8?true"},{name:"pfs_enabled",type:"flags.13?true"},{name:"date",type:"int"},{name:"expires",type:"int"},{name:"test_mode",type:"Bool"},{name:"this_dc",type:"int"},{name:"dc_options",type:"Vector<DcOption>"},{name:"dc_txt_domain_name",type:"string"},{name:"chat_size_max",type:"int"},{name:"megagroup_size_max",type:"int"},{name:"forwarded_count_max",type:"int"},{name:"online_update_period_ms",type:"int"},{name:"offline_blur_timeout_ms",type:"int"},{name:"offline_idle_timeout_ms",type:"int"},{name:"online_cloud_timeout_ms",type:"int"},{name:"notify_cloud_delay_ms",type:"int"},{name:"notify_default_delay_ms",type:"int"},{name:"push_chat_period_ms",type:"int"},{name:"push_chat_limit",type:"int"},{name:"saved_gifs_limit",type:"int"},{name:"edit_time_limit",type:"int"},{name:"revoke_time_limit",type:"int"},{name:"revoke_pm_time_limit",type:"int"},{name:"rating_e_decay",type:"int"},{name:"stickers_recent_limit",type:"int"},{name:"stickers_faved_limit",type:"int"},{name:"channels_read_media_period",type:"int"},{name:"tmp_sessions",type:"flags.0?int"},{name:"pinned_dialogs_count_max",type:"int"},{name:"pinned_infolder_count_max",type:"int"},{name:"call_receive_timeout_ms",type:"int"},{name:"call_ring_timeout_ms",type:"int"},{name:"call_connect_timeout_ms",type:"int"},{name:"call_packet_timeout_ms",type:"int"},{name:"me_url_prefix",type:"string"},{name:"autoupdate_url_prefix",type:"flags.7?string"},{name:"gif_search_username",type:"flags.9?string"},{name:"venue_search_username",type:"flags.10?string"},{name:"img_search_username",type:"flags.11?string"},{name:"static_maps_provider",type:"flags.12?string"},{name:"caption_length_max",type:"int"},{name:"message_length_max",type:"int"},{name:"webfile_dc_id",type:"int"},{name:"suggested_lang_code",type:"flags.2?string"},{name:"lang_pack_version",type:"flags.2?int"},{name:"base_lang_pack_version",type:"flags.2?int"}],type:"Config"},{id:2384074613,predicate:"nearestDc",params:[{name:"country",type:"string"},{name:"this_dc",type:"int"},{name:"nearest_dc",type:"int"}],type:"NearestDc"},{id:497489295,predicate:"help.appUpdate",params:[{name:"flags",type:"#"},{name:"can_not_skip",type:"flags.0?true"},{name:"id",type:"int"},{name:"version",type:"string"},{name:"text",type:"string"},{name:"entities",type:"Vector<MessageEntity>"},{name:"document",type:"flags.1?Document"},{name:"url",type:"flags.2?string"}],type:"help.AppUpdate"},{id:3294258486,predicate:"help.noAppUpdate",params:[],type:"help.AppUpdate"},{id:415997816,predicate:"help.inviteText",params:[{name:"message",type:"string"}],type:"help.InviteText"},{id:2877210784,predicate:"encryptedChatEmpty",params:[{name:"id",type:"int"}],type:"EncryptedChat"},{id:1006044124,predicate:"encryptedChatWaiting",params:[{name:"id",type:"int"},{name:"access_hash",type:"long"},{name:"date",type:"int"},{name:"admin_id",type:"int"},{name:"participant_id",type:"int"}],type:"EncryptedChat"},{id:3363328638,predicate:"encryptedChatRequested",params:[{name:"id",type:"int"},{name:"access_hash",type:"long"},{name:"date",type:"int"},{name:"admin_id",type:"int"},{name:"participant_id",type:"int"},{name:"g_a",type:"bytes"}],type:"EncryptedChat"},{id:4199992886,predicate:"encryptedChat",params:[{name:"id",type:"int"},{name:"access_hash",type:"long"},{name:"date",type:"int"},{name:"admin_id",type:"int"},{name:"participant_id",type:"int"},{name:"g_a_or_b",type:"bytes"},{name:"key_fingerprint",type:"long"}],type:"EncryptedChat"},{id:332848423,predicate:"encryptedChatDiscarded",params:[{name:"id",type:"int"}],type:"EncryptedChat"},{id:4047615457,predicate:"inputEncryptedChat",params:[{name:"chat_id",type:"int"},{name:"access_hash",type:"long"}],type:"InputEncryptedChat"},{id:3256830334,predicate:"encryptedFileEmpty",params:[],type:"EncryptedFile"},{id:1248893260,predicate:"encryptedFile",params:[{name:"id",type:"long"},{name:"access_hash",type:"long"},{name:"size",type:"int"},{name:"dc_id",type:"int"},{name:"key_fingerprint",type:"int"}],type:"EncryptedFile"},{id:406307684,predicate:"inputEncryptedFileEmpty",params:[],type:"InputEncryptedFile"},{id:1690108678,predicate:"inputEncryptedFileUploaded",params:[{name:"id",type:"long"},{name:"parts",type:"int"},{name:"md5_checksum",type:"string"},{name:"key_fingerprint",type:"int"}],type:"InputEncryptedFile"},{id:1511503333,predicate:"inputEncryptedFile",params:[{name:"id",type:"long"},{name:"access_hash",type:"long"}],type:"InputEncryptedFile"},{id:767652808,predicate:"inputEncryptedFileBigUploaded",params:[{name:"id",type:"long"},{name:"parts",type:"int"},{name:"key_fingerprint",type:"int"}],type:"InputEncryptedFile"},{id:3977822488,predicate:"encryptedMessage",params:[{name:"random_id",type:"long"},{name:"chat_id",type:"int"},{name:"date",type:"int"},{name:"bytes",type:"bytes"},{name:"file",type:"EncryptedFile"}],type:"EncryptedMessage"},{id:594758406,predicate:"encryptedMessageService",params:[{name:"random_id",type:"long"},{name:"chat_id",type:"int"},{name:"date",type:"int"},{name:"bytes",type:"bytes"}],type:"EncryptedMessage"},{id:3236054581,predicate:"messages.dhConfigNotModified",params:[{name:"random",type:"bytes"}],type:"messages.DhConfig"},{id:740433629,predicate:"messages.dhConfig",params:[{name:"g",type:"int"},{name:"p",type:"bytes"},{name:"version",type:"int"},{name:"random",type:"bytes"}],type:"messages.DhConfig"},{id:1443858741,predicate:"messages.sentEncryptedMessage",params:[{name:"date",type:"int"}],type:"messages.SentEncryptedMessage"},{id:2492727090,predicate:"messages.sentEncryptedFile",params:[{name:"date",type:"int"},{name:"file",type:"EncryptedFile"}],type:"messages.SentEncryptedMessage"},{id:1928391342,predicate:"inputDocumentEmpty",params:[],type:"InputDocument"},{id:448771445,predicate:"inputDocument",params:[{name:"id",type:"long"},{name:"access_hash",type:"long"},{name:"file_reference",type:"bytes"}],type:"InputDocument"},{id:922273905,predicate:"documentEmpty",params:[{name:"id",type:"long"}],type:"Document"},{id:512177195,predicate:"document",params:[{name:"flags",type:"#"},{name:"id",type:"long"},{name:"access_hash",type:"long"},{name:"file_reference",type:"bytes"},{name:"date",type:"int"},{name:"mime_type",type:"string"},{name:"size",type:"int"},{name:"thumbs",type:"flags.0?Vector<PhotoSize>"},{name:"video_thumbs",type:"flags.1?Vector<VideoSize>"},{name:"dc_id",type:"int"},{name:"attributes",type:"Vector<DocumentAttribute>"}],type:"Document"},{id:398898678,predicate:"help.support",params:[{name:"phone_number",type:"string"},{name:"user",type:"User"}],type:"help.Support"},{id:2681474008,predicate:"notifyPeer",params:[{name:"peer",type:"Peer"}],type:"NotifyPeer"},{id:3033021260,predicate:"notifyUsers",params:[],type:"NotifyPeer"},{id:3221737155,predicate:"notifyChats",params:[],type:"NotifyPeer"},{id:3591563503,predicate:"notifyBroadcasts",params:[],type:"NotifyPeer"},{id:381645902,predicate:"sendMessageTypingAction",params:[],type:"SendMessageAction"},{id:4250847477,predicate:"sendMessageCancelAction",params:[],type:"SendMessageAction"},{id:2710034031,predicate:"sendMessageRecordVideoAction",params:[],type:"SendMessageAction"},{id:3916839660,predicate:"sendMessageUploadVideoAction",params:[{name:"progress",type:"int"}],type:"SendMessageAction"},{id:3576656887,predicate:"sendMessageRecordAudioAction",params:[],type:"SendMessageAction"},{id:4082227115,predicate:"sendMessageUploadAudioAction",params:[{name:"progress",type:"int"}],type:"SendMessageAction"},{id:3520285222,predicate:"sendMessageUploadPhotoAction",params:[{name:"progress",type:"int"}],type:"SendMessageAction"},{id:2852968932,predicate:"sendMessageUploadDocumentAction",params:[{name:"progress",type:"int"}],type:"SendMessageAction"},{id:393186209,predicate:"sendMessageGeoLocationAction",params:[],type:"SendMessageAction"},{id:1653390447,predicate:"sendMessageChooseContactAction",params:[],type:"SendMessageAction"},{id:3714748232,predicate:"sendMessageGamePlayAction",params:[],type:"SendMessageAction"},{id:2297593788,predicate:"sendMessageRecordRoundAction",params:[],type:"SendMessageAction"},{id:608050278,predicate:"sendMessageUploadRoundAction",params:[{name:"progress",type:"int"}],type:"SendMessageAction"},{id:3004386717,predicate:"contacts.found",params:[{name:"my_results",type:"Vector<Peer>"},{name:"results",type:"Vector<Peer>"},{name:"chats",type:"Vector<Chat>"},{name:"users",type:"Vector<User>"}],type:"contacts.Found"},{id:1335282456,predicate:"inputPrivacyKeyStatusTimestamp",params:[],type:"InputPrivacyKey"},{id:3187344422,predicate:"inputPrivacyKeyChatInvite",params:[],type:"InputPrivacyKey"},{id:4206550111,predicate:"inputPrivacyKeyPhoneCall",params:[],type:"InputPrivacyKey"},{id:3684593874,predicate:"inputPrivacyKeyPhoneP2P",params:[],type:"InputPrivacyKey"},{id:2765966344,predicate:"inputPrivacyKeyForwards",params:[],type:"InputPrivacyKey"},{id:1461304012,predicate:"inputPrivacyKeyProfilePhoto",params:[],type:"InputPrivacyKey"},{id:55761658,predicate:"inputPrivacyKeyPhoneNumber",params:[],type:"InputPrivacyKey"},{id:3508640733,predicate:"inputPrivacyKeyAddedByPhone",params:[],type:"InputPrivacyKey"},{id:3157175088,predicate:"privacyKeyStatusTimestamp",params:[],type:"PrivacyKey"},{id:1343122938,predicate:"privacyKeyChatInvite",params:[],type:"PrivacyKey"},{id:1030105979,predicate:"privacyKeyPhoneCall",params:[],type:"PrivacyKey"},{id:961092808,predicate:"privacyKeyPhoneP2P",params:[],type:"PrivacyKey"},{id:1777096355,predicate:"privacyKeyForwards",params:[],type:"PrivacyKey"},{id:2517966829,predicate:"privacyKeyProfilePhoto",params:[],type:"PrivacyKey"},{id:3516589165,predicate:"privacyKeyPhoneNumber",params:[],type:"PrivacyKey"},{id:1124062251,predicate:"privacyKeyAddedByPhone",params:[],type:"PrivacyKey"},{id:218751099,predicate:"inputPrivacyValueAllowContacts",params:[],type:"InputPrivacyRule"},{id:407582158,predicate:"inputPrivacyValueAllowAll",params:[],type:"InputPrivacyRule"},{id:320652927,predicate:"inputPrivacyValueAllowUsers",params:[{name:"users",type:"Vector<InputUser>"}],type:"InputPrivacyRule"},{id:195371015,predicate:"inputPrivacyValueDisallowContacts",params:[],type:"InputPrivacyRule"},{id:3597362889,predicate:"inputPrivacyValueDisallowAll",params:[],type:"InputPrivacyRule"},{id:2417034343,predicate:"inputPrivacyValueDisallowUsers",params:[{name:"users",type:"Vector<InputUser>"}],type:"InputPrivacyRule"},{id:1283572154,predicate:"inputPrivacyValueAllowChatParticipants",params:[{name:"chats",type:"Vector<int>"}],type:"InputPrivacyRule"},{id:3626197935,predicate:"inputPrivacyValueDisallowChatParticipants",params:[{name:"chats",type:"Vector<int>"}],type:"InputPrivacyRule"},{id:4294843308,predicate:"privacyValueAllowContacts",params:[],type:"PrivacyRule"},{id:1698855810,predicate:"privacyValueAllowAll",params:[],type:"PrivacyRule"},{id:1297858060,predicate:"privacyValueAllowUsers",params:[{name:"users",type:"Vector<int>"}],type:"PrivacyRule"},{id:4169726490,predicate:"privacyValueDisallowContacts",params:[],type:"PrivacyRule"},{id:2339628899,predicate:"privacyValueDisallowAll",params:[],type:"PrivacyRule"},{id:209668535,predicate:"privacyValueDisallowUsers",params:[{name:"users",type:"Vector<int>"}],type:"PrivacyRule"},{id:415136107,predicate:"privacyValueAllowChatParticipants",params:[{name:"chats",type:"Vector<int>"}],type:"PrivacyRule"},{id:2897086096,predicate:"privacyValueDisallowChatParticipants",params:[{name:"chats",type:"Vector<int>"}],type:"PrivacyRule"},{id:1352683077,predicate:"account.privacyRules",params:[{name:"rules",type:"Vector<PrivacyRule>"},{name:"chats",type:"Vector<Chat>"},{name:"users",type:"Vector<User>"}],type:"account.PrivacyRules"},{id:3100684255,predicate:"accountDaysTTL",params:[{name:"days",type:"int"}],type:"AccountDaysTTL"},{id:1815593308,predicate:"documentAttributeImageSize",params:[{name:"w",type:"int"},{name:"h",type:"int"}],type:"DocumentAttribute"},{id:297109817,predicate:"documentAttributeAnimated",params:[],type:"DocumentAttribute"},{id:1662637586,predicate:"documentAttributeSticker",params:[{name:"flags",type:"#"},{name:"mask",type:"flags.1?true"},{name:"alt",type:"string"},{name:"stickerset",type:"InputStickerSet"},{name:"mask_coords",type:"flags.0?MaskCoords"}],type:"DocumentAttribute"},{id:250621158,predicate:"documentAttributeVideo",params:[{name:"flags",type:"#"},{name:"round_message",type:"flags.0?true"},{name:"supports_streaming",type:"flags.1?true"},{name:"duration",type:"int"},{name:"w",type:"int"},{name:"h",type:"int"}],type:"DocumentAttribute"},{id:2555574726,predicate:"documentAttributeAudio",params:[{name:"flags",type:"#"},{name:"voice",type:"flags.10?true"},{name:"duration",type:"int"},{name:"title",type:"flags.0?string"},{name:"performer",type:"flags.1?string"},{name:"waveform",type:"flags.2?bytes"}],type:"DocumentAttribute"},{id:358154344,predicate:"documentAttributeFilename",params:[{name:"file_name",type:"string"}],type:"DocumentAttribute"},{id:2550256375,predicate:"documentAttributeHasStickers",params:[],type:"DocumentAttribute"},{id:4050950690,predicate:"messages.stickersNotModified",params:[],type:"messages.Stickers"},{id:3831077821,predicate:"messages.stickers",params:[{name:"hash",type:"int"},{name:"stickers",type:"Vector<Document>"}],type:"messages.Stickers"},{id:313694676,predicate:"stickerPack",params:[{name:"emoticon",type:"string"},{name:"documents",type:"Vector<long>"}],type:"StickerPack"},{id:3898999491,predicate:"messages.allStickersNotModified",params:[],type:"messages.AllStickers"},{id:3992797279,predicate:"messages.allStickers",params:[{name:"hash",type:"int"},{name:"sets",type:"Vector<StickerSet>"}],type:"messages.AllStickers"},{id:2228326789,predicate:"messages.affectedMessages",params:[{name:"pts",type:"int"},{name:"pts_count",type:"int"}],type:"messages.AffectedMessages"},{id:3943987176,predicate:"webPageEmpty",params:[{name:"id",type:"long"}],type:"WebPage"},{id:3313949212,predicate:"webPagePending",params:[{name:"id",type:"long"},{name:"date",type:"int"}],type:"WebPage"},{id:3902555570,predicate:"webPage",params:[{name:"flags",type:"#"},{name:"id",type:"long"},{name:"url",type:"string"},{name:"display_url",type:"string"},{name:"hash",type:"int"},{name:"type",type:"flags.0?string"},{name:"site_name",type:"flags.1?string"},{name:"title",type:"flags.2?string"},{name:"description",type:"flags.3?string"},{name:"photo",type:"flags.4?Photo"},{name:"embed_url",type:"flags.5?string"},{name:"embed_type",type:"flags.5?string"},{name:"embed_width",type:"flags.6?int"},{name:"embed_height",type:"flags.6?int"},{name:"duration",type:"flags.7?int"},{name:"author",type:"flags.8?string"},{name:"document",type:"flags.9?Document"},{name:"cached_page",type:"flags.10?Page"},{name:"attributes",type:"flags.12?Vector<WebPageAttribute>"}],type:"WebPage"},{id:1930545681,predicate:"webPageNotModified",params:[{name:"flags",type:"#"},{name:"cached_page_views",type:"flags.0?int"}],type:"WebPage"},{id:2902578717,predicate:"authorization",params:[{name:"flags",type:"#"},{name:"current",type:"flags.0?true"},{name:"official_app",type:"flags.1?true"},{name:"password_pending",type:"flags.2?true"},{name:"hash",type:"long"},{name:"device_model",type:"string"},{name:"platform",type:"string"},{name:"system_version",type:"string"},{name:"api_id",type:"int"},{name:"app_name",type:"string"},{name:"app_version",type:"string"},{name:"date_created",type:"int"},{name:"date_active",type:"int"},{name:"ip",type:"string"},{name:"country",type:"string"},{name:"region",type:"string"}],type:"Authorization"},{id:307276766,predicate:"account.authorizations",params:[{name:"authorizations",type:"Vector<Authorization>"}],type:"account.Authorizations"},{id:2904965624,predicate:"account.password",params:[{name:"flags",type:"#"},{name:"has_recovery",type:"flags.0?true"},{name:"has_secure_values",type:"flags.1?true"},{name:"has_password",type:"flags.2?true"},{name:"current_algo",type:"flags.2?PasswordKdfAlgo"},{name:"srp_B",type:"flags.2?bytes"},{name:"srp_id",type:"flags.2?long"},{name:"hint",type:"flags.3?string"},{name:"email_unconfirmed_pattern",type:"flags.4?string"},{name:"new_algo",type:"PasswordKdfAlgo"},{name:"new_secure_algo",type:"SecurePasswordKdfAlgo"},{name:"secure_random",type:"bytes"}],type:"account.Password"},{id:2589733861,predicate:"account.passwordSettings",params:[{name:"flags",type:"#"},{name:"email",type:"flags.0?string"},{name:"secure_settings",type:"flags.1?SecureSecretSettings"}],type:"account.PasswordSettings"},{id:3258394569,predicate:"account.passwordInputSettings",params:[{name:"flags",type:"#"},{name:"new_algo",type:"flags.0?PasswordKdfAlgo"},{name:"new_password_hash",type:"flags.0?bytes"},{name:"hint",type:"flags.0?string"},{name:"email",type:"flags.1?string"},{name:"new_secure_settings",type:"flags.2?SecureSecretSettings"}],type:"account.PasswordInputSettings"},{id:326715557,predicate:"auth.passwordRecovery",params:[{name:"email_pattern",type:"string"}],type:"auth.PasswordRecovery"},{id:2743383929,predicate:"receivedNotifyMessage",params:[{name:"id",type:"int"},{name:"flags",type:"int"}],type:"ReceivedNotifyMessage"},{id:1776236393,predicate:"chatInviteEmpty",params:[],type:"ExportedChatInvite"},{id:4230874556,predicate:"chatInviteExported",params:[{name:"link",type:"string"}],type:"ExportedChatInvite"},{id:1516793212,predicate:"chatInviteAlready",params:[{name:"chat",type:"Chat"}],type:"ChatInvite"},{id:3754096014,predicate:"chatInvite",params:[{name:"flags",type:"#"},{name:"channel",type:"flags.0?true"},{name:"broadcast",type:"flags.1?true"},{name:"public",type:"flags.2?true"},{name:"megagroup",type:"flags.3?true"},{name:"title",type:"string"},{name:"photo",type:"Photo"},{name:"participants_count",type:"int"},{name:"participants",type:"flags.4?Vector<User>"}],type:"ChatInvite"},{id:4290128789,predicate:"inputStickerSetEmpty",params:[],type:"InputStickerSet"},{id:2649203305,predicate:"inputStickerSetID",params:[{name:"id",type:"long"},{name:"access_hash",type:"long"}],type:"InputStickerSet"},{id:2250033312,predicate:"inputStickerSetShortName",params:[{name:"short_name",type:"string"}],type:"InputStickerSet"},{id:42402760,predicate:"inputStickerSetAnimatedEmoji",params:[],type:"InputStickerSet"},{id:3867103758,predicate:"inputStickerSetDice",params:[{name:"emoticon",type:"string"}],type:"InputStickerSet"},{id:4004802343,predicate:"stickerSet",params:[{name:"flags",type:"#"},{name:"archived",type:"flags.1?true"},{name:"official",type:"flags.2?true"},{name:"masks",type:"flags.3?true"},{name:"animated",type:"flags.5?true"},{name:"installed_date",type:"flags.0?int"},{name:"id",type:"long"},{name:"access_hash",type:"long"},{name:"title",type:"string"},{name:"short_name",type:"string"},{name:"thumb",type:"flags.4?PhotoSize"},{name:"thumb_dc_id",type:"flags.4?int"},{name:"count",type:"int"},{name:"hash",type:"int"}],type:"StickerSet"},{id:3054118054,predicate:"messages.stickerSet",params:[{name:"set",type:"StickerSet"},{name:"packs",type:"Vector<StickerPack>"},{name:"documents",type:"Vector<Document>"}],type:"messages.StickerSet"},{id:3262826695,predicate:"botCommand",params:[{name:"command",type:"string"},{name:"description",type:"string"}],type:"BotCommand"},{id:2565348666,predicate:"botInfo",params:[{name:"user_id",type:"int"},{name:"description",type:"string"},{name:"commands",type:"Vector<BotCommand>"}],type:"BotInfo"},{id:2734311552,predicate:"keyboardButton",params:[{name:"text",type:"string"}],type:"KeyboardButton"},{id:629866245,predicate:"keyboardButtonUrl",params:[{name:"text",type:"string"},{name:"url",type:"string"}],type:"KeyboardButton"},{id:1748655686,predicate:"keyboardButtonCallback",params:[{name:"text",type:"string"},{name:"data",type:"bytes"}],type:"KeyboardButton"},{id:2976541737,predicate:"keyboardButtonRequestPhone",params:[{name:"text",type:"string"}],type:"KeyboardButton"},{id:4235815743,predicate:"keyboardButtonRequestGeoLocation",params:[{name:"text",type:"string"}],type:"KeyboardButton"},{id:90744648,predicate:"keyboardButtonSwitchInline",params:[{name:"flags",type:"#"},{name:"same_peer",type:"flags.0?true"},{name:"text",type:"string"},{name:"query",type:"string"}],type:"KeyboardButton"},{id:1358175439,predicate:"keyboardButtonGame",params:[{name:"text",type:"string"}],type:"KeyboardButton"},{id:2950250427,predicate:"keyboardButtonBuy",params:[{name:"text",type:"string"}],type:"KeyboardButton"},{id:280464681,predicate:"keyboardButtonUrlAuth",params:[{name:"flags",type:"#"},{name:"text",type:"string"},{name:"fwd_text",type:"flags.0?string"},{name:"url",type:"string"},{name:"button_id",type:"int"}],type:"KeyboardButton"},{id:3492708308,predicate:"inputKeyboardButtonUrlAuth",params:[{name:"flags",type:"#"},{name:"request_write_access",type:"flags.0?true"},{name:"text",type:"string"},{name:"fwd_text",type:"flags.1?string"},{name:"url",type:"string"},{name:"bot",type:"InputUser"}],type:"KeyboardButton"},{id:3150401885,predicate:"keyboardButtonRequestPoll",params:[{name:"flags",type:"#"},{name:"quiz",type:"flags.0?Bool"},{name:"text",type:"string"}],type:"KeyboardButton"},{id:2002815875,predicate:"keyboardButtonRow",params:[{name:"buttons",type:"Vector<KeyboardButton>"}],type:"KeyboardButtonRow"},{id:2688441221,predicate:"replyKeyboardHide",params:[{name:"flags",type:"#"},{name:"selective",type:"flags.2?true"}],type:"ReplyMarkup"},{id:4094724768,predicate:"replyKeyboardForceReply",params:[{name:"flags",type:"#"},{name:"single_use",type:"flags.1?true"},{name:"selective",type:"flags.2?true"}],type:"ReplyMarkup"},{id:889353612,predicate:"replyKeyboardMarkup",params:[{name:"flags",type:"#"},{name:"resize",type:"flags.0?true"},{name:"single_use",type:"flags.1?true"},{name:"selective",type:"flags.2?true"},{name:"rows",type:"Vector<KeyboardButtonRow>"}],type:"ReplyMarkup"},{id:1218642516,predicate:"replyInlineMarkup",params:[{name:"rows",type:"Vector<KeyboardButtonRow>"}],type:"ReplyMarkup"},{id:3146955413,predicate:"messageEntityUnknown",params:[{name:"offset",type:"int"},{name:"length",type:"int"}],type:"MessageEntity"},{id:4194588573,predicate:"messageEntityMention",params:[{name:"offset",type:"int"},{name:"length",type:"int"}],type:"MessageEntity"},{id:1868782349,predicate:"messageEntityHashtag",params:[{name:"offset",type:"int"},{name:"length",type:"int"}],type:"MessageEntity"},{id:1827637959,predicate:"messageEntityBotCommand",params:[{name:"offset",type:"int"},{name:"length",type:"int"}],type:"MessageEntity"},{id:1859134776,predicate:"messageEntityUrl",params:[{name:"offset",type:"int"},{name:"length",type:"int"}],type:"MessageEntity"},{id:1692693954,predicate:"messageEntityEmail",params:[{name:"offset",type:"int"},{name:"length",type:"int"}],type:"MessageEntity"},{id:3177253833,predicate:"messageEntityBold",params:[{name:"offset",type:"int"},{name:"length",type:"int"}],type:"MessageEntity"},{id:2188348256,predicate:"messageEntityItalic",params:[{name:"offset",type:"int"},{name:"length",type:"int"}],type:"MessageEntity"},{id:681706865,predicate:"messageEntityCode",params:[{name:"offset",type:"int"},{name:"length",type:"int"}],type:"MessageEntity"},{id:1938967520,predicate:"messageEntityPre",params:[{name:"offset",type:"int"},{name:"length",type:"int"},{name:"language",type:"string"}],type:"MessageEntity"},{id:1990644519,predicate:"messageEntityTextUrl",params:[{name:"offset",type:"int"},{name:"length",type:"int"},{name:"url",type:"string"}],type:"MessageEntity"},{id:892193368,predicate:"messageEntityMentionName",params:[{name:"offset",type:"int"},{name:"length",type:"int"},{name:"user_id",type:"int"}],type:"MessageEntity"},{id:546203849,predicate:"inputMessageEntityMentionName",params:[{name:"offset",type:"int"},{name:"length",type:"int"},{name:"user_id",type:"InputUser"}],type:"MessageEntity"},{id:2607407947,predicate:"messageEntityPhone",params:[{name:"offset",type:"int"},{name:"length",type:"int"}],type:"MessageEntity"},{id:1280209983,predicate:"messageEntityCashtag",params:[{name:"offset",type:"int"},{name:"length",type:"int"}],type:"MessageEntity"},{id:2622389899,predicate:"messageEntityUnderline",params:[{name:"offset",type:"int"},{name:"length",type:"int"}],type:"MessageEntity"},{id:3204879316,predicate:"messageEntityStrike",params:[{name:"offset",type:"int"},{name:"length",type:"int"}],type:"MessageEntity"},{id:34469328,predicate:"messageEntityBlockquote",params:[{name:"offset",type:"int"},{name:"length",type:"int"}],type:"MessageEntity"},{id:1981704948,predicate:"messageEntityBankCard",params:[{name:"offset",type:"int"},{name:"length",type:"int"}],type:"MessageEntity"},{id:4002160262,predicate:"inputChannelEmpty",params:[],type:"InputChannel"},{id:2951442734,predicate:"inputChannel",params:[{name:"channel_id",type:"int"},{name:"access_hash",type:"long"}],type:"InputChannel"},{id:707290417,predicate:"inputChannelFromMessage",params:[{name:"peer",type:"InputPeer"},{name:"msg_id",type:"int"},{name:"channel_id",type:"int"}],type:"InputChannel"},{id:2131196633,predicate:"contacts.resolvedPeer",params:[{name:"peer",type:"Peer"},{name:"chats",type:"Vector<Chat>"},{name:"users",type:"Vector<User>"}],type:"contacts.ResolvedPeer"},{id:182649427,predicate:"messageRange",params:[{name:"min_id",type:"int"},{name:"max_id",type:"int"}],type:"MessageRange"},{id:1041346555,predicate:"updates.channelDifferenceEmpty",params:[{name:"flags",type:"#"},{name:"final",type:"flags.0?true"},{name:"pts",type:"int"},{name:"timeout",type:"flags.1?int"}],type:"updates.ChannelDifference"},{id:2763835134,predicate:"updates.channelDifferenceTooLong",params:[{name:"flags",type:"#"},{name:"final",type:"flags.0?true"},{name:"timeout",type:"flags.1?int"},{name:"dialog",type:"Dialog"},{name:"messages",type:"Vector<Message>"},{name:"chats",type:"Vector<Chat>"},{name:"users",type:"Vector<User>"}],type:"updates.ChannelDifference"},{id:543450958,predicate:"updates.channelDifference",params:[{name:"flags",type:"#"},{name:"final",type:"flags.0?true"},{name:"pts",type:"int"},{name:"timeout",type:"flags.1?int"},{name:"new_messages",type:"Vector<Message>"},{name:"other_updates",type:"Vector<Update>"},{name:"chats",type:"Vector<Chat>"},{name:"users",type:"Vector<User>"}],type:"updates.ChannelDifference"},{id:2496933607,predicate:"channelMessagesFilterEmpty",params:[],type:"ChannelMessagesFilter"},{id:3447183703,predicate:"channelMessagesFilter",params:[{name:"flags",type:"#"},{name:"exclude_new_messages",type:"flags.1?true"},{name:"ranges",type:"Vector<MessageRange>"}],type:"ChannelMessagesFilter"},{id:367766557,predicate:"channelParticipant",params:[{name:"user_id",type:"int"},{name:"date",type:"int"}],type:"ChannelParticipant"},{id:2737347181,predicate:"channelParticipantSelf",params:[{name:"user_id",type:"int"},{name:"inviter_id",type:"int"},{name:"date",type:"int"}],type:"ChannelParticipant"},{id:2156729764,predicate:"channelParticipantCreator",params:[{name:"flags",type:"#"},{name:"user_id",type:"int"},{name:"rank",type:"flags.0?string"}],type:"ChannelParticipant"},{id:3435051951,predicate:"channelParticipantAdmin",params:[{name:"flags",type:"#"},{name:"can_edit",type:"flags.0?true"},{name:"self",type:"flags.1?true"},{name:"user_id",type:"int"},{name:"inviter_id",type:"flags.1?int"},{name:"promoted_by",type:"int"},{name:"date",type:"int"},{name:"admin_rights",type:"ChatAdminRights"},{name:"rank",type:"flags.2?string"}],type:"ChannelParticipant"},{id:470789295,predicate:"channelParticipantBanned",params:[{name:"flags",type:"#"},{name:"left",type:"flags.0?true"},{name:"user_id",type:"int"},{name:"kicked_by",type:"int"},{name:"date",type:"int"},{name:"banned_rights",type:"ChatBannedRights"}],type:"ChannelParticipant"},{id:3728686201,predicate:"channelParticipantsRecent",params:[],type:"ChannelParticipantsFilter"},{id:3026225513,predicate:"channelParticipantsAdmins",params:[],type:"ChannelParticipantsFilter"},{id:2746567045,predicate:"channelParticipantsKicked",params:[{name:"q",type:"string"}],type:"ChannelParticipantsFilter"},{id:2966521435,predicate:"channelParticipantsBots",params:[],type:"ChannelParticipantsFilter"},{id:338142689,predicate:"channelParticipantsBanned",params:[{name:"q",type:"string"}],type:"ChannelParticipantsFilter"},{id:106343499,predicate:"channelParticipantsSearch",params:[{name:"q",type:"string"}],type:"ChannelParticipantsFilter"},{id:3144345741,predicate:"channelParticipantsContacts",params:[{name:"q",type:"string"}],type:"ChannelParticipantsFilter"},{id:4117684904,predicate:"channels.channelParticipants",params:[{name:"count",type:"int"},{name:"participants",type:"Vector<ChannelParticipant>"},{name:"users",type:"Vector<User>"}],type:"channels.ChannelParticipants"},{id:4028055529,predicate:"channels.channelParticipantsNotModified",params:[],type:"channels.ChannelParticipants"},{id:3503927651,predicate:"channels.channelParticipant",params:[{name:"participant",type:"ChannelParticipant"},{name:"users",type:"Vector<User>"}],type:"channels.ChannelParticipant"},{id:2013922064,predicate:"help.termsOfService",params:[{name:"flags",type:"#"},{name:"popup",type:"flags.0?true"},{name:"id",type:"DataJSON"},{name:"text",type:"string"},{name:"entities",type:"Vector<MessageEntity>"},{name:"min_age_confirm",type:"flags.1?int"}],type:"help.TermsOfService"},{id:372165663,predicate:"foundGif",params:[{name:"url",type:"string"},{name:"thumb_url",type:"string"},{name:"content_url",type:"string"},{name:"content_type",type:"string"},{name:"w",type:"int"},{name:"h",type:"int"}],type:"FoundGif"},{id:2624914441,predicate:"foundGifCached",params:[{name:"url",type:"string"},{name:"photo",type:"Photo"},{name:"document",type:"Document"}],type:"FoundGif"},{id:1158290442,predicate:"messages.foundGifs",params:[{name:"next_offset",type:"int"},{name:"results",type:"Vector<FoundGif>"}],type:"messages.FoundGifs"},{id:3892468898,predicate:"messages.savedGifsNotModified",params:[],type:"messages.SavedGifs"},{id:772213157,predicate:"messages.savedGifs",params:[{name:"hash",type:"int"},{name:"gifs",type:"Vector<Document>"}],type:"messages.SavedGifs"},{id:864077702,predicate:"inputBotInlineMessageMediaAuto",params:[{name:"flags",type:"#"},{name:"message",type:"string"},{name:"entities",type:"flags.1?Vector<MessageEntity>"},{name:"reply_markup",type:"flags.2?ReplyMarkup"}],type:"InputBotInlineMessage"},{id:1036876423,predicate:"inputBotInlineMessageText",params:[{name:"flags",type:"#"},{name:"no_webpage",type:"flags.0?true"},{name:"message",type:"string"},{name:"entities",type:"flags.1?Vector<MessageEntity>"},{name:"reply_markup",type:"flags.2?ReplyMarkup"}],type:"InputBotInlineMessage"},{id:3249626469,predicate:"inputBotInlineMessageMediaGeo",params:[{name:"flags",type:"#"},{name:"geo_point",type:"InputGeoPoint"},{name:"period",type:"int"},{name:"reply_markup",type:"flags.2?ReplyMarkup"}],type:"InputBotInlineMessage"},{id:1098628881,predicate:"inputBotInlineMessageMediaVenue",params:[{name:"flags",type:"#"},{name:"geo_point",type:"InputGeoPoint"},{name:"title",type:"string"},{name:"address",type:"string"},{name:"provider",type:"string"},{name:"venue_id",type:"string"},{name:"venue_type",type:"string"},{name:"reply_markup",type:"flags.2?ReplyMarkup"}],type:"InputBotInlineMessage"},{id:2800599037,predicate:"inputBotInlineMessageMediaContact",params:[{name:"flags",type:"#"},{name:"phone_number",type:"string"},{name:"first_name",type:"string"},{name:"last_name",type:"string"},{name:"vcard",type:"string"},{name:"reply_markup",type:"flags.2?ReplyMarkup"}],type:"InputBotInlineMessage"},{id:1262639204,predicate:"inputBotInlineMessageGame",params:[{name:"flags",type:"#"},{name:"reply_markup",type:"flags.2?ReplyMarkup"}],type:"InputBotInlineMessage"},{id:2294256409,predicate:"inputBotInlineResult",params:[{name:"flags",type:"#"},{name:"id",type:"string"},{name:"type",type:"string"},{name:"title",type:"flags.1?string"},{name:"description",type:"flags.2?string"},{name:"url",type:"flags.3?string"},{name:"thumb",type:"flags.4?InputWebDocument"},{name:"content",type:"flags.5?InputWebDocument"},{name:"send_message",type:"InputBotInlineMessage"}],type:"InputBotInlineResult"},{id:2832753831,predicate:"inputBotInlineResultPhoto",params:[{name:"id",type:"string"},{name:"type",type:"string"},{name:"photo",type:"InputPhoto"},{name:"send_message",type:"InputBotInlineMessage"}],type:"InputBotInlineResult"},{id:4294507972,predicate:"inputBotInlineResultDocument",params:[{name:"flags",type:"#"},{name:"id",type:"string"},{name:"type",type:"string"},{name:"title",type:"flags.1?string"},{name:"description",type:"flags.2?string"},{name:"document",type:"InputDocument"},{name:"send_message",type:"InputBotInlineMessage"}],type:"InputBotInlineResult"},{id:1336154098,predicate:"inputBotInlineResultGame",params:[{name:"id",type:"string"},{name:"short_name",type:"string"},{name:"send_message",type:"InputBotInlineMessage"}],type:"InputBotInlineResult"},{id:1984755728,predicate:"botInlineMessageMediaAuto",params:[{name:"flags",type:"#"},{name:"message",type:"string"},{name:"entities",type:"flags.1?Vector<MessageEntity>"},{name:"reply_markup",type:"flags.2?ReplyMarkup"}],type:"BotInlineMessage"},{id:2357159394,predicate:"botInlineMessageText",params:[{name:"flags",type:"#"},{name:"no_webpage",type:"flags.0?true"},{name:"message",type:"string"},{name:"entities",type:"flags.1?Vector<MessageEntity>"},{name:"reply_markup",type:"flags.2?ReplyMarkup"}],type:"BotInlineMessage"},{id:3072515685,predicate:"botInlineMessageMediaGeo",params:[{name:"flags",type:"#"},{name:"geo",type:"GeoPoint"},{name:"period",type:"int"},{name:"reply_markup",type:"flags.2?ReplyMarkup"}],type:"BotInlineMessage"},{id:2324063644,predicate:"botInlineMessageMediaVenue",params:[{name:"flags",type:"#"},{name:"geo",type:"GeoPoint"},{name:"title",type:"string"},{name:"address",type:"string"},{name:"provider",type:"string"},{name:"venue_id",type:"string"},{name:"venue_type",type:"string"},{name:"reply_markup",type:"flags.2?ReplyMarkup"}],type:"BotInlineMessage"},{id:416402882,predicate:"botInlineMessageMediaContact",params:[{name:"flags",type:"#"},{name:"phone_number",type:"string"},{name:"first_name",type:"string"},{name:"last_name",type:"string"},{name:"vcard",type:"string"},{name:"reply_markup",type:"flags.2?ReplyMarkup"}],type:"BotInlineMessage"},{id:295067450,predicate:"botInlineResult",params:[{name:"flags",type:"#"},{name:"id",type:"string"},{name:"type",type:"string"},{name:"title",type:"flags.1?string"},{name:"description",type:"flags.2?string"},{name:"url",type:"flags.3?string"},{name:"thumb",type:"flags.4?WebDocument"},{name:"content",type:"flags.5?WebDocument"},{name:"send_message",type:"BotInlineMessage"}],type:"BotInlineResult"},{id:400266251,predicate:"botInlineMediaResult",params:[{name:"flags",type:"#"},{name:"id",type:"string"},{name:"type",type:"string"},{name:"photo",type:"flags.0?Photo"},{name:"document",type:"flags.1?Document"},{name:"title",type:"flags.2?string"},{name:"description",type:"flags.3?string"},{name:"send_message",type:"BotInlineMessage"}],type:"BotInlineResult"},{id:2491197512,predicate:"messages.botResults",params:[{name:"flags",type:"#"},{name:"gallery",type:"flags.0?true"},{name:"query_id",type:"long"},{name:"next_offset",type:"flags.1?string"},{name:"switch_pm",type:"flags.2?InlineBotSwitchPM"},{name:"results",type:"Vector<BotInlineResult>"},{name:"cache_time",type:"int"},{name:"users",type:"Vector<User>"}],type:"messages.BotResults"},{id:1571494644,predicate:"exportedMessageLink",params:[{name:"link",type:"string"},{name:"html",type:"string"}],type:"ExportedMessageLink"},{id:893020267,predicate:"messageFwdHeader",params:[{name:"flags",type:"#"},{name:"from_id",type:"flags.0?int"},{name:"from_name",type:"flags.5?string"},{name:"date",type:"int"},{name:"channel_id",type:"flags.1?int"},{name:"channel_post",type:"flags.2?int"},{name:"post_author",type:"flags.3?string"},{name:"saved_from_peer",type:"flags.4?Peer"},{name:"saved_from_msg_id",type:"flags.4?int"},{name:"psa_type",type:"flags.6?string"}],type:"MessageFwdHeader"},{id:1923290508,predicate:"auth.codeTypeSms",params:[],type:"auth.CodeType"},{id:1948046307,predicate:"auth.codeTypeCall",params:[],type:"auth.CodeType"},{id:577556219,predicate:"auth.codeTypeFlashCall",params:[],type:"auth.CodeType"},{id:1035688326,predicate:"auth.sentCodeTypeApp",params:[{name:"length",type:"int"}],type:"auth.SentCodeType"},{id:3221273506,predicate:"auth.sentCodeTypeSms",params:[{name:"length",type:"int"}],type:"auth.SentCodeType"},{id:1398007207,predicate:"auth.sentCodeTypeCall",params:[{name:"length",type:"int"}],type:"auth.SentCodeType"},{id:2869151449,predicate:"auth.sentCodeTypeFlashCall",params:[{name:"pattern",type:"string"}],type:"auth.SentCodeType"},{id:911761060,predicate:"messages.botCallbackAnswer",params:[{name:"flags",type:"#"},{name:"alert",type:"flags.1?true"},{name:"has_url",type:"flags.3?true"},{name:"native_ui",type:"flags.4?true"},{name:"message",type:"flags.0?string"},{name:"url",type:"flags.2?string"},{name:"cache_time",type:"int"}],type:"messages.BotCallbackAnswer"},{id:649453030,predicate:"messages.messageEditData",params:[{name:"flags",type:"#"},{name:"caption",type:"flags.0?true"}],type:"messages.MessageEditData"},{id:2299280777,predicate:"inputBotInlineMessageID",params:[{name:"dc_id",type:"int"},{name:"id",type:"long"},{name:"access_hash",type:"long"}],type:"InputBotInlineMessageID"},{id:1008755359,predicate:"inlineBotSwitchPM",params:[{name:"text",type:"string"},{name:"start_param",type:"string"}],type:"InlineBotSwitchPM"},{id:863093588,predicate:"messages.peerDialogs",params:[{name:"dialogs",type:"Vector<Dialog>"},{name:"messages",type:"Vector<Message>"},{name:"chats",type:"Vector<Chat>"},{name:"users",type:"Vector<User>"},{name:"state",type:"updates.State"}],type:"messages.PeerDialogs"},{id:3989684315,predicate:"topPeer",params:[{name:"peer",type:"Peer"},{name:"rating",type:"double"}],type:"TopPeer"},{id:2875595611,predicate:"topPeerCategoryBotsPM",params:[],type:"TopPeerCategory"},{id:344356834,predicate:"topPeerCategoryBotsInline",params:[],type:"TopPeerCategory"},{id:104314861,predicate:"topPeerCategoryCorrespondents",params:[],type:"TopPeerCategory"},{id:3172442442,predicate:"topPeerCategoryGroups",params:[],type:"TopPeerCategory"},{id:371037736,predicate:"topPeerCategoryChannels",params:[],type:"TopPeerCategory"},{id:511092620,predicate:"topPeerCategoryPhoneCalls",params:[],type:"TopPeerCategory"},{id:2822794409,predicate:"topPeerCategoryForwardUsers",params:[],type:"TopPeerCategory"},{id:4226728176,predicate:"topPeerCategoryForwardChats",params:[],type:"TopPeerCategory"},{id:4219683473,predicate:"topPeerCategoryPeers",params:[{name:"category",type:"TopPeerCategory"},{name:"count",type:"int"},{name:"peers",type:"Vector<TopPeer>"}],type:"TopPeerCategoryPeers"},{id:3727060725,predicate:"contacts.topPeersNotModified",params:[],type:"contacts.TopPeers"},{id:1891070632,predicate:"contacts.topPeers",params:[{name:"categories",type:"Vector<TopPeerCategoryPeers>"},{name:"chats",type:"Vector<Chat>"},{name:"users",type:"Vector<User>"}],type:"contacts.TopPeers"},{id:3039597469,predicate:"contacts.topPeersDisabled",params:[],type:"contacts.TopPeers"},{id:453805082,predicate:"draftMessageEmpty",params:[{name:"flags",type:"#"},{name:"date",type:"flags.0?int"}],type:"DraftMessage"},{id:4253970719,predicate:"draftMessage",params:[{name:"flags",type:"#"},{name:"no_webpage",type:"flags.1?true"},{name:"reply_to_msg_id",type:"flags.0?int"},{name:"message",type:"string"},{name:"entities",type:"flags.3?Vector<MessageEntity>"},{name:"date",type:"int"}],type:"DraftMessage"},{id:3336309862,predicate:"messages.featuredStickersNotModified",params:[{name:"count",type:"int"}],type:"messages.FeaturedStickers"},{id:3064709953,predicate:"messages.featuredStickers",params:[{name:"hash",type:"int"},{name:"count",type:"int"},{name:"sets",type:"Vector<StickerSetCovered>"},{name:"unread",type:"Vector<long>"}],type:"messages.FeaturedStickers"},{id:186120336,predicate:"messages.recentStickersNotModified",params:[],type:"messages.RecentStickers"},{id:586395571,predicate:"messages.recentStickers",params:[{name:"hash",type:"int"},{name:"packs",type:"Vector<StickerPack>"},{name:"stickers",type:"Vector<Document>"},{name:"dates",type:"Vector<int>"}],type:"messages.RecentStickers"},{id:1338747336,predicate:"messages.archivedStickers",params:[{name:"count",type:"int"},{name:"sets",type:"Vector<StickerSetCovered>"}],type:"messages.ArchivedStickers"},{id:946083368,predicate:"messages.stickerSetInstallResultSuccess",params:[],type:"messages.StickerSetInstallResult"},{id:904138920,predicate:"messages.stickerSetInstallResultArchive",params:[{name:"sets",type:"Vector<StickerSetCovered>"}],type:"messages.StickerSetInstallResult"},{id:1678812626,predicate:"stickerSetCovered",params:[{name:"set",type:"StickerSet"},{name:"cover",type:"Document"}],type:"StickerSetCovered"},{id:872932635,predicate:"stickerSetMultiCovered",params:[{name:"set",type:"StickerSet"},{name:"covers",type:"Vector<Document>"}],type:"StickerSetCovered"},{id:2933316530,predicate:"maskCoords",params:[{name:"n",type:"int"},{name:"x",type:"double"},{name:"y",type:"double"},{name:"zoom",type:"double"}],type:"MaskCoords"},{id:1251549527,predicate:"inputStickeredMediaPhoto",params:[{name:"id",type:"InputPhoto"}],type:"InputStickeredMedia"},{id:70813275,predicate:"inputStickeredMediaDocument",params:[{name:"id",type:"InputDocument"}],type:"InputStickeredMedia"},{id:3187238203,predicate:"game",params:[{name:"flags",type:"#"},{name:"id",type:"long"},{name:"access_hash",type:"long"},{name:"short_name",type:"string"},{name:"title",type:"string"},{name:"description",type:"string"},{name:"photo",type:"Photo"},{name:"document",type:"flags.0?Document"}],type:"Game"},{id:53231223,predicate:"inputGameID",params:[{name:"id",type:"long"},{name:"access_hash",type:"long"}],type:"InputGame"},{id:3274827786,predicate:"inputGameShortName",params:[{name:"bot_id",type:"InputUser"},{name:"short_name",type:"string"}],type:"InputGame"},{id:1493171408,predicate:"highScore",params:[{name:"pos",type:"int"},{name:"user_id",type:"int"},{name:"score",type:"int"}],type:"HighScore"},{id:2587622809,predicate:"messages.highScores",params:[{name:"scores",type:"Vector<HighScore>"},{name:"users",type:"Vector<User>"}],type:"messages.HighScores"},{id:3695018575,predicate:"textEmpty",params:[],type:"RichText"},{id:1950782688,predicate:"textPlain",params:[{name:"text",type:"string"}],type:"RichText"},{id:1730456516,predicate:"textBold",params:[{name:"text",type:"RichText"}],type:"RichText"},{id:3641877916,predicate:"textItalic",params:[{name:"text",type:"RichText"}],type:"RichText"},{id:3240501956,predicate:"textUnderline",params:[{name:"text",type:"RichText"}],type:"RichText"},{id:2616769429,predicate:"textStrike",params:[{name:"text",type:"RichText"}],type:"RichText"},{id:1816074681,predicate:"textFixed",params:[{name:"text",type:"RichText"}],type:"RichText"},{id:1009288385,predicate:"textUrl",params:[{name:"text",type:"RichText"},{name:"url",type:"string"},{name:"webpage_id",type:"long"}],type:"RichText"},{id:3730443734,predicate:"textEmail",params:[{name:"text",type:"RichText"},{name:"email",type:"string"}],type:"RichText"},{id:2120376535,predicate:"textConcat",params:[{name:"texts",type:"Vector<RichText>"}],type:"RichText"},{id:3983181060,predicate:"textSubscript",params:[{name:"text",type:"RichText"}],type:"RichText"},{id:3355139585,predicate:"textSuperscript",params:[{name:"text",type:"RichText"}],type:"RichText"},{id:55281185,predicate:"textMarked",params:[{name:"text",type:"RichText"}],type:"RichText"},{id:483104362,predicate:"textPhone",params:[{name:"text",type:"RichText"},{name:"phone",type:"string"}],type:"RichText"},{id:136105807,predicate:"textImage",params:[{name:"document_id",type:"long"},{name:"w",type:"int"},{name:"h",type:"int"}],type:"RichText"},{id:894777186,predicate:"textAnchor",params:[{name:"text",type:"RichText"},{name:"name",type:"string"}],type:"RichText"},{id:324435594,predicate:"pageBlockUnsupported",params:[],type:"PageBlock"},{id:1890305021,predicate:"pageBlockTitle",params:[{name:"text",type:"RichText"}],type:"PageBlock"},{id:2415565343,predicate:"pageBlockSubtitle",params:[{name:"text",type:"RichText"}],type:"PageBlock"},{id:3132089824,predicate:"pageBlockAuthorDate",params:[{name:"author",type:"RichText"},{name:"published_date",type:"int"}],type:"PageBlock"},{id:3218105580,predicate:"pageBlockHeader",params:[{name:"text",type:"RichText"}],type:"PageBlock"},{id:4046173921,predicate:"pageBlockSubheader",params:[{name:"text",type:"RichText"}],type:"PageBlock"},{id:1182402406,predicate:"pageBlockParagraph",params:[{name:"text",type:"RichText"}],type:"PageBlock"},{id:3228621118,predicate:"pageBlockPreformatted",params:[{name:"text",type:"RichText"},{name:"language",type:"string"}],type:"PageBlock"},{id:1216809369,predicate:"pageBlockFooter",params:[{name:"text",type:"RichText"}],type:"PageBlock"},{id:3676352904,predicate:"pageBlockDivider",params:[],type:"PageBlock"},{id:3456972720,predicate:"pageBlockAnchor",params:[{name:"name",type:"string"}],type:"PageBlock"},{id:3840442385,predicate:"pageBlockList",params:[{name:"items",type:"Vector<PageListItem>"}],type:"PageBlock"},{id:641563686,predicate:"pageBlockBlockquote",params:[{name:"text",type:"RichText"},{name:"caption",type:"RichText"}],type:"PageBlock"},{id:1329878739,predicate:"pageBlockPullquote",params:[{name:"text",type:"RichText"},{name:"caption",type:"RichText"}],type:"PageBlock"},{id:391759200,predicate:"pageBlockPhoto",params:[{name:"flags",type:"#"},{name:"photo_id",type:"long"},{name:"caption",type:"PageCaption"},{name:"url",type:"flags.0?string"},{name:"webpage_id",type:"flags.0?long"}],type:"PageBlock"},{id:2089805750,predicate:"pageBlockVideo",params:[{name:"flags",type:"#"},{name:"autoplay",type:"flags.0?true"},{name:"loop",type:"flags.1?true"},{name:"video_id",type:"long"},{name:"caption",type:"PageCaption"}],type:"PageBlock"},{id:972174080,predicate:"pageBlockCover",params:[{name:"cover",type:"PageBlock"}],type:"PageBlock"},{id:2826014149,predicate:"pageBlockEmbed",params:[{name:"flags",type:"#"},{name:"full_width",type:"flags.0?true"},{name:"allow_scrolling",type:"flags.3?true"},{name:"url",type:"flags.1?string"},{name:"html",type:"flags.2?string"},{name:"poster_photo_id",type:"flags.4?long"},{name:"w",type:"flags.5?int"},{name:"h",type:"flags.5?int"},{name:"caption",type:"PageCaption"}],type:"PageBlock"},{id:4065961995,predicate:"pageBlockEmbedPost",params:[{name:"url",type:"string"},{name:"webpage_id",type:"long"},{name:"author_photo_id",type:"long"},{name:"author",type:"string"},{name:"date",type:"int"},{name:"blocks",type:"Vector<PageBlock>"},{name:"caption",type:"PageCaption"}],type:"PageBlock"},{id:1705048653,predicate:"pageBlockCollage",params:[{name:"items",type:"Vector<PageBlock>"},{name:"caption",type:"PageCaption"}],type:"PageBlock"},{id:52401552,predicate:"pageBlockSlideshow",params:[{name:"items",type:"Vector<PageBlock>"},{name:"caption",type:"PageCaption"}],type:"PageBlock"},{id:4011282869,predicate:"pageBlockChannel",params:[{name:"channel",type:"Chat"}],type:"PageBlock"},{id:2151899626,predicate:"pageBlockAudio",params:[{name:"audio_id",type:"long"},{name:"caption",type:"PageCaption"}],type:"PageBlock"},{id:504660880,predicate:"pageBlockKicker",params:[{name:"text",type:"RichText"}],type:"PageBlock"},{id:3209554562,predicate:"pageBlockTable",params:[{name:"flags",type:"#"},{name:"bordered",type:"flags.0?true"},{name:"striped",type:"flags.1?true"},{name:"title",type:"RichText"},{name:"rows",type:"Vector<PageTableRow>"}],type:"PageBlock"},{id:2592793057,predicate:"pageBlockOrderedList",params:[{name:"items",type:"Vector<PageListOrderedItem>"}],type:"PageBlock"},{id:1987480557,predicate:"pageBlockDetails",params:[{name:"flags",type:"#"},{name:"open",type:"flags.0?true"},{name:"blocks",type:"Vector<PageBlock>"},{name:"title",type:"RichText"}],type:"PageBlock"},{id:370236054,predicate:"pageBlockRelatedArticles",params:[{name:"title",type:"RichText"},{name:"articles",type:"Vector<PageRelatedArticle>"}],type:"PageBlock"},{id:2756656886,predicate:"pageBlockMap",params:[{name:"geo",type:"GeoPoint"},{name:"zoom",type:"int"},{name:"w",type:"int"},{name:"h",type:"int"},{name:"caption",type:"PageCaption"}],type:"PageBlock"},{id:2246320897,predicate:"phoneCallDiscardReasonMissed",params:[],type:"PhoneCallDiscardReason"},{id:3767910816,predicate:"phoneCallDiscardReasonDisconnect",params:[],type:"PhoneCallDiscardReason"},{id:1471006352,predicate:"phoneCallDiscardReasonHangup",params:[],type:"PhoneCallDiscardReason"},{id:4210550985,predicate:"phoneCallDiscardReasonBusy",params:[],type:"PhoneCallDiscardReason"},{id:2104790276,predicate:"dataJSON",params:[{name:"data",type:"string"}],type:"DataJSON"},{id:3408489464,predicate:"labeledPrice",params:[{name:"label",type:"string"},{name:"amount",type:"long"}],type:"LabeledPrice"},{id:3272254296,predicate:"invoice",params:[{name:"flags",type:"#"},{name:"test",type:"flags.0?true"},{name:"name_requested",type:"flags.1?true"},{name:"phone_requested",type:"flags.2?true"},{name:"email_requested",type:"flags.3?true"},{name:"shipping_address_requested",type:"flags.4?true"},{name:"flexible",type:"flags.5?true"},{name:"phone_to_provider",type:"flags.6?true"},{name:"email_to_provider",type:"flags.7?true"},{name:"currency",type:"string"},{name:"prices",type:"Vector<LabeledPrice>"}],type:"Invoice"},{id:3926049406,predicate:"paymentCharge",params:[{name:"id",type:"string"},{name:"provider_charge_id",type:"string"}],type:"PaymentCharge"},{id:512535275,predicate:"postAddress",params:[{name:"street_line1",type:"string"},{name:"street_line2",type:"string"},{name:"city",type:"string"},{name:"state",type:"string"},{name:"country_iso2",type:"string"},{name:"post_code",type:"string"}],type:"PostAddress"},{id:2426158996,predicate:"paymentRequestedInfo",params:[{name:"flags",type:"#"},{name:"name",type:"flags.0?string"},{name:"phone",type:"flags.1?string"},{name:"email",type:"flags.2?string"},{name:"shipping_address",type:"flags.3?PostAddress"}],type:"PaymentRequestedInfo"},{id:3452074527,predicate:"paymentSavedCredentialsCard",params:[{name:"id",type:"string"},{name:"title",type:"string"}],type:"PaymentSavedCredentials"},{id:475467473,predicate:"webDocument",params:[{name:"url",type:"string"},{name:"access_hash",type:"long"},{name:"size",type:"int"},{name:"mime_type",type:"string"},{name:"attributes",type:"Vector<DocumentAttribute>"}],type:"WebDocument"},{id:4190682310,predicate:"webDocumentNoProxy",params:[{name:"url",type:"string"},{name:"size",type:"int"},{name:"mime_type",type:"string"},{name:"attributes",type:"Vector<DocumentAttribute>"}],type:"WebDocument"},{id:2616017741,predicate:"inputWebDocument",params:[{name:"url",type:"string"},{name:"size",type:"int"},{name:"mime_type",type:"string"},{name:"attributes",type:"Vector<DocumentAttribute>"}],type:"InputWebDocument"},{id:3258570374,predicate:"inputWebFileLocation",params:[{name:"url",type:"string"},{name:"access_hash",type:"long"}],type:"InputWebFileLocation"},{id:2669814217,predicate:"inputWebFileGeoPointLocation",params:[{name:"geo_point",type:"InputGeoPoint"},{name:"access_hash",type:"long"},{name:"w",type:"int"},{name:"h",type:"int"},{name:"zoom",type:"int"},{name:"scale",type:"int"}],type:"InputWebFileLocation"},{id:568808380,predicate:"upload.webFile",params:[{name:"size",type:"int"},{name:"mime_type",type:"string"},{name:"file_type",type:"storage.FileType"},{name:"mtime",type:"int"},{name:"bytes",type:"bytes"}],type:"upload.WebFile"},{id:1062645411,predicate:"payments.paymentForm",params:[{name:"flags",type:"#"},{name:"can_save_credentials",type:"flags.2?true"},{name:"password_missing",type:"flags.3?true"},{name:"bot_id",type:"int"},{name:"invoice",type:"Invoice"},{name:"provider_id",type:"int"},{name:"url",type:"string"},{name:"native_provider",type:"flags.4?string"},{name:"native_params",type:"flags.4?DataJSON"},{name:"saved_info",type:"flags.0?PaymentRequestedInfo"},{name:"saved_credentials",type:"flags.1?PaymentSavedCredentials"},{name:"users",type:"Vector<User>"}],type:"payments.PaymentForm"},{id:3510966403,predicate:"payments.validatedRequestedInfo",params:[{name:"flags",type:"#"},{name:"id",type:"flags.0?string"},{name:"shipping_options",type:"flags.1?Vector<ShippingOption>"}],type:"payments.ValidatedRequestedInfo"},{id:1314881805,predicate:"payments.paymentResult",params:[{name:"updates",type:"Updates"}],type:"payments.PaymentResult"},{id:3628142905,predicate:"payments.paymentVerificationNeeded",params:[{name:"url",type:"string"}],type:"payments.PaymentResult"},{id:1342771681,predicate:"payments.paymentReceipt",params:[{name:"flags",type:"#"},{name:"date",type:"int"},{name:"bot_id",type:"int"},{name:"invoice",type:"Invoice"},{name:"provider_id",type:"int"},{name:"info",type:"flags.0?PaymentRequestedInfo"},{name:"shipping",type:"flags.1?ShippingOption"},{name:"currency",type:"string"},{name:"total_amount",type:"long"},{name:"credentials_title",type:"string"},{name:"users",type:"Vector<User>"}],type:"payments.PaymentReceipt"},{id:4220511292,predicate:"payments.savedInfo",params:[{name:"flags",type:"#"},{name:"has_saved_credentials",type:"flags.1?true"},{name:"saved_info",type:"flags.0?PaymentRequestedInfo"}],type:"payments.SavedInfo"},{id:3238965967,predicate:"inputPaymentCredentialsSaved",params:[{name:"id",type:"string"},{name:"tmp_password",type:"bytes"}],type:"InputPaymentCredentials"},{id:873977640,predicate:"inputPaymentCredentials",params:[{name:"flags",type:"#"},{name:"save",type:"flags.0?true"},{name:"data",type:"DataJSON"}],type:"InputPaymentCredentials"},{id:178373535,predicate:"inputPaymentCredentialsApplePay",params:[{name:"payment_data",type:"DataJSON"}],type:"InputPaymentCredentials"},{id:3389379854,predicate:"inputPaymentCredentialsAndroidPay",params:[{name:"payment_token",type:"DataJSON"},{name:"google_transaction_id",type:"string"}],type:"InputPaymentCredentials"},{id:3680828724,predicate:"account.tmpPassword",params:[{name:"tmp_password",type:"bytes"},{name:"valid_until",type:"int"}],type:"account.TmpPassword"},{id:3055631583,predicate:"shippingOption",params:[{name:"id",type:"string"},{name:"title",type:"string"},{name:"prices",type:"Vector<LabeledPrice>"}],type:"ShippingOption"},{id:4288717974,predicate:"inputStickerSetItem",params:[{name:"flags",type:"#"},{name:"document",type:"InputDocument"},{name:"emoji",type:"string"},{name:"mask_coords",type:"flags.0?MaskCoords"}],type:"InputStickerSetItem"},{id:506920429,predicate:"inputPhoneCall",params:[{name:"id",type:"long"},{name:"access_hash",type:"long"}],type:"InputPhoneCall"},{id:1399245077,predicate:"phoneCallEmpty",params:[{name:"id",type:"long"}],type:"PhoneCall"},{id:462375633,predicate:"phoneCallWaiting",params:[{name:"flags",type:"#"},{name:"video",type:"flags.5?true"},{name:"id",type:"long"},{name:"access_hash",type:"long"},{name:"date",type:"int"},{name:"admin_id",type:"int"},{name:"participant_id",type:"int"},{name:"protocol",type:"PhoneCallProtocol"},{name:"receive_date",type:"flags.0?int"}],type:"PhoneCall"},{id:2280307539,predicate:"phoneCallRequested",params:[{name:"flags",type:"#"},{name:"video",type:"flags.5?true"},{name:"id",type:"long"},{name:"access_hash",type:"long"},{name:"date",type:"int"},{name:"admin_id",type:"int"},{name:"participant_id",type:"int"},{name:"g_a_hash",type:"bytes"},{name:"protocol",type:"PhoneCallProtocol"}],type:"PhoneCall"},{id:2575058250,predicate:"phoneCallAccepted",params:[{name:"flags",type:"#"},{name:"video",type:"flags.5?true"},{name:"id",type:"long"},{name:"access_hash",type:"long"},{name:"date",type:"int"},{name:"admin_id",type:"int"},{name:"participant_id",type:"int"},{name:"g_b",type:"bytes"},{name:"protocol",type:"PhoneCallProtocol"}],type:"PhoneCall"},{id:2269294207,predicate:"phoneCall",params:[{name:"flags",type:"#"},{name:"p2p_allowed",type:"flags.5?true"},{name:"id",type:"long"},{name:"access_hash",type:"long"},{name:"date",type:"int"},{name:"admin_id",type:"int"},{name:"participant_id",type:"int"},{name:"g_a_or_b",type:"bytes"},{name:"key_fingerprint",type:"long"},{name:"protocol",type:"PhoneCallProtocol"},{name:"connections",type:"Vector<PhoneConnection>"},{name:"start_date",type:"int"}],type:"PhoneCall"},{id:1355435489,predicate:"phoneCallDiscarded",params:[{name:"flags",type:"#"},{name:"need_rating",type:"flags.2?true"},{name:"need_debug",type:"flags.3?true"},{name:"video",type:"flags.5?true"},{name:"id",type:"long"},{name:"reason",type:"flags.0?PhoneCallDiscardReason"},{name:"duration",type:"flags.1?int"}],type:"PhoneCall"},{id:2639009728,predicate:"phoneConnection",params:[{name:"id",type:"long"},{name:"ip",type:"string"},{name:"ipv6",type:"string"},{name:"port",type:"int"},{name:"peer_tag",type:"bytes"}],type:"PhoneConnection"},{id:4236742600,predicate:"phoneCallProtocol",params:[{name:"flags",type:"#"},{name:"udp_p2p",type:"flags.0?true"},{name:"udp_reflector",type:"flags.1?true"},{name:"min_layer",type:"int"},{name:"max_layer",type:"int"},{name:"library_versions",type:"Vector<string>"}],type:"PhoneCallProtocol"},{id:3968000320,predicate:"phone.phoneCall",params:[{name:"phone_call",type:"PhoneCall"},{name:"users",type:"Vector<User>"}],type:"phone.PhoneCall"},{id:4004045934,predicate:"upload.cdnFileReuploadNeeded",params:[{name:"request_token",type:"bytes"}],type:"upload.CdnFile"},{id:2845821519,predicate:"upload.cdnFile",params:[{name:"bytes",type:"bytes"}],type:"upload.CdnFile"},{id:3380800186,predicate:"cdnPublicKey",params:[{name:"dc_id",type:"int"},{name:"public_key",type:"string"}],type:"CdnPublicKey"},{id:1462101002,predicate:"cdnConfig",params:[{name:"public_keys",type:"Vector<CdnPublicKey>"}],type:"CdnConfig"},{id:3402727926,predicate:"langPackString",params:[{name:"key",type:"string"},{name:"value",type:"string"}],type:"LangPackString"},{id:1816636575,predicate:"langPackStringPluralized",params:[{name:"flags",type:"#"},{name:"key",type:"string"},{name:"zero_value",type:"flags.0?string"},{name:"one_value",type:"flags.1?string"},{name:"two_value",type:"flags.2?string"},{name:"few_value",type:"flags.3?string"},{name:"many_value",type:"flags.4?string"},{name:"other_value",type:"string"}],type:"LangPackString"},{id:695856818,predicate:"langPackStringDeleted",params:[{name:"key",type:"string"}],type:"LangPackString"},{id:4085629430,predicate:"langPackDifference",params:[{name:"lang_code",type:"string"},{name:"from_version",type:"int"},{name:"version",type:"int"},{name:"strings",type:"Vector<LangPackString>"}],type:"LangPackDifference"},{id:4006239459,predicate:"langPackLanguage",params:[{name:"flags",type:"#"},{name:"official",type:"flags.0?true"},{name:"rtl",type:"flags.2?true"},{name:"beta",type:"flags.3?true"},{name:"name",type:"string"},{name:"native_name",type:"string"},{name:"lang_code",type:"string"},{name:"base_lang_code",type:"flags.1?string"},{name:"plural_code",type:"string"},{name:"strings_count",type:"int"},{name:"translated_count",type:"int"},{name:"translations_url",type:"string"}],type:"LangPackLanguage"},{id:3873421349,predicate:"channelAdminLogEventActionChangeTitle",params:[{name:"prev_value",type:"string"},{name:"new_value",type:"string"}],type:"ChannelAdminLogEventAction"},{id:1427671598,predicate:"channelAdminLogEventActionChangeAbout",params:[{name:"prev_value",type:"string"},{name:"new_value",type:"string"}],type:"ChannelAdminLogEventAction"},{id:1783299128,predicate:"channelAdminLogEventActionChangeUsername",params:[{name:"prev_value",type:"string"},{name:"new_value",type:"string"}],type:"ChannelAdminLogEventAction"},{id:1129042607,predicate:"channelAdminLogEventActionChangePhoto",params:[{name:"prev_photo",type:"Photo"},{name:"new_photo",type:"Photo"}],type:"ChannelAdminLogEventAction"},{id:460916654,predicate:"channelAdminLogEventActionToggleInvites",params:[{name:"new_value",type:"Bool"}],type:"ChannelAdminLogEventAction"},{id:648939889,predicate:"channelAdminLogEventActionToggleSignatures",params:[{name:"new_value",type:"Bool"}],type:"ChannelAdminLogEventAction"},{id:3924306968,predicate:"channelAdminLogEventActionUpdatePinned",params:[{name:"message",type:"Message"}],type:"ChannelAdminLogEventAction"},{id:1889215493,predicate:"channelAdminLogEventActionEditMessage",params:[{name:"prev_message",type:"Message"},{name:"new_message",type:"Message"}],type:"ChannelAdminLogEventAction"},{id:1121994683,predicate:"channelAdminLogEventActionDeleteMessage",params:[{name:"message",type:"Message"}],type:"ChannelAdminLogEventAction"},{id:405815507,predicate:"channelAdminLogEventActionParticipantJoin",params:[],type:"ChannelAdminLogEventAction"},{id:4170676210,predicate:"channelAdminLogEventActionParticipantLeave",params:[],type:"ChannelAdminLogEventAction"},{id:3810276568,predicate:"channelAdminLogEventActionParticipantInvite",params:[{name:"participant",type:"ChannelParticipant"}],type:"ChannelAdminLogEventAction"},{id:3872931198,predicate:"channelAdminLogEventActionParticipantToggleBan",params:[{name:"prev_participant",type:"ChannelParticipant"},{name:"new_participant",type:"ChannelParticipant"}],type:"ChannelAdminLogEventAction"},{id:3580323600,predicate:"channelAdminLogEventActionParticipantToggleAdmin",params:[{name:"prev_participant",type:"ChannelParticipant"},{name:"new_participant",type:"ChannelParticipant"}],type:"ChannelAdminLogEventAction"},{id:2982398631,predicate:"channelAdminLogEventActionChangeStickerSet",params:[{name:"prev_stickerset",type:"InputStickerSet"},{name:"new_stickerset",type:"InputStickerSet"}],type:"ChannelAdminLogEventAction"},{id:1599903217,predicate:"channelAdminLogEventActionTogglePreHistoryHidden",params:[{name:"new_value",type:"Bool"}],type:"ChannelAdminLogEventAction"},{id:771095562,predicate:"channelAdminLogEventActionDefaultBannedRights",params:[{name:"prev_banned_rights",type:"ChatBannedRights"},{name:"new_banned_rights",type:"ChatBannedRights"}],type:"ChannelAdminLogEventAction"},{id:2399639107,predicate:"channelAdminLogEventActionStopPoll",params:[{name:"message",type:"Message"}],type:"ChannelAdminLogEventAction"},{id:2725218331,predicate:"channelAdminLogEventActionChangeLinkedChat",params:[{name:"prev_value",type:"int"},{name:"new_value",type:"int"}],type:"ChannelAdminLogEventAction"},{id:241923758,predicate:"channelAdminLogEventActionChangeLocation",params:[{name:"prev_value",type:"ChannelLocation"},{name:"new_value",type:"ChannelLocation"}],type:"ChannelAdminLogEventAction"},{id:1401984889,predicate:"channelAdminLogEventActionToggleSlowMode",params:[{name:"prev_value",type:"int"},{name:"new_value",type:"int"}],type:"ChannelAdminLogEventAction"},{id:995769920,predicate:"channelAdminLogEvent",params:[{name:"id",type:"long"},{name:"date",type:"int"},{name:"user_id",type:"int"},{name:"action",type:"ChannelAdminLogEventAction"}],type:"ChannelAdminLogEvent"},{id:3985307469,predicate:"channels.adminLogResults",params:[{name:"events",type:"Vector<ChannelAdminLogEvent>"},{name:"chats",type:"Vector<Chat>"},{name:"users",type:"Vector<User>"}],type:"channels.AdminLogResults"},{id:3926948580,predicate:"channelAdminLogEventsFilter",params:[{name:"flags",type:"#"},{name:"join",type:"flags.0?true"},{name:"leave",type:"flags.1?true"},{name:"invite",type:"flags.2?true"},{name:"ban",type:"flags.3?true"},{name:"unban",type:"flags.4?true"},{name:"kick",type:"flags.5?true"},{name:"unkick",type:"flags.6?true"},{name:"promote",type:"flags.7?true"},{name:"demote",type:"flags.8?true"},{name:"info",type:"flags.9?true"},{name:"settings",type:"flags.10?true"},{name:"pinned",type:"flags.11?true"},{name:"edit",type:"flags.12?true"},{name:"delete",type:"flags.13?true"}],type:"ChannelAdminLogEventsFilter"},{id:1558266229,predicate:"popularContact",params:[{name:"client_id",type:"long"},{name:"importers",type:"int"}],type:"PopularContact"},{id:2660214483,predicate:"messages.favedStickersNotModified",params:[],type:"messages.FavedStickers"},{id:4085198614,predicate:"messages.favedStickers",params:[{name:"hash",type:"int"},{name:"packs",type:"Vector<StickerPack>"},{name:"stickers",type:"Vector<Document>"}],type:"messages.FavedStickers"},{id:1189204285,predicate:"recentMeUrlUnknown",params:[{name:"url",type:"string"}],type:"RecentMeUrl"},{id:2377921334,predicate:"recentMeUrlUser",params:[{name:"url",type:"string"},{name:"user_id",type:"int"}],type:"RecentMeUrl"},{id:2686132985,predicate:"recentMeUrlChat",params:[{name:"url",type:"string"},{name:"chat_id",type:"int"}],type:"RecentMeUrl"},{id:3947431965,predicate:"recentMeUrlChatInvite",params:[{name:"url",type:"string"},{name:"chat_invite",type:"ChatInvite"}],type:"RecentMeUrl"},{id:3154794460,predicate:"recentMeUrlStickerSet",params:[{name:"url",type:"string"},{name:"set",type:"StickerSetCovered"}],type:"RecentMeUrl"},{id:235081943,predicate:"help.recentMeUrls",params:[{name:"urls",type:"Vector<RecentMeUrl>"},{name:"chats",type:"Vector<Chat>"},{name:"users",type:"Vector<User>"}],type:"help.RecentMeUrls"},{id:482797855,predicate:"inputSingleMedia",params:[{name:"flags",type:"#"},{name:"media",type:"InputMedia"},{name:"random_id",type:"long"},{name:"message",type:"string"},{name:"entities",type:"flags.0?Vector<MessageEntity>"}],type:"InputSingleMedia"},{id:3402187762,predicate:"webAuthorization",params:[{name:"hash",type:"long"},{name:"bot_id",type:"int"},{name:"domain",type:"string"},{name:"browser",type:"string"},{name:"platform",type:"string"},{name:"date_created",type:"int"},{name:"date_active",type:"int"},{name:"ip",type:"string"},{name:"region",type:"string"}],type:"WebAuthorization"},{id:3981887996,predicate:"account.webAuthorizations",params:[{name:"authorizations",type:"Vector<WebAuthorization>"},{name:"users",type:"Vector<User>"}],type:"account.WebAuthorizations"},{id:2792792866,predicate:"inputMessageID",params:[{name:"id",type:"int"}],type:"InputMessage"},{id:3134751637,predicate:"inputMessageReplyTo",params:[{name:"id",type:"int"}],type:"InputMessage"},{id:2257003832,predicate:"inputMessagePinned",params:[],type:"InputMessage"},{id:4239064759,predicate:"inputDialogPeer",params:[{name:"peer",type:"InputPeer"}],type:"InputDialogPeer"},{id:1684014375,predicate:"inputDialogPeerFolder",params:[{name:"folder_id",type:"int"}],type:"InputDialogPeer"},{id:3849174789,predicate:"dialogPeer",params:[{name:"peer",type:"Peer"}],type:"DialogPeer"},{id:1363483106,predicate:"dialogPeerFolder",params:[{name:"folder_id",type:"int"}],type:"DialogPeer"},{id:223655517,predicate:"messages.foundStickerSetsNotModified",params:[],type:"messages.FoundStickerSets"},{id:1359533640,predicate:"messages.foundStickerSets",params:[{name:"hash",type:"int"},{name:"sets",type:"Vector<StickerSetCovered>"}],type:"messages.FoundStickerSets"},{id:1648543603,predicate:"fileHash",params:[{name:"offset",type:"int"},{name:"limit",type:"int"},{name:"hash",type:"bytes"}],type:"FileHash"},{id:1968737087,predicate:"inputClientProxy",params:[{name:"address",type:"string"},{name:"port",type:"int"}],type:"InputClientProxy"},{id:3811614591,predicate:"help.termsOfServiceUpdateEmpty",params:[{name:"expires",type:"int"}],type:"help.TermsOfServiceUpdate"},{id:686618977,predicate:"help.termsOfServiceUpdate",params:[{name:"expires",type:"int"},{name:"terms_of_service",type:"help.TermsOfService"}],type:"help.TermsOfServiceUpdate"},{id:859091184,predicate:"inputSecureFileUploaded",params:[{name:"id",type:"long"},{name:"parts",type:"int"},{name:"md5_checksum",type:"string"},{name:"file_hash",type:"bytes"},{name:"secret",type:"bytes"}],type:"InputSecureFile"},{id:1399317950,predicate:"inputSecureFile",params:[{name:"id",type:"long"},{name:"access_hash",type:"long"}],type:"InputSecureFile"},{id:1679398724,predicate:"secureFileEmpty",params:[],type:"SecureFile"},{id:3760683618,predicate:"secureFile",params:[{name:"id",type:"long"},{name:"access_hash",type:"long"},{name:"size",type:"int"},{name:"dc_id",type:"int"},{name:"date",type:"int"},{name:"file_hash",type:"bytes"},{name:"secret",type:"bytes"}],type:"SecureFile"},{id:2330640067,predicate:"secureData",params:[{name:"data",type:"bytes"},{name:"data_hash",type:"bytes"},{name:"secret",type:"bytes"}],type:"SecureData"},{id:2103482845,predicate:"securePlainPhone",params:[{name:"phone",type:"string"}],type:"SecurePlainData"},{id:569137759,predicate:"securePlainEmail",params:[{name:"email",type:"string"}],type:"SecurePlainData"},{id:2636808675,predicate:"secureValueTypePersonalDetails",params:[],type:"SecureValueType"},{id:1034709504,predicate:"secureValueTypePassport",params:[],type:"SecureValueType"},{id:115615172,predicate:"secureValueTypeDriverLicense",params:[],type:"SecureValueType"},{id:2698015819,predicate:"secureValueTypeIdentityCard",params:[],type:"SecureValueType"},{id:2577698595,predicate:"secureValueTypeInternalPassport",params:[],type:"SecureValueType"},{id:3420659238,predicate:"secureValueTypeAddress",params:[],type:"SecureValueType"},{id:4231435598,predicate:"secureValueTypeUtilityBill",params:[],type:"SecureValueType"},{id:2299755533,predicate:"secureValueTypeBankStatement",params:[],type:"SecureValueType"},{id:2340959368,predicate:"secureValueTypeRentalAgreement",params:[],type:"SecureValueType"},{id:2581823594,predicate:"secureValueTypePassportRegistration",params:[],type:"SecureValueType"},{id:3926060083,predicate:"secureValueTypeTemporaryRegistration",params:[],type:"SecureValueType"},{id:3005262555,predicate:"secureValueTypePhone",params:[],type:"SecureValueType"},{id:2386339822,predicate:"secureValueTypeEmail",params:[],type:"SecureValueType"},{id:411017418,predicate:"secureValue",params:[{name:"flags",type:"#"},{name:"type",type:"SecureValueType"},{name:"data",type:"flags.0?SecureData"},{name:"front_side",type:"flags.1?SecureFile"},{name:"reverse_side",type:"flags.2?SecureFile"},{name:"selfie",type:"flags.3?SecureFile"},{name:"translation",type:"flags.6?Vector<SecureFile>"},{name:"files",type:"flags.4?Vector<SecureFile>"},{name:"plain_data",type:"flags.5?SecurePlainData"},{name:"hash",type:"bytes"}],type:"SecureValue"},{id:3676426407,predicate:"inputSecureValue",params:[{name:"flags",type:"#"},{name:"type",type:"SecureValueType"},{name:"data",type:"flags.0?SecureData"},{name:"front_side",type:"flags.1?InputSecureFile"},{name:"reverse_side",type:"flags.2?InputSecureFile"},{name:"selfie",type:"flags.3?InputSecureFile"},{name:"translation",type:"flags.6?Vector<InputSecureFile>"},{name:"files",type:"flags.4?Vector<InputSecureFile>"},{name:"plain_data",type:"flags.5?SecurePlainData"}],type:"InputSecureValue"},{id:3978218928,predicate:"secureValueHash",params:[{name:"type",type:"SecureValueType"},{name:"hash",type:"bytes"}],type:"SecureValueHash"},{id:3903065049,predicate:"secureValueErrorData",params:[{name:"type",type:"SecureValueType"},{name:"data_hash",type:"bytes"},{name:"field",type:"string"},{name:"text",type:"string"}],type:"SecureValueError"},{id:12467706,predicate:"secureValueErrorFrontSide",params:[{name:"type",type:"SecureValueType"},{name:"file_hash",type:"bytes"},{name:"text",type:"string"}],type:"SecureValueError"},{id:2257201829,predicate:"secureValueErrorReverseSide",params:[{name:"type",type:"SecureValueType"},{name:"file_hash",type:"bytes"},{name:"text",type:"string"}],type:"SecureValueError"},{id:3845639894,predicate:"secureValueErrorSelfie",params:[{name:"type",type:"SecureValueType"},{name:"file_hash",type:"bytes"},{name:"text",type:"string"}],type:"SecureValueError"},{id:2054162547,predicate:"secureValueErrorFile",params:[{name:"type",type:"SecureValueType"},{name:"file_hash",type:"bytes"},{name:"text",type:"string"}],type:"SecureValueError"},{id:1717706985,predicate:"secureValueErrorFiles",params:[{name:"type",type:"SecureValueType"},{name:"file_hash",type:"Vector<bytes>"},{name:"text",type:"string"}],type:"SecureValueError"},{id:2258466191,predicate:"secureValueError",params:[{name:"type",type:"SecureValueType"},{name:"hash",type:"bytes"},{name:"text",type:"string"}],type:"SecureValueError"},{id:2702460784,predicate:"secureValueErrorTranslationFile",params:[{name:"type",type:"SecureValueType"},{name:"file_hash",type:"bytes"},{name:"text",type:"string"}],type:"SecureValueError"},{id:878931416,predicate:"secureValueErrorTranslationFiles",params:[{name:"type",type:"SecureValueType"},{name:"file_hash",type:"Vector<bytes>"},{name:"text",type:"string"}],type:"SecureValueError"},{id:871426631,predicate:"secureCredentialsEncrypted",params:[{name:"data",type:"bytes"},{name:"hash",type:"bytes"},{name:"secret",type:"bytes"}],type:"SecureCredentialsEncrypted"},{id:2905480408,predicate:"account.authorizationForm",params:[{name:"flags",type:"#"},{name:"required_types",type:"Vector<SecureRequiredType>"},{name:"values",type:"Vector<SecureValue>"},{name:"errors",type:"Vector<SecureValueError>"},{name:"users",type:"Vector<User>"},{name:"privacy_policy_url",type:"flags.0?string"}],type:"account.AuthorizationForm"},{id:2166326607,predicate:"account.sentEmailCode",params:[{name:"email_pattern",type:"string"},{name:"length",type:"int"}],type:"account.SentEmailCode"},{id:1722786150,predicate:"help.deepLinkInfoEmpty",params:[],type:"help.DeepLinkInfo"},{id:1783556146,predicate:"help.deepLinkInfo",params:[{name:"flags",type:"#"},{name:"update_app",type:"flags.0?true"},{name:"message",type:"string"},{name:"entities",type:"flags.1?Vector<MessageEntity>"}],type:"help.DeepLinkInfo"},{id:289586518,predicate:"savedPhoneContact",params:[{name:"phone",type:"string"},{name:"first_name",type:"string"},{name:"last_name",type:"string"},{name:"date",type:"int"}],type:"SavedContact"},{id:1304052993,predicate:"account.takeout",params:[{name:"id",type:"long"}],type:"account.Takeout"},{id:3562713238,predicate:"passwordKdfAlgoUnknown",params:[],type:"PasswordKdfAlgo"},{id:982592842,predicate:"passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow",params:[{name:"salt1",type:"bytes"},{name:"salt2",type:"bytes"},{name:"g",type:"int"},{name:"p",type:"bytes"}],type:"PasswordKdfAlgo"},{id:4883767,predicate:"securePasswordKdfAlgoUnknown",params:[],type:"SecurePasswordKdfAlgo"},{id:3153255840,predicate:"securePasswordKdfAlgoPBKDF2HMACSHA512iter100000",params:[{name:"salt",type:"bytes"}],type:"SecurePasswordKdfAlgo"},{id:2252807570,predicate:"securePasswordKdfAlgoSHA512",params:[{name:"salt",type:"bytes"}],type:"SecurePasswordKdfAlgo"},{id:354925740,predicate:"secureSecretSettings",params:[{name:"secure_algo",type:"SecurePasswordKdfAlgo"},{name:"secure_secret",type:"bytes"},{name:"secure_secret_id",type:"long"}],type:"SecureSecretSettings"},{id:2558588504,predicate:"inputCheckPasswordEmpty",params:[],type:"InputCheckPasswordSRP"},{id:3531600002,predicate:"inputCheckPasswordSRP",params:[{name:"srp_id",type:"long"},{name:"A",type:"bytes"},{name:"M1",type:"bytes"}],type:"InputCheckPasswordSRP"},{id:2191366618,predicate:"secureRequiredType",params:[{name:"flags",type:"#"},{name:"native_names",type:"flags.0?true"},{name:"selfie_required",type:"flags.1?true"},{name:"translation_required",type:"flags.2?true"},{name:"type",type:"SecureValueType"}],type:"SecureRequiredType"},{id:41187252,predicate:"secureRequiredTypeOneOf",params:[{name:"types",type:"Vector<SecureRequiredType>"}],type:"SecureRequiredType"},{id:3216634967,predicate:"help.passportConfigNotModified",params:[],type:"help.PassportConfig"},{id:2694370991,predicate:"help.passportConfig",params:[{name:"hash",type:"int"},{name:"countries_langs",type:"DataJSON"}],type:"help.PassportConfig"},{id:488313413,predicate:"inputAppEvent",params:[{name:"time",type:"double"},{name:"type",type:"string"},{name:"peer",type:"long"},{name:"data",type:"JSONValue"}],type:"InputAppEvent"},{id:3235781593,predicate:"jsonObjectValue",params:[{name:"key",type:"string"},{name:"value",type:"JSONValue"}],type:"JSONObjectValue"},{id:1064139624,predicate:"jsonNull",params:[],type:"JSONValue"},{id:3342098026,predicate:"jsonBool",params:[{name:"value",type:"Bool"}],type:"JSONValue"},{id:736157604,predicate:"jsonNumber",params:[{name:"value",type:"double"}],type:"JSONValue"},{id:3072226938,predicate:"jsonString",params:[{name:"value",type:"string"}],type:"JSONValue"},{id:4148447075,predicate:"jsonArray",params:[{name:"value",type:"Vector<JSONValue>"}],type:"JSONValue"},{id:2579616925,predicate:"jsonObject",params:[{name:"value",type:"Vector<JSONObjectValue>"}],type:"JSONValue"},{id:878078826,predicate:"pageTableCell",params:[{name:"flags",type:"#"},{name:"header",type:"flags.0?true"},{name:"align_center",type:"flags.3?true"},{name:"align_right",type:"flags.4?true"},{name:"valign_middle",type:"flags.5?true"},{name:"valign_bottom",type:"flags.6?true"},{name:"text",type:"flags.7?RichText"},{name:"colspan",type:"flags.1?int"},{name:"rowspan",type:"flags.2?int"}],type:"PageTableCell"},{id:3770729957,predicate:"pageTableRow",params:[{name:"cells",type:"Vector<PageTableCell>"}],type:"PageTableRow"},{id:1869903447,predicate:"pageCaption",params:[{name:"text",type:"RichText"},{name:"credit",type:"RichText"}],type:"PageCaption"},{id:3106911949,predicate:"pageListItemText",params:[{name:"text",type:"RichText"}],type:"PageListItem"},{id:635466748,predicate:"pageListItemBlocks",params:[{name:"blocks",type:"Vector<PageBlock>"}],type:"PageListItem"},{id:1577484359,predicate:"pageListOrderedItemText",params:[{name:"num",type:"string"},{name:"text",type:"RichText"}],type:"PageListOrderedItem"},{id:2564655414,predicate:"pageListOrderedItemBlocks",params:[{name:"num",type:"string"},{name:"blocks",type:"Vector<PageBlock>"}],type:"PageListOrderedItem"},{id:3012615176,predicate:"pageRelatedArticle",params:[{name:"flags",type:"#"},{name:"url",type:"string"},{name:"webpage_id",type:"long"},{name:"title",type:"flags.0?string"},{name:"description",type:"flags.1?string"},{name:"photo_id",type:"flags.2?long"},{name:"author",type:"flags.3?string"},{name:"published_date",type:"flags.4?int"}],type:"PageRelatedArticle"},{id:2556788493,predicate:"page",params:[{name:"flags",type:"#"},{name:"part",type:"flags.0?true"},{name:"rtl",type:"flags.1?true"},{name:"v2",type:"flags.2?true"},{name:"url",type:"string"},{name:"blocks",type:"Vector<PageBlock>"},{name:"photos",type:"Vector<Photo>"},{name:"documents",type:"Vector<Document>"},{name:"views",type:"flags.3?int"}],type:"Page"},{id:2349199817,predicate:"help.supportName",params:[{name:"name",type:"string"}],type:"help.SupportName"},{id:4088278765,predicate:"help.userInfoEmpty",params:[],type:"help.UserInfo"},{id:32192344,predicate:"help.userInfo",params:[{name:"message",type:"string"},{name:"entities",type:"Vector<MessageEntity>"},{name:"author",type:"string"},{name:"date",type:"int"}],type:"help.UserInfo"},{id:1823064809,predicate:"pollAnswer",params:[{name:"text",type:"string"},{name:"option",type:"bytes"}],type:"PollAnswer"},{id:2262925665,predicate:"poll",params:[{name:"id",type:"long"},{name:"flags",type:"#"},{name:"closed",type:"flags.0?true"},{name:"public_voters",type:"flags.1?true"},{name:"multiple_choice",type:"flags.2?true"},{name:"quiz",type:"flags.3?true"},{name:"question",type:"string"},{name:"answers",type:"Vector<PollAnswer>"},{name:"close_period",type:"flags.4?int"},{name:"close_date",type:"flags.5?int"}],type:"Poll"},{id:997055186,predicate:"pollAnswerVoters",params:[{name:"flags",type:"#"},{name:"chosen",type:"flags.0?true"},{name:"correct",type:"flags.1?true"},{name:"option",type:"bytes"},{name:"voters",type:"int"}],type:"PollAnswerVoters"},{id:3135029667,predicate:"pollResults",params:[{name:"flags",type:"#"},{name:"min",type:"flags.0?true"},{name:"results",type:"flags.1?Vector<PollAnswerVoters>"},{name:"total_voters",type:"flags.2?int"},{name:"recent_voters",type:"flags.3?Vector<int>"},{name:"solution",type:"flags.4?string"},{name:"solution_entities",type:"flags.4?Vector<MessageEntity>"}],type:"PollResults"},{id:4030849616,predicate:"chatOnlines",params:[{name:"onlines",type:"int"}],type:"ChatOnlines"},{id:1202287072,predicate:"statsURL",params:[{name:"url",type:"string"}],type:"StatsURL"},{id:1605510357,predicate:"chatAdminRights",params:[{name:"flags",type:"#"},{name:"change_info",type:"flags.0?true"},{name:"post_messages",type:"flags.1?true"},{name:"edit_messages",type:"flags.2?true"},{name:"delete_messages",type:"flags.3?true"},{name:"ban_users",type:"flags.4?true"},{name:"invite_users",type:"flags.5?true"},{name:"pin_messages",type:"flags.7?true"},{name:"add_admins",type:"flags.9?true"}],type:"ChatAdminRights"},{id:2668758040,predicate:"chatBannedRights",params:[{name:"flags",type:"#"},{name:"view_messages",type:"flags.0?true"},{name:"send_messages",type:"flags.1?true"},{name:"send_media",type:"flags.2?true"},{name:"send_stickers",type:"flags.3?true"},{name:"send_gifs",type:"flags.4?true"},{name:"send_games",type:"flags.5?true"},{name:"send_inline",type:"flags.6?true"},{name:"embed_links",type:"flags.7?true"},{name:"send_polls",type:"flags.8?true"},{name:"change_info",type:"flags.10?true"},{name:"invite_users",type:"flags.15?true"},{name:"pin_messages",type:"flags.17?true"},{name:"until_date",type:"int"}],type:"ChatBannedRights"},{id:3861952889,predicate:"inputWallPaper",params:[{name:"id",type:"long"},{name:"access_hash",type:"long"}],type:"InputWallPaper"},{id:1913199744,predicate:"inputWallPaperSlug",params:[{name:"slug",type:"string"}],type:"InputWallPaper"},{id:2217196460,predicate:"inputWallPaperNoFile",params:[],type:"InputWallPaper"},{id:471437699,predicate:"account.wallPapersNotModified",params:[],type:"account.WallPapers"},{id:1881892265,predicate:"account.wallPapers",params:[{name:"hash",type:"int"},{name:"wallpapers",type:"Vector<WallPaper>"}],type:"account.WallPapers"},{id:3737042563,predicate:"codeSettings",params:[{name:"flags",type:"#"},{name:"allow_flashcall",type:"flags.0?true"},{name:"current_number",type:"flags.1?true"},{name:"allow_app_hash",type:"flags.4?true"}],type:"CodeSettings"},{id:84438264,predicate:"wallPaperSettings",params:[{name:"flags",type:"#"},{name:"blur",type:"flags.1?true"},{name:"motion",type:"flags.2?true"},{name:"background_color",type:"flags.0?int"},{name:"second_background_color",type:"flags.4?int"},{name:"intensity",type:"flags.3?int"},{name:"rotation",type:"flags.4?int"}],type:"WallPaperSettings"},{id:3762434803,predicate:"autoDownloadSettings",params:[{name:"flags",type:"#"},{name:"disabled",type:"flags.0?true"},{name:"video_preload_large",type:"flags.1?true"},{name:"audio_preload_next",type:"flags.2?true"},{name:"phonecalls_less_data",type:"flags.3?true"},{name:"photo_size_max",type:"int"},{name:"video_size_max",type:"int"},{name:"file_size_max",type:"int"},{name:"video_upload_maxbitrate",type:"int"}],type:"AutoDownloadSettings"},{id:1674235686,predicate:"account.autoDownloadSettings",params:[{name:"low",type:"AutoDownloadSettings"},{name:"medium",type:"AutoDownloadSettings"},{name:"high",type:"AutoDownloadSettings"}],type:"account.AutoDownloadSettings"},{id:3585325561,predicate:"emojiKeyword",params:[{name:"keyword",type:"string"},{name:"emoticons",type:"Vector<string>"}],type:"EmojiKeyword"},{id:594408994,predicate:"emojiKeywordDeleted",params:[{name:"keyword",type:"string"},{name:"emoticons",type:"Vector<string>"}],type:"EmojiKeyword"},{id:1556570557,predicate:"emojiKeywordsDifference",params:[{name:"lang_code",type:"string"},{name:"from_version",type:"int"},{name:"version",type:"int"},{name:"keywords",type:"Vector<EmojiKeyword>"}],type:"EmojiKeywordsDifference"},{id:2775937949,predicate:"emojiURL",params:[{name:"url",type:"string"}],type:"EmojiURL"},{id:3019592545,predicate:"emojiLanguage",params:[{name:"lang_code",type:"string"}],type:"EmojiLanguage"},{id:3162490573,predicate:"fileLocationToBeDeprecated",params:[{name:"volume_id",type:"long"},{name:"local_id",type:"int"}],type:"FileLocation"},{id:4283715173,predicate:"folder",params:[{name:"flags",type:"#"},{name:"autofill_new_broadcasts",type:"flags.0?true"},{name:"autofill_public_groups",type:"flags.1?true"},{name:"autofill_new_correspondents",type:"flags.2?true"},{name:"id",type:"int"},{name:"title",type:"string"},{name:"photo",type:"flags.3?ChatPhoto"}],type:"Folder"},{id:4224893590,predicate:"inputFolderPeer",params:[{name:"peer",type:"InputPeer"},{name:"folder_id",type:"int"}],type:"InputFolderPeer"},{id:3921323624,predicate:"folderPeer",params:[{name:"peer",type:"Peer"},{name:"folder_id",type:"int"}],type:"FolderPeer"},{id:3896830975,predicate:"messages.searchCounter",params:[{name:"flags",type:"#"},{name:"inexact",type:"flags.1?true"},{name:"filter",type:"MessagesFilter"},{name:"count",type:"int"}],type:"messages.SearchCounter"},{id:2463316494,predicate:"urlAuthResultRequest",params:[{name:"flags",type:"#"},{name:"request_write_access",type:"flags.0?true"},{name:"bot",type:"User"},{name:"domain",type:"string"}],type:"UrlAuthResult"},{id:2408320590,predicate:"urlAuthResultAccepted",params:[{name:"url",type:"string"}],type:"UrlAuthResult"},{id:2849430303,predicate:"urlAuthResultDefault",params:[],type:"UrlAuthResult"},{id:3216354699,predicate:"channelLocationEmpty",params:[],type:"ChannelLocation"},{id:547062491,predicate:"channelLocation",params:[{name:"geo_point",type:"GeoPoint"},{name:"address",type:"string"}],type:"ChannelLocation"},{id:3393592157,predicate:"peerLocated",params:[{name:"peer",type:"Peer"},{name:"expires",type:"int"},{name:"distance",type:"int"}],type:"PeerLocated"},{id:4176226379,predicate:"peerSelfLocated",params:[{name:"expires",type:"int"}],type:"PeerLocated"},{id:3497176244,predicate:"restrictionReason",params:[{name:"platform",type:"string"},{name:"reason",type:"string"},{name:"text",type:"string"}],type:"RestrictionReason"},{id:1012306921,predicate:"inputTheme",params:[{name:"id",type:"long"},{name:"access_hash",type:"long"}],type:"InputTheme"},{id:4119399921,predicate:"inputThemeSlug",params:[{name:"slug",type:"string"}],type:"InputTheme"},{id:42930452,predicate:"theme",params:[{name:"flags",type:"#"},{name:"creator",type:"flags.0?true"},{name:"default",type:"flags.1?true"},{name:"id",type:"long"},{name:"access_hash",type:"long"},{name:"slug",type:"string"},{name:"title",type:"string"},{name:"document",type:"flags.2?Document"},{name:"settings",type:"flags.3?ThemeSettings"},{name:"installs_count",type:"int"}],type:"Theme"},{id:4095653410,predicate:"account.themesNotModified",params:[],type:"account.Themes"},{id:2137482273,predicate:"account.themes",params:[{name:"hash",type:"int"},{name:"themes",type:"Vector<Theme>"}],type:"account.Themes"},{id:1654593920,predicate:"auth.loginToken",params:[{name:"expires",type:"int"},{name:"token",type:"bytes"}],type:"auth.LoginToken"},{id:110008598,predicate:"auth.loginTokenMigrateTo",params:[{name:"dc_id",type:"int"},{name:"token",type:"bytes"}],type:"auth.LoginToken"},{id:957176926,predicate:"auth.loginTokenSuccess",params:[{name:"authorization",type:"auth.Authorization"}],type:"auth.LoginToken"},{id:1474462241,predicate:"account.contentSettings",params:[{name:"flags",type:"#"},{name:"sensitive_enabled",type:"flags.0?true"},{name:"sensitive_can_change",type:"flags.1?true"}],type:"account.ContentSettings"},{id:2837970629,predicate:"messages.inactiveChats",params:[{name:"dates",type:"Vector<int>"},{name:"chats",type:"Vector<Chat>"},{name:"users",type:"Vector<User>"}],type:"messages.InactiveChats"},{id:3282117730,predicate:"baseThemeClassic",params:[],type:"BaseTheme"},{id:4225242760,predicate:"baseThemeDay",params:[],type:"BaseTheme"},{id:3081969320,predicate:"baseThemeNight",params:[],type:"BaseTheme"},{id:1834973166,predicate:"baseThemeTinted",params:[],type:"BaseTheme"},{id:1527845466,predicate:"baseThemeArctic",params:[],type:"BaseTheme"},{id:3176168657,predicate:"inputThemeSettings",params:[{name:"flags",type:"#"},{name:"base_theme",type:"BaseTheme"},{name:"accent_color",type:"int"},{name:"message_top_color",type:"flags.0?int"},{name:"message_bottom_color",type:"flags.0?int"},{name:"wallpaper",type:"flags.1?InputWallPaper"},{name:"wallpaper_settings",type:"flags.1?WallPaperSettings"}],type:"InputThemeSettings"},{id:2618595402,predicate:"themeSettings",params:[{name:"flags",type:"#"},{name:"base_theme",type:"BaseTheme"},{name:"accent_color",type:"int"},{name:"message_top_color",type:"flags.0?int"},{name:"message_bottom_color",type:"flags.0?int"},{name:"wallpaper",type:"flags.1?WallPaper"}],type:"ThemeSettings"},{id:1421174295,predicate:"webPageAttributeTheme",params:[{name:"flags",type:"#"},{name:"documents",type:"flags.0?Vector<Document>"},{name:"settings",type:"flags.1?ThemeSettings"}],type:"WebPageAttribute"},{id:2727236953,predicate:"messageUserVote",params:[{name:"user_id",type:"int"},{name:"option",type:"bytes"},{name:"date",type:"int"}],type:"MessageUserVote"},{id:909603888,predicate:"messageUserVoteInputOption",params:[{name:"user_id",type:"int"},{name:"date",type:"int"}],type:"MessageUserVote"},{id:244310238,predicate:"messageUserVoteMultiple",params:[{name:"user_id",type:"int"},{name:"options",type:"Vector<bytes>"},{name:"date",type:"int"}],type:"MessageUserVote"},{id:136574537,predicate:"messages.votesList",params:[{name:"flags",type:"#"},{name:"count",type:"int"},{name:"votes",type:"Vector<MessageUserVote>"},{name:"users",type:"Vector<User>"},{name:"next_offset",type:"flags.0?string"}],type:"messages.VotesList"},{id:4117234314,predicate:"bankCardOpenUrl",params:[{name:"url",type:"string"},{name:"name",type:"string"}],type:"BankCardOpenUrl"},{id:1042605427,predicate:"payments.bankCardData",params:[{name:"title",type:"string"},{name:"open_urls",type:"Vector<BankCardOpenUrl>"}],type:"payments.BankCardData"},{id:1949890536,predicate:"dialogFilter",params:[{name:"flags",type:"#"},{name:"contacts",type:"flags.0?true"},{name:"non_contacts",type:"flags.1?true"},{name:"groups",type:"flags.2?true"},{name:"broadcasts",type:"flags.3?true"},{name:"bots",type:"flags.4?true"},{name:"exclude_muted",type:"flags.11?true"},{name:"exclude_read",type:"flags.12?true"},{name:"exclude_archived",type:"flags.13?true"},{name:"id",type:"int"},{name:"title",type:"string"},{name:"emoticon",type:"flags.25?string"},{name:"pinned_peers",type:"Vector<InputPeer>"},{name:"include_peers",type:"Vector<InputPeer>"},{name:"exclude_peers",type:"Vector<InputPeer>"}],type:"DialogFilter"},{id:2004110666,predicate:"dialogFilterSuggested",params:[{name:"filter",type:"DialogFilter"},{name:"description",type:"string"}],type:"DialogFilterSuggested"},{id:3057118639,predicate:"statsDateRangeDays",params:[{name:"min_date",type:"int"},{name:"max_date",type:"int"}],type:"StatsDateRangeDays"},{id:3410210014,predicate:"statsAbsValueAndPrev",params:[{name:"current",type:"double"},{name:"previous",type:"double"}],type:"StatsAbsValueAndPrev"},{id:3419287520,predicate:"statsPercentValue",params:[{name:"part",type:"double"},{name:"total",type:"double"}],type:"StatsPercentValue"},{id:1244130093,predicate:"statsGraphAsync",params:[{name:"token",type:"string"}],type:"StatsGraph"},{id:3202127906,predicate:"statsGraphError",params:[{name:"error",type:"string"}],type:"StatsGraph"},{id:2393138358,predicate:"statsGraph",params:[{name:"flags",type:"#"},{name:"json",type:"DataJSON"},{name:"zoom_token",type:"flags.0?string"}],type:"StatsGraph"},{id:2907687357,predicate:"messageInteractionCounters",params:[{name:"msg_id",type:"int"},{name:"views",type:"int"},{name:"forwards",type:"int"}],type:"MessageInteractionCounters"},{id:3187114900,predicate:"stats.broadcastStats",params:[{name:"period",type:"StatsDateRangeDays"},{name:"followers",type:"StatsAbsValueAndPrev"},{name:"views_per_post",type:"StatsAbsValueAndPrev"},{name:"shares_per_post",type:"StatsAbsValueAndPrev"},{name:"enabled_notifications",type:"StatsPercentValue"},{name:"growth_graph",type:"StatsGraph"},{name:"followers_graph",type:"StatsGraph"},{name:"mute_graph",type:"StatsGraph"},{name:"top_hours_graph",type:"StatsGraph"},{name:"interactions_graph",type:"StatsGraph"},{name:"iv_interactions_graph",type:"StatsGraph"},{name:"views_by_source_graph",type:"StatsGraph"},{name:"new_followers_by_source_graph",type:"StatsGraph"},{name:"languages_graph",type:"StatsGraph"},{name:"recent_message_interactions",type:"Vector<MessageInteractionCounters>"}],type:"stats.BroadcastStats"},{id:2566302837,predicate:"help.promoDataEmpty",params:[{name:"expires",type:"int"}],type:"help.PromoData"},{id:2352576831,predicate:"help.promoData",params:[{name:"flags",type:"#"},{name:"proxy",type:"flags.0?true"},{name:"expires",type:"int"},{name:"peer",type:"Peer"},{name:"chats",type:"Vector<Chat>"},{name:"users",type:"Vector<User>"},{name:"psa_type",type:"flags.1?string"},{name:"psa_message",type:"flags.2?string"}],type:"help.PromoData"},{id:1130084743,predicate:"videoSize",params:[{name:"type",type:"string"},{name:"location",type:"FileLocation"},{name:"w",type:"int"},{name:"h",type:"int"},{name:"size",type:"int"}],type:"VideoSize"}],methods:[{id:3416209197,method:"invokeAfterMsg",params:[{name:"msg_id",type:"long"},{name:"query",type:"!X"}],type:"X"},{id:1036301552,method:"invokeAfterMsgs",params:[{name:"msg_ids",type:"Vector<long>"},{name:"query",type:"!X"}],type:"X"},{id:3251461801,method:"initConnection",params:[{name:"flags",type:"#"},{name:"api_id",type:"int"},{name:"device_model",type:"string"},{name:"system_version",type:"string"},{name:"app_version",type:"string"},{name:"system_lang_code",type:"string"},{name:"lang_pack",type:"string"},{name:"lang_code",type:"string"},{name:"proxy",type:"flags.0?InputClientProxy"},{name:"params",type:"flags.1?JSONValue"},{name:"query",type:"!X"}],type:"X"},{id:3667594509,method:"invokeWithLayer",params:[{name:"layer",type:"int"},{name:"query",type:"!X"}],type:"X"},{id:3214170551,method:"invokeWithoutUpdates",params:[{name:"query",type:"!X"}],type:"X"},{id:911373810,method:"invokeWithMessagesRange",params:[{name:"range",type:"MessageRange"},{name:"query",type:"!X"}],type:"X"},{id:2896821550,method:"invokeWithTakeout",params:[{name:"takeout_id",type:"long"},{name:"query",type:"!X"}],type:"X"},{id:2792825935,method:"auth.sendCode",params:[{name:"phone_number",type:"string"},{name:"api_id",type:"int"},{name:"api_hash",type:"string"},{name:"settings",type:"CodeSettings"}],type:"auth.SentCode"},{id:2163139623,method:"auth.signUp",params:[{name:"phone_number",type:"string"},{name:"phone_code_hash",type:"string"},{name:"first_name",type:"string"},{name:"last_name",type:"string"}],type:"auth.Authorization"},{id:3168081281,method:"auth.signIn",params:[{name:"phone_number",type:"string"},{name:"phone_code_hash",type:"string"},{name:"phone_code",type:"string"}],type:"auth.Authorization"},{id:1461180992,method:"auth.logOut",params:[],type:"Bool"},{id:2678787354,method:"auth.resetAuthorizations",params:[],type:"Bool"},{id:3854565325,method:"auth.exportAuthorization",params:[{name:"dc_id",type:"int"}],type:"auth.ExportedAuthorization"},{id:3824129555,method:"auth.importAuthorization",params:[{name:"id",type:"int"},{name:"bytes",type:"bytes"}],type:"auth.Authorization"},{id:3453233669,method:"auth.bindTempAuthKey",params:[{name:"perm_auth_key_id",type:"long"},{name:"nonce",type:"long"},{name:"expires_at",type:"int"},{name:"encrypted_message",type:"bytes"}],type:"Bool"},{id:1738800940,method:"auth.importBotAuthorization",params:[{name:"flags",type:"int"},{name:"api_id",type:"int"},{name:"api_hash",type:"string"},{name:"bot_auth_token",type:"string"}],type:"auth.Authorization"},{id:3515567382,method:"auth.checkPassword",params:[{name:"password",type:"InputCheckPasswordSRP"}],type:"auth.Authorization"},{id:3633822822,method:"auth.requestPasswordRecovery",params:[],type:"auth.PasswordRecovery"},{id:1319464594,method:"auth.recoverPassword",params:[{name:"code",type:"string"}],type:"auth.Authorization"},{id:1056025023,method:"auth.resendCode",params:[{name:"phone_number",type:"string"},{name:"phone_code_hash",type:"string"}],type:"auth.SentCode"},{id:520357240,method:"auth.cancelCode",params:[{name:"phone_number",type:"string"},{name:"phone_code_hash",type:"string"}],type:"Bool"},{id:2387124616,method:"auth.dropTempAuthKeys",params:[{name:"except_auth_keys",type:"Vector<long>"}],type:"Bool"},{id:2981369111,method:"auth.exportLoginToken",params:[{name:"api_id",type:"int"},{name:"api_hash",type:"string"},{name:"except_ids",type:"Vector<int>"}],type:"auth.LoginToken"},{id:2511101156,method:"auth.importLoginToken",params:[{name:"token",type:"bytes"}],type:"auth.LoginToken"},{id:3902057805,method:"auth.acceptLoginToken",params:[{name:"token",type:"bytes"}],type:"Authorization"},{id:1754754159,method:"account.registerDevice",params:[{name:"flags",type:"#"},{name:"no_muted",type:"flags.0?true"},{name:"token_type",type:"int"},{name:"token",type:"string"},{name:"app_sandbox",type:"Bool"},{name:"secret",type:"bytes"},{name:"other_uids",type:"Vector<int>"}],type:"Bool"},{id:813089983,method:"account.unregisterDevice",params:[{name:"token_type",type:"int"},{name:"token",type:"string"},{name:"other_uids",type:"Vector<int>"}],type:"Bool"},{id:2227067795,method:"account.updateNotifySettings",params:[{name:"peer",type:"InputNotifyPeer"},{name:"settings",type:"InputPeerNotifySettings"}],type:"Bool"},{id:313765169,method:"account.getNotifySettings",params:[{name:"peer",type:"InputNotifyPeer"}],type:"PeerNotifySettings"},{id:3682473799,method:"account.resetNotifySettings",params:[],type:"Bool"},{id:2018596725,method:"account.updateProfile",params:[{name:"flags",type:"#"},{name:"first_name",type:"flags.0?string"},{name:"last_name",type:"flags.1?string"},{name:"about",type:"flags.2?string"}],type:"User"},{id:1713919532,method:"account.updateStatus",params:[{name:"offline",type:"Bool"}],type:"Bool"},{id:2864387939,method:"account.getWallPapers",params:[{name:"hash",type:"int"}],type:"account.WallPapers"},{id:2920848735,method:"account.reportPeer",params:[{name:"peer",type:"InputPeer"},{name:"reason",type:"ReportReason"}],type:"Bool"},{id:655677548,method:"account.checkUsername",params:[{name:"username",type:"string"}],type:"Bool"},{id:1040964988,method:"account.updateUsername",params:[{name:"username",type:"string"}],type:"User"},{id:3671837008,method:"account.getPrivacy",params:[{name:"key",type:"InputPrivacyKey"}],type:"account.PrivacyRules"},{id:3388480744,method:"account.setPrivacy",params:[{name:"key",type:"InputPrivacyKey"},{name:"rules",type:"Vector<InputPrivacyRule>"}],type:"account.PrivacyRules"},{id:1099779595,method:"account.deleteAccount",params:[{name:"reason",type:"string"}],type:"Bool"},{id:150761757,method:"account.getAccountTTL",params:[],type:"AccountDaysTTL"},{id:608323678,method:"account.setAccountTTL",params:[{name:"ttl",type:"AccountDaysTTL"}],type:"Bool"},{id:2186758885,method:"account.sendChangePhoneCode",params:[{name:"phone_number",type:"string"},{name:"settings",type:"CodeSettings"}],type:"auth.SentCode"},{id:1891839707,method:"account.changePhone",params:[{name:"phone_number",type:"string"},{name:"phone_code_hash",type:"string"},{name:"phone_code",type:"string"}],type:"User"},{id:954152242,method:"account.updateDeviceLocked",params:[{name:"period",type:"int"}],type:"Bool"},{id:3810574680,method:"account.getAuthorizations",params:[],type:"account.Authorizations"},{id:3749180348,method:"account.resetAuthorization",params:[{name:"hash",type:"long"}],type:"Bool"},{id:1418342645,method:"account.getPassword",params:[],type:"account.Password"},{id:2631199481,method:"account.getPasswordSettings",params:[{name:"password",type:"InputCheckPasswordSRP"}],type:"account.PasswordSettings"},{id:2778402863,method:"account.updatePasswordSettings",params:[{name:"password",type:"InputCheckPasswordSRP"},{name:"new_settings",type:"account.PasswordInputSettings"}],type:"Bool"},{id:457157256,method:"account.sendConfirmPhoneCode",params:[{name:"hash",type:"string"},{name:"settings",type:"CodeSettings"}],type:"auth.SentCode"},{id:1596029123,method:"account.confirmPhone",params:[{name:"phone_code_hash",type:"string"},{name:"phone_code",type:"string"}],type:"Bool"},{id:1151208273,method:"account.getTmpPassword",params:[{name:"password",type:"InputCheckPasswordSRP"},{name:"period",type:"int"}],type:"account.TmpPassword"},{id:405695855,method:"account.getWebAuthorizations",params:[],type:"account.WebAuthorizations"},{id:755087855,method:"account.resetWebAuthorization",params:[{name:"hash",type:"long"}],type:"Bool"},{id:1747789204,method:"account.resetWebAuthorizations",params:[],type:"Bool"},{id:2995305597,method:"account.getAllSecureValues",params:[],type:"Vector<SecureValue>"},{id:1936088002,method:"account.getSecureValue",params:[{name:"types",type:"Vector<SecureValueType>"}],type:"Vector<SecureValue>"},{id:2308956957,method:"account.saveSecureValue",params:[{name:"value",type:"InputSecureValue"},{name:"secure_secret_id",type:"long"}],type:"SecureValue"},{id:3095444555,method:"account.deleteSecureValue",params:[{name:"types",type:"Vector<SecureValueType>"}],type:"Bool"},{id:3094063329,method:"account.getAuthorizationForm",params:[{name:"bot_id",type:"int"},{name:"scope",type:"string"},{name:"public_key",type:"string"}],type:"account.AuthorizationForm"},{id:3875699860,method:"account.acceptAuthorization",params:[{name:"bot_id",type:"int"},{name:"scope",type:"string"},{name:"public_key",type:"string"},{name:"value_hashes",type:"Vector<SecureValueHash>"},{name:"credentials",type:"SecureCredentialsEncrypted"}],type:"Bool"},{id:2778945273,method:"account.sendVerifyPhoneCode",params:[{name:"phone_number",type:"string"},{name:"settings",type:"CodeSettings"}],type:"auth.SentCode"},{id:1305716726,method:"account.verifyPhone",params:[{name:"phone_number",type:"string"},{name:"phone_code_hash",type:"string"},{name:"phone_code",type:"string"}],type:"Bool"},{id:1880182943,method:"account.sendVerifyEmailCode",params:[{name:"email",type:"string"}],type:"account.SentEmailCode"},{id:3971627483,method:"account.verifyEmail",params:[{name:"email",type:"string"},{name:"code",type:"string"}],type:"Bool"},{id:4032514052,method:"account.initTakeoutSession",params:[{name:"flags",type:"#"},{name:"contacts",type:"flags.0?true"},{name:"message_users",type:"flags.1?true"},{name:"message_chats",type:"flags.2?true"},{name:"message_megagroups",type:"flags.3?true"},{name:"message_channels",type:"flags.4?true"},{name:"files",type:"flags.5?true"},{name:"file_max_size",type:"flags.5?int"}],type:"account.Takeout"},{id:489050862,method:"account.finishTakeoutSession",params:[{name:"flags",type:"#"},{name:"success",type:"flags.0?true"}],type:"Bool"},{id:2413762848,method:"account.confirmPasswordEmail",params:[{name:"code",type:"string"}],type:"Bool"},{id:2055154197,method:"account.resendPasswordEmail",params:[],type:"Bool"},{id:3251361206,method:"account.cancelPasswordEmail",params:[],type:"Bool"},{id:2668087080,method:"account.getContactSignUpNotification",params:[],type:"Bool"},{id:3488890721,method:"account.setContactSignUpNotification",params:[{name:"silent",type:"Bool"}],type:"Bool"},{id:1398240377,method:"account.getNotifyExceptions",params:[{name:"flags",type:"#"},{name:"compare_sound",type:"flags.1?true"},{name:"peer",type:"flags.0?InputNotifyPeer"}],type:"Updates"},{id:4237155306,method:"account.getWallPaper",params:[{name:"wallpaper",type:"InputWallPaper"}],type:"WallPaper"},{id:3716494945,method:"account.uploadWallPaper",params:[{name:"file",type:"InputFile"},{name:"mime_type",type:"string"},{name:"settings",type:"WallPaperSettings"}],type:"WallPaper"},{id:1817860919,method:"account.saveWallPaper",params:[{name:"wallpaper",type:"InputWallPaper"},{name:"unsave",type:"Bool"},{name:"settings",type:"WallPaperSettings"}],type:"Bool"},{id:4276967273,method:"account.installWallPaper",params:[{name:"wallpaper",type:"InputWallPaper"},{name:"settings",type:"WallPaperSettings"}],type:"Bool"},{id:3141244932,method:"account.resetWallPapers",params:[],type:"Bool"},{id:1457130303,method:"account.getAutoDownloadSettings",params:[],type:"account.AutoDownloadSettings"},{id:1995661875,method:"account.saveAutoDownloadSettings",params:[{name:"flags",type:"#"},{name:"low",type:"flags.0?true"},{name:"high",type:"flags.1?true"},{name:"settings",type:"AutoDownloadSettings"}],type:"Bool"},{id:473805619,method:"account.uploadTheme",params:[{name:"flags",type:"#"},{name:"file",type:"InputFile"},{name:"thumb",type:"flags.0?InputFile"},{name:"file_name",type:"string"},{name:"mime_type",type:"string"}],type:"Document"},{id:2217919007,method:"account.createTheme",params:[{name:"flags",type:"#"},{name:"slug",type:"string"},{name:"title",type:"string"},{name:"document",type:"flags.2?InputDocument"},{name:"settings",type:"flags.3?InputThemeSettings"}],type:"Theme"},{id:1555261397,method:"account.updateTheme",params:[{name:"flags",type:"#"},{name:"format",type:"string"},{name:"theme",type:"InputTheme"},{name:"slug",type:"flags.0?string"},{name:"title",type:"flags.1?string"},{name:"document",type:"flags.2?InputDocument"},{name:"settings",type:"flags.3?InputThemeSettings"}],type:"Theme"},{id:4065792108,method:"account.saveTheme",params:[{name:"theme",type:"InputTheme"},{name:"unsave",type:"Bool"}],type:"Bool"},{id:2061776695,method:"account.installTheme",params:[{name:"flags",type:"#"},{name:"dark",type:"flags.0?true"},{name:"format",type:"flags.1?string"},{name:"theme",type:"flags.1?InputTheme"}],type:"Bool"},{id:2375906347,method:"account.getTheme",params:[{name:"format",type:"string"},{name:"theme",type:"InputTheme"},{name:"document_id",type:"long"}],type:"Theme"},{id:676939512,method:"account.getThemes",params:[{name:"format",type:"string"},{name:"hash",type:"int"}],type:"account.Themes"},{id:3044323691,method:"account.setContentSettings",params:[{name:"flags",type:"#"},{name:"sensitive_enabled",type:"flags.0?true"}],type:"Bool"},{id:2342210990,method:"account.getContentSettings",params:[],type:"account.ContentSettings"},{id:1705865692,method:"account.getMultiWallPapers",params:[{name:"wallpapers",type:"Vector<InputWallPaper>"}],type:"Vector<WallPaper>"},{id:227648840,method:"users.getUsers",params:[{name:"id",type:"Vector<InputUser>"}],type:"Vector<User>"},{id:3392185777,method:"users.getFullUser",params:[{name:"id",type:"InputUser"}],type:"UserFull"},{id:2429064373,method:"users.setSecureValueErrors",params:[{name:"id",type:"InputUser"},{name:"errors",type:"Vector<SecureValueError>"}],type:"Bool"},{id:749357634,method:"contacts.getContactIDs",params:[{name:"hash",type:"int"}],type:"Vector<int>"},{id:3299038190,method:"contacts.getStatuses",params:[],type:"Vector<ContactStatus>"},{id:3223553183,method:"contacts.getContacts",params:[{name:"hash",type:"int"}],type:"contacts.Contacts"},{id:746589157,method:"contacts.importContacts",params:[{name:"contacts",type:"Vector<InputContact>"}],type:"contacts.ImportedContacts"},{id:157945344,method:"contacts.deleteContacts",params:[{name:"id",type:"Vector<InputUser>"}],type:"Updates"},{id:269745566,method:"contacts.deleteByPhones",params:[{name:"phones",type:"Vector<string>"}],type:"Bool"},{id:858475004,method:"contacts.block",params:[{name:"id",type:"InputUser"}],type:"Bool"},{id:3846242493,method:"contacts.unblock",params:[{name:"id",type:"InputUser"}],type:"Bool"},{id:4118557967,method:"contacts.getBlocked",params:[{name:"offset",type:"int"},{name:"limit",type:"int"}],type:"contacts.Blocked"},{id:301470424,method:"contacts.search",params:[{name:"q",type:"string"},{name:"limit",type:"int"}],type:"contacts.Found"},{id:4181511075,method:"contacts.resolveUsername",params:[{name:"username",type:"string"}],type:"contacts.ResolvedPeer"},{id:3566742965,method:"contacts.getTopPeers",params:[{name:"flags",type:"#"},{name:"correspondents",type:"flags.0?true"},{name:"bots_pm",type:"flags.1?true"},{name:"bots_inline",type:"flags.2?true"},{name:"phone_calls",type:"flags.3?true"},{name:"forward_users",type:"flags.4?true"},{name:"forward_chats",type:"flags.5?true"},{name:"groups",type:"flags.10?true"},{name:"channels",type:"flags.15?true"},{name:"offset",type:"int"},{name:"limit",type:"int"},{name:"hash",type:"int"}],type:"contacts.TopPeers"},{id:451113900,method:"contacts.resetTopPeerRating",params:[{name:"category",type:"TopPeerCategory"},{name:"peer",type:"InputPeer"}],type:"Bool"},{id:2274703345,method:"contacts.resetSaved",params:[],type:"Bool"},{id:2196890527,method:"contacts.getSaved",params:[],type:"Vector<SavedContact>"},{id:2232729050,method:"contacts.toggleTopPeers",params:[{name:"enabled",type:"Bool"}],type:"Bool"},{id:3908330448,method:"contacts.addContact",params:[{name:"flags",type:"#"},{name:"add_phone_privacy_exception",type:"flags.0?true"},{name:"id",type:"InputUser"},{name:"first_name",type:"string"},{name:"last_name",type:"string"},{name:"phone",type:"string"}],type:"Updates"},{id:4164002319,method:"contacts.acceptContact",params:[{name:"id",type:"InputUser"}],type:"Updates"},{id:3544759364,method:"contacts.getLocated",params:[{name:"flags",type:"#"},{name:"background",type:"flags.1?true"},{name:"geo_point",type:"InputGeoPoint"},{name:"self_expires",type:"flags.0?int"}],type:"Updates"},{id:1673946374,method:"messages.getMessages",params:[{name:"id",type:"Vector<InputMessage>"}],type:"messages.Messages"},{id:2699967347,method:"messages.getDialogs",params:[{name:"flags",type:"#"},{name:"exclude_pinned",type:"flags.0?true"},{name:"folder_id",type:"flags.1?int"},{name:"offset_date",type:"int"},{name:"offset_id",type:"int"},{name:"offset_peer",type:"InputPeer"},{name:"limit",type:"int"},{name:"hash",type:"int"}],type:"messages.Dialogs"},{id:3703276128,method:"messages.getHistory",params:[{name:"peer",type:"InputPeer"},{name:"offset_id",type:"int"},{name:"offset_date",type:"int"},{name:"add_offset",type:"int"},{name:"limit",type:"int"},{name:"max_id",type:"int"},{name:"min_id",type:"int"},{name:"hash",type:"int"}],type:"messages.Messages"},{id:2249518952,method:"messages.search",params:[{name:"flags",type:"#"},{name:"peer",type:"InputPeer"},{name:"q",type:"string"},{name:"from_id",type:"flags.0?InputUser"},{name:"filter",type:"MessagesFilter"},{name:"min_date",type:"int"},{name:"max_date",type:"int"},{name:"offset_id",type:"int"},{name:"add_offset",type:"int"},{name:"limit",type:"int"},{name:"max_id",type:"int"},{name:"min_id",type:"int"},{name:"hash",type:"int"}],type:"messages.Messages"},{id:238054714,method:"messages.readHistory",params:[{name:"peer",type:"InputPeer"},{name:"max_id",type:"int"}],type:"messages.AffectedMessages"},{id:469850889,method:"messages.deleteHistory",params:[{name:"flags",type:"#"},{name:"just_clear",type:"flags.0?true"},{name:"revoke",type:"flags.1?true"},{name:"peer",type:"InputPeer"},{name:"max_id",type:"int"}],type:"messages.AffectedHistory"},{id:3851326930,method:"messages.deleteMessages",params:[{name:"flags",type:"#"},{name:"revoke",type:"flags.0?true"},{name:"id",type:"Vector<int>"}],type:"messages.AffectedMessages"},{id:94983360,method:"messages.receivedMessages",params:[{name:"max_id",type:"int"}],type:"Vector<ReceivedNotifyMessage>"},{id:2743230032,method:"messages.setTyping",params:[{name:"peer",type:"InputPeer"},{name:"action",type:"SendMessageAction"}],type:"Bool"},{id:1376532592,method:"messages.sendMessage",params:[{name:"flags",type:"#"},{name:"no_webpage",type:"flags.1?true"},{name:"silent",type:"flags.5?true"},{name:"background",type:"flags.6?true"},{name:"clear_draft",type:"flags.7?true"},{name:"peer",type:"InputPeer"},{name:"reply_to_msg_id",type:"flags.0?int"},{name:"message",type:"string"},{name:"random_id",type:"long"},{name:"reply_markup",type:"flags.2?ReplyMarkup"},{name:"entities",type:"flags.3?Vector<MessageEntity>"},{name:"schedule_date",type:"flags.10?int"}],type:"Updates"},{id:881978281,method:"messages.sendMedia",params:[{name:"flags",type:"#"},{name:"silent",type:"flags.5?true"},{name:"background",type:"flags.6?true"},{name:"clear_draft",type:"flags.7?true"},{name:"peer",type:"InputPeer"},{name:"reply_to_msg_id",type:"flags.0?int"},{name:"media",type:"InputMedia"},{name:"message",type:"string"},{name:"random_id",type:"long"},{name:"reply_markup",type:"flags.2?ReplyMarkup"},{name:"entities",type:"flags.3?Vector<MessageEntity>"},{name:"schedule_date",type:"flags.10?int"}],type:"Updates"},{id:3657360910,method:"messages.forwardMessages",params:[{name:"flags",type:"#"},{name:"silent",type:"flags.5?true"},{name:"background",type:"flags.6?true"},{name:"with_my_score",type:"flags.8?true"},{name:"grouped",type:"flags.9?true"},{name:"from_peer",type:"InputPeer"},{name:"id",type:"Vector<int>"},{name:"random_id",type:"Vector<long>"},{name:"to_peer",type:"InputPeer"},{name:"schedule_date",type:"flags.10?int"}],type:"Updates"},{id:3474297563,method:"messages.reportSpam",params:[{name:"peer",type:"InputPeer"}],type:"Bool"},{id:913498268,method:"messages.getPeerSettings",params:[{name:"peer",type:"InputPeer"}],type:"PeerSettings"},{id:3179460184,method:"messages.report",params:[{name:"peer",type:"InputPeer"},{name:"id",type:"Vector<int>"},{name:"reason",type:"ReportReason"}],type:"Bool"},{id:1013621127,method:"messages.getChats",params:[{name:"id",type:"Vector<int>"}],type:"messages.Chats"},{id:998448230,method:"messages.getFullChat",params:[{name:"chat_id",type:"int"}],type:"messages.ChatFull"},{id:3695519829,method:"messages.editChatTitle",params:[{name:"chat_id",type:"int"},{name:"title",type:"string"}],type:"Updates"},{id:3394009560,method:"messages.editChatPhoto",params:[{name:"chat_id",type:"int"},{name:"photo",type:"InputChatPhoto"}],type:"Updates"},{id:4188056073,method:"messages.addChatUser",params:[{name:"chat_id",type:"int"},{name:"user_id",type:"InputUser"},{name:"fwd_limit",type:"int"}],type:"Updates"},{id:3764461334,method:"messages.deleteChatUser",params:[{name:"chat_id",type:"int"},{name:"user_id",type:"InputUser"}],type:"Updates"},{id:164303470,method:"messages.createChat",params:[{name:"users",type:"Vector<InputUser>"},{name:"title",type:"string"}],type:"Updates"},{id:651135312,method:"messages.getDhConfig",params:[{name:"version",type:"int"},{name:"random_length",type:"int"}],type:"messages.DhConfig"},{id:4132286275,method:"messages.requestEncryption",params:[{name:"user_id",type:"InputUser"},{name:"random_id",type:"int"},{name:"g_a",type:"bytes"}],type:"EncryptedChat"},{id:1035731989,method:"messages.acceptEncryption",params:[{name:"peer",type:"InputEncryptedChat"},{name:"g_b",type:"bytes"},{name:"key_fingerprint",type:"long"}],type:"EncryptedChat"},{id:3990430661,method:"messages.discardEncryption",params:[{name:"chat_id",type:"int"}],type:"Bool"},{id:2031374829,method:"messages.setEncryptedTyping",params:[{name:"peer",type:"InputEncryptedChat"},{name:"typing",type:"Bool"}],type:"Bool"},{id:2135648522,method:"messages.readEncryptedHistory",params:[{name:"peer",type:"InputEncryptedChat"},{name:"max_date",type:"int"}],type:"Bool"},{id:2843174771,method:"messages.sendEncrypted",params:[{name:"peer",type:"InputEncryptedChat"},{name:"random_id",type:"long"},{name:"data",type:"bytes"}],type:"messages.SentEncryptedMessage"},{id:2593135462,method:"messages.sendEncryptedFile",params:[{name:"peer",type:"InputEncryptedChat"},{name:"random_id",type:"long"},{name:"data",type:"bytes"},{name:"file",type:"InputEncryptedFile"}],type:"messages.SentEncryptedMessage"},{id:852769188,method:"messages.sendEncryptedService",params:[{name:"peer",type:"InputEncryptedChat"},{name:"random_id",type:"long"},{name:"data",type:"bytes"}],type:"messages.SentEncryptedMessage"},{id:1436924774,method:"messages.receivedQueue",params:[{name:"max_qts",type:"int"}],type:"Vector<long>"},{id:1259113487,method:"messages.reportEncryptedSpam",params:[{name:"peer",type:"InputEncryptedChat"}],type:"Bool"},{id:916930423,method:"messages.readMessageContents",params:[{name:"id",type:"Vector<int>"}],type:"messages.AffectedMessages"},{id:71126828,method:"messages.getStickers",params:[{name:"emoticon",type:"string"},{name:"hash",type:"int"}],type:"messages.Stickers"},{id:479598769,method:"messages.getAllStickers",params:[{name:"hash",type:"int"}],type:"messages.AllStickers"},{id:2338894028,method:"messages.getWebPagePreview",params:[{name:"flags",type:"#"},{name:"message",type:"string"},{name:"entities",type:"flags.3?Vector<MessageEntity>"}],type:"MessageMedia"},{id:234312524,method:"messages.exportChatInvite",params:[{name:"peer",type:"InputPeer"}],type:"ExportedChatInvite"},{id:1051570619,method:"messages.checkChatInvite",params:[{name:"hash",type:"string"}],type:"ChatInvite"},{id:1817183516,method:"messages.importChatInvite",params:[{name:"hash",type:"string"}],type:"Updates"},{id:639215886,method:"messages.getStickerSet",params:[{name:"stickerset",type:"InputStickerSet"}],type:"messages.StickerSet"},{id:3348096096,method:"messages.installStickerSet",params:[{name:"stickerset",type:"InputStickerSet"},{name:"archived",type:"Bool"}],type:"messages.StickerSetInstallResult"},{id:4184757726,method:"messages.uninstallStickerSet",params:[{name:"stickerset",type:"InputStickerSet"}],type:"Bool"},{id:3873403768,method:"messages.startBot",params:[{name:"bot",type:"InputUser"},{name:"peer",type:"InputPeer"},{name:"random_id",type:"long"},{name:"start_param",type:"string"}],type:"Updates"},{id:3301483869,method:"messages.getMessagesViews",params:[{name:"peer",type:"InputPeer"},{name:"id",type:"Vector<int>"},{name:"increment",type:"Bool"}],type:"Vector<int>"},{id:2850463534,method:"messages.editChatAdmin",params:[{name:"chat_id",type:"int"},{name:"user_id",type:"InputUser"},{name:"is_admin",type:"Bool"}],type:"Bool"},{id:363051235,method:"messages.migrateChat",params:[{name:"chat_id",type:"int"}],type:"Updates"},{id:3211928996,method:"messages.searchGlobal",params:[{name:"flags",type:"#"},{name:"folder_id",type:"flags.0?int"},{name:"q",type:"string"},{name:"offset_rate",type:"int"},{name:"offset_peer",type:"InputPeer"},{name:"offset_id",type:"int"},{name:"limit",type:"int"}],type:"messages.Messages"},{id:2016638777,method:"messages.reorderStickerSets",params:[{name:"flags",type:"#"},{name:"masks",type:"flags.0?true"},{name:"order",type:"Vector<long>"}],type:"Bool"},{id:864953444,method:"messages.getDocumentByHash",params:[{name:"sha256",type:"bytes"},{name:"size",type:"int"},{name:"mime_type",type:"string"}],type:"Document"},{id:3214571371,method:"messages.searchGifs",params:[{name:"q",type:"string"},{name:"offset",type:"int"}],type:"messages.FoundGifs"},{id:2210348370,method:"messages.getSavedGifs",params:[{name:"hash",type:"int"}],type:"messages.SavedGifs"},{id:846868683,method:"messages.saveGif",params:[{name:"id",type:"InputDocument"},{name:"unsave",type:"Bool"}],type:"Bool"},{id:1364105629,method:"messages.getInlineBotResults",params:[{name:"flags",type:"#"},{name:"bot",type:"InputUser"},{name:"peer",type:"InputPeer"},{name:"geo_point",type:"flags.0?InputGeoPoint"},{name:"query",type:"string"},{name:"offset",type:"string"}],type:"messages.BotResults"},{id:3948847622,method:"messages.setInlineBotResults",params:[{name:"flags",type:"#"},{name:"gallery",type:"flags.0?true"},{name:"private",type:"flags.1?true"},{name:"query_id",type:"long"},{name:"results",type:"Vector<InputBotInlineResult>"},{name:"cache_time",type:"int"},{name:"next_offset",type:"flags.2?string"},{name:"switch_pm",type:"flags.3?InlineBotSwitchPM"}],type:"Bool"},{id:570955184,method:"messages.sendInlineBotResult",params:[{name:"flags",type:"#"},{name:"silent",type:"flags.5?true"},{name:"background",type:"flags.6?true"},{name:"clear_draft",type:"flags.7?true"},{name:"hide_via",type:"flags.11?true"},{name:"peer",type:"InputPeer"},{name:"reply_to_msg_id",type:"flags.0?int"},{name:"random_id",type:"long"},{name:"query_id",type:"long"},{name:"id",type:"string"},{name:"schedule_date",type:"flags.10?int"}],type:"Updates"},{id:4255550774,method:"messages.getMessageEditData",params:[{name:"peer",type:"InputPeer"},{name:"id",type:"int"}],type:"messages.MessageEditData"},{id:1224152952,method:"messages.editMessage",params:[{name:"flags",type:"#"},{name:"no_webpage",type:"flags.1?true"},{name:"peer",type:"InputPeer"},{name:"id",type:"int"},{name:"message",type:"flags.11?string"},{name:"media",type:"flags.14?InputMedia"},{name:"reply_markup",type:"flags.2?ReplyMarkup"},{name:"entities",type:"flags.3?Vector<MessageEntity>"},{name:"schedule_date",type:"flags.15?int"}],type:"Updates"},{id:2203418042,method:"messages.editInlineBotMessage",params:[{name:"flags",type:"#"},{name:"no_webpage",type:"flags.1?true"},{name:"id",type:"InputBotInlineMessageID"},{name:"message",type:"flags.11?string"},{name:"media",type:"flags.14?InputMedia"},{name:"reply_markup",type:"flags.2?ReplyMarkup"},{name:"entities",type:"flags.3?Vector<MessageEntity>"}],type:"Bool"},{id:2164957164,method:"messages.getBotCallbackAnswer",params:[{name:"flags",type:"#"},{name:"game",type:"flags.1?true"},{name:"peer",type:"InputPeer"},{name:"msg_id",type:"int"},{name:"data",type:"flags.0?bytes"}],type:"messages.BotCallbackAnswer"},{id:3582923530,method:"messages.setBotCallbackAnswer",params:[{name:"flags",type:"#"},{name:"alert",type:"flags.1?true"},{name:"query_id",type:"long"},{name:"message",type:"flags.0?string"},{name:"url",type:"flags.2?string"},{name:"cache_time",type:"int"}],type:"Bool"},{id:3832593661,method:"messages.getPeerDialogs",params:[{name:"peers",type:"Vector<InputDialogPeer>"}],type:"messages.PeerDialogs"},{id:3157909835,method:"messages.saveDraft",params:[{name:"flags",type:"#"},{name:"no_webpage",type:"flags.1?true"},{name:"reply_to_msg_id",type:"flags.0?int"},{name:"peer",type:"InputPeer"},{name:"message",type:"string"},{name:"entities",type:"flags.3?Vector<MessageEntity>"}],type:"Bool"},{id:1782549861,method:"messages.getAllDrafts",params:[],type:"Updates"},{id:766298703,method:"messages.getFeaturedStickers",params:[{name:"hash",type:"int"}],type:"messages.FeaturedStickers"},{id:1527873830,method:"messages.readFeaturedStickers",params:[{name:"id",type:"Vector<long>"}],type:"Bool"},{id:1587647177,method:"messages.getRecentStickers",params:[{name:"flags",type:"#"},{name:"attached",type:"flags.0?true"},{name:"hash",type:"int"}],type:"messages.RecentStickers"},{id:958863608,method:"messages.saveRecentSticker",params:[{name:"flags",type:"#"},{name:"attached",type:"flags.0?true"},{name:"id",type:"InputDocument"},{name:"unsave",type:"Bool"}],type:"Bool"},{id:2308530221,method:"messages.clearRecentStickers",params:[{name:"flags",type:"#"},{name:"attached",type:"flags.0?true"}],type:"Bool"},{id:1475442322,method:"messages.getArchivedStickers",params:[{name:"flags",type:"#"},{name:"masks",type:"flags.0?true"},{name:"offset_id",type:"long"},{name:"limit",type:"int"}],type:"messages.ArchivedStickers"},{id:1706608543,method:"messages.getMaskStickers",params:[{name:"hash",type:"int"}],type:"messages.AllStickers"},{id:3428542412,method:"messages.getAttachedStickers",params:[{name:"media",type:"InputStickeredMedia"}],type:"Vector<StickerSetCovered>"},{id:2398678208,method:"messages.setGameScore",params:[{name:"flags",type:"#"},{name:"edit_message",type:"flags.0?true"},{name:"force",type:"flags.1?true"},{name:"peer",type:"InputPeer"},{name:"id",type:"int"},{name:"user_id",type:"InputUser"},{name:"score",type:"int"}],type:"Updates"},{id:363700068,method:"messages.setInlineGameScore",params:[{name:"flags",type:"#"},{name:"edit_message",type:"flags.0?true"},{name:"force",type:"flags.1?true"},{name:"id",type:"InputBotInlineMessageID"},{name:"user_id",type:"InputUser"},{name:"score",type:"int"}],type:"Bool"},{id:3894568093,method:"messages.getGameHighScores",params:[{name:"peer",type:"InputPeer"},{name:"id",type:"int"},{name:"user_id",type:"InputUser"}],type:"messages.HighScores"},{id:258170395,method:"messages.getInlineGameHighScores",params:[{name:"id",type:"InputBotInlineMessageID"},{name:"user_id",type:"InputUser"}],type:"messages.HighScores"},{id:218777796,method:"messages.getCommonChats",params:[{name:"user_id",type:"InputUser"},{name:"max_id",type:"int"},{name:"limit",type:"int"}],type:"messages.Chats"},{id:3953659888,method:"messages.getAllChats",params:[{name:"except_ids",type:"Vector<int>"}],type:"messages.Chats"},{id:852135825,method:"messages.getWebPage",params:[{name:"url",type:"string"},{name:"hash",type:"int"}],type:"WebPage"},{id:2805064279,method:"messages.toggleDialogPin",params:[{name:"flags",type:"#"},{name:"pinned",type:"flags.0?true"},{name:"peer",type:"InputDialogPeer"}],type:"Bool"},{id:991616823,method:"messages.reorderPinnedDialogs",params:[{name:"flags",type:"#"},{name:"force",type:"flags.0?true"},{name:"folder_id",type:"int"},{name:"order",type:"Vector<InputDialogPeer>"}],type:"Bool"},{id:3602468338,method:"messages.getPinnedDialogs",params:[{name:"folder_id",type:"int"}],type:"messages.PeerDialogs"},{id:3858133754,method:"messages.setBotShippingResults",params:[{name:"flags",type:"#"},{name:"query_id",type:"long"},{name:"error",type:"flags.0?string"},{name:"shipping_options",type:"flags.1?Vector<ShippingOption>"}],type:"Bool"},{id:163765653,method:"messages.setBotPrecheckoutResults",params:[{name:"flags",type:"#"},{name:"success",type:"flags.1?true"},{name:"query_id",type:"long"},{name:"error",type:"flags.0?string"}],type:"Bool"},{id:1369162417,method:"messages.uploadMedia",params:[{name:"peer",type:"InputPeer"},{name:"media",type:"InputMedia"}],type:"MessageMedia"},{id:3380473888,method:"messages.sendScreenshotNotification",params:[{name:"peer",type:"InputPeer"},{name:"reply_to_msg_id",type:"int"},{name:"random_id",type:"long"}],type:"Updates"},{id:567151374,method:"messages.getFavedStickers",params:[{name:"hash",type:"int"}],type:"messages.FavedStickers"},{id:3120547163,method:"messages.faveSticker",params:[{name:"id",type:"InputDocument"},{name:"unfave",type:"Bool"}],type:"Bool"},{id:1180140658,method:"messages.getUnreadMentions",params:[{name:"peer",type:"InputPeer"},{name:"offset_id",type:"int"},{name:"add_offset",type:"int"},{name:"limit",type:"int"},{name:"max_id",type:"int"},{name:"min_id",type:"int"}],type:"messages.Messages"},{id:251759059,method:"messages.readMentions",params:[{name:"peer",type:"InputPeer"}],type:"messages.AffectedHistory"},{id:3150207753,method:"messages.getRecentLocations",params:[{name:"peer",type:"InputPeer"},{name:"limit",type:"int"},{name:"hash",type:"int"}],type:"messages.Messages"},{id:3422621899,method:"messages.sendMultiMedia",params:[{name:"flags",type:"#"},{name:"silent",type:"flags.5?true"},{name:"background",type:"flags.6?true"},{name:"clear_draft",type:"flags.7?true"},{name:"peer",type:"InputPeer"},{name:"reply_to_msg_id",type:"flags.0?int"},{name:"multi_media",type:"Vector<InputSingleMedia>"},{name:"schedule_date",type:"flags.10?int"}],type:"Updates"},{id:1347929239,method:"messages.uploadEncryptedFile",params:[{name:"peer",type:"InputEncryptedChat"},{name:"file",type:"InputEncryptedFile"}],type:"EncryptedFile"},{id:3266826379,method:"messages.searchStickerSets",params:[{name:"flags",type:"#"},{name:"exclude_featured",type:"flags.0?true"},{name:"q",type:"string"},{name:"hash",type:"int"}],type:"messages.FoundStickerSets"},{id:486505992,method:"messages.getSplitRanges",params:[],type:"Vector<MessageRange>"},{id:3263617423,method:"messages.markDialogUnread",params:[{name:"flags",type:"#"},{name:"unread",type:"flags.0?true"},{name:"peer",type:"InputDialogPeer"}],type:"Bool"},{id:585256482,method:"messages.getDialogUnreadMarks",params:[],type:"Vector<DialogPeer>"},{id:2119757468,method:"messages.clearAllDrafts",params:[],type:"Bool"},{id:3534419948,method:"messages.updatePinnedMessage",params:[{name:"flags",type:"#"},{name:"silent",type:"flags.0?true"},{name:"peer",type:"InputPeer"},{name:"id",type:"int"}],type:"Updates"},{id:283795844,method:"messages.sendVote",params:[{name:"peer",type:"InputPeer"},{name:"msg_id",type:"int"},{name:"options",type:"Vector<bytes>"}],type:"Updates"},{id:1941660731,method:"messages.getPollResults",params:[{name:"peer",type:"InputPeer"},{name:"msg_id",type:"int"}],type:"Updates"},{id:1848369232,method:"messages.getOnlines",params:[{name:"peer",type:"InputPeer"}],type:"ChatOnlines"},{id:2167155430,method:"messages.getStatsURL",params:[{name:"flags",type:"#"},{name:"dark",type:"flags.0?true"},{name:"peer",type:"InputPeer"},{name:"params",type:"string"}],type:"StatsURL"},{id:3740665751,method:"messages.editChatAbout",params:[{name:"peer",type:"InputPeer"},{name:"about",type:"string"}],type:"Bool"},{id:2777049921,method:"messages.editChatDefaultBannedRights",params:[{name:"peer",type:"InputPeer"},{name:"banned_rights",type:"ChatBannedRights"}],type:"Updates"},{id:899735650,method:"messages.getEmojiKeywords",params:[{name:"lang_code",type:"string"}],type:"EmojiKeywordsDifference"},{id:352892591,method:"messages.getEmojiKeywordsDifference",params:[{name:"lang_code",type:"string"},{name:"from_version",type:"int"}],type:"EmojiKeywordsDifference"},{id:1318675378,method:"messages.getEmojiKeywordsLanguages",params:[{name:"lang_codes",type:"Vector<string>"}],type:"Vector<EmojiLanguage>"},{id:3585149990,method:"messages.getEmojiURL",params:[{name:"lang_code",type:"string"}],type:"EmojiURL"},{id:1932455680,method:"messages.getSearchCounters",params:[{name:"peer",type:"InputPeer"},{name:"filters",type:"Vector<MessagesFilter>"}],type:"Vector<messages.SearchCounter>"},{id:3812578835,method:"messages.requestUrlAuth",params:[{name:"peer",type:"InputPeer"},{name:"msg_id",type:"int"},{name:"button_id",type:"int"}],type:"UrlAuthResult"},{id:4146719384,method:"messages.acceptUrlAuth",params:[{name:"flags",type:"#"},{name:"write_allowed",type:"flags.0?true"},{name:"peer",type:"InputPeer"},{name:"msg_id",type:"int"},{name:"button_id",type:"int"}],type:"UrlAuthResult"},{id:1336717624,method:"messages.hidePeerSettingsBar",params:[{name:"peer",type:"InputPeer"}],type:"Bool"},{id:3804391515,method:"messages.getScheduledHistory",params:[{name:"peer",type:"InputPeer"},{name:"hash",type:"int"}],type:"messages.Messages"},{id:3183150180,method:"messages.getScheduledMessages",params:[{name:"peer",type:"InputPeer"},{name:"id",type:"Vector<int>"}],type:"messages.Messages"},{id:3174597898,method:"messages.sendScheduledMessages",params:[{name:"peer",type:"InputPeer"},{name:"id",type:"Vector<int>"}],type:"Updates"},{id:1504586518,method:"messages.deleteScheduledMessages",params:[{name:"peer",type:"InputPeer"},{name:"id",type:"Vector<int>"}],type:"Updates"},{id:3094231054,method:"messages.getPollVotes",params:[{name:"flags",type:"#"},{name:"peer",type:"InputPeer"},{name:"id",type:"int"},{name:"option",type:"flags.0?bytes"},{name:"offset",type:"flags.1?string"},{name:"limit",type:"int"}],type:"messages.VotesList"},{id:3037016042,method:"messages.toggleStickerSets",params:[{name:"flags",type:"#"},{name:"uninstall",type:"flags.0?true"},{name:"archive",type:"flags.1?true"},{name:"unarchive",type:"flags.2?true"},{name:"stickersets",type:"Vector<InputStickerSet>"}],type:"Bool"},{id:4053719405,method:"messages.getDialogFilters",params:[],type:"Vector<DialogFilter>"},{id:2728186924,method:"messages.getSuggestedDialogFilters",params:[],type:"Vector<DialogFilterSuggested>"},{id:450142282,method:"messages.updateDialogFilter",params:[{name:"flags",type:"#"},{name:"id",type:"int"},{name:"filter",type:"flags.0?DialogFilter"}],type:"Bool"},{id:3311649252,method:"messages.updateDialogFiltersOrder",params:[{name:"order",type:"Vector<int>"}],type:"Bool"},{id:1608974939,method:"messages.getOldFeaturedStickers",params:[{name:"offset",type:"int"},{name:"limit",type:"int"},{name:"hash",type:"int"}],type:"messages.FeaturedStickers"},{id:3990128682,method:"updates.getState",params:[],type:"updates.State"},{id:630429265,method:"updates.getDifference",params:[{name:"flags",type:"#"},{name:"pts",type:"int"},{name:"pts_total_limit",type:"flags.0?int"},{name:"date",type:"int"},{name:"qts",type:"int"}],type:"updates.Difference"},{id:51854712,method:"updates.getChannelDifference",params:[{name:"flags",type:"#"},{name:"force",type:"flags.0?true"},{name:"channel",type:"InputChannel"},{name:"filter",type:"ChannelMessagesFilter"},{name:"pts",type:"int"},{name:"limit",type:"int"}],type:"updates.ChannelDifference"},{id:4038807890,method:"photos.updateProfilePhoto",params:[{name:"id",type:"InputPhoto"}],type:"UserProfilePhoto"},{id:1328726168,method:"photos.uploadProfilePhoto",params:[{name:"file",type:"InputFile"}],type:"photos.Photo"},{id:2278522671,method:"photos.deletePhotos",params:[{name:"id",type:"Vector<InputPhoto>"}],type:"Vector<long>"},{id:2446144168,method:"photos.getUserPhotos",params:[{name:"user_id",type:"InputUser"},{name:"offset",type:"int"},{name:"max_id",type:"long"},{name:"limit",type:"int"}],type:"photos.Photos"},{id:3003426337,method:"upload.saveFilePart",params:[{name:"file_id",type:"long"},{name:"file_part",type:"int"},{name:"bytes",type:"bytes"}],type:"Bool"},{id:2975505148,method:"upload.getFile",params:[{name:"flags",type:"#"},{name:"precise",type:"flags.0?true"},{name:"cdn_supported",type:"flags.1?true"},{name:"location",type:"InputFileLocation"},{name:"offset",type:"int"},{name:"limit",type:"int"}],type:"upload.File"},{id:3732629309,method:"upload.saveBigFilePart",params:[{name:"file_id",type:"long"},{name:"file_part",type:"int"},{name:"file_total_parts",type:"int"},{name:"bytes",type:"bytes"}],type:"Bool"},{id:619086221,method:"upload.getWebFile",params:[{name:"location",type:"InputWebFileLocation"},{name:"offset",type:"int"},{name:"limit",type:"int"}],type:"upload.WebFile"},{id:536919235,method:"upload.getCdnFile",params:[{name:"file_token",type:"bytes"},{name:"offset",type:"int"},{name:"limit",type:"int"}],type:"upload.CdnFile"},{id:2603046056,method:"upload.reuploadCdnFile",params:[{name:"file_token",type:"bytes"},{name:"request_token",type:"bytes"}],type:"Vector<FileHash>"},{id:1302676017,method:"upload.getCdnFileHashes",params:[{name:"file_token",type:"bytes"},{name:"offset",type:"int"}],type:"Vector<FileHash>"},{id:3338819889,method:"upload.getFileHashes",params:[{name:"location",type:"InputFileLocation"},{name:"offset",type:"int"}],type:"Vector<FileHash>"},{id:3304659051,method:"help.getConfig",params:[],type:"Config"},{id:531836966,method:"help.getNearestDc",params:[],type:"NearestDc"},{id:1378703997,method:"help.getAppUpdate",params:[{name:"source",type:"string"}],type:"help.AppUpdate"},{id:1295590211,method:"help.getInviteText",params:[],type:"help.InviteText"},{id:2631862477,method:"help.getSupport",params:[],type:"help.Support"},{id:2417028975,method:"help.getAppChangelog",params:[{name:"prev_app_version",type:"string"}],type:"Updates"},{id:3961704397,method:"help.setBotUpdatesStatus",params:[{name:"pending_updates_count",type:"int"},{name:"message",type:"string"}],type:"Bool"},{id:1375900482,method:"help.getCdnConfig",params:[],type:"CdnConfig"},{id:1036054804,method:"help.getRecentMeUrls",params:[{name:"referer",type:"string"}],type:"help.RecentMeUrls"},{id:749019089,method:"help.getTermsOfServiceUpdate",params:[],type:"help.TermsOfServiceUpdate"},{id:4000511898,method:"help.acceptTermsOfService",params:[{name:"id",type:"DataJSON"}],type:"Bool"},{id:1072547679,method:"help.getDeepLinkInfo",params:[{name:"path",type:"string"}],type:"help.DeepLinkInfo"},{id:2559656208,method:"help.getAppConfig",params:[],type:"JSONValue"},{id:1862465352,method:"help.saveAppLog",params:[{name:"events",type:"Vector<InputAppEvent>"}],type:"Bool"},{id:3328290056,method:"help.getPassportConfig",params:[{name:"hash",type:"int"}],type:"help.PassportConfig"},{id:3546343212,method:"help.getSupportName",params:[],type:"help.SupportName"},{id:59377875,method:"help.getUserInfo",params:[{name:"user_id",type:"InputUser"}],type:"help.UserInfo"},{id:1723407216,method:"help.editUserInfo",params:[{name:"user_id",type:"InputUser"},{name:"message",type:"string"},{name:"entities",type:"Vector<MessageEntity>"}],type:"help.UserInfo"},{id:3231151137,method:"help.getPromoData",params:[],type:"help.PromoData"},{id:505748629,method:"help.hidePromoData",params:[{name:"peer",type:"InputPeer"}],type:"Bool"},{id:3423619383,method:"channels.readHistory",params:[{name:"channel",type:"InputChannel"},{name:"max_id",type:"int"}],type:"Bool"},{id:2227305806,method:"channels.deleteMessages",params:[{name:"channel",type:"InputChannel"},{name:"id",type:"Vector<int>"}],type:"messages.AffectedMessages"},{id:3507345179,method:"channels.deleteUserHistory",params:[{name:"channel",type:"InputChannel"},{name:"user_id",type:"InputUser"}],type:"messages.AffectedHistory"},{id:4261967888,method:"channels.reportSpam",params:[{name:"channel",type:"InputChannel"},{name:"user_id",type:"InputUser"},{name:"id",type:"Vector<int>"}],type:"Bool"},{id:2911672867,method:"channels.getMessages",params:[{name:"channel",type:"InputChannel"},{name:"id",type:"Vector<InputMessage>"}],type:"messages.Messages"},{id:306054633,method:"channels.getParticipants",params:[{name:"channel",type:"InputChannel"},{name:"filter",type:"ChannelParticipantsFilter"},{name:"offset",type:"int"},{name:"limit",type:"int"},{name:"hash",type:"int"}],type:"channels.ChannelParticipants"},{id:1416484774,method:"channels.getParticipant",params:[{name:"channel",type:"InputChannel"},{name:"user_id",type:"InputUser"}],type:"channels.ChannelParticipant"},{id:176122811,method:"channels.getChannels",params:[{name:"id",type:"Vector<InputChannel>"}],type:"messages.Chats"},{id:141781513,method:"channels.getFullChannel",params:[{name:"channel",type:"InputChannel"}],type:"messages.ChatFull"},{id:1029681423,method:"channels.createChannel",params:[{name:"flags",type:"#"},{name:"broadcast",type:"flags.0?true"},{name:"megagroup",type:"flags.1?true"},{name:"title",type:"string"},{name:"about",type:"string"},{name:"geo_point",type:"flags.2?InputGeoPoint"},{name:"address",type:"flags.2?string"}],type:"Updates"},{id:3543959810,method:"channels.editAdmin",params:[{name:"channel",type:"InputChannel"},{name:"user_id",type:"InputUser"},{name:"admin_rights",type:"ChatAdminRights"},{name:"rank",type:"string"}],type:"Updates"},{id:1450044624,method:"channels.editTitle",params:[{name:"channel",type:"InputChannel"},{name:"title",type:"string"}],type:"Updates"},{id:4046346185,method:"channels.editPhoto",params:[{name:"channel",type:"InputChannel"},{name:"photo",type:"InputChatPhoto"}],type:"Updates"},{id:283557164,method:"channels.checkUsername",params:[{name:"channel",type:"InputChannel"},{name:"username",type:"string"}],type:"Bool"},{id:890549214,method:"channels.updateUsername",params:[{name:"channel",type:"InputChannel"},{name:"username",type:"string"}],type:"Bool"},{id:615851205,method:"channels.joinChannel",params:[{name:"channel",type:"InputChannel"}],type:"Updates"},{id:4164332181,method:"channels.leaveChannel",params:[{name:"channel",type:"InputChannel"}],type:"Updates"},{id:429865580,method:"channels.inviteToChannel",params:[{name:"channel",type:"InputChannel"},{name:"users",type:"Vector<InputUser>"}],type:"Updates"},{id:3222347747,method:"channels.deleteChannel",params:[{name:"channel",type:"InputChannel"}],type:"Updates"},{id:3468128611,method:"channels.exportMessageLink",params:[{name:"channel",type:"InputChannel"},{name:"id",type:"int"},{name:"grouped",type:"Bool"}],type:"ExportedMessageLink"},{id:527021574,method:"channels.toggleSignatures",params:[{name:"channel",type:"InputChannel"},{name:"enabled",type:"Bool"}],type:"Updates"},{id:4172297903,method:"channels.getAdminedPublicChannels",params:[{name:"flags",type:"#"},{name:"by_location",type:"flags.0?true"},{name:"check_limit",type:"flags.1?true"}],type:"messages.Chats"},{id:1920559378,method:"channels.editBanned",params:[{name:"channel",type:"InputChannel"},{name:"user_id",type:"InputUser"},{name:"banned_rights",type:"ChatBannedRights"}],type:"Updates"},{id:870184064,method:"channels.getAdminLog",params:[{name:"flags",type:"#"},{name:"channel",type:"InputChannel"},{name:"q",type:"string"},{name:"events_filter",type:"flags.0?ChannelAdminLogEventsFilter"},{name:"admins",type:"flags.1?Vector<InputUser>"},{name:"max_id",type:"long"},{name:"min_id",type:"long"},{name:"limit",type:"int"}],type:"channels.AdminLogResults"},{id:3935085817,method:"channels.setStickers",params:[{name:"channel",type:"InputChannel"},{name:"stickerset",type:"InputStickerSet"}],type:"Bool"},{id:3937786936,method:"channels.readMessageContents",params:[{name:"channel",type:"InputChannel"},{name:"id",type:"Vector<int>"}],type:"Bool"},{id:2939592002,method:"channels.deleteHistory",params:[{name:"channel",type:"InputChannel"},{name:"max_id",type:"int"}],type:"Bool"},{id:3938171212,method:"channels.togglePreHistoryHidden",params:[{name:"channel",type:"InputChannel"},{name:"enabled",type:"Bool"}],type:"Updates"},{id:2202135744,method:"channels.getLeftChannels",params:[{name:"offset",type:"int"}],type:"messages.Chats"},{id:4124758904,method:"channels.getGroupsForDiscussion",params:[],type:"messages.Chats"},{id:1079520178,method:"channels.setDiscussionGroup",params:[{name:"broadcast",type:"InputChannel"},{name:"group",type:"InputChannel"}],type:"Bool"},{id:2402864415,method:"channels.editCreator",params:[{name:"channel",type:"InputChannel"},{name:"user_id",type:"InputUser"},{name:"password",type:"InputCheckPasswordSRP"}],type:"Updates"},{id:1491484525,method:"channels.editLocation",params:[{name:"channel",type:"InputChannel"},{name:"geo_point",type:"InputGeoPoint"},{name:"address",type:"string"}],type:"Bool"},{id:3990134512,method:"channels.toggleSlowMode",params:[{name:"channel",type:"InputChannel"},{name:"seconds",type:"int"}],type:"Updates"},{id:300429806,method:"channels.getInactiveChannels",params:[],type:"messages.InactiveChats"},{id:2854709741,method:"bots.sendCustomRequest",params:[{name:"custom_method",type:"string"},{name:"params",type:"DataJSON"}],type:"DataJSON"},{id:3860938573,method:"bots.answerWebhookJSONQuery",params:[{name:"query_id",type:"long"},{name:"data",type:"DataJSON"}],type:"Bool"},{id:2153596662,method:"bots.setBotCommands",params:[{name:"commands",type:"Vector<BotCommand>"}],type:"Bool"},{id:2582681413,method:"payments.getPaymentForm",params:[{name:"msg_id",type:"int"}],type:"payments.PaymentForm"},{id:2693966208,method:"payments.getPaymentReceipt",params:[{name:"msg_id",type:"int"}],type:"payments.PaymentReceipt"},{id:1997180532,method:"payments.validateRequestedInfo",params:[{name:"flags",type:"#"},{name:"save",type:"flags.0?true"},{name:"msg_id",type:"int"},{name:"info",type:"PaymentRequestedInfo"}],type:"payments.ValidatedRequestedInfo"},{id:730364339,method:"payments.sendPaymentForm",params:[{name:"flags",type:"#"},{name:"msg_id",type:"int"},{name:"requested_info_id",type:"flags.0?string"},{name:"shipping_option_id",type:"flags.1?string"},{name:"credentials",type:"InputPaymentCredentials"}],type:"payments.PaymentResult"},{id:578650699,method:"payments.getSavedInfo",params:[],type:"payments.SavedInfo"},{id:3627905217,method:"payments.clearSavedInfo",params:[{name:"flags",type:"#"},{name:"credentials",type:"flags.0?true"},{name:"info",type:"flags.1?true"}],type:"Bool"},{id:779736953,method:"payments.getBankCardData",params:[{name:"number",type:"string"}],type:"payments.BankCardData"},{id:4043532160,method:"stickers.createStickerSet",params:[{name:"flags",type:"#"},{name:"masks",type:"flags.0?true"},{name:"animated",type:"flags.1?true"},{name:"user_id",type:"InputUser"},{name:"title",type:"string"},{name:"short_name",type:"string"},{name:"thumb",type:"flags.2?InputDocument"},{name:"stickers",type:"Vector<InputStickerSetItem>"}],type:"messages.StickerSet"},{id:4151709521,method:"stickers.removeStickerFromSet",params:[{name:"sticker",type:"InputDocument"}],type:"messages.StickerSet"},{id:4290172106,method:"stickers.changeStickerPosition",params:[{name:"sticker",type:"InputDocument"},{name:"position",type:"int"}],type:"messages.StickerSet"},{id:2253651646,method:"stickers.addStickerToSet",params:[{name:"stickerset",type:"InputStickerSet"},{name:"sticker",type:"InputStickerSetItem"}],type:"messages.StickerSet"},{id:2587250224,method:"stickers.setStickerSetThumb",params:[{name:"stickerset",type:"InputStickerSet"},{name:"thumb",type:"InputDocument"}],type:"messages.StickerSet"},{id:1430593449,method:"phone.getCallConfig",params:[],type:"DataJSON"},{id:1124046573,method:"phone.requestCall",params:[{name:"flags",type:"#"},{name:"video",type:"flags.0?true"},{name:"user_id",type:"InputUser"},{name:"random_id",type:"int"},{name:"g_a_hash",type:"bytes"},{name:"protocol",type:"PhoneCallProtocol"}],type:"phone.PhoneCall"},{id:1003664544,method:"phone.acceptCall",params:[{name:"peer",type:"InputPhoneCall"},{name:"g_b",type:"bytes"},{name:"protocol",type:"PhoneCallProtocol"}],type:"phone.PhoneCall"},{id:788404002,method:"phone.confirmCall",params:[{name:"peer",type:"InputPhoneCall"},{name:"g_a",type:"bytes"},{name:"key_fingerprint",type:"long"},{name:"protocol",type:"PhoneCallProtocol"}],type:"phone.PhoneCall"},{id:399855457,method:"phone.receivedCall",params:[{name:"peer",type:"InputPhoneCall"}],type:"Bool"},{id:2999697856,method:"phone.discardCall",params:[{name:"flags",type:"#"},{name:"video",type:"flags.0?true"},{name:"peer",type:"InputPhoneCall"},{name:"duration",type:"int"},{name:"reason",type:"PhoneCallDiscardReason"},{name:"connection_id",type:"long"}],type:"Updates"},{id:1508562471,method:"phone.setCallRating",params:[{name:"flags",type:"#"},{name:"user_initiative",type:"flags.0?true"},{name:"peer",type:"InputPhoneCall"},{name:"rating",type:"int"},{name:"comment",type:"string"}],type:"Updates"},{id:662363518,method:"phone.saveCallDebug",params:[{name:"peer",type:"InputPhoneCall"},{name:"debug",type:"DataJSON"}],type:"Bool"},{id:4286223235,method:"phone.sendSignalingData",params:[{name:"peer",type:"InputPhoneCall"},{name:"data",type:"bytes"}],type:"Bool"},{id:4075959050,method:"langpack.getLangPack",params:[{name:"lang_pack",type:"string"},{name:"lang_code",type:"string"}],type:"LangPackDifference"},{id:4025104387,method:"langpack.getStrings",params:[{name:"lang_pack",type:"string"},{name:"lang_code",type:"string"},{name:"keys",type:"Vector<string>"}],type:"Vector<LangPackString>"},{id:3449309861,method:"langpack.getDifference",params:[{name:"lang_pack",type:"string"},{name:"lang_code",type:"string"},{name:"from_version",type:"int"}],type:"LangPackDifference"},{id:1120311183,method:"langpack.getLanguages",params:[{name:"lang_pack",type:"string"}],type:"Vector<LangPackLanguage>"},{id:1784243458,method:"langpack.getLanguage",params:[{name:"lang_pack",type:"string"},{name:"lang_code",type:"string"}],type:"LangPackLanguage"},{id:1749536939,method:"folders.editPeerFolders",params:[{name:"folder_peers",type:"Vector<InputFolderPeer>"}],type:"Updates"},{id:472471681,method:"folders.deleteFolder",params:[{name:"folder_id",type:"int"}],type:"Updates"},{id:2873246746,method:"stats.getBroadcastStats",params:[{name:"flags",type:"#"},{name:"dark",type:"flags.0?true"},{name:"channel",type:"InputChannel"}],type:"stats.BroadcastStats"},{id:1646092192,method:"stats.loadAsyncGraph",params:[{name:"flags",type:"#"},{name:"token",type:"string"},{name:"x",type:"flags.0?long"}],type:"StatsGraph"}]},layer:114}},function(e,t,a){"use strict";var n=this&&this.__awaiter||function(e,t,a,n){return new(a||(a=Promise))((function(s,r){function i(e){try{o(n.next(e))}catch(e){r(e)}}function p(e){try{o(n.throw(e))}catch(e){r(e)}}function o(e){var t;e.done?s(e.value):(t=e.value,t instanceof a?t:new a((function(e){e(t)}))).then(i,p)}o((n=n.apply(e,t||[])).next())}))},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.gzipUncompress=t.bytesModPow=t.pqPrimeLeemon=t.pqPrimeFactorization=t.hash_pbkdf2=t.rsaEncrypt=t.aesDecryptSync=t.aesEncryptSync=t.sha256HashSync=t.sha1HashSync=t.bytesFromLeemonBigInt=void 0;const r=s(a(20)),i=s(a(21)),p=a(13),o=s(a(22)),m=a(14),d=a(5),y=a(0);function c(e){var t=m.bigInt2str(e,16);return y.bytesFromHex(t)}function l(e){var t,a,n,s,r,i,p=Math.ceil(64/m.bpe)+1,o=0,d=new Array(p),l=new Array(p),g=new Array(p),u=new Array(p),h=new Array(p),f=new Array(p),_=new Array(p);for(t=0;t<3;t++){for(a=17+(15&y.nextRandomInt(128)),m.copyInt_(f,y.nextRandomInt(1e9)+1),m.copy_(_,f),s=1<<t+18,n=1;n<s;n++){for(++o,m.copy_(d,f),m.copy_(l,f),m.copyInt_(g,a);!m.isZero(l);)1&l[0]&&(m.add_(g,d),m.greater(g,e)&&m.sub_(g,e)),m.add_(d,d),m.greater(d,e)&&m.sub_(d,e),m.rightShift_(l,1);if(m.copy_(f,g),m.greater(f,_)?(m.copy_(h,f),m.sub_(h,_)):(m.copy_(h,_),m.sub_(h,f)),m.eGCD_(h,e,u,d,l),!m.equalsInt(u,1))break;0==(n&n-1)&&m.copy_(_,f)}if(m.greater(u,m.one))break}return m.divide_(e,u,f,_),m.greater(u,f)?(r=f,i=u):(r=u,i=f),[c(r),c(i),o]}t.bytesFromLeemonBigInt=c,t.sha1HashSync=function(e){const t=[];let a=r.default(String.fromCharCode.apply(null,e instanceof Uint8Array?[...e]:[...new Uint8Array(e)]));for(let e=0;e<a.length;++e)t.push(a.charCodeAt(e));return new Uint8Array(t)},t.sha256HashSync=function(e){let t="string"==typeof e?e:y.bytesToWordss(e),a=i.default(t);return console.log(y.dT(),"SHA-256 hash finish",a),y.bytesFromWordss(a)},t.aesEncryptSync=function(e,t,a){e=y.addPadding(e);const n=new p.IGE(y.bytesToWordss(t),y.bytesToWordss(a)).encrypt(y.bytesToWordss(e));return y.bytesFromWordss(n)},t.aesDecryptSync=function(e,t,a){const n=new p.IGE(y.bytesToWordss(t),y.bytesToWordss(a)).decrypt(y.bytesToWordss(e));return y.bytesFromWordss(n)},t.rsaEncrypt=function(e,t){t=y.addPadding(t,255);var a=m.str2bigInt(e.modulus,16),n=m.str2bigInt(e.exponent,16),s=m.str2bigInt(y.bytesToHex(t),16),r=m.powMod(s,n,a);return y.bytesFromHex(m.bigInt2str(r,16))},t.hash_pbkdf2=function(e,t,a){return n(this,void 0,void 0,(function*(){console.log("hash_pbkdf2",window.crypto);let n="undefined"!=typeof window&&"crypto"in window?window.crypto.subtle:self.crypto.subtle,s=yield n.importKey("raw",e,{name:"PBKDF2"},!1,["deriveKey","deriveBits"]);return yield n.deriveKey({name:"PBKDF2",salt:t,iterations:a,hash:{name:"SHA-512"}},s,{name:"AES-CTR",length:256},!1,["encrypt","decrypt"]),n.deriveBits({name:"PBKDF2",salt:t,iterations:a,hash:{name:"SHA-512"}},s,512)}))},t.pqPrimeFactorization=function(e){var t=new d.BigInteger(e),a=!1;try{a=l(m.str2bigInt(t.toString(16),16,Math.ceil(64/m.bpe)+1))}catch(e){console.error("Pq leemon Exception",e)}return a},t.pqPrimeLeemon=l,t.bytesModPow=function(e,t,a){try{var n=m.str2bigInt(y.bytesToHex(e),16),s=m.str2bigInt(y.bytesToHex(t),16),r=m.str2bigInt(y.bytesToHex(a),16),i=m.powMod(n,s,r);return y.bytesFromHex(m.bigInt2str(i,16))}catch(e){console.error("mod pow error",e)}return y.bytesFromBigInt(new d.BigInteger(e).modPow(new d.BigInteger(t),new d.BigInteger(a)),256)},t.gzipUncompress=function(e,t){return o.default.inflate(e,t?{to:"string"}:void 0)}},function(e,t,a){"use strict";a.r(t),a.d(t,"CTR",(function(){return f})),a.d(t,"IGE",(function(){return h}));var n=new Uint8Array(256),s=new Uint8Array(256),r=new Uint32Array(256),i=new Uint32Array(256),p=new Uint32Array(256),o=new Uint32Array(256),m=new Uint32Array(256),d=new Uint32Array(256),y=new Uint32Array(256),c=new Uint32Array(256);function l(e){if(e instanceof Uint32Array)return e;if("string"==typeof e){if(e.length%4!=0)for(var t=e.length%4;t<=4;t++)e+="\0x00";var a=new Uint32Array(e.length/4);for(t=0;t<e.length;t+=4)a[t/4]=(s=t,(n=e).charCodeAt(s)<<24^n.charCodeAt(s+1)<<16^n.charCodeAt(s+2)<<8^n.charCodeAt(s+3));return a}var n,s;if(e instanceof Uint8Array){for(a=new Uint32Array(e.length/4),t=0;t<e.length;t+=4)a[t/4]=e[t]<<24^e[t+1]<<16^e[t+2]<<8^e[t+3];return a}throw new Error("Unable to create 32-bit words")}function g(e,t,a){void 0===a&&(a=e);for(var n=0;n<e.length;n++)a[n]=e[n]^t[n]}!function(){for(var e,t,a,l,g,u=new Uint8Array(256),h=new Uint8Array(256),f=0,_=0,b=0;b<256;b++)u[b]=b<<1^283*(b>>7),h[u[b]^b]=b;for(;!n[f];f^=e||1)a=(a=_^_<<1^_<<2^_<<3^_<<4)>>8^255&a^99,n[f]=a,s[a]=f,g=16843009*u[t=u[e=u[f]]]^65537*t^257*e^16843008*f,l=257*u[a]^16843008*a,r[f]=l=l<<24^l>>>8,i[f]=l=l<<24^l>>>8,p[f]=l=l<<24^l>>>8,o[f]=l=l<<24^l>>>8,m[a]=g=g<<24^g>>>8,d[a]=g=g<<24^g>>>8,y[a]=g=g<<24^g>>>8,c[a]=g=g<<24^g>>>8,_=h[_]||1}();var u=function(){function e(e){var t=l(e);if(4!==t.length&&6!==t.length&&8!==t.length)throw new Error("Invalid key size");this.encKey=new Uint32Array(4*t.length+28),this.decKey=new Uint32Array(4*t.length+28),this.encKey.set(t);for(var a,s=1,r=t.length;r<4*t.length+28;r++)a=this.encKey[r-1],(r%t.length==0||8===t.length&&r%t.length==4)&&(a=n[a>>>24]<<24^n[a>>16&255]<<16^n[a>>8&255]<<8^n[255&a],r%t.length==0&&(a=a<<8^a>>>24^s<<24,s=s<<1^283*(s>>7))),this.encKey[r]=this.encKey[r-t.length]^a;for(var i=0;r;i++,r--)a=this.encKey[3&i?r:r-4],this.decKey[i]=r<=4||i<4?a:m[n[a>>>24]]^d[n[a>>16&255]]^y[n[a>>8&255]]^c[n[255&a]]}return e.prototype.encrypt=function(e){for(var t,a,s,m=l(e),d=new Uint32Array(4),y=m[0]^this.encKey[0],c=m[1]^this.encKey[1],g=m[2]^this.encKey[2],u=m[3]^this.encKey[3],h=this.encKey.length/4-2,f=4,_=0;_<h;_++)t=r[y>>>24]^i[c>>16&255]^p[g>>8&255]^o[255&u]^this.encKey[f],a=r[c>>>24]^i[g>>16&255]^p[u>>8&255]^o[255&y]^this.encKey[f+1],s=r[g>>>24]^i[u>>16&255]^p[y>>8&255]^o[255&c]^this.encKey[f+2],u=r[u>>>24]^i[y>>16&255]^p[c>>8&255]^o[255&g]^this.encKey[f+3],y=t,c=a,g=s,f+=4;for(_=0;_<4;_++)d[_]=n[y>>>24]<<24^n[c>>16&255]<<16^n[g>>8&255]<<8^n[255&u]^this.encKey[f++],t=y,y=c,c=g,g=u,u=t;return d},e.prototype.decrypt=function(e){for(var t,a,n,r=l(e),i=new Uint32Array(4),p=r[0]^this.decKey[0],o=r[3]^this.decKey[1],g=r[2]^this.decKey[2],u=r[1]^this.decKey[3],h=this.decKey.length/4-2,f=4,_=0;_<h;_++)t=m[p>>>24]^d[o>>16&255]^y[g>>8&255]^c[255&u]^this.decKey[f],a=m[o>>>24]^d[g>>16&255]^y[u>>8&255]^c[255&p]^this.decKey[f+1],n=m[g>>>24]^d[u>>16&255]^y[p>>8&255]^c[255&o]^this.decKey[f+2],u=m[u>>>24]^d[p>>16&255]^y[o>>8&255]^c[255&g]^this.decKey[f+3],p=t,o=a,g=n,f+=4;for(_=0;_<4;_++)i[3&-_]=s[p>>>24]<<24^s[o>>16&255]<<16^s[g>>8&255]<<8^s[255&u]^this.decKey[f++],t=p,p=o,o=g,g=u,u=t;return i},e}(),h=function(){function e(e,t,a){void 0===a&&(a=16),this.key=l(e),this.iv=l(t),this.cipher=new u(e),this.blockSize=a/4}return e.prototype.encrypt=function(e,t){for(var a=l(e),n=t||new Uint32Array(a.length),s=this.iv.subarray(this.blockSize,this.iv.length),r=this.iv.subarray(0,this.blockSize),i=new Uint32Array(this.blockSize),p=0;p<a.length;p+=this.blockSize){var o=a.subarray(p,p+this.blockSize);g(o,r,i);var m=this.cipher.encrypt(i);g(m,s),s=o,r=m;for(var d=p,y=0;d<a.length&&y<4;d++,y++)n[d]=m[y]}return n},e.prototype.decrypt=function(e,t){for(var a=l(e),n=t||new Uint32Array(a.length),s=this.iv.subarray(this.blockSize,this.iv.length),r=this.iv.subarray(0,this.blockSize),i=new Uint32Array(this.blockSize),p=0;p<n.length;p+=this.blockSize){var o=a.subarray(p,p+this.blockSize);g(o,s,i);var m=this.cipher.decrypt(i);g(m,r),r=o,s=m;for(var d=p,y=0;d<n.length&&y<4;d++,y++)n[d]=m[y]}return n},e}(),f=function(){function e(e,t,a){if(void 0===a&&(a=16),this.offset=0,this.key=l(e),this.counter=l(t),this.cipher=new u(e),this.blockSize=a/4,4!==this.counter.length)throw new Error("AES-CTR mode counter must be 16 bytes length")}return e.prototype.encrypt=function(e,t){for(var a=l(e),n=t||new Uint32Array(a.length),s=this.offset,r=0;r<a.length;r+=this.blockSize){for(var i=this.cipher.encrypt(this.counter),p=r,o=s;p<a.length&&o<this.blockSize;p++,o++)n[p]=i[o]^a[p];a.length-r>=this.blockSize&&this.incrementCounter(),s&&(r-=s,s=0)}return this.offset=(this.offset+a.length%4)%4,n},e.prototype.decrypt=function(e,t){return this.encrypt(e,t)},e.prototype.incrementCounter=function(){for(var e=this.counter.length-1;e>=0&&!(++this.counter[e]<4294967295);e--);},e}();t.default=u},function(e,t,a){"use strict";a.r(t),a.d(t,"bpe",(function(){return s})),a.d(t,"one",(function(){return m})),a.d(t,"zero",(function(){return d})),a.d(t,"findPrimes",(function(){return j})),a.d(t,"millerRabinInt",(function(){return W})),a.d(t,"millerRabin",(function(){return G})),a.d(t,"bitSize",(function(){return Z})),a.d(t,"expand",(function(){return J})),a.d(t,"randTruePrime",(function(){return Q})),a.d(t,"randProbPrime",(function(){return X})),a.d(t,"randProbPrimeRounds",(function(){return Y})),a.d(t,"mod",(function(){return $})),a.d(t,"addInt",(function(){return ee})),a.d(t,"mult",(function(){return te})),a.d(t,"powMod",(function(){return ae})),a.d(t,"sub",(function(){return ne})),a.d(t,"add",(function(){return se})),a.d(t,"inverseMod",(function(){return re})),a.d(t,"multMod",(function(){return ie})),a.d(t,"randTruePrime_",(function(){return pe})),a.d(t,"randBigInt",(function(){return oe})),a.d(t,"randBigInt_",(function(){return me})),a.d(t,"GCD",(function(){return de})),a.d(t,"GCD_",(function(){return ye})),a.d(t,"inverseMod_",(function(){return ce})),a.d(t,"inverseModInt",(function(){return le})),a.d(t,"eGCD_",(function(){return ge})),a.d(t,"negative",(function(){return ue})),a.d(t,"greaterShift",(function(){return he})),a.d(t,"greater",(function(){return fe})),a.d(t,"divide_",(function(){return _e})),a.d(t,"carry_",(function(){return be})),a.d(t,"modInt",(function(){return ve})),a.d(t,"int2bigInt",(function(){return we})),a.d(t,"str2bigInt",(function(){return Pe})),a.d(t,"equalsInt",(function(){return Se})),a.d(t,"equals",(function(){return ke})),a.d(t,"isZero",(function(){return Ie})),a.d(t,"bigInt2str",(function(){return Me})),a.d(t,"dup",(function(){return Ce})),a.d(t,"copy_",(function(){return Ae})),a.d(t,"copyInt_",(function(){return Te})),a.d(t,"addInt_",(function(){return De})),a.d(t,"rightShift_",(function(){return Be})),a.d(t,"halve_",(function(){return Re})),a.d(t,"leftShift_",(function(){return Ve})),a.d(t,"multInt_",(function(){return Ue})),a.d(t,"divInt_",(function(){return Ee})),a.d(t,"linComb_",(function(){return xe})),a.d(t,"linCombShift_",(function(){return Fe})),a.d(t,"addShift_",(function(){return Le})),a.d(t,"subShift_",(function(){return Oe})),a.d(t,"sub_",(function(){return Ne})),a.d(t,"add_",(function(){return qe})),a.d(t,"mult_",(function(){return He})),a.d(t,"mod_",(function(){return ze})),a.d(t,"multMod_",(function(){return Ke})),a.d(t,"squareMod_",(function(){return je})),a.d(t,"trim",(function(){return We})),a.d(t,"powMod_",(function(){return Ge})),a.d(t,"mont_",(function(){return Ze}));var n,s=0,r=0,i="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_=!@#$%^&*()[]{}|;:,.<>/?`~ \\'\"+-";for(s=0;1<<s+1>1<<s;s++);n=(r=(1<<(s>>=1))-1)+1;var p,o,m=we(1,1,1),d=we(0,1,1),y=new Array(0),c=y,l=y,g=y,u=y,h=y,f=y,_=y,b=y,v=y,w=y,P=y,S=y,k=y,I=y,M=y,C=y,A=y,T=y,D=y,B=y,R=y,V=y,U=y,E=y,x=y,F=y,L=y,O=y,N=y,q=y,H=y,z=y,K=y;function j(e){var t,a,n,s;for(a=new Array(e),t=0;t<e;t++)a[t]=0;for(a[0]=2,n=0;a[n]<e;){for(t=a[n]*a[n];t<e;t+=a[n])a[t]=1;for(a[++n]=a[n-1]+1;a[n]<e&&a[a[n]];a[n]++);}for(s=new Array(n),t=0;t<n;t++)s[t]=a[t];return s}function W(e,t){return w.length!==e.length&&(w=Ce(e),P=Ce(e),S=Ce(e)),Te(S,t),G(e,S)}function G(e,t){var a,n,i,p;for(w.length!==e.length&&(w=Ce(e),P=Ce(e),S=Ce(e)),Ae(S,t),Ae(P,e),Ae(w,e),De(P,-1),De(w,-1),i=0,a=0;a<P.length;a++)for(n=1;n<r;n<<=1)e[a]&n?(p=i<P.length+s?i:0,a=P.length,n=r):i++;if(p&&Be(P,p),Ge(S,P,e),!Se(S,1)&&!ke(S,w)){for(n=1;n<=p-1&&!ke(S,w);){if(je(S,e),Se(S,1))return 0;n++}if(!ke(S,w))return 0}return 1}function Z(e){var t,a,n;for(t=e.length-1;0==e[t]&&t>0;t--);for(a=0,n=e[t];n;n>>=1,a++);return a+=s*t}function J(e,t){var a=we(0,(e.length>t?e.length:t)*s,0);return Ae(a,e),a}function Q(e){var t=we(0,e,0);return pe(t,e),We(t,1)}function X(e){return Y(e,e>=600?2:e>=550?4:e>=500?5:e>=400?6:e>=350?7:e>=300?9:e>=250?12:e>=200?15:e>=150?18:e>=100?27:40)}function Y(e,t){var a,n,s;for(3e4,a=we(0,e,0),0===D.length&&(D=j(3e4)),K.length!==a.length&&(K=Ce(a));;){for(me(a,e,0),a[0]|=1,s=0,n=0;n<D.length&&D[n]<=3e4;n++)if(0===ve(a,D[n])&&!Se(a,D[n])){s=1;break}for(n=0;n<t&&!s;n++){for(me(K,e,0);!fe(a,K);)me(K,e,0);G(a,K)||(s=1)}if(!s)return a}}function $(e,t){var a=Ce(e);return ze(a,t),We(a,1)}function ee(e,t){var a=J(e,e.length+1);return De(a,t),We(a,1)}function te(e,t){var a=J(e,e.length+t.length);return He(a,t),We(a,1)}function ae(e,t,a){var n=J(e,a.length);return Ge(n,We(t,2),We(a,2)),We(n,1)}function ne(e,t){var a=J(e,e.length>t.length?e.length+1:t.length+1);return Ne(a,t),We(a,1)}function se(e,t){var a=J(e,e.length>t.length?e.length+1:t.length+1);return qe(a,t),We(a,1)}function re(e,t){var a=J(e,t.length);return ce(a,t)?We(a,1):null}function ie(e,t,a){var n=J(e,a.length);return Ke(n,t,a),We(n,1)}function pe(e,t){var a,n,r,i,p,o,m,d,y,c;if(0==D.length&&(D=j(3e4)),0==B.length)for(B=new Array(512),r=0;r<512;r++)B[r]=Math.pow(2,r/511-1);if(V.length!=e.length&&(V=Ce(e),U=Ce(e),F=Ce(e),O=Ce(e),H=Ce(e),Ce(e),Ce(e),q=Ce(e),N=Ce(e),R=Ce(e),E=Ce(e),x=Ce(e),L=Ce(e),z=Ce(e)),t<=20){for(a=(1<<(t+2>>1))-1,Te(e,0),n=1;n;)for(n=0,e[0]=1|1<<t-1|Math.floor(Math.random()*(1<<t)),r=1;r<D.length&&(D[r]&a)==D[r];r++)if(0==e[0]%D[r]){n=1;break}be(e)}else{if(p=.1*t*t,t>40)for(i=1;t-t*i<=20;)i=B[Math.floor(512*Math.random())];else i=.5;for(y=Math.floor(i*t)+1,pe(x,y),Te(V,0),V[Math.floor((t-2)/s)]|=1<<(t-2)%s,_e(V,x,R,E),m=Z(R);;){for(;me(U,m,0),!fe(R,U););for(De(U,1),qe(U,R),Ae(N,x),He(N,U),Ue(N,2),De(N,1),Ae(O,U),Ue(O,2),o=0,r=0;r<D.length&&D[r]<p;r++)if(0==ve(N,D[r])&&!Se(N,D[r])){o=1;break}if(o||W(N,2)||(o=1),!o){for(De(N,-3),r=N.length-1;0==N[r]&&r>0;r--);for(d=0,c=N[r];c;c>>=1,d++);for(d+=s*r;me(L,d,0),!fe(N,L););if(De(N,3),De(L,2),Ae(q,L),Ae(F,N),De(F,-1),Ge(q,F,N),De(q,-1),Ie(q)&&(Ae(q,L),Ge(q,O,N),De(q,-1),Ae(z,N),Ae(H,q),ye(H,N),Se(H,1)))return void Ae(e,z)}}}}function oe(e,t){var a;return me(a=we(0,0,Math.floor((e-1)/s)+2),e,t),a}function me(e,t,a){var n,r;for(n=0;n<e.length;n++)e[n]=0;for(r=Math.floor((t-1)/s)+1,n=0;n<r;n++)e[n]=Math.floor(Math.random()*(1<<s-1));e[r-1]&=(2<<(t-1)%s)-1,1==a&&(e[r-1]|=1<<(t-1)%s)}function de(e,t){var a;return ye(a=Ce(e),Ce(t)),a}function ye(e,t){var a,n,s,r,i,p,o,m,d;for(b.length!==e.length&&(b=Ce(e)),d=1;d;){for(d=0,a=1;a<t.length;a++)if(t[a]){d=1;break}if(!d)break;for(a=e.length;!e[a]&&a>=0;a--);for(n=e[a],s=t[a],r=1,i=0,p=0,o=1;s+p&&s+o&&(m=Math.floor((n+r)/(s+p)))==Math.floor((n+i)/(s+o));)y=r-m*p,r=p,p=y,y=i-m*o,i=o,o=y,y=n-m*s,n=s,s=y;i?(Ae(b,e),xe(e,t,r,i),xe(t,b,o,p)):(ze(e,t),Ae(b,e),Ae(e,t),Ae(t,b))}if(0!==t[0])for(y=ve(e,t[0]),Te(e,t[0]),t[0]=y;t[0];)e[0]%=t[0],y=e[0],e[0]=t[0],t[0]=y}function ce(e,t){var a=1+2*Math.max(e.length,t.length);if(!(1&e[0]||1&t[0]))return Te(e,0),0;for(I.length!=a&&(I=new Array(a),k=new Array(a),M=new Array(a),C=new Array(a),A=new Array(a),T=new Array(a)),Ae(I,e),Ae(k,t),Te(M,1),Te(C,0),Te(A,0),Te(T,1);;){for(;!(1&I[0]);)Re(I),1&M[0]||1&C[0]?(qe(M,t),Re(M),Ne(C,e),Re(C)):(Re(M),Re(C));for(;!(1&k[0]);)Re(k),1&A[0]||1&T[0]?(qe(A,t),Re(A),Ne(T,e),Re(T)):(Re(A),Re(T));if(fe(k,I)?(Ne(k,I),Ne(A,M),Ne(T,C)):(Ne(I,k),Ne(M,A),Ne(C,T)),Se(I,0)){for(;ue(A);)qe(A,t);return Ae(e,A),Se(k,1)?1:(Te(e,0),0)}}}function le(e,t){for(var a=1,n=0;;){if(1===e)return a;if(0===e)return 0;if(n-=a*Math.floor(t/e),1===(t%=e))return n;if(0===t)return 0;a-=n*Math.floor(e/t),e%=t}}function ge(e,t,a,n,s){var r=0,i=Math.max(e.length,t.length);for(I.length!=i&&(I=new Array(i),M=new Array(i),C=new Array(i),A=new Array(i),T=new Array(i));!(1&e[0]||1&t[0]);)Re(e),Re(t),r++;for(Ae(I,e),Ae(a,t),Te(M,1),Te(C,0),Te(A,0),Te(T,1);;){for(;!(1&I[0]);)Re(I),1&M[0]||1&C[0]?(qe(M,t),Re(M),Ne(C,e),Re(C)):(Re(M),Re(C));for(;!(1&a[0]);)Re(a),1&A[0]||1&T[0]?(qe(A,t),Re(A),Ne(T,e),Re(T)):(Re(A),Re(T));if(fe(a,I)?(Ne(a,I),Ne(A,M),Ne(T,C)):(Ne(I,a),Ne(M,A),Ne(C,T)),Se(I,0)){for(;ue(A);)qe(A,t),Ne(T,e);return Ue(T,-1),Ae(n,A),Ae(s,T),void Ve(a,r)}}}function ue(e){return e[e.length-1]>>s-1&1}function he(e,t,a){var n,s=e.length,r=t.length;for(p=s+a<r?s+a:r,n=r-1-a;n<s&&n>=0;n++)if(e[n]>0)return 1;for(n=s-1+a;n<r;n++)if(t[n]>0)return 0;for(n=p-1;n>=a;n--){if(e[n-a]>t[n])return 1;if(e[n-a]<t[n])return 0}return 0}function fe(e,t){var a,n=e.length<t.length?e.length:t.length;for(a=e.length;a<t.length;a++)if(t[a])return 0;for(a=t.length;a<e.length;a++)if(e[a])return 1;for(a=n-1;a>=0;a--){if(e[a]>t[a])return 1;if(e[a]<t[a])return 0}return 0}function _e(e,t,a,i){var p,o,m,d,y,c,l,g;for(Ae(i,e),o=t.length;0===t[o-1];o--);for(g=t[o-1],l=0;g;l++)g>>=1;for(Ve(t,l=s-l),Ve(i,l),p=i.length;0===i[p-1]&&p>o;p--);for(Te(a,0);!he(t,i,p-o);)Oe(i,t,p-o),a[p-o]++;for(m=p-1;m>=o;m--){for(i[m]==t[o-1]?a[m-o]=r:a[m-o]=Math.floor((i[m]*n+i[m-1])/t[o-1]);c=(y=(o>1?t[o-2]:0)*a[m-o])>>s,y&=r,c=(d=c+a[m-o]*t[o-1])>>s,d&=r,c==i[m]?d==i[m-1]?y>(m>1?i[m-2]:0):d>i[m-1]:c>i[m];)a[m-o]--;Fe(i,t,-a[m-o],m-o),ue(i)&&(Le(i,t,m-o),a[m-o]--)}Be(t,l),Be(i,l)}function be(e){var t,a,i,p;for(a=e.length,i=0,t=0;t<a;t++)p=0,(i+=e[t])<0&&(i+=(p=-(i>>s))*n),e[t]=i&r,i=(i>>s)-p}function ve(e,t){var a,s=0;for(a=e.length-1;a>=0;a--)s=(s*n+e[a])%t;return s}function we(e,t,a){var n;n=a>(n=Math.ceil(t/s)+1)?a:n;var r=new Array(n);return Te(r,e),r}function Pe(e,t,a){var n,s,r,p,o,m=e.length;if(-1===t){for(r=new Array(0);;){for(p=new Array(r.length+1),s=0;s<r.length;s++)p[s+1]=r[s];if(p[0]=parseInt(e,10),r=p,(n=e.indexOf(",",0))<1)break;if(0==(e=e.substring(n+1)).length)break}return r.length<a?(Ae(p=new Array(a),r),p):r}for(r=we(0,t*m,0),s=0;s<m&&(n=i.indexOf(e.substring(s,s+1),0),t<=36&&n>=36&&(n-=26),!(n>=t||n<0));s++)Ue(r,t),De(r,n);for(m=r.length;m>0&&!r[m-1];m--);for(m=a>m+1?a:m+1,p=new Array(m),o=m<r.length?m:r.length,s=0;s<o;s++)p[s]=r[s];for(;s<m;s++)p[s]=0;return p}function Se(e,t){var a;if(e[0]!=t)return 0;for(a=1;a<e.length;a++)if(e[a])return 0;return 1}function ke(e,t){var a,n=e.length<t.length?e.length:t.length;for(a=0;a<n;a++)if(e[a]!==t[a])return 0;if(e.length>t.length){for(;a<e.length;a++)if(e[a])return 0}else for(;a<t.length;a++)if(t[a])return 0;return 1}function Ie(e){var t;for(t=0;t<e.length;t++)if(e[t])return 0;return 1}function Me(e,t){var a,n,s="";if(f.length!==e.length?f=Ce(e):Ae(f,e),-1===t){for(a=e.length-1;a>0;a--)s+=e[a]+",";s+=e[0]}else for(;!Ie(f);)n=Ee(f,t),s=i.substring(n,n+1)+s;return 0===s.length&&(s="0"),s}function Ce(e){return Ae(o=Array(e.length),e),o}function Ae(e,t){var a,n=e.length<t.length?e.length:t.length;for(a=0;a<n;a++)e[a]=t[a];for(a=n;a<e.length;a++)e[a]=0}function Te(e,t){var a,n,i=e.length;for(n=t,a=0;a<i;a++)e[a]=n&r,n>>=s}function De(e,t){var a,i,p,o;for(e[0]+=t,i=e.length,p=0,a=0;a<i;a++)if(o=0,(p+=e[a])<0&&(p+=(o=-(p>>s))*n),e[a]=p&r,!(p=(p>>s)-o))return}function Be(e,t){var a,n=Math.floor(t/s);if(n){for(a=0;a<e.length-n;a++)e[a]=e[a+n];for(;a<e.length;a++)e[a]=0;t%=s}for(a=0;a<e.length-1;a++)e[a]=r&(e[a+1]<<s-t|e[a]>>t);e[a]>>=t}function Re(e){var t;for(t=0;t<e.length-1;t++)e[t]=r&(e[t+1]<<s-1|e[t]>>1);e[t]=e[t]>>1|e[t]&n>>1}function Ve(e,t){var a,n=Math.floor(t/s);if(n){for(a=e.length;a>=n;a--)e[a]=e[a-n];for(;a>=0;a--)e[a]=0;t%=s}if(t){for(a=e.length-1;a>0;a--)e[a]=r&(e[a]<<t|e[a-1]>>s-t);e[a]=r&e[a]<<t}}function Ue(e,t){var a,i,p,o;if(t)for(i=e.length,p=0,a=0;a<i;a++)o=0,(p+=e[a]*t)<0&&(p+=(o=-(p>>s))*n),e[a]=p&r,p=(p>>s)-o}function Ee(e,t){var a,s,r=0;for(a=e.length-1;a>=0;a--)s=r*n+e[a],e[a]=Math.floor(s/t),r=s%t;return r}function xe(e,t,a,n){var i,p,o,m;for(o=e.length<t.length?e.length:t.length,m=e.length,p=0,i=0;i<o;i++)p+=a*e[i]+n*t[i],e[i]=p&r,p>>=s;for(i=o;i<m;i++)p+=a*e[i],e[i]=p&r,p>>=s}function Fe(e,t,a,n){var i,p,o,m;for(o=e.length<n+t.length?e.length:n+t.length,m=e.length,p=0,i=n;i<o;i++)p+=e[i]+a*t[i-n],e[i]=p&r,p>>=s;for(i=o;p&&i<m;i++)p+=e[i],e[i]=p&r,p>>=s}function Le(e,t,a){var n,i,p,o;for(p=e.length<a+t.length?e.length:a+t.length,o=e.length,i=0,n=a;n<p;n++)i+=e[n]+t[n-a],e[n]=i&r,i>>=s;for(n=p;i&&n<o;n++)i+=e[n],e[n]=i&r,i>>=s}function Oe(e,t,a){var n,i,p,o;for(p=e.length<a+t.length?e.length:a+t.length,o=e.length,i=0,n=a;n<p;n++)i+=e[n]-t[n-a],e[n]=i&r,i>>=s;for(n=p;i&&n<o;n++)i+=e[n],e[n]=i&r,i>>=s}function Ne(e,t){var a,n,i;for(i=e.length<t.length?e.length:t.length,n=0,a=0;a<i;a++)n+=e[a]-t[a],e[a]=n&r,n>>=s;for(a=i;n&&a<e.length;a++)n+=e[a],e[a]=n&r,n>>=s}function qe(e,t){var a,n,i;for(i=e.length<t.length?e.length:t.length,n=0,a=0;a<i;a++)n+=e[a]+t[a],e[a]=n&r,n>>=s;for(a=i;n&&a<e.length;a++)n+=e[a],e[a]=n&r,n>>=s}function He(e,t){var a;for(c.length!=2*e.length&&(c=new Array(2*e.length)),Te(c,0),a=0;a<t.length;a++)t[a]&&Fe(c,e,t[a],a);Ae(e,c)}function ze(e,t){u.length!==e.length?u=Ce(e):Ae(u,e),h.length!==e.length&&(h=Ce(e)),_e(u,t,h,e)}function Ke(e,t,a){var n;for(l.length!=2*e.length&&(l=new Array(2*e.length)),Te(l,0),n=0;n<t.length;n++)t[n]&&Fe(l,e,t[n],n);ze(l,a),Ae(e,l)}function je(e,t){var a,n,i,p,o;for(p=e.length;p>0&&!e[p-1];p--);for(o=p>t.length?2*p:2*t.length,l.length!=o&&(l=new Array(o)),Te(l,0),a=0;a<p;a++){for(i=l[2*a]+e[a]*e[a],l[2*a]=i&r,i>>=s,n=a+1;n<p;n++)i=l[a+n]+2*e[a]*e[n]+i,l[a+n]=i&r,i>>=s;l[a+p]=i}ze(l,t),Ae(e,l)}function We(e,t){var a,n;for(a=e.length;a>0&&!e[a-1];a--);return Ae(n=new Array(a+t),e),n}function Ge(e,t,a){var r,i,p,o;if(_.length!=a.length&&(_=Ce(a)),0!=(1&a[0])){for(Te(_,0),p=a.length;p>0&&!a[p-1];p--);for(o=n-le(ve(a,n),n),_[p]=1,Ke(e,_,a),g.length!=e.length?g=Ce(e):Ae(g,e),r=t.length-1;r>0&!t[r];r--);if(0!=t[r]){for(i=1<<s-1;i&&!(t[r]&i);i>>=1);for(;;){if(!(i>>=1)){if(--r<0)return void Ze(e,m,a,o);i=1<<s-1}Ze(e,e,a,o),i&t[r]&&Ze(e,g,a,o)}}else Te(e,1)}else for(Ae(_,e),Te(e,1);!Se(t,0);)1&t[0]&&Ke(e,_,a),Ee(t,2),je(_,a)}function Ze(e,t,a,n){var i,p,o,m,d,y,c=a.length,l=t.length;for(v.length!=c&&(v=new Array(c)),Te(v,0);c>0&&0==a[c-1];c--);for(;l>0&&0==t[l-1];l--);for(y=v.length-1,i=0;i<c;i++){for(o=(d=v[0]+e[i]*t[0])+(m=(d&r)*n&r)*a[0]>>s,d=e[i],p=1;p<l-4;)o+=v[p]+m*a[p]+d*t[p],v[p-1]=o&r,o>>=s,p++,o+=v[p]+m*a[p]+d*t[p],v[p-1]=o&r,o>>=s,p++,o+=v[p]+m*a[p]+d*t[p],v[p-1]=o&r,o>>=s,p++,o+=v[p]+m*a[p]+d*t[p],v[p-1]=o&r,o>>=s,p++,o+=v[p]+m*a[p]+d*t[p],v[p-1]=o&r,o>>=s,p++;for(;p<l;)o+=v[p]+m*a[p]+d*t[p],v[p-1]=o&r,o>>=s,p++;for(;p<c-4;)o+=v[p]+m*a[p],v[p-1]=o&r,o>>=s,p++,o+=v[p]+m*a[p],v[p-1]=o&r,o>>=s,p++,o+=v[p]+m*a[p],v[p-1]=o&r,o>>=s,p++,o+=v[p]+m*a[p],v[p-1]=o&r,o>>=s,p++,o+=v[p]+m*a[p],v[p-1]=o&r,o>>=s,p++;for(;p<c;)o+=v[p]+m*a[p],v[p-1]=o&r,o>>=s,p++;for(;p<y;)o+=v[p],v[p-1]=o&r,o>>=s,p++;v[p-1]=o&r}fe(a,v)||Ne(v,a),Ae(e,v)}},function(e,t,a){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TimeManager=void 0;const s=n(a(2)),r=a(0);class i{constructor(){this.lastMessageID=[0,0],this.timeOffset=0,s.default.get("server_time_offset").then(e=>{e&&(this.timeOffset=e)})}generateID(){var e=Date.now(),t=[Math.floor(e/1e3)+this.timeOffset,e%1e3<<21|r.nextRandomInt(65535)<<3|4];return(this.lastMessageID[0]>t[0]||this.lastMessageID[0]==t[0]&&this.lastMessageID[1]>=t[1])&&(t=[this.lastMessageID[0],this.lastMessageID[1]+4]),this.lastMessageID=t,r.longFromInts(t[0],t[1])}applyServerTime(e,t){var a=e-Math.floor((t||Date.now())/1e3),n=Math.abs(this.timeOffset-a)>10;return s.default.set({server_time_offset:a}),this.lastMessageID=[0,0],this.timeOffset=a,console.log(r.dT(),"Apply server time",e,t,a,n),n}}t.TimeManager=i,t.default=new i},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=class{constructor(e,t){this.dcID=e,this.url=t}}},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.deferredPromise=t.secureRandom=void 0;const n=a(0),s=a(5);t.secureRandom=new s.SecureRandom,t.deferredPromise=function(){let e={notify:()=>{},isFulfilled:!1,isRejected:!1},t=new Promise((a,n)=>{e.resolve=e=>{t.isFulfilled||(t.isFulfilled=!0,a(e))},e.reject=(...e)=>{t.isRejected||(t.isRejected=!0,n(...e))}});return Object.assign(t,e),t},Object.defineProperty(Uint8Array.prototype,"hex",{get:function(){return n.bytesToHex([...this])},set:function(e){this.set(n.bytesFromHex(e))},enumerable:!0,configurable:!0}),Uint8Array.prototype.randomize=function(){return t.secureRandom.nextBytes(this),this},Uint8Array.prototype.concat=function(...e){return n.bufferConcats(this,...e)},Uint8Array.prototype.toString=function(){return String.fromCharCode.apply(null,[...this])},Uint8Array.prototype.toJSON=function(){return[...this]},Array.prototype.forEachReverse=function(e){for(var t=this.length-1;t>=0;--t)e(this[t],t,this)},Array.prototype.findAndSplice=function(e){let t=this.findIndex(e);return-1!==t?this.splice(t,1)[0]:void 0},String.prototype.toHHMMSS=function(e=!1){let t=parseInt(this+"",10),a=Math.floor(t/3600),n=Math.floor((t-3600*a)/60),s=t-3600*a-60*n;return a<10&&(a="0"+a),n<10&&(n=e?"0"+n:n),s<10&&(s="0"+s),n+":"+s}},function(e,t,a){"use strict";a.r(t);var n=a(17),s=a(7),r=a.n(s),i=a(2),p=a.n(i),o=a(1),m=a.n(o),d=a(6),y=a.n(d);n.secureRandom;const c=self;function l(){c.postMessage(...arguments)}y.a.setUpdatesProcessor((e,t)=>{l({update:{obj:e,bool:t}})}),c.onmessage=function(e){var t=e.data.taskID;if(e.data.useLs)p.a.finishTask(e.data.taskID,e.data.args);else switch(e.data.task){case"unzip":return m.a.gzipUncompress.apply(m.a,e.data.args).then(e=>{l({taskID:t,result:e})});default:try{let a=r.a[e.data.task].apply(r.a,e.data.args);a instanceof Promise?a.then(e=>{l({taskID:t,result:e})}).catch(e=>{l({taskID:t,error:e})}):l({taskID:t,result:a})}catch(e){l({taskID:t,error:e})}}},c.postMessage("ready")},function(e,t,a){"use strict";var n=this&&this.__awaiter||function(e,t,a,n){return new(a||(a=Promise))((function(s,r){function i(e){try{o(n.next(e))}catch(e){r(e)}}function p(e){try{o(n.throw(e))}catch(e){r(e)}}function o(e){var t;e.done?s(e.value):(t=e.value,t instanceof a?t:new a((function(e){e(t)}))).then(i,p)}o((n=n.apply(e,t||[])).next())}))},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MTPNetworker=void 0;const r=a(0),i=a(0),p=a(8),o=s(a(1)),m=s(a(2)),d=s(a(11)),y=s(a(15)),c=s(a(6)),l=s(a(9)),g=s(a(10)),u=a(4),h=a(3);t.MTPNetworker=class{constructor(e,t,a,n,s={}){this.dcID=e,this.authKey=t,this.authKeyID=a,this.serverSalt=n,this.options=s,this.lastServerMessages=[],this.sentMessages={},this.pendingMessages={},this.pendingAcks=[],this.pendingResends=[],this.connectionInited=!1,this.longPollPending=0,this.seqNo=0,this.prevSessionID=[],this.sessionID=[],this.sleepAfter=0,this.offline=!1,this.checkConnectionPeriod=0,this.nextReq=0,this.onOnlineCb=this.checkConnection.bind(this),this.lastResendReq=null,this.authKeyUint8=i.convertToUint8Array(this.authKey),this.upload=this.options.fileUpload||this.options.fileDownload||!1,this.log=u.logger("NET-"+e+(this.upload?"-U":"")),this.log("constructor"),this.updateSession(),this.transport=l.default.chooseServer(this.dcID,this.upload),this.transport instanceof g.default?(setInterval(this.checkLongPoll.bind(this),1e4),this.checkLongPoll()):this.transport.networker=this}updateSession(){this.seqNo=0,this.prevSessionID=this.sessionID,this.sessionID=new Array(8),this.sessionID=[...new Uint8Array(this.sessionID.length).randomize()]}updateSentMessage(e){var t=this.sentMessages[e];if(!t)return!1;var a=this;if(t.container){var n=[];t.inner.forEach(e=>{var t=a.updateSentMessage(e);t&&n.push(t.msg_id)}),t.inner=n}return t.msg_id=y.default.generateID(),t.seq_no=this.generateSeqNo(t.notContentRelated||t.container),this.sentMessages[t.msg_id]=t,delete a.sentMessages[e],t}generateSeqNo(e){var t=2*this.seqNo;return e||(t++,this.seqNo++),t}wrapMtpCall(e,t={},a={}){var n=new p.TLSerialization({mtproto:!0});n.storeMethod(e,t);var s=y.default.generateID(),r=this.generateSeqNo(),i={msg_id:s,seq_no:r,body:n.getBytes()};return h.Modes.debug&&this.log("MT call",e,t,s,r),this.pushMessage(i,a)}wrapMtpMessage(e={},t={}){var a=new p.TLSerialization({mtproto:!0});a.storeObject(e,"Object");var n=y.default.generateID(),s=this.generateSeqNo(t.notContentRelated),r={msg_id:n,seq_no:s,body:a.getBytes()};return h.Modes.debug&&this.log("MT message",e,n,s),this.pushMessage(r,t)}wrapApiCall(e,t={},a={}){let n=new p.TLSerialization(a);if(!this.connectionInited){let e=d.default.API.methods.find(e=>"invokeWithLayer"==e.method);if(!e)throw new Error("no invokeWithLayer!");n.storeInt(+e.id>>>0,"invokeWithLayer"),n.storeInt(d.default.layer,"layer");let t=d.default.API.methods.find(e=>"initConnection"==e.method);if(!t)throw new Error("no initConnection!");n.storeInt(+t.id>>>0,"initConnection"),n.storeInt(0,"flags"),n.storeInt(h.App.id,"api_id"),n.storeString(navigator.userAgent||"Unknown UserAgent","device_model"),n.storeString(navigator.platform||"Unknown Platform","system_version"),n.storeString(h.App.version,"app_version"),n.storeString(navigator.language||"en","system_lang_code"),n.storeString("","lang_pack"),n.storeString(navigator.language||"en","lang_code")}if(a.afterMessageID){let e=d.default.API.methods.find(e=>"invokeAfterMsg"==e.method);if(!e)throw new Error("no invokeAfterMsg!");this.log("Api call options.afterMessageID!"),n.storeInt(+e.id>>>0,"invokeAfterMsg"),n.storeLong(a.afterMessageID,"msg_id")}a.resultType=n.storeMethod(e,t);var s={msg_id:y.default.generateID(),seq_no:this.generateSeqNo(),body:n.getBytes(!0),isAPI:!0};return h.Modes.debug?this.log("Api call",e,s,t,a):this.log("Api call",e,t,a),this.pushMessage(s,a)}checkLongPoll(){const e=this.cleanupSent();if(this.longPollPending&&Date.now()<this.longPollPending||this.offline)return!1;m.default.get("dc").then(t=>{e&&(t!=this.dcID||this.upload||this.sleepAfter&&Date.now()>this.sleepAfter)||this.sendLongPoll()})}sendLongPoll(){this.longPollPending=Date.now()+25e3,this.wrapMtpCall("http_wait",{max_delay:500,wait_after:150,max_wait:25e3},{noResponse:!0,longPoll:!0}).then(()=>{this.longPollPending=0,setTimeout(this.checkLongPoll.bind(this),0)},e=>{this.log("Long-poll failed",e)})}pushMessage(e,t={}){return new Promise((a,n)=>{this.sentMessages[e.msg_id]=Object.assign(e,t,{deferred:{resolve:a,reject:n}}),this.pendingMessages[e.msg_id]=0,t&&t.noSchedule||this.scheduleRequest(),r.isObject(t)&&(t.messageID=e.msg_id)})}pushResend(e,t=0){const a=t?Date.now()+t:0,n=this.sentMessages[e];if(n.container)for(let e=0,t=n.inner.length;e<t;e++)this.pendingMessages[n.inner[e]]=a;else this.pendingMessages[e]=a;this.log("Resend due",e,this.pendingMessages),this.scheduleRequest(t)}getMsgKey(e,t){return n(this,void 0,void 0,(function*(){const a=this.authKeyUint8,n=t?0:8,s=i.bufferConcat(a.subarray(88+n,88+n+32),e),r=yield o.default.sha256Hash(s);return new Uint8Array(r).subarray(8,24)}))}getAesKeyIv(e,t){var a=this.authKeyUint8,n=t?0:8,s=new Uint8Array(52),r=new Uint8Array(52),i=[];return s.set(e,0),s.set(a.subarray(n,n+36),16),i.push(o.default.sha256Hash(s)),r.set(a.subarray(40+n,40+n+36),0),r.set(e,36),i.push(o.default.sha256Hash(r)),Promise.all(i).then(e=>{var t=new Uint8Array(32),a=new Uint8Array(32),n=new Uint8Array(e[0]),s=new Uint8Array(e[1]);return t.set(n.subarray(0,8)),t.set(s.subarray(8,24),8),t.set(n.subarray(24,32),24),a.set(s.subarray(0,8)),a.set(n.subarray(8,24),8),a.set(s.subarray(24,32),24),[t,a]})}checkConnection(e){this.log("Check connection",e),clearTimeout(this.checkConnectionTimeout),this.checkConnectionTimeout=0;var t=new p.TLSerialization({mtproto:!0}),a=[i.nextRandomInt(4294967295),i.nextRandomInt(4294967295)];t.storeMethod("ping",{ping_id:a});var n={msg_id:y.default.generateID(),seq_no:this.generateSeqNo(!0),body:t.getBytes()},s=this;this.sendEncryptedRequest(n,{timeout:15e3}).then(e=>{s.toggleOffline(!1)},()=>{this.log("Delay ",1e3*s.checkConnectionPeriod),s.checkConnectionTimeout=setTimeout(s.checkConnection.bind(s),1e3*s.checkConnectionPeriod|0),s.checkConnectionPeriod=Math.min(60,1.5*s.checkConnectionPeriod)})}toggleOffline(e){if(void 0!==this.offline&&this.offline==e)return!1;this.offline=e,this.transport instanceof g.default?this.offline?(clearTimeout(this.nextReqTimeout),this.nextReqTimeout=0,this.nextReq=0,this.checkConnectionPeriod<1.5&&(this.checkConnectionPeriod=0),this.checkConnectionTimeout=setTimeout(this.checkConnection.bind(this),1e3*this.checkConnectionPeriod|0),this.checkConnectionPeriod=Math.min(30,1.5*(1+this.checkConnectionPeriod)),document.body.addEventListener("online",this.onOnlineCb,!1),document.body.addEventListener("focus",this.onOnlineCb,!1)):(this.checkLongPoll(),this.scheduleRequest(),document.body.removeEventListener("online",this.onOnlineCb),document.body.removeEventListener("focus",this.onOnlineCb),clearTimeout(this.checkConnectionTimeout),this.checkConnectionTimeout=0):this.log("toggle ",e,this.dcID)}performScheduledRequest(){if(this.offline)return this.log("Cancel scheduled"),!1;if(this.nextReq=0,this.pendingAcks.length){var e=this.pendingAcks.slice();this.wrapMtpMessage({_:"msgs_ack",msg_ids:e},{notContentRelated:!0,noSchedule:!0})}if(this.pendingResends.length){var t=this.pendingResends.slice(),a={noSchedule:!0,notContentRelated:!0,messageID:""};this.log("resendReq messages",t),this.wrapMtpMessage({_:"msg_resend_req",msg_ids:t},a),this.lastResendReq={req_msg_id:a.messageID,resend_msg_ids:t}}var n,s=[],r=0,i=Date.now(),o=!1,m=!1,d=!1,c=0,l=this;for(let e in this.pendingMessages){let t=this.pendingMessages[e];if(!t||t>=i){if(n=this.sentMessages[e]){var u=n.body.length+32;if(!n.notContentRelated&&d)continue;if(!n.notContentRelated&&r&&r+u>655360){this.log.warn("lengthOverflow",n),d=!0;continue}if(n.singleInRequest&&++c>1)continue;s.push(n),r+=u,n.isAPI?o=!0:n.longPoll&&(m=!0)}delete l.pendingMessages[e]}}if(o&&!m&&this.transport instanceof g.default){var f=new p.TLSerialization({mtproto:!0});f.storeMethod("http_wait",{max_delay:500,wait_after:150,max_wait:3e3}),s.push({msg_id:y.default.generateID(),seq_no:this.generateSeqNo(),body:f.getBytes()})}if(!s.length)return;var _=[];if(s.length>1){var b=new p.TLSerialization({mtproto:!0,startMaxLength:r+64});b.storeInt(1945237724,"CONTAINER[id]"),b.storeInt(s.length,"CONTAINER[count]");var v=[];s.forEach((e,t)=>{b.storeLong(e.msg_id,"CONTAINER["+t+"][msg_id]"),v.push(e.msg_id),b.storeInt(e.seq_no,"CONTAINER["+t+"][seq_no]"),b.storeInt(e.body.length,"CONTAINER["+t+"][bytes]"),b.storeRawBytes(e.body,"CONTAINER["+t+"][body]"),e.noResponse&&_.push(e.msg_id)});var w={msg_id:y.default.generateID(),seq_no:this.generateSeqNo(!0),container:!0,inner:v};n=Object.assign({body:b.getBytes(!0)},w),this.sentMessages[n.msg_id]=w,h.Modes.debug,this.log("Container",v,n.msg_id,n.seq_no)}else n.noResponse&&_.push(n.msg_id),this.sentMessages[n.msg_id]=n;this.pendingAcks=[];let P=this.sendEncryptedRequest(n);this.transport instanceof g.default?P.then(e=>{l.toggleOffline(!1),l.parseResponse(e).then(e=>{h.Modes.debug&&this.log("Server response",l.dcID,e),l.processMessage(e.response,e.messageID,e.sessionID),_.forEach(e=>{if(l.sentMessages[e]){var t=l.sentMessages[e].deferred;delete l.sentMessages[e],t.resolve()}}),l.transport instanceof g.default&&(l.checkLongPoll(),this.checkConnectionPeriod=Math.max(1.1,Math.sqrt(this.checkConnectionPeriod)))})},e=>{this.log.error("Encrypted request failed",e,n),n.container?(n.inner.forEach(e=>{l.pendingMessages[e]=0}),delete l.sentMessages[n.msg_id]):l.pendingMessages[n.msg_id]=0,_.forEach(e=>{if(l.sentMessages[e]){var t=l.sentMessages[e].deferred;delete l.sentMessages[e],delete l.pendingMessages[e],t.reject()}}),l.toggleOffline(!0)}):_.length&&this.log.error("noResponseMsgs length!",_),(d||c>1)&&this.scheduleRequest()}getEncryptedMessage(e){return n(this,void 0,void 0,(function*(){let t=yield this.getMsgKey(e,!0),a=yield this.getAesKeyIv(t,!0);return{bytes:yield o.default.aesEncrypt(e,a[0],a[1]),msgKey:t}}))}getDecryptedMessage(e,t){return this.getAesKeyIv(e,!1).then(e=>o.default.aesDecrypt(t,e[0],e[1]))}sendEncryptedRequest(e,t={}){var a=this;this.log.debug("Send encrypted",e,t,this.authKeyID);var n=new p.TLSerialization({startMaxLength:e.body.length+2048});n.storeIntBytes(this.serverSalt,64,"salt"),n.storeIntBytes(this.sessionID,64,"session_id"),n.storeLong(e.msg_id,"message_id"),n.storeInt(e.seq_no,"seq_no"),n.storeInt(e.body.length,"message_data_length"),n.storeRawBytes(e.body,"message_data");var s=n.getBuffer(),r=16-n.offset%16+16*(1+i.nextRandomInt(5)),o=new Array(r);o=[...new Uint8Array(o.length).randomize()];var m=i.bufferConcat(s,o);return this.getEncryptedMessage(m).then(e=>{this.log.debug("Got encrypted out message",e);let t=new p.TLSerialization({startMaxLength:e.bytes.byteLength+256});t.storeIntBytes(a.authKeyID,64,"auth_key_id"),t.storeIntBytes(e.msgKey,128,"msg_key"),t.storeRawBytes(e.bytes,"encrypted_data");let n=t.getBytes(!0),s={code:406,type:"NETWORK_BAD_RESPONSE",transport:this.transport},r=this.transport.send(n);return this.transport instanceof g.default?r.then(e=>e&&e.byteLength?e:Promise.reject(s),e=>(e.message||e.type||(e=Object.assign(s,{type:"NETWORK_BAD_REQUEST",originalError:e})),Promise.reject(e))):r})}parseResponse(e){this.log.debug("Start parsing response");let t=this,a=new p.TLDeserialization(e),n=a.fetchIntBytes(64,!0,"auth_key_id");if(!i.bytesCmp(n,this.authKeyID))throw new Error("[MT] Invalid server auth_key_id: "+n.hex);let s=a.fetchIntBytes(128,!0,"msg_key"),r=a.fetchRawBytes(e.byteLength-a.getOffset(),!0,"encrypted_data");return t.getDecryptedMessage(s,r).then(e=>t.getMsgKey(e,!1).then(a=>{if(!i.bytesCmp(s,a))throw this.log.warn("[MT] msg_keys",s,a),this.updateSession(),new Error("[MT] server msgKey mismatch, updating session");let n=new p.TLDeserialization(e,{mtproto:!0});n.fetchIntBytes(64,!1,"salt");let r=n.fetchIntBytes(64,!1,"session_id"),o=n.fetchLong("message_id");if(!(i.bytesCmp(r,t.sessionID)||t.prevSessionID&&i.bytesCmp(r,t.prevSessionID)))throw this.log.warn("Sessions",r,t.sessionID,t.prevSessionID,e),new Error("[MT] Invalid server session_id: "+i.bytesToHex(r));let m=n.fetchInt("seq_no"),d=e.byteLength,y=n.fetchInt("message_data[length]"),c=n.getOffset();if(y%4||y>d-c)throw new Error("[MT] Invalid body length: "+y);let l=n.fetchRawBytes(y,!0,"message_data");c=n.getOffset();let g=d-c;if(g<12||g>1024)throw new Error("[MT] Invalid padding length: "+g);return n=new p.TLDeserialization(l,{mtproto:!0}),n.override={mt_message:function(e,a){e.msg_id=this.fetchLong(a+"[msg_id]"),e.seqno=this.fetchInt(a+"[seqno]"),e.bytes=this.fetchInt(a+"[bytes]");var n=this.getOffset();try{e.body=this.fetchObject("Object",a+"[body]")}catch(a){t.log.error("parse error",a.message,a.stack),e.body={_:"parse_error",error:a}}this.offset!=n+e.bytes&&(this.offset=n+e.bytes)}.bind(n),mt_rpc_result:function(e,a){e.req_msg_id=this.fetchLong(a+"[req_msg_id]");var n=t.sentMessages[e.req_msg_id],s=n&&n.resultType||"Object";e.req_msg_id&&!n||(e.result=this.fetchObject(s,a+"[result]"))}.bind(n)},{response:n.fetchObject("","INPUT"),messageID:o,sessionID:r,seqNo:m}}))}applyServerSalt(e){var t=i.longToBytes(e);return m.default.set({["dc"+this.dcID+"_server_salt"]:i.bytesToHex(t)}),this.serverSalt=t,!0}scheduleRequest(e=0){if(!(this.transport instanceof g.default))return this.performScheduledRequest();this.offline&&this.checkConnection("forced schedule");var t=Date.now()+e;if(e&&this.nextReq&&this.nextReq<=t)return!1;clearTimeout(this.nextReqTimeout),this.nextReqTimeout=0,e>0?this.nextReqTimeout=setTimeout(this.performScheduledRequest.bind(this),e||0):setTimeout(this.performScheduledRequest.bind(this),0),this.nextReq=t}ackMessage(e){this.pendingAcks.push(e),this.scheduleRequest(3e4)}reqResendMessage(e){this.log("Req resend",e),this.pendingResends.push(e),this.scheduleRequest(100)}cleanupSent(){let e=!1;return Object.keys(this.sentMessages).forEach(t=>{const a=this.sentMessages[t];if(a.notContentRelated&&void 0===this.pendingMessages[t])delete this.sentMessages[t];else if(a.container){for(let t=0;t<a.inner.length;t++)if(void 0!==this.sentMessages[a.inner[t]])return void(e=!0);delete this.sentMessages[t]}else e=!0}),!e}processMessageAck(e){var t=this.sentMessages[e];return!(!t||t.acked)&&(delete t.body,t.acked=!0,!0)}processError(e){var t=(e.error_message||"").match(/^([A-Z_0-9]+\b)(: (.+))?/)||[];return e.error_code=e.error_code,{code:!e.error_code||e.error_code<=0?500:e.error_code,type:t[1]||"UNKNOWN",description:t[3]||"CODE#"+e.error_code+" "+e.error_message,originalError:e}}resend(){for(let e in this.sentMessages){this.sentMessages[e].body&&this.pushResend(e)}}processMessage(e,t,a){if(parseInt(t.substr(0,-10),10)%2)this.log.warn("[MT] Server even message id: ",t,e);else switch(this.log.debug("process message",e,t,a),e._){case"msg_container":for(var n=e.messages.length,s=0;s<n;s++)this.processMessage(e.messages[s],e.messages[s].msg_id,a);break;case"bad_server_salt":if(this.log("Bad server salt",e),!(l=this.sentMessages[e.bad_msg_id])||l.seq_no!=e.bad_msg_seqno)throw this.log(e.bad_msg_id,e.bad_msg_seqno),new Error("[MT] Bad server salt for invalid message");this.applyServerSalt(e.new_server_salt),this.pushResend(e.bad_msg_id),this.ackMessage(t);break;case"bad_msg_notification":if(this.log("Bad msg notification",e),!(l=this.sentMessages[e.bad_msg_id])||l.seq_no!=e.bad_msg_seqno)throw this.log(e.bad_msg_id,e.bad_msg_seqno),new Error("[MT] Bad msg notification for invalid message");if(16==e.error_code||17==e.error_code){y.default.applyServerTime(i.bigStringInt(t).shiftRight(32).toString(10))&&(this.log("Update session"),this.updateSession());var r=this.updateSentMessage(e.bad_msg_id);r&&this.pushResend(r.msg_id),this.ackMessage(t)}break;case"message":if(-1!=this.lastServerMessages.indexOf(t))return void this.ackMessage(t);this.lastServerMessages.push(t),this.lastServerMessages.length>100&&this.lastServerMessages.shift(),this.processMessage(e.body,e.msg_id,a);break;case"new_session_created":this.ackMessage(t),this.log.debug("new_session_created",e),this.processMessageAck(e.first_msg_id),this.applyServerSalt(e.server_salt),m.default.get("dc").then(t=>{t==this.dcID&&!this.upload&&c.default.updatesProcessor&&c.default.updatesProcessor(e,!0)});break;case"msgs_ack":for(s=0;s<e.msg_ids.length;s++)this.processMessageAck(e.msg_ids[s]);break;case"msg_detailed_info":if(!this.sentMessages[e.msg_id]){this.ackMessage(e.answer_msg_id);break}case"msg_new_detailed_info":if(this.pendingAcks.indexOf(e.answer_msg_id))break;this.reqResendMessage(e.answer_msg_id);break;case"msgs_state_info":var p,o;if(this.ackMessage(e.answer_msg_id),this.lastResendReq&&this.lastResendReq.req_msg_id==e.req_msg_id&&this.pendingResends.length)for(let e=0;e<this.lastResendReq.resend_msg_ids.length;e++)p=this.lastResendReq.resend_msg_ids[e],-1!=(o=this.pendingResends.indexOf(p))&&this.pendingResends.splice(o,1);break;case"rpc_result":this.ackMessage(t);var d=e.req_msg_id,l=this.sentMessages[d];if(this.processMessageAck(d),l){var g=l.deferred;if("rpc_error"==e.result._){var u=this.processError(e.result);this.log("Rpc error",u),g&&g.reject(u)}else{if(g){if(h.Modes.debug)this.log.debug("Rpc response",e.result);else{var f=e.result._;f||(f=e.result.length>5?"[.."+e.result.length+"..]":e.result),this.log.debug("Rpc response",f,l)}l.deferred.resolve(e.result)}l.isAPI&&!this.connectionInited&&(this.connectionInited=!0)}delete this.sentMessages[d]}break;default:this.ackMessage(t),this.log.debug("Update",e),null!==c.default.updatesProcessor&&c.default.updatesProcessor(e,!0)}}}},function(e,t,a){"use strict";function n(e){return String.fromCharCode(e>>24&255)+String.fromCharCode(e>>16&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(255&e)}Object.defineProperty(t,"__esModule",{value:!0});for(var s=String.fromCharCode(128),r=64;r--;)s+=String.fromCharCode(0);t.default=function(e){for(var t=e.length,a=t/4294967296>>>0,r=t>>>0,i=[0,0],p=i.length-1;p>=0;p-=1)i[p]+=r,r=a+(i[p]/4294967296>>>0),i[p]>>>=0,a=r/4294967296>>>0;var o,m=e,d=63&i[i.length-1]+8;m+=s.substr(0,64-d);var y=8*i[0];for(p=0;p<i.length-1;p+=1)m+=n((y+=(o=8*i[p+1])/4294967296>>>0)>>>0),y=o>>>0;var c=function(e){for(var t,a,n,s,r,i,p,o=0,m=0,d=new Uint32Array(80),y=1732584193,c=4023233417,l=2562383102,g=271733878,u=3285377520,h=e.length,f=0;h>=64;){for(t=y,a=c,n=l,s=g,r=u,o=0;o<16;o+=1)d[o]=(p=f,(i=e).charCodeAt(p)<<24^i.charCodeAt(p+1)<<16^i.charCodeAt(p+2)<<8^i.charCodeAt(p+3)),f+=4,m=(t<<5|t>>>27)+(s^a&(n^s))+r+1518500249+d[o],r=s,s=n,n=(a<<30|a>>>2)>>>0,a=t,t=m;for(;o<20;o+=1)m=(m=d[o-3]^d[o-8]^d[o-14]^d[o-16])<<1|m>>>31,d[o]=m,m=(t<<5|t>>>27)+(s^a&(n^s))+r+1518500249+m,r=s,s=n,n=(a<<30|a>>>2)>>>0,a=t,t=m;for(;o<32;o+=1)m=(m=d[o-3]^d[o-8]^d[o-14]^d[o-16])<<1|m>>>31,d[o]=m,m=(t<<5|t>>>27)+(a^n^s)+r+1859775393+m,r=s,s=n,n=(a<<30|a>>>2)>>>0,a=t,t=m;for(;o<40;o+=1)m=(m=d[o-6]^d[o-16]^d[o-28]^d[o-32])<<2|m>>>30,d[o]=m,m=(t<<5|t>>>27)+(a^n^s)+r+1859775393+m,r=s,s=n,n=(a<<30|a>>>2)>>>0,a=t,t=m;for(;o<60;o+=1)m=(m=d[o-6]^d[o-16]^d[o-28]^d[o-32])<<2|m>>>30,d[o]=m,m=(t<<5|t>>>27)+(a&n|s&(a^n))+r+2400959708+m,r=s,s=n,n=(a<<30|a>>>2)>>>0,a=t,t=m;for(;o<80;o+=1)m=(m=d[o-6]^d[o-16]^d[o-28]^d[o-32])<<2|m>>>30,d[o]=m,m=(t<<5|t>>>27)+(a^n^s)+r+3395469782+m,r=s,s=n,n=(a<<30|a>>>2)>>>0,a=t,t=m;y=y+t|0,c=c+a|0,l=l+n|0,g=g+s|0,u=u+r|0,h-=64}return{h1:y,h2:c,h3:l,h4:g,h5:u}}(m+=n(y));return n(c.h1)+n(c.h2)+n(c.h3)+n(c.h4)+n(c.h5)}},function(e,t,a){"use strict";function n(e,t){return e.charCodeAt(t)<<24^e.charCodeAt(t+1)<<16^e.charCodeAt(t+2)<<8^e.charCodeAt(t+3)}function s(e){return String.fromCharCode(e>>24&255)+String.fromCharCode(e>>16&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(255&e)}function r(e){return("00000000"+e.toString(16)).slice(-8)}function i(e){return e||(e=new Uint32Array(8)),e[0]=1779033703,e[1]=3144134277,e[2]=1013904242,e[3]=2773480762,e[4]=1359893119,e[5]=2600822924,e[6]=528734635,e[7]=1541459225,e}a.r(t);var p=new Uint32Array(64),o=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function m(e,t){var a=e[0],n=e[1],s=e[2],r=e[3],i=e[4],m=e[5],d=e[6],y=e[7];p.set(t);for(var c=16;c<64;c+=1){h=((h=p[c-2])>>>17|h<<15)^(h>>>19|h<<13)^h>>>10,l=((l=p[c-15])>>>7|l<<25)^(l>>>18|l<<14)^l>>>3,p[c]=h+p[c-7]+l+p[c-16]}for(c=0;c<64;c+=1){var l,g=(a>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10),u=a&n|s&(a^n),h=y+((i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7))+(d^i&(m^d))+o[c]+p[c];y=d,d=m,m=i,i=r+h|0,r=s,s=n,n=a,a=h+(l=g+u)|0}e[0]+=a,e[1]+=n,e[2]+=s,e[3]+=r,e[4]+=i,e[5]+=m,e[6]+=d,e[7]+=y}function d(e,t,a,s){for(void 0===s&&(s=0);e.length>=64;){for(var r=s;r<16;r++)t[r]=n(e,4*r);e=e.slice(64-4*s),s=0,m(a,t)}return e}function y(e,t,a,n){for(void 0===n&&(n=0);e.length>=t.length-n;)t.set(e.subarray(0,t.length-n),n),e=e.subarray(t.length-n),n=0,m(a,t);return e.length>0&&(t.set(e,n),n+=e.length),n}function c(e,t,a,n){void 0===n&&(n=0);for(var s=e/4294967296>>>0,r=e>>>0,i=n+1;i<t.length;i++)t[i]=0;if(n>=14){m(a,t);for(i=0;i<t.length;i++)t[i]=0}t[14]=s<<3|s>>>28,t[15]=r<<3,m(a,t)}function l(e,t,a,s,r){for(void 0===r&&(r=0);e.length>=4;r++)a[r]=n(e,0),e=e.slice(4);r>=16&&(m(s,a),r=0),a[r]=n(e+"€\0\0\0",0),c(t,a,s,r)}function g(e,t,a,n){void 0===n&&(n=0),t[n]=2147483648,c(e,t,a,n)}function u(e,t){switch(void 0===t&&(t="array"),t){case"hex":return r(e[0])+r(e[1])+r(e[2])+r(e[3])+r(e[4])+r(e[5])+r(e[6])+r(e[7]);case"binary":return s(e[0])+s(e[1])+s(e[2])+s(e[3])+s(e[4])+s(e[5])+s(e[6])+s(e[7]);default:return e}}var h=function(){function e(e){this.buffer=new Uint32Array(16),this.state=i(e),this.length=0,this.offset=0,this.tail=""}return e.prototype.update=function(e){if("string"==typeof e)this.length+=e.length,this.tail=d(this.tail+e,this.buffer,this.state,this.offset),this.offset=0;else{if(this.tail.length>0)throw new Error("Unable to update hash-stream with array");this.length+=4*e.length,this.offset=y(e,this.buffer,this.state,this.offset)}return this},e.prototype.digest=function(e){return void 0===e&&(e="array"),this.tail.length>0?l(this.tail,this.length,this.buffer,this.state,this.offset):g(this.length,this.buffer,this.state,this.offset),u(this.state,e)},e.prototype.clear=function(){this.state=i(),this.length=0,this.offset=0,this.tail=""},e}();function f(e,t){void 0===t&&(t="array");var a=new Uint32Array(16),n=i();return"string"==typeof e?l(d(e,a,n),e.length,a,n):g(4*e.length,a,n,y(e,a,n)),u(n,t)}f.stream=function(e){return new h(e)},f.blockLength=64,f.digestLength=32,t.default=f},function(e,t,a){e.exports=function e(t,a,n){function s(i,p){if(!a[i]){if(!t[i]){if(r)return r(i,!0);var o=new Error("Cannot find module '"+i+"'");throw o.code="MODULE_NOT_FOUND",o}var m=a[i]={exports:{}};t[i][0].call(m.exports,(function(e){return s(t[i][1][e]||e)}),m,m.exports,e,t,a,n)}return a[i].exports}for(var r=!1,i=0;i<n.length;i++)s(n[i]);return s}({1:[function(e,t,a){"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;a.assign=function(e){for(var t,a,n=Array.prototype.slice.call(arguments,1);n.length;){var s=n.shift();if(s){if("object"!=typeof s)throw new TypeError(s+"must be non-object");for(var r in s)t=s,a=r,Object.prototype.hasOwnProperty.call(t,a)&&(e[r]=s[r])}}return e},a.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var s={arraySet:function(e,t,a,n,s){if(t.subarray&&e.subarray)e.set(t.subarray(a,a+n),s);else for(var r=0;r<n;r++)e[s+r]=t[a+r]},flattenChunks:function(e){var t,a,n,s,r,i;for(t=n=0,a=e.length;t<a;t++)n+=e[t].length;for(i=new Uint8Array(n),t=s=0,a=e.length;t<a;t++)r=e[t],i.set(r,s),s+=r.length;return i}},r={arraySet:function(e,t,a,n,s){for(var r=0;r<n;r++)e[s+r]=t[a+r]},flattenChunks:function(e){return[].concat.apply([],e)}};a.setTyped=function(e){e?(a.Buf8=Uint8Array,a.Buf16=Uint16Array,a.Buf32=Int32Array,a.assign(a,s)):(a.Buf8=Array,a.Buf16=Array,a.Buf32=Array,a.assign(a,r))},a.setTyped(n)},{}],2:[function(e,t,a){"use strict";var n=e("./common"),s=!0,r=!0;try{String.fromCharCode.apply(null,[0])}catch(e){s=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){r=!1}for(var i=new n.Buf8(256),p=0;p<256;p++)i[p]=252<=p?6:248<=p?5:240<=p?4:224<=p?3:192<=p?2:1;function o(e,t){if(t<65534&&(e.subarray&&r||!e.subarray&&s))return String.fromCharCode.apply(null,n.shrinkBuf(e,t));for(var a="",i=0;i<t;i++)a+=String.fromCharCode(e[i]);return a}i[254]=i[254]=1,a.string2buf=function(e){var t,a,s,r,i,p=e.length,o=0;for(r=0;r<p;r++)55296==(64512&(a=e.charCodeAt(r)))&&r+1<p&&56320==(64512&(s=e.charCodeAt(r+1)))&&(a=65536+(a-55296<<10)+(s-56320),r++),o+=a<128?1:a<2048?2:a<65536?3:4;for(t=new n.Buf8(o),r=i=0;i<o;r++)55296==(64512&(a=e.charCodeAt(r)))&&r+1<p&&56320==(64512&(s=e.charCodeAt(r+1)))&&(a=65536+(a-55296<<10)+(s-56320),r++),a<128?t[i++]=a:(a<2048?t[i++]=192|a>>>6:(a<65536?t[i++]=224|a>>>12:(t[i++]=240|a>>>18,t[i++]=128|a>>>12&63),t[i++]=128|a>>>6&63),t[i++]=128|63&a);return t},a.buf2binstring=function(e){return o(e,e.length)},a.binstring2buf=function(e){for(var t=new n.Buf8(e.length),a=0,s=t.length;a<s;a++)t[a]=e.charCodeAt(a);return t},a.buf2string=function(e,t){var a,n,s,r,p=t||e.length,m=new Array(2*p);for(a=n=0;a<p;)if((s=e[a++])<128)m[n++]=s;else if(4<(r=i[s]))m[n++]=65533,a+=r-1;else{for(s&=2===r?31:3===r?15:7;1<r&&a<p;)s=s<<6|63&e[a++],r--;1<r?m[n++]=65533:s<65536?m[n++]=s:(s-=65536,m[n++]=55296|s>>10&1023,m[n++]=56320|1023&s)}return o(m,n)},a.utf8border=function(e,t){var a;for((t=t||e.length)>e.length&&(t=e.length),a=t-1;0<=a&&128==(192&e[a]);)a--;return a<0||0===a?t:a+i[e[a]]>t?a:t}},{"./common":1}],3:[function(e,t,a){"use strict";t.exports=function(e,t,a,n){for(var s=65535&e|0,r=e>>>16&65535|0,i=0;0!==a;){for(a-=i=2e3<a?2e3:a;r=r+(s=s+t[n++]|0)|0,--i;);s%=65521,r%=65521}return s|r<<16|0}},{}],4:[function(e,t,a){"use strict";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],5:[function(e,t,a){"use strict";var n=function(){for(var e,t=[],a=0;a<256;a++){e=a;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[a]=e}return t}();t.exports=function(e,t,a,s){var r=n,i=s+a;e^=-1;for(var p=s;p<i;p++)e=e>>>8^r[255&(e^t[p])];return-1^e}},{}],6:[function(e,t,a){"use strict";t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],7:[function(e,t,a){"use strict";t.exports=function(e,t){var a,n,s,r,i,p,o,m,d,y,c,l,g,u,h,f,_,b,v,w,P,S,k,I,M;a=e.state,n=e.next_in,I=e.input,s=n+(e.avail_in-5),r=e.next_out,M=e.output,i=r-(t-e.avail_out),p=r+(e.avail_out-257),o=a.dmax,m=a.wsize,d=a.whave,y=a.wnext,c=a.window,l=a.hold,g=a.bits,u=a.lencode,h=a.distcode,f=(1<<a.lenbits)-1,_=(1<<a.distbits)-1;e:do{g<15&&(l+=I[n++]<<g,g+=8,l+=I[n++]<<g,g+=8),b=u[l&f];t:for(;;){if(l>>>=v=b>>>24,g-=v,0==(v=b>>>16&255))M[r++]=65535&b;else{if(!(16&v)){if(0==(64&v)){b=u[(65535&b)+(l&(1<<v)-1)];continue t}if(32&v){a.mode=12;break e}e.msg="invalid literal/length code",a.mode=30;break e}w=65535&b,(v&=15)&&(g<v&&(l+=I[n++]<<g,g+=8),w+=l&(1<<v)-1,l>>>=v,g-=v),g<15&&(l+=I[n++]<<g,g+=8,l+=I[n++]<<g,g+=8),b=h[l&_];a:for(;;){if(l>>>=v=b>>>24,g-=v,!(16&(v=b>>>16&255))){if(0==(64&v)){b=h[(65535&b)+(l&(1<<v)-1)];continue a}e.msg="invalid distance code",a.mode=30;break e}if(P=65535&b,g<(v&=15)&&(l+=I[n++]<<g,(g+=8)<v&&(l+=I[n++]<<g,g+=8)),o<(P+=l&(1<<v)-1)){e.msg="invalid distance too far back",a.mode=30;break e}if(l>>>=v,g-=v,(v=r-i)<P){if(d<(v=P-v)&&a.sane){e.msg="invalid distance too far back",a.mode=30;break e}if(k=c,(S=0)===y){if(S+=m-v,v<w){for(w-=v;M[r++]=c[S++],--v;);S=r-P,k=M}}else if(y<v){if(S+=m+y-v,(v-=y)<w){for(w-=v;M[r++]=c[S++],--v;);if(S=0,y<w){for(w-=v=y;M[r++]=c[S++],--v;);S=r-P,k=M}}}else if(S+=y-v,v<w){for(w-=v;M[r++]=c[S++],--v;);S=r-P,k=M}for(;2<w;)M[r++]=k[S++],M[r++]=k[S++],M[r++]=k[S++],w-=3;w&&(M[r++]=k[S++],1<w&&(M[r++]=k[S++]))}else{for(S=r-P;M[r++]=M[S++],M[r++]=M[S++],M[r++]=M[S++],2<(w-=3););w&&(M[r++]=M[S++],1<w&&(M[r++]=M[S++]))}break}}break}}while(n<s&&r<p);n-=w=g>>3,l&=(1<<(g-=w<<3))-1,e.next_in=n,e.next_out=r,e.avail_in=n<s?s-n+5:5-(n-s),e.avail_out=r<p?p-r+257:257-(r-p),a.hold=l,a.bits=g}},{}],8:[function(e,t,a){"use strict";var n=e("../utils/common"),s=e("./adler32"),r=e("./crc32"),i=e("./inffast"),p=e("./inftrees"),o=-2;function m(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function d(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function y(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new n.Buf32(852),t.distcode=t.distdyn=new n.Buf32(592),t.sane=1,t.back=-1,0):o}function c(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,y(e)):o}function l(e,t){var a,n;return e&&e.state?(n=e.state,t<0?(a=0,t=-t):(a=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15<t)?o:(null!==n.window&&n.wbits!==t&&(n.window=null),n.wrap=a,n.wbits=t,c(e))):o}function g(e,t){var a,n;return e?(n=new d,(e.state=n).window=null,0!==(a=l(e,t))&&(e.state=null),a):o}var u,h,f=!0;function _(e){if(f){var t;for(u=new n.Buf32(512),h=new n.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(p(1,e.lens,0,288,u,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;p(2,e.lens,0,32,h,0,e.work,{bits:5}),f=!1}e.lencode=u,e.lenbits=9,e.distcode=h,e.distbits=5}function b(e,t,a,s){var r,i=e.state;return null===i.window&&(i.wsize=1<<i.wbits,i.wnext=0,i.whave=0,i.window=new n.Buf8(i.wsize)),s>=i.wsize?(n.arraySet(i.window,t,a-i.wsize,i.wsize,0),i.wnext=0,i.whave=i.wsize):(s<(r=i.wsize-i.wnext)&&(r=s),n.arraySet(i.window,t,a-s,r,i.wnext),(s-=r)?(n.arraySet(i.window,t,a-s,s,0),i.wnext=s,i.whave=i.wsize):(i.wnext+=r,i.wnext===i.wsize&&(i.wnext=0),i.whave<i.wsize&&(i.whave+=r))),0}a.inflateReset=c,a.inflateReset2=l,a.inflateResetKeep=y,a.inflateInit=function(e){return g(e,15)},a.inflateInit2=g,a.inflate=function(e,t){var a,d,y,c,l,g,u,h,f,v,w,P,S,k,I,M,C,A,T,D,B,R,V,U,E=0,x=new n.Buf8(4),F=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return o;12===(a=e.state).mode&&(a.mode=13),l=e.next_out,y=e.output,u=e.avail_out,c=e.next_in,d=e.input,g=e.avail_in,h=a.hold,f=a.bits,v=g,w=u,R=0;e:for(;;)switch(a.mode){case 1:if(0===a.wrap){a.mode=13;break}for(;f<16;){if(0===g)break e;g--,h+=d[c++]<<f,f+=8}if(2&a.wrap&&35615===h){x[a.check=0]=255&h,x[1]=h>>>8&255,a.check=r(a.check,x,2,0),f=h=0,a.mode=2;break}if(a.flags=0,a.head&&(a.head.done=!1),!(1&a.wrap)||(((255&h)<<8)+(h>>8))%31){e.msg="incorrect header check",a.mode=30;break}if(8!=(15&h)){e.msg="unknown compression method",a.mode=30;break}if(f-=4,B=8+(15&(h>>>=4)),0===a.wbits)a.wbits=B;else if(B>a.wbits){e.msg="invalid window size",a.mode=30;break}a.dmax=1<<B,e.adler=a.check=1,a.mode=512&h?10:12,f=h=0;break;case 2:for(;f<16;){if(0===g)break e;g--,h+=d[c++]<<f,f+=8}if(a.flags=h,8!=(255&a.flags)){e.msg="unknown compression method",a.mode=30;break}if(57344&a.flags){e.msg="unknown header flags set",a.mode=30;break}a.head&&(a.head.text=h>>8&1),512&a.flags&&(x[0]=255&h,x[1]=h>>>8&255,a.check=r(a.check,x,2,0)),f=h=0,a.mode=3;case 3:for(;f<32;){if(0===g)break e;g--,h+=d[c++]<<f,f+=8}a.head&&(a.head.time=h),512&a.flags&&(x[0]=255&h,x[1]=h>>>8&255,x[2]=h>>>16&255,x[3]=h>>>24&255,a.check=r(a.check,x,4,0)),f=h=0,a.mode=4;case 4:for(;f<16;){if(0===g)break e;g--,h+=d[c++]<<f,f+=8}a.head&&(a.head.xflags=255&h,a.head.os=h>>8),512&a.flags&&(x[0]=255&h,x[1]=h>>>8&255,a.check=r(a.check,x,2,0)),f=h=0,a.mode=5;case 5:if(1024&a.flags){for(;f<16;){if(0===g)break e;g--,h+=d[c++]<<f,f+=8}a.length=h,a.head&&(a.head.extra_len=h),512&a.flags&&(x[0]=255&h,x[1]=h>>>8&255,a.check=r(a.check,x,2,0)),f=h=0}else a.head&&(a.head.extra=null);a.mode=6;case 6:if(1024&a.flags&&(g<(P=a.length)&&(P=g),P&&(a.head&&(B=a.head.extra_len-a.length,a.head.extra||(a.head.extra=new Array(a.head.extra_len)),n.arraySet(a.head.extra,d,c,P,B)),512&a.flags&&(a.check=r(a.check,d,P,c)),g-=P,c+=P,a.length-=P),a.length))break e;a.length=0,a.mode=7;case 7:if(2048&a.flags){if(0===g)break e;for(P=0;B=d[c+P++],a.head&&B&&a.length<65536&&(a.head.name+=String.fromCharCode(B)),B&&P<g;);if(512&a.flags&&(a.check=r(a.check,d,P,c)),g-=P,c+=P,B)break e}else a.head&&(a.head.name=null);a.length=0,a.mode=8;case 8:if(4096&a.flags){if(0===g)break e;for(P=0;B=d[c+P++],a.head&&B&&a.length<65536&&(a.head.comment+=String.fromCharCode(B)),B&&P<g;);if(512&a.flags&&(a.check=r(a.check,d,P,c)),g-=P,c+=P,B)break e}else a.head&&(a.head.comment=null);a.mode=9;case 9:if(512&a.flags){for(;f<16;){if(0===g)break e;g--,h+=d[c++]<<f,f+=8}if(h!==(65535&a.check)){e.msg="header crc mismatch",a.mode=30;break}f=h=0}a.head&&(a.head.hcrc=a.flags>>9&1,a.head.done=!0),e.adler=a.check=0,a.mode=12;break;case 10:for(;f<32;){if(0===g)break e;g--,h+=d[c++]<<f,f+=8}e.adler=a.check=m(h),f=h=0,a.mode=11;case 11:if(0===a.havedict)return e.next_out=l,e.avail_out=u,e.next_in=c,e.avail_in=g,a.hold=h,a.bits=f,2;e.adler=a.check=1,a.mode=12;case 12:if(5===t||6===t)break e;case 13:if(a.last){h>>>=7&f,f-=7&f,a.mode=27;break}for(;f<3;){if(0===g)break e;g--,h+=d[c++]<<f,f+=8}switch(a.last=1&h,f-=1,3&(h>>>=1)){case 0:a.mode=14;break;case 1:if(_(a),a.mode=20,6!==t)break;h>>>=2,f-=2;break e;case 2:a.mode=17;break;case 3:e.msg="invalid block type",a.mode=30}h>>>=2,f-=2;break;case 14:for(h>>>=7&f,f-=7&f;f<32;){if(0===g)break e;g--,h+=d[c++]<<f,f+=8}if((65535&h)!=(h>>>16^65535)){e.msg="invalid stored block lengths",a.mode=30;break}if(a.length=65535&h,f=h=0,a.mode=15,6===t)break e;case 15:a.mode=16;case 16:if(P=a.length){if(g<P&&(P=g),u<P&&(P=u),0===P)break e;n.arraySet(y,d,c,P,l),g-=P,c+=P,u-=P,l+=P,a.length-=P;break}a.mode=12;break;case 17:for(;f<14;){if(0===g)break e;g--,h+=d[c++]<<f,f+=8}if(a.nlen=257+(31&h),h>>>=5,f-=5,a.ndist=1+(31&h),h>>>=5,f-=5,a.ncode=4+(15&h),h>>>=4,f-=4,286<a.nlen||30<a.ndist){e.msg="too many length or distance symbols",a.mode=30;break}a.have=0,a.mode=18;case 18:for(;a.have<a.ncode;){for(;f<3;){if(0===g)break e;g--,h+=d[c++]<<f,f+=8}a.lens[F[a.have++]]=7&h,h>>>=3,f-=3}for(;a.have<19;)a.lens[F[a.have++]]=0;if(a.lencode=a.lendyn,a.lenbits=7,V={bits:a.lenbits},R=p(0,a.lens,0,19,a.lencode,0,a.work,V),a.lenbits=V.bits,R){e.msg="invalid code lengths set",a.mode=30;break}a.have=0,a.mode=19;case 19:for(;a.have<a.nlen+a.ndist;){for(;M=(E=a.lencode[h&(1<<a.lenbits)-1])>>>16&255,C=65535&E,!((I=E>>>24)<=f);){if(0===g)break e;g--,h+=d[c++]<<f,f+=8}if(C<16)h>>>=I,f-=I,a.lens[a.have++]=C;else{if(16===C){for(U=I+2;f<U;){if(0===g)break e;g--,h+=d[c++]<<f,f+=8}if(h>>>=I,f-=I,0===a.have){e.msg="invalid bit length repeat",a.mode=30;break}B=a.lens[a.have-1],P=3+(3&h),h>>>=2,f-=2}else if(17===C){for(U=I+3;f<U;){if(0===g)break e;g--,h+=d[c++]<<f,f+=8}f-=I,B=0,P=3+(7&(h>>>=I)),h>>>=3,f-=3}else{for(U=I+7;f<U;){if(0===g)break e;g--,h+=d[c++]<<f,f+=8}f-=I,B=0,P=11+(127&(h>>>=I)),h>>>=7,f-=7}if(a.have+P>a.nlen+a.ndist){e.msg="invalid bit length repeat",a.mode=30;break}for(;P--;)a.lens[a.have++]=B}}if(30===a.mode)break;if(0===a.lens[256]){e.msg="invalid code -- missing end-of-block",a.mode=30;break}if(a.lenbits=9,V={bits:a.lenbits},R=p(1,a.lens,0,a.nlen,a.lencode,0,a.work,V),a.lenbits=V.bits,R){e.msg="invalid literal/lengths set",a.mode=30;break}if(a.distbits=6,a.distcode=a.distdyn,V={bits:a.distbits},R=p(2,a.lens,a.nlen,a.ndist,a.distcode,0,a.work,V),a.distbits=V.bits,R){e.msg="invalid distances set",a.mode=30;break}if(a.mode=20,6===t)break e;case 20:a.mode=21;case 21:if(6<=g&&258<=u){e.next_out=l,e.avail_out=u,e.next_in=c,e.avail_in=g,a.hold=h,a.bits=f,i(e,w),l=e.next_out,y=e.output,u=e.avail_out,c=e.next_in,d=e.input,g=e.avail_in,h=a.hold,f=a.bits,12===a.mode&&(a.back=-1);break}for(a.back=0;M=(E=a.lencode[h&(1<<a.lenbits)-1])>>>16&255,C=65535&E,!((I=E>>>24)<=f);){if(0===g)break e;g--,h+=d[c++]<<f,f+=8}if(M&&0==(240&M)){for(A=I,T=M,D=C;M=(E=a.lencode[D+((h&(1<<A+T)-1)>>A)])>>>16&255,C=65535&E,!(A+(I=E>>>24)<=f);){if(0===g)break e;g--,h+=d[c++]<<f,f+=8}h>>>=A,f-=A,a.back+=A}if(h>>>=I,f-=I,a.back+=I,a.length=C,0===M){a.mode=26;break}if(32&M){a.back=-1,a.mode=12;break}if(64&M){e.msg="invalid literal/length code",a.mode=30;break}a.extra=15&M,a.mode=22;case 22:if(a.extra){for(U=a.extra;f<U;){if(0===g)break e;g--,h+=d[c++]<<f,f+=8}a.length+=h&(1<<a.extra)-1,h>>>=a.extra,f-=a.extra,a.back+=a.extra}a.was=a.length,a.mode=23;case 23:for(;M=(E=a.distcode[h&(1<<a.distbits)-1])>>>16&255,C=65535&E,!((I=E>>>24)<=f);){if(0===g)break e;g--,h+=d[c++]<<f,f+=8}if(0==(240&M)){for(A=I,T=M,D=C;M=(E=a.distcode[D+((h&(1<<A+T)-1)>>A)])>>>16&255,C=65535&E,!(A+(I=E>>>24)<=f);){if(0===g)break e;g--,h+=d[c++]<<f,f+=8}h>>>=A,f-=A,a.back+=A}if(h>>>=I,f-=I,a.back+=I,64&M){e.msg="invalid distance code",a.mode=30;break}a.offset=C,a.extra=15&M,a.mode=24;case 24:if(a.extra){for(U=a.extra;f<U;){if(0===g)break e;g--,h+=d[c++]<<f,f+=8}a.offset+=h&(1<<a.extra)-1,h>>>=a.extra,f-=a.extra,a.back+=a.extra}if(a.offset>a.dmax){e.msg="invalid distance too far back",a.mode=30;break}a.mode=25;case 25:if(0===u)break e;if(P=w-u,a.offset>P){if((P=a.offset-P)>a.whave&&a.sane){e.msg="invalid distance too far back",a.mode=30;break}P>a.wnext?(P-=a.wnext,S=a.wsize-P):S=a.wnext-P,P>a.length&&(P=a.length),k=a.window}else k=y,S=l-a.offset,P=a.length;for(u<P&&(P=u),u-=P,a.length-=P;y[l++]=k[S++],--P;);0===a.length&&(a.mode=21);break;case 26:if(0===u)break e;y[l++]=a.length,u--,a.mode=21;break;case 27:if(a.wrap){for(;f<32;){if(0===g)break e;g--,h|=d[c++]<<f,f+=8}if(w-=u,e.total_out+=w,a.total+=w,w&&(e.adler=a.check=a.flags?r(a.check,y,w,l-w):s(a.check,y,w,l-w)),w=u,(a.flags?h:m(h))!==a.check){e.msg="incorrect data check",a.mode=30;break}f=h=0}a.mode=28;case 28:if(a.wrap&&a.flags){for(;f<32;){if(0===g)break e;g--,h+=d[c++]<<f,f+=8}if(h!==(4294967295&a.total)){e.msg="incorrect length check",a.mode=30;break}f=h=0}a.mode=29;case 29:R=1;break e;case 30:R=-3;break e;case 31:return-4;case 32:default:return o}return e.next_out=l,e.avail_out=u,e.next_in=c,e.avail_in=g,a.hold=h,a.bits=f,(a.wsize||w!==e.avail_out&&a.mode<30&&(a.mode<27||4!==t))&&b(e,e.output,e.next_out,w-e.avail_out)?(a.mode=31,-4):(v-=e.avail_in,w-=e.avail_out,e.total_in+=v,e.total_out+=w,a.total+=w,a.wrap&&w&&(e.adler=a.check=a.flags?r(a.check,y,w,e.next_out-w):s(a.check,y,w,e.next_out-w)),e.data_type=a.bits+(a.last?64:0)+(12===a.mode?128:0)+(20===a.mode||15===a.mode?256:0),(0===v&&0===w||4===t)&&0===R&&(R=-5),R)},a.inflateEnd=function(e){if(!e||!e.state)return o;var t=e.state;return t.window&&(t.window=null),e.state=null,0},a.inflateGetHeader=function(e,t){var a;return e&&e.state?0==(2&(a=e.state).wrap)?o:((a.head=t).done=!1,0):o},a.inflateSetDictionary=function(e,t){var a,n=t.length;return e&&e.state?0!==(a=e.state).wrap&&11!==a.mode?o:11===a.mode&&s(1,t,n,0)!==a.check?-3:b(e,t,n,n)?(a.mode=31,-4):(a.havedict=1,0):o},a.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":1,"./adler32":3,"./crc32":5,"./inffast":7,"./inftrees":9}],9:[function(e,t,a){"use strict";var n=e("../utils/common"),s=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],r=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],i=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],p=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(e,t,a,o,m,d,y,c){var l,g,u,h,f,_,b,v,w,P=c.bits,S=0,k=0,I=0,M=0,C=0,A=0,T=0,D=0,B=0,R=0,V=null,U=0,E=new n.Buf16(16),x=new n.Buf16(16),F=null,L=0;for(S=0;S<=15;S++)E[S]=0;for(k=0;k<o;k++)E[t[a+k]]++;for(C=P,M=15;1<=M&&0===E[M];M--);if(M<C&&(C=M),0===M)return m[d++]=20971520,m[d++]=20971520,c.bits=1,0;for(I=1;I<M&&0===E[I];I++);for(C<I&&(C=I),S=D=1;S<=15;S++)if(D<<=1,(D-=E[S])<0)return-1;if(0<D&&(0===e||1!==M))return-1;for(x[1]=0,S=1;S<15;S++)x[S+1]=x[S]+E[S];for(k=0;k<o;k++)0!==t[a+k]&&(y[x[t[a+k]]++]=k);if(0===e?(V=F=y,_=19):1===e?(V=s,U-=257,F=r,L-=257,_=256):(V=i,F=p,_=-1),S=I,f=d,T=k=R=0,u=-1,h=(B=1<<(A=C))-1,1===e&&852<B||2===e&&592<B)return 1;for(;;){for(b=S-T,y[k]<_?(v=0,w=y[k]):y[k]>_?(v=F[L+y[k]],w=V[U+y[k]]):(v=96,w=0),l=1<<S-T,I=g=1<<A;m[f+(R>>T)+(g-=l)]=b<<24|v<<16|w|0,0!==g;);for(l=1<<S-1;R&l;)l>>=1;if(0!==l?(R&=l-1,R+=l):R=0,k++,0==--E[S]){if(S===M)break;S=t[a+y[k]]}if(C<S&&(R&h)!==u){for(0===T&&(T=C),f+=I,D=1<<(A=S-T);A+T<M&&!((D-=E[A+T])<=0);)A++,D<<=1;if(B+=1<<A,1===e&&852<B||2===e&&592<B)return 1;m[u=R&h]=C<<24|A<<16|f-d|0}}return 0!==R&&(m[f+R]=S-T<<24|64<<16|0),c.bits=C,0}},{"../utils/common":1}],10:[function(e,t,a){"use strict";t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],11:[function(e,t,a){"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],"/lib/inflate.js":[function(e,t,a){"use strict";var n=e("./zlib/inflate"),s=e("./utils/common"),r=e("./utils/strings"),i=e("./zlib/constants"),p=e("./zlib/messages"),o=e("./zlib/zstream"),m=e("./zlib/gzheader"),d=Object.prototype.toString;function y(e){if(!(this instanceof y))return new y(e);this.options=s.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&0<=t.windowBits&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(0<=t.windowBits&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),15<t.windowBits&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new o,this.strm.avail_out=0;var a=n.inflateInit2(this.strm,t.windowBits);if(a!==i.Z_OK)throw new Error(p[a]);if(this.header=new m,n.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=r.string2buf(t.dictionary):"[object ArrayBuffer]"===d.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(a=n.inflateSetDictionary(this.strm,t.dictionary))!==i.Z_OK))throw new Error(p[a])}function c(e,t){var a=new y(t);if(a.push(e,!0),a.err)throw a.msg||p[a.err];return a.result}y.prototype.push=function(e,t){var a,p,o,m,y,c=this.strm,l=this.options.chunkSize,g=this.options.dictionary,u=!1;if(this.ended)return!1;p=t===~~t?t:!0===t?i.Z_FINISH:i.Z_NO_FLUSH,"string"==typeof e?c.input=r.binstring2buf(e):"[object ArrayBuffer]"===d.call(e)?c.input=new Uint8Array(e):c.input=e,c.next_in=0,c.avail_in=c.input.length;do{if(0===c.avail_out&&(c.output=new s.Buf8(l),c.next_out=0,c.avail_out=l),(a=n.inflate(c,i.Z_NO_FLUSH))===i.Z_NEED_DICT&&g&&(a=n.inflateSetDictionary(this.strm,g)),a===i.Z_BUF_ERROR&&!0===u&&(a=i.Z_OK,u=!1),a!==i.Z_STREAM_END&&a!==i.Z_OK)return this.onEnd(a),!(this.ended=!0);c.next_out&&(0!==c.avail_out&&a!==i.Z_STREAM_END&&(0!==c.avail_in||p!==i.Z_FINISH&&p!==i.Z_SYNC_FLUSH)||("string"===this.options.to?(o=r.utf8border(c.output,c.next_out),m=c.next_out-o,y=r.buf2string(c.output,o),c.next_out=m,c.avail_out=l-m,m&&s.arraySet(c.output,c.output,o,m,0),this.onData(y)):this.onData(s.shrinkBuf(c.output,c.next_out)))),0===c.avail_in&&0===c.avail_out&&(u=!0)}while((0<c.avail_in||0===c.avail_out)&&a!==i.Z_STREAM_END);return a===i.Z_STREAM_END&&(p=i.Z_FINISH),p===i.Z_FINISH?(a=n.inflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===i.Z_OK):p!==i.Z_SYNC_FLUSH||(this.onEnd(i.Z_OK),!(c.avail_out=0))},y.prototype.onData=function(e){this.chunks.push(e)},y.prototype.onEnd=function(e){e===i.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=s.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},a.Inflate=y,a.inflate=c,a.inflateRaw=function(e,t){return(t=t||{}).raw=!0,c(e,t)},a.ungzip=c},{"./utils/common":1,"./utils/strings":2,"./zlib/constants":4,"./zlib/gzheader":6,"./zlib/inflate":8,"./zlib/messages":10,"./zlib/zstream":11}]},{},[])("/lib/inflate.js")},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=a(0);t.default=class{sha1Hash(e){return this.performTaskWorker("sha1-hash",e)}sha256Hash(e){return this.performTaskWorker("sha256-hash",e)}pbkdf2(e,t,a){return this.performTaskWorker("pbkdf2",e,t,a)}aesEncrypt(e,t,a){return this.performTaskWorker("aes-encrypt",n.convertToArrayBuffer(e),n.convertToArrayBuffer(t),n.convertToArrayBuffer(a))}aesDecrypt(e,t,a){return this.performTaskWorker("aes-decrypt",e,t,a).then(e=>n.convertToArrayBuffer(e))}rsaEncrypt(e,t){return this.performTaskWorker("rsa-encrypt",e,t)}factorize(e){return e=n.convertToByteArray(e),this.performTaskWorker("factorize",e)}modPow(e,t,a){return this.performTaskWorker("mod-pow",e,t,a)}gzipUncompress(e,t){return this.performTaskWorker("unzip",e,t)}}},function(e,t,a){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Obfuscation=void 0;const s=n(a(16)),r=a(13),i=n(a(25)),p=a(4),o=a(0);class m{init(e){const t=new Uint8Array(64);for(t.randomize();;){let e=t[3]<<24|t[2]<<16|t[1]<<8|t[0],a=t[7]<<24|t[6]<<16|t[5]<<8|t[4];if(239!=t[0]&&1145128264!=e&&1414745936!=e&&542393671!=e&&1230262351!=e&&4008636142!=e&&3722304989!=e&&0!=a)break;t.randomize()}const a=t.slice().reverse();let n=t.slice(8,40),s=t.slice(40,56),i=a.slice(8,40),p=a.slice(40,56);this.encNew=new r.CTR(n,s),this.decNew=new r.CTR(i,p),t.set(e.obfuscateTag,56);const o=this.encode(t);return t.set(o.slice(56,64),56),t}encode(e){let t=this.encNew.encrypt(e);return new Uint8Array(o.bytesFromWordss(t))}decode(e){let t=this.decNew.decrypt(e);return new Uint8Array(o.bytesFromWordss(t))}}t.Obfuscation=m;class d extends s.default{constructor(e,t){super(e,t),this.pending=[],this.connected=!1,this.transport="websocket",this.obfuscation=new m,this.codec=i.default,this.connect=()=>{this.ws&&(this.ws.removeEventListener("open",this.handleOpen),this.ws.removeEventListener("close",this.handleClose),this.ws.removeEventListener("message",this.handleMessage),this.ws.close(1e3)),this.ws=new WebSocket(this.url,"binary"),this.ws.binaryType="arraybuffer",this.ws.addEventListener("open",this.handleOpen),this.ws.addEventListener("close",this.handleClose),this.ws.addEventListener("message",this.handleMessage)},this.handleOpen=()=>{this.log("opened"),this.log.debug("sending init packet"),this.ws.send(this.obfuscation.init(this.codec)),this.connected=!0,this.releasePending()},this.handleClose=e=>{this.log("closed",e,this.pending),this.connected=!1,this.log("trying to reconnect..."),this.connect();for(let e of this.pending)e.bodySent&&(e.bodySent=!1);this.networker&&this.ws.addEventListener("open",()=>{this.networker.resend(),this.networker.cleanupSent()},{once:!0})},this.handleMessage=e=>{this.log.debug("<-","handleMessage",e);let t=this.obfuscation.decode(new Uint8Array(e.data));if(t=this.codec.readPacket(t),this.networker)return this.log.debug("redirecting to networker"),this.networker.parseResponse(t).then(e=>{this.log.debug("redirecting to networker response:",e),this.networker.processMessage(e.response,e.messageID,e.sessionID)});let a=this.pending.shift();if(!a)return this.log.debug("no pending for res:",t.hex);a.resolve(t)},this.send=e=>{if(this.log.debug("-> body length to pending:",e.length),!this.networker){let t=new Promise((t,a)=>{this.pending.push({resolve:t,reject:a,body:e})});return this.releasePending(),t}this.pending.push({body:e}),this.releasePending()},this.log=p.logger("WS-"+e,p.LogLevels.log),this.log("constructor"),this.connect()}releasePending(){if(!this.connected)return;for(let e=this.pending.length-1;e>=0;--e){const t=this.pending[e],{body:a,bodySent:n}=t;if(a&&!n){const n=this.codec.encodePacket(a),s=this.obfuscation.encode(n);this.log.debug("-> body length to send:",s.length),this.ws.send(s),t.resolve?t.bodySent=!0:this.pending.splice(e,1)}}}}t.default=d},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});a(0);class n{constructor(){this.tag=238,this.obfuscateTag=new Uint8Array([this.tag,this.tag,this.tag,this.tag])}encodePacket(e){let t=e.byteLength;return new Uint8Array(new Uint32Array([t]).buffer).concat(e)}readPacket(e){let t=e[0]|e[1]<<8|e[2]<<16|e[3]<<24;return e.slice(4,4+t)}}t.default=new n},function(e,t,a){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.telegramMeWebService=t.TelegramMeWebService=void 0;const s=n(a(2)),r=a(3);class i{constructor(){this.disabled=r.Modes.test||-1==r.App.domains.indexOf(location.hostname)||"http:"!=location.protocol&&"https:"!=location.protocol||"https:"==location.protocol&&"web.telegram.org"!=location.hostname}setAuthorized(e){if(this.disabled)return!1;s.default.get("tgme_sync").then(t=>{var a=Date.now()/1e3;if(e&&t&&t.canRedirect==e&&t.ts+86400>a)return!1;s.default.set({tgme_sync:{canRedirect:e,ts:a}}),["//telegram.me/_websync_?authed="+(e?"1":"0"),"//t.me/_websync_?authed="+(e?"1":"0")].forEach(e=>{let t=document.createElement("script");t.onload=t.onerror=function(){t.remove()},t.src=e,document.body.appendChild(t)})})}}t.TelegramMeWebService=i,t.telegramMeWebService=new i},function(e,t,a){"use strict";var n=this&&this.__awaiter||function(e,t,a,n){return new(a||(a=Promise))((function(s,r){function i(e){try{o(n.next(e))}catch(e){r(e)}}function p(e){try{o(n.throw(e))}catch(e){r(e)}}function o(e){var t;e.done?s(e.value):(t=e.value,t instanceof a?t:new a((function(e){e(t)}))).then(i,p)}o((n=n.apply(e,t||[])).next())}))},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Authorizer=void 0;const r=a(8),i=s(a(9)),p=a(0),o=s(a(28)),m=s(a(15)),d=a(5),y=s(a(1)),c=a(4);class l{constructor(){this.cached={},this.log=c.logger("AUTHORIZER")}mtpSendPlainRequest(e,t){var a=t.byteLength,n=new r.TLSerialization;n.storeLongP(0,0,"auth_key_id"),n.storeLong(m.default.generateID(),"msg_id"),n.storeInt(a,"request_length");let s=n.getBytes(!0),p=new Uint8Array(s.byteLength+a);p.set(s),p.set(t,s.length);let o=i.default.chooseServer(e),d={code:406,type:"NETWORK_BAD_RESPONSE",transport:o};return this.log("mtpSendPlainRequest: creating requestPromise"),o.send(p).then(e=>{if(this.log("mtpSendPlainRequest: in good sector",e),!e||!e.byteLength)return Promise.reject(d);try{let t=new r.TLDeserialization(e,{mtproto:!0}),a=t.fetchLong("auth_key_id");0!=a&&this.log.error("auth_key_id != 0",a);let n=t.fetchLong("msg_id");0==n&&this.log.error("msg_id == 0",n);let s=t.fetchInt("msg_len");return s||this.log.error("no msg_len",s),t}catch(e){throw this.log.error("mtpSendPlainRequest: deserialization went bad",e),Object.assign(d,{originalError:e})}},e=>(e.message||e.type||(e=Object.assign(d,{originalError:e})),Promise.reject(e)))}mtpSendReqPQ(e){return n(this,void 0,void 0,(function*(){var t=new r.TLSerialization({mtproto:!0});t.storeMethod("req_pq_multi",{nonce:e.nonce}),o.default.prepare().then(()=>{}),this.log("Send req_pq",e.nonce.hex);try{var a=yield this.mtpSendPlainRequest(e.dcID,t.getBytes(!0))}catch(e){throw this.log.error("req_pq error",e.message),e}var n=a.fetchObject("ResPQ");if("resPQ"!=n._)throw new Error("[MT] resPQ response invalid: "+n._);if(!p.bytesCmp(e.nonce,n.nonce))throw this.log.error(e.nonce,n.nonce),new Error("[MT] resPQ nonce mismatch");e.serverNonce=new Uint8Array(n.server_nonce),e.pq=n.pq,e.fingerprints=n.server_public_key_fingerprints,this.log("Got ResPQ",p.bytesToHex(e.serverNonce),p.bytesToHex(e.pq),e.fingerprints);let s=yield o.default.select(e.fingerprints);if(!s)throw new Error("[MT] No public key found");e.publicKey=s,this.log("PQ factorization start",e.pq);try{var i=yield y.default.factorize(e.pq)}catch(e){throw this.log.error("worker error factorize",e),e}return e.p=i[0],e.q=i[1],this.log("PQ factorization done",i),this.mtpSendReqDhParams(e)}))}mtpSendReqDhParams(e){return n(this,void 0,void 0,(function*(){e.newNonce=new Uint8Array(32).randomize();let t={_:"p_q_inner_data",pq:e.pq,p:e.p,q:e.q,nonce:e.nonce,server_nonce:e.serverNonce,new_nonce:e.newNonce},a=new r.TLSerialization({mtproto:!0});a.storeObject(t,"P_Q_inner_data","DECRYPTED_DATA");let n=a.getBytes(!0),s=(yield y.default.sha1Hash(n)).concat(n),i=yield y.default.rsaEncrypt(e.publicKey,s),o={nonce:e.nonce,server_nonce:e.serverNonce,p:e.p,q:e.q,public_key_fingerprint:e.publicKey.fingerprint,encrypted_data:i};var m=new r.TLSerialization({mtproto:!0});m.storeMethod("req_DH_params",o);let d=m.getBytes(!0);this.log("Send req_DH_params",o);try{var c=yield this.mtpSendPlainRequest(e.dcID,d)}catch(e){throw this.log("Send req_DH_params FAIL!",e),e}var l=c.fetchObject("Server_DH_Params","RESPONSE");if(this.log("Sent req_DH_params, response:",l),"server_DH_params_fail"!=l._&&"server_DH_params_ok"!=l._)throw new Error("[MT] Server_DH_Params response invalid: "+l._);if(!p.bytesCmp(e.nonce,l.nonce))throw new Error("[MT] Server_DH_Params nonce mismatch");if(!p.bytesCmp(e.serverNonce,l.server_nonce))throw new Error("[MT] Server_DH_Params server_nonce mismatch");if("server_DH_params_fail"==l._){var g=(yield y.default.sha1Hash(e.newNonce)).slice(-16);if(!p.bytesCmp(g,l.new_nonce_hash))throw new Error("[MT] server_DH_params_fail new_nonce_hash mismatch");throw new Error("[MT] server_DH_params_fail")}try{yield this.mtpDecryptServerDhDataAnswer(e,l.encrypted_answer)}catch(e){throw this.log.error("mtpDecryptServerDhDataAnswer FAILED!",e),e}return this.mtpSendSetClientDhParams(e)}))}mtpDecryptServerDhDataAnswer(e,t){return n(this,void 0,void 0,(function*(){e.localTime=Date.now(),e.tmpAesKey=(yield y.default.sha1Hash(e.newNonce.concat(e.serverNonce))).concat((yield y.default.sha1Hash(e.serverNonce.concat(e.newNonce))).slice(0,12)),e.tmpAesIv=(yield y.default.sha1Hash(e.serverNonce.concat(e.newNonce))).slice(12).concat(yield y.default.sha1Hash(e.newNonce.concat(e.newNonce)),e.newNonce.slice(0,4));var a=new Uint8Array(yield y.default.aesDecrypt(t,e.tmpAesKey,e.tmpAesIv)),n=a.slice(0,20),s=a.slice(20),i=new r.TLDeserialization(s,{mtproto:!0}),o=i.fetchObject("Server_DH_inner_data");if("server_DH_inner_data"!=o._)throw new Error("[MT] server_DH_inner_data response invalid: "+o);if(!p.bytesCmp(e.nonce,o.nonce))throw new Error("[MT] server_DH_inner_data nonce mismatch");if(!p.bytesCmp(e.serverNonce,o.server_nonce))throw new Error("[MT] server_DH_inner_data serverNonce mismatch");this.log("Done decrypting answer"),e.g=o.g,e.dhPrime=o.dh_prime,e.gA=o.g_a,e.serverTime=o.server_time,e.retry=0,this.mtpVerifyDhParams(e.g,e.dhPrime,e.gA);var d=i.getOffset();if(!p.bytesCmp(n,yield y.default.sha1Hash(s.slice(0,d))))throw new Error("[MT] server_DH_inner_data SHA1-hash mismatch");m.default.applyServerTime(e.serverTime,e.localTime)}))}mtpVerifyDhParams(e,t,a){this.log("Verifying DH params");var n=p.bytesToHex(t);if(3!=e||"c71caeb9c6b1c9048e6c522f70f13f73980d40238e3e21c14934d037563d930f48198a0aa7c14058229493d22530f4dbfa336f6e0ac925139543aed44cce7c3720fd51f69458705ac68cd4fe6b6b13abdc9746512969328454f18faf8c595f642477fe96bb2a941d5bcd1d4ac8cc49880708fa9b378e3c4f3a9060bee67cf9a4a4a695811051907e162753b56b0f6b410dba74d8a84b2a14b3144e0ef1284754fd17ed950d5965b4b9dd46582db1178d169c6bc465b0d6ff9ca3928fef5b9ae4e418fc15e83ebea0f87fa9ff5eed70050ded2849f47bf959d956850ce929851f0d8115f635b105ee2e4e15d04b2454bf6f4fadf034b10403119cd8e3b92fcc5b"!==n)throw new Error("[MT] DH params are not verified: unknown dhPrime");this.log("dhPrime cmp OK");var s=new d.BigInteger(p.bytesToHex(a),16),r=new d.BigInteger(n,16);if(s.compareTo(d.BigInteger.ONE)<=0)throw new Error("[MT] DH params are not verified: gA <= 1");if(s.compareTo(r.subtract(d.BigInteger.ONE))>=0)throw new Error("[MT] DH params are not verified: gA >= dhPrime - 1");this.log("1 < gA < dhPrime-1 OK");var i=new d.BigInteger("");i.fromInt(2);var o=i.pow(1984);if(s.compareTo(o)<0)throw new Error("[MT] DH params are not verified: gA < 2^{2048-64}");if(s.compareTo(r.subtract(o))>=0)throw new Error("[MT] DH params are not verified: gA > dhPrime - 2^{2048-64}");return this.log("2^{2048-64} < gA < dhPrime-2^{2048-64} OK"),!0}mtpSendSetClientDhParams(e){return n(this,void 0,void 0,(function*(){var t=p.bytesFromHex(e.g.toString(16));e.b=new Array(256),e.b=[...new Uint8Array(e.b.length).randomize()];try{var a=yield y.default.modPow(t,e.b,e.dhPrime)}catch(e){throw e}var n=new r.TLSerialization({mtproto:!0});n.storeObject({_:"client_DH_inner_data",nonce:e.nonce,server_nonce:e.serverNonce,retry_id:[0,e.retry++],g_b:a},"Client_DH_Inner_Data");var s=(yield y.default.sha1Hash(n.getBuffer())).concat(n.getBytes()),i=yield y.default.aesEncrypt(s,e.tmpAesKey,e.tmpAesIv),o=new r.TLSerialization({mtproto:!0});o.storeMethod("set_client_DH_params",{nonce:e.nonce,server_nonce:e.serverNonce,encrypted_data:i}),this.log("Send set_client_DH_params");try{var m=yield this.mtpSendPlainRequest(e.dcID,o.getBytes(!0))}catch(e){throw e}let d=m.fetchObject("Set_client_DH_params_answer");if("dh_gen_ok"!=d._&&"dh_gen_retry"!=d._&&"dh_gen_fail"!=d._)throw new Error("[MT] Set_client_DH_params_answer response invalid: "+d._);if(!p.bytesCmp(e.nonce,d.nonce))throw new Error("[MT] Set_client_DH_params_answer nonce mismatch");if(!p.bytesCmp(e.serverNonce,d.server_nonce))throw new Error("[MT] Set_client_DH_params_answer server_nonce mismatch");try{var c=yield y.default.modPow(e.gA,e.b,e.dhPrime)}catch(e){throw c}let l=yield y.default.sha1Hash(c),g=l.slice(0,8),u=l.slice(-8);switch(this.log("Got Set_client_DH_params_answer",d._,c),d._){case"dh_gen_ok":var h=(yield y.default.sha1Hash(e.newNonce.concat([1],g))).slice(-16);if(!p.bytesCmp(h,d.new_nonce_hash1))throw new Error("[MT] Set_client_DH_params_answer new_nonce_hash1 mismatch");var f=p.bytesXor(e.newNonce.slice(0,8),e.serverNonce.slice(0,8));return this.log("Auth successfull!",u,c,f),e.authKeyID=u,e.authKey=c,e.serverSalt=f,e;case"dh_gen_retry":var _=(yield y.default.sha1Hash(e.newNonce.concat([2],g))).slice(-16);if(!p.bytesCmp(_,d.new_nonce_hash2))throw new Error("[MT] Set_client_DH_params_answer new_nonce_hash2 mismatch");return this.mtpSendSetClientDhParams(e);case"dh_gen_fail":var b=(yield y.default.sha1Hash(e.newNonce.concat([3],g))).slice(-16);if(!p.bytesCmp(b,d.new_nonce_hash3))throw new Error("[MT] Set_client_DH_params_answer new_nonce_hash3 mismatch");throw new Error("[MT] Set_client_DH_params_answer fail")}}))}auth(e){return n(this,void 0,void 0,(function*(){if(e in this.cached)return this.cached[e];let t=new Uint8Array(16).randomize();if(!i.default.chooseServer(e))return Promise.reject(new Error("[MT] No server found for dc "+e));try{let a=this.mtpSendReqPQ({dcID:e,nonce:t});return this.cached[e]=a,yield a}catch(t){throw delete this.cached[e],t}}))}}t.Authorizer=l,t.default=new l},function(e,t,a){"use strict";var n=this&&this.__awaiter||function(e,t,a,n){return new(a||(a=Promise))((function(s,r){function i(e){try{o(n.next(e))}catch(e){r(e)}}function p(e){try{o(n.throw(e))}catch(e){r(e)}}function o(e){var t;e.done?s(e.value):(t=e.value,t instanceof a?t:new a((function(e){e(t)}))).then(i,p)}o((n=n.apply(e,t||[])).next())}))},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RSAKeysManager=void 0;const r=a(8),i=a(0),p=s(a(1));class o{constructor(){this.publisKeysHex=[{modulus:"c150023e2f70db7985ded064759cfecf0af328e69a41daf4d6f01b538135a6f91f8f8b2a0ec9ba9720ce352efcf6c5680ffc424bd634864902de0b4bd6d49f4e580230e3ae97d95c8b19442b3c0a10d8f5633fecedd6926a7f6dab0ddb7d457f9ea81b8465fcd6fffeed114011df91c059caedaf97625f6c96ecc74725556934ef781d866b34f011fce4d835a090196e9a5f0e4449af7eb697ddb9076494ca5f81104a305b6dd27665722c46b60e5df680fb16b210607ef217652e60236c255f6a28315f4083a96791d7214bf64c1df4fd0db1944fb26a2a57031b32eee64ad15a8ba68885cde74a5bfc920f6abf59ba5c75506373e7130f9042da922179251f",exponent:"010001"},{modulus:"aeec36c8ffc109cb099624685b97815415657bd76d8c9c3e398103d7ad16c9bba6f525ed0412d7ae2c2de2b44e77d72cbf4b7438709a4e646a05c43427c7f184debf72947519680e651500890c6832796dd11f772c25ff8f576755afe055b0a3752c696eb7d8da0d8be1faf38c9bdd97ce0a77d3916230c4032167100edd0f9e7a3a9b602d04367b689536af0d64b613ccba7962939d3b57682beb6dae5b608130b2e52aca78ba023cf6ce806b1dc49c72cf928a7199d22e3d7ac84e47bc9427d0236945d10dbd15177bab413fbf0edfda09f014c7a7da088dde9759702ca760af2b8e4e97cc055c617bd74c3d97008635b98dc4d621b4891da9fb0473047927",exponent:"010001"},{modulus:"bdf2c77d81f6afd47bd30f29ac76e55adfe70e487e5e48297e5a9055c9c07d2b93b4ed3994d3eca5098bf18d978d54f8b7c713eb10247607e69af9ef44f38e28f8b439f257a11572945cc0406fe3f37bb92b79112db69eedf2dc71584a661638ea5becb9e23585074b80d57d9f5710dd30d2da940e0ada2f1b878397dc1a72b5ce2531b6f7dd158e09c828d03450ca0ff8a174deacebcaa22dde84ef66ad370f259d18af806638012da0ca4a70baa83d9c158f3552bc9158e69bf332a45809e1c36905a5caa12348dd57941a482131be7b2355a5f4635374f3bd3ddf5ff925bf4809ee27c1e67d9120c5fe08a9de458b1b4a3c5d0a428437f2beca81f4e2d5ff",exponent:"010001"},{modulus:"b3f762b739be98f343eb1921cf0148cfa27ff7af02b6471213fed9daa0098976e667750324f1abcea4c31e43b7d11f1579133f2b3d9fe27474e462058884e5e1b123be9cbbc6a443b2925c08520e7325e6f1a6d50e117eb61ea49d2534c8bb4d2ae4153fabe832b9edf4c5755fdd8b19940b81d1d96cf433d19e6a22968a85dc80f0312f596bd2530c1cfb28b5fe019ac9bc25cd9c2a5d8a0f3a1c0c79bcca524d315b5e21b5c26b46babe3d75d06d1cd33329ec782a0f22891ed1db42a1d6c0dea431428bc4d7aabdcf3e0eb6fda4e23eb7733e7727e9a1915580796c55188d2596d2665ad1182ba7abf15aaa5a8b779ea996317a20ae044b820bff35b6e8a1",exponent:"010001"},{modulus:"be6a71558ee577ff03023cfa17aab4e6c86383cff8a7ad38edb9fafe6f323f2d5106cbc8cafb83b869cffd1ccf121cd743d509e589e68765c96601e813dc5b9dfc4be415c7a6526132d0035ca33d6d6075d4f535122a1cdfe017041f1088d1419f65c8e5490ee613e16dbf662698c0f54870f0475fa893fc41eb55b08ff1ac211bc045ded31be27d12c96d8d3cfc6a7ae8aa50bf2ee0f30ed507cc2581e3dec56de94f5dc0a7abee0be990b893f2887bd2c6310a1e0a9e3e38bd34fded2541508dc102a9c9b4c95effd9dd2dfe96c29be647d6c69d66ca500843cfaed6e440196f1dbe0e2e22163c61ca48c79116fa77216726749a976a1c4b0944b5121e8c01",exponent:"010001"}],this.publicKeysParsed={},this.prepared=!1,this.preparePromise=null}prepare(){return this.preparePromise?this.preparePromise:this.prepared?Promise.resolve():this.preparePromise=Promise.all(this.publisKeysHex.map(e=>{let t=new r.TLSerialization;t.storeBytes(i.bytesFromHex(e.modulus),"n"),t.storeBytes(i.bytesFromHex(e.exponent),"e");let a=t.getBuffer();return p.default.sha1Hash(a).then(t=>{let a=i.bytesFromArrayBuffer(t).slice(-8);a.reverse(),this.publicKeysParsed[i.bytesToHex(a)]={modulus:e.modulus,exponent:e.exponent}})})).then(()=>{this.prepared=!0,this.preparePromise=null})}select(e){return n(this,void 0,void 0,(function*(){var t,a,n;for(yield this.prepare(),n=0;n<e.length;n++)if((t=i.bigStringInt(e[n]).toString(16)).length<16&&(t=new Array(16-t.length).fill("0").join("")+t),a=this.publicKeysParsed[t])return Object.assign({fingerprint:e[n]},a);return!1}))}}t.RSAKeysManager=o,t.default=new o},function(e,t,a){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PasswordManager=void 0;const s=n(a(7)),r=a(30);class i{getState(e={}){return s.default.invokeApi("account.getPassword",{},e).then(e=>e)}check(e,t,a={}){return r.computeCheck(t,e).then(e=>s.default.invokeApi("auth.checkPassword",{password:e},a))}requestRecovery(e={}){return s.default.invokeApi("auth.requestPasswordRecovery",{},e)}recover(e,t={}){return s.default.invokeApi("auth.recoverPassword",{code:e},t)}}t.PasswordManager=i,t.default=new i},function(e,t,a){"use strict";var n=this&&this.__awaiter||function(e,t,a,n){return new(a||(a=Promise))((function(s,r){function i(e){try{o(n.next(e))}catch(e){r(e)}}function p(e){try{o(n.throw(e))}catch(e){r(e)}}function o(e){var t;e.done?s(e.value):(t=e.value,t instanceof a?t:new a((function(e){e(t)}))).then(i,p)}o((n=n.apply(e,t||[])).next())}))},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.computeCheck=t.makePasswordHash=void 0;const r=a(0),i=s(a(1)),p=a(14),o=a(4).logger("SRP");function m(e,t,a){return n(this,void 0,void 0,(function*(){let n="";for(let e=0;e<t.length;e++)n+=String.fromCharCode(t[e]);let s=yield i.default.sha256Hash(n+e+n);s=r.bufferConcats(a,s,a),s=yield i.default.sha256Hash(s);let p=yield i.default.pbkdf2(new Uint8Array(s),t,1e5);return p=r.bufferConcats(a,p,a),s=yield i.default.sha256Hash(p),s}))}t.makePasswordHash=m,t.computeCheck=function(e,t){return n(this,void 0,void 0,(function*(){console.log("computeCheck:",e,t);let a=t.current_algo,s=p.str2bigInt(r.bytesToHex(a.p),16),d=p.str2bigInt(r.bytesToHex(t.srp_B),16),y=p.int2bigInt(a.g,32,256);o("p",p.bigInt2str(s,16)),o("B",p.bigInt2str(d,16));let c=yield m(e,new Uint8Array(a.salt1),new Uint8Array(a.salt2)),l=p.str2bigInt(r.bytesToHex(new Uint8Array(c)),16);o("computed pw_hash:",c,l,r.bytesToHex(new Uint8Array(c)));var g=function(e,t,a=0){return Array(t).fill(a).concat(e).slice(-t)};let u=g(r.bytesFromHex(p.bigInt2str(s,16)),256),h=g(r.bytesFromHex(p.bigInt2str(y,16)),256),f=g(r.bytesFromHex(p.bigInt2str(d,16)),256);o(r.bytesToHex(u)),o(r.bytesToHex(h)),o(r.bytesToHex(f));let _=p.powMod(y,l,s);o("g_x",p.bigInt2str(_,16));let b=yield i.default.sha256Hash(r.bufferConcat(u,h));b=p.str2bigInt(r.bytesToHex(new Uint8Array(b)),16),o("k",p.bigInt2str(b,16));let v=p.mod(p.mult(b,_),s);o("kg_x",p.bigInt2str(v,16));let w=(e,t)=>{let a=p.sub(t,e);return!(p.negative(a)||p.bitSize(a)<1984||p.bitSize(e)<1984||Math.floor((p.bitSize(e)+7)/8)>256)},{a:P,a_for_hash:S,u:k}=yield(()=>n(this,void 0,void 0,(function*(){for(;;){const e=p.str2bigInt(r.bytesToHex(t.secure_random),16);console.log("ITERATION"),o("g a p",p.bigInt2str(y,16),p.bigInt2str(e,16),p.bigInt2str(s,16));const a=p.powMod(y,e,s);if(o("A MODPOW",p.bigInt2str(a,16)),w(a,s)){const t=r.bytesFromHex(p.bigInt2str(a,16)),n=yield i.default.sha256Hash(r.bufferConcat(new Uint8Array(t),new Uint8Array(f))),s=p.str2bigInt(r.bytesToHex(new Uint8Array(n)),16);if(!p.isZero(s)&&!p.negative(s))return{a:e,a_for_hash:t,u:s}}}})))();o("a",p.bigInt2str(P,16)),o("a_for_hash",r.bytesToHex(S)),o("u",p.bigInt2str(k,16));let I=p.sub(d,v);p.negative(I)&&(I=p.add(I,s)),o("g_b",p.bigInt2str(I,16));let M=p.mult(k,l);o("u and x multiply",p.bigInt2str(k,16),p.bigInt2str(l,16),p.bigInt2str(M,16));let C=p.add(P,M),A=p.powMod(I,C,s),T=yield i.default.sha256Hash(g(r.bytesFromHex(p.bigInt2str(A,16)),256));o("K",r.bytesToHex(T),new Uint32Array(new Uint8Array(T).buffer));let D=yield i.default.sha256Hash(u),B=yield i.default.sha256Hash(h);D=r.bytesXor(new Uint8Array(D),new Uint8Array(B));let R=r.bufferConcats(D,yield i.default.sha256Hash(a.salt1),yield i.default.sha256Hash(a.salt2),S,f,T),V=yield i.default.sha256Hash(R),U={_:"inputCheckPasswordSRP",srp_id:t.srp_id,A:new Uint8Array(S),M1:new Uint8Array(V)};return o("out",r.bytesToHex(U.A),r.bytesToHex(U.M1)),U}))}}]);