-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.min.js
1 lines (1 loc) · 13.5 KB
/
index.min.js
1
!function(){var e=function(){var e={MEMORY_LENGTH:16384};e.Base64ABCCC=Uint8Array.of(65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,48,49,50,51,52,53,54,55,56,57,43,47),e.CHUNCK_LENGTH=256,e.B64EC=255,e.B64C=Uint8Array.of(255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,62,255,255,255,63,52,53,54,55,56,57,58,59,60,61,255,255,255,0,255,255,255,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,255,255,255,255,255,255,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51),e.B64CL=123;var t=function t(){if(!(this instanceof t))return new t;this.CHUNCK_LENGTH_=e.CHUNCK_LENGTH,this.Base64ABCCC_=e.Base64ABCCC,this.B64C_=e.B64C,this.B64EC_=e.B64EC,this.B64CL_=e.B64CL,this.MEMORY_LENGTH_=e.MEMORY_LENGTH,this.TEXT_DECODER_=new TextDecoder,this.TEXT_ENCODER_=new TextEncoder,this.memory_=new Uint8Array(this.MEMORY_LENGTH_)};return Object.defineProperty(t.prototype,"CHUNCK_LENGTH",{get:function(){"use strict";return 0|this.CHUNCK_LENGTH_}}),Object.defineProperty(t.prototype,"Base64ABCCC_E",{get:function(){return function(e){"use strict";return 255&this.Base64ABCCC_[0|e]}}}),Object.defineProperty(t.prototype,"B64C_E",{get:function(){return function(e){"use strict";return 255&this.B64C_[0|e]}}}),Object.defineProperty(t.prototype,"B64EC",{get:function(){"use strict";return 0|this.B64EC_}}),Object.defineProperty(t.prototype,"B64CL",{get:function(){"use strict";return 0|this.B64CL_}}),Object.defineProperty(t.prototype,"encodeText",{get:function(){return function(e){"use strict";return this.TEXT_ENCODER_.encode(e)}},enumerable:!1,configurable:!1}),Object.defineProperty(t.prototype,"decodeText",{get:function(){return function(e){"use strict";return this.TEXT_DECODER_.decode(e)}},enumerable:!1,configurable:!1}),Object.defineProperty(t.prototype,"maybeExtendMemory",{get:function(){return function(e){"use strict";e=(0|e)>>>0,this.memory_=new Uint8Array(e+(e&this.MEMORY_LENGTH_)|0)}},enumerable:!1,configurable:!1}),Object.defineProperty(t.prototype,"setMemory",{get:function(){return function(e,t){"use strict";this.memory_[(0|e)>>>0]=255&(0|t)}},enumerable:!1,configurable:!1}),Object.defineProperty(t.prototype,"getMemorySubarray",{get:function(){return function(e,t){"use strict";return e=(0|e)>>>0,t=(0|t)>>>0,this.memory_.subarray(0|e,0|t)}},enumerable:!1,configurable:!1}),Object.defineProperty(t.prototype,"getMemorySlice",{get:function(){return function(e,t){"use strict";return e=(0|e)>>>0,t=(0|t)>>>0,this.memory_.slice(0|e,0|t)}},enumerable:!1,configurable:!1}),Object.defineProperty(t.prototype,"setMemoryUint8a",{get:function(){return function(e,t){"use strict";this.memory_.set(t,(0|e)>>>0)}},enumerable:!1,configurable:!1}),t.prototype.encode_string=function(e){"use strict";return this.decodeText(this.getMemorySubarray(0,0|e))},t.prototype.encode=function(e){"use strict";var t=2,r=0,i=0|e.length,o=4*Math.ceil(i/3)|0;for(this.maybeExtendMemory(o),t=2,r=0;(0|t)<(0|i);t=(t+3|0)>>>0,r=(r+4|0)>>>0)this.setMemoryUint8a(0|r,Uint8Array.of(255&this.Base64ABCCC_E(e[t-2|0]>>2),255&this.Base64ABCCC_E((3&e[t-2|0])<<4|e[t-1|0]>>4),255&this.Base64ABCCC_E((15&e[t-1|0])<<2|e[t]>>6),255&this.Base64ABCCC_E(63&e[0|t])));return(0|t)==(i+1|0)&&(this.setMemory(0|r,255&this.Base64ABCCC_E(e[t-2|0]>>2)),this.setMemory(r+1|0,255&this.Base64ABCCC_E((3&e[t-2|0])<<4)),this.setMemory(r+2|0,255&"=".charCodeAt(0)),this.setMemory(r+3|0,255&"=".charCodeAt(0)),r=(r+4|0)>>>0),(0|t)==(0|i)&&(this.setMemory(0|r,255&this.Base64ABCCC_E(e[t-2|0]>>2)),this.setMemory(r+1|0,255&this.Base64ABCCC_E((3&e[t-2|0])<<4|e[t-1|0]>>4)),this.setMemory(r+2|0,255&this.Base64ABCCC_E((15&e[t-1|0])<<2)),this.setMemory(r+3|0,255&"=".charCodeAt(0)),r=(r+4|0)>>>0),this.encode_string(0|r)},t.prototype._getBase64CodesBufferResults=function(e){"use strict";return Uint8Array.of(e>>16&255,e>>8&255,255&e)},t.prototype._getBase64CodesBufferResultsBy4=function(e,t,r,i,o){"use strict";return o[0]=e>>16&255,o[1]=e>>8&255,o[2]=255&e,o[3]=t>>16&255,o[4]=t>>8&255,o[5]=255&t,o[6]=r>>16&255,o[7]=r>>8&255,o[8]=255&r,o[9]=i>>16&255,o[10]=i>>8&255,o[11]=255&i,o},t.prototype._getBase64Code=function(e){"use strict";if((0|(e=255&(0|e)))>>>0>=(0|this.B64CL)>>>0)throw new Error("Unable to parse base64 string.");var t=(0|this.B64C_E(0|e))>>>0;if((0|t)>>>0==(0|this.B64EC)>>>0)throw new Error("Unable to parse base64 string.");return 255&(0|t)},t.prototype._getBase64CodesBuffer=function(e){"use strict";return(this._getBase64Code(e[0])<<18|this._getBase64Code(e[1])<<12|this._getBase64Code(e[2])<<6|this._getBase64Code(e[3])|0)>>>0},t.prototype.decode=function(e,t){"use strict";if(t=void 0===t?0:1&(0|t),(e.length%4|0)>0)throw new Error("Unable to parse base64 string.");var r=0|e.indexOf("=");if((0|r)>-1&&(0|r)<(e.length-2|0))throw new Error("Unable to parse base64 string.");var i=this.encodeText(e),o=e.endsWith("==")?2:e.endsWith("=")?1:0,n=0|e.length,s=n/4*3|0;this.maybeExtendMemory(s);for(var u=new Uint8Array(16),c=new Uint8Array(12),a=0,C=0;(a+16|0)<(0|n);a=(a+16|0)>>>0,C=(C+12|0)>>>0)u.set(i.subarray(0|a,a+16|0)),this.setMemoryUint8a(0|C,this._getBase64CodesBufferResultsBy4(this._getBase64CodesBuffer(u.subarray(0,4)),this._getBase64CodesBuffer(u.subarray(4,8)),this._getBase64CodesBuffer(u.subarray(8,12)),this._getBase64CodesBuffer(u.subarray(12,16)),c));for(;(0|a)<(0|n);a=(a+4|0)>>>0,C=(C+3|0)>>>0)this.setMemoryUint8a(0|C,this._getBase64CodesBufferResults(this._getBase64CodesBuffer(i.subarray(0|a,a+4|0))));return(0|t)>0?this.getMemorySlice(0,s-o|0):this.getMemorySubarray(0,s-o|0)},t}(),t=function(){var e={TILD_CHAR_CODE:126};e.BACKSLASH_CHAR=String.fromCharCode(92),e.SLASH_CHAR=String.fromCharCode(47),e.CHUNCK_LENGTH=512,e.CHUNCK_LENGTH_BIT_N=9,e.MEMORY_LENGTH=16384,e.MAPPING=[32,33,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,93,94,95,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126],e.ENCODE_MAPPING=new Uint8Array(256).fill(0),e.DECODE_MAPPING=new Uint8Array(256).fill(255),e.MAPPING.forEach((function(t,r){e.ENCODE_MAPPING[r]=255&t,e.DECODE_MAPPING[t]=255&r}));var t=function t(){return this instanceof t?(this.TILD_CHAR_CODE_=e.TILD_CHAR_CODE,this.BACKSLASH_CHAR_=e.BACKSLASH_CHAR,this.SLASH_CHAR_=e.SLASH_CHAR,this.MEMORY_LENGTH_=e.MEMORY_LENGTH,this.CHUNCK_LENGTH_=e.CHUNCK_LENGTH,this.CHUNCK_LENGTH_BIT_N_=e.CHUNCK_LENGTH_BIT_N_,this.ENCODE_MAPPING_=e.ENCODE_MAPPING,this.DECODE_MAPPING_=e.DECODE_MAPPING,this.TEXT_DECODER_=new TextDecoder,this.memory_=new Uint8Array(this.MEMORY_LENGTH_),this):new t};return Object.defineProperty(t.prototype,"decodeText",{get:function(){return function(e){"use strict";return this.TEXT_DECODER_.decode(e)}},enumerable:!1,configurable:!1}),Object.defineProperty(t.prototype,"maybeExtendMemory",{get:function(){return function(e){"use strict";e=(0|e)>>>0,this.memory_=new Uint8Array(e+(e&this.MEMORY_LENGTH_)|0)}},enumerable:!1,configurable:!1}),Object.defineProperty(t.prototype,"setMemory",{get:function(){return function(e,t){"use strict";this.memory_[(0|e)>>>0]=255&(0|t)}},enumerable:!1,configurable:!1}),Object.defineProperty(t.prototype,"getMemorySubarray",{get:function(){return function(e,t){"use strict";return e=(0|e)>>>0,t=(0|t)>>>0,this.memory_.subarray(0|e,0|t)}},enumerable:!1,configurable:!1}),Object.defineProperty(t.prototype,"getMemorySlice",{get:function(){return function(e,t){"use strict";return e=(0|e)>>>0,t=(0|t)>>>0,this.memory_.slice(0|e,0|t)}},enumerable:!1,configurable:!1}),Object.defineProperty(t.prototype,"setMemory128bits",{get:function(){return function(e,t){"use strict";this.memory_.set(t,(0|e)>>>0)}},enumerable:!1,configurable:!1}),Object.defineProperty(t.prototype,"decode128bitsChars",{get:function(){return function(e){"use strict";e[0]=255&this.DECODE_MAPPING_[0|e[0]],e[1]=255&this.DECODE_MAPPING_[0|e[1]],e[2]=255&this.DECODE_MAPPING_[0|e[2]],e[3]=255&this.DECODE_MAPPING_[0|e[3]],e[4]=255&this.DECODE_MAPPING_[0|e[4]],e[5]=255&this.DECODE_MAPPING_[0|e[5]],e[6]=255&this.DECODE_MAPPING_[0|e[6]],e[7]=255&this.DECODE_MAPPING_[0|e[7]],e[8]=255&this.DECODE_MAPPING_[0|e[8]],e[9]=255&this.DECODE_MAPPING_[0|e[9]],e[10]=255&this.DECODE_MAPPING_[0|e[10]],e[11]=255&this.DECODE_MAPPING_[0|e[11]],e[12]=255&this.DECODE_MAPPING_[0|e[12]],e[13]=255&this.DECODE_MAPPING_[0|e[13]],e[14]=255&this.DECODE_MAPPING_[0|e[14]],e[15]=255&this.DECODE_MAPPING_[0|e[15]]}},enumerable:!1,configurable:!1}),Object.defineProperty(t.prototype,"decode128bitsString",{get:function(){return function(e,t,r){"use strict";return e[0]=255&t.charCodeAt(0|r),e[1]=255&t.charCodeAt(r+1|0),e[2]=255&t.charCodeAt(r+2|0),e[3]=255&t.charCodeAt(r+3|0),e[4]=255&t.charCodeAt(r+4|0),e[5]=255&t.charCodeAt(r+5|0),e[6]=255&t.charCodeAt(r+6|0),e[7]=255&t.charCodeAt(r+7|0),e[8]=255&t.charCodeAt(r+8|0),e[9]=255&t.charCodeAt(r+9|0),e[10]=255&t.charCodeAt(r+10|0),e[11]=255&t.charCodeAt(r+11|0),e[12]=255&t.charCodeAt(r+12|0),e[13]=255&t.charCodeAt(r+13|0),e[14]=255&t.charCodeAt(r+14|0),e[15]=255&t.charCodeAt(r+15|0),e}},enumerable:!1,configurable:!1}),Object.defineProperty(t.prototype,"decodeChar",{get:function(){return function(e){"use strict";return(0|this.DECODE_MAPPING_[(0|e)>>>0])>>>0}},enumerable:!1,configurable:!1}),Object.defineProperty(t.prototype,"encodeChar",{get:function(){return function(e){"use strict";return(0|this.ENCODE_MAPPING_[(0|e)>>>0])>>>0}},enumerable:!1,configurable:!1}),Object.defineProperty(t.prototype,"BACKSLASH_CHAR",{get:function(){"use strict";return 0|this.BACKSLASH_CHAR_},enumerable:!1,configurable:!1}),Object.defineProperty(t.prototype,"SLASH_CHAR",{get:function(){"use strict";return 0|this.SLASH_CHAR_},enumerable:!1,configurable:!1}),Object.defineProperty(t.prototype,"CHUNCK_LENGTH",{get:function(){"use strict";return 0|this.CHUNCK_LENGTH_},enumerable:!1,configurable:!1}),Object.defineProperty(t.prototype,"CHUNCK_LENGTH_BIT_N",{get:function(){"use strict";return 0|this.CHUNCK_LENGTH_BIT_N_},enumerable:!1,configurable:!1}),Object.defineProperty(t.prototype,"TILD_CHAR_CODE",{get:function(){"use strict";return 0|this.TILD_CHAR_CODE_},enumerable:!1,configurable:!1}),t.prototype.encode_string=function(e){"use strict";return this.decodeText(this.getMemorySubarray(0,0|e))},Object.defineProperty(t.prototype,"computeDoubleChar",{get:function(){return function(e,t,r){"use strict";e=(0|e)>>>0;var i=Math.floor(e/91),o=e%91;t[(0|r)>>>0]=255&this.ENCODE_MAPPING_[i],t[(r+1|0)>>>0]=255&this.ENCODE_MAPPING_[o]}},enumerable:!1,configurable:!1}),t.prototype.encode=function(e){"use strict";var t=0|e.length,r=(0|t)<33?0:(t-33|0)>>>0,i=(8*t|0)%13|0,o=Uint32Array.of(0,0,0,0,0,0,r,t,0,0,0,0),n=new Uint8Array(64),s=n.subarray(0,16),u=n.subarray(16,32),c=n.subarray(32,48),a=n.subarray(48,64);if(0==(0|e.length))return this.setMemory(0,this.TILD_CHAR_CODE),this.encode_string(1);i=0==(0|i)?2*(8*t/13|0)|0:(0|i)<7?2*(8*t/13|0)+1|0:2*(8*t/13|0)+2|0,this.maybeExtendMemory(i);var C=this.computeDoubleChar.bind(this);function h(e){_(e,0),_(e,1),_(e,2),_(e,3),_(e,4),_(e,5),_(e,6),_(e,7),o[0]=(o[0]+8|0)>>>0}function _(t,r){o[3]=(o[3]<<8|e[o[0]+r|0]|0)>>>0,o[4]=(o[4]+8|0)>>>0,(0|o[4])>=13&&(o[4]=(o[4]-13|0)>>>0,C(o[3]>>o[4]&8191,t,o[1]-o[2]|0),o[1]=(o[1]+2|0)>>>0)}for(;o[0]<o[6];)o[2]=o[1],o[8]=o[1],h(s),o[2]=o[1],o[9]=o[1],h(u),o[2]=o[1],o[10]=o[1],h(c),o[2]=o[1],o[11]=o[1],h(a),this.setMemory128bits(o[8],s),this.setMemory128bits(o[9],u),this.setMemory128bits(o[10],c),this.setMemory128bits(o[11],a);for(;o[0]<o[7];o[0]=(o[0]+1|0)>>>0)o[3]=(o[3]<<8|e[o[0]])>>>0,o[4]=(o[4]+8|0)>>>0,(0|o[4])>=13&&(o[5]=o[3]>>(o[4]-13|0)&8191,this.setMemory(0|o[1],255&this.encodeChar(o[5]/91|0)),this.setMemory(o[1]+1|0,255&this.encodeChar(o[5]%91|0)),o[1]=(o[1]+2|0)>>>0,o[4]=o[4]-13|0);return 0<(0|o[4])&&(0|o[4])<7?(o[5]=o[3]<<(6-o[4]|0)&63,this.setMemory(0|o[1],255&this.encodeChar(0|o[5])),o[1]=(o[1]+1|0)>>>0):7<=(0|o[4])&&(o[5]=o[3]<<(13-o[4]|0)&8191,this.setMemory(0|o[1],this.encodeChar(o[5]/91|0)),this.setMemory(o[1]+1|0,255&this.encodeChar(o[5]%91|0)),o[1]=(o[1]+2|0)>>>0),this.encode_string(o[1])},t.prototype.decode=function(e,t){"use strict";t=void 0===t?0:1&(0|t);var r=0,i=0,o=0,n=0,s=new Uint8Array(64),u=s.subarray(0,16),c=s.subarray(16,32),a=s.subarray(32,48),C=s.subarray(48,64),h=Math.imul,_=e.length,f=_-65|0,y=(13*_+_%2*6)/8|0;if(this.maybeExtendMemory(y),0==(e.charCodeAt(0)-this.TILD_CHAR_CODE|0)||0==(0|_))return Uint8Array.of(this.TILD_CHAR_CODE);if((0|_)<2)return Uint8Array.of();var d=this.setMemory.bind(this);function E(e){b(e,0),b(e,2),b(e,4),b(e,6),b(e,8),b(e,10),b(e,12),b(e,14)}function b(e,t){for(o=o<<13|h(e[0|t],91)+e[t+1|0]|0,n=(n+13|0)>>>0;(0|n)>=8;)d(0|i,o>>n-8&255),i=(i+1|0)>>>0,n=(n-8|0)>>>0}for(;(0|r)<(0|f);r=(r+64|0)>>>0)this.decode128bitsChars(this.decode128bitsString(u,e,0|r)),this.decode128bitsChars(this.decode128bitsString(c,e,r+16|0)),this.decode128bitsChars(this.decode128bitsString(a,e,r+32|0)),this.decode128bitsChars(this.decode128bitsString(C,e,r+48|0)),E(u),E(c),E(a),E(C);for(;(0|r)<(_-1|0);r=(r+2|0)>>>0)for(u[0]=this.decodeChar(e.charCodeAt(0|r)),u[1]=this.decodeChar(e.charCodeAt(r+1|0)),o=o<<13|h(u[0],91)+u[1]|0,n=(n+13|0)>>>0;(0|n)>=8;)this.setMemory(0|i,o>>n-8&255),i=(i+1|0)>>>0,n=(n-8|0)>>>0;if(_%2==1)for(o=o<<6|this.decodeChar(e.charCodeAt(_-1|0)),n=(n+6|0)>>>0;(0|n)>=8;)this.setMemory(0|i,o>>n-8&255),i=(i+1|0)>>>0,n=(n-8|0)>>>0;return(0|t)>0?this.getMemorySlice(0,0|i):this.getMemorySubarray(0,0|i)},t}();window.Base92=t,window.Base64=e,window}();