varliner=function(e){functionr(n){if(t[n])returnt[n].exports;vara=t[n]={i:n,l:!1,exports:{}};returne[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}vart={};returnr.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},r.n=function(e){vart=e&&e.__esModule?function(){returne.default}:function(){returne};returnr.d(t,"a",t),t},r.o=function(e,r){returnObject.prototype.hasOwnProperty.call(e,r)},r.p="",r(r.s=18)}([function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),function(e){functionn(e){for(varr,t=e,n=/[^%](%\d+)/g,a=[];r=n.exec(t);)a.push({arg:r[1],index:r.index});for(varo=a.length-1;o>=0;o--){vars=a[o],i=s.arg.substring(1),c=s.index+1;t=t.substring(0,c)+arguments[+i]+t.substring(c+1+i.length)}returnt=t.replace("%%","%")}functiona(e){varr;r="string"==typeofe?{name:e}:e,h.checkAlgorithm(r);vart=e;returnt.hash&&(t.hash=a(t.hash)),r}functiono(e,r){if(!e)thrownewi("Parameter '"+r+"' is required and cant be empty");if("undefined"!=typeofBuffer&&Buffer.isBuffer(e))returnnewUint8Array(e);if(ArrayBuffer.isView(e)){vart=e.map(function(e){returne});returnnewUint8Array(t.buffer)}if(einstanceofArrayBuffer)returnnewUint8Array(e);thrownewi("Incoming parameter '"+r+"' has wrong data type. Must be ArrayBufferView or ArrayBuffer")}t.d(r,"WebCryptoError",function(){returni}),t.d(r,"AlgorithmError",function(){returnc}),t.d(r,"CryptoKeyError",function(){returnu}),t.d(r,"PrepareAlgorithm",function(){returna}),t.d(r,"PrepareData",function(){returno}),t.d(r,"BaseCrypto",function(){returnh}),t.d(r,"AlgorithmNames",function(){returnp}),t.d(r,"Base64Url",function(){returny}),t.d(r,"SubtleCrypto",function(){returnW}),t.d(r,"Aes",function(){returnm}),t.d(r,"AesAlgorithmError",function(){returnA}),t.d(r,"AesWrapKey",function(){returnw}),t.d(r,"AesEncrypt",function(){returng}),t.d(r,"AesECB",function(){returnv}),t.d(r,"AesCBC",function(){returnC}),t.d(r,"AesCTR",function(){returnd}),t.d(r,"AesGCM",function(){returnk}),t.d(r,"AesKW",function(){returnb}),t.d(r,"RsaKeyGenParamsError",function(){returnM}),t.d(r,"RsaHashedImportParamsError",function(){returnG}),t.d(r,"Rsa",function(){returnB}),t.d(r,"RsaSSA",function(){returnT}),t.d(r,"RsaPSSParamsError",function(){returnD}),t.d(r,"RsaPSS",function(){returnH}),t.d(r,"RsaOAEPParamsError",function(){returnx}),t.d(r,"RsaOAEP",function(){returnj}),t.d(r,"EcKeyGenParamsError",function(){returnU}),t.d(r,"Ec",function(){return_}),t.d(r,"EcAlgorithmError",function(){returnS}),t.d(r,"EcDSA",function(){returnL}),t.d(r,"EcDH",function(){returnR}),t.d(r,"ShaAlgorithms",function(){returnE}),t.d(r,"Sha",function(){returnP});vars=t(8),i=function(e){functionr(r){for(vart=[],a=1;a<arguments.length;a++)t[a-1]=arguments[a];varo=e.call(this)||this;o.code=0,o.message=n.apply(void0,[r].concat(t));vars=newError(o.message);returns.name=o.constructor.name,o.stack=s.stack,o}returnObject(s.a)(r,e),r.NOT_SUPPORTED="Method is not supported",r}(Error),c=function(e){functionr(){varr=null!==e&&e.apply(this,arguments)||this;returnr.code=1,r}returnObject(s.a)(r,e),r.PARAM_REQUIRED="Algorithm hasn't got required paramter '%1'",r.PARAM_WRONG_TYPE="Algorithm has got wrong type for paramter '%1'. Must be %2",r.PARAM_WRONG_VALUE="Algorithm has got wrong value for paramter '%1'. Must be %2",r.WRONG_ALG_NAME="Algorithm has got wrong name '%1'. Must be '%2'",r.UNSUPPORTED_ALGORITHM="Algorithm '%1' is not supported",r.WRONG_USAGE="Algorithm doesn't support key usage '%1'",r}(i),u=function(e){functionr(){varr=null!==e&&e.apply(this,arguments)||this;returnr.code=3,r}returnObject(s.a)(r,e),r.EMPTY_KEY="CryptoKey is empty",r.WRONG_KEY_ALG="CryptoKey has wrong algorithm '%1'. Must be '%2'",r.WRONG_KEY_TYPE="CryptoKey has wrong type '%1'. Must be '%2'",r.WRONG_KEY_USAGE="CryptoKey has wrong key usage. Must be '%1'",r.NOT_EXTRACTABLE="CryptoKey is not extractable",r.WRONG_FORMAT="CryptoKey has '%1' type. It can be used with '%2' format",r.UNKNOWN_FORMAT="Unknownformatinuse'%1'.Mustbe
vara=Object.setPrototypeOf||{__proto__:[]}instanceofArray&&function(e,r){e.__proto__=r}||function(e,r){for(vartinr)r.hasOwnProperty(t)&&(e[t]=r[t])};Object.assign},function(e,r){e.exports=require("crypto")},function(e,r,t){"use strict";functionn(e,r){returnPromise.resolve().then(function(){if(e.key)returne;if(e.extractable){return(newm.Crypto).subtle.exportKey("jwk",e).then(function(t){varn=o(e);returnn&&(n=w.assign(n,e.algorithm)),r.importKey("jwk",t,n,!0,e.usages)})}thrownewA.LinerError("'key' is Native CryptoKey. It can't be converted to JS CryptoKey")})}functiona(e,r){w.BrowserInfo().name!==w.Browser.IE&&w.BrowserInfo().name!==w.Browser.Edge&&w.BrowserInfo().name!==w.Browser.Safari||!/^rsa/i.test(e.name)||(r.privateKey?(P.push({hash:e.hash,key:r.privateKey}),P.push({hash:e.hash,key:r.publicKey})):P.push({hash:e.hash,key:r}))}functiono(e){varr=null;returnP.some(function(t){returnt.key===e&&(r=w.assign({},e.algorithm,{hash:t.hash}),!0)}),r}functions(e,r){vart=[];e.privateKey?(t.push(e.privateKey),t.push(e.publicKey)):t.push(e),t.forEach(function(e){"keyUsage"ine&&(e.usages=e.keyUsage||[],e.usages.length||(["verify","encrypt","wrapKey"].forEach(function(t){r.indexOf(t)>-1&&("public"===e.type||"secret"===e.type)&&e.usages.push(t)}),["sign","decrypt","unwrapKey","deriveKey","deriveBits"].forEach(function(t){r.indexOf(t)>-1&&("private"===e.type||"secret"===e.type)&&e.usages.push(t)})))})}functioni(e,r,t){if(r&&w.BrowserInfo().name===w.Browser.IE){"extractable"ine&&(e.ext=e.extractable,deletee.extractable);varn=null;switch(r.name.toUpperCase()){casep.AlgorithmNames.RsaOAEP.toUpperCase():casep.AlgorithmNames.RsaPSS.toUpperCase():casep.AlgorithmNames.RsaSSA.toUpperCase():n=C.RsaCrypto;break;casep.AlgorithmNames.AesECB.toUpperCase():casep.AlgorithmNames.AesCBC.toUpperCase():casep.AlgorithmNames.AesGCM.toUpperCase():n=g.AesCrypto;break;default:thrownewA.LinerError(A.LinerError.UNSUPPORTED_ALGORITHM,r.name.toUpperCase())}n&&!e.alg&&(e.alg=n.alg2jwk(r)),"key_ops"ine||(e.key_ops=t)}}functionc(e){w.BrowserInfo().name===w.Browser.IE&&("ext"ine&&(e.extractable=e.ext,deletee.ext),deletee.key_ops,deletee.alg)}functionu(e){varr=/AppleWebKit\/(\d+)/.exec(self.navigator.userAgent);returne.toUpperCase()===p.AlgorithmNames.RsaOAEP&&r&&parseInt(r[1],10)<604}varh=this&&this.__extends||function(){vare=Object.setPrototypeOf||{__proto__:[]}instanceofArray&&function(e,r){e.__proto__=r}||function(e,r){for(vartinr)r.hasOwnProperty(t)&&(e[t]=r[t])};returnfunction(r,t){functionn(){this.constructor=r}e(r,t),r.prototype=null===t?Object.create(t):(n.prototype=t.prototype,newn)}}();Object.defineProperty(r,"__esModule",{value:!0});varp=t(0),f=t(0),y=t(0),l=t(4),m=t(2),A=t(1),w=t(5),g=t(11),v=t(12),C=t(13),d=t(14),k=t(15),b=t(16),E=t(17),P=[],U=function(e){functionr(){returnnull!==e&&e.apply(this,arguments)||this}returnh(r,e),r.prototype.generateKey=function(r,t,n){varo,i=this,c=arguments;returne.prototype.generateKey.apply(this,c).then(function(e){if(o=y.PrepareAlgorithm(r),!(w.BrowserInfo().name===w.Browser.Edge&&o.name.toUpperCase()===p.AlgorithmNames.AesGCM||u(o.name))&&l.nativeSubtle)try{returnl.nativeSubtle.generateKey.apply(l.nativeSubtle,c).catch(function(e){w.warn("WebCrypto: native generateKey for "+o.name+" doesn't work.",e&&e.message||"Unknown message")})}catch(e){w.warn("WebCrypto: native generateKey for "+o.name+" doesn't work.",e&&e.message||"Unknown message")}}).then(function(e){if(e){varc=Promise.resolve(e);if(w.BrowserInfo().name===w.Browser.Safari&&(o.name.toUpperCase()===p.AlgorithmNames.EcDH.toUpperCase()||o.name.toUpperCase()===p.AlgorithmNames.EcDSA.toUpperCase())){varu=e.publicKey;c=c.then(function(){returni.exportKey("jwk",u).then(function(a){returni.exportKey("spki",u).then(function(o){for(vars=p.Base64Url.decode(a.x),c=p.Base64Url.decode(a.y),u=s.length+c.length,h=newUint8Array(o),f=0;f<u;f++){vary=h[h.length-f-1],l=void0;if(l=f<c.length?c[c.length-f-1]:s[s.length+c.length-f-1],y!==l)returnw.warn("WebCrypto:ECkeyhaswrongpublickeyJWK.Keypairwillberecre
!function(f,t){"object"==typeofexports&&"undefined"!=typeofmodule?t(exports):"function"==typeofdefine&&define.amd?define(["exports"],t):t(f.asmCrypto={})}(this,function(f){"use strict";vart="undefined"!=typeofFloat64Array?Float64Array:Float32Array;functione(f,t){t=!!t;for(vare=f.length,r=newUint8Array(t?4*e:e),i=0,s=0;i<e;i++){varn=f.charCodeAt(i);if(t&&55296<=n&&n<=56319){if(++i>=e)thrownewError("Malformed string, low surrogate expected at position "+i);n=(55296^n)<<10|65536|56320^f.charCodeAt(i)}elseif(!t&&n>>>8)thrownewError("Wide characters are not allowed.");!t||n<=127?r[s++]=n:n<=2047?(r[s++]=192|n>>6,r[s++]=128|63&n):n<=65535?(r[s++]=224|n>>12,r[s++]=128|n>>6&63,r[s++]=128|63&n):(r[s++]=240|n>>18,r[s++]=128|n>>12&63,r[s++]=128|n>>6&63,r[s++]=128|63&n)}returnr.subarray(0,s)}functionr(f,t){t=!!t;for(vare=f.length,r=newArray(e),i=0,s=0;i<e;i++){varn=f[i];if(!t||n<128)r[s++]=n;elseif(n>=192&&n<224&&i+1<e)r[s++]=(31&n)<<6|63&f[++i];elseif(n>=224&&n<240&&i+2<e)r[s++]=(15&n)<<12|(63&f[++i])<<6|63&f[++i];else{if(!(n>=240&&n<248&&i+3<e))thrownewError("Malformed UTF8 character at byte offset "+i);vara=(7&n)<<18|(63&f[++i])<<12|(63&f[++i])<<6|63&f[++i];a<=65535?r[s++]=a:(a^=65536,r[s++]=55296|a>>10,r[s++]=56320|1023&a)}}varh="";for(i=0;i<s;i+=16384)h+=String.fromCharCode.apply(String,r.slice(i,i+16384<=s?i+16384:s));returnh}functioni(f){for(vart="",e=0;e<f.length;e++){varr=(255&f[e]).toString(16);r.length<2&&(t+="0"),t+=r}returnt}functions(f){returnbtoa(r(f))}functionn(f){return"number"==typeoff}functiona(f){return"string"==typeoff}functionh(f){returnfinstanceofArrayBuffer}functiono(f){returnfinstanceofUint8Array}functionx(f){returnfinstanceofInt8Array||finstanceofUint8Array||finstanceofInt16Array||finstanceofUint16Array||finstanceofInt32Array||finstanceofUint32Array||finstanceofFloat32Array||finstanceofFloat64Array}functionc(f,t,e){varr=t?t.byteLength:e||65536;if(4095&r||r<=0)thrownewError("heap size must be a positive integer and a multiple of 4096");returnt=t||newf(newArrayBuffer(r))}functionu(f,t,e,r,i){vars=f.length-t,n=s<i?s:i;returnf.set(e.subarray(r,r+n),t),n}functionl(){varf=Error.apply(this,arguments);this.message=f.message,this.stack=f.stack}functiony(){varf=Error.apply(this,arguments);this.message=f.message,this.stack=f.stack}functionw(){varf=Error.apply(this,arguments);this.message=f.message,this.stack=f.stack}l.prototype=Object.create(Error.prototype,{name:{value:"IllegalStateError"}}),y.prototype=Object.create(Error.prototype,{name:{value:"IllegalArgumentError"}}),w.prototype=Object.create(Error.prototype,{name:{value:"SecurityError"}});vard=function(){varf,t,e=!1;functionr(e,r){vari=f[(t[e]+t[r])%255];return0!==e&&0!==r||(i=0),i}vari,s,n,a;functionh(){functionh(e){varr,i,s;for(i=s=function(e){varr=f[255-t[e]];return0===e&&(r=0),r}(e),r=0;r<4;r++)s^=i=255&(i<<1|i>>>7);returns^=99}e||function(){f=[],t=[];varr,i,s=1;for(r=0;r<255;r++)f[r]=s,i=128&s,s<<=1,s&=255,128===i&&(s^=27),s^=f[r],t[f[r]]=r;f[255]=f[0],t[0]=0,e=!0}(),i=[],s=[],n=[[],[],[],[]],a=[[],[],[],[]];for(varo=0;o<256;o++){varx=h(o);i[o]=x,s[x]=o,n[0][o]=r(2,x)<<24|x<<16|x<<8|r(3,x),a[0][x]=r(14,o)<<24|r(9,o)<<16|r(13,o)<<8|r(11,o);for(varc=1;c<4;c++)n[c][o]=n[c-1][o]>>>8|n[c-1][o]<<24,a[c][x]=a[c-1][x]>>>8|a[c-1][x]<<24}}varo=function(f,t){h();vare=newUint32Array(t);e.set(i,512),e.set(s,768);for(varr=0;r<4;r++)e.set(n[r],4096+1024*r>>2),e.set(a[r],8192+1024*r>>2);varo=function(f,t,e){"use asm";varr=0,i=0,s=0,n=0,a=0,h=0,o=0,x=0,c=0,u=0,l=0,y=0,w=0,d=0,p=0,g=0,v=0,b=0,m=0,_=0,A=0;varE=newf.Uint32Array(e),S=newf.Uint8Array(e);functionC(f,t,e,a,h,o,x,c){f=f|0;t=t|0;e=e|0;a=a|0;h=h|0;o=o|0;x=x|0;c=c|0;varu=0,l=0,y=0,w=0,d=0,p=0,g=0,v=0;u=e|0x400,l=e|0x800,y=e|0xc00;h=h^E[(f|0)>>2],o=o^E[(f|4)>>2],x=x^E[(f|8)>>2],c=c^E[(f|12)>>2];for(v=16;(v|0)<=a<<4;v=v+16|0){w=E[(e|h>>22&1020)>>2]^E[(u|o>>14&1020)>>2]^E[(l|x>>6&1020)>>2]^E[(y|c<<2&1020)>>2]^E[(f|v|0)>>2],d=E[(e|o>>22&1020)>>2]^E[(u|x>>14&1020)>>2]^E[(l|c>>6&1020)>>2]^E[(y|h<<2&1020)>>2]^E[(f|v|4)>>