{"size": 17488, "ext": "js", "max_stars_repo_path": "plugins/flexmonster_pivot/node_modules/flexmonster/lib/jszip.min.js", "max_stars_repo_name": "jh0105123/kibana-v7", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "plugins/flexmonster_pivot/node_modules/flexmonster/lib/jszip.min.js", "max_issues_repo_name": "jh0105123/kibana-v7", "max_issues_repo_issues_event_min_datetime": "2020-09-07T09:41:48.000Z", "max_issues_repo_issues_event_max_datetime": "2022-01-22T09:15:04.000Z", "max_forks_repo_path": "plugins/flexmonster_pivot/node_modules/flexmonster/lib/jszip.min.js", "max_forks_repo_name": "jh0105123/kibana-v7", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 4, "max_forks_count": null, "avg_line_length": 8744.0, "max_line_length": 17279, "alphanum_fraction": 0.740679323}
/** @license JSZip v3.1.5 | Copyright (c) 2009-2016 Stuart Knightley <stuart@stuartk.com> [https://stuk.github.io/jszip/] | MIT or GPLv3 License [https://raw.github.com/Stuk/jszip/master/LICENSE.markdown] */
var r0="\x00\x00",k0='application/zip',e0="application/zip",n0="undefined",q0=null,h0=false;"use strict";var JSZip=function(k,l){this.files={};this.root="";if(k){this.load(k,l);}};JSZip.signature={LOCAL_FILE_HEADER:"\x50\x4b\x03\x04",CENTRAL_FILE_HEADER:"\x50\x4b\x01\x02",CENTRAL_DIRECTORY_END:"\x50\x4b\x05\x06",ZIP64_CENTRAL_DIRECTORY_LOCATOR:"\x50\x4b\x06\x07",ZIP64_CENTRAL_DIRECTORY_END:"\x50\x4b\x06\x06",DATA_DESCRIPTOR:"\x50\x4b\x07\x08"};JSZip.defaults={base64:h0,binary:h0,dir:h0,date:q0,compression:q0};JSZip.support={arraybuffer:(function(){return typeof ArrayBuffer!==n0&&typeof Uint8Array!==n0;})(),nodebuffer:(function(){return typeof Buffer!==n0;})(),uint8array:(function(){return typeof Uint8Array!==n0;})(),blob:(function(){if(typeof ArrayBuffer===n0){return h0;}var l=new ArrayBuffer(0);try{return new Blob([l],{type:e0}).size===0;}catch(k){}try{var n=new (window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder)();n.append(l);return n.getBlob(k0).size===0;}catch(k){}return h0;})()};JSZip.prototype=(function(){var p,v;if(JSZip.support.uint8array&&typeof TextEncoder==="function"&&typeof TextDecoder==="function"){p=new TextEncoder("utf-8");v=new TextDecoder("utf-8");}var w=function(k){if(k._data instanceof JSZip.CompressedObject){k._data=k._data.getContent();k.options.binary=true;k.options.base64=false;if(JSZip.utils.getTypeOf(k._data)==="uint8array"){var l=k._data;k._data=new Uint8Array(l.length);if(l.length!==0){k._data.set(l,0);}}}return k._data;},E=function(k){var l=w(k),n=JSZip.utils.getTypeOf(l);if(n==="string"){if(!k.options.binary){if(p){return p.encode(l);}if(JSZip.support.nodebuffer){return new Buffer(l,"utf-8");}}return k.asBinary();}return l;},z=function(k){var l=w(this);if(l===null||typeof l==="undefined"){return "";}if(this.options.base64){l=JSZip.base64.decode(l);}if(k&&this.options.binary){l=JSZip.prototype.utf8decode(l);}else{l=JSZip.utils.transformTo("string",l);}if(!k&&!this.options.binary){l=JSZip.prototype.utf8encode(l);}return l;},J=function(k,l,n){this.name=k;this._data=l;this.options=n;};J.prototype={asText:function(){return z.call(this,true);},asBinary:function(){return z.call(this,false);},asNodeBuffer:function(){var k=E(this);return JSZip.utils.transformTo("nodebuffer",k);},asUint8Array:function(){var k=E(this);return JSZip.utils.transformTo("uint8array",k);},asArrayBuffer:function(){return this.asUint8Array().buffer;}};var I=function(k,l){var n="",r;for(r=0;r<l;r++){n+=String.fromCharCode(k&0xff);k=k>>>8;}return n;},P=function(){var k={},l,n;for(l=0;l<arguments.length;l++){for(n in arguments[l]){if(arguments[l].hasOwnProperty(n)&&typeof k[n]==="undefined"){k[n]=arguments[l][n];}}}return k;},F=function(k){k=k||{};if(k.base64===true&&k.binary==null){k.binary=true;}k=P(k,JSZip.defaults);k.date=k.date||new Date();if(k.compression!==null)k.compression=k.compression.toUpperCase();return k;},K=function(k,l,n){var r=D(k),u=JSZip.utils.getTypeOf(l);if(r){x.call(this,r);}n=F(n);if(n.dir||l===null||typeof l==="undefined"){n.base64=false;n.binary=false;l=null;}else if(u==="string"){if(n.binary&&!n.base64){if(n.optimizedBinaryString!==true){l=JSZip.utils.string2binary(l);}}}else{n.base64=false;n.binary=true;if(!u&&!(l instanceof JSZip.CompressedObject)){throw  new Error("The data of '"+k+"' is in an unsupported format !");}if(u==="arraybuffer"){l=JSZip.utils.transformTo("uint8array",l);}}return this.files[k]=new J(k,l,n);},D=function(k){if(k.slice(-1)=='/'){k=k.substring(0,k.length-1);}var l=k.lastIndexOf('/');return (l>0)?k.substring(0,l):"";},x=function(k){if(k.slice(-1)!="/"){k+="/";}if(!this.files[k]){K.call(this,k,null,{dir:true});}return this.files[k];},G=function(k,l){var n=new JSZip.CompressedObject(),r;if(k._data instanceof JSZip.CompressedObject){n.uncompressedSize=k._data.uncompressedSize;n.crc32=k._data.crc32;if(n.uncompressedSize===0||k.options.dir){l=JSZip.compressions['STORE'];n.compressedContent="";n.crc32=0;}else if(k._data.compressionMethod===l.magic){n.compressedContent=k._data.getCompressedContent();}else{r=k._data.getContent();n.compressedContent=l.compress(JSZip.utils.transformTo(l.compressInputType,r));}}else{r=E(k);if(!r||r.length===0||k.options.dir){l=JSZip.compressions['STORE'];r="";}n.uncompressedSize=r.length;n.crc32=this.crc32(r);n.compressedContent=l.compress(JSZip.utils.transformTo(l.compressInputType,r));}n.compressedSize=n.compressedContent.length;n.compressionMethod=l.magic;return n;},V=function(k,l,n,r){var u=n.compressedContent,s=this.utf8encode(l.name),C=s!==l.name,y=l.options,B,A;B=y.date.getHours();B=B<<6;B=B|y.date.getMinutes();B=B<<5;B=B|y.date.getSeconds()/2;A=y.date.getFullYear()-1980;A=A<<4;A=A|(y.date.getMonth()+1);A=A<<5;A=A|y.date.getDate();var m="";m+="\x0A\x00";m+=C?"\x00\x08":"\x00\x00";m+=n.compressionMethod;m+=I(B,2);m+=I(A,2);m+=I(n.crc32,4);m+=I(n.compressedSize,4);m+=I(n.uncompressedSize,4);m+=I(s.length,2);m+="\x00\x00";var q=JSZip.signature.LOCAL_FILE_HEADER+m+s,o=JSZip.signature.CENTRAL_FILE_HEADER+"\x14\x00"+m+"\x00\x00"+"\x00\x00"+"\x00\x00"+(l.options.dir===true?"\x10\x00\x00\x00":"\x00\x00\x00\x00")+I(r,4)+s;return {fileRecord:q,dirRecord:o,compressedObject:n};},N=function(){this.data=[];};N.prototype={append:function(k){k=JSZip.utils.transformTo("string",k);this.data.push(k);},finalize:function(){return this.data.join("");}};var L=function(k){this.data=new Uint8Array(k);this.index=0;};L.prototype={append:function(k){if(k.length!==0){k=JSZip.utils.transformTo("uint8array",k);this.data.set(k,this.index);this.index+=k.length;}},finalize:function(){return this.data;}};return {load:function(k,l){throw  new Error("Load method is not defined. Is the file jszip-load.js included ?");},filter:function(k){var l=[],n,r,u,s;for(n in this.files){if(!this.files.hasOwnProperty(n)){continue;}u=this.files[n];s=new J(u.name,u._data,P(u.options));r=n.slice(this.root.length,n.length);if(n.slice(0,this.root.length)===this.root&&k(r,s)){l.push(s);}}return l;},file:function(n,r,u){if(arguments.length===1){if(JSZip.utils.isRegExp(n)){var s=n;return this.filter(function(k,l){return !l.options.dir&&s.test(k);});}else{return this.filter(function(k,l){return !l.options.dir&&k===n;})[0]||null;}}else{n=this.root+n;K.call(this,n,r,u);}return this;},folder:function(n){if(!n){return this;}if(JSZip.utils.isRegExp(n)){return this.filter(function(k,l){return l.options.dir&&n.test(k);});}var r=this.root+n,u=x.call(this,r),s=this.clone();s.root=u.name;return s;},remove:function(n){n=this.root+n;var r=this.files[n];if(!r){if(n.slice(-1)!="/"){n+="/";}r=this.files[n];}if(r){if(!r.options.dir){delete  this.files[n];}else{var u=this.filter(function(k,l){return l.name.slice(0,n.length)===n;});for(var s=0;s<u.length;s++){delete  this.files[u[s].name];}}}return this;},generate:function(k){k=P(k||{},{base64:true,compression:"STORE",type:"base64"});JSZip.utils.checkSupport(k.type);var l=[],n=0,r=0,u,s;for(var C in this.files){if(!this.files.hasOwnProperty(C)){continue;}var y=this.files[C],B=y.options.compression||k.compression.toUpperCase(),A=JSZip.compressions[B];if(!A){throw  new Error(B+" is not a valid compression method !");}var m=G.call(this,y,A),q=V.call(this,C,y,m,n);n+=q.fileRecord.length+m.compressedSize;r+=q.dirRecord.length;l.push(q);}var o="";o=JSZip.signature.CENTRAL_DIRECTORY_END+"\x00\x00"+"\x00\x00"+I(l.length,2)+I(l.length,2)+I(r,4)+I(n,4)+"\x00\x00";switch(k.type.toLowerCase()){case "uint8array":case "arraybuffer":case "blob":case "nodebuffer":u=new L(n+r+o.length);break;case "base64":default :u=new N(n+r+o.length);break;}for(s=0;s<l.length;s++){u.append(l[s].fileRecord);u.append(l[s].compressedObject.compressedContent);}for(s=0;s<l.length;s++){u.append(l[s].dirRecord);}u.append(o);var t=u.finalize();switch(k.type.toLowerCase()){case "uint8array":case "arraybuffer":case "nodebuffer":return JSZip.utils.transformTo(k.type.toLowerCase(),t);case "blob":return JSZip.utils.arrayBuffer2Blob(JSZip.utils.transformTo("arraybuffer",t));case "base64":return (k.base64)?JSZip.base64.encode(t):t;default :return t;}},crc32:function crc32(k,l){if(typeof k==="undefined"||!k.length){return 0;}var n=JSZip.utils.getTypeOf(k)!=="string",r=[0x00000000,0x77073096,0xEE0E612C,0x990951BA,0x076DC419,0x706AF48F,0xE963A535,0x9E6495A3,0x0EDB8832,0x79DCB8A4,0xE0D5E91E,0x97D2D988,0x09B64C2B,0x7EB17CBD,0xE7B82D07,0x90BF1D91,0x1DB71064,0x6AB020F2,0xF3B97148,0x84BE41DE,0x1ADAD47D,0x6DDDE4EB,0xF4D4B551,0x83D385C7,0x136C9856,0x646BA8C0,0xFD62F97A,0x8A65C9EC,0x14015C4F,0x63066CD9,0xFA0F3D63,0x8D080DF5,0x3B6E20C8,0x4C69105E,0xD56041E4,0xA2677172,0x3C03E4D1,0x4B04D447,0xD20D85FD,0xA50AB56B,0x35B5A8FA,0x42B2986C,0xDBBBC9D6,0xACBCF940,0x32D86CE3,0x45DF5C75,0xDCD60DCF,0xABD13D59,0x26D930AC,0x51DE003A,0xC8D75180,0xBFD06116,0x21B4F4B5,0x56B3C423,0xCFBA9599,0xB8BDA50F,0x2802B89E,0x5F058808,0xC60CD9B2,0xB10BE924,0x2F6F7C87,0x58684C11,0xC1611DAB,0xB6662D3D,0x76DC4190,0x01DB7106,0x98D220BC,0xEFD5102A,0x71B18589,0x06B6B51F,0x9FBFE4A5,0xE8B8D433,0x7807C9A2,0x0F00F934,0x9609A88E,0xE10E9818,0x7F6A0DBB,0x086D3D2D,0x91646C97,0xE6635C01,0x6B6B51F4,0x1C6C6162,0x856530D8,0xF262004E,0x6C0695ED,0x1B01A57B,0x8208F4C1,0xF50FC457,0x65B0D9C6,0x12B7E950,0x8BBEB8EA,0xFCB9887C,0x62DD1DDF,0x15DA2D49,0x8CD37CF3,0xFBD44C65,0x4DB26158,0x3AB551CE,0xA3BC0074,0xD4BB30E2,0x4ADFA541,0x3DD895D7,0xA4D1C46D,0xD3D6F4FB,0x4369E96A,0x346ED9FC,0xAD678846,0xDA60B8D0,0x44042D73,0x33031DE5,0xAA0A4C5F,0xDD0D7CC9,0x5005713C,0x270241AA,0xBE0B1010,0xC90C2086,0x5768B525,0x206F85B3,0xB966D409,0xCE61E49F,0x5EDEF90E,0x29D9C998,0xB0D09822,0xC7D7A8B4,0x59B33D17,0x2EB40D81,0xB7BD5C3B,0xC0BA6CAD,0xEDB88320,0x9ABFB3B6,0x03B6E20C,0x74B1D29A,0xEAD54739,0x9DD277AF,0x04DB2615,0x73DC1683,0xE3630B12,0x94643B84,0x0D6D6A3E,0x7A6A5AA8,0xE40ECF0B,0x9309FF9D,0x0A00AE27,0x7D079EB1,0xF00F9344,0x8708A3D2,0x1E01F268,0x6906C2FE,0xF762575D,0x806567CB,0x196C3671,0x6E6B06E7,0xFED41B76,0x89D32BE0,0x10DA7A5A,0x67DD4ACC,0xF9B9DF6F,0x8EBEEFF9,0x17B7BE43,0x60B08ED5,0xD6D6A3E8,0xA1D1937E,0x38D8C2C4,0x4FDFF252,0xD1BB67F1,0xA6BC5767,0x3FB506DD,0x48B2364B,0xD80D2BDA,0xAF0A1B4C,0x36034AF6,0x41047A60,0xDF60EFC3,0xA867DF55,0x316E8EEF,0x4669BE79,0xCB61B38C,0xBC66831A,0x256FD2A0,0x5268E236,0xCC0C7795,0xBB0B4703,0x220216B9,0x5505262F,0xC5BA3BBE,0xB2BD0B28,0x2BB45A92,0x5CB36A04,0xC2D7FFA7,0xB5D0CF31,0x2CD99E8B,0x5BDEAE1D,0x9B64C2B0,0xEC63F226,0x756AA39C,0x026D930A,0x9C0906A9,0xEB0E363F,0x72076785,0x05005713,0x95BF4A82,0xE2B87A14,0x7BB12BAE,0x0CB61B38,0x92D28E9B,0xE5D5BE0D,0x7CDCEFB7,0x0BDBDF21,0x86D3D2D4,0xF1D4E242,0x68DDB3F8,0x1FDA836E,0x81BE16CD,0xF6B9265B,0x6FB077E1,0x18B74777,0x88085AE6,0xFF0F6A70,0x66063BCA,0x11010B5C,0x8F659EFF,0xF862AE69,0x616BFFD3,0x166CCF45,0xA00AE278,0xD70DD2EE,0x4E048354,0x3903B3C2,0xA7672661,0xD06016F7,0x4969474D,0x3E6E77DB,0xAED16A4A,0xD9D65ADC,0x40DF0B66,0x37D83BF0,0xA9BCAE53,0xDEBB9EC5,0x47B2CF7F,0x30B5FFE9,0xBDBDF21C,0xCABAC28A,0x53B39330,0x24B4A3A6,0xBAD03605,0xCDD70693,0x54DE5729,0x23D967BF,0xB3667A2E,0xC4614AB8,0x5D681B02,0x2A6F2B94,0xB40BBE37,0xC30C8EA1,0x5A05DF1B,0x2D02EF8D];if(typeof (l)=="undefined"){l=0;}var u=0,s=0,C=0;l=l^(-1);for(var y=0,B=k.length;y<B;y++){C=n?k[y]:k.charCodeAt(y);s=(l^C)&0xFF;u=r[s];l=(l>>>8)^u;}return l^(-1);},clone:function(){var k=new JSZip();for(var l in this){if(typeof this[l]!=="function"){k[l]=this[l];}}return k;},utf8encode:function(k){if(p){var l=p.encode(k);return JSZip.utils.transformTo("string",l);}if(JSZip.support.nodebuffer){return JSZip.utils.transformTo("string",new Buffer(k,"utf-8"));}var n=[],r=0;for(var u=0;u<k.length;u++){var s=k.charCodeAt(u);if(s<128){n[r++]=String.fromCharCode(s);}else if((s>127)&&(s<2048)){n[r++]=String.fromCharCode((s>>6)|192);n[r++]=String.fromCharCode((s&63)|128);}else{n[r++]=String.fromCharCode((s>>12)|224);n[r++]=String.fromCharCode(((s>>6)&63)|128);n[r++]=String.fromCharCode((s&63)|128);}}return n.join("");},utf8decode:function(k){var l=[],n=0,r=JSZip.utils.getTypeOf(k),u=r!=="string",s=0,C=0,y=0,B=0,A=0;if(v){return v.decode(JSZip.utils.transformTo("uint8array",k));}if(JSZip.support.nodebuffer){return JSZip.utils.transformTo("nodebuffer",k).toString("utf-8");}while(s<k.length){C=u?k[s]:k.charCodeAt(s);if(C<128){l[n++]=String.fromCharCode(C);s++;}else if((C>191)&&(C<224)){B=u?k[s+1]:k.charCodeAt(s+1);l[n++]=String.fromCharCode(((C&31)<<6)|(B&63));s+=2;}else{B=u?k[s+1]:k.charCodeAt(s+1);A=u?k[s+2]:k.charCodeAt(s+2);l[n++]=String.fromCharCode(((C&15)<<12)|((B&63)<<6)|(A&63));s+=3;}}return l.join("");}};}());JSZip.compressions={"STORE":{magic:r0,compress:function(k){return k;},uncompress:function(k){return k;},compressInputType:q0,uncompressInputType:q0}};(function(){JSZip.utils={string2binary:function(k){var l="";for(var n=0;n<k.length;n++){l+=String.fromCharCode(k.charCodeAt(n)&0xff);}return l;},string2Uint8Array:function(k){return JSZip.utils.transformTo("uint8array",k);},uint8Array2String:function(k){return JSZip.utils.transformTo("string",k);},arrayBuffer2Blob:function(l){JSZip.utils.checkSupport("blob");try{return new Blob([l],{type:"application/zip"});}catch(k){}try{var n=new (window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder)();n.append(l);return n.getBlob('application/zip');}catch(k){}throw  new Error("Bug : can't construct the Blob.");},string2Blob:function(k){var l=JSZip.utils.transformTo("arraybuffer",k);return JSZip.utils.arrayBuffer2Blob(l);}};function m(k){return k;};function q(k,l){for(var n=0;n<k.length;++n){l[n]=k.charCodeAt(n)&0xFF;}return l;};function o(l){var n=65536,r=[],u=l.length,s=JSZip.utils.getTypeOf(l),C=0,y=true;try{switch(s){case "uint8array":String.fromCharCode.apply(null,new Uint8Array(0));break;case "nodebuffer":String.fromCharCode.apply(null,new Buffer(0));break;}}catch(k){y=false;}if(!y){var B="";for(var A=0;A<l.length;A++){B+=String.fromCharCode(l[A]);}return B;}while(C<u&&n>1){try{if(s==="array"||s==="nodebuffer"){r.push(String.fromCharCode.apply(null,l.slice(C,Math.min(C+n,u))));}else{r.push(String.fromCharCode.apply(null,l.subarray(C,Math.min(C+n,u))));}C+=n;}catch(k){n=Math.floor(n/2);}}return r.join("");};function t(k,l){for(var n=0;n<k.length;n++){l[n]=k[n];}return l;};var p={};p["string"]={"string":m,"array":function(k){return q(k,new Array(k.length));},"arraybuffer":function(k){return p["string"]["uint8array"](k).buffer;},"uint8array":function(k){return q(k,new Uint8Array(k.length));},"nodebuffer":function(k){return q(k,new Buffer(k.length));}};p["array"]={"string":o,"array":m,"arraybuffer":function(k){return (new Uint8Array(k)).buffer;},"uint8array":function(k){return new Uint8Array(k);},"nodebuffer":function(k){return new Buffer(k);}};p["arraybuffer"]={"string":function(k){return o(new Uint8Array(k));},"array":function(k){return t(new Uint8Array(k),new Array(k.byteLength));},"arraybuffer":m,"uint8array":function(k){return new Uint8Array(k);},"nodebuffer":function(k){return new Buffer(new Uint8Array(k));}};p["uint8array"]={"string":o,"array":function(k){return t(k,new Array(k.length));},"arraybuffer":function(k){return k.buffer;},"uint8array":m,"nodebuffer":function(k){return new Buffer(k);}};p["nodebuffer"]={"string":o,"array":function(k){return t(k,new Array(k.length));},"arraybuffer":function(k){return p["nodebuffer"]["uint8array"](k).buffer;},"uint8array":function(k){return t(k,new Uint8Array(k.length));},"nodebuffer":m};JSZip.utils.transformTo=function(k,l){if(!l){l="";}if(!k){return l;}JSZip.utils.checkSupport(k);var n=JSZip.utils.getTypeOf(l),r=p[n][k](l);return r;};JSZip.utils.getTypeOf=function(k){if(typeof k==="string"){return "string";}if(Object.prototype.toString.call(k)==="[object Array]"){return "array";}if(JSZip.support.nodebuffer&&Buffer.isBuffer(k)){return "nodebuffer";}if(JSZip.support.uint8array&&k instanceof Uint8Array){return "uint8array";}if(JSZip.support.arraybuffer&&k instanceof ArrayBuffer){return "arraybuffer";}};JSZip.utils.isRegExp=function(k){return Object.prototype.toString.call(k)==="[object RegExp]";};JSZip.utils.checkSupport=function(k){var l=true;switch(k.toLowerCase()){case "uint8array":l=JSZip.support.uint8array;break;case "arraybuffer":l=JSZip.support.arraybuffer;break;case "nodebuffer":l=JSZip.support.nodebuffer;break;case "blob":l=JSZip.support.blob;break;}if(!l){throw  new Error(k+" is not supported by this browser");}};})();(function(){JSZip.CompressedObject=function(){this.compressedSize=0;this.uncompressedSize=0;this.crc32=0;this.compressionMethod=q0;this.compressedContent=q0;};JSZip.CompressedObject.prototype={getContent:function(){return q0;},getCompressedContent:function(){return q0;}};})();JSZip.base64=(function(){var q="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return {encode:function(k,l){var n="",r,u,s,C,y,B,A,m=0;while(m<k.length){r=k.charCodeAt(m++);u=k.charCodeAt(m++);s=k.charCodeAt(m++);C=r>>2;y=((r&3)<<4)|(u>>4);B=((u&15)<<2)|(s>>6);A=s&63;if(isNaN(u)){B=A=64;}else if(isNaN(s)){A=64;}n=n+q.charAt(C)+q.charAt(y)+q.charAt(B)+q.charAt(A);}return n;},decode:function(k,l){var n="",r,u,s,C,y,B,A,m=0;k=k.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(m<k.length){C=q.indexOf(k.charAt(m++));y=q.indexOf(k.charAt(m++));B=q.indexOf(k.charAt(m++));A=q.indexOf(k.charAt(m++));r=(C<<2)|(y>>4);u=((y&15)<<4)|(B>>2);s=((B&3)<<6)|A;n=n+String.fromCharCode(r);if(B!=64){n=n+String.fromCharCode(u);}if(A!=64){n=n+String.fromCharCode(s);}}return n;}};}());