tweb/public/t4/sw.js

9 lines
31 KiB
JavaScript
Raw Normal View History

var serviceWorkerOption = {"assets":[]};
!function(t){var e={};function r(i){if(e[i])return e[i].exports;var o=e[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=t,r.c=e,r.d=function(t,e,i){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(r.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(i,o,function(e){return t[e]}.bind(null,o));return i},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=1)}([function(t,e,r){(function(){var e;function r(t,e,r){null!=t&&("number"==typeof t?this.fromNumber(t,e,r):null==e&&"string"!=typeof t?this.fromString(t,256):this.fromString(t,e))}function i(){return new r(null)}var o="undefined"!=typeof navigator;o&&"Microsoft Internet Explorer"==navigator.appName?(r.prototype.am=function(t,e,r,i,o,n){for(var s=32767&e,h=e>>15;--n>=0;){var u=32767&this[t],a=this[t++]>>15,f=h*u+a*s;o=((u=s*u+((32767&f)<<15)+r[i]+(1073741823&o))>>>30)+(f>>>15)+h*a+(o>>>30),r[i++]=1073741823&u}return o},e=30):o&&"Netscape"!=navigator.appName?(r.prototype.am=function(t,e,r,i,o,n){for(;--n>=0;){var s=e*this[t++]+r[i]+o;o=Math.floor(s/67108864),r[i++]=67108863&s}return o},e=26):(r.prototype.am=function(t,e,r,i,o,n){for(var s=16383&e,h=e>>14;--n>=0;){var u=16383&this[t],a=this[t++]>>14,f=h*u+a*s;o=((u=s*u+((16383&f)<<14)+r[i]+o)>>28)+(f>>14)+h*a,r[i++]=268435455&u}return o},e=28),r.prototype.DB=e,r.prototype.DM=(1<<e)-1,r.prototype.DV=1<<e;r.prototype.FV=Math.pow(2,52),r.prototype.F1=52-e,r.prototype.F2=2*e-52;var n,s,h=new Array;for(n="0".charCodeAt(0),s=0;s<=9;++s)h[n++]=s;for(n="a".charCodeAt(0),s=10;s<36;++s)h[n++]=s;for(n="A".charCodeAt(0),s=10;s<36;++s)h[n++]=s;function u(t){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(t)}function a(t,e){var r=h[t.charCodeAt(e)];return null==r?-1:r}function f(t){var e=i();return e.fromInt(t),e}function c(t){var e,r=1;return 0!=(e=t>>>16)&&(t=e,r+=16),0!=(e=t>>8)&&(t=e,r+=8),0!=(e=t>>4)&&(t=e,r+=4),0!=(e=t>>2)&&(t=e,r+=2),0!=(e=t>>1)&&(t=e,r+=1),r}function p(t){this.m=t}function l(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<t.DB-15)-1,this.mt2=2*t.t}function y(t,e){return t&e}function d(t,e){return t|e}function m(t,e){return t^e}function v(t,e){return t&~e}function g(t){if(0==t)return-1;var e=0;return 0==(65535&t)&&(t>>=16,e+=16),0==(255&t)&&(t>>=8,e+=8),0==(15&t)&&(t>>=4,e+=4),0==(3&t)&&(t>>=2,e+=2),0==(1&t)&&++e,e}function b(t){for(var e=0;0!=t;)t&=t-1,++e;return e}function T(){}function S(t){return t}function w(t){this.r2=i(),this.q3=i(),r.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t),this.m=t}p.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},p.prototype.revert=function(t){return t},p.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},p.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r),this.reduce(r)},p.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},l.prototype.convert=function(t){var e=i();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(r.ZERO)>0&&this.m.subTo(e,e),e},l.prototype.revert=function(t){var e=i();return t.copyTo(e),this.reduce(e),e},l.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var e=0;e<this.m.t;++e){var r=32767&t[e],i=r*this.mpl+((r*this.mph+(t[e]>>15)*this.mpl&this.um)<<15)&t.DM;for(t[r=e+this.m.t]+=this.m.am(0,i,t,e,0,this.m.t);t[r]>=t.DV;)t[r]-=t.DV,t[++r]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},l.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r),this.reduce(r)},l.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},r.prototype.copyTo=funct
/*!
* 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(e,"__esModule",{value:!0}),e.getFileNameByLocation=e.nextRandomInt=e.addPadding=e.longFromInts=e.longToBytes=e.bytesToWordss=e.bytesFromWordss=e.bytesFromWords=e.longToInts=e.bufferConcats=e.bufferConcat=e.bytesFromArrayBuffer=e.convertToByteArray=e.convertToUint8Array=e.convertToArrayBuffer=e.bytesToArrayBuffer=e.bytesFromBigInt=e.bytesXor=e.bytesCmp=e.blobSafeMimeType=e.blobConstruct=e.dataUrlToBlob=e.base64ToBlob=e.uint6ToBase64=e.bytesToBase64=e.bytesFromHex=e.bytesToHex=e.bigStringInt=e.bigint=e.isObject=e.dT=void 0;const i=r(0);var o=Date.now();function n(t){return new i.BigInteger(t.toString(16),16)}function s(t){return new i.BigInteger(t,10)}function h(t){return t<26?t+65:t<52?t+71:t<62?t-4:62===t?43:63===t?47:65}function u(t,e){for(var r=atob(t),i=r.length,o=Math.ceil(i/1024),n=new Array(o),s=0;s<o;++s){for(var h=1024*s,u=Math.min(h+1024,i),f=new Array(u-h),c=h,p=0;c<u;++p,++c)f[p]=r[c].charCodeAt(0);n[s]=new Uint8Array(f)}return a(n,e)}function a(t,e=""){let r;const i=f(e);try{r=new Blob(t,{type:i})}catch(e){let o=new BlobBuilder;t.forEach(t=>{o.append(t)}),r=o.getBlob(i)}return r}function f(t){return-1===["image/jpeg","image/png","image/gif","image/webp","image/bmp","video/mp4","video/webm","video/quicktime","audio/ogg","audio/mpeg","audio/mp4","application/json"].indexOf(t)?"application/octet-stream":t}function c(t){return new Uint8Array(t).buffer}function p(t){return void 0!==t.buffer?t:new Uint8Array(t)}function l(t,e){var r=t.byteLength||t.length,i=e.byteLength||e.length,o=new Uint8Array(r+i);return o.set(t instanceof ArrayBuffer?new Uint8Array(t):t,0),o.set(e instanceof ArrayBuffer?new Uint8Array(e):e,r),o.buffer}function y(t){var e=s(t).divideAndRemainder(n(4294967296));return[e[0].intValue(),e[1].intValue()]}function d(t){for(var e=t.words,r=t.sigBytes,i=[],o=0;o<r;o++)i.push(e[o>>>2]>>>24-o%4*8&255);return i}e.dT=function(){return"["+((Date.now()-o)/1e3).toFixed(3)+"]"},e.isObject=function(t){return"object"==typeof t&&null!==t},e.bigint=n,e.bigStringInt=s,e.bytesToHex=function(t){t=t||[];for(var e=[],r=0;r<t.length;r++)e.push((t[r]<16?"0":"")+(t[r]||0).toString(16));return e.join("")},e.bytesFromHex=function(t){var e,r=t.length,i=0,o=[];for(t.length%2&&(o.push(parseInt(t.charAt(0),16)),i++),e=i;e<r;e+=2)o.push(parseInt(t.substr(e,2),16));return o},e.bytesToBase64=function(t){for(var e,r="",i=t.length,o=0,n=0;n<i;n++)e=n%3,o|=t[n]<<(16>>>e&24),2!==e&&i-n!=1||(r+=String.fromCharCode(h(o>>>18&63),h(o>>>12&63),h(o>>>6&63),h(63&o)),o=0);return r.replace(/A(?=A$|$)/g,"=")},e.uint6ToBase64=h,e.base64ToBlob=u,e.dataUrlToBlob=function(t){var e=t.split(",");return u(e[1],e[0].split(":")[1].split(";")[0])},e.blobConstruct=a,e.blobSafeMimeType=f,e.bytesCmp=function(t,e){var r=t.length;if(r!=e.length)return!1;for(var i=0;i<r;i++)if(t[i]!=e[i])return!1;return!0},e.bytesXor=function(t,e){for(var r=t.length,i=[],o=0;o<r;++o)i[o]=t[o]^e[o];return i},e.bytesFromBigInt=function(t,e){var r=t.toByteArray();if(e&&r.length<e){for(var i=[],o=0,n=e-r.length;o<n;o++)i[o]=0;r=r instanceof ArrayBuffer?l(i,r):i.concat(r)}else for(;!r[0]&&(!e||r.length>e);)r=r.slice(1);return r},e.bytesToArrayBuffer=c,e.convertToArrayBuffer=function(t){return t instanceof ArrayBuffer?t:void 0!==t.buffer&&t.buffer.byteLength==t.length*t.BYTES_PER_ELEMENT?t.buffer:c(t)},e.convertToUint8Array=p,e.convertToByteArray=function(t){if(Array.isArray(t))return t;for(var e=[],r=0,i=(t=p(t)).length;r<i;r++)e.push(t[r]);return e},e.bytesFromArrayBuffer=function(t){for(var e=t.byteLength,r=new Uint8Array(t),i=[],o=0;o<e;++o)i[o]=r[o];return i},e.bufferConcat=l,e.bufferConcats=function(...t){let e=0;t.forEach(t=>e+=t.byteLength||t.length);var r=new Uint8Array(e);let i=0;return t.forEach(t=>{r.set(t instanceof ArrayBuffer?new Uint8Array(t):t,i),i+=t.byteLength||t.length}),r},e.longToInts=y,e.bytesFromWords=d,e.bytesFromWordss=function(t){for(var e=[],r=0;r<4*t.length;r++)e.push(t[r>>>2]>>>24-r%4*8&255);return e},e.bytesToWordss=function(t){let e;e=t instanceof ArrayBuffer?new Uint8Array(t):t;var r,i=e.length,o=[];for(r=0;r<i;r++)o[r>>>2]|