@circle-fin/smart-contract-platform 10.1.0 → 10.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,43 +1,46 @@
1
- "use strict";var Nr=require("util"),At=require("stream"),gp=require("path"),bl=require("http"),El=require("https"),Cc=require("url"),tm=require("fs"),Lr=require("crypto"),rm=require("assert"),xp=require("tty"),am=require("os"),tr=require("zlib"),nm=require("events");function yp(e,t){return function(){return e.apply(t,arguments)}}const{toString:im}=Object.prototype,{getPrototypeOf:Cl}=Object,{iterator:Sc,toStringTag:bp}=Symbol,Tc=(e=>t=>{const a=im.call(t);return e[a]||(e[a]=a.slice(8,-1).toLowerCase())})(Object.create(null)),Pt=e=>(e=e.toLowerCase(),t=>Tc(t)===e),wc=e=>t=>typeof t===e,{isArray:Ur}=Array,Dr=wc("undefined");function ra(e){return e!==null&&!Dr(e)&&e.constructor!==null&&!Dr(e.constructor)&&ft(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ep=Pt("ArrayBuffer");function sm(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Ep(e.buffer),t}const om=wc("string"),ft=wc("function"),Cp=wc("number"),aa=e=>e!==null&&typeof e=="object",cm=e=>e===!0||e===!1,Ac=e=>{if(Tc(e)!=="object")return!1;const t=Cl(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(bp in e)&&!(Sc in e)},lm=e=>{if(!aa(e)||ra(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},um=Pt("Date"),pm=Pt("File"),dm=Pt("Blob"),fm=Pt("FileList"),mm=e=>aa(e)&&ft(e.pipe),hm=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||ft(e.append)&&((t=Tc(e))==="formdata"||t==="object"&&ft(e.toString)&&e.toString()==="[object FormData]"))},vm=Pt("URLSearchParams"),[gm,xm,ym,bm]=["ReadableStream","Request","Response","Headers"].map(Pt),Em=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function na(e,t,{allOwnKeys:a=!1}={}){if(e===null||typeof e>"u")return;let r,n;if(typeof e!="object"&&(e=[e]),Ur(e))for(r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else{if(ra(e))return;const s=a?Object.getOwnPropertyNames(e):Object.keys(e),i=s.length;let o;for(r=0;r<i;r++)o=s[r],t.call(null,e[o],o,e)}}function Sp(e,t){if(ra(e))return null;t=t.toLowerCase();const a=Object.keys(e);let r=a.length,n;for(;r-- >0;)if(n=a[r],t===n.toLowerCase())return n;return null}const vr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Tp=e=>!Dr(e)&&e!==vr;function Sl(){const{caseless:e,skipUndefined:t}=Tp(this)&&this||{},a={},r=(n,s)=>{const i=e&&Sp(a,s)||s;Ac(a[i])&&Ac(n)?a[i]=Sl(a[i],n):Ac(n)?a[i]=Sl({},n):Ur(n)?a[i]=n.slice():(!t||!Dr(n))&&(a[i]=n)};for(let n=0,s=arguments.length;n<s;n++)arguments[n]&&na(arguments[n],r);return a}const Cm=(e,t,a,{allOwnKeys:r}={})=>(na(t,(n,s)=>{a&&ft(n)?e[s]=yp(n,a):e[s]=n},{allOwnKeys:r}),e),Sm=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Tm=(e,t,a,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),a&&Object.assign(e.prototype,a)},wm=(e,t,a,r)=>{let n,s,i;const o={};if(t=t||{},e==null)return t;do{for(n=Object.getOwnPropertyNames(e),s=n.length;s-- >0;)i=n[s],(!r||r(i,e,t))&&!o[i]&&(t[i]=e[i],o[i]=!0);e=a!==!1&&Cl(e)}while(e&&(!a||a(e,t))&&e!==Object.prototype);return t},Am=(e,t,a)=>{e=String(e),(a===void 0||a>e.length)&&(a=e.length),a-=t.length;const r=e.indexOf(t,a);return r!==-1&&r===a},Im=e=>{if(!e)return null;if(Ur(e))return e;let t=e.length;if(!Cp(t))return null;const a=new Array(t);for(;t-- >0;)a[t]=e[t];return a},Bm=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Cl(Uint8Array)),_m=(e,t)=>{const r=(e&&e[Sc]).call(e);let n;for(;(n=r.next())&&!n.done;){const s=n.value;t.call(e,s[0],s[1])}},Rm=(e,t)=>{let a;const r=[];for(;(a=e.exec(t))!==null;)r.push(a);return r},km=Pt("HTMLFormElement"),Nm=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,r,n){return r.toUpperCase()+n}),wp=(({hasOwnProperty:e})=>(t,a)=>e.call(t,a))(Object.prototype),Lm=Pt("RegExp"),Ap=(e,t)=>{const a=Object.getOwnPropertyDescriptors(e),r={};na(a,(n,s)=>{let i;(i=t(n,s,e))!==!1&&(r[s]=i||n)}),Object.defineProperties(e,r)},Um=e=>{Ap(e,(t,a)=>{if(ft(e)&&["arguments","caller","callee"].indexOf(a)!==-1)return!1;const r=e[a];if(ft(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+a+"'")})}})},Dm=(e,t)=>{const a={},r=n=>{n.forEach(s=>{a[s]=!0})};return Ur(e)?r(e):r(String(e).split(t)),a},Pm=()=>{},Om=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Fm(e){return!!(e&&ft(e.append)&&e[bp]==="FormData"&&e[Sc])}const Mm=e=>{const t=new Array(10),a=(r,n)=>{if(aa(r)){if(t.indexOf(r)>=0)return;if(ra(r))return r;if(!("toJSON"in r)){t[n]=r;const s=Ur(r)?[]:{};return na(r,(i,o)=>{const c=a(i,n+1);!Dr(c)&&(s[o]=c)}),t[n]=void 0,s}}return r};return a(e,0)},Vm=Pt("AsyncFunction"),qm=e=>e&&(aa(e)||ft(e))&&ft(e.then)&&ft(e.catch),Ip=((e,t)=>e?setImmediate:t?((a,r)=>(vr.addEventListener("message",({source:n,data:s})=>{n===vr&&s===a&&r.length&&r.shift()()},!1),n=>{r.push(n),vr.postMessage(a,"*")}))(`axios@${Math.random()}`,[]):a=>setTimeout(a))(typeof setImmediate=="function",ft(vr.postMessage)),jm=typeof queueMicrotask<"u"?queueMicrotask.bind(vr):typeof process<"u"&&process.nextTick||Ip,Km=e=>e!=null&&ft(e[Sc]);var A={isArray:Ur,isArrayBuffer:Ep,isBuffer:ra,isFormData:hm,isArrayBufferView:sm,isString:om,isNumber:Cp,isBoolean:cm,isObject:aa,isPlainObject:Ac,isEmptyObject:lm,isReadableStream:gm,isRequest:xm,isResponse:ym,isHeaders:bm,isUndefined:Dr,isDate:um,isFile:pm,isBlob:dm,isRegExp:Lm,isFunction:ft,isStream:mm,isURLSearchParams:vm,isTypedArray:Bm,isFileList:fm,forEach:na,merge:Sl,extend:Cm,trim:Em,stripBOM:Sm,inherits:Tm,toFlatObject:wm,kindOf:Tc,kindOfTest:Pt,endsWith:Am,toArray:Im,forEachEntry:_m,matchAll:Rm,isHTMLForm:km,hasOwnProperty:wp,hasOwnProp:wp,reduceDescriptors:Ap,freezeMethods:Um,toObjectSet:Dm,toCamelCase:Nm,noop:Pm,toFiniteNumber:Om,findKey:Sp,global:vr,isContextDefined:Tp,isSpecCompliantForm:Fm,toJSONObject:Mm,isAsyncFn:Vm,isThenable:qm,setImmediate:Ip,asap:jm,isIterable:Km};function j(e,t,a,r,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),a&&(this.config=a),r&&(this.request=r),n&&(this.response=n,this.status=n.status?n.status:null)}A.inherits(j,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:A.toJSONObject(this.config),code:this.code,status:this.status}}});const Bp=j.prototype,_p={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{_p[e]={value:e}}),Object.defineProperties(j,_p),Object.defineProperty(Bp,"isAxiosError",{value:!0}),j.from=(e,t,a,r,n,s)=>{const i=Object.create(Bp);A.toFlatObject(e,i,function(u){return u!==Error.prototype},l=>l!=="isAxiosError");const o=e&&e.message?e.message:"Error",c=t==null&&e?e.code:t;return j.call(i,o,c,a,r,n),e&&i.cause==null&&Object.defineProperty(i,"cause",{value:e,configurable:!0}),i.name=e&&e.name||"Error",s&&Object.assign(i,s),i};var zm=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Rp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var kp=At.Stream,Hm=Nr,$m=Ot;function Ot(){this.source=null,this.dataSize=0,this.maxDataSize=1024*1024,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}Hm.inherits(Ot,kp),Ot.create=function(e,t){var a=new this;t=t||{};for(var r in t)a[r]=t[r];a.source=e;var n=e.emit;return e.emit=function(){return a._handleEmit(arguments),n.apply(e,arguments)},e.on("error",function(){}),a.pauseStream&&e.pause(),a},Object.defineProperty(Ot.prototype,"readable",{configurable:!0,enumerable:!0,get:function(){return this.source.readable}}),Ot.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)},Ot.prototype.resume=function(){this._released||this.release(),this.source.resume()},Ot.prototype.pause=function(){this.source.pause()},Ot.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(e){this.emit.apply(this,e)}.bind(this)),this._bufferedEvents=[]},Ot.prototype.pipe=function(){var e=kp.prototype.pipe.apply(this,arguments);return this.resume(),e},Ot.prototype._handleEmit=function(e){if(this._released){this.emit.apply(this,e);return}e[0]==="data"&&(this.dataSize+=e[1].length,this._checkIfMaxDataSizeExceeded()),this._bufferedEvents.push(e)},Ot.prototype._checkIfMaxDataSizeExceeded=function(){if(!this._maxDataSizeExceeded&&!(this.dataSize<=this.maxDataSize)){this._maxDataSizeExceeded=!0;var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(e))}};var Gm=Nr,Np=At.Stream,Lp=$m,Qm=Ne;function Ne(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2*1024*1024,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}Gm.inherits(Ne,Np),Ne.create=function(e){var t=new this;e=e||{};for(var a in e)t[a]=e[a];return t},Ne.isStreamLike=function(e){return typeof e!="function"&&typeof e!="string"&&typeof e!="boolean"&&typeof e!="number"&&!Buffer.isBuffer(e)},Ne.prototype.append=function(e){var t=Ne.isStreamLike(e);if(t){if(!(e instanceof Lp)){var a=Lp.create(e,{maxDataSize:1/0,pauseStream:this.pauseStreams});e.on("data",this._checkDataSize.bind(this)),e=a}this._handleErrors(e),this.pauseStreams&&e.pause()}return this._streams.push(e),this},Ne.prototype.pipe=function(e,t){return Np.prototype.pipe.call(this,e,t),this.resume(),e},Ne.prototype._getNext=function(){if(this._currentStream=null,this._insideLoop){this._pendingNext=!0;return}this._insideLoop=!0;try{do this._pendingNext=!1,this._realGetNext();while(this._pendingNext)}finally{this._insideLoop=!1}},Ne.prototype._realGetNext=function(){var e=this._streams.shift();if(typeof e>"u"){this.end();return}if(typeof e!="function"){this._pipeNext(e);return}var t=e;t(function(a){var r=Ne.isStreamLike(a);r&&(a.on("data",this._checkDataSize.bind(this)),this._handleErrors(a)),this._pipeNext(a)}.bind(this))},Ne.prototype._pipeNext=function(e){this._currentStream=e;var t=Ne.isStreamLike(e);if(t){e.on("end",this._getNext.bind(this)),e.pipe(this,{end:!1});return}var a=e;this.write(a),this._getNext()},Ne.prototype._handleErrors=function(e){var t=this;e.on("error",function(a){t._emitError(a)})},Ne.prototype.write=function(e){this.emit("data",e)},Ne.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function"&&this._currentStream.pause(),this.emit("pause"))},Ne.prototype.resume=function(){this._released||(this._released=!0,this.writable=!0,this._getNext()),this.pauseStreams&&this._currentStream&&typeof this._currentStream.resume=="function"&&this._currentStream.resume(),this.emit("resume")},Ne.prototype.end=function(){this._reset(),this.emit("end")},Ne.prototype.destroy=function(){this._reset(),this.emit("close")},Ne.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null},Ne.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(e))}},Ne.prototype._updateDataSize=function(){this.dataSize=0;var e=this;this._streams.forEach(function(t){t.dataSize&&(e.dataSize+=t.dataSize)}),this._currentStream&&this._currentStream.dataSize&&(this.dataSize+=this._currentStream.dataSize)},Ne.prototype._emitError=function(e){this._reset(),this.emit("error",e)};var Up={},Wm={"application/1d-interleaved-parityfec":{source:"iana"},"application/3gpdash-qoe-report+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/3gpp-ims+xml":{source:"iana",compressible:!0},"application/3gpphal+json":{source:"iana",compressible:!0},"application/3gpphalforms+json":{source:"iana",compressible:!0},"application/a2l":{source:"iana"},"application/ace+cbor":{source:"iana"},"application/activemessage":{source:"iana"},"application/activity+json":{source:"iana",compressible:!0},"application/alto-costmap+json":{source:"iana",compressible:!0},"application/alto-costmapfilter+json":{source:"iana",compressible:!0},"application/alto-directory+json":{source:"iana",compressible:!0},"application/alto-endpointcost+json":{source:"iana",compressible:!0},"application/alto-endpointcostparams+json":{source:"iana",compressible:!0},"application/alto-endpointprop+json":{source:"iana",compressible:!0},"application/alto-endpointpropparams+json":{source:"iana",compressible:!0},"application/alto-error+json":{source:"iana",compressible:!0},"application/alto-networkmap+json":{source:"iana",compressible:!0},"application/alto-networkmapfilter+json":{source:"iana",compressible:!0},"application/alto-updatestreamcontrol+json":{source:"iana",compressible:!0},"application/alto-updatestreamparams+json":{source:"iana",compressible:!0},"application/aml":{source:"iana"},"application/andrew-inset":{source:"iana",extensions:["ez"]},"application/applefile":{source:"iana"},"application/applixware":{source:"apache",extensions:["aw"]},"application/at+jwt":{source:"iana"},"application/atf":{source:"iana"},"application/atfx":{source:"iana"},"application/atom+xml":{source:"iana",compressible:!0,extensions:["atom"]},"application/atomcat+xml":{source:"iana",compressible:!0,extensions:["atomcat"]},"application/atomdeleted+xml":{source:"iana",compressible:!0,extensions:["atomdeleted"]},"application/atomicmail":{source:"iana"},"application/atomsvc+xml":{source:"iana",compressible:!0,extensions:["atomsvc"]},"application/atsc-dwd+xml":{source:"iana",compressible:!0,extensions:["dwd"]},"application/atsc-dynamic-event-message":{source:"iana"},"application/atsc-held+xml":{source:"iana",compressible:!0,extensions:["held"]},"application/atsc-rdt+json":{source:"iana",compressible:!0},"application/atsc-rsat+xml":{source:"iana",compressible:!0,extensions:["rsat"]},"application/atxml":{source:"iana"},"application/auth-policy+xml":{source:"iana",compressible:!0},"application/bacnet-xdd+zip":{source:"iana",compressible:!1},"application/batch-smtp":{source:"iana"},"application/bdoc":{compressible:!1,extensions:["bdoc"]},"application/beep+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/calendar+json":{source:"iana",compressible:!0},"application/calendar+xml":{source:"iana",compressible:!0,extensions:["xcs"]},"application/call-completion":{source:"iana"},"application/cals-1840":{source:"iana"},"application/captive+json":{source:"iana",compressible:!0},"application/cbor":{source:"iana"},"application/cbor-seq":{source:"iana"},"application/cccex":{source:"iana"},"application/ccmp+xml":{source:"iana",compressible:!0},"application/ccxml+xml":{source:"iana",compressible:!0,extensions:["ccxml"]},"application/cdfx+xml":{source:"iana",compressible:!0,extensions:["cdfx"]},"application/cdmi-capability":{source:"iana",extensions:["cdmia"]},"application/cdmi-container":{source:"iana",extensions:["cdmic"]},"application/cdmi-domain":{source:"iana",extensions:["cdmid"]},"application/cdmi-object":{source:"iana",extensions:["cdmio"]},"application/cdmi-queue":{source:"iana",extensions:["cdmiq"]},"application/cdni":{source:"iana"},"application/cea":{source:"iana"},"application/cea-2018+xml":{source:"iana",compressible:!0},"application/cellml+xml":{source:"iana",compressible:!0},"application/cfw":{source:"iana"},"application/city+json":{source:"iana",compressible:!0},"application/clr":{source:"iana"},"application/clue+xml":{source:"iana",compressible:!0},"application/clue_info+xml":{source:"iana",compressible:!0},"application/cms":{source:"iana"},"application/cnrp+xml":{source:"iana",compressible:!0},"application/coap-group+json":{source:"iana",compressible:!0},"application/coap-payload":{source:"iana"},"application/commonground":{source:"iana"},"application/conference-info+xml":{source:"iana",compressible:!0},"application/cose":{source:"iana"},"application/cose-key":{source:"iana"},"application/cose-key-set":{source:"iana"},"application/cpl+xml":{source:"iana",compressible:!0,extensions:["cpl"]},"application/csrattrs":{source:"iana"},"application/csta+xml":{source:"iana",compressible:!0},"application/cstadata+xml":{source:"iana",compressible:!0},"application/csvm+json":{source:"iana",compressible:!0},"application/cu-seeme":{source:"apache",extensions:["cu"]},"application/cwt":{source:"iana"},"application/cybercash":{source:"iana"},"application/dart":{compressible:!0},"application/dash+xml":{source:"iana",compressible:!0,extensions:["mpd"]},"application/dash-patch+xml":{source:"iana",compressible:!0,extensions:["mpp"]},"application/dashdelta":{source:"iana"},"application/davmount+xml":{source:"iana",compressible:!0,extensions:["davmount"]},"application/dca-rft":{source:"iana"},"application/dcd":{source:"iana"},"application/dec-dx":{source:"iana"},"application/dialog-info+xml":{source:"iana",compressible:!0},"application/dicom":{source:"iana"},"application/dicom+json":{source:"iana",compressible:!0},"application/dicom+xml":{source:"iana",compressible:!0},"application/dii":{source:"iana"},"application/dit":{source:"iana"},"application/dns":{source:"iana"},"application/dns+json":{source:"iana",compressible:!0},"application/dns-message":{source:"iana"},"application/docbook+xml":{source:"apache",compressible:!0,extensions:["dbk"]},"application/dots+cbor":{source:"iana"},"application/dskpp+xml":{source:"iana",compressible:!0},"application/dssc+der":{source:"iana",extensions:["dssc"]},"application/dssc+xml":{source:"iana",compressible:!0,extensions:["xdssc"]},"application/dvcs":{source:"iana"},"application/ecmascript":{source:"iana",compressible:!0,extensions:["es","ecma"]},"application/edi-consent":{source:"iana"},"application/edi-x12":{source:"iana",compressible:!1},"application/edifact":{source:"iana",compressible:!1},"application/efi":{source:"iana"},"application/elm+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/elm+xml":{source:"iana",compressible:!0},"application/emergencycalldata.cap+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/emergencycalldata.comment+xml":{source:"iana",compressible:!0},"application/emergencycalldata.control+xml":{source:"iana",compressible:!0},"application/emergencycalldata.deviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.ecall.msd":{source:"iana"},"application/emergencycalldata.providerinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.serviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.subscriberinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.veds+xml":{source:"iana",compressible:!0},"application/emma+xml":{source:"iana",compressible:!0,extensions:["emma"]},"application/emotionml+xml":{source:"iana",compressible:!0,extensions:["emotionml"]},"application/encaprtp":{source:"iana"},"application/epp+xml":{source:"iana",compressible:!0},"application/epub+zip":{source:"iana",compressible:!1,extensions:["epub"]},"application/eshop":{source:"iana"},"application/exi":{source:"iana",extensions:["exi"]},"application/expect-ct-report+json":{source:"iana",compressible:!0},"application/express":{source:"iana",extensions:["exp"]},"application/fastinfoset":{source:"iana"},"application/fastsoap":{source:"iana"},"application/fdt+xml":{source:"iana",compressible:!0,extensions:["fdt"]},"application/fhir+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/fhir+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/fido.trusted-apps+json":{compressible:!0},"application/fits":{source:"iana"},"application/flexfec":{source:"iana"},"application/font-sfnt":{source:"iana"},"application/font-tdpfr":{source:"iana",extensions:["pfr"]},"application/font-woff":{source:"iana",compressible:!1},"application/framework-attributes+xml":{source:"iana",compressible:!0},"application/geo+json":{source:"iana",compressible:!0,extensions:["geojson"]},"application/geo+json-seq":{source:"iana"},"application/geopackage+sqlite3":{source:"iana"},"application/geoxacml+xml":{source:"iana",compressible:!0},"application/gltf-buffer":{source:"iana"},"application/gml+xml":{source:"iana",compressible:!0,extensions:["gml"]},"application/gpx+xml":{source:"apache",compressible:!0,extensions:["gpx"]},"application/gxf":{source:"apache",extensions:["gxf"]},"application/gzip":{source:"iana",compressible:!1,extensions:["gz"]},"application/h224":{source:"iana"},"application/held+xml":{source:"iana",compressible:!0},"application/hjson":{extensions:["hjson"]},"application/http":{source:"iana"},"application/hyperstudio":{source:"iana",extensions:["stk"]},"application/ibe-key-request+xml":{source:"iana",compressible:!0},"application/ibe-pkg-reply+xml":{source:"iana",compressible:!0},"application/ibe-pp-data":{source:"iana"},"application/iges":{source:"iana"},"application/im-iscomposing+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/index":{source:"iana"},"application/index.cmd":{source:"iana"},"application/index.obj":{source:"iana"},"application/index.response":{source:"iana"},"application/index.vnd":{source:"iana"},"application/inkml+xml":{source:"iana",compressible:!0,extensions:["ink","inkml"]},"application/iotp":{source:"iana"},"application/ipfix":{source:"iana",extensions:["ipfix"]},"application/ipp":{source:"iana"},"application/isup":{source:"iana"},"application/its+xml":{source:"iana",compressible:!0,extensions:["its"]},"application/java-archive":{source:"apache",compressible:!1,extensions:["jar","war","ear"]},"application/java-serialized-object":{source:"apache",compressible:!1,extensions:["ser"]},"application/java-vm":{source:"apache",compressible:!1,extensions:["class"]},"application/javascript":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["js","mjs"]},"application/jf2feed+json":{source:"iana",compressible:!0},"application/jose":{source:"iana"},"application/jose+json":{source:"iana",compressible:!0},"application/jrd+json":{source:"iana",compressible:!0},"application/jscalendar+json":{source:"iana",compressible:!0},"application/json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["json","map"]},"application/json-patch+json":{source:"iana",compressible:!0},"application/json-seq":{source:"iana"},"application/json5":{extensions:["json5"]},"application/jsonml+json":{source:"apache",compressible:!0,extensions:["jsonml"]},"application/jwk+json":{source:"iana",compressible:!0},"application/jwk-set+json":{source:"iana",compressible:!0},"application/jwt":{source:"iana"},"application/kpml-request+xml":{source:"iana",compressible:!0},"application/kpml-response+xml":{source:"iana",compressible:!0},"application/ld+json":{source:"iana",compressible:!0,extensions:["jsonld"]},"application/lgr+xml":{source:"iana",compressible:!0,extensions:["lgr"]},"application/link-format":{source:"iana"},"application/load-control+xml":{source:"iana",compressible:!0},"application/lost+xml":{source:"iana",compressible:!0,extensions:["lostxml"]},"application/lostsync+xml":{source:"iana",compressible:!0},"application/lpf+zip":{source:"iana",compressible:!1},"application/lxf":{source:"iana"},"application/mac-binhex40":{source:"iana",extensions:["hqx"]},"application/mac-compactpro":{source:"apache",extensions:["cpt"]},"application/macwriteii":{source:"iana"},"application/mads+xml":{source:"iana",compressible:!0,extensions:["mads"]},"application/manifest+json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["webmanifest"]},"application/marc":{source:"iana",extensions:["mrc"]},"application/marcxml+xml":{source:"iana",compressible:!0,extensions:["mrcx"]},"application/mathematica":{source:"iana",extensions:["ma","nb","mb"]},"application/mathml+xml":{source:"iana",compressible:!0,extensions:["mathml"]},"application/mathml-content+xml":{source:"iana",compressible:!0},"application/mathml-presentation+xml":{source:"iana",compressible:!0},"application/mbms-associated-procedure-description+xml":{source:"iana",compressible:!0},"application/mbms-deregister+xml":{source:"iana",compressible:!0},"application/mbms-envelope+xml":{source:"iana",compressible:!0},"application/mbms-msk+xml":{source:"iana",compressible:!0},"application/mbms-msk-response+xml":{source:"iana",compressible:!0},"application/mbms-protection-description+xml":{source:"iana",compressible:!0},"application/mbms-reception-report+xml":{source:"iana",compressible:!0},"application/mbms-register+xml":{source:"iana",compressible:!0},"application/mbms-register-response+xml":{source:"iana",compressible:!0},"application/mbms-schedule+xml":{source:"iana",compressible:!0},"application/mbms-user-service-description+xml":{source:"iana",compressible:!0},"application/mbox":{source:"iana",extensions:["mbox"]},"application/media-policy-dataset+xml":{source:"iana",compressible:!0,extensions:["mpf"]},"application/media_control+xml":{source:"iana",compressible:!0},"application/mediaservercontrol+xml":{source:"iana",compressible:!0,extensions:["mscml"]},"application/merge-patch+json":{source:"iana",compressible:!0},"application/metalink+xml":{source:"apache",compressible:!0,extensions:["metalink"]},"application/metalink4+xml":{source:"iana",compressible:!0,extensions:["meta4"]},"application/mets+xml":{source:"iana",compressible:!0,extensions:["mets"]},"application/mf4":{source:"iana"},"application/mikey":{source:"iana"},"application/mipc":{source:"iana"},"application/missing-blocks+cbor-seq":{source:"iana"},"application/mmt-aei+xml":{source:"iana",compressible:!0,extensions:["maei"]},"application/mmt-usd+xml":{source:"iana",compressible:!0,extensions:["musd"]},"application/mods+xml":{source:"iana",compressible:!0,extensions:["mods"]},"application/moss-keys":{source:"iana"},"application/moss-signature":{source:"iana"},"application/mosskey-data":{source:"iana"},"application/mosskey-request":{source:"iana"},"application/mp21":{source:"iana",extensions:["m21","mp21"]},"application/mp4":{source:"iana",extensions:["mp4s","m4p"]},"application/mpeg4-generic":{source:"iana"},"application/mpeg4-iod":{source:"iana"},"application/mpeg4-iod-xmt":{source:"iana"},"application/mrb-consumer+xml":{source:"iana",compressible:!0},"application/mrb-publish+xml":{source:"iana",compressible:!0},"application/msc-ivr+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msc-mixer+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msword":{source:"iana",compressible:!1,extensions:["doc","dot"]},"application/mud+json":{source:"iana",compressible:!0},"application/multipart-core":{source:"iana"},"application/mxf":{source:"iana",extensions:["mxf"]},"application/n-quads":{source:"iana",extensions:["nq"]},"application/n-triples":{source:"iana",extensions:["nt"]},"application/nasdata":{source:"iana"},"application/news-checkgroups":{source:"iana",charset:"US-ASCII"},"application/news-groupinfo":{source:"iana",charset:"US-ASCII"},"application/news-transmission":{source:"iana"},"application/nlsml+xml":{source:"iana",compressible:!0},"application/node":{source:"iana",extensions:["cjs"]},"application/nss":{source:"iana"},"application/oauth-authz-req+jwt":{source:"iana"},"application/oblivious-dns-message":{source:"iana"},"application/ocsp-request":{source:"iana"},"application/ocsp-response":{source:"iana"},"application/octet-stream":{source:"iana",compressible:!1,extensions:["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{source:"iana",extensions:["oda"]},"application/odm+xml":{source:"iana",compressible:!0},"application/odx":{source:"iana"},"application/oebps-package+xml":{source:"iana",compressible:!0,extensions:["opf"]},"application/ogg":{source:"iana",compressible:!1,extensions:["ogx"]},"application/omdoc+xml":{source:"apache",compressible:!0,extensions:["omdoc"]},"application/onenote":{source:"apache",extensions:["onetoc","onetoc2","onetmp","onepkg"]},"application/opc-nodeset+xml":{source:"iana",compressible:!0},"application/oscore":{source:"iana"},"application/oxps":{source:"iana",extensions:["oxps"]},"application/p21":{source:"iana"},"application/p21+zip":{source:"iana",compressible:!1},"application/p2p-overlay+xml":{source:"iana",compressible:!0,extensions:["relo"]},"application/parityfec":{source:"iana"},"application/passport":{source:"iana"},"application/patch-ops-error+xml":{source:"iana",compressible:!0,extensions:["xer"]},"application/pdf":{source:"iana",compressible:!1,extensions:["pdf"]},"application/pdx":{source:"iana"},"application/pem-certificate-chain":{source:"iana"},"application/pgp-encrypted":{source:"iana",compressible:!1,extensions:["pgp"]},"application/pgp-keys":{source:"iana",extensions:["asc"]},"application/pgp-signature":{source:"iana",extensions:["asc","sig"]},"application/pics-rules":{source:"apache",extensions:["prf"]},"application/pidf+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pidf-diff+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pkcs10":{source:"iana",extensions:["p10"]},"application/pkcs12":{source:"iana"},"application/pkcs7-mime":{source:"iana",extensions:["p7m","p7c"]},"application/pkcs7-signature":{source:"iana",extensions:["p7s"]},"application/pkcs8":{source:"iana",extensions:["p8"]},"application/pkcs8-encrypted":{source:"iana"},"application/pkix-attr-cert":{source:"iana",extensions:["ac"]},"application/pkix-cert":{source:"iana",extensions:["cer"]},"application/pkix-crl":{source:"iana",extensions:["crl"]},"application/pkix-pkipath":{source:"iana",extensions:["pkipath"]},"application/pkixcmp":{source:"iana",extensions:["pki"]},"application/pls+xml":{source:"iana",compressible:!0,extensions:["pls"]},"application/poc-settings+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/postscript":{source:"iana",compressible:!0,extensions:["ai","eps","ps"]},"application/ppsp-tracker+json":{source:"iana",compressible:!0},"application/problem+json":{source:"iana",compressible:!0},"application/problem+xml":{source:"iana",compressible:!0},"application/provenance+xml":{source:"iana",compressible:!0,extensions:["provx"]},"application/prs.alvestrand.titrax-sheet":{source:"iana"},"application/prs.cww":{source:"iana",extensions:["cww"]},"application/prs.cyn":{source:"iana",charset:"7-BIT"},"application/prs.hpub+zip":{source:"iana",compressible:!1},"application/prs.nprend":{source:"iana"},"application/prs.plucker":{source:"iana"},"application/prs.rdf-xml-crypt":{source:"iana"},"application/prs.xsf+xml":{source:"iana",compressible:!0},"application/pskc+xml":{source:"iana",compressible:!0,extensions:["pskcxml"]},"application/pvd+json":{source:"iana",compressible:!0},"application/qsig":{source:"iana"},"application/raml+yaml":{compressible:!0,extensions:["raml"]},"application/raptorfec":{source:"iana"},"application/rdap+json":{source:"iana",compressible:!0},"application/rdf+xml":{source:"iana",compressible:!0,extensions:["rdf","owl"]},"application/reginfo+xml":{source:"iana",compressible:!0,extensions:["rif"]},"application/relax-ng-compact-syntax":{source:"iana",extensions:["rnc"]},"application/remote-printing":{source:"iana"},"application/reputon+json":{source:"iana",compressible:!0},"application/resource-lists+xml":{source:"iana",compressible:!0,extensions:["rl"]},"application/resource-lists-diff+xml":{source:"iana",compressible:!0,extensions:["rld"]},"application/rfc+xml":{source:"iana",compressible:!0},"application/riscos":{source:"iana"},"application/rlmi+xml":{source:"iana",compressible:!0},"application/rls-services+xml":{source:"iana",compressible:!0,extensions:["rs"]},"application/route-apd+xml":{source:"iana",compressible:!0,extensions:["rapd"]},"application/route-s-tsid+xml":{source:"iana",compressible:!0,extensions:["sls"]},"application/route-usd+xml":{source:"iana",compressible:!0,extensions:["rusd"]},"application/rpki-ghostbusters":{source:"iana",extensions:["gbr"]},"application/rpki-manifest":{source:"iana",extensions:["mft"]},"application/rpki-publication":{source:"iana"},"application/rpki-roa":{source:"iana",extensions:["roa"]},"application/rpki-updown":{source:"iana"},"application/rsd+xml":{source:"apache",compressible:!0,extensions:["rsd"]},"application/rss+xml":{source:"apache",compressible:!0,extensions:["rss"]},"application/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"application/rtploopback":{source:"iana"},"application/rtx":{source:"iana"},"application/samlassertion+xml":{source:"iana",compressible:!0},"application/samlmetadata+xml":{source:"iana",compressible:!0},"application/sarif+json":{source:"iana",compressible:!0},"application/sarif-external-properties+json":{source:"iana",compressible:!0},"application/sbe":{source:"iana"},"application/sbml+xml":{source:"iana",compressible:!0,extensions:["sbml"]},"application/scaip+xml":{source:"iana",compressible:!0},"application/scim+json":{source:"iana",compressible:!0},"application/scvp-cv-request":{source:"iana",extensions:["scq"]},"application/scvp-cv-response":{source:"iana",extensions:["scs"]},"application/scvp-vp-request":{source:"iana",extensions:["spq"]},"application/scvp-vp-response":{source:"iana",extensions:["spp"]},"application/sdp":{source:"iana",extensions:["sdp"]},"application/secevent+jwt":{source:"iana"},"application/senml+cbor":{source:"iana"},"application/senml+json":{source:"iana",compressible:!0},"application/senml+xml":{source:"iana",compressible:!0,extensions:["senmlx"]},"application/senml-etch+cbor":{source:"iana"},"application/senml-etch+json":{source:"iana",compressible:!0},"application/senml-exi":{source:"iana"},"application/sensml+cbor":{source:"iana"},"application/sensml+json":{source:"iana",compressible:!0},"application/sensml+xml":{source:"iana",compressible:!0,extensions:["sensmlx"]},"application/sensml-exi":{source:"iana"},"application/sep+xml":{source:"iana",compressible:!0},"application/sep-exi":{source:"iana"},"application/session-info":{source:"iana"},"application/set-payment":{source:"iana"},"application/set-payment-initiation":{source:"iana",extensions:["setpay"]},"application/set-registration":{source:"iana"},"application/set-registration-initiation":{source:"iana",extensions:["setreg"]},"application/sgml":{source:"iana"},"application/sgml-open-catalog":{source:"iana"},"application/shf+xml":{source:"iana",compressible:!0,extensions:["shf"]},"application/sieve":{source:"iana",extensions:["siv","sieve"]},"application/simple-filter+xml":{source:"iana",compressible:!0},"application/simple-message-summary":{source:"iana"},"application/simplesymbolcontainer":{source:"iana"},"application/sipc":{source:"iana"},"application/slate":{source:"iana"},"application/smil":{source:"iana"},"application/smil+xml":{source:"iana",compressible:!0,extensions:["smi","smil"]},"application/smpte336m":{source:"iana"},"application/soap+fastinfoset":{source:"iana"},"application/soap+xml":{source:"iana",compressible:!0},"application/sparql-query":{source:"iana",extensions:["rq"]},"application/sparql-results+xml":{source:"iana",compressible:!0,extensions:["srx"]},"application/spdx+json":{source:"iana",compressible:!0},"application/spirits-event+xml":{source:"iana",compressible:!0},"application/sql":{source:"iana"},"application/srgs":{source:"iana",extensions:["gram"]},"application/srgs+xml":{source:"iana",compressible:!0,extensions:["grxml"]},"application/sru+xml":{source:"iana",compressible:!0,extensions:["sru"]},"application/ssdl+xml":{source:"apache",compressible:!0,extensions:["ssdl"]},"application/ssml+xml":{source:"iana",compressible:!0,extensions:["ssml"]},"application/stix+json":{source:"iana",compressible:!0},"application/swid+xml":{source:"iana",compressible:!0,extensions:["swidtag"]},"application/tamp-apex-update":{source:"iana"},"application/tamp-apex-update-confirm":{source:"iana"},"application/tamp-community-update":{source:"iana"},"application/tamp-community-update-confirm":{source:"iana"},"application/tamp-error":{source:"iana"},"application/tamp-sequence-adjust":{source:"iana"},"application/tamp-sequence-adjust-confirm":{source:"iana"},"application/tamp-status-query":{source:"iana"},"application/tamp-status-response":{source:"iana"},"application/tamp-update":{source:"iana"},"application/tamp-update-confirm":{source:"iana"},"application/tar":{compressible:!0},"application/taxii+json":{source:"iana",compressible:!0},"application/td+json":{source:"iana",compressible:!0},"application/tei+xml":{source:"iana",compressible:!0,extensions:["tei","teicorpus"]},"application/tetra_isi":{source:"iana"},"application/thraud+xml":{source:"iana",compressible:!0,extensions:["tfi"]},"application/timestamp-query":{source:"iana"},"application/timestamp-reply":{source:"iana"},"application/timestamped-data":{source:"iana",extensions:["tsd"]},"application/tlsrpt+gzip":{source:"iana"},"application/tlsrpt+json":{source:"iana",compressible:!0},"application/tnauthlist":{source:"iana"},"application/token-introspection+jwt":{source:"iana"},"application/toml":{compressible:!0,extensions:["toml"]},"application/trickle-ice-sdpfrag":{source:"iana"},"application/trig":{source:"iana",extensions:["trig"]},"application/ttml+xml":{source:"iana",compressible:!0,extensions:["ttml"]},"application/tve-trigger":{source:"iana"},"application/tzif":{source:"iana"},"application/tzif-leap":{source:"iana"},"application/ubjson":{compressible:!1,extensions:["ubj"]},"application/ulpfec":{source:"iana"},"application/urc-grpsheet+xml":{source:"iana",compressible:!0},"application/urc-ressheet+xml":{source:"iana",compressible:!0,extensions:["rsheet"]},"application/urc-targetdesc+xml":{source:"iana",compressible:!0,extensions:["td"]},"application/urc-uisocketdesc+xml":{source:"iana",compressible:!0},"application/vcard+json":{source:"iana",compressible:!0},"application/vcard+xml":{source:"iana",compressible:!0},"application/vemmi":{source:"iana"},"application/vividence.scriptfile":{source:"apache"},"application/vnd.1000minds.decision-model+xml":{source:"iana",compressible:!0,extensions:["1km"]},"application/vnd.3gpp-prose+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-prose-pc3ch+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-v2x-local-service-information":{source:"iana"},"application/vnd.3gpp.5gnas":{source:"iana"},"application/vnd.3gpp.access-transfer-events+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.bsf+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gmop+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gtpc":{source:"iana"},"application/vnd.3gpp.interworking-data":{source:"iana"},"application/vnd.3gpp.lpp":{source:"iana"},"application/vnd.3gpp.mc-signalling-ear":{source:"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-payload":{source:"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-signalling":{source:"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-floor-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-signed+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-init-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-transmission-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mid-call+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ngap":{source:"iana"},"application/vnd.3gpp.pfcp":{source:"iana"},"application/vnd.3gpp.pic-bw-large":{source:"iana",extensions:["plb"]},"application/vnd.3gpp.pic-bw-small":{source:"iana",extensions:["psb"]},"application/vnd.3gpp.pic-bw-var":{source:"iana",extensions:["pvb"]},"application/vnd.3gpp.s1ap":{source:"iana"},"application/vnd.3gpp.sms":{source:"iana"},"application/vnd.3gpp.sms+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-ext+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.state-and-event-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ussd+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.bcmcsinfo+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.sms":{source:"iana"},"application/vnd.3gpp2.tcap":{source:"iana",extensions:["tcap"]},"application/vnd.3lightssoftware.imagescal":{source:"iana"},"application/vnd.3m.post-it-notes":{source:"iana",extensions:["pwn"]},"application/vnd.accpac.simply.aso":{source:"iana",extensions:["aso"]},"application/vnd.accpac.simply.imp":{source:"iana",extensions:["imp"]},"application/vnd.acucobol":{source:"iana",extensions:["acu"]},"application/vnd.acucorp":{source:"iana",extensions:["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{source:"apache",compressible:!1,extensions:["air"]},"application/vnd.adobe.flash.movie":{source:"iana"},"application/vnd.adobe.formscentral.fcdt":{source:"iana",extensions:["fcdt"]},"application/vnd.adobe.fxp":{source:"iana",extensions:["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{source:"iana"},"application/vnd.adobe.xdp+xml":{source:"iana",compressible:!0,extensions:["xdp"]},"application/vnd.adobe.xfdf":{source:"iana",extensions:["xfdf"]},"application/vnd.aether.imp":{source:"iana"},"application/vnd.afpc.afplinedata":{source:"iana"},"application/vnd.afpc.afplinedata-pagedef":{source:"iana"},"application/vnd.afpc.cmoca-cmresource":{source:"iana"},"application/vnd.afpc.foca-charset":{source:"iana"},"application/vnd.afpc.foca-codedfont":{source:"iana"},"application/vnd.afpc.foca-codepage":{source:"iana"},"application/vnd.afpc.modca":{source:"iana"},"application/vnd.afpc.modca-cmtable":{source:"iana"},"application/vnd.afpc.modca-formdef":{source:"iana"},"application/vnd.afpc.modca-mediummap":{source:"iana"},"application/vnd.afpc.modca-objectcontainer":{source:"iana"},"application/vnd.afpc.modca-overlay":{source:"iana"},"application/vnd.afpc.modca-pagesegment":{source:"iana"},"application/vnd.age":{source:"iana",extensions:["age"]},"application/vnd.ah-barcode":{source:"iana"},"application/vnd.ahead.space":{source:"iana",extensions:["ahead"]},"application/vnd.airzip.filesecure.azf":{source:"iana",extensions:["azf"]},"application/vnd.airzip.filesecure.azs":{source:"iana",extensions:["azs"]},"application/vnd.amadeus+json":{source:"iana",compressible:!0},"application/vnd.amazon.ebook":{source:"apache",extensions:["azw"]},"application/vnd.amazon.mobi8-ebook":{source:"iana"},"application/vnd.americandynamics.acc":{source:"iana",extensions:["acc"]},"application/vnd.amiga.ami":{source:"iana",extensions:["ami"]},"application/vnd.amundsen.maze+xml":{source:"iana",compressible:!0},"application/vnd.android.ota":{source:"iana"},"application/vnd.android.package-archive":{source:"apache",compressible:!1,extensions:["apk"]},"application/vnd.anki":{source:"iana"},"application/vnd.anser-web-certificate-issue-initiation":{source:"iana",extensions:["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{source:"apache",extensions:["fti"]},"application/vnd.antix.game-component":{source:"iana",extensions:["atx"]},"application/vnd.apache.arrow.file":{source:"iana"},"application/vnd.apache.arrow.stream":{source:"iana"},"application/vnd.apache.thrift.binary":{source:"iana"},"application/vnd.apache.thrift.compact":{source:"iana"},"application/vnd.apache.thrift.json":{source:"iana"},"application/vnd.api+json":{source:"iana",compressible:!0},"application/vnd.aplextor.warrp+json":{source:"iana",compressible:!0},"application/vnd.apothekende.reservation+json":{source:"iana",compressible:!0},"application/vnd.apple.installer+xml":{source:"iana",compressible:!0,extensions:["mpkg"]},"application/vnd.apple.keynote":{source:"iana",extensions:["key"]},"application/vnd.apple.mpegurl":{source:"iana",extensions:["m3u8"]},"application/vnd.apple.numbers":{source:"iana",extensions:["numbers"]},"application/vnd.apple.pages":{source:"iana",extensions:["pages"]},"application/vnd.apple.pkpass":{compressible:!1,extensions:["pkpass"]},"application/vnd.arastra.swi":{source:"iana"},"application/vnd.aristanetworks.swi":{source:"iana",extensions:["swi"]},"application/vnd.artisan+json":{source:"iana",compressible:!0},"application/vnd.artsquare":{source:"iana"},"application/vnd.astraea-software.iota":{source:"iana",extensions:["iota"]},"application/vnd.audiograph":{source:"iana",extensions:["aep"]},"application/vnd.autopackage":{source:"iana"},"application/vnd.avalon+json":{source:"iana",compressible:!0},"application/vnd.avistar+xml":{source:"iana",compressible:!0},"application/vnd.balsamiq.bmml+xml":{source:"iana",compressible:!0,extensions:["bmml"]},"application/vnd.balsamiq.bmpr":{source:"iana"},"application/vnd.banana-accounting":{source:"iana"},"application/vnd.bbf.usp.error":{source:"iana"},"application/vnd.bbf.usp.msg":{source:"iana"},"application/vnd.bbf.usp.msg+json":{source:"iana",compressible:!0},"application/vnd.bekitzur-stech+json":{source:"iana",compressible:!0},"application/vnd.bint.med-content":{source:"iana"},"application/vnd.biopax.rdf+xml":{source:"iana",compressible:!0},"application/vnd.blink-idb-value-wrapper":{source:"iana"},"application/vnd.blueice.multipass":{source:"iana",extensions:["mpm"]},"application/vnd.bluetooth.ep.oob":{source:"iana"},"application/vnd.bluetooth.le.oob":{source:"iana"},"application/vnd.bmi":{source:"iana",extensions:["bmi"]},"application/vnd.bpf":{source:"iana"},"application/vnd.bpf3":{source:"iana"},"application/vnd.businessobjects":{source:"iana",extensions:["rep"]},"application/vnd.byu.uapi+json":{source:"iana",compressible:!0},"application/vnd.cab-jscript":{source:"iana"},"application/vnd.canon-cpdl":{source:"iana"},"application/vnd.canon-lips":{source:"iana"},"application/vnd.capasystems-pg+json":{source:"iana",compressible:!0},"application/vnd.cendio.thinlinc.clientconf":{source:"iana"},"application/vnd.century-systems.tcp_stream":{source:"iana"},"application/vnd.chemdraw+xml":{source:"iana",compressible:!0,extensions:["cdxml"]},"application/vnd.chess-pgn":{source:"iana"},"application/vnd.chipnuts.karaoke-mmd":{source:"iana",extensions:["mmd"]},"application/vnd.ciedi":{source:"iana"},"application/vnd.cinderella":{source:"iana",extensions:["cdy"]},"application/vnd.cirpack.isdn-ext":{source:"iana"},"application/vnd.citationstyles.style+xml":{source:"iana",compressible:!0,extensions:["csl"]},"application/vnd.claymore":{source:"iana",extensions:["cla"]},"application/vnd.cloanto.rp9":{source:"iana",extensions:["rp9"]},"application/vnd.clonk.c4group":{source:"iana",extensions:["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{source:"iana",extensions:["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{source:"iana",extensions:["c11amz"]},"application/vnd.coffeescript":{source:"iana"},"application/vnd.collabio.xodocuments.document":{source:"iana"},"application/vnd.collabio.xodocuments.document-template":{source:"iana"},"application/vnd.collabio.xodocuments.presentation":{source:"iana"},"application/vnd.collabio.xodocuments.presentation-template":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{source:"iana"},"application/vnd.collection+json":{source:"iana",compressible:!0},"application/vnd.collection.doc+json":{source:"iana",compressible:!0},"application/vnd.collection.next+json":{source:"iana",compressible:!0},"application/vnd.comicbook+zip":{source:"iana",compressible:!1},"application/vnd.comicbook-rar":{source:"iana"},"application/vnd.commerce-battelle":{source:"iana"},"application/vnd.commonspace":{source:"iana",extensions:["csp"]},"application/vnd.contact.cmsg":{source:"iana",extensions:["cdbcmsg"]},"application/vnd.coreos.ignition+json":{source:"iana",compressible:!0},"application/vnd.cosmocaller":{source:"iana",extensions:["cmc"]},"application/vnd.crick.clicker":{source:"iana",extensions:["clkx"]},"application/vnd.crick.clicker.keyboard":{source:"iana",extensions:["clkk"]},"application/vnd.crick.clicker.palette":{source:"iana",extensions:["clkp"]},"application/vnd.crick.clicker.template":{source:"iana",extensions:["clkt"]},"application/vnd.crick.clicker.wordbank":{source:"iana",extensions:["clkw"]},"application/vnd.criticaltools.wbs+xml":{source:"iana",compressible:!0,extensions:["wbs"]},"application/vnd.cryptii.pipe+json":{source:"iana",compressible:!0},"application/vnd.crypto-shade-file":{source:"iana"},"application/vnd.cryptomator.encrypted":{source:"iana"},"application/vnd.cryptomator.vault":{source:"iana"},"application/vnd.ctc-posml":{source:"iana",extensions:["pml"]},"application/vnd.ctct.ws+xml":{source:"iana",compressible:!0},"application/vnd.cups-pdf":{source:"iana"},"application/vnd.cups-postscript":{source:"iana"},"application/vnd.cups-ppd":{source:"iana",extensions:["ppd"]},"application/vnd.cups-raster":{source:"iana"},"application/vnd.cups-raw":{source:"iana"},"application/vnd.curl":{source:"iana"},"application/vnd.curl.car":{source:"apache",extensions:["car"]},"application/vnd.curl.pcurl":{source:"apache",extensions:["pcurl"]},"application/vnd.cyan.dean.root+xml":{source:"iana",compressible:!0},"application/vnd.cybank":{source:"iana"},"application/vnd.cyclonedx+json":{source:"iana",compressible:!0},"application/vnd.cyclonedx+xml":{source:"iana",compressible:!0},"application/vnd.d2l.coursepackage1p0+zip":{source:"iana",compressible:!1},"application/vnd.d3m-dataset":{source:"iana"},"application/vnd.d3m-problem":{source:"iana"},"application/vnd.dart":{source:"iana",compressible:!0,extensions:["dart"]},"application/vnd.data-vision.rdz":{source:"iana",extensions:["rdz"]},"application/vnd.datapackage+json":{source:"iana",compressible:!0},"application/vnd.dataresource+json":{source:"iana",compressible:!0},"application/vnd.dbf":{source:"iana",extensions:["dbf"]},"application/vnd.debian.binary-package":{source:"iana"},"application/vnd.dece.data":{source:"iana",extensions:["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{source:"iana",compressible:!0,extensions:["uvt","uvvt"]},"application/vnd.dece.unspecified":{source:"iana",extensions:["uvx","uvvx"]},"application/vnd.dece.zip":{source:"iana",extensions:["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{source:"iana",extensions:["fe_launch"]},"application/vnd.desmume.movie":{source:"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{source:"iana"},"application/vnd.dm.delegation+xml":{source:"iana",compressible:!0},"application/vnd.dna":{source:"iana",extensions:["dna"]},"application/vnd.document+json":{source:"iana",compressible:!0},"application/vnd.dolby.mlp":{source:"apache",extensions:["mlp"]},"application/vnd.dolby.mobile.1":{source:"iana"},"application/vnd.dolby.mobile.2":{source:"iana"},"application/vnd.doremir.scorecloud-binary-document":{source:"iana"},"application/vnd.dpgraph":{source:"iana",extensions:["dpg"]},"application/vnd.dreamfactory":{source:"iana",extensions:["dfac"]},"application/vnd.drive+json":{source:"iana",compressible:!0},"application/vnd.ds-keypoint":{source:"apache",extensions:["kpxx"]},"application/vnd.dtg.local":{source:"iana"},"application/vnd.dtg.local.flash":{source:"iana"},"application/vnd.dtg.local.html":{source:"iana"},"application/vnd.dvb.ait":{source:"iana",extensions:["ait"]},"application/vnd.dvb.dvbisl+xml":{source:"iana",compressible:!0},"application/vnd.dvb.dvbj":{source:"iana"},"application/vnd.dvb.esgcontainer":{source:"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess2":{source:"iana"},"application/vnd.dvb.ipdcesgpdd":{source:"iana"},"application/vnd.dvb.ipdcroaming":{source:"iana"},"application/vnd.dvb.iptv.alfec-base":{source:"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{source:"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-container+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-generic+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-msglist+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-request+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-response+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-init+xml":{source:"iana",compressible:!0},"application/vnd.dvb.pfr":{source:"iana"},"application/vnd.dvb.service":{source:"iana",extensions:["svc"]},"application/vnd.dxr":{source:"iana"},"application/vnd.dynageo":{source:"iana",extensions:["geo"]},"application/vnd.dzr":{source:"iana"},"application/vnd.easykaraoke.cdgdownload":{source:"iana"},"application/vnd.ecdis-update":{source:"iana"},"application/vnd.ecip.rlp":{source:"iana"},"application/vnd.eclipse.ditto+json":{source:"iana",compressible:!0},"application/vnd.ecowin.chart":{source:"iana",extensions:["mag"]},"application/vnd.ecowin.filerequest":{source:"iana"},"application/vnd.ecowin.fileupdate":{source:"iana"},"application/vnd.ecowin.series":{source:"iana"},"application/vnd.ecowin.seriesrequest":{source:"iana"},"application/vnd.ecowin.seriesupdate":{source:"iana"},"application/vnd.efi.img":{source:"iana"},"application/vnd.efi.iso":{source:"iana"},"application/vnd.emclient.accessrequest+xml":{source:"iana",compressible:!0},"application/vnd.enliven":{source:"iana",extensions:["nml"]},"application/vnd.enphase.envoy":{source:"iana"},"application/vnd.eprints.data+xml":{source:"iana",compressible:!0},"application/vnd.epson.esf":{source:"iana",extensions:["esf"]},"application/vnd.epson.msf":{source:"iana",extensions:["msf"]},"application/vnd.epson.quickanime":{source:"iana",extensions:["qam"]},"application/vnd.epson.salt":{source:"iana",extensions:["slt"]},"application/vnd.epson.ssf":{source:"iana",extensions:["ssf"]},"application/vnd.ericsson.quickcall":{source:"iana"},"application/vnd.espass-espass+zip":{source:"iana",compressible:!1},"application/vnd.eszigno3+xml":{source:"iana",compressible:!0,extensions:["es3","et3"]},"application/vnd.etsi.aoc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.asic-e+zip":{source:"iana",compressible:!1},"application/vnd.etsi.asic-s+zip":{source:"iana",compressible:!1},"application/vnd.etsi.cug+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvcommand+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-bc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-cod+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-npvr+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvservice+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsync+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvueprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mcid+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mheg5":{source:"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{source:"iana",compressible:!0},"application/vnd.etsi.pstn+xml":{source:"iana",compressible:!0},"application/vnd.etsi.sci+xml":{source:"iana",compressible:!0},"application/vnd.etsi.simservs+xml":{source:"iana",compressible:!0},"application/vnd.etsi.timestamp-token":{source:"iana"},"application/vnd.etsi.tsl+xml":{source:"iana",compressible:!0},"application/vnd.etsi.tsl.der":{source:"iana"},"application/vnd.eu.kasparian.car+json":{source:"iana",compressible:!0},"application/vnd.eudora.data":{source:"iana"},"application/vnd.evolv.ecig.profile":{source:"iana"},"application/vnd.evolv.ecig.settings":{source:"iana"},"application/vnd.evolv.ecig.theme":{source:"iana"},"application/vnd.exstream-empower+zip":{source:"iana",compressible:!1},"application/vnd.exstream-package":{source:"iana"},"application/vnd.ezpix-album":{source:"iana",extensions:["ez2"]},"application/vnd.ezpix-package":{source:"iana",extensions:["ez3"]},"application/vnd.f-secure.mobile":{source:"iana"},"application/vnd.familysearch.gedcom+zip":{source:"iana",compressible:!1},"application/vnd.fastcopy-disk-image":{source:"iana"},"application/vnd.fdf":{source:"iana",extensions:["fdf"]},"application/vnd.fdsn.mseed":{source:"iana",extensions:["mseed"]},"application/vnd.fdsn.seed":{source:"iana",extensions:["seed","dataless"]},"application/vnd.ffsns":{source:"iana"},"application/vnd.ficlab.flb+zip":{source:"iana",compressible:!1},"application/vnd.filmit.zfc":{source:"iana"},"application/vnd.fints":{source:"iana"},"application/vnd.firemonkeys.cloudcell":{source:"iana"},"application/vnd.flographit":{source:"iana",extensions:["gph"]},"application/vnd.fluxtime.clip":{source:"iana",extensions:["ftc"]},"application/vnd.font-fontforge-sfd":{source:"iana"},"application/vnd.framemaker":{source:"iana",extensions:["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{source:"iana",extensions:["fnc"]},"application/vnd.frogans.ltf":{source:"iana",extensions:["ltf"]},"application/vnd.fsc.weblaunch":{source:"iana",extensions:["fsc"]},"application/vnd.fujifilm.fb.docuworks":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.container":{source:"iana"},"application/vnd.fujifilm.fb.jfi+xml":{source:"iana",compressible:!0},"application/vnd.fujitsu.oasys":{source:"iana",extensions:["oas"]},"application/vnd.fujitsu.oasys2":{source:"iana",extensions:["oa2"]},"application/vnd.fujitsu.oasys3":{source:"iana",extensions:["oa3"]},"application/vnd.fujitsu.oasysgp":{source:"iana",extensions:["fg5"]},"application/vnd.fujitsu.oasysprs":{source:"iana",extensions:["bh2"]},"application/vnd.fujixerox.art-ex":{source:"iana"},"application/vnd.fujixerox.art4":{source:"iana"},"application/vnd.fujixerox.ddd":{source:"iana",extensions:["ddd"]},"application/vnd.fujixerox.docuworks":{source:"iana",extensions:["xdw"]},"application/vnd.fujixerox.docuworks.binder":{source:"iana",extensions:["xbd"]},"application/vnd.fujixerox.docuworks.container":{source:"iana"},"application/vnd.fujixerox.hbpl":{source:"iana"},"application/vnd.fut-misnet":{source:"iana"},"application/vnd.futoin+cbor":{source:"iana"},"application/vnd.futoin+json":{source:"iana",compressible:!0},"application/vnd.fuzzysheet":{source:"iana",extensions:["fzs"]},"application/vnd.genomatix.tuxedo":{source:"iana",extensions:["txd"]},"application/vnd.gentics.grd+json":{source:"iana",compressible:!0},"application/vnd.geo+json":{source:"iana",compressible:!0},"application/vnd.geocube+xml":{source:"iana",compressible:!0},"application/vnd.geogebra.file":{source:"iana",extensions:["ggb"]},"application/vnd.geogebra.slides":{source:"iana"},"application/vnd.geogebra.tool":{source:"iana",extensions:["ggt"]},"application/vnd.geometry-explorer":{source:"iana",extensions:["gex","gre"]},"application/vnd.geonext":{source:"iana",extensions:["gxt"]},"application/vnd.geoplan":{source:"iana",extensions:["g2w"]},"application/vnd.geospace":{source:"iana",extensions:["g3w"]},"application/vnd.gerber":{source:"iana"},"application/vnd.globalplatform.card-content-mgt":{source:"iana"},"application/vnd.globalplatform.card-content-mgt-response":{source:"iana"},"application/vnd.gmx":{source:"iana",extensions:["gmx"]},"application/vnd.google-apps.document":{compressible:!1,extensions:["gdoc"]},"application/vnd.google-apps.presentation":{compressible:!1,extensions:["gslides"]},"application/vnd.google-apps.spreadsheet":{compressible:!1,extensions:["gsheet"]},"application/vnd.google-earth.kml+xml":{source:"iana",compressible:!0,extensions:["kml"]},"application/vnd.google-earth.kmz":{source:"iana",compressible:!1,extensions:["kmz"]},"application/vnd.gov.sk.e-form+xml":{source:"iana",compressible:!0},"application/vnd.gov.sk.e-form+zip":{source:"iana",compressible:!1},"application/vnd.gov.sk.xmldatacontainer+xml":{source:"iana",compressible:!0},"application/vnd.grafeq":{source:"iana",extensions:["gqf","gqs"]},"application/vnd.gridmp":{source:"iana"},"application/vnd.groove-account":{source:"iana",extensions:["gac"]},"application/vnd.groove-help":{source:"iana",extensions:["ghf"]},"application/vnd.groove-identity-message":{source:"iana",extensions:["gim"]},"application/vnd.groove-injector":{source:"iana",extensions:["grv"]},"application/vnd.groove-tool-message":{source:"iana",extensions:["gtm"]},"application/vnd.groove-tool-template":{source:"iana",extensions:["tpl"]},"application/vnd.groove-vcard":{source:"iana",extensions:["vcg"]},"application/vnd.hal+json":{source:"iana",compressible:!0},"application/vnd.hal+xml":{source:"iana",compressible:!0,extensions:["hal"]},"application/vnd.handheld-entertainment+xml":{source:"iana",compressible:!0,extensions:["zmm"]},"application/vnd.hbci":{source:"iana",extensions:["hbci"]},"application/vnd.hc+json":{source:"iana",compressible:!0},"application/vnd.hcl-bireports":{source:"iana"},"application/vnd.hdt":{source:"iana"},"application/vnd.heroku+json":{source:"iana",compressible:!0},"application/vnd.hhe.lesson-player":{source:"iana",extensions:["les"]},"application/vnd.hl7cda+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hl7v2+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hp-hpgl":{source:"iana",extensions:["hpgl"]},"application/vnd.hp-hpid":{source:"iana",extensions:["hpid"]},"application/vnd.hp-hps":{source:"iana",extensions:["hps"]},"application/vnd.hp-jlyt":{source:"iana",extensions:["jlt"]},"application/vnd.hp-pcl":{source:"iana",extensions:["pcl"]},"application/vnd.hp-pclxl":{source:"iana",extensions:["pclxl"]},"application/vnd.httphone":{source:"iana"},"application/vnd.hydrostatix.sof-data":{source:"iana",extensions:["sfd-hdstx"]},"application/vnd.hyper+json":{source:"iana",compressible:!0},"application/vnd.hyper-item+json":{source:"iana",compressible:!0},"application/vnd.hyperdrive+json":{source:"iana",compressible:!0},"application/vnd.hzn-3d-crossword":{source:"iana"},"application/vnd.ibm.afplinedata":{source:"iana"},"application/vnd.ibm.electronic-media":{source:"iana"},"application/vnd.ibm.minipay":{source:"iana",extensions:["mpy"]},"application/vnd.ibm.modcap":{source:"iana",extensions:["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{source:"iana",extensions:["irm"]},"application/vnd.ibm.secure-container":{source:"iana",extensions:["sc"]},"application/vnd.iccprofile":{source:"iana",extensions:["icc","icm"]},"application/vnd.ieee.1905":{source:"iana"},"application/vnd.igloader":{source:"iana",extensions:["igl"]},"application/vnd.imagemeter.folder+zip":{source:"iana",compressible:!1},"application/vnd.imagemeter.image+zip":{source:"iana",compressible:!1},"application/vnd.immervision-ivp":{source:"iana",extensions:["ivp"]},"application/vnd.immervision-ivu":{source:"iana",extensions:["ivu"]},"application/vnd.ims.imsccv1p1":{source:"iana"},"application/vnd.ims.imsccv1p2":{source:"iana"},"application/vnd.ims.imsccv1p3":{source:"iana"},"application/vnd.ims.lis.v2.result+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy.id+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings.simple+json":{source:"iana",compressible:!0},"application/vnd.informedcontrol.rms+xml":{source:"iana",compressible:!0},"application/vnd.informix-visionary":{source:"iana"},"application/vnd.infotech.project":{source:"iana"},"application/vnd.infotech.project+xml":{source:"iana",compressible:!0},"application/vnd.innopath.wamp.notification":{source:"iana"},"application/vnd.insors.igm":{source:"iana",extensions:["igm"]},"application/vnd.intercon.formnet":{source:"iana",extensions:["xpw","xpx"]},"application/vnd.intergeo":{source:"iana",extensions:["i2g"]},"application/vnd.intertrust.digibox":{source:"iana"},"application/vnd.intertrust.nncp":{source:"iana"},"application/vnd.intu.qbo":{source:"iana",extensions:["qbo"]},"application/vnd.intu.qfx":{source:"iana",extensions:["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.conceptitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.knowledgeitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsmessage+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.packageitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.planningitem+xml":{source:"iana",compressible:!0},"application/vnd.ipunplugged.rcprofile":{source:"iana",extensions:["rcprofile"]},"application/vnd.irepository.package+xml":{source:"iana",compressible:!0,extensions:["irp"]},"application/vnd.is-xpr":{source:"iana",extensions:["xpr"]},"application/vnd.isac.fcs":{source:"iana",extensions:["fcs"]},"application/vnd.iso11783-10+zip":{source:"iana",compressible:!1},"application/vnd.jam":{source:"iana",extensions:["jam"]},"application/vnd.japannet-directory-service":{source:"iana"},"application/vnd.japannet-jpnstore-wakeup":{source:"iana"},"application/vnd.japannet-payment-wakeup":{source:"iana"},"application/vnd.japannet-registration":{source:"iana"},"application/vnd.japannet-registration-wakeup":{source:"iana"},"application/vnd.japannet-setstore-wakeup":{source:"iana"},"application/vnd.japannet-verification":{source:"iana"},"application/vnd.japannet-verification-wakeup":{source:"iana"},"application/vnd.jcp.javame.midlet-rms":{source:"iana",extensions:["rms"]},"application/vnd.jisp":{source:"iana",extensions:["jisp"]},"application/vnd.joost.joda-archive":{source:"iana",extensions:["joda"]},"application/vnd.jsk.isdn-ngn":{source:"iana"},"application/vnd.kahootz":{source:"iana",extensions:["ktz","ktr"]},"application/vnd.kde.karbon":{source:"iana",extensions:["karbon"]},"application/vnd.kde.kchart":{source:"iana",extensions:["chrt"]},"application/vnd.kde.kformula":{source:"iana",extensions:["kfo"]},"application/vnd.kde.kivio":{source:"iana",extensions:["flw"]},"application/vnd.kde.kontour":{source:"iana",extensions:["kon"]},"application/vnd.kde.kpresenter":{source:"iana",extensions:["kpr","kpt"]},"application/vnd.kde.kspread":{source:"iana",extensions:["ksp"]},"application/vnd.kde.kword":{source:"iana",extensions:["kwd","kwt"]},"application/vnd.kenameaapp":{source:"iana",extensions:["htke"]},"application/vnd.kidspiration":{source:"iana",extensions:["kia"]},"application/vnd.kinar":{source:"iana",extensions:["kne","knp"]},"application/vnd.koan":{source:"iana",extensions:["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{source:"iana",extensions:["sse"]},"application/vnd.las":{source:"iana"},"application/vnd.las.las+json":{source:"iana",compressible:!0},"application/vnd.las.las+xml":{source:"iana",compressible:!0,extensions:["lasxml"]},"application/vnd.laszip":{source:"iana"},"application/vnd.leap+json":{source:"iana",compressible:!0},"application/vnd.liberty-request+xml":{source:"iana",compressible:!0},"application/vnd.llamagraphics.life-balance.desktop":{source:"iana",extensions:["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{source:"iana",compressible:!0,extensions:["lbe"]},"application/vnd.logipipe.circuit+zip":{source:"iana",compressible:!1},"application/vnd.loom":{source:"iana"},"application/vnd.lotus-1-2-3":{source:"iana",extensions:["123"]},"application/vnd.lotus-approach":{source:"iana",extensions:["apr"]},"application/vnd.lotus-freelance":{source:"iana",extensions:["pre"]},"application/vnd.lotus-notes":{source:"iana",extensions:["nsf"]},"application/vnd.lotus-organizer":{source:"iana",extensions:["org"]},"application/vnd.lotus-screencam":{source:"iana",extensions:["scm"]},"application/vnd.lotus-wordpro":{source:"iana",extensions:["lwp"]},"application/vnd.macports.portpkg":{source:"iana",extensions:["portpkg"]},"application/vnd.mapbox-vector-tile":{source:"iana",extensions:["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.conftoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.license+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.mdcf":{source:"iana"},"application/vnd.mason+json":{source:"iana",compressible:!0},"application/vnd.maxar.archive.3tz+zip":{source:"iana",compressible:!1},"application/vnd.maxmind.maxmind-db":{source:"iana"},"application/vnd.mcd":{source:"iana",extensions:["mcd"]},"application/vnd.medcalcdata":{source:"iana",extensions:["mc1"]},"application/vnd.mediastation.cdkey":{source:"iana",extensions:["cdkey"]},"application/vnd.meridian-slingshot":{source:"iana"},"application/vnd.mfer":{source:"iana",extensions:["mwf"]},"application/vnd.mfmp":{source:"iana",extensions:["mfm"]},"application/vnd.micro+json":{source:"iana",compressible:!0},"application/vnd.micrografx.flo":{source:"iana",extensions:["flo"]},"application/vnd.micrografx.igx":{source:"iana",extensions:["igx"]},"application/vnd.microsoft.portable-executable":{source:"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{source:"iana"},"application/vnd.miele+json":{source:"iana",compressible:!0},"application/vnd.mif":{source:"iana",extensions:["mif"]},"application/vnd.minisoft-hp3000-save":{source:"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{source:"iana"},"application/vnd.mobius.daf":{source:"iana",extensions:["daf"]},"application/vnd.mobius.dis":{source:"iana",extensions:["dis"]},"application/vnd.mobius.mbk":{source:"iana",extensions:["mbk"]},"application/vnd.mobius.mqy":{source:"iana",extensions:["mqy"]},"application/vnd.mobius.msl":{source:"iana",extensions:["msl"]},"application/vnd.mobius.plc":{source:"iana",extensions:["plc"]},"application/vnd.mobius.txf":{source:"iana",extensions:["txf"]},"application/vnd.mophun.application":{source:"iana",extensions:["mpn"]},"application/vnd.mophun.certificate":{source:"iana",extensions:["mpc"]},"application/vnd.motorola.flexsuite":{source:"iana"},"application/vnd.motorola.flexsuite.adsi":{source:"iana"},"application/vnd.motorola.flexsuite.fis":{source:"iana"},"application/vnd.motorola.flexsuite.gotap":{source:"iana"},"application/vnd.motorola.flexsuite.kmr":{source:"iana"},"application/vnd.motorola.flexsuite.ttc":{source:"iana"},"application/vnd.motorola.flexsuite.wem":{source:"iana"},"application/vnd.motorola.iprm":{source:"iana"},"application/vnd.mozilla.xul+xml":{source:"iana",compressible:!0,extensions:["xul"]},"application/vnd.ms-3mfdocument":{source:"iana"},"application/vnd.ms-artgalry":{source:"iana",extensions:["cil"]},"application/vnd.ms-asf":{source:"iana"},"application/vnd.ms-cab-compressed":{source:"iana",extensions:["cab"]},"application/vnd.ms-color.iccprofile":{source:"apache"},"application/vnd.ms-excel":{source:"iana",compressible:!1,extensions:["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{source:"iana",extensions:["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{source:"iana",extensions:["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{source:"iana",extensions:["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{source:"iana",extensions:["xltm"]},"application/vnd.ms-fontobject":{source:"iana",compressible:!0,extensions:["eot"]},"application/vnd.ms-htmlhelp":{source:"iana",extensions:["chm"]},"application/vnd.ms-ims":{source:"iana",extensions:["ims"]},"application/vnd.ms-lrm":{source:"iana",extensions:["lrm"]},"application/vnd.ms-office.activex+xml":{source:"iana",compressible:!0},"application/vnd.ms-officetheme":{source:"iana",extensions:["thmx"]},"application/vnd.ms-opentype":{source:"apache",compressible:!0},"application/vnd.ms-outlook":{compressible:!1,extensions:["msg"]},"application/vnd.ms-package.obfuscated-opentype":{source:"apache"},"application/vnd.ms-pki.seccat":{source:"apache",extensions:["cat"]},"application/vnd.ms-pki.stl":{source:"apache",extensions:["stl"]},"application/vnd.ms-playready.initiator+xml":{source:"iana",compressible:!0},"application/vnd.ms-powerpoint":{source:"iana",compressible:!1,extensions:["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{source:"iana",extensions:["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{source:"iana",extensions:["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{source:"iana",extensions:["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{source:"iana",extensions:["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{source:"iana",extensions:["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{source:"iana",compressible:!0},"application/vnd.ms-printing.printticket+xml":{source:"apache",compressible:!0},"application/vnd.ms-printschematicket+xml":{source:"iana",compressible:!0},"application/vnd.ms-project":{source:"iana",extensions:["mpp","mpt"]},"application/vnd.ms-tnef":{source:"iana"},"application/vnd.ms-windows.devicepairing":{source:"iana"},"application/vnd.ms-windows.nwprinting.oob":{source:"iana"},"application/vnd.ms-windows.printerpairing":{source:"iana"},"application/vnd.ms-windows.wsd.oob":{source:"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.lic-resp":{source:"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.meter-resp":{source:"iana"},"application/vnd.ms-word.document.macroenabled.12":{source:"iana",extensions:["docm"]},"application/vnd.ms-word.template.macroenabled.12":{source:"iana",extensions:["dotm"]},"application/vnd.ms-works":{source:"iana",extensions:["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{source:"iana",extensions:["wpl"]},"application/vnd.ms-xpsdocument":{source:"iana",compressible:!1,extensions:["xps"]},"application/vnd.msa-disk-image":{source:"iana"},"application/vnd.mseq":{source:"iana",extensions:["mseq"]},"application/vnd.msign":{source:"iana"},"application/vnd.multiad.creator":{source:"iana"},"application/vnd.multiad.creator.cif":{source:"iana"},"application/vnd.music-niff":{source:"iana"},"application/vnd.musician":{source:"iana",extensions:["mus"]},"application/vnd.muvee.style":{source:"iana",extensions:["msty"]},"application/vnd.mynfc":{source:"iana",extensions:["taglet"]},"application/vnd.nacamar.ybrid+json":{source:"iana",compressible:!0},"application/vnd.ncd.control":{source:"iana"},"application/vnd.ncd.reference":{source:"iana"},"application/vnd.nearst.inv+json":{source:"iana",compressible:!0},"application/vnd.nebumind.line":{source:"iana"},"application/vnd.nervana":{source:"iana"},"application/vnd.netfpx":{source:"iana"},"application/vnd.neurolanguage.nlu":{source:"iana",extensions:["nlu"]},"application/vnd.nimn":{source:"iana"},"application/vnd.nintendo.nitro.rom":{source:"iana"},"application/vnd.nintendo.snes.rom":{source:"iana"},"application/vnd.nitf":{source:"iana",extensions:["ntf","nitf"]},"application/vnd.noblenet-directory":{source:"iana",extensions:["nnd"]},"application/vnd.noblenet-sealer":{source:"iana",extensions:["nns"]},"application/vnd.noblenet-web":{source:"iana",extensions:["nnw"]},"application/vnd.nokia.catalogs":{source:"iana"},"application/vnd.nokia.conml+wbxml":{source:"iana"},"application/vnd.nokia.conml+xml":{source:"iana",compressible:!0},"application/vnd.nokia.iptv.config+xml":{source:"iana",compressible:!0},"application/vnd.nokia.isds-radio-presets":{source:"iana"},"application/vnd.nokia.landmark+wbxml":{source:"iana"},"application/vnd.nokia.landmark+xml":{source:"iana",compressible:!0},"application/vnd.nokia.landmarkcollection+xml":{source:"iana",compressible:!0},"application/vnd.nokia.n-gage.ac+xml":{source:"iana",compressible:!0,extensions:["ac"]},"application/vnd.nokia.n-gage.data":{source:"iana",extensions:["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{source:"iana",extensions:["n-gage"]},"application/vnd.nokia.ncd":{source:"iana"},"application/vnd.nokia.pcd+wbxml":{source:"iana"},"application/vnd.nokia.pcd+xml":{source:"iana",compressible:!0},"application/vnd.nokia.radio-preset":{source:"iana",extensions:["rpst"]},"application/vnd.nokia.radio-presets":{source:"iana",extensions:["rpss"]},"application/vnd.novadigm.edm":{source:"iana",extensions:["edm"]},"application/vnd.novadigm.edx":{source:"iana",extensions:["edx"]},"application/vnd.novadigm.ext":{source:"iana",extensions:["ext"]},"application/vnd.ntt-local.content-share":{source:"iana"},"application/vnd.ntt-local.file-transfer":{source:"iana"},"application/vnd.ntt-local.ogw_remote-access":{source:"iana"},"application/vnd.ntt-local.sip-ta_remote":{source:"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{source:"iana"},"application/vnd.oasis.opendocument.chart":{source:"iana",extensions:["odc"]},"application/vnd.oasis.opendocument.chart-template":{source:"iana",extensions:["otc"]},"application/vnd.oasis.opendocument.database":{source:"iana",extensions:["odb"]},"application/vnd.oasis.opendocument.formula":{source:"iana",extensions:["odf"]},"application/vnd.oasis.opendocument.formula-template":{source:"iana",extensions:["odft"]},"application/vnd.oasis.opendocument.graphics":{source:"iana",compressible:!1,extensions:["odg"]},"application/vnd.oasis.opendocument.graphics-template":{source:"iana",extensions:["otg"]},"application/vnd.oasis.opendocument.image":{source:"iana",extensions:["odi"]},"application/vnd.oasis.opendocument.image-template":{source:"iana",extensions:["oti"]},"application/vnd.oasis.opendocument.presentation":{source:"iana",compressible:!1,extensions:["odp"]},"application/vnd.oasis.opendocument.presentation-template":{source:"iana",extensions:["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{source:"iana",compressible:!1,extensions:["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{source:"iana",extensions:["ots"]},"application/vnd.oasis.opendocument.text":{source:"iana",compressible:!1,extensions:["odt"]},"application/vnd.oasis.opendocument.text-master":{source:"iana",extensions:["odm"]},"application/vnd.oasis.opendocument.text-template":{source:"iana",extensions:["ott"]},"application/vnd.oasis.opendocument.text-web":{source:"iana",extensions:["oth"]},"application/vnd.obn":{source:"iana"},"application/vnd.ocf+cbor":{source:"iana"},"application/vnd.oci.image.manifest.v1+json":{source:"iana",compressible:!0},"application/vnd.oftn.l10n+json":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessdownload+xml":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessstreaming+xml":{source:"iana",compressible:!0},"application/vnd.oipf.cspg-hexbinary":{source:"iana"},"application/vnd.oipf.dae.svg+xml":{source:"iana",compressible:!0},"application/vnd.oipf.dae.xhtml+xml":{source:"iana",compressible:!0},"application/vnd.oipf.mippvcontrolmessage+xml":{source:"iana",compressible:!0},"application/vnd.oipf.pae.gem":{source:"iana"},"application/vnd.oipf.spdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.oipf.spdlist+xml":{source:"iana",compressible:!0},"application/vnd.oipf.ueprofile+xml":{source:"iana",compressible:!0},"application/vnd.oipf.userprofile+xml":{source:"iana",compressible:!0},"application/vnd.olpc-sugar":{source:"iana",extensions:["xo"]},"application/vnd.oma-scws-config":{source:"iana"},"application/vnd.oma-scws-http-request":{source:"iana"},"application/vnd.oma-scws-http-response":{source:"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.drm-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.imd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.ltkm":{source:"iana"},"application/vnd.oma.bcast.notification+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.provisioningtrigger":{source:"iana"},"application/vnd.oma.bcast.sgboot":{source:"iana"},"application/vnd.oma.bcast.sgdd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sgdu":{source:"iana"},"application/vnd.oma.bcast.simple-symbol-container":{source:"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sprov+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.stkm":{source:"iana"},"application/vnd.oma.cab-address-book+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-feature-handler+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-pcc+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-subs-invite+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-user-prefs+xml":{source:"iana",compressible:!0},"application/vnd.oma.dcd":{source:"iana"},"application/vnd.oma.dcdc":{source:"iana"},"application/vnd.oma.dd2+xml":{source:"iana",compressible:!0,extensions:["dd2"]},"application/vnd.oma.drm.risd+xml":{source:"iana",compressible:!0},"application/vnd.oma.group-usage-list+xml":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+cbor":{source:"iana"},"application/vnd.oma.lwm2m+json":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+tlv":{source:"iana"},"application/vnd.oma.pal+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.detailed-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.final-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.groups+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.invocation-descriptor+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.optimized-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.push":{source:"iana"},"application/vnd.oma.scidm.messages+xml":{source:"iana",compressible:!0},"application/vnd.oma.xcap-directory+xml":{source:"iana",compressible:!0},"application/vnd.omads-email+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-file+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-folder+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omaloc-supl-init":{source:"iana"},"application/vnd.onepager":{source:"iana"},"application/vnd.onepagertamp":{source:"iana"},"application/vnd.onepagertamx":{source:"iana"},"application/vnd.onepagertat":{source:"iana"},"application/vnd.onepagertatp":{source:"iana"},"application/vnd.onepagertatx":{source:"iana"},"application/vnd.openblox.game+xml":{source:"iana",compressible:!0,extensions:["obgx"]},"application/vnd.openblox.game-binary":{source:"iana"},"application/vnd.openeye.oeb":{source:"iana"},"application/vnd.openofficeorg.extension":{source:"apache",extensions:["oxt"]},"application/vnd.openstreetmap.data+xml":{source:"iana",compressible:!0,extensions:["osm"]},"application/vnd.opentimestamps.ots":{source:"iana"},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawing+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:"iana",compressible:!1,extensions:["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slide":{source:"iana",extensions:["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{source:"iana",extensions:["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.template":{source:"iana",extensions:["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:"iana",compressible:!1,extensions:["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{source:"iana",extensions:["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.theme+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.vmldrawing":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:"iana",compressible:!1,extensions:["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{source:"iana",extensions:["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.core-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.relationships+xml":{source:"iana",compressible:!0},"application/vnd.oracle.resource+json":{source:"iana",compressible:!0},"application/vnd.orange.indata":{source:"iana"},"application/vnd.osa.netdeploy":{source:"iana"},"application/vnd.osgeo.mapguide.package":{source:"iana",extensions:["mgp"]},"application/vnd.osgi.bundle":{source:"iana"},"application/vnd.osgi.dp":{source:"iana",extensions:["dp"]},"application/vnd.osgi.subsystem":{source:"iana",extensions:["esa"]},"application/vnd.otps.ct-kip+xml":{source:"iana",compressible:!0},"application/vnd.oxli.countgraph":{source:"iana"},"application/vnd.pagerduty+json":{source:"iana",compressible:!0},"application/vnd.palm":{source:"iana",extensions:["pdb","pqa","oprc"]},"application/vnd.panoply":{source:"iana"},"application/vnd.paos.xml":{source:"iana"},"application/vnd.patentdive":{source:"iana"},"application/vnd.patientecommsdoc":{source:"iana"},"application/vnd.pawaafile":{source:"iana",extensions:["paw"]},"application/vnd.pcos":{source:"iana"},"application/vnd.pg.format":{source:"iana",extensions:["str"]},"application/vnd.pg.osasli":{source:"iana",extensions:["ei6"]},"application/vnd.piaccess.application-licence":{source:"iana"},"application/vnd.picsel":{source:"iana",extensions:["efif"]},"application/vnd.pmi.widget":{source:"iana",extensions:["wg"]},"application/vnd.poc.group-advertisement+xml":{source:"iana",compressible:!0},"application/vnd.pocketlearn":{source:"iana",extensions:["plf"]},"application/vnd.powerbuilder6":{source:"iana",extensions:["pbd"]},"application/vnd.powerbuilder6-s":{source:"iana"},"application/vnd.powerbuilder7":{source:"iana"},"application/vnd.powerbuilder7-s":{source:"iana"},"application/vnd.powerbuilder75":{source:"iana"},"application/vnd.powerbuilder75-s":{source:"iana"},"application/vnd.preminet":{source:"iana"},"application/vnd.previewsystems.box":{source:"iana",extensions:["box"]},"application/vnd.proteus.magazine":{source:"iana",extensions:["mgz"]},"application/vnd.psfs":{source:"iana"},"application/vnd.publishare-delta-tree":{source:"iana",extensions:["qps"]},"application/vnd.pvi.ptid1":{source:"iana",extensions:["ptid"]},"application/vnd.pwg-multiplexed":{source:"iana"},"application/vnd.pwg-xhtml-print+xml":{source:"iana",compressible:!0},"application/vnd.qualcomm.brew-app-res":{source:"iana"},"application/vnd.quarantainenet":{source:"iana"},"application/vnd.quark.quarkxpress":{source:"iana",extensions:["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{source:"iana"},"application/vnd.radisys.moml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conn+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-stream+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-base+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-detect+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-group+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-speech+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-transform+xml":{source:"iana",compressible:!0},"application/vnd.rainstor.data":{source:"iana"},"application/vnd.rapid":{source:"iana"},"application/vnd.rar":{source:"iana",extensions:["rar"]},"application/vnd.realvnc.bed":{source:"iana",extensions:["bed"]},"application/vnd.recordare.musicxml":{source:"iana",extensions:["mxl"]},"application/vnd.recordare.musicxml+xml":{source:"iana",compressible:!0,extensions:["musicxml"]},"application/vnd.renlearn.rlprint":{source:"iana"},"application/vnd.resilient.logic":{source:"iana"},"application/vnd.restful+json":{source:"iana",compressible:!0},"application/vnd.rig.cryptonote":{source:"iana",extensions:["cryptonote"]},"application/vnd.rim.cod":{source:"apache",extensions:["cod"]},"application/vnd.rn-realmedia":{source:"apache",extensions:["rm"]},"application/vnd.rn-realmedia-vbr":{source:"apache",extensions:["rmvb"]},"application/vnd.route66.link66+xml":{source:"iana",compressible:!0,extensions:["link66"]},"application/vnd.rs-274x":{source:"iana"},"application/vnd.ruckus.download":{source:"iana"},"application/vnd.s3sms":{source:"iana"},"application/vnd.sailingtracker.track":{source:"iana",extensions:["st"]},"application/vnd.sar":{source:"iana"},"application/vnd.sbm.cid":{source:"iana"},"application/vnd.sbm.mid2":{source:"iana"},"application/vnd.scribus":{source:"iana"},"application/vnd.sealed.3df":{source:"iana"},"application/vnd.sealed.csf":{source:"iana"},"application/vnd.sealed.doc":{source:"iana"},"application/vnd.sealed.eml":{source:"iana"},"application/vnd.sealed.mht":{source:"iana"},"application/vnd.sealed.net":{source:"iana"},"application/vnd.sealed.ppt":{source:"iana"},"application/vnd.sealed.tiff":{source:"iana"},"application/vnd.sealed.xls":{source:"iana"},"application/vnd.sealedmedia.softseal.html":{source:"iana"},"application/vnd.sealedmedia.softseal.pdf":{source:"iana"},"application/vnd.seemail":{source:"iana",extensions:["see"]},"application/vnd.seis+json":{source:"iana",compressible:!0},"application/vnd.sema":{source:"iana",extensions:["sema"]},"application/vnd.semd":{source:"iana",extensions:["semd"]},"application/vnd.semf":{source:"iana",extensions:["semf"]},"application/vnd.shade-save-file":{source:"iana"},"application/vnd.shana.informed.formdata":{source:"iana",extensions:["ifm"]},"application/vnd.shana.informed.formtemplate":{source:"iana",extensions:["itp"]},"application/vnd.shana.informed.interchange":{source:"iana",extensions:["iif"]},"application/vnd.shana.informed.package":{source:"iana",extensions:["ipk"]},"application/vnd.shootproof+json":{source:"iana",compressible:!0},"application/vnd.shopkick+json":{source:"iana",compressible:!0},"application/vnd.shp":{source:"iana"},"application/vnd.shx":{source:"iana"},"application/vnd.sigrok.session":{source:"iana"},"application/vnd.simtech-mindmapper":{source:"iana",extensions:["twd","twds"]},"application/vnd.siren+json":{source:"iana",compressible:!0},"application/vnd.smaf":{source:"iana",extensions:["mmf"]},"application/vnd.smart.notebook":{source:"iana"},"application/vnd.smart.teacher":{source:"iana",extensions:["teacher"]},"application/vnd.snesdev-page-table":{source:"iana"},"application/vnd.software602.filler.form+xml":{source:"iana",compressible:!0,extensions:["fo"]},"application/vnd.software602.filler.form-xml-zip":{source:"iana"},"application/vnd.solent.sdkm+xml":{source:"iana",compressible:!0,extensions:["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{source:"iana",extensions:["dxp"]},"application/vnd.spotfire.sfs":{source:"iana",extensions:["sfs"]},"application/vnd.sqlite3":{source:"iana"},"application/vnd.sss-cod":{source:"iana"},"application/vnd.sss-dtf":{source:"iana"},"application/vnd.sss-ntf":{source:"iana"},"application/vnd.stardivision.calc":{source:"apache",extensions:["sdc"]},"application/vnd.stardivision.draw":{source:"apache",extensions:["sda"]},"application/vnd.stardivision.impress":{source:"apache",extensions:["sdd"]},"application/vnd.stardivision.math":{source:"apache",extensions:["smf"]},"application/vnd.stardivision.writer":{source:"apache",extensions:["sdw","vor"]},"application/vnd.stardivision.writer-global":{source:"apache",extensions:["sgl"]},"application/vnd.stepmania.package":{source:"iana",extensions:["smzip"]},"application/vnd.stepmania.stepchart":{source:"iana",extensions:["sm"]},"application/vnd.street-stream":{source:"iana"},"application/vnd.sun.wadl+xml":{source:"iana",compressible:!0,extensions:["wadl"]},"application/vnd.sun.xml.calc":{source:"apache",extensions:["sxc"]},"application/vnd.sun.xml.calc.template":{source:"apache",extensions:["stc"]},"application/vnd.sun.xml.draw":{source:"apache",extensions:["sxd"]},"application/vnd.sun.xml.draw.template":{source:"apache",extensions:["std"]},"application/vnd.sun.xml.impress":{source:"apache",extensions:["sxi"]},"application/vnd.sun.xml.impress.template":{source:"apache",extensions:["sti"]},"application/vnd.sun.xml.math":{source:"apache",extensions:["sxm"]},"application/vnd.sun.xml.writer":{source:"apache",extensions:["sxw"]},"application/vnd.sun.xml.writer.global":{source:"apache",extensions:["sxg"]},"application/vnd.sun.xml.writer.template":{source:"apache",extensions:["stw"]},"application/vnd.sus-calendar":{source:"iana",extensions:["sus","susp"]},"application/vnd.svd":{source:"iana",extensions:["svd"]},"application/vnd.swiftview-ics":{source:"iana"},"application/vnd.sycle+xml":{source:"iana",compressible:!0},"application/vnd.syft+json":{source:"iana",compressible:!0},"application/vnd.symbian.install":{source:"apache",extensions:["sis","sisx"]},"application/vnd.syncml+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xsm"]},"application/vnd.syncml.dm+wbxml":{source:"iana",charset:"UTF-8",extensions:["bdm"]},"application/vnd.syncml.dm+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xdm"]},"application/vnd.syncml.dm.notification":{source:"iana"},"application/vnd.syncml.dmddf+wbxml":{source:"iana"},"application/vnd.syncml.dmddf+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{source:"iana"},"application/vnd.syncml.dmtnds+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.syncml.ds.notification":{source:"iana"},"application/vnd.tableschema+json":{source:"iana",compressible:!0},"application/vnd.tao.intent-module-archive":{source:"iana",extensions:["tao"]},"application/vnd.tcpdump.pcap":{source:"iana",extensions:["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{source:"iana",compressible:!0},"application/vnd.tmd.mediaflex.api+xml":{source:"iana",compressible:!0},"application/vnd.tml":{source:"iana"},"application/vnd.tmobile-livetv":{source:"iana",extensions:["tmo"]},"application/vnd.tri.onesource":{source:"iana"},"application/vnd.trid.tpt":{source:"iana",extensions:["tpt"]},"application/vnd.triscape.mxs":{source:"iana",extensions:["mxs"]},"application/vnd.trueapp":{source:"iana",extensions:["tra"]},"application/vnd.truedoc":{source:"iana"},"application/vnd.ubisoft.webplayer":{source:"iana"},"application/vnd.ufdl":{source:"iana",extensions:["ufd","ufdl"]},"application/vnd.uiq.theme":{source:"iana",extensions:["utz"]},"application/vnd.umajin":{source:"iana",extensions:["umj"]},"application/vnd.unity":{source:"iana",extensions:["unityweb"]},"application/vnd.uoml+xml":{source:"iana",compressible:!0,extensions:["uoml"]},"application/vnd.uplanet.alert":{source:"iana"},"application/vnd.uplanet.alert-wbxml":{source:"iana"},"application/vnd.uplanet.bearer-choice":{source:"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{source:"iana"},"application/vnd.uplanet.cacheop":{source:"iana"},"application/vnd.uplanet.cacheop-wbxml":{source:"iana"},"application/vnd.uplanet.channel":{source:"iana"},"application/vnd.uplanet.channel-wbxml":{source:"iana"},"application/vnd.uplanet.list":{source:"iana"},"application/vnd.uplanet.list-wbxml":{source:"iana"},"application/vnd.uplanet.listcmd":{source:"iana"},"application/vnd.uplanet.listcmd-wbxml":{source:"iana"},"application/vnd.uplanet.signal":{source:"iana"},"application/vnd.uri-map":{source:"iana"},"application/vnd.valve.source.material":{source:"iana"},"application/vnd.vcx":{source:"iana",extensions:["vcx"]},"application/vnd.vd-study":{source:"iana"},"application/vnd.vectorworks":{source:"iana"},"application/vnd.vel+json":{source:"iana",compressible:!0},"application/vnd.verimatrix.vcas":{source:"iana"},"application/vnd.veritone.aion+json":{source:"iana",compressible:!0},"application/vnd.veryant.thin":{source:"iana"},"application/vnd.ves.encrypted":{source:"iana"},"application/vnd.vidsoft.vidconference":{source:"iana"},"application/vnd.visio":{source:"iana",extensions:["vsd","vst","vss","vsw"]},"application/vnd.visionary":{source:"iana",extensions:["vis"]},"application/vnd.vividence.scriptfile":{source:"iana"},"application/vnd.vsf":{source:"iana",extensions:["vsf"]},"application/vnd.wap.sic":{source:"iana"},"application/vnd.wap.slc":{source:"iana"},"application/vnd.wap.wbxml":{source:"iana",charset:"UTF-8",extensions:["wbxml"]},"application/vnd.wap.wmlc":{source:"iana",extensions:["wmlc"]},"application/vnd.wap.wmlscriptc":{source:"iana",extensions:["wmlsc"]},"application/vnd.webturbo":{source:"iana",extensions:["wtb"]},"application/vnd.wfa.dpp":{source:"iana"},"application/vnd.wfa.p2p":{source:"iana"},"application/vnd.wfa.wsc":{source:"iana"},"application/vnd.windows.devicepairing":{source:"iana"},"application/vnd.wmc":{source:"iana"},"application/vnd.wmf.bootstrap":{source:"iana"},"application/vnd.wolfram.mathematica":{source:"iana"},"application/vnd.wolfram.mathematica.package":{source:"iana"},"application/vnd.wolfram.player":{source:"iana",extensions:["nbp"]},"application/vnd.wordperfect":{source:"iana",extensions:["wpd"]},"application/vnd.wqd":{source:"iana",extensions:["wqd"]},"application/vnd.wrq-hp3000-labelled":{source:"iana"},"application/vnd.wt.stf":{source:"iana",extensions:["stf"]},"application/vnd.wv.csp+wbxml":{source:"iana"},"application/vnd.wv.csp+xml":{source:"iana",compressible:!0},"application/vnd.wv.ssp+xml":{source:"iana",compressible:!0},"application/vnd.xacml+json":{source:"iana",compressible:!0},"application/vnd.xara":{source:"iana",extensions:["xar"]},"application/vnd.xfdl":{source:"iana",extensions:["xfdl"]},"application/vnd.xfdl.webform":{source:"iana"},"application/vnd.xmi+xml":{source:"iana",compressible:!0},"application/vnd.xmpie.cpkg":{source:"iana"},"application/vnd.xmpie.dpkg":{source:"iana"},"application/vnd.xmpie.plan":{source:"iana"},"application/vnd.xmpie.ppkg":{source:"iana"},"application/vnd.xmpie.xlim":{source:"iana"},"application/vnd.yamaha.hv-dic":{source:"iana",extensions:["hvd"]},"application/vnd.yamaha.hv-script":{source:"iana",extensions:["hvs"]},"application/vnd.yamaha.hv-voice":{source:"iana",extensions:["hvp"]},"application/vnd.yamaha.openscoreformat":{source:"iana",extensions:["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{source:"iana",compressible:!0,extensions:["osfpvg"]},"application/vnd.yamaha.remote-setup":{source:"iana"},"application/vnd.yamaha.smaf-audio":{source:"iana",extensions:["saf"]},"application/vnd.yamaha.smaf-phrase":{source:"iana",extensions:["spf"]},"application/vnd.yamaha.through-ngn":{source:"iana"},"application/vnd.yamaha.tunnel-udpencap":{source:"iana"},"application/vnd.yaoweme":{source:"iana"},"application/vnd.yellowriver-custom-menu":{source:"iana",extensions:["cmp"]},"application/vnd.youtube.yt":{source:"iana"},"application/vnd.zul":{source:"iana",extensions:["zir","zirz"]},"application/vnd.zzazz.deck+xml":{source:"iana",compressible:!0,extensions:["zaz"]},"application/voicexml+xml":{source:"iana",compressible:!0,extensions:["vxml"]},"application/voucher-cms+json":{source:"iana",compressible:!0},"application/vq-rtcpxr":{source:"iana"},"application/wasm":{source:"iana",compressible:!0,extensions:["wasm"]},"application/watcherinfo+xml":{source:"iana",compressible:!0,extensions:["wif"]},"application/webpush-options+json":{source:"iana",compressible:!0},"application/whoispp-query":{source:"iana"},"application/whoispp-response":{source:"iana"},"application/widget":{source:"iana",extensions:["wgt"]},"application/winhlp":{source:"apache",extensions:["hlp"]},"application/wita":{source:"iana"},"application/wordperfect5.1":{source:"iana"},"application/wsdl+xml":{source:"iana",compressible:!0,extensions:["wsdl"]},"application/wspolicy+xml":{source:"iana",compressible:!0,extensions:["wspolicy"]},"application/x-7z-compressed":{source:"apache",compressible:!1,extensions:["7z"]},"application/x-abiword":{source:"apache",extensions:["abw"]},"application/x-ace-compressed":{source:"apache",extensions:["ace"]},"application/x-amf":{source:"apache"},"application/x-apple-diskimage":{source:"apache",extensions:["dmg"]},"application/x-arj":{compressible:!1,extensions:["arj"]},"application/x-authorware-bin":{source:"apache",extensions:["aab","x32","u32","vox"]},"application/x-authorware-map":{source:"apache",extensions:["aam"]},"application/x-authorware-seg":{source:"apache",extensions:["aas"]},"application/x-bcpio":{source:"apache",extensions:["bcpio"]},"application/x-bdoc":{compressible:!1,extensions:["bdoc"]},"application/x-bittorrent":{source:"apache",extensions:["torrent"]},"application/x-blorb":{source:"apache",extensions:["blb","blorb"]},"application/x-bzip":{source:"apache",compressible:!1,extensions:["bz"]},"application/x-bzip2":{source:"apache",compressible:!1,extensions:["bz2","boz"]},"application/x-cbr":{source:"apache",extensions:["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{source:"apache",extensions:["vcd"]},"application/x-cfs-compressed":{source:"apache",extensions:["cfs"]},"application/x-chat":{source:"apache",extensions:["chat"]},"application/x-chess-pgn":{source:"apache",extensions:["pgn"]},"application/x-chrome-extension":{extensions:["crx"]},"application/x-cocoa":{source:"nginx",extensions:["cco"]},"application/x-compress":{source:"apache"},"application/x-conference":{source:"apache",extensions:["nsc"]},"application/x-cpio":{source:"apache",extensions:["cpio"]},"application/x-csh":{source:"apache",extensions:["csh"]},"application/x-deb":{compressible:!1},"application/x-debian-package":{source:"apache",extensions:["deb","udeb"]},"application/x-dgc-compressed":{source:"apache",extensions:["dgc"]},"application/x-director":{source:"apache",extensions:["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{source:"apache",extensions:["wad"]},"application/x-dtbncx+xml":{source:"apache",compressible:!0,extensions:["ncx"]},"application/x-dtbook+xml":{source:"apache",compressible:!0,extensions:["dtb"]},"application/x-dtbresource+xml":{source:"apache",compressible:!0,extensions:["res"]},"application/x-dvi":{source:"apache",compressible:!1,extensions:["dvi"]},"application/x-envoy":{source:"apache",extensions:["evy"]},"application/x-eva":{source:"apache",extensions:["eva"]},"application/x-font-bdf":{source:"apache",extensions:["bdf"]},"application/x-font-dos":{source:"apache"},"application/x-font-framemaker":{source:"apache"},"application/x-font-ghostscript":{source:"apache",extensions:["gsf"]},"application/x-font-libgrx":{source:"apache"},"application/x-font-linux-psf":{source:"apache",extensions:["psf"]},"application/x-font-pcf":{source:"apache",extensions:["pcf"]},"application/x-font-snf":{source:"apache",extensions:["snf"]},"application/x-font-speedo":{source:"apache"},"application/x-font-sunos-news":{source:"apache"},"application/x-font-type1":{source:"apache",extensions:["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{source:"apache"},"application/x-freearc":{source:"apache",extensions:["arc"]},"application/x-futuresplash":{source:"apache",extensions:["spl"]},"application/x-gca-compressed":{source:"apache",extensions:["gca"]},"application/x-glulx":{source:"apache",extensions:["ulx"]},"application/x-gnumeric":{source:"apache",extensions:["gnumeric"]},"application/x-gramps-xml":{source:"apache",extensions:["gramps"]},"application/x-gtar":{source:"apache",extensions:["gtar"]},"application/x-gzip":{source:"apache"},"application/x-hdf":{source:"apache",extensions:["hdf"]},"application/x-httpd-php":{compressible:!0,extensions:["php"]},"application/x-install-instructions":{source:"apache",extensions:["install"]},"application/x-iso9660-image":{source:"apache",extensions:["iso"]},"application/x-iwork-keynote-sffkey":{extensions:["key"]},"application/x-iwork-numbers-sffnumbers":{extensions:["numbers"]},"application/x-iwork-pages-sffpages":{extensions:["pages"]},"application/x-java-archive-diff":{source:"nginx",extensions:["jardiff"]},"application/x-java-jnlp-file":{source:"apache",compressible:!1,extensions:["jnlp"]},"application/x-javascript":{compressible:!0},"application/x-keepass2":{extensions:["kdbx"]},"application/x-latex":{source:"apache",compressible:!1,extensions:["latex"]},"application/x-lua-bytecode":{extensions:["luac"]},"application/x-lzh-compressed":{source:"apache",extensions:["lzh","lha"]},"application/x-makeself":{source:"nginx",extensions:["run"]},"application/x-mie":{source:"apache",extensions:["mie"]},"application/x-mobipocket-ebook":{source:"apache",extensions:["prc","mobi"]},"application/x-mpegurl":{compressible:!1},"application/x-ms-application":{source:"apache",extensions:["application"]},"application/x-ms-shortcut":{source:"apache",extensions:["lnk"]},"application/x-ms-wmd":{source:"apache",extensions:["wmd"]},"application/x-ms-wmz":{source:"apache",extensions:["wmz"]},"application/x-ms-xbap":{source:"apache",extensions:["xbap"]},"application/x-msaccess":{source:"apache",extensions:["mdb"]},"application/x-msbinder":{source:"apache",extensions:["obd"]},"application/x-mscardfile":{source:"apache",extensions:["crd"]},"application/x-msclip":{source:"apache",extensions:["clp"]},"application/x-msdos-program":{extensions:["exe"]},"application/x-msdownload":{source:"apache",extensions:["exe","dll","com","bat","msi"]},"application/x-msmediaview":{source:"apache",extensions:["mvb","m13","m14"]},"application/x-msmetafile":{source:"apache",extensions:["wmf","wmz","emf","emz"]},"application/x-msmoney":{source:"apache",extensions:["mny"]},"application/x-mspublisher":{source:"apache",extensions:["pub"]},"application/x-msschedule":{source:"apache",extensions:["scd"]},"application/x-msterminal":{source:"apache",extensions:["trm"]},"application/x-mswrite":{source:"apache",extensions:["wri"]},"application/x-netcdf":{source:"apache",extensions:["nc","cdf"]},"application/x-ns-proxy-autoconfig":{compressible:!0,extensions:["pac"]},"application/x-nzb":{source:"apache",extensions:["nzb"]},"application/x-perl":{source:"nginx",extensions:["pl","pm"]},"application/x-pilot":{source:"nginx",extensions:["prc","pdb"]},"application/x-pkcs12":{source:"apache",compressible:!1,extensions:["p12","pfx"]},"application/x-pkcs7-certificates":{source:"apache",extensions:["p7b","spc"]},"application/x-pkcs7-certreqresp":{source:"apache",extensions:["p7r"]},"application/x-pki-message":{source:"iana"},"application/x-rar-compressed":{source:"apache",compressible:!1,extensions:["rar"]},"application/x-redhat-package-manager":{source:"nginx",extensions:["rpm"]},"application/x-research-info-systems":{source:"apache",extensions:["ris"]},"application/x-sea":{source:"nginx",extensions:["sea"]},"application/x-sh":{source:"apache",compressible:!0,extensions:["sh"]},"application/x-shar":{source:"apache",extensions:["shar"]},"application/x-shockwave-flash":{source:"apache",compressible:!1,extensions:["swf"]},"application/x-silverlight-app":{source:"apache",extensions:["xap"]},"application/x-sql":{source:"apache",extensions:["sql"]},"application/x-stuffit":{source:"apache",compressible:!1,extensions:["sit"]},"application/x-stuffitx":{source:"apache",extensions:["sitx"]},"application/x-subrip":{source:"apache",extensions:["srt"]},"application/x-sv4cpio":{source:"apache",extensions:["sv4cpio"]},"application/x-sv4crc":{source:"apache",extensions:["sv4crc"]},"application/x-t3vm-image":{source:"apache",extensions:["t3"]},"application/x-tads":{source:"apache",extensions:["gam"]},"application/x-tar":{source:"apache",compressible:!0,extensions:["tar"]},"application/x-tcl":{source:"apache",extensions:["tcl","tk"]},"application/x-tex":{source:"apache",extensions:["tex"]},"application/x-tex-tfm":{source:"apache",extensions:["tfm"]},"application/x-texinfo":{source:"apache",extensions:["texinfo","texi"]},"application/x-tgif":{source:"apache",extensions:["obj"]},"application/x-ustar":{source:"apache",extensions:["ustar"]},"application/x-virtualbox-hdd":{compressible:!0,extensions:["hdd"]},"application/x-virtualbox-ova":{compressible:!0,extensions:["ova"]},"application/x-virtualbox-ovf":{compressible:!0,extensions:["ovf"]},"application/x-virtualbox-vbox":{compressible:!0,extensions:["vbox"]},"application/x-virtualbox-vbox-extpack":{compressible:!1,extensions:["vbox-extpack"]},"application/x-virtualbox-vdi":{compressible:!0,extensions:["vdi"]},"application/x-virtualbox-vhd":{compressible:!0,extensions:["vhd"]},"application/x-virtualbox-vmdk":{compressible:!0,extensions:["vmdk"]},"application/x-wais-source":{source:"apache",extensions:["src"]},"application/x-web-app-manifest+json":{compressible:!0,extensions:["webapp"]},"application/x-www-form-urlencoded":{source:"iana",compressible:!0},"application/x-x509-ca-cert":{source:"iana",extensions:["der","crt","pem"]},"application/x-x509-ca-ra-cert":{source:"iana"},"application/x-x509-next-ca-cert":{source:"iana"},"application/x-xfig":{source:"apache",extensions:["fig"]},"application/x-xliff+xml":{source:"apache",compressible:!0,extensions:["xlf"]},"application/x-xpinstall":{source:"apache",compressible:!1,extensions:["xpi"]},"application/x-xz":{source:"apache",extensions:["xz"]},"application/x-zmachine":{source:"apache",extensions:["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{source:"iana"},"application/xacml+xml":{source:"iana",compressible:!0},"application/xaml+xml":{source:"apache",compressible:!0,extensions:["xaml"]},"application/xcap-att+xml":{source:"iana",compressible:!0,extensions:["xav"]},"application/xcap-caps+xml":{source:"iana",compressible:!0,extensions:["xca"]},"application/xcap-diff+xml":{source:"iana",compressible:!0,extensions:["xdf"]},"application/xcap-el+xml":{source:"iana",compressible:!0,extensions:["xel"]},"application/xcap-error+xml":{source:"iana",compressible:!0},"application/xcap-ns+xml":{source:"iana",compressible:!0,extensions:["xns"]},"application/xcon-conference-info+xml":{source:"iana",compressible:!0},"application/xcon-conference-info-diff+xml":{source:"iana",compressible:!0},"application/xenc+xml":{source:"iana",compressible:!0,extensions:["xenc"]},"application/xhtml+xml":{source:"iana",compressible:!0,extensions:["xhtml","xht"]},"application/xhtml-voice+xml":{source:"apache",compressible:!0},"application/xliff+xml":{source:"iana",compressible:!0,extensions:["xlf"]},"application/xml":{source:"iana",compressible:!0,extensions:["xml","xsl","xsd","rng"]},"application/xml-dtd":{source:"iana",compressible:!0,extensions:["dtd"]},"application/xml-external-parsed-entity":{source:"iana"},"application/xml-patch+xml":{source:"iana",compressible:!0},"application/xmpp+xml":{source:"iana",compressible:!0},"application/xop+xml":{source:"iana",compressible:!0,extensions:["xop"]},"application/xproc+xml":{source:"apache",compressible:!0,extensions:["xpl"]},"application/xslt+xml":{source:"iana",compressible:!0,extensions:["xsl","xslt"]},"application/xspf+xml":{source:"apache",compressible:!0,extensions:["xspf"]},"application/xv+xml":{source:"iana",compressible:!0,extensions:["mxml","xhvml","xvml","xvm"]},"application/yang":{source:"iana",extensions:["yang"]},"application/yang-data+json":{source:"iana",compressible:!0},"application/yang-data+xml":{source:"iana",compressible:!0},"application/yang-patch+json":{source:"iana",compressible:!0},"application/yang-patch+xml":{source:"iana",compressible:!0},"application/yin+xml":{source:"iana",compressible:!0,extensions:["yin"]},"application/zip":{source:"iana",compressible:!1,extensions:["zip"]},"application/zlib":{source:"iana"},"application/zstd":{source:"iana"},"audio/1d-interleaved-parityfec":{source:"iana"},"audio/32kadpcm":{source:"iana"},"audio/3gpp":{source:"iana",compressible:!1,extensions:["3gpp"]},"audio/3gpp2":{source:"iana"},"audio/aac":{source:"iana"},"audio/ac3":{source:"iana"},"audio/adpcm":{source:"apache",extensions:["adp"]},"audio/amr":{source:"iana",extensions:["amr"]},"audio/amr-wb":{source:"iana"},"audio/amr-wb+":{source:"iana"},"audio/aptx":{source:"iana"},"audio/asc":{source:"iana"},"audio/atrac-advanced-lossless":{source:"iana"},"audio/atrac-x":{source:"iana"},"audio/atrac3":{source:"iana"},"audio/basic":{source:"iana",compressible:!1,extensions:["au","snd"]},"audio/bv16":{source:"iana"},"audio/bv32":{source:"iana"},"audio/clearmode":{source:"iana"},"audio/cn":{source:"iana"},"audio/dat12":{source:"iana"},"audio/dls":{source:"iana"},"audio/dsr-es201108":{source:"iana"},"audio/dsr-es202050":{source:"iana"},"audio/dsr-es202211":{source:"iana"},"audio/dsr-es202212":{source:"iana"},"audio/dv":{source:"iana"},"audio/dvi4":{source:"iana"},"audio/eac3":{source:"iana"},"audio/encaprtp":{source:"iana"},"audio/evrc":{source:"iana"},"audio/evrc-qcp":{source:"iana"},"audio/evrc0":{source:"iana"},"audio/evrc1":{source:"iana"},"audio/evrcb":{source:"iana"},"audio/evrcb0":{source:"iana"},"audio/evrcb1":{source:"iana"},"audio/evrcnw":{source:"iana"},"audio/evrcnw0":{source:"iana"},"audio/evrcnw1":{source:"iana"},"audio/evrcwb":{source:"iana"},"audio/evrcwb0":{source:"iana"},"audio/evrcwb1":{source:"iana"},"audio/evs":{source:"iana"},"audio/flexfec":{source:"iana"},"audio/fwdred":{source:"iana"},"audio/g711-0":{source:"iana"},"audio/g719":{source:"iana"},"audio/g722":{source:"iana"},"audio/g7221":{source:"iana"},"audio/g723":{source:"iana"},"audio/g726-16":{source:"iana"},"audio/g726-24":{source:"iana"},"audio/g726-32":{source:"iana"},"audio/g726-40":{source:"iana"},"audio/g728":{source:"iana"},"audio/g729":{source:"iana"},"audio/g7291":{source:"iana"},"audio/g729d":{source:"iana"},"audio/g729e":{source:"iana"},"audio/gsm":{source:"iana"},"audio/gsm-efr":{source:"iana"},"audio/gsm-hr-08":{source:"iana"},"audio/ilbc":{source:"iana"},"audio/ip-mr_v2.5":{source:"iana"},"audio/isac":{source:"apache"},"audio/l16":{source:"iana"},"audio/l20":{source:"iana"},"audio/l24":{source:"iana",compressible:!1},"audio/l8":{source:"iana"},"audio/lpc":{source:"iana"},"audio/melp":{source:"iana"},"audio/melp1200":{source:"iana"},"audio/melp2400":{source:"iana"},"audio/melp600":{source:"iana"},"audio/mhas":{source:"iana"},"audio/midi":{source:"apache",extensions:["mid","midi","kar","rmi"]},"audio/mobile-xmf":{source:"iana",extensions:["mxmf"]},"audio/mp3":{compressible:!1,extensions:["mp3"]},"audio/mp4":{source:"iana",compressible:!1,extensions:["m4a","mp4a"]},"audio/mp4a-latm":{source:"iana"},"audio/mpa":{source:"iana"},"audio/mpa-robust":{source:"iana"},"audio/mpeg":{source:"iana",compressible:!1,extensions:["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{source:"iana"},"audio/musepack":{source:"apache"},"audio/ogg":{source:"iana",compressible:!1,extensions:["oga","ogg","spx","opus"]},"audio/opus":{source:"iana"},"audio/parityfec":{source:"iana"},"audio/pcma":{source:"iana"},"audio/pcma-wb":{source:"iana"},"audio/pcmu":{source:"iana"},"audio/pcmu-wb":{source:"iana"},"audio/prs.sid":{source:"iana"},"audio/qcelp":{source:"iana"},"audio/raptorfec":{source:"iana"},"audio/red":{source:"iana"},"audio/rtp-enc-aescm128":{source:"iana"},"audio/rtp-midi":{source:"iana"},"audio/rtploopback":{source:"iana"},"audio/rtx":{source:"iana"},"audio/s3m":{source:"apache",extensions:["s3m"]},"audio/scip":{source:"iana"},"audio/silk":{source:"apache",extensions:["sil"]},"audio/smv":{source:"iana"},"audio/smv-qcp":{source:"iana"},"audio/smv0":{source:"iana"},"audio/sofa":{source:"iana"},"audio/sp-midi":{source:"iana"},"audio/speex":{source:"iana"},"audio/t140c":{source:"iana"},"audio/t38":{source:"iana"},"audio/telephone-event":{source:"iana"},"audio/tetra_acelp":{source:"iana"},"audio/tetra_acelp_bb":{source:"iana"},"audio/tone":{source:"iana"},"audio/tsvcis":{source:"iana"},"audio/uemclip":{source:"iana"},"audio/ulpfec":{source:"iana"},"audio/usac":{source:"iana"},"audio/vdvi":{source:"iana"},"audio/vmr-wb":{source:"iana"},"audio/vnd.3gpp.iufp":{source:"iana"},"audio/vnd.4sb":{source:"iana"},"audio/vnd.audiokoz":{source:"iana"},"audio/vnd.celp":{source:"iana"},"audio/vnd.cisco.nse":{source:"iana"},"audio/vnd.cmles.radio-events":{source:"iana"},"audio/vnd.cns.anp1":{source:"iana"},"audio/vnd.cns.inf1":{source:"iana"},"audio/vnd.dece.audio":{source:"iana",extensions:["uva","uvva"]},"audio/vnd.digital-winds":{source:"iana",extensions:["eol"]},"audio/vnd.dlna.adts":{source:"iana"},"audio/vnd.dolby.heaac.1":{source:"iana"},"audio/vnd.dolby.heaac.2":{source:"iana"},"audio/vnd.dolby.mlp":{source:"iana"},"audio/vnd.dolby.mps":{source:"iana"},"audio/vnd.dolby.pl2":{source:"iana"},"audio/vnd.dolby.pl2x":{source:"iana"},"audio/vnd.dolby.pl2z":{source:"iana"},"audio/vnd.dolby.pulse.1":{source:"iana"},"audio/vnd.dra":{source:"iana",extensions:["dra"]},"audio/vnd.dts":{source:"iana",extensions:["dts"]},"audio/vnd.dts.hd":{source:"iana",extensions:["dtshd"]},"audio/vnd.dts.uhd":{source:"iana"},"audio/vnd.dvb.file":{source:"iana"},"audio/vnd.everad.plj":{source:"iana"},"audio/vnd.hns.audio":{source:"iana"},"audio/vnd.lucent.voice":{source:"iana",extensions:["lvp"]},"audio/vnd.ms-playready.media.pya":{source:"iana",extensions:["pya"]},"audio/vnd.nokia.mobile-xmf":{source:"iana"},"audio/vnd.nortel.vbk":{source:"iana"},"audio/vnd.nuera.ecelp4800":{source:"iana",extensions:["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{source:"iana",extensions:["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{source:"iana",extensions:["ecelp9600"]},"audio/vnd.octel.sbc":{source:"iana"},"audio/vnd.presonus.multitrack":{source:"iana"},"audio/vnd.qcelp":{source:"iana"},"audio/vnd.rhetorex.32kadpcm":{source:"iana"},"audio/vnd.rip":{source:"iana",extensions:["rip"]},"audio/vnd.rn-realaudio":{compressible:!1},"audio/vnd.sealedmedia.softseal.mpeg":{source:"iana"},"audio/vnd.vmx.cvsd":{source:"iana"},"audio/vnd.wave":{compressible:!1},"audio/vorbis":{source:"iana",compressible:!1},"audio/vorbis-config":{source:"iana"},"audio/wav":{compressible:!1,extensions:["wav"]},"audio/wave":{compressible:!1,extensions:["wav"]},"audio/webm":{source:"apache",compressible:!1,extensions:["weba"]},"audio/x-aac":{source:"apache",compressible:!1,extensions:["aac"]},"audio/x-aiff":{source:"apache",extensions:["aif","aiff","aifc"]},"audio/x-caf":{source:"apache",compressible:!1,extensions:["caf"]},"audio/x-flac":{source:"apache",extensions:["flac"]},"audio/x-m4a":{source:"nginx",extensions:["m4a"]},"audio/x-matroska":{source:"apache",extensions:["mka"]},"audio/x-mpegurl":{source:"apache",extensions:["m3u"]},"audio/x-ms-wax":{source:"apache",extensions:["wax"]},"audio/x-ms-wma":{source:"apache",extensions:["wma"]},"audio/x-pn-realaudio":{source:"apache",extensions:["ram","ra"]},"audio/x-pn-realaudio-plugin":{source:"apache",extensions:["rmp"]},"audio/x-realaudio":{source:"nginx",extensions:["ra"]},"audio/x-tta":{source:"apache"},"audio/x-wav":{source:"apache",extensions:["wav"]},"audio/xm":{source:"apache",extensions:["xm"]},"chemical/x-cdx":{source:"apache",extensions:["cdx"]},"chemical/x-cif":{source:"apache",extensions:["cif"]},"chemical/x-cmdf":{source:"apache",extensions:["cmdf"]},"chemical/x-cml":{source:"apache",extensions:["cml"]},"chemical/x-csml":{source:"apache",extensions:["csml"]},"chemical/x-pdb":{source:"apache"},"chemical/x-xyz":{source:"apache",extensions:["xyz"]},"font/collection":{source:"iana",extensions:["ttc"]},"font/otf":{source:"iana",compressible:!0,extensions:["otf"]},"font/sfnt":{source:"iana"},"font/ttf":{source:"iana",compressible:!0,extensions:["ttf"]},"font/woff":{source:"iana",extensions:["woff"]},"font/woff2":{source:"iana",extensions:["woff2"]},"image/aces":{source:"iana",extensions:["exr"]},"image/apng":{compressible:!1,extensions:["apng"]},"image/avci":{source:"iana",extensions:["avci"]},"image/avcs":{source:"iana",extensions:["avcs"]},"image/avif":{source:"iana",compressible:!1,extensions:["avif"]},"image/bmp":{source:"iana",compressible:!0,extensions:["bmp"]},"image/cgm":{source:"iana",extensions:["cgm"]},"image/dicom-rle":{source:"iana",extensions:["drle"]},"image/emf":{source:"iana",extensions:["emf"]},"image/fits":{source:"iana",extensions:["fits"]},"image/g3fax":{source:"iana",extensions:["g3"]},"image/gif":{source:"iana",compressible:!1,extensions:["gif"]},"image/heic":{source:"iana",extensions:["heic"]},"image/heic-sequence":{source:"iana",extensions:["heics"]},"image/heif":{source:"iana",extensions:["heif"]},"image/heif-sequence":{source:"iana",extensions:["heifs"]},"image/hej2k":{source:"iana",extensions:["hej2"]},"image/hsj2":{source:"iana",extensions:["hsj2"]},"image/ief":{source:"iana",extensions:["ief"]},"image/jls":{source:"iana",extensions:["jls"]},"image/jp2":{source:"iana",compressible:!1,extensions:["jp2","jpg2"]},"image/jpeg":{source:"iana",compressible:!1,extensions:["jpeg","jpg","jpe"]},"image/jph":{source:"iana",extensions:["jph"]},"image/jphc":{source:"iana",extensions:["jhc"]},"image/jpm":{source:"iana",compressible:!1,extensions:["jpm"]},"image/jpx":{source:"iana",compressible:!1,extensions:["jpx","jpf"]},"image/jxr":{source:"iana",extensions:["jxr"]},"image/jxra":{source:"iana",extensions:["jxra"]},"image/jxrs":{source:"iana",extensions:["jxrs"]},"image/jxs":{source:"iana",extensions:["jxs"]},"image/jxsc":{source:"iana",extensions:["jxsc"]},"image/jxsi":{source:"iana",extensions:["jxsi"]},"image/jxss":{source:"iana",extensions:["jxss"]},"image/ktx":{source:"iana",extensions:["ktx"]},"image/ktx2":{source:"iana",extensions:["ktx2"]},"image/naplps":{source:"iana"},"image/pjpeg":{compressible:!1},"image/png":{source:"iana",compressible:!1,extensions:["png"]},"image/prs.btif":{source:"iana",extensions:["btif"]},"image/prs.pti":{source:"iana",extensions:["pti"]},"image/pwg-raster":{source:"iana"},"image/sgi":{source:"apache",extensions:["sgi"]},"image/svg+xml":{source:"iana",compressible:!0,extensions:["svg","svgz"]},"image/t38":{source:"iana",extensions:["t38"]},"image/tiff":{source:"iana",compressible:!1,extensions:["tif","tiff"]},"image/tiff-fx":{source:"iana",extensions:["tfx"]},"image/vnd.adobe.photoshop":{source:"iana",compressible:!0,extensions:["psd"]},"image/vnd.airzip.accelerator.azv":{source:"iana",extensions:["azv"]},"image/vnd.cns.inf2":{source:"iana"},"image/vnd.dece.graphic":{source:"iana",extensions:["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{source:"iana",extensions:["djvu","djv"]},"image/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"image/vnd.dwg":{source:"iana",extensions:["dwg"]},"image/vnd.dxf":{source:"iana",extensions:["dxf"]},"image/vnd.fastbidsheet":{source:"iana",extensions:["fbs"]},"image/vnd.fpx":{source:"iana",extensions:["fpx"]},"image/vnd.fst":{source:"iana",extensions:["fst"]},"image/vnd.fujixerox.edmics-mmr":{source:"iana",extensions:["mmr"]},"image/vnd.fujixerox.edmics-rlc":{source:"iana",extensions:["rlc"]},"image/vnd.globalgraphics.pgb":{source:"iana"},"image/vnd.microsoft.icon":{source:"iana",compressible:!0,extensions:["ico"]},"image/vnd.mix":{source:"iana"},"image/vnd.mozilla.apng":{source:"iana"},"image/vnd.ms-dds":{compressible:!0,extensions:["dds"]},"image/vnd.ms-modi":{source:"iana",extensions:["mdi"]},"image/vnd.ms-photo":{source:"apache",extensions:["wdp"]},"image/vnd.net-fpx":{source:"iana",extensions:["npx"]},"image/vnd.pco.b16":{source:"iana",extensions:["b16"]},"image/vnd.radiance":{source:"iana"},"image/vnd.sealed.png":{source:"iana"},"image/vnd.sealedmedia.softseal.gif":{source:"iana"},"image/vnd.sealedmedia.softseal.jpg":{source:"iana"},"image/vnd.svf":{source:"iana"},"image/vnd.tencent.tap":{source:"iana",extensions:["tap"]},"image/vnd.valve.source.texture":{source:"iana",extensions:["vtf"]},"image/vnd.wap.wbmp":{source:"iana",extensions:["wbmp"]},"image/vnd.xiff":{source:"iana",extensions:["xif"]},"image/vnd.zbrush.pcx":{source:"iana",extensions:["pcx"]},"image/webp":{source:"apache",extensions:["webp"]},"image/wmf":{source:"iana",extensions:["wmf"]},"image/x-3ds":{source:"apache",extensions:["3ds"]},"image/x-cmu-raster":{source:"apache",extensions:["ras"]},"image/x-cmx":{source:"apache",extensions:["cmx"]},"image/x-freehand":{source:"apache",extensions:["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{source:"apache",compressible:!0,extensions:["ico"]},"image/x-jng":{source:"nginx",extensions:["jng"]},"image/x-mrsid-image":{source:"apache",extensions:["sid"]},"image/x-ms-bmp":{source:"nginx",compressible:!0,extensions:["bmp"]},"image/x-pcx":{source:"apache",extensions:["pcx"]},"image/x-pict":{source:"apache",extensions:["pic","pct"]},"image/x-portable-anymap":{source:"apache",extensions:["pnm"]},"image/x-portable-bitmap":{source:"apache",extensions:["pbm"]},"image/x-portable-graymap":{source:"apache",extensions:["pgm"]},"image/x-portable-pixmap":{source:"apache",extensions:["ppm"]},"image/x-rgb":{source:"apache",extensions:["rgb"]},"image/x-tga":{source:"apache",extensions:["tga"]},"image/x-xbitmap":{source:"apache",extensions:["xbm"]},"image/x-xcf":{compressible:!1},"image/x-xpixmap":{source:"apache",extensions:["xpm"]},"image/x-xwindowdump":{source:"apache",extensions:["xwd"]},"message/cpim":{source:"iana"},"message/delivery-status":{source:"iana"},"message/disposition-notification":{source:"iana",extensions:["disposition-notification"]},"message/external-body":{source:"iana"},"message/feedback-report":{source:"iana"},"message/global":{source:"iana",extensions:["u8msg"]},"message/global-delivery-status":{source:"iana",extensions:["u8dsn"]},"message/global-disposition-notification":{source:"iana",extensions:["u8mdn"]},"message/global-headers":{source:"iana",extensions:["u8hdr"]},"message/http":{source:"iana",compressible:!1},"message/imdn+xml":{source:"iana",compressible:!0},"message/news":{source:"iana"},"message/partial":{source:"iana",compressible:!1},"message/rfc822":{source:"iana",compressible:!0,extensions:["eml","mime"]},"message/s-http":{source:"iana"},"message/sip":{source:"iana"},"message/sipfrag":{source:"iana"},"message/tracking-status":{source:"iana"},"message/vnd.si.simp":{source:"iana"},"message/vnd.wfa.wsc":{source:"iana",extensions:["wsc"]},"model/3mf":{source:"iana",extensions:["3mf"]},"model/e57":{source:"iana"},"model/gltf+json":{source:"iana",compressible:!0,extensions:["gltf"]},"model/gltf-binary":{source:"iana",compressible:!0,extensions:["glb"]},"model/iges":{source:"iana",compressible:!1,extensions:["igs","iges"]},"model/mesh":{source:"iana",compressible:!1,extensions:["msh","mesh","silo"]},"model/mtl":{source:"iana",extensions:["mtl"]},"model/obj":{source:"iana",extensions:["obj"]},"model/step":{source:"iana"},"model/step+xml":{source:"iana",compressible:!0,extensions:["stpx"]},"model/step+zip":{source:"iana",compressible:!1,extensions:["stpz"]},"model/step-xml+zip":{source:"iana",compressible:!1,extensions:["stpxz"]},"model/stl":{source:"iana",extensions:["stl"]},"model/vnd.collada+xml":{source:"iana",compressible:!0,extensions:["dae"]},"model/vnd.dwf":{source:"iana",extensions:["dwf"]},"model/vnd.flatland.3dml":{source:"iana"},"model/vnd.gdl":{source:"iana",extensions:["gdl"]},"model/vnd.gs-gdl":{source:"apache"},"model/vnd.gs.gdl":{source:"iana"},"model/vnd.gtw":{source:"iana",extensions:["gtw"]},"model/vnd.moml+xml":{source:"iana",compressible:!0},"model/vnd.mts":{source:"iana",extensions:["mts"]},"model/vnd.opengex":{source:"iana",extensions:["ogex"]},"model/vnd.parasolid.transmit.binary":{source:"iana",extensions:["x_b"]},"model/vnd.parasolid.transmit.text":{source:"iana",extensions:["x_t"]},"model/vnd.pytha.pyox":{source:"iana"},"model/vnd.rosette.annotated-data-model":{source:"iana"},"model/vnd.sap.vds":{source:"iana",extensions:["vds"]},"model/vnd.usdz+zip":{source:"iana",compressible:!1,extensions:["usdz"]},"model/vnd.valve.source.compiled-map":{source:"iana",extensions:["bsp"]},"model/vnd.vtu":{source:"iana",extensions:["vtu"]},"model/vrml":{source:"iana",compressible:!1,extensions:["wrl","vrml"]},"model/x3d+binary":{source:"apache",compressible:!1,extensions:["x3db","x3dbz"]},"model/x3d+fastinfoset":{source:"iana",extensions:["x3db"]},"model/x3d+vrml":{source:"apache",compressible:!1,extensions:["x3dv","x3dvz"]},"model/x3d+xml":{source:"iana",compressible:!0,extensions:["x3d","x3dz"]},"model/x3d-vrml":{source:"iana",extensions:["x3dv"]},"multipart/alternative":{source:"iana",compressible:!1},"multipart/appledouble":{source:"iana"},"multipart/byteranges":{source:"iana"},"multipart/digest":{source:"iana"},"multipart/encrypted":{source:"iana",compressible:!1},"multipart/form-data":{source:"iana",compressible:!1},"multipart/header-set":{source:"iana"},"multipart/mixed":{source:"iana"},"multipart/multilingual":{source:"iana"},"multipart/parallel":{source:"iana"},"multipart/related":{source:"iana",compressible:!1},"multipart/report":{source:"iana"},"multipart/signed":{source:"iana",compressible:!1},"multipart/vnd.bint.med-plus":{source:"iana"},"multipart/voice-message":{source:"iana"},"multipart/x-mixed-replace":{source:"iana"},"text/1d-interleaved-parityfec":{source:"iana"},"text/cache-manifest":{source:"iana",compressible:!0,extensions:["appcache","manifest"]},"text/calendar":{source:"iana",extensions:["ics","ifb"]},"text/calender":{compressible:!0},"text/cmd":{compressible:!0},"text/coffeescript":{extensions:["coffee","litcoffee"]},"text/cql":{source:"iana"},"text/cql-expression":{source:"iana"},"text/cql-identifier":{source:"iana"},"text/css":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["css"]},"text/csv":{source:"iana",compressible:!0,extensions:["csv"]},"text/csv-schema":{source:"iana"},"text/directory":{source:"iana"},"text/dns":{source:"iana"},"text/ecmascript":{source:"iana"},"text/encaprtp":{source:"iana"},"text/enriched":{source:"iana"},"text/fhirpath":{source:"iana"},"text/flexfec":{source:"iana"},"text/fwdred":{source:"iana"},"text/gff3":{source:"iana"},"text/grammar-ref-list":{source:"iana"},"text/html":{source:"iana",compressible:!0,extensions:["html","htm","shtml"]},"text/jade":{extensions:["jade"]},"text/javascript":{source:"iana",compressible:!0},"text/jcr-cnd":{source:"iana"},"text/jsx":{compressible:!0,extensions:["jsx"]},"text/less":{compressible:!0,extensions:["less"]},"text/markdown":{source:"iana",compressible:!0,extensions:["markdown","md"]},"text/mathml":{source:"nginx",extensions:["mml"]},"text/mdx":{compressible:!0,extensions:["mdx"]},"text/mizar":{source:"iana"},"text/n3":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["n3"]},"text/parameters":{source:"iana",charset:"UTF-8"},"text/parityfec":{source:"iana"},"text/plain":{source:"iana",compressible:!0,extensions:["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{source:"iana",charset:"UTF-8"},"text/prs.fallenstein.rst":{source:"iana"},"text/prs.lines.tag":{source:"iana",extensions:["dsc"]},"text/prs.prop.logic":{source:"iana"},"text/raptorfec":{source:"iana"},"text/red":{source:"iana"},"text/rfc822-headers":{source:"iana"},"text/richtext":{source:"iana",compressible:!0,extensions:["rtx"]},"text/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"text/rtp-enc-aescm128":{source:"iana"},"text/rtploopback":{source:"iana"},"text/rtx":{source:"iana"},"text/sgml":{source:"iana",extensions:["sgml","sgm"]},"text/shaclc":{source:"iana"},"text/shex":{source:"iana",extensions:["shex"]},"text/slim":{extensions:["slim","slm"]},"text/spdx":{source:"iana",extensions:["spdx"]},"text/strings":{source:"iana"},"text/stylus":{extensions:["stylus","styl"]},"text/t140":{source:"iana"},"text/tab-separated-values":{source:"iana",compressible:!0,extensions:["tsv"]},"text/troff":{source:"iana",extensions:["t","tr","roff","man","me","ms"]},"text/turtle":{source:"iana",charset:"UTF-8",extensions:["ttl"]},"text/ulpfec":{source:"iana"},"text/uri-list":{source:"iana",compressible:!0,extensions:["uri","uris","urls"]},"text/vcard":{source:"iana",compressible:!0,extensions:["vcard"]},"text/vnd.a":{source:"iana"},"text/vnd.abc":{source:"iana"},"text/vnd.ascii-art":{source:"iana"},"text/vnd.curl":{source:"iana",extensions:["curl"]},"text/vnd.curl.dcurl":{source:"apache",extensions:["dcurl"]},"text/vnd.curl.mcurl":{source:"apache",extensions:["mcurl"]},"text/vnd.curl.scurl":{source:"apache",extensions:["scurl"]},"text/vnd.debian.copyright":{source:"iana",charset:"UTF-8"},"text/vnd.dmclientscript":{source:"iana"},"text/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"text/vnd.esmertec.theme-descriptor":{source:"iana",charset:"UTF-8"},"text/vnd.familysearch.gedcom":{source:"iana",extensions:["ged"]},"text/vnd.ficlab.flt":{source:"iana"},"text/vnd.fly":{source:"iana",extensions:["fly"]},"text/vnd.fmi.flexstor":{source:"iana",extensions:["flx"]},"text/vnd.gml":{source:"iana"},"text/vnd.graphviz":{source:"iana",extensions:["gv"]},"text/vnd.hans":{source:"iana"},"text/vnd.hgl":{source:"iana"},"text/vnd.in3d.3dml":{source:"iana",extensions:["3dml"]},"text/vnd.in3d.spot":{source:"iana",extensions:["spot"]},"text/vnd.iptc.newsml":{source:"iana"},"text/vnd.iptc.nitf":{source:"iana"},"text/vnd.latex-z":{source:"iana"},"text/vnd.motorola.reflex":{source:"iana"},"text/vnd.ms-mediapackage":{source:"iana"},"text/vnd.net2phone.commcenter.command":{source:"iana"},"text/vnd.radisys.msml-basic-layout":{source:"iana"},"text/vnd.senx.warpscript":{source:"iana"},"text/vnd.si.uricatalogue":{source:"iana"},"text/vnd.sosi":{source:"iana"},"text/vnd.sun.j2me.app-descriptor":{source:"iana",charset:"UTF-8",extensions:["jad"]},"text/vnd.trolltech.linguist":{source:"iana",charset:"UTF-8"},"text/vnd.wap.si":{source:"iana"},"text/vnd.wap.sl":{source:"iana"},"text/vnd.wap.wml":{source:"iana",extensions:["wml"]},"text/vnd.wap.wmlscript":{source:"iana",extensions:["wmls"]},"text/vtt":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["vtt"]},"text/x-asm":{source:"apache",extensions:["s","asm"]},"text/x-c":{source:"apache",extensions:["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{source:"nginx",extensions:["htc"]},"text/x-fortran":{source:"apache",extensions:["f","for","f77","f90"]},"text/x-gwt-rpc":{compressible:!0},"text/x-handlebars-template":{extensions:["hbs"]},"text/x-java-source":{source:"apache",extensions:["java"]},"text/x-jquery-tmpl":{compressible:!0},"text/x-lua":{extensions:["lua"]},"text/x-markdown":{compressible:!0,extensions:["mkd"]},"text/x-nfo":{source:"apache",extensions:["nfo"]},"text/x-opml":{source:"apache",extensions:["opml"]},"text/x-org":{compressible:!0,extensions:["org"]},"text/x-pascal":{source:"apache",extensions:["p","pas"]},"text/x-processing":{compressible:!0,extensions:["pde"]},"text/x-sass":{extensions:["sass"]},"text/x-scss":{extensions:["scss"]},"text/x-setext":{source:"apache",extensions:["etx"]},"text/x-sfv":{source:"apache",extensions:["sfv"]},"text/x-suse-ymp":{compressible:!0,extensions:["ymp"]},"text/x-uuencode":{source:"apache",extensions:["uu"]},"text/x-vcalendar":{source:"apache",extensions:["vcs"]},"text/x-vcard":{source:"apache",extensions:["vcf"]},"text/xml":{source:"iana",compressible:!0,extensions:["xml"]},"text/xml-external-parsed-entity":{source:"iana"},"text/yaml":{compressible:!0,extensions:["yaml","yml"]},"video/1d-interleaved-parityfec":{source:"iana"},"video/3gpp":{source:"iana",extensions:["3gp","3gpp"]},"video/3gpp-tt":{source:"iana"},"video/3gpp2":{source:"iana",extensions:["3g2"]},"video/av1":{source:"iana"},"video/bmpeg":{source:"iana"},"video/bt656":{source:"iana"},"video/celb":{source:"iana"},"video/dv":{source:"iana"},"video/encaprtp":{source:"iana"},"video/ffv1":{source:"iana"},"video/flexfec":{source:"iana"},"video/h261":{source:"iana",extensions:["h261"]},"video/h263":{source:"iana",extensions:["h263"]},"video/h263-1998":{source:"iana"},"video/h263-2000":{source:"iana"},"video/h264":{source:"iana",extensions:["h264"]},"video/h264-rcdo":{source:"iana"},"video/h264-svc":{source:"iana"},"video/h265":{source:"iana"},"video/iso.segment":{source:"iana",extensions:["m4s"]},"video/jpeg":{source:"iana",extensions:["jpgv"]},"video/jpeg2000":{source:"iana"},"video/jpm":{source:"apache",extensions:["jpm","jpgm"]},"video/jxsv":{source:"iana"},"video/mj2":{source:"iana",extensions:["mj2","mjp2"]},"video/mp1s":{source:"iana"},"video/mp2p":{source:"iana"},"video/mp2t":{source:"iana",extensions:["ts"]},"video/mp4":{source:"iana",compressible:!1,extensions:["mp4","mp4v","mpg4"]},"video/mp4v-es":{source:"iana"},"video/mpeg":{source:"iana",compressible:!1,extensions:["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{source:"iana"},"video/mpv":{source:"iana"},"video/nv":{source:"iana"},"video/ogg":{source:"iana",compressible:!1,extensions:["ogv"]},"video/parityfec":{source:"iana"},"video/pointer":{source:"iana"},"video/quicktime":{source:"iana",compressible:!1,extensions:["qt","mov"]},"video/raptorfec":{source:"iana"},"video/raw":{source:"iana"},"video/rtp-enc-aescm128":{source:"iana"},"video/rtploopback":{source:"iana"},"video/rtx":{source:"iana"},"video/scip":{source:"iana"},"video/smpte291":{source:"iana"},"video/smpte292m":{source:"iana"},"video/ulpfec":{source:"iana"},"video/vc1":{source:"iana"},"video/vc2":{source:"iana"},"video/vnd.cctv":{source:"iana"},"video/vnd.dece.hd":{source:"iana",extensions:["uvh","uvvh"]},"video/vnd.dece.mobile":{source:"iana",extensions:["uvm","uvvm"]},"video/vnd.dece.mp4":{source:"iana"},"video/vnd.dece.pd":{source:"iana",extensions:["uvp","uvvp"]},"video/vnd.dece.sd":{source:"iana",extensions:["uvs","uvvs"]},"video/vnd.dece.video":{source:"iana",extensions:["uvv","uvvv"]},"video/vnd.directv.mpeg":{source:"iana"},"video/vnd.directv.mpeg-tts":{source:"iana"},"video/vnd.dlna.mpeg-tts":{source:"iana"},"video/vnd.dvb.file":{source:"iana",extensions:["dvb"]},"video/vnd.fvt":{source:"iana",extensions:["fvt"]},"video/vnd.hns.video":{source:"iana"},"video/vnd.iptvforum.1dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.1dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.2dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.2dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.ttsavc":{source:"iana"},"video/vnd.iptvforum.ttsmpeg2":{source:"iana"},"video/vnd.motorola.video":{source:"iana"},"video/vnd.motorola.videop":{source:"iana"},"video/vnd.mpegurl":{source:"iana",extensions:["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{source:"iana",extensions:["pyv"]},"video/vnd.nokia.interleaved-multimedia":{source:"iana"},"video/vnd.nokia.mp4vr":{source:"iana"},"video/vnd.nokia.videovoip":{source:"iana"},"video/vnd.objectvideo":{source:"iana"},"video/vnd.radgamettools.bink":{source:"iana"},"video/vnd.radgamettools.smacker":{source:"iana"},"video/vnd.sealed.mpeg1":{source:"iana"},"video/vnd.sealed.mpeg4":{source:"iana"},"video/vnd.sealed.swf":{source:"iana"},"video/vnd.sealedmedia.softseal.mov":{source:"iana"},"video/vnd.uvvu.mp4":{source:"iana",extensions:["uvu","uvvu"]},"video/vnd.vivo":{source:"iana",extensions:["viv"]},"video/vnd.youtube.yt":{source:"iana"},"video/vp8":{source:"iana"},"video/vp9":{source:"iana"},"video/webm":{source:"apache",compressible:!1,extensions:["webm"]},"video/x-f4v":{source:"apache",extensions:["f4v"]},"video/x-fli":{source:"apache",extensions:["fli"]},"video/x-flv":{source:"apache",compressible:!1,extensions:["flv"]},"video/x-m4v":{source:"apache",extensions:["m4v"]},"video/x-matroska":{source:"apache",compressible:!1,extensions:["mkv","mk3d","mks"]},"video/x-mng":{source:"apache",extensions:["mng"]},"video/x-ms-asf":{source:"apache",extensions:["asf","asx"]},"video/x-ms-vob":{source:"apache",extensions:["vob"]},"video/x-ms-wm":{source:"apache",extensions:["wm"]},"video/x-ms-wmv":{source:"apache",compressible:!1,extensions:["wmv"]},"video/x-ms-wmx":{source:"apache",extensions:["wmx"]},"video/x-ms-wvx":{source:"apache",extensions:["wvx"]},"video/x-msvideo":{source:"apache",extensions:["avi"]},"video/x-sgi-movie":{source:"apache",extensions:["movie"]},"video/x-smv":{source:"apache",extensions:["smv"]},"x-conference/x-cooltalk":{source:"apache",extensions:["ice"]},"x-shader/x-fragment":{compressible:!0},"x-shader/x-vertex":{compressible:!0}};/*!
1
+ "use strict";var hr=require("util"),tt=require("stream"),xp=require("path"),bl=require("http"),El=require("https"),Cl=require("url"),nm=require("fs"),Lr=require("crypto"),yp=require("http2"),im=require("assert"),bp=require("tty"),sm=require("os"),tr=require("zlib"),om=require("events");function Ep(e,t){return function(){return e.apply(t,arguments)}}const{toString:cm}=Object.prototype,{getPrototypeOf:Sl}=Object,{iterator:Cc,toStringTag:Cp}=Symbol,Sc=(e=>t=>{const a=cm.call(t);return e[a]||(e[a]=a.slice(8,-1).toLowerCase())})(Object.create(null)),Ot=e=>(e=e.toLowerCase(),t=>Sc(t)===e),Tc=e=>t=>typeof t===e,{isArray:Ur}=Array,Dr=Tc("undefined");function ta(e){return e!==null&&!Dr(e)&&e.constructor!==null&&!Dr(e.constructor)&&ft(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Sp=Ot("ArrayBuffer");function lm(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Sp(e.buffer),t}const um=Tc("string"),ft=Tc("function"),Tp=Tc("number"),ra=e=>e!==null&&typeof e=="object",pm=e=>e===!0||e===!1,wc=e=>{if(Sc(e)!=="object")return!1;const t=Sl(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Cp in e)&&!(Cc in e)},dm=e=>{if(!ra(e)||ta(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},fm=Ot("Date"),mm=Ot("File"),hm=e=>!!(e&&typeof e.uri<"u"),vm=e=>e&&typeof e.getParts<"u",gm=Ot("Blob"),xm=Ot("FileList"),ym=e=>ra(e)&&ft(e.pipe);function bm(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const wp=bm(),Ap=typeof wp.FormData<"u"?wp.FormData:void 0,Em=e=>{let t;return e&&(Ap&&e instanceof Ap||ft(e.append)&&((t=Sc(e))==="formdata"||t==="object"&&ft(e.toString)&&e.toString()==="[object FormData]"))},Cm=Ot("URLSearchParams"),[Sm,Tm,wm,Am]=["ReadableStream","Request","Response","Headers"].map(Ot),Im=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function aa(e,t,{allOwnKeys:a=!1}={}){if(e===null||typeof e>"u")return;let r,n;if(typeof e!="object"&&(e=[e]),Ur(e))for(r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else{if(ta(e))return;const s=a?Object.getOwnPropertyNames(e):Object.keys(e),i=s.length;let o;for(r=0;r<i;r++)o=s[r],t.call(null,e[o],o,e)}}function Ip(e,t){if(ta(e))return null;t=t.toLowerCase();const a=Object.keys(e);let r=a.length,n;for(;r-- >0;)if(n=a[r],t===n.toLowerCase())return n;return null}const vr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Bp=e=>!Dr(e)&&e!==vr;function Tl(){const{caseless:e,skipUndefined:t}=Bp(this)&&this||{},a={},r=(n,s)=>{if(s==="__proto__"||s==="constructor"||s==="prototype")return;const i=e&&Ip(a,s)||s;wc(a[i])&&wc(n)?a[i]=Tl(a[i],n):wc(n)?a[i]=Tl({},n):Ur(n)?a[i]=n.slice():(!t||!Dr(n))&&(a[i]=n)};for(let n=0,s=arguments.length;n<s;n++)arguments[n]&&aa(arguments[n],r);return a}const Bm=(e,t,a,{allOwnKeys:r}={})=>(aa(t,(n,s)=>{a&&ft(n)?Object.defineProperty(e,s,{value:Ep(n,a),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,s,{value:n,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),_m=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Rm=(e,t,a,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),a&&Object.assign(e.prototype,a)},km=(e,t,a,r)=>{let n,s,i;const o={};if(t=t||{},e==null)return t;do{for(n=Object.getOwnPropertyNames(e),s=n.length;s-- >0;)i=n[s],(!r||r(i,e,t))&&!o[i]&&(t[i]=e[i],o[i]=!0);e=a!==!1&&Sl(e)}while(e&&(!a||a(e,t))&&e!==Object.prototype);return t},Nm=(e,t,a)=>{e=String(e),(a===void 0||a>e.length)&&(a=e.length),a-=t.length;const r=e.indexOf(t,a);return r!==-1&&r===a},Lm=e=>{if(!e)return null;if(Ur(e))return e;let t=e.length;if(!Tp(t))return null;const a=new Array(t);for(;t-- >0;)a[t]=e[t];return a},Um=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Sl(Uint8Array)),Dm=(e,t)=>{const r=(e&&e[Cc]).call(e);let n;for(;(n=r.next())&&!n.done;){const s=n.value;t.call(e,s[0],s[1])}},Pm=(e,t)=>{let a;const r=[];for(;(a=e.exec(t))!==null;)r.push(a);return r},Om=Ot("HTMLFormElement"),Fm=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,r,n){return r.toUpperCase()+n}),_p=(({hasOwnProperty:e})=>(t,a)=>e.call(t,a))(Object.prototype),Mm=Ot("RegExp"),Rp=(e,t)=>{const a=Object.getOwnPropertyDescriptors(e),r={};aa(a,(n,s)=>{let i;(i=t(n,s,e))!==!1&&(r[s]=i||n)}),Object.defineProperties(e,r)},Vm=e=>{Rp(e,(t,a)=>{if(ft(e)&&["arguments","caller","callee"].indexOf(a)!==-1)return!1;const r=e[a];if(ft(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+a+"'")})}})},qm=(e,t)=>{const a={},r=n=>{n.forEach(s=>{a[s]=!0})};return Ur(e)?r(e):r(String(e).split(t)),a},jm=()=>{},Km=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function zm(e){return!!(e&&ft(e.append)&&e[Cp]==="FormData"&&e[Cc])}const Hm=e=>{const t=new Array(10),a=(r,n)=>{if(ra(r)){if(t.indexOf(r)>=0)return;if(ta(r))return r;if(!("toJSON"in r)){t[n]=r;const s=Ur(r)?[]:{};return aa(r,(i,o)=>{const c=a(i,n+1);!Dr(c)&&(s[o]=c)}),t[n]=void 0,s}}return r};return a(e,0)},$m=Ot("AsyncFunction"),Gm=e=>e&&(ra(e)||ft(e))&&ft(e.then)&&ft(e.catch),kp=((e,t)=>e?setImmediate:t?((a,r)=>(vr.addEventListener("message",({source:n,data:s})=>{n===vr&&s===a&&r.length&&r.shift()()},!1),n=>{r.push(n),vr.postMessage(a,"*")}))(`axios@${Math.random()}`,[]):a=>setTimeout(a))(typeof setImmediate=="function",ft(vr.postMessage)),Qm=typeof queueMicrotask<"u"?queueMicrotask.bind(vr):typeof process<"u"&&process.nextTick||kp,Wm=e=>e!=null&&ft(e[Cc]);var A={isArray:Ur,isArrayBuffer:Sp,isBuffer:ta,isFormData:Em,isArrayBufferView:lm,isString:um,isNumber:Tp,isBoolean:pm,isObject:ra,isPlainObject:wc,isEmptyObject:dm,isReadableStream:Sm,isRequest:Tm,isResponse:wm,isHeaders:Am,isUndefined:Dr,isDate:fm,isFile:mm,isReactNativeBlob:hm,isReactNative:vm,isBlob:gm,isRegExp:Mm,isFunction:ft,isStream:ym,isURLSearchParams:Cm,isTypedArray:Um,isFileList:xm,forEach:aa,merge:Tl,extend:Bm,trim:Im,stripBOM:_m,inherits:Rm,toFlatObject:km,kindOf:Sc,kindOfTest:Ot,endsWith:Nm,toArray:Lm,forEachEntry:Dm,matchAll:Pm,isHTMLForm:Om,hasOwnProperty:_p,hasOwnProp:_p,reduceDescriptors:Rp,freezeMethods:Vm,toObjectSet:qm,toCamelCase:Fm,noop:jm,toFiniteNumber:Km,findKey:Ip,global:vr,isContextDefined:Bp,isSpecCompliantForm:zm,toJSONObject:Hm,isAsyncFn:$m,isThenable:Gm,setImmediate:kp,asap:Qm,isIterable:Wm};let F=class rm extends Error{static from(t,a,r,n,s,i){const o=new rm(t.message,a||t.code,r,n,s);return o.cause=t,o.name=t.name,t.status!=null&&o.status==null&&(o.status=t.status),i&&Object.assign(o,i),o}constructor(t,a,r,n,s){super(t),Object.defineProperty(this,"message",{value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,a&&(this.code=a),r&&(this.config=r),n&&(this.request=n),s&&(this.response=s,this.status=s.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:A.toJSONObject(this.config),code:this.code,status:this.status}}};F.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",F.ERR_BAD_OPTION="ERR_BAD_OPTION",F.ECONNABORTED="ECONNABORTED",F.ETIMEDOUT="ETIMEDOUT",F.ERR_NETWORK="ERR_NETWORK",F.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",F.ERR_DEPRECATED="ERR_DEPRECATED",F.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",F.ERR_BAD_REQUEST="ERR_BAD_REQUEST",F.ERR_CANCELED="ERR_CANCELED",F.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",F.ERR_INVALID_URL="ERR_INVALID_URL";var Ym=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Np(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Lp=tt.Stream,Xm=hr,Jm=Ft;function Ft(){this.source=null,this.dataSize=0,this.maxDataSize=1024*1024,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}Xm.inherits(Ft,Lp),Ft.create=function(e,t){var a=new this;t=t||{};for(var r in t)a[r]=t[r];a.source=e;var n=e.emit;return e.emit=function(){return a._handleEmit(arguments),n.apply(e,arguments)},e.on("error",function(){}),a.pauseStream&&e.pause(),a},Object.defineProperty(Ft.prototype,"readable",{configurable:!0,enumerable:!0,get:function(){return this.source.readable}}),Ft.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)},Ft.prototype.resume=function(){this._released||this.release(),this.source.resume()},Ft.prototype.pause=function(){this.source.pause()},Ft.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(e){this.emit.apply(this,e)}.bind(this)),this._bufferedEvents=[]},Ft.prototype.pipe=function(){var e=Lp.prototype.pipe.apply(this,arguments);return this.resume(),e},Ft.prototype._handleEmit=function(e){if(this._released){this.emit.apply(this,e);return}e[0]==="data"&&(this.dataSize+=e[1].length,this._checkIfMaxDataSizeExceeded()),this._bufferedEvents.push(e)},Ft.prototype._checkIfMaxDataSizeExceeded=function(){if(!this._maxDataSizeExceeded&&!(this.dataSize<=this.maxDataSize)){this._maxDataSizeExceeded=!0;var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(e))}};var Zm=hr,Up=tt.Stream,Dp=Jm,eh=Le;function Le(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2*1024*1024,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}Zm.inherits(Le,Up),Le.create=function(e){var t=new this;e=e||{};for(var a in e)t[a]=e[a];return t},Le.isStreamLike=function(e){return typeof e!="function"&&typeof e!="string"&&typeof e!="boolean"&&typeof e!="number"&&!Buffer.isBuffer(e)},Le.prototype.append=function(e){var t=Le.isStreamLike(e);if(t){if(!(e instanceof Dp)){var a=Dp.create(e,{maxDataSize:1/0,pauseStream:this.pauseStreams});e.on("data",this._checkDataSize.bind(this)),e=a}this._handleErrors(e),this.pauseStreams&&e.pause()}return this._streams.push(e),this},Le.prototype.pipe=function(e,t){return Up.prototype.pipe.call(this,e,t),this.resume(),e},Le.prototype._getNext=function(){if(this._currentStream=null,this._insideLoop){this._pendingNext=!0;return}this._insideLoop=!0;try{do this._pendingNext=!1,this._realGetNext();while(this._pendingNext)}finally{this._insideLoop=!1}},Le.prototype._realGetNext=function(){var e=this._streams.shift();if(typeof e>"u"){this.end();return}if(typeof e!="function"){this._pipeNext(e);return}var t=e;t(function(a){var r=Le.isStreamLike(a);r&&(a.on("data",this._checkDataSize.bind(this)),this._handleErrors(a)),this._pipeNext(a)}.bind(this))},Le.prototype._pipeNext=function(e){this._currentStream=e;var t=Le.isStreamLike(e);if(t){e.on("end",this._getNext.bind(this)),e.pipe(this,{end:!1});return}var a=e;this.write(a),this._getNext()},Le.prototype._handleErrors=function(e){var t=this;e.on("error",function(a){t._emitError(a)})},Le.prototype.write=function(e){this.emit("data",e)},Le.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function"&&this._currentStream.pause(),this.emit("pause"))},Le.prototype.resume=function(){this._released||(this._released=!0,this.writable=!0,this._getNext()),this.pauseStreams&&this._currentStream&&typeof this._currentStream.resume=="function"&&this._currentStream.resume(),this.emit("resume")},Le.prototype.end=function(){this._reset(),this.emit("end")},Le.prototype.destroy=function(){this._reset(),this.emit("close")},Le.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null},Le.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(e))}},Le.prototype._updateDataSize=function(){this.dataSize=0;var e=this;this._streams.forEach(function(t){t.dataSize&&(e.dataSize+=t.dataSize)}),this._currentStream&&this._currentStream.dataSize&&(this.dataSize+=this._currentStream.dataSize)},Le.prototype._emitError=function(e){this._reset(),this.emit("error",e)};var Pp={},th={"application/1d-interleaved-parityfec":{source:"iana"},"application/3gpdash-qoe-report+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/3gpp-ims+xml":{source:"iana",compressible:!0},"application/3gpphal+json":{source:"iana",compressible:!0},"application/3gpphalforms+json":{source:"iana",compressible:!0},"application/a2l":{source:"iana"},"application/ace+cbor":{source:"iana"},"application/activemessage":{source:"iana"},"application/activity+json":{source:"iana",compressible:!0},"application/alto-costmap+json":{source:"iana",compressible:!0},"application/alto-costmapfilter+json":{source:"iana",compressible:!0},"application/alto-directory+json":{source:"iana",compressible:!0},"application/alto-endpointcost+json":{source:"iana",compressible:!0},"application/alto-endpointcostparams+json":{source:"iana",compressible:!0},"application/alto-endpointprop+json":{source:"iana",compressible:!0},"application/alto-endpointpropparams+json":{source:"iana",compressible:!0},"application/alto-error+json":{source:"iana",compressible:!0},"application/alto-networkmap+json":{source:"iana",compressible:!0},"application/alto-networkmapfilter+json":{source:"iana",compressible:!0},"application/alto-updatestreamcontrol+json":{source:"iana",compressible:!0},"application/alto-updatestreamparams+json":{source:"iana",compressible:!0},"application/aml":{source:"iana"},"application/andrew-inset":{source:"iana",extensions:["ez"]},"application/applefile":{source:"iana"},"application/applixware":{source:"apache",extensions:["aw"]},"application/at+jwt":{source:"iana"},"application/atf":{source:"iana"},"application/atfx":{source:"iana"},"application/atom+xml":{source:"iana",compressible:!0,extensions:["atom"]},"application/atomcat+xml":{source:"iana",compressible:!0,extensions:["atomcat"]},"application/atomdeleted+xml":{source:"iana",compressible:!0,extensions:["atomdeleted"]},"application/atomicmail":{source:"iana"},"application/atomsvc+xml":{source:"iana",compressible:!0,extensions:["atomsvc"]},"application/atsc-dwd+xml":{source:"iana",compressible:!0,extensions:["dwd"]},"application/atsc-dynamic-event-message":{source:"iana"},"application/atsc-held+xml":{source:"iana",compressible:!0,extensions:["held"]},"application/atsc-rdt+json":{source:"iana",compressible:!0},"application/atsc-rsat+xml":{source:"iana",compressible:!0,extensions:["rsat"]},"application/atxml":{source:"iana"},"application/auth-policy+xml":{source:"iana",compressible:!0},"application/bacnet-xdd+zip":{source:"iana",compressible:!1},"application/batch-smtp":{source:"iana"},"application/bdoc":{compressible:!1,extensions:["bdoc"]},"application/beep+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/calendar+json":{source:"iana",compressible:!0},"application/calendar+xml":{source:"iana",compressible:!0,extensions:["xcs"]},"application/call-completion":{source:"iana"},"application/cals-1840":{source:"iana"},"application/captive+json":{source:"iana",compressible:!0},"application/cbor":{source:"iana"},"application/cbor-seq":{source:"iana"},"application/cccex":{source:"iana"},"application/ccmp+xml":{source:"iana",compressible:!0},"application/ccxml+xml":{source:"iana",compressible:!0,extensions:["ccxml"]},"application/cdfx+xml":{source:"iana",compressible:!0,extensions:["cdfx"]},"application/cdmi-capability":{source:"iana",extensions:["cdmia"]},"application/cdmi-container":{source:"iana",extensions:["cdmic"]},"application/cdmi-domain":{source:"iana",extensions:["cdmid"]},"application/cdmi-object":{source:"iana",extensions:["cdmio"]},"application/cdmi-queue":{source:"iana",extensions:["cdmiq"]},"application/cdni":{source:"iana"},"application/cea":{source:"iana"},"application/cea-2018+xml":{source:"iana",compressible:!0},"application/cellml+xml":{source:"iana",compressible:!0},"application/cfw":{source:"iana"},"application/city+json":{source:"iana",compressible:!0},"application/clr":{source:"iana"},"application/clue+xml":{source:"iana",compressible:!0},"application/clue_info+xml":{source:"iana",compressible:!0},"application/cms":{source:"iana"},"application/cnrp+xml":{source:"iana",compressible:!0},"application/coap-group+json":{source:"iana",compressible:!0},"application/coap-payload":{source:"iana"},"application/commonground":{source:"iana"},"application/conference-info+xml":{source:"iana",compressible:!0},"application/cose":{source:"iana"},"application/cose-key":{source:"iana"},"application/cose-key-set":{source:"iana"},"application/cpl+xml":{source:"iana",compressible:!0,extensions:["cpl"]},"application/csrattrs":{source:"iana"},"application/csta+xml":{source:"iana",compressible:!0},"application/cstadata+xml":{source:"iana",compressible:!0},"application/csvm+json":{source:"iana",compressible:!0},"application/cu-seeme":{source:"apache",extensions:["cu"]},"application/cwt":{source:"iana"},"application/cybercash":{source:"iana"},"application/dart":{compressible:!0},"application/dash+xml":{source:"iana",compressible:!0,extensions:["mpd"]},"application/dash-patch+xml":{source:"iana",compressible:!0,extensions:["mpp"]},"application/dashdelta":{source:"iana"},"application/davmount+xml":{source:"iana",compressible:!0,extensions:["davmount"]},"application/dca-rft":{source:"iana"},"application/dcd":{source:"iana"},"application/dec-dx":{source:"iana"},"application/dialog-info+xml":{source:"iana",compressible:!0},"application/dicom":{source:"iana"},"application/dicom+json":{source:"iana",compressible:!0},"application/dicom+xml":{source:"iana",compressible:!0},"application/dii":{source:"iana"},"application/dit":{source:"iana"},"application/dns":{source:"iana"},"application/dns+json":{source:"iana",compressible:!0},"application/dns-message":{source:"iana"},"application/docbook+xml":{source:"apache",compressible:!0,extensions:["dbk"]},"application/dots+cbor":{source:"iana"},"application/dskpp+xml":{source:"iana",compressible:!0},"application/dssc+der":{source:"iana",extensions:["dssc"]},"application/dssc+xml":{source:"iana",compressible:!0,extensions:["xdssc"]},"application/dvcs":{source:"iana"},"application/ecmascript":{source:"iana",compressible:!0,extensions:["es","ecma"]},"application/edi-consent":{source:"iana"},"application/edi-x12":{source:"iana",compressible:!1},"application/edifact":{source:"iana",compressible:!1},"application/efi":{source:"iana"},"application/elm+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/elm+xml":{source:"iana",compressible:!0},"application/emergencycalldata.cap+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/emergencycalldata.comment+xml":{source:"iana",compressible:!0},"application/emergencycalldata.control+xml":{source:"iana",compressible:!0},"application/emergencycalldata.deviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.ecall.msd":{source:"iana"},"application/emergencycalldata.providerinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.serviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.subscriberinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.veds+xml":{source:"iana",compressible:!0},"application/emma+xml":{source:"iana",compressible:!0,extensions:["emma"]},"application/emotionml+xml":{source:"iana",compressible:!0,extensions:["emotionml"]},"application/encaprtp":{source:"iana"},"application/epp+xml":{source:"iana",compressible:!0},"application/epub+zip":{source:"iana",compressible:!1,extensions:["epub"]},"application/eshop":{source:"iana"},"application/exi":{source:"iana",extensions:["exi"]},"application/expect-ct-report+json":{source:"iana",compressible:!0},"application/express":{source:"iana",extensions:["exp"]},"application/fastinfoset":{source:"iana"},"application/fastsoap":{source:"iana"},"application/fdt+xml":{source:"iana",compressible:!0,extensions:["fdt"]},"application/fhir+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/fhir+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/fido.trusted-apps+json":{compressible:!0},"application/fits":{source:"iana"},"application/flexfec":{source:"iana"},"application/font-sfnt":{source:"iana"},"application/font-tdpfr":{source:"iana",extensions:["pfr"]},"application/font-woff":{source:"iana",compressible:!1},"application/framework-attributes+xml":{source:"iana",compressible:!0},"application/geo+json":{source:"iana",compressible:!0,extensions:["geojson"]},"application/geo+json-seq":{source:"iana"},"application/geopackage+sqlite3":{source:"iana"},"application/geoxacml+xml":{source:"iana",compressible:!0},"application/gltf-buffer":{source:"iana"},"application/gml+xml":{source:"iana",compressible:!0,extensions:["gml"]},"application/gpx+xml":{source:"apache",compressible:!0,extensions:["gpx"]},"application/gxf":{source:"apache",extensions:["gxf"]},"application/gzip":{source:"iana",compressible:!1,extensions:["gz"]},"application/h224":{source:"iana"},"application/held+xml":{source:"iana",compressible:!0},"application/hjson":{extensions:["hjson"]},"application/http":{source:"iana"},"application/hyperstudio":{source:"iana",extensions:["stk"]},"application/ibe-key-request+xml":{source:"iana",compressible:!0},"application/ibe-pkg-reply+xml":{source:"iana",compressible:!0},"application/ibe-pp-data":{source:"iana"},"application/iges":{source:"iana"},"application/im-iscomposing+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/index":{source:"iana"},"application/index.cmd":{source:"iana"},"application/index.obj":{source:"iana"},"application/index.response":{source:"iana"},"application/index.vnd":{source:"iana"},"application/inkml+xml":{source:"iana",compressible:!0,extensions:["ink","inkml"]},"application/iotp":{source:"iana"},"application/ipfix":{source:"iana",extensions:["ipfix"]},"application/ipp":{source:"iana"},"application/isup":{source:"iana"},"application/its+xml":{source:"iana",compressible:!0,extensions:["its"]},"application/java-archive":{source:"apache",compressible:!1,extensions:["jar","war","ear"]},"application/java-serialized-object":{source:"apache",compressible:!1,extensions:["ser"]},"application/java-vm":{source:"apache",compressible:!1,extensions:["class"]},"application/javascript":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["js","mjs"]},"application/jf2feed+json":{source:"iana",compressible:!0},"application/jose":{source:"iana"},"application/jose+json":{source:"iana",compressible:!0},"application/jrd+json":{source:"iana",compressible:!0},"application/jscalendar+json":{source:"iana",compressible:!0},"application/json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["json","map"]},"application/json-patch+json":{source:"iana",compressible:!0},"application/json-seq":{source:"iana"},"application/json5":{extensions:["json5"]},"application/jsonml+json":{source:"apache",compressible:!0,extensions:["jsonml"]},"application/jwk+json":{source:"iana",compressible:!0},"application/jwk-set+json":{source:"iana",compressible:!0},"application/jwt":{source:"iana"},"application/kpml-request+xml":{source:"iana",compressible:!0},"application/kpml-response+xml":{source:"iana",compressible:!0},"application/ld+json":{source:"iana",compressible:!0,extensions:["jsonld"]},"application/lgr+xml":{source:"iana",compressible:!0,extensions:["lgr"]},"application/link-format":{source:"iana"},"application/load-control+xml":{source:"iana",compressible:!0},"application/lost+xml":{source:"iana",compressible:!0,extensions:["lostxml"]},"application/lostsync+xml":{source:"iana",compressible:!0},"application/lpf+zip":{source:"iana",compressible:!1},"application/lxf":{source:"iana"},"application/mac-binhex40":{source:"iana",extensions:["hqx"]},"application/mac-compactpro":{source:"apache",extensions:["cpt"]},"application/macwriteii":{source:"iana"},"application/mads+xml":{source:"iana",compressible:!0,extensions:["mads"]},"application/manifest+json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["webmanifest"]},"application/marc":{source:"iana",extensions:["mrc"]},"application/marcxml+xml":{source:"iana",compressible:!0,extensions:["mrcx"]},"application/mathematica":{source:"iana",extensions:["ma","nb","mb"]},"application/mathml+xml":{source:"iana",compressible:!0,extensions:["mathml"]},"application/mathml-content+xml":{source:"iana",compressible:!0},"application/mathml-presentation+xml":{source:"iana",compressible:!0},"application/mbms-associated-procedure-description+xml":{source:"iana",compressible:!0},"application/mbms-deregister+xml":{source:"iana",compressible:!0},"application/mbms-envelope+xml":{source:"iana",compressible:!0},"application/mbms-msk+xml":{source:"iana",compressible:!0},"application/mbms-msk-response+xml":{source:"iana",compressible:!0},"application/mbms-protection-description+xml":{source:"iana",compressible:!0},"application/mbms-reception-report+xml":{source:"iana",compressible:!0},"application/mbms-register+xml":{source:"iana",compressible:!0},"application/mbms-register-response+xml":{source:"iana",compressible:!0},"application/mbms-schedule+xml":{source:"iana",compressible:!0},"application/mbms-user-service-description+xml":{source:"iana",compressible:!0},"application/mbox":{source:"iana",extensions:["mbox"]},"application/media-policy-dataset+xml":{source:"iana",compressible:!0,extensions:["mpf"]},"application/media_control+xml":{source:"iana",compressible:!0},"application/mediaservercontrol+xml":{source:"iana",compressible:!0,extensions:["mscml"]},"application/merge-patch+json":{source:"iana",compressible:!0},"application/metalink+xml":{source:"apache",compressible:!0,extensions:["metalink"]},"application/metalink4+xml":{source:"iana",compressible:!0,extensions:["meta4"]},"application/mets+xml":{source:"iana",compressible:!0,extensions:["mets"]},"application/mf4":{source:"iana"},"application/mikey":{source:"iana"},"application/mipc":{source:"iana"},"application/missing-blocks+cbor-seq":{source:"iana"},"application/mmt-aei+xml":{source:"iana",compressible:!0,extensions:["maei"]},"application/mmt-usd+xml":{source:"iana",compressible:!0,extensions:["musd"]},"application/mods+xml":{source:"iana",compressible:!0,extensions:["mods"]},"application/moss-keys":{source:"iana"},"application/moss-signature":{source:"iana"},"application/mosskey-data":{source:"iana"},"application/mosskey-request":{source:"iana"},"application/mp21":{source:"iana",extensions:["m21","mp21"]},"application/mp4":{source:"iana",extensions:["mp4s","m4p"]},"application/mpeg4-generic":{source:"iana"},"application/mpeg4-iod":{source:"iana"},"application/mpeg4-iod-xmt":{source:"iana"},"application/mrb-consumer+xml":{source:"iana",compressible:!0},"application/mrb-publish+xml":{source:"iana",compressible:!0},"application/msc-ivr+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msc-mixer+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msword":{source:"iana",compressible:!1,extensions:["doc","dot"]},"application/mud+json":{source:"iana",compressible:!0},"application/multipart-core":{source:"iana"},"application/mxf":{source:"iana",extensions:["mxf"]},"application/n-quads":{source:"iana",extensions:["nq"]},"application/n-triples":{source:"iana",extensions:["nt"]},"application/nasdata":{source:"iana"},"application/news-checkgroups":{source:"iana",charset:"US-ASCII"},"application/news-groupinfo":{source:"iana",charset:"US-ASCII"},"application/news-transmission":{source:"iana"},"application/nlsml+xml":{source:"iana",compressible:!0},"application/node":{source:"iana",extensions:["cjs"]},"application/nss":{source:"iana"},"application/oauth-authz-req+jwt":{source:"iana"},"application/oblivious-dns-message":{source:"iana"},"application/ocsp-request":{source:"iana"},"application/ocsp-response":{source:"iana"},"application/octet-stream":{source:"iana",compressible:!1,extensions:["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{source:"iana",extensions:["oda"]},"application/odm+xml":{source:"iana",compressible:!0},"application/odx":{source:"iana"},"application/oebps-package+xml":{source:"iana",compressible:!0,extensions:["opf"]},"application/ogg":{source:"iana",compressible:!1,extensions:["ogx"]},"application/omdoc+xml":{source:"apache",compressible:!0,extensions:["omdoc"]},"application/onenote":{source:"apache",extensions:["onetoc","onetoc2","onetmp","onepkg"]},"application/opc-nodeset+xml":{source:"iana",compressible:!0},"application/oscore":{source:"iana"},"application/oxps":{source:"iana",extensions:["oxps"]},"application/p21":{source:"iana"},"application/p21+zip":{source:"iana",compressible:!1},"application/p2p-overlay+xml":{source:"iana",compressible:!0,extensions:["relo"]},"application/parityfec":{source:"iana"},"application/passport":{source:"iana"},"application/patch-ops-error+xml":{source:"iana",compressible:!0,extensions:["xer"]},"application/pdf":{source:"iana",compressible:!1,extensions:["pdf"]},"application/pdx":{source:"iana"},"application/pem-certificate-chain":{source:"iana"},"application/pgp-encrypted":{source:"iana",compressible:!1,extensions:["pgp"]},"application/pgp-keys":{source:"iana",extensions:["asc"]},"application/pgp-signature":{source:"iana",extensions:["asc","sig"]},"application/pics-rules":{source:"apache",extensions:["prf"]},"application/pidf+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pidf-diff+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pkcs10":{source:"iana",extensions:["p10"]},"application/pkcs12":{source:"iana"},"application/pkcs7-mime":{source:"iana",extensions:["p7m","p7c"]},"application/pkcs7-signature":{source:"iana",extensions:["p7s"]},"application/pkcs8":{source:"iana",extensions:["p8"]},"application/pkcs8-encrypted":{source:"iana"},"application/pkix-attr-cert":{source:"iana",extensions:["ac"]},"application/pkix-cert":{source:"iana",extensions:["cer"]},"application/pkix-crl":{source:"iana",extensions:["crl"]},"application/pkix-pkipath":{source:"iana",extensions:["pkipath"]},"application/pkixcmp":{source:"iana",extensions:["pki"]},"application/pls+xml":{source:"iana",compressible:!0,extensions:["pls"]},"application/poc-settings+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/postscript":{source:"iana",compressible:!0,extensions:["ai","eps","ps"]},"application/ppsp-tracker+json":{source:"iana",compressible:!0},"application/problem+json":{source:"iana",compressible:!0},"application/problem+xml":{source:"iana",compressible:!0},"application/provenance+xml":{source:"iana",compressible:!0,extensions:["provx"]},"application/prs.alvestrand.titrax-sheet":{source:"iana"},"application/prs.cww":{source:"iana",extensions:["cww"]},"application/prs.cyn":{source:"iana",charset:"7-BIT"},"application/prs.hpub+zip":{source:"iana",compressible:!1},"application/prs.nprend":{source:"iana"},"application/prs.plucker":{source:"iana"},"application/prs.rdf-xml-crypt":{source:"iana"},"application/prs.xsf+xml":{source:"iana",compressible:!0},"application/pskc+xml":{source:"iana",compressible:!0,extensions:["pskcxml"]},"application/pvd+json":{source:"iana",compressible:!0},"application/qsig":{source:"iana"},"application/raml+yaml":{compressible:!0,extensions:["raml"]},"application/raptorfec":{source:"iana"},"application/rdap+json":{source:"iana",compressible:!0},"application/rdf+xml":{source:"iana",compressible:!0,extensions:["rdf","owl"]},"application/reginfo+xml":{source:"iana",compressible:!0,extensions:["rif"]},"application/relax-ng-compact-syntax":{source:"iana",extensions:["rnc"]},"application/remote-printing":{source:"iana"},"application/reputon+json":{source:"iana",compressible:!0},"application/resource-lists+xml":{source:"iana",compressible:!0,extensions:["rl"]},"application/resource-lists-diff+xml":{source:"iana",compressible:!0,extensions:["rld"]},"application/rfc+xml":{source:"iana",compressible:!0},"application/riscos":{source:"iana"},"application/rlmi+xml":{source:"iana",compressible:!0},"application/rls-services+xml":{source:"iana",compressible:!0,extensions:["rs"]},"application/route-apd+xml":{source:"iana",compressible:!0,extensions:["rapd"]},"application/route-s-tsid+xml":{source:"iana",compressible:!0,extensions:["sls"]},"application/route-usd+xml":{source:"iana",compressible:!0,extensions:["rusd"]},"application/rpki-ghostbusters":{source:"iana",extensions:["gbr"]},"application/rpki-manifest":{source:"iana",extensions:["mft"]},"application/rpki-publication":{source:"iana"},"application/rpki-roa":{source:"iana",extensions:["roa"]},"application/rpki-updown":{source:"iana"},"application/rsd+xml":{source:"apache",compressible:!0,extensions:["rsd"]},"application/rss+xml":{source:"apache",compressible:!0,extensions:["rss"]},"application/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"application/rtploopback":{source:"iana"},"application/rtx":{source:"iana"},"application/samlassertion+xml":{source:"iana",compressible:!0},"application/samlmetadata+xml":{source:"iana",compressible:!0},"application/sarif+json":{source:"iana",compressible:!0},"application/sarif-external-properties+json":{source:"iana",compressible:!0},"application/sbe":{source:"iana"},"application/sbml+xml":{source:"iana",compressible:!0,extensions:["sbml"]},"application/scaip+xml":{source:"iana",compressible:!0},"application/scim+json":{source:"iana",compressible:!0},"application/scvp-cv-request":{source:"iana",extensions:["scq"]},"application/scvp-cv-response":{source:"iana",extensions:["scs"]},"application/scvp-vp-request":{source:"iana",extensions:["spq"]},"application/scvp-vp-response":{source:"iana",extensions:["spp"]},"application/sdp":{source:"iana",extensions:["sdp"]},"application/secevent+jwt":{source:"iana"},"application/senml+cbor":{source:"iana"},"application/senml+json":{source:"iana",compressible:!0},"application/senml+xml":{source:"iana",compressible:!0,extensions:["senmlx"]},"application/senml-etch+cbor":{source:"iana"},"application/senml-etch+json":{source:"iana",compressible:!0},"application/senml-exi":{source:"iana"},"application/sensml+cbor":{source:"iana"},"application/sensml+json":{source:"iana",compressible:!0},"application/sensml+xml":{source:"iana",compressible:!0,extensions:["sensmlx"]},"application/sensml-exi":{source:"iana"},"application/sep+xml":{source:"iana",compressible:!0},"application/sep-exi":{source:"iana"},"application/session-info":{source:"iana"},"application/set-payment":{source:"iana"},"application/set-payment-initiation":{source:"iana",extensions:["setpay"]},"application/set-registration":{source:"iana"},"application/set-registration-initiation":{source:"iana",extensions:["setreg"]},"application/sgml":{source:"iana"},"application/sgml-open-catalog":{source:"iana"},"application/shf+xml":{source:"iana",compressible:!0,extensions:["shf"]},"application/sieve":{source:"iana",extensions:["siv","sieve"]},"application/simple-filter+xml":{source:"iana",compressible:!0},"application/simple-message-summary":{source:"iana"},"application/simplesymbolcontainer":{source:"iana"},"application/sipc":{source:"iana"},"application/slate":{source:"iana"},"application/smil":{source:"iana"},"application/smil+xml":{source:"iana",compressible:!0,extensions:["smi","smil"]},"application/smpte336m":{source:"iana"},"application/soap+fastinfoset":{source:"iana"},"application/soap+xml":{source:"iana",compressible:!0},"application/sparql-query":{source:"iana",extensions:["rq"]},"application/sparql-results+xml":{source:"iana",compressible:!0,extensions:["srx"]},"application/spdx+json":{source:"iana",compressible:!0},"application/spirits-event+xml":{source:"iana",compressible:!0},"application/sql":{source:"iana"},"application/srgs":{source:"iana",extensions:["gram"]},"application/srgs+xml":{source:"iana",compressible:!0,extensions:["grxml"]},"application/sru+xml":{source:"iana",compressible:!0,extensions:["sru"]},"application/ssdl+xml":{source:"apache",compressible:!0,extensions:["ssdl"]},"application/ssml+xml":{source:"iana",compressible:!0,extensions:["ssml"]},"application/stix+json":{source:"iana",compressible:!0},"application/swid+xml":{source:"iana",compressible:!0,extensions:["swidtag"]},"application/tamp-apex-update":{source:"iana"},"application/tamp-apex-update-confirm":{source:"iana"},"application/tamp-community-update":{source:"iana"},"application/tamp-community-update-confirm":{source:"iana"},"application/tamp-error":{source:"iana"},"application/tamp-sequence-adjust":{source:"iana"},"application/tamp-sequence-adjust-confirm":{source:"iana"},"application/tamp-status-query":{source:"iana"},"application/tamp-status-response":{source:"iana"},"application/tamp-update":{source:"iana"},"application/tamp-update-confirm":{source:"iana"},"application/tar":{compressible:!0},"application/taxii+json":{source:"iana",compressible:!0},"application/td+json":{source:"iana",compressible:!0},"application/tei+xml":{source:"iana",compressible:!0,extensions:["tei","teicorpus"]},"application/tetra_isi":{source:"iana"},"application/thraud+xml":{source:"iana",compressible:!0,extensions:["tfi"]},"application/timestamp-query":{source:"iana"},"application/timestamp-reply":{source:"iana"},"application/timestamped-data":{source:"iana",extensions:["tsd"]},"application/tlsrpt+gzip":{source:"iana"},"application/tlsrpt+json":{source:"iana",compressible:!0},"application/tnauthlist":{source:"iana"},"application/token-introspection+jwt":{source:"iana"},"application/toml":{compressible:!0,extensions:["toml"]},"application/trickle-ice-sdpfrag":{source:"iana"},"application/trig":{source:"iana",extensions:["trig"]},"application/ttml+xml":{source:"iana",compressible:!0,extensions:["ttml"]},"application/tve-trigger":{source:"iana"},"application/tzif":{source:"iana"},"application/tzif-leap":{source:"iana"},"application/ubjson":{compressible:!1,extensions:["ubj"]},"application/ulpfec":{source:"iana"},"application/urc-grpsheet+xml":{source:"iana",compressible:!0},"application/urc-ressheet+xml":{source:"iana",compressible:!0,extensions:["rsheet"]},"application/urc-targetdesc+xml":{source:"iana",compressible:!0,extensions:["td"]},"application/urc-uisocketdesc+xml":{source:"iana",compressible:!0},"application/vcard+json":{source:"iana",compressible:!0},"application/vcard+xml":{source:"iana",compressible:!0},"application/vemmi":{source:"iana"},"application/vividence.scriptfile":{source:"apache"},"application/vnd.1000minds.decision-model+xml":{source:"iana",compressible:!0,extensions:["1km"]},"application/vnd.3gpp-prose+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-prose-pc3ch+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-v2x-local-service-information":{source:"iana"},"application/vnd.3gpp.5gnas":{source:"iana"},"application/vnd.3gpp.access-transfer-events+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.bsf+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gmop+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gtpc":{source:"iana"},"application/vnd.3gpp.interworking-data":{source:"iana"},"application/vnd.3gpp.lpp":{source:"iana"},"application/vnd.3gpp.mc-signalling-ear":{source:"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-payload":{source:"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-signalling":{source:"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-floor-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-signed+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-init-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-transmission-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mid-call+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ngap":{source:"iana"},"application/vnd.3gpp.pfcp":{source:"iana"},"application/vnd.3gpp.pic-bw-large":{source:"iana",extensions:["plb"]},"application/vnd.3gpp.pic-bw-small":{source:"iana",extensions:["psb"]},"application/vnd.3gpp.pic-bw-var":{source:"iana",extensions:["pvb"]},"application/vnd.3gpp.s1ap":{source:"iana"},"application/vnd.3gpp.sms":{source:"iana"},"application/vnd.3gpp.sms+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-ext+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.state-and-event-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ussd+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.bcmcsinfo+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.sms":{source:"iana"},"application/vnd.3gpp2.tcap":{source:"iana",extensions:["tcap"]},"application/vnd.3lightssoftware.imagescal":{source:"iana"},"application/vnd.3m.post-it-notes":{source:"iana",extensions:["pwn"]},"application/vnd.accpac.simply.aso":{source:"iana",extensions:["aso"]},"application/vnd.accpac.simply.imp":{source:"iana",extensions:["imp"]},"application/vnd.acucobol":{source:"iana",extensions:["acu"]},"application/vnd.acucorp":{source:"iana",extensions:["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{source:"apache",compressible:!1,extensions:["air"]},"application/vnd.adobe.flash.movie":{source:"iana"},"application/vnd.adobe.formscentral.fcdt":{source:"iana",extensions:["fcdt"]},"application/vnd.adobe.fxp":{source:"iana",extensions:["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{source:"iana"},"application/vnd.adobe.xdp+xml":{source:"iana",compressible:!0,extensions:["xdp"]},"application/vnd.adobe.xfdf":{source:"iana",extensions:["xfdf"]},"application/vnd.aether.imp":{source:"iana"},"application/vnd.afpc.afplinedata":{source:"iana"},"application/vnd.afpc.afplinedata-pagedef":{source:"iana"},"application/vnd.afpc.cmoca-cmresource":{source:"iana"},"application/vnd.afpc.foca-charset":{source:"iana"},"application/vnd.afpc.foca-codedfont":{source:"iana"},"application/vnd.afpc.foca-codepage":{source:"iana"},"application/vnd.afpc.modca":{source:"iana"},"application/vnd.afpc.modca-cmtable":{source:"iana"},"application/vnd.afpc.modca-formdef":{source:"iana"},"application/vnd.afpc.modca-mediummap":{source:"iana"},"application/vnd.afpc.modca-objectcontainer":{source:"iana"},"application/vnd.afpc.modca-overlay":{source:"iana"},"application/vnd.afpc.modca-pagesegment":{source:"iana"},"application/vnd.age":{source:"iana",extensions:["age"]},"application/vnd.ah-barcode":{source:"iana"},"application/vnd.ahead.space":{source:"iana",extensions:["ahead"]},"application/vnd.airzip.filesecure.azf":{source:"iana",extensions:["azf"]},"application/vnd.airzip.filesecure.azs":{source:"iana",extensions:["azs"]},"application/vnd.amadeus+json":{source:"iana",compressible:!0},"application/vnd.amazon.ebook":{source:"apache",extensions:["azw"]},"application/vnd.amazon.mobi8-ebook":{source:"iana"},"application/vnd.americandynamics.acc":{source:"iana",extensions:["acc"]},"application/vnd.amiga.ami":{source:"iana",extensions:["ami"]},"application/vnd.amundsen.maze+xml":{source:"iana",compressible:!0},"application/vnd.android.ota":{source:"iana"},"application/vnd.android.package-archive":{source:"apache",compressible:!1,extensions:["apk"]},"application/vnd.anki":{source:"iana"},"application/vnd.anser-web-certificate-issue-initiation":{source:"iana",extensions:["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{source:"apache",extensions:["fti"]},"application/vnd.antix.game-component":{source:"iana",extensions:["atx"]},"application/vnd.apache.arrow.file":{source:"iana"},"application/vnd.apache.arrow.stream":{source:"iana"},"application/vnd.apache.thrift.binary":{source:"iana"},"application/vnd.apache.thrift.compact":{source:"iana"},"application/vnd.apache.thrift.json":{source:"iana"},"application/vnd.api+json":{source:"iana",compressible:!0},"application/vnd.aplextor.warrp+json":{source:"iana",compressible:!0},"application/vnd.apothekende.reservation+json":{source:"iana",compressible:!0},"application/vnd.apple.installer+xml":{source:"iana",compressible:!0,extensions:["mpkg"]},"application/vnd.apple.keynote":{source:"iana",extensions:["key"]},"application/vnd.apple.mpegurl":{source:"iana",extensions:["m3u8"]},"application/vnd.apple.numbers":{source:"iana",extensions:["numbers"]},"application/vnd.apple.pages":{source:"iana",extensions:["pages"]},"application/vnd.apple.pkpass":{compressible:!1,extensions:["pkpass"]},"application/vnd.arastra.swi":{source:"iana"},"application/vnd.aristanetworks.swi":{source:"iana",extensions:["swi"]},"application/vnd.artisan+json":{source:"iana",compressible:!0},"application/vnd.artsquare":{source:"iana"},"application/vnd.astraea-software.iota":{source:"iana",extensions:["iota"]},"application/vnd.audiograph":{source:"iana",extensions:["aep"]},"application/vnd.autopackage":{source:"iana"},"application/vnd.avalon+json":{source:"iana",compressible:!0},"application/vnd.avistar+xml":{source:"iana",compressible:!0},"application/vnd.balsamiq.bmml+xml":{source:"iana",compressible:!0,extensions:["bmml"]},"application/vnd.balsamiq.bmpr":{source:"iana"},"application/vnd.banana-accounting":{source:"iana"},"application/vnd.bbf.usp.error":{source:"iana"},"application/vnd.bbf.usp.msg":{source:"iana"},"application/vnd.bbf.usp.msg+json":{source:"iana",compressible:!0},"application/vnd.bekitzur-stech+json":{source:"iana",compressible:!0},"application/vnd.bint.med-content":{source:"iana"},"application/vnd.biopax.rdf+xml":{source:"iana",compressible:!0},"application/vnd.blink-idb-value-wrapper":{source:"iana"},"application/vnd.blueice.multipass":{source:"iana",extensions:["mpm"]},"application/vnd.bluetooth.ep.oob":{source:"iana"},"application/vnd.bluetooth.le.oob":{source:"iana"},"application/vnd.bmi":{source:"iana",extensions:["bmi"]},"application/vnd.bpf":{source:"iana"},"application/vnd.bpf3":{source:"iana"},"application/vnd.businessobjects":{source:"iana",extensions:["rep"]},"application/vnd.byu.uapi+json":{source:"iana",compressible:!0},"application/vnd.cab-jscript":{source:"iana"},"application/vnd.canon-cpdl":{source:"iana"},"application/vnd.canon-lips":{source:"iana"},"application/vnd.capasystems-pg+json":{source:"iana",compressible:!0},"application/vnd.cendio.thinlinc.clientconf":{source:"iana"},"application/vnd.century-systems.tcp_stream":{source:"iana"},"application/vnd.chemdraw+xml":{source:"iana",compressible:!0,extensions:["cdxml"]},"application/vnd.chess-pgn":{source:"iana"},"application/vnd.chipnuts.karaoke-mmd":{source:"iana",extensions:["mmd"]},"application/vnd.ciedi":{source:"iana"},"application/vnd.cinderella":{source:"iana",extensions:["cdy"]},"application/vnd.cirpack.isdn-ext":{source:"iana"},"application/vnd.citationstyles.style+xml":{source:"iana",compressible:!0,extensions:["csl"]},"application/vnd.claymore":{source:"iana",extensions:["cla"]},"application/vnd.cloanto.rp9":{source:"iana",extensions:["rp9"]},"application/vnd.clonk.c4group":{source:"iana",extensions:["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{source:"iana",extensions:["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{source:"iana",extensions:["c11amz"]},"application/vnd.coffeescript":{source:"iana"},"application/vnd.collabio.xodocuments.document":{source:"iana"},"application/vnd.collabio.xodocuments.document-template":{source:"iana"},"application/vnd.collabio.xodocuments.presentation":{source:"iana"},"application/vnd.collabio.xodocuments.presentation-template":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{source:"iana"},"application/vnd.collection+json":{source:"iana",compressible:!0},"application/vnd.collection.doc+json":{source:"iana",compressible:!0},"application/vnd.collection.next+json":{source:"iana",compressible:!0},"application/vnd.comicbook+zip":{source:"iana",compressible:!1},"application/vnd.comicbook-rar":{source:"iana"},"application/vnd.commerce-battelle":{source:"iana"},"application/vnd.commonspace":{source:"iana",extensions:["csp"]},"application/vnd.contact.cmsg":{source:"iana",extensions:["cdbcmsg"]},"application/vnd.coreos.ignition+json":{source:"iana",compressible:!0},"application/vnd.cosmocaller":{source:"iana",extensions:["cmc"]},"application/vnd.crick.clicker":{source:"iana",extensions:["clkx"]},"application/vnd.crick.clicker.keyboard":{source:"iana",extensions:["clkk"]},"application/vnd.crick.clicker.palette":{source:"iana",extensions:["clkp"]},"application/vnd.crick.clicker.template":{source:"iana",extensions:["clkt"]},"application/vnd.crick.clicker.wordbank":{source:"iana",extensions:["clkw"]},"application/vnd.criticaltools.wbs+xml":{source:"iana",compressible:!0,extensions:["wbs"]},"application/vnd.cryptii.pipe+json":{source:"iana",compressible:!0},"application/vnd.crypto-shade-file":{source:"iana"},"application/vnd.cryptomator.encrypted":{source:"iana"},"application/vnd.cryptomator.vault":{source:"iana"},"application/vnd.ctc-posml":{source:"iana",extensions:["pml"]},"application/vnd.ctct.ws+xml":{source:"iana",compressible:!0},"application/vnd.cups-pdf":{source:"iana"},"application/vnd.cups-postscript":{source:"iana"},"application/vnd.cups-ppd":{source:"iana",extensions:["ppd"]},"application/vnd.cups-raster":{source:"iana"},"application/vnd.cups-raw":{source:"iana"},"application/vnd.curl":{source:"iana"},"application/vnd.curl.car":{source:"apache",extensions:["car"]},"application/vnd.curl.pcurl":{source:"apache",extensions:["pcurl"]},"application/vnd.cyan.dean.root+xml":{source:"iana",compressible:!0},"application/vnd.cybank":{source:"iana"},"application/vnd.cyclonedx+json":{source:"iana",compressible:!0},"application/vnd.cyclonedx+xml":{source:"iana",compressible:!0},"application/vnd.d2l.coursepackage1p0+zip":{source:"iana",compressible:!1},"application/vnd.d3m-dataset":{source:"iana"},"application/vnd.d3m-problem":{source:"iana"},"application/vnd.dart":{source:"iana",compressible:!0,extensions:["dart"]},"application/vnd.data-vision.rdz":{source:"iana",extensions:["rdz"]},"application/vnd.datapackage+json":{source:"iana",compressible:!0},"application/vnd.dataresource+json":{source:"iana",compressible:!0},"application/vnd.dbf":{source:"iana",extensions:["dbf"]},"application/vnd.debian.binary-package":{source:"iana"},"application/vnd.dece.data":{source:"iana",extensions:["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{source:"iana",compressible:!0,extensions:["uvt","uvvt"]},"application/vnd.dece.unspecified":{source:"iana",extensions:["uvx","uvvx"]},"application/vnd.dece.zip":{source:"iana",extensions:["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{source:"iana",extensions:["fe_launch"]},"application/vnd.desmume.movie":{source:"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{source:"iana"},"application/vnd.dm.delegation+xml":{source:"iana",compressible:!0},"application/vnd.dna":{source:"iana",extensions:["dna"]},"application/vnd.document+json":{source:"iana",compressible:!0},"application/vnd.dolby.mlp":{source:"apache",extensions:["mlp"]},"application/vnd.dolby.mobile.1":{source:"iana"},"application/vnd.dolby.mobile.2":{source:"iana"},"application/vnd.doremir.scorecloud-binary-document":{source:"iana"},"application/vnd.dpgraph":{source:"iana",extensions:["dpg"]},"application/vnd.dreamfactory":{source:"iana",extensions:["dfac"]},"application/vnd.drive+json":{source:"iana",compressible:!0},"application/vnd.ds-keypoint":{source:"apache",extensions:["kpxx"]},"application/vnd.dtg.local":{source:"iana"},"application/vnd.dtg.local.flash":{source:"iana"},"application/vnd.dtg.local.html":{source:"iana"},"application/vnd.dvb.ait":{source:"iana",extensions:["ait"]},"application/vnd.dvb.dvbisl+xml":{source:"iana",compressible:!0},"application/vnd.dvb.dvbj":{source:"iana"},"application/vnd.dvb.esgcontainer":{source:"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess2":{source:"iana"},"application/vnd.dvb.ipdcesgpdd":{source:"iana"},"application/vnd.dvb.ipdcroaming":{source:"iana"},"application/vnd.dvb.iptv.alfec-base":{source:"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{source:"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-container+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-generic+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-msglist+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-request+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-response+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-init+xml":{source:"iana",compressible:!0},"application/vnd.dvb.pfr":{source:"iana"},"application/vnd.dvb.service":{source:"iana",extensions:["svc"]},"application/vnd.dxr":{source:"iana"},"application/vnd.dynageo":{source:"iana",extensions:["geo"]},"application/vnd.dzr":{source:"iana"},"application/vnd.easykaraoke.cdgdownload":{source:"iana"},"application/vnd.ecdis-update":{source:"iana"},"application/vnd.ecip.rlp":{source:"iana"},"application/vnd.eclipse.ditto+json":{source:"iana",compressible:!0},"application/vnd.ecowin.chart":{source:"iana",extensions:["mag"]},"application/vnd.ecowin.filerequest":{source:"iana"},"application/vnd.ecowin.fileupdate":{source:"iana"},"application/vnd.ecowin.series":{source:"iana"},"application/vnd.ecowin.seriesrequest":{source:"iana"},"application/vnd.ecowin.seriesupdate":{source:"iana"},"application/vnd.efi.img":{source:"iana"},"application/vnd.efi.iso":{source:"iana"},"application/vnd.emclient.accessrequest+xml":{source:"iana",compressible:!0},"application/vnd.enliven":{source:"iana",extensions:["nml"]},"application/vnd.enphase.envoy":{source:"iana"},"application/vnd.eprints.data+xml":{source:"iana",compressible:!0},"application/vnd.epson.esf":{source:"iana",extensions:["esf"]},"application/vnd.epson.msf":{source:"iana",extensions:["msf"]},"application/vnd.epson.quickanime":{source:"iana",extensions:["qam"]},"application/vnd.epson.salt":{source:"iana",extensions:["slt"]},"application/vnd.epson.ssf":{source:"iana",extensions:["ssf"]},"application/vnd.ericsson.quickcall":{source:"iana"},"application/vnd.espass-espass+zip":{source:"iana",compressible:!1},"application/vnd.eszigno3+xml":{source:"iana",compressible:!0,extensions:["es3","et3"]},"application/vnd.etsi.aoc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.asic-e+zip":{source:"iana",compressible:!1},"application/vnd.etsi.asic-s+zip":{source:"iana",compressible:!1},"application/vnd.etsi.cug+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvcommand+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-bc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-cod+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-npvr+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvservice+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsync+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvueprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mcid+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mheg5":{source:"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{source:"iana",compressible:!0},"application/vnd.etsi.pstn+xml":{source:"iana",compressible:!0},"application/vnd.etsi.sci+xml":{source:"iana",compressible:!0},"application/vnd.etsi.simservs+xml":{source:"iana",compressible:!0},"application/vnd.etsi.timestamp-token":{source:"iana"},"application/vnd.etsi.tsl+xml":{source:"iana",compressible:!0},"application/vnd.etsi.tsl.der":{source:"iana"},"application/vnd.eu.kasparian.car+json":{source:"iana",compressible:!0},"application/vnd.eudora.data":{source:"iana"},"application/vnd.evolv.ecig.profile":{source:"iana"},"application/vnd.evolv.ecig.settings":{source:"iana"},"application/vnd.evolv.ecig.theme":{source:"iana"},"application/vnd.exstream-empower+zip":{source:"iana",compressible:!1},"application/vnd.exstream-package":{source:"iana"},"application/vnd.ezpix-album":{source:"iana",extensions:["ez2"]},"application/vnd.ezpix-package":{source:"iana",extensions:["ez3"]},"application/vnd.f-secure.mobile":{source:"iana"},"application/vnd.familysearch.gedcom+zip":{source:"iana",compressible:!1},"application/vnd.fastcopy-disk-image":{source:"iana"},"application/vnd.fdf":{source:"iana",extensions:["fdf"]},"application/vnd.fdsn.mseed":{source:"iana",extensions:["mseed"]},"application/vnd.fdsn.seed":{source:"iana",extensions:["seed","dataless"]},"application/vnd.ffsns":{source:"iana"},"application/vnd.ficlab.flb+zip":{source:"iana",compressible:!1},"application/vnd.filmit.zfc":{source:"iana"},"application/vnd.fints":{source:"iana"},"application/vnd.firemonkeys.cloudcell":{source:"iana"},"application/vnd.flographit":{source:"iana",extensions:["gph"]},"application/vnd.fluxtime.clip":{source:"iana",extensions:["ftc"]},"application/vnd.font-fontforge-sfd":{source:"iana"},"application/vnd.framemaker":{source:"iana",extensions:["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{source:"iana",extensions:["fnc"]},"application/vnd.frogans.ltf":{source:"iana",extensions:["ltf"]},"application/vnd.fsc.weblaunch":{source:"iana",extensions:["fsc"]},"application/vnd.fujifilm.fb.docuworks":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.container":{source:"iana"},"application/vnd.fujifilm.fb.jfi+xml":{source:"iana",compressible:!0},"application/vnd.fujitsu.oasys":{source:"iana",extensions:["oas"]},"application/vnd.fujitsu.oasys2":{source:"iana",extensions:["oa2"]},"application/vnd.fujitsu.oasys3":{source:"iana",extensions:["oa3"]},"application/vnd.fujitsu.oasysgp":{source:"iana",extensions:["fg5"]},"application/vnd.fujitsu.oasysprs":{source:"iana",extensions:["bh2"]},"application/vnd.fujixerox.art-ex":{source:"iana"},"application/vnd.fujixerox.art4":{source:"iana"},"application/vnd.fujixerox.ddd":{source:"iana",extensions:["ddd"]},"application/vnd.fujixerox.docuworks":{source:"iana",extensions:["xdw"]},"application/vnd.fujixerox.docuworks.binder":{source:"iana",extensions:["xbd"]},"application/vnd.fujixerox.docuworks.container":{source:"iana"},"application/vnd.fujixerox.hbpl":{source:"iana"},"application/vnd.fut-misnet":{source:"iana"},"application/vnd.futoin+cbor":{source:"iana"},"application/vnd.futoin+json":{source:"iana",compressible:!0},"application/vnd.fuzzysheet":{source:"iana",extensions:["fzs"]},"application/vnd.genomatix.tuxedo":{source:"iana",extensions:["txd"]},"application/vnd.gentics.grd+json":{source:"iana",compressible:!0},"application/vnd.geo+json":{source:"iana",compressible:!0},"application/vnd.geocube+xml":{source:"iana",compressible:!0},"application/vnd.geogebra.file":{source:"iana",extensions:["ggb"]},"application/vnd.geogebra.slides":{source:"iana"},"application/vnd.geogebra.tool":{source:"iana",extensions:["ggt"]},"application/vnd.geometry-explorer":{source:"iana",extensions:["gex","gre"]},"application/vnd.geonext":{source:"iana",extensions:["gxt"]},"application/vnd.geoplan":{source:"iana",extensions:["g2w"]},"application/vnd.geospace":{source:"iana",extensions:["g3w"]},"application/vnd.gerber":{source:"iana"},"application/vnd.globalplatform.card-content-mgt":{source:"iana"},"application/vnd.globalplatform.card-content-mgt-response":{source:"iana"},"application/vnd.gmx":{source:"iana",extensions:["gmx"]},"application/vnd.google-apps.document":{compressible:!1,extensions:["gdoc"]},"application/vnd.google-apps.presentation":{compressible:!1,extensions:["gslides"]},"application/vnd.google-apps.spreadsheet":{compressible:!1,extensions:["gsheet"]},"application/vnd.google-earth.kml+xml":{source:"iana",compressible:!0,extensions:["kml"]},"application/vnd.google-earth.kmz":{source:"iana",compressible:!1,extensions:["kmz"]},"application/vnd.gov.sk.e-form+xml":{source:"iana",compressible:!0},"application/vnd.gov.sk.e-form+zip":{source:"iana",compressible:!1},"application/vnd.gov.sk.xmldatacontainer+xml":{source:"iana",compressible:!0},"application/vnd.grafeq":{source:"iana",extensions:["gqf","gqs"]},"application/vnd.gridmp":{source:"iana"},"application/vnd.groove-account":{source:"iana",extensions:["gac"]},"application/vnd.groove-help":{source:"iana",extensions:["ghf"]},"application/vnd.groove-identity-message":{source:"iana",extensions:["gim"]},"application/vnd.groove-injector":{source:"iana",extensions:["grv"]},"application/vnd.groove-tool-message":{source:"iana",extensions:["gtm"]},"application/vnd.groove-tool-template":{source:"iana",extensions:["tpl"]},"application/vnd.groove-vcard":{source:"iana",extensions:["vcg"]},"application/vnd.hal+json":{source:"iana",compressible:!0},"application/vnd.hal+xml":{source:"iana",compressible:!0,extensions:["hal"]},"application/vnd.handheld-entertainment+xml":{source:"iana",compressible:!0,extensions:["zmm"]},"application/vnd.hbci":{source:"iana",extensions:["hbci"]},"application/vnd.hc+json":{source:"iana",compressible:!0},"application/vnd.hcl-bireports":{source:"iana"},"application/vnd.hdt":{source:"iana"},"application/vnd.heroku+json":{source:"iana",compressible:!0},"application/vnd.hhe.lesson-player":{source:"iana",extensions:["les"]},"application/vnd.hl7cda+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hl7v2+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hp-hpgl":{source:"iana",extensions:["hpgl"]},"application/vnd.hp-hpid":{source:"iana",extensions:["hpid"]},"application/vnd.hp-hps":{source:"iana",extensions:["hps"]},"application/vnd.hp-jlyt":{source:"iana",extensions:["jlt"]},"application/vnd.hp-pcl":{source:"iana",extensions:["pcl"]},"application/vnd.hp-pclxl":{source:"iana",extensions:["pclxl"]},"application/vnd.httphone":{source:"iana"},"application/vnd.hydrostatix.sof-data":{source:"iana",extensions:["sfd-hdstx"]},"application/vnd.hyper+json":{source:"iana",compressible:!0},"application/vnd.hyper-item+json":{source:"iana",compressible:!0},"application/vnd.hyperdrive+json":{source:"iana",compressible:!0},"application/vnd.hzn-3d-crossword":{source:"iana"},"application/vnd.ibm.afplinedata":{source:"iana"},"application/vnd.ibm.electronic-media":{source:"iana"},"application/vnd.ibm.minipay":{source:"iana",extensions:["mpy"]},"application/vnd.ibm.modcap":{source:"iana",extensions:["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{source:"iana",extensions:["irm"]},"application/vnd.ibm.secure-container":{source:"iana",extensions:["sc"]},"application/vnd.iccprofile":{source:"iana",extensions:["icc","icm"]},"application/vnd.ieee.1905":{source:"iana"},"application/vnd.igloader":{source:"iana",extensions:["igl"]},"application/vnd.imagemeter.folder+zip":{source:"iana",compressible:!1},"application/vnd.imagemeter.image+zip":{source:"iana",compressible:!1},"application/vnd.immervision-ivp":{source:"iana",extensions:["ivp"]},"application/vnd.immervision-ivu":{source:"iana",extensions:["ivu"]},"application/vnd.ims.imsccv1p1":{source:"iana"},"application/vnd.ims.imsccv1p2":{source:"iana"},"application/vnd.ims.imsccv1p3":{source:"iana"},"application/vnd.ims.lis.v2.result+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy.id+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings.simple+json":{source:"iana",compressible:!0},"application/vnd.informedcontrol.rms+xml":{source:"iana",compressible:!0},"application/vnd.informix-visionary":{source:"iana"},"application/vnd.infotech.project":{source:"iana"},"application/vnd.infotech.project+xml":{source:"iana",compressible:!0},"application/vnd.innopath.wamp.notification":{source:"iana"},"application/vnd.insors.igm":{source:"iana",extensions:["igm"]},"application/vnd.intercon.formnet":{source:"iana",extensions:["xpw","xpx"]},"application/vnd.intergeo":{source:"iana",extensions:["i2g"]},"application/vnd.intertrust.digibox":{source:"iana"},"application/vnd.intertrust.nncp":{source:"iana"},"application/vnd.intu.qbo":{source:"iana",extensions:["qbo"]},"application/vnd.intu.qfx":{source:"iana",extensions:["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.conceptitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.knowledgeitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsmessage+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.packageitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.planningitem+xml":{source:"iana",compressible:!0},"application/vnd.ipunplugged.rcprofile":{source:"iana",extensions:["rcprofile"]},"application/vnd.irepository.package+xml":{source:"iana",compressible:!0,extensions:["irp"]},"application/vnd.is-xpr":{source:"iana",extensions:["xpr"]},"application/vnd.isac.fcs":{source:"iana",extensions:["fcs"]},"application/vnd.iso11783-10+zip":{source:"iana",compressible:!1},"application/vnd.jam":{source:"iana",extensions:["jam"]},"application/vnd.japannet-directory-service":{source:"iana"},"application/vnd.japannet-jpnstore-wakeup":{source:"iana"},"application/vnd.japannet-payment-wakeup":{source:"iana"},"application/vnd.japannet-registration":{source:"iana"},"application/vnd.japannet-registration-wakeup":{source:"iana"},"application/vnd.japannet-setstore-wakeup":{source:"iana"},"application/vnd.japannet-verification":{source:"iana"},"application/vnd.japannet-verification-wakeup":{source:"iana"},"application/vnd.jcp.javame.midlet-rms":{source:"iana",extensions:["rms"]},"application/vnd.jisp":{source:"iana",extensions:["jisp"]},"application/vnd.joost.joda-archive":{source:"iana",extensions:["joda"]},"application/vnd.jsk.isdn-ngn":{source:"iana"},"application/vnd.kahootz":{source:"iana",extensions:["ktz","ktr"]},"application/vnd.kde.karbon":{source:"iana",extensions:["karbon"]},"application/vnd.kde.kchart":{source:"iana",extensions:["chrt"]},"application/vnd.kde.kformula":{source:"iana",extensions:["kfo"]},"application/vnd.kde.kivio":{source:"iana",extensions:["flw"]},"application/vnd.kde.kontour":{source:"iana",extensions:["kon"]},"application/vnd.kde.kpresenter":{source:"iana",extensions:["kpr","kpt"]},"application/vnd.kde.kspread":{source:"iana",extensions:["ksp"]},"application/vnd.kde.kword":{source:"iana",extensions:["kwd","kwt"]},"application/vnd.kenameaapp":{source:"iana",extensions:["htke"]},"application/vnd.kidspiration":{source:"iana",extensions:["kia"]},"application/vnd.kinar":{source:"iana",extensions:["kne","knp"]},"application/vnd.koan":{source:"iana",extensions:["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{source:"iana",extensions:["sse"]},"application/vnd.las":{source:"iana"},"application/vnd.las.las+json":{source:"iana",compressible:!0},"application/vnd.las.las+xml":{source:"iana",compressible:!0,extensions:["lasxml"]},"application/vnd.laszip":{source:"iana"},"application/vnd.leap+json":{source:"iana",compressible:!0},"application/vnd.liberty-request+xml":{source:"iana",compressible:!0},"application/vnd.llamagraphics.life-balance.desktop":{source:"iana",extensions:["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{source:"iana",compressible:!0,extensions:["lbe"]},"application/vnd.logipipe.circuit+zip":{source:"iana",compressible:!1},"application/vnd.loom":{source:"iana"},"application/vnd.lotus-1-2-3":{source:"iana",extensions:["123"]},"application/vnd.lotus-approach":{source:"iana",extensions:["apr"]},"application/vnd.lotus-freelance":{source:"iana",extensions:["pre"]},"application/vnd.lotus-notes":{source:"iana",extensions:["nsf"]},"application/vnd.lotus-organizer":{source:"iana",extensions:["org"]},"application/vnd.lotus-screencam":{source:"iana",extensions:["scm"]},"application/vnd.lotus-wordpro":{source:"iana",extensions:["lwp"]},"application/vnd.macports.portpkg":{source:"iana",extensions:["portpkg"]},"application/vnd.mapbox-vector-tile":{source:"iana",extensions:["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.conftoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.license+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.mdcf":{source:"iana"},"application/vnd.mason+json":{source:"iana",compressible:!0},"application/vnd.maxar.archive.3tz+zip":{source:"iana",compressible:!1},"application/vnd.maxmind.maxmind-db":{source:"iana"},"application/vnd.mcd":{source:"iana",extensions:["mcd"]},"application/vnd.medcalcdata":{source:"iana",extensions:["mc1"]},"application/vnd.mediastation.cdkey":{source:"iana",extensions:["cdkey"]},"application/vnd.meridian-slingshot":{source:"iana"},"application/vnd.mfer":{source:"iana",extensions:["mwf"]},"application/vnd.mfmp":{source:"iana",extensions:["mfm"]},"application/vnd.micro+json":{source:"iana",compressible:!0},"application/vnd.micrografx.flo":{source:"iana",extensions:["flo"]},"application/vnd.micrografx.igx":{source:"iana",extensions:["igx"]},"application/vnd.microsoft.portable-executable":{source:"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{source:"iana"},"application/vnd.miele+json":{source:"iana",compressible:!0},"application/vnd.mif":{source:"iana",extensions:["mif"]},"application/vnd.minisoft-hp3000-save":{source:"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{source:"iana"},"application/vnd.mobius.daf":{source:"iana",extensions:["daf"]},"application/vnd.mobius.dis":{source:"iana",extensions:["dis"]},"application/vnd.mobius.mbk":{source:"iana",extensions:["mbk"]},"application/vnd.mobius.mqy":{source:"iana",extensions:["mqy"]},"application/vnd.mobius.msl":{source:"iana",extensions:["msl"]},"application/vnd.mobius.plc":{source:"iana",extensions:["plc"]},"application/vnd.mobius.txf":{source:"iana",extensions:["txf"]},"application/vnd.mophun.application":{source:"iana",extensions:["mpn"]},"application/vnd.mophun.certificate":{source:"iana",extensions:["mpc"]},"application/vnd.motorola.flexsuite":{source:"iana"},"application/vnd.motorola.flexsuite.adsi":{source:"iana"},"application/vnd.motorola.flexsuite.fis":{source:"iana"},"application/vnd.motorola.flexsuite.gotap":{source:"iana"},"application/vnd.motorola.flexsuite.kmr":{source:"iana"},"application/vnd.motorola.flexsuite.ttc":{source:"iana"},"application/vnd.motorola.flexsuite.wem":{source:"iana"},"application/vnd.motorola.iprm":{source:"iana"},"application/vnd.mozilla.xul+xml":{source:"iana",compressible:!0,extensions:["xul"]},"application/vnd.ms-3mfdocument":{source:"iana"},"application/vnd.ms-artgalry":{source:"iana",extensions:["cil"]},"application/vnd.ms-asf":{source:"iana"},"application/vnd.ms-cab-compressed":{source:"iana",extensions:["cab"]},"application/vnd.ms-color.iccprofile":{source:"apache"},"application/vnd.ms-excel":{source:"iana",compressible:!1,extensions:["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{source:"iana",extensions:["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{source:"iana",extensions:["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{source:"iana",extensions:["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{source:"iana",extensions:["xltm"]},"application/vnd.ms-fontobject":{source:"iana",compressible:!0,extensions:["eot"]},"application/vnd.ms-htmlhelp":{source:"iana",extensions:["chm"]},"application/vnd.ms-ims":{source:"iana",extensions:["ims"]},"application/vnd.ms-lrm":{source:"iana",extensions:["lrm"]},"application/vnd.ms-office.activex+xml":{source:"iana",compressible:!0},"application/vnd.ms-officetheme":{source:"iana",extensions:["thmx"]},"application/vnd.ms-opentype":{source:"apache",compressible:!0},"application/vnd.ms-outlook":{compressible:!1,extensions:["msg"]},"application/vnd.ms-package.obfuscated-opentype":{source:"apache"},"application/vnd.ms-pki.seccat":{source:"apache",extensions:["cat"]},"application/vnd.ms-pki.stl":{source:"apache",extensions:["stl"]},"application/vnd.ms-playready.initiator+xml":{source:"iana",compressible:!0},"application/vnd.ms-powerpoint":{source:"iana",compressible:!1,extensions:["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{source:"iana",extensions:["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{source:"iana",extensions:["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{source:"iana",extensions:["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{source:"iana",extensions:["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{source:"iana",extensions:["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{source:"iana",compressible:!0},"application/vnd.ms-printing.printticket+xml":{source:"apache",compressible:!0},"application/vnd.ms-printschematicket+xml":{source:"iana",compressible:!0},"application/vnd.ms-project":{source:"iana",extensions:["mpp","mpt"]},"application/vnd.ms-tnef":{source:"iana"},"application/vnd.ms-windows.devicepairing":{source:"iana"},"application/vnd.ms-windows.nwprinting.oob":{source:"iana"},"application/vnd.ms-windows.printerpairing":{source:"iana"},"application/vnd.ms-windows.wsd.oob":{source:"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.lic-resp":{source:"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.meter-resp":{source:"iana"},"application/vnd.ms-word.document.macroenabled.12":{source:"iana",extensions:["docm"]},"application/vnd.ms-word.template.macroenabled.12":{source:"iana",extensions:["dotm"]},"application/vnd.ms-works":{source:"iana",extensions:["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{source:"iana",extensions:["wpl"]},"application/vnd.ms-xpsdocument":{source:"iana",compressible:!1,extensions:["xps"]},"application/vnd.msa-disk-image":{source:"iana"},"application/vnd.mseq":{source:"iana",extensions:["mseq"]},"application/vnd.msign":{source:"iana"},"application/vnd.multiad.creator":{source:"iana"},"application/vnd.multiad.creator.cif":{source:"iana"},"application/vnd.music-niff":{source:"iana"},"application/vnd.musician":{source:"iana",extensions:["mus"]},"application/vnd.muvee.style":{source:"iana",extensions:["msty"]},"application/vnd.mynfc":{source:"iana",extensions:["taglet"]},"application/vnd.nacamar.ybrid+json":{source:"iana",compressible:!0},"application/vnd.ncd.control":{source:"iana"},"application/vnd.ncd.reference":{source:"iana"},"application/vnd.nearst.inv+json":{source:"iana",compressible:!0},"application/vnd.nebumind.line":{source:"iana"},"application/vnd.nervana":{source:"iana"},"application/vnd.netfpx":{source:"iana"},"application/vnd.neurolanguage.nlu":{source:"iana",extensions:["nlu"]},"application/vnd.nimn":{source:"iana"},"application/vnd.nintendo.nitro.rom":{source:"iana"},"application/vnd.nintendo.snes.rom":{source:"iana"},"application/vnd.nitf":{source:"iana",extensions:["ntf","nitf"]},"application/vnd.noblenet-directory":{source:"iana",extensions:["nnd"]},"application/vnd.noblenet-sealer":{source:"iana",extensions:["nns"]},"application/vnd.noblenet-web":{source:"iana",extensions:["nnw"]},"application/vnd.nokia.catalogs":{source:"iana"},"application/vnd.nokia.conml+wbxml":{source:"iana"},"application/vnd.nokia.conml+xml":{source:"iana",compressible:!0},"application/vnd.nokia.iptv.config+xml":{source:"iana",compressible:!0},"application/vnd.nokia.isds-radio-presets":{source:"iana"},"application/vnd.nokia.landmark+wbxml":{source:"iana"},"application/vnd.nokia.landmark+xml":{source:"iana",compressible:!0},"application/vnd.nokia.landmarkcollection+xml":{source:"iana",compressible:!0},"application/vnd.nokia.n-gage.ac+xml":{source:"iana",compressible:!0,extensions:["ac"]},"application/vnd.nokia.n-gage.data":{source:"iana",extensions:["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{source:"iana",extensions:["n-gage"]},"application/vnd.nokia.ncd":{source:"iana"},"application/vnd.nokia.pcd+wbxml":{source:"iana"},"application/vnd.nokia.pcd+xml":{source:"iana",compressible:!0},"application/vnd.nokia.radio-preset":{source:"iana",extensions:["rpst"]},"application/vnd.nokia.radio-presets":{source:"iana",extensions:["rpss"]},"application/vnd.novadigm.edm":{source:"iana",extensions:["edm"]},"application/vnd.novadigm.edx":{source:"iana",extensions:["edx"]},"application/vnd.novadigm.ext":{source:"iana",extensions:["ext"]},"application/vnd.ntt-local.content-share":{source:"iana"},"application/vnd.ntt-local.file-transfer":{source:"iana"},"application/vnd.ntt-local.ogw_remote-access":{source:"iana"},"application/vnd.ntt-local.sip-ta_remote":{source:"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{source:"iana"},"application/vnd.oasis.opendocument.chart":{source:"iana",extensions:["odc"]},"application/vnd.oasis.opendocument.chart-template":{source:"iana",extensions:["otc"]},"application/vnd.oasis.opendocument.database":{source:"iana",extensions:["odb"]},"application/vnd.oasis.opendocument.formula":{source:"iana",extensions:["odf"]},"application/vnd.oasis.opendocument.formula-template":{source:"iana",extensions:["odft"]},"application/vnd.oasis.opendocument.graphics":{source:"iana",compressible:!1,extensions:["odg"]},"application/vnd.oasis.opendocument.graphics-template":{source:"iana",extensions:["otg"]},"application/vnd.oasis.opendocument.image":{source:"iana",extensions:["odi"]},"application/vnd.oasis.opendocument.image-template":{source:"iana",extensions:["oti"]},"application/vnd.oasis.opendocument.presentation":{source:"iana",compressible:!1,extensions:["odp"]},"application/vnd.oasis.opendocument.presentation-template":{source:"iana",extensions:["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{source:"iana",compressible:!1,extensions:["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{source:"iana",extensions:["ots"]},"application/vnd.oasis.opendocument.text":{source:"iana",compressible:!1,extensions:["odt"]},"application/vnd.oasis.opendocument.text-master":{source:"iana",extensions:["odm"]},"application/vnd.oasis.opendocument.text-template":{source:"iana",extensions:["ott"]},"application/vnd.oasis.opendocument.text-web":{source:"iana",extensions:["oth"]},"application/vnd.obn":{source:"iana"},"application/vnd.ocf+cbor":{source:"iana"},"application/vnd.oci.image.manifest.v1+json":{source:"iana",compressible:!0},"application/vnd.oftn.l10n+json":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessdownload+xml":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessstreaming+xml":{source:"iana",compressible:!0},"application/vnd.oipf.cspg-hexbinary":{source:"iana"},"application/vnd.oipf.dae.svg+xml":{source:"iana",compressible:!0},"application/vnd.oipf.dae.xhtml+xml":{source:"iana",compressible:!0},"application/vnd.oipf.mippvcontrolmessage+xml":{source:"iana",compressible:!0},"application/vnd.oipf.pae.gem":{source:"iana"},"application/vnd.oipf.spdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.oipf.spdlist+xml":{source:"iana",compressible:!0},"application/vnd.oipf.ueprofile+xml":{source:"iana",compressible:!0},"application/vnd.oipf.userprofile+xml":{source:"iana",compressible:!0},"application/vnd.olpc-sugar":{source:"iana",extensions:["xo"]},"application/vnd.oma-scws-config":{source:"iana"},"application/vnd.oma-scws-http-request":{source:"iana"},"application/vnd.oma-scws-http-response":{source:"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.drm-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.imd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.ltkm":{source:"iana"},"application/vnd.oma.bcast.notification+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.provisioningtrigger":{source:"iana"},"application/vnd.oma.bcast.sgboot":{source:"iana"},"application/vnd.oma.bcast.sgdd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sgdu":{source:"iana"},"application/vnd.oma.bcast.simple-symbol-container":{source:"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sprov+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.stkm":{source:"iana"},"application/vnd.oma.cab-address-book+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-feature-handler+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-pcc+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-subs-invite+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-user-prefs+xml":{source:"iana",compressible:!0},"application/vnd.oma.dcd":{source:"iana"},"application/vnd.oma.dcdc":{source:"iana"},"application/vnd.oma.dd2+xml":{source:"iana",compressible:!0,extensions:["dd2"]},"application/vnd.oma.drm.risd+xml":{source:"iana",compressible:!0},"application/vnd.oma.group-usage-list+xml":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+cbor":{source:"iana"},"application/vnd.oma.lwm2m+json":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+tlv":{source:"iana"},"application/vnd.oma.pal+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.detailed-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.final-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.groups+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.invocation-descriptor+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.optimized-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.push":{source:"iana"},"application/vnd.oma.scidm.messages+xml":{source:"iana",compressible:!0},"application/vnd.oma.xcap-directory+xml":{source:"iana",compressible:!0},"application/vnd.omads-email+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-file+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-folder+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omaloc-supl-init":{source:"iana"},"application/vnd.onepager":{source:"iana"},"application/vnd.onepagertamp":{source:"iana"},"application/vnd.onepagertamx":{source:"iana"},"application/vnd.onepagertat":{source:"iana"},"application/vnd.onepagertatp":{source:"iana"},"application/vnd.onepagertatx":{source:"iana"},"application/vnd.openblox.game+xml":{source:"iana",compressible:!0,extensions:["obgx"]},"application/vnd.openblox.game-binary":{source:"iana"},"application/vnd.openeye.oeb":{source:"iana"},"application/vnd.openofficeorg.extension":{source:"apache",extensions:["oxt"]},"application/vnd.openstreetmap.data+xml":{source:"iana",compressible:!0,extensions:["osm"]},"application/vnd.opentimestamps.ots":{source:"iana"},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawing+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:"iana",compressible:!1,extensions:["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slide":{source:"iana",extensions:["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{source:"iana",extensions:["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.template":{source:"iana",extensions:["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:"iana",compressible:!1,extensions:["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{source:"iana",extensions:["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.theme+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.vmldrawing":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:"iana",compressible:!1,extensions:["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{source:"iana",extensions:["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.core-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.relationships+xml":{source:"iana",compressible:!0},"application/vnd.oracle.resource+json":{source:"iana",compressible:!0},"application/vnd.orange.indata":{source:"iana"},"application/vnd.osa.netdeploy":{source:"iana"},"application/vnd.osgeo.mapguide.package":{source:"iana",extensions:["mgp"]},"application/vnd.osgi.bundle":{source:"iana"},"application/vnd.osgi.dp":{source:"iana",extensions:["dp"]},"application/vnd.osgi.subsystem":{source:"iana",extensions:["esa"]},"application/vnd.otps.ct-kip+xml":{source:"iana",compressible:!0},"application/vnd.oxli.countgraph":{source:"iana"},"application/vnd.pagerduty+json":{source:"iana",compressible:!0},"application/vnd.palm":{source:"iana",extensions:["pdb","pqa","oprc"]},"application/vnd.panoply":{source:"iana"},"application/vnd.paos.xml":{source:"iana"},"application/vnd.patentdive":{source:"iana"},"application/vnd.patientecommsdoc":{source:"iana"},"application/vnd.pawaafile":{source:"iana",extensions:["paw"]},"application/vnd.pcos":{source:"iana"},"application/vnd.pg.format":{source:"iana",extensions:["str"]},"application/vnd.pg.osasli":{source:"iana",extensions:["ei6"]},"application/vnd.piaccess.application-licence":{source:"iana"},"application/vnd.picsel":{source:"iana",extensions:["efif"]},"application/vnd.pmi.widget":{source:"iana",extensions:["wg"]},"application/vnd.poc.group-advertisement+xml":{source:"iana",compressible:!0},"application/vnd.pocketlearn":{source:"iana",extensions:["plf"]},"application/vnd.powerbuilder6":{source:"iana",extensions:["pbd"]},"application/vnd.powerbuilder6-s":{source:"iana"},"application/vnd.powerbuilder7":{source:"iana"},"application/vnd.powerbuilder7-s":{source:"iana"},"application/vnd.powerbuilder75":{source:"iana"},"application/vnd.powerbuilder75-s":{source:"iana"},"application/vnd.preminet":{source:"iana"},"application/vnd.previewsystems.box":{source:"iana",extensions:["box"]},"application/vnd.proteus.magazine":{source:"iana",extensions:["mgz"]},"application/vnd.psfs":{source:"iana"},"application/vnd.publishare-delta-tree":{source:"iana",extensions:["qps"]},"application/vnd.pvi.ptid1":{source:"iana",extensions:["ptid"]},"application/vnd.pwg-multiplexed":{source:"iana"},"application/vnd.pwg-xhtml-print+xml":{source:"iana",compressible:!0},"application/vnd.qualcomm.brew-app-res":{source:"iana"},"application/vnd.quarantainenet":{source:"iana"},"application/vnd.quark.quarkxpress":{source:"iana",extensions:["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{source:"iana"},"application/vnd.radisys.moml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conn+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-stream+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-base+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-detect+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-group+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-speech+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-transform+xml":{source:"iana",compressible:!0},"application/vnd.rainstor.data":{source:"iana"},"application/vnd.rapid":{source:"iana"},"application/vnd.rar":{source:"iana",extensions:["rar"]},"application/vnd.realvnc.bed":{source:"iana",extensions:["bed"]},"application/vnd.recordare.musicxml":{source:"iana",extensions:["mxl"]},"application/vnd.recordare.musicxml+xml":{source:"iana",compressible:!0,extensions:["musicxml"]},"application/vnd.renlearn.rlprint":{source:"iana"},"application/vnd.resilient.logic":{source:"iana"},"application/vnd.restful+json":{source:"iana",compressible:!0},"application/vnd.rig.cryptonote":{source:"iana",extensions:["cryptonote"]},"application/vnd.rim.cod":{source:"apache",extensions:["cod"]},"application/vnd.rn-realmedia":{source:"apache",extensions:["rm"]},"application/vnd.rn-realmedia-vbr":{source:"apache",extensions:["rmvb"]},"application/vnd.route66.link66+xml":{source:"iana",compressible:!0,extensions:["link66"]},"application/vnd.rs-274x":{source:"iana"},"application/vnd.ruckus.download":{source:"iana"},"application/vnd.s3sms":{source:"iana"},"application/vnd.sailingtracker.track":{source:"iana",extensions:["st"]},"application/vnd.sar":{source:"iana"},"application/vnd.sbm.cid":{source:"iana"},"application/vnd.sbm.mid2":{source:"iana"},"application/vnd.scribus":{source:"iana"},"application/vnd.sealed.3df":{source:"iana"},"application/vnd.sealed.csf":{source:"iana"},"application/vnd.sealed.doc":{source:"iana"},"application/vnd.sealed.eml":{source:"iana"},"application/vnd.sealed.mht":{source:"iana"},"application/vnd.sealed.net":{source:"iana"},"application/vnd.sealed.ppt":{source:"iana"},"application/vnd.sealed.tiff":{source:"iana"},"application/vnd.sealed.xls":{source:"iana"},"application/vnd.sealedmedia.softseal.html":{source:"iana"},"application/vnd.sealedmedia.softseal.pdf":{source:"iana"},"application/vnd.seemail":{source:"iana",extensions:["see"]},"application/vnd.seis+json":{source:"iana",compressible:!0},"application/vnd.sema":{source:"iana",extensions:["sema"]},"application/vnd.semd":{source:"iana",extensions:["semd"]},"application/vnd.semf":{source:"iana",extensions:["semf"]},"application/vnd.shade-save-file":{source:"iana"},"application/vnd.shana.informed.formdata":{source:"iana",extensions:["ifm"]},"application/vnd.shana.informed.formtemplate":{source:"iana",extensions:["itp"]},"application/vnd.shana.informed.interchange":{source:"iana",extensions:["iif"]},"application/vnd.shana.informed.package":{source:"iana",extensions:["ipk"]},"application/vnd.shootproof+json":{source:"iana",compressible:!0},"application/vnd.shopkick+json":{source:"iana",compressible:!0},"application/vnd.shp":{source:"iana"},"application/vnd.shx":{source:"iana"},"application/vnd.sigrok.session":{source:"iana"},"application/vnd.simtech-mindmapper":{source:"iana",extensions:["twd","twds"]},"application/vnd.siren+json":{source:"iana",compressible:!0},"application/vnd.smaf":{source:"iana",extensions:["mmf"]},"application/vnd.smart.notebook":{source:"iana"},"application/vnd.smart.teacher":{source:"iana",extensions:["teacher"]},"application/vnd.snesdev-page-table":{source:"iana"},"application/vnd.software602.filler.form+xml":{source:"iana",compressible:!0,extensions:["fo"]},"application/vnd.software602.filler.form-xml-zip":{source:"iana"},"application/vnd.solent.sdkm+xml":{source:"iana",compressible:!0,extensions:["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{source:"iana",extensions:["dxp"]},"application/vnd.spotfire.sfs":{source:"iana",extensions:["sfs"]},"application/vnd.sqlite3":{source:"iana"},"application/vnd.sss-cod":{source:"iana"},"application/vnd.sss-dtf":{source:"iana"},"application/vnd.sss-ntf":{source:"iana"},"application/vnd.stardivision.calc":{source:"apache",extensions:["sdc"]},"application/vnd.stardivision.draw":{source:"apache",extensions:["sda"]},"application/vnd.stardivision.impress":{source:"apache",extensions:["sdd"]},"application/vnd.stardivision.math":{source:"apache",extensions:["smf"]},"application/vnd.stardivision.writer":{source:"apache",extensions:["sdw","vor"]},"application/vnd.stardivision.writer-global":{source:"apache",extensions:["sgl"]},"application/vnd.stepmania.package":{source:"iana",extensions:["smzip"]},"application/vnd.stepmania.stepchart":{source:"iana",extensions:["sm"]},"application/vnd.street-stream":{source:"iana"},"application/vnd.sun.wadl+xml":{source:"iana",compressible:!0,extensions:["wadl"]},"application/vnd.sun.xml.calc":{source:"apache",extensions:["sxc"]},"application/vnd.sun.xml.calc.template":{source:"apache",extensions:["stc"]},"application/vnd.sun.xml.draw":{source:"apache",extensions:["sxd"]},"application/vnd.sun.xml.draw.template":{source:"apache",extensions:["std"]},"application/vnd.sun.xml.impress":{source:"apache",extensions:["sxi"]},"application/vnd.sun.xml.impress.template":{source:"apache",extensions:["sti"]},"application/vnd.sun.xml.math":{source:"apache",extensions:["sxm"]},"application/vnd.sun.xml.writer":{source:"apache",extensions:["sxw"]},"application/vnd.sun.xml.writer.global":{source:"apache",extensions:["sxg"]},"application/vnd.sun.xml.writer.template":{source:"apache",extensions:["stw"]},"application/vnd.sus-calendar":{source:"iana",extensions:["sus","susp"]},"application/vnd.svd":{source:"iana",extensions:["svd"]},"application/vnd.swiftview-ics":{source:"iana"},"application/vnd.sycle+xml":{source:"iana",compressible:!0},"application/vnd.syft+json":{source:"iana",compressible:!0},"application/vnd.symbian.install":{source:"apache",extensions:["sis","sisx"]},"application/vnd.syncml+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xsm"]},"application/vnd.syncml.dm+wbxml":{source:"iana",charset:"UTF-8",extensions:["bdm"]},"application/vnd.syncml.dm+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xdm"]},"application/vnd.syncml.dm.notification":{source:"iana"},"application/vnd.syncml.dmddf+wbxml":{source:"iana"},"application/vnd.syncml.dmddf+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{source:"iana"},"application/vnd.syncml.dmtnds+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.syncml.ds.notification":{source:"iana"},"application/vnd.tableschema+json":{source:"iana",compressible:!0},"application/vnd.tao.intent-module-archive":{source:"iana",extensions:["tao"]},"application/vnd.tcpdump.pcap":{source:"iana",extensions:["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{source:"iana",compressible:!0},"application/vnd.tmd.mediaflex.api+xml":{source:"iana",compressible:!0},"application/vnd.tml":{source:"iana"},"application/vnd.tmobile-livetv":{source:"iana",extensions:["tmo"]},"application/vnd.tri.onesource":{source:"iana"},"application/vnd.trid.tpt":{source:"iana",extensions:["tpt"]},"application/vnd.triscape.mxs":{source:"iana",extensions:["mxs"]},"application/vnd.trueapp":{source:"iana",extensions:["tra"]},"application/vnd.truedoc":{source:"iana"},"application/vnd.ubisoft.webplayer":{source:"iana"},"application/vnd.ufdl":{source:"iana",extensions:["ufd","ufdl"]},"application/vnd.uiq.theme":{source:"iana",extensions:["utz"]},"application/vnd.umajin":{source:"iana",extensions:["umj"]},"application/vnd.unity":{source:"iana",extensions:["unityweb"]},"application/vnd.uoml+xml":{source:"iana",compressible:!0,extensions:["uoml"]},"application/vnd.uplanet.alert":{source:"iana"},"application/vnd.uplanet.alert-wbxml":{source:"iana"},"application/vnd.uplanet.bearer-choice":{source:"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{source:"iana"},"application/vnd.uplanet.cacheop":{source:"iana"},"application/vnd.uplanet.cacheop-wbxml":{source:"iana"},"application/vnd.uplanet.channel":{source:"iana"},"application/vnd.uplanet.channel-wbxml":{source:"iana"},"application/vnd.uplanet.list":{source:"iana"},"application/vnd.uplanet.list-wbxml":{source:"iana"},"application/vnd.uplanet.listcmd":{source:"iana"},"application/vnd.uplanet.listcmd-wbxml":{source:"iana"},"application/vnd.uplanet.signal":{source:"iana"},"application/vnd.uri-map":{source:"iana"},"application/vnd.valve.source.material":{source:"iana"},"application/vnd.vcx":{source:"iana",extensions:["vcx"]},"application/vnd.vd-study":{source:"iana"},"application/vnd.vectorworks":{source:"iana"},"application/vnd.vel+json":{source:"iana",compressible:!0},"application/vnd.verimatrix.vcas":{source:"iana"},"application/vnd.veritone.aion+json":{source:"iana",compressible:!0},"application/vnd.veryant.thin":{source:"iana"},"application/vnd.ves.encrypted":{source:"iana"},"application/vnd.vidsoft.vidconference":{source:"iana"},"application/vnd.visio":{source:"iana",extensions:["vsd","vst","vss","vsw"]},"application/vnd.visionary":{source:"iana",extensions:["vis"]},"application/vnd.vividence.scriptfile":{source:"iana"},"application/vnd.vsf":{source:"iana",extensions:["vsf"]},"application/vnd.wap.sic":{source:"iana"},"application/vnd.wap.slc":{source:"iana"},"application/vnd.wap.wbxml":{source:"iana",charset:"UTF-8",extensions:["wbxml"]},"application/vnd.wap.wmlc":{source:"iana",extensions:["wmlc"]},"application/vnd.wap.wmlscriptc":{source:"iana",extensions:["wmlsc"]},"application/vnd.webturbo":{source:"iana",extensions:["wtb"]},"application/vnd.wfa.dpp":{source:"iana"},"application/vnd.wfa.p2p":{source:"iana"},"application/vnd.wfa.wsc":{source:"iana"},"application/vnd.windows.devicepairing":{source:"iana"},"application/vnd.wmc":{source:"iana"},"application/vnd.wmf.bootstrap":{source:"iana"},"application/vnd.wolfram.mathematica":{source:"iana"},"application/vnd.wolfram.mathematica.package":{source:"iana"},"application/vnd.wolfram.player":{source:"iana",extensions:["nbp"]},"application/vnd.wordperfect":{source:"iana",extensions:["wpd"]},"application/vnd.wqd":{source:"iana",extensions:["wqd"]},"application/vnd.wrq-hp3000-labelled":{source:"iana"},"application/vnd.wt.stf":{source:"iana",extensions:["stf"]},"application/vnd.wv.csp+wbxml":{source:"iana"},"application/vnd.wv.csp+xml":{source:"iana",compressible:!0},"application/vnd.wv.ssp+xml":{source:"iana",compressible:!0},"application/vnd.xacml+json":{source:"iana",compressible:!0},"application/vnd.xara":{source:"iana",extensions:["xar"]},"application/vnd.xfdl":{source:"iana",extensions:["xfdl"]},"application/vnd.xfdl.webform":{source:"iana"},"application/vnd.xmi+xml":{source:"iana",compressible:!0},"application/vnd.xmpie.cpkg":{source:"iana"},"application/vnd.xmpie.dpkg":{source:"iana"},"application/vnd.xmpie.plan":{source:"iana"},"application/vnd.xmpie.ppkg":{source:"iana"},"application/vnd.xmpie.xlim":{source:"iana"},"application/vnd.yamaha.hv-dic":{source:"iana",extensions:["hvd"]},"application/vnd.yamaha.hv-script":{source:"iana",extensions:["hvs"]},"application/vnd.yamaha.hv-voice":{source:"iana",extensions:["hvp"]},"application/vnd.yamaha.openscoreformat":{source:"iana",extensions:["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{source:"iana",compressible:!0,extensions:["osfpvg"]},"application/vnd.yamaha.remote-setup":{source:"iana"},"application/vnd.yamaha.smaf-audio":{source:"iana",extensions:["saf"]},"application/vnd.yamaha.smaf-phrase":{source:"iana",extensions:["spf"]},"application/vnd.yamaha.through-ngn":{source:"iana"},"application/vnd.yamaha.tunnel-udpencap":{source:"iana"},"application/vnd.yaoweme":{source:"iana"},"application/vnd.yellowriver-custom-menu":{source:"iana",extensions:["cmp"]},"application/vnd.youtube.yt":{source:"iana"},"application/vnd.zul":{source:"iana",extensions:["zir","zirz"]},"application/vnd.zzazz.deck+xml":{source:"iana",compressible:!0,extensions:["zaz"]},"application/voicexml+xml":{source:"iana",compressible:!0,extensions:["vxml"]},"application/voucher-cms+json":{source:"iana",compressible:!0},"application/vq-rtcpxr":{source:"iana"},"application/wasm":{source:"iana",compressible:!0,extensions:["wasm"]},"application/watcherinfo+xml":{source:"iana",compressible:!0,extensions:["wif"]},"application/webpush-options+json":{source:"iana",compressible:!0},"application/whoispp-query":{source:"iana"},"application/whoispp-response":{source:"iana"},"application/widget":{source:"iana",extensions:["wgt"]},"application/winhlp":{source:"apache",extensions:["hlp"]},"application/wita":{source:"iana"},"application/wordperfect5.1":{source:"iana"},"application/wsdl+xml":{source:"iana",compressible:!0,extensions:["wsdl"]},"application/wspolicy+xml":{source:"iana",compressible:!0,extensions:["wspolicy"]},"application/x-7z-compressed":{source:"apache",compressible:!1,extensions:["7z"]},"application/x-abiword":{source:"apache",extensions:["abw"]},"application/x-ace-compressed":{source:"apache",extensions:["ace"]},"application/x-amf":{source:"apache"},"application/x-apple-diskimage":{source:"apache",extensions:["dmg"]},"application/x-arj":{compressible:!1,extensions:["arj"]},"application/x-authorware-bin":{source:"apache",extensions:["aab","x32","u32","vox"]},"application/x-authorware-map":{source:"apache",extensions:["aam"]},"application/x-authorware-seg":{source:"apache",extensions:["aas"]},"application/x-bcpio":{source:"apache",extensions:["bcpio"]},"application/x-bdoc":{compressible:!1,extensions:["bdoc"]},"application/x-bittorrent":{source:"apache",extensions:["torrent"]},"application/x-blorb":{source:"apache",extensions:["blb","blorb"]},"application/x-bzip":{source:"apache",compressible:!1,extensions:["bz"]},"application/x-bzip2":{source:"apache",compressible:!1,extensions:["bz2","boz"]},"application/x-cbr":{source:"apache",extensions:["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{source:"apache",extensions:["vcd"]},"application/x-cfs-compressed":{source:"apache",extensions:["cfs"]},"application/x-chat":{source:"apache",extensions:["chat"]},"application/x-chess-pgn":{source:"apache",extensions:["pgn"]},"application/x-chrome-extension":{extensions:["crx"]},"application/x-cocoa":{source:"nginx",extensions:["cco"]},"application/x-compress":{source:"apache"},"application/x-conference":{source:"apache",extensions:["nsc"]},"application/x-cpio":{source:"apache",extensions:["cpio"]},"application/x-csh":{source:"apache",extensions:["csh"]},"application/x-deb":{compressible:!1},"application/x-debian-package":{source:"apache",extensions:["deb","udeb"]},"application/x-dgc-compressed":{source:"apache",extensions:["dgc"]},"application/x-director":{source:"apache",extensions:["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{source:"apache",extensions:["wad"]},"application/x-dtbncx+xml":{source:"apache",compressible:!0,extensions:["ncx"]},"application/x-dtbook+xml":{source:"apache",compressible:!0,extensions:["dtb"]},"application/x-dtbresource+xml":{source:"apache",compressible:!0,extensions:["res"]},"application/x-dvi":{source:"apache",compressible:!1,extensions:["dvi"]},"application/x-envoy":{source:"apache",extensions:["evy"]},"application/x-eva":{source:"apache",extensions:["eva"]},"application/x-font-bdf":{source:"apache",extensions:["bdf"]},"application/x-font-dos":{source:"apache"},"application/x-font-framemaker":{source:"apache"},"application/x-font-ghostscript":{source:"apache",extensions:["gsf"]},"application/x-font-libgrx":{source:"apache"},"application/x-font-linux-psf":{source:"apache",extensions:["psf"]},"application/x-font-pcf":{source:"apache",extensions:["pcf"]},"application/x-font-snf":{source:"apache",extensions:["snf"]},"application/x-font-speedo":{source:"apache"},"application/x-font-sunos-news":{source:"apache"},"application/x-font-type1":{source:"apache",extensions:["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{source:"apache"},"application/x-freearc":{source:"apache",extensions:["arc"]},"application/x-futuresplash":{source:"apache",extensions:["spl"]},"application/x-gca-compressed":{source:"apache",extensions:["gca"]},"application/x-glulx":{source:"apache",extensions:["ulx"]},"application/x-gnumeric":{source:"apache",extensions:["gnumeric"]},"application/x-gramps-xml":{source:"apache",extensions:["gramps"]},"application/x-gtar":{source:"apache",extensions:["gtar"]},"application/x-gzip":{source:"apache"},"application/x-hdf":{source:"apache",extensions:["hdf"]},"application/x-httpd-php":{compressible:!0,extensions:["php"]},"application/x-install-instructions":{source:"apache",extensions:["install"]},"application/x-iso9660-image":{source:"apache",extensions:["iso"]},"application/x-iwork-keynote-sffkey":{extensions:["key"]},"application/x-iwork-numbers-sffnumbers":{extensions:["numbers"]},"application/x-iwork-pages-sffpages":{extensions:["pages"]},"application/x-java-archive-diff":{source:"nginx",extensions:["jardiff"]},"application/x-java-jnlp-file":{source:"apache",compressible:!1,extensions:["jnlp"]},"application/x-javascript":{compressible:!0},"application/x-keepass2":{extensions:["kdbx"]},"application/x-latex":{source:"apache",compressible:!1,extensions:["latex"]},"application/x-lua-bytecode":{extensions:["luac"]},"application/x-lzh-compressed":{source:"apache",extensions:["lzh","lha"]},"application/x-makeself":{source:"nginx",extensions:["run"]},"application/x-mie":{source:"apache",extensions:["mie"]},"application/x-mobipocket-ebook":{source:"apache",extensions:["prc","mobi"]},"application/x-mpegurl":{compressible:!1},"application/x-ms-application":{source:"apache",extensions:["application"]},"application/x-ms-shortcut":{source:"apache",extensions:["lnk"]},"application/x-ms-wmd":{source:"apache",extensions:["wmd"]},"application/x-ms-wmz":{source:"apache",extensions:["wmz"]},"application/x-ms-xbap":{source:"apache",extensions:["xbap"]},"application/x-msaccess":{source:"apache",extensions:["mdb"]},"application/x-msbinder":{source:"apache",extensions:["obd"]},"application/x-mscardfile":{source:"apache",extensions:["crd"]},"application/x-msclip":{source:"apache",extensions:["clp"]},"application/x-msdos-program":{extensions:["exe"]},"application/x-msdownload":{source:"apache",extensions:["exe","dll","com","bat","msi"]},"application/x-msmediaview":{source:"apache",extensions:["mvb","m13","m14"]},"application/x-msmetafile":{source:"apache",extensions:["wmf","wmz","emf","emz"]},"application/x-msmoney":{source:"apache",extensions:["mny"]},"application/x-mspublisher":{source:"apache",extensions:["pub"]},"application/x-msschedule":{source:"apache",extensions:["scd"]},"application/x-msterminal":{source:"apache",extensions:["trm"]},"application/x-mswrite":{source:"apache",extensions:["wri"]},"application/x-netcdf":{source:"apache",extensions:["nc","cdf"]},"application/x-ns-proxy-autoconfig":{compressible:!0,extensions:["pac"]},"application/x-nzb":{source:"apache",extensions:["nzb"]},"application/x-perl":{source:"nginx",extensions:["pl","pm"]},"application/x-pilot":{source:"nginx",extensions:["prc","pdb"]},"application/x-pkcs12":{source:"apache",compressible:!1,extensions:["p12","pfx"]},"application/x-pkcs7-certificates":{source:"apache",extensions:["p7b","spc"]},"application/x-pkcs7-certreqresp":{source:"apache",extensions:["p7r"]},"application/x-pki-message":{source:"iana"},"application/x-rar-compressed":{source:"apache",compressible:!1,extensions:["rar"]},"application/x-redhat-package-manager":{source:"nginx",extensions:["rpm"]},"application/x-research-info-systems":{source:"apache",extensions:["ris"]},"application/x-sea":{source:"nginx",extensions:["sea"]},"application/x-sh":{source:"apache",compressible:!0,extensions:["sh"]},"application/x-shar":{source:"apache",extensions:["shar"]},"application/x-shockwave-flash":{source:"apache",compressible:!1,extensions:["swf"]},"application/x-silverlight-app":{source:"apache",extensions:["xap"]},"application/x-sql":{source:"apache",extensions:["sql"]},"application/x-stuffit":{source:"apache",compressible:!1,extensions:["sit"]},"application/x-stuffitx":{source:"apache",extensions:["sitx"]},"application/x-subrip":{source:"apache",extensions:["srt"]},"application/x-sv4cpio":{source:"apache",extensions:["sv4cpio"]},"application/x-sv4crc":{source:"apache",extensions:["sv4crc"]},"application/x-t3vm-image":{source:"apache",extensions:["t3"]},"application/x-tads":{source:"apache",extensions:["gam"]},"application/x-tar":{source:"apache",compressible:!0,extensions:["tar"]},"application/x-tcl":{source:"apache",extensions:["tcl","tk"]},"application/x-tex":{source:"apache",extensions:["tex"]},"application/x-tex-tfm":{source:"apache",extensions:["tfm"]},"application/x-texinfo":{source:"apache",extensions:["texinfo","texi"]},"application/x-tgif":{source:"apache",extensions:["obj"]},"application/x-ustar":{source:"apache",extensions:["ustar"]},"application/x-virtualbox-hdd":{compressible:!0,extensions:["hdd"]},"application/x-virtualbox-ova":{compressible:!0,extensions:["ova"]},"application/x-virtualbox-ovf":{compressible:!0,extensions:["ovf"]},"application/x-virtualbox-vbox":{compressible:!0,extensions:["vbox"]},"application/x-virtualbox-vbox-extpack":{compressible:!1,extensions:["vbox-extpack"]},"application/x-virtualbox-vdi":{compressible:!0,extensions:["vdi"]},"application/x-virtualbox-vhd":{compressible:!0,extensions:["vhd"]},"application/x-virtualbox-vmdk":{compressible:!0,extensions:["vmdk"]},"application/x-wais-source":{source:"apache",extensions:["src"]},"application/x-web-app-manifest+json":{compressible:!0,extensions:["webapp"]},"application/x-www-form-urlencoded":{source:"iana",compressible:!0},"application/x-x509-ca-cert":{source:"iana",extensions:["der","crt","pem"]},"application/x-x509-ca-ra-cert":{source:"iana"},"application/x-x509-next-ca-cert":{source:"iana"},"application/x-xfig":{source:"apache",extensions:["fig"]},"application/x-xliff+xml":{source:"apache",compressible:!0,extensions:["xlf"]},"application/x-xpinstall":{source:"apache",compressible:!1,extensions:["xpi"]},"application/x-xz":{source:"apache",extensions:["xz"]},"application/x-zmachine":{source:"apache",extensions:["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{source:"iana"},"application/xacml+xml":{source:"iana",compressible:!0},"application/xaml+xml":{source:"apache",compressible:!0,extensions:["xaml"]},"application/xcap-att+xml":{source:"iana",compressible:!0,extensions:["xav"]},"application/xcap-caps+xml":{source:"iana",compressible:!0,extensions:["xca"]},"application/xcap-diff+xml":{source:"iana",compressible:!0,extensions:["xdf"]},"application/xcap-el+xml":{source:"iana",compressible:!0,extensions:["xel"]},"application/xcap-error+xml":{source:"iana",compressible:!0},"application/xcap-ns+xml":{source:"iana",compressible:!0,extensions:["xns"]},"application/xcon-conference-info+xml":{source:"iana",compressible:!0},"application/xcon-conference-info-diff+xml":{source:"iana",compressible:!0},"application/xenc+xml":{source:"iana",compressible:!0,extensions:["xenc"]},"application/xhtml+xml":{source:"iana",compressible:!0,extensions:["xhtml","xht"]},"application/xhtml-voice+xml":{source:"apache",compressible:!0},"application/xliff+xml":{source:"iana",compressible:!0,extensions:["xlf"]},"application/xml":{source:"iana",compressible:!0,extensions:["xml","xsl","xsd","rng"]},"application/xml-dtd":{source:"iana",compressible:!0,extensions:["dtd"]},"application/xml-external-parsed-entity":{source:"iana"},"application/xml-patch+xml":{source:"iana",compressible:!0},"application/xmpp+xml":{source:"iana",compressible:!0},"application/xop+xml":{source:"iana",compressible:!0,extensions:["xop"]},"application/xproc+xml":{source:"apache",compressible:!0,extensions:["xpl"]},"application/xslt+xml":{source:"iana",compressible:!0,extensions:["xsl","xslt"]},"application/xspf+xml":{source:"apache",compressible:!0,extensions:["xspf"]},"application/xv+xml":{source:"iana",compressible:!0,extensions:["mxml","xhvml","xvml","xvm"]},"application/yang":{source:"iana",extensions:["yang"]},"application/yang-data+json":{source:"iana",compressible:!0},"application/yang-data+xml":{source:"iana",compressible:!0},"application/yang-patch+json":{source:"iana",compressible:!0},"application/yang-patch+xml":{source:"iana",compressible:!0},"application/yin+xml":{source:"iana",compressible:!0,extensions:["yin"]},"application/zip":{source:"iana",compressible:!1,extensions:["zip"]},"application/zlib":{source:"iana"},"application/zstd":{source:"iana"},"audio/1d-interleaved-parityfec":{source:"iana"},"audio/32kadpcm":{source:"iana"},"audio/3gpp":{source:"iana",compressible:!1,extensions:["3gpp"]},"audio/3gpp2":{source:"iana"},"audio/aac":{source:"iana"},"audio/ac3":{source:"iana"},"audio/adpcm":{source:"apache",extensions:["adp"]},"audio/amr":{source:"iana",extensions:["amr"]},"audio/amr-wb":{source:"iana"},"audio/amr-wb+":{source:"iana"},"audio/aptx":{source:"iana"},"audio/asc":{source:"iana"},"audio/atrac-advanced-lossless":{source:"iana"},"audio/atrac-x":{source:"iana"},"audio/atrac3":{source:"iana"},"audio/basic":{source:"iana",compressible:!1,extensions:["au","snd"]},"audio/bv16":{source:"iana"},"audio/bv32":{source:"iana"},"audio/clearmode":{source:"iana"},"audio/cn":{source:"iana"},"audio/dat12":{source:"iana"},"audio/dls":{source:"iana"},"audio/dsr-es201108":{source:"iana"},"audio/dsr-es202050":{source:"iana"},"audio/dsr-es202211":{source:"iana"},"audio/dsr-es202212":{source:"iana"},"audio/dv":{source:"iana"},"audio/dvi4":{source:"iana"},"audio/eac3":{source:"iana"},"audio/encaprtp":{source:"iana"},"audio/evrc":{source:"iana"},"audio/evrc-qcp":{source:"iana"},"audio/evrc0":{source:"iana"},"audio/evrc1":{source:"iana"},"audio/evrcb":{source:"iana"},"audio/evrcb0":{source:"iana"},"audio/evrcb1":{source:"iana"},"audio/evrcnw":{source:"iana"},"audio/evrcnw0":{source:"iana"},"audio/evrcnw1":{source:"iana"},"audio/evrcwb":{source:"iana"},"audio/evrcwb0":{source:"iana"},"audio/evrcwb1":{source:"iana"},"audio/evs":{source:"iana"},"audio/flexfec":{source:"iana"},"audio/fwdred":{source:"iana"},"audio/g711-0":{source:"iana"},"audio/g719":{source:"iana"},"audio/g722":{source:"iana"},"audio/g7221":{source:"iana"},"audio/g723":{source:"iana"},"audio/g726-16":{source:"iana"},"audio/g726-24":{source:"iana"},"audio/g726-32":{source:"iana"},"audio/g726-40":{source:"iana"},"audio/g728":{source:"iana"},"audio/g729":{source:"iana"},"audio/g7291":{source:"iana"},"audio/g729d":{source:"iana"},"audio/g729e":{source:"iana"},"audio/gsm":{source:"iana"},"audio/gsm-efr":{source:"iana"},"audio/gsm-hr-08":{source:"iana"},"audio/ilbc":{source:"iana"},"audio/ip-mr_v2.5":{source:"iana"},"audio/isac":{source:"apache"},"audio/l16":{source:"iana"},"audio/l20":{source:"iana"},"audio/l24":{source:"iana",compressible:!1},"audio/l8":{source:"iana"},"audio/lpc":{source:"iana"},"audio/melp":{source:"iana"},"audio/melp1200":{source:"iana"},"audio/melp2400":{source:"iana"},"audio/melp600":{source:"iana"},"audio/mhas":{source:"iana"},"audio/midi":{source:"apache",extensions:["mid","midi","kar","rmi"]},"audio/mobile-xmf":{source:"iana",extensions:["mxmf"]},"audio/mp3":{compressible:!1,extensions:["mp3"]},"audio/mp4":{source:"iana",compressible:!1,extensions:["m4a","mp4a"]},"audio/mp4a-latm":{source:"iana"},"audio/mpa":{source:"iana"},"audio/mpa-robust":{source:"iana"},"audio/mpeg":{source:"iana",compressible:!1,extensions:["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{source:"iana"},"audio/musepack":{source:"apache"},"audio/ogg":{source:"iana",compressible:!1,extensions:["oga","ogg","spx","opus"]},"audio/opus":{source:"iana"},"audio/parityfec":{source:"iana"},"audio/pcma":{source:"iana"},"audio/pcma-wb":{source:"iana"},"audio/pcmu":{source:"iana"},"audio/pcmu-wb":{source:"iana"},"audio/prs.sid":{source:"iana"},"audio/qcelp":{source:"iana"},"audio/raptorfec":{source:"iana"},"audio/red":{source:"iana"},"audio/rtp-enc-aescm128":{source:"iana"},"audio/rtp-midi":{source:"iana"},"audio/rtploopback":{source:"iana"},"audio/rtx":{source:"iana"},"audio/s3m":{source:"apache",extensions:["s3m"]},"audio/scip":{source:"iana"},"audio/silk":{source:"apache",extensions:["sil"]},"audio/smv":{source:"iana"},"audio/smv-qcp":{source:"iana"},"audio/smv0":{source:"iana"},"audio/sofa":{source:"iana"},"audio/sp-midi":{source:"iana"},"audio/speex":{source:"iana"},"audio/t140c":{source:"iana"},"audio/t38":{source:"iana"},"audio/telephone-event":{source:"iana"},"audio/tetra_acelp":{source:"iana"},"audio/tetra_acelp_bb":{source:"iana"},"audio/tone":{source:"iana"},"audio/tsvcis":{source:"iana"},"audio/uemclip":{source:"iana"},"audio/ulpfec":{source:"iana"},"audio/usac":{source:"iana"},"audio/vdvi":{source:"iana"},"audio/vmr-wb":{source:"iana"},"audio/vnd.3gpp.iufp":{source:"iana"},"audio/vnd.4sb":{source:"iana"},"audio/vnd.audiokoz":{source:"iana"},"audio/vnd.celp":{source:"iana"},"audio/vnd.cisco.nse":{source:"iana"},"audio/vnd.cmles.radio-events":{source:"iana"},"audio/vnd.cns.anp1":{source:"iana"},"audio/vnd.cns.inf1":{source:"iana"},"audio/vnd.dece.audio":{source:"iana",extensions:["uva","uvva"]},"audio/vnd.digital-winds":{source:"iana",extensions:["eol"]},"audio/vnd.dlna.adts":{source:"iana"},"audio/vnd.dolby.heaac.1":{source:"iana"},"audio/vnd.dolby.heaac.2":{source:"iana"},"audio/vnd.dolby.mlp":{source:"iana"},"audio/vnd.dolby.mps":{source:"iana"},"audio/vnd.dolby.pl2":{source:"iana"},"audio/vnd.dolby.pl2x":{source:"iana"},"audio/vnd.dolby.pl2z":{source:"iana"},"audio/vnd.dolby.pulse.1":{source:"iana"},"audio/vnd.dra":{source:"iana",extensions:["dra"]},"audio/vnd.dts":{source:"iana",extensions:["dts"]},"audio/vnd.dts.hd":{source:"iana",extensions:["dtshd"]},"audio/vnd.dts.uhd":{source:"iana"},"audio/vnd.dvb.file":{source:"iana"},"audio/vnd.everad.plj":{source:"iana"},"audio/vnd.hns.audio":{source:"iana"},"audio/vnd.lucent.voice":{source:"iana",extensions:["lvp"]},"audio/vnd.ms-playready.media.pya":{source:"iana",extensions:["pya"]},"audio/vnd.nokia.mobile-xmf":{source:"iana"},"audio/vnd.nortel.vbk":{source:"iana"},"audio/vnd.nuera.ecelp4800":{source:"iana",extensions:["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{source:"iana",extensions:["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{source:"iana",extensions:["ecelp9600"]},"audio/vnd.octel.sbc":{source:"iana"},"audio/vnd.presonus.multitrack":{source:"iana"},"audio/vnd.qcelp":{source:"iana"},"audio/vnd.rhetorex.32kadpcm":{source:"iana"},"audio/vnd.rip":{source:"iana",extensions:["rip"]},"audio/vnd.rn-realaudio":{compressible:!1},"audio/vnd.sealedmedia.softseal.mpeg":{source:"iana"},"audio/vnd.vmx.cvsd":{source:"iana"},"audio/vnd.wave":{compressible:!1},"audio/vorbis":{source:"iana",compressible:!1},"audio/vorbis-config":{source:"iana"},"audio/wav":{compressible:!1,extensions:["wav"]},"audio/wave":{compressible:!1,extensions:["wav"]},"audio/webm":{source:"apache",compressible:!1,extensions:["weba"]},"audio/x-aac":{source:"apache",compressible:!1,extensions:["aac"]},"audio/x-aiff":{source:"apache",extensions:["aif","aiff","aifc"]},"audio/x-caf":{source:"apache",compressible:!1,extensions:["caf"]},"audio/x-flac":{source:"apache",extensions:["flac"]},"audio/x-m4a":{source:"nginx",extensions:["m4a"]},"audio/x-matroska":{source:"apache",extensions:["mka"]},"audio/x-mpegurl":{source:"apache",extensions:["m3u"]},"audio/x-ms-wax":{source:"apache",extensions:["wax"]},"audio/x-ms-wma":{source:"apache",extensions:["wma"]},"audio/x-pn-realaudio":{source:"apache",extensions:["ram","ra"]},"audio/x-pn-realaudio-plugin":{source:"apache",extensions:["rmp"]},"audio/x-realaudio":{source:"nginx",extensions:["ra"]},"audio/x-tta":{source:"apache"},"audio/x-wav":{source:"apache",extensions:["wav"]},"audio/xm":{source:"apache",extensions:["xm"]},"chemical/x-cdx":{source:"apache",extensions:["cdx"]},"chemical/x-cif":{source:"apache",extensions:["cif"]},"chemical/x-cmdf":{source:"apache",extensions:["cmdf"]},"chemical/x-cml":{source:"apache",extensions:["cml"]},"chemical/x-csml":{source:"apache",extensions:["csml"]},"chemical/x-pdb":{source:"apache"},"chemical/x-xyz":{source:"apache",extensions:["xyz"]},"font/collection":{source:"iana",extensions:["ttc"]},"font/otf":{source:"iana",compressible:!0,extensions:["otf"]},"font/sfnt":{source:"iana"},"font/ttf":{source:"iana",compressible:!0,extensions:["ttf"]},"font/woff":{source:"iana",extensions:["woff"]},"font/woff2":{source:"iana",extensions:["woff2"]},"image/aces":{source:"iana",extensions:["exr"]},"image/apng":{compressible:!1,extensions:["apng"]},"image/avci":{source:"iana",extensions:["avci"]},"image/avcs":{source:"iana",extensions:["avcs"]},"image/avif":{source:"iana",compressible:!1,extensions:["avif"]},"image/bmp":{source:"iana",compressible:!0,extensions:["bmp"]},"image/cgm":{source:"iana",extensions:["cgm"]},"image/dicom-rle":{source:"iana",extensions:["drle"]},"image/emf":{source:"iana",extensions:["emf"]},"image/fits":{source:"iana",extensions:["fits"]},"image/g3fax":{source:"iana",extensions:["g3"]},"image/gif":{source:"iana",compressible:!1,extensions:["gif"]},"image/heic":{source:"iana",extensions:["heic"]},"image/heic-sequence":{source:"iana",extensions:["heics"]},"image/heif":{source:"iana",extensions:["heif"]},"image/heif-sequence":{source:"iana",extensions:["heifs"]},"image/hej2k":{source:"iana",extensions:["hej2"]},"image/hsj2":{source:"iana",extensions:["hsj2"]},"image/ief":{source:"iana",extensions:["ief"]},"image/jls":{source:"iana",extensions:["jls"]},"image/jp2":{source:"iana",compressible:!1,extensions:["jp2","jpg2"]},"image/jpeg":{source:"iana",compressible:!1,extensions:["jpeg","jpg","jpe"]},"image/jph":{source:"iana",extensions:["jph"]},"image/jphc":{source:"iana",extensions:["jhc"]},"image/jpm":{source:"iana",compressible:!1,extensions:["jpm"]},"image/jpx":{source:"iana",compressible:!1,extensions:["jpx","jpf"]},"image/jxr":{source:"iana",extensions:["jxr"]},"image/jxra":{source:"iana",extensions:["jxra"]},"image/jxrs":{source:"iana",extensions:["jxrs"]},"image/jxs":{source:"iana",extensions:["jxs"]},"image/jxsc":{source:"iana",extensions:["jxsc"]},"image/jxsi":{source:"iana",extensions:["jxsi"]},"image/jxss":{source:"iana",extensions:["jxss"]},"image/ktx":{source:"iana",extensions:["ktx"]},"image/ktx2":{source:"iana",extensions:["ktx2"]},"image/naplps":{source:"iana"},"image/pjpeg":{compressible:!1},"image/png":{source:"iana",compressible:!1,extensions:["png"]},"image/prs.btif":{source:"iana",extensions:["btif"]},"image/prs.pti":{source:"iana",extensions:["pti"]},"image/pwg-raster":{source:"iana"},"image/sgi":{source:"apache",extensions:["sgi"]},"image/svg+xml":{source:"iana",compressible:!0,extensions:["svg","svgz"]},"image/t38":{source:"iana",extensions:["t38"]},"image/tiff":{source:"iana",compressible:!1,extensions:["tif","tiff"]},"image/tiff-fx":{source:"iana",extensions:["tfx"]},"image/vnd.adobe.photoshop":{source:"iana",compressible:!0,extensions:["psd"]},"image/vnd.airzip.accelerator.azv":{source:"iana",extensions:["azv"]},"image/vnd.cns.inf2":{source:"iana"},"image/vnd.dece.graphic":{source:"iana",extensions:["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{source:"iana",extensions:["djvu","djv"]},"image/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"image/vnd.dwg":{source:"iana",extensions:["dwg"]},"image/vnd.dxf":{source:"iana",extensions:["dxf"]},"image/vnd.fastbidsheet":{source:"iana",extensions:["fbs"]},"image/vnd.fpx":{source:"iana",extensions:["fpx"]},"image/vnd.fst":{source:"iana",extensions:["fst"]},"image/vnd.fujixerox.edmics-mmr":{source:"iana",extensions:["mmr"]},"image/vnd.fujixerox.edmics-rlc":{source:"iana",extensions:["rlc"]},"image/vnd.globalgraphics.pgb":{source:"iana"},"image/vnd.microsoft.icon":{source:"iana",compressible:!0,extensions:["ico"]},"image/vnd.mix":{source:"iana"},"image/vnd.mozilla.apng":{source:"iana"},"image/vnd.ms-dds":{compressible:!0,extensions:["dds"]},"image/vnd.ms-modi":{source:"iana",extensions:["mdi"]},"image/vnd.ms-photo":{source:"apache",extensions:["wdp"]},"image/vnd.net-fpx":{source:"iana",extensions:["npx"]},"image/vnd.pco.b16":{source:"iana",extensions:["b16"]},"image/vnd.radiance":{source:"iana"},"image/vnd.sealed.png":{source:"iana"},"image/vnd.sealedmedia.softseal.gif":{source:"iana"},"image/vnd.sealedmedia.softseal.jpg":{source:"iana"},"image/vnd.svf":{source:"iana"},"image/vnd.tencent.tap":{source:"iana",extensions:["tap"]},"image/vnd.valve.source.texture":{source:"iana",extensions:["vtf"]},"image/vnd.wap.wbmp":{source:"iana",extensions:["wbmp"]},"image/vnd.xiff":{source:"iana",extensions:["xif"]},"image/vnd.zbrush.pcx":{source:"iana",extensions:["pcx"]},"image/webp":{source:"apache",extensions:["webp"]},"image/wmf":{source:"iana",extensions:["wmf"]},"image/x-3ds":{source:"apache",extensions:["3ds"]},"image/x-cmu-raster":{source:"apache",extensions:["ras"]},"image/x-cmx":{source:"apache",extensions:["cmx"]},"image/x-freehand":{source:"apache",extensions:["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{source:"apache",compressible:!0,extensions:["ico"]},"image/x-jng":{source:"nginx",extensions:["jng"]},"image/x-mrsid-image":{source:"apache",extensions:["sid"]},"image/x-ms-bmp":{source:"nginx",compressible:!0,extensions:["bmp"]},"image/x-pcx":{source:"apache",extensions:["pcx"]},"image/x-pict":{source:"apache",extensions:["pic","pct"]},"image/x-portable-anymap":{source:"apache",extensions:["pnm"]},"image/x-portable-bitmap":{source:"apache",extensions:["pbm"]},"image/x-portable-graymap":{source:"apache",extensions:["pgm"]},"image/x-portable-pixmap":{source:"apache",extensions:["ppm"]},"image/x-rgb":{source:"apache",extensions:["rgb"]},"image/x-tga":{source:"apache",extensions:["tga"]},"image/x-xbitmap":{source:"apache",extensions:["xbm"]},"image/x-xcf":{compressible:!1},"image/x-xpixmap":{source:"apache",extensions:["xpm"]},"image/x-xwindowdump":{source:"apache",extensions:["xwd"]},"message/cpim":{source:"iana"},"message/delivery-status":{source:"iana"},"message/disposition-notification":{source:"iana",extensions:["disposition-notification"]},"message/external-body":{source:"iana"},"message/feedback-report":{source:"iana"},"message/global":{source:"iana",extensions:["u8msg"]},"message/global-delivery-status":{source:"iana",extensions:["u8dsn"]},"message/global-disposition-notification":{source:"iana",extensions:["u8mdn"]},"message/global-headers":{source:"iana",extensions:["u8hdr"]},"message/http":{source:"iana",compressible:!1},"message/imdn+xml":{source:"iana",compressible:!0},"message/news":{source:"iana"},"message/partial":{source:"iana",compressible:!1},"message/rfc822":{source:"iana",compressible:!0,extensions:["eml","mime"]},"message/s-http":{source:"iana"},"message/sip":{source:"iana"},"message/sipfrag":{source:"iana"},"message/tracking-status":{source:"iana"},"message/vnd.si.simp":{source:"iana"},"message/vnd.wfa.wsc":{source:"iana",extensions:["wsc"]},"model/3mf":{source:"iana",extensions:["3mf"]},"model/e57":{source:"iana"},"model/gltf+json":{source:"iana",compressible:!0,extensions:["gltf"]},"model/gltf-binary":{source:"iana",compressible:!0,extensions:["glb"]},"model/iges":{source:"iana",compressible:!1,extensions:["igs","iges"]},"model/mesh":{source:"iana",compressible:!1,extensions:["msh","mesh","silo"]},"model/mtl":{source:"iana",extensions:["mtl"]},"model/obj":{source:"iana",extensions:["obj"]},"model/step":{source:"iana"},"model/step+xml":{source:"iana",compressible:!0,extensions:["stpx"]},"model/step+zip":{source:"iana",compressible:!1,extensions:["stpz"]},"model/step-xml+zip":{source:"iana",compressible:!1,extensions:["stpxz"]},"model/stl":{source:"iana",extensions:["stl"]},"model/vnd.collada+xml":{source:"iana",compressible:!0,extensions:["dae"]},"model/vnd.dwf":{source:"iana",extensions:["dwf"]},"model/vnd.flatland.3dml":{source:"iana"},"model/vnd.gdl":{source:"iana",extensions:["gdl"]},"model/vnd.gs-gdl":{source:"apache"},"model/vnd.gs.gdl":{source:"iana"},"model/vnd.gtw":{source:"iana",extensions:["gtw"]},"model/vnd.moml+xml":{source:"iana",compressible:!0},"model/vnd.mts":{source:"iana",extensions:["mts"]},"model/vnd.opengex":{source:"iana",extensions:["ogex"]},"model/vnd.parasolid.transmit.binary":{source:"iana",extensions:["x_b"]},"model/vnd.parasolid.transmit.text":{source:"iana",extensions:["x_t"]},"model/vnd.pytha.pyox":{source:"iana"},"model/vnd.rosette.annotated-data-model":{source:"iana"},"model/vnd.sap.vds":{source:"iana",extensions:["vds"]},"model/vnd.usdz+zip":{source:"iana",compressible:!1,extensions:["usdz"]},"model/vnd.valve.source.compiled-map":{source:"iana",extensions:["bsp"]},"model/vnd.vtu":{source:"iana",extensions:["vtu"]},"model/vrml":{source:"iana",compressible:!1,extensions:["wrl","vrml"]},"model/x3d+binary":{source:"apache",compressible:!1,extensions:["x3db","x3dbz"]},"model/x3d+fastinfoset":{source:"iana",extensions:["x3db"]},"model/x3d+vrml":{source:"apache",compressible:!1,extensions:["x3dv","x3dvz"]},"model/x3d+xml":{source:"iana",compressible:!0,extensions:["x3d","x3dz"]},"model/x3d-vrml":{source:"iana",extensions:["x3dv"]},"multipart/alternative":{source:"iana",compressible:!1},"multipart/appledouble":{source:"iana"},"multipart/byteranges":{source:"iana"},"multipart/digest":{source:"iana"},"multipart/encrypted":{source:"iana",compressible:!1},"multipart/form-data":{source:"iana",compressible:!1},"multipart/header-set":{source:"iana"},"multipart/mixed":{source:"iana"},"multipart/multilingual":{source:"iana"},"multipart/parallel":{source:"iana"},"multipart/related":{source:"iana",compressible:!1},"multipart/report":{source:"iana"},"multipart/signed":{source:"iana",compressible:!1},"multipart/vnd.bint.med-plus":{source:"iana"},"multipart/voice-message":{source:"iana"},"multipart/x-mixed-replace":{source:"iana"},"text/1d-interleaved-parityfec":{source:"iana"},"text/cache-manifest":{source:"iana",compressible:!0,extensions:["appcache","manifest"]},"text/calendar":{source:"iana",extensions:["ics","ifb"]},"text/calender":{compressible:!0},"text/cmd":{compressible:!0},"text/coffeescript":{extensions:["coffee","litcoffee"]},"text/cql":{source:"iana"},"text/cql-expression":{source:"iana"},"text/cql-identifier":{source:"iana"},"text/css":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["css"]},"text/csv":{source:"iana",compressible:!0,extensions:["csv"]},"text/csv-schema":{source:"iana"},"text/directory":{source:"iana"},"text/dns":{source:"iana"},"text/ecmascript":{source:"iana"},"text/encaprtp":{source:"iana"},"text/enriched":{source:"iana"},"text/fhirpath":{source:"iana"},"text/flexfec":{source:"iana"},"text/fwdred":{source:"iana"},"text/gff3":{source:"iana"},"text/grammar-ref-list":{source:"iana"},"text/html":{source:"iana",compressible:!0,extensions:["html","htm","shtml"]},"text/jade":{extensions:["jade"]},"text/javascript":{source:"iana",compressible:!0},"text/jcr-cnd":{source:"iana"},"text/jsx":{compressible:!0,extensions:["jsx"]},"text/less":{compressible:!0,extensions:["less"]},"text/markdown":{source:"iana",compressible:!0,extensions:["markdown","md"]},"text/mathml":{source:"nginx",extensions:["mml"]},"text/mdx":{compressible:!0,extensions:["mdx"]},"text/mizar":{source:"iana"},"text/n3":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["n3"]},"text/parameters":{source:"iana",charset:"UTF-8"},"text/parityfec":{source:"iana"},"text/plain":{source:"iana",compressible:!0,extensions:["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{source:"iana",charset:"UTF-8"},"text/prs.fallenstein.rst":{source:"iana"},"text/prs.lines.tag":{source:"iana",extensions:["dsc"]},"text/prs.prop.logic":{source:"iana"},"text/raptorfec":{source:"iana"},"text/red":{source:"iana"},"text/rfc822-headers":{source:"iana"},"text/richtext":{source:"iana",compressible:!0,extensions:["rtx"]},"text/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"text/rtp-enc-aescm128":{source:"iana"},"text/rtploopback":{source:"iana"},"text/rtx":{source:"iana"},"text/sgml":{source:"iana",extensions:["sgml","sgm"]},"text/shaclc":{source:"iana"},"text/shex":{source:"iana",extensions:["shex"]},"text/slim":{extensions:["slim","slm"]},"text/spdx":{source:"iana",extensions:["spdx"]},"text/strings":{source:"iana"},"text/stylus":{extensions:["stylus","styl"]},"text/t140":{source:"iana"},"text/tab-separated-values":{source:"iana",compressible:!0,extensions:["tsv"]},"text/troff":{source:"iana",extensions:["t","tr","roff","man","me","ms"]},"text/turtle":{source:"iana",charset:"UTF-8",extensions:["ttl"]},"text/ulpfec":{source:"iana"},"text/uri-list":{source:"iana",compressible:!0,extensions:["uri","uris","urls"]},"text/vcard":{source:"iana",compressible:!0,extensions:["vcard"]},"text/vnd.a":{source:"iana"},"text/vnd.abc":{source:"iana"},"text/vnd.ascii-art":{source:"iana"},"text/vnd.curl":{source:"iana",extensions:["curl"]},"text/vnd.curl.dcurl":{source:"apache",extensions:["dcurl"]},"text/vnd.curl.mcurl":{source:"apache",extensions:["mcurl"]},"text/vnd.curl.scurl":{source:"apache",extensions:["scurl"]},"text/vnd.debian.copyright":{source:"iana",charset:"UTF-8"},"text/vnd.dmclientscript":{source:"iana"},"text/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"text/vnd.esmertec.theme-descriptor":{source:"iana",charset:"UTF-8"},"text/vnd.familysearch.gedcom":{source:"iana",extensions:["ged"]},"text/vnd.ficlab.flt":{source:"iana"},"text/vnd.fly":{source:"iana",extensions:["fly"]},"text/vnd.fmi.flexstor":{source:"iana",extensions:["flx"]},"text/vnd.gml":{source:"iana"},"text/vnd.graphviz":{source:"iana",extensions:["gv"]},"text/vnd.hans":{source:"iana"},"text/vnd.hgl":{source:"iana"},"text/vnd.in3d.3dml":{source:"iana",extensions:["3dml"]},"text/vnd.in3d.spot":{source:"iana",extensions:["spot"]},"text/vnd.iptc.newsml":{source:"iana"},"text/vnd.iptc.nitf":{source:"iana"},"text/vnd.latex-z":{source:"iana"},"text/vnd.motorola.reflex":{source:"iana"},"text/vnd.ms-mediapackage":{source:"iana"},"text/vnd.net2phone.commcenter.command":{source:"iana"},"text/vnd.radisys.msml-basic-layout":{source:"iana"},"text/vnd.senx.warpscript":{source:"iana"},"text/vnd.si.uricatalogue":{source:"iana"},"text/vnd.sosi":{source:"iana"},"text/vnd.sun.j2me.app-descriptor":{source:"iana",charset:"UTF-8",extensions:["jad"]},"text/vnd.trolltech.linguist":{source:"iana",charset:"UTF-8"},"text/vnd.wap.si":{source:"iana"},"text/vnd.wap.sl":{source:"iana"},"text/vnd.wap.wml":{source:"iana",extensions:["wml"]},"text/vnd.wap.wmlscript":{source:"iana",extensions:["wmls"]},"text/vtt":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["vtt"]},"text/x-asm":{source:"apache",extensions:["s","asm"]},"text/x-c":{source:"apache",extensions:["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{source:"nginx",extensions:["htc"]},"text/x-fortran":{source:"apache",extensions:["f","for","f77","f90"]},"text/x-gwt-rpc":{compressible:!0},"text/x-handlebars-template":{extensions:["hbs"]},"text/x-java-source":{source:"apache",extensions:["java"]},"text/x-jquery-tmpl":{compressible:!0},"text/x-lua":{extensions:["lua"]},"text/x-markdown":{compressible:!0,extensions:["mkd"]},"text/x-nfo":{source:"apache",extensions:["nfo"]},"text/x-opml":{source:"apache",extensions:["opml"]},"text/x-org":{compressible:!0,extensions:["org"]},"text/x-pascal":{source:"apache",extensions:["p","pas"]},"text/x-processing":{compressible:!0,extensions:["pde"]},"text/x-sass":{extensions:["sass"]},"text/x-scss":{extensions:["scss"]},"text/x-setext":{source:"apache",extensions:["etx"]},"text/x-sfv":{source:"apache",extensions:["sfv"]},"text/x-suse-ymp":{compressible:!0,extensions:["ymp"]},"text/x-uuencode":{source:"apache",extensions:["uu"]},"text/x-vcalendar":{source:"apache",extensions:["vcs"]},"text/x-vcard":{source:"apache",extensions:["vcf"]},"text/xml":{source:"iana",compressible:!0,extensions:["xml"]},"text/xml-external-parsed-entity":{source:"iana"},"text/yaml":{compressible:!0,extensions:["yaml","yml"]},"video/1d-interleaved-parityfec":{source:"iana"},"video/3gpp":{source:"iana",extensions:["3gp","3gpp"]},"video/3gpp-tt":{source:"iana"},"video/3gpp2":{source:"iana",extensions:["3g2"]},"video/av1":{source:"iana"},"video/bmpeg":{source:"iana"},"video/bt656":{source:"iana"},"video/celb":{source:"iana"},"video/dv":{source:"iana"},"video/encaprtp":{source:"iana"},"video/ffv1":{source:"iana"},"video/flexfec":{source:"iana"},"video/h261":{source:"iana",extensions:["h261"]},"video/h263":{source:"iana",extensions:["h263"]},"video/h263-1998":{source:"iana"},"video/h263-2000":{source:"iana"},"video/h264":{source:"iana",extensions:["h264"]},"video/h264-rcdo":{source:"iana"},"video/h264-svc":{source:"iana"},"video/h265":{source:"iana"},"video/iso.segment":{source:"iana",extensions:["m4s"]},"video/jpeg":{source:"iana",extensions:["jpgv"]},"video/jpeg2000":{source:"iana"},"video/jpm":{source:"apache",extensions:["jpm","jpgm"]},"video/jxsv":{source:"iana"},"video/mj2":{source:"iana",extensions:["mj2","mjp2"]},"video/mp1s":{source:"iana"},"video/mp2p":{source:"iana"},"video/mp2t":{source:"iana",extensions:["ts"]},"video/mp4":{source:"iana",compressible:!1,extensions:["mp4","mp4v","mpg4"]},"video/mp4v-es":{source:"iana"},"video/mpeg":{source:"iana",compressible:!1,extensions:["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{source:"iana"},"video/mpv":{source:"iana"},"video/nv":{source:"iana"},"video/ogg":{source:"iana",compressible:!1,extensions:["ogv"]},"video/parityfec":{source:"iana"},"video/pointer":{source:"iana"},"video/quicktime":{source:"iana",compressible:!1,extensions:["qt","mov"]},"video/raptorfec":{source:"iana"},"video/raw":{source:"iana"},"video/rtp-enc-aescm128":{source:"iana"},"video/rtploopback":{source:"iana"},"video/rtx":{source:"iana"},"video/scip":{source:"iana"},"video/smpte291":{source:"iana"},"video/smpte292m":{source:"iana"},"video/ulpfec":{source:"iana"},"video/vc1":{source:"iana"},"video/vc2":{source:"iana"},"video/vnd.cctv":{source:"iana"},"video/vnd.dece.hd":{source:"iana",extensions:["uvh","uvvh"]},"video/vnd.dece.mobile":{source:"iana",extensions:["uvm","uvvm"]},"video/vnd.dece.mp4":{source:"iana"},"video/vnd.dece.pd":{source:"iana",extensions:["uvp","uvvp"]},"video/vnd.dece.sd":{source:"iana",extensions:["uvs","uvvs"]},"video/vnd.dece.video":{source:"iana",extensions:["uvv","uvvv"]},"video/vnd.directv.mpeg":{source:"iana"},"video/vnd.directv.mpeg-tts":{source:"iana"},"video/vnd.dlna.mpeg-tts":{source:"iana"},"video/vnd.dvb.file":{source:"iana",extensions:["dvb"]},"video/vnd.fvt":{source:"iana",extensions:["fvt"]},"video/vnd.hns.video":{source:"iana"},"video/vnd.iptvforum.1dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.1dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.2dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.2dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.ttsavc":{source:"iana"},"video/vnd.iptvforum.ttsmpeg2":{source:"iana"},"video/vnd.motorola.video":{source:"iana"},"video/vnd.motorola.videop":{source:"iana"},"video/vnd.mpegurl":{source:"iana",extensions:["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{source:"iana",extensions:["pyv"]},"video/vnd.nokia.interleaved-multimedia":{source:"iana"},"video/vnd.nokia.mp4vr":{source:"iana"},"video/vnd.nokia.videovoip":{source:"iana"},"video/vnd.objectvideo":{source:"iana"},"video/vnd.radgamettools.bink":{source:"iana"},"video/vnd.radgamettools.smacker":{source:"iana"},"video/vnd.sealed.mpeg1":{source:"iana"},"video/vnd.sealed.mpeg4":{source:"iana"},"video/vnd.sealed.swf":{source:"iana"},"video/vnd.sealedmedia.softseal.mov":{source:"iana"},"video/vnd.uvvu.mp4":{source:"iana",extensions:["uvu","uvvu"]},"video/vnd.vivo":{source:"iana",extensions:["viv"]},"video/vnd.youtube.yt":{source:"iana"},"video/vp8":{source:"iana"},"video/vp9":{source:"iana"},"video/webm":{source:"apache",compressible:!1,extensions:["webm"]},"video/x-f4v":{source:"apache",extensions:["f4v"]},"video/x-fli":{source:"apache",extensions:["fli"]},"video/x-flv":{source:"apache",compressible:!1,extensions:["flv"]},"video/x-m4v":{source:"apache",extensions:["m4v"]},"video/x-matroska":{source:"apache",compressible:!1,extensions:["mkv","mk3d","mks"]},"video/x-mng":{source:"apache",extensions:["mng"]},"video/x-ms-asf":{source:"apache",extensions:["asf","asx"]},"video/x-ms-vob":{source:"apache",extensions:["vob"]},"video/x-ms-wm":{source:"apache",extensions:["wm"]},"video/x-ms-wmv":{source:"apache",compressible:!1,extensions:["wmv"]},"video/x-ms-wmx":{source:"apache",extensions:["wmx"]},"video/x-ms-wvx":{source:"apache",extensions:["wvx"]},"video/x-msvideo":{source:"apache",extensions:["avi"]},"video/x-sgi-movie":{source:"apache",extensions:["movie"]},"video/x-smv":{source:"apache",extensions:["smv"]},"x-conference/x-cooltalk":{source:"apache",extensions:["ice"]},"x-shader/x-fragment":{compressible:!0},"x-shader/x-vertex":{compressible:!0}};/*!
2
2
  * mime-db
3
3
  * Copyright(c) 2014 Jonathan Ong
4
4
  * Copyright(c) 2015-2022 Douglas Christopher Wilson
5
5
  * MIT Licensed
6
- */var Xm=Wm;/*!
6
+ */var rh=th;/*!
7
7
  * mime-types
8
8
  * Copyright(c) 2014 Jonathan Ong
9
9
  * Copyright(c) 2015 Douglas Christopher Wilson
10
10
  * MIT Licensed
11
- */(function(e){var t=Xm,a=gp.extname,r=/^\s*([^;\s]*)(?:;|\s|$)/,n=/^text\//i;e.charset=s,e.charsets={lookup:s},e.contentType=i,e.extension=o,e.extensions=Object.create(null),e.lookup=c,e.types=Object.create(null),l(e.extensions,e.types);function s(u){if(!u||typeof u!="string")return!1;var p=r.exec(u),f=p&&t[p[1].toLowerCase()];return f&&f.charset?f.charset:p&&n.test(p[1])?"UTF-8":!1}function i(u){if(!u||typeof u!="string")return!1;var p=u.indexOf("/")===-1?e.lookup(u):u;if(!p)return!1;if(p.indexOf("charset")===-1){var f=e.charset(p);f&&(p+="; charset="+f.toLowerCase())}return p}function o(u){if(!u||typeof u!="string")return!1;var p=r.exec(u),f=p&&e.extensions[p[1].toLowerCase()];return!f||!f.length?!1:f[0]}function c(u){if(!u||typeof u!="string")return!1;var p=a("x."+u).toLowerCase().substr(1);return p&&e.types[p]||!1}function l(u,p){var f=["nginx","apache",void 0,"iana"];Object.keys(t).forEach(function(m){var y=t[m],b=y.extensions;if(!(!b||!b.length)){u[m]=b;for(var S=0;S<b.length;S++){var B=b[S];if(p[B]){var _=f.indexOf(t[p[B]].source),D=f.indexOf(y.source);if(p[B]!=="application/octet-stream"&&(_>D||_===D&&p[B].substr(0,12)==="application/"))continue}p[B]=m}}})}})(Up);var Ym=Jm;function Jm(e){var t=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;t?t(e):setTimeout(e,0)}var Dp=Ym,Pp=Zm;function Zm(e){var t=!1;return Dp(function(){t=!0}),function(r,n){t?e(r,n):Dp(function(){e(r,n)})}}var Op=eh;function eh(e){Object.keys(e.jobs).forEach(th.bind(e)),e.jobs={}}function th(e){typeof this.jobs[e]=="function"&&this.jobs[e]()}var Fp=Pp,rh=Op,Mp=ah;function ah(e,t,a,r){var n=a.keyedList?a.keyedList[a.index]:a.index;a.jobs[n]=nh(t,n,e[n],function(s,i){n in a.jobs&&(delete a.jobs[n],s?rh(a):a.results[n]=i,r(s,a.results))})}function nh(e,t,a,r){var n;return e.length==2?n=e(a,Fp(r)):n=e(a,t,Fp(r)),n}var Vp=ih;function ih(e,t){var a=!Array.isArray(e),r={index:0,keyedList:a||t?Object.keys(e):null,jobs:{},results:a?{}:[],size:a?Object.keys(e).length:e.length};return t&&r.keyedList.sort(a?t:function(n,s){return t(e[n],e[s])}),r}var sh=Op,oh=Pp,qp=ch;function ch(e){Object.keys(this.jobs).length&&(this.index=this.size,sh(this),oh(e)(null,this.results))}var lh=Mp,uh=Vp,ph=qp,dh=fh;function fh(e,t,a){for(var r=uh(e);r.index<(r.keyedList||e).length;)lh(e,t,r,function(n,s){if(n){a(n,s);return}if(Object.keys(r.jobs).length===0){a(null,r.results);return}}),r.index++;return ph.bind(r,a)}var Ic={exports:{}},jp=Mp,mh=Vp,hh=qp;Ic.exports=vh,Ic.exports.ascending=Kp,Ic.exports.descending=gh;function vh(e,t,a,r){var n=mh(e,a);return jp(e,t,n,function s(i,o){if(i){r(i,o);return}if(n.index++,n.index<(n.keyedList||e).length){jp(e,t,n,s);return}r(null,n.results)}),hh.bind(n,r)}function Kp(e,t){return e<t?-1:e>t?1:0}function gh(e,t){return-1*Kp(e,t)}var zp=Ic.exports,xh=zp,yh=bh;function bh(e,t,a){return xh(e,t,null,a)}var Eh={parallel:dh,serial:yh,serialOrdered:zp},Hp=Object,Ch=Error,Sh=EvalError,Th=RangeError,wh=ReferenceError,Ah=SyntaxError,Tl,$p;function wl(){return $p||($p=1,Tl=TypeError),Tl}var Ih=URIError,Bh=Math.abs,_h=Math.floor,Rh=Math.max,kh=Math.min,Nh=Math.pow,Lh=Math.round,Uh=Number.isNaN||function(t){return t!==t},Dh=Uh,Ph=function(t){return Dh(t)||t===0?t:t<0?-1:1},Oh=Object.getOwnPropertyDescriptor,Bc=Oh;if(Bc)try{Bc([],"length")}catch{Bc=null}var Gp=Bc,_c=Object.defineProperty||!1;if(_c)try{_c({},"a",{value:1})}catch{_c=!1}var Fh=_c,Al,Qp;function Wp(){return Qp||(Qp=1,Al=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},a=Symbol("test"),r=Object(a);if(typeof a=="string"||Object.prototype.toString.call(a)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var n=42;t[a]=n;for(var s in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var i=Object.getOwnPropertySymbols(t);if(i.length!==1||i[0]!==a||!Object.prototype.propertyIsEnumerable.call(t,a))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(t,a);if(o.value!==n||o.enumerable!==!0)return!1}return!0}),Al}var Il,Xp;function Mh(){if(Xp)return Il;Xp=1;var e=typeof Symbol<"u"&&Symbol,t=Wp();return Il=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},Il}var Bl,Yp;function Jp(){return Yp||(Yp=1,Bl=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Bl}var _l,Zp;function ed(){if(Zp)return _l;Zp=1;var e=Hp;return _l=e.getPrototypeOf||null,_l}var Vh="Function.prototype.bind called on incompatible ",qh=Object.prototype.toString,jh=Math.max,Kh="[object Function]",td=function(t,a){for(var r=[],n=0;n<t.length;n+=1)r[n]=t[n];for(var s=0;s<a.length;s+=1)r[s+t.length]=a[s];return r},zh=function(t,a){for(var r=[],n=a||0,s=0;n<t.length;n+=1,s+=1)r[s]=t[n];return r},Hh=function(e,t){for(var a="",r=0;r<e.length;r+=1)a+=e[r],r+1<e.length&&(a+=t);return a},$h=function(t){var a=this;if(typeof a!="function"||qh.apply(a)!==Kh)throw new TypeError(Vh+a);for(var r=zh(arguments,1),n,s=function(){if(this instanceof n){var u=a.apply(this,td(r,arguments));return Object(u)===u?u:this}return a.apply(t,td(r,arguments))},i=jh(0,a.length-r.length),o=[],c=0;c<i;c++)o[c]="$"+c;if(n=Function("binder","return function ("+Hh(o,",")+"){ return binder.apply(this,arguments); }")(s),a.prototype){var l=function(){};l.prototype=a.prototype,n.prototype=new l,l.prototype=null}return n},Gh=$h,Rc=Function.prototype.bind||Gh,Rl,rd;function kl(){return rd||(rd=1,Rl=Function.prototype.call),Rl}var Nl,ad;function nd(){return ad||(ad=1,Nl=Function.prototype.apply),Nl}var Ll,id;function Qh(){return id||(id=1,Ll=typeof Reflect<"u"&&Reflect&&Reflect.apply),Ll}var Ul,sd;function Wh(){if(sd)return Ul;sd=1;var e=Rc,t=nd(),a=kl(),r=Qh();return Ul=r||e.call(a,t),Ul}var Dl,od;function Xh(){if(od)return Dl;od=1;var e=Rc,t=wl(),a=kl(),r=Wh();return Dl=function(s){if(s.length<1||typeof s[0]!="function")throw new t("a function is required");return r(e,a,s)},Dl}var Pl,cd;function Yh(){if(cd)return Pl;cd=1;var e=Xh(),t=Gp,a;try{a=[].__proto__===Array.prototype}catch(i){if(!i||typeof i!="object"||!("code"in i)||i.code!=="ERR_PROTO_ACCESS")throw i}var r=!!a&&t&&t(Object.prototype,"__proto__"),n=Object,s=n.getPrototypeOf;return Pl=r&&typeof r.get=="function"?e([r.get]):typeof s=="function"?function(o){return s(o==null?o:n(o))}:!1,Pl}var Ol,ld;function Jh(){if(ld)return Ol;ld=1;var e=Jp(),t=ed(),a=Yh();return Ol=e?function(n){return e(n)}:t?function(n){if(!n||typeof n!="object"&&typeof n!="function")throw new TypeError("getProto: not an object");return t(n)}:a?function(n){return a(n)}:null,Ol}var Zh=Function.prototype.call,ev=Object.prototype.hasOwnProperty,tv=Rc,Fl=tv.call(Zh,ev),re,rv=Hp,av=Ch,nv=Sh,iv=Th,sv=wh,Pr=Ah,Or=wl(),ov=Ih,cv=Bh,lv=_h,uv=Rh,pv=kh,dv=Nh,fv=Lh,mv=Ph,ud=Function,Ml=function(e){try{return ud('"use strict"; return ('+e+").constructor;")()}catch{}},ia=Gp,hv=Fh,Vl=function(){throw new Or},vv=ia?function(){try{return arguments.callee,Vl}catch{try{return ia(arguments,"callee").get}catch{return Vl}}}():Vl,Fr=Mh()(),Me=Jh(),gv=ed(),xv=Jp(),pd=nd(),sa=kl(),Mr={},yv=typeof Uint8Array>"u"||!Me?re:Me(Uint8Array),gr={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?re:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?re:ArrayBuffer,"%ArrayIteratorPrototype%":Fr&&Me?Me([][Symbol.iterator]()):re,"%AsyncFromSyncIteratorPrototype%":re,"%AsyncFunction%":Mr,"%AsyncGenerator%":Mr,"%AsyncGeneratorFunction%":Mr,"%AsyncIteratorPrototype%":Mr,"%Atomics%":typeof Atomics>"u"?re:Atomics,"%BigInt%":typeof BigInt>"u"?re:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?re:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?re:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?re:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":av,"%eval%":eval,"%EvalError%":nv,"%Float16Array%":typeof Float16Array>"u"?re:Float16Array,"%Float32Array%":typeof Float32Array>"u"?re:Float32Array,"%Float64Array%":typeof Float64Array>"u"?re:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?re:FinalizationRegistry,"%Function%":ud,"%GeneratorFunction%":Mr,"%Int8Array%":typeof Int8Array>"u"?re:Int8Array,"%Int16Array%":typeof Int16Array>"u"?re:Int16Array,"%Int32Array%":typeof Int32Array>"u"?re:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Fr&&Me?Me(Me([][Symbol.iterator]())):re,"%JSON%":typeof JSON=="object"?JSON:re,"%Map%":typeof Map>"u"?re:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Fr||!Me?re:Me(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":rv,"%Object.getOwnPropertyDescriptor%":ia,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?re:Promise,"%Proxy%":typeof Proxy>"u"?re:Proxy,"%RangeError%":iv,"%ReferenceError%":sv,"%Reflect%":typeof Reflect>"u"?re:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?re:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Fr||!Me?re:Me(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?re:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Fr&&Me?Me(""[Symbol.iterator]()):re,"%Symbol%":Fr?Symbol:re,"%SyntaxError%":Pr,"%ThrowTypeError%":vv,"%TypedArray%":yv,"%TypeError%":Or,"%Uint8Array%":typeof Uint8Array>"u"?re:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?re:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?re:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?re:Uint32Array,"%URIError%":ov,"%WeakMap%":typeof WeakMap>"u"?re:WeakMap,"%WeakRef%":typeof WeakRef>"u"?re:WeakRef,"%WeakSet%":typeof WeakSet>"u"?re:WeakSet,"%Function.prototype.call%":sa,"%Function.prototype.apply%":pd,"%Object.defineProperty%":hv,"%Object.getPrototypeOf%":gv,"%Math.abs%":cv,"%Math.floor%":lv,"%Math.max%":uv,"%Math.min%":pv,"%Math.pow%":dv,"%Math.round%":fv,"%Math.sign%":mv,"%Reflect.getPrototypeOf%":xv};if(Me)try{null.error}catch(e){var bv=Me(Me(e));gr["%Error.prototype%"]=bv}var Ev=function e(t){var a;if(t==="%AsyncFunction%")a=Ml("async function () {}");else if(t==="%GeneratorFunction%")a=Ml("function* () {}");else if(t==="%AsyncGeneratorFunction%")a=Ml("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(a=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var n=e("%AsyncGenerator%");n&&Me&&(a=Me(n.prototype))}return gr[t]=a,a},dd={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},oa=Rc,kc=Fl,Cv=oa.call(sa,Array.prototype.concat),Sv=oa.call(pd,Array.prototype.splice),fd=oa.call(sa,String.prototype.replace),Nc=oa.call(sa,String.prototype.slice),Tv=oa.call(sa,RegExp.prototype.exec),wv=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Av=/\\(\\)?/g,Iv=function(t){var a=Nc(t,0,1),r=Nc(t,-1);if(a==="%"&&r!=="%")throw new Pr("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&a!=="%")throw new Pr("invalid intrinsic syntax, expected opening `%`");var n=[];return fd(t,wv,function(s,i,o,c){n[n.length]=o?fd(c,Av,"$1"):i||s}),n},Bv=function(t,a){var r=t,n;if(kc(dd,r)&&(n=dd[r],r="%"+n[0]+"%"),kc(gr,r)){var s=gr[r];if(s===Mr&&(s=Ev(r)),typeof s>"u"&&!a)throw new Or("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:s}}throw new Pr("intrinsic "+t+" does not exist!")},_v=function(t,a){if(typeof t!="string"||t.length===0)throw new Or("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof a!="boolean")throw new Or('"allowMissing" argument must be a boolean');if(Tv(/^%?[^%]*%?$/,t)===null)throw new Pr("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=Iv(t),n=r.length>0?r[0]:"",s=Bv("%"+n+"%",a),i=s.name,o=s.value,c=!1,l=s.alias;l&&(n=l[0],Sv(r,Cv([0,1],l)));for(var u=1,p=!0;u<r.length;u+=1){var f=r[u],x=Nc(f,0,1),m=Nc(f,-1);if((x==='"'||x==="'"||x==="`"||m==='"'||m==="'"||m==="`")&&x!==m)throw new Pr("property names with quotes must have matching quotes");if((f==="constructor"||!p)&&(c=!0),n+="."+f,i="%"+n+"%",kc(gr,i))o=gr[i];else if(o!=null){if(!(f in o)){if(!a)throw new Or("base intrinsic for "+t+" exists, but the property is not available.");return}if(ia&&u+1>=r.length){var y=ia(o,f);p=!!y,p&&"get"in y&&!("originalValue"in y.get)?o=y.get:o=o[f]}else p=kc(o,f),o=o[f];p&&!c&&(gr[i]=o)}}return o},ql,md;function Rv(){if(md)return ql;md=1;var e=Wp();return ql=function(){return e()&&!!Symbol.toStringTag},ql}var kv=_v,hd=kv("%Object.defineProperty%",!0),Nv=Rv()(),Lv=Fl,Uv=wl(),Lc=Nv?Symbol.toStringTag:null,Dv=function(t,a){var r=arguments.length>2&&!!arguments[2]&&arguments[2].force,n=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(typeof r<"u"&&typeof r!="boolean"||typeof n<"u"&&typeof n!="boolean")throw new Uv("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");Lc&&(r||!Lv(t,Lc))&&(hd?hd(t,Lc,{configurable:!n,enumerable:!1,value:a,writable:!1}):t[Lc]=a)},Pv=function(e,t){return Object.keys(t).forEach(function(a){e[a]=e[a]||t[a]}),e},jl=Qm,Ov=Nr,Kl=gp,Fv=bl,Mv=El,Vv=Cc.parse,qv=tm,jv=At.Stream,Kv=Lr,zl=Up,zv=Eh,Hv=Dv,rr=Fl,Hl=Pv;function de(e){if(!(this instanceof de))return new de(e);this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],jl.call(this),e=e||{};for(var t in e)this[t]=e[t]}Ov.inherits(de,jl),de.LINE_BREAK=`\r
12
- `,de.DEFAULT_CONTENT_TYPE="application/octet-stream",de.prototype.append=function(e,t,a){a=a||{},typeof a=="string"&&(a={filename:a});var r=jl.prototype.append.bind(this);if((typeof t=="number"||t==null)&&(t=String(t)),Array.isArray(t)){this._error(new Error("Arrays are not supported."));return}var n=this._multiPartHeader(e,t,a),s=this._multiPartFooter();r(n),r(t),r(s),this._trackLength(n,t,a)},de.prototype._trackLength=function(e,t,a){var r=0;a.knownLength!=null?r+=Number(a.knownLength):Buffer.isBuffer(t)?r=t.length:typeof t=="string"&&(r=Buffer.byteLength(t)),this._valueLength+=r,this._overheadLength+=Buffer.byteLength(e)+de.LINE_BREAK.length,!(!t||!t.path&&!(t.readable&&rr(t,"httpVersion"))&&!(t instanceof jv))&&(a.knownLength||this._valuesToMeasure.push(t))},de.prototype._lengthRetriever=function(e,t){rr(e,"fd")?e.end!=null&&e.end!=1/0&&e.start!=null?t(null,e.end+1-(e.start?e.start:0)):qv.stat(e.path,function(a,r){if(a){t(a);return}var n=r.size-(e.start?e.start:0);t(null,n)}):rr(e,"httpVersion")?t(null,Number(e.headers["content-length"])):rr(e,"httpModule")?(e.on("response",function(a){e.pause(),t(null,Number(a.headers["content-length"]))}),e.resume()):t("Unknown stream")},de.prototype._multiPartHeader=function(e,t,a){if(typeof a.header=="string")return a.header;var r=this._getContentDisposition(t,a),n=this._getContentType(t,a),s="",i={"Content-Disposition":["form-data",'name="'+e+'"'].concat(r||[]),"Content-Type":[].concat(n||[])};typeof a.header=="object"&&Hl(i,a.header);var o;for(var c in i)if(rr(i,c)){if(o=i[c],o==null)continue;Array.isArray(o)||(o=[o]),o.length&&(s+=c+": "+o.join("; ")+de.LINE_BREAK)}return"--"+this.getBoundary()+de.LINE_BREAK+s+de.LINE_BREAK},de.prototype._getContentDisposition=function(e,t){var a;if(typeof t.filepath=="string"?a=Kl.normalize(t.filepath).replace(/\\/g,"/"):t.filename||e&&(e.name||e.path)?a=Kl.basename(t.filename||e&&(e.name||e.path)):e&&e.readable&&rr(e,"httpVersion")&&(a=Kl.basename(e.client._httpMessage.path||"")),a)return'filename="'+a+'"'},de.prototype._getContentType=function(e,t){var a=t.contentType;return!a&&e&&e.name&&(a=zl.lookup(e.name)),!a&&e&&e.path&&(a=zl.lookup(e.path)),!a&&e&&e.readable&&rr(e,"httpVersion")&&(a=e.headers["content-type"]),!a&&(t.filepath||t.filename)&&(a=zl.lookup(t.filepath||t.filename)),!a&&e&&typeof e=="object"&&(a=de.DEFAULT_CONTENT_TYPE),a},de.prototype._multiPartFooter=function(){return function(e){var t=de.LINE_BREAK,a=this._streams.length===0;a&&(t+=this._lastBoundary()),e(t)}.bind(this)},de.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+de.LINE_BREAK},de.prototype.getHeaders=function(e){var t,a={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(t in e)rr(e,t)&&(a[t.toLowerCase()]=e[t]);return a},de.prototype.setBoundary=function(e){if(typeof e!="string")throw new TypeError("FormData boundary must be a string");this._boundary=e},de.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary},de.prototype.getBuffer=function(){for(var e=new Buffer.alloc(0),t=this.getBoundary(),a=0,r=this._streams.length;a<r;a++)typeof this._streams[a]!="function"&&(Buffer.isBuffer(this._streams[a])?e=Buffer.concat([e,this._streams[a]]):e=Buffer.concat([e,Buffer.from(this._streams[a])]),(typeof this._streams[a]!="string"||this._streams[a].substring(2,t.length+2)!==t)&&(e=Buffer.concat([e,Buffer.from(de.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])},de.prototype._generateBoundary=function(){this._boundary="--------------------------"+Kv.randomBytes(12).toString("hex")},de.prototype.getLengthSync=function(){var e=this._overheadLength+this._valueLength;return this._streams.length&&(e+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),e},de.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e},de.prototype.getLength=function(e){var t=this._overheadLength+this._valueLength;if(this._streams.length&&(t+=this._lastBoundary().length),!this._valuesToMeasure.length){process.nextTick(e.bind(this,null,t));return}zv.parallel(this._valuesToMeasure,this._lengthRetriever,function(a,r){if(a){e(a);return}r.forEach(function(n){t+=n}),e(null,t)})},de.prototype.submit=function(e,t){var a,r,n={method:"post"};return typeof e=="string"?(e=Vv(e),r=Hl({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},n)):(r=Hl(e,n),r.port||(r.port=r.protocol==="https:"?443:80)),r.headers=this.getHeaders(e.headers),r.protocol==="https:"?a=Mv.request(r):a=Fv.request(r),this.getLength(function(s,i){if(s&&s!=="Unknown stream"){this._error(s);return}if(i&&a.setHeader("Content-Length",i),this.pipe(a),t){var o,c=function(l,u){return a.removeListener("error",c),a.removeListener("response",o),t.call(this,l,u)};o=c.bind(this,null),a.on("error",c),a.on("response",o)}}.bind(this)),a},de.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit("error",e))},de.prototype.toString=function(){return"[object FormData]"},Hv(de,"FormData");var $v=de,vd=Rp($v);function $l(e){return A.isPlainObject(e)||A.isArray(e)}function gd(e){return A.endsWith(e,"[]")?e.slice(0,-2):e}function xd(e,t,a){return e?e.concat(t).map(function(n,s){return n=gd(n),!a&&s?"["+n+"]":n}).join(a?".":""):t}function Gv(e){return A.isArray(e)&&!e.some($l)}const Qv=A.toFlatObject(A,{},null,function(t){return/^is[A-Z]/.test(t)});function Uc(e,t,a){if(!A.isObject(e))throw new TypeError("target must be an object");t=t||new(vd||FormData),a=A.toFlatObject(a,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,b){return!A.isUndefined(b[y])});const r=a.metaTokens,n=a.visitor||u,s=a.dots,i=a.indexes,c=(a.Blob||typeof Blob<"u"&&Blob)&&A.isSpecCompliantForm(t);if(!A.isFunction(n))throw new TypeError("visitor must be a function");function l(m){if(m===null)return"";if(A.isDate(m))return m.toISOString();if(A.isBoolean(m))return m.toString();if(!c&&A.isBlob(m))throw new j("Blob is not supported. Use a Buffer instead.");return A.isArrayBuffer(m)||A.isTypedArray(m)?c&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function u(m,y,b){let S=m;if(m&&!b&&typeof m=="object"){if(A.endsWith(y,"{}"))y=r?y:y.slice(0,-2),m=JSON.stringify(m);else if(A.isArray(m)&&Gv(m)||(A.isFileList(m)||A.endsWith(y,"[]"))&&(S=A.toArray(m)))return y=gd(y),S.forEach(function(_,D){!(A.isUndefined(_)||_===null)&&t.append(i===!0?xd([y],D,s):i===null?y:y+"[]",l(_))}),!1}return $l(m)?!0:(t.append(xd(b,y,s),l(m)),!1)}const p=[],f=Object.assign(Qv,{defaultVisitor:u,convertValue:l,isVisitable:$l});function x(m,y){if(!A.isUndefined(m)){if(p.indexOf(m)!==-1)throw Error("Circular reference detected in "+y.join("."));p.push(m),A.forEach(m,function(S,B){(!(A.isUndefined(S)||S===null)&&n.call(t,S,A.isString(B)?B.trim():B,y,f))===!0&&x(S,y?y.concat(B):[B])}),p.pop()}}if(!A.isObject(e))throw new TypeError("data must be an object");return x(e),t}function yd(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function bd(e,t){this._pairs=[],e&&Uc(e,this,t)}const Ed=bd.prototype;Ed.append=function(t,a){this._pairs.push([t,a])},Ed.toString=function(t){const a=t?function(r){return t.call(this,r,yd)}:yd;return this._pairs.map(function(n){return a(n[0])+"="+a(n[1])},"").join("&")};function Wv(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Gl(e,t,a){if(!t)return e;const r=a&&a.encode||Wv;A.isFunction(a)&&(a={serialize:a});const n=a&&a.serialize;let s;if(n?s=n(t,a):s=A.isURLSearchParams(t)?t.toString():new bd(t,a).toString(r),s){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class Cd{constructor(){this.handlers=[]}use(t,a,r){return this.handlers.push({fulfilled:t,rejected:a,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){A.forEach(this.handlers,function(r){r!==null&&t(r)})}}var Ql={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Xv=Cc.URLSearchParams;const Wl="abcdefghijklmnopqrstuvwxyz",Sd="0123456789",Td={DIGIT:Sd,ALPHA:Wl,ALPHA_DIGIT:Wl+Wl.toUpperCase()+Sd},Yv=(e=16,t=Td.ALPHA_DIGIT)=>{let a="";const{length:r}=t,n=new Uint32Array(e);Lr.randomFillSync(n);for(let s=0;s<e;s++)a+=t[n[s]%r];return a};var Jv={isNode:!0,classes:{URLSearchParams:Xv,FormData:vd,Blob:typeof Blob<"u"&&Blob||null},ALPHABET:Td,generateString:Yv,protocols:["http","https","file","data"]};const Xl=typeof window<"u"&&typeof document<"u",Yl=typeof navigator=="object"&&navigator||void 0,Zv=Xl&&(!Yl||["ReactNative","NativeScript","NS"].indexOf(Yl.product)<0),eg=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",tg=Xl&&window.location.href||"http://localhost";var rg=Object.freeze({__proto__:null,hasBrowserEnv:Xl,hasStandardBrowserEnv:Zv,hasStandardBrowserWebWorkerEnv:eg,navigator:Yl,origin:tg}),Le={...rg,...Jv};function ag(e,t){return Uc(e,new Le.classes.URLSearchParams,{visitor:function(a,r,n,s){return Le.isNode&&A.isBuffer(a)?(this.append(r,a.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...t})}function ng(e){return A.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function ig(e){const t={},a=Object.keys(e);let r;const n=a.length;let s;for(r=0;r<n;r++)s=a[r],t[s]=e[s];return t}function wd(e){function t(a,r,n,s){let i=a[s++];if(i==="__proto__")return!0;const o=Number.isFinite(+i),c=s>=a.length;return i=!i&&A.isArray(n)?n.length:i,c?(A.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r,!o):((!n[i]||!A.isObject(n[i]))&&(n[i]=[]),t(a,r,n[i],s)&&A.isArray(n[i])&&(n[i]=ig(n[i])),!o)}if(A.isFormData(e)&&A.isFunction(e.entries)){const a={};return A.forEachEntry(e,(r,n)=>{t(ng(r),n,a,0)}),a}return null}function sg(e,t,a){if(A.isString(e))try{return(t||JSON.parse)(e),A.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(a||JSON.stringify)(e)}const ca={transitional:Ql,adapter:["xhr","http","fetch"],transformRequest:[function(t,a){const r=a.getContentType()||"",n=r.indexOf("application/json")>-1,s=A.isObject(t);if(s&&A.isHTMLForm(t)&&(t=new FormData(t)),A.isFormData(t))return n?JSON.stringify(wd(t)):t;if(A.isArrayBuffer(t)||A.isBuffer(t)||A.isStream(t)||A.isFile(t)||A.isBlob(t)||A.isReadableStream(t))return t;if(A.isArrayBufferView(t))return t.buffer;if(A.isURLSearchParams(t))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let o;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return ag(t,this.formSerializer).toString();if((o=A.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Uc(o?{"files[]":t}:t,c&&new c,this.formSerializer)}}return s||n?(a.setContentType("application/json",!1),sg(t)):t}],transformResponse:[function(t){const a=this.transitional||ca.transitional,r=a&&a.forcedJSONParsing,n=this.responseType==="json";if(A.isResponse(t)||A.isReadableStream(t))return t;if(t&&A.isString(t)&&(r&&!this.responseType||n)){const i=!(a&&a.silentJSONParsing)&&n;try{return JSON.parse(t,this.parseReviver)}catch(o){if(i)throw o.name==="SyntaxError"?j.from(o,j.ERR_BAD_RESPONSE,this,null,this.response):o}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Le.classes.FormData,Blob:Le.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};A.forEach(["delete","get","head","post","put","patch"],e=>{ca.headers[e]={}});const og=A.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var cg=e=>{const t={};let a,r,n;return e&&e.split(`
13
- `).forEach(function(i){n=i.indexOf(":"),a=i.substring(0,n).trim().toLowerCase(),r=i.substring(n+1).trim(),!(!a||t[a]&&og[a])&&(a==="set-cookie"?t[a]?t[a].push(r):t[a]=[r]:t[a]=t[a]?t[a]+", "+r:r)}),t};const Ad=Symbol("internals");function la(e){return e&&String(e).trim().toLowerCase()}function Dc(e){return e===!1||e==null?e:A.isArray(e)?e.map(Dc):String(e)}function lg(e){const t=Object.create(null),a=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=a.exec(e);)t[r[1]]=r[2];return t}const ug=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Jl(e,t,a,r,n){if(A.isFunction(r))return r.call(this,t,a);if(n&&(t=a),!!A.isString(t)){if(A.isString(r))return t.indexOf(r)!==-1;if(A.isRegExp(r))return r.test(t)}}function pg(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,a,r)=>a.toUpperCase()+r)}function dg(e,t){const a=A.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+a,{value:function(n,s,i){return this[r].call(this,t,n,s,i)},configurable:!0})})}let ze=class{constructor(t){t&&this.set(t)}set(t,a,r){const n=this;function s(o,c,l){const u=la(c);if(!u)throw new Error("header name must be a non-empty string");const p=A.findKey(n,u);(!p||n[p]===void 0||l===!0||l===void 0&&n[p]!==!1)&&(n[p||c]=Dc(o))}const i=(o,c)=>A.forEach(o,(l,u)=>s(l,u,c));if(A.isPlainObject(t)||t instanceof this.constructor)i(t,a);else if(A.isString(t)&&(t=t.trim())&&!ug(t))i(cg(t),a);else if(A.isObject(t)&&A.isIterable(t)){let o={},c,l;for(const u of t){if(!A.isArray(u))throw TypeError("Object iterator must return a key-value pair");o[l=u[0]]=(c=o[l])?A.isArray(c)?[...c,u[1]]:[c,u[1]]:u[1]}i(o,a)}else t!=null&&s(a,t,r);return this}get(t,a){if(t=la(t),t){const r=A.findKey(this,t);if(r){const n=this[r];if(!a)return n;if(a===!0)return lg(n);if(A.isFunction(a))return a.call(this,n,r);if(A.isRegExp(a))return a.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,a){if(t=la(t),t){const r=A.findKey(this,t);return!!(r&&this[r]!==void 0&&(!a||Jl(this,this[r],r,a)))}return!1}delete(t,a){const r=this;let n=!1;function s(i){if(i=la(i),i){const o=A.findKey(r,i);o&&(!a||Jl(r,r[o],o,a))&&(delete r[o],n=!0)}}return A.isArray(t)?t.forEach(s):s(t),n}clear(t){const a=Object.keys(this);let r=a.length,n=!1;for(;r--;){const s=a[r];(!t||Jl(this,this[s],s,t,!0))&&(delete this[s],n=!0)}return n}normalize(t){const a=this,r={};return A.forEach(this,(n,s)=>{const i=A.findKey(r,s);if(i){a[i]=Dc(n),delete a[s];return}const o=t?pg(s):String(s).trim();o!==s&&delete a[s],a[o]=Dc(n),r[o]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const a=Object.create(null);return A.forEach(this,(r,n)=>{r!=null&&r!==!1&&(a[n]=t&&A.isArray(r)?r.join(", "):r)}),a}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,a])=>t+": "+a).join(`
14
- `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...a){const r=new this(t);return a.forEach(n=>r.set(n)),r}static accessor(t){const r=(this[Ad]=this[Ad]={accessors:{}}).accessors,n=this.prototype;function s(i){const o=la(i);r[o]||(dg(n,i),r[o]=!0)}return A.isArray(t)?t.forEach(s):s(t),this}};ze.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),A.reduceDescriptors(ze.prototype,({value:e},t)=>{let a=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[a]=r}}}),A.freezeMethods(ze);function Zl(e,t){const a=this||ca,r=t||a,n=ze.from(r.headers);let s=r.data;return A.forEach(e,function(o){s=o.call(a,s,n.normalize(),t?t.status:void 0)}),n.normalize(),s}function Id(e){return!!(e&&e.__CANCEL__)}function ar(e,t,a){j.call(this,e??"canceled",j.ERR_CANCELED,t,a),this.name="CanceledError"}A.inherits(ar,j,{__CANCEL__:!0});function Vr(e,t,a){const r=a.config.validateStatus;!a.status||!r||r(a.status)?e(a):t(new j("Request failed with status code "+a.status,[j.ERR_BAD_REQUEST,j.ERR_BAD_RESPONSE][Math.floor(a.status/100)-4],a.config,a.request,a))}function fg(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function mg(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function eu(e,t,a){let r=!fg(t);return e&&(r||a==!1)?mg(e,t):t}var Bd={},hg=Cc.parse,vg={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443},gg=String.prototype.endsWith||function(e){return e.length<=this.length&&this.indexOf(e,this.length-e.length)!==-1};function xg(e){var t=typeof e=="string"?hg(e):e||{},a=t.protocol,r=t.host,n=t.port;if(typeof r!="string"||!r||typeof a!="string"||(a=a.split(":",1)[0],r=r.replace(/:\d*$/,""),n=parseInt(n)||vg[a]||0,!yg(r,n)))return"";var s=qr("npm_config_"+a+"_proxy")||qr(a+"_proxy")||qr("npm_config_proxy")||qr("all_proxy");return s&&s.indexOf("://")===-1&&(s=a+"://"+s),s}function yg(e,t){var a=(qr("npm_config_no_proxy")||qr("no_proxy")).toLowerCase();return a?a==="*"?!1:a.split(/[,\s]/).every(function(r){if(!r)return!0;var n=r.match(/^(.+):(\d+)$/),s=n?n[1]:r,i=n?parseInt(n[2]):0;return i&&i!==t?!0:/^[.*]/.test(s)?(s.charAt(0)==="*"&&(s=s.slice(1)),!gg.call(e,s)):e!==s}):!0}function qr(e){return process.env[e.toLowerCase()]||process.env[e.toUpperCase()]||""}Bd.getProxyForUrl=xg;var tu={exports:{}},Pc={exports:{}},Oc={exports:{}},ru,_d;function bg(){if(_d)return ru;_d=1;var e=1e3,t=e*60,a=t*60,r=a*24,n=r*7,s=r*365.25;ru=function(u,p){p=p||{};var f=typeof u;if(f==="string"&&u.length>0)return i(u);if(f==="number"&&isFinite(u))return p.long?c(u):o(u);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(u))};function i(u){if(u=String(u),!(u.length>100)){var p=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(u);if(p){var f=parseFloat(p[1]),x=(p[2]||"ms").toLowerCase();switch(x){case"years":case"year":case"yrs":case"yr":case"y":return f*s;case"weeks":case"week":case"w":return f*n;case"days":case"day":case"d":return f*r;case"hours":case"hour":case"hrs":case"hr":case"h":return f*a;case"minutes":case"minute":case"mins":case"min":case"m":return f*t;case"seconds":case"second":case"secs":case"sec":case"s":return f*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return f;default:return}}}}function o(u){var p=Math.abs(u);return p>=r?Math.round(u/r)+"d":p>=a?Math.round(u/a)+"h":p>=t?Math.round(u/t)+"m":p>=e?Math.round(u/e)+"s":u+"ms"}function c(u){var p=Math.abs(u);return p>=r?l(u,p,r,"day"):p>=a?l(u,p,a,"hour"):p>=t?l(u,p,t,"minute"):p>=e?l(u,p,e,"second"):u+" ms"}function l(u,p,f,x){var m=p>=f*1.5;return Math.round(u/f)+" "+x+(m?"s":"")}return ru}var au,Rd;function kd(){if(Rd)return au;Rd=1;function e(t){r.debug=r,r.default=r,r.coerce=l,r.disable=o,r.enable=s,r.enabled=c,r.humanize=bg(),r.destroy=u,Object.keys(t).forEach(p=>{r[p]=t[p]}),r.names=[],r.skips=[],r.formatters={};function a(p){let f=0;for(let x=0;x<p.length;x++)f=(f<<5)-f+p.charCodeAt(x),f|=0;return r.colors[Math.abs(f)%r.colors.length]}r.selectColor=a;function r(p){let f,x=null,m,y;function b(...S){if(!b.enabled)return;const B=b,_=Number(new Date),D=_-(f||_);B.diff=D,B.prev=f,B.curr=_,f=_,S[0]=r.coerce(S[0]),typeof S[0]!="string"&&S.unshift("%O");let k=0;S[0]=S[0].replace(/%([a-zA-Z%])/g,(z,W)=>{if(z==="%%")return"%";k++;const J=r.formatters[W];if(typeof J=="function"){const te=S[k];z=J.call(B,te),S.splice(k,1),k--}return z}),r.formatArgs.call(B,S),(B.log||r.log).apply(B,S)}return b.namespace=p,b.useColors=r.useColors(),b.color=r.selectColor(p),b.extend=n,b.destroy=r.destroy,Object.defineProperty(b,"enabled",{enumerable:!0,configurable:!1,get:()=>x!==null?x:(m!==r.namespaces&&(m=r.namespaces,y=r.enabled(p)),y),set:S=>{x=S}}),typeof r.init=="function"&&r.init(b),b}function n(p,f){const x=r(this.namespace+(typeof f>"u"?":":f)+p);return x.log=this.log,x}function s(p){r.save(p),r.namespaces=p,r.names=[],r.skips=[];const f=(typeof p=="string"?p:"").trim().replace(" ",",").split(",").filter(Boolean);for(const x of f)x[0]==="-"?r.skips.push(x.slice(1)):r.names.push(x)}function i(p,f){let x=0,m=0,y=-1,b=0;for(;x<p.length;)if(m<f.length&&(f[m]===p[x]||f[m]==="*"))f[m]==="*"?(y=m,b=x,m++):(x++,m++);else if(y!==-1)m=y+1,b++,x=b;else return!1;for(;m<f.length&&f[m]==="*";)m++;return m===f.length}function o(){const p=[...r.names,...r.skips.map(f=>"-"+f)].join(",");return r.enable(""),p}function c(p){for(const f of r.skips)if(i(p,f))return!1;for(const f of r.names)if(i(p,f))return!0;return!1}function l(p){return p instanceof Error?p.stack||p.message:p}function u(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}return au=e,au}var Nd;function Eg(){return Nd||(Nd=1,function(e,t){t.formatArgs=r,t.save=n,t.load=s,t.useColors=a,t.storage=i(),t.destroy=(()=>{let c=!1;return()=>{c||(c=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function a(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let c;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(c=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(c[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function r(c){if(c[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+c[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const l="color: "+this.color;c.splice(1,0,l,"color: inherit");let u=0,p=0;c[0].replace(/%[a-zA-Z%]/g,f=>{f!=="%%"&&(u++,f==="%c"&&(p=u))}),c.splice(p,0,l)}t.log=console.debug||console.log||(()=>{});function n(c){try{c?t.storage.setItem("debug",c):t.storage.removeItem("debug")}catch{}}function s(){let c;try{c=t.storage.getItem("debug")}catch{}return!c&&typeof process<"u"&&"env"in process&&(c=process.env.DEBUG),c}function i(){try{return localStorage}catch{}}e.exports=kd()(t);const{formatters:o}=e.exports;o.j=function(c){try{return JSON.stringify(c)}catch(l){return"[UnexpectedJSONParseError]: "+l.message}}}(Oc,Oc.exports)),Oc.exports}var Fc={exports:{}},nu,Ld;function Cg(){return Ld||(Ld=1,nu=(e,t=process.argv)=>{const a=e.startsWith("-")?"":e.length===1?"-":"--",r=t.indexOf(a+e),n=t.indexOf("--");return r!==-1&&(n===-1||r<n)}),nu}var iu,Ud;function Sg(){if(Ud)return iu;Ud=1;const e=am,t=xp,a=Cg(),{env:r}=process;let n;a("no-color")||a("no-colors")||a("color=false")||a("color=never")?n=0:(a("color")||a("colors")||a("color=true")||a("color=always"))&&(n=1),"FORCE_COLOR"in r&&(r.FORCE_COLOR==="true"?n=1:r.FORCE_COLOR==="false"?n=0:n=r.FORCE_COLOR.length===0?1:Math.min(parseInt(r.FORCE_COLOR,10),3));function s(c){return c===0?!1:{level:c,hasBasic:!0,has256:c>=2,has16m:c>=3}}function i(c,l){if(n===0)return 0;if(a("color=16m")||a("color=full")||a("color=truecolor"))return 3;if(a("color=256"))return 2;if(c&&!l&&n===void 0)return 0;const u=n||0;if(r.TERM==="dumb")return u;if(process.platform==="win32"){const p=e.release().split(".");return Number(p[0])>=10&&Number(p[2])>=10586?Number(p[2])>=14931?3:2:1}if("CI"in r)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(p=>p in r)||r.CI_NAME==="codeship"?1:u;if("TEAMCITY_VERSION"in r)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(r.TEAMCITY_VERSION)?1:0;if(r.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in r){const p=parseInt((r.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(r.TERM_PROGRAM){case"iTerm.app":return p>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(r.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(r.TERM)||"COLORTERM"in r?1:u}function o(c){const l=i(c,c&&c.isTTY);return s(l)}return iu={supportsColor:o,stdout:s(i(!0,t.isatty(1))),stderr:s(i(!0,t.isatty(2)))},iu}var Dd;function Tg(){return Dd||(Dd=1,function(e,t){const a=xp,r=Nr;t.init=u,t.log=o,t.formatArgs=s,t.save=c,t.load=l,t.useColors=n,t.destroy=r.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),t.colors=[6,2,3,4,5,1];try{const f=Sg();f&&(f.stderr||f).level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}t.inspectOpts=Object.keys(process.env).filter(f=>/^debug_/i.test(f)).reduce((f,x)=>{const m=x.substring(6).toLowerCase().replace(/_([a-z])/g,(b,S)=>S.toUpperCase());let y=process.env[x];return/^(yes|on|true|enabled)$/i.test(y)?y=!0:/^(no|off|false|disabled)$/i.test(y)?y=!1:y==="null"?y=null:y=Number(y),f[m]=y,f},{});function n(){return"colors"in t.inspectOpts?!!t.inspectOpts.colors:a.isatty(process.stderr.fd)}function s(f){const{namespace:x,useColors:m}=this;if(m){const y=this.color,b="\x1B[3"+(y<8?y:"8;5;"+y),S=` ${b};1m${x} \x1B[0m`;f[0]=S+f[0].split(`
11
+ */(function(e){var t=rh,a=xp.extname,r=/^\s*([^;\s]*)(?:;|\s|$)/,n=/^text\//i;e.charset=s,e.charsets={lookup:s},e.contentType=i,e.extension=o,e.extensions=Object.create(null),e.lookup=c,e.types=Object.create(null),l(e.extensions,e.types);function s(u){if(!u||typeof u!="string")return!1;var p=r.exec(u),f=p&&t[p[1].toLowerCase()];return f&&f.charset?f.charset:p&&n.test(p[1])?"UTF-8":!1}function i(u){if(!u||typeof u!="string")return!1;var p=u.indexOf("/")===-1?e.lookup(u):u;if(!p)return!1;if(p.indexOf("charset")===-1){var f=e.charset(p);f&&(p+="; charset="+f.toLowerCase())}return p}function o(u){if(!u||typeof u!="string")return!1;var p=r.exec(u),f=p&&e.extensions[p[1].toLowerCase()];return!f||!f.length?!1:f[0]}function c(u){if(!u||typeof u!="string")return!1;var p=a("x."+u).toLowerCase().substr(1);return p&&e.types[p]||!1}function l(u,p){var f=["nginx","apache",void 0,"iana"];Object.keys(t).forEach(function(m){var y=t[m],b=y.extensions;if(!(!b||!b.length)){u[m]=b;for(var S=0;S<b.length;S++){var B=b[S];if(p[B]){var _=f.indexOf(t[p[B]].source),P=f.indexOf(y.source);if(p[B]!=="application/octet-stream"&&(_>P||_===P&&p[B].substr(0,12)==="application/"))continue}p[B]=m}}})}})(Pp);var ah=nh;function nh(e){var t=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;t?t(e):setTimeout(e,0)}var Op=ah,Fp=ih;function ih(e){var t=!1;return Op(function(){t=!0}),function(r,n){t?e(r,n):Op(function(){e(r,n)})}}var Mp=sh;function sh(e){Object.keys(e.jobs).forEach(oh.bind(e)),e.jobs={}}function oh(e){typeof this.jobs[e]=="function"&&this.jobs[e]()}var Vp=Fp,ch=Mp,qp=lh;function lh(e,t,a,r){var n=a.keyedList?a.keyedList[a.index]:a.index;a.jobs[n]=uh(t,n,e[n],function(s,i){n in a.jobs&&(delete a.jobs[n],s?ch(a):a.results[n]=i,r(s,a.results))})}function uh(e,t,a,r){var n;return e.length==2?n=e(a,Vp(r)):n=e(a,t,Vp(r)),n}var jp=ph;function ph(e,t){var a=!Array.isArray(e),r={index:0,keyedList:a||t?Object.keys(e):null,jobs:{},results:a?{}:[],size:a?Object.keys(e).length:e.length};return t&&r.keyedList.sort(a?t:function(n,s){return t(e[n],e[s])}),r}var dh=Mp,fh=Fp,Kp=mh;function mh(e){Object.keys(this.jobs).length&&(this.index=this.size,dh(this),fh(e)(null,this.results))}var hh=qp,vh=jp,gh=Kp,xh=yh;function yh(e,t,a){for(var r=vh(e);r.index<(r.keyedList||e).length;)hh(e,t,r,function(n,s){if(n){a(n,s);return}if(Object.keys(r.jobs).length===0){a(null,r.results);return}}),r.index++;return gh.bind(r,a)}var Ac={exports:{}},zp=qp,bh=jp,Eh=Kp;Ac.exports=Ch,Ac.exports.ascending=Hp,Ac.exports.descending=Sh;function Ch(e,t,a,r){var n=bh(e,a);return zp(e,t,n,function s(i,o){if(i){r(i,o);return}if(n.index++,n.index<(n.keyedList||e).length){zp(e,t,n,s);return}r(null,n.results)}),Eh.bind(n,r)}function Hp(e,t){return e<t?-1:e>t?1:0}function Sh(e,t){return-1*Hp(e,t)}var $p=Ac.exports,Th=$p,wh=Ah;function Ah(e,t,a){return Th(e,t,null,a)}var Ih={parallel:xh,serial:wh,serialOrdered:$p},Gp=Object,Bh=Error,_h=EvalError,Rh=RangeError,kh=ReferenceError,Nh=SyntaxError,wl,Qp;function Al(){return Qp||(Qp=1,wl=TypeError),wl}var Lh=URIError,Uh=Math.abs,Dh=Math.floor,Ph=Math.max,Oh=Math.min,Fh=Math.pow,Mh=Math.round,Vh=Number.isNaN||function(t){return t!==t},qh=Vh,jh=function(t){return qh(t)||t===0?t:t<0?-1:1},Kh=Object.getOwnPropertyDescriptor,Ic=Kh;if(Ic)try{Ic([],"length")}catch{Ic=null}var Wp=Ic,Bc=Object.defineProperty||!1;if(Bc)try{Bc({},"a",{value:1})}catch{Bc=!1}var zh=Bc,Il,Yp;function Xp(){return Yp||(Yp=1,Il=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},a=Symbol("test"),r=Object(a);if(typeof a=="string"||Object.prototype.toString.call(a)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var n=42;t[a]=n;for(var s in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var i=Object.getOwnPropertySymbols(t);if(i.length!==1||i[0]!==a||!Object.prototype.propertyIsEnumerable.call(t,a))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(t,a);if(o.value!==n||o.enumerable!==!0)return!1}return!0}),Il}var Bl,Jp;function Hh(){if(Jp)return Bl;Jp=1;var e=typeof Symbol<"u"&&Symbol,t=Xp();return Bl=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},Bl}var _l,Zp;function ed(){return Zp||(Zp=1,_l=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),_l}var Rl,td;function rd(){if(td)return Rl;td=1;var e=Gp;return Rl=e.getPrototypeOf||null,Rl}var $h="Function.prototype.bind called on incompatible ",Gh=Object.prototype.toString,Qh=Math.max,Wh="[object Function]",ad=function(t,a){for(var r=[],n=0;n<t.length;n+=1)r[n]=t[n];for(var s=0;s<a.length;s+=1)r[s+t.length]=a[s];return r},Yh=function(t,a){for(var r=[],n=a||0,s=0;n<t.length;n+=1,s+=1)r[s]=t[n];return r},Xh=function(e,t){for(var a="",r=0;r<e.length;r+=1)a+=e[r],r+1<e.length&&(a+=t);return a},Jh=function(t){var a=this;if(typeof a!="function"||Gh.apply(a)!==Wh)throw new TypeError($h+a);for(var r=Yh(arguments,1),n,s=function(){if(this instanceof n){var u=a.apply(this,ad(r,arguments));return Object(u)===u?u:this}return a.apply(t,ad(r,arguments))},i=Qh(0,a.length-r.length),o=[],c=0;c<i;c++)o[c]="$"+c;if(n=Function("binder","return function ("+Xh(o,",")+"){ return binder.apply(this,arguments); }")(s),a.prototype){var l=function(){};l.prototype=a.prototype,n.prototype=new l,l.prototype=null}return n},Zh=Jh,_c=Function.prototype.bind||Zh,kl,nd;function Nl(){return nd||(nd=1,kl=Function.prototype.call),kl}var Ll,id;function sd(){return id||(id=1,Ll=Function.prototype.apply),Ll}var Ul,od;function ev(){return od||(od=1,Ul=typeof Reflect<"u"&&Reflect&&Reflect.apply),Ul}var Dl,cd;function tv(){if(cd)return Dl;cd=1;var e=_c,t=sd(),a=Nl(),r=ev();return Dl=r||e.call(a,t),Dl}var Pl,ld;function rv(){if(ld)return Pl;ld=1;var e=_c,t=Al(),a=Nl(),r=tv();return Pl=function(s){if(s.length<1||typeof s[0]!="function")throw new t("a function is required");return r(e,a,s)},Pl}var Ol,ud;function av(){if(ud)return Ol;ud=1;var e=rv(),t=Wp,a;try{a=[].__proto__===Array.prototype}catch(i){if(!i||typeof i!="object"||!("code"in i)||i.code!=="ERR_PROTO_ACCESS")throw i}var r=!!a&&t&&t(Object.prototype,"__proto__"),n=Object,s=n.getPrototypeOf;return Ol=r&&typeof r.get=="function"?e([r.get]):typeof s=="function"?function(o){return s(o==null?o:n(o))}:!1,Ol}var Fl,pd;function nv(){if(pd)return Fl;pd=1;var e=ed(),t=rd(),a=av();return Fl=e?function(n){return e(n)}:t?function(n){if(!n||typeof n!="object"&&typeof n!="function")throw new TypeError("getProto: not an object");return t(n)}:a?function(n){return a(n)}:null,Fl}var iv=Function.prototype.call,sv=Object.prototype.hasOwnProperty,ov=_c,Ml=ov.call(iv,sv),ne,cv=Gp,lv=Bh,uv=_h,pv=Rh,dv=kh,Pr=Nh,Or=Al(),fv=Lh,mv=Uh,hv=Dh,vv=Ph,gv=Oh,xv=Fh,yv=Mh,bv=jh,dd=Function,Vl=function(e){try{return dd('"use strict"; return ('+e+").constructor;")()}catch{}},na=Wp,Ev=zh,ql=function(){throw new Or},Cv=na?(function(){try{return arguments.callee,ql}catch{try{return na(arguments,"callee").get}catch{return ql}}})():ql,Fr=Hh()(),Ve=nv(),Sv=rd(),Tv=ed(),fd=sd(),ia=Nl(),Mr={},wv=typeof Uint8Array>"u"||!Ve?ne:Ve(Uint8Array),gr={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?ne:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?ne:ArrayBuffer,"%ArrayIteratorPrototype%":Fr&&Ve?Ve([][Symbol.iterator]()):ne,"%AsyncFromSyncIteratorPrototype%":ne,"%AsyncFunction%":Mr,"%AsyncGenerator%":Mr,"%AsyncGeneratorFunction%":Mr,"%AsyncIteratorPrototype%":Mr,"%Atomics%":typeof Atomics>"u"?ne:Atomics,"%BigInt%":typeof BigInt>"u"?ne:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?ne:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?ne:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?ne:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":lv,"%eval%":eval,"%EvalError%":uv,"%Float16Array%":typeof Float16Array>"u"?ne:Float16Array,"%Float32Array%":typeof Float32Array>"u"?ne:Float32Array,"%Float64Array%":typeof Float64Array>"u"?ne:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?ne:FinalizationRegistry,"%Function%":dd,"%GeneratorFunction%":Mr,"%Int8Array%":typeof Int8Array>"u"?ne:Int8Array,"%Int16Array%":typeof Int16Array>"u"?ne:Int16Array,"%Int32Array%":typeof Int32Array>"u"?ne:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Fr&&Ve?Ve(Ve([][Symbol.iterator]())):ne,"%JSON%":typeof JSON=="object"?JSON:ne,"%Map%":typeof Map>"u"?ne:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Fr||!Ve?ne:Ve(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":cv,"%Object.getOwnPropertyDescriptor%":na,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?ne:Promise,"%Proxy%":typeof Proxy>"u"?ne:Proxy,"%RangeError%":pv,"%ReferenceError%":dv,"%Reflect%":typeof Reflect>"u"?ne:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?ne:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Fr||!Ve?ne:Ve(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?ne:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Fr&&Ve?Ve(""[Symbol.iterator]()):ne,"%Symbol%":Fr?Symbol:ne,"%SyntaxError%":Pr,"%ThrowTypeError%":Cv,"%TypedArray%":wv,"%TypeError%":Or,"%Uint8Array%":typeof Uint8Array>"u"?ne:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?ne:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?ne:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?ne:Uint32Array,"%URIError%":fv,"%WeakMap%":typeof WeakMap>"u"?ne:WeakMap,"%WeakRef%":typeof WeakRef>"u"?ne:WeakRef,"%WeakSet%":typeof WeakSet>"u"?ne:WeakSet,"%Function.prototype.call%":ia,"%Function.prototype.apply%":fd,"%Object.defineProperty%":Ev,"%Object.getPrototypeOf%":Sv,"%Math.abs%":mv,"%Math.floor%":hv,"%Math.max%":vv,"%Math.min%":gv,"%Math.pow%":xv,"%Math.round%":yv,"%Math.sign%":bv,"%Reflect.getPrototypeOf%":Tv};if(Ve)try{null.error}catch(e){var Av=Ve(Ve(e));gr["%Error.prototype%"]=Av}var Iv=function e(t){var a;if(t==="%AsyncFunction%")a=Vl("async function () {}");else if(t==="%GeneratorFunction%")a=Vl("function* () {}");else if(t==="%AsyncGeneratorFunction%")a=Vl("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(a=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var n=e("%AsyncGenerator%");n&&Ve&&(a=Ve(n.prototype))}return gr[t]=a,a},md={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},sa=_c,Rc=Ml,Bv=sa.call(ia,Array.prototype.concat),_v=sa.call(fd,Array.prototype.splice),hd=sa.call(ia,String.prototype.replace),kc=sa.call(ia,String.prototype.slice),Rv=sa.call(ia,RegExp.prototype.exec),kv=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Nv=/\\(\\)?/g,Lv=function(t){var a=kc(t,0,1),r=kc(t,-1);if(a==="%"&&r!=="%")throw new Pr("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&a!=="%")throw new Pr("invalid intrinsic syntax, expected opening `%`");var n=[];return hd(t,kv,function(s,i,o,c){n[n.length]=o?hd(c,Nv,"$1"):i||s}),n},Uv=function(t,a){var r=t,n;if(Rc(md,r)&&(n=md[r],r="%"+n[0]+"%"),Rc(gr,r)){var s=gr[r];if(s===Mr&&(s=Iv(r)),typeof s>"u"&&!a)throw new Or("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:s}}throw new Pr("intrinsic "+t+" does not exist!")},Dv=function(t,a){if(typeof t!="string"||t.length===0)throw new Or("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof a!="boolean")throw new Or('"allowMissing" argument must be a boolean');if(Rv(/^%?[^%]*%?$/,t)===null)throw new Pr("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=Lv(t),n=r.length>0?r[0]:"",s=Uv("%"+n+"%",a),i=s.name,o=s.value,c=!1,l=s.alias;l&&(n=l[0],_v(r,Bv([0,1],l)));for(var u=1,p=!0;u<r.length;u+=1){var f=r[u],x=kc(f,0,1),m=kc(f,-1);if((x==='"'||x==="'"||x==="`"||m==='"'||m==="'"||m==="`")&&x!==m)throw new Pr("property names with quotes must have matching quotes");if((f==="constructor"||!p)&&(c=!0),n+="."+f,i="%"+n+"%",Rc(gr,i))o=gr[i];else if(o!=null){if(!(f in o)){if(!a)throw new Or("base intrinsic for "+t+" exists, but the property is not available.");return}if(na&&u+1>=r.length){var y=na(o,f);p=!!y,p&&"get"in y&&!("originalValue"in y.get)?o=y.get:o=o[f]}else p=Rc(o,f),o=o[f];p&&!c&&(gr[i]=o)}}return o},jl,vd;function Pv(){if(vd)return jl;vd=1;var e=Xp();return jl=function(){return e()&&!!Symbol.toStringTag},jl}var Ov=Dv,gd=Ov("%Object.defineProperty%",!0),Fv=Pv()(),Mv=Ml,Vv=Al(),Nc=Fv?Symbol.toStringTag:null,qv=function(t,a){var r=arguments.length>2&&!!arguments[2]&&arguments[2].force,n=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(typeof r<"u"&&typeof r!="boolean"||typeof n<"u"&&typeof n!="boolean")throw new Vv("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");Nc&&(r||!Mv(t,Nc))&&(gd?gd(t,Nc,{configurable:!n,enumerable:!1,value:a,writable:!1}):t[Nc]=a)},jv=function(e,t){return Object.keys(t).forEach(function(a){e[a]=e[a]||t[a]}),e},Kl=eh,Kv=hr,zl=xp,zv=bl,Hv=El,$v=Cl.parse,Gv=nm,Qv=tt.Stream,Wv=Lr,Hl=Pp,Yv=Ih,Xv=qv,rr=Ml,$l=jv;function de(e){if(!(this instanceof de))return new de(e);this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],Kl.call(this),e=e||{};for(var t in e)this[t]=e[t]}Kv.inherits(de,Kl),de.LINE_BREAK=`\r
12
+ `,de.DEFAULT_CONTENT_TYPE="application/octet-stream",de.prototype.append=function(e,t,a){a=a||{},typeof a=="string"&&(a={filename:a});var r=Kl.prototype.append.bind(this);if((typeof t=="number"||t==null)&&(t=String(t)),Array.isArray(t)){this._error(new Error("Arrays are not supported."));return}var n=this._multiPartHeader(e,t,a),s=this._multiPartFooter();r(n),r(t),r(s),this._trackLength(n,t,a)},de.prototype._trackLength=function(e,t,a){var r=0;a.knownLength!=null?r+=Number(a.knownLength):Buffer.isBuffer(t)?r=t.length:typeof t=="string"&&(r=Buffer.byteLength(t)),this._valueLength+=r,this._overheadLength+=Buffer.byteLength(e)+de.LINE_BREAK.length,!(!t||!t.path&&!(t.readable&&rr(t,"httpVersion"))&&!(t instanceof Qv))&&(a.knownLength||this._valuesToMeasure.push(t))},de.prototype._lengthRetriever=function(e,t){rr(e,"fd")?e.end!=null&&e.end!=1/0&&e.start!=null?t(null,e.end+1-(e.start?e.start:0)):Gv.stat(e.path,function(a,r){if(a){t(a);return}var n=r.size-(e.start?e.start:0);t(null,n)}):rr(e,"httpVersion")?t(null,Number(e.headers["content-length"])):rr(e,"httpModule")?(e.on("response",function(a){e.pause(),t(null,Number(a.headers["content-length"]))}),e.resume()):t("Unknown stream")},de.prototype._multiPartHeader=function(e,t,a){if(typeof a.header=="string")return a.header;var r=this._getContentDisposition(t,a),n=this._getContentType(t,a),s="",i={"Content-Disposition":["form-data",'name="'+e+'"'].concat(r||[]),"Content-Type":[].concat(n||[])};typeof a.header=="object"&&$l(i,a.header);var o;for(var c in i)if(rr(i,c)){if(o=i[c],o==null)continue;Array.isArray(o)||(o=[o]),o.length&&(s+=c+": "+o.join("; ")+de.LINE_BREAK)}return"--"+this.getBoundary()+de.LINE_BREAK+s+de.LINE_BREAK},de.prototype._getContentDisposition=function(e,t){var a;if(typeof t.filepath=="string"?a=zl.normalize(t.filepath).replace(/\\/g,"/"):t.filename||e&&(e.name||e.path)?a=zl.basename(t.filename||e&&(e.name||e.path)):e&&e.readable&&rr(e,"httpVersion")&&(a=zl.basename(e.client._httpMessage.path||"")),a)return'filename="'+a+'"'},de.prototype._getContentType=function(e,t){var a=t.contentType;return!a&&e&&e.name&&(a=Hl.lookup(e.name)),!a&&e&&e.path&&(a=Hl.lookup(e.path)),!a&&e&&e.readable&&rr(e,"httpVersion")&&(a=e.headers["content-type"]),!a&&(t.filepath||t.filename)&&(a=Hl.lookup(t.filepath||t.filename)),!a&&e&&typeof e=="object"&&(a=de.DEFAULT_CONTENT_TYPE),a},de.prototype._multiPartFooter=function(){return function(e){var t=de.LINE_BREAK,a=this._streams.length===0;a&&(t+=this._lastBoundary()),e(t)}.bind(this)},de.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+de.LINE_BREAK},de.prototype.getHeaders=function(e){var t,a={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(t in e)rr(e,t)&&(a[t.toLowerCase()]=e[t]);return a},de.prototype.setBoundary=function(e){if(typeof e!="string")throw new TypeError("FormData boundary must be a string");this._boundary=e},de.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary},de.prototype.getBuffer=function(){for(var e=new Buffer.alloc(0),t=this.getBoundary(),a=0,r=this._streams.length;a<r;a++)typeof this._streams[a]!="function"&&(Buffer.isBuffer(this._streams[a])?e=Buffer.concat([e,this._streams[a]]):e=Buffer.concat([e,Buffer.from(this._streams[a])]),(typeof this._streams[a]!="string"||this._streams[a].substring(2,t.length+2)!==t)&&(e=Buffer.concat([e,Buffer.from(de.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])},de.prototype._generateBoundary=function(){this._boundary="--------------------------"+Wv.randomBytes(12).toString("hex")},de.prototype.getLengthSync=function(){var e=this._overheadLength+this._valueLength;return this._streams.length&&(e+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),e},de.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e},de.prototype.getLength=function(e){var t=this._overheadLength+this._valueLength;if(this._streams.length&&(t+=this._lastBoundary().length),!this._valuesToMeasure.length){process.nextTick(e.bind(this,null,t));return}Yv.parallel(this._valuesToMeasure,this._lengthRetriever,function(a,r){if(a){e(a);return}r.forEach(function(n){t+=n}),e(null,t)})},de.prototype.submit=function(e,t){var a,r,n={method:"post"};return typeof e=="string"?(e=$v(e),r=$l({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},n)):(r=$l(e,n),r.port||(r.port=r.protocol==="https:"?443:80)),r.headers=this.getHeaders(e.headers),r.protocol==="https:"?a=Hv.request(r):a=zv.request(r),this.getLength(function(s,i){if(s&&s!=="Unknown stream"){this._error(s);return}if(i&&a.setHeader("Content-Length",i),this.pipe(a),t){var o,c=function(l,u){return a.removeListener("error",c),a.removeListener("response",o),t.call(this,l,u)};o=c.bind(this,null),a.on("error",c),a.on("response",o)}}.bind(this)),a},de.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit("error",e))},de.prototype.toString=function(){return"[object FormData]"},Xv(de.prototype,"FormData");var Jv=de,xd=Np(Jv);function Gl(e){return A.isPlainObject(e)||A.isArray(e)}function yd(e){return A.endsWith(e,"[]")?e.slice(0,-2):e}function Ql(e,t,a){return e?e.concat(t).map(function(n,s){return n=yd(n),!a&&s?"["+n+"]":n}).join(a?".":""):t}function Zv(e){return A.isArray(e)&&!e.some(Gl)}const eg=A.toFlatObject(A,{},null,function(t){return/^is[A-Z]/.test(t)});function Lc(e,t,a){if(!A.isObject(e))throw new TypeError("target must be an object");t=t||new(xd||FormData),a=A.toFlatObject(a,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,b){return!A.isUndefined(b[y])});const r=a.metaTokens,n=a.visitor||u,s=a.dots,i=a.indexes,c=(a.Blob||typeof Blob<"u"&&Blob)&&A.isSpecCompliantForm(t);if(!A.isFunction(n))throw new TypeError("visitor must be a function");function l(m){if(m===null)return"";if(A.isDate(m))return m.toISOString();if(A.isBoolean(m))return m.toString();if(!c&&A.isBlob(m))throw new F("Blob is not supported. Use a Buffer instead.");return A.isArrayBuffer(m)||A.isTypedArray(m)?c&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function u(m,y,b){let S=m;if(A.isReactNative(t)&&A.isReactNativeBlob(m))return t.append(Ql(b,y,s),l(m)),!1;if(m&&!b&&typeof m=="object"){if(A.endsWith(y,"{}"))y=r?y:y.slice(0,-2),m=JSON.stringify(m);else if(A.isArray(m)&&Zv(m)||(A.isFileList(m)||A.endsWith(y,"[]"))&&(S=A.toArray(m)))return y=yd(y),S.forEach(function(_,P){!(A.isUndefined(_)||_===null)&&t.append(i===!0?Ql([y],P,s):i===null?y:y+"[]",l(_))}),!1}return Gl(m)?!0:(t.append(Ql(b,y,s),l(m)),!1)}const p=[],f=Object.assign(eg,{defaultVisitor:u,convertValue:l,isVisitable:Gl});function x(m,y){if(!A.isUndefined(m)){if(p.indexOf(m)!==-1)throw Error("Circular reference detected in "+y.join("."));p.push(m),A.forEach(m,function(S,B){(!(A.isUndefined(S)||S===null)&&n.call(t,S,A.isString(B)?B.trim():B,y,f))===!0&&x(S,y?y.concat(B):[B])}),p.pop()}}if(!A.isObject(e))throw new TypeError("data must be an object");return x(e),t}function bd(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Ed(e,t){this._pairs=[],e&&Lc(e,this,t)}const Cd=Ed.prototype;Cd.append=function(t,a){this._pairs.push([t,a])},Cd.toString=function(t){const a=t?function(r){return t.call(this,r,bd)}:bd;return this._pairs.map(function(n){return a(n[0])+"="+a(n[1])},"").join("&")};function tg(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Wl(e,t,a){if(!t)return e;const r=a&&a.encode||tg,n=A.isFunction(a)?{serialize:a}:a,s=n&&n.serialize;let i;if(s?i=s(t,n):i=A.isURLSearchParams(t)?t.toString():new Ed(t,n).toString(r),i){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Sd{constructor(){this.handlers=[]}use(t,a,r){return this.handlers.push({fulfilled:t,rejected:a,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){A.forEach(this.handlers,function(r){r!==null&&t(r)})}}var Uc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},rg=Cl.URLSearchParams;const Yl="abcdefghijklmnopqrstuvwxyz",Td="0123456789",wd={DIGIT:Td,ALPHA:Yl,ALPHA_DIGIT:Yl+Yl.toUpperCase()+Td},ag=(e=16,t=wd.ALPHA_DIGIT)=>{let a="";const{length:r}=t,n=new Uint32Array(e);Lr.randomFillSync(n);for(let s=0;s<e;s++)a+=t[n[s]%r];return a};var ng={isNode:!0,classes:{URLSearchParams:rg,FormData:xd,Blob:typeof Blob<"u"&&Blob||null},ALPHABET:wd,generateString:ag,protocols:["http","https","file","data"]};const Xl=typeof window<"u"&&typeof document<"u",Jl=typeof navigator=="object"&&navigator||void 0,ig=Xl&&(!Jl||["ReactNative","NativeScript","NS"].indexOf(Jl.product)<0),sg=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",og=Xl&&window.location.href||"http://localhost";var cg=Object.freeze({__proto__:null,hasBrowserEnv:Xl,hasStandardBrowserEnv:ig,hasStandardBrowserWebWorkerEnv:sg,navigator:Jl,origin:og}),Ue={...cg,...ng};function lg(e,t){return Lc(e,new Ue.classes.URLSearchParams,{visitor:function(a,r,n,s){return Ue.isNode&&A.isBuffer(a)?(this.append(r,a.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...t})}function ug(e){return A.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function pg(e){const t={},a=Object.keys(e);let r;const n=a.length;let s;for(r=0;r<n;r++)s=a[r],t[s]=e[s];return t}function Ad(e){function t(a,r,n,s){let i=a[s++];if(i==="__proto__")return!0;const o=Number.isFinite(+i),c=s>=a.length;return i=!i&&A.isArray(n)?n.length:i,c?(A.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r,!o):((!n[i]||!A.isObject(n[i]))&&(n[i]=[]),t(a,r,n[i],s)&&A.isArray(n[i])&&(n[i]=pg(n[i])),!o)}if(A.isFormData(e)&&A.isFunction(e.entries)){const a={};return A.forEachEntry(e,(r,n)=>{t(ug(r),n,a,0)}),a}return null}function dg(e,t,a){if(A.isString(e))try{return(t||JSON.parse)(e),A.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(a||JSON.stringify)(e)}const oa={transitional:Uc,adapter:["xhr","http","fetch"],transformRequest:[function(t,a){const r=a.getContentType()||"",n=r.indexOf("application/json")>-1,s=A.isObject(t);if(s&&A.isHTMLForm(t)&&(t=new FormData(t)),A.isFormData(t))return n?JSON.stringify(Ad(t)):t;if(A.isArrayBuffer(t)||A.isBuffer(t)||A.isStream(t)||A.isFile(t)||A.isBlob(t)||A.isReadableStream(t))return t;if(A.isArrayBufferView(t))return t.buffer;if(A.isURLSearchParams(t))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let o;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return lg(t,this.formSerializer).toString();if((o=A.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Lc(o?{"files[]":t}:t,c&&new c,this.formSerializer)}}return s||n?(a.setContentType("application/json",!1),dg(t)):t}],transformResponse:[function(t){const a=this.transitional||oa.transitional,r=a&&a.forcedJSONParsing,n=this.responseType==="json";if(A.isResponse(t)||A.isReadableStream(t))return t;if(t&&A.isString(t)&&(r&&!this.responseType||n)){const i=!(a&&a.silentJSONParsing)&&n;try{return JSON.parse(t,this.parseReviver)}catch(o){if(i)throw o.name==="SyntaxError"?F.from(o,F.ERR_BAD_RESPONSE,this,null,this.response):o}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ue.classes.FormData,Blob:Ue.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};A.forEach(["delete","get","head","post","put","patch"],e=>{oa.headers[e]={}});const fg=A.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var mg=e=>{const t={};let a,r,n;return e&&e.split(`
13
+ `).forEach(function(i){n=i.indexOf(":"),a=i.substring(0,n).trim().toLowerCase(),r=i.substring(n+1).trim(),!(!a||t[a]&&fg[a])&&(a==="set-cookie"?t[a]?t[a].push(r):t[a]=[r]:t[a]=t[a]?t[a]+", "+r:r)}),t};const Id=Symbol("internals"),hg=e=>!/[\r\n]/.test(e);function Bd(e,t){if(!(e===!1||e==null)){if(A.isArray(e)){e.forEach(a=>Bd(a,t));return}if(!hg(String(e)))throw new Error(`Invalid character in header content ["${t}"]`)}}function ca(e){return e&&String(e).trim().toLowerCase()}function vg(e){let t=e.length;for(;t>0;){const a=e.charCodeAt(t-1);if(a!==10&&a!==13)break;t-=1}return t===e.length?e:e.slice(0,t)}function Dc(e){return e===!1||e==null?e:A.isArray(e)?e.map(Dc):vg(String(e))}function gg(e){const t=Object.create(null),a=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=a.exec(e);)t[r[1]]=r[2];return t}const xg=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Zl(e,t,a,r,n){if(A.isFunction(r))return r.call(this,t,a);if(n&&(t=a),!!A.isString(t)){if(A.isString(r))return t.indexOf(r)!==-1;if(A.isRegExp(r))return r.test(t)}}function yg(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,a,r)=>a.toUpperCase()+r)}function bg(e,t){const a=A.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+a,{value:function(n,s,i){return this[r].call(this,t,n,s,i)},configurable:!0})})}let He=class{constructor(t){t&&this.set(t)}set(t,a,r){const n=this;function s(o,c,l){const u=ca(c);if(!u)throw new Error("header name must be a non-empty string");const p=A.findKey(n,u);(!p||n[p]===void 0||l===!0||l===void 0&&n[p]!==!1)&&(Bd(o,c),n[p||c]=Dc(o))}const i=(o,c)=>A.forEach(o,(l,u)=>s(l,u,c));if(A.isPlainObject(t)||t instanceof this.constructor)i(t,a);else if(A.isString(t)&&(t=t.trim())&&!xg(t))i(mg(t),a);else if(A.isObject(t)&&A.isIterable(t)){let o={},c,l;for(const u of t){if(!A.isArray(u))throw TypeError("Object iterator must return a key-value pair");o[l=u[0]]=(c=o[l])?A.isArray(c)?[...c,u[1]]:[c,u[1]]:u[1]}i(o,a)}else t!=null&&s(a,t,r);return this}get(t,a){if(t=ca(t),t){const r=A.findKey(this,t);if(r){const n=this[r];if(!a)return n;if(a===!0)return gg(n);if(A.isFunction(a))return a.call(this,n,r);if(A.isRegExp(a))return a.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,a){if(t=ca(t),t){const r=A.findKey(this,t);return!!(r&&this[r]!==void 0&&(!a||Zl(this,this[r],r,a)))}return!1}delete(t,a){const r=this;let n=!1;function s(i){if(i=ca(i),i){const o=A.findKey(r,i);o&&(!a||Zl(r,r[o],o,a))&&(delete r[o],n=!0)}}return A.isArray(t)?t.forEach(s):s(t),n}clear(t){const a=Object.keys(this);let r=a.length,n=!1;for(;r--;){const s=a[r];(!t||Zl(this,this[s],s,t,!0))&&(delete this[s],n=!0)}return n}normalize(t){const a=this,r={};return A.forEach(this,(n,s)=>{const i=A.findKey(r,s);if(i){a[i]=Dc(n),delete a[s];return}const o=t?yg(s):String(s).trim();o!==s&&delete a[s],a[o]=Dc(n),r[o]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const a=Object.create(null);return A.forEach(this,(r,n)=>{r!=null&&r!==!1&&(a[n]=t&&A.isArray(r)?r.join(", "):r)}),a}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,a])=>t+": "+a).join(`
14
+ `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...a){const r=new this(t);return a.forEach(n=>r.set(n)),r}static accessor(t){const r=(this[Id]=this[Id]={accessors:{}}).accessors,n=this.prototype;function s(i){const o=ca(i);r[o]||(bg(n,i),r[o]=!0)}return A.isArray(t)?t.forEach(s):s(t),this}};He.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),A.reduceDescriptors(He.prototype,({value:e},t)=>{let a=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[a]=r}}}),A.freezeMethods(He);function eu(e,t){const a=this||oa,r=t||a,n=He.from(r.headers);let s=r.data;return A.forEach(e,function(o){s=o.call(a,s,n.normalize(),t?t.status:void 0)}),n.normalize(),s}function _d(e){return!!(e&&e.__CANCEL__)}let xr=class extends F{constructor(t,a,r){super(t??"canceled",F.ERR_CANCELED,a,r),this.name="CanceledError",this.__CANCEL__=!0}};function Vr(e,t,a){const r=a.config.validateStatus;!a.status||!r||r(a.status)?e(a):t(new F("Request failed with status code "+a.status,[F.ERR_BAD_REQUEST,F.ERR_BAD_RESPONSE][Math.floor(a.status/100)-4],a.config,a.request,a))}function Eg(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Cg(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function tu(e,t,a){let r=!Eg(t);return e&&(r||a==!1)?Cg(e,t):t}var Sg={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443};function Tg(e){try{return new URL(e)}catch{return null}}function wg(e){var t=(typeof e=="string"?Tg(e):e)||{},a=t.protocol,r=t.host,n=t.port;if(typeof r!="string"||!r||typeof a!="string"||(a=a.split(":",1)[0],r=r.replace(/:\d*$/,""),n=parseInt(n)||Sg[a]||0,!Ag(r,n)))return"";var s=ru(a+"_proxy")||ru("all_proxy");return s&&s.indexOf("://")===-1&&(s=a+"://"+s),s}function Ag(e,t){var a=ru("no_proxy").toLowerCase();return a?a==="*"?!1:a.split(/[,\s]/).every(function(r){if(!r)return!0;var n=r.match(/^(.+):(\d+)$/),s=n?n[1]:r,i=n?parseInt(n[2]):0;return i&&i!==t?!0:/^[.*]/.test(s)?(s.charAt(0)==="*"&&(s=s.slice(1)),!e.endsWith(s)):e!==s}):!0}function ru(e){return process.env[e.toLowerCase()]||process.env[e.toUpperCase()]||""}var au={exports:{}},Pc={exports:{}},Oc={exports:{}},nu,Rd;function Ig(){if(Rd)return nu;Rd=1;var e=1e3,t=e*60,a=t*60,r=a*24,n=r*7,s=r*365.25;nu=function(u,p){p=p||{};var f=typeof u;if(f==="string"&&u.length>0)return i(u);if(f==="number"&&isFinite(u))return p.long?c(u):o(u);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(u))};function i(u){if(u=String(u),!(u.length>100)){var p=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(u);if(p){var f=parseFloat(p[1]),x=(p[2]||"ms").toLowerCase();switch(x){case"years":case"year":case"yrs":case"yr":case"y":return f*s;case"weeks":case"week":case"w":return f*n;case"days":case"day":case"d":return f*r;case"hours":case"hour":case"hrs":case"hr":case"h":return f*a;case"minutes":case"minute":case"mins":case"min":case"m":return f*t;case"seconds":case"second":case"secs":case"sec":case"s":return f*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return f;default:return}}}}function o(u){var p=Math.abs(u);return p>=r?Math.round(u/r)+"d":p>=a?Math.round(u/a)+"h":p>=t?Math.round(u/t)+"m":p>=e?Math.round(u/e)+"s":u+"ms"}function c(u){var p=Math.abs(u);return p>=r?l(u,p,r,"day"):p>=a?l(u,p,a,"hour"):p>=t?l(u,p,t,"minute"):p>=e?l(u,p,e,"second"):u+" ms"}function l(u,p,f,x){var m=p>=f*1.5;return Math.round(u/f)+" "+x+(m?"s":"")}return nu}var iu,kd;function Nd(){if(kd)return iu;kd=1;function e(t){r.debug=r,r.default=r,r.coerce=l,r.disable=o,r.enable=s,r.enabled=c,r.humanize=Ig(),r.destroy=u,Object.keys(t).forEach(p=>{r[p]=t[p]}),r.names=[],r.skips=[],r.formatters={};function a(p){let f=0;for(let x=0;x<p.length;x++)f=(f<<5)-f+p.charCodeAt(x),f|=0;return r.colors[Math.abs(f)%r.colors.length]}r.selectColor=a;function r(p){let f,x=null,m,y;function b(...S){if(!b.enabled)return;const B=b,_=Number(new Date),P=_-(f||_);B.diff=P,B.prev=f,B.curr=_,f=_,S[0]=r.coerce(S[0]),typeof S[0]!="string"&&S.unshift("%O");let U=0;S[0]=S[0].replace(/%([a-zA-Z%])/g,(H,G)=>{if(H==="%%")return"%";U++;const Z=r.formatters[G];if(typeof Z=="function"){const ce=S[U];H=Z.call(B,ce),S.splice(U,1),U--}return H}),r.formatArgs.call(B,S),(B.log||r.log).apply(B,S)}return b.namespace=p,b.useColors=r.useColors(),b.color=r.selectColor(p),b.extend=n,b.destroy=r.destroy,Object.defineProperty(b,"enabled",{enumerable:!0,configurable:!1,get:()=>x!==null?x:(m!==r.namespaces&&(m=r.namespaces,y=r.enabled(p)),y),set:S=>{x=S}}),typeof r.init=="function"&&r.init(b),b}function n(p,f){const x=r(this.namespace+(typeof f>"u"?":":f)+p);return x.log=this.log,x}function s(p){r.save(p),r.namespaces=p,r.names=[],r.skips=[];const f=(typeof p=="string"?p:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const x of f)x[0]==="-"?r.skips.push(x.slice(1)):r.names.push(x)}function i(p,f){let x=0,m=0,y=-1,b=0;for(;x<p.length;)if(m<f.length&&(f[m]===p[x]||f[m]==="*"))f[m]==="*"?(y=m,b=x,m++):(x++,m++);else if(y!==-1)m=y+1,b++,x=b;else return!1;for(;m<f.length&&f[m]==="*";)m++;return m===f.length}function o(){const p=[...r.names,...r.skips.map(f=>"-"+f)].join(",");return r.enable(""),p}function c(p){for(const f of r.skips)if(i(p,f))return!1;for(const f of r.names)if(i(p,f))return!0;return!1}function l(p){return p instanceof Error?p.stack||p.message:p}function u(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}return iu=e,iu}var Ld;function Bg(){return Ld||(Ld=1,(function(e,t){t.formatArgs=r,t.save=n,t.load=s,t.useColors=a,t.storage=i(),t.destroy=(()=>{let c=!1;return()=>{c||(c=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function a(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let c;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(c=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(c[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function r(c){if(c[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+c[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const l="color: "+this.color;c.splice(1,0,l,"color: inherit");let u=0,p=0;c[0].replace(/%[a-zA-Z%]/g,f=>{f!=="%%"&&(u++,f==="%c"&&(p=u))}),c.splice(p,0,l)}t.log=console.debug||console.log||(()=>{});function n(c){try{c?t.storage.setItem("debug",c):t.storage.removeItem("debug")}catch{}}function s(){let c;try{c=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch{}return!c&&typeof process<"u"&&"env"in process&&(c=process.env.DEBUG),c}function i(){try{return localStorage}catch{}}e.exports=Nd()(t);const{formatters:o}=e.exports;o.j=function(c){try{return JSON.stringify(c)}catch(l){return"[UnexpectedJSONParseError]: "+l.message}}})(Oc,Oc.exports)),Oc.exports}var Fc={exports:{}},su,Ud;function _g(){return Ud||(Ud=1,su=(e,t=process.argv)=>{const a=e.startsWith("-")?"":e.length===1?"-":"--",r=t.indexOf(a+e),n=t.indexOf("--");return r!==-1&&(n===-1||r<n)}),su}var ou,Dd;function Rg(){if(Dd)return ou;Dd=1;const e=sm,t=bp,a=_g(),{env:r}=process;let n;a("no-color")||a("no-colors")||a("color=false")||a("color=never")?n=0:(a("color")||a("colors")||a("color=true")||a("color=always"))&&(n=1),"FORCE_COLOR"in r&&(r.FORCE_COLOR==="true"?n=1:r.FORCE_COLOR==="false"?n=0:n=r.FORCE_COLOR.length===0?1:Math.min(parseInt(r.FORCE_COLOR,10),3));function s(c){return c===0?!1:{level:c,hasBasic:!0,has256:c>=2,has16m:c>=3}}function i(c,l){if(n===0)return 0;if(a("color=16m")||a("color=full")||a("color=truecolor"))return 3;if(a("color=256"))return 2;if(c&&!l&&n===void 0)return 0;const u=n||0;if(r.TERM==="dumb")return u;if(process.platform==="win32"){const p=e.release().split(".");return Number(p[0])>=10&&Number(p[2])>=10586?Number(p[2])>=14931?3:2:1}if("CI"in r)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(p=>p in r)||r.CI_NAME==="codeship"?1:u;if("TEAMCITY_VERSION"in r)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(r.TEAMCITY_VERSION)?1:0;if(r.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in r){const p=parseInt((r.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(r.TERM_PROGRAM){case"iTerm.app":return p>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(r.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(r.TERM)||"COLORTERM"in r?1:u}function o(c){const l=i(c,c&&c.isTTY);return s(l)}return ou={supportsColor:o,stdout:s(i(!0,t.isatty(1))),stderr:s(i(!0,t.isatty(2)))},ou}var Pd;function kg(){return Pd||(Pd=1,(function(e,t){const a=bp,r=hr;t.init=u,t.log=o,t.formatArgs=s,t.save=c,t.load=l,t.useColors=n,t.destroy=r.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),t.colors=[6,2,3,4,5,1];try{const f=Rg();f&&(f.stderr||f).level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}t.inspectOpts=Object.keys(process.env).filter(f=>/^debug_/i.test(f)).reduce((f,x)=>{const m=x.substring(6).toLowerCase().replace(/_([a-z])/g,(b,S)=>S.toUpperCase());let y=process.env[x];return/^(yes|on|true|enabled)$/i.test(y)?y=!0:/^(no|off|false|disabled)$/i.test(y)?y=!1:y==="null"?y=null:y=Number(y),f[m]=y,f},{});function n(){return"colors"in t.inspectOpts?!!t.inspectOpts.colors:a.isatty(process.stderr.fd)}function s(f){const{namespace:x,useColors:m}=this;if(m){const y=this.color,b="\x1B[3"+(y<8?y:"8;5;"+y),S=` ${b};1m${x} \x1B[0m`;f[0]=S+f[0].split(`
15
15
  `).join(`
16
16
  `+S),f.push(b+"m+"+e.exports.humanize(this.diff)+"\x1B[0m")}else f[0]=i()+x+" "+f[0]}function i(){return t.inspectOpts.hideDate?"":new Date().toISOString()+" "}function o(...f){return process.stderr.write(r.formatWithOptions(t.inspectOpts,...f)+`
17
- `)}function c(f){f?process.env.DEBUG=f:delete process.env.DEBUG}function l(){return process.env.DEBUG}function u(f){f.inspectOpts={};const x=Object.keys(t.inspectOpts);for(let m=0;m<x.length;m++)f.inspectOpts[x[m]]=t.inspectOpts[x[m]]}e.exports=kd()(t);const{formatters:p}=e.exports;p.o=function(f){return this.inspectOpts.colors=this.useColors,r.inspect(f,this.inspectOpts).split(`
18
- `).map(x=>x.trim()).join(" ")},p.O=function(f){return this.inspectOpts.colors=this.useColors,r.inspect(f,this.inspectOpts)}}(Fc,Fc.exports)),Fc.exports}var Pd;function wg(){return Pd||(Pd=1,typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Pc.exports=Eg():Pc.exports=Tg()),Pc.exports}var ua,Ag=function(){if(!ua){try{ua=wg()("follow-redirects")}catch{}typeof ua!="function"&&(ua=function(){})}ua.apply(null,arguments)},pa=Cc,da=pa.URL,Ig=bl,Bg=El,su=At.Writable,ou=rm,Od=Ag;(function(){var t=typeof process<"u",a=typeof window<"u"&&typeof document<"u",r=yr(Error.captureStackTrace);!t&&(a||!r)&&console.warn("The follow-redirects package should be excluded from browser builds.")})();var cu=!1;try{ou(new da(""))}catch(e){cu=e.code==="ERR_INVALID_URL"}var _g=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],lu=["abort","aborted","connect","error","socket","timeout"],uu=Object.create(null);lu.forEach(function(e){uu[e]=function(t,a,r){this._redirectable.emit(e,t,a,r)}});var pu=fa("ERR_INVALID_URL","Invalid URL",TypeError),du=fa("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),Rg=fa("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",du),kg=fa("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),Ng=fa("ERR_STREAM_WRITE_AFTER_END","write after end"),Lg=su.prototype.destroy||Md;function mt(e,t){su.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on("response",t);var a=this;this._onNativeResponse=function(r){try{a._processResponse(r)}catch(n){a.emit("error",n instanceof du?n:new du({cause:n}))}},this._performRequest()}mt.prototype=Object.create(su.prototype),mt.prototype.abort=function(){vu(this._currentRequest),this._currentRequest.abort(),this.emit("abort")},mt.prototype.destroy=function(e){return vu(this._currentRequest,e),Lg.call(this,e),this},mt.prototype.write=function(e,t,a){if(this._ending)throw new Ng;if(!xr(e)&&!Pg(e))throw new TypeError("data should be a string, Buffer or Uint8Array");if(yr(t)&&(a=t,t=null),e.length===0){a&&a();return}this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,a)):(this.emit("error",new kg),this.abort())},mt.prototype.end=function(e,t,a){if(yr(e)?(a=e,e=t=null):yr(t)&&(a=t,t=null),!e)this._ended=this._ending=!0,this._currentRequest.end(null,null,a);else{var r=this,n=this._currentRequest;this.write(e,t,function(){r._ended=!0,n.end(null,null,a)}),this._ending=!0}},mt.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)},mt.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},mt.prototype.setTimeout=function(e,t){var a=this;function r(i){i.setTimeout(e),i.removeListener("timeout",i.destroy),i.addListener("timeout",i.destroy)}function n(i){a._timeout&&clearTimeout(a._timeout),a._timeout=setTimeout(function(){a.emit("timeout"),s()},e),r(i)}function s(){a._timeout&&(clearTimeout(a._timeout),a._timeout=null),a.removeListener("abort",s),a.removeListener("error",s),a.removeListener("response",s),a.removeListener("close",s),t&&a.removeListener("timeout",t),a.socket||a._currentRequest.removeListener("socket",n)}return t&&this.on("timeout",t),this.socket?n(this.socket):this._currentRequest.once("socket",n),this.on("socket",r),this.on("abort",s),this.on("error",s),this.on("response",s),this.on("close",s),this},["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(e){mt.prototype[e]=function(t,a){return this._currentRequest[e](t,a)}}),["aborted","connection","socket"].forEach(function(e){Object.defineProperty(mt.prototype,e,{get:function(){return this._currentRequest[e]}})}),mt.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),e.host&&(e.hostname||(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var t=e.path.indexOf("?");t<0?e.pathname=e.path:(e.pathname=e.path.substring(0,t),e.search=e.path.substring(t))}},mt.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(!t)throw new TypeError("Unsupported protocol "+e);if(this._options.agents){var a=e.slice(0,-1);this._options.agent=this._options.agents[a]}var r=this._currentRequest=t.request(this._options,this._onNativeResponse);r._redirectable=this;for(var n of lu)r.on(n,uu[n]);if(this._currentUrl=/^\//.test(this._options.path)?pa.format(this._options):this._options.path,this._isRedirect){var s=0,i=this,o=this._requestBodyBuffers;(function c(l){if(r===i._currentRequest)if(l)i.emit("error",l);else if(s<o.length){var u=o[s++];r.finished||r.write(u.data,u.encoding,c)}else i._ended&&r.end()})()}},mt.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var a=e.headers.location;if(!a||this._options.followRedirects===!1||t<300||t>=400){e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),this._requestBodyBuffers=[];return}if(vu(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)throw new Rg;var r,n=this._options.beforeRedirect;n&&(r=Object.assign({Host:e.req.getHeader("host")},this._options.headers));var s=this._options.method;((t===301||t===302)&&this._options.method==="POST"||t===303&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],hu(/^content-/i,this._options.headers));var i=hu(/^host$/i,this._options.headers),o=fu(this._currentUrl),c=i||o.host,l=/^\w+:/.test(a)?this._currentUrl:pa.format(Object.assign(o,{host:c})),u=Ug(a,l);if(Od("redirecting to",u.href),this._isRedirect=!0,mu(u,this._options),(u.protocol!==o.protocol&&u.protocol!=="https:"||u.host!==c&&!Dg(u.host,c))&&hu(/^(?:(?:proxy-)?authorization|cookie)$/i,this._options.headers),yr(n)){var p={headers:e.headers,statusCode:t},f={url:l,method:s,headers:r};n(this._options,p,f),this._sanitizeOptions(this._options)}this._performRequest()};function Fd(e){var t={maxRedirects:21,maxBodyLength:10485760},a={};return Object.keys(e).forEach(function(r){var n=r+":",s=a[n]=e[r],i=t[r]=Object.create(s);function o(l,u,p){return Og(l)?l=mu(l):xr(l)?l=mu(fu(l)):(p=u,u=Vd(l),l={protocol:n}),yr(u)&&(p=u,u=null),u=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},l,u),u.nativeProtocols=a,!xr(u.host)&&!xr(u.hostname)&&(u.hostname="::1"),ou.equal(u.protocol,n,"protocol mismatch"),Od("options",u),new mt(u,p)}function c(l,u,p){var f=i.request(l,u,p);return f.end(),f}Object.defineProperties(i,{request:{value:o,configurable:!0,enumerable:!0,writable:!0},get:{value:c,configurable:!0,enumerable:!0,writable:!0}})}),t}function Md(){}function fu(e){var t;if(cu)t=new da(e);else if(t=Vd(pa.parse(e)),!xr(t.protocol))throw new pu({input:e});return t}function Ug(e,t){return cu?new da(e,t):fu(pa.resolve(t,e))}function Vd(e){if(/^\[/.test(e.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(e.hostname))throw new pu({input:e.href||e});if(/^\[/.test(e.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(e.host))throw new pu({input:e.href||e});return e}function mu(e,t){var a=t||{};for(var r of _g)a[r]=e[r];return a.hostname.startsWith("[")&&(a.hostname=a.hostname.slice(1,-1)),a.port!==""&&(a.port=Number(a.port)),a.path=a.search?a.pathname+a.search:a.pathname,a}function hu(e,t){var a;for(var r in t)e.test(r)&&(a=t[r],delete t[r]);return a===null||typeof a>"u"?void 0:String(a).trim()}function fa(e,t,a){function r(n){yr(Error.captureStackTrace)&&Error.captureStackTrace(this,this.constructor),Object.assign(this,n||{}),this.code=e,this.message=this.cause?t+": "+this.cause.message:t}return r.prototype=new(a||Error),Object.defineProperties(r.prototype,{constructor:{value:r,enumerable:!1},name:{value:"Error ["+e+"]",enumerable:!1}}),r}function vu(e,t){for(var a of lu)e.removeListener(a,uu[a]);e.on("error",Md),e.destroy(t)}function Dg(e,t){ou(xr(e)&&xr(t));var a=e.length-t.length-1;return a>0&&e[a]==="."&&e.endsWith(t)}function xr(e){return typeof e=="string"||e instanceof String}function yr(e){return typeof e=="function"}function Pg(e){return typeof e=="object"&&"length"in e}function Og(e){return da&&e instanceof da}tu.exports=Fd({http:Ig,https:Bg}),tu.exports.wrap=Fd;var Fg=tu.exports,Mg=Rp(Fg);const Mc="1.12.2";function qd(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}const Vg=/^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;function qg(e,t,a){const r=a&&a.Blob||Le.classes.Blob,n=qd(e);if(t===void 0&&r&&(t=!0),n==="data"){e=n.length?e.slice(n.length+1):e;const s=Vg.exec(e);if(!s)throw new j("Invalid URL",j.ERR_INVALID_URL);const i=s[1],o=s[2],c=s[3],l=Buffer.from(decodeURIComponent(c),o?"base64":"utf8");if(t){if(!r)throw new j("Blob is not supported",j.ERR_NOT_SUPPORT);return new r([l],{type:i})}return l}throw new j("Unsupported protocol "+n,j.ERR_NOT_SUPPORT)}const gu=Symbol("internals");class jd extends At.Transform{constructor(t){t=A.toFlatObject(t,{maxRate:0,chunkSize:64*1024,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,(r,n)=>!A.isUndefined(n[r])),super({readableHighWaterMark:t.chunkSize});const a=this[gu]={timeWindow:t.timeWindow,chunkSize:t.chunkSize,maxRate:t.maxRate,minChunkSize:t.minChunkSize,bytesSeen:0,isCaptured:!1,notifiedBytesLoaded:0,ts:Date.now(),bytes:0,onReadCallback:null};this.on("newListener",r=>{r==="progress"&&(a.isCaptured||(a.isCaptured=!0))})}_read(t){const a=this[gu];return a.onReadCallback&&a.onReadCallback(),super._read(t)}_transform(t,a,r){const n=this[gu],s=n.maxRate,i=this.readableHighWaterMark,o=n.timeWindow,c=1e3/o,l=s/c,u=n.minChunkSize!==!1?Math.max(n.minChunkSize,l*.01):0,p=(x,m)=>{const y=Buffer.byteLength(x);n.bytesSeen+=y,n.bytes+=y,n.isCaptured&&this.emit("progress",n.bytesSeen),this.push(x)?process.nextTick(m):n.onReadCallback=()=>{n.onReadCallback=null,process.nextTick(m)}},f=(x,m)=>{const y=Buffer.byteLength(x);let b=null,S=i,B,_=0;if(s){const D=Date.now();(!n.ts||(_=D-n.ts)>=o)&&(n.ts=D,B=l-n.bytes,n.bytes=B<0?-B:0,_=0),B=l-n.bytes}if(s){if(B<=0)return setTimeout(()=>{m(null,x)},o-_);B<S&&(S=B)}S&&y>S&&y-S>u&&(b=x.subarray(S),x=x.subarray(0,S)),p(x,b?()=>{process.nextTick(m,null,b)}:m)};f(t,function x(m,y){if(m)return r(m);y?f(y,x):r(null)})}}const{asyncIterator:Kd}=Symbol,zd=async function*(e){e.stream?yield*e.stream():e.arrayBuffer?yield await e.arrayBuffer():e[Kd]?yield*e[Kd]():yield e},jg=Le.ALPHABET.ALPHA_DIGIT+"-_",ma=typeof TextEncoder=="function"?new TextEncoder:new Nr.TextEncoder,br=`\r
19
- `,Kg=ma.encode(br),zg=2;class Hg{constructor(t,a){const{escapeName:r}=this.constructor,n=A.isString(a);let s=`Content-Disposition: form-data; name="${r(t)}"${!n&&a.name?`; filename="${r(a.name)}"`:""}${br}`;n?a=ma.encode(String(a).replace(/\r?\n|\r\n?/g,br)):s+=`Content-Type: ${a.type||"application/octet-stream"}${br}`,this.headers=ma.encode(s+br),this.contentLength=n?a.byteLength:a.size,this.size=this.headers.byteLength+this.contentLength+zg,this.name=t,this.value=a}async*encode(){yield this.headers;const{value:t}=this;A.isTypedArray(t)?yield t:yield*zd(t),yield Kg}static escapeName(t){return String(t).replace(/[\r\n"]/g,a=>({"\r":"%0D","\n":"%0A",'"':"%22"})[a])}}const $g=(e,t,a)=>{const{tag:r="form-data-boundary",size:n=25,boundary:s=r+"-"+Le.generateString(n,jg)}=a||{};if(!A.isFormData(e))throw TypeError("FormData instance required");if(s.length<1||s.length>70)throw Error("boundary must be 10-70 characters long");const i=ma.encode("--"+s+br),o=ma.encode("--"+s+"--"+br);let c=o.byteLength;const l=Array.from(e.entries()).map(([p,f])=>{const x=new Hg(p,f);return c+=x.size,x});c+=i.byteLength*l.length,c=A.toFiniteNumber(c);const u={"Content-Type":`multipart/form-data; boundary=${s}`};return Number.isFinite(c)&&(u["Content-Length"]=c),t&&t(u),At.Readable.from(async function*(){for(const p of l)yield i,yield*p.encode();yield o}())};class Gg extends At.Transform{__transform(t,a,r){this.push(t),r()}_transform(t,a,r){if(t.length!==0&&(this._transform=this.__transform,t[0]!==120)){const n=Buffer.alloc(2);n[0]=120,n[1]=156,this.push(n,a)}this.__transform(t,a,r)}}const Qg=(e,t)=>A.isAsyncFn(e)?function(...a){const r=a.pop();e.apply(this,a).then(n=>{try{t?r(null,...t(n)):r(null,n)}catch(s){r(s)}},r)}:e;function Wg(e,t){e=e||10;const a=new Array(e),r=new Array(e);let n=0,s=0,i;return t=t!==void 0?t:1e3,function(c){const l=Date.now(),u=r[s];i||(i=l),a[n]=c,r[n]=l;let p=s,f=0;for(;p!==n;)f+=a[p++],p=p%e;if(n=(n+1)%e,n===s&&(s=(s+1)%e),l-i<t)return;const x=u&&l-u;return x?Math.round(f*1e3/x):void 0}}function Xg(e,t){let a=0,r=1e3/t,n,s;const i=(l,u=Date.now())=>{a=u,n=null,s&&(clearTimeout(s),s=null),e(...l)};return[(...l)=>{const u=Date.now(),p=u-a;p>=r?i(l,u):(n=l,s||(s=setTimeout(()=>{s=null,i(n)},r-p)))},()=>n&&i(n)]}const jr=(e,t,a=3)=>{let r=0;const n=Wg(50,250);return Xg(s=>{const i=s.loaded,o=s.lengthComputable?s.total:void 0,c=i-r,l=n(c),u=i<=o;r=i;const p={loaded:i,total:o,progress:o?i/o:void 0,bytes:c,rate:l||void 0,estimated:l&&o&&u?(o-i)/l:void 0,event:s,lengthComputable:o!=null,[t?"download":"upload"]:!0};e(p)},a)},Vc=(e,t)=>{const a=e!=null;return[r=>t[0]({lengthComputable:a,total:e,loaded:r}),t[1]]},qc=e=>(...t)=>A.asap(()=>e(...t));function Yg(e){if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const a=e.slice(5,t),r=e.slice(t+1);if(/;base64/i.test(a)){let s=r.length;const i=r.length;for(let f=0;f<i;f++)if(r.charCodeAt(f)===37&&f+2<i){const x=r.charCodeAt(f+1),m=r.charCodeAt(f+2);(x>=48&&x<=57||x>=65&&x<=70||x>=97&&x<=102)&&(m>=48&&m<=57||m>=65&&m<=70||m>=97&&m<=102)&&(s-=2,f+=2)}let o=0,c=i-1;const l=f=>f>=2&&r.charCodeAt(f-2)===37&&r.charCodeAt(f-1)===51&&(r.charCodeAt(f)===68||r.charCodeAt(f)===100);c>=0&&(r.charCodeAt(c)===61?(o++,c--):l(c)&&(o++,c-=3)),o===1&&c>=0&&(r.charCodeAt(c)===61||l(c))&&o++;const p=Math.floor(s/4)*3-(o||0);return p>0?p:0}return Buffer.byteLength(r,"utf8")}const Hd={flush:tr.constants.Z_SYNC_FLUSH,finishFlush:tr.constants.Z_SYNC_FLUSH},Jg={flush:tr.constants.BROTLI_OPERATION_FLUSH,finishFlush:tr.constants.BROTLI_OPERATION_FLUSH},$d=A.isFunction(tr.createBrotliDecompress),{http:Zg,https:ex}=Mg,tx=/https:?/,Gd=Le.protocols.map(e=>e+":"),Qd=(e,[t,a])=>(e.on("end",a).on("error",a),t);function rx(e,t){e.beforeRedirects.proxy&&e.beforeRedirects.proxy(e),e.beforeRedirects.config&&e.beforeRedirects.config(e,t)}function Wd(e,t,a){let r=t;if(!r&&r!==!1){const n=Bd.getProxyForUrl(a);n&&(r=new URL(n))}if(r){if(r.username&&(r.auth=(r.username||"")+":"+(r.password||"")),r.auth){(r.auth.username||r.auth.password)&&(r.auth=(r.auth.username||"")+":"+(r.auth.password||""));const s=Buffer.from(r.auth,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+s}e.headers.host=e.hostname+(e.port?":"+e.port:"");const n=r.hostname||r.host;e.hostname=n,e.host=n,e.port=r.port,e.path=a,r.protocol&&(e.protocol=r.protocol.includes(":")?r.protocol:`${r.protocol}:`)}e.beforeRedirects.proxy=function(s){Wd(s,t,s.href)}}const ax=typeof process<"u"&&A.kindOf(process)==="process",nx=e=>new Promise((t,a)=>{let r,n;const s=(c,l)=>{n||(n=!0,r&&r(c,l))},i=c=>{s(c),t(c)},o=c=>{s(c,!0),a(c)};e(i,o,c=>r=c).catch(o)}),ix=({address:e,family:t})=>{if(!A.isString(e))throw TypeError("address must be a string");return{address:e,family:t||(e.indexOf(".")<0?6:4)}},Xd=(e,t)=>ix(A.isObject(e)?e:{address:e,family:t});var sx=ax&&function(t){return nx(async function(r,n,s){let{data:i,lookup:o,family:c}=t;const{responseType:l,responseEncoding:u}=t,p=t.method.toUpperCase();let f,x=!1,m;if(o){const U=Qg(o,H=>A.isArray(H)?H:[H]);o=(H,Se,be)=>{U(H,Se,(X,ue,_e)=>{if(X)return be(X);const ge=A.isArray(ue)?ue.map(xe=>Xd(xe)):[Xd(ue,_e)];Se.all?be(X,ge):be(X,ge[0].address,ge[0].family)})}}const y=new nm.EventEmitter,b=()=>{t.cancelToken&&t.cancelToken.unsubscribe(S),t.signal&&t.signal.removeEventListener("abort",S),y.removeAllListeners()};s((U,H)=>{f=!0,H&&(x=!0,b())});function S(U){y.emit("abort",!U||U.type?new ar(null,t,m):U)}y.once("abort",n),(t.cancelToken||t.signal)&&(t.cancelToken&&t.cancelToken.subscribe(S),t.signal&&(t.signal.aborted?S():t.signal.addEventListener("abort",S)));const B=eu(t.baseURL,t.url,t.allowAbsoluteUrls),_=new URL(B,Le.hasBrowserEnv?Le.origin:void 0),D=_.protocol||Gd[0];if(D==="data:"){if(t.maxContentLength>-1){const H=String(t.url||B||"");if(Yg(H)>t.maxContentLength)return n(new j("maxContentLength size of "+t.maxContentLength+" exceeded",j.ERR_BAD_RESPONSE,t))}let U;if(p!=="GET")return Vr(r,n,{status:405,statusText:"method not allowed",headers:{},config:t});try{U=qg(t.url,l==="blob",{Blob:t.env&&t.env.Blob})}catch(H){throw j.from(H,j.ERR_BAD_REQUEST,t)}return l==="text"?(U=U.toString(u),(!u||u==="utf8")&&(U=A.stripBOM(U))):l==="stream"&&(U=At.Readable.from(U)),Vr(r,n,{data:U,status:200,statusText:"OK",headers:new ze,config:t})}if(Gd.indexOf(D)===-1)return n(new j("Unsupported protocol "+D,j.ERR_BAD_REQUEST,t));const k=ze.from(t.headers).normalize();k.set("User-Agent","axios/"+Mc,!1);const{onUploadProgress:P,onDownloadProgress:z}=t,W=t.maxRate;let J,te;if(A.isSpecCompliantForm(i)){const U=k.getContentType(/boundary=([-_\w\d]{10,70})/i);i=$g(i,H=>{k.set(H)},{tag:`axios-${Mc}-boundary`,boundary:U&&U[1]||void 0})}else if(A.isFormData(i)&&A.isFunction(i.getHeaders)){if(k.set(i.getHeaders()),!k.hasContentLength())try{const U=await Nr.promisify(i.getLength).call(i);Number.isFinite(U)&&U>=0&&k.setContentLength(U)}catch{}}else if(A.isBlob(i)||A.isFile(i))i.size&&k.setContentType(i.type||"application/octet-stream"),k.setContentLength(i.size||0),i=At.Readable.from(zd(i));else if(i&&!A.isStream(i)){if(!Buffer.isBuffer(i))if(A.isArrayBuffer(i))i=Buffer.from(new Uint8Array(i));else if(A.isString(i))i=Buffer.from(i,"utf-8");else return n(new j("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",j.ERR_BAD_REQUEST,t));if(k.setContentLength(i.length,!1),t.maxBodyLength>-1&&i.length>t.maxBodyLength)return n(new j("Request body larger than maxBodyLength limit",j.ERR_BAD_REQUEST,t))}const ve=A.toFiniteNumber(k.getContentLength());A.isArray(W)?(J=W[0],te=W[1]):J=te=W,i&&(P||J)&&(A.isStream(i)||(i=At.Readable.from(i,{objectMode:!1})),i=At.pipeline([i,new jd({maxRate:A.toFiniteNumber(J)})],A.noop),P&&i.on("progress",Qd(i,Vc(ve,jr(qc(P),!1,3)))));let pe;if(t.auth){const U=t.auth.username||"",H=t.auth.password||"";pe=U+":"+H}if(!pe&&_.username){const U=_.username,H=_.password;pe=U+":"+H}pe&&k.delete("authorization");let ke;try{ke=Gl(_.pathname+_.search,t.params,t.paramsSerializer).replace(/^\?/,"")}catch(U){const H=new Error(U.message);return H.config=t,H.url=t.url,H.exists=!0,n(H)}k.set("Accept-Encoding","gzip, compress, deflate"+($d?", br":""),!1);const oe={path:ke,method:p,headers:k.toJSON(),agents:{http:t.httpAgent,https:t.httpsAgent},auth:pe,protocol:D,family:c,beforeRedirect:rx,beforeRedirects:{}};!A.isUndefined(o)&&(oe.lookup=o),t.socketPath?oe.socketPath=t.socketPath:(oe.hostname=_.hostname.startsWith("[")?_.hostname.slice(1,-1):_.hostname,oe.port=_.port,Wd(oe,t.proxy,D+"//"+_.hostname+(_.port?":"+_.port:"")+oe.path));let ce;const le=tx.test(oe.protocol);if(oe.agent=le?t.httpsAgent:t.httpAgent,t.transport?ce=t.transport:t.maxRedirects===0?ce=le?El:bl:(t.maxRedirects&&(oe.maxRedirects=t.maxRedirects),t.beforeRedirect&&(oe.beforeRedirects.config=t.beforeRedirect),ce=le?ex:Zg),t.maxBodyLength>-1?oe.maxBodyLength=t.maxBodyLength:oe.maxBodyLength=1/0,t.insecureHTTPParser&&(oe.insecureHTTPParser=t.insecureHTTPParser),m=ce.request(oe,function(H){if(m.destroyed)return;const Se=[H],be=+H.headers["content-length"];if(z||te){const xe=new jd({maxRate:A.toFiniteNumber(te)});z&&xe.on("progress",Qd(xe,Vc(be,jr(qc(z),!0,3)))),Se.push(xe)}let X=H;const ue=H.req||m;if(t.decompress!==!1&&H.headers["content-encoding"])switch((p==="HEAD"||H.statusCode===204)&&delete H.headers["content-encoding"],(H.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":Se.push(tr.createUnzip(Hd)),delete H.headers["content-encoding"];break;case"deflate":Se.push(new Gg),Se.push(tr.createUnzip(Hd)),delete H.headers["content-encoding"];break;case"br":$d&&(Se.push(tr.createBrotliDecompress(Jg)),delete H.headers["content-encoding"])}X=Se.length>1?At.pipeline(Se,A.noop):Se[0];const _e=At.finished(X,()=>{_e(),b()}),ge={status:H.statusCode,statusText:H.statusMessage,headers:new ze(H.headers),config:t,request:ue};if(l==="stream")ge.data=X,Vr(r,n,ge);else{const xe=[];let Fe=0;X.on("data",function(ye){xe.push(ye),Fe+=ye.length,t.maxContentLength>-1&&Fe>t.maxContentLength&&(x=!0,X.destroy(),n(new j("maxContentLength size of "+t.maxContentLength+" exceeded",j.ERR_BAD_RESPONSE,t,ue)))}),X.on("aborted",function(){if(x)return;const ye=new j("stream has been aborted",j.ERR_BAD_RESPONSE,t,ue);X.destroy(ye),n(ye)}),X.on("error",function(ye){m.destroyed||n(j.from(ye,null,t,ue))}),X.on("end",function(){try{let ye=xe.length===1?xe[0]:Buffer.concat(xe);l!=="arraybuffer"&&(ye=ye.toString(u),(!u||u==="utf8")&&(ye=A.stripBOM(ye))),ge.data=ye}catch(ye){return n(j.from(ye,null,t,ge.request,ge))}Vr(r,n,ge)})}y.once("abort",xe=>{X.destroyed||(X.emit("error",xe),X.destroy())})}),y.once("abort",U=>{n(U),m.destroy(U)}),m.on("error",function(H){n(j.from(H,null,t,m))}),m.on("socket",function(H){H.setKeepAlive(!0,1e3*60)}),t.timeout){const U=parseInt(t.timeout,10);if(Number.isNaN(U)){n(new j("error trying to parse `config.timeout` to int",j.ERR_BAD_OPTION_VALUE,t,m));return}m.setTimeout(U,function(){if(f)return;let Se=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const be=t.transitional||Ql;t.timeoutErrorMessage&&(Se=t.timeoutErrorMessage),n(new j(Se,be.clarifyTimeoutError?j.ETIMEDOUT:j.ECONNABORTED,t,m)),S()})}if(A.isStream(i)){let U=!1,H=!1;i.on("end",()=>{U=!0}),i.once("error",Se=>{H=!0,m.destroy(Se)}),i.on("close",()=>{!U&&!H&&S(new ar("Request stream has been aborted",t,m))}),i.pipe(m)}else m.end(i)})},ox=Le.hasStandardBrowserEnv?((e,t)=>a=>(a=new URL(a,Le.origin),e.protocol===a.protocol&&e.host===a.host&&(t||e.port===a.port)))(new URL(Le.origin),Le.navigator&&/(msie|trident)/i.test(Le.navigator.userAgent)):()=>!0,cx=Le.hasStandardBrowserEnv?{write(e,t,a,r,n,s){const i=[e+"="+encodeURIComponent(t)];A.isNumber(a)&&i.push("expires="+new Date(a).toGMTString()),A.isString(r)&&i.push("path="+r),A.isString(n)&&i.push("domain="+n),s===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};const Yd=e=>e instanceof ze?{...e}:e;function Er(e,t){t=t||{};const a={};function r(l,u,p,f){return A.isPlainObject(l)&&A.isPlainObject(u)?A.merge.call({caseless:f},l,u):A.isPlainObject(u)?A.merge({},u):A.isArray(u)?u.slice():u}function n(l,u,p,f){if(A.isUndefined(u)){if(!A.isUndefined(l))return r(void 0,l,p,f)}else return r(l,u,p,f)}function s(l,u){if(!A.isUndefined(u))return r(void 0,u)}function i(l,u){if(A.isUndefined(u)){if(!A.isUndefined(l))return r(void 0,l)}else return r(void 0,u)}function o(l,u,p){if(p in t)return r(l,u);if(p in e)return r(void 0,l)}const c={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:o,headers:(l,u,p)=>n(Yd(l),Yd(u),p,!0)};return A.forEach(Object.keys({...e,...t}),function(u){const p=c[u]||n,f=p(e[u],t[u],u);A.isUndefined(f)&&p!==o||(a[u]=f)}),a}var Jd=e=>{const t=Er({},e);let{data:a,withXSRFToken:r,xsrfHeaderName:n,xsrfCookieName:s,headers:i,auth:o}=t;if(t.headers=i=ze.from(i),t.url=Gl(eu(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),o&&i.set("Authorization","Basic "+btoa((o.username||"")+":"+(o.password?unescape(encodeURIComponent(o.password)):""))),A.isFormData(a)){if(Le.hasStandardBrowserEnv||Le.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(A.isFunction(a.getHeaders)){const c=a.getHeaders(),l=["content-type","content-length"];Object.entries(c).forEach(([u,p])=>{l.includes(u.toLowerCase())&&i.set(u,p)})}}if(Le.hasStandardBrowserEnv&&(r&&A.isFunction(r)&&(r=r(t)),r||r!==!1&&ox(t.url))){const c=n&&s&&cx.read(s);c&&i.set(n,c)}return t};const lx=typeof XMLHttpRequest<"u";var ux=lx&&function(e){return new Promise(function(a,r){const n=Jd(e);let s=n.data;const i=ze.from(n.headers).normalize();let{responseType:o,onUploadProgress:c,onDownloadProgress:l}=n,u,p,f,x,m;function y(){x&&x(),m&&m(),n.cancelToken&&n.cancelToken.unsubscribe(u),n.signal&&n.signal.removeEventListener("abort",u)}let b=new XMLHttpRequest;b.open(n.method.toUpperCase(),n.url,!0),b.timeout=n.timeout;function S(){if(!b)return;const _=ze.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders()),k={data:!o||o==="text"||o==="json"?b.responseText:b.response,status:b.status,statusText:b.statusText,headers:_,config:e,request:b};Vr(function(z){a(z),y()},function(z){r(z),y()},k),b=null}"onloadend"in b?b.onloadend=S:b.onreadystatechange=function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.indexOf("file:")===0)||setTimeout(S)},b.onabort=function(){b&&(r(new j("Request aborted",j.ECONNABORTED,e,b)),b=null)},b.onerror=function(D){const k=D&&D.message?D.message:"Network Error",P=new j(k,j.ERR_NETWORK,e,b);P.event=D||null,r(P),b=null},b.ontimeout=function(){let D=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const k=n.transitional||Ql;n.timeoutErrorMessage&&(D=n.timeoutErrorMessage),r(new j(D,k.clarifyTimeoutError?j.ETIMEDOUT:j.ECONNABORTED,e,b)),b=null},s===void 0&&i.setContentType(null),"setRequestHeader"in b&&A.forEach(i.toJSON(),function(D,k){b.setRequestHeader(k,D)}),A.isUndefined(n.withCredentials)||(b.withCredentials=!!n.withCredentials),o&&o!=="json"&&(b.responseType=n.responseType),l&&([f,m]=jr(l,!0),b.addEventListener("progress",f)),c&&b.upload&&([p,x]=jr(c),b.upload.addEventListener("progress",p),b.upload.addEventListener("loadend",x)),(n.cancelToken||n.signal)&&(u=_=>{b&&(r(!_||_.type?new ar(null,e,b):_),b.abort(),b=null)},n.cancelToken&&n.cancelToken.subscribe(u),n.signal&&(n.signal.aborted?u():n.signal.addEventListener("abort",u)));const B=qd(n.url);if(B&&Le.protocols.indexOf(B)===-1){r(new j("Unsupported protocol "+B+":",j.ERR_BAD_REQUEST,e));return}b.send(s||null)})};const px=(e,t)=>{const{length:a}=e=e?e.filter(Boolean):[];if(t||a){let r=new AbortController,n;const s=function(l){if(!n){n=!0,o();const u=l instanceof Error?l:this.reason;r.abort(u instanceof j?u:new ar(u instanceof Error?u.message:u))}};let i=t&&setTimeout(()=>{i=null,s(new j(`timeout ${t} of ms exceeded`,j.ETIMEDOUT))},t);const o=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(s):l.removeEventListener("abort",s)}),e=null)};e.forEach(l=>l.addEventListener("abort",s));const{signal:c}=r;return c.unsubscribe=()=>A.asap(o),c}},dx=function*(e,t){let a=e.byteLength;if(!t||a<t){yield e;return}let r=0,n;for(;r<a;)n=r+t,yield e.slice(r,n),r=n},fx=async function*(e,t){for await(const a of mx(e))yield*dx(a,t)},mx=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:a,value:r}=await t.read();if(a)break;yield r}}finally{await t.cancel()}},Zd=(e,t,a,r)=>{const n=fx(e,t);let s=0,i,o=c=>{i||(i=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:l,value:u}=await n.next();if(l){o(),c.close();return}let p=u.byteLength;if(a){let f=s+=p;a(f)}c.enqueue(new Uint8Array(u))}catch(l){throw o(l),l}},cancel(c){return o(c),n.return()}},{highWaterMark:2})},ef=64*1024,{isFunction:jc}=A,hx=(({Request:e,Response:t})=>({Request:e,Response:t}))(A.global),{ReadableStream:tf,TextEncoder:rf}=A.global,af=(e,...t)=>{try{return!!e(...t)}catch{return!1}},vx=e=>{e=A.merge.call({skipUndefined:!0},hx,e);const{fetch:t,Request:a,Response:r}=e,n=t?jc(t):typeof fetch=="function",s=jc(a),i=jc(r);if(!n)return!1;const o=n&&jc(tf),c=n&&(typeof rf=="function"?(m=>y=>m.encode(y))(new rf):async m=>new Uint8Array(await new a(m).arrayBuffer())),l=s&&o&&af(()=>{let m=!1;const y=new a(Le.origin,{body:new tf,method:"POST",get duplex(){return m=!0,"half"}}).headers.has("Content-Type");return m&&!y}),u=i&&o&&af(()=>A.isReadableStream(new r("").body)),p={stream:u&&(m=>m.body)};n&&["text","arrayBuffer","blob","formData","stream"].forEach(m=>{!p[m]&&(p[m]=(y,b)=>{let S=y&&y[m];if(S)return S.call(y);throw new j(`Response type '${m}' is not supported`,j.ERR_NOT_SUPPORT,b)})});const f=async m=>{if(m==null)return 0;if(A.isBlob(m))return m.size;if(A.isSpecCompliantForm(m))return(await new a(Le.origin,{method:"POST",body:m}).arrayBuffer()).byteLength;if(A.isArrayBufferView(m)||A.isArrayBuffer(m))return m.byteLength;if(A.isURLSearchParams(m)&&(m=m+""),A.isString(m))return(await c(m)).byteLength},x=async(m,y)=>{const b=A.toFiniteNumber(m.getContentLength());return b??f(y)};return async m=>{let{url:y,method:b,data:S,signal:B,cancelToken:_,timeout:D,onDownloadProgress:k,onUploadProgress:P,responseType:z,headers:W,withCredentials:J="same-origin",fetchOptions:te}=Jd(m),ve=t||fetch;z=z?(z+"").toLowerCase():"text";let pe=px([B,_&&_.toAbortSignal()],D),ke=null;const oe=pe&&pe.unsubscribe&&(()=>{pe.unsubscribe()});let ce;try{if(P&&l&&b!=="get"&&b!=="head"&&(ce=await x(W,S))!==0){let X=new a(y,{method:"POST",body:S,duplex:"half"}),ue;if(A.isFormData(S)&&(ue=X.headers.get("content-type"))&&W.setContentType(ue),X.body){const[_e,ge]=Vc(ce,jr(qc(P)));S=Zd(X.body,ef,_e,ge)}}A.isString(J)||(J=J?"include":"omit");const le=s&&"credentials"in a.prototype,U={...te,signal:pe,method:b.toUpperCase(),headers:W.normalize().toJSON(),body:S,duplex:"half",credentials:le?J:void 0};ke=s&&new a(y,U);let H=await(s?ve(ke,te):ve(y,U));const Se=u&&(z==="stream"||z==="response");if(u&&(k||Se&&oe)){const X={};["status","statusText","headers"].forEach(xe=>{X[xe]=H[xe]});const ue=A.toFiniteNumber(H.headers.get("content-length")),[_e,ge]=k&&Vc(ue,jr(qc(k),!0))||[];H=new r(Zd(H.body,ef,_e,()=>{ge&&ge(),oe&&oe()}),X)}z=z||"text";let be=await p[A.findKey(p,z)||"text"](H,m);return!Se&&oe&&oe(),await new Promise((X,ue)=>{Vr(X,ue,{data:be,headers:ze.from(H.headers),status:H.status,statusText:H.statusText,config:m,request:ke})})}catch(le){throw oe&&oe(),le&&le.name==="TypeError"&&/Load failed|fetch/i.test(le.message)?Object.assign(new j("Network Error",j.ERR_NETWORK,m,ke),{cause:le.cause||le}):j.from(le,le&&le.code,m,ke)}}},gx=new Map,nf=e=>{let t=e?e.env:{};const{fetch:a,Request:r,Response:n}=t,s=[r,n,a];let i=s.length,o=i,c,l,u=gx;for(;o--;)c=s[o],l=u.get(c),l===void 0&&u.set(c,l=o?new Map:vx(t)),u=l;return l};nf();const xu={http:sx,xhr:ux,fetch:{get:nf}};A.forEach(xu,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const sf=e=>`- ${e}`,xx=e=>A.isFunction(e)||e===null||e===!1;var of={getAdapter:(e,t)=>{e=A.isArray(e)?e:[e];const{length:a}=e;let r,n;const s={};for(let i=0;i<a;i++){r=e[i];let o;if(n=r,!xx(r)&&(n=xu[(o=String(r)).toLowerCase()],n===void 0))throw new j(`Unknown adapter '${o}'`);if(n&&(A.isFunction(n)||(n=n.get(t))))break;s[o||"#"+i]=n}if(!n){const i=Object.entries(s).map(([c,l])=>`adapter ${c} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=a?i.length>1?`since :
20
- `+i.map(sf).join(`
21
- `):" "+sf(i[0]):"as no adapter specified";throw new j("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return n},adapters:xu};function yu(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ar(null,e)}function cf(e){return yu(e),e.headers=ze.from(e.headers),e.data=Zl.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),of.getAdapter(e.adapter||ca.adapter,e)(e).then(function(r){return yu(e),r.data=Zl.call(e,e.transformResponse,r),r.headers=ze.from(r.headers),r},function(r){return Id(r)||(yu(e),r&&r.response&&(r.response.data=Zl.call(e,e.transformResponse,r.response),r.response.headers=ze.from(r.response.headers))),Promise.reject(r)})}const Kc={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Kc[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const lf={};Kc.transitional=function(t,a,r){function n(s,i){return"[Axios v"+Mc+"] Transitional option '"+s+"'"+i+(r?". "+r:"")}return(s,i,o)=>{if(t===!1)throw new j(n(i," has been removed"+(a?" in "+a:"")),j.ERR_DEPRECATED);return a&&!lf[i]&&(lf[i]=!0,console.warn(n(i," has been deprecated since v"+a+" and will be removed in the near future"))),t?t(s,i,o):!0}},Kc.spelling=function(t){return(a,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function yx(e,t,a){if(typeof e!="object")throw new j("options must be an object",j.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let n=r.length;for(;n-- >0;){const s=r[n],i=t[s];if(i){const o=e[s],c=o===void 0||i(o,s,e);if(c!==!0)throw new j("option "+s+" must be "+c,j.ERR_BAD_OPTION_VALUE);continue}if(a!==!0)throw new j("Unknown option "+s,j.ERR_BAD_OPTION)}}var zc={assertOptions:yx,validators:Kc};const Vt=zc.validators;let Cr=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Cd,response:new Cd}}async request(t,a){try{return await this._request(t,a)}catch(r){if(r instanceof Error){let n={};Error.captureStackTrace?Error.captureStackTrace(n):n=new Error;const s=n.stack?n.stack.replace(/^.+\n/,""):"";try{r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=`
22
- `+s):r.stack=s}catch{}}throw r}}_request(t,a){typeof t=="string"?(a=a||{},a.url=t):a=t||{},a=Er(this.defaults,a);const{transitional:r,paramsSerializer:n,headers:s}=a;r!==void 0&&zc.assertOptions(r,{silentJSONParsing:Vt.transitional(Vt.boolean),forcedJSONParsing:Vt.transitional(Vt.boolean),clarifyTimeoutError:Vt.transitional(Vt.boolean)},!1),n!=null&&(A.isFunction(n)?a.paramsSerializer={serialize:n}:zc.assertOptions(n,{encode:Vt.function,serialize:Vt.function},!0)),a.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?a.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:a.allowAbsoluteUrls=!0),zc.assertOptions(a,{baseUrl:Vt.spelling("baseURL"),withXsrfToken:Vt.spelling("withXSRFToken")},!0),a.method=(a.method||this.defaults.method||"get").toLowerCase();let i=s&&A.merge(s.common,s[a.method]);s&&A.forEach(["delete","get","head","post","put","patch","common"],m=>{delete s[m]}),a.headers=ze.concat(i,s);const o=[];let c=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(a)===!1||(c=c&&y.synchronous,o.unshift(y.fulfilled,y.rejected))});const l=[];this.interceptors.response.forEach(function(y){l.push(y.fulfilled,y.rejected)});let u,p=0,f;if(!c){const m=[cf.bind(this),void 0];for(m.unshift(...o),m.push(...l),f=m.length,u=Promise.resolve(a);p<f;)u=u.then(m[p++],m[p++]);return u}f=o.length;let x=a;for(;p<f;){const m=o[p++],y=o[p++];try{x=m(x)}catch(b){y.call(this,b);break}}try{u=cf.call(this,x)}catch(m){return Promise.reject(m)}for(p=0,f=l.length;p<f;)u=u.then(l[p++],l[p++]);return u}getUri(t){t=Er(this.defaults,t);const a=eu(t.baseURL,t.url,t.allowAbsoluteUrls);return Gl(a,t.params,t.paramsSerializer)}};A.forEach(["delete","get","head","options"],function(t){Cr.prototype[t]=function(a,r){return this.request(Er(r||{},{method:t,url:a,data:(r||{}).data}))}}),A.forEach(["post","put","patch"],function(t){function a(r){return function(s,i,o){return this.request(Er(o||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:i}))}}Cr.prototype[t]=a(),Cr.prototype[t+"Form"]=a(!0)});let bx=class em{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let a;this.promise=new Promise(function(s){a=s});const r=this;this.promise.then(n=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](n);r._listeners=null}),this.promise.then=n=>{let s;const i=new Promise(o=>{r.subscribe(o),s=o}).then(n);return i.cancel=function(){r.unsubscribe(s)},i},t(function(s,i,o){r.reason||(r.reason=new ar(s,i,o),a(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const a=this._listeners.indexOf(t);a!==-1&&this._listeners.splice(a,1)}toAbortSignal(){const t=new AbortController,a=r=>{t.abort(r)};return this.subscribe(a),t.signal.unsubscribe=()=>this.unsubscribe(a),t.signal}static source(){let t;return{token:new em(function(n){t=n}),cancel:t}}};function Ex(e){return function(a){return e.apply(null,a)}}function Cx(e){return A.isObject(e)&&e.isAxiosError===!0}const bu={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(bu).forEach(([e,t])=>{bu[t]=e});function uf(e){const t=new Cr(e),a=yp(Cr.prototype.request,t);return A.extend(a,Cr.prototype,t,{allOwnKeys:!0}),A.extend(a,t,null,{allOwnKeys:!0}),a.create=function(n){return uf(Er(e,n))},a}const Pe=uf(ca);Pe.Axios=Cr,Pe.CanceledError=ar,Pe.CancelToken=bx,Pe.isCancel=Id,Pe.VERSION=Mc,Pe.toFormData=Uc,Pe.AxiosError=j,Pe.Cancel=Pe.CanceledError,Pe.all=function(t){return Promise.all(t)},Pe.spread=Ex,Pe.isAxiosError=Cx,Pe.mergeConfig=Er,Pe.AxiosHeaders=ze,Pe.formToJSON=e=>wd(A.isHTMLForm(e)?new FormData(e):e),Pe.getAdapter=of.getAdapter,Pe.HttpStatusCode=bu,Pe.default=Pe;var Ee=Pe;const{Axios:w2,AxiosError:A2,CanceledError:I2,isCancel:B2,CancelToken:_2,VERSION:R2,all:k2,Cancel:N2,isAxiosError:rt,spread:L2,toFormData:U2,AxiosHeaders:D2,HttpStatusCode:P2,formToJSON:O2,getAdapter:F2,mergeConfig:M2}=Ee,at="https://api.circle.com".replace(/\/+$/,"");let Sx=class extends Error{constructor(t,a){super(a),this.field=t,this.name="RequiredError"}};const nt={},it="https://example.com",qt=function(e,t,a){if(a==null)throw new Sx(t,`Required parameter ${t} was null or undefined when calling ${e}.`)},ht=async function(e,t){if(t&&t.accessToken){const a=typeof t.accessToken=="function"?await t.accessToken():await t.accessToken;e.Authorization="Bearer "+a}};function Eu(e,t,a=""){t!=null&&(typeof t=="object"?Array.isArray(t)?t.forEach(r=>Eu(e,r,a)):Object.keys(t).forEach(r=>Eu(e,t[r],`${a}${a!==""?".":""}${r}`)):e.has(a)?e.append(a,t):e.set(a,t))}const st=function(e,...t){const a=new URLSearchParams(e.search);Eu(a,t),e.search=a.toString()},Sr=function(e,t,a){const r=typeof e!="string";return(r&&a&&a.isJsonMime?a.isJsonMime(t.headers["Content-Type"]):r)?JSON.stringify(e!==void 0?e:{}):e||""},ot=function(e){return e.pathname+e.search+e.hash},ct=function(e,t,a,r){return(n=t,s=a)=>{const i={...e.options,url:(r?.basePath||n.defaults.baseURL||s)+e.url};return n.request(i)}},Tx=function(e){return{getEntityConfig:async(t={})=>{const a="/v1/w3s/config/entity",r=new URL(a,it);let n;e&&(n=e.baseOptions);const s={method:"GET",...n,...t},i={},o={};await ht(i,e),st(r,o);let c=n&&n.headers?n.headers:{};return s.headers={...i,...c,...t.headers},{url:ot(r),options:s}},getPublicKey:async(t={})=>{const a="/v1/w3s/config/entity/publicKey",r=new URL(a,it);let n;e&&(n=e.baseOptions);const s={method:"GET",...n,...t},i={},o={};await ht(i,e),st(r,o);let c=n&&n.headers?n.headers:{};return s.headers={...i,...c,...t.headers},{url:ot(r),options:s}}}},wx=function(e){const t=Tx(e);return{async getEntityConfig(a){const r=await t.getEntityConfig(a),n=e?.serverIndex??0,s=nt["DeveloperAccountApi.getEntityConfig"]?.[n]?.url;return(i,o)=>ct(r,Ee,at,e)(i,s||o)},async getPublicKey(a){const r=await t.getPublicKey(a),n=e?.serverIndex??0,s=nt["DeveloperAccountApi.getPublicKey"]?.[n]?.url;return(i,o)=>ct(r,Ee,at,e)(i,s||o)}}},Ax=function(e,t,a){const r=wx(e);return{getEntityConfig(n){return r.getEntityConfig(n).then(s=>s(a,t))},getPublicKey(n){return r.getPublicKey(n).then(s=>s(a,t))}}},Ix=function(e){return{requestTestnetTokens:async(t,a,r={})=>{const n="/v1/faucet/drips",s=new URL(n,it);let i;e&&(i=e.baseOptions);const o={method:"POST",...i,...r},c={},l={};await ht(c,e),t!=null&&(c["X-Request-Id"]=String(t)),c["Content-Type"]="application/json",st(s,l);let u=i&&i.headers?i.headers:{};return o.headers={...c,...u,...r.headers},o.data=Sr(a,o,e),{url:ot(s),options:o}}}},Bx=function(e){const t=Ix(e);return{async requestTestnetTokens(a,r,n){const s=await t.requestTestnetTokens(a,r,n),i=e?.serverIndex??0,o=nt["FaucetApi.requestTestnetTokens"]?.[i]?.url;return(c,l)=>ct(s,Ee,at,e)(c,o||l)}}},_x=function(e,t,a){const r=Bx(e);return{requestTestnetTokens(n,s,i){return r.requestTestnetTokens(n,s,i).then(o=>o(a,t))}}},Rx=function(e){return{ping:async(t={})=>{const a="/ping",r=new URL(a,it);let n;e&&(n=e.baseOptions);const s={method:"GET",...n,...t},i={};st(r,{});let o=n&&n.headers?n.headers:{};return s.headers={...i,...o,...t.headers},{url:ot(r),options:s}}}},kx=function(e){const t=Rx(e);return{async ping(a){const r=await t.ping(a),n=e?.serverIndex??0,s=nt["HealthApi.ping"]?.[n]?.url;return(i,o)=>ct(r,Ee,at,e)(i,s||o)}}},Nx=function(e,t,a){const r=kx(e);return{ping(n){return r.ping(n).then(s=>s(a,t))}}},Lx=function(e){return{createMonitoredTokens:async(t,a={})=>{qt("createMonitoredTokens","createMonitoredTokensRequest",t);const r="/v1/w3s/config/entity/monitoredTokens",n=new URL(r,it);let s;e&&(s=e.baseOptions);const i={method:"POST",...s,...a},o={},c={};await ht(o,e),o["Content-Type"]="application/json",st(n,c);let l=s&&s.headers?s.headers:{};return i.headers={...o,...l,...a.headers},i.data=Sr(t,i,e),{url:ot(n),options:i}},deleteMonitoredTokens:async(t,a={})=>{qt("deleteMonitoredTokens","deleteMonitoredTokensRequest",t);const r="/v1/w3s/config/entity/monitoredTokens/delete",n=new URL(r,it);let s;e&&(s=e.baseOptions);const i={method:"POST",...s,...a},o={},c={};await ht(o,e),o["Content-Type"]="application/json",st(n,c);let l=s&&s.headers?s.headers:{};return i.headers={...o,...l,...a.headers},i.data=Sr(t,i,e),{url:ot(n),options:i}},listMonitoredTokens:async(t,a,r,n,s,i,o,c,l={})=>{const u="/v1/w3s/config/entity/monitoredTokens",p=new URL(u,it);let f;e&&(f=e.baseOptions);const x={method:"GET",...f,...l},m={},y={};await ht(m,e),t!==void 0&&(y.blockchain=t),a!==void 0&&(y.tokenAddress=a),r!==void 0&&(y.symbol=r),n!==void 0&&(y.from=n instanceof Date?n.toISOString():n),s!==void 0&&(y.to=s instanceof Date?s.toISOString():s),i!==void 0&&(y.pageBefore=i),o!==void 0&&(y.pageAfter=o),c!==void 0&&(y.pageSize=c),st(p,y);let b=f&&f.headers?f.headers:{};return x.headers={...m,...b,...l.headers},{url:ot(p),options:x}},updateMonitoredTokens:async(t,a={})=>{qt("updateMonitoredTokens","updateMonitoredTokensRequest",t);const r="/v1/w3s/config/entity/monitoredTokens",n=new URL(r,it);let s;e&&(s=e.baseOptions);const i={method:"PUT",...s,...a},o={},c={};await ht(o,e),o["Content-Type"]="application/json",st(n,c);let l=s&&s.headers?s.headers:{};return i.headers={...o,...l,...a.headers},i.data=Sr(t,i,e),{url:ot(n),options:i}},updateMonitoredTokensScope:async(t,a={})=>{qt("updateMonitoredTokensScope","updateMonitoredTokensScopeRequest",t);const r="/v1/w3s/config/entity/monitoredTokens/scope",n=new URL(r,it);let s;e&&(s=e.baseOptions);const i={method:"PUT",...s,...a},o={},c={};await ht(o,e),o["Content-Type"]="application/json",st(n,c);let l=s&&s.headers?s.headers:{};return i.headers={...o,...l,...a.headers},i.data=Sr(t,i,e),{url:ot(n),options:i}}}},Ux=function(e){const t=Lx(e);return{async createMonitoredTokens(a,r){const n=await t.createMonitoredTokens(a,r),s=e?.serverIndex??0,i=nt["MonitorTokensApi.createMonitoredTokens"]?.[s]?.url;return(o,c)=>ct(n,Ee,at,e)(o,i||c)},async deleteMonitoredTokens(a,r){const n=await t.deleteMonitoredTokens(a,r),s=e?.serverIndex??0,i=nt["MonitorTokensApi.deleteMonitoredTokens"]?.[s]?.url;return(o,c)=>ct(n,Ee,at,e)(o,i||c)},async listMonitoredTokens(a,r,n,s,i,o,c,l,u){const p=await t.listMonitoredTokens(a,r,n,s,i,o,c,l,u),f=e?.serverIndex??0,x=nt["MonitorTokensApi.listMonitoredTokens"]?.[f]?.url;return(m,y)=>ct(p,Ee,at,e)(m,x||y)},async updateMonitoredTokens(a,r){const n=await t.updateMonitoredTokens(a,r),s=e?.serverIndex??0,i=nt["MonitorTokensApi.updateMonitoredTokens"]?.[s]?.url;return(o,c)=>ct(n,Ee,at,e)(o,i||c)},async updateMonitoredTokensScope(a,r){const n=await t.updateMonitoredTokensScope(a,r),s=e?.serverIndex??0,i=nt["MonitorTokensApi.updateMonitoredTokensScope"]?.[s]?.url;return(o,c)=>ct(n,Ee,at,e)(o,i||c)}}},Dx=function(e,t,a){const r=Ux(e);return{createMonitoredTokens(n,s){return r.createMonitoredTokens(n,s).then(i=>i(a,t))},deleteMonitoredTokens(n,s){return r.deleteMonitoredTokens(n,s).then(i=>i(a,t))},listMonitoredTokens(n,s,i,o,c,l,u,p,f){return r.listMonitoredTokens(n,s,i,o,c,l,u,p,f).then(x=>x(a,t))},updateMonitoredTokens(n,s){return r.updateMonitoredTokens(n,s).then(i=>i(a,t))},updateMonitoredTokensScope(n,s){return r.updateMonitoredTokensScope(n,s).then(i=>i(a,t))}}},Px=function(e){return{createSubscription:async(t,a,r={})=>{qt("createSubscription","createSubscriptionRequest",t);const n="/v2/notifications/subscriptions",s=new URL(n,it);let i;e&&(i=e.baseOptions);const o={method:"POST",...i,...r},c={},l={};await ht(c,e),a!=null&&(c["X-Request-Id"]=String(a)),c["Content-Type"]="application/json",st(s,l);let u=i&&i.headers?i.headers:{};return o.headers={...c,...u,...r.headers},o.data=Sr(t,o,e),{url:ot(s),options:o}},deleteSubscription:async(t,a,r={})=>{qt("deleteSubscription","id",t);const n="/v2/notifications/subscriptions/{id}".replace("{id}",encodeURIComponent(String(t))),s=new URL(n,it);let i;e&&(i=e.baseOptions);const o={method:"DELETE",...i,...r},c={},l={};await ht(c,e),a!=null&&(c["X-Request-Id"]=String(a)),st(s,l);let u=i&&i.headers?i.headers:{};return o.headers={...c,...u,...r.headers},{url:ot(s),options:o}},getNotificationSignature:async(t,a,r={})=>{qt("getNotificationSignature","id",t);const n="/v2/notifications/publicKey/{id}".replace("{id}",encodeURIComponent(String(t))),s=new URL(n,it);let i;e&&(i=e.baseOptions);const o={method:"GET",...i,...r},c={},l={};await ht(c,e),a!=null&&(c["X-Request-Id"]=String(a)),st(s,l);let u=i&&i.headers?i.headers:{};return o.headers={...c,...u,...r.headers},{url:ot(s),options:o}},getSubscription:async(t,a,r={})=>{qt("getSubscription","id",t);const n="/v2/notifications/subscriptions/{id}".replace("{id}",encodeURIComponent(String(t))),s=new URL(n,it);let i;e&&(i=e.baseOptions);const o={method:"GET",...i,...r},c={},l={};await ht(c,e),a!=null&&(c["X-Request-Id"]=String(a)),st(s,l);let u=i&&i.headers?i.headers:{};return o.headers={...c,...u,...r.headers},{url:ot(s),options:o}},getSubscriptions:async(t={})=>{const a="/v2/notifications/subscriptions",r=new URL(a,it);let n;e&&(n=e.baseOptions);const s={method:"GET",...n,...t},i={},o={};await ht(i,e),st(r,o);let c=n&&n.headers?n.headers:{};return s.headers={...i,...c,...t.headers},{url:ot(r),options:s}},updateSubscription:async(t,a,r,n={})=>{qt("updateSubscription","id",t),qt("updateSubscription","updateSubscriptionRequest",a);const s="/v2/notifications/subscriptions/{id}".replace("{id}",encodeURIComponent(String(t))),i=new URL(s,it);let o;e&&(o=e.baseOptions);const c={method:"PATCH",...o,...n},l={},u={};await ht(l,e),r!=null&&(l["X-Request-Id"]=String(r)),l["Content-Type"]="application/json",st(i,u);let p=o&&o.headers?o.headers:{};return c.headers={...l,...p,...n.headers},c.data=Sr(a,c,e),{url:ot(i),options:c}}}},Ox=function(e){const t=Px(e);return{async createSubscription(a,r,n){const s=await t.createSubscription(a,r,n),i=e?.serverIndex??0,o=nt["WebhookSubscriptionsApi.createSubscription"]?.[i]?.url;return(c,l)=>ct(s,Ee,at,e)(c,o||l)},async deleteSubscription(a,r,n){const s=await t.deleteSubscription(a,r,n),i=e?.serverIndex??0,o=nt["WebhookSubscriptionsApi.deleteSubscription"]?.[i]?.url;return(c,l)=>ct(s,Ee,at,e)(c,o||l)},async getNotificationSignature(a,r,n){const s=await t.getNotificationSignature(a,r,n),i=e?.serverIndex??0,o=nt["WebhookSubscriptionsApi.getNotificationSignature"]?.[i]?.url;return(c,l)=>ct(s,Ee,at,e)(c,o||l)},async getSubscription(a,r,n){const s=await t.getSubscription(a,r,n),i=e?.serverIndex??0,o=nt["WebhookSubscriptionsApi.getSubscription"]?.[i]?.url;return(c,l)=>ct(s,Ee,at,e)(c,o||l)},async getSubscriptions(a){const r=await t.getSubscriptions(a),n=e?.serverIndex??0,s=nt["WebhookSubscriptionsApi.getSubscriptions"]?.[n]?.url;return(i,o)=>ct(r,Ee,at,e)(i,s||o)},async updateSubscription(a,r,n,s){const i=await t.updateSubscription(a,r,n,s),o=e?.serverIndex??0,c=nt["WebhookSubscriptionsApi.updateSubscription"]?.[o]?.url;return(l,u)=>ct(i,Ee,at,e)(l,c||u)}}},Fx=function(e,t,a){const r=Ox(e);return{createSubscription(n,s,i){return r.createSubscription(n,s,i).then(o=>o(a,t))},deleteSubscription(n,s,i){return r.deleteSubscription(n,s,i).then(o=>o(a,t))},getNotificationSignature(n,s,i){return r.getNotificationSignature(n,s,i).then(o=>o(a,t))},getSubscription(n,s,i){return r.getSubscription(n,s,i).then(o=>o(a,t))},getSubscriptions(n){return r.getSubscriptions(n).then(s=>s(a,t))},updateSubscription(n,s,i,o){return r.updateSubscription(n,s,i,o).then(c=>c(a,t))}}};var Mx=Object.defineProperty,Vx=(e,t,a)=>t in e?Mx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,nr=(e,t,a)=>Vx(e,typeof t!="symbol"?t+"":t,a);let qx=class{constructor(t={}){nr(this,"apiKey"),nr(this,"username"),nr(this,"password"),nr(this,"accessToken"),nr(this,"basePath"),nr(this,"serverIndex"),nr(this,"baseOptions"),nr(this,"formDataCtor"),this.apiKey=t.apiKey,this.username=t.username,this.password=t.password,this.accessToken=t.accessToken,this.basePath=t.basePath,this.serverIndex=t.serverIndex,this.baseOptions=t.baseOptions,this.formDataCtor=t.formDataCtor}isJsonMime(t){const a=new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return t!==null&&(a.test(t)||t.toLowerCase()==="application/json-patch+json")}};var jx=Object.defineProperty,Kx=(e,t,a)=>t in e?jx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,ha=(e,t,a)=>Kx(e,typeof t!="symbol"?t+"":t,a);class zx{constructor(t,a,r={}){ha(this,"DeveloperAccount"),ha(this,"Faucet"),ha(this,"Health"),ha(this,"MonitorTokens"),ha(this,"WebhookSubscriptions");const n=new qx({basePath:t,baseOptions:{headers:{...r,Authorization:`Bearer ${a.apiKey}`,"Content-Type":"application/json","User-Agent":`${a.userAgent?a.userAgent+" / ":""}CircleNodeJS / Configurations / ${a.version}`}}});this.DeveloperAccount=Ax(n),this.Faucet=_x(n),this.Health=Nx(n),this.MonitorTokens=Dx(n),this.WebhookSubscriptions=Fx(n)}}const vt="https://api.circle.com".replace(/\/+$/,"");class Hx extends Error{constructor(t,a){super(a),this.field=t,this.name="RequiredError"}}const gt={},xt="https://example.com",It=function(e,t,a){if(a==null)throw new Hx(t,`Required parameter ${t} was null or undefined when calling ${e}.`)},yt=async function(e,t){if(t&&t.accessToken){const a=typeof t.accessToken=="function"?await t.accessToken():await t.accessToken;e.Authorization="Bearer "+a}};function Cu(e,t,a=""){t!=null&&(typeof t=="object"?Array.isArray(t)?t.forEach(r=>Cu(e,r,a)):Object.keys(t).forEach(r=>Cu(e,t[r],`${a}${a!==""?".":""}${r}`)):e.has(a)?e.append(a,t):e.set(a,t))}const bt=function(e,...t){const a=new URLSearchParams(e.search);Cu(a,t),e.search=a.toString()},Xt=function(e,t,a){const r=typeof e!="string";return(r&&a&&a.isJsonMime?a.isJsonMime(t.headers["Content-Type"]):r)?JSON.stringify(e!==void 0?e:{}):e||""},Et=function(e){return e.pathname+e.search+e.hash},Ct=function(e,t,a,r){return(n=t,s=a)=>{const i={...e.options,url:(r?.basePath||n.defaults.baseURL||s)+e.url};return n.request(i)}},$x=function(e){return{deployContract:async(t,a,r={})=>{It("deployContract","contractDeploymentRequest",t);const n="/v1/w3s/contracts/deploy",s=new URL(n,xt);let i;e&&(i=e.baseOptions);const o={method:"POST",...i,...r},c={},l={};await yt(c,e),a!=null&&(c["X-Request-Id"]=String(a)),c["Content-Type"]="application/json",bt(s,l);let u=i&&i.headers?i.headers:{};return o.headers={...c,...u,...r.headers},o.data=Xt(t,o,e),{url:Et(s),options:o}},estimateContractDeploy:async(t,a,r={})=>{It("estimateContractDeploy","contractDeploymentEstimateFeeRequest",t);const n="/v1/w3s/contracts/deploy/estimateFee",s=new URL(n,xt);let i;e&&(i=e.baseOptions);const o={method:"POST",...i,...r},c={},l={};await yt(c,e),a!=null&&(c["X-Request-Id"]=String(a)),c["Content-Type"]="application/json",bt(s,l);let u=i&&i.headers?i.headers:{};return o.headers={...c,...u,...r.headers},o.data=Xt(t,o,e),{url:Et(s),options:o}},importContract:async(t,a,r={})=>{It("importContract","importContractRequest",t);const n="/v1/w3s/contracts/import",s=new URL(n,xt);let i;e&&(i=e.baseOptions);const o={method:"POST",...i,...r},c={},l={};await yt(c,e),a!=null&&(c["X-Request-Id"]=String(a)),c["Content-Type"]="application/json",bt(s,l);let u=i&&i.headers?i.headers:{};return o.headers={...c,...u,...r.headers},o.data=Xt(t,o,e),{url:Et(s),options:o}}}},Gx=function(e){const t=$x(e);return{async deployContract(a,r,n){const s=await t.deployContract(a,r,n),i=e?.serverIndex??0,o=gt["DeployImportApi.deployContract"]?.[i]?.url;return(c,l)=>Ct(s,Ee,vt,e)(c,o||l)},async estimateContractDeploy(a,r,n){const s=await t.estimateContractDeploy(a,r,n),i=e?.serverIndex??0,o=gt["DeployImportApi.estimateContractDeploy"]?.[i]?.url;return(c,l)=>Ct(s,Ee,vt,e)(c,o||l)},async importContract(a,r,n){const s=await t.importContract(a,r,n),i=e?.serverIndex??0,o=gt["DeployImportApi.importContract"]?.[i]?.url;return(c,l)=>Ct(s,Ee,vt,e)(c,o||l)}}},Qx=function(e,t,a){const r=Gx(e);return{deployContract(n,s,i){return r.deployContract(n,s,i).then(o=>o(a,t))},estimateContractDeploy(n,s,i){return r.estimateContractDeploy(n,s,i).then(o=>o(a,t))},importContract(n,s,i){return r.importContract(n,s,i).then(o=>o(a,t))}}},Wx=function(e){return{createEventMonitor:async(t,a,r={})=>{const n="/v1/w3s/contracts/monitors",s=new URL(n,xt);let i;e&&(i=e.baseOptions);const o={method:"POST",...i,...r},c={},l={};await yt(c,e),t!=null&&(c["X-Request-Id"]=String(t)),c["Content-Type"]="application/json",bt(s,l);let u=i&&i.headers?i.headers:{};return o.headers={...c,...u,...r.headers},o.data=Xt(a,o,e),{url:Et(s),options:o}},deleteEventMonitor:async(t,a,r={})=>{It("deleteEventMonitor","id",t);const n="/v1/w3s/contracts/monitors/{id}".replace("{id}",encodeURIComponent(String(t))),s=new URL(n,xt);let i;e&&(i=e.baseOptions);const o={method:"DELETE",...i,...r},c={},l={};await yt(c,e),a!=null&&(c["X-Request-Id"]=String(a)),bt(s,l);let u=i&&i.headers?i.headers:{};return o.headers={...c,...u,...r.headers},{url:Et(s),options:o}},getEventMonitors:async(t,a,r,n,s,i,o,c,l,u={})=>{const p="/v1/w3s/contracts/monitors",f=new URL(p,xt);let x;e&&(x=e.baseOptions);const m={method:"GET",...x,...u},y={},b={};await yt(y,e),t!==void 0&&(b.contractAddress=t),a!==void 0&&(b.blockchain=a),r!==void 0&&(b.eventSignature=r),n!==void 0&&(b.from=n instanceof Date?n.toISOString():n),s!==void 0&&(b.to=s instanceof Date?s.toISOString():s),i!==void 0&&(b.pageBefore=i),o!==void 0&&(b.pageAfter=o),c!==void 0&&(b.pageSize=c),l!=null&&(y["X-Request-Id"]=String(l)),bt(f,b);let S=x&&x.headers?x.headers:{};return m.headers={...y,...S,...u.headers},{url:Et(f),options:m}},listEventLogs:async(t,a,r,n,s,i,o,c,l={})=>{const u="/v1/w3s/contracts/events",p=new URL(u,xt);let f;e&&(f=e.baseOptions);const x={method:"GET",...f,...l},m={},y={};await yt(m,e),t!==void 0&&(y.contractAddress=t),a!==void 0&&(y.blockchain=a),r!==void 0&&(y.from=r instanceof Date?r.toISOString():r),n!==void 0&&(y.to=n instanceof Date?n.toISOString():n),s!==void 0&&(y.pageBefore=s),i!==void 0&&(y.pageAfter=i),o!==void 0&&(y.pageSize=o),c!=null&&(m["X-Request-Id"]=String(c)),bt(p,y);let b=f&&f.headers?f.headers:{};return x.headers={...m,...b,...l.headers},{url:Et(p),options:x}},updateEventMonitor:async(t,a,r,n={})=>{It("updateEventMonitor","id",t);const s="/v1/w3s/contracts/monitors/{id}".replace("{id}",encodeURIComponent(String(t))),i=new URL(s,xt);let o;e&&(o=e.baseOptions);const c={method:"PUT",...o,...n},l={},u={};await yt(l,e),a!=null&&(l["X-Request-Id"]=String(a)),l["Content-Type"]="application/json",bt(i,u);let p=o&&o.headers?o.headers:{};return c.headers={...l,...p,...n.headers},c.data=Xt(r,c,e),{url:Et(i),options:c}}}},Xx=function(e){const t=Wx(e);return{async createEventMonitor(a,r,n){const s=await t.createEventMonitor(a,r,n),i=e?.serverIndex??0,o=gt["EventMonitorsApi.createEventMonitor"]?.[i]?.url;return(c,l)=>Ct(s,Ee,vt,e)(c,o||l)},async deleteEventMonitor(a,r,n){const s=await t.deleteEventMonitor(a,r,n),i=e?.serverIndex??0,o=gt["EventMonitorsApi.deleteEventMonitor"]?.[i]?.url;return(c,l)=>Ct(s,Ee,vt,e)(c,o||l)},async getEventMonitors(a,r,n,s,i,o,c,l,u,p){const f=await t.getEventMonitors(a,r,n,s,i,o,c,l,u,p),x=e?.serverIndex??0,m=gt["EventMonitorsApi.getEventMonitors"]?.[x]?.url;return(y,b)=>Ct(f,Ee,vt,e)(y,m||b)},async listEventLogs(a,r,n,s,i,o,c,l,u){const p=await t.listEventLogs(a,r,n,s,i,o,c,l,u),f=e?.serverIndex??0,x=gt["EventMonitorsApi.listEventLogs"]?.[f]?.url;return(m,y)=>Ct(p,Ee,vt,e)(m,x||y)},async updateEventMonitor(a,r,n,s){const i=await t.updateEventMonitor(a,r,n,s),o=e?.serverIndex??0,c=gt["EventMonitorsApi.updateEventMonitor"]?.[o]?.url;return(l,u)=>Ct(i,Ee,vt,e)(l,c||u)}}},Yx=function(e,t,a){const r=Xx(e);return{createEventMonitor(n,s,i){return r.createEventMonitor(n,s,i).then(o=>o(a,t))},deleteEventMonitor(n,s,i){return r.deleteEventMonitor(n,s,i).then(o=>o(a,t))},getEventMonitors(n,s,i,o,c,l,u,p,f,x){return r.getEventMonitors(n,s,i,o,c,l,u,p,f,x).then(m=>m(a,t))},listEventLogs(n,s,i,o,c,l,u,p,f){return r.listEventLogs(n,s,i,o,c,l,u,p,f).then(x=>x(a,t))},updateEventMonitor(n,s,i,o){return r.updateEventMonitor(n,s,i,o).then(c=>c(a,t))}}},Jx=function(e){return{queryContract:async(t,a,r={})=>{It("queryContract","readContractStateRequest",t);const n="/v1/w3s/contracts/query",s=new URL(n,xt);let i;e&&(i=e.baseOptions);const o={method:"POST",...i,...r},c={},l={};await yt(c,e),a!=null&&(c["X-Request-Id"]=String(a)),c["Content-Type"]="application/json",bt(s,l);let u=i&&i.headers?i.headers:{};return o.headers={...c,...u,...r.headers},o.data=Xt(t,o,e),{url:Et(s),options:o}}}},Zx=function(e){const t=Jx(e);return{async queryContract(a,r,n){const s=await t.queryContract(a,r,n),i=e?.serverIndex??0,o=gt["InteractApi.queryContract"]?.[i]?.url;return(c,l)=>Ct(s,Ee,vt,e)(c,o||l)}}},ey=function(e,t,a){const r=Zx(e);return{queryContract(n,s,i){return r.queryContract(n,s,i).then(o=>o(a,t))}}},ty=function(e){return{deployContractTemplate:async(t,a,r,n={})=>{It("deployContractTemplate","id",t),It("deployContractTemplate","templateContractDeploymentRequest",a);const s="/v1/w3s/templates/{id}/deploy".replace("{id}",encodeURIComponent(String(t))),i=new URL(s,xt);let o;e&&(o=e.baseOptions);const c={method:"POST",...o,...n},l={},u={};await yt(l,e),r!=null&&(l["X-Request-Id"]=String(r)),l["Content-Type"]="application/json",bt(i,u);let p=o&&o.headers?o.headers:{};return c.headers={...l,...p,...n.headers},c.data=Xt(a,c,e),{url:Et(i),options:c}},estimateContractTemplateDeploy:async(t,a,r,n={})=>{It("estimateContractTemplateDeploy","id",t),It("estimateContractTemplateDeploy","contractDeploymentEstimateRequest",a);const s="/v1/w3s/templates/{id}/deploy/estimateFee".replace("{id}",encodeURIComponent(String(t))),i=new URL(s,xt);let o;e&&(o=e.baseOptions);const c={method:"POST",...o,...n},l={},u={};await yt(l,e),r!=null&&(l["X-Request-Id"]=String(r)),l["Content-Type"]="application/json",bt(i,u);let p=o&&o.headers?o.headers:{};return c.headers={...l,...p,...n.headers},c.data=Xt(a,c,e),{url:Et(i),options:c}}}},ry=function(e){const t=ty(e);return{async deployContractTemplate(a,r,n,s){const i=await t.deployContractTemplate(a,r,n,s),o=e?.serverIndex??0,c=gt["TemplatesApi.deployContractTemplate"]?.[o]?.url;return(l,u)=>Ct(i,Ee,vt,e)(l,c||u)},async estimateContractTemplateDeploy(a,r,n,s){const i=await t.estimateContractTemplateDeploy(a,r,n,s),o=e?.serverIndex??0,c=gt["TemplatesApi.estimateContractTemplateDeploy"]?.[o]?.url;return(l,u)=>Ct(i,Ee,vt,e)(l,c||u)}}},ay=function(e,t,a){const r=ry(e);return{deployContractTemplate(n,s,i,o){return r.deployContractTemplate(n,s,i,o).then(c=>c(a,t))},estimateContractTemplateDeploy(n,s,i,o){return r.estimateContractTemplateDeploy(n,s,i,o).then(c=>c(a,t))}}},ny=function(e){return{getContract:async(t,a,r={})=>{It("getContract","id",t);const n="/v1/w3s/contracts/{id}".replace("{id}",encodeURIComponent(String(t))),s=new URL(n,xt);let i;e&&(i=e.baseOptions);const o={method:"GET",...i,...r},c={},l={};await yt(c,e),a!=null&&(c["X-Request-Id"]=String(a)),bt(s,l);let u=i&&i.headers?i.headers:{};return o.headers={...c,...u,...r.headers},{url:Et(s),options:o}},listContracts:async(t,a,r,n,s,i,o,c,l,u,p,f={})=>{const x="/v1/w3s/contracts",m=new URL(x,xt);let y;e&&(y=e.baseOptions);const b={method:"GET",...y,...f},S={},B={};await yt(S,e),t!==void 0&&(B.blockchain=t),a!==void 0&&(B.contractInputType=a),r!==void 0&&(B.deployerAddress=r),n!==void 0&&(B.name=n),s!==void 0&&(B.status=s),i!==void 0&&(B.from=i instanceof Date?i.toISOString():i),o!==void 0&&(B.to=o instanceof Date?o.toISOString():o),c!==void 0&&(B.pageBefore=c),l!==void 0&&(B.pageAfter=l),u!==void 0&&(B.pageSize=u),p!=null&&(S["X-Request-Id"]=String(p)),bt(m,B);let _=y&&y.headers?y.headers:{};return b.headers={...S,..._,...f.headers},{url:Et(m),options:b}},updateContract:async(t,a,r,n={})=>{It("updateContract","id",t),It("updateContract","patchContractRequest",a);const s="/v1/w3s/contracts/{id}".replace("{id}",encodeURIComponent(String(t))),i=new URL(s,xt);let o;e&&(o=e.baseOptions);const c={method:"PATCH",...o,...n},l={},u={};await yt(l,e),r!=null&&(l["X-Request-Id"]=String(r)),l["Content-Type"]="application/json",bt(i,u);let p=o&&o.headers?o.headers:{};return c.headers={...l,...p,...n.headers},c.data=Xt(a,c,e),{url:Et(i),options:c}}}},iy=function(e){const t=ny(e);return{async getContract(a,r,n){const s=await t.getContract(a,r,n),i=e?.serverIndex??0,o=gt["ViewUpdateApi.getContract"]?.[i]?.url;return(c,l)=>Ct(s,Ee,vt,e)(c,o||l)},async listContracts(a,r,n,s,i,o,c,l,u,p,f,x){const m=await t.listContracts(a,r,n,s,i,o,c,l,u,p,f,x),y=e?.serverIndex??0,b=gt["ViewUpdateApi.listContracts"]?.[y]?.url;return(S,B)=>Ct(m,Ee,vt,e)(S,b||B)},async updateContract(a,r,n,s){const i=await t.updateContract(a,r,n,s),o=e?.serverIndex??0,c=gt["ViewUpdateApi.updateContract"]?.[o]?.url;return(l,u)=>Ct(i,Ee,vt,e)(l,c||u)}}},sy=function(e,t,a){const r=iy(e);return{getContract(n,s,i){return r.getContract(n,s,i).then(o=>o(a,t))},listContracts(n,s,i,o,c,l,u,p,f,x,m,y){return r.listContracts(n,s,i,o,c,l,u,p,f,x,m,y).then(b=>b(a,t))},updateContract(n,s,i,o){return r.updateContract(n,s,i,o).then(c=>c(a,t))}}};var oy=Object.defineProperty,cy=(e,t,a)=>t in e?oy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,ir=(e,t,a)=>cy(e,typeof t!="symbol"?t+"":t,a);class ly{constructor(t={}){ir(this,"apiKey"),ir(this,"username"),ir(this,"password"),ir(this,"accessToken"),ir(this,"basePath"),ir(this,"serverIndex"),ir(this,"baseOptions"),ir(this,"formDataCtor"),this.apiKey=t.apiKey,this.username=t.username,this.password=t.password,this.accessToken=t.accessToken,this.basePath=t.basePath,this.serverIndex=t.serverIndex,this.baseOptions=t.baseOptions,this.formDataCtor=t.formDataCtor}isJsonMime(t){const a=new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return t!==null&&(a.test(t)||t.toLowerCase()==="application/json-patch+json")}}const uy={Eth:"ETH",EthSepolia:"ETH-SEPOLIA",Matic:"MATIC",MaticAmoy:"MATIC-AMOY",Arb:"ARB",ArbSepolia:"ARB-SEPOLIA",Uni:"UNI",UniSepolia:"UNI-SEPOLIA",Base:"BASE",BaseSepolia:"BASE-SEPOLIA",Op:"OP",OpSepolia:"OP-SEPOLIA",Avax:"AVAX",AvaxFuji:"AVAX-FUJI",ArcTestnet:"ARC-TESTNET",Monad:"MONAD",MonadTestnet:"MONAD-TESTNET"};var py=Object.defineProperty,dy=(e,t,a)=>t in e?py(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,va=(e,t,a)=>dy(e,typeof t!="symbol"?t+"":t,a);class fy{constructor(t,a,r={}){va(this,"DeployImport"),va(this,"EventMonitors"),va(this,"Interact"),va(this,"Templates"),va(this,"ViewUpdate");const n=new ly({basePath:t,baseOptions:{headers:{...r,Authorization:`Bearer ${a.apiKey}`,"Content-Type":"application/json","User-Agent":`${a.userAgent?a.userAgent+" / ":""}CircleNodeJS / SmartContractPlatform / ${a.version}`}}});this.DeployImport=Qx(n),this.EventMonitors=Yx(n),this.Interact=ey(n),this.Templates=ay(n),this.ViewUpdate=sy(n)}}var my=Object.defineProperty,pf=e=>{throw TypeError(e)},hy=(e,t,a)=>t in e?my(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,Kr=(e,t,a)=>hy(e,typeof t!="symbol"?t+"":t,a),df=(e,t,a)=>t.has(e)||pf("Cannot "+a),vy=(e,t,a)=>(df(e,t,"read from private field"),a?a.call(e):t.get(e)),gy=(e,t,a)=>t.has(e)?pf("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,a),xy=(e,t,a,r)=>(df(e,t,"write to private field"),r?r.call(e,a):t.set(e,a),a),Hc;class ga extends Error{constructor({message:t,code:a,url:r,method:n,error:s}){super(t),Kr(this,"code"),Kr(this,"message"),Kr(this,"url"),Kr(this,"method"),gy(this,Hc),this.message=t??new.target.message,this.code=a??new.target.code,this.url=r,this.method=n,xy(this,Hc,s)}get error(){return vy(this,Hc)}}Hc=new WeakMap,Kr(ga,"code","UNKNOWN"),Kr(ga,"message","HTTP Error");var yy=Object.defineProperty,by=(e,t,a)=>t in e?yy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,Su=(e,t,a)=>by(e,typeof t!="symbol"?t+"":t,a);class E extends ga{constructor({message:t,code:a,url:r,method:n,status:s,error:i}){super({message:t,code:a,url:r,method:n,error:i}),Su(this,"status"),this.status=s}}Su(E,"code",-1),Su(E,"message","HTTP Response Error");var Ey=Object.defineProperty,Cy=(e,t,a)=>t in e?Ey(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,ff=(e,t,a)=>Cy(e,typeof t!="symbol"?t+"":t,a);class Rt extends ga{}ff(Rt,"code","UNKNOWN"),ff(Rt,"message","Unknown HTTP request error");var Sy=Object.defineProperty,Ty=(e,t,a)=>t in e?Sy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,mf=(e,t,a)=>Ty(e,typeof t!="symbol"?t+"":t,a);class xa extends E{}mf(xa,"code",400),mf(xa,"message","Bad Request");var wy=Object.defineProperty,Ay=(e,t,a)=>t in e?wy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,hf=(e,t,a)=>Ay(e,typeof t!="symbol"?t+"":t,a);class ya extends E{}hf(ya,"code",401),hf(ya,"message","Unauthorized");var Iy=Object.defineProperty,By=(e,t,a)=>t in e?Iy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,vf=(e,t,a)=>By(e,typeof t!="symbol"?t+"":t,a);class ba extends E{}vf(ba,"code",403),vf(ba,"message","Forbidden");var _y=Object.defineProperty,Ry=(e,t,a)=>t in e?_y(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,gf=(e,t,a)=>Ry(e,typeof t!="symbol"?t+"":t,a);class Ea extends E{}gf(Ea,"code",404),gf(Ea,"message","Not Found");var ky=Object.defineProperty,Ny=(e,t,a)=>t in e?ky(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,xf=(e,t,a)=>Ny(e,typeof t!="symbol"?t+"":t,a);class Ca extends E{}xf(Ca,"code",429),xf(Ca,"message","Too Many Requests");var Ly=Object.defineProperty,Uy=(e,t,a)=>t in e?Ly(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,yf=(e,t,a)=>Uy(e,typeof t!="symbol"?t+"":t,a);class Sa extends E{}yf(Sa,"code",500),yf(Sa,"message","Internal Server Error");var Dy=Object.defineProperty,Py=(e,t,a)=>t in e?Dy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,bf=(e,t,a)=>Py(e,typeof t!="symbol"?t+"":t,a);class Ta extends E{}bf(Ta,"code",501),bf(Ta,"message","Not Implemented");var Oy=Object.defineProperty,Fy=(e,t,a)=>t in e?Oy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,Ef=(e,t,a)=>Fy(e,typeof t!="symbol"?t+"":t,a);class wa extends E{}Ef(wa,"code",502),Ef(wa,"message","Bad Gateway");var My=Object.defineProperty,Vy=(e,t,a)=>t in e?My(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,Cf=(e,t,a)=>Vy(e,typeof t!="symbol"?t+"":t,a);class Aa extends E{}Cf(Aa,"code",503),Cf(Aa,"message","Service Unavailable");var qy=Object.defineProperty,jy=(e,t,a)=>t in e?qy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,Sf=(e,t,a)=>jy(e,typeof t!="symbol"?t+"":t,a);class Ia extends E{}Sf(Ia,"code",504),Sf(Ia,"message","Gateway Timeout");var Ky=Object.defineProperty,zy=(e,t,a)=>t in e?Ky(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,Tf=(e,t,a)=>zy(e,typeof t!="symbol"?t+"":t,a);class Ba extends Rt{}Tf(Ba,"code","ECONNREFUSED"),Tf(Ba,"message","Connection refused");var Hy=Object.defineProperty,$y=(e,t,a)=>t in e?Hy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,wf=(e,t,a)=>$y(e,typeof t!="symbol"?t+"":t,a);class _a extends Rt{}wf(_a,"code","ETIMEDOUT"),wf(_a,"message","Connection timeout");var Gy=Object.defineProperty,Qy=(e,t,a)=>t in e?Gy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,Af=(e,t,a)=>Qy(e,typeof t!="symbol"?t+"":t,a);class Ra extends Rt{}Af(Ra,"code","ECONNABORTED"),Af(Ra,"message","Request timeout");var Wy=Object.defineProperty,Xy=(e,t,a)=>t in e?Wy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,If=(e,t,a)=>Xy(e,typeof t!="symbol"?t+"":t,a);class ka extends Rt{}If(ka,"code","ENOTFOUND"),If(ka,"message","DNS lookup failed - host not found");var Yy=Object.defineProperty,Jy=(e,t,a)=>t in e?Yy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,Bf=(e,t,a)=>Jy(e,typeof t!="symbol"?t+"":t,a);class Na extends Rt{}Bf(Na,"code","EAI_AGAIN"),Bf(Na,"message","DNS lookup failed - timeout");var Zy=Object.defineProperty,e1=(e,t,a)=>t in e?Zy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,_f=(e,t,a)=>e1(e,typeof t!="symbol"?t+"":t,a);class La extends Rt{}_f(La,"code","ENETUNREACH"),_f(La,"message","Network unreachable");var t1=Object.defineProperty,r1=(e,t,a)=>t in e?t1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,Rf=(e,t,a)=>r1(e,typeof t!="symbol"?t+"":t,a);class Ua extends Rt{}Rf(Ua,"code","ECONNRESET"),Rf(Ua,"message","Connection reset");var a1=Object.defineProperty,n1=(e,t,a)=>t in e?a1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,kf=(e,t,a)=>n1(e,typeof t!="symbol"?t+"":t,a);class Da extends Rt{}kf(Da,"code","EHOSTUNREACH"),kf(Da,"message","Host unreachable");const Nf={undefined:Rt,[Ba.code]:Ba,[_a.code]:_a,[Ra.code]:Ra,[Ua.code]:Ua,[ka.code]:ka,[Na.code]:Na,[La.code]:La,[Da.code]:Da};function i1(e){return Nf[e]??Nf.undefined}function s1(e){return o1({code:e.code,message:e.message,url:e.config.url,method:e.config.method.toUpperCase(),error:e})}function o1({code:e,message:t,url:a,method:r,error:n}){const s=i1(e);return new s({message:t,code:e,url:a,method:r,error:n})}var c1=Object.defineProperty,l1=(e,t,a)=>t in e?c1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,d=(e,t,a)=>l1(e,typeof t!="symbol"?t+"":t,a);class Tu extends E{}d(Tu,"code",110700),d(Tu,"message","The input amount is outside trade limit.");class wu extends E{}d(wu,"code",110701),d(wu,"message","No quote is available with given input.");class Au extends E{}d(Au,"code",110702),d(Au,"message","No supported configurations with given input.");class Iu extends E{}d(Iu,"code",110703),d(Iu,"message","refId already exists, should be unique.");class Pa extends E{}d(Pa,"code",155101),d(Pa,"message","Existing user already created with the provided userId.");class Oa extends E{}d(Oa,"code",155102),d(Oa,"message","Cannot find the user id in the system.");class Fa extends E{}d(Fa,"code",155103),d(Fa,"message","Cannot find the user token in the system.");class Ma extends E{}d(Ma,"code",155104),d(Ma,"message","The userToken had expired.");class Va extends E{}d(Va,"code",155105),d(Va,"message","The userToken is invalid.");class qa extends E{}d(qa,"code",155106),d(qa,"message","The user had already been initialized.");class ja extends E{}d(ja,"code",155107),d(ja,"message","User has previously set a PIN. Use PUT /user/pin to reset the PIN.");class Ka extends E{}d(Ka,"code",155108),d(Ka,"message","User has previously set up their security questions, and they can't be reset.");class za extends E{}d(za,"code",155109),d(za,"message","The specified user has been disabled.");class Ha extends E{}d(Ha,"code",155110),d(Ha,"message","User has not set up a PIN yet.");class $a extends E{}d($a,"code",155111),d($a,"message","User hasn't set the security questions for PIN backup yet.");class Ga extends E{}d(Ga,"code",155112),d(Ga,"message","The user has inputted the incorrect pin.");class Qa extends E{}d(Qa,"code",155113),d(Qa,"message","Provided device ID is not found in the system.");class Wa extends E{}d(Wa,"code",155114),d(Wa,"message","Provided app ID is not recognized in the system.");class Xa extends E{}d(Xa,"code",155115),d(Xa,"message","The user has inputted the incorrect security answers");class Ya extends E{}d(Ya,"code",155116),d(Ya,"message","The challenge ID doesn't exist in the system.");class Ja extends E{}d(Ja,"code",155117),d(Ja,"message","The content provided for approval is not correct.");class Za extends E{}d(Za,"code",155118),d(Za,"message","Encryption key does not match with the user's token. Call POST /users/token to get the correct token encryption key pair.");class en extends E{}d(en,"code",155119),d(en,"message","The user's PIN input is locked. It will be unlocked after the cooldown period.");class tn extends E{}d(tn,"code",155120),d(tn,"message","The user's security questions input is locked. It will be unlocked after the cooldown period.");class rn extends E{}d(rn,"code",155121),d(rn,"message","The provided challengeId has expired.");class an extends E{}d(an,"code",155122),d(an,"message","The provided challengeId is invalid");class nn extends E{}d(nn,"code",155123),d(nn,"message","No extra information provided when adding PIN-related requests.");class sn extends E{}d(sn,"code",155124),d(sn,"message","The extra information provided for PIN-related requests is invalid.");class on extends E{}d(on,"code",155130),d(on,"message","User OTP token is expired.");class cn extends E{}d(cn,"code",155131),d(cn,"message","User OTP token is invalid.");class ln extends E{}d(ln,"code",155132),d(ln,"message","User OTP value is not found.");class un extends E{}d(un,"code",155133),d(un,"message","User OTP value is invalid.");class pn extends E{}d(pn,"code",155134),d(pn,"message","User OTP value is not matched.");class dn extends E{}d(dn,"code",155135),d(dn,"message","User's email is invalid.");class fn extends E{}d(fn,"code",155136),d(fn,"message","User's email is not matched.");class mn extends E{}d(mn,"code",155137),d(mn,"message","User's device ID is invalid.");class hn extends E{}d(hn,"code",155138),d(hn,"message","Failed to send the email.");class vn extends E{}d(vn,"code",155139),d(vn,"message","The idToken / accessToken of SSO is expired.");class gn extends E{}d(gn,"code",155140),d(gn,"message","Failed to validate the idToken/ accessToken.");class xn extends E{}d(xn,"code",155141),d(xn,"message","The user has exceeded the max limit (5) of entering OTP at the moment.");class yn extends E{}d(yn,"code",155142),d(yn,"message","The max limit (5) of sending OTP has been exceeded at the moment.");class bn extends E{}d(bn,"code",155143),d(bn,"message","The device token is expired.");class En extends E{}d(En,"code",155144),d(En,"message","The device token is invalid.");class Cn extends E{}d(Cn,"code",155145),d(Cn,"message","The device token is not found.");class Sn extends E{}d(Sn,"code",155146),d(Sn,"message","The one-time password token is invalid as the user has entered it incorrectly three times.");class Tn extends E{}d(Tn,"code",155150),d(Tn,"message","The SMTP server configuration is not found.");class wn extends E{}d(wn,"code",155151),d(wn,"message","The SMTP server configuration is invalid.");class An extends E{}d(An,"code",155152),d(An,"message","The SSO provider configuration is not found.");class In extends E{}d(In,"code",155154),d(In,"message","The OTP email template is invalid.");class Bn extends E{}d(Bn,"code",155155),d(Bn,"message","The OTP email template is not found.");class _n extends E{}d(_n,"code",155156),d(_n,"message","Failed to update the email template.");class Rn extends E{}d(Rn,"code",155157),d(Rn,"message","Failed to update the SMTP server configuration.");class kn extends E{}d(kn,"code",155158),d(kn,"message","Failed to dial to the SMTP server.");class Nn extends E{}d(Nn,"code",155159),d(Nn,"message","Failed to auth to the SMTP server.");class Ln extends E{}d(Ln,"code",155160),d(Ln,"message","Failed to send to the SMTP server.");class Un extends E{}d(Un,"code",155201),d(Un,"message","Not enough funds to fulfill the withdraw request.");class Dn extends E{}d(Dn,"code",155202),d(Dn,"message","Transaction nonce is inconsistent with sender's latest nonce.");class Pn extends E{}d(Pn,"code",155203),d(Pn,"message","User op nonce can not be larger than 0 when the smart contract wallet hasn't been deployed.");class On extends E{}d(On,"code",155204),d(On,"message","The total cost of executing transaction is higher than the balance of the user's account when estimating fee.");class Fn extends E{}d(Fn,"code",155205),d(Fn,"message","Failed to execute this request on EVM due to insufficient tokens when the estimating gas fee.");class Mn extends E{}d(Mn,"code",155206),d(Mn,"message","The sender address is not the token owner or the sender wasn't approved to commit this transaction.");class Vn extends E{}d(Vn,"code",155207),d(Vn,"message","Gas required exceeds the maximum allowance for the account. This is based on the gas fee estimate amount.");class qn extends E{}d(qn,"code",155208),d(qn,"message","Estimate fee execution reverted.");class jn extends E{}d(jn,"code",155209),d(jn,"message","ABI function signature can't pack ABI parameter.");class Kn extends E{}d(Kn,"code",155210),d(Kn,"message","Fails to perform transaction estimation.");class zn extends E{}d(zn,"code",155211),d(zn,"message","MaxFee * GasLimit exceeded the maximum permitted transaction gas fee.");class Hn extends E{}d(Hn,"code",155215),d(Hn,"message","Unsupported operation for transaction.");class $n extends E{}d($n,"code",155218),d($n,"message","Invalid number of nft in transaction request.");class Gn extends E{}d(Gn,"code",155219),d(Gn,"message","Invalid destination address.");class Qn extends E{}d(Qn,"code",155220),d(Qn,"message","Wallet and token's blockchain mismatch.");class Wn extends E{}d(Wn,"code",155221),d(Wn,"message","Invalid amounts in transfer request.");class Xn extends E{}d(Xn,"code",155222),d(Xn,"message","NFT metadata can not be found.");class Yn extends E{}d(Yn,"code",155223),d(Yn,"message","Unsupported userId for get transactions.");class Jn extends E{}d(Jn,"code",155224),d(Jn,"message","Failed to parse the provided amounts in request to decimals.");class Zn extends E{}d(Zn,"code",155225),d(Zn,"message","Wallet and request's blockchain mismatch.");class ei extends E{}d(ei,"code",155226),d(ei,"message","Invalid source address.");class ti extends E{}d(ti,"code",155227),d(ti,"message","Invalid transaction type.");class ri extends E{}d(ri,"code",155228),d(ri,"message","Missing token ID.");class ai extends E{}d(ai,"code",155229),d(ai,"message","Transaction is not eligible for operation.");class ni extends E{}d(ni,"code",155230),d(ni,"message","No abi signature provided.");class ii extends E{}d(ii,"code",155231),d(ii,"message","Transaction needs feeLevel or gasLimit provided.");class si extends E{}d(si,"code",155232),d(si,"message","SCA transaction needs feeLevel provided.");class oi extends E{}d(oi,"code",155233),d(oi,"message","Provided gasLimit is too low to complete the requested transaction.");class ci extends E{}d(ci,"code",155234),d(ci,"message","Transaction can't have both feeLevel and fee parameters provided.");class li extends E{}d(li,"code",155235),d(li,"message","EIP1559 chains need maxFee/priorityFee provided.");class ui extends E{}d(ui,"code",155236),d(ui,"message","The provided fee in request is invalid.");class pi extends E{}d(pi,"code",155237),d(pi,"message","PriorityFee cannot be larger than maxFee in creating transaction request.");class di extends E{}d(di,"code",155238),d(di,"message","Non-EIP1559 chains need gasPrice provided.");class fi extends E{}d(fi,"code",155239),d(fi,"message","Invalid token address for transfer.");class mi extends E{}d(mi,"code",155240),d(mi,"message","Invalid token standard for transfer.");class hi extends E{}d(hi,"code",155241),d(hi,"message","Invalid token decimal for transfer.");class vi extends E{}d(vi,"code",155242),d(vi,"message","The lengths of amounts and nft tokens don't match.");class gi extends E{}d(gi,"code",155243),d(gi,"message","Missing bytecode for contract deployment.");class xi extends E{}d(xi,"code",155244),d(xi,"message","Cannot provide both WalletID and SourceAddress/Blockchain.");class yi extends E{}d(yi,"code",155245),d(yi,"message","Invalid amount in contract execution request.");class bi extends E{}d(bi,"code",155247),d(bi,"message","Cannot provide both CallData and AbiFunctionSignature/AbiParameters.");class Ei extends E{}d(Ei,"code",155254),d(Ei,"message","Non-EIP1559 chains don't support maxFee/priorityFee.");class Ci extends E{}d(Ci,"code",155257),d(Ci,"message","the transfer amount is insufficient to make the destination account rent exempted or the balance of the source account is insufficient to remain rent exempted. The source address's remaining balance after transfer must be either zero or above the rent exemption threshold.");class Si extends E{}d(Si,"code",155258),d(Si,"message","The asset amount owned by the wallet is insufficient for the transaction.");class Ti extends E{}d(Ti,"code",155262),d(Ti,"message","Account is not found, could be caused by transacting from a Solana account with zero balance.");class wi extends E{}d(wi,"code",155264),d(wi,"message","Wait for pending transactions to be included on the blockchain before submitting new requests. EVM chains restrict the number of queued transactions per sender address.");class Ai extends E{}d(Ai,"code",155501),d(Ai,"message","Frozen wallets can not be updated or interact with, only query.");class Ii extends E{}d(Ii,"code",155502),d(Ii,"message","Max amount of wallets (tentative 1M) reached under 1 wallet set.");class Bi extends E{}d(Bi,"code",155503),d(Bi,"message","Metadata array length needs to match wallet count in create developer wallets request.");class _i extends E{}d(_i,"code",155504),d(_i,"message","Metadata array length needs to match number of blockchains in create user wallets request.");class Ri extends E{}d(Ri,"code",155505),d(Ri,"message","SCA wallet needs to wait for first-time transaction to be queued before processing more transactions.");class ki extends E{}d(ki,"code",155506),d(ki,"message","SCA wallet config is invalid.");class Ni extends E{}d(Ni,"code",155507),d(Ni,"message","SCA account is not supported on the given blockchain.");class Li extends E{}d(Li,"code",155508),d(Li,"message","Can't create multiple user-controlled SCA wallets across multiple blockchains at a time.");class Ui extends E{}d(Ui,"code",155509),d(Ui,"message","Entity needs to setup paymaster policy in developer console before sending transaction on mainnet");class Di extends E{}d(Di,"code",155510),d(Di,"message","The operation is not supported on the blockchain you specify.");class Pi extends E{}d(Pi,"code",155511),d(Pi,"message","Blockchain is not supported for wallet creation.");class Oi extends E{}d(Oi,"code",155512),d(Oi,"message","The owner of the SCA wallet can not be found.");class Fi extends E{}d(Fi,"code",155514),d(Fi,"message","circle_4337_v1 SCA wallet must be deployed before being upgraded.");class Mi extends E{}d(Mi,"code",155515),d(Mi,"message","The provided wallet account type is not supported by this API.");class Vi extends E{}d(Vi,"code",155516),d(Vi,"message","The source wallet was originally created on an SCA version that does not support wallet derivation.");class qi extends E{}d(qi,"code",155517),d(qi,"message","The SCA wallet is not deployed onchain.");class ji extends E{}d(ji,"code",155601),d(ji,"message","Failed to retrieve wallet set which already exists.");class Ki extends E{}d(Ki,"code",155701),d(Ki,"message","User canceled");class zi extends E{}d(zi,"code",155702),d(zi,"message","<Launch UI failed reason>");class Hi extends E{}d(Hi,"code",155703),d(Hi,"message","The code you entered is not the same as the first one.");class $i extends E{}d($i,"code",155704),d($i,"message","Your PIN can't have repeating or consecutive numbers.");class Gi extends E{}d(Gi,"code",155705),d(Gi,"message","Your hint can't be the same as the answer.");class Qi extends E{}d(Qi,"code",155706),d(Qi,"message","Network error");class Wi extends E{}d(Wi,"code",155707),d(Wi,"message","Failed to encrypt data");class Xi extends E{}d(Xi,"code",155708),d(Xi,"message",'"Biometrics instead of PIN" is disabled');class Yi extends E{}d(Yi,"code",155709),d(Yi,"message","The device system doesn't support biometrics");class Ji extends E{}d(Ji,"code",155710),d(Ji,"message","Failed to decrypt biometrics key");class Zi extends E{}d(Zi,"code",155711),d(Zi,"message","The user has not enabled biometrics yet");class es extends E{}d(es,"code",155712),d(es,"message","The user refused to enable biometrics");class ts extends E{}d(ts,"code",155713),d(ts,"message","Too many requests. Try again later");class rs extends E{}d(rs,"code",155714),d(rs,"message","Too many requests. The biometrics sensor on the device is locked.");class as extends E{}d(as,"code",155715),d(as,"message","The user didn't enable biometrics");class ns extends E{}d(ns,"code",155716),d(ns,"message","Unexpected error for biometrics");class is extends E{}d(is,"code",155717),d(is,"message","User secret is missing.");class ss extends E{}d(ss,"code",155718),d(ss,"message","User secret is invalid.");class os extends E{}d(os,"code",155719),d(os,"message","User token and SDK API execute function does not match.");class cs extends E{}d(cs,"code",155720),d(cs,"message","Social login failed.");class ls extends E{}d(ls,"code",155721),d(ls,"message","Login info is missing.");class us extends E{}d(us,"code",155801),d(us,"message","Transaction or rawTransaction is invalid.");class ps extends E{}d(ps,"code",155802),d(ps,"message","Account not found.");class ds extends E{}d(ds,"code",155803),d(ds,"message","Not signer account.");class fs extends E{}d(fs,"code",155804),d(fs,"message","Transaction already signed.");class ms extends E{}d(ms,"code",155805),d(ms,"message","Transaction failed to deserialize.");class hs extends E{}d(hs,"code",155806),d(hs,"message","The transaction size exceeds blockchain limit.");class vs extends E{}d(vs,"code",155807),d(vs,"message","The chain ID is not supported for signing.");class gs extends E{}d(gs,"code",155808),d(gs,"message","The chain ID is missing in sign request.");class xs extends E{}d(xs,"code",156001),d(xs,"message","Cannot find target wallet in the system. Either the specified wallet doesn't exist or it's not accessible to the caller.");class ys extends E{}d(ys,"code",156002),d(ys,"message","Cannot find target token in the system. Either the specified token doesn't exist or it's not accessible to the caller.");class bs extends E{}d(bs,"code",156003),d(bs,"message","Cannot find target transaction in the system. Either the specified transaction doesn't exist or it's not accessible to the caller.");class Es extends E{}d(Es,"code",156004),d(Es,"message","Reusing an entity secret ciphertext is not allowed. Please re-encrypt the entity secret to generate new ciphertext.");class Cs extends E{}d(Cs,"code",156005),d(Cs,"message","Cannot find target wallet set in the system. Either no such wallet set, or it's not accessible to the caller.");class Ss extends E{}d(Ss,"code",156006),d(Ss,"message","TEST_API key cannot be used with blockchain mainnets, or LIVE_API key cannot be used with blockchain testnets.");class Ts extends E{}d(Ts,"code",156007),d(Ts,"message","TEST_API key or LIVE_API key is not found for the request.");class ws extends E{}d(ws,"code",156008),d(ws,"message","Cannot find target entity config in the system. Either no such entity config, or it's not accessible to the caller.");class As extends E{}d(As,"code",156009),d(As,"message","Fail to parse id as UUID in url.");class Is extends E{}d(Is,"code",156010),d(Is,"message","Cannot find the corresponding entity in the system.");class Bs extends E{}d(Bs,"code",156011),d(Bs,"message","Cannot find target nftTokenId in the system.");class _s extends E{}d(_s,"code",156012),d(_s,"message","Cannot find corresponding pagination cursor in the system.");class Rs extends E{}d(Rs,"code",156013),d(Rs,"message","The provided entity secret is invalid.");class ks extends E{}d(ks,"code",156014),d(ks,"message","Pagination params are invalid. Only UUID format is supported for pageBefore and pageAfter.");class Ns extends E{}d(Ns,"code",156015),d(Ns,"message","The secret for this entity has already been set.");class Ls extends E{}d(Ls,"code",156016),d(Ls,"message","The entity secret has not been set yet. Please provide encrypted ciphertext in the console.");class Us extends E{}d(Us,"code",156017),d(Us,"message","The specified blockchain parameters are incorrect.");class Ds extends E{}d(Ds,"code",156018),d(Ds,"message","The uploaded recovery file is invalid.");class Ps extends E{}d(Ps,"code",156019),d(Ps,"message","Current entity secret is invalid. Please rotate the entity secret first.");class Os extends E{}d(Os,"code",156020),d(Os,"message","Please use a new idempotency key.");class Fs extends E{}d(Fs,"code",156021),d(Fs,"message","A new wallet set ID is required.");class Ms extends E{}d(Ms,"code",156023),d(Ms,"message","EncodedByHex is true in sign request, but the message is not hex encoded.");class Vs extends E{}d(Vs,"code",156024),d(Vs,"message","Data is not a valid JSON string in sign request.");class qs extends E{}d(qs,"code",156025),d(qs,"message","Invalid message in request.");class js extends E{}d(js,"code",156026),d(js,"message","Invalid typed data in request.");class Ks extends E{}d(Ks,"code",156027),d(Ks,"message","The specified blockchain is either not supported or deprecated.");class zs extends E{}d(zs,"code",156030),d(zs,"message","Invalid unsigned delegate action in request.");class Hs extends E{}d(Hs,"code",156031),d(Hs,"message","The specified token address is not supported.");class $s extends E{}d($s,"code",156032),d($s,"message","The provided amount is invalid.");class Gs extends E{}d(Gs,"code",175001),d(Gs,"message","contract not found");class Qs extends E{}d(Qs,"code",175002),d(Qs,"message","no ABI JSON for the target contract");class Ws extends E{}d(Ws,"code",175003),d(Ws,"message","constructor parameters length must match constructor signature");class Xs extends E{}d(Xs,"code",175004),d(Xs,"message","contract already exists");class Ys extends E{}d(Ys,"code",175005),d(Ys,"message","address is not a contract address");class Js extends E{}d(Js,"code",175006),d(Js,"message","contract is archived");class Zs extends E{}d(Zs,"code",175007),d(Zs,"message","invalid ABI JSON");class eo extends E{}d(eo,"code",175008),d(eo,"message","multi-layered proxies are not supported");class to extends E{}d(to,"code",175009),d(to,"message","contract deployment pending");class ro extends E{}d(ro,"code",175010),d(ro,"message","ABI function not found");class ao extends E{}d(ao,"code",175011),d(ao,"message","empty update on a contract");class no extends E{}d(no,"code",175012),d(no,"message","unable to query contract");class io extends E{}d(io,"code",175013),d(io,"message","ABI function is not supported");class so extends E{}d(so,"code",175201),d(so,"message","template not found");class oo extends E{}d(oo,"code",175202),d(oo,"message","deploying this template is temporarily disabled");class co extends E{}d(co,"code",175203),d(co,"message","invalid template deployment parameter");class lo extends E{}d(lo,"code",175204),d(lo,"message","missing required template deployment parameter");class uo extends E{}d(uo,"code",175205),d(uo,"message","estimation is not supported");class po extends E{}d(po,"code",175301),d(po,"message","event subscription not found");class fo extends E{}d(fo,"code",175302),d(fo,"message","event subscription already exists");class mo extends E{}d(mo,"code",175303),d(mo,"message","the specified event signature does not exist");class ho extends E{}d(ho,"code",175401),d(ho,"message","failed to parse id as UUID in url");class vo extends E{}d(vo,"code",175402),d(vo,"message","the specified blockchain is either not supported or deprecated");class go extends E{}d(go,"code",175403),d(go,"message","please use a new idempotency key");class xo extends E{}d(xo,"code",175404),d(xo,"message","TEST_API key cannot be used with blockchain mainnets, or LIVE_API key cannot be used with blockchain testnets");class yo extends E{}d(yo,"code",175405),d(yo,"message","TEST_API key or LIVE_API key is not found for the request");class bo extends E{}d(bo,"code",175406),d(bo,"message","this feature is temporarily disabled");class Eo extends E{}d(Eo,"code",175407),d(Eo,"message","the specified blockchain is currently unavailable");class Co extends E{}d(Co,"code",175408),d(Co,"message","can not find corresponding pagination cursor in the system");class So extends E{}d(So,"code",175409),d(So,"message","restricted entity cannot perform this operation");class To extends E{}d(To,"code",175410),d(To,"message","invalid address format");class wo extends E{}d(wo,"code",177001),d(wo,"message","transaction nonce is inconsistent with sender's latest nonce");class Ao extends E{}d(Ao,"code",177002),d(Ao,"message","user op nonce can not be larger than 0 when smart contract wallet hasn't been deployed");class Io extends E{}d(Io,"code",177003),d(Io,"message","failed to execute this request on EVM due to insufficient token when estimating fee");class Bo extends E{}d(Bo,"code",177004),d(Bo,"message","the total cost of executing transaction is higher than the balance of the user's account when estimating fee");class _o extends E{}d(_o,"code",177005),d(_o,"message","the sender address is not token owner or approved when estimating token transfer");class Ro extends E{}d(Ro,"code",177006),d(Ro,"message","gas required exceeds allowance when estimating fee");class ko extends E{}d(ko,"code",177007),d(ko,"message","estimate fee execution reverted");class No extends E{}d(No,"code",177008),d(No,"message","ABI function signature can't pack ABI parameter");class Lo extends E{}d(Lo,"code",177009),d(Lo,"message","fails to perform transaction estimation");class Uo extends E{}d(Uo,"code",177010),d(Uo,"message","MaxFee * GasLimit exceeds configurable max transaction fee (default is 1 native token)");class Do extends E{}d(Do,"code",177011),d(Do,"message","transaction needs feeLevel or gasLimit provided");class Po extends E{}d(Po,"code",177012),d(Po,"message","SCA transaction needs feeLevel provided");class Oo extends E{}d(Oo,"code",177013),d(Oo,"message","EIP1559 chains need maxFee/priorityFee provided");class Fo extends E{}d(Fo,"code",177014),d(Fo,"message","priorityFee cannot be larger than maxFee in creating transaction request");class Mo extends E{}d(Mo,"code",177015),d(Mo,"message","missing bytecode for contract deployment");class Vo extends E{}d(Vo,"code",177016),d(Vo,"message","cannot provide both WalletID and SourceAddress/Blockchain");class qo extends E{}d(qo,"code",177017),d(qo,"message","invalid amount in contract execution request");class jo extends E{}d(jo,"code",177018),d(jo,"message","policy is not activated and cannot be used");class Ko extends E{}d(Ko,"code",177019),d(Ko,"message","exceeded max daily transaction of the policy");class zo extends E{}d(zo,"code",177020),d(zo,"message","exceeded max spend USD per transaction of the policy");class Ho extends E{}d(Ho,"code",177021),d(Ho,"message","exceeded max spend USD daily of the policy");class $o extends E{}d($o,"code",177022),d($o,"message","exceeded max native token daily of the policy");class Go extends E{}d(Go,"code",177023),d(Go,"message","sender is in policy blocklist");class Qo extends E{}d(Qo,"code",177024),d(Qo,"message","Wallet and request's blockchain mismatch.");class Wo extends E{}d(Wo,"code",177025),d(Wo,"message","the asset amount owned by the wallet is insufficient for the transaction");class Xo extends E{}d(Xo,"code",177026),d(Xo,"message","Wait for pending transactions to be included on the blockchain before submitting new requests. EVM chains restrict the number of queued transactions per sender address.");class Yo extends E{}d(Yo,"code",177301),d(Yo,"message","wallet is Frozen");class Jo extends E{}d(Jo,"code",177302),d(Jo,"message","invalid sca wallet config");class Zo extends E{}d(Zo,"code",177303),d(Zo,"message","SCA wallet first-time transaction is still in progress");class ec extends E{}d(ec,"code",177304),d(ec,"message","SCA account is not supported on the given blockchain");class tc extends E{}d(tc,"code",177305),d(tc,"message","entity is not eligible for SCA account creation. Please check paymaster policy setup");class rc extends E{}d(rc,"code",177601),d(rc,"message","cannot find target wallet in the system. Either the specified wallet doesn't exist or it's not accessible to the caller");class ac extends E{}d(ac,"code",177602),d(ac,"message","reusing an entity secret ciphertext is not allowed. Please re-encrypt the entity secret to generate new ciphertext");class nc extends E{}d(nc,"code",177603),d(nc,"message","cannot find the corresponding entity in the system");class ic extends E{}d(ic,"code",177604),d(ic,"message","the provided entity secret is invalid");class sc extends E{}d(sc,"code",177605),d(sc,"message","the entity secret has not been set yet. Please provide encrypted ciphertext in the console");class oc extends E{}d(oc,"code",177606),d(oc,"message","current entity secret is invalid. Please rotate the entity secret first");class cc extends E{}d(cc,"code",177607),d(cc,"message","please use a new idempotency key");class lc extends E{}d(lc,"code",177901),d(lc,"message","smart contract query failed");const Lf={undefined:E,[xa.code]:xa,[ya.code]:ya,[ba.code]:ba,[Ea.code]:Ea,[Ca.code]:Ca,[Sa.code]:Sa,[Ta.code]:Ta,[wa.code]:wa,[Aa.code]:Aa,[Ia.code]:Ia,[Pa.code]:Pa,[Oa.code]:Oa,[Fa.code]:Fa,[Ma.code]:Ma,[Va.code]:Va,[qa.code]:qa,[ja.code]:ja,[Ka.code]:Ka,[za.code]:za,[Ha.code]:Ha,[$a.code]:$a,[Ga.code]:Ga,[Qa.code]:Qa,[Wa.code]:Wa,[Xa.code]:Xa,[Ya.code]:Ya,[Ja.code]:Ja,[Za.code]:Za,[en.code]:en,[tn.code]:tn,[rn.code]:rn,[an.code]:an,[nn.code]:nn,[sn.code]:sn,[on.code]:on,[cn.code]:cn,[ln.code]:ln,[un.code]:un,[pn.code]:pn,[dn.code]:dn,[fn.code]:fn,[mn.code]:mn,[hn.code]:hn,[vn.code]:vn,[gn.code]:gn,[xn.code]:xn,[yn.code]:yn,[bn.code]:bn,[En.code]:En,[Cn.code]:Cn,[Sn.code]:Sn,[Tn.code]:Tn,[wn.code]:wn,[An.code]:An,[In.code]:In,[Bn.code]:Bn,[_n.code]:_n,[Rn.code]:Rn,[kn.code]:kn,[Nn.code]:Nn,[Ln.code]:Ln,[Un.code]:Un,[Dn.code]:Dn,[Pn.code]:Pn,[On.code]:On,[Fn.code]:Fn,[Mn.code]:Mn,[Vn.code]:Vn,[qn.code]:qn,[jn.code]:jn,[Kn.code]:Kn,[zn.code]:zn,[Hn.code]:Hn,[$n.code]:$n,[Gn.code]:Gn,[Qn.code]:Qn,[Wn.code]:Wn,[Xn.code]:Xn,[Yn.code]:Yn,[Jn.code]:Jn,[Zn.code]:Zn,[ei.code]:ei,[ti.code]:ti,[ri.code]:ri,[ai.code]:ai,[ni.code]:ni,[ii.code]:ii,[si.code]:si,[oi.code]:oi,[ci.code]:ci,[li.code]:li,[ui.code]:ui,[pi.code]:pi,[di.code]:di,[fi.code]:fi,[mi.code]:mi,[hi.code]:hi,[vi.code]:vi,[gi.code]:gi,[xi.code]:xi,[yi.code]:yi,[bi.code]:bi,[Ei.code]:Ei,[Ci.code]:Ci,[Si.code]:Si,[Ti.code]:Ti,[wi.code]:wi,[Ai.code]:Ai,[Ii.code]:Ii,[Bi.code]:Bi,[_i.code]:_i,[Ri.code]:Ri,[ki.code]:ki,[Ni.code]:Ni,[Li.code]:Li,[Ui.code]:Ui,[Di.code]:Di,[Pi.code]:Pi,[Oi.code]:Oi,[Fi.code]:Fi,[Mi.code]:Mi,[Vi.code]:Vi,[qi.code]:qi,[ji.code]:ji,[Ki.code]:Ki,[zi.code]:zi,[Hi.code]:Hi,[$i.code]:$i,[Gi.code]:Gi,[Qi.code]:Qi,[Wi.code]:Wi,[Xi.code]:Xi,[Yi.code]:Yi,[Ji.code]:Ji,[Zi.code]:Zi,[es.code]:es,[ts.code]:ts,[rs.code]:rs,[as.code]:as,[ns.code]:ns,[is.code]:is,[ss.code]:ss,[os.code]:os,[cs.code]:cs,[ls.code]:ls,[us.code]:us,[ps.code]:ps,[ds.code]:ds,[fs.code]:fs,[ms.code]:ms,[hs.code]:hs,[vs.code]:vs,[gs.code]:gs,[xs.code]:xs,[ys.code]:ys,[bs.code]:bs,[Es.code]:Es,[Cs.code]:Cs,[Ss.code]:Ss,[Ts.code]:Ts,[ws.code]:ws,[As.code]:As,[Is.code]:Is,[Bs.code]:Bs,[_s.code]:_s,[Rs.code]:Rs,[ks.code]:ks,[Ns.code]:Ns,[Ls.code]:Ls,[Us.code]:Us,[Ds.code]:Ds,[Ps.code]:Ps,[Os.code]:Os,[Fs.code]:Fs,[Ms.code]:Ms,[Vs.code]:Vs,[qs.code]:qs,[js.code]:js,[Ks.code]:Ks,[zs.code]:zs,[Hs.code]:Hs,[$s.code]:$s,[Gs.code]:Gs,[Qs.code]:Qs,[Ws.code]:Ws,[Xs.code]:Xs,[Ys.code]:Ys,[Js.code]:Js,[Zs.code]:Zs,[eo.code]:eo,[to.code]:to,[ro.code]:ro,[ao.code]:ao,[no.code]:no,[io.code]:io,[so.code]:so,[oo.code]:oo,[co.code]:co,[lo.code]:lo,[uo.code]:uo,[po.code]:po,[fo.code]:fo,[mo.code]:mo,[ho.code]:ho,[vo.code]:vo,[go.code]:go,[xo.code]:xo,[yo.code]:yo,[bo.code]:bo,[Eo.code]:Eo,[Co.code]:Co,[So.code]:So,[To.code]:To,[wo.code]:wo,[Ao.code]:Ao,[Io.code]:Io,[Bo.code]:Bo,[_o.code]:_o,[Ro.code]:Ro,[ko.code]:ko,[No.code]:No,[Lo.code]:Lo,[Uo.code]:Uo,[Do.code]:Do,[Po.code]:Po,[Oo.code]:Oo,[Fo.code]:Fo,[Mo.code]:Mo,[Vo.code]:Vo,[qo.code]:qo,[jo.code]:jo,[Ko.code]:Ko,[zo.code]:zo,[Ho.code]:Ho,[$o.code]:$o,[Go.code]:Go,[Qo.code]:Qo,[Wo.code]:Wo,[Xo.code]:Xo,[Yo.code]:Yo,[Jo.code]:Jo,[Zo.code]:Zo,[ec.code]:ec,[tc.code]:tc,[rc.code]:rc,[ac.code]:ac,[nc.code]:nc,[ic.code]:ic,[sc.code]:sc,[oc.code]:oc,[cc.code]:cc,[lc.code]:lc};function u1(e){return Lf[e]??Lf.undefined}function p1(e){const t=e.response.data,a=e.response.status;return d1({code:t?.code??a,status:a,message:t?.message,url:e.config.url,method:e.config.method.toUpperCase(),error:e})}function d1({code:e,status:t,message:a,url:r,method:n,error:s}){const i=u1(e);return new i({message:a,code:e,url:r,method:n,status:t,error:s})}function tt(e){return e.response?p1(e):s1(e)}const St=e=>{const{data:t,headers:a,...r}=e;return{...r,data:t.data,headers:a}},f1=({configurationsClient:e})=>async()=>{try{return St(await e.DeveloperAccount.getPublicKey())}catch(t){throw rt(t)?tt(t):t}};var m1=Object.defineProperty,h1=(e,t,a)=>t in e?m1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,v1=(e,t,a)=>h1(e,typeof t!="symbol"?t+"":t,a);class g1{constructor(){v1(this,"data",{})}get(t){return Promise.resolve(this.data[t]??void 0)}set(t,a){return a===void 0?delete this.data[t]:this.data[t]=a,Promise.resolve()}}var ee={options:{usePureJavaScript:!1}},Bu={},x1=Bu,Uf={};Bu.encode=function(e,t,a){if(typeof t!="string")throw new TypeError('"alphabet" must be a string.');if(a!==void 0&&typeof a!="number")throw new TypeError('"maxline" must be a number.');var r="";if(!(e instanceof Uint8Array))r=y1(e,t);else{var n=0,s=t.length,i=t.charAt(0),o=[0];for(n=0;n<e.length;++n){for(var c=0,l=e[n];c<o.length;++c)l+=o[c]<<8,o[c]=l%s,l=l/s|0;for(;l>0;)o.push(l%s),l=l/s|0}for(n=0;e[n]===0&&n<e.length-1;++n)r+=i;for(n=o.length-1;n>=0;--n)r+=t[o[n]]}if(a){var u=new RegExp(".{1,"+a+"}","g");r=r.match(u).join(`\r
23
- `)}return r},Bu.decode=function(e,t){if(typeof e!="string")throw new TypeError('"input" must be a string.');if(typeof t!="string")throw new TypeError('"alphabet" must be a string.');var a=Uf[t];if(!a){a=Uf[t]=[];for(var r=0;r<t.length;++r)a[t.charCodeAt(r)]=r}e=e.replace(/\s/g,"");for(var n=t.length,s=t.charAt(0),i=[0],r=0;r<e.length;r++){var o=a[e.charCodeAt(r)];if(o===void 0)return;for(var c=0,l=o;c<i.length;++c)l+=i[c]*n,i[c]=l&255,l>>=8;for(;l>0;)i.push(l&255),l>>=8}for(var u=0;e[u]===s&&u<e.length-1;++u)i.push(0);return typeof Buffer<"u"?Buffer.from(i.reverse()):new Uint8Array(i.reverse())};function y1(e,t){var a=0,r=t.length,n=t.charAt(0),s=[0];for(a=0;a<e.length();++a){for(var i=0,o=e.at(a);i<s.length;++i)o+=s[i]<<8,s[i]=o%r,o=o/r|0;for(;o>0;)s.push(o%r),o=o/r|0}var c="";for(a=0;e.at(a)===0&&a<e.length()-1;++a)c+=n;for(a=s.length-1;a>=0;--a)c+=t[s[a]];return c}var Df=ee,Pf=x1,w=Df.util=Df.util||{};(function(){if(typeof process<"u"&&process.nextTick&&!process.browser){w.nextTick=process.nextTick,typeof setImmediate=="function"?w.setImmediate=setImmediate:w.setImmediate=w.nextTick;return}if(typeof setImmediate=="function"){w.setImmediate=function(){return setImmediate.apply(void 0,arguments)},w.nextTick=function(i){return setImmediate(i)};return}if(w.setImmediate=function(i){setTimeout(i,0)},typeof window<"u"&&typeof window.postMessage=="function"){let i=function(o){if(o.source===window&&o.data===e){o.stopPropagation();var c=t.slice();t.length=0,c.forEach(function(l){l()})}};var e="forge.setImmediate",t=[];w.setImmediate=function(o){t.push(o),t.length===1&&window.postMessage(e,"*")},window.addEventListener("message",i,!0)}if(typeof MutationObserver<"u"){var a=Date.now(),r=!0,n=document.createElement("div"),t=[];new MutationObserver(function(){var o=t.slice();t.length=0,o.forEach(function(c){c()})}).observe(n,{attributes:!0});var s=w.setImmediate;w.setImmediate=function(o){Date.now()-a>15?(a=Date.now(),s(o)):(t.push(o),t.length===1&&n.setAttribute("a",r=!r))}}w.nextTick=w.setImmediate})(),w.isNodejs=typeof process<"u"&&process.versions&&process.versions.node,w.globalScope=function(){return w.isNodejs?zm:typeof self>"u"?window:self}(),w.isArray=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"},w.isArrayBuffer=function(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer},w.isArrayBufferView=function(e){return e&&w.isArrayBuffer(e.buffer)&&e.byteLength!==void 0};function uc(e){if(!(e===8||e===16||e===24||e===32))throw new Error("Only 8, 16, 24, or 32 bits supported: "+e)}w.ByteBuffer=_u;function _u(e){if(this.data="",this.read=0,typeof e=="string")this.data=e;else if(w.isArrayBuffer(e)||w.isArrayBufferView(e))if(typeof Buffer<"u"&&e instanceof Buffer)this.data=e.toString("binary");else{var t=new Uint8Array(e);try{this.data=String.fromCharCode.apply(null,t)}catch{for(var a=0;a<t.length;++a)this.putByte(t[a])}}else(e instanceof _u||typeof e=="object"&&typeof e.data=="string"&&typeof e.read=="number")&&(this.data=e.data,this.read=e.read);this._constructedStringLength=0}w.ByteStringBuffer=_u;var b1=4096;w.ByteStringBuffer.prototype._optimizeConstructedString=function(e){this._constructedStringLength+=e,this._constructedStringLength>b1&&(this.data.substr(0,1),this._constructedStringLength=0)},w.ByteStringBuffer.prototype.length=function(){return this.data.length-this.read},w.ByteStringBuffer.prototype.isEmpty=function(){return this.length()<=0},w.ByteStringBuffer.prototype.putByte=function(e){return this.putBytes(String.fromCharCode(e))},w.ByteStringBuffer.prototype.fillWithByte=function(e,t){e=String.fromCharCode(e);for(var a=this.data;t>0;)t&1&&(a+=e),t>>>=1,t>0&&(e+=e);return this.data=a,this._optimizeConstructedString(t),this},w.ByteStringBuffer.prototype.putBytes=function(e){return this.data+=e,this._optimizeConstructedString(e.length),this},w.ByteStringBuffer.prototype.putString=function(e){return this.putBytes(w.encodeUtf8(e))},w.ByteStringBuffer.prototype.putInt16=function(e){return this.putBytes(String.fromCharCode(e>>8&255)+String.fromCharCode(e&255))},w.ByteStringBuffer.prototype.putInt24=function(e){return this.putBytes(String.fromCharCode(e>>16&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(e&255))},w.ByteStringBuffer.prototype.putInt32=function(e){return this.putBytes(String.fromCharCode(e>>24&255)+String.fromCharCode(e>>16&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(e&255))},w.ByteStringBuffer.prototype.putInt16Le=function(e){return this.putBytes(String.fromCharCode(e&255)+String.fromCharCode(e>>8&255))},w.ByteStringBuffer.prototype.putInt24Le=function(e){return this.putBytes(String.fromCharCode(e&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(e>>16&255))},w.ByteStringBuffer.prototype.putInt32Le=function(e){return this.putBytes(String.fromCharCode(e&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(e>>16&255)+String.fromCharCode(e>>24&255))},w.ByteStringBuffer.prototype.putInt=function(e,t){uc(t);var a="";do t-=8,a+=String.fromCharCode(e>>t&255);while(t>0);return this.putBytes(a)},w.ByteStringBuffer.prototype.putSignedInt=function(e,t){return e<0&&(e+=2<<t-1),this.putInt(e,t)},w.ByteStringBuffer.prototype.putBuffer=function(e){return this.putBytes(e.getBytes())},w.ByteStringBuffer.prototype.getByte=function(){return this.data.charCodeAt(this.read++)},w.ByteStringBuffer.prototype.getInt16=function(){var e=this.data.charCodeAt(this.read)<<8^this.data.charCodeAt(this.read+1);return this.read+=2,e},w.ByteStringBuffer.prototype.getInt24=function(){var e=this.data.charCodeAt(this.read)<<16^this.data.charCodeAt(this.read+1)<<8^this.data.charCodeAt(this.read+2);return this.read+=3,e},w.ByteStringBuffer.prototype.getInt32=function(){var e=this.data.charCodeAt(this.read)<<24^this.data.charCodeAt(this.read+1)<<16^this.data.charCodeAt(this.read+2)<<8^this.data.charCodeAt(this.read+3);return this.read+=4,e},w.ByteStringBuffer.prototype.getInt16Le=function(){var e=this.data.charCodeAt(this.read)^this.data.charCodeAt(this.read+1)<<8;return this.read+=2,e},w.ByteStringBuffer.prototype.getInt24Le=function(){var e=this.data.charCodeAt(this.read)^this.data.charCodeAt(this.read+1)<<8^this.data.charCodeAt(this.read+2)<<16;return this.read+=3,e},w.ByteStringBuffer.prototype.getInt32Le=function(){var e=this.data.charCodeAt(this.read)^this.data.charCodeAt(this.read+1)<<8^this.data.charCodeAt(this.read+2)<<16^this.data.charCodeAt(this.read+3)<<24;return this.read+=4,e},w.ByteStringBuffer.prototype.getInt=function(e){uc(e);var t=0;do t=(t<<8)+this.data.charCodeAt(this.read++),e-=8;while(e>0);return t},w.ByteStringBuffer.prototype.getSignedInt=function(e){var t=this.getInt(e),a=2<<e-2;return t>=a&&(t-=a<<1),t},w.ByteStringBuffer.prototype.getBytes=function(e){var t;return e?(e=Math.min(this.length(),e),t=this.data.slice(this.read,this.read+e),this.read+=e):e===0?t="":(t=this.read===0?this.data:this.data.slice(this.read),this.clear()),t},w.ByteStringBuffer.prototype.bytes=function(e){return typeof e>"u"?this.data.slice(this.read):this.data.slice(this.read,this.read+e)},w.ByteStringBuffer.prototype.at=function(e){return this.data.charCodeAt(this.read+e)},w.ByteStringBuffer.prototype.setAt=function(e,t){return this.data=this.data.substr(0,this.read+e)+String.fromCharCode(t)+this.data.substr(this.read+e+1),this},w.ByteStringBuffer.prototype.last=function(){return this.data.charCodeAt(this.data.length-1)},w.ByteStringBuffer.prototype.copy=function(){var e=w.createBuffer(this.data);return e.read=this.read,e},w.ByteStringBuffer.prototype.compact=function(){return this.read>0&&(this.data=this.data.slice(this.read),this.read=0),this},w.ByteStringBuffer.prototype.clear=function(){return this.data="",this.read=0,this},w.ByteStringBuffer.prototype.truncate=function(e){var t=Math.max(0,this.length()-e);return this.data=this.data.substr(this.read,t),this.read=0,this},w.ByteStringBuffer.prototype.toHex=function(){for(var e="",t=this.read;t<this.data.length;++t){var a=this.data.charCodeAt(t);a<16&&(e+="0"),e+=a.toString(16)}return e},w.ByteStringBuffer.prototype.toString=function(){return w.decodeUtf8(this.bytes())};function E1(e,t){t=t||{},this.read=t.readOffset||0,this.growSize=t.growSize||1024;var a=w.isArrayBuffer(e),r=w.isArrayBufferView(e);if(a||r){a?this.data=new DataView(e):this.data=new DataView(e.buffer,e.byteOffset,e.byteLength),this.write="writeOffset"in t?t.writeOffset:this.data.byteLength;return}this.data=new DataView(new ArrayBuffer(0)),this.write=0,e!=null&&this.putBytes(e),"writeOffset"in t&&(this.write=t.writeOffset)}w.DataBuffer=E1,w.DataBuffer.prototype.length=function(){return this.write-this.read},w.DataBuffer.prototype.isEmpty=function(){return this.length()<=0},w.DataBuffer.prototype.accommodate=function(e,t){if(this.length()>=e)return this;t=Math.max(t||this.growSize,e);var a=new Uint8Array(this.data.buffer,this.data.byteOffset,this.data.byteLength),r=new Uint8Array(this.length()+t);return r.set(a),this.data=new DataView(r.buffer),this},w.DataBuffer.prototype.putByte=function(e){return this.accommodate(1),this.data.setUint8(this.write++,e),this},w.DataBuffer.prototype.fillWithByte=function(e,t){this.accommodate(t);for(var a=0;a<t;++a)this.data.setUint8(e);return this},w.DataBuffer.prototype.putBytes=function(e,t){if(w.isArrayBufferView(e)){var a=new Uint8Array(e.buffer,e.byteOffset,e.byteLength),r=a.byteLength-a.byteOffset;this.accommodate(r);var n=new Uint8Array(this.data.buffer,this.write);return n.set(a),this.write+=r,this}if(w.isArrayBuffer(e)){var a=new Uint8Array(e);this.accommodate(a.byteLength);var n=new Uint8Array(this.data.buffer);return n.set(a,this.write),this.write+=a.byteLength,this}if(e instanceof w.DataBuffer||typeof e=="object"&&typeof e.read=="number"&&typeof e.write=="number"&&w.isArrayBufferView(e.data)){var a=new Uint8Array(e.data.byteLength,e.read,e.length());this.accommodate(a.byteLength);var n=new Uint8Array(e.data.byteLength,this.write);return n.set(a),this.write+=a.byteLength,this}if(e instanceof w.ByteStringBuffer&&(e=e.data,t="binary"),t=t||"binary",typeof e=="string"){var s;if(t==="hex")return this.accommodate(Math.ceil(e.length/2)),s=new Uint8Array(this.data.buffer,this.write),this.write+=w.binary.hex.decode(e,s,this.write),this;if(t==="base64")return this.accommodate(Math.ceil(e.length/4)*3),s=new Uint8Array(this.data.buffer,this.write),this.write+=w.binary.base64.decode(e,s,this.write),this;if(t==="utf8"&&(e=w.encodeUtf8(e),t="binary"),t==="binary"||t==="raw")return this.accommodate(e.length),s=new Uint8Array(this.data.buffer,this.write),this.write+=w.binary.raw.decode(s),this;if(t==="utf16")return this.accommodate(e.length*2),s=new Uint16Array(this.data.buffer,this.write),this.write+=w.text.utf16.encode(s),this;throw new Error("Invalid encoding: "+t)}throw Error("Invalid parameter: "+e)},w.DataBuffer.prototype.putBuffer=function(e){return this.putBytes(e),e.clear(),this},w.DataBuffer.prototype.putString=function(e){return this.putBytes(e,"utf16")},w.DataBuffer.prototype.putInt16=function(e){return this.accommodate(2),this.data.setInt16(this.write,e),this.write+=2,this},w.DataBuffer.prototype.putInt24=function(e){return this.accommodate(3),this.data.setInt16(this.write,e>>8&65535),this.data.setInt8(this.write,e>>16&255),this.write+=3,this},w.DataBuffer.prototype.putInt32=function(e){return this.accommodate(4),this.data.setInt32(this.write,e),this.write+=4,this},w.DataBuffer.prototype.putInt16Le=function(e){return this.accommodate(2),this.data.setInt16(this.write,e,!0),this.write+=2,this},w.DataBuffer.prototype.putInt24Le=function(e){return this.accommodate(3),this.data.setInt8(this.write,e>>16&255),this.data.setInt16(this.write,e>>8&65535,!0),this.write+=3,this},w.DataBuffer.prototype.putInt32Le=function(e){return this.accommodate(4),this.data.setInt32(this.write,e,!0),this.write+=4,this},w.DataBuffer.prototype.putInt=function(e,t){uc(t),this.accommodate(t/8);do t-=8,this.data.setInt8(this.write++,e>>t&255);while(t>0);return this},w.DataBuffer.prototype.putSignedInt=function(e,t){return uc(t),this.accommodate(t/8),e<0&&(e+=2<<t-1),this.putInt(e,t)},w.DataBuffer.prototype.getByte=function(){return this.data.getInt8(this.read++)},w.DataBuffer.prototype.getInt16=function(){var e=this.data.getInt16(this.read);return this.read+=2,e},w.DataBuffer.prototype.getInt24=function(){var e=this.data.getInt16(this.read)<<8^this.data.getInt8(this.read+2);return this.read+=3,e},w.DataBuffer.prototype.getInt32=function(){var e=this.data.getInt32(this.read);return this.read+=4,e},w.DataBuffer.prototype.getInt16Le=function(){var e=this.data.getInt16(this.read,!0);return this.read+=2,e},w.DataBuffer.prototype.getInt24Le=function(){var e=this.data.getInt8(this.read)^this.data.getInt16(this.read+1,!0)<<8;return this.read+=3,e},w.DataBuffer.prototype.getInt32Le=function(){var e=this.data.getInt32(this.read,!0);return this.read+=4,e},w.DataBuffer.prototype.getInt=function(e){uc(e);var t=0;do t=(t<<8)+this.data.getInt8(this.read++),e-=8;while(e>0);return t},w.DataBuffer.prototype.getSignedInt=function(e){var t=this.getInt(e),a=2<<e-2;return t>=a&&(t-=a<<1),t},w.DataBuffer.prototype.getBytes=function(e){var t;return e?(e=Math.min(this.length(),e),t=this.data.slice(this.read,this.read+e),this.read+=e):e===0?t="":(t=this.read===0?this.data:this.data.slice(this.read),this.clear()),t},w.DataBuffer.prototype.bytes=function(e){return typeof e>"u"?this.data.slice(this.read):this.data.slice(this.read,this.read+e)},w.DataBuffer.prototype.at=function(e){return this.data.getUint8(this.read+e)},w.DataBuffer.prototype.setAt=function(e,t){return this.data.setUint8(e,t),this},w.DataBuffer.prototype.last=function(){return this.data.getUint8(this.write-1)},w.DataBuffer.prototype.copy=function(){return new w.DataBuffer(this)},w.DataBuffer.prototype.compact=function(){if(this.read>0){var e=new Uint8Array(this.data.buffer,this.read),t=new Uint8Array(e.byteLength);t.set(e),this.data=new DataView(t),this.write-=this.read,this.read=0}return this},w.DataBuffer.prototype.clear=function(){return this.data=new DataView(new ArrayBuffer(0)),this.read=this.write=0,this},w.DataBuffer.prototype.truncate=function(e){return this.write=Math.max(0,this.length()-e),this.read=Math.min(this.read,this.write),this},w.DataBuffer.prototype.toHex=function(){for(var e="",t=this.read;t<this.data.byteLength;++t){var a=this.data.getUint8(t);a<16&&(e+="0"),e+=a.toString(16)}return e},w.DataBuffer.prototype.toString=function(e){var t=new Uint8Array(this.data,this.read,this.length());if(e=e||"utf8",e==="binary"||e==="raw")return w.binary.raw.encode(t);if(e==="hex")return w.binary.hex.encode(t);if(e==="base64")return w.binary.base64.encode(t);if(e==="utf8")return w.text.utf8.decode(t);if(e==="utf16")return w.text.utf16.decode(t);throw new Error("Invalid encoding: "+e)},w.createBuffer=function(e,t){return t=t||"raw",e!==void 0&&t==="utf8"&&(e=w.encodeUtf8(e)),new w.ByteBuffer(e)},w.fillString=function(e,t){for(var a="";t>0;)t&1&&(a+=e),t>>>=1,t>0&&(e+=e);return a},w.xorBytes=function(e,t,a){for(var r="",n="",s="",i=0,o=0;a>0;--a,++i)n=e.charCodeAt(i)^t.charCodeAt(i),o>=10&&(r+=s,s="",o=0),s+=String.fromCharCode(n),++o;return r+=s,r},w.hexToBytes=function(e){var t="",a=0;for(e.length&!0&&(a=1,t+=String.fromCharCode(parseInt(e[0],16)));a<e.length;a+=2)t+=String.fromCharCode(parseInt(e.substr(a,2),16));return t},w.bytesToHex=function(e){return w.createBuffer(e).toHex()},w.int32ToBytes=function(e){return String.fromCharCode(e>>24&255)+String.fromCharCode(e>>16&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(e&255)};var sr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",or=[62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,64,-1,-1,-1,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,-1,-1,-1,-1,-1,-1,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],Of="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";w.encode64=function(e,t){for(var a="",r="",n,s,i,o=0;o<e.length;)n=e.charCodeAt(o++),s=e.charCodeAt(o++),i=e.charCodeAt(o++),a+=sr.charAt(n>>2),a+=sr.charAt((n&3)<<4|s>>4),isNaN(s)?a+="==":(a+=sr.charAt((s&15)<<2|i>>6),a+=isNaN(i)?"=":sr.charAt(i&63)),t&&a.length>t&&(r+=a.substr(0,t)+`\r
24
- `,a=a.substr(t));return r+=a,r},w.decode64=function(e){e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");for(var t="",a,r,n,s,i=0;i<e.length;)a=or[e.charCodeAt(i++)-43],r=or[e.charCodeAt(i++)-43],n=or[e.charCodeAt(i++)-43],s=or[e.charCodeAt(i++)-43],t+=String.fromCharCode(a<<2|r>>4),n!==64&&(t+=String.fromCharCode((r&15)<<4|n>>2),s!==64&&(t+=String.fromCharCode((n&3)<<6|s)));return t},w.encodeUtf8=function(e){return unescape(encodeURIComponent(e))},w.decodeUtf8=function(e){return decodeURIComponent(escape(e))},w.binary={raw:{},hex:{},base64:{},base58:{},baseN:{encode:Pf.encode,decode:Pf.decode}},w.binary.raw.encode=function(e){return String.fromCharCode.apply(null,e)},w.binary.raw.decode=function(e,t,a){var r=t;r||(r=new Uint8Array(e.length)),a=a||0;for(var n=a,s=0;s<e.length;++s)r[n++]=e.charCodeAt(s);return t?n-a:r},w.binary.hex.encode=w.bytesToHex,w.binary.hex.decode=function(e,t,a){var r=t;r||(r=new Uint8Array(Math.ceil(e.length/2))),a=a||0;var n=0,s=a;for(e.length&1&&(n=1,r[s++]=parseInt(e[0],16));n<e.length;n+=2)r[s++]=parseInt(e.substr(n,2),16);return t?s-a:r},w.binary.base64.encode=function(e,t){for(var a="",r="",n,s,i,o=0;o<e.byteLength;)n=e[o++],s=e[o++],i=e[o++],a+=sr.charAt(n>>2),a+=sr.charAt((n&3)<<4|s>>4),isNaN(s)?a+="==":(a+=sr.charAt((s&15)<<2|i>>6),a+=isNaN(i)?"=":sr.charAt(i&63)),t&&a.length>t&&(r+=a.substr(0,t)+`\r
25
- `,a=a.substr(t));return r+=a,r},w.binary.base64.decode=function(e,t,a){var r=t;r||(r=new Uint8Array(Math.ceil(e.length/4)*3)),e=e.replace(/[^A-Za-z0-9\+\/\=]/g,""),a=a||0;for(var n,s,i,o,c=0,l=a;c<e.length;)n=or[e.charCodeAt(c++)-43],s=or[e.charCodeAt(c++)-43],i=or[e.charCodeAt(c++)-43],o=or[e.charCodeAt(c++)-43],r[l++]=n<<2|s>>4,i!==64&&(r[l++]=(s&15)<<4|i>>2,o!==64&&(r[l++]=(i&3)<<6|o));return t?l-a:r.subarray(0,l)},w.binary.base58.encode=function(e,t){return w.binary.baseN.encode(e,Of,t)},w.binary.base58.decode=function(e,t){return w.binary.baseN.decode(e,Of,t)},w.text={utf8:{},utf16:{}},w.text.utf8.encode=function(e,t,a){e=w.encodeUtf8(e);var r=t;r||(r=new Uint8Array(e.length)),a=a||0;for(var n=a,s=0;s<e.length;++s)r[n++]=e.charCodeAt(s);return t?n-a:r},w.text.utf8.decode=function(e){return w.decodeUtf8(String.fromCharCode.apply(null,e))},w.text.utf16.encode=function(e,t,a){var r=t;r||(r=new Uint8Array(e.length*2));var n=new Uint16Array(r.buffer);a=a||0;for(var s=a,i=a,o=0;o<e.length;++o)n[i++]=e.charCodeAt(o),s+=2;return t?s-a:r},w.text.utf16.decode=function(e){return String.fromCharCode.apply(null,new Uint16Array(e.buffer))},w.deflate=function(e,t,a){if(t=w.decode64(e.deflate(w.encode64(t)).rval),a){var r=2,n=t.charCodeAt(1);n&32&&(r=6),t=t.substring(r,t.length-4)}return t},w.inflate=function(e,t,a){var r=e.inflate(w.encode64(t)).rval;return r===null?null:w.decode64(r)};var Ru=function(e,t,a){if(!e)throw new Error("WebStorage not available.");var r;if(a===null?r=e.removeItem(t):(a=w.encode64(JSON.stringify(a)),r=e.setItem(t,a)),typeof r<"u"&&r.rval!==!0){var n=new Error(r.error.message);throw n.id=r.error.id,n.name=r.error.name,n}},ku=function(e,t){if(!e)throw new Error("WebStorage not available.");var a=e.getItem(t);if(e.init)if(a.rval===null){if(a.error){var r=new Error(a.error.message);throw r.id=a.error.id,r.name=a.error.name,r}a=null}else a=a.rval;return a!==null&&(a=JSON.parse(w.decode64(a))),a},C1=function(e,t,a,r){var n=ku(e,t);n===null&&(n={}),n[a]=r,Ru(e,t,n)},S1=function(e,t,a){var r=ku(e,t);return r!==null&&(r=a in r?r[a]:null),r},T1=function(e,t,a){var r=ku(e,t);if(r!==null&&a in r){delete r[a];var n=!0;for(var s in r){n=!1;break}n&&(r=null),Ru(e,t,r)}},w1=function(e,t){Ru(e,t,null)},$c=function(e,t,a){var r=null;typeof a>"u"&&(a=["web","flash"]);var n,s=!1,i=null;for(var o in a){n=a[o];try{if(n==="flash"||n==="both"){if(t[0]===null)throw new Error("Flash local storage not available.");r=e.apply(this,t),s=n==="flash"}(n==="web"||n==="both")&&(t[0]=localStorage,r=e.apply(this,t),s=!0)}catch(c){i=c}if(s)break}if(!s)throw i;return r};w.setItem=function(e,t,a,r,n){$c(C1,arguments,n)},w.getItem=function(e,t,a,r){return $c(S1,arguments,r)},w.removeItem=function(e,t,a,r){$c(T1,arguments,r)},w.clearItems=function(e,t,a){$c(w1,arguments,a)},w.isEmpty=function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0},w.format=function(e){for(var t=/%./g,a,r,n=0,s=[],i=0;a=t.exec(e);){r=e.substring(i,t.lastIndex-2),r.length>0&&s.push(r),i=t.lastIndex;var o=a[0][1];switch(o){case"s":case"o":n<arguments.length?s.push(arguments[n+++1]):s.push("<?>");break;case"%":s.push("%");break;default:s.push("<%"+o+"?>")}}return s.push(e.substring(i)),s.join("")},w.formatNumber=function(e,t,a,r){var n=e,s=isNaN(t=Math.abs(t))?2:t,i=a===void 0?",":a,o=r===void 0?".":r,c=n<0?"-":"",l=parseInt(n=Math.abs(+n||0).toFixed(s),10)+"",u=l.length>3?l.length%3:0;return c+(u?l.substr(0,u)+o:"")+l.substr(u).replace(/(\d{3})(?=\d)/g,"$1"+o)+(s?i+Math.abs(n-l).toFixed(s).slice(2):"")},w.formatSize=function(e){return e>=1073741824?e=w.formatNumber(e/1073741824,2,".","")+" GiB":e>=1048576?e=w.formatNumber(e/1048576,2,".","")+" MiB":e>=1024?e=w.formatNumber(e/1024,0)+" KiB":e=w.formatNumber(e,0)+" bytes",e},w.bytesFromIP=function(e){return e.indexOf(".")!==-1?w.bytesFromIPv4(e):e.indexOf(":")!==-1?w.bytesFromIPv6(e):null},w.bytesFromIPv4=function(e){if(e=e.split("."),e.length!==4)return null;for(var t=w.createBuffer(),a=0;a<e.length;++a){var r=parseInt(e[a],10);if(isNaN(r))return null;t.putByte(r)}return t.getBytes()},w.bytesFromIPv6=function(e){var t=0;e=e.split(":").filter(function(i){return i.length===0&&++t,!0});for(var a=(8-e.length+t)*2,r=w.createBuffer(),n=0;n<8;++n){if(!e[n]||e[n].length===0){r.fillWithByte(0,a),a=0;continue}var s=w.hexToBytes(e[n]);s.length<2&&r.putByte(0),r.putBytes(s)}return r.getBytes()},w.bytesToIP=function(e){return e.length===4?w.bytesToIPv4(e):e.length===16?w.bytesToIPv6(e):null},w.bytesToIPv4=function(e){if(e.length!==4)return null;for(var t=[],a=0;a<e.length;++a)t.push(e.charCodeAt(a));return t.join(".")},w.bytesToIPv6=function(e){if(e.length!==16)return null;for(var t=[],a=[],r=0,n=0;n<e.length;n+=2){for(var s=w.bytesToHex(e[n]+e[n+1]);s[0]==="0"&&s!=="0";)s=s.substr(1);if(s==="0"){var i=a[a.length-1],o=t.length;!i||o!==i.end+1?a.push({start:o,end:o}):(i.end=o,i.end-i.start>a[r].end-a[r].start&&(r=a.length-1))}t.push(s)}if(a.length>0){var c=a[r];c.end-c.start>0&&(t.splice(c.start,c.end-c.start+1,""),c.start===0&&t.unshift(""),c.end===7&&t.push(""))}return t.join(":")},w.estimateCores=function(e,t){if(typeof e=="function"&&(t=e,e={}),e=e||{},"cores"in w&&!e.update)return t(null,w.cores);if(typeof navigator<"u"&&"hardwareConcurrency"in navigator&&navigator.hardwareConcurrency>0)return w.cores=navigator.hardwareConcurrency,t(null,w.cores);if(typeof Worker>"u")return w.cores=1,t(null,w.cores);if(typeof Blob>"u")return w.cores=2,t(null,w.cores);var a=URL.createObjectURL(new Blob(["(",function(){self.addEventListener("message",function(i){var o=Date.now(),c=o+4;self.postMessage({st:o,et:c})})}.toString(),")()"],{type:"application/javascript"}));r([],5,16);function r(i,o,c){if(o===0){var l=Math.floor(i.reduce(function(u,p){return u+p},0)/i.length);return w.cores=Math.max(1,l),URL.revokeObjectURL(a),t(null,w.cores)}n(c,function(u,p){i.push(s(c,p)),r(i,o-1,c)})}function n(i,o){for(var c=[],l=[],u=0;u<i;++u){var p=new Worker(a);p.addEventListener("message",function(f){if(l.push(f.data),l.length===i){for(var x=0;x<i;++x)c[x].terminate();o(null,l)}}),c.push(p)}for(var u=0;u<i;++u)c[u].postMessage(u)}function s(i,o){for(var c=[],l=0;l<i;++l)for(var u=o[l],p=c[l]=[],f=0;f<i;++f)if(l!==f){var x=o[f];(u.st>x.st&&u.st<x.et||x.st>u.st&&x.st<u.et)&&p.push(f)}return c.reduce(function(m,y){return Math.max(m,y.length)},0)}};var Ve=ee;Ve.cipher=Ve.cipher||{},Ve.cipher.algorithms=Ve.cipher.algorithms||{},Ve.cipher.createCipher=function(e,t){var a=e;if(typeof a=="string"&&(a=Ve.cipher.getAlgorithm(a),a&&(a=a())),!a)throw new Error("Unsupported algorithm: "+e);return new Ve.cipher.BlockCipher({algorithm:a,key:t,decrypt:!1})},Ve.cipher.createDecipher=function(e,t){var a=e;if(typeof a=="string"&&(a=Ve.cipher.getAlgorithm(a),a&&(a=a())),!a)throw new Error("Unsupported algorithm: "+e);return new Ve.cipher.BlockCipher({algorithm:a,key:t,decrypt:!0})},Ve.cipher.registerAlgorithm=function(e,t){e=e.toUpperCase(),Ve.cipher.algorithms[e]=t},Ve.cipher.getAlgorithm=function(e){return e=e.toUpperCase(),e in Ve.cipher.algorithms?Ve.cipher.algorithms[e]:null};var Nu=Ve.cipher.BlockCipher=function(e){this.algorithm=e.algorithm,this.mode=this.algorithm.mode,this.blockSize=this.mode.blockSize,this._finish=!1,this._input=null,this.output=null,this._op=e.decrypt?this.mode.decrypt:this.mode.encrypt,this._decrypt=e.decrypt,this.algorithm.initialize(e)};Nu.prototype.start=function(e){e=e||{};var t={};for(var a in e)t[a]=e[a];t.decrypt=this._decrypt,this._finish=!1,this._input=Ve.util.createBuffer(),this.output=e.output||Ve.util.createBuffer(),this.mode.start(t)},Nu.prototype.update=function(e){for(e&&this._input.putBuffer(e);!this._op.call(this.mode,this._input,this.output,this._finish)&&!this._finish;);this._input.compact()},Nu.prototype.finish=function(e){e&&(this.mode.name==="ECB"||this.mode.name==="CBC")&&(this.mode.pad=function(a){return e(this.blockSize,a,!1)},this.mode.unpad=function(a){return e(this.blockSize,a,!0)});var t={};return t.decrypt=this._decrypt,t.overflow=this._input.length()%this.blockSize,!(!this._decrypt&&this.mode.pad&&!this.mode.pad(this._input,t)||(this._finish=!0,this.update(),this._decrypt&&this.mode.unpad&&!this.mode.unpad(this.output,t))||this.mode.afterFinish&&!this.mode.afterFinish(this.output,t))};var qe=ee;qe.cipher=qe.cipher||{};var ae=qe.cipher.modes=qe.cipher.modes||{};ae.ecb=function(e){e=e||{},this.name="ECB",this.cipher=e.cipher,this.blockSize=e.blockSize||16,this._ints=this.blockSize/4,this._inBlock=new Array(this._ints),this._outBlock=new Array(this._ints)},ae.ecb.prototype.start=function(e){},ae.ecb.prototype.encrypt=function(e,t,a){if(e.length()<this.blockSize&&!(a&&e.length()>0))return!0;for(var r=0;r<this._ints;++r)this._inBlock[r]=e.getInt32();this.cipher.encrypt(this._inBlock,this._outBlock);for(var r=0;r<this._ints;++r)t.putInt32(this._outBlock[r])},ae.ecb.prototype.decrypt=function(e,t,a){if(e.length()<this.blockSize&&!(a&&e.length()>0))return!0;for(var r=0;r<this._ints;++r)this._inBlock[r]=e.getInt32();this.cipher.decrypt(this._inBlock,this._outBlock);for(var r=0;r<this._ints;++r)t.putInt32(this._outBlock[r])},ae.ecb.prototype.pad=function(e,t){var a=e.length()===this.blockSize?this.blockSize:this.blockSize-e.length();return e.fillWithByte(a,a),!0},ae.ecb.prototype.unpad=function(e,t){if(t.overflow>0)return!1;var a=e.length(),r=e.at(a-1);return r>this.blockSize<<2?!1:(e.truncate(r),!0)},ae.cbc=function(e){e=e||{},this.name="CBC",this.cipher=e.cipher,this.blockSize=e.blockSize||16,this._ints=this.blockSize/4,this._inBlock=new Array(this._ints),this._outBlock=new Array(this._ints)},ae.cbc.prototype.start=function(e){if(e.iv===null){if(!this._prev)throw new Error("Invalid IV parameter.");this._iv=this._prev.slice(0)}else if("iv"in e)this._iv=Gc(e.iv,this.blockSize),this._prev=this._iv.slice(0);else throw new Error("Invalid IV parameter.")},ae.cbc.prototype.encrypt=function(e,t,a){if(e.length()<this.blockSize&&!(a&&e.length()>0))return!0;for(var r=0;r<this._ints;++r)this._inBlock[r]=this._prev[r]^e.getInt32();this.cipher.encrypt(this._inBlock,this._outBlock);for(var r=0;r<this._ints;++r)t.putInt32(this._outBlock[r]);this._prev=this._outBlock},ae.cbc.prototype.decrypt=function(e,t,a){if(e.length()<this.blockSize&&!(a&&e.length()>0))return!0;for(var r=0;r<this._ints;++r)this._inBlock[r]=e.getInt32();this.cipher.decrypt(this._inBlock,this._outBlock);for(var r=0;r<this._ints;++r)t.putInt32(this._prev[r]^this._outBlock[r]);this._prev=this._inBlock.slice(0)},ae.cbc.prototype.pad=function(e,t){var a=e.length()===this.blockSize?this.blockSize:this.blockSize-e.length();return e.fillWithByte(a,a),!0},ae.cbc.prototype.unpad=function(e,t){if(t.overflow>0)return!1;var a=e.length(),r=e.at(a-1);return r>this.blockSize<<2?!1:(e.truncate(r),!0)},ae.cfb=function(e){e=e||{},this.name="CFB",this.cipher=e.cipher,this.blockSize=e.blockSize||16,this._ints=this.blockSize/4,this._inBlock=null,this._outBlock=new Array(this._ints),this._partialBlock=new Array(this._ints),this._partialOutput=qe.util.createBuffer(),this._partialBytes=0},ae.cfb.prototype.start=function(e){if(!("iv"in e))throw new Error("Invalid IV parameter.");this._iv=Gc(e.iv,this.blockSize),this._inBlock=this._iv.slice(0),this._partialBytes=0},ae.cfb.prototype.encrypt=function(e,t,a){var r=e.length();if(r===0)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),this._partialBytes===0&&r>=this.blockSize){for(var n=0;n<this._ints;++n)this._inBlock[n]=e.getInt32()^this._outBlock[n],t.putInt32(this._inBlock[n]);return}var s=(this.blockSize-r)%this.blockSize;s>0&&(s=this.blockSize-s),this._partialOutput.clear();for(var n=0;n<this._ints;++n)this._partialBlock[n]=e.getInt32()^this._outBlock[n],this._partialOutput.putInt32(this._partialBlock[n]);if(s>0)e.read-=this.blockSize;else for(var n=0;n<this._ints;++n)this._inBlock[n]=this._partialBlock[n];if(this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),s>0&&!a)return t.putBytes(this._partialOutput.getBytes(s-this._partialBytes)),this._partialBytes=s,!0;t.putBytes(this._partialOutput.getBytes(r-this._partialBytes)),this._partialBytes=0},ae.cfb.prototype.decrypt=function(e,t,a){var r=e.length();if(r===0)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),this._partialBytes===0&&r>=this.blockSize){for(var n=0;n<this._ints;++n)this._inBlock[n]=e.getInt32(),t.putInt32(this._inBlock[n]^this._outBlock[n]);return}var s=(this.blockSize-r)%this.blockSize;s>0&&(s=this.blockSize-s),this._partialOutput.clear();for(var n=0;n<this._ints;++n)this._partialBlock[n]=e.getInt32(),this._partialOutput.putInt32(this._partialBlock[n]^this._outBlock[n]);if(s>0)e.read-=this.blockSize;else for(var n=0;n<this._ints;++n)this._inBlock[n]=this._partialBlock[n];if(this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),s>0&&!a)return t.putBytes(this._partialOutput.getBytes(s-this._partialBytes)),this._partialBytes=s,!0;t.putBytes(this._partialOutput.getBytes(r-this._partialBytes)),this._partialBytes=0},ae.ofb=function(e){e=e||{},this.name="OFB",this.cipher=e.cipher,this.blockSize=e.blockSize||16,this._ints=this.blockSize/4,this._inBlock=null,this._outBlock=new Array(this._ints),this._partialOutput=qe.util.createBuffer(),this._partialBytes=0},ae.ofb.prototype.start=function(e){if(!("iv"in e))throw new Error("Invalid IV parameter.");this._iv=Gc(e.iv,this.blockSize),this._inBlock=this._iv.slice(0),this._partialBytes=0},ae.ofb.prototype.encrypt=function(e,t,a){var r=e.length();if(e.length()===0)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),this._partialBytes===0&&r>=this.blockSize){for(var n=0;n<this._ints;++n)t.putInt32(e.getInt32()^this._outBlock[n]),this._inBlock[n]=this._outBlock[n];return}var s=(this.blockSize-r)%this.blockSize;s>0&&(s=this.blockSize-s),this._partialOutput.clear();for(var n=0;n<this._ints;++n)this._partialOutput.putInt32(e.getInt32()^this._outBlock[n]);if(s>0)e.read-=this.blockSize;else for(var n=0;n<this._ints;++n)this._inBlock[n]=this._outBlock[n];if(this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),s>0&&!a)return t.putBytes(this._partialOutput.getBytes(s-this._partialBytes)),this._partialBytes=s,!0;t.putBytes(this._partialOutput.getBytes(r-this._partialBytes)),this._partialBytes=0},ae.ofb.prototype.decrypt=ae.ofb.prototype.encrypt,ae.ctr=function(e){e=e||{},this.name="CTR",this.cipher=e.cipher,this.blockSize=e.blockSize||16,this._ints=this.blockSize/4,this._inBlock=null,this._outBlock=new Array(this._ints),this._partialOutput=qe.util.createBuffer(),this._partialBytes=0},ae.ctr.prototype.start=function(e){if(!("iv"in e))throw new Error("Invalid IV parameter.");this._iv=Gc(e.iv,this.blockSize),this._inBlock=this._iv.slice(0),this._partialBytes=0},ae.ctr.prototype.encrypt=function(e,t,a){var r=e.length();if(r===0)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),this._partialBytes===0&&r>=this.blockSize)for(var n=0;n<this._ints;++n)t.putInt32(e.getInt32()^this._outBlock[n]);else{var s=(this.blockSize-r)%this.blockSize;s>0&&(s=this.blockSize-s),this._partialOutput.clear();for(var n=0;n<this._ints;++n)this._partialOutput.putInt32(e.getInt32()^this._outBlock[n]);if(s>0&&(e.read-=this.blockSize),this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),s>0&&!a)return t.putBytes(this._partialOutput.getBytes(s-this._partialBytes)),this._partialBytes=s,!0;t.putBytes(this._partialOutput.getBytes(r-this._partialBytes)),this._partialBytes=0}Qc(this._inBlock)},ae.ctr.prototype.decrypt=ae.ctr.prototype.encrypt,ae.gcm=function(e){e=e||{},this.name="GCM",this.cipher=e.cipher,this.blockSize=e.blockSize||16,this._ints=this.blockSize/4,this._inBlock=new Array(this._ints),this._outBlock=new Array(this._ints),this._partialOutput=qe.util.createBuffer(),this._partialBytes=0,this._R=3774873600},ae.gcm.prototype.start=function(e){if(!("iv"in e))throw new Error("Invalid IV parameter.");var t=qe.util.createBuffer(e.iv);this._cipherLength=0;var a;if("additionalData"in e?a=qe.util.createBuffer(e.additionalData):a=qe.util.createBuffer(),"tagLength"in e?this._tagLength=e.tagLength:this._tagLength=128,this._tag=null,e.decrypt&&(this._tag=qe.util.createBuffer(e.tag).getBytes(),this._tag.length!==this._tagLength/8))throw new Error("Authentication tag does not match tag length.");this._hashBlock=new Array(this._ints),this.tag=null,this._hashSubkey=new Array(this._ints),this.cipher.encrypt([0,0,0,0],this._hashSubkey),this.componentBits=4,this._m=this.generateHashTable(this._hashSubkey,this.componentBits);var r=t.length();if(r===12)this._j0=[t.getInt32(),t.getInt32(),t.getInt32(),1];else{for(this._j0=[0,0,0,0];t.length()>0;)this._j0=this.ghash(this._hashSubkey,this._j0,[t.getInt32(),t.getInt32(),t.getInt32(),t.getInt32()]);this._j0=this.ghash(this._hashSubkey,this._j0,[0,0].concat(Lu(r*8)))}this._inBlock=this._j0.slice(0),Qc(this._inBlock),this._partialBytes=0,a=qe.util.createBuffer(a),this._aDataLength=Lu(a.length()*8);var n=a.length()%this.blockSize;for(n&&a.fillWithByte(0,this.blockSize-n),this._s=[0,0,0,0];a.length()>0;)this._s=this.ghash(this._hashSubkey,this._s,[a.getInt32(),a.getInt32(),a.getInt32(),a.getInt32()])},ae.gcm.prototype.encrypt=function(e,t,a){var r=e.length();if(r===0)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),this._partialBytes===0&&r>=this.blockSize){for(var n=0;n<this._ints;++n)t.putInt32(this._outBlock[n]^=e.getInt32());this._cipherLength+=this.blockSize}else{var s=(this.blockSize-r)%this.blockSize;s>0&&(s=this.blockSize-s),this._partialOutput.clear();for(var n=0;n<this._ints;++n)this._partialOutput.putInt32(e.getInt32()^this._outBlock[n]);if(s<=0||a){if(a){var i=r%this.blockSize;this._cipherLength+=i,this._partialOutput.truncate(this.blockSize-i)}else this._cipherLength+=this.blockSize;for(var n=0;n<this._ints;++n)this._outBlock[n]=this._partialOutput.getInt32();this._partialOutput.read-=this.blockSize}if(this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),s>0&&!a)return e.read-=this.blockSize,t.putBytes(this._partialOutput.getBytes(s-this._partialBytes)),this._partialBytes=s,!0;t.putBytes(this._partialOutput.getBytes(r-this._partialBytes)),this._partialBytes=0}this._s=this.ghash(this._hashSubkey,this._s,this._outBlock),Qc(this._inBlock)},ae.gcm.prototype.decrypt=function(e,t,a){var r=e.length();if(r<this.blockSize&&!(a&&r>0))return!0;this.cipher.encrypt(this._inBlock,this._outBlock),Qc(this._inBlock),this._hashBlock[0]=e.getInt32(),this._hashBlock[1]=e.getInt32(),this._hashBlock[2]=e.getInt32(),this._hashBlock[3]=e.getInt32(),this._s=this.ghash(this._hashSubkey,this._s,this._hashBlock);for(var n=0;n<this._ints;++n)t.putInt32(this._outBlock[n]^this._hashBlock[n]);r<this.blockSize?this._cipherLength+=r%this.blockSize:this._cipherLength+=this.blockSize},ae.gcm.prototype.afterFinish=function(e,t){var a=!0;t.decrypt&&t.overflow&&e.truncate(this.blockSize-t.overflow),this.tag=qe.util.createBuffer();var r=this._aDataLength.concat(Lu(this._cipherLength*8));this._s=this.ghash(this._hashSubkey,this._s,r);var n=[];this.cipher.encrypt(this._j0,n);for(var s=0;s<this._ints;++s)this.tag.putInt32(this._s[s]^n[s]);return this.tag.truncate(this.tag.length()%(this._tagLength/8)),t.decrypt&&this.tag.bytes()!==this._tag&&(a=!1),a},ae.gcm.prototype.multiply=function(e,t){for(var a=[0,0,0,0],r=t.slice(0),n=0;n<128;++n){var s=e[n/32|0]&1<<31-n%32;s&&(a[0]^=r[0],a[1]^=r[1],a[2]^=r[2],a[3]^=r[3]),this.pow(r,r)}return a},ae.gcm.prototype.pow=function(e,t){for(var a=e[3]&1,r=3;r>0;--r)t[r]=e[r]>>>1|(e[r-1]&1)<<31;t[0]=e[0]>>>1,a&&(t[0]^=this._R)},ae.gcm.prototype.tableMultiply=function(e){for(var t=[0,0,0,0],a=0;a<32;++a){var r=a/8|0,n=e[r]>>>(7-a%8)*4&15,s=this._m[a][n];t[0]^=s[0],t[1]^=s[1],t[2]^=s[2],t[3]^=s[3]}return t},ae.gcm.prototype.ghash=function(e,t,a){return t[0]^=a[0],t[1]^=a[1],t[2]^=a[2],t[3]^=a[3],this.tableMultiply(t)},ae.gcm.prototype.generateHashTable=function(e,t){for(var a=8/t,r=4*a,n=16*a,s=new Array(n),i=0;i<n;++i){var o=[0,0,0,0],c=i/r|0,l=(r-1-i%r)*t;o[c]=1<<t-1<<l,s[i]=this.generateSubHashTable(this.multiply(o,e),t)}return s},ae.gcm.prototype.generateSubHashTable=function(e,t){var a=1<<t,r=a>>>1,n=new Array(a);n[r]=e.slice(0);for(var s=r>>>1;s>0;)this.pow(n[2*s],n[s]=[]),s>>=1;for(s=2;s<r;){for(var i=1;i<s;++i){var o=n[s],c=n[i];n[s+i]=[o[0]^c[0],o[1]^c[1],o[2]^c[2],o[3]^c[3]]}s*=2}for(n[0]=[0,0,0,0],s=r+1;s<a;++s){var l=n[s^r];n[s]=[e[0]^l[0],e[1]^l[1],e[2]^l[2],e[3]^l[3]]}return n};function Gc(e,t){if(typeof e=="string"&&(e=qe.util.createBuffer(e)),qe.util.isArray(e)&&e.length>4){var a=e;e=qe.util.createBuffer();for(var r=0;r<a.length;++r)e.putByte(a[r])}if(e.length()<t)throw new Error("Invalid IV length; got "+e.length()+" bytes and expected "+t+" bytes.");if(!qe.util.isArray(e)){for(var n=[],s=t/4,r=0;r<s;++r)n.push(e.getInt32());e=n}return e}function Qc(e){e[e.length-1]=e[e.length-1]+1&4294967295}function Lu(e){return[e/4294967296|0,e&4294967295]}var we=ee;we.aes=we.aes||{},we.aes.startEncrypting=function(e,t,a,r){var n=Wc({key:e,output:a,decrypt:!1,mode:r});return n.start(t),n},we.aes.createEncryptionCipher=function(e,t){return Wc({key:e,output:null,decrypt:!1,mode:t})},we.aes.startDecrypting=function(e,t,a,r){var n=Wc({key:e,output:a,decrypt:!0,mode:r});return n.start(t),n},we.aes.createDecryptionCipher=function(e,t){return Wc({key:e,output:null,decrypt:!0,mode:t})},we.aes.Algorithm=function(e,t){Uu||Mf();var a=this;a.name=e,a.mode=new t({blockSize:16,cipher:{encrypt:function(r,n){return Pu(a._w,r,n,!1)},decrypt:function(r,n){return Pu(a._w,r,n,!0)}}}),a._init=!1},we.aes.Algorithm.prototype.initialize=function(e){if(!this._init){var t=e.key,a;if(typeof t=="string"&&(t.length===16||t.length===24||t.length===32))t=we.util.createBuffer(t);else if(we.util.isArray(t)&&(t.length===16||t.length===24||t.length===32)){a=t,t=we.util.createBuffer();for(var r=0;r<a.length;++r)t.putByte(a[r])}if(!we.util.isArray(t)){a=t,t=[];var n=a.length();if(n===16||n===24||n===32){n=n>>>2;for(var r=0;r<n;++r)t.push(a.getInt32())}}if(!we.util.isArray(t)||!(t.length===4||t.length===6||t.length===8))throw new Error("Invalid key parameter.");var s=this.mode.name,i=["CFB","OFB","CTR","GCM"].indexOf(s)!==-1;this._w=Vf(t,e.decrypt&&!i),this._init=!0}},we.aes._expandKey=function(e,t){return Uu||Mf(),Vf(e,t)},we.aes._updateBlock=Pu,zr("AES-ECB",we.cipher.modes.ecb),zr("AES-CBC",we.cipher.modes.cbc),zr("AES-CFB",we.cipher.modes.cfb),zr("AES-OFB",we.cipher.modes.ofb),zr("AES-CTR",we.cipher.modes.ctr),zr("AES-GCM",we.cipher.modes.gcm);function zr(e,t){var a=function(){return new we.aes.Algorithm(e,t)};we.cipher.registerAlgorithm(e,a)}var Uu=!1,Hr=4,lt,Du,Ff,Tr,Ft;function Mf(){Uu=!0,Ff=[0,1,2,4,8,16,32,64,128,27,54];for(var e=new Array(256),t=0;t<128;++t)e[t]=t<<1,e[t+128]=t+128<<1^283;lt=new Array(256),Du=new Array(256),Tr=new Array(4),Ft=new Array(4);for(var t=0;t<4;++t)Tr[t]=new Array(256),Ft[t]=new Array(256);for(var a=0,r=0,n,s,i,o,c,l,u,t=0;t<256;++t){o=r^r<<1^r<<2^r<<3^r<<4,o=o>>8^o&255^99,lt[a]=o,Du[o]=a,c=e[o],n=e[a],s=e[n],i=e[s],l=c<<24^o<<16^o<<8^(o^c),u=(n^s^i)<<24^(a^i)<<16^(a^s^i)<<8^(a^n^i);for(var p=0;p<4;++p)Tr[p][a]=l,Ft[p][o]=u,l=l<<24|l>>>8,u=u<<24|u>>>8;a===0?a=r=1:(a=n^e[e[e[n^i]]],r^=e[e[r]])}}function Vf(e,t){for(var a=e.slice(0),r,n=1,s=a.length,i=s+6+1,o=Hr*i,c=s;c<o;++c)r=a[c-1],c%s===0?(r=lt[r>>>16&255]<<24^lt[r>>>8&255]<<16^lt[r&255]<<8^lt[r>>>24]^Ff[n]<<24,n++):s>6&&c%s===4&&(r=lt[r>>>24]<<24^lt[r>>>16&255]<<16^lt[r>>>8&255]<<8^lt[r&255]),a[c]=a[c-s]^r;if(t){var l,u=Ft[0],p=Ft[1],f=Ft[2],x=Ft[3],m=a.slice(0);o=a.length;for(var c=0,y=o-Hr;c<o;c+=Hr,y-=Hr)if(c===0||c===o-Hr)m[c]=a[y],m[c+1]=a[y+3],m[c+2]=a[y+2],m[c+3]=a[y+1];else for(var b=0;b<Hr;++b)l=a[y+b],m[c+(3&-b)]=u[lt[l>>>24]]^p[lt[l>>>16&255]]^f[lt[l>>>8&255]]^x[lt[l&255]];a=m}return a}function Pu(e,t,a,r){var n=e.length/4-1,s,i,o,c,l;r?(s=Ft[0],i=Ft[1],o=Ft[2],c=Ft[3],l=Du):(s=Tr[0],i=Tr[1],o=Tr[2],c=Tr[3],l=lt);var u,p,f,x,m,y,b;u=t[0]^e[0],p=t[r?3:1]^e[1],f=t[2]^e[2],x=t[r?1:3]^e[3];for(var S=3,B=1;B<n;++B)m=s[u>>>24]^i[p>>>16&255]^o[f>>>8&255]^c[x&255]^e[++S],y=s[p>>>24]^i[f>>>16&255]^o[x>>>8&255]^c[u&255]^e[++S],b=s[f>>>24]^i[x>>>16&255]^o[u>>>8&255]^c[p&255]^e[++S],x=s[x>>>24]^i[u>>>16&255]^o[p>>>8&255]^c[f&255]^e[++S],u=m,p=y,f=b;a[0]=l[u>>>24]<<24^l[p>>>16&255]<<16^l[f>>>8&255]<<8^l[x&255]^e[++S],a[r?3:1]=l[p>>>24]<<24^l[f>>>16&255]<<16^l[x>>>8&255]<<8^l[u&255]^e[++S],a[2]=l[f>>>24]<<24^l[x>>>16&255]<<16^l[u>>>8&255]<<8^l[p&255]^e[++S],a[r?1:3]=l[x>>>24]<<24^l[u>>>16&255]<<16^l[p>>>8&255]<<8^l[f&255]^e[++S]}function Wc(e){e=e||{};var t=(e.mode||"CBC").toUpperCase(),a="AES-"+t,r;e.decrypt?r=we.cipher.createDecipher(a,e.key):r=we.cipher.createCipher(a,e.key);var n=r.start;return r.start=function(s,i){var o=null;i instanceof we.util.ByteBuffer&&(o=i,i={}),i=i||{},i.output=o,i.iv=s,n.call(r,i)},r}var pc=ee;pc.pki=pc.pki||{};var Ou=pc.pki.oids=pc.oids=pc.oids||{};function O(e,t){Ou[e]=t,Ou[t]=e}function Ce(e,t){Ou[e]=t}O("1.2.840.113549.1.1.1","rsaEncryption"),O("1.2.840.113549.1.1.4","md5WithRSAEncryption"),O("1.2.840.113549.1.1.5","sha1WithRSAEncryption"),O("1.2.840.113549.1.1.7","RSAES-OAEP"),O("1.2.840.113549.1.1.8","mgf1"),O("1.2.840.113549.1.1.9","pSpecified"),O("1.2.840.113549.1.1.10","RSASSA-PSS"),O("1.2.840.113549.1.1.11","sha256WithRSAEncryption"),O("1.2.840.113549.1.1.12","sha384WithRSAEncryption"),O("1.2.840.113549.1.1.13","sha512WithRSAEncryption"),O("1.3.101.112","EdDSA25519"),O("1.2.840.10040.4.3","dsa-with-sha1"),O("1.3.14.3.2.7","desCBC"),O("1.3.14.3.2.26","sha1"),O("1.3.14.3.2.29","sha1WithRSASignature"),O("2.16.840.1.101.3.4.2.1","sha256"),O("2.16.840.1.101.3.4.2.2","sha384"),O("2.16.840.1.101.3.4.2.3","sha512"),O("2.16.840.1.101.3.4.2.4","sha224"),O("2.16.840.1.101.3.4.2.5","sha512-224"),O("2.16.840.1.101.3.4.2.6","sha512-256"),O("1.2.840.113549.2.2","md2"),O("1.2.840.113549.2.5","md5"),O("1.2.840.113549.1.7.1","data"),O("1.2.840.113549.1.7.2","signedData"),O("1.2.840.113549.1.7.3","envelopedData"),O("1.2.840.113549.1.7.4","signedAndEnvelopedData"),O("1.2.840.113549.1.7.5","digestedData"),O("1.2.840.113549.1.7.6","encryptedData"),O("1.2.840.113549.1.9.1","emailAddress"),O("1.2.840.113549.1.9.2","unstructuredName"),O("1.2.840.113549.1.9.3","contentType"),O("1.2.840.113549.1.9.4","messageDigest"),O("1.2.840.113549.1.9.5","signingTime"),O("1.2.840.113549.1.9.6","counterSignature"),O("1.2.840.113549.1.9.7","challengePassword"),O("1.2.840.113549.1.9.8","unstructuredAddress"),O("1.2.840.113549.1.9.14","extensionRequest"),O("1.2.840.113549.1.9.20","friendlyName"),O("1.2.840.113549.1.9.21","localKeyId"),O("1.2.840.113549.1.9.22.1","x509Certificate"),O("1.2.840.113549.1.12.10.1.1","keyBag"),O("1.2.840.113549.1.12.10.1.2","pkcs8ShroudedKeyBag"),O("1.2.840.113549.1.12.10.1.3","certBag"),O("1.2.840.113549.1.12.10.1.4","crlBag"),O("1.2.840.113549.1.12.10.1.5","secretBag"),O("1.2.840.113549.1.12.10.1.6","safeContentsBag"),O("1.2.840.113549.1.5.13","pkcs5PBES2"),O("1.2.840.113549.1.5.12","pkcs5PBKDF2"),O("1.2.840.113549.1.12.1.1","pbeWithSHAAnd128BitRC4"),O("1.2.840.113549.1.12.1.2","pbeWithSHAAnd40BitRC4"),O("1.2.840.113549.1.12.1.3","pbeWithSHAAnd3-KeyTripleDES-CBC"),O("1.2.840.113549.1.12.1.4","pbeWithSHAAnd2-KeyTripleDES-CBC"),O("1.2.840.113549.1.12.1.5","pbeWithSHAAnd128BitRC2-CBC"),O("1.2.840.113549.1.12.1.6","pbewithSHAAnd40BitRC2-CBC"),O("1.2.840.113549.2.7","hmacWithSHA1"),O("1.2.840.113549.2.8","hmacWithSHA224"),O("1.2.840.113549.2.9","hmacWithSHA256"),O("1.2.840.113549.2.10","hmacWithSHA384"),O("1.2.840.113549.2.11","hmacWithSHA512"),O("1.2.840.113549.3.7","des-EDE3-CBC"),O("2.16.840.1.101.3.4.1.2","aes128-CBC"),O("2.16.840.1.101.3.4.1.22","aes192-CBC"),O("2.16.840.1.101.3.4.1.42","aes256-CBC"),O("2.5.4.3","commonName"),O("2.5.4.4","surname"),O("2.5.4.5","serialNumber"),O("2.5.4.6","countryName"),O("2.5.4.7","localityName"),O("2.5.4.8","stateOrProvinceName"),O("2.5.4.9","streetAddress"),O("2.5.4.10","organizationName"),O("2.5.4.11","organizationalUnitName"),O("2.5.4.12","title"),O("2.5.4.13","description"),O("2.5.4.15","businessCategory"),O("2.5.4.17","postalCode"),O("2.5.4.42","givenName"),O("1.3.6.1.4.1.311.60.2.1.2","jurisdictionOfIncorporationStateOrProvinceName"),O("1.3.6.1.4.1.311.60.2.1.3","jurisdictionOfIncorporationCountryName"),O("2.16.840.1.113730.1.1","nsCertType"),O("2.16.840.1.113730.1.13","nsComment"),Ce("2.5.29.1","authorityKeyIdentifier"),Ce("2.5.29.2","keyAttributes"),Ce("2.5.29.3","certificatePolicies"),Ce("2.5.29.4","keyUsageRestriction"),Ce("2.5.29.5","policyMapping"),Ce("2.5.29.6","subtreesConstraint"),Ce("2.5.29.7","subjectAltName"),Ce("2.5.29.8","issuerAltName"),Ce("2.5.29.9","subjectDirectoryAttributes"),Ce("2.5.29.10","basicConstraints"),Ce("2.5.29.11","nameConstraints"),Ce("2.5.29.12","policyConstraints"),Ce("2.5.29.13","basicConstraints"),O("2.5.29.14","subjectKeyIdentifier"),O("2.5.29.15","keyUsage"),Ce("2.5.29.16","privateKeyUsagePeriod"),O("2.5.29.17","subjectAltName"),O("2.5.29.18","issuerAltName"),O("2.5.29.19","basicConstraints"),Ce("2.5.29.20","cRLNumber"),Ce("2.5.29.21","cRLReason"),Ce("2.5.29.22","expirationDate"),Ce("2.5.29.23","instructionCode"),Ce("2.5.29.24","invalidityDate"),Ce("2.5.29.25","cRLDistributionPoints"),Ce("2.5.29.26","issuingDistributionPoint"),Ce("2.5.29.27","deltaCRLIndicator"),Ce("2.5.29.28","issuingDistributionPoint"),Ce("2.5.29.29","certificateIssuer"),Ce("2.5.29.30","nameConstraints"),O("2.5.29.31","cRLDistributionPoints"),O("2.5.29.32","certificatePolicies"),Ce("2.5.29.33","policyMappings"),Ce("2.5.29.34","policyConstraints"),O("2.5.29.35","authorityKeyIdentifier"),Ce("2.5.29.36","policyConstraints"),O("2.5.29.37","extKeyUsage"),Ce("2.5.29.46","freshestCRL"),Ce("2.5.29.54","inhibitAnyPolicy"),O("1.3.6.1.4.1.11129.2.4.2","timestampList"),O("1.3.6.1.5.5.7.1.1","authorityInfoAccess"),O("1.3.6.1.5.5.7.3.1","serverAuth"),O("1.3.6.1.5.5.7.3.2","clientAuth"),O("1.3.6.1.5.5.7.3.3","codeSigning"),O("1.3.6.1.5.5.7.3.4","emailProtection"),O("1.3.6.1.5.5.7.3.8","timeStamping");var Ie=ee,V=Ie.asn1=Ie.asn1||{};V.Class={UNIVERSAL:0,APPLICATION:64,CONTEXT_SPECIFIC:128,PRIVATE:192},V.Type={NONE:0,BOOLEAN:1,INTEGER:2,BITSTRING:3,OCTETSTRING:4,NULL:5,OID:6,ODESC:7,EXTERNAL:8,REAL:9,ENUMERATED:10,EMBEDDED:11,UTF8:12,ROID:13,SEQUENCE:16,SET:17,PRINTABLESTRING:19,IA5STRING:22,UTCTIME:23,GENERALIZEDTIME:24,BMPSTRING:30},V.maxDepth=256,V.create=function(e,t,a,r,n){if(Ie.util.isArray(r)){for(var s=[],i=0;i<r.length;++i)r[i]!==void 0&&s.push(r[i]);r=s}var o={tagClass:e,type:t,constructed:a,composed:a||Ie.util.isArray(r),value:r};return n&&"bitStringContents"in n&&(o.bitStringContents=n.bitStringContents,o.original=V.copy(o)),o},V.copy=function(e,t){var a;if(Ie.util.isArray(e)){a=[];for(var r=0;r<e.length;++r)a.push(V.copy(e[r],t));return a}return typeof e=="string"?e:(a={tagClass:e.tagClass,type:e.type,constructed:e.constructed,composed:e.composed,value:V.copy(e.value,t)},t&&!t.excludeBitStringContents&&(a.bitStringContents=e.bitStringContents),a)},V.equals=function(e,t,a){if(Ie.util.isArray(e)){if(!Ie.util.isArray(t)||e.length!==t.length)return!1;for(var r=0;r<e.length;++r)if(!V.equals(e[r],t[r]))return!1;return!0}if(typeof e!=typeof t)return!1;if(typeof e=="string")return e===t;var n=e.tagClass===t.tagClass&&e.type===t.type&&e.constructed===t.constructed&&e.composed===t.composed&&V.equals(e.value,t.value);return a&&a.includeBitStringContents&&(n=n&&e.bitStringContents===t.bitStringContents),n},V.getBerValueLength=function(e){var t=e.getByte();if(t!==128){var a,r=t&128;return r?a=e.getInt((t&127)<<3):a=t,a}};function dc(e,t,a){if(a>t){var r=new Error("Too few bytes to parse DER.");throw r.available=e.length(),r.remaining=t,r.requested=a,r}}var A1=function(e,t){var a=e.getByte();if(t--,a!==128){var r,n=a&128;if(!n)r=a;else{var s=a&127;dc(e,t,s),r=e.getInt(s<<3)}if(r<0)throw new Error("Negative length: "+r);return r}};V.fromDer=function(e,t){t===void 0&&(t={strict:!0,parseAllBytes:!0,decodeBitStrings:!0}),typeof t=="boolean"&&(t={strict:t,parseAllBytes:!0,decodeBitStrings:!0}),"strict"in t||(t.strict=!0),"parseAllBytes"in t||(t.parseAllBytes=!0),"decodeBitStrings"in t||(t.decodeBitStrings=!0),"maxDepth"in t||(t.maxDepth=V.maxDepth),typeof e=="string"&&(e=Ie.util.createBuffer(e));var a=e.length(),r=Xc(e,e.length(),0,t);if(t.parseAllBytes&&e.length()!==0){var n=new Error("Unparsed DER bytes remain after ASN.1 parsing.");throw n.byteCount=a,n.remaining=e.length(),n}return r};function Xc(e,t,a,r){if(a>=r.maxDepth)throw new Error("ASN.1 parsing error: Max depth exceeded.");var n;dc(e,t,2);var s=e.getByte();t--;var i=s&192,o=s&31;n=e.length();var c=A1(e,t);if(t-=n-e.length(),c!==void 0&&c>t){if(r.strict){var l=new Error("Too few bytes to read ASN.1 value.");throw l.available=e.length(),l.remaining=t,l.requested=c,l}c=t}var u,p,f=(s&32)===32;if(f)if(u=[],c===void 0)for(;;){if(dc(e,t,2),e.bytes(2)==="\0\0"){e.getBytes(2),t-=2;break}n=e.length(),u.push(Xc(e,t,a+1,r)),t-=n-e.length()}else for(;c>0;)n=e.length(),u.push(Xc(e,c,a+1,r)),t-=n-e.length(),c-=n-e.length();if(u===void 0&&i===V.Class.UNIVERSAL&&o===V.Type.BITSTRING&&(p=e.bytes(c)),u===void 0&&r.decodeBitStrings&&i===V.Class.UNIVERSAL&&o===V.Type.BITSTRING&&c>1){var x=e.read,m=t,y=0;if(o===V.Type.BITSTRING&&(dc(e,t,1),y=e.getByte(),t--),y===0)try{n=e.length();var b={strict:!0,decodeBitStrings:!0},S=Xc(e,t,a+1,b),B=n-e.length();t-=B,o==V.Type.BITSTRING&&B++;var _=S.tagClass;B===c&&(_===V.Class.UNIVERSAL||_===V.Class.CONTEXT_SPECIFIC)&&(u=[S])}catch{}u===void 0&&(e.read=x,t=m)}if(u===void 0){if(c===void 0){if(r.strict)throw new Error("Non-constructed ASN.1 object of indefinite length.");c=t}if(o===V.Type.BMPSTRING)for(u="";c>0;c-=2)dc(e,t,2),u+=String.fromCharCode(e.getInt16()),t-=2;else u=e.getBytes(c),t-=c}var D=p===void 0?null:{bitStringContents:p};return V.create(i,o,f,u,D)}V.toDer=function(e){var t=Ie.util.createBuffer(),a=e.tagClass|e.type,r=Ie.util.createBuffer(),n=!1;if("bitStringContents"in e&&(n=!0,e.original&&(n=V.equals(e,e.original))),n)r.putBytes(e.bitStringContents);else if(e.composed){e.constructed?a|=32:r.putByte(0);for(var s=0;s<e.value.length;++s)e.value[s]!==void 0&&r.putBuffer(V.toDer(e.value[s]))}else if(e.type===V.Type.BMPSTRING)for(var s=0;s<e.value.length;++s)r.putInt16(e.value.charCodeAt(s));else e.type===V.Type.INTEGER&&e.value.length>1&&(e.value.charCodeAt(0)===0&&(e.value.charCodeAt(1)&128)===0||e.value.charCodeAt(0)===255&&(e.value.charCodeAt(1)&128)===128)?r.putBytes(e.value.substr(1)):r.putBytes(e.value);if(t.putByte(a),r.length()<=127)t.putByte(r.length()&127);else{var i=r.length(),o="";do o+=String.fromCharCode(i&255),i=i>>>8;while(i>0);t.putByte(o.length|128);for(var s=o.length-1;s>=0;--s)t.putByte(o.charCodeAt(s))}return t.putBuffer(r),t},V.oidToDer=function(e){var t=e.split("."),a=Ie.util.createBuffer();a.putByte(40*parseInt(t[0],10)+parseInt(t[1],10));for(var r,n,s,i,o=2;o<t.length;++o){if(r=!0,n=[],s=parseInt(t[o],10),s>4294967295)throw new Error("OID value too large; max is 32-bits.");do i=s&127,s=s>>>7,r||(i|=128),n.push(i),r=!1;while(s>0);for(var c=n.length-1;c>=0;--c)a.putByte(n[c])}return a},V.derToOid=function(e){var t;typeof e=="string"&&(e=Ie.util.createBuffer(e));var a=e.getByte();t=Math.floor(a/40)+"."+a%40;for(var r=0;e.length()>0;){if(r>70368744177663)throw new Error("OID value too large; max is 53-bits.");a=e.getByte(),r=r*128,a&128?r+=a&127:(t+="."+(r+a),r=0)}return t},V.utcTimeToDate=function(e){var t=new Date,a=parseInt(e.substr(0,2),10);a=a>=50?1900+a:2e3+a;var r=parseInt(e.substr(2,2),10)-1,n=parseInt(e.substr(4,2),10),s=parseInt(e.substr(6,2),10),i=parseInt(e.substr(8,2),10),o=0;if(e.length>11){var c=e.charAt(10),l=10;c!=="+"&&c!=="-"&&(o=parseInt(e.substr(10,2),10),l+=2)}if(t.setUTCFullYear(a,r,n),t.setUTCHours(s,i,o,0),l&&(c=e.charAt(l),c==="+"||c==="-")){var u=parseInt(e.substr(l+1,2),10),p=parseInt(e.substr(l+4,2),10),f=u*60+p;f*=6e4,c==="+"?t.setTime(+t-f):t.setTime(+t+f)}return t},V.generalizedTimeToDate=function(e){var t=new Date,a=parseInt(e.substr(0,4),10),r=parseInt(e.substr(4,2),10)-1,n=parseInt(e.substr(6,2),10),s=parseInt(e.substr(8,2),10),i=parseInt(e.substr(10,2),10),o=parseInt(e.substr(12,2),10),c=0,l=0,u=!1;e.charAt(e.length-1)==="Z"&&(u=!0);var p=e.length-5,f=e.charAt(p);if(f==="+"||f==="-"){var x=parseInt(e.substr(p+1,2),10),m=parseInt(e.substr(p+4,2),10);l=x*60+m,l*=6e4,f==="+"&&(l*=-1),u=!0}return e.charAt(14)==="."&&(c=parseFloat(e.substr(14),10)*1e3),u?(t.setUTCFullYear(a,r,n),t.setUTCHours(s,i,o,c),t.setTime(+t+l)):(t.setFullYear(a,r,n),t.setHours(s,i,o,c)),t},V.dateToUtcTime=function(e){if(typeof e=="string")return e;var t="",a=[];a.push((""+e.getUTCFullYear()).substr(2)),a.push(""+(e.getUTCMonth()+1)),a.push(""+e.getUTCDate()),a.push(""+e.getUTCHours()),a.push(""+e.getUTCMinutes()),a.push(""+e.getUTCSeconds());for(var r=0;r<a.length;++r)a[r].length<2&&(t+="0"),t+=a[r];return t+="Z",t},V.dateToGeneralizedTime=function(e){if(typeof e=="string")return e;var t="",a=[];a.push(""+e.getUTCFullYear()),a.push(""+(e.getUTCMonth()+1)),a.push(""+e.getUTCDate()),a.push(""+e.getUTCHours()),a.push(""+e.getUTCMinutes()),a.push(""+e.getUTCSeconds());for(var r=0;r<a.length;++r)a[r].length<2&&(t+="0"),t+=a[r];return t+="Z",t},V.integerToDer=function(e){var t=Ie.util.createBuffer();if(e>=-128&&e<128)return t.putSignedInt(e,8);if(e>=-32768&&e<32768)return t.putSignedInt(e,16);if(e>=-8388608&&e<8388608)return t.putSignedInt(e,24);if(e>=-2147483648&&e<2147483648)return t.putSignedInt(e,32);var a=new Error("Integer too large; max is 32-bits.");throw a.integer=e,a},V.derToInteger=function(e){typeof e=="string"&&(e=Ie.util.createBuffer(e));var t=e.length()*8;if(t>32)throw new Error("Integer too large; max is 32-bits.");return e.getSignedInt(t)},V.validate=function(e,t,a,r){var n=!1;if((e.tagClass===t.tagClass||typeof t.tagClass>"u")&&(e.type===t.type||typeof t.type>"u"))if(e.constructed===t.constructed||typeof t.constructed>"u"){if(n=!0,t.value&&Ie.util.isArray(t.value))for(var s=0,i=0;n&&i<t.value.length;++i){var o=t.value[i];n=!!o.optional;var c=e.value[s];if(!c){o.optional||(n=!1,r&&r.push("["+t.name+'] Missing required element. Expected tag class "'+o.tagClass+'", type "'+o.type+'"'));continue}var l=typeof o.tagClass<"u"&&typeof o.type<"u";if(l&&(c.tagClass!==o.tagClass||c.type!==o.type))if(o.optional){n=!0;continue}else{n=!1,r&&r.push("["+t.name+"] Tag mismatch. Expected ("+o.tagClass+","+o.type+"), got ("+c.tagClass+","+c.type+")");break}var u=V.validate(c,o,a,r);if(u)++s,n=!0;else if(o.optional)n=!0;else{n=!1;break}}if(n&&a&&(t.capture&&(a[t.capture]=e.value),t.captureAsn1&&(a[t.captureAsn1]=e),t.captureBitStringContents&&"bitStringContents"in e&&(a[t.captureBitStringContents]=e.bitStringContents),t.captureBitStringValue&&"bitStringContents"in e))if(e.bitStringContents.length<2)a[t.captureBitStringValue]="";else{var p=e.bitStringContents.charCodeAt(0);if(p!==0)throw new Error("captureBitStringValue only supported for zero unused bits");a[t.captureBitStringValue]=e.bitStringContents.slice(1)}}else r&&r.push("["+t.name+'] Expected constructed "'+t.constructed+'", got "'+e.constructed+'"');else r&&(e.tagClass!==t.tagClass&&r.push("["+t.name+'] Expected tag class "'+t.tagClass+'", got "'+e.tagClass+'"'),e.type!==t.type&&r.push("["+t.name+'] Expected type "'+t.type+'", got "'+e.type+'"'));return n};var qf=/[^\\u0000-\\u00ff]/;V.prettyPrint=function(e,t,a){var r="";t=t||0,a=a||2,t>0&&(r+=`
26
- `);for(var n="",s=0;s<t*a;++s)n+=" ";switch(r+=n+"Tag: ",e.tagClass){case V.Class.UNIVERSAL:r+="Universal:";break;case V.Class.APPLICATION:r+="Application:";break;case V.Class.CONTEXT_SPECIFIC:r+="Context-Specific:";break;case V.Class.PRIVATE:r+="Private:";break}if(e.tagClass===V.Class.UNIVERSAL)switch(r+=e.type,e.type){case V.Type.NONE:r+=" (None)";break;case V.Type.BOOLEAN:r+=" (Boolean)";break;case V.Type.INTEGER:r+=" (Integer)";break;case V.Type.BITSTRING:r+=" (Bit string)";break;case V.Type.OCTETSTRING:r+=" (Octet string)";break;case V.Type.NULL:r+=" (Null)";break;case V.Type.OID:r+=" (Object Identifier)";break;case V.Type.ODESC:r+=" (Object Descriptor)";break;case V.Type.EXTERNAL:r+=" (External or Instance of)";break;case V.Type.REAL:r+=" (Real)";break;case V.Type.ENUMERATED:r+=" (Enumerated)";break;case V.Type.EMBEDDED:r+=" (Embedded PDV)";break;case V.Type.UTF8:r+=" (UTF8)";break;case V.Type.ROID:r+=" (Relative Object Identifier)";break;case V.Type.SEQUENCE:r+=" (Sequence)";break;case V.Type.SET:r+=" (Set)";break;case V.Type.PRINTABLESTRING:r+=" (Printable String)";break;case V.Type.IA5String:r+=" (IA5String (ASCII))";break;case V.Type.UTCTIME:r+=" (UTC time)";break;case V.Type.GENERALIZEDTIME:r+=" (Generalized time)";break;case V.Type.BMPSTRING:r+=" (BMP String)";break}else r+=e.type;if(r+=`
17
+ `)}function c(f){f?process.env.DEBUG=f:delete process.env.DEBUG}function l(){return process.env.DEBUG}function u(f){f.inspectOpts={};const x=Object.keys(t.inspectOpts);for(let m=0;m<x.length;m++)f.inspectOpts[x[m]]=t.inspectOpts[x[m]]}e.exports=Nd()(t);const{formatters:p}=e.exports;p.o=function(f){return this.inspectOpts.colors=this.useColors,r.inspect(f,this.inspectOpts).split(`
18
+ `).map(x=>x.trim()).join(" ")},p.O=function(f){return this.inspectOpts.colors=this.useColors,r.inspect(f,this.inspectOpts)}})(Fc,Fc.exports)),Fc.exports}var Od;function Ng(){return Od||(Od=1,typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Pc.exports=Bg():Pc.exports=kg()),Pc.exports}var la,Lg=function(){if(!la){try{la=Ng()("follow-redirects")}catch{}typeof la!="function"&&(la=function(){})}la.apply(null,arguments)},ua=Cl,pa=ua.URL,Ug=bl,Dg=El,cu=tt.Writable,lu=im,Fd=Lg;(function(){var t=typeof process<"u",a=typeof window<"u"&&typeof document<"u",r=br(Error.captureStackTrace);!t&&(a||!r)&&console.warn("The follow-redirects package should be excluded from browser builds.")})();var uu=!1;try{lu(new pa(""))}catch(e){uu=e.code==="ERR_INVALID_URL"}var Pg=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],pu=["abort","aborted","connect","error","socket","timeout"],du=Object.create(null);pu.forEach(function(e){du[e]=function(t,a,r){this._redirectable.emit(e,t,a,r)}});var fu=da("ERR_INVALID_URL","Invalid URL",TypeError),mu=da("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),Og=da("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",mu),Fg=da("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),Mg=da("ERR_STREAM_WRITE_AFTER_END","write after end"),Vg=cu.prototype.destroy||Vd;function mt(e,t){cu.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on("response",t);var a=this;this._onNativeResponse=function(r){try{a._processResponse(r)}catch(n){a.emit("error",n instanceof mu?n:new mu({cause:n}))}},this._performRequest()}mt.prototype=Object.create(cu.prototype),mt.prototype.abort=function(){xu(this._currentRequest),this._currentRequest.abort(),this.emit("abort")},mt.prototype.destroy=function(e){return xu(this._currentRequest,e),Vg.call(this,e),this},mt.prototype.write=function(e,t,a){if(this._ending)throw new Mg;if(!yr(e)&&!Kg(e))throw new TypeError("data should be a string, Buffer or Uint8Array");if(br(t)&&(a=t,t=null),e.length===0){a&&a();return}this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,a)):(this.emit("error",new Fg),this.abort())},mt.prototype.end=function(e,t,a){if(br(e)?(a=e,e=t=null):br(t)&&(a=t,t=null),!e)this._ended=this._ending=!0,this._currentRequest.end(null,null,a);else{var r=this,n=this._currentRequest;this.write(e,t,function(){r._ended=!0,n.end(null,null,a)}),this._ending=!0}},mt.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)},mt.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},mt.prototype.setTimeout=function(e,t){var a=this;function r(i){i.setTimeout(e),i.removeListener("timeout",i.destroy),i.addListener("timeout",i.destroy)}function n(i){a._timeout&&clearTimeout(a._timeout),a._timeout=setTimeout(function(){a.emit("timeout"),s()},e),r(i)}function s(){a._timeout&&(clearTimeout(a._timeout),a._timeout=null),a.removeListener("abort",s),a.removeListener("error",s),a.removeListener("response",s),a.removeListener("close",s),t&&a.removeListener("timeout",t),a.socket||a._currentRequest.removeListener("socket",n)}return t&&this.on("timeout",t),this.socket?n(this.socket):this._currentRequest.once("socket",n),this.on("socket",r),this.on("abort",s),this.on("error",s),this.on("response",s),this.on("close",s),this},["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(e){mt.prototype[e]=function(t,a){return this._currentRequest[e](t,a)}}),["aborted","connection","socket"].forEach(function(e){Object.defineProperty(mt.prototype,e,{get:function(){return this._currentRequest[e]}})}),mt.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),e.host&&(e.hostname||(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var t=e.path.indexOf("?");t<0?e.pathname=e.path:(e.pathname=e.path.substring(0,t),e.search=e.path.substring(t))}},mt.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(!t)throw new TypeError("Unsupported protocol "+e);if(this._options.agents){var a=e.slice(0,-1);this._options.agent=this._options.agents[a]}var r=this._currentRequest=t.request(this._options,this._onNativeResponse);r._redirectable=this;for(var n of pu)r.on(n,du[n]);if(this._currentUrl=/^\//.test(this._options.path)?ua.format(this._options):this._options.path,this._isRedirect){var s=0,i=this,o=this._requestBodyBuffers;(function c(l){if(r===i._currentRequest)if(l)i.emit("error",l);else if(s<o.length){var u=o[s++];r.finished||r.write(u.data,u.encoding,c)}else i._ended&&r.end()})()}},mt.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var a=e.headers.location;if(!a||this._options.followRedirects===!1||t<300||t>=400){e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),this._requestBodyBuffers=[];return}if(xu(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)throw new Og;var r,n=this._options.beforeRedirect;n&&(r=Object.assign({Host:e.req.getHeader("host")},this._options.headers));var s=this._options.method;((t===301||t===302)&&this._options.method==="POST"||t===303&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],gu(/^content-/i,this._options.headers));var i=gu(/^host$/i,this._options.headers),o=hu(this._currentUrl),c=i||o.host,l=/^\w+:/.test(a)?this._currentUrl:ua.format(Object.assign(o,{host:c})),u=qg(a,l);if(Fd("redirecting to",u.href),this._isRedirect=!0,vu(u,this._options),(u.protocol!==o.protocol&&u.protocol!=="https:"||u.host!==c&&!jg(u.host,c))&&gu(/^(?:(?:proxy-)?authorization|cookie)$/i,this._options.headers),br(n)){var p={headers:e.headers,statusCode:t},f={url:l,method:s,headers:r};n(this._options,p,f),this._sanitizeOptions(this._options)}this._performRequest()};function Md(e){var t={maxRedirects:21,maxBodyLength:10485760},a={};return Object.keys(e).forEach(function(r){var n=r+":",s=a[n]=e[r],i=t[r]=Object.create(s);function o(l,u,p){return zg(l)?l=vu(l):yr(l)?l=vu(hu(l)):(p=u,u=qd(l),l={protocol:n}),br(u)&&(p=u,u=null),u=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},l,u),u.nativeProtocols=a,!yr(u.host)&&!yr(u.hostname)&&(u.hostname="::1"),lu.equal(u.protocol,n,"protocol mismatch"),Fd("options",u),new mt(u,p)}function c(l,u,p){var f=i.request(l,u,p);return f.end(),f}Object.defineProperties(i,{request:{value:o,configurable:!0,enumerable:!0,writable:!0},get:{value:c,configurable:!0,enumerable:!0,writable:!0}})}),t}function Vd(){}function hu(e){var t;if(uu)t=new pa(e);else if(t=qd(ua.parse(e)),!yr(t.protocol))throw new fu({input:e});return t}function qg(e,t){return uu?new pa(e,t):hu(ua.resolve(t,e))}function qd(e){if(/^\[/.test(e.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(e.hostname))throw new fu({input:e.href||e});if(/^\[/.test(e.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(e.host))throw new fu({input:e.href||e});return e}function vu(e,t){var a=t||{};for(var r of Pg)a[r]=e[r];return a.hostname.startsWith("[")&&(a.hostname=a.hostname.slice(1,-1)),a.port!==""&&(a.port=Number(a.port)),a.path=a.search?a.pathname+a.search:a.pathname,a}function gu(e,t){var a;for(var r in t)e.test(r)&&(a=t[r],delete t[r]);return a===null||typeof a>"u"?void 0:String(a).trim()}function da(e,t,a){function r(n){br(Error.captureStackTrace)&&Error.captureStackTrace(this,this.constructor),Object.assign(this,n||{}),this.code=e,this.message=this.cause?t+": "+this.cause.message:t}return r.prototype=new(a||Error),Object.defineProperties(r.prototype,{constructor:{value:r,enumerable:!1},name:{value:"Error ["+e+"]",enumerable:!1}}),r}function xu(e,t){for(var a of pu)e.removeListener(a,du[a]);e.on("error",Vd),e.destroy(t)}function jg(e,t){lu(yr(e)&&yr(t));var a=e.length-t.length-1;return a>0&&e[a]==="."&&e.endsWith(t)}function yr(e){return typeof e=="string"||e instanceof String}function br(e){return typeof e=="function"}function Kg(e){return typeof e=="object"&&"length"in e}function zg(e){return pa&&e instanceof pa}au.exports=Md({http:Ug,https:Dg}),au.exports.wrap=Md;var Hg=au.exports,$g=Np(Hg);const Mc="1.15.0";function jd(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}const Gg=/^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;function Qg(e,t,a){const r=a&&a.Blob||Ue.classes.Blob,n=jd(e);if(t===void 0&&r&&(t=!0),n==="data"){e=n.length?e.slice(n.length+1):e;const s=Gg.exec(e);if(!s)throw new F("Invalid URL",F.ERR_INVALID_URL);const i=s[1],o=s[2],c=s[3],l=Buffer.from(decodeURIComponent(c),o?"base64":"utf8");if(t){if(!r)throw new F("Blob is not supported",F.ERR_NOT_SUPPORT);return new r([l],{type:i})}return l}throw new F("Unsupported protocol "+n,F.ERR_NOT_SUPPORT)}const yu=Symbol("internals");class Kd extends tt.Transform{constructor(t){t=A.toFlatObject(t,{maxRate:0,chunkSize:64*1024,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,(r,n)=>!A.isUndefined(n[r])),super({readableHighWaterMark:t.chunkSize});const a=this[yu]={timeWindow:t.timeWindow,chunkSize:t.chunkSize,maxRate:t.maxRate,minChunkSize:t.minChunkSize,bytesSeen:0,isCaptured:!1,notifiedBytesLoaded:0,ts:Date.now(),bytes:0,onReadCallback:null};this.on("newListener",r=>{r==="progress"&&(a.isCaptured||(a.isCaptured=!0))})}_read(t){const a=this[yu];return a.onReadCallback&&a.onReadCallback(),super._read(t)}_transform(t,a,r){const n=this[yu],s=n.maxRate,i=this.readableHighWaterMark,o=n.timeWindow,c=1e3/o,l=s/c,u=n.minChunkSize!==!1?Math.max(n.minChunkSize,l*.01):0,p=(x,m)=>{const y=Buffer.byteLength(x);n.bytesSeen+=y,n.bytes+=y,n.isCaptured&&this.emit("progress",n.bytesSeen),this.push(x)?process.nextTick(m):n.onReadCallback=()=>{n.onReadCallback=null,process.nextTick(m)}},f=(x,m)=>{const y=Buffer.byteLength(x);let b=null,S=i,B,_=0;if(s){const P=Date.now();(!n.ts||(_=P-n.ts)>=o)&&(n.ts=P,B=l-n.bytes,n.bytes=B<0?-B:0,_=0),B=l-n.bytes}if(s){if(B<=0)return setTimeout(()=>{m(null,x)},o-_);B<S&&(S=B)}S&&y>S&&y-S>u&&(b=x.subarray(S),x=x.subarray(0,S)),p(x,b?()=>{process.nextTick(m,null,b)}:m)};f(t,function x(m,y){if(m)return r(m);y?f(y,x):r(null)})}}const{asyncIterator:zd}=Symbol,Hd=async function*(e){e.stream?yield*e.stream():e.arrayBuffer?yield await e.arrayBuffer():e[zd]?yield*e[zd]():yield e},Wg=Ue.ALPHABET.ALPHA_DIGIT+"-_",fa=typeof TextEncoder=="function"?new TextEncoder:new hr.TextEncoder,Er=`\r
19
+ `,Yg=fa.encode(Er),Xg=2;class Jg{constructor(t,a){const{escapeName:r}=this.constructor,n=A.isString(a);let s=`Content-Disposition: form-data; name="${r(t)}"${!n&&a.name?`; filename="${r(a.name)}"`:""}${Er}`;n?a=fa.encode(String(a).replace(/\r?\n|\r\n?/g,Er)):s+=`Content-Type: ${a.type||"application/octet-stream"}${Er}`,this.headers=fa.encode(s+Er),this.contentLength=n?a.byteLength:a.size,this.size=this.headers.byteLength+this.contentLength+Xg,this.name=t,this.value=a}async*encode(){yield this.headers;const{value:t}=this;A.isTypedArray(t)?yield t:yield*Hd(t),yield Yg}static escapeName(t){return String(t).replace(/[\r\n"]/g,a=>({"\r":"%0D","\n":"%0A",'"':"%22"})[a])}}const Zg=(e,t,a)=>{const{tag:r="form-data-boundary",size:n=25,boundary:s=r+"-"+Ue.generateString(n,Wg)}=a||{};if(!A.isFormData(e))throw TypeError("FormData instance required");if(s.length<1||s.length>70)throw Error("boundary must be 10-70 characters long");const i=fa.encode("--"+s+Er),o=fa.encode("--"+s+"--"+Er);let c=o.byteLength;const l=Array.from(e.entries()).map(([p,f])=>{const x=new Jg(p,f);return c+=x.size,x});c+=i.byteLength*l.length,c=A.toFiniteNumber(c);const u={"Content-Type":`multipart/form-data; boundary=${s}`};return Number.isFinite(c)&&(u["Content-Length"]=c),t&&t(u),tt.Readable.from((async function*(){for(const p of l)yield i,yield*p.encode();yield o})())};class ex extends tt.Transform{__transform(t,a,r){this.push(t),r()}_transform(t,a,r){if(t.length!==0&&(this._transform=this.__transform,t[0]!==120)){const n=Buffer.alloc(2);n[0]=120,n[1]=156,this.push(n,a)}this.__transform(t,a,r)}}const tx=(e,t)=>A.isAsyncFn(e)?function(...a){const r=a.pop();e.apply(this,a).then(n=>{try{t?r(null,...t(n)):r(null,n)}catch(s){r(s)}},r)}:e,rx={http:80,https:443,ws:80,wss:443,ftp:21},ax=e=>{let t=e,a=0;if(t.charAt(0)==="["){const s=t.indexOf("]");if(s!==-1){const i=t.slice(1,s),o=t.slice(s+1);return o.charAt(0)===":"&&/^\d+$/.test(o.slice(1))&&(a=Number.parseInt(o.slice(1),10)),[i,a]}}const r=t.indexOf(":"),n=t.lastIndexOf(":");return r!==-1&&r===n&&/^\d+$/.test(t.slice(n+1))&&(a=Number.parseInt(t.slice(n+1),10),t=t.slice(0,n)),[t,a]},$d=e=>e&&(e.charAt(0)==="["&&e.charAt(e.length-1)==="]"&&(e=e.slice(1,-1)),e.replace(/\.+$/,""));function nx(e){let t;try{t=new URL(e)}catch{return!1}const a=(process.env.no_proxy||process.env.NO_PROXY||"").toLowerCase();if(!a)return!1;if(a==="*")return!0;const r=Number.parseInt(t.port,10)||rx[t.protocol.split(":",1)[0]]||0,n=$d(t.hostname.toLowerCase());return a.split(/[\s,]+/).some(s=>{if(!s)return!1;let[i,o]=ax(s);return i=$d(i),!i||o&&o!==r?!1:(i.charAt(0)==="*"&&(i=i.slice(1)),i.charAt(0)==="."?n.endsWith(i):n===i)})}function ix(e,t){e=e||10;const a=new Array(e),r=new Array(e);let n=0,s=0,i;return t=t!==void 0?t:1e3,function(c){const l=Date.now(),u=r[s];i||(i=l),a[n]=c,r[n]=l;let p=s,f=0;for(;p!==n;)f+=a[p++],p=p%e;if(n=(n+1)%e,n===s&&(s=(s+1)%e),l-i<t)return;const x=u&&l-u;return x?Math.round(f*1e3/x):void 0}}function sx(e,t){let a=0,r=1e3/t,n,s;const i=(l,u=Date.now())=>{a=u,n=null,s&&(clearTimeout(s),s=null),e(...l)};return[(...l)=>{const u=Date.now(),p=u-a;p>=r?i(l,u):(n=l,s||(s=setTimeout(()=>{s=null,i(n)},r-p)))},()=>n&&i(n)]}const qr=(e,t,a=3)=>{let r=0;const n=ix(50,250);return sx(s=>{const i=s.loaded,o=s.lengthComputable?s.total:void 0,c=i-r,l=n(c),u=i<=o;r=i;const p={loaded:i,total:o,progress:o?i/o:void 0,bytes:c,rate:l||void 0,estimated:l&&o&&u?(o-i)/l:void 0,event:s,lengthComputable:o!=null,[t?"download":"upload"]:!0};e(p)},a)},Vc=(e,t)=>{const a=e!=null;return[r=>t[0]({lengthComputable:a,total:e,loaded:r}),t[1]]},qc=e=>(...t)=>A.asap(()=>e(...t));function ox(e){if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const a=e.slice(5,t),r=e.slice(t+1);if(/;base64/i.test(a)){let s=r.length;const i=r.length;for(let f=0;f<i;f++)if(r.charCodeAt(f)===37&&f+2<i){const x=r.charCodeAt(f+1),m=r.charCodeAt(f+2);(x>=48&&x<=57||x>=65&&x<=70||x>=97&&x<=102)&&(m>=48&&m<=57||m>=65&&m<=70||m>=97&&m<=102)&&(s-=2,f+=2)}let o=0,c=i-1;const l=f=>f>=2&&r.charCodeAt(f-2)===37&&r.charCodeAt(f-1)===51&&(r.charCodeAt(f)===68||r.charCodeAt(f)===100);c>=0&&(r.charCodeAt(c)===61?(o++,c--):l(c)&&(o++,c-=3)),o===1&&c>=0&&(r.charCodeAt(c)===61||l(c))&&o++;const p=Math.floor(s/4)*3-(o||0);return p>0?p:0}return Buffer.byteLength(r,"utf8")}const Gd={flush:tr.constants.Z_SYNC_FLUSH,finishFlush:tr.constants.Z_SYNC_FLUSH},cx={flush:tr.constants.BROTLI_OPERATION_FLUSH,finishFlush:tr.constants.BROTLI_OPERATION_FLUSH},Qd=A.isFunction(tr.createBrotliDecompress),{http:lx,https:ux}=$g,px=/https:?/,Wd=Ue.protocols.map(e=>e+":"),Yd=(e,[t,a])=>(e.on("end",a).on("error",a),t);class dx{constructor(){this.sessions=Object.create(null)}getSession(t,a){a=Object.assign({sessionTimeout:1e3},a);let r=this.sessions[t];if(r){let u=r.length;for(let p=0;p<u;p++){const[f,x]=r[p];if(!f.destroyed&&!f.closed&&hr.isDeepStrictEqual(x,a))return f}}const n=yp.connect(t,a);let s;const i=()=>{if(s)return;s=!0;let u=r,p=u.length,f=p;for(;f--;)if(u[f][0]===n){p===1?delete this.sessions[t]:u.splice(f,1),n.closed||n.close();return}},o=n.request,{sessionTimeout:c}=a;if(c!=null){let u,p=0;n.request=function(){const f=o.apply(this,arguments);return p++,u&&(clearTimeout(u),u=null),f.once("close",()=>{--p||(u=setTimeout(()=>{u=null,i()},c))}),f}}n.once("close",i);let l=[n,a];return r?r.push(l):r=this.sessions[t]=[l],n}}const fx=new dx;function mx(e,t){e.beforeRedirects.proxy&&e.beforeRedirects.proxy(e),e.beforeRedirects.config&&e.beforeRedirects.config(e,t)}function Xd(e,t,a){let r=t;if(!r&&r!==!1){const n=wg(a);n&&(nx(a)||(r=new URL(n)))}if(r){if(r.username&&(r.auth=(r.username||"")+":"+(r.password||"")),r.auth){if(!!(r.auth.username||r.auth.password))r.auth=(r.auth.username||"")+":"+(r.auth.password||"");else if(typeof r.auth=="object")throw new F("Invalid proxy authorization",F.ERR_BAD_OPTION,{proxy:r});const i=Buffer.from(r.auth,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+i}e.headers.host=e.hostname+(e.port?":"+e.port:"");const n=r.hostname||r.host;e.hostname=n,e.host=n,e.port=r.port,e.path=a,r.protocol&&(e.protocol=r.protocol.includes(":")?r.protocol:`${r.protocol}:`)}e.beforeRedirects.proxy=function(s){Xd(s,t,s.href)}}const hx=typeof process<"u"&&A.kindOf(process)==="process",vx=e=>new Promise((t,a)=>{let r,n;const s=(c,l)=>{n||(n=!0,r&&r(c,l))},i=c=>{s(c),t(c)},o=c=>{s(c,!0),a(c)};e(i,o,c=>r=c).catch(o)}),gx=({address:e,family:t})=>{if(!A.isString(e))throw TypeError("address must be a string");return{address:e,family:t||(e.indexOf(".")<0?6:4)}},Jd=(e,t)=>gx(A.isObject(e)?e:{address:e,family:t}),xx={request(e,t){const a=e.protocol+"//"+e.hostname+":"+(e.port||(e.protocol==="https:"?443:80)),{http2Options:r,headers:n}=e,s=fx.getSession(a,r),{HTTP2_HEADER_SCHEME:i,HTTP2_HEADER_METHOD:o,HTTP2_HEADER_PATH:c,HTTP2_HEADER_STATUS:l}=yp.constants,u={[i]:e.protocol.replace(":",""),[o]:e.method,[c]:e.path};A.forEach(n,(f,x)=>{x.charAt(0)!==":"&&(u[x]=f)});const p=s.request(u);return p.once("response",f=>{const x=p;f=Object.assign({},f);const m=f[l];delete f[l],x.headers=f,x.statusCode=+m,t(x)}),p}};var yx=hx&&function(t){return vx(async function(r,n,s){let{data:i,lookup:o,family:c,httpVersion:l=1,http2Options:u}=t;const{responseType:p,responseEncoding:f}=t,x=t.method.toUpperCase();let m,y=!1,b;if(l=+l,Number.isNaN(l))throw TypeError(`Invalid protocol version: '${t.httpVersion}' is not a number`);if(l!==1&&l!==2)throw TypeError(`Unsupported protocol version '${l}'`);const S=l===2;if(o){const $=tx(o,M=>A.isArray(M)?M:[M]);o=(M,X,ye)=>{$(M,X,(ae,Ce,Ae)=>{if(ae)return ye(ae);const xe=A.isArray(Ce)?Ce.map(Pe=>Jd(Pe)):[Jd(Ce,Ae)];X.all?ye(ae,xe):ye(ae,xe[0].address,xe[0].family)})}}const B=new om.EventEmitter;function _($){try{B.emit("abort",!$||$.type?new xr(null,t,b):$)}catch(M){console.warn("emit error",M)}}B.once("abort",n);const P=()=>{t.cancelToken&&t.cancelToken.unsubscribe(_),t.signal&&t.signal.removeEventListener("abort",_),B.removeAllListeners()};(t.cancelToken||t.signal)&&(t.cancelToken&&t.cancelToken.subscribe(_),t.signal&&(t.signal.aborted?_():t.signal.addEventListener("abort",_))),s(($,M)=>{if(m=!0,M){y=!0,P();return}const{data:X}=$;if(X instanceof tt.Readable||X instanceof tt.Duplex){const ye=tt.finished(X,()=>{ye(),P()})}else P()});const U=tu(t.baseURL,t.url,t.allowAbsoluteUrls),k=new URL(U,Ue.hasBrowserEnv?Ue.origin:void 0),H=k.protocol||Wd[0];if(H==="data:"){if(t.maxContentLength>-1){const M=String(t.url||U||"");if(ox(M)>t.maxContentLength)return n(new F("maxContentLength size of "+t.maxContentLength+" exceeded",F.ERR_BAD_RESPONSE,t))}let $;if(x!=="GET")return Vr(r,n,{status:405,statusText:"method not allowed",headers:{},config:t});try{$=Qg(t.url,p==="blob",{Blob:t.env&&t.env.Blob})}catch(M){throw F.from(M,F.ERR_BAD_REQUEST,t)}return p==="text"?($=$.toString(f),(!f||f==="utf8")&&($=A.stripBOM($))):p==="stream"&&($=tt.Readable.from($)),Vr(r,n,{data:$,status:200,statusText:"OK",headers:new He,config:t})}if(Wd.indexOf(H)===-1)return n(new F("Unsupported protocol "+H,F.ERR_BAD_REQUEST,t));const G=He.from(t.headers).normalize();G.set("User-Agent","axios/"+Mc,!1);const{onUploadProgress:Z,onDownloadProgress:ce}=t,pe=t.maxRate;let he,_e;if(A.isSpecCompliantForm(i)){const $=G.getContentType(/boundary=([-_\w\d]{10,70})/i);i=Zg(i,M=>{G.set(M)},{tag:`axios-${Mc}-boundary`,boundary:$&&$[1]||void 0})}else if(A.isFormData(i)&&A.isFunction(i.getHeaders)){if(G.set(i.getHeaders()),!G.hasContentLength())try{const $=await hr.promisify(i.getLength).call(i);Number.isFinite($)&&$>=0&&G.setContentLength($)}catch{}}else if(A.isBlob(i)||A.isFile(i))i.size&&G.setContentType(i.type||"application/octet-stream"),G.setContentLength(i.size||0),i=tt.Readable.from(Hd(i));else if(i&&!A.isStream(i)){if(!Buffer.isBuffer(i))if(A.isArrayBuffer(i))i=Buffer.from(new Uint8Array(i));else if(A.isString(i))i=Buffer.from(i,"utf-8");else return n(new F("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",F.ERR_BAD_REQUEST,t));if(G.setContentLength(i.length,!1),t.maxBodyLength>-1&&i.length>t.maxBodyLength)return n(new F("Request body larger than maxBodyLength limit",F.ERR_BAD_REQUEST,t))}const ke=A.toFiniteNumber(G.getContentLength());A.isArray(pe)?(he=pe[0],_e=pe[1]):he=_e=pe,i&&(Z||he)&&(A.isStream(i)||(i=tt.Readable.from(i,{objectMode:!1})),i=tt.pipeline([i,new Kd({maxRate:A.toFiniteNumber(he)})],A.noop),Z&&i.on("progress",Yd(i,Vc(ke,qr(qc(Z),!1,3)))));let le;if(t.auth){const $=t.auth.username||"",M=t.auth.password||"";le=$+":"+M}if(!le&&k.username){const $=k.username,M=k.password;le=$+":"+M}le&&G.delete("authorization");let re;try{re=Wl(k.pathname+k.search,t.params,t.paramsSerializer).replace(/^\?/,"")}catch($){const M=new Error($.message);return M.config=t,M.url=t.url,M.exists=!0,n(M)}G.set("Accept-Encoding","gzip, compress, deflate"+(Qd?", br":""),!1);const j={path:re,method:x,headers:G.toJSON(),agents:{http:t.httpAgent,https:t.httpsAgent},auth:le,protocol:H,family:c,beforeRedirect:mx,beforeRedirects:{},http2Options:u};!A.isUndefined(o)&&(j.lookup=o),t.socketPath?j.socketPath=t.socketPath:(j.hostname=k.hostname.startsWith("[")?k.hostname.slice(1,-1):k.hostname,j.port=k.port,Xd(j,t.proxy,H+"//"+k.hostname+(k.port?":"+k.port:"")+j.path));let Ne;const At=px.test(j.protocol);if(j.agent=At?t.httpsAgent:t.httpAgent,S?Ne=xx:t.transport?Ne=t.transport:t.maxRedirects===0?Ne=At?El:bl:(t.maxRedirects&&(j.maxRedirects=t.maxRedirects),t.beforeRedirect&&(j.beforeRedirects.config=t.beforeRedirect),Ne=At?ux:lx),t.maxBodyLength>-1?j.maxBodyLength=t.maxBodyLength:j.maxBodyLength=1/0,t.insecureHTTPParser&&(j.insecureHTTPParser=t.insecureHTTPParser),b=Ne.request(j,function(M){if(b.destroyed)return;const X=[M],ye=A.toFiniteNumber(M.headers["content-length"]);if(ce||_e){const xe=new Kd({maxRate:A.toFiniteNumber(_e)});ce&&xe.on("progress",Yd(xe,Vc(ye,qr(qc(ce),!0,3)))),X.push(xe)}let ae=M;const Ce=M.req||b;if(t.decompress!==!1&&M.headers["content-encoding"])switch((x==="HEAD"||M.statusCode===204)&&delete M.headers["content-encoding"],(M.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":X.push(tr.createUnzip(Gd)),delete M.headers["content-encoding"];break;case"deflate":X.push(new ex),X.push(tr.createUnzip(Gd)),delete M.headers["content-encoding"];break;case"br":Qd&&(X.push(tr.createBrotliDecompress(cx)),delete M.headers["content-encoding"])}ae=X.length>1?tt.pipeline(X,A.noop):X[0];const Ae={status:M.statusCode,statusText:M.statusMessage,headers:new He(M.headers),config:t,request:Ce};if(p==="stream")Ae.data=ae,Vr(r,n,Ae);else{const xe=[];let Pe=0;ae.on("data",function(ge){xe.push(ge),Pe+=ge.length,t.maxContentLength>-1&&Pe>t.maxContentLength&&(y=!0,ae.destroy(),_(new F("maxContentLength size of "+t.maxContentLength+" exceeded",F.ERR_BAD_RESPONSE,t,Ce)))}),ae.on("aborted",function(){if(y)return;const ge=new F("stream has been aborted",F.ERR_BAD_RESPONSE,t,Ce);ae.destroy(ge),n(ge)}),ae.on("error",function(ge){b.destroyed||n(F.from(ge,null,t,Ce))}),ae.on("end",function(){try{let ge=xe.length===1?xe[0]:Buffer.concat(xe);p!=="arraybuffer"&&(ge=ge.toString(f),(!f||f==="utf8")&&(ge=A.stripBOM(ge))),Ae.data=ge}catch(ge){return n(F.from(ge,null,t,Ae.request,Ae))}Vr(r,n,Ae)})}B.once("abort",xe=>{ae.destroyed||(ae.emit("error",xe),ae.destroy())})}),B.once("abort",$=>{b.close?b.close():b.destroy($)}),b.on("error",function(M){n(F.from(M,null,t,b))}),b.on("socket",function(M){M.setKeepAlive(!0,1e3*60)}),t.timeout){const $=parseInt(t.timeout,10);if(Number.isNaN($)){_(new F("error trying to parse `config.timeout` to int",F.ERR_BAD_OPTION_VALUE,t,b));return}b.setTimeout($,function(){if(m)return;let X=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const ye=t.transitional||Uc;t.timeoutErrorMessage&&(X=t.timeoutErrorMessage),_(new F(X,ye.clarifyTimeoutError?F.ETIMEDOUT:F.ECONNABORTED,t,b))})}else b.setTimeout(0);if(A.isStream(i)){let $=!1,M=!1;i.on("end",()=>{$=!0}),i.once("error",X=>{M=!0,b.destroy(X)}),i.on("close",()=>{!$&&!M&&_(new xr("Request stream has been aborted",t,b))}),i.pipe(b)}else i&&b.write(i),b.end()})},bx=Ue.hasStandardBrowserEnv?((e,t)=>a=>(a=new URL(a,Ue.origin),e.protocol===a.protocol&&e.host===a.host&&(t||e.port===a.port)))(new URL(Ue.origin),Ue.navigator&&/(msie|trident)/i.test(Ue.navigator.userAgent)):()=>!0,Ex=Ue.hasStandardBrowserEnv?{write(e,t,a,r,n,s,i){if(typeof document>"u")return;const o=[`${e}=${encodeURIComponent(t)}`];A.isNumber(a)&&o.push(`expires=${new Date(a).toUTCString()}`),A.isString(r)&&o.push(`path=${r}`),A.isString(n)&&o.push(`domain=${n}`),s===!0&&o.push("secure"),A.isString(i)&&o.push(`SameSite=${i}`),document.cookie=o.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};const Zd=e=>e instanceof He?{...e}:e;function Cr(e,t){t=t||{};const a={};function r(l,u,p,f){return A.isPlainObject(l)&&A.isPlainObject(u)?A.merge.call({caseless:f},l,u):A.isPlainObject(u)?A.merge({},u):A.isArray(u)?u.slice():u}function n(l,u,p,f){if(A.isUndefined(u)){if(!A.isUndefined(l))return r(void 0,l,p,f)}else return r(l,u,p,f)}function s(l,u){if(!A.isUndefined(u))return r(void 0,u)}function i(l,u){if(A.isUndefined(u)){if(!A.isUndefined(l))return r(void 0,l)}else return r(void 0,u)}function o(l,u,p){if(p in t)return r(l,u);if(p in e)return r(void 0,l)}const c={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:o,headers:(l,u,p)=>n(Zd(l),Zd(u),p,!0)};return A.forEach(Object.keys({...e,...t}),function(u){if(u==="__proto__"||u==="constructor"||u==="prototype")return;const p=A.hasOwnProp(c,u)?c[u]:n,f=p(e[u],t[u],u);A.isUndefined(f)&&p!==o||(a[u]=f)}),a}var ef=e=>{const t=Cr({},e);let{data:a,withXSRFToken:r,xsrfHeaderName:n,xsrfCookieName:s,headers:i,auth:o}=t;if(t.headers=i=He.from(i),t.url=Wl(tu(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),o&&i.set("Authorization","Basic "+btoa((o.username||"")+":"+(o.password?unescape(encodeURIComponent(o.password)):""))),A.isFormData(a)){if(Ue.hasStandardBrowserEnv||Ue.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(A.isFunction(a.getHeaders)){const c=a.getHeaders(),l=["content-type","content-length"];Object.entries(c).forEach(([u,p])=>{l.includes(u.toLowerCase())&&i.set(u,p)})}}if(Ue.hasStandardBrowserEnv&&(r&&A.isFunction(r)&&(r=r(t)),r||r!==!1&&bx(t.url))){const c=n&&s&&Ex.read(s);c&&i.set(n,c)}return t};const Cx=typeof XMLHttpRequest<"u";var Sx=Cx&&function(e){return new Promise(function(a,r){const n=ef(e);let s=n.data;const i=He.from(n.headers).normalize();let{responseType:o,onUploadProgress:c,onDownloadProgress:l}=n,u,p,f,x,m;function y(){x&&x(),m&&m(),n.cancelToken&&n.cancelToken.unsubscribe(u),n.signal&&n.signal.removeEventListener("abort",u)}let b=new XMLHttpRequest;b.open(n.method.toUpperCase(),n.url,!0),b.timeout=n.timeout;function S(){if(!b)return;const _=He.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders()),U={data:!o||o==="text"||o==="json"?b.responseText:b.response,status:b.status,statusText:b.statusText,headers:_,config:e,request:b};Vr(function(H){a(H),y()},function(H){r(H),y()},U),b=null}"onloadend"in b?b.onloadend=S:b.onreadystatechange=function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.indexOf("file:")===0)||setTimeout(S)},b.onabort=function(){b&&(r(new F("Request aborted",F.ECONNABORTED,e,b)),b=null)},b.onerror=function(P){const U=P&&P.message?P.message:"Network Error",k=new F(U,F.ERR_NETWORK,e,b);k.event=P||null,r(k),b=null},b.ontimeout=function(){let P=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const U=n.transitional||Uc;n.timeoutErrorMessage&&(P=n.timeoutErrorMessage),r(new F(P,U.clarifyTimeoutError?F.ETIMEDOUT:F.ECONNABORTED,e,b)),b=null},s===void 0&&i.setContentType(null),"setRequestHeader"in b&&A.forEach(i.toJSON(),function(P,U){b.setRequestHeader(U,P)}),A.isUndefined(n.withCredentials)||(b.withCredentials=!!n.withCredentials),o&&o!=="json"&&(b.responseType=n.responseType),l&&([f,m]=qr(l,!0),b.addEventListener("progress",f)),c&&b.upload&&([p,x]=qr(c),b.upload.addEventListener("progress",p),b.upload.addEventListener("loadend",x)),(n.cancelToken||n.signal)&&(u=_=>{b&&(r(!_||_.type?new xr(null,e,b):_),b.abort(),b=null)},n.cancelToken&&n.cancelToken.subscribe(u),n.signal&&(n.signal.aborted?u():n.signal.addEventListener("abort",u)));const B=jd(n.url);if(B&&Ue.protocols.indexOf(B)===-1){r(new F("Unsupported protocol "+B+":",F.ERR_BAD_REQUEST,e));return}b.send(s||null)})};const Tx=(e,t)=>{const{length:a}=e=e?e.filter(Boolean):[];if(t||a){let r=new AbortController,n;const s=function(l){if(!n){n=!0,o();const u=l instanceof Error?l:this.reason;r.abort(u instanceof F?u:new xr(u instanceof Error?u.message:u))}};let i=t&&setTimeout(()=>{i=null,s(new F(`timeout of ${t}ms exceeded`,F.ETIMEDOUT))},t);const o=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(s):l.removeEventListener("abort",s)}),e=null)};e.forEach(l=>l.addEventListener("abort",s));const{signal:c}=r;return c.unsubscribe=()=>A.asap(o),c}},wx=function*(e,t){let a=e.byteLength;if(!t||a<t){yield e;return}let r=0,n;for(;r<a;)n=r+t,yield e.slice(r,n),r=n},Ax=async function*(e,t){for await(const a of Ix(e))yield*wx(a,t)},Ix=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:a,value:r}=await t.read();if(a)break;yield r}}finally{await t.cancel()}},tf=(e,t,a,r)=>{const n=Ax(e,t);let s=0,i,o=c=>{i||(i=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:l,value:u}=await n.next();if(l){o(),c.close();return}let p=u.byteLength;if(a){let f=s+=p;a(f)}c.enqueue(new Uint8Array(u))}catch(l){throw o(l),l}},cancel(c){return o(c),n.return()}},{highWaterMark:2})},rf=64*1024,{isFunction:jc}=A,Bx=(({Request:e,Response:t})=>({Request:e,Response:t}))(A.global),{ReadableStream:af,TextEncoder:nf}=A.global,sf=(e,...t)=>{try{return!!e(...t)}catch{return!1}},_x=e=>{e=A.merge.call({skipUndefined:!0},Bx,e);const{fetch:t,Request:a,Response:r}=e,n=t?jc(t):typeof fetch=="function",s=jc(a),i=jc(r);if(!n)return!1;const o=n&&jc(af),c=n&&(typeof nf=="function"?(m=>y=>m.encode(y))(new nf):async m=>new Uint8Array(await new a(m).arrayBuffer())),l=s&&o&&sf(()=>{let m=!1;const y=new af,b=new a(Ue.origin,{body:y,method:"POST",get duplex(){return m=!0,"half"}}).headers.has("Content-Type");return y.cancel(),m&&!b}),u=i&&o&&sf(()=>A.isReadableStream(new r("").body)),p={stream:u&&(m=>m.body)};n&&["text","arrayBuffer","blob","formData","stream"].forEach(m=>{!p[m]&&(p[m]=(y,b)=>{let S=y&&y[m];if(S)return S.call(y);throw new F(`Response type '${m}' is not supported`,F.ERR_NOT_SUPPORT,b)})});const f=async m=>{if(m==null)return 0;if(A.isBlob(m))return m.size;if(A.isSpecCompliantForm(m))return(await new a(Ue.origin,{method:"POST",body:m}).arrayBuffer()).byteLength;if(A.isArrayBufferView(m)||A.isArrayBuffer(m))return m.byteLength;if(A.isURLSearchParams(m)&&(m=m+""),A.isString(m))return(await c(m)).byteLength},x=async(m,y)=>{const b=A.toFiniteNumber(m.getContentLength());return b??f(y)};return async m=>{let{url:y,method:b,data:S,signal:B,cancelToken:_,timeout:P,onDownloadProgress:U,onUploadProgress:k,responseType:H,headers:G,withCredentials:Z="same-origin",fetchOptions:ce}=ef(m),pe=t||fetch;H=H?(H+"").toLowerCase():"text";let he=Tx([B,_&&_.toAbortSignal()],P),_e=null;const ke=he&&he.unsubscribe&&(()=>{he.unsubscribe()});let le;try{if(k&&l&&b!=="get"&&b!=="head"&&(le=await x(G,S))!==0){let M=new a(y,{method:"POST",body:S,duplex:"half"}),X;if(A.isFormData(S)&&(X=M.headers.get("content-type"))&&G.setContentType(X),M.body){const[ye,ae]=Vc(le,qr(qc(k)));S=tf(M.body,rf,ye,ae)}}A.isString(Z)||(Z=Z?"include":"omit");const re=s&&"credentials"in a.prototype,j={...ce,signal:he,method:b.toUpperCase(),headers:G.normalize().toJSON(),body:S,duplex:"half",credentials:re?Z:void 0};_e=s&&new a(y,j);let Ne=await(s?pe(_e,ce):pe(y,j));const At=u&&(H==="stream"||H==="response");if(u&&(U||At&&ke)){const M={};["status","statusText","headers"].forEach(Ce=>{M[Ce]=Ne[Ce]});const X=A.toFiniteNumber(Ne.headers.get("content-length")),[ye,ae]=U&&Vc(X,qr(qc(U),!0))||[];Ne=new r(tf(Ne.body,rf,ye,()=>{ae&&ae(),ke&&ke()}),M)}H=H||"text";let $=await p[A.findKey(p,H)||"text"](Ne,m);return!At&&ke&&ke(),await new Promise((M,X)=>{Vr(M,X,{data:$,headers:He.from(Ne.headers),status:Ne.status,statusText:Ne.statusText,config:m,request:_e})})}catch(re){throw ke&&ke(),re&&re.name==="TypeError"&&/Load failed|fetch/i.test(re.message)?Object.assign(new F("Network Error",F.ERR_NETWORK,m,_e,re&&re.response),{cause:re.cause||re}):F.from(re,re&&re.code,m,_e,re&&re.response)}}},Rx=new Map,of=e=>{let t=e&&e.env||{};const{fetch:a,Request:r,Response:n}=t,s=[r,n,a];let i=s.length,o=i,c,l,u=Rx;for(;o--;)c=s[o],l=u.get(c),l===void 0&&u.set(c,l=o?new Map:_x(t)),u=l;return l};of();const bu={http:yx,xhr:Sx,fetch:{get:of}};A.forEach(bu,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const cf=e=>`- ${e}`,kx=e=>A.isFunction(e)||e===null||e===!1;function Nx(e,t){e=A.isArray(e)?e:[e];const{length:a}=e;let r,n;const s={};for(let i=0;i<a;i++){r=e[i];let o;if(n=r,!kx(r)&&(n=bu[(o=String(r)).toLowerCase()],n===void 0))throw new F(`Unknown adapter '${o}'`);if(n&&(A.isFunction(n)||(n=n.get(t))))break;s[o||"#"+i]=n}if(!n){const i=Object.entries(s).map(([c,l])=>`adapter ${c} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=a?i.length>1?`since :
20
+ `+i.map(cf).join(`
21
+ `):" "+cf(i[0]):"as no adapter specified";throw new F("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return n}var lf={getAdapter:Nx,adapters:bu};function Eu(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new xr(null,e)}function uf(e){return Eu(e),e.headers=He.from(e.headers),e.data=eu.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),lf.getAdapter(e.adapter||oa.adapter,e)(e).then(function(r){return Eu(e),r.data=eu.call(e,e.transformResponse,r),r.headers=He.from(r.headers),r},function(r){return _d(r)||(Eu(e),r&&r.response&&(r.response.data=eu.call(e,e.transformResponse,r.response),r.response.headers=He.from(r.response.headers))),Promise.reject(r)})}const Kc={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Kc[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const pf={};Kc.transitional=function(t,a,r){function n(s,i){return"[Axios v"+Mc+"] Transitional option '"+s+"'"+i+(r?". "+r:"")}return(s,i,o)=>{if(t===!1)throw new F(n(i," has been removed"+(a?" in "+a:"")),F.ERR_DEPRECATED);return a&&!pf[i]&&(pf[i]=!0,console.warn(n(i," has been deprecated since v"+a+" and will be removed in the near future"))),t?t(s,i,o):!0}},Kc.spelling=function(t){return(a,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function Lx(e,t,a){if(typeof e!="object")throw new F("options must be an object",F.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let n=r.length;for(;n-- >0;){const s=r[n],i=t[s];if(i){const o=e[s],c=o===void 0||i(o,s,e);if(c!==!0)throw new F("option "+s+" must be "+c,F.ERR_BAD_OPTION_VALUE);continue}if(a!==!0)throw new F("Unknown option "+s,F.ERR_BAD_OPTION)}}var zc={assertOptions:Lx,validators:Kc};const Rt=zc.validators;let Sr=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Sd,response:new Sd}}async request(t,a){try{return await this._request(t,a)}catch(r){if(r instanceof Error){let n={};Error.captureStackTrace?Error.captureStackTrace(n):n=new Error;const s=(()=>{if(!n.stack)return"";const i=n.stack.indexOf(`
22
+ `);return i===-1?"":n.stack.slice(i+1)})();try{if(!r.stack)r.stack=s;else if(s){const i=s.indexOf(`
23
+ `),o=i===-1?-1:s.indexOf(`
24
+ `,i+1),c=o===-1?"":s.slice(o+1);String(r.stack).endsWith(c)||(r.stack+=`
25
+ `+s)}}catch{}}throw r}}_request(t,a){typeof t=="string"?(a=a||{},a.url=t):a=t||{},a=Cr(this.defaults,a);const{transitional:r,paramsSerializer:n,headers:s}=a;r!==void 0&&zc.assertOptions(r,{silentJSONParsing:Rt.transitional(Rt.boolean),forcedJSONParsing:Rt.transitional(Rt.boolean),clarifyTimeoutError:Rt.transitional(Rt.boolean),legacyInterceptorReqResOrdering:Rt.transitional(Rt.boolean)},!1),n!=null&&(A.isFunction(n)?a.paramsSerializer={serialize:n}:zc.assertOptions(n,{encode:Rt.function,serialize:Rt.function},!0)),a.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?a.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:a.allowAbsoluteUrls=!0),zc.assertOptions(a,{baseUrl:Rt.spelling("baseURL"),withXsrfToken:Rt.spelling("withXSRFToken")},!0),a.method=(a.method||this.defaults.method||"get").toLowerCase();let i=s&&A.merge(s.common,s[a.method]);s&&A.forEach(["delete","get","head","post","put","patch","common"],m=>{delete s[m]}),a.headers=He.concat(i,s);const o=[];let c=!0;this.interceptors.request.forEach(function(y){if(typeof y.runWhen=="function"&&y.runWhen(a)===!1)return;c=c&&y.synchronous;const b=a.transitional||Uc;b&&b.legacyInterceptorReqResOrdering?o.unshift(y.fulfilled,y.rejected):o.push(y.fulfilled,y.rejected)});const l=[];this.interceptors.response.forEach(function(y){l.push(y.fulfilled,y.rejected)});let u,p=0,f;if(!c){const m=[uf.bind(this),void 0];for(m.unshift(...o),m.push(...l),f=m.length,u=Promise.resolve(a);p<f;)u=u.then(m[p++],m[p++]);return u}f=o.length;let x=a;for(;p<f;){const m=o[p++],y=o[p++];try{x=m(x)}catch(b){y.call(this,b);break}}try{u=uf.call(this,x)}catch(m){return Promise.reject(m)}for(p=0,f=l.length;p<f;)u=u.then(l[p++],l[p++]);return u}getUri(t){t=Cr(this.defaults,t);const a=tu(t.baseURL,t.url,t.allowAbsoluteUrls);return Wl(a,t.params,t.paramsSerializer)}};A.forEach(["delete","get","head","options"],function(t){Sr.prototype[t]=function(a,r){return this.request(Cr(r||{},{method:t,url:a,data:(r||{}).data}))}}),A.forEach(["post","put","patch"],function(t){function a(r){return function(s,i,o){return this.request(Cr(o||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:i}))}}Sr.prototype[t]=a(),Sr.prototype[t+"Form"]=a(!0)});let Ux=class am{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let a;this.promise=new Promise(function(s){a=s});const r=this;this.promise.then(n=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](n);r._listeners=null}),this.promise.then=n=>{let s;const i=new Promise(o=>{r.subscribe(o),s=o}).then(n);return i.cancel=function(){r.unsubscribe(s)},i},t(function(s,i,o){r.reason||(r.reason=new xr(s,i,o),a(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const a=this._listeners.indexOf(t);a!==-1&&this._listeners.splice(a,1)}toAbortSignal(){const t=new AbortController,a=r=>{t.abort(r)};return this.subscribe(a),t.signal.unsubscribe=()=>this.unsubscribe(a),t.signal}static source(){let t;return{token:new am(function(n){t=n}),cancel:t}}};function Dx(e){return function(a){return e.apply(null,a)}}function Px(e){return A.isObject(e)&&e.isAxiosError===!0}const Cu={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Cu).forEach(([e,t])=>{Cu[t]=e});function df(e){const t=new Sr(e),a=Ep(Sr.prototype.request,t);return A.extend(a,Sr.prototype,t,{allOwnKeys:!0}),A.extend(a,t,null,{allOwnKeys:!0}),a.create=function(n){return df(Cr(e,n))},a}const Fe=df(oa);Fe.Axios=Sr,Fe.CanceledError=xr,Fe.CancelToken=Ux,Fe.isCancel=_d,Fe.VERSION=Mc,Fe.toFormData=Lc,Fe.AxiosError=F,Fe.Cancel=Fe.CanceledError,Fe.all=function(t){return Promise.all(t)},Fe.spread=Dx,Fe.isAxiosError=Px,Fe.mergeConfig=Cr,Fe.AxiosHeaders=He,Fe.formToJSON=e=>Ad(A.isHTMLForm(e)?new FormData(e):e),Fe.getAdapter=lf.getAdapter,Fe.HttpStatusCode=Cu,Fe.default=Fe;var be=Fe;const{Axios:j2,AxiosError:K2,CanceledError:z2,isCancel:H2,CancelToken:$2,VERSION:G2,all:Q2,Cancel:W2,isAxiosError:rt,spread:Y2,toFormData:X2,AxiosHeaders:J2,HttpStatusCode:Z2,formToJSON:eS,getAdapter:tS,mergeConfig:rS}=be,at="https://api.circle.com".replace(/\/+$/,"");let Ox=class extends Error{constructor(t,a){super(a),this.field=t,this.name="RequiredError"}};const nt={},it="https://example.com",qt=function(e,t,a){if(a==null)throw new Ox(t,`Required parameter ${t} was null or undefined when calling ${e}.`)},ht=async function(e,t){if(t&&t.accessToken){const a=typeof t.accessToken=="function"?await t.accessToken():await t.accessToken;e.Authorization="Bearer "+a}};function Su(e,t,a=""){t!=null&&(typeof t=="object"?Array.isArray(t)?t.forEach(r=>Su(e,r,a)):Object.keys(t).forEach(r=>Su(e,t[r],`${a}${a!==""?".":""}${r}`)):e.has(a)?e.append(a,t):e.set(a,t))}const st=function(e,...t){const a=new URLSearchParams(e.search);Su(a,t),e.search=a.toString()},Tr=function(e,t,a){const r=typeof e!="string";return(r&&a&&a.isJsonMime?a.isJsonMime(t.headers["Content-Type"]):r)?JSON.stringify(e!==void 0?e:{}):e||""},ot=function(e){return e.pathname+e.search+e.hash},ct=function(e,t,a,r){return(n=t,s=a)=>{const i={...e.options,url:(r?.basePath||n.defaults.baseURL||s)+e.url};return n.request(i)}},Fx=function(e){return{getEntityConfig:async(t={})=>{const a="/v1/w3s/config/entity",r=new URL(a,it);let n;e&&(n=e.baseOptions);const s={method:"GET",...n,...t},i={},o={};await ht(i,e),st(r,o);let c=n&&n.headers?n.headers:{};return s.headers={...i,...c,...t.headers},{url:ot(r),options:s}},getPublicKey:async(t={})=>{const a="/v1/w3s/config/entity/publicKey",r=new URL(a,it);let n;e&&(n=e.baseOptions);const s={method:"GET",...n,...t},i={},o={};await ht(i,e),st(r,o);let c=n&&n.headers?n.headers:{};return s.headers={...i,...c,...t.headers},{url:ot(r),options:s}}}},Mx=function(e){const t=Fx(e);return{async getEntityConfig(a){const r=await t.getEntityConfig(a),n=e?.serverIndex??0,s=nt["DeveloperAccountApi.getEntityConfig"]?.[n]?.url;return(i,o)=>ct(r,be,at,e)(i,s||o)},async getPublicKey(a){const r=await t.getPublicKey(a),n=e?.serverIndex??0,s=nt["DeveloperAccountApi.getPublicKey"]?.[n]?.url;return(i,o)=>ct(r,be,at,e)(i,s||o)}}},Vx=function(e,t,a){const r=Mx(e);return{getEntityConfig(n){return r.getEntityConfig(n).then(s=>s(a,t))},getPublicKey(n){return r.getPublicKey(n).then(s=>s(a,t))}}},qx=function(e){return{requestTestnetTokens:async(t,a,r={})=>{const n="/v1/faucet/drips",s=new URL(n,it);let i;e&&(i=e.baseOptions);const o={method:"POST",...i,...r},c={},l={};await ht(c,e),t!=null&&(c["X-Request-Id"]=String(t)),c["Content-Type"]="application/json",st(s,l);let u=i&&i.headers?i.headers:{};return o.headers={...c,...u,...r.headers},o.data=Tr(a,o,e),{url:ot(s),options:o}}}},jx=function(e){const t=qx(e);return{async requestTestnetTokens(a,r,n){const s=await t.requestTestnetTokens(a,r,n),i=e?.serverIndex??0,o=nt["FaucetApi.requestTestnetTokens"]?.[i]?.url;return(c,l)=>ct(s,be,at,e)(c,o||l)}}},Kx=function(e,t,a){const r=jx(e);return{requestTestnetTokens(n,s,i){return r.requestTestnetTokens(n,s,i).then(o=>o(a,t))}}},zx=function(e){return{ping:async(t={})=>{const a="/ping",r=new URL(a,it);let n;e&&(n=e.baseOptions);const s={method:"GET",...n,...t},i={};st(r,{});let o=n&&n.headers?n.headers:{};return s.headers={...i,...o,...t.headers},{url:ot(r),options:s}}}},Hx=function(e){const t=zx(e);return{async ping(a){const r=await t.ping(a),n=e?.serverIndex??0,s=nt["HealthApi.ping"]?.[n]?.url;return(i,o)=>ct(r,be,at,e)(i,s||o)}}},$x=function(e,t,a){const r=Hx(e);return{ping(n){return r.ping(n).then(s=>s(a,t))}}},Gx=function(e){return{createMonitoredTokens:async(t,a={})=>{qt("createMonitoredTokens","createMonitoredTokensRequest",t);const r="/v1/w3s/config/entity/monitoredTokens",n=new URL(r,it);let s;e&&(s=e.baseOptions);const i={method:"POST",...s,...a},o={},c={};await ht(o,e),o["Content-Type"]="application/json",st(n,c);let l=s&&s.headers?s.headers:{};return i.headers={...o,...l,...a.headers},i.data=Tr(t,i,e),{url:ot(n),options:i}},deleteMonitoredTokens:async(t,a={})=>{qt("deleteMonitoredTokens","deleteMonitoredTokensRequest",t);const r="/v1/w3s/config/entity/monitoredTokens/delete",n=new URL(r,it);let s;e&&(s=e.baseOptions);const i={method:"POST",...s,...a},o={},c={};await ht(o,e),o["Content-Type"]="application/json",st(n,c);let l=s&&s.headers?s.headers:{};return i.headers={...o,...l,...a.headers},i.data=Tr(t,i,e),{url:ot(n),options:i}},listMonitoredTokens:async(t,a,r,n,s,i,o,c,l={})=>{const u="/v1/w3s/config/entity/monitoredTokens",p=new URL(u,it);let f;e&&(f=e.baseOptions);const x={method:"GET",...f,...l},m={},y={};await ht(m,e),t!==void 0&&(y.blockchain=t),a!==void 0&&(y.tokenAddress=a),r!==void 0&&(y.symbol=r),n!==void 0&&(y.from=n instanceof Date?n.toISOString():n),s!==void 0&&(y.to=s instanceof Date?s.toISOString():s),i!==void 0&&(y.pageBefore=i),o!==void 0&&(y.pageAfter=o),c!==void 0&&(y.pageSize=c),st(p,y);let b=f&&f.headers?f.headers:{};return x.headers={...m,...b,...l.headers},{url:ot(p),options:x}},updateMonitoredTokens:async(t,a={})=>{qt("updateMonitoredTokens","updateMonitoredTokensRequest",t);const r="/v1/w3s/config/entity/monitoredTokens",n=new URL(r,it);let s;e&&(s=e.baseOptions);const i={method:"PUT",...s,...a},o={},c={};await ht(o,e),o["Content-Type"]="application/json",st(n,c);let l=s&&s.headers?s.headers:{};return i.headers={...o,...l,...a.headers},i.data=Tr(t,i,e),{url:ot(n),options:i}},updateMonitoredTokensScope:async(t,a={})=>{qt("updateMonitoredTokensScope","updateMonitoredTokensScopeRequest",t);const r="/v1/w3s/config/entity/monitoredTokens/scope",n=new URL(r,it);let s;e&&(s=e.baseOptions);const i={method:"PUT",...s,...a},o={},c={};await ht(o,e),o["Content-Type"]="application/json",st(n,c);let l=s&&s.headers?s.headers:{};return i.headers={...o,...l,...a.headers},i.data=Tr(t,i,e),{url:ot(n),options:i}}}},Qx=function(e){const t=Gx(e);return{async createMonitoredTokens(a,r){const n=await t.createMonitoredTokens(a,r),s=e?.serverIndex??0,i=nt["MonitorTokensApi.createMonitoredTokens"]?.[s]?.url;return(o,c)=>ct(n,be,at,e)(o,i||c)},async deleteMonitoredTokens(a,r){const n=await t.deleteMonitoredTokens(a,r),s=e?.serverIndex??0,i=nt["MonitorTokensApi.deleteMonitoredTokens"]?.[s]?.url;return(o,c)=>ct(n,be,at,e)(o,i||c)},async listMonitoredTokens(a,r,n,s,i,o,c,l,u){const p=await t.listMonitoredTokens(a,r,n,s,i,o,c,l,u),f=e?.serverIndex??0,x=nt["MonitorTokensApi.listMonitoredTokens"]?.[f]?.url;return(m,y)=>ct(p,be,at,e)(m,x||y)},async updateMonitoredTokens(a,r){const n=await t.updateMonitoredTokens(a,r),s=e?.serverIndex??0,i=nt["MonitorTokensApi.updateMonitoredTokens"]?.[s]?.url;return(o,c)=>ct(n,be,at,e)(o,i||c)},async updateMonitoredTokensScope(a,r){const n=await t.updateMonitoredTokensScope(a,r),s=e?.serverIndex??0,i=nt["MonitorTokensApi.updateMonitoredTokensScope"]?.[s]?.url;return(o,c)=>ct(n,be,at,e)(o,i||c)}}},Wx=function(e,t,a){const r=Qx(e);return{createMonitoredTokens(n,s){return r.createMonitoredTokens(n,s).then(i=>i(a,t))},deleteMonitoredTokens(n,s){return r.deleteMonitoredTokens(n,s).then(i=>i(a,t))},listMonitoredTokens(n,s,i,o,c,l,u,p,f){return r.listMonitoredTokens(n,s,i,o,c,l,u,p,f).then(x=>x(a,t))},updateMonitoredTokens(n,s){return r.updateMonitoredTokens(n,s).then(i=>i(a,t))},updateMonitoredTokensScope(n,s){return r.updateMonitoredTokensScope(n,s).then(i=>i(a,t))}}},Yx=function(e){return{createSubscription:async(t,a,r={})=>{qt("createSubscription","createSubscriptionRequest",t);const n="/v2/notifications/subscriptions",s=new URL(n,it);let i;e&&(i=e.baseOptions);const o={method:"POST",...i,...r},c={},l={};await ht(c,e),a!=null&&(c["X-Request-Id"]=String(a)),c["Content-Type"]="application/json",st(s,l);let u=i&&i.headers?i.headers:{};return o.headers={...c,...u,...r.headers},o.data=Tr(t,o,e),{url:ot(s),options:o}},deleteSubscription:async(t,a,r={})=>{qt("deleteSubscription","id",t);const n="/v2/notifications/subscriptions/{id}".replace("{id}",encodeURIComponent(String(t))),s=new URL(n,it);let i;e&&(i=e.baseOptions);const o={method:"DELETE",...i,...r},c={},l={};await ht(c,e),a!=null&&(c["X-Request-Id"]=String(a)),st(s,l);let u=i&&i.headers?i.headers:{};return o.headers={...c,...u,...r.headers},{url:ot(s),options:o}},getNotificationSignature:async(t,a,r={})=>{qt("getNotificationSignature","id",t);const n="/v2/notifications/publicKey/{id}".replace("{id}",encodeURIComponent(String(t))),s=new URL(n,it);let i;e&&(i=e.baseOptions);const o={method:"GET",...i,...r},c={},l={};await ht(c,e),a!=null&&(c["X-Request-Id"]=String(a)),st(s,l);let u=i&&i.headers?i.headers:{};return o.headers={...c,...u,...r.headers},{url:ot(s),options:o}},getSubscription:async(t,a,r={})=>{qt("getSubscription","id",t);const n="/v2/notifications/subscriptions/{id}".replace("{id}",encodeURIComponent(String(t))),s=new URL(n,it);let i;e&&(i=e.baseOptions);const o={method:"GET",...i,...r},c={},l={};await ht(c,e),a!=null&&(c["X-Request-Id"]=String(a)),st(s,l);let u=i&&i.headers?i.headers:{};return o.headers={...c,...u,...r.headers},{url:ot(s),options:o}},getSubscriptions:async(t={})=>{const a="/v2/notifications/subscriptions",r=new URL(a,it);let n;e&&(n=e.baseOptions);const s={method:"GET",...n,...t},i={},o={};await ht(i,e),st(r,o);let c=n&&n.headers?n.headers:{};return s.headers={...i,...c,...t.headers},{url:ot(r),options:s}},updateSubscription:async(t,a,r,n={})=>{qt("updateSubscription","id",t),qt("updateSubscription","updateSubscriptionRequest",a);const s="/v2/notifications/subscriptions/{id}".replace("{id}",encodeURIComponent(String(t))),i=new URL(s,it);let o;e&&(o=e.baseOptions);const c={method:"PATCH",...o,...n},l={},u={};await ht(l,e),r!=null&&(l["X-Request-Id"]=String(r)),l["Content-Type"]="application/json",st(i,u);let p=o&&o.headers?o.headers:{};return c.headers={...l,...p,...n.headers},c.data=Tr(a,c,e),{url:ot(i),options:c}}}},Xx=function(e){const t=Yx(e);return{async createSubscription(a,r,n){const s=await t.createSubscription(a,r,n),i=e?.serverIndex??0,o=nt["WebhookSubscriptionsApi.createSubscription"]?.[i]?.url;return(c,l)=>ct(s,be,at,e)(c,o||l)},async deleteSubscription(a,r,n){const s=await t.deleteSubscription(a,r,n),i=e?.serverIndex??0,o=nt["WebhookSubscriptionsApi.deleteSubscription"]?.[i]?.url;return(c,l)=>ct(s,be,at,e)(c,o||l)},async getNotificationSignature(a,r,n){const s=await t.getNotificationSignature(a,r,n),i=e?.serverIndex??0,o=nt["WebhookSubscriptionsApi.getNotificationSignature"]?.[i]?.url;return(c,l)=>ct(s,be,at,e)(c,o||l)},async getSubscription(a,r,n){const s=await t.getSubscription(a,r,n),i=e?.serverIndex??0,o=nt["WebhookSubscriptionsApi.getSubscription"]?.[i]?.url;return(c,l)=>ct(s,be,at,e)(c,o||l)},async getSubscriptions(a){const r=await t.getSubscriptions(a),n=e?.serverIndex??0,s=nt["WebhookSubscriptionsApi.getSubscriptions"]?.[n]?.url;return(i,o)=>ct(r,be,at,e)(i,s||o)},async updateSubscription(a,r,n,s){const i=await t.updateSubscription(a,r,n,s),o=e?.serverIndex??0,c=nt["WebhookSubscriptionsApi.updateSubscription"]?.[o]?.url;return(l,u)=>ct(i,be,at,e)(l,c||u)}}},Jx=function(e,t,a){const r=Xx(e);return{createSubscription(n,s,i){return r.createSubscription(n,s,i).then(o=>o(a,t))},deleteSubscription(n,s,i){return r.deleteSubscription(n,s,i).then(o=>o(a,t))},getNotificationSignature(n,s,i){return r.getNotificationSignature(n,s,i).then(o=>o(a,t))},getSubscription(n,s,i){return r.getSubscription(n,s,i).then(o=>o(a,t))},getSubscriptions(n){return r.getSubscriptions(n).then(s=>s(a,t))},updateSubscription(n,s,i,o){return r.updateSubscription(n,s,i,o).then(c=>c(a,t))}}};var Zx=Object.defineProperty,ey=(e,t,a)=>t in e?Zx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,ar=(e,t,a)=>ey(e,typeof t!="symbol"?t+"":t,a);let ty=class{constructor(t={}){ar(this,"apiKey"),ar(this,"username"),ar(this,"password"),ar(this,"accessToken"),ar(this,"basePath"),ar(this,"serverIndex"),ar(this,"baseOptions"),ar(this,"formDataCtor"),this.apiKey=t.apiKey,this.username=t.username,this.password=t.password,this.accessToken=t.accessToken,this.basePath=t.basePath,this.serverIndex=t.serverIndex,this.baseOptions=t.baseOptions,this.formDataCtor=t.formDataCtor}isJsonMime(t){const a=new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return t!==null&&(a.test(t)||t.toLowerCase()==="application/json-patch+json")}};var ry=Object.defineProperty,ay=(e,t,a)=>t in e?ry(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,ma=(e,t,a)=>ay(e,typeof t!="symbol"?t+"":t,a);class ny{constructor(t,a,r={}){ma(this,"DeveloperAccount"),ma(this,"Faucet"),ma(this,"Health"),ma(this,"MonitorTokens"),ma(this,"WebhookSubscriptions");const n=new ty({basePath:t,baseOptions:{headers:{...r,Authorization:`Bearer ${a.apiKey}`,"Content-Type":"application/json","User-Agent":`${a.userAgent?a.userAgent+" / ":""}CircleNodeJS / Configurations / ${a.version}`}}});this.DeveloperAccount=Vx(n),this.Faucet=Kx(n),this.Health=$x(n),this.MonitorTokens=Wx(n),this.WebhookSubscriptions=Jx(n)}}const vt="https://api.circle.com".replace(/\/+$/,"");class iy extends Error{constructor(t,a){super(a),this.field=t,this.name="RequiredError"}}const gt={},xt="https://example.com",It=function(e,t,a){if(a==null)throw new iy(t,`Required parameter ${t} was null or undefined when calling ${e}.`)},yt=async function(e,t){if(t&&t.accessToken){const a=typeof t.accessToken=="function"?await t.accessToken():await t.accessToken;e.Authorization="Bearer "+a}};function Tu(e,t,a=""){t!=null&&(typeof t=="object"?Array.isArray(t)?t.forEach(r=>Tu(e,r,a)):Object.keys(t).forEach(r=>Tu(e,t[r],`${a}${a!==""?".":""}${r}`)):e.has(a)?e.append(a,t):e.set(a,t))}const bt=function(e,...t){const a=new URLSearchParams(e.search);Tu(a,t),e.search=a.toString()},Yt=function(e,t,a){const r=typeof e!="string";return(r&&a&&a.isJsonMime?a.isJsonMime(t.headers["Content-Type"]):r)?JSON.stringify(e!==void 0?e:{}):e||""},Et=function(e){return e.pathname+e.search+e.hash},Ct=function(e,t,a,r){return(n=t,s=a)=>{const i={...e.options,url:(r?.basePath||n.defaults.baseURL||s)+e.url};return n.request(i)}},sy=function(e){return{deployContract:async(t,a,r={})=>{It("deployContract","contractDeploymentRequest",t);const n="/v1/w3s/contracts/deploy",s=new URL(n,xt);let i;e&&(i=e.baseOptions);const o={method:"POST",...i,...r},c={},l={};await yt(c,e),a!=null&&(c["X-Request-Id"]=String(a)),c["Content-Type"]="application/json",bt(s,l);let u=i&&i.headers?i.headers:{};return o.headers={...c,...u,...r.headers},o.data=Yt(t,o,e),{url:Et(s),options:o}},estimateContractDeploy:async(t,a,r={})=>{It("estimateContractDeploy","contractDeploymentEstimateFeeRequest",t);const n="/v1/w3s/contracts/deploy/estimateFee",s=new URL(n,xt);let i;e&&(i=e.baseOptions);const o={method:"POST",...i,...r},c={},l={};await yt(c,e),a!=null&&(c["X-Request-Id"]=String(a)),c["Content-Type"]="application/json",bt(s,l);let u=i&&i.headers?i.headers:{};return o.headers={...c,...u,...r.headers},o.data=Yt(t,o,e),{url:Et(s),options:o}},importContract:async(t,a,r={})=>{It("importContract","importContractRequest",t);const n="/v1/w3s/contracts/import",s=new URL(n,xt);let i;e&&(i=e.baseOptions);const o={method:"POST",...i,...r},c={},l={};await yt(c,e),a!=null&&(c["X-Request-Id"]=String(a)),c["Content-Type"]="application/json",bt(s,l);let u=i&&i.headers?i.headers:{};return o.headers={...c,...u,...r.headers},o.data=Yt(t,o,e),{url:Et(s),options:o}}}},oy=function(e){const t=sy(e);return{async deployContract(a,r,n){const s=await t.deployContract(a,r,n),i=e?.serverIndex??0,o=gt["DeployImportApi.deployContract"]?.[i]?.url;return(c,l)=>Ct(s,be,vt,e)(c,o||l)},async estimateContractDeploy(a,r,n){const s=await t.estimateContractDeploy(a,r,n),i=e?.serverIndex??0,o=gt["DeployImportApi.estimateContractDeploy"]?.[i]?.url;return(c,l)=>Ct(s,be,vt,e)(c,o||l)},async importContract(a,r,n){const s=await t.importContract(a,r,n),i=e?.serverIndex??0,o=gt["DeployImportApi.importContract"]?.[i]?.url;return(c,l)=>Ct(s,be,vt,e)(c,o||l)}}},cy=function(e,t,a){const r=oy(e);return{deployContract(n,s,i){return r.deployContract(n,s,i).then(o=>o(a,t))},estimateContractDeploy(n,s,i){return r.estimateContractDeploy(n,s,i).then(o=>o(a,t))},importContract(n,s,i){return r.importContract(n,s,i).then(o=>o(a,t))}}},ly=function(e){return{createEventMonitor:async(t,a,r={})=>{const n="/v1/w3s/contracts/monitors",s=new URL(n,xt);let i;e&&(i=e.baseOptions);const o={method:"POST",...i,...r},c={},l={};await yt(c,e),t!=null&&(c["X-Request-Id"]=String(t)),c["Content-Type"]="application/json",bt(s,l);let u=i&&i.headers?i.headers:{};return o.headers={...c,...u,...r.headers},o.data=Yt(a,o,e),{url:Et(s),options:o}},deleteEventMonitor:async(t,a,r={})=>{It("deleteEventMonitor","id",t);const n="/v1/w3s/contracts/monitors/{id}".replace("{id}",encodeURIComponent(String(t))),s=new URL(n,xt);let i;e&&(i=e.baseOptions);const o={method:"DELETE",...i,...r},c={},l={};await yt(c,e),a!=null&&(c["X-Request-Id"]=String(a)),bt(s,l);let u=i&&i.headers?i.headers:{};return o.headers={...c,...u,...r.headers},{url:Et(s),options:o}},getEventMonitors:async(t,a,r,n,s,i,o,c,l,u={})=>{const p="/v1/w3s/contracts/monitors",f=new URL(p,xt);let x;e&&(x=e.baseOptions);const m={method:"GET",...x,...u},y={},b={};await yt(y,e),t!==void 0&&(b.contractAddress=t),a!==void 0&&(b.blockchain=a),r!==void 0&&(b.eventSignature=r),n!==void 0&&(b.from=n instanceof Date?n.toISOString():n),s!==void 0&&(b.to=s instanceof Date?s.toISOString():s),i!==void 0&&(b.pageBefore=i),o!==void 0&&(b.pageAfter=o),c!==void 0&&(b.pageSize=c),l!=null&&(y["X-Request-Id"]=String(l)),bt(f,b);let S=x&&x.headers?x.headers:{};return m.headers={...y,...S,...u.headers},{url:Et(f),options:m}},listEventLogs:async(t,a,r,n,s,i,o,c,l={})=>{const u="/v1/w3s/contracts/events",p=new URL(u,xt);let f;e&&(f=e.baseOptions);const x={method:"GET",...f,...l},m={},y={};await yt(m,e),t!==void 0&&(y.contractAddress=t),a!==void 0&&(y.blockchain=a),r!==void 0&&(y.from=r instanceof Date?r.toISOString():r),n!==void 0&&(y.to=n instanceof Date?n.toISOString():n),s!==void 0&&(y.pageBefore=s),i!==void 0&&(y.pageAfter=i),o!==void 0&&(y.pageSize=o),c!=null&&(m["X-Request-Id"]=String(c)),bt(p,y);let b=f&&f.headers?f.headers:{};return x.headers={...m,...b,...l.headers},{url:Et(p),options:x}},updateEventMonitor:async(t,a,r,n={})=>{It("updateEventMonitor","id",t);const s="/v1/w3s/contracts/monitors/{id}".replace("{id}",encodeURIComponent(String(t))),i=new URL(s,xt);let o;e&&(o=e.baseOptions);const c={method:"PUT",...o,...n},l={},u={};await yt(l,e),a!=null&&(l["X-Request-Id"]=String(a)),l["Content-Type"]="application/json",bt(i,u);let p=o&&o.headers?o.headers:{};return c.headers={...l,...p,...n.headers},c.data=Yt(r,c,e),{url:Et(i),options:c}}}},uy=function(e){const t=ly(e);return{async createEventMonitor(a,r,n){const s=await t.createEventMonitor(a,r,n),i=e?.serverIndex??0,o=gt["EventMonitorsApi.createEventMonitor"]?.[i]?.url;return(c,l)=>Ct(s,be,vt,e)(c,o||l)},async deleteEventMonitor(a,r,n){const s=await t.deleteEventMonitor(a,r,n),i=e?.serverIndex??0,o=gt["EventMonitorsApi.deleteEventMonitor"]?.[i]?.url;return(c,l)=>Ct(s,be,vt,e)(c,o||l)},async getEventMonitors(a,r,n,s,i,o,c,l,u,p){const f=await t.getEventMonitors(a,r,n,s,i,o,c,l,u,p),x=e?.serverIndex??0,m=gt["EventMonitorsApi.getEventMonitors"]?.[x]?.url;return(y,b)=>Ct(f,be,vt,e)(y,m||b)},async listEventLogs(a,r,n,s,i,o,c,l,u){const p=await t.listEventLogs(a,r,n,s,i,o,c,l,u),f=e?.serverIndex??0,x=gt["EventMonitorsApi.listEventLogs"]?.[f]?.url;return(m,y)=>Ct(p,be,vt,e)(m,x||y)},async updateEventMonitor(a,r,n,s){const i=await t.updateEventMonitor(a,r,n,s),o=e?.serverIndex??0,c=gt["EventMonitorsApi.updateEventMonitor"]?.[o]?.url;return(l,u)=>Ct(i,be,vt,e)(l,c||u)}}},py=function(e,t,a){const r=uy(e);return{createEventMonitor(n,s,i){return r.createEventMonitor(n,s,i).then(o=>o(a,t))},deleteEventMonitor(n,s,i){return r.deleteEventMonitor(n,s,i).then(o=>o(a,t))},getEventMonitors(n,s,i,o,c,l,u,p,f,x){return r.getEventMonitors(n,s,i,o,c,l,u,p,f,x).then(m=>m(a,t))},listEventLogs(n,s,i,o,c,l,u,p,f){return r.listEventLogs(n,s,i,o,c,l,u,p,f).then(x=>x(a,t))},updateEventMonitor(n,s,i,o){return r.updateEventMonitor(n,s,i,o).then(c=>c(a,t))}}},dy=function(e){return{queryContract:async(t,a,r={})=>{It("queryContract","readContractStateRequest",t);const n="/v1/w3s/contracts/query",s=new URL(n,xt);let i;e&&(i=e.baseOptions);const o={method:"POST",...i,...r},c={},l={};await yt(c,e),a!=null&&(c["X-Request-Id"]=String(a)),c["Content-Type"]="application/json",bt(s,l);let u=i&&i.headers?i.headers:{};return o.headers={...c,...u,...r.headers},o.data=Yt(t,o,e),{url:Et(s),options:o}}}},fy=function(e){const t=dy(e);return{async queryContract(a,r,n){const s=await t.queryContract(a,r,n),i=e?.serverIndex??0,o=gt["InteractApi.queryContract"]?.[i]?.url;return(c,l)=>Ct(s,be,vt,e)(c,o||l)}}},my=function(e,t,a){const r=fy(e);return{queryContract(n,s,i){return r.queryContract(n,s,i).then(o=>o(a,t))}}},hy=function(e){return{deployContractTemplate:async(t,a,r,n={})=>{It("deployContractTemplate","id",t),It("deployContractTemplate","templateContractDeploymentRequest",a);const s="/v1/w3s/templates/{id}/deploy".replace("{id}",encodeURIComponent(String(t))),i=new URL(s,xt);let o;e&&(o=e.baseOptions);const c={method:"POST",...o,...n},l={},u={};await yt(l,e),r!=null&&(l["X-Request-Id"]=String(r)),l["Content-Type"]="application/json",bt(i,u);let p=o&&o.headers?o.headers:{};return c.headers={...l,...p,...n.headers},c.data=Yt(a,c,e),{url:Et(i),options:c}},estimateContractTemplateDeploy:async(t,a,r,n={})=>{It("estimateContractTemplateDeploy","id",t),It("estimateContractTemplateDeploy","contractDeploymentEstimateRequest",a);const s="/v1/w3s/templates/{id}/deploy/estimateFee".replace("{id}",encodeURIComponent(String(t))),i=new URL(s,xt);let o;e&&(o=e.baseOptions);const c={method:"POST",...o,...n},l={},u={};await yt(l,e),r!=null&&(l["X-Request-Id"]=String(r)),l["Content-Type"]="application/json",bt(i,u);let p=o&&o.headers?o.headers:{};return c.headers={...l,...p,...n.headers},c.data=Yt(a,c,e),{url:Et(i),options:c}}}},vy=function(e){const t=hy(e);return{async deployContractTemplate(a,r,n,s){const i=await t.deployContractTemplate(a,r,n,s),o=e?.serverIndex??0,c=gt["TemplatesApi.deployContractTemplate"]?.[o]?.url;return(l,u)=>Ct(i,be,vt,e)(l,c||u)},async estimateContractTemplateDeploy(a,r,n,s){const i=await t.estimateContractTemplateDeploy(a,r,n,s),o=e?.serverIndex??0,c=gt["TemplatesApi.estimateContractTemplateDeploy"]?.[o]?.url;return(l,u)=>Ct(i,be,vt,e)(l,c||u)}}},gy=function(e,t,a){const r=vy(e);return{deployContractTemplate(n,s,i,o){return r.deployContractTemplate(n,s,i,o).then(c=>c(a,t))},estimateContractTemplateDeploy(n,s,i,o){return r.estimateContractTemplateDeploy(n,s,i,o).then(c=>c(a,t))}}},xy=function(e){return{getContract:async(t,a,r={})=>{It("getContract","id",t);const n="/v1/w3s/contracts/{id}".replace("{id}",encodeURIComponent(String(t))),s=new URL(n,xt);let i;e&&(i=e.baseOptions);const o={method:"GET",...i,...r},c={},l={};await yt(c,e),a!=null&&(c["X-Request-Id"]=String(a)),bt(s,l);let u=i&&i.headers?i.headers:{};return o.headers={...c,...u,...r.headers},{url:Et(s),options:o}},listContracts:async(t,a,r,n,s,i,o,c,l,u,p,f={})=>{const x="/v1/w3s/contracts",m=new URL(x,xt);let y;e&&(y=e.baseOptions);const b={method:"GET",...y,...f},S={},B={};await yt(S,e),t!==void 0&&(B.blockchain=t),a!==void 0&&(B.contractInputType=a),r!==void 0&&(B.deployerAddress=r),n!==void 0&&(B.name=n),s!==void 0&&(B.status=s),i!==void 0&&(B.from=i instanceof Date?i.toISOString():i),o!==void 0&&(B.to=o instanceof Date?o.toISOString():o),c!==void 0&&(B.pageBefore=c),l!==void 0&&(B.pageAfter=l),u!==void 0&&(B.pageSize=u),p!=null&&(S["X-Request-Id"]=String(p)),bt(m,B);let _=y&&y.headers?y.headers:{};return b.headers={...S,..._,...f.headers},{url:Et(m),options:b}},updateContract:async(t,a,r,n={})=>{It("updateContract","id",t),It("updateContract","patchContractRequest",a);const s="/v1/w3s/contracts/{id}".replace("{id}",encodeURIComponent(String(t))),i=new URL(s,xt);let o;e&&(o=e.baseOptions);const c={method:"PATCH",...o,...n},l={},u={};await yt(l,e),r!=null&&(l["X-Request-Id"]=String(r)),l["Content-Type"]="application/json",bt(i,u);let p=o&&o.headers?o.headers:{};return c.headers={...l,...p,...n.headers},c.data=Yt(a,c,e),{url:Et(i),options:c}}}},yy=function(e){const t=xy(e);return{async getContract(a,r,n){const s=await t.getContract(a,r,n),i=e?.serverIndex??0,o=gt["ViewUpdateApi.getContract"]?.[i]?.url;return(c,l)=>Ct(s,be,vt,e)(c,o||l)},async listContracts(a,r,n,s,i,o,c,l,u,p,f,x){const m=await t.listContracts(a,r,n,s,i,o,c,l,u,p,f,x),y=e?.serverIndex??0,b=gt["ViewUpdateApi.listContracts"]?.[y]?.url;return(S,B)=>Ct(m,be,vt,e)(S,b||B)},async updateContract(a,r,n,s){const i=await t.updateContract(a,r,n,s),o=e?.serverIndex??0,c=gt["ViewUpdateApi.updateContract"]?.[o]?.url;return(l,u)=>Ct(i,be,vt,e)(l,c||u)}}},by=function(e,t,a){const r=yy(e);return{getContract(n,s,i){return r.getContract(n,s,i).then(o=>o(a,t))},listContracts(n,s,i,o,c,l,u,p,f,x,m,y){return r.listContracts(n,s,i,o,c,l,u,p,f,x,m,y).then(b=>b(a,t))},updateContract(n,s,i,o){return r.updateContract(n,s,i,o).then(c=>c(a,t))}}};var Ey=Object.defineProperty,Cy=(e,t,a)=>t in e?Ey(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,nr=(e,t,a)=>Cy(e,typeof t!="symbol"?t+"":t,a);class Sy{constructor(t={}){nr(this,"apiKey"),nr(this,"username"),nr(this,"password"),nr(this,"accessToken"),nr(this,"basePath"),nr(this,"serverIndex"),nr(this,"baseOptions"),nr(this,"formDataCtor"),this.apiKey=t.apiKey,this.username=t.username,this.password=t.password,this.accessToken=t.accessToken,this.basePath=t.basePath,this.serverIndex=t.serverIndex,this.baseOptions=t.baseOptions,this.formDataCtor=t.formDataCtor}isJsonMime(t){const a=new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return t!==null&&(a.test(t)||t.toLowerCase()==="application/json-patch+json")}}const Ty={Eth:"ETH",EthSepolia:"ETH-SEPOLIA",Matic:"MATIC",MaticAmoy:"MATIC-AMOY",Arb:"ARB",ArbSepolia:"ARB-SEPOLIA",Uni:"UNI",UniSepolia:"UNI-SEPOLIA",Base:"BASE",BaseSepolia:"BASE-SEPOLIA",Op:"OP",OpSepolia:"OP-SEPOLIA",Avax:"AVAX",AvaxFuji:"AVAX-FUJI",ArcTestnet:"ARC-TESTNET",Monad:"MONAD",MonadTestnet:"MONAD-TESTNET"};var wy=Object.defineProperty,Ay=(e,t,a)=>t in e?wy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,ha=(e,t,a)=>Ay(e,typeof t!="symbol"?t+"":t,a);class Iy{constructor(t,a,r={}){ha(this,"DeployImport"),ha(this,"EventMonitors"),ha(this,"Interact"),ha(this,"Templates"),ha(this,"ViewUpdate");const n=new Sy({basePath:t,baseOptions:{headers:{...r,Authorization:`Bearer ${a.apiKey}`,"Content-Type":"application/json","User-Agent":`${a.userAgent?a.userAgent+" / ":""}CircleNodeJS / SmartContractPlatform / ${a.version}`}}});this.DeployImport=cy(n),this.EventMonitors=py(n),this.Interact=my(n),this.Templates=gy(n),this.ViewUpdate=by(n)}}var By=Object.defineProperty,ff=e=>{throw TypeError(e)},_y=(e,t,a)=>t in e?By(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,jr=(e,t,a)=>_y(e,typeof t!="symbol"?t+"":t,a),mf=(e,t,a)=>t.has(e)||ff("Cannot "+a),Ry=(e,t,a)=>(mf(e,t,"read from private field"),a?a.call(e):t.get(e)),ky=(e,t,a)=>t.has(e)?ff("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,a),Ny=(e,t,a,r)=>(mf(e,t,"write to private field"),r?r.call(e,a):t.set(e,a),a),Hc;class va extends Error{constructor({message:t,code:a,url:r,method:n,error:s}){super(t),jr(this,"code"),jr(this,"message"),jr(this,"url"),jr(this,"method"),ky(this,Hc),this.message=t??new.target.message,this.code=a??new.target.code,this.url=r,this.method=n,Ny(this,Hc,s)}get error(){return Ry(this,Hc)}}Hc=new WeakMap,jr(va,"code","UNKNOWN"),jr(va,"message","HTTP Error");var Ly=Object.defineProperty,Uy=(e,t,a)=>t in e?Ly(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,wu=(e,t,a)=>Uy(e,typeof t!="symbol"?t+"":t,a);class E extends va{constructor({message:t,code:a,url:r,method:n,status:s,error:i}){super({message:t,code:a,url:r,method:n,error:i}),wu(this,"status"),this.status=s}}wu(E,"code",-1),wu(E,"message","HTTP Response Error");var Dy=Object.defineProperty,Py=(e,t,a)=>t in e?Dy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,hf=(e,t,a)=>Py(e,typeof t!="symbol"?t+"":t,a);class kt extends va{}hf(kt,"code","UNKNOWN"),hf(kt,"message","Unknown HTTP request error");var Oy=Object.defineProperty,Fy=(e,t,a)=>t in e?Oy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,vf=(e,t,a)=>Fy(e,typeof t!="symbol"?t+"":t,a);class ga extends E{}vf(ga,"code",400),vf(ga,"message","Bad Request");var My=Object.defineProperty,Vy=(e,t,a)=>t in e?My(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,gf=(e,t,a)=>Vy(e,typeof t!="symbol"?t+"":t,a);class xa extends E{}gf(xa,"code",401),gf(xa,"message","Unauthorized");var qy=Object.defineProperty,jy=(e,t,a)=>t in e?qy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,xf=(e,t,a)=>jy(e,typeof t!="symbol"?t+"":t,a);class ya extends E{}xf(ya,"code",403),xf(ya,"message","Forbidden");var Ky=Object.defineProperty,zy=(e,t,a)=>t in e?Ky(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,yf=(e,t,a)=>zy(e,typeof t!="symbol"?t+"":t,a);class ba extends E{}yf(ba,"code",404),yf(ba,"message","Not Found");var Hy=Object.defineProperty,$y=(e,t,a)=>t in e?Hy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,bf=(e,t,a)=>$y(e,typeof t!="symbol"?t+"":t,a);class Ea extends E{}bf(Ea,"code",429),bf(Ea,"message","Too Many Requests");var Gy=Object.defineProperty,Qy=(e,t,a)=>t in e?Gy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,Ef=(e,t,a)=>Qy(e,typeof t!="symbol"?t+"":t,a);class Ca extends E{}Ef(Ca,"code",500),Ef(Ca,"message","Internal Server Error");var Wy=Object.defineProperty,Yy=(e,t,a)=>t in e?Wy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,Cf=(e,t,a)=>Yy(e,typeof t!="symbol"?t+"":t,a);class Sa extends E{}Cf(Sa,"code",501),Cf(Sa,"message","Not Implemented");var Xy=Object.defineProperty,Jy=(e,t,a)=>t in e?Xy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,Sf=(e,t,a)=>Jy(e,typeof t!="symbol"?t+"":t,a);class Ta extends E{}Sf(Ta,"code",502),Sf(Ta,"message","Bad Gateway");var Zy=Object.defineProperty,e1=(e,t,a)=>t in e?Zy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,Tf=(e,t,a)=>e1(e,typeof t!="symbol"?t+"":t,a);class wa extends E{}Tf(wa,"code",503),Tf(wa,"message","Service Unavailable");var t1=Object.defineProperty,r1=(e,t,a)=>t in e?t1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,wf=(e,t,a)=>r1(e,typeof t!="symbol"?t+"":t,a);class Aa extends E{}wf(Aa,"code",504),wf(Aa,"message","Gateway Timeout");var a1=Object.defineProperty,n1=(e,t,a)=>t in e?a1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,Af=(e,t,a)=>n1(e,typeof t!="symbol"?t+"":t,a);class Ia extends kt{}Af(Ia,"code","ECONNREFUSED"),Af(Ia,"message","Connection refused");var i1=Object.defineProperty,s1=(e,t,a)=>t in e?i1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,If=(e,t,a)=>s1(e,typeof t!="symbol"?t+"":t,a);class Ba extends kt{}If(Ba,"code","ETIMEDOUT"),If(Ba,"message","Connection timeout");var o1=Object.defineProperty,c1=(e,t,a)=>t in e?o1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,Bf=(e,t,a)=>c1(e,typeof t!="symbol"?t+"":t,a);class _a extends kt{}Bf(_a,"code","ECONNABORTED"),Bf(_a,"message","Request timeout");var l1=Object.defineProperty,u1=(e,t,a)=>t in e?l1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,_f=(e,t,a)=>u1(e,typeof t!="symbol"?t+"":t,a);class Ra extends kt{}_f(Ra,"code","ENOTFOUND"),_f(Ra,"message","DNS lookup failed - host not found");var p1=Object.defineProperty,d1=(e,t,a)=>t in e?p1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,Rf=(e,t,a)=>d1(e,typeof t!="symbol"?t+"":t,a);class ka extends kt{}Rf(ka,"code","EAI_AGAIN"),Rf(ka,"message","DNS lookup failed - timeout");var f1=Object.defineProperty,m1=(e,t,a)=>t in e?f1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,kf=(e,t,a)=>m1(e,typeof t!="symbol"?t+"":t,a);class Na extends kt{}kf(Na,"code","ENETUNREACH"),kf(Na,"message","Network unreachable");var h1=Object.defineProperty,v1=(e,t,a)=>t in e?h1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,Nf=(e,t,a)=>v1(e,typeof t!="symbol"?t+"":t,a);class La extends kt{}Nf(La,"code","ECONNRESET"),Nf(La,"message","Connection reset");var g1=Object.defineProperty,x1=(e,t,a)=>t in e?g1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,Lf=(e,t,a)=>x1(e,typeof t!="symbol"?t+"":t,a);class Ua extends kt{}Lf(Ua,"code","EHOSTUNREACH"),Lf(Ua,"message","Host unreachable");const Uf={undefined:kt,[Ia.code]:Ia,[Ba.code]:Ba,[_a.code]:_a,[La.code]:La,[Ra.code]:Ra,[ka.code]:ka,[Na.code]:Na,[Ua.code]:Ua};function y1(e){return Uf[e]??Uf.undefined}function b1(e){return E1({code:e.code,message:e.message,url:e.config.url,method:e.config.method.toUpperCase(),error:e})}function E1({code:e,message:t,url:a,method:r,error:n}){const s=y1(e);return new s({message:t,code:e,url:a,method:r,error:n})}var C1=Object.defineProperty,S1=(e,t,a)=>t in e?C1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,d=(e,t,a)=>S1(e,typeof t!="symbol"?t+"":t,a);class Au extends E{}d(Au,"code",110700),d(Au,"message","The input amount is outside trade limit.");class Iu extends E{}d(Iu,"code",110701),d(Iu,"message","No quote is available with given input.");class Bu extends E{}d(Bu,"code",110702),d(Bu,"message","No supported configurations with given input.");class _u extends E{}d(_u,"code",110703),d(_u,"message","refId already exists, should be unique.");class Da extends E{}d(Da,"code",155101),d(Da,"message","Existing user already created with the provided userId.");class Pa extends E{}d(Pa,"code",155102),d(Pa,"message","Cannot find the user id in the system.");class Oa extends E{}d(Oa,"code",155103),d(Oa,"message","Cannot find the user token in the system.");class Fa extends E{}d(Fa,"code",155104),d(Fa,"message","The userToken had expired.");class Ma extends E{}d(Ma,"code",155105),d(Ma,"message","The userToken is invalid.");class Va extends E{}d(Va,"code",155106),d(Va,"message","The user had already been initialized.");class qa extends E{}d(qa,"code",155107),d(qa,"message","User has previously set a PIN. Use PUT /user/pin to reset the PIN.");class ja extends E{}d(ja,"code",155108),d(ja,"message","User has previously set up their security questions, and they can't be reset.");class Ka extends E{}d(Ka,"code",155109),d(Ka,"message","The specified user has been disabled.");class za extends E{}d(za,"code",155110),d(za,"message","User has not set up a PIN yet.");class Ha extends E{}d(Ha,"code",155111),d(Ha,"message","User hasn't set the security questions for PIN backup yet.");class $a extends E{}d($a,"code",155112),d($a,"message","The user has inputted the incorrect pin.");class Ga extends E{}d(Ga,"code",155113),d(Ga,"message","Provided device ID is not found in the system.");class Qa extends E{}d(Qa,"code",155114),d(Qa,"message","Provided app ID is not recognized in the system.");class Wa extends E{}d(Wa,"code",155115),d(Wa,"message","The user has inputted the incorrect security answers");class Ya extends E{}d(Ya,"code",155116),d(Ya,"message","The challenge ID doesn't exist in the system.");class Xa extends E{}d(Xa,"code",155117),d(Xa,"message","The content provided for approval is not correct.");class Ja extends E{}d(Ja,"code",155118),d(Ja,"message","Encryption key does not match with the user's token. Call POST /users/token to get the correct token encryption key pair.");class Za extends E{}d(Za,"code",155119),d(Za,"message","The user's PIN input is locked. It will be unlocked after the cooldown period.");class en extends E{}d(en,"code",155120),d(en,"message","The user's security questions input is locked. It will be unlocked after the cooldown period.");class tn extends E{}d(tn,"code",155121),d(tn,"message","The provided challengeId has expired.");class rn extends E{}d(rn,"code",155122),d(rn,"message","The provided challengeId is invalid");class an extends E{}d(an,"code",155123),d(an,"message","No extra information provided when adding PIN-related requests.");class nn extends E{}d(nn,"code",155124),d(nn,"message","The extra information provided for PIN-related requests is invalid.");class sn extends E{}d(sn,"code",155130),d(sn,"message","User OTP token is expired.");class on extends E{}d(on,"code",155131),d(on,"message","User OTP token is invalid.");class cn extends E{}d(cn,"code",155132),d(cn,"message","User OTP value is not found.");class ln extends E{}d(ln,"code",155133),d(ln,"message","User OTP value is invalid.");class un extends E{}d(un,"code",155134),d(un,"message","User OTP value is not matched.");class pn extends E{}d(pn,"code",155135),d(pn,"message","User's email is invalid.");class dn extends E{}d(dn,"code",155136),d(dn,"message","User's email is not matched.");class fn extends E{}d(fn,"code",155137),d(fn,"message","User's device ID is invalid.");class mn extends E{}d(mn,"code",155138),d(mn,"message","Failed to send the email.");class hn extends E{}d(hn,"code",155139),d(hn,"message","The idToken / accessToken of SSO is expired.");class vn extends E{}d(vn,"code",155140),d(vn,"message","Failed to validate the idToken/ accessToken.");class gn extends E{}d(gn,"code",155141),d(gn,"message","The user has exceeded the max limit (5) of entering OTP at the moment.");class xn extends E{}d(xn,"code",155142),d(xn,"message","The max limit (5) of sending OTP has been exceeded at the moment.");class yn extends E{}d(yn,"code",155143),d(yn,"message","The device token is expired.");class bn extends E{}d(bn,"code",155144),d(bn,"message","The device token is invalid.");class En extends E{}d(En,"code",155145),d(En,"message","The device token is not found.");class Cn extends E{}d(Cn,"code",155146),d(Cn,"message","The one-time password token is invalid as the user has entered it incorrectly three times.");class Sn extends E{}d(Sn,"code",155150),d(Sn,"message","The SMTP server configuration is not found.");class Tn extends E{}d(Tn,"code",155151),d(Tn,"message","The SMTP server configuration is invalid.");class wn extends E{}d(wn,"code",155152),d(wn,"message","The SSO provider configuration is not found.");class An extends E{}d(An,"code",155154),d(An,"message","The OTP email template is invalid.");class In extends E{}d(In,"code",155155),d(In,"message","The OTP email template is not found.");class Bn extends E{}d(Bn,"code",155156),d(Bn,"message","Failed to update the email template.");class _n extends E{}d(_n,"code",155157),d(_n,"message","Failed to update the SMTP server configuration.");class Rn extends E{}d(Rn,"code",155158),d(Rn,"message","Failed to dial to the SMTP server.");class kn extends E{}d(kn,"code",155159),d(kn,"message","Failed to auth to the SMTP server.");class Nn extends E{}d(Nn,"code",155160),d(Nn,"message","Failed to send to the SMTP server.");class Ln extends E{}d(Ln,"code",155201),d(Ln,"message","Not enough funds to fulfill the withdraw request.");class Un extends E{}d(Un,"code",155202),d(Un,"message","Transaction nonce is inconsistent with sender's latest nonce.");class Dn extends E{}d(Dn,"code",155203),d(Dn,"message","User op nonce can not be larger than 0 when the smart contract wallet hasn't been deployed.");class Pn extends E{}d(Pn,"code",155204),d(Pn,"message","The total cost of executing transaction is higher than the balance of the user's account when estimating fee.");class On extends E{}d(On,"code",155205),d(On,"message","Failed to execute this request on EVM due to insufficient tokens when the estimating gas fee.");class Fn extends E{}d(Fn,"code",155206),d(Fn,"message","The sender address is not the token owner or the sender wasn't approved to commit this transaction.");class Mn extends E{}d(Mn,"code",155207),d(Mn,"message","Gas required exceeds the maximum allowance for the account. This is based on the gas fee estimate amount.");class Vn extends E{}d(Vn,"code",155208),d(Vn,"message","Estimate fee execution reverted.");class qn extends E{}d(qn,"code",155209),d(qn,"message","ABI function signature can't pack ABI parameter.");class jn extends E{}d(jn,"code",155210),d(jn,"message","Fails to perform transaction estimation.");class Kn extends E{}d(Kn,"code",155211),d(Kn,"message","MaxFee * GasLimit exceeded the maximum permitted transaction gas fee.");class zn extends E{}d(zn,"code",155215),d(zn,"message","Unsupported operation for transaction.");class Hn extends E{}d(Hn,"code",155218),d(Hn,"message","Invalid number of nft in transaction request.");class $n extends E{}d($n,"code",155219),d($n,"message","Invalid destination address.");class Gn extends E{}d(Gn,"code",155220),d(Gn,"message","Wallet and token's blockchain mismatch.");class Qn extends E{}d(Qn,"code",155221),d(Qn,"message","Invalid amounts in transfer request.");class Wn extends E{}d(Wn,"code",155222),d(Wn,"message","NFT metadata can not be found.");class Yn extends E{}d(Yn,"code",155223),d(Yn,"message","Unsupported userId for get transactions.");class Xn extends E{}d(Xn,"code",155224),d(Xn,"message","Failed to parse the provided amounts in request to decimals.");class Jn extends E{}d(Jn,"code",155225),d(Jn,"message","Wallet and request's blockchain mismatch.");class Zn extends E{}d(Zn,"code",155226),d(Zn,"message","Invalid source address.");class ei extends E{}d(ei,"code",155227),d(ei,"message","Invalid transaction type.");class ti extends E{}d(ti,"code",155228),d(ti,"message","Missing token ID.");class ri extends E{}d(ri,"code",155229),d(ri,"message","Transaction is not eligible for operation.");class ai extends E{}d(ai,"code",155230),d(ai,"message","No abi signature provided.");class ni extends E{}d(ni,"code",155231),d(ni,"message","Transaction needs feeLevel or gasLimit provided.");class ii extends E{}d(ii,"code",155232),d(ii,"message","SCA transaction needs feeLevel provided.");class si extends E{}d(si,"code",155233),d(si,"message","Provided gasLimit is too low to complete the requested transaction.");class oi extends E{}d(oi,"code",155234),d(oi,"message","Transaction can't have both feeLevel and fee parameters provided.");class ci extends E{}d(ci,"code",155235),d(ci,"message","EIP1559 chains need maxFee/priorityFee provided.");class li extends E{}d(li,"code",155236),d(li,"message","The provided fee in request is invalid.");class ui extends E{}d(ui,"code",155237),d(ui,"message","PriorityFee cannot be larger than maxFee in creating transaction request.");class pi extends E{}d(pi,"code",155238),d(pi,"message","Non-EIP1559 chains need gasPrice provided.");class di extends E{}d(di,"code",155239),d(di,"message","Invalid token address for transfer.");class fi extends E{}d(fi,"code",155240),d(fi,"message","Invalid token standard for transfer.");class mi extends E{}d(mi,"code",155241),d(mi,"message","Invalid token decimal for transfer.");class hi extends E{}d(hi,"code",155242),d(hi,"message","The lengths of amounts and nft tokens don't match.");class vi extends E{}d(vi,"code",155243),d(vi,"message","Missing bytecode for contract deployment.");class gi extends E{}d(gi,"code",155244),d(gi,"message","Cannot provide both WalletID and SourceAddress/Blockchain.");class xi extends E{}d(xi,"code",155245),d(xi,"message","Invalid amount in contract execution request.");class yi extends E{}d(yi,"code",155247),d(yi,"message","Cannot provide both CallData and AbiFunctionSignature/AbiParameters.");class bi extends E{}d(bi,"code",155254),d(bi,"message","Non-EIP1559 chains don't support maxFee/priorityFee.");class Ei extends E{}d(Ei,"code",155257),d(Ei,"message","the transfer amount is insufficient to make the destination account rent exempted or the balance of the source account is insufficient to remain rent exempted. The source address's remaining balance after transfer must be either zero or above the rent exemption threshold.");class Ci extends E{}d(Ci,"code",155258),d(Ci,"message","The asset amount owned by the wallet is insufficient for the transaction.");class Si extends E{}d(Si,"code",155262),d(Si,"message","Account is not found, could be caused by transacting from a Solana account with zero balance.");class Ti extends E{}d(Ti,"code",155264),d(Ti,"message","Wait for pending transactions to be included on the blockchain before submitting new requests. EVM chains restrict the number of queued transactions per sender address.");class wi extends E{}d(wi,"code",155501),d(wi,"message","Frozen wallets can not be updated or interact with, only query.");class Ai extends E{}d(Ai,"code",155502),d(Ai,"message","Max amount of wallets (tentative 1M) reached under 1 wallet set.");class Ii extends E{}d(Ii,"code",155503),d(Ii,"message","Metadata array length needs to match wallet count in create developer wallets request.");class Bi extends E{}d(Bi,"code",155504),d(Bi,"message","Metadata array length needs to match number of blockchains in create user wallets request.");class _i extends E{}d(_i,"code",155505),d(_i,"message","SCA wallet needs to wait for first-time transaction to be queued before processing more transactions.");class Ri extends E{}d(Ri,"code",155506),d(Ri,"message","SCA wallet config is invalid.");class ki extends E{}d(ki,"code",155507),d(ki,"message","SCA account is not supported on the given blockchain.");class Ni extends E{}d(Ni,"code",155508),d(Ni,"message","Can't create multiple user-controlled SCA wallets across multiple blockchains at a time.");class Li extends E{}d(Li,"code",155509),d(Li,"message","Entity needs to setup paymaster policy in developer console before sending transaction on mainnet");class Ui extends E{}d(Ui,"code",155510),d(Ui,"message","The operation is not supported on the blockchain you specify.");class Di extends E{}d(Di,"code",155511),d(Di,"message","Blockchain is not supported for wallet creation.");class Pi extends E{}d(Pi,"code",155512),d(Pi,"message","The owner of the SCA wallet can not be found.");class Oi extends E{}d(Oi,"code",155514),d(Oi,"message","circle_4337_v1 SCA wallet must be deployed before being upgraded.");class Fi extends E{}d(Fi,"code",155515),d(Fi,"message","The provided wallet account type is not supported by this API.");class Mi extends E{}d(Mi,"code",155516),d(Mi,"message","The source wallet was originally created on an SCA version that does not support wallet derivation.");class Vi extends E{}d(Vi,"code",155517),d(Vi,"message","The SCA wallet is not deployed onchain.");class qi extends E{}d(qi,"code",155601),d(qi,"message","Failed to retrieve wallet set which already exists.");class ji extends E{}d(ji,"code",155701),d(ji,"message","User canceled");class Ki extends E{}d(Ki,"code",155702),d(Ki,"message","<Launch UI failed reason>");class zi extends E{}d(zi,"code",155703),d(zi,"message","The code you entered is not the same as the first one.");class Hi extends E{}d(Hi,"code",155704),d(Hi,"message","Your PIN can't have repeating or consecutive numbers.");class $i extends E{}d($i,"code",155705),d($i,"message","Your hint can't be the same as the answer.");class Gi extends E{}d(Gi,"code",155706),d(Gi,"message","Network error");class Qi extends E{}d(Qi,"code",155707),d(Qi,"message","Failed to encrypt data");class Wi extends E{}d(Wi,"code",155708),d(Wi,"message",'"Biometrics instead of PIN" is disabled');class Yi extends E{}d(Yi,"code",155709),d(Yi,"message","The device system doesn't support biometrics");class Xi extends E{}d(Xi,"code",155710),d(Xi,"message","Failed to decrypt biometrics key");class Ji extends E{}d(Ji,"code",155711),d(Ji,"message","The user has not enabled biometrics yet");class Zi extends E{}d(Zi,"code",155712),d(Zi,"message","The user refused to enable biometrics");class es extends E{}d(es,"code",155713),d(es,"message","Too many requests. Try again later");class ts extends E{}d(ts,"code",155714),d(ts,"message","Too many requests. The biometrics sensor on the device is locked.");class rs extends E{}d(rs,"code",155715),d(rs,"message","The user didn't enable biometrics");class as extends E{}d(as,"code",155716),d(as,"message","Unexpected error for biometrics");class ns extends E{}d(ns,"code",155717),d(ns,"message","User secret is missing.");class is extends E{}d(is,"code",155718),d(is,"message","User secret is invalid.");class ss extends E{}d(ss,"code",155719),d(ss,"message","User token and SDK API execute function does not match.");class os extends E{}d(os,"code",155720),d(os,"message","Social login failed.");class cs extends E{}d(cs,"code",155721),d(cs,"message","Login info is missing.");class ls extends E{}d(ls,"code",155801),d(ls,"message","Transaction or rawTransaction is invalid.");class us extends E{}d(us,"code",155802),d(us,"message","Account not found.");class ps extends E{}d(ps,"code",155803),d(ps,"message","Not signer account.");class ds extends E{}d(ds,"code",155804),d(ds,"message","Transaction already signed.");class fs extends E{}d(fs,"code",155805),d(fs,"message","Transaction failed to deserialize.");class ms extends E{}d(ms,"code",155806),d(ms,"message","The transaction size exceeds blockchain limit.");class hs extends E{}d(hs,"code",155807),d(hs,"message","The chain ID is not supported for signing.");class vs extends E{}d(vs,"code",155808),d(vs,"message","The chain ID is missing in sign request.");class gs extends E{}d(gs,"code",156001),d(gs,"message","Cannot find target wallet in the system. Either the specified wallet doesn't exist or it's not accessible to the caller.");class xs extends E{}d(xs,"code",156002),d(xs,"message","Cannot find target token in the system. Either the specified token doesn't exist or it's not accessible to the caller.");class ys extends E{}d(ys,"code",156003),d(ys,"message","Cannot find target transaction in the system. Either the specified transaction doesn't exist or it's not accessible to the caller.");class bs extends E{}d(bs,"code",156004),d(bs,"message","Reusing an entity secret ciphertext is not allowed. Please re-encrypt the entity secret to generate new ciphertext.");class Es extends E{}d(Es,"code",156005),d(Es,"message","Cannot find target wallet set in the system. Either no such wallet set, or it's not accessible to the caller.");class Cs extends E{}d(Cs,"code",156006),d(Cs,"message","TEST_API key cannot be used with blockchain mainnets, or LIVE_API key cannot be used with blockchain testnets.");class Ss extends E{}d(Ss,"code",156007),d(Ss,"message","TEST_API key or LIVE_API key is not found for the request.");class Ts extends E{}d(Ts,"code",156008),d(Ts,"message","Cannot find target entity config in the system. Either no such entity config, or it's not accessible to the caller.");class ws extends E{}d(ws,"code",156009),d(ws,"message","Fail to parse id as UUID in url.");class As extends E{}d(As,"code",156010),d(As,"message","Cannot find the corresponding entity in the system.");class Is extends E{}d(Is,"code",156011),d(Is,"message","Cannot find target nftTokenId in the system.");class Bs extends E{}d(Bs,"code",156012),d(Bs,"message","Cannot find corresponding pagination cursor in the system.");class _s extends E{}d(_s,"code",156013),d(_s,"message","The provided entity secret is invalid.");class Rs extends E{}d(Rs,"code",156014),d(Rs,"message","Pagination params are invalid. Only UUID format is supported for pageBefore and pageAfter.");class ks extends E{}d(ks,"code",156015),d(ks,"message","The secret for this entity has already been set.");class Ns extends E{}d(Ns,"code",156016),d(Ns,"message","The entity secret has not been set yet. Please provide encrypted ciphertext in the console.");class Ls extends E{}d(Ls,"code",156017),d(Ls,"message","The specified blockchain parameters are incorrect.");class Us extends E{}d(Us,"code",156018),d(Us,"message","The uploaded recovery file is invalid.");class Ds extends E{}d(Ds,"code",156019),d(Ds,"message","Current entity secret is invalid. Please rotate the entity secret first.");class Ps extends E{}d(Ps,"code",156020),d(Ps,"message","Please use a new idempotency key.");class Os extends E{}d(Os,"code",156021),d(Os,"message","A new wallet set ID is required.");class Fs extends E{}d(Fs,"code",156023),d(Fs,"message","EncodedByHex is true in sign request, but the message is not hex encoded.");class Ms extends E{}d(Ms,"code",156024),d(Ms,"message","Data is not a valid JSON string in sign request.");class Vs extends E{}d(Vs,"code",156025),d(Vs,"message","Invalid message in request.");class qs extends E{}d(qs,"code",156026),d(qs,"message","Invalid typed data in request.");class js extends E{}d(js,"code",156027),d(js,"message","The specified blockchain is either not supported or deprecated.");class Ks extends E{}d(Ks,"code",156030),d(Ks,"message","Invalid unsigned delegate action in request.");class zs extends E{}d(zs,"code",156031),d(zs,"message","The specified token address is not supported.");class Hs extends E{}d(Hs,"code",156032),d(Hs,"message","The provided amount is invalid.");class $s extends E{}d($s,"code",175001),d($s,"message","contract not found");class Gs extends E{}d(Gs,"code",175002),d(Gs,"message","no ABI JSON for the target contract");class Qs extends E{}d(Qs,"code",175003),d(Qs,"message","constructor parameters length must match constructor signature");class Ws extends E{}d(Ws,"code",175004),d(Ws,"message","contract already exists");class Ys extends E{}d(Ys,"code",175005),d(Ys,"message","address is not a contract address");class Xs extends E{}d(Xs,"code",175006),d(Xs,"message","contract is archived");class Js extends E{}d(Js,"code",175007),d(Js,"message","invalid ABI JSON");class Zs extends E{}d(Zs,"code",175008),d(Zs,"message","multi-layered proxies are not supported");class eo extends E{}d(eo,"code",175009),d(eo,"message","contract deployment pending");class to extends E{}d(to,"code",175010),d(to,"message","ABI function not found");class ro extends E{}d(ro,"code",175011),d(ro,"message","empty update on a contract");class ao extends E{}d(ao,"code",175012),d(ao,"message","unable to query contract");class no extends E{}d(no,"code",175013),d(no,"message","ABI function is not supported");class io extends E{}d(io,"code",175201),d(io,"message","template not found");class so extends E{}d(so,"code",175202),d(so,"message","deploying this template is temporarily disabled");class oo extends E{}d(oo,"code",175203),d(oo,"message","invalid template deployment parameter");class co extends E{}d(co,"code",175204),d(co,"message","missing required template deployment parameter");class lo extends E{}d(lo,"code",175205),d(lo,"message","estimation is not supported");class uo extends E{}d(uo,"code",175301),d(uo,"message","event subscription not found");class po extends E{}d(po,"code",175302),d(po,"message","event subscription already exists");class fo extends E{}d(fo,"code",175303),d(fo,"message","the specified event signature does not exist");class mo extends E{}d(mo,"code",175401),d(mo,"message","failed to parse id as UUID in url");class ho extends E{}d(ho,"code",175402),d(ho,"message","the specified blockchain is either not supported or deprecated");class vo extends E{}d(vo,"code",175403),d(vo,"message","please use a new idempotency key");class go extends E{}d(go,"code",175404),d(go,"message","TEST_API key cannot be used with blockchain mainnets, or LIVE_API key cannot be used with blockchain testnets");class xo extends E{}d(xo,"code",175405),d(xo,"message","TEST_API key or LIVE_API key is not found for the request");class yo extends E{}d(yo,"code",175406),d(yo,"message","this feature is temporarily disabled");class bo extends E{}d(bo,"code",175407),d(bo,"message","the specified blockchain is currently unavailable");class Eo extends E{}d(Eo,"code",175408),d(Eo,"message","can not find corresponding pagination cursor in the system");class Co extends E{}d(Co,"code",175409),d(Co,"message","restricted entity cannot perform this operation");class So extends E{}d(So,"code",175410),d(So,"message","invalid address format");class To extends E{}d(To,"code",177001),d(To,"message","transaction nonce is inconsistent with sender's latest nonce");class wo extends E{}d(wo,"code",177002),d(wo,"message","user op nonce can not be larger than 0 when smart contract wallet hasn't been deployed");class Ao extends E{}d(Ao,"code",177003),d(Ao,"message","failed to execute this request on EVM due to insufficient token when estimating fee");class Io extends E{}d(Io,"code",177004),d(Io,"message","the total cost of executing transaction is higher than the balance of the user's account when estimating fee");class Bo extends E{}d(Bo,"code",177005),d(Bo,"message","the sender address is not token owner or approved when estimating token transfer");class _o extends E{}d(_o,"code",177006),d(_o,"message","gas required exceeds allowance when estimating fee");class Ro extends E{}d(Ro,"code",177007),d(Ro,"message","estimate fee execution reverted");class ko extends E{}d(ko,"code",177008),d(ko,"message","ABI function signature can't pack ABI parameter");class No extends E{}d(No,"code",177009),d(No,"message","fails to perform transaction estimation");class Lo extends E{}d(Lo,"code",177010),d(Lo,"message","MaxFee * GasLimit exceeds configurable max transaction fee (default is 1 native token)");class Uo extends E{}d(Uo,"code",177011),d(Uo,"message","transaction needs feeLevel or gasLimit provided");class Do extends E{}d(Do,"code",177012),d(Do,"message","SCA transaction needs feeLevel provided");class Po extends E{}d(Po,"code",177013),d(Po,"message","EIP1559 chains need maxFee/priorityFee provided");class Oo extends E{}d(Oo,"code",177014),d(Oo,"message","priorityFee cannot be larger than maxFee in creating transaction request");class Fo extends E{}d(Fo,"code",177015),d(Fo,"message","missing bytecode for contract deployment");class Mo extends E{}d(Mo,"code",177016),d(Mo,"message","cannot provide both WalletID and SourceAddress/Blockchain");class Vo extends E{}d(Vo,"code",177017),d(Vo,"message","invalid amount in contract execution request");class qo extends E{}d(qo,"code",177018),d(qo,"message","policy is not activated and cannot be used");class jo extends E{}d(jo,"code",177019),d(jo,"message","exceeded max daily transaction of the policy");class Ko extends E{}d(Ko,"code",177020),d(Ko,"message","exceeded max spend USD per transaction of the policy");class zo extends E{}d(zo,"code",177021),d(zo,"message","exceeded max spend USD daily of the policy");class Ho extends E{}d(Ho,"code",177022),d(Ho,"message","exceeded max native token daily of the policy");class $o extends E{}d($o,"code",177023),d($o,"message","sender is in policy blocklist");class Go extends E{}d(Go,"code",177024),d(Go,"message","Wallet and request's blockchain mismatch.");class Qo extends E{}d(Qo,"code",177025),d(Qo,"message","the asset amount owned by the wallet is insufficient for the transaction");class Wo extends E{}d(Wo,"code",177026),d(Wo,"message","Wait for pending transactions to be included on the blockchain before submitting new requests. EVM chains restrict the number of queued transactions per sender address.");class Yo extends E{}d(Yo,"code",177301),d(Yo,"message","wallet is Frozen");class Xo extends E{}d(Xo,"code",177302),d(Xo,"message","invalid sca wallet config");class Jo extends E{}d(Jo,"code",177303),d(Jo,"message","SCA wallet first-time transaction is still in progress");class Zo extends E{}d(Zo,"code",177304),d(Zo,"message","SCA account is not supported on the given blockchain");class ec extends E{}d(ec,"code",177305),d(ec,"message","entity is not eligible for SCA account creation. Please check paymaster policy setup");class tc extends E{}d(tc,"code",177601),d(tc,"message","cannot find target wallet in the system. Either the specified wallet doesn't exist or it's not accessible to the caller");class rc extends E{}d(rc,"code",177602),d(rc,"message","reusing an entity secret ciphertext is not allowed. Please re-encrypt the entity secret to generate new ciphertext");class ac extends E{}d(ac,"code",177603),d(ac,"message","cannot find the corresponding entity in the system");class nc extends E{}d(nc,"code",177604),d(nc,"message","the provided entity secret is invalid");class ic extends E{}d(ic,"code",177605),d(ic,"message","the entity secret has not been set yet. Please provide encrypted ciphertext in the console");class sc extends E{}d(sc,"code",177606),d(sc,"message","current entity secret is invalid. Please rotate the entity secret first");class oc extends E{}d(oc,"code",177607),d(oc,"message","please use a new idempotency key");class cc extends E{}d(cc,"code",177901),d(cc,"message","smart contract query failed");const Df={undefined:E,[ga.code]:ga,[xa.code]:xa,[ya.code]:ya,[ba.code]:ba,[Ea.code]:Ea,[Ca.code]:Ca,[Sa.code]:Sa,[Ta.code]:Ta,[wa.code]:wa,[Aa.code]:Aa,[Da.code]:Da,[Pa.code]:Pa,[Oa.code]:Oa,[Fa.code]:Fa,[Ma.code]:Ma,[Va.code]:Va,[qa.code]:qa,[ja.code]:ja,[Ka.code]:Ka,[za.code]:za,[Ha.code]:Ha,[$a.code]:$a,[Ga.code]:Ga,[Qa.code]:Qa,[Wa.code]:Wa,[Ya.code]:Ya,[Xa.code]:Xa,[Ja.code]:Ja,[Za.code]:Za,[en.code]:en,[tn.code]:tn,[rn.code]:rn,[an.code]:an,[nn.code]:nn,[sn.code]:sn,[on.code]:on,[cn.code]:cn,[ln.code]:ln,[un.code]:un,[pn.code]:pn,[dn.code]:dn,[fn.code]:fn,[mn.code]:mn,[hn.code]:hn,[vn.code]:vn,[gn.code]:gn,[xn.code]:xn,[yn.code]:yn,[bn.code]:bn,[En.code]:En,[Cn.code]:Cn,[Sn.code]:Sn,[Tn.code]:Tn,[wn.code]:wn,[An.code]:An,[In.code]:In,[Bn.code]:Bn,[_n.code]:_n,[Rn.code]:Rn,[kn.code]:kn,[Nn.code]:Nn,[Ln.code]:Ln,[Un.code]:Un,[Dn.code]:Dn,[Pn.code]:Pn,[On.code]:On,[Fn.code]:Fn,[Mn.code]:Mn,[Vn.code]:Vn,[qn.code]:qn,[jn.code]:jn,[Kn.code]:Kn,[zn.code]:zn,[Hn.code]:Hn,[$n.code]:$n,[Gn.code]:Gn,[Qn.code]:Qn,[Wn.code]:Wn,[Yn.code]:Yn,[Xn.code]:Xn,[Jn.code]:Jn,[Zn.code]:Zn,[ei.code]:ei,[ti.code]:ti,[ri.code]:ri,[ai.code]:ai,[ni.code]:ni,[ii.code]:ii,[si.code]:si,[oi.code]:oi,[ci.code]:ci,[li.code]:li,[ui.code]:ui,[pi.code]:pi,[di.code]:di,[fi.code]:fi,[mi.code]:mi,[hi.code]:hi,[vi.code]:vi,[gi.code]:gi,[xi.code]:xi,[yi.code]:yi,[bi.code]:bi,[Ei.code]:Ei,[Ci.code]:Ci,[Si.code]:Si,[Ti.code]:Ti,[wi.code]:wi,[Ai.code]:Ai,[Ii.code]:Ii,[Bi.code]:Bi,[_i.code]:_i,[Ri.code]:Ri,[ki.code]:ki,[Ni.code]:Ni,[Li.code]:Li,[Ui.code]:Ui,[Di.code]:Di,[Pi.code]:Pi,[Oi.code]:Oi,[Fi.code]:Fi,[Mi.code]:Mi,[Vi.code]:Vi,[qi.code]:qi,[ji.code]:ji,[Ki.code]:Ki,[zi.code]:zi,[Hi.code]:Hi,[$i.code]:$i,[Gi.code]:Gi,[Qi.code]:Qi,[Wi.code]:Wi,[Yi.code]:Yi,[Xi.code]:Xi,[Ji.code]:Ji,[Zi.code]:Zi,[es.code]:es,[ts.code]:ts,[rs.code]:rs,[as.code]:as,[ns.code]:ns,[is.code]:is,[ss.code]:ss,[os.code]:os,[cs.code]:cs,[ls.code]:ls,[us.code]:us,[ps.code]:ps,[ds.code]:ds,[fs.code]:fs,[ms.code]:ms,[hs.code]:hs,[vs.code]:vs,[gs.code]:gs,[xs.code]:xs,[ys.code]:ys,[bs.code]:bs,[Es.code]:Es,[Cs.code]:Cs,[Ss.code]:Ss,[Ts.code]:Ts,[ws.code]:ws,[As.code]:As,[Is.code]:Is,[Bs.code]:Bs,[_s.code]:_s,[Rs.code]:Rs,[ks.code]:ks,[Ns.code]:Ns,[Ls.code]:Ls,[Us.code]:Us,[Ds.code]:Ds,[Ps.code]:Ps,[Os.code]:Os,[Fs.code]:Fs,[Ms.code]:Ms,[Vs.code]:Vs,[qs.code]:qs,[js.code]:js,[Ks.code]:Ks,[zs.code]:zs,[Hs.code]:Hs,[$s.code]:$s,[Gs.code]:Gs,[Qs.code]:Qs,[Ws.code]:Ws,[Ys.code]:Ys,[Xs.code]:Xs,[Js.code]:Js,[Zs.code]:Zs,[eo.code]:eo,[to.code]:to,[ro.code]:ro,[ao.code]:ao,[no.code]:no,[io.code]:io,[so.code]:so,[oo.code]:oo,[co.code]:co,[lo.code]:lo,[uo.code]:uo,[po.code]:po,[fo.code]:fo,[mo.code]:mo,[ho.code]:ho,[vo.code]:vo,[go.code]:go,[xo.code]:xo,[yo.code]:yo,[bo.code]:bo,[Eo.code]:Eo,[Co.code]:Co,[So.code]:So,[To.code]:To,[wo.code]:wo,[Ao.code]:Ao,[Io.code]:Io,[Bo.code]:Bo,[_o.code]:_o,[Ro.code]:Ro,[ko.code]:ko,[No.code]:No,[Lo.code]:Lo,[Uo.code]:Uo,[Do.code]:Do,[Po.code]:Po,[Oo.code]:Oo,[Fo.code]:Fo,[Mo.code]:Mo,[Vo.code]:Vo,[qo.code]:qo,[jo.code]:jo,[Ko.code]:Ko,[zo.code]:zo,[Ho.code]:Ho,[$o.code]:$o,[Go.code]:Go,[Qo.code]:Qo,[Wo.code]:Wo,[Yo.code]:Yo,[Xo.code]:Xo,[Jo.code]:Jo,[Zo.code]:Zo,[ec.code]:ec,[tc.code]:tc,[rc.code]:rc,[ac.code]:ac,[nc.code]:nc,[ic.code]:ic,[sc.code]:sc,[oc.code]:oc,[cc.code]:cc};function T1(e){return Df[e]??Df.undefined}function w1(e){const t=e.response.data,a=e.response.status;return A1({code:t?.code??a,status:a,message:t?.message,url:e.config.url,method:e.config.method.toUpperCase(),error:e})}function A1({code:e,status:t,message:a,url:r,method:n,error:s}){const i=T1(e);return new i({message:a,code:e,url:r,method:n,status:t,error:s})}function et(e){return e.response?w1(e):b1(e)}const St=e=>{const{data:t,headers:a,...r}=e;return{...r,data:t.data,headers:a}},I1=({configurationsClient:e})=>async()=>{try{return St(await e.DeveloperAccount.getPublicKey())}catch(t){throw rt(t)?et(t):t}};var B1=Object.defineProperty,_1=(e,t,a)=>t in e?B1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,R1=(e,t,a)=>_1(e,typeof t!="symbol"?t+"":t,a);class k1{constructor(){R1(this,"data",{})}get(t){return Promise.resolve(this.data[t]??void 0)}set(t,a){return a===void 0?delete this.data[t]:this.data[t]=a,Promise.resolve()}}var te={options:{usePureJavaScript:!1}},Ru={},N1=Ru,Pf={};Ru.encode=function(e,t,a){if(typeof t!="string")throw new TypeError('"alphabet" must be a string.');if(a!==void 0&&typeof a!="number")throw new TypeError('"maxline" must be a number.');var r="";if(!(e instanceof Uint8Array))r=L1(e,t);else{var n=0,s=t.length,i=t.charAt(0),o=[0];for(n=0;n<e.length;++n){for(var c=0,l=e[n];c<o.length;++c)l+=o[c]<<8,o[c]=l%s,l=l/s|0;for(;l>0;)o.push(l%s),l=l/s|0}for(n=0;e[n]===0&&n<e.length-1;++n)r+=i;for(n=o.length-1;n>=0;--n)r+=t[o[n]]}if(a){var u=new RegExp(".{1,"+a+"}","g");r=r.match(u).join(`\r
26
+ `)}return r},Ru.decode=function(e,t){if(typeof e!="string")throw new TypeError('"input" must be a string.');if(typeof t!="string")throw new TypeError('"alphabet" must be a string.');var a=Pf[t];if(!a){a=Pf[t]=[];for(var r=0;r<t.length;++r)a[t.charCodeAt(r)]=r}e=e.replace(/\s/g,"");for(var n=t.length,s=t.charAt(0),i=[0],r=0;r<e.length;r++){var o=a[e.charCodeAt(r)];if(o===void 0)return;for(var c=0,l=o;c<i.length;++c)l+=i[c]*n,i[c]=l&255,l>>=8;for(;l>0;)i.push(l&255),l>>=8}for(var u=0;e[u]===s&&u<e.length-1;++u)i.push(0);return typeof Buffer<"u"?Buffer.from(i.reverse()):new Uint8Array(i.reverse())};function L1(e,t){var a=0,r=t.length,n=t.charAt(0),s=[0];for(a=0;a<e.length();++a){for(var i=0,o=e.at(a);i<s.length;++i)o+=s[i]<<8,s[i]=o%r,o=o/r|0;for(;o>0;)s.push(o%r),o=o/r|0}var c="";for(a=0;e.at(a)===0&&a<e.length()-1;++a)c+=n;for(a=s.length-1;a>=0;--a)c+=t[s[a]];return c}var Of=te,Ff=N1,w=Of.util=Of.util||{};(function(){if(typeof process<"u"&&process.nextTick&&!process.browser){w.nextTick=process.nextTick,typeof setImmediate=="function"?w.setImmediate=setImmediate:w.setImmediate=w.nextTick;return}if(typeof setImmediate=="function"){w.setImmediate=function(){return setImmediate.apply(void 0,arguments)},w.nextTick=function(i){return setImmediate(i)};return}if(w.setImmediate=function(i){setTimeout(i,0)},typeof window<"u"&&typeof window.postMessage=="function"){let i=function(o){if(o.source===window&&o.data===e){o.stopPropagation();var c=t.slice();t.length=0,c.forEach(function(l){l()})}};var e="forge.setImmediate",t=[];w.setImmediate=function(o){t.push(o),t.length===1&&window.postMessage(e,"*")},window.addEventListener("message",i,!0)}if(typeof MutationObserver<"u"){var a=Date.now(),r=!0,n=document.createElement("div"),t=[];new MutationObserver(function(){var o=t.slice();t.length=0,o.forEach(function(c){c()})}).observe(n,{attributes:!0});var s=w.setImmediate;w.setImmediate=function(o){Date.now()-a>15?(a=Date.now(),s(o)):(t.push(o),t.length===1&&n.setAttribute("a",r=!r))}}w.nextTick=w.setImmediate})(),w.isNodejs=typeof process<"u"&&process.versions&&process.versions.node,w.globalScope=(function(){return w.isNodejs?Ym:typeof self>"u"?window:self})(),w.isArray=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"},w.isArrayBuffer=function(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer},w.isArrayBufferView=function(e){return e&&w.isArrayBuffer(e.buffer)&&e.byteLength!==void 0};function lc(e){if(!(e===8||e===16||e===24||e===32))throw new Error("Only 8, 16, 24, or 32 bits supported: "+e)}w.ByteBuffer=ku;function ku(e){if(this.data="",this.read=0,typeof e=="string")this.data=e;else if(w.isArrayBuffer(e)||w.isArrayBufferView(e))if(typeof Buffer<"u"&&e instanceof Buffer)this.data=e.toString("binary");else{var t=new Uint8Array(e);try{this.data=String.fromCharCode.apply(null,t)}catch{for(var a=0;a<t.length;++a)this.putByte(t[a])}}else(e instanceof ku||typeof e=="object"&&typeof e.data=="string"&&typeof e.read=="number")&&(this.data=e.data,this.read=e.read);this._constructedStringLength=0}w.ByteStringBuffer=ku;var U1=4096;w.ByteStringBuffer.prototype._optimizeConstructedString=function(e){this._constructedStringLength+=e,this._constructedStringLength>U1&&(this.data.substr(0,1),this._constructedStringLength=0)},w.ByteStringBuffer.prototype.length=function(){return this.data.length-this.read},w.ByteStringBuffer.prototype.isEmpty=function(){return this.length()<=0},w.ByteStringBuffer.prototype.putByte=function(e){return this.putBytes(String.fromCharCode(e))},w.ByteStringBuffer.prototype.fillWithByte=function(e,t){e=String.fromCharCode(e);for(var a=this.data;t>0;)t&1&&(a+=e),t>>>=1,t>0&&(e+=e);return this.data=a,this._optimizeConstructedString(t),this},w.ByteStringBuffer.prototype.putBytes=function(e){return this.data+=e,this._optimizeConstructedString(e.length),this},w.ByteStringBuffer.prototype.putString=function(e){return this.putBytes(w.encodeUtf8(e))},w.ByteStringBuffer.prototype.putInt16=function(e){return this.putBytes(String.fromCharCode(e>>8&255)+String.fromCharCode(e&255))},w.ByteStringBuffer.prototype.putInt24=function(e){return this.putBytes(String.fromCharCode(e>>16&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(e&255))},w.ByteStringBuffer.prototype.putInt32=function(e){return this.putBytes(String.fromCharCode(e>>24&255)+String.fromCharCode(e>>16&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(e&255))},w.ByteStringBuffer.prototype.putInt16Le=function(e){return this.putBytes(String.fromCharCode(e&255)+String.fromCharCode(e>>8&255))},w.ByteStringBuffer.prototype.putInt24Le=function(e){return this.putBytes(String.fromCharCode(e&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(e>>16&255))},w.ByteStringBuffer.prototype.putInt32Le=function(e){return this.putBytes(String.fromCharCode(e&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(e>>16&255)+String.fromCharCode(e>>24&255))},w.ByteStringBuffer.prototype.putInt=function(e,t){lc(t);var a="";do t-=8,a+=String.fromCharCode(e>>t&255);while(t>0);return this.putBytes(a)},w.ByteStringBuffer.prototype.putSignedInt=function(e,t){return e<0&&(e+=2<<t-1),this.putInt(e,t)},w.ByteStringBuffer.prototype.putBuffer=function(e){return this.putBytes(e.getBytes())},w.ByteStringBuffer.prototype.getByte=function(){return this.data.charCodeAt(this.read++)},w.ByteStringBuffer.prototype.getInt16=function(){var e=this.data.charCodeAt(this.read)<<8^this.data.charCodeAt(this.read+1);return this.read+=2,e},w.ByteStringBuffer.prototype.getInt24=function(){var e=this.data.charCodeAt(this.read)<<16^this.data.charCodeAt(this.read+1)<<8^this.data.charCodeAt(this.read+2);return this.read+=3,e},w.ByteStringBuffer.prototype.getInt32=function(){var e=this.data.charCodeAt(this.read)<<24^this.data.charCodeAt(this.read+1)<<16^this.data.charCodeAt(this.read+2)<<8^this.data.charCodeAt(this.read+3);return this.read+=4,e},w.ByteStringBuffer.prototype.getInt16Le=function(){var e=this.data.charCodeAt(this.read)^this.data.charCodeAt(this.read+1)<<8;return this.read+=2,e},w.ByteStringBuffer.prototype.getInt24Le=function(){var e=this.data.charCodeAt(this.read)^this.data.charCodeAt(this.read+1)<<8^this.data.charCodeAt(this.read+2)<<16;return this.read+=3,e},w.ByteStringBuffer.prototype.getInt32Le=function(){var e=this.data.charCodeAt(this.read)^this.data.charCodeAt(this.read+1)<<8^this.data.charCodeAt(this.read+2)<<16^this.data.charCodeAt(this.read+3)<<24;return this.read+=4,e},w.ByteStringBuffer.prototype.getInt=function(e){lc(e);var t=0;do t=(t<<8)+this.data.charCodeAt(this.read++),e-=8;while(e>0);return t},w.ByteStringBuffer.prototype.getSignedInt=function(e){var t=this.getInt(e),a=2<<e-2;return t>=a&&(t-=a<<1),t},w.ByteStringBuffer.prototype.getBytes=function(e){var t;return e?(e=Math.min(this.length(),e),t=this.data.slice(this.read,this.read+e),this.read+=e):e===0?t="":(t=this.read===0?this.data:this.data.slice(this.read),this.clear()),t},w.ByteStringBuffer.prototype.bytes=function(e){return typeof e>"u"?this.data.slice(this.read):this.data.slice(this.read,this.read+e)},w.ByteStringBuffer.prototype.at=function(e){return this.data.charCodeAt(this.read+e)},w.ByteStringBuffer.prototype.setAt=function(e,t){return this.data=this.data.substr(0,this.read+e)+String.fromCharCode(t)+this.data.substr(this.read+e+1),this},w.ByteStringBuffer.prototype.last=function(){return this.data.charCodeAt(this.data.length-1)},w.ByteStringBuffer.prototype.copy=function(){var e=w.createBuffer(this.data);return e.read=this.read,e},w.ByteStringBuffer.prototype.compact=function(){return this.read>0&&(this.data=this.data.slice(this.read),this.read=0),this},w.ByteStringBuffer.prototype.clear=function(){return this.data="",this.read=0,this},w.ByteStringBuffer.prototype.truncate=function(e){var t=Math.max(0,this.length()-e);return this.data=this.data.substr(this.read,t),this.read=0,this},w.ByteStringBuffer.prototype.toHex=function(){for(var e="",t=this.read;t<this.data.length;++t){var a=this.data.charCodeAt(t);a<16&&(e+="0"),e+=a.toString(16)}return e},w.ByteStringBuffer.prototype.toString=function(){return w.decodeUtf8(this.bytes())};function D1(e,t){t=t||{},this.read=t.readOffset||0,this.growSize=t.growSize||1024;var a=w.isArrayBuffer(e),r=w.isArrayBufferView(e);if(a||r){a?this.data=new DataView(e):this.data=new DataView(e.buffer,e.byteOffset,e.byteLength),this.write="writeOffset"in t?t.writeOffset:this.data.byteLength;return}this.data=new DataView(new ArrayBuffer(0)),this.write=0,e!=null&&this.putBytes(e),"writeOffset"in t&&(this.write=t.writeOffset)}w.DataBuffer=D1,w.DataBuffer.prototype.length=function(){return this.write-this.read},w.DataBuffer.prototype.isEmpty=function(){return this.length()<=0},w.DataBuffer.prototype.accommodate=function(e,t){if(this.length()>=e)return this;t=Math.max(t||this.growSize,e);var a=new Uint8Array(this.data.buffer,this.data.byteOffset,this.data.byteLength),r=new Uint8Array(this.length()+t);return r.set(a),this.data=new DataView(r.buffer),this},w.DataBuffer.prototype.putByte=function(e){return this.accommodate(1),this.data.setUint8(this.write++,e),this},w.DataBuffer.prototype.fillWithByte=function(e,t){this.accommodate(t);for(var a=0;a<t;++a)this.data.setUint8(e);return this},w.DataBuffer.prototype.putBytes=function(e,t){if(w.isArrayBufferView(e)){var a=new Uint8Array(e.buffer,e.byteOffset,e.byteLength),r=a.byteLength-a.byteOffset;this.accommodate(r);var n=new Uint8Array(this.data.buffer,this.write);return n.set(a),this.write+=r,this}if(w.isArrayBuffer(e)){var a=new Uint8Array(e);this.accommodate(a.byteLength);var n=new Uint8Array(this.data.buffer);return n.set(a,this.write),this.write+=a.byteLength,this}if(e instanceof w.DataBuffer||typeof e=="object"&&typeof e.read=="number"&&typeof e.write=="number"&&w.isArrayBufferView(e.data)){var a=new Uint8Array(e.data.byteLength,e.read,e.length());this.accommodate(a.byteLength);var n=new Uint8Array(e.data.byteLength,this.write);return n.set(a),this.write+=a.byteLength,this}if(e instanceof w.ByteStringBuffer&&(e=e.data,t="binary"),t=t||"binary",typeof e=="string"){var s;if(t==="hex")return this.accommodate(Math.ceil(e.length/2)),s=new Uint8Array(this.data.buffer,this.write),this.write+=w.binary.hex.decode(e,s,this.write),this;if(t==="base64")return this.accommodate(Math.ceil(e.length/4)*3),s=new Uint8Array(this.data.buffer,this.write),this.write+=w.binary.base64.decode(e,s,this.write),this;if(t==="utf8"&&(e=w.encodeUtf8(e),t="binary"),t==="binary"||t==="raw")return this.accommodate(e.length),s=new Uint8Array(this.data.buffer,this.write),this.write+=w.binary.raw.decode(s),this;if(t==="utf16")return this.accommodate(e.length*2),s=new Uint16Array(this.data.buffer,this.write),this.write+=w.text.utf16.encode(s),this;throw new Error("Invalid encoding: "+t)}throw Error("Invalid parameter: "+e)},w.DataBuffer.prototype.putBuffer=function(e){return this.putBytes(e),e.clear(),this},w.DataBuffer.prototype.putString=function(e){return this.putBytes(e,"utf16")},w.DataBuffer.prototype.putInt16=function(e){return this.accommodate(2),this.data.setInt16(this.write,e),this.write+=2,this},w.DataBuffer.prototype.putInt24=function(e){return this.accommodate(3),this.data.setInt16(this.write,e>>8&65535),this.data.setInt8(this.write,e>>16&255),this.write+=3,this},w.DataBuffer.prototype.putInt32=function(e){return this.accommodate(4),this.data.setInt32(this.write,e),this.write+=4,this},w.DataBuffer.prototype.putInt16Le=function(e){return this.accommodate(2),this.data.setInt16(this.write,e,!0),this.write+=2,this},w.DataBuffer.prototype.putInt24Le=function(e){return this.accommodate(3),this.data.setInt8(this.write,e>>16&255),this.data.setInt16(this.write,e>>8&65535,!0),this.write+=3,this},w.DataBuffer.prototype.putInt32Le=function(e){return this.accommodate(4),this.data.setInt32(this.write,e,!0),this.write+=4,this},w.DataBuffer.prototype.putInt=function(e,t){lc(t),this.accommodate(t/8);do t-=8,this.data.setInt8(this.write++,e>>t&255);while(t>0);return this},w.DataBuffer.prototype.putSignedInt=function(e,t){return lc(t),this.accommodate(t/8),e<0&&(e+=2<<t-1),this.putInt(e,t)},w.DataBuffer.prototype.getByte=function(){return this.data.getInt8(this.read++)},w.DataBuffer.prototype.getInt16=function(){var e=this.data.getInt16(this.read);return this.read+=2,e},w.DataBuffer.prototype.getInt24=function(){var e=this.data.getInt16(this.read)<<8^this.data.getInt8(this.read+2);return this.read+=3,e},w.DataBuffer.prototype.getInt32=function(){var e=this.data.getInt32(this.read);return this.read+=4,e},w.DataBuffer.prototype.getInt16Le=function(){var e=this.data.getInt16(this.read,!0);return this.read+=2,e},w.DataBuffer.prototype.getInt24Le=function(){var e=this.data.getInt8(this.read)^this.data.getInt16(this.read+1,!0)<<8;return this.read+=3,e},w.DataBuffer.prototype.getInt32Le=function(){var e=this.data.getInt32(this.read,!0);return this.read+=4,e},w.DataBuffer.prototype.getInt=function(e){lc(e);var t=0;do t=(t<<8)+this.data.getInt8(this.read++),e-=8;while(e>0);return t},w.DataBuffer.prototype.getSignedInt=function(e){var t=this.getInt(e),a=2<<e-2;return t>=a&&(t-=a<<1),t},w.DataBuffer.prototype.getBytes=function(e){var t;return e?(e=Math.min(this.length(),e),t=this.data.slice(this.read,this.read+e),this.read+=e):e===0?t="":(t=this.read===0?this.data:this.data.slice(this.read),this.clear()),t},w.DataBuffer.prototype.bytes=function(e){return typeof e>"u"?this.data.slice(this.read):this.data.slice(this.read,this.read+e)},w.DataBuffer.prototype.at=function(e){return this.data.getUint8(this.read+e)},w.DataBuffer.prototype.setAt=function(e,t){return this.data.setUint8(e,t),this},w.DataBuffer.prototype.last=function(){return this.data.getUint8(this.write-1)},w.DataBuffer.prototype.copy=function(){return new w.DataBuffer(this)},w.DataBuffer.prototype.compact=function(){if(this.read>0){var e=new Uint8Array(this.data.buffer,this.read),t=new Uint8Array(e.byteLength);t.set(e),this.data=new DataView(t),this.write-=this.read,this.read=0}return this},w.DataBuffer.prototype.clear=function(){return this.data=new DataView(new ArrayBuffer(0)),this.read=this.write=0,this},w.DataBuffer.prototype.truncate=function(e){return this.write=Math.max(0,this.length()-e),this.read=Math.min(this.read,this.write),this},w.DataBuffer.prototype.toHex=function(){for(var e="",t=this.read;t<this.data.byteLength;++t){var a=this.data.getUint8(t);a<16&&(e+="0"),e+=a.toString(16)}return e},w.DataBuffer.prototype.toString=function(e){var t=new Uint8Array(this.data,this.read,this.length());if(e=e||"utf8",e==="binary"||e==="raw")return w.binary.raw.encode(t);if(e==="hex")return w.binary.hex.encode(t);if(e==="base64")return w.binary.base64.encode(t);if(e==="utf8")return w.text.utf8.decode(t);if(e==="utf16")return w.text.utf16.decode(t);throw new Error("Invalid encoding: "+e)},w.createBuffer=function(e,t){return t=t||"raw",e!==void 0&&t==="utf8"&&(e=w.encodeUtf8(e)),new w.ByteBuffer(e)},w.fillString=function(e,t){for(var a="";t>0;)t&1&&(a+=e),t>>>=1,t>0&&(e+=e);return a},w.xorBytes=function(e,t,a){for(var r="",n="",s="",i=0,o=0;a>0;--a,++i)n=e.charCodeAt(i)^t.charCodeAt(i),o>=10&&(r+=s,s="",o=0),s+=String.fromCharCode(n),++o;return r+=s,r},w.hexToBytes=function(e){var t="",a=0;for(e.length&!0&&(a=1,t+=String.fromCharCode(parseInt(e[0],16)));a<e.length;a+=2)t+=String.fromCharCode(parseInt(e.substr(a,2),16));return t},w.bytesToHex=function(e){return w.createBuffer(e).toHex()},w.int32ToBytes=function(e){return String.fromCharCode(e>>24&255)+String.fromCharCode(e>>16&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(e&255)};var ir="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",sr=[62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,64,-1,-1,-1,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,-1,-1,-1,-1,-1,-1,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],Mf="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";w.encode64=function(e,t){for(var a="",r="",n,s,i,o=0;o<e.length;)n=e.charCodeAt(o++),s=e.charCodeAt(o++),i=e.charCodeAt(o++),a+=ir.charAt(n>>2),a+=ir.charAt((n&3)<<4|s>>4),isNaN(s)?a+="==":(a+=ir.charAt((s&15)<<2|i>>6),a+=isNaN(i)?"=":ir.charAt(i&63)),t&&a.length>t&&(r+=a.substr(0,t)+`\r
27
+ `,a=a.substr(t));return r+=a,r},w.decode64=function(e){e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");for(var t="",a,r,n,s,i=0;i<e.length;)a=sr[e.charCodeAt(i++)-43],r=sr[e.charCodeAt(i++)-43],n=sr[e.charCodeAt(i++)-43],s=sr[e.charCodeAt(i++)-43],t+=String.fromCharCode(a<<2|r>>4),n!==64&&(t+=String.fromCharCode((r&15)<<4|n>>2),s!==64&&(t+=String.fromCharCode((n&3)<<6|s)));return t},w.encodeUtf8=function(e){return unescape(encodeURIComponent(e))},w.decodeUtf8=function(e){return decodeURIComponent(escape(e))},w.binary={raw:{},hex:{},base64:{},base58:{},baseN:{encode:Ff.encode,decode:Ff.decode}},w.binary.raw.encode=function(e){return String.fromCharCode.apply(null,e)},w.binary.raw.decode=function(e,t,a){var r=t;r||(r=new Uint8Array(e.length)),a=a||0;for(var n=a,s=0;s<e.length;++s)r[n++]=e.charCodeAt(s);return t?n-a:r},w.binary.hex.encode=w.bytesToHex,w.binary.hex.decode=function(e,t,a){var r=t;r||(r=new Uint8Array(Math.ceil(e.length/2))),a=a||0;var n=0,s=a;for(e.length&1&&(n=1,r[s++]=parseInt(e[0],16));n<e.length;n+=2)r[s++]=parseInt(e.substr(n,2),16);return t?s-a:r},w.binary.base64.encode=function(e,t){for(var a="",r="",n,s,i,o=0;o<e.byteLength;)n=e[o++],s=e[o++],i=e[o++],a+=ir.charAt(n>>2),a+=ir.charAt((n&3)<<4|s>>4),isNaN(s)?a+="==":(a+=ir.charAt((s&15)<<2|i>>6),a+=isNaN(i)?"=":ir.charAt(i&63)),t&&a.length>t&&(r+=a.substr(0,t)+`\r
28
+ `,a=a.substr(t));return r+=a,r},w.binary.base64.decode=function(e,t,a){var r=t;r||(r=new Uint8Array(Math.ceil(e.length/4)*3)),e=e.replace(/[^A-Za-z0-9\+\/\=]/g,""),a=a||0;for(var n,s,i,o,c=0,l=a;c<e.length;)n=sr[e.charCodeAt(c++)-43],s=sr[e.charCodeAt(c++)-43],i=sr[e.charCodeAt(c++)-43],o=sr[e.charCodeAt(c++)-43],r[l++]=n<<2|s>>4,i!==64&&(r[l++]=(s&15)<<4|i>>2,o!==64&&(r[l++]=(i&3)<<6|o));return t?l-a:r.subarray(0,l)},w.binary.base58.encode=function(e,t){return w.binary.baseN.encode(e,Mf,t)},w.binary.base58.decode=function(e,t){return w.binary.baseN.decode(e,Mf,t)},w.text={utf8:{},utf16:{}},w.text.utf8.encode=function(e,t,a){e=w.encodeUtf8(e);var r=t;r||(r=new Uint8Array(e.length)),a=a||0;for(var n=a,s=0;s<e.length;++s)r[n++]=e.charCodeAt(s);return t?n-a:r},w.text.utf8.decode=function(e){return w.decodeUtf8(String.fromCharCode.apply(null,e))},w.text.utf16.encode=function(e,t,a){var r=t;r||(r=new Uint8Array(e.length*2));var n=new Uint16Array(r.buffer);a=a||0;for(var s=a,i=a,o=0;o<e.length;++o)n[i++]=e.charCodeAt(o),s+=2;return t?s-a:r},w.text.utf16.decode=function(e){return String.fromCharCode.apply(null,new Uint16Array(e.buffer))},w.deflate=function(e,t,a){if(t=w.decode64(e.deflate(w.encode64(t)).rval),a){var r=2,n=t.charCodeAt(1);n&32&&(r=6),t=t.substring(r,t.length-4)}return t},w.inflate=function(e,t,a){var r=e.inflate(w.encode64(t)).rval;return r===null?null:w.decode64(r)};var Nu=function(e,t,a){if(!e)throw new Error("WebStorage not available.");var r;if(a===null?r=e.removeItem(t):(a=w.encode64(JSON.stringify(a)),r=e.setItem(t,a)),typeof r<"u"&&r.rval!==!0){var n=new Error(r.error.message);throw n.id=r.error.id,n.name=r.error.name,n}},Lu=function(e,t){if(!e)throw new Error("WebStorage not available.");var a=e.getItem(t);if(e.init)if(a.rval===null){if(a.error){var r=new Error(a.error.message);throw r.id=a.error.id,r.name=a.error.name,r}a=null}else a=a.rval;return a!==null&&(a=JSON.parse(w.decode64(a))),a},P1=function(e,t,a,r){var n=Lu(e,t);n===null&&(n={}),n[a]=r,Nu(e,t,n)},O1=function(e,t,a){var r=Lu(e,t);return r!==null&&(r=a in r?r[a]:null),r},F1=function(e,t,a){var r=Lu(e,t);if(r!==null&&a in r){delete r[a];var n=!0;for(var s in r){n=!1;break}n&&(r=null),Nu(e,t,r)}},M1=function(e,t){Nu(e,t,null)},$c=function(e,t,a){var r=null;typeof a>"u"&&(a=["web","flash"]);var n,s=!1,i=null;for(var o in a){n=a[o];try{if(n==="flash"||n==="both"){if(t[0]===null)throw new Error("Flash local storage not available.");r=e.apply(this,t),s=n==="flash"}(n==="web"||n==="both")&&(t[0]=localStorage,r=e.apply(this,t),s=!0)}catch(c){i=c}if(s)break}if(!s)throw i;return r};w.setItem=function(e,t,a,r,n){$c(P1,arguments,n)},w.getItem=function(e,t,a,r){return $c(O1,arguments,r)},w.removeItem=function(e,t,a,r){$c(F1,arguments,r)},w.clearItems=function(e,t,a){$c(M1,arguments,a)},w.isEmpty=function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0},w.format=function(e){for(var t=/%./g,a,r,n=0,s=[],i=0;a=t.exec(e);){r=e.substring(i,t.lastIndex-2),r.length>0&&s.push(r),i=t.lastIndex;var o=a[0][1];switch(o){case"s":case"o":n<arguments.length?s.push(arguments[n+++1]):s.push("<?>");break;case"%":s.push("%");break;default:s.push("<%"+o+"?>")}}return s.push(e.substring(i)),s.join("")},w.formatNumber=function(e,t,a,r){var n=e,s=isNaN(t=Math.abs(t))?2:t,i=a===void 0?",":a,o=r===void 0?".":r,c=n<0?"-":"",l=parseInt(n=Math.abs(+n||0).toFixed(s),10)+"",u=l.length>3?l.length%3:0;return c+(u?l.substr(0,u)+o:"")+l.substr(u).replace(/(\d{3})(?=\d)/g,"$1"+o)+(s?i+Math.abs(n-l).toFixed(s).slice(2):"")},w.formatSize=function(e){return e>=1073741824?e=w.formatNumber(e/1073741824,2,".","")+" GiB":e>=1048576?e=w.formatNumber(e/1048576,2,".","")+" MiB":e>=1024?e=w.formatNumber(e/1024,0)+" KiB":e=w.formatNumber(e,0)+" bytes",e},w.bytesFromIP=function(e){return e.indexOf(".")!==-1?w.bytesFromIPv4(e):e.indexOf(":")!==-1?w.bytesFromIPv6(e):null},w.bytesFromIPv4=function(e){if(e=e.split("."),e.length!==4)return null;for(var t=w.createBuffer(),a=0;a<e.length;++a){var r=parseInt(e[a],10);if(isNaN(r))return null;t.putByte(r)}return t.getBytes()},w.bytesFromIPv6=function(e){var t=0;e=e.split(":").filter(function(i){return i.length===0&&++t,!0});for(var a=(8-e.length+t)*2,r=w.createBuffer(),n=0;n<8;++n){if(!e[n]||e[n].length===0){r.fillWithByte(0,a),a=0;continue}var s=w.hexToBytes(e[n]);s.length<2&&r.putByte(0),r.putBytes(s)}return r.getBytes()},w.bytesToIP=function(e){return e.length===4?w.bytesToIPv4(e):e.length===16?w.bytesToIPv6(e):null},w.bytesToIPv4=function(e){if(e.length!==4)return null;for(var t=[],a=0;a<e.length;++a)t.push(e.charCodeAt(a));return t.join(".")},w.bytesToIPv6=function(e){if(e.length!==16)return null;for(var t=[],a=[],r=0,n=0;n<e.length;n+=2){for(var s=w.bytesToHex(e[n]+e[n+1]);s[0]==="0"&&s!=="0";)s=s.substr(1);if(s==="0"){var i=a[a.length-1],o=t.length;!i||o!==i.end+1?a.push({start:o,end:o}):(i.end=o,i.end-i.start>a[r].end-a[r].start&&(r=a.length-1))}t.push(s)}if(a.length>0){var c=a[r];c.end-c.start>0&&(t.splice(c.start,c.end-c.start+1,""),c.start===0&&t.unshift(""),c.end===7&&t.push(""))}return t.join(":")},w.estimateCores=function(e,t){if(typeof e=="function"&&(t=e,e={}),e=e||{},"cores"in w&&!e.update)return t(null,w.cores);if(typeof navigator<"u"&&"hardwareConcurrency"in navigator&&navigator.hardwareConcurrency>0)return w.cores=navigator.hardwareConcurrency,t(null,w.cores);if(typeof Worker>"u")return w.cores=1,t(null,w.cores);if(typeof Blob>"u")return w.cores=2,t(null,w.cores);var a=URL.createObjectURL(new Blob(["(",function(){self.addEventListener("message",function(i){var o=Date.now(),c=o+4;self.postMessage({st:o,et:c})})}.toString(),")()"],{type:"application/javascript"}));r([],5,16);function r(i,o,c){if(o===0){var l=Math.floor(i.reduce(function(u,p){return u+p},0)/i.length);return w.cores=Math.max(1,l),URL.revokeObjectURL(a),t(null,w.cores)}n(c,function(u,p){i.push(s(c,p)),r(i,o-1,c)})}function n(i,o){for(var c=[],l=[],u=0;u<i;++u){var p=new Worker(a);p.addEventListener("message",function(f){if(l.push(f.data),l.length===i){for(var x=0;x<i;++x)c[x].terminate();o(null,l)}}),c.push(p)}for(var u=0;u<i;++u)c[u].postMessage(u)}function s(i,o){for(var c=[],l=0;l<i;++l)for(var u=o[l],p=c[l]=[],f=0;f<i;++f)if(l!==f){var x=o[f];(u.st>x.st&&u.st<x.et||x.st>u.st&&x.st<u.et)&&p.push(f)}return c.reduce(function(m,y){return Math.max(m,y.length)},0)}};var qe=te;qe.cipher=qe.cipher||{},qe.cipher.algorithms=qe.cipher.algorithms||{},qe.cipher.createCipher=function(e,t){var a=e;if(typeof a=="string"&&(a=qe.cipher.getAlgorithm(a),a&&(a=a())),!a)throw new Error("Unsupported algorithm: "+e);return new qe.cipher.BlockCipher({algorithm:a,key:t,decrypt:!1})},qe.cipher.createDecipher=function(e,t){var a=e;if(typeof a=="string"&&(a=qe.cipher.getAlgorithm(a),a&&(a=a())),!a)throw new Error("Unsupported algorithm: "+e);return new qe.cipher.BlockCipher({algorithm:a,key:t,decrypt:!0})},qe.cipher.registerAlgorithm=function(e,t){e=e.toUpperCase(),qe.cipher.algorithms[e]=t},qe.cipher.getAlgorithm=function(e){return e=e.toUpperCase(),e in qe.cipher.algorithms?qe.cipher.algorithms[e]:null};var Uu=qe.cipher.BlockCipher=function(e){this.algorithm=e.algorithm,this.mode=this.algorithm.mode,this.blockSize=this.mode.blockSize,this._finish=!1,this._input=null,this.output=null,this._op=e.decrypt?this.mode.decrypt:this.mode.encrypt,this._decrypt=e.decrypt,this.algorithm.initialize(e)};Uu.prototype.start=function(e){e=e||{};var t={};for(var a in e)t[a]=e[a];t.decrypt=this._decrypt,this._finish=!1,this._input=qe.util.createBuffer(),this.output=e.output||qe.util.createBuffer(),this.mode.start(t)},Uu.prototype.update=function(e){for(e&&this._input.putBuffer(e);!this._op.call(this.mode,this._input,this.output,this._finish)&&!this._finish;);this._input.compact()},Uu.prototype.finish=function(e){e&&(this.mode.name==="ECB"||this.mode.name==="CBC")&&(this.mode.pad=function(a){return e(this.blockSize,a,!1)},this.mode.unpad=function(a){return e(this.blockSize,a,!0)});var t={};return t.decrypt=this._decrypt,t.overflow=this._input.length()%this.blockSize,!(!this._decrypt&&this.mode.pad&&!this.mode.pad(this._input,t)||(this._finish=!0,this.update(),this._decrypt&&this.mode.unpad&&!this.mode.unpad(this.output,t))||this.mode.afterFinish&&!this.mode.afterFinish(this.output,t))};var je=te;je.cipher=je.cipher||{};var ie=je.cipher.modes=je.cipher.modes||{};ie.ecb=function(e){e=e||{},this.name="ECB",this.cipher=e.cipher,this.blockSize=e.blockSize||16,this._ints=this.blockSize/4,this._inBlock=new Array(this._ints),this._outBlock=new Array(this._ints)},ie.ecb.prototype.start=function(e){},ie.ecb.prototype.encrypt=function(e,t,a){if(e.length()<this.blockSize&&!(a&&e.length()>0))return!0;for(var r=0;r<this._ints;++r)this._inBlock[r]=e.getInt32();this.cipher.encrypt(this._inBlock,this._outBlock);for(var r=0;r<this._ints;++r)t.putInt32(this._outBlock[r])},ie.ecb.prototype.decrypt=function(e,t,a){if(e.length()<this.blockSize&&!(a&&e.length()>0))return!0;for(var r=0;r<this._ints;++r)this._inBlock[r]=e.getInt32();this.cipher.decrypt(this._inBlock,this._outBlock);for(var r=0;r<this._ints;++r)t.putInt32(this._outBlock[r])},ie.ecb.prototype.pad=function(e,t){var a=e.length()===this.blockSize?this.blockSize:this.blockSize-e.length();return e.fillWithByte(a,a),!0},ie.ecb.prototype.unpad=function(e,t){if(t.overflow>0)return!1;var a=e.length(),r=e.at(a-1);return r>this.blockSize<<2?!1:(e.truncate(r),!0)},ie.cbc=function(e){e=e||{},this.name="CBC",this.cipher=e.cipher,this.blockSize=e.blockSize||16,this._ints=this.blockSize/4,this._inBlock=new Array(this._ints),this._outBlock=new Array(this._ints)},ie.cbc.prototype.start=function(e){if(e.iv===null){if(!this._prev)throw new Error("Invalid IV parameter.");this._iv=this._prev.slice(0)}else if("iv"in e)this._iv=Gc(e.iv,this.blockSize),this._prev=this._iv.slice(0);else throw new Error("Invalid IV parameter.")},ie.cbc.prototype.encrypt=function(e,t,a){if(e.length()<this.blockSize&&!(a&&e.length()>0))return!0;for(var r=0;r<this._ints;++r)this._inBlock[r]=this._prev[r]^e.getInt32();this.cipher.encrypt(this._inBlock,this._outBlock);for(var r=0;r<this._ints;++r)t.putInt32(this._outBlock[r]);this._prev=this._outBlock},ie.cbc.prototype.decrypt=function(e,t,a){if(e.length()<this.blockSize&&!(a&&e.length()>0))return!0;for(var r=0;r<this._ints;++r)this._inBlock[r]=e.getInt32();this.cipher.decrypt(this._inBlock,this._outBlock);for(var r=0;r<this._ints;++r)t.putInt32(this._prev[r]^this._outBlock[r]);this._prev=this._inBlock.slice(0)},ie.cbc.prototype.pad=function(e,t){var a=e.length()===this.blockSize?this.blockSize:this.blockSize-e.length();return e.fillWithByte(a,a),!0},ie.cbc.prototype.unpad=function(e,t){if(t.overflow>0)return!1;var a=e.length(),r=e.at(a-1);return r>this.blockSize<<2?!1:(e.truncate(r),!0)},ie.cfb=function(e){e=e||{},this.name="CFB",this.cipher=e.cipher,this.blockSize=e.blockSize||16,this._ints=this.blockSize/4,this._inBlock=null,this._outBlock=new Array(this._ints),this._partialBlock=new Array(this._ints),this._partialOutput=je.util.createBuffer(),this._partialBytes=0},ie.cfb.prototype.start=function(e){if(!("iv"in e))throw new Error("Invalid IV parameter.");this._iv=Gc(e.iv,this.blockSize),this._inBlock=this._iv.slice(0),this._partialBytes=0},ie.cfb.prototype.encrypt=function(e,t,a){var r=e.length();if(r===0)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),this._partialBytes===0&&r>=this.blockSize){for(var n=0;n<this._ints;++n)this._inBlock[n]=e.getInt32()^this._outBlock[n],t.putInt32(this._inBlock[n]);return}var s=(this.blockSize-r)%this.blockSize;s>0&&(s=this.blockSize-s),this._partialOutput.clear();for(var n=0;n<this._ints;++n)this._partialBlock[n]=e.getInt32()^this._outBlock[n],this._partialOutput.putInt32(this._partialBlock[n]);if(s>0)e.read-=this.blockSize;else for(var n=0;n<this._ints;++n)this._inBlock[n]=this._partialBlock[n];if(this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),s>0&&!a)return t.putBytes(this._partialOutput.getBytes(s-this._partialBytes)),this._partialBytes=s,!0;t.putBytes(this._partialOutput.getBytes(r-this._partialBytes)),this._partialBytes=0},ie.cfb.prototype.decrypt=function(e,t,a){var r=e.length();if(r===0)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),this._partialBytes===0&&r>=this.blockSize){for(var n=0;n<this._ints;++n)this._inBlock[n]=e.getInt32(),t.putInt32(this._inBlock[n]^this._outBlock[n]);return}var s=(this.blockSize-r)%this.blockSize;s>0&&(s=this.blockSize-s),this._partialOutput.clear();for(var n=0;n<this._ints;++n)this._partialBlock[n]=e.getInt32(),this._partialOutput.putInt32(this._partialBlock[n]^this._outBlock[n]);if(s>0)e.read-=this.blockSize;else for(var n=0;n<this._ints;++n)this._inBlock[n]=this._partialBlock[n];if(this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),s>0&&!a)return t.putBytes(this._partialOutput.getBytes(s-this._partialBytes)),this._partialBytes=s,!0;t.putBytes(this._partialOutput.getBytes(r-this._partialBytes)),this._partialBytes=0},ie.ofb=function(e){e=e||{},this.name="OFB",this.cipher=e.cipher,this.blockSize=e.blockSize||16,this._ints=this.blockSize/4,this._inBlock=null,this._outBlock=new Array(this._ints),this._partialOutput=je.util.createBuffer(),this._partialBytes=0},ie.ofb.prototype.start=function(e){if(!("iv"in e))throw new Error("Invalid IV parameter.");this._iv=Gc(e.iv,this.blockSize),this._inBlock=this._iv.slice(0),this._partialBytes=0},ie.ofb.prototype.encrypt=function(e,t,a){var r=e.length();if(e.length()===0)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),this._partialBytes===0&&r>=this.blockSize){for(var n=0;n<this._ints;++n)t.putInt32(e.getInt32()^this._outBlock[n]),this._inBlock[n]=this._outBlock[n];return}var s=(this.blockSize-r)%this.blockSize;s>0&&(s=this.blockSize-s),this._partialOutput.clear();for(var n=0;n<this._ints;++n)this._partialOutput.putInt32(e.getInt32()^this._outBlock[n]);if(s>0)e.read-=this.blockSize;else for(var n=0;n<this._ints;++n)this._inBlock[n]=this._outBlock[n];if(this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),s>0&&!a)return t.putBytes(this._partialOutput.getBytes(s-this._partialBytes)),this._partialBytes=s,!0;t.putBytes(this._partialOutput.getBytes(r-this._partialBytes)),this._partialBytes=0},ie.ofb.prototype.decrypt=ie.ofb.prototype.encrypt,ie.ctr=function(e){e=e||{},this.name="CTR",this.cipher=e.cipher,this.blockSize=e.blockSize||16,this._ints=this.blockSize/4,this._inBlock=null,this._outBlock=new Array(this._ints),this._partialOutput=je.util.createBuffer(),this._partialBytes=0},ie.ctr.prototype.start=function(e){if(!("iv"in e))throw new Error("Invalid IV parameter.");this._iv=Gc(e.iv,this.blockSize),this._inBlock=this._iv.slice(0),this._partialBytes=0},ie.ctr.prototype.encrypt=function(e,t,a){var r=e.length();if(r===0)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),this._partialBytes===0&&r>=this.blockSize)for(var n=0;n<this._ints;++n)t.putInt32(e.getInt32()^this._outBlock[n]);else{var s=(this.blockSize-r)%this.blockSize;s>0&&(s=this.blockSize-s),this._partialOutput.clear();for(var n=0;n<this._ints;++n)this._partialOutput.putInt32(e.getInt32()^this._outBlock[n]);if(s>0&&(e.read-=this.blockSize),this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),s>0&&!a)return t.putBytes(this._partialOutput.getBytes(s-this._partialBytes)),this._partialBytes=s,!0;t.putBytes(this._partialOutput.getBytes(r-this._partialBytes)),this._partialBytes=0}Qc(this._inBlock)},ie.ctr.prototype.decrypt=ie.ctr.prototype.encrypt,ie.gcm=function(e){e=e||{},this.name="GCM",this.cipher=e.cipher,this.blockSize=e.blockSize||16,this._ints=this.blockSize/4,this._inBlock=new Array(this._ints),this._outBlock=new Array(this._ints),this._partialOutput=je.util.createBuffer(),this._partialBytes=0,this._R=3774873600},ie.gcm.prototype.start=function(e){if(!("iv"in e))throw new Error("Invalid IV parameter.");var t=je.util.createBuffer(e.iv);this._cipherLength=0;var a;if("additionalData"in e?a=je.util.createBuffer(e.additionalData):a=je.util.createBuffer(),"tagLength"in e?this._tagLength=e.tagLength:this._tagLength=128,this._tag=null,e.decrypt&&(this._tag=je.util.createBuffer(e.tag).getBytes(),this._tag.length!==this._tagLength/8))throw new Error("Authentication tag does not match tag length.");this._hashBlock=new Array(this._ints),this.tag=null,this._hashSubkey=new Array(this._ints),this.cipher.encrypt([0,0,0,0],this._hashSubkey),this.componentBits=4,this._m=this.generateHashTable(this._hashSubkey,this.componentBits);var r=t.length();if(r===12)this._j0=[t.getInt32(),t.getInt32(),t.getInt32(),1];else{for(this._j0=[0,0,0,0];t.length()>0;)this._j0=this.ghash(this._hashSubkey,this._j0,[t.getInt32(),t.getInt32(),t.getInt32(),t.getInt32()]);this._j0=this.ghash(this._hashSubkey,this._j0,[0,0].concat(Du(r*8)))}this._inBlock=this._j0.slice(0),Qc(this._inBlock),this._partialBytes=0,a=je.util.createBuffer(a),this._aDataLength=Du(a.length()*8);var n=a.length()%this.blockSize;for(n&&a.fillWithByte(0,this.blockSize-n),this._s=[0,0,0,0];a.length()>0;)this._s=this.ghash(this._hashSubkey,this._s,[a.getInt32(),a.getInt32(),a.getInt32(),a.getInt32()])},ie.gcm.prototype.encrypt=function(e,t,a){var r=e.length();if(r===0)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),this._partialBytes===0&&r>=this.blockSize){for(var n=0;n<this._ints;++n)t.putInt32(this._outBlock[n]^=e.getInt32());this._cipherLength+=this.blockSize}else{var s=(this.blockSize-r)%this.blockSize;s>0&&(s=this.blockSize-s),this._partialOutput.clear();for(var n=0;n<this._ints;++n)this._partialOutput.putInt32(e.getInt32()^this._outBlock[n]);if(s<=0||a){if(a){var i=r%this.blockSize;this._cipherLength+=i,this._partialOutput.truncate(this.blockSize-i)}else this._cipherLength+=this.blockSize;for(var n=0;n<this._ints;++n)this._outBlock[n]=this._partialOutput.getInt32();this._partialOutput.read-=this.blockSize}if(this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),s>0&&!a)return e.read-=this.blockSize,t.putBytes(this._partialOutput.getBytes(s-this._partialBytes)),this._partialBytes=s,!0;t.putBytes(this._partialOutput.getBytes(r-this._partialBytes)),this._partialBytes=0}this._s=this.ghash(this._hashSubkey,this._s,this._outBlock),Qc(this._inBlock)},ie.gcm.prototype.decrypt=function(e,t,a){var r=e.length();if(r<this.blockSize&&!(a&&r>0))return!0;this.cipher.encrypt(this._inBlock,this._outBlock),Qc(this._inBlock),this._hashBlock[0]=e.getInt32(),this._hashBlock[1]=e.getInt32(),this._hashBlock[2]=e.getInt32(),this._hashBlock[3]=e.getInt32(),this._s=this.ghash(this._hashSubkey,this._s,this._hashBlock);for(var n=0;n<this._ints;++n)t.putInt32(this._outBlock[n]^this._hashBlock[n]);r<this.blockSize?this._cipherLength+=r%this.blockSize:this._cipherLength+=this.blockSize},ie.gcm.prototype.afterFinish=function(e,t){var a=!0;t.decrypt&&t.overflow&&e.truncate(this.blockSize-t.overflow),this.tag=je.util.createBuffer();var r=this._aDataLength.concat(Du(this._cipherLength*8));this._s=this.ghash(this._hashSubkey,this._s,r);var n=[];this.cipher.encrypt(this._j0,n);for(var s=0;s<this._ints;++s)this.tag.putInt32(this._s[s]^n[s]);return this.tag.truncate(this.tag.length()%(this._tagLength/8)),t.decrypt&&this.tag.bytes()!==this._tag&&(a=!1),a},ie.gcm.prototype.multiply=function(e,t){for(var a=[0,0,0,0],r=t.slice(0),n=0;n<128;++n){var s=e[n/32|0]&1<<31-n%32;s&&(a[0]^=r[0],a[1]^=r[1],a[2]^=r[2],a[3]^=r[3]),this.pow(r,r)}return a},ie.gcm.prototype.pow=function(e,t){for(var a=e[3]&1,r=3;r>0;--r)t[r]=e[r]>>>1|(e[r-1]&1)<<31;t[0]=e[0]>>>1,a&&(t[0]^=this._R)},ie.gcm.prototype.tableMultiply=function(e){for(var t=[0,0,0,0],a=0;a<32;++a){var r=a/8|0,n=e[r]>>>(7-a%8)*4&15,s=this._m[a][n];t[0]^=s[0],t[1]^=s[1],t[2]^=s[2],t[3]^=s[3]}return t},ie.gcm.prototype.ghash=function(e,t,a){return t[0]^=a[0],t[1]^=a[1],t[2]^=a[2],t[3]^=a[3],this.tableMultiply(t)},ie.gcm.prototype.generateHashTable=function(e,t){for(var a=8/t,r=4*a,n=16*a,s=new Array(n),i=0;i<n;++i){var o=[0,0,0,0],c=i/r|0,l=(r-1-i%r)*t;o[c]=1<<t-1<<l,s[i]=this.generateSubHashTable(this.multiply(o,e),t)}return s},ie.gcm.prototype.generateSubHashTable=function(e,t){var a=1<<t,r=a>>>1,n=new Array(a);n[r]=e.slice(0);for(var s=r>>>1;s>0;)this.pow(n[2*s],n[s]=[]),s>>=1;for(s=2;s<r;){for(var i=1;i<s;++i){var o=n[s],c=n[i];n[s+i]=[o[0]^c[0],o[1]^c[1],o[2]^c[2],o[3]^c[3]]}s*=2}for(n[0]=[0,0,0,0],s=r+1;s<a;++s){var l=n[s^r];n[s]=[e[0]^l[0],e[1]^l[1],e[2]^l[2],e[3]^l[3]]}return n};function Gc(e,t){if(typeof e=="string"&&(e=je.util.createBuffer(e)),je.util.isArray(e)&&e.length>4){var a=e;e=je.util.createBuffer();for(var r=0;r<a.length;++r)e.putByte(a[r])}if(e.length()<t)throw new Error("Invalid IV length; got "+e.length()+" bytes and expected "+t+" bytes.");if(!je.util.isArray(e)){for(var n=[],s=t/4,r=0;r<s;++r)n.push(e.getInt32());e=n}return e}function Qc(e){e[e.length-1]=e[e.length-1]+1&4294967295}function Du(e){return[e/4294967296|0,e&4294967295]}var Te=te;Te.aes=Te.aes||{},Te.aes.startEncrypting=function(e,t,a,r){var n=Wc({key:e,output:a,decrypt:!1,mode:r});return n.start(t),n},Te.aes.createEncryptionCipher=function(e,t){return Wc({key:e,output:null,decrypt:!1,mode:t})},Te.aes.startDecrypting=function(e,t,a,r){var n=Wc({key:e,output:a,decrypt:!0,mode:r});return n.start(t),n},Te.aes.createDecryptionCipher=function(e,t){return Wc({key:e,output:null,decrypt:!0,mode:t})},Te.aes.Algorithm=function(e,t){Pu||qf();var a=this;a.name=e,a.mode=new t({blockSize:16,cipher:{encrypt:function(r,n){return Fu(a._w,r,n,!1)},decrypt:function(r,n){return Fu(a._w,r,n,!0)}}}),a._init=!1},Te.aes.Algorithm.prototype.initialize=function(e){if(!this._init){var t=e.key,a;if(typeof t=="string"&&(t.length===16||t.length===24||t.length===32))t=Te.util.createBuffer(t);else if(Te.util.isArray(t)&&(t.length===16||t.length===24||t.length===32)){a=t,t=Te.util.createBuffer();for(var r=0;r<a.length;++r)t.putByte(a[r])}if(!Te.util.isArray(t)){a=t,t=[];var n=a.length();if(n===16||n===24||n===32){n=n>>>2;for(var r=0;r<n;++r)t.push(a.getInt32())}}if(!Te.util.isArray(t)||!(t.length===4||t.length===6||t.length===8))throw new Error("Invalid key parameter.");var s=this.mode.name,i=["CFB","OFB","CTR","GCM"].indexOf(s)!==-1;this._w=jf(t,e.decrypt&&!i),this._init=!0}},Te.aes._expandKey=function(e,t){return Pu||qf(),jf(e,t)},Te.aes._updateBlock=Fu,Kr("AES-ECB",Te.cipher.modes.ecb),Kr("AES-CBC",Te.cipher.modes.cbc),Kr("AES-CFB",Te.cipher.modes.cfb),Kr("AES-OFB",Te.cipher.modes.ofb),Kr("AES-CTR",Te.cipher.modes.ctr),Kr("AES-GCM",Te.cipher.modes.gcm);function Kr(e,t){var a=function(){return new Te.aes.Algorithm(e,t)};Te.cipher.registerAlgorithm(e,a)}var Pu=!1,zr=4,lt,Ou,Vf,wr,Mt;function qf(){Pu=!0,Vf=[0,1,2,4,8,16,32,64,128,27,54];for(var e=new Array(256),t=0;t<128;++t)e[t]=t<<1,e[t+128]=t+128<<1^283;lt=new Array(256),Ou=new Array(256),wr=new Array(4),Mt=new Array(4);for(var t=0;t<4;++t)wr[t]=new Array(256),Mt[t]=new Array(256);for(var a=0,r=0,n,s,i,o,c,l,u,t=0;t<256;++t){o=r^r<<1^r<<2^r<<3^r<<4,o=o>>8^o&255^99,lt[a]=o,Ou[o]=a,c=e[o],n=e[a],s=e[n],i=e[s],l=c<<24^o<<16^o<<8^(o^c),u=(n^s^i)<<24^(a^i)<<16^(a^s^i)<<8^(a^n^i);for(var p=0;p<4;++p)wr[p][a]=l,Mt[p][o]=u,l=l<<24|l>>>8,u=u<<24|u>>>8;a===0?a=r=1:(a=n^e[e[e[n^i]]],r^=e[e[r]])}}function jf(e,t){for(var a=e.slice(0),r,n=1,s=a.length,i=s+6+1,o=zr*i,c=s;c<o;++c)r=a[c-1],c%s===0?(r=lt[r>>>16&255]<<24^lt[r>>>8&255]<<16^lt[r&255]<<8^lt[r>>>24]^Vf[n]<<24,n++):s>6&&c%s===4&&(r=lt[r>>>24]<<24^lt[r>>>16&255]<<16^lt[r>>>8&255]<<8^lt[r&255]),a[c]=a[c-s]^r;if(t){var l,u=Mt[0],p=Mt[1],f=Mt[2],x=Mt[3],m=a.slice(0);o=a.length;for(var c=0,y=o-zr;c<o;c+=zr,y-=zr)if(c===0||c===o-zr)m[c]=a[y],m[c+1]=a[y+3],m[c+2]=a[y+2],m[c+3]=a[y+1];else for(var b=0;b<zr;++b)l=a[y+b],m[c+(3&-b)]=u[lt[l>>>24]]^p[lt[l>>>16&255]]^f[lt[l>>>8&255]]^x[lt[l&255]];a=m}return a}function Fu(e,t,a,r){var n=e.length/4-1,s,i,o,c,l;r?(s=Mt[0],i=Mt[1],o=Mt[2],c=Mt[3],l=Ou):(s=wr[0],i=wr[1],o=wr[2],c=wr[3],l=lt);var u,p,f,x,m,y,b;u=t[0]^e[0],p=t[r?3:1]^e[1],f=t[2]^e[2],x=t[r?1:3]^e[3];for(var S=3,B=1;B<n;++B)m=s[u>>>24]^i[p>>>16&255]^o[f>>>8&255]^c[x&255]^e[++S],y=s[p>>>24]^i[f>>>16&255]^o[x>>>8&255]^c[u&255]^e[++S],b=s[f>>>24]^i[x>>>16&255]^o[u>>>8&255]^c[p&255]^e[++S],x=s[x>>>24]^i[u>>>16&255]^o[p>>>8&255]^c[f&255]^e[++S],u=m,p=y,f=b;a[0]=l[u>>>24]<<24^l[p>>>16&255]<<16^l[f>>>8&255]<<8^l[x&255]^e[++S],a[r?3:1]=l[p>>>24]<<24^l[f>>>16&255]<<16^l[x>>>8&255]<<8^l[u&255]^e[++S],a[2]=l[f>>>24]<<24^l[x>>>16&255]<<16^l[u>>>8&255]<<8^l[p&255]^e[++S],a[r?1:3]=l[x>>>24]<<24^l[u>>>16&255]<<16^l[p>>>8&255]<<8^l[f&255]^e[++S]}function Wc(e){e=e||{};var t=(e.mode||"CBC").toUpperCase(),a="AES-"+t,r;e.decrypt?r=Te.cipher.createDecipher(a,e.key):r=Te.cipher.createCipher(a,e.key);var n=r.start;return r.start=function(s,i){var o=null;i instanceof Te.util.ByteBuffer&&(o=i,i={}),i=i||{},i.output=o,i.iv=s,n.call(r,i)},r}var uc=te;uc.pki=uc.pki||{};var Mu=uc.pki.oids=uc.oids=uc.oids||{};function D(e,t){Mu[e]=t,Mu[t]=e}function Ee(e,t){Mu[e]=t}D("1.2.840.113549.1.1.1","rsaEncryption"),D("1.2.840.113549.1.1.4","md5WithRSAEncryption"),D("1.2.840.113549.1.1.5","sha1WithRSAEncryption"),D("1.2.840.113549.1.1.7","RSAES-OAEP"),D("1.2.840.113549.1.1.8","mgf1"),D("1.2.840.113549.1.1.9","pSpecified"),D("1.2.840.113549.1.1.10","RSASSA-PSS"),D("1.2.840.113549.1.1.11","sha256WithRSAEncryption"),D("1.2.840.113549.1.1.12","sha384WithRSAEncryption"),D("1.2.840.113549.1.1.13","sha512WithRSAEncryption"),D("1.3.101.112","EdDSA25519"),D("1.2.840.10040.4.3","dsa-with-sha1"),D("1.3.14.3.2.7","desCBC"),D("1.3.14.3.2.26","sha1"),D("1.3.14.3.2.29","sha1WithRSASignature"),D("2.16.840.1.101.3.4.2.1","sha256"),D("2.16.840.1.101.3.4.2.2","sha384"),D("2.16.840.1.101.3.4.2.3","sha512"),D("2.16.840.1.101.3.4.2.4","sha224"),D("2.16.840.1.101.3.4.2.5","sha512-224"),D("2.16.840.1.101.3.4.2.6","sha512-256"),D("1.2.840.113549.2.2","md2"),D("1.2.840.113549.2.5","md5"),D("1.2.840.113549.1.7.1","data"),D("1.2.840.113549.1.7.2","signedData"),D("1.2.840.113549.1.7.3","envelopedData"),D("1.2.840.113549.1.7.4","signedAndEnvelopedData"),D("1.2.840.113549.1.7.5","digestedData"),D("1.2.840.113549.1.7.6","encryptedData"),D("1.2.840.113549.1.9.1","emailAddress"),D("1.2.840.113549.1.9.2","unstructuredName"),D("1.2.840.113549.1.9.3","contentType"),D("1.2.840.113549.1.9.4","messageDigest"),D("1.2.840.113549.1.9.5","signingTime"),D("1.2.840.113549.1.9.6","counterSignature"),D("1.2.840.113549.1.9.7","challengePassword"),D("1.2.840.113549.1.9.8","unstructuredAddress"),D("1.2.840.113549.1.9.14","extensionRequest"),D("1.2.840.113549.1.9.20","friendlyName"),D("1.2.840.113549.1.9.21","localKeyId"),D("1.2.840.113549.1.9.22.1","x509Certificate"),D("1.2.840.113549.1.12.10.1.1","keyBag"),D("1.2.840.113549.1.12.10.1.2","pkcs8ShroudedKeyBag"),D("1.2.840.113549.1.12.10.1.3","certBag"),D("1.2.840.113549.1.12.10.1.4","crlBag"),D("1.2.840.113549.1.12.10.1.5","secretBag"),D("1.2.840.113549.1.12.10.1.6","safeContentsBag"),D("1.2.840.113549.1.5.13","pkcs5PBES2"),D("1.2.840.113549.1.5.12","pkcs5PBKDF2"),D("1.2.840.113549.1.12.1.1","pbeWithSHAAnd128BitRC4"),D("1.2.840.113549.1.12.1.2","pbeWithSHAAnd40BitRC4"),D("1.2.840.113549.1.12.1.3","pbeWithSHAAnd3-KeyTripleDES-CBC"),D("1.2.840.113549.1.12.1.4","pbeWithSHAAnd2-KeyTripleDES-CBC"),D("1.2.840.113549.1.12.1.5","pbeWithSHAAnd128BitRC2-CBC"),D("1.2.840.113549.1.12.1.6","pbewithSHAAnd40BitRC2-CBC"),D("1.2.840.113549.2.7","hmacWithSHA1"),D("1.2.840.113549.2.8","hmacWithSHA224"),D("1.2.840.113549.2.9","hmacWithSHA256"),D("1.2.840.113549.2.10","hmacWithSHA384"),D("1.2.840.113549.2.11","hmacWithSHA512"),D("1.2.840.113549.3.7","des-EDE3-CBC"),D("2.16.840.1.101.3.4.1.2","aes128-CBC"),D("2.16.840.1.101.3.4.1.22","aes192-CBC"),D("2.16.840.1.101.3.4.1.42","aes256-CBC"),D("2.5.4.3","commonName"),D("2.5.4.4","surname"),D("2.5.4.5","serialNumber"),D("2.5.4.6","countryName"),D("2.5.4.7","localityName"),D("2.5.4.8","stateOrProvinceName"),D("2.5.4.9","streetAddress"),D("2.5.4.10","organizationName"),D("2.5.4.11","organizationalUnitName"),D("2.5.4.12","title"),D("2.5.4.13","description"),D("2.5.4.15","businessCategory"),D("2.5.4.17","postalCode"),D("2.5.4.42","givenName"),D("2.5.4.65","pseudonym"),D("1.3.6.1.4.1.311.60.2.1.2","jurisdictionOfIncorporationStateOrProvinceName"),D("1.3.6.1.4.1.311.60.2.1.3","jurisdictionOfIncorporationCountryName"),D("2.16.840.1.113730.1.1","nsCertType"),D("2.16.840.1.113730.1.13","nsComment"),Ee("2.5.29.1","authorityKeyIdentifier"),Ee("2.5.29.2","keyAttributes"),Ee("2.5.29.3","certificatePolicies"),Ee("2.5.29.4","keyUsageRestriction"),Ee("2.5.29.5","policyMapping"),Ee("2.5.29.6","subtreesConstraint"),Ee("2.5.29.7","subjectAltName"),Ee("2.5.29.8","issuerAltName"),Ee("2.5.29.9","subjectDirectoryAttributes"),Ee("2.5.29.10","basicConstraints"),Ee("2.5.29.11","nameConstraints"),Ee("2.5.29.12","policyConstraints"),Ee("2.5.29.13","basicConstraints"),D("2.5.29.14","subjectKeyIdentifier"),D("2.5.29.15","keyUsage"),Ee("2.5.29.16","privateKeyUsagePeriod"),D("2.5.29.17","subjectAltName"),D("2.5.29.18","issuerAltName"),D("2.5.29.19","basicConstraints"),Ee("2.5.29.20","cRLNumber"),Ee("2.5.29.21","cRLReason"),Ee("2.5.29.22","expirationDate"),Ee("2.5.29.23","instructionCode"),Ee("2.5.29.24","invalidityDate"),Ee("2.5.29.25","cRLDistributionPoints"),Ee("2.5.29.26","issuingDistributionPoint"),Ee("2.5.29.27","deltaCRLIndicator"),Ee("2.5.29.28","issuingDistributionPoint"),Ee("2.5.29.29","certificateIssuer"),Ee("2.5.29.30","nameConstraints"),D("2.5.29.31","cRLDistributionPoints"),D("2.5.29.32","certificatePolicies"),Ee("2.5.29.33","policyMappings"),Ee("2.5.29.34","policyConstraints"),D("2.5.29.35","authorityKeyIdentifier"),Ee("2.5.29.36","policyConstraints"),D("2.5.29.37","extKeyUsage"),Ee("2.5.29.46","freshestCRL"),Ee("2.5.29.54","inhibitAnyPolicy"),D("1.3.6.1.4.1.11129.2.4.2","timestampList"),D("1.3.6.1.5.5.7.1.1","authorityInfoAccess"),D("1.3.6.1.5.5.7.3.1","serverAuth"),D("1.3.6.1.5.5.7.3.2","clientAuth"),D("1.3.6.1.5.5.7.3.3","codeSigning"),D("1.3.6.1.5.5.7.3.4","emailProtection"),D("1.3.6.1.5.5.7.3.8","timeStamping");var Ie=te,q=Ie.asn1=Ie.asn1||{};q.Class={UNIVERSAL:0,APPLICATION:64,CONTEXT_SPECIFIC:128,PRIVATE:192},q.Type={NONE:0,BOOLEAN:1,INTEGER:2,BITSTRING:3,OCTETSTRING:4,NULL:5,OID:6,ODESC:7,EXTERNAL:8,REAL:9,ENUMERATED:10,EMBEDDED:11,UTF8:12,ROID:13,SEQUENCE:16,SET:17,PRINTABLESTRING:19,IA5STRING:22,UTCTIME:23,GENERALIZEDTIME:24,BMPSTRING:30},q.maxDepth=256,q.create=function(e,t,a,r,n){if(Ie.util.isArray(r)){for(var s=[],i=0;i<r.length;++i)r[i]!==void 0&&s.push(r[i]);r=s}var o={tagClass:e,type:t,constructed:a,composed:a||Ie.util.isArray(r),value:r};return n&&"bitStringContents"in n&&(o.bitStringContents=n.bitStringContents,o.original=q.copy(o)),o},q.copy=function(e,t){var a;if(Ie.util.isArray(e)){a=[];for(var r=0;r<e.length;++r)a.push(q.copy(e[r],t));return a}return typeof e=="string"?e:(a={tagClass:e.tagClass,type:e.type,constructed:e.constructed,composed:e.composed,value:q.copy(e.value,t)},t&&!t.excludeBitStringContents&&(a.bitStringContents=e.bitStringContents),a)},q.equals=function(e,t,a){if(Ie.util.isArray(e)){if(!Ie.util.isArray(t)||e.length!==t.length)return!1;for(var r=0;r<e.length;++r)if(!q.equals(e[r],t[r]))return!1;return!0}if(typeof e!=typeof t)return!1;if(typeof e=="string")return e===t;var n=e.tagClass===t.tagClass&&e.type===t.type&&e.constructed===t.constructed&&e.composed===t.composed&&q.equals(e.value,t.value);return a&&a.includeBitStringContents&&(n=n&&e.bitStringContents===t.bitStringContents),n},q.getBerValueLength=function(e){var t=e.getByte();if(t!==128){var a,r=t&128;return r?a=e.getInt((t&127)<<3):a=t,a}};function pc(e,t,a){if(a>t){var r=new Error("Too few bytes to parse DER.");throw r.available=e.length(),r.remaining=t,r.requested=a,r}}var V1=function(e,t){var a=e.getByte();if(t--,a!==128){var r,n=a&128;if(!n)r=a;else{var s=a&127;pc(e,t,s),r=e.getInt(s<<3)}if(r<0)throw new Error("Negative length: "+r);return r}};q.fromDer=function(e,t){t===void 0&&(t={strict:!0,parseAllBytes:!0,decodeBitStrings:!0}),typeof t=="boolean"&&(t={strict:t,parseAllBytes:!0,decodeBitStrings:!0}),"strict"in t||(t.strict=!0),"parseAllBytes"in t||(t.parseAllBytes=!0),"decodeBitStrings"in t||(t.decodeBitStrings=!0),"maxDepth"in t||(t.maxDepth=q.maxDepth),typeof e=="string"&&(e=Ie.util.createBuffer(e));var a=e.length(),r=Yc(e,e.length(),0,t);if(t.parseAllBytes&&e.length()!==0){var n=new Error("Unparsed DER bytes remain after ASN.1 parsing.");throw n.byteCount=a,n.remaining=e.length(),n}return r};function Yc(e,t,a,r){if(a>=r.maxDepth)throw new Error("ASN.1 parsing error: Max depth exceeded.");var n;pc(e,t,2);var s=e.getByte();t--;var i=s&192,o=s&31;n=e.length();var c=V1(e,t);if(t-=n-e.length(),c!==void 0&&c>t){if(r.strict){var l=new Error("Too few bytes to read ASN.1 value.");throw l.available=e.length(),l.remaining=t,l.requested=c,l}c=t}var u,p,f=(s&32)===32;if(f)if(u=[],c===void 0)for(;;){if(pc(e,t,2),e.bytes(2)==="\0\0"){e.getBytes(2),t-=2;break}n=e.length(),u.push(Yc(e,t,a+1,r)),t-=n-e.length()}else for(;c>0;)n=e.length(),u.push(Yc(e,c,a+1,r)),t-=n-e.length(),c-=n-e.length();if(u===void 0&&i===q.Class.UNIVERSAL&&o===q.Type.BITSTRING&&(p=e.bytes(c)),u===void 0&&r.decodeBitStrings&&i===q.Class.UNIVERSAL&&o===q.Type.BITSTRING&&c>1){var x=e.read,m=t,y=0;if(o===q.Type.BITSTRING&&(pc(e,t,1),y=e.getByte(),t--),y===0)try{n=e.length();var b={strict:!0,decodeBitStrings:!0},S=Yc(e,t,a+1,b),B=n-e.length();t-=B,o==q.Type.BITSTRING&&B++;var _=S.tagClass;B===c&&(_===q.Class.UNIVERSAL||_===q.Class.CONTEXT_SPECIFIC)&&(u=[S])}catch{}u===void 0&&(e.read=x,t=m)}if(u===void 0){if(c===void 0){if(r.strict)throw new Error("Non-constructed ASN.1 object of indefinite length.");c=t}if(o===q.Type.BMPSTRING)for(u="";c>0;c-=2)pc(e,t,2),u+=String.fromCharCode(e.getInt16()),t-=2;else u=e.getBytes(c),t-=c}var P=p===void 0?null:{bitStringContents:p};return q.create(i,o,f,u,P)}q.toDer=function(e){var t=Ie.util.createBuffer(),a=e.tagClass|e.type,r=Ie.util.createBuffer(),n=!1;if("bitStringContents"in e&&(n=!0,e.original&&(n=q.equals(e,e.original))),n)r.putBytes(e.bitStringContents);else if(e.composed){e.constructed?a|=32:r.putByte(0);for(var s=0;s<e.value.length;++s)e.value[s]!==void 0&&r.putBuffer(q.toDer(e.value[s]))}else if(e.type===q.Type.BMPSTRING)for(var s=0;s<e.value.length;++s)r.putInt16(e.value.charCodeAt(s));else e.type===q.Type.INTEGER&&e.value.length>1&&(e.value.charCodeAt(0)===0&&(e.value.charCodeAt(1)&128)===0||e.value.charCodeAt(0)===255&&(e.value.charCodeAt(1)&128)===128)?r.putBytes(e.value.substr(1)):r.putBytes(e.value);if(t.putByte(a),r.length()<=127)t.putByte(r.length()&127);else{var i=r.length(),o="";do o+=String.fromCharCode(i&255),i=i>>>8;while(i>0);t.putByte(o.length|128);for(var s=o.length-1;s>=0;--s)t.putByte(o.charCodeAt(s))}return t.putBuffer(r),t},q.oidToDer=function(e){var t=e.split("."),a=Ie.util.createBuffer();a.putByte(40*parseInt(t[0],10)+parseInt(t[1],10));for(var r,n,s,i,o=2;o<t.length;++o){if(r=!0,n=[],s=parseInt(t[o],10),s>4294967295)throw new Error("OID value too large; max is 32-bits.");do i=s&127,s=s>>>7,r||(i|=128),n.push(i),r=!1;while(s>0);for(var c=n.length-1;c>=0;--c)a.putByte(n[c])}return a},q.derToOid=function(e){var t;typeof e=="string"&&(e=Ie.util.createBuffer(e));var a=e.getByte();t=Math.floor(a/40)+"."+a%40;for(var r=0;e.length()>0;){if(r>70368744177663)throw new Error("OID value too large; max is 53-bits.");a=e.getByte(),r=r*128,a&128?r+=a&127:(t+="."+(r+a),r=0)}return t},q.utcTimeToDate=function(e){var t=new Date,a=parseInt(e.substr(0,2),10);a=a>=50?1900+a:2e3+a;var r=parseInt(e.substr(2,2),10)-1,n=parseInt(e.substr(4,2),10),s=parseInt(e.substr(6,2),10),i=parseInt(e.substr(8,2),10),o=0;if(e.length>11){var c=e.charAt(10),l=10;c!=="+"&&c!=="-"&&(o=parseInt(e.substr(10,2),10),l+=2)}if(t.setUTCFullYear(a,r,n),t.setUTCHours(s,i,o,0),l&&(c=e.charAt(l),c==="+"||c==="-")){var u=parseInt(e.substr(l+1,2),10),p=parseInt(e.substr(l+4,2),10),f=u*60+p;f*=6e4,c==="+"?t.setTime(+t-f):t.setTime(+t+f)}return t},q.generalizedTimeToDate=function(e){var t=new Date,a=parseInt(e.substr(0,4),10),r=parseInt(e.substr(4,2),10)-1,n=parseInt(e.substr(6,2),10),s=parseInt(e.substr(8,2),10),i=parseInt(e.substr(10,2),10),o=parseInt(e.substr(12,2),10),c=0,l=0,u=!1;e.charAt(e.length-1)==="Z"&&(u=!0);var p=e.length-5,f=e.charAt(p);if(f==="+"||f==="-"){var x=parseInt(e.substr(p+1,2),10),m=parseInt(e.substr(p+4,2),10);l=x*60+m,l*=6e4,f==="+"&&(l*=-1),u=!0}return e.charAt(14)==="."&&(c=parseFloat(e.substr(14),10)*1e3),u?(t.setUTCFullYear(a,r,n),t.setUTCHours(s,i,o,c),t.setTime(+t+l)):(t.setFullYear(a,r,n),t.setHours(s,i,o,c)),t},q.dateToUtcTime=function(e){if(typeof e=="string")return e;var t="",a=[];a.push((""+e.getUTCFullYear()).substr(2)),a.push(""+(e.getUTCMonth()+1)),a.push(""+e.getUTCDate()),a.push(""+e.getUTCHours()),a.push(""+e.getUTCMinutes()),a.push(""+e.getUTCSeconds());for(var r=0;r<a.length;++r)a[r].length<2&&(t+="0"),t+=a[r];return t+="Z",t},q.dateToGeneralizedTime=function(e){if(typeof e=="string")return e;var t="",a=[];a.push(""+e.getUTCFullYear()),a.push(""+(e.getUTCMonth()+1)),a.push(""+e.getUTCDate()),a.push(""+e.getUTCHours()),a.push(""+e.getUTCMinutes()),a.push(""+e.getUTCSeconds());for(var r=0;r<a.length;++r)a[r].length<2&&(t+="0"),t+=a[r];return t+="Z",t},q.integerToDer=function(e){var t=Ie.util.createBuffer();if(e>=-128&&e<128)return t.putSignedInt(e,8);if(e>=-32768&&e<32768)return t.putSignedInt(e,16);if(e>=-8388608&&e<8388608)return t.putSignedInt(e,24);if(e>=-2147483648&&e<2147483648)return t.putSignedInt(e,32);var a=new Error("Integer too large; max is 32-bits.");throw a.integer=e,a},q.derToInteger=function(e){typeof e=="string"&&(e=Ie.util.createBuffer(e));var t=e.length()*8;if(t>32)throw new Error("Integer too large; max is 32-bits.");return e.getSignedInt(t)},q.validate=function(e,t,a,r){var n=!1;if((e.tagClass===t.tagClass||typeof t.tagClass>"u")&&(e.type===t.type||typeof t.type>"u"))if(e.constructed===t.constructed||typeof t.constructed>"u"){if(n=!0,t.value&&Ie.util.isArray(t.value))for(var s=0,i=0;n&&i<t.value.length;++i){var o=t.value[i];n=!!o.optional;var c=e.value[s];if(!c){o.optional||(n=!1,r&&r.push("["+t.name+'] Missing required element. Expected tag class "'+o.tagClass+'", type "'+o.type+'"'));continue}var l=typeof o.tagClass<"u"&&typeof o.type<"u";if(l&&(c.tagClass!==o.tagClass||c.type!==o.type))if(o.optional){n=!0;continue}else{n=!1,r&&r.push("["+t.name+"] Tag mismatch. Expected ("+o.tagClass+","+o.type+"), got ("+c.tagClass+","+c.type+")");break}var u=q.validate(c,o,a,r);if(u)++s,n=!0;else if(o.optional)n=!0;else{n=!1;break}}if(n&&a&&(t.capture&&(a[t.capture]=e.value),t.captureAsn1&&(a[t.captureAsn1]=e),t.captureBitStringContents&&"bitStringContents"in e&&(a[t.captureBitStringContents]=e.bitStringContents),t.captureBitStringValue&&"bitStringContents"in e))if(e.bitStringContents.length<2)a[t.captureBitStringValue]="";else{var p=e.bitStringContents.charCodeAt(0);if(p!==0)throw new Error("captureBitStringValue only supported for zero unused bits");a[t.captureBitStringValue]=e.bitStringContents.slice(1)}}else r&&r.push("["+t.name+'] Expected constructed "'+t.constructed+'", got "'+e.constructed+'"');else r&&(e.tagClass!==t.tagClass&&r.push("["+t.name+'] Expected tag class "'+t.tagClass+'", got "'+e.tagClass+'"'),e.type!==t.type&&r.push("["+t.name+'] Expected type "'+t.type+'", got "'+e.type+'"'));return n};var Kf=/[^\\u0000-\\u00ff]/;q.prettyPrint=function(e,t,a){var r="";t=t||0,a=a||2,t>0&&(r+=`
29
+ `);for(var n="",s=0;s<t*a;++s)n+=" ";switch(r+=n+"Tag: ",e.tagClass){case q.Class.UNIVERSAL:r+="Universal:";break;case q.Class.APPLICATION:r+="Application:";break;case q.Class.CONTEXT_SPECIFIC:r+="Context-Specific:";break;case q.Class.PRIVATE:r+="Private:";break}if(e.tagClass===q.Class.UNIVERSAL)switch(r+=e.type,e.type){case q.Type.NONE:r+=" (None)";break;case q.Type.BOOLEAN:r+=" (Boolean)";break;case q.Type.INTEGER:r+=" (Integer)";break;case q.Type.BITSTRING:r+=" (Bit string)";break;case q.Type.OCTETSTRING:r+=" (Octet string)";break;case q.Type.NULL:r+=" (Null)";break;case q.Type.OID:r+=" (Object Identifier)";break;case q.Type.ODESC:r+=" (Object Descriptor)";break;case q.Type.EXTERNAL:r+=" (External or Instance of)";break;case q.Type.REAL:r+=" (Real)";break;case q.Type.ENUMERATED:r+=" (Enumerated)";break;case q.Type.EMBEDDED:r+=" (Embedded PDV)";break;case q.Type.UTF8:r+=" (UTF8)";break;case q.Type.ROID:r+=" (Relative Object Identifier)";break;case q.Type.SEQUENCE:r+=" (Sequence)";break;case q.Type.SET:r+=" (Set)";break;case q.Type.PRINTABLESTRING:r+=" (Printable String)";break;case q.Type.IA5String:r+=" (IA5String (ASCII))";break;case q.Type.UTCTIME:r+=" (UTC time)";break;case q.Type.GENERALIZEDTIME:r+=" (Generalized time)";break;case q.Type.BMPSTRING:r+=" (BMP String)";break}else r+=e.type;if(r+=`
27
30
  `,r+=n+"Constructed: "+e.constructed+`
28
- `,e.composed){for(var i=0,o="",s=0;s<e.value.length;++s)e.value[s]!==void 0&&(i+=1,o+=V.prettyPrint(e.value[s],t+1,a),s+1<e.value.length&&(o+=","));r+=n+"Sub values: "+i+o}else{if(r+=n+"Value: ",e.type===V.Type.OID){var c=V.derToOid(e.value);r+=c,Ie.pki&&Ie.pki.oids&&c in Ie.pki.oids&&(r+=" ("+Ie.pki.oids[c]+") ")}if(e.type===V.Type.INTEGER)try{r+=V.derToInteger(e.value)}catch{r+="0x"+Ie.util.bytesToHex(e.value)}else if(e.type===V.Type.BITSTRING){if(e.value.length>1?r+="0x"+Ie.util.bytesToHex(e.value.slice(1)):r+="(none)",e.value.length>0){var l=e.value.charCodeAt(0);l==1?r+=" (1 unused bit shown)":l>1&&(r+=" ("+l+" unused bits shown)")}}else if(e.type===V.Type.OCTETSTRING)qf.test(e.value)||(r+="("+e.value+") "),r+="0x"+Ie.util.bytesToHex(e.value);else if(e.type===V.Type.UTF8)try{r+=Ie.util.decodeUtf8(e.value)}catch(u){if(u.message==="URI malformed")r+="0x"+Ie.util.bytesToHex(e.value)+" (malformed UTF8)";else throw u}else e.type===V.Type.PRINTABLESTRING||e.type===V.Type.IA5String?r+=e.value:qf.test(e.value)?r+="0x"+Ie.util.bytesToHex(e.value):e.value.length===0?r+="[null]":r+=e.value}return r};var Yc=ee;Yc.md=Yc.md||{},Yc.md.algorithms=Yc.md.algorithms||{};var Yt=ee,I1=Yt.hmac=Yt.hmac||{};I1.create=function(){var e=null,t=null,a=null,r=null,n={};return n.start=function(s,i){if(s!==null)if(typeof s=="string")if(s=s.toLowerCase(),s in Yt.md.algorithms)t=Yt.md.algorithms[s].create();else throw new Error('Unknown hash algorithm "'+s+'"');else t=s;if(i===null)i=e;else{if(typeof i=="string")i=Yt.util.createBuffer(i);else if(Yt.util.isArray(i)){var o=i;i=Yt.util.createBuffer();for(var c=0;c<o.length;++c)i.putByte(o[c])}var l=i.length();l>t.blockLength&&(t.start(),t.update(i.bytes()),i=t.digest()),a=Yt.util.createBuffer(),r=Yt.util.createBuffer(),l=i.length();for(var c=0;c<l;++c){var o=i.at(c);a.putByte(54^o),r.putByte(92^o)}if(l<t.blockLength)for(var o=t.blockLength-l,c=0;c<o;++c)a.putByte(54),r.putByte(92);e=i,a=a.bytes(),r=r.bytes()}t.start(),t.update(a)},n.update=function(s){t.update(s)},n.getMac=function(){var s=t.digest().bytes();return t.start(),t.update(r),t.update(s),t.digest()},n.digest=n.getMac,n};var jt=ee,jf=jt.md5=jt.md5||{};jt.md.md5=jt.md.algorithms.md5=jf,jf.create=function(){Kf||B1();var e=null,t=jt.util.createBuffer(),a=new Array(16),r={algorithm:"md5",blockLength:64,digestLength:16,messageLength:0,fullMessageLength:null,messageLengthSize:8};return r.start=function(){r.messageLength=0,r.fullMessageLength=r.messageLength64=[];for(var n=r.messageLengthSize/4,s=0;s<n;++s)r.fullMessageLength.push(0);return t=jt.util.createBuffer(),e={h0:1732584193,h1:4023233417,h2:2562383102,h3:271733878},r},r.start(),r.update=function(n,s){s==="utf8"&&(n=jt.util.encodeUtf8(n));var i=n.length;r.messageLength+=i,i=[i/4294967296>>>0,i>>>0];for(var o=r.fullMessageLength.length-1;o>=0;--o)r.fullMessageLength[o]+=i[1],i[1]=i[0]+(r.fullMessageLength[o]/4294967296>>>0),r.fullMessageLength[o]=r.fullMessageLength[o]>>>0,i[0]=i[1]/4294967296>>>0;return t.putBytes(n),zf(e,a,t),(t.read>2048||t.length()===0)&&t.compact(),r},r.digest=function(){var n=jt.util.createBuffer();n.putBytes(t.bytes());var s=r.fullMessageLength[r.fullMessageLength.length-1]+r.messageLengthSize,i=s&r.blockLength-1;n.putBytes(Fu.substr(0,r.blockLength-i));for(var o,c=0,l=r.fullMessageLength.length-1;l>=0;--l)o=r.fullMessageLength[l]*8+c,c=o/4294967296>>>0,n.putInt32Le(o>>>0);var u={h0:e.h0,h1:e.h1,h2:e.h2,h3:e.h3};zf(u,a,n);var p=jt.util.createBuffer();return p.putInt32Le(u.h0),p.putInt32Le(u.h1),p.putInt32Le(u.h2),p.putInt32Le(u.h3),p},r};var Fu=null,Jc=null,fc=null,$r=null,Kf=!1;function B1(){Fu="\x80",Fu+=jt.util.fillString("\0",64),Jc=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,1,6,11,0,5,10,15,4,9,14,3,8,13,2,7,12,5,8,11,14,1,4,7,10,13,0,3,6,9,12,15,2,0,7,14,5,12,3,10,1,8,15,6,13,4,11,2,9],fc=[7,12,17,22,7,12,17,22,7,12,17,22,7,12,17,22,5,9,14,20,5,9,14,20,5,9,14,20,5,9,14,20,4,11,16,23,4,11,16,23,4,11,16,23,4,11,16,23,6,10,15,21,6,10,15,21,6,10,15,21,6,10,15,21],$r=new Array(64);for(var e=0;e<64;++e)$r[e]=Math.floor(Math.abs(Math.sin(e+1))*4294967296);Kf=!0}function zf(e,t,a){for(var r,n,s,i,o,c,l,u,p=a.length();p>=64;){for(n=e.h0,s=e.h1,i=e.h2,o=e.h3,u=0;u<16;++u)t[u]=a.getInt32Le(),c=o^s&(i^o),r=n+c+$r[u]+t[u],l=fc[u],n=o,o=i,i=s,s+=r<<l|r>>>32-l;for(;u<32;++u)c=i^o&(s^i),r=n+c+$r[u]+t[Jc[u]],l=fc[u],n=o,o=i,i=s,s+=r<<l|r>>>32-l;for(;u<48;++u)c=s^i^o,r=n+c+$r[u]+t[Jc[u]],l=fc[u],n=o,o=i,i=s,s+=r<<l|r>>>32-l;for(;u<64;++u)c=i^(s|~o),r=n+c+$r[u]+t[Jc[u]],l=fc[u],n=o,o=i,i=s,s+=r<<l|r>>>32-l;e.h0=e.h0+n|0,e.h1=e.h1+s|0,e.h2=e.h2+i|0,e.h3=e.h3+o|0,p-=64}}var Zc=ee,Hf=Zc.pem=Zc.pem||{};Hf.encode=function(e,t){t=t||{};var a="-----BEGIN "+e.type+`-----\r
31
+ `,e.composed){for(var i=0,o="",s=0;s<e.value.length;++s)e.value[s]!==void 0&&(i+=1,o+=q.prettyPrint(e.value[s],t+1,a),s+1<e.value.length&&(o+=","));r+=n+"Sub values: "+i+o}else{if(r+=n+"Value: ",e.type===q.Type.OID){var c=q.derToOid(e.value);r+=c,Ie.pki&&Ie.pki.oids&&c in Ie.pki.oids&&(r+=" ("+Ie.pki.oids[c]+") ")}if(e.type===q.Type.INTEGER)try{r+=q.derToInteger(e.value)}catch{r+="0x"+Ie.util.bytesToHex(e.value)}else if(e.type===q.Type.BITSTRING){if(e.value.length>1?r+="0x"+Ie.util.bytesToHex(e.value.slice(1)):r+="(none)",e.value.length>0){var l=e.value.charCodeAt(0);l==1?r+=" (1 unused bit shown)":l>1&&(r+=" ("+l+" unused bits shown)")}}else if(e.type===q.Type.OCTETSTRING)Kf.test(e.value)||(r+="("+e.value+") "),r+="0x"+Ie.util.bytesToHex(e.value);else if(e.type===q.Type.UTF8)try{r+=Ie.util.decodeUtf8(e.value)}catch(u){if(u.message==="URI malformed")r+="0x"+Ie.util.bytesToHex(e.value)+" (malformed UTF8)";else throw u}else e.type===q.Type.PRINTABLESTRING||e.type===q.Type.IA5String?r+=e.value:Kf.test(e.value)?r+="0x"+Ie.util.bytesToHex(e.value):e.value.length===0?r+="[null]":r+=e.value}return r};var Xc=te;Xc.md=Xc.md||{},Xc.md.algorithms=Xc.md.algorithms||{};var Xt=te,q1=Xt.hmac=Xt.hmac||{};q1.create=function(){var e=null,t=null,a=null,r=null,n={};return n.start=function(s,i){if(s!==null)if(typeof s=="string")if(s=s.toLowerCase(),s in Xt.md.algorithms)t=Xt.md.algorithms[s].create();else throw new Error('Unknown hash algorithm "'+s+'"');else t=s;if(i===null)i=e;else{if(typeof i=="string")i=Xt.util.createBuffer(i);else if(Xt.util.isArray(i)){var o=i;i=Xt.util.createBuffer();for(var c=0;c<o.length;++c)i.putByte(o[c])}var l=i.length();l>t.blockLength&&(t.start(),t.update(i.bytes()),i=t.digest()),a=Xt.util.createBuffer(),r=Xt.util.createBuffer(),l=i.length();for(var c=0;c<l;++c){var o=i.at(c);a.putByte(54^o),r.putByte(92^o)}if(l<t.blockLength)for(var o=t.blockLength-l,c=0;c<o;++c)a.putByte(54),r.putByte(92);e=i,a=a.bytes(),r=r.bytes()}t.start(),t.update(a)},n.update=function(s){t.update(s)},n.getMac=function(){var s=t.digest().bytes();return t.start(),t.update(r),t.update(s),t.digest()},n.digest=n.getMac,n};var jt=te,zf=jt.md5=jt.md5||{};jt.md.md5=jt.md.algorithms.md5=zf,zf.create=function(){Hf||j1();var e=null,t=jt.util.createBuffer(),a=new Array(16),r={algorithm:"md5",blockLength:64,digestLength:16,messageLength:0,fullMessageLength:null,messageLengthSize:8};return r.start=function(){r.messageLength=0,r.fullMessageLength=r.messageLength64=[];for(var n=r.messageLengthSize/4,s=0;s<n;++s)r.fullMessageLength.push(0);return t=jt.util.createBuffer(),e={h0:1732584193,h1:4023233417,h2:2562383102,h3:271733878},r},r.start(),r.update=function(n,s){s==="utf8"&&(n=jt.util.encodeUtf8(n));var i=n.length;r.messageLength+=i,i=[i/4294967296>>>0,i>>>0];for(var o=r.fullMessageLength.length-1;o>=0;--o)r.fullMessageLength[o]+=i[1],i[1]=i[0]+(r.fullMessageLength[o]/4294967296>>>0),r.fullMessageLength[o]=r.fullMessageLength[o]>>>0,i[0]=i[1]/4294967296>>>0;return t.putBytes(n),$f(e,a,t),(t.read>2048||t.length()===0)&&t.compact(),r},r.digest=function(){var n=jt.util.createBuffer();n.putBytes(t.bytes());var s=r.fullMessageLength[r.fullMessageLength.length-1]+r.messageLengthSize,i=s&r.blockLength-1;n.putBytes(Vu.substr(0,r.blockLength-i));for(var o,c=0,l=r.fullMessageLength.length-1;l>=0;--l)o=r.fullMessageLength[l]*8+c,c=o/4294967296>>>0,n.putInt32Le(o>>>0);var u={h0:e.h0,h1:e.h1,h2:e.h2,h3:e.h3};$f(u,a,n);var p=jt.util.createBuffer();return p.putInt32Le(u.h0),p.putInt32Le(u.h1),p.putInt32Le(u.h2),p.putInt32Le(u.h3),p},r};var Vu=null,Jc=null,dc=null,Hr=null,Hf=!1;function j1(){Vu="\x80",Vu+=jt.util.fillString("\0",64),Jc=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,1,6,11,0,5,10,15,4,9,14,3,8,13,2,7,12,5,8,11,14,1,4,7,10,13,0,3,6,9,12,15,2,0,7,14,5,12,3,10,1,8,15,6,13,4,11,2,9],dc=[7,12,17,22,7,12,17,22,7,12,17,22,7,12,17,22,5,9,14,20,5,9,14,20,5,9,14,20,5,9,14,20,4,11,16,23,4,11,16,23,4,11,16,23,4,11,16,23,6,10,15,21,6,10,15,21,6,10,15,21,6,10,15,21],Hr=new Array(64);for(var e=0;e<64;++e)Hr[e]=Math.floor(Math.abs(Math.sin(e+1))*4294967296);Hf=!0}function $f(e,t,a){for(var r,n,s,i,o,c,l,u,p=a.length();p>=64;){for(n=e.h0,s=e.h1,i=e.h2,o=e.h3,u=0;u<16;++u)t[u]=a.getInt32Le(),c=o^s&(i^o),r=n+c+Hr[u]+t[u],l=dc[u],n=o,o=i,i=s,s+=r<<l|r>>>32-l;for(;u<32;++u)c=i^o&(s^i),r=n+c+Hr[u]+t[Jc[u]],l=dc[u],n=o,o=i,i=s,s+=r<<l|r>>>32-l;for(;u<48;++u)c=s^i^o,r=n+c+Hr[u]+t[Jc[u]],l=dc[u],n=o,o=i,i=s,s+=r<<l|r>>>32-l;for(;u<64;++u)c=i^(s|~o),r=n+c+Hr[u]+t[Jc[u]],l=dc[u],n=o,o=i,i=s,s+=r<<l|r>>>32-l;e.h0=e.h0+n|0,e.h1=e.h1+s|0,e.h2=e.h2+i|0,e.h3=e.h3+o|0,p-=64}}var Zc=te,Gf=Zc.pem=Zc.pem||{};Gf.encode=function(e,t){t=t||{};var a="-----BEGIN "+e.type+`-----\r
29
32
  `,r;if(e.procType&&(r={name:"Proc-Type",values:[String(e.procType.version),e.procType.type]},a+=el(r)),e.contentDomain&&(r={name:"Content-Domain",values:[e.contentDomain]},a+=el(r)),e.dekInfo&&(r={name:"DEK-Info",values:[e.dekInfo.algorithm]},e.dekInfo.parameters&&r.values.push(e.dekInfo.parameters),a+=el(r)),e.headers)for(var n=0;n<e.headers.length;++n)a+=el(e.headers[n]);return e.procType&&(a+=`\r
30
33
  `),a+=Zc.util.encode64(e.body,t.maxline||64)+`\r
31
34
  `,a+="-----END "+e.type+`-----\r
32
- `,a},Hf.decode=function(e){for(var t=[],a=/\s*-----BEGIN ([A-Z0-9- ]+)-----\r?\n?([\x21-\x7e\s]+?(?:\r?\n\r?\n))?([:A-Za-z0-9+\/=\s]+?)-----END \1-----/g,r=/([\x21-\x7e]+):\s*([\x21-\x7e\s^:]+)/,n=/\r?\n/,s;s=a.exec(e),!!s;){var i=s[1];i==="NEW CERTIFICATE REQUEST"&&(i="CERTIFICATE REQUEST");var o={type:i,procType:null,contentDomain:null,dekInfo:null,headers:[],body:Zc.util.decode64(s[3])};if(t.push(o),!!s[2]){for(var c=s[2].split(n),l=0;s&&l<c.length;){for(var u=c[l].replace(/\s+$/,""),p=l+1;p<c.length;++p){var f=c[p];if(!/\s/.test(f[0]))break;u+=f,l=p}if(s=u.match(r),s){for(var x={name:s[1],values:[]},m=s[2].split(","),y=0;y<m.length;++y)x.values.push(_1(m[y]));if(o.procType)if(!o.contentDomain&&x.name==="Content-Domain")o.contentDomain=m[0]||"";else if(!o.dekInfo&&x.name==="DEK-Info"){if(x.values.length===0)throw new Error('Invalid PEM formatted message. The "DEK-Info" header must have at least one subfield.');o.dekInfo={algorithm:m[0],parameters:m[1]||null}}else o.headers.push(x);else{if(x.name!=="Proc-Type")throw new Error('Invalid PEM formatted message. The first encapsulated header must be "Proc-Type".');if(x.values.length!==2)throw new Error('Invalid PEM formatted message. The "Proc-Type" header must have two subfields.');o.procType={version:m[0],type:m[1]}}}++l}if(o.procType==="ENCRYPTED"&&!o.dekInfo)throw new Error('Invalid PEM formatted message. The "DEK-Info" header must be present if "Proc-Type" is "ENCRYPTED".')}}if(t.length===0)throw new Error("Invalid PEM formatted message.");return t};function el(e){for(var t=e.name+": ",a=[],r=function(c,l){return" "+l},n=0;n<e.values.length;++n)a.push(e.values[n].replace(/^(\S+\r\n)/,r));t+=a.join(",")+`\r
35
+ `,a},Gf.decode=function(e){for(var t=[],a=/\s*-----BEGIN ([A-Z0-9- ]+)-----\r?\n?([\x21-\x7e\s]+?(?:\r?\n\r?\n))?([:A-Za-z0-9+\/=\s]+?)-----END \1-----/g,r=/([\x21-\x7e]+):\s*([\x21-\x7e\s^:]+)/,n=/\r?\n/,s;s=a.exec(e),!!s;){var i=s[1];i==="NEW CERTIFICATE REQUEST"&&(i="CERTIFICATE REQUEST");var o={type:i,procType:null,contentDomain:null,dekInfo:null,headers:[],body:Zc.util.decode64(s[3])};if(t.push(o),!!s[2]){for(var c=s[2].split(n),l=0;s&&l<c.length;){for(var u=c[l].replace(/\s+$/,""),p=l+1;p<c.length;++p){var f=c[p];if(!/\s/.test(f[0]))break;u+=f,l=p}if(s=u.match(r),s){for(var x={name:s[1],values:[]},m=s[2].split(","),y=0;y<m.length;++y)x.values.push(K1(m[y]));if(o.procType)if(!o.contentDomain&&x.name==="Content-Domain")o.contentDomain=m[0]||"";else if(!o.dekInfo&&x.name==="DEK-Info"){if(x.values.length===0)throw new Error('Invalid PEM formatted message. The "DEK-Info" header must have at least one subfield.');o.dekInfo={algorithm:m[0],parameters:m[1]||null}}else o.headers.push(x);else{if(x.name!=="Proc-Type")throw new Error('Invalid PEM formatted message. The first encapsulated header must be "Proc-Type".');if(x.values.length!==2)throw new Error('Invalid PEM formatted message. The "Proc-Type" header must have two subfields.');o.procType={version:m[0],type:m[1]}}}++l}if(o.procType==="ENCRYPTED"&&!o.dekInfo)throw new Error('Invalid PEM formatted message. The "DEK-Info" header must be present if "Proc-Type" is "ENCRYPTED".')}}if(t.length===0)throw new Error("Invalid PEM formatted message.");return t};function el(e){for(var t=e.name+": ",a=[],r=function(c,l){return" "+l},n=0;n<e.values.length;++n)a.push(e.values[n].replace(/^(\S+\r\n)/,r));t+=a.join(",")+`\r
33
36
  `;for(var s=0,i=-1,n=0;n<t.length;++n,++s)if(s>65&&i!==-1){var o=t[i];o===","?(++i,t=t.substr(0,i)+`\r
34
37
  `+t.substr(i)):t=t.substr(0,i)+`\r
35
- `+o+t.substr(i+1),s=n-i-1,i=-1,++n}else(t[n]===" "||t[n]===" "||t[n]===",")&&(i=n);return t}function _1(e){return e.replace(/^\s+/,"")}var Re=ee;Re.des=Re.des||{},Re.des.startEncrypting=function(e,t,a,r){var n=tl({key:e,output:a,decrypt:!1,mode:r||(t===null?"ECB":"CBC")});return n.start(t),n},Re.des.createEncryptionCipher=function(e,t){return tl({key:e,output:null,decrypt:!1,mode:t})},Re.des.startDecrypting=function(e,t,a,r){var n=tl({key:e,output:a,decrypt:!0,mode:r||(t===null?"ECB":"CBC")});return n.start(t),n},Re.des.createDecryptionCipher=function(e,t){return tl({key:e,output:null,decrypt:!0,mode:t})},Re.des.Algorithm=function(e,t){var a=this;a.name=e,a.mode=new t({blockSize:8,cipher:{encrypt:function(r,n){return $f(a._keys,r,n,!1)},decrypt:function(r,n){return $f(a._keys,r,n,!0)}}}),a._init=!1},Re.des.Algorithm.prototype.initialize=function(e){if(!this._init){var t=Re.util.createBuffer(e.key);if(this.name.indexOf("3DES")===0&&t.length()!==24)throw new Error("Invalid Triple-DES key size: "+t.length()*8);this._keys=F1(t),this._init=!0}},Kt("DES-ECB",Re.cipher.modes.ecb),Kt("DES-CBC",Re.cipher.modes.cbc),Kt("DES-CFB",Re.cipher.modes.cfb),Kt("DES-OFB",Re.cipher.modes.ofb),Kt("DES-CTR",Re.cipher.modes.ctr),Kt("3DES-ECB",Re.cipher.modes.ecb),Kt("3DES-CBC",Re.cipher.modes.cbc),Kt("3DES-CFB",Re.cipher.modes.cfb),Kt("3DES-OFB",Re.cipher.modes.ofb),Kt("3DES-CTR",Re.cipher.modes.ctr);function Kt(e,t){var a=function(){return new Re.des.Algorithm(e,t)};Re.cipher.registerAlgorithm(e,a)}var R1=[16843776,0,65536,16843780,16842756,66564,4,65536,1024,16843776,16843780,1024,16778244,16842756,16777216,4,1028,16778240,16778240,66560,66560,16842752,16842752,16778244,65540,16777220,16777220,65540,0,1028,66564,16777216,65536,16843780,4,16842752,16843776,16777216,16777216,1024,16842756,65536,66560,16777220,1024,4,16778244,66564,16843780,65540,16842752,16778244,16777220,1028,66564,16843776,1028,16778240,16778240,0,65540,66560,0,16842756],k1=[-2146402272,-2147450880,32768,1081376,1048576,32,-2146435040,-2147450848,-2147483616,-2146402272,-2146402304,-2147483648,-2147450880,1048576,32,-2146435040,1081344,1048608,-2147450848,0,-2147483648,32768,1081376,-2146435072,1048608,-2147483616,0,1081344,32800,-2146402304,-2146435072,32800,0,1081376,-2146435040,1048576,-2147450848,-2146435072,-2146402304,32768,-2146435072,-2147450880,32,-2146402272,1081376,32,32768,-2147483648,32800,-2146402304,1048576,-2147483616,1048608,-2147450848,-2147483616,1048608,1081344,0,-2147450880,32800,-2147483648,-2146435040,-2146402272,1081344],N1=[520,134349312,0,134348808,134218240,0,131592,134218240,131080,134217736,134217736,131072,134349320,131080,134348800,520,134217728,8,134349312,512,131584,134348800,134348808,131592,134218248,131584,131072,134218248,8,134349320,512,134217728,134349312,134217728,131080,520,131072,134349312,134218240,0,512,131080,134349320,134218240,134217736,512,0,134348808,134218248,131072,134217728,134349320,8,131592,131584,134217736,134348800,134218248,520,134348800,131592,8,134348808,131584],L1=[8396801,8321,8321,128,8396928,8388737,8388609,8193,0,8396800,8396800,8396929,129,0,8388736,8388609,1,8192,8388608,8396801,128,8388608,8193,8320,8388737,1,8320,8388736,8192,8396928,8396929,129,8388736,8388609,8396800,8396929,129,0,0,8396800,8320,8388736,8388737,1,8396801,8321,8321,128,8396929,129,1,8192,8388609,8193,8396928,8388737,8193,8320,8388608,8396801,128,8388608,8192,8396928],U1=[256,34078976,34078720,1107296512,524288,256,1073741824,34078720,1074266368,524288,33554688,1074266368,1107296512,1107820544,524544,1073741824,33554432,1074266112,1074266112,0,1073742080,1107820800,1107820800,33554688,1107820544,1073742080,0,1107296256,34078976,33554432,1107296256,524544,524288,1107296512,256,33554432,1073741824,34078720,1107296512,1074266368,33554688,1073741824,1107820544,34078976,1074266368,256,33554432,1107820544,1107820800,524544,1107296256,1107820800,34078720,0,1074266112,1107296256,524544,33554688,1073742080,524288,0,1074266112,34078976,1073742080],D1=[536870928,541065216,16384,541081616,541065216,16,541081616,4194304,536887296,4210704,4194304,536870928,4194320,536887296,536870912,16400,0,4194320,536887312,16384,4210688,536887312,16,541065232,541065232,0,4210704,541081600,16400,4210688,541081600,536870912,536887296,16,541065232,4210688,541081616,4194304,16400,536870928,4194304,536887296,536870912,16400,536870928,541081616,4210688,541065216,4210704,541081600,0,541065232,16,16384,541065216,4210704,16384,4194320,536887312,0,541081600,536870912,4194320,536887312],P1=[2097152,69206018,67110914,0,2048,67110914,2099202,69208064,69208066,2097152,0,67108866,2,67108864,69206018,2050,67110912,2099202,2097154,67110912,67108866,69206016,69208064,2097154,69206016,2048,2050,69208066,2099200,2,67108864,2099200,67108864,2099200,2097152,67110914,67110914,69206018,69206018,2,2097154,67108864,67110912,2097152,69208064,2050,2099202,69208064,2050,67108866,69208066,69206016,2099200,0,2,69208066,0,2099202,69206016,2048,67108866,67110912,2048,2097154],O1=[268439616,4096,262144,268701760,268435456,268439616,64,268435456,262208,268697600,268701760,266240,268701696,266304,4096,64,268697600,268435520,268439552,4160,266240,262208,268697664,268701696,4160,0,0,268697664,268435520,268439552,266304,262144,266304,262144,268701696,4096,64,268697664,4096,266304,268439552,64,268435520,268697600,268697664,268435456,262144,268439616,0,268701760,262208,268435520,268697600,268439552,268439616,0,268701760,266240,266240,4160,4160,262208,268435456,268701696];function F1(e){for(var t=[0,4,536870912,536870916,65536,65540,536936448,536936452,512,516,536871424,536871428,66048,66052,536936960,536936964],a=[0,1,1048576,1048577,67108864,67108865,68157440,68157441,256,257,1048832,1048833,67109120,67109121,68157696,68157697],r=[0,8,2048,2056,16777216,16777224,16779264,16779272,0,8,2048,2056,16777216,16777224,16779264,16779272],n=[0,2097152,134217728,136314880,8192,2105344,134225920,136323072,131072,2228224,134348800,136445952,139264,2236416,134356992,136454144],s=[0,262144,16,262160,0,262144,16,262160,4096,266240,4112,266256,4096,266240,4112,266256],i=[0,1024,32,1056,0,1024,32,1056,33554432,33555456,33554464,33555488,33554432,33555456,33554464,33555488],o=[0,268435456,524288,268959744,2,268435458,524290,268959746,0,268435456,524288,268959744,2,268435458,524290,268959746],c=[0,65536,2048,67584,536870912,536936448,536872960,536938496,131072,196608,133120,198656,537001984,537067520,537004032,537069568],l=[0,262144,0,262144,2,262146,2,262146,33554432,33816576,33554432,33816576,33554434,33816578,33554434,33816578],u=[0,268435456,8,268435464,0,268435456,8,268435464,1024,268436480,1032,268436488,1024,268436480,1032,268436488],p=[0,32,0,32,1048576,1048608,1048576,1048608,8192,8224,8192,8224,1056768,1056800,1056768,1056800],f=[0,16777216,512,16777728,2097152,18874368,2097664,18874880,67108864,83886080,67109376,83886592,69206016,85983232,69206528,85983744],x=[0,4096,134217728,134221824,524288,528384,134742016,134746112,16,4112,134217744,134221840,524304,528400,134742032,134746128],m=[0,4,256,260,0,4,256,260,1,5,257,261,1,5,257,261],y=e.length()>8?3:1,b=[],S=[0,0,1,1,1,1,1,1,0,1,1,1,1,1,1,0],B=0,_,D=0;D<y;D++){var k=e.getInt32(),P=e.getInt32();_=(k>>>4^P)&252645135,P^=_,k^=_<<4,_=(P>>>-16^k)&65535,k^=_,P^=_<<-16,_=(k>>>2^P)&858993459,P^=_,k^=_<<2,_=(P>>>-16^k)&65535,k^=_,P^=_<<-16,_=(k>>>1^P)&1431655765,P^=_,k^=_<<1,_=(P>>>8^k)&16711935,k^=_,P^=_<<8,_=(k>>>1^P)&1431655765,P^=_,k^=_<<1,_=k<<8|P>>>20&240,k=P<<24|P<<8&16711680|P>>>8&65280|P>>>24&240,P=_;for(var z=0;z<S.length;++z){S[z]?(k=k<<2|k>>>26,P=P<<2|P>>>26):(k=k<<1|k>>>27,P=P<<1|P>>>27),k&=-15,P&=-15;var W=t[k>>>28]|a[k>>>24&15]|r[k>>>20&15]|n[k>>>16&15]|s[k>>>12&15]|i[k>>>8&15]|o[k>>>4&15],J=c[P>>>28]|l[P>>>24&15]|u[P>>>20&15]|p[P>>>16&15]|f[P>>>12&15]|x[P>>>8&15]|m[P>>>4&15];_=(J>>>16^W)&65535,b[B++]=W^_,b[B++]=J^_<<16}}return b}function $f(e,t,a,r){var n=e.length===32?3:9,s;n===3?s=r?[30,-2,-2]:[0,32,2]:s=r?[94,62,-2,32,64,2,30,-2,-2]:[0,32,2,62,30,-2,64,96,2];var i,o=t[0],c=t[1];i=(o>>>4^c)&252645135,c^=i,o^=i<<4,i=(o>>>16^c)&65535,c^=i,o^=i<<16,i=(c>>>2^o)&858993459,o^=i,c^=i<<2,i=(c>>>8^o)&16711935,o^=i,c^=i<<8,i=(o>>>1^c)&1431655765,c^=i,o^=i<<1,o=o<<1|o>>>31,c=c<<1|c>>>31;for(var l=0;l<n;l+=3){for(var u=s[l+1],p=s[l+2],f=s[l];f!=u;f+=p){var x=c^e[f],m=(c>>>4|c<<28)^e[f+1];i=o,o=c,c=i^(k1[x>>>24&63]|L1[x>>>16&63]|D1[x>>>8&63]|O1[x&63]|R1[m>>>24&63]|N1[m>>>16&63]|U1[m>>>8&63]|P1[m&63])}i=o,o=c,c=i}o=o>>>1|o<<31,c=c>>>1|c<<31,i=(o>>>1^c)&1431655765,c^=i,o^=i<<1,i=(c>>>8^o)&16711935,o^=i,c^=i<<8,i=(c>>>2^o)&858993459,o^=i,c^=i<<2,i=(o>>>16^c)&65535,c^=i,o^=i<<16,i=(o>>>4^c)&252645135,c^=i,o^=i<<4,a[0]=o,a[1]=c}function tl(e){e=e||{};var t=(e.mode||"CBC").toUpperCase(),a="DES-"+t,r;e.decrypt?r=Re.cipher.createDecipher(a,e.key):r=Re.cipher.createCipher(a,e.key);var n=r.start;return r.start=function(s,i){var o=null;i instanceof Re.util.ByteBuffer&&(o=i,i={}),i=i||{},i.output=o,i.iv=s,n.call(r,i)},r}var ut=ee,M1=ut.pkcs5=ut.pkcs5||{},Jt;ut.util.isNodejs&&!ut.options.usePureJavaScript&&(Jt=Lr),ut.pbkdf2=M1.pbkdf2=function(e,t,a,r,n,s){if(typeof n=="function"&&(s=n,n=null),ut.util.isNodejs&&!ut.options.usePureJavaScript&&Jt.pbkdf2&&(n===null||typeof n!="object")&&(Jt.pbkdf2Sync.length>4||!n||n==="sha1"))return typeof n!="string"&&(n="sha1"),e=Buffer.from(e,"binary"),t=Buffer.from(t,"binary"),s?Jt.pbkdf2Sync.length===4?Jt.pbkdf2(e,t,a,r,function(_,D){if(_)return s(_);s(null,D.toString("binary"))}):Jt.pbkdf2(e,t,a,r,n,function(_,D){if(_)return s(_);s(null,D.toString("binary"))}):Jt.pbkdf2Sync.length===4?Jt.pbkdf2Sync(e,t,a,r).toString("binary"):Jt.pbkdf2Sync(e,t,a,r,n).toString("binary");if((typeof n>"u"||n===null)&&(n="sha1"),typeof n=="string"){if(!(n in ut.md.algorithms))throw new Error("Unknown hash algorithm: "+n);n=ut.md[n].create()}var i=n.digestLength;if(r>4294967295*i){var o=new Error("Derived key is too long.");if(s)return s(o);throw o}var c=Math.ceil(r/i),l=r-(c-1)*i,u=ut.hmac.create();u.start(n,e);var p="",f,x,m;if(!s){for(var y=1;y<=c;++y){u.start(null,null),u.update(t),u.update(ut.util.int32ToBytes(y)),f=m=u.digest().getBytes();for(var b=2;b<=a;++b)u.start(null,null),u.update(m),x=u.digest().getBytes(),f=ut.util.xorBytes(f,x,i),m=x;p+=y<c?f:f.substr(0,l)}return p}var y=1,b;function S(){if(y>c)return s(null,p);u.start(null,null),u.update(t),u.update(ut.util.int32ToBytes(y)),f=m=u.digest().getBytes(),b=2,B()}function B(){if(b<=a)return u.start(null,null),u.update(m),x=u.digest().getBytes(),f=ut.util.xorBytes(f,x,i),m=x,++b,ut.util.setImmediate(B);p+=y<c?f:f.substr(0,l),++y,S()}S()};var zt=ee,Gf=zt.sha256=zt.sha256||{};zt.md.sha256=zt.md.algorithms.sha256=Gf,Gf.create=function(){Qf||V1();var e=null,t=zt.util.createBuffer(),a=new Array(64),r={algorithm:"sha256",blockLength:64,digestLength:32,messageLength:0,fullMessageLength:null,messageLengthSize:8};return r.start=function(){r.messageLength=0,r.fullMessageLength=r.messageLength64=[];for(var n=r.messageLengthSize/4,s=0;s<n;++s)r.fullMessageLength.push(0);return t=zt.util.createBuffer(),e={h0:1779033703,h1:3144134277,h2:1013904242,h3:2773480762,h4:1359893119,h5:2600822924,h6:528734635,h7:1541459225},r},r.start(),r.update=function(n,s){s==="utf8"&&(n=zt.util.encodeUtf8(n));var i=n.length;r.messageLength+=i,i=[i/4294967296>>>0,i>>>0];for(var o=r.fullMessageLength.length-1;o>=0;--o)r.fullMessageLength[o]+=i[1],i[1]=i[0]+(r.fullMessageLength[o]/4294967296>>>0),r.fullMessageLength[o]=r.fullMessageLength[o]>>>0,i[0]=i[1]/4294967296>>>0;return t.putBytes(n),Xf(e,a,t),(t.read>2048||t.length()===0)&&t.compact(),r},r.digest=function(){var n=zt.util.createBuffer();n.putBytes(t.bytes());var s=r.fullMessageLength[r.fullMessageLength.length-1]+r.messageLengthSize,i=s&r.blockLength-1;n.putBytes(Mu.substr(0,r.blockLength-i));for(var o,c,l=r.fullMessageLength[0]*8,u=0;u<r.fullMessageLength.length-1;++u)o=r.fullMessageLength[u+1]*8,c=o/4294967296>>>0,l+=c,n.putInt32(l>>>0),l=o>>>0;n.putInt32(l);var p={h0:e.h0,h1:e.h1,h2:e.h2,h3:e.h3,h4:e.h4,h5:e.h5,h6:e.h6,h7:e.h7};Xf(p,a,n);var f=zt.util.createBuffer();return f.putInt32(p.h0),f.putInt32(p.h1),f.putInt32(p.h2),f.putInt32(p.h3),f.putInt32(p.h4),f.putInt32(p.h5),f.putInt32(p.h6),f.putInt32(p.h7),f},r};var Mu=null,Qf=!1,Wf=null;function V1(){Mu="\x80",Mu+=zt.util.fillString("\0",64),Wf=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],Qf=!0}function Xf(e,t,a){for(var r,n,s,i,o,c,l,u,p,f,x,m,y,b,S,B=a.length();B>=64;){for(l=0;l<16;++l)t[l]=a.getInt32();for(;l<64;++l)r=t[l-2],r=(r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10,n=t[l-15],n=(n>>>7|n<<25)^(n>>>18|n<<14)^n>>>3,t[l]=r+t[l-7]+n+t[l-16]|0;for(u=e.h0,p=e.h1,f=e.h2,x=e.h3,m=e.h4,y=e.h5,b=e.h6,S=e.h7,l=0;l<64;++l)i=(m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7),o=b^m&(y^b),s=(u>>>2|u<<30)^(u>>>13|u<<19)^(u>>>22|u<<10),c=u&p|f&(u^p),r=S+i+o+Wf[l]+t[l],n=s+c,S=b,b=y,y=m,m=x+r>>>0,x=f,f=p,p=u,u=r+n>>>0;e.h0=e.h0+u|0,e.h1=e.h1+p|0,e.h2=e.h2+f|0,e.h3=e.h3+x|0,e.h4=e.h4+m|0,e.h5=e.h5+y|0,e.h6=e.h6+b|0,e.h7=e.h7+S|0,B-=64}}var Ht=ee,rl=null;Ht.util.isNodejs&&!Ht.options.usePureJavaScript&&!process.versions["node-webkit"]&&(rl=Lr);var q1=Ht.prng=Ht.prng||{};q1.create=function(e){for(var t={plugin:e,key:null,seed:null,time:null,reseeds:0,generated:0,keyBytes:""},a=e.md,r=new Array(32),n=0;n<32;++n)r[n]=a.create();t.pools=r,t.pool=0,t.generate=function(l,u){if(!u)return t.generateSync(l);var p=t.plugin.cipher,f=t.plugin.increment,x=t.plugin.formatKey,m=t.plugin.formatSeed,y=Ht.util.createBuffer();t.key=null,b();function b(S){if(S)return u(S);if(y.length()>=l)return u(null,y.getBytes(l));if(t.generated>1048575&&(t.key=null),t.key===null)return Ht.util.nextTick(function(){s(b)});var B=p(t.key,t.seed);t.generated+=B.length,y.putBytes(B),t.key=x(p(t.key,f(t.seed))),t.seed=m(p(t.key,t.seed)),Ht.util.setImmediate(b)}},t.generateSync=function(l){var u=t.plugin.cipher,p=t.plugin.increment,f=t.plugin.formatKey,x=t.plugin.formatSeed;t.key=null;for(var m=Ht.util.createBuffer();m.length()<l;){t.generated>1048575&&(t.key=null),t.key===null&&i();var y=u(t.key,t.seed);t.generated+=y.length,m.putBytes(y),t.key=f(u(t.key,p(t.seed))),t.seed=x(u(t.key,t.seed))}return m.getBytes(l)};function s(l){if(t.pools[0].messageLength>=32)return o(),l();var u=32-t.pools[0].messageLength<<5;t.seedFile(u,function(p,f){if(p)return l(p);t.collect(f),o(),l()})}function i(){if(t.pools[0].messageLength>=32)return o();var l=32-t.pools[0].messageLength<<5;t.collect(t.seedFileSync(l)),o()}function o(){t.reseeds=t.reseeds===4294967295?0:t.reseeds+1;var l=t.plugin.md.create();l.update(t.keyBytes);for(var u=1,p=0;p<32;++p)t.reseeds%u===0&&(l.update(t.pools[p].digest().getBytes()),t.pools[p].start()),u=u<<1;t.keyBytes=l.digest().getBytes(),l.start(),l.update(t.keyBytes);var f=l.digest().getBytes();t.key=t.plugin.formatKey(t.keyBytes),t.seed=t.plugin.formatSeed(f),t.generated=0}function c(l){var u=null,p=Ht.util.globalScope,f=p.crypto||p.msCrypto;f&&f.getRandomValues&&(u=function(k){return f.getRandomValues(k)});var x=Ht.util.createBuffer();if(u)for(;x.length()<l;){var m=Math.max(1,Math.min(l-x.length(),65536)/4),y=new Uint32Array(Math.floor(m));try{u(y);for(var b=0;b<y.length;++b)x.putInt32(y[b])}catch(k){if(!(typeof QuotaExceededError<"u"&&k instanceof QuotaExceededError))throw k}}if(x.length()<l)for(var S,B,_,D=Math.floor(Math.random()*65536);x.length()<l;){B=16807*(D&65535),S=16807*(D>>16),B+=(S&32767)<<16,B+=S>>15,B=(B&2147483647)+(B>>31),D=B&4294967295;for(var b=0;b<3;++b)_=D>>>(b<<3),_^=Math.floor(Math.random()*256),x.putByte(_&255)}return x.getBytes(l)}return rl?(t.seedFile=function(l,u){rl.randomBytes(l,function(p,f){if(p)return u(p);u(null,f.toString())})},t.seedFileSync=function(l){return rl.randomBytes(l).toString()}):(t.seedFile=function(l,u){try{u(null,c(l))}catch(p){u(p)}},t.seedFileSync=c),t.collect=function(l){for(var u=l.length,p=0;p<u;++p)t.pools[t.pool].update(l.substr(p,1)),t.pool=t.pool===31?0:t.pool+1},t.collectInt=function(l,u){for(var p="",f=0;f<u;f+=8)p+=String.fromCharCode(l>>f&255);t.collect(p)},t.registerWorker=function(l){if(l===self)t.seedFile=function(p,f){function x(m){var y=m.data;y.forge&&y.forge.prng&&(self.removeEventListener("message",x),f(y.forge.prng.err,y.forge.prng.bytes))}self.addEventListener("message",x),self.postMessage({forge:{prng:{needed:p}}})};else{var u=function(p){var f=p.data;f.forge&&f.forge.prng&&t.seedFile(f.forge.prng.needed,function(x,m){l.postMessage({forge:{prng:{err:x,bytes:m}}})})};l.addEventListener("message",u)}},t};var je=ee;(function(){if(je.random&&je.random.getBytes){je.random;return}(function(e){var t={},a=new Array(4),r=je.util.createBuffer();t.formatKey=function(p){var f=je.util.createBuffer(p);return p=new Array(4),p[0]=f.getInt32(),p[1]=f.getInt32(),p[2]=f.getInt32(),p[3]=f.getInt32(),je.aes._expandKey(p,!1)},t.formatSeed=function(p){var f=je.util.createBuffer(p);return p=new Array(4),p[0]=f.getInt32(),p[1]=f.getInt32(),p[2]=f.getInt32(),p[3]=f.getInt32(),p},t.cipher=function(p,f){return je.aes._updateBlock(p,f,a,!1),r.putInt32(a[0]),r.putInt32(a[1]),r.putInt32(a[2]),r.putInt32(a[3]),r.getBytes()},t.increment=function(p){return++p[3],p},t.md=je.md.sha256;function n(){var p=je.prng.create(t);return p.getBytes=function(f,x){return p.generate(f,x)},p.getBytesSync=function(f){return p.generate(f)},p}var s=n(),i=null,o=je.util.globalScope,c=o.crypto||o.msCrypto;if(c&&c.getRandomValues&&(i=function(p){return c.getRandomValues(p)}),je.options.usePureJavaScript||!je.util.isNodejs&&!i){if(s.collectInt(+new Date,32),typeof navigator<"u"){var l="";for(var u in navigator)try{typeof navigator[u]=="string"&&(l+=navigator[u])}catch{}s.collect(l),l=null}e&&(e().mousemove(function(p){s.collectInt(p.clientX,16),s.collectInt(p.clientY,16)}),e().keypress(function(p){s.collectInt(p.charCode,8)}))}if(!je.random)je.random=s;else for(var u in s)je.random[u]=s[u];je.random.createInstance=n,je.random})(typeof jQuery<"u"?jQuery:null)})();var Tt=ee,Vu=[217,120,249,196,25,221,181,237,40,233,253,121,74,160,216,157,198,126,55,131,43,118,83,142,98,76,100,136,68,139,251,162,23,154,89,245,135,179,79,19,97,69,109,141,9,129,125,50,189,143,64,235,134,183,123,11,240,149,33,34,92,107,78,130,84,214,101,147,206,96,178,28,115,86,192,20,167,140,241,220,18,117,202,31,59,190,228,209,66,61,212,48,163,60,182,38,111,191,14,218,70,105,7,87,39,242,29,155,188,148,67,3,248,17,199,246,144,239,62,231,6,195,213,47,200,102,30,215,8,232,234,222,128,82,238,247,132,170,114,172,53,77,106,42,150,26,210,113,90,21,73,116,75,159,208,94,4,24,164,236,194,224,65,110,15,81,203,204,36,145,175,80,161,244,112,57,153,124,58,133,35,184,180,122,252,2,54,91,37,85,151,49,45,93,250,152,227,138,146,174,5,223,41,16,103,108,186,201,211,0,230,207,225,158,168,44,99,22,1,63,88,226,137,169,13,56,52,27,171,51,255,176,187,72,12,95,185,177,205,46,197,243,219,71,229,165,156,119,10,166,32,104,254,127,193,173],Yf=[1,2,3,5],j1=function(e,t){return e<<t&65535|(e&65535)>>16-t},K1=function(e,t){return(e&65535)>>t|e<<16-t&65535};Tt.rc2=Tt.rc2||{},Tt.rc2.expandKey=function(e,t){typeof e=="string"&&(e=Tt.util.createBuffer(e)),t=t||128;var a=e,r=e.length(),n=t,s=Math.ceil(n/8),i=255>>(n&7),o;for(o=r;o<128;o++)a.putByte(Vu[a.at(o-1)+a.at(o-r)&255]);for(a.setAt(128-s,Vu[a.at(128-s)&i]),o=127-s;o>=0;o--)a.setAt(o,Vu[a.at(o+1)^a.at(o+s)]);return a};var Jf=function(e,t,a){var r=!1,n=null,s=null,i=null,o,c,l,u,p=[];for(e=Tt.rc2.expandKey(e,t),l=0;l<64;l++)p.push(e.getInt16Le());a?(o=function(m){for(l=0;l<4;l++)m[l]+=p[u]+(m[(l+3)%4]&m[(l+2)%4])+(~m[(l+3)%4]&m[(l+1)%4]),m[l]=j1(m[l],Yf[l]),u++},c=function(m){for(l=0;l<4;l++)m[l]+=p[m[(l+3)%4]&63]}):(o=function(m){for(l=3;l>=0;l--)m[l]=K1(m[l],Yf[l]),m[l]-=p[u]+(m[(l+3)%4]&m[(l+2)%4])+(~m[(l+3)%4]&m[(l+1)%4]),u--},c=function(m){for(l=3;l>=0;l--)m[l]-=p[m[(l+3)%4]&63]});var f=function(m){var y=[];for(l=0;l<4;l++){var b=n.getInt16Le();i!==null&&(a?b^=i.getInt16Le():i.putInt16Le(b)),y.push(b&65535)}u=a?0:63;for(var S=0;S<m.length;S++)for(var B=0;B<m[S][0];B++)m[S][1](y);for(l=0;l<4;l++)i!==null&&(a?i.putInt16Le(y[l]):y[l]^=i.getInt16Le()),s.putInt16Le(y[l])},x=null;return x={start:function(m,y){m&&typeof m=="string"&&(m=Tt.util.createBuffer(m)),r=!1,n=Tt.util.createBuffer(),s=y||new Tt.util.createBuffer,i=m,x.output=s},update:function(m){for(r||n.putBuffer(m);n.length()>=8;)f([[5,o],[1,c],[6,o],[1,c],[5,o]])},finish:function(m){var y=!0;if(a)if(m)y=m(8,n,!a);else{var b=n.length()===8?8:8-n.length();n.fillWithByte(b,b)}if(y&&(r=!0,x.update()),!a&&(y=n.length()===0,y))if(m)y=m(8,s,!a);else{var S=s.length(),B=s.at(S-1);B>S?y=!1:s.truncate(B)}return y}},x};Tt.rc2.startEncrypting=function(e,t,a){var r=Tt.rc2.createEncryptionCipher(e,128);return r.start(t,a),r},Tt.rc2.createEncryptionCipher=function(e,t){return Jf(e,t,!0)},Tt.rc2.startDecrypting=function(e,t,a){var r=Tt.rc2.createDecryptionCipher(e,128);return r.start(t,a),r},Tt.rc2.createDecryptionCipher=function(e,t){return Jf(e,t,!1)};var qu=ee;qu.jsbn=qu.jsbn||{};var Zt;function N(e,t,a){this.data=[],e!=null&&(typeof e=="number"?this.fromNumber(e,t,a):t==null&&typeof e!="string"?this.fromString(e,256):this.fromString(e,t))}qu.jsbn.BigInteger=N;function me(){return new N(null)}function z1(e,t,a,r,n,s){for(;--s>=0;){var i=t*this.data[e++]+a.data[r]+n;n=Math.floor(i/67108864),a.data[r++]=i&67108863}return n}function H1(e,t,a,r,n,s){for(var i=t&32767,o=t>>15;--s>=0;){var c=this.data[e]&32767,l=this.data[e++]>>15,u=o*c+l*i;c=i*c+((u&32767)<<15)+a.data[r]+(n&1073741823),n=(c>>>30)+(u>>>15)+o*l+(n>>>30),a.data[r++]=c&1073741823}return n}function Zf(e,t,a,r,n,s){for(var i=t&16383,o=t>>14;--s>=0;){var c=this.data[e]&16383,l=this.data[e++]>>14,u=o*c+l*i;c=i*c+((u&16383)<<14)+a.data[r]+n,n=(c>>28)+(u>>14)+o*l,a.data[r++]=c&268435455}return n}typeof navigator>"u"?(N.prototype.am=Zf,Zt=28):navigator.appName=="Microsoft Internet Explorer"?(N.prototype.am=H1,Zt=30):navigator.appName!="Netscape"?(N.prototype.am=z1,Zt=26):(N.prototype.am=Zf,Zt=28),N.prototype.DB=Zt,N.prototype.DM=(1<<Zt)-1,N.prototype.DV=1<<Zt;var ju=52;N.prototype.FV=Math.pow(2,ju),N.prototype.F1=ju-Zt,N.prototype.F2=2*Zt-ju;var $1="0123456789abcdefghijklmnopqrstuvwxyz",al=new Array,Gr,kt;for(Gr=48,kt=0;kt<=9;++kt)al[Gr++]=kt;for(Gr=97,kt=10;kt<36;++kt)al[Gr++]=kt;for(Gr=65,kt=10;kt<36;++kt)al[Gr++]=kt;function e0(e){return $1.charAt(e)}function t0(e,t){var a=al[e.charCodeAt(t)];return a??-1}function G1(e){for(var t=this.t-1;t>=0;--t)e.data[t]=this.data[t];e.t=this.t,e.s=this.s}function Q1(e){this.t=1,this.s=e<0?-1:0,e>0?this.data[0]=e:e<-1?this.data[0]=e+this.DV:this.t=0}function cr(e){var t=me();return t.fromInt(e),t}function W1(e,t){var a;if(t==16)a=4;else if(t==8)a=3;else if(t==256)a=8;else if(t==2)a=1;else if(t==32)a=5;else if(t==4)a=2;else{this.fromRadix(e,t);return}this.t=0,this.s=0;for(var r=e.length,n=!1,s=0;--r>=0;){var i=a==8?e[r]&255:t0(e,r);if(i<0){e.charAt(r)=="-"&&(n=!0);continue}n=!1,s==0?this.data[this.t++]=i:s+a>this.DB?(this.data[this.t-1]|=(i&(1<<this.DB-s)-1)<<s,this.data[this.t++]=i>>this.DB-s):this.data[this.t-1]|=i<<s,s+=a,s>=this.DB&&(s-=this.DB)}a==8&&(e[0]&128)!=0&&(this.s=-1,s>0&&(this.data[this.t-1]|=(1<<this.DB-s)-1<<s)),this.clamp(),n&&N.ZERO.subTo(this,this)}function X1(){for(var e=this.s&this.DM;this.t>0&&this.data[this.t-1]==e;)--this.t}function Y1(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(e==16)t=4;else if(e==8)t=3;else if(e==2)t=1;else if(e==32)t=5;else if(e==4)t=2;else return this.toRadix(e);var a=(1<<t)-1,r,n=!1,s="",i=this.t,o=this.DB-i*this.DB%t;if(i-- >0)for(o<this.DB&&(r=this.data[i]>>o)>0&&(n=!0,s=e0(r));i>=0;)o<t?(r=(this.data[i]&(1<<o)-1)<<t-o,r|=this.data[--i]>>(o+=this.DB-t)):(r=this.data[i]>>(o-=t)&a,o<=0&&(o+=this.DB,--i)),r>0&&(n=!0),n&&(s+=e0(r));return n?s:"0"}function J1(){var e=me();return N.ZERO.subTo(this,e),e}function Z1(){return this.s<0?this.negate():this}function eb(e){var t=this.s-e.s;if(t!=0)return t;var a=this.t;if(t=a-e.t,t!=0)return this.s<0?-t:t;for(;--a>=0;)if((t=this.data[a]-e.data[a])!=0)return t;return 0}function nl(e){var t=1,a;return(a=e>>>16)!=0&&(e=a,t+=16),(a=e>>8)!=0&&(e=a,t+=8),(a=e>>4)!=0&&(e=a,t+=4),(a=e>>2)!=0&&(e=a,t+=2),(a=e>>1)!=0&&(e=a,t+=1),t}function tb(){return this.t<=0?0:this.DB*(this.t-1)+nl(this.data[this.t-1]^this.s&this.DM)}function rb(e,t){var a;for(a=this.t-1;a>=0;--a)t.data[a+e]=this.data[a];for(a=e-1;a>=0;--a)t.data[a]=0;t.t=this.t+e,t.s=this.s}function ab(e,t){for(var a=e;a<this.t;++a)t.data[a-e]=this.data[a];t.t=Math.max(this.t-e,0),t.s=this.s}function nb(e,t){var a=e%this.DB,r=this.DB-a,n=(1<<r)-1,s=Math.floor(e/this.DB),i=this.s<<a&this.DM,o;for(o=this.t-1;o>=0;--o)t.data[o+s+1]=this.data[o]>>r|i,i=(this.data[o]&n)<<a;for(o=s-1;o>=0;--o)t.data[o]=0;t.data[s]=i,t.t=this.t+s+1,t.s=this.s,t.clamp()}function ib(e,t){t.s=this.s;var a=Math.floor(e/this.DB);if(a>=this.t){t.t=0;return}var r=e%this.DB,n=this.DB-r,s=(1<<r)-1;t.data[0]=this.data[a]>>r;for(var i=a+1;i<this.t;++i)t.data[i-a-1]|=(this.data[i]&s)<<n,t.data[i-a]=this.data[i]>>r;r>0&&(t.data[this.t-a-1]|=(this.s&s)<<n),t.t=this.t-a,t.clamp()}function sb(e,t){for(var a=0,r=0,n=Math.min(e.t,this.t);a<n;)r+=this.data[a]-e.data[a],t.data[a++]=r&this.DM,r>>=this.DB;if(e.t<this.t){for(r-=e.s;a<this.t;)r+=this.data[a],t.data[a++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;a<e.t;)r-=e.data[a],t.data[a++]=r&this.DM,r>>=this.DB;r-=e.s}t.s=r<0?-1:0,r<-1?t.data[a++]=this.DV+r:r>0&&(t.data[a++]=r),t.t=a,t.clamp()}function ob(e,t){var a=this.abs(),r=e.abs(),n=a.t;for(t.t=n+r.t;--n>=0;)t.data[n]=0;for(n=0;n<r.t;++n)t.data[n+a.t]=a.am(0,r.data[n],t,n,0,a.t);t.s=0,t.clamp(),this.s!=e.s&&N.ZERO.subTo(t,t)}function cb(e){for(var t=this.abs(),a=e.t=2*t.t;--a>=0;)e.data[a]=0;for(a=0;a<t.t-1;++a){var r=t.am(a,t.data[a],e,2*a,0,1);(e.data[a+t.t]+=t.am(a+1,2*t.data[a],e,2*a+1,r,t.t-a-1))>=t.DV&&(e.data[a+t.t]-=t.DV,e.data[a+t.t+1]=1)}e.t>0&&(e.data[e.t-1]+=t.am(a,t.data[a],e,2*a,0,1)),e.s=0,e.clamp()}function lb(e,t,a){var r=e.abs();if(!(r.t<=0)){var n=this.abs();if(n.t<r.t){t?.fromInt(0),a!=null&&this.copyTo(a);return}a==null&&(a=me());var s=me(),i=this.s,o=e.s,c=this.DB-nl(r.data[r.t-1]);c>0?(r.lShiftTo(c,s),n.lShiftTo(c,a)):(r.copyTo(s),n.copyTo(a));var l=s.t,u=s.data[l-1];if(u!=0){var p=u*(1<<this.F1)+(l>1?s.data[l-2]>>this.F2:0),f=this.FV/p,x=(1<<this.F1)/p,m=1<<this.F2,y=a.t,b=y-l,S=t??me();for(s.dlShiftTo(b,S),a.compareTo(S)>=0&&(a.data[a.t++]=1,a.subTo(S,a)),N.ONE.dlShiftTo(l,S),S.subTo(s,s);s.t<l;)s.data[s.t++]=0;for(;--b>=0;){var B=a.data[--y]==u?this.DM:Math.floor(a.data[y]*f+(a.data[y-1]+m)*x);if((a.data[y]+=s.am(0,B,a,b,0,l))<B)for(s.dlShiftTo(b,S),a.subTo(S,a);a.data[y]<--B;)a.subTo(S,a)}t!=null&&(a.drShiftTo(l,t),i!=o&&N.ZERO.subTo(t,t)),a.t=l,a.clamp(),c>0&&a.rShiftTo(c,a),i<0&&N.ZERO.subTo(a,a)}}}function ub(e){var t=me();return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(N.ZERO)>0&&e.subTo(t,t),t}function wr(e){this.m=e}function pb(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e}function db(e){return e}function fb(e){e.divRemTo(this.m,null,e)}function mb(e,t,a){e.multiplyTo(t,a),this.reduce(a)}function hb(e,t){e.squareTo(t),this.reduce(t)}wr.prototype.convert=pb,wr.prototype.revert=db,wr.prototype.reduce=fb,wr.prototype.mulTo=mb,wr.prototype.sqrTo=hb;function vb(){if(this.t<1)return 0;var e=this.data[0];if((e&1)==0)return 0;var t=e&3;return t=t*(2-(e&15)*t)&15,t=t*(2-(e&255)*t)&255,t=t*(2-((e&65535)*t&65535))&65535,t=t*(2-e*t%this.DV)%this.DV,t>0?this.DV-t:-t}function Ar(e){this.m=e,this.mp=e.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}function gb(e){var t=me();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(N.ZERO)>0&&this.m.subTo(t,t),t}function xb(e){var t=me();return e.copyTo(t),this.reduce(t),t}function yb(e){for(;e.t<=this.mt2;)e.data[e.t++]=0;for(var t=0;t<this.m.t;++t){var a=e.data[t]&32767,r=a*this.mpl+((a*this.mph+(e.data[t]>>15)*this.mpl&this.um)<<15)&e.DM;for(a=t+this.m.t,e.data[a]+=this.m.am(0,r,e,t,0,this.m.t);e.data[a]>=e.DV;)e.data[a]-=e.DV,e.data[++a]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)}function bb(e,t){e.squareTo(t),this.reduce(t)}function Eb(e,t,a){e.multiplyTo(t,a),this.reduce(a)}Ar.prototype.convert=gb,Ar.prototype.revert=xb,Ar.prototype.reduce=yb,Ar.prototype.mulTo=Eb,Ar.prototype.sqrTo=bb;function Cb(){return(this.t>0?this.data[0]&1:this.s)==0}function Sb(e,t){if(e>4294967295||e<1)return N.ONE;var a=me(),r=me(),n=t.convert(this),s=nl(e)-1;for(n.copyTo(a);--s>=0;)if(t.sqrTo(a,r),(e&1<<s)>0)t.mulTo(r,n,a);else{var i=a;a=r,r=i}return t.revert(a)}function Tb(e,t){var a;return e<256||t.isEven()?a=new wr(t):a=new Ar(t),this.exp(e,a)}N.prototype.copyTo=G1,N.prototype.fromInt=Q1,N.prototype.fromString=W1,N.prototype.clamp=X1,N.prototype.dlShiftTo=rb,N.prototype.drShiftTo=ab,N.prototype.lShiftTo=nb,N.prototype.rShiftTo=ib,N.prototype.subTo=sb,N.prototype.multiplyTo=ob,N.prototype.squareTo=cb,N.prototype.divRemTo=lb,N.prototype.invDigit=vb,N.prototype.isEven=Cb,N.prototype.exp=Sb,N.prototype.toString=Y1,N.prototype.negate=J1,N.prototype.abs=Z1,N.prototype.compareTo=eb,N.prototype.bitLength=tb,N.prototype.mod=ub,N.prototype.modPowInt=Tb,N.ZERO=cr(0),N.ONE=cr(1);function wb(){var e=me();return this.copyTo(e),e}function Ab(){if(this.s<0){if(this.t==1)return this.data[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this.data[0];if(this.t==0)return 0}return(this.data[1]&(1<<32-this.DB)-1)<<this.DB|this.data[0]}function Ib(){return this.t==0?this.s:this.data[0]<<24>>24}function Bb(){return this.t==0?this.s:this.data[0]<<16>>16}function _b(e){return Math.floor(Math.LN2*this.DB/Math.log(e))}function Rb(){return this.s<0?-1:this.t<=0||this.t==1&&this.data[0]<=0?0:1}function kb(e){if(e==null&&(e=10),this.signum()==0||e<2||e>36)return"0";var t=this.chunkSize(e),a=Math.pow(e,t),r=cr(a),n=me(),s=me(),i="";for(this.divRemTo(r,n,s);n.signum()>0;)i=(a+s.intValue()).toString(e).substr(1)+i,n.divRemTo(r,n,s);return s.intValue().toString(e)+i}function Nb(e,t){this.fromInt(0),t==null&&(t=10);for(var a=this.chunkSize(t),r=Math.pow(t,a),n=!1,s=0,i=0,o=0;o<e.length;++o){var c=t0(e,o);if(c<0){e.charAt(o)=="-"&&this.signum()==0&&(n=!0);continue}i=t*i+c,++s>=a&&(this.dMultiply(r),this.dAddOffset(i,0),s=0,i=0)}s>0&&(this.dMultiply(Math.pow(t,s)),this.dAddOffset(i,0)),n&&N.ZERO.subTo(this,this)}function Lb(e,t,a){if(typeof t=="number")if(e<2)this.fromInt(1);else for(this.fromNumber(e,a),this.testBit(e-1)||this.bitwiseTo(N.ONE.shiftLeft(e-1),Ku,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(t);)this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(N.ONE.shiftLeft(e-1),this);else{var r=new Array,n=e&7;r.length=(e>>3)+1,t.nextBytes(r),n>0?r[0]&=(1<<n)-1:r[0]=0,this.fromString(r,256)}}function Ub(){var e=this.t,t=new Array;t[0]=this.s;var a=this.DB-e*this.DB%8,r,n=0;if(e-- >0)for(a<this.DB&&(r=this.data[e]>>a)!=(this.s&this.DM)>>a&&(t[n++]=r|this.s<<this.DB-a);e>=0;)a<8?(r=(this.data[e]&(1<<a)-1)<<8-a,r|=this.data[--e]>>(a+=this.DB-8)):(r=this.data[e]>>(a-=8)&255,a<=0&&(a+=this.DB,--e)),(r&128)!=0&&(r|=-256),n==0&&(this.s&128)!=(r&128)&&++n,(n>0||r!=this.s)&&(t[n++]=r);return t}function Db(e){return this.compareTo(e)==0}function Pb(e){return this.compareTo(e)<0?this:e}function Ob(e){return this.compareTo(e)>0?this:e}function Fb(e,t,a){var r,n,s=Math.min(e.t,this.t);for(r=0;r<s;++r)a.data[r]=t(this.data[r],e.data[r]);if(e.t<this.t){for(n=e.s&this.DM,r=s;r<this.t;++r)a.data[r]=t(this.data[r],n);a.t=this.t}else{for(n=this.s&this.DM,r=s;r<e.t;++r)a.data[r]=t(n,e.data[r]);a.t=e.t}a.s=t(this.s,e.s),a.clamp()}function Mb(e,t){return e&t}function Vb(e){var t=me();return this.bitwiseTo(e,Mb,t),t}function Ku(e,t){return e|t}function qb(e){var t=me();return this.bitwiseTo(e,Ku,t),t}function r0(e,t){return e^t}function jb(e){var t=me();return this.bitwiseTo(e,r0,t),t}function a0(e,t){return e&~t}function Kb(e){var t=me();return this.bitwiseTo(e,a0,t),t}function zb(){for(var e=me(),t=0;t<this.t;++t)e.data[t]=this.DM&~this.data[t];return e.t=this.t,e.s=~this.s,e}function Hb(e){var t=me();return e<0?this.rShiftTo(-e,t):this.lShiftTo(e,t),t}function $b(e){var t=me();return e<0?this.lShiftTo(-e,t):this.rShiftTo(e,t),t}function Gb(e){if(e==0)return-1;var t=0;return(e&65535)==0&&(e>>=16,t+=16),(e&255)==0&&(e>>=8,t+=8),(e&15)==0&&(e>>=4,t+=4),(e&3)==0&&(e>>=2,t+=2),(e&1)==0&&++t,t}function Qb(){for(var e=0;e<this.t;++e)if(this.data[e]!=0)return e*this.DB+Gb(this.data[e]);return this.s<0?this.t*this.DB:-1}function Wb(e){for(var t=0;e!=0;)e&=e-1,++t;return t}function Xb(){for(var e=0,t=this.s&this.DM,a=0;a<this.t;++a)e+=Wb(this.data[a]^t);return e}function Yb(e){var t=Math.floor(e/this.DB);return t>=this.t?this.s!=0:(this.data[t]&1<<e%this.DB)!=0}function Jb(e,t){var a=N.ONE.shiftLeft(e);return this.bitwiseTo(a,t,a),a}function Zb(e){return this.changeBit(e,Ku)}function eE(e){return this.changeBit(e,a0)}function tE(e){return this.changeBit(e,r0)}function rE(e,t){for(var a=0,r=0,n=Math.min(e.t,this.t);a<n;)r+=this.data[a]+e.data[a],t.data[a++]=r&this.DM,r>>=this.DB;if(e.t<this.t){for(r+=e.s;a<this.t;)r+=this.data[a],t.data[a++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;a<e.t;)r+=e.data[a],t.data[a++]=r&this.DM,r>>=this.DB;r+=e.s}t.s=r<0?-1:0,r>0?t.data[a++]=r:r<-1&&(t.data[a++]=this.DV+r),t.t=a,t.clamp()}function aE(e){var t=me();return this.addTo(e,t),t}function nE(e){var t=me();return this.subTo(e,t),t}function iE(e){var t=me();return this.multiplyTo(e,t),t}function sE(e){var t=me();return this.divRemTo(e,t,null),t}function oE(e){var t=me();return this.divRemTo(e,null,t),t}function cE(e){var t=me(),a=me();return this.divRemTo(e,t,a),new Array(t,a)}function lE(e){this.data[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()}function uE(e,t){if(e!=0){for(;this.t<=t;)this.data[this.t++]=0;for(this.data[t]+=e;this.data[t]>=this.DV;)this.data[t]-=this.DV,++t>=this.t&&(this.data[this.t++]=0),++this.data[t]}}function mc(){}function n0(e){return e}function pE(e,t,a){e.multiplyTo(t,a)}function dE(e,t){e.squareTo(t)}mc.prototype.convert=n0,mc.prototype.revert=n0,mc.prototype.mulTo=pE,mc.prototype.sqrTo=dE;function fE(e){return this.exp(e,new mc)}function mE(e,t,a){var r=Math.min(this.t+e.t,t);for(a.s=0,a.t=r;r>0;)a.data[--r]=0;var n;for(n=a.t-this.t;r<n;++r)a.data[r+this.t]=this.am(0,e.data[r],a,r,0,this.t);for(n=Math.min(e.t,t);r<n;++r)this.am(0,e.data[r],a,r,0,t-r);a.clamp()}function hE(e,t,a){--t;var r=a.t=this.t+e.t-t;for(a.s=0;--r>=0;)a.data[r]=0;for(r=Math.max(t-this.t,0);r<e.t;++r)a.data[this.t+r-t]=this.am(t-r,e.data[r],a,0,0,this.t+r-t);a.clamp(),a.drShiftTo(1,a)}function Qr(e){this.r2=me(),this.q3=me(),N.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e),this.m=e}function vE(e){if(e.s<0||e.t>2*this.m.t)return e.mod(this.m);if(e.compareTo(this.m)<0)return e;var t=me();return e.copyTo(t),this.reduce(t),t}function gE(e){return e}function xE(e){for(e.drShiftTo(this.m.t-1,this.r2),e.t>this.m.t+1&&(e.t=this.m.t+1,e.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);e.compareTo(this.r2)<0;)e.dAddOffset(1,this.m.t+1);for(e.subTo(this.r2,e);e.compareTo(this.m)>=0;)e.subTo(this.m,e)}function yE(e,t){e.squareTo(t),this.reduce(t)}function bE(e,t,a){e.multiplyTo(t,a),this.reduce(a)}Qr.prototype.convert=vE,Qr.prototype.revert=gE,Qr.prototype.reduce=xE,Qr.prototype.mulTo=bE,Qr.prototype.sqrTo=yE;function EE(e,t){var a=e.bitLength(),r,n=cr(1),s;if(a<=0)return n;a<18?r=1:a<48?r=3:a<144?r=4:a<768?r=5:r=6,a<8?s=new wr(t):t.isEven()?s=new Qr(t):s=new Ar(t);var i=new Array,o=3,c=r-1,l=(1<<r)-1;if(i[1]=s.convert(this),r>1){var u=me();for(s.sqrTo(i[1],u);o<=l;)i[o]=me(),s.mulTo(u,i[o-2],i[o]),o+=2}var p=e.t-1,f,x=!0,m=me(),y;for(a=nl(e.data[p])-1;p>=0;){for(a>=c?f=e.data[p]>>a-c&l:(f=(e.data[p]&(1<<a+1)-1)<<c-a,p>0&&(f|=e.data[p-1]>>this.DB+a-c)),o=r;(f&1)==0;)f>>=1,--o;if((a-=o)<0&&(a+=this.DB,--p),x)i[f].copyTo(n),x=!1;else{for(;o>1;)s.sqrTo(n,m),s.sqrTo(m,n),o-=2;o>0?s.sqrTo(n,m):(y=n,n=m,m=y),s.mulTo(m,i[f],n)}for(;p>=0&&(e.data[p]&1<<a)==0;)s.sqrTo(n,m),y=n,n=m,m=y,--a<0&&(a=this.DB-1,--p)}return s.revert(n)}function CE(e){var t=this.s<0?this.negate():this.clone(),a=e.s<0?e.negate():e.clone();if(t.compareTo(a)<0){var r=t;t=a,a=r}var n=t.getLowestSetBit(),s=a.getLowestSetBit();if(s<0)return t;for(n<s&&(s=n),s>0&&(t.rShiftTo(s,t),a.rShiftTo(s,a));t.signum()>0;)(n=t.getLowestSetBit())>0&&t.rShiftTo(n,t),(n=a.getLowestSetBit())>0&&a.rShiftTo(n,a),t.compareTo(a)>=0?(t.subTo(a,t),t.rShiftTo(1,t)):(a.subTo(t,a),a.rShiftTo(1,a));return s>0&&a.lShiftTo(s,a),a}function SE(e){if(e<=0)return 0;var t=this.DV%e,a=this.s<0?e-1:0;if(this.t>0)if(t==0)a=this.data[0]%e;else for(var r=this.t-1;r>=0;--r)a=(t*a+this.data[r])%e;return a}function TE(e){var t=e.isEven();if(this.isEven()&&t||e.signum()==0)return N.ZERO;for(var a=e.clone(),r=this.clone(),n=cr(1),s=cr(0),i=cr(0),o=cr(1);a.signum()!=0;){for(;a.isEven();)a.rShiftTo(1,a),t?((!n.isEven()||!s.isEven())&&(n.addTo(this,n),s.subTo(e,s)),n.rShiftTo(1,n)):s.isEven()||s.subTo(e,s),s.rShiftTo(1,s);for(;r.isEven();)r.rShiftTo(1,r),t?((!i.isEven()||!o.isEven())&&(i.addTo(this,i),o.subTo(e,o)),i.rShiftTo(1,i)):o.isEven()||o.subTo(e,o),o.rShiftTo(1,o);a.compareTo(r)>=0?(a.subTo(r,a),t&&n.subTo(i,n),s.subTo(o,s)):(r.subTo(a,r),t&&i.subTo(n,i),o.subTo(s,o))}if(r.compareTo(N.ONE)!=0)return N.ZERO;if(o.compareTo(e)>=0)return o.subtract(e);if(o.signum()<0)o.addTo(e,o);else return o;return o.signum()<0?o.add(e):o}var Mt=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509],wE=(1<<26)/Mt[Mt.length-1];function AE(e){var t,a=this.abs();if(a.t==1&&a.data[0]<=Mt[Mt.length-1]){for(t=0;t<Mt.length;++t)if(a.data[0]==Mt[t])return!0;return!1}if(a.isEven())return!1;for(t=1;t<Mt.length;){for(var r=Mt[t],n=t+1;n<Mt.length&&r<wE;)r*=Mt[n++];for(r=a.modInt(r);t<n;)if(r%Mt[t++]==0)return!1}return a.millerRabin(e)}function IE(e){var t=this.subtract(N.ONE),a=t.getLowestSetBit();if(a<=0)return!1;for(var r=t.shiftRight(a),n=BE(),s,i=0;i<e;++i){do s=new N(this.bitLength(),n);while(s.compareTo(N.ONE)<=0||s.compareTo(t)>=0);var o=s.modPow(r,this);if(o.compareTo(N.ONE)!=0&&o.compareTo(t)!=0){for(var c=1;c++<a&&o.compareTo(t)!=0;)if(o=o.modPowInt(2,this),o.compareTo(N.ONE)==0)return!1;if(o.compareTo(t)!=0)return!1}}return!0}function BE(){return{nextBytes:function(e){for(var t=0;t<e.length;++t)e[t]=Math.floor(Math.random()*256)}}}N.prototype.chunkSize=_b,N.prototype.toRadix=kb,N.prototype.fromRadix=Nb,N.prototype.fromNumber=Lb,N.prototype.bitwiseTo=Fb,N.prototype.changeBit=Jb,N.prototype.addTo=rE,N.prototype.dMultiply=lE,N.prototype.dAddOffset=uE,N.prototype.multiplyLowerTo=mE,N.prototype.multiplyUpperTo=hE,N.prototype.modInt=SE,N.prototype.millerRabin=IE,N.prototype.clone=wb,N.prototype.intValue=Ab,N.prototype.byteValue=Ib,N.prototype.shortValue=Bb,N.prototype.signum=Rb,N.prototype.toByteArray=Ub,N.prototype.equals=Db,N.prototype.min=Pb,N.prototype.max=Ob,N.prototype.and=Vb,N.prototype.or=qb,N.prototype.xor=jb,N.prototype.andNot=Kb,N.prototype.not=zb,N.prototype.shiftLeft=Hb,N.prototype.shiftRight=$b,N.prototype.getLowestSetBit=Qb,N.prototype.bitCount=Xb,N.prototype.testBit=Yb,N.prototype.setBit=Zb,N.prototype.clearBit=eE,N.prototype.flipBit=tE,N.prototype.add=aE,N.prototype.subtract=nE,N.prototype.multiply=iE,N.prototype.divide=sE,N.prototype.remainder=oE,N.prototype.divideAndRemainder=cE,N.prototype.modPow=EE,N.prototype.modInverse=TE,N.prototype.pow=fE,N.prototype.gcd=CE,N.prototype.isProbablePrime=AE;var $t=ee,i0=$t.sha1=$t.sha1||{};$t.md.sha1=$t.md.algorithms.sha1=i0,i0.create=function(){s0||_E();var e=null,t=$t.util.createBuffer(),a=new Array(80),r={algorithm:"sha1",blockLength:64,digestLength:20,messageLength:0,fullMessageLength:null,messageLengthSize:8};return r.start=function(){r.messageLength=0,r.fullMessageLength=r.messageLength64=[];for(var n=r.messageLengthSize/4,s=0;s<n;++s)r.fullMessageLength.push(0);return t=$t.util.createBuffer(),e={h0:1732584193,h1:4023233417,h2:2562383102,h3:271733878,h4:3285377520},r},r.start(),r.update=function(n,s){s==="utf8"&&(n=$t.util.encodeUtf8(n));var i=n.length;r.messageLength+=i,i=[i/4294967296>>>0,i>>>0];for(var o=r.fullMessageLength.length-1;o>=0;--o)r.fullMessageLength[o]+=i[1],i[1]=i[0]+(r.fullMessageLength[o]/4294967296>>>0),r.fullMessageLength[o]=r.fullMessageLength[o]>>>0,i[0]=i[1]/4294967296>>>0;return t.putBytes(n),o0(e,a,t),(t.read>2048||t.length()===0)&&t.compact(),r},r.digest=function(){var n=$t.util.createBuffer();n.putBytes(t.bytes());var s=r.fullMessageLength[r.fullMessageLength.length-1]+r.messageLengthSize,i=s&r.blockLength-1;n.putBytes(zu.substr(0,r.blockLength-i));for(var o,c,l=r.fullMessageLength[0]*8,u=0;u<r.fullMessageLength.length-1;++u)o=r.fullMessageLength[u+1]*8,c=o/4294967296>>>0,l+=c,n.putInt32(l>>>0),l=o>>>0;n.putInt32(l);var p={h0:e.h0,h1:e.h1,h2:e.h2,h3:e.h3,h4:e.h4};o0(p,a,n);var f=$t.util.createBuffer();return f.putInt32(p.h0),f.putInt32(p.h1),f.putInt32(p.h2),f.putInt32(p.h3),f.putInt32(p.h4),f},r};var zu=null,s0=!1;function _E(){zu="\x80",zu+=$t.util.fillString("\0",64),s0=!0}function o0(e,t,a){for(var r,n,s,i,o,c,l,u,p=a.length();p>=64;){for(n=e.h0,s=e.h1,i=e.h2,o=e.h3,c=e.h4,u=0;u<16;++u)r=a.getInt32(),t[u]=r,l=o^s&(i^o),r=(n<<5|n>>>27)+l+c+1518500249+r,c=o,o=i,i=(s<<30|s>>>2)>>>0,s=n,n=r;for(;u<20;++u)r=t[u-3]^t[u-8]^t[u-14]^t[u-16],r=r<<1|r>>>31,t[u]=r,l=o^s&(i^o),r=(n<<5|n>>>27)+l+c+1518500249+r,c=o,o=i,i=(s<<30|s>>>2)>>>0,s=n,n=r;for(;u<32;++u)r=t[u-3]^t[u-8]^t[u-14]^t[u-16],r=r<<1|r>>>31,t[u]=r,l=s^i^o,r=(n<<5|n>>>27)+l+c+1859775393+r,c=o,o=i,i=(s<<30|s>>>2)>>>0,s=n,n=r;for(;u<40;++u)r=t[u-6]^t[u-16]^t[u-28]^t[u-32],r=r<<2|r>>>30,t[u]=r,l=s^i^o,r=(n<<5|n>>>27)+l+c+1859775393+r,c=o,o=i,i=(s<<30|s>>>2)>>>0,s=n,n=r;for(;u<60;++u)r=t[u-6]^t[u-16]^t[u-28]^t[u-32],r=r<<2|r>>>30,t[u]=r,l=s&i|o&(s^i),r=(n<<5|n>>>27)+l+c+2400959708+r,c=o,o=i,i=(s<<30|s>>>2)>>>0,s=n,n=r;for(;u<80;++u)r=t[u-6]^t[u-16]^t[u-28]^t[u-32],r=r<<2|r>>>30,t[u]=r,l=s^i^o,r=(n<<5|n>>>27)+l+c+3395469782+r,c=o,o=i,i=(s<<30|s>>>2)>>>0,s=n,n=r;e.h0=e.h0+n|0,e.h1=e.h1+s|0,e.h2=e.h2+i|0,e.h3=e.h3+o|0,e.h4=e.h4+c|0,p-=64}}var Gt=ee,c0=Gt.pkcs1=Gt.pkcs1||{};c0.encode_rsa_oaep=function(e,t,a){var r,n,s,i;typeof a=="string"?(r=a,n=arguments[3]||void 0,s=arguments[4]||void 0):a&&(r=a.label||void 0,n=a.seed||void 0,s=a.md||void 0,a.mgf1&&a.mgf1.md&&(i=a.mgf1.md)),s?s.start():s=Gt.md.sha1.create(),i||(i=s);var o=Math.ceil(e.n.bitLength()/8),c=o-2*s.digestLength-2;if(t.length>c){var l=new Error("RSAES-OAEP input message length is too long.");throw l.length=t.length,l.maxLength=c,l}r||(r=""),s.update(r,"raw");for(var u=s.digest(),p="",f=c-t.length,x=0;x<f;x++)p+="\0";var m=u.getBytes()+p+""+t;if(!n)n=Gt.random.getBytes(s.digestLength);else if(n.length!==s.digestLength){var l=new Error("Invalid RSAES-OAEP seed. The seed length must match the digest length.");throw l.seedLength=n.length,l.digestLength=s.digestLength,l}var y=il(n,o-s.digestLength-1,i),b=Gt.util.xorBytes(m,y,m.length),S=il(b,s.digestLength,i),B=Gt.util.xorBytes(n,S,n.length);return"\0"+B+b},c0.decode_rsa_oaep=function(e,t,a){var r,n,s;typeof a=="string"?(r=a,n=arguments[3]||void 0):a&&(r=a.label||void 0,n=a.md||void 0,a.mgf1&&a.mgf1.md&&(s=a.mgf1.md));var i=Math.ceil(e.n.bitLength()/8);if(t.length!==i){var b=new Error("RSAES-OAEP encoded message length is invalid.");throw b.length=t.length,b.expectedLength=i,b}if(n===void 0?n=Gt.md.sha1.create():n.start(),s||(s=n),i<2*n.digestLength+2)throw new Error("RSAES-OAEP key is too short for the hash function.");r||(r=""),n.update(r,"raw");for(var o=n.digest().getBytes(),c=t.charAt(0),l=t.substring(1,n.digestLength+1),u=t.substring(1+n.digestLength),p=il(u,n.digestLength,s),f=Gt.util.xorBytes(l,p,l.length),x=il(f,i-n.digestLength-1,s),m=Gt.util.xorBytes(u,x,u.length),y=m.substring(0,n.digestLength),b=c!=="\0",S=0;S<n.digestLength;++S)b|=o.charAt(S)!==y.charAt(S);for(var B=1,_=n.digestLength,D=n.digestLength;D<m.length;D++){var k=m.charCodeAt(D),P=k&1^1,z=B?65534:0;b|=k&z,B=B&P,_+=B}if(b||m.charCodeAt(_)!==1)throw new Error("Invalid RSAES-OAEP padding.");return m.substring(_+1)};function il(e,t,a){a||(a=Gt.md.sha1.create());for(var r="",n=Math.ceil(t/a.digestLength),s=0;s<n;++s){var i=String.fromCharCode(s>>24&255,s>>16&255,s>>8&255,s&255);a.start(),a.update(e+i),r+=a.digest().getBytes()}return r.substring(0,t)}var lr=ee;(function(){if(lr.prime){lr.prime;return}var e=lr.prime=lr.prime||{},t=lr.jsbn.BigInteger,a=[6,4,2,4,2,4,6,2],r=new t(null);r.fromInt(30);var n=function(p,f){return p|f};e.generateProbablePrime=function(p,f,x){typeof f=="function"&&(x=f,f={}),f=f||{};var m=f.algorithm||"PRIMEINC";typeof m=="string"&&(m={name:m}),m.options=m.options||{};var y=f.prng||lr.random,b={nextBytes:function(S){for(var B=y.getBytesSync(S.length),_=0;_<S.length;++_)S[_]=B.charCodeAt(_)}};if(m.name==="PRIMEINC")return s(p,b,m.options,x);throw new Error("Invalid prime generation algorithm: "+m.name)};function s(p,f,x,m){return"workers"in x?c(p,f,x,m):i(p,f,x,m)}function i(p,f,x,m){var y=l(p,f),b=0,S=u(y.bitLength());"millerRabinTests"in x&&(S=x.millerRabinTests);var B=10;"maxBlockTime"in x&&(B=x.maxBlockTime),o(y,p,f,b,S,B,m)}function o(p,f,x,m,y,b,S){var B=+new Date;do{if(p.bitLength()>f&&(p=l(f,x)),p.isProbablePrime(y))return S(null,p);p.dAddOffset(a[m++%8],0)}while(b<0||+new Date-B<b);lr.util.setImmediate(function(){o(p,f,x,m,y,b,S)})}function c(p,f,x,m){if(typeof Worker>"u")return i(p,f,x,m);var y=l(p,f),b=x.workers,S=x.workLoad||100,B=S*30/8,_=x.workerScript||"forge/prime.worker.js";if(b===-1)return lr.util.estimateCores(function(k,P){k&&(P=2),b=P-1,D()});D();function D(){b=Math.max(1,b);for(var k=[],P=0;P<b;++P)k[P]=new Worker(_);for(var P=0;P<b;++P)k[P].addEventListener("message",W);var z=!1;function W(J){if(!z){var te=J.data;if(te.found){for(var ve=0;ve<k.length;++ve)k[ve].terminate();return z=!0,m(null,new t(te.prime,16))}y.bitLength()>p&&(y=l(p,f));var pe=y.toString(16);J.target.postMessage({hex:pe,workLoad:S}),y.dAddOffset(B,0)}}}}function l(p,f){var x=new t(p,f),m=p-1;return x.testBit(m)||x.bitwiseTo(t.ONE.shiftLeft(m),n,x),x.dAddOffset(31-x.mod(r).byteValue(),0),x}function u(p){return p<=100?27:p<=150?18:p<=200?15:p<=250?12:p<=300?9:p<=350?8:p<=400?7:p<=500?6:p<=600?5:p<=800?4:p<=1250?3:2}})();var $=ee;if(typeof he>"u")var he=$.jsbn.BigInteger;var Hu=$.util.isNodejs?Lr:null,I=$.asn1,Nt=$.util;$.pki=$.pki||{},$.pki.rsa=$.rsa=$.rsa||{};var Y=$.pki,RE=[6,4,2,4,2,4,6,2],kE={name:"PrivateKeyInfo",tagClass:I.Class.UNIVERSAL,type:I.Type.SEQUENCE,constructed:!0,value:[{name:"PrivateKeyInfo.version",tagClass:I.Class.UNIVERSAL,type:I.Type.INTEGER,constructed:!1,capture:"privateKeyVersion"},{name:"PrivateKeyInfo.privateKeyAlgorithm",tagClass:I.Class.UNIVERSAL,type:I.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:I.Class.UNIVERSAL,type:I.Type.OID,constructed:!1,capture:"privateKeyOid"}]},{name:"PrivateKeyInfo",tagClass:I.Class.UNIVERSAL,type:I.Type.OCTETSTRING,constructed:!1,capture:"privateKey"}]},NE={name:"RSAPrivateKey",tagClass:I.Class.UNIVERSAL,type:I.Type.SEQUENCE,constructed:!0,value:[{name:"RSAPrivateKey.version",tagClass:I.Class.UNIVERSAL,type:I.Type.INTEGER,constructed:!1,capture:"privateKeyVersion"},{name:"RSAPrivateKey.modulus",tagClass:I.Class.UNIVERSAL,type:I.Type.INTEGER,constructed:!1,capture:"privateKeyModulus"},{name:"RSAPrivateKey.publicExponent",tagClass:I.Class.UNIVERSAL,type:I.Type.INTEGER,constructed:!1,capture:"privateKeyPublicExponent"},{name:"RSAPrivateKey.privateExponent",tagClass:I.Class.UNIVERSAL,type:I.Type.INTEGER,constructed:!1,capture:"privateKeyPrivateExponent"},{name:"RSAPrivateKey.prime1",tagClass:I.Class.UNIVERSAL,type:I.Type.INTEGER,constructed:!1,capture:"privateKeyPrime1"},{name:"RSAPrivateKey.prime2",tagClass:I.Class.UNIVERSAL,type:I.Type.INTEGER,constructed:!1,capture:"privateKeyPrime2"},{name:"RSAPrivateKey.exponent1",tagClass:I.Class.UNIVERSAL,type:I.Type.INTEGER,constructed:!1,capture:"privateKeyExponent1"},{name:"RSAPrivateKey.exponent2",tagClass:I.Class.UNIVERSAL,type:I.Type.INTEGER,constructed:!1,capture:"privateKeyExponent2"},{name:"RSAPrivateKey.coefficient",tagClass:I.Class.UNIVERSAL,type:I.Type.INTEGER,constructed:!1,capture:"privateKeyCoefficient"}]},LE={name:"RSAPublicKey",tagClass:I.Class.UNIVERSAL,type:I.Type.SEQUENCE,constructed:!0,value:[{name:"RSAPublicKey.modulus",tagClass:I.Class.UNIVERSAL,type:I.Type.INTEGER,constructed:!1,capture:"publicKeyModulus"},{name:"RSAPublicKey.exponent",tagClass:I.Class.UNIVERSAL,type:I.Type.INTEGER,constructed:!1,capture:"publicKeyExponent"}]},UE=$.pki.rsa.publicKeyValidator={name:"SubjectPublicKeyInfo",tagClass:I.Class.UNIVERSAL,type:I.Type.SEQUENCE,constructed:!0,captureAsn1:"subjectPublicKeyInfo",value:[{name:"SubjectPublicKeyInfo.AlgorithmIdentifier",tagClass:I.Class.UNIVERSAL,type:I.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:I.Class.UNIVERSAL,type:I.Type.OID,constructed:!1,capture:"publicKeyOid"}]},{name:"SubjectPublicKeyInfo.subjectPublicKey",tagClass:I.Class.UNIVERSAL,type:I.Type.BITSTRING,constructed:!1,value:[{name:"SubjectPublicKeyInfo.subjectPublicKey.RSAPublicKey",tagClass:I.Class.UNIVERSAL,type:I.Type.SEQUENCE,constructed:!0,optional:!0,captureAsn1:"rsaPublicKey"}]}]},DE={name:"DigestInfo",tagClass:I.Class.UNIVERSAL,type:I.Type.SEQUENCE,constructed:!0,value:[{name:"DigestInfo.DigestAlgorithm",tagClass:I.Class.UNIVERSAL,type:I.Type.SEQUENCE,constructed:!0,value:[{name:"DigestInfo.DigestAlgorithm.algorithmIdentifier",tagClass:I.Class.UNIVERSAL,type:I.Type.OID,constructed:!1,capture:"algorithmIdentifier"},{name:"DigestInfo.DigestAlgorithm.parameters",tagClass:I.Class.UNIVERSAL,type:I.Type.NULL,capture:"parameters",optional:!0,constructed:!1}]},{name:"DigestInfo.digest",tagClass:I.Class.UNIVERSAL,type:I.Type.OCTETSTRING,constructed:!1,capture:"digest"}]},PE=function(e){var t;if(e.algorithm in Y.oids)t=Y.oids[e.algorithm];else{var a=new Error("Unknown message digest algorithm.");throw a.algorithm=e.algorithm,a}var r=I.oidToDer(t).getBytes(),n=I.create(I.Class.UNIVERSAL,I.Type.SEQUENCE,!0,[]),s=I.create(I.Class.UNIVERSAL,I.Type.SEQUENCE,!0,[]);s.value.push(I.create(I.Class.UNIVERSAL,I.Type.OID,!1,r)),s.value.push(I.create(I.Class.UNIVERSAL,I.Type.NULL,!1,""));var i=I.create(I.Class.UNIVERSAL,I.Type.OCTETSTRING,!1,e.digest().getBytes());return n.value.push(s),n.value.push(i),I.toDer(n).getBytes()},l0=function(e,t,a){if(a)return e.modPow(t.e,t.n);if(!t.p||!t.q)return e.modPow(t.d,t.n);t.dP||(t.dP=t.d.mod(t.p.subtract(he.ONE))),t.dQ||(t.dQ=t.d.mod(t.q.subtract(he.ONE))),t.qInv||(t.qInv=t.q.modInverse(t.p));var r;do r=new he($.util.bytesToHex($.random.getBytes(t.n.bitLength()/8)),16);while(r.compareTo(t.n)>=0||!r.gcd(t.n).equals(he.ONE));e=e.multiply(r.modPow(t.e,t.n)).mod(t.n);for(var n=e.mod(t.p).modPow(t.dP,t.p),s=e.mod(t.q).modPow(t.dQ,t.q);n.compareTo(s)<0;)n=n.add(t.p);var i=n.subtract(s).multiply(t.qInv).mod(t.p).multiply(t.q).add(s);return i=i.multiply(r.modInverse(t.n)).mod(t.n),i};Y.rsa.encrypt=function(e,t,a){var r=a,n,s=Math.ceil(t.n.bitLength()/8);a!==!1&&a!==!0?(r=a===2,n=u0(e,t,a)):(n=$.util.createBuffer(),n.putBytes(e));for(var i=new he(n.toHex(),16),o=l0(i,t,r),c=o.toString(16),l=$.util.createBuffer(),u=s-Math.ceil(c.length/2);u>0;)l.putByte(0),--u;return l.putBytes($.util.hexToBytes(c)),l.getBytes()},Y.rsa.decrypt=function(e,t,a,r){var n=Math.ceil(t.n.bitLength()/8);if(e.length!==n){var s=new Error("Encrypted message length is invalid.");throw s.length=e.length,s.expected=n,s}var i=new he($.util.createBuffer(e).toHex(),16);if(i.compareTo(t.n)>=0)throw new Error("Encrypted message is invalid.");for(var o=l0(i,t,a),c=o.toString(16),l=$.util.createBuffer(),u=n-Math.ceil(c.length/2);u>0;)l.putByte(0),--u;return l.putBytes($.util.hexToBytes(c)),r!==!1?sl(l.getBytes(),t,a):l.getBytes()},Y.rsa.createKeyPairGenerationState=function(e,t,a){typeof e=="string"&&(e=parseInt(e,10)),e=e||2048,a=a||{};var r=a.prng||$.random,n={nextBytes:function(o){for(var c=r.getBytesSync(o.length),l=0;l<o.length;++l)o[l]=c.charCodeAt(l)}},s=a.algorithm||"PRIMEINC",i;if(s==="PRIMEINC")i={algorithm:s,state:0,bits:e,rng:n,eInt:t||65537,e:new he(null),p:null,q:null,qBits:e>>1,pBits:e-(e>>1),pqState:0,num:null,keys:null},i.e.fromInt(i.eInt);else throw new Error("Invalid key generation algorithm: "+s);return i},Y.rsa.stepKeyPairGenerationState=function(e,t){"algorithm"in e||(e.algorithm="PRIMEINC");var a=new he(null);a.fromInt(30);for(var r=0,n=function(p,f){return p|f},s=+new Date,i,o=0;e.keys===null&&(t<=0||o<t);){if(e.state===0){var c=e.p===null?e.pBits:e.qBits,l=c-1;e.pqState===0?(e.num=new he(c,e.rng),e.num.testBit(l)||e.num.bitwiseTo(he.ONE.shiftLeft(l),n,e.num),e.num.dAddOffset(31-e.num.mod(a).byteValue(),0),r=0,++e.pqState):e.pqState===1?e.num.bitLength()>c?e.pqState=0:e.num.isProbablePrime(FE(e.num.bitLength()))?++e.pqState:e.num.dAddOffset(RE[r++%8],0):e.pqState===2?e.pqState=e.num.subtract(he.ONE).gcd(e.e).compareTo(he.ONE)===0?3:0:e.pqState===3&&(e.pqState=0,e.p===null?e.p=e.num:e.q=e.num,e.p!==null&&e.q!==null&&++e.state,e.num=null)}else if(e.state===1)e.p.compareTo(e.q)<0&&(e.num=e.p,e.p=e.q,e.q=e.num),++e.state;else if(e.state===2)e.p1=e.p.subtract(he.ONE),e.q1=e.q.subtract(he.ONE),e.phi=e.p1.multiply(e.q1),++e.state;else if(e.state===3)e.phi.gcd(e.e).compareTo(he.ONE)===0?++e.state:(e.p=null,e.q=null,e.state=0);else if(e.state===4)e.n=e.p.multiply(e.q),e.n.bitLength()===e.bits?++e.state:(e.q=null,e.state=0);else if(e.state===5){var u=e.e.modInverse(e.phi);e.keys={privateKey:Y.rsa.setPrivateKey(e.n,e.e,u,e.p,e.q,u.mod(e.p1),u.mod(e.q1),e.q.modInverse(e.p)),publicKey:Y.rsa.setPublicKey(e.n,e.e)}}i=+new Date,o+=i-s,s=i}return e.keys!==null},Y.rsa.generateKeyPair=function(e,t,a,r){if(arguments.length===1?typeof e=="object"?(a=e,e=void 0):typeof e=="function"&&(r=e,e=void 0):arguments.length===2?typeof e=="number"?typeof t=="function"?(r=t,t=void 0):typeof t!="number"&&(a=t,t=void 0):(a=e,r=t,e=void 0,t=void 0):arguments.length===3&&(typeof t=="number"?typeof a=="function"&&(r=a,a=void 0):(r=a,a=t,t=void 0)),a=a||{},e===void 0&&(e=a.bits||2048),t===void 0&&(t=a.e||65537),!$.options.usePureJavaScript&&!a.prng&&e>=256&&e<=16384&&(t===65537||t===3)){if(r){if(p0("generateKeyPair"))return Hu.generateKeyPair("rsa",{modulusLength:e,publicExponent:t,publicKeyEncoding:{type:"spki",format:"pem"},privateKeyEncoding:{type:"pkcs8",format:"pem"}},function(o,c,l){if(o)return r(o);r(null,{privateKey:Y.privateKeyFromPem(l),publicKey:Y.publicKeyFromPem(c)})});if(d0("generateKey")&&d0("exportKey"))return Nt.globalScope.crypto.subtle.generateKey({name:"RSASSA-PKCS1-v1_5",modulusLength:e,publicExponent:m0(t),hash:{name:"SHA-256"}},!0,["sign","verify"]).then(function(o){return Nt.globalScope.crypto.subtle.exportKey("pkcs8",o.privateKey)}).then(void 0,function(o){r(o)}).then(function(o){if(o){var c=Y.privateKeyFromAsn1(I.fromDer($.util.createBuffer(o)));r(null,{privateKey:c,publicKey:Y.setRsaPublicKey(c.n,c.e)})}});if(f0("generateKey")&&f0("exportKey")){var n=Nt.globalScope.msCrypto.subtle.generateKey({name:"RSASSA-PKCS1-v1_5",modulusLength:e,publicExponent:m0(t),hash:{name:"SHA-256"}},!0,["sign","verify"]);n.oncomplete=function(o){var c=o.target.result,l=Nt.globalScope.msCrypto.subtle.exportKey("pkcs8",c.privateKey);l.oncomplete=function(u){var p=u.target.result,f=Y.privateKeyFromAsn1(I.fromDer($.util.createBuffer(p)));r(null,{privateKey:f,publicKey:Y.setRsaPublicKey(f.n,f.e)})},l.onerror=function(u){r(u)}},n.onerror=function(o){r(o)};return}}else if(p0("generateKeyPairSync")){var s=Hu.generateKeyPairSync("rsa",{modulusLength:e,publicExponent:t,publicKeyEncoding:{type:"spki",format:"pem"},privateKeyEncoding:{type:"pkcs8",format:"pem"}});return{privateKey:Y.privateKeyFromPem(s.privateKey),publicKey:Y.publicKeyFromPem(s.publicKey)}}}var i=Y.rsa.createKeyPairGenerationState(e,t,a);if(!r)return Y.rsa.stepKeyPairGenerationState(i,0),i.keys;OE(i,a,r)},Y.setRsaPublicKey=Y.rsa.setPublicKey=function(e,t){var a={n:e,e:t};return a.encrypt=function(r,n,s){if(typeof n=="string"?n=n.toUpperCase():n===void 0&&(n="RSAES-PKCS1-V1_5"),n==="RSAES-PKCS1-V1_5")n={encode:function(o,c,l){return u0(o,c,2).getBytes()}};else if(n==="RSA-OAEP"||n==="RSAES-OAEP")n={encode:function(o,c){return $.pkcs1.encode_rsa_oaep(c,o,s)}};else if(["RAW","NONE","NULL",null].indexOf(n)!==-1)n={encode:function(o){return o}};else if(typeof n=="string")throw new Error('Unsupported encryption scheme: "'+n+'".');var i=n.encode(r,a,!0);return Y.rsa.encrypt(i,a,!0)},a.verify=function(r,n,s,i){typeof s=="string"?s=s.toUpperCase():s===void 0&&(s="RSASSA-PKCS1-V1_5"),i===void 0&&(i={_parseAllDigestBytes:!0}),"_parseAllDigestBytes"in i||(i._parseAllDigestBytes=!0),s==="RSASSA-PKCS1-V1_5"?s={verify:function(c,l){l=sl(l,a,!0);var u=I.fromDer(l,{parseAllBytes:i._parseAllDigestBytes}),p={},f=[];if(!I.validate(u,DE,p,f)){var x=new Error("ASN.1 object does not contain a valid RSASSA-PKCS1-v1_5 DigestInfo value.");throw x.errors=f,x}var m=I.derToOid(p.algorithmIdentifier);if(!(m===$.oids.md2||m===$.oids.md5||m===$.oids.sha1||m===$.oids.sha224||m===$.oids.sha256||m===$.oids.sha384||m===$.oids.sha512||m===$.oids["sha512-224"]||m===$.oids["sha512-256"])){var x=new Error("Unknown RSASSA-PKCS1-v1_5 DigestAlgorithm identifier.");throw x.oid=m,x}if((m===$.oids.md2||m===$.oids.md5)&&!("parameters"in p))throw new Error("ASN.1 object does not contain a valid RSASSA-PKCS1-v1_5 DigestInfo value. Missing algorithm identifier NULL parameters.");return c===p.digest}}:(s==="NONE"||s==="NULL"||s===null)&&(s={verify:function(c,l){return l=sl(l,a,!0),c===l}});var o=Y.rsa.decrypt(n,a,!0,!1);return s.verify(r,o,a.n.bitLength())},a},Y.setRsaPrivateKey=Y.rsa.setPrivateKey=function(e,t,a,r,n,s,i,o){var c={n:e,e:t,d:a,p:r,q:n,dP:s,dQ:i,qInv:o};return c.decrypt=function(l,u,p){typeof u=="string"?u=u.toUpperCase():u===void 0&&(u="RSAES-PKCS1-V1_5");var f=Y.rsa.decrypt(l,c,!1,!1);if(u==="RSAES-PKCS1-V1_5")u={decode:sl};else if(u==="RSA-OAEP"||u==="RSAES-OAEP")u={decode:function(x,m){return $.pkcs1.decode_rsa_oaep(m,x,p)}};else if(["RAW","NONE","NULL",null].indexOf(u)!==-1)u={decode:function(x){return x}};else throw new Error('Unsupported encryption scheme: "'+u+'".');return u.decode(f,c,!1)},c.sign=function(l,u){var p=!1;typeof u=="string"&&(u=u.toUpperCase()),u===void 0||u==="RSASSA-PKCS1-V1_5"?(u={encode:PE},p=1):(u==="NONE"||u==="NULL"||u===null)&&(u={encode:function(){return l}},p=1);var f=u.encode(l,c.n.bitLength());return Y.rsa.encrypt(f,c,p)},c},Y.wrapRsaPrivateKey=function(e){return I.create(I.Class.UNIVERSAL,I.Type.SEQUENCE,!0,[I.create(I.Class.UNIVERSAL,I.Type.INTEGER,!1,I.integerToDer(0).getBytes()),I.create(I.Class.UNIVERSAL,I.Type.SEQUENCE,!0,[I.create(I.Class.UNIVERSAL,I.Type.OID,!1,I.oidToDer(Y.oids.rsaEncryption).getBytes()),I.create(I.Class.UNIVERSAL,I.Type.NULL,!1,"")]),I.create(I.Class.UNIVERSAL,I.Type.OCTETSTRING,!1,I.toDer(e).getBytes())])},Y.privateKeyFromAsn1=function(e){var t={},a=[];if(I.validate(e,kE,t,a)&&(e=I.fromDer($.util.createBuffer(t.privateKey))),t={},a=[],!I.validate(e,NE,t,a)){var r=new Error("Cannot read private key. ASN.1 object does not contain an RSAPrivateKey.");throw r.errors=a,r}var n,s,i,o,c,l,u,p;return n=$.util.createBuffer(t.privateKeyModulus).toHex(),s=$.util.createBuffer(t.privateKeyPublicExponent).toHex(),i=$.util.createBuffer(t.privateKeyPrivateExponent).toHex(),o=$.util.createBuffer(t.privateKeyPrime1).toHex(),c=$.util.createBuffer(t.privateKeyPrime2).toHex(),l=$.util.createBuffer(t.privateKeyExponent1).toHex(),u=$.util.createBuffer(t.privateKeyExponent2).toHex(),p=$.util.createBuffer(t.privateKeyCoefficient).toHex(),Y.setRsaPrivateKey(new he(n,16),new he(s,16),new he(i,16),new he(o,16),new he(c,16),new he(l,16),new he(u,16),new he(p,16))},Y.privateKeyToAsn1=Y.privateKeyToRSAPrivateKey=function(e){return I.create(I.Class.UNIVERSAL,I.Type.SEQUENCE,!0,[I.create(I.Class.UNIVERSAL,I.Type.INTEGER,!1,I.integerToDer(0).getBytes()),I.create(I.Class.UNIVERSAL,I.Type.INTEGER,!1,Qt(e.n)),I.create(I.Class.UNIVERSAL,I.Type.INTEGER,!1,Qt(e.e)),I.create(I.Class.UNIVERSAL,I.Type.INTEGER,!1,Qt(e.d)),I.create(I.Class.UNIVERSAL,I.Type.INTEGER,!1,Qt(e.p)),I.create(I.Class.UNIVERSAL,I.Type.INTEGER,!1,Qt(e.q)),I.create(I.Class.UNIVERSAL,I.Type.INTEGER,!1,Qt(e.dP)),I.create(I.Class.UNIVERSAL,I.Type.INTEGER,!1,Qt(e.dQ)),I.create(I.Class.UNIVERSAL,I.Type.INTEGER,!1,Qt(e.qInv))])},Y.publicKeyFromAsn1=function(e){var t={},a=[];if(I.validate(e,UE,t,a)){var r=I.derToOid(t.publicKeyOid);if(r!==Y.oids.rsaEncryption){var n=new Error("Cannot read public key. Unknown OID.");throw n.oid=r,n}e=t.rsaPublicKey}if(a=[],!I.validate(e,LE,t,a)){var n=new Error("Cannot read public key. ASN.1 object does not contain an RSAPublicKey.");throw n.errors=a,n}var s=$.util.createBuffer(t.publicKeyModulus).toHex(),i=$.util.createBuffer(t.publicKeyExponent).toHex();return Y.setRsaPublicKey(new he(s,16),new he(i,16))},Y.publicKeyToAsn1=Y.publicKeyToSubjectPublicKeyInfo=function(e){return I.create(I.Class.UNIVERSAL,I.Type.SEQUENCE,!0,[I.create(I.Class.UNIVERSAL,I.Type.SEQUENCE,!0,[I.create(I.Class.UNIVERSAL,I.Type.OID,!1,I.oidToDer(Y.oids.rsaEncryption).getBytes()),I.create(I.Class.UNIVERSAL,I.Type.NULL,!1,"")]),I.create(I.Class.UNIVERSAL,I.Type.BITSTRING,!1,[Y.publicKeyToRSAPublicKey(e)])])},Y.publicKeyToRSAPublicKey=function(e){return I.create(I.Class.UNIVERSAL,I.Type.SEQUENCE,!0,[I.create(I.Class.UNIVERSAL,I.Type.INTEGER,!1,Qt(e.n)),I.create(I.Class.UNIVERSAL,I.Type.INTEGER,!1,Qt(e.e))])};function u0(e,t,a){var r=$.util.createBuffer(),n=Math.ceil(t.n.bitLength()/8);if(e.length>n-11){var s=new Error("Message is too long for PKCS#1 v1.5 padding.");throw s.length=e.length,s.max=n-11,s}r.putByte(0),r.putByte(a);var i=n-3-e.length,o;if(a===0||a===1){o=a===0?0:255;for(var c=0;c<i;++c)r.putByte(o)}else for(;i>0;){for(var l=0,u=$.random.getBytes(i),c=0;c<i;++c)o=u.charCodeAt(c),o===0?++l:r.putByte(o);i=l}return r.putByte(0),r.putBytes(e),r}function sl(e,t,a,r){var n=Math.ceil(t.n.bitLength()/8),s=$.util.createBuffer(e),i=s.getByte(),o=s.getByte();if(i!==0||a&&o!==0&&o!==1||!a&&o!=2||a&&o===0&&typeof r>"u")throw new Error("Encryption block is invalid.");var c=0;if(o===0){c=n-3-r;for(var l=0;l<c;++l)if(s.getByte()!==0)throw new Error("Encryption block is invalid.")}else if(o===1)for(c=0;s.length()>1;){if(s.getByte()!==255){--s.read;break}++c}else if(o===2)for(c=0;s.length()>1;){if(s.getByte()===0){--s.read;break}++c}var u=s.getByte();if(u!==0||c!==n-3-s.length())throw new Error("Encryption block is invalid.");return s.getBytes()}function OE(e,t,a){typeof t=="function"&&(a=t,t={}),t=t||{};var r={algorithm:{name:t.algorithm||"PRIMEINC",options:{workers:t.workers||2,workLoad:t.workLoad||100,workerScript:t.workerScript}}};"prng"in t&&(r.prng=t.prng),n();function n(){s(e.pBits,function(o,c){if(o)return a(o);if(e.p=c,e.q!==null)return i(o,e.q);s(e.qBits,i)})}function s(o,c){$.prime.generateProbablePrime(o,r,c)}function i(o,c){if(o)return a(o);if(e.q=c,e.p.compareTo(e.q)<0){var l=e.p;e.p=e.q,e.q=l}if(e.p.subtract(he.ONE).gcd(e.e).compareTo(he.ONE)!==0){e.p=null,n();return}if(e.q.subtract(he.ONE).gcd(e.e).compareTo(he.ONE)!==0){e.q=null,s(e.qBits,i);return}if(e.p1=e.p.subtract(he.ONE),e.q1=e.q.subtract(he.ONE),e.phi=e.p1.multiply(e.q1),e.phi.gcd(e.e).compareTo(he.ONE)!==0){e.p=e.q=null,n();return}if(e.n=e.p.multiply(e.q),e.n.bitLength()!==e.bits){e.q=null,s(e.qBits,i);return}var u=e.e.modInverse(e.phi);e.keys={privateKey:Y.rsa.setPrivateKey(e.n,e.e,u,e.p,e.q,u.mod(e.p1),u.mod(e.q1),e.q.modInverse(e.p)),publicKey:Y.rsa.setPublicKey(e.n,e.e)},a(null,e.keys)}}function Qt(e){var t=e.toString(16);t[0]>="8"&&(t="00"+t);var a=$.util.hexToBytes(t);return a.length>1&&(a.charCodeAt(0)===0&&(a.charCodeAt(1)&128)===0||a.charCodeAt(0)===255&&(a.charCodeAt(1)&128)===128)?a.substr(1):a}function FE(e){return e<=100?27:e<=150?18:e<=200?15:e<=250?12:e<=300?9:e<=350?8:e<=400?7:e<=500?6:e<=600?5:e<=800?4:e<=1250?3:2}function p0(e){return $.util.isNodejs&&typeof Hu[e]=="function"}function d0(e){return typeof Nt.globalScope<"u"&&typeof Nt.globalScope.crypto=="object"&&typeof Nt.globalScope.crypto.subtle=="object"&&typeof Nt.globalScope.crypto.subtle[e]=="function"}function f0(e){return typeof Nt.globalScope<"u"&&typeof Nt.globalScope.msCrypto=="object"&&typeof Nt.globalScope.msCrypto.subtle=="object"&&typeof Nt.globalScope.msCrypto.subtle[e]=="function"}function m0(e){for(var t=$.util.hexToBytes(e.toString(16)),a=new Uint8Array(t.length),r=0;r<t.length;++r)a[r]=t.charCodeAt(r);return a}var K=ee;if(typeof ME>"u")var ME=K.jsbn.BigInteger;var R=K.asn1,Z=K.pki=K.pki||{};Z.pbe=K.pbe=K.pbe||{};var Ir=Z.oids,VE={name:"EncryptedPrivateKeyInfo",tagClass:R.Class.UNIVERSAL,type:R.Type.SEQUENCE,constructed:!0,value:[{name:"EncryptedPrivateKeyInfo.encryptionAlgorithm",tagClass:R.Class.UNIVERSAL,type:R.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:R.Class.UNIVERSAL,type:R.Type.OID,constructed:!1,capture:"encryptionOid"},{name:"AlgorithmIdentifier.parameters",tagClass:R.Class.UNIVERSAL,type:R.Type.SEQUENCE,constructed:!0,captureAsn1:"encryptionParams"}]},{name:"EncryptedPrivateKeyInfo.encryptedData",tagClass:R.Class.UNIVERSAL,type:R.Type.OCTETSTRING,constructed:!1,capture:"encryptedData"}]},qE={name:"PBES2Algorithms",tagClass:R.Class.UNIVERSAL,type:R.Type.SEQUENCE,constructed:!0,value:[{name:"PBES2Algorithms.keyDerivationFunc",tagClass:R.Class.UNIVERSAL,type:R.Type.SEQUENCE,constructed:!0,value:[{name:"PBES2Algorithms.keyDerivationFunc.oid",tagClass:R.Class.UNIVERSAL,type:R.Type.OID,constructed:!1,capture:"kdfOid"},{name:"PBES2Algorithms.params",tagClass:R.Class.UNIVERSAL,type:R.Type.SEQUENCE,constructed:!0,value:[{name:"PBES2Algorithms.params.salt",tagClass:R.Class.UNIVERSAL,type:R.Type.OCTETSTRING,constructed:!1,capture:"kdfSalt"},{name:"PBES2Algorithms.params.iterationCount",tagClass:R.Class.UNIVERSAL,type:R.Type.INTEGER,constructed:!1,capture:"kdfIterationCount"},{name:"PBES2Algorithms.params.keyLength",tagClass:R.Class.UNIVERSAL,type:R.Type.INTEGER,constructed:!1,optional:!0,capture:"keyLength"},{name:"PBES2Algorithms.params.prf",tagClass:R.Class.UNIVERSAL,type:R.Type.SEQUENCE,constructed:!0,optional:!0,value:[{name:"PBES2Algorithms.params.prf.algorithm",tagClass:R.Class.UNIVERSAL,type:R.Type.OID,constructed:!1,capture:"prfOid"}]}]}]},{name:"PBES2Algorithms.encryptionScheme",tagClass:R.Class.UNIVERSAL,type:R.Type.SEQUENCE,constructed:!0,value:[{name:"PBES2Algorithms.encryptionScheme.oid",tagClass:R.Class.UNIVERSAL,type:R.Type.OID,constructed:!1,capture:"encOid"},{name:"PBES2Algorithms.encryptionScheme.iv",tagClass:R.Class.UNIVERSAL,type:R.Type.OCTETSTRING,constructed:!1,capture:"encIv"}]}]},jE={name:"pkcs-12PbeParams",tagClass:R.Class.UNIVERSAL,type:R.Type.SEQUENCE,constructed:!0,value:[{name:"pkcs-12PbeParams.salt",tagClass:R.Class.UNIVERSAL,type:R.Type.OCTETSTRING,constructed:!1,capture:"salt"},{name:"pkcs-12PbeParams.iterations",tagClass:R.Class.UNIVERSAL,type:R.Type.INTEGER,constructed:!1,capture:"iterations"}]};Z.encryptPrivateKeyInfo=function(e,t,a){a=a||{},a.saltSize=a.saltSize||8,a.count=a.count||2048,a.algorithm=a.algorithm||"aes128",a.prfAlgorithm=a.prfAlgorithm||"sha1";var r=K.random.getBytesSync(a.saltSize),n=a.count,s=R.integerToDer(n),i,o,c;if(a.algorithm.indexOf("aes")===0||a.algorithm==="des"){var l,u,p;switch(a.algorithm){case"aes128":i=16,l=16,u=Ir["aes128-CBC"],p=K.aes.createEncryptionCipher;break;case"aes192":i=24,l=16,u=Ir["aes192-CBC"],p=K.aes.createEncryptionCipher;break;case"aes256":i=32,l=16,u=Ir["aes256-CBC"],p=K.aes.createEncryptionCipher;break;case"des":i=8,l=8,u=Ir.desCBC,p=K.des.createEncryptionCipher;break;default:var f=new Error("Cannot encrypt private key. Unknown encryption algorithm.");throw f.algorithm=a.algorithm,f}var x="hmacWith"+a.prfAlgorithm.toUpperCase(),m=g0(x),y=K.pkcs5.pbkdf2(t,r,n,i,m),b=K.random.getBytesSync(l),S=p(y);S.start(b),S.update(R.toDer(e)),S.finish(),c=S.output.getBytes();var B=KE(r,s,i,x);o=R.create(R.Class.UNIVERSAL,R.Type.SEQUENCE,!0,[R.create(R.Class.UNIVERSAL,R.Type.OID,!1,R.oidToDer(Ir.pkcs5PBES2).getBytes()),R.create(R.Class.UNIVERSAL,R.Type.SEQUENCE,!0,[R.create(R.Class.UNIVERSAL,R.Type.SEQUENCE,!0,[R.create(R.Class.UNIVERSAL,R.Type.OID,!1,R.oidToDer(Ir.pkcs5PBKDF2).getBytes()),B]),R.create(R.Class.UNIVERSAL,R.Type.SEQUENCE,!0,[R.create(R.Class.UNIVERSAL,R.Type.OID,!1,R.oidToDer(u).getBytes()),R.create(R.Class.UNIVERSAL,R.Type.OCTETSTRING,!1,b)])])])}else if(a.algorithm==="3des"){i=24;var _=new K.util.ByteBuffer(r),y=Z.pbe.generatePkcs12Key(t,_,1,n,i),b=Z.pbe.generatePkcs12Key(t,_,2,n,i),S=K.des.createEncryptionCipher(y);S.start(b),S.update(R.toDer(e)),S.finish(),c=S.output.getBytes(),o=R.create(R.Class.UNIVERSAL,R.Type.SEQUENCE,!0,[R.create(R.Class.UNIVERSAL,R.Type.OID,!1,R.oidToDer(Ir["pbeWithSHAAnd3-KeyTripleDES-CBC"]).getBytes()),R.create(R.Class.UNIVERSAL,R.Type.SEQUENCE,!0,[R.create(R.Class.UNIVERSAL,R.Type.OCTETSTRING,!1,r),R.create(R.Class.UNIVERSAL,R.Type.INTEGER,!1,s.getBytes())])])}else{var f=new Error("Cannot encrypt private key. Unknown encryption algorithm.");throw f.algorithm=a.algorithm,f}var D=R.create(R.Class.UNIVERSAL,R.Type.SEQUENCE,!0,[o,R.create(R.Class.UNIVERSAL,R.Type.OCTETSTRING,!1,c)]);return D},Z.decryptPrivateKeyInfo=function(e,t){var a=null,r={},n=[];if(!R.validate(e,VE,r,n)){var s=new Error("Cannot read encrypted private key. ASN.1 object is not a supported EncryptedPrivateKeyInfo.");throw s.errors=n,s}var i=R.derToOid(r.encryptionOid),o=Z.pbe.getCipher(i,r.encryptionParams,t),c=K.util.createBuffer(r.encryptedData);return o.update(c),o.finish()&&(a=R.fromDer(o.output)),a},Z.encryptedPrivateKeyToPem=function(e,t){var a={type:"ENCRYPTED PRIVATE KEY",body:R.toDer(e).getBytes()};return K.pem.encode(a,{maxline:t})},Z.encryptedPrivateKeyFromPem=function(e){var t=K.pem.decode(e)[0];if(t.type!=="ENCRYPTED PRIVATE KEY"){var a=new Error('Could not convert encrypted private key from PEM; PEM header type is "ENCRYPTED PRIVATE KEY".');throw a.headerType=t.type,a}if(t.procType&&t.procType.type==="ENCRYPTED")throw new Error("Could not convert encrypted private key from PEM; PEM is encrypted.");return R.fromDer(t.body)},Z.encryptRsaPrivateKey=function(e,t,a){if(a=a||{},!a.legacy){var r=Z.wrapRsaPrivateKey(Z.privateKeyToAsn1(e));return r=Z.encryptPrivateKeyInfo(r,t,a),Z.encryptedPrivateKeyToPem(r)}var n,s,i,o;switch(a.algorithm){case"aes128":n="AES-128-CBC",i=16,s=K.random.getBytesSync(16),o=K.aes.createEncryptionCipher;break;case"aes192":n="AES-192-CBC",i=24,s=K.random.getBytesSync(16),o=K.aes.createEncryptionCipher;break;case"aes256":n="AES-256-CBC",i=32,s=K.random.getBytesSync(16),o=K.aes.createEncryptionCipher;break;case"3des":n="DES-EDE3-CBC",i=24,s=K.random.getBytesSync(8),o=K.des.createEncryptionCipher;break;case"des":n="DES-CBC",i=8,s=K.random.getBytesSync(8),o=K.des.createEncryptionCipher;break;default:var c=new Error('Could not encrypt RSA private key; unsupported encryption algorithm "'+a.algorithm+'".');throw c.algorithm=a.algorithm,c}var l=K.pbe.opensslDeriveBytes(t,s.substr(0,8),i),u=o(l);u.start(s),u.update(R.toDer(Z.privateKeyToAsn1(e))),u.finish();var p={type:"RSA PRIVATE KEY",procType:{version:"4",type:"ENCRYPTED"},dekInfo:{algorithm:n,parameters:K.util.bytesToHex(s).toUpperCase()},body:u.output.getBytes()};return K.pem.encode(p)},Z.decryptRsaPrivateKey=function(e,t){var a=null,r=K.pem.decode(e)[0];if(r.type!=="ENCRYPTED PRIVATE KEY"&&r.type!=="PRIVATE KEY"&&r.type!=="RSA PRIVATE KEY"){var n=new Error('Could not convert private key from PEM; PEM header type is not "ENCRYPTED PRIVATE KEY", "PRIVATE KEY", or "RSA PRIVATE KEY".');throw n.headerType=n,n}if(r.procType&&r.procType.type==="ENCRYPTED"){var s,i;switch(r.dekInfo.algorithm){case"DES-CBC":s=8,i=K.des.createDecryptionCipher;break;case"DES-EDE3-CBC":s=24,i=K.des.createDecryptionCipher;break;case"AES-128-CBC":s=16,i=K.aes.createDecryptionCipher;break;case"AES-192-CBC":s=24,i=K.aes.createDecryptionCipher;break;case"AES-256-CBC":s=32,i=K.aes.createDecryptionCipher;break;case"RC2-40-CBC":s=5,i=function(p){return K.rc2.createDecryptionCipher(p,40)};break;case"RC2-64-CBC":s=8,i=function(p){return K.rc2.createDecryptionCipher(p,64)};break;case"RC2-128-CBC":s=16,i=function(p){return K.rc2.createDecryptionCipher(p,128)};break;default:var n=new Error('Could not decrypt private key; unsupported encryption algorithm "'+r.dekInfo.algorithm+'".');throw n.algorithm=r.dekInfo.algorithm,n}var o=K.util.hexToBytes(r.dekInfo.parameters),c=K.pbe.opensslDeriveBytes(t,o.substr(0,8),s),l=i(c);if(l.start(o),l.update(K.util.createBuffer(r.body)),l.finish())a=l.output.getBytes();else return a}else a=r.body;return r.type==="ENCRYPTED PRIVATE KEY"?a=Z.decryptPrivateKeyInfo(R.fromDer(a),t):a=R.fromDer(a),a!==null&&(a=Z.privateKeyFromAsn1(a)),a},Z.pbe.generatePkcs12Key=function(e,t,a,r,n,s){var i,o;if(typeof s>"u"||s===null){if(!("sha1"in K.md))throw new Error('"sha1" hash algorithm unavailable.');s=K.md.sha1.create()}var c=s.digestLength,l=s.blockLength,u=new K.util.ByteBuffer,p=new K.util.ByteBuffer;if(e!=null){for(o=0;o<e.length;o++)p.putInt16(e.charCodeAt(o));p.putInt16(0)}var f=p.length(),x=t.length(),m=new K.util.ByteBuffer;m.fillWithByte(a,l);var y=l*Math.ceil(x/l),b=new K.util.ByteBuffer;for(o=0;o<y;o++)b.putByte(t.at(o%x));var S=l*Math.ceil(f/l),B=new K.util.ByteBuffer;for(o=0;o<S;o++)B.putByte(p.at(o%f));var _=b;_.putBuffer(B);for(var D=Math.ceil(n/c),k=1;k<=D;k++){var P=new K.util.ByteBuffer;P.putBytes(m.bytes()),P.putBytes(_.bytes());for(var z=0;z<r;z++)s.start(),s.update(P.getBytes()),P=s.digest();var W=new K.util.ByteBuffer;for(o=0;o<l;o++)W.putByte(P.at(o%c));var J=Math.ceil(x/l)+Math.ceil(f/l),te=new K.util.ByteBuffer;for(i=0;i<J;i++){var ve=new K.util.ByteBuffer(_.getBytes(l)),pe=511;for(o=W.length()-1;o>=0;o--)pe=pe>>8,pe+=W.at(o)+ve.at(o),ve.setAt(o,pe&255);te.putBuffer(ve)}_=te,u.putBuffer(P)}return u.truncate(u.length()-n),u},Z.pbe.getCipher=function(e,t,a){switch(e){case Z.oids.pkcs5PBES2:return Z.pbe.getCipherForPBES2(e,t,a);case Z.oids["pbeWithSHAAnd3-KeyTripleDES-CBC"]:case Z.oids["pbewithSHAAnd40BitRC2-CBC"]:return Z.pbe.getCipherForPKCS12PBE(e,t,a);default:var r=new Error("Cannot read encrypted PBE data block. Unsupported OID.");throw r.oid=e,r.supportedOids=["pkcs5PBES2","pbeWithSHAAnd3-KeyTripleDES-CBC","pbewithSHAAnd40BitRC2-CBC"],r}},Z.pbe.getCipherForPBES2=function(e,t,a){var r={},n=[];if(!R.validate(t,qE,r,n)){var s=new Error("Cannot read password-based-encryption algorithm parameters. ASN.1 object is not a supported EncryptedPrivateKeyInfo.");throw s.errors=n,s}if(e=R.derToOid(r.kdfOid),e!==Z.oids.pkcs5PBKDF2){var s=new Error("Cannot read encrypted private key. Unsupported key derivation function OID.");throw s.oid=e,s.supportedOids=["pkcs5PBKDF2"],s}if(e=R.derToOid(r.encOid),e!==Z.oids["aes128-CBC"]&&e!==Z.oids["aes192-CBC"]&&e!==Z.oids["aes256-CBC"]&&e!==Z.oids["des-EDE3-CBC"]&&e!==Z.oids.desCBC){var s=new Error("Cannot read encrypted private key. Unsupported encryption scheme OID.");throw s.oid=e,s.supportedOids=["aes128-CBC","aes192-CBC","aes256-CBC","des-EDE3-CBC","desCBC"],s}var i=r.kdfSalt,o=K.util.createBuffer(r.kdfIterationCount);o=o.getInt(o.length()<<3);var c,l;switch(Z.oids[e]){case"aes128-CBC":c=16,l=K.aes.createDecryptionCipher;break;case"aes192-CBC":c=24,l=K.aes.createDecryptionCipher;break;case"aes256-CBC":c=32,l=K.aes.createDecryptionCipher;break;case"des-EDE3-CBC":c=24,l=K.des.createDecryptionCipher;break;case"desCBC":c=8,l=K.des.createDecryptionCipher;break}var u=v0(r.prfOid),p=K.pkcs5.pbkdf2(a,i,o,c,u),f=r.encIv,x=l(p);return x.start(f),x},Z.pbe.getCipherForPKCS12PBE=function(e,t,a){var r={},n=[];if(!R.validate(t,jE,r,n)){var s=new Error("Cannot read password-based-encryption algorithm parameters. ASN.1 object is not a supported EncryptedPrivateKeyInfo.");throw s.errors=n,s}var i=K.util.createBuffer(r.salt),o=K.util.createBuffer(r.iterations);o=o.getInt(o.length()<<3);var c,l,u;switch(e){case Z.oids["pbeWithSHAAnd3-KeyTripleDES-CBC"]:c=24,l=8,u=K.des.startDecrypting;break;case Z.oids["pbewithSHAAnd40BitRC2-CBC"]:c=5,l=8,u=function(y,b){var S=K.rc2.createDecryptionCipher(y,40);return S.start(b,null),S};break;default:var s=new Error("Cannot read PKCS #12 PBE data block. Unsupported OID.");throw s.oid=e,s}var p=v0(r.prfOid),f=Z.pbe.generatePkcs12Key(a,i,1,o,c,p);p.start();var x=Z.pbe.generatePkcs12Key(a,i,2,o,l,p);return u(f,x)},Z.pbe.opensslDeriveBytes=function(e,t,a,r){if(typeof r>"u"||r===null){if(!("md5"in K.md))throw new Error('"md5" hash algorithm unavailable.');r=K.md.md5.create()}t===null&&(t="");for(var n=[h0(r,e+t)],s=16,i=1;s<a;++i,s+=16)n.push(h0(r,n[i-1]+e+t));return n.join("").substr(0,a)};function h0(e,t){return e.start().update(t).digest().getBytes()}function v0(e){var t;if(!e)t="hmacWithSHA1";else if(t=Z.oids[R.derToOid(e)],!t){var a=new Error("Unsupported PRF OID.");throw a.oid=e,a.supported=["hmacWithSHA1","hmacWithSHA224","hmacWithSHA256","hmacWithSHA384","hmacWithSHA512"],a}return g0(t)}function g0(e){var t=K.md;switch(e){case"hmacWithSHA224":t=K.md.sha512;case"hmacWithSHA1":case"hmacWithSHA256":case"hmacWithSHA384":case"hmacWithSHA512":e=e.substr(8).toLowerCase();break;default:var a=new Error("Unsupported PRF algorithm.");throw a.algorithm=e,a.supported=["hmacWithSHA1","hmacWithSHA224","hmacWithSHA256","hmacWithSHA384","hmacWithSHA512"],a}if(!t||!(e in t))throw new Error("Unknown hash algorithm: "+e);return t[e].create()}function KE(e,t,a,r){var n=R.create(R.Class.UNIVERSAL,R.Type.SEQUENCE,!0,[R.create(R.Class.UNIVERSAL,R.Type.OCTETSTRING,!1,e),R.create(R.Class.UNIVERSAL,R.Type.INTEGER,!1,t.getBytes())]);return r!=="hmacWithSHA1"&&n.value.push(R.create(R.Class.UNIVERSAL,R.Type.INTEGER,!1,K.util.hexToBytes(a.toString(16))),R.create(R.Class.UNIVERSAL,R.Type.SEQUENCE,!0,[R.create(R.Class.UNIVERSAL,R.Type.OID,!1,R.oidToDer(Z.oids[r]).getBytes()),R.create(R.Class.UNIVERSAL,R.Type.NULL,!1,"")])),n}var Wr=ee,q=Wr.asn1,Xr=Wr.pkcs7asn1=Wr.pkcs7asn1||{};Wr.pkcs7=Wr.pkcs7||{},Wr.pkcs7.asn1=Xr;var x0={name:"ContentInfo",tagClass:q.Class.UNIVERSAL,type:q.Type.SEQUENCE,constructed:!0,value:[{name:"ContentInfo.ContentType",tagClass:q.Class.UNIVERSAL,type:q.Type.OID,constructed:!1,capture:"contentType"},{name:"ContentInfo.content",tagClass:q.Class.CONTEXT_SPECIFIC,type:0,constructed:!0,optional:!0,captureAsn1:"content"}]};Xr.contentInfoValidator=x0;var y0={name:"EncryptedContentInfo",tagClass:q.Class.UNIVERSAL,type:q.Type.SEQUENCE,constructed:!0,value:[{name:"EncryptedContentInfo.contentType",tagClass:q.Class.UNIVERSAL,type:q.Type.OID,constructed:!1,capture:"contentType"},{name:"EncryptedContentInfo.contentEncryptionAlgorithm",tagClass:q.Class.UNIVERSAL,type:q.Type.SEQUENCE,constructed:!0,value:[{name:"EncryptedContentInfo.contentEncryptionAlgorithm.algorithm",tagClass:q.Class.UNIVERSAL,type:q.Type.OID,constructed:!1,capture:"encAlgorithm"},{name:"EncryptedContentInfo.contentEncryptionAlgorithm.parameter",tagClass:q.Class.UNIVERSAL,captureAsn1:"encParameter"}]},{name:"EncryptedContentInfo.encryptedContent",tagClass:q.Class.CONTEXT_SPECIFIC,type:0,capture:"encryptedContent",captureAsn1:"encryptedContentAsn1"}]};Xr.envelopedDataValidator={name:"EnvelopedData",tagClass:q.Class.UNIVERSAL,type:q.Type.SEQUENCE,constructed:!0,value:[{name:"EnvelopedData.Version",tagClass:q.Class.UNIVERSAL,type:q.Type.INTEGER,constructed:!1,capture:"version"},{name:"EnvelopedData.RecipientInfos",tagClass:q.Class.UNIVERSAL,type:q.Type.SET,constructed:!0,captureAsn1:"recipientInfos"}].concat(y0)},Xr.encryptedDataValidator={name:"EncryptedData",tagClass:q.Class.UNIVERSAL,type:q.Type.SEQUENCE,constructed:!0,value:[{name:"EncryptedData.Version",tagClass:q.Class.UNIVERSAL,type:q.Type.INTEGER,constructed:!1,capture:"version"}].concat(y0)};var zE={name:"SignerInfo",tagClass:q.Class.UNIVERSAL,type:q.Type.SEQUENCE,constructed:!0,value:[{name:"SignerInfo.version",tagClass:q.Class.UNIVERSAL,type:q.Type.INTEGER,constructed:!1},{name:"SignerInfo.issuerAndSerialNumber",tagClass:q.Class.UNIVERSAL,type:q.Type.SEQUENCE,constructed:!0,value:[{name:"SignerInfo.issuerAndSerialNumber.issuer",tagClass:q.Class.UNIVERSAL,type:q.Type.SEQUENCE,constructed:!0,captureAsn1:"issuer"},{name:"SignerInfo.issuerAndSerialNumber.serialNumber",tagClass:q.Class.UNIVERSAL,type:q.Type.INTEGER,constructed:!1,capture:"serial"}]},{name:"SignerInfo.digestAlgorithm",tagClass:q.Class.UNIVERSAL,type:q.Type.SEQUENCE,constructed:!0,value:[{name:"SignerInfo.digestAlgorithm.algorithm",tagClass:q.Class.UNIVERSAL,type:q.Type.OID,constructed:!1,capture:"digestAlgorithm"},{name:"SignerInfo.digestAlgorithm.parameter",tagClass:q.Class.UNIVERSAL,constructed:!1,captureAsn1:"digestParameter",optional:!0}]},{name:"SignerInfo.authenticatedAttributes",tagClass:q.Class.CONTEXT_SPECIFIC,type:0,constructed:!0,optional:!0,capture:"authenticatedAttributes"},{name:"SignerInfo.digestEncryptionAlgorithm",tagClass:q.Class.UNIVERSAL,type:q.Type.SEQUENCE,constructed:!0,capture:"signatureAlgorithm"},{name:"SignerInfo.encryptedDigest",tagClass:q.Class.UNIVERSAL,type:q.Type.OCTETSTRING,constructed:!1,capture:"signature"},{name:"SignerInfo.unauthenticatedAttributes",tagClass:q.Class.CONTEXT_SPECIFIC,type:1,constructed:!0,optional:!0,capture:"unauthenticatedAttributes"}]};Xr.signedDataValidator={name:"SignedData",tagClass:q.Class.UNIVERSAL,type:q.Type.SEQUENCE,constructed:!0,value:[{name:"SignedData.Version",tagClass:q.Class.UNIVERSAL,type:q.Type.INTEGER,constructed:!1,capture:"version"},{name:"SignedData.DigestAlgorithms",tagClass:q.Class.UNIVERSAL,type:q.Type.SET,constructed:!0,captureAsn1:"digestAlgorithms"},x0,{name:"SignedData.Certificates",tagClass:q.Class.CONTEXT_SPECIFIC,type:0,optional:!0,captureAsn1:"certificates"},{name:"SignedData.CertificateRevocationLists",tagClass:q.Class.CONTEXT_SPECIFIC,type:1,optional:!0,captureAsn1:"crls"},{name:"SignedData.SignerInfos",tagClass:q.Class.UNIVERSAL,type:q.Type.SET,capture:"signerInfos",optional:!0,value:[zE]}]},Xr.recipientInfoValidator={name:"RecipientInfo",tagClass:q.Class.UNIVERSAL,type:q.Type.SEQUENCE,constructed:!0,value:[{name:"RecipientInfo.version",tagClass:q.Class.UNIVERSAL,type:q.Type.INTEGER,constructed:!1,capture:"version"},{name:"RecipientInfo.issuerAndSerial",tagClass:q.Class.UNIVERSAL,type:q.Type.SEQUENCE,constructed:!0,value:[{name:"RecipientInfo.issuerAndSerial.issuer",tagClass:q.Class.UNIVERSAL,type:q.Type.SEQUENCE,constructed:!0,captureAsn1:"issuer"},{name:"RecipientInfo.issuerAndSerial.serialNumber",tagClass:q.Class.UNIVERSAL,type:q.Type.INTEGER,constructed:!1,capture:"serial"}]},{name:"RecipientInfo.keyEncryptionAlgorithm",tagClass:q.Class.UNIVERSAL,type:q.Type.SEQUENCE,constructed:!0,value:[{name:"RecipientInfo.keyEncryptionAlgorithm.algorithm",tagClass:q.Class.UNIVERSAL,type:q.Type.OID,constructed:!1,capture:"encAlgorithm"},{name:"RecipientInfo.keyEncryptionAlgorithm.parameter",tagClass:q.Class.UNIVERSAL,constructed:!1,captureAsn1:"encParameter",optional:!0}]},{name:"RecipientInfo.encryptedKey",tagClass:q.Class.UNIVERSAL,type:q.Type.OCTETSTRING,constructed:!1,capture:"encKey"}]};var Br=ee;Br.mgf=Br.mgf||{};var HE=Br.mgf.mgf1=Br.mgf1=Br.mgf1||{};HE.create=function(e){var t={generate:function(a,r){for(var n=new Br.util.ByteBuffer,s=Math.ceil(r/e.digestLength),i=0;i<s;i++){var o=new Br.util.ByteBuffer;o.putInt32(i),e.start(),e.update(a+o.getBytes()),n.putBuffer(e.digest())}return n.truncate(n.length()-r),n.getBytes()}};return t};var ol=ee;ol.mgf=ol.mgf||{},ol.mgf.mgf1=ol.mgf1;var _r=ee,$E=_r.pss=_r.pss||{};$E.create=function(e){arguments.length===3&&(e={md:arguments[0],mgf:arguments[1],saltLength:arguments[2]});var t=e.md,a=e.mgf,r=t.digestLength,n=e.salt||null;typeof n=="string"&&(n=_r.util.createBuffer(n));var s;if("saltLength"in e)s=e.saltLength;else if(n!==null)s=n.length();else throw new Error("Salt length not specified or specific salt not given.");if(n!==null&&n.length()!==s)throw new Error("Given salt length does not match length of given salt.");var i=e.prng||_r.random,o={};return o.encode=function(c,l){var u,p=l-1,f=Math.ceil(p/8),x=c.digest().getBytes();if(f<r+s+2)throw new Error("Message is too long to encrypt.");var m;n===null?m=i.getBytesSync(s):m=n.bytes();var y=new _r.util.ByteBuffer;y.fillWithByte(0,8),y.putBytes(x),y.putBytes(m),t.start(),t.update(y.getBytes());var b=t.digest().getBytes(),S=new _r.util.ByteBuffer;S.fillWithByte(0,f-s-r-2),S.putByte(1),S.putBytes(m);var B=S.getBytes(),_=f-r-1,D=a.generate(b,_),k="";for(u=0;u<_;u++)k+=String.fromCharCode(B.charCodeAt(u)^D.charCodeAt(u));var P=65280>>8*f-p&255;return k=String.fromCharCode(k.charCodeAt(0)&~P)+k.substr(1),k+b+"\xBC"},o.verify=function(c,l,u){var p,f=u-1,x=Math.ceil(f/8);if(l=l.substr(-x),x<r+s+2)throw new Error("Inconsistent parameters to PSS signature verification.");if(l.charCodeAt(x-1)!==188)throw new Error("Encoded message does not end in 0xBC.");var m=x-r-1,y=l.substr(0,m),b=l.substr(m,r),S=65280>>8*x-f&255;if((y.charCodeAt(0)&S)!==0)throw new Error("Bits beyond keysize not zero as expected.");var B=a.generate(b,m),_="";for(p=0;p<m;p++)_+=String.fromCharCode(y.charCodeAt(p)^B.charCodeAt(p));_=String.fromCharCode(_.charCodeAt(0)&~S)+_.substr(1);var D=x-r-s-2;for(p=0;p<D;p++)if(_.charCodeAt(p)!==0)throw new Error("Leftmost octets not zero as expected");if(_.charCodeAt(D)!==1)throw new Error("Inconsistent PSS signature, 0x01 marker not found");var k=_.substr(-s),P=new _r.util.ByteBuffer;P.fillWithByte(0,8),P.putBytes(c),P.putBytes(k),t.start(),t.update(P.getBytes());var z=t.digest().getBytes();return b===z},o};var G=ee,h=G.asn1,F=G.pki=G.pki||{},fe=F.oids,Ue={};Ue.CN=fe.commonName,Ue.commonName="CN",Ue.C=fe.countryName,Ue.countryName="C",Ue.L=fe.localityName,Ue.localityName="L",Ue.ST=fe.stateOrProvinceName,Ue.stateOrProvinceName="ST",Ue.O=fe.organizationName,Ue.organizationName="O",Ue.OU=fe.organizationalUnitName,Ue.organizationalUnitName="OU",Ue.E=fe.emailAddress,Ue.emailAddress="E";var b0=G.pki.rsa.publicKeyValidator,GE={name:"Certificate",tagClass:h.Class.UNIVERSAL,type:h.Type.SEQUENCE,constructed:!0,value:[{name:"Certificate.TBSCertificate",tagClass:h.Class.UNIVERSAL,type:h.Type.SEQUENCE,constructed:!0,captureAsn1:"tbsCertificate",value:[{name:"Certificate.TBSCertificate.version",tagClass:h.Class.CONTEXT_SPECIFIC,type:0,constructed:!0,optional:!0,value:[{name:"Certificate.TBSCertificate.version.integer",tagClass:h.Class.UNIVERSAL,type:h.Type.INTEGER,constructed:!1,capture:"certVersion"}]},{name:"Certificate.TBSCertificate.serialNumber",tagClass:h.Class.UNIVERSAL,type:h.Type.INTEGER,constructed:!1,capture:"certSerialNumber"},{name:"Certificate.TBSCertificate.signature",tagClass:h.Class.UNIVERSAL,type:h.Type.SEQUENCE,constructed:!0,value:[{name:"Certificate.TBSCertificate.signature.algorithm",tagClass:h.Class.UNIVERSAL,type:h.Type.OID,constructed:!1,capture:"certinfoSignatureOid"},{name:"Certificate.TBSCertificate.signature.parameters",tagClass:h.Class.UNIVERSAL,optional:!0,captureAsn1:"certinfoSignatureParams"}]},{name:"Certificate.TBSCertificate.issuer",tagClass:h.Class.UNIVERSAL,type:h.Type.SEQUENCE,constructed:!0,captureAsn1:"certIssuer"},{name:"Certificate.TBSCertificate.validity",tagClass:h.Class.UNIVERSAL,type:h.Type.SEQUENCE,constructed:!0,value:[{name:"Certificate.TBSCertificate.validity.notBefore (utc)",tagClass:h.Class.UNIVERSAL,type:h.Type.UTCTIME,constructed:!1,optional:!0,capture:"certValidity1UTCTime"},{name:"Certificate.TBSCertificate.validity.notBefore (generalized)",tagClass:h.Class.UNIVERSAL,type:h.Type.GENERALIZEDTIME,constructed:!1,optional:!0,capture:"certValidity2GeneralizedTime"},{name:"Certificate.TBSCertificate.validity.notAfter (utc)",tagClass:h.Class.UNIVERSAL,type:h.Type.UTCTIME,constructed:!1,optional:!0,capture:"certValidity3UTCTime"},{name:"Certificate.TBSCertificate.validity.notAfter (generalized)",tagClass:h.Class.UNIVERSAL,type:h.Type.GENERALIZEDTIME,constructed:!1,optional:!0,capture:"certValidity4GeneralizedTime"}]},{name:"Certificate.TBSCertificate.subject",tagClass:h.Class.UNIVERSAL,type:h.Type.SEQUENCE,constructed:!0,captureAsn1:"certSubject"},b0,{name:"Certificate.TBSCertificate.issuerUniqueID",tagClass:h.Class.CONTEXT_SPECIFIC,type:1,constructed:!0,optional:!0,value:[{name:"Certificate.TBSCertificate.issuerUniqueID.id",tagClass:h.Class.UNIVERSAL,type:h.Type.BITSTRING,constructed:!1,captureBitStringValue:"certIssuerUniqueId"}]},{name:"Certificate.TBSCertificate.subjectUniqueID",tagClass:h.Class.CONTEXT_SPECIFIC,type:2,constructed:!0,optional:!0,value:[{name:"Certificate.TBSCertificate.subjectUniqueID.id",tagClass:h.Class.UNIVERSAL,type:h.Type.BITSTRING,constructed:!1,captureBitStringValue:"certSubjectUniqueId"}]},{name:"Certificate.TBSCertificate.extensions",tagClass:h.Class.CONTEXT_SPECIFIC,type:3,constructed:!0,captureAsn1:"certExtensions",optional:!0}]},{name:"Certificate.signatureAlgorithm",tagClass:h.Class.UNIVERSAL,type:h.Type.SEQUENCE,constructed:!0,value:[{name:"Certificate.signatureAlgorithm.algorithm",tagClass:h.Class.UNIVERSAL,type:h.Type.OID,constructed:!1,capture:"certSignatureOid"},{name:"Certificate.TBSCertificate.signature.parameters",tagClass:h.Class.UNIVERSAL,optional:!0,captureAsn1:"certSignatureParams"}]},{name:"Certificate.signatureValue",tagClass:h.Class.UNIVERSAL,type:h.Type.BITSTRING,constructed:!1,captureBitStringValue:"certSignature"}]},QE={name:"rsapss",tagClass:h.Class.UNIVERSAL,type:h.Type.SEQUENCE,constructed:!0,value:[{name:"rsapss.hashAlgorithm",tagClass:h.Class.CONTEXT_SPECIFIC,type:0,constructed:!0,value:[{name:"rsapss.hashAlgorithm.AlgorithmIdentifier",tagClass:h.Class.UNIVERSAL,type:h.Class.SEQUENCE,constructed:!0,optional:!0,value:[{name:"rsapss.hashAlgorithm.AlgorithmIdentifier.algorithm",tagClass:h.Class.UNIVERSAL,type:h.Type.OID,constructed:!1,capture:"hashOid"}]}]},{name:"rsapss.maskGenAlgorithm",tagClass:h.Class.CONTEXT_SPECIFIC,type:1,constructed:!0,value:[{name:"rsapss.maskGenAlgorithm.AlgorithmIdentifier",tagClass:h.Class.UNIVERSAL,type:h.Class.SEQUENCE,constructed:!0,optional:!0,value:[{name:"rsapss.maskGenAlgorithm.AlgorithmIdentifier.algorithm",tagClass:h.Class.UNIVERSAL,type:h.Type.OID,constructed:!1,capture:"maskGenOid"},{name:"rsapss.maskGenAlgorithm.AlgorithmIdentifier.params",tagClass:h.Class.UNIVERSAL,type:h.Type.SEQUENCE,constructed:!0,value:[{name:"rsapss.maskGenAlgorithm.AlgorithmIdentifier.params.algorithm",tagClass:h.Class.UNIVERSAL,type:h.Type.OID,constructed:!1,capture:"maskGenHashOid"}]}]}]},{name:"rsapss.saltLength",tagClass:h.Class.CONTEXT_SPECIFIC,type:2,optional:!0,value:[{name:"rsapss.saltLength.saltLength",tagClass:h.Class.UNIVERSAL,type:h.Class.INTEGER,constructed:!1,capture:"saltLength"}]},{name:"rsapss.trailerField",tagClass:h.Class.CONTEXT_SPECIFIC,type:3,optional:!0,value:[{name:"rsapss.trailer.trailer",tagClass:h.Class.UNIVERSAL,type:h.Class.INTEGER,constructed:!1,capture:"trailer"}]}]},WE={name:"CertificationRequestInfo",tagClass:h.Class.UNIVERSAL,type:h.Type.SEQUENCE,constructed:!0,captureAsn1:"certificationRequestInfo",value:[{name:"CertificationRequestInfo.integer",tagClass:h.Class.UNIVERSAL,type:h.Type.INTEGER,constructed:!1,capture:"certificationRequestInfoVersion"},{name:"CertificationRequestInfo.subject",tagClass:h.Class.UNIVERSAL,type:h.Type.SEQUENCE,constructed:!0,captureAsn1:"certificationRequestInfoSubject"},b0,{name:"CertificationRequestInfo.attributes",tagClass:h.Class.CONTEXT_SPECIFIC,type:0,constructed:!0,optional:!0,capture:"certificationRequestInfoAttributes",value:[{name:"CertificationRequestInfo.attributes",tagClass:h.Class.UNIVERSAL,type:h.Type.SEQUENCE,constructed:!0,value:[{name:"CertificationRequestInfo.attributes.type",tagClass:h.Class.UNIVERSAL,type:h.Type.OID,constructed:!1},{name:"CertificationRequestInfo.attributes.value",tagClass:h.Class.UNIVERSAL,type:h.Type.SET,constructed:!0}]}]}]},XE={name:"CertificationRequest",tagClass:h.Class.UNIVERSAL,type:h.Type.SEQUENCE,constructed:!0,captureAsn1:"csr",value:[WE,{name:"CertificationRequest.signatureAlgorithm",tagClass:h.Class.UNIVERSAL,type:h.Type.SEQUENCE,constructed:!0,value:[{name:"CertificationRequest.signatureAlgorithm.algorithm",tagClass:h.Class.UNIVERSAL,type:h.Type.OID,constructed:!1,capture:"csrSignatureOid"},{name:"CertificationRequest.signatureAlgorithm.parameters",tagClass:h.Class.UNIVERSAL,optional:!0,captureAsn1:"csrSignatureParams"}]},{name:"CertificationRequest.signature",tagClass:h.Class.UNIVERSAL,type:h.Type.BITSTRING,constructed:!1,captureBitStringValue:"csrSignature"}]};F.RDNAttributesAsArray=function(e,t){for(var a=[],r,n,s,i=0;i<e.value.length;++i){r=e.value[i];for(var o=0;o<r.value.length;++o)s={},n=r.value[o],s.type=h.derToOid(n.value[0].value),s.value=n.value[1].value,s.valueTagClass=n.value[1].type,s.type in fe&&(s.name=fe[s.type],s.name in Ue&&(s.shortName=Ue[s.name])),t&&(t.update(s.type),t.update(s.value)),a.push(s)}return a},F.CRIAttributesAsArray=function(e){for(var t=[],a=0;a<e.length;++a)for(var r=e[a],n=h.derToOid(r.value[0].value),s=r.value[1].value,i=0;i<s.length;++i){var o={};if(o.type=n,o.value=s[i].value,o.valueTagClass=s[i].type,o.type in fe&&(o.name=fe[o.type],o.name in Ue&&(o.shortName=Ue[o.name])),o.type===fe.extensionRequest){o.extensions=[];for(var c=0;c<o.value.length;++c)o.extensions.push(F.certificateExtensionFromAsn1(o.value[c]))}t.push(o)}return t};function ur(e,t){typeof t=="string"&&(t={shortName:t});for(var a=null,r,n=0;a===null&&n<e.attributes.length;++n)r=e.attributes[n],(t.type&&t.type===r.type||t.name&&t.name===r.name||t.shortName&&t.shortName===r.shortName)&&(a=r);return a}var cl=function(e,t,a){var r={};if(e!==fe["RSASSA-PSS"])return r;a&&(r={hash:{algorithmOid:fe.sha1},mgf:{algorithmOid:fe.mgf1,hash:{algorithmOid:fe.sha1}},saltLength:20});var n={},s=[];if(!h.validate(t,QE,n,s)){var i=new Error("Cannot read RSASSA-PSS parameter block.");throw i.errors=s,i}return n.hashOid!==void 0&&(r.hash=r.hash||{},r.hash.algorithmOid=h.derToOid(n.hashOid)),n.maskGenOid!==void 0&&(r.mgf=r.mgf||{},r.mgf.algorithmOid=h.derToOid(n.maskGenOid),r.mgf.hash=r.mgf.hash||{},r.mgf.hash.algorithmOid=h.derToOid(n.maskGenHashOid)),n.saltLength!==void 0&&(r.saltLength=n.saltLength.charCodeAt(0)),r},ll=function(e){switch(fe[e.signatureOid]){case"sha1WithRSAEncryption":case"sha1WithRSASignature":return G.md.sha1.create();case"md5WithRSAEncryption":return G.md.md5.create();case"sha256WithRSAEncryption":return G.md.sha256.create();case"sha384WithRSAEncryption":return G.md.sha384.create();case"sha512WithRSAEncryption":return G.md.sha512.create();case"RSASSA-PSS":return G.md.sha256.create();default:var t=new Error("Could not compute "+e.type+" digest. Unknown signature OID.");throw t.signatureOid=e.signatureOid,t}},E0=function(e){var t=e.certificate,a;switch(t.signatureOid){case fe.sha1WithRSAEncryption:case fe.sha1WithRSASignature:break;case fe["RSASSA-PSS"]:var r,n;if(r=fe[t.signatureParameters.mgf.hash.algorithmOid],r===void 0||G.md[r]===void 0){var s=new Error("Unsupported MGF hash function.");throw s.oid=t.signatureParameters.mgf.hash.algorithmOid,s.name=r,s}if(n=fe[t.signatureParameters.mgf.algorithmOid],n===void 0||G.mgf[n]===void 0){var s=new Error("Unsupported MGF function.");throw s.oid=t.signatureParameters.mgf.algorithmOid,s.name=n,s}if(n=G.mgf[n].create(G.md[r].create()),r=fe[t.signatureParameters.hash.algorithmOid],r===void 0||G.md[r]===void 0){var s=new Error("Unsupported RSASSA-PSS hash function.");throw s.oid=t.signatureParameters.hash.algorithmOid,s.name=r,s}a=G.pss.create(G.md[r].create(),n,t.signatureParameters.saltLength);break}return t.publicKey.verify(e.md.digest().getBytes(),e.signature,a)};F.certificateFromPem=function(e,t,a){var r=G.pem.decode(e)[0];if(r.type!=="CERTIFICATE"&&r.type!=="X509 CERTIFICATE"&&r.type!=="TRUSTED CERTIFICATE"){var n=new Error('Could not convert certificate from PEM; PEM header type is not "CERTIFICATE", "X509 CERTIFICATE", or "TRUSTED CERTIFICATE".');throw n.headerType=r.type,n}if(r.procType&&r.procType.type==="ENCRYPTED")throw new Error("Could not convert certificate from PEM; PEM is encrypted.");var s=h.fromDer(r.body,a);return F.certificateFromAsn1(s,t)},F.certificateToPem=function(e,t){var a={type:"CERTIFICATE",body:h.toDer(F.certificateToAsn1(e)).getBytes()};return G.pem.encode(a,{maxline:t})},F.publicKeyFromPem=function(e){var t=G.pem.decode(e)[0];if(t.type!=="PUBLIC KEY"&&t.type!=="RSA PUBLIC KEY"){var a=new Error('Could not convert public key from PEM; PEM header type is not "PUBLIC KEY" or "RSA PUBLIC KEY".');throw a.headerType=t.type,a}if(t.procType&&t.procType.type==="ENCRYPTED")throw new Error("Could not convert public key from PEM; PEM is encrypted.");var r=h.fromDer(t.body);return F.publicKeyFromAsn1(r)},F.publicKeyToPem=function(e,t){var a={type:"PUBLIC KEY",body:h.toDer(F.publicKeyToAsn1(e)).getBytes()};return G.pem.encode(a,{maxline:t})},F.publicKeyToRSAPublicKeyPem=function(e,t){var a={type:"RSA PUBLIC KEY",body:h.toDer(F.publicKeyToRSAPublicKey(e)).getBytes()};return G.pem.encode(a,{maxline:t})},F.getPublicKeyFingerprint=function(e,t){t=t||{};var a=t.md||G.md.sha1.create(),r=t.type||"RSAPublicKey",n;switch(r){case"RSAPublicKey":n=h.toDer(F.publicKeyToRSAPublicKey(e)).getBytes();break;case"SubjectPublicKeyInfo":n=h.toDer(F.publicKeyToAsn1(e)).getBytes();break;default:throw new Error('Unknown fingerprint type "'+t.type+'".')}a.start(),a.update(n);var s=a.digest();if(t.encoding==="hex"){var i=s.toHex();return t.delimiter?i.match(/.{2}/g).join(t.delimiter):i}else{if(t.encoding==="binary")return s.getBytes();if(t.encoding)throw new Error('Unknown encoding "'+t.encoding+'".')}return s},F.certificationRequestFromPem=function(e,t,a){var r=G.pem.decode(e)[0];if(r.type!=="CERTIFICATE REQUEST"){var n=new Error('Could not convert certification request from PEM; PEM header type is not "CERTIFICATE REQUEST".');throw n.headerType=r.type,n}if(r.procType&&r.procType.type==="ENCRYPTED")throw new Error("Could not convert certification request from PEM; PEM is encrypted.");var s=h.fromDer(r.body,a);return F.certificationRequestFromAsn1(s,t)},F.certificationRequestToPem=function(e,t){var a={type:"CERTIFICATE REQUEST",body:h.toDer(F.certificationRequestToAsn1(e)).getBytes()};return G.pem.encode(a,{maxline:t})},F.createCertificate=function(){var e={};return e.version=2,e.serialNumber="00",e.signatureOid=null,e.signature=null,e.siginfo={},e.siginfo.algorithmOid=null,e.validity={},e.validity.notBefore=new Date,e.validity.notAfter=new Date,e.issuer={},e.issuer.getField=function(t){return ur(e.issuer,t)},e.issuer.addField=function(t){Lt([t]),e.issuer.attributes.push(t)},e.issuer.attributes=[],e.issuer.hash=null,e.subject={},e.subject.getField=function(t){return ur(e.subject,t)},e.subject.addField=function(t){Lt([t]),e.subject.attributes.push(t)},e.subject.attributes=[],e.subject.hash=null,e.extensions=[],e.publicKey=null,e.md=null,e.setSubject=function(t,a){Lt(t),e.subject.attributes=t,delete e.subject.uniqueId,a&&(e.subject.uniqueId=a),e.subject.hash=null},e.setIssuer=function(t,a){Lt(t),e.issuer.attributes=t,delete e.issuer.uniqueId,a&&(e.issuer.uniqueId=a),e.issuer.hash=null},e.setExtensions=function(t){for(var a=0;a<t.length;++a)C0(t[a],{cert:e});e.extensions=t},e.getExtension=function(t){typeof t=="string"&&(t={name:t});for(var a=null,r,n=0;a===null&&n<e.extensions.length;++n)r=e.extensions[n],(t.id&&r.id===t.id||t.name&&r.name===t.name)&&(a=r);return a},e.sign=function(t,a){e.md=a||G.md.sha1.create();var r=fe[e.md.algorithm+"WithRSAEncryption"];if(!r){var n=new Error("Could not compute certificate digest. Unknown message digest algorithm OID.");throw n.algorithm=e.md.algorithm,n}e.signatureOid=e.siginfo.algorithmOid=r,e.tbsCertificate=F.getTBSCertificate(e);var s=h.toDer(e.tbsCertificate);e.md.update(s.getBytes()),e.signature=t.sign(e.md)},e.verify=function(t){var a=!1;if(!e.issued(t)){var r=t.issuer,n=e.subject,s=new Error("The parent certificate did not issue the given child certificate; the child certificate's issuer does not match the parent's subject.");throw s.expectedIssuer=n.attributes,s.actualIssuer=r.attributes,s}var i=t.md;if(i===null){i=ll({signatureOid:t.signatureOid,type:"certificate"});var o=t.tbsCertificate||F.getTBSCertificate(t),c=h.toDer(o);i.update(c.getBytes())}return i!==null&&(a=E0({certificate:e,md:i,signature:t.signature})),a},e.isIssuer=function(t){var a=!1,r=e.issuer,n=t.subject;if(r.hash&&n.hash)a=r.hash===n.hash;else if(r.attributes.length===n.attributes.length){a=!0;for(var s,i,o=0;a&&o<r.attributes.length;++o)s=r.attributes[o],i=n.attributes[o],(s.type!==i.type||s.value!==i.value)&&(a=!1)}return a},e.issued=function(t){return t.isIssuer(e)},e.generateSubjectKeyIdentifier=function(){return F.getPublicKeyFingerprint(e.publicKey,{type:"RSAPublicKey"})},e.verifySubjectKeyIdentifier=function(){for(var t=fe.subjectKeyIdentifier,a=0;a<e.extensions.length;++a){var r=e.extensions[a];if(r.id===t){var n=e.generateSubjectKeyIdentifier().getBytes();return G.util.hexToBytes(r.subjectKeyIdentifier)===n}}return!1},e},F.certificateFromAsn1=function(e,t){var a={},r=[];if(!h.validate(e,GE,a,r)){var n=new Error("Cannot read X.509 certificate. ASN.1 object is not an X509v3 Certificate.");throw n.errors=r,n}var s=h.derToOid(a.publicKeyOid);if(s!==F.oids.rsaEncryption)throw new Error("Cannot read public key. OID is not RSA.");var i=F.createCertificate();i.version=a.certVersion?a.certVersion.charCodeAt(0):0;var o=G.util.createBuffer(a.certSerialNumber);i.serialNumber=o.toHex(),i.signatureOid=G.asn1.derToOid(a.certSignatureOid),i.signatureParameters=cl(i.signatureOid,a.certSignatureParams,!0),i.siginfo.algorithmOid=G.asn1.derToOid(a.certinfoSignatureOid),i.siginfo.parameters=cl(i.siginfo.algorithmOid,a.certinfoSignatureParams,!1),i.signature=a.certSignature;var c=[];if(a.certValidity1UTCTime!==void 0&&c.push(h.utcTimeToDate(a.certValidity1UTCTime)),a.certValidity2GeneralizedTime!==void 0&&c.push(h.generalizedTimeToDate(a.certValidity2GeneralizedTime)),a.certValidity3UTCTime!==void 0&&c.push(h.utcTimeToDate(a.certValidity3UTCTime)),a.certValidity4GeneralizedTime!==void 0&&c.push(h.generalizedTimeToDate(a.certValidity4GeneralizedTime)),c.length>2)throw new Error("Cannot read notBefore/notAfter validity times; more than two times were provided in the certificate.");if(c.length<2)throw new Error("Cannot read notBefore/notAfter validity times; they were not provided as either UTCTime or GeneralizedTime.");if(i.validity.notBefore=c[0],i.validity.notAfter=c[1],i.tbsCertificate=a.tbsCertificate,t){i.md=ll({signatureOid:i.signatureOid,type:"certificate"});var l=h.toDer(i.tbsCertificate);i.md.update(l.getBytes())}var u=G.md.sha1.create(),p=h.toDer(a.certIssuer);u.update(p.getBytes()),i.issuer.getField=function(m){return ur(i.issuer,m)},i.issuer.addField=function(m){Lt([m]),i.issuer.attributes.push(m)},i.issuer.attributes=F.RDNAttributesAsArray(a.certIssuer),a.certIssuerUniqueId&&(i.issuer.uniqueId=a.certIssuerUniqueId),i.issuer.hash=u.digest().toHex();var f=G.md.sha1.create(),x=h.toDer(a.certSubject);return f.update(x.getBytes()),i.subject.getField=function(m){return ur(i.subject,m)},i.subject.addField=function(m){Lt([m]),i.subject.attributes.push(m)},i.subject.attributes=F.RDNAttributesAsArray(a.certSubject),a.certSubjectUniqueId&&(i.subject.uniqueId=a.certSubjectUniqueId),i.subject.hash=f.digest().toHex(),a.certExtensions?i.extensions=F.certificateExtensionsFromAsn1(a.certExtensions):i.extensions=[],i.publicKey=F.publicKeyFromAsn1(a.subjectPublicKeyInfo),i},F.certificateExtensionsFromAsn1=function(e){for(var t=[],a=0;a<e.value.length;++a)for(var r=e.value[a],n=0;n<r.value.length;++n)t.push(F.certificateExtensionFromAsn1(r.value[n]));return t},F.certificateExtensionFromAsn1=function(e){var t={};if(t.id=h.derToOid(e.value[0].value),t.critical=!1,e.value[1].type===h.Type.BOOLEAN?(t.critical=e.value[1].value.charCodeAt(0)!==0,t.value=e.value[2].value):t.value=e.value[1].value,t.id in fe){if(t.name=fe[t.id],t.name==="keyUsage"){var a=h.fromDer(t.value),r=0,n=0;a.value.length>1&&(r=a.value.charCodeAt(1),n=a.value.length>2?a.value.charCodeAt(2):0),t.digitalSignature=(r&128)===128,t.nonRepudiation=(r&64)===64,t.keyEncipherment=(r&32)===32,t.dataEncipherment=(r&16)===16,t.keyAgreement=(r&8)===8,t.keyCertSign=(r&4)===4,t.cRLSign=(r&2)===2,t.encipherOnly=(r&1)===1,t.decipherOnly=(n&128)===128}else if(t.name==="basicConstraints"){var a=h.fromDer(t.value);a.value.length>0&&a.value[0].type===h.Type.BOOLEAN?t.cA=a.value[0].value.charCodeAt(0)!==0:t.cA=!1;var s=null;a.value.length>0&&a.value[0].type===h.Type.INTEGER?s=a.value[0].value:a.value.length>1&&(s=a.value[1].value),s!==null&&(t.pathLenConstraint=h.derToInteger(s))}else if(t.name==="extKeyUsage")for(var a=h.fromDer(t.value),i=0;i<a.value.length;++i){var o=h.derToOid(a.value[i].value);o in fe?t[fe[o]]=!0:t[o]=!0}else if(t.name==="nsCertType"){var a=h.fromDer(t.value),r=0;a.value.length>1&&(r=a.value.charCodeAt(1)),t.client=(r&128)===128,t.server=(r&64)===64,t.email=(r&32)===32,t.objsign=(r&16)===16,t.reserved=(r&8)===8,t.sslCA=(r&4)===4,t.emailCA=(r&2)===2,t.objCA=(r&1)===1}else if(t.name==="subjectAltName"||t.name==="issuerAltName"){t.altNames=[];for(var c,a=h.fromDer(t.value),l=0;l<a.value.length;++l){c=a.value[l];var u={type:c.type,value:c.value};switch(t.altNames.push(u),c.type){case 1:case 2:case 6:break;case 7:u.ip=G.util.bytesToIP(c.value);break;case 8:u.oid=h.derToOid(c.value);break}}}else if(t.name==="subjectKeyIdentifier"){var a=h.fromDer(t.value);t.subjectKeyIdentifier=G.util.bytesToHex(a.value)}}return t},F.certificationRequestFromAsn1=function(e,t){var a={},r=[];if(!h.validate(e,XE,a,r)){var n=new Error("Cannot read PKCS#10 certificate request. ASN.1 object is not a PKCS#10 CertificationRequest.");throw n.errors=r,n}var s=h.derToOid(a.publicKeyOid);if(s!==F.oids.rsaEncryption)throw new Error("Cannot read public key. OID is not RSA.");var i=F.createCertificationRequest();if(i.version=a.csrVersion?a.csrVersion.charCodeAt(0):0,i.signatureOid=G.asn1.derToOid(a.csrSignatureOid),i.signatureParameters=cl(i.signatureOid,a.csrSignatureParams,!0),i.siginfo.algorithmOid=G.asn1.derToOid(a.csrSignatureOid),i.siginfo.parameters=cl(i.siginfo.algorithmOid,a.csrSignatureParams,!1),i.signature=a.csrSignature,i.certificationRequestInfo=a.certificationRequestInfo,t){i.md=ll({signatureOid:i.signatureOid,type:"certification request"});var o=h.toDer(i.certificationRequestInfo);i.md.update(o.getBytes())}var c=G.md.sha1.create();return i.subject.getField=function(l){return ur(i.subject,l)},i.subject.addField=function(l){Lt([l]),i.subject.attributes.push(l)},i.subject.attributes=F.RDNAttributesAsArray(a.certificationRequestInfoSubject,c),i.subject.hash=c.digest().toHex(),i.publicKey=F.publicKeyFromAsn1(a.subjectPublicKeyInfo),i.getAttribute=function(l){return ur(i,l)},i.addAttribute=function(l){Lt([l]),i.attributes.push(l)},i.attributes=F.CRIAttributesAsArray(a.certificationRequestInfoAttributes||[]),i},F.createCertificationRequest=function(){var e={};return e.version=0,e.signatureOid=null,e.signature=null,e.siginfo={},e.siginfo.algorithmOid=null,e.subject={},e.subject.getField=function(t){return ur(e.subject,t)},e.subject.addField=function(t){Lt([t]),e.subject.attributes.push(t)},e.subject.attributes=[],e.subject.hash=null,e.publicKey=null,e.attributes=[],e.getAttribute=function(t){return ur(e,t)},e.addAttribute=function(t){Lt([t]),e.attributes.push(t)},e.md=null,e.setSubject=function(t){Lt(t),e.subject.attributes=t,e.subject.hash=null},e.setAttributes=function(t){Lt(t),e.attributes=t},e.sign=function(t,a){e.md=a||G.md.sha1.create();var r=fe[e.md.algorithm+"WithRSAEncryption"];if(!r){var n=new Error("Could not compute certification request digest. Unknown message digest algorithm OID.");throw n.algorithm=e.md.algorithm,n}e.signatureOid=e.siginfo.algorithmOid=r,e.certificationRequestInfo=F.getCertificationRequestInfo(e);var s=h.toDer(e.certificationRequestInfo);e.md.update(s.getBytes()),e.signature=t.sign(e.md)},e.verify=function(){var t=!1,a=e.md;if(a===null){a=ll({signatureOid:e.signatureOid,type:"certification request"});var r=e.certificationRequestInfo||F.getCertificationRequestInfo(e),n=h.toDer(r);a.update(n.getBytes())}return a!==null&&(t=E0({certificate:e,md:a,signature:e.signature})),t},e};function Yr(e){for(var t=h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[]),a,r,n=e.attributes,s=0;s<n.length;++s){a=n[s];var i=a.value,o=h.Type.PRINTABLESTRING;"valueTagClass"in a&&(o=a.valueTagClass,o===h.Type.UTF8&&(i=G.util.encodeUtf8(i))),r=h.create(h.Class.UNIVERSAL,h.Type.SET,!0,[h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[h.create(h.Class.UNIVERSAL,h.Type.OID,!1,h.oidToDer(a.type).getBytes()),h.create(h.Class.UNIVERSAL,o,!1,i)])]),t.value.push(r)}return t}function Lt(e){for(var t,a=0;a<e.length;++a){if(t=e[a],typeof t.name>"u"&&(t.type&&t.type in F.oids?t.name=F.oids[t.type]:t.shortName&&t.shortName in Ue&&(t.name=F.oids[Ue[t.shortName]])),typeof t.type>"u")if(t.name&&t.name in F.oids)t.type=F.oids[t.name];else{var r=new Error("Attribute type not specified.");throw r.attribute=t,r}if(typeof t.shortName>"u"&&t.name&&t.name in Ue&&(t.shortName=Ue[t.name]),t.type===fe.extensionRequest&&(t.valueConstructed=!0,t.valueTagClass=h.Type.SEQUENCE,!t.value&&t.extensions)){t.value=[];for(var n=0;n<t.extensions.length;++n)t.value.push(F.certificateExtensionToAsn1(C0(t.extensions[n])))}if(typeof t.value>"u"){var r=new Error("Attribute value not specified.");throw r.attribute=t,r}}}function C0(e,t){if(t=t||{},typeof e.name>"u"&&e.id&&e.id in F.oids&&(e.name=F.oids[e.id]),typeof e.id>"u")if(e.name&&e.name in F.oids)e.id=F.oids[e.name];else{var a=new Error("Extension ID not specified.");throw a.extension=e,a}if(typeof e.value<"u")return e;if(e.name==="keyUsage"){var r=0,n=0,s=0;e.digitalSignature&&(n|=128,r=7),e.nonRepudiation&&(n|=64,r=6),e.keyEncipherment&&(n|=32,r=5),e.dataEncipherment&&(n|=16,r=4),e.keyAgreement&&(n|=8,r=3),e.keyCertSign&&(n|=4,r=2),e.cRLSign&&(n|=2,r=1),e.encipherOnly&&(n|=1,r=0),e.decipherOnly&&(s|=128,r=7);var i=String.fromCharCode(r);s!==0?i+=String.fromCharCode(n)+String.fromCharCode(s):n!==0&&(i+=String.fromCharCode(n)),e.value=h.create(h.Class.UNIVERSAL,h.Type.BITSTRING,!1,i)}else if(e.name==="basicConstraints")e.value=h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[]),e.cA&&e.value.value.push(h.create(h.Class.UNIVERSAL,h.Type.BOOLEAN,!1,"\xFF")),"pathLenConstraint"in e&&e.value.value.push(h.create(h.Class.UNIVERSAL,h.Type.INTEGER,!1,h.integerToDer(e.pathLenConstraint).getBytes()));else if(e.name==="extKeyUsage"){e.value=h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[]);var o=e.value.value;for(var c in e)e[c]===!0&&(c in fe?o.push(h.create(h.Class.UNIVERSAL,h.Type.OID,!1,h.oidToDer(fe[c]).getBytes())):c.indexOf(".")!==-1&&o.push(h.create(h.Class.UNIVERSAL,h.Type.OID,!1,h.oidToDer(c).getBytes())))}else if(e.name==="nsCertType"){var r=0,n=0;e.client&&(n|=128,r=7),e.server&&(n|=64,r=6),e.email&&(n|=32,r=5),e.objsign&&(n|=16,r=4),e.reserved&&(n|=8,r=3),e.sslCA&&(n|=4,r=2),e.emailCA&&(n|=2,r=1),e.objCA&&(n|=1,r=0);var i=String.fromCharCode(r);n!==0&&(i+=String.fromCharCode(n)),e.value=h.create(h.Class.UNIVERSAL,h.Type.BITSTRING,!1,i)}else if(e.name==="subjectAltName"||e.name==="issuerAltName"){e.value=h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[]);for(var l,u=0;u<e.altNames.length;++u){l=e.altNames[u];var i=l.value;if(l.type===7&&l.ip){if(i=G.util.bytesFromIP(l.ip),i===null){var a=new Error('Extension "ip" value is not a valid IPv4 or IPv6 address.');throw a.extension=e,a}}else l.type===8&&(l.oid?i=h.oidToDer(h.oidToDer(l.oid)):i=h.oidToDer(i));e.value.value.push(h.create(h.Class.CONTEXT_SPECIFIC,l.type,!1,i))}}else if(e.name==="nsComment"&&t.cert){if(!/^[\x00-\x7F]*$/.test(e.comment)||e.comment.length<1||e.comment.length>128)throw new Error('Invalid "nsComment" content.');e.value=h.create(h.Class.UNIVERSAL,h.Type.IA5STRING,!1,e.comment)}else if(e.name==="subjectKeyIdentifier"&&t.cert){var p=t.cert.generateSubjectKeyIdentifier();e.subjectKeyIdentifier=p.toHex(),e.value=h.create(h.Class.UNIVERSAL,h.Type.OCTETSTRING,!1,p.getBytes())}else if(e.name==="authorityKeyIdentifier"&&t.cert){e.value=h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[]);var o=e.value.value;if(e.keyIdentifier){var f=e.keyIdentifier===!0?t.cert.generateSubjectKeyIdentifier().getBytes():e.keyIdentifier;o.push(h.create(h.Class.CONTEXT_SPECIFIC,0,!1,f))}if(e.authorityCertIssuer){var x=[h.create(h.Class.CONTEXT_SPECIFIC,4,!0,[Yr(e.authorityCertIssuer===!0?t.cert.issuer:e.authorityCertIssuer)])];o.push(h.create(h.Class.CONTEXT_SPECIFIC,1,!0,x))}if(e.serialNumber){var m=G.util.hexToBytes(e.serialNumber===!0?t.cert.serialNumber:e.serialNumber);o.push(h.create(h.Class.CONTEXT_SPECIFIC,2,!1,m))}}else if(e.name==="cRLDistributionPoints"){e.value=h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[]);for(var o=e.value.value,y=h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[]),b=h.create(h.Class.CONTEXT_SPECIFIC,0,!0,[]),l,u=0;u<e.altNames.length;++u){l=e.altNames[u];var i=l.value;if(l.type===7&&l.ip){if(i=G.util.bytesFromIP(l.ip),i===null){var a=new Error('Extension "ip" value is not a valid IPv4 or IPv6 address.');throw a.extension=e,a}}else l.type===8&&(l.oid?i=h.oidToDer(h.oidToDer(l.oid)):i=h.oidToDer(i));b.value.push(h.create(h.Class.CONTEXT_SPECIFIC,l.type,!1,i))}y.value.push(h.create(h.Class.CONTEXT_SPECIFIC,0,!0,[b])),o.push(y)}if(typeof e.value>"u"){var a=new Error("Extension value not specified.");throw a.extension=e,a}return e}function $u(e,t){switch(e){case fe["RSASSA-PSS"]:var a=[];return t.hash.algorithmOid!==void 0&&a.push(h.create(h.Class.CONTEXT_SPECIFIC,0,!0,[h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[h.create(h.Class.UNIVERSAL,h.Type.OID,!1,h.oidToDer(t.hash.algorithmOid).getBytes()),h.create(h.Class.UNIVERSAL,h.Type.NULL,!1,"")])])),t.mgf.algorithmOid!==void 0&&a.push(h.create(h.Class.CONTEXT_SPECIFIC,1,!0,[h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[h.create(h.Class.UNIVERSAL,h.Type.OID,!1,h.oidToDer(t.mgf.algorithmOid).getBytes()),h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[h.create(h.Class.UNIVERSAL,h.Type.OID,!1,h.oidToDer(t.mgf.hash.algorithmOid).getBytes()),h.create(h.Class.UNIVERSAL,h.Type.NULL,!1,"")])])])),t.saltLength!==void 0&&a.push(h.create(h.Class.CONTEXT_SPECIFIC,2,!0,[h.create(h.Class.UNIVERSAL,h.Type.INTEGER,!1,h.integerToDer(t.saltLength).getBytes())])),h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,a);default:return h.create(h.Class.UNIVERSAL,h.Type.NULL,!1,"")}}function YE(e){var t=h.create(h.Class.CONTEXT_SPECIFIC,0,!0,[]);if(e.attributes.length===0)return t;for(var a=e.attributes,r=0;r<a.length;++r){var n=a[r],s=n.value,i=h.Type.UTF8;"valueTagClass"in n&&(i=n.valueTagClass),i===h.Type.UTF8&&(s=G.util.encodeUtf8(s));var o=!1;"valueConstructed"in n&&(o=n.valueConstructed);var c=h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[h.create(h.Class.UNIVERSAL,h.Type.OID,!1,h.oidToDer(n.type).getBytes()),h.create(h.Class.UNIVERSAL,h.Type.SET,!0,[h.create(h.Class.UNIVERSAL,i,o,s)])]);t.value.push(c)}return t}var JE=new Date("1950-01-01T00:00:00Z"),ZE=new Date("2050-01-01T00:00:00Z");function S0(e){return e>=JE&&e<ZE?h.create(h.Class.UNIVERSAL,h.Type.UTCTIME,!1,h.dateToUtcTime(e)):h.create(h.Class.UNIVERSAL,h.Type.GENERALIZEDTIME,!1,h.dateToGeneralizedTime(e))}F.getTBSCertificate=function(e){var t=S0(e.validity.notBefore),a=S0(e.validity.notAfter),r=h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[h.create(h.Class.CONTEXT_SPECIFIC,0,!0,[h.create(h.Class.UNIVERSAL,h.Type.INTEGER,!1,h.integerToDer(e.version).getBytes())]),h.create(h.Class.UNIVERSAL,h.Type.INTEGER,!1,G.util.hexToBytes(e.serialNumber)),h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[h.create(h.Class.UNIVERSAL,h.Type.OID,!1,h.oidToDer(e.siginfo.algorithmOid).getBytes()),$u(e.siginfo.algorithmOid,e.siginfo.parameters)]),Yr(e.issuer),h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[t,a]),Yr(e.subject),F.publicKeyToAsn1(e.publicKey)]);return e.issuer.uniqueId&&r.value.push(h.create(h.Class.CONTEXT_SPECIFIC,1,!0,[h.create(h.Class.UNIVERSAL,h.Type.BITSTRING,!1,"\0"+e.issuer.uniqueId)])),e.subject.uniqueId&&r.value.push(h.create(h.Class.CONTEXT_SPECIFIC,2,!0,[h.create(h.Class.UNIVERSAL,h.Type.BITSTRING,!1,"\0"+e.subject.uniqueId)])),e.extensions.length>0&&r.value.push(F.certificateExtensionsToAsn1(e.extensions)),r},F.getCertificationRequestInfo=function(e){var t=h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[h.create(h.Class.UNIVERSAL,h.Type.INTEGER,!1,h.integerToDer(e.version).getBytes()),Yr(e.subject),F.publicKeyToAsn1(e.publicKey),YE(e)]);return t},F.distinguishedNameToAsn1=function(e){return Yr(e)},F.certificateToAsn1=function(e){var t=e.tbsCertificate||F.getTBSCertificate(e);return h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[t,h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[h.create(h.Class.UNIVERSAL,h.Type.OID,!1,h.oidToDer(e.signatureOid).getBytes()),$u(e.signatureOid,e.signatureParameters)]),h.create(h.Class.UNIVERSAL,h.Type.BITSTRING,!1,"\0"+e.signature)])},F.certificateExtensionsToAsn1=function(e){var t=h.create(h.Class.CONTEXT_SPECIFIC,3,!0,[]),a=h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[]);t.value.push(a);for(var r=0;r<e.length;++r)a.value.push(F.certificateExtensionToAsn1(e[r]));return t},F.certificateExtensionToAsn1=function(e){var t=h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[]);t.value.push(h.create(h.Class.UNIVERSAL,h.Type.OID,!1,h.oidToDer(e.id).getBytes())),e.critical&&t.value.push(h.create(h.Class.UNIVERSAL,h.Type.BOOLEAN,!1,"\xFF"));var a=e.value;return typeof e.value!="string"&&(a=h.toDer(a).getBytes()),t.value.push(h.create(h.Class.UNIVERSAL,h.Type.OCTETSTRING,!1,a)),t},F.certificationRequestToAsn1=function(e){var t=e.certificationRequestInfo||F.getCertificationRequestInfo(e);return h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[t,h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[h.create(h.Class.UNIVERSAL,h.Type.OID,!1,h.oidToDer(e.signatureOid).getBytes()),$u(e.signatureOid,e.signatureParameters)]),h.create(h.Class.UNIVERSAL,h.Type.BITSTRING,!1,"\0"+e.signature)])},F.createCaStore=function(e){var t={certs:{}};t.getIssuer=function(i){var o=a(i.issuer);return o},t.addCertificate=function(i){if(typeof i=="string"&&(i=G.pki.certificateFromPem(i)),r(i.subject),!t.hasCertificate(i))if(i.subject.hash in t.certs){var o=t.certs[i.subject.hash];G.util.isArray(o)||(o=[o]),o.push(i),t.certs[i.subject.hash]=o}else t.certs[i.subject.hash]=i},t.hasCertificate=function(i){typeof i=="string"&&(i=G.pki.certificateFromPem(i));var o=a(i.subject);if(!o)return!1;G.util.isArray(o)||(o=[o]);for(var c=h.toDer(F.certificateToAsn1(i)).getBytes(),l=0;l<o.length;++l){var u=h.toDer(F.certificateToAsn1(o[l])).getBytes();if(c===u)return!0}return!1},t.listAllCertificates=function(){var i=[];for(var o in t.certs)if(t.certs.hasOwnProperty(o)){var c=t.certs[o];if(!G.util.isArray(c))i.push(c);else for(var l=0;l<c.length;++l)i.push(c[l])}return i},t.removeCertificate=function(i){var o;if(typeof i=="string"&&(i=G.pki.certificateFromPem(i)),r(i.subject),!t.hasCertificate(i))return null;var c=a(i.subject);if(!G.util.isArray(c))return o=t.certs[i.subject.hash],delete t.certs[i.subject.hash],o;for(var l=h.toDer(F.certificateToAsn1(i)).getBytes(),u=0;u<c.length;++u){var p=h.toDer(F.certificateToAsn1(c[u])).getBytes();l===p&&(o=c[u],c.splice(u,1))}return c.length===0&&delete t.certs[i.subject.hash],o};function a(i){return r(i),t.certs[i.hash]||null}function r(i){if(!i.hash){var o=G.md.sha1.create();i.attributes=F.RDNAttributesAsArray(Yr(i),o),i.hash=o.digest().toHex()}}if(e)for(var n=0;n<e.length;++n){var s=e[n];t.addCertificate(s)}return t},F.certificateError={bad_certificate:"forge.pki.BadCertificate",unsupported_certificate:"forge.pki.UnsupportedCertificate",certificate_revoked:"forge.pki.CertificateRevoked",certificate_expired:"forge.pki.CertificateExpired",certificate_unknown:"forge.pki.CertificateUnknown",unknown_ca:"forge.pki.UnknownCertificateAuthority"},F.verifyCertificateChain=function(e,t,a){typeof a=="function"&&(a={verify:a}),a=a||{},t=t.slice(0);var r=t.slice(0),n=a.validityCheckDate;typeof n>"u"&&(n=new Date);var s=!0,i=null,o=0;do{var c=t.shift(),l=null,u=!1;if(n&&(n<c.validity.notBefore||n>c.validity.notAfter)&&(i={message:"Certificate is not valid yet or has expired.",error:F.certificateError.certificate_expired,notBefore:c.validity.notBefore,notAfter:c.validity.notAfter,now:n}),i===null){if(l=t[0]||e.getIssuer(c),l===null&&c.isIssuer(c)&&(u=!0,l=c),l){var p=l;G.util.isArray(p)||(p=[p]);for(var f=!1;!f&&p.length>0;){l=p.shift();try{f=l.verify(c)}catch{}}f||(i={message:"Certificate signature is invalid.",error:F.certificateError.bad_certificate})}i===null&&(!l||u)&&!e.hasCertificate(c)&&(i={message:"Certificate is not trusted.",error:F.certificateError.unknown_ca})}if(i===null&&l&&!c.isIssuer(l)&&(i={message:"Certificate issuer is invalid.",error:F.certificateError.bad_certificate}),i===null)for(var x={keyUsage:!0,basicConstraints:!0},m=0;i===null&&m<c.extensions.length;++m){var y=c.extensions[m];y.critical&&!(y.name in x)&&(i={message:"Certificate has an unsupported critical extension.",error:F.certificateError.unsupported_certificate})}if(i===null&&(!s||t.length===0&&(!l||u))){var b=c.getExtension("basicConstraints"),S=c.getExtension("keyUsage");if(S!==null&&(!S.keyCertSign||b===null)&&(i={message:"Certificate keyUsage or basicConstraints conflict or indicate that the certificate is not a CA. If the certificate is the only one in the chain or isn't the first then the certificate must be a valid CA.",error:F.certificateError.bad_certificate}),i===null&&b!==null&&!b.cA&&(i={message:"Certificate basicConstraints indicates the certificate is not a CA.",error:F.certificateError.bad_certificate}),i===null&&S!==null&&"pathLenConstraint"in b){var B=o-1;B>b.pathLenConstraint&&(i={message:"Certificate basicConstraints pathLenConstraint violated.",error:F.certificateError.bad_certificate})}}var _=i===null?!0:i.error,D=a.verify?a.verify(_,o,r):_;if(D===!0)i=null;else throw _===!0&&(i={message:"The application rejected the certificate.",error:F.certificateError.bad_certificate}),(D||D===0)&&(typeof D=="object"&&!G.util.isArray(D)?(D.message&&(i.message=D.message),D.error&&(i.error=D.error)):typeof D=="string"&&(i.error=D)),i;s=!1,++o}while(t.length>0);return!0};var Ae=ee,C=Ae.asn1,ne=Ae.pki,hc=Ae.pkcs12=Ae.pkcs12||{},T0={name:"ContentInfo",tagClass:C.Class.UNIVERSAL,type:C.Type.SEQUENCE,constructed:!0,value:[{name:"ContentInfo.contentType",tagClass:C.Class.UNIVERSAL,type:C.Type.OID,constructed:!1,capture:"contentType"},{name:"ContentInfo.content",tagClass:C.Class.CONTEXT_SPECIFIC,constructed:!0,captureAsn1:"content"}]},eC={name:"PFX",tagClass:C.Class.UNIVERSAL,type:C.Type.SEQUENCE,constructed:!0,value:[{name:"PFX.version",tagClass:C.Class.UNIVERSAL,type:C.Type.INTEGER,constructed:!1,capture:"version"},T0,{name:"PFX.macData",tagClass:C.Class.UNIVERSAL,type:C.Type.SEQUENCE,constructed:!0,optional:!0,captureAsn1:"mac",value:[{name:"PFX.macData.mac",tagClass:C.Class.UNIVERSAL,type:C.Type.SEQUENCE,constructed:!0,value:[{name:"PFX.macData.mac.digestAlgorithm",tagClass:C.Class.UNIVERSAL,type:C.Type.SEQUENCE,constructed:!0,value:[{name:"PFX.macData.mac.digestAlgorithm.algorithm",tagClass:C.Class.UNIVERSAL,type:C.Type.OID,constructed:!1,capture:"macAlgorithm"},{name:"PFX.macData.mac.digestAlgorithm.parameters",tagClass:C.Class.UNIVERSAL,captureAsn1:"macAlgorithmParameters"}]},{name:"PFX.macData.mac.digest",tagClass:C.Class.UNIVERSAL,type:C.Type.OCTETSTRING,constructed:!1,capture:"macDigest"}]},{name:"PFX.macData.macSalt",tagClass:C.Class.UNIVERSAL,type:C.Type.OCTETSTRING,constructed:!1,capture:"macSalt"},{name:"PFX.macData.iterations",tagClass:C.Class.UNIVERSAL,type:C.Type.INTEGER,constructed:!1,optional:!0,capture:"macIterations"}]}]},tC={name:"SafeBag",tagClass:C.Class.UNIVERSAL,type:C.Type.SEQUENCE,constructed:!0,value:[{name:"SafeBag.bagId",tagClass:C.Class.UNIVERSAL,type:C.Type.OID,constructed:!1,capture:"bagId"},{name:"SafeBag.bagValue",tagClass:C.Class.CONTEXT_SPECIFIC,constructed:!0,captureAsn1:"bagValue"},{name:"SafeBag.bagAttributes",tagClass:C.Class.UNIVERSAL,type:C.Type.SET,constructed:!0,optional:!0,capture:"bagAttributes"}]},rC={name:"Attribute",tagClass:C.Class.UNIVERSAL,type:C.Type.SEQUENCE,constructed:!0,value:[{name:"Attribute.attrId",tagClass:C.Class.UNIVERSAL,type:C.Type.OID,constructed:!1,capture:"oid"},{name:"Attribute.attrValues",tagClass:C.Class.UNIVERSAL,type:C.Type.SET,constructed:!0,capture:"values"}]},aC={name:"CertBag",tagClass:C.Class.UNIVERSAL,type:C.Type.SEQUENCE,constructed:!0,value:[{name:"CertBag.certId",tagClass:C.Class.UNIVERSAL,type:C.Type.OID,constructed:!1,capture:"certId"},{name:"CertBag.certValue",tagClass:C.Class.CONTEXT_SPECIFIC,constructed:!0,value:[{name:"CertBag.certValue[0]",tagClass:C.Class.UNIVERSAL,type:C.Class.OCTETSTRING,constructed:!1,capture:"cert"}]}]};function vc(e,t,a,r){for(var n=[],s=0;s<e.length;s++)for(var i=0;i<e[s].safeBags.length;i++){var o=e[s].safeBags[i];if(!(r!==void 0&&o.type!==r)){if(t===null){n.push(o);continue}o.attributes[t]!==void 0&&o.attributes[t].indexOf(a)>=0&&n.push(o)}}return n}hc.pkcs12FromAsn1=function(e,t,a){typeof t=="string"?(a=t,t=!0):t===void 0&&(t=!0);var r={},n=[];if(!C.validate(e,eC,r,n)){var s=new Error("Cannot read PKCS#12 PFX. ASN.1 object is not an PKCS#12 PFX.");throw s.errors=s,s}var i={version:r.version.charCodeAt(0),safeContents:[],getBags:function(b){var S={},B;return"localKeyId"in b?B=b.localKeyId:"localKeyIdHex"in b&&(B=Ae.util.hexToBytes(b.localKeyIdHex)),B===void 0&&!("friendlyName"in b)&&"bagType"in b&&(S[b.bagType]=vc(i.safeContents,null,null,b.bagType)),B!==void 0&&(S.localKeyId=vc(i.safeContents,"localKeyId",B,b.bagType)),"friendlyName"in b&&(S.friendlyName=vc(i.safeContents,"friendlyName",b.friendlyName,b.bagType)),S},getBagsByFriendlyName:function(b,S){return vc(i.safeContents,"friendlyName",b,S)},getBagsByLocalKeyId:function(b,S){return vc(i.safeContents,"localKeyId",b,S)}};if(r.version.charCodeAt(0)!==3){var s=new Error("PKCS#12 PFX of version other than 3 not supported.");throw s.version=r.version.charCodeAt(0),s}if(C.derToOid(r.contentType)!==ne.oids.data){var s=new Error("Only PKCS#12 PFX in password integrity mode supported.");throw s.oid=C.derToOid(r.contentType),s}var o=r.content.value[0];if(o.tagClass!==C.Class.UNIVERSAL||o.type!==C.Type.OCTETSTRING)throw new Error("PKCS#12 authSafe content data is not an OCTET STRING.");if(o=Gu(o),r.mac){var c=null,l=0,u=C.derToOid(r.macAlgorithm);switch(u){case ne.oids.sha1:c=Ae.md.sha1.create(),l=20;break;case ne.oids.sha256:c=Ae.md.sha256.create(),l=32;break;case ne.oids.sha384:c=Ae.md.sha384.create(),l=48;break;case ne.oids.sha512:c=Ae.md.sha512.create(),l=64;break;case ne.oids.md5:c=Ae.md.md5.create(),l=16;break}if(c===null)throw new Error("PKCS#12 uses unsupported MAC algorithm: "+u);var p=new Ae.util.ByteBuffer(r.macSalt),f="macIterations"in r?parseInt(Ae.util.bytesToHex(r.macIterations),16):1,x=hc.generateKey(a,p,3,f,l,c),m=Ae.hmac.create();m.start(c,x),m.update(o.value);var y=m.getMac();if(y.getBytes()!==r.macDigest)throw new Error("PKCS#12 MAC could not be verified. Invalid password?")}else if(Array.isArray(e.value)&&e.value.length>2)throw new Error("Invalid PKCS#12. macData field present but MAC was not validated.");return nC(i,o.value,t,a),i};function Gu(e){if(e.composed||e.constructed){for(var t=Ae.util.createBuffer(),a=0;a<e.value.length;++a)t.putBytes(e.value[a].value);e.composed=e.constructed=!1,e.value=t.getBytes()}return e}function nC(e,t,a,r){if(t=C.fromDer(t,a),t.tagClass!==C.Class.UNIVERSAL||t.type!==C.Type.SEQUENCE||t.constructed!==!0)throw new Error("PKCS#12 AuthenticatedSafe expected to be a SEQUENCE OF ContentInfo");for(var n=0;n<t.value.length;n++){var s=t.value[n],i={},o=[];if(!C.validate(s,T0,i,o)){var c=new Error("Cannot read ContentInfo.");throw c.errors=o,c}var l={encrypted:!1},u=null,p=i.content.value[0];switch(C.derToOid(i.contentType)){case ne.oids.data:if(p.tagClass!==C.Class.UNIVERSAL||p.type!==C.Type.OCTETSTRING)throw new Error("PKCS#12 SafeContents Data is not an OCTET STRING.");u=Gu(p).value;break;case ne.oids.encryptedData:u=iC(p,r),l.encrypted=!0;break;default:var c=new Error("Unsupported PKCS#12 contentType.");throw c.contentType=C.derToOid(i.contentType),c}l.safeBags=sC(u,a,r),e.safeContents.push(l)}}function iC(e,t){var a={},r=[];if(!C.validate(e,Ae.pkcs7.asn1.encryptedDataValidator,a,r)){var n=new Error("Cannot read EncryptedContentInfo.");throw n.errors=r,n}var s=C.derToOid(a.contentType);if(s!==ne.oids.data){var n=new Error("PKCS#12 EncryptedContentInfo ContentType is not Data.");throw n.oid=s,n}s=C.derToOid(a.encAlgorithm);var i=ne.pbe.getCipher(s,a.encParameter,t),o=Gu(a.encryptedContentAsn1),c=Ae.util.createBuffer(o.value);if(i.update(c),!i.finish())throw new Error("Failed to decrypt PKCS#12 SafeContents.");return i.output.getBytes()}function sC(e,t,a){if(!t&&e.length===0)return[];if(e=C.fromDer(e,t),e.tagClass!==C.Class.UNIVERSAL||e.type!==C.Type.SEQUENCE||e.constructed!==!0)throw new Error("PKCS#12 SafeContents expected to be a SEQUENCE OF SafeBag.");for(var r=[],n=0;n<e.value.length;n++){var s=e.value[n],i={},o=[];if(!C.validate(s,tC,i,o)){var c=new Error("Cannot read SafeBag.");throw c.errors=o,c}var l={type:C.derToOid(i.bagId),attributes:oC(i.bagAttributes)};r.push(l);var u,p,f=i.bagValue.value[0];switch(l.type){case ne.oids.pkcs8ShroudedKeyBag:if(f=ne.decryptPrivateKeyInfo(f,a),f===null)throw new Error("Unable to decrypt PKCS#8 ShroudedKeyBag, wrong password?");case ne.oids.keyBag:try{l.key=ne.privateKeyFromAsn1(f)}catch{l.key=null,l.asn1=f}continue;case ne.oids.certBag:u=aC,p=function(){if(C.derToOid(i.certId)!==ne.oids.x509Certificate){var m=new Error("Unsupported certificate type, only X.509 supported.");throw m.oid=C.derToOid(i.certId),m}var y=C.fromDer(i.cert,t);try{l.cert=ne.certificateFromAsn1(y,!0)}catch{l.cert=null,l.asn1=y}};break;default:var c=new Error("Unsupported PKCS#12 SafeBag type.");throw c.oid=l.type,c}if(u!==void 0&&!C.validate(f,u,i,o)){var c=new Error("Cannot read PKCS#12 "+u.name);throw c.errors=o,c}p()}return r}function oC(e){var t={};if(e!==void 0)for(var a=0;a<e.length;++a){var r={},n=[];if(!C.validate(e[a],rC,r,n)){var s=new Error("Cannot read PKCS#12 BagAttribute.");throw s.errors=n,s}var i=C.derToOid(r.oid);if(ne.oids[i]!==void 0){t[ne.oids[i]]=[];for(var o=0;o<r.values.length;++o)t[ne.oids[i]].push(r.values[o].value)}}return t}hc.toPkcs12Asn1=function(e,t,a,r){r=r||{},r.saltSize=r.saltSize||8,r.count=r.count||2048,r.algorithm=r.algorithm||r.encAlgorithm||"aes128","useMac"in r||(r.useMac=!0),"localKeyId"in r||(r.localKeyId=null),"generateLocalKeyId"in r||(r.generateLocalKeyId=!0);var n=r.localKeyId,s;if(n!==null)n=Ae.util.hexToBytes(n);else if(r.generateLocalKeyId)if(t){var i=Ae.util.isArray(t)?t[0]:t;typeof i=="string"&&(i=ne.certificateFromPem(i));var o=Ae.md.sha1.create();o.update(C.toDer(ne.certificateToAsn1(i)).getBytes()),n=o.digest().getBytes()}else n=Ae.random.getBytes(20);var c=[];n!==null&&c.push(C.create(C.Class.UNIVERSAL,C.Type.SEQUENCE,!0,[C.create(C.Class.UNIVERSAL,C.Type.OID,!1,C.oidToDer(ne.oids.localKeyId).getBytes()),C.create(C.Class.UNIVERSAL,C.Type.SET,!0,[C.create(C.Class.UNIVERSAL,C.Type.OCTETSTRING,!1,n)])])),"friendlyName"in r&&c.push(C.create(C.Class.UNIVERSAL,C.Type.SEQUENCE,!0,[C.create(C.Class.UNIVERSAL,C.Type.OID,!1,C.oidToDer(ne.oids.friendlyName).getBytes()),C.create(C.Class.UNIVERSAL,C.Type.SET,!0,[C.create(C.Class.UNIVERSAL,C.Type.BMPSTRING,!1,r.friendlyName)])])),c.length>0&&(s=C.create(C.Class.UNIVERSAL,C.Type.SET,!0,c));var l=[],u=[];t!==null&&(Ae.util.isArray(t)?u=t:u=[t]);for(var p=[],f=0;f<u.length;++f){t=u[f],typeof t=="string"&&(t=ne.certificateFromPem(t));var x=f===0?s:void 0,m=ne.certificateToAsn1(t),y=C.create(C.Class.UNIVERSAL,C.Type.SEQUENCE,!0,[C.create(C.Class.UNIVERSAL,C.Type.OID,!1,C.oidToDer(ne.oids.certBag).getBytes()),C.create(C.Class.CONTEXT_SPECIFIC,0,!0,[C.create(C.Class.UNIVERSAL,C.Type.SEQUENCE,!0,[C.create(C.Class.UNIVERSAL,C.Type.OID,!1,C.oidToDer(ne.oids.x509Certificate).getBytes()),C.create(C.Class.CONTEXT_SPECIFIC,0,!0,[C.create(C.Class.UNIVERSAL,C.Type.OCTETSTRING,!1,C.toDer(m).getBytes())])])]),x]);p.push(y)}if(p.length>0){var b=C.create(C.Class.UNIVERSAL,C.Type.SEQUENCE,!0,p),S=C.create(C.Class.UNIVERSAL,C.Type.SEQUENCE,!0,[C.create(C.Class.UNIVERSAL,C.Type.OID,!1,C.oidToDer(ne.oids.data).getBytes()),C.create(C.Class.CONTEXT_SPECIFIC,0,!0,[C.create(C.Class.UNIVERSAL,C.Type.OCTETSTRING,!1,C.toDer(b).getBytes())])]);l.push(S)}var B=null;if(e!==null){var _=ne.wrapRsaPrivateKey(ne.privateKeyToAsn1(e));a===null?B=C.create(C.Class.UNIVERSAL,C.Type.SEQUENCE,!0,[C.create(C.Class.UNIVERSAL,C.Type.OID,!1,C.oidToDer(ne.oids.keyBag).getBytes()),C.create(C.Class.CONTEXT_SPECIFIC,0,!0,[_]),s]):B=C.create(C.Class.UNIVERSAL,C.Type.SEQUENCE,!0,[C.create(C.Class.UNIVERSAL,C.Type.OID,!1,C.oidToDer(ne.oids.pkcs8ShroudedKeyBag).getBytes()),C.create(C.Class.CONTEXT_SPECIFIC,0,!0,[ne.encryptPrivateKeyInfo(_,a,r)]),s]);var D=C.create(C.Class.UNIVERSAL,C.Type.SEQUENCE,!0,[B]),k=C.create(C.Class.UNIVERSAL,C.Type.SEQUENCE,!0,[C.create(C.Class.UNIVERSAL,C.Type.OID,!1,C.oidToDer(ne.oids.data).getBytes()),C.create(C.Class.CONTEXT_SPECIFIC,0,!0,[C.create(C.Class.UNIVERSAL,C.Type.OCTETSTRING,!1,C.toDer(D).getBytes())])]);l.push(k)}var P=C.create(C.Class.UNIVERSAL,C.Type.SEQUENCE,!0,l),z;if(r.useMac){var o=Ae.md.sha1.create(),W=new Ae.util.ByteBuffer(Ae.random.getBytes(r.saltSize)),J=r.count,e=hc.generateKey(a,W,3,J,20),te=Ae.hmac.create();te.start(o,e),te.update(C.toDer(P).getBytes());var ve=te.getMac();z=C.create(C.Class.UNIVERSAL,C.Type.SEQUENCE,!0,[C.create(C.Class.UNIVERSAL,C.Type.SEQUENCE,!0,[C.create(C.Class.UNIVERSAL,C.Type.SEQUENCE,!0,[C.create(C.Class.UNIVERSAL,C.Type.OID,!1,C.oidToDer(ne.oids.sha1).getBytes()),C.create(C.Class.UNIVERSAL,C.Type.NULL,!1,"")]),C.create(C.Class.UNIVERSAL,C.Type.OCTETSTRING,!1,ve.getBytes())]),C.create(C.Class.UNIVERSAL,C.Type.OCTETSTRING,!1,W.getBytes()),C.create(C.Class.UNIVERSAL,C.Type.INTEGER,!1,C.integerToDer(J).getBytes())])}return C.create(C.Class.UNIVERSAL,C.Type.SEQUENCE,!0,[C.create(C.Class.UNIVERSAL,C.Type.INTEGER,!1,C.integerToDer(3).getBytes()),C.create(C.Class.UNIVERSAL,C.Type.SEQUENCE,!0,[C.create(C.Class.UNIVERSAL,C.Type.OID,!1,C.oidToDer(ne.oids.data).getBytes()),C.create(C.Class.CONTEXT_SPECIFIC,0,!0,[C.create(C.Class.UNIVERSAL,C.Type.OCTETSTRING,!1,C.toDer(P).getBytes())])]),z])},hc.generateKey=Ae.pbe.generatePkcs12Key;var pr=ee,Qu=pr.asn1,Jr=pr.pki=pr.pki||{};Jr.pemToDer=function(e){var t=pr.pem.decode(e)[0];if(t.procType&&t.procType.type==="ENCRYPTED")throw new Error("Could not convert PEM to DER; PEM is encrypted.");return pr.util.createBuffer(t.body)},Jr.privateKeyFromPem=function(e){var t=pr.pem.decode(e)[0];if(t.type!=="PRIVATE KEY"&&t.type!=="RSA PRIVATE KEY"){var a=new Error('Could not convert private key from PEM; PEM header type is not "PRIVATE KEY" or "RSA PRIVATE KEY".');throw a.headerType=t.type,a}if(t.procType&&t.procType.type==="ENCRYPTED")throw new Error("Could not convert private key from PEM; PEM is encrypted.");var r=Qu.fromDer(t.body);return Jr.privateKeyFromAsn1(r)},Jr.privateKeyToPem=function(e,t){var a={type:"RSA PRIVATE KEY",body:Qu.toDer(Jr.privateKeyToAsn1(e)).getBytes()};return pr.pem.encode(a,{maxline:t})},Jr.privateKeyInfoToPem=function(e,t){var a={type:"PRIVATE KEY",body:Qu.toDer(e).getBytes()};return pr.pem.encode(a,{maxline:t})};var L=ee,ul=function(e,t,a,r){var n=L.util.createBuffer(),s=e.length>>1,i=s+(e.length&1),o=e.substr(0,i),c=e.substr(s,i),l=L.util.createBuffer(),u=L.hmac.create();a=t+a;var p=Math.ceil(r/16),f=Math.ceil(r/20);u.start("MD5",o);var x=L.util.createBuffer();l.putBytes(a);for(var m=0;m<p;++m)u.start(null,null),u.update(l.getBytes()),l.putBuffer(u.digest()),u.start(null,null),u.update(l.bytes()+a),x.putBuffer(u.digest());u.start("SHA1",c);var y=L.util.createBuffer();l.clear(),l.putBytes(a);for(var m=0;m<f;++m)u.start(null,null),u.update(l.getBytes()),l.putBuffer(u.digest()),u.start(null,null),u.update(l.bytes()+a),y.putBuffer(u.digest());return n.putBytes(L.util.xorBytes(x.getBytes(),y.getBytes(),r)),n},cC=function(e,t,a){var r=L.hmac.create();r.start("SHA1",e);var n=L.util.createBuffer();return n.putInt32(t[0]),n.putInt32(t[1]),n.putByte(a.type),n.putByte(a.version.major),n.putByte(a.version.minor),n.putInt16(a.length),n.putBytes(a.fragment.bytes()),r.update(n.getBytes()),r.digest().getBytes()},lC=function(e,t,a){var r=!1;try{var n=e.deflate(t.fragment.getBytes());t.fragment=L.util.createBuffer(n),t.length=n.length,r=!0}catch{}return r},uC=function(e,t,a){var r=!1;try{var n=e.inflate(t.fragment.getBytes());t.fragment=L.util.createBuffer(n),t.length=n.length,r=!0}catch{}return r},Bt=function(e,t){var a=0;switch(t){case 1:a=e.getByte();break;case 2:a=e.getInt16();break;case 3:a=e.getInt24();break;case 4:a=e.getInt32();break}return L.util.createBuffer(e.getBytes(a))},Ut=function(e,t,a){e.putInt(a.length(),t<<3),e.putBuffer(a)},g={};g.Versions={TLS_1_0:{major:3,minor:1},TLS_1_1:{major:3,minor:2},TLS_1_2:{major:3,minor:3}},g.SupportedVersions=[g.Versions.TLS_1_1,g.Versions.TLS_1_0],g.Version=g.SupportedVersions[0],g.MaxFragment=15360,g.ConnectionEnd={server:0,client:1},g.PRFAlgorithm={tls_prf_sha256:0},g.BulkCipherAlgorithm={none:null,rc4:0,des3:1,aes:2},g.CipherType={stream:0,block:1,aead:2},g.MACAlgorithm={none:null,hmac_md5:0,hmac_sha1:1,hmac_sha256:2,hmac_sha384:3,hmac_sha512:4},g.CompressionMethod={none:0,deflate:1},g.ContentType={change_cipher_spec:20,alert:21,handshake:22,application_data:23,heartbeat:24},g.HandshakeType={hello_request:0,client_hello:1,server_hello:2,certificate:11,server_key_exchange:12,certificate_request:13,server_hello_done:14,certificate_verify:15,client_key_exchange:16,finished:20},g.Alert={},g.Alert.Level={warning:1,fatal:2},g.Alert.Description={close_notify:0,unexpected_message:10,bad_record_mac:20,decryption_failed:21,record_overflow:22,decompression_failure:30,handshake_failure:40,bad_certificate:42,unsupported_certificate:43,certificate_revoked:44,certificate_expired:45,certificate_unknown:46,illegal_parameter:47,unknown_ca:48,access_denied:49,decode_error:50,decrypt_error:51,export_restriction:60,protocol_version:70,insufficient_security:71,internal_error:80,user_canceled:90,no_renegotiation:100},g.HeartbeatMessageType={heartbeat_request:1,heartbeat_response:2},g.CipherSuites={},g.getCipherSuite=function(e){var t=null;for(var a in g.CipherSuites){var r=g.CipherSuites[a];if(r.id[0]===e.charCodeAt(0)&&r.id[1]===e.charCodeAt(1)){t=r;break}}return t},g.handleUnexpected=function(e,t){var a=!e.open&&e.entity===g.ConnectionEnd.client;a||e.error(e,{message:"Unexpected message. Received TLS record out of order.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.unexpected_message}})},g.handleHelloRequest=function(e,t,a){!e.handshaking&&e.handshakes>0&&(g.queue(e,g.createAlert(e,{level:g.Alert.Level.warning,description:g.Alert.Description.no_renegotiation})),g.flush(e)),e.process()},g.parseHelloMessage=function(e,t,a){var r=null,n=e.entity===g.ConnectionEnd.client;if(a<38)e.error(e,{message:n?"Invalid ServerHello message. Message too short.":"Invalid ClientHello message. Message too short.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.illegal_parameter}});else{var s=t.fragment,i=s.length();if(r={version:{major:s.getByte(),minor:s.getByte()},random:L.util.createBuffer(s.getBytes(32)),session_id:Bt(s,1),extensions:[]},n?(r.cipher_suite=s.getBytes(2),r.compression_method=s.getByte()):(r.cipher_suites=Bt(s,2),r.compression_methods=Bt(s,1)),i=a-(i-s.length()),i>0){for(var o=Bt(s,2);o.length()>0;)r.extensions.push({type:[o.getByte(),o.getByte()],data:Bt(o,2)});if(!n)for(var c=0;c<r.extensions.length;++c){var l=r.extensions[c];if(l.type[0]===0&&l.type[1]===0)for(var u=Bt(l.data,2);u.length()>0;){var p=u.getByte();if(p!==0)break;e.session.extensions.server_name.serverNameList.push(Bt(u,2).getBytes())}}}if(e.session.version&&(r.version.major!==e.session.version.major||r.version.minor!==e.session.version.minor))return e.error(e,{message:"TLS version change is disallowed during renegotiation.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.protocol_version}});if(n)e.session.cipherSuite=g.getCipherSuite(r.cipher_suite);else for(var f=L.util.createBuffer(r.cipher_suites.bytes());f.length()>0&&(e.session.cipherSuite=g.getCipherSuite(f.getBytes(2)),e.session.cipherSuite===null););if(e.session.cipherSuite===null)return e.error(e,{message:"No cipher suites in common.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.handshake_failure},cipherSuite:L.util.bytesToHex(r.cipher_suite)});n?e.session.compressionMethod=r.compression_method:e.session.compressionMethod=g.CompressionMethod.none}return r},g.createSecurityParameters=function(e,t){var a=e.entity===g.ConnectionEnd.client,r=t.random.bytes(),n=a?e.session.sp.client_random:r,s=a?r:g.createRandom().getBytes();e.session.sp={entity:e.entity,prf_algorithm:g.PRFAlgorithm.tls_prf_sha256,bulk_cipher_algorithm:null,cipher_type:null,enc_key_length:null,block_length:null,fixed_iv_length:null,record_iv_length:null,mac_algorithm:null,mac_length:null,mac_key_length:null,compression_algorithm:e.session.compressionMethod,pre_master_secret:null,master_secret:null,client_random:n,server_random:s}},g.handleServerHello=function(e,t,a){var r=g.parseHelloMessage(e,t,a);if(!e.fail){if(r.version.minor<=e.version.minor)e.version.minor=r.version.minor;else return e.error(e,{message:"Incompatible TLS version.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.protocol_version}});e.session.version=e.version;var n=r.session_id.bytes();n.length>0&&n===e.session.id?(e.expect=A0,e.session.resuming=!0,e.session.sp.server_random=r.random.bytes()):(e.expect=dC,e.session.resuming=!1,g.createSecurityParameters(e,r)),e.session.id=n,e.process()}},g.handleClientHello=function(e,t,a){var r=g.parseHelloMessage(e,t,a);if(!e.fail){var n=r.session_id.bytes(),s=null;if(e.sessionCache&&(s=e.sessionCache.getSession(n),s===null?n="":(s.version.major!==r.version.major||s.version.minor>r.version.minor)&&(s=null,n="")),n.length===0&&(n=L.random.getBytes(32)),e.session.id=n,e.session.clientHelloVersion=r.version,e.session.sp={},s)e.version=e.session.version=s.version,e.session.sp=s.sp;else{for(var i,o=1;o<g.SupportedVersions.length&&(i=g.SupportedVersions[o],!(i.minor<=r.version.minor));++o);e.version={major:i.major,minor:i.minor},e.session.version=e.version}s!==null?(e.expect=Xu,e.session.resuming=!0,e.session.sp.client_random=r.random.bytes()):(e.expect=e.verifyClient!==!1?yC:Wu,e.session.resuming=!1,g.createSecurityParameters(e,r)),e.open=!0,g.queue(e,g.createRecord(e,{type:g.ContentType.handshake,data:g.createServerHello(e)})),e.session.resuming?(g.queue(e,g.createRecord(e,{type:g.ContentType.change_cipher_spec,data:g.createChangeCipherSpec()})),e.state.pending=g.createConnectionState(e),e.state.current.write=e.state.pending.write,g.queue(e,g.createRecord(e,{type:g.ContentType.handshake,data:g.createFinished(e)}))):(g.queue(e,g.createRecord(e,{type:g.ContentType.handshake,data:g.createCertificate(e)})),e.fail||(g.queue(e,g.createRecord(e,{type:g.ContentType.handshake,data:g.createServerKeyExchange(e)})),e.verifyClient!==!1&&g.queue(e,g.createRecord(e,{type:g.ContentType.handshake,data:g.createCertificateRequest(e)})),g.queue(e,g.createRecord(e,{type:g.ContentType.handshake,data:g.createServerHelloDone(e)})))),g.flush(e),e.process()}},g.handleCertificate=function(e,t,a){if(a<3)return e.error(e,{message:"Invalid Certificate message. Message too short.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.illegal_parameter}});var r=t.fragment,n={certificate_list:Bt(r,3)},s,i,o=[];try{for(;n.certificate_list.length()>0;)s=Bt(n.certificate_list,3),i=L.asn1.fromDer(s),s=L.pki.certificateFromAsn1(i,!0),o.push(s)}catch(l){return e.error(e,{message:"Could not parse certificate list.",cause:l,send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.bad_certificate}})}var c=e.entity===g.ConnectionEnd.client;(c||e.verifyClient===!0)&&o.length===0?e.error(e,{message:c?"No server certificate provided.":"No client certificate provided.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.illegal_parameter}}):o.length===0?e.expect=c?w0:Wu:(c?e.session.serverCertificate=o[0]:e.session.clientCertificate=o[0],g.verifyCertificateChain(e,o)&&(e.expect=c?w0:Wu)),e.process()},g.handleServerKeyExchange=function(e,t,a){if(a>0)return e.error(e,{message:"Invalid key parameters. Only RSA is supported.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.unsupported_certificate}});e.expect=fC,e.process()},g.handleClientKeyExchange=function(e,t,a){if(a<48)return e.error(e,{message:"Invalid key parameters. Only RSA is supported.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.unsupported_certificate}});var r=t.fragment,n={enc_pre_master_secret:Bt(r,2).getBytes()},s=null;if(e.getPrivateKey)try{s=e.getPrivateKey(e,e.session.serverCertificate),s=L.pki.privateKeyFromPem(s)}catch(c){e.error(e,{message:"Could not get private key.",cause:c,send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.internal_error}})}if(s===null)return e.error(e,{message:"No private key set.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.internal_error}});try{var i=e.session.sp;i.pre_master_secret=s.decrypt(n.enc_pre_master_secret);var o=e.session.clientHelloVersion;if(o.major!==i.pre_master_secret.charCodeAt(0)||o.minor!==i.pre_master_secret.charCodeAt(1))throw new Error("TLS version rollback attack detected.")}catch{i.pre_master_secret=L.random.getBytes(48)}e.expect=Xu,e.session.clientCertificate!==null&&(e.expect=bC),e.process()},g.handleCertificateRequest=function(e,t,a){if(a<3)return e.error(e,{message:"Invalid CertificateRequest. Message too short.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.illegal_parameter}});var r=t.fragment,n={certificate_types:Bt(r,1),certificate_authorities:Bt(r,2)};e.session.certificateRequest=n,e.expect=mC,e.process()},g.handleCertificateVerify=function(e,t,a){if(a<2)return e.error(e,{message:"Invalid CertificateVerify. Message too short.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.illegal_parameter}});var r=t.fragment;r.read-=4;var n=r.bytes();r.read+=4;var s={signature:Bt(r,2).getBytes()},i=L.util.createBuffer();i.putBuffer(e.session.md5.digest()),i.putBuffer(e.session.sha1.digest()),i=i.getBytes();try{var o=e.session.clientCertificate;if(!o.publicKey.verify(i,s.signature,"NONE"))throw new Error("CertificateVerify signature does not match.");e.session.md5.update(n),e.session.sha1.update(n)}catch{return e.error(e,{message:"Bad signature in CertificateVerify.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.handshake_failure}})}e.expect=Xu,e.process()},g.handleServerHelloDone=function(e,t,a){if(a>0)return e.error(e,{message:"Invalid ServerHelloDone message. Invalid length.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.record_overflow}});if(e.serverCertificate===null){var r={message:"No server certificate provided. Not enough security.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.insufficient_security}},n=0,s=e.verify(e,r.alert.description,n,[]);if(s!==!0)return(s||s===0)&&(typeof s=="object"&&!L.util.isArray(s)?(s.message&&(r.message=s.message),s.alert&&(r.alert.description=s.alert)):typeof s=="number"&&(r.alert.description=s)),e.error(e,r)}e.session.certificateRequest!==null&&(t=g.createRecord(e,{type:g.ContentType.handshake,data:g.createCertificate(e)}),g.queue(e,t)),t=g.createRecord(e,{type:g.ContentType.handshake,data:g.createClientKeyExchange(e)}),g.queue(e,t),e.expect=gC;var i=function(o,c){o.session.certificateRequest!==null&&o.session.clientCertificate!==null&&g.queue(o,g.createRecord(o,{type:g.ContentType.handshake,data:g.createCertificateVerify(o,c)})),g.queue(o,g.createRecord(o,{type:g.ContentType.change_cipher_spec,data:g.createChangeCipherSpec()})),o.state.pending=g.createConnectionState(o),o.state.current.write=o.state.pending.write,g.queue(o,g.createRecord(o,{type:g.ContentType.handshake,data:g.createFinished(o)})),o.expect=A0,g.flush(o),o.process()};if(e.session.certificateRequest===null||e.session.clientCertificate===null)return i(e,null);g.getClientSignature(e,i)},g.handleChangeCipherSpec=function(e,t){if(t.fragment.getByte()!==1)return e.error(e,{message:"Invalid ChangeCipherSpec message received.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.illegal_parameter}});var a=e.entity===g.ConnectionEnd.client;(e.session.resuming&&a||!e.session.resuming&&!a)&&(e.state.pending=g.createConnectionState(e)),e.state.current.read=e.state.pending.read,(!e.session.resuming&&a||e.session.resuming&&!a)&&(e.state.pending=null),e.expect=a?hC:EC,e.process()},g.handleFinished=function(e,t,a){var r=t.fragment;r.read-=4;var n=r.bytes();r.read+=4;var s=t.fragment.getBytes();r=L.util.createBuffer(),r.putBuffer(e.session.md5.digest()),r.putBuffer(e.session.sha1.digest());var i=e.entity===g.ConnectionEnd.client,o=i?"server finished":"client finished",c=e.session.sp,l=12,u=ul;if(r=u(c.master_secret,o,r.getBytes(),l),r.getBytes()!==s)return e.error(e,{message:"Invalid verify_data in Finished message.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.decrypt_error}});e.session.md5.update(n),e.session.sha1.update(n),(e.session.resuming&&i||!e.session.resuming&&!i)&&(g.queue(e,g.createRecord(e,{type:g.ContentType.change_cipher_spec,data:g.createChangeCipherSpec()})),e.state.current.write=e.state.pending.write,e.state.pending=null,g.queue(e,g.createRecord(e,{type:g.ContentType.handshake,data:g.createFinished(e)}))),e.expect=i?vC:CC,e.handshaking=!1,++e.handshakes,e.peerCertificate=i?e.session.serverCertificate:e.session.clientCertificate,g.flush(e),e.isConnected=!0,e.connected(e),e.process()},g.handleAlert=function(e,t){var a=t.fragment,r={level:a.getByte(),description:a.getByte()},n;switch(r.description){case g.Alert.Description.close_notify:n="Connection closed.";break;case g.Alert.Description.unexpected_message:n="Unexpected message.";break;case g.Alert.Description.bad_record_mac:n="Bad record MAC.";break;case g.Alert.Description.decryption_failed:n="Decryption failed.";break;case g.Alert.Description.record_overflow:n="Record overflow.";break;case g.Alert.Description.decompression_failure:n="Decompression failed.";break;case g.Alert.Description.handshake_failure:n="Handshake failure.";break;case g.Alert.Description.bad_certificate:n="Bad certificate.";break;case g.Alert.Description.unsupported_certificate:n="Unsupported certificate.";break;case g.Alert.Description.certificate_revoked:n="Certificate revoked.";break;case g.Alert.Description.certificate_expired:n="Certificate expired.";break;case g.Alert.Description.certificate_unknown:n="Certificate unknown.";break;case g.Alert.Description.illegal_parameter:n="Illegal parameter.";break;case g.Alert.Description.unknown_ca:n="Unknown certificate authority.";break;case g.Alert.Description.access_denied:n="Access denied.";break;case g.Alert.Description.decode_error:n="Decode error.";break;case g.Alert.Description.decrypt_error:n="Decrypt error.";break;case g.Alert.Description.export_restriction:n="Export restriction.";break;case g.Alert.Description.protocol_version:n="Unsupported protocol version.";break;case g.Alert.Description.insufficient_security:n="Insufficient security.";break;case g.Alert.Description.internal_error:n="Internal error.";break;case g.Alert.Description.user_canceled:n="User canceled.";break;case g.Alert.Description.no_renegotiation:n="Renegotiation not supported.";break;default:n="Unknown error.";break}if(r.description===g.Alert.Description.close_notify)return e.close();e.error(e,{message:n,send:!1,origin:e.entity===g.ConnectionEnd.client?"server":"client",alert:r}),e.process()},g.handleHandshake=function(e,t){var a=t.fragment,r=a.getByte(),n=a.getInt24();if(n>a.length())return e.fragmented=t,t.fragment=L.util.createBuffer(),a.read-=4,e.process();e.fragmented=null,a.read-=4;var s=a.bytes(n+4);a.read+=4,r in dl[e.entity][e.expect]?(e.entity===g.ConnectionEnd.server&&!e.open&&!e.fail&&(e.handshaking=!0,e.session={version:null,extensions:{server_name:{serverNameList:[]}},cipherSuite:null,compressionMethod:null,serverCertificate:null,clientCertificate:null,md5:L.md.md5.create(),sha1:L.md.sha1.create()}),r!==g.HandshakeType.hello_request&&r!==g.HandshakeType.certificate_verify&&r!==g.HandshakeType.finished&&(e.session.md5.update(s),e.session.sha1.update(s)),dl[e.entity][e.expect][r](e,t,n)):g.handleUnexpected(e,t)},g.handleApplicationData=function(e,t){e.data.putBuffer(t.fragment),e.dataReady(e),e.process()},g.handleHeartbeat=function(e,t){var a=t.fragment,r=a.getByte(),n=a.getInt16(),s=a.getBytes(n);if(r===g.HeartbeatMessageType.heartbeat_request){if(e.handshaking||n>s.length)return e.process();g.queue(e,g.createRecord(e,{type:g.ContentType.heartbeat,data:g.createHeartbeat(g.HeartbeatMessageType.heartbeat_response,s)})),g.flush(e)}else if(r===g.HeartbeatMessageType.heartbeat_response){if(s!==e.expectedHeartbeatPayload)return e.process();e.heartbeatReceived&&e.heartbeatReceived(e,L.util.createBuffer(s))}e.process()};var pC=0,dC=1,w0=2,fC=3,mC=4,A0=5,hC=6,vC=7,gC=8,xC=0,yC=1,Wu=2,bC=3,Xu=4,EC=5,CC=6,v=g.handleUnexpected,I0=g.handleChangeCipherSpec,He=g.handleAlert,pt=g.handleHandshake,B0=g.handleApplicationData,$e=g.handleHeartbeat,Yu=[];Yu[g.ConnectionEnd.client]=[[v,He,pt,v,$e],[v,He,pt,v,$e],[v,He,pt,v,$e],[v,He,pt,v,$e],[v,He,pt,v,$e],[I0,He,v,v,$e],[v,He,pt,v,$e],[v,He,pt,B0,$e],[v,He,pt,v,$e]],Yu[g.ConnectionEnd.server]=[[v,He,pt,v,$e],[v,He,pt,v,$e],[v,He,pt,v,$e],[v,He,pt,v,$e],[I0,He,v,v,$e],[v,He,pt,v,$e],[v,He,pt,B0,$e],[v,He,pt,v,$e]];var dr=g.handleHelloRequest,SC=g.handleServerHello,_0=g.handleCertificate,R0=g.handleServerKeyExchange,Ju=g.handleCertificateRequest,pl=g.handleServerHelloDone,k0=g.handleFinished,dl=[];dl[g.ConnectionEnd.client]=[[v,v,SC,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v],[dr,v,v,v,v,v,v,v,v,v,v,_0,R0,Ju,pl,v,v,v,v,v,v],[dr,v,v,v,v,v,v,v,v,v,v,v,R0,Ju,pl,v,v,v,v,v,v],[dr,v,v,v,v,v,v,v,v,v,v,v,v,Ju,pl,v,v,v,v,v,v],[dr,v,v,v,v,v,v,v,v,v,v,v,v,v,pl,v,v,v,v,v,v],[dr,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v],[dr,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,k0],[dr,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v],[dr,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v]];var TC=g.handleClientHello,wC=g.handleClientKeyExchange,AC=g.handleCertificateVerify;dl[g.ConnectionEnd.server]=[[v,TC,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v],[v,v,v,v,v,v,v,v,v,v,v,_0,v,v,v,v,v,v,v,v,v],[v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,wC,v,v,v,v],[v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,AC,v,v,v,v,v],[v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v],[v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,k0],[v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v],[v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v]],g.generateKeys=function(e,t){var a=ul,r=t.client_random+t.server_random;e.session.resuming||(t.master_secret=a(t.pre_master_secret,"master secret",r,48).bytes(),t.pre_master_secret=null),r=t.server_random+t.client_random;var n=2*t.mac_key_length+2*t.enc_key_length,s=e.version.major===g.Versions.TLS_1_0.major&&e.version.minor===g.Versions.TLS_1_0.minor;s&&(n+=2*t.fixed_iv_length);var i=a(t.master_secret,"key expansion",r,n),o={client_write_MAC_key:i.getBytes(t.mac_key_length),server_write_MAC_key:i.getBytes(t.mac_key_length),client_write_key:i.getBytes(t.enc_key_length),server_write_key:i.getBytes(t.enc_key_length)};return s&&(o.client_write_IV=i.getBytes(t.fixed_iv_length),o.server_write_IV=i.getBytes(t.fixed_iv_length)),o},g.createConnectionState=function(e){var t=e.entity===g.ConnectionEnd.client,a=function(){var s={sequenceNumber:[0,0],macKey:null,macLength:0,macFunction:null,cipherState:null,cipherFunction:function(i){return!0},compressionState:null,compressFunction:function(i){return!0},updateSequenceNumber:function(){s.sequenceNumber[1]===4294967295?(s.sequenceNumber[1]=0,++s.sequenceNumber[0]):++s.sequenceNumber[1]}};return s},r={read:a(),write:a()};if(r.read.update=function(s,i){return r.read.cipherFunction(i,r.read)?r.read.compressFunction(s,i,r.read)||s.error(s,{message:"Could not decompress record.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.decompression_failure}}):s.error(s,{message:"Could not decrypt record or bad MAC.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.bad_record_mac}}),!s.fail},r.write.update=function(s,i){return r.write.compressFunction(s,i,r.write)?r.write.cipherFunction(i,r.write)||s.error(s,{message:"Could not encrypt record.",send:!1,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.internal_error}}):s.error(s,{message:"Could not compress record.",send:!1,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.internal_error}}),!s.fail},e.session){var n=e.session.sp;switch(e.session.cipherSuite.initSecurityParameters(n),n.keys=g.generateKeys(e,n),r.read.macKey=t?n.keys.server_write_MAC_key:n.keys.client_write_MAC_key,r.write.macKey=t?n.keys.client_write_MAC_key:n.keys.server_write_MAC_key,e.session.cipherSuite.initConnectionState(r,e,n),n.compression_algorithm){case g.CompressionMethod.none:break;case g.CompressionMethod.deflate:r.read.compressFunction=uC,r.write.compressFunction=lC;break;default:throw new Error("Unsupported compression algorithm.")}}return r},g.createRandom=function(){var e=new Date,t=+e+e.getTimezoneOffset()*6e4,a=L.util.createBuffer();return a.putInt32(t),a.putBytes(L.random.getBytes(28)),a},g.createRecord=function(e,t){if(!t.data)return null;var a={type:t.type,version:{major:e.version.major,minor:e.version.minor},length:t.data.length(),fragment:t.data};return a},g.createAlert=function(e,t){var a=L.util.createBuffer();return a.putByte(t.level),a.putByte(t.description),g.createRecord(e,{type:g.ContentType.alert,data:a})},g.createClientHello=function(e){e.session.clientHelloVersion={major:e.version.major,minor:e.version.minor};for(var t=L.util.createBuffer(),a=0;a<e.cipherSuites.length;++a){var r=e.cipherSuites[a];t.putByte(r.id[0]),t.putByte(r.id[1])}var n=t.length(),s=L.util.createBuffer();s.putByte(g.CompressionMethod.none);var i=s.length(),o=L.util.createBuffer();if(e.virtualHost){var c=L.util.createBuffer();c.putByte(0),c.putByte(0);var l=L.util.createBuffer();l.putByte(0),Ut(l,2,L.util.createBuffer(e.virtualHost));var u=L.util.createBuffer();Ut(u,2,l),Ut(c,2,u),o.putBuffer(c)}var p=o.length();p>0&&(p+=2);var f=e.session.id,x=f.length+1+2+4+28+2+n+1+i+p,m=L.util.createBuffer();return m.putByte(g.HandshakeType.client_hello),m.putInt24(x),m.putByte(e.version.major),m.putByte(e.version.minor),m.putBytes(e.session.sp.client_random),Ut(m,1,L.util.createBuffer(f)),Ut(m,2,t),Ut(m,1,s),p>0&&Ut(m,2,o),m},g.createServerHello=function(e){var t=e.session.id,a=t.length+1+2+4+28+2+1,r=L.util.createBuffer();return r.putByte(g.HandshakeType.server_hello),r.putInt24(a),r.putByte(e.version.major),r.putByte(e.version.minor),r.putBytes(e.session.sp.server_random),Ut(r,1,L.util.createBuffer(t)),r.putByte(e.session.cipherSuite.id[0]),r.putByte(e.session.cipherSuite.id[1]),r.putByte(e.session.compressionMethod),r},g.createCertificate=function(e){var t=e.entity===g.ConnectionEnd.client,a=null;if(e.getCertificate){var r;t?r=e.session.certificateRequest:r=e.session.extensions.server_name.serverNameList,a=e.getCertificate(e,r)}var n=L.util.createBuffer();if(a!==null)try{L.util.isArray(a)||(a=[a]);for(var s=null,i=0;i<a.length;++i){var o=L.pem.decode(a[i])[0];if(o.type!=="CERTIFICATE"&&o.type!=="X509 CERTIFICATE"&&o.type!=="TRUSTED CERTIFICATE"){var c=new Error('Could not convert certificate from PEM; PEM header type is not "CERTIFICATE", "X509 CERTIFICATE", or "TRUSTED CERTIFICATE".');throw c.headerType=o.type,c}if(o.procType&&o.procType.type==="ENCRYPTED")throw new Error("Could not convert certificate from PEM; PEM is encrypted.");var l=L.util.createBuffer(o.body);s===null&&(s=L.asn1.fromDer(l.bytes(),!1));var u=L.util.createBuffer();Ut(u,3,l),n.putBuffer(u)}a=L.pki.certificateFromAsn1(s),t?e.session.clientCertificate=a:e.session.serverCertificate=a}catch(x){return e.error(e,{message:"Could not send certificate list.",cause:x,send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.bad_certificate}})}var p=3+n.length(),f=L.util.createBuffer();return f.putByte(g.HandshakeType.certificate),f.putInt24(p),Ut(f,3,n),f},g.createClientKeyExchange=function(e){var t=L.util.createBuffer();t.putByte(e.session.clientHelloVersion.major),t.putByte(e.session.clientHelloVersion.minor),t.putBytes(L.random.getBytes(46));var a=e.session.sp;a.pre_master_secret=t.getBytes();var r=e.session.serverCertificate.publicKey;t=r.encrypt(a.pre_master_secret);var n=t.length+2,s=L.util.createBuffer();return s.putByte(g.HandshakeType.client_key_exchange),s.putInt24(n),s.putInt16(t.length),s.putBytes(t),s},g.createServerKeyExchange=function(e){var t=L.util.createBuffer();return t},g.getClientSignature=function(e,t){var a=L.util.createBuffer();a.putBuffer(e.session.md5.digest()),a.putBuffer(e.session.sha1.digest()),a=a.getBytes(),e.getSignature=e.getSignature||function(r,n,s){var i=null;if(r.getPrivateKey)try{i=r.getPrivateKey(r,r.session.clientCertificate),i=L.pki.privateKeyFromPem(i)}catch(o){r.error(r,{message:"Could not get private key.",cause:o,send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.internal_error}})}i===null?r.error(r,{message:"No private key set.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.internal_error}}):n=i.sign(n,null),s(r,n)},e.getSignature(e,a,t)},g.createCertificateVerify=function(e,t){var a=t.length+2,r=L.util.createBuffer();return r.putByte(g.HandshakeType.certificate_verify),r.putInt24(a),r.putInt16(t.length),r.putBytes(t),r},g.createCertificateRequest=function(e){var t=L.util.createBuffer();t.putByte(1);var a=L.util.createBuffer();for(var r in e.caStore.certs){var n=e.caStore.certs[r],s=L.pki.distinguishedNameToAsn1(n.subject),i=L.asn1.toDer(s);a.putInt16(i.length()),a.putBuffer(i)}var o=1+t.length()+2+a.length(),c=L.util.createBuffer();return c.putByte(g.HandshakeType.certificate_request),c.putInt24(o),Ut(c,1,t),Ut(c,2,a),c},g.createServerHelloDone=function(e){var t=L.util.createBuffer();return t.putByte(g.HandshakeType.server_hello_done),t.putInt24(0),t},g.createChangeCipherSpec=function(){var e=L.util.createBuffer();return e.putByte(1),e},g.createFinished=function(e){var t=L.util.createBuffer();t.putBuffer(e.session.md5.digest()),t.putBuffer(e.session.sha1.digest());var a=e.entity===g.ConnectionEnd.client,r=e.session.sp,n=12,s=ul,i=a?"client finished":"server finished";t=s(r.master_secret,i,t.getBytes(),n);var o=L.util.createBuffer();return o.putByte(g.HandshakeType.finished),o.putInt24(t.length()),o.putBuffer(t),o},g.createHeartbeat=function(e,t,a){typeof a>"u"&&(a=t.length);var r=L.util.createBuffer();r.putByte(e),r.putInt16(a),r.putBytes(t);var n=r.length(),s=Math.max(16,n-a-3);return r.putBytes(L.random.getBytes(s)),r},g.queue=function(e,t){if(t&&!(t.fragment.length()===0&&(t.type===g.ContentType.handshake||t.type===g.ContentType.alert||t.type===g.ContentType.change_cipher_spec))){if(t.type===g.ContentType.handshake){var a=t.fragment.bytes();e.session.md5.update(a),e.session.sha1.update(a),a=null}var r;if(t.fragment.length()<=g.MaxFragment)r=[t];else{r=[];for(var n=t.fragment.bytes();n.length>g.MaxFragment;)r.push(g.createRecord(e,{type:t.type,data:L.util.createBuffer(n.slice(0,g.MaxFragment))})),n=n.slice(g.MaxFragment);n.length>0&&r.push(g.createRecord(e,{type:t.type,data:L.util.createBuffer(n)}))}for(var s=0;s<r.length&&!e.fail;++s){var i=r[s],o=e.state.current.write;o.update(e,i)&&e.records.push(i)}}},g.flush=function(e){for(var t=0;t<e.records.length;++t){var a=e.records[t];e.tlsData.putByte(a.type),e.tlsData.putByte(a.version.major),e.tlsData.putByte(a.version.minor),e.tlsData.putInt16(a.fragment.length()),e.tlsData.putBuffer(e.records[t].fragment)}return e.records=[],e.tlsDataReady(e)};var Zu=function(e){switch(e){case!0:return!0;case L.pki.certificateError.bad_certificate:return g.Alert.Description.bad_certificate;case L.pki.certificateError.unsupported_certificate:return g.Alert.Description.unsupported_certificate;case L.pki.certificateError.certificate_revoked:return g.Alert.Description.certificate_revoked;case L.pki.certificateError.certificate_expired:return g.Alert.Description.certificate_expired;case L.pki.certificateError.certificate_unknown:return g.Alert.Description.certificate_unknown;case L.pki.certificateError.unknown_ca:return g.Alert.Description.unknown_ca;default:return g.Alert.Description.bad_certificate}},IC=function(e){switch(e){case!0:return!0;case g.Alert.Description.bad_certificate:return L.pki.certificateError.bad_certificate;case g.Alert.Description.unsupported_certificate:return L.pki.certificateError.unsupported_certificate;case g.Alert.Description.certificate_revoked:return L.pki.certificateError.certificate_revoked;case g.Alert.Description.certificate_expired:return L.pki.certificateError.certificate_expired;case g.Alert.Description.certificate_unknown:return L.pki.certificateError.certificate_unknown;case g.Alert.Description.unknown_ca:return L.pki.certificateError.unknown_ca;default:return L.pki.certificateError.bad_certificate}};g.verifyCertificateChain=function(e,t){try{var a={};for(var r in e.verifyOptions)a[r]=e.verifyOptions[r];a.verify=function(s,i,o){var c=Zu(s),l=e.verify(e,s,i,o);if(l!==!0){if(typeof l=="object"&&!L.util.isArray(l)){var u=new Error("The application rejected the certificate.");throw u.send=!0,u.alert={level:g.Alert.Level.fatal,description:g.Alert.Description.bad_certificate},l.message&&(u.message=l.message),l.alert&&(u.alert.description=l.alert),u}l!==s&&(l=IC(l))}return l},L.pki.verifyCertificateChain(e.caStore,t,a)}catch(s){var n=s;(typeof n!="object"||L.util.isArray(n))&&(n={send:!0,alert:{level:g.Alert.Level.fatal,description:Zu(s)}}),"send"in n||(n.send=!0),"alert"in n||(n.alert={level:g.Alert.Level.fatal,description:Zu(n.error)}),e.error(e,n)}return!e.fail},g.createSessionCache=function(e,t){var a=null;if(e&&e.getSession&&e.setSession&&e.order)a=e;else{a={},a.cache=e||{},a.capacity=Math.max(t||100,1),a.order=[];for(var r in e)a.order.length<=t?a.order.push(r):delete e[r];a.getSession=function(n){var s=null,i=null;if(n?i=L.util.bytesToHex(n):a.order.length>0&&(i=a.order[0]),i!==null&&i in a.cache){s=a.cache[i],delete a.cache[i];for(var o in a.order)if(a.order[o]===i){a.order.splice(o,1);break}}return s},a.setSession=function(n,s){if(a.order.length===a.capacity){var i=a.order.shift();delete a.cache[i]}var i=L.util.bytesToHex(n);a.order.push(i),a.cache[i]=s}}return a},g.createConnection=function(e){var t=null;e.caStore?L.util.isArray(e.caStore)?t=L.pki.createCaStore(e.caStore):t=e.caStore:t=L.pki.createCaStore();var a=e.cipherSuites||null;if(a===null){a=[];for(var r in g.CipherSuites)a.push(g.CipherSuites[r])}var n=e.server?g.ConnectionEnd.server:g.ConnectionEnd.client,s=e.sessionCache?g.createSessionCache(e.sessionCache):null,i={version:{major:g.Version.major,minor:g.Version.minor},entity:n,sessionId:e.sessionId,caStore:t,sessionCache:s,cipherSuites:a,connected:e.connected,virtualHost:e.virtualHost||null,verifyClient:e.verifyClient||!1,verify:e.verify||function(u,p,f,x){return p},verifyOptions:e.verifyOptions||{},getCertificate:e.getCertificate||null,getPrivateKey:e.getPrivateKey||null,getSignature:e.getSignature||null,input:L.util.createBuffer(),tlsData:L.util.createBuffer(),data:L.util.createBuffer(),tlsDataReady:e.tlsDataReady,dataReady:e.dataReady,heartbeatReceived:e.heartbeatReceived,closed:e.closed,error:function(u,p){p.origin=p.origin||(u.entity===g.ConnectionEnd.client?"client":"server"),p.send&&(g.queue(u,g.createAlert(u,p.alert)),g.flush(u));var f=p.fatal!==!1;f&&(u.fail=!0),e.error(u,p),f&&u.close(!1)},deflate:e.deflate||null,inflate:e.inflate||null};i.reset=function(u){i.version={major:g.Version.major,minor:g.Version.minor},i.record=null,i.session=null,i.peerCertificate=null,i.state={pending:null,current:null},i.expect=i.entity===g.ConnectionEnd.client?pC:xC,i.fragmented=null,i.records=[],i.open=!1,i.handshakes=0,i.handshaking=!1,i.isConnected=!1,i.fail=!(u||typeof u>"u"),i.input.clear(),i.tlsData.clear(),i.data.clear(),i.state.current=g.createConnectionState(i)},i.reset();var o=function(u,p){var f=p.type-g.ContentType.change_cipher_spec,x=Yu[u.entity][u.expect];f in x?x[f](u,p):g.handleUnexpected(u,p)},c=function(u){var p=0,f=u.input,x=f.length();if(x<5)p=5-x;else{u.record={type:f.getByte(),version:{major:f.getByte(),minor:f.getByte()},length:f.getInt16(),fragment:L.util.createBuffer(),ready:!1};var m=u.record.version.major===u.version.major;m&&u.session&&u.session.version&&(m=u.record.version.minor===u.version.minor),m||u.error(u,{message:"Incompatible TLS version.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.protocol_version}})}return p},l=function(u){var p=0,f=u.input,x=f.length();if(x<u.record.length)p=u.record.length-x;else{u.record.fragment.putBytes(f.getBytes(u.record.length)),f.compact();var m=u.state.current.read;m.update(u,u.record)&&(u.fragmented!==null&&(u.fragmented.type===u.record.type?(u.fragmented.fragment.putBuffer(u.record.fragment),u.record=u.fragmented):u.error(u,{message:"Invalid fragmented record.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.unexpected_message}})),u.record.ready=!0)}return p};return i.handshake=function(u){if(i.entity!==g.ConnectionEnd.client)i.error(i,{message:"Cannot initiate handshake as a server.",fatal:!1});else if(i.handshaking)i.error(i,{message:"Handshake already in progress.",fatal:!1});else{i.fail&&!i.open&&i.handshakes===0&&(i.fail=!1),i.handshaking=!0,u=u||"";var p=null;u.length>0&&(i.sessionCache&&(p=i.sessionCache.getSession(u)),p===null&&(u="")),u.length===0&&i.sessionCache&&(p=i.sessionCache.getSession(),p!==null&&(u=p.id)),i.session={id:u,version:null,cipherSuite:null,compressionMethod:null,serverCertificate:null,certificateRequest:null,clientCertificate:null,sp:{},md5:L.md.md5.create(),sha1:L.md.sha1.create()},p&&(i.version=p.version,i.session.sp=p.sp),i.session.sp.client_random=g.createRandom().getBytes(),i.open=!0,g.queue(i,g.createRecord(i,{type:g.ContentType.handshake,data:g.createClientHello(i)})),g.flush(i)}},i.process=function(u){var p=0;return u&&i.input.putBytes(u),i.fail||(i.record!==null&&i.record.ready&&i.record.fragment.isEmpty()&&(i.record=null),i.record===null&&(p=c(i)),!i.fail&&i.record!==null&&!i.record.ready&&(p=l(i)),!i.fail&&i.record!==null&&i.record.ready&&o(i,i.record)),p},i.prepare=function(u){return g.queue(i,g.createRecord(i,{type:g.ContentType.application_data,data:L.util.createBuffer(u)})),g.flush(i)},i.prepareHeartbeatRequest=function(u,p){return u instanceof L.util.ByteBuffer&&(u=u.bytes()),typeof p>"u"&&(p=u.length),i.expectedHeartbeatPayload=u,g.queue(i,g.createRecord(i,{type:g.ContentType.heartbeat,data:g.createHeartbeat(g.HeartbeatMessageType.heartbeat_request,u,p)})),g.flush(i)},i.close=function(u){if(!i.fail&&i.sessionCache&&i.session){var p={id:i.session.id,version:i.session.version,sp:i.session.sp};p.sp.keys=null,i.sessionCache.setSession(p.id,p)}i.open&&(i.open=!1,i.input.clear(),(i.isConnected||i.handshaking)&&(i.isConnected=i.handshaking=!1,g.queue(i,g.createAlert(i,{level:g.Alert.Level.warning,description:g.Alert.Description.close_notify})),g.flush(i)),i.closed(i)),i.reset(u)},i},L.tls=L.tls||{};for(var ep in g)typeof g[ep]!="function"&&(L.tls[ep]=g[ep]);L.tls.prf_tls1=ul,L.tls.hmac_sha1=cC,L.tls.createSessionCache=g.createSessionCache,L.tls.createConnection=g.createConnection;var fr=ee,Dt=fr.tls;Dt.CipherSuites.TLS_RSA_WITH_AES_128_CBC_SHA={id:[0,47],name:"TLS_RSA_WITH_AES_128_CBC_SHA",initSecurityParameters:function(e){e.bulk_cipher_algorithm=Dt.BulkCipherAlgorithm.aes,e.cipher_type=Dt.CipherType.block,e.enc_key_length=16,e.block_length=16,e.fixed_iv_length=16,e.record_iv_length=16,e.mac_algorithm=Dt.MACAlgorithm.hmac_sha1,e.mac_length=20,e.mac_key_length=20},initConnectionState:N0},Dt.CipherSuites.TLS_RSA_WITH_AES_256_CBC_SHA={id:[0,53],name:"TLS_RSA_WITH_AES_256_CBC_SHA",initSecurityParameters:function(e){e.bulk_cipher_algorithm=Dt.BulkCipherAlgorithm.aes,e.cipher_type=Dt.CipherType.block,e.enc_key_length=32,e.block_length=16,e.fixed_iv_length=16,e.record_iv_length=16,e.mac_algorithm=Dt.MACAlgorithm.hmac_sha1,e.mac_length=20,e.mac_key_length=20},initConnectionState:N0};function N0(e,t,a){var r=t.entity===fr.tls.ConnectionEnd.client;e.read.cipherState={init:!1,cipher:fr.cipher.createDecipher("AES-CBC",r?a.keys.server_write_key:a.keys.client_write_key),iv:r?a.keys.server_write_IV:a.keys.client_write_IV},e.write.cipherState={init:!1,cipher:fr.cipher.createCipher("AES-CBC",r?a.keys.client_write_key:a.keys.server_write_key),iv:r?a.keys.client_write_IV:a.keys.server_write_IV},e.read.cipherFunction=kC,e.write.cipherFunction=BC,e.read.macLength=e.write.macLength=a.mac_length,e.read.macFunction=e.write.macFunction=Dt.hmac_sha1}function BC(e,t){var a=!1,r=t.macFunction(t.macKey,t.sequenceNumber,e);e.fragment.putBytes(r),t.updateSequenceNumber();var n;e.version.minor===Dt.Versions.TLS_1_0.minor?n=t.cipherState.init?null:t.cipherState.iv:n=fr.random.getBytesSync(16),t.cipherState.init=!0;var s=t.cipherState.cipher;return s.start({iv:n}),e.version.minor>=Dt.Versions.TLS_1_1.minor&&s.output.putBytes(n),s.update(e.fragment),s.finish(_C)&&(e.fragment=s.output,e.length=e.fragment.length(),a=!0),a}function _C(e,t,a){if(!a){var r=e-t.length()%e;t.fillWithByte(r-1,r)}return!0}function RC(e,t,a){var r=!0;if(a){for(var n=t.length(),s=t.last(),i=n-1-s;i<n-1;++i)r=r&&t.at(i)==s;r&&t.truncate(s+1)}return r}function kC(e,t){var a=!1,r;e.version.minor===Dt.Versions.TLS_1_0.minor?r=t.cipherState.init?null:t.cipherState.iv:r=e.fragment.getBytes(16),t.cipherState.init=!0;var n=t.cipherState.cipher;n.start({iv:r}),n.update(e.fragment),a=n.finish(RC);var s=t.macLength,i=fr.random.getBytesSync(s),o=n.output.length();o>=s?(e.fragment=n.output.getBytes(o-s),i=n.output.getBytes(s)):e.fragment=n.output.getBytes(),e.fragment=fr.util.createBuffer(e.fragment),e.length=e.fragment.length();var c=t.macFunction(t.macKey,t.sequenceNumber,e);return t.updateSequenceNumber(),a=NC(t.macKey,i,c)&&a,a}function NC(e,t,a){var r=fr.hmac.create();return r.start("SHA1",e),r.update(t),t=r.digest().getBytes(),r.start(null,null),r.update(a),a=r.digest().getBytes(),t===a}var Be=ee,gc=Be.sha512=Be.sha512||{};Be.md.sha512=Be.md.algorithms.sha512=gc;var L0=Be.sha384=Be.sha512.sha384=Be.sha512.sha384||{};L0.create=function(){return gc.create("SHA-384")},Be.md.sha384=Be.md.algorithms.sha384=L0,Be.sha512.sha256=Be.sha512.sha256||{create:function(){return gc.create("SHA-512/256")}},Be.md["sha512/256"]=Be.md.algorithms["sha512/256"]=Be.sha512.sha256,Be.sha512.sha224=Be.sha512.sha224||{create:function(){return gc.create("SHA-512/224")}},Be.md["sha512/224"]=Be.md.algorithms["sha512/224"]=Be.sha512.sha224,gc.create=function(e){if(U0||LC(),typeof e>"u"&&(e="SHA-512"),!(e in Rr))throw new Error("Invalid SHA-512 algorithm: "+e);for(var t=Rr[e],a=null,r=Be.util.createBuffer(),n=new Array(80),s=0;s<80;++s)n[s]=new Array(2);var i=64;switch(e){case"SHA-384":i=48;break;case"SHA-512/256":i=32;break;case"SHA-512/224":i=28;break}var o={algorithm:e.replace("-","").toLowerCase(),blockLength:128,digestLength:i,messageLength:0,fullMessageLength:null,messageLengthSize:16};return o.start=function(){o.messageLength=0,o.fullMessageLength=o.messageLength128=[];for(var c=o.messageLengthSize/4,l=0;l<c;++l)o.fullMessageLength.push(0);r=Be.util.createBuffer(),a=new Array(t.length);for(var l=0;l<t.length;++l)a[l]=t[l].slice(0);return o},o.start(),o.update=function(c,l){l==="utf8"&&(c=Be.util.encodeUtf8(c));var u=c.length;o.messageLength+=u,u=[u/4294967296>>>0,u>>>0];for(var p=o.fullMessageLength.length-1;p>=0;--p)o.fullMessageLength[p]+=u[1],u[1]=u[0]+(o.fullMessageLength[p]/4294967296>>>0),o.fullMessageLength[p]=o.fullMessageLength[p]>>>0,u[0]=u[1]/4294967296>>>0;return r.putBytes(c),D0(a,n,r),(r.read>2048||r.length()===0)&&r.compact(),o},o.digest=function(){var c=Be.util.createBuffer();c.putBytes(r.bytes());var l=o.fullMessageLength[o.fullMessageLength.length-1]+o.messageLengthSize,u=l&o.blockLength-1;c.putBytes(tp.substr(0,o.blockLength-u));for(var p,f,x=o.fullMessageLength[0]*8,m=0;m<o.fullMessageLength.length-1;++m)p=o.fullMessageLength[m+1]*8,f=p/4294967296>>>0,x+=f,c.putInt32(x>>>0),x=p>>>0;c.putInt32(x);for(var y=new Array(a.length),m=0;m<a.length;++m)y[m]=a[m].slice(0);D0(y,n,c);var b=Be.util.createBuffer(),S;e==="SHA-512"?S=y.length:e==="SHA-384"?S=y.length-2:S=y.length-4;for(var m=0;m<S;++m)b.putInt32(y[m][0]),(m!==S-1||e!=="SHA-512/224")&&b.putInt32(y[m][1]);return b},o};var tp=null,U0=!1,rp=null,Rr=null;function LC(){tp="\x80",tp+=Be.util.fillString("\0",128),rp=[[1116352408,3609767458],[1899447441,602891725],[3049323471,3964484399],[3921009573,2173295548],[961987163,4081628472],[1508970993,3053834265],[2453635748,2937671579],[2870763221,3664609560],[3624381080,2734883394],[310598401,1164996542],[607225278,1323610764],[1426881987,3590304994],[1925078388,4068182383],[2162078206,991336113],[2614888103,633803317],[3248222580,3479774868],[3835390401,2666613458],[4022224774,944711139],[264347078,2341262773],[604807628,2007800933],[770255983,1495990901],[1249150122,1856431235],[1555081692,3175218132],[1996064986,2198950837],[2554220882,3999719339],[2821834349,766784016],[2952996808,2566594879],[3210313671,3203337956],[3336571891,1034457026],[3584528711,2466948901],[113926993,3758326383],[338241895,168717936],[666307205,1188179964],[773529912,1546045734],[1294757372,1522805485],[1396182291,2643833823],[1695183700,2343527390],[1986661051,1014477480],[2177026350,1206759142],[2456956037,344077627],[2730485921,1290863460],[2820302411,3158454273],[3259730800,3505952657],[3345764771,106217008],[3516065817,3606008344],[3600352804,1432725776],[4094571909,1467031594],[275423344,851169720],[430227734,3100823752],[506948616,1363258195],[659060556,3750685593],[883997877,3785050280],[958139571,3318307427],[1322822218,3812723403],[1537002063,2003034995],[1747873779,3602036899],[1955562222,1575990012],[2024104815,1125592928],[2227730452,2716904306],[2361852424,442776044],[2428436474,593698344],[2756734187,3733110249],[3204031479,2999351573],[3329325298,3815920427],[3391569614,3928383900],[3515267271,566280711],[3940187606,3454069534],[4118630271,4000239992],[116418474,1914138554],[174292421,2731055270],[289380356,3203993006],[460393269,320620315],[685471733,587496836],[852142971,1086792851],[1017036298,365543100],[1126000580,2618297676],[1288033470,3409855158],[1501505948,4234509866],[1607167915,987167468],[1816402316,1246189591]],Rr={},Rr["SHA-512"]=[[1779033703,4089235720],[3144134277,2227873595],[1013904242,4271175723],[2773480762,1595750129],[1359893119,2917565137],[2600822924,725511199],[528734635,4215389547],[1541459225,327033209]],Rr["SHA-384"]=[[3418070365,3238371032],[1654270250,914150663],[2438529370,812702999],[355462360,4144912697],[1731405415,4290775857],[2394180231,1750603025],[3675008525,1694076839],[1203062813,3204075428]],Rr["SHA-512/256"]=[[573645204,4230739756],[2673172387,3360449730],[596883563,1867755857],[2520282905,1497426621],[2519219938,2827943907],[3193839141,1401305490],[721525244,746961066],[246885852,2177182882]],Rr["SHA-512/224"]=[[2352822216,424955298],[1944164710,2312950998],[502970286,855612546],[1738396948,1479516111],[258812777,2077511080],[2011393907,79989058],[1067287976,1780299464],[286451373,2446758561]],U0=!0}function D0(e,t,a){for(var r,n,s,i,o,c,l,u,p,f,x,m,y,b,S,B,_,D,k,P,z,W,J,te,ve,pe,ke,oe,ce,le,U,H,Se,be,X,ue=a.length();ue>=128;){for(ce=0;ce<16;++ce)t[ce][0]=a.getInt32()>>>0,t[ce][1]=a.getInt32()>>>0;for(;ce<80;++ce)H=t[ce-2],le=H[0],U=H[1],r=((le>>>19|U<<13)^(U>>>29|le<<3)^le>>>6)>>>0,n=((le<<13|U>>>19)^(U<<3|le>>>29)^(le<<26|U>>>6))>>>0,be=t[ce-15],le=be[0],U=be[1],s=((le>>>1|U<<31)^(le>>>8|U<<24)^le>>>7)>>>0,i=((le<<31|U>>>1)^(le<<24|U>>>8)^(le<<25|U>>>7))>>>0,Se=t[ce-7],X=t[ce-16],U=n+Se[1]+i+X[1],t[ce][0]=r+Se[0]+s+X[0]+(U/4294967296>>>0)>>>0,t[ce][1]=U>>>0;for(y=e[0][0],b=e[0][1],S=e[1][0],B=e[1][1],_=e[2][0],D=e[2][1],k=e[3][0],P=e[3][1],z=e[4][0],W=e[4][1],J=e[5][0],te=e[5][1],ve=e[6][0],pe=e[6][1],ke=e[7][0],oe=e[7][1],ce=0;ce<80;++ce)l=((z>>>14|W<<18)^(z>>>18|W<<14)^(W>>>9|z<<23))>>>0,u=((z<<18|W>>>14)^(z<<14|W>>>18)^(W<<23|z>>>9))>>>0,p=(ve^z&(J^ve))>>>0,f=(pe^W&(te^pe))>>>0,o=((y>>>28|b<<4)^(b>>>2|y<<30)^(b>>>7|y<<25))>>>0,c=((y<<4|b>>>28)^(b<<30|y>>>2)^(b<<25|y>>>7))>>>0,x=(y&S|_&(y^S))>>>0,m=(b&B|D&(b^B))>>>0,U=oe+u+f+rp[ce][1]+t[ce][1],r=ke+l+p+rp[ce][0]+t[ce][0]+(U/4294967296>>>0)>>>0,n=U>>>0,U=c+m,s=o+x+(U/4294967296>>>0)>>>0,i=U>>>0,ke=ve,oe=pe,ve=J,pe=te,J=z,te=W,U=P+n,z=k+r+(U/4294967296>>>0)>>>0,W=U>>>0,k=_,P=D,_=S,D=B,S=y,B=b,U=n+i,y=r+s+(U/4294967296>>>0)>>>0,b=U>>>0;U=e[0][1]+b,e[0][0]=e[0][0]+y+(U/4294967296>>>0)>>>0,e[0][1]=U>>>0,U=e[1][1]+B,e[1][0]=e[1][0]+S+(U/4294967296>>>0)>>>0,e[1][1]=U>>>0,U=e[2][1]+D,e[2][0]=e[2][0]+_+(U/4294967296>>>0)>>>0,e[2][1]=U>>>0,U=e[3][1]+P,e[3][0]=e[3][0]+k+(U/4294967296>>>0)>>>0,e[3][1]=U>>>0,U=e[4][1]+W,e[4][0]=e[4][0]+z+(U/4294967296>>>0)>>>0,e[4][1]=U>>>0,U=e[5][1]+te,e[5][0]=e[5][0]+J+(U/4294967296>>>0)>>>0,e[5][1]=U>>>0,U=e[6][1]+pe,e[6][0]=e[6][0]+ve+(U/4294967296>>>0)>>>0,e[6][1]=U>>>0,U=e[7][1]+oe,e[7][0]=e[7][0]+ke+(U/4294967296>>>0)>>>0,e[7][1]=U>>>0,ue-=128}}var ap={},UC=ee,Ke=UC.asn1;ap.privateKeyValidator={name:"PrivateKeyInfo",tagClass:Ke.Class.UNIVERSAL,type:Ke.Type.SEQUENCE,constructed:!0,value:[{name:"PrivateKeyInfo.version",tagClass:Ke.Class.UNIVERSAL,type:Ke.Type.INTEGER,constructed:!1,capture:"privateKeyVersion"},{name:"PrivateKeyInfo.privateKeyAlgorithm",tagClass:Ke.Class.UNIVERSAL,type:Ke.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:Ke.Class.UNIVERSAL,type:Ke.Type.OID,constructed:!1,capture:"privateKeyOid"}]},{name:"PrivateKeyInfo",tagClass:Ke.Class.UNIVERSAL,type:Ke.Type.OCTETSTRING,constructed:!1,capture:"privateKey"}]},ap.publicKeyValidator={name:"SubjectPublicKeyInfo",tagClass:Ke.Class.UNIVERSAL,type:Ke.Type.SEQUENCE,constructed:!0,captureAsn1:"subjectPublicKeyInfo",value:[{name:"SubjectPublicKeyInfo.AlgorithmIdentifier",tagClass:Ke.Class.UNIVERSAL,type:Ke.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:Ke.Class.UNIVERSAL,type:Ke.Type.OID,constructed:!1,capture:"publicKeyOid"}]},{tagClass:Ke.Class.UNIVERSAL,type:Ke.Type.BITSTRING,constructed:!1,composed:!0,captureBitStringValue:"ed25519PublicKey"}]};var Ge=ee,P0=ap,DC=P0.publicKeyValidator,PC=P0.privateKeyValidator;if(typeof OC>"u")var OC=Ge.jsbn.BigInteger;var np=Ge.util.ByteBuffer,wt=typeof Buffer>"u"?Uint8Array:Buffer;Ge.pki=Ge.pki||{},Ge.pki.ed25519=Ge.ed25519=Ge.ed25519||{};var ie=Ge.ed25519;ie.constants={},ie.constants.PUBLIC_KEY_BYTE_LENGTH=32,ie.constants.PRIVATE_KEY_BYTE_LENGTH=64,ie.constants.SEED_BYTE_LENGTH=32,ie.constants.SIGN_BYTE_LENGTH=64,ie.constants.HASH_BYTE_LENGTH=64,ie.generateKeyPair=function(e){e=e||{};var t=e.seed;if(t===void 0)t=Ge.random.getBytesSync(ie.constants.SEED_BYTE_LENGTH);else if(typeof t=="string"){if(t.length!==ie.constants.SEED_BYTE_LENGTH)throw new TypeError('"seed" must be '+ie.constants.SEED_BYTE_LENGTH+" bytes in length.")}else if(!(t instanceof Uint8Array))throw new TypeError('"seed" must be a node.js Buffer, Uint8Array, or a binary string.');t=er({message:t,encoding:"binary"});for(var a=new wt(ie.constants.PUBLIC_KEY_BYTE_LENGTH),r=new wt(ie.constants.PRIVATE_KEY_BYTE_LENGTH),n=0;n<32;++n)r[n]=t[n];return qC(a,r),{publicKey:a,privateKey:r}},ie.privateKeyFromAsn1=function(e){var t={},a=[],r=Ge.asn1.validate(e,PC,t,a);if(!r){var n=new Error("Invalid Key.");throw n.errors=a,n}var s=Ge.asn1.derToOid(t.privateKeyOid),i=Ge.oids.EdDSA25519;if(s!==i)throw new Error('Invalid OID "'+s+'"; OID must be "'+i+'".');var o=t.privateKey,c=er({message:Ge.asn1.fromDer(o).value,encoding:"binary"});return{privateKeyBytes:c}},ie.publicKeyFromAsn1=function(e){var t={},a=[],r=Ge.asn1.validate(e,DC,t,a);if(!r){var n=new Error("Invalid Key.");throw n.errors=a,n}var s=Ge.asn1.derToOid(t.publicKeyOid),i=Ge.oids.EdDSA25519;if(s!==i)throw new Error('Invalid OID "'+s+'"; OID must be "'+i+'".');var o=t.ed25519PublicKey;if(o.length!==ie.constants.PUBLIC_KEY_BYTE_LENGTH)throw new Error("Key length is invalid.");return er({message:o,encoding:"binary"})},ie.publicKeyFromPrivateKey=function(e){e=e||{};var t=er({message:e.privateKey,encoding:"binary"});if(t.length!==ie.constants.PRIVATE_KEY_BYTE_LENGTH)throw new TypeError('"options.privateKey" must have a byte length of '+ie.constants.PRIVATE_KEY_BYTE_LENGTH);for(var a=new wt(ie.constants.PUBLIC_KEY_BYTE_LENGTH),r=0;r<a.length;++r)a[r]=t[32+r];return a},ie.sign=function(e){e=e||{};var t=er(e),a=er({message:e.privateKey,encoding:"binary"});if(a.length===ie.constants.SEED_BYTE_LENGTH){var r=ie.generateKeyPair({seed:a});a=r.privateKey}else if(a.length!==ie.constants.PRIVATE_KEY_BYTE_LENGTH)throw new TypeError('"options.privateKey" must have a byte length of '+ie.constants.SEED_BYTE_LENGTH+" or "+ie.constants.PRIVATE_KEY_BYTE_LENGTH);var n=new wt(ie.constants.SIGN_BYTE_LENGTH+t.length);jC(n,t,t.length,a);for(var s=new wt(ie.constants.SIGN_BYTE_LENGTH),i=0;i<s.length;++i)s[i]=n[i];return s},ie.verify=function(e){e=e||{};var t=er(e);if(e.signature===void 0)throw new TypeError('"options.signature" must be a node.js Buffer, a Uint8Array, a forge ByteBuffer, or a binary string.');var a=er({message:e.signature,encoding:"binary"});if(a.length!==ie.constants.SIGN_BYTE_LENGTH)throw new TypeError('"options.signature" must have a byte length of '+ie.constants.SIGN_BYTE_LENGTH);var r=er({message:e.publicKey,encoding:"binary"});if(r.length!==ie.constants.PUBLIC_KEY_BYTE_LENGTH)throw new TypeError('"options.publicKey" must have a byte length of '+ie.constants.PUBLIC_KEY_BYTE_LENGTH);var n=new wt(ie.constants.SIGN_BYTE_LENGTH+t.length),s=new wt(ie.constants.SIGN_BYTE_LENGTH+t.length),i;for(i=0;i<ie.constants.SIGN_BYTE_LENGTH;++i)n[i]=a[i];for(i=0;i<t.length;++i)n[i+ie.constants.SIGN_BYTE_LENGTH]=t[i];return KC(s,n,n.length,r)>=0};function er(e){var t=e.message;if(t instanceof Uint8Array||t instanceof wt)return t;var a=e.encoding;if(t===void 0)if(e.md)t=e.md.digest().getBytes(),a="binary";else throw new TypeError('"options.message" or "options.md" not specified.');if(typeof t=="string"&&!a)throw new TypeError('"options.encoding" must be "binary" or "utf8".');if(typeof t=="string"){if(typeof Buffer<"u")return Buffer.from(t,a);t=new np(t,a)}else if(!(t instanceof np))throw new TypeError('"options.message" must be a node.js Buffer, a Uint8Array, a forge ByteBuffer, or a string with "options.encoding" specifying its encoding.');for(var r=new wt(t.length()),n=0;n<r.length;++n)r[n]=t.at(n);return r}var ip=Q(),fl=Q([1]),FC=Q([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),MC=Q([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),O0=Q([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),F0=Q([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),sp=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]),VC=Q([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function xc(e,t){var a=Ge.md.sha512.create(),r=new np(e);a.update(r.getBytes(t),"binary");var n=a.digest().getBytes();if(typeof Buffer<"u")return Buffer.from(n,"binary");for(var s=new wt(ie.constants.HASH_BYTE_LENGTH),i=0;i<64;++i)s[i]=n.charCodeAt(i);return s}function qC(e,t){var a=[Q(),Q(),Q(),Q()],r,n=xc(t,32);for(n[0]&=248,n[31]&=127,n[31]|=64,up(a,n),lp(e,a),r=0;r<32;++r)t[r+32]=e[r];return 0}function jC(e,t,a,r){var n,s,i=new Float64Array(64),o=[Q(),Q(),Q(),Q()],c=xc(r,32);c[0]&=248,c[31]&=127,c[31]|=64;var l=a+64;for(n=0;n<a;++n)e[64+n]=t[n];for(n=0;n<32;++n)e[32+n]=c[32+n];var u=xc(e.subarray(32),a+32);for(op(u),up(o,u),lp(e,o),n=32;n<64;++n)e[n]=r[n];var p=xc(e,a+64);for(op(p),n=32;n<64;++n)i[n]=0;for(n=0;n<32;++n)i[n]=u[n];for(n=0;n<32;++n)for(s=0;s<32;s++)i[n+s]+=p[n]*c[s];return M0(e.subarray(32),i),l}function KC(e,t,a,r){var n,s,i=new wt(32),o=[Q(),Q(),Q(),Q()],c=[Q(),Q(),Q(),Q()];if(s=-1,a<64||zC(c,r))return-1;for(n=0;n<a;++n)e[n]=t[n];for(n=0;n<32;++n)e[n+32]=r[n];var l=xc(e,a);if(op(l),z0(o,c,l),up(c,t.subarray(32)),cp(o,c),lp(i,o),a-=64,j0(t,0,i,0)){for(n=0;n<a;++n)e[n]=0;return-1}for(n=0;n<a;++n)e[n]=t[n+64];return s=a,s}function M0(e,t){var a,r,n,s;for(r=63;r>=32;--r){for(a=0,n=r-32,s=r-12;n<s;++n)t[n]+=a-16*t[r]*sp[n-(r-32)],a=t[n]+128>>8,t[n]-=a*256;t[n]+=a,t[r]=0}for(a=0,n=0;n<32;++n)t[n]+=a-(t[31]>>4)*sp[n],a=t[n]>>8,t[n]&=255;for(n=0;n<32;++n)t[n]-=a*sp[n];for(r=0;r<32;++r)t[r+1]+=t[r]>>8,e[r]=t[r]&255}function op(e){for(var t=new Float64Array(64),a=0;a<64;++a)t[a]=e[a],e[a]=0;M0(e,t)}function cp(e,t){var a=Q(),r=Q(),n=Q(),s=Q(),i=Q(),o=Q(),c=Q(),l=Q(),u=Q();ea(a,e[1],e[0]),ea(u,t[1],t[0]),Te(a,a,u),Zr(r,e[0],e[1]),Zr(u,t[0],t[1]),Te(r,r,u),Te(n,e[3],t[3]),Te(n,n,MC),Te(s,e[2],t[2]),Zr(s,s,s),ea(i,r,a),ea(o,s,n),Zr(c,s,n),Zr(l,r,a),Te(e[0],i,o),Te(e[1],l,c),Te(e[2],c,o),Te(e[3],i,l)}function V0(e,t,a){for(var r=0;r<4;++r)H0(e[r],t[r],a)}function lp(e,t){var a=Q(),r=Q(),n=Q();QC(n,t[2]),Te(a,t[0],n),Te(r,t[1],n),ml(e,r),e[31]^=K0(a)<<7}function ml(e,t){var a,r,n,s=Q(),i=Q();for(a=0;a<16;++a)i[a]=t[a];for(pp(i),pp(i),pp(i),r=0;r<2;++r){for(s[0]=i[0]-65517,a=1;a<15;++a)s[a]=i[a]-65535-(s[a-1]>>16&1),s[a-1]&=65535;s[15]=i[15]-32767-(s[14]>>16&1),n=s[15]>>16&1,s[14]&=65535,H0(i,s,1-n)}for(a=0;a<16;a++)e[2*a]=i[a]&255,e[2*a+1]=i[a]>>8}function zC(e,t){var a=Q(),r=Q(),n=Q(),s=Q(),i=Q(),o=Q(),c=Q();return mr(e[2],fl),HC(e[1],t),kr(n,e[1]),Te(s,n,FC),ea(n,n,e[2]),Zr(s,e[2],s),kr(i,s),kr(o,i),Te(c,o,i),Te(a,c,n),Te(a,a,s),$C(a,a),Te(a,a,n),Te(a,a,s),Te(a,a,s),Te(e[0],a,s),kr(r,e[0]),Te(r,r,s),q0(r,n)&&Te(e[0],e[0],VC),kr(r,e[0]),Te(r,r,s),q0(r,n)?-1:(K0(e[0])===t[31]>>7&&ea(e[0],ip,e[0]),Te(e[3],e[0],e[1]),0)}function HC(e,t){var a;for(a=0;a<16;++a)e[a]=t[2*a]+(t[2*a+1]<<8);e[15]&=32767}function $C(e,t){var a=Q(),r;for(r=0;r<16;++r)a[r]=t[r];for(r=250;r>=0;--r)kr(a,a),r!==1&&Te(a,a,t);for(r=0;r<16;++r)e[r]=a[r]}function q0(e,t){var a=new wt(32),r=new wt(32);return ml(a,e),ml(r,t),j0(a,0,r,0)}function j0(e,t,a,r){return GC(e,t,a,r,32)}function GC(e,t,a,r,n){var s,i=0;for(s=0;s<n;++s)i|=e[t+s]^a[r+s];return(1&i-1>>>8)-1}function K0(e){var t=new wt(32);return ml(t,e),t[0]&1}function z0(e,t,a){var r,n;for(mr(e[0],ip),mr(e[1],fl),mr(e[2],fl),mr(e[3],ip),n=255;n>=0;--n)r=a[n/8|0]>>(n&7)&1,V0(e,t,r),cp(t,e),cp(e,e),V0(e,t,r)}function up(e,t){var a=[Q(),Q(),Q(),Q()];mr(a[0],O0),mr(a[1],F0),mr(a[2],fl),Te(a[3],O0,F0),z0(e,a,t)}function mr(e,t){var a;for(a=0;a<16;a++)e[a]=t[a]|0}function QC(e,t){var a=Q(),r;for(r=0;r<16;++r)a[r]=t[r];for(r=253;r>=0;--r)kr(a,a),r!==2&&r!==4&&Te(a,a,t);for(r=0;r<16;++r)e[r]=a[r]}function pp(e){var t,a,r=1;for(t=0;t<16;++t)a=e[t]+r+65535,r=Math.floor(a/65536),e[t]=a-r*65536;e[0]+=r-1+37*(r-1)}function H0(e,t,a){for(var r,n=~(a-1),s=0;s<16;++s)r=n&(e[s]^t[s]),e[s]^=r,t[s]^=r}function Q(e){var t,a=new Float64Array(16);if(e)for(t=0;t<e.length;++t)a[t]=e[t];return a}function Zr(e,t,a){for(var r=0;r<16;++r)e[r]=t[r]+a[r]}function ea(e,t,a){for(var r=0;r<16;++r)e[r]=t[r]-a[r]}function kr(e,t){Te(e,t,t)}function Te(e,t,a){var r,n,s=0,i=0,o=0,c=0,l=0,u=0,p=0,f=0,x=0,m=0,y=0,b=0,S=0,B=0,_=0,D=0,k=0,P=0,z=0,W=0,J=0,te=0,ve=0,pe=0,ke=0,oe=0,ce=0,le=0,U=0,H=0,Se=0,be=a[0],X=a[1],ue=a[2],_e=a[3],ge=a[4],xe=a[5],Fe=a[6],De=a[7],ye=a[8],Qe=a[9],We=a[10],Xe=a[11],Ye=a[12],Je=a[13],Ze=a[14],et=a[15];r=t[0],s+=r*be,i+=r*X,o+=r*ue,c+=r*_e,l+=r*ge,u+=r*xe,p+=r*Fe,f+=r*De,x+=r*ye,m+=r*Qe,y+=r*We,b+=r*Xe,S+=r*Ye,B+=r*Je,_+=r*Ze,D+=r*et,r=t[1],i+=r*be,o+=r*X,c+=r*ue,l+=r*_e,u+=r*ge,p+=r*xe,f+=r*Fe,x+=r*De,m+=r*ye,y+=r*Qe,b+=r*We,S+=r*Xe,B+=r*Ye,_+=r*Je,D+=r*Ze,k+=r*et,r=t[2],o+=r*be,c+=r*X,l+=r*ue,u+=r*_e,p+=r*ge,f+=r*xe,x+=r*Fe,m+=r*De,y+=r*ye,b+=r*Qe,S+=r*We,B+=r*Xe,_+=r*Ye,D+=r*Je,k+=r*Ze,P+=r*et,r=t[3],c+=r*be,l+=r*X,u+=r*ue,p+=r*_e,f+=r*ge,x+=r*xe,m+=r*Fe,y+=r*De,b+=r*ye,S+=r*Qe,B+=r*We,_+=r*Xe,D+=r*Ye,k+=r*Je,P+=r*Ze,z+=r*et,r=t[4],l+=r*be,u+=r*X,p+=r*ue,f+=r*_e,x+=r*ge,m+=r*xe,y+=r*Fe,b+=r*De,S+=r*ye,B+=r*Qe,_+=r*We,D+=r*Xe,k+=r*Ye,P+=r*Je,z+=r*Ze,W+=r*et,r=t[5],u+=r*be,p+=r*X,f+=r*ue,x+=r*_e,m+=r*ge,y+=r*xe,b+=r*Fe,S+=r*De,B+=r*ye,_+=r*Qe,D+=r*We,k+=r*Xe,P+=r*Ye,z+=r*Je,W+=r*Ze,J+=r*et,r=t[6],p+=r*be,f+=r*X,x+=r*ue,m+=r*_e,y+=r*ge,b+=r*xe,S+=r*Fe,B+=r*De,_+=r*ye,D+=r*Qe,k+=r*We,P+=r*Xe,z+=r*Ye,W+=r*Je,J+=r*Ze,te+=r*et,r=t[7],f+=r*be,x+=r*X,m+=r*ue,y+=r*_e,b+=r*ge,S+=r*xe,B+=r*Fe,_+=r*De,D+=r*ye,k+=r*Qe,P+=r*We,z+=r*Xe,W+=r*Ye,J+=r*Je,te+=r*Ze,ve+=r*et,r=t[8],x+=r*be,m+=r*X,y+=r*ue,b+=r*_e,S+=r*ge,B+=r*xe,_+=r*Fe,D+=r*De,k+=r*ye,P+=r*Qe,z+=r*We,W+=r*Xe,J+=r*Ye,te+=r*Je,ve+=r*Ze,pe+=r*et,r=t[9],m+=r*be,y+=r*X,b+=r*ue,S+=r*_e,B+=r*ge,_+=r*xe,D+=r*Fe,k+=r*De,P+=r*ye,z+=r*Qe,W+=r*We,J+=r*Xe,te+=r*Ye,ve+=r*Je,pe+=r*Ze,ke+=r*et,r=t[10],y+=r*be,b+=r*X,S+=r*ue,B+=r*_e,_+=r*ge,D+=r*xe,k+=r*Fe,P+=r*De,z+=r*ye,W+=r*Qe,J+=r*We,te+=r*Xe,ve+=r*Ye,pe+=r*Je,ke+=r*Ze,oe+=r*et,r=t[11],b+=r*be,S+=r*X,B+=r*ue,_+=r*_e,D+=r*ge,k+=r*xe,P+=r*Fe,z+=r*De,W+=r*ye,J+=r*Qe,te+=r*We,ve+=r*Xe,pe+=r*Ye,ke+=r*Je,oe+=r*Ze,ce+=r*et,r=t[12],S+=r*be,B+=r*X,_+=r*ue,D+=r*_e,k+=r*ge,P+=r*xe,z+=r*Fe,W+=r*De,J+=r*ye,te+=r*Qe,ve+=r*We,pe+=r*Xe,ke+=r*Ye,oe+=r*Je,ce+=r*Ze,le+=r*et,r=t[13],B+=r*be,_+=r*X,D+=r*ue,k+=r*_e,P+=r*ge,z+=r*xe,W+=r*Fe,J+=r*De,te+=r*ye,ve+=r*Qe,pe+=r*We,ke+=r*Xe,oe+=r*Ye,ce+=r*Je,le+=r*Ze,U+=r*et,r=t[14],_+=r*be,D+=r*X,k+=r*ue,P+=r*_e,z+=r*ge,W+=r*xe,J+=r*Fe,te+=r*De,ve+=r*ye,pe+=r*Qe,ke+=r*We,oe+=r*Xe,ce+=r*Ye,le+=r*Je,U+=r*Ze,H+=r*et,r=t[15],D+=r*be,k+=r*X,P+=r*ue,z+=r*_e,W+=r*ge,J+=r*xe,te+=r*Fe,ve+=r*De,pe+=r*ye,ke+=r*Qe,oe+=r*We,ce+=r*Xe,le+=r*Ye,U+=r*Je,H+=r*Ze,Se+=r*et,s+=38*k,i+=38*P,o+=38*z,c+=38*W,l+=38*J,u+=38*te,p+=38*ve,f+=38*pe,x+=38*ke,m+=38*oe,y+=38*ce,b+=38*le,S+=38*U,B+=38*H,_+=38*Se,n=1,r=s+n+65535,n=Math.floor(r/65536),s=r-n*65536,r=i+n+65535,n=Math.floor(r/65536),i=r-n*65536,r=o+n+65535,n=Math.floor(r/65536),o=r-n*65536,r=c+n+65535,n=Math.floor(r/65536),c=r-n*65536,r=l+n+65535,n=Math.floor(r/65536),l=r-n*65536,r=u+n+65535,n=Math.floor(r/65536),u=r-n*65536,r=p+n+65535,n=Math.floor(r/65536),p=r-n*65536,r=f+n+65535,n=Math.floor(r/65536),f=r-n*65536,r=x+n+65535,n=Math.floor(r/65536),x=r-n*65536,r=m+n+65535,n=Math.floor(r/65536),m=r-n*65536,r=y+n+65535,n=Math.floor(r/65536),y=r-n*65536,r=b+n+65535,n=Math.floor(r/65536),b=r-n*65536,r=S+n+65535,n=Math.floor(r/65536),S=r-n*65536,r=B+n+65535,n=Math.floor(r/65536),B=r-n*65536,r=_+n+65535,n=Math.floor(r/65536),_=r-n*65536,r=D+n+65535,n=Math.floor(r/65536),D=r-n*65536,s+=n-1+37*(n-1),n=1,r=s+n+65535,n=Math.floor(r/65536),s=r-n*65536,r=i+n+65535,n=Math.floor(r/65536),i=r-n*65536,r=o+n+65535,n=Math.floor(r/65536),o=r-n*65536,r=c+n+65535,n=Math.floor(r/65536),c=r-n*65536,r=l+n+65535,n=Math.floor(r/65536),l=r-n*65536,r=u+n+65535,n=Math.floor(r/65536),u=r-n*65536,r=p+n+65535,n=Math.floor(r/65536),p=r-n*65536,r=f+n+65535,n=Math.floor(r/65536),f=r-n*65536,r=x+n+65535,n=Math.floor(r/65536),x=r-n*65536,r=m+n+65535,n=Math.floor(r/65536),m=r-n*65536,r=y+n+65535,n=Math.floor(r/65536),y=r-n*65536,r=b+n+65535,n=Math.floor(r/65536),b=r-n*65536,r=S+n+65535,n=Math.floor(r/65536),S=r-n*65536,r=B+n+65535,n=Math.floor(r/65536),B=r-n*65536,r=_+n+65535,n=Math.floor(r/65536),_=r-n*65536,r=D+n+65535,n=Math.floor(r/65536),D=r-n*65536,s+=n-1+37*(n-1),e[0]=s,e[1]=i,e[2]=o,e[3]=c,e[4]=l,e[5]=u,e[6]=p,e[7]=f,e[8]=x,e[9]=m,e[10]=y,e[11]=b,e[12]=S,e[13]=B,e[14]=_,e[15]=D}var _t=ee;_t.kem=_t.kem||{};var $0=_t.jsbn.BigInteger;_t.kem.rsa={},_t.kem.rsa.create=function(e,t){t=t||{};var a=t.prng||_t.random,r={};return r.encrypt=function(n,s){var i=Math.ceil(n.n.bitLength()/8),o;do o=new $0(_t.util.bytesToHex(a.getBytesSync(i)),16).mod(n.n);while(o.compareTo($0.ONE)<=0);o=_t.util.hexToBytes(o.toString(16));var c=i-o.length;c>0&&(o=_t.util.fillString("\0",c)+o);var l=n.encrypt(o,"NONE"),u=e.generate(o,s);return{encapsulation:l,key:u}},r.decrypt=function(n,s,i){var o=n.decrypt(s,"NONE");return e.generate(o,i)},r},_t.kem.kdf1=function(e,t){G0(this,e,0,t||e.digestLength)},_t.kem.kdf2=function(e,t){G0(this,e,1,t||e.digestLength)};function G0(e,t,a,r){e.generate=function(n,s){for(var i=new _t.util.ByteBuffer,o=Math.ceil(s/r)+a,c=new _t.util.ByteBuffer,l=a;l<o;++l){c.putInt32(l),t.start(),t.update(n+c.getBytes());var u=t.digest();i.putBytes(u.getBytes(r))}return i.truncate(i.length()-s),i.getBytes()}}var se=ee;se.log=se.log||{},se.log.levels=["none","error","warning","info","debug","verbose","max"];var hl={},dp=[],yc=null;se.log.LEVEL_LOCKED=2,se.log.NO_LEVEL_CHECK=4,se.log.INTERPOLATE=8;for(var hr=0;hr<se.log.levels.length;++hr){var Q0=se.log.levels[hr];hl[Q0]={index:hr,name:Q0.toUpperCase()}}se.log.logMessage=function(e){for(var t=hl[e.level].index,a=0;a<dp.length;++a){var r=dp[a];if(r.flags&se.log.NO_LEVEL_CHECK)r.f(e);else{var n=hl[r.level].index;t<=n&&r.f(r,e)}}},se.log.prepareStandard=function(e){"standard"in e||(e.standard=hl[e.level].name+" ["+e.category+"] "+e.message)},se.log.prepareFull=function(e){if(!("full"in e)){var t=[e.message];t=t.concat([]),e.full=se.util.format.apply(this,t)}},se.log.prepareStandardFull=function(e){"standardFull"in e||(se.log.prepareStandard(e),e.standardFull=e.standard)};for(var W0=["error","warning","info","debug","verbose"],hr=0;hr<W0.length;++hr)(function(t){se.log[t]=function(a,r){var n=Array.prototype.slice.call(arguments).slice(2),s={timestamp:new Date,level:t,category:a,message:r,arguments:n};se.log.logMessage(s)}})(W0[hr]);if(se.log.makeLogger=function(e){var t={flags:0,f:e};return se.log.setLevel(t,"none"),t},se.log.setLevel=function(e,t){var a=!1;if(e&&!(e.flags&se.log.LEVEL_LOCKED))for(var r=0;r<se.log.levels.length;++r){var n=se.log.levels[r];if(t==n){e.level=t,a=!0;break}}return a},se.log.lock=function(e,t){typeof t>"u"||t?e.flags|=se.log.LEVEL_LOCKED:e.flags&=~se.log.LEVEL_LOCKED},se.log.addLogger=function(e){dp.push(e)},typeof console<"u"&&"log"in console){var bc;if(console.error&&console.warn&&console.info&&console.debug){var WC={error:console.error,warning:console.warn,info:console.info,debug:console.debug,verbose:console.debug},vp=function(e,t){se.log.prepareStandard(t);var a=WC[t.level],r=[t.standard];r=r.concat(t.arguments.slice()),a.apply(console,r)};bc=se.log.makeLogger(vp)}else{var vp=function(t,a){se.log.prepareStandardFull(a),console.log(a.standardFull)};bc=se.log.makeLogger(vp)}se.log.setLevel(bc,"debug"),se.log.addLogger(bc),yc=bc}else console={log:function(){}};if(yc!==null&&typeof window<"u"&&window.location){var vl=new URL(window.location.href).searchParams;if(vl.has("console.level")&&se.log.setLevel(yc,vl.get("console.level").slice(-1)[0]),vl.has("console.lock")){var XC=vl.get("console.lock").slice(-1)[0];XC=="true"&&se.log.lock(yc)}}se.log.consoleLogger=yc;var M=ee,T=M.asn1,dt=M.pkcs7=M.pkcs7||{};dt.messageFromPem=function(e){var t=M.pem.decode(e)[0];if(t.type!=="PKCS7"){var a=new Error('Could not convert PKCS#7 message from PEM; PEM header type is not "PKCS#7".');throw a.headerType=t.type,a}if(t.procType&&t.procType.type==="ENCRYPTED")throw new Error("Could not convert PKCS#7 message from PEM; PEM is encrypted.");var r=T.fromDer(t.body);return dt.messageFromAsn1(r)},dt.messageToPem=function(e,t){var a={type:"PKCS7",body:T.toDer(e.toAsn1()).getBytes()};return M.pem.encode(a,{maxline:t})},dt.messageFromAsn1=function(e){var t={},a=[];if(!T.validate(e,dt.asn1.contentInfoValidator,t,a)){var r=new Error("Cannot read PKCS#7 message. ASN.1 object is not an PKCS#7 ContentInfo.");throw r.errors=a,r}var n=T.derToOid(t.contentType),s;switch(n){case M.pki.oids.envelopedData:s=dt.createEnvelopedData();break;case M.pki.oids.encryptedData:s=dt.createEncryptedData();break;case M.pki.oids.signedData:s=dt.createSignedData();break;default:throw new Error("Cannot read PKCS#7 message. ContentType with OID "+n+" is not (yet) supported.")}return s.fromAsn1(t.content.value[0]),s},dt.createSignedData=function(){var e=null;return e={type:M.pki.oids.signedData,version:1,certificates:[],crls:[],signers:[],digestAlgorithmIdentifiers:[],contentInfo:null,signerInfos:[],fromAsn1:function(r){if(mp(e,r,dt.asn1.signedDataValidator),e.certificates=[],e.crls=[],e.digestAlgorithmIdentifiers=[],e.contentInfo=null,e.signerInfos=[],e.rawCapture.certificates)for(var n=e.rawCapture.certificates.value,s=0;s<n.length;++s)e.certificates.push(M.pki.certificateFromAsn1(n[s]))},toAsn1:function(){e.contentInfo||e.sign();for(var r=[],n=0;n<e.certificates.length;++n)r.push(M.pki.certificateToAsn1(e.certificates[n]));var s=[],i=T.create(T.Class.CONTEXT_SPECIFIC,0,!0,[T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[T.create(T.Class.UNIVERSAL,T.Type.INTEGER,!1,T.integerToDer(e.version).getBytes()),T.create(T.Class.UNIVERSAL,T.Type.SET,!0,e.digestAlgorithmIdentifiers),e.contentInfo])]);return r.length>0&&i.value[0].value.push(T.create(T.Class.CONTEXT_SPECIFIC,0,!0,r)),s.length>0&&i.value[0].value.push(T.create(T.Class.CONTEXT_SPECIFIC,1,!0,s)),i.value[0].value.push(T.create(T.Class.UNIVERSAL,T.Type.SET,!0,e.signerInfos)),T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[T.create(T.Class.UNIVERSAL,T.Type.OID,!1,T.oidToDer(e.type).getBytes()),i])},addSigner:function(r){var n=r.issuer,s=r.serialNumber;if(r.certificate){var i=r.certificate;typeof i=="string"&&(i=M.pki.certificateFromPem(i)),n=i.issuer.attributes,s=i.serialNumber}var o=r.key;if(!o)throw new Error("Could not add PKCS#7 signer; no private key specified.");typeof o=="string"&&(o=M.pki.privateKeyFromPem(o));var c=r.digestAlgorithm||M.pki.oids.sha1;switch(c){case M.pki.oids.sha1:case M.pki.oids.sha256:case M.pki.oids.sha384:case M.pki.oids.sha512:case M.pki.oids.md5:break;default:throw new Error("Could not add PKCS#7 signer; unknown message digest algorithm: "+c)}var l=r.authenticatedAttributes||[];if(l.length>0){for(var u=!1,p=!1,f=0;f<l.length;++f){var x=l[f];if(!u&&x.type===M.pki.oids.contentType){if(u=!0,p)break;continue}if(!p&&x.type===M.pki.oids.messageDigest){if(p=!0,u)break;continue}}if(!u||!p)throw new Error("Invalid signer.authenticatedAttributes. If signer.authenticatedAttributes is specified, then it must contain at least two attributes, PKCS #9 content-type and PKCS #9 message-digest.")}e.signers.push({key:o,version:1,issuer:n,serialNumber:s,digestAlgorithm:c,signatureAlgorithm:M.pki.oids.rsaEncryption,signature:null,authenticatedAttributes:l,unauthenticatedAttributes:[]})},sign:function(r){if(r=r||{},(typeof e.content!="object"||e.contentInfo===null)&&(e.contentInfo=T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[T.create(T.Class.UNIVERSAL,T.Type.OID,!1,T.oidToDer(M.pki.oids.data).getBytes())]),"content"in e)){var n;e.content instanceof M.util.ByteBuffer?n=e.content.bytes():typeof e.content=="string"&&(n=M.util.encodeUtf8(e.content)),r.detached?e.detachedContent=T.create(T.Class.UNIVERSAL,T.Type.OCTETSTRING,!1,n):e.contentInfo.value.push(T.create(T.Class.CONTEXT_SPECIFIC,0,!0,[T.create(T.Class.UNIVERSAL,T.Type.OCTETSTRING,!1,n)]))}if(e.signers.length!==0){var s=t();a(s)}},verify:function(){throw new Error("PKCS#7 signature verification not yet implemented.")},addCertificate:function(r){typeof r=="string"&&(r=M.pki.certificateFromPem(r)),e.certificates.push(r)},addCertificateRevokationList:function(r){throw new Error("PKCS#7 CRL support not yet implemented.")}},e;function t(){for(var r={},n=0;n<e.signers.length;++n){var s=e.signers[n],i=s.digestAlgorithm;i in r||(r[i]=M.md[M.pki.oids[i]].create()),s.authenticatedAttributes.length===0?s.md=r[i]:s.md=M.md[M.pki.oids[i]].create()}e.digestAlgorithmIdentifiers=[];for(var i in r)e.digestAlgorithmIdentifiers.push(T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[T.create(T.Class.UNIVERSAL,T.Type.OID,!1,T.oidToDer(i).getBytes()),T.create(T.Class.UNIVERSAL,T.Type.NULL,!1,"")]));return r}function a(r){var n;if(e.detachedContent?n=e.detachedContent:(n=e.contentInfo.value[1],n=n.value[0]),!n)throw new Error("Could not sign PKCS#7 message; there is no content to sign.");var s=T.derToOid(e.contentInfo.value[0].value),i=T.toDer(n);i.getByte(),T.getBerValueLength(i),i=i.getBytes();for(var o in r)r[o].start().update(i);for(var c=new Date,l=0;l<e.signers.length;++l){var u=e.signers[l];if(u.authenticatedAttributes.length===0){if(s!==M.pki.oids.data)throw new Error("Invalid signer; authenticatedAttributes must be present when the ContentInfo content type is not PKCS#7 Data.")}else{u.authenticatedAttributesAsn1=T.create(T.Class.CONTEXT_SPECIFIC,0,!0,[]);for(var p=T.create(T.Class.UNIVERSAL,T.Type.SET,!0,[]),f=0;f<u.authenticatedAttributes.length;++f){var x=u.authenticatedAttributes[f];x.type===M.pki.oids.messageDigest?x.value=r[u.digestAlgorithm].digest():x.type===M.pki.oids.signingTime&&(x.value||(x.value=c)),p.value.push(fp(x)),u.authenticatedAttributesAsn1.value.push(fp(x))}i=T.toDer(p).getBytes(),u.md.start().update(i)}u.signature=u.key.sign(u.md,"RSASSA-PKCS1-V1_5")}e.signerInfos=r2(e.signers)}},dt.createEncryptedData=function(){var e=null;return e={type:M.pki.oids.encryptedData,version:0,encryptedContent:{algorithm:M.pki.oids["aes256-CBC"]},fromAsn1:function(t){mp(e,t,dt.asn1.encryptedDataValidator)},decrypt:function(t){t!==void 0&&(e.encryptedContent.key=t),X0(e)}},e},dt.createEnvelopedData=function(){var e=null;return e={type:M.pki.oids.envelopedData,version:0,recipients:[],encryptedContent:{algorithm:M.pki.oids["aes256-CBC"]},fromAsn1:function(t){var a=mp(e,t,dt.asn1.envelopedDataValidator);e.recipients=ZC(a.recipientInfos.value)},toAsn1:function(){return T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[T.create(T.Class.UNIVERSAL,T.Type.OID,!1,T.oidToDer(e.type).getBytes()),T.create(T.Class.CONTEXT_SPECIFIC,0,!0,[T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[T.create(T.Class.UNIVERSAL,T.Type.INTEGER,!1,T.integerToDer(e.version).getBytes()),T.create(T.Class.UNIVERSAL,T.Type.SET,!0,e2(e.recipients)),T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,a2(e.encryptedContent))])])])},findRecipient:function(t){for(var a=t.issuer.attributes,r=0;r<e.recipients.length;++r){var n=e.recipients[r],s=n.issuer;if(n.serialNumber===t.serialNumber&&s.length===a.length){for(var i=!0,o=0;o<a.length;++o)if(s[o].type!==a[o].type||s[o].value!==a[o].value){i=!1;break}if(i)return n}}return null},decrypt:function(t,a){if(e.encryptedContent.key===void 0&&t!==void 0&&a!==void 0)switch(t.encryptedContent.algorithm){case M.pki.oids.rsaEncryption:case M.pki.oids.desCBC:var r=a.decrypt(t.encryptedContent.content);e.encryptedContent.key=M.util.createBuffer(r);break;default:throw new Error("Unsupported asymmetric cipher, OID "+t.encryptedContent.algorithm)}X0(e)},addRecipient:function(t){e.recipients.push({version:0,issuer:t.issuer.attributes,serialNumber:t.serialNumber,encryptedContent:{algorithm:M.pki.oids.rsaEncryption,key:t.publicKey}})},encrypt:function(t,a){if(e.encryptedContent.content===void 0){a=a||e.encryptedContent.algorithm,t=t||e.encryptedContent.key;var r,n,s;switch(a){case M.pki.oids["aes128-CBC"]:r=16,n=16,s=M.aes.createEncryptionCipher;break;case M.pki.oids["aes192-CBC"]:r=24,n=16,s=M.aes.createEncryptionCipher;break;case M.pki.oids["aes256-CBC"]:r=32,n=16,s=M.aes.createEncryptionCipher;break;case M.pki.oids["des-EDE3-CBC"]:r=24,n=8,s=M.des.createEncryptionCipher;break;default:throw new Error("Unsupported symmetric cipher, OID "+a)}if(t===void 0)t=M.util.createBuffer(M.random.getBytes(r));else if(t.length()!=r)throw new Error("Symmetric key has wrong length; got "+t.length()+" bytes, expected "+r+".");e.encryptedContent.algorithm=a,e.encryptedContent.key=t,e.encryptedContent.parameter=M.util.createBuffer(M.random.getBytes(n));var i=s(t);if(i.start(e.encryptedContent.parameter.copy()),i.update(e.content),!i.finish())throw new Error("Symmetric encryption failed.");e.encryptedContent.content=i.output}for(var o=0;o<e.recipients.length;++o){var c=e.recipients[o];if(c.encryptedContent.content===void 0)switch(c.encryptedContent.algorithm){case M.pki.oids.rsaEncryption:c.encryptedContent.content=c.encryptedContent.key.encrypt(e.encryptedContent.key.data);break;default:throw new Error("Unsupported asymmetric cipher, OID "+c.encryptedContent.algorithm)}}}},e};function YC(e){var t={},a=[];if(!T.validate(e,dt.asn1.recipientInfoValidator,t,a)){var r=new Error("Cannot read PKCS#7 RecipientInfo. ASN.1 object is not an PKCS#7 RecipientInfo.");throw r.errors=a,r}return{version:t.version.charCodeAt(0),issuer:M.pki.RDNAttributesAsArray(t.issuer),serialNumber:M.util.createBuffer(t.serial).toHex(),encryptedContent:{algorithm:T.derToOid(t.encAlgorithm),parameter:t.encParameter?t.encParameter.value:void 0,content:t.encKey}}}function JC(e){return T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[T.create(T.Class.UNIVERSAL,T.Type.INTEGER,!1,T.integerToDer(e.version).getBytes()),T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[M.pki.distinguishedNameToAsn1({attributes:e.issuer}),T.create(T.Class.UNIVERSAL,T.Type.INTEGER,!1,M.util.hexToBytes(e.serialNumber))]),T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[T.create(T.Class.UNIVERSAL,T.Type.OID,!1,T.oidToDer(e.encryptedContent.algorithm).getBytes()),T.create(T.Class.UNIVERSAL,T.Type.NULL,!1,"")]),T.create(T.Class.UNIVERSAL,T.Type.OCTETSTRING,!1,e.encryptedContent.content)])}function ZC(e){for(var t=[],a=0;a<e.length;++a)t.push(YC(e[a]));return t}function e2(e){for(var t=[],a=0;a<e.length;++a)t.push(JC(e[a]));return t}function t2(e){var t=T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[T.create(T.Class.UNIVERSAL,T.Type.INTEGER,!1,T.integerToDer(e.version).getBytes()),T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[M.pki.distinguishedNameToAsn1({attributes:e.issuer}),T.create(T.Class.UNIVERSAL,T.Type.INTEGER,!1,M.util.hexToBytes(e.serialNumber))]),T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[T.create(T.Class.UNIVERSAL,T.Type.OID,!1,T.oidToDer(e.digestAlgorithm).getBytes()),T.create(T.Class.UNIVERSAL,T.Type.NULL,!1,"")])]);if(e.authenticatedAttributesAsn1&&t.value.push(e.authenticatedAttributesAsn1),t.value.push(T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[T.create(T.Class.UNIVERSAL,T.Type.OID,!1,T.oidToDer(e.signatureAlgorithm).getBytes()),T.create(T.Class.UNIVERSAL,T.Type.NULL,!1,"")])),t.value.push(T.create(T.Class.UNIVERSAL,T.Type.OCTETSTRING,!1,e.signature)),e.unauthenticatedAttributes.length>0){for(var a=T.create(T.Class.CONTEXT_SPECIFIC,1,!0,[]),r=0;r<e.unauthenticatedAttributes.length;++r){var n=e.unauthenticatedAttributes[r];a.values.push(fp(n))}t.value.push(a)}return t}function r2(e){for(var t=[],a=0;a<e.length;++a)t.push(t2(e[a]));return t}function fp(e){var t;if(e.type===M.pki.oids.contentType)t=T.create(T.Class.UNIVERSAL,T.Type.OID,!1,T.oidToDer(e.value).getBytes());else if(e.type===M.pki.oids.messageDigest)t=T.create(T.Class.UNIVERSAL,T.Type.OCTETSTRING,!1,e.value.bytes());else if(e.type===M.pki.oids.signingTime){var a=new Date("1950-01-01T00:00:00Z"),r=new Date("2050-01-01T00:00:00Z"),n=e.value;if(typeof n=="string"){var s=Date.parse(n);isNaN(s)?n.length===13?n=T.utcTimeToDate(n):n=T.generalizedTimeToDate(n):n=new Date(s)}n>=a&&n<r?t=T.create(T.Class.UNIVERSAL,T.Type.UTCTIME,!1,T.dateToUtcTime(n)):t=T.create(T.Class.UNIVERSAL,T.Type.GENERALIZEDTIME,!1,T.dateToGeneralizedTime(n))}return T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[T.create(T.Class.UNIVERSAL,T.Type.OID,!1,T.oidToDer(e.type).getBytes()),T.create(T.Class.UNIVERSAL,T.Type.SET,!0,[t])])}function a2(e){return[T.create(T.Class.UNIVERSAL,T.Type.OID,!1,T.oidToDer(M.pki.oids.data).getBytes()),T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[T.create(T.Class.UNIVERSAL,T.Type.OID,!1,T.oidToDer(e.algorithm).getBytes()),e.parameter?T.create(T.Class.UNIVERSAL,T.Type.OCTETSTRING,!1,e.parameter.getBytes()):void 0]),T.create(T.Class.CONTEXT_SPECIFIC,0,!0,[T.create(T.Class.UNIVERSAL,T.Type.OCTETSTRING,!1,e.content.getBytes())])]}function mp(e,t,a){var r={},n=[];if(!T.validate(t,a,r,n)){var s=new Error("Cannot read PKCS#7 message. ASN.1 object is not a supported PKCS#7 message.");throw s.errors=s,s}var i=T.derToOid(r.contentType);if(i!==M.pki.oids.data)throw new Error("Unsupported PKCS#7 message. Only wrapped ContentType Data supported.");if(r.encryptedContent){var o="";if(M.util.isArray(r.encryptedContent))for(var c=0;c<r.encryptedContent.length;++c){if(r.encryptedContent[c].type!==T.Type.OCTETSTRING)throw new Error("Malformed PKCS#7 message, expecting encrypted content constructed of only OCTET STRING objects.");o+=r.encryptedContent[c].value}else o=r.encryptedContent;e.encryptedContent={algorithm:T.derToOid(r.encAlgorithm),parameter:M.util.createBuffer(r.encParameter.value),content:M.util.createBuffer(o)}}if(r.content){var o="";if(M.util.isArray(r.content))for(var c=0;c<r.content.length;++c){if(r.content[c].type!==T.Type.OCTETSTRING)throw new Error("Malformed PKCS#7 message, expecting content constructed of only OCTET STRING objects.");o+=r.content[c].value}else o=r.content;e.content=M.util.createBuffer(o)}return e.version=r.version.charCodeAt(0),e.rawCapture=r,r}function X0(e){if(e.encryptedContent.key===void 0)throw new Error("Symmetric key not available.");if(e.content===void 0){var t;switch(e.encryptedContent.algorithm){case M.pki.oids["aes128-CBC"]:case M.pki.oids["aes192-CBC"]:case M.pki.oids["aes256-CBC"]:t=M.aes.createDecryptionCipher(e.encryptedContent.key);break;case M.pki.oids.desCBC:case M.pki.oids["des-EDE3-CBC"]:t=M.des.createDecryptionCipher(e.encryptedContent.key);break;default:throw new Error("Unsupported symmetric cipher, OID "+e.encryptedContent.algorithm)}if(t.start(e.encryptedContent.parameter),t.update(e.encryptedContent.content),!t.finish())throw new Error("Symmetric decryption failed.");e.content=t.output}}var Oe=ee,gl=Oe.ssh=Oe.ssh||{};gl.privateKeyToPutty=function(e,t,a){a=a||"",t=t||"";var r="ssh-rsa",n=t===""?"none":"aes256-cbc",s="PuTTY-User-Key-File-2: "+r+`\r
38
+ `+o+t.substr(i+1),s=n-i-1,i=-1,++n}else(t[n]===" "||t[n]===" "||t[n]===",")&&(i=n);return t}function K1(e){return e.replace(/^\s+/,"")}var Re=te;Re.des=Re.des||{},Re.des.startEncrypting=function(e,t,a,r){var n=tl({key:e,output:a,decrypt:!1,mode:r||(t===null?"ECB":"CBC")});return n.start(t),n},Re.des.createEncryptionCipher=function(e,t){return tl({key:e,output:null,decrypt:!1,mode:t})},Re.des.startDecrypting=function(e,t,a,r){var n=tl({key:e,output:a,decrypt:!0,mode:r||(t===null?"ECB":"CBC")});return n.start(t),n},Re.des.createDecryptionCipher=function(e,t){return tl({key:e,output:null,decrypt:!0,mode:t})},Re.des.Algorithm=function(e,t){var a=this;a.name=e,a.mode=new t({blockSize:8,cipher:{encrypt:function(r,n){return Qf(a._keys,r,n,!1)},decrypt:function(r,n){return Qf(a._keys,r,n,!0)}}}),a._init=!1},Re.des.Algorithm.prototype.initialize=function(e){if(!this._init){var t=Re.util.createBuffer(e.key);if(this.name.indexOf("3DES")===0&&t.length()!==24)throw new Error("Invalid Triple-DES key size: "+t.length()*8);this._keys=J1(t),this._init=!0}},Kt("DES-ECB",Re.cipher.modes.ecb),Kt("DES-CBC",Re.cipher.modes.cbc),Kt("DES-CFB",Re.cipher.modes.cfb),Kt("DES-OFB",Re.cipher.modes.ofb),Kt("DES-CTR",Re.cipher.modes.ctr),Kt("3DES-ECB",Re.cipher.modes.ecb),Kt("3DES-CBC",Re.cipher.modes.cbc),Kt("3DES-CFB",Re.cipher.modes.cfb),Kt("3DES-OFB",Re.cipher.modes.ofb),Kt("3DES-CTR",Re.cipher.modes.ctr);function Kt(e,t){var a=function(){return new Re.des.Algorithm(e,t)};Re.cipher.registerAlgorithm(e,a)}var z1=[16843776,0,65536,16843780,16842756,66564,4,65536,1024,16843776,16843780,1024,16778244,16842756,16777216,4,1028,16778240,16778240,66560,66560,16842752,16842752,16778244,65540,16777220,16777220,65540,0,1028,66564,16777216,65536,16843780,4,16842752,16843776,16777216,16777216,1024,16842756,65536,66560,16777220,1024,4,16778244,66564,16843780,65540,16842752,16778244,16777220,1028,66564,16843776,1028,16778240,16778240,0,65540,66560,0,16842756],H1=[-2146402272,-2147450880,32768,1081376,1048576,32,-2146435040,-2147450848,-2147483616,-2146402272,-2146402304,-2147483648,-2147450880,1048576,32,-2146435040,1081344,1048608,-2147450848,0,-2147483648,32768,1081376,-2146435072,1048608,-2147483616,0,1081344,32800,-2146402304,-2146435072,32800,0,1081376,-2146435040,1048576,-2147450848,-2146435072,-2146402304,32768,-2146435072,-2147450880,32,-2146402272,1081376,32,32768,-2147483648,32800,-2146402304,1048576,-2147483616,1048608,-2147450848,-2147483616,1048608,1081344,0,-2147450880,32800,-2147483648,-2146435040,-2146402272,1081344],$1=[520,134349312,0,134348808,134218240,0,131592,134218240,131080,134217736,134217736,131072,134349320,131080,134348800,520,134217728,8,134349312,512,131584,134348800,134348808,131592,134218248,131584,131072,134218248,8,134349320,512,134217728,134349312,134217728,131080,520,131072,134349312,134218240,0,512,131080,134349320,134218240,134217736,512,0,134348808,134218248,131072,134217728,134349320,8,131592,131584,134217736,134348800,134218248,520,134348800,131592,8,134348808,131584],G1=[8396801,8321,8321,128,8396928,8388737,8388609,8193,0,8396800,8396800,8396929,129,0,8388736,8388609,1,8192,8388608,8396801,128,8388608,8193,8320,8388737,1,8320,8388736,8192,8396928,8396929,129,8388736,8388609,8396800,8396929,129,0,0,8396800,8320,8388736,8388737,1,8396801,8321,8321,128,8396929,129,1,8192,8388609,8193,8396928,8388737,8193,8320,8388608,8396801,128,8388608,8192,8396928],Q1=[256,34078976,34078720,1107296512,524288,256,1073741824,34078720,1074266368,524288,33554688,1074266368,1107296512,1107820544,524544,1073741824,33554432,1074266112,1074266112,0,1073742080,1107820800,1107820800,33554688,1107820544,1073742080,0,1107296256,34078976,33554432,1107296256,524544,524288,1107296512,256,33554432,1073741824,34078720,1107296512,1074266368,33554688,1073741824,1107820544,34078976,1074266368,256,33554432,1107820544,1107820800,524544,1107296256,1107820800,34078720,0,1074266112,1107296256,524544,33554688,1073742080,524288,0,1074266112,34078976,1073742080],W1=[536870928,541065216,16384,541081616,541065216,16,541081616,4194304,536887296,4210704,4194304,536870928,4194320,536887296,536870912,16400,0,4194320,536887312,16384,4210688,536887312,16,541065232,541065232,0,4210704,541081600,16400,4210688,541081600,536870912,536887296,16,541065232,4210688,541081616,4194304,16400,536870928,4194304,536887296,536870912,16400,536870928,541081616,4210688,541065216,4210704,541081600,0,541065232,16,16384,541065216,4210704,16384,4194320,536887312,0,541081600,536870912,4194320,536887312],Y1=[2097152,69206018,67110914,0,2048,67110914,2099202,69208064,69208066,2097152,0,67108866,2,67108864,69206018,2050,67110912,2099202,2097154,67110912,67108866,69206016,69208064,2097154,69206016,2048,2050,69208066,2099200,2,67108864,2099200,67108864,2099200,2097152,67110914,67110914,69206018,69206018,2,2097154,67108864,67110912,2097152,69208064,2050,2099202,69208064,2050,67108866,69208066,69206016,2099200,0,2,69208066,0,2099202,69206016,2048,67108866,67110912,2048,2097154],X1=[268439616,4096,262144,268701760,268435456,268439616,64,268435456,262208,268697600,268701760,266240,268701696,266304,4096,64,268697600,268435520,268439552,4160,266240,262208,268697664,268701696,4160,0,0,268697664,268435520,268439552,266304,262144,266304,262144,268701696,4096,64,268697664,4096,266304,268439552,64,268435520,268697600,268697664,268435456,262144,268439616,0,268701760,262208,268435520,268697600,268439552,268439616,0,268701760,266240,266240,4160,4160,262208,268435456,268701696];function J1(e){for(var t=[0,4,536870912,536870916,65536,65540,536936448,536936452,512,516,536871424,536871428,66048,66052,536936960,536936964],a=[0,1,1048576,1048577,67108864,67108865,68157440,68157441,256,257,1048832,1048833,67109120,67109121,68157696,68157697],r=[0,8,2048,2056,16777216,16777224,16779264,16779272,0,8,2048,2056,16777216,16777224,16779264,16779272],n=[0,2097152,134217728,136314880,8192,2105344,134225920,136323072,131072,2228224,134348800,136445952,139264,2236416,134356992,136454144],s=[0,262144,16,262160,0,262144,16,262160,4096,266240,4112,266256,4096,266240,4112,266256],i=[0,1024,32,1056,0,1024,32,1056,33554432,33555456,33554464,33555488,33554432,33555456,33554464,33555488],o=[0,268435456,524288,268959744,2,268435458,524290,268959746,0,268435456,524288,268959744,2,268435458,524290,268959746],c=[0,65536,2048,67584,536870912,536936448,536872960,536938496,131072,196608,133120,198656,537001984,537067520,537004032,537069568],l=[0,262144,0,262144,2,262146,2,262146,33554432,33816576,33554432,33816576,33554434,33816578,33554434,33816578],u=[0,268435456,8,268435464,0,268435456,8,268435464,1024,268436480,1032,268436488,1024,268436480,1032,268436488],p=[0,32,0,32,1048576,1048608,1048576,1048608,8192,8224,8192,8224,1056768,1056800,1056768,1056800],f=[0,16777216,512,16777728,2097152,18874368,2097664,18874880,67108864,83886080,67109376,83886592,69206016,85983232,69206528,85983744],x=[0,4096,134217728,134221824,524288,528384,134742016,134746112,16,4112,134217744,134221840,524304,528400,134742032,134746128],m=[0,4,256,260,0,4,256,260,1,5,257,261,1,5,257,261],y=e.length()>8?3:1,b=[],S=[0,0,1,1,1,1,1,1,0,1,1,1,1,1,1,0],B=0,_,P=0;P<y;P++){var U=e.getInt32(),k=e.getInt32();_=(U>>>4^k)&252645135,k^=_,U^=_<<4,_=(k>>>-16^U)&65535,U^=_,k^=_<<-16,_=(U>>>2^k)&858993459,k^=_,U^=_<<2,_=(k>>>-16^U)&65535,U^=_,k^=_<<-16,_=(U>>>1^k)&1431655765,k^=_,U^=_<<1,_=(k>>>8^U)&16711935,U^=_,k^=_<<8,_=(U>>>1^k)&1431655765,k^=_,U^=_<<1,_=U<<8|k>>>20&240,U=k<<24|k<<8&16711680|k>>>8&65280|k>>>24&240,k=_;for(var H=0;H<S.length;++H){S[H]?(U=U<<2|U>>>26,k=k<<2|k>>>26):(U=U<<1|U>>>27,k=k<<1|k>>>27),U&=-15,k&=-15;var G=t[U>>>28]|a[U>>>24&15]|r[U>>>20&15]|n[U>>>16&15]|s[U>>>12&15]|i[U>>>8&15]|o[U>>>4&15],Z=c[k>>>28]|l[k>>>24&15]|u[k>>>20&15]|p[k>>>16&15]|f[k>>>12&15]|x[k>>>8&15]|m[k>>>4&15];_=(Z>>>16^G)&65535,b[B++]=G^_,b[B++]=Z^_<<16}}return b}function Qf(e,t,a,r){var n=e.length===32?3:9,s;n===3?s=r?[30,-2,-2]:[0,32,2]:s=r?[94,62,-2,32,64,2,30,-2,-2]:[0,32,2,62,30,-2,64,96,2];var i,o=t[0],c=t[1];i=(o>>>4^c)&252645135,c^=i,o^=i<<4,i=(o>>>16^c)&65535,c^=i,o^=i<<16,i=(c>>>2^o)&858993459,o^=i,c^=i<<2,i=(c>>>8^o)&16711935,o^=i,c^=i<<8,i=(o>>>1^c)&1431655765,c^=i,o^=i<<1,o=o<<1|o>>>31,c=c<<1|c>>>31;for(var l=0;l<n;l+=3){for(var u=s[l+1],p=s[l+2],f=s[l];f!=u;f+=p){var x=c^e[f],m=(c>>>4|c<<28)^e[f+1];i=o,o=c,c=i^(H1[x>>>24&63]|G1[x>>>16&63]|W1[x>>>8&63]|X1[x&63]|z1[m>>>24&63]|$1[m>>>16&63]|Q1[m>>>8&63]|Y1[m&63])}i=o,o=c,c=i}o=o>>>1|o<<31,c=c>>>1|c<<31,i=(o>>>1^c)&1431655765,c^=i,o^=i<<1,i=(c>>>8^o)&16711935,o^=i,c^=i<<8,i=(c>>>2^o)&858993459,o^=i,c^=i<<2,i=(o>>>16^c)&65535,c^=i,o^=i<<16,i=(o>>>4^c)&252645135,c^=i,o^=i<<4,a[0]=o,a[1]=c}function tl(e){e=e||{};var t=(e.mode||"CBC").toUpperCase(),a="DES-"+t,r;e.decrypt?r=Re.cipher.createDecipher(a,e.key):r=Re.cipher.createCipher(a,e.key);var n=r.start;return r.start=function(s,i){var o=null;i instanceof Re.util.ByteBuffer&&(o=i,i={}),i=i||{},i.output=o,i.iv=s,n.call(r,i)},r}var ut=te,Z1=ut.pkcs5=ut.pkcs5||{},Jt;ut.util.isNodejs&&!ut.options.usePureJavaScript&&(Jt=Lr),ut.pbkdf2=Z1.pbkdf2=function(e,t,a,r,n,s){if(typeof n=="function"&&(s=n,n=null),ut.util.isNodejs&&!ut.options.usePureJavaScript&&Jt.pbkdf2&&(n===null||typeof n!="object")&&(Jt.pbkdf2Sync.length>4||!n||n==="sha1"))return typeof n!="string"&&(n="sha1"),e=Buffer.from(e,"binary"),t=Buffer.from(t,"binary"),s?Jt.pbkdf2Sync.length===4?Jt.pbkdf2(e,t,a,r,function(_,P){if(_)return s(_);s(null,P.toString("binary"))}):Jt.pbkdf2(e,t,a,r,n,function(_,P){if(_)return s(_);s(null,P.toString("binary"))}):Jt.pbkdf2Sync.length===4?Jt.pbkdf2Sync(e,t,a,r).toString("binary"):Jt.pbkdf2Sync(e,t,a,r,n).toString("binary");if((typeof n>"u"||n===null)&&(n="sha1"),typeof n=="string"){if(!(n in ut.md.algorithms))throw new Error("Unknown hash algorithm: "+n);n=ut.md[n].create()}var i=n.digestLength;if(r>4294967295*i){var o=new Error("Derived key is too long.");if(s)return s(o);throw o}var c=Math.ceil(r/i),l=r-(c-1)*i,u=ut.hmac.create();u.start(n,e);var p="",f,x,m;if(!s){for(var y=1;y<=c;++y){u.start(null,null),u.update(t),u.update(ut.util.int32ToBytes(y)),f=m=u.digest().getBytes();for(var b=2;b<=a;++b)u.start(null,null),u.update(m),x=u.digest().getBytes(),f=ut.util.xorBytes(f,x,i),m=x;p+=y<c?f:f.substr(0,l)}return p}var y=1,b;function S(){if(y>c)return s(null,p);u.start(null,null),u.update(t),u.update(ut.util.int32ToBytes(y)),f=m=u.digest().getBytes(),b=2,B()}function B(){if(b<=a)return u.start(null,null),u.update(m),x=u.digest().getBytes(),f=ut.util.xorBytes(f,x,i),m=x,++b,ut.util.setImmediate(B);p+=y<c?f:f.substr(0,l),++y,S()}S()};var zt=te,Wf=zt.sha256=zt.sha256||{};zt.md.sha256=zt.md.algorithms.sha256=Wf,Wf.create=function(){Yf||eb();var e=null,t=zt.util.createBuffer(),a=new Array(64),r={algorithm:"sha256",blockLength:64,digestLength:32,messageLength:0,fullMessageLength:null,messageLengthSize:8};return r.start=function(){r.messageLength=0,r.fullMessageLength=r.messageLength64=[];for(var n=r.messageLengthSize/4,s=0;s<n;++s)r.fullMessageLength.push(0);return t=zt.util.createBuffer(),e={h0:1779033703,h1:3144134277,h2:1013904242,h3:2773480762,h4:1359893119,h5:2600822924,h6:528734635,h7:1541459225},r},r.start(),r.update=function(n,s){s==="utf8"&&(n=zt.util.encodeUtf8(n));var i=n.length;r.messageLength+=i,i=[i/4294967296>>>0,i>>>0];for(var o=r.fullMessageLength.length-1;o>=0;--o)r.fullMessageLength[o]+=i[1],i[1]=i[0]+(r.fullMessageLength[o]/4294967296>>>0),r.fullMessageLength[o]=r.fullMessageLength[o]>>>0,i[0]=i[1]/4294967296>>>0;return t.putBytes(n),Jf(e,a,t),(t.read>2048||t.length()===0)&&t.compact(),r},r.digest=function(){var n=zt.util.createBuffer();n.putBytes(t.bytes());var s=r.fullMessageLength[r.fullMessageLength.length-1]+r.messageLengthSize,i=s&r.blockLength-1;n.putBytes(qu.substr(0,r.blockLength-i));for(var o,c,l=r.fullMessageLength[0]*8,u=0;u<r.fullMessageLength.length-1;++u)o=r.fullMessageLength[u+1]*8,c=o/4294967296>>>0,l+=c,n.putInt32(l>>>0),l=o>>>0;n.putInt32(l);var p={h0:e.h0,h1:e.h1,h2:e.h2,h3:e.h3,h4:e.h4,h5:e.h5,h6:e.h6,h7:e.h7};Jf(p,a,n);var f=zt.util.createBuffer();return f.putInt32(p.h0),f.putInt32(p.h1),f.putInt32(p.h2),f.putInt32(p.h3),f.putInt32(p.h4),f.putInt32(p.h5),f.putInt32(p.h6),f.putInt32(p.h7),f},r};var qu=null,Yf=!1,Xf=null;function eb(){qu="\x80",qu+=zt.util.fillString("\0",64),Xf=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],Yf=!0}function Jf(e,t,a){for(var r,n,s,i,o,c,l,u,p,f,x,m,y,b,S,B=a.length();B>=64;){for(l=0;l<16;++l)t[l]=a.getInt32();for(;l<64;++l)r=t[l-2],r=(r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10,n=t[l-15],n=(n>>>7|n<<25)^(n>>>18|n<<14)^n>>>3,t[l]=r+t[l-7]+n+t[l-16]|0;for(u=e.h0,p=e.h1,f=e.h2,x=e.h3,m=e.h4,y=e.h5,b=e.h6,S=e.h7,l=0;l<64;++l)i=(m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7),o=b^m&(y^b),s=(u>>>2|u<<30)^(u>>>13|u<<19)^(u>>>22|u<<10),c=u&p|f&(u^p),r=S+i+o+Xf[l]+t[l],n=s+c,S=b,b=y,y=m,m=x+r>>>0,x=f,f=p,p=u,u=r+n>>>0;e.h0=e.h0+u|0,e.h1=e.h1+p|0,e.h2=e.h2+f|0,e.h3=e.h3+x|0,e.h4=e.h4+m|0,e.h5=e.h5+y|0,e.h6=e.h6+b|0,e.h7=e.h7+S|0,B-=64}}var Ht=te,rl=null;Ht.util.isNodejs&&!Ht.options.usePureJavaScript&&!process.versions["node-webkit"]&&(rl=Lr);var tb=Ht.prng=Ht.prng||{};tb.create=function(e){for(var t={plugin:e,key:null,seed:null,time:null,reseeds:0,generated:0,keyBytes:""},a=e.md,r=new Array(32),n=0;n<32;++n)r[n]=a.create();t.pools=r,t.pool=0,t.generate=function(l,u){if(!u)return t.generateSync(l);var p=t.plugin.cipher,f=t.plugin.increment,x=t.plugin.formatKey,m=t.plugin.formatSeed,y=Ht.util.createBuffer();t.key=null,b();function b(S){if(S)return u(S);if(y.length()>=l)return u(null,y.getBytes(l));if(t.generated>1048575&&(t.key=null),t.key===null)return Ht.util.nextTick(function(){s(b)});var B=p(t.key,t.seed);t.generated+=B.length,y.putBytes(B),t.key=x(p(t.key,f(t.seed))),t.seed=m(p(t.key,t.seed)),Ht.util.setImmediate(b)}},t.generateSync=function(l){var u=t.plugin.cipher,p=t.plugin.increment,f=t.plugin.formatKey,x=t.plugin.formatSeed;t.key=null;for(var m=Ht.util.createBuffer();m.length()<l;){t.generated>1048575&&(t.key=null),t.key===null&&i();var y=u(t.key,t.seed);t.generated+=y.length,m.putBytes(y),t.key=f(u(t.key,p(t.seed))),t.seed=x(u(t.key,t.seed))}return m.getBytes(l)};function s(l){if(t.pools[0].messageLength>=32)return o(),l();var u=32-t.pools[0].messageLength<<5;t.seedFile(u,function(p,f){if(p)return l(p);t.collect(f),o(),l()})}function i(){if(t.pools[0].messageLength>=32)return o();var l=32-t.pools[0].messageLength<<5;t.collect(t.seedFileSync(l)),o()}function o(){t.reseeds=t.reseeds===4294967295?0:t.reseeds+1;var l=t.plugin.md.create();l.update(t.keyBytes);for(var u=1,p=0;p<32;++p)t.reseeds%u===0&&(l.update(t.pools[p].digest().getBytes()),t.pools[p].start()),u=u<<1;t.keyBytes=l.digest().getBytes(),l.start(),l.update(t.keyBytes);var f=l.digest().getBytes();t.key=t.plugin.formatKey(t.keyBytes),t.seed=t.plugin.formatSeed(f),t.generated=0}function c(l){var u=null,p=Ht.util.globalScope,f=p.crypto||p.msCrypto;f&&f.getRandomValues&&(u=function(U){return f.getRandomValues(U)});var x=Ht.util.createBuffer();if(u)for(;x.length()<l;){var m=Math.max(1,Math.min(l-x.length(),65536)/4),y=new Uint32Array(Math.floor(m));try{u(y);for(var b=0;b<y.length;++b)x.putInt32(y[b])}catch(U){if(!(typeof QuotaExceededError<"u"&&U instanceof QuotaExceededError))throw U}}if(x.length()<l)for(var S,B,_,P=Math.floor(Math.random()*65536);x.length()<l;){B=16807*(P&65535),S=16807*(P>>16),B+=(S&32767)<<16,B+=S>>15,B=(B&2147483647)+(B>>31),P=B&4294967295;for(var b=0;b<3;++b)_=P>>>(b<<3),_^=Math.floor(Math.random()*256),x.putByte(_&255)}return x.getBytes(l)}return rl?(t.seedFile=function(l,u){rl.randomBytes(l,function(p,f){if(p)return u(p);u(null,f.toString())})},t.seedFileSync=function(l){return rl.randomBytes(l).toString()}):(t.seedFile=function(l,u){try{u(null,c(l))}catch(p){u(p)}},t.seedFileSync=c),t.collect=function(l){for(var u=l.length,p=0;p<u;++p)t.pools[t.pool].update(l.substr(p,1)),t.pool=t.pool===31?0:t.pool+1},t.collectInt=function(l,u){for(var p="",f=0;f<u;f+=8)p+=String.fromCharCode(l>>f&255);t.collect(p)},t.registerWorker=function(l){if(l===self)t.seedFile=function(p,f){function x(m){var y=m.data;y.forge&&y.forge.prng&&(self.removeEventListener("message",x),f(y.forge.prng.err,y.forge.prng.bytes))}self.addEventListener("message",x),self.postMessage({forge:{prng:{needed:p}}})};else{var u=function(p){var f=p.data;f.forge&&f.forge.prng&&t.seedFile(f.forge.prng.needed,function(x,m){l.postMessage({forge:{prng:{err:x,bytes:m}}})})};l.addEventListener("message",u)}},t};var Ke=te;(function(){if(Ke.random&&Ke.random.getBytes){Ke.random;return}(function(e){var t={},a=new Array(4),r=Ke.util.createBuffer();t.formatKey=function(p){var f=Ke.util.createBuffer(p);return p=new Array(4),p[0]=f.getInt32(),p[1]=f.getInt32(),p[2]=f.getInt32(),p[3]=f.getInt32(),Ke.aes._expandKey(p,!1)},t.formatSeed=function(p){var f=Ke.util.createBuffer(p);return p=new Array(4),p[0]=f.getInt32(),p[1]=f.getInt32(),p[2]=f.getInt32(),p[3]=f.getInt32(),p},t.cipher=function(p,f){return Ke.aes._updateBlock(p,f,a,!1),r.putInt32(a[0]),r.putInt32(a[1]),r.putInt32(a[2]),r.putInt32(a[3]),r.getBytes()},t.increment=function(p){return++p[3],p},t.md=Ke.md.sha256;function n(){var p=Ke.prng.create(t);return p.getBytes=function(f,x){return p.generate(f,x)},p.getBytesSync=function(f){return p.generate(f)},p}var s=n(),i=null,o=Ke.util.globalScope,c=o.crypto||o.msCrypto;if(c&&c.getRandomValues&&(i=function(p){return c.getRandomValues(p)}),Ke.options.usePureJavaScript||!Ke.util.isNodejs&&!i){if(s.collectInt(+new Date,32),typeof navigator<"u"){var l="";for(var u in navigator)try{typeof navigator[u]=="string"&&(l+=navigator[u])}catch{}s.collect(l),l=null}e&&(e().mousemove(function(p){s.collectInt(p.clientX,16),s.collectInt(p.clientY,16)}),e().keypress(function(p){s.collectInt(p.charCode,8)}))}if(!Ke.random)Ke.random=s;else for(var u in s)Ke.random[u]=s[u];Ke.random.createInstance=n,Ke.random})(typeof jQuery<"u"?jQuery:null)})();var Tt=te,ju=[217,120,249,196,25,221,181,237,40,233,253,121,74,160,216,157,198,126,55,131,43,118,83,142,98,76,100,136,68,139,251,162,23,154,89,245,135,179,79,19,97,69,109,141,9,129,125,50,189,143,64,235,134,183,123,11,240,149,33,34,92,107,78,130,84,214,101,147,206,96,178,28,115,86,192,20,167,140,241,220,18,117,202,31,59,190,228,209,66,61,212,48,163,60,182,38,111,191,14,218,70,105,7,87,39,242,29,155,188,148,67,3,248,17,199,246,144,239,62,231,6,195,213,47,200,102,30,215,8,232,234,222,128,82,238,247,132,170,114,172,53,77,106,42,150,26,210,113,90,21,73,116,75,159,208,94,4,24,164,236,194,224,65,110,15,81,203,204,36,145,175,80,161,244,112,57,153,124,58,133,35,184,180,122,252,2,54,91,37,85,151,49,45,93,250,152,227,138,146,174,5,223,41,16,103,108,186,201,211,0,230,207,225,158,168,44,99,22,1,63,88,226,137,169,13,56,52,27,171,51,255,176,187,72,12,95,185,177,205,46,197,243,219,71,229,165,156,119,10,166,32,104,254,127,193,173],Zf=[1,2,3,5],rb=function(e,t){return e<<t&65535|(e&65535)>>16-t},ab=function(e,t){return(e&65535)>>t|e<<16-t&65535};Tt.rc2=Tt.rc2||{},Tt.rc2.expandKey=function(e,t){typeof e=="string"&&(e=Tt.util.createBuffer(e)),t=t||128;var a=e,r=e.length(),n=t,s=Math.ceil(n/8),i=255>>(n&7),o;for(o=r;o<128;o++)a.putByte(ju[a.at(o-1)+a.at(o-r)&255]);for(a.setAt(128-s,ju[a.at(128-s)&i]),o=127-s;o>=0;o--)a.setAt(o,ju[a.at(o+1)^a.at(o+s)]);return a};var e0=function(e,t,a){var r=!1,n=null,s=null,i=null,o,c,l,u,p=[];for(e=Tt.rc2.expandKey(e,t),l=0;l<64;l++)p.push(e.getInt16Le());a?(o=function(m){for(l=0;l<4;l++)m[l]+=p[u]+(m[(l+3)%4]&m[(l+2)%4])+(~m[(l+3)%4]&m[(l+1)%4]),m[l]=rb(m[l],Zf[l]),u++},c=function(m){for(l=0;l<4;l++)m[l]+=p[m[(l+3)%4]&63]}):(o=function(m){for(l=3;l>=0;l--)m[l]=ab(m[l],Zf[l]),m[l]-=p[u]+(m[(l+3)%4]&m[(l+2)%4])+(~m[(l+3)%4]&m[(l+1)%4]),u--},c=function(m){for(l=3;l>=0;l--)m[l]-=p[m[(l+3)%4]&63]});var f=function(m){var y=[];for(l=0;l<4;l++){var b=n.getInt16Le();i!==null&&(a?b^=i.getInt16Le():i.putInt16Le(b)),y.push(b&65535)}u=a?0:63;for(var S=0;S<m.length;S++)for(var B=0;B<m[S][0];B++)m[S][1](y);for(l=0;l<4;l++)i!==null&&(a?i.putInt16Le(y[l]):y[l]^=i.getInt16Le()),s.putInt16Le(y[l])},x=null;return x={start:function(m,y){m&&typeof m=="string"&&(m=Tt.util.createBuffer(m)),r=!1,n=Tt.util.createBuffer(),s=y||new Tt.util.createBuffer,i=m,x.output=s},update:function(m){for(r||n.putBuffer(m);n.length()>=8;)f([[5,o],[1,c],[6,o],[1,c],[5,o]])},finish:function(m){var y=!0;if(a)if(m)y=m(8,n,!a);else{var b=n.length()===8?8:8-n.length();n.fillWithByte(b,b)}if(y&&(r=!0,x.update()),!a&&(y=n.length()===0,y))if(m)y=m(8,s,!a);else{var S=s.length(),B=s.at(S-1);B>S?y=!1:s.truncate(B)}return y}},x};Tt.rc2.startEncrypting=function(e,t,a){var r=Tt.rc2.createEncryptionCipher(e,128);return r.start(t,a),r},Tt.rc2.createEncryptionCipher=function(e,t){return e0(e,t,!0)},Tt.rc2.startDecrypting=function(e,t,a){var r=Tt.rc2.createDecryptionCipher(e,128);return r.start(t,a),r},Tt.rc2.createDecryptionCipher=function(e,t){return e0(e,t,!1)};var Ku=te;Ku.jsbn=Ku.jsbn||{};var Zt;function N(e,t,a){this.data=[],e!=null&&(typeof e=="number"?this.fromNumber(e,t,a):t==null&&typeof e!="string"?this.fromString(e,256):this.fromString(e,t))}Ku.jsbn.BigInteger=N;function fe(){return new N(null)}function nb(e,t,a,r,n,s){for(;--s>=0;){var i=t*this.data[e++]+a.data[r]+n;n=Math.floor(i/67108864),a.data[r++]=i&67108863}return n}function ib(e,t,a,r,n,s){for(var i=t&32767,o=t>>15;--s>=0;){var c=this.data[e]&32767,l=this.data[e++]>>15,u=o*c+l*i;c=i*c+((u&32767)<<15)+a.data[r]+(n&1073741823),n=(c>>>30)+(u>>>15)+o*l+(n>>>30),a.data[r++]=c&1073741823}return n}function t0(e,t,a,r,n,s){for(var i=t&16383,o=t>>14;--s>=0;){var c=this.data[e]&16383,l=this.data[e++]>>14,u=o*c+l*i;c=i*c+((u&16383)<<14)+a.data[r]+n,n=(c>>28)+(u>>14)+o*l,a.data[r++]=c&268435455}return n}typeof navigator>"u"?(N.prototype.am=t0,Zt=28):navigator.appName=="Microsoft Internet Explorer"?(N.prototype.am=ib,Zt=30):navigator.appName!="Netscape"?(N.prototype.am=nb,Zt=26):(N.prototype.am=t0,Zt=28),N.prototype.DB=Zt,N.prototype.DM=(1<<Zt)-1,N.prototype.DV=1<<Zt;var zu=52;N.prototype.FV=Math.pow(2,zu),N.prototype.F1=zu-Zt,N.prototype.F2=2*Zt-zu;var sb="0123456789abcdefghijklmnopqrstuvwxyz",al=new Array,$r,Nt;for($r=48,Nt=0;Nt<=9;++Nt)al[$r++]=Nt;for($r=97,Nt=10;Nt<36;++Nt)al[$r++]=Nt;for($r=65,Nt=10;Nt<36;++Nt)al[$r++]=Nt;function r0(e){return sb.charAt(e)}function a0(e,t){var a=al[e.charCodeAt(t)];return a??-1}function ob(e){for(var t=this.t-1;t>=0;--t)e.data[t]=this.data[t];e.t=this.t,e.s=this.s}function cb(e){this.t=1,this.s=e<0?-1:0,e>0?this.data[0]=e:e<-1?this.data[0]=e+this.DV:this.t=0}function or(e){var t=fe();return t.fromInt(e),t}function lb(e,t){var a;if(t==16)a=4;else if(t==8)a=3;else if(t==256)a=8;else if(t==2)a=1;else if(t==32)a=5;else if(t==4)a=2;else{this.fromRadix(e,t);return}this.t=0,this.s=0;for(var r=e.length,n=!1,s=0;--r>=0;){var i=a==8?e[r]&255:a0(e,r);if(i<0){e.charAt(r)=="-"&&(n=!0);continue}n=!1,s==0?this.data[this.t++]=i:s+a>this.DB?(this.data[this.t-1]|=(i&(1<<this.DB-s)-1)<<s,this.data[this.t++]=i>>this.DB-s):this.data[this.t-1]|=i<<s,s+=a,s>=this.DB&&(s-=this.DB)}a==8&&(e[0]&128)!=0&&(this.s=-1,s>0&&(this.data[this.t-1]|=(1<<this.DB-s)-1<<s)),this.clamp(),n&&N.ZERO.subTo(this,this)}function ub(){for(var e=this.s&this.DM;this.t>0&&this.data[this.t-1]==e;)--this.t}function pb(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(e==16)t=4;else if(e==8)t=3;else if(e==2)t=1;else if(e==32)t=5;else if(e==4)t=2;else return this.toRadix(e);var a=(1<<t)-1,r,n=!1,s="",i=this.t,o=this.DB-i*this.DB%t;if(i-- >0)for(o<this.DB&&(r=this.data[i]>>o)>0&&(n=!0,s=r0(r));i>=0;)o<t?(r=(this.data[i]&(1<<o)-1)<<t-o,r|=this.data[--i]>>(o+=this.DB-t)):(r=this.data[i]>>(o-=t)&a,o<=0&&(o+=this.DB,--i)),r>0&&(n=!0),n&&(s+=r0(r));return n?s:"0"}function db(){var e=fe();return N.ZERO.subTo(this,e),e}function fb(){return this.s<0?this.negate():this}function mb(e){var t=this.s-e.s;if(t!=0)return t;var a=this.t;if(t=a-e.t,t!=0)return this.s<0?-t:t;for(;--a>=0;)if((t=this.data[a]-e.data[a])!=0)return t;return 0}function nl(e){var t=1,a;return(a=e>>>16)!=0&&(e=a,t+=16),(a=e>>8)!=0&&(e=a,t+=8),(a=e>>4)!=0&&(e=a,t+=4),(a=e>>2)!=0&&(e=a,t+=2),(a=e>>1)!=0&&(e=a,t+=1),t}function hb(){return this.t<=0?0:this.DB*(this.t-1)+nl(this.data[this.t-1]^this.s&this.DM)}function vb(e,t){var a;for(a=this.t-1;a>=0;--a)t.data[a+e]=this.data[a];for(a=e-1;a>=0;--a)t.data[a]=0;t.t=this.t+e,t.s=this.s}function gb(e,t){for(var a=e;a<this.t;++a)t.data[a-e]=this.data[a];t.t=Math.max(this.t-e,0),t.s=this.s}function xb(e,t){var a=e%this.DB,r=this.DB-a,n=(1<<r)-1,s=Math.floor(e/this.DB),i=this.s<<a&this.DM,o;for(o=this.t-1;o>=0;--o)t.data[o+s+1]=this.data[o]>>r|i,i=(this.data[o]&n)<<a;for(o=s-1;o>=0;--o)t.data[o]=0;t.data[s]=i,t.t=this.t+s+1,t.s=this.s,t.clamp()}function yb(e,t){t.s=this.s;var a=Math.floor(e/this.DB);if(a>=this.t){t.t=0;return}var r=e%this.DB,n=this.DB-r,s=(1<<r)-1;t.data[0]=this.data[a]>>r;for(var i=a+1;i<this.t;++i)t.data[i-a-1]|=(this.data[i]&s)<<n,t.data[i-a]=this.data[i]>>r;r>0&&(t.data[this.t-a-1]|=(this.s&s)<<n),t.t=this.t-a,t.clamp()}function bb(e,t){for(var a=0,r=0,n=Math.min(e.t,this.t);a<n;)r+=this.data[a]-e.data[a],t.data[a++]=r&this.DM,r>>=this.DB;if(e.t<this.t){for(r-=e.s;a<this.t;)r+=this.data[a],t.data[a++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;a<e.t;)r-=e.data[a],t.data[a++]=r&this.DM,r>>=this.DB;r-=e.s}t.s=r<0?-1:0,r<-1?t.data[a++]=this.DV+r:r>0&&(t.data[a++]=r),t.t=a,t.clamp()}function Eb(e,t){var a=this.abs(),r=e.abs(),n=a.t;for(t.t=n+r.t;--n>=0;)t.data[n]=0;for(n=0;n<r.t;++n)t.data[n+a.t]=a.am(0,r.data[n],t,n,0,a.t);t.s=0,t.clamp(),this.s!=e.s&&N.ZERO.subTo(t,t)}function Cb(e){for(var t=this.abs(),a=e.t=2*t.t;--a>=0;)e.data[a]=0;for(a=0;a<t.t-1;++a){var r=t.am(a,t.data[a],e,2*a,0,1);(e.data[a+t.t]+=t.am(a+1,2*t.data[a],e,2*a+1,r,t.t-a-1))>=t.DV&&(e.data[a+t.t]-=t.DV,e.data[a+t.t+1]=1)}e.t>0&&(e.data[e.t-1]+=t.am(a,t.data[a],e,2*a,0,1)),e.s=0,e.clamp()}function Sb(e,t,a){var r=e.abs();if(!(r.t<=0)){var n=this.abs();if(n.t<r.t){t?.fromInt(0),a!=null&&this.copyTo(a);return}a==null&&(a=fe());var s=fe(),i=this.s,o=e.s,c=this.DB-nl(r.data[r.t-1]);c>0?(r.lShiftTo(c,s),n.lShiftTo(c,a)):(r.copyTo(s),n.copyTo(a));var l=s.t,u=s.data[l-1];if(u!=0){var p=u*(1<<this.F1)+(l>1?s.data[l-2]>>this.F2:0),f=this.FV/p,x=(1<<this.F1)/p,m=1<<this.F2,y=a.t,b=y-l,S=t??fe();for(s.dlShiftTo(b,S),a.compareTo(S)>=0&&(a.data[a.t++]=1,a.subTo(S,a)),N.ONE.dlShiftTo(l,S),S.subTo(s,s);s.t<l;)s.data[s.t++]=0;for(;--b>=0;){var B=a.data[--y]==u?this.DM:Math.floor(a.data[y]*f+(a.data[y-1]+m)*x);if((a.data[y]+=s.am(0,B,a,b,0,l))<B)for(s.dlShiftTo(b,S),a.subTo(S,a);a.data[y]<--B;)a.subTo(S,a)}t!=null&&(a.drShiftTo(l,t),i!=o&&N.ZERO.subTo(t,t)),a.t=l,a.clamp(),c>0&&a.rShiftTo(c,a),i<0&&N.ZERO.subTo(a,a)}}}function Tb(e){var t=fe();return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(N.ZERO)>0&&e.subTo(t,t),t}function Ar(e){this.m=e}function wb(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e}function Ab(e){return e}function Ib(e){e.divRemTo(this.m,null,e)}function Bb(e,t,a){e.multiplyTo(t,a),this.reduce(a)}function _b(e,t){e.squareTo(t),this.reduce(t)}Ar.prototype.convert=wb,Ar.prototype.revert=Ab,Ar.prototype.reduce=Ib,Ar.prototype.mulTo=Bb,Ar.prototype.sqrTo=_b;function Rb(){if(this.t<1)return 0;var e=this.data[0];if((e&1)==0)return 0;var t=e&3;return t=t*(2-(e&15)*t)&15,t=t*(2-(e&255)*t)&255,t=t*(2-((e&65535)*t&65535))&65535,t=t*(2-e*t%this.DV)%this.DV,t>0?this.DV-t:-t}function Ir(e){this.m=e,this.mp=e.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}function kb(e){var t=fe();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(N.ZERO)>0&&this.m.subTo(t,t),t}function Nb(e){var t=fe();return e.copyTo(t),this.reduce(t),t}function Lb(e){for(;e.t<=this.mt2;)e.data[e.t++]=0;for(var t=0;t<this.m.t;++t){var a=e.data[t]&32767,r=a*this.mpl+((a*this.mph+(e.data[t]>>15)*this.mpl&this.um)<<15)&e.DM;for(a=t+this.m.t,e.data[a]+=this.m.am(0,r,e,t,0,this.m.t);e.data[a]>=e.DV;)e.data[a]-=e.DV,e.data[++a]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)}function Ub(e,t){e.squareTo(t),this.reduce(t)}function Db(e,t,a){e.multiplyTo(t,a),this.reduce(a)}Ir.prototype.convert=kb,Ir.prototype.revert=Nb,Ir.prototype.reduce=Lb,Ir.prototype.mulTo=Db,Ir.prototype.sqrTo=Ub;function Pb(){return(this.t>0?this.data[0]&1:this.s)==0}function Ob(e,t){if(e>4294967295||e<1)return N.ONE;var a=fe(),r=fe(),n=t.convert(this),s=nl(e)-1;for(n.copyTo(a);--s>=0;)if(t.sqrTo(a,r),(e&1<<s)>0)t.mulTo(r,n,a);else{var i=a;a=r,r=i}return t.revert(a)}function Fb(e,t){var a;return e<256||t.isEven()?a=new Ar(t):a=new Ir(t),this.exp(e,a)}N.prototype.copyTo=ob,N.prototype.fromInt=cb,N.prototype.fromString=lb,N.prototype.clamp=ub,N.prototype.dlShiftTo=vb,N.prototype.drShiftTo=gb,N.prototype.lShiftTo=xb,N.prototype.rShiftTo=yb,N.prototype.subTo=bb,N.prototype.multiplyTo=Eb,N.prototype.squareTo=Cb,N.prototype.divRemTo=Sb,N.prototype.invDigit=Rb,N.prototype.isEven=Pb,N.prototype.exp=Ob,N.prototype.toString=pb,N.prototype.negate=db,N.prototype.abs=fb,N.prototype.compareTo=mb,N.prototype.bitLength=hb,N.prototype.mod=Tb,N.prototype.modPowInt=Fb,N.ZERO=or(0),N.ONE=or(1);function Mb(){var e=fe();return this.copyTo(e),e}function Vb(){if(this.s<0){if(this.t==1)return this.data[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this.data[0];if(this.t==0)return 0}return(this.data[1]&(1<<32-this.DB)-1)<<this.DB|this.data[0]}function qb(){return this.t==0?this.s:this.data[0]<<24>>24}function jb(){return this.t==0?this.s:this.data[0]<<16>>16}function Kb(e){return Math.floor(Math.LN2*this.DB/Math.log(e))}function zb(){return this.s<0?-1:this.t<=0||this.t==1&&this.data[0]<=0?0:1}function Hb(e){if(e==null&&(e=10),this.signum()==0||e<2||e>36)return"0";var t=this.chunkSize(e),a=Math.pow(e,t),r=or(a),n=fe(),s=fe(),i="";for(this.divRemTo(r,n,s);n.signum()>0;)i=(a+s.intValue()).toString(e).substr(1)+i,n.divRemTo(r,n,s);return s.intValue().toString(e)+i}function $b(e,t){this.fromInt(0),t==null&&(t=10);for(var a=this.chunkSize(t),r=Math.pow(t,a),n=!1,s=0,i=0,o=0;o<e.length;++o){var c=a0(e,o);if(c<0){e.charAt(o)=="-"&&this.signum()==0&&(n=!0);continue}i=t*i+c,++s>=a&&(this.dMultiply(r),this.dAddOffset(i,0),s=0,i=0)}s>0&&(this.dMultiply(Math.pow(t,s)),this.dAddOffset(i,0)),n&&N.ZERO.subTo(this,this)}function Gb(e,t,a){if(typeof t=="number")if(e<2)this.fromInt(1);else for(this.fromNumber(e,a),this.testBit(e-1)||this.bitwiseTo(N.ONE.shiftLeft(e-1),Hu,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(t);)this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(N.ONE.shiftLeft(e-1),this);else{var r=new Array,n=e&7;r.length=(e>>3)+1,t.nextBytes(r),n>0?r[0]&=(1<<n)-1:r[0]=0,this.fromString(r,256)}}function Qb(){var e=this.t,t=new Array;t[0]=this.s;var a=this.DB-e*this.DB%8,r,n=0;if(e-- >0)for(a<this.DB&&(r=this.data[e]>>a)!=(this.s&this.DM)>>a&&(t[n++]=r|this.s<<this.DB-a);e>=0;)a<8?(r=(this.data[e]&(1<<a)-1)<<8-a,r|=this.data[--e]>>(a+=this.DB-8)):(r=this.data[e]>>(a-=8)&255,a<=0&&(a+=this.DB,--e)),(r&128)!=0&&(r|=-256),n==0&&(this.s&128)!=(r&128)&&++n,(n>0||r!=this.s)&&(t[n++]=r);return t}function Wb(e){return this.compareTo(e)==0}function Yb(e){return this.compareTo(e)<0?this:e}function Xb(e){return this.compareTo(e)>0?this:e}function Jb(e,t,a){var r,n,s=Math.min(e.t,this.t);for(r=0;r<s;++r)a.data[r]=t(this.data[r],e.data[r]);if(e.t<this.t){for(n=e.s&this.DM,r=s;r<this.t;++r)a.data[r]=t(this.data[r],n);a.t=this.t}else{for(n=this.s&this.DM,r=s;r<e.t;++r)a.data[r]=t(n,e.data[r]);a.t=e.t}a.s=t(this.s,e.s),a.clamp()}function Zb(e,t){return e&t}function eE(e){var t=fe();return this.bitwiseTo(e,Zb,t),t}function Hu(e,t){return e|t}function tE(e){var t=fe();return this.bitwiseTo(e,Hu,t),t}function n0(e,t){return e^t}function rE(e){var t=fe();return this.bitwiseTo(e,n0,t),t}function i0(e,t){return e&~t}function aE(e){var t=fe();return this.bitwiseTo(e,i0,t),t}function nE(){for(var e=fe(),t=0;t<this.t;++t)e.data[t]=this.DM&~this.data[t];return e.t=this.t,e.s=~this.s,e}function iE(e){var t=fe();return e<0?this.rShiftTo(-e,t):this.lShiftTo(e,t),t}function sE(e){var t=fe();return e<0?this.lShiftTo(-e,t):this.rShiftTo(e,t),t}function oE(e){if(e==0)return-1;var t=0;return(e&65535)==0&&(e>>=16,t+=16),(e&255)==0&&(e>>=8,t+=8),(e&15)==0&&(e>>=4,t+=4),(e&3)==0&&(e>>=2,t+=2),(e&1)==0&&++t,t}function cE(){for(var e=0;e<this.t;++e)if(this.data[e]!=0)return e*this.DB+oE(this.data[e]);return this.s<0?this.t*this.DB:-1}function lE(e){for(var t=0;e!=0;)e&=e-1,++t;return t}function uE(){for(var e=0,t=this.s&this.DM,a=0;a<this.t;++a)e+=lE(this.data[a]^t);return e}function pE(e){var t=Math.floor(e/this.DB);return t>=this.t?this.s!=0:(this.data[t]&1<<e%this.DB)!=0}function dE(e,t){var a=N.ONE.shiftLeft(e);return this.bitwiseTo(a,t,a),a}function fE(e){return this.changeBit(e,Hu)}function mE(e){return this.changeBit(e,i0)}function hE(e){return this.changeBit(e,n0)}function vE(e,t){for(var a=0,r=0,n=Math.min(e.t,this.t);a<n;)r+=this.data[a]+e.data[a],t.data[a++]=r&this.DM,r>>=this.DB;if(e.t<this.t){for(r+=e.s;a<this.t;)r+=this.data[a],t.data[a++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;a<e.t;)r+=e.data[a],t.data[a++]=r&this.DM,r>>=this.DB;r+=e.s}t.s=r<0?-1:0,r>0?t.data[a++]=r:r<-1&&(t.data[a++]=this.DV+r),t.t=a,t.clamp()}function gE(e){var t=fe();return this.addTo(e,t),t}function xE(e){var t=fe();return this.subTo(e,t),t}function yE(e){var t=fe();return this.multiplyTo(e,t),t}function bE(){var e=fe();return this.squareTo(e),e}function EE(e){var t=fe();return this.divRemTo(e,t,null),t}function CE(e){var t=fe();return this.divRemTo(e,null,t),t}function SE(e){var t=fe(),a=fe();return this.divRemTo(e,t,a),new Array(t,a)}function TE(e){this.data[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()}function wE(e,t){if(e!=0){for(;this.t<=t;)this.data[this.t++]=0;for(this.data[t]+=e;this.data[t]>=this.DV;)this.data[t]-=this.DV,++t>=this.t&&(this.data[this.t++]=0),++this.data[t]}}function fc(){}function s0(e){return e}function AE(e,t,a){e.multiplyTo(t,a)}function IE(e,t){e.squareTo(t)}fc.prototype.convert=s0,fc.prototype.revert=s0,fc.prototype.mulTo=AE,fc.prototype.sqrTo=IE;function BE(e){return this.exp(e,new fc)}function _E(e,t,a){var r=Math.min(this.t+e.t,t);for(a.s=0,a.t=r;r>0;)a.data[--r]=0;var n;for(n=a.t-this.t;r<n;++r)a.data[r+this.t]=this.am(0,e.data[r],a,r,0,this.t);for(n=Math.min(e.t,t);r<n;++r)this.am(0,e.data[r],a,r,0,t-r);a.clamp()}function RE(e,t,a){--t;var r=a.t=this.t+e.t-t;for(a.s=0;--r>=0;)a.data[r]=0;for(r=Math.max(t-this.t,0);r<e.t;++r)a.data[this.t+r-t]=this.am(t-r,e.data[r],a,0,0,this.t+r-t);a.clamp(),a.drShiftTo(1,a)}function Gr(e){this.r2=fe(),this.q3=fe(),N.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e),this.m=e}function kE(e){if(e.s<0||e.t>2*this.m.t)return e.mod(this.m);if(e.compareTo(this.m)<0)return e;var t=fe();return e.copyTo(t),this.reduce(t),t}function NE(e){return e}function LE(e){for(e.drShiftTo(this.m.t-1,this.r2),e.t>this.m.t+1&&(e.t=this.m.t+1,e.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);e.compareTo(this.r2)<0;)e.dAddOffset(1,this.m.t+1);for(e.subTo(this.r2,e);e.compareTo(this.m)>=0;)e.subTo(this.m,e)}function UE(e,t){e.squareTo(t),this.reduce(t)}function DE(e,t,a){e.multiplyTo(t,a),this.reduce(a)}Gr.prototype.convert=kE,Gr.prototype.revert=NE,Gr.prototype.reduce=LE,Gr.prototype.mulTo=DE,Gr.prototype.sqrTo=UE;function PE(e,t){var a=e.bitLength(),r,n=or(1),s;if(a<=0)return n;a<18?r=1:a<48?r=3:a<144?r=4:a<768?r=5:r=6,a<8?s=new Ar(t):t.isEven()?s=new Gr(t):s=new Ir(t);var i=new Array,o=3,c=r-1,l=(1<<r)-1;if(i[1]=s.convert(this),r>1){var u=fe();for(s.sqrTo(i[1],u);o<=l;)i[o]=fe(),s.mulTo(u,i[o-2],i[o]),o+=2}var p=e.t-1,f,x=!0,m=fe(),y;for(a=nl(e.data[p])-1;p>=0;){for(a>=c?f=e.data[p]>>a-c&l:(f=(e.data[p]&(1<<a+1)-1)<<c-a,p>0&&(f|=e.data[p-1]>>this.DB+a-c)),o=r;(f&1)==0;)f>>=1,--o;if((a-=o)<0&&(a+=this.DB,--p),x)i[f].copyTo(n),x=!1;else{for(;o>1;)s.sqrTo(n,m),s.sqrTo(m,n),o-=2;o>0?s.sqrTo(n,m):(y=n,n=m,m=y),s.mulTo(m,i[f],n)}for(;p>=0&&(e.data[p]&1<<a)==0;)s.sqrTo(n,m),y=n,n=m,m=y,--a<0&&(a=this.DB-1,--p)}return s.revert(n)}function OE(e){var t=this.s<0?this.negate():this.clone(),a=e.s<0?e.negate():e.clone();if(t.compareTo(a)<0){var r=t;t=a,a=r}var n=t.getLowestSetBit(),s=a.getLowestSetBit();if(s<0)return t;for(n<s&&(s=n),s>0&&(t.rShiftTo(s,t),a.rShiftTo(s,a));t.signum()>0;)(n=t.getLowestSetBit())>0&&t.rShiftTo(n,t),(n=a.getLowestSetBit())>0&&a.rShiftTo(n,a),t.compareTo(a)>=0?(t.subTo(a,t),t.rShiftTo(1,t)):(a.subTo(t,a),a.rShiftTo(1,a));return s>0&&a.lShiftTo(s,a),a}function FE(e){if(e<=0)return 0;var t=this.DV%e,a=this.s<0?e-1:0;if(this.t>0)if(t==0)a=this.data[0]%e;else for(var r=this.t-1;r>=0;--r)a=(t*a+this.data[r])%e;return a}function ME(e){if(this.signum()==0)return N.ZERO;var t=e.isEven();if(this.isEven()&&t||e.signum()==0)return N.ZERO;for(var a=e.clone(),r=this.clone(),n=or(1),s=or(0),i=or(0),o=or(1);a.signum()!=0;){for(;a.isEven();)a.rShiftTo(1,a),t?((!n.isEven()||!s.isEven())&&(n.addTo(this,n),s.subTo(e,s)),n.rShiftTo(1,n)):s.isEven()||s.subTo(e,s),s.rShiftTo(1,s);for(;r.isEven();)r.rShiftTo(1,r),t?((!i.isEven()||!o.isEven())&&(i.addTo(this,i),o.subTo(e,o)),i.rShiftTo(1,i)):o.isEven()||o.subTo(e,o),o.rShiftTo(1,o);a.compareTo(r)>=0?(a.subTo(r,a),t&&n.subTo(i,n),s.subTo(o,s)):(r.subTo(a,r),t&&i.subTo(n,i),o.subTo(s,o))}if(r.compareTo(N.ONE)!=0)return N.ZERO;if(o.compareTo(e)>=0)return o.subtract(e);if(o.signum()<0)o.addTo(e,o);else return o;return o.signum()<0?o.add(e):o}var Vt=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],VE=(1<<26)/Vt[Vt.length-1];function qE(e){var t,a=this.abs();if(a.t==1&&a.data[0]<=Vt[Vt.length-1]){for(t=0;t<Vt.length;++t)if(a.data[0]==Vt[t])return!0;return!1}if(a.isEven())return!1;for(t=1;t<Vt.length;){for(var r=Vt[t],n=t+1;n<Vt.length&&r<VE;)r*=Vt[n++];for(r=a.modInt(r);t<n;)if(r%Vt[t++]==0)return!1}return a.millerRabin(e)}function jE(e){var t=this.subtract(N.ONE),a=t.getLowestSetBit();if(a<=0)return!1;for(var r=t.shiftRight(a),n=KE(),s,i=0;i<e;++i){do s=new N(this.bitLength(),n);while(s.compareTo(N.ONE)<=0||s.compareTo(t)>=0);var o=s.modPow(r,this);if(o.compareTo(N.ONE)!=0&&o.compareTo(t)!=0){for(var c=1;c++<a&&o.compareTo(t)!=0;)if(o=o.modPowInt(2,this),o.compareTo(N.ONE)==0)return!1;if(o.compareTo(t)!=0)return!1}}return!0}function KE(){return{nextBytes:function(e){for(var t=0;t<e.length;++t)e[t]=Math.floor(Math.random()*256)}}}N.prototype.chunkSize=Kb,N.prototype.toRadix=Hb,N.prototype.fromRadix=$b,N.prototype.fromNumber=Gb,N.prototype.bitwiseTo=Jb,N.prototype.changeBit=dE,N.prototype.addTo=vE,N.prototype.dMultiply=TE,N.prototype.dAddOffset=wE,N.prototype.multiplyLowerTo=_E,N.prototype.multiplyUpperTo=RE,N.prototype.modInt=FE,N.prototype.millerRabin=jE,N.prototype.clone=Mb,N.prototype.intValue=Vb,N.prototype.byteValue=qb,N.prototype.shortValue=jb,N.prototype.signum=zb,N.prototype.toByteArray=Qb,N.prototype.equals=Wb,N.prototype.min=Yb,N.prototype.max=Xb,N.prototype.and=eE,N.prototype.or=tE,N.prototype.xor=rE,N.prototype.andNot=aE,N.prototype.not=nE,N.prototype.shiftLeft=iE,N.prototype.shiftRight=sE,N.prototype.getLowestSetBit=cE,N.prototype.bitCount=uE,N.prototype.testBit=pE,N.prototype.setBit=fE,N.prototype.clearBit=mE,N.prototype.flipBit=hE,N.prototype.add=gE,N.prototype.subtract=xE,N.prototype.multiply=yE,N.prototype.divide=EE,N.prototype.remainder=CE,N.prototype.divideAndRemainder=SE,N.prototype.modPow=PE,N.prototype.modInverse=ME,N.prototype.pow=BE,N.prototype.gcd=OE,N.prototype.isProbablePrime=qE,N.prototype.square=bE;var $t=te,o0=$t.sha1=$t.sha1||{};$t.md.sha1=$t.md.algorithms.sha1=o0,o0.create=function(){c0||zE();var e=null,t=$t.util.createBuffer(),a=new Array(80),r={algorithm:"sha1",blockLength:64,digestLength:20,messageLength:0,fullMessageLength:null,messageLengthSize:8};return r.start=function(){r.messageLength=0,r.fullMessageLength=r.messageLength64=[];for(var n=r.messageLengthSize/4,s=0;s<n;++s)r.fullMessageLength.push(0);return t=$t.util.createBuffer(),e={h0:1732584193,h1:4023233417,h2:2562383102,h3:271733878,h4:3285377520},r},r.start(),r.update=function(n,s){s==="utf8"&&(n=$t.util.encodeUtf8(n));var i=n.length;r.messageLength+=i,i=[i/4294967296>>>0,i>>>0];for(var o=r.fullMessageLength.length-1;o>=0;--o)r.fullMessageLength[o]+=i[1],i[1]=i[0]+(r.fullMessageLength[o]/4294967296>>>0),r.fullMessageLength[o]=r.fullMessageLength[o]>>>0,i[0]=i[1]/4294967296>>>0;return t.putBytes(n),l0(e,a,t),(t.read>2048||t.length()===0)&&t.compact(),r},r.digest=function(){var n=$t.util.createBuffer();n.putBytes(t.bytes());var s=r.fullMessageLength[r.fullMessageLength.length-1]+r.messageLengthSize,i=s&r.blockLength-1;n.putBytes($u.substr(0,r.blockLength-i));for(var o,c,l=r.fullMessageLength[0]*8,u=0;u<r.fullMessageLength.length-1;++u)o=r.fullMessageLength[u+1]*8,c=o/4294967296>>>0,l+=c,n.putInt32(l>>>0),l=o>>>0;n.putInt32(l);var p={h0:e.h0,h1:e.h1,h2:e.h2,h3:e.h3,h4:e.h4};l0(p,a,n);var f=$t.util.createBuffer();return f.putInt32(p.h0),f.putInt32(p.h1),f.putInt32(p.h2),f.putInt32(p.h3),f.putInt32(p.h4),f},r};var $u=null,c0=!1;function zE(){$u="\x80",$u+=$t.util.fillString("\0",64),c0=!0}function l0(e,t,a){for(var r,n,s,i,o,c,l,u,p=a.length();p>=64;){for(n=e.h0,s=e.h1,i=e.h2,o=e.h3,c=e.h4,u=0;u<16;++u)r=a.getInt32(),t[u]=r,l=o^s&(i^o),r=(n<<5|n>>>27)+l+c+1518500249+r,c=o,o=i,i=(s<<30|s>>>2)>>>0,s=n,n=r;for(;u<20;++u)r=t[u-3]^t[u-8]^t[u-14]^t[u-16],r=r<<1|r>>>31,t[u]=r,l=o^s&(i^o),r=(n<<5|n>>>27)+l+c+1518500249+r,c=o,o=i,i=(s<<30|s>>>2)>>>0,s=n,n=r;for(;u<32;++u)r=t[u-3]^t[u-8]^t[u-14]^t[u-16],r=r<<1|r>>>31,t[u]=r,l=s^i^o,r=(n<<5|n>>>27)+l+c+1859775393+r,c=o,o=i,i=(s<<30|s>>>2)>>>0,s=n,n=r;for(;u<40;++u)r=t[u-6]^t[u-16]^t[u-28]^t[u-32],r=r<<2|r>>>30,t[u]=r,l=s^i^o,r=(n<<5|n>>>27)+l+c+1859775393+r,c=o,o=i,i=(s<<30|s>>>2)>>>0,s=n,n=r;for(;u<60;++u)r=t[u-6]^t[u-16]^t[u-28]^t[u-32],r=r<<2|r>>>30,t[u]=r,l=s&i|o&(s^i),r=(n<<5|n>>>27)+l+c+2400959708+r,c=o,o=i,i=(s<<30|s>>>2)>>>0,s=n,n=r;for(;u<80;++u)r=t[u-6]^t[u-16]^t[u-28]^t[u-32],r=r<<2|r>>>30,t[u]=r,l=s^i^o,r=(n<<5|n>>>27)+l+c+3395469782+r,c=o,o=i,i=(s<<30|s>>>2)>>>0,s=n,n=r;e.h0=e.h0+n|0,e.h1=e.h1+s|0,e.h2=e.h2+i|0,e.h3=e.h3+o|0,e.h4=e.h4+c|0,p-=64}}var Gt=te,u0=Gt.pkcs1=Gt.pkcs1||{};u0.encode_rsa_oaep=function(e,t,a){var r,n,s,i;typeof a=="string"?(r=a,n=arguments[3]||void 0,s=arguments[4]||void 0):a&&(r=a.label||void 0,n=a.seed||void 0,s=a.md||void 0,a.mgf1&&a.mgf1.md&&(i=a.mgf1.md)),s?s.start():s=Gt.md.sha1.create(),i||(i=s);var o=Math.ceil(e.n.bitLength()/8),c=o-2*s.digestLength-2;if(t.length>c){var l=new Error("RSAES-OAEP input message length is too long.");throw l.length=t.length,l.maxLength=c,l}r||(r=""),s.update(r,"raw");for(var u=s.digest(),p="",f=c-t.length,x=0;x<f;x++)p+="\0";var m=u.getBytes()+p+""+t;if(!n)n=Gt.random.getBytes(s.digestLength);else if(n.length!==s.digestLength){var l=new Error("Invalid RSAES-OAEP seed. The seed length must match the digest length.");throw l.seedLength=n.length,l.digestLength=s.digestLength,l}var y=il(n,o-s.digestLength-1,i),b=Gt.util.xorBytes(m,y,m.length),S=il(b,s.digestLength,i),B=Gt.util.xorBytes(n,S,n.length);return"\0"+B+b},u0.decode_rsa_oaep=function(e,t,a){var r,n,s;typeof a=="string"?(r=a,n=arguments[3]||void 0):a&&(r=a.label||void 0,n=a.md||void 0,a.mgf1&&a.mgf1.md&&(s=a.mgf1.md));var i=Math.ceil(e.n.bitLength()/8);if(t.length!==i){var b=new Error("RSAES-OAEP encoded message length is invalid.");throw b.length=t.length,b.expectedLength=i,b}if(n===void 0?n=Gt.md.sha1.create():n.start(),s||(s=n),i<2*n.digestLength+2)throw new Error("RSAES-OAEP key is too short for the hash function.");r||(r=""),n.update(r,"raw");for(var o=n.digest().getBytes(),c=t.charAt(0),l=t.substring(1,n.digestLength+1),u=t.substring(1+n.digestLength),p=il(u,n.digestLength,s),f=Gt.util.xorBytes(l,p,l.length),x=il(f,i-n.digestLength-1,s),m=Gt.util.xorBytes(u,x,u.length),y=m.substring(0,n.digestLength),b=c!=="\0",S=0;S<n.digestLength;++S)b|=o.charAt(S)!==y.charAt(S);for(var B=1,_=n.digestLength,P=n.digestLength;P<m.length;P++){var U=m.charCodeAt(P),k=U&1^1,H=B?65534:0;b|=U&H,B=B&k,_+=B}if(b||m.charCodeAt(_)!==1)throw new Error("Invalid RSAES-OAEP padding.");return m.substring(_+1)};function il(e,t,a){a||(a=Gt.md.sha1.create());for(var r="",n=Math.ceil(t/a.digestLength),s=0;s<n;++s){var i=String.fromCharCode(s>>24&255,s>>16&255,s>>8&255,s&255);a.start(),a.update(e+i),r+=a.digest().getBytes()}return r.substring(0,t)}var cr=te;(function(){if(cr.prime){cr.prime;return}var e=cr.prime=cr.prime||{},t=cr.jsbn.BigInteger,a=[6,4,2,4,2,4,6,2],r=new t(null);r.fromInt(30);var n=function(p,f){return p|f};e.generateProbablePrime=function(p,f,x){typeof f=="function"&&(x=f,f={}),f=f||{};var m=f.algorithm||"PRIMEINC";typeof m=="string"&&(m={name:m}),m.options=m.options||{};var y=f.prng||cr.random,b={nextBytes:function(S){for(var B=y.getBytesSync(S.length),_=0;_<S.length;++_)S[_]=B.charCodeAt(_)}};if(m.name==="PRIMEINC")return s(p,b,m.options,x);throw new Error("Invalid prime generation algorithm: "+m.name)};function s(p,f,x,m){return"workers"in x?c(p,f,x,m):i(p,f,x,m)}function i(p,f,x,m){var y=l(p,f),b=0,S=u(y.bitLength());"millerRabinTests"in x&&(S=x.millerRabinTests);var B=10;"maxBlockTime"in x&&(B=x.maxBlockTime),o(y,p,f,b,S,B,m)}function o(p,f,x,m,y,b,S){var B=+new Date;do{if(p.bitLength()>f&&(p=l(f,x)),p.isProbablePrime(y))return S(null,p);p.dAddOffset(a[m++%8],0)}while(b<0||+new Date-B<b);cr.util.setImmediate(function(){o(p,f,x,m,y,b,S)})}function c(p,f,x,m){if(typeof Worker>"u")return i(p,f,x,m);var y=l(p,f),b=x.workers,S=x.workLoad||100,B=S*30/8,_=x.workerScript||"forge/prime.worker.js";if(b===-1)return cr.util.estimateCores(function(U,k){U&&(k=2),b=k-1,P()});P();function P(){b=Math.max(1,b);for(var U=[],k=0;k<b;++k)U[k]=new Worker(_);for(var k=0;k<b;++k)U[k].addEventListener("message",G);var H=!1;function G(Z){if(!H){var ce=Z.data;if(ce.found){for(var pe=0;pe<U.length;++pe)U[pe].terminate();return H=!0,m(null,new t(ce.prime,16))}y.bitLength()>p&&(y=l(p,f));var he=y.toString(16);Z.target.postMessage({hex:he,workLoad:S}),y.dAddOffset(B,0)}}}}function l(p,f){var x=new t(p,f),m=p-1;return x.testBit(m)||x.bitwiseTo(t.ONE.shiftLeft(m),n,x),x.dAddOffset(31-x.mod(r).byteValue(),0),x}function u(p){return p<=100?27:p<=150?18:p<=200?15:p<=250?12:p<=300?9:p<=350?8:p<=400?7:p<=500?6:p<=600?5:p<=800?4:p<=1250?3:2}})();var Q=te;if(typeof ve>"u")var ve=Q.jsbn.BigInteger;var Gu=Q.util.isNodejs?Lr:null,I=Q.asn1,Lt=Q.util;Q.pki=Q.pki||{},Q.pki.rsa=Q.rsa=Q.rsa||{};var J=Q.pki,HE=[6,4,2,4,2,4,6,2],$E={name:"PrivateKeyInfo",tagClass:I.Class.UNIVERSAL,type:I.Type.SEQUENCE,constructed:!0,value:[{name:"PrivateKeyInfo.version",tagClass:I.Class.UNIVERSAL,type:I.Type.INTEGER,constructed:!1,capture:"privateKeyVersion"},{name:"PrivateKeyInfo.privateKeyAlgorithm",tagClass:I.Class.UNIVERSAL,type:I.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:I.Class.UNIVERSAL,type:I.Type.OID,constructed:!1,capture:"privateKeyOid"}]},{name:"PrivateKeyInfo",tagClass:I.Class.UNIVERSAL,type:I.Type.OCTETSTRING,constructed:!1,capture:"privateKey"}]},GE={name:"RSAPrivateKey",tagClass:I.Class.UNIVERSAL,type:I.Type.SEQUENCE,constructed:!0,value:[{name:"RSAPrivateKey.version",tagClass:I.Class.UNIVERSAL,type:I.Type.INTEGER,constructed:!1,capture:"privateKeyVersion"},{name:"RSAPrivateKey.modulus",tagClass:I.Class.UNIVERSAL,type:I.Type.INTEGER,constructed:!1,capture:"privateKeyModulus"},{name:"RSAPrivateKey.publicExponent",tagClass:I.Class.UNIVERSAL,type:I.Type.INTEGER,constructed:!1,capture:"privateKeyPublicExponent"},{name:"RSAPrivateKey.privateExponent",tagClass:I.Class.UNIVERSAL,type:I.Type.INTEGER,constructed:!1,capture:"privateKeyPrivateExponent"},{name:"RSAPrivateKey.prime1",tagClass:I.Class.UNIVERSAL,type:I.Type.INTEGER,constructed:!1,capture:"privateKeyPrime1"},{name:"RSAPrivateKey.prime2",tagClass:I.Class.UNIVERSAL,type:I.Type.INTEGER,constructed:!1,capture:"privateKeyPrime2"},{name:"RSAPrivateKey.exponent1",tagClass:I.Class.UNIVERSAL,type:I.Type.INTEGER,constructed:!1,capture:"privateKeyExponent1"},{name:"RSAPrivateKey.exponent2",tagClass:I.Class.UNIVERSAL,type:I.Type.INTEGER,constructed:!1,capture:"privateKeyExponent2"},{name:"RSAPrivateKey.coefficient",tagClass:I.Class.UNIVERSAL,type:I.Type.INTEGER,constructed:!1,capture:"privateKeyCoefficient"}]},QE={name:"RSAPublicKey",tagClass:I.Class.UNIVERSAL,type:I.Type.SEQUENCE,constructed:!0,value:[{name:"RSAPublicKey.modulus",tagClass:I.Class.UNIVERSAL,type:I.Type.INTEGER,constructed:!1,capture:"publicKeyModulus"},{name:"RSAPublicKey.exponent",tagClass:I.Class.UNIVERSAL,type:I.Type.INTEGER,constructed:!1,capture:"publicKeyExponent"}]},WE=Q.pki.rsa.publicKeyValidator={name:"SubjectPublicKeyInfo",tagClass:I.Class.UNIVERSAL,type:I.Type.SEQUENCE,constructed:!0,captureAsn1:"subjectPublicKeyInfo",value:[{name:"SubjectPublicKeyInfo.AlgorithmIdentifier",tagClass:I.Class.UNIVERSAL,type:I.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:I.Class.UNIVERSAL,type:I.Type.OID,constructed:!1,capture:"publicKeyOid"}]},{name:"SubjectPublicKeyInfo.subjectPublicKey",tagClass:I.Class.UNIVERSAL,type:I.Type.BITSTRING,constructed:!1,value:[{name:"SubjectPublicKeyInfo.subjectPublicKey.RSAPublicKey",tagClass:I.Class.UNIVERSAL,type:I.Type.SEQUENCE,constructed:!0,optional:!0,captureAsn1:"rsaPublicKey"}]}]},YE={name:"DigestInfo",tagClass:I.Class.UNIVERSAL,type:I.Type.SEQUENCE,constructed:!0,value:[{name:"DigestInfo.DigestAlgorithm",tagClass:I.Class.UNIVERSAL,type:I.Type.SEQUENCE,constructed:!0,value:[{name:"DigestInfo.DigestAlgorithm.algorithmIdentifier",tagClass:I.Class.UNIVERSAL,type:I.Type.OID,constructed:!1,capture:"algorithmIdentifier"},{name:"DigestInfo.DigestAlgorithm.parameters",tagClass:I.Class.UNIVERSAL,type:I.Type.NULL,capture:"parameters",optional:!0,constructed:!1}]},{name:"DigestInfo.digest",tagClass:I.Class.UNIVERSAL,type:I.Type.OCTETSTRING,constructed:!1,capture:"digest"}]},XE=function(e){var t;if(e.algorithm in J.oids)t=J.oids[e.algorithm];else{var a=new Error("Unknown message digest algorithm.");throw a.algorithm=e.algorithm,a}var r=I.oidToDer(t).getBytes(),n=I.create(I.Class.UNIVERSAL,I.Type.SEQUENCE,!0,[]),s=I.create(I.Class.UNIVERSAL,I.Type.SEQUENCE,!0,[]);s.value.push(I.create(I.Class.UNIVERSAL,I.Type.OID,!1,r)),s.value.push(I.create(I.Class.UNIVERSAL,I.Type.NULL,!1,""));var i=I.create(I.Class.UNIVERSAL,I.Type.OCTETSTRING,!1,e.digest().getBytes());return n.value.push(s),n.value.push(i),I.toDer(n).getBytes()},p0=function(e,t,a){if(a)return e.modPow(t.e,t.n);if(!t.p||!t.q)return e.modPow(t.d,t.n);t.dP||(t.dP=t.d.mod(t.p.subtract(ve.ONE))),t.dQ||(t.dQ=t.d.mod(t.q.subtract(ve.ONE))),t.qInv||(t.qInv=t.q.modInverse(t.p));var r;do r=new ve(Q.util.bytesToHex(Q.random.getBytes(t.n.bitLength()/8)),16);while(r.compareTo(t.n)>=0||!r.gcd(t.n).equals(ve.ONE));e=e.multiply(r.modPow(t.e,t.n)).mod(t.n);for(var n=e.mod(t.p).modPow(t.dP,t.p),s=e.mod(t.q).modPow(t.dQ,t.q);n.compareTo(s)<0;)n=n.add(t.p);var i=n.subtract(s).multiply(t.qInv).mod(t.p).multiply(t.q).add(s);return i=i.multiply(r.modInverse(t.n)).mod(t.n),i};J.rsa.encrypt=function(e,t,a){var r=a,n,s=Math.ceil(t.n.bitLength()/8);a!==!1&&a!==!0?(r=a===2,n=d0(e,t,a)):(n=Q.util.createBuffer(),n.putBytes(e));for(var i=new ve(n.toHex(),16),o=p0(i,t,r),c=o.toString(16),l=Q.util.createBuffer(),u=s-Math.ceil(c.length/2);u>0;)l.putByte(0),--u;return l.putBytes(Q.util.hexToBytes(c)),l.getBytes()},J.rsa.decrypt=function(e,t,a,r){var n=Math.ceil(t.n.bitLength()/8);if(e.length!==n){var s=new Error("Encrypted message length is invalid.");throw s.length=e.length,s.expected=n,s}var i=new ve(Q.util.createBuffer(e).toHex(),16);if(i.compareTo(t.n)>=0)throw new Error("Encrypted message is invalid.");for(var o=p0(i,t,a),c=o.toString(16),l=Q.util.createBuffer(),u=n-Math.ceil(c.length/2);u>0;)l.putByte(0),--u;return l.putBytes(Q.util.hexToBytes(c)),r!==!1?sl(l.getBytes(),t,a):l.getBytes()},J.rsa.createKeyPairGenerationState=function(e,t,a){typeof e=="string"&&(e=parseInt(e,10)),e=e||2048,a=a||{};var r=a.prng||Q.random,n={nextBytes:function(o){for(var c=r.getBytesSync(o.length),l=0;l<o.length;++l)o[l]=c.charCodeAt(l)}},s=a.algorithm||"PRIMEINC",i;if(s==="PRIMEINC")i={algorithm:s,state:0,bits:e,rng:n,eInt:t||65537,e:new ve(null),p:null,q:null,qBits:e>>1,pBits:e-(e>>1),pqState:0,num:null,keys:null},i.e.fromInt(i.eInt);else throw new Error("Invalid key generation algorithm: "+s);return i},J.rsa.stepKeyPairGenerationState=function(e,t){"algorithm"in e||(e.algorithm="PRIMEINC");var a=new ve(null);a.fromInt(30);for(var r=0,n=function(p,f){return p|f},s=+new Date,i,o=0;e.keys===null&&(t<=0||o<t);){if(e.state===0){var c=e.p===null?e.pBits:e.qBits,l=c-1;e.pqState===0?(e.num=new ve(c,e.rng),e.num.testBit(l)||e.num.bitwiseTo(ve.ONE.shiftLeft(l),n,e.num),e.num.dAddOffset(31-e.num.mod(a).byteValue(),0),r=0,++e.pqState):e.pqState===1?e.num.bitLength()>c?e.pqState=0:e.num.isProbablePrime(ZE(e.num.bitLength()))?++e.pqState:e.num.dAddOffset(HE[r++%8],0):e.pqState===2?e.pqState=e.num.subtract(ve.ONE).gcd(e.e).compareTo(ve.ONE)===0?3:0:e.pqState===3&&(e.pqState=0,e.p===null?e.p=e.num:e.q=e.num,e.p!==null&&e.q!==null&&++e.state,e.num=null)}else if(e.state===1)e.p.compareTo(e.q)<0&&(e.num=e.p,e.p=e.q,e.q=e.num),++e.state;else if(e.state===2)e.p1=e.p.subtract(ve.ONE),e.q1=e.q.subtract(ve.ONE),e.phi=e.p1.multiply(e.q1),++e.state;else if(e.state===3)e.phi.gcd(e.e).compareTo(ve.ONE)===0?++e.state:(e.p=null,e.q=null,e.state=0);else if(e.state===4)e.n=e.p.multiply(e.q),e.n.bitLength()===e.bits?++e.state:(e.q=null,e.state=0);else if(e.state===5){var u=e.e.modInverse(e.phi);e.keys={privateKey:J.rsa.setPrivateKey(e.n,e.e,u,e.p,e.q,u.mod(e.p1),u.mod(e.q1),e.q.modInverse(e.p)),publicKey:J.rsa.setPublicKey(e.n,e.e)}}i=+new Date,o+=i-s,s=i}return e.keys!==null},J.rsa.generateKeyPair=function(e,t,a,r){if(arguments.length===1?typeof e=="object"?(a=e,e=void 0):typeof e=="function"&&(r=e,e=void 0):arguments.length===2?typeof e=="number"?typeof t=="function"?(r=t,t=void 0):typeof t!="number"&&(a=t,t=void 0):(a=e,r=t,e=void 0,t=void 0):arguments.length===3&&(typeof t=="number"?typeof a=="function"&&(r=a,a=void 0):(r=a,a=t,t=void 0)),a=a||{},e===void 0&&(e=a.bits||2048),t===void 0&&(t=a.e||65537),!Q.options.usePureJavaScript&&!a.prng&&e>=256&&e<=16384&&(t===65537||t===3)){if(r){if(f0("generateKeyPair"))return Gu.generateKeyPair("rsa",{modulusLength:e,publicExponent:t,publicKeyEncoding:{type:"spki",format:"pem"},privateKeyEncoding:{type:"pkcs8",format:"pem"}},function(o,c,l){if(o)return r(o);r(null,{privateKey:J.privateKeyFromPem(l),publicKey:J.publicKeyFromPem(c)})});if(m0("generateKey")&&m0("exportKey"))return Lt.globalScope.crypto.subtle.generateKey({name:"RSASSA-PKCS1-v1_5",modulusLength:e,publicExponent:v0(t),hash:{name:"SHA-256"}},!0,["sign","verify"]).then(function(o){return Lt.globalScope.crypto.subtle.exportKey("pkcs8",o.privateKey)}).then(void 0,function(o){r(o)}).then(function(o){if(o){var c=J.privateKeyFromAsn1(I.fromDer(Q.util.createBuffer(o)));r(null,{privateKey:c,publicKey:J.setRsaPublicKey(c.n,c.e)})}});if(h0("generateKey")&&h0("exportKey")){var n=Lt.globalScope.msCrypto.subtle.generateKey({name:"RSASSA-PKCS1-v1_5",modulusLength:e,publicExponent:v0(t),hash:{name:"SHA-256"}},!0,["sign","verify"]);n.oncomplete=function(o){var c=o.target.result,l=Lt.globalScope.msCrypto.subtle.exportKey("pkcs8",c.privateKey);l.oncomplete=function(u){var p=u.target.result,f=J.privateKeyFromAsn1(I.fromDer(Q.util.createBuffer(p)));r(null,{privateKey:f,publicKey:J.setRsaPublicKey(f.n,f.e)})},l.onerror=function(u){r(u)}},n.onerror=function(o){r(o)};return}}else if(f0("generateKeyPairSync")){var s=Gu.generateKeyPairSync("rsa",{modulusLength:e,publicExponent:t,publicKeyEncoding:{type:"spki",format:"pem"},privateKeyEncoding:{type:"pkcs8",format:"pem"}});return{privateKey:J.privateKeyFromPem(s.privateKey),publicKey:J.publicKeyFromPem(s.publicKey)}}}var i=J.rsa.createKeyPairGenerationState(e,t,a);if(!r)return J.rsa.stepKeyPairGenerationState(i,0),i.keys;JE(i,a,r)},J.setRsaPublicKey=J.rsa.setPublicKey=function(e,t){var a={n:e,e:t};return a.encrypt=function(r,n,s){if(typeof n=="string"?n=n.toUpperCase():n===void 0&&(n="RSAES-PKCS1-V1_5"),n==="RSAES-PKCS1-V1_5")n={encode:function(o,c,l){return d0(o,c,2).getBytes()}};else if(n==="RSA-OAEP"||n==="RSAES-OAEP")n={encode:function(o,c){return Q.pkcs1.encode_rsa_oaep(c,o,s)}};else if(["RAW","NONE","NULL",null].indexOf(n)!==-1)n={encode:function(o){return o}};else if(typeof n=="string")throw new Error('Unsupported encryption scheme: "'+n+'".');var i=n.encode(r,a,!0);return J.rsa.encrypt(i,a,!0)},a.verify=function(r,n,s,i){typeof s=="string"?s=s.toUpperCase():s===void 0&&(s="RSASSA-PKCS1-V1_5"),i===void 0&&(i={_parseAllDigestBytes:!0,_skipPaddingChecks:!1}),"_parseAllDigestBytes"in i||(i._parseAllDigestBytes=!0),"_skipPaddingChecks"in i||(i._skipPaddingChecks=!1),s==="RSASSA-PKCS1-V1_5"?s={verify:function(c,l){l=sl(l,a,!0,void 0,i);var u=I.fromDer(l,{parseAllBytes:i._parseAllDigestBytes}),p={},f=[];if(!I.validate(u,YE,p,f)||u.value.length!==2){var x=new Error("ASN.1 object does not contain a valid RSASSA-PKCS1-v1_5 DigestInfo value.");throw x.errors=f,x}var m=I.derToOid(p.algorithmIdentifier);if(!(m===Q.oids.md2||m===Q.oids.md5||m===Q.oids.sha1||m===Q.oids.sha224||m===Q.oids.sha256||m===Q.oids.sha384||m===Q.oids.sha512||m===Q.oids["sha512-224"]||m===Q.oids["sha512-256"])){var x=new Error("Unknown RSASSA-PKCS1-v1_5 DigestAlgorithm identifier.");throw x.oid=m,x}if((m===Q.oids.md2||m===Q.oids.md5)&&!("parameters"in p))throw new Error("ASN.1 object does not contain a valid RSASSA-PKCS1-v1_5 DigestInfo value. Missing algorithm identifier NULL parameters.");return c===p.digest}}:(s==="NONE"||s==="NULL"||s===null)&&(s={verify:function(c,l){return l=sl(l,a,!0,void 0,i),c===l}});var o=J.rsa.decrypt(n,a,!0,!1);return s.verify(r,o,a.n.bitLength())},a},J.setRsaPrivateKey=J.rsa.setPrivateKey=function(e,t,a,r,n,s,i,o){var c={n:e,e:t,d:a,p:r,q:n,dP:s,dQ:i,qInv:o};return c.decrypt=function(l,u,p){typeof u=="string"?u=u.toUpperCase():u===void 0&&(u="RSAES-PKCS1-V1_5");var f=J.rsa.decrypt(l,c,!1,!1);if(u==="RSAES-PKCS1-V1_5")u={decode:sl};else if(u==="RSA-OAEP"||u==="RSAES-OAEP")u={decode:function(x,m){return Q.pkcs1.decode_rsa_oaep(m,x,p)}};else if(["RAW","NONE","NULL",null].indexOf(u)!==-1)u={decode:function(x){return x}};else throw new Error('Unsupported encryption scheme: "'+u+'".');return u.decode(f,c,!1)},c.sign=function(l,u){var p=!1;typeof u=="string"&&(u=u.toUpperCase()),u===void 0||u==="RSASSA-PKCS1-V1_5"?(u={encode:XE},p=1):(u==="NONE"||u==="NULL"||u===null)&&(u={encode:function(){return l}},p=1);var f=u.encode(l,c.n.bitLength());return J.rsa.encrypt(f,c,p)},c},J.wrapRsaPrivateKey=function(e){return I.create(I.Class.UNIVERSAL,I.Type.SEQUENCE,!0,[I.create(I.Class.UNIVERSAL,I.Type.INTEGER,!1,I.integerToDer(0).getBytes()),I.create(I.Class.UNIVERSAL,I.Type.SEQUENCE,!0,[I.create(I.Class.UNIVERSAL,I.Type.OID,!1,I.oidToDer(J.oids.rsaEncryption).getBytes()),I.create(I.Class.UNIVERSAL,I.Type.NULL,!1,"")]),I.create(I.Class.UNIVERSAL,I.Type.OCTETSTRING,!1,I.toDer(e).getBytes())])},J.privateKeyFromAsn1=function(e){var t={},a=[];if(I.validate(e,$E,t,a)&&(e=I.fromDer(Q.util.createBuffer(t.privateKey))),t={},a=[],!I.validate(e,GE,t,a)){var r=new Error("Cannot read private key. ASN.1 object does not contain an RSAPrivateKey.");throw r.errors=a,r}var n,s,i,o,c,l,u,p;return n=Q.util.createBuffer(t.privateKeyModulus).toHex(),s=Q.util.createBuffer(t.privateKeyPublicExponent).toHex(),i=Q.util.createBuffer(t.privateKeyPrivateExponent).toHex(),o=Q.util.createBuffer(t.privateKeyPrime1).toHex(),c=Q.util.createBuffer(t.privateKeyPrime2).toHex(),l=Q.util.createBuffer(t.privateKeyExponent1).toHex(),u=Q.util.createBuffer(t.privateKeyExponent2).toHex(),p=Q.util.createBuffer(t.privateKeyCoefficient).toHex(),J.setRsaPrivateKey(new ve(n,16),new ve(s,16),new ve(i,16),new ve(o,16),new ve(c,16),new ve(l,16),new ve(u,16),new ve(p,16))},J.privateKeyToAsn1=J.privateKeyToRSAPrivateKey=function(e){return I.create(I.Class.UNIVERSAL,I.Type.SEQUENCE,!0,[I.create(I.Class.UNIVERSAL,I.Type.INTEGER,!1,I.integerToDer(0).getBytes()),I.create(I.Class.UNIVERSAL,I.Type.INTEGER,!1,Qt(e.n)),I.create(I.Class.UNIVERSAL,I.Type.INTEGER,!1,Qt(e.e)),I.create(I.Class.UNIVERSAL,I.Type.INTEGER,!1,Qt(e.d)),I.create(I.Class.UNIVERSAL,I.Type.INTEGER,!1,Qt(e.p)),I.create(I.Class.UNIVERSAL,I.Type.INTEGER,!1,Qt(e.q)),I.create(I.Class.UNIVERSAL,I.Type.INTEGER,!1,Qt(e.dP)),I.create(I.Class.UNIVERSAL,I.Type.INTEGER,!1,Qt(e.dQ)),I.create(I.Class.UNIVERSAL,I.Type.INTEGER,!1,Qt(e.qInv))])},J.publicKeyFromAsn1=function(e){var t={},a=[];if(I.validate(e,WE,t,a)){var r=I.derToOid(t.publicKeyOid);if(r!==J.oids.rsaEncryption){var n=new Error("Cannot read public key. Unknown OID.");throw n.oid=r,n}e=t.rsaPublicKey}if(a=[],!I.validate(e,QE,t,a)){var n=new Error("Cannot read public key. ASN.1 object does not contain an RSAPublicKey.");throw n.errors=a,n}var s=Q.util.createBuffer(t.publicKeyModulus).toHex(),i=Q.util.createBuffer(t.publicKeyExponent).toHex();return J.setRsaPublicKey(new ve(s,16),new ve(i,16))},J.publicKeyToAsn1=J.publicKeyToSubjectPublicKeyInfo=function(e){return I.create(I.Class.UNIVERSAL,I.Type.SEQUENCE,!0,[I.create(I.Class.UNIVERSAL,I.Type.SEQUENCE,!0,[I.create(I.Class.UNIVERSAL,I.Type.OID,!1,I.oidToDer(J.oids.rsaEncryption).getBytes()),I.create(I.Class.UNIVERSAL,I.Type.NULL,!1,"")]),I.create(I.Class.UNIVERSAL,I.Type.BITSTRING,!1,[J.publicKeyToRSAPublicKey(e)])])},J.publicKeyToRSAPublicKey=function(e){return I.create(I.Class.UNIVERSAL,I.Type.SEQUENCE,!0,[I.create(I.Class.UNIVERSAL,I.Type.INTEGER,!1,Qt(e.n)),I.create(I.Class.UNIVERSAL,I.Type.INTEGER,!1,Qt(e.e))])};function d0(e,t,a){var r=Q.util.createBuffer(),n=Math.ceil(t.n.bitLength()/8);if(e.length>n-11){var s=new Error("Message is too long for PKCS#1 v1.5 padding.");throw s.length=e.length,s.max=n-11,s}r.putByte(0),r.putByte(a);var i=n-3-e.length,o;if(a===0||a===1){o=a===0?0:255;for(var c=0;c<i;++c)r.putByte(o)}else for(;i>0;){for(var l=0,u=Q.random.getBytes(i),c=0;c<i;++c)o=u.charCodeAt(c),o===0?++l:r.putByte(o);i=l}return r.putByte(0),r.putBytes(e),r}function sl(e,t,a,r,n){var s=Math.ceil(t.n.bitLength()/8),i=Q.util.createBuffer(e),o=i.getByte(),c=i.getByte();if(o!==0||a&&c!==0&&c!==1||!a&&c!==2||a&&c===0&&typeof r>"u")throw new Error("Encryption block is invalid.");var l=0;if(c===0){l=s-3-r;for(var u=0;u<l;++u)if(i.getByte()!==0)throw new Error("Encryption block is invalid.")}else if(c===1){for(l=0;i.length()>1;){if(i.getByte()!==255){--i.read;break}++l}if(l<8&&!(n&&n._skipPaddingChecks))throw new Error("Encryption block is invalid.")}else if(c===2){for(l=0;i.length()>1;){if(i.getByte()===0){--i.read;break}++l}if(l<8&&!(n&&n._skipPaddingChecks))throw new Error("Encryption block is invalid.")}var p=i.getByte();if(p!==0||l!==s-3-i.length())throw new Error("Encryption block is invalid.");return i.getBytes()}function JE(e,t,a){typeof t=="function"&&(a=t,t={}),t=t||{};var r={algorithm:{name:t.algorithm||"PRIMEINC",options:{workers:t.workers||2,workLoad:t.workLoad||100,workerScript:t.workerScript}}};"prng"in t&&(r.prng=t.prng),n();function n(){s(e.pBits,function(o,c){if(o)return a(o);if(e.p=c,e.q!==null)return i(o,e.q);s(e.qBits,i)})}function s(o,c){Q.prime.generateProbablePrime(o,r,c)}function i(o,c){if(o)return a(o);if(e.q=c,e.p.compareTo(e.q)<0){var l=e.p;e.p=e.q,e.q=l}if(e.p.subtract(ve.ONE).gcd(e.e).compareTo(ve.ONE)!==0){e.p=null,n();return}if(e.q.subtract(ve.ONE).gcd(e.e).compareTo(ve.ONE)!==0){e.q=null,s(e.qBits,i);return}if(e.p1=e.p.subtract(ve.ONE),e.q1=e.q.subtract(ve.ONE),e.phi=e.p1.multiply(e.q1),e.phi.gcd(e.e).compareTo(ve.ONE)!==0){e.p=e.q=null,n();return}if(e.n=e.p.multiply(e.q),e.n.bitLength()!==e.bits){e.q=null,s(e.qBits,i);return}var u=e.e.modInverse(e.phi);e.keys={privateKey:J.rsa.setPrivateKey(e.n,e.e,u,e.p,e.q,u.mod(e.p1),u.mod(e.q1),e.q.modInverse(e.p)),publicKey:J.rsa.setPublicKey(e.n,e.e)},a(null,e.keys)}}function Qt(e){var t=e.toString(16);t[0]>="8"&&(t="00"+t);var a=Q.util.hexToBytes(t);return a.length>1&&(a.charCodeAt(0)===0&&(a.charCodeAt(1)&128)===0||a.charCodeAt(0)===255&&(a.charCodeAt(1)&128)===128)?a.substr(1):a}function ZE(e){return e<=100?27:e<=150?18:e<=200?15:e<=250?12:e<=300?9:e<=350?8:e<=400?7:e<=500?6:e<=600?5:e<=800?4:e<=1250?3:2}function f0(e){return Q.util.isNodejs&&typeof Gu[e]=="function"}function m0(e){return typeof Lt.globalScope<"u"&&typeof Lt.globalScope.crypto=="object"&&typeof Lt.globalScope.crypto.subtle=="object"&&typeof Lt.globalScope.crypto.subtle[e]=="function"}function h0(e){return typeof Lt.globalScope<"u"&&typeof Lt.globalScope.msCrypto=="object"&&typeof Lt.globalScope.msCrypto.subtle=="object"&&typeof Lt.globalScope.msCrypto.subtle[e]=="function"}function v0(e){for(var t=Q.util.hexToBytes(e.toString(16)),a=new Uint8Array(t.length),r=0;r<t.length;++r)a[r]=t.charCodeAt(r);return a}var z=te;if(typeof eC>"u")var eC=z.jsbn.BigInteger;var R=z.asn1,ee=z.pki=z.pki||{};ee.pbe=z.pbe=z.pbe||{};var Br=ee.oids,tC={name:"EncryptedPrivateKeyInfo",tagClass:R.Class.UNIVERSAL,type:R.Type.SEQUENCE,constructed:!0,value:[{name:"EncryptedPrivateKeyInfo.encryptionAlgorithm",tagClass:R.Class.UNIVERSAL,type:R.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:R.Class.UNIVERSAL,type:R.Type.OID,constructed:!1,capture:"encryptionOid"},{name:"AlgorithmIdentifier.parameters",tagClass:R.Class.UNIVERSAL,type:R.Type.SEQUENCE,constructed:!0,captureAsn1:"encryptionParams"}]},{name:"EncryptedPrivateKeyInfo.encryptedData",tagClass:R.Class.UNIVERSAL,type:R.Type.OCTETSTRING,constructed:!1,capture:"encryptedData"}]},rC={name:"PBES2Algorithms",tagClass:R.Class.UNIVERSAL,type:R.Type.SEQUENCE,constructed:!0,value:[{name:"PBES2Algorithms.keyDerivationFunc",tagClass:R.Class.UNIVERSAL,type:R.Type.SEQUENCE,constructed:!0,value:[{name:"PBES2Algorithms.keyDerivationFunc.oid",tagClass:R.Class.UNIVERSAL,type:R.Type.OID,constructed:!1,capture:"kdfOid"},{name:"PBES2Algorithms.params",tagClass:R.Class.UNIVERSAL,type:R.Type.SEQUENCE,constructed:!0,value:[{name:"PBES2Algorithms.params.salt",tagClass:R.Class.UNIVERSAL,type:R.Type.OCTETSTRING,constructed:!1,capture:"kdfSalt"},{name:"PBES2Algorithms.params.iterationCount",tagClass:R.Class.UNIVERSAL,type:R.Type.INTEGER,constructed:!1,capture:"kdfIterationCount"},{name:"PBES2Algorithms.params.keyLength",tagClass:R.Class.UNIVERSAL,type:R.Type.INTEGER,constructed:!1,optional:!0,capture:"keyLength"},{name:"PBES2Algorithms.params.prf",tagClass:R.Class.UNIVERSAL,type:R.Type.SEQUENCE,constructed:!0,optional:!0,value:[{name:"PBES2Algorithms.params.prf.algorithm",tagClass:R.Class.UNIVERSAL,type:R.Type.OID,constructed:!1,capture:"prfOid"}]}]}]},{name:"PBES2Algorithms.encryptionScheme",tagClass:R.Class.UNIVERSAL,type:R.Type.SEQUENCE,constructed:!0,value:[{name:"PBES2Algorithms.encryptionScheme.oid",tagClass:R.Class.UNIVERSAL,type:R.Type.OID,constructed:!1,capture:"encOid"},{name:"PBES2Algorithms.encryptionScheme.iv",tagClass:R.Class.UNIVERSAL,type:R.Type.OCTETSTRING,constructed:!1,capture:"encIv"}]}]},aC={name:"pkcs-12PbeParams",tagClass:R.Class.UNIVERSAL,type:R.Type.SEQUENCE,constructed:!0,value:[{name:"pkcs-12PbeParams.salt",tagClass:R.Class.UNIVERSAL,type:R.Type.OCTETSTRING,constructed:!1,capture:"salt"},{name:"pkcs-12PbeParams.iterations",tagClass:R.Class.UNIVERSAL,type:R.Type.INTEGER,constructed:!1,capture:"iterations"}]};ee.encryptPrivateKeyInfo=function(e,t,a){a=a||{},a.saltSize=a.saltSize||8,a.count=a.count||2048,a.algorithm=a.algorithm||"aes128",a.prfAlgorithm=a.prfAlgorithm||"sha1";var r=z.random.getBytesSync(a.saltSize),n=a.count,s=R.integerToDer(n),i,o,c;if(a.algorithm.indexOf("aes")===0||a.algorithm==="des"){var l,u,p;switch(a.algorithm){case"aes128":i=16,l=16,u=Br["aes128-CBC"],p=z.aes.createEncryptionCipher;break;case"aes192":i=24,l=16,u=Br["aes192-CBC"],p=z.aes.createEncryptionCipher;break;case"aes256":i=32,l=16,u=Br["aes256-CBC"],p=z.aes.createEncryptionCipher;break;case"des":i=8,l=8,u=Br.desCBC,p=z.des.createEncryptionCipher;break;default:var f=new Error("Cannot encrypt private key. Unknown encryption algorithm.");throw f.algorithm=a.algorithm,f}var x="hmacWith"+a.prfAlgorithm.toUpperCase(),m=y0(x),y=z.pkcs5.pbkdf2(t,r,n,i,m),b=z.random.getBytesSync(l),S=p(y);S.start(b),S.update(R.toDer(e)),S.finish(),c=S.output.getBytes();var B=nC(r,s,i,x);o=R.create(R.Class.UNIVERSAL,R.Type.SEQUENCE,!0,[R.create(R.Class.UNIVERSAL,R.Type.OID,!1,R.oidToDer(Br.pkcs5PBES2).getBytes()),R.create(R.Class.UNIVERSAL,R.Type.SEQUENCE,!0,[R.create(R.Class.UNIVERSAL,R.Type.SEQUENCE,!0,[R.create(R.Class.UNIVERSAL,R.Type.OID,!1,R.oidToDer(Br.pkcs5PBKDF2).getBytes()),B]),R.create(R.Class.UNIVERSAL,R.Type.SEQUENCE,!0,[R.create(R.Class.UNIVERSAL,R.Type.OID,!1,R.oidToDer(u).getBytes()),R.create(R.Class.UNIVERSAL,R.Type.OCTETSTRING,!1,b)])])])}else if(a.algorithm==="3des"){i=24;var _=new z.util.ByteBuffer(r),y=ee.pbe.generatePkcs12Key(t,_,1,n,i),b=ee.pbe.generatePkcs12Key(t,_,2,n,i),S=z.des.createEncryptionCipher(y);S.start(b),S.update(R.toDer(e)),S.finish(),c=S.output.getBytes(),o=R.create(R.Class.UNIVERSAL,R.Type.SEQUENCE,!0,[R.create(R.Class.UNIVERSAL,R.Type.OID,!1,R.oidToDer(Br["pbeWithSHAAnd3-KeyTripleDES-CBC"]).getBytes()),R.create(R.Class.UNIVERSAL,R.Type.SEQUENCE,!0,[R.create(R.Class.UNIVERSAL,R.Type.OCTETSTRING,!1,r),R.create(R.Class.UNIVERSAL,R.Type.INTEGER,!1,s.getBytes())])])}else{var f=new Error("Cannot encrypt private key. Unknown encryption algorithm.");throw f.algorithm=a.algorithm,f}var P=R.create(R.Class.UNIVERSAL,R.Type.SEQUENCE,!0,[o,R.create(R.Class.UNIVERSAL,R.Type.OCTETSTRING,!1,c)]);return P},ee.decryptPrivateKeyInfo=function(e,t){var a=null,r={},n=[];if(!R.validate(e,tC,r,n)){var s=new Error("Cannot read encrypted private key. ASN.1 object is not a supported EncryptedPrivateKeyInfo.");throw s.errors=n,s}var i=R.derToOid(r.encryptionOid),o=ee.pbe.getCipher(i,r.encryptionParams,t),c=z.util.createBuffer(r.encryptedData);return o.update(c),o.finish()&&(a=R.fromDer(o.output)),a},ee.encryptedPrivateKeyToPem=function(e,t){var a={type:"ENCRYPTED PRIVATE KEY",body:R.toDer(e).getBytes()};return z.pem.encode(a,{maxline:t})},ee.encryptedPrivateKeyFromPem=function(e){var t=z.pem.decode(e)[0];if(t.type!=="ENCRYPTED PRIVATE KEY"){var a=new Error('Could not convert encrypted private key from PEM; PEM header type is "ENCRYPTED PRIVATE KEY".');throw a.headerType=t.type,a}if(t.procType&&t.procType.type==="ENCRYPTED")throw new Error("Could not convert encrypted private key from PEM; PEM is encrypted.");return R.fromDer(t.body)},ee.encryptRsaPrivateKey=function(e,t,a){if(a=a||{},!a.legacy){var r=ee.wrapRsaPrivateKey(ee.privateKeyToAsn1(e));return r=ee.encryptPrivateKeyInfo(r,t,a),ee.encryptedPrivateKeyToPem(r)}var n,s,i,o;switch(a.algorithm){case"aes128":n="AES-128-CBC",i=16,s=z.random.getBytesSync(16),o=z.aes.createEncryptionCipher;break;case"aes192":n="AES-192-CBC",i=24,s=z.random.getBytesSync(16),o=z.aes.createEncryptionCipher;break;case"aes256":n="AES-256-CBC",i=32,s=z.random.getBytesSync(16),o=z.aes.createEncryptionCipher;break;case"3des":n="DES-EDE3-CBC",i=24,s=z.random.getBytesSync(8),o=z.des.createEncryptionCipher;break;case"des":n="DES-CBC",i=8,s=z.random.getBytesSync(8),o=z.des.createEncryptionCipher;break;default:var c=new Error('Could not encrypt RSA private key; unsupported encryption algorithm "'+a.algorithm+'".');throw c.algorithm=a.algorithm,c}var l=z.pbe.opensslDeriveBytes(t,s.substr(0,8),i),u=o(l);u.start(s),u.update(R.toDer(ee.privateKeyToAsn1(e))),u.finish();var p={type:"RSA PRIVATE KEY",procType:{version:"4",type:"ENCRYPTED"},dekInfo:{algorithm:n,parameters:z.util.bytesToHex(s).toUpperCase()},body:u.output.getBytes()};return z.pem.encode(p)},ee.decryptRsaPrivateKey=function(e,t){var a=null,r=z.pem.decode(e)[0];if(r.type!=="ENCRYPTED PRIVATE KEY"&&r.type!=="PRIVATE KEY"&&r.type!=="RSA PRIVATE KEY"){var n=new Error('Could not convert private key from PEM; PEM header type is not "ENCRYPTED PRIVATE KEY", "PRIVATE KEY", or "RSA PRIVATE KEY".');throw n.headerType=n,n}if(r.procType&&r.procType.type==="ENCRYPTED"){var s,i;switch(r.dekInfo.algorithm){case"DES-CBC":s=8,i=z.des.createDecryptionCipher;break;case"DES-EDE3-CBC":s=24,i=z.des.createDecryptionCipher;break;case"AES-128-CBC":s=16,i=z.aes.createDecryptionCipher;break;case"AES-192-CBC":s=24,i=z.aes.createDecryptionCipher;break;case"AES-256-CBC":s=32,i=z.aes.createDecryptionCipher;break;case"RC2-40-CBC":s=5,i=function(p){return z.rc2.createDecryptionCipher(p,40)};break;case"RC2-64-CBC":s=8,i=function(p){return z.rc2.createDecryptionCipher(p,64)};break;case"RC2-128-CBC":s=16,i=function(p){return z.rc2.createDecryptionCipher(p,128)};break;default:var n=new Error('Could not decrypt private key; unsupported encryption algorithm "'+r.dekInfo.algorithm+'".');throw n.algorithm=r.dekInfo.algorithm,n}var o=z.util.hexToBytes(r.dekInfo.parameters),c=z.pbe.opensslDeriveBytes(t,o.substr(0,8),s),l=i(c);if(l.start(o),l.update(z.util.createBuffer(r.body)),l.finish())a=l.output.getBytes();else return a}else a=r.body;return r.type==="ENCRYPTED PRIVATE KEY"?a=ee.decryptPrivateKeyInfo(R.fromDer(a),t):a=R.fromDer(a),a!==null&&(a=ee.privateKeyFromAsn1(a)),a},ee.pbe.generatePkcs12Key=function(e,t,a,r,n,s){var i,o;if(typeof s>"u"||s===null){if(!("sha1"in z.md))throw new Error('"sha1" hash algorithm unavailable.');s=z.md.sha1.create()}var c=s.digestLength,l=s.blockLength,u=new z.util.ByteBuffer,p=new z.util.ByteBuffer;if(e!=null){for(o=0;o<e.length;o++)p.putInt16(e.charCodeAt(o));p.putInt16(0)}var f=p.length(),x=t.length(),m=new z.util.ByteBuffer;m.fillWithByte(a,l);var y=l*Math.ceil(x/l),b=new z.util.ByteBuffer;for(o=0;o<y;o++)b.putByte(t.at(o%x));var S=l*Math.ceil(f/l),B=new z.util.ByteBuffer;for(o=0;o<S;o++)B.putByte(p.at(o%f));var _=b;_.putBuffer(B);for(var P=Math.ceil(n/c),U=1;U<=P;U++){var k=new z.util.ByteBuffer;k.putBytes(m.bytes()),k.putBytes(_.bytes());for(var H=0;H<r;H++)s.start(),s.update(k.getBytes()),k=s.digest();var G=new z.util.ByteBuffer;for(o=0;o<l;o++)G.putByte(k.at(o%c));var Z=Math.ceil(x/l)+Math.ceil(f/l),ce=new z.util.ByteBuffer;for(i=0;i<Z;i++){var pe=new z.util.ByteBuffer(_.getBytes(l)),he=511;for(o=G.length()-1;o>=0;o--)he=he>>8,he+=G.at(o)+pe.at(o),pe.setAt(o,he&255);ce.putBuffer(pe)}_=ce,u.putBuffer(k)}return u.truncate(u.length()-n),u},ee.pbe.getCipher=function(e,t,a){switch(e){case ee.oids.pkcs5PBES2:return ee.pbe.getCipherForPBES2(e,t,a);case ee.oids["pbeWithSHAAnd3-KeyTripleDES-CBC"]:case ee.oids["pbewithSHAAnd40BitRC2-CBC"]:return ee.pbe.getCipherForPKCS12PBE(e,t,a);default:var r=new Error("Cannot read encrypted PBE data block. Unsupported OID.");throw r.oid=e,r.supportedOids=["pkcs5PBES2","pbeWithSHAAnd3-KeyTripleDES-CBC","pbewithSHAAnd40BitRC2-CBC"],r}},ee.pbe.getCipherForPBES2=function(e,t,a){var r={},n=[];if(!R.validate(t,rC,r,n)){var s=new Error("Cannot read password-based-encryption algorithm parameters. ASN.1 object is not a supported EncryptedPrivateKeyInfo.");throw s.errors=n,s}if(e=R.derToOid(r.kdfOid),e!==ee.oids.pkcs5PBKDF2){var s=new Error("Cannot read encrypted private key. Unsupported key derivation function OID.");throw s.oid=e,s.supportedOids=["pkcs5PBKDF2"],s}if(e=R.derToOid(r.encOid),e!==ee.oids["aes128-CBC"]&&e!==ee.oids["aes192-CBC"]&&e!==ee.oids["aes256-CBC"]&&e!==ee.oids["des-EDE3-CBC"]&&e!==ee.oids.desCBC){var s=new Error("Cannot read encrypted private key. Unsupported encryption scheme OID.");throw s.oid=e,s.supportedOids=["aes128-CBC","aes192-CBC","aes256-CBC","des-EDE3-CBC","desCBC"],s}var i=r.kdfSalt,o=z.util.createBuffer(r.kdfIterationCount);o=o.getInt(o.length()<<3);var c,l;switch(ee.oids[e]){case"aes128-CBC":c=16,l=z.aes.createDecryptionCipher;break;case"aes192-CBC":c=24,l=z.aes.createDecryptionCipher;break;case"aes256-CBC":c=32,l=z.aes.createDecryptionCipher;break;case"des-EDE3-CBC":c=24,l=z.des.createDecryptionCipher;break;case"desCBC":c=8,l=z.des.createDecryptionCipher;break}var u=x0(r.prfOid),p=z.pkcs5.pbkdf2(a,i,o,c,u),f=r.encIv,x=l(p);return x.start(f),x},ee.pbe.getCipherForPKCS12PBE=function(e,t,a){var r={},n=[];if(!R.validate(t,aC,r,n)){var s=new Error("Cannot read password-based-encryption algorithm parameters. ASN.1 object is not a supported EncryptedPrivateKeyInfo.");throw s.errors=n,s}var i=z.util.createBuffer(r.salt),o=z.util.createBuffer(r.iterations);o=o.getInt(o.length()<<3);var c,l,u;switch(e){case ee.oids["pbeWithSHAAnd3-KeyTripleDES-CBC"]:c=24,l=8,u=z.des.startDecrypting;break;case ee.oids["pbewithSHAAnd40BitRC2-CBC"]:c=5,l=8,u=function(y,b){var S=z.rc2.createDecryptionCipher(y,40);return S.start(b,null),S};break;default:var s=new Error("Cannot read PKCS #12 PBE data block. Unsupported OID.");throw s.oid=e,s}var p=x0(r.prfOid),f=ee.pbe.generatePkcs12Key(a,i,1,o,c,p);p.start();var x=ee.pbe.generatePkcs12Key(a,i,2,o,l,p);return u(f,x)},ee.pbe.opensslDeriveBytes=function(e,t,a,r){if(typeof r>"u"||r===null){if(!("md5"in z.md))throw new Error('"md5" hash algorithm unavailable.');r=z.md.md5.create()}t===null&&(t="");for(var n=[g0(r,e+t)],s=16,i=1;s<a;++i,s+=16)n.push(g0(r,n[i-1]+e+t));return n.join("").substr(0,a)};function g0(e,t){return e.start().update(t).digest().getBytes()}function x0(e){var t;if(!e)t="hmacWithSHA1";else if(t=ee.oids[R.derToOid(e)],!t){var a=new Error("Unsupported PRF OID.");throw a.oid=e,a.supported=["hmacWithSHA1","hmacWithSHA224","hmacWithSHA256","hmacWithSHA384","hmacWithSHA512"],a}return y0(t)}function y0(e){var t=z.md;switch(e){case"hmacWithSHA224":t=z.md.sha512;case"hmacWithSHA1":case"hmacWithSHA256":case"hmacWithSHA384":case"hmacWithSHA512":e=e.substr(8).toLowerCase();break;default:var a=new Error("Unsupported PRF algorithm.");throw a.algorithm=e,a.supported=["hmacWithSHA1","hmacWithSHA224","hmacWithSHA256","hmacWithSHA384","hmacWithSHA512"],a}if(!t||!(e in t))throw new Error("Unknown hash algorithm: "+e);return t[e].create()}function nC(e,t,a,r){var n=R.create(R.Class.UNIVERSAL,R.Type.SEQUENCE,!0,[R.create(R.Class.UNIVERSAL,R.Type.OCTETSTRING,!1,e),R.create(R.Class.UNIVERSAL,R.Type.INTEGER,!1,t.getBytes())]);return r!=="hmacWithSHA1"&&n.value.push(R.create(R.Class.UNIVERSAL,R.Type.INTEGER,!1,z.util.hexToBytes(a.toString(16))),R.create(R.Class.UNIVERSAL,R.Type.SEQUENCE,!0,[R.create(R.Class.UNIVERSAL,R.Type.OID,!1,R.oidToDer(ee.oids[r]).getBytes()),R.create(R.Class.UNIVERSAL,R.Type.NULL,!1,"")])),n}var Qr=te,K=Qr.asn1,Wr=Qr.pkcs7asn1=Qr.pkcs7asn1||{};Qr.pkcs7=Qr.pkcs7||{},Qr.pkcs7.asn1=Wr;var b0={name:"ContentInfo",tagClass:K.Class.UNIVERSAL,type:K.Type.SEQUENCE,constructed:!0,value:[{name:"ContentInfo.ContentType",tagClass:K.Class.UNIVERSAL,type:K.Type.OID,constructed:!1,capture:"contentType"},{name:"ContentInfo.content",tagClass:K.Class.CONTEXT_SPECIFIC,type:0,constructed:!0,optional:!0,captureAsn1:"content"}]};Wr.contentInfoValidator=b0;var E0={name:"EncryptedContentInfo",tagClass:K.Class.UNIVERSAL,type:K.Type.SEQUENCE,constructed:!0,value:[{name:"EncryptedContentInfo.contentType",tagClass:K.Class.UNIVERSAL,type:K.Type.OID,constructed:!1,capture:"contentType"},{name:"EncryptedContentInfo.contentEncryptionAlgorithm",tagClass:K.Class.UNIVERSAL,type:K.Type.SEQUENCE,constructed:!0,value:[{name:"EncryptedContentInfo.contentEncryptionAlgorithm.algorithm",tagClass:K.Class.UNIVERSAL,type:K.Type.OID,constructed:!1,capture:"encAlgorithm"},{name:"EncryptedContentInfo.contentEncryptionAlgorithm.parameter",tagClass:K.Class.UNIVERSAL,captureAsn1:"encParameter"}]},{name:"EncryptedContentInfo.encryptedContent",tagClass:K.Class.CONTEXT_SPECIFIC,type:0,capture:"encryptedContent",captureAsn1:"encryptedContentAsn1"}]};Wr.envelopedDataValidator={name:"EnvelopedData",tagClass:K.Class.UNIVERSAL,type:K.Type.SEQUENCE,constructed:!0,value:[{name:"EnvelopedData.Version",tagClass:K.Class.UNIVERSAL,type:K.Type.INTEGER,constructed:!1,capture:"version"},{name:"EnvelopedData.RecipientInfos",tagClass:K.Class.UNIVERSAL,type:K.Type.SET,constructed:!0,captureAsn1:"recipientInfos"}].concat(E0)},Wr.encryptedDataValidator={name:"EncryptedData",tagClass:K.Class.UNIVERSAL,type:K.Type.SEQUENCE,constructed:!0,value:[{name:"EncryptedData.Version",tagClass:K.Class.UNIVERSAL,type:K.Type.INTEGER,constructed:!1,capture:"version"}].concat(E0)};var iC={name:"SignerInfo",tagClass:K.Class.UNIVERSAL,type:K.Type.SEQUENCE,constructed:!0,value:[{name:"SignerInfo.version",tagClass:K.Class.UNIVERSAL,type:K.Type.INTEGER,constructed:!1},{name:"SignerInfo.issuerAndSerialNumber",tagClass:K.Class.UNIVERSAL,type:K.Type.SEQUENCE,constructed:!0,value:[{name:"SignerInfo.issuerAndSerialNumber.issuer",tagClass:K.Class.UNIVERSAL,type:K.Type.SEQUENCE,constructed:!0,captureAsn1:"issuer"},{name:"SignerInfo.issuerAndSerialNumber.serialNumber",tagClass:K.Class.UNIVERSAL,type:K.Type.INTEGER,constructed:!1,capture:"serial"}]},{name:"SignerInfo.digestAlgorithm",tagClass:K.Class.UNIVERSAL,type:K.Type.SEQUENCE,constructed:!0,value:[{name:"SignerInfo.digestAlgorithm.algorithm",tagClass:K.Class.UNIVERSAL,type:K.Type.OID,constructed:!1,capture:"digestAlgorithm"},{name:"SignerInfo.digestAlgorithm.parameter",tagClass:K.Class.UNIVERSAL,constructed:!1,captureAsn1:"digestParameter",optional:!0}]},{name:"SignerInfo.authenticatedAttributes",tagClass:K.Class.CONTEXT_SPECIFIC,type:0,constructed:!0,optional:!0,capture:"authenticatedAttributes"},{name:"SignerInfo.digestEncryptionAlgorithm",tagClass:K.Class.UNIVERSAL,type:K.Type.SEQUENCE,constructed:!0,capture:"signatureAlgorithm"},{name:"SignerInfo.encryptedDigest",tagClass:K.Class.UNIVERSAL,type:K.Type.OCTETSTRING,constructed:!1,capture:"signature"},{name:"SignerInfo.unauthenticatedAttributes",tagClass:K.Class.CONTEXT_SPECIFIC,type:1,constructed:!0,optional:!0,capture:"unauthenticatedAttributes"}]};Wr.signedDataValidator={name:"SignedData",tagClass:K.Class.UNIVERSAL,type:K.Type.SEQUENCE,constructed:!0,value:[{name:"SignedData.Version",tagClass:K.Class.UNIVERSAL,type:K.Type.INTEGER,constructed:!1,capture:"version"},{name:"SignedData.DigestAlgorithms",tagClass:K.Class.UNIVERSAL,type:K.Type.SET,constructed:!0,captureAsn1:"digestAlgorithms"},b0,{name:"SignedData.Certificates",tagClass:K.Class.CONTEXT_SPECIFIC,type:0,optional:!0,captureAsn1:"certificates"},{name:"SignedData.CertificateRevocationLists",tagClass:K.Class.CONTEXT_SPECIFIC,type:1,optional:!0,captureAsn1:"crls"},{name:"SignedData.SignerInfos",tagClass:K.Class.UNIVERSAL,type:K.Type.SET,capture:"signerInfos",optional:!0,value:[iC]}]},Wr.recipientInfoValidator={name:"RecipientInfo",tagClass:K.Class.UNIVERSAL,type:K.Type.SEQUENCE,constructed:!0,value:[{name:"RecipientInfo.version",tagClass:K.Class.UNIVERSAL,type:K.Type.INTEGER,constructed:!1,capture:"version"},{name:"RecipientInfo.issuerAndSerial",tagClass:K.Class.UNIVERSAL,type:K.Type.SEQUENCE,constructed:!0,value:[{name:"RecipientInfo.issuerAndSerial.issuer",tagClass:K.Class.UNIVERSAL,type:K.Type.SEQUENCE,constructed:!0,captureAsn1:"issuer"},{name:"RecipientInfo.issuerAndSerial.serialNumber",tagClass:K.Class.UNIVERSAL,type:K.Type.INTEGER,constructed:!1,capture:"serial"}]},{name:"RecipientInfo.keyEncryptionAlgorithm",tagClass:K.Class.UNIVERSAL,type:K.Type.SEQUENCE,constructed:!0,value:[{name:"RecipientInfo.keyEncryptionAlgorithm.algorithm",tagClass:K.Class.UNIVERSAL,type:K.Type.OID,constructed:!1,capture:"encAlgorithm"},{name:"RecipientInfo.keyEncryptionAlgorithm.parameter",tagClass:K.Class.UNIVERSAL,constructed:!1,captureAsn1:"encParameter",optional:!0}]},{name:"RecipientInfo.encryptedKey",tagClass:K.Class.UNIVERSAL,type:K.Type.OCTETSTRING,constructed:!1,capture:"encKey"}]};var _r=te;_r.mgf=_r.mgf||{};var sC=_r.mgf.mgf1=_r.mgf1=_r.mgf1||{};sC.create=function(e){var t={generate:function(a,r){for(var n=new _r.util.ByteBuffer,s=Math.ceil(r/e.digestLength),i=0;i<s;i++){var o=new _r.util.ByteBuffer;o.putInt32(i),e.start(),e.update(a+o.getBytes()),n.putBuffer(e.digest())}return n.truncate(n.length()-r),n.getBytes()}};return t};var ol=te;ol.mgf=ol.mgf||{},ol.mgf.mgf1=ol.mgf1;var Rr=te,oC=Rr.pss=Rr.pss||{};oC.create=function(e){arguments.length===3&&(e={md:arguments[0],mgf:arguments[1],saltLength:arguments[2]});var t=e.md,a=e.mgf,r=t.digestLength,n=e.salt||null;typeof n=="string"&&(n=Rr.util.createBuffer(n));var s;if("saltLength"in e)s=e.saltLength;else if(n!==null)s=n.length();else throw new Error("Salt length not specified or specific salt not given.");if(n!==null&&n.length()!==s)throw new Error("Given salt length does not match length of given salt.");var i=e.prng||Rr.random,o={};return o.encode=function(c,l){var u,p=l-1,f=Math.ceil(p/8),x=c.digest().getBytes();if(f<r+s+2)throw new Error("Message is too long to encrypt.");var m;n===null?m=i.getBytesSync(s):m=n.bytes();var y=new Rr.util.ByteBuffer;y.fillWithByte(0,8),y.putBytes(x),y.putBytes(m),t.start(),t.update(y.getBytes());var b=t.digest().getBytes(),S=new Rr.util.ByteBuffer;S.fillWithByte(0,f-s-r-2),S.putByte(1),S.putBytes(m);var B=S.getBytes(),_=f-r-1,P=a.generate(b,_),U="";for(u=0;u<_;u++)U+=String.fromCharCode(B.charCodeAt(u)^P.charCodeAt(u));var k=65280>>8*f-p&255;return U=String.fromCharCode(U.charCodeAt(0)&~k)+U.substr(1),U+b+"\xBC"},o.verify=function(c,l,u){var p,f=u-1,x=Math.ceil(f/8);if(l=l.substr(-x),x<r+s+2)throw new Error("Inconsistent parameters to PSS signature verification.");if(l.charCodeAt(x-1)!==188)throw new Error("Encoded message does not end in 0xBC.");var m=x-r-1,y=l.substr(0,m),b=l.substr(m,r),S=65280>>8*x-f&255;if((y.charCodeAt(0)&S)!==0)throw new Error("Bits beyond keysize not zero as expected.");var B=a.generate(b,m),_="";for(p=0;p<m;p++)_+=String.fromCharCode(y.charCodeAt(p)^B.charCodeAt(p));_=String.fromCharCode(_.charCodeAt(0)&~S)+_.substr(1);var P=x-r-s-2;for(p=0;p<P;p++)if(_.charCodeAt(p)!==0)throw new Error("Leftmost octets not zero as expected");if(_.charCodeAt(P)!==1)throw new Error("Inconsistent PSS signature, 0x01 marker not found");var U=_.substr(-s),k=new Rr.util.ByteBuffer;k.fillWithByte(0,8),k.putBytes(c),k.putBytes(U),t.start(),t.update(k.getBytes());var H=t.digest().getBytes();return b===H},o};var W=te,h=W.asn1,O=W.pki=W.pki||{},me=O.oids,De={};De.CN=me.commonName,De.commonName="CN",De.C=me.countryName,De.countryName="C",De.L=me.localityName,De.localityName="L",De.ST=me.stateOrProvinceName,De.stateOrProvinceName="ST",De.O=me.organizationName,De.organizationName="O",De.OU=me.organizationalUnitName,De.organizationalUnitName="OU",De.E=me.emailAddress,De.emailAddress="E";var C0=W.pki.rsa.publicKeyValidator,cC={name:"Certificate",tagClass:h.Class.UNIVERSAL,type:h.Type.SEQUENCE,constructed:!0,value:[{name:"Certificate.TBSCertificate",tagClass:h.Class.UNIVERSAL,type:h.Type.SEQUENCE,constructed:!0,captureAsn1:"tbsCertificate",value:[{name:"Certificate.TBSCertificate.version",tagClass:h.Class.CONTEXT_SPECIFIC,type:0,constructed:!0,optional:!0,value:[{name:"Certificate.TBSCertificate.version.integer",tagClass:h.Class.UNIVERSAL,type:h.Type.INTEGER,constructed:!1,capture:"certVersion"}]},{name:"Certificate.TBSCertificate.serialNumber",tagClass:h.Class.UNIVERSAL,type:h.Type.INTEGER,constructed:!1,capture:"certSerialNumber"},{name:"Certificate.TBSCertificate.signature",tagClass:h.Class.UNIVERSAL,type:h.Type.SEQUENCE,constructed:!0,value:[{name:"Certificate.TBSCertificate.signature.algorithm",tagClass:h.Class.UNIVERSAL,type:h.Type.OID,constructed:!1,capture:"certinfoSignatureOid"},{name:"Certificate.TBSCertificate.signature.parameters",tagClass:h.Class.UNIVERSAL,optional:!0,captureAsn1:"certinfoSignatureParams"}]},{name:"Certificate.TBSCertificate.issuer",tagClass:h.Class.UNIVERSAL,type:h.Type.SEQUENCE,constructed:!0,captureAsn1:"certIssuer"},{name:"Certificate.TBSCertificate.validity",tagClass:h.Class.UNIVERSAL,type:h.Type.SEQUENCE,constructed:!0,value:[{name:"Certificate.TBSCertificate.validity.notBefore (utc)",tagClass:h.Class.UNIVERSAL,type:h.Type.UTCTIME,constructed:!1,optional:!0,capture:"certValidity1UTCTime"},{name:"Certificate.TBSCertificate.validity.notBefore (generalized)",tagClass:h.Class.UNIVERSAL,type:h.Type.GENERALIZEDTIME,constructed:!1,optional:!0,capture:"certValidity2GeneralizedTime"},{name:"Certificate.TBSCertificate.validity.notAfter (utc)",tagClass:h.Class.UNIVERSAL,type:h.Type.UTCTIME,constructed:!1,optional:!0,capture:"certValidity3UTCTime"},{name:"Certificate.TBSCertificate.validity.notAfter (generalized)",tagClass:h.Class.UNIVERSAL,type:h.Type.GENERALIZEDTIME,constructed:!1,optional:!0,capture:"certValidity4GeneralizedTime"}]},{name:"Certificate.TBSCertificate.subject",tagClass:h.Class.UNIVERSAL,type:h.Type.SEQUENCE,constructed:!0,captureAsn1:"certSubject"},C0,{name:"Certificate.TBSCertificate.issuerUniqueID",tagClass:h.Class.CONTEXT_SPECIFIC,type:1,constructed:!0,optional:!0,value:[{name:"Certificate.TBSCertificate.issuerUniqueID.id",tagClass:h.Class.UNIVERSAL,type:h.Type.BITSTRING,constructed:!1,captureBitStringValue:"certIssuerUniqueId"}]},{name:"Certificate.TBSCertificate.subjectUniqueID",tagClass:h.Class.CONTEXT_SPECIFIC,type:2,constructed:!0,optional:!0,value:[{name:"Certificate.TBSCertificate.subjectUniqueID.id",tagClass:h.Class.UNIVERSAL,type:h.Type.BITSTRING,constructed:!1,captureBitStringValue:"certSubjectUniqueId"}]},{name:"Certificate.TBSCertificate.extensions",tagClass:h.Class.CONTEXT_SPECIFIC,type:3,constructed:!0,captureAsn1:"certExtensions",optional:!0}]},{name:"Certificate.signatureAlgorithm",tagClass:h.Class.UNIVERSAL,type:h.Type.SEQUENCE,constructed:!0,value:[{name:"Certificate.signatureAlgorithm.algorithm",tagClass:h.Class.UNIVERSAL,type:h.Type.OID,constructed:!1,capture:"certSignatureOid"},{name:"Certificate.TBSCertificate.signature.parameters",tagClass:h.Class.UNIVERSAL,optional:!0,captureAsn1:"certSignatureParams"}]},{name:"Certificate.signatureValue",tagClass:h.Class.UNIVERSAL,type:h.Type.BITSTRING,constructed:!1,captureBitStringValue:"certSignature"}]},lC={name:"rsapss",tagClass:h.Class.UNIVERSAL,type:h.Type.SEQUENCE,constructed:!0,value:[{name:"rsapss.hashAlgorithm",tagClass:h.Class.CONTEXT_SPECIFIC,type:0,constructed:!0,value:[{name:"rsapss.hashAlgorithm.AlgorithmIdentifier",tagClass:h.Class.UNIVERSAL,type:h.Class.SEQUENCE,constructed:!0,optional:!0,value:[{name:"rsapss.hashAlgorithm.AlgorithmIdentifier.algorithm",tagClass:h.Class.UNIVERSAL,type:h.Type.OID,constructed:!1,capture:"hashOid"}]}]},{name:"rsapss.maskGenAlgorithm",tagClass:h.Class.CONTEXT_SPECIFIC,type:1,constructed:!0,value:[{name:"rsapss.maskGenAlgorithm.AlgorithmIdentifier",tagClass:h.Class.UNIVERSAL,type:h.Class.SEQUENCE,constructed:!0,optional:!0,value:[{name:"rsapss.maskGenAlgorithm.AlgorithmIdentifier.algorithm",tagClass:h.Class.UNIVERSAL,type:h.Type.OID,constructed:!1,capture:"maskGenOid"},{name:"rsapss.maskGenAlgorithm.AlgorithmIdentifier.params",tagClass:h.Class.UNIVERSAL,type:h.Type.SEQUENCE,constructed:!0,value:[{name:"rsapss.maskGenAlgorithm.AlgorithmIdentifier.params.algorithm",tagClass:h.Class.UNIVERSAL,type:h.Type.OID,constructed:!1,capture:"maskGenHashOid"}]}]}]},{name:"rsapss.saltLength",tagClass:h.Class.CONTEXT_SPECIFIC,type:2,optional:!0,value:[{name:"rsapss.saltLength.saltLength",tagClass:h.Class.UNIVERSAL,type:h.Class.INTEGER,constructed:!1,capture:"saltLength"}]},{name:"rsapss.trailerField",tagClass:h.Class.CONTEXT_SPECIFIC,type:3,optional:!0,value:[{name:"rsapss.trailer.trailer",tagClass:h.Class.UNIVERSAL,type:h.Class.INTEGER,constructed:!1,capture:"trailer"}]}]},uC={name:"CertificationRequestInfo",tagClass:h.Class.UNIVERSAL,type:h.Type.SEQUENCE,constructed:!0,captureAsn1:"certificationRequestInfo",value:[{name:"CertificationRequestInfo.integer",tagClass:h.Class.UNIVERSAL,type:h.Type.INTEGER,constructed:!1,capture:"certificationRequestInfoVersion"},{name:"CertificationRequestInfo.subject",tagClass:h.Class.UNIVERSAL,type:h.Type.SEQUENCE,constructed:!0,captureAsn1:"certificationRequestInfoSubject"},C0,{name:"CertificationRequestInfo.attributes",tagClass:h.Class.CONTEXT_SPECIFIC,type:0,constructed:!0,optional:!0,capture:"certificationRequestInfoAttributes",value:[{name:"CertificationRequestInfo.attributes",tagClass:h.Class.UNIVERSAL,type:h.Type.SEQUENCE,constructed:!0,value:[{name:"CertificationRequestInfo.attributes.type",tagClass:h.Class.UNIVERSAL,type:h.Type.OID,constructed:!1},{name:"CertificationRequestInfo.attributes.value",tagClass:h.Class.UNIVERSAL,type:h.Type.SET,constructed:!0}]}]}]},pC={name:"CertificationRequest",tagClass:h.Class.UNIVERSAL,type:h.Type.SEQUENCE,constructed:!0,captureAsn1:"csr",value:[uC,{name:"CertificationRequest.signatureAlgorithm",tagClass:h.Class.UNIVERSAL,type:h.Type.SEQUENCE,constructed:!0,value:[{name:"CertificationRequest.signatureAlgorithm.algorithm",tagClass:h.Class.UNIVERSAL,type:h.Type.OID,constructed:!1,capture:"csrSignatureOid"},{name:"CertificationRequest.signatureAlgorithm.parameters",tagClass:h.Class.UNIVERSAL,optional:!0,captureAsn1:"csrSignatureParams"}]},{name:"CertificationRequest.signature",tagClass:h.Class.UNIVERSAL,type:h.Type.BITSTRING,constructed:!1,captureBitStringValue:"csrSignature"}]};O.RDNAttributesAsArray=function(e,t){for(var a=[],r,n,s,i=0;i<e.value.length;++i){r=e.value[i];for(var o=0;o<r.value.length;++o)s={},n=r.value[o],s.type=h.derToOid(n.value[0].value),s.value=n.value[1].value,s.valueTagClass=n.value[1].type,s.type in me&&(s.name=me[s.type],s.name in De&&(s.shortName=De[s.name])),t&&(t.update(s.type),t.update(s.value)),a.push(s)}return a},O.CRIAttributesAsArray=function(e){for(var t=[],a=0;a<e.length;++a)for(var r=e[a],n=h.derToOid(r.value[0].value),s=r.value[1].value,i=0;i<s.length;++i){var o={};if(o.type=n,o.value=s[i].value,o.valueTagClass=s[i].type,o.type in me&&(o.name=me[o.type],o.name in De&&(o.shortName=De[o.name])),o.type===me.extensionRequest){o.extensions=[];for(var c=0;c<o.value.length;++c)o.extensions.push(O.certificateExtensionFromAsn1(o.value[c]))}t.push(o)}return t};function lr(e,t){typeof t=="string"&&(t={shortName:t});for(var a=null,r,n=0;a===null&&n<e.attributes.length;++n)r=e.attributes[n],(t.type&&t.type===r.type||t.name&&t.name===r.name||t.shortName&&t.shortName===r.shortName)&&(a=r);return a}var cl=function(e,t,a){var r={};if(e!==me["RSASSA-PSS"])return r;a&&(r={hash:{algorithmOid:me.sha1},mgf:{algorithmOid:me.mgf1,hash:{algorithmOid:me.sha1}},saltLength:20});var n={},s=[];if(!h.validate(t,lC,n,s)){var i=new Error("Cannot read RSASSA-PSS parameter block.");throw i.errors=s,i}return n.hashOid!==void 0&&(r.hash=r.hash||{},r.hash.algorithmOid=h.derToOid(n.hashOid)),n.maskGenOid!==void 0&&(r.mgf=r.mgf||{},r.mgf.algorithmOid=h.derToOid(n.maskGenOid),r.mgf.hash=r.mgf.hash||{},r.mgf.hash.algorithmOid=h.derToOid(n.maskGenHashOid)),n.saltLength!==void 0&&(r.saltLength=n.saltLength.charCodeAt(0)),r},ll=function(e){switch(me[e.signatureOid]){case"sha1WithRSAEncryption":case"sha1WithRSASignature":return W.md.sha1.create();case"md5WithRSAEncryption":return W.md.md5.create();case"sha256WithRSAEncryption":return W.md.sha256.create();case"sha384WithRSAEncryption":return W.md.sha384.create();case"sha512WithRSAEncryption":return W.md.sha512.create();case"RSASSA-PSS":return W.md.sha256.create();default:var t=new Error("Could not compute "+e.type+" digest. Unknown signature OID.");throw t.signatureOid=e.signatureOid,t}},S0=function(e){var t=e.certificate,a;switch(t.signatureOid){case me.sha1WithRSAEncryption:case me.sha1WithRSASignature:break;case me["RSASSA-PSS"]:var r,n;if(r=me[t.signatureParameters.mgf.hash.algorithmOid],r===void 0||W.md[r]===void 0){var s=new Error("Unsupported MGF hash function.");throw s.oid=t.signatureParameters.mgf.hash.algorithmOid,s.name=r,s}if(n=me[t.signatureParameters.mgf.algorithmOid],n===void 0||W.mgf[n]===void 0){var s=new Error("Unsupported MGF function.");throw s.oid=t.signatureParameters.mgf.algorithmOid,s.name=n,s}if(n=W.mgf[n].create(W.md[r].create()),r=me[t.signatureParameters.hash.algorithmOid],r===void 0||W.md[r]===void 0){var s=new Error("Unsupported RSASSA-PSS hash function.");throw s.oid=t.signatureParameters.hash.algorithmOid,s.name=r,s}a=W.pss.create(W.md[r].create(),n,t.signatureParameters.saltLength);break}return t.publicKey.verify(e.md.digest().getBytes(),e.signature,a)};O.certificateFromPem=function(e,t,a){var r=W.pem.decode(e)[0];if(r.type!=="CERTIFICATE"&&r.type!=="X509 CERTIFICATE"&&r.type!=="TRUSTED CERTIFICATE"){var n=new Error('Could not convert certificate from PEM; PEM header type is not "CERTIFICATE", "X509 CERTIFICATE", or "TRUSTED CERTIFICATE".');throw n.headerType=r.type,n}if(r.procType&&r.procType.type==="ENCRYPTED")throw new Error("Could not convert certificate from PEM; PEM is encrypted.");var s=h.fromDer(r.body,a);return O.certificateFromAsn1(s,t)},O.certificateToPem=function(e,t){var a={type:"CERTIFICATE",body:h.toDer(O.certificateToAsn1(e)).getBytes()};return W.pem.encode(a,{maxline:t})},O.publicKeyFromPem=function(e){var t=W.pem.decode(e)[0];if(t.type!=="PUBLIC KEY"&&t.type!=="RSA PUBLIC KEY"){var a=new Error('Could not convert public key from PEM; PEM header type is not "PUBLIC KEY" or "RSA PUBLIC KEY".');throw a.headerType=t.type,a}if(t.procType&&t.procType.type==="ENCRYPTED")throw new Error("Could not convert public key from PEM; PEM is encrypted.");var r=h.fromDer(t.body);return O.publicKeyFromAsn1(r)},O.publicKeyToPem=function(e,t){var a={type:"PUBLIC KEY",body:h.toDer(O.publicKeyToAsn1(e)).getBytes()};return W.pem.encode(a,{maxline:t})},O.publicKeyToRSAPublicKeyPem=function(e,t){var a={type:"RSA PUBLIC KEY",body:h.toDer(O.publicKeyToRSAPublicKey(e)).getBytes()};return W.pem.encode(a,{maxline:t})},O.getPublicKeyFingerprint=function(e,t){t=t||{};var a=t.md||W.md.sha1.create(),r=t.type||"RSAPublicKey",n;switch(r){case"RSAPublicKey":n=h.toDer(O.publicKeyToRSAPublicKey(e)).getBytes();break;case"SubjectPublicKeyInfo":n=h.toDer(O.publicKeyToAsn1(e)).getBytes();break;default:throw new Error('Unknown fingerprint type "'+t.type+'".')}a.start(),a.update(n);var s=a.digest();if(t.encoding==="hex"){var i=s.toHex();return t.delimiter?i.match(/.{2}/g).join(t.delimiter):i}else{if(t.encoding==="binary")return s.getBytes();if(t.encoding)throw new Error('Unknown encoding "'+t.encoding+'".')}return s},O.certificationRequestFromPem=function(e,t,a){var r=W.pem.decode(e)[0];if(r.type!=="CERTIFICATE REQUEST"){var n=new Error('Could not convert certification request from PEM; PEM header type is not "CERTIFICATE REQUEST".');throw n.headerType=r.type,n}if(r.procType&&r.procType.type==="ENCRYPTED")throw new Error("Could not convert certification request from PEM; PEM is encrypted.");var s=h.fromDer(r.body,a);return O.certificationRequestFromAsn1(s,t)},O.certificationRequestToPem=function(e,t){var a={type:"CERTIFICATE REQUEST",body:h.toDer(O.certificationRequestToAsn1(e)).getBytes()};return W.pem.encode(a,{maxline:t})},O.createCertificate=function(){var e={};return e.version=2,e.serialNumber="00",e.signatureOid=null,e.signature=null,e.siginfo={},e.siginfo.algorithmOid=null,e.validity={},e.validity.notBefore=new Date,e.validity.notAfter=new Date,e.issuer={},e.issuer.getField=function(t){return lr(e.issuer,t)},e.issuer.addField=function(t){Ut([t]),e.issuer.attributes.push(t)},e.issuer.attributes=[],e.issuer.hash=null,e.subject={},e.subject.getField=function(t){return lr(e.subject,t)},e.subject.addField=function(t){Ut([t]),e.subject.attributes.push(t)},e.subject.attributes=[],e.subject.hash=null,e.extensions=[],e.publicKey=null,e.md=null,e.setSubject=function(t,a){Ut(t),e.subject.attributes=t,delete e.subject.uniqueId,a&&(e.subject.uniqueId=a),e.subject.hash=null},e.setIssuer=function(t,a){Ut(t),e.issuer.attributes=t,delete e.issuer.uniqueId,a&&(e.issuer.uniqueId=a),e.issuer.hash=null},e.setExtensions=function(t){for(var a=0;a<t.length;++a)T0(t[a],{cert:e});e.extensions=t},e.getExtension=function(t){typeof t=="string"&&(t={name:t});for(var a=null,r,n=0;a===null&&n<e.extensions.length;++n)r=e.extensions[n],(t.id&&r.id===t.id||t.name&&r.name===t.name)&&(a=r);return a},e.sign=function(t,a){e.md=a||W.md.sha1.create();var r=me[e.md.algorithm+"WithRSAEncryption"];if(!r){var n=new Error("Could not compute certificate digest. Unknown message digest algorithm OID.");throw n.algorithm=e.md.algorithm,n}e.signatureOid=e.siginfo.algorithmOid=r,e.tbsCertificate=O.getTBSCertificate(e);var s=h.toDer(e.tbsCertificate);e.md.update(s.getBytes()),e.signature=t.sign(e.md)},e.verify=function(t){var a=!1;if(!e.issued(t)){var r=t.issuer,n=e.subject,s=new Error("The parent certificate did not issue the given child certificate; the child certificate's issuer does not match the parent's subject.");throw s.expectedIssuer=n.attributes,s.actualIssuer=r.attributes,s}var i=t.md;if(i===null){i=ll({signatureOid:t.signatureOid,type:"certificate"});var o=t.tbsCertificate||O.getTBSCertificate(t),c=h.toDer(o);i.update(c.getBytes())}return i!==null&&(a=S0({certificate:e,md:i,signature:t.signature})),a},e.isIssuer=function(t){var a=!1,r=e.issuer,n=t.subject;if(r.hash&&n.hash)a=r.hash===n.hash;else if(r.attributes.length===n.attributes.length){a=!0;for(var s,i,o=0;a&&o<r.attributes.length;++o)s=r.attributes[o],i=n.attributes[o],(s.type!==i.type||s.value!==i.value)&&(a=!1)}return a},e.issued=function(t){return t.isIssuer(e)},e.generateSubjectKeyIdentifier=function(){return O.getPublicKeyFingerprint(e.publicKey,{type:"RSAPublicKey"})},e.verifySubjectKeyIdentifier=function(){for(var t=me.subjectKeyIdentifier,a=0;a<e.extensions.length;++a){var r=e.extensions[a];if(r.id===t){var n=e.generateSubjectKeyIdentifier().getBytes();return W.util.hexToBytes(r.subjectKeyIdentifier)===n}}return!1},e},O.certificateFromAsn1=function(e,t){var a={},r=[];if(!h.validate(e,cC,a,r)){var n=new Error("Cannot read X.509 certificate. ASN.1 object is not an X509v3 Certificate.");throw n.errors=r,n}var s=h.derToOid(a.publicKeyOid);if(s!==O.oids.rsaEncryption)throw new Error("Cannot read public key. OID is not RSA.");var i=O.createCertificate();i.version=a.certVersion?a.certVersion.charCodeAt(0):0;var o=W.util.createBuffer(a.certSerialNumber);i.serialNumber=o.toHex(),i.signatureOid=W.asn1.derToOid(a.certSignatureOid),i.signatureParameters=cl(i.signatureOid,a.certSignatureParams,!0),i.siginfo.algorithmOid=W.asn1.derToOid(a.certinfoSignatureOid),i.siginfo.parameters=cl(i.siginfo.algorithmOid,a.certinfoSignatureParams,!1),i.signature=a.certSignature;var c=[];if(a.certValidity1UTCTime!==void 0&&c.push(h.utcTimeToDate(a.certValidity1UTCTime)),a.certValidity2GeneralizedTime!==void 0&&c.push(h.generalizedTimeToDate(a.certValidity2GeneralizedTime)),a.certValidity3UTCTime!==void 0&&c.push(h.utcTimeToDate(a.certValidity3UTCTime)),a.certValidity4GeneralizedTime!==void 0&&c.push(h.generalizedTimeToDate(a.certValidity4GeneralizedTime)),c.length>2)throw new Error("Cannot read notBefore/notAfter validity times; more than two times were provided in the certificate.");if(c.length<2)throw new Error("Cannot read notBefore/notAfter validity times; they were not provided as either UTCTime or GeneralizedTime.");if(i.validity.notBefore=c[0],i.validity.notAfter=c[1],i.tbsCertificate=a.tbsCertificate,t){i.md=ll({signatureOid:i.signatureOid,type:"certificate"});var l=h.toDer(i.tbsCertificate);i.md.update(l.getBytes())}var u=W.md.sha1.create(),p=h.toDer(a.certIssuer);u.update(p.getBytes()),i.issuer.getField=function(m){return lr(i.issuer,m)},i.issuer.addField=function(m){Ut([m]),i.issuer.attributes.push(m)},i.issuer.attributes=O.RDNAttributesAsArray(a.certIssuer),a.certIssuerUniqueId&&(i.issuer.uniqueId=a.certIssuerUniqueId),i.issuer.hash=u.digest().toHex();var f=W.md.sha1.create(),x=h.toDer(a.certSubject);return f.update(x.getBytes()),i.subject.getField=function(m){return lr(i.subject,m)},i.subject.addField=function(m){Ut([m]),i.subject.attributes.push(m)},i.subject.attributes=O.RDNAttributesAsArray(a.certSubject),a.certSubjectUniqueId&&(i.subject.uniqueId=a.certSubjectUniqueId),i.subject.hash=f.digest().toHex(),a.certExtensions?i.extensions=O.certificateExtensionsFromAsn1(a.certExtensions):i.extensions=[],i.publicKey=O.publicKeyFromAsn1(a.subjectPublicKeyInfo),i},O.certificateExtensionsFromAsn1=function(e){for(var t=[],a=0;a<e.value.length;++a)for(var r=e.value[a],n=0;n<r.value.length;++n)t.push(O.certificateExtensionFromAsn1(r.value[n]));return t},O.certificateExtensionFromAsn1=function(e){var t={};if(t.id=h.derToOid(e.value[0].value),t.critical=!1,e.value[1].type===h.Type.BOOLEAN?(t.critical=e.value[1].value.charCodeAt(0)!==0,t.value=e.value[2].value):t.value=e.value[1].value,t.id in me){if(t.name=me[t.id],t.name==="keyUsage"){var a=h.fromDer(t.value),r=0,n=0;a.value.length>1&&(r=a.value.charCodeAt(1),n=a.value.length>2?a.value.charCodeAt(2):0),t.digitalSignature=(r&128)===128,t.nonRepudiation=(r&64)===64,t.keyEncipherment=(r&32)===32,t.dataEncipherment=(r&16)===16,t.keyAgreement=(r&8)===8,t.keyCertSign=(r&4)===4,t.cRLSign=(r&2)===2,t.encipherOnly=(r&1)===1,t.decipherOnly=(n&128)===128}else if(t.name==="basicConstraints"){var a=h.fromDer(t.value);a.value.length>0&&a.value[0].type===h.Type.BOOLEAN?t.cA=a.value[0].value.charCodeAt(0)!==0:t.cA=!1;var s=null;a.value.length>0&&a.value[0].type===h.Type.INTEGER?s=a.value[0].value:a.value.length>1&&(s=a.value[1].value),s!==null&&(t.pathLenConstraint=h.derToInteger(s))}else if(t.name==="extKeyUsage")for(var a=h.fromDer(t.value),i=0;i<a.value.length;++i){var o=h.derToOid(a.value[i].value);o in me?t[me[o]]=!0:t[o]=!0}else if(t.name==="nsCertType"){var a=h.fromDer(t.value),r=0;a.value.length>1&&(r=a.value.charCodeAt(1)),t.client=(r&128)===128,t.server=(r&64)===64,t.email=(r&32)===32,t.objsign=(r&16)===16,t.reserved=(r&8)===8,t.sslCA=(r&4)===4,t.emailCA=(r&2)===2,t.objCA=(r&1)===1}else if(t.name==="subjectAltName"||t.name==="issuerAltName"){t.altNames=[];for(var c,a=h.fromDer(t.value),l=0;l<a.value.length;++l){c=a.value[l];var u={type:c.type,value:c.value};switch(t.altNames.push(u),c.type){case 1:case 2:case 6:break;case 7:u.ip=W.util.bytesToIP(c.value);break;case 8:u.oid=h.derToOid(c.value);break}}}else if(t.name==="subjectKeyIdentifier"){var a=h.fromDer(t.value);t.subjectKeyIdentifier=W.util.bytesToHex(a.value)}}return t},O.certificationRequestFromAsn1=function(e,t){var a={},r=[];if(!h.validate(e,pC,a,r)){var n=new Error("Cannot read PKCS#10 certificate request. ASN.1 object is not a PKCS#10 CertificationRequest.");throw n.errors=r,n}var s=h.derToOid(a.publicKeyOid);if(s!==O.oids.rsaEncryption)throw new Error("Cannot read public key. OID is not RSA.");var i=O.createCertificationRequest();if(i.version=a.csrVersion?a.csrVersion.charCodeAt(0):0,i.signatureOid=W.asn1.derToOid(a.csrSignatureOid),i.signatureParameters=cl(i.signatureOid,a.csrSignatureParams,!0),i.siginfo.algorithmOid=W.asn1.derToOid(a.csrSignatureOid),i.siginfo.parameters=cl(i.siginfo.algorithmOid,a.csrSignatureParams,!1),i.signature=a.csrSignature,i.certificationRequestInfo=a.certificationRequestInfo,t){i.md=ll({signatureOid:i.signatureOid,type:"certification request"});var o=h.toDer(i.certificationRequestInfo);i.md.update(o.getBytes())}var c=W.md.sha1.create();return i.subject.getField=function(l){return lr(i.subject,l)},i.subject.addField=function(l){Ut([l]),i.subject.attributes.push(l)},i.subject.attributes=O.RDNAttributesAsArray(a.certificationRequestInfoSubject,c),i.subject.hash=c.digest().toHex(),i.publicKey=O.publicKeyFromAsn1(a.subjectPublicKeyInfo),i.getAttribute=function(l){return lr(i,l)},i.addAttribute=function(l){Ut([l]),i.attributes.push(l)},i.attributes=O.CRIAttributesAsArray(a.certificationRequestInfoAttributes||[]),i},O.createCertificationRequest=function(){var e={};return e.version=0,e.signatureOid=null,e.signature=null,e.siginfo={},e.siginfo.algorithmOid=null,e.subject={},e.subject.getField=function(t){return lr(e.subject,t)},e.subject.addField=function(t){Ut([t]),e.subject.attributes.push(t)},e.subject.attributes=[],e.subject.hash=null,e.publicKey=null,e.attributes=[],e.getAttribute=function(t){return lr(e,t)},e.addAttribute=function(t){Ut([t]),e.attributes.push(t)},e.md=null,e.setSubject=function(t){Ut(t),e.subject.attributes=t,e.subject.hash=null},e.setAttributes=function(t){Ut(t),e.attributes=t},e.sign=function(t,a){e.md=a||W.md.sha1.create();var r=me[e.md.algorithm+"WithRSAEncryption"];if(!r){var n=new Error("Could not compute certification request digest. Unknown message digest algorithm OID.");throw n.algorithm=e.md.algorithm,n}e.signatureOid=e.siginfo.algorithmOid=r,e.certificationRequestInfo=O.getCertificationRequestInfo(e);var s=h.toDer(e.certificationRequestInfo);e.md.update(s.getBytes()),e.signature=t.sign(e.md)},e.verify=function(){var t=!1,a=e.md;if(a===null){a=ll({signatureOid:e.signatureOid,type:"certification request"});var r=e.certificationRequestInfo||O.getCertificationRequestInfo(e),n=h.toDer(r);a.update(n.getBytes())}return a!==null&&(t=S0({certificate:e,md:a,signature:e.signature})),t},e};function Yr(e){for(var t=h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[]),a,r,n=e.attributes,s=0;s<n.length;++s){a=n[s];var i=a.value,o=h.Type.PRINTABLESTRING;"valueTagClass"in a&&(o=a.valueTagClass,o===h.Type.UTF8&&(i=W.util.encodeUtf8(i))),r=h.create(h.Class.UNIVERSAL,h.Type.SET,!0,[h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[h.create(h.Class.UNIVERSAL,h.Type.OID,!1,h.oidToDer(a.type).getBytes()),h.create(h.Class.UNIVERSAL,o,!1,i)])]),t.value.push(r)}return t}function Ut(e){for(var t,a=0;a<e.length;++a){if(t=e[a],typeof t.name>"u"&&(t.type&&t.type in O.oids?t.name=O.oids[t.type]:t.shortName&&t.shortName in De&&(t.name=O.oids[De[t.shortName]])),typeof t.type>"u")if(t.name&&t.name in O.oids)t.type=O.oids[t.name];else{var r=new Error("Attribute type not specified.");throw r.attribute=t,r}if(typeof t.shortName>"u"&&t.name&&t.name in De&&(t.shortName=De[t.name]),t.type===me.extensionRequest&&(t.valueConstructed=!0,t.valueTagClass=h.Type.SEQUENCE,!t.value&&t.extensions)){t.value=[];for(var n=0;n<t.extensions.length;++n)t.value.push(O.certificateExtensionToAsn1(T0(t.extensions[n])))}if(typeof t.value>"u"){var r=new Error("Attribute value not specified.");throw r.attribute=t,r}}}function T0(e,t){if(t=t||{},typeof e.name>"u"&&e.id&&e.id in O.oids&&(e.name=O.oids[e.id]),typeof e.id>"u")if(e.name&&e.name in O.oids)e.id=O.oids[e.name];else{var a=new Error("Extension ID not specified.");throw a.extension=e,a}if(typeof e.value<"u")return e;if(e.name==="keyUsage"){var r=0,n=0,s=0;e.digitalSignature&&(n|=128,r=7),e.nonRepudiation&&(n|=64,r=6),e.keyEncipherment&&(n|=32,r=5),e.dataEncipherment&&(n|=16,r=4),e.keyAgreement&&(n|=8,r=3),e.keyCertSign&&(n|=4,r=2),e.cRLSign&&(n|=2,r=1),e.encipherOnly&&(n|=1,r=0),e.decipherOnly&&(s|=128,r=7);var i=String.fromCharCode(r);s!==0?i+=String.fromCharCode(n)+String.fromCharCode(s):n!==0&&(i+=String.fromCharCode(n)),e.value=h.create(h.Class.UNIVERSAL,h.Type.BITSTRING,!1,i)}else if(e.name==="basicConstraints")e.value=h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[]),e.cA&&e.value.value.push(h.create(h.Class.UNIVERSAL,h.Type.BOOLEAN,!1,"\xFF")),"pathLenConstraint"in e&&e.value.value.push(h.create(h.Class.UNIVERSAL,h.Type.INTEGER,!1,h.integerToDer(e.pathLenConstraint).getBytes()));else if(e.name==="extKeyUsage"){e.value=h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[]);var o=e.value.value;for(var c in e)e[c]===!0&&(c in me?o.push(h.create(h.Class.UNIVERSAL,h.Type.OID,!1,h.oidToDer(me[c]).getBytes())):c.indexOf(".")!==-1&&o.push(h.create(h.Class.UNIVERSAL,h.Type.OID,!1,h.oidToDer(c).getBytes())))}else if(e.name==="nsCertType"){var r=0,n=0;e.client&&(n|=128,r=7),e.server&&(n|=64,r=6),e.email&&(n|=32,r=5),e.objsign&&(n|=16,r=4),e.reserved&&(n|=8,r=3),e.sslCA&&(n|=4,r=2),e.emailCA&&(n|=2,r=1),e.objCA&&(n|=1,r=0);var i=String.fromCharCode(r);n!==0&&(i+=String.fromCharCode(n)),e.value=h.create(h.Class.UNIVERSAL,h.Type.BITSTRING,!1,i)}else if(e.name==="subjectAltName"||e.name==="issuerAltName"){e.value=h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[]);for(var l,u=0;u<e.altNames.length;++u){l=e.altNames[u];var i=l.value;if(l.type===7&&l.ip){if(i=W.util.bytesFromIP(l.ip),i===null){var a=new Error('Extension "ip" value is not a valid IPv4 or IPv6 address.');throw a.extension=e,a}}else l.type===8&&(l.oid?i=h.oidToDer(h.oidToDer(l.oid)):i=h.oidToDer(i));e.value.value.push(h.create(h.Class.CONTEXT_SPECIFIC,l.type,!1,i))}}else if(e.name==="nsComment"&&t.cert){if(!/^[\x00-\x7F]*$/.test(e.comment)||e.comment.length<1||e.comment.length>128)throw new Error('Invalid "nsComment" content.');e.value=h.create(h.Class.UNIVERSAL,h.Type.IA5STRING,!1,e.comment)}else if(e.name==="subjectKeyIdentifier"&&t.cert){var p=t.cert.generateSubjectKeyIdentifier();e.subjectKeyIdentifier=p.toHex(),e.value=h.create(h.Class.UNIVERSAL,h.Type.OCTETSTRING,!1,p.getBytes())}else if(e.name==="authorityKeyIdentifier"&&t.cert){e.value=h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[]);var o=e.value.value;if(e.keyIdentifier){var f=e.keyIdentifier===!0?t.cert.generateSubjectKeyIdentifier().getBytes():e.keyIdentifier;o.push(h.create(h.Class.CONTEXT_SPECIFIC,0,!1,f))}if(e.authorityCertIssuer){var x=[h.create(h.Class.CONTEXT_SPECIFIC,4,!0,[Yr(e.authorityCertIssuer===!0?t.cert.issuer:e.authorityCertIssuer)])];o.push(h.create(h.Class.CONTEXT_SPECIFIC,1,!0,x))}if(e.serialNumber){var m=W.util.hexToBytes(e.serialNumber===!0?t.cert.serialNumber:e.serialNumber);o.push(h.create(h.Class.CONTEXT_SPECIFIC,2,!1,m))}}else if(e.name==="cRLDistributionPoints"){e.value=h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[]);for(var o=e.value.value,y=h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[]),b=h.create(h.Class.CONTEXT_SPECIFIC,0,!0,[]),l,u=0;u<e.altNames.length;++u){l=e.altNames[u];var i=l.value;if(l.type===7&&l.ip){if(i=W.util.bytesFromIP(l.ip),i===null){var a=new Error('Extension "ip" value is not a valid IPv4 or IPv6 address.');throw a.extension=e,a}}else l.type===8&&(l.oid?i=h.oidToDer(h.oidToDer(l.oid)):i=h.oidToDer(i));b.value.push(h.create(h.Class.CONTEXT_SPECIFIC,l.type,!1,i))}y.value.push(h.create(h.Class.CONTEXT_SPECIFIC,0,!0,[b])),o.push(y)}if(typeof e.value>"u"){var a=new Error("Extension value not specified.");throw a.extension=e,a}return e}function Qu(e,t){switch(e){case me["RSASSA-PSS"]:var a=[];return t.hash.algorithmOid!==void 0&&a.push(h.create(h.Class.CONTEXT_SPECIFIC,0,!0,[h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[h.create(h.Class.UNIVERSAL,h.Type.OID,!1,h.oidToDer(t.hash.algorithmOid).getBytes()),h.create(h.Class.UNIVERSAL,h.Type.NULL,!1,"")])])),t.mgf.algorithmOid!==void 0&&a.push(h.create(h.Class.CONTEXT_SPECIFIC,1,!0,[h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[h.create(h.Class.UNIVERSAL,h.Type.OID,!1,h.oidToDer(t.mgf.algorithmOid).getBytes()),h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[h.create(h.Class.UNIVERSAL,h.Type.OID,!1,h.oidToDer(t.mgf.hash.algorithmOid).getBytes()),h.create(h.Class.UNIVERSAL,h.Type.NULL,!1,"")])])])),t.saltLength!==void 0&&a.push(h.create(h.Class.CONTEXT_SPECIFIC,2,!0,[h.create(h.Class.UNIVERSAL,h.Type.INTEGER,!1,h.integerToDer(t.saltLength).getBytes())])),h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,a);default:return h.create(h.Class.UNIVERSAL,h.Type.NULL,!1,"")}}function dC(e){var t=h.create(h.Class.CONTEXT_SPECIFIC,0,!0,[]);if(e.attributes.length===0)return t;for(var a=e.attributes,r=0;r<a.length;++r){var n=a[r],s=n.value,i=h.Type.UTF8;"valueTagClass"in n&&(i=n.valueTagClass),i===h.Type.UTF8&&(s=W.util.encodeUtf8(s));var o=!1;"valueConstructed"in n&&(o=n.valueConstructed);var c=h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[h.create(h.Class.UNIVERSAL,h.Type.OID,!1,h.oidToDer(n.type).getBytes()),h.create(h.Class.UNIVERSAL,h.Type.SET,!0,[h.create(h.Class.UNIVERSAL,i,o,s)])]);t.value.push(c)}return t}var fC=new Date("1950-01-01T00:00:00Z"),mC=new Date("2050-01-01T00:00:00Z");function w0(e){return e>=fC&&e<mC?h.create(h.Class.UNIVERSAL,h.Type.UTCTIME,!1,h.dateToUtcTime(e)):h.create(h.Class.UNIVERSAL,h.Type.GENERALIZEDTIME,!1,h.dateToGeneralizedTime(e))}O.getTBSCertificate=function(e){var t=w0(e.validity.notBefore),a=w0(e.validity.notAfter),r=h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[h.create(h.Class.CONTEXT_SPECIFIC,0,!0,[h.create(h.Class.UNIVERSAL,h.Type.INTEGER,!1,h.integerToDer(e.version).getBytes())]),h.create(h.Class.UNIVERSAL,h.Type.INTEGER,!1,W.util.hexToBytes(e.serialNumber)),h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[h.create(h.Class.UNIVERSAL,h.Type.OID,!1,h.oidToDer(e.siginfo.algorithmOid).getBytes()),Qu(e.siginfo.algorithmOid,e.siginfo.parameters)]),Yr(e.issuer),h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[t,a]),Yr(e.subject),O.publicKeyToAsn1(e.publicKey)]);return e.issuer.uniqueId&&r.value.push(h.create(h.Class.CONTEXT_SPECIFIC,1,!0,[h.create(h.Class.UNIVERSAL,h.Type.BITSTRING,!1,"\0"+e.issuer.uniqueId)])),e.subject.uniqueId&&r.value.push(h.create(h.Class.CONTEXT_SPECIFIC,2,!0,[h.create(h.Class.UNIVERSAL,h.Type.BITSTRING,!1,"\0"+e.subject.uniqueId)])),e.extensions.length>0&&r.value.push(O.certificateExtensionsToAsn1(e.extensions)),r},O.getCertificationRequestInfo=function(e){var t=h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[h.create(h.Class.UNIVERSAL,h.Type.INTEGER,!1,h.integerToDer(e.version).getBytes()),Yr(e.subject),O.publicKeyToAsn1(e.publicKey),dC(e)]);return t},O.distinguishedNameToAsn1=function(e){return Yr(e)},O.certificateToAsn1=function(e){var t=e.tbsCertificate||O.getTBSCertificate(e);return h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[t,h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[h.create(h.Class.UNIVERSAL,h.Type.OID,!1,h.oidToDer(e.signatureOid).getBytes()),Qu(e.signatureOid,e.signatureParameters)]),h.create(h.Class.UNIVERSAL,h.Type.BITSTRING,!1,"\0"+e.signature)])},O.certificateExtensionsToAsn1=function(e){var t=h.create(h.Class.CONTEXT_SPECIFIC,3,!0,[]),a=h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[]);t.value.push(a);for(var r=0;r<e.length;++r)a.value.push(O.certificateExtensionToAsn1(e[r]));return t},O.certificateExtensionToAsn1=function(e){var t=h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[]);t.value.push(h.create(h.Class.UNIVERSAL,h.Type.OID,!1,h.oidToDer(e.id).getBytes())),e.critical&&t.value.push(h.create(h.Class.UNIVERSAL,h.Type.BOOLEAN,!1,"\xFF"));var a=e.value;return typeof e.value!="string"&&(a=h.toDer(a).getBytes()),t.value.push(h.create(h.Class.UNIVERSAL,h.Type.OCTETSTRING,!1,a)),t},O.certificationRequestToAsn1=function(e){var t=e.certificationRequestInfo||O.getCertificationRequestInfo(e);return h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[t,h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[h.create(h.Class.UNIVERSAL,h.Type.OID,!1,h.oidToDer(e.signatureOid).getBytes()),Qu(e.signatureOid,e.signatureParameters)]),h.create(h.Class.UNIVERSAL,h.Type.BITSTRING,!1,"\0"+e.signature)])},O.createCaStore=function(e){var t={certs:{}};t.getIssuer=function(i){var o=a(i.issuer);return o},t.addCertificate=function(i){if(typeof i=="string"&&(i=W.pki.certificateFromPem(i)),r(i.subject),!t.hasCertificate(i))if(i.subject.hash in t.certs){var o=t.certs[i.subject.hash];W.util.isArray(o)||(o=[o]),o.push(i),t.certs[i.subject.hash]=o}else t.certs[i.subject.hash]=i},t.hasCertificate=function(i){typeof i=="string"&&(i=W.pki.certificateFromPem(i));var o=a(i.subject);if(!o)return!1;W.util.isArray(o)||(o=[o]);for(var c=h.toDer(O.certificateToAsn1(i)).getBytes(),l=0;l<o.length;++l){var u=h.toDer(O.certificateToAsn1(o[l])).getBytes();if(c===u)return!0}return!1},t.listAllCertificates=function(){var i=[];for(var o in t.certs)if(t.certs.hasOwnProperty(o)){var c=t.certs[o];if(!W.util.isArray(c))i.push(c);else for(var l=0;l<c.length;++l)i.push(c[l])}return i},t.removeCertificate=function(i){var o;if(typeof i=="string"&&(i=W.pki.certificateFromPem(i)),r(i.subject),!t.hasCertificate(i))return null;var c=a(i.subject);if(!W.util.isArray(c))return o=t.certs[i.subject.hash],delete t.certs[i.subject.hash],o;for(var l=h.toDer(O.certificateToAsn1(i)).getBytes(),u=0;u<c.length;++u){var p=h.toDer(O.certificateToAsn1(c[u])).getBytes();l===p&&(o=c[u],c.splice(u,1))}return c.length===0&&delete t.certs[i.subject.hash],o};function a(i){return r(i),t.certs[i.hash]||null}function r(i){if(!i.hash){var o=W.md.sha1.create();i.attributes=O.RDNAttributesAsArray(Yr(i),o),i.hash=o.digest().toHex()}}if(e)for(var n=0;n<e.length;++n){var s=e[n];t.addCertificate(s)}return t},O.certificateError={bad_certificate:"forge.pki.BadCertificate",unsupported_certificate:"forge.pki.UnsupportedCertificate",certificate_revoked:"forge.pki.CertificateRevoked",certificate_expired:"forge.pki.CertificateExpired",certificate_unknown:"forge.pki.CertificateUnknown",unknown_ca:"forge.pki.UnknownCertificateAuthority"},O.verifyCertificateChain=function(e,t,a){typeof a=="function"&&(a={verify:a}),a=a||{},t=t.slice(0);var r=t.slice(0),n=a.validityCheckDate;typeof n>"u"&&(n=new Date);var s=!0,i=null,o=0;do{var c=t.shift(),l=null,u=!1;if(n&&(n<c.validity.notBefore||n>c.validity.notAfter)&&(i={message:"Certificate is not valid yet or has expired.",error:O.certificateError.certificate_expired,notBefore:c.validity.notBefore,notAfter:c.validity.notAfter,now:n}),i===null){if(l=t[0]||e.getIssuer(c),l===null&&c.isIssuer(c)&&(u=!0,l=c),l){var p=l;W.util.isArray(p)||(p=[p]);for(var f=!1;!f&&p.length>0;){l=p.shift();try{f=l.verify(c)}catch{}}f||(i={message:"Certificate signature is invalid.",error:O.certificateError.bad_certificate})}i===null&&(!l||u)&&!e.hasCertificate(c)&&(i={message:"Certificate is not trusted.",error:O.certificateError.unknown_ca})}if(i===null&&l&&!c.isIssuer(l)&&(i={message:"Certificate issuer is invalid.",error:O.certificateError.bad_certificate}),i===null)for(var x={keyUsage:!0,basicConstraints:!0},m=0;i===null&&m<c.extensions.length;++m){var y=c.extensions[m];y.critical&&!(y.name in x)&&(i={message:"Certificate has an unsupported critical extension.",error:O.certificateError.unsupported_certificate})}if(i===null&&(!s||t.length===0&&(!l||u))){var b=c.getExtension("basicConstraints"),S=c.getExtension("keyUsage");if(S!==null&&(!S.keyCertSign||b===null)&&(i={message:"Certificate keyUsage or basicConstraints conflict or indicate that the certificate is not a CA. If the certificate is the only one in the chain or isn't the first then the certificate must be a valid CA.",error:O.certificateError.bad_certificate}),i===null&&b===null&&(i={message:"Certificate is missing basicConstraints extension and cannot be used as a CA.",error:O.certificateError.bad_certificate}),i===null&&b!==null&&!b.cA&&(i={message:"Certificate basicConstraints indicates the certificate is not a CA.",error:O.certificateError.bad_certificate}),i===null&&S!==null&&"pathLenConstraint"in b){var B=o-1;B>b.pathLenConstraint&&(i={message:"Certificate basicConstraints pathLenConstraint violated.",error:O.certificateError.bad_certificate})}}var _=i===null?!0:i.error,P=a.verify?a.verify(_,o,r):_;if(P===!0)i=null;else throw _===!0&&(i={message:"The application rejected the certificate.",error:O.certificateError.bad_certificate}),(P||P===0)&&(typeof P=="object"&&!W.util.isArray(P)?(P.message&&(i.message=P.message),P.error&&(i.error=P.error)):typeof P=="string"&&(i.error=P)),i;s=!1,++o}while(t.length>0);return!0};var we=te,C=we.asn1,se=we.pki,mc=we.pkcs12=we.pkcs12||{},A0={name:"ContentInfo",tagClass:C.Class.UNIVERSAL,type:C.Type.SEQUENCE,constructed:!0,value:[{name:"ContentInfo.contentType",tagClass:C.Class.UNIVERSAL,type:C.Type.OID,constructed:!1,capture:"contentType"},{name:"ContentInfo.content",tagClass:C.Class.CONTEXT_SPECIFIC,constructed:!0,captureAsn1:"content"}]},hC={name:"PFX",tagClass:C.Class.UNIVERSAL,type:C.Type.SEQUENCE,constructed:!0,value:[{name:"PFX.version",tagClass:C.Class.UNIVERSAL,type:C.Type.INTEGER,constructed:!1,capture:"version"},A0,{name:"PFX.macData",tagClass:C.Class.UNIVERSAL,type:C.Type.SEQUENCE,constructed:!0,optional:!0,captureAsn1:"mac",value:[{name:"PFX.macData.mac",tagClass:C.Class.UNIVERSAL,type:C.Type.SEQUENCE,constructed:!0,value:[{name:"PFX.macData.mac.digestAlgorithm",tagClass:C.Class.UNIVERSAL,type:C.Type.SEQUENCE,constructed:!0,value:[{name:"PFX.macData.mac.digestAlgorithm.algorithm",tagClass:C.Class.UNIVERSAL,type:C.Type.OID,constructed:!1,capture:"macAlgorithm"},{name:"PFX.macData.mac.digestAlgorithm.parameters",optional:!0,tagClass:C.Class.UNIVERSAL,captureAsn1:"macAlgorithmParameters"}]},{name:"PFX.macData.mac.digest",tagClass:C.Class.UNIVERSAL,type:C.Type.OCTETSTRING,constructed:!1,capture:"macDigest"}]},{name:"PFX.macData.macSalt",tagClass:C.Class.UNIVERSAL,type:C.Type.OCTETSTRING,constructed:!1,capture:"macSalt"},{name:"PFX.macData.iterations",tagClass:C.Class.UNIVERSAL,type:C.Type.INTEGER,constructed:!1,optional:!0,capture:"macIterations"}]}]},vC={name:"SafeBag",tagClass:C.Class.UNIVERSAL,type:C.Type.SEQUENCE,constructed:!0,value:[{name:"SafeBag.bagId",tagClass:C.Class.UNIVERSAL,type:C.Type.OID,constructed:!1,capture:"bagId"},{name:"SafeBag.bagValue",tagClass:C.Class.CONTEXT_SPECIFIC,constructed:!0,captureAsn1:"bagValue"},{name:"SafeBag.bagAttributes",tagClass:C.Class.UNIVERSAL,type:C.Type.SET,constructed:!0,optional:!0,capture:"bagAttributes"}]},gC={name:"Attribute",tagClass:C.Class.UNIVERSAL,type:C.Type.SEQUENCE,constructed:!0,value:[{name:"Attribute.attrId",tagClass:C.Class.UNIVERSAL,type:C.Type.OID,constructed:!1,capture:"oid"},{name:"Attribute.attrValues",tagClass:C.Class.UNIVERSAL,type:C.Type.SET,constructed:!0,capture:"values"}]},xC={name:"CertBag",tagClass:C.Class.UNIVERSAL,type:C.Type.SEQUENCE,constructed:!0,value:[{name:"CertBag.certId",tagClass:C.Class.UNIVERSAL,type:C.Type.OID,constructed:!1,capture:"certId"},{name:"CertBag.certValue",tagClass:C.Class.CONTEXT_SPECIFIC,constructed:!0,value:[{name:"CertBag.certValue[0]",tagClass:C.Class.UNIVERSAL,type:C.Class.OCTETSTRING,constructed:!1,capture:"cert"}]}]};function hc(e,t,a,r){for(var n=[],s=0;s<e.length;s++)for(var i=0;i<e[s].safeBags.length;i++){var o=e[s].safeBags[i];if(!(r!==void 0&&o.type!==r)){if(t===null){n.push(o);continue}o.attributes[t]!==void 0&&o.attributes[t].indexOf(a)>=0&&n.push(o)}}return n}mc.pkcs12FromAsn1=function(e,t,a){typeof t=="string"?(a=t,t=!0):t===void 0&&(t=!0);var r={},n=[];if(!C.validate(e,hC,r,n)){var s=new Error("Cannot read PKCS#12 PFX. ASN.1 object is not an PKCS#12 PFX.");throw s.errors=s,s}var i={version:r.version.charCodeAt(0),safeContents:[],getBags:function(b){var S={},B;return"localKeyId"in b?B=b.localKeyId:"localKeyIdHex"in b&&(B=we.util.hexToBytes(b.localKeyIdHex)),B===void 0&&!("friendlyName"in b)&&"bagType"in b&&(S[b.bagType]=hc(i.safeContents,null,null,b.bagType)),B!==void 0&&(S.localKeyId=hc(i.safeContents,"localKeyId",B,b.bagType)),"friendlyName"in b&&(S.friendlyName=hc(i.safeContents,"friendlyName",b.friendlyName,b.bagType)),S},getBagsByFriendlyName:function(b,S){return hc(i.safeContents,"friendlyName",b,S)},getBagsByLocalKeyId:function(b,S){return hc(i.safeContents,"localKeyId",b,S)}};if(r.version.charCodeAt(0)!==3){var s=new Error("PKCS#12 PFX of version other than 3 not supported.");throw s.version=r.version.charCodeAt(0),s}if(C.derToOid(r.contentType)!==se.oids.data){var s=new Error("Only PKCS#12 PFX in password integrity mode supported.");throw s.oid=C.derToOid(r.contentType),s}var o=r.content.value[0];if(o.tagClass!==C.Class.UNIVERSAL||o.type!==C.Type.OCTETSTRING)throw new Error("PKCS#12 authSafe content data is not an OCTET STRING.");if(o=Wu(o),r.mac){var c=null,l=0,u=C.derToOid(r.macAlgorithm);switch(u){case se.oids.sha1:c=we.md.sha1.create(),l=20;break;case se.oids.sha256:c=we.md.sha256.create(),l=32;break;case se.oids.sha384:c=we.md.sha384.create(),l=48;break;case se.oids.sha512:c=we.md.sha512.create(),l=64;break;case se.oids.md5:c=we.md.md5.create(),l=16;break}if(c===null)throw new Error("PKCS#12 uses unsupported MAC algorithm: "+u);var p=new we.util.ByteBuffer(r.macSalt),f="macIterations"in r?parseInt(we.util.bytesToHex(r.macIterations),16):1,x=mc.generateKey(a,p,3,f,l,c),m=we.hmac.create();m.start(c,x),m.update(o.value);var y=m.getMac();if(y.getBytes()!==r.macDigest)throw new Error("PKCS#12 MAC could not be verified. Invalid password?")}else if(Array.isArray(e.value)&&e.value.length>2)throw new Error("Invalid PKCS#12. macData field present but MAC was not validated.");return yC(i,o.value,t,a),i};function Wu(e){if(e.composed||e.constructed){for(var t=we.util.createBuffer(),a=0;a<e.value.length;++a)t.putBytes(e.value[a].value);e.composed=e.constructed=!1,e.value=t.getBytes()}return e}function yC(e,t,a,r){if(t=C.fromDer(t,a),t.tagClass!==C.Class.UNIVERSAL||t.type!==C.Type.SEQUENCE||t.constructed!==!0)throw new Error("PKCS#12 AuthenticatedSafe expected to be a SEQUENCE OF ContentInfo");for(var n=0;n<t.value.length;n++){var s=t.value[n],i={},o=[];if(!C.validate(s,A0,i,o)){var c=new Error("Cannot read ContentInfo.");throw c.errors=o,c}var l={encrypted:!1},u=null,p=i.content.value[0];switch(C.derToOid(i.contentType)){case se.oids.data:if(p.tagClass!==C.Class.UNIVERSAL||p.type!==C.Type.OCTETSTRING)throw new Error("PKCS#12 SafeContents Data is not an OCTET STRING.");u=Wu(p).value;break;case se.oids.encryptedData:u=bC(p,r),l.encrypted=!0;break;default:var c=new Error("Unsupported PKCS#12 contentType.");throw c.contentType=C.derToOid(i.contentType),c}l.safeBags=EC(u,a,r),e.safeContents.push(l)}}function bC(e,t){var a={},r=[];if(!C.validate(e,we.pkcs7.asn1.encryptedDataValidator,a,r)){var n=new Error("Cannot read EncryptedContentInfo.");throw n.errors=r,n}var s=C.derToOid(a.contentType);if(s!==se.oids.data){var n=new Error("PKCS#12 EncryptedContentInfo ContentType is not Data.");throw n.oid=s,n}s=C.derToOid(a.encAlgorithm);var i=se.pbe.getCipher(s,a.encParameter,t),o=Wu(a.encryptedContentAsn1),c=we.util.createBuffer(o.value);if(i.update(c),!i.finish())throw new Error("Failed to decrypt PKCS#12 SafeContents.");return i.output.getBytes()}function EC(e,t,a){if(!t&&e.length===0)return[];if(e=C.fromDer(e,t),e.tagClass!==C.Class.UNIVERSAL||e.type!==C.Type.SEQUENCE||e.constructed!==!0)throw new Error("PKCS#12 SafeContents expected to be a SEQUENCE OF SafeBag.");for(var r=[],n=0;n<e.value.length;n++){var s=e.value[n],i={},o=[];if(!C.validate(s,vC,i,o)){var c=new Error("Cannot read SafeBag.");throw c.errors=o,c}var l={type:C.derToOid(i.bagId),attributes:CC(i.bagAttributes)};r.push(l);var u,p,f=i.bagValue.value[0];switch(l.type){case se.oids.pkcs8ShroudedKeyBag:if(f=se.decryptPrivateKeyInfo(f,a),f===null)throw new Error("Unable to decrypt PKCS#8 ShroudedKeyBag, wrong password?");case se.oids.keyBag:try{l.key=se.privateKeyFromAsn1(f)}catch{l.key=null,l.asn1=f}continue;case se.oids.certBag:u=xC,p=function(){if(C.derToOid(i.certId)!==se.oids.x509Certificate){var m=new Error("Unsupported certificate type, only X.509 supported.");throw m.oid=C.derToOid(i.certId),m}var y=C.fromDer(i.cert,t);try{l.cert=se.certificateFromAsn1(y,!0)}catch{l.cert=null,l.asn1=y}};break;default:var c=new Error("Unsupported PKCS#12 SafeBag type.");throw c.oid=l.type,c}if(u!==void 0&&!C.validate(f,u,i,o)){var c=new Error("Cannot read PKCS#12 "+u.name);throw c.errors=o,c}p()}return r}function CC(e){var t={};if(e!==void 0)for(var a=0;a<e.length;++a){var r={},n=[];if(!C.validate(e[a],gC,r,n)){var s=new Error("Cannot read PKCS#12 BagAttribute.");throw s.errors=n,s}var i=C.derToOid(r.oid);if(se.oids[i]!==void 0){t[se.oids[i]]=[];for(var o=0;o<r.values.length;++o)t[se.oids[i]].push(r.values[o].value)}}return t}mc.toPkcs12Asn1=function(e,t,a,r){r=r||{},r.saltSize=r.saltSize||8,r.count=r.count||2048,r.algorithm=r.algorithm||r.encAlgorithm||"aes128","useMac"in r||(r.useMac=!0),"localKeyId"in r||(r.localKeyId=null),"generateLocalKeyId"in r||(r.generateLocalKeyId=!0);var n=r.localKeyId,s;if(n!==null)n=we.util.hexToBytes(n);else if(r.generateLocalKeyId)if(t){var i=we.util.isArray(t)?t[0]:t;typeof i=="string"&&(i=se.certificateFromPem(i));var o=we.md.sha1.create();o.update(C.toDer(se.certificateToAsn1(i)).getBytes()),n=o.digest().getBytes()}else n=we.random.getBytes(20);var c=[];n!==null&&c.push(C.create(C.Class.UNIVERSAL,C.Type.SEQUENCE,!0,[C.create(C.Class.UNIVERSAL,C.Type.OID,!1,C.oidToDer(se.oids.localKeyId).getBytes()),C.create(C.Class.UNIVERSAL,C.Type.SET,!0,[C.create(C.Class.UNIVERSAL,C.Type.OCTETSTRING,!1,n)])])),"friendlyName"in r&&c.push(C.create(C.Class.UNIVERSAL,C.Type.SEQUENCE,!0,[C.create(C.Class.UNIVERSAL,C.Type.OID,!1,C.oidToDer(se.oids.friendlyName).getBytes()),C.create(C.Class.UNIVERSAL,C.Type.SET,!0,[C.create(C.Class.UNIVERSAL,C.Type.BMPSTRING,!1,r.friendlyName)])])),c.length>0&&(s=C.create(C.Class.UNIVERSAL,C.Type.SET,!0,c));var l=[],u=[];t!==null&&(we.util.isArray(t)?u=t:u=[t]);for(var p=[],f=0;f<u.length;++f){t=u[f],typeof t=="string"&&(t=se.certificateFromPem(t));var x=f===0?s:void 0,m=se.certificateToAsn1(t),y=C.create(C.Class.UNIVERSAL,C.Type.SEQUENCE,!0,[C.create(C.Class.UNIVERSAL,C.Type.OID,!1,C.oidToDer(se.oids.certBag).getBytes()),C.create(C.Class.CONTEXT_SPECIFIC,0,!0,[C.create(C.Class.UNIVERSAL,C.Type.SEQUENCE,!0,[C.create(C.Class.UNIVERSAL,C.Type.OID,!1,C.oidToDer(se.oids.x509Certificate).getBytes()),C.create(C.Class.CONTEXT_SPECIFIC,0,!0,[C.create(C.Class.UNIVERSAL,C.Type.OCTETSTRING,!1,C.toDer(m).getBytes())])])]),x]);p.push(y)}if(p.length>0){var b=C.create(C.Class.UNIVERSAL,C.Type.SEQUENCE,!0,p),S=C.create(C.Class.UNIVERSAL,C.Type.SEQUENCE,!0,[C.create(C.Class.UNIVERSAL,C.Type.OID,!1,C.oidToDer(se.oids.data).getBytes()),C.create(C.Class.CONTEXT_SPECIFIC,0,!0,[C.create(C.Class.UNIVERSAL,C.Type.OCTETSTRING,!1,C.toDer(b).getBytes())])]);l.push(S)}var B=null;if(e!==null){var _=se.wrapRsaPrivateKey(se.privateKeyToAsn1(e));a===null?B=C.create(C.Class.UNIVERSAL,C.Type.SEQUENCE,!0,[C.create(C.Class.UNIVERSAL,C.Type.OID,!1,C.oidToDer(se.oids.keyBag).getBytes()),C.create(C.Class.CONTEXT_SPECIFIC,0,!0,[_]),s]):B=C.create(C.Class.UNIVERSAL,C.Type.SEQUENCE,!0,[C.create(C.Class.UNIVERSAL,C.Type.OID,!1,C.oidToDer(se.oids.pkcs8ShroudedKeyBag).getBytes()),C.create(C.Class.CONTEXT_SPECIFIC,0,!0,[se.encryptPrivateKeyInfo(_,a,r)]),s]);var P=C.create(C.Class.UNIVERSAL,C.Type.SEQUENCE,!0,[B]),U=C.create(C.Class.UNIVERSAL,C.Type.SEQUENCE,!0,[C.create(C.Class.UNIVERSAL,C.Type.OID,!1,C.oidToDer(se.oids.data).getBytes()),C.create(C.Class.CONTEXT_SPECIFIC,0,!0,[C.create(C.Class.UNIVERSAL,C.Type.OCTETSTRING,!1,C.toDer(P).getBytes())])]);l.push(U)}var k=C.create(C.Class.UNIVERSAL,C.Type.SEQUENCE,!0,l),H;if(r.useMac){var o=we.md.sha1.create(),G=new we.util.ByteBuffer(we.random.getBytes(r.saltSize)),Z=r.count,e=mc.generateKey(a,G,3,Z,20),ce=we.hmac.create();ce.start(o,e),ce.update(C.toDer(k).getBytes());var pe=ce.getMac();H=C.create(C.Class.UNIVERSAL,C.Type.SEQUENCE,!0,[C.create(C.Class.UNIVERSAL,C.Type.SEQUENCE,!0,[C.create(C.Class.UNIVERSAL,C.Type.SEQUENCE,!0,[C.create(C.Class.UNIVERSAL,C.Type.OID,!1,C.oidToDer(se.oids.sha1).getBytes()),C.create(C.Class.UNIVERSAL,C.Type.NULL,!1,"")]),C.create(C.Class.UNIVERSAL,C.Type.OCTETSTRING,!1,pe.getBytes())]),C.create(C.Class.UNIVERSAL,C.Type.OCTETSTRING,!1,G.getBytes()),C.create(C.Class.UNIVERSAL,C.Type.INTEGER,!1,C.integerToDer(Z).getBytes())])}return C.create(C.Class.UNIVERSAL,C.Type.SEQUENCE,!0,[C.create(C.Class.UNIVERSAL,C.Type.INTEGER,!1,C.integerToDer(3).getBytes()),C.create(C.Class.UNIVERSAL,C.Type.SEQUENCE,!0,[C.create(C.Class.UNIVERSAL,C.Type.OID,!1,C.oidToDer(se.oids.data).getBytes()),C.create(C.Class.CONTEXT_SPECIFIC,0,!0,[C.create(C.Class.UNIVERSAL,C.Type.OCTETSTRING,!1,C.toDer(k).getBytes())])]),H])},mc.generateKey=we.pbe.generatePkcs12Key;var ur=te,Yu=ur.asn1,Xr=ur.pki=ur.pki||{};Xr.pemToDer=function(e){var t=ur.pem.decode(e)[0];if(t.procType&&t.procType.type==="ENCRYPTED")throw new Error("Could not convert PEM to DER; PEM is encrypted.");return ur.util.createBuffer(t.body)},Xr.privateKeyFromPem=function(e){var t=ur.pem.decode(e)[0];if(t.type!=="PRIVATE KEY"&&t.type!=="RSA PRIVATE KEY"){var a=new Error('Could not convert private key from PEM; PEM header type is not "PRIVATE KEY" or "RSA PRIVATE KEY".');throw a.headerType=t.type,a}if(t.procType&&t.procType.type==="ENCRYPTED")throw new Error("Could not convert private key from PEM; PEM is encrypted.");var r=Yu.fromDer(t.body);return Xr.privateKeyFromAsn1(r)},Xr.privateKeyToPem=function(e,t){var a={type:"RSA PRIVATE KEY",body:Yu.toDer(Xr.privateKeyToAsn1(e)).getBytes()};return ur.pem.encode(a,{maxline:t})},Xr.privateKeyInfoToPem=function(e,t){var a={type:"PRIVATE KEY",body:Yu.toDer(e).getBytes()};return ur.pem.encode(a,{maxline:t})};var L=te,ul=function(e,t,a,r){var n=L.util.createBuffer(),s=e.length>>1,i=s+(e.length&1),o=e.substr(0,i),c=e.substr(s,i),l=L.util.createBuffer(),u=L.hmac.create();a=t+a;var p=Math.ceil(r/16),f=Math.ceil(r/20);u.start("MD5",o);var x=L.util.createBuffer();l.putBytes(a);for(var m=0;m<p;++m)u.start(null,null),u.update(l.getBytes()),l.putBuffer(u.digest()),u.start(null,null),u.update(l.bytes()+a),x.putBuffer(u.digest());u.start("SHA1",c);var y=L.util.createBuffer();l.clear(),l.putBytes(a);for(var m=0;m<f;++m)u.start(null,null),u.update(l.getBytes()),l.putBuffer(u.digest()),u.start(null,null),u.update(l.bytes()+a),y.putBuffer(u.digest());return n.putBytes(L.util.xorBytes(x.getBytes(),y.getBytes(),r)),n},SC=function(e,t,a){var r=L.hmac.create();r.start("SHA1",e);var n=L.util.createBuffer();return n.putInt32(t[0]),n.putInt32(t[1]),n.putByte(a.type),n.putByte(a.version.major),n.putByte(a.version.minor),n.putInt16(a.length),n.putBytes(a.fragment.bytes()),r.update(n.getBytes()),r.digest().getBytes()},TC=function(e,t,a){var r=!1;try{var n=e.deflate(t.fragment.getBytes());t.fragment=L.util.createBuffer(n),t.length=n.length,r=!0}catch{}return r},wC=function(e,t,a){var r=!1;try{var n=e.inflate(t.fragment.getBytes());t.fragment=L.util.createBuffer(n),t.length=n.length,r=!0}catch{}return r},Bt=function(e,t){var a=0;switch(t){case 1:a=e.getByte();break;case 2:a=e.getInt16();break;case 3:a=e.getInt24();break;case 4:a=e.getInt32();break}return L.util.createBuffer(e.getBytes(a))},Dt=function(e,t,a){e.putInt(a.length(),t<<3),e.putBuffer(a)},g={};g.Versions={TLS_1_0:{major:3,minor:1},TLS_1_1:{major:3,minor:2},TLS_1_2:{major:3,minor:3}},g.SupportedVersions=[g.Versions.TLS_1_1,g.Versions.TLS_1_0],g.Version=g.SupportedVersions[0],g.MaxFragment=15360,g.ConnectionEnd={server:0,client:1},g.PRFAlgorithm={tls_prf_sha256:0},g.BulkCipherAlgorithm={none:null,rc4:0,des3:1,aes:2},g.CipherType={stream:0,block:1,aead:2},g.MACAlgorithm={none:null,hmac_md5:0,hmac_sha1:1,hmac_sha256:2,hmac_sha384:3,hmac_sha512:4},g.CompressionMethod={none:0,deflate:1},g.ContentType={change_cipher_spec:20,alert:21,handshake:22,application_data:23,heartbeat:24},g.HandshakeType={hello_request:0,client_hello:1,server_hello:2,certificate:11,server_key_exchange:12,certificate_request:13,server_hello_done:14,certificate_verify:15,client_key_exchange:16,finished:20},g.Alert={},g.Alert.Level={warning:1,fatal:2},g.Alert.Description={close_notify:0,unexpected_message:10,bad_record_mac:20,decryption_failed:21,record_overflow:22,decompression_failure:30,handshake_failure:40,bad_certificate:42,unsupported_certificate:43,certificate_revoked:44,certificate_expired:45,certificate_unknown:46,illegal_parameter:47,unknown_ca:48,access_denied:49,decode_error:50,decrypt_error:51,export_restriction:60,protocol_version:70,insufficient_security:71,internal_error:80,user_canceled:90,no_renegotiation:100},g.HeartbeatMessageType={heartbeat_request:1,heartbeat_response:2},g.CipherSuites={},g.getCipherSuite=function(e){var t=null;for(var a in g.CipherSuites){var r=g.CipherSuites[a];if(r.id[0]===e.charCodeAt(0)&&r.id[1]===e.charCodeAt(1)){t=r;break}}return t},g.handleUnexpected=function(e,t){var a=!e.open&&e.entity===g.ConnectionEnd.client;a||e.error(e,{message:"Unexpected message. Received TLS record out of order.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.unexpected_message}})},g.handleHelloRequest=function(e,t,a){!e.handshaking&&e.handshakes>0&&(g.queue(e,g.createAlert(e,{level:g.Alert.Level.warning,description:g.Alert.Description.no_renegotiation})),g.flush(e)),e.process()},g.parseHelloMessage=function(e,t,a){var r=null,n=e.entity===g.ConnectionEnd.client;if(a<38)e.error(e,{message:n?"Invalid ServerHello message. Message too short.":"Invalid ClientHello message. Message too short.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.illegal_parameter}});else{var s=t.fragment,i=s.length();if(r={version:{major:s.getByte(),minor:s.getByte()},random:L.util.createBuffer(s.getBytes(32)),session_id:Bt(s,1),extensions:[]},n?(r.cipher_suite=s.getBytes(2),r.compression_method=s.getByte()):(r.cipher_suites=Bt(s,2),r.compression_methods=Bt(s,1)),i=a-(i-s.length()),i>0){for(var o=Bt(s,2);o.length()>0;)r.extensions.push({type:[o.getByte(),o.getByte()],data:Bt(o,2)});if(!n)for(var c=0;c<r.extensions.length;++c){var l=r.extensions[c];if(l.type[0]===0&&l.type[1]===0)for(var u=Bt(l.data,2);u.length()>0;){var p=u.getByte();if(p!==0)break;e.session.extensions.server_name.serverNameList.push(Bt(u,2).getBytes())}}}if(e.session.version&&(r.version.major!==e.session.version.major||r.version.minor!==e.session.version.minor))return e.error(e,{message:"TLS version change is disallowed during renegotiation.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.protocol_version}});if(n)e.session.cipherSuite=g.getCipherSuite(r.cipher_suite);else for(var f=L.util.createBuffer(r.cipher_suites.bytes());f.length()>0&&(e.session.cipherSuite=g.getCipherSuite(f.getBytes(2)),e.session.cipherSuite===null););if(e.session.cipherSuite===null)return e.error(e,{message:"No cipher suites in common.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.handshake_failure},cipherSuite:L.util.bytesToHex(r.cipher_suite)});n?e.session.compressionMethod=r.compression_method:e.session.compressionMethod=g.CompressionMethod.none}return r},g.createSecurityParameters=function(e,t){var a=e.entity===g.ConnectionEnd.client,r=t.random.bytes(),n=a?e.session.sp.client_random:r,s=a?r:g.createRandom().getBytes();e.session.sp={entity:e.entity,prf_algorithm:g.PRFAlgorithm.tls_prf_sha256,bulk_cipher_algorithm:null,cipher_type:null,enc_key_length:null,block_length:null,fixed_iv_length:null,record_iv_length:null,mac_algorithm:null,mac_length:null,mac_key_length:null,compression_algorithm:e.session.compressionMethod,pre_master_secret:null,master_secret:null,client_random:n,server_random:s}},g.handleServerHello=function(e,t,a){var r=g.parseHelloMessage(e,t,a);if(!e.fail){if(r.version.minor<=e.version.minor)e.version.minor=r.version.minor;else return e.error(e,{message:"Incompatible TLS version.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.protocol_version}});e.session.version=e.version;var n=r.session_id.bytes();n.length>0&&n===e.session.id?(e.expect=B0,e.session.resuming=!0,e.session.sp.server_random=r.random.bytes()):(e.expect=IC,e.session.resuming=!1,g.createSecurityParameters(e,r)),e.session.id=n,e.process()}},g.handleClientHello=function(e,t,a){var r=g.parseHelloMessage(e,t,a);if(!e.fail){var n=r.session_id.bytes(),s=null;if(e.sessionCache&&(s=e.sessionCache.getSession(n),s===null?n="":(s.version.major!==r.version.major||s.version.minor>r.version.minor)&&(s=null,n="")),n.length===0&&(n=L.random.getBytes(32)),e.session.id=n,e.session.clientHelloVersion=r.version,e.session.sp={},s)e.version=e.session.version=s.version,e.session.sp=s.sp;else{for(var i,o=1;o<g.SupportedVersions.length&&(i=g.SupportedVersions[o],!(i.minor<=r.version.minor));++o);e.version={major:i.major,minor:i.minor},e.session.version=e.version}s!==null?(e.expect=Ju,e.session.resuming=!0,e.session.sp.client_random=r.random.bytes()):(e.expect=e.verifyClient!==!1?UC:Xu,e.session.resuming=!1,g.createSecurityParameters(e,r)),e.open=!0,g.queue(e,g.createRecord(e,{type:g.ContentType.handshake,data:g.createServerHello(e)})),e.session.resuming?(g.queue(e,g.createRecord(e,{type:g.ContentType.change_cipher_spec,data:g.createChangeCipherSpec()})),e.state.pending=g.createConnectionState(e),e.state.current.write=e.state.pending.write,g.queue(e,g.createRecord(e,{type:g.ContentType.handshake,data:g.createFinished(e)}))):(g.queue(e,g.createRecord(e,{type:g.ContentType.handshake,data:g.createCertificate(e)})),e.fail||(g.queue(e,g.createRecord(e,{type:g.ContentType.handshake,data:g.createServerKeyExchange(e)})),e.verifyClient!==!1&&g.queue(e,g.createRecord(e,{type:g.ContentType.handshake,data:g.createCertificateRequest(e)})),g.queue(e,g.createRecord(e,{type:g.ContentType.handshake,data:g.createServerHelloDone(e)})))),g.flush(e),e.process()}},g.handleCertificate=function(e,t,a){if(a<3)return e.error(e,{message:"Invalid Certificate message. Message too short.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.illegal_parameter}});var r=t.fragment,n={certificate_list:Bt(r,3)},s,i,o=[];try{for(;n.certificate_list.length()>0;)s=Bt(n.certificate_list,3),i=L.asn1.fromDer(s),s=L.pki.certificateFromAsn1(i,!0),o.push(s)}catch(l){return e.error(e,{message:"Could not parse certificate list.",cause:l,send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.bad_certificate}})}var c=e.entity===g.ConnectionEnd.client;(c||e.verifyClient===!0)&&o.length===0?e.error(e,{message:c?"No server certificate provided.":"No client certificate provided.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.illegal_parameter}}):o.length===0?e.expect=c?I0:Xu:(c?e.session.serverCertificate=o[0]:e.session.clientCertificate=o[0],g.verifyCertificateChain(e,o)&&(e.expect=c?I0:Xu)),e.process()},g.handleServerKeyExchange=function(e,t,a){if(a>0)return e.error(e,{message:"Invalid key parameters. Only RSA is supported.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.unsupported_certificate}});e.expect=BC,e.process()},g.handleClientKeyExchange=function(e,t,a){if(a<48)return e.error(e,{message:"Invalid key parameters. Only RSA is supported.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.unsupported_certificate}});var r=t.fragment,n={enc_pre_master_secret:Bt(r,2).getBytes()},s=null;if(e.getPrivateKey)try{s=e.getPrivateKey(e,e.session.serverCertificate),s=L.pki.privateKeyFromPem(s)}catch(c){e.error(e,{message:"Could not get private key.",cause:c,send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.internal_error}})}if(s===null)return e.error(e,{message:"No private key set.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.internal_error}});try{var i=e.session.sp;i.pre_master_secret=s.decrypt(n.enc_pre_master_secret);var o=e.session.clientHelloVersion;if(o.major!==i.pre_master_secret.charCodeAt(0)||o.minor!==i.pre_master_secret.charCodeAt(1))throw new Error("TLS version rollback attack detected.")}catch{i.pre_master_secret=L.random.getBytes(48)}e.expect=Ju,e.session.clientCertificate!==null&&(e.expect=DC),e.process()},g.handleCertificateRequest=function(e,t,a){if(a<3)return e.error(e,{message:"Invalid CertificateRequest. Message too short.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.illegal_parameter}});var r=t.fragment,n={certificate_types:Bt(r,1),certificate_authorities:Bt(r,2)};e.session.certificateRequest=n,e.expect=_C,e.process()},g.handleCertificateVerify=function(e,t,a){if(a<2)return e.error(e,{message:"Invalid CertificateVerify. Message too short.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.illegal_parameter}});var r=t.fragment;r.read-=4;var n=r.bytes();r.read+=4;var s={signature:Bt(r,2).getBytes()},i=L.util.createBuffer();i.putBuffer(e.session.md5.digest()),i.putBuffer(e.session.sha1.digest()),i=i.getBytes();try{var o=e.session.clientCertificate;if(!o.publicKey.verify(i,s.signature,"NONE"))throw new Error("CertificateVerify signature does not match.");e.session.md5.update(n),e.session.sha1.update(n)}catch{return e.error(e,{message:"Bad signature in CertificateVerify.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.handshake_failure}})}e.expect=Ju,e.process()},g.handleServerHelloDone=function(e,t,a){if(a>0)return e.error(e,{message:"Invalid ServerHelloDone message. Invalid length.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.record_overflow}});if(e.serverCertificate===null){var r={message:"No server certificate provided. Not enough security.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.insufficient_security}},n=0,s=e.verify(e,r.alert.description,n,[]);if(s!==!0)return(s||s===0)&&(typeof s=="object"&&!L.util.isArray(s)?(s.message&&(r.message=s.message),s.alert&&(r.alert.description=s.alert)):typeof s=="number"&&(r.alert.description=s)),e.error(e,r)}e.session.certificateRequest!==null&&(t=g.createRecord(e,{type:g.ContentType.handshake,data:g.createCertificate(e)}),g.queue(e,t)),t=g.createRecord(e,{type:g.ContentType.handshake,data:g.createClientKeyExchange(e)}),g.queue(e,t),e.expect=NC;var i=function(o,c){o.session.certificateRequest!==null&&o.session.clientCertificate!==null&&g.queue(o,g.createRecord(o,{type:g.ContentType.handshake,data:g.createCertificateVerify(o,c)})),g.queue(o,g.createRecord(o,{type:g.ContentType.change_cipher_spec,data:g.createChangeCipherSpec()})),o.state.pending=g.createConnectionState(o),o.state.current.write=o.state.pending.write,g.queue(o,g.createRecord(o,{type:g.ContentType.handshake,data:g.createFinished(o)})),o.expect=B0,g.flush(o),o.process()};if(e.session.certificateRequest===null||e.session.clientCertificate===null)return i(e,null);g.getClientSignature(e,i)},g.handleChangeCipherSpec=function(e,t){if(t.fragment.getByte()!==1)return e.error(e,{message:"Invalid ChangeCipherSpec message received.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.illegal_parameter}});var a=e.entity===g.ConnectionEnd.client;(e.session.resuming&&a||!e.session.resuming&&!a)&&(e.state.pending=g.createConnectionState(e)),e.state.current.read=e.state.pending.read,(!e.session.resuming&&a||e.session.resuming&&!a)&&(e.state.pending=null),e.expect=a?RC:PC,e.process()},g.handleFinished=function(e,t,a){var r=t.fragment;r.read-=4;var n=r.bytes();r.read+=4;var s=t.fragment.getBytes();r=L.util.createBuffer(),r.putBuffer(e.session.md5.digest()),r.putBuffer(e.session.sha1.digest());var i=e.entity===g.ConnectionEnd.client,o=i?"server finished":"client finished",c=e.session.sp,l=12,u=ul;if(r=u(c.master_secret,o,r.getBytes(),l),r.getBytes()!==s)return e.error(e,{message:"Invalid verify_data in Finished message.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.decrypt_error}});e.session.md5.update(n),e.session.sha1.update(n),(e.session.resuming&&i||!e.session.resuming&&!i)&&(g.queue(e,g.createRecord(e,{type:g.ContentType.change_cipher_spec,data:g.createChangeCipherSpec()})),e.state.current.write=e.state.pending.write,e.state.pending=null,g.queue(e,g.createRecord(e,{type:g.ContentType.handshake,data:g.createFinished(e)}))),e.expect=i?kC:OC,e.handshaking=!1,++e.handshakes,e.peerCertificate=i?e.session.serverCertificate:e.session.clientCertificate,g.flush(e),e.isConnected=!0,e.connected(e),e.process()},g.handleAlert=function(e,t){var a=t.fragment,r={level:a.getByte(),description:a.getByte()},n;switch(r.description){case g.Alert.Description.close_notify:n="Connection closed.";break;case g.Alert.Description.unexpected_message:n="Unexpected message.";break;case g.Alert.Description.bad_record_mac:n="Bad record MAC.";break;case g.Alert.Description.decryption_failed:n="Decryption failed.";break;case g.Alert.Description.record_overflow:n="Record overflow.";break;case g.Alert.Description.decompression_failure:n="Decompression failed.";break;case g.Alert.Description.handshake_failure:n="Handshake failure.";break;case g.Alert.Description.bad_certificate:n="Bad certificate.";break;case g.Alert.Description.unsupported_certificate:n="Unsupported certificate.";break;case g.Alert.Description.certificate_revoked:n="Certificate revoked.";break;case g.Alert.Description.certificate_expired:n="Certificate expired.";break;case g.Alert.Description.certificate_unknown:n="Certificate unknown.";break;case g.Alert.Description.illegal_parameter:n="Illegal parameter.";break;case g.Alert.Description.unknown_ca:n="Unknown certificate authority.";break;case g.Alert.Description.access_denied:n="Access denied.";break;case g.Alert.Description.decode_error:n="Decode error.";break;case g.Alert.Description.decrypt_error:n="Decrypt error.";break;case g.Alert.Description.export_restriction:n="Export restriction.";break;case g.Alert.Description.protocol_version:n="Unsupported protocol version.";break;case g.Alert.Description.insufficient_security:n="Insufficient security.";break;case g.Alert.Description.internal_error:n="Internal error.";break;case g.Alert.Description.user_canceled:n="User canceled.";break;case g.Alert.Description.no_renegotiation:n="Renegotiation not supported.";break;default:n="Unknown error.";break}if(r.description===g.Alert.Description.close_notify)return e.close();e.error(e,{message:n,send:!1,origin:e.entity===g.ConnectionEnd.client?"server":"client",alert:r}),e.process()},g.handleHandshake=function(e,t){var a=t.fragment,r=a.getByte(),n=a.getInt24();if(n>a.length())return e.fragmented=t,t.fragment=L.util.createBuffer(),a.read-=4,e.process();e.fragmented=null,a.read-=4;var s=a.bytes(n+4);a.read+=4,r in dl[e.entity][e.expect]?(e.entity===g.ConnectionEnd.server&&!e.open&&!e.fail&&(e.handshaking=!0,e.session={version:null,extensions:{server_name:{serverNameList:[]}},cipherSuite:null,compressionMethod:null,serverCertificate:null,clientCertificate:null,md5:L.md.md5.create(),sha1:L.md.sha1.create()}),r!==g.HandshakeType.hello_request&&r!==g.HandshakeType.certificate_verify&&r!==g.HandshakeType.finished&&(e.session.md5.update(s),e.session.sha1.update(s)),dl[e.entity][e.expect][r](e,t,n)):g.handleUnexpected(e,t)},g.handleApplicationData=function(e,t){e.data.putBuffer(t.fragment),e.dataReady(e),e.process()},g.handleHeartbeat=function(e,t){var a=t.fragment,r=a.getByte(),n=a.getInt16(),s=a.getBytes(n);if(r===g.HeartbeatMessageType.heartbeat_request){if(e.handshaking||n>s.length)return e.process();g.queue(e,g.createRecord(e,{type:g.ContentType.heartbeat,data:g.createHeartbeat(g.HeartbeatMessageType.heartbeat_response,s)})),g.flush(e)}else if(r===g.HeartbeatMessageType.heartbeat_response){if(s!==e.expectedHeartbeatPayload)return e.process();e.heartbeatReceived&&e.heartbeatReceived(e,L.util.createBuffer(s))}e.process()};var AC=0,IC=1,I0=2,BC=3,_C=4,B0=5,RC=6,kC=7,NC=8,LC=0,UC=1,Xu=2,DC=3,Ju=4,PC=5,OC=6,v=g.handleUnexpected,_0=g.handleChangeCipherSpec,$e=g.handleAlert,pt=g.handleHandshake,R0=g.handleApplicationData,Ge=g.handleHeartbeat,Zu=[];Zu[g.ConnectionEnd.client]=[[v,$e,pt,v,Ge],[v,$e,pt,v,Ge],[v,$e,pt,v,Ge],[v,$e,pt,v,Ge],[v,$e,pt,v,Ge],[_0,$e,v,v,Ge],[v,$e,pt,v,Ge],[v,$e,pt,R0,Ge],[v,$e,pt,v,Ge]],Zu[g.ConnectionEnd.server]=[[v,$e,pt,v,Ge],[v,$e,pt,v,Ge],[v,$e,pt,v,Ge],[v,$e,pt,v,Ge],[_0,$e,v,v,Ge],[v,$e,pt,v,Ge],[v,$e,pt,R0,Ge],[v,$e,pt,v,Ge]];var pr=g.handleHelloRequest,FC=g.handleServerHello,k0=g.handleCertificate,N0=g.handleServerKeyExchange,ep=g.handleCertificateRequest,pl=g.handleServerHelloDone,L0=g.handleFinished,dl=[];dl[g.ConnectionEnd.client]=[[v,v,FC,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v],[pr,v,v,v,v,v,v,v,v,v,v,k0,N0,ep,pl,v,v,v,v,v,v],[pr,v,v,v,v,v,v,v,v,v,v,v,N0,ep,pl,v,v,v,v,v,v],[pr,v,v,v,v,v,v,v,v,v,v,v,v,ep,pl,v,v,v,v,v,v],[pr,v,v,v,v,v,v,v,v,v,v,v,v,v,pl,v,v,v,v,v,v],[pr,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v],[pr,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,L0],[pr,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v],[pr,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v]];var MC=g.handleClientHello,VC=g.handleClientKeyExchange,qC=g.handleCertificateVerify;dl[g.ConnectionEnd.server]=[[v,MC,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v],[v,v,v,v,v,v,v,v,v,v,v,k0,v,v,v,v,v,v,v,v,v],[v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,VC,v,v,v,v],[v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,qC,v,v,v,v,v],[v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v],[v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,L0],[v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v],[v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v]],g.generateKeys=function(e,t){var a=ul,r=t.client_random+t.server_random;e.session.resuming||(t.master_secret=a(t.pre_master_secret,"master secret",r,48).bytes(),t.pre_master_secret=null),r=t.server_random+t.client_random;var n=2*t.mac_key_length+2*t.enc_key_length,s=e.version.major===g.Versions.TLS_1_0.major&&e.version.minor===g.Versions.TLS_1_0.minor;s&&(n+=2*t.fixed_iv_length);var i=a(t.master_secret,"key expansion",r,n),o={client_write_MAC_key:i.getBytes(t.mac_key_length),server_write_MAC_key:i.getBytes(t.mac_key_length),client_write_key:i.getBytes(t.enc_key_length),server_write_key:i.getBytes(t.enc_key_length)};return s&&(o.client_write_IV=i.getBytes(t.fixed_iv_length),o.server_write_IV=i.getBytes(t.fixed_iv_length)),o},g.createConnectionState=function(e){var t=e.entity===g.ConnectionEnd.client,a=function(){var s={sequenceNumber:[0,0],macKey:null,macLength:0,macFunction:null,cipherState:null,cipherFunction:function(i){return!0},compressionState:null,compressFunction:function(i){return!0},updateSequenceNumber:function(){s.sequenceNumber[1]===4294967295?(s.sequenceNumber[1]=0,++s.sequenceNumber[0]):++s.sequenceNumber[1]}};return s},r={read:a(),write:a()};if(r.read.update=function(s,i){return r.read.cipherFunction(i,r.read)?r.read.compressFunction(s,i,r.read)||s.error(s,{message:"Could not decompress record.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.decompression_failure}}):s.error(s,{message:"Could not decrypt record or bad MAC.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.bad_record_mac}}),!s.fail},r.write.update=function(s,i){return r.write.compressFunction(s,i,r.write)?r.write.cipherFunction(i,r.write)||s.error(s,{message:"Could not encrypt record.",send:!1,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.internal_error}}):s.error(s,{message:"Could not compress record.",send:!1,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.internal_error}}),!s.fail},e.session){var n=e.session.sp;switch(e.session.cipherSuite.initSecurityParameters(n),n.keys=g.generateKeys(e,n),r.read.macKey=t?n.keys.server_write_MAC_key:n.keys.client_write_MAC_key,r.write.macKey=t?n.keys.client_write_MAC_key:n.keys.server_write_MAC_key,e.session.cipherSuite.initConnectionState(r,e,n),n.compression_algorithm){case g.CompressionMethod.none:break;case g.CompressionMethod.deflate:r.read.compressFunction=wC,r.write.compressFunction=TC;break;default:throw new Error("Unsupported compression algorithm.")}}return r},g.createRandom=function(){var e=new Date,t=+e+e.getTimezoneOffset()*6e4,a=L.util.createBuffer();return a.putInt32(t),a.putBytes(L.random.getBytes(28)),a},g.createRecord=function(e,t){if(!t.data)return null;var a={type:t.type,version:{major:e.version.major,minor:e.version.minor},length:t.data.length(),fragment:t.data};return a},g.createAlert=function(e,t){var a=L.util.createBuffer();return a.putByte(t.level),a.putByte(t.description),g.createRecord(e,{type:g.ContentType.alert,data:a})},g.createClientHello=function(e){e.session.clientHelloVersion={major:e.version.major,minor:e.version.minor};for(var t=L.util.createBuffer(),a=0;a<e.cipherSuites.length;++a){var r=e.cipherSuites[a];t.putByte(r.id[0]),t.putByte(r.id[1])}var n=t.length(),s=L.util.createBuffer();s.putByte(g.CompressionMethod.none);var i=s.length(),o=L.util.createBuffer();if(e.virtualHost){var c=L.util.createBuffer();c.putByte(0),c.putByte(0);var l=L.util.createBuffer();l.putByte(0),Dt(l,2,L.util.createBuffer(e.virtualHost));var u=L.util.createBuffer();Dt(u,2,l),Dt(c,2,u),o.putBuffer(c)}var p=o.length();p>0&&(p+=2);var f=e.session.id,x=f.length+1+2+4+28+2+n+1+i+p,m=L.util.createBuffer();return m.putByte(g.HandshakeType.client_hello),m.putInt24(x),m.putByte(e.version.major),m.putByte(e.version.minor),m.putBytes(e.session.sp.client_random),Dt(m,1,L.util.createBuffer(f)),Dt(m,2,t),Dt(m,1,s),p>0&&Dt(m,2,o),m},g.createServerHello=function(e){var t=e.session.id,a=t.length+1+2+4+28+2+1,r=L.util.createBuffer();return r.putByte(g.HandshakeType.server_hello),r.putInt24(a),r.putByte(e.version.major),r.putByte(e.version.minor),r.putBytes(e.session.sp.server_random),Dt(r,1,L.util.createBuffer(t)),r.putByte(e.session.cipherSuite.id[0]),r.putByte(e.session.cipherSuite.id[1]),r.putByte(e.session.compressionMethod),r},g.createCertificate=function(e){var t=e.entity===g.ConnectionEnd.client,a=null;if(e.getCertificate){var r;t?r=e.session.certificateRequest:r=e.session.extensions.server_name.serverNameList,a=e.getCertificate(e,r)}var n=L.util.createBuffer();if(a!==null)try{L.util.isArray(a)||(a=[a]);for(var s=null,i=0;i<a.length;++i){var o=L.pem.decode(a[i])[0];if(o.type!=="CERTIFICATE"&&o.type!=="X509 CERTIFICATE"&&o.type!=="TRUSTED CERTIFICATE"){var c=new Error('Could not convert certificate from PEM; PEM header type is not "CERTIFICATE", "X509 CERTIFICATE", or "TRUSTED CERTIFICATE".');throw c.headerType=o.type,c}if(o.procType&&o.procType.type==="ENCRYPTED")throw new Error("Could not convert certificate from PEM; PEM is encrypted.");var l=L.util.createBuffer(o.body);s===null&&(s=L.asn1.fromDer(l.bytes(),!1));var u=L.util.createBuffer();Dt(u,3,l),n.putBuffer(u)}a=L.pki.certificateFromAsn1(s),t?e.session.clientCertificate=a:e.session.serverCertificate=a}catch(x){return e.error(e,{message:"Could not send certificate list.",cause:x,send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.bad_certificate}})}var p=3+n.length(),f=L.util.createBuffer();return f.putByte(g.HandshakeType.certificate),f.putInt24(p),Dt(f,3,n),f},g.createClientKeyExchange=function(e){var t=L.util.createBuffer();t.putByte(e.session.clientHelloVersion.major),t.putByte(e.session.clientHelloVersion.minor),t.putBytes(L.random.getBytes(46));var a=e.session.sp;a.pre_master_secret=t.getBytes();var r=e.session.serverCertificate.publicKey;t=r.encrypt(a.pre_master_secret);var n=t.length+2,s=L.util.createBuffer();return s.putByte(g.HandshakeType.client_key_exchange),s.putInt24(n),s.putInt16(t.length),s.putBytes(t),s},g.createServerKeyExchange=function(e){var t=L.util.createBuffer();return t},g.getClientSignature=function(e,t){var a=L.util.createBuffer();a.putBuffer(e.session.md5.digest()),a.putBuffer(e.session.sha1.digest()),a=a.getBytes(),e.getSignature=e.getSignature||function(r,n,s){var i=null;if(r.getPrivateKey)try{i=r.getPrivateKey(r,r.session.clientCertificate),i=L.pki.privateKeyFromPem(i)}catch(o){r.error(r,{message:"Could not get private key.",cause:o,send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.internal_error}})}i===null?r.error(r,{message:"No private key set.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.internal_error}}):n=i.sign(n,null),s(r,n)},e.getSignature(e,a,t)},g.createCertificateVerify=function(e,t){var a=t.length+2,r=L.util.createBuffer();return r.putByte(g.HandshakeType.certificate_verify),r.putInt24(a),r.putInt16(t.length),r.putBytes(t),r},g.createCertificateRequest=function(e){var t=L.util.createBuffer();t.putByte(1);var a=L.util.createBuffer();for(var r in e.caStore.certs){var n=e.caStore.certs[r],s=L.pki.distinguishedNameToAsn1(n.subject),i=L.asn1.toDer(s);a.putInt16(i.length()),a.putBuffer(i)}var o=1+t.length()+2+a.length(),c=L.util.createBuffer();return c.putByte(g.HandshakeType.certificate_request),c.putInt24(o),Dt(c,1,t),Dt(c,2,a),c},g.createServerHelloDone=function(e){var t=L.util.createBuffer();return t.putByte(g.HandshakeType.server_hello_done),t.putInt24(0),t},g.createChangeCipherSpec=function(){var e=L.util.createBuffer();return e.putByte(1),e},g.createFinished=function(e){var t=L.util.createBuffer();t.putBuffer(e.session.md5.digest()),t.putBuffer(e.session.sha1.digest());var a=e.entity===g.ConnectionEnd.client,r=e.session.sp,n=12,s=ul,i=a?"client finished":"server finished";t=s(r.master_secret,i,t.getBytes(),n);var o=L.util.createBuffer();return o.putByte(g.HandshakeType.finished),o.putInt24(t.length()),o.putBuffer(t),o},g.createHeartbeat=function(e,t,a){typeof a>"u"&&(a=t.length);var r=L.util.createBuffer();r.putByte(e),r.putInt16(a),r.putBytes(t);var n=r.length(),s=Math.max(16,n-a-3);return r.putBytes(L.random.getBytes(s)),r},g.queue=function(e,t){if(t&&!(t.fragment.length()===0&&(t.type===g.ContentType.handshake||t.type===g.ContentType.alert||t.type===g.ContentType.change_cipher_spec))){if(t.type===g.ContentType.handshake){var a=t.fragment.bytes();e.session.md5.update(a),e.session.sha1.update(a),a=null}var r;if(t.fragment.length()<=g.MaxFragment)r=[t];else{r=[];for(var n=t.fragment.bytes();n.length>g.MaxFragment;)r.push(g.createRecord(e,{type:t.type,data:L.util.createBuffer(n.slice(0,g.MaxFragment))})),n=n.slice(g.MaxFragment);n.length>0&&r.push(g.createRecord(e,{type:t.type,data:L.util.createBuffer(n)}))}for(var s=0;s<r.length&&!e.fail;++s){var i=r[s],o=e.state.current.write;o.update(e,i)&&e.records.push(i)}}},g.flush=function(e){for(var t=0;t<e.records.length;++t){var a=e.records[t];e.tlsData.putByte(a.type),e.tlsData.putByte(a.version.major),e.tlsData.putByte(a.version.minor),e.tlsData.putInt16(a.fragment.length()),e.tlsData.putBuffer(e.records[t].fragment)}return e.records=[],e.tlsDataReady(e)};var tp=function(e){switch(e){case!0:return!0;case L.pki.certificateError.bad_certificate:return g.Alert.Description.bad_certificate;case L.pki.certificateError.unsupported_certificate:return g.Alert.Description.unsupported_certificate;case L.pki.certificateError.certificate_revoked:return g.Alert.Description.certificate_revoked;case L.pki.certificateError.certificate_expired:return g.Alert.Description.certificate_expired;case L.pki.certificateError.certificate_unknown:return g.Alert.Description.certificate_unknown;case L.pki.certificateError.unknown_ca:return g.Alert.Description.unknown_ca;default:return g.Alert.Description.bad_certificate}},jC=function(e){switch(e){case!0:return!0;case g.Alert.Description.bad_certificate:return L.pki.certificateError.bad_certificate;case g.Alert.Description.unsupported_certificate:return L.pki.certificateError.unsupported_certificate;case g.Alert.Description.certificate_revoked:return L.pki.certificateError.certificate_revoked;case g.Alert.Description.certificate_expired:return L.pki.certificateError.certificate_expired;case g.Alert.Description.certificate_unknown:return L.pki.certificateError.certificate_unknown;case g.Alert.Description.unknown_ca:return L.pki.certificateError.unknown_ca;default:return L.pki.certificateError.bad_certificate}};g.verifyCertificateChain=function(e,t){try{var a={};for(var r in e.verifyOptions)a[r]=e.verifyOptions[r];a.verify=function(s,i,o){var c=tp(s),l=e.verify(e,s,i,o);if(l!==!0){if(typeof l=="object"&&!L.util.isArray(l)){var u=new Error("The application rejected the certificate.");throw u.send=!0,u.alert={level:g.Alert.Level.fatal,description:g.Alert.Description.bad_certificate},l.message&&(u.message=l.message),l.alert&&(u.alert.description=l.alert),u}l!==s&&(l=jC(l))}return l},L.pki.verifyCertificateChain(e.caStore,t,a)}catch(s){var n=s;(typeof n!="object"||L.util.isArray(n))&&(n={send:!0,alert:{level:g.Alert.Level.fatal,description:tp(s)}}),"send"in n||(n.send=!0),"alert"in n||(n.alert={level:g.Alert.Level.fatal,description:tp(n.error)}),e.error(e,n)}return!e.fail},g.createSessionCache=function(e,t){var a=null;if(e&&e.getSession&&e.setSession&&e.order)a=e;else{a={},a.cache=e||{},a.capacity=Math.max(t||100,1),a.order=[];for(var r in e)a.order.length<=t?a.order.push(r):delete e[r];a.getSession=function(n){var s=null,i=null;if(n?i=L.util.bytesToHex(n):a.order.length>0&&(i=a.order[0]),i!==null&&i in a.cache){s=a.cache[i],delete a.cache[i];for(var o in a.order)if(a.order[o]===i){a.order.splice(o,1);break}}return s},a.setSession=function(n,s){if(a.order.length===a.capacity){var i=a.order.shift();delete a.cache[i]}var i=L.util.bytesToHex(n);a.order.push(i),a.cache[i]=s}}return a},g.createConnection=function(e){var t=null;e.caStore?L.util.isArray(e.caStore)?t=L.pki.createCaStore(e.caStore):t=e.caStore:t=L.pki.createCaStore();var a=e.cipherSuites||null;if(a===null){a=[];for(var r in g.CipherSuites)a.push(g.CipherSuites[r])}var n=e.server?g.ConnectionEnd.server:g.ConnectionEnd.client,s=e.sessionCache?g.createSessionCache(e.sessionCache):null,i={version:{major:g.Version.major,minor:g.Version.minor},entity:n,sessionId:e.sessionId,caStore:t,sessionCache:s,cipherSuites:a,connected:e.connected,virtualHost:e.virtualHost||null,verifyClient:e.verifyClient||!1,verify:e.verify||function(u,p,f,x){return p},verifyOptions:e.verifyOptions||{},getCertificate:e.getCertificate||null,getPrivateKey:e.getPrivateKey||null,getSignature:e.getSignature||null,input:L.util.createBuffer(),tlsData:L.util.createBuffer(),data:L.util.createBuffer(),tlsDataReady:e.tlsDataReady,dataReady:e.dataReady,heartbeatReceived:e.heartbeatReceived,closed:e.closed,error:function(u,p){p.origin=p.origin||(u.entity===g.ConnectionEnd.client?"client":"server"),p.send&&(g.queue(u,g.createAlert(u,p.alert)),g.flush(u));var f=p.fatal!==!1;f&&(u.fail=!0),e.error(u,p),f&&u.close(!1)},deflate:e.deflate||null,inflate:e.inflate||null};i.reset=function(u){i.version={major:g.Version.major,minor:g.Version.minor},i.record=null,i.session=null,i.peerCertificate=null,i.state={pending:null,current:null},i.expect=i.entity===g.ConnectionEnd.client?AC:LC,i.fragmented=null,i.records=[],i.open=!1,i.handshakes=0,i.handshaking=!1,i.isConnected=!1,i.fail=!(u||typeof u>"u"),i.input.clear(),i.tlsData.clear(),i.data.clear(),i.state.current=g.createConnectionState(i)},i.reset();var o=function(u,p){var f=p.type-g.ContentType.change_cipher_spec,x=Zu[u.entity][u.expect];f in x?x[f](u,p):g.handleUnexpected(u,p)},c=function(u){var p=0,f=u.input,x=f.length();if(x<5)p=5-x;else{u.record={type:f.getByte(),version:{major:f.getByte(),minor:f.getByte()},length:f.getInt16(),fragment:L.util.createBuffer(),ready:!1};var m=u.record.version.major===u.version.major;m&&u.session&&u.session.version&&(m=u.record.version.minor===u.version.minor),m||u.error(u,{message:"Incompatible TLS version.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.protocol_version}})}return p},l=function(u){var p=0,f=u.input,x=f.length();if(x<u.record.length)p=u.record.length-x;else{u.record.fragment.putBytes(f.getBytes(u.record.length)),f.compact();var m=u.state.current.read;m.update(u,u.record)&&(u.fragmented!==null&&(u.fragmented.type===u.record.type?(u.fragmented.fragment.putBuffer(u.record.fragment),u.record=u.fragmented):u.error(u,{message:"Invalid fragmented record.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.unexpected_message}})),u.record.ready=!0)}return p};return i.handshake=function(u){if(i.entity!==g.ConnectionEnd.client)i.error(i,{message:"Cannot initiate handshake as a server.",fatal:!1});else if(i.handshaking)i.error(i,{message:"Handshake already in progress.",fatal:!1});else{i.fail&&!i.open&&i.handshakes===0&&(i.fail=!1),i.handshaking=!0,u=u||"";var p=null;u.length>0&&(i.sessionCache&&(p=i.sessionCache.getSession(u)),p===null&&(u="")),u.length===0&&i.sessionCache&&(p=i.sessionCache.getSession(),p!==null&&(u=p.id)),i.session={id:u,version:null,cipherSuite:null,compressionMethod:null,serverCertificate:null,certificateRequest:null,clientCertificate:null,sp:{},md5:L.md.md5.create(),sha1:L.md.sha1.create()},p&&(i.version=p.version,i.session.sp=p.sp),i.session.sp.client_random=g.createRandom().getBytes(),i.open=!0,g.queue(i,g.createRecord(i,{type:g.ContentType.handshake,data:g.createClientHello(i)})),g.flush(i)}},i.process=function(u){var p=0;return u&&i.input.putBytes(u),i.fail||(i.record!==null&&i.record.ready&&i.record.fragment.isEmpty()&&(i.record=null),i.record===null&&(p=c(i)),!i.fail&&i.record!==null&&!i.record.ready&&(p=l(i)),!i.fail&&i.record!==null&&i.record.ready&&o(i,i.record)),p},i.prepare=function(u){return g.queue(i,g.createRecord(i,{type:g.ContentType.application_data,data:L.util.createBuffer(u)})),g.flush(i)},i.prepareHeartbeatRequest=function(u,p){return u instanceof L.util.ByteBuffer&&(u=u.bytes()),typeof p>"u"&&(p=u.length),i.expectedHeartbeatPayload=u,g.queue(i,g.createRecord(i,{type:g.ContentType.heartbeat,data:g.createHeartbeat(g.HeartbeatMessageType.heartbeat_request,u,p)})),g.flush(i)},i.close=function(u){if(!i.fail&&i.sessionCache&&i.session){var p={id:i.session.id,version:i.session.version,sp:i.session.sp};p.sp.keys=null,i.sessionCache.setSession(p.id,p)}i.open&&(i.open=!1,i.input.clear(),(i.isConnected||i.handshaking)&&(i.isConnected=i.handshaking=!1,g.queue(i,g.createAlert(i,{level:g.Alert.Level.warning,description:g.Alert.Description.close_notify})),g.flush(i)),i.closed(i)),i.reset(u)},i},L.tls=L.tls||{};for(var rp in g)typeof g[rp]!="function"&&(L.tls[rp]=g[rp]);L.tls.prf_tls1=ul,L.tls.hmac_sha1=SC,L.tls.createSessionCache=g.createSessionCache,L.tls.createConnection=g.createConnection;var dr=te,Pt=dr.tls;Pt.CipherSuites.TLS_RSA_WITH_AES_128_CBC_SHA={id:[0,47],name:"TLS_RSA_WITH_AES_128_CBC_SHA",initSecurityParameters:function(e){e.bulk_cipher_algorithm=Pt.BulkCipherAlgorithm.aes,e.cipher_type=Pt.CipherType.block,e.enc_key_length=16,e.block_length=16,e.fixed_iv_length=16,e.record_iv_length=16,e.mac_algorithm=Pt.MACAlgorithm.hmac_sha1,e.mac_length=20,e.mac_key_length=20},initConnectionState:U0},Pt.CipherSuites.TLS_RSA_WITH_AES_256_CBC_SHA={id:[0,53],name:"TLS_RSA_WITH_AES_256_CBC_SHA",initSecurityParameters:function(e){e.bulk_cipher_algorithm=Pt.BulkCipherAlgorithm.aes,e.cipher_type=Pt.CipherType.block,e.enc_key_length=32,e.block_length=16,e.fixed_iv_length=16,e.record_iv_length=16,e.mac_algorithm=Pt.MACAlgorithm.hmac_sha1,e.mac_length=20,e.mac_key_length=20},initConnectionState:U0};function U0(e,t,a){var r=t.entity===dr.tls.ConnectionEnd.client;e.read.cipherState={init:!1,cipher:dr.cipher.createDecipher("AES-CBC",r?a.keys.server_write_key:a.keys.client_write_key),iv:r?a.keys.server_write_IV:a.keys.client_write_IV},e.write.cipherState={init:!1,cipher:dr.cipher.createCipher("AES-CBC",r?a.keys.client_write_key:a.keys.server_write_key),iv:r?a.keys.client_write_IV:a.keys.server_write_IV},e.read.cipherFunction=$C,e.write.cipherFunction=KC,e.read.macLength=e.write.macLength=a.mac_length,e.read.macFunction=e.write.macFunction=Pt.hmac_sha1}function KC(e,t){var a=!1,r=t.macFunction(t.macKey,t.sequenceNumber,e);e.fragment.putBytes(r),t.updateSequenceNumber();var n;e.version.minor===Pt.Versions.TLS_1_0.minor?n=t.cipherState.init?null:t.cipherState.iv:n=dr.random.getBytesSync(16),t.cipherState.init=!0;var s=t.cipherState.cipher;return s.start({iv:n}),e.version.minor>=Pt.Versions.TLS_1_1.minor&&s.output.putBytes(n),s.update(e.fragment),s.finish(zC)&&(e.fragment=s.output,e.length=e.fragment.length(),a=!0),a}function zC(e,t,a){if(!a){var r=e-t.length()%e;t.fillWithByte(r-1,r)}return!0}function HC(e,t,a){var r=!0;if(a){for(var n=t.length(),s=t.last(),i=n-1-s;i<n-1;++i)r=r&&t.at(i)==s;r&&t.truncate(s+1)}return r}function $C(e,t){var a=!1,r;e.version.minor===Pt.Versions.TLS_1_0.minor?r=t.cipherState.init?null:t.cipherState.iv:r=e.fragment.getBytes(16),t.cipherState.init=!0;var n=t.cipherState.cipher;n.start({iv:r}),n.update(e.fragment),a=n.finish(HC);var s=t.macLength,i=dr.random.getBytesSync(s),o=n.output.length();o>=s?(e.fragment=n.output.getBytes(o-s),i=n.output.getBytes(s)):e.fragment=n.output.getBytes(),e.fragment=dr.util.createBuffer(e.fragment),e.length=e.fragment.length();var c=t.macFunction(t.macKey,t.sequenceNumber,e);return t.updateSequenceNumber(),a=GC(t.macKey,i,c)&&a,a}function GC(e,t,a){var r=dr.hmac.create();return r.start("SHA1",e),r.update(t),t=r.digest().getBytes(),r.start(null,null),r.update(a),a=r.digest().getBytes(),t===a}var Be=te,vc=Be.sha512=Be.sha512||{};Be.md.sha512=Be.md.algorithms.sha512=vc;var D0=Be.sha384=Be.sha512.sha384=Be.sha512.sha384||{};D0.create=function(){return vc.create("SHA-384")},Be.md.sha384=Be.md.algorithms.sha384=D0,Be.sha512.sha256=Be.sha512.sha256||{create:function(){return vc.create("SHA-512/256")}},Be.md["sha512/256"]=Be.md.algorithms["sha512/256"]=Be.sha512.sha256,Be.sha512.sha224=Be.sha512.sha224||{create:function(){return vc.create("SHA-512/224")}},Be.md["sha512/224"]=Be.md.algorithms["sha512/224"]=Be.sha512.sha224,vc.create=function(e){if(P0||QC(),typeof e>"u"&&(e="SHA-512"),!(e in kr))throw new Error("Invalid SHA-512 algorithm: "+e);for(var t=kr[e],a=null,r=Be.util.createBuffer(),n=new Array(80),s=0;s<80;++s)n[s]=new Array(2);var i=64;switch(e){case"SHA-384":i=48;break;case"SHA-512/256":i=32;break;case"SHA-512/224":i=28;break}var o={algorithm:e.replace("-","").toLowerCase(),blockLength:128,digestLength:i,messageLength:0,fullMessageLength:null,messageLengthSize:16};return o.start=function(){o.messageLength=0,o.fullMessageLength=o.messageLength128=[];for(var c=o.messageLengthSize/4,l=0;l<c;++l)o.fullMessageLength.push(0);r=Be.util.createBuffer(),a=new Array(t.length);for(var l=0;l<t.length;++l)a[l]=t[l].slice(0);return o},o.start(),o.update=function(c,l){l==="utf8"&&(c=Be.util.encodeUtf8(c));var u=c.length;o.messageLength+=u,u=[u/4294967296>>>0,u>>>0];for(var p=o.fullMessageLength.length-1;p>=0;--p)o.fullMessageLength[p]+=u[1],u[1]=u[0]+(o.fullMessageLength[p]/4294967296>>>0),o.fullMessageLength[p]=o.fullMessageLength[p]>>>0,u[0]=u[1]/4294967296>>>0;return r.putBytes(c),O0(a,n,r),(r.read>2048||r.length()===0)&&r.compact(),o},o.digest=function(){var c=Be.util.createBuffer();c.putBytes(r.bytes());var l=o.fullMessageLength[o.fullMessageLength.length-1]+o.messageLengthSize,u=l&o.blockLength-1;c.putBytes(ap.substr(0,o.blockLength-u));for(var p,f,x=o.fullMessageLength[0]*8,m=0;m<o.fullMessageLength.length-1;++m)p=o.fullMessageLength[m+1]*8,f=p/4294967296>>>0,x+=f,c.putInt32(x>>>0),x=p>>>0;c.putInt32(x);for(var y=new Array(a.length),m=0;m<a.length;++m)y[m]=a[m].slice(0);O0(y,n,c);var b=Be.util.createBuffer(),S;e==="SHA-512"?S=y.length:e==="SHA-384"?S=y.length-2:S=y.length-4;for(var m=0;m<S;++m)b.putInt32(y[m][0]),(m!==S-1||e!=="SHA-512/224")&&b.putInt32(y[m][1]);return b},o};var ap=null,P0=!1,np=null,kr=null;function QC(){ap="\x80",ap+=Be.util.fillString("\0",128),np=[[1116352408,3609767458],[1899447441,602891725],[3049323471,3964484399],[3921009573,2173295548],[961987163,4081628472],[1508970993,3053834265],[2453635748,2937671579],[2870763221,3664609560],[3624381080,2734883394],[310598401,1164996542],[607225278,1323610764],[1426881987,3590304994],[1925078388,4068182383],[2162078206,991336113],[2614888103,633803317],[3248222580,3479774868],[3835390401,2666613458],[4022224774,944711139],[264347078,2341262773],[604807628,2007800933],[770255983,1495990901],[1249150122,1856431235],[1555081692,3175218132],[1996064986,2198950837],[2554220882,3999719339],[2821834349,766784016],[2952996808,2566594879],[3210313671,3203337956],[3336571891,1034457026],[3584528711,2466948901],[113926993,3758326383],[338241895,168717936],[666307205,1188179964],[773529912,1546045734],[1294757372,1522805485],[1396182291,2643833823],[1695183700,2343527390],[1986661051,1014477480],[2177026350,1206759142],[2456956037,344077627],[2730485921,1290863460],[2820302411,3158454273],[3259730800,3505952657],[3345764771,106217008],[3516065817,3606008344],[3600352804,1432725776],[4094571909,1467031594],[275423344,851169720],[430227734,3100823752],[506948616,1363258195],[659060556,3750685593],[883997877,3785050280],[958139571,3318307427],[1322822218,3812723403],[1537002063,2003034995],[1747873779,3602036899],[1955562222,1575990012],[2024104815,1125592928],[2227730452,2716904306],[2361852424,442776044],[2428436474,593698344],[2756734187,3733110249],[3204031479,2999351573],[3329325298,3815920427],[3391569614,3928383900],[3515267271,566280711],[3940187606,3454069534],[4118630271,4000239992],[116418474,1914138554],[174292421,2731055270],[289380356,3203993006],[460393269,320620315],[685471733,587496836],[852142971,1086792851],[1017036298,365543100],[1126000580,2618297676],[1288033470,3409855158],[1501505948,4234509866],[1607167915,987167468],[1816402316,1246189591]],kr={},kr["SHA-512"]=[[1779033703,4089235720],[3144134277,2227873595],[1013904242,4271175723],[2773480762,1595750129],[1359893119,2917565137],[2600822924,725511199],[528734635,4215389547],[1541459225,327033209]],kr["SHA-384"]=[[3418070365,3238371032],[1654270250,914150663],[2438529370,812702999],[355462360,4144912697],[1731405415,4290775857],[2394180231,1750603025],[3675008525,1694076839],[1203062813,3204075428]],kr["SHA-512/256"]=[[573645204,4230739756],[2673172387,3360449730],[596883563,1867755857],[2520282905,1497426621],[2519219938,2827943907],[3193839141,1401305490],[721525244,746961066],[246885852,2177182882]],kr["SHA-512/224"]=[[2352822216,424955298],[1944164710,2312950998],[502970286,855612546],[1738396948,1479516111],[258812777,2077511080],[2011393907,79989058],[1067287976,1780299464],[286451373,2446758561]],P0=!0}function O0(e,t,a){for(var r,n,s,i,o,c,l,u,p,f,x,m,y,b,S,B,_,P,U,k,H,G,Z,ce,pe,he,_e,ke,le,re,j,Ne,At,$,M,X=a.length();X>=128;){for(le=0;le<16;++le)t[le][0]=a.getInt32()>>>0,t[le][1]=a.getInt32()>>>0;for(;le<80;++le)Ne=t[le-2],re=Ne[0],j=Ne[1],r=((re>>>19|j<<13)^(j>>>29|re<<3)^re>>>6)>>>0,n=((re<<13|j>>>19)^(j<<3|re>>>29)^(re<<26|j>>>6))>>>0,$=t[le-15],re=$[0],j=$[1],s=((re>>>1|j<<31)^(re>>>8|j<<24)^re>>>7)>>>0,i=((re<<31|j>>>1)^(re<<24|j>>>8)^(re<<25|j>>>7))>>>0,At=t[le-7],M=t[le-16],j=n+At[1]+i+M[1],t[le][0]=r+At[0]+s+M[0]+(j/4294967296>>>0)>>>0,t[le][1]=j>>>0;for(y=e[0][0],b=e[0][1],S=e[1][0],B=e[1][1],_=e[2][0],P=e[2][1],U=e[3][0],k=e[3][1],H=e[4][0],G=e[4][1],Z=e[5][0],ce=e[5][1],pe=e[6][0],he=e[6][1],_e=e[7][0],ke=e[7][1],le=0;le<80;++le)l=((H>>>14|G<<18)^(H>>>18|G<<14)^(G>>>9|H<<23))>>>0,u=((H<<18|G>>>14)^(H<<14|G>>>18)^(G<<23|H>>>9))>>>0,p=(pe^H&(Z^pe))>>>0,f=(he^G&(ce^he))>>>0,o=((y>>>28|b<<4)^(b>>>2|y<<30)^(b>>>7|y<<25))>>>0,c=((y<<4|b>>>28)^(b<<30|y>>>2)^(b<<25|y>>>7))>>>0,x=(y&S|_&(y^S))>>>0,m=(b&B|P&(b^B))>>>0,j=ke+u+f+np[le][1]+t[le][1],r=_e+l+p+np[le][0]+t[le][0]+(j/4294967296>>>0)>>>0,n=j>>>0,j=c+m,s=o+x+(j/4294967296>>>0)>>>0,i=j>>>0,_e=pe,ke=he,pe=Z,he=ce,Z=H,ce=G,j=k+n,H=U+r+(j/4294967296>>>0)>>>0,G=j>>>0,U=_,k=P,_=S,P=B,S=y,B=b,j=n+i,y=r+s+(j/4294967296>>>0)>>>0,b=j>>>0;j=e[0][1]+b,e[0][0]=e[0][0]+y+(j/4294967296>>>0)>>>0,e[0][1]=j>>>0,j=e[1][1]+B,e[1][0]=e[1][0]+S+(j/4294967296>>>0)>>>0,e[1][1]=j>>>0,j=e[2][1]+P,e[2][0]=e[2][0]+_+(j/4294967296>>>0)>>>0,e[2][1]=j>>>0,j=e[3][1]+k,e[3][0]=e[3][0]+U+(j/4294967296>>>0)>>>0,e[3][1]=j>>>0,j=e[4][1]+G,e[4][0]=e[4][0]+H+(j/4294967296>>>0)>>>0,e[4][1]=j>>>0,j=e[5][1]+ce,e[5][0]=e[5][0]+Z+(j/4294967296>>>0)>>>0,e[5][1]=j>>>0,j=e[6][1]+he,e[6][0]=e[6][0]+pe+(j/4294967296>>>0)>>>0,e[6][1]=j>>>0,j=e[7][1]+ke,e[7][0]=e[7][0]+_e+(j/4294967296>>>0)>>>0,e[7][1]=j>>>0,X-=128}}var ip={},WC=te,ze=WC.asn1;ip.privateKeyValidator={name:"PrivateKeyInfo",tagClass:ze.Class.UNIVERSAL,type:ze.Type.SEQUENCE,constructed:!0,value:[{name:"PrivateKeyInfo.version",tagClass:ze.Class.UNIVERSAL,type:ze.Type.INTEGER,constructed:!1,capture:"privateKeyVersion"},{name:"PrivateKeyInfo.privateKeyAlgorithm",tagClass:ze.Class.UNIVERSAL,type:ze.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:ze.Class.UNIVERSAL,type:ze.Type.OID,constructed:!1,capture:"privateKeyOid"}]},{name:"PrivateKeyInfo",tagClass:ze.Class.UNIVERSAL,type:ze.Type.OCTETSTRING,constructed:!1,capture:"privateKey"}]},ip.publicKeyValidator={name:"SubjectPublicKeyInfo",tagClass:ze.Class.UNIVERSAL,type:ze.Type.SEQUENCE,constructed:!0,captureAsn1:"subjectPublicKeyInfo",value:[{name:"SubjectPublicKeyInfo.AlgorithmIdentifier",tagClass:ze.Class.UNIVERSAL,type:ze.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:ze.Class.UNIVERSAL,type:ze.Type.OID,constructed:!1,capture:"publicKeyOid"}]},{tagClass:ze.Class.UNIVERSAL,type:ze.Type.BITSTRING,constructed:!1,composed:!0,captureBitStringValue:"ed25519PublicKey"}]};var Qe=te,F0=ip,YC=F0.publicKeyValidator,XC=F0.privateKeyValidator;if(typeof JC>"u")var JC=Qe.jsbn.BigInteger;var sp=Qe.util.ByteBuffer,wt=typeof Buffer>"u"?Uint8Array:Buffer;Qe.pki=Qe.pki||{},Qe.pki.ed25519=Qe.ed25519=Qe.ed25519||{};var oe=Qe.ed25519;oe.constants={},oe.constants.PUBLIC_KEY_BYTE_LENGTH=32,oe.constants.PRIVATE_KEY_BYTE_LENGTH=64,oe.constants.SEED_BYTE_LENGTH=32,oe.constants.SIGN_BYTE_LENGTH=64,oe.constants.HASH_BYTE_LENGTH=64,oe.generateKeyPair=function(e){e=e||{};var t=e.seed;if(t===void 0)t=Qe.random.getBytesSync(oe.constants.SEED_BYTE_LENGTH);else if(typeof t=="string"){if(t.length!==oe.constants.SEED_BYTE_LENGTH)throw new TypeError('"seed" must be '+oe.constants.SEED_BYTE_LENGTH+" bytes in length.")}else if(!(t instanceof Uint8Array))throw new TypeError('"seed" must be a node.js Buffer, Uint8Array, or a binary string.');t=er({message:t,encoding:"binary"});for(var a=new wt(oe.constants.PUBLIC_KEY_BYTE_LENGTH),r=new wt(oe.constants.PRIVATE_KEY_BYTE_LENGTH),n=0;n<32;++n)r[n]=t[n];return r2(a,r),{publicKey:a,privateKey:r}},oe.privateKeyFromAsn1=function(e){var t={},a=[],r=Qe.asn1.validate(e,XC,t,a);if(!r){var n=new Error("Invalid Key.");throw n.errors=a,n}var s=Qe.asn1.derToOid(t.privateKeyOid),i=Qe.oids.EdDSA25519;if(s!==i)throw new Error('Invalid OID "'+s+'"; OID must be "'+i+'".');var o=t.privateKey,c=er({message:Qe.asn1.fromDer(o).value,encoding:"binary"});return{privateKeyBytes:c}},oe.publicKeyFromAsn1=function(e){var t={},a=[],r=Qe.asn1.validate(e,YC,t,a);if(!r){var n=new Error("Invalid Key.");throw n.errors=a,n}var s=Qe.asn1.derToOid(t.publicKeyOid),i=Qe.oids.EdDSA25519;if(s!==i)throw new Error('Invalid OID "'+s+'"; OID must be "'+i+'".');var o=t.ed25519PublicKey;if(o.length!==oe.constants.PUBLIC_KEY_BYTE_LENGTH)throw new Error("Key length is invalid.");return er({message:o,encoding:"binary"})},oe.publicKeyFromPrivateKey=function(e){e=e||{};var t=er({message:e.privateKey,encoding:"binary"});if(t.length!==oe.constants.PRIVATE_KEY_BYTE_LENGTH)throw new TypeError('"options.privateKey" must have a byte length of '+oe.constants.PRIVATE_KEY_BYTE_LENGTH);for(var a=new wt(oe.constants.PUBLIC_KEY_BYTE_LENGTH),r=0;r<a.length;++r)a[r]=t[32+r];return a},oe.sign=function(e){e=e||{};var t=er(e),a=er({message:e.privateKey,encoding:"binary"});if(a.length===oe.constants.SEED_BYTE_LENGTH){var r=oe.generateKeyPair({seed:a});a=r.privateKey}else if(a.length!==oe.constants.PRIVATE_KEY_BYTE_LENGTH)throw new TypeError('"options.privateKey" must have a byte length of '+oe.constants.SEED_BYTE_LENGTH+" or "+oe.constants.PRIVATE_KEY_BYTE_LENGTH);var n=new wt(oe.constants.SIGN_BYTE_LENGTH+t.length);a2(n,t,t.length,a);for(var s=new wt(oe.constants.SIGN_BYTE_LENGTH),i=0;i<s.length;++i)s[i]=n[i];return s},oe.verify=function(e){e=e||{};var t=er(e);if(e.signature===void 0)throw new TypeError('"options.signature" must be a node.js Buffer, a Uint8Array, a forge ByteBuffer, or a binary string.');var a=er({message:e.signature,encoding:"binary"});if(a.length!==oe.constants.SIGN_BYTE_LENGTH)throw new TypeError('"options.signature" must have a byte length of '+oe.constants.SIGN_BYTE_LENGTH);var r=er({message:e.publicKey,encoding:"binary"});if(r.length!==oe.constants.PUBLIC_KEY_BYTE_LENGTH)throw new TypeError('"options.publicKey" must have a byte length of '+oe.constants.PUBLIC_KEY_BYTE_LENGTH);var n=new wt(oe.constants.SIGN_BYTE_LENGTH+t.length),s=new wt(oe.constants.SIGN_BYTE_LENGTH+t.length),i;for(i=0;i<oe.constants.SIGN_BYTE_LENGTH;++i)n[i]=a[i];for(i=0;i<t.length;++i)n[i+oe.constants.SIGN_BYTE_LENGTH]=t[i];return n2(s,n,n.length,r)>=0};function er(e){var t=e.message;if(t instanceof Uint8Array||t instanceof wt)return t;var a=e.encoding;if(t===void 0)if(e.md)t=e.md.digest().getBytes(),a="binary";else throw new TypeError('"options.message" or "options.md" not specified.');if(typeof t=="string"&&!a)throw new TypeError('"options.encoding" must be "binary" or "utf8".');if(typeof t=="string"){if(typeof Buffer<"u")return Buffer.from(t,a);t=new sp(t,a)}else if(!(t instanceof sp))throw new TypeError('"options.message" must be a node.js Buffer, a Uint8Array, a forge ByteBuffer, or a string with "options.encoding" specifying its encoding.');for(var r=new wt(t.length()),n=0;n<r.length;++n)r[n]=t.at(n);return r}var op=Y(),fl=Y([1]),ZC=Y([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),e2=Y([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),M0=Y([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),V0=Y([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),gc=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]),t2=Y([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function xc(e,t){var a=Qe.md.sha512.create(),r=new sp(e);a.update(r.getBytes(t),"binary");var n=a.digest().getBytes();if(typeof Buffer<"u")return Buffer.from(n,"binary");for(var s=new wt(oe.constants.HASH_BYTE_LENGTH),i=0;i<64;++i)s[i]=n.charCodeAt(i);return s}function r2(e,t){var a=[Y(),Y(),Y(),Y()],r,n=xc(t,32);for(n[0]&=248,n[31]&=127,n[31]|=64,pp(a,n),up(e,a),r=0;r<32;++r)t[r+32]=e[r];return 0}function a2(e,t,a,r){var n,s,i=new Float64Array(64),o=[Y(),Y(),Y(),Y()],c=xc(r,32);c[0]&=248,c[31]&=127,c[31]|=64;var l=a+64;for(n=0;n<a;++n)e[64+n]=t[n];for(n=0;n<32;++n)e[32+n]=c[32+n];var u=xc(e.subarray(32),a+32);for(cp(u),pp(o,u),up(e,o),n=32;n<64;++n)e[n]=r[n];var p=xc(e,a+64);for(cp(p),n=32;n<64;++n)i[n]=0;for(n=0;n<32;++n)i[n]=u[n];for(n=0;n<32;++n)for(s=0;s<32;s++)i[n+s]+=p[n]*c[s];return q0(e.subarray(32),i),l}function n2(e,t,a,r){var n,s,i=new wt(32),o=[Y(),Y(),Y(),Y()],c=[Y(),Y(),Y(),Y()];if(s=-1,a<64||s2(c,r)||!i2(t,32))return-1;for(n=0;n<a;++n)e[n]=t[n];for(n=0;n<32;++n)e[n+32]=r[n];var l=xc(e,a);if(cp(l),$0(o,c,l),pp(c,t.subarray(32)),lp(o,c),up(i,o),a-=64,z0(t,0,i,0)){for(n=0;n<a;++n)e[n]=0;return-1}for(n=0;n<a;++n)e[n]=t[n+64];return s=a,s}function i2(e,t){var a;for(a=31;a>=0;--a){if(e[t+a]<gc[a])return!0;if(e[t+a]>gc[a])return!1}return!1}function q0(e,t){var a,r,n,s;for(r=63;r>=32;--r){for(a=0,n=r-32,s=r-12;n<s;++n)t[n]+=a-16*t[r]*gc[n-(r-32)],a=t[n]+128>>8,t[n]-=a*256;t[n]+=a,t[r]=0}for(a=0,n=0;n<32;++n)t[n]+=a-(t[31]>>4)*gc[n],a=t[n]>>8,t[n]&=255;for(n=0;n<32;++n)t[n]-=a*gc[n];for(r=0;r<32;++r)t[r+1]+=t[r]>>8,e[r]=t[r]&255}function cp(e){for(var t=new Float64Array(64),a=0;a<64;++a)t[a]=e[a],e[a]=0;q0(e,t)}function lp(e,t){var a=Y(),r=Y(),n=Y(),s=Y(),i=Y(),o=Y(),c=Y(),l=Y(),u=Y();Zr(a,e[1],e[0]),Zr(u,t[1],t[0]),Se(a,a,u),Jr(r,e[0],e[1]),Jr(u,t[0],t[1]),Se(r,r,u),Se(n,e[3],t[3]),Se(n,n,e2),Se(s,e[2],t[2]),Jr(s,s,s),Zr(i,r,a),Zr(o,s,n),Jr(c,s,n),Jr(l,r,a),Se(e[0],i,o),Se(e[1],l,c),Se(e[2],c,o),Se(e[3],i,l)}function j0(e,t,a){for(var r=0;r<4;++r)G0(e[r],t[r],a)}function up(e,t){var a=Y(),r=Y(),n=Y();u2(n,t[2]),Se(a,t[0],n),Se(r,t[1],n),ml(e,r),e[31]^=H0(a)<<7}function ml(e,t){var a,r,n,s=Y(),i=Y();for(a=0;a<16;++a)i[a]=t[a];for(dp(i),dp(i),dp(i),r=0;r<2;++r){for(s[0]=i[0]-65517,a=1;a<15;++a)s[a]=i[a]-65535-(s[a-1]>>16&1),s[a-1]&=65535;s[15]=i[15]-32767-(s[14]>>16&1),n=s[15]>>16&1,s[14]&=65535,G0(i,s,1-n)}for(a=0;a<16;a++)e[2*a]=i[a]&255,e[2*a+1]=i[a]>>8}function s2(e,t){var a=Y(),r=Y(),n=Y(),s=Y(),i=Y(),o=Y(),c=Y();return fr(e[2],fl),o2(e[1],t),Nr(n,e[1]),Se(s,n,ZC),Zr(n,n,e[2]),Jr(s,e[2],s),Nr(i,s),Nr(o,i),Se(c,o,i),Se(a,c,n),Se(a,a,s),c2(a,a),Se(a,a,n),Se(a,a,s),Se(a,a,s),Se(e[0],a,s),Nr(r,e[0]),Se(r,r,s),K0(r,n)&&Se(e[0],e[0],t2),Nr(r,e[0]),Se(r,r,s),K0(r,n)?-1:(H0(e[0])===t[31]>>7&&Zr(e[0],op,e[0]),Se(e[3],e[0],e[1]),0)}function o2(e,t){var a;for(a=0;a<16;++a)e[a]=t[2*a]+(t[2*a+1]<<8);e[15]&=32767}function c2(e,t){var a=Y(),r;for(r=0;r<16;++r)a[r]=t[r];for(r=250;r>=0;--r)Nr(a,a),r!==1&&Se(a,a,t);for(r=0;r<16;++r)e[r]=a[r]}function K0(e,t){var a=new wt(32),r=new wt(32);return ml(a,e),ml(r,t),z0(a,0,r,0)}function z0(e,t,a,r){return l2(e,t,a,r,32)}function l2(e,t,a,r,n){var s,i=0;for(s=0;s<n;++s)i|=e[t+s]^a[r+s];return(1&i-1>>>8)-1}function H0(e){var t=new wt(32);return ml(t,e),t[0]&1}function $0(e,t,a){var r,n;for(fr(e[0],op),fr(e[1],fl),fr(e[2],fl),fr(e[3],op),n=255;n>=0;--n)r=a[n/8|0]>>(n&7)&1,j0(e,t,r),lp(t,e),lp(e,e),j0(e,t,r)}function pp(e,t){var a=[Y(),Y(),Y(),Y()];fr(a[0],M0),fr(a[1],V0),fr(a[2],fl),Se(a[3],M0,V0),$0(e,a,t)}function fr(e,t){var a;for(a=0;a<16;a++)e[a]=t[a]|0}function u2(e,t){var a=Y(),r;for(r=0;r<16;++r)a[r]=t[r];for(r=253;r>=0;--r)Nr(a,a),r!==2&&r!==4&&Se(a,a,t);for(r=0;r<16;++r)e[r]=a[r]}function dp(e){var t,a,r=1;for(t=0;t<16;++t)a=e[t]+r+65535,r=Math.floor(a/65536),e[t]=a-r*65536;e[0]+=r-1+37*(r-1)}function G0(e,t,a){for(var r,n=~(a-1),s=0;s<16;++s)r=n&(e[s]^t[s]),e[s]^=r,t[s]^=r}function Y(e){var t,a=new Float64Array(16);if(e)for(t=0;t<e.length;++t)a[t]=e[t];return a}function Jr(e,t,a){for(var r=0;r<16;++r)e[r]=t[r]+a[r]}function Zr(e,t,a){for(var r=0;r<16;++r)e[r]=t[r]-a[r]}function Nr(e,t){Se(e,t,t)}function Se(e,t,a){var r,n,s=0,i=0,o=0,c=0,l=0,u=0,p=0,f=0,x=0,m=0,y=0,b=0,S=0,B=0,_=0,P=0,U=0,k=0,H=0,G=0,Z=0,ce=0,pe=0,he=0,_e=0,ke=0,le=0,re=0,j=0,Ne=0,At=0,$=a[0],M=a[1],X=a[2],ye=a[3],ae=a[4],Ce=a[5],Ae=a[6],xe=a[7],Pe=a[8],Oe=a[9],ge=a[10],We=a[11],Ye=a[12],Xe=a[13],Je=a[14],Ze=a[15];r=t[0],s+=r*$,i+=r*M,o+=r*X,c+=r*ye,l+=r*ae,u+=r*Ce,p+=r*Ae,f+=r*xe,x+=r*Pe,m+=r*Oe,y+=r*ge,b+=r*We,S+=r*Ye,B+=r*Xe,_+=r*Je,P+=r*Ze,r=t[1],i+=r*$,o+=r*M,c+=r*X,l+=r*ye,u+=r*ae,p+=r*Ce,f+=r*Ae,x+=r*xe,m+=r*Pe,y+=r*Oe,b+=r*ge,S+=r*We,B+=r*Ye,_+=r*Xe,P+=r*Je,U+=r*Ze,r=t[2],o+=r*$,c+=r*M,l+=r*X,u+=r*ye,p+=r*ae,f+=r*Ce,x+=r*Ae,m+=r*xe,y+=r*Pe,b+=r*Oe,S+=r*ge,B+=r*We,_+=r*Ye,P+=r*Xe,U+=r*Je,k+=r*Ze,r=t[3],c+=r*$,l+=r*M,u+=r*X,p+=r*ye,f+=r*ae,x+=r*Ce,m+=r*Ae,y+=r*xe,b+=r*Pe,S+=r*Oe,B+=r*ge,_+=r*We,P+=r*Ye,U+=r*Xe,k+=r*Je,H+=r*Ze,r=t[4],l+=r*$,u+=r*M,p+=r*X,f+=r*ye,x+=r*ae,m+=r*Ce,y+=r*Ae,b+=r*xe,S+=r*Pe,B+=r*Oe,_+=r*ge,P+=r*We,U+=r*Ye,k+=r*Xe,H+=r*Je,G+=r*Ze,r=t[5],u+=r*$,p+=r*M,f+=r*X,x+=r*ye,m+=r*ae,y+=r*Ce,b+=r*Ae,S+=r*xe,B+=r*Pe,_+=r*Oe,P+=r*ge,U+=r*We,k+=r*Ye,H+=r*Xe,G+=r*Je,Z+=r*Ze,r=t[6],p+=r*$,f+=r*M,x+=r*X,m+=r*ye,y+=r*ae,b+=r*Ce,S+=r*Ae,B+=r*xe,_+=r*Pe,P+=r*Oe,U+=r*ge,k+=r*We,H+=r*Ye,G+=r*Xe,Z+=r*Je,ce+=r*Ze,r=t[7],f+=r*$,x+=r*M,m+=r*X,y+=r*ye,b+=r*ae,S+=r*Ce,B+=r*Ae,_+=r*xe,P+=r*Pe,U+=r*Oe,k+=r*ge,H+=r*We,G+=r*Ye,Z+=r*Xe,ce+=r*Je,pe+=r*Ze,r=t[8],x+=r*$,m+=r*M,y+=r*X,b+=r*ye,S+=r*ae,B+=r*Ce,_+=r*Ae,P+=r*xe,U+=r*Pe,k+=r*Oe,H+=r*ge,G+=r*We,Z+=r*Ye,ce+=r*Xe,pe+=r*Je,he+=r*Ze,r=t[9],m+=r*$,y+=r*M,b+=r*X,S+=r*ye,B+=r*ae,_+=r*Ce,P+=r*Ae,U+=r*xe,k+=r*Pe,H+=r*Oe,G+=r*ge,Z+=r*We,ce+=r*Ye,pe+=r*Xe,he+=r*Je,_e+=r*Ze,r=t[10],y+=r*$,b+=r*M,S+=r*X,B+=r*ye,_+=r*ae,P+=r*Ce,U+=r*Ae,k+=r*xe,H+=r*Pe,G+=r*Oe,Z+=r*ge,ce+=r*We,pe+=r*Ye,he+=r*Xe,_e+=r*Je,ke+=r*Ze,r=t[11],b+=r*$,S+=r*M,B+=r*X,_+=r*ye,P+=r*ae,U+=r*Ce,k+=r*Ae,H+=r*xe,G+=r*Pe,Z+=r*Oe,ce+=r*ge,pe+=r*We,he+=r*Ye,_e+=r*Xe,ke+=r*Je,le+=r*Ze,r=t[12],S+=r*$,B+=r*M,_+=r*X,P+=r*ye,U+=r*ae,k+=r*Ce,H+=r*Ae,G+=r*xe,Z+=r*Pe,ce+=r*Oe,pe+=r*ge,he+=r*We,_e+=r*Ye,ke+=r*Xe,le+=r*Je,re+=r*Ze,r=t[13],B+=r*$,_+=r*M,P+=r*X,U+=r*ye,k+=r*ae,H+=r*Ce,G+=r*Ae,Z+=r*xe,ce+=r*Pe,pe+=r*Oe,he+=r*ge,_e+=r*We,ke+=r*Ye,le+=r*Xe,re+=r*Je,j+=r*Ze,r=t[14],_+=r*$,P+=r*M,U+=r*X,k+=r*ye,H+=r*ae,G+=r*Ce,Z+=r*Ae,ce+=r*xe,pe+=r*Pe,he+=r*Oe,_e+=r*ge,ke+=r*We,le+=r*Ye,re+=r*Xe,j+=r*Je,Ne+=r*Ze,r=t[15],P+=r*$,U+=r*M,k+=r*X,H+=r*ye,G+=r*ae,Z+=r*Ce,ce+=r*Ae,pe+=r*xe,he+=r*Pe,_e+=r*Oe,ke+=r*ge,le+=r*We,re+=r*Ye,j+=r*Xe,Ne+=r*Je,At+=r*Ze,s+=38*U,i+=38*k,o+=38*H,c+=38*G,l+=38*Z,u+=38*ce,p+=38*pe,f+=38*he,x+=38*_e,m+=38*ke,y+=38*le,b+=38*re,S+=38*j,B+=38*Ne,_+=38*At,n=1,r=s+n+65535,n=Math.floor(r/65536),s=r-n*65536,r=i+n+65535,n=Math.floor(r/65536),i=r-n*65536,r=o+n+65535,n=Math.floor(r/65536),o=r-n*65536,r=c+n+65535,n=Math.floor(r/65536),c=r-n*65536,r=l+n+65535,n=Math.floor(r/65536),l=r-n*65536,r=u+n+65535,n=Math.floor(r/65536),u=r-n*65536,r=p+n+65535,n=Math.floor(r/65536),p=r-n*65536,r=f+n+65535,n=Math.floor(r/65536),f=r-n*65536,r=x+n+65535,n=Math.floor(r/65536),x=r-n*65536,r=m+n+65535,n=Math.floor(r/65536),m=r-n*65536,r=y+n+65535,n=Math.floor(r/65536),y=r-n*65536,r=b+n+65535,n=Math.floor(r/65536),b=r-n*65536,r=S+n+65535,n=Math.floor(r/65536),S=r-n*65536,r=B+n+65535,n=Math.floor(r/65536),B=r-n*65536,r=_+n+65535,n=Math.floor(r/65536),_=r-n*65536,r=P+n+65535,n=Math.floor(r/65536),P=r-n*65536,s+=n-1+37*(n-1),n=1,r=s+n+65535,n=Math.floor(r/65536),s=r-n*65536,r=i+n+65535,n=Math.floor(r/65536),i=r-n*65536,r=o+n+65535,n=Math.floor(r/65536),o=r-n*65536,r=c+n+65535,n=Math.floor(r/65536),c=r-n*65536,r=l+n+65535,n=Math.floor(r/65536),l=r-n*65536,r=u+n+65535,n=Math.floor(r/65536),u=r-n*65536,r=p+n+65535,n=Math.floor(r/65536),p=r-n*65536,r=f+n+65535,n=Math.floor(r/65536),f=r-n*65536,r=x+n+65535,n=Math.floor(r/65536),x=r-n*65536,r=m+n+65535,n=Math.floor(r/65536),m=r-n*65536,r=y+n+65535,n=Math.floor(r/65536),y=r-n*65536,r=b+n+65535,n=Math.floor(r/65536),b=r-n*65536,r=S+n+65535,n=Math.floor(r/65536),S=r-n*65536,r=B+n+65535,n=Math.floor(r/65536),B=r-n*65536,r=_+n+65535,n=Math.floor(r/65536),_=r-n*65536,r=P+n+65535,n=Math.floor(r/65536),P=r-n*65536,s+=n-1+37*(n-1),e[0]=s,e[1]=i,e[2]=o,e[3]=c,e[4]=l,e[5]=u,e[6]=p,e[7]=f,e[8]=x,e[9]=m,e[10]=y,e[11]=b,e[12]=S,e[13]=B,e[14]=_,e[15]=P}var _t=te;_t.kem=_t.kem||{};var Q0=_t.jsbn.BigInteger;_t.kem.rsa={},_t.kem.rsa.create=function(e,t){t=t||{};var a=t.prng||_t.random,r={};return r.encrypt=function(n,s){var i=Math.ceil(n.n.bitLength()/8),o;do o=new Q0(_t.util.bytesToHex(a.getBytesSync(i)),16).mod(n.n);while(o.compareTo(Q0.ONE)<=0);o=_t.util.hexToBytes(o.toString(16));var c=i-o.length;c>0&&(o=_t.util.fillString("\0",c)+o);var l=n.encrypt(o,"NONE"),u=e.generate(o,s);return{encapsulation:l,key:u}},r.decrypt=function(n,s,i){var o=n.decrypt(s,"NONE");return e.generate(o,i)},r},_t.kem.kdf1=function(e,t){W0(this,e,0,t||e.digestLength)},_t.kem.kdf2=function(e,t){W0(this,e,1,t||e.digestLength)};function W0(e,t,a,r){e.generate=function(n,s){for(var i=new _t.util.ByteBuffer,o=Math.ceil(s/r)+a,c=new _t.util.ByteBuffer,l=a;l<o;++l){c.putInt32(l),t.start(),t.update(n+c.getBytes());var u=t.digest();i.putBytes(u.getBytes(r))}return i.truncate(i.length()-s),i.getBytes()}}var ue=te;ue.log=ue.log||{},ue.log.levels=["none","error","warning","info","debug","verbose","max"];var hl={},fp=[],yc=null;ue.log.LEVEL_LOCKED=2,ue.log.NO_LEVEL_CHECK=4,ue.log.INTERPOLATE=8;for(var mr=0;mr<ue.log.levels.length;++mr){var Y0=ue.log.levels[mr];hl[Y0]={index:mr,name:Y0.toUpperCase()}}ue.log.logMessage=function(e){for(var t=hl[e.level].index,a=0;a<fp.length;++a){var r=fp[a];if(r.flags&ue.log.NO_LEVEL_CHECK)r.f(e);else{var n=hl[r.level].index;t<=n&&r.f(r,e)}}},ue.log.prepareStandard=function(e){"standard"in e||(e.standard=hl[e.level].name+" ["+e.category+"] "+e.message)},ue.log.prepareFull=function(e){if(!("full"in e)){var t=[e.message];t=t.concat([]),e.full=ue.util.format.apply(this,t)}},ue.log.prepareStandardFull=function(e){"standardFull"in e||(ue.log.prepareStandard(e),e.standardFull=e.standard)};for(var X0=["error","warning","info","debug","verbose"],mr=0;mr<X0.length;++mr)(function(t){ue.log[t]=function(a,r){var n=Array.prototype.slice.call(arguments).slice(2),s={timestamp:new Date,level:t,category:a,message:r,arguments:n};ue.log.logMessage(s)}})(X0[mr]);if(ue.log.makeLogger=function(e){var t={flags:0,f:e};return ue.log.setLevel(t,"none"),t},ue.log.setLevel=function(e,t){var a=!1;if(e&&!(e.flags&ue.log.LEVEL_LOCKED))for(var r=0;r<ue.log.levels.length;++r){var n=ue.log.levels[r];if(t==n){e.level=t,a=!0;break}}return a},ue.log.lock=function(e,t){typeof t>"u"||t?e.flags|=ue.log.LEVEL_LOCKED:e.flags&=~ue.log.LEVEL_LOCKED},ue.log.addLogger=function(e){fp.push(e)},typeof console<"u"&&"log"in console){var bc;if(console.error&&console.warn&&console.info&&console.debug){var p2={error:console.error,warning:console.warn,info:console.info,debug:console.debug,verbose:console.debug},gp=function(e,t){ue.log.prepareStandard(t);var a=p2[t.level],r=[t.standard];r=r.concat(t.arguments.slice()),a.apply(console,r)};bc=ue.log.makeLogger(gp)}else{var gp=function(t,a){ue.log.prepareStandardFull(a),console.log(a.standardFull)};bc=ue.log.makeLogger(gp)}ue.log.setLevel(bc,"debug"),ue.log.addLogger(bc),yc=bc}else console={log:function(){}};if(yc!==null&&typeof window<"u"&&window.location){var vl=new URL(window.location.href).searchParams;if(vl.has("console.level")&&ue.log.setLevel(yc,vl.get("console.level").slice(-1)[0]),vl.has("console.lock")){var d2=vl.get("console.lock").slice(-1)[0];d2=="true"&&ue.log.lock(yc)}}ue.log.consoleLogger=yc;var V=te,T=V.asn1,dt=V.pkcs7=V.pkcs7||{};dt.messageFromPem=function(e){var t=V.pem.decode(e)[0];if(t.type!=="PKCS7"){var a=new Error('Could not convert PKCS#7 message from PEM; PEM header type is not "PKCS#7".');throw a.headerType=t.type,a}if(t.procType&&t.procType.type==="ENCRYPTED")throw new Error("Could not convert PKCS#7 message from PEM; PEM is encrypted.");var r=T.fromDer(t.body);return dt.messageFromAsn1(r)},dt.messageToPem=function(e,t){var a={type:"PKCS7",body:T.toDer(e.toAsn1()).getBytes()};return V.pem.encode(a,{maxline:t})},dt.messageFromAsn1=function(e){var t={},a=[];if(!T.validate(e,dt.asn1.contentInfoValidator,t,a)){var r=new Error("Cannot read PKCS#7 message. ASN.1 object is not an PKCS#7 ContentInfo.");throw r.errors=a,r}var n=T.derToOid(t.contentType),s;switch(n){case V.pki.oids.envelopedData:s=dt.createEnvelopedData();break;case V.pki.oids.encryptedData:s=dt.createEncryptedData();break;case V.pki.oids.signedData:s=dt.createSignedData();break;default:throw new Error("Cannot read PKCS#7 message. ContentType with OID "+n+" is not (yet) supported.")}return s.fromAsn1(t.content.value[0]),s},dt.createSignedData=function(){var e=null;return e={type:V.pki.oids.signedData,version:1,certificates:[],crls:[],signers:[],digestAlgorithmIdentifiers:[],contentInfo:null,signerInfos:[],fromAsn1:function(r){if(hp(e,r,dt.asn1.signedDataValidator),e.certificates=[],e.crls=[],e.digestAlgorithmIdentifiers=[],e.contentInfo=null,e.signerInfos=[],e.rawCapture.certificates)for(var n=e.rawCapture.certificates.value,s=0;s<n.length;++s)e.certificates.push(V.pki.certificateFromAsn1(n[s]))},toAsn1:function(){e.contentInfo||e.sign();for(var r=[],n=0;n<e.certificates.length;++n)r.push(V.pki.certificateToAsn1(e.certificates[n]));var s=[],i=T.create(T.Class.CONTEXT_SPECIFIC,0,!0,[T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[T.create(T.Class.UNIVERSAL,T.Type.INTEGER,!1,T.integerToDer(e.version).getBytes()),T.create(T.Class.UNIVERSAL,T.Type.SET,!0,e.digestAlgorithmIdentifiers),e.contentInfo])]);return r.length>0&&i.value[0].value.push(T.create(T.Class.CONTEXT_SPECIFIC,0,!0,r)),s.length>0&&i.value[0].value.push(T.create(T.Class.CONTEXT_SPECIFIC,1,!0,s)),i.value[0].value.push(T.create(T.Class.UNIVERSAL,T.Type.SET,!0,e.signerInfos)),T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[T.create(T.Class.UNIVERSAL,T.Type.OID,!1,T.oidToDer(e.type).getBytes()),i])},addSigner:function(r){var n=r.issuer,s=r.serialNumber;if(r.certificate){var i=r.certificate;typeof i=="string"&&(i=V.pki.certificateFromPem(i)),n=i.issuer.attributes,s=i.serialNumber}var o=r.key;if(!o)throw new Error("Could not add PKCS#7 signer; no private key specified.");typeof o=="string"&&(o=V.pki.privateKeyFromPem(o));var c=r.digestAlgorithm||V.pki.oids.sha1;switch(c){case V.pki.oids.sha1:case V.pki.oids.sha256:case V.pki.oids.sha384:case V.pki.oids.sha512:case V.pki.oids.md5:break;default:throw new Error("Could not add PKCS#7 signer; unknown message digest algorithm: "+c)}var l=r.authenticatedAttributes||[];if(l.length>0){for(var u=!1,p=!1,f=0;f<l.length;++f){var x=l[f];if(!u&&x.type===V.pki.oids.contentType){if(u=!0,p)break;continue}if(!p&&x.type===V.pki.oids.messageDigest){if(p=!0,u)break;continue}}if(!u||!p)throw new Error("Invalid signer.authenticatedAttributes. If signer.authenticatedAttributes is specified, then it must contain at least two attributes, PKCS #9 content-type and PKCS #9 message-digest.")}e.signers.push({key:o,version:1,issuer:n,serialNumber:s,digestAlgorithm:c,signatureAlgorithm:V.pki.oids.rsaEncryption,signature:null,authenticatedAttributes:l,unauthenticatedAttributes:[]})},sign:function(r){if(r=r||{},(typeof e.content!="object"||e.contentInfo===null)&&(e.contentInfo=T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[T.create(T.Class.UNIVERSAL,T.Type.OID,!1,T.oidToDer(V.pki.oids.data).getBytes())]),"content"in e)){var n;e.content instanceof V.util.ByteBuffer?n=e.content.bytes():typeof e.content=="string"&&(n=V.util.encodeUtf8(e.content)),r.detached?e.detachedContent=T.create(T.Class.UNIVERSAL,T.Type.OCTETSTRING,!1,n):e.contentInfo.value.push(T.create(T.Class.CONTEXT_SPECIFIC,0,!0,[T.create(T.Class.UNIVERSAL,T.Type.OCTETSTRING,!1,n)]))}if(e.signers.length!==0){var s=t();a(s)}},verify:function(){throw new Error("PKCS#7 signature verification not yet implemented.")},addCertificate:function(r){typeof r=="string"&&(r=V.pki.certificateFromPem(r)),e.certificates.push(r)},addCertificateRevokationList:function(r){throw new Error("PKCS#7 CRL support not yet implemented.")}},e;function t(){for(var r={},n=0;n<e.signers.length;++n){var s=e.signers[n],i=s.digestAlgorithm;i in r||(r[i]=V.md[V.pki.oids[i]].create()),s.authenticatedAttributes.length===0?s.md=r[i]:s.md=V.md[V.pki.oids[i]].create()}e.digestAlgorithmIdentifiers=[];for(var i in r)e.digestAlgorithmIdentifiers.push(T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[T.create(T.Class.UNIVERSAL,T.Type.OID,!1,T.oidToDer(i).getBytes()),T.create(T.Class.UNIVERSAL,T.Type.NULL,!1,"")]));return r}function a(r){var n;if(e.detachedContent?n=e.detachedContent:(n=e.contentInfo.value[1],n=n.value[0]),!n)throw new Error("Could not sign PKCS#7 message; there is no content to sign.");var s=T.derToOid(e.contentInfo.value[0].value),i=T.toDer(n);i.getByte(),T.getBerValueLength(i),i=i.getBytes();for(var o in r)r[o].start().update(i);for(var c=new Date,l=0;l<e.signers.length;++l){var u=e.signers[l];if(u.authenticatedAttributes.length===0){if(s!==V.pki.oids.data)throw new Error("Invalid signer; authenticatedAttributes must be present when the ContentInfo content type is not PKCS#7 Data.")}else{u.authenticatedAttributesAsn1=T.create(T.Class.CONTEXT_SPECIFIC,0,!0,[]);for(var p=T.create(T.Class.UNIVERSAL,T.Type.SET,!0,[]),f=0;f<u.authenticatedAttributes.length;++f){var x=u.authenticatedAttributes[f];x.type===V.pki.oids.messageDigest?x.value=r[u.digestAlgorithm].digest():x.type===V.pki.oids.signingTime&&(x.value||(x.value=c)),p.value.push(mp(x)),u.authenticatedAttributesAsn1.value.push(mp(x))}i=T.toDer(p).getBytes(),u.md.start().update(i)}u.signature=u.key.sign(u.md,"RSASSA-PKCS1-V1_5")}e.signerInfos=x2(e.signers)}},dt.createEncryptedData=function(){var e=null;return e={type:V.pki.oids.encryptedData,version:0,encryptedContent:{algorithm:V.pki.oids["aes256-CBC"]},fromAsn1:function(t){hp(e,t,dt.asn1.encryptedDataValidator)},decrypt:function(t){t!==void 0&&(e.encryptedContent.key=t),J0(e)}},e},dt.createEnvelopedData=function(){var e=null;return e={type:V.pki.oids.envelopedData,version:0,recipients:[],encryptedContent:{algorithm:V.pki.oids["aes256-CBC"]},fromAsn1:function(t){var a=hp(e,t,dt.asn1.envelopedDataValidator);e.recipients=h2(a.recipientInfos.value)},toAsn1:function(){return T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[T.create(T.Class.UNIVERSAL,T.Type.OID,!1,T.oidToDer(e.type).getBytes()),T.create(T.Class.CONTEXT_SPECIFIC,0,!0,[T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[T.create(T.Class.UNIVERSAL,T.Type.INTEGER,!1,T.integerToDer(e.version).getBytes()),T.create(T.Class.UNIVERSAL,T.Type.SET,!0,v2(e.recipients)),T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,y2(e.encryptedContent))])])])},findRecipient:function(t){for(var a=t.issuer.attributes,r=0;r<e.recipients.length;++r){var n=e.recipients[r],s=n.issuer;if(n.serialNumber===t.serialNumber&&s.length===a.length){for(var i=!0,o=0;o<a.length;++o)if(s[o].type!==a[o].type||s[o].value!==a[o].value){i=!1;break}if(i)return n}}return null},decrypt:function(t,a){if(e.encryptedContent.key===void 0&&t!==void 0&&a!==void 0)switch(t.encryptedContent.algorithm){case V.pki.oids.rsaEncryption:case V.pki.oids.desCBC:var r=a.decrypt(t.encryptedContent.content);e.encryptedContent.key=V.util.createBuffer(r);break;default:throw new Error("Unsupported asymmetric cipher, OID "+t.encryptedContent.algorithm)}J0(e)},addRecipient:function(t){e.recipients.push({version:0,issuer:t.issuer.attributes,serialNumber:t.serialNumber,encryptedContent:{algorithm:V.pki.oids.rsaEncryption,key:t.publicKey}})},encrypt:function(t,a){if(e.encryptedContent.content===void 0){a=a||e.encryptedContent.algorithm,t=t||e.encryptedContent.key;var r,n,s;switch(a){case V.pki.oids["aes128-CBC"]:r=16,n=16,s=V.aes.createEncryptionCipher;break;case V.pki.oids["aes192-CBC"]:r=24,n=16,s=V.aes.createEncryptionCipher;break;case V.pki.oids["aes256-CBC"]:r=32,n=16,s=V.aes.createEncryptionCipher;break;case V.pki.oids["des-EDE3-CBC"]:r=24,n=8,s=V.des.createEncryptionCipher;break;default:throw new Error("Unsupported symmetric cipher, OID "+a)}if(t===void 0)t=V.util.createBuffer(V.random.getBytes(r));else if(t.length()!=r)throw new Error("Symmetric key has wrong length; got "+t.length()+" bytes, expected "+r+".");e.encryptedContent.algorithm=a,e.encryptedContent.key=t,e.encryptedContent.parameter=V.util.createBuffer(V.random.getBytes(n));var i=s(t);if(i.start(e.encryptedContent.parameter.copy()),i.update(e.content),!i.finish())throw new Error("Symmetric encryption failed.");e.encryptedContent.content=i.output}for(var o=0;o<e.recipients.length;++o){var c=e.recipients[o];if(c.encryptedContent.content===void 0)switch(c.encryptedContent.algorithm){case V.pki.oids.rsaEncryption:c.encryptedContent.content=c.encryptedContent.key.encrypt(e.encryptedContent.key.data);break;default:throw new Error("Unsupported asymmetric cipher, OID "+c.encryptedContent.algorithm)}}}},e};function f2(e){var t={},a=[];if(!T.validate(e,dt.asn1.recipientInfoValidator,t,a)){var r=new Error("Cannot read PKCS#7 RecipientInfo. ASN.1 object is not an PKCS#7 RecipientInfo.");throw r.errors=a,r}return{version:t.version.charCodeAt(0),issuer:V.pki.RDNAttributesAsArray(t.issuer),serialNumber:V.util.createBuffer(t.serial).toHex(),encryptedContent:{algorithm:T.derToOid(t.encAlgorithm),parameter:t.encParameter?t.encParameter.value:void 0,content:t.encKey}}}function m2(e){return T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[T.create(T.Class.UNIVERSAL,T.Type.INTEGER,!1,T.integerToDer(e.version).getBytes()),T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[V.pki.distinguishedNameToAsn1({attributes:e.issuer}),T.create(T.Class.UNIVERSAL,T.Type.INTEGER,!1,V.util.hexToBytes(e.serialNumber))]),T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[T.create(T.Class.UNIVERSAL,T.Type.OID,!1,T.oidToDer(e.encryptedContent.algorithm).getBytes()),T.create(T.Class.UNIVERSAL,T.Type.NULL,!1,"")]),T.create(T.Class.UNIVERSAL,T.Type.OCTETSTRING,!1,e.encryptedContent.content)])}function h2(e){for(var t=[],a=0;a<e.length;++a)t.push(f2(e[a]));return t}function v2(e){for(var t=[],a=0;a<e.length;++a)t.push(m2(e[a]));return t}function g2(e){var t=T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[T.create(T.Class.UNIVERSAL,T.Type.INTEGER,!1,T.integerToDer(e.version).getBytes()),T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[V.pki.distinguishedNameToAsn1({attributes:e.issuer}),T.create(T.Class.UNIVERSAL,T.Type.INTEGER,!1,V.util.hexToBytes(e.serialNumber))]),T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[T.create(T.Class.UNIVERSAL,T.Type.OID,!1,T.oidToDer(e.digestAlgorithm).getBytes()),T.create(T.Class.UNIVERSAL,T.Type.NULL,!1,"")])]);if(e.authenticatedAttributesAsn1&&t.value.push(e.authenticatedAttributesAsn1),t.value.push(T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[T.create(T.Class.UNIVERSAL,T.Type.OID,!1,T.oidToDer(e.signatureAlgorithm).getBytes()),T.create(T.Class.UNIVERSAL,T.Type.NULL,!1,"")])),t.value.push(T.create(T.Class.UNIVERSAL,T.Type.OCTETSTRING,!1,e.signature)),e.unauthenticatedAttributes.length>0){for(var a=T.create(T.Class.CONTEXT_SPECIFIC,1,!0,[]),r=0;r<e.unauthenticatedAttributes.length;++r){var n=e.unauthenticatedAttributes[r];a.values.push(mp(n))}t.value.push(a)}return t}function x2(e){for(var t=[],a=0;a<e.length;++a)t.push(g2(e[a]));return t}function mp(e){var t;if(e.type===V.pki.oids.contentType)t=T.create(T.Class.UNIVERSAL,T.Type.OID,!1,T.oidToDer(e.value).getBytes());else if(e.type===V.pki.oids.messageDigest)t=T.create(T.Class.UNIVERSAL,T.Type.OCTETSTRING,!1,e.value.bytes());else if(e.type===V.pki.oids.signingTime){var a=new Date("1950-01-01T00:00:00Z"),r=new Date("2050-01-01T00:00:00Z"),n=e.value;if(typeof n=="string"){var s=Date.parse(n);isNaN(s)?n.length===13?n=T.utcTimeToDate(n):n=T.generalizedTimeToDate(n):n=new Date(s)}n>=a&&n<r?t=T.create(T.Class.UNIVERSAL,T.Type.UTCTIME,!1,T.dateToUtcTime(n)):t=T.create(T.Class.UNIVERSAL,T.Type.GENERALIZEDTIME,!1,T.dateToGeneralizedTime(n))}return T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[T.create(T.Class.UNIVERSAL,T.Type.OID,!1,T.oidToDer(e.type).getBytes()),T.create(T.Class.UNIVERSAL,T.Type.SET,!0,[t])])}function y2(e){return[T.create(T.Class.UNIVERSAL,T.Type.OID,!1,T.oidToDer(V.pki.oids.data).getBytes()),T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[T.create(T.Class.UNIVERSAL,T.Type.OID,!1,T.oidToDer(e.algorithm).getBytes()),e.parameter?T.create(T.Class.UNIVERSAL,T.Type.OCTETSTRING,!1,e.parameter.getBytes()):void 0]),T.create(T.Class.CONTEXT_SPECIFIC,0,!0,[T.create(T.Class.UNIVERSAL,T.Type.OCTETSTRING,!1,e.content.getBytes())])]}function hp(e,t,a){var r={},n=[];if(!T.validate(t,a,r,n)){var s=new Error("Cannot read PKCS#7 message. ASN.1 object is not a supported PKCS#7 message.");throw s.errors=s,s}var i=T.derToOid(r.contentType);if(i!==V.pki.oids.data)throw new Error("Unsupported PKCS#7 message. Only wrapped ContentType Data supported.");if(r.encryptedContent){var o="";if(V.util.isArray(r.encryptedContent))for(var c=0;c<r.encryptedContent.length;++c){if(r.encryptedContent[c].type!==T.Type.OCTETSTRING)throw new Error("Malformed PKCS#7 message, expecting encrypted content constructed of only OCTET STRING objects.");o+=r.encryptedContent[c].value}else o=r.encryptedContent;e.encryptedContent={algorithm:T.derToOid(r.encAlgorithm),parameter:V.util.createBuffer(r.encParameter.value),content:V.util.createBuffer(o)}}if(r.content){var o="";if(V.util.isArray(r.content))for(var c=0;c<r.content.length;++c){if(r.content[c].type!==T.Type.OCTETSTRING)throw new Error("Malformed PKCS#7 message, expecting content constructed of only OCTET STRING objects.");o+=r.content[c].value}else o=r.content;e.content=V.util.createBuffer(o)}return e.version=r.version.charCodeAt(0),e.rawCapture=r,r}function J0(e){if(e.encryptedContent.key===void 0)throw new Error("Symmetric key not available.");if(e.content===void 0){var t;switch(e.encryptedContent.algorithm){case V.pki.oids["aes128-CBC"]:case V.pki.oids["aes192-CBC"]:case V.pki.oids["aes256-CBC"]:t=V.aes.createDecryptionCipher(e.encryptedContent.key);break;case V.pki.oids.desCBC:case V.pki.oids["des-EDE3-CBC"]:t=V.des.createDecryptionCipher(e.encryptedContent.key);break;default:throw new Error("Unsupported symmetric cipher, OID "+e.encryptedContent.algorithm)}if(t.start(e.encryptedContent.parameter),t.update(e.encryptedContent.content),!t.finish())throw new Error("Symmetric decryption failed.");e.content=t.output}}var Me=te,gl=Me.ssh=Me.ssh||{};gl.privateKeyToPutty=function(e,t,a){a=a||"",t=t||"";var r="ssh-rsa",n=t===""?"none":"aes256-cbc",s="PuTTY-User-Key-File-2: "+r+`\r
36
39
  `;s+="Encryption: "+n+`\r
37
40
  `,s+="Comment: "+a+`\r
38
- `;var i=Oe.util.createBuffer();ta(i,r),Wt(i,e.e),Wt(i,e.n);var o=Oe.util.encode64(i.bytes(),64),c=Math.floor(o.length/66)+1;s+="Public-Lines: "+c+`\r
39
- `,s+=o;var l=Oe.util.createBuffer();Wt(l,e.d),Wt(l,e.p),Wt(l,e.q),Wt(l,e.qInv);var u;if(!t)u=Oe.util.encode64(l.bytes(),64);else{var p=l.length()+16-1;p-=p%16;var f=xl(l.bytes());f.truncate(f.length()-p+l.length()),l.putBuffer(f);var x=Oe.util.createBuffer();x.putBuffer(xl("\0\0\0\0",t)),x.putBuffer(xl("\0\0\0",t));var m=Oe.aes.createEncryptionCipher(x.truncate(8),"CBC");m.start(Oe.util.createBuffer().fillWithByte(0,16)),m.update(l.copy()),m.finish();var y=m.output;y.truncate(16),u=Oe.util.encode64(y.bytes(),64)}c=Math.floor(u.length/66)+1,s+=`\r
41
+ `;var i=Me.util.createBuffer();ea(i,r),Wt(i,e.e),Wt(i,e.n);var o=Me.util.encode64(i.bytes(),64),c=Math.floor(o.length/66)+1;s+="Public-Lines: "+c+`\r
42
+ `,s+=o;var l=Me.util.createBuffer();Wt(l,e.d),Wt(l,e.p),Wt(l,e.q),Wt(l,e.qInv);var u;if(!t)u=Me.util.encode64(l.bytes(),64);else{var p=l.length()+16-1;p-=p%16;var f=xl(l.bytes());f.truncate(f.length()-p+l.length()),l.putBuffer(f);var x=Me.util.createBuffer();x.putBuffer(xl("\0\0\0\0",t)),x.putBuffer(xl("\0\0\0",t));var m=Me.aes.createEncryptionCipher(x.truncate(8),"CBC");m.start(Me.util.createBuffer().fillWithByte(0,16)),m.update(l.copy()),m.finish();var y=m.output;y.truncate(16),u=Me.util.encode64(y.bytes(),64)}c=Math.floor(u.length/66)+1,s+=`\r
40
43
  Private-Lines: `+c+`\r
41
- `,s+=u;var b=xl("putty-private-key-file-mac-key",t),S=Oe.util.createBuffer();ta(S,r),ta(S,n),ta(S,a),S.putInt32(i.length()),S.putBuffer(i),S.putInt32(l.length()),S.putBuffer(l);var B=Oe.hmac.create();return B.start("sha1",b),B.update(S.bytes()),s+=`\r
44
+ `,s+=u;var b=xl("putty-private-key-file-mac-key",t),S=Me.util.createBuffer();ea(S,r),ea(S,n),ea(S,a),S.putInt32(i.length()),S.putBuffer(i),S.putInt32(l.length()),S.putBuffer(l);var B=Me.hmac.create();return B.start("sha1",b),B.update(S.bytes()),s+=`\r
42
45
  Private-MAC: `+B.digest().toHex()+`\r
43
- `,s},gl.publicKeyToOpenSSH=function(e,t){var a="ssh-rsa";t=t||"";var r=Oe.util.createBuffer();return ta(r,a),Wt(r,e.e),Wt(r,e.n),a+" "+Oe.util.encode64(r.bytes())+" "+t},gl.privateKeyToOpenSSH=function(e,t){return t?Oe.pki.encryptRsaPrivateKey(e,t,{legacy:!0,algorithm:"aes128"}):Oe.pki.privateKeyToPem(e)},gl.getPublicKeyFingerprint=function(e,t){t=t||{};var a=t.md||Oe.md.md5.create(),r="ssh-rsa",n=Oe.util.createBuffer();ta(n,r),Wt(n,e.e),Wt(n,e.n),a.start(),a.update(n.getBytes());var s=a.digest();if(t.encoding==="hex"){var i=s.toHex();return t.delimiter?i.match(/.{2}/g).join(t.delimiter):i}else{if(t.encoding==="binary")return s.getBytes();if(t.encoding)throw new Error('Unknown encoding "'+t.encoding+'".')}return s};function Wt(e,t){var a=t.toString(16);a[0]>="8"&&(a="00"+a);var r=Oe.util.hexToBytes(a);e.putInt32(r.length),e.putBytes(r)}function ta(e,t){e.putInt32(t.length),e.putString(t)}function xl(){for(var e=Oe.md.sha1.create(),t=arguments.length,a=0;a<t;++a)e.update(arguments[a]);return e.digest()}var Ec=ee;const n2=e=>{const t=Ec.util.hexToBytes(e.entitySecret),a=Ec.pki.publicKeyFromPem(e.publicKey).encrypt(t,"RSA-OAEP",{md:Ec.md.sha256.create(),mgf1:{md:Ec.md.sha256.create()}});return Ec.util.encode64(a)},Y0=e=>async()=>{let t=e.storage?await e.storage.get("publicKey"):void 0;if(t===void 0){const a=await f1(e)();if(!a.data?.publicKey)throw new Error("Could not fetch public key");t=a.data.publicKey,e.storage&&await e.storage.set("publicKey",t)}return n2({entitySecret:e.entitySecret,publicKey:t})},yl=()=>Lr.randomUUID();var J0="10.1.0";const i2=e=>async({idempotencyKey:t,fee:a,xRequestId:r,...n})=>{try{return St(await e.client.DeployImport.deployContract({entitySecretCiphertext:await Y0(e)(),idempotencyKey:t??yl(),...a.config,...n},r))}catch(s){throw rt(s)?tt(s):s}},s2=e=>async({xRequestId:t,...a})=>{try{return St(await e.client.DeployImport.estimateContractDeploy(a,t))}catch(r){throw rt(r)?tt(r):r}},o2=e=>async({id:t,xRequestId:a})=>{try{return St(await e.client.ViewUpdate.getContract(t,a))}catch(r){throw rt(r)?tt(r):r}},c2=e=>async({idempotencyKey:t,xRequestId:a,...r})=>{try{return St(await e.client.DeployImport.importContract({idempotencyKey:t??yl(),...r},a))}catch(n){throw rt(n)?tt(n):n}},l2=e=>async t=>{try{return St(await e.client.ViewUpdate.listContracts(t?.blockchain,t?.contractInputType,t?.deployerAddress,t?.name,t?.status,t?.from,t?.to,t?.pageBefore,t?.pageAfter,t?.pageSize,t?.xRequestId))}catch(a){throw rt(a)?tt(a):a}},u2=e=>async({xRequestId:t,...a})=>{try{return St(await e.client.Interact.queryContract(a,t))}catch(r){throw rt(r)?tt(r):r}},p2=e=>async({id:t,xRequestId:a,...r})=>{try{return St(await e.client.ViewUpdate.updateContract(t,r,a))}catch(n){throw rt(n)?tt(n):n}},d2=e=>async({idempotencyKey:t,xRequestId:a,...r})=>{try{return St(await e.client.EventMonitors.createEventMonitor(a,{idempotencyKey:t??yl(),...r}))}catch(n){throw rt(n)?tt(n):n}},f2=e=>async({xRequestId:t,...a})=>{try{return await e.client.EventMonitors.deleteEventMonitor(a.id,t)}catch(r){throw rt(r)?tt(r):r}},m2=e=>async t=>{try{return St(await e.client.EventMonitors.getEventMonitors(t?.contractAddress,t?.blockchain,t?.eventSignature,t?.from,t?.to,t?.pageBefore,t?.pageAfter,t?.pageSize,t?.xRequestId))}catch(a){throw rt(a)?tt(a):a}},h2=e=>async t=>{try{return St(await e.client.EventMonitors.listEventLogs(t?.contractAddress,t?.blockchain,t?.from,t?.to,t?.pageBefore,t?.pageAfter,t?.pageSize,t?.xRequestId))}catch(a){throw rt(a)?tt(a):a}},v2=e=>async({id:t,xRequestId:a,...r})=>{try{return St(await e.client.EventMonitors.updateEventMonitor(t,a,r))}catch(n){throw rt(n)?tt(n):n}},g2=e=>async({id:t,idempotencyKey:a,fee:r,xRequestId:n,...s})=>{try{return St(await e.client.Templates.deployContractTemplate(t,{entitySecretCiphertext:await Y0(e)(),idempotencyKey:a??yl(),...r.config,...s},n))}catch(i){throw rt(i)?tt(i):i}},x2=e=>async({id:t,xRequestId:a,...r})=>{try{return St(await e.client.Templates.estimateContractTemplateDeploy(t,r,a))}catch(n){throw rt(n)?tt(n):n}};var y2=Object.defineProperty,b2=(e,t,a)=>t in e?y2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,E2=(e,t,a)=>b2(e,typeof t!="symbol"?t+"":t,a);const hp="https://api.circle.com";class Z0{constructor(t){E2(this,"params");const{apiKey:a,baseUrl:r,entitySecret:n,storage:s,userAgent:i,headers:o}=t;this.params={client:new fy(r??hp,{apiKey:a,version:J0,userAgent:i},o),configurationsClient:new zx(r??hp,{apiKey:a,version:J0,userAgent:i},o),entitySecret:n,storage:s??new g1}}deployContract(t){return i2(this.params)(t)}estimateContractDeploymentFee(t){return s2(this.params)(t)}importContract(t){return c2(this.params)(t)}getContract(t){return o2(this.params)(t)}listContracts(t){return l2(this.params)(t)}updateContract(t){return p2(this.params)(t)}queryContract(t){return u2(this.params)(t)}deployContractTemplate(t){return g2(this.params)(t)}estimateContractTemplateDeploymentFee(t){return x2(this.params)(t)}createEventMonitor(t){return d2(this.params)(t)}listEventMonitors(t){return m2(this.params)(t)}updateEventMonitor(t){return v2(this.params)(t)}deleteEventMonitor(t){return f2(this.params)(t)}listEventLogs(t){return h2(this.params)(t)}}function C2(e){return new Z0(e)}exports.BadGatewayError=wa,exports.BadRequestError=xa,exports.Blockchain=uy,exports.CircleSmartContractPlatformClient=Z0,exports.ConnectionAbortedError=Ra,exports.ConnectionRefusedError=Ba,exports.ConnectionResetError=Ua,exports.ConnectionTimeoutError=_a,exports.DNSNotFoundError=ka,exports.DNSTimeoutError=Na,exports.Error110700=Tu,exports.Error110701=wu,exports.Error110702=Au,exports.Error110703=Iu,exports.Error155101=Pa,exports.Error155102=Oa,exports.Error155103=Fa,exports.Error155104=Ma,exports.Error155105=Va,exports.Error155106=qa,exports.Error155107=ja,exports.Error155108=Ka,exports.Error155109=za,exports.Error155110=Ha,exports.Error155111=$a,exports.Error155112=Ga,exports.Error155113=Qa,exports.Error155114=Wa,exports.Error155115=Xa,exports.Error155116=Ya,exports.Error155117=Ja,exports.Error155118=Za,exports.Error155119=en,exports.Error155120=tn,exports.Error155121=rn,exports.Error155122=an,exports.Error155123=nn,exports.Error155124=sn,exports.Error155130=on,exports.Error155131=cn,exports.Error155132=ln,exports.Error155133=un,exports.Error155134=pn,exports.Error155135=dn,exports.Error155136=fn,exports.Error155137=mn,exports.Error155138=hn,exports.Error155139=vn,exports.Error155140=gn,exports.Error155141=xn,exports.Error155142=yn,exports.Error155143=bn,exports.Error155144=En,exports.Error155145=Cn,exports.Error155146=Sn,exports.Error155150=Tn,exports.Error155151=wn,exports.Error155152=An,exports.Error155154=In,exports.Error155155=Bn,exports.Error155156=_n,exports.Error155157=Rn,exports.Error155158=kn,exports.Error155159=Nn,exports.Error155160=Ln,exports.Error155201=Un,exports.Error155202=Dn,exports.Error155203=Pn,exports.Error155204=On,exports.Error155205=Fn,exports.Error155206=Mn,exports.Error155207=Vn,exports.Error155208=qn,exports.Error155209=jn,exports.Error155210=Kn,exports.Error155211=zn,exports.Error155215=Hn,exports.Error155218=$n,exports.Error155219=Gn,exports.Error155220=Qn,exports.Error155221=Wn,exports.Error155222=Xn,exports.Error155223=Yn,exports.Error155224=Jn,exports.Error155225=Zn,exports.Error155226=ei,exports.Error155227=ti,exports.Error155228=ri,exports.Error155229=ai,exports.Error155230=ni,exports.Error155231=ii,exports.Error155232=si,exports.Error155233=oi,exports.Error155234=ci,exports.Error155235=li,exports.Error155236=ui,exports.Error155237=pi,exports.Error155238=di,exports.Error155239=fi,exports.Error155240=mi,exports.Error155241=hi,exports.Error155242=vi,exports.Error155243=gi,exports.Error155244=xi,exports.Error155245=yi,exports.Error155247=bi,exports.Error155254=Ei,exports.Error155257=Ci,exports.Error155258=Si,exports.Error155262=Ti,exports.Error155264=wi,exports.Error155501=Ai,exports.Error155502=Ii,exports.Error155503=Bi,exports.Error155504=_i,exports.Error155505=Ri,exports.Error155506=ki,exports.Error155507=Ni,exports.Error155508=Li,exports.Error155509=Ui,exports.Error155510=Di,exports.Error155511=Pi,exports.Error155512=Oi,exports.Error155514=Fi,exports.Error155515=Mi,exports.Error155516=Vi,exports.Error155517=qi,exports.Error155601=ji,exports.Error155701=Ki,exports.Error155702=zi,exports.Error155703=Hi,exports.Error155704=$i,exports.Error155705=Gi,exports.Error155706=Qi,exports.Error155707=Wi,exports.Error155708=Xi,exports.Error155709=Yi,exports.Error155710=Ji,exports.Error155711=Zi,exports.Error155712=es,exports.Error155713=ts,exports.Error155714=rs,exports.Error155715=as,exports.Error155716=ns,exports.Error155717=is,exports.Error155718=ss,exports.Error155719=os,exports.Error155720=cs,exports.Error155721=ls,exports.Error155801=us,exports.Error155802=ps,exports.Error155803=ds,exports.Error155804=fs,exports.Error155805=ms,exports.Error155806=hs,exports.Error155807=vs,exports.Error155808=gs,exports.Error156001=xs,exports.Error156002=ys,exports.Error156003=bs,exports.Error156004=Es,exports.Error156005=Cs,exports.Error156006=Ss,exports.Error156007=Ts,exports.Error156008=ws,exports.Error156009=As,exports.Error156010=Is,exports.Error156011=Bs,exports.Error156012=_s,exports.Error156013=Rs,exports.Error156014=ks,exports.Error156015=Ns,exports.Error156016=Ls,exports.Error156017=Us,exports.Error156018=Ds,exports.Error156019=Ps,exports.Error156020=Os,exports.Error156021=Fs,exports.Error156023=Ms,exports.Error156024=Vs,exports.Error156025=qs,exports.Error156026=js,exports.Error156027=Ks,exports.Error156030=zs,exports.Error156031=Hs,exports.Error156032=$s,exports.Error175001=Gs,exports.Error175002=Qs,exports.Error175003=Ws,exports.Error175004=Xs,exports.Error175005=Ys,exports.Error175006=Js,exports.Error175007=Zs,exports.Error175008=eo,exports.Error175009=to,exports.Error175010=ro,exports.Error175011=ao,exports.Error175012=no,exports.Error175013=io,exports.Error175201=so,exports.Error175202=oo,exports.Error175203=co,exports.Error175204=lo,exports.Error175205=uo,exports.Error175301=po,exports.Error175302=fo,exports.Error175303=mo,exports.Error175401=ho,exports.Error175402=vo,exports.Error175403=go,exports.Error175404=xo,exports.Error175405=yo,exports.Error175406=bo,exports.Error175407=Eo,exports.Error175408=Co,exports.Error175409=So,exports.Error175410=To,exports.Error177001=wo,exports.Error177002=Ao,exports.Error177003=Io,exports.Error177004=Bo,exports.Error177005=_o,exports.Error177006=Ro,exports.Error177007=ko,exports.Error177008=No,exports.Error177009=Lo,exports.Error177010=Uo,exports.Error177011=Do,exports.Error177012=Po,exports.Error177013=Oo,exports.Error177014=Fo,exports.Error177015=Mo,exports.Error177016=Vo,exports.Error177017=qo,exports.Error177018=jo,exports.Error177019=Ko,exports.Error177020=zo,exports.Error177021=Ho,exports.Error177022=$o,exports.Error177023=Go,exports.Error177024=Qo,exports.Error177025=Wo,exports.Error177026=Xo,exports.Error177301=Yo,exports.Error177302=Jo,exports.Error177303=Zo,exports.Error177304=ec,exports.Error177305=tc,exports.Error177601=rc,exports.Error177602=ac,exports.Error177603=nc,exports.Error177604=ic,exports.Error177605=sc,exports.Error177606=oc,exports.Error177607=cc,exports.Error177901=lc,exports.ForbiddenError=ba,exports.GatewayTimeoutError=Ia,exports.HostUnreachableError=Da,exports.HttpError=ga,exports.HttpRequestError=Rt,exports.HttpResponseError=E,exports.InternalServerError=Sa,exports.NetworkUnreachableError=La,exports.NotFoundError=Ea,exports.NotImplementedError=Ta,exports.RatelimitError=Ca,exports.ServiceUnavailableError=Aa,exports.UnauthorizedError=ya,exports.defaultBaseUrl=hp,exports.fromAxiosError=tt,exports.initiateSmartContractPlatformClient=C2;
46
+ `,s},gl.publicKeyToOpenSSH=function(e,t){var a="ssh-rsa";t=t||"";var r=Me.util.createBuffer();return ea(r,a),Wt(r,e.e),Wt(r,e.n),a+" "+Me.util.encode64(r.bytes())+" "+t},gl.privateKeyToOpenSSH=function(e,t){return t?Me.pki.encryptRsaPrivateKey(e,t,{legacy:!0,algorithm:"aes128"}):Me.pki.privateKeyToPem(e)},gl.getPublicKeyFingerprint=function(e,t){t=t||{};var a=t.md||Me.md.md5.create(),r="ssh-rsa",n=Me.util.createBuffer();ea(n,r),Wt(n,e.e),Wt(n,e.n),a.start(),a.update(n.getBytes());var s=a.digest();if(t.encoding==="hex"){var i=s.toHex();return t.delimiter?i.match(/.{2}/g).join(t.delimiter):i}else{if(t.encoding==="binary")return s.getBytes();if(t.encoding)throw new Error('Unknown encoding "'+t.encoding+'".')}return s};function Wt(e,t){var a=t.toString(16);a[0]>="8"&&(a="00"+a);var r=Me.util.hexToBytes(a);e.putInt32(r.length),e.putBytes(r)}function ea(e,t){e.putInt32(t.length),e.putString(t)}function xl(){for(var e=Me.md.sha1.create(),t=arguments.length,a=0;a<t;++a)e.update(arguments[a]);return e.digest()}var Ec=te;const b2=e=>{const t=Ec.util.hexToBytes(e.entitySecret),a=Ec.pki.publicKeyFromPem(e.publicKey).encrypt(t,"RSA-OAEP",{md:Ec.md.sha256.create(),mgf1:{md:Ec.md.sha256.create()}});return Ec.util.encode64(a)},Z0=e=>async()=>{let t=e.storage?await e.storage.get("publicKey"):void 0;if(t===void 0){const a=await I1(e)();if(!a.data?.publicKey)throw new Error("Could not fetch public key");t=a.data.publicKey,e.storage&&await e.storage.set("publicKey",t)}return b2({entitySecret:e.entitySecret,publicKey:t})},yl=()=>Lr.randomUUID();var em="10.3.0";const E2=e=>async({idempotencyKey:t,fee:a,xRequestId:r,...n})=>{try{return St(await e.client.DeployImport.deployContract({entitySecretCiphertext:await Z0(e)(),idempotencyKey:t??yl(),...a.config,...n},r))}catch(s){throw rt(s)?et(s):s}},C2=e=>async({xRequestId:t,...a})=>{try{return St(await e.client.DeployImport.estimateContractDeploy(a,t))}catch(r){throw rt(r)?et(r):r}},S2=e=>async({id:t,xRequestId:a})=>{try{return St(await e.client.ViewUpdate.getContract(t,a))}catch(r){throw rt(r)?et(r):r}},T2=e=>async({idempotencyKey:t,xRequestId:a,...r})=>{try{return St(await e.client.DeployImport.importContract({idempotencyKey:t??yl(),...r},a))}catch(n){throw rt(n)?et(n):n}},w2=e=>async t=>{try{return St(await e.client.ViewUpdate.listContracts(t?.blockchain,t?.contractInputType,t?.deployerAddress,t?.name,t?.status,t?.from,t?.to,t?.pageBefore,t?.pageAfter,t?.pageSize,t?.xRequestId))}catch(a){throw rt(a)?et(a):a}},A2=e=>async({xRequestId:t,...a})=>{try{return St(await e.client.Interact.queryContract(a,t))}catch(r){throw rt(r)?et(r):r}},I2=e=>async({id:t,xRequestId:a,...r})=>{try{return St(await e.client.ViewUpdate.updateContract(t,r,a))}catch(n){throw rt(n)?et(n):n}},B2=e=>async({idempotencyKey:t,xRequestId:a,...r})=>{try{return St(await e.client.EventMonitors.createEventMonitor(a,{idempotencyKey:t??yl(),...r}))}catch(n){throw rt(n)?et(n):n}},_2=e=>async({xRequestId:t,...a})=>{try{return await e.client.EventMonitors.deleteEventMonitor(a.id,t)}catch(r){throw rt(r)?et(r):r}},R2=e=>async t=>{try{return St(await e.client.EventMonitors.getEventMonitors(t?.contractAddress,t?.blockchain,t?.eventSignature,t?.from,t?.to,t?.pageBefore,t?.pageAfter,t?.pageSize,t?.xRequestId))}catch(a){throw rt(a)?et(a):a}},k2=e=>async t=>{try{return St(await e.client.EventMonitors.listEventLogs(t?.contractAddress,t?.blockchain,t?.from,t?.to,t?.pageBefore,t?.pageAfter,t?.pageSize,t?.xRequestId))}catch(a){throw rt(a)?et(a):a}},N2=e=>async({id:t,xRequestId:a,...r})=>{try{return St(await e.client.EventMonitors.updateEventMonitor(t,a,r))}catch(n){throw rt(n)?et(n):n}},L2=e=>async({id:t,idempotencyKey:a,fee:r,xRequestId:n,...s})=>{try{return St(await e.client.Templates.deployContractTemplate(t,{entitySecretCiphertext:await Z0(e)(),idempotencyKey:a??yl(),...r.config,...s},n))}catch(i){throw rt(i)?et(i):i}},U2=e=>async({id:t,xRequestId:a,...r})=>{try{return St(await e.client.Templates.estimateContractTemplateDeploy(t,r,a))}catch(n){throw rt(n)?et(n):n}};var D2=Object.defineProperty,P2=(e,t,a)=>t in e?D2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,O2=(e,t,a)=>P2(e,typeof t!="symbol"?t+"":t,a);const vp="https://api.circle.com";class tm{constructor(t){O2(this,"params");const{apiKey:a,baseUrl:r,entitySecret:n,storage:s,userAgent:i,headers:o}=t;this.params={client:new Iy(r??vp,{apiKey:a,version:em,userAgent:i},o),configurationsClient:new ny(r??vp,{apiKey:a,version:em,userAgent:i},o),entitySecret:n,storage:s??new k1}}deployContract(t){return E2(this.params)(t)}estimateContractDeploymentFee(t){return C2(this.params)(t)}importContract(t){return T2(this.params)(t)}getContract(t){return S2(this.params)(t)}listContracts(t){return w2(this.params)(t)}updateContract(t){return I2(this.params)(t)}queryContract(t){return A2(this.params)(t)}deployContractTemplate(t){return L2(this.params)(t)}estimateContractTemplateDeploymentFee(t){return U2(this.params)(t)}createEventMonitor(t){return B2(this.params)(t)}listEventMonitors(t){return R2(this.params)(t)}updateEventMonitor(t){return N2(this.params)(t)}deleteEventMonitor(t){return _2(this.params)(t)}listEventLogs(t){return k2(this.params)(t)}}function F2(e){return new tm(e)}exports.BadGatewayError=Ta,exports.BadRequestError=ga,exports.Blockchain=Ty,exports.CircleSmartContractPlatformClient=tm,exports.ConnectionAbortedError=_a,exports.ConnectionRefusedError=Ia,exports.ConnectionResetError=La,exports.ConnectionTimeoutError=Ba,exports.DNSNotFoundError=Ra,exports.DNSTimeoutError=ka,exports.Error110700=Au,exports.Error110701=Iu,exports.Error110702=Bu,exports.Error110703=_u,exports.Error155101=Da,exports.Error155102=Pa,exports.Error155103=Oa,exports.Error155104=Fa,exports.Error155105=Ma,exports.Error155106=Va,exports.Error155107=qa,exports.Error155108=ja,exports.Error155109=Ka,exports.Error155110=za,exports.Error155111=Ha,exports.Error155112=$a,exports.Error155113=Ga,exports.Error155114=Qa,exports.Error155115=Wa,exports.Error155116=Ya,exports.Error155117=Xa,exports.Error155118=Ja,exports.Error155119=Za,exports.Error155120=en,exports.Error155121=tn,exports.Error155122=rn,exports.Error155123=an,exports.Error155124=nn,exports.Error155130=sn,exports.Error155131=on,exports.Error155132=cn,exports.Error155133=ln,exports.Error155134=un,exports.Error155135=pn,exports.Error155136=dn,exports.Error155137=fn,exports.Error155138=mn,exports.Error155139=hn,exports.Error155140=vn,exports.Error155141=gn,exports.Error155142=xn,exports.Error155143=yn,exports.Error155144=bn,exports.Error155145=En,exports.Error155146=Cn,exports.Error155150=Sn,exports.Error155151=Tn,exports.Error155152=wn,exports.Error155154=An,exports.Error155155=In,exports.Error155156=Bn,exports.Error155157=_n,exports.Error155158=Rn,exports.Error155159=kn,exports.Error155160=Nn,exports.Error155201=Ln,exports.Error155202=Un,exports.Error155203=Dn,exports.Error155204=Pn,exports.Error155205=On,exports.Error155206=Fn,exports.Error155207=Mn,exports.Error155208=Vn,exports.Error155209=qn,exports.Error155210=jn,exports.Error155211=Kn,exports.Error155215=zn,exports.Error155218=Hn,exports.Error155219=$n,exports.Error155220=Gn,exports.Error155221=Qn,exports.Error155222=Wn,exports.Error155223=Yn,exports.Error155224=Xn,exports.Error155225=Jn,exports.Error155226=Zn,exports.Error155227=ei,exports.Error155228=ti,exports.Error155229=ri,exports.Error155230=ai,exports.Error155231=ni,exports.Error155232=ii,exports.Error155233=si,exports.Error155234=oi,exports.Error155235=ci,exports.Error155236=li,exports.Error155237=ui,exports.Error155238=pi,exports.Error155239=di,exports.Error155240=fi,exports.Error155241=mi,exports.Error155242=hi,exports.Error155243=vi,exports.Error155244=gi,exports.Error155245=xi,exports.Error155247=yi,exports.Error155254=bi,exports.Error155257=Ei,exports.Error155258=Ci,exports.Error155262=Si,exports.Error155264=Ti,exports.Error155501=wi,exports.Error155502=Ai,exports.Error155503=Ii,exports.Error155504=Bi,exports.Error155505=_i,exports.Error155506=Ri,exports.Error155507=ki,exports.Error155508=Ni,exports.Error155509=Li,exports.Error155510=Ui,exports.Error155511=Di,exports.Error155512=Pi,exports.Error155514=Oi,exports.Error155515=Fi,exports.Error155516=Mi,exports.Error155517=Vi,exports.Error155601=qi,exports.Error155701=ji,exports.Error155702=Ki,exports.Error155703=zi,exports.Error155704=Hi,exports.Error155705=$i,exports.Error155706=Gi,exports.Error155707=Qi,exports.Error155708=Wi,exports.Error155709=Yi,exports.Error155710=Xi,exports.Error155711=Ji,exports.Error155712=Zi,exports.Error155713=es,exports.Error155714=ts,exports.Error155715=rs,exports.Error155716=as,exports.Error155717=ns,exports.Error155718=is,exports.Error155719=ss,exports.Error155720=os,exports.Error155721=cs,exports.Error155801=ls,exports.Error155802=us,exports.Error155803=ps,exports.Error155804=ds,exports.Error155805=fs,exports.Error155806=ms,exports.Error155807=hs,exports.Error155808=vs,exports.Error156001=gs,exports.Error156002=xs,exports.Error156003=ys,exports.Error156004=bs,exports.Error156005=Es,exports.Error156006=Cs,exports.Error156007=Ss,exports.Error156008=Ts,exports.Error156009=ws,exports.Error156010=As,exports.Error156011=Is,exports.Error156012=Bs,exports.Error156013=_s,exports.Error156014=Rs,exports.Error156015=ks,exports.Error156016=Ns,exports.Error156017=Ls,exports.Error156018=Us,exports.Error156019=Ds,exports.Error156020=Ps,exports.Error156021=Os,exports.Error156023=Fs,exports.Error156024=Ms,exports.Error156025=Vs,exports.Error156026=qs,exports.Error156027=js,exports.Error156030=Ks,exports.Error156031=zs,exports.Error156032=Hs,exports.Error175001=$s,exports.Error175002=Gs,exports.Error175003=Qs,exports.Error175004=Ws,exports.Error175005=Ys,exports.Error175006=Xs,exports.Error175007=Js,exports.Error175008=Zs,exports.Error175009=eo,exports.Error175010=to,exports.Error175011=ro,exports.Error175012=ao,exports.Error175013=no,exports.Error175201=io,exports.Error175202=so,exports.Error175203=oo,exports.Error175204=co,exports.Error175205=lo,exports.Error175301=uo,exports.Error175302=po,exports.Error175303=fo,exports.Error175401=mo,exports.Error175402=ho,exports.Error175403=vo,exports.Error175404=go,exports.Error175405=xo,exports.Error175406=yo,exports.Error175407=bo,exports.Error175408=Eo,exports.Error175409=Co,exports.Error175410=So,exports.Error177001=To,exports.Error177002=wo,exports.Error177003=Ao,exports.Error177004=Io,exports.Error177005=Bo,exports.Error177006=_o,exports.Error177007=Ro,exports.Error177008=ko,exports.Error177009=No,exports.Error177010=Lo,exports.Error177011=Uo,exports.Error177012=Do,exports.Error177013=Po,exports.Error177014=Oo,exports.Error177015=Fo,exports.Error177016=Mo,exports.Error177017=Vo,exports.Error177018=qo,exports.Error177019=jo,exports.Error177020=Ko,exports.Error177021=zo,exports.Error177022=Ho,exports.Error177023=$o,exports.Error177024=Go,exports.Error177025=Qo,exports.Error177026=Wo,exports.Error177301=Yo,exports.Error177302=Xo,exports.Error177303=Jo,exports.Error177304=Zo,exports.Error177305=ec,exports.Error177601=tc,exports.Error177602=rc,exports.Error177603=ac,exports.Error177604=nc,exports.Error177605=ic,exports.Error177606=sc,exports.Error177607=oc,exports.Error177901=cc,exports.ForbiddenError=ya,exports.GatewayTimeoutError=Aa,exports.HostUnreachableError=Ua,exports.HttpError=va,exports.HttpRequestError=kt,exports.HttpResponseError=E,exports.InternalServerError=Ca,exports.NetworkUnreachableError=Na,exports.NotFoundError=ba,exports.NotImplementedError=Sa,exports.RatelimitError=Ea,exports.ServiceUnavailableError=wa,exports.UnauthorizedError=xa,exports.defaultBaseUrl=vp,exports.fromAxiosError=et,exports.initiateSmartContractPlatformClient=F2;