mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-02-13 10:52:53 +00:00
18 lines
6.1 KiB
JavaScript
18 lines
6.1 KiB
JavaScript
"undefined"===typeof PDFJS&&(("undefined"!==typeof window?window:this).PDFJS={});
|
|
(function(){function b(e,d){return new a(this.slice(e,d))}function c(a,d){2>arguments.length&&(d=0);for(var b=0,c=a.length;b<c;++b,++d)this[d]=a[b]&255}function a(a){var d;if("number"===typeof a){d=[];for(var f=0;f<a;++f)d[f]=0}else if("slice"in a)d=a.slice(0);else{d=[];for(var f=0,g=a.length;f<g;++f)d[f]=a[f]}d.subarray=b;d.buffer=d;d.byteLength=d.length;d.set=c;"object"===typeof a&&a.buffer&&(d.buffer=a.buffer);return d}"undefined"!==typeof Uint8Array?("undefined"===typeof Uint8Array.prototype.subarray&&
|
|
(Uint8Array.prototype.subarray=function(a,d){return new Uint8Array(this.slice(a,d))},Float32Array.prototype.subarray=function(a,d){return new Float32Array(this.slice(a,d))}),"undefined"===typeof Float64Array&&(window.Float64Array=Float32Array)):(window.Uint8Array=a,window.Uint32Array=a,window.Int32Array=a,window.Uint16Array=a,window.Float32Array=a,window.Float64Array=a)})();(function(){window.URL||(window.URL=window.webkitURL)})();
|
|
(function(){"undefined"===typeof Object.create&&(Object.create=function(b){function c(){}c.prototype=b;return new c})})();
|
|
(function(){if("undefined"!==typeof Object.defineProperty){var b=!0;try{Object.defineProperty(new Image,"id",{value:"test"});var c=function(){};c.prototype={get id(){}};Object.defineProperty(new c,"id",{value:"",configurable:!0,enumerable:!0,writable:!1})}catch(a){b=!1}if(b)return}Object.defineProperty=function(a,d,b){delete a[d];"get"in b&&a.__defineGetter__(d,b.get);"set"in b&&a.__defineSetter__(d,b.set);"value"in b&&(a.__defineSetter__(d,function(a){this.__defineGetter__(d,function(){return a});
|
|
return a}),a[d]=b.value)}})();(function(){"undefined"===typeof Object.keys&&(Object.keys=function(b){var c=[],a;for(a in b)b.hasOwnProperty(a)&&c.push(a);return c})})();
|
|
(function(){if("undefined"!==typeof FileReader){var b=FileReader.prototype;"readAsArrayBuffer"in b||Object.defineProperty(b,"readAsArrayBuffer",{value:function(b){var a=new FileReader,e=this;a.onload=function(a){a=a.target.result;for(var b=new ArrayBuffer(a.length),c=new Uint8Array(b),h=0,j=a.length;h<j;h++)c[h]=a.charCodeAt(h);Object.defineProperty(e,"result",{value:b,enumerable:!0,writable:!1,configurable:!0});a=document.createEvent("HTMLEvents");a.initEvent("load",!1,!1);e.dispatchEvent(a)};a.readAsBinaryString(b)}})}})();
|
|
(function(){function b(){this.overrideMimeType("text/plain; charset=x-user-defined")}function c(){var a=this.responseText,b,c=a.length,g=new Uint8Array(c);for(b=0;b<c;++b)g[b]=a.charCodeAt(b)&255;return g}var a=XMLHttpRequest.prototype;"overrideMimeType"in a||Object.defineProperty(a,"overrideMimeType",{value:function(){}});"response"in a||("mozResponseArrayBuffer"in a||"mozResponse"in a||"responseArrayBuffer"in a)||("undefined"!==typeof VBArray?Object.defineProperty(a,"response",{get:function(){return new Uint8Array((new VBArray(this.responseBody)).toArray())}}):
|
|
("function"===typeof a.overrideMimeType&&Object.defineProperty(a,"responseType",{set:b}),Object.defineProperty(a,"response",{get:c})))})();
|
|
(function(){"btoa"in window||(window.btoa=function(b){var c="",a,e;a=0;for(e=b.length;a<e;a+=3)var d=b.charCodeAt(a)&255,f=b.charCodeAt(a+1)&255,g=b.charCodeAt(a+2)&255,h=(d&3)<<4|f>>4,f=a+1<e?(f&15)<<2|g>>6:64,g=a+2<e?g&63:64,c=c+("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(d>>2)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(h)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(f)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(g));
|
|
return c})})();(function(){"atob"in window||(window.atob=function(b){b=b.replace(/=+$/,"");if(1==b.length%4)throw Error("bad atob input");for(var c=0,a,e,d=0,f="";e=b.charAt(d++);~e&&(a=c%4?64*a+e:e,c++%4)?f+=String.fromCharCode(255&a>>(-2*c&6)):0)e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(e);return f})})();
|
|
(function(){"undefined"===typeof Function.prototype.bind&&(Function.prototype.bind=function(b){var c=this,a=Array.prototype.slice.call(arguments,1);return function(){var e=Array.prototype.concat.apply(a,arguments);return c.apply(b,e)}})})();
|
|
(function(){"dataset"in document.createElement("div")||Object.defineProperty(HTMLElement.prototype,"dataset",{get:function(){if(this._dataset)return this._dataset;for(var b={},c=0,a=this.attributes.length;c<a;c++){var e=this.attributes[c];if("data-"==e.name.substring(0,5)){var d=e.name.substring(5).replace(/\-([a-z])/g,function(a,b){return b.toUpperCase()});b[d]=e.value}}Object.defineProperty(this,"_dataset",{value:b,writable:!1,enumerable:!1});return b},enumerable:!0})})();
|
|
(function(){function b(a,b,c,f){var g=(a.className||"").split(/\s+/g);""===g[0]&&g.shift();var h=g.indexOf(b);0>h&&c&&g.push(b);0<=h&&f&&g.splice(h,1);a.className=g.join(" ")}if(!("classList"in document.createElement("div"))){var c={add:function(a){b(this.element,a,!0,!1)},remove:function(a){b(this.element,a,!1,!0)},toggle:function(a){b(this.element,a,!0,!0)}};Object.defineProperty(HTMLElement.prototype,"classList",{get:function(){if(this._classList)return this._classList;var a=Object.create(c,{element:{value:this,
|
|
writable:!1,enumerable:!0}});Object.defineProperty(this,"_classList",{value:a,writable:!1,enumerable:!1});return a},enumerable:!0})}})();(function(){if("console"in window){if(!("bind"in console.log)){var b=console.log;console.log=function(a){return b(a)};var c=console.error;console.error=function(a){return c(a)};var a=console.warn;console.warn=function(b){return a(b)}}}else window.console={log:function(){},error:function(){},warn:function(){}}})();
|
|
(function(){function b(a){c(a.target)&&a.stopPropagation()}function c(a){return a.disabled||a.parentNode&&c(a.parentNode)}-1!=navigator.userAgent.indexOf("Opera")&&document.addEventListener("click",b,!0)})();(function(){"language"in navigator||Object.defineProperty(navigator,"language",{get:function(){var b=navigator.userLanguage||"en-US";return b.substring(0,2).toLowerCase()+b.substring(2).toUpperCase()},enumerable:!0})})();
|
|
(function(){0<Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")&&(PDFJS.disableRange=!0)})();(function(){window.history.pushState||(PDFJS.disableHistory=!0)})();
|