import{eI as Bf,ge as KV,d4 as $V}from"./admin-BkqzSx7d.js";const E5="data:image/svg+xml,%3csvg%20width='19'%20height='18'%20viewBox='0%200%2019%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M3.875%208.625H9.125V3.375H3.875V8.625ZM3.125%201.875H9.875C10.2892%201.875%2010.625%202.21079%2010.625%202.625V9.375C10.625%209.78921%2010.2892%2010.125%209.875%2010.125H3.125C2.71079%2010.125%202.375%209.78921%202.375%209.375V2.625C2.375%202.21079%202.71079%201.875%203.125%201.875ZM5.375%204.875H7.625V7.125H5.375V4.875ZM3.875%2012.75V14.625H5.75V12.75H3.875ZM3.125%2011.25H6.5C6.91421%2011.25%207.25%2011.5858%207.25%2012V15.375C7.25%2015.7892%206.91421%2016.125%206.5%2016.125H3.125C2.71079%2016.125%202.375%2015.7892%202.375%2015.375V12C2.375%2011.5858%202.71079%2011.25%203.125%2011.25ZM13.25%203.375V5.25H15.125V3.375H13.25ZM12.5%201.875H15.875C16.2892%201.875%2016.625%202.21079%2016.625%202.625V6C16.625%206.41421%2016.2892%206.75%2015.875%206.75H12.5C12.0858%206.75%2011.75%206.41421%2011.75%206V2.625C11.75%202.21079%2012.0858%201.875%2012.5%201.875ZM13.25%2012.75V14.625H15.125V12.75H13.25ZM12.5%2011.25H15.875C16.2892%2011.25%2016.625%2011.5858%2016.625%2012V15.375C16.625%2015.7892%2016.2892%2016.125%2015.875%2016.125H12.5C12.0858%2016.125%2011.75%2015.7892%2011.75%2015.375V12C11.75%2011.5858%2012.0858%2011.25%2012.5%2011.25ZM8.75%2011.25H10.25V12.75H8.75V11.25ZM8.75%2013.875H10.25V16.125H8.75V13.875ZM11.75%208.25H13.25V9.75H11.75V8.25ZM14.375%208.25H16.625V9.75H14.375V8.25Z'%20fill='%231F2329'/%3e%3c/svg%3e",y5=(t,a,e)=>{const r=t[a];return r?typeof r=="function"?r():Promise.resolve(r):new Promise((n,i)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(i.bind(null,new Error("Unknown variable dynamic import: "+a+(a.split("/").length!==e?". Note that variables only represent file names one level deep.":""))))})};var ba,Wf;function me(){return Wf||(Wf=1,ba={options:{usePureJavaScript:!1}}),ba}var Ia={exports:{}},Pa,Hf;function WV(){if(Hf)return Pa;Hf=1;var t={};Pa=t;var a={};t.encode=function(r,n,i){if(typeof n!="string")throw new TypeError('"alphabet" must be a string.');if(i!==void 0&&typeof i!="number")throw new TypeError('"maxline" must be a number.');var u="";if(!(r instanceof Uint8Array))u=e(r,n);else{var o=0,v=n.length,c=n.charAt(0),h=[0];for(o=0;o0;)h.push(g%v),g=g/v|0}for(o=0;r[o]===0&&o=0;--o)u+=n[h[o]]}if(i){var s=new RegExp(".{1,"+i+"}","g");u=u.match(s).join(`\r `)}return u},t.decode=function(r,n){if(typeof r!="string")throw new TypeError('"input" must be a string.');if(typeof n!="string")throw new TypeError('"alphabet" must be a string.');var i=a[n];if(!i){i=a[n]=[];for(var u=0;u>=8;for(;g>0;)c.push(g&255),g>>=8}for(var s=0;r[s]===v&&s0;)v.push(h%u),h=h/u|0}var E="";for(i=0;r.at(i)===0&&i=0;--i)E+=n[v[i]];return E}return Pa}var Qf;function Ne(){if(Qf)return Ia.exports;Qf=1;var t=me(),a=WV(),e=Ia.exports=t.util=t.util||{};(function(){if(typeof process<"u"&&process.nextTick&&!process.browser){e.nextTick=process.nextTick,typeof setImmediate=="function"?e.setImmediate=setImmediate:e.setImmediate=e.nextTick;return}if(typeof setImmediate=="function"){e.setImmediate=function(){return setImmediate.apply(void 0,arguments)},e.nextTick=function(f){return setImmediate(f)};return}if(e.setImmediate=function(f){setTimeout(f,0)},typeof window<"u"&&typeof window.postMessage=="function"){let f=function(d){if(d.source===window&&d.data===l){d.stopPropagation();var M=C.slice();C.length=0,M.forEach(function(V){V()})}};var l="forge.setImmediate",C=[];e.setImmediate=function(d){C.push(d),C.length===1&&window.postMessage(l,"*")},window.addEventListener("message",f,!0)}if(typeof MutationObserver<"u"){var b=Date.now(),k=!0,B=document.createElement("div"),C=[];new MutationObserver(function(){var d=C.slice();C.length=0,d.forEach(function(M){M()})}).observe(B,{attributes:!0});var N=e.setImmediate;e.setImmediate=function(d){Date.now()-b>15?(b=Date.now(),N(d)):(C.push(d),C.length===1&&B.setAttribute("a",k=!k))}}e.nextTick=e.setImmediate})(),e.isNodejs=typeof process<"u"&&process.versions&&process.versions.node,e.globalScope=(function(){return e.isNodejs?Bf:typeof self>"u"?window:self})(),e.isArray=Array.isArray||function(l){return Object.prototype.toString.call(l)==="[object Array]"},e.isArrayBuffer=function(l){return typeof ArrayBuffer<"u"&&l instanceof ArrayBuffer},e.isArrayBufferView=function(l){return l&&e.isArrayBuffer(l.buffer)&&l.byteLength!==void 0};function r(l){if(!(l===8||l===16||l===24||l===32))throw new Error("Only 8, 16, 24, or 32 bits supported: "+l)}e.ByteBuffer=n;function n(l){if(this.data="",this.read=0,typeof l=="string")this.data=l;else if(e.isArrayBuffer(l)||e.isArrayBufferView(l))if(typeof Buffer<"u"&&l instanceof Buffer)this.data=l.toString("binary");else{var C=new Uint8Array(l);try{this.data=String.fromCharCode.apply(null,C)}catch{for(var b=0;bi&&(this.data.substr(0,1),this._constructedStringLength=0)},e.ByteStringBuffer.prototype.length=function(){return this.data.length-this.read},e.ByteStringBuffer.prototype.isEmpty=function(){return this.length()<=0},e.ByteStringBuffer.prototype.putByte=function(l){return this.putBytes(String.fromCharCode(l))},e.ByteStringBuffer.prototype.fillWithByte=function(l,C){l=String.fromCharCode(l);for(var b=this.data;C>0;)C&1&&(b+=l),C>>>=1,C>0&&(l+=l);return this.data=b,this._optimizeConstructedString(C),this},e.ByteStringBuffer.prototype.putBytes=function(l){return this.data+=l,this._optimizeConstructedString(l.length),this},e.ByteStringBuffer.prototype.putString=function(l){return this.putBytes(e.encodeUtf8(l))},e.ByteStringBuffer.prototype.putInt16=function(l){return this.putBytes(String.fromCharCode(l>>8&255)+String.fromCharCode(l&255))},e.ByteStringBuffer.prototype.putInt24=function(l){return this.putBytes(String.fromCharCode(l>>16&255)+String.fromCharCode(l>>8&255)+String.fromCharCode(l&255))},e.ByteStringBuffer.prototype.putInt32=function(l){return this.putBytes(String.fromCharCode(l>>24&255)+String.fromCharCode(l>>16&255)+String.fromCharCode(l>>8&255)+String.fromCharCode(l&255))},e.ByteStringBuffer.prototype.putInt16Le=function(l){return this.putBytes(String.fromCharCode(l&255)+String.fromCharCode(l>>8&255))},e.ByteStringBuffer.prototype.putInt24Le=function(l){return this.putBytes(String.fromCharCode(l&255)+String.fromCharCode(l>>8&255)+String.fromCharCode(l>>16&255))},e.ByteStringBuffer.prototype.putInt32Le=function(l){return this.putBytes(String.fromCharCode(l&255)+String.fromCharCode(l>>8&255)+String.fromCharCode(l>>16&255)+String.fromCharCode(l>>24&255))},e.ByteStringBuffer.prototype.putInt=function(l,C){r(C);var b="";do C-=8,b+=String.fromCharCode(l>>C&255);while(C>0);return this.putBytes(b)},e.ByteStringBuffer.prototype.putSignedInt=function(l,C){return l<0&&(l+=2<0);return C},e.ByteStringBuffer.prototype.getSignedInt=function(l){var C=this.getInt(l),b=2<=b&&(C-=b<<1),C},e.ByteStringBuffer.prototype.getBytes=function(l){var C;return l?(l=Math.min(this.length(),l),C=this.data.slice(this.read,this.read+l),this.read+=l):l===0?C="":(C=this.read===0?this.data:this.data.slice(this.read),this.clear()),C},e.ByteStringBuffer.prototype.bytes=function(l){return typeof l>"u"?this.data.slice(this.read):this.data.slice(this.read,this.read+l)},e.ByteStringBuffer.prototype.at=function(l){return this.data.charCodeAt(this.read+l)},e.ByteStringBuffer.prototype.setAt=function(l,C){return this.data=this.data.substr(0,this.read+l)+String.fromCharCode(C)+this.data.substr(this.read+l+1),this},e.ByteStringBuffer.prototype.last=function(){return this.data.charCodeAt(this.data.length-1)},e.ByteStringBuffer.prototype.copy=function(){var l=e.createBuffer(this.data);return l.read=this.read,l},e.ByteStringBuffer.prototype.compact=function(){return this.read>0&&(this.data=this.data.slice(this.read),this.read=0),this},e.ByteStringBuffer.prototype.clear=function(){return this.data="",this.read=0,this},e.ByteStringBuffer.prototype.truncate=function(l){var C=Math.max(0,this.length()-l);return this.data=this.data.substr(this.read,C),this.read=0,this},e.ByteStringBuffer.prototype.toHex=function(){for(var l="",C=this.read;C=l)return this;C=Math.max(C||this.growSize,l);var b=new Uint8Array(this.data.buffer,this.data.byteOffset,this.data.byteLength),k=new Uint8Array(this.length()+C);return k.set(b),this.data=new DataView(k.buffer),this},e.DataBuffer.prototype.putByte=function(l){return this.accommodate(1),this.data.setUint8(this.write++,l),this},e.DataBuffer.prototype.fillWithByte=function(l,C){this.accommodate(C);for(var b=0;b>8&65535),this.data.setInt8(this.write,l>>16&255),this.write+=3,this},e.DataBuffer.prototype.putInt32=function(l){return this.accommodate(4),this.data.setInt32(this.write,l),this.write+=4,this},e.DataBuffer.prototype.putInt16Le=function(l){return this.accommodate(2),this.data.setInt16(this.write,l,!0),this.write+=2,this},e.DataBuffer.prototype.putInt24Le=function(l){return this.accommodate(3),this.data.setInt8(this.write,l>>16&255),this.data.setInt16(this.write,l>>8&65535,!0),this.write+=3,this},e.DataBuffer.prototype.putInt32Le=function(l){return this.accommodate(4),this.data.setInt32(this.write,l,!0),this.write+=4,this},e.DataBuffer.prototype.putInt=function(l,C){r(C),this.accommodate(C/8);do C-=8,this.data.setInt8(this.write++,l>>C&255);while(C>0);return this},e.DataBuffer.prototype.putSignedInt=function(l,C){return r(C),this.accommodate(C/8),l<0&&(l+=2<0);return C},e.DataBuffer.prototype.getSignedInt=function(l){var C=this.getInt(l),b=2<=b&&(C-=b<<1),C},e.DataBuffer.prototype.getBytes=function(l){var C;return l?(l=Math.min(this.length(),l),C=this.data.slice(this.read,this.read+l),this.read+=l):l===0?C="":(C=this.read===0?this.data:this.data.slice(this.read),this.clear()),C},e.DataBuffer.prototype.bytes=function(l){return typeof l>"u"?this.data.slice(this.read):this.data.slice(this.read,this.read+l)},e.DataBuffer.prototype.at=function(l){return this.data.getUint8(this.read+l)},e.DataBuffer.prototype.setAt=function(l,C){return this.data.setUint8(l,C),this},e.DataBuffer.prototype.last=function(){return this.data.getUint8(this.write-1)},e.DataBuffer.prototype.copy=function(){return new e.DataBuffer(this)},e.DataBuffer.prototype.compact=function(){if(this.read>0){var l=new Uint8Array(this.data.buffer,this.read),C=new Uint8Array(l.byteLength);C.set(l),this.data=new DataView(C),this.write-=this.read,this.read=0}return this},e.DataBuffer.prototype.clear=function(){return this.data=new DataView(new ArrayBuffer(0)),this.read=this.write=0,this},e.DataBuffer.prototype.truncate=function(l){return this.write=Math.max(0,this.length()-l),this.read=Math.min(this.read,this.write),this},e.DataBuffer.prototype.toHex=function(){for(var l="",C=this.read;C0;)C&1&&(b+=l),C>>>=1,C>0&&(l+=l);return b},e.xorBytes=function(l,C,b){for(var k="",B="",N="",f=0,d=0;b>0;--b,++f)B=l.charCodeAt(f)^C.charCodeAt(f),d>=10&&(k+=N,N="",d=0),N+=String.fromCharCode(B),++d;return k+=N,k},e.hexToBytes=function(l){var C="",b=0;for(l.length&!0&&(b=1,C+=String.fromCharCode(parseInt(l[0],16)));b>24&255)+String.fromCharCode(l>>16&255)+String.fromCharCode(l>>8&255)+String.fromCharCode(l&255)};var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",v=[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],c="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";e.encode64=function(l,C){for(var b="",k="",B,N,f,d=0;d>2),b+=o.charAt((B&3)<<4|N>>4),isNaN(N)?b+="==":(b+=o.charAt((N&15)<<2|f>>6),b+=isNaN(f)?"=":o.charAt(f&63)),C&&b.length>C&&(k+=b.substr(0,C)+`\r `,b=b.substr(C));return k+=b,k},e.decode64=function(l){l=l.replace(/[^A-Za-z0-9\+\/\=]/g,"");for(var C="",b,k,B,N,f=0;f>4),B!==64&&(C+=String.fromCharCode((k&15)<<4|B>>2),N!==64&&(C+=String.fromCharCode((B&3)<<6|N)));return C},e.encodeUtf8=function(l){return unescape(encodeURIComponent(l))},e.decodeUtf8=function(l){return decodeURIComponent(escape(l))},e.binary={raw:{},hex:{},base64:{},base58:{},baseN:{encode:a.encode,decode:a.decode}},e.binary.raw.encode=function(l){return String.fromCharCode.apply(null,l)},e.binary.raw.decode=function(l,C,b){var k=C;k||(k=new Uint8Array(l.length)),b=b||0;for(var B=b,N=0;N>2),b+=o.charAt((B&3)<<4|N>>4),isNaN(N)?b+="==":(b+=o.charAt((N&15)<<2|f>>6),b+=isNaN(f)?"=":o.charAt(f&63)),C&&b.length>C&&(k+=b.substr(0,C)+`\r `,b=b.substr(C));return k+=b,k},e.binary.base64.decode=function(l,C,b){var k=C;k||(k=new Uint8Array(Math.ceil(l.length/4)*3)),l=l.replace(/[^A-Za-z0-9\+\/\=]/g,""),b=b||0;for(var B,N,f,d,M=0,V=b;M>4,f!==64&&(k[V++]=(N&15)<<4|f>>2,d!==64&&(k[V++]=(f&3)<<6|d));return C?V-b:k.subarray(0,V)},e.binary.base58.encode=function(l,C){return e.binary.baseN.encode(l,c,C)},e.binary.base58.decode=function(l,C){return e.binary.baseN.decode(l,c,C)},e.text={utf8:{},utf16:{}},e.text.utf8.encode=function(l,C,b){l=e.encodeUtf8(l);var k=C;k||(k=new Uint8Array(l.length)),b=b||0;for(var B=b,N=0;N"u"&&(b=["web","flash"]);var B,N=!1,f=null;for(var d in b){B=b[d];try{if(B==="flash"||B==="both"){if(C[0]===null)throw new Error("Flash local storage not available.");k=l.apply(this,C),N=B==="flash"}(B==="web"||B==="both")&&(C[0]=localStorage,k=l.apply(this,C),N=!0)}catch(M){f=M}if(N)break}if(!N)throw f;return k};return e.setItem=function(l,C,b,k,B){S(g,arguments,B)},e.getItem=function(l,C,b,k){return S(s,arguments,k)},e.removeItem=function(l,C,b,k){S(p,arguments,k)},e.clearItems=function(l,C,b){S(m,arguments,b)},e.isEmpty=function(l){for(var C in l)if(l.hasOwnProperty(C))return!1;return!0},e.format=function(l){for(var C=/%./g,b,k,B=0,N=[],f=0;b=C.exec(l);){k=l.substring(f,C.lastIndex-2),k.length>0&&N.push(k),f=C.lastIndex;var d=b[0][1];switch(d){case"s":case"o":B");break;case"%":N.push("%");break;default:N.push("<%"+d+"?>")}}return N.push(l.substring(f)),N.join("")},e.formatNumber=function(l,C,b,k){var B=l,N=isNaN(C=Math.abs(C))?2:C,f=b===void 0?",":b,d=k===void 0?".":k,M=B<0?"-":"",V=parseInt(B=Math.abs(+B||0).toFixed(N),10)+"",q=V.length>3?V.length%3:0;return M+(q?V.substr(0,q)+d:"")+V.substr(q).replace(/(\d{3})(?=\d)/g,"$1"+d)+(N?f+Math.abs(B-V).toFixed(N).slice(2):"")},e.formatSize=function(l){return l>=1073741824?l=e.formatNumber(l/1073741824,2,".","")+" GiB":l>=1048576?l=e.formatNumber(l/1048576,2,".","")+" MiB":l>=1024?l=e.formatNumber(l/1024,0)+" KiB":l=e.formatNumber(l,0)+" bytes",l},e.bytesFromIP=function(l){return l.indexOf(".")!==-1?e.bytesFromIPv4(l):l.indexOf(":")!==-1?e.bytesFromIPv6(l):null},e.bytesFromIPv4=function(l){if(l=l.split("."),l.length!==4)return null;for(var C=e.createBuffer(),b=0;bb[k].end-b[k].start&&(k=b.length-1))}C.push(N)}if(b.length>0){var M=b[k];M.end-M.start>0&&(C.splice(M.start,M.end-M.start+1,""),M.start===0&&C.unshift(""),M.end===7&&C.push(""))}return C.join(":")},e.estimateCores=function(l,C){if(typeof l=="function"&&(C=l,l={}),l=l||{},"cores"in e&&!l.update)return C(null,e.cores);if(typeof navigator<"u"&&"hardwareConcurrency"in navigator&&navigator.hardwareConcurrency>0)return e.cores=navigator.hardwareConcurrency,C(null,e.cores);if(typeof Worker>"u")return e.cores=1,C(null,e.cores);if(typeof Blob>"u")return e.cores=2,C(null,e.cores);var b=URL.createObjectURL(new Blob(["(",(function(){self.addEventListener("message",function(f){var d=Date.now(),M=d+4;self.postMessage({st:d,et:M})})}).toString(),")()"],{type:"application/javascript"}));k([],5,16);function k(f,d,M){if(d===0){var V=Math.floor(f.reduce(function(q,P){return q+P},0)/f.length);return e.cores=Math.max(1,V),URL.revokeObjectURL(b),C(null,e.cores)}B(M,function(q,P){f.push(N(M,P)),k(f,d-1,M)})}function B(f,d){for(var M=[],V=[],q=0;qj.st&&q.stq.st&&j.st0))return!0;for(var v=0;v0))return!0;for(var v=0;v0)return!1;var o=i.length(),v=i.at(o-1);return v>this.blockSize<<2?!1:(i.truncate(v),!0)},a.cbc=function(i){i=i||{},this.name="CBC",this.cipher=i.cipher,this.blockSize=i.blockSize||16,this._ints=this.blockSize/4,this._inBlock=new Array(this._ints),this._outBlock=new Array(this._ints)},a.cbc.prototype.start=function(i){if(i.iv===null){if(!this._prev)throw new Error("Invalid IV parameter.");this._iv=this._prev.slice(0)}else if("iv"in i)this._iv=e(i.iv,this.blockSize),this._prev=this._iv.slice(0);else throw new Error("Invalid IV parameter.")},a.cbc.prototype.encrypt=function(i,u,o){if(i.length()0))return!0;for(var v=0;v0))return!0;for(var v=0;v0)return!1;var o=i.length(),v=i.at(o-1);return v>this.blockSize<<2?!1:(i.truncate(v),!0)},a.cfb=function(i){i=i||{},this.name="CFB",this.cipher=i.cipher,this.blockSize=i.blockSize||16,this._ints=this.blockSize/4,this._inBlock=null,this._outBlock=new Array(this._ints),this._partialBlock=new Array(this._ints),this._partialOutput=t.util.createBuffer(),this._partialBytes=0},a.cfb.prototype.start=function(i){if(!("iv"in i))throw new Error("Invalid IV parameter.");this._iv=e(i.iv,this.blockSize),this._inBlock=this._iv.slice(0),this._partialBytes=0},a.cfb.prototype.encrypt=function(i,u,o){var v=i.length();if(v===0)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),this._partialBytes===0&&v>=this.blockSize){for(var c=0;c0&&(h=this.blockSize-h),this._partialOutput.clear();for(var c=0;c0)i.read-=this.blockSize;else for(var c=0;c0&&this._partialOutput.getBytes(this._partialBytes),h>0&&!o)return u.putBytes(this._partialOutput.getBytes(h-this._partialBytes)),this._partialBytes=h,!0;u.putBytes(this._partialOutput.getBytes(v-this._partialBytes)),this._partialBytes=0},a.cfb.prototype.decrypt=function(i,u,o){var v=i.length();if(v===0)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),this._partialBytes===0&&v>=this.blockSize){for(var c=0;c0&&(h=this.blockSize-h),this._partialOutput.clear();for(var c=0;c0)i.read-=this.blockSize;else for(var c=0;c0&&this._partialOutput.getBytes(this._partialBytes),h>0&&!o)return u.putBytes(this._partialOutput.getBytes(h-this._partialBytes)),this._partialBytes=h,!0;u.putBytes(this._partialOutput.getBytes(v-this._partialBytes)),this._partialBytes=0},a.ofb=function(i){i=i||{},this.name="OFB",this.cipher=i.cipher,this.blockSize=i.blockSize||16,this._ints=this.blockSize/4,this._inBlock=null,this._outBlock=new Array(this._ints),this._partialOutput=t.util.createBuffer(),this._partialBytes=0},a.ofb.prototype.start=function(i){if(!("iv"in i))throw new Error("Invalid IV parameter.");this._iv=e(i.iv,this.blockSize),this._inBlock=this._iv.slice(0),this._partialBytes=0},a.ofb.prototype.encrypt=function(i,u,o){var v=i.length();if(i.length()===0)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),this._partialBytes===0&&v>=this.blockSize){for(var c=0;c0&&(h=this.blockSize-h),this._partialOutput.clear();for(var c=0;c0)i.read-=this.blockSize;else for(var c=0;c0&&this._partialOutput.getBytes(this._partialBytes),h>0&&!o)return u.putBytes(this._partialOutput.getBytes(h-this._partialBytes)),this._partialBytes=h,!0;u.putBytes(this._partialOutput.getBytes(v-this._partialBytes)),this._partialBytes=0},a.ofb.prototype.decrypt=a.ofb.prototype.encrypt,a.ctr=function(i){i=i||{},this.name="CTR",this.cipher=i.cipher,this.blockSize=i.blockSize||16,this._ints=this.blockSize/4,this._inBlock=null,this._outBlock=new Array(this._ints),this._partialOutput=t.util.createBuffer(),this._partialBytes=0},a.ctr.prototype.start=function(i){if(!("iv"in i))throw new Error("Invalid IV parameter.");this._iv=e(i.iv,this.blockSize),this._inBlock=this._iv.slice(0),this._partialBytes=0},a.ctr.prototype.encrypt=function(i,u,o){var v=i.length();if(v===0)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),this._partialBytes===0&&v>=this.blockSize)for(var c=0;c0&&(h=this.blockSize-h),this._partialOutput.clear();for(var c=0;c0&&(i.read-=this.blockSize),this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),h>0&&!o)return u.putBytes(this._partialOutput.getBytes(h-this._partialBytes)),this._partialBytes=h,!0;u.putBytes(this._partialOutput.getBytes(v-this._partialBytes)),this._partialBytes=0}r(this._inBlock)},a.ctr.prototype.decrypt=a.ctr.prototype.encrypt,a.gcm=function(i){i=i||{},this.name="GCM",this.cipher=i.cipher,this.blockSize=i.blockSize||16,this._ints=this.blockSize/4,this._inBlock=new Array(this._ints),this._outBlock=new Array(this._ints),this._partialOutput=t.util.createBuffer(),this._partialBytes=0,this._R=3774873600},a.gcm.prototype.start=function(i){if(!("iv"in i))throw new Error("Invalid IV parameter.");var u=t.util.createBuffer(i.iv);this._cipherLength=0;var o;if("additionalData"in i?o=t.util.createBuffer(i.additionalData):o=t.util.createBuffer(),"tagLength"in i?this._tagLength=i.tagLength:this._tagLength=128,this._tag=null,i.decrypt&&(this._tag=t.util.createBuffer(i.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 v=u.length();if(v===12)this._j0=[u.getInt32(),u.getInt32(),u.getInt32(),1];else{for(this._j0=[0,0,0,0];u.length()>0;)this._j0=this.ghash(this._hashSubkey,this._j0,[u.getInt32(),u.getInt32(),u.getInt32(),u.getInt32()]);this._j0=this.ghash(this._hashSubkey,this._j0,[0,0].concat(n(v*8)))}this._inBlock=this._j0.slice(0),r(this._inBlock),this._partialBytes=0,o=t.util.createBuffer(o),this._aDataLength=n(o.length()*8);var c=o.length()%this.blockSize;for(c&&o.fillWithByte(0,this.blockSize-c),this._s=[0,0,0,0];o.length()>0;)this._s=this.ghash(this._hashSubkey,this._s,[o.getInt32(),o.getInt32(),o.getInt32(),o.getInt32()])},a.gcm.prototype.encrypt=function(i,u,o){var v=i.length();if(v===0)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),this._partialBytes===0&&v>=this.blockSize){for(var c=0;c0&&(h=this.blockSize-h),this._partialOutput.clear();for(var c=0;c0&&this._partialOutput.getBytes(this._partialBytes),h>0&&!o)return i.read-=this.blockSize,u.putBytes(this._partialOutput.getBytes(h-this._partialBytes)),this._partialBytes=h,!0;u.putBytes(this._partialOutput.getBytes(v-this._partialBytes)),this._partialBytes=0}this._s=this.ghash(this._hashSubkey,this._s,this._outBlock),r(this._inBlock)},a.gcm.prototype.decrypt=function(i,u,o){var v=i.length();if(v0))return!0;this.cipher.encrypt(this._inBlock,this._outBlock),r(this._inBlock),this._hashBlock[0]=i.getInt32(),this._hashBlock[1]=i.getInt32(),this._hashBlock[2]=i.getInt32(),this._hashBlock[3]=i.getInt32(),this._s=this.ghash(this._hashSubkey,this._s,this._hashBlock);for(var c=0;c0;--v)u[v]=i[v]>>>1|(i[v-1]&1)<<31;u[0]=i[0]>>>1,o&&(u[0]^=this._R)},a.gcm.prototype.tableMultiply=function(i){for(var u=[0,0,0,0],o=0;o<32;++o){var v=o/8|0,c=i[v]>>>(7-o%8)*4&15,h=this._m[o][c];u[0]^=h[0],u[1]^=h[1],u[2]^=h[2],u[3]^=h[3]}return u},a.gcm.prototype.ghash=function(i,u,o){return u[0]^=o[0],u[1]^=o[1],u[2]^=o[2],u[3]^=o[3],this.tableMultiply(u)},a.gcm.prototype.generateHashTable=function(i,u){for(var o=8/u,v=4*o,c=16*o,h=new Array(c),E=0;E>>1,c=new Array(o);c[v]=i.slice(0);for(var h=v>>>1;h>0;)this.pow(c[2*h],c[h]=[]),h>>=1;for(h=2;h4){var o=i;i=t.util.createBuffer();for(var v=0;v>>2;for(var S=0;S>8^k&255^99,n[m]=k,i[k]=m,B=s[k],l=s[m],C=s[l],b=s[C],N=B<<24^k<<16^k<<8^(k^B),f=(l^C^b)<<24^(m^b)<<16^(m^C^b)<<8^(m^l^b);for(var d=0;d<4;++d)o[d][m]=N,v[d][k]=f,N=N<<24|N>>>8,f=f<<24|f>>>8;m===0?m=S=1:(m=l^s[s[s[l^b]]],S^=s[s[S]])}}function h(s,p){for(var m=s.slice(0),S,l=1,C=m.length,b=C+6+1,k=r*b,B=C;B>>16&255]<<24^n[S>>>8&255]<<16^n[S&255]<<8^n[S>>>24]^u[l]<<24,l++):C>6&&B%C===4&&(S=n[S>>>24]<<24^n[S>>>16&255]<<16^n[S>>>8&255]<<8^n[S&255]),m[B]=m[B-C]^S;if(p){var N,f=v[0],d=v[1],M=v[2],V=v[3],q=m.slice(0);k=m.length;for(var B=0,P=k-r;B>>24]]^d[n[N>>>16&255]]^M[n[N>>>8&255]]^V[n[N&255]];m=q}return m}function E(s,p,m,S){var l=s.length/4-1,C,b,k,B,N;S?(C=v[0],b=v[1],k=v[2],B=v[3],N=i):(C=o[0],b=o[1],k=o[2],B=o[3],N=n);var f,d,M,V,q,P,L;f=p[0]^s[0],d=p[S?3:1]^s[1],M=p[2]^s[2],V=p[S?1:3]^s[3];for(var j=3,z=1;z>>24]^b[d>>>16&255]^k[M>>>8&255]^B[V&255]^s[++j],P=C[d>>>24]^b[M>>>16&255]^k[V>>>8&255]^B[f&255]^s[++j],L=C[M>>>24]^b[V>>>16&255]^k[f>>>8&255]^B[d&255]^s[++j],V=C[V>>>24]^b[f>>>16&255]^k[d>>>8&255]^B[M&255]^s[++j],f=q,d=P,M=L;m[0]=N[f>>>24]<<24^N[d>>>16&255]<<16^N[M>>>8&255]<<8^N[V&255]^s[++j],m[S?3:1]=N[d>>>24]<<24^N[M>>>16&255]<<16^N[V>>>8&255]<<8^N[f&255]^s[++j],m[2]=N[M>>>24]<<24^N[V>>>16&255]<<16^N[f>>>8&255]<<8^N[d&255]^s[++j],m[S?1:3]=N[V>>>24]<<24^N[f>>>16&255]<<16^N[d>>>8&255]<<8^N[M&255]^s[++j]}function g(s){s=s||{};var p=(s.mode||"CBC").toUpperCase(),m="AES-"+p,S;s.decrypt?S=t.cipher.createDecipher(m,s.key):S=t.cipher.createCipher(m,s.key);var l=S.start;return S.start=function(C,b){var k=null;b instanceof t.util.ByteBuffer&&(k=b,b={}),b=b||{},b.output=k,b.iv=C,l.call(S,b)},S}return Ma}var Ua={exports:{}},Ta={exports:{}},Va={exports:{}},Zf;function zt(){if(Zf)return Va.exports;Zf=1;var t=me();t.pki=t.pki||{};var a=Va.exports=t.pki.oids=t.oids=t.oids||{};function e(n,i){a[n]=i,a[i]=n}function r(n,i){a[n]=i}return e("1.2.840.113549.1.1.1","rsaEncryption"),e("1.2.840.113549.1.1.4","md5WithRSAEncryption"),e("1.2.840.113549.1.1.5","sha1WithRSAEncryption"),e("1.2.840.113549.1.1.7","RSAES-OAEP"),e("1.2.840.113549.1.1.8","mgf1"),e("1.2.840.113549.1.1.9","pSpecified"),e("1.2.840.113549.1.1.10","RSASSA-PSS"),e("1.2.840.113549.1.1.11","sha256WithRSAEncryption"),e("1.2.840.113549.1.1.12","sha384WithRSAEncryption"),e("1.2.840.113549.1.1.13","sha512WithRSAEncryption"),e("1.3.101.112","EdDSA25519"),e("1.2.840.10040.4.3","dsa-with-sha1"),e("1.3.14.3.2.7","desCBC"),e("1.3.14.3.2.26","sha1"),e("1.3.14.3.2.29","sha1WithRSASignature"),e("2.16.840.1.101.3.4.2.1","sha256"),e("2.16.840.1.101.3.4.2.2","sha384"),e("2.16.840.1.101.3.4.2.3","sha512"),e("2.16.840.1.101.3.4.2.4","sha224"),e("2.16.840.1.101.3.4.2.5","sha512-224"),e("2.16.840.1.101.3.4.2.6","sha512-256"),e("1.2.840.113549.2.2","md2"),e("1.2.840.113549.2.5","md5"),e("1.2.840.113549.1.7.1","data"),e("1.2.840.113549.1.7.2","signedData"),e("1.2.840.113549.1.7.3","envelopedData"),e("1.2.840.113549.1.7.4","signedAndEnvelopedData"),e("1.2.840.113549.1.7.5","digestedData"),e("1.2.840.113549.1.7.6","encryptedData"),e("1.2.840.113549.1.9.1","emailAddress"),e("1.2.840.113549.1.9.2","unstructuredName"),e("1.2.840.113549.1.9.3","contentType"),e("1.2.840.113549.1.9.4","messageDigest"),e("1.2.840.113549.1.9.5","signingTime"),e("1.2.840.113549.1.9.6","counterSignature"),e("1.2.840.113549.1.9.7","challengePassword"),e("1.2.840.113549.1.9.8","unstructuredAddress"),e("1.2.840.113549.1.9.14","extensionRequest"),e("1.2.840.113549.1.9.20","friendlyName"),e("1.2.840.113549.1.9.21","localKeyId"),e("1.2.840.113549.1.9.22.1","x509Certificate"),e("1.2.840.113549.1.12.10.1.1","keyBag"),e("1.2.840.113549.1.12.10.1.2","pkcs8ShroudedKeyBag"),e("1.2.840.113549.1.12.10.1.3","certBag"),e("1.2.840.113549.1.12.10.1.4","crlBag"),e("1.2.840.113549.1.12.10.1.5","secretBag"),e("1.2.840.113549.1.12.10.1.6","safeContentsBag"),e("1.2.840.113549.1.5.13","pkcs5PBES2"),e("1.2.840.113549.1.5.12","pkcs5PBKDF2"),e("1.2.840.113549.1.12.1.1","pbeWithSHAAnd128BitRC4"),e("1.2.840.113549.1.12.1.2","pbeWithSHAAnd40BitRC4"),e("1.2.840.113549.1.12.1.3","pbeWithSHAAnd3-KeyTripleDES-CBC"),e("1.2.840.113549.1.12.1.4","pbeWithSHAAnd2-KeyTripleDES-CBC"),e("1.2.840.113549.1.12.1.5","pbeWithSHAAnd128BitRC2-CBC"),e("1.2.840.113549.1.12.1.6","pbewithSHAAnd40BitRC2-CBC"),e("1.2.840.113549.2.7","hmacWithSHA1"),e("1.2.840.113549.2.8","hmacWithSHA224"),e("1.2.840.113549.2.9","hmacWithSHA256"),e("1.2.840.113549.2.10","hmacWithSHA384"),e("1.2.840.113549.2.11","hmacWithSHA512"),e("1.2.840.113549.3.7","des-EDE3-CBC"),e("2.16.840.1.101.3.4.1.2","aes128-CBC"),e("2.16.840.1.101.3.4.1.22","aes192-CBC"),e("2.16.840.1.101.3.4.1.42","aes256-CBC"),e("2.5.4.3","commonName"),e("2.5.4.4","surname"),e("2.5.4.5","serialNumber"),e("2.5.4.6","countryName"),e("2.5.4.7","localityName"),e("2.5.4.8","stateOrProvinceName"),e("2.5.4.9","streetAddress"),e("2.5.4.10","organizationName"),e("2.5.4.11","organizationalUnitName"),e("2.5.4.12","title"),e("2.5.4.13","description"),e("2.5.4.15","businessCategory"),e("2.5.4.17","postalCode"),e("2.5.4.42","givenName"),e("1.3.6.1.4.1.311.60.2.1.2","jurisdictionOfIncorporationStateOrProvinceName"),e("1.3.6.1.4.1.311.60.2.1.3","jurisdictionOfIncorporationCountryName"),e("2.16.840.1.113730.1.1","nsCertType"),e("2.16.840.1.113730.1.13","nsComment"),r("2.5.29.1","authorityKeyIdentifier"),r("2.5.29.2","keyAttributes"),r("2.5.29.3","certificatePolicies"),r("2.5.29.4","keyUsageRestriction"),r("2.5.29.5","policyMapping"),r("2.5.29.6","subtreesConstraint"),r("2.5.29.7","subjectAltName"),r("2.5.29.8","issuerAltName"),r("2.5.29.9","subjectDirectoryAttributes"),r("2.5.29.10","basicConstraints"),r("2.5.29.11","nameConstraints"),r("2.5.29.12","policyConstraints"),r("2.5.29.13","basicConstraints"),e("2.5.29.14","subjectKeyIdentifier"),e("2.5.29.15","keyUsage"),r("2.5.29.16","privateKeyUsagePeriod"),e("2.5.29.17","subjectAltName"),e("2.5.29.18","issuerAltName"),e("2.5.29.19","basicConstraints"),r("2.5.29.20","cRLNumber"),r("2.5.29.21","cRLReason"),r("2.5.29.22","expirationDate"),r("2.5.29.23","instructionCode"),r("2.5.29.24","invalidityDate"),r("2.5.29.25","cRLDistributionPoints"),r("2.5.29.26","issuingDistributionPoint"),r("2.5.29.27","deltaCRLIndicator"),r("2.5.29.28","issuingDistributionPoint"),r("2.5.29.29","certificateIssuer"),r("2.5.29.30","nameConstraints"),e("2.5.29.31","cRLDistributionPoints"),e("2.5.29.32","certificatePolicies"),r("2.5.29.33","policyMappings"),r("2.5.29.34","policyConstraints"),e("2.5.29.35","authorityKeyIdentifier"),r("2.5.29.36","policyConstraints"),e("2.5.29.37","extKeyUsage"),r("2.5.29.46","freshestCRL"),r("2.5.29.54","inhibitAnyPolicy"),e("1.3.6.1.4.1.11129.2.4.2","timestampList"),e("1.3.6.1.5.5.7.1.1","authorityInfoAccess"),e("1.3.6.1.5.5.7.3.1","serverAuth"),e("1.3.6.1.5.5.7.3.2","clientAuth"),e("1.3.6.1.5.5.7.3.3","codeSigning"),e("1.3.6.1.5.5.7.3.4","emailProtection"),e("1.3.6.1.5.5.7.3.8","timeStamping"),Va.exports}var ev;function Nt(){if(ev)return Ta.exports;ev=1;var t=me();Ne(),zt();var a=Ta.exports=t.asn1=t.asn1||{};a.Class={UNIVERSAL:0,APPLICATION:64,CONTEXT_SPECIFIC:128,PRIVATE:192},a.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},a.create=function(u,o,v,c,h){if(t.util.isArray(c)){for(var E=[],g=0;go){var c=new Error("Too few bytes to parse DER.");throw c.available=u.length(),c.remaining=o,c.requested=v,c}}var r=function(u,o){var v=u.getByte();if(o--,v!==128){var c,h=v&128;if(!h)c=v;else{var E=v&127;e(u,o,E),c=u.getInt(E<<3)}if(c<0)throw new Error("Negative length: "+c);return c}};a.fromDer=function(u,o){o===void 0&&(o={strict:!0,parseAllBytes:!0,decodeBitStrings:!0}),typeof o=="boolean"&&(o={strict:o,parseAllBytes:!0,decodeBitStrings:!0}),"strict"in o||(o.strict=!0),"parseAllBytes"in o||(o.parseAllBytes=!0),"decodeBitStrings"in o||(o.decodeBitStrings=!0),typeof u=="string"&&(u=t.util.createBuffer(u));var v=u.length(),c=n(u,u.length(),0,o);if(o.parseAllBytes&&u.length()!==0){var h=new Error("Unparsed DER bytes remain after ASN.1 parsing.");throw h.byteCount=v,h.remaining=u.length(),h}return c};function n(u,o,v,c){var h;e(u,o,2);var E=u.getByte();o--;var g=E&192,s=E&31;h=u.length();var p=r(u,o);if(o-=h-u.length(),p!==void 0&&p>o){if(c.strict){var m=new Error("Too few bytes to read ASN.1 value.");throw m.available=u.length(),m.remaining=o,m.requested=p,m}p=o}var S,l,C=(E&32)===32;if(C)if(S=[],p===void 0)for(;;){if(e(u,o,2),u.bytes(2)==="\0\0"){u.getBytes(2),o-=2;break}h=u.length(),S.push(n(u,o,v+1,c)),o-=h-u.length()}else for(;p>0;)h=u.length(),S.push(n(u,p,v+1,c)),o-=h-u.length(),p-=h-u.length();if(S===void 0&&g===a.Class.UNIVERSAL&&s===a.Type.BITSTRING&&(l=u.bytes(p)),S===void 0&&c.decodeBitStrings&&g===a.Class.UNIVERSAL&&s===a.Type.BITSTRING&&p>1){var b=u.read,k=o,B=0;if(s===a.Type.BITSTRING&&(e(u,o,1),B=u.getByte(),o--),B===0)try{h=u.length();var N={strict:!0,decodeBitStrings:!0},f=n(u,o,v+1,N),d=h-u.length();o-=d,s==a.Type.BITSTRING&&d++;var M=f.tagClass;d===p&&(M===a.Class.UNIVERSAL||M===a.Class.CONTEXT_SPECIFIC)&&(S=[f])}catch{}S===void 0&&(u.read=b,o=k)}if(S===void 0){if(p===void 0){if(c.strict)throw new Error("Non-constructed ASN.1 object of indefinite length.");p=o}if(s===a.Type.BMPSTRING)for(S="";p>0;p-=2)e(u,o,2),S+=String.fromCharCode(u.getInt16()),o-=2;else S=u.getBytes(p),o-=p}var V=l===void 0?null:{bitStringContents:l};return a.create(g,s,C,S,V)}a.toDer=function(u){var o=t.util.createBuffer(),v=u.tagClass|u.type,c=t.util.createBuffer(),h=!1;if("bitStringContents"in u&&(h=!0,u.original&&(h=a.equals(u,u.original))),h)c.putBytes(u.bitStringContents);else if(u.composed){u.constructed?v|=32:c.putByte(0);for(var E=0;E1&&(u.value.charCodeAt(0)===0&&(u.value.charCodeAt(1)&128)===0||u.value.charCodeAt(0)===255&&(u.value.charCodeAt(1)&128)===128)?c.putBytes(u.value.substr(1)):c.putBytes(u.value);if(o.putByte(v),c.length()<=127)o.putByte(c.length()&127);else{var g=c.length(),s="";do s+=String.fromCharCode(g&255),g=g>>>8;while(g>0);o.putByte(s.length|128);for(var E=s.length-1;E>=0;--E)o.putByte(s.charCodeAt(E))}return o.putBuffer(c),o},a.oidToDer=function(u){var o=u.split("."),v=t.util.createBuffer();v.putByte(40*parseInt(o[0],10)+parseInt(o[1],10));for(var c,h,E,g,s=2;s>>7,c||(g|=128),h.push(g),c=!1;while(E>0);for(var p=h.length-1;p>=0;--p)v.putByte(h[p])}return v},a.derToOid=function(u){var o;typeof u=="string"&&(u=t.util.createBuffer(u));var v=u.getByte();o=Math.floor(v/40)+"."+v%40;for(var c=0;u.length()>0;)v=u.getByte(),c=c<<7,v&128?c+=v&127:(o+="."+(c+v),c=0);return o},a.utcTimeToDate=function(u){var o=new Date,v=parseInt(u.substr(0,2),10);v=v>=50?1900+v:2e3+v;var c=parseInt(u.substr(2,2),10)-1,h=parseInt(u.substr(4,2),10),E=parseInt(u.substr(6,2),10),g=parseInt(u.substr(8,2),10),s=0;if(u.length>11){var p=u.charAt(10),m=10;p!=="+"&&p!=="-"&&(s=parseInt(u.substr(10,2),10),m+=2)}if(o.setUTCFullYear(v,c,h),o.setUTCHours(E,g,s,0),m&&(p=u.charAt(m),p==="+"||p==="-")){var S=parseInt(u.substr(m+1,2),10),l=parseInt(u.substr(m+4,2),10),C=S*60+l;C*=6e4,p==="+"?o.setTime(+o-C):o.setTime(+o+C)}return o},a.generalizedTimeToDate=function(u){var o=new Date,v=parseInt(u.substr(0,4),10),c=parseInt(u.substr(4,2),10)-1,h=parseInt(u.substr(6,2),10),E=parseInt(u.substr(8,2),10),g=parseInt(u.substr(10,2),10),s=parseInt(u.substr(12,2),10),p=0,m=0,S=!1;u.charAt(u.length-1)==="Z"&&(S=!0);var l=u.length-5,C=u.charAt(l);if(C==="+"||C==="-"){var b=parseInt(u.substr(l+1,2),10),k=parseInt(u.substr(l+4,2),10);m=b*60+k,m*=6e4,C==="+"&&(m*=-1),S=!0}return u.charAt(14)==="."&&(p=parseFloat(u.substr(14),10)*1e3),S?(o.setUTCFullYear(v,c,h),o.setUTCHours(E,g,s,p),o.setTime(+o+m)):(o.setFullYear(v,c,h),o.setHours(E,g,s,p)),o},a.dateToUtcTime=function(u){if(typeof u=="string")return u;var o="",v=[];v.push((""+u.getUTCFullYear()).substr(2)),v.push(""+(u.getUTCMonth()+1)),v.push(""+u.getUTCDate()),v.push(""+u.getUTCHours()),v.push(""+u.getUTCMinutes()),v.push(""+u.getUTCSeconds());for(var c=0;c=-128&&u<128)return o.putSignedInt(u,8);if(u>=-32768&&u<32768)return o.putSignedInt(u,16);if(u>=-8388608&&u<8388608)return o.putSignedInt(u,24);if(u>=-2147483648&&u<2147483648)return o.putSignedInt(u,32);var v=new Error("Integer too large; max is 32-bits.");throw v.integer=u,v},a.derToInteger=function(u){typeof u=="string"&&(u=t.util.createBuffer(u));var o=u.length()*8;if(o>32)throw new Error("Integer too large; max is 32-bits.");return u.getSignedInt(o)},a.validate=function(u,o,v,c){var h=!1;if((u.tagClass===o.tagClass||typeof o.tagClass>"u")&&(u.type===o.type||typeof o.type>"u"))if(u.constructed===o.constructed||typeof o.constructed>"u"){if(h=!0,o.value&&t.util.isArray(o.value))for(var E=0,g=0;h&&g0&&(c+=` `);for(var h="",E=0;E1?c+="0x"+t.util.bytesToHex(u.value.slice(1)):c+="(none)",u.value.length>0){var m=u.value.charCodeAt(0);m==1?c+=" (1 unused bit shown)":m>1&&(c+=" ("+m+" unused bits shown)")}}else if(u.type===a.Type.OCTETSTRING)i.test(u.value)||(c+="("+u.value+") "),c+="0x"+t.util.bytesToHex(u.value);else if(u.type===a.Type.UTF8)try{c+=t.util.decodeUtf8(u.value)}catch(S){if(S.message==="URI malformed")c+="0x"+t.util.bytesToHex(u.value)+" (malformed UTF8)";else throw S}else u.type===a.Type.PRINTABLESTRING||u.type===a.Type.IA5String?c+=u.value:i.test(u.value)?c+="0x"+t.util.bytesToHex(u.value):u.value.length===0?c+="[null]":c+=u.value}return c},Ta.exports}var Ba={exports:{}},Ra,tv;function It(){if(tv)return Ra;tv=1;var t=me();return Ra=t.md=t.md||{},t.md.algorithms=t.md.algorithms||{},Ra}var rv;function Fr(){if(rv)return Ba.exports;rv=1;var t=me();It(),Ne();var a=Ba.exports=t.hmac=t.hmac||{};return a.create=function(){var e=null,r=null,n=null,i=null,u={};return u.start=function(o,v){if(o!==null)if(typeof o=="string")if(o=o.toLowerCase(),o in t.md.algorithms)r=t.md.algorithms[o].create();else throw new Error('Unknown hash algorithm "'+o+'"');else r=o;if(v===null)v=e;else{if(typeof v=="string")v=t.util.createBuffer(v);else if(t.util.isArray(v)){var c=v;v=t.util.createBuffer();for(var h=0;hr.blockLength&&(r.start(),r.update(v.bytes()),v=r.digest()),n=t.util.createBuffer(),i=t.util.createBuffer(),E=v.length();for(var h=0;h>>0,m>>>0];for(var S=g.fullMessageLength.length-1;S>=0;--S)g.fullMessageLength[S]+=m[1],m[1]=m[0]+(g.fullMessageLength[S]/4294967296>>>0),g.fullMessageLength[S]=g.fullMessageLength[S]>>>0,m[0]=m[1]/4294967296>>>0;return h.putBytes(s),v(c,E,h),(h.read>2048||h.length()===0)&&h.compact(),g},g.digest=function(){var s=t.util.createBuffer();s.putBytes(h.bytes());var p=g.fullMessageLength[g.fullMessageLength.length-1]+g.messageLengthSize,m=p&g.blockLength-1;s.putBytes(e.substr(0,g.blockLength-m));for(var S,l=0,C=g.fullMessageLength.length-1;C>=0;--C)S=g.fullMessageLength[C]*8+l,l=S/4294967296>>>0,s.putInt32Le(S>>>0);var b={h0:c.h0,h1:c.h1,h2:c.h2,h3:c.h3};v(b,E,s);var k=t.util.createBuffer();return k.putInt32Le(b.h0),k.putInt32Le(b.h1),k.putInt32Le(b.h2),k.putInt32Le(b.h3),k},g};var e=null,r=null,n=null,i=null,u=!1;function o(){e="€",e+=t.util.fillString("\0",64),r=[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],n=[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],i=new Array(64);for(var c=0;c<64;++c)i[c]=Math.floor(Math.abs(Math.sin(c+1))*4294967296);u=!0}function v(c,h,E){for(var g,s,p,m,S,l,C,b,k=E.length();k>=64;){for(s=c.h0,p=c.h1,m=c.h2,S=c.h3,b=0;b<16;++b)h[b]=E.getInt32Le(),l=S^p&(m^S),g=s+l+i[b]+h[b],C=n[b],s=S,S=m,m=p,p+=g<>>32-C;for(;b<32;++b)l=m^S&(p^m),g=s+l+i[b]+h[r[b]],C=n[b],s=S,S=m,m=p,p+=g<>>32-C;for(;b<48;++b)l=p^m^S,g=s+l+i[b]+h[r[b]],C=n[b],s=S,S=m,m=p,p+=g<>>32-C;for(;b<64;++b)l=m^(p|~S),g=s+l+i[b]+h[r[b]],C=n[b],s=S,S=m,m=p,p+=g<>>32-C;c.h0=c.h0+s|0,c.h1=c.h1+p|0,c.h2=c.h2+m|0,c.h3=c.h3+S|0,k-=64}}return wa.exports}var Da={exports:{}},nv;function rr(){if(nv)return Da.exports;nv=1;var t=me();Ne();var a=Da.exports=t.pem=t.pem||{};a.encode=function(n,i){i=i||{};var u="-----BEGIN "+n.type+`-----\r `,o;if(n.procType&&(o={name:"Proc-Type",values:[String(n.procType.version),n.procType.type]},u+=e(o)),n.contentDomain&&(o={name:"Content-Domain",values:[n.contentDomain]},u+=e(o)),n.dekInfo&&(o={name:"DEK-Info",values:[n.dekInfo.algorithm]},n.dekInfo.parameters&&o.values.push(n.dekInfo.parameters),u+=e(o)),n.headers)for(var v=0;v65&&h!==-1){var E=i[h];E===","?(++h,i=i.substr(0,h)+`\r `+i.substr(h)):i=i.substr(0,h)+`\r `+E+i.substr(h+1),c=v-h-1,h=-1,++v}else(i[v]===" "||i[v]===" "||i[v]===",")&&(h=v);return i}function r(n){return n.replace(/^\s+/,"")}return Da.exports}var Oa={exports:{}},La,iv;function ua(){if(iv)return La;iv=1;var t=me();wf(),OI(),Ne(),La=t.des=t.des||{},t.des.startEncrypting=function(s,p,m,S){var l=g({key:s,output:m,decrypt:!1,mode:S||(p===null?"ECB":"CBC")});return l.start(p),l},t.des.createEncryptionCipher=function(s,p){return g({key:s,output:null,decrypt:!1,mode:p})},t.des.startDecrypting=function(s,p,m,S){var l=g({key:s,output:m,decrypt:!0,mode:S||(p===null?"ECB":"CBC")});return l.start(p),l},t.des.createDecryptionCipher=function(s,p){return g({key:s,output:null,decrypt:!0,mode:p})},t.des.Algorithm=function(s,p){var m=this;m.name=s,m.mode=new p({blockSize:8,cipher:{encrypt:function(S,l){return E(m._keys,S,l,!1)},decrypt:function(S,l){return E(m._keys,S,l,!0)}}}),m._init=!1},t.des.Algorithm.prototype.initialize=function(s){if(!this._init){var p=t.util.createBuffer(s.key);if(this.name.indexOf("3DES")===0&&p.length()!==24)throw new Error("Invalid Triple-DES key size: "+p.length()*8);this._keys=h(p),this._init=!0}},a("DES-ECB",t.cipher.modes.ecb),a("DES-CBC",t.cipher.modes.cbc),a("DES-CFB",t.cipher.modes.cfb),a("DES-OFB",t.cipher.modes.ofb),a("DES-CTR",t.cipher.modes.ctr),a("3DES-ECB",t.cipher.modes.ecb),a("3DES-CBC",t.cipher.modes.cbc),a("3DES-CFB",t.cipher.modes.cfb),a("3DES-OFB",t.cipher.modes.ofb),a("3DES-CTR",t.cipher.modes.ctr);function a(s,p){var m=function(){return new t.des.Algorithm(s,p)};t.cipher.registerAlgorithm(s,m)}var e=[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],r=[-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],n=[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],i=[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],u=[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],o=[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],v=[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],c=[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 h(s){for(var p=[0,4,536870912,536870916,65536,65540,536936448,536936452,512,516,536871424,536871428,66048,66052,536936960,536936964],m=[0,1,1048576,1048577,67108864,67108865,68157440,68157441,256,257,1048832,1048833,67109120,67109121,68157696,68157697],S=[0,8,2048,2056,16777216,16777224,16779264,16779272,0,8,2048,2056,16777216,16777224,16779264,16779272],l=[0,2097152,134217728,136314880,8192,2105344,134225920,136323072,131072,2228224,134348800,136445952,139264,2236416,134356992,136454144],C=[0,262144,16,262160,0,262144,16,262160,4096,266240,4112,266256,4096,266240,4112,266256],b=[0,1024,32,1056,0,1024,32,1056,33554432,33555456,33554464,33555488,33554432,33555456,33554464,33555488],k=[0,268435456,524288,268959744,2,268435458,524290,268959746,0,268435456,524288,268959744,2,268435458,524290,268959746],B=[0,65536,2048,67584,536870912,536936448,536872960,536938496,131072,196608,133120,198656,537001984,537067520,537004032,537069568],N=[0,262144,0,262144,2,262146,2,262146,33554432,33816576,33554432,33816576,33554434,33816578,33554434,33816578],f=[0,268435456,8,268435464,0,268435456,8,268435464,1024,268436480,1032,268436488,1024,268436480,1032,268436488],d=[0,32,0,32,1048576,1048608,1048576,1048608,8192,8224,8192,8224,1056768,1056800,1056768,1056800],M=[0,16777216,512,16777728,2097152,18874368,2097664,18874880,67108864,83886080,67109376,83886592,69206016,85983232,69206528,85983744],V=[0,4096,134217728,134221824,524288,528384,134742016,134746112,16,4112,134217744,134221840,524304,528400,134742032,134746128],q=[0,4,256,260,0,4,256,260,1,5,257,261,1,5,257,261],P=s.length()>8?3:1,L=[],j=[0,0,1,1,1,1,1,1,0,1,1,1,1,1,1,0],z=0,K,H=0;H>>4^te)&252645135,te^=K,Z^=K<<4,K=(te>>>-16^Z)&65535,Z^=K,te^=K<<-16,K=(Z>>>2^te)&858993459,te^=K,Z^=K<<2,K=(te>>>-16^Z)&65535,Z^=K,te^=K<<-16,K=(Z>>>1^te)&1431655765,te^=K,Z^=K<<1,K=(te>>>8^Z)&16711935,Z^=K,te^=K<<8,K=(Z>>>1^te)&1431655765,te^=K,Z^=K<<1,K=Z<<8|te>>>20&240,Z=te<<24|te<<8&16711680|te>>>8&65280|te>>>24&240,te=K;for(var ue=0;ue>>26,te=te<<2|te>>>26):(Z=Z<<1|Z>>>27,te=te<<1|te>>>27),Z&=-15,te&=-15;var de=p[Z>>>28]|m[Z>>>24&15]|S[Z>>>20&15]|l[Z>>>16&15]|C[Z>>>12&15]|b[Z>>>8&15]|k[Z>>>4&15],pe=B[te>>>28]|N[te>>>24&15]|f[te>>>20&15]|d[te>>>16&15]|M[te>>>12&15]|V[te>>>8&15]|q[te>>>4&15];K=(pe>>>16^de)&65535,L[z++]=de^K,L[z++]=pe^K<<16}}return L}function E(s,p,m,S){var l=s.length===32?3:9,C;l===3?C=S?[30,-2,-2]:[0,32,2]:C=S?[94,62,-2,32,64,2,30,-2,-2]:[0,32,2,62,30,-2,64,96,2];var b,k=p[0],B=p[1];b=(k>>>4^B)&252645135,B^=b,k^=b<<4,b=(k>>>16^B)&65535,B^=b,k^=b<<16,b=(B>>>2^k)&858993459,k^=b,B^=b<<2,b=(B>>>8^k)&16711935,k^=b,B^=b<<8,b=(k>>>1^B)&1431655765,B^=b,k^=b<<1,k=k<<1|k>>>31,B=B<<1|B>>>31;for(var N=0;N>>4|B<<28)^s[M+1];b=k,k=B,B=b^(r[V>>>24&63]|i[V>>>16&63]|o[V>>>8&63]|c[V&63]|e[q>>>24&63]|n[q>>>16&63]|u[q>>>8&63]|v[q&63])}b=k,k=B,B=b}k=k>>>1|k<<31,B=B>>>1|B<<31,b=(k>>>1^B)&1431655765,B^=b,k^=b<<1,b=(B>>>8^k)&16711935,k^=b,B^=b<<8,b=(B>>>2^k)&858993459,k^=b,B^=b<<2,b=(k>>>16^B)&65535,B^=b,k^=b<<16,b=(k>>>4^B)&252645135,B^=b,k^=b<<4,m[0]=k,m[1]=B}function g(s){s=s||{};var p=(s.mode||"CBC").toUpperCase(),m="DES-"+p,S;s.decrypt?S=t.cipher.createDecipher(m,s.key):S=t.cipher.createCipher(m,s.key);var l=S.start;return S.start=function(C,b){var k=null;b instanceof t.util.ByteBuffer&&(k=b,b={}),b=b||{},b.output=k,b.iv=C,l.call(S,b)},S}return La}const HV={},QV=Object.freeze(Object.defineProperty({__proto__:null,default:HV},Symbol.toStringTag,{value:"Module"})),Of=KV(QV);var qa,ov;function Lf(){if(ov)return qa;ov=1;var t=me();Fr(),It(),Ne();var a=t.pkcs5=t.pkcs5||{},e;return t.util.isNodejs&&!t.options.usePureJavaScript&&(e=Of),qa=t.pbkdf2=a.pbkdf2=function(r,n,i,u,o,v){if(typeof o=="function"&&(v=o,o=null),t.util.isNodejs&&!t.options.usePureJavaScript&&e.pbkdf2&&(o===null||typeof o!="object")&&(e.pbkdf2Sync.length>4||!o||o==="sha1"))return typeof o!="string"&&(o="sha1"),r=Buffer.from(r,"binary"),n=Buffer.from(n,"binary"),v?e.pbkdf2Sync.length===4?e.pbkdf2(r,n,i,u,function(N,f){if(N)return v(N);v(null,f.toString("binary"))}):e.pbkdf2(r,n,i,u,o,function(N,f){if(N)return v(N);v(null,f.toString("binary"))}):e.pbkdf2Sync.length===4?e.pbkdf2Sync(r,n,i,u).toString("binary"):e.pbkdf2Sync(r,n,i,u,o).toString("binary");if((typeof o>"u"||o===null)&&(o="sha1"),typeof o=="string"){if(!(o in t.md.algorithms))throw new Error("Unknown hash algorithm: "+o);o=t.md[o].create()}var c=o.digestLength;if(u>4294967295*c){var h=new Error("Derived key is too long.");if(v)return v(h);throw h}var E=Math.ceil(u/c),g=u-(E-1)*c,s=t.hmac.create();s.start(o,r);var p="",m,S,l;if(!v){for(var C=1;C<=E;++C){s.start(null,null),s.update(n),s.update(t.util.int32ToBytes(C)),m=l=s.digest().getBytes();for(var b=2;b<=i;++b)s.start(null,null),s.update(l),S=s.digest().getBytes(),m=t.util.xorBytes(m,S,c),l=S;p+=CE)return v(null,p);s.start(null,null),s.update(n),s.update(t.util.int32ToBytes(C)),m=l=s.digest().getBytes(),b=2,B()}function B(){if(b<=i)return s.start(null,null),s.update(l),S=s.digest().getBytes(),m=t.util.xorBytes(m,S,c),l=S,++b,t.util.setImmediate(B);p+=C>>0,s>>>0];for(var p=h.fullMessageLength.length-1;p>=0;--p)h.fullMessageLength[p]+=s[1],s[1]=s[0]+(h.fullMessageLength[p]/4294967296>>>0),h.fullMessageLength[p]=h.fullMessageLength[p]>>>0,s[0]=s[1]/4294967296>>>0;return v.putBytes(E),u(o,c,v),(v.read>2048||v.length()===0)&&v.compact(),h},h.digest=function(){var E=t.util.createBuffer();E.putBytes(v.bytes());var g=h.fullMessageLength[h.fullMessageLength.length-1]+h.messageLengthSize,s=g&h.blockLength-1;E.putBytes(e.substr(0,h.blockLength-s));for(var p,m,S=h.fullMessageLength[0]*8,l=0;l>>0,S+=m,E.putInt32(S>>>0),S=p>>>0;E.putInt32(S);var C={h0:o.h0,h1:o.h1,h2:o.h2,h3:o.h3,h4:o.h4,h5:o.h5,h6:o.h6,h7:o.h7};u(C,c,E);var b=t.util.createBuffer();return b.putInt32(C.h0),b.putInt32(C.h1),b.putInt32(C.h2),b.putInt32(C.h3),b.putInt32(C.h4),b.putInt32(C.h5),b.putInt32(C.h6),b.putInt32(C.h7),b},h};var e=null,r=!1,n=null;function i(){e="€",e+=t.util.fillString("\0",64),n=[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],r=!0}function u(o,v,c){for(var h,E,g,s,p,m,S,l,C,b,k,B,N,f,d,M=c.length();M>=64;){for(S=0;S<16;++S)v[S]=c.getInt32();for(;S<64;++S)h=v[S-2],h=(h>>>17|h<<15)^(h>>>19|h<<13)^h>>>10,E=v[S-15],E=(E>>>7|E<<25)^(E>>>18|E<<14)^E>>>3,v[S]=h+v[S-7]+E+v[S-16]|0;for(l=o.h0,C=o.h1,b=o.h2,k=o.h3,B=o.h4,N=o.h5,f=o.h6,d=o.h7,S=0;S<64;++S)s=(B>>>6|B<<26)^(B>>>11|B<<21)^(B>>>25|B<<7),p=f^B&(N^f),g=(l>>>2|l<<30)^(l>>>13|l<<19)^(l>>>22|l<<10),m=l&C|b&(l^C),h=d+s+p+n[S]+v[S],E=g+m,d=f,f=N,N=B,B=k+h>>>0,k=b,b=C,C=l,l=h+E>>>0;o.h0=o.h0+l|0,o.h1=o.h1+C|0,o.h2=o.h2+b|0,o.h3=o.h3+k|0,o.h4=o.h4+B|0,o.h5=o.h5+N|0,o.h6=o.h6+f|0,o.h7=o.h7+d|0,M-=64}}return Fa.exports}var ja={exports:{}},sv;function qI(){if(sv)return ja.exports;sv=1;var t=me();Ne();var a=null;t.util.isNodejs&&!t.options.usePureJavaScript&&!process.versions["node-webkit"]&&(a=Of);var e=ja.exports=t.prng=t.prng||{};return e.create=function(r){for(var n={plugin:r,key:null,seed:null,time:null,reseeds:0,generated:0,keyBytes:""},i=r.md,u=new Array(32),o=0;o<32;++o)u[o]=i.create();n.pools=u,n.pool=0,n.generate=function(g,s){if(!s)return n.generateSync(g);var p=n.plugin.cipher,m=n.plugin.increment,S=n.plugin.formatKey,l=n.plugin.formatSeed,C=t.util.createBuffer();n.key=null,b();function b(k){if(k)return s(k);if(C.length()>=g)return s(null,C.getBytes(g));if(n.generated>1048575&&(n.key=null),n.key===null)return t.util.nextTick(function(){v(b)});var B=p(n.key,n.seed);n.generated+=B.length,C.putBytes(B),n.key=S(p(n.key,m(n.seed))),n.seed=l(p(n.key,n.seed)),t.util.setImmediate(b)}},n.generateSync=function(g){var s=n.plugin.cipher,p=n.plugin.increment,m=n.plugin.formatKey,S=n.plugin.formatSeed;n.key=null;for(var l=t.util.createBuffer();l.length()1048575&&(n.key=null),n.key===null&&c();var C=s(n.key,n.seed);n.generated+=C.length,l.putBytes(C),n.key=m(s(n.key,p(n.seed))),n.seed=S(s(n.key,n.seed))}return l.getBytes(g)};function v(g){if(n.pools[0].messageLength>=32)return h(),g();var s=32-n.pools[0].messageLength<<5;n.seedFile(s,function(p,m){if(p)return g(p);n.collect(m),h(),g()})}function c(){if(n.pools[0].messageLength>=32)return h();var g=32-n.pools[0].messageLength<<5;n.collect(n.seedFileSync(g)),h()}function h(){n.reseeds=n.reseeds===4294967295?0:n.reseeds+1;var g=n.plugin.md.create();g.update(n.keyBytes);for(var s=1,p=0;p<32;++p)n.reseeds%s===0&&(g.update(n.pools[p].digest().getBytes()),n.pools[p].start()),s=s<<1;n.keyBytes=g.digest().getBytes(),g.start(),g.update(n.keyBytes);var m=g.digest().getBytes();n.key=n.plugin.formatKey(n.keyBytes),n.seed=n.plugin.formatSeed(m),n.generated=0}function E(g){var s=null,p=t.util.globalScope,m=p.crypto||p.msCrypto;m&&m.getRandomValues&&(s=function(d){return m.getRandomValues(d)});var S=t.util.createBuffer();if(s)for(;S.length()>16),B+=(k&32767)<<16,B+=k>>15,B=(B&2147483647)+(B>>31),f=B&4294967295;for(var b=0;b<3;++b)N=f>>>(b<<3),N^=Math.floor(Math.random()*256),S.putByte(N&255)}return S.getBytes(g)}return a?(n.seedFile=function(g,s){a.randomBytes(g,function(p,m){if(p)return s(p);s(null,m.toString())})},n.seedFileSync=function(g){return a.randomBytes(g).toString()}):(n.seedFile=function(g,s){try{s(null,E(g))}catch(p){s(p)}},n.seedFileSync=E),n.collect=function(g){for(var s=g.length,p=0;p>m&255);n.collect(p)},n.registerWorker=function(g){if(g===self)n.seedFile=function(p,m){function S(l){var C=l.data;C.forge&&C.forge.prng&&(self.removeEventListener("message",S),m(C.forge.prng.err,C.forge.prng.bytes))}self.addEventListener("message",S),self.postMessage({forge:{prng:{needed:p}}})};else{var s=function(p){var m=p.data;m.forge&&m.forge.prng&&n.seedFile(m.forge.prng.needed,function(S,l){g.postMessage({forge:{prng:{err:S,bytes:l}}})})};g.addEventListener("message",s)}},n},ja.exports}var dv;function Et(){if(dv)return Yr.exports;dv=1;var t=me();return xt(),LI(),qI(),Ne(),(function(){if(t.random&&t.random.getBytes){Yr.exports=t.random;return}(function(a){var e={},r=new Array(4),n=t.util.createBuffer();e.formatKey=function(g){var s=t.util.createBuffer(g);return g=new Array(4),g[0]=s.getInt32(),g[1]=s.getInt32(),g[2]=s.getInt32(),g[3]=s.getInt32(),t.aes._expandKey(g,!1)},e.formatSeed=function(g){var s=t.util.createBuffer(g);return g=new Array(4),g[0]=s.getInt32(),g[1]=s.getInt32(),g[2]=s.getInt32(),g[3]=s.getInt32(),g},e.cipher=function(g,s){return t.aes._updateBlock(g,s,r,!1),n.putInt32(r[0]),n.putInt32(r[1]),n.putInt32(r[2]),n.putInt32(r[3]),n.getBytes()},e.increment=function(g){return++g[3],g},e.md=t.md.sha256;function i(){var g=t.prng.create(e);return g.getBytes=function(s,p){return g.generate(s,p)},g.getBytesSync=function(s){return g.generate(s)},g}var u=i(),o=null,v=t.util.globalScope,c=v.crypto||v.msCrypto;if(c&&c.getRandomValues&&(o=function(g){return c.getRandomValues(g)}),t.options.usePureJavaScript||!t.util.isNodejs&&!o){if(u.collectInt(+new Date,32),typeof navigator<"u"){var h="";for(var E in navigator)try{typeof navigator[E]=="string"&&(h+=navigator[E])}catch{}u.collect(h),h=null}a&&(a().mousemove(function(g){u.collectInt(g.clientX,16),u.collectInt(g.clientY,16)}),a().keypress(function(g){u.collectInt(g.charCode,8)}))}if(!t.random)t.random=u;else for(var E in u)t.random[E]=u[E];t.random.createInstance=i,Yr.exports=t.random})(typeof jQuery<"u"?jQuery:null)})(),Yr.exports}var xa,cv;function FI(){if(cv)return xa;cv=1;var t=me();Ne();var a=[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],e=[1,2,3,5],r=function(u,o){return u<>16-o},n=function(u,o){return(u&65535)>>o|u<<16-o&65535};xa=t.rc2=t.rc2||{},t.rc2.expandKey=function(u,o){typeof u=="string"&&(u=t.util.createBuffer(u)),o=o||128;var v=u,c=u.length(),h=o,E=Math.ceil(h/8),g=255>>(h&7),s;for(s=c;s<128;s++)v.putByte(a[v.at(s-1)+v.at(s-c)&255]);for(v.setAt(128-E,a[v.at(128-E)&g]),s=127-E;s>=0;s--)v.setAt(s,a[v.at(s+1)^v.at(s+E)]);return v};var i=function(u,o,v){var c=!1,h=null,E=null,g=null,s,p,m,S,l=[];for(u=t.rc2.expandKey(u,o),m=0;m<64;m++)l.push(u.getInt16Le());v?(s=function(k){for(m=0;m<4;m++)k[m]+=l[S]+(k[(m+3)%4]&k[(m+2)%4])+(~k[(m+3)%4]&k[(m+1)%4]),k[m]=r(k[m],e[m]),S++},p=function(k){for(m=0;m<4;m++)k[m]+=l[k[(m+3)%4]&63]}):(s=function(k){for(m=3;m>=0;m--)k[m]=n(k[m],e[m]),k[m]-=l[S]+(k[(m+3)%4]&k[(m+2)%4])+(~k[(m+3)%4]&k[(m+1)%4]),S--},p=function(k){for(m=3;m>=0;m--)k[m]-=l[k[(m+3)%4]&63]});var C=function(k){var B=[];for(m=0;m<4;m++){var N=h.getInt16Le();g!==null&&(v?N^=g.getInt16Le():g.putInt16Le(N)),B.push(N&65535)}S=v?0:63;for(var f=0;f=8;)C([[5,s],[1,p],[6,s],[1,p],[5,s]])},finish:function(k){var B=!0;if(v)if(k)B=k(8,h,!v);else{var N=h.length()===8?8:8-h.length();h.fillWithByte(N,N)}if(B&&(c=!0,b.update()),!v&&(B=h.length()===0,B))if(k)B=k(8,E,!v);else{var f=E.length(),d=E.at(f-1);d>f?B=!1:E.truncate(d)}return B}},b};return t.rc2.startEncrypting=function(u,o,v){var c=t.rc2.createEncryptionCipher(u,128);return c.start(o,v),c},t.rc2.createEncryptionCipher=function(u,o){return i(u,o,!0)},t.rc2.startDecrypting=function(u,o,v){var c=t.rc2.createDecryptionCipher(u,128);return c.start(o,v),c},t.rc2.createDecryptionCipher=function(u,o){return i(u,o,!1)},xa}var za,lv;function sa(){if(lv)return za;lv=1;var t=me();za=t.jsbn=t.jsbn||{};var a;function e(A,T,D){this.data=[],A!=null&&(typeof A=="number"?this.fromNumber(A,T,D):T==null&&typeof A!="string"?this.fromString(A,256):this.fromString(A,T))}t.jsbn.BigInteger=e;function r(){return new e(null)}function n(A,T,D,G,Q,X){for(;--X>=0;){var oe=T*this.data[A++]+D.data[G]+Q;Q=Math.floor(oe/67108864),D.data[G++]=oe&67108863}return Q}function i(A,T,D,G,Q,X){for(var oe=T&32767,ae=T>>15;--X>=0;){var ye=this.data[A]&32767,Pe=this.data[A++]>>15,it=ae*ye+Pe*oe;ye=oe*ye+((it&32767)<<15)+D.data[G]+(Q&1073741823),Q=(ye>>>30)+(it>>>15)+ae*Pe+(Q>>>30),D.data[G++]=ye&1073741823}return Q}function u(A,T,D,G,Q,X){for(var oe=T&16383,ae=T>>14;--X>=0;){var ye=this.data[A]&16383,Pe=this.data[A++]>>14,it=ae*ye+Pe*oe;ye=oe*ye+((it&16383)<<14)+D.data[G]+Q,Q=(ye>>28)+(it>>14)+ae*Pe,D.data[G++]=ye&268435455}return Q}typeof navigator>"u"?(e.prototype.am=u,a=28):navigator.appName=="Microsoft Internet Explorer"?(e.prototype.am=i,a=30):navigator.appName!="Netscape"?(e.prototype.am=n,a=26):(e.prototype.am=u,a=28),e.prototype.DB=a,e.prototype.DM=(1<=0;--T)A.data[T]=this.data[T];A.t=this.t,A.s=this.s}function m(A){this.t=1,this.s=A<0?-1:0,A>0?this.data[0]=A:A<-1?this.data[0]=A+this.DV:this.t=0}function S(A){var T=r();return T.fromInt(A),T}function l(A,T){var D;if(T==16)D=4;else if(T==8)D=3;else if(T==256)D=8;else if(T==2)D=1;else if(T==32)D=5;else if(T==4)D=2;else{this.fromRadix(A,T);return}this.t=0,this.s=0;for(var G=A.length,Q=!1,X=0;--G>=0;){var oe=D==8?A[G]&255:s(A,G);if(oe<0){A.charAt(G)=="-"&&(Q=!0);continue}Q=!1,X==0?this.data[this.t++]=oe:X+D>this.DB?(this.data[this.t-1]|=(oe&(1<>this.DB-X):this.data[this.t-1]|=oe<=this.DB&&(X-=this.DB)}D==8&&(A[0]&128)!=0&&(this.s=-1,X>0&&(this.data[this.t-1]|=(1<0&&this.data[this.t-1]==A;)--this.t}function b(A){if(this.s<0)return"-"+this.negate().toString(A);var T;if(A==16)T=4;else if(A==8)T=3;else if(A==2)T=1;else if(A==32)T=5;else if(A==4)T=2;else return this.toRadix(A);var D=(1<0)for(ae>ae)>0&&(Q=!0,X=g(G));oe>=0;)ae>(ae+=this.DB-T)):(G=this.data[oe]>>(ae-=T)&D,ae<=0&&(ae+=this.DB,--oe)),G>0&&(Q=!0),Q&&(X+=g(G));return Q?X:"0"}function k(){var A=r();return e.ZERO.subTo(this,A),A}function B(){return this.s<0?this.negate():this}function N(A){var T=this.s-A.s;if(T!=0)return T;var D=this.t;if(T=D-A.t,T!=0)return this.s<0?-T:T;for(;--D>=0;)if((T=this.data[D]-A.data[D])!=0)return T;return 0}function f(A){var T=1,D;return(D=A>>>16)!=0&&(A=D,T+=16),(D=A>>8)!=0&&(A=D,T+=8),(D=A>>4)!=0&&(A=D,T+=4),(D=A>>2)!=0&&(A=D,T+=2),(D=A>>1)!=0&&(A=D,T+=1),T}function d(){return this.t<=0?0:this.DB*(this.t-1)+f(this.data[this.t-1]^this.s&this.DM)}function M(A,T){var D;for(D=this.t-1;D>=0;--D)T.data[D+A]=this.data[D];for(D=A-1;D>=0;--D)T.data[D]=0;T.t=this.t+A,T.s=this.s}function V(A,T){for(var D=A;D=0;--ae)T.data[ae+X+1]=this.data[ae]>>G|oe,oe=(this.data[ae]&Q)<=0;--ae)T.data[ae]=0;T.data[X]=oe,T.t=this.t+X+1,T.s=this.s,T.clamp()}function P(A,T){T.s=this.s;var D=Math.floor(A/this.DB);if(D>=this.t){T.t=0;return}var G=A%this.DB,Q=this.DB-G,X=(1<>G;for(var oe=D+1;oe>G;G>0&&(T.data[this.t-D-1]|=(this.s&X)<>=this.DB;if(A.t>=this.DB;G+=this.s}else{for(G+=this.s;D>=this.DB;G-=A.s}T.s=G<0?-1:0,G<-1?T.data[D++]=this.DV+G:G>0&&(T.data[D++]=G),T.t=D,T.clamp()}function j(A,T){var D=this.abs(),G=A.abs(),Q=D.t;for(T.t=Q+G.t;--Q>=0;)T.data[Q]=0;for(Q=0;Q=0;)A.data[D]=0;for(D=0;D=T.DV&&(A.data[D+T.t]-=T.DV,A.data[D+T.t+1]=1)}A.t>0&&(A.data[A.t-1]+=T.am(D,T.data[D],A,2*D,0,1)),A.s=0,A.clamp()}function K(A,T,D){var G=A.abs();if(!(G.t<=0)){var Q=this.abs();if(Q.t0?(G.lShiftTo(ye,X),Q.lShiftTo(ye,D)):(G.copyTo(X),Q.copyTo(D));var Pe=X.t,it=X.data[Pe-1];if(it!=0){var Xe=it*(1<1?X.data[Pe-2]>>this.F2:0),st=this.FV/Xe,dt=(1<=0&&(D.data[D.t++]=1,D.subTo(ft,D)),e.ONE.dlShiftTo(Pe,ft),ft.subTo(X,X);X.t=0;){var kt=D.data[--ut]==it?this.DM:Math.floor(D.data[ut]*st+(D.data[ut-1]+et)*dt);if((D.data[ut]+=X.am(0,kt,D,St,0,Pe))0&&D.rShiftTo(ye,D),oe<0&&e.ZERO.subTo(D,D)}}}function H(A){var T=r();return this.abs().divRemTo(A,null,T),this.s<0&&T.compareTo(e.ZERO)>0&&A.subTo(T,T),T}function Z(A){this.m=A}function te(A){return A.s<0||A.compareTo(this.m)>=0?A.mod(this.m):A}function ue(A){return A}function de(A){A.divRemTo(this.m,null,A)}function pe(A,T,D){A.multiplyTo(T,D),this.reduce(D)}function Se(A,T){A.squareTo(T),this.reduce(T)}Z.prototype.convert=te,Z.prototype.revert=ue,Z.prototype.reduce=de,Z.prototype.mulTo=pe,Z.prototype.sqrTo=Se;function ee(){if(this.t<1)return 0;var A=this.data[0];if((A&1)==0)return 0;var T=A&3;return T=T*(2-(A&15)*T)&15,T=T*(2-(A&255)*T)&255,T=T*(2-((A&65535)*T&65535))&65535,T=T*(2-A*T%this.DV)%this.DV,T>0?this.DV-T:-T}function fe(A){this.m=A,this.mp=A.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<0&&this.m.subTo(T,T),T}function Ue(A){var T=r();return A.copyTo(T),this.reduce(T),T}function ve(A){for(;A.t<=this.mt2;)A.data[A.t++]=0;for(var T=0;T>15)*this.mpl&this.um)<<15)&A.DM;for(D=T+this.m.t,A.data[D]+=this.m.am(0,G,A,T,0,this.m.t);A.data[D]>=A.DV;)A.data[D]-=A.DV,A.data[++D]++}A.clamp(),A.drShiftTo(this.m.t,A),A.compareTo(this.m)>=0&&A.subTo(this.m,A)}function y(A,T){A.squareTo(T),this.reduce(T)}function w(A,T,D){A.multiplyTo(T,D),this.reduce(D)}fe.prototype.convert=re,fe.prototype.revert=Ue,fe.prototype.reduce=ve,fe.prototype.mulTo=w,fe.prototype.sqrTo=y;function R(){return(this.t>0?this.data[0]&1:this.s)==0}function _(A,T){if(A>4294967295||A<1)return e.ONE;var D=r(),G=r(),Q=T.convert(this),X=f(A)-1;for(Q.copyTo(D);--X>=0;)if(T.sqrTo(D,G),(A&1<0)T.mulTo(G,Q,D);else{var oe=D;D=G,G=oe}return T.revert(D)}function U(A,T){var D;return A<256||T.isEven()?D=new Z(T):D=new fe(T),this.exp(A,D)}e.prototype.copyTo=p,e.prototype.fromInt=m,e.prototype.fromString=l,e.prototype.clamp=C,e.prototype.dlShiftTo=M,e.prototype.drShiftTo=V,e.prototype.lShiftTo=q,e.prototype.rShiftTo=P,e.prototype.subTo=L,e.prototype.multiplyTo=j,e.prototype.squareTo=z,e.prototype.divRemTo=K,e.prototype.invDigit=ee,e.prototype.isEven=R,e.prototype.exp=_,e.prototype.toString=b,e.prototype.negate=k,e.prototype.abs=B,e.prototype.compareTo=N,e.prototype.bitLength=d,e.prototype.mod=H,e.prototype.modPowInt=U,e.ZERO=S(0),e.ONE=S(1);function x(){var A=r();return this.copyTo(A),A}function F(){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)<>24}function ne(){return this.t==0?this.s:this.data[0]<<16>>16}function se(A){return Math.floor(Math.LN2*this.DB/Math.log(A))}function W(){return this.s<0?-1:this.t<=0||this.t==1&&this.data[0]<=0?0:1}function ie(A){if(A==null&&(A=10),this.signum()==0||A<2||A>36)return"0";var T=this.chunkSize(A),D=Math.pow(A,T),G=S(D),Q=r(),X=r(),oe="";for(this.divRemTo(G,Q,X);Q.signum()>0;)oe=(D+X.intValue()).toString(A).substr(1)+oe,Q.divRemTo(G,Q,X);return X.intValue().toString(A)+oe}function ce(A,T){this.fromInt(0),T==null&&(T=10);for(var D=this.chunkSize(T),G=Math.pow(T,D),Q=!1,X=0,oe=0,ae=0;ae=D&&(this.dMultiply(G),this.dAddOffset(oe,0),X=0,oe=0)}X>0&&(this.dMultiply(Math.pow(T,X)),this.dAddOffset(oe,0)),Q&&e.ZERO.subTo(this,this)}function _e(A,T,D){if(typeof T=="number")if(A<2)this.fromInt(1);else for(this.fromNumber(A,D),this.testBit(A-1)||this.bitwiseTo(e.ONE.shiftLeft(A-1),Te,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(T);)this.dAddOffset(2,0),this.bitLength()>A&&this.subTo(e.ONE.shiftLeft(A-1),this);else{var G=new Array,Q=A&7;G.length=(A>>3)+1,T.nextBytes(G),Q>0?G[0]&=(1<0)for(D>D)!=(this.s&this.DM)>>D&&(T[Q++]=G|this.s<=0;)D<8?(G=(this.data[A]&(1<>(D+=this.DB-8)):(G=this.data[A]>>(D-=8)&255,D<=0&&(D+=this.DB,--A)),(G&128)!=0&&(G|=-256),Q==0&&(this.s&128)!=(G&128)&&++Q,(Q>0||G!=this.s)&&(T[Q++]=G);return T}function Me(A){return this.compareTo(A)==0}function Ae(A){return this.compareTo(A)<0?this:A}function Ce(A){return this.compareTo(A)>0?this:A}function ke(A,T,D){var G,Q,X=Math.min(A.t,this.t);for(G=0;G>=16,T+=16),(A&255)==0&&(A>>=8,T+=8),(A&15)==0&&(A>>=4,T+=4),(A&3)==0&&(A>>=2,T+=2),(A&1)==0&&++T,T}function lt(){for(var A=0;A=this.t?this.s!=0:(this.data[T]&1<>=this.DB;if(A.t>=this.DB;G+=this.s}else{for(G+=this.s;D>=this.DB;G+=A.s}T.s=G<0?-1:0,G>0?T.data[D++]=G:G<-1&&(T.data[D++]=this.DV+G),T.t=D,T.clamp()}function $e(A){var T=r();return this.addTo(A,T),T}function Le(A){var T=r();return this.subTo(A,T),T}function qe(A){var T=r();return this.multiplyTo(A,T),T}function Be(A){var T=r();return this.divRemTo(A,T,null),T}function Fe(A){var T=r();return this.divRemTo(A,null,T),T}function je(A){var T=r(),D=r();return this.divRemTo(A,T,D),new Array(T,D)}function Re(A){this.data[this.t]=this.am(0,A-1,this,0,0,this.t),++this.t,this.clamp()}function xe(A,T){if(A!=0){for(;this.t<=T;)this.data[this.t++]=0;for(this.data[T]+=A;this.data[T]>=this.DV;)this.data[T]-=this.DV,++T>=this.t&&(this.data[this.t++]=0),++this.data[T]}}function Ie(){}function we(A){return A}function De(A,T,D){A.multiplyTo(T,D)}function ze(A,T){A.squareTo(T)}Ie.prototype.convert=we,Ie.prototype.revert=we,Ie.prototype.mulTo=De,Ie.prototype.sqrTo=ze;function Pt(A){return this.exp(A,new Ie)}function Tt(A,T,D){var G=Math.min(this.t+A.t,T);for(D.s=0,D.t=G;G>0;)D.data[--G]=0;var Q;for(Q=D.t-this.t;G=0;)D.data[G]=0;for(G=Math.max(T-this.t,0);G2*this.m.t)return A.mod(this.m);if(A.compareTo(this.m)<0)return A;var T=r();return A.copyTo(T),this.reduce(T),T}function Kt(A){return A}function $t(A){for(A.drShiftTo(this.m.t-1,this.r2),A.t>this.m.t+1&&(A.t=this.m.t+1,A.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);A.compareTo(this.r2)<0;)A.dAddOffset(1,this.m.t+1);for(A.subTo(this.r2,A);A.compareTo(this.m)>=0;)A.subTo(this.m,A)}function Wt(A,T){A.squareTo(T),this.reduce(T)}function Ht(A,T,D){A.multiplyTo(T,D),this.reduce(D)}mt.prototype.convert=At,mt.prototype.revert=Kt,mt.prototype.reduce=$t,mt.prototype.mulTo=Ht,mt.prototype.sqrTo=Wt;function Qt(A,T){var D=A.bitLength(),G,Q=S(1),X;if(D<=0)return Q;D<18?G=1:D<48?G=3:D<144?G=4:D<768?G=5:G=6,D<8?X=new Z(T):T.isEven()?X=new mt(T):X=new fe(T);var oe=new Array,ae=3,ye=G-1,Pe=(1<1){var it=r();for(X.sqrTo(oe[1],it);ae<=Pe;)oe[ae]=r(),X.mulTo(it,oe[ae-2],oe[ae]),ae+=2}var Xe=A.t-1,st,dt=!0,et=r(),ut;for(D=f(A.data[Xe])-1;Xe>=0;){for(D>=ye?st=A.data[Xe]>>D-ye&Pe:(st=(A.data[Xe]&(1<0&&(st|=A.data[Xe-1]>>this.DB+D-ye)),ae=G;(st&1)==0;)st>>=1,--ae;if((D-=ae)<0&&(D+=this.DB,--Xe),dt)oe[st].copyTo(Q),dt=!1;else{for(;ae>1;)X.sqrTo(Q,et),X.sqrTo(et,Q),ae-=2;ae>0?X.sqrTo(Q,et):(ut=Q,Q=et,et=ut),X.mulTo(et,oe[st],Q)}for(;Xe>=0&&(A.data[Xe]&1<0&&(T.rShiftTo(X,T),D.rShiftTo(X,D));T.signum()>0;)(Q=T.getLowestSetBit())>0&&T.rShiftTo(Q,T),(Q=D.getLowestSetBit())>0&&D.rShiftTo(Q,D),T.compareTo(D)>=0?(T.subTo(D,T),T.rShiftTo(1,T)):(D.subTo(T,D),D.rShiftTo(1,D));return X>0&&D.lShiftTo(X,D),D}function Xt(A){if(A<=0)return 0;var T=this.DV%A,D=this.s<0?A-1:0;if(this.t>0)if(T==0)D=this.data[0]%A;else for(var G=this.t-1;G>=0;--G)D=(T*D+this.data[G])%A;return D}function Jt(A){var T=A.isEven();if(this.isEven()&&T||A.signum()==0)return e.ZERO;for(var D=A.clone(),G=this.clone(),Q=S(1),X=S(0),oe=S(0),ae=S(1);D.signum()!=0;){for(;D.isEven();)D.rShiftTo(1,D),T?((!Q.isEven()||!X.isEven())&&(Q.addTo(this,Q),X.subTo(A,X)),Q.rShiftTo(1,Q)):X.isEven()||X.subTo(A,X),X.rShiftTo(1,X);for(;G.isEven();)G.rShiftTo(1,G),T?((!oe.isEven()||!ae.isEven())&&(oe.addTo(this,oe),ae.subTo(A,ae)),oe.rShiftTo(1,oe)):ae.isEven()||ae.subTo(A,ae),ae.rShiftTo(1,ae);D.compareTo(G)>=0?(D.subTo(G,D),T&&Q.subTo(oe,Q),X.subTo(ae,X)):(G.subTo(D,G),T&&oe.subTo(Q,oe),ae.subTo(X,ae))}if(G.compareTo(e.ONE)!=0)return e.ZERO;if(ae.compareTo(A)>=0)return ae.subtract(A);if(ae.signum()<0)ae.addTo(A,ae);else return ae;return ae.signum()<0?ae.add(A):ae}var nt=[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],ar=(1<<26)/nt[nt.length-1];function nr(A){var T,D=this.abs();if(D.t==1&&D.data[0]<=nt[nt.length-1]){for(T=0;T=0);var ae=X.modPow(G,this);if(ae.compareTo(e.ONE)!=0&&ae.compareTo(T)!=0){for(var ye=1;ye++>>0,g>>>0];for(var s=c.fullMessageLength.length-1;s>=0;--s)c.fullMessageLength[s]+=g[1],g[1]=g[0]+(c.fullMessageLength[s]/4294967296>>>0),c.fullMessageLength[s]=c.fullMessageLength[s]>>>0,g[0]=g[1]/4294967296>>>0;return o.putBytes(h),i(u,v,o),(o.read>2048||o.length()===0)&&o.compact(),c},c.digest=function(){var h=t.util.createBuffer();h.putBytes(o.bytes());var E=c.fullMessageLength[c.fullMessageLength.length-1]+c.messageLengthSize,g=E&c.blockLength-1;h.putBytes(e.substr(0,c.blockLength-g));for(var s,p,m=c.fullMessageLength[0]*8,S=0;S>>0,m+=p,h.putInt32(m>>>0),m=s>>>0;h.putInt32(m);var l={h0:u.h0,h1:u.h1,h2:u.h2,h3:u.h3,h4:u.h4};i(l,v,h);var C=t.util.createBuffer();return C.putInt32(l.h0),C.putInt32(l.h1),C.putInt32(l.h2),C.putInt32(l.h3),C.putInt32(l.h4),C},c};var e=null,r=!1;function n(){e="€",e+=t.util.fillString("\0",64),r=!0}function i(u,o,v){for(var c,h,E,g,s,p,m,S,l=v.length();l>=64;){for(h=u.h0,E=u.h1,g=u.h2,s=u.h3,p=u.h4,S=0;S<16;++S)c=v.getInt32(),o[S]=c,m=s^E&(g^s),c=(h<<5|h>>>27)+m+p+1518500249+c,p=s,s=g,g=(E<<30|E>>>2)>>>0,E=h,h=c;for(;S<20;++S)c=o[S-3]^o[S-8]^o[S-14]^o[S-16],c=c<<1|c>>>31,o[S]=c,m=s^E&(g^s),c=(h<<5|h>>>27)+m+p+1518500249+c,p=s,s=g,g=(E<<30|E>>>2)>>>0,E=h,h=c;for(;S<32;++S)c=o[S-3]^o[S-8]^o[S-14]^o[S-16],c=c<<1|c>>>31,o[S]=c,m=E^g^s,c=(h<<5|h>>>27)+m+p+1859775393+c,p=s,s=g,g=(E<<30|E>>>2)>>>0,E=h,h=c;for(;S<40;++S)c=o[S-6]^o[S-16]^o[S-28]^o[S-32],c=c<<2|c>>>30,o[S]=c,m=E^g^s,c=(h<<5|h>>>27)+m+p+1859775393+c,p=s,s=g,g=(E<<30|E>>>2)>>>0,E=h,h=c;for(;S<60;++S)c=o[S-6]^o[S-16]^o[S-28]^o[S-32],c=c<<2|c>>>30,o[S]=c,m=E&g|s&(E^g),c=(h<<5|h>>>27)+m+p+2400959708+c,p=s,s=g,g=(E<<30|E>>>2)>>>0,E=h,h=c;for(;S<80;++S)c=o[S-6]^o[S-16]^o[S-28]^o[S-32],c=c<<2|c>>>30,o[S]=c,m=E^g^s,c=(h<<5|h>>>27)+m+p+3395469782+c,p=s,s=g,g=(E<<30|E>>>2)>>>0,E=h,h=c;u.h0=u.h0+h|0,u.h1=u.h1+E|0,u.h2=u.h2+g|0,u.h3=u.h3+s|0,u.h4=u.h4+p|0,l-=64}}return Ka.exports}var vv;function jI(){if(vv)return Ga.exports;vv=1;var t=me();Ne(),Et(),jr();var a=Ga.exports=t.pkcs1=t.pkcs1||{};a.encode_rsa_oaep=function(r,n,i){var u,o,v,c;typeof i=="string"?(u=i,o=arguments[3]||void 0,v=arguments[4]||void 0):i&&(u=i.label||void 0,o=i.seed||void 0,v=i.md||void 0,i.mgf1&&i.mgf1.md&&(c=i.mgf1.md)),v?v.start():v=t.md.sha1.create(),c||(c=v);var h=Math.ceil(r.n.bitLength()/8),E=h-2*v.digestLength-2;if(n.length>E){var g=new Error("RSAES-OAEP input message length is too long.");throw g.length=n.length,g.maxLength=E,g}u||(u=""),v.update(u,"raw");for(var s=v.digest(),p="",m=E-n.length,S=0;S>24&255,v>>16&255,v>>8&255,v&255);i.start(),i.update(r+c),u+=i.digest().getBytes()}return u.substring(0,n)}return Ga.exports}var Xr={exports:{}},hv;function xI(){if(hv)return Xr.exports;hv=1;var t=me();return Ne(),sa(),Et(),(function(){if(t.prime){Xr.exports=t.prime;return}var a=Xr.exports=t.prime=t.prime||{},e=t.jsbn.BigInteger,r=[6,4,2,4,2,4,6,2],n=new e(null);n.fromInt(30);var i=function(g,s){return g|s};a.generateProbablePrime=function(g,s,p){typeof s=="function"&&(p=s,s={}),s=s||{};var m=s.algorithm||"PRIMEINC";typeof m=="string"&&(m={name:m}),m.options=m.options||{};var S=s.prng||t.random,l={nextBytes:function(C){for(var b=S.getBytesSync(C.length),k=0;ks&&(g=h(s,p)),g.isProbablePrime(S))return C(null,g);g.dAddOffset(r[m++%8],0)}while(l<0||+new Date-b"u")return o(g,s,p,m);var S=h(g,s),l=p.workers,C=p.workLoad||100,b=C*30/8,k=p.workerScript||"forge/prime.worker.js";if(l===-1)return t.util.estimateCores(function(N,f){N&&(f=2),l=f-1,B()});B();function B(){l=Math.max(1,l);for(var N=[],f=0;fg&&(S=h(g,s));var L=S.toString(16);V.target.postMessage({hex:L,workLoad:C}),S.dAddOffset(b,0)}}}}function h(g,s){var p=new e(g,s),m=g-1;return p.testBit(m)||p.bitwiseTo(e.ONE.shiftLeft(m),i,p),p.dAddOffset(31-p.mod(n).byteValue(),0),p}function E(g){return g<=100?27:g<=150?18:g<=200?15:g<=250?12:g<=300?9:g<=350?8:g<=400?7:g<=500?6:g<=600?5:g<=800?4:g<=1250?3:2}})(),Xr.exports}var $a,pv;function da(){if(pv)return $a;pv=1;var t=me();if(Nt(),sa(),zt(),jI(),xI(),Et(),Ne(),typeof a>"u")var a=t.jsbn.BigInteger;var e=t.util.isNodejs?Of:null,r=t.asn1,n=t.util;t.pki=t.pki||{},$a=t.pki.rsa=t.rsa=t.rsa||{};var i=t.pki,u=[6,4,2,4,2,4,6,2],o={name:"PrivateKeyInfo",tagClass:r.Class.UNIVERSAL,type:r.Type.SEQUENCE,constructed:!0,value:[{name:"PrivateKeyInfo.version",tagClass:r.Class.UNIVERSAL,type:r.Type.INTEGER,constructed:!1,capture:"privateKeyVersion"},{name:"PrivateKeyInfo.privateKeyAlgorithm",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:"privateKeyOid"}]},{name:"PrivateKeyInfo",tagClass:r.Class.UNIVERSAL,type:r.Type.OCTETSTRING,constructed:!1,capture:"privateKey"}]},v={name:"RSAPrivateKey",tagClass:r.Class.UNIVERSAL,type:r.Type.SEQUENCE,constructed:!0,value:[{name:"RSAPrivateKey.version",tagClass:r.Class.UNIVERSAL,type:r.Type.INTEGER,constructed:!1,capture:"privateKeyVersion"},{name:"RSAPrivateKey.modulus",tagClass:r.Class.UNIVERSAL,type:r.Type.INTEGER,constructed:!1,capture:"privateKeyModulus"},{name:"RSAPrivateKey.publicExponent",tagClass:r.Class.UNIVERSAL,type:r.Type.INTEGER,constructed:!1,capture:"privateKeyPublicExponent"},{name:"RSAPrivateKey.privateExponent",tagClass:r.Class.UNIVERSAL,type:r.Type.INTEGER,constructed:!1,capture:"privateKeyPrivateExponent"},{name:"RSAPrivateKey.prime1",tagClass:r.Class.UNIVERSAL,type:r.Type.INTEGER,constructed:!1,capture:"privateKeyPrime1"},{name:"RSAPrivateKey.prime2",tagClass:r.Class.UNIVERSAL,type:r.Type.INTEGER,constructed:!1,capture:"privateKeyPrime2"},{name:"RSAPrivateKey.exponent1",tagClass:r.Class.UNIVERSAL,type:r.Type.INTEGER,constructed:!1,capture:"privateKeyExponent1"},{name:"RSAPrivateKey.exponent2",tagClass:r.Class.UNIVERSAL,type:r.Type.INTEGER,constructed:!1,capture:"privateKeyExponent2"},{name:"RSAPrivateKey.coefficient",tagClass:r.Class.UNIVERSAL,type:r.Type.INTEGER,constructed:!1,capture:"privateKeyCoefficient"}]},c={name:"RSAPublicKey",tagClass:r.Class.UNIVERSAL,type:r.Type.SEQUENCE,constructed:!0,value:[{name:"RSAPublicKey.modulus",tagClass:r.Class.UNIVERSAL,type:r.Type.INTEGER,constructed:!1,capture:"publicKeyModulus"},{name:"RSAPublicKey.exponent",tagClass:r.Class.UNIVERSAL,type:r.Type.INTEGER,constructed:!1,capture:"publicKeyExponent"}]},h=t.pki.rsa.publicKeyValidator={name:"SubjectPublicKeyInfo",tagClass:r.Class.UNIVERSAL,type:r.Type.SEQUENCE,constructed:!0,captureAsn1:"subjectPublicKeyInfo",value:[{name:"SubjectPublicKeyInfo.AlgorithmIdentifier",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:"publicKeyOid"}]},{name:"SubjectPublicKeyInfo.subjectPublicKey",tagClass:r.Class.UNIVERSAL,type:r.Type.BITSTRING,constructed:!1,value:[{name:"SubjectPublicKeyInfo.subjectPublicKey.RSAPublicKey",tagClass:r.Class.UNIVERSAL,type:r.Type.SEQUENCE,constructed:!0,optional:!0,captureAsn1:"rsaPublicKey"}]}]},E={name:"DigestInfo",tagClass:r.Class.UNIVERSAL,type:r.Type.SEQUENCE,constructed:!0,value:[{name:"DigestInfo.DigestAlgorithm",tagClass:r.Class.UNIVERSAL,type:r.Type.SEQUENCE,constructed:!0,value:[{name:"DigestInfo.DigestAlgorithm.algorithmIdentifier",tagClass:r.Class.UNIVERSAL,type:r.Type.OID,constructed:!1,capture:"algorithmIdentifier"},{name:"DigestInfo.DigestAlgorithm.parameters",tagClass:r.Class.UNIVERSAL,type:r.Type.NULL,capture:"parameters",optional:!0,constructed:!1}]},{name:"DigestInfo.digest",tagClass:r.Class.UNIVERSAL,type:r.Type.OCTETSTRING,constructed:!1,capture:"digest"}]},g=function(f){var d;if(f.algorithm in i.oids)d=i.oids[f.algorithm];else{var M=new Error("Unknown message digest algorithm.");throw M.algorithm=f.algorithm,M}var V=r.oidToDer(d).getBytes(),q=r.create(r.Class.UNIVERSAL,r.Type.SEQUENCE,!0,[]),P=r.create(r.Class.UNIVERSAL,r.Type.SEQUENCE,!0,[]);P.value.push(r.create(r.Class.UNIVERSAL,r.Type.OID,!1,V)),P.value.push(r.create(r.Class.UNIVERSAL,r.Type.NULL,!1,""));var L=r.create(r.Class.UNIVERSAL,r.Type.OCTETSTRING,!1,f.digest().getBytes());return q.value.push(P),q.value.push(L),r.toDer(q).getBytes()},s=function(f,d,M){if(M)return f.modPow(d.e,d.n);if(!d.p||!d.q)return f.modPow(d.d,d.n);d.dP||(d.dP=d.d.mod(d.p.subtract(a.ONE))),d.dQ||(d.dQ=d.d.mod(d.q.subtract(a.ONE))),d.qInv||(d.qInv=d.q.modInverse(d.p));var V;do V=new a(t.util.bytesToHex(t.random.getBytes(d.n.bitLength()/8)),16);while(V.compareTo(d.n)>=0||!V.gcd(d.n).equals(a.ONE));f=f.multiply(V.modPow(d.e,d.n)).mod(d.n);for(var q=f.mod(d.p).modPow(d.dP,d.p),P=f.mod(d.q).modPow(d.dQ,d.q);q.compareTo(P)<0;)q=q.add(d.p);var L=q.subtract(P).multiply(d.qInv).mod(d.p).multiply(d.q).add(P);return L=L.multiply(V.modInverse(d.n)).mod(d.n),L};i.rsa.encrypt=function(f,d,M){var V=M,q,P=Math.ceil(d.n.bitLength()/8);M!==!1&&M!==!0?(V=M===2,q=p(f,d,M)):(q=t.util.createBuffer(),q.putBytes(f));for(var L=new a(q.toHex(),16),j=s(L,d,V),z=j.toString(16),K=t.util.createBuffer(),H=P-Math.ceil(z.length/2);H>0;)K.putByte(0),--H;return K.putBytes(t.util.hexToBytes(z)),K.getBytes()},i.rsa.decrypt=function(f,d,M,V){var q=Math.ceil(d.n.bitLength()/8);if(f.length!==q){var P=new Error("Encrypted message length is invalid.");throw P.length=f.length,P.expected=q,P}var L=new a(t.util.createBuffer(f).toHex(),16);if(L.compareTo(d.n)>=0)throw new Error("Encrypted message is invalid.");for(var j=s(L,d,M),z=j.toString(16),K=t.util.createBuffer(),H=q-Math.ceil(z.length/2);H>0;)K.putByte(0),--H;return K.putBytes(t.util.hexToBytes(z)),V!==!1?m(K.getBytes(),d,M):K.getBytes()},i.rsa.createKeyPairGenerationState=function(f,d,M){typeof f=="string"&&(f=parseInt(f,10)),f=f||2048,M=M||{};var V=M.prng||t.random,q={nextBytes:function(j){for(var z=V.getBytesSync(j.length),K=0;K>1,pBits:f-(f>>1),pqState:0,num:null,keys:null},L.e.fromInt(L.eInt);else throw new Error("Invalid key generation algorithm: "+P);return L},i.rsa.stepKeyPairGenerationState=function(f,d){"algorithm"in f||(f.algorithm="PRIMEINC");var M=new a(null);M.fromInt(30);for(var V=0,q=function(Z,te){return Z|te},P=+new Date,L,j=0;f.keys===null&&(d<=0||jz?f.pqState=0:f.num.isProbablePrime(C(f.num.bitLength()))?++f.pqState:f.num.dAddOffset(u[V++%8],0):f.pqState===2?f.pqState=f.num.subtract(a.ONE).gcd(f.e).compareTo(a.ONE)===0?3:0:f.pqState===3&&(f.pqState=0,f.p===null?f.p=f.num:f.q=f.num,f.p!==null&&f.q!==null&&++f.state,f.num=null)}else if(f.state===1)f.p.compareTo(f.q)<0&&(f.num=f.p,f.p=f.q,f.q=f.num),++f.state;else if(f.state===2)f.p1=f.p.subtract(a.ONE),f.q1=f.q.subtract(a.ONE),f.phi=f.p1.multiply(f.q1),++f.state;else if(f.state===3)f.phi.gcd(f.e).compareTo(a.ONE)===0?++f.state:(f.p=null,f.q=null,f.state=0);else if(f.state===4)f.n=f.p.multiply(f.q),f.n.bitLength()===f.bits?++f.state:(f.q=null,f.state=0);else if(f.state===5){var H=f.e.modInverse(f.phi);f.keys={privateKey:i.rsa.setPrivateKey(f.n,f.e,H,f.p,f.q,H.mod(f.p1),H.mod(f.q1),f.q.modInverse(f.p)),publicKey:i.rsa.setPublicKey(f.n,f.e)}}L=+new Date,j+=L-P,P=L}return f.keys!==null},i.rsa.generateKeyPair=function(f,d,M,V){if(arguments.length===1?typeof f=="object"?(M=f,f=void 0):typeof f=="function"&&(V=f,f=void 0):arguments.length===2?typeof f=="number"?typeof d=="function"?(V=d,d=void 0):typeof d!="number"&&(M=d,d=void 0):(M=f,V=d,f=void 0,d=void 0):arguments.length===3&&(typeof d=="number"?typeof M=="function"&&(V=M,M=void 0):(V=M,M=d,d=void 0)),M=M||{},f===void 0&&(f=M.bits||2048),d===void 0&&(d=M.e||65537),!t.options.usePureJavaScript&&!M.prng&&f>=256&&f<=16384&&(d===65537||d===3)){if(V){if(b("generateKeyPair"))return e.generateKeyPair("rsa",{modulusLength:f,publicExponent:d,publicKeyEncoding:{type:"spki",format:"pem"},privateKeyEncoding:{type:"pkcs8",format:"pem"}},function(j,z,K){if(j)return V(j);V(null,{privateKey:i.privateKeyFromPem(K),publicKey:i.publicKeyFromPem(z)})});if(k("generateKey")&&k("exportKey"))return n.globalScope.crypto.subtle.generateKey({name:"RSASSA-PKCS1-v1_5",modulusLength:f,publicExponent:N(d),hash:{name:"SHA-256"}},!0,["sign","verify"]).then(function(j){return n.globalScope.crypto.subtle.exportKey("pkcs8",j.privateKey)}).then(void 0,function(j){V(j)}).then(function(j){if(j){var z=i.privateKeyFromAsn1(r.fromDer(t.util.createBuffer(j)));V(null,{privateKey:z,publicKey:i.setRsaPublicKey(z.n,z.e)})}});if(B("generateKey")&&B("exportKey")){var q=n.globalScope.msCrypto.subtle.generateKey({name:"RSASSA-PKCS1-v1_5",modulusLength:f,publicExponent:N(d),hash:{name:"SHA-256"}},!0,["sign","verify"]);q.oncomplete=function(j){var z=j.target.result,K=n.globalScope.msCrypto.subtle.exportKey("pkcs8",z.privateKey);K.oncomplete=function(H){var Z=H.target.result,te=i.privateKeyFromAsn1(r.fromDer(t.util.createBuffer(Z)));V(null,{privateKey:te,publicKey:i.setRsaPublicKey(te.n,te.e)})},K.onerror=function(H){V(H)}},q.onerror=function(j){V(j)};return}}else if(b("generateKeyPairSync")){var P=e.generateKeyPairSync("rsa",{modulusLength:f,publicExponent:d,publicKeyEncoding:{type:"spki",format:"pem"},privateKeyEncoding:{type:"pkcs8",format:"pem"}});return{privateKey:i.privateKeyFromPem(P.privateKey),publicKey:i.publicKeyFromPem(P.publicKey)}}}var L=i.rsa.createKeyPairGenerationState(f,d,M);if(!V)return i.rsa.stepKeyPairGenerationState(L,0),L.keys;S(L,M,V)},i.setRsaPublicKey=i.rsa.setPublicKey=function(f,d){var M={n:f,e:d};return M.encrypt=function(V,q,P){if(typeof q=="string"?q=q.toUpperCase():q===void 0&&(q="RSAES-PKCS1-V1_5"),q==="RSAES-PKCS1-V1_5")q={encode:function(j,z,K){return p(j,z,2).getBytes()}};else if(q==="RSA-OAEP"||q==="RSAES-OAEP")q={encode:function(j,z){return t.pkcs1.encode_rsa_oaep(z,j,P)}};else if(["RAW","NONE","NULL",null].indexOf(q)!==-1)q={encode:function(j){return j}};else if(typeof q=="string")throw new Error('Unsupported encryption scheme: "'+q+'".');var L=q.encode(V,M,!0);return i.rsa.encrypt(L,M,!0)},M.verify=function(V,q,P,L){typeof P=="string"?P=P.toUpperCase():P===void 0&&(P="RSASSA-PKCS1-V1_5"),L===void 0&&(L={_parseAllDigestBytes:!0}),"_parseAllDigestBytes"in L||(L._parseAllDigestBytes=!0),P==="RSASSA-PKCS1-V1_5"?P={verify:function(z,K){K=m(K,M,!0);var H=r.fromDer(K,{parseAllBytes:L._parseAllDigestBytes}),Z={},te=[];if(!r.validate(H,E,Z,te)){var ue=new Error("ASN.1 object does not contain a valid RSASSA-PKCS1-v1_5 DigestInfo value.");throw ue.errors=te,ue}var de=r.derToOid(Z.algorithmIdentifier);if(!(de===t.oids.md2||de===t.oids.md5||de===t.oids.sha1||de===t.oids.sha224||de===t.oids.sha256||de===t.oids.sha384||de===t.oids.sha512||de===t.oids["sha512-224"]||de===t.oids["sha512-256"])){var ue=new Error("Unknown RSASSA-PKCS1-v1_5 DigestAlgorithm identifier.");throw ue.oid=de,ue}if((de===t.oids.md2||de===t.oids.md5)&&!("parameters"in Z))throw new Error("ASN.1 object does not contain a valid RSASSA-PKCS1-v1_5 DigestInfo value. Missing algorithm identifer NULL parameters.");return z===Z.digest}}:(P==="NONE"||P==="NULL"||P===null)&&(P={verify:function(z,K){return K=m(K,M,!0),z===K}});var j=i.rsa.decrypt(q,M,!0,!1);return P.verify(V,j,M.n.bitLength())},M},i.setRsaPrivateKey=i.rsa.setPrivateKey=function(f,d,M,V,q,P,L,j){var z={n:f,e:d,d:M,p:V,q,dP:P,dQ:L,qInv:j};return z.decrypt=function(K,H,Z){typeof H=="string"?H=H.toUpperCase():H===void 0&&(H="RSAES-PKCS1-V1_5");var te=i.rsa.decrypt(K,z,!1,!1);if(H==="RSAES-PKCS1-V1_5")H={decode:m};else if(H==="RSA-OAEP"||H==="RSAES-OAEP")H={decode:function(ue,de){return t.pkcs1.decode_rsa_oaep(de,ue,Z)}};else if(["RAW","NONE","NULL",null].indexOf(H)!==-1)H={decode:function(ue){return ue}};else throw new Error('Unsupported encryption scheme: "'+H+'".');return H.decode(te,z,!1)},z.sign=function(K,H){var Z=!1;typeof H=="string"&&(H=H.toUpperCase()),H===void 0||H==="RSASSA-PKCS1-V1_5"?(H={encode:g},Z=1):(H==="NONE"||H==="NULL"||H===null)&&(H={encode:function(){return K}},Z=1);var te=H.encode(K,z.n.bitLength());return i.rsa.encrypt(te,z,Z)},z},i.wrapRsaPrivateKey=function(f){return r.create(r.Class.UNIVERSAL,r.Type.SEQUENCE,!0,[r.create(r.Class.UNIVERSAL,r.Type.INTEGER,!1,r.integerToDer(0).getBytes()),r.create(r.Class.UNIVERSAL,r.Type.SEQUENCE,!0,[r.create(r.Class.UNIVERSAL,r.Type.OID,!1,r.oidToDer(i.oids.rsaEncryption).getBytes()),r.create(r.Class.UNIVERSAL,r.Type.NULL,!1,"")]),r.create(r.Class.UNIVERSAL,r.Type.OCTETSTRING,!1,r.toDer(f).getBytes())])},i.privateKeyFromAsn1=function(f){var d={},M=[];if(r.validate(f,o,d,M)&&(f=r.fromDer(t.util.createBuffer(d.privateKey))),d={},M=[],!r.validate(f,v,d,M)){var V=new Error("Cannot read private key. ASN.1 object does not contain an RSAPrivateKey.");throw V.errors=M,V}var q,P,L,j,z,K,H,Z;return q=t.util.createBuffer(d.privateKeyModulus).toHex(),P=t.util.createBuffer(d.privateKeyPublicExponent).toHex(),L=t.util.createBuffer(d.privateKeyPrivateExponent).toHex(),j=t.util.createBuffer(d.privateKeyPrime1).toHex(),z=t.util.createBuffer(d.privateKeyPrime2).toHex(),K=t.util.createBuffer(d.privateKeyExponent1).toHex(),H=t.util.createBuffer(d.privateKeyExponent2).toHex(),Z=t.util.createBuffer(d.privateKeyCoefficient).toHex(),i.setRsaPrivateKey(new a(q,16),new a(P,16),new a(L,16),new a(j,16),new a(z,16),new a(K,16),new a(H,16),new a(Z,16))},i.privateKeyToAsn1=i.privateKeyToRSAPrivateKey=function(f){return r.create(r.Class.UNIVERSAL,r.Type.SEQUENCE,!0,[r.create(r.Class.UNIVERSAL,r.Type.INTEGER,!1,r.integerToDer(0).getBytes()),r.create(r.Class.UNIVERSAL,r.Type.INTEGER,!1,l(f.n)),r.create(r.Class.UNIVERSAL,r.Type.INTEGER,!1,l(f.e)),r.create(r.Class.UNIVERSAL,r.Type.INTEGER,!1,l(f.d)),r.create(r.Class.UNIVERSAL,r.Type.INTEGER,!1,l(f.p)),r.create(r.Class.UNIVERSAL,r.Type.INTEGER,!1,l(f.q)),r.create(r.Class.UNIVERSAL,r.Type.INTEGER,!1,l(f.dP)),r.create(r.Class.UNIVERSAL,r.Type.INTEGER,!1,l(f.dQ)),r.create(r.Class.UNIVERSAL,r.Type.INTEGER,!1,l(f.qInv))])},i.publicKeyFromAsn1=function(f){var d={},M=[];if(r.validate(f,h,d,M)){var V=r.derToOid(d.publicKeyOid);if(V!==i.oids.rsaEncryption){var q=new Error("Cannot read public key. Unknown OID.");throw q.oid=V,q}f=d.rsaPublicKey}if(M=[],!r.validate(f,c,d,M)){var q=new Error("Cannot read public key. ASN.1 object does not contain an RSAPublicKey.");throw q.errors=M,q}var P=t.util.createBuffer(d.publicKeyModulus).toHex(),L=t.util.createBuffer(d.publicKeyExponent).toHex();return i.setRsaPublicKey(new a(P,16),new a(L,16))},i.publicKeyToAsn1=i.publicKeyToSubjectPublicKeyInfo=function(f){return 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(i.oids.rsaEncryption).getBytes()),r.create(r.Class.UNIVERSAL,r.Type.NULL,!1,"")]),r.create(r.Class.UNIVERSAL,r.Type.BITSTRING,!1,[i.publicKeyToRSAPublicKey(f)])])},i.publicKeyToRSAPublicKey=function(f){return r.create(r.Class.UNIVERSAL,r.Type.SEQUENCE,!0,[r.create(r.Class.UNIVERSAL,r.Type.INTEGER,!1,l(f.n)),r.create(r.Class.UNIVERSAL,r.Type.INTEGER,!1,l(f.e))])};function p(f,d,M){var V=t.util.createBuffer(),q=Math.ceil(d.n.bitLength()/8);if(f.length>q-11){var P=new Error("Message is too long for PKCS#1 v1.5 padding.");throw P.length=f.length,P.max=q-11,P}V.putByte(0),V.putByte(M);var L=q-3-f.length,j;if(M===0||M===1){j=M===0?0:255;for(var z=0;z0;){for(var K=0,H=t.random.getBytes(L),z=0;z"u")throw new Error("Encryption block is invalid.");var z=0;if(j===0){z=q-3-V;for(var K=0;K1;){if(P.getByte()!==255){--P.read;break}++z}else if(j===2)for(z=0;P.length()>1;){if(P.getByte()===0){--P.read;break}++z}var H=P.getByte();if(H!==0||z!==q-3-P.length())throw new Error("Encryption block is invalid.");return P.getBytes()}function S(f,d,M){typeof d=="function"&&(M=d,d={}),d=d||{};var V={algorithm:{name:d.algorithm||"PRIMEINC",options:{workers:d.workers||2,workLoad:d.workLoad||100,workerScript:d.workerScript}}};"prng"in d&&(V.prng=d.prng),q();function q(){P(f.pBits,function(j,z){if(j)return M(j);if(f.p=z,f.q!==null)return L(j,f.q);P(f.qBits,L)})}function P(j,z){t.prime.generateProbablePrime(j,V,z)}function L(j,z){if(j)return M(j);if(f.q=z,f.p.compareTo(f.q)<0){var K=f.p;f.p=f.q,f.q=K}if(f.p.subtract(a.ONE).gcd(f.e).compareTo(a.ONE)!==0){f.p=null,q();return}if(f.q.subtract(a.ONE).gcd(f.e).compareTo(a.ONE)!==0){f.q=null,P(f.qBits,L);return}if(f.p1=f.p.subtract(a.ONE),f.q1=f.q.subtract(a.ONE),f.phi=f.p1.multiply(f.q1),f.phi.gcd(f.e).compareTo(a.ONE)!==0){f.p=f.q=null,q();return}if(f.n=f.p.multiply(f.q),f.n.bitLength()!==f.bits){f.q=null,P(f.qBits,L);return}var H=f.e.modInverse(f.phi);f.keys={privateKey:i.rsa.setPrivateKey(f.n,f.e,H,f.p,f.q,H.mod(f.p1),H.mod(f.q1),f.q.modInverse(f.p)),publicKey:i.rsa.setPublicKey(f.n,f.e)},M(null,f.keys)}}function l(f){var d=f.toString(16);d[0]>="8"&&(d="00"+d);var M=t.util.hexToBytes(d);return M.length>1&&(M.charCodeAt(0)===0&&(M.charCodeAt(1)&128)===0||M.charCodeAt(0)===255&&(M.charCodeAt(1)&128)===128)?M.substr(1):M}function C(f){return f<=100?27:f<=150?18:f<=200?15:f<=250?12:f<=300?9:f<=350?8:f<=400?7:f<=500?6:f<=600?5:f<=800?4:f<=1250?3:2}function b(f){return t.util.isNodejs&&typeof e[f]=="function"}function k(f){return typeof n.globalScope<"u"&&typeof n.globalScope.crypto=="object"&&typeof n.globalScope.crypto.subtle=="object"&&typeof n.globalScope.crypto.subtle[f]=="function"}function B(f){return typeof n.globalScope<"u"&&typeof n.globalScope.msCrypto=="object"&&typeof n.globalScope.msCrypto.subtle=="object"&&typeof n.globalScope.msCrypto.subtle[f]=="function"}function N(f){for(var d=t.util.hexToBytes(f.toString(16)),M=new Uint8Array(d.length),V=0;V"u")var a=t.jsbn.BigInteger;var e=t.asn1,r=t.pki=t.pki||{};Wa=r.pbe=t.pbe=t.pbe||{};var n=r.oids,i={name:"EncryptedPrivateKeyInfo",tagClass:e.Class.UNIVERSAL,type:e.Type.SEQUENCE,constructed:!0,value:[{name:"EncryptedPrivateKeyInfo.encryptionAlgorithm",tagClass:e.Class.UNIVERSAL,type:e.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:e.Class.UNIVERSAL,type:e.Type.OID,constructed:!1,capture:"encryptionOid"},{name:"AlgorithmIdentifier.parameters",tagClass:e.Class.UNIVERSAL,type:e.Type.SEQUENCE,constructed:!0,captureAsn1:"encryptionParams"}]},{name:"EncryptedPrivateKeyInfo.encryptedData",tagClass:e.Class.UNIVERSAL,type:e.Type.OCTETSTRING,constructed:!1,capture:"encryptedData"}]},u={name:"PBES2Algorithms",tagClass:e.Class.UNIVERSAL,type:e.Type.SEQUENCE,constructed:!0,value:[{name:"PBES2Algorithms.keyDerivationFunc",tagClass:e.Class.UNIVERSAL,type:e.Type.SEQUENCE,constructed:!0,value:[{name:"PBES2Algorithms.keyDerivationFunc.oid",tagClass:e.Class.UNIVERSAL,type:e.Type.OID,constructed:!1,capture:"kdfOid"},{name:"PBES2Algorithms.params",tagClass:e.Class.UNIVERSAL,type:e.Type.SEQUENCE,constructed:!0,value:[{name:"PBES2Algorithms.params.salt",tagClass:e.Class.UNIVERSAL,type:e.Type.OCTETSTRING,constructed:!1,capture:"kdfSalt"},{name:"PBES2Algorithms.params.iterationCount",tagClass:e.Class.UNIVERSAL,type:e.Type.INTEGER,constructed:!1,capture:"kdfIterationCount"},{name:"PBES2Algorithms.params.keyLength",tagClass:e.Class.UNIVERSAL,type:e.Type.INTEGER,constructed:!1,optional:!0,capture:"keyLength"},{name:"PBES2Algorithms.params.prf",tagClass:e.Class.UNIVERSAL,type:e.Type.SEQUENCE,constructed:!0,optional:!0,value:[{name:"PBES2Algorithms.params.prf.algorithm",tagClass:e.Class.UNIVERSAL,type:e.Type.OID,constructed:!1,capture:"prfOid"}]}]}]},{name:"PBES2Algorithms.encryptionScheme",tagClass:e.Class.UNIVERSAL,type:e.Type.SEQUENCE,constructed:!0,value:[{name:"PBES2Algorithms.encryptionScheme.oid",tagClass:e.Class.UNIVERSAL,type:e.Type.OID,constructed:!1,capture:"encOid"},{name:"PBES2Algorithms.encryptionScheme.iv",tagClass:e.Class.UNIVERSAL,type:e.Type.OCTETSTRING,constructed:!1,capture:"encIv"}]}]},o={name:"pkcs-12PbeParams",tagClass:e.Class.UNIVERSAL,type:e.Type.SEQUENCE,constructed:!0,value:[{name:"pkcs-12PbeParams.salt",tagClass:e.Class.UNIVERSAL,type:e.Type.OCTETSTRING,constructed:!1,capture:"salt"},{name:"pkcs-12PbeParams.iterations",tagClass:e.Class.UNIVERSAL,type:e.Type.INTEGER,constructed:!1,capture:"iterations"}]};r.encryptPrivateKeyInfo=function(g,s,p){p=p||{},p.saltSize=p.saltSize||8,p.count=p.count||2048,p.algorithm=p.algorithm||"aes128",p.prfAlgorithm=p.prfAlgorithm||"sha1";var m=t.random.getBytesSync(p.saltSize),S=p.count,l=e.integerToDer(S),C,b,k;if(p.algorithm.indexOf("aes")===0||p.algorithm==="des"){var B,N,f;switch(p.algorithm){case"aes128":C=16,B=16,N=n["aes128-CBC"],f=t.aes.createEncryptionCipher;break;case"aes192":C=24,B=16,N=n["aes192-CBC"],f=t.aes.createEncryptionCipher;break;case"aes256":C=32,B=16,N=n["aes256-CBC"],f=t.aes.createEncryptionCipher;break;case"des":C=8,B=8,N=n.desCBC,f=t.des.createEncryptionCipher;break;default:var d=new Error("Cannot encrypt private key. Unknown encryption algorithm.");throw d.algorithm=p.algorithm,d}var M="hmacWith"+p.prfAlgorithm.toUpperCase(),V=h(M),q=t.pkcs5.pbkdf2(s,m,S,C,V),P=t.random.getBytesSync(B),L=f(q);L.start(P),L.update(e.toDer(g)),L.finish(),k=L.output.getBytes();var j=E(m,l,C,M);b=e.create(e.Class.UNIVERSAL,e.Type.SEQUENCE,!0,[e.create(e.Class.UNIVERSAL,e.Type.OID,!1,e.oidToDer(n.pkcs5PBES2).getBytes()),e.create(e.Class.UNIVERSAL,e.Type.SEQUENCE,!0,[e.create(e.Class.UNIVERSAL,e.Type.SEQUENCE,!0,[e.create(e.Class.UNIVERSAL,e.Type.OID,!1,e.oidToDer(n.pkcs5PBKDF2).getBytes()),j]),e.create(e.Class.UNIVERSAL,e.Type.SEQUENCE,!0,[e.create(e.Class.UNIVERSAL,e.Type.OID,!1,e.oidToDer(N).getBytes()),e.create(e.Class.UNIVERSAL,e.Type.OCTETSTRING,!1,P)])])])}else if(p.algorithm==="3des"){C=24;var z=new t.util.ByteBuffer(m),q=r.pbe.generatePkcs12Key(s,z,1,S,C),P=r.pbe.generatePkcs12Key(s,z,2,S,C),L=t.des.createEncryptionCipher(q);L.start(P),L.update(e.toDer(g)),L.finish(),k=L.output.getBytes(),b=e.create(e.Class.UNIVERSAL,e.Type.SEQUENCE,!0,[e.create(e.Class.UNIVERSAL,e.Type.OID,!1,e.oidToDer(n["pbeWithSHAAnd3-KeyTripleDES-CBC"]).getBytes()),e.create(e.Class.UNIVERSAL,e.Type.SEQUENCE,!0,[e.create(e.Class.UNIVERSAL,e.Type.OCTETSTRING,!1,m),e.create(e.Class.UNIVERSAL,e.Type.INTEGER,!1,l.getBytes())])])}else{var d=new Error("Cannot encrypt private key. Unknown encryption algorithm.");throw d.algorithm=p.algorithm,d}var K=e.create(e.Class.UNIVERSAL,e.Type.SEQUENCE,!0,[b,e.create(e.Class.UNIVERSAL,e.Type.OCTETSTRING,!1,k)]);return K},r.decryptPrivateKeyInfo=function(g,s){var p=null,m={},S=[];if(!e.validate(g,i,m,S)){var l=new Error("Cannot read encrypted private key. ASN.1 object is not a supported EncryptedPrivateKeyInfo.");throw l.errors=S,l}var C=e.derToOid(m.encryptionOid),b=r.pbe.getCipher(C,m.encryptionParams,s),k=t.util.createBuffer(m.encryptedData);return b.update(k),b.finish()&&(p=e.fromDer(b.output)),p},r.encryptedPrivateKeyToPem=function(g,s){var p={type:"ENCRYPTED PRIVATE KEY",body:e.toDer(g).getBytes()};return t.pem.encode(p,{maxline:s})},r.encryptedPrivateKeyFromPem=function(g){var s=t.pem.decode(g)[0];if(s.type!=="ENCRYPTED PRIVATE KEY"){var p=new Error('Could not convert encrypted private key from PEM; PEM header type is "ENCRYPTED PRIVATE KEY".');throw p.headerType=s.type,p}if(s.procType&&s.procType.type==="ENCRYPTED")throw new Error("Could not convert encrypted private key from PEM; PEM is encrypted.");return e.fromDer(s.body)},r.encryptRsaPrivateKey=function(g,s,p){if(p=p||{},!p.legacy){var m=r.wrapRsaPrivateKey(r.privateKeyToAsn1(g));return m=r.encryptPrivateKeyInfo(m,s,p),r.encryptedPrivateKeyToPem(m)}var S,l,C,b;switch(p.algorithm){case"aes128":S="AES-128-CBC",C=16,l=t.random.getBytesSync(16),b=t.aes.createEncryptionCipher;break;case"aes192":S="AES-192-CBC",C=24,l=t.random.getBytesSync(16),b=t.aes.createEncryptionCipher;break;case"aes256":S="AES-256-CBC",C=32,l=t.random.getBytesSync(16),b=t.aes.createEncryptionCipher;break;case"3des":S="DES-EDE3-CBC",C=24,l=t.random.getBytesSync(8),b=t.des.createEncryptionCipher;break;case"des":S="DES-CBC",C=8,l=t.random.getBytesSync(8),b=t.des.createEncryptionCipher;break;default:var k=new Error('Could not encrypt RSA private key; unsupported encryption algorithm "'+p.algorithm+'".');throw k.algorithm=p.algorithm,k}var B=t.pbe.opensslDeriveBytes(s,l.substr(0,8),C),N=b(B);N.start(l),N.update(e.toDer(r.privateKeyToAsn1(g))),N.finish();var f={type:"RSA PRIVATE KEY",procType:{version:"4",type:"ENCRYPTED"},dekInfo:{algorithm:S,parameters:t.util.bytesToHex(l).toUpperCase()},body:N.output.getBytes()};return t.pem.encode(f)},r.decryptRsaPrivateKey=function(g,s){var p=null,m=t.pem.decode(g)[0];if(m.type!=="ENCRYPTED PRIVATE KEY"&&m.type!=="PRIVATE KEY"&&m.type!=="RSA PRIVATE KEY"){var S=new Error('Could not convert private key from PEM; PEM header type is not "ENCRYPTED PRIVATE KEY", "PRIVATE KEY", or "RSA PRIVATE KEY".');throw S.headerType=S,S}if(m.procType&&m.procType.type==="ENCRYPTED"){var l,C;switch(m.dekInfo.algorithm){case"DES-CBC":l=8,C=t.des.createDecryptionCipher;break;case"DES-EDE3-CBC":l=24,C=t.des.createDecryptionCipher;break;case"AES-128-CBC":l=16,C=t.aes.createDecryptionCipher;break;case"AES-192-CBC":l=24,C=t.aes.createDecryptionCipher;break;case"AES-256-CBC":l=32,C=t.aes.createDecryptionCipher;break;case"RC2-40-CBC":l=5,C=function(f){return t.rc2.createDecryptionCipher(f,40)};break;case"RC2-64-CBC":l=8,C=function(f){return t.rc2.createDecryptionCipher(f,64)};break;case"RC2-128-CBC":l=16,C=function(f){return t.rc2.createDecryptionCipher(f,128)};break;default:var S=new Error('Could not decrypt private key; unsupported encryption algorithm "'+m.dekInfo.algorithm+'".');throw S.algorithm=m.dekInfo.algorithm,S}var b=t.util.hexToBytes(m.dekInfo.parameters),k=t.pbe.opensslDeriveBytes(s,b.substr(0,8),l),B=C(k);if(B.start(b),B.update(t.util.createBuffer(m.body)),B.finish())p=B.output.getBytes();else return p}else p=m.body;return m.type==="ENCRYPTED PRIVATE KEY"?p=r.decryptPrivateKeyInfo(e.fromDer(p),s):p=e.fromDer(p),p!==null&&(p=r.privateKeyFromAsn1(p)),p},r.pbe.generatePkcs12Key=function(g,s,p,m,S,l){var C,b;if(typeof l>"u"||l===null){if(!("sha1"in t.md))throw new Error('"sha1" hash algorithm unavailable.');l=t.md.sha1.create()}var k=l.digestLength,B=l.blockLength,N=new t.util.ByteBuffer,f=new t.util.ByteBuffer;if(g!=null){for(b=0;b=0;b--)ee=ee>>8,ee+=ue.at(b)+Se.at(b),Se.setAt(b,ee&255);pe.putBuffer(Se)}z=pe,N.putBuffer(Z)}return N.truncate(N.length()-S),N},r.pbe.getCipher=function(g,s,p){switch(g){case r.oids.pkcs5PBES2:return r.pbe.getCipherForPBES2(g,s,p);case r.oids["pbeWithSHAAnd3-KeyTripleDES-CBC"]:case r.oids["pbewithSHAAnd40BitRC2-CBC"]:return r.pbe.getCipherForPKCS12PBE(g,s,p);default:var m=new Error("Cannot read encrypted PBE data block. Unsupported OID.");throw m.oid=g,m.supportedOids=["pkcs5PBES2","pbeWithSHAAnd3-KeyTripleDES-CBC","pbewithSHAAnd40BitRC2-CBC"],m}},r.pbe.getCipherForPBES2=function(g,s,p){var m={},S=[];if(!e.validate(s,u,m,S)){var l=new Error("Cannot read password-based-encryption algorithm parameters. ASN.1 object is not a supported EncryptedPrivateKeyInfo.");throw l.errors=S,l}if(g=e.derToOid(m.kdfOid),g!==r.oids.pkcs5PBKDF2){var l=new Error("Cannot read encrypted private key. Unsupported key derivation function OID.");throw l.oid=g,l.supportedOids=["pkcs5PBKDF2"],l}if(g=e.derToOid(m.encOid),g!==r.oids["aes128-CBC"]&&g!==r.oids["aes192-CBC"]&&g!==r.oids["aes256-CBC"]&&g!==r.oids["des-EDE3-CBC"]&&g!==r.oids.desCBC){var l=new Error("Cannot read encrypted private key. Unsupported encryption scheme OID.");throw l.oid=g,l.supportedOids=["aes128-CBC","aes192-CBC","aes256-CBC","des-EDE3-CBC","desCBC"],l}var C=m.kdfSalt,b=t.util.createBuffer(m.kdfIterationCount);b=b.getInt(b.length()<<3);var k,B;switch(r.oids[g]){case"aes128-CBC":k=16,B=t.aes.createDecryptionCipher;break;case"aes192-CBC":k=24,B=t.aes.createDecryptionCipher;break;case"aes256-CBC":k=32,B=t.aes.createDecryptionCipher;break;case"des-EDE3-CBC":k=24,B=t.des.createDecryptionCipher;break;case"desCBC":k=8,B=t.des.createDecryptionCipher;break}var N=c(m.prfOid),f=t.pkcs5.pbkdf2(p,C,b,k,N),d=m.encIv,M=B(f);return M.start(d),M},r.pbe.getCipherForPKCS12PBE=function(g,s,p){var m={},S=[];if(!e.validate(s,o,m,S)){var l=new Error("Cannot read password-based-encryption algorithm parameters. ASN.1 object is not a supported EncryptedPrivateKeyInfo.");throw l.errors=S,l}var C=t.util.createBuffer(m.salt),b=t.util.createBuffer(m.iterations);b=b.getInt(b.length()<<3);var k,B,N;switch(g){case r.oids["pbeWithSHAAnd3-KeyTripleDES-CBC"]:k=24,B=8,N=t.des.startDecrypting;break;case r.oids["pbewithSHAAnd40BitRC2-CBC"]:k=5,B=8,N=function(q,P){var L=t.rc2.createDecryptionCipher(q,40);return L.start(P,null),L};break;default:var l=new Error("Cannot read PKCS #12 PBE data block. Unsupported OID.");throw l.oid=g,l}var f=c(m.prfOid),d=r.pbe.generatePkcs12Key(p,C,1,b,k,f);f.start();var M=r.pbe.generatePkcs12Key(p,C,2,b,B,f);return N(d,M)},r.pbe.opensslDeriveBytes=function(g,s,p,m){if(typeof m>"u"||m===null){if(!("md5"in t.md))throw new Error('"md5" hash algorithm unavailable.');m=t.md.md5.create()}s===null&&(s="");for(var S=[v(m,g+s)],l=16,C=1;l>8*p-s&255;return f=String.fromCharCode(f.charCodeAt(0)&~d)+f.substr(1),f+C+"¼"},c.verify=function(h,E,g){var s,p=g-1,m=Math.ceil(p/8);if(E=E.substr(-m),m>8*m-p&255;if((l.charCodeAt(0)&b)!==0)throw new Error("Bits beyond keysize not zero as expected.");var k=n.generate(C,S),B="";for(s=0;s2)throw new Error("Cannot read notBefore/notAfter validity times; more than two times were provided in the certificate.");if(j.length<2)throw new Error("Cannot read notBefore/notAfter validity times; they were not provided as either UTCTime or GeneralizedTime.");if(P.validity.notBefore=j[0],P.validity.notAfter=j[1],P.tbsCertificate=d.tbsCertificate,f){P.md=g({signatureOid:P.signatureOid,type:"certificate"});var z=a.toDer(P.tbsCertificate);P.md.update(z.getBytes())}var K=t.md.sha1.create(),H=a.toDer(d.certIssuer);K.update(H.getBytes()),P.issuer.getField=function(ue){return h(P.issuer,ue)},P.issuer.addField=function(ue){m([ue]),P.issuer.attributes.push(ue)},P.issuer.attributes=e.RDNAttributesAsArray(d.certIssuer),d.certIssuerUniqueId&&(P.issuer.uniqueId=d.certIssuerUniqueId),P.issuer.hash=K.digest().toHex();var Z=t.md.sha1.create(),te=a.toDer(d.certSubject);return Z.update(te.getBytes()),P.subject.getField=function(ue){return h(P.subject,ue)},P.subject.addField=function(ue){m([ue]),P.subject.attributes.push(ue)},P.subject.attributes=e.RDNAttributesAsArray(d.certSubject),d.certSubjectUniqueId&&(P.subject.uniqueId=d.certSubjectUniqueId),P.subject.hash=Z.digest().toHex(),d.certExtensions?P.extensions=e.certificateExtensionsFromAsn1(d.certExtensions):P.extensions=[],P.publicKey=e.publicKeyFromAsn1(d.subjectPublicKeyInfo),P},e.certificateExtensionsFromAsn1=function(N){for(var f=[],d=0;d1&&(M=d.value.charCodeAt(1),V=d.value.length>2?d.value.charCodeAt(2):0),f.digitalSignature=(M&128)===128,f.nonRepudiation=(M&64)===64,f.keyEncipherment=(M&32)===32,f.dataEncipherment=(M&16)===16,f.keyAgreement=(M&8)===8,f.keyCertSign=(M&4)===4,f.cRLSign=(M&2)===2,f.encipherOnly=(M&1)===1,f.decipherOnly=(V&128)===128}else if(f.name==="basicConstraints"){var d=a.fromDer(f.value);d.value.length>0&&d.value[0].type===a.Type.BOOLEAN?f.cA=d.value[0].value.charCodeAt(0)!==0:f.cA=!1;var q=null;d.value.length>0&&d.value[0].type===a.Type.INTEGER?q=d.value[0].value:d.value.length>1&&(q=d.value[1].value),q!==null&&(f.pathLenConstraint=a.derToInteger(q))}else if(f.name==="extKeyUsage")for(var d=a.fromDer(f.value),P=0;P1&&(M=d.value.charCodeAt(1)),f.client=(M&128)===128,f.server=(M&64)===64,f.email=(M&32)===32,f.objsign=(M&16)===16,f.reserved=(M&8)===8,f.sslCA=(M&4)===4,f.emailCA=(M&2)===2,f.objCA=(M&1)===1}else if(f.name==="subjectAltName"||f.name==="issuerAltName"){f.altNames=[];for(var j,d=a.fromDer(f.value),z=0;z"u"&&(f.type&&f.type in e.oids?f.name=e.oids[f.type]:f.shortName&&f.shortName in n&&(f.name=e.oids[n[f.shortName]])),typeof f.type>"u")if(f.name&&f.name in e.oids)f.type=e.oids[f.name];else{var M=new Error("Attribute type not specified.");throw M.attribute=f,M}if(typeof f.shortName>"u"&&f.name&&f.name in n&&(f.shortName=n[f.name]),f.type===r.extensionRequest&&(f.valueConstructed=!0,f.valueTagClass=a.Type.SEQUENCE,!f.value&&f.extensions)){f.value=[];for(var V=0;V"u"){var M=new Error("Attribute value not specified.");throw M.attribute=f,M}}}function S(N,f){if(f=f||{},typeof N.name>"u"&&N.id&&N.id in e.oids&&(N.name=e.oids[N.id]),typeof N.id>"u")if(N.name&&N.name in e.oids)N.id=e.oids[N.name];else{var d=new Error("Extension ID not specified.");throw d.extension=N,d}if(typeof N.value<"u")return N;if(N.name==="keyUsage"){var M=0,V=0,q=0;N.digitalSignature&&(V|=128,M=7),N.nonRepudiation&&(V|=64,M=6),N.keyEncipherment&&(V|=32,M=5),N.dataEncipherment&&(V|=16,M=4),N.keyAgreement&&(V|=8,M=3),N.keyCertSign&&(V|=4,M=2),N.cRLSign&&(V|=2,M=1),N.encipherOnly&&(V|=1,M=0),N.decipherOnly&&(q|=128,M=7);var P=String.fromCharCode(M);q!==0?P+=String.fromCharCode(V)+String.fromCharCode(q):V!==0&&(P+=String.fromCharCode(V)),N.value=a.create(a.Class.UNIVERSAL,a.Type.BITSTRING,!1,P)}else if(N.name==="basicConstraints")N.value=a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,!0,[]),N.cA&&N.value.value.push(a.create(a.Class.UNIVERSAL,a.Type.BOOLEAN,!1,"ÿ")),"pathLenConstraint"in N&&N.value.value.push(a.create(a.Class.UNIVERSAL,a.Type.INTEGER,!1,a.integerToDer(N.pathLenConstraint).getBytes()));else if(N.name==="extKeyUsage"){N.value=a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,!0,[]);var L=N.value.value;for(var j in N)N[j]===!0&&(j in r?L.push(a.create(a.Class.UNIVERSAL,a.Type.OID,!1,a.oidToDer(r[j]).getBytes())):j.indexOf(".")!==-1&&L.push(a.create(a.Class.UNIVERSAL,a.Type.OID,!1,a.oidToDer(j).getBytes())))}else if(N.name==="nsCertType"){var M=0,V=0;N.client&&(V|=128,M=7),N.server&&(V|=64,M=6),N.email&&(V|=32,M=5),N.objsign&&(V|=16,M=4),N.reserved&&(V|=8,M=3),N.sslCA&&(V|=4,M=2),N.emailCA&&(V|=2,M=1),N.objCA&&(V|=1,M=0);var P=String.fromCharCode(M);V!==0&&(P+=String.fromCharCode(V)),N.value=a.create(a.Class.UNIVERSAL,a.Type.BITSTRING,!1,P)}else if(N.name==="subjectAltName"||N.name==="issuerAltName"){N.value=a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,!0,[]);for(var z,K=0;K128)throw new Error('Invalid "nsComment" content.');N.value=a.create(a.Class.UNIVERSAL,a.Type.IA5STRING,!1,N.comment)}else if(N.name==="subjectKeyIdentifier"&&f.cert){var H=f.cert.generateSubjectKeyIdentifier();N.subjectKeyIdentifier=H.toHex(),N.value=a.create(a.Class.UNIVERSAL,a.Type.OCTETSTRING,!1,H.getBytes())}else if(N.name==="authorityKeyIdentifier"&&f.cert){N.value=a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,!0,[]);var L=N.value.value;if(N.keyIdentifier){var Z=N.keyIdentifier===!0?f.cert.generateSubjectKeyIdentifier().getBytes():N.keyIdentifier;L.push(a.create(a.Class.CONTEXT_SPECIFIC,0,!1,Z))}if(N.authorityCertIssuer){var te=[a.create(a.Class.CONTEXT_SPECIFIC,4,!0,[p(N.authorityCertIssuer===!0?f.cert.issuer:N.authorityCertIssuer)])];L.push(a.create(a.Class.CONTEXT_SPECIFIC,1,!0,te))}if(N.serialNumber){var ue=t.util.hexToBytes(N.serialNumber===!0?f.cert.serialNumber:N.serialNumber);L.push(a.create(a.Class.CONTEXT_SPECIFIC,2,!1,ue))}}else if(N.name==="cRLDistributionPoints"){N.value=a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,!0,[]);for(var L=N.value.value,de=a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,!0,[]),pe=a.create(a.Class.CONTEXT_SPECIFIC,0,!0,[]),z,K=0;K"u"){var d=new Error("Extension value not specified.");throw d.extension=N,d}return N}function l(N,f){switch(N){case r["RSASSA-PSS"]:var d=[];return f.hash.algorithmOid!==void 0&&d.push(a.create(a.Class.CONTEXT_SPECIFIC,0,!0,[a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,!0,[a.create(a.Class.UNIVERSAL,a.Type.OID,!1,a.oidToDer(f.hash.algorithmOid).getBytes()),a.create(a.Class.UNIVERSAL,a.Type.NULL,!1,"")])])),f.mgf.algorithmOid!==void 0&&d.push(a.create(a.Class.CONTEXT_SPECIFIC,1,!0,[a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,!0,[a.create(a.Class.UNIVERSAL,a.Type.OID,!1,a.oidToDer(f.mgf.algorithmOid).getBytes()),a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,!0,[a.create(a.Class.UNIVERSAL,a.Type.OID,!1,a.oidToDer(f.mgf.hash.algorithmOid).getBytes()),a.create(a.Class.UNIVERSAL,a.Type.NULL,!1,"")])])])),f.saltLength!==void 0&&d.push(a.create(a.Class.CONTEXT_SPECIFIC,2,!0,[a.create(a.Class.UNIVERSAL,a.Type.INTEGER,!1,a.integerToDer(f.saltLength).getBytes())])),a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,!0,d);default:return a.create(a.Class.UNIVERSAL,a.Type.NULL,!1,"")}}function C(N){var f=a.create(a.Class.CONTEXT_SPECIFIC,0,!0,[]);if(N.attributes.length===0)return f;for(var d=N.attributes,M=0;M=b&&N0&&M.value.push(e.certificateExtensionsToAsn1(N.extensions)),M},e.getCertificationRequestInfo=function(N){var f=a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,!0,[a.create(a.Class.UNIVERSAL,a.Type.INTEGER,!1,a.integerToDer(N.version).getBytes()),p(N.subject),e.publicKeyToAsn1(N.publicKey),C(N)]);return f},e.distinguishedNameToAsn1=function(N){return p(N)},e.certificateToAsn1=function(N){var f=N.tbsCertificate||e.getTBSCertificate(N);return a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,!0,[f,a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,!0,[a.create(a.Class.UNIVERSAL,a.Type.OID,!1,a.oidToDer(N.signatureOid).getBytes()),l(N.signatureOid,N.signatureParameters)]),a.create(a.Class.UNIVERSAL,a.Type.BITSTRING,!1,"\0"+N.signature)])},e.certificateExtensionsToAsn1=function(N){var f=a.create(a.Class.CONTEXT_SPECIFIC,3,!0,[]),d=a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,!0,[]);f.value.push(d);for(var M=0;M"u"&&(V=new Date);var q=!0,P=null,L=0;do{var j=f.shift(),z=null,K=!1;if(V&&(Vj.validity.notAfter)&&(P={message:"Certificate is not valid yet or has expired.",error:e.certificateError.certificate_expired,notBefore:j.validity.notBefore,notAfter:j.validity.notAfter,now:V}),P===null){if(z=f[0]||N.getIssuer(j),z===null&&j.isIssuer(j)&&(K=!0,z=j),z){var H=z;t.util.isArray(H)||(H=[H]);for(var Z=!1;!Z&&H.length>0;){z=H.shift();try{Z=z.verify(j)}catch{}}Z||(P={message:"Certificate signature is invalid.",error:e.certificateError.bad_certificate})}P===null&&(!z||K)&&!N.hasCertificate(j)&&(P={message:"Certificate is not trusted.",error:e.certificateError.unknown_ca})}if(P===null&&z&&!j.isIssuer(z)&&(P={message:"Certificate issuer is invalid.",error:e.certificateError.bad_certificate}),P===null)for(var te={keyUsage:!0,basicConstraints:!0},ue=0;P===null&&uepe.pathLenConstraint&&(P={message:"Certificate basicConstraints pathLenConstraint violated.",error:e.certificateError.bad_certificate})}}var fe=P===null?!0:P.error,re=d.verify?d.verify(fe,L,M):fe;if(re===!0)P=null;else throw fe===!0&&(P={message:"The application rejected the certificate.",error:e.certificateError.bad_certificate}),(re||re===0)&&(typeof re=="object"&&!t.util.isArray(re)?(re.message&&(P.message=re.message),re.error&&(P.error=re.error)):typeof re=="string"&&(P.error=re)),P;q=!1,++L}while(f.length>0);return!0},Ya.exports}var Sv;function $I(){if(Sv)return Ha.exports;Sv=1;var t=me();Nt(),Fr(),zt(),GI(),zI(),Et(),da(),jr(),Ne(),Ff();var a=t.asn1,e=t.pki,r=Ha.exports=t.pkcs12=t.pkcs12||{},n={name:"ContentInfo",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:!0,value:[{name:"ContentInfo.contentType",tagClass:a.Class.UNIVERSAL,type:a.Type.OID,constructed:!1,capture:"contentType"},{name:"ContentInfo.content",tagClass:a.Class.CONTEXT_SPECIFIC,constructed:!0,captureAsn1:"content"}]},i={name:"PFX",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:!0,value:[{name:"PFX.version",tagClass:a.Class.UNIVERSAL,type:a.Type.INTEGER,constructed:!1,capture:"version"},n,{name:"PFX.macData",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:!0,optional:!0,captureAsn1:"mac",value:[{name:"PFX.macData.mac",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:!0,value:[{name:"PFX.macData.mac.digestAlgorithm",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:!0,value:[{name:"PFX.macData.mac.digestAlgorithm.algorithm",tagClass:a.Class.UNIVERSAL,type:a.Type.OID,constructed:!1,capture:"macAlgorithm"},{name:"PFX.macData.mac.digestAlgorithm.parameters",tagClass:a.Class.UNIVERSAL,captureAsn1:"macAlgorithmParameters"}]},{name:"PFX.macData.mac.digest",tagClass:a.Class.UNIVERSAL,type:a.Type.OCTETSTRING,constructed:!1,capture:"macDigest"}]},{name:"PFX.macData.macSalt",tagClass:a.Class.UNIVERSAL,type:a.Type.OCTETSTRING,constructed:!1,capture:"macSalt"},{name:"PFX.macData.iterations",tagClass:a.Class.UNIVERSAL,type:a.Type.INTEGER,constructed:!1,optional:!0,capture:"macIterations"}]}]},u={name:"SafeBag",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:!0,value:[{name:"SafeBag.bagId",tagClass:a.Class.UNIVERSAL,type:a.Type.OID,constructed:!1,capture:"bagId"},{name:"SafeBag.bagValue",tagClass:a.Class.CONTEXT_SPECIFIC,constructed:!0,captureAsn1:"bagValue"},{name:"SafeBag.bagAttributes",tagClass:a.Class.UNIVERSAL,type:a.Type.SET,constructed:!0,optional:!0,capture:"bagAttributes"}]},o={name:"Attribute",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:!0,value:[{name:"Attribute.attrId",tagClass:a.Class.UNIVERSAL,type:a.Type.OID,constructed:!1,capture:"oid"},{name:"Attribute.attrValues",tagClass:a.Class.UNIVERSAL,type:a.Type.SET,constructed:!0,capture:"values"}]},v={name:"CertBag",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:!0,value:[{name:"CertBag.certId",tagClass:a.Class.UNIVERSAL,type:a.Type.OID,constructed:!1,capture:"certId"},{name:"CertBag.certValue",tagClass:a.Class.CONTEXT_SPECIFIC,constructed:!0,value:[{name:"CertBag.certValue[0]",tagClass:a.Class.UNIVERSAL,type:a.Class.OCTETSTRING,constructed:!1,capture:"cert"}]}]};function c(m,S,l,C){for(var b=[],k=0;k=0&&b.push(N)}}return b}r.pkcs12FromAsn1=function(m,S,l){typeof S=="string"?(l=S,S=!0):S===void 0&&(S=!0);var C={},b=[];if(!a.validate(m,i,C,b)){var k=new Error("Cannot read PKCS#12 PFX. ASN.1 object is not an PKCS#12 PFX.");throw k.errors=k,k}var B={version:C.version.charCodeAt(0),safeContents:[],getBags:function(z){var K={},H;return"localKeyId"in z?H=z.localKeyId:"localKeyIdHex"in z&&(H=t.util.hexToBytes(z.localKeyIdHex)),H===void 0&&!("friendlyName"in z)&&"bagType"in z&&(K[z.bagType]=c(B.safeContents,null,null,z.bagType)),H!==void 0&&(K.localKeyId=c(B.safeContents,"localKeyId",H,z.bagType)),"friendlyName"in z&&(K.friendlyName=c(B.safeContents,"friendlyName",z.friendlyName,z.bagType)),K},getBagsByFriendlyName:function(z,K){return c(B.safeContents,"friendlyName",z,K)},getBagsByLocalKeyId:function(z,K){return c(B.safeContents,"localKeyId",z,K)}};if(C.version.charCodeAt(0)!==3){var k=new Error("PKCS#12 PFX of version other than 3 not supported.");throw k.version=C.version.charCodeAt(0),k}if(a.derToOid(C.contentType)!==e.oids.data){var k=new Error("Only PKCS#12 PFX in password integrity mode supported.");throw k.oid=a.derToOid(C.contentType),k}var N=C.content.value[0];if(N.tagClass!==a.Class.UNIVERSAL||N.type!==a.Type.OCTETSTRING)throw new Error("PKCS#12 authSafe content data is not an OCTET STRING.");if(N=h(N),C.mac){var f=null,d=0,M=a.derToOid(C.macAlgorithm);switch(M){case e.oids.sha1:f=t.md.sha1.create(),d=20;break;case e.oids.sha256:f=t.md.sha256.create(),d=32;break;case e.oids.sha384:f=t.md.sha384.create(),d=48;break;case e.oids.sha512:f=t.md.sha512.create(),d=64;break;case e.oids.md5:f=t.md.md5.create(),d=16;break}if(f===null)throw new Error("PKCS#12 uses unsupported MAC algorithm: "+M);var V=new t.util.ByteBuffer(C.macSalt),q="macIterations"in C?parseInt(t.util.bytesToHex(C.macIterations),16):1,P=r.generateKey(l,V,3,q,d,f),L=t.hmac.create();L.start(f,P),L.update(N.value);var j=L.getMac();if(j.getBytes()!==C.macDigest)throw new Error("PKCS#12 MAC could not be verified. Invalid password?")}return E(B,N.value,S,l),B};function h(m){if(m.composed||m.constructed){for(var S=t.util.createBuffer(),l=0;l0&&(k=a.create(a.Class.UNIVERSAL,a.Type.SET,!0,f));var d=[],M=[];S!==null&&(t.util.isArray(S)?M=S:M=[S]);for(var V=[],q=0;q0){var z=a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,!0,V),K=a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,!0,[a.create(a.Class.UNIVERSAL,a.Type.OID,!1,a.oidToDer(e.oids.data).getBytes()),a.create(a.Class.CONTEXT_SPECIFIC,0,!0,[a.create(a.Class.UNIVERSAL,a.Type.OCTETSTRING,!1,a.toDer(z).getBytes())])]);d.push(K)}var H=null;if(m!==null){var Z=e.wrapRsaPrivateKey(e.privateKeyToAsn1(m));l===null?H=a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,!0,[a.create(a.Class.UNIVERSAL,a.Type.OID,!1,a.oidToDer(e.oids.keyBag).getBytes()),a.create(a.Class.CONTEXT_SPECIFIC,0,!0,[Z]),k]):H=a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,!0,[a.create(a.Class.UNIVERSAL,a.Type.OID,!1,a.oidToDer(e.oids.pkcs8ShroudedKeyBag).getBytes()),a.create(a.Class.CONTEXT_SPECIFIC,0,!0,[e.encryptPrivateKeyInfo(Z,l,C)]),k]);var te=a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,!0,[H]),ue=a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,!0,[a.create(a.Class.UNIVERSAL,a.Type.OID,!1,a.oidToDer(e.oids.data).getBytes()),a.create(a.Class.CONTEXT_SPECIFIC,0,!0,[a.create(a.Class.UNIVERSAL,a.Type.OCTETSTRING,!1,a.toDer(te).getBytes())])]);d.push(ue)}var de=a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,!0,d),pe;if(C.useMac){var N=t.md.sha1.create(),Se=new t.util.ByteBuffer(t.random.getBytes(C.saltSize)),ee=C.count,m=r.generateKey(l,Se,3,ee,20),fe=t.hmac.create();fe.start(N,m),fe.update(a.toDer(de).getBytes());var re=fe.getMac();pe=a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,!0,[a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,!0,[a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,!0,[a.create(a.Class.UNIVERSAL,a.Type.OID,!1,a.oidToDer(e.oids.sha1).getBytes()),a.create(a.Class.UNIVERSAL,a.Type.NULL,!1,"")]),a.create(a.Class.UNIVERSAL,a.Type.OCTETSTRING,!1,re.getBytes())]),a.create(a.Class.UNIVERSAL,a.Type.OCTETSTRING,!1,Se.getBytes()),a.create(a.Class.UNIVERSAL,a.Type.INTEGER,!1,a.integerToDer(ee).getBytes())])}return a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,!0,[a.create(a.Class.UNIVERSAL,a.Type.INTEGER,!1,a.integerToDer(3).getBytes()),a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,!0,[a.create(a.Class.UNIVERSAL,a.Type.OID,!1,a.oidToDer(e.oids.data).getBytes()),a.create(a.Class.CONTEXT_SPECIFIC,0,!0,[a.create(a.Class.UNIVERSAL,a.Type.OCTETSTRING,!1,a.toDer(de).getBytes())])]),pe])},r.generateKey=t.pbe.generatePkcs12Key,Ha.exports}var Cv;function WI(){if(Cv)return Oa.exports;Cv=1;var t=me();Nt(),zt(),zI(),rr(),Lf(),$I(),qf(),da(),Ne(),Ff();var a=t.asn1,e=Oa.exports=t.pki=t.pki||{};return e.pemToDer=function(r){var n=t.pem.decode(r)[0];if(n.procType&&n.procType.type==="ENCRYPTED")throw new Error("Could not convert PEM to DER; PEM is encrypted.");return t.util.createBuffer(n.body)},e.privateKeyFromPem=function(r){var n=t.pem.decode(r)[0];if(n.type!=="PRIVATE KEY"&&n.type!=="RSA PRIVATE KEY"){var i=new Error('Could not convert private key from PEM; PEM header type is not "PRIVATE KEY" or "RSA PRIVATE KEY".');throw i.headerType=n.type,i}if(n.procType&&n.procType.type==="ENCRYPTED")throw new Error("Could not convert private key from PEM; PEM is encrypted.");var u=a.fromDer(n.body);return e.privateKeyFromAsn1(u)},e.privateKeyToPem=function(r,n){var i={type:"RSA PRIVATE KEY",body:a.toDer(e.privateKeyToAsn1(r)).getBytes()};return t.pem.encode(i,{maxline:n})},e.privateKeyInfoToPem=function(r,n){var i={type:"PRIVATE KEY",body:a.toDer(r).getBytes()};return t.pem.encode(i,{maxline:n})},Oa.exports}var en,bv;function HI(){if(bv)return en;bv=1;var t=me();Nt(),Fr(),Df(),rr(),WI(),Et(),jr(),Ne();var a=function(y,w,R,_){var U=t.util.createBuffer(),x=y.length>>1,F=x+(y.length&1),Y=y.substr(0,F),ne=y.substr(x,F),se=t.util.createBuffer(),W=t.hmac.create();R=w+R;var ie=Math.ceil(_/16),ce=Math.ceil(_/20);W.start("MD5",Y);var _e=t.util.createBuffer();se.putBytes(R);for(var he=0;he0&&(o.queue(y,o.createAlert(y,{level:o.Alert.Level.warning,description:o.Alert.Description.no_renegotiation})),o.flush(y)),y.process()},o.parseHelloMessage=function(y,w,R){var _=null,U=y.entity===o.ConnectionEnd.client;if(R<38)y.error(y,{message:U?"Invalid ServerHello message. Message too short.":"Invalid ClientHello message. Message too short.",send:!0,alert:{level:o.Alert.Level.fatal,description:o.Alert.Description.illegal_parameter}});else{var x=w.fragment,F=x.length();if(_={version:{major:x.getByte(),minor:x.getByte()},random:t.util.createBuffer(x.getBytes(32)),session_id:i(x,1),extensions:[]},U?(_.cipher_suite=x.getBytes(2),_.compression_method=x.getByte()):(_.cipher_suites=i(x,2),_.compression_methods=i(x,1)),F=R-(F-x.length()),F>0){for(var Y=i(x,2);Y.length()>0;)_.extensions.push({type:[Y.getByte(),Y.getByte()],data:i(Y,2)});if(!U)for(var ne=0;ne<_.extensions.length;++ne){var se=_.extensions[ne];if(se.type[0]===0&&se.type[1]===0)for(var W=i(se.data,2);W.length()>0;){var ie=W.getByte();if(ie!==0)break;y.session.extensions.server_name.serverNameList.push(i(W,2).getBytes())}}}if(y.session.version&&(_.version.major!==y.session.version.major||_.version.minor!==y.session.version.minor))return y.error(y,{message:"TLS version change is disallowed during renegotiation.",send:!0,alert:{level:o.Alert.Level.fatal,description:o.Alert.Description.protocol_version}});if(U)y.session.cipherSuite=o.getCipherSuite(_.cipher_suite);else for(var ce=t.util.createBuffer(_.cipher_suites.bytes());ce.length()>0&&(y.session.cipherSuite=o.getCipherSuite(ce.getBytes(2)),y.session.cipherSuite===null););if(y.session.cipherSuite===null)return y.error(y,{message:"No cipher suites in common.",send:!0,alert:{level:o.Alert.Level.fatal,description:o.Alert.Description.handshake_failure},cipherSuite:t.util.bytesToHex(_.cipher_suite)});U?y.session.compressionMethod=_.compression_method:y.session.compressionMethod=o.CompressionMethod.none}return _},o.createSecurityParameters=function(y,w){var R=y.entity===o.ConnectionEnd.client,_=w.random.bytes(),U=R?y.session.sp.client_random:_,x=R?_:o.createRandom().getBytes();y.session.sp={entity:y.entity,prf_algorithm:o.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:y.session.compressionMethod,pre_master_secret:null,master_secret:null,client_random:U,server_random:x}},o.handleServerHello=function(y,w,R){var _=o.parseHelloMessage(y,w,R);if(!y.fail){if(_.version.minor<=y.version.minor)y.version.minor=_.version.minor;else return y.error(y,{message:"Incompatible TLS version.",send:!0,alert:{level:o.Alert.Level.fatal,description:o.Alert.Description.protocol_version}});y.session.version=y.version;var U=_.session_id.bytes();U.length>0&&U===y.session.id?(y.expect=s,y.session.resuming=!0,y.session.sp.server_random=_.random.bytes()):(y.expect=c,y.session.resuming=!1,o.createSecurityParameters(y,_)),y.session.id=U,y.process()}},o.handleClientHello=function(y,w,R){var _=o.parseHelloMessage(y,w,R);if(!y.fail){var U=_.session_id.bytes(),x=null;if(y.sessionCache&&(x=y.sessionCache.getSession(U),x===null?U="":(x.version.major!==_.version.major||x.version.minor>_.version.minor)&&(x=null,U="")),U.length===0&&(U=t.random.getBytes(32)),y.session.id=U,y.session.clientHelloVersion=_.version,y.session.sp={},x)y.version=y.session.version=x.version,y.session.sp=x.sp;else{for(var F,Y=1;Y0;)x=i(U.certificate_list,3),F=t.asn1.fromDer(x),x=t.pki.certificateFromAsn1(F,!0),Y.push(x)}catch(se){return y.error(y,{message:"Could not parse certificate list.",cause:se,send:!0,alert:{level:o.Alert.Level.fatal,description:o.Alert.Description.bad_certificate}})}var ne=y.entity===o.ConnectionEnd.client;(ne||y.verifyClient===!0)&&Y.length===0?y.error(y,{message:ne?"No server certificate provided.":"No client certificate provided.",send:!0,alert:{level:o.Alert.Level.fatal,description:o.Alert.Description.illegal_parameter}}):Y.length===0?y.expect=ne?h:b:(ne?y.session.serverCertificate=Y[0]:y.session.clientCertificate=Y[0],o.verifyCertificateChain(y,Y)&&(y.expect=ne?h:b)),y.process()},o.handleServerKeyExchange=function(y,w,R){if(R>0)return y.error(y,{message:"Invalid key parameters. Only RSA is supported.",send:!0,alert:{level:o.Alert.Level.fatal,description:o.Alert.Description.unsupported_certificate}});y.expect=E,y.process()},o.handleClientKeyExchange=function(y,w,R){if(R<48)return y.error(y,{message:"Invalid key parameters. Only RSA is supported.",send:!0,alert:{level:o.Alert.Level.fatal,description:o.Alert.Description.unsupported_certificate}});var _=w.fragment,U={enc_pre_master_secret:i(_,2).getBytes()},x=null;if(y.getPrivateKey)try{x=y.getPrivateKey(y,y.session.serverCertificate),x=t.pki.privateKeyFromPem(x)}catch(ne){y.error(y,{message:"Could not get private key.",cause:ne,send:!0,alert:{level:o.Alert.Level.fatal,description:o.Alert.Description.internal_error}})}if(x===null)return y.error(y,{message:"No private key set.",send:!0,alert:{level:o.Alert.Level.fatal,description:o.Alert.Description.internal_error}});try{var F=y.session.sp;F.pre_master_secret=x.decrypt(U.enc_pre_master_secret);var Y=y.session.clientHelloVersion;if(Y.major!==F.pre_master_secret.charCodeAt(0)||Y.minor!==F.pre_master_secret.charCodeAt(1))throw new Error("TLS version rollback attack detected.")}catch{F.pre_master_secret=t.random.getBytes(48)}y.expect=B,y.session.clientCertificate!==null&&(y.expect=k),y.process()},o.handleCertificateRequest=function(y,w,R){if(R<3)return y.error(y,{message:"Invalid CertificateRequest. Message too short.",send:!0,alert:{level:o.Alert.Level.fatal,description:o.Alert.Description.illegal_parameter}});var _=w.fragment,U={certificate_types:i(_,1),certificate_authorities:i(_,2)};y.session.certificateRequest=U,y.expect=g,y.process()},o.handleCertificateVerify=function(y,w,R){if(R<2)return y.error(y,{message:"Invalid CertificateVerify. Message too short.",send:!0,alert:{level:o.Alert.Level.fatal,description:o.Alert.Description.illegal_parameter}});var _=w.fragment;_.read-=4;var U=_.bytes();_.read+=4;var x={signature:i(_,2).getBytes()},F=t.util.createBuffer();F.putBuffer(y.session.md5.digest()),F.putBuffer(y.session.sha1.digest()),F=F.getBytes();try{var Y=y.session.clientCertificate;if(!Y.publicKey.verify(F,x.signature,"NONE"))throw new Error("CertificateVerify signature does not match.");y.session.md5.update(U),y.session.sha1.update(U)}catch{return y.error(y,{message:"Bad signature in CertificateVerify.",send:!0,alert:{level:o.Alert.Level.fatal,description:o.Alert.Description.handshake_failure}})}y.expect=B,y.process()},o.handleServerHelloDone=function(y,w,R){if(R>0)return y.error(y,{message:"Invalid ServerHelloDone message. Invalid length.",send:!0,alert:{level:o.Alert.Level.fatal,description:o.Alert.Description.record_overflow}});if(y.serverCertificate===null){var _={message:"No server certificate provided. Not enough security.",send:!0,alert:{level:o.Alert.Level.fatal,description:o.Alert.Description.insufficient_security}},U=0,x=y.verify(y,_.alert.description,U,[]);if(x!==!0)return(x||x===0)&&(typeof x=="object"&&!t.util.isArray(x)?(x.message&&(_.message=x.message),x.alert&&(_.alert.description=x.alert)):typeof x=="number"&&(_.alert.description=x)),y.error(y,_)}y.session.certificateRequest!==null&&(w=o.createRecord(y,{type:o.ContentType.handshake,data:o.createCertificate(y)}),o.queue(y,w)),w=o.createRecord(y,{type:o.ContentType.handshake,data:o.createClientKeyExchange(y)}),o.queue(y,w),y.expect=S;var F=function(Y,ne){Y.session.certificateRequest!==null&&Y.session.clientCertificate!==null&&o.queue(Y,o.createRecord(Y,{type:o.ContentType.handshake,data:o.createCertificateVerify(Y,ne)})),o.queue(Y,o.createRecord(Y,{type:o.ContentType.change_cipher_spec,data:o.createChangeCipherSpec()})),Y.state.pending=o.createConnectionState(Y),Y.state.current.write=Y.state.pending.write,o.queue(Y,o.createRecord(Y,{type:o.ContentType.handshake,data:o.createFinished(Y)})),Y.expect=s,o.flush(Y),Y.process()};if(y.session.certificateRequest===null||y.session.clientCertificate===null)return F(y,null);o.getClientSignature(y,F)},o.handleChangeCipherSpec=function(y,w){if(w.fragment.getByte()!==1)return y.error(y,{message:"Invalid ChangeCipherSpec message received.",send:!0,alert:{level:o.Alert.Level.fatal,description:o.Alert.Description.illegal_parameter}});var R=y.entity===o.ConnectionEnd.client;(y.session.resuming&&R||!y.session.resuming&&!R)&&(y.state.pending=o.createConnectionState(y)),y.state.current.read=y.state.pending.read,(!y.session.resuming&&R||y.session.resuming&&!R)&&(y.state.pending=null),y.expect=R?p:N,y.process()},o.handleFinished=function(y,w,R){var _=w.fragment;_.read-=4;var U=_.bytes();_.read+=4;var x=w.fragment.getBytes();_=t.util.createBuffer(),_.putBuffer(y.session.md5.digest()),_.putBuffer(y.session.sha1.digest());var F=y.entity===o.ConnectionEnd.client,Y=F?"server finished":"client finished",ne=y.session.sp,se=12,W=a;if(_=W(ne.master_secret,Y,_.getBytes(),se),_.getBytes()!==x)return y.error(y,{message:"Invalid verify_data in Finished message.",send:!0,alert:{level:o.Alert.Level.fatal,description:o.Alert.Description.decrypt_error}});y.session.md5.update(U),y.session.sha1.update(U),(y.session.resuming&&F||!y.session.resuming&&!F)&&(o.queue(y,o.createRecord(y,{type:o.ContentType.change_cipher_spec,data:o.createChangeCipherSpec()})),y.state.current.write=y.state.pending.write,y.state.pending=null,o.queue(y,o.createRecord(y,{type:o.ContentType.handshake,data:o.createFinished(y)}))),y.expect=F?m:f,y.handshaking=!1,++y.handshakes,y.peerCertificate=F?y.session.serverCertificate:y.session.clientCertificate,o.flush(y),y.isConnected=!0,y.connected(y),y.process()},o.handleAlert=function(y,w){var R=w.fragment,_={level:R.getByte(),description:R.getByte()},U;switch(_.description){case o.Alert.Description.close_notify:U="Connection closed.";break;case o.Alert.Description.unexpected_message:U="Unexpected message.";break;case o.Alert.Description.bad_record_mac:U="Bad record MAC.";break;case o.Alert.Description.decryption_failed:U="Decryption failed.";break;case o.Alert.Description.record_overflow:U="Record overflow.";break;case o.Alert.Description.decompression_failure:U="Decompression failed.";break;case o.Alert.Description.handshake_failure:U="Handshake failure.";break;case o.Alert.Description.bad_certificate:U="Bad certificate.";break;case o.Alert.Description.unsupported_certificate:U="Unsupported certificate.";break;case o.Alert.Description.certificate_revoked:U="Certificate revoked.";break;case o.Alert.Description.certificate_expired:U="Certificate expired.";break;case o.Alert.Description.certificate_unknown:U="Certificate unknown.";break;case o.Alert.Description.illegal_parameter:U="Illegal parameter.";break;case o.Alert.Description.unknown_ca:U="Unknown certificate authority.";break;case o.Alert.Description.access_denied:U="Access denied.";break;case o.Alert.Description.decode_error:U="Decode error.";break;case o.Alert.Description.decrypt_error:U="Decrypt error.";break;case o.Alert.Description.export_restriction:U="Export restriction.";break;case o.Alert.Description.protocol_version:U="Unsupported protocol version.";break;case o.Alert.Description.insufficient_security:U="Insufficient security.";break;case o.Alert.Description.internal_error:U="Internal error.";break;case o.Alert.Description.user_canceled:U="User canceled.";break;case o.Alert.Description.no_renegotiation:U="Renegotiation not supported.";break;default:U="Unknown error.";break}if(_.description===o.Alert.Description.close_notify)return y.close();y.error(y,{message:U,send:!1,origin:y.entity===o.ConnectionEnd.client?"server":"client",alert:_}),y.process()},o.handleHandshake=function(y,w){var R=w.fragment,_=R.getByte(),U=R.getInt24();if(U>R.length())return y.fragmented=w,w.fragment=t.util.createBuffer(),R.read-=4,y.process();y.fragmented=null,R.read-=4;var x=R.bytes(U+4);R.read+=4,_ in pe[y.entity][y.expect]?(y.entity===o.ConnectionEnd.server&&!y.open&&!y.fail&&(y.handshaking=!0,y.session={version:null,extensions:{server_name:{serverNameList:[]}},cipherSuite:null,compressionMethod:null,serverCertificate:null,clientCertificate:null,md5:t.md.md5.create(),sha1:t.md.sha1.create()}),_!==o.HandshakeType.hello_request&&_!==o.HandshakeType.certificate_verify&&_!==o.HandshakeType.finished&&(y.session.md5.update(x),y.session.sha1.update(x)),pe[y.entity][y.expect][_](y,w,U)):o.handleUnexpected(y,w)},o.handleApplicationData=function(y,w){y.data.putBuffer(w.fragment),y.dataReady(y),y.process()},o.handleHeartbeat=function(y,w){var R=w.fragment,_=R.getByte(),U=R.getInt16(),x=R.getBytes(U);if(_===o.HeartbeatMessageType.heartbeat_request){if(y.handshaking||U>x.length)return y.process();o.queue(y,o.createRecord(y,{type:o.ContentType.heartbeat,data:o.createHeartbeat(o.HeartbeatMessageType.heartbeat_response,x)})),o.flush(y)}else if(_===o.HeartbeatMessageType.heartbeat_response){if(x!==y.expectedHeartbeatPayload)return y.process();y.heartbeatReceived&&y.heartbeatReceived(y,t.util.createBuffer(x))}y.process()};var v=0,c=1,h=2,E=3,g=4,s=5,p=6,m=7,S=8,l=0,C=1,b=2,k=3,B=4,N=5,f=6,d=o.handleUnexpected,M=o.handleChangeCipherSpec,V=o.handleAlert,q=o.handleHandshake,P=o.handleApplicationData,L=o.handleHeartbeat,j=[];j[o.ConnectionEnd.client]=[[d,V,q,d,L],[d,V,q,d,L],[d,V,q,d,L],[d,V,q,d,L],[d,V,q,d,L],[M,V,d,d,L],[d,V,q,d,L],[d,V,q,P,L],[d,V,q,d,L]],j[o.ConnectionEnd.server]=[[d,V,q,d,L],[d,V,q,d,L],[d,V,q,d,L],[d,V,q,d,L],[M,V,d,d,L],[d,V,q,d,L],[d,V,q,P,L],[d,V,q,d,L]];var z=o.handleHelloRequest,K=o.handleServerHello,H=o.handleCertificate,Z=o.handleServerKeyExchange,te=o.handleCertificateRequest,ue=o.handleServerHelloDone,de=o.handleFinished,pe=[];pe[o.ConnectionEnd.client]=[[d,d,K,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d],[z,d,d,d,d,d,d,d,d,d,d,H,Z,te,ue,d,d,d,d,d,d],[z,d,d,d,d,d,d,d,d,d,d,d,Z,te,ue,d,d,d,d,d,d],[z,d,d,d,d,d,d,d,d,d,d,d,d,te,ue,d,d,d,d,d,d],[z,d,d,d,d,d,d,d,d,d,d,d,d,d,ue,d,d,d,d,d,d],[z,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d],[z,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,de],[z,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d],[z,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d]];var Se=o.handleClientHello,ee=o.handleClientKeyExchange,fe=o.handleCertificateVerify;pe[o.ConnectionEnd.server]=[[d,Se,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d],[d,d,d,d,d,d,d,d,d,d,d,H,d,d,d,d,d,d,d,d,d],[d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,ee,d,d,d,d],[d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,fe,d,d,d,d,d],[d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d],[d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,de],[d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d],[d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d]],o.generateKeys=function(y,w){var R=a,_=w.client_random+w.server_random;y.session.resuming||(w.master_secret=R(w.pre_master_secret,"master secret",_,48).bytes(),w.pre_master_secret=null),_=w.server_random+w.client_random;var U=2*w.mac_key_length+2*w.enc_key_length,x=y.version.major===o.Versions.TLS_1_0.major&&y.version.minor===o.Versions.TLS_1_0.minor;x&&(U+=2*w.fixed_iv_length);var F=R(w.master_secret,"key expansion",_,U),Y={client_write_MAC_key:F.getBytes(w.mac_key_length),server_write_MAC_key:F.getBytes(w.mac_key_length),client_write_key:F.getBytes(w.enc_key_length),server_write_key:F.getBytes(w.enc_key_length)};return x&&(Y.client_write_IV=F.getBytes(w.fixed_iv_length),Y.server_write_IV=F.getBytes(w.fixed_iv_length)),Y},o.createConnectionState=function(y){var w=y.entity===o.ConnectionEnd.client,R=function(){var x={sequenceNumber:[0,0],macKey:null,macLength:0,macFunction:null,cipherState:null,cipherFunction:function(F){return!0},compressionState:null,compressFunction:function(F){return!0},updateSequenceNumber:function(){x.sequenceNumber[1]===4294967295?(x.sequenceNumber[1]=0,++x.sequenceNumber[0]):++x.sequenceNumber[1]}};return x},_={read:R(),write:R()};if(_.read.update=function(x,F){return _.read.cipherFunction(F,_.read)?_.read.compressFunction(x,F,_.read)||x.error(x,{message:"Could not decompress record.",send:!0,alert:{level:o.Alert.Level.fatal,description:o.Alert.Description.decompression_failure}}):x.error(x,{message:"Could not decrypt record or bad MAC.",send:!0,alert:{level:o.Alert.Level.fatal,description:o.Alert.Description.bad_record_mac}}),!x.fail},_.write.update=function(x,F){return _.write.compressFunction(x,F,_.write)?_.write.cipherFunction(F,_.write)||x.error(x,{message:"Could not encrypt record.",send:!1,alert:{level:o.Alert.Level.fatal,description:o.Alert.Description.internal_error}}):x.error(x,{message:"Could not compress record.",send:!1,alert:{level:o.Alert.Level.fatal,description:o.Alert.Description.internal_error}}),!x.fail},y.session){var U=y.session.sp;switch(y.session.cipherSuite.initSecurityParameters(U),U.keys=o.generateKeys(y,U),_.read.macKey=w?U.keys.server_write_MAC_key:U.keys.client_write_MAC_key,_.write.macKey=w?U.keys.client_write_MAC_key:U.keys.server_write_MAC_key,y.session.cipherSuite.initConnectionState(_,y,U),U.compression_algorithm){case o.CompressionMethod.none:break;case o.CompressionMethod.deflate:_.read.compressFunction=n,_.write.compressFunction=r;break;default:throw new Error("Unsupported compression algorithm.")}}return _},o.createRandom=function(){var y=new Date,w=+y+y.getTimezoneOffset()*6e4,R=t.util.createBuffer();return R.putInt32(w),R.putBytes(t.random.getBytes(28)),R},o.createRecord=function(y,w){if(!w.data)return null;var R={type:w.type,version:{major:y.version.major,minor:y.version.minor},length:w.data.length(),fragment:w.data};return R},o.createAlert=function(y,w){var R=t.util.createBuffer();return R.putByte(w.level),R.putByte(w.description),o.createRecord(y,{type:o.ContentType.alert,data:R})},o.createClientHello=function(y){y.session.clientHelloVersion={major:y.version.major,minor:y.version.minor};for(var w=t.util.createBuffer(),R=0;R0&&(ie+=2);var ce=y.session.id,_e=ce.length+1+2+4+28+2+U+1+F+ie,he=t.util.createBuffer();return he.putByte(o.HandshakeType.client_hello),he.putInt24(_e),he.putByte(y.version.major),he.putByte(y.version.minor),he.putBytes(y.session.sp.client_random),u(he,1,t.util.createBuffer(ce)),u(he,2,w),u(he,1,x),ie>0&&u(he,2,Y),he},o.createServerHello=function(y){var w=y.session.id,R=w.length+1+2+4+28+2+1,_=t.util.createBuffer();return _.putByte(o.HandshakeType.server_hello),_.putInt24(R),_.putByte(y.version.major),_.putByte(y.version.minor),_.putBytes(y.session.sp.server_random),u(_,1,t.util.createBuffer(w)),_.putByte(y.session.cipherSuite.id[0]),_.putByte(y.session.cipherSuite.id[1]),_.putByte(y.session.compressionMethod),_},o.createCertificate=function(y){var w=y.entity===o.ConnectionEnd.client,R=null;if(y.getCertificate){var _;w?_=y.session.certificateRequest:_=y.session.extensions.server_name.serverNameList,R=y.getCertificate(y,_)}var U=t.util.createBuffer();if(R!==null)try{t.util.isArray(R)||(R=[R]);for(var x=null,F=0;F"u"&&(R=w.length);var _=t.util.createBuffer();_.putByte(y),_.putInt16(R),_.putBytes(w);var U=_.length(),x=Math.max(16,U-R-3);return _.putBytes(t.random.getBytes(x)),_},o.queue=function(y,w){if(w&&!(w.fragment.length()===0&&(w.type===o.ContentType.handshake||w.type===o.ContentType.alert||w.type===o.ContentType.change_cipher_spec))){if(w.type===o.ContentType.handshake){var R=w.fragment.bytes();y.session.md5.update(R),y.session.sha1.update(R),R=null}var _;if(w.fragment.length()<=o.MaxFragment)_=[w];else{_=[];for(var U=w.fragment.bytes();U.length>o.MaxFragment;)_.push(o.createRecord(y,{type:w.type,data:t.util.createBuffer(U.slice(0,o.MaxFragment))})),U=U.slice(o.MaxFragment);U.length>0&&_.push(o.createRecord(y,{type:w.type,data:t.util.createBuffer(U)}))}for(var x=0;x<_.length&&!y.fail;++x){var F=_[x],Y=y.state.current.write;Y.update(y,F)&&y.records.push(F)}}},o.flush=function(y){for(var w=0;w0&&(F=R.order[0]),F!==null&&F in R.cache){x=R.cache[F],delete R.cache[F];for(var Y in R.order)if(R.order[Y]===F){R.order.splice(Y,1);break}}return x},R.setSession=function(U,x){if(R.order.length===R.capacity){var F=R.order.shift();delete R.cache[F]}var F=t.util.bytesToHex(U);R.order.push(F),R.cache[F]=x}}return R},o.createConnection=function(y){var w=null;y.caStore?t.util.isArray(y.caStore)?w=t.pki.createCaStore(y.caStore):w=y.caStore:w=t.pki.createCaStore();var R=y.cipherSuites||null;if(R===null){R=[];for(var _ in o.CipherSuites)R.push(o.CipherSuites[_])}var U=y.server?o.ConnectionEnd.server:o.ConnectionEnd.client,x=y.sessionCache?o.createSessionCache(y.sessionCache):null,F={version:{major:o.Version.major,minor:o.Version.minor},entity:U,sessionId:y.sessionId,caStore:w,sessionCache:x,cipherSuites:R,connected:y.connected,virtualHost:y.virtualHost||null,verifyClient:y.verifyClient||!1,verify:y.verify||function(W,ie,ce,_e){return ie},verifyOptions:y.verifyOptions||{},getCertificate:y.getCertificate||null,getPrivateKey:y.getPrivateKey||null,getSignature:y.getSignature||null,input:t.util.createBuffer(),tlsData:t.util.createBuffer(),data:t.util.createBuffer(),tlsDataReady:y.tlsDataReady,dataReady:y.dataReady,heartbeatReceived:y.heartbeatReceived,closed:y.closed,error:function(W,ie){ie.origin=ie.origin||(W.entity===o.ConnectionEnd.client?"client":"server"),ie.send&&(o.queue(W,o.createAlert(W,ie.alert)),o.flush(W));var ce=ie.fatal!==!1;ce&&(W.fail=!0),y.error(W,ie),ce&&W.close(!1)},deflate:y.deflate||null,inflate:y.inflate||null};F.reset=function(W){F.version={major:o.Version.major,minor:o.Version.minor},F.record=null,F.session=null,F.peerCertificate=null,F.state={pending:null,current:null},F.expect=F.entity===o.ConnectionEnd.client?v:l,F.fragmented=null,F.records=[],F.open=!1,F.handshakes=0,F.handshaking=!1,F.isConnected=!1,F.fail=!(W||typeof W>"u"),F.input.clear(),F.tlsData.clear(),F.data.clear(),F.state.current=o.createConnectionState(F)},F.reset();var Y=function(W,ie){var ce=ie.type-o.ContentType.change_cipher_spec,_e=j[W.entity][W.expect];ce in _e?_e[ce](W,ie):o.handleUnexpected(W,ie)},ne=function(W){var ie=0,ce=W.input,_e=ce.length();if(_e<5)ie=5-_e;else{W.record={type:ce.getByte(),version:{major:ce.getByte(),minor:ce.getByte()},length:ce.getInt16(),fragment:t.util.createBuffer(),ready:!1};var he=W.record.version.major===W.version.major;he&&W.session&&W.session.version&&(he=W.record.version.minor===W.version.minor),he||W.error(W,{message:"Incompatible TLS version.",send:!0,alert:{level:o.Alert.Level.fatal,description:o.Alert.Description.protocol_version}})}return ie},se=function(W){var ie=0,ce=W.input,_e=ce.length();if(_e0&&(F.sessionCache&&(ie=F.sessionCache.getSession(W)),ie===null&&(W="")),W.length===0&&F.sessionCache&&(ie=F.sessionCache.getSession(),ie!==null&&(W=ie.id)),F.session={id:W,version:null,cipherSuite:null,compressionMethod:null,serverCertificate:null,certificateRequest:null,clientCertificate:null,sp:{},md5:t.md.md5.create(),sha1:t.md.sha1.create()},ie&&(F.version=ie.version,F.session.sp=ie.sp),F.session.sp.client_random=o.createRandom().getBytes(),F.open=!0,o.queue(F,o.createRecord(F,{type:o.ContentType.handshake,data:o.createClientHello(F)})),o.flush(F)}},F.process=function(W){var ie=0;return W&&F.input.putBytes(W),F.fail||(F.record!==null&&F.record.ready&&F.record.fragment.isEmpty()&&(F.record=null),F.record===null&&(ie=ne(F)),!F.fail&&F.record!==null&&!F.record.ready&&(ie=se(F)),!F.fail&&F.record!==null&&F.record.ready&&Y(F,F.record)),ie},F.prepare=function(W){return o.queue(F,o.createRecord(F,{type:o.ContentType.application_data,data:t.util.createBuffer(W)})),o.flush(F)},F.prepareHeartbeatRequest=function(W,ie){return W instanceof t.util.ByteBuffer&&(W=W.bytes()),typeof ie>"u"&&(ie=W.length),F.expectedHeartbeatPayload=W,o.queue(F,o.createRecord(F,{type:o.ContentType.heartbeat,data:o.createHeartbeat(o.HeartbeatMessageType.heartbeat_request,W,ie)})),o.flush(F)},F.close=function(W){if(!F.fail&&F.sessionCache&&F.session){var ie={id:F.session.id,version:F.session.version,sp:F.session.sp};ie.sp.keys=null,F.sessionCache.setSession(ie.id,ie)}F.open&&(F.open=!1,F.input.clear(),(F.isConnected||F.handshaking)&&(F.isConnected=F.handshaking=!1,o.queue(F,o.createAlert(F,{level:o.Alert.Level.warning,description:o.Alert.Description.close_notify})),o.flush(F)),F.closed(F)),F.reset(W)},F},en=t.tls=t.tls||{};for(var ve in o)typeof o[ve]!="function"&&(t.tls[ve]=o[ve]);return t.tls.prf_tls1=a,t.tls.hmac_sha1=e,t.tls.createSessionCache=o.createSessionCache,t.tls.createConnection=o.createConnection,en}var Iv;function XV(){if(Iv)return Ua.exports;Iv=1;var t=me();xt(),HI();var a=Ua.exports=t.tls;a.CipherSuites.TLS_RSA_WITH_AES_128_CBC_SHA={id:[0,47],name:"TLS_RSA_WITH_AES_128_CBC_SHA",initSecurityParameters:function(v){v.bulk_cipher_algorithm=a.BulkCipherAlgorithm.aes,v.cipher_type=a.CipherType.block,v.enc_key_length=16,v.block_length=16,v.fixed_iv_length=16,v.record_iv_length=16,v.mac_algorithm=a.MACAlgorithm.hmac_sha1,v.mac_length=20,v.mac_key_length=20},initConnectionState:e},a.CipherSuites.TLS_RSA_WITH_AES_256_CBC_SHA={id:[0,53],name:"TLS_RSA_WITH_AES_256_CBC_SHA",initSecurityParameters:function(v){v.bulk_cipher_algorithm=a.BulkCipherAlgorithm.aes,v.cipher_type=a.CipherType.block,v.enc_key_length=32,v.block_length=16,v.fixed_iv_length=16,v.record_iv_length=16,v.mac_algorithm=a.MACAlgorithm.hmac_sha1,v.mac_length=20,v.mac_key_length=20},initConnectionState:e};function e(v,c,h){var E=c.entity===t.tls.ConnectionEnd.client;v.read.cipherState={init:!1,cipher:t.cipher.createDecipher("AES-CBC",E?h.keys.server_write_key:h.keys.client_write_key),iv:E?h.keys.server_write_IV:h.keys.client_write_IV},v.write.cipherState={init:!1,cipher:t.cipher.createCipher("AES-CBC",E?h.keys.client_write_key:h.keys.server_write_key),iv:E?h.keys.client_write_IV:h.keys.server_write_IV},v.read.cipherFunction=u,v.write.cipherFunction=r,v.read.macLength=v.write.macLength=h.mac_length,v.read.macFunction=v.write.macFunction=a.hmac_sha1}function r(v,c){var h=!1,E=c.macFunction(c.macKey,c.sequenceNumber,v);v.fragment.putBytes(E),c.updateSequenceNumber();var g;v.version.minor===a.Versions.TLS_1_0.minor?g=c.cipherState.init?null:c.cipherState.iv:g=t.random.getBytesSync(16),c.cipherState.init=!0;var s=c.cipherState.cipher;return s.start({iv:g}),v.version.minor>=a.Versions.TLS_1_1.minor&&s.output.putBytes(g),s.update(v.fragment),s.finish(n)&&(v.fragment=s.output,v.length=v.fragment.length(),h=!0),h}function n(v,c,h){if(!h){var E=v-c.length()%v;c.fillWithByte(E-1,E)}return!0}function i(v,c,h){var E=!0;if(h){for(var g=c.length(),s=c.last(),p=g-1-s;p=s?(v.fragment=g.output.getBytes(m-s),p=g.output.getBytes(s)):v.fragment=g.output.getBytes(),v.fragment=t.util.createBuffer(v.fragment),v.length=v.fragment.length();var S=c.macFunction(c.macKey,c.sequenceNumber,v);return c.updateSequenceNumber(),h=o(c.macKey,p,S)&&h,h}function o(v,c,h){var E=t.hmac.create();return E.start("SHA1",v),E.update(c),c=E.digest().getBytes(),E.start(null,null),E.update(h),h=E.digest().getBytes(),c===h}return Ua.exports}var tn={exports:{}},Pv;function QI(){if(Pv)return tn.exports;Pv=1;var t=me();It(),Ne();var a=tn.exports=t.sha512=t.sha512||{};t.md.sha512=t.md.algorithms.sha512=a;var e=t.sha384=t.sha512.sha384=t.sha512.sha384||{};e.create=function(){return a.create("SHA-384")},t.md.sha384=t.md.algorithms.sha384=e,t.sha512.sha256=t.sha512.sha256||{create:function(){return a.create("SHA-512/256")}},t.md["sha512/256"]=t.md.algorithms["sha512/256"]=t.sha512.sha256,t.sha512.sha224=t.sha512.sha224||{create:function(){return a.create("SHA-512/224")}},t.md["sha512/224"]=t.md.algorithms["sha512/224"]=t.sha512.sha224,a.create=function(c){if(n||o(),typeof c>"u"&&(c="SHA-512"),!(c in u))throw new Error("Invalid SHA-512 algorithm: "+c);for(var h=u[c],E=null,g=t.util.createBuffer(),s=new Array(80),p=0;p<80;++p)s[p]=new Array(2);var m=64;switch(c){case"SHA-384":m=48;break;case"SHA-512/256":m=32;break;case"SHA-512/224":m=28;break}var S={algorithm:c.replace("-","").toLowerCase(),blockLength:128,digestLength:m,messageLength:0,fullMessageLength:null,messageLengthSize:16};return S.start=function(){S.messageLength=0,S.fullMessageLength=S.messageLength128=[];for(var l=S.messageLengthSize/4,C=0;C>>0,b>>>0];for(var k=S.fullMessageLength.length-1;k>=0;--k)S.fullMessageLength[k]+=b[1],b[1]=b[0]+(S.fullMessageLength[k]/4294967296>>>0),S.fullMessageLength[k]=S.fullMessageLength[k]>>>0,b[0]=b[1]/4294967296>>>0;return g.putBytes(l),v(E,s,g),(g.read>2048||g.length()===0)&&g.compact(),S},S.digest=function(){var l=t.util.createBuffer();l.putBytes(g.bytes());var C=S.fullMessageLength[S.fullMessageLength.length-1]+S.messageLengthSize,b=C&S.blockLength-1;l.putBytes(r.substr(0,S.blockLength-b));for(var k,B,N=S.fullMessageLength[0]*8,f=0;f>>0,N+=B,l.putInt32(N>>>0),N=k>>>0;l.putInt32(N);for(var d=new Array(E.length),f=0;f=128;){for(ee=0;ee<16;++ee)h[ee][0]=E.getInt32()>>>0,h[ee][1]=E.getInt32()>>>0;for(;ee<80;++ee)Ue=h[ee-2],fe=Ue[0],re=Ue[1],g=((fe>>>19|re<<13)^(re>>>29|fe<<3)^fe>>>6)>>>0,s=((fe<<13|re>>>19)^(re<<3|fe>>>29)^(fe<<26|re>>>6))>>>0,y=h[ee-15],fe=y[0],re=y[1],p=((fe>>>1|re<<31)^(fe>>>8|re<<24)^fe>>>7)>>>0,m=((fe<<31|re>>>1)^(fe<<24|re>>>8)^(fe<<25|re>>>7))>>>0,ve=h[ee-7],w=h[ee-16],re=s+ve[1]+m+w[1],h[ee][0]=g+ve[0]+p+w[0]+(re/4294967296>>>0)>>>0,h[ee][1]=re>>>0;for(d=c[0][0],M=c[0][1],V=c[1][0],q=c[1][1],P=c[2][0],L=c[2][1],j=c[3][0],z=c[3][1],K=c[4][0],H=c[4][1],Z=c[5][0],te=c[5][1],ue=c[6][0],de=c[6][1],pe=c[7][0],Se=c[7][1],ee=0;ee<80;++ee)C=((K>>>14|H<<18)^(K>>>18|H<<14)^(H>>>9|K<<23))>>>0,b=((K<<18|H>>>14)^(K<<14|H>>>18)^(H<<23|K>>>9))>>>0,k=(ue^K&(Z^ue))>>>0,B=(de^H&(te^de))>>>0,S=((d>>>28|M<<4)^(M>>>2|d<<30)^(M>>>7|d<<25))>>>0,l=((d<<4|M>>>28)^(M<<30|d>>>2)^(M<<25|d>>>7))>>>0,N=(d&V|P&(d^V))>>>0,f=(M&q|L&(M^q))>>>0,re=Se+b+B+i[ee][1]+h[ee][1],g=pe+C+k+i[ee][0]+h[ee][0]+(re/4294967296>>>0)>>>0,s=re>>>0,re=l+f,p=S+N+(re/4294967296>>>0)>>>0,m=re>>>0,pe=ue,Se=de,ue=Z,de=te,Z=K,te=H,re=z+s,K=j+g+(re/4294967296>>>0)>>>0,H=re>>>0,j=P,z=L,P=V,L=q,V=d,q=M,re=s+m,d=g+p+(re/4294967296>>>0)>>>0,M=re>>>0;re=c[0][1]+M,c[0][0]=c[0][0]+d+(re/4294967296>>>0)>>>0,c[0][1]=re>>>0,re=c[1][1]+q,c[1][0]=c[1][0]+V+(re/4294967296>>>0)>>>0,c[1][1]=re>>>0,re=c[2][1]+L,c[2][0]=c[2][0]+P+(re/4294967296>>>0)>>>0,c[2][1]=re>>>0,re=c[3][1]+z,c[3][0]=c[3][0]+j+(re/4294967296>>>0)>>>0,c[3][1]=re>>>0,re=c[4][1]+H,c[4][0]=c[4][0]+K+(re/4294967296>>>0)>>>0,c[4][1]=re>>>0,re=c[5][1]+te,c[5][0]=c[5][0]+Z+(re/4294967296>>>0)>>>0,c[5][1]=re>>>0,re=c[6][1]+de,c[6][0]=c[6][0]+ue+(re/4294967296>>>0)>>>0,c[6][1]=re>>>0,re=c[7][1]+Se,c[7][0]=c[7][0]+pe+(re/4294967296>>>0)>>>0,c[7][1]=re>>>0,R-=128}}return tn.exports}var Jr={},Av;function JV(){if(Av)return Jr;Av=1;var t=me();Nt();var a=t.asn1;return Jr.privateKeyValidator={name:"PrivateKeyInfo",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:!0,value:[{name:"PrivateKeyInfo.version",tagClass:a.Class.UNIVERSAL,type:a.Type.INTEGER,constructed:!1,capture:"privateKeyVersion"},{name:"PrivateKeyInfo.privateKeyAlgorithm",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:a.Class.UNIVERSAL,type:a.Type.OID,constructed:!1,capture:"privateKeyOid"}]},{name:"PrivateKeyInfo",tagClass:a.Class.UNIVERSAL,type:a.Type.OCTETSTRING,constructed:!1,capture:"privateKey"}]},Jr.publicKeyValidator={name:"SubjectPublicKeyInfo",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:!0,captureAsn1:"subjectPublicKeyInfo",value:[{name:"SubjectPublicKeyInfo.AlgorithmIdentifier",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:a.Class.UNIVERSAL,type:a.Type.OID,constructed:!1,capture:"publicKeyOid"}]},{tagClass:a.Class.UNIVERSAL,type:a.Type.BITSTRING,constructed:!1,composed:!0,captureBitStringValue:"ed25519PublicKey"}]},Jr}var rn,kv;function ZV(){if(kv)return rn;kv=1;var t=me();sa(),Et(),QI(),Ne();var a=JV(),e=a.publicKeyValidator,r=a.privateKeyValidator;if(typeof n>"u")var n=t.jsbn.BigInteger;var i=t.util.ByteBuffer,u=typeof Buffer>"u"?Uint8Array:Buffer;t.pki=t.pki||{},rn=t.pki.ed25519=t.ed25519=t.ed25519||{};var o=t.ed25519;o.constants={},o.constants.PUBLIC_KEY_BYTE_LENGTH=32,o.constants.PRIVATE_KEY_BYTE_LENGTH=64,o.constants.SEED_BYTE_LENGTH=32,o.constants.SIGN_BYTE_LENGTH=64,o.constants.HASH_BYTE_LENGTH=64,o.generateKeyPair=function(y){y=y||{};var w=y.seed;if(w===void 0)w=t.random.getBytesSync(o.constants.SEED_BYTE_LENGTH);else if(typeof w=="string"){if(w.length!==o.constants.SEED_BYTE_LENGTH)throw new TypeError('"seed" must be '+o.constants.SEED_BYTE_LENGTH+" bytes in length.")}else if(!(w instanceof Uint8Array))throw new TypeError('"seed" must be a node.js Buffer, Uint8Array, or a binary string.');w=v({message:w,encoding:"binary"});for(var R=new u(o.constants.PUBLIC_KEY_BYTE_LENGTH),_=new u(o.constants.PRIVATE_KEY_BYTE_LENGTH),U=0;U<32;++U)_[U]=w[U];return C(R,_),{publicKey:R,privateKey:_}},o.privateKeyFromAsn1=function(y){var w={},R=[],_=t.asn1.validate(y,r,w,R);if(!_){var U=new Error("Invalid Key.");throw U.errors=R,U}var x=t.asn1.derToOid(w.privateKeyOid),F=t.oids.EdDSA25519;if(x!==F)throw new Error('Invalid OID "'+x+'"; OID must be "'+F+'".');var Y=w.privateKey,ne=v({message:t.asn1.fromDer(Y).value,encoding:"binary"});return{privateKeyBytes:ne}},o.publicKeyFromAsn1=function(y){var w={},R=[],_=t.asn1.validate(y,e,w,R);if(!_){var U=new Error("Invalid Key.");throw U.errors=R,U}var x=t.asn1.derToOid(w.publicKeyOid),F=t.oids.EdDSA25519;if(x!==F)throw new Error('Invalid OID "'+x+'"; OID must be "'+F+'".');var Y=w.ed25519PublicKey;if(Y.length!==o.constants.PUBLIC_KEY_BYTE_LENGTH)throw new Error("Key length is invalid.");return v({message:Y,encoding:"binary"})},o.publicKeyFromPrivateKey=function(y){y=y||{};var w=v({message:y.privateKey,encoding:"binary"});if(w.length!==o.constants.PRIVATE_KEY_BYTE_LENGTH)throw new TypeError('"options.privateKey" must have a byte length of '+o.constants.PRIVATE_KEY_BYTE_LENGTH);for(var R=new u(o.constants.PUBLIC_KEY_BYTE_LENGTH),_=0;_=0};function v(y){var w=y.message;if(w instanceof Uint8Array||w instanceof u)return w;var R=y.encoding;if(w===void 0)if(y.md)w=y.md.digest().getBytes(),R="binary";else throw new TypeError('"options.message" or "options.md" not specified.');if(typeof w=="string"&&!R)throw new TypeError('"options.encoding" must be "binary" or "utf8".');if(typeof w=="string"){if(typeof Buffer<"u")return Buffer.from(w,R);w=new i(w,R)}else if(!(w instanceof i))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 _=new u(w.length()),U=0;U<_.length;++U)_[U]=w.at(U);return _}var c=ee(),h=ee([1]),E=ee([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),g=ee([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),s=ee([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),p=ee([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),m=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]),S=ee([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function l(y,w){var R=t.md.sha512.create(),_=new i(y);R.update(_.getBytes(w),"binary");var U=R.digest().getBytes();if(typeof Buffer<"u")return Buffer.from(U,"binary");for(var x=new u(o.constants.HASH_BYTE_LENGTH),F=0;F<64;++F)x[F]=U.charCodeAt(F);return x}function C(y,w){var R=[ee(),ee(),ee(),ee()],_,U=l(w,32);for(U[0]&=248,U[31]&=127,U[31]|=64,te(R,U),M(y,R),_=0;_<32;++_)w[_+32]=y[_];return 0}function b(y,w,R,_){var U,x,F=new Float64Array(64),Y=[ee(),ee(),ee(),ee()],ne=l(_,32);ne[0]&=248,ne[31]&=127,ne[31]|=64;var se=R+64;for(U=0;U=32;--_){for(R=0,U=_-32,x=_-12;U>8,w[U]-=R*256;w[U]+=R,w[_]=0}for(R=0,U=0;U<32;++U)w[U]+=R-(w[31]>>4)*m[U],R=w[U]>>8,w[U]&=255;for(U=0;U<32;++U)w[U]-=R*m[U];for(_=0;_<32;++_)w[_+1]+=w[_]>>8,y[_]=w[_]&255}function N(y){for(var w=new Float64Array(64),R=0;R<64;++R)w[R]=y[R],y[R]=0;B(y,w)}function f(y,w){var R=ee(),_=ee(),U=ee(),x=ee(),F=ee(),Y=ee(),ne=ee(),se=ee(),W=ee();re(R,y[1],y[0]),re(W,w[1],w[0]),ve(R,R,W),fe(_,y[0],y[1]),fe(W,w[0],w[1]),ve(_,_,W),ve(U,y[3],w[3]),ve(U,U,g),ve(x,y[2],w[2]),fe(x,x,x),re(F,_,R),re(Y,x,U),fe(ne,x,U),fe(se,_,R),ve(y[0],F,Y),ve(y[1],se,ne),ve(y[2],ne,Y),ve(y[3],F,se)}function d(y,w,R){for(var _=0;_<4;++_)Se(y[_],w[_],R)}function M(y,w){var R=ee(),_=ee(),U=ee();de(U,w[2]),ve(R,w[0],U),ve(_,w[1],U),V(y,_),y[31]^=H(R)<<7}function V(y,w){var R,_,U,x=ee(),F=ee();for(R=0;R<16;++R)F[R]=w[R];for(pe(F),pe(F),pe(F),_=0;_<2;++_){for(x[0]=F[0]-65517,R=1;R<15;++R)x[R]=F[R]-65535-(x[R-1]>>16&1),x[R-1]&=65535;x[15]=F[15]-32767-(x[14]>>16&1),U=x[15]>>16&1,x[14]&=65535,Se(F,x,1-U)}for(R=0;R<16;R++)y[2*R]=F[R]&255,y[2*R+1]=F[R]>>8}function q(y,w){var R=ee(),_=ee(),U=ee(),x=ee(),F=ee(),Y=ee(),ne=ee();return ue(y[2],h),P(y[1],w),Ue(U,y[1]),ve(x,U,E),re(U,U,y[2]),fe(x,y[2],x),Ue(F,x),Ue(Y,F),ve(ne,Y,F),ve(R,ne,U),ve(R,R,x),L(R,R),ve(R,R,U),ve(R,R,x),ve(R,R,x),ve(y[0],R,x),Ue(_,y[0]),ve(_,_,x),j(_,U)&&ve(y[0],y[0],S),Ue(_,y[0]),ve(_,_,x),j(_,U)?-1:(H(y[0])===w[31]>>7&&re(y[0],c,y[0]),ve(y[3],y[0],y[1]),0)}function P(y,w){var R;for(R=0;R<16;++R)y[R]=w[2*R]+(w[2*R+1]<<8);y[15]&=32767}function L(y,w){var R=ee(),_;for(_=0;_<16;++_)R[_]=w[_];for(_=250;_>=0;--_)Ue(R,R),_!==1&&ve(R,R,w);for(_=0;_<16;++_)y[_]=R[_]}function j(y,w){var R=new u(32),_=new u(32);return V(R,y),V(_,w),z(R,0,_,0)}function z(y,w,R,_){return K(y,w,R,_,32)}function K(y,w,R,_,U){var x,F=0;for(x=0;x>>8)-1}function H(y){var w=new u(32);return V(w,y),w[0]&1}function Z(y,w,R){var _,U;for(ue(y[0],c),ue(y[1],h),ue(y[2],h),ue(y[3],c),U=255;U>=0;--U)_=R[U/8|0]>>(U&7)&1,d(y,w,_),f(w,y),f(y,y),d(y,w,_)}function te(y,w){var R=[ee(),ee(),ee(),ee()];ue(R[0],s),ue(R[1],p),ue(R[2],h),ve(R[3],s,p),Z(y,R,w)}function ue(y,w){var R;for(R=0;R<16;R++)y[R]=w[R]|0}function de(y,w){var R=ee(),_;for(_=0;_<16;++_)R[_]=w[_];for(_=253;_>=0;--_)Ue(R,R),_!==2&&_!==4&&ve(R,R,w);for(_=0;_<16;++_)y[_]=R[_]}function pe(y){var w,R,_=1;for(w=0;w<16;++w)R=y[w]+_+65535,_=Math.floor(R/65536),y[w]=R-_*65536;y[0]+=_-1+37*(_-1)}function Se(y,w,R){for(var _,U=~(R-1),x=0;x<16;++x)_=U&(y[x]^w[x]),y[x]^=_,w[x]^=_}function ee(y){var w,R=new Float64Array(16);if(y)for(w=0;w0&&(h=t.util.fillString("\0",E)+h);var g=o.encrypt(h,"NONE"),s=r.generate(h,v);return{encapsulation:g,key:s}},u.decrypt=function(o,v,c){var h=o.decrypt(v,"NONE");return r.generate(h,c)},u},t.kem.kdf1=function(r,n){e(this,r,0,n||r.digestLength)},t.kem.kdf2=function(r,n){e(this,r,1,n||r.digestLength)};function e(r,n,i,u){r.generate=function(o,v){for(var c=new t.util.ByteBuffer,h=Math.ceil(v/u)+i,E=new t.util.ByteBuffer,g=i;g"u"||s?g.flags|=t.log.LEVEL_LOCKED:g.flags&=~t.log.LEVEL_LOCKED},t.log.addLogger=function(g){e.push(g)},typeof console<"u"&&"log"in console){var o;if(console.error&&console.warn&&console.info&&console.debug){var v={error:console.error,warning:console.warn,info:console.info,debug:console.debug,verbose:console.debug},c=function(g,s){t.log.prepareStandard(s);var p=v[s.level],m=[s.standard];m=m.concat(s.arguments.slice()),p.apply(console,m)};o=t.log.makeLogger(c)}else{var c=function(s,p){t.log.prepareStandardFull(p),console.log(p.standardFull)};o=t.log.makeLogger(c)}t.log.setLevel(o,"debug"),t.log.addLogger(o),r=o}else console={log:function(){}};if(r!==null&&typeof window<"u"&&window.location){var h=new URL(window.location.href).searchParams;if(h.has("console.level")&&t.log.setLevel(r,h.get("console.level").slice(-1)[0]),h.has("console.lock")){var E=h.get("console.lock").slice(-1)[0];E=="true"&&t.log.lock(r)}}return t.log.consoleLogger=r,nn}var on,Tv;function rB(){return Tv||(Tv=1,on=It(),Df(),jr(),LI(),QI()),on}var un={exports:{}},Vv;function aB(){if(Vv)return un.exports;Vv=1;var t=me();xt(),Nt(),ua(),zt(),rr(),GI(),Et(),Ne(),Ff();var a=t.asn1,e=un.exports=t.pkcs7=t.pkcs7||{};e.messageFromPem=function(s){var p=t.pem.decode(s)[0];if(p.type!=="PKCS7"){var m=new Error('Could not convert PKCS#7 message from PEM; PEM header type is not "PKCS#7".');throw m.headerType=p.type,m}if(p.procType&&p.procType.type==="ENCRYPTED")throw new Error("Could not convert PKCS#7 message from PEM; PEM is encrypted.");var S=a.fromDer(p.body);return e.messageFromAsn1(S)},e.messageToPem=function(s,p){var m={type:"PKCS7",body:a.toDer(s.toAsn1()).getBytes()};return t.pem.encode(m,{maxline:p})},e.messageFromAsn1=function(s){var p={},m=[];if(!a.validate(s,e.asn1.contentInfoValidator,p,m)){var S=new Error("Cannot read PKCS#7 message. ASN.1 object is not an PKCS#7 ContentInfo.");throw S.errors=m,S}var l=a.derToOid(p.contentType),C;switch(l){case t.pki.oids.envelopedData:C=e.createEnvelopedData();break;case t.pki.oids.encryptedData:C=e.createEncryptedData();break;case t.pki.oids.signedData:C=e.createSignedData();break;default:throw new Error("Cannot read PKCS#7 message. ContentType with OID "+l+" is not (yet) supported.")}return C.fromAsn1(p.content.value[0]),C},e.createSignedData=function(){var s=null;return s={type:t.pki.oids.signedData,version:1,certificates:[],crls:[],signers:[],digestAlgorithmIdentifiers:[],contentInfo:null,signerInfos:[],fromAsn1:function(S){if(E(s,S,e.asn1.signedDataValidator),s.certificates=[],s.crls=[],s.digestAlgorithmIdentifiers=[],s.contentInfo=null,s.signerInfos=[],s.rawCapture.certificates)for(var l=s.rawCapture.certificates.value,C=0;C0&&b.value[0].value.push(a.create(a.Class.CONTEXT_SPECIFIC,0,!0,S)),C.length>0&&b.value[0].value.push(a.create(a.Class.CONTEXT_SPECIFIC,1,!0,C)),b.value[0].value.push(a.create(a.Class.UNIVERSAL,a.Type.SET,!0,s.signerInfos)),a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,!0,[a.create(a.Class.UNIVERSAL,a.Type.OID,!1,a.oidToDer(s.type).getBytes()),b])},addSigner:function(S){var l=S.issuer,C=S.serialNumber;if(S.certificate){var b=S.certificate;typeof b=="string"&&(b=t.pki.certificateFromPem(b)),l=b.issuer.attributes,C=b.serialNumber}var k=S.key;if(!k)throw new Error("Could not add PKCS#7 signer; no private key specified.");typeof k=="string"&&(k=t.pki.privateKeyFromPem(k));var B=S.digestAlgorithm||t.pki.oids.sha1;switch(B){case t.pki.oids.sha1:case t.pki.oids.sha256:case t.pki.oids.sha384:case t.pki.oids.sha512:case t.pki.oids.md5:break;default:throw new Error("Could not add PKCS#7 signer; unknown message digest algorithm: "+B)}var N=S.authenticatedAttributes||[];if(N.length>0){for(var f=!1,d=!1,M=0;M0){for(var m=a.create(a.Class.CONTEXT_SPECIFIC,1,!0,[]),S=0;S=m&&l="8"&&(o="00"+o);var v=t.util.hexToBytes(o);i.putInt32(v.length),i.putBytes(v)}function r(i,u){i.putInt32(u.length),i.putString(u)}function n(){for(var i=t.md.sha1.create(),u=arguments.length,o=0;oo[v])return!0}return!0}Object.defineProperty(t,"__esModule",{value:!0}),t.LogLevel=t.APP_TYPE=t.ENV_ENUM_SUB=t.ENV_ENUM=t.ERROR_CODE=t.compareVersion=t.isFunction=void 0,t.isFunction=a,t.compareVersion=e,(function(r){r.cancel="-1",r.not_exist="1",r.no_permission="7"})(t.ERROR_CODE||(t.ERROR_CODE={})),(function(r){r.pc="pc",r.android="android",r.ios="ios",r.gdtPc="gdtPc",r.gdtAndroid="gdtAndroid",r.gdtIos="gdtIos",r.gdtStandardAndroid="gdtStandardAndroid",r.gdtStandardIos="gdtStandardIos",r.notInDingTalk="notInDingTalk",r.windows="windows",r.mac="mac",r.harmony="harmony"})(t.ENV_ENUM||(t.ENV_ENUM={})),(function(r){r.mac="mac",r.win="win",r.noSub="noSub"})(t.ENV_ENUM_SUB||(t.ENV_ENUM_SUB={})),(function(r){r.WEB="WEB",r.MINI_APP="MINI_APP",r.WEEX="WEEX",r.WEBVIEW_IN_MINIAPP="WEBVIEW_IN_MINIAPP",r.WEEX_WIDGET="WEEX_WIDGET"})(t.APP_TYPE||(t.APP_TYPE={})),(function(r){r[r.INFO=1]="INFO",r[r.WARNING=2]="WARNING",r[r.ERROR=3]="ERROR"})(t.LogLevel||(t.LogLevel={}))})(vn)),vn}var Bt={},Rt={},Dv;function uB(){return Dv||(Dv=1,(function(t){function a(n){return e(this,void 0,void 0,function(){var i,u,o,v;return r(this,function(c){return i=n.invokeName,u=n.method,o=n.callParams,v=n.JSBridge,v?[2,v(i||u,o)]:[2,this.bridgeInitFn().then(function(h){return h(i||u,o)})]})})}var e=Rt&&Rt.__awaiter||function(n,i,u,o){function v(c){return c instanceof u?c:new u(function(h){h(c)})}return new(u||(u=Promise))(function(c,h){function E(p){try{s(o.next(p))}catch(m){h(m)}}function g(p){try{s(o.throw(p))}catch(m){h(m)}}function s(p){p.done?c(p.value):v(p.value).then(E,g)}s((o=o.apply(n,i||[])).next())})},r=Rt&&Rt.__generator||function(n,i){function u(s){return function(p){return o([s,p])}}function o(s){if(v)throw new TypeError("Generator is already executing.");for(;g;)try{if(v=1,c&&(h=2&s[0]?c.return:s[0]?c.throw||((h=c.return)&&h.call(c),0):c.next)&&!(h=h.call(c,s[1])).done)return h;switch(c=0,h&&(s=[2&s[0],h.value]),s[0]){case 0:case 1:h=s;break;case 4:return g.label++,{value:s[1],done:!1};case 5:g.label++,c=s[1],s=[0];continue;case 7:s=g.ops.pop(),g.trys.pop();continue;default:if(h=g.trys,!(h=h.length>0&&h[h.length-1])&&(s[0]===6||s[0]===2)){g=0;continue}if(s[0]===3&&(!h||s[1]>h[0]&&s[1]0&&g[g.length-1])&&(m[0]===6||m[0]===2)){p=0;continue}if(m[0]===3&&(!g||m[1]>g[0]&&m[1]0&&E[E.length-1])&&(p[0]===6||p[0]===2)){s=0;continue}if(p[0]===3&&(!E||p[1]>E[0]&&p[1]0&&E[E.length-1])&&(p[0]===6||p[0]===2)){s=0;continue}if(p[0]===3&&(!E||p[1]>E[0]&&p[1]0&&h[h.length-1])&&(s[0]===6||s[0]===2)){g=0;continue}if(s[0]===3&&(!h||s[1]>h[0]&&s[1]0&&E[E.length-1])&&(p[0]===6||p[0]===2)){s=0;continue}if(p[0]===3&&(!E||p[1]>E[0]&&p[1]0&&E[E.length-1])&&(p[0]===6||p[0]===2)){s=0;continue}if(p[0]===3&&(!E||p[1]>E[0]&&p[1]-1||!!h.containerId})(),g=(function(){if(i){if(h.version)return h.version;var N=c.match(/aliapp\(\w+\/([a-zA-Z0-9.-]+)\)/);return N===null&&(N=c.match(/dingtalk\/([a-zA-Z0-9.-]+)/)),N&&N[1]||"Unknown"}return n.appVersion})(),s=!!h.containerId,p=/iphone|ipod|ios/.test(c),m=/ipad/.test(c),S=c.indexOf("android")>-1,l=c.indexOf("mac")>-1&&s,C=c.indexOf("win")>-1&&s,b=!l&&!C&&s,k=s,B="";return B=E?p||u?a.PLATFORM.IOS:S||o?a.PLATFORM.ANDROID:m?a.PLATFORM.IPAD:l?a.PLATFORM.MAC:C?a.PLATFORM.WINDOWS:b?a.PLATFORM.BROWSER:a.PLATFORM.UNKNOWN:a.PLATFORM.UNKNOWN,{isDingTalk:E,isWebiOS:p,isWebAndroid:S,isWeexiOS:u,isWeexAndroid:o,isDingTalkPCMac:l,isDingTalkPCWeb:b,isDingTalkPCWindows:C,isDingTalkPC:k,runtime:e,framework:r,platform:B,version:g,isWeex:v}}Object.defineProperty(ta,"__esModule",{value:!0});var a=YI();return ta.default=t,ta}var Yv;function _B(){if(Yv)return Zr;Yv=1;function t(){var c={};switch(u){case r.FRAMEWORK.VUE:var h=weex.config,E=h.env;c.platform=E.platform,r.RUNTIME.WEEX===i&&(c.appVersion=E.appVersion,c.appName=E.appName);break;case r.FRAMEWORK.RAX:r.RUNTIME.WEEX===i&&(c.platform=navigator.platform,c.appName=navigator.appName,c.appVersion=navigator.appVersion);break;case r.FRAMEWORK.UNKNOWN:r.RUNTIME.WEB===i&&(c.platform=r.RUNTIME.WEB),r.RUNTIME.UNKNOWN===i&&(c.platform=r.RUNTIME.UNKNOWN)}return c}Object.defineProperty(Zr,"__esModule",{value:!0});var a=pB(),e=gB(),r=YI(),n=a.default().split("."),i=n[0],u=n[1],o=t(),v=e.default(i,u,o);return Zr.default=v,Zr}var vr={},Xv;function ge(){return Xv||(Xv=1,(function(t){function a(){return typeof window<"u"?window:typeof dd<"u"?dd:self}var e=vr&&vr.__assign||function(){return e=Object.assign||function(r){for(var n,i=1,u=arguments.length;i-1?a.ENV_ENUM_SUB.mac:a.ENV_ENUM_SUB.win);var y=n.getGlobalSelf();return y.__ddSDK&&y.__ddSDK.getEnv?y.__ddSDK.getEnv():{platform:Ue,platformSub:ve,version:pe,appType:H,language:ue}}})(fn)),fn}var _n={},Zv={},Rf={exports:{}},mB=Rf.exports,e0;function EB(){return e0||(e0=1,(function(t,a){(function(e,r){r()})(mB,(function(){var e=setTimeout;function r(){}function n(s,p){return function(){s.apply(p,arguments)}}function i(s){if(!(this instanceof i))throw new TypeError("Promises must be constructed via new");if(typeof s!="function")throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],E(s,this)}function u(s,p){for(;s._state===3;)s=s._value;if(s._state===0){s._deferreds.push(p);return}s._handled=!0,i._immediateFn(function(){var m=s._state===1?p.onFulfilled:p.onRejected;if(m===null){(s._state===1?o:v)(p.promise,s._value);return}var S;try{S=m(s._value)}catch(l){v(p.promise,l);return}o(p.promise,S)})}function o(s,p){try{if(p===s)throw new TypeError("A promise cannot be resolved with itself.");if(p&&(typeof p=="object"||typeof p=="function")){var m=p.then;if(p instanceof i){s._state=3,s._value=p,c(s);return}else if(typeof m=="function"){E(n(m,p),s);return}}s._state=1,s._value=p,c(s)}catch(S){v(s,S)}}function v(s,p){s._state=2,s._value=p,c(s)}function c(s){s._state===2&&s._deferreds.length===0&&i._immediateFn(function(){s._handled||i._unhandledRejectionFn(s._value)});for(var p=0,m=s._deferreds.length;p"u")throw new TypeError("Promise.all accepts an array");var S=Array.prototype.slice.call(s);if(S.length===0)return p([]);var l=S.length;function C(k,B){try{if(B&&(typeof B=="object"||typeof B=="function")){var N=B.then;if(typeof N=="function"){N.call(B,function(f){C(k,f)},m);return}}S[k]=B,--l===0&&p(S)}catch(f){m(f)}}for(var b=0;b0;)o=c.shift(),v=h.shift();return i?(v||0)>=(o||0):(v||0)>(o||0)},t.language=e.language,t.version=e.version})(mn)),mn}var En,d0;function XI(){if(d0)return En;d0=1;var t=I(),a=bB(),e=Object.assign({},a,t.ddSdk.getExportSdk());return En=e,En}var yn={},Nn={},Sn={},ia={exports:{}},IB=ia.exports,c0;function oa(){return c0||(c0=1,(function(t,a){(function(e,r){t.exports=r()})(IB,function(){return(function(e){function r(i){if(n[i])return n[i].exports;var u=n[i]={i,l:!1,exports:{}};return e[i].call(u.exports,u,u.exports,r),u.l=!0,u.exports}var n={};return r.m=e,r.c=n,r.i=function(i){return i},r.d=function(i,u,o){r.o(i,u)||Object.defineProperty(i,u,{configurable:!1,enumerable:!0,get:o})},r.n=function(i){var u=i&&i.__esModule?function(){return i.default}:function(){return i};return r.d(u,"a",u),u},r.o=function(i,u){return Object.prototype.hasOwnProperty.call(i,u)},r.p="",r(r.s=5)})([function(e,r,n){var i=n(2),u=n(3),o=n(1),v=n(4),c=new o,h=!1,E="",g=null,s=[".dingtalk.com","7ding.ai"],p={},m=/{.*}/;try{if(window.dd_bridge_config)var S=window.dd_bridge_config.match(m);else var S=window.name.match(m);if(S&&S[0])var p=JSON.parse(S[0])}catch{p={}}if(p.hostOrigin){var l=p.hostOrigin.split(":")[1];s.forEach(function(f){l.slice(0-f.length)===f&&p.containerId&&(h=!0,E=p.hostOrigin,g=p.containerId)})}var C={},b=new Promise(function(f,d){C._resolve=f,C._reject=d}),k={},B=null;window.top!==window?(B=p.corsIframe?window:window.top,C._resolve()):typeof dingtalk=="object"&&typeof dingtalk.platform=="object"&&typeof dingtalk.platform.invokeAPI=="function"&&(B=window,C._resolve()),k[v.SYS_INIT]=function(f){B=f.frameWindow,C._resolve(),f.respond({})},window.addEventListener("message",function(f){var d=f.data,M=f.origin;if(M===E){if(d.type==="response"&&d.msgId){var V=d.msgId,q=c.getMsyById(V);q&&q.methodName!==v.SYS_EVENT&&q.receiveResponse(d.body,!d.success)}else if(d.type==="event"&&d.msgId){var V=d.msgId,q=c.getMsyById(V);q&&q.receiveEvent(d.eventName,d.body)}else if(d.type==="request"&&d.msgId){var q=new u(f.source,M,d);k[q.methodName]&&k[q.methodName](q)}}}),r.invokeAPI=function(f,d){var M=new i(g,f,d);return h&&b.then(function(){B&&B.postMessage(M.getPayload(),E),c.addPending(M)}),M};var N=null;r.addEventListener=function(f,d){N||(N=r.invokeAPI(v.SYS_EVENT,{})),N.addEventListener(f,d)},r.removeEventListener=function(f,d){N&&N.removeEventListener(f,d)}},function(e,r,n){var i=function(){this.pendingMsgs={}};i.prototype.addPending=function(u){this.pendingMsgs[u.id]=u;var o=(function(){delete this.pendingMsgs[u.id],u.removeEventListener("_finish",o)}).bind(this);u.addEventListener("_finish",o)},i.prototype.getMsyById=function(u){return this.pendingMsgs[u]},e.exports=i},function(e,r,n){var i=n(8),u=n(7),o=0,v=Math.floor(1e3*Math.random()),c=function(){return 1e3*(1e3*v+Math.floor(1e3*Math.random()))+ ++o%1e3},h={code:408,reason:"timeout"},E={TIMEOUT:"_timeout",FINISH:"_finish"},g={timeout:-1},s=function(p,m,C,l){this.id=c(),this.methodName=m,this.containerId=p,this.option=u({},g,l);var C=C||{};this._p={},this.result=new Promise((function(b,k){this._p._resolve=b,this._p._reject=k}).bind(this)),this.callbacks={},this.plainMsg=this._handleMsg(C),this._eventsHandle={},this._timeoutTimer=null,this._initTimeout(),this.isFinish=!1};s.prototype._initTimeout=function(){this._clearTimeout(),this.option.timeout>0&&(this._timeoutTimer=setTimeout((function(){this.receiveEvent(E.TIMEOUT),this.receiveResponse(h,!0)}).bind(this),this.option.timeout))},s.prototype._clearTimeout=function(){clearTimeout(this._timeoutTimer)},s.prototype._handleMsg=function(p){var m={};return Object.keys(p).forEach((function(S){var l=p[S];typeof l=="function"&&S.slice(0,2)==="on"?this.callbacks[S]=l:m[S]=i(l)}).bind(this)),m},s.prototype.getPayload=function(){return{msgId:this.id,containerId:this.containerId,methodName:this.methodName,body:this.plainMsg,type:"request"}},s.prototype.receiveEvent=function(p,m){if(this.isFinish&&p!==E.FINISH)return!1;p!==E.FINISH&&p!==E.TIMEOUT&&this._initTimeout(),Array.isArray(this._eventsHandle[p])&&this._eventsHandle[p].forEach(function(l){try{l(m)}catch{console.error(m)}});var S="on"+p.charAt(0).toUpperCase()+p.slice(1);return this.callbacks[S]&&this.callbacks[S](m),!0},s.prototype.addEventListener=function(p,m){if(!p||typeof m!="function")throw"eventName is null or handle is not a function, addEventListener fail";Array.isArray(this._eventsHandle[p])||(this._eventsHandle[p]=[]),this._eventsHandle[p].push(m)},s.prototype.removeEventListener=function(p,m){if(!p||!m)throw"eventName is null or handle is null, invoke removeEventListener fail";if(Array.isArray(this._eventsHandle[p])){var S=this._eventsHandle[p].indexOf(m);S!==-1&&this._eventsHandle[p].splice(S,1)}},s.prototype.receiveResponse=function(p,S){if(this.isFinish===!0)return!1;this._clearTimeout();var S=!!S;return S?this._p._reject(p):this._p._resolve(p),setTimeout((function(){this.receiveEvent(E.FINISH)}).bind(this),0),this.isFinish=!0,!0},e.exports=s},function(e,r,n){var i=function(u,o,v){if(this._msgId=v.msgId,this.frameWindow=u,this.methodName=v.methodName,this.clientOrigin=o,this.containerId=v.containerId,this.params=v.body,!this._msgId)throw"msgId not exist";if(!this.frameWindow)throw"frameWindow not exist";if(!this.methodName)throw"methodName not exits";if(!this.clientOrigin)throw"clientOrigin not exist";this.hasResponded=!1};i.prototype.respond=function(u,v){var v=!!v;if(this.hasResponded!==!0){var c={type:"response",success:!v,body:u,msgId:this._msgId};this.frameWindow.postMessage(c,this.clientOrigin),this.hasResponded=!0}},i.prototype.emit=function(u,o){var v={type:"event",eventName:u,body:o,msgId:this._msgId};this.frameWindow.postMessage(v,this.clientOrigin)},e.exports=i},function(e,r,n){e.exports={SYS_EVENT:"SYS_openAPIContainerInitEvent",SYS_INIT:"SYS_openAPIContainerInit"}},function(e,r,n){var i=n(0);e.exports=i},function(e,r,n){(function(i,u){function o(O,$){return O.set($[0],$[1]),O}function v(O,$){return O.add($),O}function c(O,$){for(var J=-1,le=O.length;++J-1}function P(O,$){var J=this.__data__,le=re(J,O);return le<0?J.push([O,$]):J[le][1]=$,this}function L(O){var $=-1,J=O?O.length:0;for(this.clear();++$-1&&O%1==0&&O<$}function tt(O){var $=typeof O;return $=="string"||$=="number"||$=="symbol"||$=="boolean"?O!=="__proto__":O===null}function rt(O){var $=O&&O.constructor;return O===(typeof $=="function"&&$.prototype||Xe)}function Qe(O){if(O!=null){try{return st.call(O)}catch{}try{return O+""}catch{}}return""}function ot(O,$){return O===$||O!==O&&$!==$}function ct(O){return pt(O)&&dt.call(O,"callee")&&(!va.call(O,"callee")||et.call(O)==Be)}function lt(O){return O!=null&&yt(Sa(O))&&!gt(O)}function pt(O){return Oe(O)&<(O)}function gt(O){var $=_t(O)?et.call(O):"";return $==Re||$==xe}function yt(O){return typeof O=="number"&&O>-1&&O%1==0&&O<=qe}function _t(O){var $=typeof O;return!!O&&($=="object"||$=="function")}function Oe(O){return!!O&&typeof O=="object"}function Ge(O){return!!_t(O)&&(gt(O)||p(O)?ut:ir).test(Qe(O))}function Ke(O){return typeof O=="string"||!er(O)&&Oe(O)&&et.call(O)==Tt}function Ve(O){var $=rt(O);if(!$&&!lt(O))return _(O);var J=Je(O),le=!!J,Ye=J||[],vt=Ye.length;for(var at in O)!R(O,at)||le&&(at=="length"||Ze(at,vt))||$&&at=="constructor"||Ye.push(at);return Ye}var $e=200,Le="__lodash_hash_undefined__",qe=9007199254740991,Be="[object Arguments]",Fe="[object Boolean]",je="[object Date]",Re="[object Function]",xe="[object GeneratorFunction]",Ie="[object Map]",we="[object Number]",De="[object Object]",ze="[object RegExp]",Pt="[object Set]",Tt="[object String]",Gt="[object Symbol]",mt="[object ArrayBuffer]",At="[object DataView]",Kt="[object Float32Array]",$t="[object Float64Array]",Wt="[object Int8Array]",Ht="[object Int16Array]",Qt="[object Int32Array]",Yt="[object Uint8Array]",Xt="[object Uint8ClampedArray]",Jt="[object Uint16Array]",nt="[object Uint32Array]",ar=/[\\^$.*+?()[\]{}|]/g,nr=/\w*$/,ir=/^\[object .+?Constructor\]$/,or=/^(?:0|[1-9]\d*)$/,A={};A[Be]=A["[object Array]"]=A[mt]=A[At]=A[Fe]=A[je]=A[Kt]=A[$t]=A[Wt]=A[Ht]=A[Qt]=A[Ie]=A[we]=A[De]=A[ze]=A[Pt]=A[Tt]=A[Gt]=A[Yt]=A[Xt]=A[Jt]=A[nt]=!0,A["[object Error]"]=A[Re]=A["[object WeakMap]"]=!1;var T={function:!0,object:!0},D=T[typeof r]&&r&&!r.nodeType?r:void 0,G=T[typeof i]&&i&&!i.nodeType?i:void 0,Q=G&&G.exports===D?D:void 0,X=s(D&&G&&typeof u=="object"&&u),oe=s(T[typeof self]&&self),ae=s(T[typeof window]&&window),ye=s(T[typeof this]&&this),Pe=X||ae!==(ye&&ye.window)&&ae||oe||ye||Function("return this")(),it=Array.prototype,Xe=Object.prototype,st=Function.prototype.toString,dt=Xe.hasOwnProperty,et=Xe.toString,ut=RegExp("^"+st.call(dt).replace(ar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),St=Q?Pe.Buffer:void 0,ft=Pe.Symbol,kt=Pe.Uint8Array,zr=Object.getOwnPropertySymbols,fa=Object.create,va=Xe.propertyIsEnumerable,ha=it.splice,pa=Object.getPrototypeOf,ga=Object.keys,ur=Ce(Pe,"DataView"),Zt=Ce(Pe,"Map"),sr=Ce(Pe,"Promise"),dr=Ce(Pe,"Set"),cr=Ce(Pe,"WeakMap"),Vt=Ce(Object,"create"),_a=Qe(ur),ma=Qe(Zt),Ea=Qe(sr),ya=Qe(dr),Na=Qe(cr),Gr=ft?ft.prototype:void 0,Kr=Gr?Gr.valueOf:void 0;l.prototype.clear=C,l.prototype.delete=b,l.prototype.get=k,l.prototype.has=B,l.prototype.set=N,f.prototype.clear=d,f.prototype.delete=M,f.prototype.get=V,f.prototype.has=q,f.prototype.set=P,L.prototype.clear=j,L.prototype.delete=z,L.prototype.get=K,L.prototype.has=H,L.prototype.set=Z,te.prototype.clear=ue,te.prototype.delete=de,te.prototype.get=pe,te.prototype.has=Se,te.prototype.set=ee;var Sa=(function(O){return function($){return $==null?void 0:$.length}})();zr||(be=function(){return[]}),(ur&&Ee(new ur(new ArrayBuffer(1)))!=At||Zt&&Ee(new Zt)!=Ie||sr&&Ee(sr.resolve())!="[object Promise]"||dr&&Ee(new dr)!=Pt||cr&&Ee(new cr)!="[object WeakMap]")&&(Ee=function(O){var $=et.call(O),J=$==De?O.constructor:void 0,le=J?Qe(J):void 0;if(le)switch(le){case _a:return At;case ma:return Ie;case Ea:return"[object Promise]";case ya:return Pt;case Na:return"[object WeakMap]"}return $});var er=Array.isArray,Ca=St?function(O){return O instanceof St}:(function(O){return function(){return!1}})();i.exports=ve}).call(r,n(12)(e),n(11))},function(e,r,n){function i(P,L,j){var z=P[L];N.call(P,L)&&h(z,j)&&(j!==void 0||L in P)||(P[L]=j)}function u(P,L,j,z){j||(j={});for(var K=-1,H=L.length;++K-1&&P%1==0&&P-1&&P%1==0&&P<=l}function p(P){var L=typeof P;return!!P&&(L=="object"||L=="function")}var m=n(9),S=n(10),l=9007199254740991,C="[object Function]",b="[object GeneratorFunction]",k=/^(?:0|[1-9]\d*)$/,B=Object.prototype,N=B.hasOwnProperty,f=B.toString,d=B.propertyIsEnumerable,M=!d.call({valueOf:1},"valueOf"),V=(function(P){return function(L){return L==null?void 0:L.length}})(),q=(function(P){return S(function(L,j){var z=-1,K=j.length,H=K>1?j[K-1]:void 0,Z=K>2?j[2]:void 0;for(H=P.length>3&&typeof H=="function"?(K--,H):void 0,Z&&v(j[0],j[1],Z)&&(H=K<3?void 0:H,K=1),L=Object(L);++z-1&&P%1==0&&P-1&&P%1==0&&P<=l}function p(P){var L=typeof P;return!!P&&(L=="object"||L=="function")}function m(P){return!!P&&typeof P=="object"}function S(P){return h(P)?i(P):u(P)}var l=9007199254740991,C="[object Arguments]",b="[object Function]",k="[object GeneratorFunction]",B=/^(?:0|[1-9]\d*)$/,N=Object.prototype,f=N.hasOwnProperty,d=N.toString,M=N.propertyIsEnumerable,V=(function(P,L){return function(j){return P(L(j))}})(Object.keys,Object),q=Array.isArray;e.exports=S},function(e,r){function n(V,q,P){switch(P.length){case 0:return V.call(q);case 1:return V.call(q,P[0]);case 2:return V.call(q,P[0],P[1]);case 3:return V.call(q,P[0],P[1],P[2])}return V.apply(q,P)}function i(V,q){return q=M(q===void 0?V.length-1:q,0),function(){for(var P=arguments,L=-1,j=M(P.length-q,0),z=Array(j);++L"u"?void 0:new WeakMap})(),i=function(o,v){if(n){var c=n.get(v);return c===void 0?(c=function(h){var E=h.detail;if(E.namespace&&E.eventName){var g=E.namespace+"."+E.eventName;c&&c[r].indexOf(g)!==-1&&v(E.data)}},c[r]=[o],n.set(v,c)):c[r].indexOf(o)===-1&&c[r].push(o),c}},u=function(o,v){if(n){var c=n.get(v);return c&&c[r].indexOf(o)!==-1&&c[r].splice(c[r].indexOf(o),1),c&&c[r].length<=1?c:void 0}};t.on=function(o,v){if(a.indexOf(o)!==-1)document.addEventListener(o,v);else{var c=i(o,v);c?document.addEventListener(e,c):console.log("bind event : "+o+" need WeakMap support , current environment doesnot")}},t.off=function(o,v){if(a.indexOf(o)!==-1)document.removeEventListener(o,v);else{var c=u(o,v);c&&document.removeEventListener(e,c)}}})(An)),An}var na={},E0;function $f(){return E0||(E0=1,(function(t){var a=na;Object.defineProperty(t,"__esModule",{value:!0}),t.off=t.on=void 0;var e=Gf();t.on=function(r,n){e.requireModule("globalEvent").addEventListener(r,function(i){var u={preventDefault:function(){throw new Error("does not support preventDefault")},detail:i};n.call(a,u)})},t.off=function(r,n){e.requireModule("globalEvent").removeEventListener(r,n)}})(na)),na}var y0;function JI(){return y0||(y0=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.platformConfig=void 0;var a=I(),e=Ut(),r=Ct(),n=ca(),i=zf(),u=MB(),o=Gf(),v=Kf(),c=$f(),h=xr();t.platformConfig={platform:e.ENV_ENUM.android,bridgeInit:function(){var E=e.getENV();return E.appType===r.APP_TYPE.MINI_APP?Promise.resolve(n.default):E.appType===r.APP_TYPE.WEBVIEW_IN_MINIAPP?Promise.resolve(i.default):E.appType===r.APP_TYPE.WEEX?o.androidWeexBridge():u.h5AndroidbridgeInit().then(function(){return u.default})},authMethod:"runtime.permission.requestJsApis",authParamsDeal:function(E){var g=Object.assign({},E);return E.jsApiList&&(g.jsApiList=E.jsApiList.map(function(s){return h.default[s]?h.default[s]:s})),g},event:{on:function(E,g){var s=e.getENV();switch(s.appType){case r.APP_TYPE.WEB:case r.APP_TYPE.WEBVIEW_IN_MINIAPP:v.on(E,g);break;case r.APP_TYPE.WEEX:c.on(E,g);break;default:throw new Error("Not support global event in the platfrom: "+s.appType)}},off:function(E,g){var s=e.getENV();switch(s.appType){case r.APP_TYPE.WEB:case r.APP_TYPE.WEBVIEW_IN_MINIAPP:v.off(E,g);break;case r.APP_TYPE.WEEX:c.off(E,g);break;default:throw new Error("Not support global event in the platfrom: "+s.appType)}}}},a.ddSdk.setPlatform(t.platformConfig)})(bn)),bn}var kn={},Mn={},N0;function UB(){return N0||(N0=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.h5IosBridgeInit=void 0;var a;t.h5IosBridgeInit=function(){return a||(a=new Promise(function(r,n){if(typeof WebViewJavascriptBridge<"u"){try{WebViewJavascriptBridge.init(function(i,u){})}catch{return n()}return r({})}document.addEventListener("WebViewJavascriptBridgeReady",function(){if(typeof WebViewJavascriptBridge>"u")return n();try{WebViewJavascriptBridge.init(function(i,u){})}catch{return n()}return r({})},!1)})),a};var e=function(r,n){return a||(a=t.h5IosBridgeInit()),a.then(function(){var i=Object.assign({},n);return new Promise(function(u,o){if(i.watch===!0){var v=i.onSuccess;delete i.onSuccess,typeof i.success=="function"&&(v=i.success,delete i.success),typeof WebViewJavascriptBridge<"u"&&WebViewJavascriptBridge.registerHandler(r,function(c,h){typeof v=="function"&&v.call(null,c),h&&h({errorCode:"0",errorMessage:"success"})})}window.WebViewJavascriptBridge!==void 0&&window.WebViewJavascriptBridge.callHandler(r,Object.assign({},i),function(c){var h=c||{};h.errorCode==="0"?(typeof i.success=="function"?i.success.call(null,h.result):typeof i.onSuccess=="function"&&i.onSuccess.call(null,h.result),u(h.result)):(h.errorCode==="-1"?typeof i.cancel=="function"?i.cancel.call(null,h,h.errorCode):typeof i.onCancel=="function"&&i.onCancel.call(null,h,h.errorCode):typeof i.fail=="function"?i.fail.call(null,h,h.errorCode):typeof i.onFail=="function"&&i.onFail.call(null,h,h.errorCode),o(h))})})})};t.default=e})(Mn)),Mn}var S0;function ZI(){return S0||(S0=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.platformConfig=void 0;var a=I(),e=Ut(),r=Ct(),n=ca(),i=zf(),u=UB(),o=Gf(),v=Kf(),c=xr(),h=$f();t.platformConfig={platform:e.ENV_ENUM.ios,bridgeInit:function(){var E=e.getENV();return E.appType===r.APP_TYPE.MINI_APP?Promise.resolve(n.default):E.appType===r.APP_TYPE.WEBVIEW_IN_MINIAPP?Promise.resolve(i.default):E.appType===r.APP_TYPE.WEEX?o.iosWeexBridge():u.h5IosBridgeInit().then(function(){return u.default})},authMethod:"runtime.permission.requestJsApis",authParamsDeal:function(E){var g=Object.assign({},E);return E.jsApiList&&(g.jsApiList=E.jsApiList.map(function(s){return c.default[s]?c.default[s]:s})),g},event:{on:function(E,g){var s=e.getENV();switch(s.appType){case r.APP_TYPE.WEB:case r.APP_TYPE.WEBVIEW_IN_MINIAPP:v.on(E,g);break;case r.APP_TYPE.WEEX:h.on(E,g);break;default:throw new Error("Not support global event in the platfrom: "+s.appType)}},off:function(E,g){var s=e.getENV();switch(s.appType){case r.APP_TYPE.WEB:case r.APP_TYPE.WEBVIEW_IN_MINIAPP:v.off(E,g);break;case r.APP_TYPE.WEEX:h.off(E,g);break;default:throw new Error("Not support global event in the platfrom: "+s.appType)}}}},a.ddSdk.setPlatform(t.platformConfig)})(kn)),kn}var Un={},Tn={},C0;function TB(){return C0||(C0=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.h5HarmonyBridgeInit=void 0;var a;t.h5HarmonyBridgeInit=function(){return a||(a=new Promise(function(r,n){if(typeof DingTalkJSBridge<"u"){try{DingTalkJSBridge.init(function(i,u){})}catch{return n()}return r({})}document.addEventListener("DingTalkJSBridgeReady",function(){if(typeof DingTalkJSBridge>"u")return n();try{DingTalkJSBridge.init(function(i,u){})}catch{return n()}return r({})},!1)})),a};var e=function(r,n){return a||(a=t.h5HarmonyBridgeInit()),a.then(function(){return new Promise(function(i,u){var o=function(v){v.success?((function(c){typeof n.success=="function"?n.success(c):typeof n.onSuccess=="function"&&n.onSuccess(c)})(v.body),i(v.body)):((function(c){typeof n.fail=="function"?n.fail(c):typeof n.onFail=="function"&&n.onFail(c)})(v.body),u(v.body))};typeof window.DingTalkJSBridge.call=="function"&&window.DingTalkJSBridge.call(r,n,o)})})};t.default=e})(Tn)),Tn}var b0;function eP(){return b0||(b0=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.platformConfig=void 0;var a=I(),e=Ut(),r=Ct(),n=ca(),i=zf(),u=TB(),o=Kf(),v=$f(),c=xr();t.platformConfig={platform:e.ENV_ENUM.harmony,bridgeInit:function(){var h=e.getENV();return h.appType===r.APP_TYPE.MINI_APP?Promise.resolve(n.default):h.appType===r.APP_TYPE.WEBVIEW_IN_MINIAPP?Promise.resolve(i.default):u.h5HarmonyBridgeInit().then(function(){return u.default})},authMethod:"runtime.permission.requestJsApis",authParamsDeal:function(h){var E=Object.assign({},h);return h.jsApiList&&(E.jsApiList=h.jsApiList.map(function(g){return c.default[g]?c.default[g]:g})),E},event:{on:function(h,E){var g=e.getENV();switch(g.appType){case r.APP_TYPE.WEB:case r.APP_TYPE.WEBVIEW_IN_MINIAPP:o.on(h,E);break;case r.APP_TYPE.WEEX:v.on(h,E);break;default:throw new Error("Not support global event in the platfrom: "+g.appType)}},off:function(h,E){var g=e.getENV();switch(g.appType){case r.APP_TYPE.WEB:case r.APP_TYPE.WEBVIEW_IN_MINIAPP:o.off(h,E);break;case r.APP_TYPE.WEEX:v.off(h,E);break;default:throw new Error("Not support global event in the platfrom: "+g.appType)}}}},a.ddSdk.setPlatform(t.platformConfig)})(Un)),Un}var I0;function VB(){return I0||(I0=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),kB(),JI(),ZI(),eP()})(yn)),yn}var P0;function bt(){if(P0)return cn.exports;P0=1;var t=XI();return VB(),cn.exports=t,cn.exports}var Vn={},Bn={},A0;function BB(){return A0||(A0=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.beaconPicker$=void 0;var r=I(),n="biz.ATMBle.beaconPicker";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"5.0.7"},e[r.ENV_ENUM.android]={vs:"5.0.7"},e)),t.beaconPicker$=a,t.default=a})(Bn)),Bn}var Rn={},k0;function RB(){return k0||(k0=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.detectFace$=void 0;var r=I(),n="biz.ATMBle.detectFace";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"5.1.18"},e[r.ENV_ENUM.android]={vs:"5.1.18"},e)),t.detectFace$=a,t.default=a})(Rn)),Rn}var wn={},M0;function wB(){return M0||(M0=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.detectFaceFullScreen$=void 0;var r=I(),n="biz.ATMBle.detectFaceFullScreen";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"5.1.18"},e[r.ENV_ENUM.android]={vs:"5.1.18"},e)),t.detectFaceFullScreen$=a,t.default=a})(wn)),wn}var Dn={},U0;function DB(){return U0||(U0=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.exclusiveLiveCheck$=void 0;var r=I(),n="biz.ATMBle.exclusiveLiveCheck";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"6.5.40"},e[r.ENV_ENUM.android]={vs:"6.5.40"},e)),t.exclusiveLiveCheck$=a,t.default=a})(Dn)),Dn}var On={},T0;function OB(){return T0||(T0=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.faceManager$=void 0;var r=I(),n="biz.ATMBle.faceManager";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"5.0.7"},e[r.ENV_ENUM.android]={vs:"5.0.7"},e)),t.faceManager$=a,t.default=a})(On)),On}var Ln={},V0;function LB(){return V0||(V0=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.punchModePicker$=void 0;var r=I(),n="biz.ATMBle.punchModePicker";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"5.0.7"},e[r.ENV_ENUM.android]={vs:"5.0.7"},e)),t.punchModePicker$=a,t.default=a})(Ln)),Ln}var qn={},B0;function qB(){return B0||(B0=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.bindAlipay$=void 0;var r=I(),n="biz.alipay.bindAlipay";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"6.3.15"},e[r.ENV_ENUM.android]={vs:"6.3.15"},e)),t.bindAlipay$=a,t.default=a})(qn)),qn}var Fn={},R0;function FB(){return R0||(R0=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.openAuth$=void 0;var r=I(),n="biz.alipay.openAuth";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"5.1.8"},e[r.ENV_ENUM.android]={vs:"5.1.8"},e)),t.openAuth$=a,t.default=a})(Fn)),Fn}var jn={},w0;function jB(){return w0||(w0=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.pay$=void 0;var r=I(),n="biz.alipay.pay";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"2.8.0"},e[r.ENV_ENUM.android]={vs:"2.8.0"},e)),t.pay$=a,t.default=a})(jn)),jn}var xn={},D0;function xB(){return D0||(D0=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.getLBSWua$=void 0;var r=I(),n="biz.attend.getLBSWua";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"7.0.35"},e[r.ENV_ENUM.android]={vs:"7.0.35"},e)),t.getLBSWua$=a,t.default=a})(xn)),xn}var zn={},O0;function zB(){return O0||(O0=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.openAccountPwdLoginPage$=void 0;var r=I(),n="biz.auth.openAccountPwdLoginPage";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"6.3.0"},e[r.ENV_ENUM.android]={vs:"6.3.0"},e)),t.openAccountPwdLoginPage$=a,t.default=a})(zn)),zn}var Gn={},L0;function GB(){return L0||(L0=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.requestAuthInfo$=void 0;var r=I(),n="biz.auth.requestAuthInfo";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"5.1.19"},e[r.ENV_ENUM.android]={vs:"5.1.19"},e)),t.requestAuthInfo$=a,t.default=a})(Gn)),Gn}var Kn={},q0;function KB(){return q0||(q0=1,(function(t){function a(u){return r.ddSdk.invokeAPI(i,u)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.chooseDateTime$=void 0;var r=I(),n=ge(),i="biz.calendar.chooseDateTime";r.ddSdk.setAPI(i,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0",paramsDeal:n.addDefaultCorpIdParamsDeal},e[r.ENV_ENUM.ios]={vs:"3.5.0",paramsDeal:n.addDefaultCorpIdParamsDeal},e[r.ENV_ENUM.android]={vs:"3.5.0",paramsDeal:n.addDefaultCorpIdParamsDeal},e)),t.chooseDateTime$=a,t.default=a})(Kn)),Kn}var $n={},F0;function $B(){return F0||(F0=1,(function(t){function a(u){return r.ddSdk.invokeAPI(i,u)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.chooseHalfDay$=void 0;var r=I(),n=ge(),i="biz.calendar.chooseHalfDay";r.ddSdk.setAPI(i,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"3.5.0",paramsDeal:n.addDefaultCorpIdParamsDeal},e[r.ENV_ENUM.android]={vs:"3.5.0",paramsDeal:n.addDefaultCorpIdParamsDeal},e)),t.chooseHalfDay$=a,t.default=a})($n)),$n}var Wn={},j0;function WB(){return j0||(j0=1,(function(t){function a(u){return r.ddSdk.invokeAPI(i,u)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.chooseInterval$=void 0;var r=I(),n=ge(),i="biz.calendar.chooseInterval";r.ddSdk.setAPI(i,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"3.5.0",paramsDeal:n.addDefaultCorpIdParamsDeal},e[r.ENV_ENUM.android]={vs:"3.5.0",paramsDeal:n.addDefaultCorpIdParamsDeal},e)),t.chooseInterval$=a,t.default=a})(Wn)),Wn}var Hn={},x0;function HB(){return x0||(x0=1,(function(t){function a(u){return r.ddSdk.invokeAPI(i,u)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.chooseOneDay$=void 0;var r=I(),n=ge(),i="biz.calendar.chooseOneDay";r.ddSdk.setAPI(i,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"3.5.0",paramsDeal:n.addDefaultCorpIdParamsDeal},e[r.ENV_ENUM.android]={vs:"3.5.0",paramsDeal:n.addDefaultCorpIdParamsDeal},e)),t.chooseOneDay$=a,t.default=a})(Hn)),Hn}var Qn={},z0;function QB(){return z0||(z0=1,(function(t){function a(o){return r.ddSdk.invokeAPI(i,o)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.chooseConversationByCorpId$=void 0;var r=I(),n=ge(),i="biz.chat.chooseConversationByCorpId",u=n.genDefaultParamsDealFn({max:50});r.ddSdk.setAPI(i,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0",paramsDeal:u},e[r.ENV_ENUM.ios]={vs:"2.6.0",paramsDeal:u},e[r.ENV_ENUM.android]={vs:"2.6.0",paramsDeal:u},e[r.ENV_ENUM.pc]={vs:"4.7.11",paramsDeal:u},e)),t.chooseConversationByCorpId$=a,t.default=a})(Qn)),Qn}var Yn={},G0;function YB(){return G0||(G0=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.collectSticker$=void 0;var r=I(),n="biz.chat.collectSticker";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"4.6.25"},e[r.ENV_ENUM.android]={vs:"4.6.25"},e)),t.collectSticker$=a,t.default=a})(Yn)),Yn}var Xn={},K0;function XB(){return K0||(K0=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.createSceneGroup$=void 0;var r=I(),n="biz.chat.createSceneGroup";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"4.7.17"},e[r.ENV_ENUM.android]={vs:"4.7.17"},e[r.ENV_ENUM.pc]={vs:"4.7.17"},e)),t.createSceneGroup$=a,t.default=a})(Xn)),Xn}var Jn={},$0;function JB(){return $0||($0=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.getRealmCid$=void 0;var r=I(),n="biz.chat.getRealmCid";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"4.7.12"},e[r.ENV_ENUM.android]={vs:"4.7.12"},e[r.ENV_ENUM.pc]={vs:"4.7.12"},e)),t.getRealmCid$=a,t.default=a})(Jn)),Jn}var Zn={},W0;function ZB(){return W0||(W0=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.locationChatMessage$=void 0;var r=I(),n="biz.chat.locationChatMessage";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"2.7.6"},e[r.ENV_ENUM.android]={vs:"2.7.6"},e)),t.locationChatMessage$=a,t.default=a})(Zn)),Zn}var ei={},H0;function eR(){return H0||(H0=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.openSingleChat$=void 0;var r=I(),n="biz.chat.openSingleChat";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"3.4.10"},e[r.ENV_ENUM.android]={vs:"3.4.10"},e)),t.openSingleChat$=a,t.default=a})(ei)),ei}var ti={},Q0;function tR(){return Q0||(Q0=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.pickConversation$=void 0;var r=I(),n="biz.chat.pickConversation";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"2.4.2"},e[r.ENV_ENUM.android]={vs:"2.4.2"},e[r.ENV_ENUM.pc]={vs:"4.7.9"},e)),t.pickConversation$=a,t.default=a})(ti)),ti}var ri={},Y0;function rR(){return Y0||(Y0=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.sendEmotion$=void 0;var r=I(),n="biz.chat.sendEmotion";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"4.6.12"},e[r.ENV_ENUM.android]={vs:"4.6.12"},e)),t.sendEmotion$=a,t.default=a})(ri)),ri}var ai={},X0;function aR(){return X0||(X0=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.toConversation$=void 0;var r=I(),n="biz.chat.toConversation";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"2.6.0"},e[r.ENV_ENUM.android]={vs:"2.6.0"},e)),t.toConversation$=a,t.default=a})(ai)),ai}var ni={},J0;function nR(){return J0||(J0=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.toConversationByOpenConversationId$=void 0;var r=I(),n="biz.chat.toConversationByOpenConversationId";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"5.1.30"},e[r.ENV_ENUM.android]={vs:"5.1.30"},e[r.ENV_ENUM.pc]={vs:"5.1.33"},e)),t.toConversationByOpenConversationId$=a,t.default=a})(ni)),ni}var ii={},Z0;function iR(){return Z0||(Z0=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.setData$=void 0;var r=I(),n="biz.clipboardData.setData";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"2.7.0"},e[r.ENV_ENUM.android]={vs:"2.7.0"},e[r.ENV_ENUM.pc]={vs:"4.6.1"},e)),t.setData$=a,t.default=a})(ii)),ii}var oi={},eh;function oR(){return eh||(eh=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.createCloudCall$=void 0;var r=I(),n="biz.conference.createCloudCall";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"6.0.0"},e[r.ENV_ENUM.android]={vs:"6.0.0"},e[r.ENV_ENUM.pc]={vs:"6.0.9"},e)),t.createCloudCall$=a,t.default=a})(oi)),oi}var ui={},th;function uR(){return th||(th=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.getCloudCallInfo$=void 0;var r=I(),n="biz.conference.getCloudCallInfo";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"6.0.0"},e[r.ENV_ENUM.android]={vs:"6.0.0"},e[r.ENV_ENUM.pc]={vs:"6.0.9"},e)),t.getCloudCallInfo$=a,t.default=a})(ui)),ui}var si={},rh;function sR(){return rh||(rh=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.getCloudCallList$=void 0;var r=I(),n="biz.conference.getCloudCallList";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"6.0.0"},e[r.ENV_ENUM.android]={vs:"6.0.0"},e[r.ENV_ENUM.pc]={vs:"6.0.9"},e)),t.getCloudCallList$=a,t.default=a})(si)),si}var di={},ah;function dR(){return ah||(ah=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.videoConfCall$=void 0;var r=I(),n="biz.conference.videoConfCall";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"5.0.8"},e[r.ENV_ENUM.android]={vs:"5.0.8"},e[r.ENV_ENUM.pc]={vs:"5.1.28"},e)),t.videoConfCall$=a,t.default=a})(di)),di}var ci={},nh;function cR(){return nh||(nh=1,(function(t){function a(o){return r.ddSdk.invokeAPI(i,o)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.choose$=void 0;var r=I(),n=ge(),i="biz.contact.choose",u=n.genDefaultParamsDealFn({multiple:!0,startWithDepartmentId:0,users:[]});r.ddSdk.setAPI(i,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.pc]={vs:"2.5.0"},e[r.ENV_ENUM.ios]={vs:"2.4.0",paramsDeal:u},e[r.ENV_ENUM.android]={vs:"2.4.0",paramsDeal:u},e)),t.choose$=a,t.default=a})(ci)),ci}var li={},ih;function lR(){return ih||(ih=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.chooseMobileContacts$=void 0;var r=I(),n="biz.contact.chooseMobileContacts";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"3.1"},e[r.ENV_ENUM.android]={vs:"3.1"},e)),t.chooseMobileContacts$=a,t.default=a})(li)),li}var fi={},oh;function fR(){return oh||(oh=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.complexPicker$=void 0;var r=I(),n="biz.contact.complexPicker";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"2.9.0"},e[r.ENV_ENUM.android]={vs:"2.9.0"},e[r.ENV_ENUM.pc]={vs:"4.3.5"},e)),t.complexPicker$=a,t.default=a})(fi)),fi}var vi={},uh;function vR(){return uh||(uh=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.createGroup$=void 0;var r=I(),n="biz.contact.createGroup";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"2.4.0"},e[r.ENV_ENUM.android]={vs:"2.4.0"},e[r.ENV_ENUM.pc]={vs:"4.6.1"},e)),t.createGroup$=a,t.default=a})(vi)),vi}var hi={},sh;function hR(){return sh||(sh=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.departmentsPicker$=void 0;var r=I(),n="biz.contact.departmentsPicker";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.pc]={vs:"4.2.5"},e[r.ENV_ENUM.ios]={vs:"3.0"},e[r.ENV_ENUM.android]={vs:"3.0"},e)),t.departmentsPicker$=a,t.default=a})(hi)),hi}var pi={},dh;function pR(){return dh||(dh=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.externalComplexPicker$=void 0;var r=I(),n="biz.contact.externalComplexPicker";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.pc]={vs:"3.0.0"},e[r.ENV_ENUM.ios]={vs:"3.0"},e[r.ENV_ENUM.android]={vs:"3.0"},e)),t.externalComplexPicker$=a,t.default=a})(pi)),pi}var gi={},ch;function gR(){return ch||(ch=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.externalEditForm$=void 0;var r=I(),n="biz.contact.externalEditForm";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"3.0"},e[r.ENV_ENUM.android]={vs:"3.0"},e)),t.externalEditForm$=a,t.default=a})(gi)),gi}var _i={},lh;function _R(){return lh||(lh=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.rolesPicker$=void 0;var r=I(),n="biz.contact.rolesPicker";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"6.3.16"},e[r.ENV_ENUM.android]={vs:"6.3.16"},e)),t.rolesPicker$=a,t.default=a})(_i)),_i}var mi={},fh;function mR(){return fh||(fh=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.setRule$=void 0;var r=I(),n="biz.contact.setRule";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"2.15"},e[r.ENV_ENUM.android]={vs:"2.15"},e)),t.setRule$=a,t.default=a})(mi)),mi}var Ei={},vh;function ER(){return vh||(vh=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.chooseSpaceDir$=void 0;var r=I(),n="biz.cspace.chooseSpaceDir";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"3.5.6"},e[r.ENV_ENUM.android]={vs:"3.5.6"},e[r.ENV_ENUM.pc]={vs:"5.1.27"},e)),t.chooseSpaceDir$=a,t.default=a})(Ei)),Ei}var yi={},hh;function yR(){return hh||(hh=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.delete$=void 0;var r=I(),n="biz.cspace.delete";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"4.5.21"},e[r.ENV_ENUM.android]={vs:"4.5.21"},e[r.ENV_ENUM.pc]={vs:"4.5.21"},e)),t.delete$=a,t.default=a})(yi)),yi}var Ni={},ph;function NR(){return ph||(ph=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.preview$=void 0;var r=I(),n="biz.cspace.preview";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.pc]={vs:"3.0.0"},e[r.ENV_ENUM.ios]={vs:"2.7.0"},e[r.ENV_ENUM.android]={vs:"2.7.0"},e)),t.preview$=a,t.default=a})(Ni)),Ni}var Si={},gh;function SR(){return gh||(gh=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.previewDentryImages$=void 0;var r=I(),n="biz.cspace.previewDentryImages";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"6.3.30"},e[r.ENV_ENUM.android]={vs:"6.3.30"},e)),t.previewDentryImages$=a,t.default=a})(Si)),Si}var Ci={},_h;function CR(){return _h||(_h=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.saveFile$=void 0;var r=I(),n="biz.cspace.saveFile";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"2.7.6"},e[r.ENV_ENUM.android]={vs:"2.7.6"},e)),t.saveFile$=a,t.default=a})(Ci)),Ci}var bi={},mh;function bR(){return mh||(mh=1,(function(t){function a(o){return r.ddSdk.invokeAPI(i,o)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.choose$=void 0;var r=I(),n=ge(),i="biz.customContact.choose",u=n.genDefaultParamsDealFn({isShowCompanyName:!1,max:50});r.ddSdk.setAPI(i,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.pc]={vs:"3.0.0"},e[r.ENV_ENUM.ios]={vs:"2.5.2",paramsDeal:u},e[r.ENV_ENUM.android]={vs:"2.5.2",paramsDeal:u},e)),t.choose$=a,t.default=a})(bi)),bi}var Ii={},Eh;function IR(){return Eh||(Eh=1,(function(t){function a(o){return r.ddSdk.invokeAPI(i,o)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.multipleChoose$=void 0;var r=I(),n=ge(),i="biz.customContact.multipleChoose",u=n.genDefaultParamsDealFn({isShowCompanyName:!1,max:50});r.ddSdk.setAPI(i,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0",paramsDeal:u},e[r.ENV_ENUM.pc]={vs:"3.0.0"},e[r.ENV_ENUM.ios]={vs:"2.4.0",paramsDeal:u},e[r.ENV_ENUM.android]={vs:"2.4.0",paramsDeal:u},e)),t.multipleChoose$=a,t.default=a})(Ii)),Ii}var Pi={},yh;function PR(){return yh||(yh=1,(function(t){function a(n){return e.ddSdk.invokeAPI(r,n)}Object.defineProperty(t,"__esModule",{value:!0}),t.rsa$=void 0;var e=I(),r="biz.data.rsa";e.ddSdk.setAPI(r,{}),t.rsa$=a,t.default=a})(Pi)),Pi}var Ai={},Nh;function AR(){return Nh||(Nh=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.create$=void 0;var r=I(),n="biz.ding.create";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"3.5.1",resultDeal:function(i){return i===""?i={dingCreateResult:!1}:typeof i=="object"&&(i.dingCreateResult=!!i.dingCreateResult),i}},e[r.ENV_ENUM.android]={vs:"3.5.1"},e[r.ENV_ENUM.pc]={vs:"4.5.9"},e)),t.create$=a,t.default=a})(Ai)),Ai}var ki={},Sh;function kR(){return Sh||(Sh=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.post$=void 0;var r=I(),n="biz.ding.post";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.pc]={vs:"3.0.0"},e[r.ENV_ENUM.ios]={vs:"2.4.0"},e[r.ENV_ENUM.android]={vs:"2.4.0"},e)),t.post$=a,t.default=a})(ki)),ki}var Mi={},Ch;function MR(){return Ch||(Ch=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.finishMiniCourseByRecordId$=void 0;var r=I(),n="biz.edu.finishMiniCourseByRecordId";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"6.0.15"},e[r.ENV_ENUM.android]={vs:"6.0.15"},e)),t.finishMiniCourseByRecordId$=a,t.default=a})(Mi)),Mi}var Ui={},bh;function UR(){return bh||(bh=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.getMiniCourseDraftList$=void 0;var r=I(),n="biz.edu.getMiniCourseDraftList";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"6.0.15"},e[r.ENV_ENUM.android]={vs:"6.0.15"},e)),t.getMiniCourseDraftList$=a,t.default=a})(Ui)),Ui}var Ti={},Ih;function TR(){return Ih||(Ih=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.joinClassroom$=void 0;var r=I(),n="biz.edu.joinClassroom";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"6.0.15"},e[r.ENV_ENUM.android]={vs:"6.0.15"},e[r.ENV_ENUM.pc]={vs:"6.0.15"},e)),t.joinClassroom$=a,t.default=a})(Ti)),Ti}var Vi={},Ph;function VR(){return Ph||(Ph=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.makeMiniCourse$=void 0;var r=I(),n="biz.edu.makeMiniCourse";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"6.0.15"},e[r.ENV_ENUM.android]={vs:"6.0.15"},e)),t.makeMiniCourse$=a,t.default=a})(Vi)),Vi}var Bi={},Ah;function BR(){return Ah||(Ah=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.newMsgNotificationStatus$=void 0;var r=I(),n="biz.edu.newMsgNotificationStatus";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"6.3.20"},e[r.ENV_ENUM.android]={vs:"6.3.20"},e)),t.newMsgNotificationStatus$=a,t.default=a})(Bi)),Bi}var Ri={},kh;function RR(){return kh||(kh=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.startAuth$=void 0;var r=I(),n="biz.edu.startAuth";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"6.3.20"},e[r.ENV_ENUM.android]={vs:"6.3.20"},e)),t.startAuth$=a,t.default=a})(Ri)),Ri}var wi={},Mh;function wR(){return Mh||(Mh=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.tokenFaceImg$=void 0;var r=I(),n="biz.edu.tokenFaceImg";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"6.3.20"},e[r.ENV_ENUM.android]={vs:"6.3.20"},e)),t.tokenFaceImg$=a,t.default=a})(wi)),wi}var Di={},Uh;function DR(){return Uh||(Uh=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.notifyWeex$=void 0;var r=I(),n="biz.event.notifyWeex";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.ios]={vs:"4.5.0"},e)),t.notifyWeex$=a,t.default=a})(Di)),Di}var Oi={},Th;function OR(){return Th||(Th=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.downloadFile$=void 0;var r=I(),n="biz.file.downloadFile";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"7.0.15"},e[r.ENV_ENUM.android]={vs:"7.0.15"},e[r.ENV_ENUM.pc]={vs:"7.0.15"},e)),t.downloadFile$=a,t.default=a})(Oi)),Oi}var Li={},Vh;function LR(){return Vh||(Vh=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.fetchData$=void 0;var r=I(),n="biz.intent.fetchData";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"2.7.6"},e[r.ENV_ENUM.android]={vs:"2.7.6"},e)),t.fetchData$=a,t.default=a})(Li)),Li}var qi={},Bh;function qR(){return Bh||(Bh=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.bind$=void 0;var r=I(),n="biz.iot.bind";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"4.6.34"},e[r.ENV_ENUM.android]={vs:"4.6.34"},e)),t.bind$=a,t.default=a})(qi)),qi}var Fi={},Rh;function FR(){return Rh||(Rh=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.bindMeetingRoom$=void 0;var r=I(),n="biz.iot.bindMeetingRoom";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"4.6.34"},e[r.ENV_ENUM.android]={vs:"4.6.34"},e)),t.bindMeetingRoom$=a,t.default=a})(Fi)),Fi}var ji={},wh;function jR(){return wh||(wh=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.getDeviceProperties$=void 0;var r=I(),n="biz.iot.getDeviceProperties";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"4.6.42"},e[r.ENV_ENUM.android]={vs:"4.6.42"},e)),t.getDeviceProperties$=a,t.default=a})(ji)),ji}var xi={},Dh;function xR(){return Dh||(Dh=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.invokeThingService$=void 0;var r=I(),n="biz.iot.invokeThingService";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"4.6.42"},e[r.ENV_ENUM.android]={vs:"4.6.42"},e)),t.invokeThingService$=a,t.default=a})(xi)),xi}var zi={},Oh;function zR(){return Oh||(Oh=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.queryMeetingRoomList$=void 0;var r=I(),n="biz.iot.queryMeetingRoomList";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"4.6.34"},e[r.ENV_ENUM.android]={vs:"4.6.34"},e)),t.queryMeetingRoomList$=a,t.default=a})(zi)),zi}var Gi={},Lh;function GR(){return Lh||(Lh=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.setDeviceProperties$=void 0;var r=I(),n="biz.iot.setDeviceProperties";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"4.6.42"},e[r.ENV_ENUM.android]={vs:"4.6.42"},e)),t.setDeviceProperties$=a,t.default=a})(Gi)),Gi}var Ki={},qh;function KR(){return qh||(qh=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.unbind$=void 0;var r=I(),n="biz.iot.unbind";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"4.6.34"},e[r.ENV_ENUM.android]={vs:"4.6.34"},e)),t.unbind$=a,t.default=a})(Ki)),Ki}var $i={},Fh;function $R(){return Fh||(Fh=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.startClassRoom$=void 0;var r=I(),n="biz.live.startClassRoom";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.pc]={vs:"5.1.19"},e)),t.startClassRoom$=a,t.default=a})($i)),$i}var Wi={},jh;function WR(){return jh||(jh=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.startUnifiedLive$=void 0;var r=I(),n="biz.live.startUnifiedLive";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.pc]={vs:"5.1.18"},e)),t.startUnifiedLive$=a,t.default=a})(Wi)),Wi}var Hi={},xh;function HR(){return xh||(xh=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.locate$=void 0;var r=I(),n="biz.map.locate";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"2.4.0"},e[r.ENV_ENUM.android]={vs:"2.4.0"},e)),t.locate$=a,t.default=a})(Hi)),Hi}var Qi={},zh;function QR(){return zh||(zh=1,(function(t){function a(o){return r.ddSdk.invokeAPI(i,o)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.search$=void 0;var r=I(),n=ge(),i="biz.map.search",u=n.genDefaultParamsDealFn({scope:500});r.ddSdk.setAPI(i,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0",paramsDeal:u},e[r.ENV_ENUM.ios]={vs:"2.4.0",paramsDeal:u},e[r.ENV_ENUM.android]={vs:"2.4.0",paramsDeal:u},e)),t.search$=a,t.default=a})(Qi)),Qi}var Yi={},Gh;function YR(){return Gh||(Gh=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.view$=void 0;var r=I(),n="biz.map.view";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"2.8.0"},e[r.ENV_ENUM.android]={vs:"2.8.0"},e)),t.view$=a,t.default=a})(Yi)),Yi}var Xi={},Kh;function XR(){return Kh||(Kh=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.compressVideo$=void 0;var r=I(),n="biz.media.compressVideo";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"4.6.37"},e[r.ENV_ENUM.android]={vs:"4.6.37"},e)),t.compressVideo$=a,t.default=a})(Xi)),Xi}var Ji={},$h;function JR(){return $h||($h=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.openApp$=void 0;var r=I(),n="biz.microApp.openApp";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"4.5.6"},e[r.ENV_ENUM.android]={vs:"4.5.6"},e)),t.openApp$=a,t.default=a})(Ji)),Ji}var Zi={},Wh;function ZR(){return Wh||(Wh=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.close$=void 0;var r=I(),n="biz.navigation.close";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.ios]={vs:"2.4.0"},e[r.ENV_ENUM.android]={vs:"2.4.0"},e[r.ENV_ENUM.pc]={vs:"4.3.5"},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e)),t.close$=a,t.default=a})(Zi)),Zi}var eo={},Hh;function ew(){return Hh||(Hh=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.goBack$=void 0;var r=I(),n="biz.navigation.goBack";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"2.6.0"},e[r.ENV_ENUM.android]={vs:"2.6.0"},e)),t.goBack$=a,t.default=a})(eo)),eo}var to={},Qh;function tw(){return Qh||(Qh=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.hideBar$=void 0;var r=I(),n="biz.navigation.hideBar";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"3.5.6"},e[r.ENV_ENUM.android]={vs:"3.5.6"},e)),t.hideBar$=a,t.default=a})(to)),to}var ro={},Yh;function rw(){return Yh||(Yh=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.navigateBackPage$=void 0;var r=I(),n="biz.navigation.navigateBackPage";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"6.5.31"},e[r.ENV_ENUM.android]={vs:"6.5.31"},e)),t.navigateBackPage$=a,t.default=a})(ro)),ro}var ao={},Xh;function aw(){return Xh||(Xh=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.navigateToMiniProgram$=void 0;var r=I(),n="biz.navigation.navigateToMiniProgram";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"5.1.31"},e[r.ENV_ENUM.android]={vs:"5.1.31"},e)),t.navigateToMiniProgram$=a,t.default=a})(ao)),ao}var no={},Jh;function nw(){return Jh||(Jh=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.navigateToPage$=void 0;var r=I(),n="biz.navigation.navigateToPage";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"6.5.31"},e[r.ENV_ENUM.android]={vs:"6.5.31"},e)),t.navigateToPage$=a,t.default=a})(no)),no}var io={},Zh;function iw(){return Zh||(Zh=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.quit$=void 0;var r=I(),n="biz.navigation.quit";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.pc]={vs:"2.5.0"},e)),t.quit$=a,t.default=a})(io)),io}var oo={},ep;function ow(){return ep||(ep=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.replace$=void 0;var r=I(),n="biz.navigation.replace";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"3.4.6"},e[r.ENV_ENUM.android]={vs:"3.4.6"},e)),t.replace$=a,t.default=a})(oo)),oo}var uo={},tp;function uw(){return tp||(tp=1,(function(t){function a(o){return r.ddSdk.invokeAPI(i,o)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.setIcon$=void 0;var r=I(),n=ge(),i="biz.navigation.setIcon",u=n.genDefaultParamsDealFn({watch:!0,showIcon:!0,iconIndex:1});r.ddSdk.setAPI(i,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0",paramsDeal:u},e[r.ENV_ENUM.ios]={vs:"2.4.0",paramsDeal:u},e[r.ENV_ENUM.android]={vs:"2.4.0",paramsDeal:u},e)),t.setIcon$=a,t.default=a})(uo)),uo}var so={},rp;function sw(){return rp||(rp=1,(function(t){function a(o){return r.ddSdk.invokeAPI(i,o)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.setLeft$=void 0;var r=I(),n=ge(),i="biz.navigation.setLeft",u=n.genDefaultParamsDealFn({watch:!0,show:!0,control:!1,showIcon:!0,text:""});r.ddSdk.setAPI(i,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.pc]={vs:"2.5.0"},e[r.ENV_ENUM.ios]={vs:"2.4.0",paramsDeal:u},e[r.ENV_ENUM.android]={vs:"2.4.0",paramsDeal:u},e)),t.setLeft$=a,t.default=a})(so)),so}var co={},ap;function dw(){return ap||(ap=1,(function(t){function a(u){return r.ddSdk.invokeAPI(i,u)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.setMenu$=void 0;var r=I(),n=ge(),i="biz.navigation.setMenu";r.ddSdk.setAPI(i,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"2.6.0",paramsDeal:n.addWatchParamsDeal},e[r.ENV_ENUM.android]={vs:"2.6.0",paramsDeal:n.addWatchParamsDeal},e)),t.setMenu$=a,t.default=a})(co)),co}var lo={},np;function cw(){return np||(np=1,(function(t){function a(o){return r.ddSdk.invokeAPI(i,o)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.setRight$=void 0;var r=I(),n=ge(),i="biz.navigation.setRight",u=n.genDefaultParamsDealFn({watch:!0,show:!0,control:!1,showIcon:!0,text:""});r.ddSdk.setAPI(i,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"2.4.0",paramsDeal:u},e[r.ENV_ENUM.android]={vs:"2.4.0",paramsDeal:u},e)),t.setRight$=a,t.default=a})(lo)),lo}var fo={},ip;function lw(){return ip||(ip=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.setTitle$=void 0;var r=I(),n="biz.navigation.setTitle";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.pc]={vs:"2.5.0"},e[r.ENV_ENUM.ios]={vs:"2.4.0"},e[r.ENV_ENUM.android]={vs:"2.4.0"},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e)),t.setTitle$=a,t.default=a})(fo)),fo}var vo={},op;function fw(){return op||(op=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.componentPunchFromPartner$=void 0;var r=I(),n="biz.pbp.componentPunchFromPartner";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"5.1.10"},e[r.ENV_ENUM.android]={vs:"5.1.10"},e)),t.componentPunchFromPartner$=a,t.default=a})(vo)),vo}var ho={},up;function vw(){return up||(up=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.startMatchRuleFromPartner$=void 0;var r=I(),n="biz.pbp.startMatchRuleFromPartner";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"5.1.10"},e[r.ENV_ENUM.android]={vs:"5.1.10"},e)),t.startMatchRuleFromPartner$=a,t.default=a})(ho)),ho}var po={},sp;function hw(){return sp||(sp=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.stopMatchRuleFromPartner$=void 0;var r=I(),n="biz.pbp.stopMatchRuleFromPartner";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"5.1.10"},e[r.ENV_ENUM.android]={vs:"5.1.10"},e)),t.stopMatchRuleFromPartner$=a,t.default=a})(po)),po}var go={},dp;function pw(){return dp||(dp=1,(function(t){function a(n){return e.ddSdk.invokeAPI(r,n)}Object.defineProperty(t,"__esModule",{value:!0}),t.add$=void 0;var e=I(),r="biz.phoneContact.add";e.ddSdk.setAPI(r,{}),t.add$=a,t.default=a})(go)),go}var _o={},cp;function gw(){return cp||(cp=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.getRealtimeTracingStatus$=void 0;var r=I(),n="biz.realm.getRealtimeTracingStatus";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.android]={vs:"6.0.13"},e)),t.getRealtimeTracingStatus$=a,t.default=a})(_o)),_o}var mo={},lp;function _w(){return lp||(lp=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.getUserExclusiveInfo$=void 0;var r=I(),n="biz.realm.getUserExclusiveInfo";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"6.0.14"},e[r.ENV_ENUM.android]={vs:"6.0.14"},e[r.ENV_ENUM.pc]={vs:"6.0.17"},e)),t.getUserExclusiveInfo$=a,t.default=a})(mo)),mo}var Eo={},fp;function mw(){return fp||(fp=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.startRealtimeTracing$=void 0;var r=I(),n="biz.realm.startRealtimeTracing";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.android]={vs:"6.0.13"},e)),t.startRealtimeTracing$=a,t.default=a})(Eo)),Eo}var yo={},vp;function Ew(){return vp||(vp=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.stopRealtimeTracing$=void 0;var r=I(),n="biz.realm.stopRealtimeTracing";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.android]={vs:"6.0.13"},e)),t.stopRealtimeTracing$=a,t.default=a})(yo)),yo}var No={},hp;function yw(){return hp||(hp=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.subscribe$=void 0;var r=I(),n="biz.realm.subscribe";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"4.7.18"},e[r.ENV_ENUM.android]={vs:"4.7.18"},e)),t.subscribe$=a,t.default=a})(No)),No}var So={},pp;function Nw(){return pp||(pp=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.unsubscribe$=void 0;var r=I(),n="biz.realm.unsubscribe";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"4.7.18"},e[r.ENV_ENUM.android]={vs:"4.7.18"},e)),t.unsubscribe$=a,t.default=a})(So)),So}var Co={},gp;function Sw(){return gp||(gp=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.getInfo$=void 0;var r=I(),n="biz.resource.getInfo";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"6.5.10"},e[r.ENV_ENUM.android]={vs:"6.5.10"},e)),t.getInfo$=a,t.default=a})(Co)),Co}var bo={},_p;function Cw(){return _p||(_p=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.reportDebugMessage$=void 0;var r=I(),n="biz.resource.reportDebugMessage";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"6.5.20"},e[r.ENV_ENUM.android]={vs:"6.5.20"},e)),t.reportDebugMessage$=a,t.default=a})(bo)),bo}var Io={},mp;function bw(){return mp||(mp=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.addShortCut$=void 0;var r=I(),n="biz.shortCut.addShortCut";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.android]={vs:"4.7.32"},e)),t.addShortCut$=a,t.default=a})(Io)),Io}var Po={},Ep;function Iw(){return Ep||(Ep=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.getHealthAuthorizationStatus$=void 0;var r=I(),n="biz.sports.getHealthAuthorizationStatus";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"7.0.11"},e)),t.getHealthAuthorizationStatus$=a,t.default=a})(Po)),Po}var Ao={},yp;function Pw(){return yp||(yp=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.getHealthData$=void 0;var r=I(),n="biz.sports.getHealthData";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.ios]={vs:"7.0.10"},e)),t.getHealthData$=a,t.default=a})(Ao)),Ao}var ko={},Np;function Aw(){return Np||(Np=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.getHealthDeviceData$=void 0;var r=I(),n="biz.sports.getHealthDeviceData";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.ios]={vs:"7.0.10"},e)),t.getHealthDeviceData$=a,t.default=a})(ko)),ko}var Mo={},Sp;function kw(){return Sp||(Sp=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.requestHealthAuthorization$=void 0;var r=I(),n="biz.sports.requestHealthAuthorization";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.ios]={vs:"7.0.10"},e)),t.requestHealthAuthorization$=a,t.default=a})(Mo)),Mo}var Uo={},Cp;function Mw(){return Cp||(Cp=1,(function(t){function a(u){return r.ddSdk.invokeAPI(i,u)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.closeUnpayOrder$=void 0;var r=I(),n=ge(),i="biz.store.closeUnpayOrder";r.ddSdk.setAPI(i,(e={},e[r.ENV_ENUM.ios]={vs:"4.3.7",paramsDeal:n.genBizStoreParamsDealFn},e[r.ENV_ENUM.android]={vs:"4.3.7",paramsDeal:n.genBizStoreParamsDealFn},e[r.ENV_ENUM.pc]={vs:"4.5.3",paramsDeal:n.genBizStoreParamsDealFn},e)),t.closeUnpayOrder$=a,t.default=a})(Uo)),Uo}var To={},bp;function Uw(){return bp||(bp=1,(function(t){function a(u){return r.ddSdk.invokeAPI(i,u)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.createOrder$=void 0;var r=I(),n=ge(),i="biz.store.createOrder";r.ddSdk.setAPI(i,(e={},e[r.ENV_ENUM.ios]={vs:"4.3.7",paramsDeal:n.genBizStoreParamsDealFn},e[r.ENV_ENUM.android]={vs:"4.3.7",paramsDeal:n.genBizStoreParamsDealFn},e[r.ENV_ENUM.pc]={vs:"4.5.3",paramsDeal:n.genBizStoreParamsDealFn},e)),t.createOrder$=a,t.default=a})(To)),To}var Vo={},Ip;function Tw(){return Ip||(Ip=1,(function(t){function a(u){return r.ddSdk.invokeAPI(i,u)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.getPayUrl$=void 0;var r=I(),n=ge(),i="biz.store.getPayUrl";r.ddSdk.setAPI(i,(e={},e[r.ENV_ENUM.ios]={vs:"4.3.7",paramsDeal:n.genBizStoreParamsDealFn},e[r.ENV_ENUM.android]={vs:"4.3.7",paramsDeal:n.genBizStoreParamsDealFn},e[r.ENV_ENUM.pc]={vs:"4.5.3",paramsDeal:n.genBizStoreParamsDealFn},e)),t.getPayUrl$=a,t.default=a})(Vo)),Vo}var Bo={},Pp;function Vw(){return Pp||(Pp=1,(function(t){function a(u){return r.ddSdk.invokeAPI(i,u)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.inquiry$=void 0;var r=I(),n=ge(),i="biz.store.inquiry";r.ddSdk.setAPI(i,(e={},e[r.ENV_ENUM.ios]={vs:"4.3.7",paramsDeal:n.genBizStoreParamsDealFn},e[r.ENV_ENUM.android]={vs:"4.3.7",paramsDeal:n.genBizStoreParamsDealFn},e[r.ENV_ENUM.pc]={vs:"4.5.3",paramsDeal:n.genBizStoreParamsDealFn},e)),t.inquiry$=a,t.default=a})(Bo)),Bo}var Ro={},Ap;function Bw(){return Ap||(Ap=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.isTab$=void 0;var r=I(),n="biz.tabwindow.isTab";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.pc]={vs:"6.5.10"},e)),t.isTab$=a,t.default=a})(Ro)),Ro}var wo={},kp;function Rw(){return kp||(kp=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.call$=void 0;var r=I(),n="biz.telephone.call";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"2.4.0"},e[r.ENV_ENUM.android]={vs:"2.4.0"},e)),t.call$=a,t.default=a})(wo)),wo}var Do={},Mp;function ww(){return Mp||(Mp=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.checkBizCall$=void 0;var r=I(),n="biz.telephone.checkBizCall";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.pc]={vs:"4.0.0"},e[r.ENV_ENUM.ios]={vs:"3.5.6"},e[r.ENV_ENUM.android]={vs:"3.5.6"},e)),t.checkBizCall$=a,t.default=a})(Do)),Do}var Oo={},Up;function Dw(){return Up||(Up=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.quickCallList$=void 0;var r=I(),n="biz.telephone.quickCallList";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.pc]={vs:"3.5.6"},e[r.ENV_ENUM.ios]={vs:"3.5.6"},e[r.ENV_ENUM.android]={vs:"3.5.6"},e)),t.quickCallList$=a,t.default=a})(Oo)),Oo}var Lo={},Tp;function Ow(){return Tp||(Tp=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.showCallMenu$=void 0;var r=I(),n="biz.telephone.showCallMenu";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"2.8.0"},e[r.ENV_ENUM.android]={vs:"2.8.0"},e)),t.showCallMenu$=a,t.default=a})(Lo)),Lo}var qo={},Vp;function Lw(){return Vp||(Vp=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.checkPassword$=void 0;var r=I(),n="biz.user.checkPassword";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"4.5.8"},e[r.ENV_ENUM.android]={vs:"4.5.8"},e)),t.checkPassword$=a,t.default=a})(qo)),qo}var Fo={},Bp;function qw(){return Bp||(Bp=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.get$=void 0;var r=I(),n="biz.user.get";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.pc]={vs:"3.0.0"},e[r.ENV_ENUM.ios]={vs:"2.4.0"},e[r.ENV_ENUM.android]={vs:"2.4.0"},e)),t.get$=a,t.default=a})(Fo)),Fo}var jo={},Rp;function Fw(){return Rp||(Rp=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.callComponent$=void 0;var r=I(),n="biz.util.callComponent";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"6.3.35"},e[r.ENV_ENUM.android]={vs:"6.3.35"},e[r.ENV_ENUM.pc]={vs:"6.3.35"},e)),t.callComponent$=a,t.default=a})(jo)),jo}var xo={},wp;function jw(){return wp||(wp=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.checkAuth$=void 0;var r=I(),n="biz.util.checkAuth";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"7.0.0"},e[r.ENV_ENUM.android]={vs:"7.0.0"},e)),t.checkAuth$=a,t.default=a})(xo)),xo}var zo={},Dp;function xw(){return Dp||(Dp=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.chooseImage$=void 0;var r=I(),n="biz.util.chooseImage";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"5.1.1"},e[r.ENV_ENUM.android]={vs:"5.1.1"},e)),t.chooseImage$=a,t.default=a})(zo)),zo}var Go={},Op;function zw(){return Op||(Op=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.chooseRegion$=void 0;var r=I(),n="biz.util.chooseRegion";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"7.0.10"},e[r.ENV_ENUM.android]={vs:"7.0.10"},e)),t.chooseRegion$=a,t.default=a})(Go)),Go}var Ko={},Lp;function Gw(){return Lp||(Lp=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.chosen$=void 0;var r=I(),n="biz.util.chosen";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"2.4.0"},e[r.ENV_ENUM.android]={vs:"2.4.0"},e)),t.chosen$=a,t.default=a})(Ko)),Ko}var $o={},qp;function Kw(){return qp||(qp=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.clearWebStoreCache$=void 0;var r=I(),n="biz.util.clearWebStoreCache";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.pc]={vs:"6.0.22"},e)),t.clearWebStoreCache$=a,t.default=a})($o)),$o}var Wo={},Fp;function $w(){return Fp||(Fp=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.closePreviewImage$=void 0;var r=I(),n="biz.util.closePreviewImage";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"6.0.19"},e[r.ENV_ENUM.android]={vs:"6.0.17"},e)),t.closePreviewImage$=a,t.default=a})(Wo)),Wo}var Ho={},jp;function Ww(){return jp||(jp=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.compressImage$=void 0;var r=I(),n="biz.util.compressImage";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"5.1.1"},e[r.ENV_ENUM.android]={vs:"5.1.1"},e)),t.compressImage$=a,t.default=a})(Ho)),Ho}var Qo={},xp;function Hw(){return xp||(xp=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.datepicker$=void 0;var r=I(),n="biz.util.datepicker";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"2.4.0"},e[r.ENV_ENUM.android]={vs:"2.4.0"},e)),t.datepicker$=a,t.default=a})(Qo)),Qo}var Yo={},zp;function Qw(){return zp||(zp=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.datetimepicker$=void 0;var r=I(),n="biz.util.datetimepicker";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"2.4.0"},e[r.ENV_ENUM.android]={vs:"2.4.0"},e)),t.datetimepicker$=a,t.default=a})(Yo)),Yo}var Xo={},Gp;function Yw(){return Gp||(Gp=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.decrypt$=void 0;var r=I(),n="biz.util.decrypt";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.pc]={vs:"3.0.0"},e[r.ENV_ENUM.ios]={vs:"2.9.1"},e[r.ENV_ENUM.android]={vs:"2.9.1"},e)),t.decrypt$=a,t.default=a})(Xo)),Xo}var Jo={},Kp;function Xw(){return Kp||(Kp=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.downloadFile$=void 0;var r=I(),n="biz.util.downloadFile";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.pc]={vs:"2.5.0"},e)),t.downloadFile$=a,t.default=a})(Jo)),Jo}var Zo={},$p;function Jw(){return $p||($p=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.encrypt$=void 0;var r=I(),n="biz.util.encrypt";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.pc]={vs:"3.0.0"},e[r.ENV_ENUM.ios]={vs:"2.9.1"},e[r.ENV_ENUM.android]={vs:"2.9.1"},e)),t.encrypt$=a,t.default=a})(Zo)),Zo}var eu={},Wp;function Zw(){return Wp||(Wp=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.getPerfInfo$=void 0;var r=I(),n="biz.util.getPerfInfo";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"5.1.14"},e[r.ENV_ENUM.android]={vs:"5.1.14"},e)),t.getPerfInfo$=a,t.default=a})(eu)),eu}var tu={},Hp;function eD(){return Hp||(Hp=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.invokeWorkbench$=void 0;var r=I(),n="biz.util.invokeWorkbench";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.pc]={vs:"6.0.8"},e)),t.invokeWorkbench$=a,t.default=a})(tu)),tu}var ru={},Qp;function tD(){return Qp||(Qp=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.isEnableGPUAcceleration$=void 0;var r=I(),n="biz.util.isEnableGPUAcceleration";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.pc]={vs:"6.0.22"},e)),t.isEnableGPUAcceleration$=a,t.default=a})(ru)),ru}var au={},Yp;function rD(){return Yp||(Yp=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.isLocalFileExist$=void 0;var r=I(),n="biz.util.isLocalFileExist";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.pc]={vs:"2.5.0"},e)),t.isLocalFileExist$=a,t.default=a})(au)),au}var nu={},Xp;function aD(){return Xp||(Xp=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.multiSelect$=void 0;var r=I(),n="biz.util.multiSelect";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"3.0.0"},e[r.ENV_ENUM.android]={vs:"3.0.0"},e)),t.multiSelect$=a,t.default=a})(nu)),nu}var iu={},Jp;function nD(){return Jp||(Jp=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.open$=void 0;var r=I(),n="biz.util.open";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.pc]={vs:"2.7.0"},e[r.ENV_ENUM.ios]={vs:"2.4.0"},e[r.ENV_ENUM.android]={vs:"2.4.0"},e)),t.open$=a,t.default=a})(iu)),iu}var ou={},Zp;function iD(){return Zp||(Zp=1,(function(t){function a(n){return e.ddSdk.invokeAPI(r,n)}Object.defineProperty(t,"__esModule",{value:!0}),t.openBrowser$=void 0;var e=I(),r="biz.util.openBrowser";e.ddSdk.setAPI(r,{}),t.openBrowser$=a,t.default=a})(ou)),ou}var uu={},eg;function oD(){return eg||(eg=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.openDocument$=void 0;var r=I(),n="biz.util.openDocument";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"7.0.10"},e[r.ENV_ENUM.android]={vs:"7.0.10"},e[r.ENV_ENUM.pc]={vs:"7.0.10"},e)),t.openDocument$=a,t.default=a})(uu)),uu}var su={},tg;function uD(){return tg||(tg=1,(function(t){function a(o){return r.ddSdk.invokeAPI(i,o)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.openLink$=void 0;var r=I(),n=ge(),i="biz.util.openLink",u=n.genDefaultParamsDealFn({credible:!0,showMenuBar:!0});r.ddSdk.setAPI(i,(e={},e[r.ENV_ENUM.pc]={vs:"2.7.0"},e[r.ENV_ENUM.ios]={vs:"2.4.0",paramsDeal:u},e[r.ENV_ENUM.android]={vs:"2.4.0",paramsDeal:u},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e)),t.openLink$=a,t.default=a})(su)),su}var du={},rg;function sD(){return rg||(rg=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.openLocalFile$=void 0;var r=I(),n="biz.util.openLocalFile";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.pc]={vs:"2.5.0"},e)),t.openLocalFile$=a,t.default=a})(du)),du}var cu={},ag;function dD(){return ag||(ag=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.openModal$=void 0;var r=I(),n="biz.util.openModal";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.pc]={vs:"2.5.0"},e)),t.openModal$=a,t.default=a})(cu)),cu}var lu={},ng;function cD(){return ng||(ng=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.openSlidePanel$=void 0;var r=I(),n="biz.util.openSlidePanel";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.pc]={vs:"2.5.0"},e)),t.openSlidePanel$=a,t.default=a})(lu)),lu}var fu={},ig;function lD(){return ig||(ig=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.presentWindow$=void 0;var r=I(),n="biz.util.presentWindow";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"2.8.0"},e[r.ENV_ENUM.android]={vs:"2.8.0"},e)),t.presentWindow$=a,t.default=a})(fu)),fu}var vu={},og;function fD(){return og||(og=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.previewImage$=void 0;var r=I(),n="biz.util.previewImage";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.pc]={vs:"2.7.0"},e[r.ENV_ENUM.ios]={vs:"2.4.0"},e[r.ENV_ENUM.android]={vs:"2.4.0"},e)),t.previewImage$=a,t.default=a})(vu)),vu}var hu={},ug;function vD(){return ug||(ug=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.previewVideo$=void 0;var r=I(),n="biz.util.previewVideo";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"4.3.7"},e[r.ENV_ENUM.android]={vs:"4.3.7"},e[r.ENV_ENUM.pc]={vs:"4.6.33"},e)),t.previewVideo$=a,t.default=a})(hu)),hu}var pu={},sg;function hD(){return sg||(sg=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.saveImage$=void 0;var r=I(),n="biz.util.saveImage";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.ios]={vs:"4.1"},e[r.ENV_ENUM.android]={vs:"4.1"},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e)),t.saveImage$=a,t.default=a})(pu)),pu}var gu={},dg;function pD(){return dg||(dg=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.saveImageToPhotosAlbum$=void 0;var r=I(),n="biz.util.saveImageToPhotosAlbum";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"7.0.0"},e[r.ENV_ENUM.android]={vs:"7.0.0"},e)),t.saveImageToPhotosAlbum$=a,t.default=a})(gu)),gu}var _u={},cg;function gD(){return cg||(cg=1,(function(t){function a(o){return r.ddSdk.invokeAPI(i,o)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.scan$=void 0;var r=I(),n=ge(),i="biz.util.scan",u=n.genDefaultParamsDealFn({type:"qrCode"});r.ddSdk.setAPI(i,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"2.4.0",paramsDeal:u},e[r.ENV_ENUM.android]={vs:"2.4.0",paramsDeal:u},e)),t.scan$=a,t.default=a})(_u)),_u}var mu={},lg;function _D(){return lg||(lg=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.scanCard$=void 0;var r=I(),n="biz.util.scanCard";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"2.8.0"},e[r.ENV_ENUM.android]={vs:"2.8.0"},e)),t.scanCard$=a,t.default=a})(mu)),mu}var Eu={},fg;function mD(){return fg||(fg=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.setGPUAcceleration$=void 0;var r=I(),n="biz.util.setGPUAcceleration";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.pc]={vs:"6.0.22"},e)),t.setGPUAcceleration$=a,t.default=a})(Eu)),Eu}var yu={},vg;function ED(){return vg||(vg=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.setScreenBrightnessAndKeepOn$=void 0;var r=I(),n="biz.util.setScreenBrightnessAndKeepOn";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"4.6.37"},e[r.ENV_ENUM.android]={vs:"4.3.3"},e)),t.setScreenBrightnessAndKeepOn$=a,t.default=a})(yu)),yu}var Nu={},hg;function yD(){return hg||(hg=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.setScreenKeepOn$=void 0;var r=I(),n="biz.util.setScreenKeepOn";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"5.1.26"},e[r.ENV_ENUM.android]={vs:"5.1.26"},e)),t.setScreenKeepOn$=a,t.default=a})(Nu)),Nu}var Su={},pg;function ND(){return pg||(pg=1,(function(t){function a(o){return r.ddSdk.invokeAPI(i,o)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.share$=void 0;var r=I(),n=ge(),i="biz.util.share",u=n.genDefaultParamsDealFn({title:"",buttonName:"确定"});r.ddSdk.setAPI(i,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0",paramsDeal:u},e[r.ENV_ENUM.ios]={vs:"2.4.0",paramsDeal:u},e[r.ENV_ENUM.android]={vs:"2.4.0",paramsDeal:u},e[r.ENV_ENUM.pc]={vs:"4.6.37",paramsDeal:u},e)),t.share$=a,t.default=a})(Su)),Su}var Cu={},gg;function SD(){return gg||(gg=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.shareImage$=void 0;var r=I(),n="biz.util.shareImage";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"4.1"},e[r.ENV_ENUM.android]={vs:"4.1"},e)),t.shareImage$=a,t.default=a})(Cu)),Cu}var bu={},_g;function CD(){return _g||(_g=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.showAuthGuide$=void 0;var r=I(),n="biz.util.showAuthGuide";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"7.0.10"},e[r.ENV_ENUM.android]={vs:"7.0.10"},e)),t.showAuthGuide$=a,t.default=a})(bu)),bu}var Iu={},mg;function bD(){return mg||(mg=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.showSharePanel$=void 0;var r=I(),n="biz.util.showSharePanel";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"7.0.10"},e[r.ENV_ENUM.android]={vs:"7.0.10"},e)),t.showSharePanel$=a,t.default=a})(Iu)),Iu}var Pu={},Eg;function ID(){return Eg||(Eg=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.startDocSign$=void 0;var r=I(),n="biz.util.startDocSign";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.android]={vs:"4.6.33"},e)),t.startDocSign$=a,t.default=a})(Pu)),Pu}var Au={},yg;function PD(){return yg||(yg=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.systemShare$=void 0;var r=I(),n="biz.util.systemShare";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"4.5.11"},e[r.ENV_ENUM.android]={vs:"4.5.11"},e)),t.systemShare$=a,t.default=a})(Au)),Au}var ku={},Ng;function AD(){return Ng||(Ng=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.timepicker$=void 0;var r=I(),n="biz.util.timepicker";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"2.4.0"},e[r.ENV_ENUM.android]={vs:"2.4.0"},e)),t.timepicker$=a,t.default=a})(ku)),ku}var Mu={},Sg;function kD(){return Sg||(Sg=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.uploadAttachment$=void 0;var r=I(),n="biz.util.uploadAttachment";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.pc]={vs:"3.0.0"},e[r.ENV_ENUM.ios]={vs:"2.7.0"},e[r.ENV_ENUM.android]={vs:"2.7.0"},e)),t.uploadAttachment$=a,t.default=a})(Mu)),Mu}var Uu={},Cg;function MD(){return Cg||(Cg=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.uploadFile$=void 0;var r=I(),n="biz.util.uploadFile";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"6.5.28"},e[r.ENV_ENUM.android]={vs:"6.5.27"},e)),t.uploadFile$=a,t.default=a})(Uu)),Uu}var Tu={},bg;function UD(){return bg||(bg=1,(function(t){function a(o){return r.ddSdk.invokeAPI(i,o)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.uploadImage$=void 0;var r=I(),n=ge(),i="biz.util.uploadImage",u=n.genDefaultParamsDealFn({multiple:!1});r.ddSdk.setAPI(i,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.pc]={vs:"2.5.0"},e[r.ENV_ENUM.ios]={vs:"2.4.0",paramsDeal:u},e[r.ENV_ENUM.android]={vs:"2.4.0",paramsDeal:u},e)),t.uploadImage$=a,t.default=a})(Tu)),Tu}var Vu={},Ig;function TD(){return Ig||(Ig=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.uploadImageFromCamera$=void 0;var r=I(),n="biz.util.uploadImageFromCamera";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"2.4.0"},e[r.ENV_ENUM.android]={vs:"2.4.0"},e)),t.uploadImageFromCamera$=a,t.default=a})(Vu)),Vu}var Bu={},Pg;function VD(){return Pg||(Pg=1,(function(t){function a(u){return r.ddSdk.invokeAPI(n,u)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.ut$=void 0;var r=I(),n="biz.util.ut",i=function(u){var o=Object.assign({},u),v=o.value,c=[];if(v&&typeof v=="object"){for(var h in v)v[h]!==void 0&&c.push(h+"="+v[h]);v=c.join(",")}return o.value=v||"",o};r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.pc]={vs:"3.5.0",paramsDeal:i},e[r.ENV_ENUM.ios]={vs:"2.4.0",paramsDeal:function(u){var o=Object.assign({},u),v=o.value;return v&&typeof v=="object"&&(v=JSON.stringify(v)),o.value=v,o}},e[r.ENV_ENUM.android]={vs:"2.4.0",paramsDeal:i},e[r.ENV_ENUM.harmony]={vs:"7.0.0",paramsDeal:i},e)),t.ut$=a,t.default=a})(Bu)),Bu}var Ru={},Ag;function BD(){return Ag||(Ag=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.openBindIDCard$=void 0;var r=I(),n="biz.verify.openBindIDCard";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"4.5.21"},e[r.ENV_ENUM.android]={vs:"4.5.21"},e)),t.openBindIDCard$=a,t.default=a})(Ru)),Ru}var wu={},kg;function RD(){return kg||(kg=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.startAuth$=void 0;var r=I(),n="biz.verify.startAuth";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"4.5.21"},e[r.ENV_ENUM.android]={vs:"4.5.21"},e)),t.startAuth$=a,t.default=a})(wu)),wu}var Du={},Mg;function wD(){return Mg||(Mg=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.makeCall$=void 0;var r=I(),n="biz.voice.makeCall";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"7.0.40"},e[r.ENV_ENUM.android]={vs:"7.0.40"},e[r.ENV_ENUM.pc]={vs:"7.0.40"},e)),t.makeCall$=a,t.default=a})(Du)),Du}var Ou={},Ug;function DD(){return Ug||(Ug=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.getWatermarkInfo$=void 0;var r=I(),n="biz.watermarkCamera.getWatermarkInfo";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"6.5.25"},e[r.ENV_ENUM.android]={vs:"6.5.25"},e)),t.getWatermarkInfo$=a,t.default=a})(Ou)),Ou}var Lu={},Tg;function OD(){return Tg||(Tg=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.setWatermarkInfo$=void 0;var r=I(),n="biz.watermarkCamera.setWatermarkInfo";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"6.5.25"},e[r.ENV_ENUM.android]={vs:"6.5.25"},e)),t.setWatermarkInfo$=a,t.default=a})(Lu)),Lu}var qu={},Vg;function LD(){return Vg||(Vg=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.requestAuthCode$=void 0;var r=I(),n="channel.permission.requestAuthCode";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"3.0.0"},e[r.ENV_ENUM.android]={vs:"3.0.0"},e)),t.requestAuthCode$=a,t.default=a})(qu)),qu}var Fu={},Bg;function qD(){return Bg||(Bg=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.clearShake$=void 0;var r=I(),n="device.accelerometer.clearShake";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"2.4.0"},e[r.ENV_ENUM.android]={vs:"2.4.0"},e)),t.clearShake$=a,t.default=a})(Fu)),Fu}var ju={},Rg;function FD(){return Rg||(Rg=1,(function(t){function a(u){return r.ddSdk.invokeAPI(i,u)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.watchShake$=void 0;var r=I(),n=ge(),i="device.accelerometer.watchShake";r.ddSdk.setAPI(i,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"2.4.0",paramsDeal:function(u){return n.forceChangeParamsDealFn({sensitivity:3.2})(n.addWatchParamsDeal(u))}},e[r.ENV_ENUM.android]={vs:"2.4.0",paramsDeal:n.addWatchParamsDeal},e)),t.watchShake$=a,t.default=a})(ju)),ju}var xu={},wg;function jD(){return wg||(wg=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.download$=void 0;var r=I(),n="device.audio.download";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"2.8.0"},e[r.ENV_ENUM.android]={vs:"2.8.0"},e)),t.download$=a,t.default=a})(xu)),xu}var zu={},Dg;function xD(){return Dg||(Dg=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.onPlayEnd$=void 0;var r=I(),n="device.audio.onPlayEnd";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"2.8.0"},e[r.ENV_ENUM.android]={vs:"2.8.0"},e)),t.onPlayEnd$=a,t.default=a})(zu)),zu}var Gu={},Og;function zD(){return Og||(Og=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.onRecordEnd$=void 0;var r=I(),n="device.audio.onRecordEnd";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"2.8.0"},e[r.ENV_ENUM.android]={vs:"2.8.0"},e)),t.onRecordEnd$=a,t.default=a})(Gu)),Gu}var Ku={},Lg;function GD(){return Lg||(Lg=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.pause$=void 0;var r=I(),n="device.audio.pause";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"2.8.0"},e[r.ENV_ENUM.android]={vs:"2.8.0"},e)),t.pause$=a,t.default=a})(Ku)),Ku}var $u={},qg;function KD(){return qg||(qg=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.play$=void 0;var r=I(),n="device.audio.play";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"2.8.0"},e[r.ENV_ENUM.android]={vs:"2.8.0"},e)),t.play$=a,t.default=a})($u)),$u}var Wu={},Fg;function $D(){return Fg||(Fg=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.resume$=void 0;var r=I(),n="device.audio.resume";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"2.8.0"},e[r.ENV_ENUM.android]={vs:"2.8.0"},e)),t.resume$=a,t.default=a})(Wu)),Wu}var Hu={},jg;function WD(){return jg||(jg=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.startRecord$=void 0;var r=I(),n="device.audio.startRecord";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"2.8.0"},e[r.ENV_ENUM.android]={vs:"2.8.0"},e[r.ENV_ENUM.pc]={vs:"7.0.30"},e)),t.startRecord$=a,t.default=a})(Hu)),Hu}var Qu={},xg;function HD(){return xg||(xg=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.stop$=void 0;var r=I(),n="device.audio.stop";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"2.8.0"},e[r.ENV_ENUM.android]={vs:"2.8.0"},e)),t.stop$=a,t.default=a})(Qu)),Qu}var Yu={},zg;function QD(){return zg||(zg=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.stopRecord$=void 0;var r=I(),n="device.audio.stopRecord";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"2.8.0"},e[r.ENV_ENUM.android]={vs:"2.8.0"},e[r.ENV_ENUM.pc]={vs:"7.0.30"},e)),t.stopRecord$=a,t.default=a})(Yu)),Yu}var Xu={},Gg;function YD(){return Gg||(Gg=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.translateVoice$=void 0;var r=I(),n="device.audio.translateVoice";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"2.8.0"},e[r.ENV_ENUM.android]={vs:"2.8.0"},e)),t.translateVoice$=a,t.default=a})(Xu)),Xu}var Ju={},Kg;function XD(){return Kg||(Kg=1,(function(t){function a(n){return e.ddSdk.invokeAPI(r,n)}Object.defineProperty(t,"__esModule",{value:!0}),t.getBatteryInfo$=void 0;var e=I(),r="device.base.getBatteryInfo";e.ddSdk.setAPI(r,{}),t.getBatteryInfo$=a,t.default=a})(Ju)),Ju}var Zu={},$g;function JD(){return $g||($g=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.getInterface$=void 0;var r=I(),n="device.base.getInterface";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"2.4.0"},e[r.ENV_ENUM.android]={vs:"2.4.0"},e[r.ENV_ENUM.pc]={vs:"8.1.0"},e)),t.getInterface$=a,t.default=a})(Zu)),Zu}var es={},Wg;function ZD(){return Wg||(Wg=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.getPhoneInfo$=void 0;var r=I(),n="device.base.getPhoneInfo";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"3.5.0"},e[r.ENV_ENUM.android]={vs:"3.5.0"},e)),t.getPhoneInfo$=a,t.default=a})(es)),es}var ts={},Hg;function eO(){return Hg||(Hg=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.getScanWifiListAsync$=void 0;var r=I(),n="device.base.getScanWifiListAsync";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"4.6.41"},e[r.ENV_ENUM.android]={vs:"3.3.0"},e)),t.getScanWifiListAsync$=a,t.default=a})(ts)),ts}var rs={},Qg;function tO(){return Qg||(Qg=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.getUUID$=void 0;var r=I(),n="device.base.getUUID";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"2.4.0"},e[r.ENV_ENUM.android]={vs:"2.4.0"},e[r.ENV_ENUM.pc]={vs:"4.7.6"},e)),t.getUUID$=a,t.default=a})(rs)),rs}var as={},Yg;function rO(){return Yg||(Yg=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.getWifiStatus$=void 0;var r=I(),n="device.base.getWifiStatus";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"2.11.0"},e[r.ENV_ENUM.android]={vs:"2.11.0"},e)),t.getWifiStatus$=a,t.default=a})(as)),as}var ns={},Xg;function aO(){return Xg||(Xg=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.openSystemSetting$=void 0;var r=I(),n="device.base.openSystemSetting";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.android]={vs:"6.0.27"},e[r.ENV_ENUM.ios]={vs:"6.3.15"},e)),t.openSystemSetting$=a,t.default=a})(ns)),ns}var is={},Jg;function nO(){return Jg||(Jg=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.getNetworkType$=void 0;var r=I(),n="device.connection.getNetworkType";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.ios]={vs:"2.4.0"},e[r.ENV_ENUM.android]={vs:"2.4.0"},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e)),t.getNetworkType$=a,t.default=a})(is)),is}var os={},Zg;function iO(){return Zg||(Zg=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.checkPermission$=void 0;var r=I(),n="device.geolocation.checkPermission";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.android]={vs:"4.5.0"},e)),t.checkPermission$=a,t.default=a})(os)),os}var us={},e_;function oO(){return e_||(e_=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.get$=void 0;var r=I(),n="device.geolocation.get";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"2.4.0"},e[r.ENV_ENUM.android]={vs:"2.4.0"},e)),t.get$=a,t.default=a})(us)),us}var ss={},t_;function uO(){return t_||(t_=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.start$=void 0;var r=I(),n="device.geolocation.start";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"3.4.7"},e[r.ENV_ENUM.android]={vs:"3.4.7"},e)),t.start$=a,t.default=a})(ss)),ss}var ds={},r_;function sO(){return r_||(r_=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.status$=void 0;var r=I(),n="device.geolocation.status";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"3.4.8"},e[r.ENV_ENUM.android]={vs:"3.4.8"},e)),t.status$=a,t.default=a})(ds)),ds}var cs={},a_;function dO(){return a_||(a_=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.stop$=void 0;var r=I(),n="device.geolocation.stop";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"3.4.7"},e[r.ENV_ENUM.android]={vs:"3.4.7"},e)),t.stop$=a,t.default=a})(cs)),cs}var ls={},n_;function cO(){return n_||(n_=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.checkInstalledApps$=void 0;var r=I(),n="device.launcher.checkInstalledApps";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"2.4.0"},e[r.ENV_ENUM.android]={vs:"2.4.0"},e)),t.checkInstalledApps$=a,t.default=a})(ls)),ls}var fs={},i_;function lO(){return i_||(i_=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.launchApp$=void 0;var r=I(),n="device.launcher.launchApp";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"2.4.0"},e[r.ENV_ENUM.android]={vs:"2.4.0"},e)),t.launchApp$=a,t.default=a})(fs)),fs}var vs={},o_;function fO(){return o_||(o_=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.nfcRead$=void 0;var r=I(),n="device.nfc.nfcRead";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"2.11.0"},e[r.ENV_ENUM.android]={vs:"2.11.0"},e)),t.nfcRead$=a,t.default=a})(vs)),vs}var hs={},u_;function vO(){return u_||(u_=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.nfcStop$=void 0;var r=I(),n="device.nfc.nfcStop";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"4.3.9"},e[r.ENV_ENUM.android]={vs:"4.3.9"},e)),t.nfcStop$=a,t.default=a})(hs)),hs}var ps={},s_;function hO(){return s_||(s_=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.nfcWrite$=void 0;var r=I(),n="device.nfc.nfcWrite";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"2.11.0"},e[r.ENV_ENUM.android]={vs:"2.11.0"},e)),t.nfcWrite$=a,t.default=a})(ps)),ps}var gs={},d_;function pO(){return d_||(d_=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.actionSheet$=void 0;var r=I(),n="device.notification.actionSheet";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.pc]={vs:"3.0.0"},e[r.ENV_ENUM.ios]={vs:"2.4.0"},e[r.ENV_ENUM.android]={vs:"2.4.0"},e)),t.actionSheet$=a,t.default=a})(gs)),gs}var _s={},c_;function gO(){return c_||(c_=1,(function(t){function a(o){return r.ddSdk.invokeAPI(i,o)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.alert$=void 0;var r=I(),n=ge(),i="device.notification.alert",u=n.genDefaultParamsDealFn({title:"",buttonName:"确定"});r.ddSdk.setAPI(i,(e={},e[r.ENV_ENUM.pc]={vs:"2.5.0"},e[r.ENV_ENUM.ios]={vs:"2.4.0",paramsDeal:u},e[r.ENV_ENUM.android]={vs:"2.4.0",paramsDeal:u},e)),t.alert$=a,t.default=a})(_s)),_s}var ms={},l_;function _O(){return l_||(l_=1,(function(t){function a(o){return r.ddSdk.invokeAPI(i,o)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.confirm$=void 0;var r=I(),n=ge(),i="device.notification.confirm",u=n.genDefaultParamsDealFn({title:"",buttonLabels:["确定","取消"]});r.ddSdk.setAPI(i,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0",paramsDeal:u},e[r.ENV_ENUM.pc]={vs:"2.5.0"},e[r.ENV_ENUM.ios]={vs:"2.4.0",paramsDeal:u},e[r.ENV_ENUM.android]={vs:"2.4.0",paramsDeal:u},e)),t.confirm$=a,t.default=a})(ms)),ms}var Es={},f_;function mO(){return f_||(f_=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.extendModal$=void 0;var r=I(),n="device.notification.extendModal";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"2.5.0"},e[r.ENV_ENUM.android]={vs:"2.5.0"},e)),t.extendModal$=a,t.default=a})(Es)),Es}var ys={},v_;function EO(){return v_||(v_=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.hidePreloader$=void 0;var r=I(),n="device.notification.hidePreloader";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"2.4.0"},e[r.ENV_ENUM.android]={vs:"2.4.0"},e)),t.hidePreloader$=a,t.default=a})(ys)),ys}var Ns={},h_;function yO(){return h_||(h_=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.modal$=void 0;var r=I(),n="device.notification.modal";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.pc]={vs:"4.2.5"},e[r.ENV_ENUM.ios]={vs:"2.4.0"},e[r.ENV_ENUM.android]={vs:"2.4.0"},e)),t.modal$=a,t.default=a})(Ns)),Ns}var Ss={},p_;function NO(){return p_||(p_=1,(function(t){function a(o){return r.ddSdk.invokeAPI(i,o)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.prompt$=void 0;var r=I(),n=ge(),i="device.notification.prompt",u=n.genDefaultParamsDealFn({title:"",buttonLabels:["确定","取消"]});r.ddSdk.setAPI(i,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.pc]={vs:"2.7.0"},e[r.ENV_ENUM.ios]={vs:"2.4.0",paramsDeal:u},e[r.ENV_ENUM.android]={vs:"2.4.0",paramsDeal:u},e)),t.prompt$=a,t.default=a})(Ss)),Ss}var Cs={},g_;function SO(){return g_||(g_=1,(function(t){function a(o){return r.ddSdk.invokeAPI(i,o)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.showPreloader$=void 0;var r=I(),n=ge(),i="device.notification.showPreloader",u=n.genDefaultParamsDealFn({text:"加载中...",showIcon:!0});r.ddSdk.setAPI(i,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0",paramsDeal:u},e[r.ENV_ENUM.ios]={vs:"2.4.0",paramsDeal:u},e[r.ENV_ENUM.android]={vs:"2.4.0",paramsDeal:u},e)),t.showPreloader$=a,t.default=a})(Cs)),Cs}var bs={},__;function CO(){return __||(__=1,(function(t){function a(o){return r.ddSdk.invokeAPI(i,o)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.toast$=void 0;var r=I(),n=ge(),i="device.notification.toast",u=n.genDefaultParamsDealFn({text:"toast",duration:3,delay:0});r.ddSdk.setAPI(i,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.pc]={vs:"2.5.0",paramsDeal:function(o){return o.icon&&!o.type&&(o.icon==="success"?o.type="success":o.icon==="error"&&(o.type="error")),o}},e[r.ENV_ENUM.ios]={vs:"2.4.0",paramsDeal:u},e[r.ENV_ENUM.android]={vs:"2.4.0",paramsDeal:u},e)),t.toast$=a,t.default=a})(bs)),bs}var Is={},m_;function bO(){return m_||(m_=1,(function(t){function a(o){return r.ddSdk.invokeAPI(i,o)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.vibrate$=void 0;var r=I(),n=ge(),i="device.notification.vibrate",u=n.genDefaultParamsDealFn({duration:300});r.ddSdk.setAPI(i,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0",paramsDeal:u},e[r.ENV_ENUM.ios]={vs:"2.4.0",paramsDeal:u},e[r.ENV_ENUM.android]={vs:"2.4.0",paramsDeal:u},e)),t.vibrate$=a,t.default=a})(Is)),Is}var Ps={},E_;function IO(){return E_||(E_=1,(function(t){function a(n){return e.ddSdk.invokeAPI(r,n)}Object.defineProperty(t,"__esModule",{value:!0}),t.getScreenBrightness$=void 0;var e=I(),r="device.screen.getScreenBrightness";e.ddSdk.setAPI(r,{}),t.getScreenBrightness$=a,t.default=a})(Ps)),Ps}var As={},y_;function PO(){return y_||(y_=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.insetAdjust$=void 0;var r=I(),n="device.screen.insetAdjust";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.ios]={vs:"4.6.18"},e)),t.insetAdjust$=a,t.default=a})(As)),As}var ks={},N_;function AO(){return N_||(N_=1,(function(t){function a(n){return e.ddSdk.invokeAPI(r,n)}Object.defineProperty(t,"__esModule",{value:!0}),t.isScreenReaderEnabled$=void 0;var e=I(),r="device.screen.isScreenReaderEnabled";e.ddSdk.setAPI(r,{}),t.isScreenReaderEnabled$=a,t.default=a})(ks)),ks}var Ms={},S_;function kO(){return S_||(S_=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.resetView$=void 0;var r=I(),n="device.screen.resetView";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.android]={vs:"4.0.0"},e[r.ENV_ENUM.ios]={vs:"4.0.0"},e)),t.resetView$=a,t.default=a})(Ms)),Ms}var Us={},C_;function MO(){return C_||(C_=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.rotateView$=void 0;var r=I(),n="device.screen.rotateView";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.android]={vs:"4.0.0"},e[r.ENV_ENUM.ios]={vs:"4.0.0"},e)),t.rotateView$=a,t.default=a})(Us)),Us}var Ts={},b_;function UO(){return b_||(b_=1,(function(t){function a(n){return e.ddSdk.invokeAPI(r,n)}Object.defineProperty(t,"__esModule",{value:!0}),t.setScreenBrightness$=void 0;var e=I(),r="device.screen.setScreenBrightness";e.ddSdk.setAPI(r,{}),t.setScreenBrightness$=a,t.default=a})(Ts)),Ts}var Vs={},I_;function TO(){return I_||(I_=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.keepAlive$=void 0;var r=I(),n="media.voiceRecorder.keepAlive";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"5.1.12"},e[r.ENV_ENUM.android]={vs:"5.1.12"},e[r.ENV_ENUM.pc]={vs:"5.1.12"},e)),t.keepAlive$=a,t.default=a})(Vs)),Vs}var Bs={},P_;function VO(){return P_||(P_=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.pause$=void 0;var r=I(),n="media.voiceRecorder.pause";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"5.1.12"},e[r.ENV_ENUM.android]={vs:"5.1.12"},e[r.ENV_ENUM.pc]={vs:"5.1.12"},e)),t.pause$=a,t.default=a})(Bs)),Bs}var Rs={},A_;function BO(){return A_||(A_=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.resume$=void 0;var r=I(),n="media.voiceRecorder.resume";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"5.1.12"},e[r.ENV_ENUM.android]={vs:"5.1.12"},e[r.ENV_ENUM.pc]={vs:"5.1.12"},e)),t.resume$=a,t.default=a})(Rs)),Rs}var ws={},k_;function RO(){return k_||(k_=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.start$=void 0;var r=I(),n="media.voiceRecorder.start";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"5.1.12"},e[r.ENV_ENUM.android]={vs:"5.1.12"},e[r.ENV_ENUM.pc]={vs:"5.1.12"},e)),t.start$=a,t.default=a})(ws)),ws}var Ds={},M_;function wO(){return M_||(M_=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.stop$=void 0;var r=I(),n="media.voiceRecorder.stop";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"5.1.12"},e[r.ENV_ENUM.android]={vs:"5.1.12"},e[r.ENV_ENUM.pc]={vs:"5.1.12"},e)),t.stop$=a,t.default=a})(Ds)),Ds}var Os={},U_;function DO(){return U_||(U_=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.loginGovNet$=void 0;var r=I(),n="net.bjGovApn.loginGovNet";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.android]={vs:"4.5.16"},e)),t.loginGovNet$=a,t.default=a})(Os)),Os}var Ls={},T_;function OO(){return T_||(T_=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.exec$=void 0;var r=I(),n="runtime.h5nuvabridge.exec";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"7.0.0"},e[r.ENV_ENUM.android]={vs:"7.0.0"},e)),t.exec$=a,t.default=a})(Ls)),Ls}var qs={},V_;function LO(){return V_||(V_=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.fetch$=void 0;var r=I(),n="runtime.message.fetch";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"2.6.0"},e[r.ENV_ENUM.android]={vs:"2.6.0"},e)),t.fetch$=a,t.default=a})(qs)),qs}var Fs={},B_;function qO(){return B_||(B_=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.post$=void 0;var r=I(),n="runtime.message.post";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"2.6.0"},e[r.ENV_ENUM.android]={vs:"2.6.0"},e)),t.post$=a,t.default=a})(Fs)),Fs}var js={},R_;function FO(){return R_||(R_=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.getLoadTime$=void 0;var r=I(),n="runtime.monitor.getLoadTime";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"6.0.10"},e[r.ENV_ENUM.android]={vs:"6.0.10"},e)),t.getLoadTime$=a,t.default=a})(js)),js}var xs={},w_;function jO(){return w_||(w_=1,(function(t){function a(u){return r.ddSdk.invokeAPI(n,u)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.requestAuthCode$=void 0;var r=I(),n="runtime.permission.requestAuthCode",i=function(u){return Object.assign(u,{url:location.href.split("#")[0]})};r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.pc]={vs:"3.0.0",paramsDeal:i},e[r.ENV_ENUM.ios]={vs:"2.4.0"},e[r.ENV_ENUM.android]={vs:"2.4.0"},e)),t.requestAuthCode$=a,t.default=a})(xs)),xs}var zs={},D_;function xO(){return D_||(D_=1,(function(t){function a(u){return r.ddSdk.invokeAPI(n,u)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.requestOperateAuthCode$=void 0;var r=I(),n="runtime.permission.requestOperateAuthCode",i=function(u){return Object.assign(u,{url:location.href.split("#")[0]})};r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.pc]={vs:"3.3.0",paramsDeal:i},e[r.ENV_ENUM.ios]={vs:"3.3.0"},e[r.ENV_ENUM.android]={vs:"3.3.0"},e)),t.requestOperateAuthCode$=a,t.default=a})(zs)),zs}var Gs={},O_;function zO(){return O_||(O_=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.plain$=void 0;var r=I(),n="ui.input.plain";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"2.4.0"},e[r.ENV_ENUM.android]={vs:"2.4.0"},e)),t.plain$=a,t.default=a})(Gs)),Gs}var Ks={},L_;function GO(){return L_||(L_=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.addToFloat$=void 0;var r=I(),n="ui.multitask.addToFloat";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"6.5.0"},e[r.ENV_ENUM.android]={vs:"6.5.0"},e)),t.addToFloat$=a,t.default=a})(Ks)),Ks}var $s={},q_;function KO(){return q_||(q_=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.removeFromFloat$=void 0;var r=I(),n="ui.multitask.removeFromFloat";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"6.5.0"},e[r.ENV_ENUM.android]={vs:"6.5.0"},e)),t.removeFromFloat$=a,t.default=a})($s)),$s}var Ws={},F_;function $O(){return F_||(F_=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.close$=void 0;var r=I(),n="ui.nav.close";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"2.6.0"},e[r.ENV_ENUM.android]={vs:"2.6.0"},e)),t.close$=a,t.default=a})(Ws)),Ws}var Hs={},j_;function WO(){return j_||(j_=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.getCurrentId$=void 0;var r=I(),n="ui.nav.getCurrentId";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"2.6.0"},e[r.ENV_ENUM.android]={vs:"2.6.0"},e)),t.getCurrentId$=a,t.default=a})(Hs)),Hs}var Qs={},x_;function HO(){return x_||(x_=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.go$=void 0;var r=I(),n="ui.nav.go";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"2.6.0"},e[r.ENV_ENUM.android]={vs:"2.6.0"},e)),t.go$=a,t.default=a})(Qs)),Qs}var Ys={},z_;function QO(){return z_||(z_=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.preload$=void 0;var r=I(),n="ui.nav.preload";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"2.6.0"},e[r.ENV_ENUM.android]={vs:"2.6.0"},e)),t.preload$=a,t.default=a})(Ys)),Ys}var Xs={},G_;function YO(){return G_||(G_=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.recycle$=void 0;var r=I(),n="ui.nav.recycle";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"2.6.0"},e[r.ENV_ENUM.android]={vs:"2.6.0"},e)),t.recycle$=a,t.default=a})(Xs)),Xs}var Js={},K_;function XO(){return K_||(K_=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.setColors$=void 0;var r=I(),n="ui.progressBar.setColors";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"2.4.0"},e[r.ENV_ENUM.android]={vs:"2.4.0"},e)),t.setColors$=a,t.default=a})(Js)),Js}var Zs={},$_;function JO(){return $_||($_=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.disable$=void 0;var r=I(),n="ui.pullToRefresh.disable";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"2.4.0"},e[r.ENV_ENUM.android]={vs:"2.4.0"},e)),t.disable$=a,t.default=a})(Zs)),Zs}var ed={},W_;function ZO(){return W_||(W_=1,(function(t){function a(u){return r.ddSdk.invokeAPI(i,u)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.enable$=void 0;var r=I(),n=ge(),i="ui.pullToRefresh.enable";r.ddSdk.setAPI(i,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"2.4.0",paramsDeal:n.addWatchParamsDeal},e[r.ENV_ENUM.android]={vs:"2.4.0",paramsDeal:n.addWatchParamsDeal},e)),t.enable$=a,t.default=a})(ed)),ed}var td={},H_;function e5(){return H_||(H_=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.stop$=void 0;var r=I(),n="ui.pullToRefresh.stop";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"2.4.0"},e[r.ENV_ENUM.android]={vs:"2.4.0"},e)),t.stop$=a,t.default=a})(td)),td}var rd={},Q_;function t5(){return Q_||(Q_=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.disable$=void 0;var r=I(),n="ui.webViewBounce.disable";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.ios]={vs:"2.4.0"},e[r.ENV_ENUM.android]={vs:"2.4.0"},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e)),t.disable$=a,t.default=a})(rd)),rd}var ad={},Y_;function r5(){return Y_||(Y_=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.enable$=void 0;var r=I(),n="ui.webViewBounce.enable";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"2.4.0"},e[r.ENV_ENUM.android]={vs:"2.4.0"},e)),t.enable$=a,t.default=a})(ad)),ad}var nd={},X_;function J_(){return X_||(X_=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.ExternalChannelPublish$=void 0;var r=I(),n="biz.channel.externalChannelPublish";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.pc]={vs:"7.0.50"},e)),t.ExternalChannelPublish$=a,t.default=a})(nd)),nd}var id={},Z_;function em(){return Z_||(Z_=1,(function(t){function a(i){return r.ddSdk.invokeAPI(n,i)}var e;Object.defineProperty(t,"__esModule",{value:!0}),t.addPhoneContact$=void 0;var r=I(),n="biz.phoneContact.add";r.ddSdk.setAPI(n,(e={},e[r.ENV_ENUM.harmony]={vs:"7.0.0"},e[r.ENV_ENUM.ios]={vs:"7.0.0"},e[r.ENV_ENUM.android]={vs:"7.0.0"},e)),t.addPhoneContact$=a,t.default=a})(id)),id}var hr={},tm;function rm(){return tm||(tm=1,(function(t){function a(o){return n.ddSdk.invokeAPI(i,{message:o.content,title:o==null?void 0:o.title,buttonName:o.buttonText,success:o.success,fail:o.fail,complete:o.complete})}var e=hr&&hr.__assign||function(){return e=Object.assign||function(o){for(var v,c=1,h=arguments.length;c