19 lines
65 KiB
JavaScript
19 lines
65 KiB
JavaScript
|
import{ao as t,ap as r,a5 as e}from"./index-CH9-aFWw.js";var i={exports:{}};var o={exports:{}};const n=t(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var s;function a(){return s||(s=1,o.exports=(t=t||function(t,e){var i;if("undefined"!=typeof window&&window.crypto&&(i=window.crypto),"undefined"!=typeof self&&self.crypto&&(i=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(i=globalThis.crypto),!i&&"undefined"!=typeof window&&window.msCrypto&&(i=window.msCrypto),!i&&void 0!==r&&r.crypto&&(i=r.crypto),!i)try{i=n}catch(y){}var o=function(){if(i){if("function"==typeof i.getRandomValues)try{return i.getRandomValues(new Uint32Array(1))[0]}catch(y){}if("function"==typeof i.randomBytes)try{return i.randomBytes(4).readInt32LE()}catch(y){}}throw new Error("Native crypto module could not be used to get secure random number.")},s=Object.create||function(){function t(){}return function(r){var e;return t.prototype=r,e=new t,t.prototype=null,e}}(),a={},c=a.lib={},h=c.Base=function(){return{extend:function(t){var r=s(this);return t&&r.mixIn(t),r.hasOwnProperty("init")&&this.init!==r.init||(r.init=function(){r.$super.init.apply(this,arguments)}),r.init.prototype=r,r.$super=this,r},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var r in t)t.hasOwnProperty(r)&&(this[r]=t[r]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),f=c.WordArray=h.extend({init:function(t,r){t=this.words=t||[],this.sigBytes=r!=e?r:4*t.length},toString:function(t){return(t||u).stringify(this)},concat:function(t){var r=this.words,e=t.words,i=this.sigBytes,o=t.sigBytes;if(this.clamp(),i%4)for(var n=0;n<o;n++){var s=e[n>>>2]>>>24-n%4*8&255;r[i+n>>>2]|=s<<24-(i+n)%4*8}else for(var a=0;a<o;a+=4)r[i+a>>>2]=e[a>>>2];return this.sigBytes+=o,this},clamp:function(){var r=this.words,e=this.sigBytes;r[e>>>2]&=4294967295<<32-e%4*8,r.length=t.ceil(e/4)},clone:function(){var t=h.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var r=[],e=0;e<t;e+=4)r.push(o());return new f.init(r,t)}}),l=a.enc={},u=l.Hex={stringify:function(t){for(var r=t.words,e=t.sigBytes,i=[],o=0;o<e;o++){var n=r[o>>>2]>>>24-o%4*8&255;i.push((n>>>4).toString(16)),i.push((15&n).toString(16))}return i.join("")},parse:function(t){for(var r=t.length,e=[],i=0;i<r;i+=2)e[i>>>3]|=parseInt(t.substr(i,2),16)<<24-i%8*4;return new f.init(e,r/2)}},p=l.Latin1={stringify:function(t){for(var r=t.words,e=t.sigBytes,i=[],o=0;o<e;o++){var n=r[o>>>2]>>>24-o%4*8&255;i.push(String.fromCharCode(n))}return i.join("")},parse:function(t){for(var r=t.length,e=[],i=0;i<r;i++)e[i>>>2]|=(255&t.charCodeAt(i))<<24-i%4*8;return new f.init(e,r)}},d=l.Utf8={stringify:function(t){try{return decodeURIComponent(escape(p.stringify(t)))}catch(r){throw new Error("Malformed UTF-8 data")}},parse:function(t){return p.parse(unescape(encodeURIComponent(t)))}},v=c.BufferedBlockAlgorithm=h.extend({reset:function(){this._data=new f.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=d.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(r){var e,i=this._data,o=i.words,n=i.sigBytes,s=this.blockSize,a=n/(4*s),c=(a=r?t.ceil(a):t.max((0|a)-this._minBufferSize,0))*s,h=t.min(4*c,n);if(c){for(var l=0;l<c;l+=s)this._doProcessBlock(o,l);e=o.splice(0,c),i.sigBytes-=h}return new f.init(e,h)},clone:function(){var t=h.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0});c.Hasher=v.extend({cfg:h.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){v.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(r,e){return new t.init(e).finalize(r)}},_createHmacHelper:function(t){return function(r,e){return new _.HMAC.init(t,e).finalize(r)}}});var _=a.algo={};return a}(Math),t)),o.exports;v
|
||
|
/** @preserve
|
||
|
* Counter block mode compatible with Dr Brian Gladman fileenc.c
|
||
|
* derived from CryptoJS.mode.CTR
|
||
|
* Jan Hruby jhruby.web@gmail.com
|
||
|
*/
|
||
|
t.mode.CTRGladman=function(){var r=t.lib.BlockCipherMode.extend();function e(t){if(255&~(t>>24))t+=1<<24;else{var r=t>>16&255,e=t>>8&255,i=255&t;255===r?(r=0,255===e?(e=0,255===i?i=0:++i):++e):++r,t=0,t+=r<<16,t+=e<<8,t+=i}return t}function i(t){return 0===(t[0]=e(t[0]))&&(t[1]=e(t[1])),t}var o=r.Encryptor=r.extend({processBlock:function(t,r){var e=this._cipher,o=e.blockSize,n=this._iv,s=this._counter;n&&(s=this._counter=n.slice(0),this._iv=void 0),i(s);var a=s.slice(0);e.encryptBlock(a,0);for(var c=0;c<o;c++)t[r+c]^=a[c]}});return r.Decryptor=o,r}(),t.mode.CTRGladman));var t}var ct,ht={exports:{}};var ft,lt={exports:{}};var ut,pt={exports:{}};var dt,vt={exports:{}};var _t,yt={exports:{}};var gt,xt={exports:{}};var Bt,wt={exports:{}};var kt,bt={exports:{}};var mt,St={exports:{}};var At,Ht={exports:{}};function zt(){return At?Ht.exports:(At=1,Ht.exports=(t=a(),x(),S(),Q(),tt(),function(){var r=t,e=r.lib,i=e.WordArray,o=e.BlockCipher,n=r.algo,s=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],a=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],c=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],h=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,2
|
||
|
/** @preserve
|
||
|
(c) 2012 by Cédric Mesnil. All rights reserved.
|
||
|
|
||
|
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
||
|
|
||
|
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
||
|
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||
|
|
||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||
|
*/
|
||
|
function(){var r=t,e=r.lib,i=e.WordArray,o=e.Hasher,n=r.algo,s=i.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),a=i.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),c=i.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),h=i.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),f=i.create([0,1518500249,1859775393,2400959708,2840853838]),l=i.create([1352829926,1548603684,1836072691,2053994217,0]),u=n.RIPEMD160=o.extend({_doReset:function(){this._hash=i.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,r){for(var e=0;e<16;e++){var i=r+e,o=t[i];t[i]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var n,u,x,B,w,k,b,m,S,A,H,z=this._hash.words,C=f.words,R=l.words,D=s.words,E=a.words,M=c.words,P=h.words;for(k=n=z[0],b=u=z[1],m=x=z[2],S=B=z[3],A=w=z[4],e=0;e<80;e+=1)H=n+t[r+D[e]]|0,H+=e<16?p(u,x,B)+C[0]:e<32?d(u,x,B)+C[1]:e<48?v(u,x,B)+C[2]:e<64?_(u,x,B)+C[3]:y(u,x,B)+C[4],H=(H=g(H|=0,M[e]))+w|0,n=w,w=B,B=g(x,10),x=u,u=H,H=k+t[r+E[e]]|0,H+=e<16?y(b,m,S)+R[0]:e<32?_(b,m,S)+R[1]:e<48?v(b,m,S)+R[2]:e<64?d(b,m,S)+R[3]:p(b,m,S)+R[4],H=(H=g(H|=0,P[e]))+A|0,k=A,A=S,S=g(m,10),m=b,b=H;H=z[1]+x+S|0,z[1]=z[2]+B+A|0,z[2]=z[3]+w+k|0,z[3]=z[4]+n+b|0,z[4]=z[0]+u+m|0,z[0]=H},_doFinalize:function(){var t=this._data,r=t.words,e=8*this._nDataBytes,i=8*t.sigBytes;r[i>>>5]|=128<<24-i%32,r[14+(i+64>>>9<<4)]=16711935&(e<<8|e>>>24)|4278255360&(e<<24|e>>>8),t.sigBytes=4*(r.length+1),this._process();for(var o=this._hash,n=o.words,s=0;s<5;s++){var a=n[s];n[s]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}return o},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});function p(t,r,e){return t^r^e}function d(t,r,e){return t&r|~t&e}function v(t,r,e){return(t|~r)^e}function _(t,r,e){return t&e|r&~e}function y(t,r,e){return t^(r|~e)}function g(t,r){return t<<r|t>>>32-r}r.RIPEMD160=o._createHelper(u),r.HmacRIPEMD160=o._createHmacHelper(u)}(),t.RIPEMD160));var t}(),Z(),function(){return q?G.exports:(q=1,G.exports=(h=a(),D(),Z(),r=(t=h).lib,e=r.Base,i=r.WordArray,o=t.algo,n=o.SHA256,s=o.HMAC,c=o.PBKDF2=e.extend({cfg:e.extend({keySize:4,hasher:n,iterations:25e4}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,r){for(var e=this.cfg,o=s.create(e.hasher,t),n=i.create(),a=i.create([1]),c=n.words,h=a.words,f=e.keySize,l=e.iterations;c.length<f;){var u=o.update(r).finalize(a);o.reset();for(var p=u.words,d=p.length,v=u,_=1;_<l;_++){v=o.finalize(v),o.reset();for(var y=v.words,g=0;g<d;g++)p[g]^=y[g]}n.concat(u),h[0]++}return n.sigBytes=4*f,n}}),t.PBKDF2=function(t,r,e){return c.create(e).compute(t,r)},h.PBKDF2));var t,r,e,i,o,n,s,c,h}(),Q(),tt(),function(){return rt?et.exports:(rt=1,et.exports=(t=a(),tt(),t.mode.CFB=function(){var r=t.lib.BlockCipherMode.extend();function e(t,r,e,i){var o,n=this._iv;n?(o=n.slice(0),this._iv=void 0):o=this._prevBlock,i.encryptBlock(o,0);for(var s=0;s<e;s++)t[r+s]^=o[s]}return r.Encryptor=r.extend({processBlock:function(t,r){var i=this._cipher,o=i.blockSize;e.call(this,t,r,o,i),this._prevBlock=t.slice(r,r+o)}}),r.Decryptor=r.extend({processBlock:function(t,r){var i=this._cipher,o=i.blockSize,n=t.slice(r,r+o);e.call(this,t,r,o,i),this._prevBlock=n}}),r}(),t.mode.CFB));var t}(),function(){return it?ot.exports:(it=1,ot.exports=(e=a(),tt(),e.mode.CTR=(t=e.lib.BlockCipherMode.extend(),r=t.Encryptor=t.extend({processBlock:function(t,r){var e=this._cipher,i=e.blockSize,o=this._iv,n=this._counter;o&&(n=this._counter=o.slice(0),this._iv=void 0);var s=n.s
|