var eG=Object.defineProperty;var tG=(u,f,d)=>f in u?eG(u,f,{enumerable:!0,configurable:!0,writable:!0,value:d}):u[f]=d;var aM=(u,f,d)=>(tG(u,typeof f!="symbol"?f+"":f,d),d);var define_process_env_default$1={};(function(){const u={NODE_ENV:"production"};try{if(process){define_process_env_default$1=Object.assign({},define_process_env_default$1),Object.assign(define_process_env_default$1,u);return}}catch{}globalThis.process={env:u}})();(function(){const f=document.createElement("link").relList;if(f&&f.supports&&f.supports("modulepreload"))return;for(const x of document.querySelectorAll('link[rel="modulepreload"]'))_(x);new MutationObserver(x=>{for(const I of x)if(I.type==="childList")for(const E of I.addedNodes)E.tagName==="LINK"&&E.rel==="modulepreload"&&_(E)}).observe(document,{childList:!0,subtree:!0});function d(x){const I={};return x.integrity&&(I.integrity=x.integrity),x.referrerPolicy&&(I.referrerPolicy=x.referrerPolicy),x.crossOrigin==="use-credentials"?I.credentials="include":x.crossOrigin==="anonymous"?I.credentials="omit":I.credentials="same-origin",I}function _(x){if(x.ep)return;x.ep=!0;const I=d(x);fetch(x.href,I)}})();var commonjsGlobal$1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getAugmentedNamespace(u){if(u.__esModule)return u;var f=u.default;if(typeof f=="function"){var d=function _(){return this instanceof _?Reflect.construct(f,arguments,this.constructor):f.apply(this,arguments)};d.prototype=f.prototype}else d={};return Object.defineProperty(d,"__esModule",{value:!0}),Object.keys(u).forEach(function(_){var x=Object.getOwnPropertyDescriptor(u,_);Object.defineProperty(d,_,x.get?x:{enumerable:!0,get:function(){return u[_]}})}),d}var buffer$2={},base64Js={};base64Js.byteLength=byteLength;base64Js.toByteArray=toByteArray;base64Js.fromByteArray=fromByteArray;var lookup=[],revLookup=[],Arr=typeof Uint8Array<"u"?Uint8Array:Array,code$4="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var i$1=0,len=code$4.length;i$1<len;++i$1)lookup[i$1]=code$4[i$1],revLookup[code$4.charCodeAt(i$1)]=i$1;revLookup[45]=62;revLookup[95]=63;function getLens(u){var f=u.length;if(f%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var d=u.indexOf("=");d===-1&&(d=f);var _=d===f?0:4-d%4;return[d,_]}function byteLength(u){var f=getLens(u),d=f[0],_=f[1];return(d+_)*3/4-_}function _byteLength(u,f,d){return(f+d)*3/4-d}function toByteArray(u){var f,d=getLens(u),_=d[0],x=d[1],I=new Arr(_byteLength(u,_,x)),E=0,M=x>0?_-4:_,S;for(S=0;S<M;S+=4)f=revLookup[u.charCodeAt(S)]<<18|revLookup[u.charCodeAt(S+1)]<<12|revLookup[u.charCodeAt(S+2)]<<6|revLookup[u.charCodeAt(S+3)],I[E++]=f>>16&255,I[E++]=f>>8&255,I[E++]=f&255;return x===2&&(f=revLookup[u.charCodeAt(S)]<<2|revLookup[u.charCodeAt(S+1)]>>4,I[E++]=f&255),x===1&&(f=revLookup[u.charCodeAt(S)]<<10|revLookup[u.charCodeAt(S+1)]<<4|revLookup[u.charCodeAt(S+2)]>>2,I[E++]=f>>8&255,I[E++]=f&255),I}function tripletToBase64(u){return lookup[u>>18&63]+lookup[u>>12&63]+lookup[u>>6&63]+lookup[u&63]}function encodeChunk(u,f,d){for(var _,x=[],I=f;I<d;I+=3)_=(u[I]<<16&16711680)+(u[I+1]<<8&65280)+(u[I+2]&255),x.push(tripletToBase64(_));return x.join("")}function fromByteArray(u){for(var f,d=u.length,_=d%3,x=[],I=16383,E=0,M=d-_;E<M;E+=I)x.push(encodeChunk(u,E,E+I>M?M:E+I));return _===1?(f=u[d-1],x.push(lookup[f>>2]+lookup[f<<4&63]+"==")):_===2&&(f=(u[d-2]<<8)+u[d-1],x.push(lookup[f>>10]+lookup[f>>4&63]+lookup[f<<2&63]+"=")),x.join("")}var ieee754={};ieee754.read=function(u,f,d,_,x){var I,E,M=x*8-_-1,S=(1<<M)-1,A=S>>1,T=-7,D=d?x-1:0,O=d?-1:1,j=u[f+D];for(D+=O,I=j&(1<<-T)-1,j>>=-T,T+=M;T>0;I=I*256+u[f+D],D+=O,T-=8);for(E=I&(1<<-T)-1,I>>=-T,T+=_;T>0;E=E*256+u[f+D],D+=O,T-=8);if(I===0)I=1-A;else{if(I===S)return E?NaN:(j?-1:1)*(1/0);E=E+Math.pow(2,_),I=I-A}return(j?-1:1)*E*Math.pow(2,I-_)};ieee754.write=function(u,f,d,_,x,I){var E,M,S,A=I*8-x-1,T=(1<<A)-1,D=T>>1,O=x===23?Math.pow(2,-24)-Math.pow(2,-77):0,j=_?0:I-1,$=_?1:-1,W=f<0||f===0&&1/f<0?1:0;for(f=Math.abs(f),isNaN(f)||f===1/0?(M=isNaN(f)?1:0,E=T):(E=Math.floor(Math.log(f)/Math.LN2),f*(S=Math.pow(2,-E))<1&&(E--,S*=2),E+D>=1?f+=O/S:f+=O*Math.pow(2,1-D),f*S>=2&&(E++,S/=2),E+D>=T?(M=0,E=T):E+D>=1?(M=(f*S-1)*Math.pow(2,x),E=E+D):(M=f*Math.pow(2,D-1)*Math.pow(2,x),E=0));x>=8;u[d+j]=M&255,j+=$,M/=256,x-=8);for(E=E<<x|M,A+=x;A>0;u[d+j]=E&255,j+=$,E/=256,A-=8);u[d+j-$]|=W*128};(function(u){var f=base64Js,d=ieee754,_=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;u.Buffer=M,u.SlowBuffer=Y,u.INSPECT_MAX_BYTES=50;var x=2147483647;u.kMaxLength=x,M.TYPED_ARRAY_SUPPORT=I(),!M.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function I(){try{var Oe=new Uint8Array(1),Ne={foo:function(){return 42}};return Object.setPrototypeOf(Ne,Uint8Array.prototype),Object.setPrototypeOf(Oe,Ne),Oe.foo()===42}catch{return!1}}Object.defineProperty(M.prototype,"parent",{enumerable:!0,get:function(){if(M.isBuffer(this))return this.buffer}}),Object.defineProperty(M.prototype,"offset",{enumerable:!0,get:function(){if(M.isBuffer(this))return this.byteOffset}});function E(Oe){if(Oe>x)throw new RangeError('The value "'+Oe+'" is invalid for option "size"');var Ne=new Uint8Array(Oe);return Object.setPrototypeOf(Ne,M.prototype),Ne}function M(Oe,Ne,Fe){if(typeof Oe=="number"){if(typeof Ne=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return D(Oe)}return S(Oe,Ne,Fe)}M.poolSize=8192;function S(Oe,Ne,Fe){if(typeof Oe=="string")return O(Oe,Ne);if(ArrayBuffer.isView(Oe))return $(Oe);if(Oe==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Oe);if($e(Oe,ArrayBuffer)||Oe&&$e(Oe.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&($e(Oe,SharedArrayBuffer)||Oe&&$e(Oe.buffer,SharedArrayBuffer)))return W(Oe,Ne,Fe);if(typeof Oe=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var Je=Oe.valueOf&&Oe.valueOf();if(Je!=null&&Je!==Oe)return M.from(Je,Ne,Fe);var Dt=Q(Oe);if(Dt)return Dt;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Oe[Symbol.toPrimitive]=="function")return M.from(Oe[Symbol.toPrimitive]("string"),Ne,Fe);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Oe)}M.from=function(Oe,Ne,Fe){return S(Oe,Ne,Fe)},Object.setPrototypeOf(M.prototype,Uint8Array.prototype),Object.setPrototypeOf(M,Uint8Array);function A(Oe){if(typeof Oe!="number")throw new TypeError('"size" argument must be of type number');if(Oe<0)throw new RangeError('The value "'+Oe+'" is invalid for option "size"')}function T(Oe,Ne,Fe){return A(Oe),Oe<=0?E(Oe):Ne!==void 0?typeof Fe=="string"?E(Oe).fill(Ne,Fe):E(Oe).fill(Ne):E(Oe)}M.alloc=function(Oe,Ne,Fe){return T(Oe,Ne,Fe)};function D(Oe){return A(Oe),E(Oe<0?0:X(Oe)|0)}M.allocUnsafe=function(Oe){return D(Oe)},M.allocUnsafeSlow=function(Oe){return D(Oe)};function O(Oe,Ne){if((typeof Ne!="string"||Ne==="")&&(Ne="utf8"),!M.isEncoding(Ne))throw new TypeError("Unknown encoding: "+Ne);var Fe=ie(Oe,Ne)|0,Je=E(Fe),Dt=Je.write(Oe,Ne);return Dt!==Fe&&(Je=Je.slice(0,Dt)),Je}function j(Oe){for(var Ne=Oe.length<0?0:X(Oe.length)|0,Fe=E(Ne),Je=0;Je<Ne;Je+=1)Fe[Je]=Oe[Je]&255;return Fe}function $(Oe){if($e(Oe,Uint8Array)){var Ne=new Uint8Array(Oe);return W(Ne.buffer,Ne.byteOffset,Ne.byteLength)}return j(Oe)}function W(Oe,Ne,Fe){if(Ne<0||Oe.byteLength<Ne)throw new RangeError('"offset" is outside of buffer bounds');if(Oe.byteLength<Ne+(Fe||0))throw new RangeError('"length" is outside of buffer bounds');var Je;return Ne===void 0&&Fe===void 0?Je=new Uint8Array(Oe):Fe===void 0?Je=new Uint8Array(Oe,Ne):Je=new Uint8Array(Oe,Ne,Fe),Object.setPrototypeOf(Je,M.prototype),Je}function Q(Oe){if(M.isBuffer(Oe)){var Ne=X(Oe.length)|0,Fe=E(Ne);return Fe.length===0||Oe.copy(Fe,0,0,Ne),Fe}if(Oe.length!==void 0)return typeof Oe.length!="number"||Le(Oe.length)?E(0):j(Oe);if(Oe.type==="Buffer"&&Array.isArray(Oe.data))return j(Oe.data)}function X(Oe){if(Oe>=x)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+x.toString(16)+" bytes");return Oe|0}function Y(Oe){return+Oe!=Oe&&(Oe=0),M.alloc(+Oe)}M.isBuffer=function(Ne){return Ne!=null&&Ne._isBuffer===!0&&Ne!==M.prototype},M.compare=function(Ne,Fe){if($e(Ne,Uint8Array)&&(Ne=M.from(Ne,Ne.offset,Ne.byteLength)),$e(Fe,Uint8Array)&&(Fe=M.from(Fe,Fe.offset,Fe.byteLength)),!M.isBuffer(Ne)||!M.isBuffer(Fe))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Ne===Fe)return 0;for(var Je=Ne.length,Dt=Fe.length,oi=0,Bt=Math.min(Je,Dt);oi<Bt;++oi)if(Ne[oi]!==Fe[oi]){Je=Ne[oi],Dt=Fe[oi];break}return Je<Dt?-1:Dt<Je?1:0},M.isEncoding=function(Ne){switch(String(Ne).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},M.concat=function(Ne,Fe){if(!Array.isArray(Ne))throw new TypeError('"list" argument must be an Array of Buffers');if(Ne.length===0)return M.alloc(0);var Je;if(Fe===void 0)for(Fe=0,Je=0;Je<Ne.length;++Je)Fe+=Ne[Je].length;var Dt=M.allocUnsafe(Fe),oi=0;for(Je=0;Je<Ne.length;++Je){var Bt=Ne[Je];if($e(Bt,Uint8Array))oi+Bt.length>Dt.length?M.from(Bt).copy(Dt,oi):Uint8Array.prototype.set.call(Dt,Bt,oi);else if(M.isBuffer(Bt))Bt.copy(Dt,oi);else throw new TypeError('"list" argument must be an Array of Buffers');oi+=Bt.length}return Dt};function ie(Oe,Ne){if(M.isBuffer(Oe))return Oe.length;if(ArrayBuffer.isView(Oe)||$e(Oe,ArrayBuffer))return Oe.byteLength;if(typeof Oe!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Oe);var Fe=Oe.length,Je=arguments.length>2&&arguments[2]===!0;if(!Je&&Fe===0)return 0;for(var Dt=!1;;)switch(Ne){case"ascii":case"latin1":case"binary":return Fe;case"utf8":case"utf-8":return vt(Oe).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Fe*2;case"hex":return Fe>>>1;case"base64":return tt(Oe).length;default:if(Dt)return Je?-1:vt(Oe).length;Ne=(""+Ne).toLowerCase(),Dt=!0}}M.byteLength=ie;function oe(Oe,Ne,Fe){var Je=!1;if((Ne===void 0||Ne<0)&&(Ne=0),Ne>this.length||((Fe===void 0||Fe>this.length)&&(Fe=this.length),Fe<=0)||(Fe>>>=0,Ne>>>=0,Fe<=Ne))return"";for(Oe||(Oe="utf8");;)switch(Oe){case"hex":return q(this,Ne,Fe);case"utf8":case"utf-8":return k(this,Ne,Fe);case"ascii":return ee(this,Ne,Fe);case"latin1":case"binary":return H(this,Ne,Fe);case"base64":return P(this,Ne,Fe);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return J(this,Ne,Fe);default:if(Je)throw new TypeError("Unknown encoding: "+Oe);Oe=(Oe+"").toLowerCase(),Je=!0}}M.prototype._isBuffer=!0;function ge(Oe,Ne,Fe){var Je=Oe[Ne];Oe[Ne]=Oe[Fe],Oe[Fe]=Je}M.prototype.swap16=function(){var Ne=this.length;if(Ne%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var Fe=0;Fe<Ne;Fe+=2)ge(this,Fe,Fe+1);return this},M.prototype.swap32=function(){var Ne=this.length;if(Ne%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var Fe=0;Fe<Ne;Fe+=4)ge(this,Fe,Fe+3),ge(this,Fe+1,Fe+2);return this},M.prototype.swap64=function(){var Ne=this.length;if(Ne%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var Fe=0;Fe<Ne;Fe+=8)ge(this,Fe,Fe+7),ge(this,Fe+1,Fe+6),ge(this,Fe+2,Fe+5),ge(this,Fe+3,Fe+4);return this},M.prototype.toString=function(){var Ne=this.length;return Ne===0?"":arguments.length===0?k(this,0,Ne):oe.apply(this,arguments)},M.prototype.toLocaleString=M.prototype.toString,M.prototype.equals=function(Ne){if(!M.isBuffer(Ne))throw new TypeError("Argument must be a Buffer");return this===Ne?!0:M.compare(this,Ne)===0},M.prototype.inspect=function(){var Ne="",Fe=u.INSPECT_MAX_BYTES;return Ne=this.toString("hex",0,Fe).replace(/(.{2})/g,"$1 ").trim(),this.length>Fe&&(Ne+=" ... "),"<Buffer "+Ne+">"},_&&(M.prototype[_]=M.prototype.inspect),M.prototype.compare=function(Ne,Fe,Je,Dt,oi){if($e(Ne,Uint8Array)&&(Ne=M.from(Ne,Ne.offset,Ne.byteLength)),!M.isBuffer(Ne))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Ne);if(Fe===void 0&&(Fe=0),Je===void 0&&(Je=Ne?Ne.length:0),Dt===void 0&&(Dt=0),oi===void 0&&(oi=this.length),Fe<0||Je>Ne.length||Dt<0||oi>this.length)throw new RangeError("out of range index");if(Dt>=oi&&Fe>=Je)return 0;if(Dt>=oi)return-1;if(Fe>=Je)return 1;if(Fe>>>=0,Je>>>=0,Dt>>>=0,oi>>>=0,this===Ne)return 0;for(var Bt=oi-Dt,li=Je-Fe,ii=Math.min(Bt,li),Ot=this.slice(Dt,oi),St=Ne.slice(Fe,Je),pi=0;pi<ii;++pi)if(Ot[pi]!==St[pi]){Bt=Ot[pi],li=St[pi];break}return Bt<li?-1:li<Bt?1:0};function be(Oe,Ne,Fe,Je,Dt){if(Oe.length===0)return-1;if(typeof Fe=="string"?(Je=Fe,Fe=0):Fe>2147483647?Fe=2147483647:Fe<-2147483648&&(Fe=-2147483648),Fe=+Fe,Le(Fe)&&(Fe=Dt?0:Oe.length-1),Fe<0&&(Fe=Oe.length+Fe),Fe>=Oe.length){if(Dt)return-1;Fe=Oe.length-1}else if(Fe<0)if(Dt)Fe=0;else return-1;if(typeof Ne=="string"&&(Ne=M.from(Ne,Je)),M.isBuffer(Ne))return Ne.length===0?-1:ze(Oe,Ne,Fe,Je,Dt);if(typeof Ne=="number")return Ne=Ne&255,typeof Uint8Array.prototype.indexOf=="function"?Dt?Uint8Array.prototype.indexOf.call(Oe,Ne,Fe):Uint8Array.prototype.lastIndexOf.call(Oe,Ne,Fe):ze(Oe,[Ne],Fe,Je,Dt);throw new TypeError("val must be string, number or Buffer")}function ze(Oe,Ne,Fe,Je,Dt){var oi=1,Bt=Oe.length,li=Ne.length;if(Je!==void 0&&(Je=String(Je).toLowerCase(),Je==="ucs2"||Je==="ucs-2"||Je==="utf16le"||Je==="utf-16le")){if(Oe.length<2||Ne.length<2)return-1;oi=2,Bt/=2,li/=2,Fe/=2}function ii(hi,mi){return oi===1?hi[mi]:hi.readUInt16BE(mi*oi)}var Ot;if(Dt){var St=-1;for(Ot=Fe;Ot<Bt;Ot++)if(ii(Oe,Ot)===ii(Ne,St===-1?0:Ot-St)){if(St===-1&&(St=Ot),Ot-St+1===li)return St*oi}else St!==-1&&(Ot-=Ot-St),St=-1}else for(Fe+li>Bt&&(Fe=Bt-li),Ot=Fe;Ot>=0;Ot--){for(var pi=!0,eM=0;eM<li;eM++)if(ii(Oe,Ot+eM)!==ii(Ne,eM)){pi=!1;break}if(pi)return Ot}return-1}M.prototype.includes=function(Ne,Fe,Je){return this.indexOf(Ne,Fe,Je)!==-1},M.prototype.indexOf=function(Ne,Fe,Je){return be(this,Ne,Fe,Je,!0)},M.prototype.lastIndexOf=function(Ne,Fe,Je){return be(this,Ne,Fe,Je,!1)};function de(Oe,Ne,Fe,Je){Fe=Number(Fe)||0;var Dt=Oe.length-Fe;Je?(Je=Number(Je),Je>Dt&&(Je=Dt)):Je=Dt;var oi=Ne.length;Je>oi/2&&(Je=oi/2);for(var Bt=0;Bt<Je;++Bt){var li=parseInt(Ne.substr(Bt*2,2),16);if(Le(li))return Bt;Oe[Fe+Bt]=li}return Bt}function Ce(Oe,Ne,Fe,Je){return et(vt(Ne,Oe.length-Fe),Oe,Fe,Je)}function ke(Oe,Ne,Fe,Je){return et(ri(Ne),Oe,Fe,Je)}function le(Oe,Ne,Fe,Je){return et(tt(Ne),Oe,Fe,Je)}function re(Oe,Ne,Fe,Je){return et(ci(Ne,Oe.length-Fe),Oe,Fe,Je)}M.prototype.write=function(Ne,Fe,Je,Dt){if(Fe===void 0)Dt="utf8",Je=this.length,Fe=0;else if(Je===void 0&&typeof Fe=="string")Dt=Fe,Je=this.length,Fe=0;else if(isFinite(Fe))Fe=Fe>>>0,isFinite(Je)?(Je=Je>>>0,Dt===void 0&&(Dt="utf8")):(Dt=Je,Je=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var oi=this.length-Fe;if((Je===void 0||Je>oi)&&(Je=oi),Ne.length>0&&(Je<0||Fe<0)||Fe>this.length)throw new RangeError("Attempt to write outside buffer bounds");Dt||(Dt="utf8");for(var Bt=!1;;)switch(Dt){case"hex":return de(this,Ne,Fe,Je);case"utf8":case"utf-8":return Ce(this,Ne,Fe,Je);case"ascii":case"latin1":case"binary":return ke(this,Ne,Fe,Je);case"base64":return le(this,Ne,Fe,Je);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return re(this,Ne,Fe,Je);default:if(Bt)throw new TypeError("Unknown encoding: "+Dt);Dt=(""+Dt).toLowerCase(),Bt=!0}},M.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function P(Oe,Ne,Fe){return Ne===0&&Fe===Oe.length?f.fromByteArray(Oe):f.fromByteArray(Oe.slice(Ne,Fe))}function k(Oe,Ne,Fe){Fe=Math.min(Oe.length,Fe);for(var Je=[],Dt=Ne;Dt<Fe;){var oi=Oe[Dt],Bt=null,li=oi>239?4:oi>223?3:oi>191?2:1;if(Dt+li<=Fe){var ii,Ot,St,pi;switch(li){case 1:oi<128&&(Bt=oi);break;case 2:ii=Oe[Dt+1],(ii&192)===128&&(pi=(oi&31)<<6|ii&63,pi>127&&(Bt=pi));break;case 3:ii=Oe[Dt+1],Ot=Oe[Dt+2],(ii&192)===128&&(Ot&192)===128&&(pi=(oi&15)<<12|(ii&63)<<6|Ot&63,pi>2047&&(pi<55296||pi>57343)&&(Bt=pi));break;case 4:ii=Oe[Dt+1],Ot=Oe[Dt+2],St=Oe[Dt+3],(ii&192)===128&&(Ot&192)===128&&(St&192)===128&&(pi=(oi&15)<<18|(ii&63)<<12|(Ot&63)<<6|St&63,pi>65535&&pi<1114112&&(Bt=pi))}}Bt===null?(Bt=65533,li=1):Bt>65535&&(Bt-=65536,Je.push(Bt>>>10&1023|55296),Bt=56320|Bt&1023),Je.push(Bt),Dt+=li}return z(Je)}var B=4096;function z(Oe){var Ne=Oe.length;if(Ne<=B)return String.fromCharCode.apply(String,Oe);for(var Fe="",Je=0;Je<Ne;)Fe+=String.fromCharCode.apply(String,Oe.slice(Je,Je+=B));return Fe}function ee(Oe,Ne,Fe){var Je="";Fe=Math.min(Oe.length,Fe);for(var Dt=Ne;Dt<Fe;++Dt)Je+=String.fromCharCode(Oe[Dt]&127);return Je}function H(Oe,Ne,Fe){var Je="";Fe=Math.min(Oe.length,Fe);for(var Dt=Ne;Dt<Fe;++Dt)Je+=String.fromCharCode(Oe[Dt]);return Je}function q(Oe,Ne,Fe){var Je=Oe.length;(!Ne||Ne<0)&&(Ne=0),(!Fe||Fe<0||Fe>Je)&&(Fe=Je);for(var Dt="",oi=Ne;oi<Fe;++oi)Dt+=ot[Oe[oi]];return Dt}function J(Oe,Ne,Fe){for(var Je=Oe.slice(Ne,Fe),Dt="",oi=0;oi<Je.length-1;oi+=2)Dt+=String.fromCharCode(Je[oi]+Je[oi+1]*256);return Dt}M.prototype.slice=function(Ne,Fe){var Je=this.length;Ne=~~Ne,Fe=Fe===void 0?Je:~~Fe,Ne<0?(Ne+=Je,Ne<0&&(Ne=0)):Ne>Je&&(Ne=Je),Fe<0?(Fe+=Je,Fe<0&&(Fe=0)):Fe>Je&&(Fe=Je),Fe<Ne&&(Fe=Ne);var Dt=this.subarray(Ne,Fe);return Object.setPrototypeOf(Dt,M.prototype),Dt};function U(Oe,Ne,Fe){if(Oe%1!==0||Oe<0)throw new RangeError("offset is not uint");if(Oe+Ne>Fe)throw new RangeError("Trying to access beyond buffer length")}M.prototype.readUintLE=M.prototype.readUIntLE=function(Ne,Fe,Je){Ne=Ne>>>0,Fe=Fe>>>0,Je||U(Ne,Fe,this.length);for(var Dt=this[Ne],oi=1,Bt=0;++Bt<Fe&&(oi*=256);)Dt+=this[Ne+Bt]*oi;return Dt},M.prototype.readUintBE=M.prototype.readUIntBE=function(Ne,Fe,Je){Ne=Ne>>>0,Fe=Fe>>>0,Je||U(Ne,Fe,this.length);for(var Dt=this[Ne+--Fe],oi=1;Fe>0&&(oi*=256);)Dt+=this[Ne+--Fe]*oi;return Dt},M.prototype.readUint8=M.prototype.readUInt8=function(Ne,Fe){return Ne=Ne>>>0,Fe||U(Ne,1,this.length),this[Ne]},M.prototype.readUint16LE=M.prototype.readUInt16LE=function(Ne,Fe){return Ne=Ne>>>0,Fe||U(Ne,2,this.length),this[Ne]|this[Ne+1]<<8},M.prototype.readUint16BE=M.prototype.readUInt16BE=function(Ne,Fe){return Ne=Ne>>>0,Fe||U(Ne,2,this.length),this[Ne]<<8|this[Ne+1]},M.prototype.readUint32LE=M.prototype.readUInt32LE=function(Ne,Fe){return Ne=Ne>>>0,Fe||U(Ne,4,this.length),(this[Ne]|this[Ne+1]<<8|this[Ne+2]<<16)+this[Ne+3]*16777216},M.prototype.readUint32BE=M.prototype.readUInt32BE=function(Ne,Fe){return Ne=Ne>>>0,Fe||U(Ne,4,this.length),this[Ne]*16777216+(this[Ne+1]<<16|this[Ne+2]<<8|this[Ne+3])},M.prototype.readIntLE=function(Ne,Fe,Je){Ne=Ne>>>0,Fe=Fe>>>0,Je||U(Ne,Fe,this.length);for(var Dt=this[Ne],oi=1,Bt=0;++Bt<Fe&&(oi*=256);)Dt+=this[Ne+Bt]*oi;return oi*=128,Dt>=oi&&(Dt-=Math.pow(2,8*Fe)),Dt},M.prototype.readIntBE=function(Ne,Fe,Je){Ne=Ne>>>0,Fe=Fe>>>0,Je||U(Ne,Fe,this.length);for(var Dt=Fe,oi=1,Bt=this[Ne+--Dt];Dt>0&&(oi*=256);)Bt+=this[Ne+--Dt]*oi;return oi*=128,Bt>=oi&&(Bt-=Math.pow(2,8*Fe)),Bt},M.prototype.readInt8=function(Ne,Fe){return Ne=Ne>>>0,Fe||U(Ne,1,this.length),this[Ne]&128?(255-this[Ne]+1)*-1:this[Ne]},M.prototype.readInt16LE=function(Ne,Fe){Ne=Ne>>>0,Fe||U(Ne,2,this.length);var Je=this[Ne]|this[Ne+1]<<8;return Je&32768?Je|4294901760:Je},M.prototype.readInt16BE=function(Ne,Fe){Ne=Ne>>>0,Fe||U(Ne,2,this.length);var Je=this[Ne+1]|this[Ne]<<8;return Je&32768?Je|4294901760:Je},M.prototype.readInt32LE=function(Ne,Fe){return Ne=Ne>>>0,Fe||U(Ne,4,this.length),this[Ne]|this[Ne+1]<<8|this[Ne+2]<<16|this[Ne+3]<<24},M.prototype.readInt32BE=function(Ne,Fe){return Ne=Ne>>>0,Fe||U(Ne,4,this.length),this[Ne]<<24|this[Ne+1]<<16|this[Ne+2]<<8|this[Ne+3]},M.prototype.readFloatLE=function(Ne,Fe){return Ne=Ne>>>0,Fe||U(Ne,4,this.length),d.read(this,Ne,!0,23,4)},M.prototype.readFloatBE=function(Ne,Fe){return Ne=Ne>>>0,Fe||U(Ne,4,this.length),d.read(this,Ne,!1,23,4)},M.prototype.readDoubleLE=function(Ne,Fe){return Ne=Ne>>>0,Fe||U(Ne,8,this.length),d.read(this,Ne,!0,52,8)},M.prototype.readDoubleBE=function(Ne,Fe){return Ne=Ne>>>0,Fe||U(Ne,8,this.length),d.read(this,Ne,!1,52,8)};function Z(Oe,Ne,Fe,Je,Dt,oi){if(!M.isBuffer(Oe))throw new TypeError('"buffer" argument must be a Buffer instance');if(Ne>Dt||Ne<oi)throw new RangeError('"value" argument is out of bounds');if(Fe+Je>Oe.length)throw new RangeError("Index out of range")}M.prototype.writeUintLE=M.prototype.writeUIntLE=function(Ne,Fe,Je,Dt){if(Ne=+Ne,Fe=Fe>>>0,Je=Je>>>0,!Dt){var oi=Math.pow(2,8*Je)-1;Z(this,Ne,Fe,Je,oi,0)}var Bt=1,li=0;for(this[Fe]=Ne&255;++li<Je&&(Bt*=256);)this[Fe+li]=Ne/Bt&255;return Fe+Je},M.prototype.writeUintBE=M.prototype.writeUIntBE=function(Ne,Fe,Je,Dt){if(Ne=+Ne,Fe=Fe>>>0,Je=Je>>>0,!Dt){var oi=Math.pow(2,8*Je)-1;Z(this,Ne,Fe,Je,oi,0)}var Bt=Je-1,li=1;for(this[Fe+Bt]=Ne&255;--Bt>=0&&(li*=256);)this[Fe+Bt]=Ne/li&255;return Fe+Je},M.prototype.writeUint8=M.prototype.writeUInt8=function(Ne,Fe,Je){return Ne=+Ne,Fe=Fe>>>0,Je||Z(this,Ne,Fe,1,255,0),this[Fe]=Ne&255,Fe+1},M.prototype.writeUint16LE=M.prototype.writeUInt16LE=function(Ne,Fe,Je){return Ne=+Ne,Fe=Fe>>>0,Je||Z(this,Ne,Fe,2,65535,0),this[Fe]=Ne&255,this[Fe+1]=Ne>>>8,Fe+2},M.prototype.writeUint16BE=M.prototype.writeUInt16BE=function(Ne,Fe,Je){return Ne=+Ne,Fe=Fe>>>0,Je||Z(this,Ne,Fe,2,65535,0),this[Fe]=Ne>>>8,this[Fe+1]=Ne&255,Fe+2},M.prototype.writeUint32LE=M.prototype.writeUInt32LE=function(Ne,Fe,Je){return Ne=+Ne,Fe=Fe>>>0,Je||Z(this,Ne,Fe,4,4294967295,0),this[Fe+3]=Ne>>>24,this[Fe+2]=Ne>>>16,this[Fe+1]=Ne>>>8,this[Fe]=Ne&255,Fe+4},M.prototype.writeUint32BE=M.prototype.writeUInt32BE=function(Ne,Fe,Je){return Ne=+Ne,Fe=Fe>>>0,Je||Z(this,Ne,Fe,4,4294967295,0),this[Fe]=Ne>>>24,this[Fe+1]=Ne>>>16,this[Fe+2]=Ne>>>8,this[Fe+3]=Ne&255,Fe+4},M.prototype.writeIntLE=function(Ne,Fe,Je,Dt){if(Ne=+Ne,Fe=Fe>>>0,!Dt){var oi=Math.pow(2,8*Je-1);Z(this,Ne,Fe,Je,oi-1,-oi)}var Bt=0,li=1,ii=0;for(this[Fe]=Ne&255;++Bt<Je&&(li*=256);)Ne<0&&ii===0&&this[Fe+Bt-1]!==0&&(ii=1),this[Fe+Bt]=(Ne/li>>0)-ii&255;return Fe+Je},M.prototype.writeIntBE=function(Ne,Fe,Je,Dt){if(Ne=+Ne,Fe=Fe>>>0,!Dt){var oi=Math.pow(2,8*Je-1);Z(this,Ne,Fe,Je,oi-1,-oi)}var Bt=Je-1,li=1,ii=0;for(this[Fe+Bt]=Ne&255;--Bt>=0&&(li*=256);)Ne<0&&ii===0&&this[Fe+Bt+1]!==0&&(ii=1),this[Fe+Bt]=(Ne/li>>0)-ii&255;return Fe+Je},M.prototype.writeInt8=function(Ne,Fe,Je){return Ne=+Ne,Fe=Fe>>>0,Je||Z(this,Ne,Fe,1,127,-128),Ne<0&&(Ne=255+Ne+1),this[Fe]=Ne&255,Fe+1},M.prototype.writeInt16LE=function(Ne,Fe,Je){return Ne=+Ne,Fe=Fe>>>0,Je||Z(this,Ne,Fe,2,32767,-32768),this[Fe]=Ne&255,this[Fe+1]=Ne>>>8,Fe+2},M.prototype.writeInt16BE=function(Ne,Fe,Je){return Ne=+Ne,Fe=Fe>>>0,Je||Z(this,Ne,Fe,2,32767,-32768),this[Fe]=Ne>>>8,this[Fe+1]=Ne&255,Fe+2},M.prototype.writeInt32LE=function(Ne,Fe,Je){return Ne=+Ne,Fe=Fe>>>0,Je||Z(this,Ne,Fe,4,2147483647,-2147483648),this[Fe]=Ne&255,this[Fe+1]=Ne>>>8,this[Fe+2]=Ne>>>16,this[Fe+3]=Ne>>>24,Fe+4},M.prototype.writeInt32BE=function(Ne,Fe,Je){return Ne=+Ne,Fe=Fe>>>0,Je||Z(this,Ne,Fe,4,2147483647,-2147483648),Ne<0&&(Ne=4294967295+Ne+1),this[Fe]=Ne>>>24,this[Fe+1]=Ne>>>16,this[Fe+2]=Ne>>>8,this[Fe+3]=Ne&255,Fe+4};function ve(Oe,Ne,Fe,Je,Dt,oi){if(Fe+Je>Oe.length)throw new RangeError("Index out of range");if(Fe<0)throw new RangeError("Index out of range")}function Ye(Oe,Ne,Fe,Je,Dt){return Ne=+Ne,Fe=Fe>>>0,Dt||ve(Oe,Ne,Fe,4),d.write(Oe,Ne,Fe,Je,23,4),Fe+4}M.prototype.writeFloatLE=function(Ne,Fe,Je){return Ye(this,Ne,Fe,!0,Je)},M.prototype.writeFloatBE=function(Ne,Fe,Je){return Ye(this,Ne,Fe,!1,Je)};function rt(Oe,Ne,Fe,Je,Dt){return Ne=+Ne,Fe=Fe>>>0,Dt||ve(Oe,Ne,Fe,8),d.write(Oe,Ne,Fe,Je,52,8),Fe+8}M.prototype.writeDoubleLE=function(Ne,Fe,Je){return rt(this,Ne,Fe,!0,Je)},M.prototype.writeDoubleBE=function(Ne,Fe,Je){return rt(this,Ne,Fe,!1,Je)},M.prototype.copy=function(Ne,Fe,Je,Dt){if(!M.isBuffer(Ne))throw new TypeError("argument should be a Buffer");if(Je||(Je=0),!Dt&&Dt!==0&&(Dt=this.length),Fe>=Ne.length&&(Fe=Ne.length),Fe||(Fe=0),Dt>0&&Dt<Je&&(Dt=Je),Dt===Je||Ne.length===0||this.length===0)return 0;if(Fe<0)throw new RangeError("targetStart out of bounds");if(Je<0||Je>=this.length)throw new RangeError("Index out of range");if(Dt<0)throw new RangeError("sourceEnd out of bounds");Dt>this.length&&(Dt=this.length),Ne.length-Fe<Dt-Je&&(Dt=Ne.length-Fe+Je);var oi=Dt-Je;return this===Ne&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(Fe,Je,Dt):Uint8Array.prototype.set.call(Ne,this.subarray(Je,Dt),Fe),oi},M.prototype.fill=function(Ne,Fe,Je,Dt){if(typeof Ne=="string"){if(typeof Fe=="string"?(Dt=Fe,Fe=0,Je=this.length):typeof Je=="string"&&(Dt=Je,Je=this.length),Dt!==void 0&&typeof Dt!="string")throw new TypeError("encoding must be a string");if(typeof Dt=="string"&&!M.isEncoding(Dt))throw new TypeError("Unknown encoding: "+Dt);if(Ne.length===1){var oi=Ne.charCodeAt(0);(Dt==="utf8"&&oi<128||Dt==="latin1")&&(Ne=oi)}}else typeof Ne=="number"?Ne=Ne&255:typeof Ne=="boolean"&&(Ne=Number(Ne));if(Fe<0||this.length<Fe||this.length<Je)throw new RangeError("Out of range index");if(Je<=Fe)return this;Fe=Fe>>>0,Je=Je===void 0?this.length:Je>>>0,Ne||(Ne=0);var Bt;if(typeof Ne=="number")for(Bt=Fe;Bt<Je;++Bt)this[Bt]=Ne;else{var li=M.isBuffer(Ne)?Ne:M.from(Ne,Dt),ii=li.length;if(ii===0)throw new TypeError('The value "'+Ne+'" is invalid for argument "value"');for(Bt=0;Bt<Je-Fe;++Bt)this[Bt+Fe]=li[Bt%ii]}return this};var Ue=/[^+/0-9A-Za-z-_]/g;function Qe(Oe){if(Oe=Oe.split("=")[0],Oe=Oe.trim().replace(Ue,""),Oe.length<2)return"";for(;Oe.length%4!==0;)Oe=Oe+"=";return Oe}function vt(Oe,Ne){Ne=Ne||1/0;for(var Fe,Je=Oe.length,Dt=null,oi=[],Bt=0;Bt<Je;++Bt){if(Fe=Oe.charCodeAt(Bt),Fe>55295&&Fe<57344){if(!Dt){if(Fe>56319){(Ne-=3)>-1&&oi.push(239,191,189);continue}else if(Bt+1===Je){(Ne-=3)>-1&&oi.push(239,191,189);continue}Dt=Fe;continue}if(Fe<56320){(Ne-=3)>-1&&oi.push(239,191,189),Dt=Fe;continue}Fe=(Dt-55296<<10|Fe-56320)+65536}else Dt&&(Ne-=3)>-1&&oi.push(239,191,189);if(Dt=null,Fe<128){if((Ne-=1)<0)break;oi.push(Fe)}else if(Fe<2048){if((Ne-=2)<0)break;oi.push(Fe>>6|192,Fe&63|128)}else if(Fe<65536){if((Ne-=3)<0)break;oi.push(Fe>>12|224,Fe>>6&63|128,Fe&63|128)}else if(Fe<1114112){if((Ne-=4)<0)break;oi.push(Fe>>18|240,Fe>>12&63|128,Fe>>6&63|128,Fe&63|128)}else throw new Error("Invalid code point")}return oi}function ri(Oe){for(var Ne=[],Fe=0;Fe<Oe.length;++Fe)Ne.push(Oe.charCodeAt(Fe)&255);return Ne}function ci(Oe,Ne){for(var Fe,Je,Dt,oi=[],Bt=0;Bt<Oe.length&&!((Ne-=2)<0);++Bt)Fe=Oe.charCodeAt(Bt),Je=Fe>>8,Dt=Fe%256,oi.push(Dt),oi.push(Je);return oi}function tt(Oe){return f.toByteArray(Qe(Oe))}function et(Oe,Ne,Fe,Je){for(var Dt=0;Dt<Je&&!(Dt+Fe>=Ne.length||Dt>=Oe.length);++Dt)Ne[Dt+Fe]=Oe[Dt];return Dt}function $e(Oe,Ne){return Oe instanceof Ne||Oe!=null&&Oe.constructor!=null&&Oe.constructor.name!=null&&Oe.constructor.name===Ne.name}function Le(Oe){return Oe!==Oe}var ot=function(){for(var Oe="0123456789abcdef",Ne=new Array(256),Fe=0;Fe<16;++Fe)for(var Je=Fe*16,Dt=0;Dt<16;++Dt)Ne[Je+Dt]=Oe[Fe]+Oe[Dt];return Ne}()})(buffer$2);var l=/^GTM-[0-9A-Z]+$/;function s(u){if(typeof u!="string"||!l.test(u)){let f=String(u).toUpperCase().replace(/.*-|[^0-9A-Z]/g,""),d=f.length===0?"":` Did you mean 'GTM-${f}'?`;throw new Error(`'${u}' is not a valid GTM-ID (${l}).${d}`)}}function p$1(u,f){let d=document,_=d.createElement("script"),x=S=>{f.onReady?.({id:u,script:_}),_.removeEventListener("load",x)};if(_.addEventListener("load",x),window.dataLayer=window.dataLayer??[],window.dataLayer?.push({event:"gtm.js","gtm.start":new Date().getTime()}),!u)return _;_.async=!f.defer,_.defer=!!(f.defer||f.compatibility),f.nonce&&(_.nonce=f.nonce),f.scriptType&&(_.type=f.scriptType);let I=new URLSearchParams({id:u,...f.queryParams??{}}),E=f.source??"https://www.googletagmanager.com/gtm.js";_.src=`${E}?${I}`;let M=f.parentElement??d.body;if(typeof M?.appendChild!="function")throw new Error("parentElement must be a DOM element");return M.appendChild(_),_}function m(u="https://www.googletagmanager.com/gtm.js"){return Array.from(document.getElementsByTagName("script")).some(f=>f.src.includes(u))}var y=class{constructor(u){aM(this,"id");aM(this,"options");aM(this,"scriptElements",[]);aM(this,"isInBrowserContext",()=>typeof window<"u");if(Array.isArray(u.id))for(let f of u.id)s(typeof f=="string"?f:f.id);else s(u.id);this.id=u.id,this.options={enabled:!0,debug:!1,loadScript:!0,defer:!1,compatibility:!1,...u},delete this.options.id}enabled(){return this.options.enabled??!0}enable(u=!0,f){if(this.options.enabled=u,this.isInBrowserContext()&&u&&!m(f)&&this.options.loadScript)if(Array.isArray(this.id))this.id.forEach(d=>{let _;typeof d=="string"?_=p$1(d,{...this.options}):_=p$1(d.id,{...this.options,queryParams:d.queryParams}),this.scriptElements.push(_)});else{let d=p$1(this.id,{...this.options});this.scriptElements.push(d)}}debugEnabled(){return this.options.debug??!1}debug(u){this.options.debug=u}dataLayer(){return this.isInBrowserContext()&&this.options.enabled?window.dataLayer=window.dataLayer??[]:!1}trackView(u,f,d={}){let _=this.isInBrowserContext()&&(this.options.enabled??!1);this.options.debug&&console.log(`[GTM-Support${_?"":"(disabled)"}]: Dispatching TrackView`,{screenName:u,path:f}),_&&(window.dataLayer=window.dataLayer??[]).push({...d,event:this.options.trackViewEventProperty??"content-view","content-name":f,"content-view-name":u})}trackEvent({event:u,category:f=null,action:d=null,label:_=null,value:x=null,noninteraction:I=!1,...E}={}){let M=this.isInBrowserContext()&&(this.options.enabled??!1);this.options.debug&&console.log(`[GTM-Support${M?"":"(disabled)"}]: Dispatching event`,{event:u,category:f,action:d,label:_,value:x,...E}),M&&(window.dataLayer=window.dataLayer??[]).push({event:u??"interaction",target:f,action:d,"target-properties":_,value:x,"interaction-type":I,...E})}push(u){let f=this.isInBrowserContext()&&(this.options.enabled??!1);this.options.debug&&console.log(`[GTM-Support${f?"":"(disabled)"}]: Dispatching event`,u),f&&(window.dataLayer=window.dataLayer??[]).push(u)}},browser$g={exports:{}},process$1=browser$g.exports={},cachedSetTimeout,cachedClearTimeout;function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?cachedSetTimeout=setTimeout:cachedSetTimeout=defaultSetTimout}catch{cachedSetTimeout=defaultSetTimout}try{typeof clearTimeout=="function"?cachedClearTimeout=clearTimeout:cachedClearTimeout=defaultClearTimeout}catch{cachedClearTimeout=defaultClearTimeout}})();function runTimeout(u){if(cachedSetTimeout===setTimeout)return setTimeout(u,0);if((cachedSetTimeout===defaultSetTimout||!cachedSetTimeout)&&setTimeout)return cachedSetTimeout=setTimeout,setTimeout(u,0);try{return cachedSetTimeout(u,0)}catch{try{return cachedSetTimeout.call(null,u,0)}catch{return cachedSetTimeout.call(this,u,0)}}}function runClearTimeout(u){if(cachedClearTimeout===clearTimeout)return clearTimeout(u);if((cachedClearTimeout===defaultClearTimeout||!cachedClearTimeout)&&clearTimeout)return cachedClearTimeout=clearTimeout,clearTimeout(u);try{return cachedClearTimeout(u)}catch{try{return cachedClearTimeout.call(null,u)}catch{return cachedClearTimeout.call(this,u)}}}var queue$1=[],draining=!1,currentQueue,queueIndex=-1;function cleanUpNextTick(){!draining||!currentQueue||(draining=!1,currentQueue.length?queue$1=currentQueue.concat(queue$1):queueIndex=-1,queue$1.length&&drainQueue())}function drainQueue(){if(!draining){var u=runTimeout(cleanUpNextTick);draining=!0;for(var f=queue$1.length;f;){for(currentQueue=queue$1,queue$1=[];++queueIndex<f;)currentQueue&&currentQueue[queueIndex].run();queueIndex=-1,f=queue$1.length}currentQueue=null,draining=!1,runClearTimeout(u)}}process$1.nextTick=function(u){var f=new Array(arguments.length-1);if(arguments.length>1)for(var d=1;d<arguments.length;d++)f[d-1]=arguments[d];queue$1.push(new Item(u,f)),queue$1.length===1&&!draining&&runTimeout(drainQueue)};function Item(u,f){this.fun=u,this.array=f}Item.prototype.run=function(){this.fun.apply(null,this.array)};process$1.title="browser";process$1.browser=!0;process$1.env={};process$1.argv=[];process$1.version="";process$1.versions={};function noop$7(){}process$1.on=noop$7;process$1.addListener=noop$7;process$1.once=noop$7;process$1.off=noop$7;process$1.removeListener=noop$7;process$1.removeAllListeners=noop$7;process$1.emit=noop$7;process$1.prependListener=noop$7;process$1.prependOnceListener=noop$7;process$1.listeners=function(u){return[]};process$1.binding=function(u){throw new Error("process.binding is not supported")};process$1.cwd=function(){return"/"};process$1.chdir=function(u){throw new Error("process.chdir is not supported")};process$1.umask=function(){return 0};var browserExports=browser$g.exports,_globalThis$3=function(u){function f(){var _=this||self;return delete u.prototype.__magic__,_}if(typeof globalThis=="object")return globalThis;if(this)return f();u.defineProperty(u.prototype,"__magic__",{configurable:!0,get:f});var d=__magic__;return d}(Object),_global$2=_globalThis$3;/**
* @vue/shared v3.4.15
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function makeMap(u,f){const d=new Set(u.split(","));return f?_=>d.has(_.toLowerCase()):_=>d.has(_)}const EMPTY_OBJ={},EMPTY_ARR=[],NOOP=()=>{},NO=()=>!1,isOn=u=>u.charCodeAt(0)===111&&u.charCodeAt(1)===110&&(u.charCodeAt(2)>122||u.charCodeAt(2)<97),isModelListener=u=>u.startsWith("onUpdate:"),extend$4=Object.assign,remove=(u,f)=>{const d=u.indexOf(f);d>-1&&u.splice(d,1)},hasOwnProperty$f=Object.prototype.hasOwnProperty,hasOwn$3=(u,f)=>hasOwnProperty$f.call(u,f),isArray$7=Array.isArray,isMap$2=u=>toTypeString$2(u)==="[object Map]",isSet$2=u=>toTypeString$2(u)==="[object Set]",isDate$2=u=>toTypeString$2(u)==="[object Date]",isRegExp$2=u=>toTypeString$2(u)==="[object RegExp]",isFunction$3=u=>typeof u=="function",isString$5=u=>typeof u=="string",isSymbol=u=>typeof u=="symbol",isObject$9=u=>u!==null&&typeof u=="object",isPromise$2=u=>(isObject$9(u)||isFunction$3(u))&&isFunction$3(u.then)&&isFunction$3(u.catch),objectToString$3=Object.prototype.toString,toTypeString$2=u=>objectToString$3.call(u),toRawType=u=>toTypeString$2(u).slice(8,-1),isPlainObject$4=u=>toTypeString$2(u)==="[object Object]",isIntegerKey=u=>isString$5(u)&&u!=="NaN"&&u[0]!=="-"&&""+parseInt(u,10)===u,isReservedProp=makeMap(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),cacheStringFunction=u=>{const f=Object.create(null);return d=>f[d]||(f[d]=u(d))},camelizeRE=/-(\w)/g,camelize=cacheStringFunction(u=>u.replace(camelizeRE,(f,d)=>d?d.toUpperCase():"")),hyphenateRE=/\B([A-Z])/g,hyphenate=cacheStringFunction(u=>u.replace(hyphenateRE,"-$1").toLowerCase()),capitalize$2=cacheStringFunction(u=>u.charAt(0).toUpperCase()+u.slice(1)),toHandlerKey=cacheStringFunction(u=>u?`on${capitalize$2(u)}`:""),hasChanged=(u,f)=>!Object.is(u,f),invokeArrayFns=(u,f)=>{for(let d=0;d<u.length;d++)u[d](f)},def=(u,f,d)=>{Object.defineProperty(u,f,{configurable:!0,enumerable:!1,value:d})},looseToNumber=u=>{const f=parseFloat(u);return isNaN(f)?u:f},toNumber=u=>{const f=isString$5(u)?Number(u):NaN;return isNaN(f)?u:f};let _globalThis$2;const getGlobalThis$2=()=>_globalThis$2||(_globalThis$2=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof _global$2<"u"?_global$2:{}),GLOBALS_ALLOWED="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error",isGloballyAllowed=makeMap(GLOBALS_ALLOWED);function normalizeStyle(u){if(isArray$7(u)){const f={};for(let d=0;d<u.length;d++){const _=u[d],x=isString$5(_)?parseStringStyle(_):normalizeStyle(_);if(x)for(const I in x)f[I]=x[I]}return f}else if(isString$5(u)||isObject$9(u))return u}const listDelimiterRE=/;(?![^(]*\))/g,propertyDelimiterRE=/:([^]+)/,styleCommentRE=/\/\*[^]*?\*\//g;function parseStringStyle(u){const f={};return u.replace(styleCommentRE,"").split(listDelimiterRE).forEach(d=>{if(d){const _=d.split(propertyDelimiterRE);_.length>1&&(f[_[0].trim()]=_[1].trim())}}),f}function normalizeClass(u){let f="";if(isString$5(u))f=u;else if(isArray$7(u))for(let d=0;d<u.length;d++){const _=normalizeClass(u[d]);_&&(f+=_+" ")}else if(isObject$9(u))for(const d in u)u[d]&&(f+=d+" ");return f.trim()}function normalizeProps(u){if(!u)return null;let{class:f,style:d}=u;return f&&!isString$5(f)&&(u.class=normalizeClass(f)),d&&(u.style=normalizeStyle(d)),u}const HTML_TAGS="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",isHTMLTag=makeMap(HTML_TAGS),specialBooleanAttrs="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",isSpecialBooleanAttr=makeMap(specialBooleanAttrs);function includeBooleanAttr(u){return!!u||u===""}function looseCompareArrays(u,f){if(u.length!==f.length)return!1;let d=!0;for(let _=0;d&&_<u.length;_++)d=looseEqual(u[_],f[_]);return d}function looseEqual(u,f){if(u===f)return!0;let d=isDate$2(u),_=isDate$2(f);if(d||_)return d&&_?u.getTime()===f.getTime():!1;if(d=isSymbol(u),_=isSymbol(f),d||_)return u===f;if(d=isArray$7(u),_=isArray$7(f),d||_)return d&&_?looseCompareArrays(u,f):!1;if(d=isObject$9(u),_=isObject$9(f),d||_){if(!d||!_)return!1;const x=Object.keys(u).length,I=Object.keys(f).length;if(x!==I)return!1;for(const E in u){const M=u.hasOwnProperty(E),S=f.hasOwnProperty(E);if(M&&!S||!M&&S||!looseEqual(u[E],f[E]))return!1}}return String(u)===String(f)}function looseIndexOf(u,f){return u.findIndex(d=>looseEqual(d,f))}const toDisplayString$2=u=>isString$5(u)?u:u==null?"":isArray$7(u)||isObject$9(u)&&(u.toString===objectToString$3||!isFunction$3(u.toString))?JSON.stringify(u,replacer,2):String(u),replacer=(u,f)=>f&&f.__v_isRef?replacer(u,f.value):isMap$2(f)?{[`Map(${f.size})`]:[...f.entries()].reduce((d,[_,x],I)=>(d[stringifySymbol(_,I)+" =>"]=x,d),{})}:isSet$2(f)?{[`Set(${f.size})`]:[...f.values()].map(d=>stringifySymbol(d))}:isSymbol(f)?stringifySymbol(f):isObject$9(f)&&!isArray$7(f)&&!isPlainObject$4(f)?String(f):f,stringifySymbol=(u,f="")=>{var d;return isSymbol(u)?`Symbol(${(d=u.description)!=null?d:f})`:u};let activeEffectScope;class EffectScope{constructor(f=!1){this.detached=f,this._active=!0,this.effects=[],this.cleanups=[],this.parent=activeEffectScope,!f&&activeEffectScope&&(this.index=(activeEffectScope.scopes||(activeEffectScope.scopes=[])).push(this)-1)}get active(){return this._active}run(f){if(this._active){const d=activeEffectScope;try{return activeEffectScope=this,f()}finally{activeEffectScope=d}}}on(){activeEffectScope=this}off(){activeEffectScope=this.parent}stop(f){if(this._active){let d,_;for(d=0,_=this.effects.length;d<_;d++)this.effects[d].stop();for(d=0,_=this.cleanups.length;d<_;d++)this.cleanups[d]();if(this.scopes)for(d=0,_=this.scopes.length;d<_;d++)this.scopes[d].stop(!0);if(!this.detached&&this.parent&&!f){const x=this.parent.scopes.pop();x&&x!==this&&(this.parent.scopes[this.index]=x,x.index=this.index)}this.parent=void 0,this._active=!1}}}function effectScope(u){return new EffectScope(u)}function recordEffectScope(u,f=activeEffectScope){f&&f.active&&f.effects.push(u)}function getCurrentScope(){return activeEffectScope}function onScopeDispose(u){activeEffectScope&&activeEffectScope.cleanups.push(u)}let activeEffect;class ReactiveEffect{constructor(f,d,_,x){this.fn=f,this.trigger=d,this.scheduler=_,this.active=!0,this.deps=[],this._dirtyLevel=2,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,recordEffectScope(this,x)}get dirty(){if(this._dirtyLevel===1){pauseTracking();for(let f=0;f<this._depsLength;f++){const d=this.deps[f];if(d.computed&&(triggerComputed(d.computed),this._dirtyLevel>=2))break}this._dirtyLevel<2&&(this._dirtyLevel=0),resetTracking()}return this._dirtyLevel>=2}set dirty(f){this._dirtyLevel=f?2:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let f=shouldTrack,d=activeEffect;try{return shouldTrack=!0,activeEffect=this,this._runnings++,preCleanupEffect(this),this.fn()}finally{postCleanupEffect(this),this._runnings--,activeEffect=d,shouldTrack=f}}stop(){var f;this.active&&(preCleanupEffect(this),postCleanupEffect(this),(f=this.onStop)==null||f.call(this),this.active=!1)}}function triggerComputed(u){return u.value}function preCleanupEffect(u){u._trackId++,u._depsLength=0}function postCleanupEffect(u){if(u.deps&&u.deps.length>u._depsLength){for(let f=u._depsLength;f<u.deps.length;f++)cleanupDepEffect(u.deps[f],u);u.deps.length=u._depsLength}}function cleanupDepEffect(u,f){const d=u.get(f);d!==void 0&&f._trackId!==d&&(u.delete(f),u.size===0&&u.cleanup())}function effect$3(u,f){u.effect instanceof ReactiveEffect&&(u=u.effect.fn);const d=new ReactiveEffect(u,NOOP,()=>{d.dirty&&d.run()});f&&(extend$4(d,f),f.scope&&recordEffectScope(d,f.scope)),(!f||!f.lazy)&&d.run();const _=d.run.bind(d);return _.effect=d,_}function stop(u){u.effect.stop()}let shouldTrack=!0,pauseScheduleStack=0;const trackStack=[];function pauseTracking(){trackStack.push(shouldTrack),shouldTrack=!1}function resetTracking(){const u=trackStack.pop();shouldTrack=u===void 0?!0:u}function pauseScheduling(){pauseScheduleStack++}function resetScheduling(){for(pauseScheduleStack--;!pauseScheduleStack&&queueEffectSchedulers.length;)queueEffectSchedulers.shift()()}function trackEffect(u,f,d){if(f.get(u)!==u._trackId){f.set(u,u._trackId);const _=u.deps[u._depsLength];_!==f?(_&&cleanupDepEffect(_,u),u.deps[u._depsLength++]=f):u._depsLength++}}const queueEffectSchedulers=[];function triggerEffects(u,f,d){pauseScheduling();for(const _ of u.keys())if(_._dirtyLevel<f&&u.get(_)===_._trackId){const x=_._dirtyLevel;_._dirtyLevel=f,x===0&&(_._shouldSchedule=!0,_.trigger())}scheduleEffects(u),resetScheduling()}function scheduleEffects(u){for(const f of u.keys())f.scheduler&&f._shouldSchedule&&(!f._runnings||f.allowRecurse)&&u.get(f)===f._trackId&&(f._shouldSchedule=!1,queueEffectSchedulers.push(f.scheduler))}const createDep=(u,f)=>{const d=new Map;return d.cleanup=u,d.computed=f,d},targetMap=new WeakMap,ITERATE_KEY=Symbol(""),MAP_KEY_ITERATE_KEY=Symbol("");function track(u,f,d){if(shouldTrack&&activeEffect){let _=targetMap.get(u);_||targetMap.set(u,_=new Map);let x=_.get(d);x||_.set(d,x=createDep(()=>_.delete(d))),trackEffect(activeEffect,x)}}function trigger(u,f,d,_,x,I){const E=targetMap.get(u);if(!E)return;let M=[];if(f==="clear")M=[...E.values()];else if(d==="length"&&isArray$7(u)){const S=Number(_);E.forEach((A,T)=>{(T==="length"||!isSymbol(T)&&T>=S)&&M.push(A)})}else switch(d!==void 0&&M.push(E.get(d)),f){case"add":isArray$7(u)?isIntegerKey(d)&&M.push(E.get("length")):(M.push(E.get(ITERATE_KEY)),isMap$2(u)&&M.push(E.get(MAP_KEY_ITERATE_KEY)));break;case"delete":isArray$7(u)||(M.push(E.get(ITERATE_KEY)),isMap$2(u)&&M.push(E.get(MAP_KEY_ITERATE_KEY)));break;case"set":isMap$2(u)&&M.push(E.get(ITERATE_KEY));break}pauseScheduling();for(const S of M)S&&triggerEffects(S,2);resetScheduling()}function getDepFromReactive(u,f){var d;return(d=targetMap.get(u))==null?void 0:d.get(f)}const isNonTrackableKeys=makeMap("__proto__,__v_isRef,__isVue"),builtInSymbols=new Set(Object.getOwnPropertyNames(Symbol).filter(u=>u!=="arguments"&&u!=="caller").map(u=>Symbol[u]).filter(isSymbol)),arrayInstrumentations=createArrayInstrumentations();function createArrayInstrumentations(){const u={};return["includes","indexOf","lastIndexOf"].forEach(f=>{u[f]=function(...d){const _=toRaw(this);for(let I=0,E=this.length;I<E;I++)track(_,"get",I+"");const x=_[f](...d);return x===-1||x===!1?_[f](...d.map(toRaw)):x}}),["push","pop","shift","unshift","splice"].forEach(f=>{u[f]=function(...d){pauseTracking(),pauseScheduling();const _=toRaw(this)[f].apply(this,d);return resetScheduling(),resetTracking(),_}}),u}function hasOwnProperty$e(u){const f=toRaw(this);return track(f,"has",u),f.hasOwnProperty(u)}class BaseReactiveHandler{constructor(f=!1,d=!1){this._isReadonly=f,this._shallow=d}get(f,d,_){const x=this._isReadonly,I=this._shallow;if(d==="__v_isReactive")return!x;if(d==="__v_isReadonly")return x;if(d==="__v_isShallow")return I;if(d==="__v_raw")return _===(x?I?shallowReadonlyMap:readonlyMap:I?shallowReactiveMap:reactiveMap).get(f)||Object.getPrototypeOf(f)===Object.getPrototypeOf(_)?f:void 0;const E=isArray$7(f);if(!x){if(E&&hasOwn$3(arrayInstrumentations,d))return Reflect.get(arrayInstrumentations,d,_);if(d==="hasOwnProperty")return hasOwnProperty$e}const M=Reflect.get(f,d,_);return(isSymbol(d)?builtInSymbols.has(d):isNonTrackableKeys(d))||(x||track(f,"get",d),I)?M:isRef(M)?E&&isIntegerKey(d)?M:M.value:isObject$9(M)?x?readonly(M):reactive(M):M}}class MutableReactiveHandler extends BaseReactiveHandler{constructor(f=!1){super(!1,f)}set(f,d,_,x){let I=f[d];if(!this._shallow){const S=isReadonly(I);if(!isShallow(_)&&!isReadonly(_)&&(I=toRaw(I),_=toRaw(_)),!isArray$7(f)&&isRef(I)&&!isRef(_))return S?!1:(I.value=_,!0)}const E=isArray$7(f)&&isIntegerKey(d)?Number(d)<f.length:hasOwn$3(f,d),M=Reflect.set(f,d,_,x);return f===toRaw(x)&&(E?hasChanged(_,I)&&trigger(f,"set",d,_):trigger(f,"add",d,_)),M}deleteProperty(f,d){const _=hasOwn$3(f,d);f[d];const x=Reflect.deleteProperty(f,d);return x&&_&&trigger(f,"delete",d,void 0),x}has(f,d){const _=Reflect.has(f,d);return(!isSymbol(d)||!builtInSymbols.has(d))&&track(f,"has",d),_}ownKeys(f){return track(f,"iterate",isArray$7(f)?"length":ITERATE_KEY),Reflect.ownKeys(f)}}class ReadonlyReactiveHandler extends BaseReactiveHandler{constructor(f=!1){super(!0,f)}set(f,d){return!0}deleteProperty(f,d){return!0}}const mutableHandlers=new MutableReactiveHandler,readonlyHandlers=new ReadonlyReactiveHandler,shallowReactiveHandlers=new MutableReactiveHandler(!0),shallowReadonlyHandlers=new ReadonlyReactiveHandler(!0),toShallow=u=>u,getProto$2=u=>Reflect.getPrototypeOf(u);function get(u,f,d=!1,_=!1){u=u.__v_raw;const x=toRaw(u),I=toRaw(f);d||(hasChanged(f,I)&&track(x,"get",f),track(x,"get",I));const{has:E}=getProto$2(x),M=_?toShallow:d?toReadonly:toReactive;if(E.call(x,f))return M(u.get(f));if(E.call(x,I))return M(u.get(I));u!==x&&u.get(f)}function has(u,f=!1){const d=this.__v_raw,_=toRaw(d),x=toRaw(u);return f||(hasChanged(u,x)&&track(_,"has",u),track(_,"has",x)),u===x?d.has(u):d.has(u)||d.has(x)}function size(u,f=!1){return u=u.__v_raw,!f&&track(toRaw(u),"iterate",ITERATE_KEY),Reflect.get(u,"size",u)}function add(u){u=toRaw(u);const f=toRaw(this);return getProto$2(f).has.call(f,u)||(f.add(u),trigger(f,"add",u,u)),this}function set(u,f){f=toRaw(f);const d=toRaw(this),{has:_,get:x}=getProto$2(d);let I=_.call(d,u);I||(u=toRaw(u),I=_.call(d,u));const E=x.call(d,u);return d.set(u,f),I?hasChanged(f,E)&&trigger(d,"set",u,f):trigger(d,"add",u,f),this}function deleteEntry(u){const f=toRaw(this),{has:d,get:_}=getProto$2(f);let x=d.call(f,u);x||(u=toRaw(u),x=d.call(f,u)),_&&_.call(f,u);const I=f.delete(u);return x&&trigger(f,"delete",u,void 0),I}function clear(){const u=toRaw(this),f=u.size!==0,d=u.clear();return f&&trigger(u,"clear",void 0,void 0),d}function createForEach(u,f){return function(_,x){const I=this,E=I.__v_raw,M=toRaw(E),S=f?toShallow:u?toReadonly:toReactive;return!u&&track(M,"iterate",ITERATE_KEY),E.forEach((A,T)=>_.call(x,S(A),S(T),I))}}function createIterableMethod(u,f,d){return function(..._){const x=this.__v_raw,I=toRaw(x),E=isMap$2(I),M=u==="entries"||u===Symbol.iterator&&E,S=u==="keys"&&E,A=x[u](..._),T=d?toShallow:f?toReadonly:toReactive;return!f&&track(I,"iterate",S?MAP_KEY_ITERATE_KEY:ITERATE_KEY),{next(){const{value:D,done:O}=A.next();return O?{value:D,done:O}:{value:M?[T(D[0]),T(D[1])]:T(D),done:O}},[Symbol.iterator](){return this}}}}function createReadonlyMethod(u){return function(...f){return u==="delete"?!1:u==="clear"?void 0:this}}function createInstrumentations(){const u={get(I){return get(this,I)},get size(){return size(this)},has,add,set,delete:deleteEntry,clear,forEach:createForEach(!1,!1)},f={get(I){return get(this,I,!1,!0)},get size(){return size(this)},has,add,set,delete:deleteEntry,clear,forEach:createForEach(!1,!0)},d={get(I){return get(this,I,!0)},get size(){return size(this,!0)},has(I){return has.call(this,I,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!1)},_={get(I){return get(this,I,!0,!0)},get size(){return size(this,!0)},has(I){return has.call(this,I,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(I=>{u[I]=createIterableMethod(I,!1,!1),d[I]=createIterableMethod(I,!0,!1),f[I]=createIterableMethod(I,!1,!0),_[I]=createIterableMethod(I,!0,!0)}),[u,d,f,_]}const[mutableInstrumentations,readonlyInstrumentations,shallowInstrumentations,shallowReadonlyInstrumentations]=createInstrumentations();function createInstrumentationGetter(u,f){const d=f?u?shallowReadonlyInstrumentations:shallowInstrumentations:u?readonlyInstrumentations:mutableInstrumentations;return(_,x,I)=>x==="__v_isReactive"?!u:x==="__v_isReadonly"?u:x==="__v_raw"?_:Reflect.get(hasOwn$3(d,x)&&x in _?d:_,x,I)}const mutableCollectionHandlers={get:createInstrumentationGetter(!1,!1)},shallowCollectionHandlers={get:createInstrumentationGetter(!1,!0)},readonlyCollectionHandlers={get:createInstrumentationGetter(!0,!1)},shallowReadonlyCollectionHandlers={get:createInstrumentationGetter(!0,!0)},reactiveMap=new WeakMap,shallowReactiveMap=new WeakMap,readonlyMap=new WeakMap,shallowReadonlyMap=new WeakMap;function targetTypeMap(u){switch(u){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function getTargetType(u){return u.__v_skip||!Object.isExtensible(u)?0:targetTypeMap(toRawType(u))}function reactive(u){return isReadonly(u)?u:createReactiveObject(u,!1,mutableHandlers,mutableCollectionHandlers,reactiveMap)}function shallowReactive(u){return createReactiveObject(u,!1,shallowReactiveHandlers,shallowCollectionHandlers,shallowReactiveMap)}function readonly(u){return createReactiveObject(u,!0,readonlyHandlers,readonlyCollectionHandlers,readonlyMap)}function shallowReadonly(u){return createReactiveObject(u,!0,shallowReadonlyHandlers,shallowReadonlyCollectionHandlers,shallowReadonlyMap)}function createReactiveObject(u,f,d,_,x){if(!isObject$9(u)||u.__v_raw&&!(f&&u.__v_isReactive))return u;const I=x.get(u);if(I)return I;const E=getTargetType(u);if(E===0)return u;const M=new Proxy(u,E===2?_:d);return x.set(u,M),M}function isReactive(u){return isReadonly(u)?isReactive(u.__v_raw):!!(u&&u.__v_isReactive)}function isReadonly(u){return!!(u&&u.__v_isReadonly)}function isShallow(u){return!!(u&&u.__v_isShallow)}function isProxy(u){return isReactive(u)||isReadonly(u)}function toRaw(u){const f=u&&u.__v_raw;return f?toRaw(f):u}function markRaw(u){return def(u,"__v_skip",!0),u}const toReactive=u=>isObject$9(u)?reactive(u):u,toReadonly=u=>isObject$9(u)?readonly(u):u;class ComputedRefImpl{constructor(f,d,_,x){this._setter=d,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new ReactiveEffect(()=>f(this._value),()=>triggerRefValue(this,1),()=>this.dep&&scheduleEffects(this.dep)),this.effect.computed=this,this.effect.active=this._cacheable=!x,this.__v_isReadonly=_}get value(){const f=toRaw(this);return(!f._cacheable||f.effect.dirty)&&hasChanged(f._value,f._value=f.effect.run())&&triggerRefValue(f,2),trackRefValue(f),f.effect._dirtyLevel>=1&&triggerRefValue(f,1),f._value}set value(f){this._setter(f)}get _dirty(){return this.effect.dirty}set _dirty(f){this.effect.dirty=f}}function computed$1(u,f,d=!1){let _,x;const I=isFunction$3(u);return I?(_=u,x=NOOP):(_=u.get,x=u.set),new ComputedRefImpl(_,x,I||!x,d)}function trackRefValue(u){shouldTrack&&activeEffect&&(u=toRaw(u),trackEffect(activeEffect,u.dep||(u.dep=createDep(()=>u.dep=void 0,u instanceof ComputedRefImpl?u:void 0))))}function triggerRefValue(u,f=2,d){u=toRaw(u);const _=u.dep;_&&triggerEffects(_,f)}function isRef(u){return!!(u&&u.__v_isRef===!0)}function ref(u){return createRef(u,!1)}function shallowRef(u){return createRef(u,!0)}function createRef(u,f){return isRef(u)?u:new RefImpl(u,f)}class RefImpl{constructor(f,d){this.__v_isShallow=d,this.dep=void 0,this.__v_isRef=!0,this._rawValue=d?f:toRaw(f),this._value=d?f:toReactive(f)}get value(){return trackRefValue(this),this._value}set value(f){const d=this.__v_isShallow||isShallow(f)||isReadonly(f);f=d?f:toRaw(f),hasChanged(f,this._rawValue)&&(this._rawValue=f,this._value=d?f:toReactive(f),triggerRefValue(this,2))}}function triggerRef(u){triggerRefValue(u,2)}function unref(u){return isRef(u)?u.value:u}function toValue$1(u){return isFunction$3(u)?u():unref(u)}const shallowUnwrapHandlers={get:(u,f,d)=>unref(Reflect.get(u,f,d)),set:(u,f,d,_)=>{const x=u[f];return isRef(x)&&!isRef(d)?(x.value=d,!0):Reflect.set(u,f,d,_)}};function proxyRefs(u){return isReactive(u)?u:new Proxy(u,shallowUnwrapHandlers)}class CustomRefImpl{constructor(f){this.dep=void 0,this.__v_isRef=!0;const{get:d,set:_}=f(()=>trackRefValue(this),()=>triggerRefValue(this));this._get=d,this._set=_}get value(){return this._get()}set value(f){this._set(f)}}function customRef(u){return new CustomRefImpl(u)}function toRefs(u){const f=isArray$7(u)?new Array(u.length):{};for(const d in u)f[d]=propertyToRef(u,d);return f}class ObjectRefImpl{constructor(f,d,_){this._object=f,this._key=d,this._defaultValue=_,this.__v_isRef=!0}get value(){const f=this._object[this._key];return f===void 0?this._defaultValue:f}set value(f){this._object[this._key]=f}get dep(){return getDepFromReactive(toRaw(this._object),this._key)}}class GetterRefImpl{constructor(f){this._getter=f,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function toRef(u,f,d){return isRef(u)?u:isFunction$3(u)?new GetterRefImpl(u):isObject$9(u)&&arguments.length>1?propertyToRef(u,f,d):ref(u)}function propertyToRef(u,f,d){const _=u[f];return isRef(_)?_:new ObjectRefImpl(u,f,d)}const TrackOpTypes={GET:"get",HAS:"has",ITERATE:"iterate"},TriggerOpTypes={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},stack=[];function warn$1$1(u,...f){pauseTracking();const d=stack.length?stack[stack.length-1].component:null,_=d&&d.appContext.config.warnHandler,x=getComponentTrace();if(_)callWithErrorHandling(_,d,11,[u+f.join(""),d&&d.proxy,x.map(({vnode:I})=>`at <${formatComponentName(d,I.type)}>`).join(`
`),x]);else{const I=[`[Vue warn]: ${u}`,...f];x.length&&I.push(`
`,...formatTrace(x)),console.warn(...I)}resetTracking()}function getComponentTrace(){let u=stack[stack.length-1];if(!u)return[];const f=[];for(;u;){const d=f[0];d&&d.vnode===u?d.recurseCount++:f.push({vnode:u,recurseCount:0});const _=u.component&&u.component.parent;u=_&&_.vnode}return f}function formatTrace(u){const f=[];return u.forEach((d,_)=>{f.push(..._===0?[]:[`
`],...formatTraceEntry(d))}),f}function formatTraceEntry({vnode:u,recurseCount:f}){const d=f>0?`... (${f} recursive calls)`:"",_=u.component?u.component.parent==null:!1,x=` at <${formatComponentName(u.component,u.type,_)}`,I=">"+d;return u.props?[x,...formatProps(u.props),I]:[x+I]}function formatProps(u){const f=[],d=Object.keys(u);return d.slice(0,3).forEach(_=>{f.push(...formatProp(_,u[_]))}),d.length>3&&f.push(" ..."),f}function formatProp(u,f,d){return isString$5(f)?(f=JSON.stringify(f),d?f:[`${u}=${f}`]):typeof f=="number"||typeof f=="boolean"||f==null?d?f:[`${u}=${f}`]:isRef(f)?(f=formatProp(u,toRaw(f.value),!0),d?f:[`${u}=Ref<`,f,">"]):isFunction$3(f)?[`${u}=fn${f.name?`<${f.name}>`:""}`]:(f=toRaw(f),d?f:[`${u}=`,f])}function assertNumber(u,f){}const ErrorCodes={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",WATCH_GETTER:2,2:"WATCH_GETTER",WATCH_CALLBACK:3,3:"WATCH_CALLBACK",WATCH_CLEANUP:4,4:"WATCH_CLEANUP",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER"},ErrorTypeStrings$1={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://github.com/vuejs/core ."};function callWithErrorHandling(u,f,d,_){let x;try{x=_?u(..._):u()}catch(I){handleError(I,f,d)}return x}function callWithAsyncErrorHandling(u,f,d,_){if(isFunction$3(u)){const I=callWithErrorHandling(u,f,d,_);return I&&isPromise$2(I)&&I.catch(E=>{handleError(E,f,d)}),I}const x=[];for(let I=0;I<u.length;I++)x.push(callWithAsyncErrorHandling(u[I],f,d,_));return x}function handleError(u,f,d,_=!0){const x=f?f.vnode:null;if(f){let I=f.parent;const E=f.proxy,M=`https://vuejs.org/error-reference/#runtime-${d}`;for(;I;){const A=I.ec;if(A){for(let T=0;T<A.length;T++)if(A[T](u,E,M)===!1)return}I=I.parent}const S=f.appContext.config.errorHandler;if(S){callWithErrorHandling(S,null,10,[u,E,M]);return}}logError(u,d,x,_)}function logError(u,f,d,_=!0){console.error(u)}let isFlushing=!1,isFlushPending=!1;const queue=[];let flushIndex=0;const pendingPostFlushCbs=[];let activePostFlushCbs=null,postFlushIndex=0;const resolvedPromise=Promise.resolve();let currentFlushPromise=null;function nextTick$2(u){const f=currentFlushPromise||resolvedPromise;return u?f.then(this?u.bind(this):u):f}function findInsertionIndex(u){let f=flushIndex+1,d=queue.length;for(;f<d;){const _=f+d>>>1,x=queue[_],I=getId(x);I<u||I===u&&x.pre?f=_+1:d=_}return f}function queueJob(u){(!queue.length||!queue.includes(u,isFlushing&&u.allowRecurse?flushIndex+1:flushIndex))&&(u.id==null?queue.push(u):queue.splice(findInsertionIndex(u.id),0,u),queueFlush())}function queueFlush(){!isFlushing&&!isFlushPending&&(isFlushPending=!0,currentFlushPromise=resolvedPromise.then(flushJobs))}function invalidateJob(u){const f=queue.indexOf(u);f>flushIndex&&queue.splice(f,1)}function queuePostFlushCb(u){isArray$7(u)?pendingPostFlushCbs.push(...u):(!activePostFlushCbs||!activePostFlushCbs.includes(u,u.allowRecurse?postFlushIndex+1:postFlushIndex))&&pendingPostFlushCbs.push(u),queueFlush()}function flushPreFlushCbs(u,f,d=isFlushing?flushIndex+1:0){for(;d<queue.length;d++){const _=queue[d];if(_&&_.pre){if(u&&_.id!==u.uid)continue;queue.splice(d,1),d--,_()}}}function flushPostFlushCbs(u){if(pendingPostFlushCbs.length){const f=[...new Set(pendingPostFlushCbs)].sort((d,_)=>getId(d)-getId(_));if(pendingPostFlushCbs.length=0,activePostFlushCbs){activePostFlushCbs.push(...f);return}for(activePostFlushCbs=f,postFlushIndex=0;postFlushIndex<activePostFlushCbs.length;postFlushIndex++)activePostFlushCbs[postFlushIndex]();activePostFlushCbs=null,postFlushIndex=0}}const getId=u=>u.id==null?1/0:u.id,comparator=(u,f)=>{const d=getId(u)-getId(f);if(d===0){if(u.pre&&!f.pre)return-1;if(f.pre&&!u.pre)return 1}return d};function flushJobs(u){isFlushPending=!1,isFlushing=!0,queue.sort(comparator);try{for(flushIndex=0;flushIndex<queue.length;flushIndex++){const f=queue[flushIndex];f&&f.active!==!1&&callWithErrorHandling(f,null,14)}}finally{flushIndex=0,queue.length=0,flushPostFlushCbs(),isFlushing=!1,currentFlushPromise=null,(queue.length||pendingPostFlushCbs.length)&&flushJobs()}}let devtools$1$1,buffer$1=[];function setDevtoolsHook$1(u,f){var d,_;devtools$1$1=u,devtools$1$1?(devtools$1$1.enabled=!0,buffer$1.forEach(({event:x,args:I})=>devtools$1$1.emit(x,...I)),buffer$1=[]):typeof window<"u"&&window.HTMLElement&&!((_=(d=window.navigator)==null?void 0:d.userAgent)!=null&&_.includes("jsdom"))?((f.__VUE_DEVTOOLS_HOOK_REPLAY__=f.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(I=>{setDevtoolsHook$1(I,f)}),setTimeout(()=>{devtools$1$1||(f.__VUE_DEVTOOLS_HOOK_REPLAY__=null,buffer$1=[])},3e3)):buffer$1=[]}function emit(u,f,...d){if(u.isUnmounted)return;const _=u.vnode.props||EMPTY_OBJ;let x=d;const I=f.startsWith("update:"),E=I&&f.slice(7);if(E&&E in _){const T=`${E==="modelValue"?"model":E}Modifiers`,{number:D,trim:O}=_[T]||EMPTY_OBJ;O&&(x=d.map(j=>isString$5(j)?j.trim():j)),D&&(x=d.map(looseToNumber))}let M,S=_[M=toHandlerKey(f)]||_[M=toHandlerKey(camelize(f))];!S&&I&&(S=_[M=toHandlerKey(hyphenate(f))]),S&&callWithAsyncErrorHandling(S,u,6,x);const A=_[M+"Once"];if(A){if(!u.emitted)u.emitted={};else if(u.emitted[M])return;u.emitted[M]=!0,callWithAsyncErrorHandling(A,u,6,x)}}function normalizeEmitsOptions(u,f,d=!1){const _=f.emitsCache,x=_.get(u);if(x!==void 0)return x;const I=u.emits;let E={},M=!1;if(!isFunction$3(u)){const S=A=>{const T=normalizeEmitsOptions(A,f,!0);T&&(M=!0,extend$4(E,T))};!d&&f.mixins.length&&f.mixins.forEach(S),u.extends&&S(u.extends),u.mixins&&u.mixins.forEach(S)}return!I&&!M?(isObject$9(u)&&_.set(u,null),null):(isArray$7(I)?I.forEach(S=>E[S]=null):extend$4(E,I),isObject$9(u)&&_.set(u,E),E)}function isEmitListener(u,f){return!u||!isOn(f)?!1:(f=f.slice(2).replace(/Once$/,""),hasOwn$3(u,f[0].toLowerCase()+f.slice(1))||hasOwn$3(u,hyphenate(f))||hasOwn$3(u,f))}let currentRenderingInstance=null,currentScopeId=null;function setCurrentRenderingInstance(u){const f=currentRenderingInstance;return currentRenderingInstance=u,currentScopeId=u&&u.type.__scopeId||null,f}function pushScopeId(u){currentScopeId=u}function popScopeId(){currentScopeId=null}const withScopeId=u=>withCtx;function withCtx(u,f=currentRenderingInstance,d){if(!f||u._n)return u;const _=(...x)=>{_._d&&setBlockTracking(-1);const I=setCurrentRenderingInstance(f);let E;try{E=u(...x)}finally{setCurrentRenderingInstance(I),_._d&&setBlockTracking(1)}return E};return _._n=!0,_._c=!0,_._d=!0,_}function markAttrsAccessed(){}function renderComponentRoot(u){const{type:f,vnode:d,proxy:_,withProxy:x,props:I,propsOptions:[E],slots:M,attrs:S,emit:A,render:T,renderCache:D,data:O,setupState:j,ctx:$,inheritAttrs:W}=u;let Q,X;const Y=setCurrentRenderingInstance(u);try{if(d.shapeFlag&4){const oe=x||_,ge=oe;Q=normalizeVNode(T.call(ge,oe,D,I,j,O,$)),X=S}else{const oe=f;Q=normalizeVNode(oe.length>1?oe(I,{attrs:S,slots:M,emit:A}):oe(I,null)),X=f.props?S:getFunctionalFallthrough(S)}}catch(oe){blockStack.length=0,handleError(oe,u,1),Q=createVNode(Comment)}let ie=Q;if(X&&W!==!1){const oe=Object.keys(X),{shapeFlag:ge}=ie;oe.length&&ge&7&&(E&&oe.some(isModelListener)&&(X=filterModelListeners(X,E)),ie=cloneVNode(ie,X))}return d.dirs&&(ie=cloneVNode(ie),ie.dirs=ie.dirs?ie.dirs.concat(d.dirs):d.dirs),d.transition&&(ie.transition=d.transition),Q=ie,setCurrentRenderingInstance(Y),Q}function filterSingleRoot(u,f=!0){let d;for(let _=0;_<u.length;_++){const x=u[_];if(isVNode$2(x)){if(x.type!==Comment||x.children==="v-if"){if(d)return;d=x}}else return}return d}const getFunctionalFallthrough=u=>{let f;for(const d in u)(d==="class"||d==="style"||isOn(d))&&((f||(f={}))[d]=u[d]);return f},filterModelListeners=(u,f)=>{const d={};for(const _ in u)(!isModelListener(_)||!(_.slice(9)in f))&&(d[_]=u[_]);return d};function shouldUpdateComponent(u,f,d){const{props:_,children:x,component:I}=u,{props:E,children:M,patchFlag:S}=f,A=I.emitsOptions;if(f.dirs||f.transition)return!0;if(d&&S>=0){if(S&1024)return!0;if(S&16)return _?hasPropsChanged(_,E,A):!!E;if(S&8){const T=f.dynamicProps;for(let D=0;D<T.length;D++){const O=T[D];if(E[O]!==_[O]&&!isEmitListener(A,O))return!0}}}else return(x||M)&&(!M||!M.$stable)?!0:_===E?!1:_?E?hasPropsChanged(_,E,A):!0:!!E;return!1}function hasPropsChanged(u,f,d){const _=Object.keys(f);if(_.length!==Object.keys(u).length)return!0;for(let x=0;x<_.length;x++){const I=_[x];if(f[I]!==u[I]&&!isEmitListener(d,I))return!0}return!1}function updateHOCHostEl({vnode:u,parent:f},d){for(;f;){const _=f.subTree;if(_.suspense&&_.suspense.activeBranch===u&&(_.el=u.el),_===u)(u=f.vnode).el=d,f=f.parent;else break}}const COMPONENTS="components",DIRECTIVES="directives";function resolveComponent(u,f){return resolveAsset(COMPONENTS,u,!0,f)||u}const NULL_DYNAMIC_COMPONENT=Symbol.for("v-ndc");function resolveDynamicComponent(u){return isString$5(u)?resolveAsset(COMPONENTS,u,!1)||u:u||NULL_DYNAMIC_COMPONENT}function resolveDirective(u){return resolveAsset(DIRECTIVES,u)}function resolveAsset(u,f,d=!0,_=!1){const x=currentRenderingInstance||currentInstance;if(x){const I=x.type;if(u===COMPONENTS){const M=getComponentName(I,!1);if(M&&(M===f||M===camelize(f)||M===capitalize$2(camelize(f))))return I}const E=resolve(x[u]||I[u],f)||resolve(x.appContext[u],f);return!E&&_?I:E}}function resolve(u,f){return u&&(u[f]||u[camelize(f)]||u[capitalize$2(camelize(f))])}const isSuspense=u=>u.__isSuspense;let suspenseId=0;const SuspenseImpl={name:"Suspense",__isSuspense:!0,process(u,f,d,_,x,I,E,M,S,A){if(u==null)mountSuspense(f,d,_,x,I,E,M,S,A);else{if(I&&I.deps>0){f.suspense=u.suspense;return}patchSuspense(u,f,d,_,x,E,M,S,A)}},hydrate:hydrateSuspense,create:createSuspenseBoundary,normalize:normalizeSuspenseChildren},Suspense=SuspenseImpl;function triggerEvent(u,f){const d=u.props&&u.props[f];isFunction$3(d)&&d()}function mountSuspense(u,f,d,_,x,I,E,M,S){const{p:A,o:{createElement:T}}=S,D=T("div"),O=u.suspense=createSuspenseBoundary(u,x,_,f,D,d,I,E,M,S);A(null,O.pendingBranch=u.ssContent,D,null,_,O,I,E),O.deps>0?(triggerEvent(u,"onPending"),triggerEvent(u,"onFallback"),A(null,u.ssFallback,f,d,_,null,I,E),setActiveBranch(O,u.ssFallback)):O.resolve(!1,!0)}function patchSuspense(u,f,d,_,x,I,E,M,{p:S,um:A,o:{createElement:T}}){const D=f.suspense=u.suspense;D.vnode=f,f.el=u.el;const O=f.ssContent,j=f.ssFallback,{activeBranch:$,pendingBranch:W,isInFallback:Q,isHydrating:X}=D;if(W)D.pendingBranch=O,isSameVNodeType(O,W)?(S(W,O,D.hiddenContainer,null,x,D,I,E,M),D.deps<=0?D.resolve():Q&&(X||(S($,j,d,_,x,null,I,E,M),setActiveBranch(D,j)))):(D.pendingId=suspenseId++,X?(D.isHydrating=!1,D.activeBranch=W):A(W,x,D),D.deps=0,D.effects.length=0,D.hiddenContainer=T("div"),Q?(S(null,O,D.hiddenContainer,null,x,D,I,E,M),D.deps<=0?D.resolve():(S($,j,d,_,x,null,I,E,M),setActiveBranch(D,j))):$&&isSameVNodeType(O,$)?(S($,O,d,_,x,D,I,E,M),D.resolve(!0)):(S(null,O,D.hiddenContainer,null,x,D,I,E,M),D.deps<=0&&D.resolve()));else if($&&isSameVNodeType(O,$))S($,O,d,_,x,D,I,E,M),setActiveBranch(D,O);else if(triggerEvent(f,"onPending"),D.pendingBranch=O,O.shapeFlag&512?D.pendingId=O.component.suspenseId:D.pendingId=suspenseId++,S(null,O,D.hiddenContainer,null,x,D,I,E,M),D.deps<=0)D.resolve();else{const{timeout:Y,pendingId:ie}=D;Y>0?setTimeout(()=>{D.pendingId===ie&&D.fallback(j)},Y):Y===0&&D.fallback(j)}}function createSuspenseBoundary(u,f,d,_,x,I,E,M,S,A,T=!1){const{p:D,m:O,um:j,n:$,o:{parentNode:W,remove:Q}}=A;let X;const Y=isVNodeSuspensible(u);Y&&f?.pendingBranch&&(X=f.pendingId,f.deps++);const ie=u.props?toNumber(u.props.timeout):void 0,oe=I,ge={vnode:u,parent:f,parentComponent:d,namespace:E,container:_,hiddenContainer:x,deps:0,pendingId:suspenseId++,timeout:typeof ie=="number"?ie:-1,activeBranch:null,pendingBranch:null,isInFallback:!T,isHydrating:T,isUnmounted:!1,effects:[],resolve(be=!1,ze=!1){const{vnode:de,activeBranch:Ce,pendingBranch:ke,pendingId:le,effects:re,parentComponent:P,container:k}=ge;let B=!1;ge.isHydrating?ge.isHydrating=!1:be||(B=Ce&&ke.transition&&ke.transition.mode==="out-in",B&&(Ce.transition.afterLeave=()=>{le===ge.pendingId&&(O(ke,k,I===oe?$(Ce):I,0),queuePostFlushCb(re))}),Ce&&(W(Ce.el)!==ge.hiddenContainer&&(I=$(Ce)),j(Ce,P,ge,!0)),B||O(ke,k,I,0)),setActiveBranch(ge,ke),ge.pendingBranch=null,ge.isInFallback=!1;let z=ge.parent,ee=!1;for(;z;){if(z.pendingBranch){z.effects.push(...re),ee=!0;break}z=z.parent}!ee&&!B&&queuePostFlushCb(re),ge.effects=[],Y&&f&&f.pendingBranch&&X===f.pendingId&&(f.deps--,f.deps===0&&!ze&&f.resolve()),triggerEvent(de,"onResolve")},fallback(be){if(!ge.pendingBranch)return;const{vnode:ze,activeBranch:de,parentComponent:Ce,container:ke,namespace:le}=ge;triggerEvent(ze,"onFallback");const re=$(de),P=()=>{ge.isInFallback&&(D(null,be,ke,re,Ce,null,le,M,S),setActiveBranch(ge,be))},k=be.transition&&be.transition.mode==="out-in";k&&(de.transition.afterLeave=P),ge.isInFallback=!0,j(de,Ce,null,!0),k||P()},move(be,ze,de){ge.activeBranch&&O(ge.activeBranch,be,ze,de),ge.container=be},next(){return ge.activeBranch&&$(ge.activeBranch)},registerDep(be,ze){const de=!!ge.pendingBranch;de&&ge.deps++;const Ce=be.vnode.el;be.asyncDep.catch(ke=>{handleError(ke,be,0)}).then(ke=>{if(be.isUnmounted||ge.isUnmounted||ge.pendingId!==be.suspenseId)return;be.asyncResolved=!0;const{vnode:le}=be;handleSetupResult(be,ke,!1),Ce&&(le.el=Ce);const re=!Ce&&be.subTree.el;ze(be,le,W(Ce||be.subTree.el),Ce?null:$(be.subTree),ge,E,S),re&&Q(re),updateHOCHostEl(be,le.el),de&&--ge.deps===0&&ge.resolve()})},unmount(be,ze){ge.isUnmounted=!0,ge.activeBranch&&j(ge.activeBranch,d,be,ze),ge.pendingBranch&&j(ge.pendingBranch,d,be,ze)}};return ge}function hydrateSuspense(u,f,d,_,x,I,E,M,S){const A=f.suspense=createSuspenseBoundary(f,_,d,u.parentNode,document.createElement("div"),null,x,I,E,M,!0),T=S(u,A.pendingBranch=f.ssContent,d,A,I,E);return A.deps===0&&A.resolve(!1,!0),T}function normalizeSuspenseChildren(u){const{shapeFlag:f,children:d}=u,_=f&32;u.ssContent=normalizeSuspenseSlot(_?d.default:d),u.ssFallback=_?normalizeSuspenseSlot(d.fallback):createVNode(Comment)}function normalizeSuspenseSlot(u){let f;if(isFunction$3(u)){const d=isBlockTreeEnabled&&u._c;d&&(u._d=!1,openBlock()),u=u(),d&&(u._d=!0,f=currentBlock,closeBlock())}return isArray$7(u)&&(u=filterSingleRoot(u)),u=normalizeVNode(u),f&&!u.dynamicChildren&&(u.dynamicChildren=f.filter(d=>d!==u)),u}function queueEffectWithSuspense(u,f){f&&f.pendingBranch?isArray$7(u)?f.effects.push(...u):f.effects.push(u):queuePostFlushCb(u)}function setActiveBranch(u,f){u.activeBranch=f;const{vnode:d,parentComponent:_}=u;let x=f.el;for(;!x&&f.component;)f=f.component.subTree,x=f.el;d.el=x,_&&_.subTree===d&&(_.vnode.el=x,updateHOCHostEl(_,x))}function isVNodeSuspensible(u){var f;return((f=u.props)==null?void 0:f.suspensible)!=null&&u.props.suspensible!==!1}const ssrContextKey=Symbol.for("v-scx"),useSSRContext=()=>inject(ssrContextKey);function watchEffect(u,f){return doWatch(u,null,f)}function watchPostEffect(u,f){return doWatch(u,null,{flush:"post"})}function watchSyncEffect(u,f){return doWatch(u,null,{flush:"sync"})}const INITIAL_WATCHER_VALUE={};function watch(u,f,d){return doWatch(u,f,d)}function doWatch(u,f,{immediate:d,deep:_,flush:x,once:I,onTrack:E,onTrigger:M}=EMPTY_OBJ){if(f&&I){const be=f;f=(...ze)=>{be(...ze),ge()}}const S=currentInstance,A=be=>_===!0?be:traverse(be,_===!1?1:void 0);let T,D=!1,O=!1;if(isRef(u)?(T=()=>u.value,D=isShallow(u)):isReactive(u)?(T=()=>A(u),D=!0):isArray$7(u)?(O=!0,D=u.some(be=>isReactive(be)||isShallow(be)),T=()=>u.map(be=>{if(isRef(be))return be.value;if(isReactive(be))return A(be);if(isFunction$3(be))return callWithErrorHandling(be,S,2)})):isFunction$3(u)?f?T=()=>callWithErrorHandling(u,S,2):T=()=>(j&&j(),callWithAsyncErrorHandling(u,S,3,[$])):T=NOOP,f&&_){const be=T;T=()=>traverse(be())}let j,$=be=>{j=ie.onStop=()=>{callWithErrorHandling(be,S,4),j=ie.onStop=void 0}},W;if(isInSSRComponentSetup)if($=NOOP,f?d&&callWithAsyncErrorHandling(f,S,3,[T(),O?[]:void 0,$]):T(),x==="sync"){const be=useSSRContext();W=be.__watcherHandles||(be.__watcherHandles=[])}else return NOOP;let Q=O?new Array(u.length).fill(INITIAL_WATCHER_VALUE):INITIAL_WATCHER_VALUE;const X=()=>{if(!(!ie.active||!ie.dirty))if(f){const be=ie.run();(_||D||(O?be.some((ze,de)=>hasChanged(ze,Q[de])):hasChanged(be,Q)))&&(j&&j(),callWithAsyncErrorHandling(f,S,3,[be,Q===INITIAL_WATCHER_VALUE?void 0:O&&Q[0]===INITIAL_WATCHER_VALUE?[]:Q,$]),Q=be)}else ie.run()};X.allowRecurse=!!f;let Y;x==="sync"?Y=X:x==="post"?Y=()=>queuePostRenderEffect(X,S&&S.suspense):(X.pre=!0,S&&(X.id=S.uid),Y=()=>queueJob(X));const ie=new ReactiveEffect(T,NOOP,Y),oe=getCurrentScope(),ge=()=>{ie.stop(),oe&&remove(oe.effects,ie)};return f?d?X():Q=ie.run():x==="post"?queuePostRenderEffect(ie.run.bind(ie),S&&S.suspense):ie.run(),W&&W.push(ge),ge}function instanceWatch(u,f,d){const _=this.proxy,x=isString$5(u)?u.includes(".")?createPathGetter(_,u):()=>_[u]:u.bind(_,_);let I;isFunction$3(f)?I=f:(I=f.handler,d=f);const E=setCurrentInstance(this),M=doWatch(x,I.bind(_),d);return E(),M}function createPathGetter(u,f){const d=f.split(".");return()=>{let _=u;for(let x=0;x<d.length&&_;x++)_=_[d[x]];return _}}function traverse(u,f,d=0,_){if(!isObject$9(u)||u.__v_skip)return u;if(f&&f>0){if(d>=f)return u;d++}if(_=_||new Set,_.has(u))return u;if(_.add(u),isRef(u))traverse(u.value,f,d,_);else if(isArray$7(u))for(let x=0;x<u.length;x++)traverse(u[x],f,d,_);else if(isSet$2(u)||isMap$2(u))u.forEach(x=>{traverse(x,f,d,_)});else if(isPlainObject$4(u))for(const x in u)traverse(u[x],f,d,_);return u}function withDirectives(u,f){if(currentRenderingInstance===null)return u;const d=getExposeProxy(currentRenderingInstance)||currentRenderingInstance.proxy,_=u.dirs||(u.dirs=[]);for(let x=0;x<f.length;x++){let[I,E,M,S=EMPTY_OBJ]=f[x];I&&(isFunction$3(I)&&(I={mounted:I,updated:I}),I.deep&&traverse(E),_.push({dir:I,instance:d,value:E,oldValue:void 0,arg:M,modifiers:S}))}return u}function invokeDirectiveHook(u,f,d,_){const x=u.dirs,I=f&&f.dirs;for(let E=0;E<x.length;E++){const M=x[E];I&&(M.oldValue=I[E].value);let S=M.dir[_];S&&(pauseTracking(),callWithAsyncErrorHandling(S,d,8,[u.el,M,u,f]),resetTracking())}}const leaveCbKey=Symbol("_leaveCb"),enterCbKey$1=Symbol("_enterCb");function useTransitionState(){const u={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return onMounted(()=>{u.isMounted=!0}),onBeforeUnmount(()=>{u.isUnmounting=!0}),u}const TransitionHookValidator=[Function,Array],BaseTransitionPropsValidators={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:TransitionHookValidator,onEnter:TransitionHookValidator,onAfterEnter:TransitionHookValidator,onEnterCancelled:TransitionHookValidator,onBeforeLeave:TransitionHookValidator,onLeave:TransitionHookValidator,onAfterLeave:TransitionHookValidator,onLeaveCancelled:TransitionHookValidator,onBeforeAppear:TransitionHookValidator,onAppear:TransitionHookValidator,onAfterAppear:TransitionHookValidator,onAppearCancelled:TransitionHookValidator},BaseTransitionImpl={name:"BaseTransition",props:BaseTransitionPropsValidators,setup(u,{slots:f}){const d=getCurrentInstance(),_=useTransitionState();let x;return()=>{const I=f.default&&getTransitionRawChildren(f.default(),!0);if(!I||!I.length)return;let E=I[0];if(I.length>1){for(const W of I)if(W.type!==Comment){E=W;break}}const M=toRaw(u),{mode:S}=M;if(_.isLeaving)return emptyPlaceholder(E);const A=getKeepAliveChild(E);if(!A)return emptyPlaceholder(E);const T=resolveTransitionHooks(A,M,_,d);setTransitionHooks(A,T);const D=d.subTree,O=D&&getKeepAliveChild(D);let j=!1;const{getTransitionKey:$}=A.type;if($){const W=$();x===void 0?x=W:W!==x&&(x=W,j=!0)}if(O&&O.type!==Comment&&(!isSameVNodeType(A,O)||j)){const W=resolveTransitionHooks(O,M,_,d);if(setTransitionHooks(O,W),S==="out-in")return _.isLeaving=!0,W.afterLeave=()=>{_.isLeaving=!1,d.update.active!==!1&&(d.effect.dirty=!0,d.update())},emptyPlaceholder(E);S==="in-out"&&A.type!==Comment&&(W.delayLeave=(Q,X,Y)=>{const ie=getLeavingNodesForType(_,O);ie[String(O.key)]=O,Q[leaveCbKey]=()=>{X(),Q[leaveCbKey]=void 0,delete T.delayedLeave},T.delayedLeave=Y})}return E}}},BaseTransition=BaseTransitionImpl;function getLeavingNodesForType(u,f){const{leavingVNodes:d}=u;let _=d.get(f.type);return _||(_=Object.create(null),d.set(f.type,_)),_}function resolveTransitionHooks(u,f,d,_){const{appear:x,mode:I,persisted:E=!1,onBeforeEnter:M,onEnter:S,onAfterEnter:A,onEnterCancelled:T,onBeforeLeave:D,onLeave:O,onAfterLeave:j,onLeaveCancelled:$,onBeforeAppear:W,onAppear:Q,onAfterAppear:X,onAppearCancelled:Y}=f,ie=String(u.key),oe=getLeavingNodesForType(d,u),ge=(de,Ce)=>{de&&callWithAsyncErrorHandling(de,_,9,Ce)},be=(de,Ce)=>{const ke=Ce[1];ge(de,Ce),isArray$7(de)?de.every(le=>le.length<=1)&&ke():de.length<=1&&ke()},ze={mode:I,persisted:E,beforeEnter(de){let Ce=M;if(!d.isMounted)if(x)Ce=W||M;else return;de[leaveCbKey]&&de[leaveCbKey](!0);const ke=oe[ie];ke&&isSameVNodeType(u,ke)&&ke.el[leaveCbKey]&&ke.el[leaveCbKey](),ge(Ce,[de])},enter(de){let Ce=S,ke=A,le=T;if(!d.isMounted)if(x)Ce=Q||S,ke=X||A,le=Y||T;else return;let re=!1;const P=de[enterCbKey$1]=k=>{re||(re=!0,k?ge(le,[de]):ge(ke,[de]),ze.delayedLeave&&ze.delayedLeave(),de[enterCbKey$1]=void 0)};Ce?be(Ce,[de,P]):P()},leave(de,Ce){const ke=String(u.key);if(de[enterCbKey$1]&&de[enterCbKey$1](!0),d.isUnmounting)return Ce();ge(D,[de]);let le=!1;const re=de[leaveCbKey]=P=>{le||(le=!0,Ce(),P?ge($,[de]):ge(j,[de]),de[leaveCbKey]=void 0,oe[ke]===u&&delete oe[ke])};oe[ke]=u,O?be(O,[de,re]):re()},clone(de){return resolveTransitionHooks(de,f,d,_)}};return ze}function emptyPlaceholder(u){if(isKeepAlive(u))return u=cloneVNode(u),u.children=null,u}function getKeepAliveChild(u){return isKeepAlive(u)?u.children?u.children[0]:void 0:u}function setTransitionHooks(u,f){u.shapeFlag&6&&u.component?setTransitionHooks(u.component.subTree,f):u.shapeFlag&128?(u.ssContent.transition=f.clone(u.ssContent),u.ssFallback.transition=f.clone(u.ssFallback)):u.transition=f}function getTransitionRawChildren(u,f=!1,d){let _=[],x=0;for(let I=0;I<u.length;I++){let E=u[I];const M=d==null?E.key:String(d)+String(E.key!=null?E.key:I);E.type===Fragment?(E.patchFlag&128&&x++,_=_.concat(getTransitionRawChildren(E.children,f,M))):(f||E.type!==Comment)&&_.push(M!=null?cloneVNode(E,{key:M}):E)}if(x>1)for(let I=0;I<_.length;I++)_[I].patchFlag=-2;return _}/*! #__NO_SIDE_EFFECTS__ */function defineComponent(u,f){return isFunction$3(u)?extend$4({name:u.name},f,{setup:u}):u}const isAsyncWrapper=u=>!!u.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function defineAsyncComponent(u){isFunction$3(u)&&(u={loader:u});const{loader:f,loadingComponent:d,errorComponent:_,delay:x=200,timeout:I,suspensible:E=!0,onError:M}=u;let S=null,A,T=0;const D=()=>(T++,S=null,O()),O=()=>{let j;return S||(j=S=f().catch($=>{if($=$ instanceof Error?$:new Error(String($)),M)return new Promise((W,Q)=>{M($,()=>W(D()),()=>Q($),T+1)});throw $}).then($=>j!==S&&S?S:($&&($.__esModule||$[Symbol.toStringTag]==="Module")&&($=$.default),A=$,$)))};return defineComponent({name:"AsyncComponentWrapper",__asyncLoader:O,get __asyncResolved(){return A},setup(){const j=currentInstance;if(A)return()=>createInnerComp(A,j);const $=Y=>{S=null,handleError(Y,j,13,!_)};if(E&&j.suspense||isInSSRComponentSetup)return O().then(Y=>()=>createInnerComp(Y,j)).catch(Y=>($(Y),()=>_?createVNode(_,{error:Y}):null));const W=ref(!1),Q=ref(),X=ref(!!x);return x&&setTimeout(()=>{X.value=!1},x),I!=null&&setTimeout(()=>{if(!W.value&&!Q.value){const Y=new Error(`Async component timed out after ${I}ms.`);$(Y),Q.value=Y}},I),O().then(()=>{W.value=!0,j.parent&&isKeepAlive(j.parent.vnode)&&(j.parent.effect.dirty=!0,queueJob(j.parent.update))}).catch(Y=>{$(Y),Q.value=Y}),()=>{if(W.value&&A)return createInnerComp(A,j);if(Q.value&&_)return createVNode(_,{error:Q.value});if(d&&!X.value)return createVNode(d)}}})}function createInnerComp(u,f){const{ref:d,props:_,children:x,ce:I}=f.vnode,E=createVNode(u,_,x);return E.ref=d,E.ce=I,delete f.vnode.ce,E}const isKeepAlive=u=>u.type.__isKeepAlive,KeepAliveImpl={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(u,{slots:f}){const d=getCurrentInstance(),_=d.ctx;if(!_.renderer)return()=>{const Y=f.default&&f.default();return Y&&Y.length===1?Y[0]:Y};const x=new Map,I=new Set;let E=null;const M=d.suspense,{renderer:{p:S,m:A,um:T,o:{createElement:D}}}=_,O=D("div");_.activate=(Y,ie,oe,ge,be)=>{const ze=Y.component;A(Y,ie,oe,0,M),S(ze.vnode,Y,ie,oe,ze,M,ge,Y.slotScopeIds,be),queuePostRenderEffect(()=>{ze.isDeactivated=!1,ze.a&&invokeArrayFns(ze.a);const de=Y.props&&Y.props.onVnodeMounted;de&&invokeVNodeHook(de,ze.parent,Y)},M)},_.deactivate=Y=>{const ie=Y.component;A(Y,O,null,1,M),queuePostRenderEffect(()=>{ie.da&&invokeArrayFns(ie.da);const oe=Y.props&&Y.props.onVnodeUnmounted;oe&&invokeVNodeHook(oe,ie.parent,Y),ie.isDeactivated=!0},M)};function j(Y){resetShapeFlag(Y),T(Y,d,M,!0)}function $(Y){x.forEach((ie,oe)=>{const ge=getComponentName(ie.type);ge&&(!Y||!Y(ge))&&W(oe)})}function W(Y){const ie=x.get(Y);!E||!isSameVNodeType(ie,E)?j(ie):E&&resetShapeFlag(E),x.delete(Y),I.delete(Y)}watch(()=>[u.include,u.exclude],([Y,ie])=>{Y&&$(oe=>matches$1(Y,oe)),ie&&$(oe=>!matches$1(ie,oe))},{flush:"post",deep:!0});let Q=null;const X=()=>{Q!=null&&x.set(Q,getInnerChild(d.subTree))};return onMounted(X),onUpdated(X),onBeforeUnmount(()=>{x.forEach(Y=>{const{subTree:ie,suspense:oe}=d,ge=getInnerChild(ie);if(Y.type===ge.type&&Y.key===ge.key){resetShapeFlag(ge);const be=ge.component.da;be&&queuePostRenderEffect(be,oe);return}j(Y)})}),()=>{if(Q=null,!f.default)return null;const Y=f.default(),ie=Y[0];if(Y.length>1)return E=null,Y;if(!isVNode$2(ie)||!(ie.shapeFlag&4)&&!(ie.shapeFlag&128))return E=null,ie;let oe=getInnerChild(ie);const ge=oe.type,be=getComponentName(isAsyncWrapper(oe)?oe.type.__asyncResolved||{}:ge),{include:ze,exclude:de,max:Ce}=u;if(ze&&(!be||!matches$1(ze,be))||de&&be&&matches$1(de,be))return E=oe,ie;const ke=oe.key==null?ge:oe.key,le=x.get(ke);return oe.el&&(oe=cloneVNode(oe),ie.shapeFlag&128&&(ie.ssContent=oe)),Q=ke,le?(oe.el=le.el,oe.component=le.component,oe.transition&&setTransitionHooks(oe,oe.transition),oe.shapeFlag|=512,I.delete(ke),I.add(ke)):(I.add(ke),Ce&&I.size>parseInt(Ce,10)&&W(I.values().next().value)),oe.shapeFlag|=256,E=oe,isSuspense(ie.type)?ie:oe}}},KeepAlive=KeepAliveImpl;function matches$1(u,f){return isArray$7(u)?u.some(d=>matches$1(d,f)):isString$5(u)?u.split(",").includes(f):isRegExp$2(u)?u.test(f):!1}function onActivated(u,f){registerKeepAliveHook(u,"a",f)}function onDeactivated(u,f){registerKeepAliveHook(u,"da",f)}function registerKeepAliveHook(u,f,d=currentInstance){const _=u.__wdc||(u.__wdc=()=>{let x=d;for(;x;){if(x.isDeactivated)return;x=x.parent}return u()});if(injectHook(f,_,d),d){let x=d.parent;for(;x&&x.parent;)isKeepAlive(x.parent.vnode)&&injectToKeepAliveRoot(_,f,d,x),x=x.parent}}function injectToKeepAliveRoot(u,f,d,_){const x=injectHook(f,u,_,!0);onUnmounted(()=>{remove(_[f],x)},d)}function resetShapeFlag(u){u.shapeFlag&=-257,u.shapeFlag&=-513}function getInnerChild(u){return u.shapeFlag&128?u.ssContent:u}function injectHook(u,f,d=currentInstance,_=!1){if(d){const x=d[u]||(d[u]=[]),I=f.__weh||(f.__weh=(...E)=>{if(d.isUnmounted)return;pauseTracking();const M=setCurrentInstance(d),S=callWithAsyncErrorHandling(f,d,u,E);return M(),resetTracking(),S});return _?x.unshift(I):x.push(I),I}}const createHook=u=>(f,d=currentInstance)=>(!isInSSRComponentSetup||u==="sp")&&injectHook(u,(..._)=>f(..._),d),onBeforeMount=createHook("bm"),onMounted=createHook("m"),onBeforeUpdate=createHook("bu"),onUpdated=createHook("u"),onBeforeUnmount=createHook("bum"),onUnmounted=createHook("um"),onServerPrefetch=createHook("sp"),onRenderTriggered=createHook("rtg"),onRenderTracked=createHook("rtc");function onErrorCaptured(u,f=currentInstance){injectHook("ec",u,f)}function renderList(u,f,d,_){let x;const I=d&&d[_];if(isArray$7(u)||isString$5(u)){x=new Array(u.length);for(let E=0,M=u.length;E<M;E++)x[E]=f(u[E],E,void 0,I&&I[E])}else if(typeof u=="number"){x=new Array(u);for(let E=0;E<u;E++)x[E]=f(E+1,E,void 0,I&&I[E])}else if(isObject$9(u))if(u[Symbol.iterator])x=Array.from(u,(E,M)=>f(E,M,void 0,I&&I[M]));else{const E=Object.keys(u);x=new Array(E.length);for(let M=0,S=E.length;M<S;M++){const A=E[M];x[M]=f(u[A],A,M,I&&I[M])}}else x=[];return d&&(d[_]=x),x}function createSlots(u,f){for(let d=0;d<f.length;d++){const _=f[d];if(isArray$7(_))for(let x=0;x<_.length;x++)u[_[x].name]=_[x].fn;else _&&(u[_.name]=_.key?(...x)=>{const I=_.fn(...x);return I&&(I.key=_.key),I}:_.fn)}return u}function renderSlot(u,f,d={},_,x){if(currentRenderingInstance.isCE||currentRenderingInstance.parent&&isAsyncWrapper(currentRenderingInstance.parent)&&currentRenderingInstance.parent.isCE)return f!=="default"&&(d.name=f),createVNode("slot",d,_&&_());let I=u[f];I&&I._c&&(I._d=!1),openBlock();const E=I&&ensureValidVNode(I(d)),M=createBlock(Fragment,{key:d.key||E&&E.key||`_${f}`},E||(_?_():[]),E&&u._===1?64:-2);return!x&&M.scopeId&&(M.slotScopeIds=[M.scopeId+"-s"]),I&&I._c&&(I._d=!0),M}function ensureValidVNode(u){return u.some(f=>isVNode$2(f)?!(f.type===Comment||f.type===Fragment&&!ensureValidVNode(f.children)):!0)?u:null}function toHandlers(u,f){const d={};for(const _ in u)d[f&&/[A-Z]/.test(_)?`on:${_}`:toHandlerKey(_)]=u[_];return d}const getPublicInstance=u=>u?isStatefulComponent(u)?getExposeProxy(u)||u.proxy:getPublicInstance(u.parent):null,publicPropertiesMap=extend$4(Object.create(null),{$:u=>u,$el:u=>u.vnode.el,$data:u=>u.data,$props:u=>u.props,$attrs:u=>u.attrs,$slots:u=>u.slots,$refs:u=>u.refs,$parent:u=>getPublicInstance(u.parent),$root:u=>getPublicInstance(u.root),$emit:u=>u.emit,$options:u=>resolveMergedOptions(u),$forceUpdate:u=>u.f||(u.f=()=>{u.effect.dirty=!0,queueJob(u.update)}),$nextTick:u=>u.n||(u.n=nextTick$2.bind(u.proxy)),$watch:u=>instanceWatch.bind(u)}),hasSetupBinding=(u,f)=>u!==EMPTY_OBJ&&!u.__isScriptSetup&&hasOwn$3(u,f),PublicInstanceProxyHandlers={get({_:u},f){const{ctx:d,setupState:_,data:x,props:I,accessCache:E,type:M,appContext:S}=u;let A;if(f[0]!=="$"){const j=E[f];if(j!==void 0)switch(j){case 1:return _[f];case 2:return x[f];case 4:return d[f];case 3:return I[f]}else{if(hasSetupBinding(_,f))return E[f]=1,_[f];if(x!==EMPTY_OBJ&&hasOwn$3(x,f))return E[f]=2,x[f];if((A=u.propsOptions[0])&&hasOwn$3(A,f))return E[f]=3,I[f];if(d!==EMPTY_OBJ&&hasOwn$3(d,f))return E[f]=4,d[f];shouldCacheAccess&&(E[f]=0)}}const T=publicPropertiesMap[f];let D,O;if(T)return f==="$attrs"&&track(u,"get",f),T(u);if((D=M.__cssModules)&&(D=D[f]))return D;if(d!==EMPTY_OBJ&&hasOwn$3(d,f))return E[f]=4,d[f];if(O=S.config.globalProperties,hasOwn$3(O,f))return O[f]},set({_:u},f,d){const{data:_,setupState:x,ctx:I}=u;return hasSetupBinding(x,f)?(x[f]=d,!0):_!==EMPTY_OBJ&&hasOwn$3(_,f)?(_[f]=d,!0):hasOwn$3(u.props,f)||f[0]==="$"&&f.slice(1)in u?!1:(I[f]=d,!0)},has({_:{data:u,setupState:f,accessCache:d,ctx:_,appContext:x,propsOptions:I}},E){let M;return!!d[E]||u!==EMPTY_OBJ&&hasOwn$3(u,E)||hasSetupBinding(f,E)||(M=I[0])&&hasOwn$3(M,E)||hasOwn$3(_,E)||hasOwn$3(publicPropertiesMap,E)||hasOwn$3(x.config.globalProperties,E)},defineProperty(u,f,d){return d.get!=null?u._.accessCache[f]=0:hasOwn$3(d,"value")&&this.set(u,f,d.value,null),Reflect.defineProperty(u,f,d)}},RuntimeCompiledPublicInstanceProxyHandlers=extend$4({},PublicInstanceProxyHandlers,{get(u,f){if(f!==Symbol.unscopables)return PublicInstanceProxyHandlers.get(u,f,u)},has(u,f){return f[0]!=="_"&&!isGloballyAllowed(f)}});function defineProps(){return null}function defineEmits(){return null}function defineExpose(u){}function defineOptions(u){}function defineSlots(){return null}function defineModel(){}function withDefaults(u,f){return null}function useSlots(){return getContext().slots}function useAttrs(){return getContext().attrs}function getContext(){const u=getCurrentInstance();return u.setupContext||(u.setupContext=createSetupContext(u))}function normalizePropsOrEmits(u){return isArray$7(u)?u.reduce((f,d)=>(f[d]=null,f),{}):u}function mergeDefaults(u,f){const d=normalizePropsOrEmits(u);for(const _ in f){if(_.startsWith("__skip"))continue;let x=d[_];x?isArray$7(x)||isFunction$3(x)?x=d[_]={type:x,default:f[_]}:x.default=f[_]:x===null&&(x=d[_]={default:f[_]}),x&&f[`__skip_${_}`]&&(x.skipFactory=!0)}return d}function mergeModels(u,f){return!u||!f?u||f:isArray$7(u)&&isArray$7(f)?u.concat(f):extend$4({},normalizePropsOrEmits(u),normalizePropsOrEmits(f))}function createPropsRestProxy(u,f){const d={};for(const _ in u)f.includes(_)||Object.defineProperty(d,_,{enumerable:!0,get:()=>u[_]});return d}function withAsyncContext(u){const f=getCurrentInstance();let d=u();return unsetCurrentInstance(),isPromise$2(d)&&(d=d.catch(_=>{throw setCurrentInstance(f),_})),[d,()=>setCurrentInstance(f)]}let shouldCacheAccess=!0;function applyOptions(u){const f=resolveMergedOptions(u),d=u.proxy,_=u.ctx;shouldCacheAccess=!1,f.beforeCreate&&callHook$1(f.beforeCreate,u,"bc");const{data:x,computed:I,methods:E,watch:M,provide:S,inject:A,created:T,beforeMount:D,mounted:O,beforeUpdate:j,updated:$,activated:W,deactivated:Q,beforeDestroy:X,beforeUnmount:Y,destroyed:ie,unmounted:oe,render:ge,renderTracked:be,renderTriggered:ze,errorCaptured:de,serverPrefetch:Ce,expose:ke,inheritAttrs:le,components:re,directives:P,filters:k}=f;if(A&&resolveInjections(A,_,null),E)for(const ee in E){const H=E[ee];isFunction$3(H)&&(_[ee]=H.bind(d))}if(x){const ee=x.call(d,d);isObject$9(ee)&&(u.data=reactive(ee))}if(shouldCacheAccess=!0,I)for(const ee in I){const H=I[ee],q=isFunction$3(H)?H.bind(d,d):isFunction$3(H.get)?H.get.bind(d,d):NOOP,J=!isFunction$3(H)&&isFunction$3(H.set)?H.set.bind(d):NOOP,U=computed({get:q,set:J});Object.defineProperty(_,ee,{enumerable:!0,configurable:!0,get:()=>U.value,set:Z=>U.value=Z})}if(M)for(const ee in M)createWatcher(M[ee],_,d,ee);if(S){const ee=isFunction$3(S)?S.call(d):S;Reflect.ownKeys(ee).forEach(H=>{provide(H,ee[H])})}T&&callHook$1(T,u,"c");function z(ee,H){isArray$7(H)?H.forEach(q=>ee(q.bind(d))):H&&ee(H.bind(d))}if(z(onBeforeMount,D),z(onMounted,O),z(onBeforeUpdate,j),z(onUpdated,$),z(onActivated,W),z(onDeactivated,Q),z(onErrorCaptured,de),z(onRenderTracked,be),z(onRenderTriggered,ze),z(onBeforeUnmount,Y),z(onUnmounted,oe),z(onServerPrefetch,Ce),isArray$7(ke))if(ke.length){const ee=u.exposed||(u.exposed={});ke.forEach(H=>{Object.defineProperty(ee,H,{get:()=>d[H],set:q=>d[H]=q})})}else u.exposed||(u.exposed={});ge&&u.render===NOOP&&(u.render=ge),le!=null&&(u.inheritAttrs=le),re&&(u.components=re),P&&(u.directives=P)}function resolveInjections(u,f,d=NOOP){isArray$7(u)&&(u=normalizeInject(u));for(const _ in u){const x=u[_];let I;isObject$9(x)?"default"in x?I=inject(x.from||_,x.default,!0):I=inject(x.from||_):I=inject(x),isRef(I)?Object.defineProperty(f,_,{enumerable:!0,configurable:!0,get:()=>I.value,set:E=>I.value=E}):f[_]=I}}function callHook$1(u,f,d){callWithAsyncErrorHandling(isArray$7(u)?u.map(_=>_.bind(f.proxy)):u.bind(f.proxy),f,d)}function createWatcher(u,f,d,_){const x=_.includes(".")?createPathGetter(d,_):()=>d[_];if(isString$5(u)){const I=f[u];isFunction$3(I)&&watch(x,I)}else if(isFunction$3(u))watch(x,u.bind(d));else if(isObject$9(u))if(isArray$7(u))u.forEach(I=>createWatcher(I,f,d,_));else{const I=isFunction$3(u.handler)?u.handler.bind(d):f[u.handler];isFunction$3(I)&&watch(x,I,u)}}function resolveMergedOptions(u){const f=u.type,{mixins:d,extends:_}=f,{mixins:x,optionsCache:I,config:{optionMergeStrategies:E}}=u.appContext,M=I.get(f);let S;return M?S=M:!x.length&&!d&&!_?S=f:(S={},x.length&&x.forEach(A=>mergeOptions$1(S,A,E,!0)),mergeOptions$1(S,f,E)),isObject$9(f)&&I.set(f,S),S}function mergeOptions$1(u,f,d,_=!1){const{mixins:x,extends:I}=f;I&&mergeOptions$1(u,I,d,!0),x&&x.forEach(E=>mergeOptions$1(u,E,d,!0));for(const E in f)if(!(_&&E==="expose")){const M=internalOptionMergeStrats[E]||d&&d[E];u[E]=M?M(u[E],f[E]):f[E]}return u}const internalOptionMergeStrats={data:mergeDataFn,props:mergeEmitsOrPropsOptions,emits:mergeEmitsOrPropsOptions,methods:mergeObjectOptions,computed:mergeObjectOptions,beforeCreate:mergeAsArray,created:mergeAsArray,beforeMount:mergeAsArray,mounted:mergeAsArray,beforeUpdate:mergeAsArray,updated:mergeAsArray,beforeDestroy:mergeAsArray,beforeUnmount:mergeAsArray,destroyed:mergeAsArray,unmounted:mergeAsArray,activated:mergeAsArray,deactivated:mergeAsArray,errorCaptured:mergeAsArray,serverPrefetch:mergeAsArray,components:mergeObjectOptions,directives:mergeObjectOptions,watch:mergeWatchOptions,provide:mergeDataFn,inject:mergeInject};function mergeDataFn(u,f){return f?u?function(){return extend$4(isFunction$3(u)?u.call(this,this):u,isFunction$3(f)?f.call(this,this):f)}:f:u}function mergeInject(u,f){return mergeObjectOptions(normalizeInject(u),normalizeInject(f))}function normalizeInject(u){if(isArray$7(u)){const f={};for(let d=0;d<u.length;d++)f[u[d]]=u[d];return f}return u}function mergeAsArray(u,f){return u?[...new Set([].concat(u,f))]:f}function mergeObjectOptions(u,f){return u?extend$4(Object.create(null),u,f):f}function mergeEmitsOrPropsOptions(u,f){return u?isArray$7(u)&&isArray$7(f)?[...new Set([...u,...f])]:extend$4(Object.create(null),normalizePropsOrEmits(u),normalizePropsOrEmits(f??{})):f}function mergeWatchOptions(u,f){if(!u)return f;if(!f)return u;const d=extend$4(Object.create(null),u);for(const _ in f)d[_]=mergeAsArray(u[_],f[_]);return d}function createAppContext(){return{app:null,config:{isNativeTag:NO,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let uid$1=0;function createAppAPI(u,f){return function(_,x=null){isFunction$3(_)||(_=extend$4({},_)),x!=null&&!isObject$9(x)&&(x=null);const I=createAppContext(),E=new WeakSet;let M=!1;const S=I.app={_uid:uid$1++,_component:_,_props:x,_container:null,_context:I,_instance:null,version:version$6,get config(){return I.config},set config(A){},use(A,...T){return E.has(A)||(A&&isFunction$3(A.install)?(E.add(A),A.install(S,...T)):isFunction$3(A)&&(E.add(A),A(S,...T))),S},mixin(A){return I.mixins.includes(A)||I.mixins.push(A),S},component(A,T){return T?(I.components[A]=T,S):I.components[A]},directive(A,T){return T?(I.directives[A]=T,S):I.directives[A]},mount(A,T,D){if(!M){const O=createVNode(_,x);return O.appContext=I,D===!0?D="svg":D===!1&&(D=void 0),T&&f?f(O,A):u(O,A,D),M=!0,S._container=A,A.__vue_app__=S,getExposeProxy(O.component)||O.component.proxy}},unmount(){M&&(u(null,S._container),delete S._container.__vue_app__)},provide(A,T){return I.provides[A]=T,S},runWithContext(A){currentApp=S;try{return A()}finally{currentApp=null}}};return S}}let currentApp=null;function provide(u,f){if(currentInstance){let d=currentInstance.provides;const _=currentInstance.parent&&currentInstance.parent.provides;_===d&&(d=currentInstance.provides=Object.create(_)),d[u]=f}}function inject(u,f,d=!1){const _=currentInstance||currentRenderingInstance;if(_||currentApp){const x=_?_.parent==null?_.vnode.appContext&&_.vnode.appContext.provides:_.parent.provides:currentApp._context.provides;if(x&&u in x)return x[u];if(arguments.length>1)return d&&isFunction$3(f)?f.call(_&&_.proxy):f}}function hasInjectionContext(){return!!(currentInstance||currentRenderingInstance||currentApp)}function initProps(u,f,d,_=!1){const x={},I={};def(I,InternalObjectKey,1),u.propsDefaults=Object.create(null),setFullProps(u,f,x,I);for(const E in u.propsOptions[0])E in x||(x[E]=void 0);d?u.props=_?x:shallowReactive(x):u.type.props?u.props=x:u.props=I,u.attrs=I}function updateProps(u,f,d,_){const{props:x,attrs:I,vnode:{patchFlag:E}}=u,M=toRaw(x),[S]=u.propsOptions;let A=!1;if((_||E>0)&&!(E&16)){if(E&8){const T=u.vnode.dynamicProps;for(let D=0;D<T.length;D++){let O=T[D];if(isEmitListener(u.emitsOptions,O))continue;const j=f[O];if(S)if(hasOwn$3(I,O))j!==I[O]&&(I[O]=j,A=!0);else{const $=camelize(O);x[$]=resolvePropValue(S,M,$,j,u,!1)}else j!==I[O]&&(I[O]=j,A=!0)}}}else{setFullProps(u,f,x,I)&&(A=!0);let T;for(const D in M)(!f||!hasOwn$3(f,D)&&((T=hyphenate(D))===D||!hasOwn$3(f,T)))&&(S?d&&(d[D]!==void 0||d[T]!==void 0)&&(x[D]=resolvePropValue(S,M,D,void 0,u,!0)):delete x[D]);if(I!==M)for(const D in I)(!f||!hasOwn$3(f,D))&&(delete I[D],A=!0)}A&&trigger(u,"set","$attrs")}function setFullProps(u,f,d,_){const[x,I]=u.propsOptions;let E=!1,M;if(f)for(let S in f){if(isReservedProp(S))continue;const A=f[S];let T;x&&hasOwn$3(x,T=camelize(S))?!I||!I.includes(T)?d[T]=A:(M||(M={}))[T]=A:isEmitListener(u.emitsOptions,S)||(!(S in _)||A!==_[S])&&(_[S]=A,E=!0)}if(I){const S=toRaw(d),A=M||EMPTY_OBJ;for(let T=0;T<I.length;T++){const D=I[T];d[D]=resolvePropValue(x,S,D,A[D],u,!hasOwn$3(A,D))}}return E}function resolvePropValue(u,f,d,_,x,I){const E=u[d];if(E!=null){const M=hasOwn$3(E,"default");if(M&&_===void 0){const S=E.default;if(E.type!==Function&&!E.skipFactory&&isFunction$3(S)){const{propsDefaults:A}=x;if(d in A)_=A[d];else{const T=setCurrentInstance(x);_=A[d]=S.call(null,f),T()}}else _=S}E[0]&&(I&&!M?_=!1:E[1]&&(_===""||_===hyphenate(d))&&(_=!0))}return _}function normalizePropsOptions(u,f,d=!1){const _=f.propsCache,x=_.get(u);if(x)return x;const I=u.props,E={},M=[];let S=!1;if(!isFunction$3(u)){const T=D=>{S=!0;const[O,j]=normalizePropsOptions(D,f,!0);extend$4(E,O),j&&M.push(...j)};!d&&f.mixins.length&&f.mixins.forEach(T),u.extends&&T(u.extends),u.mixins&&u.mixins.forEach(T)}if(!I&&!S)return isObject$9(u)&&_.set(u,EMPTY_ARR),EMPTY_ARR;if(isArray$7(I))for(let T=0;T<I.length;T++){const D=camelize(I[T]);validatePropName(D)&&(E[D]=EMPTY_OBJ)}else if(I)for(const T in I){const D=camelize(T);if(validatePropName(D)){const O=I[T],j=E[D]=isArray$7(O)||isFunction$3(O)?{type:O}:extend$4({},O);if(j){const $=getTypeIndex(Boolean,j.type),W=getTypeIndex(String,j.type);j[0]=$>-1,j[1]=W<0||$<W,($>-1||hasOwn$3(j,"default"))&&M.push(D)}}}const A=[E,M];return isObject$9(u)&&_.set(u,A),A}function validatePropName(u){return u[0]!=="$"}function getType(u){const f=u&&u.toString().match(/^\s*(function|class) (\w+)/);return f?f[2]:u===null?"null":""}function isSameType(u,f){return getType(u)===getType(f)}function getTypeIndex(u,f){return isArray$7(f)?f.findIndex(d=>isSameType(d,u)):isFunction$3(f)&&isSameType(f,u)?0:-1}const isInternalKey=u=>u[0]==="_"||u==="$stable",normalizeSlotValue=u=>isArray$7(u)?u.map(normalizeVNode):[normalizeVNode(u)],normalizeSlot$1=(u,f,d)=>{if(f._n)return f;const _=withCtx((...x)=>normalizeSlotValue(f(...x)),d);return _._c=!1,_},normalizeObjectSlots=(u,f,d)=>{const _=u._ctx;for(const x in u){if(isInternalKey(x))continue;const I=u[x];if(isFunction$3(I))f[x]=normalizeSlot$1(x,I,_);else if(I!=null){const E=normalizeSlotValue(I);f[x]=()=>E}}},normalizeVNodeSlots=(u,f)=>{const d=normalizeSlotValue(f);u.slots.default=()=>d},initSlots=(u,f)=>{if(u.vnode.shapeFlag&32){const d=f._;d?(u.slots=toRaw(f),def(f,"_",d)):normalizeObjectSlots(f,u.slots={})}else u.slots={},f&&normalizeVNodeSlots(u,f);def(u.slots,InternalObjectKey,1)},updateSlots=(u,f,d)=>{const{vnode:_,slots:x}=u;let I=!0,E=EMPTY_OBJ;if(_.shapeFlag&32){const M=f._;M?d&&M===1?I=!1:(extend$4(x,f),!d&&M===1&&delete x._):(I=!f.$stable,normalizeObjectSlots(f,x)),E=f}else f&&(normalizeVNodeSlots(u,f),E={default:1});if(I)for(const M in x)!isInternalKey(M)&&E[M]==null&&delete x[M]};function setRef(u,f,d,_,x=!1){if(isArray$7(u)){u.forEach((O,j)=>setRef(O,f&&(isArray$7(f)?f[j]:f),d,_,x));return}if(isAsyncWrapper(_)&&!x)return;const I=_.shapeFlag&4?getExposeProxy(_.component)||_.component.proxy:_.el,E=x?null:I,{i:M,r:S}=u,A=f&&f.r,T=M.refs===EMPTY_OBJ?M.refs={}:M.refs,D=M.setupState;if(A!=null&&A!==S&&(isString$5(A)?(T[A]=null,hasOwn$3(D,A)&&(D[A]=null)):isRef(A)&&(A.value=null)),isFunction$3(S))callWithErrorHandling(S,M,12,[E,T]);else{const O=isString$5(S),j=isRef(S),$=u.f;if(O||j){const W=()=>{if($){const Q=O?hasOwn$3(D,S)?D[S]:T[S]:S.value;x?isArray$7(Q)&&remove(Q,I):isArray$7(Q)?Q.includes(I)||Q.push(I):O?(T[S]=[I],hasOwn$3(D,S)&&(D[S]=T[S])):(S.value=[I],u.k&&(T[u.k]=S.value))}else O?(T[S]=E,hasOwn$3(D,S)&&(D[S]=E)):j&&(S.value=E,u.k&&(T[u.k]=E))};x||$?W():(W.id=-1,queuePostRenderEffect(W,d))}}}let hasMismatch=!1;const isSVGContainer=u=>u.namespaceURI.includes("svg")&&u.tagName!=="foreignObject",isMathMLContainer=u=>u.namespaceURI.includes("MathML"),getContainerType=u=>{if(isSVGContainer(u))return"svg";if(isMathMLContainer(u))return"mathml"},isComment=u=>u.nodeType===8;function createHydrationFunctions(u){const{mt:f,p:d,o:{patchProp:_,createText:x,nextSibling:I,parentNode:E,remove:M,insert:S,createComment:A}}=u,T=(ie,oe)=>{if(!oe.hasChildNodes()){d(null,ie,oe),flushPostFlushCbs(),oe._vnode=ie;return}hasMismatch=!1,D(oe.firstChild,ie,null,null,null),flushPostFlushCbs(),oe._vnode=ie,hasMismatch&&console.error("Hydration completed but contains mismatches.")},D=(ie,oe,ge,be,ze,de=!1)=>{const Ce=isComment(ie)&&ie.data==="[",ke=()=>W(ie,oe,ge,be,ze,Ce),{type:le,ref:re,shapeFlag:P,patchFlag:k}=oe;let B=ie.nodeType;oe.el=ie,k===-2&&(de=!1,oe.dynamicChildren=null);let z=null;switch(le){case Text:B!==3?oe.children===""?(S(oe.el=x(""),E(ie),ie),z=ie):z=ke():(ie.data!==oe.children&&(hasMismatch=!0,ie.data=oe.children),z=I(ie));break;case Comment:Y(ie)?(z=I(ie),X(oe.el=ie.content.firstChild,ie,ge)):B!==8||Ce?z=ke():z=I(ie);break;case Static:if(Ce&&(ie=I(ie),B=ie.nodeType),B===1||B===3){z=ie;const ee=!oe.children.length;for(let H=0;H<oe.staticCount;H++)ee&&(oe.children+=z.nodeType===1?z.outerHTML:z.data),H===oe.staticCount-1&&(oe.anchor=z),z=I(z);return Ce?I(z):z}else ke();break;case Fragment:Ce?z=$(ie,oe,ge,be,ze,de):z=ke();break;default:if(P&1)(B!==1||oe.type.toLowerCase()!==ie.tagName.toLowerCase())&&!Y(ie)?z=ke():z=O(ie,oe,ge,be,ze,de);else if(P&6){oe.slotScopeIds=ze;const ee=E(ie);if(Ce?z=Q(ie):isComment(ie)&&ie.data==="teleport start"?z=Q(ie,ie.data,"teleport end"):z=I(ie),f(oe,ee,null,ge,be,getContainerType(ee),de),isAsyncWrapper(oe)){let H;Ce?(H=createVNode(Fragment),H.anchor=z?z.previousSibling:ee.lastChild):H=ie.nodeType===3?createTextVNode(""):createVNode("div"),H.el=ie,oe.component.subTree=H}}else P&64?B!==8?z=ke():z=oe.type.hydrate(ie,oe,ge,be,ze,de,u,j):P&128&&(z=oe.type.hydrate(ie,oe,ge,be,getContainerType(E(ie)),ze,de,u,D))}return re!=null&&setRef(re,null,be,oe),z},O=(ie,oe,ge,be,ze,de)=>{de=de||!!oe.dynamicChildren;const{type:Ce,props:ke,patchFlag:le,shapeFlag:re,dirs:P,transition:k}=oe,B=Ce==="input"||Ce==="option";if(B||le!==-1){P&&invokeDirectiveHook(oe,null,ge,"created");let z=!1;if(Y(ie)){z=needTransition(be,k)&&ge&&ge.vnode.props&&ge.vnode.props.appear;const H=ie.content.firstChild;z&&k.beforeEnter(H),X(H,ie,ge),oe.el=ie=H}if(re&16&&!(ke&&(ke.innerHTML||ke.textContent))){let H=j(ie.firstChild,oe,ie,ge,be,ze,de);for(;H;){hasMismatch=!0;const q=H;H=H.nextSibling,M(q)}}else re&8&&ie.textContent!==oe.children&&(hasMismatch=!0,ie.textContent=oe.children);if(ke)if(B||!de||le&48)for(const H in ke)(B&&(H.endsWith("value")||H==="indeterminate")||isOn(H)&&!isReservedProp(H)||H[0]===".")&&_(ie,H,null,ke[H],void 0,void 0,ge);else ke.onClick&&_(ie,"onClick",null,ke.onClick,void 0,void 0,ge);let ee;(ee=ke&&ke.onVnodeBeforeMount)&&invokeVNodeHook(ee,ge,oe),P&&invokeDirectiveHook(oe,null,ge,"beforeMount"),((ee=ke&&ke.onVnodeMounted)||P||z)&&queueEffectWithSuspense(()=>{ee&&invokeVNodeHook(ee,ge,oe),z&&k.enter(ie),P&&invokeDirectiveHook(oe,null,ge,"mounted")},be)}return ie.nextSibling},j=(ie,oe,ge,be,ze,de,Ce)=>{Ce=Ce||!!oe.dynamicChildren;const ke=oe.children,le=ke.length;for(let re=0;re<le;re++){const P=Ce?ke[re]:ke[re]=normalizeVNode(ke[re]);if(ie)ie=D(ie,P,be,ze,de,Ce);else{if(P.type===Text&&!P.children)continue;hasMismatch=!0,d(null,P,ge,null,be,ze,getContainerType(ge),de)}}return ie},$=(ie,oe,ge,be,ze,de)=>{const{slotScopeIds:Ce}=oe;Ce&&(ze=ze?ze.concat(Ce):Ce);const ke=E(ie),le=j(I(ie),oe,ke,ge,be,ze,de);return le&&isComment(le)&&le.data==="]"?I(oe.anchor=le):(hasMismatch=!0,S(oe.anchor=A("]"),ke,le),le)},W=(ie,oe,ge,be,ze,de)=>{if(hasMismatch=!0,oe.el=null,de){const le=Q(ie);for(;;){const re=I(ie);if(re&&re!==le)M(re);else break}}const Ce=I(ie),ke=E(ie);return M(ie),d(null,oe,ke,Ce,ge,be,getContainerType(ke),ze),Ce},Q=(ie,oe="[",ge="]")=>{let be=0;for(;ie;)if(ie=I(ie),ie&&isComment(ie)&&(ie.data===oe&&be++,ie.data===ge)){if(be===0)return I(ie);be--}return ie},X=(ie,oe,ge)=>{const be=oe.parentNode;be&&be.replaceChild(ie,oe);let ze=ge;for(;ze;)ze.vnode.el===oe&&(ze.vnode.el=ze.subTree.el=ie),ze=ze.parent},Y=ie=>ie.nodeType===1&&ie.tagName.toLowerCase()==="template";return[T,D]}const queuePostRenderEffect=queueEffectWithSuspense;function createRenderer(u){return baseCreateRenderer(u)}function createHydrationRenderer(u){return baseCreateRenderer(u,createHydrationFunctions)}function baseCreateRenderer(u,f){const d=getGlobalThis$2();d.__VUE__=!0;const{insert:_,remove:x,patchProp:I,createElement:E,createText:M,createComment:S,setText:A,setElementText:T,parentNode:D,nextSibling:O,setScopeId:j=NOOP,insertStaticContent:$}=u,W=($e,Le,ot,Oe=null,Ne=null,Fe=null,Je=void 0,Dt=null,oi=!!Le.dynamicChildren)=>{if($e===Le)return;$e&&!isSameVNodeType($e,Le)&&(Oe=Qe($e),Z($e,Ne,Fe,!0),$e=null),Le.patchFlag===-2&&(oi=!1,Le.dynamicChildren=null);const{type:Bt,ref:li,shapeFlag:ii}=Le;switch(Bt){case Text:Q($e,Le,ot,Oe);break;case Comment:X($e,Le,ot,Oe);break;case Static:$e==null&&Y(Le,ot,Oe,Je);break;case Fragment:re($e,Le,ot,Oe,Ne,Fe,Je,Dt,oi);break;default:ii&1?ge($e,Le,ot,Oe,Ne,Fe,Je,Dt,oi):ii&6?P($e,Le,ot,Oe,Ne,Fe,Je,Dt,oi):(ii&64||ii&128)&&Bt.process($e,Le,ot,Oe,Ne,Fe,Je,Dt,oi,ci)}li!=null&&Ne&&setRef(li,$e&&$e.ref,Fe,Le||$e,!Le)},Q=($e,Le,ot,Oe)=>{if($e==null)_(Le.el=M(Le.children),ot,Oe);else{const Ne=Le.el=$e.el;Le.children!==$e.children&&A(Ne,Le.children)}},X=($e,Le,ot,Oe)=>{$e==null?_(Le.el=S(Le.children||""),ot,Oe):Le.el=$e.el},Y=($e,Le,ot,Oe)=>{[$e.el,$e.anchor]=$($e.children,Le,ot,Oe,$e.el,$e.anchor)},ie=({el:$e,anchor:Le},ot,Oe)=>{let Ne;for(;$e&&$e!==Le;)Ne=O($e),_($e,ot,Oe),$e=Ne;_(Le,ot,Oe)},oe=({el:$e,anchor:Le})=>{let ot;for(;$e&&$e!==Le;)ot=O($e),x($e),$e=ot;x(Le)},ge=($e,Le,ot,Oe,Ne,Fe,Je,Dt,oi)=>{Le.type==="svg"?Je="svg":Le.type==="math"&&(Je="mathml"),$e==null?be(Le,ot,Oe,Ne,Fe,Je,Dt,oi):Ce($e,Le,Ne,Fe,Je,Dt,oi)},be=($e,Le,ot,Oe,Ne,Fe,Je,Dt)=>{let oi,Bt;const{props:li,shapeFlag:ii,transition:Ot,dirs:St}=$e;if(oi=$e.el=E($e.type,Fe,li&&li.is,li),ii&8?T(oi,$e.children):ii&16&&de($e.children,oi,null,Oe,Ne,resolveChildrenNamespace($e,Fe),Je,Dt),St&&invokeDirectiveHook($e,null,Oe,"created"),ze(oi,$e,$e.scopeId,Je,Oe),li){for(const eM in li)eM!=="value"&&!isReservedProp(eM)&&I(oi,eM,null,li[eM],Fe,$e.children,Oe,Ne,Ue);"value"in li&&I(oi,"value",null,li.value,Fe),(Bt=li.onVnodeBeforeMount)&&invokeVNodeHook(Bt,Oe,$e)}St&&invokeDirectiveHook($e,null,Oe,"beforeMount");const pi=needTransition(Ne,Ot);pi&&Ot.beforeEnter(oi),_(oi,Le,ot),((Bt=li&&li.onVnodeMounted)||pi||St)&&queuePostRenderEffect(()=>{Bt&&invokeVNodeHook(Bt,Oe,$e),pi&&Ot.enter(oi),St&&invokeDirectiveHook($e,null,Oe,"mounted")},Ne)},ze=($e,Le,ot,Oe,Ne)=>{if(ot&&j($e,ot),Oe)for(let Fe=0;Fe<Oe.length;Fe++)j($e,Oe[Fe]);if(Ne){let Fe=Ne.subTree;if(Le===Fe){const Je=Ne.vnode;ze($e,Je,Je.scopeId,Je.slotScopeIds,Ne.parent)}}},de=($e,Le,ot,Oe,Ne,Fe,Je,Dt,oi=0)=>{for(let Bt=oi;Bt<$e.length;Bt++){const li=$e[Bt]=Dt?cloneIfMounted($e[Bt]):normalizeVNode($e[Bt]);W(null,li,Le,ot,Oe,Ne,Fe,Je,Dt)}},Ce=($e,Le,ot,Oe,Ne,Fe,Je)=>{const Dt=Le.el=$e.el;let{patchFlag:oi,dynamicChildren:Bt,dirs:li}=Le;oi|=$e.patchFlag&16;const ii=$e.props||EMPTY_OBJ,Ot=Le.props||EMPTY_OBJ;let St;if(ot&&toggleRecurse(ot,!1),(St=Ot.onVnodeBeforeUpdate)&&invokeVNodeHook(St,ot,Le,$e),li&&invokeDirectiveHook(Le,$e,ot,"beforeUpdate"),ot&&toggleRecurse(ot,!0),Bt?ke($e.dynamicChildren,Bt,Dt,ot,Oe,resolveChildrenNamespace(Le,Ne),Fe):Je||H($e,Le,Dt,null,ot,Oe,resolveChildrenNamespace(Le,Ne),Fe,!1),oi>0){if(oi&16)le(Dt,Le,ii,Ot,ot,Oe,Ne);else if(oi&2&&ii.class!==Ot.class&&I(Dt,"class",null,Ot.class,Ne),oi&4&&I(Dt,"style",ii.style,Ot.style,Ne),oi&8){const pi=Le.dynamicProps;for(let eM=0;eM<pi.length;eM++){const hi=pi[eM],mi=ii[hi],Dn=Ot[hi];(Dn!==mi||hi==="value")&&I(Dt,hi,mi,Dn,Ne,$e.children,ot,Oe,Ue)}}oi&1&&$e.children!==Le.children&&T(Dt,Le.children)}else!Je&&Bt==null&&le(Dt,Le,ii,Ot,ot,Oe,Ne);((St=Ot.onVnodeUpdated)||li)&&queuePostRenderEffect(()=>{St&&invokeVNodeHook(St,ot,Le,$e),li&&invokeDirectiveHook(Le,$e,ot,"updated")},Oe)},ke=($e,Le,ot,Oe,Ne,Fe,Je)=>{for(let Dt=0;Dt<Le.length;Dt++){const oi=$e[Dt],Bt=Le[Dt],li=oi.el&&(oi.type===Fragment||!isSameVNodeType(oi,Bt)||oi.shapeFlag&70)?D(oi.el):ot;W(oi,Bt,li,null,Oe,Ne,Fe,Je,!0)}},le=($e,Le,ot,Oe,Ne,Fe,Je)=>{if(ot!==Oe){if(ot!==EMPTY_OBJ)for(const Dt in ot)!isReservedProp(Dt)&&!(Dt in Oe)&&I($e,Dt,ot[Dt],null,Je,Le.children,Ne,Fe,Ue);for(const Dt in Oe){if(isReservedProp(Dt))continue;const oi=Oe[Dt],Bt=ot[Dt];oi!==Bt&&Dt!=="value"&&I($e,Dt,Bt,oi,Je,Le.children,Ne,Fe,Ue)}"value"in Oe&&I($e,"value",ot.value,Oe.value,Je)}},re=($e,Le,ot,Oe,Ne,Fe,Je,Dt,oi)=>{const Bt=Le.el=$e?$e.el:M(""),li=Le.anchor=$e?$e.anchor:M("");let{patchFlag:ii,dynamicChildren:Ot,slotScopeIds:St}=Le;St&&(Dt=Dt?Dt.concat(St):St),$e==null?(_(Bt,ot,Oe),_(li,ot,Oe),de(Le.children||[],ot,li,Ne,Fe,Je,Dt,oi)):ii>0&&ii&64&&Ot&&$e.dynamicChildren?(ke($e.dynamicChildren,Ot,ot,Ne,Fe,Je,Dt),(Le.key!=null||Ne&&Le===Ne.subTree)&&traverseStaticChildren($e,Le,!0)):H($e,Le,ot,li,Ne,Fe,Je,Dt,oi)},P=($e,Le,ot,Oe,Ne,Fe,Je,Dt,oi)=>{Le.slotScopeIds=Dt,$e==null?Le.shapeFlag&512?Ne.ctx.activate(Le,ot,Oe,Je,oi):k(Le,ot,Oe,Ne,Fe,Je,oi):B($e,Le,oi)},k=($e,Le,ot,Oe,Ne,Fe,Je)=>{const Dt=$e.component=createComponentInstance($e,Oe,Ne);if(isKeepAlive($e)&&(Dt.ctx.renderer=ci),setupComponent(Dt),Dt.asyncDep){if(Ne&&Ne.registerDep(Dt,z),!$e.el){const oi=Dt.subTree=createVNode(Comment);X(null,oi,Le,ot)}}else z(Dt,$e,Le,ot,Ne,Fe,Je)},B=($e,Le,ot)=>{const Oe=Le.component=$e.component;if(shouldUpdateComponent($e,Le,ot))if(Oe.asyncDep&&!Oe.asyncResolved){ee(Oe,Le,ot);return}else Oe.next=Le,invalidateJob(Oe.update),Oe.effect.dirty=!0,Oe.update();else Le.el=$e.el,Oe.vnode=Le},z=($e,Le,ot,Oe,Ne,Fe,Je)=>{const Dt=()=>{if($e.isMounted){let{next:li,bu:ii,u:Ot,parent:St,vnode:pi}=$e;{const tM=locateNonHydratedAsyncRoot($e);if(tM){li&&(li.el=pi.el,ee($e,li,Je)),tM.asyncDep.then(()=>{$e.isUnmounted||Dt()});return}}let eM=li,hi;toggleRecurse($e,!1),li?(li.el=pi.el,ee($e,li,Je)):li=pi,ii&&invokeArrayFns(ii),(hi=li.props&&li.props.onVnodeBeforeUpdate)&&invokeVNodeHook(hi,St,li,pi),toggleRecurse($e,!0);const mi=renderComponentRoot($e),Dn=$e.subTree;$e.subTree=mi,W(Dn,mi,D(Dn.el),Qe(Dn),$e,Ne,Fe),li.el=mi.el,eM===null&&updateHOCHostEl($e,mi.el),Ot&&queuePostRenderEffect(Ot,Ne),(hi=li.props&&li.props.onVnodeUpdated)&&queuePostRenderEffect(()=>invokeVNodeHook(hi,St,li,pi),Ne)}else{let li;const{el:ii,props:Ot}=Le,{bm:St,m:pi,parent:eM}=$e,hi=isAsyncWrapper(Le);if(toggleRecurse($e,!1),St&&invokeArrayFns(St),!hi&&(li=Ot&&Ot.onVnodeBeforeMount)&&invokeVNodeHook(li,eM,Le),toggleRecurse($e,!0),ii&&et){const mi=()=>{$e.subTree=renderComponentRoot($e),et(ii,$e.subTree,$e,Ne,null)};hi?Le.type.__asyncLoader().then(()=>!$e.isUnmounted&&mi()):mi()}else{const mi=$e.subTree=renderComponentRoot($e);W(null,mi,ot,Oe,$e,Ne,Fe),Le.el=mi.el}if(pi&&queuePostRenderEffect(pi,Ne),!hi&&(li=Ot&&Ot.onVnodeMounted)){const mi=Le;queuePostRenderEffect(()=>invokeVNodeHook(li,eM,mi),Ne)}(Le.shapeFlag&256||eM&&isAsyncWrapper(eM.vnode)&&eM.vnode.shapeFlag&256)&&$e.a&&queuePostRenderEffect($e.a,Ne),$e.isMounted=!0,Le=ot=Oe=null}},oi=$e.effect=new ReactiveEffect(Dt,NOOP,()=>queueJob(Bt),$e.scope),Bt=$e.update=()=>{oi.dirty&&oi.run()};Bt.id=$e.uid,toggleRecurse($e,!0),Bt()},ee=($e,Le,ot)=>{Le.component=$e;const Oe=$e.vnode.props;$e.vnode=Le,$e.next=null,updateProps($e,Le.props,Oe,ot),updateSlots($e,Le.children,ot),pauseTracking(),flushPreFlushCbs($e),resetTracking()},H=($e,Le,ot,Oe,Ne,Fe,Je,Dt,oi=!1)=>{const Bt=$e&&$e.children,li=$e?$e.shapeFlag:0,ii=Le.children,{patchFlag:Ot,shapeFlag:St}=Le;if(Ot>0){if(Ot&128){J(Bt,ii,ot,Oe,Ne,Fe,Je,Dt,oi);return}else if(Ot&256){q(Bt,ii,ot,Oe,Ne,Fe,Je,Dt,oi);return}}St&8?(li&16&&Ue(Bt,Ne,Fe),ii!==Bt&&T(ot,ii)):li&16?St&16?J(Bt,ii,ot,Oe,Ne,Fe,Je,Dt,oi):Ue(Bt,Ne,Fe,!0):(li&8&&T(ot,""),St&16&&de(ii,ot,Oe,Ne,Fe,Je,Dt,oi))},q=($e,Le,ot,Oe,Ne,Fe,Je,Dt,oi)=>{$e=$e||EMPTY_ARR,Le=Le||EMPTY_ARR;const Bt=$e.length,li=Le.length,ii=Math.min(Bt,li);let Ot;for(Ot=0;Ot<ii;Ot++){const St=Le[Ot]=oi?cloneIfMounted(Le[Ot]):normalizeVNode(Le[Ot]);W($e[Ot],St,ot,null,Ne,Fe,Je,Dt,oi)}Bt>li?Ue($e,Ne,Fe,!0,!1,ii):de(Le,ot,Oe,Ne,Fe,Je,Dt,oi,ii)},J=($e,Le,ot,Oe,Ne,Fe,Je,Dt,oi)=>{let Bt=0;const li=Le.length;let ii=$e.length-1,Ot=li-1;for(;Bt<=ii&&Bt<=Ot;){const St=$e[Bt],pi=Le[Bt]=oi?cloneIfMounted(Le[Bt]):normalizeVNode(Le[Bt]);if(isSameVNodeType(St,pi))W(St,pi,ot,null,Ne,Fe,Je,Dt,oi);else break;Bt++}for(;Bt<=ii&&Bt<=Ot;){const St=$e[ii],pi=Le[Ot]=oi?cloneIfMounted(Le[Ot]):normalizeVNode(Le[Ot]);if(isSameVNodeType(St,pi))W(St,pi,ot,null,Ne,Fe,Je,Dt,oi);else break;ii--,Ot--}if(Bt>ii){if(Bt<=Ot){const St=Ot+1,pi=St<li?Le[St].el:Oe;for(;Bt<=Ot;)W(null,Le[Bt]=oi?cloneIfMounted(Le[Bt]):normalizeVNode(Le[Bt]),ot,pi,Ne,Fe,Je,Dt,oi),Bt++}}else if(Bt>Ot)for(;Bt<=ii;)Z($e[Bt],Ne,Fe,!0),Bt++;else{const St=Bt,pi=Bt,eM=new Map;for(Bt=pi;Bt<=Ot;Bt++){const hM=Le[Bt]=oi?cloneIfMounted(Le[Bt]):normalizeVNode(Le[Bt]);hM.key!=null&&eM.set(hM.key,Bt)}let hi,mi=0;const Dn=Ot-pi+1;let tM=!1,oM=0;const vM=new Array(Dn);for(Bt=0;Bt<Dn;Bt++)vM[Bt]=0;for(Bt=St;Bt<=ii;Bt++){const hM=$e[Bt];if(mi>=Dn){Z(hM,Ne,Fe,!0);continue}let _M;if(hM.key!=null)_M=eM.get(hM.key);else for(hi=pi;hi<=Ot;hi++)if(vM[hi-pi]===0&&isSameVNodeType(hM,Le[hi])){_M=hi;break}_M===void 0?Z(hM,Ne,Fe,!0):(vM[_M-pi]=Bt+1,_M>=oM?oM=_M:tM=!0,W(hM,Le[_M],ot,null,Ne,Fe,Je,Dt,oi),mi++)}const dM=tM?getSequence(vM):EMPTY_ARR;for(hi=dM.length-1,Bt=Dn-1;Bt>=0;Bt--){const hM=pi+Bt,_M=Le[hM],uM=hM+1<li?Le[hM+1].el:Oe;vM[Bt]===0?W(null,_M,ot,uM,Ne,Fe,Je,Dt,oi):tM&&(hi<0||Bt!==dM[hi]?U(_M,ot,uM,2):hi--)}}},U=($e,Le,ot,Oe,Ne=null)=>{const{el:Fe,type:Je,transition:Dt,children:oi,shapeFlag:Bt}=$e;if(Bt&6){U($e.component.subTree,Le,ot,Oe);return}if(Bt&128){$e.suspense.move(Le,ot,Oe);return}if(Bt&64){Je.move($e,Le,ot,ci);return}if(Je===Fragment){_(Fe,Le,ot);for(let ii=0;ii<oi.length;ii++)U(oi[ii],Le,ot,Oe);_($e.anchor,Le,ot);return}if(Je===Static){ie($e,Le,ot);return}if(Oe!==2&&Bt&1&&Dt)if(Oe===0)Dt.beforeEnter(Fe),_(Fe,Le,ot),queuePostRenderEffect(()=>Dt.enter(Fe),Ne);else{const{leave:ii,delayLeave:Ot,afterLeave:St}=Dt,pi=()=>_(Fe,Le,ot),eM=()=>{ii(Fe,()=>{pi(),St&&St()})};Ot?Ot(Fe,pi,eM):eM()}else _(Fe,Le,ot)},Z=($e,Le,ot,Oe=!1,Ne=!1)=>{const{type:Fe,props:Je,ref:Dt,children:oi,dynamicChildren:Bt,shapeFlag:li,patchFlag:ii,dirs:Ot}=$e;if(Dt!=null&&setRef(Dt,null,ot,$e,!0),li&256){Le.ctx.deactivate($e);return}const St=li&1&&Ot,pi=!isAsyncWrapper($e);let eM;if(pi&&(eM=Je&&Je.onVnodeBeforeUnmount)&&invokeVNodeHook(eM,Le,$e),li&6)rt($e.component,ot,Oe);else{if(li&128){$e.suspense.unmount(ot,Oe);return}St&&invokeDirectiveHook($e,null,Le,"beforeUnmount"),li&64?$e.type.remove($e,Le,ot,Ne,ci,Oe):Bt&&(Fe!==Fragment||ii>0&&ii&64)?Ue(Bt,Le,ot,!1,!0):(Fe===Fragment&&ii&384||!Ne&&li&16)&&Ue(oi,Le,ot),Oe&&ve($e)}(pi&&(eM=Je&&Je.onVnodeUnmounted)||St)&&queuePostRenderEffect(()=>{eM&&invokeVNodeHook(eM,Le,$e),St&&invokeDirectiveHook($e,null,Le,"unmounted")},ot)},ve=$e=>{const{type:Le,el:ot,anchor:Oe,transition:Ne}=$e;if(Le===Fragment){Ye(ot,Oe);return}if(Le===Static){oe($e);return}const Fe=()=>{x(ot),Ne&&!Ne.persisted&&Ne.afterLeave&&Ne.afterLeave()};if($e.shapeFlag&1&&Ne&&!Ne.persisted){const{leave:Je,delayLeave:Dt}=Ne,oi=()=>Je(ot,Fe);Dt?Dt($e.el,Fe,oi):oi()}else Fe()},Ye=($e,Le)=>{let ot;for(;$e!==Le;)ot=O($e),x($e),$e=ot;x(Le)},rt=($e,Le,ot)=>{const{bum:Oe,scope:Ne,update:Fe,subTree:Je,um:Dt}=$e;Oe&&invokeArrayFns(Oe),Ne.stop(),Fe&&(Fe.active=!1,Z(Je,$e,Le,ot)),Dt&&queuePostRenderEffect(Dt,Le),queuePostRenderEffect(()=>{$e.isUnmounted=!0},Le),Le&&Le.pendingBranch&&!Le.isUnmounted&&$e.asyncDep&&!$e.asyncResolved&&$e.suspenseId===Le.pendingId&&(Le.deps--,Le.deps===0&&Le.resolve())},Ue=($e,Le,ot,Oe=!1,Ne=!1,Fe=0)=>{for(let Je=Fe;Je<$e.length;Je++)Z($e[Je],Le,ot,Oe,Ne)},Qe=$e=>$e.shapeFlag&6?Qe($e.component.subTree):$e.shapeFlag&128?$e.suspense.next():O($e.anchor||$e.el);let vt=!1;const ri=($e,Le,ot)=>{$e==null?Le._vnode&&Z(Le._vnode,null,null,!0):W(Le._vnode||null,$e,Le,null,null,null,ot),vt||(vt=!0,flushPreFlushCbs(),flushPostFlushCbs(),vt=!1),Le._vnode=$e},ci={p:W,um:Z,m:U,r:ve,mt:k,mc:de,pc:H,pbc:ke,n:Qe,o:u};let tt,et;return f&&([tt,et]=f(ci)),{render:ri,hydrate:tt,createApp:createAppAPI(ri,tt)}}function resolveChildrenNamespace({type:u,props:f},d){return d==="svg"&&u==="foreignObject"||d==="mathml"&&u==="annotation-xml"&&f&&f.encoding&&f.encoding.includes("html")?void 0:d}function toggleRecurse({effect:u,update:f},d){u.allowRecurse=f.allowRecurse=d}function needTransition(u,f){return(!u||u&&!u.pendingBranch)&&f&&!f.persisted}function traverseStaticChildren(u,f,d=!1){const _=u.children,x=f.children;if(isArray$7(_)&&isArray$7(x))for(let I=0;I<_.length;I++){const E=_[I];let M=x[I];M.shapeFlag&1&&!M.dynamicChildren&&((M.patchFlag<=0||M.patchFlag===32)&&(M=x[I]=cloneIfMounted(x[I]),M.el=E.el),d||traverseStaticChildren(E,M)),M.type===Text&&(M.el=E.el)}}function getSequence(u){const f=u.slice(),d=[0];let _,x,I,E,M;const S=u.length;for(_=0;_<S;_++){const A=u[_];if(A!==0){if(x=d[d.length-1],u[x]<A){f[_]=x,d.push(_);continue}for(I=0,E=d.length-1;I<E;)M=I+E>>1,u[d[M]]<A?I=M+1:E=M;A<u[d[I]]&&(I>0&&(f[_]=d[I-1]),d[I]=_)}}for(I=d.length,E=d[I-1];I-- >0;)d[I]=E,E=f[E];return d}function locateNonHydratedAsyncRoot(u){const f=u.subTree.component;if(f)return f.asyncDep&&!f.asyncResolved?f:locateNonHydratedAsyncRoot(f)}const isTeleport=u=>u.__isTeleport,isTeleportDisabled=u=>u&&(u.disabled||u.disabled===""),isTargetSVG=u=>typeof SVGElement<"u"&&u instanceof SVGElement,isTargetMathML=u=>typeof MathMLElement=="function"&&u instanceof MathMLElement,resolveTarget=(u,f)=>{const d=u&&u.to;return isString$5(d)?f?f(d):null:d},TeleportImpl={name:"Teleport",__isTeleport:!0,process(u,f,d,_,x,I,E,M,S,A){const{mc:T,pc:D,pbc:O,o:{insert:j,querySelector:$,createText:W,createComment:Q}}=A,X=isTeleportDisabled(f.props);let{shapeFlag:Y,children:ie,dynamicChildren:oe}=f;if(u==null){const ge=f.el=W(""),be=f.anchor=W("");j(ge,d,_),j(be,d,_);const ze=f.target=resolveTarget(f.props,$),de=f.targetAnchor=W("");ze&&(j(de,ze),E==="svg"||isTargetSVG(ze)?E="svg":(E==="mathml"||isTargetMathML(ze))&&(E="mathml"));const Ce=(ke,le)=>{Y&16&&T(ie,ke,le,x,I,E,M,S)};X?Ce(d,be):ze&&Ce(ze,de)}else{f.el=u.el;const ge=f.anchor=u.anchor,be=f.target=u.target,ze=f.targetAnchor=u.targetAnchor,de=isTeleportDisabled(u.props),Ce=de?d:be,ke=de?ge:ze;if(E==="svg"||isTargetSVG(be)?E="svg":(E==="mathml"||isTargetMathML(be))&&(E="mathml"),oe?(O(u.dynamicChildren,oe,Ce,x,I,E,M),traverseStaticChildren(u,f,!0)):S||D(u,f,Ce,ke,x,I,E,M,!1),X)de?f.props&&u.props&&f.props.to!==u.props.to&&(f.props.to=u.props.to):moveTeleport(f,d,ge,A,1);else if((f.props&&f.props.to)!==(u.props&&u.props.to)){const le=f.target=resolveTarget(f.props,$);le&&moveTeleport(f,le,null,A,0)}else de&&moveTeleport(f,be,ze,A,1)}updateCssVars(f)},remove(u,f,d,_,{um:x,o:{remove:I}},E){const{shapeFlag:M,children:S,anchor:A,targetAnchor:T,target:D,props:O}=u;if(D&&I(T),E&&I(A),M&16){const j=E||!isTeleportDisabled(O);for(let $=0;$<S.length;$++){const W=S[$];x(W,f,d,j,!!W.dynamicChildren)}}},move:moveTeleport,hydrate:hydrateTeleport};function moveTeleport(u,f,d,{o:{insert:_},m:x},I=2){I===0&&_(u.targetAnchor,f,d);const{el:E,anchor:M,shapeFlag:S,children:A,props:T}=u,D=I===2;if(D&&_(E,f,d),(!D||isTeleportDisabled(T))&&S&16)for(let O=0;O<A.length;O++)x(A[O],f,d,2);D&&_(M,f,d)}function hydrateTeleport(u,f,d,_,x,I,{o:{nextSibling:E,parentNode:M,querySelector:S}},A){const T=f.target=resolveTarget(f.props,S);if(T){const D=T._lpa||T.firstChild;if(f.shapeFlag&16)if(isTeleportDisabled(f.props))f.anchor=A(E(u),f,M(u),d,_,x,I),f.targetAnchor=D;else{f.anchor=E(u);let O=D;for(;O;)if(O=E(O),O&&O.nodeType===8&&O.data==="teleport anchor"){f.targetAnchor=O,T._lpa=f.targetAnchor&&E(f.targetAnchor);break}A(D,f,T,d,_,x,I)}updateCssVars(f)}return f.anchor&&E(f.anchor)}const Teleport=TeleportImpl;function updateCssVars(u){const f=u.ctx;if(f&&f.ut){let d=u.children[0].el;for(;d&&d!==u.targetAnchor;)d.nodeType===1&&d.setAttribute("data-v-owner",f.uid),d=d.nextSibling;f.ut()}}const Fragment=Symbol.for("v-fgt"),Text=Symbol.for("v-txt"),Comment=Symbol.for("v-cmt"),Static=Symbol.for("v-stc"),blockStack=[];let currentBlock=null;function openBlock(u=!1){blockStack.push(currentBlock=u?null:[])}function closeBlock(){blockStack.pop(),currentBlock=blockStack[blockStack.length-1]||null}let isBlockTreeEnabled=1;function setBlockTracking(u){isBlockTreeEnabled+=u}function setupBlock(u){return u.dynamicChildren=isBlockTreeEnabled>0?currentBlock||EMPTY_ARR:null,closeBlock(),isBlockTreeEnabled>0&&currentBlock&&currentBlock.push(u),u}function createElementBlock(u,f,d,_,x,I){return setupBlock(createBaseVNode(u,f,d,_,x,I,!0))}function createBlock(u,f,d,_,x){return setupBlock(createVNode(u,f,d,_,x,!0))}function isVNode$2(u){return u?u.__v_isVNode===!0:!1}function isSameVNodeType(u,f){return u.type===f.type&&u.key===f.key}function transformVNodeArgs(u){}const InternalObjectKey="__vInternal",normalizeKey=({key:u})=>u??null,normalizeRef=({ref:u,ref_key:f,ref_for:d})=>(typeof u=="number"&&(u=""+u),u!=null?isString$5(u)||isRef(u)||isFunction$3(u)?{i:currentRenderingInstance,r:u,k:f,f:!!d}:u:null);function createBaseVNode(u,f=null,d=null,_=0,x=null,I=u===Fragment?0:1,E=!1,M=!1){const S={__v_isVNode:!0,__v_skip:!0,type:u,props:f,key:f&&normalizeKey(f),ref:f&&normalizeRef(f),scopeId:currentScopeId,slotScopeIds:null,children:d,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:I,patchFlag:_,dynamicProps:x,dynamicChildren:null,appContext:null,ctx:currentRenderingInstance};return M?(normalizeChildren(S,d),I&128&&u.normalize(S)):d&&(S.shapeFlag|=isString$5(d)?8:16),isBlockTreeEnabled>0&&!E&&currentBlock&&(S.patchFlag>0||I&6)&&S.patchFlag!==32&&currentBlock.push(S),S}const createVNode=_createVNode;function _createVNode(u,f=null,d=null,_=0,x=null,I=!1){if((!u||u===NULL_DYNAMIC_COMPONENT)&&(u=Comment),isVNode$2(u)){const M=cloneVNode(u,f,!0);return d&&normalizeChildren(M,d),isBlockTreeEnabled>0&&!I&&currentBlock&&(M.shapeFlag&6?currentBlock[currentBlock.indexOf(u)]=M:currentBlock.push(M)),M.patchFlag|=-2,M}if(isClassComponent(u)&&(u=u.__vccOpts),f){f=guardReactiveProps(f);let{class:M,style:S}=f;M&&!isString$5(M)&&(f.class=normalizeClass(M)),isObject$9(S)&&(isProxy(S)&&!isArray$7(S)&&(S=extend$4({},S)),f.style=normalizeStyle(S))}const E=isString$5(u)?1:isSuspense(u)?128:isTeleport(u)?64:isObject$9(u)?4:isFunction$3(u)?2:0;return createBaseVNode(u,f,d,_,x,E,I,!0)}function guardReactiveProps(u){return u?isProxy(u)||InternalObjectKey in u?extend$4({},u):u:null}function cloneVNode(u,f,d=!1){const{props:_,ref:x,patchFlag:I,children:E}=u,M=f?mergeProps(_||{},f):_;return{__v_isVNode:!0,__v_skip:!0,type:u.type,props:M,key:M&&normalizeKey(M),ref:f&&f.ref?d&&x?isArray$7(x)?x.concat(normalizeRef(f)):[x,normalizeRef(f)]:normalizeRef(f):x,scopeId:u.scopeId,slotScopeIds:u.slotScopeIds,children:E,target:u.target,targetAnchor:u.targetAnchor,staticCount:u.staticCount,shapeFlag:u.shapeFlag,patchFlag:f&&u.type!==Fragment?I===-1?16:I|16:I,dynamicProps:u.dynamicProps,dynamicChildren:u.dynamicChildren,appContext:u.appContext,dirs:u.dirs,transition:u.transition,component:u.component,suspense:u.suspense,ssContent:u.ssContent&&cloneVNode(u.ssContent),ssFallback:u.ssFallback&&cloneVNode(u.ssFallback),el:u.el,anchor:u.anchor,ctx:u.ctx,ce:u.ce}}function createTextVNode(u=" ",f=0){return createVNode(Text,null,u,f)}function createStaticVNode(u,f){const d=createVNode(Static,null,u);return d.staticCount=f,d}function createCommentVNode(u="",f=!1){return f?(openBlock(),createBlock(Comment,null,u)):createVNode(Comment,null,u)}function normalizeVNode(u){return u==null||typeof u=="boolean"?createVNode(Comment):isArray$7(u)?createVNode(Fragment,null,u.slice()):typeof u=="object"?cloneIfMounted(u):createVNode(Text,null,String(u))}function cloneIfMounted(u){return u.el===null&&u.patchFlag!==-1||u.memo?u:cloneVNode(u)}function normalizeChildren(u,f){let d=0;const{shapeFlag:_}=u;if(f==null)f=null;else if(isArray$7(f))d=16;else if(typeof f=="object")if(_&65){const x=f.default;x&&(x._c&&(x._d=!1),normalizeChildren(u,x()),x._c&&(x._d=!0));return}else{d=32;const x=f._;!x&&!(InternalObjectKey in f)?f._ctx=currentRenderingInstance:x===3&&currentRenderingInstance&&(currentRenderingInstance.slots._===1?f._=1:(f._=2,u.patchFlag|=1024))}else isFunction$3(f)?(f={default:f,_ctx:currentRenderingInstance},d=32):(f=String(f),_&64?(d=16,f=[createTextVNode(f)]):d=8);u.children=f,u.shapeFlag|=d}function mergeProps(...u){const f={};for(let d=0;d<u.length;d++){const _=u[d];for(const x in _)if(x==="class")f.class!==_.class&&(f.class=normalizeClass([f.class,_.class]));else if(x==="style")f.style=normalizeStyle([f.style,_.style]);else if(isOn(x)){const I=f[x],E=_[x];E&&I!==E&&!(isArray$7(I)&&I.includes(E))&&(f[x]=I?[].concat(I,E):E)}else x!==""&&(f[x]=_[x])}return f}function invokeVNodeHook(u,f,d,_=null){callWithAsyncErrorHandling(u,f,7,[d,_])}const emptyAppContext=createAppContext();let uid$2=0;function createComponentInstance(u,f,d){const _=u.type,x=(f?f.appContext:u.appContext)||emptyAppContext,I={uid:uid$2++,vnode:u,type:_,parent:f,appContext:x,root:null,next:null,subTree:null,effect:null,update:null,scope:new EffectScope(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:f?f.provides:Object.create(x.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:normalizePropsOptions(_,x),emitsOptions:normalizeEmitsOptions(_,x),emit:null,emitted:null,propsDefaults:EMPTY_OBJ,inheritAttrs:_.inheritAttrs,ctx:EMPTY_OBJ,data:EMPTY_OBJ,props:EMPTY_OBJ,attrs:EMPTY_OBJ,slots:EMPTY_OBJ,refs:EMPTY_OBJ,setupState:EMPTY_OBJ,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:d,suspenseId:d?d.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return I.ctx={_:I},I.root=f?f.root:I,I.emit=emit.bind(null,I),u.ce&&u.ce(I),I}let currentInstance=null;const getCurrentInstance=()=>currentInstance||currentRenderingInstance;let internalSetCurrentInstance,setInSSRSetupState;{const u=getGlobalThis$2(),f=(d,_)=>{let x;return(x=u[d])||(x=u[d]=[]),x.push(_),I=>{x.length>1?x.forEach(E=>E(I)):x[0](I)}};internalSetCurrentInstance=f("__VUE_INSTANCE_SETTERS__",d=>currentInstance=d),setInSSRSetupState=f("__VUE_SSR_SETTERS__",d=>isInSSRComponentSetup=d)}const setCurrentInstance=u=>{const f=currentInstance;return internalSetCurrentInstance(u),u.scope.on(),()=>{u.scope.off(),internalSetCurrentInstance(f)}},unsetCurrentInstance=()=>{currentInstance&&currentInstance.scope.off(),internalSetCurrentInstance(null)};function isStatefulComponent(u){return u.vnode.shapeFlag&4}let isInSSRComponentSetup=!1;function setupComponent(u,f=!1){f&&setInSSRSetupState(f);const{props:d,children:_}=u.vnode,x=isStatefulComponent(u);initProps(u,d,x,f),initSlots(u,_);const I=x?setupStatefulComponent(u,f):void 0;return f&&setInSSRSetupState(!1),I}function setupStatefulComponent(u,f){const d=u.type;u.accessCache=Object.create(null),u.proxy=markRaw(new Proxy(u.ctx,PublicInstanceProxyHandlers));const{setup:_}=d;if(_){const x=u.setupContext=_.length>1?createSetupContext(u):null,I=setCurrentInstance(u);pauseTracking();const E=callWithErrorHandling(_,u,0,[u.props,x]);if(resetTracking(),I(),isPromise$2(E)){if(E.then(unsetCurrentInstance,unsetCurrentInstance),f)return E.then(M=>{handleSetupResult(u,M,f)}).catch(M=>{handleError(M,u,0)});u.asyncDep=E}else handleSetupResult(u,E,f)}else finishComponentSetup(u,f)}function handleSetupResult(u,f,d){isFunction$3(f)?u.type.__ssrInlineRender?u.ssrRender=f:u.render=f:isObject$9(f)&&(u.setupState=proxyRefs(f)),finishComponentSetup(u,d)}let compile$3,installWithProxy;function registerRuntimeCompiler(u){compile$3=u,installWithProxy=f=>{f.render._rc&&(f.withProxy=new Proxy(f.ctx,RuntimeCompiledPublicInstanceProxyHandlers))}}const isRuntimeOnly=()=>!compile$3;function finishComponentSetup(u,f,d){const _=u.type;if(!u.render){if(!f&&compile$3&&!_.render){const x=_.template||resolveMergedOptions(u).template;if(x){const{isCustomElement:I,compilerOptions:E}=u.appContext.config,{delimiters:M,compilerOptions:S}=_,A=extend$4(extend$4({isCustomElement:I,delimiters:M},E),S);_.render=compile$3(x,A)}}u.render=_.render||NOOP,installWithProxy&&installWithProxy(u)}{const x=setCurrentInstance(u);pauseTracking();try{applyOptions(u)}finally{resetTracking(),x()}}}function getAttrsProxy(u){return u.attrsProxy||(u.attrsProxy=new Proxy(u.attrs,{get(f,d){return track(u,"get","$attrs"),f[d]}}))}function createSetupContext(u){const f=d=>{u.exposed=d||{}};return{get attrs(){return getAttrsProxy(u)},slots:u.slots,emit:u.emit,expose:f}}function getExposeProxy(u){if(u.exposed)return u.exposeProxy||(u.exposeProxy=new Proxy(proxyRefs(markRaw(u.exposed)),{get(f,d){if(d in f)return f[d];if(d in publicPropertiesMap)return publicPropertiesMap[d](u)},has(f,d){return d in f||d in publicPropertiesMap}}))}const classifyRE=/(?:^|[-_])(\w)/g,classify=u=>u.replace(classifyRE,f=>f.toUpperCase()).replace(/[-_]/g,"");function getComponentName(u,f=!0){return isFunction$3(u)?u.displayName||u.name:u.name||f&&u.__name}function formatComponentName(u,f,d=!1){let _=getComponentName(f);if(!_&&f.__file){const x=f.__file.match(/([^/\\]+)\.\w+$/);x&&(_=x[1])}if(!_&&u&&u.parent){const x=I=>{for(const E in I)if(I[E]===f)return E};_=x(u.components||u.parent.type.components)||x(u.appContext.components)}return _?classify(_):d?"App":"Anonymous"}function isClassComponent(u){return isFunction$3(u)&&"__vccOpts"in u}const computed=(u,f)=>computed$1(u,f,isInSSRComponentSetup);function useModel(u,f,d=EMPTY_OBJ){const _=getCurrentInstance(),x=camelize(f),I=hyphenate(f),E=customRef((S,A)=>{let T;return watchSyncEffect(()=>{const D=u[f];hasChanged(T,D)&&(T=D,A())}),{get(){return S(),d.get?d.get(T):T},set(D){const O=_.vnode.props;!(O&&(f in O||x in O||I in O)&&(`onUpdate:${f}`in O||`onUpdate:${x}`in O||`onUpdate:${I}`in O))&&hasChanged(D,T)&&(T=D,A()),_.emit(`update:${f}`,d.set?d.set(D):D)}}}),M=f==="modelValue"?"modelModifiers":`${f}Modifiers`;return E[Symbol.iterator]=()=>{let S=0;return{next(){return S<2?{value:S++?u[M]||{}:E,done:!1}:{done:!0}}}},E}function h$1(u,f,d){const _=arguments.length;return _===2?isObject$9(f)&&!isArray$7(f)?isVNode$2(f)?createVNode(u,null,[f]):createVNode(u,f):createVNode(u,null,f):(_>3?d=Array.prototype.slice.call(arguments,2):_===3&&isVNode$2(d)&&(d=[d]),createVNode(u,f,d))}function initCustomFormatter(){}function withMemo(u,f,d,_){const x=d[_];if(x&&isMemoSame(x,u))return x;const I=f();return I.memo=u.slice(),d[_]=I}function isMemoSame(u,f){const d=u.memo;if(d.length!=f.length)return!1;for(let _=0;_<d.length;_++)if(hasChanged(d[_],f[_]))return!1;return isBlockTreeEnabled>0&&currentBlock&&currentBlock.push(u),!0}const version$6="3.4.15",warn$2=NOOP,ErrorTypeStrings=ErrorTypeStrings$1,devtools$2=devtools$1$1,setDevtoolsHook=setDevtoolsHook$1,_ssrUtils={createComponentInstance,setupComponent,renderComponentRoot,setCurrentRenderingInstance,isVNode:isVNode$2,normalizeVNode},ssrUtils=_ssrUtils,resolveFilter=null,compatUtils=null,DeprecationTypes=null,svgNS="http://www.w3.org/2000/svg",mathmlNS="http://www.w3.org/1998/Math/MathML",doc=typeof document<"u"?document:null,templateContainer=doc&&doc.createElement("template"),nodeOps={insert:(u,f,d)=>{f.insertBefore(u,d||null)},remove:u=>{const f=u.parentNode;f&&f.removeChild(u)},createElement:(u,f,d,_)=>{const x=f==="svg"?doc.createElementNS(svgNS,u):f==="mathml"?doc.createElementNS(mathmlNS,u):doc.createElement(u,d?{is:d}:void 0);return u==="select"&&_&&_.multiple!=null&&x.setAttribute("multiple",_.multiple),x},createText:u=>doc.createTextNode(u),createComment:u=>doc.createComment(u),setText:(u,f)=>{u.nodeValue=f},setElementText:(u,f)=>{u.textContent=f},parentNode:u=>u.parentNode,nextSibling:u=>u.nextSibling,querySelector:u=>doc.querySelector(u),setScopeId(u,f){u.setAttribute(f,"")},insertStaticContent(u,f,d,_,x,I){const E=d?d.previousSibling:f.lastChild;if(x&&(x===I||x.nextSibling))for(;f.insertBefore(x.cloneNode(!0),d),!(x===I||!(x=x.nextSibling)););else{templateContainer.innerHTML=_==="svg"?`<svg>${u}</svg>`:_==="mathml"?`<math>${u}</math>`:u;const M=templateContainer.content;if(_==="svg"||_==="mathml"){const S=M.firstChild;for(;S.firstChild;)M.appendChild(S.firstChild);M.removeChild(S)}f.insertBefore(M,d)}return[E?E.nextSibling:f.firstChild,d?d.previousSibling:f.lastChild]}},TRANSITION="transition",ANIMATION="animation",vtcKey=Symbol("_vtc"),Transition=(u,{slots:f})=>h$1(BaseTransition,resolveTransitionProps(u),f);Transition.displayName="Transition";const DOMTransitionPropsValidators={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},TransitionPropsValidators=Transition.props=extend$4({},BaseTransitionPropsValidators,DOMTransitionPropsValidators),callHook=(u,f=[])=>{isArray$7(u)?u.forEach(d=>d(...f)):u&&u(...f)},hasExplicitCallback=u=>u?isArray$7(u)?u.some(f=>f.length>1):u.length>1:!1;function resolveTransitionProps(u){const f={};for(const re in u)re in DOMTransitionPropsValidators||(f[re]=u[re]);if(u.css===!1)return f;const{name:d="v",type:_,duration:x,enterFromClass:I=`${d}-enter-from`,enterActiveClass:E=`${d}-enter-active`,enterToClass:M=`${d}-enter-to`,appearFromClass:S=I,appearActiveClass:A=E,appearToClass:T=M,leaveFromClass:D=`${d}-leave-from`,leaveActiveClass:O=`${d}-leave-active`,leaveToClass:j=`${d}-leave-to`}=u,$=normalizeDuration(x),W=$&&$[0],Q=$&&$[1],{onBeforeEnter:X,onEnter:Y,onEnterCancelled:ie,onLeave:oe,onLeaveCancelled:ge,onBeforeAppear:be=X,onAppear:ze=Y,onAppearCancelled:de=ie}=f,Ce=(re,P,k)=>{removeTransitionClass(re,P?T:M),removeTransitionClass(re,P?A:E),k&&k()},ke=(re,P)=>{re._isLeaving=!1,removeTransitionClass(re,D),removeTransitionClass(re,j),removeTransitionClass(re,O),P&&P()},le=re=>(P,k)=>{const B=re?ze:Y,z=()=>Ce(P,re,k);callHook(B,[P,z]),nextFrame(()=>{removeTransitionClass(P,re?S:I),addTransitionClass(P,re?T:M),hasExplicitCallback(B)||whenTransitionEnds(P,_,W,z)})};return extend$4(f,{onBeforeEnter(re){callHook(X,[re]),addTransitionClass(re,I),addTransitionClass(re,E)},onBeforeAppear(re){callHook(be,[re]),addTransitionClass(re,S),addTransitionClass(re,A)},onEnter:le(!1),onAppear:le(!0),onLeave(re,P){re._isLeaving=!0;const k=()=>ke(re,P);addTransitionClass(re,D),forceReflow(),addTransitionClass(re,O),nextFrame(()=>{re._isLeaving&&(removeTransitionClass(re,D),addTransitionClass(re,j),hasExplicitCallback(oe)||whenTransitionEnds(re,_,Q,k))}),callHook(oe,[re,k])},onEnterCancelled(re){Ce(re,!1),callHook(ie,[re])},onAppearCancelled(re){Ce(re,!0),callHook(de,[re])},onLeaveCancelled(re){ke(re),callHook(ge,[re])}})}function normalizeDuration(u){if(u==null)return null;if(isObject$9(u))return[NumberOf(u.enter),NumberOf(u.leave)];{const f=NumberOf(u);return[f,f]}}function NumberOf(u){return toNumber(u)}function addTransitionClass(u,f){f.split(/\s+/).forEach(d=>d&&u.classList.add(d)),(u[vtcKey]||(u[vtcKey]=new Set)).add(f)}function removeTransitionClass(u,f){f.split(/\s+/).forEach(_=>_&&u.classList.remove(_));const d=u[vtcKey];d&&(d.delete(f),d.size||(u[vtcKey]=void 0))}function nextFrame(u){requestAnimationFrame(()=>{requestAnimationFrame(u)})}let endId=0;function whenTransitionEnds(u,f,d,_){const x=u._endId=++endId,I=()=>{x===u._endId&&_()};if(d)return setTimeout(I,d);const{type:E,timeout:M,propCount:S}=getTransitionInfo(u,f);if(!E)return _();const A=E+"end";let T=0;const D=()=>{u.removeEventListener(A,O),I()},O=j=>{j.target===u&&++T>=S&&D()};setTimeout(()=>{T<S&&D()},M+1),u.addEventListener(A,O)}function getTransitionInfo(u,f){const d=window.getComputedStyle(u),_=$=>(d[$]||"").split(", "),x=_(`${TRANSITION}Delay`),I=_(`${TRANSITION}Duration`),E=getTimeout(x,I),M=_(`${ANIMATION}Delay`),S=_(`${ANIMATION}Duration`),A=getTimeout(M,S);let T=null,D=0,O=0;f===TRANSITION?E>0&&(T=TRANSITION,D=E,O=I.length):f===ANIMATION?A>0&&(T=ANIMATION,D=A,O=S.length):(D=Math.max(E,A),T=D>0?E>A?TRANSITION:ANIMATION:null,O=T?T===TRANSITION?I.length:S.length:0);const j=T===TRANSITION&&/\b(transform|all)(,|$)/.test(_(`${TRANSITION}Property`).toString());return{type:T,timeout:D,propCount:O,hasTransform:j}}function getTimeout(u,f){for(;u.length<f.length;)u=u.concat(u);return Math.max(...f.map((d,_)=>toMs(d)+toMs(u[_])))}function toMs(u){return u==="auto"?0:Number(u.slice(0,-1).replace(",","."))*1e3}function forceReflow(){return document.body.offsetHeight}function patchClass(u,f,d){const _=u[vtcKey];_&&(f=(f?[f,..._]:[..._]).join(" ")),f==null?u.removeAttribute("class"):d?u.setAttribute("class",f):u.className=f}const vShowOldKey=Symbol("_vod"),vShow={beforeMount(u,{value:f},{transition:d}){u[vShowOldKey]=u.style.display==="none"?"":u.style.display,d&&f?d.beforeEnter(u):setDisplay(u,f)},mounted(u,{value:f},{transition:d}){d&&f&&d.enter(u)},updated(u,{value:f,oldValue:d},{transition:_}){!f!=!d&&(_?f?(_.beforeEnter(u),setDisplay(u,!0),_.enter(u)):_.leave(u,()=>{setDisplay(u,!1)}):setDisplay(u,f))},beforeUnmount(u,{value:f}){setDisplay(u,f)}};function setDisplay(u,f){u.style.display=f?u[vShowOldKey]:"none"}function initVShowForSSR(){vShow.getSSRProps=({value:u})=>{if(!u)return{style:{display:"none"}}}}const CSS_VAR_TEXT=Symbol("");function useCssVars(u){const f=getCurrentInstance();if(!f)return;const d=f.ut=(x=u(f.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${f.uid}"]`)).forEach(I=>setVarsOnNode(I,x))},_=()=>{const x=u(f.proxy);setVarsOnVNode(f.subTree,x),d(x)};watchPostEffect(_),onMounted(()=>{const x=new MutationObserver(_);x.observe(f.subTree.el.parentNode,{childList:!0}),onUnmounted(()=>x.disconnect())})}function setVarsOnVNode(u,f){if(u.shapeFlag&128){const d=u.suspense;u=d.activeBranch,d.pendingBranch&&!d.isHydrating&&d.effects.push(()=>{setVarsOnVNode(d.activeBranch,f)})}for(;u.component;)u=u.component.subTree;if(u.shapeFlag&1&&u.el)setVarsOnNode(u.el,f);else if(u.type===Fragment)u.children.forEach(d=>setVarsOnVNode(d,f));else if(u.type===Static){let{el:d,anchor:_}=u;for(;d&&(setVarsOnNode(d,f),d!==_);)d=d.nextSibling}}function setVarsOnNode(u,f){if(u.nodeType===1){const d=u.style;let _="";for(const x in f)d.setProperty(`--${x}`,f[x]),_+=`--${x}: ${f[x]};`;d[CSS_VAR_TEXT]=_}}function patchStyle(u,f,d){const _=u.style,x=_.display,I=isString$5(d);if(d&&!I){if(f&&!isString$5(f))for(const E in f)d[E]==null&&setStyle(_,E,"");for(const E in d)setStyle(_,E,d[E])}else if(I){if(f!==d){const E=_[CSS_VAR_TEXT];E&&(d+=";"+E),_.cssText=d}}else f&&u.removeAttribute("style");vShowOldKey in u&&(_.display=x)}const importantRE=/\s*!important$/;function setStyle(u,f,d){if(isArray$7(d))d.forEach(_=>setStyle(u,f,_));else if(d==null&&(d=""),f.startsWith("--"))u.setProperty(f,d);else{const _=autoPrefix(u,f);importantRE.test(d)?u.setProperty(hyphenate(_),d.replace(importantRE,""),"important"):u[_]=d}}const prefixes=["Webkit","Moz","ms"],prefixCache={};function autoPrefix(u,f){const d=prefixCache[f];if(d)return d;let _=camelize(f);if(_!=="filter"&&_ in u)return prefixCache[f]=_;_=capitalize$2(_);for(let x=0;x<prefixes.length;x++){const I=prefixes[x]+_;if(I in u)return prefixCache[f]=I}return f}const xlinkNS="http://www.w3.org/1999/xlink";function patchAttr(u,f,d,_,x){if(_&&f.startsWith("xlink:"))d==null?u.removeAttributeNS(xlinkNS,f.slice(6,f.length)):u.setAttributeNS(xlinkNS,f,d);else{const I=isSpecialBooleanAttr(f);d==null||I&&!includeBooleanAttr(d)?u.removeAttribute(f):u.setAttribute(f,I?"":d)}}function patchDOMProp(u,f,d,_,x,I,E){if(f==="innerHTML"||f==="textContent"){_&&E(_,x,I),u[f]=d??"";return}const M=u.tagName;if(f==="value"&&M!=="PROGRESS"&&!M.includes("-")){u._value=d;const A=M==="OPTION"?u.getAttribute("value"):u.value,T=d??"";A!==T&&(u.value=T),d==null&&u.removeAttribute(f);return}let S=!1;if(d===""||d==null){const A=typeof u[f];A==="boolean"?d=includeBooleanAttr(d):d==null&&A==="string"?(d="",S=!0):A==="number"&&(d=0,S=!0)}try{u[f]=d}catch{}S&&u.removeAttribute(f)}function addEventListener(u,f,d,_){u.addEventListener(f,d,_)}function removeEventListener(u,f,d,_){u.removeEventListener(f,d,_)}const veiKey=Symbol("_vei");function patchEvent(u,f,d,_,x=null){const I=u[veiKey]||(u[veiKey]={}),E=I[f];if(_&&E)E.value=_;else{const[M,S]=parseName(f);if(_){const A=I[f]=createInvoker(_,x);addEventListener(u,M,A,S)}else E&&(removeEventListener(u,M,E,S),I[f]=void 0)}}const optionsModifierRE=/(?:Once|Passive|Capture)$/;function parseName(u){let f;if(optionsModifierRE.test(u)){f={};let _;for(;_=u.match(optionsModifierRE);)u=u.slice(0,u.length-_[0].length),f[_[0].toLowerCase()]=!0}return[u[2]===":"?u.slice(3):hyphenate(u.slice(2)),f]}let cachedNow=0;const p=Promise.resolve(),getNow=()=>cachedNow||(p.then(()=>cachedNow=0),cachedNow=Date.now());function createInvoker(u,f){const d=_=>{if(!_._vts)_._vts=Date.now();else if(_._vts<=d.attached)return;callWithAsyncErrorHandling(patchStopImmediatePropagation(_,d.value),f,5,[_])};return d.value=u,d.attached=getNow(),d}function patchStopImmediatePropagation(u,f){if(isArray$7(f)){const d=u.stopImmediatePropagation;return u.stopImmediatePropagation=()=>{d.call(u),u._stopped=!0},f.map(_=>x=>!x._stopped&&_&&_(x))}else return f}const isNativeOn=u=>u.charCodeAt(0)===111&&u.charCodeAt(1)===110&&u.charCodeAt(2)>96&&u.charCodeAt(2)<123,patchProp=(u,f,d,_,x,I,E,M,S)=>{const A=x==="svg";f==="class"?patchClass(u,_,A):f==="style"?patchStyle(u,d,_):isOn(f)?isModelListener(f)||patchEvent(u,f,d,_,E):(f[0]==="."?(f=f.slice(1),!0):f[0]==="^"?(f=f.slice(1),!1):shouldSetAsProp(u,f,_,A))?patchDOMProp(u,f,_,I,E,M,S):(f==="true-value"?u._trueValue=_:f==="false-value"&&(u._falseValue=_),patchAttr(u,f,_,A))};function shouldSetAsProp(u,f,d,_){if(_)return!!(f==="innerHTML"||f==="textContent"||f in u&&isNativeOn(f)&&isFunction$3(d));if(f==="spellcheck"||f==="draggable"||f==="translate"||f==="form"||f==="list"&&u.tagName==="INPUT"||f==="type"&&u.tagName==="TEXTAREA")return!1;if(f==="width"||f==="height"){const x=u.tagName;if(x==="IMG"||x==="VIDEO"||x==="CANVAS"||x==="SOURCE")return!1}return isNativeOn(f)&&isString$5(d)?!1:f in u}/*! #__NO_SIDE_EFFECTS__ */function defineCustomElement(u,f){const d=defineComponent(u);class _ extends VueElement{constructor(I){super(d,I,f)}}return _.def=d,_}/*! #__NO_SIDE_EFFECTS__ */const defineSSRCustomElement=u=>defineCustomElement(u,hydrate),BaseClass=typeof HTMLElement<"u"?HTMLElement:class{};class VueElement extends BaseClass{constructor(f,d={},_){super(),this._def=f,this._props=d,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&_?_(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,this._ob&&(this._ob.disconnect(),this._ob=null),nextTick$2(()=>{this._connected||(render$3(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let _=0;_<this.attributes.length;_++)this._setAttr(this.attributes[_].name);this._ob=new MutationObserver(_=>{for(const x of _)this._setAttr(x.attributeName)}),this._ob.observe(this,{attributes:!0});const f=(_,x=!1)=>{const{props:I,styles:E}=_;let M;if(I&&!isArray$7(I))for(const S in I){const A=I[S];(A===Number||A&&A.type===Number)&&(S in this._props&&(this._props[S]=toNumber(this._props[S])),(M||(M=Object.create(null)))[camelize(S)]=!0)}this._numberProps=M,x&&this._resolveProps(_),this._applyStyles(E),this._update()},d=this._def.__asyncLoader;d?d().then(_=>f(_,!0)):f(this._def)}_resolveProps(f){const{props:d}=f,_=isArray$7(d)?d:Object.keys(d||{});for(const x of Object.keys(this))x[0]!=="_"&&_.includes(x)&&this._setProp(x,this[x],!0,!1);for(const x of _.map(camelize))Object.defineProperty(this,x,{get(){return this._getProp(x)},set(I){this._setProp(x,I)}})}_setAttr(f){let d=this.getAttribute(f);const _=camelize(f);this._numberProps&&this._numberProps[_]&&(d=toNumber(d)),this._setProp(_,d,!1)}_getProp(f){return this._props[f]}_setProp(f,d,_=!0,x=!0){d!==this._props[f]&&(this._props[f]=d,x&&this._instance&&this._update(),_&&(d===!0?this.setAttribute(hyphenate(f),""):typeof d=="string"||typeof d=="number"?this.setAttribute(hyphenate(f),d+""):d||this.removeAttribute(hyphenate(f))))}_update(){render$3(this._createVNode(),this.shadowRoot)}_createVNode(){const f=createVNode(this._def,extend$4({},this._props));return this._instance||(f.ce=d=>{this._instance=d,d.isCE=!0;const _=(I,E)=>{this.dispatchEvent(new CustomEvent(I,{detail:E}))};d.emit=(I,...E)=>{_(I,E),hyphenate(I)!==I&&_(hyphenate(I),E)};let x=this;for(;x=x&&(x.parentNode||x.host);)if(x instanceof VueElement){d.parent=x._instance,d.provides=x._instance.provides;break}}),f}_applyStyles(f){f&&f.forEach(d=>{const _=document.createElement("style");_.textContent=d,this.shadowRoot.appendChild(_)})}}function useCssModule(u="$style"){{const f=getCurrentInstance();if(!f)return EMPTY_OBJ;const d=f.type.__cssModules;if(!d)return EMPTY_OBJ;const _=d[u];return _||EMPTY_OBJ}}const positionMap=new WeakMap,newPositionMap=new WeakMap,moveCbKey=Symbol("_moveCb"),enterCbKey=Symbol("_enterCb"),TransitionGroupImpl={name:"TransitionGroup",props:extend$4({},TransitionPropsValidators,{tag:String,moveClass:String}),setup(u,{slots:f}){const d=getCurrentInstance(),_=useTransitionState();let x,I;return onUpdated(()=>{if(!x.length)return;const E=u.moveClass||`${u.name||"v"}-move`;if(!hasCSSTransform(x[0].el,d.vnode.el,E))return;x.forEach(callPendingCbs),x.forEach(recordPosition);const M=x.filter(applyTranslation);forceReflow(),M.forEach(S=>{const A=S.el,T=A.style;addTransitionClass(A,E),T.transform=T.webkitTransform=T.transitionDuration="";const D=A[moveCbKey]=O=>{O&&O.target!==A||(!O||/transform$/.test(O.propertyName))&&(A.removeEventListener("transitionend",D),A[moveCbKey]=null,removeTransitionClass(A,E))};A.addEventListener("transitionend",D)})}),()=>{const E=toRaw(u),M=resolveTransitionProps(E);let S=E.tag||Fragment;x=I,I=f.default?getTransitionRawChildren(f.default()):[];for(let A=0;A<I.length;A++){const T=I[A];T.key!=null&&setTransitionHooks(T,resolveTransitionHooks(T,M,_,d))}if(x)for(let A=0;A<x.length;A++){const T=x[A];setTransitionHooks(T,resolveTransitionHooks(T,M,_,d)),positionMap.set(T,T.el.getBoundingClientRect())}return createVNode(S,null,I)}}},removeMode=u=>delete u.mode;TransitionGroupImpl.props;const TransitionGroup=TransitionGroupImpl;function callPendingCbs(u){const f=u.el;f[moveCbKey]&&f[moveCbKey](),f[enterCbKey]&&f[enterCbKey]()}function recordPosition(u){newPositionMap.set(u,u.el.getBoundingClientRect())}function applyTranslation(u){const f=positionMap.get(u),d=newPositionMap.get(u),_=f.left-d.left,x=f.top-d.top;if(_||x){const I=u.el.style;return I.transform=I.webkitTransform=`translate(${_}px,${x}px)`,I.transitionDuration="0s",u}}function hasCSSTransform(u,f,d){const _=u.cloneNode(),x=u[vtcKey];x&&x.forEach(M=>{M.split(/\s+/).forEach(S=>S&&_.classList.remove(S))}),d.split(/\s+/).forEach(M=>M&&_.classList.add(M)),_.style.display="none";const I=f.nodeType===1?f:f.parentNode;I.appendChild(_);const{hasTransform:E}=getTransitionInfo(_);return I.removeChild(_),E}const getModelAssigner=u=>{const f=u.props["onUpdate:modelValue"]||!1;return isArray$7(f)?d=>invokeArrayFns(f,d):f};function onCompositionStart(u){u.target.composing=!0}function onCompositionEnd(u){const f=u.target;f.composing&&(f.composing=!1,f.dispatchEvent(new Event("input")))}const assignKey=Symbol("_assign"),vModelText={created(u,{modifiers:{lazy:f,trim:d,number:_}},x){u[assignKey]=getModelAssigner(x);const I=_||x.props&&x.props.type==="number";addEventListener(u,f?"change":"input",E=>{if(E.target.composing)return;let M=u.value;d&&(M=M.trim()),I&&(M=looseToNumber(M)),u[assignKey](M)}),d&&addEventListener(u,"change",()=>{u.value=u.value.trim()}),f||(addEventListener(u,"compositionstart",onCompositionStart),addEventListener(u,"compositionend",onCompositionEnd),addEventListener(u,"change",onCompositionEnd))},mounted(u,{value:f}){u.value=f??""},beforeUpdate(u,{value:f,modifiers:{lazy:d,trim:_,number:x}},I){if(u[assignKey]=getModelAssigner(I),u.composing)return;const E=x||u.type==="number"?looseToNumber(u.value):u.value,M=f??"";E!==M&&(document.activeElement===u&&u.type!=="range"&&(d||_&&u.value.trim()===M)||(u.value=M))}},vModelCheckbox={deep:!0,created(u,f,d){u[assignKey]=getModelAssigner(d),addEventListener(u,"change",()=>{const _=u._modelValue,x=getValue$1(u),I=u.checked,E=u[assignKey];if(isArray$7(_)){const M=looseIndexOf(_,x),S=M!==-1;if(I&&!S)E(_.concat(x));else if(!I&&S){const A=[..._];A.splice(M,1),E(A)}}else if(isSet$2(_)){const M=new Set(_);I?M.add(x):M.delete(x),E(M)}else E(getCheckboxValue(u,I))})},mounted:setChecked,beforeUpdate(u,f,d){u[assignKey]=getModelAssigner(d),setChecked(u,f,d)}};function setChecked(u,{value:f,oldValue:d},_){u._modelValue=f,isArray$7(f)?u.checked=looseIndexOf(f,_.props.value)>-1:isSet$2(f)?u.checked=f.has(_.props.value):f!==d&&(u.checked=looseEqual(f,getCheckboxValue(u,!0)))}const vModelRadio={created(u,{value:f},d){u.checked=looseEqual(f,d.props.value),u[assignKey]=getModelAssigner(d),addEventListener(u,"change",()=>{u[assignKey](getValue$1(u))})},beforeUpdate(u,{value:f,oldValue:d},_){u[assignKey]=getModelAssigner(_),f!==d&&(u.checked=looseEqual(f,_.props.value))}},vModelSelect={deep:!0,created(u,{value:f,modifiers:{number:d}},_){const x=isSet$2(f);addEventListener(u,"change",()=>{const I=Array.prototype.filter.call(u.options,E=>E.selected).map(E=>d?looseToNumber(getValue$1(E)):getValue$1(E));u[assignKey](u.multiple?x?new Set(I):I:I[0]),u._assigning=!0,nextTick$2(()=>{u._assigning=!1})}),u[assignKey]=getModelAssigner(_)},mounted(u,{value:f,oldValue:d,modifiers:{number:_}}){setSelected(u,f,d,_)},beforeUpdate(u,f,d){u[assignKey]=getModelAssigner(d)},updated(u,{value:f,oldValue:d,modifiers:{number:_}}){u._assigning||setSelected(u,f,d,_)}};function setSelected(u,f,d,_){const x=u.multiple,I=isArray$7(f);if(!(x&&!I&&!isSet$2(f))&&!(I&&looseEqual(f,d))){for(let E=0,M=u.options.length;E<M;E++){const S=u.options[E],A=getValue$1(S);if(x)if(I){const T=typeof A;T==="string"||T==="number"?S.selected=f.includes(_?looseToNumber(A):A):S.selected=looseIndexOf(f,A)>-1}else S.selected=f.has(A);else if(looseEqual(getValue$1(S),f)){u.selectedIndex!==E&&(u.selectedIndex=E);return}}!x&&u.selectedIndex!==-1&&(u.selectedIndex=-1)}}function getValue$1(u){return"_value"in u?u._value:u.value}function getCheckboxValue(u,f){const d=f?"_trueValue":"_falseValue";return d in u?u[d]:f}const vModelDynamic={created(u,f,d){callModelHook(u,f,d,null,"created")},mounted(u,f,d){callModelHook(u,f,d,null,"mounted")},beforeUpdate(u,f,d,_){callModelHook(u,f,d,_,"beforeUpdate")},updated(u,f,d,_){callModelHook(u,f,d,_,"updated")}};function resolveDynamicModel(u,f){switch(u){case"SELECT":return vModelSelect;case"TEXTAREA":return vModelText;default:switch(f){case"checkbox":return vModelCheckbox;case"radio":return vModelRadio;default:return vModelText}}}function callModelHook(u,f,d,_,x){const E=resolveDynamicModel(u.tagName,d.props&&d.props.type)[x];E&&E(u,f,d,_)}function initVModelForSSR(){vModelText.getSSRProps=({value:u})=>({value:u}),vModelRadio.getSSRProps=({value:u},f)=>{if(f.props&&looseEqual(f.props.value,u))return{checked:!0}},vModelCheckbox.getSSRProps=({value:u},f)=>{if(isArray$7(u)){if(f.props&&looseIndexOf(u,f.props.value)>-1)return{checked:!0}}else if(isSet$2(u)){if(f.props&&u.has(f.props.value))return{checked:!0}}else if(u)return{checked:!0}},vModelDynamic.getSSRProps=(u,f)=>{if(typeof f.type!="string")return;const d=resolveDynamicModel(f.type.toUpperCase(),f.props&&f.props.type);if(d.getSSRProps)return d.getSSRProps(u,f)}}const systemModifiers=["ctrl","shift","alt","meta"],modifierGuards={stop:u=>u.stopPropagation(),prevent:u=>u.preventDefault(),self:u=>u.target!==u.currentTarget,ctrl:u=>!u.ctrlKey,shift:u=>!u.shiftKey,alt:u=>!u.altKey,meta:u=>!u.metaKey,left:u=>"button"in u&&u.button!==0,middle:u=>"button"in u&&u.button!==1,right:u=>"button"in u&&u.button!==2,exact:(u,f)=>systemModifiers.some(d=>u[`${d}Key`]&&!f.includes(d))},withModifiers=(u,f)=>{const d=u._withMods||(u._withMods={}),_=f.join(".");return d[_]||(d[_]=(x,...I)=>{for(let E=0;E<f.length;E++){const M=modifierGuards[f[E]];if(M&&M(x,f))return}return u(x,...I)})},keyNames={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},withKeys=(u,f)=>{const d=u._withKeys||(u._withKeys={}),_=f.join(".");return d[_]||(d[_]=x=>{if(!("key"in x))return;const I=hyphenate(x.key);if(f.some(E=>E===I||keyNames[E]===I))return u(x)})},rendererOptions=extend$4({patchProp},nodeOps);let renderer,enabledHydration=!1;function ensureRenderer(){return renderer||(renderer=createRenderer(rendererOptions))}function ensureHydrationRenderer(){return renderer=enabledHydration?renderer:createHydrationRenderer(rendererOptions),enabledHydration=!0,renderer}const render$3=(...u)=>{ensureRenderer().render(...u)},hydrate=(...u)=>{ensureHydrationRenderer().hydrate(...u)},createApp=(...u)=>{const f=ensureRenderer().createApp(...u),{mount:d}=f;return f.mount=_=>{const x=normalizeContainer(_);if(!x)return;const I=f._component;!isFunction$3(I)&&!I.render&&!I.template&&(I.template=x.innerHTML),x.innerHTML="";const E=d(x,!1,resolveRootNamespace(x));return x instanceof Element&&(x.removeAttribute("v-cloak"),x.setAttribute("data-v-app","")),E},f},createSSRApp=(...u)=>{const f=ensureHydrationRenderer().createApp(...u),{mount:d}=f;return f.mount=_=>{const x=normalizeContainer(_);if(x)return d(x,!0,resolveRootNamespace(x))},f};function resolveRootNamespace(u){if(u instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&u instanceof MathMLElement)return"mathml"}function normalizeContainer(u){return isString$5(u)?document.querySelector(u):u}let ssrDirectiveInitialized=!1;const initDirectivesForSSR=()=>{ssrDirectiveInitialized||(ssrDirectiveInitialized=!0,initVModelForSSR(),initVShowForSSR())},compile$2=()=>{},vue_runtime_esmBundler=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition,BaseTransitionPropsValidators,Comment,DeprecationTypes,EffectScope,ErrorCodes,ErrorTypeStrings,Fragment,KeepAlive,ReactiveEffect,Static,Suspense,Teleport,Text,TrackOpTypes,Transition,TransitionGroup,TriggerOpTypes,VueElement,assertNumber,callWithAsyncErrorHandling,callWithErrorHandling,camelize,capitalize:capitalize$2,cloneVNode,compatUtils,compile:compile$2,computed,createApp,createBlock,createCommentVNode,createElementBlock,createElementVNode:createBaseVNode,createHydrationRenderer,createPropsRestProxy,createRenderer,createSSRApp,createSlots,createStaticVNode,createTextVNode,createVNode,customRef,defineAsyncComponent,defineComponent,defineCustomElement,defineEmits,defineExpose,defineModel,defineOptions,defineProps,defineSSRCustomElement,defineSlots,devtools:devtools$2,effect:effect$3,effectScope,getCurrentInstance,getCurrentScope,getTransitionRawChildren,guardReactiveProps,h:h$1,handleError,hasInjectionContext,hydrate,initCustomFormatter,initDirectivesForSSR,inject,isMemoSame,isProxy,isReactive,isReadonly,isRef,isRuntimeOnly,isShallow,isVNode:isVNode$2,markRaw,mergeDefaults,mergeModels,mergeProps,nextTick:nextTick$2,normalizeClass,normalizeProps,normalizeStyle,onActivated,onBeforeMount,onBeforeUnmount,onBeforeUpdate,onDeactivated,onErrorCaptured,onMounted,onRenderTracked,onRenderTriggered,onScopeDispose,onServerPrefetch,onUnmounted,onUpdated,openBlock,popScopeId,provide,proxyRefs,pushScopeId,queuePostFlushCb,reactive,readonly,ref,registerRuntimeCompiler,render:render$3,renderList,renderSlot,resolveComponent,resolveDirective,resolveDynamicComponent,resolveFilter,resolveTransitionHooks,setBlockTracking,setDevtoolsHook,setTransitionHooks,shallowReactive,shallowReadonly,shallowRef,ssrContextKey,ssrUtils,stop,toDisplayString:toDisplayString$2,toHandlerKey,toHandlers,toRaw,toRef,toRefs,toValue:toValue$1,transformVNodeArgs,triggerRef,unref,useAttrs,useCssModule,useCssVars,useModel,useSSRContext,useSlots,useTransitionState,vModelCheckbox,vModelDynamic,vModelRadio,vModelSelect,vModelText,vShow,version:version$6,warn:warn$2,watch,watchEffect,watchPostEffect,watchSyncEffect,withAsyncContext,withCtx,withDefaults,withDirectives,withKeys,withMemo,withModifiers,withScopeId},Symbol.toStringTag,{value:"Module"}));var i;function c$1(u,f={id:""}){f={trackOnNextTick:!1,...f},i=new y(f),u.config.globalProperties.$gtm=i,i.isInBrowserContext()&&(f.vueRouter&&G$1(u,f.vueRouter,f.ignoredViews,f.trackOnNextTick,f.vueRouterAdditionalEventData),i.options.enabled&&i.options.loadScript&&(Array.isArray(f.id)?f.id.forEach(d=>{if(typeof d=="string")p$1(d,f);else{let _={...f};d.queryParams!=null&&(_.queryParams={..._.queryParams,...d.queryParams}),p$1(d.id,_)}}):p$1(f.id,f))),u.provide("gtm",f)}function G$1(u,f,d=[],_,x=()=>({})){function I(E,M){return E instanceof Error?!!(E.type&M):!1}f.afterEach(async(E,M,S)=>{if(typeof E.name!="string"||Array.isArray(d)&&d.includes(E.name)||typeof d=="function"&&d(E,M))return;let A=E.meta&&typeof E.meta.gtm=="string"&&E.meta.gtm?E.meta.gtm:E.name;I(S,4)?i?.debugEnabled()&&console.log(`[VueGtm]: '${A}' not tracked due to navigation aborted`):I(S,8)&&i?.debugEnabled()&&console.log(`[VueGtm]: '${A}' not tracked due to navigation cancelled`);let T={...await x(E,M),...E.meta?.gtmAdditionalEventData},D=f.options?.history?.base??"";D.endsWith("/")||(D+="/"),D+=E.fullPath.startsWith("/")?E.fullPath.substring(1):E.fullPath,_?nextTick$2(()=>{i?.trackView(A,D,T)}):i?.trackView(A,D,T)})}function N(u){return{install:f=>c$1(f,u)}}function isPlainObject$3(u){if(u===null||typeof u!="object")return!1;const f=Object.getPrototypeOf(u);return f!==null&&f!==Object.prototype&&Object.getPrototypeOf(f)!==null||Symbol.iterator in u?!1:Symbol.toStringTag in u?Object.prototype.toString.call(u)==="[object Module]":!0}function _defu(u,f,d=".",_){if(!isPlainObject$3(f))return _defu(u,{},d,_);const x=Object.assign({},f);for(const I in u){if(I==="__proto__"||I==="constructor")continue;const E=u[I];E!=null&&(_&&_(x,I,E,d)||(Array.isArray(E)&&Array.isArray(x[I])?x[I]=[...E,...x[I]]:isPlainObject$3(E)&&isPlainObject$3(x[I])?x[I]=_defu(E,x[I],(d?`${d}.`:"")+I.toString(),_):x[I]=E))}return x}function createDefu(u){return(...f)=>f.reduce((d,_)=>_defu(d,_,"",u),{})}const defu=createDefu();function tryOnScopeDispose$2(u){return getCurrentScope()?(onScopeDispose(u),!0):!1}function toValue(u){return typeof u=="function"?u():unref(u)}const isClient$3=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const notNullish=u=>u!=null,toString=Object.prototype.toString,isObject$8=u=>toString.call(u)==="[object Object]",noop$6=()=>{};function getLifeCycleTarget(u){return u||getCurrentInstance()}function tryOnUnmounted(u,f){getLifeCycleTarget(f)&&onUnmounted(u,f)}function unrefElement$2(u){var f;const d=toValue(u);return(f=d?.$el)!=null?f:d}const defaultWindow$2=isClient$3?window:void 0;function useEventListener$2(...u){let f,d,_,x;if(typeof u[0]=="string"||Array.isArray(u[0])?([d,_,x]=u,f=defaultWindow$2):[f,d,_,x]=u,!f)return noop$6;Array.isArray(d)||(d=[d]),Array.isArray(_)||(_=[_]);const I=[],E=()=>{I.forEach(T=>T()),I.length=0},M=(T,D,O,j)=>(T.addEventListener(D,O,j),()=>T.removeEventListener(D,O,j)),S=watch(()=>[unrefElement$2(f),toValue(x)],([T,D])=>{if(E(),!T)return;const O=isObject$8(D)?{...D}:D;I.push(...d.flatMap(j=>_.map($=>M(T,j,$,O))))},{immediate:!0,flush:"post"}),A=()=>{S(),E()};return tryOnScopeDispose$2(A),A}function useMounted(){const u=ref(!1),f=getCurrentInstance();return f&&onMounted(()=>{u.value=!0},f),u}function useSupported$2(u){const f=useMounted();return computed(()=>(f.value,!!u()))}function useIntersectionObserver$1(u,f,d={}){const{root:_,rootMargin:x="0px",threshold:I=.1,window:E=defaultWindow$2,immediate:M=!0}=d,S=useSupported$2(()=>E&&"IntersectionObserver"in E),A=computed(()=>{const $=toValue(u);return(Array.isArray($)?$:[$]).map(unrefElement$2).filter(notNullish)});let T=noop$6;const D=ref(M),O=S.value?watch(()=>[A.value,unrefElement$2(_),D.value],([$,W])=>{if(T(),!D.value||!$.length)return;const Q=new IntersectionObserver(f,{root:unrefElement$2(W),rootMargin:x,threshold:I});$.forEach(X=>X&&Q.observe(X)),T=()=>{Q.disconnect(),T=noop$6}},{immediate:M,flush:"post"}):noop$6,j=()=>{T(),O(),D.value=!1};return tryOnScopeDispose$2(j),{isSupported:S,isActive:D,pause(){T(),D.value=!1},resume(){D.value=!0},stop:j}}const defaultTimestep$1=1/60*1e3,getCurrentTime$1=typeof performance<"u"?()=>performance.now():()=>Date.now(),onNextFrame$1=typeof window<"u"?u=>window.requestAnimationFrame(u):u=>setTimeout(()=>u(getCurrentTime$1()),defaultTimestep$1);function createRenderStep$1(u){let f=[],d=[],_=0,x=!1,I=!1;const E=new WeakSet,M={schedule:(S,A=!1,T=!1)=>{const D=T&&x,O=D?f:d;return A&&E.add(S),O.indexOf(S)===-1&&(O.push(S),D&&x&&(_=f.length)),S},cancel:S=>{const A=d.indexOf(S);A!==-1&&d.splice(A,1),E.delete(S)},process:S=>{if(x){I=!0;return}if(x=!0,[f,d]=[d,f],d.length=0,_=f.length,_)for(let A=0;A<_;A++){const T=f[A];T(S),E.has(T)&&(M.schedule(T),u())}x=!1,I&&(I=!1,M.process(S))}};return M}const maxElapsed$1=40;let useDefaultElapsed$1=!0,runNextFrame$1=!1,isProcessing$1=!1;const frame$1={delta:0,timestamp:0},stepsOrder$1=["read","update","preRender","render","postRender"],steps$1=stepsOrder$1.reduce((u,f)=>(u[f]=createRenderStep$1(()=>runNextFrame$1=!0),u),{}),sync=stepsOrder$1.reduce((u,f)=>{const d=steps$1[f];return u[f]=(_,x=!1,I=!1)=>(runNextFrame$1||startLoop$1(),d.schedule(_,x,I)),u},{}),cancelSync=stepsOrder$1.reduce((u,f)=>(u[f]=steps$1[f].cancel,u),{});stepsOrder$1.reduce((u,f)=>(u[f]=()=>steps$1[f].process(frame$1),u),{});const processStep$1=u=>steps$1[u].process(frame$1),processFrame$1=u=>{runNextFrame$1=!1,frame$1.delta=useDefaultElapsed$1?defaultTimestep$1:Math.max(Math.min(u-frame$1.timestamp,maxElapsed$1),1),frame$1.timestamp=u,isProcessing$1=!0,stepsOrder$1.forEach(processStep$1),isProcessing$1=!1,runNextFrame$1&&(useDefaultElapsed$1=!1,onNextFrame$1(processFrame$1))},startLoop$1=()=>{runNextFrame$1=!0,useDefaultElapsed$1=!0,isProcessing$1||onNextFrame$1(processFrame$1)},getFrameData=()=>frame$1;function __rest$1(u,f){var d={};for(var _ in u)Object.prototype.hasOwnProperty.call(u,_)&&f.indexOf(_)<0&&(d[_]=u[_]);if(u!=null&&typeof Object.getOwnPropertySymbols=="function")for(var x=0,_=Object.getOwnPropertySymbols(u);x<_.length;x++)f.indexOf(_[x])<0&&Object.prototype.propertyIsEnumerable.call(u,_[x])&&(d[_[x]]=u[_[x]]);return d}var invariant=function(){};const clamp$2=(u,f,d)=>Math.min(Math.max(d,u),f),safeMin=.001,minDuration=.01,maxDuration=10,minDamping=.05,maxDamping=1;function findSpring({duration:u=800,bounce:f=.25,velocity:d=0,mass:_=1}){let x,I,E=1-f;E=clamp$2(minDamping,maxDamping,E),u=clamp$2(minDuration,maxDuration,u/1e3),E<1?(x=A=>{const T=A*E,D=T*u,O=T-d,j=calcAngularFreq(A,E),$=Math.exp(-D);return safeMin-O/j*$},I=A=>{const D=A*E*u,O=D*d+d,j=Math.pow(E,2)*Math.pow(A,2)*u,$=Math.exp(-D),W=calcAngularFreq(Math.pow(A,2),E);return(-x(A)+safeMin>0?-1:1)*((O-j)*$)/W}):(x=A=>{const T=Math.exp(-A*u),D=(A-d)*u+1;return-safeMin+T*D},I=A=>{const T=Math.exp(-A*u),D=(d-A)*(u*u);return T*D});const M=5/u,S=approximateRoot(x,I,M);if(u=u*1e3,isNaN(S))return{stiffness:100,damping:10,duration:u};{const A=Math.pow(S,2)*_;return{stiffness:A,damping:E*2*Math.sqrt(_*A),duration:u}}}const rootIterations=12;function approximateRoot(u,f,d){let _=d;for(let x=1;x<rootIterations;x++)_=_-u(_)/f(_);return _}function calcAngularFreq(u,f){return u*Math.sqrt(1-f*f)}const durationKeys=["duration","bounce"],physicsKeys=["stiffness","damping","mass"];function isSpringType(u,f){return f.some(d=>u[d]!==void 0)}function getSpringOptions(u){let f=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},u);if(!isSpringType(u,physicsKeys)&&isSpringType(u,durationKeys)){const d=findSpring(u);f=Object.assign(Object.assign(Object.assign({},f),d),{velocity:0,mass:1}),f.isResolvedFromDuration=!0}return f}function spring(u){var{from:f=0,to:d=1,restSpeed:_=2,restDelta:x}=u,I=__rest$1(u,["from","to","restSpeed","restDelta"]);const E={done:!1,value:f};let{stiffness:M,damping:S,mass:A,velocity:T,duration:D,isResolvedFromDuration:O}=getSpringOptions(I),j=zero,$=zero;function W(){const Q=T?-(T/1e3):0,X=d-f,Y=S/(2*Math.sqrt(M*A)),ie=Math.sqrt(M/A)/1e3;if(x===void 0&&(x=Math.min(Math.abs(d-f)/100,.4)),Y<1){const oe=calcAngularFreq(ie,Y);j=ge=>{const be=Math.exp(-Y*ie*ge);return d-be*((Q+Y*ie*X)/oe*Math.sin(oe*ge)+X*Math.cos(oe*ge))},$=ge=>{const be=Math.exp(-Y*ie*ge);return Y*ie*be*(Math.sin(oe*ge)*(Q+Y*ie*X)/oe+X*Math.cos(oe*ge))-be*(Math.cos(oe*ge)*(Q+Y*ie*X)-oe*X*Math.sin(oe*ge))}}else if(Y===1)j=oe=>d-Math.exp(-ie*oe)*(X+(Q+ie*X)*oe);else{const oe=ie*Math.sqrt(Y*Y-1);j=ge=>{const be=Math.exp(-Y*ie*ge),ze=Math.min(oe*ge,300);return d-be*((Q+Y*ie*X)*Math.sinh(ze)+oe*X*Math.cosh(ze))/oe}}}return W(),{next:Q=>{const X=j(Q);if(O)E.done=Q>=D;else{const Y=$(Q)*1e3,ie=Math.abs(Y)<=_,oe=Math.abs(d-X)<=x;E.done=ie&&oe}return E.value=E.done?d:X,E},flipTarget:()=>{T=-T,[f,d]=[d,f],W()}}}spring.needsInterpolation=(u,f)=>typeof u=="string"||typeof f=="string";const zero=u=>0,progress=(u,f,d)=>{const _=f-u;return _===0?1:(d-u)/_},mix=(u,f,d)=>-d*u+d*f+u,clamp$1=(u,f)=>d=>Math.max(Math.min(d,f),u),sanitize$1=u=>u%1?Number(u.toFixed(5)):u,floatRegex$1=/(-)?([\d]*\.?[\d])+/g,colorRegex$1=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,singleColorRegex$1=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function isString$4(u){return typeof u=="string"}const number$3={test:u=>typeof u=="number",parse:parseFloat,transform:u=>u},alpha$1=Object.assign(Object.assign({},number$3),{transform:clamp$1(0,1)}),scale=Object.assign(Object.assign({},number$3),{default:1}),createUnitType$1=u=>({test:f=>isString$4(f)&&f.endsWith(u)&&f.split(" ").length===1,parse:parseFloat,transform:f=>`${f}${u}`}),degrees=createUnitType$1("deg"),percent$1=createUnitType$1("%"),px$1=createUnitType$1("px"),progressPercentage=Object.assign(Object.assign({},percent$1),{parse:u=>percent$1.parse(u)/100,transform:u=>percent$1.transform(u*100)}),isColorString$1=(u,f)=>d=>!!(isString$4(d)&&singleColorRegex$1.test(d)&&d.startsWith(u)||f&&Object.prototype.hasOwnProperty.call(d,f)),splitColor$1=(u,f,d)=>_=>{if(!isString$4(_))return _;const[x,I,E,M]=_.match(floatRegex$1);return{[u]:parseFloat(x),[f]:parseFloat(I),[d]:parseFloat(E),alpha:M!==void 0?parseFloat(M):1}},hsla$1={test:isColorString$1("hsl","hue"),parse:splitColor$1("hue","saturation","lightness"),transform:({hue:u,saturation:f,lightness:d,alpha:_=1})=>"hsla("+Math.round(u)+", "+percent$1.transform(sanitize$1(f))+", "+percent$1.transform(sanitize$1(d))+", "+sanitize$1(alpha$1.transform(_))+")"},clampRgbUnit$1=clamp$1(0,255),rgbUnit$1=Object.assign(Object.assign({},number$3),{transform:u=>Math.round(clampRgbUnit$1(u))}),rgba$1={test:isColorString$1("rgb","red"),parse:splitColor$1("red","green","blue"),transform:({red:u,green:f,blue:d,alpha:_=1})=>"rgba("+rgbUnit$1.transform(u)+", "+rgbUnit$1.transform(f)+", "+rgbUnit$1.transform(d)+", "+sanitize$1(alpha$1.transform(_))+")"};function parseHex$1(u){let f="",d="",_="",x="";return u.length>5?(f=u.substr(1,2),d=u.substr(3,2),_=u.substr(5,2),x=u.substr(7,2)):(f=u.substr(1,1),d=u.substr(2,1),_=u.substr(3,1),x=u.substr(4,1),f+=f,d+=d,_+=_,x+=x),{red:parseInt(f,16),green:parseInt(d,16),blue:parseInt(_,16),alpha:x?parseInt(x,16)/255:1}}const hex$1={test:isColorString$1("#"),parse:parseHex$1,transform:rgba$1.transform},color$1={test:u=>rgba$1.test(u)||hex$1.test(u)||hsla$1.test(u),parse:u=>rgba$1.test(u)?rgba$1.parse(u):hsla$1.test(u)?hsla$1.parse(u):hex$1.parse(u),transform:u=>isString$4(u)?u:u.hasOwnProperty("red")?rgba$1.transform(u):hsla$1.transform(u)},colorToken$1="${c}",numberToken$1="${n}";function test$2(u){var f,d,_,x;return isNaN(u)&&isString$4(u)&&((d=(f=u.match(floatRegex$1))===null||f===void 0?void 0:f.length)!==null&&d!==void 0?d:0)+((x=(_=u.match(colorRegex$1))===null||_===void 0?void 0:_.length)!==null&&x!==void 0?x:0)>0}function analyse$2(u){typeof u=="number"&&(u=`${u}`);const f=[];let d=0;const _=u.match(colorRegex$1);_&&(d=_.length,u=u.replace(colorRegex$1,colorToken$1),f.push(..._.map(color$1.parse)));const x=u.match(floatRegex$1);return x&&(u=u.replace(floatRegex$1,numberToken$1),f.push(...x.map(number$3.parse))),{values:f,numColors:d,tokenised:u}}function parse$3(u){return analyse$2(u).values}function createTransformer$3(u){const{values:f,numColors:d,tokenised:_}=analyse$2(u),x=f.length;return I=>{let E=_;for(let M=0;M<x;M++)E=E.replace(M<d?colorToken$1:numberToken$1,M<d?color$1.transform(I[M]):sanitize$1(I[M]));return E}}const convertNumbersToZero$1=u=>typeof u=="number"?0:u;function getAnimatableNone$2(u){const f=parse$3(u);return createTransformer$3(u)(f.map(convertNumbersToZero$1))}const complex$1={test:test$2,parse:parse$3,createTransformer:createTransformer$3,getAnimatableNone:getAnimatableNone$2},maxDefaults$1=new Set(["brightness","contrast","saturate","opacity"]);function applyDefaultFilter$1(u){let[f,d]=u.slice(0,-1).split("(");if(f==="drop-shadow")return u;const[_]=d.match(floatRegex$1)||[];if(!_)return u;const x=d.replace(_,"");let I=maxDefaults$1.has(f)?1:0;return _!==d&&(I*=100),f+"("+I+x+")"}const functionRegex$1=/([a-z-]*)\(.*?\)/g,filter=Object.assign(Object.assign({},complex$1),{getAnimatableNone:u=>{const f=u.match(functionRegex$1);return f?f.map(applyDefaultFilter$1).join(" "):u}});function hueToRgb(u,f,d){return d<0&&(d+=1),d>1&&(d-=1),d<1/6?u+(f-u)*6*d:d<1/2?f:d<2/3?u+(f-u)*(2/3-d)*6:u}function hslaToRgba({hue:u,saturation:f,lightness:d,alpha:_}){u/=360,f/=100,d/=100;let x=0,I=0,E=0;if(!f)x=I=E=d;else{const M=d<.5?d*(1+f):d+f-d*f,S=2*d-M;x=hueToRgb(S,M,u+1/3),I=hueToRgb(S,M,u),E=hueToRgb(S,M,u-1/3)}return{red:Math.round(x*255),green:Math.round(I*255),blue:Math.round(E*255),alpha:_}}const mixLinearColor=(u,f,d)=>{const _=u*u,x=f*f;return Math.sqrt(Math.max(0,d*(x-_)+_))},colorTypes=[hex$1,rgba$1,hsla$1],getColorType=u=>colorTypes.find(f=>f.test(u)),mixColor=(u,f)=>{let d=getColorType(u),_=getColorType(f),x=d.parse(u),I=_.parse(f);d===hsla$1&&(x=hslaToRgba(x),d=rgba$1),_===hsla$1&&(I=hslaToRgba(I),_=rgba$1);const E=Object.assign({},x);return M=>{for(const S in E)S!=="alpha"&&(E[S]=mixLinearColor(x[S],I[S],M));return E.alpha=mix(x.alpha,I.alpha,M),d.transform(E)}},isNum=u=>typeof u=="number",combineFunctions=(u,f)=>d=>f(u(d)),pipe$1=(...u)=>u.reduce(combineFunctions);function getMixer(u,f){return isNum(u)?d=>mix(u,f,d):color$1.test(u)?mixColor(u,f):mixComplex(u,f)}const mixArray=(u,f)=>{const d=[...u],_=d.length,x=u.map((I,E)=>getMixer(I,f[E]));return I=>{for(let E=0;E<_;E++)d[E]=x[E](I);return d}},mixObject=(u,f)=>{const d=Object.assign(Object.assign({},u),f),_={};for(const x in d)u[x]!==void 0&&f[x]!==void 0&&(_[x]=getMixer(u[x],f[x]));return x=>{for(const I in _)d[I]=_[I](x);return d}};function analyse(u){const f=complex$1.parse(u),d=f.length;let _=0,x=0,I=0;for(let E=0;E<d;E++)_||typeof f[E]=="number"?_++:f[E].hue!==void 0?I++:x++;return{parsed:f,numNumbers:_,numRGB:x,numHSL:I}}const mixComplex=(u,f)=>{const d=complex$1.createTransformer(f),_=analyse(u),x=analyse(f);return _.numHSL===x.numHSL&&_.numRGB===x.numRGB&&_.numNumbers>=x.numNumbers?pipe$1(mixArray(_.parsed,x.parsed),d):E=>`${E>0?f:u}`},mixNumber=(u,f)=>d=>mix(u,f,d);function detectMixerFactory(u){if(typeof u=="number")return mixNumber;if(typeof u=="string")return color$1.test(u)?mixColor:mixComplex;if(Array.isArray(u))return mixArray;if(typeof u=="object")return mixObject}function createMixers(u,f,d){const _=[],x=d||detectMixerFactory(u[0]),I=u.length-1;for(let E=0;E<I;E++){let M=x(u[E],u[E+1]);if(f){const S=Array.isArray(f)?f[E]:f;M=pipe$1(S,M)}_.push(M)}return _}function fastInterpolate([u,f],[d]){return _=>d(progress(u,f,_))}function slowInterpolate(u,f){const d=u.length,_=d-1;return x=>{let I=0,E=!1;if(x<=u[0]?E=!0:x>=u[_]&&(I=_-1,E=!0),!E){let S=1;for(;S<d&&!(u[S]>x||S===_);S++);I=S-1}const M=progress(u[I],u[I+1],x);return f[I](M)}}function interpolate(u,f,{clamp:d=!0,ease:_,mixer:x}={}){const I=u.length;invariant(I===f.length),invariant(!_||!Array.isArray(_)||_.length===I-1),u[0]>u[I-1]&&(u=[].concat(u),f=[].concat(f),u.reverse(),f.reverse());const E=createMixers(f,_,x),M=I===2?fastInterpolate(u,E):slowInterpolate(u,E);return d?S=>M(clamp$2(u[0],u[I-1],S)):M}const reverseEasing=u=>f=>1-u(1-f),mirrorEasing=u=>f=>f<=.5?u(2*f)/2:(2-u(2*(1-f)))/2,createExpoIn=u=>f=>Math.pow(f,u),createBackIn=u=>f=>f*f*((u+1)*f-u),createAnticipate=u=>{const f=createBackIn(u);return d=>(d*=2)<1?.5*f(d):.5*(2-Math.pow(2,-10*(d-1)))},DEFAULT_OVERSHOOT_STRENGTH=1.525,BOUNCE_FIRST_THRESHOLD=4/11,BOUNCE_SECOND_THRESHOLD=8/11,BOUNCE_THIRD_THRESHOLD=9/10,linear=u=>u,easeIn=createExpoIn(2),easeOut=reverseEasing(easeIn),easeInOut=mirrorEasing(easeIn),circIn=u=>1-Math.sin(Math.acos(u)),circOut=reverseEasing(circIn),circInOut=mirrorEasing(circOut),backIn=createBackIn(DEFAULT_OVERSHOOT_STRENGTH),backOut=reverseEasing(backIn),backInOut=mirrorEasing(backIn),anticipate=createAnticipate(DEFAULT_OVERSHOOT_STRENGTH),ca$1=4356/361,cb$1=35442/1805,cc$1=16061/1805,bounceOut=u=>{if(u===1||u===0)return u;const f=u*u;return u<BOUNCE_FIRST_THRESHOLD?7.5625*f:u<BOUNCE_SECOND_THRESHOLD?9.075*f-9.9*u+3.4:u<BOUNCE_THIRD_THRESHOLD?ca$1*f-cb$1*u+cc$1:10.8*u*u-20.52*u+10.72},bounceIn=reverseEasing(bounceOut),bounceInOut=u=>u<.5?.5*(1-bounceOut(1-u*2)):.5*bounceOut(u*2-1)+.5;function defaultEasing(u,f){return u.map(()=>f||easeInOut).splice(0,u.length-1)}function defaultOffset(u){const f=u.length;return u.map((d,_)=>_!==0?_/(f-1):0)}function convertOffsetToTimes(u,f){return u.map(d=>d*f)}function keyframes$1({from:u=0,to:f=1,ease:d,offset:_,duration:x=300}){const I={done:!1,value:u},E=Array.isArray(f)?f:[u,f],M=convertOffsetToTimes(_&&_.length===E.length?_:defaultOffset(E),x);function S(){return interpolate(M,E,{ease:Array.isArray(d)?d:defaultEasing(E,d)})}let A=S();return{next:T=>(I.value=A(T),I.done=T>=x,I),flipTarget:()=>{E.reverse(),A=S()}}}function decay({velocity:u=0,from:f=0,power:d=.8,timeConstant:_=350,restDelta:x=.5,modifyTarget:I}){const E={done:!1,value:f};let M=d*u;const S=f+M,A=I===void 0?S:I(S);return A!==S&&(M=A-f),{next:T=>{const D=-M*Math.exp(-T/_);return E.done=!(D>x||D<-x),E.value=E.done?A:A+D,E},flipTarget:()=>{}}}const types$1={keyframes:keyframes$1,spring,decay};function detectAnimationFromOptions(u){if(Array.isArray(u.to))return keyframes$1;if(types$1[u.type])return types$1[u.type];const f=new Set(Object.keys(u));return f.has("ease")||f.has("duration")&&!f.has("dampingRatio")?keyframes$1:f.has("dampingRatio")||f.has("stiffness")||f.has("mass")||f.has("damping")||f.has("restSpeed")||f.has("restDelta")?spring:keyframes$1}function loopElapsed(u,f,d=0){return u-f-d}function reverseElapsed(u,f,d=0,_=!0){return _?loopElapsed(f+-u,f,d):f-(u-f)+d}function hasRepeatDelayElapsed(u,f,d,_){return _?u>=f+d:u<=-d}const framesync=u=>{const f=({delta:d})=>u(d);return{start:()=>sync.update(f,!0),stop:()=>cancelSync.update(f)}};function animate(u){var f,d,{from:_,autoplay:x=!0,driver:I=framesync,elapsed:E=0,repeat:M=0,repeatType:S="loop",repeatDelay:A=0,onPlay:T,onStop:D,onComplete:O,onRepeat:j,onUpdate:$}=u,W=__rest$1(u,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:Q}=W,X,Y=0,ie=W.duration,oe,ge=!1,be=!0,ze;const de=detectAnimationFromOptions(W);!((d=(f=de).needsInterpolation)===null||d===void 0)&&d.call(f,_,Q)&&(ze=interpolate([0,100],[_,Q],{clamp:!1}),_=0,Q=100);const Ce=de(Object.assign(Object.assign({},W),{from:_,to:Q}));function ke(){Y++,S==="reverse"?(be=Y%2===0,E=reverseElapsed(E,ie,A,be)):(E=loopElapsed(E,ie,A),S==="mirror"&&Ce.flipTarget()),ge=!1,j&&j()}function le(){X.stop(),O&&O()}function re(k){if(be||(k=-k),E+=k,!ge){const B=Ce.next(Math.max(0,E));oe=B.value,ze&&(oe=ze(oe)),ge=be?B.done:E<=0}$?.(oe),ge&&(Y===0&&(ie??(ie=E)),Y<M?hasRepeatDelayElapsed(E,ie,A,be)&&ke():le())}function P(){T?.(),X=I(re),X.start()}return x&&P(),{stop:()=>{D?.(),X.stop()}}}function velocityPerSecond(u,f){return f?u*(1e3/f):0}function inertia({from:u=0,velocity:f=0,min:d,max:_,power:x=.8,timeConstant:I=750,bounceStiffness:E=500,bounceDamping:M=10,restDelta:S=1,modifyTarget:A,driver:T,onUpdate:D,onComplete:O,onStop:j}){let $;function W(ie){return d!==void 0&&ie<d||_!==void 0&&ie>_}function Q(ie){return d===void 0?_:_===void 0||Math.abs(d-ie)<Math.abs(_-ie)?d:_}function X(ie){$?.stop(),$=animate(Object.assign(Object.assign({},ie),{driver:T,onUpdate:oe=>{var ge;D?.(oe),(ge=ie.onUpdate)===null||ge===void 0||ge.call(ie,oe)},onComplete:O,onStop:j}))}function Y(ie){X(Object.assign({type:"spring",stiffness:E,damping:M,restDelta:S},ie))}if(W(u))Y({from:u,velocity:f,to:Q(u)});else{let ie=x*f+u;typeof A<"u"&&(ie=A(ie));const oe=Q(ie),ge=oe===d?-1:1;let be,ze;const de=Ce=>{be=ze,ze=Ce,f=velocityPerSecond(Ce-be,getFrameData().delta),(ge===1&&Ce>oe||ge===-1&&Ce<oe)&&Y({from:Ce,to:oe,velocity:f})};X({type:"decay",from:u,velocity:f,timeConstant:I,power:x,restDelta:S,modifyTarget:A,onUpdate:W(ie)?de:void 0})}return{stop:()=>$?.stop()}}const a=(u,f)=>1-3*f+3*u,b=(u,f)=>3*f-6*u,c=u=>3*u,calcBezier=(u,f,d)=>((a(f,d)*u+b(f,d))*u+c(f))*u,getSlope=(u,f,d)=>3*a(f,d)*u*u+2*b(f,d)*u+c(f),subdivisionPrecision=1e-7,subdivisionMaxIterations=10;function binarySubdivide(u,f,d,_,x){let I,E,M=0;do E=f+(d-f)/2,I=calcBezier(E,_,x)-u,I>0?d=E:f=E;while(Math.abs(I)>subdivisionPrecision&&++M<subdivisionMaxIterations);return E}const newtonIterations=8,newtonMinSlope=.001;function newtonRaphsonIterate(u,f,d,_){for(let x=0;x<newtonIterations;++x){const I=getSlope(f,d,_);if(I===0)return f;const E=calcBezier(f,d,_)-u;f-=E/I}return f}const kSplineTableSize=11,kSampleStepSize=1/(kSplineTableSize-1);function cubicBezier(u,f,d,_){if(u===f&&d===_)return linear;const x=new Float32Array(kSplineTableSize);for(let E=0;E<kSplineTableSize;++E)x[E]=calcBezier(E*kSampleStepSize,u,d);function I(E){let M=0,S=1;const A=kSplineTableSize-1;for(;S!==A&&x[S]<=E;++S)M+=kSampleStepSize;--S;const T=(E-x[S])/(x[S+1]-x[S]),D=M+T*kSampleStepSize,O=getSlope(D,u,d);return O>=newtonMinSlope?newtonRaphsonIterate(E,D,u,d):O===0?D:binarySubdivide(E,M,M+kSampleStepSize,u,d)}return E=>E===0||E===1?E:calcBezier(I(E),f,_)}const motionState={};var __defProp$1$1=Object.defineProperty,__defNormalProp$1$1=(u,f,d)=>f in u?__defProp$1$1(u,f,{enumerable:!0,configurable:!0,writable:!0,value:d}):u[f]=d,__publicField$1=(u,f,d)=>(__defNormalProp$1$1(u,typeof f!="symbol"?f+"":f,d),d);class SubscriptionManager{constructor(){__publicField$1(this,"subscriptions",new Set)}add(f){return this.subscriptions.add(f),()=>this.subscriptions.delete(f)}notify(f,d,_){if(this.subscriptions.size)for(const x of this.subscriptions)x(f,d,_)}clear(){this.subscriptions.clear()}}var __defProp$4=Object.defineProperty,__defNormalProp$4=(u,f,d)=>f in u?__defProp$4(u,f,{enumerable:!0,configurable:!0,writable:!0,value:d}):u[f]=d,__publicField=(u,f,d)=>(__defNormalProp$4(u,typeof f!="symbol"?f+"":f,d),d);function isFloat(u){return!isNaN(parseFloat(u))}class MotionValue{constructor(f){__publicField(this,"current"),__publicField(this,"prev"),__publicField(this,"timeDelta",0),__publicField(this,"lastUpdated",0),__publicField(this,"updateSubscribers",new SubscriptionManager),__publicField(this,"stopAnimation"),__publicField(this,"canTrackVelocity",!1),__publicField(this,"updateAndNotify",d=>{this.prev=this.current,this.current=d;const{delta:_,timestamp:x}=getFrameData();this.lastUpdated!==x&&(this.timeDelta=_,this.lastUpdated=x),sync.postRender(this.scheduleVelocityCheck),this.updateSubscribers.notify(this.current)}),__publicField(this,"scheduleVelocityCheck",()=>sync.postRender(this.velocityCheck)),__publicField(this,"velocityCheck",({timestamp:d})=>{this.canTrackVelocity||(this.canTrackVelocity=isFloat(this.current)),d!==this.lastUpdated&&(this.prev=this.current)}),this.prev=this.current=f,this.canTrackVelocity=isFloat(this.current)}onChange(f){return this.updateSubscribers.add(f)}clearListeners(){this.updateSubscribers.clear()}set(f){this.updateAndNotify(f)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?velocityPerSecond(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(f){return this.stop(),new Promise(d=>{const{stop:_}=f(d);this.stopAnimation=_}).then(()=>this.clearAnimation())}stop(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.updateSubscribers.clear(),this.stop()}}function getMotionValue(u){return new MotionValue(u)}const{isArray:isArray$6}=Array;function useMotionValues(){const u=ref({}),f=_=>{const x=I=>{u.value[I]&&(u.value[I].stop(),u.value[I].destroy(),delete u.value[I])};_?isArray$6(_)?_.forEach(x):x(_):Object.keys(u.value).forEach(x)},d=(_,x,I)=>{if(u.value[_])return u.value[_];const E=getMotionValue(x);return E.onChange(M=>I[_]=M),u.value[_]=E,E};return tryOnUnmounted(f),{motionValues:u,get:d,stop:f}}function isKeyframesTarget(u){return Array.isArray(u)}function underDampedSpring(){return{type:"spring",stiffness:500,damping:25,restDelta:.5,restSpeed:10}}function criticallyDampedSpring(u){return{type:"spring",stiffness:550,damping:u===0?2*Math.sqrt(550):30,restDelta:.01,restSpeed:10}}function overDampedSpring(u){return{type:"spring",stiffness:550,damping:u===0?100:30,restDelta:.01,restSpeed:10}}function linearTween(){return{type:"keyframes",ease:"linear",duration:300}}function keyframes(u){return{type:"keyframes",duration:800,values:u}}const defaultTransitions={default:overDampedSpring,x:underDampedSpring,y:underDampedSpring,z:underDampedSpring,rotate:underDampedSpring,rotateX:underDampedSpring,rotateY:underDampedSpring,rotateZ:underDampedSpring,scaleX:criticallyDampedSpring,scaleY:criticallyDampedSpring,scale:criticallyDampedSpring,backgroundColor:linearTween,color:linearTween,opacity:linearTween};function getDefaultTransition(u,f){let d;return isKeyframesTarget(f)?d=keyframes:d=defaultTransitions[u]||defaultTransitions.default,{to:f,...d(f)}}const int={...number$3,transform:Math.round},valueTypes={color:color$1,backgroundColor:color$1,outlineColor:color$1,fill:color$1,stroke:color$1,borderColor:color$1,borderTopColor:color$1,borderRightColor:color$1,borderBottomColor:color$1,borderLeftColor:color$1,borderWidth:px$1,borderTopWidth:px$1,borderRightWidth:px$1,borderBottomWidth:px$1,borderLeftWidth:px$1,borderRadius:px$1,radius:px$1,borderTopLeftRadius:px$1,borderTopRightRadius:px$1,borderBottomRightRadius:px$1,borderBottomLeftRadius:px$1,width:px$1,maxWidth:px$1,height:px$1,maxHeight:px$1,size:px$1,top:px$1,right:px$1,bottom:px$1,left:px$1,padding:px$1,paddingTop:px$1,paddingRight:px$1,paddingBottom:px$1,paddingLeft:px$1,margin:px$1,marginTop:px$1,marginRight:px$1,marginBottom:px$1,marginLeft:px$1,rotate:degrees,rotateX:degrees,rotateY:degrees,rotateZ:degrees,scale,scaleX:scale,scaleY:scale,scaleZ:scale,skew:degrees,skewX:degrees,skewY:degrees,distance:px$1,translateX:px$1,translateY:px$1,translateZ:px$1,x:px$1,y:px$1,z:px$1,perspective:px$1,transformPerspective:px$1,opacity:alpha$1,originX:progressPercentage,originY:progressPercentage,originZ:px$1,zIndex:int,filter,WebkitFilter:filter,fillOpacity:alpha$1,strokeOpacity:alpha$1,numOctaves:int},getValueType=u=>valueTypes[u];function getValueAsType(u,f){return f&&typeof u=="number"&&f.transform?f.transform(u):u}function getAnimatableNone(u,f){let d=getValueType(u);return d!==filter&&(d=complex$1),d.getAnimatableNone?d.getAnimatableNone(f):void 0}const easingLookup={linear,easeIn,easeInOut,easeOut,circIn,circInOut,circOut,backIn,backInOut,backOut,anticipate,bounceIn,bounceInOut,bounceOut};function easingDefinitionToFunction(u){if(Array.isArray(u)){const[f,d,_,x]=u;return cubicBezier(f,d,_,x)}else if(typeof u=="string")return easingLookup[u];return u}function isEasingArray(u){return Array.isArray(u)&&typeof u[0]!="number"}function isAnimatable(u,f){return u==="zIndex"?!1:!!(typeof f=="number"||Array.isArray(f)||typeof f=="string"&&complex$1.test(f)&&!f.startsWith("url("))}function hydrateKeyframes(u){return Array.isArray(u.to)&&u.to[0]===null&&(u.to=[...u.to],u.to[0]=u.from),u}function convertTransitionToAnimationOptions({ease:u,times:f,delay:d,..._}){const x={..._};return f&&(x.offset=f),u&&(x.ease=isEasingArray(u)?u.map(easingDefinitionToFunction):easingDefinitionToFunction(u)),d&&(x.elapsed=-d),x}function getPopmotionAnimationOptions(u,f,d){return Array.isArray(f.to)&&(u.duration||(u.duration=800)),hydrateKeyframes(f),isTransitionDefined(u)||(u={...u,...getDefaultTransition(d,f.to)}),{...f,...convertTransitionToAnimationOptions(u)}}function isTransitionDefined({delay:u,repeat:f,repeatType:d,repeatDelay:_,from:x,...I}){return!!Object.keys(I).length}function getValueTransition(u,f){return u[f]||u.default||u}function getAnimation(u,f,d,_,x){const I=getValueTransition(_,u);let E=I.from===null||I.from===void 0?f.get():I.from;const M=isAnimatable(u,d);E==="none"&&M&&typeof d=="string"&&(E=getAnimatableNone(u,d));const S=isAnimatable(u,E);function A(D){const O={from:E,to:d,velocity:_.velocity?_.velocity:f.getVelocity(),onUpdate:j=>f.set(j)};return I.type==="inertia"||I.type==="decay"?inertia({...O,...I}):animate({...getPopmotionAnimationOptions(I,O,u),onUpdate:j=>{O.onUpdate(j),I.onUpdate&&I.onUpdate(j)},onComplete:()=>{_.onComplete&&_.onComplete(),x&&x(),D&&D()}})}function T(D){return f.set(d),_.onComplete&&_.onComplete(),x&&x(),D&&D(),{stop:()=>{}}}return!S||!M||I.type===!1?T:A}function useMotionTransitions(){const{motionValues:u,stop:f,get:d}=useMotionValues();return{motionValues:u,stop:f,push:(x,I,E,M={},S)=>{const A=E[x],T=d(x,A,E);if(M&&M.immediate){T.set(I);return}const D=getAnimation(x,T,I,M,S);T.start(D)}}}function useMotionControls(u,f={},{motionValues:d,push:_,stop:x}=useMotionTransitions()){const I=unref(f),E=ref(!1);watch(d,D=>{E.value=Object.values(D).filter(O=>O.isAnimating()).length>0},{immediate:!0,deep:!0});const M=D=>{if(!I||!I[D])throw new Error(`The variant ${D} does not exist.`);return I[D]},S=D=>(typeof D=="string"&&(D=M(D)),Promise.all(Object.entries(D).map(([O,j])=>{if(O!=="transition")return new Promise($=>_(O,j,u,D.transition||getDefaultTransition(O,D[O]),$))}).filter(Boolean)));return{isAnimating:E,apply:S,set:D=>{const O=isObject$8(D)?D:M(D);Object.entries(O).forEach(([j,$])=>{j!=="transition"&&_(j,$,u,{immediate:!0})})},leave:async D=>{let O;if(I&&(I.leave&&(O=I.leave),!I.leave&&I.initial&&(O=I.initial)),!O){D();return}await S(O),D()},stop:x}}const isBrowser$2=typeof window<"u",supportsPointerEvents=()=>isBrowser$2&&window.onpointerdown===null,supportsTouchEvents=()=>isBrowser$2&&window.ontouchstart===null,supportsMouseEvents=()=>isBrowser$2&&window.onmousedown===null;function registerEventListeners({target:u,state:f,variants:d,apply:_}){const x=unref(d),I=ref(!1),E=ref(!1),M=ref(!1),S=computed(()=>{let T=[];return x&&(x.hovered&&(T=[...T,...Object.keys(x.hovered)]),x.tapped&&(T=[...T,...Object.keys(x.tapped)]),x.focused&&(T=[...T,...Object.keys(x.focused)])),T}),A=computed(()=>{const T={};Object.assign(T,f.value),I.value&&x.hovered&&Object.assign(T,x.hovered),E.value&&x.tapped&&Object.assign(T,x.tapped),M.value&&x.focused&&Object.assign(T,x.focused);for(const D in T)S.value.includes(D)||delete T[D];return T});x.hovered&&(useEventListener$2(u,"mouseenter",()=>I.value=!0),useEventListener$2(u,"mouseleave",()=>{I.value=!1,E.value=!1}),useEventListener$2(u,"mouseout",()=>{I.value=!1,E.value=!1})),x.tapped&&(supportsMouseEvents()&&(useEventListener$2(u,"mousedown",()=>E.value=!0),useEventListener$2(u,"mouseup",()=>E.value=!1)),supportsPointerEvents()&&(useEventListener$2(u,"pointerdown",()=>E.value=!0),useEventListener$2(u,"pointerup",()=>E.value=!1)),supportsTouchEvents()&&(useEventListener$2(u,"touchstart",()=>E.value=!0),useEventListener$2(u,"touchend",()=>E.value=!1))),x.focused&&(useEventListener$2(u,"focus",()=>M.value=!0),useEventListener$2(u,"blur",()=>M.value=!1)),watch(A,_)}function registerLifeCycleHooks({set:u,target:f,variants:d,variant:_}){const x=unref(d);watch(()=>f,()=>{x&&(x.initial&&u("initial"),x.enter&&(_.value="enter"))},{immediate:!0,flush:"pre"})}function registerVariantsSync({state:u,apply:f}){watch(u,d=>{d&&f(d)},{immediate:!0})}function registerVisibilityHooks({target:u,variants:f,variant:d}){const _=unref(f);_&&(_.visible||_.visibleOnce)&&useIntersectionObserver$1(u,([{isIntersecting:x}])=>{_.visible?x?d.value="visible":d.value="initial":_.visibleOnce&&(x&&d.value!=="visibleOnce"?d.value="visibleOnce":d.value||(d.value="initial"))})}function useMotionFeatures(u,f={syncVariants:!0,lifeCycleHooks:!0,visibilityHooks:!0,eventListeners:!0}){f.lifeCycleHooks&&registerLifeCycleHooks(u),f.syncVariants&&registerVariantsSync(u),f.visibilityHooks&&registerVisibilityHooks(u),f.eventListeners&&registerEventListeners(u)}function reactiveStyle(u={}){const f=reactive({...u}),d=ref({});return watch(f,()=>{const _={};for(const[x,I]of Object.entries(f)){const E=getValueType(x),M=getValueAsType(I,E);_[x]=M}d.value=_},{immediate:!0,deep:!0}),{state:f,style:d}}function usePermissiveTarget(u,f){watch(()=>unrefElement$2(u),d=>{d&&f(d)},{immediate:!0})}const translateAlias={x:"translateX",y:"translateY",z:"translateZ"};function reactiveTransform(u={},f=!0){const d=reactive({...u}),_=ref("");return watch(d,x=>{let I="",E=!1;if(f&&(x.x||x.y||x.z)){const M=[x.x||0,x.y||0,x.z||0].map(px$1.transform).join(",");I+=`translate3d(${M}) `,E=!0}for(const[M,S]of Object.entries(x)){if(f&&(M==="x"||M==="y"||M==="z"))continue;const A=getValueType(M),T=getValueAsType(S,A);I+=`${translateAlias[M]||M}(${T}) `}f&&!E&&(I+="translateZ(0px) "),_.value=I.trim()},{immediate:!0,deep:!0}),{state:d,transform:_}}const transformAxes$1=["","X","Y","Z"],order$2=["perspective","translate","scale","rotate","skew"],transformProps$1=["transformPerspective","x","y","z"];order$2.forEach(u=>{transformAxes$1.forEach(f=>{const d=u+f;transformProps$1.push(d)})});const transformPropSet=new Set(transformProps$1);function isTransformProp(u){return transformPropSet.has(u)}const transformOriginProps=new Set(["originX","originY","originZ"]);function isTransformOriginProp(u){return transformOriginProps.has(u)}function splitValues(u){const f={},d={};return Object.entries(u).forEach(([_,x])=>{isTransformProp(_)||isTransformOriginProp(_)?f[_]=x:d[_]=x}),{transform:f,style:d}}function variantToStyle(u){const{transform:f,style:d}=splitValues(u),{transform:_}=reactiveTransform(f),{style:x}=reactiveStyle(d);return _.value&&(x.value.transform=_.value),x.value}function useElementStyle(u,f){let d,_;const{state:x,style:I}=reactiveStyle();return usePermissiveTarget(u,E=>{_=E;for(const M of Object.keys(valueTypes))E.style[M]===null||E.style[M]===""||isTransformProp(M)||isTransformOriginProp(M)||(x[M]=E.style[M]);d&&Object.entries(d).forEach(([M,S])=>E.style[M]=S),f&&f(x)}),watch(I,E=>{if(!_){d=E;return}for(const M in E)_.style[M]=E[M]},{immediate:!0}),{style:x}}function parseTransform(u){const f=u.trim().split(/\) |\)/);if(f.length===1)return{};const d=_=>_.endsWith("px")||_.endsWith("deg")?parseFloat(_):isNaN(Number(_))?Number(_):_;return f.reduce((_,x)=>{if(!x)return _;const[I,E]=x.split("("),S=E.split(",").map(T=>d(T.endsWith(")")?T.replace(")",""):T.trim())),A=S.length===1?S[0]:S;return{..._,[I]:A}},{})}function stateFromTransform(u,f){Object.entries(parseTransform(f)).forEach(([d,_])=>{const x=["x","y","z"];if(d==="translate3d"){if(_===0){x.forEach(I=>u[I]=0);return}_.forEach((I,E)=>u[x[E]]=I);return}if(_=parseFloat(_),d==="translateX"){u.x=_;return}if(d==="translateY"){u.y=_;return}if(d==="translateZ"){u.z=_;return}u[d]=_})}function useElementTransform(u,f){let d,_;const{state:x,transform:I}=reactiveTransform();return usePermissiveTarget(u,E=>{_=E,E.style.transform&&stateFromTransform(x,E.style.transform),d&&(E.style.transform=d),f&&f(x)}),watch(I,E=>{if(!_){d=E;return}_.style.transform=E},{immediate:!0}),{transform:x}}function useMotionProperties(u,f){const d=reactive({}),_=E=>Object.entries(E).forEach(([M,S])=>d[M]=S),{style:x}=useElementStyle(u,_),{transform:I}=useElementTransform(u,_);return watch(d,E=>{Object.entries(E).forEach(([M,S])=>{const A=isTransformProp(M)?I:x;A[M]&&A[M]===S||(A[M]=S)})},{immediate:!0,deep:!0}),usePermissiveTarget(u,()=>f&&_(f)),{motionProperties:d,style:x,transform:I}}function useMotionVariants(u={}){const f=unref(u),d=ref();return{state:computed(()=>{if(d.value)return f[d.value]}),variant:d}}function useMotion(u,f={},d){const{motionProperties:_}=useMotionProperties(u),{variant:x,state:I}=useMotionVariants(f),E=useMotionControls(_,f),M={target:u,variant:x,variants:f,state:I,motionProperties:_,...E};return useMotionFeatures(M,d),M}const directivePropsKeys=["initial","enter","leave","visible","visible-once","visibleOnce","hovered","tapped","focused","delay"];function resolveVariants(u,f){const d=u.props?u.props:u.data&&u.data.attrs?u.data.attrs:{};d&&(d.variants&&isObject$8(d.variants)&&(f.value={...f.value,...d.variants}),directivePropsKeys.forEach(_=>{if(_==="delay"){if(d&&d[_]&&typeof d[_]=="number"){const x=d[_];f&&f.value&&(f.value.enter&&(f.value.enter.transition||(f.value.enter.transition={}),f.value.enter.transition={delay:x,...f.value.enter.transition}),f.value.visible&&(f.value.visible.transition||(f.value.visible.transition={}),f.value.visible.transition={delay:x,...f.value.visible.transition}),f.value.visibleOnce&&(f.value.visibleOnce.transition||(f.value.visibleOnce.transition={}),f.value.visibleOnce.transition={delay:x,...f.value.visibleOnce.transition}))}return}if(d&&d[_]&&isObject$8(d[_])){const x=d[_];_==="visible-once"&&(_="visibleOnce"),f.value[_]=x}}))}function directive(u){return{created:(_,x,I)=>{const E=x.value&&typeof x.value=="string"?x.value:I.key;E&&motionState[E]&&motionState[E].stop();const M=ref(u||{});typeof x.value=="object"&&(M.value=x.value),resolveVariants(I,M);const A=useMotion(_,M,{eventListeners:!0,lifeCycleHooks:!0,syncVariants:!0,visibilityHooks:!1});_.motionInstance=A,E&&(motionState[E]=A)},mounted:(_,x,I)=>{_.motionInstance&&registerVisibilityHooks(_.motionInstance)},getSSRProps(_,x){let{initial:I}=_.value||x&&x?.props||{};I=unref(I);const E=defu(u?.initial||{},I||{});return!E||Object.keys(E).length===0?void 0:{style:variantToStyle(E)}}}}const fade={initial:{opacity:0},enter:{opacity:1}},fadeVisible={initial:{opacity:0},visible:{opacity:1}},fadeVisibleOnce={initial:{opacity:0},visibleOnce:{opacity:1}},pop={initial:{scale:0,opacity:0},enter:{scale:1,opacity:1}},popVisible={initial:{scale:0,opacity:0},visible:{scale:1,opacity:1}},popVisibleOnce={initial:{scale:0,opacity:0},visibleOnce:{scale:1,opacity:1}},rollLeft={initial:{x:-100,rotate:90,opacity:0},enter:{x:0,rotate:0,opacity:1}},rollVisibleLeft={initial:{x:-100,rotate:90,opacity:0},visible:{x:0,rotate:0,opacity:1}},rollVisibleOnceLeft={initial:{x:-100,rotate:90,opacity:0},visibleOnce:{x:0,rotate:0,opacity:1}},rollRight={initial:{x:100,rotate:-90,opacity:0},enter:{x:0,rotate:0,opacity:1}},rollVisibleRight={initial:{x:100,rotate:-90,opacity:0},visible:{x:0,rotate:0,opacity:1}},rollVisibleOnceRight={initial:{x:100,rotate:-90,opacity:0},visibleOnce:{x:0,rotate:0,opacity:1}},rollTop={initial:{y:-100,rotate:-90,opacity:0},enter:{y:0,rotate:0,opacity:1}},rollVisibleTop={initial:{y:-100,rotate:-90,opacity:0},visible:{y:0,rotate:0,opacity:1}},rollVisibleOnceTop={initial:{y:-100,rotate:-90,opacity:0},visibleOnce:{y:0,rotate:0,opacity:1}},rollBottom={initial:{y:100,rotate:90,opacity:0},enter:{y:0,rotate:0,opacity:1}},rollVisibleBottom={initial:{y:100,rotate:90,opacity:0},visible:{y:0,rotate:0,opacity:1}},rollVisibleOnceBottom={initial:{y:100,rotate:90,opacity:0},visibleOnce:{y:0,rotate:0,opacity:1}},slideLeft={initial:{x:-100,opacity:0},enter:{x:0,opacity:1}},slideVisibleLeft={initial:{x:-100,opacity:0},visible:{x:0,opacity:1}},slideVisibleOnceLeft={initial:{x:-100,opacity:0},visibleOnce:{x:0,opacity:1}},slideRight={initial:{x:100,opacity:0},enter:{x:0,opacity:1}},slideVisibleRight={initial:{x:100,opacity:0},visible:{x:0,opacity:1}},slideVisibleOnceRight={initial:{x:100,opacity:0},visibleOnce:{x:0,opacity:1}},slideTop={initial:{y:-100,opacity:0},enter:{y:0,opacity:1}},slideVisibleTop={initial:{y:-100,opacity:0},visible:{y:0,opacity:1}},slideVisibleOnceTop={initial:{y:-100,opacity:0},visibleOnce:{y:0,opacity:1}},slideBottom={initial:{y:100,opacity:0},enter:{y:0,opacity:1}},slideVisibleBottom={initial:{y:100,opacity:0},visible:{y:0,opacity:1}},slideVisibleOnceBottom={initial:{y:100,opacity:0},visibleOnce:{y:0,opacity:1}},presets={__proto__:null,fade,fadeVisible,fadeVisibleOnce,pop,popVisible,popVisibleOnce,rollBottom,rollLeft,rollRight,rollTop,rollVisibleBottom,rollVisibleLeft,rollVisibleOnceBottom,rollVisibleOnceLeft,rollVisibleOnceRight,rollVisibleOnceTop,rollVisibleRight,rollVisibleTop,slideBottom,slideLeft,slideRight,slideTop,slideVisibleBottom,slideVisibleLeft,slideVisibleOnceBottom,slideVisibleOnceLeft,slideVisibleOnceRight,slideVisibleOnceTop,slideVisibleRight,slideVisibleTop},component=defineComponent({props:{is:{type:[String,Object],required:!1},preset:{type:String,required:!1},instance:{type:Object,required:!1},variants:{type:Object,required:!1},initial:{type:Object,required:!1},enter:{type:Object,required:!1},leave:{type:Object,required:!1},visible:{type:Object,required:!1},visibleOnce:{type:Object,required:!1},hovered:{type:Object,required:!1},tapped:{type:Object,required:!1},focused:{type:Object,required:!1},delay:{type:[Number,String],required:!1}},setup(u){const f=useSlots(),d=reactive({});if(!u.is&&!f.default)return()=>h$1("div",{});const _=computed(()=>{let M;return u.preset&&(M=presets[u.preset]),M}),x=computed(()=>({initial:u.initial,enter:u.enter,leave:u.leave,visible:u.visible,visibleOnce:u.visibleOnce,hovered:u.hovered,tapped:u.tapped,focused:u.focused})),I=computed(()=>{const M={...x.value,..._.value||{},...u.variants||{}};return u.delay&&(M.enter.transition={...M.enter.transition},M.enter.transition.delay=parseInt(u.delay)),M}),E=computed(()=>{if(!u.is)return;let M=u.is;return typeof E.value=="string"&&!isHTMLTag(M)&&(M=resolveComponent(M)),M});if(browserExports?.env?.NODE_ENV==="development"||browserExports?.dev){const M=S=>{S.variants?.initial&&S.set("initial"),setTimeout(()=>{S.variants?.enter&&S.apply("enter"),S.variants?.visible&&S.apply("visible"),S.variants?.visibleOnce&&S.apply("visibleOnce")},10)};onUpdated(()=>Object.entries(d).forEach(([S,A])=>M(A)))}return{slots:f,component:E,motionConfig:I,instances:d}},render({slots:u,motionConfig:f,instances:d,component:_}){const x=variantToStyle(f.initial||{}),I=(M,S)=>(M.props||(M.props={}),M.props.style=x,M.props.onVnodeMounted=({el:A})=>{const T=useMotion(A,f);d[S]=T},M);if(_){const M=h$1(_,void 0,u);return I(M,0),M}return(u.default?.()||[]).map((M,S)=>I(M,S))}});function slugify(u){const f="àáâäæãåāăąçćčđďèéêëēėęěğǵḧîïíīįìłḿñńǹňôöòóœøōõőṕŕřßśšşșťțûüùúūǘůűųẃẍÿýžźż·/_,:;",d="aaaaaaaaaacccddeeeeeeeegghiiiiiilmnnnnoooooooooprrsssssttuuuuuuuuuwxyyzzz------",_=new RegExp(f.split("").join("|"),"g");return u.toString().replace(/[A-Z]/g,x=>`-${x}`).toLowerCase().replace(/\s+/g,"-").replace(_,x=>d.charAt(f.indexOf(x))).replace(/&/g,"-and-").replace(/[^\w\-]+/g,"").replace(/\-\-+/g,"-").replace(/^-+/,"").replace(/-+$/,"")}const MotionPlugin={install(u,f){if(u.directive("motion",directive()),u.component("Motion",component),!f||f&&!f.excludePresets)for(const d in presets){const _=presets[d];u.directive(`motion-${slugify(d)}`,directive(_))}if(f&&f.directives)for(const d in f.directives){const _=f.directives[d];!_.initial&&__DEV__&&console.warn(`Your directive v-motion-${d} is missing initial variant!`),u.directive(`motion-${d}`,directive(_))}}};function useMotions(){return motionState}var isNumeric$1=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,mathceil$1=Math.ceil,mathfloor$1=Math.floor,bignumberError$1="[BigNumber Error] ",tooManyDigits$1=bignumberError$1+"Number primitive has more than 15 significant digits: ",BASE$1=1e14,LOG_BASE$1=14,MAX_SAFE_INTEGER$3=9007199254740991,POWS_TEN$1=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],SQRT_BASE$1=1e7,MAX$1=1e9;function clone$2(u){var f,d,_,x=Y.prototype={constructor:Y,toString:null,valueOf:null},I=new Y(1),E=20,M=4,S=-7,A=21,T=-1e7,D=1e7,O=!1,j=1,$=0,W={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},Q="0123456789abcdefghijklmnopqrstuvwxyz",X=!0;function Y(de,Ce){var ke,le,re,P,k,B,z,ee,H=this;if(!(H instanceof Y))return new Y(de,Ce);if(Ce==null){if(de&&de._isBigNumber===!0){H.s=de.s,!de.c||de.e>D?H.c=H.e=null:de.e<T?H.c=[H.e=0]:(H.e=de.e,H.c=de.c.slice());return}if((B=typeof de=="number")&&de*0==0){if(H.s=1/de<0?(de=-de,-1):1,de===~~de){for(P=0,k=de;k>=10;k/=10,P++);P>D?H.c=H.e=null:(H.e=P,H.c=[de]);return}ee=String(de)}else{if(!isNumeric$1.test(ee=String(de)))return _(H,ee,B);H.s=ee.charCodeAt(0)==45?(ee=ee.slice(1),-1):1}(P=ee.indexOf("."))>-1&&(ee=ee.replace(".","")),(k=ee.search(/e/i))>0?(P<0&&(P=k),P+=+ee.slice(k+1),ee=ee.substring(0,k)):P<0&&(P=ee.length)}else{if(intCheck$1(Ce,2,Q.length,"Base"),Ce==10&&X)return H=new Y(de),be(H,E+H.e+1,M);if(ee=String(de),B=typeof de=="number"){if(de*0!=0)return _(H,ee,B,Ce);if(H.s=1/de<0?(ee=ee.slice(1),-1):1,Y.DEBUG&&ee.replace(/^0\.0*|\./,"").length>15)throw Error(tooManyDigits$1+de)}else H.s=ee.charCodeAt(0)===45?(ee=ee.slice(1),-1):1;for(ke=Q.slice(0,Ce),P=k=0,z=ee.length;k<z;k++)if(ke.indexOf(le=ee.charAt(k))<0){if(le=="."){if(k>P){P=z;continue}}else if(!re&&(ee==ee.toUpperCase()&&(ee=ee.toLowerCase())||ee==ee.toLowerCase()&&(ee=ee.toUpperCase()))){re=!0,k=-1,P=0;continue}return _(H,String(de),B,Ce)}B=!1,ee=d(ee,Ce,10,H.s),(P=ee.indexOf("."))>-1?ee=ee.replace(".",""):P=ee.length}for(k=0;ee.charCodeAt(k)===48;k++);for(z=ee.length;ee.charCodeAt(--z)===48;);if(ee=ee.slice(k,++z)){if(z-=k,B&&Y.DEBUG&&z>15&&(de>MAX_SAFE_INTEGER$3||de!==mathfloor$1(de)))throw Error(tooManyDigits$1+H.s*de);if((P=P-k-1)>D)H.c=H.e=null;else if(P<T)H.c=[H.e=0];else{if(H.e=P,H.c=[],k=(P+1)%LOG_BASE$1,P<0&&(k+=LOG_BASE$1),k<z){for(k&&H.c.push(+ee.slice(0,k)),z-=LOG_BASE$1;k<z;)H.c.push(+ee.slice(k,k+=LOG_BASE$1));k=LOG_BASE$1-(ee=ee.slice(k)).length}else k-=z;for(;k--;ee+="0");H.c.push(+ee)}}else H.c=[H.e=0]}Y.clone=clone$2,Y.ROUND_UP=0,Y.ROUND_DOWN=1,Y.ROUND_CEIL=2,Y.ROUND_FLOOR=3,Y.ROUND_HALF_UP=4,Y.ROUND_HALF_DOWN=5,Y.ROUND_HALF_EVEN=6,Y.ROUND_HALF_CEIL=7,Y.ROUND_HALF_FLOOR=8,Y.EUCLID=9,Y.config=Y.set=function(de){var Ce,ke;if(de!=null)if(typeof de=="object"){if(de.hasOwnProperty(Ce="DECIMAL_PLACES")&&(ke=de[Ce],intCheck$1(ke,0,MAX$1,Ce),E=ke),de.hasOwnProperty(Ce="ROUNDING_MODE")&&(ke=de[Ce],intCheck$1(ke,0,8,Ce),M=ke),de.hasOwnProperty(Ce="EXPONENTIAL_AT")&&(ke=de[Ce],ke&&ke.pop?(intCheck$1(ke[0],-MAX$1,0,Ce),intCheck$1(ke[1],0,MAX$1,Ce),S=ke[0],A=ke[1]):(intCheck$1(ke,-MAX$1,MAX$1,Ce),S=-(A=ke<0?-ke:ke))),de.hasOwnProperty(Ce="RANGE"))if(ke=de[Ce],ke&&ke.pop)intCheck$1(ke[0],-MAX$1,-1,Ce),intCheck$1(ke[1],1,MAX$1,Ce),T=ke[0],D=ke[1];else if(intCheck$1(ke,-MAX$1,MAX$1,Ce),ke)T=-(D=ke<0?-ke:ke);else throw Error(bignumberError$1+Ce+" cannot be zero: "+ke);if(de.hasOwnProperty(Ce="CRYPTO"))if(ke=de[Ce],ke===!!ke)if(ke)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))O=ke;else throw O=!ke,Error(bignumberError$1+"crypto unavailable");else O=ke;else throw Error(bignumberError$1+Ce+" not true or false: "+ke);if(de.hasOwnProperty(Ce="MODULO_MODE")&&(ke=de[Ce],intCheck$1(ke,0,9,Ce),j=ke),de.hasOwnProperty(Ce="POW_PRECISION")&&(ke=de[Ce],intCheck$1(ke,0,MAX$1,Ce),$=ke),de.hasOwnProperty(Ce="FORMAT"))if(ke=de[Ce],typeof ke=="object")W=ke;else throw Error(bignumberError$1+Ce+" not an object: "+ke);if(de.hasOwnProperty(Ce="ALPHABET"))if(ke=de[Ce],typeof ke=="string"&&!/^.?$|[+\-.\s]|(.).*\1/.test(ke))X=ke.slice(0,10)=="0123456789",Q=ke;else throw Error(bignumberError$1+Ce+" invalid: "+ke)}else throw Error(bignumberError$1+"Object expected: "+de);return{DECIMAL_PLACES:E,ROUNDING_MODE:M,EXPONENTIAL_AT:[S,A],RANGE:[T,D],CRYPTO:O,MODULO_MODE:j,POW_PRECISION:$,FORMAT:W,ALPHABET:Q}},Y.isBigNumber=function(de){if(!de||de._isBigNumber!==!0)return!1;if(!Y.DEBUG)return!0;var Ce,ke,le=de.c,re=de.e,P=de.s;e:if({}.toString.call(le)=="[object Array]"){if((P===1||P===-1)&&re>=-MAX$1&&re<=MAX$1&&re===mathfloor$1(re)){if(le[0]===0){if(re===0&&le.length===1)return!0;break e}if(Ce=(re+1)%LOG_BASE$1,Ce<1&&(Ce+=LOG_BASE$1),String(le[0]).length==Ce){for(Ce=0;Ce<le.length;Ce++)if(ke=le[Ce],ke<0||ke>=BASE$1||ke!==mathfloor$1(ke))break e;if(ke!==0)return!0}}}else if(le===null&&re===null&&(P===null||P===1||P===-1))return!0;throw Error(bignumberError$1+"Invalid BigNumber: "+de)},Y.maximum=Y.max=function(){return oe(arguments,-1)},Y.minimum=Y.min=function(){return oe(arguments,1)},Y.random=function(){var de=9007199254740992,Ce=Math.random()*de&2097151?function(){return mathfloor$1(Math.random()*de)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(ke){var le,re,P,k,B,z=0,ee=[],H=new Y(I);if(ke==null?ke=E:intCheck$1(ke,0,MAX$1),k=mathceil$1(ke/LOG_BASE$1),O)if(crypto.getRandomValues){for(le=crypto.getRandomValues(new Uint32Array(k*=2));z<k;)B=le[z]*131072+(le[z+1]>>>11),B>=9e15?(re=crypto.getRandomValues(new Uint32Array(2)),le[z]=re[0],le[z+1]=re[1]):(ee.push(B%1e14),z+=2);z=k/2}else if(crypto.randomBytes){for(le=crypto.randomBytes(k*=7);z<k;)B=(le[z]&31)*281474976710656+le[z+1]*1099511627776+le[z+2]*4294967296+le[z+3]*16777216+(le[z+4]<<16)+(le[z+5]<<8)+le[z+6],B>=9e15?crypto.randomBytes(7).copy(le,z):(ee.push(B%1e14),z+=7);z=k/7}else throw O=!1,Error(bignumberError$1+"crypto unavailable");if(!O)for(;z<k;)B=Ce(),B<9e15&&(ee[z++]=B%1e14);for(k=ee[--z],ke%=LOG_BASE$1,k&&ke&&(B=POWS_TEN$1[LOG_BASE$1-ke],ee[z]=mathfloor$1(k/B)*B);ee[z]===0;ee.pop(),z--);if(z<0)ee=[P=0];else{for(P=-1;ee[0]===0;ee.splice(0,1),P-=LOG_BASE$1);for(z=1,B=ee[0];B>=10;B/=10,z++);z<LOG_BASE$1&&(P-=LOG_BASE$1-z)}return H.e=P,H.c=ee,H}}(),Y.sum=function(){for(var de=1,Ce=arguments,ke=new Y(Ce[0]);de<Ce.length;)ke=ke.plus(Ce[de++]);return ke},d=function(){var de="0123456789";function Ce(ke,le,re,P){for(var k,B=[0],z,ee=0,H=ke.length;ee<H;){for(z=B.length;z--;B[z]*=le);for(B[0]+=P.indexOf(ke.charAt(ee++)),k=0;k<B.length;k++)B[k]>re-1&&(B[k+1]==null&&(B[k+1]=0),B[k+1]+=B[k]/re|0,B[k]%=re)}return B.reverse()}return function(ke,le,re,P,k){var B,z,ee,H,q,J,U,Z,ve=ke.indexOf("."),Ye=E,rt=M;for(ve>=0&&(H=$,$=0,ke=ke.replace(".",""),Z=new Y(le),J=Z.pow(ke.length-ve),$=H,Z.c=Ce(toFixedPoint$1(coeffToString$1(J.c),J.e,"0"),10,re,de),Z.e=Z.c.length),U=Ce(ke,le,re,k?(B=Q,de):(B=de,Q)),ee=H=U.length;U[--H]==0;U.pop());if(!U[0])return B.charAt(0);if(ve<0?--ee:(J.c=U,J.e=ee,J.s=P,J=f(J,Z,Ye,rt,re),U=J.c,q=J.r,ee=J.e),z=ee+Ye+1,ve=U[z],H=re/2,q=q||z<0||U[z+1]!=null,q=rt<4?(ve!=null||q)&&(rt==0||rt==(J.s<0?3:2)):ve>H||ve==H&&(rt==4||q||rt==6&&U[z-1]&1||rt==(J.s<0?8:7)),z<1||!U[0])ke=q?toFixedPoint$1(B.charAt(1),-Ye,B.charAt(0)):B.charAt(0);else{if(U.length=z,q)for(--re;++U[--z]>re;)U[z]=0,z||(++ee,U=[1].concat(U));for(H=U.length;!U[--H];);for(ve=0,ke="";ve<=H;ke+=B.charAt(U[ve++]));ke=toFixedPoint$1(ke,ee,B.charAt(0))}return ke}}(),f=function(){function de(le,re,P){var k,B,z,ee,H=0,q=le.length,J=re%SQRT_BASE$1,U=re/SQRT_BASE$1|0;for(le=le.slice();q--;)z=le[q]%SQRT_BASE$1,ee=le[q]/SQRT_BASE$1|0,k=U*z+ee*J,B=J*z+k%SQRT_BASE$1*SQRT_BASE$1+H,H=(B/P|0)+(k/SQRT_BASE$1|0)+U*ee,le[q]=B%P;return H&&(le=[H].concat(le)),le}function Ce(le,re,P,k){var B,z;if(P!=k)z=P>k?1:-1;else for(B=z=0;B<P;B++)if(le[B]!=re[B]){z=le[B]>re[B]?1:-1;break}return z}function ke(le,re,P,k){for(var B=0;P--;)le[P]-=B,B=le[P]<re[P]?1:0,le[P]=B*k+le[P]-re[P];for(;!le[0]&&le.length>1;le.splice(0,1));}return function(le,re,P,k,B){var z,ee,H,q,J,U,Z,ve,Ye,rt,Ue,Qe,vt,ri,ci,tt,et,$e=le.s==re.s?1:-1,Le=le.c,ot=re.c;if(!Le||!Le[0]||!ot||!ot[0])return new Y(!le.s||!re.s||(Le?ot&&Le[0]==ot[0]:!ot)?NaN:Le&&Le[0]==0||!ot?$e*0:$e/0);for(ve=new Y($e),Ye=ve.c=[],ee=le.e-re.e,$e=P+ee+1,B||(B=BASE$1,ee=bitFloor$1(le.e/LOG_BASE$1)-bitFloor$1(re.e/LOG_BASE$1),$e=$e/LOG_BASE$1|0),H=0;ot[H]==(Le[H]||0);H++);if(ot[H]>(Le[H]||0)&&ee--,$e<0)Ye.push(1),q=!0;else{for(ri=Le.length,tt=ot.length,H=0,$e+=2,J=mathfloor$1(B/(ot[0]+1)),J>1&&(ot=de(ot,J,B),Le=de(Le,J,B),tt=ot.length,ri=Le.length),vt=tt,rt=Le.slice(0,tt),Ue=rt.length;Ue<tt;rt[Ue++]=0);et=ot.slice(),et=[0].concat(et),ci=ot[0],ot[1]>=B/2&&ci++;do{if(J=0,z=Ce(ot,rt,tt,Ue),z<0){if(Qe=rt[0],tt!=Ue&&(Qe=Qe*B+(rt[1]||0)),J=mathfloor$1(Qe/ci),J>1)for(J>=B&&(J=B-1),U=de(ot,J,B),Z=U.length,Ue=rt.length;Ce(U,rt,Z,Ue)==1;)J--,ke(U,tt<Z?et:ot,Z,B),Z=U.length,z=1;else J==0&&(z=J=1),U=ot.slice(),Z=U.length;if(Z<Ue&&(U=[0].concat(U)),ke(rt,U,Ue,B),Ue=rt.length,z==-1)for(;Ce(ot,rt,tt,Ue)<1;)J++,ke(rt,tt<Ue?et:ot,Ue,B),Ue=rt.length}else z===0&&(J++,rt=[0]);Ye[H++]=J,rt[0]?rt[Ue++]=Le[vt]||0:(rt=[Le[vt]],Ue=1)}while((vt++<ri||rt[0]!=null)&&$e--);q=rt[0]!=null,Ye[0]||Ye.splice(0,1)}if(B==BASE$1){for(H=1,$e=Ye[0];$e>=10;$e/=10,H++);be(ve,P+(ve.e=H+ee*LOG_BASE$1-1)+1,k,q)}else ve.e=ee,ve.r=+q;return ve}}();function ie(de,Ce,ke,le){var re,P,k,B,z;if(ke==null?ke=M:intCheck$1(ke,0,8),!de.c)return de.toString();if(re=de.c[0],k=de.e,Ce==null)z=coeffToString$1(de.c),z=le==1||le==2&&(k<=S||k>=A)?toExponential$1(z,k):toFixedPoint$1(z,k,"0");else if(de=be(new Y(de),Ce,ke),P=de.e,z=coeffToString$1(de.c),B=z.length,le==1||le==2&&(Ce<=P||P<=S)){for(;B<Ce;z+="0",B++);z=toExponential$1(z,P)}else if(Ce-=k,z=toFixedPoint$1(z,P,"0"),P+1>B){if(--Ce>0)for(z+=".";Ce--;z+="0");}else if(Ce+=P-B,Ce>0)for(P+1==B&&(z+=".");Ce--;z+="0");return de.s<0&&re?"-"+z:z}function oe(de,Ce){for(var ke,le,re=1,P=new Y(de[0]);re<de.length;re++)le=new Y(de[re]),(!le.s||(ke=compare$1(P,le))===Ce||ke===0&&P.s===Ce)&&(P=le);return P}function ge(de,Ce,ke){for(var le=1,re=Ce.length;!Ce[--re];Ce.pop());for(re=Ce[0];re>=10;re/=10,le++);return(ke=le+ke*LOG_BASE$1-1)>D?de.c=de.e=null:ke<T?de.c=[de.e=0]:(de.e=ke,de.c=Ce),de}_=function(){var de=/^(-?)0([xbo])(?=\w[\w.]*$)/i,Ce=/^([^.]+)\.$/,ke=/^\.([^.]+)$/,le=/^-?(Infinity|NaN)$/,re=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(P,k,B,z){var ee,H=B?k:k.replace(re,"");if(le.test(H))P.s=isNaN(H)?null:H<0?-1:1;else{if(!B&&(H=H.replace(de,function(q,J,U){return ee=(U=U.toLowerCase())=="x"?16:U=="b"?2:8,!z||z==ee?J:q}),z&&(ee=z,H=H.replace(Ce,"$1").replace(ke,"0.$1")),k!=H))return new Y(H,ee);if(Y.DEBUG)throw Error(bignumberError$1+"Not a"+(z?" base "+z:"")+" number: "+k);P.s=null}P.c=P.e=null}}();function be(de,Ce,ke,le){var re,P,k,B,z,ee,H,q=de.c,J=POWS_TEN$1;if(q){e:{for(re=1,B=q[0];B>=10;B/=10,re++);if(P=Ce-re,P<0)P+=LOG_BASE$1,k=Ce,z=q[ee=0],H=mathfloor$1(z/J[re-k-1]%10);else if(ee=mathceil$1((P+1)/LOG_BASE$1),ee>=q.length)if(le){for(;q.length<=ee;q.push(0));z=H=0,re=1,P%=LOG_BASE$1,k=P-LOG_BASE$1+1}else break e;else{for(z=B=q[ee],re=1;B>=10;B/=10,re++);P%=LOG_BASE$1,k=P-LOG_BASE$1+re,H=k<0?0:mathfloor$1(z/J[re-k-1]%10)}if(le=le||Ce<0||q[ee+1]!=null||(k<0?z:z%J[re-k-1]),le=ke<4?(H||le)&&(ke==0||ke==(de.s<0?3:2)):H>5||H==5&&(ke==4||le||ke==6&&(P>0?k>0?z/J[re-k]:0:q[ee-1])%10&1||ke==(de.s<0?8:7)),Ce<1||!q[0])return q.length=0,le?(Ce-=de.e+1,q[0]=J[(LOG_BASE$1-Ce%LOG_BASE$1)%LOG_BASE$1],de.e=-Ce||0):q[0]=de.e=0,de;if(P==0?(q.length=ee,B=1,ee--):(q.length=ee+1,B=J[LOG_BASE$1-P],q[ee]=k>0?mathfloor$1(z/J[re-k]%J[k])*B:0),le)for(;;)if(ee==0){for(P=1,k=q[0];k>=10;k/=10,P++);for(k=q[0]+=B,B=1;k>=10;k/=10,B++);P!=B&&(de.e++,q[0]==BASE$1&&(q[0]=1));break}else{if(q[ee]+=B,q[ee]!=BASE$1)break;q[ee--]=0,B=1}for(P=q.length;q[--P]===0;q.pop());}de.e>D?de.c=de.e=null:de.e<T&&(de.c=[de.e=0])}return de}function ze(de){var Ce,ke=de.e;return ke===null?de.toString():(Ce=coeffToString$1(de.c),Ce=ke<=S||ke>=A?toExponential$1(Ce,ke):toFixedPoint$1(Ce,ke,"0"),de.s<0?"-"+Ce:Ce)}return x.absoluteValue=x.abs=function(){var de=new Y(this);return de.s<0&&(de.s=1),de},x.comparedTo=function(de,Ce){return compare$1(this,new Y(de,Ce))},x.decimalPlaces=x.dp=function(de,Ce){var ke,le,re,P=this;if(de!=null)return intCheck$1(de,0,MAX$1),Ce==null?Ce=M:intCheck$1(Ce,0,8),be(new Y(P),de+P.e+1,Ce);if(!(ke=P.c))return null;if(le=((re=ke.length-1)-bitFloor$1(this.e/LOG_BASE$1))*LOG_BASE$1,re=ke[re])for(;re%10==0;re/=10,le--);return le<0&&(le=0),le},x.dividedBy=x.div=function(de,Ce){return f(this,new Y(de,Ce),E,M)},x.dividedToIntegerBy=x.idiv=function(de,Ce){return f(this,new Y(de,Ce),0,1)},x.exponentiatedBy=x.pow=function(de,Ce){var ke,le,re,P,k,B,z,ee,H,q=this;if(de=new Y(de),de.c&&!de.isInteger())throw Error(bignumberError$1+"Exponent not an integer: "+ze(de));if(Ce!=null&&(Ce=new Y(Ce)),B=de.e>14,!q.c||!q.c[0]||q.c[0]==1&&!q.e&&q.c.length==1||!de.c||!de.c[0])return H=new Y(Math.pow(+ze(q),B?de.s*(2-isOdd$1(de)):+ze(de))),Ce?H.mod(Ce):H;if(z=de.s<0,Ce){if(Ce.c?!Ce.c[0]:!Ce.s)return new Y(NaN);le=!z&&q.isInteger()&&Ce.isInteger(),le&&(q=q.mod(Ce))}else{if(de.e>9&&(q.e>0||q.e<-1||(q.e==0?q.c[0]>1||B&&q.c[1]>=24e7:q.c[0]<8e13||B&&q.c[0]<=9999975e7)))return P=q.s<0&&isOdd$1(de)?-0:0,q.e>-1&&(P=1/P),new Y(z?1/P:P);$&&(P=mathceil$1($/LOG_BASE$1+2))}for(B?(ke=new Y(.5),z&&(de.s=1),ee=isOdd$1(de)):(re=Math.abs(+ze(de)),ee=re%2),H=new Y(I);;){if(ee){if(H=H.times(q),!H.c)break;P?H.c.length>P&&(H.c.length=P):le&&(H=H.mod(Ce))}if(re){if(re=mathfloor$1(re/2),re===0)break;ee=re%2}else if(de=de.times(ke),be(de,de.e+1,1),de.e>14)ee=isOdd$1(de);else{if(re=+ze(de),re===0)break;ee=re%2}q=q.times(q),P?q.c&&q.c.length>P&&(q.c.length=P):le&&(q=q.mod(Ce))}return le?H:(z&&(H=I.div(H)),Ce?H.mod(Ce):P?be(H,$,M,k):H)},x.integerValue=function(de){var Ce=new Y(this);return de==null?de=M:intCheck$1(de,0,8),be(Ce,Ce.e+1,de)},x.isEqualTo=x.eq=function(de,Ce){return compare$1(this,new Y(de,Ce))===0},x.isFinite=function(){return!!this.c},x.isGreaterThan=x.gt=function(de,Ce){return compare$1(this,new Y(de,Ce))>0},x.isGreaterThanOrEqualTo=x.gte=function(de,Ce){return(Ce=compare$1(this,new Y(de,Ce)))===1||Ce===0},x.isInteger=function(){return!!this.c&&bitFloor$1(this.e/LOG_BASE$1)>this.c.length-2},x.isLessThan=x.lt=function(de,Ce){return compare$1(this,new Y(de,Ce))<0},x.isLessThanOrEqualTo=x.lte=function(de,Ce){return(Ce=compare$1(this,new Y(de,Ce)))===-1||Ce===0},x.isNaN=function(){return!this.s},x.isNegative=function(){return this.s<0},x.isPositive=function(){return this.s>0},x.isZero=function(){return!!this.c&&this.c[0]==0},x.minus=function(de,Ce){var ke,le,re,P,k=this,B=k.s;if(de=new Y(de,Ce),Ce=de.s,!B||!Ce)return new Y(NaN);if(B!=Ce)return de.s=-Ce,k.plus(de);var z=k.e/LOG_BASE$1,ee=de.e/LOG_BASE$1,H=k.c,q=de.c;if(!z||!ee){if(!H||!q)return H?(de.s=-Ce,de):new Y(q?k:NaN);if(!H[0]||!q[0])return q[0]?(de.s=-Ce,de):new Y(H[0]?k:M==3?-0:0)}if(z=bitFloor$1(z),ee=bitFloor$1(ee),H=H.slice(),B=z-ee){for((P=B<0)?(B=-B,re=H):(ee=z,re=q),re.reverse(),Ce=B;Ce--;re.push(0));re.reverse()}else for(le=(P=(B=H.length)<(Ce=q.length))?B:Ce,B=Ce=0;Ce<le;Ce++)if(H[Ce]!=q[Ce]){P=H[Ce]<q[Ce];break}if(P&&(re=H,H=q,q=re,de.s=-de.s),Ce=(le=q.length)-(ke=H.length),Ce>0)for(;Ce--;H[ke++]=0);for(Ce=BASE$1-1;le>B;){if(H[--le]<q[le]){for(ke=le;ke&&!H[--ke];H[ke]=Ce);--H[ke],H[le]+=BASE$1}H[le]-=q[le]}for(;H[0]==0;H.splice(0,1),--ee);return H[0]?ge(de,H,ee):(de.s=M==3?-1:1,de.c=[de.e=0],de)},x.modulo=x.mod=function(de,Ce){var ke,le,re=this;return de=new Y(de,Ce),!re.c||!de.s||de.c&&!de.c[0]?new Y(NaN):!de.c||re.c&&!re.c[0]?new Y(re):(j==9?(le=de.s,de.s=1,ke=f(re,de,0,3),de.s=le,ke.s*=le):ke=f(re,de,0,j),de=re.minus(ke.times(de)),!de.c[0]&&j==1&&(de.s=re.s),de)},x.multipliedBy=x.times=function(de,Ce){var ke,le,re,P,k,B,z,ee,H,q,J,U,Z,ve,Ye,rt=this,Ue=rt.c,Qe=(de=new Y(de,Ce)).c;if(!Ue||!Qe||!Ue[0]||!Qe[0])return!rt.s||!de.s||Ue&&!Ue[0]&&!Qe||Qe&&!Qe[0]&&!Ue?de.c=de.e=de.s=null:(de.s*=rt.s,!Ue||!Qe?de.c=de.e=null:(de.c=[0],de.e=0)),de;for(le=bitFloor$1(rt.e/LOG_BASE$1)+bitFloor$1(de.e/LOG_BASE$1),de.s*=rt.s,z=Ue.length,q=Qe.length,z<q&&(Z=Ue,Ue=Qe,Qe=Z,re=z,z=q,q=re),re=z+q,Z=[];re--;Z.push(0));for(ve=BASE$1,Ye=SQRT_BASE$1,re=q;--re>=0;){for(ke=0,J=Qe[re]%Ye,U=Qe[re]/Ye|0,k=z,P=re+k;P>re;)ee=Ue[--k]%Ye,H=Ue[k]/Ye|0,B=U*ee+H*J,ee=J*ee+B%Ye*Ye+Z[P]+ke,ke=(ee/ve|0)+(B/Ye|0)+U*H,Z[P--]=ee%ve;Z[P]=ke}return ke?++le:Z.splice(0,1),ge(de,Z,le)},x.negated=function(){var de=new Y(this);return de.s=-de.s||null,de},x.plus=function(de,Ce){var ke,le=this,re=le.s;if(de=new Y(de,Ce),Ce=de.s,!re||!Ce)return new Y(NaN);if(re!=Ce)return de.s=-Ce,le.minus(de);var P=le.e/LOG_BASE$1,k=de.e/LOG_BASE$1,B=le.c,z=de.c;if(!P||!k){if(!B||!z)return new Y(re/0);if(!B[0]||!z[0])return z[0]?de:new Y(B[0]?le:re*0)}if(P=bitFloor$1(P),k=bitFloor$1(k),B=B.slice(),re=P-k){for(re>0?(k=P,ke=z):(re=-re,ke=B),ke.reverse();re--;ke.push(0));ke.reverse()}for(re=B.length,Ce=z.length,re-Ce<0&&(ke=z,z=B,B=ke,Ce=re),re=0;Ce;)re=(B[--Ce]=B[Ce]+z[Ce]+re)/BASE$1|0,B[Ce]=BASE$1===B[Ce]?0:B[Ce]%BASE$1;return re&&(B=[re].concat(B),++k),ge(de,B,k)},x.precision=x.sd=function(de,Ce){var ke,le,re,P=this;if(de!=null&&de!==!!de)return intCheck$1(de,1,MAX$1),Ce==null?Ce=M:intCheck$1(Ce,0,8),be(new Y(P),de,Ce);if(!(ke=P.c))return null;if(re=ke.length-1,le=re*LOG_BASE$1+1,re=ke[re]){for(;re%10==0;re/=10,le--);for(re=ke[0];re>=10;re/=10,le++);}return de&&P.e+1>le&&(le=P.e+1),le},x.shiftedBy=function(de){return intCheck$1(de,-MAX_SAFE_INTEGER$3,MAX_SAFE_INTEGER$3),this.times("1e"+de)},x.squareRoot=x.sqrt=function(){var de,Ce,ke,le,re,P=this,k=P.c,B=P.s,z=P.e,ee=E+4,H=new Y("0.5");if(B!==1||!k||!k[0])return new Y(!B||B<0&&(!k||k[0])?NaN:k?P:1/0);if(B=Math.sqrt(+ze(P)),B==0||B==1/0?(Ce=coeffToString$1(k),(Ce.length+z)%2==0&&(Ce+="0"),B=Math.sqrt(+Ce),z=bitFloor$1((z+1)/2)-(z<0||z%2),B==1/0?Ce="5e"+z:(Ce=B.toExponential(),Ce=Ce.slice(0,Ce.indexOf("e")+1)+z),ke=new Y(Ce)):ke=new Y(B+""),ke.c[0]){for(z=ke.e,B=z+ee,B<3&&(B=0);;)if(re=ke,ke=H.times(re.plus(f(P,re,ee,1))),coeffToString$1(re.c).slice(0,B)===(Ce=coeffToString$1(ke.c)).slice(0,B))if(ke.e<z&&--B,Ce=Ce.slice(B-3,B+1),Ce=="9999"||!le&&Ce=="4999"){if(!le&&(be(re,re.e+E+2,0),re.times(re).eq(P))){ke=re;break}ee+=4,B+=4,le=1}else{(!+Ce||!+Ce.slice(1)&&Ce.charAt(0)=="5")&&(be(ke,ke.e+E+2,1),de=!ke.times(ke).eq(P));break}}return be(ke,ke.e+E+1,M,de)},x.toExponential=function(de,Ce){return de!=null&&(intCheck$1(de,0,MAX$1),de++),ie(this,de,Ce,1)},x.toFixed=function(de,Ce){return de!=null&&(intCheck$1(de,0,MAX$1),de=de+this.e+1),ie(this,de,Ce)},x.toFormat=function(de,Ce,ke){var le,re=this;if(ke==null)de!=null&&Ce&&typeof Ce=="object"?(ke=Ce,Ce=null):de&&typeof de=="object"?(ke=de,de=Ce=null):ke=W;else if(typeof ke!="object")throw Error(bignumberError$1+"Argument not an object: "+ke);if(le=re.toFixed(de,Ce),re.c){var P,k=le.split("."),B=+ke.groupSize,z=+ke.secondaryGroupSize,ee=ke.groupSeparator||"",H=k[0],q=k[1],J=re.s<0,U=J?H.slice(1):H,Z=U.length;if(z&&(P=B,B=z,z=P,Z-=P),B>0&&Z>0){for(P=Z%B||B,H=U.substr(0,P);P<Z;P+=B)H+=ee+U.substr(P,B);z>0&&(H+=ee+U.slice(P)),J&&(H="-"+H)}le=q?H+(ke.decimalSeparator||"")+((z=+ke.fractionGroupSize)?q.replace(new RegExp("\\d{"+z+"}\\B","g"),"$&"+(ke.fractionGroupSeparator||"")):q):H}return(ke.prefix||"")+le+(ke.suffix||"")},x.toFraction=function(de){var Ce,ke,le,re,P,k,B,z,ee,H,q,J,U=this,Z=U.c;if(de!=null&&(B=new Y(de),!B.isInteger()&&(B.c||B.s!==1)||B.lt(I)))throw Error(bignumberError$1+"Argument "+(B.isInteger()?"out of range: ":"not an integer: ")+ze(B));if(!Z)return new Y(U);for(Ce=new Y(I),ee=ke=new Y(I),le=z=new Y(I),J=coeffToString$1(Z),P=Ce.e=J.length-U.e-1,Ce.c[0]=POWS_TEN$1[(k=P%LOG_BASE$1)<0?LOG_BASE$1+k:k],de=!de||B.comparedTo(Ce)>0?P>0?Ce:ee:B,k=D,D=1/0,B=new Y(J),z.c[0]=0;H=f(B,Ce,0,1),re=ke.plus(H.times(le)),re.comparedTo(de)!=1;)ke=le,le=re,ee=z.plus(H.times(re=ee)),z=re,Ce=B.minus(H.times(re=Ce)),B=re;return re=f(de.minus(ke),le,0,1),z=z.plus(re.times(ee)),ke=ke.plus(re.times(le)),z.s=ee.s=U.s,P=P*2,q=f(ee,le,P,M).minus(U).abs().comparedTo(f(z,ke,P,M).minus(U).abs())<1?[ee,le]:[z,ke],D=k,q},x.toNumber=function(){return+ze(this)},x.toPrecision=function(de,Ce){return de!=null&&intCheck$1(de,1,MAX$1),ie(this,de,Ce,2)},x.toString=function(de){var Ce,ke=this,le=ke.s,re=ke.e;return re===null?le?(Ce="Infinity",le<0&&(Ce="-"+Ce)):Ce="NaN":(de==null?Ce=re<=S||re>=A?toExponential$1(coeffToString$1(ke.c),re):toFixedPoint$1(coeffToString$1(ke.c),re,"0"):de===10&&X?(ke=be(new Y(ke),E+re+1,M),Ce=toFixedPoint$1(coeffToString$1(ke.c),ke.e,"0")):(intCheck$1(de,2,Q.length,"Base"),Ce=d(toFixedPoint$1(coeffToString$1(ke.c),re,"0"),10,de,le,!0)),le<0&&ke.c[0]&&(Ce="-"+Ce)),Ce},x.valueOf=x.toJSON=function(){return ze(this)},x._isBigNumber=!0,x[Symbol.toStringTag]="BigNumber",x[Symbol.for("nodejs.util.inspect.custom")]=x.valueOf,u!=null&&Y.set(u),Y}function bitFloor$1(u){var f=u|0;return u>0||u===f?f:f-1}function coeffToString$1(u){for(var f,d,_=1,x=u.length,I=u[0]+"";_<x;){for(f=u[_++]+"",d=LOG_BASE$1-f.length;d--;f="0"+f);I+=f}for(x=I.length;I.charCodeAt(--x)===48;);return I.slice(0,x+1||1)}function compare$1(u,f){var d,_,x=u.c,I=f.c,E=u.s,M=f.s,S=u.e,A=f.e;if(!E||!M)return null;if(d=x&&!x[0],_=I&&!I[0],d||_)return d?_?0:-M:E;if(E!=M)return E;if(d=E<0,_=S==A,!x||!I)return _?0:!x^d?1:-1;if(!_)return S>A^d?1:-1;for(M=(S=x.length)<(A=I.length)?S:A,E=0;E<M;E++)if(x[E]!=I[E])return x[E]>I[E]^d?1:-1;return S==A?0:S>A^d?1:-1}function intCheck$1(u,f,d,_){if(u<f||u>d||u!==mathfloor$1(u))throw Error(bignumberError$1+(_||"Argument")+(typeof u=="number"?u<f||u>d?" out of range: ":" not an integer: ":" not a primitive number: ")+String(u))}function isOdd$1(u){var f=u.c.length-1;return bitFloor$1(u.e/LOG_BASE$1)==f&&u.c[f]%2!=0}function toExponential$1(u,f){return(u.length>1?u.charAt(0)+"."+u.slice(1):u)+(f<0?"e":"e+")+f}function toFixedPoint$1(u,f,d){var _,x;if(f<0){for(x=d+".";++f;x+=d);u=x+u}else if(_=u.length,++f>_){for(x=d,f-=_;--f;x+=d);u+=x}else f<_&&(u=u.slice(0,f)+"."+u.slice(f));return u}var BigNumber$1=clone$2(),isVue2=!1;let activePinia;const setActivePinia=u=>activePinia=u,piniaSymbol=Symbol();function isPlainObject$2(u){return u&&typeof u=="object"&&Object.prototype.toString.call(u)==="[object Object]"&&typeof u.toJSON!="function"}var MutationType;(function(u){u.direct="direct",u.patchObject="patch object",u.patchFunction="patch function"})(MutationType||(MutationType={}));function createPinia(){const u=effectScope(!0),f=u.run(()=>ref({}));let d=[],_=[];const x=markRaw({install(I){setActivePinia(x),x._a=I,I.provide(piniaSymbol,x),I.config.globalProperties.$pinia=x,_.forEach(E=>d.push(E)),_=[]},use(I){return!this._a&&!isVue2?_.push(I):d.push(I),this},_p:d,_a:null,_e:u,_s:new Map,state:f});return x}const noop$5=()=>{};function addSubscription(u,f,d,_=noop$5){u.push(f);const x=()=>{const I=u.indexOf(f);I>-1&&(u.splice(I,1),_())};return!d&&getCurrentScope()&&onScopeDispose(x),x}function triggerSubscriptions(u,...f){u.slice().forEach(d=>{d(...f)})}const fallbackRunWithContext=u=>u();function mergeReactiveObjects(u,f){u instanceof Map&&f instanceof Map&&f.forEach((d,_)=>u.set(_,d)),u instanceof Set&&f instanceof Set&&f.forEach(u.add,u);for(const d in f){if(!f.hasOwnProperty(d))continue;const _=f[d],x=u[d];isPlainObject$2(x)&&isPlainObject$2(_)&&u.hasOwnProperty(d)&&!isRef(_)&&!isReactive(_)?u[d]=mergeReactiveObjects(x,_):u[d]=_}return u}const skipHydrateSymbol=Symbol();function shouldHydrate(u){return!isPlainObject$2(u)||!u.hasOwnProperty(skipHydrateSymbol)}const{assign:assign$4}=Object;function isComputed(u){return!!(isRef(u)&&u.effect)}function createOptionsStore(u,f,d,_){const{state:x,actions:I,getters:E}=f,M=d.state.value[u];let S;function A(){M||(d.state.value[u]=x?x():{});const T=toRefs(d.state.value[u]);return assign$4(T,I,Object.keys(E||{}).reduce((D,O)=>(D[O]=markRaw(computed(()=>{setActivePinia(d);const j=d._s.get(u);return E[O].call(j,j)})),D),{}))}return S=createSetupStore(u,A,f,d,_,!0),S}function createSetupStore(u,f,d={},_,x,I){let E;const M=assign$4({actions:{}},d),S={deep:!0};let A,T,D=[],O=[],j;const $=_.state.value[u];!I&&!$&&(_.state.value[u]={}),ref({});let W;function Q(de){let Ce;A=T=!1,typeof de=="function"?(de(_.state.value[u]),Ce={type:MutationType.patchFunction,storeId:u,events:j}):(mergeReactiveObjects(_.state.value[u],de),Ce={type:MutationType.patchObject,payload:de,storeId:u,events:j});const ke=W=Symbol();nextTick$2().then(()=>{W===ke&&(A=!0)}),T=!0,triggerSubscriptions(D,Ce,_.state.value[u])}const X=I?function(){const{state:Ce}=d,ke=Ce?Ce():{};this.$patch(le=>{assign$4(le,ke)})}:noop$5;function Y(){E.stop(),D=[],O=[],_._s.delete(u)}function ie(de,Ce){return function(){setActivePinia(_);const ke=Array.from(arguments),le=[],re=[];function P(z){le.push(z)}function k(z){re.push(z)}triggerSubscriptions(O,{args:ke,name:de,store:ge,after:P,onError:k});let B;try{B=Ce.apply(this&&this.$id===u?this:ge,ke)}catch(z){throw triggerSubscriptions(re,z),z}return B instanceof Promise?B.then(z=>(triggerSubscriptions(le,z),z)).catch(z=>(triggerSubscriptions(re,z),Promise.reject(z))):(triggerSubscriptions(le,B),B)}}const oe={_p:_,$id:u,$onAction:addSubscription.bind(null,O),$patch:Q,$reset:X,$subscribe(de,Ce={}){const ke=addSubscription(D,de,Ce.detached,()=>le()),le=E.run(()=>watch(()=>_.state.value[u],re=>{(Ce.flush==="sync"?T:A)&&de({storeId:u,type:MutationType.direct,events:j},re)},assign$4({},S,Ce)));return ke},$dispose:Y},ge=reactive(oe);_._s.set(u,ge);const ze=(_._a&&_._a.runWithContext||fallbackRunWithContext)(()=>_._e.run(()=>(E=effectScope()).run(f)));for(const de in ze){const Ce=ze[de];if(isRef(Ce)&&!isComputed(Ce)||isReactive(Ce))I||($&&shouldHydrate(Ce)&&(isRef(Ce)?Ce.value=$[de]:mergeReactiveObjects(Ce,$[de])),_.state.value[u][de]=Ce);else if(typeof Ce=="function"){const ke=ie(de,Ce);ze[de]=ke,M.actions[de]=Ce}}return assign$4(ge,ze),assign$4(toRaw(ge),ze),Object.defineProperty(ge,"$state",{get:()=>_.state.value[u],set:de=>{Q(Ce=>{assign$4(Ce,de)})}}),_._p.forEach(de=>{assign$4(ge,E.run(()=>de({store:ge,app:_._a,pinia:_,options:M})))}),$&&I&&d.hydrate&&d.hydrate(ge.$state,$),A=!0,T=!0,ge}function defineStore(u,f,d){let _,x;const I=typeof f=="function";typeof u=="string"?(_=u,x=I?d:f):(x=u,_=u.id);function E(M,S){const A=hasInjectionContext();return M=M||(A?inject(piniaSymbol,null):null),M&&setActivePinia(M),M=activePinia,M._s.has(_)||(I?createSetupStore(_,f,x,M):createOptionsStore(_,x,M)),M._s.get(_)}return E.$id=_,E}class ApiError extends Error{constructor(d,_){super(d);aM(this,"statusCode");this.statusCode=_,this.name="ApiError"}}const CaptureSymbol=Symbol();function createCapture(u){const f=new CaptureService(u);return{install:_=>{_.config.globalProperties.$capture=f,_.provide(CaptureSymbol,f)}}}function useCapture(){const u=inject(CaptureSymbol);if(!u)throw new Error("Capture service is not provided");const f={};for(const d of Object.getOwnPropertyNames(CaptureService.prototype))f[d]=u[d].bind(u);return f}async function getClientInfo(u){const f=await fetch(`${u}/get-client-info`);if(!f.ok)throw new ApiError("Failed to fetch client info",f.status);return f.json()}async function sendToServer(u,f){const d=await fetch(`${u}/capture-action`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(f)});if(!d.ok)throw new ApiError("Failed to send capture data",d.status);return d.json()}class CaptureService{constructor({apiUrl:f}){aM(this,"pcid",null);aM(this,"captureBlock",!1);aM(this,"apiUrl");aM(this,"TRACKING_KEY","wepin:tracking");this.apiUrl=f}async initializePcId(){if(this.pcid=localStorage.getItem(this.TRACKING_KEY),!this.pcid)try{const f=await getClientInfo(this.apiUrl);if(!f.shouldCapture){this.captureBlock=!0;return}this.pcid=f.pcid,localStorage.setItem(this.TRACKING_KEY,this.pcid)}catch{throw new Error("Failed to initialize PCID")}}async captureEvent(f){if(!this.captureBlock)try{if(!this.pcid){if(await this.initializePcId(),this.captureBlock)return;if(!this.pcid)throw new Error("PCID not initialized")}await sendToServer(this.apiUrl,{...f,pcid:this.pcid})}catch(d){if(d instanceof ApiError){console.error(`API Error (${d.statusCode}): ${d.message}`);return}console.error("Error capturing event:",d)}}}const isBrowser$1=typeof window<"u";function isESModule(u){return u.__esModule||u[Symbol.toStringTag]==="Module"}const assign$3=Object.assign;function applyToParams(u,f){const d={};for(const _ in f){const x=f[_];d[_]=isArray$5(x)?x.map(u):u(x)}return d}const noop$4=()=>{},isArray$5=Array.isArray,TRAILING_SLASH_RE=/\/$/,removeTrailingSlash=u=>u.replace(TRAILING_SLASH_RE,"");function parseURL(u,f,d="/"){let _,x={},I="",E="";const M=f.indexOf("#");let S=f.indexOf("?");return M<S&&M>=0&&(S=-1),S>-1&&(_=f.slice(0,S),I=f.slice(S+1,M>-1?M:f.length),x=u(I)),M>-1&&(_=_||f.slice(0,M),E=f.slice(M,f.length)),_=resolveRelativePath(_??f,d),{fullPath:_+(I&&"?")+I+E,path:_,query:x,hash:E}}function stringifyURL(u,f){const d=f.query?u(f.query):"";return f.path+(d&&"?")+d+(f.hash||"")}function stripBase(u,f){return!f||!u.toLowerCase().startsWith(f.toLowerCase())?u:u.slice(f.length)||"/"}function isSameRouteLocation(u,f,d){const _=f.matched.length-1,x=d.matched.length-1;return _>-1&&_===x&&isSameRouteRecord(f.matched[_],d.matched[x])&&isSameRouteLocationParams(f.params,d.params)&&u(f.query)===u(d.query)&&f.hash===d.hash}function isSameRouteRecord(u,f){return(u.aliasOf||u)===(f.aliasOf||f)}function isSameRouteLocationParams(u,f){if(Object.keys(u).length!==Object.keys(f).length)return!1;for(const d in u)if(!isSameRouteLocationParamsValue(u[d],f[d]))return!1;return!0}function isSameRouteLocationParamsValue(u,f){return isArray$5(u)?isEquivalentArray(u,f):isArray$5(f)?isEquivalentArray(f,u):u===f}function isEquivalentArray(u,f){return isArray$5(f)?u.length===f.length&&u.every((d,_)=>d===f[_]):u.length===1&&u[0]===f}function resolveRelativePath(u,f){if(u.startsWith("/"))return u;if(!u)return f;const d=f.split("/"),_=u.split("/"),x=_[_.length-1];(x===".."||x===".")&&_.push("");let I=d.length-1,E,M;for(E=0;E<_.length;E++)if(M=_[E],M!==".")if(M==="..")I>1&&I--;else break;return d.slice(0,I).join("/")+"/"+_.slice(E-(E===_.length?1:0)).join("/")}var NavigationType;(function(u){u.pop="pop",u.push="push"})(NavigationType||(NavigationType={}));var NavigationDirection;(function(u){u.back="back",u.forward="forward",u.unknown=""})(NavigationDirection||(NavigationDirection={}));function normalizeBase(u){if(!u)if(isBrowser$1){const f=document.querySelector("base");u=f&&f.getAttribute("href")||"/",u=u.replace(/^\w+:\/\/[^\/]+/,"")}else u="/";return u[0]!=="/"&&u[0]!=="#"&&(u="/"+u),removeTrailingSlash(u)}const BEFORE_HASH_RE=/^[^#]+#/;function createHref(u,f){return u.replace(BEFORE_HASH_RE,"#")+f}function getElementPosition(u,f){const d=document.documentElement.getBoundingClientRect(),_=u.getBoundingClientRect();return{behavior:f.behavior,left:_.left-d.left-(f.left||0),top:_.top-d.top-(f.top||0)}}const computeScrollPosition=()=>({left:window.pageXOffset,top:window.pageYOffset});function scrollToPosition(u){let f;if("el"in u){const d=u.el,_=typeof d=="string"&&d.startsWith("#"),x=typeof d=="string"?_?document.getElementById(d.slice(1)):document.querySelector(d):d;if(!x)return;f=getElementPosition(x,u)}else f=u;"scrollBehavior"in document.documentElement.style?window.scrollTo(f):window.scrollTo(f.left!=null?f.left:window.pageXOffset,f.top!=null?f.top:window.pageYOffset)}function getScrollKey(u,f){return(history.state?history.state.position-f:-1)+u}const scrollPositions=new Map;function saveScrollPosition(u,f){scrollPositions.set(u,f)}function getSavedScrollPosition(u){const f=scrollPositions.get(u);return scrollPositions.delete(u),f}let createBaseLocation=()=>location.protocol+"//"+location.host;function createCurrentLocation(u,f){const{pathname:d,search:_,hash:x}=f,I=u.indexOf("#");if(I>-1){let M=x.includes(u.slice(I))?u.slice(I).length:1,S=x.slice(M);return S[0]!=="/"&&(S="/"+S),stripBase(S,"")}return stripBase(d,u)+_+x}function useHistoryListeners(u,f,d,_){let x=[],I=[],E=null;const M=({state:O})=>{const j=createCurrentLocation(u,location),$=d.value,W=f.value;let Q=0;if(O){if(d.value=j,f.value=O,E&&E===$){E=null;return}Q=W?O.position-W.position:0}else _(j);x.forEach(X=>{X(d.value,$,{delta:Q,type:NavigationType.pop,direction:Q?Q>0?NavigationDirection.forward:NavigationDirection.back:NavigationDirection.unknown})})};function S(){E=d.value}function A(O){x.push(O);const j=()=>{const $=x.indexOf(O);$>-1&&x.splice($,1)};return I.push(j),j}function T(){const{history:O}=window;O.state&&O.replaceState(assign$3({},O.state,{scroll:computeScrollPosition()}),"")}function D(){for(const O of I)O();I=[],window.removeEventListener("popstate",M),window.removeEventListener("beforeunload",T)}return window.addEventListener("popstate",M),window.addEventListener("beforeunload",T,{passive:!0}),{pauseListeners:S,listen:A,destroy:D}}function buildState(u,f,d,_=!1,x=!1){return{back:u,current:f,forward:d,replaced:_,position:window.history.length,scroll:x?computeScrollPosition():null}}function useHistoryStateNavigation(u){const{history:f,location:d}=window,_={value:createCurrentLocation(u,d)},x={value:f.state};x.value||I(_.value,{back:null,current:_.value,forward:null,position:f.length-1,replaced:!0,scroll:null},!0);function I(S,A,T){const D=u.indexOf("#"),O=D>-1?(d.host&&document.querySelector("base")?u:u.slice(D))+S:createBaseLocation()+u+S;try{f[T?"replaceState":"pushState"](A,"",O),x.value=A}catch(j){console.error(j),d[T?"replace":"assign"](O)}}function E(S,A){const T=assign$3({},f.state,buildState(x.value.back,S,x.value.forward,!0),A,{position:x.value.position});I(S,T,!0),_.value=S}function M(S,A){const T=assign$3({},x.value,f.state,{forward:S,scroll:computeScrollPosition()});I(T.current,T,!0);const D=assign$3({},buildState(_.value,S,null),{position:T.position+1},A);I(S,D,!1),_.value=S}return{location:_,state:x,push:M,replace:E}}function createWebHistory(u){u=normalizeBase(u);const f=useHistoryStateNavigation(u),d=useHistoryListeners(u,f.state,f.location,f.replace);function _(I,E=!0){E||d.pauseListeners(),history.go(I)}const x=assign$3({location:"",base:u,go:_,createHref:createHref.bind(null,u)},f,d);return Object.defineProperty(x,"location",{enumerable:!0,get:()=>f.location.value}),Object.defineProperty(x,"state",{enumerable:!0,get:()=>f.state.value}),x}function isRouteLocation(u){return typeof u=="string"||u&&typeof u=="object"}function isRouteName(u){return typeof u=="string"||typeof u=="symbol"}const START_LOCATION_NORMALIZED={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},NavigationFailureSymbol=Symbol("");var NavigationFailureType;(function(u){u[u.aborted=4]="aborted",u[u.cancelled=8]="cancelled",u[u.duplicated=16]="duplicated"})(NavigationFailureType||(NavigationFailureType={}));function createRouterError(u,f){return assign$3(new Error,{type:u,[NavigationFailureSymbol]:!0},f)}function isNavigationFailure(u,f){return u instanceof Error&&NavigationFailureSymbol in u&&(f==null||!!(u.type&f))}const BASE_PARAM_PATTERN="[^/]+?",BASE_PATH_PARSER_OPTIONS={sensitive:!1,strict:!1,start:!0,end:!0},REGEX_CHARS_RE=/[.+*?^${}()[\]/\\]/g;function tokensToParser(u,f){const d=assign$3({},BASE_PATH_PARSER_OPTIONS,f),_=[];let x=d.start?"^":"";const I=[];for(const A of u){const T=A.length?[]:[90];d.strict&&!A.length&&(x+="/");for(let D=0;D<A.length;D++){const O=A[D];let j=40+(d.sensitive?.25:0);if(O.type===0)D||(x+="/"),x+=O.value.replace(REGEX_CHARS_RE,"\\$&"),j+=40;else if(O.type===1){const{value:$,repeatable:W,optional:Q,regexp:X}=O;I.push({name:$,repeatable:W,optional:Q});const Y=X||BASE_PARAM_PATTERN;if(Y!==BASE_PARAM_PATTERN){j+=10;try{new RegExp(`(${Y})`)}catch(oe){throw new Error(`Invalid custom RegExp for param "${$}" (${Y}): `+oe.message)}}let ie=W?`((?:${Y})(?:/(?:${Y}))*)`:`(${Y})`;D||(ie=Q&&A.length<2?`(?:/${ie})`:"/"+ie),Q&&(ie+="?"),x+=ie,j+=20,Q&&(j+=-8),W&&(j+=-20),Y===".*"&&(j+=-50)}T.push(j)}_.push(T)}if(d.strict&&d.end){const A=_.length-1;_[A][_[A].length-1]+=.7000000000000001}d.strict||(x+="/?"),d.end?x+="$":d.strict&&(x+="(?:/|$)");const E=new RegExp(x,d.sensitive?"":"i");function M(A){const T=A.match(E),D={};if(!T)return null;for(let O=1;O<T.length;O++){const j=T[O]||"",$=I[O-1];D[$.name]=j&&$.repeatable?j.split("/"):j}return D}function S(A){let T="",D=!1;for(const O of u){(!D||!T.endsWith("/"))&&(T+="/"),D=!1;for(const j of O)if(j.type===0)T+=j.value;else if(j.type===1){const{value:$,repeatable:W,optional:Q}=j,X=$ in A?A[$]:"";if(isArray$5(X)&&!W)throw new Error(`Provided param "${$}" is an array but it is not repeatable (* or + modifiers)`);const Y=isArray$5(X)?X.join("/"):X;if(!Y)if(Q)O.length<2&&(T.endsWith("/")?T=T.slice(0,-1):D=!0);else throw new Error(`Missing required param "${$}"`);T+=Y}}return T||"/"}return{re:E,score:_,keys:I,parse:M,stringify:S}}function compareScoreArray(u,f){let d=0;for(;d<u.length&&d<f.length;){const _=f[d]-u[d];if(_)return _;d++}return u.length<f.length?u.length===1&&u[0]===80?-1:1:u.length>f.length?f.length===1&&f[0]===80?1:-1:0}function comparePathParserScore(u,f){let d=0;const _=u.score,x=f.score;for(;d<_.length&&d<x.length;){const I=compareScoreArray(_[d],x[d]);if(I)return I;d++}if(Math.abs(x.length-_.length)===1){if(isLastScoreNegative(_))return 1;if(isLastScoreNegative(x))return-1}return x.length-_.length}function isLastScoreNegative(u){const f=u[u.length-1];return u.length>0&&f[f.length-1]<0}const ROOT_TOKEN={type:0,value:""},VALID_PARAM_RE=/[a-zA-Z0-9_]/;function tokenizePath(u){if(!u)return[[]];if(u==="/")return[[ROOT_TOKEN]];if(!u.startsWith("/"))throw new Error(`Invalid path "${u}"`);function f(j){throw new Error(`ERR (${d})/"${A}": ${j}`)}let d=0,_=d;const x=[];let I;function E(){I&&x.push(I),I=[]}let M=0,S,A="",T="";function D(){A&&(d===0?I.push({type:0,value:A}):d===1||d===2||d===3?(I.length>1&&(S==="*"||S==="+")&&f(`A repeatable param (${A}) must be alone in its segment. eg: '/:ids+.`),I.push({type:1,value:A,regexp:T,repeatable:S==="*"||S==="+",optional:S==="*"||S==="?"})):f("Invalid state to consume buffer"),A="")}function O(){A+=S}for(;M<u.length;){if(S=u[M++],S==="\\"&&d!==2){_=d,d=4;continue}switch(d){case 0:S==="/"?(A&&D(),E()):S===":"?(D(),d=1):O();break;case 4:O(),d=_;break;case 1:S==="("?d=2:VALID_PARAM_RE.test(S)?O():(D(),d=0,S!=="*"&&S!=="?"&&S!=="+"&&M--);break;case 2:S===")"?T[T.length-1]=="\\"?T=T.slice(0,-1)+S:d=3:T+=S;break;case 3:D(),d=0,S!=="*"&&S!=="?"&&S!=="+"&&M--,T="";break;default:f("Unknown state");break}}return d===2&&f(`Unfinished custom RegExp for param "${A}"`),D(),E(),x}function createRouteRecordMatcher(u,f,d){const _=tokensToParser(tokenizePath(u.path),d),x=assign$3(_,{record:u,parent:f,children:[],alias:[]});return f&&!x.record.aliasOf==!f.record.aliasOf&&f.children.push(x),x}function createRouterMatcher(u,f){const d=[],_=new Map;f=mergeOptions({strict:!1,end:!0,sensitive:!1},f);function x(T){return _.get(T)}function I(T,D,O){const j=!O,$=normalizeRouteRecord(T);$.aliasOf=O&&O.record;const W=mergeOptions(f,T),Q=[$];if("alias"in T){const ie=typeof T.alias=="string"?[T.alias]:T.alias;for(const oe of ie)Q.push(assign$3({},$,{components:O?O.record.components:$.components,path:oe,aliasOf:O?O.record:$}))}let X,Y;for(const ie of Q){const{path:oe}=ie;if(D&&oe[0]!=="/"){const ge=D.record.path,be=ge[ge.length-1]==="/"?"":"/";ie.path=D.record.path+(oe&&be+oe)}if(X=createRouteRecordMatcher(ie,D,W),O?O.alias.push(X):(Y=Y||X,Y!==X&&Y.alias.push(X),j&&T.name&&!isAliasRecord(X)&&E(T.name)),$.children){const ge=$.children;for(let be=0;be<ge.length;be++)I(ge[be],X,O&&O.children[be])}O=O||X,(X.record.components&&Object.keys(X.record.components).length||X.record.name||X.record.redirect)&&S(X)}return Y?()=>{E(Y)}:noop$4}function E(T){if(isRouteName(T)){const D=_.get(T);D&&(_.delete(T),d.splice(d.indexOf(D),1),D.children.forEach(E),D.alias.forEach(E))}else{const D=d.indexOf(T);D>-1&&(d.splice(D,1),T.record.name&&_.delete(T.record.name),T.children.forEach(E),T.alias.forEach(E))}}function M(){return d}function S(T){let D=0;for(;D<d.length&&comparePathParserScore(T,d[D])>=0&&(T.record.path!==d[D].record.path||!isRecordChildOf(T,d[D]));)D++;d.splice(D,0,T),T.record.name&&!isAliasRecord(T)&&_.set(T.record.name,T)}function A(T,D){let O,j={},$,W;if("name"in T&&T.name){if(O=_.get(T.name),!O)throw createRouterError(1,{location:T});W=O.record.name,j=assign$3(paramsFromLocation(D.params,O.keys.filter(Y=>!Y.optional).map(Y=>Y.name)),T.params&&paramsFromLocation(T.params,O.keys.map(Y=>Y.name))),$=O.stringify(j)}else if("path"in T)$=T.path,O=d.find(Y=>Y.re.test($)),O&&(j=O.parse($),W=O.record.name);else{if(O=D.name?_.get(D.name):d.find(Y=>Y.re.test(D.path)),!O)throw createRouterError(1,{location:T,currentLocation:D});W=O.record.name,j=assign$3({},D.params,T.params),$=O.stringify(j)}const Q=[];let X=O;for(;X;)Q.unshift(X.record),X=X.parent;return{name:W,path:$,params:j,matched:Q,meta:mergeMetaFields(Q)}}return u.forEach(T=>I(T)),{addRoute:I,resolve:A,removeRoute:E,getRoutes:M,getRecordMatcher:x}}function paramsFromLocation(u,f){const d={};for(const _ of f)_ in u&&(d[_]=u[_]);return d}function normalizeRouteRecord(u){return{path:u.path,redirect:u.redirect,name:u.name,meta:u.meta||{},aliasOf:void 0,beforeEnter:u.beforeEnter,props:normalizeRecordProps(u),children:u.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in u?u.components||null:u.component&&{default:u.component}}}function normalizeRecordProps(u){const f={},d=u.props||!1;if("component"in u)f.default=d;else for(const _ in u.components)f[_]=typeof d=="object"?d[_]:d;return f}function isAliasRecord(u){for(;u;){if(u.record.aliasOf)return!0;u=u.parent}return!1}function mergeMetaFields(u){return u.reduce((f,d)=>assign$3(f,d.meta),{})}function mergeOptions(u,f){const d={};for(const _ in u)d[_]=_ in f?f[_]:u[_];return d}function isRecordChildOf(u,f){return f.children.some(d=>d===u||isRecordChildOf(u,d))}const HASH_RE=/#/g,AMPERSAND_RE=/&/g,SLASH_RE=/\//g,EQUAL_RE=/=/g,IM_RE=/\?/g,PLUS_RE=/\+/g,ENC_BRACKET_OPEN_RE=/%5B/g,ENC_BRACKET_CLOSE_RE=/%5D/g,ENC_CARET_RE=/%5E/g,ENC_BACKTICK_RE=/%60/g,ENC_CURLY_OPEN_RE=/%7B/g,ENC_PIPE_RE=/%7C/g,ENC_CURLY_CLOSE_RE=/%7D/g,ENC_SPACE_RE=/%20/g;function commonEncode(u){return encodeURI(""+u).replace(ENC_PIPE_RE,"|").replace(ENC_BRACKET_OPEN_RE,"[").replace(ENC_BRACKET_CLOSE_RE,"]")}function encodeHash(u){return commonEncode(u).replace(ENC_CURLY_OPEN_RE,"{").replace(ENC_CURLY_CLOSE_RE,"}").replace(ENC_CARET_RE,"^")}function encodeQueryValue(u){return commonEncode(u).replace(PLUS_RE,"%2B").replace(ENC_SPACE_RE,"+").replace(HASH_RE,"%23").replace(AMPERSAND_RE,"%26").replace(ENC_BACKTICK_RE,"`").replace(ENC_CURLY_OPEN_RE,"{").replace(ENC_CURLY_CLOSE_RE,"}").replace(ENC_CARET_RE,"^")}function encodeQueryKey(u){return encodeQueryValue(u).replace(EQUAL_RE,"%3D")}function encodePath(u){return commonEncode(u).replace(HASH_RE,"%23").replace(IM_RE,"%3F")}function encodeParam(u){return u==null?"":encodePath(u).replace(SLASH_RE,"%2F")}function decode$1(u){try{return decodeURIComponent(""+u)}catch{}return""+u}function parseQuery(u){const f={};if(u===""||u==="?")return f;const _=(u[0]==="?"?u.slice(1):u).split("&");for(let x=0;x<_.length;++x){const I=_[x].replace(PLUS_RE," "),E=I.indexOf("="),M=decode$1(E<0?I:I.slice(0,E)),S=E<0?null:decode$1(I.slice(E+1));if(M in f){let A=f[M];isArray$5(A)||(A=f[M]=[A]),A.push(S)}else f[M]=S}return f}function stringifyQuery(u){let f="";for(let d in u){const _=u[d];if(d=encodeQueryKey(d),_==null){_!==void 0&&(f+=(f.length?"&":"")+d);continue}(isArray$5(_)?_.map(I=>I&&encodeQueryValue(I)):[_&&encodeQueryValue(_)]).forEach(I=>{I!==void 0&&(f+=(f.length?"&":"")+d,I!=null&&(f+="="+I))})}return f}function normalizeQuery(u){const f={};for(const d in u){const _=u[d];_!==void 0&&(f[d]=isArray$5(_)?_.map(x=>x==null?null:""+x):_==null?_:""+_)}return f}const matchedRouteKey=Symbol(""),viewDepthKey=Symbol(""),routerKey=Symbol(""),routeLocationKey=Symbol(""),routerViewLocationKey=Symbol("");function useCallbacks(){let u=[];function f(_){return u.push(_),()=>{const x=u.indexOf(_);x>-1&&u.splice(x,1)}}function d(){u=[]}return{add:f,list:()=>u.slice(),reset:d}}function guardToPromiseFn(u,f,d,_,x){const I=_&&(_.enterCallbacks[x]=_.enterCallbacks[x]||[]);return()=>new Promise((E,M)=>{const S=D=>{D===!1?M(createRouterError(4,{from:d,to:f})):D instanceof Error?M(D):isRouteLocation(D)?M(createRouterError(2,{from:f,to:D})):(I&&_.enterCallbacks[x]===I&&typeof D=="function"&&I.push(D),E())},A=u.call(_&&_.instances[x],f,d,S);let T=Promise.resolve(A);u.length<3&&(T=T.then(S)),T.catch(D=>M(D))})}function extractComponentsGuards(u,f,d,_){const x=[];for(const I of u)for(const E in I.components){let M=I.components[E];if(!(f!=="beforeRouteEnter"&&!I.instances[E]))if(isRouteComponent(M)){const A=(M.__vccOpts||M)[f];A&&x.push(guardToPromiseFn(A,d,_,I,E))}else{let S=M();x.push(()=>S.then(A=>{if(!A)return Promise.reject(new Error(`Couldn't resolve component "${E}" at "${I.path}"`));const T=isESModule(A)?A.default:A;I.components[E]=T;const O=(T.__vccOpts||T)[f];return O&&guardToPromiseFn(O,d,_,I,E)()}))}}return x}function isRouteComponent(u){return typeof u=="object"||"displayName"in u||"props"in u||"__vccOpts"in u}function useLink(u){const f=inject(routerKey),d=inject(routeLocationKey),_=computed(()=>f.resolve(unref(u.to))),x=computed(()=>{const{matched:S}=_.value,{length:A}=S,T=S[A-1],D=d.matched;if(!T||!D.length)return-1;const O=D.findIndex(isSameRouteRecord.bind(null,T));if(O>-1)return O;const j=getOriginalPath(S[A-2]);return A>1&&getOriginalPath(T)===j&&D[D.length-1].path!==j?D.findIndex(isSameRouteRecord.bind(null,S[A-2])):O}),I=computed(()=>x.value>-1&&includesParams(d.params,_.value.params)),E=computed(()=>x.value>-1&&x.value===d.matched.length-1&&isSameRouteLocationParams(d.params,_.value.params));function M(S={}){return guardEvent(S)?f[unref(u.replace)?"replace":"push"](unref(u.to)).catch(noop$4):Promise.resolve()}return{route:_,href:computed(()=>_.value.href),isActive:I,isExactActive:E,navigate:M}}const RouterLinkImpl=defineComponent({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink,setup(u,{slots:f}){const d=reactive(useLink(u)),{options:_}=inject(routerKey),x=computed(()=>({[getLinkClass(u.activeClass,_.linkActiveClass,"router-link-active")]:d.isActive,[getLinkClass(u.exactActiveClass,_.linkExactActiveClass,"router-link-exact-active")]:d.isExactActive}));return()=>{const I=f.default&&f.default(d);return u.custom?I:h$1("a",{"aria-current":d.isExactActive?u.ariaCurrentValue:null,href:d.href,onClick:d.navigate,class:x.value},I)}}}),RouterLink=RouterLinkImpl;function guardEvent(u){if(!(u.metaKey||u.altKey||u.ctrlKey||u.shiftKey)&&!u.defaultPrevented&&!(u.button!==void 0&&u.button!==0)){if(u.currentTarget&&u.currentTarget.getAttribute){const f=u.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(f))return}return u.preventDefault&&u.preventDefault(),!0}}function includesParams(u,f){for(const d in f){const _=f[d],x=u[d];if(typeof _=="string"){if(_!==x)return!1}else if(!isArray$5(x)||x.length!==_.length||_.some((I,E)=>I!==x[E]))return!1}return!0}function getOriginalPath(u){return u?u.aliasOf?u.aliasOf.path:u.path:""}const getLinkClass=(u,f,d)=>u??f??d,RouterViewImpl=defineComponent({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(u,{attrs:f,slots:d}){const _=inject(routerViewLocationKey),x=computed(()=>u.route||_.value),I=inject(viewDepthKey,0),E=computed(()=>{let A=unref(I);const{matched:T}=x.value;let D;for(;(D=T[A])&&!D.components;)A++;return A}),M=computed(()=>x.value.matched[E.value]);provide(viewDepthKey,computed(()=>E.value+1)),provide(matchedRouteKey,M),provide(routerViewLocationKey,x);const S=ref();return watch(()=>[S.value,M.value,u.name],([A,T,D],[O,j,$])=>{T&&(T.instances[D]=A,j&&j!==T&&A&&A===O&&(T.leaveGuards.size||(T.leaveGuards=j.leaveGuards),T.updateGuards.size||(T.updateGuards=j.updateGuards))),A&&T&&(!j||!isSameRouteRecord(T,j)||!O)&&(T.enterCallbacks[D]||[]).forEach(W=>W(A))},{flush:"post"}),()=>{const A=x.value,T=u.name,D=M.value,O=D&&D.components[T];if(!O)return normalizeSlot(d.default,{Component:O,route:A});const j=D.props[T],$=j?j===!0?A.params:typeof j=="function"?j(A):j:null,Q=h$1(O,assign$3({},$,f,{onVnodeUnmounted:X=>{X.component.isUnmounted&&(D.instances[T]=null)},ref:S}));return normalizeSlot(d.default,{Component:Q,route:A})||Q}}});function normalizeSlot(u,f){if(!u)return null;const d=u(f);return d.length===1?d[0]:d}const RouterView=RouterViewImpl;function createRouter(u){const f=createRouterMatcher(u.routes,u),d=u.parseQuery||parseQuery,_=u.stringifyQuery||stringifyQuery,x=u.history,I=useCallbacks(),E=useCallbacks(),M=useCallbacks(),S=shallowRef(START_LOCATION_NORMALIZED);let A=START_LOCATION_NORMALIZED;isBrowser$1&&u.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const T=applyToParams.bind(null,Qe=>""+Qe),D=applyToParams.bind(null,encodeParam),O=applyToParams.bind(null,decode$1);function j(Qe,vt){let ri,ci;return isRouteName(Qe)?(ri=f.getRecordMatcher(Qe),ci=vt):ci=Qe,f.addRoute(ci,ri)}function $(Qe){const vt=f.getRecordMatcher(Qe);vt&&f.removeRoute(vt)}function W(){return f.getRoutes().map(Qe=>Qe.record)}function Q(Qe){return!!f.getRecordMatcher(Qe)}function X(Qe,vt){if(vt=assign$3({},vt||S.value),typeof Qe=="string"){const Le=parseURL(d,Qe,vt.path),ot=f.resolve({path:Le.path},vt),Oe=x.createHref(Le.fullPath);return assign$3(Le,ot,{params:O(ot.params),hash:decode$1(Le.hash),redirectedFrom:void 0,href:Oe})}let ri;if("path"in Qe)ri=assign$3({},Qe,{path:parseURL(d,Qe.path,vt.path).path});else{const Le=assign$3({},Qe.params);for(const ot in Le)Le[ot]==null&&delete Le[ot];ri=assign$3({},Qe,{params:D(Le)}),vt.params=D(vt.params)}const ci=f.resolve(ri,vt),tt=Qe.hash||"";ci.params=T(O(ci.params));const et=stringifyURL(_,assign$3({},Qe,{hash:encodeHash(tt),path:ci.path})),$e=x.createHref(et);return assign$3({fullPath:et,hash:tt,query:_===stringifyQuery?normalizeQuery(Qe.query):Qe.query||{}},ci,{redirectedFrom:void 0,href:$e})}function Y(Qe){return typeof Qe=="string"?parseURL(d,Qe,S.value.path):assign$3({},Qe)}function ie(Qe,vt){if(A!==Qe)return createRouterError(8,{from:vt,to:Qe})}function oe(Qe){return ze(Qe)}function ge(Qe){return oe(assign$3(Y(Qe),{replace:!0}))}function be(Qe){const vt=Qe.matched[Qe.matched.length-1];if(vt&&vt.redirect){const{redirect:ri}=vt;let ci=typeof ri=="function"?ri(Qe):ri;return typeof ci=="string"&&(ci=ci.includes("?")||ci.includes("#")?ci=Y(ci):{path:ci},ci.params={}),assign$3({query:Qe.query,hash:Qe.hash,params:"path"in ci?{}:Qe.params},ci)}}function ze(Qe,vt){const ri=A=X(Qe),ci=S.value,tt=Qe.state,et=Qe.force,$e=Qe.replace===!0,Le=be(ri);if(Le)return ze(assign$3(Y(Le),{state:typeof Le=="object"?assign$3({},tt,Le.state):tt,force:et,replace:$e}),vt||ri);const ot=ri;ot.redirectedFrom=vt;let Oe;return!et&&isSameRouteLocation(_,ci,ri)&&(Oe=createRouterError(16,{to:ot,from:ci}),U(ci,ci,!0,!1)),(Oe?Promise.resolve(Oe):ke(ot,ci)).catch(Ne=>isNavigationFailure(Ne)?isNavigationFailure(Ne,2)?Ne:J(Ne):H(Ne,ot,ci)).then(Ne=>{if(Ne){if(isNavigationFailure(Ne,2))return ze(assign$3({replace:$e},Y(Ne.to),{state:typeof Ne.to=="object"?assign$3({},tt,Ne.to.state):tt,force:et}),vt||ot)}else Ne=re(ot,ci,!0,$e,tt);return le(ot,ci,Ne),Ne})}function de(Qe,vt){const ri=ie(Qe,vt);return ri?Promise.reject(ri):Promise.resolve()}function Ce(Qe){const vt=Ye.values().next().value;return vt&&typeof vt.runWithContext=="function"?vt.runWithContext(Qe):Qe()}function ke(Qe,vt){let ri;const[ci,tt,et]=extractChangingRecords(Qe,vt);ri=extractComponentsGuards(ci.reverse(),"beforeRouteLeave",Qe,vt);for(const Le of ci)Le.leaveGuards.forEach(ot=>{ri.push(guardToPromiseFn(ot,Qe,vt))});const $e=de.bind(null,Qe,vt);return ri.push($e),Ue(ri).then(()=>{ri=[];for(const Le of I.list())ri.push(guardToPromiseFn(Le,Qe,vt));return ri.push($e),Ue(ri)}).then(()=>{ri=extractComponentsGuards(tt,"beforeRouteUpdate",Qe,vt);for(const Le of tt)Le.updateGuards.forEach(ot=>{ri.push(guardToPromiseFn(ot,Qe,vt))});return ri.push($e),Ue(ri)}).then(()=>{ri=[];for(const Le of et)if(Le.beforeEnter)if(isArray$5(Le.beforeEnter))for(const ot of Le.beforeEnter)ri.push(guardToPromiseFn(ot,Qe,vt));else ri.push(guardToPromiseFn(Le.beforeEnter,Qe,vt));return ri.push($e),Ue(ri)}).then(()=>(Qe.matched.forEach(Le=>Le.enterCallbacks={}),ri=extractComponentsGuards(et,"beforeRouteEnter",Qe,vt),ri.push($e),Ue(ri))).then(()=>{ri=[];for(const Le of E.list())ri.push(guardToPromiseFn(Le,Qe,vt));return ri.push($e),Ue(ri)}).catch(Le=>isNavigationFailure(Le,8)?Le:Promise.reject(Le))}function le(Qe,vt,ri){M.list().forEach(ci=>Ce(()=>ci(Qe,vt,ri)))}function re(Qe,vt,ri,ci,tt){const et=ie(Qe,vt);if(et)return et;const $e=vt===START_LOCATION_NORMALIZED,Le=isBrowser$1?history.state:{};ri&&(ci||$e?x.replace(Qe.fullPath,assign$3({scroll:$e&&Le&&Le.scroll},tt)):x.push(Qe.fullPath,tt)),S.value=Qe,U(Qe,vt,ri,$e),J()}let P;function k(){P||(P=x.listen((Qe,vt,ri)=>{if(!rt.listening)return;const ci=X(Qe),tt=be(ci);if(tt){ze(assign$3(tt,{replace:!0}),ci).catch(noop$4);return}A=ci;const et=S.value;isBrowser$1&&saveScrollPosition(getScrollKey(et.fullPath,ri.delta),computeScrollPosition()),ke(ci,et).catch($e=>isNavigationFailure($e,12)?$e:isNavigationFailure($e,2)?(ze($e.to,ci).then(Le=>{isNavigationFailure(Le,20)&&!ri.delta&&ri.type===NavigationType.pop&&x.go(-1,!1)}).catch(noop$4),Promise.reject()):(ri.delta&&x.go(-ri.delta,!1),H($e,ci,et))).then($e=>{$e=$e||re(ci,et,!1),$e&&(ri.delta&&!isNavigationFailure($e,8)?x.go(-ri.delta,!1):ri.type===NavigationType.pop&&isNavigationFailure($e,20)&&x.go(-1,!1)),le(ci,et,$e)}).catch(noop$4)}))}let B=useCallbacks(),z=useCallbacks(),ee;function H(Qe,vt,ri){J(Qe);const ci=z.list();return ci.length?ci.forEach(tt=>tt(Qe,vt,ri)):console.error(Qe),Promise.reject(Qe)}function q(){return ee&&S.value!==START_LOCATION_NORMALIZED?Promise.resolve():new Promise((Qe,vt)=>{B.add([Qe,vt])})}function J(Qe){return ee||(ee=!Qe,k(),B.list().forEach(([vt,ri])=>Qe?ri(Qe):vt()),B.reset()),Qe}function U(Qe,vt,ri,ci){const{scrollBehavior:tt}=u;if(!isBrowser$1||!tt)return Promise.resolve();const et=!ri&&getSavedScrollPosition(getScrollKey(Qe.fullPath,0))||(ci||!ri)&&history.state&&history.state.scroll||null;return nextTick$2().then(()=>tt(Qe,vt,et)).then($e=>$e&&scrollToPosition($e)).catch($e=>H($e,Qe,vt))}const Z=Qe=>x.go(Qe);let ve;const Ye=new Set,rt={currentRoute:S,listening:!0,addRoute:j,removeRoute:$,hasRoute:Q,getRoutes:W,resolve:X,options:u,push:oe,replace:ge,go:Z,back:()=>Z(-1),forward:()=>Z(1),beforeEach:I.add,beforeResolve:E.add,afterEach:M.add,onError:z.add,isReady:q,install(Qe){const vt=this;Qe.component("RouterLink",RouterLink),Qe.component("RouterView",RouterView),Qe.config.globalProperties.$router=vt,Object.defineProperty(Qe.config.globalProperties,"$route",{enumerable:!0,get:()=>unref(S)}),isBrowser$1&&!ve&&S.value===START_LOCATION_NORMALIZED&&(ve=!0,oe(x.location).catch(tt=>{}));const ri={};for(const tt in START_LOCATION_NORMALIZED)Object.defineProperty(ri,tt,{get:()=>S.value[tt],enumerable:!0});Qe.provide(routerKey,vt),Qe.provide(routeLocationKey,shallowReactive(ri)),Qe.provide(routerViewLocationKey,S);const ci=Qe.unmount;Ye.add(Qe),Qe.unmount=function(){Ye.delete(Qe),Ye.size<1&&(A=START_LOCATION_NORMALIZED,P&&P(),P=null,S.value=START_LOCATION_NORMALIZED,ve=!1,ee=!1),ci()}}};function Ue(Qe){return Qe.reduce((vt,ri)=>vt.then(()=>Ce(ri)),Promise.resolve())}return rt}function extractChangingRecords(u,f){const d=[],_=[],x=[],I=Math.max(f.matched.length,u.matched.length);for(let E=0;E<I;E++){const M=f.matched[E];M&&(u.matched.find(A=>isSameRouteRecord(A,M))?_.push(M):d.push(M));const S=u.matched[E];S&&(f.matched.find(A=>isSameRouteRecord(A,S))||x.push(S))}return[d,_,x]}function useRouter(){return inject(routerKey)}function useRoute(){return inject(routeLocationKey)}const scriptRel="modulepreload",assetsURL=function(u){return"/"+u},seen={},__vitePreload=function(f,d,_){let x=Promise.resolve();if(d&&d.length>0){const I=document.getElementsByTagName("link");x=Promise.all(d.map(E=>{if(E=assetsURL(E),E in seen)return;seen[E]=!0;const M=E.endsWith(".css"),S=M?'[rel="stylesheet"]':"";if(!!_)for(let D=I.length-1;D>=0;D--){const O=I[D];if(O.href===E&&(!M||O.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${E}"]${S}`))return;const T=document.createElement("link");if(T.rel=M?"stylesheet":scriptRel,M||(T.as="script",T.crossOrigin=""),T.href=E,document.head.appendChild(T),M)return new Promise((D,O)=>{T.addEventListener("load",D),T.addEventListener("error",()=>O(new Error(`Unable to preload CSS for ${E}`)))})}))}return x.then(()=>f()).catch(I=>{const E=new Event("vite:preloadError",{cancelable:!0});if(E.payload=I,window.dispatchEvent(E),!E.defaultPrevented)throw I})};var __defProp2=Object.defineProperty,__defNormalProp2=(u,f,d)=>f in u?__defProp2(u,f,{enumerable:!0,configurable:!0,writable:!0,value:d}):u[f]=d,__publicField2=(u,f,d)=>(__defNormalProp2(u,typeof f!="symbol"?f+"":f,d),d);class BaseTheme{}class LightTheme extends BaseTheme{constructor(){super(...arguments),__publicField2(this,"main","#6440DD"),__publicField2(this,"sub","#5934D8"),__publicField2(this,"positive","#1968E5"),__publicField2(this,"notice","#F5222D"),__publicField2(this,"input_error","rgba(245, 34, 45, 0.05)"),__publicField2(this,"toast","rgba(44, 36, 70, 0.8)"),__publicField2(this,"toast_txt","#FFFFFF"),__publicField2(this,"header_fff","#FFFFFF"),__publicField2(this,"gnbtxt_fff","#FFFFFF"),__publicField2(this,"code","#27C4B8"),__publicField2(this,"dimmed","rgba(0, 0, 0, 0.8)"),__publicField2(this,"bg_main","#F5F6F8"),__publicField2(this,"bg_gnb","#6440DD"),__publicField2(this,"bg_noti","#F2F4F7"),__publicField2(this,"bg_noti2","rgba(98, 126, 234, 0.1)"),__publicField2(this,"bg_disable","#DBD6EB"),__publicField2(this,"bg_sub_light","#f8f6ff"),__publicField2(this,"bg_sub","#EEEBFF"),__publicField2(this,"bg_trans","#FFFFFFF"),__publicField2(this,"bg_box","#e7e9ef"),__publicField2(this,"bg_tab_focused","#f7f7f7"),__publicField2(this,"line_01","#E7E9EF"),__publicField2(this,"line_02","#CFD4DD"),__publicField2(this,"line_03","#D5D8DD"),__publicField2(this,"grey_111","#111111"),__publicField2(this,"grey_222","#222222"),__publicField2(this,"grey_2c2","rgba(44, 36, 70, 0.8)"),__publicField2(this,"grey_333","#333333"),__publicField2(this,"grey_333_30","rgba(51, 51, 51, 0.3)"),__publicField2(this,"grey_666","#666666"),__publicField2(this,"grey_999","#999999"),__publicField2(this,"grey_bbb","#BBBBBB"),__publicField2(this,"grey_ccc","#CCCCCC"),__publicField2(this,"grey_d9d","#D9D9D9"),__publicField2(this,"grey_ece","#ECECEC"),__publicField2(this,"grey_f4f","#F4F4F4"),__publicField2(this,"grey_fff","#FFFFFF"),__publicField2(this,"grey_fff_10","rgba(255, 255, 255, 0.1)"),__publicField2(this,"grey_fff_20","rgba(255, 255, 255, 0.2)"),__publicField2(this,"grey_fff_50","rgba(255, 255, 255, 0.5)"),__publicField2(this,"grey_fff_80","rgba(255, 255, 255, 0.8)"),__publicField2(this,"random_color_01","#C38AFF"),__publicField2(this,"random_color_02","#FFA138"),__publicField2(this,"random_color_03","#8E8DFB"),__publicField2(this,"random_color_04","#27C4B8"),__publicField2(this,"random_color_05","#FFD953"),__publicField2(this,"dark","#393939"),__publicField2(this,"mono","#CCCCCC"),__publicField2(this,"pastel","#8E8DFB"),__publicField2(this,"neutral","#707F91"),__publicField2(this,"woody","#9F8A7F")}}class DarkTheme extends BaseTheme{constructor(){super(...arguments),__publicField2(this,"main","#7952FF"),__publicField2(this,"sub","#5934D8"),__publicField2(this,"positive","#1968E5"),__publicField2(this,"notice","#F5222D"),__publicField2(this,"input_error","rgba(245, 34, 45, 0.05)"),__publicField2(this,"toast","rgba(59, 29, 165, 0.8)"),__publicField2(this,"toast_txt","#FFFFFF"),__publicField2(this,"header_fff","#FFFFFF"),__publicField2(this,"gnbtxt_fff","#FFFFFF"),__publicField2(this,"code","#27C4B8"),__publicField2(this,"dimmed","rgba(0, 0, 0, 0.8)"),__publicField2(this,"bg_main","#111111"),__publicField2(this,"bg_gnb","#222222"),__publicField2(this,"bg_noti","#222222"),__publicField2(this,"bg_noti2","rgba(98, 126, 234, 0.1)"),__publicField2(this,"bg_disable","#302E34"),__publicField2(this,"bg_sub","#272727"),__publicField2(this,"bg_sub_light","#f8f6ff"),__publicField2(this,"bg_trans","#D42A21"),__publicField2(this,"bg_box","#212121"),__publicField2(this,"bg_tab_focused","#f7f7f7"),__publicField2(this,"line_01","#212121"),__publicField2(this,"line_02","#3C3C3C"),__publicField2(this,"line_03","#212121"),__publicField2(this,"grey_111","#FFFFFF"),__publicField2(this,"grey_222","#FFFFFF"),__publicField2(this,"grey_2c2","rgba(236, 236, 236, 0.4)"),__publicField2(this,"grey_333","#333333"),__publicField2(this,"grey_333_30","rgba(51, 51, 51, 0.3)"),__publicField2(this,"grey_666","#999999"),__publicField2(this,"grey_999","#999999"),__publicField2(this,"grey_bbb","#BBBBBB"),__publicField2(this,"grey_ccc","#CCCCCC"),__publicField2(this,"grey_d9d","#D9D9D9"),__publicField2(this,"grey_ece","#ECECEC"),__publicField2(this,"grey_f4f","#2E2E2E"),__publicField2(this,"grey_fff","#181818"),__publicField2(this,"grey_fff_10","rgba(255, 255, 255, 0.1)"),__publicField2(this,"grey_fff_20","rgba(255, 255, 255, 0.2)"),__publicField2(this,"grey_fff_50","rgba(255, 255, 255, 0.5)"),__publicField2(this,"grey_fff_80","rgba(255, 255, 255, 0.8)"),__publicField2(this,"random_color_01","#C38AFF"),__publicField2(this,"random_color_02","#FFA138"),__publicField2(this,"random_color_03","#8E8DFB"),__publicField2(this,"random_color_04","#27C4B8"),__publicField2(this,"random_color_05","#FFD953"),__publicField2(this,"dark","#393939"),__publicField2(this,"mono","#CCCCCC"),__publicField2(this,"pastel","#8E8DFB"),__publicField2(this,"neutral","#707F91"),__publicField2(this,"woody","#9F8A7F")}}const themeTypeMap={light:LightTheme,dark:DarkTheme};class Colors{constructor(){__publicField2(this,"themeType"),__publicField2(this,"_currentTheme"),__publicField2(this,"styleTag"),__publicField2(this,"currentThemeRef"),this.styleTag=document.head.appendChild(document.createElement("style")),this.currentThemeRef=ref(this._currentTheme),this.setThemeType("light")}setThemeType(f){this.themeType=f,this._currentTheme=new themeTypeMap[f],this.currentThemeRef.value=this._currentTheme,this.injectStyleToRoot()}getThemeType(){return this.themeType}get currentTheme(){return this._currentTheme}injectStyleToRoot(){let f="";for(const[d,_]of Object.entries(this.currentTheme))f=f.concat(`--${d}: ${_};
`);this.styleTag.innerHTML=`:root {
${f}}`}}const colors=new Colors,_export_sfc$1=(u,f)=>{const d=u.__vccOpts||u;for(const[_,x]of f)d[_]=x;return d},__variableDynamicImportRuntimeHelper$1=(u,f)=>{const d=u[f];return d?typeof d=="function"?d():Promise.resolve(d):new Promise((_,x)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(x.bind(null,new Error("Unknown variable dynamic import: "+f)))})},_hoisted_1$2z=["href"],_sfc_main$34=defineComponent({__name:"DashboardIcon",props:{name:{default:"mail.send.complete"},size:{default:"auto"},cursor:{type:Boolean,default:!1},hover:{type:Boolean,default:!1},iWidth:{},iHeight:{}},setup(u){const f=u,d=ref("");onBeforeMount(async()=>{const x=await __variableDynamicImportRuntimeHelper$1(Object.assign({"../../../assets/android.svg":()=>__vitePreload(()=>import("./android-3c665a31-i82dU8_2.js"),__vite__mapDeps([])),"../../../assets/apple.black.circle.svg":()=>__vitePreload(()=>import("./apple.black.circle-fa9e4974--SLlC9Wf.js"),__vite__mapDeps([])),"../../../assets/apple.white.circle.svg":()=>__vitePreload(()=>import("./apple.white.circle-61126ef8-0tuYmmHQ.js"),__vite__mapDeps([])),"../../../assets/apple_icon.svg":()=>__vitePreload(()=>import("./apple_icon-5fc4fa12-L9bXy8WF.js"),__vite__mapDeps([])),"../../../assets/arrow.drop.down.svg":()=>__vitePreload(()=>import("./arrow.drop.down-f3cfb908-9ANOFfcQ.js"),__vite__mapDeps([])),"../../../assets/background_logo.svg":()=>Promise.resolve().then(()=>background_logo),"../../../assets/ban.svg":()=>Promise.resolve().then(()=>ban),"../../../assets/board.active.svg":()=>__vitePreload(()=>import("./board.active-76acfceb-N1O07KUw.js"),__vite__mapDeps([])),"../../../assets/board.svg":()=>__vitePreload(()=>import("./board-e01fa7de-4rtuXF39.js"),__vite__mapDeps([])),"../../../assets/caret.down.filled.svg":()=>__vitePreload(()=>import("./caret.down.filled-75c6296c-egMiLVZZ.js"),__vite__mapDeps([])),"../../../assets/caret.down.svg":()=>__vitePreload(()=>import("./caret.down-3787049d-aP6K8ysZ.js"),__vite__mapDeps([])),"../../../assets/caret.left.48.svg":()=>__vitePreload(()=>import("./caret.left.48-b0980376-ttCJaMnU.js"),__vite__mapDeps([])),"../../../assets/caret.left.svg":()=>__vitePreload(()=>import("./caret.left-94ce922f-w8B1-dIv.js"),__vite__mapDeps([])),"../../../assets/caret.right.24.svg":()=>__vitePreload(()=>import("./caret.right.24-a427be00-4qJ45bsF.js"),__vite__mapDeps([])),"../../../assets/caret.right.48.svg":()=>__vitePreload(()=>import("./caret.right.48-da606805-yO154K1F.js"),__vite__mapDeps([])),"../../../assets/caret.right.svg":()=>__vitePreload(()=>import("./caret.right-37f42fab-yT9BeV4g.js"),__vite__mapDeps([])),"../../../assets/caret.up.svg":()=>__vitePreload(()=>import("./caret.up-f0426ee1-rWvPUktU.js"),__vite__mapDeps([])),"../../../assets/chart.active.svg":()=>__vitePreload(()=>import("./chart.active-7fac20b6-L_0XtxiQ.js"),__vite__mapDeps([])),"../../../assets/chart.svg":()=>__vitePreload(()=>import("./chart-4de990a2-s8L5Se3t.js"),__vite__mapDeps([])),"../../../assets/check.active.svg":()=>__vitePreload(()=>import("./check.active-0d55ab56-VXw39Ody.js"),__vite__mapDeps([])),"../../../assets/check.inbox.svg":()=>__vitePreload(()=>import("./check.inbox-8523c779-PWYSO8rw.js"),__vite__mapDeps([])),"../../../assets/check.svg":()=>__vitePreload(()=>import("./check-d3038bee-6fNtiBS_.js"),__vite__mapDeps([])),"../../../assets/circle.check.svg":()=>__vitePreload(()=>import("./circle.check-f07b8eb0-dl0GACYI.js"),__vite__mapDeps([])),"../../../assets/circle.gray.tab.svg":()=>__vitePreload(()=>import("./circle.gray.tab-4e7ded3d-EsO9AvjK.js"),__vite__mapDeps([])),"../../../assets/circle.purple.tab.svg":()=>__vitePreload(()=>import("./circle.purple.tab-86305ec5-bQG1qj3L.js"),__vite__mapDeps([])),"../../../assets/close.svg":()=>__vitePreload(()=>import("./close-2cbb9f10-E6QXtpLH.js"),__vite__mapDeps([])),"../../../assets/coins.active.svg":()=>__vitePreload(()=>import("./coins.active-2d64d8c5-La2WMHJR.js"),__vite__mapDeps([])),"../../../assets/coins.svg":()=>__vitePreload(()=>import("./coins-df013758-LDgOcQIU.js"),__vite__mapDeps([])),"../../../assets/comment.svg":()=>__vitePreload(()=>import("./comment-59fc2e6d-KSk23WZB.js"),__vite__mapDeps([])),"../../../assets/contactus.svg":()=>Promise.resolve().then(()=>contactus),"../../../assets/copy.svg":()=>__vitePreload(()=>import("./copy-09f7ef01-hBnPSwgI.js"),__vite__mapDeps([])),"../../../assets/crown.svg":()=>__vitePreload(()=>import("./crown-689095b7-Xgv3ow4o.js"),__vite__mapDeps([])),"../../../assets/dev_guide.svg":()=>Promise.resolve().then(()=>dev_guide),"../../../assets/discord.white.circle.svg":()=>__vitePreload(()=>import("./discord.white.circle-4cd989a9-pV0CtH3r.js"),__vite__mapDeps([])),"../../../assets/discord_icon.svg":()=>__vitePreload(()=>import("./discord_icon-556f3b72-KTJ3-TjD.js"),__vite__mapDeps([])),"../../../assets/download.svg":()=>__vitePreload(()=>import("./download-ee3a36af-Q3hsy2E8.js"),__vite__mapDeps([])),"../../../assets/earth.svg":()=>__vitePreload(()=>import("./earth-eb724b77-9fWcg44U.js"),__vite__mapDeps([])),"../../../assets/ellipse.error.svg":()=>__vitePreload(()=>import("./ellipse.error-fca92461-EkScTxaQ.js"),__vite__mapDeps([])),"../../../assets/ellipse.pupple.svg":()=>__vitePreload(()=>import("./ellipse.pupple-a7a45c98-pYBThp1R.js"),__vite__mapDeps([])),"../../../assets/email.shadow.svg":()=>__vitePreload(()=>import("./email.shadow-a3bd2b00-iF_TOkkp.js"),__vite__mapDeps([])),"../../../assets/email.svg":()=>__vitePreload(()=>import("./email-946b4036-ZMzqBijp.js"),__vite__mapDeps([])),"../../../assets/empty_image.svg":()=>__vitePreload(()=>import("./empty_image-e85b000c-Ddbcm-Fo.js"),__vite__mapDeps([])),"../../../assets/exit.svg":()=>__vitePreload(()=>import("./exit-7cf91714-VLKOS28G.js"),__vite__mapDeps([])),"../../../assets/gear.active.svg":()=>__vitePreload(()=>import("./gear.active-7e23239b-nQreYSdV.js"),__vite__mapDeps([])),"../../../assets/gear.svg":()=>__vitePreload(()=>import("./gear-37790bde-e0TsgoTr.js"),__vite__mapDeps([])),"../../../assets/gift_box.svg":()=>Promise.resolve().then(()=>gift_box),"../../../assets/gold_trophy.svg":()=>__vitePreload(()=>import("./gold_trophy-1e6c1f7b-LqfpqMWg.js"),__vite__mapDeps([])),"../../../assets/google.svg":()=>__vitePreload(()=>import("./google-14f75277-twbXk6zi.js"),__vite__mapDeps([])),"../../../assets/google.white.circle.svg":()=>__vitePreload(()=>import("./google.white.circle-153c87e3-EFqPtO3Y.js"),__vite__mapDeps([])),"../../../assets/google_icon.svg":()=>Promise.resolve().then(()=>google_icon),"../../../assets/hidden.off.svg":()=>__vitePreload(()=>import("./hidden.off-10e48467-MEDWWpf5.js"),__vite__mapDeps([])),"../../../assets/hidden.svg":()=>__vitePreload(()=>import("./hidden-c168f8af-aIawGP02.js"),__vite__mapDeps([])),"../../../assets/home.active.svg":()=>__vitePreload(()=>import("./home.active-03059916-tHKhE9y7.js"),__vite__mapDeps([])),"../../../assets/home.svg":()=>__vitePreload(()=>import("./home-64a24af5-tebkl1bk.js"),__vite__mapDeps([])),"../../../assets/hue.active.svg":()=>__vitePreload(()=>import("./hue.active-500605b3-4LgjWWh4.js"),__vite__mapDeps([])),"../../../assets/hue.svg":()=>__vitePreload(()=>import("./hue-94e9289a-67_ymHRb.js"),__vite__mapDeps([])),"../../../assets/image.svg":()=>__vitePreload(()=>import("./image-cc5bfc6d-WRE5kjkr.js"),__vite__mapDeps([])),"../../../assets/info.svg":()=>__vitePreload(()=>import("./info-479a54a7-dcxwr_zp.js"),__vite__mapDeps([])),"../../../assets/ios.svg":()=>__vitePreload(()=>import("./ios-057d38eb-_u3O85Xi.js"),__vite__mapDeps([])),"../../../assets/layout.block.act.svg":()=>__vitePreload(()=>import("./layout.block.act-0186f75d-vvJN95-y.js"),__vite__mapDeps([])),"../../../assets/layout.block.svg":()=>__vitePreload(()=>import("./layout.block-e5665c47-BU4R0F1g.js"),__vite__mapDeps([])),"../../../assets/layout.list.act.svg":()=>__vitePreload(()=>import("./layout.list.act-fd1035fd-5W4jvDGQ.js"),__vite__mapDeps([])),"../../../assets/layout.list.svg":()=>__vitePreload(()=>import("./layout.list-8a0bcdeb-r2rOZyE7.js"),__vite__mapDeps([])),"../../../assets/link.svg":()=>__vitePreload(()=>import("./link-0f97c560-h1SNgXok.js"),__vite__mapDeps([])),"../../../assets/list.active.svg":()=>__vitePreload(()=>import("./list.active-3ca5b10d-EaRTGOGo.js"),__vite__mapDeps([])),"../../../assets/list.svg":()=>__vitePreload(()=>import("./list-f2e7a8f7-T7ZXeLUK.js"),__vite__mapDeps([])),"../../../assets/logo.basic.svg":()=>__vitePreload(()=>import("./logo.basic-cb005cdb-7o3asIc-.js"),__vite__mapDeps([])),"../../../assets/logo.white.svg":()=>__vitePreload(()=>import("./logo.white-983795c4-HC5HP7C7.js"),__vite__mapDeps([])),"../../../assets/magnifier.svg":()=>__vitePreload(()=>import("./magnifier-3ecb93a5-sGtRm9AZ.js"),__vite__mapDeps([])),"../../../assets/mail.send.complete.svg":()=>__vitePreload(()=>import("./mail.send.complete-ff76e967-C9kQe3l7.js"),__vite__mapDeps([])),"../../../assets/manager.active.svg":()=>__vitePreload(()=>import("./manager.active-b16efd85-ydK1tnwc.js"),__vite__mapDeps([])),"../../../assets/manager.svg":()=>__vitePreload(()=>import("./manager-f10ed0bb-i70MUduh.js"),__vite__mapDeps([])),"../../../assets/menu.kebab.grey.svg":()=>__vitePreload(()=>import("./menu.kebab.grey-39de04ec-xkDCDoMq.js"),__vite__mapDeps([])),"../../../assets/menu.kebab.svg":()=>__vitePreload(()=>import("./menu.kebab-a8e406e2-PXMMLsFs.js"),__vite__mapDeps([])),"../../../assets/naver.white.circle.svg":()=>__vitePreload(()=>import("./naver.white.circle-6e2165dc-eeq2qiiQ.js"),__vite__mapDeps([])),"../../../assets/naver_icon.svg":()=>__vitePreload(()=>import("./naver_icon-8fa56016-N8oAGjyp.js"),__vite__mapDeps([])),"../../../assets/nft.stage.1.act.svg":()=>__vitePreload(()=>import("./nft.stage.1.act-ec199f3f-n492mXnV.js"),__vite__mapDeps([])),"../../../assets/nft.stage.1.svg":()=>__vitePreload(()=>import("./nft.stage.1-56d56289-xFeJ1Zgg.js"),__vite__mapDeps([])),"../../../assets/nft.stage.2.act.svg":()=>__vitePreload(()=>import("./nft.stage.2.act-dad9042b-dg7NUjGI.js"),__vite__mapDeps([])),"../../../assets/nft.stage.2.svg":()=>__vitePreload(()=>import("./nft.stage.2-756571df-5R9F5UQF.js"),__vite__mapDeps([])),"../../../assets/nft.stage.3.act.svg":()=>__vitePreload(()=>import("./nft.stage.3.act-d192df7f-73StFxk6.js"),__vite__mapDeps([])),"../../../assets/nft.stage.3.svg":()=>__vitePreload(()=>import("./nft.stage.3-60759da8-gDjmhfB7.js"),__vite__mapDeps([])),"../../../assets/notice.svg":()=>__vitePreload(()=>import("./notice-824e43dd-TwLHxyj7.js"),__vite__mapDeps([])),"../../../assets/onboarding.svg":()=>Promise.resolve().then(()=>onboarding$1),"../../../assets/platform.active.svg":()=>__vitePreload(()=>import("./platform.active-045a250e-I3sVzoZs.js"),__vite__mapDeps([])),"../../../assets/platform.svg":()=>__vitePreload(()=>import("./platform-13f55f74-yvFvOQC2.js"),__vite__mapDeps([])),"../../../assets/plus.svg":()=>__vitePreload(()=>import("./plus-523903c1-PllNmi65.js"),__vite__mapDeps([])),"../../../assets/question.svg":()=>__vitePreload(()=>import("./question-a14c9a2d-Wp__WU-i.js"),__vite__mapDeps([])),"../../../assets/radio.set.svg":()=>__vitePreload(()=>import("./radio.set-64e671a8-R3crp6Fl.js"),__vite__mapDeps([])),"../../../assets/radio.unset.svg":()=>__vitePreload(()=>import("./radio.unset-137d7c9f-midY2ocp.js"),__vite__mapDeps([])),"../../../assets/setting.svg":()=>__vitePreload(()=>import("./setting-5319b543-3813XY2w.js"),__vite__mapDeps([])),"../../../assets/shared_rank_congratulation.svg":()=>Promise.resolve().then(()=>shared_rank_congratulation),"../../../assets/shield.complete.mobile.svg":()=>__vitePreload(()=>import("./shield.complete.mobile-4c4c7c16-BmkFK3-5.js"),__vite__mapDeps([])),"../../../assets/shield.complete.svg":()=>__vitePreload(()=>import("./shield.complete-9f02534e-2kHWeD9q.js"),__vite__mapDeps([])),"../../../assets/shield.mobile.svg":()=>__vitePreload(()=>import("./shield.mobile-a44e14c7-FZKvJp3l.js"),__vite__mapDeps([])),"../../../assets/shield.svg":()=>__vitePreload(()=>import("./shield-f20d32c3-624lGbNu.js"),__vite__mapDeps([])),"../../../assets/stamp.svg":()=>__vitePreload(()=>import("./stamp-8184b54c-idSdF6fN.js"),__vite__mapDeps([])),"../../../assets/twitter_icon.svg":()=>__vitePreload(()=>import("./twitter_icon-aa914283-_X_xk1wA.js"),__vite__mapDeps([])),"../../../assets/web.svg":()=>__vitePreload(()=>import("./web-34898ca4-cRvWjSke.js"),__vite__mapDeps([])),"../../../assets/ws_guide.svg":()=>Promise.resolve().then(()=>ws_guide)}),`../../../assets/${f.name}.svg`);d.value=x.default});const _=computed(()=>({"--w-icon-width":f.iWidth??"auto","--w-icon-height":f.iHeight??"auto","--w-icon-cursor":f.cursor?"pointer":"auto"}));return(x,I)=>(openBlock(),createElementBlock("div",{style:normalizeStyle(_.value),class:normalizeClass(["db-icon-wrapper",{hoverable:x.hover}])},[(openBlock(),createElementBlock("svg",null,[createBaseVNode("image",{href:d.value},null,8,_hoisted_1$2z)]))],6))}}),DashboardIcon=_export_sfc$1(_sfc_main$34,[["__scopeId","data-v-bdb619d3"]]);var _a$1$1;const isClient$2=typeof window<"u";isClient$2&&((_a$1$1=window?.navigator)!=null&&_a$1$1.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function resolveUnref$1(u){return typeof u=="function"?u():unref(u)}function identity$1(u){return u}function increaseWithUnit$1(u,f){var d;if(typeof u=="number")return u+f;const _=((d=u.match(/^-?[0-9]+\.?[0-9]*/))==null?void 0:d[0])||"",x=u.slice(_.length),I=parseFloat(_)+f;return Number.isNaN(I)?u:I+x}function tryOnScopeDispose$1(u){return getCurrentScope()?(onScopeDispose(u),!0):!1}function resolveRef$1(u){return typeof u=="function"?computed(u):ref(u)}function tryOnMounted$1(u,f=!0){getCurrentInstance()?onMounted(u):f?u():nextTick$2(u)}function unrefElement$1(u){var f;const d=resolveUnref$1(u);return(f=d?.$el)!=null?f:d}const defaultWindow$1=isClient$2?window:void 0;function useSupported$1(u,f=!1){const d=ref(),_=()=>d.value=!!u();return _(),tryOnMounted$1(_,f),d}function useMediaQuery$1(u,f={}){const{window:d=defaultWindow$1}=f,_=useSupported$1(()=>d&&"matchMedia"in d&&typeof d.matchMedia=="function");let x;const I=ref(!1),E=()=>{x&&("removeEventListener"in x?x.removeEventListener("change",M):x.removeListener(M))},M=()=>{_.value&&(E(),x=d.matchMedia(resolveRef$1(u).value),I.value=x.matches,"addEventListener"in x?x.addEventListener("change",M):x.addListener(M))};return watchEffect(M),tryOnScopeDispose$1(()=>E()),I}var __defProp$m$1=Object.defineProperty,__getOwnPropSymbols$o$1=Object.getOwnPropertySymbols,__hasOwnProp$o$1=Object.prototype.hasOwnProperty,__propIsEnum$o$1=Object.prototype.propertyIsEnumerable,__defNormalProp$m$1=(u,f,d)=>f in u?__defProp$m$1(u,f,{enumerable:!0,configurable:!0,writable:!0,value:d}):u[f]=d,__spreadValues$m$1=(u,f)=>{for(var d in f||(f={}))__hasOwnProp$o$1.call(f,d)&&__defNormalProp$m$1(u,d,f[d]);if(__getOwnPropSymbols$o$1)for(var d of __getOwnPropSymbols$o$1(f))__propIsEnum$o$1.call(f,d)&&__defNormalProp$m$1(u,d,f[d]);return u};function useBreakpoints$1(u,f={}){function d(M,S){let A=u[M];return S!=null&&(A=increaseWithUnit$1(A,S)),typeof A=="number"&&(A=`${A}px`),A}const{window:_=defaultWindow$1}=f;function x(M){return _?_.matchMedia(M).matches:!1}const I=M=>useMediaQuery$1(`(min-width: ${d(M)})`,f),E=Object.keys(u).reduce((M,S)=>(Object.defineProperty(M,S,{get:()=>I(S),enumerable:!0,configurable:!0}),M),{});return __spreadValues$m$1({greater(M){return useMediaQuery$1(`(min-width: ${d(M,.1)})`,f)},greaterOrEqual:I,smaller(M){return useMediaQuery$1(`(max-width: ${d(M,-.1)})`,f)},smallerOrEqual(M){return useMediaQuery$1(`(max-width: ${d(M)})`,f)},between(M,S){return useMediaQuery$1(`(min-width: ${d(M)}) and (max-width: ${d(S,-.1)})`,f)},isGreater(M){return x(`(min-width: ${d(M,.1)})`)},isGreaterOrEqual(M){return x(`(min-width: ${d(M)})`)},isSmaller(M){return x(`(max-width: ${d(M,-.1)})`)},isSmallerOrEqual(M){return x(`(max-width: ${d(M)})`)},isInBetween(M,S){return x(`(min-width: ${d(M)}) and (max-width: ${d(S,-.1)})`)}},E)}const _global$1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof _global$2<"u"?_global$2:typeof self<"u"?self:{},globalKey$1="__vueuse_ssr_handlers__";_global$1[globalKey$1]=_global$1[globalKey$1]||{};var __getOwnPropSymbols$g$1=Object.getOwnPropertySymbols,__hasOwnProp$g$1=Object.prototype.hasOwnProperty,__propIsEnum$g$1=Object.prototype.propertyIsEnumerable,__objRest$2$1=(u,f)=>{var d={};for(var _ in u)__hasOwnProp$g$1.call(u,_)&&f.indexOf(_)<0&&(d[_]=u[_]);if(u!=null&&__getOwnPropSymbols$g$1)for(var _ of __getOwnPropSymbols$g$1(u))f.indexOf(_)<0&&__propIsEnum$g$1.call(u,_)&&(d[_]=u[_]);return d};function useResizeObserver$1(u,f,d={}){const _=d,{window:x=defaultWindow$1}=_,I=__objRest$2$1(_,["window"]);let E;const M=useSupported$1(()=>x&&"ResizeObserver"in x),S=()=>{E&&(E.disconnect(),E=void 0)},A=watch(()=>unrefElement$1(u),D=>{S(),M.value&&x&&D&&(E=new ResizeObserver(f),E.observe(D,I))},{immediate:!0,flush:"post"}),T=()=>{S(),A()};return tryOnScopeDispose$1(T),{isSupported:M,stop:T}}function useElementSize(u,f={width:0,height:0},d={}){const{window:_=defaultWindow$1,box:x="content-box"}=d,I=computed(()=>{var S,A;return(A=(S=unrefElement$1(u))==null?void 0:S.namespaceURI)==null?void 0:A.includes("svg")}),E=ref(f.width),M=ref(f.height);return useResizeObserver$1(u,([S])=>{const A=x==="border-box"?S.borderBoxSize:x==="content-box"?S.contentBoxSize:S.devicePixelContentBoxSize;if(_&&I.value){const T=unrefElement$1(u);if(T){const D=_.getComputedStyle(T);E.value=parseFloat(D.width),M.value=parseFloat(D.height)}}else if(A){const T=Array.isArray(A)?A:[A];E.value=T.reduce((D,{inlineSize:O})=>D+O,0),M.value=T.reduce((D,{blockSize:O})=>D+O,0)}else E.value=S.contentRect.width,M.value=S.contentRect.height},d),watch(()=>unrefElement$1(u),S=>{E.value=S?f.width:0,M.value=S?f.height:0}),{width:E,height:M}}var SwipeDirection$1;(function(u){u.UP="UP",u.RIGHT="RIGHT",u.DOWN="DOWN",u.LEFT="LEFT",u.NONE="NONE"})(SwipeDirection$1||(SwipeDirection$1={}));var __defProp$3=Object.defineProperty,__getOwnPropSymbols$1=Object.getOwnPropertySymbols,__hasOwnProp$1=Object.prototype.hasOwnProperty,__propIsEnum$1=Object.prototype.propertyIsEnumerable,__defNormalProp$3=(u,f,d)=>f in u?__defProp$3(u,f,{enumerable:!0,configurable:!0,writable:!0,value:d}):u[f]=d,__spreadValues$1=(u,f)=>{for(var d in f||(f={}))__hasOwnProp$1.call(f,d)&&__defNormalProp$3(u,d,f[d]);if(__getOwnPropSymbols$1)for(var d of __getOwnPropSymbols$1(f))__propIsEnum$1.call(f,d)&&__defNormalProp$3(u,d,f[d]);return u};const _TransitionPresets$1={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};__spreadValues$1({linear:identity$1},_TransitionPresets$1);/*!
  * shared v9.9.1
  * (c) 2024 kazuya kawaguchi
  * Released under the MIT License.
  */const inBrowser$1=typeof window<"u",makeSymbol$1=(u,f=!1)=>f?Symbol.for(u):Symbol(u),generateFormatCacheKey$1=(u,f,d)=>friendlyJSONstringify$1({l:u,k:f,s:d}),friendlyJSONstringify$1=u=>JSON.stringify(u).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),isNumber$1=u=>typeof u=="number"&&isFinite(u),isDate$1=u=>toTypeString$1(u)==="[object Date]",isRegExp$1=u=>toTypeString$1(u)==="[object RegExp]",isEmptyObject$1=u=>isPlainObject$1(u)&&Object.keys(u).length===0,assign$1$1=Object.assign;let _globalThis$1;const getGlobalThis$1=()=>_globalThis$1||(_globalThis$1=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof _global$2<"u"?_global$2:{});function escapeHtml$1(u){return u.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const hasOwnProperty$c=Object.prototype.hasOwnProperty;function hasOwn$2(u,f){return hasOwnProperty$c.call(u,f)}const isArray$3=Array.isArray,isFunction$1$1=u=>typeof u=="function",isString$2$1=u=>typeof u=="string",isBoolean$1=u=>typeof u=="boolean",isObject$6=u=>u!==null&&typeof u=="object",isPromise$1=u=>isObject$6(u)&&isFunction$1$1(u.then)&&isFunction$1$1(u.catch),objectToString$1=Object.prototype.toString,toTypeString$1=u=>objectToString$1.call(u),isPlainObject$1=u=>{if(!isObject$6(u))return!1;const f=Object.getPrototypeOf(u);return f===null||f.constructor===Object},toDisplayString$1=u=>u==null?"":isArray$3(u)||isPlainObject$1(u)&&u.toString===objectToString$1?JSON.stringify(u,null,2):String(u);function join$4(u,f=""){return u.reduce((d,_,x)=>x===0?d+_:d+f+_,"")}function incrementer$1(u){let f=u;return()=>++f}function warn$1(u,f){typeof console<"u"&&(console.warn("[intlify] "+u),f&&console.warn(f.stack))}const isNotObjectOrIsArray$1=u=>!isObject$6(u)||isArray$3(u);function deepCopy$1(u,f){if(isNotObjectOrIsArray$1(u)||isNotObjectOrIsArray$1(f))throw new Error("Invalid value");const d=[{src:u,des:f}];for(;d.length;){const{src:_,des:x}=d.pop();Object.keys(_).forEach(I=>{isNotObjectOrIsArray$1(_[I])||isNotObjectOrIsArray$1(x[I])?x[I]=_[I]:d.push({src:_[I],des:x[I]})})}}/*!
  * message-compiler v9.9.1
  * (c) 2024 kazuya kawaguchi
  * Released under the MIT License.
  */function createPosition$1(u,f,d){return{line:u,column:f,offset:d}}function createLocation$1(u,f,d){const _={start:u,end:f};return d!=null&&(_.source=d),_}const RE_ARGS$1=/\{([0-9a-zA-Z]+)\}/g;function format$1$1(u,...f){return f.length===1&&isObject$5(f[0])&&(f=f[0]),(!f||!f.hasOwnProperty)&&(f={}),u.replace(RE_ARGS$1,(d,_)=>f.hasOwnProperty(_)?f[_]:"")}const assign$2=Object.assign,isString$1$1=u=>typeof u=="string",isObject$5=u=>u!==null&&typeof u=="object";function join$3(u,f=""){return u.reduce((d,_,x)=>x===0?d+_:d+f+_,"")}const CompileErrorCodes$1={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},errorMessages$2={[CompileErrorCodes$1.EXPECTED_TOKEN]:"Expected token: '{0}'",[CompileErrorCodes$1.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[CompileErrorCodes$1.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[CompileErrorCodes$1.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[CompileErrorCodes$1.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[CompileErrorCodes$1.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[CompileErrorCodes$1.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[CompileErrorCodes$1.EMPTY_PLACEHOLDER]:"Empty placeholder",[CompileErrorCodes$1.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[CompileErrorCodes$1.INVALID_LINKED_FORMAT]:"Invalid linked format",[CompileErrorCodes$1.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[CompileErrorCodes$1.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[CompileErrorCodes$1.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[CompileErrorCodes$1.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[CompileErrorCodes$1.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[CompileErrorCodes$1.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function createCompileError$1(u,f,d={}){const{domain:_,messages:x,args:I}=d,E=format$1$1((x||errorMessages$2)[u]||"",...I||[]),M=new SyntaxError(String(E));return M.code=u,f&&(M.location=f),M.domain=_,M}function defaultOnError$1(u){throw u}const CHAR_SP$1=" ",CHAR_CR$1="\r",CHAR_LF$1=`
`,CHAR_LS$1="\u2028",CHAR_PS$1="\u2029";function createScanner$1(u){const f=u;let d=0,_=1,x=1,I=0;const E=ze=>f[ze]===CHAR_CR$1&&f[ze+1]===CHAR_LF$1,M=ze=>f[ze]===CHAR_LF$1,S=ze=>f[ze]===CHAR_PS$1,A=ze=>f[ze]===CHAR_LS$1,T=ze=>E(ze)||M(ze)||S(ze)||A(ze),D=()=>d,O=()=>_,j=()=>x,$=()=>I,W=ze=>E(ze)||S(ze)||A(ze)?CHAR_LF$1:f[ze],Q=()=>W(d),X=()=>W(d+I);function Y(){return I=0,T(d)&&(_++,x=0),E(d)&&d++,d++,x++,f[d]}function ie(){return E(d+I)&&I++,I++,f[d+I]}function oe(){d=0,_=1,x=1,I=0}function ge(ze=0){I=ze}function be(){const ze=d+I;for(;ze!==d;)Y();I=0}return{index:D,line:O,column:j,peekOffset:$,charAt:W,currentChar:Q,currentPeek:X,next:Y,peek:ie,reset:oe,resetPeek:ge,skipToPeek:be}}const EOF$1=void 0,DOT$1=".",LITERAL_DELIMITER$1="'",ERROR_DOMAIN$3$1="tokenizer";function createTokenizer$1(u,f={}){const d=f.location!==!1,_=createScanner$1(u),x=()=>_.index(),I=()=>createPosition$1(_.line(),_.column(),_.index()),E=I(),M=x(),S={currentType:14,offset:M,startLoc:E,endLoc:E,lastType:14,lastOffset:M,lastStartLoc:E,lastEndLoc:E,braceNest:0,inLinked:!1,text:""},A=()=>S,{onError:T}=f;function D($e,Le,ot,...Oe){const Ne=A();if(Le.column+=ot,Le.offset+=ot,T){const Fe=d?createLocation$1(Ne.startLoc,Le):null,Je=createCompileError$1($e,Fe,{domain:ERROR_DOMAIN$3$1,args:Oe});T(Je)}}function O($e,Le,ot){$e.endLoc=I(),$e.currentType=Le;const Oe={type:Le};return d&&(Oe.loc=createLocation$1($e.startLoc,$e.endLoc)),ot!=null&&(Oe.value=ot),Oe}const j=$e=>O($e,14);function $($e,Le){return $e.currentChar()===Le?($e.next(),Le):(D(CompileErrorCodes$1.EXPECTED_TOKEN,I(),0,Le),"")}function W($e){let Le="";for(;$e.currentPeek()===CHAR_SP$1||$e.currentPeek()===CHAR_LF$1;)Le+=$e.currentPeek(),$e.peek();return Le}function Q($e){const Le=W($e);return $e.skipToPeek(),Le}function X($e){if($e===EOF$1)return!1;const Le=$e.charCodeAt(0);return Le>=97&&Le<=122||Le>=65&&Le<=90||Le===95}function Y($e){if($e===EOF$1)return!1;const Le=$e.charCodeAt(0);return Le>=48&&Le<=57}function ie($e,Le){const{currentType:ot}=Le;if(ot!==2)return!1;W($e);const Oe=X($e.currentPeek());return $e.resetPeek(),Oe}function oe($e,Le){const{currentType:ot}=Le;if(ot!==2)return!1;W($e);const Oe=$e.currentPeek()==="-"?$e.peek():$e.currentPeek(),Ne=Y(Oe);return $e.resetPeek(),Ne}function ge($e,Le){const{currentType:ot}=Le;if(ot!==2)return!1;W($e);const Oe=$e.currentPeek()===LITERAL_DELIMITER$1;return $e.resetPeek(),Oe}function be($e,Le){const{currentType:ot}=Le;if(ot!==8)return!1;W($e);const Oe=$e.currentPeek()===".";return $e.resetPeek(),Oe}function ze($e,Le){const{currentType:ot}=Le;if(ot!==9)return!1;W($e);const Oe=X($e.currentPeek());return $e.resetPeek(),Oe}function de($e,Le){const{currentType:ot}=Le;if(!(ot===8||ot===12))return!1;W($e);const Oe=$e.currentPeek()===":";return $e.resetPeek(),Oe}function Ce($e,Le){const{currentType:ot}=Le;if(ot!==10)return!1;const Oe=()=>{const Fe=$e.currentPeek();return Fe==="{"?X($e.peek()):Fe==="@"||Fe==="%"||Fe==="|"||Fe===":"||Fe==="."||Fe===CHAR_SP$1||!Fe?!1:Fe===CHAR_LF$1?($e.peek(),Oe()):X(Fe)},Ne=Oe();return $e.resetPeek(),Ne}function ke($e){W($e);const Le=$e.currentPeek()==="|";return $e.resetPeek(),Le}function le($e){const Le=W($e),ot=$e.currentPeek()==="%"&&$e.peek()==="{";return $e.resetPeek(),{isModulo:ot,hasSpace:Le.length>0}}function re($e,Le=!0){const ot=(Ne=!1,Fe="",Je=!1)=>{const Dt=$e.currentPeek();return Dt==="{"?Fe==="%"?!1:Ne:Dt==="@"||!Dt?Fe==="%"?!0:Ne:Dt==="%"?($e.peek(),ot(Ne,"%",!0)):Dt==="|"?Fe==="%"||Je?!0:!(Fe===CHAR_SP$1||Fe===CHAR_LF$1):Dt===CHAR_SP$1?($e.peek(),ot(!0,CHAR_SP$1,Je)):Dt===CHAR_LF$1?($e.peek(),ot(!0,CHAR_LF$1,Je)):!0},Oe=ot();return Le&&$e.resetPeek(),Oe}function P($e,Le){const ot=$e.currentChar();return ot===EOF$1?EOF$1:Le(ot)?($e.next(),ot):null}function k($e){return P($e,ot=>{const Oe=ot.charCodeAt(0);return Oe>=97&&Oe<=122||Oe>=65&&Oe<=90||Oe>=48&&Oe<=57||Oe===95||Oe===36})}function B($e){return P($e,ot=>{const Oe=ot.charCodeAt(0);return Oe>=48&&Oe<=57})}function z($e){return P($e,ot=>{const Oe=ot.charCodeAt(0);return Oe>=48&&Oe<=57||Oe>=65&&Oe<=70||Oe>=97&&Oe<=102})}function ee($e){let Le="",ot="";for(;Le=B($e);)ot+=Le;return ot}function H($e){Q($e);const Le=$e.currentChar();return Le!=="%"&&D(CompileErrorCodes$1.EXPECTED_TOKEN,I(),0,Le),$e.next(),"%"}function q($e){let Le="";for(;;){const ot=$e.currentChar();if(ot==="{"||ot==="}"||ot==="@"||ot==="|"||!ot)break;if(ot==="%")if(re($e))Le+=ot,$e.next();else break;else if(ot===CHAR_SP$1||ot===CHAR_LF$1)if(re($e))Le+=ot,$e.next();else{if(ke($e))break;Le+=ot,$e.next()}else Le+=ot,$e.next()}return Le}function J($e){Q($e);let Le="",ot="";for(;Le=k($e);)ot+=Le;return $e.currentChar()===EOF$1&&D(CompileErrorCodes$1.UNTERMINATED_CLOSING_BRACE,I(),0),ot}function U($e){Q($e);let Le="";return $e.currentChar()==="-"?($e.next(),Le+=`-${ee($e)}`):Le+=ee($e),$e.currentChar()===EOF$1&&D(CompileErrorCodes$1.UNTERMINATED_CLOSING_BRACE,I(),0),Le}function Z($e){Q($e),$($e,"'");let Le="",ot="";const Oe=Fe=>Fe!==LITERAL_DELIMITER$1&&Fe!==CHAR_LF$1;for(;Le=P($e,Oe);)Le==="\\"?ot+=ve($e):ot+=Le;const Ne=$e.currentChar();return Ne===CHAR_LF$1||Ne===EOF$1?(D(CompileErrorCodes$1.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,I(),0),Ne===CHAR_LF$1&&($e.next(),$($e,"'")),ot):($($e,"'"),ot)}function ve($e){const Le=$e.currentChar();switch(Le){case"\\":case"'":return $e.next(),`\\${Le}`;case"u":return Ye($e,Le,4);case"U":return Ye($e,Le,6);default:return D(CompileErrorCodes$1.UNKNOWN_ESCAPE_SEQUENCE,I(),0,Le),""}}function Ye($e,Le,ot){$($e,Le);let Oe="";for(let Ne=0;Ne<ot;Ne++){const Fe=z($e);if(!Fe){D(CompileErrorCodes$1.INVALID_UNICODE_ESCAPE_SEQUENCE,I(),0,`\\${Le}${Oe}${$e.currentChar()}`);break}Oe+=Fe}return`\\${Le}${Oe}`}function rt($e){Q($e);let Le="",ot="";const Oe=Ne=>Ne!=="{"&&Ne!=="}"&&Ne!==CHAR_SP$1&&Ne!==CHAR_LF$1;for(;Le=P($e,Oe);)ot+=Le;return ot}function Ue($e){let Le="",ot="";for(;Le=k($e);)ot+=Le;return ot}function Qe($e){const Le=(ot=!1,Oe)=>{const Ne=$e.currentChar();return Ne==="{"||Ne==="%"||Ne==="@"||Ne==="|"||Ne==="("||Ne===")"||!Ne||Ne===CHAR_SP$1?Oe:Ne===CHAR_LF$1||Ne===DOT$1?(Oe+=Ne,$e.next(),Le(ot,Oe)):(Oe+=Ne,$e.next(),Le(!0,Oe))};return Le(!1,"")}function vt($e){Q($e);const Le=$($e,"|");return Q($e),Le}function ri($e,Le){let ot=null;switch($e.currentChar()){case"{":return Le.braceNest>=1&&D(CompileErrorCodes$1.NOT_ALLOW_NEST_PLACEHOLDER,I(),0),$e.next(),ot=O(Le,2,"{"),Q($e),Le.braceNest++,ot;case"}":return Le.braceNest>0&&Le.currentType===2&&D(CompileErrorCodes$1.EMPTY_PLACEHOLDER,I(),0),$e.next(),ot=O(Le,3,"}"),Le.braceNest--,Le.braceNest>0&&Q($e),Le.inLinked&&Le.braceNest===0&&(Le.inLinked=!1),ot;case"@":return Le.braceNest>0&&D(CompileErrorCodes$1.UNTERMINATED_CLOSING_BRACE,I(),0),ot=ci($e,Le)||j(Le),Le.braceNest=0,ot;default:let Ne=!0,Fe=!0,Je=!0;if(ke($e))return Le.braceNest>0&&D(CompileErrorCodes$1.UNTERMINATED_CLOSING_BRACE,I(),0),ot=O(Le,1,vt($e)),Le.braceNest=0,Le.inLinked=!1,ot;if(Le.braceNest>0&&(Le.currentType===5||Le.currentType===6||Le.currentType===7))return D(CompileErrorCodes$1.UNTERMINATED_CLOSING_BRACE,I(),0),Le.braceNest=0,tt($e,Le);if(Ne=ie($e,Le))return ot=O(Le,5,J($e)),Q($e),ot;if(Fe=oe($e,Le))return ot=O(Le,6,U($e)),Q($e),ot;if(Je=ge($e,Le))return ot=O(Le,7,Z($e)),Q($e),ot;if(!Ne&&!Fe&&!Je)return ot=O(Le,13,rt($e)),D(CompileErrorCodes$1.INVALID_TOKEN_IN_PLACEHOLDER,I(),0,ot.value),Q($e),ot;break}return ot}function ci($e,Le){const{currentType:ot}=Le;let Oe=null;const Ne=$e.currentChar();switch((ot===8||ot===9||ot===12||ot===10)&&(Ne===CHAR_LF$1||Ne===CHAR_SP$1)&&D(CompileErrorCodes$1.INVALID_LINKED_FORMAT,I(),0),Ne){case"@":return $e.next(),Oe=O(Le,8,"@"),Le.inLinked=!0,Oe;case".":return Q($e),$e.next(),O(Le,9,".");case":":return Q($e),$e.next(),O(Le,10,":");default:return ke($e)?(Oe=O(Le,1,vt($e)),Le.braceNest=0,Le.inLinked=!1,Oe):be($e,Le)||de($e,Le)?(Q($e),ci($e,Le)):ze($e,Le)?(Q($e),O(Le,12,Ue($e))):Ce($e,Le)?(Q($e),Ne==="{"?ri($e,Le)||Oe:O(Le,11,Qe($e))):(ot===8&&D(CompileErrorCodes$1.INVALID_LINKED_FORMAT,I(),0),Le.braceNest=0,Le.inLinked=!1,tt($e,Le))}}function tt($e,Le){let ot={type:14};if(Le.braceNest>0)return ri($e,Le)||j(Le);if(Le.inLinked)return ci($e,Le)||j(Le);switch($e.currentChar()){case"{":return ri($e,Le)||j(Le);case"}":return D(CompileErrorCodes$1.UNBALANCED_CLOSING_BRACE,I(),0),$e.next(),O(Le,3,"}");case"@":return ci($e,Le)||j(Le);default:if(ke($e))return ot=O(Le,1,vt($e)),Le.braceNest=0,Le.inLinked=!1,ot;const{isModulo:Ne,hasSpace:Fe}=le($e);if(Ne)return Fe?O(Le,0,q($e)):O(Le,4,H($e));if(re($e))return O(Le,0,q($e));break}return ot}function et(){const{currentType:$e,offset:Le,startLoc:ot,endLoc:Oe}=S;return S.lastType=$e,S.lastOffset=Le,S.lastStartLoc=ot,S.lastEndLoc=Oe,S.offset=x(),S.startLoc=I(),_.currentChar()===EOF$1?O(S,14):tt(_,S)}return{nextToken:et,currentOffset:x,currentPosition:I,context:A}}const ERROR_DOMAIN$2$1="parser",KNOWN_ESCAPES$1=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function fromEscapeSequence$1(u,f,d){switch(u){case"\\\\":return"\\";case"\\'":return"'";default:{const _=parseInt(f||d,16);return _<=55295||_>=57344?String.fromCodePoint(_):"�"}}}function createParser$1(u={}){const f=u.location!==!1,{onError:d}=u;function _(X,Y,ie,oe,...ge){const be=X.currentPosition();if(be.offset+=oe,be.column+=oe,d){const ze=f?createLocation$1(ie,be):null,de=createCompileError$1(Y,ze,{domain:ERROR_DOMAIN$2$1,args:ge});d(de)}}function x(X,Y,ie){const oe={type:X};return f&&(oe.start=Y,oe.end=Y,oe.loc={start:ie,end:ie}),oe}function I(X,Y,ie,oe){oe&&(X.type=oe),f&&(X.end=Y,X.loc&&(X.loc.end=ie))}function E(X,Y){const ie=X.context(),oe=x(3,ie.offset,ie.startLoc);return oe.value=Y,I(oe,X.currentOffset(),X.currentPosition()),oe}function M(X,Y){const ie=X.context(),{lastOffset:oe,lastStartLoc:ge}=ie,be=x(5,oe,ge);return be.index=parseInt(Y,10),X.nextToken(),I(be,X.currentOffset(),X.currentPosition()),be}function S(X,Y){const ie=X.context(),{lastOffset:oe,lastStartLoc:ge}=ie,be=x(4,oe,ge);return be.key=Y,X.nextToken(),I(be,X.currentOffset(),X.currentPosition()),be}function A(X,Y){const ie=X.context(),{lastOffset:oe,lastStartLoc:ge}=ie,be=x(9,oe,ge);return be.value=Y.replace(KNOWN_ESCAPES$1,fromEscapeSequence$1),X.nextToken(),I(be,X.currentOffset(),X.currentPosition()),be}function T(X){const Y=X.nextToken(),ie=X.context(),{lastOffset:oe,lastStartLoc:ge}=ie,be=x(8,oe,ge);return Y.type!==12?(_(X,CompileErrorCodes$1.UNEXPECTED_EMPTY_LINKED_MODIFIER,ie.lastStartLoc,0),be.value="",I(be,oe,ge),{nextConsumeToken:Y,node:be}):(Y.value==null&&_(X,CompileErrorCodes$1.UNEXPECTED_LEXICAL_ANALYSIS,ie.lastStartLoc,0,getTokenCaption$1(Y)),be.value=Y.value||"",I(be,X.currentOffset(),X.currentPosition()),{node:be})}function D(X,Y){const ie=X.context(),oe=x(7,ie.offset,ie.startLoc);return oe.value=Y,I(oe,X.currentOffset(),X.currentPosition()),oe}function O(X){const Y=X.context(),ie=x(6,Y.offset,Y.startLoc);let oe=X.nextToken();if(oe.type===9){const ge=T(X);ie.modifier=ge.node,oe=ge.nextConsumeToken||X.nextToken()}switch(oe.type!==10&&_(X,CompileErrorCodes$1.UNEXPECTED_LEXICAL_ANALYSIS,Y.lastStartLoc,0,getTokenCaption$1(oe)),oe=X.nextToken(),oe.type===2&&(oe=X.nextToken()),oe.type){case 11:oe.value==null&&_(X,CompileErrorCodes$1.UNEXPECTED_LEXICAL_ANALYSIS,Y.lastStartLoc,0,getTokenCaption$1(oe)),ie.key=D(X,oe.value||"");break;case 5:oe.value==null&&_(X,CompileErrorCodes$1.UNEXPECTED_LEXICAL_ANALYSIS,Y.lastStartLoc,0,getTokenCaption$1(oe)),ie.key=S(X,oe.value||"");break;case 6:oe.value==null&&_(X,CompileErrorCodes$1.UNEXPECTED_LEXICAL_ANALYSIS,Y.lastStartLoc,0,getTokenCaption$1(oe)),ie.key=M(X,oe.value||"");break;case 7:oe.value==null&&_(X,CompileErrorCodes$1.UNEXPECTED_LEXICAL_ANALYSIS,Y.lastStartLoc,0,getTokenCaption$1(oe)),ie.key=A(X,oe.value||"");break;default:_(X,CompileErrorCodes$1.UNEXPECTED_EMPTY_LINKED_KEY,Y.lastStartLoc,0);const ge=X.context(),be=x(7,ge.offset,ge.startLoc);return be.value="",I(be,ge.offset,ge.startLoc),ie.key=be,I(ie,ge.offset,ge.startLoc),{nextConsumeToken:oe,node:ie}}return I(ie,X.currentOffset(),X.currentPosition()),{node:ie}}function j(X){const Y=X.context(),ie=Y.currentType===1?X.currentOffset():Y.offset,oe=Y.currentType===1?Y.endLoc:Y.startLoc,ge=x(2,ie,oe);ge.items=[];let be=null;do{const Ce=be||X.nextToken();switch(be=null,Ce.type){case 0:Ce.value==null&&_(X,CompileErrorCodes$1.UNEXPECTED_LEXICAL_ANALYSIS,Y.lastStartLoc,0,getTokenCaption$1(Ce)),ge.items.push(E(X,Ce.value||""));break;case 6:Ce.value==null&&_(X,CompileErrorCodes$1.UNEXPECTED_LEXICAL_ANALYSIS,Y.lastStartLoc,0,getTokenCaption$1(Ce)),ge.items.push(M(X,Ce.value||""));break;case 5:Ce.value==null&&_(X,CompileErrorCodes$1.UNEXPECTED_LEXICAL_ANALYSIS,Y.lastStartLoc,0,getTokenCaption$1(Ce)),ge.items.push(S(X,Ce.value||""));break;case 7:Ce.value==null&&_(X,CompileErrorCodes$1.UNEXPECTED_LEXICAL_ANALYSIS,Y.lastStartLoc,0,getTokenCaption$1(Ce)),ge.items.push(A(X,Ce.value||""));break;case 8:const ke=O(X);ge.items.push(ke.node),be=ke.nextConsumeToken||null;break}}while(Y.currentType!==14&&Y.currentType!==1);const ze=Y.currentType===1?Y.lastOffset:X.currentOffset(),de=Y.currentType===1?Y.lastEndLoc:X.currentPosition();return I(ge,ze,de),ge}function $(X,Y,ie,oe){const ge=X.context();let be=oe.items.length===0;const ze=x(1,Y,ie);ze.cases=[],ze.cases.push(oe);do{const de=j(X);be||(be=de.items.length===0),ze.cases.push(de)}while(ge.currentType!==14);return be&&_(X,CompileErrorCodes$1.MUST_HAVE_MESSAGES_IN_PLURAL,ie,0),I(ze,X.currentOffset(),X.currentPosition()),ze}function W(X){const Y=X.context(),{offset:ie,startLoc:oe}=Y,ge=j(X);return Y.currentType===14?ge:$(X,ie,oe,ge)}function Q(X){const Y=createTokenizer$1(X,assign$2({},u)),ie=Y.context(),oe=x(0,ie.offset,ie.startLoc);return f&&oe.loc&&(oe.loc.source=X),oe.body=W(Y),u.onCacheKey&&(oe.cacheKey=u.onCacheKey(X)),ie.currentType!==14&&_(Y,CompileErrorCodes$1.UNEXPECTED_LEXICAL_ANALYSIS,ie.lastStartLoc,0,X[ie.offset]||""),I(oe,Y.currentOffset(),Y.currentPosition()),oe}return{parse:Q}}function getTokenCaption$1(u){if(u.type===14)return"EOF";const f=(u.value||"").replace(/\r?\n/gu,"\\n");return f.length>10?f.slice(0,9)+"…":f}function createTransformer$1(u,f={}){const d={ast:u,helpers:new Set};return{context:()=>d,helper:I=>(d.helpers.add(I),I)}}function traverseNodes$1(u,f){for(let d=0;d<u.length;d++)traverseNode$1(u[d],f)}function traverseNode$1(u,f){switch(u.type){case 1:traverseNodes$1(u.cases,f),f.helper("plural");break;case 2:traverseNodes$1(u.items,f);break;case 6:traverseNode$1(u.key,f),f.helper("linked"),f.helper("type");break;case 5:f.helper("interpolate"),f.helper("list");break;case 4:f.helper("interpolate"),f.helper("named");break}}function transform$1(u,f={}){const d=createTransformer$1(u);d.helper("normalize"),u.body&&traverseNode$1(u.body,d);const _=d.context();u.helpers=Array.from(_.helpers)}function optimize$1(u){const f=u.body;return f.type===2?optimizeMessageNode$1(f):f.cases.forEach(d=>optimizeMessageNode$1(d)),u}function optimizeMessageNode$1(u){if(u.items.length===1){const f=u.items[0];(f.type===3||f.type===9)&&(u.static=f.value,delete f.value)}else{const f=[];for(let d=0;d<u.items.length;d++){const _=u.items[d];if(!(_.type===3||_.type===9)||_.value==null)break;f.push(_.value)}if(f.length===u.items.length){u.static=join$3(f);for(let d=0;d<u.items.length;d++){const _=u.items[d];(_.type===3||_.type===9)&&delete _.value}}}}const ERROR_DOMAIN$1$1="minifier";function minify$1(u){switch(u.t=u.type,u.type){case 0:const f=u;minify$1(f.body),f.b=f.body,delete f.body;break;case 1:const d=u,_=d.cases;for(let T=0;T<_.length;T++)minify$1(_[T]);d.c=_,delete d.cases;break;case 2:const x=u,I=x.items;for(let T=0;T<I.length;T++)minify$1(I[T]);x.i=I,delete x.items,x.static&&(x.s=x.static,delete x.static);break;case 3:case 9:case 8:case 7:const E=u;E.value&&(E.v=E.value,delete E.value);break;case 6:const M=u;minify$1(M.key),M.k=M.key,delete M.key,M.modifier&&(minify$1(M.modifier),M.m=M.modifier,delete M.modifier);break;case 5:const S=u;S.i=S.index,delete S.index;break;case 4:const A=u;A.k=A.key,delete A.key;break;default:throw createCompileError$1(CompileErrorCodes$1.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:ERROR_DOMAIN$1$1,args:[u.type]})}delete u.type}const ERROR_DOMAIN$4="parser";function createCodeGenerator$1(u,f){const{sourceMap:d,filename:_,breakLineCode:x,needIndent:I}=f,E=f.location!==!1,M={filename:_,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:x,needIndent:I,indentLevel:0};E&&u.loc&&(M.source=u.loc.source);const S=()=>M;function A(Q,X){M.code+=Q}function T(Q,X=!0){const Y=X?x:"";A(I?Y+"  ".repeat(Q):Y)}function D(Q=!0){const X=++M.indentLevel;Q&&T(X)}function O(Q=!0){const X=--M.indentLevel;Q&&T(X)}function j(){T(M.indentLevel)}return{context:S,push:A,indent:D,deindent:O,newline:j,helper:Q=>`_${Q}`,needIndent:()=>M.needIndent}}function generateLinkedNode$1(u,f){const{helper:d}=u;u.push(`${d("linked")}(`),generateNode$1(u,f.key),f.modifier?(u.push(", "),generateNode$1(u,f.modifier),u.push(", _type")):u.push(", undefined, _type"),u.push(")")}function generateMessageNode$1(u,f){const{helper:d,needIndent:_}=u;u.push(`${d("normalize")}([`),u.indent(_());const x=f.items.length;for(let I=0;I<x&&(generateNode$1(u,f.items[I]),I!==x-1);I++)u.push(", ");u.deindent(_()),u.push("])")}function generatePluralNode$1(u,f){const{helper:d,needIndent:_}=u;if(f.cases.length>1){u.push(`${d("plural")}([`),u.indent(_());const x=f.cases.length;for(let I=0;I<x&&(generateNode$1(u,f.cases[I]),I!==x-1);I++)u.push(", ");u.deindent(_()),u.push("])")}}function generateResource$1(u,f){f.body?generateNode$1(u,f.body):u.push("null")}function generateNode$1(u,f){const{helper:d}=u;switch(f.type){case 0:generateResource$1(u,f);break;case 1:generatePluralNode$1(u,f);break;case 2:generateMessageNode$1(u,f);break;case 6:generateLinkedNode$1(u,f);break;case 8:u.push(JSON.stringify(f.value),f);break;case 7:u.push(JSON.stringify(f.value),f);break;case 5:u.push(`${d("interpolate")}(${d("list")}(${f.index}))`,f);break;case 4:u.push(`${d("interpolate")}(${d("named")}(${JSON.stringify(f.key)}))`,f);break;case 9:u.push(JSON.stringify(f.value),f);break;case 3:u.push(JSON.stringify(f.value),f);break;default:throw createCompileError$1(CompileErrorCodes$1.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:ERROR_DOMAIN$4,args:[f.type]})}}const generate$1=(u,f={})=>{const d=isString$1$1(f.mode)?f.mode:"normal",_=isString$1$1(f.filename)?f.filename:"message.intl",x=!!f.sourceMap,I=f.breakLineCode!=null?f.breakLineCode:d==="arrow"?";":`
`,E=f.needIndent?f.needIndent:d!=="arrow",M=u.helpers||[],S=createCodeGenerator$1(u,{mode:d,filename:_,sourceMap:x,breakLineCode:I,needIndent:E});S.push(d==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),S.indent(E),M.length>0&&(S.push(`const { ${join$3(M.map(D=>`${D}: _${D}`),", ")} } = ctx`),S.newline()),S.push("return "),generateNode$1(S,u),S.deindent(E),S.push("}"),delete u.helpers;const{code:A,map:T}=S.context();return{ast:u,code:A,map:T?T.toJSON():void 0}};function baseCompile$1$1(u,f={}){const d=assign$2({},f),_=!!d.jit,x=!!d.minify,I=d.optimize==null?!0:d.optimize,M=createParser$1(d).parse(u);return _?(I&&optimize$1(M),x&&minify$1(M),{ast:M,code:""}):(transform$1(M,d),generate$1(M,d))}/*!
  * core-base v9.9.1
  * (c) 2024 kazuya kawaguchi
  * Released under the MIT License.
  */function initFeatureFlags$1$1(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(getGlobalThis$1().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(getGlobalThis$1().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(getGlobalThis$1().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}const pathStateMachine$1=[];pathStateMachine$1[0]={w:[0],i:[3,0],"[":[4],o:[7]};pathStateMachine$1[1]={w:[1],".":[2],"[":[4],o:[7]};pathStateMachine$1[2]={w:[2],i:[3,0],0:[3,0]};pathStateMachine$1[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};pathStateMachine$1[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};pathStateMachine$1[5]={"'":[4,0],o:8,l:[5,0]};pathStateMachine$1[6]={'"':[4,0],o:8,l:[6,0]};const literalValueRE$1=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function isLiteral$1(u){return literalValueRE$1.test(u)}function stripQuotes$1(u){const f=u.charCodeAt(0),d=u.charCodeAt(u.length-1);return f===d&&(f===34||f===39)?u.slice(1,-1):u}function getPathCharType$1(u){if(u==null)return"o";switch(u.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return u;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function formatSubPath$1(u){const f=u.trim();return u.charAt(0)==="0"&&isNaN(parseInt(u))?!1:isLiteral$1(f)?stripQuotes$1(f):"*"+f}function parse$1(u){const f=[];let d=-1,_=0,x=0,I,E,M,S,A,T,D;const O=[];O[0]=()=>{E===void 0?E=M:E+=M},O[1]=()=>{E!==void 0&&(f.push(E),E=void 0)},O[2]=()=>{O[0](),x++},O[3]=()=>{if(x>0)x--,_=4,O[0]();else{if(x=0,E===void 0||(E=formatSubPath$1(E),E===!1))return!1;O[1]()}};function j(){const $=u[d+1];if(_===5&&$==="'"||_===6&&$==='"')return d++,M="\\"+$,O[0](),!0}for(;_!==null;)if(d++,I=u[d],!(I==="\\"&&j())){if(S=getPathCharType$1(I),D=pathStateMachine$1[_],A=D[S]||D.l||8,A===8||(_=A[0],A[1]!==void 0&&(T=O[A[1]],T&&(M=I,T()===!1))))return;if(_===7)return f}}const cache$2=new Map;function resolveWithKeyValue$1(u,f){return isObject$6(u)?u[f]:null}function resolveValue$1(u,f){if(!isObject$6(u))return null;let d=cache$2.get(f);if(d||(d=parse$1(f),d&&cache$2.set(f,d)),!d)return null;const _=d.length;let x=u,I=0;for(;I<_;){const E=x[d[I]];if(E===void 0||isFunction$1$1(x))return null;x=E,I++}return x}const DEFAULT_MODIFIER$1=u=>u,DEFAULT_MESSAGE$1=u=>"",DEFAULT_MESSAGE_DATA_TYPE$1="text",DEFAULT_NORMALIZE$1=u=>u.length===0?"":join$4(u),DEFAULT_INTERPOLATE$1=toDisplayString$1;function pluralDefault$1(u,f){return u=Math.abs(u),f===2?u?u>1?1:0:1:u?Math.min(u,2):0}function getPluralIndex$1(u){const f=isNumber$1(u.pluralIndex)?u.pluralIndex:-1;return u.named&&(isNumber$1(u.named.count)||isNumber$1(u.named.n))?isNumber$1(u.named.count)?u.named.count:isNumber$1(u.named.n)?u.named.n:f:f}function normalizeNamed$1(u,f){f.count||(f.count=u),f.n||(f.n=u)}function createMessageContext$1(u={}){const f=u.locale,d=getPluralIndex$1(u),_=isObject$6(u.pluralRules)&&isString$2$1(f)&&isFunction$1$1(u.pluralRules[f])?u.pluralRules[f]:pluralDefault$1,x=isObject$6(u.pluralRules)&&isString$2$1(f)&&isFunction$1$1(u.pluralRules[f])?pluralDefault$1:void 0,I=X=>X[_(d,X.length,x)],E=u.list||[],M=X=>E[X],S=u.named||{};isNumber$1(u.pluralIndex)&&normalizeNamed$1(d,S);const A=X=>S[X];function T(X){const Y=isFunction$1$1(u.messages)?u.messages(X):isObject$6(u.messages)?u.messages[X]:!1;return Y||(u.parent?u.parent.message(X):DEFAULT_MESSAGE$1)}const D=X=>u.modifiers?u.modifiers[X]:DEFAULT_MODIFIER$1,O=isPlainObject$1(u.processor)&&isFunction$1$1(u.processor.normalize)?u.processor.normalize:DEFAULT_NORMALIZE$1,j=isPlainObject$1(u.processor)&&isFunction$1$1(u.processor.interpolate)?u.processor.interpolate:DEFAULT_INTERPOLATE$1,$=isPlainObject$1(u.processor)&&isString$2$1(u.processor.type)?u.processor.type:DEFAULT_MESSAGE_DATA_TYPE$1,Q={list:M,named:A,plural:I,linked:(X,...Y)=>{const[ie,oe]=Y;let ge="text",be="";Y.length===1?isObject$6(ie)?(be=ie.modifier||be,ge=ie.type||ge):isString$2$1(ie)&&(be=ie||be):Y.length===2&&(isString$2$1(ie)&&(be=ie||be),isString$2$1(oe)&&(ge=oe||ge));const ze=T(X)(Q),de=ge==="vnode"&&isArray$3(ze)&&be?ze[0]:ze;return be?D(be)(de,ge):de},message:T,type:$,interpolate:j,normalize:O,values:assign$1$1({},E,S)};return Q}let devtools$1=null;function setDevToolsHook$1(u){devtools$1=u}function initI18nDevTools$1(u,f,d){devtools$1&&devtools$1.emit("i18n:init",{timestamp:Date.now(),i18n:u,version:f,meta:d})}const translateDevTools$1=createDevToolsHook$1("function:translate");function createDevToolsHook$1(u){return f=>devtools$1&&devtools$1.emit(u,f)}const CoreWarnCodes$1={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7,__EXTEND_POINT__:8},code$2$1=CompileErrorCodes$1.__EXTEND_POINT__,inc$2$1=incrementer$1(code$2$1),CoreErrorCodes$1={INVALID_ARGUMENT:code$2$1,INVALID_DATE_ARGUMENT:inc$2$1(),INVALID_ISO_DATE_ARGUMENT:inc$2$1(),NOT_SUPPORT_NON_STRING_MESSAGE:inc$2$1(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:inc$2$1(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:inc$2$1(),NOT_SUPPORT_LOCALE_TYPE:inc$2$1(),__EXTEND_POINT__:inc$2$1()};function createCoreError$1(u){return createCompileError$1(u,null,void 0)}function getLocale$1(u,f){return f.locale!=null?resolveLocale$1(f.locale):resolveLocale$1(u.locale)}let _resolveLocale$1;function resolveLocale$1(u){if(isString$2$1(u))return u;if(isFunction$1$1(u)){if(u.resolvedOnce&&_resolveLocale$1!=null)return _resolveLocale$1;if(u.constructor.name==="Function"){const f=u();if(isPromise$1(f))throw createCoreError$1(CoreErrorCodes$1.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return _resolveLocale$1=f}else throw createCoreError$1(CoreErrorCodes$1.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw createCoreError$1(CoreErrorCodes$1.NOT_SUPPORT_LOCALE_TYPE)}function fallbackWithSimple$1(u,f,d){return[...new Set([d,...isArray$3(f)?f:isObject$6(f)?Object.keys(f):isString$2$1(f)?[f]:[d]])]}function fallbackWithLocaleChain$1(u,f,d){const _=isString$2$1(d)?d:DEFAULT_LOCALE$1,x=u;x.__localeChainCache||(x.__localeChainCache=new Map);let I=x.__localeChainCache.get(_);if(!I){I=[];let E=[d];for(;isArray$3(E);)E=appendBlockToChain$1(I,E,f);const M=isArray$3(f)||!isPlainObject$1(f)?f:f.default?f.default:null;E=isString$2$1(M)?[M]:M,isArray$3(E)&&appendBlockToChain$1(I,E,!1),x.__localeChainCache.set(_,I)}return I}function appendBlockToChain$1(u,f,d){let _=!0;for(let x=0;x<f.length&&isBoolean$1(_);x++){const I=f[x];isString$2$1(I)&&(_=appendLocaleToChain$1(u,f[x],d))}return _}function appendLocaleToChain$1(u,f,d){let _;const x=f.split("-");do{const I=x.join("-");_=appendItemToChain$1(u,I,d),x.splice(-1,1)}while(x.length&&_===!0);return _}function appendItemToChain$1(u,f,d){let _=!1;if(!u.includes(f)&&(_=!0,f)){_=f[f.length-1]!=="!";const x=f.replace(/!/g,"");u.push(x),(isArray$3(d)||isPlainObject$1(d))&&d[x]&&(_=d[x])}return _}const VERSION$1$1="9.9.1",NOT_REOSLVED$1=-1,DEFAULT_LOCALE$1="en-US",MISSING_RESOLVE_VALUE$1="",capitalize$1=u=>`${u.charAt(0).toLocaleUpperCase()}${u.substr(1)}`;function getDefaultLinkedModifiers$1(){return{upper:(u,f)=>f==="text"&&isString$2$1(u)?u.toUpperCase():f==="vnode"&&isObject$6(u)&&"__v_isVNode"in u?u.children.toUpperCase():u,lower:(u,f)=>f==="text"&&isString$2$1(u)?u.toLowerCase():f==="vnode"&&isObject$6(u)&&"__v_isVNode"in u?u.children.toLowerCase():u,capitalize:(u,f)=>f==="text"&&isString$2$1(u)?capitalize$1(u):f==="vnode"&&isObject$6(u)&&"__v_isVNode"in u?capitalize$1(u.children):u}}let _compiler$1;function registerMessageCompiler$1(u){_compiler$1=u}let _resolver$1;function registerMessageResolver$1(u){_resolver$1=u}let _fallbacker$1;function registerLocaleFallbacker$1(u){_fallbacker$1=u}let _additionalMeta$1=null;const setAdditionalMeta$1=u=>{_additionalMeta$1=u},getAdditionalMeta$1=()=>_additionalMeta$1;let _fallbackContext$1=null;const setFallbackContext$1=u=>{_fallbackContext$1=u},getFallbackContext$1=()=>_fallbackContext$1;let _cid$1=0;function createCoreContext$1(u={}){const f=isFunction$1$1(u.onWarn)?u.onWarn:warn$1,d=isString$2$1(u.version)?u.version:VERSION$1$1,_=isString$2$1(u.locale)||isFunction$1$1(u.locale)?u.locale:DEFAULT_LOCALE$1,x=isFunction$1$1(_)?DEFAULT_LOCALE$1:_,I=isArray$3(u.fallbackLocale)||isPlainObject$1(u.fallbackLocale)||isString$2$1(u.fallbackLocale)||u.fallbackLocale===!1?u.fallbackLocale:x,E=isPlainObject$1(u.messages)?u.messages:{[x]:{}},M=isPlainObject$1(u.datetimeFormats)?u.datetimeFormats:{[x]:{}},S=isPlainObject$1(u.numberFormats)?u.numberFormats:{[x]:{}},A=assign$1$1({},u.modifiers||{},getDefaultLinkedModifiers$1()),T=u.pluralRules||{},D=isFunction$1$1(u.missing)?u.missing:null,O=isBoolean$1(u.missingWarn)||isRegExp$1(u.missingWarn)?u.missingWarn:!0,j=isBoolean$1(u.fallbackWarn)||isRegExp$1(u.fallbackWarn)?u.fallbackWarn:!0,$=!!u.fallbackFormat,W=!!u.unresolving,Q=isFunction$1$1(u.postTranslation)?u.postTranslation:null,X=isPlainObject$1(u.processor)?u.processor:null,Y=isBoolean$1(u.warnHtmlMessage)?u.warnHtmlMessage:!0,ie=!!u.escapeParameter,oe=isFunction$1$1(u.messageCompiler)?u.messageCompiler:_compiler$1,ge=isFunction$1$1(u.messageResolver)?u.messageResolver:_resolver$1||resolveWithKeyValue$1,be=isFunction$1$1(u.localeFallbacker)?u.localeFallbacker:_fallbacker$1||fallbackWithSimple$1,ze=isObject$6(u.fallbackContext)?u.fallbackContext:void 0,de=u,Ce=isObject$6(de.__datetimeFormatters)?de.__datetimeFormatters:new Map,ke=isObject$6(de.__numberFormatters)?de.__numberFormatters:new Map,le=isObject$6(de.__meta)?de.__meta:{};_cid$1++;const re={version:d,cid:_cid$1,locale:_,fallbackLocale:I,messages:E,modifiers:A,pluralRules:T,missing:D,missingWarn:O,fallbackWarn:j,fallbackFormat:$,unresolving:W,postTranslation:Q,processor:X,warnHtmlMessage:Y,escapeParameter:ie,messageCompiler:oe,messageResolver:ge,localeFallbacker:be,fallbackContext:ze,onWarn:f,__meta:le};return re.datetimeFormats=M,re.numberFormats=S,re.__datetimeFormatters=Ce,re.__numberFormatters=ke,__INTLIFY_PROD_DEVTOOLS__&&initI18nDevTools$1(re,d,le),re}function handleMissing$1(u,f,d,_,x){const{missing:I,onWarn:E}=u;if(I!==null){const M=I(u,d,f,x);return isString$2$1(M)?M:f}else return f}function updateFallbackLocale$1(u,f,d){const _=u;_.__localeChainCache=new Map,u.localeFallbacker(u,d,f)}function format$2(u){return d=>formatParts$1(d,u)}function formatParts$1(u,f){const d=f.b||f.body;if((d.t||d.type)===1){const _=d,x=_.c||_.cases;return u.plural(x.reduce((I,E)=>[...I,formatMessageParts$1(u,E)],[]))}else return formatMessageParts$1(u,d)}function formatMessageParts$1(u,f){const d=f.s||f.static;if(d)return u.type==="text"?d:u.normalize([d]);{const _=(f.i||f.items).reduce((x,I)=>[...x,formatMessagePart$1(u,I)],[]);return u.normalize(_)}}function formatMessagePart$1(u,f){const d=f.t||f.type;switch(d){case 3:const _=f;return _.v||_.value;case 9:const x=f;return x.v||x.value;case 4:const I=f;return u.interpolate(u.named(I.k||I.key));case 5:const E=f;return u.interpolate(u.list(E.i!=null?E.i:E.index));case 6:const M=f,S=M.m||M.modifier;return u.linked(formatMessagePart$1(u,M.k||M.key),S?formatMessagePart$1(u,S):void 0,u.type);case 7:const A=f;return A.v||A.value;case 8:const T=f;return T.v||T.value;default:throw new Error(`unhandled node type on format message part: ${d}`)}}const defaultOnCacheKey$1=u=>u;let compileCache$1=Object.create(null);const isMessageAST$1=u=>isObject$6(u)&&(u.t===0||u.type===0)&&("b"in u||"body"in u);function baseCompile$2(u,f={}){let d=!1;const _=f.onError||defaultOnError$1;return f.onError=x=>{d=!0,_(x)},{...baseCompile$1$1(u,f),detectError:d}}const compileToFunction$1=(u,f)=>{if(!isString$2$1(u))throw createCoreError$1(CoreErrorCodes$1.NOT_SUPPORT_NON_STRING_MESSAGE);{isBoolean$1(f.warnHtmlMessage)&&f.warnHtmlMessage;const _=(f.onCacheKey||defaultOnCacheKey$1)(u),x=compileCache$1[_];if(x)return x;const{code:I,detectError:E}=baseCompile$2(u,f),M=new Function(`return ${I}`)();return E?M:compileCache$1[_]=M}};function compile$1(u,f){if(__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&isString$2$1(u)){isBoolean$1(f.warnHtmlMessage)&&f.warnHtmlMessage;const _=(f.onCacheKey||defaultOnCacheKey$1)(u),x=compileCache$1[_];if(x)return x;const{ast:I,detectError:E}=baseCompile$2(u,{...f,location:!1,jit:!0}),M=format$2(I);return E?M:compileCache$1[_]=M}else{const d=u.cacheKey;if(d){const _=compileCache$1[d];return _||(compileCache$1[d]=format$2(u))}else return format$2(u)}}const NOOP_MESSAGE_FUNCTION$1=()=>"",isMessageFunction$1=u=>isFunction$1$1(u);function translate$1$1(u,...f){const{fallbackFormat:d,postTranslation:_,unresolving:x,messageCompiler:I,fallbackLocale:E,messages:M}=u,[S,A]=parseTranslateArgs$1(...f),T=isBoolean$1(A.missingWarn)?A.missingWarn:u.missingWarn,D=isBoolean$1(A.fallbackWarn)?A.fallbackWarn:u.fallbackWarn,O=isBoolean$1(A.escapeParameter)?A.escapeParameter:u.escapeParameter,j=!!A.resolvedMessage,$=isString$2$1(A.default)||isBoolean$1(A.default)?isBoolean$1(A.default)?I?S:()=>S:A.default:d?I?S:()=>S:"",W=d||$!=="",Q=getLocale$1(u,A);O&&escapeParams$1(A);let[X,Y,ie]=j?[S,Q,M[Q]||{}]:resolveMessageFormat$1(u,S,Q,E,D,T),oe=X,ge=S;if(!j&&!(isString$2$1(oe)||isMessageAST$1(oe)||isMessageFunction$1(oe))&&W&&(oe=$,ge=oe),!j&&(!(isString$2$1(oe)||isMessageAST$1(oe)||isMessageFunction$1(oe))||!isString$2$1(Y)))return x?NOT_REOSLVED$1:S;let be=!1;const ze=()=>{be=!0},de=isMessageFunction$1(oe)?oe:compileMessageFormat$1(u,S,Y,oe,ge,ze);if(be)return oe;const Ce=getMessageContextOptions$1(u,Y,ie,A),ke=createMessageContext$1(Ce),le=evaluateMessage$1(u,de,ke),re=_?_(le,S):le;if(__INTLIFY_PROD_DEVTOOLS__){const P={timestamp:Date.now(),key:isString$2$1(S)?S:isMessageFunction$1(oe)?oe.key:"",locale:Y||(isMessageFunction$1(oe)?oe.locale:""),format:isString$2$1(oe)?oe:isMessageFunction$1(oe)?oe.source:"",message:re};P.meta=assign$1$1({},u.__meta,getAdditionalMeta$1()||{}),translateDevTools$1(P)}return re}function escapeParams$1(u){isArray$3(u.list)?u.list=u.list.map(f=>isString$2$1(f)?escapeHtml$1(f):f):isObject$6(u.named)&&Object.keys(u.named).forEach(f=>{isString$2$1(u.named[f])&&(u.named[f]=escapeHtml$1(u.named[f]))})}function resolveMessageFormat$1(u,f,d,_,x,I){const{messages:E,onWarn:M,messageResolver:S,localeFallbacker:A}=u,T=A(u,_,d);let D={},O,j=null;const $="translate";for(let W=0;W<T.length&&(O=T[W],D=E[O]||{},(j=S(D,f))===null&&(j=D[f]),!(isString$2$1(j)||isMessageAST$1(j)||isMessageFunction$1(j)));W++){const Q=handleMissing$1(u,f,O,I,$);Q!==f&&(j=Q)}return[j,O,D]}function compileMessageFormat$1(u,f,d,_,x,I){const{messageCompiler:E,warnHtmlMessage:M}=u;if(isMessageFunction$1(_)){const A=_;return A.locale=A.locale||d,A.key=A.key||f,A}if(E==null){const A=()=>_;return A.locale=d,A.key=f,A}const S=E(_,getCompileContext$1(u,d,x,_,M,I));return S.locale=d,S.key=f,S.source=_,S}function evaluateMessage$1(u,f,d){return f(d)}function parseTranslateArgs$1(...u){const[f,d,_]=u,x={};if(!isString$2$1(f)&&!isNumber$1(f)&&!isMessageFunction$1(f)&&!isMessageAST$1(f))throw createCoreError$1(CoreErrorCodes$1.INVALID_ARGUMENT);const I=isNumber$1(f)?String(f):(isMessageFunction$1(f),f);return isNumber$1(d)?x.plural=d:isString$2$1(d)?x.default=d:isPlainObject$1(d)&&!isEmptyObject$1(d)?x.named=d:isArray$3(d)&&(x.list=d),isNumber$1(_)?x.plural=_:isString$2$1(_)?x.default=_:isPlainObject$1(_)&&assign$1$1(x,_),[I,x]}function getCompileContext$1(u,f,d,_,x,I){return{locale:f,key:d,warnHtmlMessage:x,onError:E=>{throw I&&I(E),E},onCacheKey:E=>generateFormatCacheKey$1(f,d,E)}}function getMessageContextOptions$1(u,f,d,_){const{modifiers:x,pluralRules:I,messageResolver:E,fallbackLocale:M,fallbackWarn:S,missingWarn:A,fallbackContext:T}=u,O={locale:f,modifiers:x,pluralRules:I,messages:j=>{let $=E(d,j);if($==null&&T){const[,,W]=resolveMessageFormat$1(T,j,f,M,S,A);$=E(W,j)}if(isString$2$1($)||isMessageAST$1($)){let W=!1;const X=compileMessageFormat$1(u,j,f,$,j,()=>{W=!0});return W?NOOP_MESSAGE_FUNCTION$1:X}else return isMessageFunction$1($)?$:NOOP_MESSAGE_FUNCTION$1}};return u.processor&&(O.processor=u.processor),_.list&&(O.list=_.list),_.named&&(O.named=_.named),isNumber$1(_.plural)&&(O.pluralIndex=_.plural),O}function datetime$1(u,...f){const{datetimeFormats:d,unresolving:_,fallbackLocale:x,onWarn:I,localeFallbacker:E}=u,{__datetimeFormatters:M}=u,[S,A,T,D]=parseDateTimeArgs$1(...f),O=isBoolean$1(T.missingWarn)?T.missingWarn:u.missingWarn;isBoolean$1(T.fallbackWarn)?T.fallbackWarn:u.fallbackWarn;const j=!!T.part,$=getLocale$1(u,T),W=E(u,x,$);if(!isString$2$1(S)||S==="")return new Intl.DateTimeFormat($,D).format(A);let Q={},X,Y=null;const ie="datetime format";for(let be=0;be<W.length&&(X=W[be],Q=d[X]||{},Y=Q[S],!isPlainObject$1(Y));be++)handleMissing$1(u,S,X,O,ie);if(!isPlainObject$1(Y)||!isString$2$1(X))return _?NOT_REOSLVED$1:S;let oe=`${X}__${S}`;isEmptyObject$1(D)||(oe=`${oe}__${JSON.stringify(D)}`);let ge=M.get(oe);return ge||(ge=new Intl.DateTimeFormat(X,assign$1$1({},Y,D)),M.set(oe,ge)),j?ge.formatToParts(A):ge.format(A)}const DATETIME_FORMAT_OPTIONS_KEYS$1=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function parseDateTimeArgs$1(...u){const[f,d,_,x]=u,I={};let E={},M;if(isString$2$1(f)){const S=f.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!S)throw createCoreError$1(CoreErrorCodes$1.INVALID_ISO_DATE_ARGUMENT);const A=S[3]?S[3].trim().startsWith("T")?`${S[1].trim()}${S[3].trim()}`:`${S[1].trim()}T${S[3].trim()}`:S[1].trim();M=new Date(A);try{M.toISOString()}catch{throw createCoreError$1(CoreErrorCodes$1.INVALID_ISO_DATE_ARGUMENT)}}else if(isDate$1(f)){if(isNaN(f.getTime()))throw createCoreError$1(CoreErrorCodes$1.INVALID_DATE_ARGUMENT);M=f}else if(isNumber$1(f))M=f;else throw createCoreError$1(CoreErrorCodes$1.INVALID_ARGUMENT);return isString$2$1(d)?I.key=d:isPlainObject$1(d)&&Object.keys(d).forEach(S=>{DATETIME_FORMAT_OPTIONS_KEYS$1.includes(S)?E[S]=d[S]:I[S]=d[S]}),isString$2$1(_)?I.locale=_:isPlainObject$1(_)&&(E=_),isPlainObject$1(x)&&(E=x),[I.key||"",M,I,E]}function clearDateTimeFormat$1(u,f,d){const _=u;for(const x in d){const I=`${f}__${x}`;_.__datetimeFormatters.has(I)&&_.__datetimeFormatters.delete(I)}}function number$1(u,...f){const{numberFormats:d,unresolving:_,fallbackLocale:x,onWarn:I,localeFallbacker:E}=u,{__numberFormatters:M}=u,[S,A,T,D]=parseNumberArgs$1(...f),O=isBoolean$1(T.missingWarn)?T.missingWarn:u.missingWarn;isBoolean$1(T.fallbackWarn)?T.fallbackWarn:u.fallbackWarn;const j=!!T.part,$=getLocale$1(u,T),W=E(u,x,$);if(!isString$2$1(S)||S==="")return new Intl.NumberFormat($,D).format(A);let Q={},X,Y=null;const ie="number format";for(let be=0;be<W.length&&(X=W[be],Q=d[X]||{},Y=Q[S],!isPlainObject$1(Y));be++)handleMissing$1(u,S,X,O,ie);if(!isPlainObject$1(Y)||!isString$2$1(X))return _?NOT_REOSLVED$1:S;let oe=`${X}__${S}`;isEmptyObject$1(D)||(oe=`${oe}__${JSON.stringify(D)}`);let ge=M.get(oe);return ge||(ge=new Intl.NumberFormat(X,assign$1$1({},Y,D)),M.set(oe,ge)),j?ge.formatToParts(A):ge.format(A)}const NUMBER_FORMAT_OPTIONS_KEYS$1=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function parseNumberArgs$1(...u){const[f,d,_,x]=u,I={};let E={};if(!isNumber$1(f))throw createCoreError$1(CoreErrorCodes$1.INVALID_ARGUMENT);const M=f;return isString$2$1(d)?I.key=d:isPlainObject$1(d)&&Object.keys(d).forEach(S=>{NUMBER_FORMAT_OPTIONS_KEYS$1.includes(S)?E[S]=d[S]:I[S]=d[S]}),isString$2$1(_)?I.locale=_:isPlainObject$1(_)&&(E=_),isPlainObject$1(x)&&(E=x),[I.key||"",M,I,E]}function clearNumberFormat$1(u,f,d){const _=u;for(const x in d){const I=`${f}__${x}`;_.__numberFormatters.has(I)&&_.__numberFormatters.delete(I)}}initFeatureFlags$1$1();/*!
  * vue-i18n v9.9.1
  * (c) 2024 kazuya kawaguchi
  * Released under the MIT License.
  */const VERSION$2="9.9.1";function initFeatureFlags$2(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(getGlobalThis$1().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(getGlobalThis$1().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(getGlobalThis$1().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(getGlobalThis$1().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(getGlobalThis$1().__INTLIFY_PROD_DEVTOOLS__=!1)}const code$1$1=CoreWarnCodes$1.__EXTEND_POINT__,inc$1$1=incrementer$1(code$1$1);inc$1$1(),inc$1$1(),inc$1$1(),inc$1$1(),inc$1$1(),inc$1$1(),inc$1$1(),inc$1$1();const code$3=CoreErrorCodes$1.__EXTEND_POINT__,inc$3=incrementer$1(code$3),I18nErrorCodes$1={UNEXPECTED_RETURN_TYPE:code$3,INVALID_ARGUMENT:inc$3(),MUST_BE_CALL_SETUP_TOP:inc$3(),NOT_INSTALLED:inc$3(),NOT_AVAILABLE_IN_LEGACY_MODE:inc$3(),REQUIRED_VALUE:inc$3(),INVALID_VALUE:inc$3(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:inc$3(),NOT_INSTALLED_WITH_PROVIDE:inc$3(),UNEXPECTED_ERROR:inc$3(),NOT_COMPATIBLE_LEGACY_VUE_I18N:inc$3(),BRIDGE_SUPPORT_VUE_2_ONLY:inc$3(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:inc$3(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:inc$3(),__EXTEND_POINT__:inc$3()};function createI18nError$1(u,...f){return createCompileError$1(u,null,void 0)}const TranslateVNodeSymbol$1=makeSymbol$1("__translateVNode"),DatetimePartsSymbol$1=makeSymbol$1("__datetimeParts"),NumberPartsSymbol$1=makeSymbol$1("__numberParts"),SetPluralRulesSymbol$1=makeSymbol$1("__setPluralRules"),InejctWithOptionSymbol$1=makeSymbol$1("__injectWithOption"),DisposeSymbol$1=makeSymbol$1("__dispose");function handleFlatJson$1(u){if(!isObject$6(u))return u;for(const f in u)if(hasOwn$2(u,f))if(!f.includes("."))isObject$6(u[f])&&handleFlatJson$1(u[f]);else{const d=f.split("."),_=d.length-1;let x=u,I=!1;for(let E=0;E<_;E++){if(d[E]in x||(x[d[E]]={}),!isObject$6(x[d[E]])){I=!0;break}x=x[d[E]]}I||(x[d[_]]=u[f],delete u[f]),isObject$6(x[d[_]])&&handleFlatJson$1(x[d[_]])}return u}function getLocaleMessages$1(u,f){const{messages:d,__i18n:_,messageResolver:x,flatJson:I}=f,E=isPlainObject$1(d)?d:isArray$3(_)?{}:{[u]:{}};if(isArray$3(_)&&_.forEach(M=>{if("locale"in M&&"resource"in M){const{locale:S,resource:A}=M;S?(E[S]=E[S]||{},deepCopy$1(A,E[S])):deepCopy$1(A,E)}else isString$2$1(M)&&deepCopy$1(JSON.parse(M),E)}),x==null&&I)for(const M in E)hasOwn$2(E,M)&&handleFlatJson$1(E[M]);return E}function getComponentOptions$1(u){return u.type}function adjustI18nResources$1(u,f,d){let _=isObject$6(f.messages)?f.messages:{};"__i18nGlobal"in d&&(_=getLocaleMessages$1(u.locale.value,{messages:_,__i18n:d.__i18nGlobal}));const x=Object.keys(_);x.length&&x.forEach(I=>{u.mergeLocaleMessage(I,_[I])});{if(isObject$6(f.datetimeFormats)){const I=Object.keys(f.datetimeFormats);I.length&&I.forEach(E=>{u.mergeDateTimeFormat(E,f.datetimeFormats[E])})}if(isObject$6(f.numberFormats)){const I=Object.keys(f.numberFormats);I.length&&I.forEach(E=>{u.mergeNumberFormat(E,f.numberFormats[E])})}}}function createTextNode$1(u){return createVNode(Text,null,u,0)}const DEVTOOLS_META$1="__INTLIFY_META__",NOOP_RETURN_ARRAY$1=()=>[],NOOP_RETURN_FALSE$1=()=>!1;let composerID$1=0;function defineCoreMissingHandler$1(u){return(f,d,_,x)=>u(d,_,getCurrentInstance()||void 0,x)}const getMetaInfo$1=()=>{const u=getCurrentInstance();let f=null;return u&&(f=getComponentOptions$1(u)[DEVTOOLS_META$1])?{[DEVTOOLS_META$1]:f}:null};function createComposer$1(u={},f){const{__root:d,__injectWithOption:_}=u,x=d===void 0,I=u.flatJson,E=inBrowser$1?ref:shallowRef;let M=isBoolean$1(u.inheritLocale)?u.inheritLocale:!0;const S=E(d&&M?d.locale.value:isString$2$1(u.locale)?u.locale:DEFAULT_LOCALE$1),A=E(d&&M?d.fallbackLocale.value:isString$2$1(u.fallbackLocale)||isArray$3(u.fallbackLocale)||isPlainObject$1(u.fallbackLocale)||u.fallbackLocale===!1?u.fallbackLocale:S.value),T=E(getLocaleMessages$1(S.value,u)),D=E(isPlainObject$1(u.datetimeFormats)?u.datetimeFormats:{[S.value]:{}}),O=E(isPlainObject$1(u.numberFormats)?u.numberFormats:{[S.value]:{}});let j=d?d.missingWarn:isBoolean$1(u.missingWarn)||isRegExp$1(u.missingWarn)?u.missingWarn:!0,$=d?d.fallbackWarn:isBoolean$1(u.fallbackWarn)||isRegExp$1(u.fallbackWarn)?u.fallbackWarn:!0,W=d?d.fallbackRoot:isBoolean$1(u.fallbackRoot)?u.fallbackRoot:!0,Q=!!u.fallbackFormat,X=isFunction$1$1(u.missing)?u.missing:null,Y=isFunction$1$1(u.missing)?defineCoreMissingHandler$1(u.missing):null,ie=isFunction$1$1(u.postTranslation)?u.postTranslation:null,oe=d?d.warnHtmlMessage:isBoolean$1(u.warnHtmlMessage)?u.warnHtmlMessage:!0,ge=!!u.escapeParameter;const be=d?d.modifiers:isPlainObject$1(u.modifiers)?u.modifiers:{};let ze=u.pluralRules||d&&d.pluralRules,de;de=(()=>{x&&setFallbackContext$1(null);const Ot={version:VERSION$2,locale:S.value,fallbackLocale:A.value,messages:T.value,modifiers:be,pluralRules:ze,missing:Y===null?void 0:Y,missingWarn:j,fallbackWarn:$,fallbackFormat:Q,unresolving:!0,postTranslation:ie===null?void 0:ie,warnHtmlMessage:oe,escapeParameter:ge,messageResolver:u.messageResolver,messageCompiler:u.messageCompiler,__meta:{framework:"vue"}};Ot.datetimeFormats=D.value,Ot.numberFormats=O.value,Ot.__datetimeFormatters=isPlainObject$1(de)?de.__datetimeFormatters:void 0,Ot.__numberFormatters=isPlainObject$1(de)?de.__numberFormatters:void 0;const St=createCoreContext$1(Ot);return x&&setFallbackContext$1(St),St})(),updateFallbackLocale$1(de,S.value,A.value);function ke(){return[S.value,A.value,T.value,D.value,O.value]}const le=computed({get:()=>S.value,set:Ot=>{S.value=Ot,de.locale=S.value}}),re=computed({get:()=>A.value,set:Ot=>{A.value=Ot,de.fallbackLocale=A.value,updateFallbackLocale$1(de,S.value,Ot)}}),P=computed(()=>T.value),k=computed(()=>D.value),B=computed(()=>O.value);function z(){return isFunction$1$1(ie)?ie:null}function ee(Ot){ie=Ot,de.postTranslation=Ot}function H(){return X}function q(Ot){Ot!==null&&(Y=defineCoreMissingHandler$1(Ot)),X=Ot,de.missing=Y}const J=(Ot,St,pi,eM,hi,mi)=>{ke();let Dn;try{__INTLIFY_PROD_DEVTOOLS__,x||(de.fallbackContext=d?getFallbackContext$1():void 0),Dn=Ot(de)}finally{__INTLIFY_PROD_DEVTOOLS__,x||(de.fallbackContext=void 0)}if(pi!=="translate exists"&&isNumber$1(Dn)&&Dn===NOT_REOSLVED$1||pi==="translate exists"&&!Dn){const[tM,oM]=St();return d&&W?eM(d):hi(tM)}else{if(mi(Dn))return Dn;throw createI18nError$1(I18nErrorCodes$1.UNEXPECTED_RETURN_TYPE)}};function U(...Ot){return J(St=>Reflect.apply(translate$1$1,null,[St,...Ot]),()=>parseTranslateArgs$1(...Ot),"translate",St=>Reflect.apply(St.t,St,[...Ot]),St=>St,St=>isString$2$1(St))}function Z(...Ot){const[St,pi,eM]=Ot;if(eM&&!isObject$6(eM))throw createI18nError$1(I18nErrorCodes$1.INVALID_ARGUMENT);return U(St,pi,assign$1$1({resolvedMessage:!0},eM||{}))}function ve(...Ot){return J(St=>Reflect.apply(datetime$1,null,[St,...Ot]),()=>parseDateTimeArgs$1(...Ot),"datetime format",St=>Reflect.apply(St.d,St,[...Ot]),()=>MISSING_RESOLVE_VALUE$1,St=>isString$2$1(St))}function Ye(...Ot){return J(St=>Reflect.apply(number$1,null,[St,...Ot]),()=>parseNumberArgs$1(...Ot),"number format",St=>Reflect.apply(St.n,St,[...Ot]),()=>MISSING_RESOLVE_VALUE$1,St=>isString$2$1(St))}function rt(Ot){return Ot.map(St=>isString$2$1(St)||isNumber$1(St)||isBoolean$1(St)?createTextNode$1(String(St)):St)}const Qe={normalize:rt,interpolate:Ot=>Ot,type:"vnode"};function vt(...Ot){return J(St=>{let pi;const eM=St;try{eM.processor=Qe,pi=Reflect.apply(translate$1$1,null,[eM,...Ot])}finally{eM.processor=null}return pi},()=>parseTranslateArgs$1(...Ot),"translate",St=>St[TranslateVNodeSymbol$1](...Ot),St=>[createTextNode$1(St)],St=>isArray$3(St))}function ri(...Ot){return J(St=>Reflect.apply(number$1,null,[St,...Ot]),()=>parseNumberArgs$1(...Ot),"number format",St=>St[NumberPartsSymbol$1](...Ot),NOOP_RETURN_ARRAY$1,St=>isString$2$1(St)||isArray$3(St))}function ci(...Ot){return J(St=>Reflect.apply(datetime$1,null,[St,...Ot]),()=>parseDateTimeArgs$1(...Ot),"datetime format",St=>St[DatetimePartsSymbol$1](...Ot),NOOP_RETURN_ARRAY$1,St=>isString$2$1(St)||isArray$3(St))}function tt(Ot){ze=Ot,de.pluralRules=ze}function et(Ot,St){return J(()=>{if(!Ot)return!1;const pi=isString$2$1(St)?St:S.value,eM=ot(pi),hi=de.messageResolver(eM,Ot);return isMessageAST$1(hi)||isMessageFunction$1(hi)||isString$2$1(hi)},()=>[Ot],"translate exists",pi=>Reflect.apply(pi.te,pi,[Ot,St]),NOOP_RETURN_FALSE$1,pi=>isBoolean$1(pi))}function $e(Ot){let St=null;const pi=fallbackWithLocaleChain$1(de,A.value,S.value);for(let eM=0;eM<pi.length;eM++){const hi=T.value[pi[eM]]||{},mi=de.messageResolver(hi,Ot);if(mi!=null){St=mi;break}}return St}function Le(Ot){const St=$e(Ot);return St??(d?d.tm(Ot)||{}:{})}function ot(Ot){return T.value[Ot]||{}}function Oe(Ot,St){if(I){const pi={[Ot]:St};for(const eM in pi)hasOwn$2(pi,eM)&&handleFlatJson$1(pi[eM]);St=pi[Ot]}T.value[Ot]=St,de.messages=T.value}function Ne(Ot,St){T.value[Ot]=T.value[Ot]||{};const pi={[Ot]:St};if(I)for(const eM in pi)hasOwn$2(pi,eM)&&handleFlatJson$1(pi[eM]);St=pi[Ot],deepCopy$1(St,T.value[Ot]),de.messages=T.value}function Fe(Ot){return D.value[Ot]||{}}function Je(Ot,St){D.value[Ot]=St,de.datetimeFormats=D.value,clearDateTimeFormat$1(de,Ot,St)}function Dt(Ot,St){D.value[Ot]=assign$1$1(D.value[Ot]||{},St),de.datetimeFormats=D.value,clearDateTimeFormat$1(de,Ot,St)}function oi(Ot){return O.value[Ot]||{}}function Bt(Ot,St){O.value[Ot]=St,de.numberFormats=O.value,clearNumberFormat$1(de,Ot,St)}function li(Ot,St){O.value[Ot]=assign$1$1(O.value[Ot]||{},St),de.numberFormats=O.value,clearNumberFormat$1(de,Ot,St)}composerID$1++,d&&inBrowser$1&&(watch(d.locale,Ot=>{M&&(S.value=Ot,de.locale=Ot,updateFallbackLocale$1(de,S.value,A.value))}),watch(d.fallbackLocale,Ot=>{M&&(A.value=Ot,de.fallbackLocale=Ot,updateFallbackLocale$1(de,S.value,A.value))}));const ii={id:composerID$1,locale:le,fallbackLocale:re,get inheritLocale(){return M},set inheritLocale(Ot){M=Ot,Ot&&d&&(S.value=d.locale.value,A.value=d.fallbackLocale.value,updateFallbackLocale$1(de,S.value,A.value))},get availableLocales(){return Object.keys(T.value).sort()},messages:P,get modifiers(){return be},get pluralRules(){return ze||{}},get isGlobal(){return x},get missingWarn(){return j},set missingWarn(Ot){j=Ot,de.missingWarn=j},get fallbackWarn(){return $},set fallbackWarn(Ot){$=Ot,de.fallbackWarn=$},get fallbackRoot(){return W},set fallbackRoot(Ot){W=Ot},get fallbackFormat(){return Q},set fallbackFormat(Ot){Q=Ot,de.fallbackFormat=Q},get warnHtmlMessage(){return oe},set warnHtmlMessage(Ot){oe=Ot,de.warnHtmlMessage=Ot},get escapeParameter(){return ge},set escapeParameter(Ot){ge=Ot,de.escapeParameter=Ot},t:U,getLocaleMessage:ot,setLocaleMessage:Oe,mergeLocaleMessage:Ne,getPostTranslationHandler:z,setPostTranslationHandler:ee,getMissingHandler:H,setMissingHandler:q,[SetPluralRulesSymbol$1]:tt};return ii.datetimeFormats=k,ii.numberFormats=B,ii.rt=Z,ii.te=et,ii.tm=Le,ii.d=ve,ii.n=Ye,ii.getDateTimeFormat=Fe,ii.setDateTimeFormat=Je,ii.mergeDateTimeFormat=Dt,ii.getNumberFormat=oi,ii.setNumberFormat=Bt,ii.mergeNumberFormat=li,ii[InejctWithOptionSymbol$1]=_,ii[TranslateVNodeSymbol$1]=vt,ii[DatetimePartsSymbol$1]=ci,ii[NumberPartsSymbol$1]=ri,ii}const baseFormatProps$1={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:u=>u==="parent"||u==="global",default:"parent"},i18n:{type:Object}};function getInterpolateArg$1({slots:u},f){return f.length===1&&f[0]==="default"?(u.default?u.default():[]).reduce((_,x)=>[..._,...x.type===Fragment?x.children:[x]],[]):f.reduce((d,_)=>{const x=u[_];return x&&(d[_]=x()),d},{})}function getFragmentableTag$1(u){return Fragment}assign$1$1({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:u=>isNumber$1(u)||!isNaN(u)}},baseFormatProps$1);function isVNode$1(u){return isArray$3(u)&&!isString$2$1(u[0])}function renderFormatter$1(u,f,d,_){const{slots:x,attrs:I}=f;return()=>{const E={part:!0};let M={};u.locale&&(E.locale=u.locale),isString$2$1(u.format)?E.key=u.format:isObject$6(u.format)&&(isString$2$1(u.format.key)&&(E.key=u.format.key),M=Object.keys(u.format).reduce((O,j)=>d.includes(j)?assign$1$1({},O,{[j]:u.format[j]}):O,{}));const S=_(u.value,E,M);let A=[E.key];isArray$3(S)?A=S.map((O,j)=>{const $=x[O.type],W=$?$({[O.type]:O.value,index:j,parts:S}):[O.value];return isVNode$1(W)&&(W[0].key=`${O.type}-${j}`),W}):isString$2$1(S)&&(A=[S]);const T=assign$1$1({},I),D=isString$2$1(u.tag)||isObject$6(u.tag)?u.tag:getFragmentableTag$1();return h$1(D,T,A)}}assign$1$1({value:{type:Number,required:!0},format:{type:[String,Object]}},baseFormatProps$1);assign$1$1({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},baseFormatProps$1);const I18nInjectionKey$1=makeSymbol$1("global-vue-i18n");function useI18n$1(u={}){const f=getCurrentInstance();if(f==null)throw createI18nError$1(I18nErrorCodes$1.MUST_BE_CALL_SETUP_TOP);if(!f.isCE&&f.appContext.app!=null&&!f.appContext.app.__VUE_I18N_SYMBOL__)throw createI18nError$1(I18nErrorCodes$1.NOT_INSTALLED);const d=getI18nInstance$1(f),_=getGlobalComposer$1(d),x=getComponentOptions$1(f),I=getScope$1(u,x);if(__VUE_I18N_LEGACY_API__&&d.mode==="legacy"&&!u.__useComponent){if(!d.allowComposition)throw createI18nError$1(I18nErrorCodes$1.NOT_AVAILABLE_IN_LEGACY_MODE);return useI18nForLegacy$1(f,I,_,u)}if(I==="global")return adjustI18nResources$1(_,u,x),_;if(I==="parent"){let S=getComposer$1(d,f,u.__useComponent);return S==null&&(S=_),S}const E=d;let M=E.__getInstance(f);if(M==null){const S=assign$1$1({},u);"__i18n"in x&&(S.__i18n=x.__i18n),_&&(S.__root=_),M=createComposer$1(S),E.__composerExtend&&(M[DisposeSymbol$1]=E.__composerExtend(M)),setupLifeCycle$1(E,f,M),E.__setInstance(f,M)}return M}function getI18nInstance$1(u){{const f=inject(u.isCE?I18nInjectionKey$1:u.appContext.app.__VUE_I18N_SYMBOL__);if(!f)throw createI18nError$1(u.isCE?I18nErrorCodes$1.NOT_INSTALLED_WITH_PROVIDE:I18nErrorCodes$1.UNEXPECTED_ERROR);return f}}function getScope$1(u,f){return isEmptyObject$1(u)?"__i18n"in f?"local":"global":u.useScope?u.useScope:"local"}function getGlobalComposer$1(u){return u.mode==="composition"?u.global:u.global.__composer}function getComposer$1(u,f,d=!1){let _=null;const x=f.root;let I=getParentComponentInstance$1(f,d);for(;I!=null;){const E=u;if(u.mode==="composition")_=E.__getInstance(I);else if(__VUE_I18N_LEGACY_API__){const M=E.__getInstance(I);M!=null&&(_=M.__composer,d&&_&&!_[InejctWithOptionSymbol$1]&&(_=null))}if(_!=null||x===I)break;I=I.parent}return _}function getParentComponentInstance$1(u,f=!1){return u==null?null:f&&u.vnode.ctx||u.parent}function setupLifeCycle$1(u,f,d){onMounted(()=>{},f),onUnmounted(()=>{const _=d;u.__deleteInstance(f);const x=_[DisposeSymbol$1];x&&(x(),delete _[DisposeSymbol$1])},f)}function useI18nForLegacy$1(u,f,d,_={}){const x=f==="local",I=shallowRef(null);if(x&&u.proxy&&!(u.proxy.$options.i18n||u.proxy.$options.__i18n))throw createI18nError$1(I18nErrorCodes$1.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const E=isBoolean$1(_.inheritLocale)?_.inheritLocale:!isString$2$1(_.locale),M=ref(!x||E?d.locale.value:isString$2$1(_.locale)?_.locale:DEFAULT_LOCALE$1),S=ref(!x||E?d.fallbackLocale.value:isString$2$1(_.fallbackLocale)||isArray$3(_.fallbackLocale)||isPlainObject$1(_.fallbackLocale)||_.fallbackLocale===!1?_.fallbackLocale:M.value),A=ref(getLocaleMessages$1(M.value,_)),T=ref(isPlainObject$1(_.datetimeFormats)?_.datetimeFormats:{[M.value]:{}}),D=ref(isPlainObject$1(_.numberFormats)?_.numberFormats:{[M.value]:{}}),O=x?d.missingWarn:isBoolean$1(_.missingWarn)||isRegExp$1(_.missingWarn)?_.missingWarn:!0,j=x?d.fallbackWarn:isBoolean$1(_.fallbackWarn)||isRegExp$1(_.fallbackWarn)?_.fallbackWarn:!0,$=x?d.fallbackRoot:isBoolean$1(_.fallbackRoot)?_.fallbackRoot:!0,W=!!_.fallbackFormat,Q=isFunction$1$1(_.missing)?_.missing:null,X=isFunction$1$1(_.postTranslation)?_.postTranslation:null,Y=x?d.warnHtmlMessage:isBoolean$1(_.warnHtmlMessage)?_.warnHtmlMessage:!0,ie=!!_.escapeParameter,oe=x?d.modifiers:isPlainObject$1(_.modifiers)?_.modifiers:{},ge=_.pluralRules||x&&d.pluralRules;function be(){return[M.value,S.value,A.value,T.value,D.value]}const ze=computed({get:()=>I.value?I.value.locale.value:M.value,set:Le=>{I.value&&(I.value.locale.value=Le),M.value=Le}}),de=computed({get:()=>I.value?I.value.fallbackLocale.value:S.value,set:Le=>{I.value&&(I.value.fallbackLocale.value=Le),S.value=Le}}),Ce=computed(()=>I.value?I.value.messages.value:A.value),ke=computed(()=>T.value),le=computed(()=>D.value);function re(){return I.value?I.value.getPostTranslationHandler():X}function P(Le){I.value&&I.value.setPostTranslationHandler(Le)}function k(){return I.value?I.value.getMissingHandler():Q}function B(Le){I.value&&I.value.setMissingHandler(Le)}function z(Le){return be(),Le()}function ee(...Le){return I.value?z(()=>Reflect.apply(I.value.t,null,[...Le])):z(()=>"")}function H(...Le){return I.value?Reflect.apply(I.value.rt,null,[...Le]):""}function q(...Le){return I.value?z(()=>Reflect.apply(I.value.d,null,[...Le])):z(()=>"")}function J(...Le){return I.value?z(()=>Reflect.apply(I.value.n,null,[...Le])):z(()=>"")}function U(Le){return I.value?I.value.tm(Le):{}}function Z(Le,ot){return I.value?I.value.te(Le,ot):!1}function ve(Le){return I.value?I.value.getLocaleMessage(Le):{}}function Ye(Le,ot){I.value&&(I.value.setLocaleMessage(Le,ot),A.value[Le]=ot)}function rt(Le,ot){I.value&&I.value.mergeLocaleMessage(Le,ot)}function Ue(Le){return I.value?I.value.getDateTimeFormat(Le):{}}function Qe(Le,ot){I.value&&(I.value.setDateTimeFormat(Le,ot),T.value[Le]=ot)}function vt(Le,ot){I.value&&I.value.mergeDateTimeFormat(Le,ot)}function ri(Le){return I.value?I.value.getNumberFormat(Le):{}}function ci(Le,ot){I.value&&(I.value.setNumberFormat(Le,ot),D.value[Le]=ot)}function tt(Le,ot){I.value&&I.value.mergeNumberFormat(Le,ot)}const et={get id(){return I.value?I.value.id:-1},locale:ze,fallbackLocale:de,messages:Ce,datetimeFormats:ke,numberFormats:le,get inheritLocale(){return I.value?I.value.inheritLocale:E},set inheritLocale(Le){I.value&&(I.value.inheritLocale=Le)},get availableLocales(){return I.value?I.value.availableLocales:Object.keys(A.value)},get modifiers(){return I.value?I.value.modifiers:oe},get pluralRules(){return I.value?I.value.pluralRules:ge},get isGlobal(){return I.value?I.value.isGlobal:!1},get missingWarn(){return I.value?I.value.missingWarn:O},set missingWarn(Le){I.value&&(I.value.missingWarn=Le)},get fallbackWarn(){return I.value?I.value.fallbackWarn:j},set fallbackWarn(Le){I.value&&(I.value.missingWarn=Le)},get fallbackRoot(){return I.value?I.value.fallbackRoot:$},set fallbackRoot(Le){I.value&&(I.value.fallbackRoot=Le)},get fallbackFormat(){return I.value?I.value.fallbackFormat:W},set fallbackFormat(Le){I.value&&(I.value.fallbackFormat=Le)},get warnHtmlMessage(){return I.value?I.value.warnHtmlMessage:Y},set warnHtmlMessage(Le){I.value&&(I.value.warnHtmlMessage=Le)},get escapeParameter(){return I.value?I.value.escapeParameter:ie},set escapeParameter(Le){I.value&&(I.value.escapeParameter=Le)},t:ee,getPostTranslationHandler:re,setPostTranslationHandler:P,getMissingHandler:k,setMissingHandler:B,rt:H,d:q,n:J,tm:U,te:Z,getLocaleMessage:ve,setLocaleMessage:Ye,mergeLocaleMessage:rt,getDateTimeFormat:Ue,setDateTimeFormat:Qe,mergeDateTimeFormat:vt,getNumberFormat:ri,setNumberFormat:ci,mergeNumberFormat:tt};function $e(Le){Le.locale.value=M.value,Le.fallbackLocale.value=S.value,Object.keys(A.value).forEach(ot=>{Le.mergeLocaleMessage(ot,A.value[ot])}),Object.keys(T.value).forEach(ot=>{Le.mergeDateTimeFormat(ot,T.value[ot])}),Object.keys(D.value).forEach(ot=>{Le.mergeNumberFormat(ot,D.value[ot])}),Le.escapeParameter=ie,Le.fallbackFormat=W,Le.fallbackRoot=$,Le.fallbackWarn=j,Le.missingWarn=O,Le.warnHtmlMessage=Y}return onBeforeMount(()=>{if(u.proxy==null||u.proxy.$i18n==null)throw createI18nError$1(I18nErrorCodes$1.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const Le=I.value=u.proxy.$i18n.__composer;f==="global"?(M.value=Le.locale.value,S.value=Le.fallbackLocale.value,A.value=Le.messages.value,T.value=Le.datetimeFormats.value,D.value=Le.numberFormats.value):x&&$e(Le)}),et}initFeatureFlags$2();__INTLIFY_JIT_COMPILATION__?registerMessageCompiler$1(compile$1):registerMessageCompiler$1(compileToFunction$1);registerMessageResolver$1(resolveValue$1);registerLocaleFallbacker$1(fallbackWithLocaleChain$1);if(__INTLIFY_PROD_DEVTOOLS__){const u=getGlobalThis$1();u.__INTLIFY__=!0,setDevToolsHook$1(u.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const _hoisted_1$2w={key:1,style:{width:"24px"}},_sfc_main$30=defineComponent({__name:"BasicButton",props:{type:{default:"primary"},progress:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},width:{default:"120px"}},setup(u){useCssVars(_=>({"1d4ef2e0":_.width}));const f=u,d=computed(()=>f.type==="primary"||f.type==="medium"||f.type==="small"||f.type==="x_small"?colors.currentThemeRef.value.grey_fff:f.type==="secondary"||f.type==="medium_secondary"||f.type==="small_secondary"||f.type==="x_small_secondary"?colors.currentThemeRef.value.main:colors.currentThemeRef.value.grey_111);return(_,x)=>(openBlock(),createElementBlock("div",{class:normalizeClass(["buttonWrapper",[_.type,_.progress?"progress":"",_.disabled?"disabled":""]])},[_.progress?(openBlock(),createBlock(unref(SpinLoading),{key:0,size:_.type==="primary"||_.type==="outlined"?24:22,color:d.value,"data-chromatic":"ignore"},null,8,["size","color"])):createCommentVNode("",!0),renderSlot(_.$slots,"default",{},void 0,!0),_.progress?(openBlock(),createElementBlock("div",_hoisted_1$2w)):createCommentVNode("",!0)],2))}}),BasicButton=_export_sfc$1(_sfc_main$30,[["__scopeId","data-v-57fedfeb"]]),_sfc_main$2$=defineComponent({__name:"IconButton",props:{name:{default:void 0},iconSize:{default:"medium"},size:{default:"big"},customSize:{default:"70px"},customPadding:{default:"14px"},color:{},rounded:{type:Boolean}},setup(u){useCssVars(_=>({"17df5930":_.customSize,"62bd8082":_.customPadding}));const f=u,d=computed(()=>f.color||colors.currentThemeRef.value.main);return(_,x)=>(openBlock(),createElementBlock("div",{class:normalizeClass(["icon-button",[_.size,_.rounded?"rounded":""]])},[createVNode(unref(Element$1),{name:_.name,size:_.iconSize,color:d.value},null,8,["name","size","color"])],2))}}),IconButton=_export_sfc$1(_sfc_main$2$,[["__scopeId","data-v-7ac78a89"]]),_sfc_main$2_=defineComponent({__name:"RefreshButton",props:{locale:{},status:{}},setup(u){const f=u,d=computed(()=>f.locale[f.status]||"unknown"),_=computed(()=>{switch(f.status){case"loading":return colors.currentThemeRef.value.main;case"disabled":return colors.currentThemeRef.value.bg_disable;case"refresh":default:return colors.currentThemeRef.value.grey_333}});return(x,I)=>(openBlock(),createElementBlock("div",{class:normalizeClass(["refresh-button-wrapper",x.status])},[createBaseVNode("span",null,toDisplayString$2(d.value),1),createVNode(unref(Element$1),{name:"Refresh",size:"medium",color:_.value},null,8,["color"])],2))}}),RefreshButton=_export_sfc$1(_sfc_main$2_,[["__scopeId","data-v-9a8190d8"]]),_hoisted_1$2v={width:"20",height:"20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$22=["stroke"],_hoisted_3$1F=["fill"],_hoisted_4$1p={key:2,d:"m4.6 9.4 4 4 6.65-6.15",stroke:"#fff","stroke-width":"1.5"},_sfc_main$2Z=defineComponent({__name:"CheckBox",props:{checked:{type:Boolean},color:{default:void 0},disabled:{type:Boolean,default:!1}},emits:["update:checked"],setup(u,{emit:f}){const d=u,_=f,x=computed(()=>d.color||colors.currentThemeRef.value.main),I=ref(!1),E=computed({get(){return typeof d.checked>"u"?I.value:d.checked},set(S){typeof d.checked>"u"&&(I.value=!0),_("update:checked",S)}}),M=()=>{E.value=!E.value};return(S,A)=>(openBlock(),createElementBlock("div",{class:"wrapper",onClick:M},[(openBlock(),createElementBlock("svg",_hoisted_1$2v,[E.value?createCommentVNode("",!0):(openBlock(),createElementBlock("rect",{key:0,x:".5",y:".5",width:"19",height:"19",rx:"3.5",fill:"#fff",stroke:unref(colors).currentThemeRef.value.line_02},null,8,_hoisted_2$22)),E.value?(openBlock(),createElementBlock("rect",{key:1,width:"20",height:"20",rx:"4",fill:x.value},null,8,_hoisted_3$1F)):createCommentVNode("",!0),E.value?(openBlock(),createElementBlock("path",_hoisted_4$1p)):createCommentVNode("",!0)]))]))}}),CheckBox=_export_sfc$1(_sfc_main$2Z,[["__scopeId","data-v-da0c8719"]]),_hoisted_1$2u={class:"knob"},_hoisted_2$21={class:"slot-left-wrapper"},_hoisted_3$1E={class:"name"},_hoisted_4$1o={class:"slot-right-wrapper"},_hoisted_5$19={key:0,class:"drawer"},_sfc_main$2Y=defineComponent({__name:"SelectBox",props:{name:{type:String,default:""},width:{type:[String,Number],default:"360px"},open:{type:Boolean,default:!1},iconDirection:{type:String,validator:u=>["Down","Right"].includes(u),default:"Down"}},setup(u){useCssVars(_=>({"5bf7401c":d.value.width}));const f=u,d=computed(()=>{let _=f.width;return typeof _=="number"&&(_=_+"px"),{width:_}});return(_,x)=>(openBlock(),createElementBlock("div",{class:"wrapper",style:normalizeStyle(d.value)},[createBaseVNode("div",_hoisted_1$2u,[createBaseVNode("div",_hoisted_2$21,[renderSlot(_.$slots,"left",{},void 0,!0),createBaseVNode("span",_hoisted_3$1E,toDisplayString$2(u.name),1)]),createBaseVNode("div",_hoisted_4$1o,[renderSlot(_.$slots,"right",{},void 0,!0),createVNode(unref(Element$1),{name:u.iconDirection,size:"medium",color:unref(colors).currentThemeRef.value.main},null,8,["name","color"])])]),createVNode(Transition,{name:"slide"},{default:withCtx(()=>[u.open?(openBlock(),createElementBlock("div",_hoisted_5$19,[renderSlot(_.$slots,"default",{},void 0,!0)])):createCommentVNode("",!0)]),_:3})],4))}}),SelectBox=_export_sfc$1(_sfc_main$2Y,[["__scopeId","data-v-35babc0b"]]),_sfc_main$2W=defineComponent({__name:"LabelToggle",props:{initChecked:{type:Boolean},unCheckedLabel:{},checkedLabel:{}},emits:["update:checked"],setup(u,{emit:f}){const d=u,_=f,x=ref(d.initChecked),I=()=>{x.value=!x.value,_("update:checked",x.value)};return(E,M)=>(openBlock(),createElementBlock("div",{class:"wrapper",onClick:I},[createBaseVNode("div",{class:normalizeClass(["active-box",x.value?"active":""])},null,2),createBaseVNode("div",{class:normalizeClass(["label",x.value?"":"active"])},toDisplayString$2(E.unCheckedLabel),3),createBaseVNode("div",{class:normalizeClass(["label",x.value?"active":""])},toDisplayString$2(E.checkedLabel),3)]))}}),LabelToggle=_export_sfc$1(_sfc_main$2W,[["__scopeId","data-v-dffd359f"]]),_hoisted_1$2s={key:0,width:"54",height:"32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$1$=["fill"],_hoisted_3$1C=["cx","fill"],_hoisted_4$1m={key:1,width:"40",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},_hoisted_5$18=["fill"],_hoisted_6$V=["cx","fill"],_sfc_main$2V=defineComponent({__name:"ToggleButton",props:{checked:{type:Boolean},disabled:{type:Boolean},size:{default:"medium"}},emits:["update:checked"],setup(u,{emit:f}){const d=u,_=f,x=ref(d.checked),I=()=>{x.value=!x.value,_("update:checked",x.value)},E=computed(()=>d.disabled?colors.currentThemeRef.value.grey_f4f:colors.currentThemeRef.value.grey_fff),M=computed(()=>d.disabled?colors.currentThemeRef.value.grey_ccc:x.value?colors.currentThemeRef.value.main:colors.currentThemeRef.value.grey_999),S=computed(()=>d.size==="medium"?x.value?38:16:x.value?28:12);return(A,T)=>(openBlock(),createElementBlock("div",{class:normalizeClass(["wrapper",[A.size]]),onClick:I},[A.size==="medium"?(openBlock(),createElementBlock("svg",_hoisted_1$2s,[createBaseVNode("rect",{width:"54",height:"32",rx:"16",fill:M.value},null,8,_hoisted_2$1$),createBaseVNode("circle",{cx:S.value,cy:"16",r:"12",fill:E.value},null,8,_hoisted_3$1C)])):createCommentVNode("",!0),A.size==="small"?(openBlock(),createElementBlock("svg",_hoisted_4$1m,[createBaseVNode("rect",{width:"40",height:"24",rx:"12",fill:M.value},null,8,_hoisted_5$18),createBaseVNode("circle",{cx:S.value,cy:"12",r:"8",fill:E.value},null,8,_hoisted_6$V)])):createCommentVNode("",!0)],2))}}),ToggleButton=_export_sfc$1(_sfc_main$2V,[["__scopeId","data-v-8a276df0"]]),_withScopeId$q=u=>(pushScopeId("data-v-836cd255"),u=u(),popScopeId(),u),_hoisted_1$2p={class:"dot-loading"},_hoisted_2$1Y=_withScopeId$q(()=>createBaseVNode("div",null,null,-1)),_hoisted_3$1z=_withScopeId$q(()=>createBaseVNode("div",null,null,-1)),_hoisted_4$1k=_withScopeId$q(()=>createBaseVNode("div",null,null,-1)),_hoisted_5$17=[_hoisted_2$1Y,_hoisted_3$1z,_hoisted_4$1k],_sfc_main$2R=defineComponent({__name:"DotLoading",props:{size:{default:48}},setup(u){useCssVars(I=>({c267ad16:d.value,"0ffaf953":x.value,"55d1e4f4":_.value}));const f=u,d=computed(()=>f.size+"px"),_=computed(()=>f.size/48*8+"px"),x=computed(()=>f.size/48*6+"px");return(I,E)=>(openBlock(),createElementBlock("div",_hoisted_1$2p,_hoisted_5$17))}}),DotLoading=_export_sfc$1(_sfc_main$2R,[["__scopeId","data-v-836cd255"]]),_sfc_main$2Q=defineComponent({__name:"Skeleton",props:{width:{default:"auto"},height:{default:"auto"},borderRadius:{default:"0"},bgColor:{default:"main"}},setup(u){return useCssVars(f=>({"24a251ab":f.width,"55d8e9e2":f.height,"3f969c59":f.borderRadius})),(f,d)=>(openBlock(),createElementBlock("div",{class:normalizeClass(["skeleton",f.bgColor])},null,2))}}),Skeleton=_export_sfc$1(_sfc_main$2Q,[["__scopeId","data-v-da381d5e"]]),_hoisted_1$2o=["width","height"],accelerate=.15,_sfc_main$2P=defineComponent({__name:"SpinLoading",props:{size:{default:24},color:{default:void 0}},setup(u){const f=u,d=computed(()=>f.color||colors.currentThemeRef.value.grey_fff),_=ref(),x=computed(()=>{var j;return(j=_.value)==null?void 0:j.getContext("2d")}),I=computed(()=>{var j;return(j=_.value)!=null&&j.width?_.value.width/2:0}),E=computed(()=>{var j;return(j=_.value)!=null&&j.height?_.value.height/2:0}),M=computed(()=>f.size/2-S.value),S=computed(()=>f.size/6),A=ref(0),T=ref(0),D=computed(()=>Math.asin(S.value/(S.value+M.value))),O=()=>{if(!x.value||!_.value)return;x.value.clearRect(0,0,_.value.width,_.value.height),A.value+D.value>2*Math.PI&&T.value+D.value<2*Math.PI?T.value+=accelerate:T.value+D.value<2*Math.PI?A.value+=accelerate:(T.value=0,A.value=0),x.value.beginPath(),x.value.arc(I.value,E.value,M.value,T.value,A.value);const j=(M.value+S.value/2)*Math.cos(A.value)+I.value,$=(M.value+S.value/2)*Math.sin(A.value)+E.value;x.value.arc(j,$,S.value/2,A.value+Math.PI,A.value,!0),x.value.arc(I.value,E.value,M.value+S.value,A.value,T.value,!0);const W=(M.value+S.value/2)*Math.cos(T.value)+I.value,Q=(M.value+S.value/2)*Math.sin(T.value)+E.value;x.value.arc(W,Q,S.value/2,T.value+Math.PI,T.value),x.value.fillStyle=d.value,x.value.fill(),requestAnimationFrame(O)};return onMounted(O),(j,$)=>(openBlock(),createElementBlock("canvas",{ref_key:"canvas",ref:_,width:j.size,height:j.size},null,8,_hoisted_1$2o))}}),SpinLoading=_export_sfc$1(_sfc_main$2P,[["__scopeId","data-v-d883b2c5"]]),_hoisted_1$2n={class:"animatedLockWrapper"},_hoisted_2$1X=["width","height"],_hoisted_3$1y=["cx","cy","r","stroke-width"],_hoisted_4$1j=["cx","cy","r","stroke-width"],_hoisted_5$16=createStaticVNode('<div class="lock" data-v-d43c96ef><div class="shadow" data-v-d43c96ef></div><div class="body" data-v-d43c96ef></div><div class="cap" data-v-d43c96ef></div><div class="hole" data-v-d43c96ef></div></div>',1),_sfc_main$2O=defineComponent({__name:"LockAnimation",props:{size:{default:20},duration:{default:"5s"}},setup(u){useCssVars(x=>({"05e7db55":x.size,"24207ee8":x.duration,"3ae0ca4d":d.value}));const f=u,d=ref(Math.PI+"px"),_=x=>(f.size*x/20).toFixed();return(x,I)=>(openBlock(),createElementBlock("div",_hoisted_1$2n,[(openBlock(),createElementBlock("svg",{class:"circle",width:_(300),height:_(300),fill:"none",xmlns:"http://www.w3.org/2000/svg"},[createBaseVNode("circle",{class:"outer",cx:_(151),cy:_(151),r:_(144),stroke:"#6440dd","stroke-width":_(6)},null,8,_hoisted_3$1y),createBaseVNode("circle",{class:"inner",cx:_(151),cy:_(151),r:_(144),stroke:"#6440dd","stroke-width":_(6)},null,8,_hoisted_4$1j)],8,_hoisted_2$1X)),_hoisted_5$16]))}}),LockAnimation=_export_sfc$1(_sfc_main$2O,[["__scopeId","data-v-d43c96ef"]]),_hoisted_1$2m={class:"animatedSquareWrapper"},_hoisted_2$1W=createStaticVNode('<div class="shadow" data-v-a8ae9bde></div><div class="top-left" data-v-a8ae9bde></div><div class="top-right" data-v-a8ae9bde></div><div class="bottom-left" data-v-a8ae9bde></div><div class="bottom-right" data-v-a8ae9bde></div>',5),_hoisted_7$M=[_hoisted_2$1W],_sfc_main$2N=defineComponent({__name:"SquareAnimation",props:{size:{default:20},duration:{default:"5s"}},setup(u){return useCssVars(f=>({"65f026dc":f.size,"6879aeef":f.duration})),(f,d)=>(openBlock(),createElementBlock("div",_hoisted_1$2m,_hoisted_7$M))}}),SquareAnimation=_export_sfc$1(_sfc_main$2N,[["__scopeId","data-v-a8ae9bde"]]),_hoisted_1$2l={class:"animatedWrapper"},_hoisted_2$1V=createStaticVNode('<div class="shadow" data-v-d97c33fa></div><div class="wallet" data-v-d97c33fa></div><div class="walletCover" data-v-d97c33fa></div><div class="handle" data-v-d97c33fa></div><div class="coinA" data-v-d97c33fa></div><div class="coinB" data-v-d97c33fa></div>',6),_hoisted_8$F=[_hoisted_2$1V],_sfc_main$2M=defineComponent({__name:"WalletAnimation",props:{size:{default:20},duration:{default:"4s"}},setup(u){return useCssVars(f=>({"9a0c7c9a":f.size,e207f374:f.duration})),(f,d)=>(openBlock(),createElementBlock("div",_hoisted_1$2l,_hoisted_8$F))}}),WalletAnimation=_export_sfc$1(_sfc_main$2M,[["__scopeId","data-v-d97c33fa"]]);typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const defaultTimestep=1/60*1e3,getCurrentTime=typeof performance<"u"?()=>performance.now():()=>Date.now(),onNextFrame=typeof window<"u"?u=>window.requestAnimationFrame(u):u=>setTimeout(()=>u(getCurrentTime()),defaultTimestep);function createRenderStep(u){let f=[],d=[],_=0,x=!1,I=!1;const E=new WeakSet,M={schedule:(S,A=!1,T=!1)=>{const D=T&&x,O=D?f:d;return A&&E.add(S),O.indexOf(S)===-1&&(O.push(S),D&&x&&(_=f.length)),S},cancel:S=>{const A=d.indexOf(S);A!==-1&&d.splice(A,1),E.delete(S)},process:S=>{if(x){I=!0;return}if(x=!0,[f,d]=[d,f],d.length=0,_=f.length,_)for(let A=0;A<_;A++){const T=f[A];T(S),E.has(T)&&(M.schedule(T),u())}x=!1,I&&(I=!1,M.process(S))}};return M}const maxElapsed=40;let useDefaultElapsed=!0,runNextFrame=!1,isProcessing=!1;const frame={delta:0,timestamp:0},stepsOrder=["read","update","preRender","render","postRender"],steps=stepsOrder.reduce((u,f)=>(u[f]=createRenderStep(()=>runNextFrame=!0),u),{});stepsOrder.reduce((u,f)=>{const d=steps[f];return u[f]=(_,x=!1,I=!1)=>(runNextFrame||startLoop(),d.schedule(_,x,I)),u},{});stepsOrder.reduce((u,f)=>(u[f]=steps[f].cancel,u),{});stepsOrder.reduce((u,f)=>(u[f]=()=>steps[f].process(frame),u),{});const processStep=u=>steps[u].process(frame),processFrame=u=>{runNextFrame=!1,frame.delta=useDefaultElapsed?defaultTimestep:Math.max(Math.min(u-frame.timestamp,maxElapsed),1),frame.timestamp=u,isProcessing=!0,stepsOrder.forEach(processStep),isProcessing=!1,runNextFrame&&(useDefaultElapsed=!1,onNextFrame(processFrame))},startLoop=()=>{runNextFrame=!0,useDefaultElapsed=!0,isProcessing||onNextFrame(processFrame)},clamp=(u,f)=>d=>Math.max(Math.min(d,f),u),sanitize=u=>u%1?Number(u.toFixed(5)):u,floatRegex=/(-)?([\d]*\.?[\d])+/g,colorRegex=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,singleColorRegex=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function isString$3(u){return typeof u=="string"}const number$2={test:u=>typeof u=="number",parse:parseFloat,transform:u=>u},alpha=Object.assign(Object.assign({},number$2),{transform:clamp(0,1)});Object.assign(Object.assign({},number$2),{default:1});const createUnitType=u=>({test:f=>isString$3(f)&&f.endsWith(u)&&f.split(" ").length===1,parse:parseFloat,transform:f=>`${f}${u}`}),percent=createUnitType("%");Object.assign(Object.assign({},percent),{parse:u=>percent.parse(u)/100,transform:u=>percent.transform(u*100)});const isColorString=(u,f)=>d=>!!(isString$3(d)&&singleColorRegex.test(d)&&d.startsWith(u)||f&&Object.prototype.hasOwnProperty.call(d,f)),splitColor=(u,f,d)=>_=>{if(!isString$3(_))return _;const[x,I,E,M]=_.match(floatRegex);return{[u]:parseFloat(x),[f]:parseFloat(I),[d]:parseFloat(E),alpha:M!==void 0?parseFloat(M):1}},hsla={test:isColorString("hsl","hue"),parse:splitColor("hue","saturation","lightness"),transform:({hue:u,saturation:f,lightness:d,alpha:_=1})=>"hsla("+Math.round(u)+", "+percent.transform(sanitize(f))+", "+percent.transform(sanitize(d))+", "+sanitize(alpha.transform(_))+")"},clampRgbUnit=clamp(0,255),rgbUnit=Object.assign(Object.assign({},number$2),{transform:u=>Math.round(clampRgbUnit(u))}),rgba={test:isColorString("rgb","red"),parse:splitColor("red","green","blue"),transform:({red:u,green:f,blue:d,alpha:_=1})=>"rgba("+rgbUnit.transform(u)+", "+rgbUnit.transform(f)+", "+rgbUnit.transform(d)+", "+sanitize(alpha.transform(_))+")"};function parseHex(u){let f="",d="",_="",x="";return u.length>5?(f=u.substr(1,2),d=u.substr(3,2),_=u.substr(5,2),x=u.substr(7,2)):(f=u.substr(1,1),d=u.substr(2,1),_=u.substr(3,1),x=u.substr(4,1),f+=f,d+=d,_+=_,x+=x),{red:parseInt(f,16),green:parseInt(d,16),blue:parseInt(_,16),alpha:x?parseInt(x,16)/255:1}}const hex={test:isColorString("#"),parse:parseHex,transform:rgba.transform},color={test:u=>rgba.test(u)||hex.test(u)||hsla.test(u),parse:u=>rgba.test(u)?rgba.parse(u):hsla.test(u)?hsla.parse(u):hex.parse(u),transform:u=>isString$3(u)?u:u.hasOwnProperty("red")?rgba.transform(u):hsla.transform(u)},colorToken="${c}",numberToken="${n}";function test$1(u){var f,d,_,x;return isNaN(u)&&isString$3(u)&&((d=(f=u.match(floatRegex))===null||f===void 0?void 0:f.length)!==null&&d!==void 0?d:0)+((x=(_=u.match(colorRegex))===null||_===void 0?void 0:_.length)!==null&&x!==void 0?x:0)>0}function analyse$1(u){typeof u=="number"&&(u=`${u}`);const f=[];let d=0;const _=u.match(colorRegex);_&&(d=_.length,u=u.replace(colorRegex,colorToken),f.push(..._.map(color.parse)));const x=u.match(floatRegex);return x&&(u=u.replace(floatRegex,numberToken),f.push(...x.map(number$2.parse))),{values:f,numColors:d,tokenised:u}}function parse$2(u){return analyse$1(u).values}function createTransformer$2(u){const{values:f,numColors:d,tokenised:_}=analyse$1(u),x=f.length;return I=>{let E=_;for(let M=0;M<x;M++)E=E.replace(M<d?colorToken:numberToken,M<d?color.transform(I[M]):sanitize(I[M]));return E}}const convertNumbersToZero=u=>typeof u=="number"?0:u;function getAnimatableNone$1(u){const f=parse$2(u);return createTransformer$2(u)(f.map(convertNumbersToZero))}const complex={test:test$1,parse:parse$2,createTransformer:createTransformer$2,getAnimatableNone:getAnimatableNone$1},maxDefaults=new Set(["brightness","contrast","saturate","opacity"]);function applyDefaultFilter(u){let[f,d]=u.slice(0,-1).split("(");if(f==="drop-shadow")return u;const[_]=d.match(floatRegex)||[];if(!_)return u;const x=d.replace(_,"");let I=maxDefaults.has(f)?1:0;return _!==d&&(I*=100),f+"("+I+x+")"}const functionRegex=/([a-z-]*)\(.*?\)/g;Object.assign(Object.assign({},complex),{getAnimatableNone:u=>{const f=u.match(functionRegex);return f?f.map(applyDefaultFilter).join(" "):u}});({...number$2});const transformAxes=["","X","Y","Z"],order$1=["perspective","translate","scale","rotate","skew"],transformProps=["transformPerspective","x","y","z"];order$1.forEach(u=>{transformAxes.forEach(f=>{const d=u+f;transformProps.push(d)})});new Set(transformProps);const _hoisted_1$2j={width:"114",height:"99",viewBox:"0 0 114 99",fill:"none",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$1T=createStaticVNode('<rect opacity="0.2" x="18.5322" y="30.4355" width="71.0074" height="51.8354" fill="#B7AEEB"></rect><path d="M61.5 0.078125L25.6367 23.3539L25.6328 23.4234V75.2589H96.6328V23.4322V23.3558L61.5 0.078125Z" fill="#6440DD"></path><path d="M27.6299 24L61.5 2L94.6299 24L61.5 50L27.6299 24Z" fill="white"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M64.1614 93.4348C65.727 93.3975 68.7359 92.2859 69.4358 88C70.1357 92.2859 73.1446 93.3975 74.7101 93.4348H69.4358H64.1614ZM64 93.4348C64.0519 93.4361 64.1057 93.4361 64.1614 93.4348H64ZM74.8716 93.4348H74.7101C74.7658 93.4361 74.8197 93.4361 74.8716 93.4348ZM74.7101 93.4372H69.4358H64.1614C64.1057 93.4359 64.0519 93.4359 64 93.4372H64.1614C65.727 93.4746 68.7359 94.5861 69.4358 98.872C70.1357 94.5861 73.1446 93.4746 74.7101 93.4372ZM74.7101 93.4372H74.8716C74.8197 93.4359 74.7658 93.4359 74.7101 93.4372Z" fill="white"></path><path opacity="0.8" fill-rule="evenodd" clip-rule="evenodd" d="M87.1794 6.03867C88.9188 5.99719 92.2621 4.76215 93.0398 0C93.8174 4.76215 97.1607 5.99719 98.9001 6.03867H93.0398H87.1794ZM87 6.03867C87.0576 6.04011 87.1175 6.04014 87.1794 6.03867H87ZM99.0795 6.03867H98.9001C98.962 6.04014 99.0219 6.04011 99.0795 6.03867ZM98.9001 6.04225H93.0398H87.1794C87.1175 6.04078 87.0576 6.04081 87 6.04225H87.1794C88.9188 6.08373 92.2621 7.31876 93.0398 12.0809C93.8174 7.31876 97.1607 6.08373 98.9001 6.04225ZM98.9001 6.04225H99.0795C99.0219 6.04081 98.962 6.04078 98.9001 6.04225Z" fill="white"></path><path d="M109.624 52.6232V49C110.091 51.8573 112.097 52.5983 113.14 52.6232H113.248C113.213 52.6241 113.177 52.6241 113.14 52.6232H109.624Z" fill="#6440DD"></path><path d="M109.624 52.6232V49C109.157 51.8573 107.151 52.5983 106.108 52.6232H106C106.035 52.6241 106.071 52.6241 106.108 52.6232H109.624Z" fill="#6440DD"></path><path d="M109.624 52.6248V56.248C110.091 53.3908 112.097 52.6497 113.14 52.6248H113.248C113.213 52.624 113.177 52.624 113.14 52.6248H109.624Z" fill="#6440DD"></path><path d="M109.624 52.6248V56.248C109.157 53.3908 107.151 52.6497 106.108 52.6248H106C106.035 52.624 106.071 52.624 106.108 52.6248H109.624Z" fill="#6440DD"></path><path d="M17.624 12.6232V9C18.0906 11.8573 20.0966 12.5983 21.1403 12.6232H21.2479C21.2133 12.6241 21.1774 12.6241 21.1403 12.6232H17.624Z" fill="#6440DD"></path><path d="M17.624 12.6232V9C17.1574 11.8573 15.1515 12.5983 14.1078 12.6232H14.0002C14.0347 12.6241 14.0707 12.6241 14.1078 12.6232H17.624Z" fill="#6440DD"></path><path d="M17.624 12.6248V16.248C18.0906 13.3908 20.0966 12.6497 21.1403 12.6248H21.2479C21.2133 12.624 21.1774 12.624 21.1403 12.6248H17.624Z" fill="#6440DD"></path><path d="M17.624 12.6248V16.248C17.1574 13.3908 15.1515 12.6497 14.1078 12.6248H14.0002C14.0347 12.624 14.0707 12.624 14.1078 12.6248H17.624Z" fill="#6440DD"></path><path d="M7.24805 75.2464V68C8.18121 73.7146 12.1931 75.1966 14.2805 75.2464H14.4958C14.4266 75.2481 14.3548 75.2482 14.2805 75.2464H7.24805Z" fill="#6440DD"></path><path d="M7.24805 75.2464V68C6.31488 73.7146 2.30295 75.1966 0.215589 75.2464H0.000333786C0.069499 75.2481 0.141326 75.2482 0.215589 75.2464H7.24805Z" fill="#6440DD"></path><path d="M7.24805 75.2497V82.4961C8.18121 76.7815 12.1931 75.2995 14.2805 75.2497H14.4958C14.4266 75.248 14.3548 75.2479 14.2805 75.2497H7.24805Z" fill="#6440DD"></path><path d="M7.24805 75.2497V82.4961C6.31488 76.7815 2.30295 75.2995 0.215589 75.2497H0.000333786C0.069499 75.248 0.141326 75.2479 0.215589 75.2497H7.24805Z" fill="#6440DD"></path><path d="M61.4654 39.8143C67.4157 35.3012 75.2483 27.5425 75.0513 22.3035C74.8865 17.8969 71.5511 14.4473 67.4627 14.4473C65.9274 14.4473 64.445 14.9182 63.1714 15.8106C62.1478 16.5336 60.7831 16.5336 59.7595 15.8106C58.4859 14.9182 57.0035 14.4473 55.4681 14.4473C51.3798 14.4473 48.0443 17.8969 47.8796 22.302C47.6826 27.5425 55.5152 35.3012 61.4654 39.8143Z" fill="#F5222D"></path>',18),_hoisted_20$c=[_hoisted_2$1T],_sfc_main$2I=defineComponent({__name:"HeartEnvelope",setup(u){return(f,d)=>(openBlock(),createElementBlock("svg",_hoisted_1$2j,_hoisted_20$c))}}),sizeValidator=u=>["small","medium","big","custom"].indexOf(u)!==-1,_sfc_main$2H=defineComponent({__name:"Element",props:{size:{type:String,validator:sizeValidator,default:"medium"},name:{type:String,default:""},color:{type:String,default:"#fff"}},setup(u){const f=u,d=computed(()=>{const E=Object.entries(Object.assign({"./icons/APIFile.vue":()=>__vitePreload(()=>import("./APIFile-14ca7603-yADXY1Hf.js"),__vite__mapDeps([])),"./icons/AirDrop.vue":()=>__vitePreload(()=>import("./AirDrop-9fc1bfb5-zPcc6wiU.js"),__vite__mapDeps([])),"./icons/Announce.vue":()=>__vitePreload(()=>import("./Announce-4f65a237-m0d0-flH.js"),__vite__mapDeps([])),"./icons/ArrowExpand.vue":()=>__vitePreload(()=>import("./ArrowExpand-c61fd68a-T5hTC5NV.js"),__vite__mapDeps([])),"./icons/ArrowLeft.vue":()=>__vitePreload(()=>import("./ArrowLeft-158cbd43-vAjQrpWz.js"),__vite__mapDeps([])),"./icons/ArrowRight.vue":()=>__vitePreload(()=>import("./ArrowRight-5e724a8f-yHjEccj9.js"),__vite__mapDeps([])),"./icons/Backspace.vue":()=>__vitePreload(()=>import("./Backspace-7d20e334-8cMqEITj.js"),__vite__mapDeps([])),"./icons/BadgeManager.vue":()=>__vitePreload(()=>import("./BadgeManager-275f2eb8-He0Dvfzw.js"),__vite__mapDeps([])),"./icons/BasicInfo.vue":()=>__vitePreload(()=>import("./BasicInfo-958949ac-DsWzM98L.js"),__vite__mapDeps([])),"./icons/Bell.vue":()=>__vitePreload(()=>import("./Bell-8ebed299-ULmK5mAx.js"),__vite__mapDeps([])),"./icons/BlankCoin.vue":()=>__vitePreload(()=>import("./BlankCoin-6ccb75a6-eqfNMVRK.js"),__vite__mapDeps([])),"./icons/Bridge.vue":()=>__vitePreload(()=>import("./Bridge-1493a644-BF0mJEao.js"),__vite__mapDeps([])),"./icons/Btn48ArrowBack.vue":()=>__vitePreload(()=>import("./Btn48ArrowBack-36a0f50b-HkTYBFsO.js"),__vite__mapDeps([])),"./icons/Btn48ArrowForward.vue":()=>__vitePreload(()=>import("./Btn48ArrowForward-a5532ecc-3aiR-3rS.js"),__vite__mapDeps([])),"./icons/Bullet.vue":()=>__vitePreload(()=>import("./Bullet-234c5c2b-Tqou7IZV.js"),__vite__mapDeps([])),"./icons/CallMade.vue":()=>__vitePreload(()=>import("./CallMade-f2bddf23-bWL8p1GM.js"),__vite__mapDeps([])),"./icons/Camera.vue":()=>__vitePreload(()=>import("./Camera-911a1299-ALp3ASD7.js"),__vite__mapDeps([])),"./icons/Cancel.vue":()=>__vitePreload(()=>import("./Cancel-8410b5cf-hJ6I6bqa.js"),__vite__mapDeps([])),"./icons/CaretDown.vue":()=>__vitePreload(()=>import("./CaretDown-e431cf74-2HAamz4C.js"),__vite__mapDeps([])),"./icons/CaretUp.vue":()=>__vitePreload(()=>import("./CaretUp-cf46abdb-nFxcdZdq.js"),__vite__mapDeps([])),"./icons/Change.vue":()=>__vitePreload(()=>import("./Change-d0a740c6-x6jvlpDv.js"),__vite__mapDeps([])),"./icons/Check.vue":()=>__vitePreload(()=>import("./Check-b7ab7e01-GUYUv3QE.js"),__vite__mapDeps([])),"./icons/CircleCheck.vue":()=>__vitePreload(()=>import("./CircleCheck-3fb4f4f3-DU4qHeW3.js"),__vite__mapDeps([])),"./icons/CircleProfile.vue":()=>__vitePreload(()=>import("./CircleProfile-0045f286-XFRW3uy8.js"),__vite__mapDeps([])),"./icons/CircleSecurity.vue":()=>__vitePreload(()=>import("./CircleSecurity-6473e23c-Oyxzgsdz.js"),__vite__mapDeps([])),"./icons/CircleService.vue":()=>__vitePreload(()=>import("./CircleService-8bc00ac8-LxwzV8iI.js"),__vite__mapDeps([])),"./icons/Close.vue":()=>__vitePreload(()=>import("./Close-f51b8c29-gGt_nA9t.js"),__vite__mapDeps([])),"./icons/Code.vue":()=>__vitePreload(()=>import("./Code-6d0a080f-ZTMurSs3.js"),__vite__mapDeps([])),"./icons/Coin.vue":()=>__vitePreload(()=>import("./Coin-e470b4a5-xwTTJ-6U.js"),__vite__mapDeps([])),"./icons/CoinFill.vue":()=>__vitePreload(()=>import("./CoinFill-15d56ffd-uty8qgXb.js"),__vite__mapDeps([])),"./icons/CompareArrows.vue":()=>__vitePreload(()=>import("./CompareArrows-a25ac144-7AMRDTTz.js"),__vite__mapDeps([])),"./icons/Compass.vue":()=>__vitePreload(()=>import("./Compass-bae16652-gEpFtAis.js"),__vite__mapDeps([])),"./icons/Copy.vue":()=>__vitePreload(()=>import("./Copy-9cc1a615-KeNT3FIn.js"),__vite__mapDeps([])),"./icons/Dashboard.vue":()=>__vitePreload(()=>import("./Dashboard-026a6789-FhsHBZ6C.js"),__vite__mapDeps([])),"./icons/DefaultIcon.vue":()=>__vitePreload(()=>import("./DefaultIcon-b5d0ebf0-FmH9JE4V.js"),__vite__mapDeps([])),"./icons/DefaultImg.vue":()=>__vitePreload(()=>import("./DefaultImg-41fddd44-QQFzld_Z.js"),__vite__mapDeps([])),"./icons/Delete.vue":()=>__vitePreload(()=>import("./Delete-a20736e2-1Rt9XcT4.js"),__vite__mapDeps([])),"./icons/Design.vue":()=>__vitePreload(()=>import("./Design-9c28f438-v7hVRyk3.js"),__vite__mapDeps([])),"./icons/Down.vue":()=>__vitePreload(()=>import("./Down-c1e2ce70-tBPyWRgX.js"),__vite__mapDeps([])),"./icons/Download.vue":()=>__vitePreload(()=>import("./Download-75b2734b-KJ2B4aUE.js"),__vite__mapDeps([])),"./icons/Edit.vue":()=>__vitePreload(()=>import("./Edit-147373ce-duMqkGGr.js"),__vite__mapDeps([])),"./icons/Ellipse.vue":()=>__vitePreload(()=>import("./Ellipse-e056b6c1-IR7m4xoX.js"),__vite__mapDeps([])),"./icons/Expand.vue":()=>__vitePreload(()=>import("./Expand-af98462a-39a7mqGp.js"),__vite__mapDeps([])),"./icons/FillDown.vue":()=>__vitePreload(()=>import("./FillDown-a626263d-RFKJWNPo.js"),__vite__mapDeps([])),"./icons/FillUp.vue":()=>__vitePreload(()=>import("./FillUp-b8967480-wbWmWz-f.js"),__vite__mapDeps([])),"./icons/Filter.vue":()=>__vitePreload(()=>import("./Filter-5f97d614-LdWLSXgA.js"),__vite__mapDeps([])),"./icons/FormatLineSpacing.vue":()=>__vitePreload(()=>import("./FormatLineSpacing-88781080-8I1wcge3.js"),__vite__mapDeps([])),"./icons/Gear.vue":()=>__vitePreload(()=>import("./Gear-b96e8d47-S--TvL-W.js"),__vite__mapDeps([])),"./icons/GearFill.vue":()=>__vitePreload(()=>import("./GearFill-54b8484f-TtzAlvdk.js"),__vite__mapDeps([])),"./icons/GridView.vue":()=>__vitePreload(()=>import("./GridView-2f5a19ef-1dZrnoPn.js"),__vite__mapDeps([])),"./icons/Guide.vue":()=>__vitePreload(()=>import("./Guide-11f3fe77-PiW38ko1.js"),__vite__mapDeps([])),"./icons/Hamburger.vue":()=>__vitePreload(()=>import("./Hamburger-62c348c0-yvvAczNy.js"),__vite__mapDeps([])),"./icons/Help.vue":()=>__vitePreload(()=>import("./Help-b8586051-6jiOnO1e.js"),__vite__mapDeps([])),"./icons/HelpSmall.vue":()=>__vitePreload(()=>import("./HelpSmall-f43ba9b5-sbVHag7z.js"),__vite__mapDeps([])),"./icons/Hide.vue":()=>__vitePreload(()=>import("./Hide-6d5a6475-JK8txzKz.js"),__vite__mapDeps([])),"./icons/History.vue":()=>__vitePreload(()=>import("./History-9086e771-CSnYzx28.js"),__vite__mapDeps([])),"./icons/Home.vue":()=>__vitePreload(()=>import("./Home-63792582-axdBrYHZ.js"),__vite__mapDeps([])),"./icons/Hyperlink.vue":()=>__vitePreload(()=>import("./Hyperlink-5f143a56-hy75MET1.js"),__vite__mapDeps([])),"./icons/Info.vue":()=>__vitePreload(()=>import("./Info-0cff163a--s4B95ap.js"),__vite__mapDeps([])),"./icons/InputCode.vue":()=>__vitePreload(()=>import("./InputCode-e8551b8d-pm8sm9Rm.js"),__vite__mapDeps([])),"./icons/InstallApp.vue":()=>__vitePreload(()=>import("./InstallApp-5b8a3dbc-SIvAt4do.js"),__vite__mapDeps([])),"./icons/Invite.vue":()=>__vitePreload(()=>import("./Invite-e0a27ea5-JQDeP7KF.js"),__vite__mapDeps([])),"./icons/Jewel.vue":()=>__vitePreload(()=>import("./Jewel-4dc9bd16-C-pP_5Fu.js"),__vite__mapDeps([])),"./icons/Language.vue":()=>__vitePreload(()=>import("./Language-c1e3a136-yoyliFsb.js"),__vite__mapDeps([])),"./icons/Laptop.vue":()=>__vitePreload(()=>import("./Laptop-78525c59-Jkum-Ukj.js"),__vite__mapDeps([])),"./icons/Left.vue":()=>__vitePreload(()=>import("./Left-530aa66e-SSbbbUeY.js"),__vite__mapDeps([])),"./icons/Link.vue":()=>__vitePreload(()=>import("./Link-718bce07-EsY7ytgP.js"),__vite__mapDeps([])),"./icons/Loading.vue":()=>__vitePreload(()=>import("./Loading-c483bf06-dphM8_QX.js"),__vite__mapDeps([])),"./icons/Lock.vue":()=>__vitePreload(()=>import("./Lock-44ba97c2-qztXv6C1.js"),__vite__mapDeps([])),"./icons/LockFill.vue":()=>__vitePreload(()=>import("./LockFill-e03b4347-Zv9O0RL4.js"),__vite__mapDeps([])),"./icons/Manager.vue":()=>__vitePreload(()=>import("./Manager-3fcb3384-1c4CiyXA.js"),__vite__mapDeps([])),"./icons/ManagerB.vue":()=>__vitePreload(()=>import("./ManagerB-60c3349d-7OFSPbw9.js"),__vite__mapDeps([])),"./icons/Minus.vue":()=>__vitePreload(()=>import("./Minus-35ab019f-01rDX_L9.js"),__vite__mapDeps([])),"./icons/Noti.vue":()=>__vitePreload(()=>import("./Noti-55ce2694-u5DsNvaa.js"),__vite__mapDeps([])),"./icons/Notice.vue":()=>__vitePreload(()=>import("./Notice-028b8428-I6eSjYm0.js"),__vite__mapDeps([])),"./icons/Num1.vue":()=>__vitePreload(()=>import("./Num1-a95cb783-1UsDPSoa.js"),__vite__mapDeps([])),"./icons/Num2.vue":()=>__vitePreload(()=>import("./Num2-41f3d8f8-Q8nUUrdp.js"),__vite__mapDeps([])),"./icons/OutgoingMail.vue":()=>__vitePreload(()=>import("./OutgoingMail-b44e9e0d-oX_H_dPS.js"),__vite__mapDeps([])),"./icons/Paste.vue":()=>__vitePreload(()=>import("./Paste-ea007e7d-F9xX9yzS.js"),__vite__mapDeps([])),"./icons/Pause.vue":()=>__vitePreload(()=>import("./Pause-052e4365-dz3DmA0f.js"),__vite__mapDeps([])),"./icons/People.vue":()=>__vitePreload(()=>import("./People-a859d3ea-BfEcP6xQ.js"),__vite__mapDeps([])),"./icons/PeoplePlus.vue":()=>__vitePreload(()=>import("./PeoplePlus-e7ad360f-Uj6AtbiH.js"),__vite__mapDeps([])),"./icons/Platform.vue":()=>__vitePreload(()=>import("./Platform-ae22eb62-thiesKlr.js"),__vite__mapDeps([])),"./icons/PlatformAnd.vue":()=>__vitePreload(()=>import("./PlatformAnd-91b35bc5-jgEezYws.js"),__vite__mapDeps([])),"./icons/PlatformIos.vue":()=>__vitePreload(()=>import("./PlatformIos-a8ffadb9-LZjwKLdx.js"),__vite__mapDeps([])),"./icons/PlatformWeb.vue":()=>__vitePreload(()=>import("./PlatformWeb-e124458b-yRDIxJ-V.js"),__vite__mapDeps([])),"./icons/Play.vue":()=>__vitePreload(()=>import("./Play-c0549d3e-P855Pybl.js"),__vite__mapDeps([])),"./icons/Plus.vue":()=>__vitePreload(()=>import("./Plus-96d72f34-m51cjESL.js"),__vite__mapDeps([])),"./icons/PointLeft.vue":()=>__vitePreload(()=>import("./PointLeft-f8ce5ab6-OfddEDtM.js"),__vite__mapDeps([])),"./icons/PointRight.vue":()=>__vitePreload(()=>import("./PointRight-50246a59-SXViRNv2.js"),__vite__mapDeps([])),"./icons/Policy.vue":()=>__vitePreload(()=>import("./Policy-021d1cb1-DeMGJTeM.js"),__vite__mapDeps([])),"./icons/Present.vue":()=>__vitePreload(()=>import("./Present-05b16b54-EYiUVnUi.js"),__vite__mapDeps([])),"./icons/Print.vue":()=>__vitePreload(()=>import("./Print-bd94fda8-8u3w1hE5.js"),__vite__mapDeps([])),"./icons/Profile.vue":()=>__vitePreload(()=>import("./Profile-dc9b8f35-RejR7Q5M.js"),__vite__mapDeps([])),"./icons/Purse.vue":()=>__vitePreload(()=>import("./Purse-fa4dda99-gxC4mXPz.js"),__vite__mapDeps([])),"./icons/Qrcode.vue":()=>__vitePreload(()=>import("./Qrcode-872e7b0a-JAGHcuAr.js"),__vite__mapDeps([])),"./icons/QrcodeScanner.vue":()=>__vitePreload(()=>import("./QrcodeScanner-45e4d841-Qo7rs-Ix.js"),__vite__mapDeps([])),"./icons/RadioIconFalse.vue":()=>__vitePreload(()=>import("./RadioIconFalse-bd793944-VBgU7slD.js"),__vite__mapDeps([])),"./icons/RadioIconTrue.vue":()=>__vitePreload(()=>import("./RadioIconTrue-ae9a00df-0e9q29uJ.js"),__vite__mapDeps([])),"./icons/Refresh.vue":()=>__vitePreload(()=>import("./Refresh-a6771015-IwrlO1J7.js"),__vite__mapDeps([])),"./icons/Reveal.vue":()=>__vitePreload(()=>import("./Reveal-a30ef0f6-y56iSlL0.js"),__vite__mapDeps([])),"./icons/Right.vue":()=>__vitePreload(()=>import("./Right-4d296299-WKV0fBJX.js"),__vite__mapDeps([])),"./icons/Search.vue":()=>__vitePreload(()=>import("./Search-e97e1b0a-lxwULtt2.js"),__vite__mapDeps([])),"./icons/Security.vue":()=>__vitePreload(()=>import("./Security-c036f339-boKE1OYa.js"),__vite__mapDeps([])),"./icons/Send.vue":()=>__vitePreload(()=>import("./Send-dfadbbc6-iwkN1lbM.js"),__vite__mapDeps([])),"./icons/Setting.vue":()=>__vitePreload(()=>import("./Setting-3a8e1f68-qsG4wllU.js"),__vite__mapDeps([])),"./icons/Share.vue":()=>__vitePreload(()=>import("./Share-07a8abee-hlicEIG1.js"),__vite__mapDeps([])),"./icons/Shrink.vue":()=>__vitePreload(()=>import("./Shrink-2aef197d-6FWU64Yj.js"),__vite__mapDeps([])),"./icons/Sign.vue":()=>__vitePreload(()=>import("./Sign-babcd719-TS2joSN1.js"),__vite__mapDeps([])),"./icons/SmilePlus.vue":()=>__vitePreload(()=>import("./SmilePlus-7e4160a6-s64EX6rS.js"),__vite__mapDeps([])),"./icons/Sort.vue":()=>__vitePreload(()=>import("./Sort-bc8a5323-ZRic_nab.js"),__vite__mapDeps([])),"./icons/Star.vue":()=>__vitePreload(()=>import("./Star-0febf646-MaTKLglR.js"),__vite__mapDeps([])),"./icons/Stats.vue":()=>__vitePreload(()=>import("./Stats-8366a69b-yLQChRc5.js"),__vite__mapDeps([])),"./icons/Undo.vue":()=>__vitePreload(()=>import("./Undo-814b9af4-5tVENx1V.js"),__vite__mapDeps([])),"./icons/Up.vue":()=>__vitePreload(()=>import("./Up-14e80ec4-CxKLxSj-.js"),__vite__mapDeps([])),"./icons/VerticalDots.vue":()=>__vitePreload(()=>import("./VerticalDots-4a9df755-Zef-OfQR.js"),__vite__mapDeps([])),"./icons/VideoPause.vue":()=>__vitePreload(()=>import("./VideoPause-f5e53d7b-Do5l4n8F.js"),__vite__mapDeps([])),"./icons/VideoPlay.vue":()=>__vitePreload(()=>import("./VideoPlay-12565ba0-qXKNZvY9.js"),__vite__mapDeps([])),"./icons/Wallet.vue":()=>__vitePreload(()=>import("./Wallet-49172c2a-ITcq7PHU.js"),__vite__mapDeps([]))})).find(([M])=>{const S="./icons/"+f.name+".vue";return M===S});if(!E)throw new Error("cannot find icon component: "+f.name);return defineAsyncComponent(async()=>await E[1]())}),_=computed(()=>f.size==="big"?"30px":f.size==="medium"?"24px":f.size==="small"?"20px":"auto");return(x,I)=>(openBlock(),createElementBlock("div",{class:"element",style:normalizeStyle({height:_.value})},[(openBlock(),createBlock(resolveDynamicComponent(d.value),{size:u.size,color:u.color},null,8,["size","color"]))],4))}}),Element$1=_export_sfc$1(_sfc_main$2H,[["__scopeId","data-v-851c3bcf"]]),_hoisted_1$2h=["src"],_hoisted_2$1R={key:1,class:"default-img"},_hoisted_3$1v=["src"],_hoisted_4$1i={key:3,class:"default-sub-img"},_sfc_main$2F=defineComponent({__name:"NetworkIcon",props:{tokenSrc:{type:String,default:void 0},networkSrc:{type:String,default:void 0},size:{type:String,default:"medium"},customSize:{type:String,default:""}},emits:["error:tokenIcon","error:networkIcon"],setup(u,{emit:f}){const d=u,_=computed(()=>{if(d.customSize.length!==0)return{"--width":d.customSize,"--height":d.customSize}}),x=f,I=ref(!1),E=ref(!1),M=()=>{I.value=!0,x("error:tokenIcon")},S=()=>{E.value=!0,x("error:networkIcon")};return(A,T)=>(openBlock(),createElementBlock("div",{class:normalizeClass(["iconWrapper",u.size]),style:normalizeStyle(_.value)},[I.value?(openBlock(),createElementBlock("div",_hoisted_2$1R,[createVNode(unref(Element$1),{name:"DefaultImg",size:"medium",color:unref(colors).currentThemeRef.value.grey_999},null,8,["color"])])):(openBlock(),createElementBlock("img",{key:0,src:u.tokenSrc,onError:T[0]||(T[0]=D=>M())},null,40,_hoisted_1$2h)),u.networkSrc&&!E.value?(openBlock(),createElementBlock("img",{key:2,src:u.networkSrc,class:"subIcon",onError:T[1]||(T[1]=D=>S())},null,40,_hoisted_3$1v)):u.networkSrc?(openBlock(),createElementBlock("div",_hoisted_4$1i,[createVNode(unref(Element$1),{name:"DefaultImg",size:"custom",color:unref(colors).currentThemeRef.value.grey_999},null,8,["color"])])):createCommentVNode("",!0)],6))}}),NetworkIcon=_export_sfc$1(_sfc_main$2F,[["__scopeId","data-v-676a63b8"]]),_withScopeId$p=u=>(pushScopeId("data-v-b14923b2"),u=u(),popScopeId(),u),_hoisted_1$2g={class:"txIconWrapper"},_hoisted_2$1Q=_withScopeId$p(()=>createBaseVNode("g",{class:"gradient-path"},[createBaseVNode("path",{d:`
              M15 1
              A 14 14 0 0 1 15 29
            `,stroke:"url(#gradient_transaction1)","stroke-width":"1.5"}),createBaseVNode("path",{d:`
              M15 29
              A 14 14 0 0 1 15 1
            `,stroke:"url(#gradient_transaction2)","stroke-width":"1.5"})],-1)),_hoisted_3$1u={id:"gradient_transaction1",x1:"0",x2:"0",y1:"1",y2:"0"},_hoisted_4$1h=["stop-color"],_hoisted_5$15=["stop-color"],_hoisted_6$U={id:"gradient_transaction2",x1:"0",x2:"0",y1:"1",y2:"0"},_hoisted_7$L=["stop-color"],_hoisted_8$E=["stop-color"],_hoisted_9$v=["stroke"],_hoisted_10$s={class:"arrow"},_sfc_main$2E=defineComponent({__name:"TransactionStatusIcon",props:{status:{},backgroundColor:{default:"transparent"},color:{default:void 0},width:{default:"30px"}},setup(u){useCssVars(_=>({"071781cb":_.width,"72bc29aa":d.value}));const f=u,d=computed(()=>{if(f.color)return f.color;switch(f.status){case"cancel":return colors.currentThemeRef.value.grey_999;case"sent":case"received":default:return colors.currentThemeRef.value.main}});return(_,x)=>(openBlock(),createElementBlock("div",_hoisted_1$2g,[(openBlock(),createElementBlock("svg",{class:normalizeClass(["loader",_.status]),viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[_.status==="pending"?(openBlock(),createElementBlock(Fragment,{key:0},[_hoisted_2$1Q,createBaseVNode("defs",null,[createBaseVNode("linearGradient",_hoisted_3$1u,[createBaseVNode("stop",{offset:"0%","stop-color":d.value,"stop-opacity":"0.5"},null,8,_hoisted_4$1h),createBaseVNode("stop",{offset:"100%","stop-color":d.value},null,8,_hoisted_5$15)]),createBaseVNode("linearGradient",_hoisted_6$U,[createBaseVNode("stop",{offset:"0%","stop-color":d.value,"stop-opacity":"0.5"},null,8,_hoisted_7$L),createBaseVNode("stop",{offset:"100%","stop-color":d.value,"stop-opacity":"0"},null,8,_hoisted_8$E)])])],64)):(openBlock(),createElementBlock("circle",{key:1,cx:"15",cy:"15",r:"14.25",stroke:d.value,"stroke-width":"1.5"},null,8,_hoisted_9$v))],2)),createBaseVNode("span",_hoisted_10$s,[createBaseVNode("div",{class:normalizeClass(["left",_.status])},null,2),createBaseVNode("div",{class:normalizeClass(["center",_.status])},null,2),createBaseVNode("div",{class:normalizeClass(["right",_.status])},null,2)])]))}}),TransactionStatusIcon=_export_sfc$1(_sfc_main$2E,[["__scopeId","data-v-b14923b2"]]);var _a$2;const isClient$1=typeof window<"u";isClient$1&&((_a$2=window?.navigator)!=null&&_a$2.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function resolveRef$2(u){return typeof u=="function"?computed(u):ref(u)}var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof _global$2<"u"?_global$2:typeof self<"u"?self:{};function getDefaultExportFromCjs(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}var browser$1$1={},canPromise$1=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},qrcode={},utils$1$1={};let toSJISFunction;const CODEWORDS_COUNT=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];utils$1$1.getSymbolSize=function(f){if(!f)throw new Error('"version" cannot be null or undefined');if(f<1||f>40)throw new Error('"version" should be in range from 1 to 40');return f*4+17};utils$1$1.getSymbolTotalCodewords=function(f){return CODEWORDS_COUNT[f]};utils$1$1.getBCHDigit=function(u){let f=0;for(;u!==0;)f++,u>>>=1;return f};utils$1$1.setToSJISFunction=function(f){if(typeof f!="function")throw new Error('"toSJISFunc" is not a valid function.');toSJISFunction=f};utils$1$1.isKanjiModeEnabled=function(){return typeof toSJISFunction<"u"};utils$1$1.toSJIS=function(f){return toSJISFunction(f)};var errorCorrectionLevel={};(function(u){u.L={bit:1},u.M={bit:0},u.Q={bit:3},u.H={bit:2};function f(d){if(typeof d!="string")throw new Error("Param is not a string");switch(d.toLowerCase()){case"l":case"low":return u.L;case"m":case"medium":return u.M;case"q":case"quartile":return u.Q;case"h":case"high":return u.H;default:throw new Error("Unknown EC Level: "+d)}}u.isValid=function(_){return _&&typeof _.bit<"u"&&_.bit>=0&&_.bit<4},u.from=function(_,x){if(u.isValid(_))return _;try{return f(_)}catch{return x}}})(errorCorrectionLevel);function BitBuffer$1(){this.buffer=[],this.length=0}BitBuffer$1.prototype={get:function(u){const f=Math.floor(u/8);return(this.buffer[f]>>>7-u%8&1)===1},put:function(u,f){for(let d=0;d<f;d++)this.putBit((u>>>f-d-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(u){const f=Math.floor(this.length/8);this.buffer.length<=f&&this.buffer.push(0),u&&(this.buffer[f]|=128>>>this.length%8),this.length++}};var bitBuffer=BitBuffer$1;function BitMatrix$1(u){if(!u||u<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=u,this.data=new Uint8Array(u*u),this.reservedBit=new Uint8Array(u*u)}BitMatrix$1.prototype.set=function(u,f,d,_){const x=u*this.size+f;this.data[x]=d,_&&(this.reservedBit[x]=!0)};BitMatrix$1.prototype.get=function(u,f){return this.data[u*this.size+f]};BitMatrix$1.prototype.xor=function(u,f,d){this.data[u*this.size+f]^=d};BitMatrix$1.prototype.isReserved=function(u,f){return this.reservedBit[u*this.size+f]};var bitMatrix=BitMatrix$1,alignmentPattern={};(function(u){const f=utils$1$1.getSymbolSize;u.getRowColCoords=function(_){if(_===1)return[];const x=Math.floor(_/7)+2,I=f(_),E=I===145?26:Math.ceil((I-13)/(2*x-2))*2,M=[I-7];for(let S=1;S<x-1;S++)M[S]=M[S-1]-E;return M.push(6),M.reverse()},u.getPositions=function(_){const x=[],I=u.getRowColCoords(_),E=I.length;for(let M=0;M<E;M++)for(let S=0;S<E;S++)M===0&&S===0||M===0&&S===E-1||M===E-1&&S===0||x.push([I[M],I[S]]);return x}})(alignmentPattern);var finderPattern={};const getSymbolSize=utils$1$1.getSymbolSize,FINDER_PATTERN_SIZE=7;finderPattern.getPositions=function(f){const d=getSymbolSize(f);return[[0,0],[d-FINDER_PATTERN_SIZE,0],[0,d-FINDER_PATTERN_SIZE]]};var maskPattern={};(function(u){u.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const f={N1:3,N2:3,N3:40,N4:10};u.isValid=function(x){return x!=null&&x!==""&&!isNaN(x)&&x>=0&&x<=7},u.from=function(x){return u.isValid(x)?parseInt(x,10):void 0},u.getPenaltyN1=function(x){const I=x.size;let E=0,M=0,S=0,A=null,T=null;for(let D=0;D<I;D++){M=S=0,A=T=null;for(let O=0;O<I;O++){let j=x.get(D,O);j===A?M++:(M>=5&&(E+=f.N1+(M-5)),A=j,M=1),j=x.get(O,D),j===T?S++:(S>=5&&(E+=f.N1+(S-5)),T=j,S=1)}M>=5&&(E+=f.N1+(M-5)),S>=5&&(E+=f.N1+(S-5))}return E},u.getPenaltyN2=function(x){const I=x.size;let E=0;for(let M=0;M<I-1;M++)for(let S=0;S<I-1;S++){const A=x.get(M,S)+x.get(M,S+1)+x.get(M+1,S)+x.get(M+1,S+1);(A===4||A===0)&&E++}return E*f.N2},u.getPenaltyN3=function(x){const I=x.size;let E=0,M=0,S=0;for(let A=0;A<I;A++){M=S=0;for(let T=0;T<I;T++)M=M<<1&2047|x.get(A,T),T>=10&&(M===1488||M===93)&&E++,S=S<<1&2047|x.get(T,A),T>=10&&(S===1488||S===93)&&E++}return E*f.N3},u.getPenaltyN4=function(x){let I=0;const E=x.data.length;for(let S=0;S<E;S++)I+=x.data[S];return Math.abs(Math.ceil(I*100/E/5)-10)*f.N4};function d(_,x,I){switch(_){case u.Patterns.PATTERN000:return(x+I)%2===0;case u.Patterns.PATTERN001:return x%2===0;case u.Patterns.PATTERN010:return I%3===0;case u.Patterns.PATTERN011:return(x+I)%3===0;case u.Patterns.PATTERN100:return(Math.floor(x/2)+Math.floor(I/3))%2===0;case u.Patterns.PATTERN101:return x*I%2+x*I%3===0;case u.Patterns.PATTERN110:return(x*I%2+x*I%3)%2===0;case u.Patterns.PATTERN111:return(x*I%3+(x+I)%2)%2===0;default:throw new Error("bad maskPattern:"+_)}}u.applyMask=function(x,I){const E=I.size;for(let M=0;M<E;M++)for(let S=0;S<E;S++)I.isReserved(S,M)||I.xor(S,M,d(x,S,M))},u.getBestMask=function(x,I){const E=Object.keys(u.Patterns).length;let M=0,S=1/0;for(let A=0;A<E;A++){I(A),u.applyMask(A,x);const T=u.getPenaltyN1(x)+u.getPenaltyN2(x)+u.getPenaltyN3(x)+u.getPenaltyN4(x);u.applyMask(A,x),T<S&&(S=T,M=A)}return M}})(maskPattern);var errorCorrectionCode={};const ECLevel$1=errorCorrectionLevel,EC_BLOCKS_TABLE=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],EC_CODEWORDS_TABLE=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];errorCorrectionCode.getBlocksCount=function(f,d){switch(d){case ECLevel$1.L:return EC_BLOCKS_TABLE[(f-1)*4+0];case ECLevel$1.M:return EC_BLOCKS_TABLE[(f-1)*4+1];case ECLevel$1.Q:return EC_BLOCKS_TABLE[(f-1)*4+2];case ECLevel$1.H:return EC_BLOCKS_TABLE[(f-1)*4+3];default:return}};errorCorrectionCode.getTotalCodewordsCount=function(f,d){switch(d){case ECLevel$1.L:return EC_CODEWORDS_TABLE[(f-1)*4+0];case ECLevel$1.M:return EC_CODEWORDS_TABLE[(f-1)*4+1];case ECLevel$1.Q:return EC_CODEWORDS_TABLE[(f-1)*4+2];case ECLevel$1.H:return EC_CODEWORDS_TABLE[(f-1)*4+3];default:return}};var polynomial={},galoisField={};const EXP_TABLE=new Uint8Array(512),LOG_TABLE=new Uint8Array(256);(function(){let f=1;for(let d=0;d<255;d++)EXP_TABLE[d]=f,LOG_TABLE[f]=d,f<<=1,f&256&&(f^=285);for(let d=255;d<512;d++)EXP_TABLE[d]=EXP_TABLE[d-255]})();galoisField.log=function(f){if(f<1)throw new Error("log("+f+")");return LOG_TABLE[f]};galoisField.exp=function(f){return EXP_TABLE[f]};galoisField.mul=function(f,d){return f===0||d===0?0:EXP_TABLE[LOG_TABLE[f]+LOG_TABLE[d]]};(function(u){const f=galoisField;u.mul=function(_,x){const I=new Uint8Array(_.length+x.length-1);for(let E=0;E<_.length;E++)for(let M=0;M<x.length;M++)I[E+M]^=f.mul(_[E],x[M]);return I},u.mod=function(_,x){let I=new Uint8Array(_);for(;I.length-x.length>=0;){const E=I[0];for(let S=0;S<x.length;S++)I[S]^=f.mul(x[S],E);let M=0;for(;M<I.length&&I[M]===0;)M++;I=I.slice(M)}return I},u.generateECPolynomial=function(_){let x=new Uint8Array([1]);for(let I=0;I<_;I++)x=u.mul(x,new Uint8Array([1,f.exp(I)]));return x}})(polynomial);const Polynomial=polynomial;function ReedSolomonEncoder$1(u){this.genPoly=void 0,this.degree=u,this.degree&&this.initialize(this.degree)}ReedSolomonEncoder$1.prototype.initialize=function(f){this.degree=f,this.genPoly=Polynomial.generateECPolynomial(this.degree)};ReedSolomonEncoder$1.prototype.encode=function(f){if(!this.genPoly)throw new Error("Encoder not initialized");const d=new Uint8Array(f.length+this.degree);d.set(f);const _=Polynomial.mod(d,this.genPoly),x=this.degree-_.length;if(x>0){const I=new Uint8Array(this.degree);return I.set(_,x),I}return _};var reedSolomonEncoder=ReedSolomonEncoder$1,version$5={},mode={},versionCheck={};versionCheck.isValid=function(f){return!isNaN(f)&&f>=1&&f<=40};var regex$1={};const numeric="[0-9]+",alphanumeric="[A-Z $%*+\\-./:]+";let kanji="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";kanji=kanji.replace(/u/g,"\\u");const byte="(?:(?![A-Z0-9 $%*+\\-./:]|"+kanji+`)(?:.|[\r
]))+`;regex$1.KANJI=new RegExp(kanji,"g");regex$1.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");regex$1.BYTE=new RegExp(byte,"g");regex$1.NUMERIC=new RegExp(numeric,"g");regex$1.ALPHANUMERIC=new RegExp(alphanumeric,"g");const TEST_KANJI=new RegExp("^"+kanji+"$"),TEST_NUMERIC=new RegExp("^"+numeric+"$"),TEST_ALPHANUMERIC=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");regex$1.testKanji=function(f){return TEST_KANJI.test(f)};regex$1.testNumeric=function(f){return TEST_NUMERIC.test(f)};regex$1.testAlphanumeric=function(f){return TEST_ALPHANUMERIC.test(f)};(function(u){const f=versionCheck,d=regex$1;u.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},u.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},u.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},u.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},u.MIXED={bit:-1},u.getCharCountIndicator=function(I,E){if(!I.ccBits)throw new Error("Invalid mode: "+I);if(!f.isValid(E))throw new Error("Invalid version: "+E);return E>=1&&E<10?I.ccBits[0]:E<27?I.ccBits[1]:I.ccBits[2]},u.getBestModeForData=function(I){return d.testNumeric(I)?u.NUMERIC:d.testAlphanumeric(I)?u.ALPHANUMERIC:d.testKanji(I)?u.KANJI:u.BYTE},u.toString=function(I){if(I&&I.id)return I.id;throw new Error("Invalid mode")},u.isValid=function(I){return I&&I.bit&&I.ccBits};function _(x){if(typeof x!="string")throw new Error("Param is not a string");switch(x.toLowerCase()){case"numeric":return u.NUMERIC;case"alphanumeric":return u.ALPHANUMERIC;case"kanji":return u.KANJI;case"byte":return u.BYTE;default:throw new Error("Unknown mode: "+x)}}u.from=function(I,E){if(u.isValid(I))return I;try{return _(I)}catch{return E}}})(mode);(function(u){const f=utils$1$1,d=errorCorrectionCode,_=errorCorrectionLevel,x=mode,I=versionCheck,E=7973,M=f.getBCHDigit(E);function S(O,j,$){for(let W=1;W<=40;W++)if(j<=u.getCapacity(W,$,O))return W}function A(O,j){return x.getCharCountIndicator(O,j)+4}function T(O,j){let $=0;return O.forEach(function(W){const Q=A(W.mode,j);$+=Q+W.getBitsLength()}),$}function D(O,j){for(let $=1;$<=40;$++)if(T(O,$)<=u.getCapacity($,j,x.MIXED))return $}u.from=function(j,$){return I.isValid(j)?parseInt(j,10):$},u.getCapacity=function(j,$,W){if(!I.isValid(j))throw new Error("Invalid QR Code version");typeof W>"u"&&(W=x.BYTE);const Q=f.getSymbolTotalCodewords(j),X=d.getTotalCodewordsCount(j,$),Y=(Q-X)*8;if(W===x.MIXED)return Y;const ie=Y-A(W,j);switch(W){case x.NUMERIC:return Math.floor(ie/10*3);case x.ALPHANUMERIC:return Math.floor(ie/11*2);case x.KANJI:return Math.floor(ie/13);case x.BYTE:default:return Math.floor(ie/8)}},u.getBestVersionForData=function(j,$){let W;const Q=_.from($,_.M);if(Array.isArray(j)){if(j.length>1)return D(j,Q);if(j.length===0)return 1;W=j[0]}else W=j;return S(W.mode,W.getLength(),Q)},u.getEncodedBits=function(j){if(!I.isValid(j)||j<7)throw new Error("Invalid QR Code version");let $=j<<12;for(;f.getBCHDigit($)-M>=0;)$^=E<<f.getBCHDigit($)-M;return j<<12|$}})(version$5);var formatInfo={};const Utils$3=utils$1$1,G15=1335,G15_MASK=21522,G15_BCH=Utils$3.getBCHDigit(G15);formatInfo.getEncodedBits=function(f,d){const _=f.bit<<3|d;let x=_<<10;for(;Utils$3.getBCHDigit(x)-G15_BCH>=0;)x^=G15<<Utils$3.getBCHDigit(x)-G15_BCH;return(_<<10|x)^G15_MASK};var segments={};const Mode$4=mode;function NumericData(u){this.mode=Mode$4.NUMERIC,this.data=u.toString()}NumericData.getBitsLength=function(f){return 10*Math.floor(f/3)+(f%3?f%3*3+1:0)};NumericData.prototype.getLength=function(){return this.data.length};NumericData.prototype.getBitsLength=function(){return NumericData.getBitsLength(this.data.length)};NumericData.prototype.write=function(f){let d,_,x;for(d=0;d+3<=this.data.length;d+=3)_=this.data.substr(d,3),x=parseInt(_,10),f.put(x,10);const I=this.data.length-d;I>0&&(_=this.data.substr(d),x=parseInt(_,10),f.put(x,I*3+1))};var numericData=NumericData;const Mode$3=mode,ALPHA_NUM_CHARS=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function AlphanumericData(u){this.mode=Mode$3.ALPHANUMERIC,this.data=u}AlphanumericData.getBitsLength=function(f){return 11*Math.floor(f/2)+6*(f%2)};AlphanumericData.prototype.getLength=function(){return this.data.length};AlphanumericData.prototype.getBitsLength=function(){return AlphanumericData.getBitsLength(this.data.length)};AlphanumericData.prototype.write=function(f){let d;for(d=0;d+2<=this.data.length;d+=2){let _=ALPHA_NUM_CHARS.indexOf(this.data[d])*45;_+=ALPHA_NUM_CHARS.indexOf(this.data[d+1]),f.put(_,11)}this.data.length%2&&f.put(ALPHA_NUM_CHARS.indexOf(this.data[d]),6)};var alphanumericData=AlphanumericData,encodeUtf8$1=function(f){for(var d=[],_=f.length,x=0;x<_;x++){var I=f.charCodeAt(x);if(I>=55296&&I<=56319&&_>x+1){var E=f.charCodeAt(x+1);E>=56320&&E<=57343&&(I=(I-55296)*1024+E-56320+65536,x+=1)}if(I<128){d.push(I);continue}if(I<2048){d.push(I>>6|192),d.push(I&63|128);continue}if(I<55296||I>=57344&&I<65536){d.push(I>>12|224),d.push(I>>6&63|128),d.push(I&63|128);continue}if(I>=65536&&I<=1114111){d.push(I>>18|240),d.push(I>>12&63|128),d.push(I>>6&63|128),d.push(I&63|128);continue}d.push(239,191,189)}return new Uint8Array(d).buffer};const encodeUtf8=encodeUtf8$1,Mode$2=mode;function ByteData(u){this.mode=Mode$2.BYTE,typeof u=="string"&&(u=encodeUtf8(u)),this.data=new Uint8Array(u)}ByteData.getBitsLength=function(f){return f*8};ByteData.prototype.getLength=function(){return this.data.length};ByteData.prototype.getBitsLength=function(){return ByteData.getBitsLength(this.data.length)};ByteData.prototype.write=function(u){for(let f=0,d=this.data.length;f<d;f++)u.put(this.data[f],8)};var byteData=ByteData;const Mode$1=mode,Utils$2=utils$1$1;function KanjiData(u){this.mode=Mode$1.KANJI,this.data=u}KanjiData.getBitsLength=function(f){return f*13};KanjiData.prototype.getLength=function(){return this.data.length};KanjiData.prototype.getBitsLength=function(){return KanjiData.getBitsLength(this.data.length)};KanjiData.prototype.write=function(u){let f;for(f=0;f<this.data.length;f++){let d=Utils$2.toSJIS(this.data[f]);if(d>=33088&&d<=40956)d-=33088;else if(d>=57408&&d<=60351)d-=49472;else throw new Error("Invalid SJIS character: "+this.data[f]+`
Make sure your charset is UTF-8`);d=(d>>>8&255)*192+(d&255),u.put(d,13)}};var kanjiData=KanjiData,dijkstra={exports:{}};(function(u){var f={single_source_shortest_paths:function(d,_,x){var I={},E={};E[_]=0;var M=f.PriorityQueue.make();M.push(_,0);for(var S,A,T,D,O,j,$,W,Q;!M.empty();){S=M.pop(),A=S.value,D=S.cost,O=d[A]||{};for(T in O)O.hasOwnProperty(T)&&(j=O[T],$=D+j,W=E[T],Q=typeof E[T]>"u",(Q||W>$)&&(E[T]=$,M.push(T,$),I[T]=A))}if(typeof x<"u"&&typeof E[x]>"u"){var X=["Could not find a path from ",_," to ",x,"."].join("");throw new Error(X)}return I},extract_shortest_path_from_predecessor_list:function(d,_){for(var x=[],I=_;I;)x.push(I),d[I],I=d[I];return x.reverse(),x},find_path:function(d,_,x){var I=f.single_source_shortest_paths(d,_,x);return f.extract_shortest_path_from_predecessor_list(I,x)},PriorityQueue:{make:function(d){var _=f.PriorityQueue,x={},I;d=d||{};for(I in _)_.hasOwnProperty(I)&&(x[I]=_[I]);return x.queue=[],x.sorter=d.sorter||_.default_sorter,x},default_sorter:function(d,_){return d.cost-_.cost},push:function(d,_){var x={value:d,cost:_};this.queue.push(x),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};u.exports=f})(dijkstra);var dijkstraExports=dijkstra.exports;(function(u){const f=mode,d=numericData,_=alphanumericData,x=byteData,I=kanjiData,E=regex$1,M=utils$1$1,S=dijkstraExports;function A(X){return unescape(encodeURIComponent(X)).length}function T(X,Y,ie){const oe=[];let ge;for(;(ge=X.exec(ie))!==null;)oe.push({data:ge[0],index:ge.index,mode:Y,length:ge[0].length});return oe}function D(X){const Y=T(E.NUMERIC,f.NUMERIC,X),ie=T(E.ALPHANUMERIC,f.ALPHANUMERIC,X);let oe,ge;return M.isKanjiModeEnabled()?(oe=T(E.BYTE,f.BYTE,X),ge=T(E.KANJI,f.KANJI,X)):(oe=T(E.BYTE_KANJI,f.BYTE,X),ge=[]),Y.concat(ie,oe,ge).sort(function(ze,de){return ze.index-de.index}).map(function(ze){return{data:ze.data,mode:ze.mode,length:ze.length}})}function O(X,Y){switch(Y){case f.NUMERIC:return d.getBitsLength(X);case f.ALPHANUMERIC:return _.getBitsLength(X);case f.KANJI:return I.getBitsLength(X);case f.BYTE:return x.getBitsLength(X)}}function j(X){return X.reduce(function(Y,ie){const oe=Y.length-1>=0?Y[Y.length-1]:null;return oe&&oe.mode===ie.mode?(Y[Y.length-1].data+=ie.data,Y):(Y.push(ie),Y)},[])}function $(X){const Y=[];for(let ie=0;ie<X.length;ie++){const oe=X[ie];switch(oe.mode){case f.NUMERIC:Y.push([oe,{data:oe.data,mode:f.ALPHANUMERIC,length:oe.length},{data:oe.data,mode:f.BYTE,length:oe.length}]);break;case f.ALPHANUMERIC:Y.push([oe,{data:oe.data,mode:f.BYTE,length:oe.length}]);break;case f.KANJI:Y.push([oe,{data:oe.data,mode:f.BYTE,length:A(oe.data)}]);break;case f.BYTE:Y.push([{data:oe.data,mode:f.BYTE,length:A(oe.data)}])}}return Y}function W(X,Y){const ie={},oe={start:{}};let ge=["start"];for(let be=0;be<X.length;be++){const ze=X[be],de=[];for(let Ce=0;Ce<ze.length;Ce++){const ke=ze[Ce],le=""+be+Ce;de.push(le),ie[le]={node:ke,lastCount:0},oe[le]={};for(let re=0;re<ge.length;re++){const P=ge[re];ie[P]&&ie[P].node.mode===ke.mode?(oe[P][le]=O(ie[P].lastCount+ke.length,ke.mode)-O(ie[P].lastCount,ke.mode),ie[P].lastCount+=ke.length):(ie[P]&&(ie[P].lastCount=ke.length),oe[P][le]=O(ke.length,ke.mode)+4+f.getCharCountIndicator(ke.mode,Y))}}ge=de}for(let be=0;be<ge.length;be++)oe[ge[be]].end=0;return{map:oe,table:ie}}function Q(X,Y){let ie;const oe=f.getBestModeForData(X);if(ie=f.from(Y,oe),ie!==f.BYTE&&ie.bit<oe.bit)throw new Error('"'+X+'" cannot be encoded with mode '+f.toString(ie)+`.
 Suggested mode is: `+f.toString(oe));switch(ie===f.KANJI&&!M.isKanjiModeEnabled()&&(ie=f.BYTE),ie){case f.NUMERIC:return new d(X);case f.ALPHANUMERIC:return new _(X);case f.KANJI:return new I(X);case f.BYTE:return new x(X)}}u.fromArray=function(Y){return Y.reduce(function(ie,oe){return typeof oe=="string"?ie.push(Q(oe,null)):oe.data&&ie.push(Q(oe.data,oe.mode)),ie},[])},u.fromString=function(Y,ie){const oe=D(Y,M.isKanjiModeEnabled()),ge=$(oe),be=W(ge,ie),ze=S.find_path(be.map,"start","end"),de=[];for(let Ce=1;Ce<ze.length-1;Ce++)de.push(be.table[ze[Ce]].node);return u.fromArray(j(de))},u.rawSplit=function(Y){return u.fromArray(D(Y,M.isKanjiModeEnabled()))}})(segments);const Utils$1=utils$1$1,ECLevel=errorCorrectionLevel,BitBuffer=bitBuffer,BitMatrix=bitMatrix,AlignmentPattern=alignmentPattern,FinderPattern=finderPattern,MaskPattern=maskPattern,ECCode=errorCorrectionCode,ReedSolomonEncoder=reedSolomonEncoder,Version=version$5,FormatInfo=formatInfo,Mode=mode,Segments=segments;function setupFinderPattern(u,f){const d=u.size,_=FinderPattern.getPositions(f);for(let x=0;x<_.length;x++){const I=_[x][0],E=_[x][1];for(let M=-1;M<=7;M++)if(!(I+M<=-1||d<=I+M))for(let S=-1;S<=7;S++)E+S<=-1||d<=E+S||(M>=0&&M<=6&&(S===0||S===6)||S>=0&&S<=6&&(M===0||M===6)||M>=2&&M<=4&&S>=2&&S<=4?u.set(I+M,E+S,!0,!0):u.set(I+M,E+S,!1,!0))}}function setupTimingPattern(u){const f=u.size;for(let d=8;d<f-8;d++){const _=d%2===0;u.set(d,6,_,!0),u.set(6,d,_,!0)}}function setupAlignmentPattern(u,f){const d=AlignmentPattern.getPositions(f);for(let _=0;_<d.length;_++){const x=d[_][0],I=d[_][1];for(let E=-2;E<=2;E++)for(let M=-2;M<=2;M++)E===-2||E===2||M===-2||M===2||E===0&&M===0?u.set(x+E,I+M,!0,!0):u.set(x+E,I+M,!1,!0)}}function setupVersionInfo(u,f){const d=u.size,_=Version.getEncodedBits(f);let x,I,E;for(let M=0;M<18;M++)x=Math.floor(M/3),I=M%3+d-8-3,E=(_>>M&1)===1,u.set(x,I,E,!0),u.set(I,x,E,!0)}function setupFormatInfo(u,f,d){const _=u.size,x=FormatInfo.getEncodedBits(f,d);let I,E;for(I=0;I<15;I++)E=(x>>I&1)===1,I<6?u.set(I,8,E,!0):I<8?u.set(I+1,8,E,!0):u.set(_-15+I,8,E,!0),I<8?u.set(8,_-I-1,E,!0):I<9?u.set(8,15-I-1+1,E,!0):u.set(8,15-I-1,E,!0);u.set(_-8,8,1,!0)}function setupData(u,f){const d=u.size;let _=-1,x=d-1,I=7,E=0;for(let M=d-1;M>0;M-=2)for(M===6&&M--;;){for(let S=0;S<2;S++)if(!u.isReserved(x,M-S)){let A=!1;E<f.length&&(A=(f[E]>>>I&1)===1),u.set(x,M-S,A),I--,I===-1&&(E++,I=7)}if(x+=_,x<0||d<=x){x-=_,_=-_;break}}}function createData(u,f,d){const _=new BitBuffer;d.forEach(function(S){_.put(S.mode.bit,4),_.put(S.getLength(),Mode.getCharCountIndicator(S.mode,u)),S.write(_)});const x=Utils$1.getSymbolTotalCodewords(u),I=ECCode.getTotalCodewordsCount(u,f),E=(x-I)*8;for(_.getLengthInBits()+4<=E&&_.put(0,4);_.getLengthInBits()%8!==0;)_.putBit(0);const M=(E-_.getLengthInBits())/8;for(let S=0;S<M;S++)_.put(S%2?17:236,8);return createCodewords(_,u,f)}function createCodewords(u,f,d){const _=Utils$1.getSymbolTotalCodewords(f),x=ECCode.getTotalCodewordsCount(f,d),I=_-x,E=ECCode.getBlocksCount(f,d),M=_%E,S=E-M,A=Math.floor(_/E),T=Math.floor(I/E),D=T+1,O=A-T,j=new ReedSolomonEncoder(O);let $=0;const W=new Array(E),Q=new Array(E);let X=0;const Y=new Uint8Array(u.buffer);for(let ze=0;ze<E;ze++){const de=ze<S?T:D;W[ze]=Y.slice($,$+de),Q[ze]=j.encode(W[ze]),$+=de,X=Math.max(X,de)}const ie=new Uint8Array(_);let oe=0,ge,be;for(ge=0;ge<X;ge++)for(be=0;be<E;be++)ge<W[be].length&&(ie[oe++]=W[be][ge]);for(ge=0;ge<O;ge++)for(be=0;be<E;be++)ie[oe++]=Q[be][ge];return ie}function createSymbol(u,f,d,_){let x;if(Array.isArray(u))x=Segments.fromArray(u);else if(typeof u=="string"){let A=f;if(!A){const T=Segments.rawSplit(u);A=Version.getBestVersionForData(T,d)}x=Segments.fromString(u,A||40)}else throw new Error("Invalid data");const I=Version.getBestVersionForData(x,d);if(!I)throw new Error("The amount of data is too big to be stored in a QR Code");if(!f)f=I;else if(f<I)throw new Error(`
The chosen QR Code version cannot contain this amount of data.
Minimum version required to store current data is: `+I+`.
`);const E=createData(f,d,x),M=Utils$1.getSymbolSize(f),S=new BitMatrix(M);return setupFinderPattern(S,f),setupTimingPattern(S),setupAlignmentPattern(S,f),setupFormatInfo(S,d,0),f>=7&&setupVersionInfo(S,f),setupData(S,E),isNaN(_)&&(_=MaskPattern.getBestMask(S,setupFormatInfo.bind(null,S,d))),MaskPattern.applyMask(_,S),setupFormatInfo(S,d,_),{modules:S,version:f,errorCorrectionLevel:d,maskPattern:_,segments:x}}qrcode.create=function(f,d){if(typeof f>"u"||f==="")throw new Error("No input text");let _=ECLevel.M,x,I;return typeof d<"u"&&(_=ECLevel.from(d.errorCorrectionLevel,ECLevel.M),x=Version.from(d.version),I=MaskPattern.from(d.maskPattern),d.toSJISFunc&&Utils$1.setToSJISFunction(d.toSJISFunc)),createSymbol(f,x,_,I)};var canvas={},utils$4={};(function(u){function f(d){if(typeof d=="number"&&(d=d.toString()),typeof d!="string")throw new Error("Color should be defined as hex string");let _=d.slice().replace("#","").split("");if(_.length<3||_.length===5||_.length>8)throw new Error("Invalid hex color: "+d);(_.length===3||_.length===4)&&(_=Array.prototype.concat.apply([],_.map(function(I){return[I,I]}))),_.length===6&&_.push("F","F");const x=parseInt(_.join(""),16);return{r:x>>24&255,g:x>>16&255,b:x>>8&255,a:x&255,hex:"#"+_.slice(0,6).join("")}}u.getOptions=function(_){_||(_={}),_.color||(_.color={});const x=typeof _.margin>"u"||_.margin===null||_.margin<0?4:_.margin,I=_.width&&_.width>=21?_.width:void 0,E=_.scale||4;return{width:I,scale:I?4:E,margin:x,color:{dark:f(_.color.dark||"#000000ff"),light:f(_.color.light||"#ffffffff")},type:_.type,rendererOpts:_.rendererOpts||{}}},u.getScale=function(_,x){return x.width&&x.width>=_+x.margin*2?x.width/(_+x.margin*2):x.scale},u.getImageWidth=function(_,x){const I=u.getScale(_,x);return Math.floor((_+x.margin*2)*I)},u.qrToImageData=function(_,x,I){const E=x.modules.size,M=x.modules.data,S=u.getScale(E,I),A=Math.floor((E+I.margin*2)*S),T=I.margin*S,D=[I.color.light,I.color.dark];for(let O=0;O<A;O++)for(let j=0;j<A;j++){let $=(O*A+j)*4,W=I.color.light;if(O>=T&&j>=T&&O<A-T&&j<A-T){const Q=Math.floor((O-T)/S),X=Math.floor((j-T)/S);W=D[M[Q*E+X]?1:0]}_[$++]=W.r,_[$++]=W.g,_[$++]=W.b,_[$]=W.a}}})(utils$4);(function(u){const f=utils$4;function d(x,I,E){x.clearRect(0,0,I.width,I.height),I.style||(I.style={}),I.height=E,I.width=E,I.style.height=E+"px",I.style.width=E+"px"}function _(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}u.render=function(I,E,M){let S=M,A=E;typeof S>"u"&&(!E||!E.getContext)&&(S=E,E=void 0),E||(A=_()),S=f.getOptions(S);const T=f.getImageWidth(I.modules.size,S),D=A.getContext("2d"),O=D.createImageData(T,T);return f.qrToImageData(O.data,I,S),d(D,A,T),D.putImageData(O,0,0),A},u.renderToDataURL=function(I,E,M){let S=M;typeof S>"u"&&(!E||!E.getContext)&&(S=E,E=void 0),S||(S={});const A=u.render(I,E,S),T=S.type||"image/png",D=S.rendererOpts||{};return A.toDataURL(T,D.quality)}})(canvas);var svgTag={};const Utils=utils$4;function getColorAttrib(u,f){const d=u.a/255,_=f+'="'+u.hex+'"';return d<1?_+" "+f+'-opacity="'+d.toFixed(2).slice(1)+'"':_}function svgCmd(u,f,d){let _=u+f;return typeof d<"u"&&(_+=" "+d),_}function qrToPath(u,f,d){let _="",x=0,I=!1,E=0;for(let M=0;M<u.length;M++){const S=Math.floor(M%f),A=Math.floor(M/f);!S&&!I&&(I=!0),u[M]?(E++,M>0&&S>0&&u[M-1]||(_+=I?svgCmd("M",S+d,.5+A+d):svgCmd("m",x,0),x=0,I=!1),S+1<f&&u[M+1]||(_+=svgCmd("h",E),E=0)):x++}return _}svgTag.render=function(f,d,_){const x=Utils.getOptions(d),I=f.modules.size,E=f.modules.data,M=I+x.margin*2,S=x.color.light.a?"<path "+getColorAttrib(x.color.light,"fill")+' d="M0 0h'+M+"v"+M+'H0z"/>':"",A="<path "+getColorAttrib(x.color.dark,"stroke")+' d="'+qrToPath(E,I,x.margin)+'"/>',T='viewBox="0 0 '+M+" "+M+'"',O='<svg xmlns="http://www.w3.org/2000/svg" '+(x.width?'width="'+x.width+'" height="'+x.width+'" ':"")+T+' shape-rendering="crispEdges">'+S+A+`</svg>
`;return typeof _=="function"&&_(null,O),O};const canPromise=canPromise$1,QRCode=qrcode,CanvasRenderer=canvas,SvgRenderer=svgTag;function renderCanvas(u,f,d,_,x){const I=[].slice.call(arguments,1),E=I.length,M=typeof I[E-1]=="function";if(!M&&!canPromise())throw new Error("Callback required as last argument");if(M){if(E<2)throw new Error("Too few arguments provided");E===2?(x=d,d=f,f=_=void 0):E===3&&(f.getContext&&typeof x>"u"?(x=_,_=void 0):(x=_,_=d,d=f,f=void 0))}else{if(E<1)throw new Error("Too few arguments provided");return E===1?(d=f,f=_=void 0):E===2&&!f.getContext&&(_=d,d=f,f=void 0),new Promise(function(S,A){try{const T=QRCode.create(d,_);S(u(T,f,_))}catch(T){A(T)}})}try{const S=QRCode.create(d,_);x(null,u(S,f,_))}catch(S){x(S)}}browser$1$1.create=QRCode.create;browser$1$1.toCanvas=renderCanvas.bind(null,CanvasRenderer.render);browser$1$1.toDataURL=renderCanvas.bind(null,CanvasRenderer.renderToDataURL);browser$1$1.toString=renderCanvas.bind(null,function(u,f,d){return SvgRenderer.render(u,d)});function useQRCode(u,f){const d=resolveRef$2(u),_=ref("");return watch(d,async x=>{d.value&&isClient$1&&(_.value=await browser$1$1.toDataURL(x,f))},{immediate:!0}),_}const _hoisted_1$2e=["src"],_hoisted_2$1O=["src"],_sfc_main$2C=defineComponent({__name:"IconQrcode",props:{text:{},width:{default:160},height:{default:160},iconSrc:{default:""},iconWidth:{default:40},iconHeight:{default:40},disabled:{type:Boolean,default:!1}},setup(u){useCssVars(S=>({"708b15c6":d.value,"8242bd92":_.value,"1dc9bb0d":x.value,"8d16b660":I.value}));const f=u,d=computed(()=>`${f.width}px`),_=computed(()=>`${f.height}px`),x=computed(()=>`${f.iconWidth}px`),I=computed(()=>`${f.iconHeight}px`),E=computed(()=>f.text),M=useQRCode(E,{margin:0,width:f.width,color:{light:colors.currentThemeRef.value.grey_fff,dark:f.disabled?colors.currentThemeRef.value.grey_ccc:colors.currentThemeRef.value.grey_111},errorCorrectionLevel:"H"});return(S,A)=>(openBlock(),createElementBlock("div",{class:normalizeClass(["icon-qrcode",S.disabled])},[createBaseVNode("img",{class:"img-qrcode",src:unref(M),alt:"QRcode"},null,8,_hoisted_1$2e),S.iconSrc?(openBlock(),createElementBlock("img",{key:0,src:S.iconSrc,alt:"icon",class:"img-icon"},null,8,_hoisted_2$1O)):createCommentVNode("",!0)],2))}}),IconQrcode=_export_sfc$1(_sfc_main$2C,[["__scopeId","data-v-9e2dc403"]]),_hoisted_1$2d=["type","placeholder","disabled","value","maxlength","autocomplete"],_hoisted_2$1N={class:"icon-button"},_hoisted_3$1s={key:0,class:"icon-button"},_hoisted_4$1f={key:1,class:"unit"},_sfc_main$2B=defineComponent({__name:"InputBox",props:{width:{default:"360px"},error:{type:Boolean,default:!1},clear:{type:Boolean,default:!1},view:{type:Boolean},disabled:{type:Boolean,default:!1},placeholder:{default:""},type:{default:"text"},suffix:{default:""},modelValue:{default:""},align:{default:"left"},maxlength:{default:""}},emits:["update:modelValue","focus:value"],setup(u,{expose:f,emit:d}){useCssVars(W=>({"5953fa99":W.width,"581f63d8":W.align}));const _=u,x=d,I=ref(null),E=ref(!1),M=ref(!1),S=ref(_.type),A=()=>{x("update:modelValue","")},T=()=>{S.value=M.value?"password":"text",M.value=!M.value},D=W=>{const Q=W.target;x("update:modelValue",Q.value)},O=()=>{E.value=!0,x("focus:value",E.value)},j=()=>{E.value=!1,x("focus:value",E.value)},$=computed(()=>_.disabled?"disabled":_.error?"error":E.value?"focus":"");return f({clearInput:()=>A()}),(W,Q)=>(openBlock(),createElementBlock("div",{class:normalizeClass(["wrapper",$.value])},[renderSlot(W.$slots,"default",{},void 0,!0),createBaseVNode("input",{ref_key:"input",ref:I,type:S.value,placeholder:W.placeholder,disabled:W.disabled,value:W.modelValue,maxlength:W.maxlength,autocomplete:W.type==="password"?"off":"on",onInput:D,onFocus:O,onBlur:j},null,40,_hoisted_1$2d),withDirectives(createBaseVNode("div",_hoisted_2$1N,[withDirectives(createVNode(unref(Element$1),{name:"Cancel",size:"small",color:unref(colors).currentThemeRef.value.grey_ccc,onClick:A},null,8,["color"]),[[vShow,W.modelValue]])],512),[[vShow,W.clear&&!W.disabled]]),!W.clear&&W.view&&!W.disabled?(openBlock(),createElementBlock("div",_hoisted_3$1s,[M.value?withDirectives((openBlock(),createBlock(unref(Element$1),{key:0,name:"Reveal",size:"small",color:unref(colors).currentThemeRef.value.grey_999,onClick:T},null,8,["color"])),[[vShow,W.modelValue]]):withDirectives((openBlock(),createBlock(unref(Element$1),{key:1,name:"Hide",size:"small",color:unref(colors).currentThemeRef.value.grey_999,onClick:T},null,8,["color"])),[[vShow,W.modelValue]])])):createCommentVNode("",!0),W.suffix?(openBlock(),createElementBlock("div",_hoisted_4$1f,toDisplayString$2(W.suffix),1)):createCommentVNode("",!0)],2))}}),InputBox=_export_sfc$1(_sfc_main$2B,[["__scopeId","data-v-2633a5fe"]]),_hoisted_1$2c=["value","placeholder","readonly"],_hoisted_2$1M={class:"elementWrapper"},_sfc_main$2A=defineComponent({__name:"IconInput",props:{width:{default:"400px"},error:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},placeholder:{default:""},preset:{default:""},element:{},value:{default:""}},emits:["update:value","click:icon"],setup(u,{emit:f}){const d=u,_=computed(()=>({width:d.width||"400px"})),x=ref(d.preset),I=M=>{const S=M.target;S&&(x.value=S.value,E("update:value",S.value))};watch(()=>d.value,()=>{x.value=d.value});const E=f;return(M,S)=>(openBlock(),createElementBlock("div",{class:normalizeClass(["inputAddressWrapper",M.error?"error":""]),style:normalizeStyle(_.value)},[createBaseVNode("input",{value:x.value,placeholder:M.placeholder,readonly:M.readonly,onInput:I},null,40,_hoisted_1$2c),createBaseVNode("div",{onClick:S[0]||(S[0]=()=>M.$emit("click:icon"))},[createBaseVNode("div",_hoisted_2$1M,[createVNode(unref(Element$1),{name:M.element.name,size:M.element.size,color:M.element.color},null,8,["name","size","color"])])])],6))}}),IconInput=_export_sfc$1(_sfc_main$2A,[["__scopeId","data-v-1da7085b"]]),_sfc_main$2z=defineComponent({__name:"SearchBox",props:{width:{default:"360px"},error:{type:Boolean,default:!1},clear:{type:Boolean,default:!1},disable:{type:Boolean,default:!1},placeholder:{default:""},type:{default:"text"},suffix:{default:""},modelValue:{default:""},align:{default:"left"}},emits:["update:modelValue","click:element"],setup(u){const f=u;return(d,_)=>(openBlock(),createBlock(unref(InputBox),mergeProps(f,{"onUpdate:modelValue":_[1]||(_[1]=x=>d.$emit("update:modelValue",x))}),{default:withCtx(()=>[createVNode(unref(Element$1),{class:"search",name:"Search",size:"medium",color:unref(colors).currentThemeRef.value.grey_111,onClick:_[0]||(_[0]=()=>d.$emit("click:element"))},null,8,["color"])]),_:1},16))}}),SearchBox=_export_sfc$1(_sfc_main$2z,[["__scopeId","data-v-5aeea44d"]]),_hoisted_1$2a={class:"regulator-wrapper"},_hoisted_2$1K={class:"container"},_hoisted_3$1q=["value"];`${colors.currentThemeRef.value.grey_fff}`,colors.currentThemeRef.value.grey_fff;const _hoisted_1$28={key:0,width:"120",height:"31",fill:"none",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$1I={key:0,"clip-path":"url(#a)"},_hoisted_3$1o=createBaseVNode("path",{d:"M24.85 12.3v-.88l-.03-.32v-.06c0-.07 0-.14-.02-.22-.03-.07 0-.06 0-.1l-.03-.16v-.03l-.05-.35-.05-.24V9.9l-.08-.32-.07-.29-.07-.29-.1-.32-.09-.25a8.98 8.98 0 0 0-.11-.33l-.1-.23-.13-.35-.15-.18v-.03l-.16-.35-.09-.17-.02-.04-.17-.32-.11-.2-.04-.07-.15-.24-.15-.24-.06-.09-.12-.18-.22-.32-.04-.02-.1-.14a4.31 4.31 0 0 0-.26-.32l-.03-.03a4.58 4.58 0 0 0-.38-.43l-.02-.03-.1-.1-.29-.32-.03-.03a7.6 7.6 0 0 0-.38-.37l-.04-.03-.15-.13-.26-.22-.02-.02-.2-.17-.21-.17-.03-.02h-.02l-.23-.18-.1-.07-.15-.1-.02-.01A12.46 12.46 0 0 0 2.54 4.85l-.08.1v.02c-.12.16-.25.34-.36.52L2 5.6a2.37 2.37 0 0 0-.16.25l-.04.08-.15.25-.11.19-.05.1-.12.22-.15.3-.03.05-.07.16-.2.45-.02.06c-1.35 3.2-1.07 6.7.22 9.86.74 1.83 1.54 3.66 2.3 5.47l1.94 4.65.09.2a4.04 4.04 0 0 0 3.7 2.53h.08a4.04 4.04 0 0 0 3.7-2.36l1.64-3.48.29-.06h.06-.04.08l.34-.07h.06l.17-.06.36-.1.06-.02.17-.04.16-.06h.04a12.39 12.39 0 0 0 8.52-11.03V12.32l.01-.03Zm-4.31.22v.36a8.1 8.1 0 0 1-5.58 7.2l-.31.09-.22.06-.17.05-.18.05h-.06l-.32.05-.12.02-.22.03-.37.03h-.34c-.3.01-.6 0-.9-.02l-.58 1.24-1.33 2.82-.6 1.26-.68-1.59-2.22-5.29c-.68-1.63-1.59-3.29-1.93-5.04a7.9 7.9 0 0 1 .47-4.49l.02-.04.13-.3.07-.14.1-.18.07-.14.05-.1.06-.1.09-.15.05-.08.06-.1.02-.04a11.25 11.25 0 0 1 .3-.43l.06-.07A8.14 8.14 0 0 1 17 5.7h.02l.08.06.06.04.17.13.04.03.12.09.13.1.04.04.15.13.08.06.05.05.17.17.1.1.19.19.07.08.2.22.07.09.17.21.09.13.14.2.06.08.06.1.09.14.08.14.05.08.06.11.11.21.03.05.05.1.1.22.06.13.1.23.05.15.08.22.05.16.06.21.05.2.06.19.04.21v.03l.03.15.04.23c0 .04 0 .08.02.12v.26c0 .06 0 .13.02.19v.75l.06.04Z",fill:"#6440DD"},null,-1),_hoisted_4$1c=createBaseVNode("path",{d:"M11.89 9.32a3.15 3.15 0 1 0 1.07 6.21 3.15 3.15 0 0 0-1.07-6.21Z",fill:"#6440DD"},null,-1),_hoisted_5$12=createBaseVNode("path",{d:"M100.94 6.88h-4.4v17.03h4.4V6.88ZM98.74 0a2.55 2.55 0 1 0-.04 5.1 2.55 2.55 0 0 0 .04-5.1ZM85.44 6.3a8.9 8.9 0 0 0-8.82 9.01v15.12h4.4V23a8.72 8.72 0 0 0 4.42 1.32 8.92 8.92 0 0 0 8.83-9.02 8.92 8.92 0 0 0-8.83-9.01Zm0 13.75a4.57 4.57 0 0 1-4.42-4.12 4.41 4.41 0 0 1 0-1.25 4.57 4.57 0 0 1 4.42-4.12c2.47 0 4.47 2.12 4.47 4.75 0 2.64-2 4.74-4.47 4.74ZM120 14.45c0-.17 0-.34-.02-.5v-.16a7.96 7.96 0 0 0-5.31-7.03l-.14-.05a6.25 6.25 0 0 0-.84-.23l-.14-.02a7.55 7.55 0 0 0-1.1-.15H111.62c-.64.04-1.28.16-1.89.35l-.1.03-.28.09-.48.19-.08.03a7.97 7.97 0 0 0-4.71 6.5v.04c0 .13-.02.26-.03.38l-.02.64v9.35h4.4v-9.63a3.57 3.57 0 1 1 7.14.08v9.55H120v-9.42l.01-.04ZM51.7 6.88l-.2.84a26.71 26.71 0 0 0-.2.86l-2.32 9.3c-.35-.9-.63-1.8-.9-2.6l-.6-1.94c-.44-1.43-.9-2.9-1.38-4.35 0-.03-.02-.06-.03-.08a2.43 2.43 0 0 0-2.25-1.73h-.3c-.12 0-.24 0-.35.02a2.27 2.27 0 0 0-1.74.97c-.2.25-.36.53-.47.83l-.05.17-.06.2-.23.69-.8 2.56-1.7 5.39-.04-.14-.56-2.28-1.95-7.83V7.7l-.2-.8h-4.68l3.14 10.67 1.3 4.44v.04c0 .06.04.12.06.18a3.14 3.14 0 0 0 .94 1.35c.53.41 1.19.63 1.86.61h.36l.34-.05c.44-.08.85-.27 1.2-.55l.15-.12c.39-.34.68-.76.85-1.24l.05-.15.45-1.4a704.22 704.22 0 0 1 2.08-6.4c0-.06.03-.1.05-.16l2.56 7.98.03.12a2.85 2.85 0 0 0 2.06 1.86h.05l.21.04c.18.03.35.04.53.05h.08a2.9 2.9 0 0 0 1.85-.61c.37-.32.67-.72.86-1.18.1-.2.17-.42.23-.63.85-2.87 1.68-5.74 2.51-8.61l1.75-6 .1-.31-4.63.04ZM65.63 20.05a4.48 4.48 0 0 1-4.18-3.1H74.3c.05-.64.07-1.29.05-1.93-.2-3.05-1.46-5.59-3.83-7.2a8.72 8.72 0 0 0-4.9-1.52 8.92 8.92 0 0 0-8.82 9.01 8.92 8.92 0 0 0 8.82 9.02 8.83 8.83 0 0 0 8.24-5.8H68.9a4.34 4.34 0 0 1-3.28 1.52Zm0-9.48a4.48 4.48 0 0 1 4.19 3.11h-8.37a4.48 4.48 0 0 1 4.18-3.1Z",fill:"#111"},null,-1),_hoisted_6$S=[_hoisted_3$1o,_hoisted_4$1c,_hoisted_5$12],_hoisted_7$J={key:1,"clip-path":"url(#a)",fill:"#fff"},_hoisted_8$C=createBaseVNode("path",{d:"M24.95 11.78v-.31l-.03-.32v-.07c0-.07 0-.13-.02-.2v-.1c0-.03 0-.07-.02-.1v-.09a16.91 16.91 0 0 0-.1-.6v-.03a5.41 5.41 0 0 0-.07-.32l-.08-.3-.08-.28-.09-.33-.07-.22v-.04l-.12-.33-.14-.17-.03-.07-.14-.35-.08-.18v-.04l-.02-.05-.14-.3-.09-.17-.02-.04c-.05-.1-.1-.21-.17-.32l-.12-.2-.03-.08-.15-.24a9.7 9.7 0 0 0-.15-.24l-.05-.08-.11-.16-.04-.01-.21-.32-.03-.04-.11-.14a4.4 4.4 0 0 0-.26-.33l-.03-.03-.09-.1c-.09-.12-.19-.23-.29-.33l-.02-.03-.1-.1-.3-.32-.02-.04-.06-.05-.04-.05-.27-.26-.04-.03-.15-.14-.19-.16-.07-.06-.02-.02-.18-.15h-.02l-.2-.15-.06-.05-.24-.17-.1-.08-.14-.1h-.03A12.45 12.45 0 0 0 10.35.18c-3.1.53-5.88 2.2-7.8 4.7l-.07.09v.02l-.37.52-.1.13-.05.08-.1.16-.05.08-.03.05-.12.2-.06.12-.07.07-.05.1-.12.22-.15.3-.02.06-.08.16-.2.45-.03.06c-1.25 2.98-1.17 6.5.23 9.91l1.35 3.22c.32.78.66 1.55.99 2.33l.99 2.37.96 2.32.08.19a4.02 4.02 0 0 0 3.67 2.5h.1a4.03 4.03 0 0 0 3.68-2.34l1.66-3.5v-.04h.09l.23-.04h.1l.32-.08h.13l.1-.02.39-.15.06-.02.17-.05.14-.05h.06a12.44 12.44 0 0 0 8.56-11.12v-1.12c.02-.1.01-.19.01-.28Zm-4.22 1.09v.08a8.23 8.23 0 0 1-5.67 7.32l-.32.1-.22.06-.18.03-.18.05h-.07l-.32.05-.12.02-.23.03-.37.04H12.44c-.2 0-.4 0-.64-.03l-.54 1.25-1.33 2.84-.6 1.32-.06.13-.06-.14-.68-1.64-1.13-2.72-1.1-2.63-.58-1.31c-.6-1.2-1.07-2.48-1.38-3.8a8.04 8.04 0 0 1 .47-4.57l.02-.05.13-.32.07-.15.1-.2.07-.13.05-.1.06-.07.1-.15.04-.08.07-.1h.03l-.03-.02v-.02l.05-.08.26-.36.05-.08A8.26 8.26 0 0 1 17.1 5.66v.03-.03l.08.05.04.03.02.02.18.13.04.03.04.04.08.06.11.06.07.05.04.04.16.13.07.07.06.05.03.03.14.13.1.1.2.2.07.09.2.21.06.1.06.06.12.16.1.12.13.2.06.1.07.1.02.03.07.1.08.15.05.08.05.08.02.03.1.22.03.04.05.1.1.23.07.14.1.23.05.15.08.22v.04c0 .05.03.09.04.13l.07.21v.04c0 .05.03.1.04.15l.05.2.05.22v.09l.01.1c0 .06.01.11.03.17v.45c0 .07 0 .13.02.2v.76c.13.1.12.19.12.29Z"},null,-1),_hoisted_9$t=createBaseVNode("path",{d:"M12.48 9.36a3.12 3.12 0 1 0 2.47 5.03 3.12 3.12 0 0 0-2.47-5.03ZM100.94 6.98h-4.18v17h4.18v-17ZM98.86 0a2.45 2.45 0 1 0-.01 4.9 2.45 2.45 0 0 0 0-4.9ZM85.66 6.4a8.87 8.87 0 0 0-8.83 9v15.19h4.18v-7.63l.22.13a8.65 8.65 0 0 0 4.42 1.31 8.92 8.92 0 0 0 8.81-9 8.9 8.9 0 0 0-8.8-9Zm0 13.96a4.8 4.8 0 0 1-4.63-4.3 4.73 4.73 0 0 1 0-1.3c.3-2.45 2.3-4.3 4.63-4.3 2.57 0 4.68 2.23 4.68 4.96s-2.1 4.93-4.68 4.93v.01ZM119.98 14.02l.02.5v9.46h-4.18V14.45c0-.2 0-.38-.03-.56a3.77 3.77 0 0 0-7.51.46l-.02 9.65h-4.18v-9.4c0-.17 0-.32.02-.5v-.12l.03-.4v-.03a7.96 7.96 0 0 1 4.7-6.47l.08-.03c.16-.08.33-.14.49-.2l.28-.09.1-.03c.61-.18 1.25-.29 1.89-.32h.79c.22 0 .44.03.73.08l.37.06.14.03.34.08.5.14.14.05a7.92 7.92 0 0 1 5.3 7.02v.15ZM49.34 18.46l-.17-.42c-.37-.92-.64-1.83-.9-2.64l-.62-1.97a256.9 256.9 0 0 0-1.42-4.5 2.34 2.34 0 0 0-2.16-1.65h-.32c-.1 0-.2 0-.34.03a2.17 2.17 0 0 0-1.53.75l-.04.04-.1.13a2.6 2.6 0 0 0-.51.96l-.07.21-.23.7-.81 2.6-1.87 5.93-.17-.62-.6-2.45-1.93-7.82V7.7l-.17-.72h-4.45l3.14 10.66 1.32 4.5v.06c0 .05.03.1.05.16.06.17.13.33.22.48a2.66 2.66 0 0 0 2.49 1.46h.33l.35-.05a2.65 2.65 0 0 0 1.3-.65c.38-.32.66-.74.83-1.2l1.28-4.02a329.83 329.83 0 0 1 1.38-4.21l.14-.39 2.76 8.62a2.9 2.9 0 0 0 2 1.82h.04l.2.03c.17.04.35.05.53.05h.08c.64.02 1.27-.19 1.78-.58.37-.31.66-.7.84-1.14.09-.2.17-.4.23-.61l2.55-8.74L56.57 7h-4.39l-.18.75-.06.22-.15.64-2.45 9.84ZM71.77 16.9h2.75c.05-.53.05-1.61.04-1.79-.2-3.14-1.53-5.62-3.83-7.19a8.72 8.72 0 0 0-4.88-1.52 8.92 8.92 0 0 0-8.8 9.01 8.89 8.89 0 0 0 8.8 8.98A8.84 8.84 0 0 0 74 18.82h-4.75a4.58 4.58 0 0 1-3.4 1.55 4.72 4.72 0 0 1-4.4-3.26l-.07-.21h10.38Zm-10.17-3h-.22l.07-.21a4.6 4.6 0 0 1 8.8 0l.08.21H61.6Z"},null,-1),_hoisted_10$q=[_hoisted_8$C,_hoisted_9$t],_hoisted_11$n=createBaseVNode("defs",null,[createBaseVNode("clipPath",{id:"a"},[createBaseVNode("path",{fill:"#fff",d:"M0 0h120v30.59H0z"})])],-1),_hoisted_12$m={key:1,width:"79",height:"20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},_hoisted_13$k=createBaseVNode("path",{d:"M16.3 8V6.6l-.1-.2v-.2L16 6l-.1-.2v-.2l-.1-.2v-.1l-.2-.3v-.1l-.2-.2v-.1l-.2-.3v-.1l-.2-.2v-.2H15v-.1l-.2-.3h-.1l-.2-.3-.3-.3-.2-.3h-.1l-.2-.2-.1-.1-.2-.2-.1-.1-.2-.1-.2-.2h-.1A8.2 8.2 0 0 0 1.7 3.1l-.3.4-.1.1V4h-.1l-.1.2-.1.2-.1.1-.1.2v.1L.5 5c-.9 2.2-.7 4.5.1 6.5l1.5 3.6 1.3 3.1v.1A2.7 2.7 0 0 0 6 20a2.7 2.7 0 0 0 2.5-1.6l1-2.2h.3l.3-.1h.1l.2-.1h.2v-.1h.1a8.1 8.1 0 0 0 5.6-7.3v-.5Zm-2.8.2v.3a5.3 5.3 0 0 1-3.7 4.7h-.2l-.1.1h-.2l-.3.1H7.6l-.4.9-.8 1.8-.4.8-.5-1-1.4-3.5c-.5-1-1-2.1-1.3-3.3-.2-1 0-2 .3-3l.1-.2.1-.2v-.1l.1-.1v-.1h.1v-.1l.1-.1L4 5a5.3 5.3 0 0 1 7.3-1.2l.2.1.2.1.1.2.2.1v.1l.2.1.2.2.1.2V5l.2.1v.1l.1.2v.1h.1l.1.2v.1l.1.2.1.2.1.2V6.7l.1.1V7.1h.1v1.1h.1Z",fill:"#6440DD"},null,-1),_hoisted_14$h=createBaseVNode("path",{d:"M7.8 6.1A2 2 0 0 0 6.2 9a2 2 0 0 0 3 1 2 2 0 0 0 .2-3.4A2 2 0 0 0 7.8 6Z",fill:"#6440DD"},null,-1),_hoisted_15$g=createBaseVNode("path",{d:"M66.3 4.5h-2.8v11.2h2.8V4.5ZM64.9 0c-.3 0-.7.1-1 .3a1.7 1.7 0 1 0 1-.3ZM56.2 4.1a5.9 5.9 0 0 0-5.8 6V20h2.9v-4.9c.8.6 1.8.9 2.9.9 3.2 0 5.8-2.7 5.8-6 0-3.2-2.6-5.9-5.8-5.9Zm0 9a3 3 0 0 1-3-2.6v-.8a3 3 0 0 1 3-2.8c1.6 0 2.9 1.4 2.9 3.2a3 3 0 0 1-3 3ZM78.9 9.5v-.4a5.2 5.2 0 0 0-3.5-4.7h-.1a4 4 0 0 0-.3 0l-.3-.1a6.5 6.5 0 0 0-.8-.2h-.5c-.4 0-.9.1-1.3.3h-.2l-.3.2a5.2 5.2 0 0 0-3.2 4.3v6.8h2.9V9.4a2.3 2.3 0 1 1 4.7 0v6.3h2.9V9.5ZM34 4.5l-.2.6v.5l-1.6 6.1-.6-1.7-.4-1.2-.9-2.9-.4-.7c-.3-.3-.7-.5-1.1-.5h-.4a1.5 1.5 0 0 0-1.2.7l-.3.5V6.2l-.2.4-.5 1.7-1.2 3.5-.3-1.6-1.3-5.1-.2-.6h-3l2 7 .9 3v.1l.2.3c0 .3.3.4.4.6.4.3.8.4 1.3.4h.4c.3 0 .6-.2.8-.4h.1l.6-.9.3-1 .5-1.6.9-2.6v-.1l1.7 5.2v.1a1.9 1.9 0 0 0 1.4 1.2h.5c.5.1.9 0 1.2-.3.3-.2.5-.5.6-.8l.2-.4 1.6-5.7L37 4.7v-.2h-3ZM43.1 13.2a3 3 0 0 1-2.7-2h8.4V9.8a5.7 5.7 0 0 0-5.7-5.7 5.9 5.9 0 0 0-5.8 5.9c0 3.2 2.6 5.9 5.8 5.9a5.8 5.8 0 0 0 5.5-3.8h-3.3a2.9 2.9 0 0 1-2.2 1Zm0-6.3A3 3 0 0 1 46 9h-5.5A3 3 0 0 1 43 7Z",fill:"#111"},null,-1),_hoisted_16$e=[_hoisted_13$k,_hoisted_14$h,_hoisted_15$g],_hoisted_17$c={key:2,width:"49",height:"12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},_hoisted_18$c=createBaseVNode("path",{d:"M10.1 4.8V3.7l-.1-.1v-.2h-.1v-.2L9.7 3l-.1-.1v-.2h-.1v-.2h-.1l-.1-.2-.1-.2h-.1V2L9 1.7l-.2-.2-.1-.1v-.1l-.2-.1-.2-.1V1H8V1L8 .8a5.2 5.2 0 0 0-7 1l-.1.3H.7v.1l-.1.1v.1l-.1.1-.1.2-.1.2a4.9 4.9 0 0 0 0 4l1 2 .8 2c.1.3.4.5.6.7.3.2.6.3 1 .3.3 0 .6 0 .9-.3l.6-.6.6-1.4h.4l.2-.1h.1a5 5 0 0 0 2.5-1.7c.6-.8 1-1.7 1-2.7v-.3ZM8.4 5v.2A3.3 3.3 0 0 1 6 7.9h-.2V8H4.7l-.3.6-.5 1-.2.6-.3-.7-1-2c-.2-.7-.6-1.3-.7-2A3 3 0 0 1 2 3.7v-.1l.1-.2v-.1h.1v-.1h.1l.1-.2c.5-.7 1.3-1.1 2.1-1.3.9 0 1.7 0 2.4.6h.2v.1h.1v.1h.1v.1h.1l.1.1.1.1.1.2h.1v.2H8v.1l.1.1v.2h.1v.1l.1.2V4.2h.1V5Z",fill:"#CFD4DD"},null,-1),_hoisted_19$a=createBaseVNode("path",{d:"m4.8 3.7-.6.3-.4.6v.7l.5.6a1.3 1.3 0 0 0 1.5 0c.2 0 .3-.3.4-.5.1-.2.2-.5.1-.7 0-.3-.2-.6-.5-.8-.3-.2-.6-.3-1-.2ZM41.2 2.7h-1.8v6.7h1.8V2.7ZM40.3 0a1 1 0 0 0-.6.2 1 1 0 0 0-.4.4 1 1 0 0 0 .3 1.1 1 1 0 0 0 1.6-.1l.2-.6a1 1 0 0 0-.4-.7 1 1 0 0 0-.7-.3ZM34.9 2.5c-1 0-1.8.3-2.4.9A3.5 3.5 0 0 0 31.3 6v6H33V9c.5.4 1.1.6 1.8.6a3.6 3.6 0 1 0 0-7.1Zm0 5.4A1.8 1.8 0 0 1 33 5.8c.1-1 .9-1.6 1.8-1.6 1 0 1.8.8 1.8 1.8S36 8 35 8ZM49 5.7v-.2a3 3 0 0 0-.7-1.8c-.3-.5-.9-.8-1.5-1l-.2-.1h-.2a4.2 4.2 0 0 0-.5-.1h-.3l-.8.1h-.1l-.2.1c-.6.3-1 .6-1.4 1a3 3 0 0 0-.6 1.6V9.4h1.8V5.6c0-.3.1-.7.4-1 .2-.2.6-.3 1-.4.3 0 .7.1 1 .3a1.4 1.4 0 0 1 .5 1.2v3.7H49V5.7ZM21.1 2.7V3l-.1.1v.3L20 7l-.4-1-.2-.7-.6-1.8a1 1 0 0 0-.2-.4 1 1 0 0 0-.7-.3H17.6a1 1 0 0 0-.7.4 1 1 0 0 0-.2.4v.1l-.1.3-.4 1-.6 2.1-.3-1-.8-3v-.4h-2L13.8 7l.5 1.8.2.3a1.2 1.2 0 0 0 1 .5h.2c.3 0 .4 0 .6-.2l.4-.5.2-.6.3-1 .5-1.6 1.1 3.1a1.1 1.1 0 0 0 .9.8h.3c.3 0 .6 0 .8-.2l.3-.5.1-.2 1-3.4.8-2.4v-.1H21ZM26.8 8c-.4-.1-.8-.2-1-.4-.4-.3-.6-.6-.7-1h5.2V6a3.5 3.5 0 0 0-3.5-3.4c-2 0-3.6 1.6-3.6 3.5 0 2 1.6 3.6 3.6 3.6a3.5 3.5 0 0 0 3.4-2.3h-2a1.8 1.8 0 0 1-1.4.6Zm0-3.8c.4 0 .7.1 1 .3.4.2.6.5.7.9h-3.4c.1-.4.3-.7.6-.9.3-.2.7-.3 1-.3Z",fill:"#CFD4DD"},null,-1),_hoisted_20$a=[_hoisted_18$c,_hoisted_19$a],_sfc_main$2v=defineComponent({__name:"Logo",props:{type:{default:"basic"},size:{default:"medium"}},setup(u){return(f,d)=>f.size==="medium"?(openBlock(),createElementBlock("svg",_hoisted_1$28,[f.type==="basic"?(openBlock(),createElementBlock("g",_hoisted_2$1I,_hoisted_6$S)):createCommentVNode("",!0),f.type==="white"?(openBlock(),createElementBlock("g",_hoisted_7$J,_hoisted_10$q)):createCommentVNode("",!0),_hoisted_11$n])):f.size==="small"?(openBlock(),createElementBlock("svg",_hoisted_12$m,_hoisted_16$e)):f.size==="mini"?(openBlock(),createElementBlock("svg",_hoisted_17$c,_hoisted_20$a)):createCommentVNode("",!0)}}),_sfc_main$2u=defineComponent({__name:"LogoContainer",props:{type:{default:"basic"},size:{default:"medium"},border:{type:Boolean,default:!1},background:{default:"transparent"}},emits:["click:logo"],setup(u,{emit:f}){useCssVars(x=>({"3f052fa8":x.background}));const d=f,_=()=>d("click:logo");return(x,I)=>(openBlock(),createElementBlock("div",{class:normalizeClass(["fixed-logo",{border:x.border,[x.size]:!0}])},[createVNode(_sfc_main$2v,{class:normalizeClass(["logo",x.size]),type:x.type,size:x.size,onClick:I[0]||(I[0]=E=>_())},null,8,["class","type","size"])],2))}}),LogoContainer=_export_sfc$1(_sfc_main$2u,[["__scopeId","data-v-d3785c28"]]),_hoisted_1$26={key:0,class:"address-label-wrapper"},_hoisted_2$1G={key:1,class:"address-label-container"},_hoisted_3$1m={class:"left"},_sfc_main$2s=defineComponent({__name:"AddressLabel",props:{address:{default:""},column:{default:4},coloredEdge:{type:Boolean,default:!0},color:{default:void 0},gap:{default:"0 2px"},width:{default:100},minWidth:{default:100}},setup(u){useCssVars(T=>({"14ff844c":T.column,ac0d1cc0:T.gap,"7f728d03":A.value}));const f=u,d=computed(()=>f.address.split("").reduce((T,[D],O)=>{if(O===0)T.push(D);else if(O%4){const j=parseInt((O/4).toString());T[j]+=D}else{const j=parseInt((O/4).toString());T[j]=D}return T},[])),_=computed(()=>({color:f.coloredEdge?f.color:colors.currentThemeRef.value.code})),x=()=>h$1("span",{style:_.value},d.value[0]),I=()=>h$1("span",{style:_.value},d.value.at(-1)),E=computed(()=>d.value.slice(1,-1)),M=()=>h$1("span",{style:_.value},f.address.slice(-5)),S=computed(()=>f.address.slice(4,-5)),A=computed(()=>{const T=f.width-40;return T>f.minWidth?T+"px":f.minWidth+"px"});return(T,D)=>T.column?(openBlock(),createElementBlock("div",_hoisted_1$26,[createVNode(x),(openBlock(!0),createElementBlock(Fragment,null,renderList(E.value,(O,j)=>(openBlock(),createElementBlock("span",{key:O+j,class:"address"},toDisplayString$2(O),1))),128)),createVNode(I)])):(openBlock(),createElementBlock("div",_hoisted_2$1G,[createVNode(x),createBaseVNode("span",_hoisted_3$1m,toDisplayString$2(S.value),1),createVNode(M)]))}}),AddressLabel=_export_sfc$1(_sfc_main$2s,[["__scopeId","data-v-2ec61380"]]),_withScopeId$m=u=>(pushScopeId("data-v-cce1aeef"),u=u(),popScopeId(),u),_hoisted_1$25={class:"label-wrapper"},_hoisted_2$1F={key:0},_hoisted_3$1l=_withScopeId$m(()=>createBaseVNode("svg",{width:"17",height:"34",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[createBaseVNode("path",{d:"M1 30H.5v.5H1V30Zm15.35.35a.5.5 0 0 0 0-.7l-3.18-3.19a.5.5 0 1 0-.7.71L15.28 30l-2.83 2.83a.5.5 0 1 0 .71.7l3.18-3.18ZM.5 0v30h1V0h-1ZM1 30.5h15v-1H1v1Z",fill:"#CFD4DD"})],-1)),_hoisted_4$1a=[_hoisted_3$1l],_hoisted_5$10={class:"label"},_hoisted_6$Q={class:"title"},_hoisted_7$H={class:"description"},_hoisted_8$A={class:"address-wrapper"},_sfc_main$2r=defineComponent({__name:"AddressChunks",props:{title:{},description:{},address:{},isMobile:{type:Boolean},isChild:{type:Boolean}},setup(u){return(f,d)=>(openBlock(),createElementBlock("div",{class:normalizeClass(["address-chuncks-wrapper",f.isMobile?"mobile":""])},[createBaseVNode("div",_hoisted_1$25,[f.isChild&&!f.isMobile?(openBlock(),createElementBlock("div",_hoisted_2$1F,_hoisted_4$1a)):createCommentVNode("",!0),createBaseVNode("div",_hoisted_5$10,[createBaseVNode("span",_hoisted_6$Q,toDisplayString$2(f.title),1),createBaseVNode("span",_hoisted_7$H,toDisplayString$2(f.description),1)])]),createBaseVNode("div",_hoisted_8$A,toDisplayString$2(f.address),1)],2))}}),AddressChunks=_export_sfc$1(_sfc_main$2r,[["__scopeId","data-v-cce1aeef"]]),_hoisted_1$22={class:"title"},_hoisted_2$1D={key:0,class:"defaultTag"},_hoisted_3$1k={key:0,class:"check"},_sfc_main$2o=defineComponent({__name:"WalletOption",props:{label:{type:String,default:"Wallet name should be input"},default:{type:Boolean,default:!1},selected:{type:Boolean,default:!1},width:{type:[String,Number],default:"360px"},tagLabel:{type:String,default:"기본지갑"}},setup(u){useCssVars(_=>({dea59d4a:d.value.width}));const f=u,d=computed(()=>{let _=f.width;return typeof _=="number"&&(_=_+"px"),{width:_}});return(_,x)=>(openBlock(),createElementBlock("div",{class:"walletOptionWrapper",style:normalizeStyle(d.value)},[createBaseVNode("div",_hoisted_1$22,[createBaseVNode("span",null,toDisplayString$2(u.label),1),f.default?(openBlock(),createElementBlock("div",_hoisted_2$1D,toDisplayString$2(u.tagLabel),1)):createCommentVNode("",!0)]),u.selected?(openBlock(),createElementBlock("div",_hoisted_3$1k,[createVNode(unref(Element$1),{name:"Check",size:"medium",color:unref(colors).currentThemeRef.value.main},null,8,["color"])])):createCommentVNode("",!0)],4))}}),WalletOption=_export_sfc$1(_sfc_main$2o,[["__scopeId","data-v-2821e072"]]),_hoisted_1$1_={class:"progress-wrapper"},_hoisted_2$1A={class:"progess-container"},_sfc_main$2k=defineComponent({__name:"BarProgress",props:{current:{type:Number,default:1,validator:u=>u>0},max:{type:Number,default:1,validator:u=>u>0},color:{type:String,default:void 0}},setup(u){useCssVars(x=>({"4f54cab9":_.value,"5a32a718":d.value}));const f=u,d=computed(()=>f.color||colors.currentThemeRef.value.main),_=computed(()=>`repeat(${f.max}, 1fr)`);return(x,I)=>(openBlock(),createElementBlock("div",_hoisted_1$1_,[createBaseVNode("div",_hoisted_2$1A,[(openBlock(!0),createElementBlock(Fragment,null,renderList(u.max,(E,M)=>(openBlock(),createElementBlock("div",{key:M,class:normalizeClass(u.current>M+1?"already":u.current===M+1?"now":"")},null,2))),128))])]))}}),BarProgress=_export_sfc$1(_sfc_main$2k,[["__scopeId","data-v-a6860f8c"]]),_hoisted_1$1Y={class:"phraseWrapper"},_hoisted_2$1z={class:"picto"},_hoisted_3$1i={key:0,class:"connector"},_hoisted_4$19={class:"desc"},_sfc_main$2i=defineComponent({__name:"Phrase",props:{phrases:{default:()=>[{selected:!0,name:"Phrase 1"}]},onColor:{default:colors.currentThemeRef.value.main},offColor:{default:`rgba($color: ${colors.currentThemeRef.value.grey_111}, $alpha: 0.2);`}},setup(u){useCssVars(d=>({"5c111d68":d.offColor,"1f49f010":d.onColor}));const f=d=>d.selected?"selected":d.done?"done":"";return(d,_)=>(openBlock(),createElementBlock("div",_hoisted_1$1Y,[createBaseVNode("div",_hoisted_2$1z,[(openBlock(!0),createElementBlock(Fragment,null,renderList(d.phrases,(x,I)=>(openBlock(),createElementBlock("div",{key:x.name,class:"stage"},[createBaseVNode("div",{class:normalizeClass(["circle",f(x)])},[createBaseVNode("span",null,toDisplayString$2(I+1),1)],2),I+1!==d.phrases.length?(openBlock(),createElementBlock("div",_hoisted_3$1i)):createCommentVNode("",!0)]))),128))]),createBaseVNode("div",_hoisted_4$19,[(openBlock(!0),createElementBlock(Fragment,null,renderList(d.phrases,x=>(openBlock(),createElementBlock("div",{key:x.name,class:"namespace"},[createBaseVNode("span",{class:normalizeClass(f(x))},toDisplayString$2(x.name),3)]))),128))])]))}}),Phrase=_export_sfc$1(_sfc_main$2i,[["__scopeId","data-v-6b13eef6"]]),_withScopeId$l=u=>(pushScopeId("data-v-0299710e"),u=u(),popScopeId(),u),_hoisted_1$1U={key:0,class:"place-center erc-type"},_hoisted_2$1x={key:1,class:"place-center basic"},_hoisted_3$1h={key:2,class:"place-center testnet"},_hoisted_4$18={key:3,class:"place-center data"},_hoisted_5$$={key:4,class:"place-center lock"},_hoisted_6$P={key:5,class:"place-center status"},_hoisted_7$G={key:6,class:"place-center required"},_hoisted_8$z={key:7,class:"place-center icon"},_hoisted_9$r=_withScopeId$l(()=>createBaseVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"11",height:"11",viewBox:"0 0 11 11",fill:"none"},[createBaseVNode("circle",{cx:"5.5",cy:"5.5",r:"4.5",fill:"white",stroke:"#F5222D","stroke-width":"2"}),createBaseVNode("line",{x1:"2.25107",y1:"2.40811",x2:"8.92948",y2:"8.61464",stroke:"#F5222D","stroke-width":"2"})],-1)),_hoisted_10$o={key:8,class:"place-center pending"},_hoisted_11$l=_withScopeId$l(()=>createBaseVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},[createBaseVNode("circle",{opacity:"0.2",cx:"6.00223",cy:"6.00028",r:"5.14286",fill:"#6440DD"}),createBaseVNode("circle",{cx:"5.99944",cy:"5.99944",r:"1.71429",fill:"#6440DD"})],-1)),_hoisted_12$j={key:9,class:"place-center manager"},_hoisted_13$h={key:0,xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",viewBox:"0 0 10 10",fill:"none"},_hoisted_14$e=_withScopeId$l(()=>createBaseVNode("path",{d:"M0.939754 8.4513C0.798436 8.4513 0.678859 8.35429 0.659833 8.2242L0.00271432 3.73114C-0.028135 3.52021 0.209951 3.36471 0.413164 3.46307L2.62034 4.53138C2.75322 4.5957 2.91704 4.55245 2.99365 4.43283L4.75722 1.67904C4.86674 1.50803 5.13326 1.50803 5.24277 1.67904L7.00635 4.43283C7.08296 4.55245 7.24678 4.5957 7.37966 4.53138L9.58684 3.46307C9.79005 3.36471 10.0281 3.52021 9.99729 3.73114L9.34017 8.2242C9.32114 8.35429 9.20156 8.4513 9.06024 8.4513H0.939754Z",fill:"#6440DD"},null,-1)),_hoisted_15$e=[_hoisted_14$e],_sfc_main$2e=defineComponent({__name:"LabelChip",props:{name:{},property:{},bgColor:{},borderColor:{},isDefaultIconDisabled:{type:Boolean},borderRadius:{},color:{}},setup(u){return useCssVars(f=>({"05d8f7d2":f.bgColor,75955010:f.borderColor,"55e46185":f.borderRadius,"7835c79c":f.color})),(f,d)=>f.property==="ercType"?(openBlock(),createElementBlock("div",_hoisted_1$1U,toDisplayString$2(f.name),1)):f.property==="basic"?(openBlock(),createElementBlock("div",_hoisted_2$1x,toDisplayString$2(f.name),1)):f.property==="testnet"?(openBlock(),createElementBlock("div",_hoisted_3$1h,toDisplayString$2(f.name),1)):f.property==="data"?(openBlock(),createElementBlock("div",_hoisted_4$18,toDisplayString$2(f.name),1)):f.property==="lock"?(openBlock(),createElementBlock("div",_hoisted_5$$,toDisplayString$2(f.name),1)):f.property==="status"?(openBlock(),createElementBlock("div",_hoisted_6$P,toDisplayString$2(f.name),1)):f.property==="required"?(openBlock(),createElementBlock("div",_hoisted_7$G,toDisplayString$2(f.name),1)):f.property==="icon"?(openBlock(),createElementBlock("div",_hoisted_8$z,[createBaseVNode("span",null,toDisplayString$2(f.name),1),_hoisted_9$r])):f.property==="pending"?(openBlock(),createElementBlock("div",_hoisted_10$o,[_hoisted_11$l,createBaseVNode("span",null,toDisplayString$2(f.name),1)])):f.property==="manager"?(openBlock(),createElementBlock("div",_hoisted_12$j,[f.isDefaultIconDisabled?createCommentVNode("",!0):(openBlock(),createElementBlock("svg",_hoisted_13$h,_hoisted_15$e)),createBaseVNode("span",null,toDisplayString$2(f.name),1)])):(openBlock(),createElementBlock("div",{key:10,class:normalizeClass(["custom-chip-wrapper place-center",f.name?"name":""])},[f.name?(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString$2(f.name),1)],64)):renderSlot(f.$slots,"default",{key:1},void 0,!0)],2))}}),LabelChip=_export_sfc$1(_sfc_main$2e,[["__scopeId","data-v-0299710e"]]),MAX_LENGTH_WS_NAME=20,MAX_LENGTH_WS_NAME_ETC=7,MAX_LENGTH_APP_NAME=20,MAX_LENGTH_APP_NAME_ETC=10,MAX_LENGTH_APP_DESC=1e3,REG_EXP_NAME=/^[a-zA-Z0-9!@#$%^&*()_+-=,.?":{}|<>[\]\s]+$/,REG_EXP_URL_LINK=/^((https?|ftp|ssh):\/\/)?(www\.)?([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+\.[a-zA-Z]{2,}(:\d{1,5})?(\/[^\s?#]*)?(\?[^#\s]*)?(#.*)?$|^http:\/\/localhost(:\d{1,5})?(\/[^\s?#]*)?(\?[^#\s]*)?(#.*)?$/,REG_EXP_ANDROID_PACKAGE=/^[a-zA-Z_][a-zA-Z0-9_]*(\.[a-zA-Z_][a-zA-Z0-9_]*)*$/,REG_EXP_MARKET_URL_GOOGLE=/^https:\/\/play\.google\.com\/store\/apps\/details\?id=[\w.]+(?:&.*)?$/i,REG_EXP_MARKET_URL_SAMSUNG=/^https:\/\/galaxy\.store\/apps\/[a-zA-Z0-9./-]+$/,REG_EXP_IOS_BUNDLE_ID=/^[a-zA-Z0-9]+(\.[a-zA-Z0-9]+)*$/,REG_EXP_IOS_APP_STORE_ID=/^[0-9]+$|^([a-zA-Z]+-?[a-zA-Z]+)$/,REG_EXP_IOS_APP_STORE_URL=/^https:\/\/apps\.apple\.com\/([a-zA-Z]{2}\/)?app\/[a-zA-Z0-9-]+\/id\d+(\?.*)?$/,MIN_LENGTH_PASSWORD=8,REG_EXP_EMAIL=/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/,REG_EXP_USER_NAME=/[!@#$%^&*()_+{}[\]:;<>,.?~\\=|]+/,REG_EXP_PASSWORD=/^(?=.*[a-z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/i,DELETE_WS_WITHIN_DAYS="7",ContactEmail="wepin.contact@iotrust.kr",MAXIMUM_APP=1,MAXIMUM_WORKSPACE=1,SDK_GITHUB_LINK={javascript:"https://github.com/WepinWallet/wepin-web-sdk-v1",reactNative:"https://github.com/WepinWallet/wepin-react-native-sdk",flutter:"https://github.com/WepinWallet/wepin-flutter-sdk",android:"https://github.com/WepinWallet/wepin-android-sdk",unity:"https://github.com/WepinWallet/wepin-unity-sdk",ios:"https://github.com/WepinWallet/wepin-ios-sdk"},bigElements=[{name:"ArrowLeft",color:colors.currentThemeRef.value.grey_999},{name:"Close",color:colors.currentThemeRef.value.grey_999},{name:"Hamburger",color:colors.currentThemeRef.value.grey_111},{name:"DefaultImg",color:colors.currentThemeRef.value.grey_fff},{name:"ArrowExpand",color:colors.currentThemeRef.value.grey_111},{name:"ArrowRight",color:colors.currentThemeRef.value.grey_999},{name:"Plus",color:colors.currentThemeRef.value.main}].map(u=>(u.size="big",u)),mediumElements=[{name:"Check",color:colors.currentThemeRef.value.grey_999},{name:"Plus",color:colors.currentThemeRef.value.grey_111},{name:"Right",color:colors.currentThemeRef.value.grey_999},{name:"Left",color:colors.currentThemeRef.value.grey_999},{name:"Download",color:colors.currentThemeRef.value.grey_fff,backGround:colors.currentThemeRef.value.grey_999},{name:"Send",color:colors.currentThemeRef.value.grey_fff,backGround:colors.currentThemeRef.value.grey_999},{name:"Search",color:colors.currentThemeRef.value.grey_111},{name:"Filter",color:colors.currentThemeRef.value.grey_111},{name:"Down",color:colors.currentThemeRef.value.main},{name:"Up",color:colors.currentThemeRef.value.main},{name:"Change",color:colors.currentThemeRef.value.grey_111},{name:"Link",color:colors.currentThemeRef.value.grey_111},{name:"Help",color:colors.currentThemeRef.value.main},{name:"Close",color:colors.currentThemeRef.value.grey_111},{name:"VerticalDots",color:colors.currentThemeRef.value.grey_999},{name:"Coin",color:colors.currentThemeRef.value.grey_111},{name:"Hamburger",color:colors.currentThemeRef.value.grey_999},{name:"Gear",color:colors.currentThemeRef.value.grey_111},{name:"GearFill",color:colors.currentThemeRef.value.grey_fff,backGround:"main"},{name:"CompareArrows",color:colors.currentThemeRef.value.grey_999},{name:"Laptop",color:colors.currentThemeRef.value.grey_666},{name:"Sort",color:colors.currentThemeRef.value.grey_111},{name:"Send",color:colors.currentThemeRef.value.grey_111},{name:"FormatLineSpacing",color:colors.currentThemeRef.value.grey_111},{name:"History",color:colors.currentThemeRef.value.grey_666},{name:"Noti",color:colors.currentThemeRef.value.grey_666},{name:"Profile",color:colors.currentThemeRef.value.grey_666},{name:"Delete",color:colors.currentThemeRef.value.grey_999},{name:"DefaultIcon",color:colors.currentThemeRef.value.line_01},{name:"Star",color:colors.currentThemeRef.value.grey_bbb},{name:"Bullet",color:colors.currentThemeRef.value.grey_999},{name:"Security",color:colors.currentThemeRef.value.grey_999},{name:"InstallApp",color:colors.currentThemeRef.value.grey_666},{name:"QrcodeScanner",color:colors.currentThemeRef.value.grey_666},{name:"InputCode",color:colors.currentThemeRef.value.grey_666},{name:"GridView",color:colors.currentThemeRef.value.grey_111},{name:"Bridge",color:colors.currentThemeRef.value.grey_111},{name:"CircleCheck",color:colors.currentThemeRef.value.grey_bbb},{name:"Invite",color:colors.currentThemeRef.value.main},{name:"PlatformIos",color:colors.currentThemeRef.value.grey_999},{name:"PlatformWeb",color:colors.currentThemeRef.value.grey_999},{name:"PlatformAnd",color:colors.currentThemeRef.value.grey_999},{name:"Copy",color:colors.currentThemeRef.value.grey_999},{name:"DefaultImg",color:colors.currentThemeRef.value.grey_fff},{name:"ArrowLeft",color:colors.currentThemeRef.value.grey_333},{name:"Backspace",color:colors.currentThemeRef.value.grey_666},{name:"VideoPlay",color:colors.currentThemeRef.value.main},{name:"VideoPause",color:colors.currentThemeRef.value.main},{name:"Refresh",color:colors.currentThemeRef.value.grey_666},{name:"Sign",color:colors.currentThemeRef.value.grey_333},{name:"Info",color:colors.currentThemeRef.value.grey_999},{name:"Minus",color:colors.currentThemeRef.value.grey_111},{name:"Bullet",color:colors.currentThemeRef.value.grey_999},{name:"Play",color:colors.currentThemeRef.value.main},{name:"Pause",color:colors.currentThemeRef.value.main},{name:"Expand",color:colors.currentThemeRef.value.grey_111},{name:"Shrink",color:colors.currentThemeRef.value.grey_111},{name:"Compass",color:colors.currentThemeRef.value.grey_fff,backGround:colors.currentThemeRef.value.main},{name:"BlankCoin",color:colors.currentThemeRef.value.grey_fff,backGround:colors.currentThemeRef.value.main},{name:"Jewel",color:colors.currentThemeRef.value.grey_fff,backGround:colors.currentThemeRef.value.main},{name:"Wallet",color:colors.currentThemeRef.value.grey_fff,backGround:colors.currentThemeRef.value.main},{name:"Dashboard",color:colors.currentThemeRef.value.grey_fff,backGround:colors.currentThemeRef.value.main},{name:"PeoplePlus",color:colors.currentThemeRef.value.grey_111},{name:"Present",color:colors.currentThemeRef.value.main},{name:"AirDrop",color:colors.currentThemeRef.value.grey_fff,backGround:colors.currentThemeRef.value.main},{name:"People",color:colors.currentThemeRef.value.line_02},{name:"CoinFill",color:colors.currentThemeRef.value.line_02},{name:"Reveal",color:colors.currentThemeRef.value.grey_999},{name:"Hide",color:colors.currentThemeRef.value.grey_999}].map(u=>(u.size="medium",u)),smallElements=[{name:"Info",color:colors.currentThemeRef.value.grey_ccc},{name:"Notice",color:colors.currentThemeRef.value.notice},{name:"Info",color:colors.currentThemeRef.value.main},{name:"Copy",color:colors.currentThemeRef.value.grey_111},{name:"Reveal",color:colors.currentThemeRef.value.grey_999},{name:"Hide",color:colors.currentThemeRef.value.grey_999},{name:"Help",color:colors.currentThemeRef.value.main},{name:"HelpSmall",color:colors.currentThemeRef.value.grey_999},{name:"Down",color:colors.currentThemeRef.value.grey_999},{name:"Up",color:colors.currentThemeRef.value.grey_999},{name:"Right",color:colors.currentThemeRef.value.grey_999},{name:"Security",color:colors.currentThemeRef.value.grey_999},{name:"FillDown",color:colors.currentThemeRef.value.grey_999},{name:"FillUp",color:colors.currentThemeRef.value.grey_999},{name:"Close",color:colors.currentThemeRef.value.grey_111},{name:"Edit",color:colors.currentThemeRef.value.grey_111},{name:"Gear",color:colors.currentThemeRef.value.grey_111},{name:"Cancel",color:colors.currentThemeRef.value.grey_ccc},{name:"VerticalDots",color:colors.currentThemeRef.value.grey_999},{name:"Lock",color:colors.currentThemeRef.value.grey_bbb},{name:"Camera",color:colors.currentThemeRef.value.grey_111},{name:"Change",color:colors.currentThemeRef.value.grey_111},{name:"Filter",color:colors.currentThemeRef.value.grey_111},{name:"Hamburger",color:colors.currentThemeRef.value.grey_999},{name:"Delete",color:colors.currentThemeRef.value.grey_999},{name:"Link",color:colors.currentThemeRef.value.grey_999},{name:"Qrcode",color:colors.currentThemeRef.value.grey_111},{name:"Print",color:colors.currentThemeRef.value.grey_111},{name:"Download",color:colors.currentThemeRef.value.grey_ccc},{name:"Setting",color:colors.currentThemeRef.value.grey_111},{name:"Plus",color:colors.currentThemeRef.value.grey_111},{name:"Guide",color:colors.currentThemeRef.value.grey_111},{name:"Paste",color:colors.currentThemeRef.value.grey_111},{name:"Check",color:colors.currentThemeRef.value.grey_111},{name:"Language",color:colors.currentThemeRef.value.grey_111},{name:"ManagerB",color:colors.currentThemeRef.value.grey_111},{name:"Undo",color:colors.currentThemeRef.value.grey_111},{name:"RadioIconTrue",color:colors.currentThemeRef.value.grey_111},{name:"RadioIconFalse",color:colors.currentThemeRef.value.grey_111},{name:"PointRight",color:colors.currentThemeRef.value.grey_111},{name:"PointLeft",color:colors.currentThemeRef.value.grey_111},{name:"OutgoingMail",color:colors.currentThemeRef.value.grey_999},{name:"Loading",color:colors.currentThemeRef.value.grey_999},{name:"PlatformIos",color:colors.currentThemeRef.value.grey_999},{name:"PlatformWeb",color:colors.currentThemeRef.value.grey_999},{name:"PlatformAnd",color:colors.currentThemeRef.value.grey_999},{name:"Hyperlink",color:colors.currentThemeRef.value.grey_999},{name:"Stats",color:colors.currentThemeRef.value.grey_999},{name:"BasicInfo",color:colors.currentThemeRef.value.grey_999},{name:"Platform",color:colors.currentThemeRef.value.grey_999},{name:"Purse",color:colors.currentThemeRef.value.grey_999},{name:"Design",color:colors.currentThemeRef.value.grey_999},{name:"Announce",color:colors.currentThemeRef.value.grey_999},{name:"Manager",color:colors.currentThemeRef.value.grey_999},{name:"Policy",color:colors.currentThemeRef.value.grey_999},{name:"Home",color:colors.currentThemeRef.value.grey_999},{name:"LockFill",color:colors.currentThemeRef.value.grey_bbb},{name:"Bell",color:colors.currentThemeRef.value.grey_666},{name:"SmilePlus",color:colors.currentThemeRef.value.grey_fff,backGround:colors.currentThemeRef.value.main},{name:"Play",color:colors.currentThemeRef.value.main},{name:"Pause",color:colors.currentThemeRef.value.main},{name:"CallMade",color:colors.currentThemeRef.value.main},{name:"CaretUp",color:colors.currentThemeRef.value.notice},{name:"CaretDown",color:colors.currentThemeRef.value.positive},{name:"Code",color:colors.currentThemeRef.value.notice},{name:"Num1",color:colors.currentThemeRef.value.grey_111},{name:"Num2",color:colors.currentThemeRef.value.grey_111},{name:"Share",color:colors.currentThemeRef.value.grey_111}].map(u=>(u.size="small",u)),customElements=[{name:"Ellipse",color:colors.currentThemeRef.value.notice},{name:"Ellipse",color:colors.currentThemeRef.value.main},{name:"Btn48ArrowBack",color:colors.currentThemeRef.value.notice},{name:"Btn48ArrowForward",color:colors.currentThemeRef.value.grey_111},{name:"BadgeManager",color:colors.currentThemeRef.value.main},{name:"DefaultImg",color:colors.currentThemeRef.value.main},{name:"APIFile",color:colors.currentThemeRef.value.grey_666}].map(u=>(u.size="custom",u)),ElementList=Object.freeze(Object.defineProperty({__proto__:null,bigElements,customElements,mediumElements,smallElements},Symbol.toStringTag,{value:"Module"})),wepinDefaultBreakPoints={mobile:0,tablet:768,desktop:1280},workspaceDefaultBreakPoints={mobile:0,tablet:1120,desktop:1120},supportLanguages=[{name:"한국어",symbol:"ko"},{name:"English",symbol:"en"}],workspaceSideBarMenu=[{name:"위젯 현황",menus:[{icon:"Home",title:"대시보드",item:""},{icon:"Stats",title:"사용 통계",selected:!0,item:""}]},{name:"위젯 관리",menus:[{icon:"Purse",title:"네트워크",item:""},{icon:"Platform",title:"개발 도구",item:""},{icon:"Design",title:"디자인",item:""},{icon:"BasicInfo",title:"기본 정보",item:""}]}],marketPlaceList=["wws_component.platform_add.market_google","wws_component.platform_add.market_samsung"],FlutterLogo="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMCAyMSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3QgeT0iMC41IiB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHJ4PSI0IiBmaWxsPSIjMTExMTExIi8+CjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMF81Njk0XzEwMTE5NSkiPgo8cGF0aCBkPSJNMTAuNTE2NCA0LjVMNSAxMC4wMTY0TDYuNjk5ODkgMTEuNzE2MkwxMy45MTYxIDQuNUgxMC41MTY0WiIgZmlsbD0iIzVFQzhGOCIvPgo8cGF0aCBkPSJNMTAuOTczMyAxMi41ODY5TDEzLjg5NjIgOS42NjQwNkgxMC40OTY1TDkuMjczNDQgMTAuODg3MUwxMC45NzMzIDEyLjU4NjlaIiBmaWxsPSIjNUVDOEY4Ii8+CjxwYXRoIGQ9Ik0xMC45NzU2IDEyLjU4NTlMMTQuMDAzOCAxNS42MTQzTDEwLjk3NTYgMTIuNTg1OVoiIGZpbGw9ImJsYWNrIi8+CjxwYXRoIGQ9Ik05LjI3MDExIDEwLjg4ODdMNy41NzAzMSAxMi41ODg1TDkuMjcwMTEgMTQuMjg4NEwxMC45NyAxMi41ODg1TDkuMjcwMTEgMTAuODg4N1oiIGZpbGw9IiMyRkI4RjYiLz4KPHBhdGggZD0iTTkuMjczNDQgMTQuMjg1OEwxMC42MDE5IDE1LjYxNDNIMTQuMDAxNkwxMC45NzMzIDEyLjU4NTlMOS4yNzM0NCAxNC4yODU4WiIgZmlsbD0iIzA0NTk5QyIvPgo8L2c+CjxkZWZzPgo8Y2xpcFBhdGggaWQ9ImNsaXAwXzU2OTRfMTAxMTk1Ij4KPHJlY3Qgd2lkdGg9IjkiIGhlaWdodD0iMTEuMTE2NyIgZmlsbD0id2hpdGUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDUgNC41KSIvPgo8L2NsaXBQYXRoPgo8L2RlZnM+Cjwvc3ZnPgo=",JavaLogo="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjIiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMiAyMSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3QgeD0iMSIgeT0iMC41IiB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHJ4PSI0IiBmaWxsPSJ3aGl0ZSIvPgo8cmVjdCB4PSIxIiB5PSIwLjUiIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgcng9IjQiIHN0cm9rZT0iI0U3RTlFRiIvPgo8ZyBjbGlwLXBhdGg9InVybCgjY2xpcDBfNjI0MF81NDg2OCkiPgo8cGF0aCBkPSJNMTIuNzUwOSA0LjI3MDQ1QzEyLjc1NDYgNC44Mjk5NCAxMi41MzE0IDUuMzAyODYgMTIuMTQ0NSA1LjY4MzQyQzExLjczMjIgNi4wODg3OCAxMS4yODM2IDYuNDU3MTkgMTAuODUxOCA2Ljg0MTk3QzEwLjcxNzggNi45NjE3OSAxMC41ODU4IDcuMDg0MjQgMTAuNDUxMiA3LjIwNDA1QzEwLjE2MDkgNy40NjIxNiAxMC4wODcgNy43ODM2IDEwLjE0NzcgOC4xNTgzNEMxMC4yNTQ5IDguODEzMzYgMTAuNDc2IDkuNDI5MzIgMTAuNzU0MiAxMC4wMjc5QzEwLjc3NjQgMTAuMDc1NCAxMC44MTA3IDEwLjEyMTggMTAuODE3IDEwLjE3MTRDMTAuODIzMyAxMC4yMTc0IDEwLjgxNTQgMTAuMjg3NiAxMC43ODU5IDEwLjMxMDJDMTAuNzU3NCAxMC4zMzE5IDEwLjY3NzcgMTAuMzI1NiAxMC42NDY1IDEwLjI5OTdDMTAuMDM5NSA5Ljc5NTYzIDkuNTAyMjIgOS4yMzUwOSA5LjIxNjY3IDguNDc5MjZDOS4wMDUwMiA3LjkxOTI0IDkuMDkyMTEgNy4zOTgyOSA5LjQyMTQ3IDYuOTAzNzNDOS43MTU5OSA2LjQ2MTk0IDEwLjA5NzYgNi4xMTE0NyAxMC41MTgzIDUuNzk2OUMxMC44ODM1IDUuNTI0MDIgMTEuMjU2MiA1LjI2MDExIDExLjYxMDMgNC45NzI5OEMxMS45ODgyIDQuNjY3MzcgMTIuMTI1NSA0LjIyOTgxIDEyLjE4NTYgMy43NjkwM0MxMi4yMTE1IDMuNTcxMSAxMi4xODQ2IDMuMzY2ODMgMTIuMTkyNSAzLjE2NjI2QzEyLjE5NDYgMy4xMTAzMSAxMi4yMzY4IDMuMDU1NDIgMTIuMjYwNiAzQzEyLjMxMTggMy4wMzIyIDEyLjM4MiAzLjA1Mjc4IDEyLjQxMDUgMy4wOTkyM0MxMi42MzAxIDMuNDU3NjIgMTIuNzQ4MyAzLjg0ODIgMTIuNzUwNCA0LjI3MDk4TDEyLjc1MDkgNC4yNzA0NVoiIGZpbGw9IiNGMjkwMTEiLz4KPHBhdGggZD0iTTcuMDA2MTYgMTQuODI3OUM3LjI3Nzk5IDE0Ljg4ODYgNy41NDc3IDE0Ljk2NDYgNy44MjIxNyAxNS4wMDg1QzkuMTY4NjIgMTUuMjIyMiAxMC41MjI1IDE1LjI0MjggMTEuODggMTUuMTQ3M0MxMi43Nzg0IDE1LjA4NDUgMTMuNjcwNCAxNC45Nzg0IDE0LjU0MzQgMTQuNzQ2MUMxNC42NjE2IDE0LjcxNDUgMTQuNzc2MSAxNC42NzAxIDE0Ljg5MDEgMTQuNjI1OEMxNC45Njg4IDE0LjU5NTIgMTUuMDA2OCAxNC41NDQ1IDE0Ljk3MzUgMTQuNDQ5NUMxNC45NjAzIDE0LjQxMTUgMTQuOTc3MiAxNC4zMzU1IDE1LjAwNjMgMTQuMzE3QzE1LjAzOSAxNC4yOTU5IDE1LjExMDggMTQuMzA0NCAxNS4xNDc3IDE0LjMyNzZDMTUuMzc0MiAxNC40NzI3IDE1LjQwNzkgMTQuNzczMSAxNS4xOTUyIDE0Ljk0M0MxNS4wNDQzIDE1LjA2MzkgMTQuODYyMiAxNS4xNTUyIDE0LjY4MTEgMTUuMjI1OUMxNC4wNTE0IDE1LjQ3MDMgMTMuMzkwMSAxNS41ODQ4IDEyLjcyMzUgMTUuNjcwM0MxMS40NzgzIDE1LjgzMDggMTAuMjI4IDE1Ljg0NTYgOC45NzY1IDE1LjgwMDdDOC4yMzEyMiAxNS43NzQzIDcuNDg1NDIgMTUuNzM0MiA2Ljc1OTE1IDE1LjUzODlDNi41NDIyMSAxNS40ODAzIDYuMzMyMTQgMTUuNDAzOCA2LjE2Mzc3IDE1LjI0NDlDNS45MTA5NSAxNS4wMDU4IDUuOTU1ODEgMTQuNjk1NSA2LjI2NDA1IDE0LjUzNDVDNi41OTAyNCAxNC4zNjQgNi45NDgxIDE0LjMyMDIgNy4zMDQ5MSAxNC4yNzY0QzcuNTM5NzkgMTQuMjQ3MyA3Ljc3NzMgMTQuMjM2OCA4LjAxMzI0IDE0LjIxODNDOC4wODg3MSAxNC4yMTI1IDguMTYzNjYgMTQuMjE5NCA4LjE3NDIyIDE0LjMxMDdDOC4xODQ3OCAxNC4zOTk0IDguMTE2MTYgMTQuNDIyNiA4LjA0MTc0IDE0LjQ0MjFDNy43NTgzIDE0LjUxNjUgNy40NzUzOSAxNC41OTQxIDcuMTkzNTQgMTQuNjc1OUM3LjEyODYyIDE0LjY5NDkgNy4wNzAwMyAxNC43MzYxIDcuMDA4MjcgMTQuNzY2N0w3LjAwNTY0IDE0LjgyNzRMNy4wMDYxNiAxNC44Mjc5WiIgZmlsbD0iIzAwNzY5NSIvPgo8cGF0aCBkPSJNOC4yNDY1OCAxMC45MzQ3QzguNTAxNTIgMTAuOTY0MyA4Ljc1NTkzIDExLjAxNjUgOS4wMTA4NiAxMS4wMTk3QzkuODMxNjEgMTEuMDMwMyAxMC42NTM0IDExLjA0NzcgMTEuNDcyNiAxMS4wMTM0QzEyLjA4OTEgMTAuOTg4IDEyLjcwMjQgMTAuODg4MyAxMy4zMTYzIDEwLjgxOTFDMTMuNDAyOCAxMC44MDkxIDEzLjQ4NzMgMTAuNzcyMiAxMy41NzMzIDEwLjc2ODVDMTMuNjI1IDEwLjc2NjQgMTMuNjc3OCAxMC44MDQ0IDEzLjczMDYgMTAuODIzOUMxMy43MDc5IDEwLjg3NTEgMTMuNjk4OSAxMC45NTMyIDEzLjY1OTkgMTAuOTczOEMxMy4zOTgxIDExLjExNDIgMTMuMTM5NCAxMS4yNjg4IDEyLjg2MTggMTEuMzcwN0MxMS44NjU4IDExLjczNDkgMTAuODI1IDExLjgwNDYgOS43NzU2NyAxMS43OTgyQzkuMTExNjcgMTEuNzk0NSA4LjQ0OTI2IDExLjc2OTIgNy44MDYzOCAxMS41ODRDNy42MzE2OCAxMS41MzM4IDcuNDU5MDggMTEuNDU2NyA3LjMwNDQzIDExLjM2MTdDNi45ODM1MiAxMS4xNjQ5IDYuOTk0MDggMTAuODAxNyA3LjMxODE1IDEwLjYxMjJDNy42MDQ3NiAxMC40NDQ0IDcuOTI4MzEgMTAuMzkxMSA4LjI1MDI4IDEwLjM1NTJDOC41ODk2NiAxMC4zMTcyIDguOTMyNzQgMTAuMzA4NyA5LjI3NDI0IDEwLjI4ODJDOS4zNDgxMyAxMC4yODM5IDkuNDI0MTQgMTAuMjg4MiA5LjQzMzY0IDEwLjM4MjZDOS40NDI2MSAxMC40NzI5IDkuMzcyOTQgMTAuNDkzIDkuMzAwNjMgMTAuNTE0NkM4Ljk5OTI1IDEwLjYwNTQgOC42OTgzOSAxMC42OTkzIDguMzk5MTIgMTAuNzk3QzguMzQyNjUgMTAuODE1NSA4LjI5MzU2IDEwLjg1NCA4LjI0MDc4IDEwLjg4MzVDOC4yNDIzNiAxMC45MDEgOC4yNDQ0NyAxMC45MTc4IDguMjQ2MDYgMTAuOTM1M0w4LjI0NjU4IDEwLjkzNDdaIiBmaWxsPSIjMDA3Njk1Ii8+CjxwYXRoIGQ9Ik0xMS40NjA5IDEwLjcyMDNDMTEuNDgxNSAxMC42Njk2IDExLjUwMTEgMTAuNjMwNiAxMS41MTMyIDEwLjU4OTRDMTEuNTY4MSAxMC40MDEgMTEuNjI5MyAxMC4yMTMxIDExLjY3MjEgMTAuMDIyQzExLjcwNTMgOS44NzI2MyAxMS42NDY3IDkuNzQwNjggMTEuNTU1NCA5LjYxODc1QzExLjQwNTUgOS40MTkyNCAxMS4yNDkzIDkuMjIyMzYgMTEuMTIxNiA5LjAwODZDMTAuOTE2MiA4LjY2NDQ2IDEwLjg0MTMgOC4yODA3NCAxMC44Njg3IDcuODgzMjlDMTAuODkwOSA3LjU2NTAyIDExLjA3NTEgNy4zMjAxMSAxMS4yODgzIDcuMDk5NDlDMTEuNjc1MiA2LjY5OTkzIDEyLjE0ODIgNi40MjI4MyAxMi42MzY0IDYuMTcxMDZDMTIuODgxMyA2LjA0NDM4IDEzLjEzNzMgNS45Mzk4OCAxMy4zODg1IDUuODI1ODdDMTMuNDU4MiA1Ljc5NDIgMTMuNTMzMSA1Ljc2MTQ3IDEzLjU4MzggNS44NTEyQzEzLjYzNSA1Ljk0MTk5IDEzLjU2MDEgNS45ODQyMSAxMy41MDQxIDYuMDMzM0MxMy4wNzEzIDYuNDE3MDIgMTIuNjM1OSA2Ljc5NzU4IDEyLjIwOTkgNy4xODkyMkMxMi4xMTIzIDcuMjc4OTQgMTIuMDQxIDcuNDAxOTMgMTEuOTc0NSA3LjUxOTFDMTEuODM0NiA3Ljc2NzE3IDExLjg1NTIgOC4wMTQ3MiAxMi4wMDYyIDguMjUzMjlDMTIuMDk1NCA4LjM5NDIyIDEyLjE4OTMgOC41MzE5OCAxMi4yNzQzIDguNjc1MDJDMTIuNjQxMSA5LjI5NjI2IDEyLjYwMSA5LjgwNDAyIDEyLjEyODEgMTAuMzUxNEMxMS45ODg4IDEwLjUxMjkgMTEuODIyIDEwLjY1MTcgMTEuNjYwNSAxMC43OTI2QzExLjYyOTMgMTAuODIwMSAxMS41NjI4IDEwLjgyMTEgMTEuNTE3NCAxMC44MTExQzExLjQ5MjYgMTAuODA1OCAxMS40Nzg0IDEwLjc1MiAxMS40NTk5IDEwLjcyMDNIMTEuNDYwOVoiIGZpbGw9IiNGMjkwMTEiLz4KPHBhdGggZD0iTTkuMjE3NzUgMTMuNTQwNkM5LjUzMzM4IDEzLjU4MTcgOS44NDg0OSAxMy42MjYxIDEwLjE2NDEgMTMuNjY0MUMxMC44NzE0IDEzLjc0OTEgMTEuNTYyMyAxMy42MjAzIDEyLjI1NDMgMTMuNDk4OUMxMi4zMTY2IDEzLjQ4NzggMTIuMzk1NyAxMy40OTk0IDEyLjQ1MDYgMTMuNTNDMTIuNjQ5NiAxMy42NDA5IDEyLjg0MzggMTMuNzYxMiAxMy4wMzQ5IDEzLjg4NTJDMTMuMDgwMyAxMy45MTQ4IDEzLjEzNjMgMTMuOTc2NiAxMy4xMzMxIDE0LjAxOThDMTMuMTI5OSAxNC4wNjI2IDEzLjA2NTUgMTQuMTE3IDEzLjAxNjQgMTQuMTM4MUMxMi41NTMgMTQuMzMzOSAxMi4wNjY0IDE0LjQ0NTggMTEuNTY4MSAxNC41MDIzQzEwLjc2ODUgMTQuNTkzIDkuOTc0MTEgMTQuNTUyNCA5LjE4ODcyIDE0LjM3NjZDOC45NjE3NiAxNC4zMjYgOC43MzkwMiAxNC4yNTM3IDguNTYwNjIgMTQuMDkyN0M4LjMwMTk5IDEzLjg1OTQgOC4zNDg0NCAxMy41MjA1IDguNjY2NzEgMTMuMzc4NUM4Ljc5MjMzIDEzLjMyMjYgOC45MzM3OSAxMy4yOTY3IDkuMDcwNDkgMTMuMjc0QzkuMTI2OTcgMTMuMjY0NSA5LjIxMzUzIDEzLjI4MTkgOS4yNDQ2NyAxMy4zMjA1QzkuMjcyMTIgMTMuMzU0MyA5LjI0MDk3IDEzLjQzNSA5LjIzNTE3IDEzLjQ5NTJDOS4yMjkzNiAxMy41MSA5LjIyMzU2IDEzLjUyNDcgOS4yMTc3NSAxMy41NDAxVjEzLjU0MDZaIiBmaWxsPSIjMDA3Njk1Ii8+CjxwYXRoIGQ9Ik04Ljc0MDA3IDEyLjIyNTVDOC45MDEwNiAxMi4yNTc3IDkuMDYwNDYgMTIuMzAyNSA5LjIyMzAyIDEyLjMxOTlDMTAuMDQzMyAxMi40MDg2IDEwLjg2MTkgMTIuMzg3NSAxMS42Nzc0IDEyLjI2MTRDMTEuOTg0NiAxMi4yMTM4IDEyLjI4OTYgMTIuMTUxIDEyLjU5NDcgMTIuMDg4OEMxMi42ODc2IDEyLjA2OTggMTIuNzYyNiAxMi4wODAzIDEyLjgzOTYgMTIuMTM4OUMxMi45NzU4IDEyLjI0MjMgMTMuMTIyIDEyLjMzMjYgMTMuMjU3MSAxMi40MzcxQzEzLjMwMDQgMTIuNDcwNCAxMy4zNTA1IDEyLjUzNTggMTMuMzQ0NyAxMi41NzkxQzEzLjMzODkgMTIuNjE5NyAxMy4yNjc3IDEyLjY3MDkgMTMuMjE3NSAxMi42ODJDMTIuMTQ1IDEyLjkxOSAxMS4wNjcyIDEzLjEyMjIgOS45NjE5NyAxMy4wODk1QzkuNDQzMTIgMTMuMDc0MiA4LjkzMDA5IDEzLjAwNjEgOC40NDQ1IDEyLjgwNjZDOC4zNDQyMSAxMi43NjU0IDguMjQ1NTEgMTIuNzEwNSA4LjE2MTA2IDEyLjY0NEM3Ljk2MzY2IDEyLjQ4ODMgNy45NTM2MyAxMi4yNTkyIDguMTY1MjggMTIuMTI5NEM4LjM2MzIxIDEyLjAwOCA4LjU5NDQgMTEuOTM5OSA4LjgxNDQ5IDExLjg1OTJDOC44NDQwNSAxMS44NDgxIDguOTE0NzggMTEuODkyNCA4LjkzMzc4IDExLjkyODNDOC45NDgwMyAxMS45NTQ3IDguOTIwNTkgMTIuMDIwMSA4Ljg5MjYxIDEyLjA0OTJDOC44NDY2OSAxMi4wOTY3IDguNzg0NDEgMTIuMTI4OSA4LjcyODk5IDEyLjE2NjlDOC43MzI2OCAxMi4xODY0IDguNzM2MzggMTIuMjA1OSA4Ljc0MDA3IDEyLjIyNTVaIiBmaWxsPSIjMDA3Njk1Ii8+CjxwYXRoIGQ9Ik0xMC41MDQ0IDE2LjAxMzNDMTEuNDI1NSAxNS45NzY4IDEyLjM0NzUgMTUuOTYwNSAxMy4yNjY1IDE1Ljg5NzFDMTQuMDIwMiAxNS44NDU0IDE0Ljc0MzMgMTUuNjQ1NCAxNS40MDUyIDE1LjI2NDNDMTUuNDk5NyAxNS4yMDk5IDE1LjU4MDQgMTUuMTMxOCAxNS42NzQ5IDE1LjA3NzRDMTUuNzIxMyAxNS4wNTA1IDE1Ljc4NDIgMTUuMDUyMSAxNS44Mzk2IDE1LjA0MUMxNS44NTA3IDE1LjA5NyAxNS44ODM5IDE1LjE1OTggMTUuODY5NyAxNS4yMDc4QzE1LjgwNDcgMTUuNDI1MyAxNS42NjIyIDE1LjU5MjEgMTUuNDg4MSAxNS43MzE0QzE1LjE0OTcgMTYuMDAwNiAxNC43NTM5IDE2LjE0MjYgMTQuMzM2OSAxNi4yMjEyQzEyLjk5MjUgMTYuNDc2MSAxMS42MzU1IDE2LjU1MjcgMTAuMjczMiAxNi40Mzk3QzkuNTU3NTEgMTYuMzgwMSA4Ljg0NjU0IDE2LjI2NCA4LjEzMzQ3IDE2LjE3MjdDOC4xMTE4MyAxNi4xNyA4LjA5MDE4IDE2LjE2NDIgOC4wNjkwNyAxNi4xNkM3Ljk5MjU0IDE2LjE0MzYgNy45MTMzNyAxNi4xMjIgNy45Mjg2NyAxNi4wMjIyQzcuOTQyNCAxNS45MzIgOC4wMTg5MyAxNS45Mjk5IDguMDkzMzUgMTUuOTMyQzguNTYzMTEgMTUuOTQ1MiA5LjAzMjM0IDE1Ljk2MSA5LjUwMjA5IDE1Ljk2ODlDOS44MzU2NyAxNS45NzQ3IDEwLjE2OTMgMTUuOTcgMTAuNTAyOCAxNS45N0MxMC41MDI4IDE1Ljk4NDcgMTAuNTAzNCAxNS45OTkgMTAuNTAzOSAxNi4wMTM4TDEwLjUwNDQgMTYuMDEzM1oiIGZpbGw9IiMwMDc2OTUiLz4KPHBhdGggZD0iTTE0LjkwOTYgMTAuMTA1NUMxNS40MjY5IDEwLjEwMDggMTUuNzg2MyAxMC4zODk1IDE1LjkzNjggMTAuODc4OEMxNi4xMjMxIDExLjQ4MjEgMTUuODc2MSAxMS45MjgxIDE1LjQyNjkgMTIuMjYzOEMxNC45NjkzIDEyLjYwNTMgMTQuNDQyIDEyLjc5NDIgMTMuODkzNiAxMi45Mjc4QzEzLjg0NCAxMi45Mzk5IDEzLjc4MDYgMTIuODk0NSAxMy43MjM2IDEyLjg3NTVDMTMuNzUwNiAxMi44MjE3IDEzLjc2NDMgMTIuNzUzNiAxMy44MDYgMTIuNzE3MkMxNC4xMzExIDEyLjQzMDYgMTQuNDcwNSAxMi4xNTk4IDE0Ljc4NjEgMTEuODYzN0MxNC45MTMzIDExLjc0MzkgMTUuMDA5OSAxMS41ODEzIDE1LjA4OCAxMS40MjI0QzE1LjIwNTcgMTEuMTgzMyAxNS4xMTcxIDEwLjk0MTEgMTQuODkyNyAxMC43OTdDMTQuNjQ0NyAxMC42Mzc2IDE0LjM2NDkgMTAuNTk0OCAxNC4wODA0IDEwLjU2MTZDMTQuMDIxOCAxMC41NTQ3IDEzLjk2ODUgMTAuNTAyNCAxMy45MTMxIDEwLjQ3MDhDMTMuOTUzOCAxMC40MjA2IDEzLjk4NDQgMTAuMzQ4OCAxNC4wMzcyIDEwLjMyNDZDMTQuMzEzMiAxMC4xOTc0IDE0LjYwMTQgMTAuMTA5MiAxNC45MDk2IDEwLjEwNjFWMTAuMTA1NVoiIGZpbGw9IiMwMDc2OTUiLz4KPC9nPgo8ZGVmcz4KPGNsaXBQYXRoIGlkPSJjbGlwMF82MjQwXzU0ODY4Ij4KPHJlY3Qgd2lkdGg9IjEwIiBoZWlnaHQ9IjEzLjQ4OTkiIGZpbGw9IndoaXRlIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSg2IDMpIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==",JavascriptLogo="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMSIgdmlld0JveD0iMCAwIDIwIDIxIiBmaWxsPSJub25lIj4KICA8cmVjdCB5PSIwLjUiIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgcng9IjQiIGZpbGw9IiNGMERCNEYiLz4KICA8cGF0aCBkPSJNMTYuNTMxMiAxMC4yMDIxQzE2LjEyNjkgMTAuNDYxOCAxNS43MjY5IDEwLjcxODUgMTUuMzIxIDEwLjk3OUMxNS4yNTc5IDEwLjg4NzUgMTUuMjA0MiAxMC44MDI5IDE1LjE0MzkgMTAuNzIzM0MxNC44Njk4IDEwLjM2MTcgMTQuNTAxNyAxMC4yNDMzIDE0LjA3MDMgMTAuMzQzOEMxMy41NTcxIDEwLjQ2MzIgMTMuMzc3NCAxMS4xMDEyIDEzLjc0OTUgMTEuNDc2QzEzLjg1MjkgMTEuNTgwMiAxMy45ODE4IDExLjY2ODIgMTQuMTE0IDExLjczMjdDMTQuNDM5IDExLjg5MTUgMTQuNzczMyAxMi4wMzE0IDE1LjEwMzEgMTIuMTgwNEMxNS40OTc1IDEyLjM1ODQgMTUuODc1IDEyLjU2MjkgMTYuMjE5NyAxMi44MjkyQzE3LjIzNDcgMTMuNjEzNCAxNy4xNzYyIDE1LjIxNzEgMTYuNTE4MiAxNS45MzYyQzE2LjE2NTggMTYuMzIxMiAxNS43MyAxNi41NTI4IDE1LjIyNzIgMTYuNjU2NkMxNC4zMTc5IDE2Ljg0NDcgMTMuNDM4NCAxNi43NjkyIDEyLjYxODcgMTYuMzAwMUMxMi4xNDc0IDE2LjAzMDQgMTEuNzk1OSAxNS42NDIgMTEuNTM4MSAxNS4xNDM2QzExLjk2NDcgMTQuODk2NyAxMi4zODY4IDE0LjY1MjEgMTIuODEzNiAxNC40MDQ5QzEyLjg4MjMgMTQuNTAxMiAxMi45NDIxIDE0LjU5MDQgMTMuMDA3MyAxNC42NzU1QzEzLjQ1MTggMTUuMjU1MSAxNC4wMzk2IDE1LjQ1MzIgMTQuNzQ0NSAxNS4zMDY3QzE0Ljg4MzIgMTUuMjc3OSAxNS4wMjM4IDE1LjIxMTEgMTUuMTM5NyAxNS4xMjgxQzE1LjQ5NDIgMTQuODc0NyAxNS41MzI2IDE0LjM2OSAxNS4yMTM2IDE0LjA3MTNDMTUuMDczOSAxMy45NDA4IDE0LjkwMTEgMTMuODM4IDE0LjcyODYgMTMuNzUyM0MxNC40MzI4IDEzLjYwNTUgMTQuMTI1NSAxMy40ODE4IDEzLjgyMjggMTMuMzQ4M0MxMy40NjUgMTMuMTkwNiAxMy4xMjMyIDEzLjAwNzIgMTIuODExOSAxMi43NjY4QzExLjgzNTggMTIuMDEyNiAxMS44NTU4IDEwLjY0IDEyLjI5NzggOS45NDM1MUMxMi41Mjc0IDkuNTgxOTEgMTIuODM0MyA5LjMxMDk3IDEzLjIyODkgOS4xNTExNkMxMy45NTUgOC44NTcwMyAxNC42OTA0IDguODU4MjggMTUuNDE4NiA5LjE0MDUxQzE1Ljg4MTEgOS4zMTk3NCAxNi4zNDI1IDkuNzczMDUgMTYuNTMxMiAxMC4yMDE5VjEwLjIwMjFaIiBmaWxsPSIjMTExMTExIi8+CiAgPHBhdGggZD0iTTYgMTUuMzA4N0M2LjQyMjgxIDE1LjA1MjggNi44NDE2NSAxNC43OTk0IDcuMjY2OTYgMTQuNTQyMUM3LjI4OTExIDE0LjU3NTMgNy4zMDYyNCAxNC42MDAzIDcuMzIyNTMgMTQuNjI1OEM3LjM4ODEyIDE0LjcyODQgNy40NDgyOSAxNC44MzQ5IDcuNTE5NzMgMTQuOTMzM0M3Ljc2ODc0IDE1LjI3NTkgOC4wNzUxOSAxNS40Mjk1IDguNjE2NDQgMTUuMzAyN0M4Ljg2MDIzIDE1LjI0NTQgOS4wMDYwNCAxNS4wNzEgOS4wNTcwMSAxNC44MzM5QzkuMDk0NjEgMTQuNjU4NiA5LjExMjU3IDE0LjQ3NTggOS4xMTI5OSAxNC4yOTY0QzkuMTE2OTYgMTIuNjAxMiA5LjExNTI5IDEwLjkwNiA5LjExNTcxIDkuMjEwNzhDOS4xMTU3MSA5LjAwMTY3IDkuMDk5NDEgOS4wMzAyOSA5LjI5MTYgOS4wMjk4OEM5LjcxOTg0IDkuMDI4NjIgMTAuMTQ3OSA5LjAzMjE3IDEwLjU3NjEgOS4wMjczN0MxMC42NzAzIDkuMDI2MzIgMTAuNjkyNyA5LjA1NzQ1IDEwLjY5MjcgOS4xNDY4NkMxMC42OTA0IDEwLjg5MDcgMTAuNjkxNCAxMi42MzQ4IDEwLjY5MDIgMTQuMzc4N0MxMC42OSAxNC42OTMxIDEwLjY1OCAxNS4wMDQzIDEwLjU2NDIgMTUuMzA2NEMxMC4zNTk1IDE1Ljk2NjEgOS45MzQ4IDE2LjQxOTggOS4yNzA3MSAxNi42MTQ1QzguNDY4MzMgMTYuODQ5NSA3LjY3OTc1IDE2LjgxNTUgNi45Mzc3NCAxNi4zODk1QzYuNTMxNDQgMTYuMTU2NCA2LjEzMzY5IDE1LjY5MDQgNiAxNS4zMDg5VjE1LjMwODdaIiBmaWxsPSIjMTExMTExIi8+Cjwvc3ZnPg==",ReactNativeLogo="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMCAyMSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3QgeT0iMC41IiB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHJ4PSI0IiBmaWxsPSIjMTExMTExIi8+CjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMF81Njk0XzEwMTIwOSkiPgo8cGF0aCBkPSJNMTAuMDE3MiAxMi4zNTA3QzEwLjc0NCAxMi4zNTA3IDExLjMzMzIgMTEuNzYxNSAxMS4zMzMyIDExLjAzNDdDMTEuMzMzMiAxMC4zMDc5IDEwLjc0NCA5LjcxODc1IDEwLjAxNzIgOS43MTg3NUM5LjI5MDM2IDkuNzE4NzUgOC43MDExNyAxMC4zMDc5IDguNzAxMTcgMTEuMDM0N0M4LjcwMTE3IDExLjc2MTUgOS4yOTAzNiAxMi4zNTA3IDEwLjAxNzIgMTIuMzUwN1oiIGZpbGw9IiM2MURBRkIiLz4KPHBhdGggZD0iTTE1LjE2NzkgOC41Nzc1NkMxNC45NjM1IDguNDk1ODkgMTQuNzQ5NCA4LjQxOTQxIDE0LjUyNjkgOC4zNDg3QzE0LjU3NjggOC4xMjA0MiAxNC42MTgxIDcuODk3MDUgMTQuNjQ5MyA3LjY3OTE2QzE0Ljg3OTYgNi4wNzU0NCAxNC41NjA0IDQuOTM0OTIgMTMuNzUgNC40NjcxQzEyLjkzOTYgMy45OTkyOSAxMS43OTIyIDQuMjkzMDggMTAuNTE4NiA1LjI5NDUxQzEwLjM0NTcgNS40MzA0MyAxMC4xNzI2IDUuNTc3OTEgMTAgNS43MzUxOUM5LjgyNzQyIDUuNTc3OTEgOS42NTQyNiA1LjQzMDQzIDkuNDgxNCA1LjI5NDUxQzguMjA3ODMgNC4yOTMwOCA3LjA2MDA5IDMuOTk5MjkgNi4yNSA0LjQ2NzFDNS40Mzk5MSA0LjkzNDkyIDUuMTIwNDQgNi4wNzU0NCA1LjM1MDc0IDcuNjc5MTZDNS4zODE5MSA3Ljg5NzA1IDUuNDIzMTggOC4xMjA0MiA1LjQ3MzEgOC4zNDg3QzUuMjUwNiA4LjQxOTQxIDUuMDM2NDYgOC40OTU2IDQuODMyMTMgOC41Nzc1NkMzLjMyODI3IDkuMTc5ODYgMi41IDEwLjAyNjkgMi41IDEwLjk2MjVDMi41IDExLjg5ODEgMy4zMjgyNyAxMi43NDQ5IDQuODMyMTMgMTMuMzQ3MkM1LjAzNjQ2IDEzLjQyODggNS4yNTA2IDEzLjUwNTMgNS40NzMxIDEzLjU3NkM1LjQyMzE4IDEzLjgwNDMgNS4zODE5MSAxNC4wMjc3IDUuMzUwNzQgMTQuMjQ1NkM1LjEyMDQ0IDE1Ljg0OTMgNS40Mzk5MSAxNi45ODk4IDYuMjUgMTcuNDU3NkM2LjQ5OTkyIDE3LjYwMTkgNi43ODUzNCAxNy42NzUyIDcuMDk4NDcgMTcuNjc1MkM3Ljc4NzkyIDE3LjY3NTIgOC42MTE4NiAxNy4zMTM5IDkuNDgxNCAxNi42MzAyQzkuNjU0MjYgMTYuNDk0MyA5LjgyNzQyIDE2LjM0NjggMTAgMTYuMTg5NUMxMC4xNzI2IDE2LjM0NjggMTAuMzQ1NyAxNi40OTQzIDEwLjUxODYgMTYuNjMwMkMxMS4zODgxIDE3LjMxMzkgMTIuMjEyMSAxNy42NzUyIDEyLjkwMTUgMTcuNjc1MkMxMy4yMTQ3IDE3LjY3NTIgMTMuNTAwMSAxNy42MDE5IDEzLjc1IDE3LjQ1NzZDMTQuNTYwMSAxNi45ODk4IDE0Ljg3OTYgMTUuODQ5MyAxNC42NDkzIDE0LjI0NTZDMTQuNjE4MSAxNC4wMjc3IDE0LjU3NjggMTMuODA0MyAxNC41MjY5IDEzLjU3NkMxNC43NDk0IDEzLjUwNTMgMTQuOTYzNSAxMy40MjkxIDE1LjE2NzkgMTMuMzQ3MkMxNi42NzE3IDEyLjc0NDkgMTcuNSAxMS44OTc4IDE3LjUgMTAuOTYyNUMxNy41IDEwLjAyNzIgMTYuNjcxNyA5LjE4MDE1IDE1LjE2NzkgOC41Nzc4NVY4LjU3NzU2Wk0xMy44NDkzIDE0LjM2MDRDMTQuMDI0MiAxNS41Nzg2IDEzLjgzNiAxNi40NzUgMTMuMzQ2IDE2Ljc1NzhDMTIuODU1OSAxNy4wNDA5IDExLjk4NTggMTYuNzU1NSAxMS4wMTgyIDE1Ljk5NUMxMC44NzE2IDE1Ljg3OTYgMTAuNzI0NyAxNS43NTUyIDEwLjU3NzggMTUuNjIzQzExLjAwNCAxNS4xNzQ4IDExLjQyMTkgMTQuNjY4MSAxMS44MjEgMTQuMTE2NkMxMi40OTg0IDE0LjA0NjcgMTMuMTQ2IDEzLjkzNzkgMTMuNzQ3NCAxMy43OTNDMTMuNzg4NyAxMy45ODY0IDEzLjgyMyAxNC4xNzU3IDEzLjg0OTYgMTQuMzYwNEgxMy44NDkzWk02LjE1MDcyIDE0LjM2MDRDNi4xNzcyNyAxNC4xNzU3IDYuMjExNjIgMTMuOTg2NCA2LjI1Mjg5IDEzLjc5M0M2Ljg1NDAzIDEzLjkzNzkgNy41MDE5MiAxNC4wNDY3IDguMTc5MjYgMTQuMTE2NkM4LjU3ODM4IDE0LjY2ODEgOC45OTYyNyAxNS4xNzQ4IDkuNDIyNTIgMTUuNjIzQzkuMjc1NjMgMTUuNzU1NSA5LjEyODczIDE1Ljg3OTkgOC45ODIxMyAxNS45OTVDOC4wMTQ0NyAxNi43NTU1IDcuMTQ0MzUgMTcuMDQwOSA2LjY1NDMyIDE2Ljc1NzhDNi4xNjQyOSAxNi40NzQ3IDUuOTc2MTIgMTUuNTc4NiA2LjE1MTAxIDE0LjM2MDRINi4xNTA3MlpNNi4xNTA3MiA3LjU2NDNDNS45NzU4NCA2LjM0NjE0IDYuMTY0IDUuNDQ5NzcgNi42NTQwMyA1LjE2Njk1QzYuNzc4NDIgNS4wOTUwOSA2LjkyODIgNS4wNTg3MiA3LjA5OTMzIDUuMDU4NzJDNy41OTg4OSA1LjA1ODcyIDguMjY3NTcgNS4zNjgxIDguOTgyMTMgNS45Mjk3QzkuMTI4NzMgNi4wNDUxNCA5LjI3NTYzIDYuMTY5NTIgOS40MjI1MiA2LjMwMTdDOC45OTYyNyA2Ljc0OTg5IDguNTc4MzggNy4yNTY2NiA4LjE3OTI2IDcuODA4MTdDNy41MDE5MiA3Ljg3ODAxIDYuODU0MzIgNy45ODY4MSA2LjI1Mjg5IDguMTMxNjhDNi4yMTE2MiA3LjkzODMyIDYuMTc3MjcgNy43NDkgNi4xNTA3MiA3LjU2NDNaTTEzLjg0OTMgNy41NjQzQzEzLjgyMjcgNy43NDkgMTMuNzg4NCA3LjkzODMyIDEzLjc0NzEgOC4xMzE2OEMxMy4xNDYgNy45ODY4MSAxMi40OTgxIDcuODc4MDEgMTEuODIwNyA3LjgwODE3QzExLjQyMTYgNy4yNTY2NiAxMS4wMDM3IDYuNzQ5ODkgMTAuNTc3NSA2LjMwMTdDMTAuNzI0NCA2LjE2OTI0IDEwLjg3MTMgNi4wNDQ4NSAxMS4wMTc5IDUuOTI5N0MxMS45ODU1IDUuMTY4OTcgMTIuODU1NiA0Ljg4MzgzIDEzLjM0NTcgNS4xNjY5NUMxMy44MzU3IDUuNDUwMDYgMTQuMDIzOSA2LjM0NjE0IDEzLjg0OSA3LjU2NDNIMTMuODQ5M1pNMTIuMTExNiAxMi4xODE1QzExLjg3NzYgMTIuNTg2NyAxMS42MzE0IDEyLjk3NjMgMTEuMzc2NiAxMy4zNDYzQzEwLjkyODcgMTMuMzgyMSAxMC40Njg0IDEzLjQwMDYgMTAuMDAwMyAxMy40MDA2QzkuNTMyMTkgMTMuNDAwNiA5LjA3MTg4IDEzLjM4MjEgOC42MjM5OCAxMy4zNDYzQzguMzY5MTUgMTIuOTc2MyA4LjEyMjY5IDEyLjU4NjcgNy44ODg5MyAxMi4xODE1QzcuNjU0ODggMTEuNzc2MyA3LjQ0MDc0IDExLjM2ODMgNy4yNDc2NyAxMC45NjI1QzcuNDQwNDUgMTAuNTU2NyA3LjY1NDg4IDEwLjE0ODcgNy44ODg5MyA5Ljc0MzQ4QzguMTIyOTggOS4zMzgyOSA4LjM2OTE1IDguOTQ4NjkgOC42MjM5OCA4LjU3ODcxQzkuMDcxODggOC41NDI5MyA5LjUzMjE5IDguNTI0NDYgMTAuMDAwMyA4LjUyNDQ2QzEwLjQ2ODQgOC41MjQ0NiAxMC45Mjg3IDguNTQyOTMgMTEuMzc2NiA4LjU3ODcxQzExLjYzMTQgOC45NDg2OSAxMS44Nzc5IDkuMzM4MjkgMTIuMTExNiA5Ljc0MzQ4QzEyLjM0NTcgMTAuMTQ4NyAxMi41NTk4IDEwLjU1NjcgMTIuNzUyOSAxMC45NjI1QzEyLjU2MDEgMTEuMzY4MyAxMi4zNDU3IDExLjc3NjMgMTIuMTExOSAxMi4xODE1SDEyLjExMTZaTTEyLjgxMTIgOS4zMzk0NUMxMi42ODUxIDkuMTIxMjcgMTIuNTU1NSA4LjkwNzEzIDEyLjQyMyA4LjY5NzlDMTIuODEzMiA4Ljc1NjIgMTMuMTg5NSA4LjgyODM1IDEzLjU0NzEgOC45MTQzNUMxMy40NDI2IDkuMjY3MyAxMy4zMTc0IDkuNjI5MiAxMy4xNzI1IDkuOTk2MjlDMTMuMDU3NyA5Ljc3Njk2IDEyLjkzNyA5LjU1NzYzIDEyLjgxMDkgOS4zMzk0NUgxMi44MTEyWk0xMCA3LjcxNjFDOS43NDgwNiA3LjcxNjEgOS40OTc4NSA3LjcyMTMgOS4yNTAyMyA3LjczMTRDOS40OTU4MiA3LjQyMjYgOS43NDY2MSA3LjEzMjg1IDEwIDYuODY2MTlDMTAuMjUzNCA3LjEzMjg1IDEwLjUwNDIgNy40MjI2IDEwLjc0OTggNy43MzE0QzEwLjUwMjIgNy43MjEzIDEwLjI1MjIgNy43MTYxIDEwIDcuNzE2MVpNNy4xODg4IDkuMzM5NDVDNy4wNjI2OCA5LjU1NzYzIDYuOTQyMzQgOS43NzY5NiA2LjgyNzE5IDkuOTk2MjlDNi42ODI2IDkuNjI5MiA2LjU1NzA3IDkuMjY3MyA2LjQ1MjU5IDguOTE0MzVDNi44MTA0NSA4LjgyODM1IDcuMTg2NDkgOC43NTU5MSA3LjU3NjY3IDguNjk3OUM3LjQ0NDIxIDguOTA3MTMgNy4zMTQ2MyA5LjEyMTI3IDcuMTg4NTEgOS4zMzk0NUg3LjE4ODhaTTcuMTg4OCAxMi41ODU2QzcuMzE0OTEgMTIuODAzNyA3LjQ0NDQ5IDEzLjAxNzkgNy41NzY5NiAxMy4yMjcxQzcuMTg2NzggMTMuMTY4OCA2LjgxMDQ1IDEzLjA5NjcgNi40NTI4OCAxMy4wMTA3QzYuNTU3MzUgMTIuNjU3NyA2LjY4MjYgMTIuMjk1OCA2LjgyNzQ4IDExLjkyODdDNi45NDIzNCAxMi4xNDgxIDcuMDYyOTcgMTIuMzY3NCA3LjE4OTA5IDEyLjU4NTZINy4xODg4Wk0xMCAxNC4yMDg2QzEwLjI1MTkgMTQuMjA4NiAxMC41MDIyIDE0LjIwMzQgMTAuNzQ5OCAxNC4xOTMzQzEwLjUwNDIgMTQuNTAyMSAxMC4yNTM0IDE0Ljc5MTkgMTAgMTUuMDU4NUM5Ljc0NjYxIDE0Ljc5MTkgOS40OTU4MiAxNC41MDIxIDkuMjUwMjMgMTQuMTkzM0M5LjQ5Nzg1IDE0LjIwMzQgOS43NDc3NyAxNC4yMDg2IDEwIDE0LjIwODZaTTEyLjgxMTIgMTIuNTg1NkMxMi45MzczIDEyLjM2NzQgMTMuMDU3NyAxMi4xNDgxIDEzLjE3MjggMTEuOTI4N0MxMy4zMTc0IDEyLjI5NTggMTMuNDQyOSAxMi42NTc3IDEzLjU0NzQgMTMuMDEwN0MxMy4xODk1IDEzLjA5NjcgMTIuODEzNSAxMy4xNjkxIDEyLjQyMzMgMTMuMjI3MUMxMi41NTU4IDEzLjAxNzkgMTIuNjg1NCAxMi44MDM3IDEyLjgxMTUgMTIuNTg1NkgxMi44MTEyWk02LjM1NzkzIDEwLjk2MjVDNi4wNzk3MyAxMS41ODM5IDUuODUwMDEgMTIuMTk5MSA1LjY3NTEyIDEyLjc5MjVDNS40ODY5NiAxMi43MzE2IDUuMzA1NzIgMTIuNjY2NyA1LjEzMjU2IDEyLjU5NzFDMy45OTAwMSAxMi4xMzk0IDMuMzA4MDcgMTEuNTI4NCAzLjMwODA3IDEwLjk2MjVDMy4zMDgwNyAxMC4zOTY2IDMuOTkwMDEgOS43ODU2MiA1LjEzMjU2IDkuMzI3OTFDNS4zMDU3MiA5LjI1ODY0IDUuNDg2OTYgOS4xOTM0MiA1LjY3NTEyIDkuMTMyNTNDNS44NTAzIDkuNzI1NTkgNi4wODAwMiAxMC4zNDEyIDYuMzU3OTMgMTAuOTYyNVpNMTMuNjQyMSAxMC45NjI1QzEzLjkyMDMgMTAuMzQxMiAxNC4xNSA5LjcyNTU5IDE0LjMyNDkgOS4xMzI1M0MxNC41MTMgOS4xOTM0MiAxNC42OTQzIDkuMjU4MzUgMTQuODY3NCA5LjMyNzkxQzE2LjAxIDkuNzg1NjIgMTYuNjkxOSAxMC4zOTY2IDE2LjY5MTkgMTAuOTYyNUMxNi42OTE5IDExLjUyODQgMTYuMDEgMTIuMTM5NCAxNC44Njc0IDEyLjU5NzFDMTQuNjk0MyAxMi42NjY0IDE0LjUxMyAxMi43MzE2IDE0LjMyNDkgMTIuNzkyNUMxNC4xNDk3IDEyLjE5OTQgMTMuOTIgMTEuNTgzOSAxMy42NDIxIDEwLjk2MjVaIiBmaWxsPSIjNjFEQUZCIi8+CjwvZz4KPGRlZnM+CjxjbGlwUGF0aCBpZD0iY2xpcDBfNTY5NF8xMDEyMDkiPgo8cmVjdCB3aWR0aD0iMTUiIGhlaWdodD0iMTMuNDI1MSIgZmlsbD0id2hpdGUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDIuNSA0LjI1KSIvPgo8L2NsaXBQYXRoPgo8L2RlZnM+Cjwvc3ZnPgo=",SwiftLogo="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMCAyMSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3QgeT0iMC41IiB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHJ4PSI0IiBmaWxsPSIjRjA1MTM4Ii8+CjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMF81Njk0XzEwMTE5MCkiPgo8cGF0aCBkPSJNNC4wMDAxMyAxMS41OTc1QzQuMDAwMTMgMTEuNTk3NSA3LjYxMjM2IDE0LjQxODIgMTAuOTg4NCAxMi40NDUyQzEwLjk4ODQgMTIuNDQ1MiA3LjQ5NTUxIDkuNjAyNjcgNS4yMTU1OSA2LjEzODk5QzUuMjE1NTkgNi4xMzg5OSA4LjMyODQ3IDguODg1MTQgMTAuMjc5NiA5Ljk0NTQ2QzEwLjI3OTYgOS45NDU0NiA4LjM5NDMzIDguMDQ2MjQgNi42NjI0MyA1LjQ4MTM4QzYuNjYyNDMgNS40ODEzOCAxMC42OTYxIDkuMzM5NiAxMi43MTMgMTAuNDEzOUMxMi43MTMgMTAuNDEzOSAxMy44OTY3IDcuNDQyNzEgMTEuNTUxMSA0LjVDMTEuNTUxMSA0LjUgMTYuNDY5IDcuMTkwNTEgMTUuMjcwNCAxMi4zNjgxQzE1LjI3MDQgMTIuMzY4MSAxNi42NzM0IDEzLjc3MzggMTYuMTQ3MyAxNS40OTkxQzE2LjE0NzMgMTUuNDk5MSAxNS40MzEyIDEzLjc2OCAxMy42OTkzIDE0LjU3OTFDMTMuNjk5MyAxNC41NzkxIDguNjE1NzQgMTguMDIwOSA0IDExLjU5NzdMNC4wMDAxMyAxMS41OTc1WiIgZmlsbD0id2hpdGUiLz4KPC9nPgo8ZGVmcz4KPGNsaXBQYXRoIGlkPSJjbGlwMF81Njk0XzEwMTE5MCI+CjxyZWN0IHdpZHRoPSIxMi4yNjUzIiBoZWlnaHQ9IjExIiBmaWxsPSJ3aGl0ZSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoNCA0LjUpIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==",UnityLogo="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMCAyMSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3QgeT0iMC41IiB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHJ4PSI0IiBmaWxsPSIjMTExMTExIi8+CjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMF81Njk0XzEwMTIwNCkiPgo8cGF0aCBkPSJNNC44OTY0NyAxNC4zMjc5QzUuNTExMjUgMTMuOTcyNSA2LjA3NCAxMy42NTUyIDYuNjI3MjIgMTMuMzIxOEM2Ljc4MDM3IDEzLjIyOTUgNi44OTM5NCAxMy4yNjI1IDcuMDI5NSAxMy4zNDI0QzcuNTU0ODggMTMuNjUyMyA4LjA4NzU5IDEzLjk0OTEgOC42MTAwNCAxNC4yNjM0QzguODcxNjMgMTQuNDIxIDguOTQ0MTcgMTQuMzQ1NSA4Ljk0MTI0IDE0LjA2MjdDOC45MzI0NCAxMy4yODE1IDguOTM0NjQgMTIuNTAwNCA4Ljk0MTI0IDExLjcxODZDOC45NDI3IDExLjUyOTUgOC44OTIxNCAxMS40MDEzIDguNzE3MDIgMTEuMzAyNEM4LjAyNjA0IDEwLjkxNCA3LjM0MDE4IDEwLjUxNTQgNi42NTcyNiAxMC4xMTMxQzYuNDIzNTIgOS45NzUzOSA2LjMzNDEyIDEwLjAxNzkgNi4zMzg1MiAxMC4yOTYzQzYuMzQ3MzEgMTAuODk0MyA2LjMzNDEyIDExLjQ5MjkgNi4zNDUxMSAxMi4wOTA4QzYuMzQ4NzggMTIuMjk2IDYuMjk2NzUgMTIuNDI1NyA2LjEwNDc3IDEyLjUyOTdDNS41NjE4MSAxMi44MjUgNS4wMzEzIDEzLjE0MjMgNC40OTU2NiAxMy40NTA4QzQuMzk2MDEgMTMuMzA3OSA0LjQzMTkxIDEzLjE4MzQgNC40MzE5MSAxMy4wNjY4QzQuNDI4MjUgMTEuMzk0NyA0LjQzNDg0IDkuNzIxODYgNC40MjM4NSA4LjA0OTczQzQuNDIyMzkgNy43ODg4NyA0LjQ5MTI2IDcuNjM0OTkgNC43Mjk0MSA3LjUwMDE3QzYuMTgzMTggNi42NzY1NiA3LjYyNTIyIDUuODMzMTcgOS4wNzM4NiA0Ljk5OTNDOS4xNzQ5OCA0Ljk0MTQyIDkuMjY1MTEgNC44NDYxNiA5LjQzMzY0IDQuODYxNTVDOS40MzM2NCA1LjUyOTgxIDkuNDI4NTEgNi4xOTY2MSA5LjQzNzMxIDYuODYzNDFDOS40Mzk1MSA3LjAzODU0IDkuMzIxNTMgNy4wODkxIDkuMjA3MjIgNy4xNTUwNUM4LjY4OTkxIDcuNDU0NzQgOC4xNzU1MiA3Ljc1ODgzIDcuNjUzMDcgOC4wNDlDNy40MDY4NiA4LjE4NTI5IDcuMzI3NzMgOC4yODI3NCA3LjYzMzI4IDguNDUyMDFDOC4zMTU0NyA4LjgzMDg0IDguOTg5NiA5LjIyNTA2IDkuNjYxNTMgOS42MjIyMUM5LjgyNDkzIDkuNzE4OTMgOS45NTk3NiA5Ljc0MDE4IDEwLjEzMjcgOS42Mzc1OUMxMC44MTQxIDkuMjMzMTIgMTEuNSA4LjgzNDUgMTIuMTkxIDguNDQ2ODhDMTIuNDY4NyA4LjI5MDggMTIuNDE0NSA4LjE4ODIyIDEyLjE3NzggOC4wNTU1OUMxMS42NTY4IDcuNzYzMjMgMTEuMTQxNyA3LjQ1OTg3IDEwLjYyMjkgNy4xNjMxMUMxMC40OTM5IDcuMDg5MSAxMC4zODExIDcuMDI3NTUgMTAuMzg0NyA2LjgzODVDMTAuMzk2NSA2LjE4MTIyIDEwLjM4OTEgNS41MjMyMiAxMC4zODkxIDQuODY3NDFDMTAuNTMyOCA0LjgzMTUgMTAuNjEyNiA0LjkyNDU2IDEwLjcwMiA0Ljk3NjU5QzEyLjE4MjIgNS44MjgwNCAxMy42NTcyIDYuNjg3NTUgMTUuMTQxIDcuNTMyNDFDMTUuMzQ5MSA3LjY1MTEyIDE1LjQyNTMgNy43ODAwOCAxNS40MjM5IDguMDIwNDJDMTUuNDEyOSA5LjcyOTE5IDE1LjQxNTEgMTEuNDM4NyAxNS40MjE3IDEzLjE0NzVDMTUuNDIyNCAxMy40MDk4IDE1LjM5NjcgMTMuNTE2IDE1LjExNjEgMTMuMzM5NEMxNC42NjI1IDEzLjA1MzcgMTQuMTk0MyAxMi43ODkxIDEzLjcyMjQgMTIuNTM0MUMxMy41MzYzIDEyLjQzMzggMTMuNDY2NyAxMi4zMTQzIDEzLjQ3MTggMTIuMTAyNkMxMy40ODU3IDExLjUwNDYgMTMuNDcxOCAxMC45MDYgMTMuNDc5MSAxMC4zMDgxQzEzLjQ4MjEgMTAuMDY0OCAxMy40NDAzIDkuOTQ4MjggMTMuMTc1MSAxMC4xMDQ0QzEyLjQ4MTkgMTAuNTEzMiAxMS43ODQzIDEwLjkxNTUgMTEuMDgzOCAxMS4zMTE5QzEwLjkyMTkgMTEuNDAzNSAxMC44NzQyIDExLjUyOTUgMTAuODc1IDExLjcwMTdDMTAuODc4NiAxMi40OTUzIDEwLjg4MDggMTMuMjg4OSAxMC44NzQyIDE0LjA4MjRDMTAuODcyIDE0LjM1NzIgMTAuOTYxNCAxNC40MDcgMTEuMTk1OSAxNC4yNjcxQzExLjcwOTYgMTMuOTYxNSAxMi4yMzU3IDEzLjY3NzIgMTIuNzQ0MiAxMy4zNjM2QzEyLjkzOTEgMTMuMjQzNCAxMy4wODM1IDEzLjI1MzcgMTMuMjczMiAxMy4zNjk1QzEzLjgwMDggMTMuNjkxMiAxNC4zNDAxIDEzLjk5MyAxNC44NzQzIDE0LjMwMTVDMTQuODEzNSAxNC40NDMgMTQuNjk4NCAxNC40NzAxIDE0LjYwNjggMTQuNTIzNkMxMy4xMzk5IDE1LjM3MjggMTEuNjY4NSAxNi4yMTU1IDEwLjIwNjcgMTcuMDczNUM5Ljk4NzYgMTcuMjAxNyA5LjgzMDA2IDE3LjIwMzkgOS42MDk1IDE3LjA3NDJDOC4xNDc2NyAxNi4yMTU1IDYuNjc3MDUgMTUuMzczNSA1LjIwOTM2IDE0LjUyNUM1LjExNzAzIDE0LjQ3MTUgNS4wMjgzNyAxNC40MTA3IDQuODk1NzQgMTQuMzI2NEw0Ljg5NjQ3IDE0LjMyNzlaIiBmaWxsPSJ3aGl0ZSIvPgo8L2c+CjxkZWZzPgo8Y2xpcFBhdGggaWQ9ImNsaXAwXzU2OTRfMTAxMjA0Ij4KPHJlY3Qgd2lkdGg9IjExIiBoZWlnaHQ9IjEyLjMxMjQiIGZpbGw9IndoaXRlIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSg0LjQyNjc2IDQuODU5MzgpIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==";var RoleType=(u=>(u[u.Member=1]="Member",u[u.Manager=2]="Manager",u[u.DelegatedAdmin=3]="DelegatedAdmin",u[u.Admin=4]="Admin",u))(RoleType||{}),IAppState=(u=>(u[u.Activated=1]="Activated",u[u.Deactivated=2]="Deactivated",u[u.Recovered=3]="Recovered",u))(IAppState||{}),WorkspaceState=(u=>(u[u.Activated=1]="Activated",u[u.Recovered=2]="Recovered",u[u.Deactivated=3]="Deactivated",u[u.NeedCharge=4]="NeedCharge",u))(WorkspaceState||{}),PlatformKind=(u=>(u[u.None=0]="None",u[u.Web=1]="Web",u[u.Android=2]="Android",u[u.Ios=3]="Ios",u))(PlatformKind||{});const INITIAL_PLATFORM_INFO=Array.from({length:3},(u,f)=>({stage:-1,id:-1,domain:"",apiKey:"",platformKind:f+1,detail:null})),SUPPORTED_SDK={1:[{name:"Javascript",src:JavascriptLogo,link:SDK_GITHUB_LINK.javascript}],2:[{name:"Android (Java)",src:JavaLogo,link:SDK_GITHUB_LINK.android},{name:"Flutter",src:FlutterLogo,link:SDK_GITHUB_LINK.flutter},{name:"Unity",src:UnityLogo,link:SDK_GITHUB_LINK.unity},{name:"React Native",src:ReactNativeLogo,link:SDK_GITHUB_LINK.reactNative}],3:[{name:"iOS (Swift)",src:SwiftLogo,link:SDK_GITHUB_LINK.ios},{name:"Flutter",src:FlutterLogo,link:SDK_GITHUB_LINK.flutter},{name:"Unity",src:UnityLogo,link:SDK_GITHUB_LINK.unity},{name:"React Native",src:ReactNativeLogo,link:SDK_GITHUB_LINK.reactNative}]},DEFAULT_DOMAIN="http://localhost:3000",DEFAULT_PACKAGE_NAME="com.example.MyApp";var RequestRESTfulAPI=(u=>(u.FEATURE="1",u.UI="2",u.CUSTOM="3",u))(RequestRESTfulAPI||{});const REQUEST_REST_API_CUSTOM_INPUT_MAX_LENGTH="100",layoutCase={all:["list_tier_1","list_tier_2","list_tier_3","block_tier_1","block_tier_2","block_tier_3"],wallet:["block","list"],nft:["stack_1","stack_2","stack_3"]},MAX_FILE_SIZE=5*1024*1024;var SupportedProvider=(u=>(u.Google="1",u.Apple="2",u.Discord="3",u.Naver="4",u))(SupportedProvider||{});const DEFAULT_AUTH_KEY="LOGIN_KEY",IS_TEXT_AREA="Private Key",IS_SECRET="clientSecret",index$3=Object.freeze(Object.defineProperty({__proto__:null,ContactEmail,DEFAULT_AUTH_KEY,DEFAULT_DOMAIN,DEFAULT_PACKAGE_NAME,DELETE_WS_WITHIN_DAYS,ElementList,IAppState,INITIAL_PLATFORM_INFO,IS_SECRET,IS_TEXT_AREA,MAXIMUM_APP,MAXIMUM_WORKSPACE,MAX_FILE_SIZE,MAX_LENGTH_APP_DESC,MAX_LENGTH_APP_NAME,MAX_LENGTH_APP_NAME_ETC,MAX_LENGTH_WS_NAME,MAX_LENGTH_WS_NAME_ETC,MIN_LENGTH_PASSWORD,PlatformKind,REG_EXP_ANDROID_PACKAGE,REG_EXP_EMAIL,REG_EXP_IOS_APP_STORE_ID,REG_EXP_IOS_APP_STORE_URL,REG_EXP_IOS_BUNDLE_ID,REG_EXP_MARKET_URL_GOOGLE,REG_EXP_MARKET_URL_SAMSUNG,REG_EXP_NAME,REG_EXP_PASSWORD,REG_EXP_URL_LINK,REG_EXP_USER_NAME,REQUEST_REST_API_CUSTOM_INPUT_MAX_LENGTH,RequestRESTfulAPI,RoleType,SDK_GITHUB_LINK,SUPPORTED_SDK,SupportedProvider,WorkspaceState,layoutCase,marketPlaceList,supportLanguages,wepinDefaultBreakPoints,workspaceDefaultBreakPoints,workspaceSideBarMenu},Symbol.toStringTag,{value:"Module"})),_hoisted_1$1O={class:"profile-wrapper"},_hoisted_2$1u=["src"],_hoisted_3$1e={key:0,class:"user-profile-setting"},_hoisted_4$16={class:"custom-file-label",for:"customFile"},_hoisted_5$Z={key:1,class:"user-profile-alarm"},_sfc_main$27=defineComponent({__name:"UserProfileForm",props:{src:{default:void 0},size:{default:"36px"},isUpdate:{type:Boolean},isAlarm:{type:Boolean},isShadow:{type:Boolean}},emits:["update:image","error:type"],setup(u,{emit:f}){useCssVars(S=>({"2cd34a22":S.size}));const d=u,_=f,x=ref(!1),I=ref(d.src),E=ref(null),M=async()=>{var S,A;const T=(A=(S=E.value)==null?void 0:S.files)==null?void 0:A[0];if(!T?.type.includes("image"))return _("error:type");if(T){const D=new FormData;D.append("file",T),_("update:image",D)}};return watch(()=>d.src,S=>{S&&(x.value=!1,I.value=S)}),(S,A)=>(openBlock(),createElementBlock("div",_hoisted_1$1O,[createBaseVNode("div",{class:normalizeClass(["image-wrapper",S.isShadow?"shadow":""])},[!S.src||x.value?(openBlock(),createBlock(unref(Element$1),{key:0,name:"Profile",size:"medium",color:unref(colors).currentThemeRef.value.grey_666},null,8,["color"])):(openBlock(),createElementBlock("img",{key:1,src:I.value,referrerpolicy:"no-referrer",onError:A[0]||(A[0]=()=>x.value=!0)},null,40,_hoisted_2$1u))],2),S.isUpdate?(openBlock(),createElementBlock("div",_hoisted_3$1e,[createBaseVNode("label",_hoisted_4$16,[createVNode(unref(Element$1),{name:"Camera",size:"small",color:unref(colors).currentThemeRef.value.grey_111},null,8,["color"])]),createBaseVNode("input",{id:"customFile",ref_key:"imageElement",ref:E,type:"file",accept:"image/*",onChange:M},null,544)])):createCommentVNode("",!0),S.isAlarm?(openBlock(),createElementBlock("div",_hoisted_5$Z)):createCommentVNode("",!0)]))}}),UserProfileForm=_export_sfc$1(_sfc_main$27,[["__scopeId","data-v-39ed18f2"]]),_hoisted_1$1L={class:"w-tab-indicator"},_hoisted_2$1t={class:"w-tab-label-container"},_hoisted_3$1d={key:0,class:"label-item"},_hoisted_4$15={key:1},_hoisted_5$Y={class:"w-tab-indicator"},_sfc_main$24=defineComponent({__name:"Tab",props:{label:{default:void 0},underline:{type:Boolean},indicatorInactiveColor:{default:"line_02"},name:{},textAlign:{default:"left"}},setup(u){const f=u,d=inject("tabs");d?.names.value.push(f.name||"");const _=()=>{f.name&&d?.updateTab(f.name)},x=ref(1),I=ref(0),E=ref(0);watch(()=>d?.selected.value,(S,A)=>{if(!S||!A||!d)return;const T=d?.names.value.indexOf(A),D=d?.names.value.indexOf(S),O=d?.names.value.indexOf(f.name),j=Math.abs(D-T);I.value=x.value/(j+1)*1.2;const $=Math.abs(O-T);E.value=$*(I.value*.1)});const M=computed(()=>{const S=d?.names.value.indexOf(d.selected.value),A=d?.names.value.indexOf(f.name),T=S===A;let D="";return typeof S=="number"&&typeof A=="number"&&!T&&f.name&&(S>A?D="translateX(200%)":S<A&&(D="translateX(-200%)")),{"--w-tab-indicator-color-active":"var(--main)","--w-tab-indicator-color-disable":f.indicatorInactiveColor==="transparent"?"transparent":`var(--${f.indicatorInactiveColor})`,"--w-tab-indicator-color":T?"var(--w-tab-indicator-color-active)":"var(--w-tab-indicator-color-disable)","--w-tab-label-color-active":"var(--main)","--w-tab-label-color-disable":"var(--grey_666)","--w-tab-label-color":T?"var(--w-tab-label-color-active)":"var(--w-tab-label-color-disable)","--w-tab-indicator-transition":D,"--w-tab-indicator-transition-delay":E.value+"s","--w-tab-indicator-transition-duration":I.value+"s","--w-text-align":f.textAlign}});return(S,A)=>(openBlock(),createElementBlock("div",{class:"w-tab-wrapper",style:normalizeStyle(M.value),onClick:_},[withDirectives(createBaseVNode("div",_hoisted_1$1L,null,512),[[vShow,!S.underline]]),createBaseVNode("div",_hoisted_2$1t,[S.label?(openBlock(),createElementBlock("div",_hoisted_3$1d,toDisplayString$2(S.label),1)):(openBlock(),createElementBlock("div",_hoisted_4$15,[renderSlot(S.$slots,"default",{},void 0,!0)]))]),withDirectives(createBaseVNode("div",_hoisted_5$Y,null,512),[[vShow,S.underline]])],4))}}),WorkspaceTab=_export_sfc$1(_sfc_main$24,[["__scopeId","data-v-f1397297"]]),_hoisted_1$1K={class:"w-tabs-wrapper"},_sfc_main$23=defineComponent({__name:"Tabs",props:{modelValue:{},clickable:{type:Boolean,default:!1},stretch:{type:Boolean,default:!1},evenly:{type:Boolean,default:!1},gap:{default:"10px"},underline:{type:Boolean,default:!1},borderColor:{default:"line_02"}},emits:["update:modelValue"],setup(u,{emit:f}){useCssVars(O=>({ac001cfc:x.value,"4126c796":O.gap,d90f92f4:E.value,"8bc5bad4":M.value,"23c15ec3":I.value,e9310680:S.value}));const d=u,_=f,x=computed(()=>d.stretch&&d.evenly?"grid":"flex"),I=computed(()=>d.stretch&&d.evenly?`repeat(${A.value.length}, 1fr)`:""),E=computed(()=>d.stretch?"100%":"auto"),M=computed(()=>d.clickable?"pointer":""),S=computed(()=>d.underline?`1px solid var(--${d.borderColor})`:""),A=ref([]),T=O=>{d.clickable&&_("update:modelValue",O)},D=computed(()=>d.modelValue);return provide("tabs",{selected:D,names:A,updateTab:T}),(O,j)=>(openBlock(),createElementBlock("div",_hoisted_1$1K,[renderSlot(O.$slots,"default")]))}});function isObject$3$1(u){return u!==null&&typeof u=="object"&&"constructor"in u&&u.constructor===Object}function extend$2$1(u,f){u===void 0&&(u={}),f===void 0&&(f={}),Object.keys(f).forEach(d=>{typeof u[d]>"u"?u[d]=f[d]:isObject$3$1(f[d])&&isObject$3$1(u[d])&&Object.keys(f[d]).length>0&&extend$2$1(u[d],f[d])})}const ssrDocument$1={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function getDocument$1(){const u=typeof document<"u"?document:{};return extend$2$1(u,ssrDocument$1),u}const ssrWindow$1={document:ssrDocument$1,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(u){return typeof setTimeout>"u"?(u(),null):setTimeout(u,0)},cancelAnimationFrame(u){typeof setTimeout>"u"||clearTimeout(u)}};function getWindow$2(){const u=typeof window<"u"?window:{};return extend$2$1(u,ssrWindow$1),u}function classesToTokens$1(u){return u===void 0&&(u=""),u.trim().split(" ").filter(f=>!!f.trim())}function deleteProps$1(u){const f=u;Object.keys(f).forEach(d=>{try{f[d]=null}catch{}try{delete f[d]}catch{}})}function nextTick$1(u,f){return f===void 0&&(f=0),setTimeout(u,f)}function now$2(){return Date.now()}function getComputedStyle$3(u){const f=getWindow$2();let d;return f.getComputedStyle&&(d=f.getComputedStyle(u,null)),!d&&u.currentStyle&&(d=u.currentStyle),d||(d=u.style),d}function getTranslate$1(u,f){f===void 0&&(f="x");const d=getWindow$2();let _,x,I;const E=getComputedStyle$3(u);return d.WebKitCSSMatrix?(x=E.transform||E.webkitTransform,x.split(",").length>6&&(x=x.split(", ").map(M=>M.replace(",",".")).join(", ")),I=new d.WebKitCSSMatrix(x==="none"?"":x)):(I=E.MozTransform||E.OTransform||E.MsTransform||E.msTransform||E.transform||E.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),_=I.toString().split(",")),f==="x"&&(d.WebKitCSSMatrix?x=I.m41:_.length===16?x=parseFloat(_[12]):x=parseFloat(_[4])),f==="y"&&(d.WebKitCSSMatrix?x=I.m42:_.length===16?x=parseFloat(_[13]):x=parseFloat(_[5])),x||0}function isObject$2$1(u){return typeof u=="object"&&u!==null&&u.constructor&&Object.prototype.toString.call(u).slice(8,-1)==="Object"}function isNode$1(u){return typeof window<"u"&&typeof window.HTMLElement<"u"?u instanceof HTMLElement:u&&(u.nodeType===1||u.nodeType===11)}function extend$1$1(){const u=Object(arguments.length<=0?void 0:arguments[0]),f=["__proto__","constructor","prototype"];for(let d=1;d<arguments.length;d+=1){const _=d<0||arguments.length<=d?void 0:arguments[d];if(_!=null&&!isNode$1(_)){const x=Object.keys(Object(_)).filter(I=>f.indexOf(I)<0);for(let I=0,E=x.length;I<E;I+=1){const M=x[I],S=Object.getOwnPropertyDescriptor(_,M);S!==void 0&&S.enumerable&&(isObject$2$1(u[M])&&isObject$2$1(_[M])?_[M].__swiper__?u[M]=_[M]:extend$1$1(u[M],_[M]):!isObject$2$1(u[M])&&isObject$2$1(_[M])?(u[M]={},_[M].__swiper__?u[M]=_[M]:extend$1$1(u[M],_[M])):u[M]=_[M])}}}return u}function setCSSProperty$1(u,f,d){u.style.setProperty(f,d)}function animateCSSModeScroll$1(u){let{swiper:f,targetPosition:d,side:_}=u;const x=getWindow$2(),I=-f.translate;let E=null,M;const S=f.params.speed;f.wrapperEl.style.scrollSnapType="none",x.cancelAnimationFrame(f.cssModeFrameID);const A=d>I?"next":"prev",T=(O,j)=>A==="next"&&O>=j||A==="prev"&&O<=j,D=()=>{M=new Date().getTime(),E===null&&(E=M);const O=Math.max(Math.min((M-E)/S,1),0),j=.5-Math.cos(O*Math.PI)/2;let $=I+j*(d-I);if(T($,d)&&($=d),f.wrapperEl.scrollTo({[_]:$}),T($,d)){f.wrapperEl.style.overflow="hidden",f.wrapperEl.style.scrollSnapType="",setTimeout(()=>{f.wrapperEl.style.overflow="",f.wrapperEl.scrollTo({[_]:$})}),x.cancelAnimationFrame(f.cssModeFrameID);return}f.cssModeFrameID=x.requestAnimationFrame(D)};D()}function elementChildren$1(u,f){return f===void 0&&(f=""),[...u.children].filter(d=>d.matches(f))}function showWarning$1(u){try{console.warn(u);return}catch{}}function createElement$1(u,f){f===void 0&&(f=[]);const d=document.createElement(u);return d.classList.add(...Array.isArray(f)?f:classesToTokens$1(f)),d}function elementPrevAll$1(u,f){const d=[];for(;u.previousElementSibling;){const _=u.previousElementSibling;f?_.matches(f)&&d.push(_):d.push(_),u=_}return d}function elementNextAll$1(u,f){const d=[];for(;u.nextElementSibling;){const _=u.nextElementSibling;f?_.matches(f)&&d.push(_):d.push(_),u=_}return d}function elementStyle$1(u,f){return getWindow$2().getComputedStyle(u,null).getPropertyValue(f)}function elementIndex$1(u){let f=u,d;if(f){for(d=0;(f=f.previousSibling)!==null;)f.nodeType===1&&(d+=1);return d}}function elementParents$1(u,f){const d=[];let _=u.parentElement;for(;_;)f?_.matches(f)&&d.push(_):d.push(_),_=_.parentElement;return d}function elementOuterSize$1(u,f,d){const _=getWindow$2();return d?u[f==="width"?"offsetWidth":"offsetHeight"]+parseFloat(_.getComputedStyle(u,null).getPropertyValue(f==="width"?"margin-right":"margin-top"))+parseFloat(_.getComputedStyle(u,null).getPropertyValue(f==="width"?"margin-left":"margin-bottom")):u.offsetWidth}let support$1;function calcSupport$1(){const u=getWindow$2(),f=getDocument$1();return{smoothScroll:f.documentElement&&f.documentElement.style&&"scrollBehavior"in f.documentElement.style,touch:!!("ontouchstart"in u||u.DocumentTouch&&f instanceof u.DocumentTouch)}}function getSupport$1(){return support$1||(support$1=calcSupport$1()),support$1}let deviceCached$1;function calcDevice$1(u){let{userAgent:f}=u===void 0?{}:u;const d=getSupport$1(),_=getWindow$2(),x=_.navigator.platform,I=f||_.navigator.userAgent,E={ios:!1,android:!1},M=_.screen.width,S=_.screen.height,A=I.match(/(Android);?[\s\/]+([\d.]+)?/);let T=I.match(/(iPad).*OS\s([\d_]+)/);const D=I.match(/(iPod)(.*OS\s([\d_]+))?/),O=!T&&I.match(/(iPhone\sOS|iOS)\s([\d_]+)/),j=x==="Win32";let $=x==="MacIntel";const W=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!T&&$&&d.touch&&W.indexOf(`${M}x${S}`)>=0&&(T=I.match(/(Version)\/([\d.]+)/),T||(T=[0,1,"13_0_0"]),$=!1),A&&!j&&(E.os="android",E.android=!0),(T||O||D)&&(E.os="ios",E.ios=!0),E}function getDevice$1(u){return u===void 0&&(u={}),deviceCached$1||(deviceCached$1=calcDevice$1(u)),deviceCached$1}let browser$f;function calcBrowser$1(){const u=getWindow$2(),f=getDevice$1();let d=!1;function _(){const M=u.navigator.userAgent.toLowerCase();return M.indexOf("safari")>=0&&M.indexOf("chrome")<0&&M.indexOf("android")<0}if(_()){const M=String(u.navigator.userAgent);if(M.includes("Version/")){const[S,A]=M.split("Version/")[1].split(" ")[0].split(".").map(T=>Number(T));d=S<16||S===16&&A<2}}const x=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(u.navigator.userAgent),I=_(),E=I||x&&f.ios;return{isSafari:d||I,needPerspectiveFix:d,need3dFix:E,isWebView:x}}function getBrowser$1(){return browser$f||(browser$f=calcBrowser$1()),browser$f}function Resize$1(u){let{swiper:f,on:d,emit:_}=u;const x=getWindow$2();let I=null,E=null;const M=()=>{!f||f.destroyed||!f.initialized||(_("beforeResize"),_("resize"))},S=()=>{!f||f.destroyed||!f.initialized||(I=new ResizeObserver(D=>{E=x.requestAnimationFrame(()=>{const{width:O,height:j}=f;let $=O,W=j;D.forEach(Q=>{let{contentBoxSize:X,contentRect:Y,target:ie}=Q;ie&&ie!==f.el||($=Y?Y.width:(X[0]||X).inlineSize,W=Y?Y.height:(X[0]||X).blockSize)}),($!==O||W!==j)&&M()})}),I.observe(f.el))},A=()=>{E&&x.cancelAnimationFrame(E),I&&I.unobserve&&f.el&&(I.unobserve(f.el),I=null)},T=()=>{!f||f.destroyed||!f.initialized||_("orientationchange")};d("init",()=>{if(f.params.resizeObserver&&typeof x.ResizeObserver<"u"){S();return}x.addEventListener("resize",M),x.addEventListener("orientationchange",T)}),d("destroy",()=>{A(),x.removeEventListener("resize",M),x.removeEventListener("orientationchange",T)})}function Observer$1(u){let{swiper:f,extendParams:d,on:_,emit:x}=u;const I=[],E=getWindow$2(),M=function(T,D){D===void 0&&(D={});const O=E.MutationObserver||E.WebkitMutationObserver,j=new O($=>{if(f.__preventObserver__)return;if($.length===1){x("observerUpdate",$[0]);return}const W=function(){x("observerUpdate",$[0])};E.requestAnimationFrame?E.requestAnimationFrame(W):E.setTimeout(W,0)});j.observe(T,{attributes:typeof D.attributes>"u"?!0:D.attributes,childList:typeof D.childList>"u"?!0:D.childList,characterData:typeof D.characterData>"u"?!0:D.characterData}),I.push(j)},S=()=>{if(f.params.observer){if(f.params.observeParents){const T=elementParents$1(f.hostEl);for(let D=0;D<T.length;D+=1)M(T[D])}M(f.hostEl,{childList:f.params.observeSlideChildren}),M(f.wrapperEl,{attributes:!1})}},A=()=>{I.forEach(T=>{T.disconnect()}),I.splice(0,I.length)};d({observer:!1,observeParents:!1,observeSlideChildren:!1}),_("init",S),_("destroy",A)}var eventsEmitter$1={on(u,f,d){const _=this;if(!_.eventsListeners||_.destroyed||typeof f!="function")return _;const x=d?"unshift":"push";return u.split(" ").forEach(I=>{_.eventsListeners[I]||(_.eventsListeners[I]=[]),_.eventsListeners[I][x](f)}),_},once(u,f,d){const _=this;if(!_.eventsListeners||_.destroyed||typeof f!="function")return _;function x(){_.off(u,x),x.__emitterProxy&&delete x.__emitterProxy;for(var I=arguments.length,E=new Array(I),M=0;M<I;M++)E[M]=arguments[M];f.apply(_,E)}return x.__emitterProxy=f,_.on(u,x,d)},onAny(u,f){const d=this;if(!d.eventsListeners||d.destroyed||typeof u!="function")return d;const _=f?"unshift":"push";return d.eventsAnyListeners.indexOf(u)<0&&d.eventsAnyListeners[_](u),d},offAny(u){const f=this;if(!f.eventsListeners||f.destroyed||!f.eventsAnyListeners)return f;const d=f.eventsAnyListeners.indexOf(u);return d>=0&&f.eventsAnyListeners.splice(d,1),f},off(u,f){const d=this;return!d.eventsListeners||d.destroyed||!d.eventsListeners||u.split(" ").forEach(_=>{typeof f>"u"?d.eventsListeners[_]=[]:d.eventsListeners[_]&&d.eventsListeners[_].forEach((x,I)=>{(x===f||x.__emitterProxy&&x.__emitterProxy===f)&&d.eventsListeners[_].splice(I,1)})}),d},emit(){const u=this;if(!u.eventsListeners||u.destroyed||!u.eventsListeners)return u;let f,d,_;for(var x=arguments.length,I=new Array(x),E=0;E<x;E++)I[E]=arguments[E];return typeof I[0]=="string"||Array.isArray(I[0])?(f=I[0],d=I.slice(1,I.length),_=u):(f=I[0].events,d=I[0].data,_=I[0].context||u),d.unshift(_),(Array.isArray(f)?f:f.split(" ")).forEach(S=>{u.eventsAnyListeners&&u.eventsAnyListeners.length&&u.eventsAnyListeners.forEach(A=>{A.apply(_,[S,...d])}),u.eventsListeners&&u.eventsListeners[S]&&u.eventsListeners[S].forEach(A=>{A.apply(_,d)})}),u}};function updateSize$1(){const u=this;let f,d;const _=u.el;typeof u.params.width<"u"&&u.params.width!==null?f=u.params.width:f=_.clientWidth,typeof u.params.height<"u"&&u.params.height!==null?d=u.params.height:d=_.clientHeight,!(f===0&&u.isHorizontal()||d===0&&u.isVertical())&&(f=f-parseInt(elementStyle$1(_,"padding-left")||0,10)-parseInt(elementStyle$1(_,"padding-right")||0,10),d=d-parseInt(elementStyle$1(_,"padding-top")||0,10)-parseInt(elementStyle$1(_,"padding-bottom")||0,10),Number.isNaN(f)&&(f=0),Number.isNaN(d)&&(d=0),Object.assign(u,{width:f,height:d,size:u.isHorizontal()?f:d}))}function updateSlides$1(){const u=this;function f(ke,le){return parseFloat(ke.getPropertyValue(u.getDirectionLabel(le))||0)}const d=u.params,{wrapperEl:_,slidesEl:x,size:I,rtlTranslate:E,wrongRTL:M}=u,S=u.virtual&&d.virtual.enabled,A=S?u.virtual.slides.length:u.slides.length,T=elementChildren$1(x,`.${u.params.slideClass}, swiper-slide`),D=S?u.virtual.slides.length:T.length;let O=[];const j=[],$=[];let W=d.slidesOffsetBefore;typeof W=="function"&&(W=d.slidesOffsetBefore.call(u));let Q=d.slidesOffsetAfter;typeof Q=="function"&&(Q=d.slidesOffsetAfter.call(u));const X=u.snapGrid.length,Y=u.slidesGrid.length;let ie=d.spaceBetween,oe=-W,ge=0,be=0;if(typeof I>"u")return;typeof ie=="string"&&ie.indexOf("%")>=0?ie=parseFloat(ie.replace("%",""))/100*I:typeof ie=="string"&&(ie=parseFloat(ie)),u.virtualSize=-ie,T.forEach(ke=>{E?ke.style.marginLeft="":ke.style.marginRight="",ke.style.marginBottom="",ke.style.marginTop=""}),d.centeredSlides&&d.cssMode&&(setCSSProperty$1(_,"--swiper-centered-offset-before",""),setCSSProperty$1(_,"--swiper-centered-offset-after",""));const ze=d.grid&&d.grid.rows>1&&u.grid;ze?u.grid.initSlides(T):u.grid&&u.grid.unsetSlides();let de;const Ce=d.slidesPerView==="auto"&&d.breakpoints&&Object.keys(d.breakpoints).filter(ke=>typeof d.breakpoints[ke].slidesPerView<"u").length>0;for(let ke=0;ke<D;ke+=1){de=0;let le;if(T[ke]&&(le=T[ke]),ze&&u.grid.updateSlide(ke,le,T),!(T[ke]&&elementStyle$1(le,"display")==="none")){if(d.slidesPerView==="auto"){Ce&&(T[ke].style[u.getDirectionLabel("width")]="");const re=getComputedStyle(le),P=le.style.transform,k=le.style.webkitTransform;if(P&&(le.style.transform="none"),k&&(le.style.webkitTransform="none"),d.roundLengths)de=u.isHorizontal()?elementOuterSize$1(le,"width",!0):elementOuterSize$1(le,"height",!0);else{const B=f(re,"width"),z=f(re,"padding-left"),ee=f(re,"padding-right"),H=f(re,"margin-left"),q=f(re,"margin-right"),J=re.getPropertyValue("box-sizing");if(J&&J==="border-box")de=B+H+q;else{const{clientWidth:U,offsetWidth:Z}=le;de=B+z+ee+H+q+(Z-U)}}P&&(le.style.transform=P),k&&(le.style.webkitTransform=k),d.roundLengths&&(de=Math.floor(de))}else de=(I-(d.slidesPerView-1)*ie)/d.slidesPerView,d.roundLengths&&(de=Math.floor(de)),T[ke]&&(T[ke].style[u.getDirectionLabel("width")]=`${de}px`);T[ke]&&(T[ke].swiperSlideSize=de),$.push(de),d.centeredSlides?(oe=oe+de/2+ge/2+ie,ge===0&&ke!==0&&(oe=oe-I/2-ie),ke===0&&(oe=oe-I/2-ie),Math.abs(oe)<1/1e3&&(oe=0),d.roundLengths&&(oe=Math.floor(oe)),be%d.slidesPerGroup===0&&O.push(oe),j.push(oe)):(d.roundLengths&&(oe=Math.floor(oe)),(be-Math.min(u.params.slidesPerGroupSkip,be))%u.params.slidesPerGroup===0&&O.push(oe),j.push(oe),oe=oe+de+ie),u.virtualSize+=de+ie,ge=de,be+=1}}if(u.virtualSize=Math.max(u.virtualSize,I)+Q,E&&M&&(d.effect==="slide"||d.effect==="coverflow")&&(_.style.width=`${u.virtualSize+ie}px`),d.setWrapperSize&&(_.style[u.getDirectionLabel("width")]=`${u.virtualSize+ie}px`),ze&&u.grid.updateWrapperSize(de,O),!d.centeredSlides){const ke=[];for(let le=0;le<O.length;le+=1){let re=O[le];d.roundLengths&&(re=Math.floor(re)),O[le]<=u.virtualSize-I&&ke.push(re)}O=ke,Math.floor(u.virtualSize-I)-Math.floor(O[O.length-1])>1&&O.push(u.virtualSize-I)}if(S&&d.loop){const ke=$[0]+ie;if(d.slidesPerGroup>1){const le=Math.ceil((u.virtual.slidesBefore+u.virtual.slidesAfter)/d.slidesPerGroup),re=ke*d.slidesPerGroup;for(let P=0;P<le;P+=1)O.push(O[O.length-1]+re)}for(let le=0;le<u.virtual.slidesBefore+u.virtual.slidesAfter;le+=1)d.slidesPerGroup===1&&O.push(O[O.length-1]+ke),j.push(j[j.length-1]+ke),u.virtualSize+=ke}if(O.length===0&&(O=[0]),ie!==0){const ke=u.isHorizontal()&&E?"marginLeft":u.getDirectionLabel("marginRight");T.filter((le,re)=>!d.cssMode||d.loop?!0:re!==T.length-1).forEach(le=>{le.style[ke]=`${ie}px`})}if(d.centeredSlides&&d.centeredSlidesBounds){let ke=0;$.forEach(re=>{ke+=re+(ie||0)}),ke-=ie;const le=ke-I;O=O.map(re=>re<=0?-W:re>le?le+Q:re)}if(d.centerInsufficientSlides){let ke=0;if($.forEach(le=>{ke+=le+(ie||0)}),ke-=ie,ke<I){const le=(I-ke)/2;O.forEach((re,P)=>{O[P]=re-le}),j.forEach((re,P)=>{j[P]=re+le})}}if(Object.assign(u,{slides:T,snapGrid:O,slidesGrid:j,slidesSizesGrid:$}),d.centeredSlides&&d.cssMode&&!d.centeredSlidesBounds){setCSSProperty$1(_,"--swiper-centered-offset-before",`${-O[0]}px`),setCSSProperty$1(_,"--swiper-centered-offset-after",`${u.size/2-$[$.length-1]/2}px`);const ke=-u.snapGrid[0],le=-u.slidesGrid[0];u.snapGrid=u.snapGrid.map(re=>re+ke),u.slidesGrid=u.slidesGrid.map(re=>re+le)}if(D!==A&&u.emit("slidesLengthChange"),O.length!==X&&(u.params.watchOverflow&&u.checkOverflow(),u.emit("snapGridLengthChange")),j.length!==Y&&u.emit("slidesGridLengthChange"),d.watchSlidesProgress&&u.updateSlidesOffset(),u.emit("slidesUpdated"),!S&&!d.cssMode&&(d.effect==="slide"||d.effect==="fade")){const ke=`${d.containerModifierClass}backface-hidden`,le=u.el.classList.contains(ke);D<=d.maxBackfaceHiddenSlides?le||u.el.classList.add(ke):le&&u.el.classList.remove(ke)}}function updateAutoHeight$1(u){const f=this,d=[],_=f.virtual&&f.params.virtual.enabled;let x=0,I;typeof u=="number"?f.setTransition(u):u===!0&&f.setTransition(f.params.speed);const E=M=>_?f.slides[f.getSlideIndexByData(M)]:f.slides[M];if(f.params.slidesPerView!=="auto"&&f.params.slidesPerView>1)if(f.params.centeredSlides)(f.visibleSlides||[]).forEach(M=>{d.push(M)});else for(I=0;I<Math.ceil(f.params.slidesPerView);I+=1){const M=f.activeIndex+I;if(M>f.slides.length&&!_)break;d.push(E(M))}else d.push(E(f.activeIndex));for(I=0;I<d.length;I+=1)if(typeof d[I]<"u"){const M=d[I].offsetHeight;x=M>x?M:x}(x||x===0)&&(f.wrapperEl.style.height=`${x}px`)}function updateSlidesOffset$1(){const u=this,f=u.slides,d=u.isElement?u.isHorizontal()?u.wrapperEl.offsetLeft:u.wrapperEl.offsetTop:0;for(let _=0;_<f.length;_+=1)f[_].swiperSlideOffset=(u.isHorizontal()?f[_].offsetLeft:f[_].offsetTop)-d-u.cssOverflowAdjustment()}function updateSlidesProgress$1(u){u===void 0&&(u=this&&this.translate||0);const f=this,d=f.params,{slides:_,rtlTranslate:x,snapGrid:I}=f;if(_.length===0)return;typeof _[0].swiperSlideOffset>"u"&&f.updateSlidesOffset();let E=-u;x&&(E=u),_.forEach(S=>{S.classList.remove(d.slideVisibleClass,d.slideFullyVisibleClass)}),f.visibleSlidesIndexes=[],f.visibleSlides=[];let M=d.spaceBetween;typeof M=="string"&&M.indexOf("%")>=0?M=parseFloat(M.replace("%",""))/100*f.size:typeof M=="string"&&(M=parseFloat(M));for(let S=0;S<_.length;S+=1){const A=_[S];let T=A.swiperSlideOffset;d.cssMode&&d.centeredSlides&&(T-=_[0].swiperSlideOffset);const D=(E+(d.centeredSlides?f.minTranslate():0)-T)/(A.swiperSlideSize+M),O=(E-I[0]+(d.centeredSlides?f.minTranslate():0)-T)/(A.swiperSlideSize+M),j=-(E-T),$=j+f.slidesSizesGrid[S],W=j>=0&&j<=f.size-f.slidesSizesGrid[S];(j>=0&&j<f.size-1||$>1&&$<=f.size||j<=0&&$>=f.size)&&(f.visibleSlides.push(A),f.visibleSlidesIndexes.push(S),_[S].classList.add(d.slideVisibleClass)),W&&_[S].classList.add(d.slideFullyVisibleClass),A.progress=x?-D:D,A.originalProgress=x?-O:O}}function updateProgress$1(u){const f=this;if(typeof u>"u"){const T=f.rtlTranslate?-1:1;u=f&&f.translate&&f.translate*T||0}const d=f.params,_=f.maxTranslate()-f.minTranslate();let{progress:x,isBeginning:I,isEnd:E,progressLoop:M}=f;const S=I,A=E;if(_===0)x=0,I=!0,E=!0;else{x=(u-f.minTranslate())/_;const T=Math.abs(u-f.minTranslate())<1,D=Math.abs(u-f.maxTranslate())<1;I=T||x<=0,E=D||x>=1,T&&(x=0),D&&(x=1)}if(d.loop){const T=f.getSlideIndexByData(0),D=f.getSlideIndexByData(f.slides.length-1),O=f.slidesGrid[T],j=f.slidesGrid[D],$=f.slidesGrid[f.slidesGrid.length-1],W=Math.abs(u);W>=O?M=(W-O)/$:M=(W+$-j)/$,M>1&&(M-=1)}Object.assign(f,{progress:x,progressLoop:M,isBeginning:I,isEnd:E}),(d.watchSlidesProgress||d.centeredSlides&&d.autoHeight)&&f.updateSlidesProgress(u),I&&!S&&f.emit("reachBeginning toEdge"),E&&!A&&f.emit("reachEnd toEdge"),(S&&!I||A&&!E)&&f.emit("fromEdge"),f.emit("progress",x)}function updateSlidesClasses$1(){const u=this,{slides:f,params:d,slidesEl:_,activeIndex:x}=u,I=u.virtual&&d.virtual.enabled,E=u.grid&&d.grid&&d.grid.rows>1,M=D=>elementChildren$1(_,`.${d.slideClass}${D}, swiper-slide${D}`)[0];f.forEach(D=>{D.classList.remove(d.slideActiveClass,d.slideNextClass,d.slidePrevClass)});let S,A,T;if(I)if(d.loop){let D=x-u.virtual.slidesBefore;D<0&&(D=u.virtual.slides.length+D),D>=u.virtual.slides.length&&(D-=u.virtual.slides.length),S=M(`[data-swiper-slide-index="${D}"]`)}else S=M(`[data-swiper-slide-index="${x}"]`);else E?(S=f.filter(D=>D.column===x)[0],T=f.filter(D=>D.column===x+1)[0],A=f.filter(D=>D.column===x-1)[0]):S=f[x];S&&(S.classList.add(d.slideActiveClass),E?(T&&T.classList.add(d.slideNextClass),A&&A.classList.add(d.slidePrevClass)):(T=elementNextAll$1(S,`.${d.slideClass}, swiper-slide`)[0],d.loop&&!T&&(T=f[0]),T&&T.classList.add(d.slideNextClass),A=elementPrevAll$1(S,`.${d.slideClass}, swiper-slide`)[0],d.loop&&!A===0&&(A=f[f.length-1]),A&&A.classList.add(d.slidePrevClass))),u.emitSlidesClasses()}const processLazyPreloader$1=(u,f)=>{if(!u||u.destroyed||!u.params)return;const d=()=>u.isElement?"swiper-slide":`.${u.params.slideClass}`,_=f.closest(d());if(_){let x=_.querySelector(`.${u.params.lazyPreloaderClass}`);!x&&u.isElement&&(_.shadowRoot?x=_.shadowRoot.querySelector(`.${u.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{_.shadowRoot&&(x=_.shadowRoot.querySelector(`.${u.params.lazyPreloaderClass}`),x&&x.remove())})),x&&x.remove()}},unlazy$1=(u,f)=>{if(!u.slides[f])return;const d=u.slides[f].querySelector('[loading="lazy"]');d&&d.removeAttribute("loading")},preload$1=u=>{if(!u||u.destroyed||!u.params)return;let f=u.params.lazyPreloadPrevNext;const d=u.slides.length;if(!d||!f||f<0)return;f=Math.min(f,d);const _=u.params.slidesPerView==="auto"?u.slidesPerViewDynamic():Math.ceil(u.params.slidesPerView),x=u.activeIndex;if(u.params.grid&&u.params.grid.rows>1){const E=x,M=[E-f];M.push(...Array.from({length:f}).map((S,A)=>E+_+A)),u.slides.forEach((S,A)=>{M.includes(S.column)&&unlazy$1(u,A)});return}const I=x+_-1;if(u.params.rewind||u.params.loop)for(let E=x-f;E<=I+f;E+=1){const M=(E%d+d)%d;(M<x||M>I)&&unlazy$1(u,M)}else for(let E=Math.max(x-f,0);E<=Math.min(I+f,d-1);E+=1)E!==x&&(E>I||E<x)&&unlazy$1(u,E)};function getActiveIndexByTranslate$1(u){const{slidesGrid:f,params:d}=u,_=u.rtlTranslate?u.translate:-u.translate;let x;for(let I=0;I<f.length;I+=1)typeof f[I+1]<"u"?_>=f[I]&&_<f[I+1]-(f[I+1]-f[I])/2?x=I:_>=f[I]&&_<f[I+1]&&(x=I+1):_>=f[I]&&(x=I);return d.normalizeSlideIndex&&(x<0||typeof x>"u")&&(x=0),x}function updateActiveIndex$1(u){const f=this,d=f.rtlTranslate?f.translate:-f.translate,{snapGrid:_,params:x,activeIndex:I,realIndex:E,snapIndex:M}=f;let S=u,A;const T=j=>{let $=j-f.virtual.slidesBefore;return $<0&&($=f.virtual.slides.length+$),$>=f.virtual.slides.length&&($-=f.virtual.slides.length),$};if(typeof S>"u"&&(S=getActiveIndexByTranslate$1(f)),_.indexOf(d)>=0)A=_.indexOf(d);else{const j=Math.min(x.slidesPerGroupSkip,S);A=j+Math.floor((S-j)/x.slidesPerGroup)}if(A>=_.length&&(A=_.length-1),S===I&&!f.params.loop){A!==M&&(f.snapIndex=A,f.emit("snapIndexChange"));return}if(S===I&&f.params.loop&&f.virtual&&f.params.virtual.enabled){f.realIndex=T(S);return}const D=f.grid&&x.grid&&x.grid.rows>1;let O;if(f.virtual&&x.virtual.enabled&&x.loop)O=T(S);else if(D){const j=f.slides.filter(W=>W.column===S)[0];let $=parseInt(j.getAttribute("data-swiper-slide-index"),10);Number.isNaN($)&&($=Math.max(f.slides.indexOf(j),0)),O=Math.floor($/x.grid.rows)}else if(f.slides[S]){const j=f.slides[S].getAttribute("data-swiper-slide-index");j?O=parseInt(j,10):O=S}else O=S;Object.assign(f,{previousSnapIndex:M,snapIndex:A,previousRealIndex:E,realIndex:O,previousIndex:I,activeIndex:S}),f.initialized&&preload$1(f),f.emit("activeIndexChange"),f.emit("snapIndexChange"),(f.initialized||f.params.runCallbacksOnInit)&&(E!==O&&f.emit("realIndexChange"),f.emit("slideChange"))}function updateClickedSlide$1(u,f){const d=this,_=d.params;let x=u.closest(`.${_.slideClass}, swiper-slide`);!x&&d.isElement&&f&&f.length>1&&f.includes(u)&&[...f.slice(f.indexOf(u)+1,f.length)].forEach(M=>{!x&&M.matches&&M.matches(`.${_.slideClass}, swiper-slide`)&&(x=M)});let I=!1,E;if(x){for(let M=0;M<d.slides.length;M+=1)if(d.slides[M]===x){I=!0,E=M;break}}if(x&&I)d.clickedSlide=x,d.virtual&&d.params.virtual.enabled?d.clickedIndex=parseInt(x.getAttribute("data-swiper-slide-index"),10):d.clickedIndex=E;else{d.clickedSlide=void 0,d.clickedIndex=void 0;return}_.slideToClickedSlide&&d.clickedIndex!==void 0&&d.clickedIndex!==d.activeIndex&&d.slideToClickedSlide()}var update$1={updateSize:updateSize$1,updateSlides:updateSlides$1,updateAutoHeight:updateAutoHeight$1,updateSlidesOffset:updateSlidesOffset$1,updateSlidesProgress:updateSlidesProgress$1,updateProgress:updateProgress$1,updateSlidesClasses:updateSlidesClasses$1,updateActiveIndex:updateActiveIndex$1,updateClickedSlide:updateClickedSlide$1};function getSwiperTranslate$1(u){u===void 0&&(u=this.isHorizontal()?"x":"y");const f=this,{params:d,rtlTranslate:_,translate:x,wrapperEl:I}=f;if(d.virtualTranslate)return _?-x:x;if(d.cssMode)return x;let E=getTranslate$1(I,u);return E+=f.cssOverflowAdjustment(),_&&(E=-E),E||0}function setTranslate$1(u,f){const d=this,{rtlTranslate:_,params:x,wrapperEl:I,progress:E}=d;let M=0,S=0;const A=0;d.isHorizontal()?M=_?-u:u:S=u,x.roundLengths&&(M=Math.floor(M),S=Math.floor(S)),d.previousTranslate=d.translate,d.translate=d.isHorizontal()?M:S,x.cssMode?I[d.isHorizontal()?"scrollLeft":"scrollTop"]=d.isHorizontal()?-M:-S:x.virtualTranslate||(d.isHorizontal()?M-=d.cssOverflowAdjustment():S-=d.cssOverflowAdjustment(),I.style.transform=`translate3d(${M}px, ${S}px, ${A}px)`);let T;const D=d.maxTranslate()-d.minTranslate();D===0?T=0:T=(u-d.minTranslate())/D,T!==E&&d.updateProgress(u),d.emit("setTranslate",d.translate,f)}function minTranslate$1(){return-this.snapGrid[0]}function maxTranslate$1(){return-this.snapGrid[this.snapGrid.length-1]}function translateTo$1(u,f,d,_,x){u===void 0&&(u=0),f===void 0&&(f=this.params.speed),d===void 0&&(d=!0),_===void 0&&(_=!0);const I=this,{params:E,wrapperEl:M}=I;if(I.animating&&E.preventInteractionOnTransition)return!1;const S=I.minTranslate(),A=I.maxTranslate();let T;if(_&&u>S?T=S:_&&u<A?T=A:T=u,I.updateProgress(T),E.cssMode){const D=I.isHorizontal();if(f===0)M[D?"scrollLeft":"scrollTop"]=-T;else{if(!I.support.smoothScroll)return animateCSSModeScroll$1({swiper:I,targetPosition:-T,side:D?"left":"top"}),!0;M.scrollTo({[D?"left":"top"]:-T,behavior:"smooth"})}return!0}return f===0?(I.setTransition(0),I.setTranslate(T),d&&(I.emit("beforeTransitionStart",f,x),I.emit("transitionEnd"))):(I.setTransition(f),I.setTranslate(T),d&&(I.emit("beforeTransitionStart",f,x),I.emit("transitionStart")),I.animating||(I.animating=!0,I.onTranslateToWrapperTransitionEnd||(I.onTranslateToWrapperTransitionEnd=function(O){!I||I.destroyed||O.target===this&&(I.wrapperEl.removeEventListener("transitionend",I.onTranslateToWrapperTransitionEnd),I.onTranslateToWrapperTransitionEnd=null,delete I.onTranslateToWrapperTransitionEnd,d&&I.emit("transitionEnd"))}),I.wrapperEl.addEventListener("transitionend",I.onTranslateToWrapperTransitionEnd))),!0}var translate$2={getTranslate:getSwiperTranslate$1,setTranslate:setTranslate$1,minTranslate:minTranslate$1,maxTranslate:maxTranslate$1,translateTo:translateTo$1};function setTransition$1(u,f){const d=this;d.params.cssMode||(d.wrapperEl.style.transitionDuration=`${u}ms`,d.wrapperEl.style.transitionDelay=u===0?"0ms":""),d.emit("setTransition",u,f)}function transitionEmit$1(u){let{swiper:f,runCallbacks:d,direction:_,step:x}=u;const{activeIndex:I,previousIndex:E}=f;let M=_;if(M||(I>E?M="next":I<E?M="prev":M="reset"),f.emit(`transition${x}`),d&&I!==E){if(M==="reset"){f.emit(`slideResetTransition${x}`);return}f.emit(`slideChangeTransition${x}`),M==="next"?f.emit(`slideNextTransition${x}`):f.emit(`slidePrevTransition${x}`)}}function transitionStart$1(u,f){u===void 0&&(u=!0);const d=this,{params:_}=d;_.cssMode||(_.autoHeight&&d.updateAutoHeight(),transitionEmit$1({swiper:d,runCallbacks:u,direction:f,step:"Start"}))}function transitionEnd$1(u,f){u===void 0&&(u=!0);const d=this,{params:_}=d;d.animating=!1,!_.cssMode&&(d.setTransition(0),transitionEmit$1({swiper:d,runCallbacks:u,direction:f,step:"End"}))}var transition$1={setTransition:setTransition$1,transitionStart:transitionStart$1,transitionEnd:transitionEnd$1};function slideTo$1(u,f,d,_,x){u===void 0&&(u=0),f===void 0&&(f=this.params.speed),d===void 0&&(d=!0),typeof u=="string"&&(u=parseInt(u,10));const I=this;let E=u;E<0&&(E=0);const{params:M,snapGrid:S,slidesGrid:A,previousIndex:T,activeIndex:D,rtlTranslate:O,wrapperEl:j,enabled:$}=I;if(I.animating&&M.preventInteractionOnTransition||!$&&!_&&!x||I.destroyed)return!1;const W=Math.min(I.params.slidesPerGroupSkip,E);let Q=W+Math.floor((E-W)/I.params.slidesPerGroup);Q>=S.length&&(Q=S.length-1);const X=-S[Q];if(M.normalizeSlideIndex)for(let ie=0;ie<A.length;ie+=1){const oe=-Math.floor(X*100),ge=Math.floor(A[ie]*100),be=Math.floor(A[ie+1]*100);typeof A[ie+1]<"u"?oe>=ge&&oe<be-(be-ge)/2?E=ie:oe>=ge&&oe<be&&(E=ie+1):oe>=ge&&(E=ie)}if(I.initialized&&E!==D&&(!I.allowSlideNext&&(O?X>I.translate&&X>I.minTranslate():X<I.translate&&X<I.minTranslate())||!I.allowSlidePrev&&X>I.translate&&X>I.maxTranslate()&&(D||0)!==E))return!1;E!==(T||0)&&d&&I.emit("beforeSlideChangeStart"),I.updateProgress(X);let Y;if(E>D?Y="next":E<D?Y="prev":Y="reset",O&&-X===I.translate||!O&&X===I.translate)return I.updateActiveIndex(E),M.autoHeight&&I.updateAutoHeight(),I.updateSlidesClasses(),M.effect!=="slide"&&I.setTranslate(X),Y!=="reset"&&(I.transitionStart(d,Y),I.transitionEnd(d,Y)),!1;if(M.cssMode){const ie=I.isHorizontal(),oe=O?X:-X;if(f===0){const ge=I.virtual&&I.params.virtual.enabled;ge&&(I.wrapperEl.style.scrollSnapType="none",I._immediateVirtual=!0),ge&&!I._cssModeVirtualInitialSet&&I.params.initialSlide>0?(I._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{j[ie?"scrollLeft":"scrollTop"]=oe})):j[ie?"scrollLeft":"scrollTop"]=oe,ge&&requestAnimationFrame(()=>{I.wrapperEl.style.scrollSnapType="",I._immediateVirtual=!1})}else{if(!I.support.smoothScroll)return animateCSSModeScroll$1({swiper:I,targetPosition:oe,side:ie?"left":"top"}),!0;j.scrollTo({[ie?"left":"top"]:oe,behavior:"smooth"})}return!0}return I.setTransition(f),I.setTranslate(X),I.updateActiveIndex(E),I.updateSlidesClasses(),I.emit("beforeTransitionStart",f,_),I.transitionStart(d,Y),f===0?I.transitionEnd(d,Y):I.animating||(I.animating=!0,I.onSlideToWrapperTransitionEnd||(I.onSlideToWrapperTransitionEnd=function(oe){!I||I.destroyed||oe.target===this&&(I.wrapperEl.removeEventListener("transitionend",I.onSlideToWrapperTransitionEnd),I.onSlideToWrapperTransitionEnd=null,delete I.onSlideToWrapperTransitionEnd,I.transitionEnd(d,Y))}),I.wrapperEl.addEventListener("transitionend",I.onSlideToWrapperTransitionEnd)),!0}function slideToLoop$1(u,f,d,_){u===void 0&&(u=0),f===void 0&&(f=this.params.speed),d===void 0&&(d=!0),typeof u=="string"&&(u=parseInt(u,10));const x=this;if(x.destroyed)return;const I=x.grid&&x.params.grid&&x.params.grid.rows>1;let E=u;if(x.params.loop)if(x.virtual&&x.params.virtual.enabled)E=E+x.virtual.slidesBefore;else{let M;if(I){const O=E*x.params.grid.rows;M=x.slides.filter(j=>j.getAttribute("data-swiper-slide-index")*1===O)[0].column}else M=x.getSlideIndexByData(E);const S=I?Math.ceil(x.slides.length/x.params.grid.rows):x.slides.length,{centeredSlides:A}=x.params;let T=x.params.slidesPerView;T==="auto"?T=x.slidesPerViewDynamic():(T=Math.ceil(parseFloat(x.params.slidesPerView,10)),A&&T%2===0&&(T=T+1));let D=S-M<T;if(A&&(D=D||M<Math.ceil(T/2)),D){const O=A?M<x.activeIndex?"prev":"next":M-x.activeIndex-1<x.params.slidesPerView?"next":"prev";x.loopFix({direction:O,slideTo:!0,activeSlideIndex:O==="next"?M+1:M-S+1,slideRealIndex:O==="next"?x.realIndex:void 0})}if(I){const O=E*x.params.grid.rows;E=x.slides.filter(j=>j.getAttribute("data-swiper-slide-index")*1===O)[0].column}else E=x.getSlideIndexByData(E)}return requestAnimationFrame(()=>{x.slideTo(E,f,d,_)}),x}function slideNext$1(u,f,d){u===void 0&&(u=this.params.speed),f===void 0&&(f=!0);const _=this,{enabled:x,params:I,animating:E}=_;if(!x||_.destroyed)return _;let M=I.slidesPerGroup;I.slidesPerView==="auto"&&I.slidesPerGroup===1&&I.slidesPerGroupAuto&&(M=Math.max(_.slidesPerViewDynamic("current",!0),1));const S=_.activeIndex<I.slidesPerGroupSkip?1:M,A=_.virtual&&I.virtual.enabled;if(I.loop){if(E&&!A&&I.loopPreventsSliding)return!1;if(_.loopFix({direction:"next"}),_._clientLeft=_.wrapperEl.clientLeft,_.activeIndex===_.slides.length-1&&I.cssMode)return requestAnimationFrame(()=>{_.slideTo(_.activeIndex+S,u,f,d)}),!0}return I.rewind&&_.isEnd?_.slideTo(0,u,f,d):_.slideTo(_.activeIndex+S,u,f,d)}function slidePrev$1(u,f,d){u===void 0&&(u=this.params.speed),f===void 0&&(f=!0);const _=this,{params:x,snapGrid:I,slidesGrid:E,rtlTranslate:M,enabled:S,animating:A}=_;if(!S||_.destroyed)return _;const T=_.virtual&&x.virtual.enabled;if(x.loop){if(A&&!T&&x.loopPreventsSliding)return!1;_.loopFix({direction:"prev"}),_._clientLeft=_.wrapperEl.clientLeft}const D=M?_.translate:-_.translate;function O(X){return X<0?-Math.floor(Math.abs(X)):Math.floor(X)}const j=O(D),$=I.map(X=>O(X));let W=I[$.indexOf(j)-1];if(typeof W>"u"&&x.cssMode){let X;I.forEach((Y,ie)=>{j>=Y&&(X=ie)}),typeof X<"u"&&(W=I[X>0?X-1:X])}let Q=0;if(typeof W<"u"&&(Q=E.indexOf(W),Q<0&&(Q=_.activeIndex-1),x.slidesPerView==="auto"&&x.slidesPerGroup===1&&x.slidesPerGroupAuto&&(Q=Q-_.slidesPerViewDynamic("previous",!0)+1,Q=Math.max(Q,0))),x.rewind&&_.isBeginning){const X=_.params.virtual&&_.params.virtual.enabled&&_.virtual?_.virtual.slides.length-1:_.slides.length-1;return _.slideTo(X,u,f,d)}else if(x.loop&&_.activeIndex===0&&x.cssMode)return requestAnimationFrame(()=>{_.slideTo(Q,u,f,d)}),!0;return _.slideTo(Q,u,f,d)}function slideReset$1(u,f,d){u===void 0&&(u=this.params.speed),f===void 0&&(f=!0);const _=this;if(!_.destroyed)return _.slideTo(_.activeIndex,u,f,d)}function slideToClosest$1(u,f,d,_){u===void 0&&(u=this.params.speed),f===void 0&&(f=!0),_===void 0&&(_=.5);const x=this;if(x.destroyed)return;let I=x.activeIndex;const E=Math.min(x.params.slidesPerGroupSkip,I),M=E+Math.floor((I-E)/x.params.slidesPerGroup),S=x.rtlTranslate?x.translate:-x.translate;if(S>=x.snapGrid[M]){const A=x.snapGrid[M],T=x.snapGrid[M+1];S-A>(T-A)*_&&(I+=x.params.slidesPerGroup)}else{const A=x.snapGrid[M-1],T=x.snapGrid[M];S-A<=(T-A)*_&&(I-=x.params.slidesPerGroup)}return I=Math.max(I,0),I=Math.min(I,x.slidesGrid.length-1),x.slideTo(I,u,f,d)}function slideToClickedSlide$1(){const u=this;if(u.destroyed)return;const{params:f,slidesEl:d}=u,_=f.slidesPerView==="auto"?u.slidesPerViewDynamic():f.slidesPerView;let x=u.clickedIndex,I;const E=u.isElement?"swiper-slide":`.${f.slideClass}`;if(f.loop){if(u.animating)return;I=parseInt(u.clickedSlide.getAttribute("data-swiper-slide-index"),10),f.centeredSlides?x<u.loopedSlides-_/2||x>u.slides.length-u.loopedSlides+_/2?(u.loopFix(),x=u.getSlideIndex(elementChildren$1(d,`${E}[data-swiper-slide-index="${I}"]`)[0]),nextTick$1(()=>{u.slideTo(x)})):u.slideTo(x):x>u.slides.length-_?(u.loopFix(),x=u.getSlideIndex(elementChildren$1(d,`${E}[data-swiper-slide-index="${I}"]`)[0]),nextTick$1(()=>{u.slideTo(x)})):u.slideTo(x)}else u.slideTo(x)}var slide$1={slideTo:slideTo$1,slideToLoop:slideToLoop$1,slideNext:slideNext$1,slidePrev:slidePrev$1,slideReset:slideReset$1,slideToClosest:slideToClosest$1,slideToClickedSlide:slideToClickedSlide$1};function loopCreate$1(u){const f=this,{params:d,slidesEl:_}=f;if(!d.loop||f.virtual&&f.params.virtual.enabled)return;const x=()=>{elementChildren$1(_,`.${d.slideClass}, swiper-slide`).forEach((D,O)=>{D.setAttribute("data-swiper-slide-index",O)})},I=f.grid&&d.grid&&d.grid.rows>1,E=d.slidesPerGroup*(I?d.grid.rows:1),M=f.slides.length%E!==0,S=I&&f.slides.length%d.grid.rows!==0,A=T=>{for(let D=0;D<T;D+=1){const O=f.isElement?createElement$1("swiper-slide",[d.slideBlankClass]):createElement$1("div",[d.slideClass,d.slideBlankClass]);f.slidesEl.append(O)}};if(M){if(d.loopAddBlankSlides){const T=E-f.slides.length%E;A(T),f.recalcSlides(),f.updateSlides()}else showWarning$1("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");x()}else if(S){if(d.loopAddBlankSlides){const T=d.grid.rows-f.slides.length%d.grid.rows;A(T),f.recalcSlides(),f.updateSlides()}else showWarning$1("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");x()}else x();f.loopFix({slideRealIndex:u,direction:d.centeredSlides?void 0:"next"})}function loopFix$1(u){let{slideRealIndex:f,slideTo:d=!0,direction:_,setTranslate:x,activeSlideIndex:I,byController:E,byMousewheel:M}=u===void 0?{}:u;const S=this;if(!S.params.loop)return;S.emit("beforeLoopFix");const{slides:A,allowSlidePrev:T,allowSlideNext:D,slidesEl:O,params:j}=S,{centeredSlides:$}=j;if(S.allowSlidePrev=!0,S.allowSlideNext=!0,S.virtual&&j.virtual.enabled){d&&(!j.centeredSlides&&S.snapIndex===0?S.slideTo(S.virtual.slides.length,0,!1,!0):j.centeredSlides&&S.snapIndex<j.slidesPerView?S.slideTo(S.virtual.slides.length+S.snapIndex,0,!1,!0):S.snapIndex===S.snapGrid.length-1&&S.slideTo(S.virtual.slidesBefore,0,!1,!0)),S.allowSlidePrev=T,S.allowSlideNext=D,S.emit("loopFix");return}let W=j.slidesPerView;W==="auto"?W=S.slidesPerViewDynamic():(W=Math.ceil(parseFloat(j.slidesPerView,10)),$&&W%2===0&&(W=W+1));const Q=j.slidesPerGroupAuto?W:j.slidesPerGroup;let X=Q;X%Q!==0&&(X+=Q-X%Q),X+=j.loopAdditionalSlides,S.loopedSlides=X;const Y=S.grid&&j.grid&&j.grid.rows>1;A.length<W+X?showWarning$1("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled and not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):Y&&j.grid.fill==="row"&&showWarning$1("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const ie=[],oe=[];let ge=S.activeIndex;typeof I>"u"?I=S.getSlideIndex(A.filter(P=>P.classList.contains(j.slideActiveClass))[0]):ge=I;const be=_==="next"||!_,ze=_==="prev"||!_;let de=0,Ce=0;const ke=Y?Math.ceil(A.length/j.grid.rows):A.length,re=(Y?A[I].column:I)+($&&typeof x>"u"?-W/2+.5:0);if(re<X){de=Math.max(X-re,Q);for(let P=0;P<X-re;P+=1){const k=P-Math.floor(P/ke)*ke;if(Y){const B=ke-k-1;for(let z=A.length-1;z>=0;z-=1)A[z].column===B&&ie.push(z)}else ie.push(ke-k-1)}}else if(re+W>ke-X){Ce=Math.max(re-(ke-X*2),Q);for(let P=0;P<Ce;P+=1){const k=P-Math.floor(P/ke)*ke;Y?A.forEach((B,z)=>{B.column===k&&oe.push(z)}):oe.push(k)}}if(S.__preventObserver__=!0,requestAnimationFrame(()=>{S.__preventObserver__=!1}),ze&&ie.forEach(P=>{A[P].swiperLoopMoveDOM=!0,O.prepend(A[P]),A[P].swiperLoopMoveDOM=!1}),be&&oe.forEach(P=>{A[P].swiperLoopMoveDOM=!0,O.append(A[P]),A[P].swiperLoopMoveDOM=!1}),S.recalcSlides(),j.slidesPerView==="auto"?S.updateSlides():Y&&(ie.length>0&&ze||oe.length>0&&be)&&S.slides.forEach((P,k)=>{S.grid.updateSlide(k,P,S.slides)}),j.watchSlidesProgress&&S.updateSlidesOffset(),d){if(ie.length>0&&ze){if(typeof f>"u"){const P=S.slidesGrid[ge],B=S.slidesGrid[ge+de]-P;M?S.setTranslate(S.translate-B):(S.slideTo(ge+Math.ceil(de),0,!1,!0),x&&(S.touchEventsData.startTranslate=S.touchEventsData.startTranslate-B,S.touchEventsData.currentTranslate=S.touchEventsData.currentTranslate-B))}else if(x){const P=Y?ie.length/j.grid.rows:ie.length;S.slideTo(S.activeIndex+P,0,!1,!0),S.touchEventsData.currentTranslate=S.translate}}else if(oe.length>0&&be)if(typeof f>"u"){const P=S.slidesGrid[ge],B=S.slidesGrid[ge-Ce]-P;M?S.setTranslate(S.translate-B):(S.slideTo(ge-Ce,0,!1,!0),x&&(S.touchEventsData.startTranslate=S.touchEventsData.startTranslate-B,S.touchEventsData.currentTranslate=S.touchEventsData.currentTranslate-B))}else{const P=Y?oe.length/j.grid.rows:oe.length;S.slideTo(S.activeIndex-P,0,!1,!0)}}if(S.allowSlidePrev=T,S.allowSlideNext=D,S.controller&&S.controller.control&&!E){const P={slideRealIndex:f,direction:_,setTranslate:x,activeSlideIndex:I,byController:!0};Array.isArray(S.controller.control)?S.controller.control.forEach(k=>{!k.destroyed&&k.params.loop&&k.loopFix({...P,slideTo:k.params.slidesPerView===j.slidesPerView?d:!1})}):S.controller.control instanceof S.constructor&&S.controller.control.params.loop&&S.controller.control.loopFix({...P,slideTo:S.controller.control.params.slidesPerView===j.slidesPerView?d:!1})}S.emit("loopFix")}function loopDestroy$1(){const u=this,{params:f,slidesEl:d}=u;if(!f.loop||u.virtual&&u.params.virtual.enabled)return;u.recalcSlides();const _=[];u.slides.forEach(x=>{const I=typeof x.swiperSlideIndex>"u"?x.getAttribute("data-swiper-slide-index")*1:x.swiperSlideIndex;_[I]=x}),u.slides.forEach(x=>{x.removeAttribute("data-swiper-slide-index")}),_.forEach(x=>{d.append(x)}),u.recalcSlides(),u.slideTo(u.realIndex,0)}var loop$1={loopCreate:loopCreate$1,loopFix:loopFix$1,loopDestroy:loopDestroy$1};function setGrabCursor$1(u){const f=this;if(!f.params.simulateTouch||f.params.watchOverflow&&f.isLocked||f.params.cssMode)return;const d=f.params.touchEventsTarget==="container"?f.el:f.wrapperEl;f.isElement&&(f.__preventObserver__=!0),d.style.cursor="move",d.style.cursor=u?"grabbing":"grab",f.isElement&&requestAnimationFrame(()=>{f.__preventObserver__=!1})}function unsetGrabCursor$1(){const u=this;u.params.watchOverflow&&u.isLocked||u.params.cssMode||(u.isElement&&(u.__preventObserver__=!0),u[u.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",u.isElement&&requestAnimationFrame(()=>{u.__preventObserver__=!1}))}var grabCursor$1={setGrabCursor:setGrabCursor$1,unsetGrabCursor:unsetGrabCursor$1};function closestElement$1(u,f){f===void 0&&(f=this);function d(_){if(!_||_===getDocument$1()||_===getWindow$2())return null;_.assignedSlot&&(_=_.assignedSlot);const x=_.closest(u);return!x&&!_.getRootNode?null:x||d(_.getRootNode().host)}return d(f)}function preventEdgeSwipe$1(u,f,d){const _=getWindow$2(),{params:x}=u,I=x.edgeSwipeDetection,E=x.edgeSwipeThreshold;return I&&(d<=E||d>=_.innerWidth-E)?I==="prevent"?(f.preventDefault(),!0):!1:!0}function onTouchStart$1(u){const f=this,d=getDocument$1();let _=u;_.originalEvent&&(_=_.originalEvent);const x=f.touchEventsData;if(_.type==="pointerdown"){if(x.pointerId!==null&&x.pointerId!==_.pointerId)return;x.pointerId=_.pointerId}else _.type==="touchstart"&&_.targetTouches.length===1&&(x.touchId=_.targetTouches[0].identifier);if(_.type==="touchstart"){preventEdgeSwipe$1(f,_,_.targetTouches[0].pageX);return}const{params:I,touches:E,enabled:M}=f;if(!M||!I.simulateTouch&&_.pointerType==="mouse"||f.animating&&I.preventInteractionOnTransition)return;!f.animating&&I.cssMode&&I.loop&&f.loopFix();let S=_.target;if(I.touchEventsTarget==="wrapper"&&!f.wrapperEl.contains(S)||"which"in _&&_.which===3||"button"in _&&_.button>0||x.isTouched&&x.isMoved)return;const A=!!I.noSwipingClass&&I.noSwipingClass!=="",T=_.composedPath?_.composedPath():_.path;A&&_.target&&_.target.shadowRoot&&T&&(S=T[0]);const D=I.noSwipingSelector?I.noSwipingSelector:`.${I.noSwipingClass}`,O=!!(_.target&&_.target.shadowRoot);if(I.noSwiping&&(O?closestElement$1(D,S):S.closest(D))){f.allowClick=!0;return}if(I.swipeHandler&&!S.closest(I.swipeHandler))return;E.currentX=_.pageX,E.currentY=_.pageY;const j=E.currentX,$=E.currentY;if(!preventEdgeSwipe$1(f,_,j))return;Object.assign(x,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),E.startX=j,E.startY=$,x.touchStartTime=now$2(),f.allowClick=!0,f.updateSize(),f.swipeDirection=void 0,I.threshold>0&&(x.allowThresholdMove=!1);let W=!0;S.matches(x.focusableElements)&&(W=!1,S.nodeName==="SELECT"&&(x.isTouched=!1)),d.activeElement&&d.activeElement.matches(x.focusableElements)&&d.activeElement!==S&&d.activeElement.blur();const Q=W&&f.allowTouchMove&&I.touchStartPreventDefault;(I.touchStartForcePreventDefault||Q)&&!S.isContentEditable&&_.preventDefault(),I.freeMode&&I.freeMode.enabled&&f.freeMode&&f.animating&&!I.cssMode&&f.freeMode.onTouchStart(),f.emit("touchStart",_)}function onTouchMove$1(u){const f=getDocument$1(),d=this,_=d.touchEventsData,{params:x,touches:I,rtlTranslate:E,enabled:M}=d;if(!M||!x.simulateTouch&&u.pointerType==="mouse")return;let S=u;if(S.originalEvent&&(S=S.originalEvent),S.type==="pointermove"&&(_.touchId!==null||S.pointerId!==_.pointerId))return;let A;if(S.type==="touchmove"){if(A=[...S.changedTouches].filter(be=>be.identifier===_.touchId)[0],!A||A.identifier!==_.touchId)return}else A=S;if(!_.isTouched){_.startMoving&&_.isScrolling&&d.emit("touchMoveOpposite",S);return}const T=A.pageX,D=A.pageY;if(S.preventedByNestedSwiper){I.startX=T,I.startY=D;return}if(!d.allowTouchMove){S.target.matches(_.focusableElements)||(d.allowClick=!1),_.isTouched&&(Object.assign(I,{startX:T,startY:D,currentX:T,currentY:D}),_.touchStartTime=now$2());return}if(x.touchReleaseOnEdges&&!x.loop){if(d.isVertical()){if(D<I.startY&&d.translate<=d.maxTranslate()||D>I.startY&&d.translate>=d.minTranslate()){_.isTouched=!1,_.isMoved=!1;return}}else if(T<I.startX&&d.translate<=d.maxTranslate()||T>I.startX&&d.translate>=d.minTranslate())return}if(f.activeElement&&S.target===f.activeElement&&S.target.matches(_.focusableElements)){_.isMoved=!0,d.allowClick=!1;return}_.allowTouchCallbacks&&d.emit("touchMove",S),I.previousX=I.currentX,I.previousY=I.currentY,I.currentX=T,I.currentY=D;const O=I.currentX-I.startX,j=I.currentY-I.startY;if(d.params.threshold&&Math.sqrt(O**2+j**2)<d.params.threshold)return;if(typeof _.isScrolling>"u"){let be;d.isHorizontal()&&I.currentY===I.startY||d.isVertical()&&I.currentX===I.startX?_.isScrolling=!1:O*O+j*j>=25&&(be=Math.atan2(Math.abs(j),Math.abs(O))*180/Math.PI,_.isScrolling=d.isHorizontal()?be>x.touchAngle:90-be>x.touchAngle)}if(_.isScrolling&&d.emit("touchMoveOpposite",S),typeof _.startMoving>"u"&&(I.currentX!==I.startX||I.currentY!==I.startY)&&(_.startMoving=!0),_.isScrolling){_.isTouched=!1;return}if(!_.startMoving)return;d.allowClick=!1,!x.cssMode&&S.cancelable&&S.preventDefault(),x.touchMoveStopPropagation&&!x.nested&&S.stopPropagation();let $=d.isHorizontal()?O:j,W=d.isHorizontal()?I.currentX-I.previousX:I.currentY-I.previousY;x.oneWayMovement&&($=Math.abs($)*(E?1:-1),W=Math.abs(W)*(E?1:-1)),I.diff=$,$*=x.touchRatio,E&&($=-$,W=-W);const Q=d.touchesDirection;d.swipeDirection=$>0?"prev":"next",d.touchesDirection=W>0?"prev":"next";const X=d.params.loop&&!x.cssMode,Y=d.touchesDirection==="next"&&d.allowSlideNext||d.touchesDirection==="prev"&&d.allowSlidePrev;if(!_.isMoved){if(X&&Y&&d.loopFix({direction:d.swipeDirection}),_.startTranslate=d.getTranslate(),d.setTransition(0),d.animating){const be=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});d.wrapperEl.dispatchEvent(be)}_.allowMomentumBounce=!1,x.grabCursor&&(d.allowSlideNext===!0||d.allowSlidePrev===!0)&&d.setGrabCursor(!0),d.emit("sliderFirstMove",S)}let ie;if(new Date().getTime(),_.isMoved&&_.allowThresholdMove&&Q!==d.touchesDirection&&X&&Y&&Math.abs($)>=1){Object.assign(I,{startX:T,startY:D,currentX:T,currentY:D,startTranslate:_.currentTranslate}),_.loopSwapReset=!0,_.startTranslate=_.currentTranslate;return}d.emit("sliderMove",S),_.isMoved=!0,_.currentTranslate=$+_.startTranslate;let oe=!0,ge=x.resistanceRatio;if(x.touchReleaseOnEdges&&(ge=0),$>0?(X&&Y&&!ie&&_.allowThresholdMove&&_.currentTranslate>(x.centeredSlides?d.minTranslate()-d.slidesSizesGrid[d.activeIndex+1]:d.minTranslate())&&d.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),_.currentTranslate>d.minTranslate()&&(oe=!1,x.resistance&&(_.currentTranslate=d.minTranslate()-1+(-d.minTranslate()+_.startTranslate+$)**ge))):$<0&&(X&&Y&&!ie&&_.allowThresholdMove&&_.currentTranslate<(x.centeredSlides?d.maxTranslate()+d.slidesSizesGrid[d.slidesSizesGrid.length-1]:d.maxTranslate())&&d.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:d.slides.length-(x.slidesPerView==="auto"?d.slidesPerViewDynamic():Math.ceil(parseFloat(x.slidesPerView,10)))}),_.currentTranslate<d.maxTranslate()&&(oe=!1,x.resistance&&(_.currentTranslate=d.maxTranslate()+1-(d.maxTranslate()-_.startTranslate-$)**ge))),oe&&(S.preventedByNestedSwiper=!0),!d.allowSlideNext&&d.swipeDirection==="next"&&_.currentTranslate<_.startTranslate&&(_.currentTranslate=_.startTranslate),!d.allowSlidePrev&&d.swipeDirection==="prev"&&_.currentTranslate>_.startTranslate&&(_.currentTranslate=_.startTranslate),!d.allowSlidePrev&&!d.allowSlideNext&&(_.currentTranslate=_.startTranslate),x.threshold>0)if(Math.abs($)>x.threshold||_.allowThresholdMove){if(!_.allowThresholdMove){_.allowThresholdMove=!0,I.startX=I.currentX,I.startY=I.currentY,_.currentTranslate=_.startTranslate,I.diff=d.isHorizontal()?I.currentX-I.startX:I.currentY-I.startY;return}}else{_.currentTranslate=_.startTranslate;return}!x.followFinger||x.cssMode||((x.freeMode&&x.freeMode.enabled&&d.freeMode||x.watchSlidesProgress)&&(d.updateActiveIndex(),d.updateSlidesClasses()),x.freeMode&&x.freeMode.enabled&&d.freeMode&&d.freeMode.onTouchMove(),d.updateProgress(_.currentTranslate),d.setTranslate(_.currentTranslate))}function onTouchEnd$1(u){const f=this,d=f.touchEventsData;let _=u;_.originalEvent&&(_=_.originalEvent);let x;if(_.type==="touchend"||_.type==="touchcancel"){if(x=[..._.changedTouches].filter(ge=>ge.identifier===d.touchId)[0],!x||x.identifier!==d.touchId)return}else{if(d.touchId!==null||_.pointerId!==d.pointerId)return;x=_}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(_.type)&&!(["pointercancel","contextmenu"].includes(_.type)&&(f.browser.isSafari||f.browser.isWebView)))return;d.pointerId=null,d.touchId=null;const{params:E,touches:M,rtlTranslate:S,slidesGrid:A,enabled:T}=f;if(!T||!E.simulateTouch&&_.pointerType==="mouse")return;if(d.allowTouchCallbacks&&f.emit("touchEnd",_),d.allowTouchCallbacks=!1,!d.isTouched){d.isMoved&&E.grabCursor&&f.setGrabCursor(!1),d.isMoved=!1,d.startMoving=!1;return}E.grabCursor&&d.isMoved&&d.isTouched&&(f.allowSlideNext===!0||f.allowSlidePrev===!0)&&f.setGrabCursor(!1);const D=now$2(),O=D-d.touchStartTime;if(f.allowClick){const ge=_.path||_.composedPath&&_.composedPath();f.updateClickedSlide(ge&&ge[0]||_.target,ge),f.emit("tap click",_),O<300&&D-d.lastClickTime<300&&f.emit("doubleTap doubleClick",_)}if(d.lastClickTime=now$2(),nextTick$1(()=>{f.destroyed||(f.allowClick=!0)}),!d.isTouched||!d.isMoved||!f.swipeDirection||M.diff===0&&!d.loopSwapReset||d.currentTranslate===d.startTranslate&&!d.loopSwapReset){d.isTouched=!1,d.isMoved=!1,d.startMoving=!1;return}d.isTouched=!1,d.isMoved=!1,d.startMoving=!1;let j;if(E.followFinger?j=S?f.translate:-f.translate:j=-d.currentTranslate,E.cssMode)return;if(E.freeMode&&E.freeMode.enabled){f.freeMode.onTouchEnd({currentPos:j});return}const $=j>=-f.maxTranslate()&&!f.params.loop;let W=0,Q=f.slidesSizesGrid[0];for(let ge=0;ge<A.length;ge+=ge<E.slidesPerGroupSkip?1:E.slidesPerGroup){const be=ge<E.slidesPerGroupSkip-1?1:E.slidesPerGroup;typeof A[ge+be]<"u"?($||j>=A[ge]&&j<A[ge+be])&&(W=ge,Q=A[ge+be]-A[ge]):($||j>=A[ge])&&(W=ge,Q=A[A.length-1]-A[A.length-2])}let X=null,Y=null;E.rewind&&(f.isBeginning?Y=E.virtual&&E.virtual.enabled&&f.virtual?f.virtual.slides.length-1:f.slides.length-1:f.isEnd&&(X=0));const ie=(j-A[W])/Q,oe=W<E.slidesPerGroupSkip-1?1:E.slidesPerGroup;if(O>E.longSwipesMs){if(!E.longSwipes){f.slideTo(f.activeIndex);return}f.swipeDirection==="next"&&(ie>=E.longSwipesRatio?f.slideTo(E.rewind&&f.isEnd?X:W+oe):f.slideTo(W)),f.swipeDirection==="prev"&&(ie>1-E.longSwipesRatio?f.slideTo(W+oe):Y!==null&&ie<0&&Math.abs(ie)>E.longSwipesRatio?f.slideTo(Y):f.slideTo(W))}else{if(!E.shortSwipes){f.slideTo(f.activeIndex);return}f.navigation&&(_.target===f.navigation.nextEl||_.target===f.navigation.prevEl)?_.target===f.navigation.nextEl?f.slideTo(W+oe):f.slideTo(W):(f.swipeDirection==="next"&&f.slideTo(X!==null?X:W+oe),f.swipeDirection==="prev"&&f.slideTo(Y!==null?Y:W))}}function onResize$1(){const u=this,{params:f,el:d}=u;if(d&&d.offsetWidth===0)return;f.breakpoints&&u.setBreakpoint();const{allowSlideNext:_,allowSlidePrev:x,snapGrid:I}=u,E=u.virtual&&u.params.virtual.enabled;u.allowSlideNext=!0,u.allowSlidePrev=!0,u.updateSize(),u.updateSlides(),u.updateSlidesClasses();const M=E&&f.loop;(f.slidesPerView==="auto"||f.slidesPerView>1)&&u.isEnd&&!u.isBeginning&&!u.params.centeredSlides&&!M?u.slideTo(u.slides.length-1,0,!1,!0):u.params.loop&&!E?u.slideToLoop(u.realIndex,0,!1,!0):u.slideTo(u.activeIndex,0,!1,!0),u.autoplay&&u.autoplay.running&&u.autoplay.paused&&(clearTimeout(u.autoplay.resizeTimeout),u.autoplay.resizeTimeout=setTimeout(()=>{u.autoplay&&u.autoplay.running&&u.autoplay.paused&&u.autoplay.resume()},500)),u.allowSlidePrev=x,u.allowSlideNext=_,u.params.watchOverflow&&I!==u.snapGrid&&u.checkOverflow()}function onClick$1(u){const f=this;f.enabled&&(f.allowClick||(f.params.preventClicks&&u.preventDefault(),f.params.preventClicksPropagation&&f.animating&&(u.stopPropagation(),u.stopImmediatePropagation())))}function onScroll$1(){const u=this,{wrapperEl:f,rtlTranslate:d,enabled:_}=u;if(!_)return;u.previousTranslate=u.translate,u.isHorizontal()?u.translate=-f.scrollLeft:u.translate=-f.scrollTop,u.translate===0&&(u.translate=0),u.updateActiveIndex(),u.updateSlidesClasses();let x;const I=u.maxTranslate()-u.minTranslate();I===0?x=0:x=(u.translate-u.minTranslate())/I,x!==u.progress&&u.updateProgress(d?-u.translate:u.translate),u.emit("setTranslate",u.translate,!1)}function onLoad$1(u){const f=this;processLazyPreloader$1(f,u.target),!(f.params.cssMode||f.params.slidesPerView!=="auto"&&!f.params.autoHeight)&&f.update()}function onDocumentTouchStart$1(){const u=this;u.documentTouchHandlerProceeded||(u.documentTouchHandlerProceeded=!0,u.params.touchReleaseOnEdges&&(u.el.style.touchAction="auto"))}const events$2=(u,f)=>{const d=getDocument$1(),{params:_,el:x,wrapperEl:I,device:E}=u,M=!!_.nested,S=f==="on"?"addEventListener":"removeEventListener",A=f;d[S]("touchstart",u.onDocumentTouchStart,{passive:!1,capture:M}),x[S]("touchstart",u.onTouchStart,{passive:!1}),x[S]("pointerdown",u.onTouchStart,{passive:!1}),d[S]("touchmove",u.onTouchMove,{passive:!1,capture:M}),d[S]("pointermove",u.onTouchMove,{passive:!1,capture:M}),d[S]("touchend",u.onTouchEnd,{passive:!0}),d[S]("pointerup",u.onTouchEnd,{passive:!0}),d[S]("pointercancel",u.onTouchEnd,{passive:!0}),d[S]("touchcancel",u.onTouchEnd,{passive:!0}),d[S]("pointerout",u.onTouchEnd,{passive:!0}),d[S]("pointerleave",u.onTouchEnd,{passive:!0}),d[S]("contextmenu",u.onTouchEnd,{passive:!0}),(_.preventClicks||_.preventClicksPropagation)&&x[S]("click",u.onClick,!0),_.cssMode&&I[S]("scroll",u.onScroll),_.updateOnWindowResize?u[A](E.ios||E.android?"resize orientationchange observerUpdate":"resize observerUpdate",onResize$1,!0):u[A]("observerUpdate",onResize$1,!0),x[S]("load",u.onLoad,{capture:!0})};function attachEvents$1(){const u=this,{params:f}=u;u.onTouchStart=onTouchStart$1.bind(u),u.onTouchMove=onTouchMove$1.bind(u),u.onTouchEnd=onTouchEnd$1.bind(u),u.onDocumentTouchStart=onDocumentTouchStart$1.bind(u),f.cssMode&&(u.onScroll=onScroll$1.bind(u)),u.onClick=onClick$1.bind(u),u.onLoad=onLoad$1.bind(u),events$2(u,"on")}function detachEvents$1(){events$2(this,"off")}var events$1$2={attachEvents:attachEvents$1,detachEvents:detachEvents$1};const isGridEnabled$1=(u,f)=>u.grid&&f.grid&&f.grid.rows>1;function setBreakpoint$1(){const u=this,{realIndex:f,initialized:d,params:_,el:x}=u,I=_.breakpoints;if(!I||I&&Object.keys(I).length===0)return;const E=u.getBreakpoint(I,u.params.breakpointsBase,u.el);if(!E||u.currentBreakpoint===E)return;const S=(E in I?I[E]:void 0)||u.originalParams,A=isGridEnabled$1(u,_),T=isGridEnabled$1(u,S),D=_.enabled;A&&!T?(x.classList.remove(`${_.containerModifierClass}grid`,`${_.containerModifierClass}grid-column`),u.emitContainerClasses()):!A&&T&&(x.classList.add(`${_.containerModifierClass}grid`),(S.grid.fill&&S.grid.fill==="column"||!S.grid.fill&&_.grid.fill==="column")&&x.classList.add(`${_.containerModifierClass}grid-column`),u.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(X=>{if(typeof S[X]>"u")return;const Y=_[X]&&_[X].enabled,ie=S[X]&&S[X].enabled;Y&&!ie&&u[X].disable(),!Y&&ie&&u[X].enable()});const O=S.direction&&S.direction!==_.direction,j=_.loop&&(S.slidesPerView!==_.slidesPerView||O),$=_.loop;O&&d&&u.changeDirection(),extend$1$1(u.params,S);const W=u.params.enabled,Q=u.params.loop;Object.assign(u,{allowTouchMove:u.params.allowTouchMove,allowSlideNext:u.params.allowSlideNext,allowSlidePrev:u.params.allowSlidePrev}),D&&!W?u.disable():!D&&W&&u.enable(),u.currentBreakpoint=E,u.emit("_beforeBreakpoint",S),d&&(j?(u.loopDestroy(),u.loopCreate(f),u.updateSlides()):!$&&Q?(u.loopCreate(f),u.updateSlides()):$&&!Q&&u.loopDestroy()),u.emit("breakpoint",S)}function getBreakpoint$1(u,f,d){if(f===void 0&&(f="window"),!u||f==="container"&&!d)return;let _=!1;const x=getWindow$2(),I=f==="window"?x.innerHeight:d.clientHeight,E=Object.keys(u).map(M=>{if(typeof M=="string"&&M.indexOf("@")===0){const S=parseFloat(M.substr(1));return{value:I*S,point:M}}return{value:M,point:M}});E.sort((M,S)=>parseInt(M.value,10)-parseInt(S.value,10));for(let M=0;M<E.length;M+=1){const{point:S,value:A}=E[M];f==="window"?x.matchMedia(`(min-width: ${A}px)`).matches&&(_=S):A<=d.clientWidth&&(_=S)}return _||"max"}var breakpoints$1={setBreakpoint:setBreakpoint$1,getBreakpoint:getBreakpoint$1};function prepareClasses$1(u,f){const d=[];return u.forEach(_=>{typeof _=="object"?Object.keys(_).forEach(x=>{_[x]&&d.push(f+x)}):typeof _=="string"&&d.push(f+_)}),d}function addClasses$1(){const u=this,{classNames:f,params:d,rtl:_,el:x,device:I}=u,E=prepareClasses$1(["initialized",d.direction,{"free-mode":u.params.freeMode&&d.freeMode.enabled},{autoheight:d.autoHeight},{rtl:_},{grid:d.grid&&d.grid.rows>1},{"grid-column":d.grid&&d.grid.rows>1&&d.grid.fill==="column"},{android:I.android},{ios:I.ios},{"css-mode":d.cssMode},{centered:d.cssMode&&d.centeredSlides},{"watch-progress":d.watchSlidesProgress}],d.containerModifierClass);f.push(...E),x.classList.add(...f),u.emitContainerClasses()}function removeClasses$1(){const u=this,{el:f,classNames:d}=u;f.classList.remove(...d),u.emitContainerClasses()}var classes$1={addClasses:addClasses$1,removeClasses:removeClasses$1};function checkOverflow$2(){const u=this,{isLocked:f,params:d}=u,{slidesOffsetBefore:_}=d;if(_){const x=u.slides.length-1,I=u.slidesGrid[x]+u.slidesSizesGrid[x]+_*2;u.isLocked=u.size>I}else u.isLocked=u.snapGrid.length===1;d.allowSlideNext===!0&&(u.allowSlideNext=!u.isLocked),d.allowSlidePrev===!0&&(u.allowSlidePrev=!u.isLocked),f&&f!==u.isLocked&&(u.isEnd=!1),f!==u.isLocked&&u.emit(u.isLocked?"lock":"unlock")}var checkOverflow$1$1={checkOverflow:checkOverflow$2},defaults$2={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function moduleExtendParams$1(u,f){return function(_){_===void 0&&(_={});const x=Object.keys(_)[0],I=_[x];if(typeof I!="object"||I===null){extend$1$1(f,_);return}if(u[x]===!0&&(u[x]={enabled:!0}),x==="navigation"&&u[x]&&u[x].enabled&&!u[x].prevEl&&!u[x].nextEl&&(u[x].auto=!0),["pagination","scrollbar"].indexOf(x)>=0&&u[x]&&u[x].enabled&&!u[x].el&&(u[x].auto=!0),!(x in u&&"enabled"in I)){extend$1$1(f,_);return}typeof u[x]=="object"&&!("enabled"in u[x])&&(u[x].enabled=!0),u[x]||(u[x]={enabled:!1}),extend$1$1(f,_)}}const prototypes$1={eventsEmitter:eventsEmitter$1,update:update$1,translate:translate$2,transition:transition$1,slide:slide$1,loop:loop$1,grabCursor:grabCursor$1,events:events$1$2,breakpoints:breakpoints$1,checkOverflow:checkOverflow$1$1,classes:classes$1},extendedDefaults$1={};let Swiper$1=class ck{constructor(){let f,d;for(var _=arguments.length,x=new Array(_),I=0;I<_;I++)x[I]=arguments[I];x.length===1&&x[0].constructor&&Object.prototype.toString.call(x[0]).slice(8,-1)==="Object"?d=x[0]:[f,d]=x,d||(d={}),d=extend$1$1({},d),f&&!d.el&&(d.el=f);const E=getDocument$1();if(d.el&&typeof d.el=="string"&&E.querySelectorAll(d.el).length>1){const T=[];return E.querySelectorAll(d.el).forEach(D=>{const O=extend$1$1({},d,{el:D});T.push(new ck(O))}),T}const M=this;M.__swiper__=!0,M.support=getSupport$1(),M.device=getDevice$1({userAgent:d.userAgent}),M.browser=getBrowser$1(),M.eventsListeners={},M.eventsAnyListeners=[],M.modules=[...M.__modules__],d.modules&&Array.isArray(d.modules)&&M.modules.push(...d.modules);const S={};M.modules.forEach(T=>{T({params:d,swiper:M,extendParams:moduleExtendParams$1(d,S),on:M.on.bind(M),once:M.once.bind(M),off:M.off.bind(M),emit:M.emit.bind(M)})});const A=extend$1$1({},defaults$2,S);return M.params=extend$1$1({},A,extendedDefaults$1,d),M.originalParams=extend$1$1({},M.params),M.passedParams=extend$1$1({},d),M.params&&M.params.on&&Object.keys(M.params.on).forEach(T=>{M.on(T,M.params.on[T])}),M.params&&M.params.onAny&&M.onAny(M.params.onAny),Object.assign(M,{enabled:M.params.enabled,el:f,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return M.params.direction==="horizontal"},isVertical(){return M.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:M.params.allowSlideNext,allowSlidePrev:M.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:M.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:M.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),M.emit("_swiper"),M.params.init&&M.init(),M}getDirectionLabel(f){return this.isHorizontal()?f:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[f]}getSlideIndex(f){const{slidesEl:d,params:_}=this,x=elementChildren$1(d,`.${_.slideClass}, swiper-slide`),I=elementIndex$1(x[0]);return elementIndex$1(f)-I}getSlideIndexByData(f){return this.getSlideIndex(this.slides.filter(d=>d.getAttribute("data-swiper-slide-index")*1===f)[0])}recalcSlides(){const f=this,{slidesEl:d,params:_}=f;f.slides=elementChildren$1(d,`.${_.slideClass}, swiper-slide`)}enable(){const f=this;f.enabled||(f.enabled=!0,f.params.grabCursor&&f.setGrabCursor(),f.emit("enable"))}disable(){const f=this;f.enabled&&(f.enabled=!1,f.params.grabCursor&&f.unsetGrabCursor(),f.emit("disable"))}setProgress(f,d){const _=this;f=Math.min(Math.max(f,0),1);const x=_.minTranslate(),E=(_.maxTranslate()-x)*f+x;_.translateTo(E,typeof d>"u"?0:d),_.updateActiveIndex(),_.updateSlidesClasses()}emitContainerClasses(){const f=this;if(!f.params._emitClasses||!f.el)return;const d=f.el.className.split(" ").filter(_=>_.indexOf("swiper")===0||_.indexOf(f.params.containerModifierClass)===0);f.emit("_containerClasses",d.join(" "))}getSlideClasses(f){const d=this;return d.destroyed?"":f.className.split(" ").filter(_=>_.indexOf("swiper-slide")===0||_.indexOf(d.params.slideClass)===0).join(" ")}emitSlidesClasses(){const f=this;if(!f.params._emitClasses||!f.el)return;const d=[];f.slides.forEach(_=>{const x=f.getSlideClasses(_);d.push({slideEl:_,classNames:x}),f.emit("_slideClass",_,x)}),f.emit("_slideClasses",d)}slidesPerViewDynamic(f,d){f===void 0&&(f="current"),d===void 0&&(d=!1);const _=this,{params:x,slides:I,slidesGrid:E,slidesSizesGrid:M,size:S,activeIndex:A}=_;let T=1;if(typeof x.slidesPerView=="number")return x.slidesPerView;if(x.centeredSlides){let D=I[A]?Math.ceil(I[A].swiperSlideSize):0,O;for(let j=A+1;j<I.length;j+=1)I[j]&&!O&&(D+=Math.ceil(I[j].swiperSlideSize),T+=1,D>S&&(O=!0));for(let j=A-1;j>=0;j-=1)I[j]&&!O&&(D+=I[j].swiperSlideSize,T+=1,D>S&&(O=!0))}else if(f==="current")for(let D=A+1;D<I.length;D+=1)(d?E[D]+M[D]-E[A]<S:E[D]-E[A]<S)&&(T+=1);else for(let D=A-1;D>=0;D-=1)E[A]-E[D]<S&&(T+=1);return T}update(){const f=this;if(!f||f.destroyed)return;const{snapGrid:d,params:_}=f;_.breakpoints&&f.setBreakpoint(),[...f.el.querySelectorAll('[loading="lazy"]')].forEach(E=>{E.complete&&processLazyPreloader$1(f,E)}),f.updateSize(),f.updateSlides(),f.updateProgress(),f.updateSlidesClasses();function x(){const E=f.rtlTranslate?f.translate*-1:f.translate,M=Math.min(Math.max(E,f.maxTranslate()),f.minTranslate());f.setTranslate(M),f.updateActiveIndex(),f.updateSlidesClasses()}let I;if(_.freeMode&&_.freeMode.enabled&&!_.cssMode)x(),_.autoHeight&&f.updateAutoHeight();else{if((_.slidesPerView==="auto"||_.slidesPerView>1)&&f.isEnd&&!_.centeredSlides){const E=f.virtual&&_.virtual.enabled?f.virtual.slides:f.slides;I=f.slideTo(E.length-1,0,!1,!0)}else I=f.slideTo(f.activeIndex,0,!1,!0);I||x()}_.watchOverflow&&d!==f.snapGrid&&f.checkOverflow(),f.emit("update")}changeDirection(f,d){d===void 0&&(d=!0);const _=this,x=_.params.direction;return f||(f=x==="horizontal"?"vertical":"horizontal"),f===x||f!=="horizontal"&&f!=="vertical"||(_.el.classList.remove(`${_.params.containerModifierClass}${x}`),_.el.classList.add(`${_.params.containerModifierClass}${f}`),_.emitContainerClasses(),_.params.direction=f,_.slides.forEach(I=>{f==="vertical"?I.style.width="":I.style.height=""}),_.emit("changeDirection"),d&&_.update()),_}changeLanguageDirection(f){const d=this;d.rtl&&f==="rtl"||!d.rtl&&f==="ltr"||(d.rtl=f==="rtl",d.rtlTranslate=d.params.direction==="horizontal"&&d.rtl,d.rtl?(d.el.classList.add(`${d.params.containerModifierClass}rtl`),d.el.dir="rtl"):(d.el.classList.remove(`${d.params.containerModifierClass}rtl`),d.el.dir="ltr"),d.update())}mount(f){const d=this;if(d.mounted)return!0;let _=f||d.params.el;if(typeof _=="string"&&(_=document.querySelector(_)),!_)return!1;_.swiper=d,_.parentNode&&_.parentNode.host&&_.parentNode.host.nodeName===d.params.swiperElementNodeName.toUpperCase()&&(d.isElement=!0);const x=()=>`.${(d.params.wrapperClass||"").trim().split(" ").join(".")}`;let E=_&&_.shadowRoot&&_.shadowRoot.querySelector?_.shadowRoot.querySelector(x()):elementChildren$1(_,x())[0];return!E&&d.params.createElements&&(E=createElement$1("div",d.params.wrapperClass),_.append(E),elementChildren$1(_,`.${d.params.slideClass}`).forEach(M=>{E.append(M)})),Object.assign(d,{el:_,wrapperEl:E,slidesEl:d.isElement&&!_.parentNode.host.slideSlots?_.parentNode.host:E,hostEl:d.isElement?_.parentNode.host:_,mounted:!0,rtl:_.dir.toLowerCase()==="rtl"||elementStyle$1(_,"direction")==="rtl",rtlTranslate:d.params.direction==="horizontal"&&(_.dir.toLowerCase()==="rtl"||elementStyle$1(_,"direction")==="rtl"),wrongRTL:elementStyle$1(E,"display")==="-webkit-box"}),!0}init(f){const d=this;if(d.initialized||d.mount(f)===!1)return d;d.emit("beforeInit"),d.params.breakpoints&&d.setBreakpoint(),d.addClasses(),d.updateSize(),d.updateSlides(),d.params.watchOverflow&&d.checkOverflow(),d.params.grabCursor&&d.enabled&&d.setGrabCursor(),d.params.loop&&d.virtual&&d.params.virtual.enabled?d.slideTo(d.params.initialSlide+d.virtual.slidesBefore,0,d.params.runCallbacksOnInit,!1,!0):d.slideTo(d.params.initialSlide,0,d.params.runCallbacksOnInit,!1,!0),d.params.loop&&d.loopCreate(),d.attachEvents();const x=[...d.el.querySelectorAll('[loading="lazy"]')];return d.isElement&&x.push(...d.hostEl.querySelectorAll('[loading="lazy"]')),x.forEach(I=>{I.complete?processLazyPreloader$1(d,I):I.addEventListener("load",E=>{processLazyPreloader$1(d,E.target)})}),preload$1(d),d.initialized=!0,preload$1(d),d.emit("init"),d.emit("afterInit"),d}destroy(f,d){f===void 0&&(f=!0),d===void 0&&(d=!0);const _=this,{params:x,el:I,wrapperEl:E,slides:M}=_;return typeof _.params>"u"||_.destroyed||(_.emit("beforeDestroy"),_.initialized=!1,_.detachEvents(),x.loop&&_.loopDestroy(),d&&(_.removeClasses(),I.removeAttribute("style"),E.removeAttribute("style"),M&&M.length&&M.forEach(S=>{S.classList.remove(x.slideVisibleClass,x.slideFullyVisibleClass,x.slideActiveClass,x.slideNextClass,x.slidePrevClass),S.removeAttribute("style"),S.removeAttribute("data-swiper-slide-index")})),_.emit("destroy"),Object.keys(_.eventsListeners).forEach(S=>{_.off(S)}),f!==!1&&(_.el.swiper=null,deleteProps$1(_)),_.destroyed=!0),null}static extendDefaults(f){extend$1$1(extendedDefaults$1,f)}static get extendedDefaults(){return extendedDefaults$1}static get defaults(){return defaults$2}static installModule(f){ck.prototype.__modules__||(ck.prototype.__modules__=[]);const d=ck.prototype.__modules__;typeof f=="function"&&d.indexOf(f)<0&&d.push(f)}static use(f){return Array.isArray(f)?(f.forEach(d=>ck.installModule(d)),ck):(ck.installModule(f),ck)}};Object.keys(prototypes$1).forEach(u=>{Object.keys(prototypes$1[u]).forEach(f=>{Swiper$1.prototype[f]=prototypes$1[u][f]})});Swiper$1.use([Resize$1,Observer$1]);function debounce$1$1(u,f,d){var _,x,I,E,M;f==null&&(f=100);function S(){var T=Date.now()-E;T<f&&T>=0?_=setTimeout(S,f-T):(_=null,d||(M=u.apply(I,x),I=x=null))}var A=function(){I=this,x=arguments,E=Date.now();var T=d&&!_;return _||(_=setTimeout(S,f)),T&&(M=u.apply(I,x),I=x=null),M};return A.clear=function(){_&&(clearTimeout(_),_=null)},A.flush=function(){_&&(M=u.apply(I,x),I=x=null,clearTimeout(_),_=null)},A}debounce$1$1.debounce=debounce$1$1;function styleInject$1(u,f){f===void 0&&(f={});var d=f.insertAt;if(!(!u||typeof document>"u")){var _=document.head||document.getElementsByTagName("head")[0],x=document.createElement("style");x.type="text/css",d==="top"&&_.firstChild?_.insertBefore(x,_.firstChild):_.appendChild(x),x.styleSheet?x.styleSheet.cssText=u:x.appendChild(document.createTextNode(u))}}var css_248z$1$1=`
#arrow[data-v-20b7fd4a],
  #arrow[data-v-20b7fd4a]::before {
    transition: background 250ms ease-in-out;
    position: absolute;
    width: calc(10px - var(--popper-theme-border-width, 0px));
    height: calc(10px - var(--popper-theme-border-width, 0px));
    box-sizing: border-box;
    background: var(--popper-theme-background-color);
}
#arrow[data-v-20b7fd4a] {
    visibility: hidden;
}
#arrow[data-v-20b7fd4a]::before {
    visibility: visible;
    content: "";
    transform: rotate(45deg);
}

  /* Top arrow */
.popper[data-popper-placement^="top"] > #arrow[data-v-20b7fd4a] {
    bottom: -5px;
}
.popper[data-popper-placement^="top"] > #arrow[data-v-20b7fd4a]::before {
    border-right: var(--popper-theme-border-width)
      var(--popper-theme-border-style) var(--popper-theme-border-color);
    border-bottom: var(--popper-theme-border-width)
      var(--popper-theme-border-style) var(--popper-theme-border-color);
}

  /* Bottom arrow */
.popper[data-popper-placement^="bottom"] > #arrow[data-v-20b7fd4a] {
    top: -5px;
}
.popper[data-popper-placement^="bottom"] > #arrow[data-v-20b7fd4a]::before {
    border-left: var(--popper-theme-border-width)
      var(--popper-theme-border-style) var(--popper-theme-border-color);
    border-top: var(--popper-theme-border-width)
      var(--popper-theme-border-style) var(--popper-theme-border-color);
}

  /* Left arrow */
.popper[data-popper-placement^="left"] > #arrow[data-v-20b7fd4a] {
    right: -5px;
}
.popper[data-popper-placement^="left"] > #arrow[data-v-20b7fd4a]::before {
    border-right: var(--popper-theme-border-width)
      var(--popper-theme-border-style) var(--popper-theme-border-color);
    border-top: var(--popper-theme-border-width)
      var(--popper-theme-border-style) var(--popper-theme-border-color);
}

  /* Right arrow */
.popper[data-popper-placement^="right"] > #arrow[data-v-20b7fd4a] {
    left: -5px;
}
`;styleInject$1(css_248z$1$1);var css_248z$2=`
.inline-block[data-v-5784ed69] {
    display: inline-block;
}
.popper[data-v-5784ed69] {
    transition: background 250ms ease-in-out;
    background: var(--popper-theme-background-color);
    padding: var(--popper-theme-padding);
    color: var(--popper-theme-text-color);
    border-radius: var(--popper-theme-border-radius);
    border-width: var(--popper-theme-border-width);
    border-style: var(--popper-theme-border-style);
    border-color: var(--popper-theme-border-color);
    box-shadow: var(--popper-theme-box-shadow);
    z-index: var(--c81fc0a4);
}
.popper[data-v-5784ed69]:hover,
  .popper:hover > #arrow[data-v-5784ed69]::before {
    background: var(--popper-theme-background-color-hover);
}
.inline-block[data-v-5784ed69] {
    display: inline-block;
}
.fade-enter-active[data-v-5784ed69],
  .fade-leave-active[data-v-5784ed69] {
    transition: opacity 0.2s ease;
}
.fade-enter-from[data-v-5784ed69],
  .fade-leave-to[data-v-5784ed69] {
    opacity: 0;
}
`;styleInject$1(css_248z$2);var IconName;(function(u){u.arrowUp="arrowUp",u.arrowDown="arrowDown",u.arrowRight="arrowRight",u.arrowLeft="arrowLeft"})(IconName||(IconName={}));const _withScopeId$k=u=>(pushScopeId("data-v-7220ce4a"),u=u(),popScopeId(),u),_hoisted_1$1z={class:"w-progress-wrapper"},_hoisted_2$1l=_withScopeId$k(()=>createBaseVNode("div",{class:"bar"},null,-1)),_hoisted_3$18={class:"w-tab-label-container"},_hoisted_4$10={key:0},_sfc_main$1T=defineComponent({__name:"ProgressBar",props:{progress:{default:1},maxProgress:{default:4},color:{default:"main"},label:{default:void 0}},setup(u){const f=u,d=computed(()=>({"--w-progress-grid-template-columns":`var(repeat(${f.maxProgress}, 1fr))`,"--w-progress-now-color":`var(--${f.color})`}));return(_,x)=>(openBlock(),createElementBlock("div",_hoisted_1$1z,[createBaseVNode("div",{class:"w-progess-container",style:normalizeStyle(d.value)},[(openBlock(!0),createElementBlock(Fragment,null,renderList(_.maxProgress,(I,E)=>(openBlock(),createElementBlock("div",{key:E,class:normalizeClass(["item",_.progress>E+1?"already":_.progress===E+1?"now":""])},[_hoisted_2$1l,createBaseVNode("div",_hoisted_3$18,[_.label?(openBlock(),createElementBlock("div",_hoisted_4$10,toDisplayString$2(_.label[E]),1)):renderSlot(_.$slots,"default",{key:1},void 0,!0)])],2))),128))],4)]))}}),ProgressBar=_export_sfc$1(_sfc_main$1T,[["__scopeId","data-v-7220ce4a"]]),_sfc_main$1S=defineComponent({__name:"Overlay",props:{show:{type:Boolean,default:!1},opacity:{default:.6},color:{default:"0, 0, 0"},zIndex:{default:1e3}},emits:["onClick:overlay"],setup(u,{emit:f}){useCssVars(x=>({"5c99d668":x.zIndex}));const d=f,_=x=>{d("onClick:overlay",x)};return(x,I)=>x.show?(openBlock(),createElementBlock("div",{key:0,class:"overlay",style:normalizeStyle({backgroundColor:`rgba(${x.color}, ${x.opacity})`}),onClick:_},[renderSlot(x.$slots,"default",{},void 0,!0)],4)):createCommentVNode("",!0)}}),Overlay=_export_sfc$1(_sfc_main$1S,[["__scopeId","data-v-09c7e9e2"]]);var lottie={exports:{}};(function(module,exports){typeof navigator<"u"&&function(u,f){module.exports=f()}(commonjsGlobal,function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(f){_useWebWorker=!!f},getWebWorker=function(){return _useWebWorker},setLocationHref=function(f){locationHref=f},getLocationHref=function(){return locationHref};function createTag(u){return document.createElement(u)}function extendPrototype(u,f){var d,_=u.length,x;for(d=0;d<_;d+=1){x=u[d].prototype;for(var I in x)Object.prototype.hasOwnProperty.call(x,I)&&(f.prototype[I]=x[I])}}function getDescriptor(u,f){return Object.getOwnPropertyDescriptor(u,f)}function createProxyFunction(u){function f(){}return f.prototype=u,f}var audioControllerFactory=function(){function u(f){this.audios=[],this.audioFactory=f,this._volume=1,this._isMuted=!1}return u.prototype={addAudio:function(d){this.audios.push(d)},pause:function(){var d,_=this.audios.length;for(d=0;d<_;d+=1)this.audios[d].pause()},resume:function(){var d,_=this.audios.length;for(d=0;d<_;d+=1)this.audios[d].resume()},setRate:function(d){var _,x=this.audios.length;for(_=0;_<x;_+=1)this.audios[_].setRate(d)},createAudio:function(d){return this.audioFactory?this.audioFactory(d):window.Howl?new window.Howl({src:[d]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(d){this.audioFactory=d},setVolume:function(d){this._volume=d,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var d,_=this.audios.length;for(d=0;d<_;d+=1)this.audios[d].volume(this._volume*(this._isMuted?0:1))}},function(){return new u}}(),createTypedArray=function(){function u(d,_){var x=0,I=[],E;switch(d){case"int16":case"uint8c":E=1;break;default:E=1.1;break}for(x=0;x<_;x+=1)I.push(E);return I}function f(d,_){return d==="float32"?new Float32Array(_):d==="int16"?new Int16Array(_):d==="uint8c"?new Uint8ClampedArray(_):u(d,_)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?f:u}();function createSizedArray(u){return Array.apply(null,{length:u})}function _typeof$6(u){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$6=function(d){return typeof d}:_typeof$6=function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},_typeof$6(u)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};(function(){var u=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],f,d=u.length;for(f=0;f<d;f+=1)BMMath[u[f]]=Math[u[f]]})(),BMMath.random=Math.random,BMMath.abs=function(u){var f=_typeof$6(u);if(f==="object"&&u.length){var d=createSizedArray(u.length),_,x=u.length;for(_=0;_<x;_+=1)d[_]=Math.abs(u[_]);return d}return Math.abs(u)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function styleDiv(u){u.style.position="absolute",u.style.top=0,u.style.left=0,u.style.display="block",u.style.transformOrigin="0 0",u.style.webkitTransformOrigin="0 0",u.style.backfaceVisibility="visible",u.style.webkitBackfaceVisibility="visible",u.style.transformStyle="preserve-3d",u.style.webkitTransformStyle="preserve-3d",u.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(u,f,d,_){this.type=u,this.currentTime=f,this.totalTime=d,this.direction=_<0?-1:1}function BMCompleteEvent(u,f){this.type=u,this.direction=f<0?-1:1}function BMCompleteLoopEvent(u,f,d,_){this.type=u,this.currentLoop=d,this.totalLoops=f,this.direction=_<0?-1:1}function BMSegmentStartEvent(u,f,d){this.type=u,this.firstFrame=f,this.totalFrames=d}function BMDestroyEvent(u,f){this.type=u,this.target=f}function BMRenderFrameErrorEvent(u,f){this.type="renderFrameError",this.nativeError=u,this.currentTime=f}function BMConfigErrorEvent(u){this.type="configError",this.nativeError=u}var createElementID=function(){var u=0;return function(){return u+=1,idPrefix$1+"__lottie_element_"+u}}();function HSVtoRGB(u,f,d){var _,x,I,E,M,S,A,T;switch(E=Math.floor(u*6),M=u*6-E,S=d*(1-f),A=d*(1-M*f),T=d*(1-(1-M)*f),E%6){case 0:_=d,x=T,I=S;break;case 1:_=A,x=d,I=S;break;case 2:_=S,x=d,I=T;break;case 3:_=S,x=A,I=d;break;case 4:_=T,x=S,I=d;break;case 5:_=d,x=S,I=A;break}return[_,x,I]}function RGBtoHSV(u,f,d){var _=Math.max(u,f,d),x=Math.min(u,f,d),I=_-x,E,M=_===0?0:I/_,S=_/255;switch(_){case x:E=0;break;case u:E=f-d+I*(f<d?6:0),E/=6*I;break;case f:E=d-u+I*2,E/=6*I;break;case d:E=u-f+I*4,E/=6*I;break}return[E,M,S]}function addSaturationToRGB(u,f){var d=RGBtoHSV(u[0]*255,u[1]*255,u[2]*255);return d[1]+=f,d[1]>1?d[1]=1:d[1]<=0&&(d[1]=0),HSVtoRGB(d[0],d[1],d[2])}function addBrightnessToRGB(u,f){var d=RGBtoHSV(u[0]*255,u[1]*255,u[2]*255);return d[2]+=f,d[2]>1?d[2]=1:d[2]<0&&(d[2]=0),HSVtoRGB(d[0],d[1],d[2])}function addHueToRGB(u,f){var d=RGBtoHSV(u[0]*255,u[1]*255,u[2]*255);return d[0]+=f/360,d[0]>1?d[0]-=1:d[0]<0&&(d[0]+=1),HSVtoRGB(d[0],d[1],d[2])}var rgbToHex=function(){var u=[],f,d;for(f=0;f<256;f+=1)d=f.toString(16),u[f]=d.length===1?"0"+d:d;return function(_,x,I){return _<0&&(_=0),x<0&&(x=0),I<0&&(I=0),"#"+u[_]+u[x]+u[I]}}(),setSubframeEnabled=function(f){subframeEnabled=!!f},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(f){expressionsPlugin=f},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(f){expressionsInterfaces=f},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(f){defaultCurveSegments=f},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(f){idPrefix$1=f};function createNS(u){return document.createElementNS(svgNS,u)}function _typeof$5(u){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$5=function(d){return typeof d}:_typeof$5=function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},_typeof$5(u)}var dataManager=function(){var u=1,f=[],d,_,x={onmessage:function(){},postMessage:function(j){d({data:j})}},I={postMessage:function(j){x.onmessage({data:j})}};function E(O){if(window.Worker&&window.Blob&&getWebWorker()){var j=new Blob(["var _workerSelf = self; self.onmessage = ",O.toString()],{type:"text/javascript"}),$=URL.createObjectURL(j);return new Worker($)}return d=O,x}function M(){_||(_=E(function(j){function $(){function Q(B,z){var ee,H,q=B.length,J,U,Z,ve;for(H=0;H<q;H+=1)if(ee=B[H],"ks"in ee&&!ee.completed){if(ee.completed=!0,ee.hasMask){var Ye=ee.masksProperties;for(U=Ye.length,J=0;J<U;J+=1)if(Ye[J].pt.k.i)ge(Ye[J].pt.k);else for(ve=Ye[J].pt.k.length,Z=0;Z<ve;Z+=1)Ye[J].pt.k[Z].s&&ge(Ye[J].pt.k[Z].s[0]),Ye[J].pt.k[Z].e&&ge(Ye[J].pt.k[Z].e[0])}ee.ty===0?(ee.layers=ie(ee.refId,z),Q(ee.layers,z)):ee.ty===4?oe(ee.shapes):ee.ty===5&&P(ee)}}function X(B,z){if(B){var ee=0,H=B.length;for(ee=0;ee<H;ee+=1)B[ee].t===1&&(B[ee].data.layers=ie(B[ee].data.refId,z),Q(B[ee].data.layers,z))}}function Y(B,z){for(var ee=0,H=z.length;ee<H;){if(z[ee].id===B)return z[ee];ee+=1}return null}function ie(B,z){var ee=Y(B,z);return ee?ee.layers.__used?JSON.parse(JSON.stringify(ee.layers)):(ee.layers.__used=!0,ee.layers):null}function oe(B){var z,ee=B.length,H,q;for(z=ee-1;z>=0;z-=1)if(B[z].ty==="sh")if(B[z].ks.k.i)ge(B[z].ks.k);else for(q=B[z].ks.k.length,H=0;H<q;H+=1)B[z].ks.k[H].s&&ge(B[z].ks.k[H].s[0]),B[z].ks.k[H].e&&ge(B[z].ks.k[H].e[0]);else B[z].ty==="gr"&&oe(B[z].it)}function ge(B){var z,ee=B.i.length;for(z=0;z<ee;z+=1)B.i[z][0]+=B.v[z][0],B.i[z][1]+=B.v[z][1],B.o[z][0]+=B.v[z][0],B.o[z][1]+=B.v[z][1]}function be(B,z){var ee=z?z.split("."):[100,100,100];return B[0]>ee[0]?!0:ee[0]>B[0]?!1:B[1]>ee[1]?!0:ee[1]>B[1]?!1:B[2]>ee[2]?!0:ee[2]>B[2]?!1:null}var ze=function(){var B=[4,4,14];function z(H){var q=H.t.d;H.t.d={k:[{s:q,t:0}]}}function ee(H){var q,J=H.length;for(q=0;q<J;q+=1)H[q].ty===5&&z(H[q])}return function(H){if(be(B,H.v)&&(ee(H.layers),H.assets)){var q,J=H.assets.length;for(q=0;q<J;q+=1)H.assets[q].layers&&ee(H.assets[q].layers)}}}(),de=function(){var B=[4,7,99];return function(z){if(z.chars&&!be(B,z.v)){var ee,H=z.chars.length;for(ee=0;ee<H;ee+=1){var q=z.chars[ee];q.data&&q.data.shapes&&(oe(q.data.shapes),q.data.ip=0,q.data.op=99999,q.data.st=0,q.data.sr=1,q.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},z.chars[ee].t||(q.data.shapes.push({ty:"no"}),q.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}}(),Ce=function(){var B=[5,7,15];function z(H){var q=H.t.p;typeof q.a=="number"&&(q.a={a:0,k:q.a}),typeof q.p=="number"&&(q.p={a:0,k:q.p}),typeof q.r=="number"&&(q.r={a:0,k:q.r})}function ee(H){var q,J=H.length;for(q=0;q<J;q+=1)H[q].ty===5&&z(H[q])}return function(H){if(be(B,H.v)&&(ee(H.layers),H.assets)){var q,J=H.assets.length;for(q=0;q<J;q+=1)H.assets[q].layers&&ee(H.assets[q].layers)}}}(),ke=function(){var B=[4,1,9];function z(H){var q,J=H.length,U,Z;for(q=0;q<J;q+=1)if(H[q].ty==="gr")z(H[q].it);else if(H[q].ty==="fl"||H[q].ty==="st")if(H[q].c.k&&H[q].c.k[0].i)for(Z=H[q].c.k.length,U=0;U<Z;U+=1)H[q].c.k[U].s&&(H[q].c.k[U].s[0]/=255,H[q].c.k[U].s[1]/=255,H[q].c.k[U].s[2]/=255,H[q].c.k[U].s[3]/=255),H[q].c.k[U].e&&(H[q].c.k[U].e[0]/=255,H[q].c.k[U].e[1]/=255,H[q].c.k[U].e[2]/=255,H[q].c.k[U].e[3]/=255);else H[q].c.k[0]/=255,H[q].c.k[1]/=255,H[q].c.k[2]/=255,H[q].c.k[3]/=255}function ee(H){var q,J=H.length;for(q=0;q<J;q+=1)H[q].ty===4&&z(H[q].shapes)}return function(H){if(be(B,H.v)&&(ee(H.layers),H.assets)){var q,J=H.assets.length;for(q=0;q<J;q+=1)H.assets[q].layers&&ee(H.assets[q].layers)}}}(),le=function(){var B=[4,4,18];function z(H){var q,J=H.length,U,Z;for(q=J-1;q>=0;q-=1)if(H[q].ty==="sh")if(H[q].ks.k.i)H[q].ks.k.c=H[q].closed;else for(Z=H[q].ks.k.length,U=0;U<Z;U+=1)H[q].ks.k[U].s&&(H[q].ks.k[U].s[0].c=H[q].closed),H[q].ks.k[U].e&&(H[q].ks.k[U].e[0].c=H[q].closed);else H[q].ty==="gr"&&z(H[q].it)}function ee(H){var q,J,U=H.length,Z,ve,Ye,rt;for(J=0;J<U;J+=1){if(q=H[J],q.hasMask){var Ue=q.masksProperties;for(ve=Ue.length,Z=0;Z<ve;Z+=1)if(Ue[Z].pt.k.i)Ue[Z].pt.k.c=Ue[Z].cl;else for(rt=Ue[Z].pt.k.length,Ye=0;Ye<rt;Ye+=1)Ue[Z].pt.k[Ye].s&&(Ue[Z].pt.k[Ye].s[0].c=Ue[Z].cl),Ue[Z].pt.k[Ye].e&&(Ue[Z].pt.k[Ye].e[0].c=Ue[Z].cl)}q.ty===4&&z(q.shapes)}}return function(H){if(be(B,H.v)&&(ee(H.layers),H.assets)){var q,J=H.assets.length;for(q=0;q<J;q+=1)H.assets[q].layers&&ee(H.assets[q].layers)}}}();function re(B){B.__complete||(ke(B),ze(B),de(B),Ce(B),le(B),Q(B.layers,B.assets),X(B.chars,B.assets),B.__complete=!0)}function P(B){B.t.a.length===0&&"m"in B.t.p}var k={};return k.completeData=re,k.checkColors=ke,k.checkChars=de,k.checkPathProperties=Ce,k.checkShapes=le,k.completeLayers=Q,k}if(I.dataManager||(I.dataManager=$()),I.assetLoader||(I.assetLoader=function(){function Q(Y){var ie=Y.getResponseHeader("content-type");return ie&&Y.responseType==="json"&&ie.indexOf("json")!==-1||Y.response&&_typeof$5(Y.response)==="object"?Y.response:Y.response&&typeof Y.response=="string"?JSON.parse(Y.response):Y.responseText?JSON.parse(Y.responseText):null}function X(Y,ie,oe,ge){var be,ze=new XMLHttpRequest;try{ze.responseType="json"}catch{}ze.onreadystatechange=function(){if(ze.readyState===4)if(ze.status===200)be=Q(ze),oe(be);else try{be=Q(ze),oe(be)}catch(de){ge&&ge(de)}};try{ze.open(["G","E","T"].join(""),Y,!0)}catch{ze.open(["G","E","T"].join(""),ie+"/"+Y,!0)}ze.send()}return{load:X}}()),j.data.type==="loadAnimation")I.assetLoader.load(j.data.path,j.data.fullPath,function(Q){I.dataManager.completeData(Q),I.postMessage({id:j.data.id,payload:Q,status:"success"})},function(){I.postMessage({id:j.data.id,status:"error"})});else if(j.data.type==="complete"){var W=j.data.animation;I.dataManager.completeData(W),I.postMessage({id:j.data.id,payload:W,status:"success"})}else j.data.type==="loadData"&&I.assetLoader.load(j.data.path,j.data.fullPath,function(Q){I.postMessage({id:j.data.id,payload:Q,status:"success"})},function(){I.postMessage({id:j.data.id,status:"error"})})}),_.onmessage=function(O){var j=O.data,$=j.id,W=f[$];f[$]=null,j.status==="success"?W.onComplete(j.payload):W.onError&&W.onError()})}function S(O,j){u+=1;var $="processId_"+u;return f[$]={onComplete:O,onError:j},$}function A(O,j,$){M();var W=S(j,$);_.postMessage({type:"loadAnimation",path:O,fullPath:window.location.origin+window.location.pathname,id:W})}function T(O,j,$){M();var W=S(j,$);_.postMessage({type:"loadData",path:O,fullPath:window.location.origin+window.location.pathname,id:W})}function D(O,j,$){M();var W=S(j,$);_.postMessage({type:"complete",animation:O,id:W})}return{loadAnimation:A,loadData:T,completeAnimation:D}}(),ImagePreloader=function(){var u=function(){var X=createTag("canvas");X.width=1,X.height=1;var Y=X.getContext("2d");return Y.fillStyle="rgba(0,0,0,0)",Y.fillRect(0,0,1,1),X}();function f(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function d(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function _(X,Y,ie){var oe="";if(X.e)oe=X.p;else if(Y){var ge=X.p;ge.indexOf("images/")!==-1&&(ge=ge.split("/")[1]),oe=Y+ge}else oe=ie,oe+=X.u?X.u:"",oe+=X.p;return oe}function x(X){var Y=0,ie=setInterval(function(){var oe=X.getBBox();(oe.width||Y>500)&&(this._imageLoaded(),clearInterval(ie)),Y+=1}.bind(this),50)}function I(X){var Y=_(X,this.assetsPath,this.path),ie=createNS("image");isSafari?this.testImageLoaded(ie):ie.addEventListener("load",this._imageLoaded,!1),ie.addEventListener("error",function(){oe.img=u,this._imageLoaded()}.bind(this),!1),ie.setAttributeNS("http://www.w3.org/1999/xlink","href",Y),this._elementHelper.append?this._elementHelper.append(ie):this._elementHelper.appendChild(ie);var oe={img:ie,assetData:X};return oe}function E(X){var Y=_(X,this.assetsPath,this.path),ie=createTag("img");ie.crossOrigin="anonymous",ie.addEventListener("load",this._imageLoaded,!1),ie.addEventListener("error",function(){oe.img=u,this._imageLoaded()}.bind(this),!1),ie.src=Y;var oe={img:ie,assetData:X};return oe}function M(X){var Y={assetData:X},ie=_(X,this.assetsPath,this.path);return dataManager.loadData(ie,function(oe){Y.img=oe,this._footageLoaded()}.bind(this),function(){Y.img={},this._footageLoaded()}.bind(this)),Y}function S(X,Y){this.imagesLoadedCb=Y;var ie,oe=X.length;for(ie=0;ie<oe;ie+=1)X[ie].layers||(!X[ie].t||X[ie].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(X[ie]))):X[ie].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(X[ie]))))}function A(X){this.path=X||""}function T(X){this.assetsPath=X||""}function D(X){for(var Y=0,ie=this.images.length;Y<ie;){if(this.images[Y].assetData===X)return this.images[Y].img;Y+=1}return null}function O(){this.imagesLoadedCb=null,this.images.length=0}function j(){return this.totalImages===this.loadedAssets}function $(){return this.totalFootages===this.loadedFootagesCount}function W(X,Y){X==="svg"?(this._elementHelper=Y,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function Q(){this._imageLoaded=f.bind(this),this._footageLoaded=d.bind(this),this.testImageLoaded=x.bind(this),this.createFootageData=M.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return Q.prototype={loadAssets:S,setAssetsPath:T,setPath:A,loadedImages:j,loadedFootages:$,destroy:O,getAsset:D,createImgData:E,createImageData:I,imageLoaded:f,footageLoaded:d,setCacheType:W},Q}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(f,d){if(this._cbs[f])for(var _=this._cbs[f],x=0;x<_.length;x+=1)_[x](d)},addEventListener:function(f,d){return this._cbs[f]||(this._cbs[f]=[]),this._cbs[f].push(d),function(){this.removeEventListener(f,d)}.bind(this)},removeEventListener:function(f,d){if(!d)this._cbs[f]=null;else if(this._cbs[f]){for(var _=0,x=this._cbs[f].length;_<x;)this._cbs[f][_]===d&&(this._cbs[f].splice(_,1),_-=1,x-=1),_+=1;this._cbs[f].length||(this._cbs[f]=null)}}};var markerParser=function(){function u(f){for(var d=f.split(`\r
`),_={},x,I=0,E=0;E<d.length;E+=1)x=d[E].split(":"),x.length===2&&(_[x[0]]=x[1].trim(),I+=1);if(I===0)throw new Error;return _}return function(f){for(var d=[],_=0;_<f.length;_+=1){var x=f[_],I={time:x.tm,duration:x.dr};try{I.payload=JSON.parse(f[_].cm)}catch{try{I.payload=u(f[_].cm)}catch{I.payload={name:f[_].cm}}}d.push(I)}return d}}(),ProjectInterface=function(){function u(f){this.compositions.push(f)}return function(){function f(d){for(var _=0,x=this.compositions.length;_<x;){if(this.compositions[_].data&&this.compositions[_].data.nm===d)return this.compositions[_].prepareFrame&&this.compositions[_].data.xt&&this.compositions[_].prepareFrame(this.currentFrame),this.compositions[_].compInterface;_+=1}return null}return f.compositions=[],f.currentFrame=0,f.registerComposition=u,f}}(),renderers={},registerRenderer=function(f,d){renderers[f]=d};function getRenderer(u){return renderers[u]}function getRegisteredRenderer(){if(renderers.canvas)return"canvas";for(var u in renderers)if(renderers[u])return u;return""}function _typeof$4(u){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$4=function(d){return typeof d}:_typeof$4=function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},_typeof$4(u)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0),this.expressionsPlugin=getExpressionsPlugin()};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(u){(u.wrapper||u.container)&&(this.wrapper=u.wrapper||u.container);var f="svg";u.animType?f=u.animType:u.renderer&&(f=u.renderer);var d=getRenderer(f);this.renderer=new d(this,u.rendererSettings),this.imagePreloader.setCacheType(f,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=f,u.loop===""||u.loop===null||u.loop===void 0||u.loop===!0?this.loop=!0:u.loop===!1?this.loop=!1:this.loop=parseInt(u.loop,10),this.autoplay="autoplay"in u?u.autoplay:!0,this.name=u.name?u.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(u,"autoloadSegments")?u.autoloadSegments:!0,this.assetsPath=u.assetsPath,this.initialSegment=u.initialSegment,u.audioFactory&&this.audioController.setAudioFactory(u.audioFactory),u.animationData?this.setupAnimation(u.animationData):u.path&&(u.path.lastIndexOf("\\")!==-1?this.path=u.path.substr(0,u.path.lastIndexOf("\\")+1):this.path=u.path.substr(0,u.path.lastIndexOf("/")+1),this.fileName=u.path.substr(u.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(u.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(u){dataManager.completeAnimation(u,this.configAnimation)},AnimationItem.prototype.setData=function(u,f){f&&_typeof$4(f)!=="object"&&(f=JSON.parse(f));var d={wrapper:u,animationData:f},_=u.attributes;d.path=_.getNamedItem("data-animation-path")?_.getNamedItem("data-animation-path").value:_.getNamedItem("data-bm-path")?_.getNamedItem("data-bm-path").value:_.getNamedItem("bm-path")?_.getNamedItem("bm-path").value:"",d.animType=_.getNamedItem("data-anim-type")?_.getNamedItem("data-anim-type").value:_.getNamedItem("data-bm-type")?_.getNamedItem("data-bm-type").value:_.getNamedItem("bm-type")?_.getNamedItem("bm-type").value:_.getNamedItem("data-bm-renderer")?_.getNamedItem("data-bm-renderer").value:_.getNamedItem("bm-renderer")?_.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var x=_.getNamedItem("data-anim-loop")?_.getNamedItem("data-anim-loop").value:_.getNamedItem("data-bm-loop")?_.getNamedItem("data-bm-loop").value:_.getNamedItem("bm-loop")?_.getNamedItem("bm-loop").value:"";x==="false"?d.loop=!1:x==="true"?d.loop=!0:x!==""&&(d.loop=parseInt(x,10));var I=_.getNamedItem("data-anim-autoplay")?_.getNamedItem("data-anim-autoplay").value:_.getNamedItem("data-bm-autoplay")?_.getNamedItem("data-bm-autoplay").value:_.getNamedItem("bm-autoplay")?_.getNamedItem("bm-autoplay").value:!0;d.autoplay=I!=="false",d.name=_.getNamedItem("data-name")?_.getNamedItem("data-name").value:_.getNamedItem("data-bm-name")?_.getNamedItem("data-bm-name").value:_.getNamedItem("bm-name")?_.getNamedItem("bm-name").value:"";var E=_.getNamedItem("data-anim-prerender")?_.getNamedItem("data-anim-prerender").value:_.getNamedItem("data-bm-prerender")?_.getNamedItem("data-bm-prerender").value:_.getNamedItem("bm-prerender")?_.getNamedItem("bm-prerender").value:"";E==="false"&&(d.prerender=!1),d.path?this.setParams(d):this.trigger("destroy")},AnimationItem.prototype.includeLayers=function(u){u.op>this.animationData.op&&(this.animationData.op=u.op,this.totalFrames=Math.floor(u.op-this.animationData.ip));var f=this.animationData.layers,d,_=f.length,x=u.layers,I,E=x.length;for(I=0;I<E;I+=1)for(d=0;d<_;){if(f[d].id===x[I].id){f[d]=x[I];break}d+=1}if((u.chars||u.fonts)&&(this.renderer.globalData.fontManager.addChars(u.chars),this.renderer.globalData.fontManager.addFonts(u.fonts,this.renderer.globalData.defs)),u.assets)for(_=u.assets.length,d=0;d<_;d+=1)this.animationData.assets.push(u.assets[d]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(u){this.animationData=u;var f=getExpressionsPlugin();f&&f.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var u=this.animationData.segments;if(!u||u.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var f=u.shift();this.timeCompleted=f.time*this.frameRate;var d=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(d,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))},AnimationItem.prototype.loadSegments=function(){var u=this.animationData.segments;u||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(u){if(this.renderer)try{this.animationData=u,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(u),u.assets||(u.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(u.assets),this.markers=markerParser(u.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(f){this.triggerConfigError(f)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var u=getExpressionsPlugin();u&&u.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(u,f){var d=typeof u=="number"?u:void 0,_=typeof f=="number"?f:void 0;this.renderer.updateContainerSize(d,_)},AnimationItem.prototype.setSubframe=function(u){this.isSubframeEnabled=!!u},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(u){this.triggerRenderFrameError(u)}},AnimationItem.prototype.play=function(u){u&&this.name!==u||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(u){u&&this.name!==u||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(u){u&&this.name!==u||(this.isPaused===!0?this.play():this.pause())},AnimationItem.prototype.stop=function(u){u&&this.name!==u||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(u){for(var f,d=0;d<this.markers.length;d+=1)if(f=this.markers[d],f.payload&&f.payload.name===u)return f;return null},AnimationItem.prototype.goToAndStop=function(u,f,d){if(!(d&&this.name!==d)){var _=Number(u);if(isNaN(_)){var x=this.getMarkerData(u);x&&this.goToAndStop(x.time,!0)}else f?this.setCurrentRawFrameValue(u):this.setCurrentRawFrameValue(u*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(u,f,d){if(!(d&&this.name!==d)){var _=Number(u);if(isNaN(_)){var x=this.getMarkerData(u);x&&(x.duration?this.playSegments([x.time,x.time+x.duration],!0):this.goToAndStop(x.time,!0))}else this.goToAndStop(_,f,d);this.play()}},AnimationItem.prototype.advanceTime=function(u){if(!(this.isPaused===!0||this.isLoaded===!1)){var f=this.currentRawFrame+u*this.frameModifier,d=!1;f>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(f>this.totalFrames?f%this.totalFrames:0)||(d=!0,f=this.totalFrames-1):f>=this.totalFrames?(this.playCount+=1,this.checkSegments(f%this.totalFrames)||(this.setCurrentRawFrameValue(f%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(f):f<0?this.checkSegments(f%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+f%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(d=!0,f=0)):this.setCurrentRawFrameValue(f),d&&(this.setCurrentRawFrameValue(f),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(u,f){this.playCount=0,u[1]<u[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=u[0]-u[1],this.timeCompleted=this.totalFrames,this.firstFrame=u[1],this.setCurrentRawFrameValue(this.totalFrames-.001-f)):u[1]>u[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=u[1]-u[0],this.timeCompleted=this.totalFrames,this.firstFrame=u[0],this.setCurrentRawFrameValue(.001+f)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(u,f){var d=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<u?d=u:this.currentRawFrame+this.firstFrame>f&&(d=f-u)),this.firstFrame=u,this.totalFrames=f-u,this.timeCompleted=this.totalFrames,d!==-1&&this.goToAndStop(d,!0)},AnimationItem.prototype.playSegments=function(u,f){if(f&&(this.segments.length=0),_typeof$4(u[0])==="object"){var d,_=u.length;for(d=0;d<_;d+=1)this.segments.push(u[d])}else this.segments.push(u);this.segments.length&&f&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(u){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),u&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(u){return this.segments.length?(this.adjustSegment(this.segments.shift(),u),!0):!1},AnimationItem.prototype.destroy=function(u){u&&this.name!==u||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(u){this.currentRawFrame=u,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(u){this.playSpeed=u,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(u){this.playDirection=u<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(u){this.loop=u},AnimationItem.prototype.setVolume=function(u,f){f&&this.name!==f||this.audioController.setVolume(u)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(u){u&&this.name!==u||this.audioController.mute()},AnimationItem.prototype.unmute=function(u){u&&this.name!==u||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(u){var f="";if(u.e)f=u.p;else if(this.assetsPath){var d=u.p;d.indexOf("images/")!==-1&&(d=d.split("/")[1]),f=this.assetsPath+d}else f=this.path,f+=u.u?u.u:"",f+=u.p;return f},AnimationItem.prototype.getAssetData=function(u){for(var f=0,d=this.assets.length;f<d;){if(u===this.assets[f].id)return this.assets[f];f+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(u){return u?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(u,f,d){try{var _=this.renderer.getElementByPath(u);_.updateDocumentData(f,d)}catch{}},AnimationItem.prototype.trigger=function(u){if(this._cbs&&this._cbs[u])switch(u){case"enterFrame":this.triggerEvent(u,new BMEnterFrameEvent(u,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(u,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(u,new BMCompleteLoopEvent(u,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(u,new BMCompleteEvent(u,this.frameMult));break;case"segmentStart":this.triggerEvent(u,new BMSegmentStartEvent(u,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(u,new BMDestroyEvent(u,this));break;default:this.triggerEvent(u)}u==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(u,this.currentFrame,this.totalFrames,this.frameMult)),u==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(u,this.loop,this.playCount,this.frameMult)),u==="complete"&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(u,this.frameMult)),u==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(u,this.firstFrame,this.totalFrames)),u==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(u,this))},AnimationItem.prototype.triggerRenderFrameError=function(u){var f=new BMRenderFrameErrorEvent(u,this.currentFrame);this.triggerEvent("error",f),this.onError&&this.onError.call(this,f)},AnimationItem.prototype.triggerConfigError=function(u){var f=new BMConfigErrorEvent(u,this.currentFrame);this.triggerEvent("error",f),this.onError&&this.onError.call(this,f)};var animationManager=function(){var u={},f=[],d=0,_=0,x=0,I=!0,E=!1;function M(z){for(var ee=0,H=z.target;ee<_;)f[ee].animation===H&&(f.splice(ee,1),ee-=1,_-=1,H.isPaused||D()),ee+=1}function S(z,ee){if(!z)return null;for(var H=0;H<_;){if(f[H].elem===z&&f[H].elem!==null)return f[H].animation;H+=1}var q=new AnimationItem;return O(q,z),q.setData(z,ee),q}function A(){var z,ee=f.length,H=[];for(z=0;z<ee;z+=1)H.push(f[z].animation);return H}function T(){x+=1,ke()}function D(){x-=1}function O(z,ee){z.addEventListener("destroy",M),z.addEventListener("_active",T),z.addEventListener("_idle",D),f.push({elem:ee,animation:z}),_+=1}function j(z){var ee=new AnimationItem;return O(ee,null),ee.setParams(z),ee}function $(z,ee){var H;for(H=0;H<_;H+=1)f[H].animation.setSpeed(z,ee)}function W(z,ee){var H;for(H=0;H<_;H+=1)f[H].animation.setDirection(z,ee)}function Q(z){var ee;for(ee=0;ee<_;ee+=1)f[ee].animation.play(z)}function X(z){var ee=z-d,H;for(H=0;H<_;H+=1)f[H].animation.advanceTime(ee);d=z,x&&!E?window.requestAnimationFrame(X):I=!0}function Y(z){d=z,window.requestAnimationFrame(X)}function ie(z){var ee;for(ee=0;ee<_;ee+=1)f[ee].animation.pause(z)}function oe(z,ee,H){var q;for(q=0;q<_;q+=1)f[q].animation.goToAndStop(z,ee,H)}function ge(z){var ee;for(ee=0;ee<_;ee+=1)f[ee].animation.stop(z)}function be(z){var ee;for(ee=0;ee<_;ee+=1)f[ee].animation.togglePause(z)}function ze(z){var ee;for(ee=_-1;ee>=0;ee-=1)f[ee].animation.destroy(z)}function de(z,ee,H){var q=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),J,U=q.length;for(J=0;J<U;J+=1)H&&q[J].setAttribute("data-bm-type",H),S(q[J],z);if(ee&&U===0){H||(H="svg");var Z=document.getElementsByTagName("body")[0];Z.innerText="";var ve=createTag("div");ve.style.width="100%",ve.style.height="100%",ve.setAttribute("data-bm-type",H),Z.appendChild(ve),S(ve,z)}}function Ce(){var z;for(z=0;z<_;z+=1)f[z].animation.resize()}function ke(){!E&&x&&I&&(window.requestAnimationFrame(Y),I=!1)}function le(){E=!0}function re(){E=!1,ke()}function P(z,ee){var H;for(H=0;H<_;H+=1)f[H].animation.setVolume(z,ee)}function k(z){var ee;for(ee=0;ee<_;ee+=1)f[ee].animation.mute(z)}function B(z){var ee;for(ee=0;ee<_;ee+=1)f[ee].animation.unmute(z)}return u.registerAnimation=S,u.loadAnimation=j,u.setSpeed=$,u.setDirection=W,u.play=Q,u.pause=ie,u.stop=ge,u.togglePause=be,u.searchAnimations=de,u.resize=Ce,u.goToAndStop=oe,u.destroy=ze,u.freeze=le,u.unfreeze=re,u.setVolume=P,u.mute=k,u.unmute=B,u.getRegisteredAnimations=A,u}(),BezierFactory=function(){var u={};u.getBezierEasing=d;var f={};function d(Y,ie,oe,ge,be){var ze=be||("bez_"+Y+"_"+ie+"_"+oe+"_"+ge).replace(/\./g,"p");if(f[ze])return f[ze];var de=new X([Y,ie,oe,ge]);return f[ze]=de,de}var _=4,x=.001,I=1e-7,E=10,M=11,S=1/(M-1),A=typeof Float32Array=="function";function T(Y,ie){return 1-3*ie+3*Y}function D(Y,ie){return 3*ie-6*Y}function O(Y){return 3*Y}function j(Y,ie,oe){return((T(ie,oe)*Y+D(ie,oe))*Y+O(ie))*Y}function $(Y,ie,oe){return 3*T(ie,oe)*Y*Y+2*D(ie,oe)*Y+O(ie)}function W(Y,ie,oe,ge,be){var ze,de,Ce=0;do de=ie+(oe-ie)/2,ze=j(de,ge,be)-Y,ze>0?oe=de:ie=de;while(Math.abs(ze)>I&&++Ce<E);return de}function Q(Y,ie,oe,ge){for(var be=0;be<_;++be){var ze=$(ie,oe,ge);if(ze===0)return ie;var de=j(ie,oe,ge)-Y;ie-=de/ze}return ie}function X(Y){this._p=Y,this._mSampleValues=A?new Float32Array(M):new Array(M),this._precomputed=!1,this.get=this.get.bind(this)}return X.prototype={get:function(ie){var oe=this._p[0],ge=this._p[1],be=this._p[2],ze=this._p[3];return this._precomputed||this._precompute(),oe===ge&&be===ze?ie:ie===0?0:ie===1?1:j(this._getTForX(ie),ge,ze)},_precompute:function(){var ie=this._p[0],oe=this._p[1],ge=this._p[2],be=this._p[3];this._precomputed=!0,(ie!==oe||ge!==be)&&this._calcSampleValues()},_calcSampleValues:function(){for(var ie=this._p[0],oe=this._p[2],ge=0;ge<M;++ge)this._mSampleValues[ge]=j(ge*S,ie,oe)},_getTForX:function(ie){for(var oe=this._p[0],ge=this._p[2],be=this._mSampleValues,ze=0,de=1,Ce=M-1;de!==Ce&&be[de]<=ie;++de)ze+=S;--de;var ke=(ie-be[de])/(be[de+1]-be[de]),le=ze+ke*S,re=$(le,oe,ge);return re>=x?Q(ie,le,oe,ge):re===0?le:W(ie,ze,ze+S,oe,ge)}},u}(),pooling=function(){function u(f){return f.concat(createSizedArray(f.length))}return{double:u}}(),poolFactory=function(){return function(u,f,d){var _=0,x=u,I=createSizedArray(x),E={newElement:M,release:S};function M(){var A;return _?(_-=1,A=I[_]):A=f(),A}function S(A){_===x&&(I=pooling.double(I),x*=2),d&&d(A),I[_]=A,_+=1}return E}}(),bezierLengthPool=function(){function u(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}return poolFactory(8,u)}(),segmentsLengthPool=function(){function u(){return{lengths:[],totalLength:0}}function f(d){var _,x=d.lengths.length;for(_=0;_<x;_+=1)bezierLengthPool.release(d.lengths[_]);d.lengths.length=0}return poolFactory(8,u,f)}();function bezFunction(){var u=Math;function f(O,j,$,W,Q,X){var Y=O*W+j*Q+$*X-Q*W-X*O-$*j;return Y>-.001&&Y<.001}function d(O,j,$,W,Q,X,Y,ie,oe){if($===0&&X===0&&oe===0)return f(O,j,W,Q,Y,ie);var ge=u.sqrt(u.pow(W-O,2)+u.pow(Q-j,2)+u.pow(X-$,2)),be=u.sqrt(u.pow(Y-O,2)+u.pow(ie-j,2)+u.pow(oe-$,2)),ze=u.sqrt(u.pow(Y-W,2)+u.pow(ie-Q,2)+u.pow(oe-X,2)),de;return ge>be?ge>ze?de=ge-be-ze:de=ze-be-ge:ze>be?de=ze-be-ge:de=be-ge-ze,de>-1e-4&&de<1e-4}var _=function(){return function(O,j,$,W){var Q=getDefaultCurveSegments(),X,Y,ie,oe,ge,be=0,ze,de=[],Ce=[],ke=bezierLengthPool.newElement();for(ie=$.length,X=0;X<Q;X+=1){for(ge=X/(Q-1),ze=0,Y=0;Y<ie;Y+=1)oe=bmPow(1-ge,3)*O[Y]+3*bmPow(1-ge,2)*ge*$[Y]+3*(1-ge)*bmPow(ge,2)*W[Y]+bmPow(ge,3)*j[Y],de[Y]=oe,Ce[Y]!==null&&(ze+=bmPow(de[Y]-Ce[Y],2)),Ce[Y]=de[Y];ze&&(ze=bmSqrt(ze),be+=ze),ke.percents[X]=ge,ke.lengths[X]=be}return ke.addedLength=be,ke}}();function x(O){var j=segmentsLengthPool.newElement(),$=O.c,W=O.v,Q=O.o,X=O.i,Y,ie=O._length,oe=j.lengths,ge=0;for(Y=0;Y<ie-1;Y+=1)oe[Y]=_(W[Y],W[Y+1],Q[Y],X[Y+1]),ge+=oe[Y].addedLength;return $&&ie&&(oe[Y]=_(W[Y],W[0],Q[Y],X[0]),ge+=oe[Y].addedLength),j.totalLength=ge,j}function I(O){this.segmentLength=0,this.points=new Array(O)}function E(O,j){this.partialLength=O,this.point=j}var M=function(){var O={};return function(j,$,W,Q){var X=(j[0]+"_"+j[1]+"_"+$[0]+"_"+$[1]+"_"+W[0]+"_"+W[1]+"_"+Q[0]+"_"+Q[1]).replace(/\./g,"p");if(!O[X]){var Y=getDefaultCurveSegments(),ie,oe,ge,be,ze,de=0,Ce,ke,le=null;j.length===2&&(j[0]!==$[0]||j[1]!==$[1])&&f(j[0],j[1],$[0],$[1],j[0]+W[0],j[1]+W[1])&&f(j[0],j[1],$[0],$[1],$[0]+Q[0],$[1]+Q[1])&&(Y=2);var re=new I(Y);for(ge=W.length,ie=0;ie<Y;ie+=1){for(ke=createSizedArray(ge),ze=ie/(Y-1),Ce=0,oe=0;oe<ge;oe+=1)be=bmPow(1-ze,3)*j[oe]+3*bmPow(1-ze,2)*ze*(j[oe]+W[oe])+3*(1-ze)*bmPow(ze,2)*($[oe]+Q[oe])+bmPow(ze,3)*$[oe],ke[oe]=be,le!==null&&(Ce+=bmPow(ke[oe]-le[oe],2));Ce=bmSqrt(Ce),de+=Ce,re.points[ie]=new E(Ce,ke),le=ke}re.segmentLength=de,O[X]=re}return O[X]}}();function S(O,j){var $=j.percents,W=j.lengths,Q=$.length,X=bmFloor((Q-1)*O),Y=O*j.addedLength,ie=0;if(X===Q-1||X===0||Y===W[X])return $[X];for(var oe=W[X]>Y?-1:1,ge=!0;ge;)if(W[X]<=Y&&W[X+1]>Y?(ie=(Y-W[X])/(W[X+1]-W[X]),ge=!1):X+=oe,X<0||X>=Q-1){if(X===Q-1)return $[X];ge=!1}return $[X]+($[X+1]-$[X])*ie}function A(O,j,$,W,Q,X){var Y=S(Q,X),ie=1-Y,oe=u.round((ie*ie*ie*O[0]+(Y*ie*ie+ie*Y*ie+ie*ie*Y)*$[0]+(Y*Y*ie+ie*Y*Y+Y*ie*Y)*W[0]+Y*Y*Y*j[0])*1e3)/1e3,ge=u.round((ie*ie*ie*O[1]+(Y*ie*ie+ie*Y*ie+ie*ie*Y)*$[1]+(Y*Y*ie+ie*Y*Y+Y*ie*Y)*W[1]+Y*Y*Y*j[1])*1e3)/1e3;return[oe,ge]}var T=createTypedArray("float32",8);function D(O,j,$,W,Q,X,Y){Q<0?Q=0:Q>1&&(Q=1);var ie=S(Q,Y);X=X>1?1:X;var oe=S(X,Y),ge,be=O.length,ze=1-ie,de=1-oe,Ce=ze*ze*ze,ke=ie*ze*ze*3,le=ie*ie*ze*3,re=ie*ie*ie,P=ze*ze*de,k=ie*ze*de+ze*ie*de+ze*ze*oe,B=ie*ie*de+ze*ie*oe+ie*ze*oe,z=ie*ie*oe,ee=ze*de*de,H=ie*de*de+ze*oe*de+ze*de*oe,q=ie*oe*de+ze*oe*oe+ie*de*oe,J=ie*oe*oe,U=de*de*de,Z=oe*de*de+de*oe*de+de*de*oe,ve=oe*oe*de+de*oe*oe+oe*de*oe,Ye=oe*oe*oe;for(ge=0;ge<be;ge+=1)T[ge*4]=u.round((Ce*O[ge]+ke*$[ge]+le*W[ge]+re*j[ge])*1e3)/1e3,T[ge*4+1]=u.round((P*O[ge]+k*$[ge]+B*W[ge]+z*j[ge])*1e3)/1e3,T[ge*4+2]=u.round((ee*O[ge]+H*$[ge]+q*W[ge]+J*j[ge])*1e3)/1e3,T[ge*4+3]=u.round((U*O[ge]+Z*$[ge]+ve*W[ge]+Ye*j[ge])*1e3)/1e3;return T}return{getSegmentsLength:x,getNewSegment:D,getPointInSegment:A,buildBezierData:M,pointOnLine2D:f,pointOnLine3D:d}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(u,f){var d=this.offsetTime,_;this.propType==="multidimensional"&&(_=createTypedArray("float32",this.pv.length));for(var x=f.lastIndex,I=x,E=this.keyframes.length-1,M=!0,S,A,T;M;){if(S=this.keyframes[I],A=this.keyframes[I+1],I===E-1&&u>=A.t-d){S.h&&(S=A),x=0;break}if(A.t-d>u){x=I;break}I<E-1?I+=1:(x=0,M=!1)}T=this.keyframesMetadata[I]||{};var D,O,j,$,W,Q,X=A.t-d,Y=S.t-d,ie;if(S.to){T.bezierData||(T.bezierData=bez.buildBezierData(S.s,A.s||S.e,S.to,S.ti));var oe=T.bezierData;if(u>=X||u<Y){var ge=u>=X?oe.points.length-1:0;for(O=oe.points[ge].point.length,D=0;D<O;D+=1)_[D]=oe.points[ge].point[D]}else{T.__fnct?Q=T.__fnct:(Q=BezierFactory.getBezierEasing(S.o.x,S.o.y,S.i.x,S.i.y,S.n).get,T.__fnct=Q),j=Q((u-Y)/(X-Y));var be=oe.segmentLength*j,ze,de=f.lastFrame<u&&f._lastKeyframeIndex===I?f._lastAddedLength:0;for(W=f.lastFrame<u&&f._lastKeyframeIndex===I?f._lastPoint:0,M=!0,$=oe.points.length;M;){if(de+=oe.points[W].partialLength,be===0||j===0||W===oe.points.length-1){for(O=oe.points[W].point.length,D=0;D<O;D+=1)_[D]=oe.points[W].point[D];break}else if(be>=de&&be<de+oe.points[W+1].partialLength){for(ze=(be-de)/oe.points[W+1].partialLength,O=oe.points[W].point.length,D=0;D<O;D+=1)_[D]=oe.points[W].point[D]+(oe.points[W+1].point[D]-oe.points[W].point[D])*ze;break}W<$-1?W+=1:M=!1}f._lastPoint=W,f._lastAddedLength=de-oe.points[W].partialLength,f._lastKeyframeIndex=I}}else{var Ce,ke,le,re,P;if(E=S.s.length,ie=A.s||S.e,this.sh&&S.h!==1)if(u>=X)_[0]=ie[0],_[1]=ie[1],_[2]=ie[2];else if(u<=Y)_[0]=S.s[0],_[1]=S.s[1],_[2]=S.s[2];else{var k=createQuaternion(S.s),B=createQuaternion(ie),z=(u-Y)/(X-Y);quaternionToEuler(_,slerp(k,B,z))}else for(I=0;I<E;I+=1)S.h!==1&&(u>=X?j=1:u<Y?j=0:(S.o.x.constructor===Array?(T.__fnct||(T.__fnct=[]),T.__fnct[I]?Q=T.__fnct[I]:(Ce=S.o.x[I]===void 0?S.o.x[0]:S.o.x[I],ke=S.o.y[I]===void 0?S.o.y[0]:S.o.y[I],le=S.i.x[I]===void 0?S.i.x[0]:S.i.x[I],re=S.i.y[I]===void 0?S.i.y[0]:S.i.y[I],Q=BezierFactory.getBezierEasing(Ce,ke,le,re).get,T.__fnct[I]=Q)):T.__fnct?Q=T.__fnct:(Ce=S.o.x,ke=S.o.y,le=S.i.x,re=S.i.y,Q=BezierFactory.getBezierEasing(Ce,ke,le,re).get,S.keyframeMetadata=Q),j=Q((u-Y)/(X-Y)))),ie=A.s||S.e,P=S.h===1?S.s[I]:S.s[I]+(ie[I]-S.s[I])*j,this.propType==="multidimensional"?_[I]=P:_=P}return f.lastIndex=x,_}function slerp(u,f,d){var _=[],x=u[0],I=u[1],E=u[2],M=u[3],S=f[0],A=f[1],T=f[2],D=f[3],O,j,$,W,Q;return j=x*S+I*A+E*T+M*D,j<0&&(j=-j,S=-S,A=-A,T=-T,D=-D),1-j>1e-6?(O=Math.acos(j),$=Math.sin(O),W=Math.sin((1-d)*O)/$,Q=Math.sin(d*O)/$):(W=1-d,Q=d),_[0]=W*x+Q*S,_[1]=W*I+Q*A,_[2]=W*E+Q*T,_[3]=W*M+Q*D,_}function quaternionToEuler(u,f){var d=f[0],_=f[1],x=f[2],I=f[3],E=Math.atan2(2*_*I-2*d*x,1-2*_*_-2*x*x),M=Math.asin(2*d*_+2*x*I),S=Math.atan2(2*d*I-2*_*x,1-2*d*d-2*x*x);u[0]=E/degToRads,u[1]=M/degToRads,u[2]=S/degToRads}function createQuaternion(u){var f=u[0]*degToRads,d=u[1]*degToRads,_=u[2]*degToRads,x=Math.cos(f/2),I=Math.cos(d/2),E=Math.cos(_/2),M=Math.sin(f/2),S=Math.sin(d/2),A=Math.sin(_/2),T=x*I*E-M*S*A,D=M*S*E+x*I*A,O=M*I*E+x*S*A,j=x*S*E-M*I*A;return[D,O,j,T]}function getValueAtCurrentTime(){var u=this.comp.renderedFrame-this.offsetTime,f=this.keyframes[0].t-this.offsetTime,d=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(u===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=d&&u>=d||this._caching.lastFrame<f&&u<f))){this._caching.lastFrame>=u&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var _=this.interpolateValue(u,this._caching);this.pv=_}return this._caching.lastFrame=u,this.pv}function setVValue(u){var f;if(this.propType==="unidimensional")f=u*this.mult,mathAbs(this.v-f)>1e-5&&(this.v=f,this._mdf=!0);else for(var d=0,_=this.v.length;d<_;)f=u[d]*this.mult,mathAbs(this.v[d]-f)>1e-5&&(this.v[d]=f,this._mdf=!0),d+=1}function processEffectsSequence(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var u,f=this.effectsSequence.length,d=this.kf?this.pv:this.data.k;for(u=0;u<f;u+=1)d=this.effectsSequence[u](d);this.setVValue(d),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function addEffect(u){this.effectsSequence.push(u),this.container.addDynamicProperty(this)}function ValueProperty(u,f,d,_){this.propType="unidimensional",this.mult=d||1,this.data=f,this.v=d?f.k*d:f.k,this.pv=f.k,this._mdf=!1,this.elem=u,this.container=_,this.comp=u.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function MultiDimensionalProperty(u,f,d,_){this.propType="multidimensional",this.mult=d||1,this.data=f,this._mdf=!1,this.elem=u,this.container=_,this.comp=u.comp,this.k=!1,this.kf=!1,this.frameId=-1;var x,I=f.k.length;for(this.v=createTypedArray("float32",I),this.pv=createTypedArray("float32",I),this.vel=createTypedArray("float32",I),x=0;x<I;x+=1)this.v[x]=f.k[x]*this.mult,this.pv[x]=f.k[x];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(u,f,d,_){this.propType="unidimensional",this.keyframes=f.k,this.keyframesMetadata=[],this.offsetTime=u.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=f,this.mult=d||1,this.elem=u,this.container=_,this.comp=u.comp,this.v=initFrame,this.pv=initFrame,this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.addEffect=addEffect}function KeyframedMultidimensionalProperty(u,f,d,_){this.propType="multidimensional";var x,I=f.k.length,E,M,S,A;for(x=0;x<I-1;x+=1)f.k[x].to&&f.k[x].s&&f.k[x+1]&&f.k[x+1].s&&(E=f.k[x].s,M=f.k[x+1].s,S=f.k[x].to,A=f.k[x].ti,(E.length===2&&!(E[0]===M[0]&&E[1]===M[1])&&bez.pointOnLine2D(E[0],E[1],M[0],M[1],E[0]+S[0],E[1]+S[1])&&bez.pointOnLine2D(E[0],E[1],M[0],M[1],M[0]+A[0],M[1]+A[1])||E.length===3&&!(E[0]===M[0]&&E[1]===M[1]&&E[2]===M[2])&&bez.pointOnLine3D(E[0],E[1],E[2],M[0],M[1],M[2],E[0]+S[0],E[1]+S[1],E[2]+S[2])&&bez.pointOnLine3D(E[0],E[1],E[2],M[0],M[1],M[2],M[0]+A[0],M[1]+A[1],M[2]+A[2]))&&(f.k[x].to=null,f.k[x].ti=null),E[0]===M[0]&&E[1]===M[1]&&S[0]===0&&S[1]===0&&A[0]===0&&A[1]===0&&(E.length===2||E[2]===M[2]&&S[2]===0&&A[2]===0)&&(f.k[x].to=null,f.k[x].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=f,this.keyframes=f.k,this.keyframesMetadata=[],this.offsetTime=u.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=d||1,this.elem=u,this.container=_,this.comp=u.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var T=f.k[0].s.length;for(this.v=createTypedArray("float32",T),this.pv=createTypedArray("float32",T),x=0;x<T;x+=1)this.v[x]=initFrame,this.pv[x]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",T)},this.addEffect=addEffect}var PropertyFactory=function(){function u(d,_,x,I,E){_.sid&&(_=d.globalData.slotManager.getProp(_));var M;if(!_.k.length)M=new ValueProperty(d,_,I,E);else if(typeof _.k[0]=="number")M=new MultiDimensionalProperty(d,_,I,E);else switch(x){case 0:M=new KeyframedValueProperty(d,_,I,E);break;case 1:M=new KeyframedMultidimensionalProperty(d,_,I,E);break}return M.effectsSequence.length&&E.addDynamicProperty(M),M}var f={getProp:u};return f}();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(f){this.dynamicProperties.indexOf(f)===-1&&(this.dynamicProperties.push(f),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var f,d=this.dynamicProperties.length;for(f=0;f<d;f+=1)this.dynamicProperties[f].getValue(),this.dynamicProperties[f]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(f){this.container=f,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=function(){function u(){return createTypedArray("float32",2)}return poolFactory(8,u)}();function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(u,f){this.c=u,this.setLength(f);for(var d=0;d<f;)this.v[d]=pointPool.newElement(),this.o[d]=pointPool.newElement(),this.i[d]=pointPool.newElement(),d+=1},ShapePath.prototype.setLength=function(u){for(;this._maxLength<u;)this.doubleArrayLength();this._length=u},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(u,f,d,_,x){var I;switch(this._length=Math.max(this._length,_+1),this._length>=this._maxLength&&this.doubleArrayLength(),d){case"v":I=this.v;break;case"i":I=this.i;break;case"o":I=this.o;break;default:I=[];break}(!I[_]||I[_]&&!x)&&(I[_]=pointPool.newElement()),I[_][0]=u,I[_][1]=f},ShapePath.prototype.setTripleAt=function(u,f,d,_,x,I,E,M){this.setXYAt(u,f,"v",E,M),this.setXYAt(d,_,"o",E,M),this.setXYAt(x,I,"i",E,M)},ShapePath.prototype.reverse=function(){var u=new ShapePath;u.setPathData(this.c,this._length);var f=this.v,d=this.o,_=this.i,x=0;this.c&&(u.setTripleAt(f[0][0],f[0][1],_[0][0],_[0][1],d[0][0],d[0][1],0,!1),x=1);var I=this._length-1,E=this._length,M;for(M=x;M<E;M+=1)u.setTripleAt(f[I][0],f[I][1],_[I][0],_[I][1],d[I][0],d[I][1],M,!1),I-=1;return u},ShapePath.prototype.length=function(){return this._length};var shapePool=function(){function u(){return new ShapePath}function f(x){var I=x._length,E;for(E=0;E<I;E+=1)pointPool.release(x.v[E]),pointPool.release(x.i[E]),pointPool.release(x.o[E]),x.v[E]=null,x.i[E]=null,x.o[E]=null;x._length=0,x.c=!1}function d(x){var I=_.newElement(),E,M=x._length===void 0?x.v.length:x._length;for(I.setLength(M),I.c=x.c,E=0;E<M;E+=1)I.setTripleAt(x.v[E][0],x.v[E][1],x.o[E][0],x.o[E][1],x.i[E][0],x.i[E][1],E);return I}var _=poolFactory(4,u,f);return _.clone=d,_}();function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(u){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=u,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var u;for(u=0;u<this._length;u+=1)shapePool.release(this.shapes[u]);this._length=0};var shapeCollectionPool=function(){var u={newShapeCollection:x,release:I},f=0,d=4,_=createSizedArray(d);function x(){var E;return f?(f-=1,E=_[f]):E=new ShapeCollection,E}function I(E){var M,S=E._length;for(M=0;M<S;M+=1)shapePool.release(E.shapes[M]);E._length=0,f===d&&(_=pooling.double(_),d*=2),_[f]=E,f+=1}return u}(),ShapePropertyFactory=function(){var u=-999999;function f(X,Y,ie){var oe=ie.lastIndex,ge,be,ze,de,Ce,ke,le,re,P,k=this.keyframes;if(X<k[0].t-this.offsetTime)ge=k[0].s[0],ze=!0,oe=0;else if(X>=k[k.length-1].t-this.offsetTime)ge=k[k.length-1].s?k[k.length-1].s[0]:k[k.length-2].e[0],ze=!0;else{for(var B=oe,z=k.length-1,ee=!0,H,q,J;ee&&(H=k[B],q=k[B+1],!(q.t-this.offsetTime>X));)B<z-1?B+=1:ee=!1;if(J=this.keyframesMetadata[B]||{},ze=H.h===1,oe=B,!ze){if(X>=q.t-this.offsetTime)re=1;else if(X<H.t-this.offsetTime)re=0;else{var U;J.__fnct?U=J.__fnct:(U=BezierFactory.getBezierEasing(H.o.x,H.o.y,H.i.x,H.i.y).get,J.__fnct=U),re=U((X-(H.t-this.offsetTime))/(q.t-this.offsetTime-(H.t-this.offsetTime)))}be=q.s?q.s[0]:H.e[0]}ge=H.s[0]}for(ke=Y._length,le=ge.i[0].length,ie.lastIndex=oe,de=0;de<ke;de+=1)for(Ce=0;Ce<le;Ce+=1)P=ze?ge.i[de][Ce]:ge.i[de][Ce]+(be.i[de][Ce]-ge.i[de][Ce])*re,Y.i[de][Ce]=P,P=ze?ge.o[de][Ce]:ge.o[de][Ce]+(be.o[de][Ce]-ge.o[de][Ce])*re,Y.o[de][Ce]=P,P=ze?ge.v[de][Ce]:ge.v[de][Ce]+(be.v[de][Ce]-ge.v[de][Ce])*re,Y.v[de][Ce]=P}function d(){var X=this.comp.renderedFrame-this.offsetTime,Y=this.keyframes[0].t-this.offsetTime,ie=this.keyframes[this.keyframes.length-1].t-this.offsetTime,oe=this._caching.lastFrame;return oe!==u&&(oe<Y&&X<Y||oe>ie&&X>ie)||(this._caching.lastIndex=oe<X?this._caching.lastIndex:0,this.interpolateShape(X,this.pv,this._caching)),this._caching.lastFrame=X,this.pv}function _(){this.paths=this.localShapeCollection}function x(X,Y){if(X._length!==Y._length||X.c!==Y.c)return!1;var ie,oe=X._length;for(ie=0;ie<oe;ie+=1)if(X.v[ie][0]!==Y.v[ie][0]||X.v[ie][1]!==Y.v[ie][1]||X.o[ie][0]!==Y.o[ie][0]||X.o[ie][1]!==Y.o[ie][1]||X.i[ie][0]!==Y.i[ie][0]||X.i[ie][1]!==Y.i[ie][1])return!1;return!0}function I(X){x(this.v,X)||(this.v=shapePool.clone(X),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function E(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length){this._mdf=!1;return}if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=!1;var X;this.kf?X=this.pv:this.data.ks?X=this.data.ks.k:X=this.data.pt.k;var Y,ie=this.effectsSequence.length;for(Y=0;Y<ie;Y+=1)X=this.effectsSequence[Y](X);this.setVValue(X),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function M(X,Y,ie){this.propType="shape",this.comp=X.comp,this.container=X,this.elem=X,this.data=Y,this.k=!1,this.kf=!1,this._mdf=!1;var oe=ie===3?Y.pt.k:Y.ks.k;this.v=shapePool.clone(oe),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=_,this.effectsSequence=[]}function S(X){this.effectsSequence.push(X),this.container.addDynamicProperty(this)}M.prototype.interpolateShape=f,M.prototype.getValue=E,M.prototype.setVValue=I,M.prototype.addEffect=S;function A(X,Y,ie){this.propType="shape",this.comp=X.comp,this.elem=X,this.container=X,this.offsetTime=X.data.st,this.keyframes=ie===3?Y.pt.k:Y.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var oe=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,oe),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=u,this.reset=_,this._caching={lastFrame:u,lastIndex:0},this.effectsSequence=[d.bind(this)]}A.prototype.getValue=E,A.prototype.interpolateShape=f,A.prototype.setVValue=I,A.prototype.addEffect=S;var T=function(){var X=roundCorner;function Y(ie,oe){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=oe.d,this.elem=ie,this.comp=ie.comp,this.frameId=-1,this.initDynamicPropertyContainer(ie),this.p=PropertyFactory.getProp(ie,oe.p,1,0,this),this.s=PropertyFactory.getProp(ie,oe.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return Y.prototype={reset:_,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var oe=this.p.v[0],ge=this.p.v[1],be=this.s.v[0]/2,ze=this.s.v[1]/2,de=this.d!==3,Ce=this.v;Ce.v[0][0]=oe,Ce.v[0][1]=ge-ze,Ce.v[1][0]=de?oe+be:oe-be,Ce.v[1][1]=ge,Ce.v[2][0]=oe,Ce.v[2][1]=ge+ze,Ce.v[3][0]=de?oe-be:oe+be,Ce.v[3][1]=ge,Ce.i[0][0]=de?oe-be*X:oe+be*X,Ce.i[0][1]=ge-ze,Ce.i[1][0]=de?oe+be:oe-be,Ce.i[1][1]=ge-ze*X,Ce.i[2][0]=de?oe+be*X:oe-be*X,Ce.i[2][1]=ge+ze,Ce.i[3][0]=de?oe-be:oe+be,Ce.i[3][1]=ge+ze*X,Ce.o[0][0]=de?oe+be*X:oe-be*X,Ce.o[0][1]=ge-ze,Ce.o[1][0]=de?oe+be:oe-be,Ce.o[1][1]=ge+ze*X,Ce.o[2][0]=de?oe-be*X:oe+be*X,Ce.o[2][1]=ge+ze,Ce.o[3][0]=de?oe-be:oe+be,Ce.o[3][1]=ge-ze*X}},extendPrototype([DynamicPropertyContainer],Y),Y}(),D=function(){function X(Y,ie){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=Y,this.comp=Y.comp,this.data=ie,this.frameId=-1,this.d=ie.d,this.initDynamicPropertyContainer(Y),ie.sy===1?(this.ir=PropertyFactory.getProp(Y,ie.ir,0,0,this),this.is=PropertyFactory.getProp(Y,ie.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(Y,ie.pt,0,0,this),this.p=PropertyFactory.getProp(Y,ie.p,1,0,this),this.r=PropertyFactory.getProp(Y,ie.r,0,degToRads,this),this.or=PropertyFactory.getProp(Y,ie.or,0,0,this),this.os=PropertyFactory.getProp(Y,ie.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return X.prototype={reset:_,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var ie=Math.floor(this.pt.v)*2,oe=Math.PI*2/ie,ge=!0,be=this.or.v,ze=this.ir.v,de=this.os.v,Ce=this.is.v,ke=2*Math.PI*be/(ie*2),le=2*Math.PI*ze/(ie*2),re,P,k,B,z=-Math.PI/2;z+=this.r.v;var ee=this.data.d===3?-1:1;for(this.v._length=0,re=0;re<ie;re+=1){P=ge?be:ze,k=ge?de:Ce,B=ge?ke:le;var H=P*Math.cos(z),q=P*Math.sin(z),J=H===0&&q===0?0:q/Math.sqrt(H*H+q*q),U=H===0&&q===0?0:-H/Math.sqrt(H*H+q*q);H+=+this.p.v[0],q+=+this.p.v[1],this.v.setTripleAt(H,q,H-J*B*k*ee,q-U*B*k*ee,H+J*B*k*ee,q+U*B*k*ee,re,!0),ge=!ge,z+=oe*ee}},convertPolygonToPath:function(){var ie=Math.floor(this.pt.v),oe=Math.PI*2/ie,ge=this.or.v,be=this.os.v,ze=2*Math.PI*ge/(ie*4),de,Ce=-Math.PI*.5,ke=this.data.d===3?-1:1;for(Ce+=this.r.v,this.v._length=0,de=0;de<ie;de+=1){var le=ge*Math.cos(Ce),re=ge*Math.sin(Ce),P=le===0&&re===0?0:re/Math.sqrt(le*le+re*re),k=le===0&&re===0?0:-le/Math.sqrt(le*le+re*re);le+=+this.p.v[0],re+=+this.p.v[1],this.v.setTripleAt(le,re,le-P*ze*be*ke,re-k*ze*be*ke,le+P*ze*be*ke,re+k*ze*be*ke,de,!0),Ce+=oe*ke}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],X),X}(),O=function(){function X(Y,ie){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=Y,this.comp=Y.comp,this.frameId=-1,this.d=ie.d,this.initDynamicPropertyContainer(Y),this.p=PropertyFactory.getProp(Y,ie.p,1,0,this),this.s=PropertyFactory.getProp(Y,ie.s,1,0,this),this.r=PropertyFactory.getProp(Y,ie.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return X.prototype={convertRectToPath:function(){var ie=this.p.v[0],oe=this.p.v[1],ge=this.s.v[0]/2,be=this.s.v[1]/2,ze=bmMin(ge,be,this.r.v),de=ze*(1-roundCorner);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(ie+ge,oe-be+ze,ie+ge,oe-be+ze,ie+ge,oe-be+de,0,!0),this.v.setTripleAt(ie+ge,oe+be-ze,ie+ge,oe+be-de,ie+ge,oe+be-ze,1,!0),ze!==0?(this.v.setTripleAt(ie+ge-ze,oe+be,ie+ge-ze,oe+be,ie+ge-de,oe+be,2,!0),this.v.setTripleAt(ie-ge+ze,oe+be,ie-ge+de,oe+be,ie-ge+ze,oe+be,3,!0),this.v.setTripleAt(ie-ge,oe+be-ze,ie-ge,oe+be-ze,ie-ge,oe+be-de,4,!0),this.v.setTripleAt(ie-ge,oe-be+ze,ie-ge,oe-be+de,ie-ge,oe-be+ze,5,!0),this.v.setTripleAt(ie-ge+ze,oe-be,ie-ge+ze,oe-be,ie-ge+de,oe-be,6,!0),this.v.setTripleAt(ie+ge-ze,oe-be,ie+ge-de,oe-be,ie+ge-ze,oe-be,7,!0)):(this.v.setTripleAt(ie-ge,oe+be,ie-ge+de,oe+be,ie-ge,oe+be,2),this.v.setTripleAt(ie-ge,oe-be,ie-ge,oe-be+de,ie-ge,oe-be,3))):(this.v.setTripleAt(ie+ge,oe-be+ze,ie+ge,oe-be+de,ie+ge,oe-be+ze,0,!0),ze!==0?(this.v.setTripleAt(ie+ge-ze,oe-be,ie+ge-ze,oe-be,ie+ge-de,oe-be,1,!0),this.v.setTripleAt(ie-ge+ze,oe-be,ie-ge+de,oe-be,ie-ge+ze,oe-be,2,!0),this.v.setTripleAt(ie-ge,oe-be+ze,ie-ge,oe-be+ze,ie-ge,oe-be+de,3,!0),this.v.setTripleAt(ie-ge,oe+be-ze,ie-ge,oe+be-de,ie-ge,oe+be-ze,4,!0),this.v.setTripleAt(ie-ge+ze,oe+be,ie-ge+ze,oe+be,ie-ge+de,oe+be,5,!0),this.v.setTripleAt(ie+ge-ze,oe+be,ie+ge-de,oe+be,ie+ge-ze,oe+be,6,!0),this.v.setTripleAt(ie+ge,oe+be-ze,ie+ge,oe+be-ze,ie+ge,oe+be-de,7,!0)):(this.v.setTripleAt(ie-ge,oe-be,ie-ge+de,oe-be,ie-ge,oe-be,1,!0),this.v.setTripleAt(ie-ge,oe+be,ie-ge,oe+be-de,ie-ge,oe+be,2,!0),this.v.setTripleAt(ie+ge,oe+be,ie+ge-de,oe+be,ie+ge,oe+be,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:_},extendPrototype([DynamicPropertyContainer],X),X}();function j(X,Y,ie){var oe;if(ie===3||ie===4){var ge=ie===3?Y.pt:Y.ks,be=ge.k;be.length?oe=new A(X,Y,ie):oe=new M(X,Y,ie)}else ie===5?oe=new O(X,Y):ie===6?oe=new T(X,Y):ie===7&&(oe=new D(X,Y));return oe.k&&X.addDynamicProperty(oe),oe}function $(){return M}function W(){return A}var Q={};return Q.getShapeProp=j,Q.getConstructorFunction=$,Q.getKeyframedConstructorFunction=W,Q}();/*!
 Transformation Matrix v2.0
 (c) Epistemex 2014-2015
 www.epistemex.com
 By Ken Fyrstenberg
 Contributions by leeoniya.
 License: MIT, header required.
 */var Matrix=function(){var u=Math.cos,f=Math.sin,d=Math.tan,_=Math.round;function x(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function I(H){if(H===0)return this;var q=u(H),J=f(H);return this._t(q,-J,0,0,J,q,0,0,0,0,1,0,0,0,0,1)}function E(H){if(H===0)return this;var q=u(H),J=f(H);return this._t(1,0,0,0,0,q,-J,0,0,J,q,0,0,0,0,1)}function M(H){if(H===0)return this;var q=u(H),J=f(H);return this._t(q,0,J,0,0,1,0,0,-J,0,q,0,0,0,0,1)}function S(H){if(H===0)return this;var q=u(H),J=f(H);return this._t(q,-J,0,0,J,q,0,0,0,0,1,0,0,0,0,1)}function A(H,q){return this._t(1,q,H,1,0,0)}function T(H,q){return this.shear(d(H),d(q))}function D(H,q){var J=u(q),U=f(q);return this._t(J,U,0,0,-U,J,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,d(H),1,0,0,0,0,1,0,0,0,0,1)._t(J,-U,0,0,U,J,0,0,0,0,1,0,0,0,0,1)}function O(H,q,J){return!J&&J!==0&&(J=1),H===1&&q===1&&J===1?this:this._t(H,0,0,0,0,q,0,0,0,0,J,0,0,0,0,1)}function j(H,q,J,U,Z,ve,Ye,rt,Ue,Qe,vt,ri,ci,tt,et,$e){return this.props[0]=H,this.props[1]=q,this.props[2]=J,this.props[3]=U,this.props[4]=Z,this.props[5]=ve,this.props[6]=Ye,this.props[7]=rt,this.props[8]=Ue,this.props[9]=Qe,this.props[10]=vt,this.props[11]=ri,this.props[12]=ci,this.props[13]=tt,this.props[14]=et,this.props[15]=$e,this}function $(H,q,J){return J=J||0,H!==0||q!==0||J!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,H,q,J,1):this}function W(H,q,J,U,Z,ve,Ye,rt,Ue,Qe,vt,ri,ci,tt,et,$e){var Le=this.props;if(H===1&&q===0&&J===0&&U===0&&Z===0&&ve===1&&Ye===0&&rt===0&&Ue===0&&Qe===0&&vt===1&&ri===0)return Le[12]=Le[12]*H+Le[15]*ci,Le[13]=Le[13]*ve+Le[15]*tt,Le[14]=Le[14]*vt+Le[15]*et,Le[15]*=$e,this._identityCalculated=!1,this;var ot=Le[0],Oe=Le[1],Ne=Le[2],Fe=Le[3],Je=Le[4],Dt=Le[5],oi=Le[6],Bt=Le[7],li=Le[8],ii=Le[9],Ot=Le[10],St=Le[11],pi=Le[12],eM=Le[13],hi=Le[14],mi=Le[15];return Le[0]=ot*H+Oe*Z+Ne*Ue+Fe*ci,Le[1]=ot*q+Oe*ve+Ne*Qe+Fe*tt,Le[2]=ot*J+Oe*Ye+Ne*vt+Fe*et,Le[3]=ot*U+Oe*rt+Ne*ri+Fe*$e,Le[4]=Je*H+Dt*Z+oi*Ue+Bt*ci,Le[5]=Je*q+Dt*ve+oi*Qe+Bt*tt,Le[6]=Je*J+Dt*Ye+oi*vt+Bt*et,Le[7]=Je*U+Dt*rt+oi*ri+Bt*$e,Le[8]=li*H+ii*Z+Ot*Ue+St*ci,Le[9]=li*q+ii*ve+Ot*Qe+St*tt,Le[10]=li*J+ii*Ye+Ot*vt+St*et,Le[11]=li*U+ii*rt+Ot*ri+St*$e,Le[12]=pi*H+eM*Z+hi*Ue+mi*ci,Le[13]=pi*q+eM*ve+hi*Qe+mi*tt,Le[14]=pi*J+eM*Ye+hi*vt+mi*et,Le[15]=pi*U+eM*rt+hi*ri+mi*$e,this._identityCalculated=!1,this}function Q(H){var q=H.props;return this.transform(q[0],q[1],q[2],q[3],q[4],q[5],q[6],q[7],q[8],q[9],q[10],q[11],q[12],q[13],q[14],q[15])}function X(){return this._identityCalculated||(this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1),this._identityCalculated=!0),this._identity}function Y(H){for(var q=0;q<16;){if(H.props[q]!==this.props[q])return!1;q+=1}return!0}function ie(H){var q;for(q=0;q<16;q+=1)H.props[q]=this.props[q];return H}function oe(H){var q;for(q=0;q<16;q+=1)this.props[q]=H[q]}function ge(H,q,J){return{x:H*this.props[0]+q*this.props[4]+J*this.props[8]+this.props[12],y:H*this.props[1]+q*this.props[5]+J*this.props[9]+this.props[13],z:H*this.props[2]+q*this.props[6]+J*this.props[10]+this.props[14]}}function be(H,q,J){return H*this.props[0]+q*this.props[4]+J*this.props[8]+this.props[12]}function ze(H,q,J){return H*this.props[1]+q*this.props[5]+J*this.props[9]+this.props[13]}function de(H,q,J){return H*this.props[2]+q*this.props[6]+J*this.props[10]+this.props[14]}function Ce(){var H=this.props[0]*this.props[5]-this.props[1]*this.props[4],q=this.props[5]/H,J=-this.props[1]/H,U=-this.props[4]/H,Z=this.props[0]/H,ve=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/H,Ye=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/H,rt=new Matrix;return rt.props[0]=q,rt.props[1]=J,rt.props[4]=U,rt.props[5]=Z,rt.props[12]=ve,rt.props[13]=Ye,rt}function ke(H){var q=this.getInverseMatrix();return q.applyToPointArray(H[0],H[1],H[2]||0)}function le(H){var q,J=H.length,U=[];for(q=0;q<J;q+=1)U[q]=ke(H[q]);return U}function re(H,q,J){var U=createTypedArray("float32",6);if(this.isIdentity())U[0]=H[0],U[1]=H[1],U[2]=q[0],U[3]=q[1],U[4]=J[0],U[5]=J[1];else{var Z=this.props[0],ve=this.props[1],Ye=this.props[4],rt=this.props[5],Ue=this.props[12],Qe=this.props[13];U[0]=H[0]*Z+H[1]*Ye+Ue,U[1]=H[0]*ve+H[1]*rt+Qe,U[2]=q[0]*Z+q[1]*Ye+Ue,U[3]=q[0]*ve+q[1]*rt+Qe,U[4]=J[0]*Z+J[1]*Ye+Ue,U[5]=J[0]*ve+J[1]*rt+Qe}return U}function P(H,q,J){var U;return this.isIdentity()?U=[H,q,J]:U=[H*this.props[0]+q*this.props[4]+J*this.props[8]+this.props[12],H*this.props[1]+q*this.props[5]+J*this.props[9]+this.props[13],H*this.props[2]+q*this.props[6]+J*this.props[10]+this.props[14]],U}function k(H,q){if(this.isIdentity())return H+","+q;var J=this.props;return Math.round((H*J[0]+q*J[4]+J[12])*100)/100+","+Math.round((H*J[1]+q*J[5]+J[13])*100)/100}function B(){for(var H=0,q=this.props,J="matrix3d(",U=1e4;H<16;)J+=_(q[H]*U)/U,J+=H===15?")":",",H+=1;return J}function z(H){var q=1e4;return H<1e-6&&H>0||H>-1e-6&&H<0?_(H*q)/q:H}function ee(){var H=this.props,q=z(H[0]),J=z(H[1]),U=z(H[4]),Z=z(H[5]),ve=z(H[12]),Ye=z(H[13]);return"matrix("+q+","+J+","+U+","+Z+","+ve+","+Ye+")"}return function(){this.reset=x,this.rotate=I,this.rotateX=E,this.rotateY=M,this.rotateZ=S,this.skew=T,this.skewFromAxis=D,this.shear=A,this.scale=O,this.setTransform=j,this.translate=$,this.transform=W,this.multiply=Q,this.applyToPoint=ge,this.applyToX=be,this.applyToY=ze,this.applyToZ=de,this.applyToPointArray=P,this.applyToTriplePoints=re,this.applyToPointStringified=k,this.toCSS=B,this.to2dCSS=ee,this.clone=ie,this.cloneFromProps=oe,this.equals=Y,this.inversePoints=le,this.inversePoint=ke,this.getInverseMatrix=Ce,this._t=this.transform,this.isIdentity=X,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(u){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$3=function(d){return typeof d}:_typeof$3=function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},_typeof$3(u)}var lottie={};function setLocation(u){setLocationHref(u)}function searchAnimations(){animationManager.searchAnimations()}function setSubframeRendering(u){setSubframeEnabled(u)}function setPrefix(u){setIdPrefix(u)}function loadAnimation(u){return animationManager.loadAnimation(u)}function setQuality(u){if(typeof u=="string")switch(u){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10);break}else!isNaN(u)&&u>1&&setDefaultCurveSegments(u)}function inBrowser(){return typeof navigator<"u"}function installPlugin(u,f){u==="expressions"&&setExpressionsPlugin(f)}function getFactory(u){switch(u){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.12.2";function checkReady(){document.readyState==="complete"&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(u){for(var f=queryString.split("&"),d=0;d<f.length;d+=1){var _=f[d].split("=");if(decodeURIComponent(_[0])==u)return decodeURIComponent(_[1])}return null}var queryString="";{var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);try{_typeof$3(exports)!=="object"&&(window.bodymovin=lottie)}catch(u){}var ShapeModifiers=function(){var u={},f={};u.registerModifier=d,u.getModifier=_;function d(x,I){f[x]||(f[x]=I)}function _(x,I,E){return new f[x](I,E)}return u}();function ShapeModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(u){if(!this.closed){u.sh.container.addDynamicProperty(u.sh);var f={shape:u.sh,data:u,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(f),this.addShapeToModifier(f),this._isAnimated&&u.setAsAnimated()}},ShapeModifier.prototype.init=function(u,f){this.shapes=[],this.elem=u,this.initDynamicPropertyContainer(u),this.initModifierProperties(u,f),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier);function TrimModifier(){}extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(u,f){this.s=PropertyFactory.getProp(u,f.s,0,.01,this),this.e=PropertyFactory.getProp(u,f.e,0,.01,this),this.o=PropertyFactory.getProp(u,f.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=f.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(u){u.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(u,f,d,_,x){var I=[];f<=1?I.push({s:u,e:f}):u>=1?I.push({s:u-1,e:f-1}):(I.push({s:u,e:1}),I.push({s:0,e:f-1}));var E=[],M,S=I.length,A;for(M=0;M<S;M+=1)if(A=I[M],!(A.e*x<_||A.s*x>_+d)){var T,D;A.s*x<=_?T=0:T=(A.s*x-_)/d,A.e*x>=_+d?D=1:D=(A.e*x-_)/d,E.push([T,D])}return E.length||E.push([0,0]),E},TrimModifier.prototype.releasePathsData=function(u){var f,d=u.length;for(f=0;f<d;f+=1)segmentsLengthPool.release(u[f]);return u.length=0,u},TrimModifier.prototype.processShapes=function(u){var f,d;if(this._mdf||u){var _=this.o.v%360/360;if(_<0&&(_+=1),this.s.v>1?f=1+_:this.s.v<0?f=0+_:f=this.s.v+_,this.e.v>1?d=1+_:this.e.v<0?d=0+_:d=this.e.v+_,f>d){var x=f;f=d,d=x}f=Math.round(f*1e4)*1e-4,d=Math.round(d*1e4)*1e-4,this.sValue=f,this.eValue=d}else f=this.sValue,d=this.eValue;var I,E,M=this.shapes.length,S,A,T,D,O,j=0;if(d===f)for(E=0;E<M;E+=1)this.shapes[E].localShapeCollection.releaseShapes(),this.shapes[E].shape._mdf=!0,this.shapes[E].shape.paths=this.shapes[E].localShapeCollection,this._mdf&&(this.shapes[E].pathsData.length=0);else if(d===1&&f===0||d===0&&f===1){if(this._mdf)for(E=0;E<M;E+=1)this.shapes[E].pathsData.length=0,this.shapes[E].shape._mdf=!0}else{var $=[],W,Q;for(E=0;E<M;E+=1)if(W=this.shapes[E],!W.shape._mdf&&!this._mdf&&!u&&this.m!==2)W.shape.paths=W.localShapeCollection;else{if(I=W.shape.paths,A=I._length,O=0,!W.shape._mdf&&W.pathsData.length)O=W.totalShapeLength;else{for(T=this.releasePathsData(W.pathsData),S=0;S<A;S+=1)D=bez.getSegmentsLength(I.shapes[S]),T.push(D),O+=D.totalLength;W.totalShapeLength=O,W.pathsData=T}j+=O,W.shape._mdf=!0}var X=f,Y=d,ie=0,oe;for(E=M-1;E>=0;E-=1)if(W=this.shapes[E],W.shape._mdf){for(Q=W.localShapeCollection,Q.releaseShapes(),this.m===2&&M>1?(oe=this.calculateShapeEdges(f,d,W.totalShapeLength,ie,j),ie+=W.totalShapeLength):oe=[[X,Y]],A=oe.length,S=0;S<A;S+=1){X=oe[S][0],Y=oe[S][1],$.length=0,Y<=1?$.push({s:W.totalShapeLength*X,e:W.totalShapeLength*Y}):X>=1?$.push({s:W.totalShapeLength*(X-1),e:W.totalShapeLength*(Y-1)}):($.push({s:W.totalShapeLength*X,e:W.totalShapeLength}),$.push({s:0,e:W.totalShapeLength*(Y-1)}));var ge=this.addShapes(W,$[0]);if($[0].s!==$[0].e){if($.length>1){var be=W.shape.paths.shapes[W.shape.paths._length-1];if(be.c){var ze=ge.pop();this.addPaths(ge,Q),ge=this.addShapes(W,$[1],ze)}else this.addPaths(ge,Q),ge=this.addShapes(W,$[1])}this.addPaths(ge,Q)}}W.shape.paths=Q}}},TrimModifier.prototype.addPaths=function(u,f){var d,_=u.length;for(d=0;d<_;d+=1)f.addShape(u[d])},TrimModifier.prototype.addSegment=function(u,f,d,_,x,I,E){x.setXYAt(f[0],f[1],"o",I),x.setXYAt(d[0],d[1],"i",I+1),E&&x.setXYAt(u[0],u[1],"v",I),x.setXYAt(_[0],_[1],"v",I+1)},TrimModifier.prototype.addSegmentFromArray=function(u,f,d,_){f.setXYAt(u[1],u[5],"o",d),f.setXYAt(u[2],u[6],"i",d+1),_&&f.setXYAt(u[0],u[4],"v",d),f.setXYAt(u[3],u[7],"v",d+1)},TrimModifier.prototype.addShapes=function(u,f,d){var _=u.pathsData,x=u.shape.paths.shapes,I,E=u.shape.paths._length,M,S,A=0,T,D,O,j,$=[],W,Q=!0;for(d?(D=d._length,W=d._length):(d=shapePool.newElement(),D=0,W=0),$.push(d),I=0;I<E;I+=1){for(O=_[I].lengths,d.c=x[I].c,S=x[I].c?O.length:O.length+1,M=1;M<S;M+=1)if(T=O[M-1],A+T.addedLength<f.s)A+=T.addedLength,d.c=!1;else if(A>f.e){d.c=!1;break}else f.s<=A&&f.e>=A+T.addedLength?(this.addSegment(x[I].v[M-1],x[I].o[M-1],x[I].i[M],x[I].v[M],d,D,Q),Q=!1):(j=bez.getNewSegment(x[I].v[M-1],x[I].v[M],x[I].o[M-1],x[I].i[M],(f.s-A)/T.addedLength,(f.e-A)/T.addedLength,O[M-1]),this.addSegmentFromArray(j,d,D,Q),Q=!1,d.c=!1),A+=T.addedLength,D+=1;if(x[I].c&&O.length){if(T=O[M-1],A<=f.e){var X=O[M-1].addedLength;f.s<=A&&f.e>=A+X?(this.addSegment(x[I].v[M-1],x[I].o[M-1],x[I].i[0],x[I].v[0],d,D,Q),Q=!1):(j=bez.getNewSegment(x[I].v[M-1],x[I].v[0],x[I].o[M-1],x[I].i[0],(f.s-A)/X,(f.e-A)/X,O[M-1]),this.addSegmentFromArray(j,d,D,Q),Q=!1,d.c=!1)}else d.c=!1;A+=T.addedLength,D+=1}if(d._length&&(d.setXYAt(d.v[W][0],d.v[W][1],"i",W),d.setXYAt(d.v[d._length-1][0],d.v[d._length-1][1],"o",d._length-1)),A>f.e)break;I<E-1&&(d=shapePool.newElement(),Q=!0,$.push(d),D=0)}return $};function PuckerAndBloatModifier(){}extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(u,f){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(u,f.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(u,f){var d=f/100,_=[0,0],x=u._length,I=0;for(I=0;I<x;I+=1)_[0]+=u.v[I][0],_[1]+=u.v[I][1];_[0]/=x,_[1]/=x;var E=shapePool.newElement();E.c=u.c;var M,S,A,T,D,O;for(I=0;I<x;I+=1)M=u.v[I][0]+(_[0]-u.v[I][0])*d,S=u.v[I][1]+(_[1]-u.v[I][1])*d,A=u.o[I][0]+(_[0]-u.o[I][0])*-d,T=u.o[I][1]+(_[1]-u.o[I][1])*-d,D=u.i[I][0]+(_[0]-u.i[I][0])*-d,O=u.i[I][1]+(_[1]-u.i[I][1])*-d,E.setTripleAt(M,S,A,T,D,O,I);return E},PuckerAndBloatModifier.prototype.processShapes=function(u){var f,d,_=this.shapes.length,x,I,E=this.amount.v;if(E!==0){var M,S;for(d=0;d<_;d+=1){if(M=this.shapes[d],S=M.localShapeCollection,!(!M.shape._mdf&&!this._mdf&&!u))for(S.releaseShapes(),M.shape._mdf=!0,f=M.shape.paths.shapes,I=M.shape.paths._length,x=0;x<I;x+=1)S.addShape(this.processPath(f[x],E));M.shape.paths=M.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var u=[0,0];function f(S){var A=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||A,this.a&&S.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&S.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&S.skewFromAxis(-this.sk.v,this.sa.v),this.r?S.rotate(-this.r.v):S.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?S.translate(this.px.v,this.py.v,-this.pz.v):S.translate(this.px.v,this.py.v,0):S.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function d(S){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||S){var A;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var T,D;if(A=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(T=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/A,0),D=this.p.getValueAtTime(this.p.keyframes[0].t/A,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(T=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/A,0),D=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/A,0)):(T=this.p.pv,D=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/A,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){T=[],D=[];var O=this.px,j=this.py;O._caching.lastFrame+O.offsetTime<=O.keyframes[0].t?(T[0]=O.getValueAtTime((O.keyframes[0].t+.01)/A,0),T[1]=j.getValueAtTime((j.keyframes[0].t+.01)/A,0),D[0]=O.getValueAtTime(O.keyframes[0].t/A,0),D[1]=j.getValueAtTime(j.keyframes[0].t/A,0)):O._caching.lastFrame+O.offsetTime>=O.keyframes[O.keyframes.length-1].t?(T[0]=O.getValueAtTime(O.keyframes[O.keyframes.length-1].t/A,0),T[1]=j.getValueAtTime(j.keyframes[j.keyframes.length-1].t/A,0),D[0]=O.getValueAtTime((O.keyframes[O.keyframes.length-1].t-.01)/A,0),D[1]=j.getValueAtTime((j.keyframes[j.keyframes.length-1].t-.01)/A,0)):(T=[O.pv,j.pv],D[0]=O.getValueAtTime((O._caching.lastFrame+O.offsetTime-.01)/A,O.offsetTime),D[1]=j.getValueAtTime((j._caching.lastFrame+j.offsetTime-.01)/A,j.offsetTime))}else D=u,T=D;this.v.rotate(-Math.atan2(T[1]-D[1],T[0]-D[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function _(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}function x(){}function I(S){this._addDynamicProperty(S),this.elem.addDynamicProperty(S),this._isDirty=!0}function E(S,A,T){if(this.elem=S,this.frameId=-1,this.propType="transform",this.data=A,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(T||S),A.p&&A.p.s?(this.px=PropertyFactory.getProp(S,A.p.x,0,0,this),this.py=PropertyFactory.getProp(S,A.p.y,0,0,this),A.p.z&&(this.pz=PropertyFactory.getProp(S,A.p.z,0,0,this))):this.p=PropertyFactory.getProp(S,A.p||{k:[0,0,0]},1,0,this),A.rx){if(this.rx=PropertyFactory.getProp(S,A.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(S,A.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(S,A.rz,0,degToRads,this),A.or.k[0].ti){var D,O=A.or.k.length;for(D=0;D<O;D+=1)A.or.k[D].to=null,A.or.k[D].ti=null}this.or=PropertyFactory.getProp(S,A.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(S,A.r||{k:0},0,degToRads,this);A.sk&&(this.sk=PropertyFactory.getProp(S,A.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(S,A.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(S,A.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(S,A.s||{k:[100,100,100]},1,.01,this),A.o?this.o=PropertyFactory.getProp(S,A.o,0,.01,S):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}E.prototype={applyToMatrix:f,getValue:d,precalculateMatrix:_,autoOrient:x},extendPrototype([DynamicPropertyContainer],E),E.prototype.addDynamicProperty=I,E.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty;function M(S,A,T){return new E(S,A,T)}return{getTransformProperty:M}}();function RepeaterModifier(){}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(u,f){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(u,f.c,0,null,this),this.o=PropertyFactory.getProp(u,f.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(u,f.tr,this),this.so=PropertyFactory.getProp(u,f.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(u,f.tr.eo,0,.01,this),this.data=f,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(u,f,d,_,x,I){var E=I?-1:1,M=_.s.v[0]+(1-_.s.v[0])*(1-x),S=_.s.v[1]+(1-_.s.v[1])*(1-x);u.translate(_.p.v[0]*E*x,_.p.v[1]*E*x,_.p.v[2]),f.translate(-_.a.v[0],-_.a.v[1],_.a.v[2]),f.rotate(-_.r.v*E*x),f.translate(_.a.v[0],_.a.v[1],_.a.v[2]),d.translate(-_.a.v[0],-_.a.v[1],_.a.v[2]),d.scale(I?1/M:M,I?1/S:S),d.translate(_.a.v[0],_.a.v[1],_.a.v[2])},RepeaterModifier.prototype.init=function(u,f,d,_){for(this.elem=u,this.arr=f,this.pos=d,this.elemsData=_,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(u),this.initModifierProperties(u,f[d]);d>0;)d-=1,this._elements.unshift(f[d]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(u){var f,d=u.length;for(f=0;f<d;f+=1)u[f]._processed=!1,u[f].ty==="gr"&&this.resetElements(u[f].it)},RepeaterModifier.prototype.cloneElements=function(u){var f=JSON.parse(JSON.stringify(u));return this.resetElements(f),f},RepeaterModifier.prototype.changeGroupRender=function(u,f){var d,_=u.length;for(d=0;d<_;d+=1)u[d]._render=f,u[d].ty==="gr"&&this.changeGroupRender(u[d].it,f)},RepeaterModifier.prototype.processShapes=function(u){var f,d,_,x,I,E=!1;if(this._mdf||u){var M=Math.ceil(this.c.v);if(this._groups.length<M){for(;this._groups.length<M;){var S={it:this.cloneElements(this._elements),ty:"gr"};S.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,S),this._groups.splice(0,0,S),this._currentCopies+=1}this.elem.reloadShapes(),E=!0}I=0;var A;for(_=0;_<=this._groups.length-1;_+=1){if(A=I<M,this._groups[_]._render=A,this.changeGroupRender(this._groups[_].it,A),!A){var T=this.elemsData[_].it,D=T[T.length-1];D.transform.op.v!==0?(D.transform.op._mdf=!0,D.transform.op.v=0):D.transform.op._mdf=!1}I+=1}this._currentCopies=M;var O=this.o.v,j=O%1,$=O>0?Math.floor(O):Math.ceil(O),W=this.pMatrix.props,Q=this.rMatrix.props,X=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var Y=0;if(O>0){for(;Y<$;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),Y+=1;j&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,j,!1),Y+=j)}else if(O<0){for(;Y>$;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),Y-=1;j&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-j,!0),Y-=j)}_=this.data.m===1?0:this._currentCopies-1,x=this.data.m===1?1:-1,I=this._currentCopies;for(var ie,oe;I;){if(f=this.elemsData[_].it,d=f[f.length-1].transform.mProps.v.props,oe=d.length,f[f.length-1].transform.mProps._mdf=!0,f[f.length-1].transform.op._mdf=!0,f[f.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(_/(this._currentCopies-1)),Y!==0){for((_!==0&&x===1||_!==this._currentCopies-1&&x===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(Q[0],Q[1],Q[2],Q[3],Q[4],Q[5],Q[6],Q[7],Q[8],Q[9],Q[10],Q[11],Q[12],Q[13],Q[14],Q[15]),this.matrix.transform(X[0],X[1],X[2],X[3],X[4],X[5],X[6],X[7],X[8],X[9],X[10],X[11],X[12],X[13],X[14],X[15]),this.matrix.transform(W[0],W[1],W[2],W[3],W[4],W[5],W[6],W[7],W[8],W[9],W[10],W[11],W[12],W[13],W[14],W[15]),ie=0;ie<oe;ie+=1)d[ie]=this.matrix.props[ie];this.matrix.reset()}else for(this.matrix.reset(),ie=0;ie<oe;ie+=1)d[ie]=this.matrix.props[ie];Y+=1,I-=1,_+=x}}else for(I=this._currentCopies,_=0,x=1;I;)f=this.elemsData[_].it,d=f[f.length-1].transform.mProps.v.props,f[f.length-1].transform.mProps._mdf=!1,f[f.length-1].transform.op._mdf=!1,I-=1,_+=x;return E},RepeaterModifier.prototype.addShape=function(){};function RoundCornersModifier(){}extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(u,f){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(u,f.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(u,f){var d=shapePool.newElement();d.c=u.c;var _,x=u._length,I,E,M,S,A,T,D=0,O,j,$,W,Q,X;for(_=0;_<x;_+=1)I=u.v[_],M=u.o[_],E=u.i[_],I[0]===M[0]&&I[1]===M[1]&&I[0]===E[0]&&I[1]===E[1]?(_===0||_===x-1)&&!u.c?(d.setTripleAt(I[0],I[1],M[0],M[1],E[0],E[1],D),D+=1):(_===0?S=u.v[x-1]:S=u.v[_-1],A=Math.sqrt(Math.pow(I[0]-S[0],2)+Math.pow(I[1]-S[1],2)),T=A?Math.min(A/2,f)/A:0,Q=I[0]+(S[0]-I[0])*T,O=Q,X=I[1]-(I[1]-S[1])*T,j=X,$=O-(O-I[0])*roundCorner,W=j-(j-I[1])*roundCorner,d.setTripleAt(O,j,$,W,Q,X,D),D+=1,_===x-1?S=u.v[0]:S=u.v[_+1],A=Math.sqrt(Math.pow(I[0]-S[0],2)+Math.pow(I[1]-S[1],2)),T=A?Math.min(A/2,f)/A:0,$=I[0]+(S[0]-I[0])*T,O=$,W=I[1]+(S[1]-I[1])*T,j=W,Q=O-(O-I[0])*roundCorner,X=j-(j-I[1])*roundCorner,d.setTripleAt(O,j,$,W,Q,X,D),D+=1):(d.setTripleAt(u.v[_][0],u.v[_][1],u.o[_][0],u.o[_][1],u.i[_][0],u.i[_][1],D),D+=1);return d},RoundCornersModifier.prototype.processShapes=function(u){var f,d,_=this.shapes.length,x,I,E=this.rd.v;if(E!==0){var M,S;for(d=0;d<_;d+=1){if(M=this.shapes[d],S=M.localShapeCollection,!(!M.shape._mdf&&!this._mdf&&!u))for(S.releaseShapes(),M.shape._mdf=!0,f=M.shape.paths.shapes,I=M.shape.paths._length,x=0;x<I;x+=1)S.addShape(this.processPath(f[x],E));M.shape.paths=M.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function floatEqual(u,f){return Math.abs(u-f)*1e5<=Math.min(Math.abs(u),Math.abs(f))}function floatZero(u){return Math.abs(u)<=1e-5}function lerp(u,f,d){return u*(1-d)+f*d}function lerpPoint(u,f,d){return[lerp(u[0],f[0],d),lerp(u[1],f[1],d)]}function quadRoots(u,f,d){if(u===0)return[];var _=f*f-4*u*d;if(_<0)return[];var x=-f/(2*u);if(_===0)return[x];var I=Math.sqrt(_)/(2*u);return[x-I,x+I]}function polynomialCoefficients(u,f,d,_){return[-u+3*f-3*d+_,3*u-6*f+3*d,-3*u+3*f,u]}function singlePoint(u){return new PolynomialBezier(u,u,u,u,!1)}function PolynomialBezier(u,f,d,_,x){x&&pointEqual(u,f)&&(f=lerpPoint(u,_,1/3)),x&&pointEqual(d,_)&&(d=lerpPoint(u,_,2/3));var I=polynomialCoefficients(u[0],f[0],d[0],_[0]),E=polynomialCoefficients(u[1],f[1],d[1],_[1]);this.a=[I[0],E[0]],this.b=[I[1],E[1]],this.c=[I[2],E[2]],this.d=[I[3],E[3]],this.points=[u,f,d,_]}PolynomialBezier.prototype.point=function(u){return[((this.a[0]*u+this.b[0])*u+this.c[0])*u+this.d[0],((this.a[1]*u+this.b[1])*u+this.c[1])*u+this.d[1]]},PolynomialBezier.prototype.derivative=function(u){return[(3*u*this.a[0]+2*this.b[0])*u+this.c[0],(3*u*this.a[1]+2*this.b[1])*u+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(u){var f=this.derivative(u);return Math.atan2(f[1],f[0])},PolynomialBezier.prototype.normalAngle=function(u){var f=this.derivative(u);return Math.atan2(f[0],f[1])},PolynomialBezier.prototype.inflectionPoints=function(){var u=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(u))return[];var f=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/u,d=f*f-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/u;if(d<0)return[];var _=Math.sqrt(d);return floatZero(_)?_>0&&_<1?[f]:[]:[f-_,f+_].filter(function(x){return x>0&&x<1})},PolynomialBezier.prototype.split=function(u){if(u<=0)return[singlePoint(this.points[0]),this];if(u>=1)return[this,singlePoint(this.points[this.points.length-1])];var f=lerpPoint(this.points[0],this.points[1],u),d=lerpPoint(this.points[1],this.points[2],u),_=lerpPoint(this.points[2],this.points[3],u),x=lerpPoint(f,d,u),I=lerpPoint(d,_,u),E=lerpPoint(x,I,u);return[new PolynomialBezier(this.points[0],f,x,E,!0),new PolynomialBezier(E,I,_,this.points[3],!0)]};function extrema(u,f){var d=u.points[0][f],_=u.points[u.points.length-1][f];if(d>_){var x=_;_=d,d=x}for(var I=quadRoots(3*u.a[f],2*u.b[f],u.c[f]),E=0;E<I.length;E+=1)if(I[E]>0&&I[E]<1){var M=u.point(I[E])[f];M<d?d=M:M>_&&(_=M)}return{min:d,max:_}}PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var u=this.bounds();return{left:u.x.min,right:u.x.max,top:u.y.min,bottom:u.y.max,width:u.x.max-u.x.min,height:u.y.max-u.y.min,cx:(u.x.max+u.x.min)/2,cy:(u.y.max+u.y.min)/2}};function intersectData(u,f,d){var _=u.boundingBox();return{cx:_.cx,cy:_.cy,width:_.width,height:_.height,bez:u,t:(f+d)/2,t1:f,t2:d}}function splitData(u){var f=u.bez.split(.5);return[intersectData(f[0],u.t1,u.t),intersectData(f[1],u.t,u.t2)]}function boxIntersect(u,f){return Math.abs(u.cx-f.cx)*2<u.width+f.width&&Math.abs(u.cy-f.cy)*2<u.height+f.height}function intersectsImpl(u,f,d,_,x,I){if(boxIntersect(u,f)){if(d>=I||u.width<=_&&u.height<=_&&f.width<=_&&f.height<=_){x.push([u.t,f.t]);return}var E=splitData(u),M=splitData(f);intersectsImpl(E[0],M[0],d+1,_,x,I),intersectsImpl(E[0],M[1],d+1,_,x,I),intersectsImpl(E[1],M[0],d+1,_,x,I),intersectsImpl(E[1],M[1],d+1,_,x,I)}}PolynomialBezier.prototype.intersections=function(u,f,d){f===void 0&&(f=2),d===void 0&&(d=7);var _=[];return intersectsImpl(intersectData(this,0,1),intersectData(u,0,1),0,f,_,d),_},PolynomialBezier.shapeSegment=function(u,f){var d=(f+1)%u.length();return new PolynomialBezier(u.v[f],u.o[f],u.i[d],u.v[d],!0)},PolynomialBezier.shapeSegmentInverted=function(u,f){var d=(f+1)%u.length();return new PolynomialBezier(u.v[d],u.i[d],u.o[f],u.v[f],!0)};function crossProduct(u,f){return[u[1]*f[2]-u[2]*f[1],u[2]*f[0]-u[0]*f[2],u[0]*f[1]-u[1]*f[0]]}function lineIntersection(u,f,d,_){var x=[u[0],u[1],1],I=[f[0],f[1],1],E=[d[0],d[1],1],M=[_[0],_[1],1],S=crossProduct(crossProduct(x,I),crossProduct(E,M));return floatZero(S[2])?null:[S[0]/S[2],S[1]/S[2]]}function polarOffset(u,f,d){return[u[0]+Math.cos(f)*d,u[1]-Math.sin(f)*d]}function pointDistance(u,f){return Math.hypot(u[0]-f[0],u[1]-f[1])}function pointEqual(u,f){return floatEqual(u[0],f[0])&&floatEqual(u[1],f[1])}function ZigZagModifier(){}extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(u,f){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(u,f.s,0,null,this),this.frequency=PropertyFactory.getProp(u,f.r,0,null,this),this.pointsType=PropertyFactory.getProp(u,f.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function setPoint(u,f,d,_,x,I,E){var M=d-Math.PI/2,S=d+Math.PI/2,A=f[0]+Math.cos(d)*_*x,T=f[1]-Math.sin(d)*_*x;u.setTripleAt(A,T,A+Math.cos(M)*I,T-Math.sin(M)*I,A+Math.cos(S)*E,T-Math.sin(S)*E,u.length())}function getPerpendicularVector(u,f){var d=[f[0]-u[0],f[1]-u[1]],_=-Math.PI*.5,x=[Math.cos(_)*d[0]-Math.sin(_)*d[1],Math.sin(_)*d[0]+Math.cos(_)*d[1]];return x}function getProjectingAngle(u,f){var d=f===0?u.length()-1:f-1,_=(f+1)%u.length(),x=u.v[d],I=u.v[_],E=getPerpendicularVector(x,I);return Math.atan2(0,1)-Math.atan2(E[1],E[0])}function zigZagCorner(u,f,d,_,x,I,E){var M=getProjectingAngle(f,d),S=f.v[d%f._length],A=f.v[d===0?f._length-1:d-1],T=f.v[(d+1)%f._length],D=I===2?Math.sqrt(Math.pow(S[0]-A[0],2)+Math.pow(S[1]-A[1],2)):0,O=I===2?Math.sqrt(Math.pow(S[0]-T[0],2)+Math.pow(S[1]-T[1],2)):0;setPoint(u,f.v[d%f._length],M,E,_,O/((x+1)*2),D/((x+1)*2))}function zigZagSegment(u,f,d,_,x,I){for(var E=0;E<_;E+=1){var M=(E+1)/(_+1),S=x===2?Math.sqrt(Math.pow(f.points[3][0]-f.points[0][0],2)+Math.pow(f.points[3][1]-f.points[0][1],2)):0,A=f.normalAngle(M),T=f.point(M);setPoint(u,T,A,I,d,S/((_+1)*2),S/((_+1)*2)),I=-I}return I}ZigZagModifier.prototype.processPath=function(u,f,d,_){var x=u._length,I=shapePool.newElement();if(I.c=u.c,u.c||(x-=1),x===0)return I;var E=-1,M=PolynomialBezier.shapeSegment(u,0);zigZagCorner(I,u,0,f,d,_,E);for(var S=0;S<x;S+=1)E=zigZagSegment(I,M,f,d,_,-E),S===x-1&&!u.c?M=null:M=PolynomialBezier.shapeSegment(u,(S+1)%x),zigZagCorner(I,u,S+1,f,d,_,E);return I},ZigZagModifier.prototype.processShapes=function(u){var f,d,_=this.shapes.length,x,I,E=this.amplitude.v,M=Math.max(0,Math.round(this.frequency.v)),S=this.pointsType.v;if(E!==0){var A,T;for(d=0;d<_;d+=1){if(A=this.shapes[d],T=A.localShapeCollection,!(!A.shape._mdf&&!this._mdf&&!u))for(T.releaseShapes(),A.shape._mdf=!0,f=A.shape.paths.shapes,I=A.shape.paths._length,x=0;x<I;x+=1)T.addShape(this.processPath(f[x],E,M,S));A.shape.paths=A.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function linearOffset(u,f,d){var _=Math.atan2(f[0]-u[0],f[1]-u[1]);return[polarOffset(u,_,d),polarOffset(f,_,d)]}function offsetSegment(u,f){var d,_,x,I,E,M,S;S=linearOffset(u.points[0],u.points[1],f),d=S[0],_=S[1],S=linearOffset(u.points[1],u.points[2],f),x=S[0],I=S[1],S=linearOffset(u.points[2],u.points[3],f),E=S[0],M=S[1];var A=lineIntersection(d,_,x,I);A===null&&(A=_);var T=lineIntersection(E,M,x,I);return T===null&&(T=E),new PolynomialBezier(d,A,T,M)}function joinLines(u,f,d,_,x){var I=f.points[3],E=d.points[0];if(_===3||pointEqual(I,E))return I;if(_===2){var M=-f.tangentAngle(1),S=-d.tangentAngle(0)+Math.PI,A=lineIntersection(I,polarOffset(I,M+Math.PI/2,100),E,polarOffset(E,M+Math.PI/2,100)),T=A?pointDistance(A,I):pointDistance(I,E)/2,D=polarOffset(I,M,2*T*roundCorner);return u.setXYAt(D[0],D[1],"o",u.length()-1),D=polarOffset(E,S,2*T*roundCorner),u.setTripleAt(E[0],E[1],E[0],E[1],D[0],D[1],u.length()),E}var O=pointEqual(I,f.points[2])?f.points[0]:f.points[2],j=pointEqual(E,d.points[1])?d.points[3]:d.points[1],$=lineIntersection(O,I,E,j);return $&&pointDistance($,I)<x?(u.setTripleAt($[0],$[1],$[0],$[1],$[0],$[1],u.length()),$):I}function getIntersection(u,f){var d=u.intersections(f);return d.length&&floatEqual(d[0][0],1)&&d.shift(),d.length?d[0]:null}function pruneSegmentIntersection(u,f){var d=u.slice(),_=f.slice(),x=getIntersection(u[u.length-1],f[0]);return x&&(d[u.length-1]=u[u.length-1].split(x[0])[0],_[0]=f[0].split(x[1])[1]),u.length>1&&f.length>1&&(x=getIntersection(u[0],f[f.length-1]),x)?[[u[0].split(x[0])[0]],[f[f.length-1].split(x[1])[1]]]:[d,_]}function pruneIntersections(u){for(var f,d=1;d<u.length;d+=1)f=pruneSegmentIntersection(u[d-1],u[d]),u[d-1]=f[0],u[d]=f[1];return u.length>1&&(f=pruneSegmentIntersection(u[u.length-1],u[0]),u[u.length-1]=f[0],u[0]=f[1]),u}function offsetSegmentSplit(u,f){var d=u.inflectionPoints(),_,x,I,E;if(d.length===0)return[offsetSegment(u,f)];if(d.length===1||floatEqual(d[1],1))return I=u.split(d[0]),_=I[0],x=I[1],[offsetSegment(_,f),offsetSegment(x,f)];I=u.split(d[0]),_=I[0];var M=(d[1]-d[0])/(1-d[0]);return I=I[1].split(M),E=I[0],x=I[1],[offsetSegment(_,f),offsetSegment(E,f),offsetSegment(x,f)]}function OffsetPathModifier(){}extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(u,f){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(u,f.a,0,null,this),this.miterLimit=PropertyFactory.getProp(u,f.ml,0,null,this),this.lineJoin=f.lj,this._isAnimated=this.amount.effectsSequence.length!==0},OffsetPathModifier.prototype.processPath=function(u,f,d,_){var x=shapePool.newElement();x.c=u.c;var I=u.length();u.c||(I-=1);var E,M,S,A=[];for(E=0;E<I;E+=1)S=PolynomialBezier.shapeSegment(u,E),A.push(offsetSegmentSplit(S,f));if(!u.c)for(E=I-1;E>=0;E-=1)S=PolynomialBezier.shapeSegmentInverted(u,E),A.push(offsetSegmentSplit(S,f));A=pruneIntersections(A);var T=null,D=null;for(E=0;E<A.length;E+=1){var O=A[E];for(D&&(T=joinLines(x,D,O[0],d,_)),D=O[O.length-1],M=0;M<O.length;M+=1)S=O[M],T&&pointEqual(S.points[0],T)?x.setXYAt(S.points[1][0],S.points[1][1],"o",x.length()-1):x.setTripleAt(S.points[0][0],S.points[0][1],S.points[1][0],S.points[1][1],S.points[0][0],S.points[0][1],x.length()),x.setTripleAt(S.points[3][0],S.points[3][1],S.points[3][0],S.points[3][1],S.points[2][0],S.points[2][1],x.length()),T=S.points[3]}return A.length&&joinLines(x,D,A[0][0],d,_),x},OffsetPathModifier.prototype.processShapes=function(u){var f,d,_=this.shapes.length,x,I,E=this.amount.v,M=this.miterLimit.v,S=this.lineJoin;if(E!==0){var A,T;for(d=0;d<_;d+=1){if(A=this.shapes[d],T=A.localShapeCollection,!(!A.shape._mdf&&!this._mdf&&!u))for(T.releaseShapes(),A.shape._mdf=!0,f=A.shape.paths.shapes,I=A.shape.paths._length,x=0;x<I;x+=1)T.addShape(this.processPath(f[x],E,S,M));A.shape.paths=A.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function getFontProperties(u){for(var f=u.fStyle?u.fStyle.split(" "):[],d="normal",_="normal",x=f.length,I,E=0;E<x;E+=1)switch(I=f[E].toLowerCase(),I){case"italic":_="italic";break;case"bold":d="700";break;case"black":d="900";break;case"medium":d="500";break;case"regular":case"normal":d="400";break;case"light":case"thin":d="200";break}return{style:_,weight:u.fWeight||d}}var FontManager=function(){var u=5e3,f={w:0,size:0,shapes:[],data:{shapes:[]}},d=[];d=d.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var _=127988,x=917631,I=917601,E=917626,M=65039,S=8205,A=127462,T=127487,D=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function O(z){var ee=z.split(","),H,q=ee.length,J=[];for(H=0;H<q;H+=1)ee[H]!=="sans-serif"&&ee[H]!=="monospace"&&J.push(ee[H]);return J.join(",")}function j(z,ee){var H=createTag("span");H.setAttribute("aria-hidden",!0),H.style.fontFamily=ee;var q=createTag("span");q.innerText="giItT1WQy@!-/#",H.style.position="absolute",H.style.left="-10000px",H.style.top="-10000px",H.style.fontSize="300px",H.style.fontVariant="normal",H.style.fontStyle="normal",H.style.fontWeight="normal",H.style.letterSpacing="0",H.appendChild(q),document.body.appendChild(H);var J=q.offsetWidth;return q.style.fontFamily=O(z)+", "+ee,{node:q,w:J,parent:H}}function $(){var z,ee=this.fonts.length,H,q,J=ee;for(z=0;z<ee;z+=1)this.fonts[z].loaded?J-=1:this.fonts[z].fOrigin==="n"||this.fonts[z].origin===0?this.fonts[z].loaded=!0:(H=this.fonts[z].monoCase.node,q=this.fonts[z].monoCase.w,H.offsetWidth!==q?(J-=1,this.fonts[z].loaded=!0):(H=this.fonts[z].sansCase.node,q=this.fonts[z].sansCase.w,H.offsetWidth!==q&&(J-=1,this.fonts[z].loaded=!0)),this.fonts[z].loaded&&(this.fonts[z].sansCase.parent.parentNode.removeChild(this.fonts[z].sansCase.parent),this.fonts[z].monoCase.parent.parentNode.removeChild(this.fonts[z].monoCase.parent)));J!==0&&Date.now()-this.initTime<u?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function W(z,ee){var H=document.body&&ee?"svg":"canvas",q,J=getFontProperties(z);if(H==="svg"){var U=createNS("text");U.style.fontSize="100px",U.setAttribute("font-family",z.fFamily),U.setAttribute("font-style",J.style),U.setAttribute("font-weight",J.weight),U.textContent="1",z.fClass?(U.style.fontFamily="inherit",U.setAttribute("class",z.fClass)):U.style.fontFamily=z.fFamily,ee.appendChild(U),q=U}else{var Z=new OffscreenCanvas(500,500).getContext("2d");Z.font=J.style+" "+J.weight+" 100px "+z.fFamily,q=Z}function ve(Ye){return H==="svg"?(q.textContent=Ye,q.getComputedTextLength()):q.measureText(Ye).width}return{measureText:ve}}function Q(z,ee){if(!z){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=z.list;return}if(!document.body){this.isLoaded=!0,z.list.forEach(function(vt){vt.helper=W(vt),vt.cache={}}),this.fonts=z.list;return}var H=z.list,q,J=H.length,U=J;for(q=0;q<J;q+=1){var Z=!0,ve,Ye;if(H[q].loaded=!1,H[q].monoCase=j(H[q].fFamily,"monospace"),H[q].sansCase=j(H[q].fFamily,"sans-serif"),!H[q].fPath)H[q].loaded=!0,U-=1;else if(H[q].fOrigin==="p"||H[q].origin===3){if(ve=document.querySelectorAll('style[f-forigin="p"][f-family="'+H[q].fFamily+'"], style[f-origin="3"][f-family="'+H[q].fFamily+'"]'),ve.length>0&&(Z=!1),Z){var rt=createTag("style");rt.setAttribute("f-forigin",H[q].fOrigin),rt.setAttribute("f-origin",H[q].origin),rt.setAttribute("f-family",H[q].fFamily),rt.type="text/css",rt.innerText="@font-face {font-family: "+H[q].fFamily+"; font-style: normal; src: url('"+H[q].fPath+"');}",ee.appendChild(rt)}}else if(H[q].fOrigin==="g"||H[q].origin===1){for(ve=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),Ye=0;Ye<ve.length;Ye+=1)ve[Ye].href.indexOf(H[q].fPath)!==-1&&(Z=!1);if(Z){var Ue=createTag("link");Ue.setAttribute("f-forigin",H[q].fOrigin),Ue.setAttribute("f-origin",H[q].origin),Ue.type="text/css",Ue.rel="stylesheet",Ue.href=H[q].fPath,document.body.appendChild(Ue)}}else if(H[q].fOrigin==="t"||H[q].origin===2){for(ve=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),Ye=0;Ye<ve.length;Ye+=1)H[q].fPath===ve[Ye].src&&(Z=!1);if(Z){var Qe=createTag("link");Qe.setAttribute("f-forigin",H[q].fOrigin),Qe.setAttribute("f-origin",H[q].origin),Qe.setAttribute("rel","stylesheet"),Qe.setAttribute("href",H[q].fPath),ee.appendChild(Qe)}}H[q].helper=W(H[q],ee),H[q].cache={},this.fonts.push(H[q])}U===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function X(z){if(z){this.chars||(this.chars=[]);var ee,H=z.length,q,J=this.chars.length,U;for(ee=0;ee<H;ee+=1){for(q=0,U=!1;q<J;)this.chars[q].style===z[ee].style&&this.chars[q].fFamily===z[ee].fFamily&&this.chars[q].ch===z[ee].ch&&(U=!0),q+=1;U||(this.chars.push(z[ee]),J+=1)}}}function Y(z,ee,H){for(var q=0,J=this.chars.length;q<J;){if(this.chars[q].ch===z&&this.chars[q].style===ee&&this.chars[q].fFamily===H)return this.chars[q];q+=1}return(typeof z=="string"&&z.charCodeAt(0)!==13||!z)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",z,ee,H)),f}function ie(z,ee,H){var q=this.getFontByName(ee),J=z;if(!q.cache[J]){var U=q.helper;if(z===" "){var Z=U.measureText("|"+z+"|"),ve=U.measureText("||");q.cache[J]=(Z-ve)/100}else q.cache[J]=U.measureText(z)/100}return q.cache[J]*H}function oe(z){for(var ee=0,H=this.fonts.length;ee<H;){if(this.fonts[ee].fName===z)return this.fonts[ee];ee+=1}return this.fonts[0]}function ge(z){var ee=0,H=z.charCodeAt(0);if(H>=55296&&H<=56319){var q=z.charCodeAt(1);q>=56320&&q<=57343&&(ee=(H-55296)*1024+q-56320+65536)}return ee}function be(z,ee){var H=z.toString(16)+ee.toString(16);return D.indexOf(H)!==-1}function ze(z){return z===S}function de(z){return z===M}function Ce(z){var ee=ge(z);return ee>=A&&ee<=T}function ke(z){return Ce(z.substr(0,2))&&Ce(z.substr(2,2))}function le(z){return d.indexOf(z)!==-1}function re(z,ee){var H=ge(z.substr(ee,2));if(H!==_)return!1;var q=0;for(ee+=2;q<5;){if(H=ge(z.substr(ee,2)),H<I||H>E)return!1;q+=1,ee+=2}return ge(z.substr(ee,2))===x}function P(){this.isLoaded=!0}var k=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};k.isModifier=be,k.isZeroWidthJoiner=ze,k.isFlagEmoji=ke,k.isRegionalCode=Ce,k.isCombinedCharacter=le,k.isRegionalFlag=re,k.isVariationSelector=de,k.BLACK_FLAG_CODE_POINT=_;var B={addChars:X,addFonts:Q,getCharData:Y,getFontByName:oe,measureText:ie,checkLoadedFonts:$,setIsLoaded:P};return k.prototype=B,k}();function SlotManager(u){this.animationData=u}SlotManager.prototype.getProp=function(u){return this.animationData.slots&&this.animationData.slots[u.sid]?Object.assign(u,this.animationData.slots[u.sid].p):u};function slotFactory(u){return new SlotManager(u)}function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(f){this.renderableComponents.indexOf(f)===-1&&this.renderableComponents.push(f)},removeRenderableComponent:function(f){this.renderableComponents.indexOf(f)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(f),1)},prepareRenderableFrame:function(f){this.checkLayerLimits(f)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(f){this.data.ip-this.data.st<=f&&this.data.op-this.data.st>f?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var f,d=this.renderableComponents.length;for(f=0;f<d;f+=1)this.renderableComponents[f].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return this.data.ty===5?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode=function(){var u={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(f){return u[f]||""}}();function SliderEffect(u,f,d){this.p=PropertyFactory.getProp(f,u.v,0,0,d)}function AngleEffect(u,f,d){this.p=PropertyFactory.getProp(f,u.v,0,0,d)}function ColorEffect(u,f,d){this.p=PropertyFactory.getProp(f,u.v,1,0,d)}function PointEffect(u,f,d){this.p=PropertyFactory.getProp(f,u.v,1,0,d)}function LayerIndexEffect(u,f,d){this.p=PropertyFactory.getProp(f,u.v,0,0,d)}function MaskIndexEffect(u,f,d){this.p=PropertyFactory.getProp(f,u.v,0,0,d)}function CheckboxEffect(u,f,d){this.p=PropertyFactory.getProp(f,u.v,0,0,d)}function NoValueEffect(){this.p={}}function EffectsManager(u,f){var d=u.ef||[];this.effectElements=[];var _,x=d.length,I;for(_=0;_<x;_+=1)I=new GroupEffect(d[_],f),this.effectElements.push(I)}function GroupEffect(u,f){this.init(u,f)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(u,f){this.data=u,this.effectElements=[],this.initDynamicPropertyContainer(f);var d,_=this.data.ef.length,x,I=this.data.ef;for(d=0;d<_;d+=1){switch(x=null,I[d].ty){case 0:x=new SliderEffect(I[d],f,this);break;case 1:x=new AngleEffect(I[d],f,this);break;case 2:x=new ColorEffect(I[d],f,this);break;case 3:x=new PointEffect(I[d],f,this);break;case 4:case 7:x=new CheckboxEffect(I[d],f,this);break;case 10:x=new LayerIndexEffect(I[d],f,this);break;case 11:x=new MaskIndexEffect(I[d],f,this);break;case 5:x=new EffectsManager(I[d],f);break;default:x=new NoValueEffect(I[d]);break}x&&this.effectElements.push(x)}};function BaseElement(){}BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var f=0,d=this.data.masksProperties.length;f<d;){if(this.data.masksProperties[f].mode!=="n"&&this.data.masksProperties[f].cl!==!1)return!0;f+=1}return!1},initExpressions:function(){var f=getExpressionInterfaces();if(f){var d=f("layer"),_=f("effects"),x=f("shape"),I=f("text"),E=f("comp");this.layerInterface=d(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var M=_.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(M),this.data.ty===0||this.data.xt?this.compInterface=E(this):this.data.ty===4?(this.layerInterface.shapeInterface=x(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=I(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var f=getBlendMode(this.data.bm),d=this.baseElement||this.layerElement;d.style["mix-blend-mode"]=f},initBaseData:function(f,d,_){this.globalData=d,this.comp=_,this.data=f,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function FrameElement(){}FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(f,d){var _,x=this.dynamicProperties.length;for(_=0;_<x;_+=1)(d||this._isParent&&this.dynamicProperties[_].propType==="transform")&&(this.dynamicProperties[_].getValue(),this.dynamicProperties[_]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(f){this.dynamicProperties.indexOf(f)===-1&&this.dynamicProperties.push(f)}};function FootageElement(u,f,d){this.initFrame(),this.initRenderable(),this.assetData=f.getAssetData(u.refId),this.footageData=f.imageLoader.getAsset(this.assetData),this.initBaseData(u,f,d)}FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var u=getExpressionInterfaces();if(u){var f=u("footage");this.layerInterface=f(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData};function AudioElement(u,f,d){this.initFrame(),this.initRenderable(),this.assetData=f.getAssetData(u.refId),this.initBaseData(u,f,d),this._isPlaying=!1,this._canPlay=!1;var _=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(_),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=u.tm?PropertyFactory.getProp(this,u.tm,0,f.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,u.au&&u.au.lv?u.au.lv:{k:[100]},1,.01,this)}AudioElement.prototype.prepareFrame=function(u){if(this.prepareRenderableFrame(u,!0),this.prepareProperties(u,!0),this.tm._placeholder)this._currentTime=u/this.data.sr;else{var f=this.tm.v;this._currentTime=f}this._volume=this.lv.v[0];var d=this._volume*this._volumeMultiplier;this._previousVolume!==d&&(this._previousVolume=d,this.audio.volume(d))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(u){this.audio.rate(u)},AudioElement.prototype.volume=function(u){this._volumeMultiplier=u,this._previousVolume=u*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){};function BaseRenderer(){}BaseRenderer.prototype.checkLayers=function(u){var f,d=this.layers.length,_;for(this.completeLayers=!0,f=d-1;f>=0;f-=1)this.elements[f]||(_=this.layers[f],_.ip-_.st<=u-this.layers[f].st&&_.op-_.st>u-this.layers[f].st&&this.buildItem(f)),this.completeLayers=this.elements[f]?this.completeLayers:!1;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(u){switch(u.ty){case 2:return this.createImage(u);case 0:return this.createComp(u);case 1:return this.createSolid(u);case 3:return this.createNull(u);case 4:return this.createShape(u);case 5:return this.createText(u);case 6:return this.createAudio(u);case 13:return this.createCamera(u);case 15:return this.createFootage(u);default:return this.createNull(u)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(u){return new AudioElement(u,this.globalData,this)},BaseRenderer.prototype.createFootage=function(u){return new FootageElement(u,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var u,f=this.layers.length;for(u=0;u<f;u+=1)this.buildItem(u);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(u){this.completeLayers=!1;var f,d=u.length,_,x=this.layers.length;for(f=0;f<d;f+=1)for(_=0;_<x;){if(this.layers[_].id===u[f].id){this.layers[_]=u[f];break}_+=1}},BaseRenderer.prototype.setProjectInterface=function(u){this.globalData.projectInterface=u},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(u,f,d){for(var _=this.elements,x=this.layers,I=0,E=x.length;I<E;)x[I].ind==f&&(!_[I]||_[I]===!0?(this.buildItem(I),this.addPendingElement(u)):(d.push(_[I]),_[I].setAsParent(),x[I].parent!==void 0?this.buildElementParenting(u,x[I].parent,d):u.setHierarchy(d))),I+=1},BaseRenderer.prototype.addPendingElement=function(u){this.pendingElements.push(u)},BaseRenderer.prototype.searchExtraCompositions=function(u){var f,d=u.length;for(f=0;f<d;f+=1)if(u[f].xt){var _=this.createComp(u[f]);_.initExpressions(),this.globalData.projectInterface.registerComposition(_)}},BaseRenderer.prototype.getElementById=function(u){var f,d=this.elements.length;for(f=0;f<d;f+=1)if(this.elements[f].data.ind===u)return this.elements[f];return null},BaseRenderer.prototype.getElementByPath=function(u){var f=u.shift(),d;if(typeof f=="number")d=this.elements[f];else{var _,x=this.elements.length;for(_=0;_<x;_+=1)if(this.elements[_].data.nm===f){d=this.elements[_];break}}return u.length===0?d:d.getElementByPath(u)},BaseRenderer.prototype.setupGlobalData=function(u,f){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(u),this.globalData.fontManager.addChars(u.chars),this.globalData.fontManager.addFonts(u.fonts,f),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=u.fr,this.globalData.nm=u.nm,this.globalData.compSize={w:u.w,h:u.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}TransformElement.prototype={initTransform:function(){var f=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:f,localMat:f,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var f,d=this.finalTransform.mat,_=0,x=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;_<x;){if(this.hierarchy[_].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}_+=1}if(this.finalTransform._matMdf)for(f=this.finalTransform.mProp.v.props,d.cloneFromProps(f),_=0;_<x;_+=1)d.multiply(this.hierarchy[_].finalTransform.mProp.v)}this.finalTransform._matMdf&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var f=0,d=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;f<d;)this.localTransforms[f]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[f]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),f+=1;if(this.finalTransform._localMatMdf){var _=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(_),f=1;f<d;f+=1){var x=this.localTransforms[f].matrix;_.multiply(x)}_.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var I=this.finalTransform.localOpacity;for(f=0;f<d;f+=1)I*=this.localTransforms[f].opacity*.01;this.finalTransform.localOpacity=I}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var f=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(f.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var d=0,_=f.length;for(d=0;d<_;d+=1)this.localTransforms.push(f[d])}}},globalToLocal:function(f){var d=[];d.push(this.finalTransform);for(var _=!0,x=this.comp;_;)x.finalTransform?(x.data.hasMask&&d.splice(0,0,x.finalTransform),x=x.comp):_=!1;var I,E=d.length,M;for(I=0;I<E;I+=1)M=d[I].mat.applyToPointArray(0,0,0),f=[f[0]-M[0],f[1]-M[1],0];return f},mHelper:new Matrix};function MaskElement(u,f,d){this.data=u,this.element=f,this.globalData=d,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var _=this.globalData.defs,x,I=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(I),this.solidPath="";var E,M=this.masksProperties,S=0,A=[],T,D,O=createElementID(),j,$,W,Q,X="clipPath",Y="clip-path";for(x=0;x<I;x+=1)if((M[x].mode!=="a"&&M[x].mode!=="n"||M[x].inv||M[x].o.k!==100||M[x].o.x)&&(X="mask",Y="mask"),(M[x].mode==="s"||M[x].mode==="i")&&S===0?(j=createNS("rect"),j.setAttribute("fill","#ffffff"),j.setAttribute("width",this.element.comp.data.w||0),j.setAttribute("height",this.element.comp.data.h||0),A.push(j)):j=null,E=createNS("path"),M[x].mode==="n")this.viewData[x]={op:PropertyFactory.getProp(this.element,M[x].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,M[x],3),elem:E,lastPath:""},_.appendChild(E);else{S+=1,E.setAttribute("fill",M[x].mode==="s"?"#000000":"#ffffff"),E.setAttribute("clip-rule","nonzero");var ie;if(M[x].x.k!==0?(X="mask",Y="mask",Q=PropertyFactory.getProp(this.element,M[x].x,0,null,this.element),ie=createElementID(),$=createNS("filter"),$.setAttribute("id",ie),W=createNS("feMorphology"),W.setAttribute("operator","erode"),W.setAttribute("in","SourceGraphic"),W.setAttribute("radius","0"),$.appendChild(W),_.appendChild($),E.setAttribute("stroke",M[x].mode==="s"?"#000000":"#ffffff")):(W=null,Q=null),this.storedData[x]={elem:E,x:Q,expan:W,lastPath:"",lastOperator:"",filterId:ie,lastRadius:0},M[x].mode==="i"){D=A.length;var oe=createNS("g");for(T=0;T<D;T+=1)oe.appendChild(A[T]);var ge=createNS("mask");ge.setAttribute("mask-type","alpha"),ge.setAttribute("id",O+"_"+S),ge.appendChild(E),_.appendChild(ge),oe.setAttribute("mask","url("+getLocationHref()+"#"+O+"_"+S+")"),A.length=0,A.push(oe)}else A.push(E);M[x].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[x]={elem:E,lastPath:"",op:PropertyFactory.getProp(this.element,M[x].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,M[x],3),invRect:j},this.viewData[x].prop.k||this.drawPath(M[x],this.viewData[x].prop.v,this.viewData[x])}for(this.maskElement=createNS(X),I=A.length,x=0;x<I;x+=1)this.maskElement.appendChild(A[x]);S>0&&(this.maskElement.setAttribute("id",O),this.element.maskedElement.setAttribute(Y,"url("+getLocationHref()+"#"+O+")"),_.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}MaskElement.prototype.getMaskProperty=function(u){return this.viewData[u].prop},MaskElement.prototype.renderFrame=function(u){var f=this.element.finalTransform.mat,d,_=this.masksProperties.length;for(d=0;d<_;d+=1)if((this.viewData[d].prop._mdf||u)&&this.drawPath(this.masksProperties[d],this.viewData[d].prop.v,this.viewData[d]),(this.viewData[d].op._mdf||u)&&this.viewData[d].elem.setAttribute("fill-opacity",this.viewData[d].op.v),this.masksProperties[d].mode!=="n"&&(this.viewData[d].invRect&&(this.element.finalTransform.mProp._mdf||u)&&this.viewData[d].invRect.setAttribute("transform",f.getInverseMatrix().to2dCSS()),this.storedData[d].x&&(this.storedData[d].x._mdf||u))){var x=this.storedData[d].expan;this.storedData[d].x.v<0?(this.storedData[d].lastOperator!=="erode"&&(this.storedData[d].lastOperator="erode",this.storedData[d].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[d].filterId+")")),x.setAttribute("radius",-this.storedData[d].x.v)):(this.storedData[d].lastOperator!=="dilate"&&(this.storedData[d].lastOperator="dilate",this.storedData[d].elem.setAttribute("filter",null)),this.storedData[d].elem.setAttribute("stroke-width",this.storedData[d].x.v*2))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var u="M0,0 ";return u+=" h"+this.globalData.compSize.w,u+=" v"+this.globalData.compSize.h,u+=" h-"+this.globalData.compSize.w,u+=" v-"+this.globalData.compSize.h+" ",u},MaskElement.prototype.drawPath=function(u,f,d){var _=" M"+f.v[0][0]+","+f.v[0][1],x,I;for(I=f._length,x=1;x<I;x+=1)_+=" C"+f.o[x-1][0]+","+f.o[x-1][1]+" "+f.i[x][0]+","+f.i[x][1]+" "+f.v[x][0]+","+f.v[x][1];if(f.c&&I>1&&(_+=" C"+f.o[x-1][0]+","+f.o[x-1][1]+" "+f.i[0][0]+","+f.i[0][1]+" "+f.v[0][0]+","+f.v[0][1]),d.lastPath!==_){var E="";d.elem&&(f.c&&(E=u.inv?this.solidPath+_:_),d.elem.setAttribute("d",E)),d.lastPath=_}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var u={};u.createFilter=f,u.createAlphaToLuminanceFilter=d;function f(_,x){var I=createNS("filter");return I.setAttribute("id",_),x!==!0&&(I.setAttribute("filterUnits","objectBoundingBox"),I.setAttribute("x","0%"),I.setAttribute("y","0%"),I.setAttribute("width","100%"),I.setAttribute("height","100%")),I}function d(){var _=createNS("feColorMatrix");return _.setAttribute("type","matrix"),_.setAttribute("color-interpolation-filters","sRGB"),_.setAttribute("values","0 0 0 1 0  0 0 0 1 0  0 0 0 1 0  0 0 0 1 1"),_}return u}(),featureSupport=function(){var u={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(u.maskType=!1),/firefox/i.test(navigator.userAgent)&&(u.svgLumaHidden=!1),u}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(u){var f,d="SourceGraphic",_=u.data.ef?u.data.ef.length:0,x=createElementID(),I=filtersFactory.createFilter(x,!0),E=0;this.filters=[];var M;for(f=0;f<_;f+=1){M=null;var S=u.data.ef[f].ty;if(registeredEffects$1[S]){var A=registeredEffects$1[S].effect;M=new A(I,u.effectsManager.effectElements[f],u,idPrefix+E,d),d=idPrefix+E,registeredEffects$1[S].countsAsEffect&&(E+=1)}M&&this.filters.push(M)}E&&(u.globalData.defs.appendChild(I),u.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+x+")")),this.filters.length&&u.addRenderableComponent(this)}SVGEffects.prototype.renderFrame=function(u){var f,d=this.filters.length;for(f=0;f<d;f+=1)this.filters[f].renderFrame(u)},SVGEffects.prototype.getEffects=function(u){var f,d=this.filters.length,_=[];for(f=0;f<d;f+=1)this.filters[f].type===u&&_.push(this.filters[f]);return _};function registerEffect$1(u,f,d){registeredEffects$1[u]={effect:f,countsAsEffect:d}}function SVGBaseElement(){}SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var f=null;if(this.data.td){this.matteMasks={};var d=createNS("g");d.setAttribute("id",this.layerId),d.appendChild(this.layerElement),f=d,this.globalData.defs.appendChild(d)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),f=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.ty===0&&!this.data.hd){var _=createNS("clipPath"),x=createNS("path");x.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var I=createElementID();if(_.setAttribute("id",I),_.appendChild(x),this.globalData.defs.appendChild(_),this.checkMasks()){var E=createNS("g");E.setAttribute("clip-path","url("+getLocationHref()+"#"+I+")"),E.appendChild(this.layerElement),this.transformedElement=E,f?f.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+I+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this),this.searchEffectTransforms()},getMatte:function(f){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[f]){var d=this.layerId+"_"+f,_,x,I,E;if(f===1||f===3){var M=createNS("mask");M.setAttribute("id",d),M.setAttribute("mask-type",f===3?"luminance":"alpha"),I=createNS("use"),I.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),M.appendChild(I),this.globalData.defs.appendChild(M),!featureSupport.maskType&&f===1&&(M.setAttribute("mask-type","luminance"),_=createElementID(),x=filtersFactory.createFilter(_),this.globalData.defs.appendChild(x),x.appendChild(filtersFactory.createAlphaToLuminanceFilter()),E=createNS("g"),E.appendChild(I),M.appendChild(E),E.setAttribute("filter","url("+getLocationHref()+"#"+_+")"))}else if(f===2){var S=createNS("mask");S.setAttribute("id",d),S.setAttribute("mask-type","alpha");var A=createNS("g");S.appendChild(A),_=createElementID(),x=filtersFactory.createFilter(_);var T=createNS("feComponentTransfer");T.setAttribute("in","SourceGraphic"),x.appendChild(T);var D=createNS("feFuncA");D.setAttribute("type","table"),D.setAttribute("tableValues","1.0 0.0"),T.appendChild(D),this.globalData.defs.appendChild(x);var O=createNS("rect");O.setAttribute("width",this.comp.data.w),O.setAttribute("height",this.comp.data.h),O.setAttribute("x","0"),O.setAttribute("y","0"),O.setAttribute("fill","#ffffff"),O.setAttribute("opacity","0"),A.setAttribute("filter","url("+getLocationHref()+"#"+_+")"),A.appendChild(O),I=createNS("use"),I.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),A.appendChild(I),featureSupport.maskType||(S.setAttribute("mask-type","luminance"),x.appendChild(filtersFactory.createAlphaToLuminanceFilter()),E=createNS("g"),A.appendChild(O),E.appendChild(this.layerElement),A.appendChild(E)),this.globalData.defs.appendChild(S)}this.matteMasks[f]=d}return this.matteMasks[f]},setMatte:function(f){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+f+")")}};function HierarchyElement(){}HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(f){this.hierarchy=f},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function RenderableDOMElement(){}(function(){var u={initElement:function(d,_,x){this.initFrame(),this.initBaseData(d,_,x),this.initTransform(d,_,x),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var d=this.baseElement||this.layerElement;d.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var d=this.baseElement||this.layerElement;d.style.display="block"}this.hidden=!1,this._isFirstFrame=!0}},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(d){this._mdf=!1,this.prepareRenderableFrame(d),this.prepareProperties(d,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};extendPrototype([RenderableElement,createProxyFunction(u)],RenderableDOMElement)})();function IImageElement(u,f,d){this.assetData=f.getAssetData(u.refId),this.assetData&&this.assetData.sid&&(this.assetData=f.slotManager.getProp(this.assetData)),this.initElement(u,f,d),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var u=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",u),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect};function ProcessedElement(u,f){this.elem=u,this.pos=f}function IShapeElement(){}IShapeElement.prototype={addShapeToModifiers:function(f){var d,_=this.shapeModifiers.length;for(d=0;d<_;d+=1)this.shapeModifiers[d].addShape(f)},isShapeInAnimatedModifiers:function(f){for(var d=0,_=this.shapeModifiers.length;d<_;)if(this.shapeModifiers[d].isAnimatedWithShape(f))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var f,d=this.shapes.length;for(f=0;f<d;f+=1)this.shapes[f].sh.reset();d=this.shapeModifiers.length;var _;for(f=d-1;f>=0&&(_=this.shapeModifiers[f].processShapes(this._isFirstFrame),!_);f-=1);}},searchProcessedElement:function(f){for(var d=this.processedElements,_=0,x=d.length;_<x;){if(d[_].elem===f)return d[_].pos;_+=1}return 0},addProcessedElement:function(f,d){for(var _=this.processedElements,x=_.length;x;)if(x-=1,_[x].elem===f){_[x].pos=d;return}_.push(new ProcessedElement(f,d))},prepareFrame:function(f){this.prepareRenderableFrame(f),this.prepareProperties(f,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(u,f,d){this.caches=[],this.styles=[],this.transformers=u,this.lStr="",this.sh=d,this.lvl=f,this._isAnimated=!!d.k;for(var _=0,x=u.length;_<x;){if(u[_].mProps.dynamicProperties.length){this._isAnimated=!0;break}_+=1}}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0};function SVGStyleData(u,f){this.data=u,this.type=u.ty,this.d="",this.lvl=f,this._mdf=!1,this.closed=u.hd===!0,this.pElem=createNS("path"),this.msElem=null}SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1};function DashProperty(u,f,d,_){this.elem=u,this.frameId=-1,this.dataProps=createSizedArray(f.length),this.renderer=d,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",f.length?f.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(_);var x,I=f.length||0,E;for(x=0;x<I;x+=1)E=PropertyFactory.getProp(u,f[x].v,0,0,this),this.k=E.k||this.k,this.dataProps[x]={n:f[x].n,p:E};this.k||this.getValue(!0),this._isAnimated=this.k}DashProperty.prototype.getValue=function(u){if(!(this.elem.globalData.frameId===this.frameId&&!u)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||u,this._mdf)){var f=0,d=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),f=0;f<d;f+=1)this.dataProps[f].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[f].p.v:this.dashArray[f]=this.dataProps[f].p.v:this.dashoffset[0]=this.dataProps[f].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty);function SVGStrokeStyleData(u,f,d){this.initDynamicPropertyContainer(u),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(u,f.o,0,.01,this),this.w=PropertyFactory.getProp(u,f.w,0,null,this),this.d=new DashProperty(u,f.d||{},"svg",this),this.c=PropertyFactory.getProp(u,f.c,1,255,this),this.style=d,this._isAnimated=!!this._isAnimated}extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData);function SVGFillStyleData(u,f,d){this.initDynamicPropertyContainer(u),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(u,f.o,0,.01,this),this.c=PropertyFactory.getProp(u,f.c,1,255,this),this.style=d}extendPrototype([DynamicPropertyContainer],SVGFillStyleData);function SVGNoStyleData(u,f,d){this.initDynamicPropertyContainer(u),this.getValue=this.iterateDynamicProperties,this.style=d}extendPrototype([DynamicPropertyContainer],SVGNoStyleData);function GradientProperty(u,f,d){this.data=f,this.c=createTypedArray("uint8c",f.p*4);var _=f.k.k[0].s?f.k.k[0].s.length-f.p*4:f.k.k.length-f.p*4;this.o=createTypedArray("float32",_),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=_,this.initDynamicPropertyContainer(d),this.prop=PropertyFactory.getProp(u,f.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}GradientProperty.prototype.comparePoints=function(u,f){for(var d=0,_=this.o.length/2,x;d<_;){if(x=Math.abs(u[d*4]-u[f*4+d*2]),x>.01)return!1;d+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var u=0,f=this.data.k.k.length;u<f;){if(!this.comparePoints(this.data.k.k[u].s,this.data.p))return!1;u+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(u){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||u){var f,d=this.data.p*4,_,x;for(f=0;f<d;f+=1)_=f%4===0?100:255,x=Math.round(this.prop.v[f]*_),this.c[f]!==x&&(this.c[f]=x,this._cmdf=!u);if(this.o.length)for(d=this.prop.v.length,f=this.data.p*4;f<d;f+=1)_=f%2===0?100:1,x=f%2===0?Math.round(this.prop.v[f]*100):this.prop.v[f],this.o[f-this.data.p*4]!==x&&(this.o[f-this.data.p*4]=x,this._omdf=!u);this._mdf=!u}},extendPrototype([DynamicPropertyContainer],GradientProperty);function SVGGradientFillStyleData(u,f,d){this.initDynamicPropertyContainer(u),this.getValue=this.iterateDynamicProperties,this.initGradientData(u,f,d)}SVGGradientFillStyleData.prototype.initGradientData=function(u,f,d){this.o=PropertyFactory.getProp(u,f.o,0,.01,this),this.s=PropertyFactory.getProp(u,f.s,1,null,this),this.e=PropertyFactory.getProp(u,f.e,1,null,this),this.h=PropertyFactory.getProp(u,f.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(u,f.a||{k:0},0,degToRads,this),this.g=new GradientProperty(u,f.g,this),this.style=d,this.stops=[],this.setGradientData(d.pElem,f),this.setGradientOpacity(f,d),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(u,f){var d=createElementID(),_=createNS(f.t===1?"linearGradient":"radialGradient");_.setAttribute("id",d),_.setAttribute("spreadMethod","pad"),_.setAttribute("gradientUnits","userSpaceOnUse");var x=[],I,E,M;for(M=f.g.p*4,E=0;E<M;E+=4)I=createNS("stop"),_.appendChild(I),x.push(I);u.setAttribute(f.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+d+")"),this.gf=_,this.cst=x},SVGGradientFillStyleData.prototype.setGradientOpacity=function(u,f){if(this.g._hasOpacity&&!this.g._collapsable){var d,_,x,I=createNS("mask"),E=createNS("path");I.appendChild(E);var M=createElementID(),S=createElementID();I.setAttribute("id",S);var A=createNS(u.t===1?"linearGradient":"radialGradient");A.setAttribute("id",M),A.setAttribute("spreadMethod","pad"),A.setAttribute("gradientUnits","userSpaceOnUse"),x=u.g.k.k[0].s?u.g.k.k[0].s.length:u.g.k.k.length;var T=this.stops;for(_=u.g.p*4;_<x;_+=2)d=createNS("stop"),d.setAttribute("stop-color","rgb(255,255,255)"),A.appendChild(d),T.push(d);E.setAttribute(u.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+M+")"),u.ty==="gs"&&(E.setAttribute("stroke-linecap",lineCapEnum[u.lc||2]),E.setAttribute("stroke-linejoin",lineJoinEnum[u.lj||2]),u.lj===1&&E.setAttribute("stroke-miterlimit",u.ml)),this.of=A,this.ms=I,this.ost=T,this.maskId=S,f.msElem=E}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData);function SVGGradientStrokeStyleData(u,f,d){this.initDynamicPropertyContainer(u),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(u,f.w,0,null,this),this.d=new DashProperty(u,f.d||{},"svg",this),this.initGradientData(u,f,d),this._isAnimated=!!this._isAnimated}extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(u,f,d){this.transform={mProps:u,op:f,container:d},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var buildShapeString=function(f,d,_,x){if(d===0)return"";var I=f.o,E=f.i,M=f.v,S,A=" M"+x.applyToPointStringified(M[0][0],M[0][1]);for(S=1;S<d;S+=1)A+=" C"+x.applyToPointStringified(I[S-1][0],I[S-1][1])+" "+x.applyToPointStringified(E[S][0],E[S][1])+" "+x.applyToPointStringified(M[S][0],M[S][1]);return _&&d&&(A+=" C"+x.applyToPointStringified(I[S-1][0],I[S-1][1])+" "+x.applyToPointStringified(E[0][0],E[0][1])+" "+x.applyToPointStringified(M[0][0],M[0][1]),A+="z"),A},SVGElementsRenderer=function(){var u=new Matrix,f=new Matrix,d={createRenderFunction:_};function _(D){switch(D.ty){case"fl":return M;case"gf":return A;case"gs":return S;case"st":return T;case"sh":case"el":case"rc":case"sr":return E;case"tr":return x;case"no":return I;default:return null}}function x(D,O,j){(j||O.transform.op._mdf)&&O.transform.container.setAttribute("opacity",O.transform.op.v),(j||O.transform.mProps._mdf)&&O.transform.container.setAttribute("transform",O.transform.mProps.v.to2dCSS())}function I(){}function E(D,O,j){var $,W,Q,X,Y,ie,oe=O.styles.length,ge=O.lvl,be,ze,de,Ce;for(ie=0;ie<oe;ie+=1){if(X=O.sh._mdf||j,O.styles[ie].lvl<ge){for(ze=f.reset(),de=ge-O.styles[ie].lvl,Ce=O.transformers.length-1;!X&&de>0;)X=O.transformers[Ce].mProps._mdf||X,de-=1,Ce-=1;if(X)for(de=ge-O.styles[ie].lvl,Ce=O.transformers.length-1;de>0;)ze.multiply(O.transformers[Ce].mProps.v),de-=1,Ce-=1}else ze=u;if(be=O.sh.paths,W=be._length,X){for(Q="",$=0;$<W;$+=1)Y=be.shapes[$],Y&&Y._length&&(Q+=buildShapeString(Y,Y._length,Y.c,ze));O.caches[ie]=Q}else Q=O.caches[ie];O.styles[ie].d+=D.hd===!0?"":Q,O.styles[ie]._mdf=X||O.styles[ie]._mdf}}function M(D,O,j){var $=O.style;(O.c._mdf||j)&&$.pElem.setAttribute("fill","rgb("+bmFloor(O.c.v[0])+","+bmFloor(O.c.v[1])+","+bmFloor(O.c.v[2])+")"),(O.o._mdf||j)&&$.pElem.setAttribute("fill-opacity",O.o.v)}function S(D,O,j){A(D,O,j),T(D,O,j)}function A(D,O,j){var $=O.gf,W=O.g._hasOpacity,Q=O.s.v,X=O.e.v;if(O.o._mdf||j){var Y=D.ty==="gf"?"fill-opacity":"stroke-opacity";O.style.pElem.setAttribute(Y,O.o.v)}if(O.s._mdf||j){var ie=D.t===1?"x1":"cx",oe=ie==="x1"?"y1":"cy";$.setAttribute(ie,Q[0]),$.setAttribute(oe,Q[1]),W&&!O.g._collapsable&&(O.of.setAttribute(ie,Q[0]),O.of.setAttribute(oe,Q[1]))}var ge,be,ze,de;if(O.g._cmdf||j){ge=O.cst;var Ce=O.g.c;for(ze=ge.length,be=0;be<ze;be+=1)de=ge[be],de.setAttribute("offset",Ce[be*4]+"%"),de.setAttribute("stop-color","rgb("+Ce[be*4+1]+","+Ce[be*4+2]+","+Ce[be*4+3]+")")}if(W&&(O.g._omdf||j)){var ke=O.g.o;for(O.g._collapsable?ge=O.cst:ge=O.ost,ze=ge.length,be=0;be<ze;be+=1)de=ge[be],O.g._collapsable||de.setAttribute("offset",ke[be*2]+"%"),de.setAttribute("stop-opacity",ke[be*2+1])}if(D.t===1)(O.e._mdf||j)&&($.setAttribute("x2",X[0]),$.setAttribute("y2",X[1]),W&&!O.g._collapsable&&(O.of.setAttribute("x2",X[0]),O.of.setAttribute("y2",X[1])));else{var le;if((O.s._mdf||O.e._mdf||j)&&(le=Math.sqrt(Math.pow(Q[0]-X[0],2)+Math.pow(Q[1]-X[1],2)),$.setAttribute("r",le),W&&!O.g._collapsable&&O.of.setAttribute("r",le)),O.e._mdf||O.h._mdf||O.a._mdf||j){le||(le=Math.sqrt(Math.pow(Q[0]-X[0],2)+Math.pow(Q[1]-X[1],2)));var re=Math.atan2(X[1]-Q[1],X[0]-Q[0]),P=O.h.v;P>=1?P=.99:P<=-1&&(P=-.99);var k=le*P,B=Math.cos(re+O.a.v)*k+Q[0],z=Math.sin(re+O.a.v)*k+Q[1];$.setAttribute("fx",B),$.setAttribute("fy",z),W&&!O.g._collapsable&&(O.of.setAttribute("fx",B),O.of.setAttribute("fy",z))}}}function T(D,O,j){var $=O.style,W=O.d;W&&(W._mdf||j)&&W.dashStr&&($.pElem.setAttribute("stroke-dasharray",W.dashStr),$.pElem.setAttribute("stroke-dashoffset",W.dashoffset[0])),O.c&&(O.c._mdf||j)&&$.pElem.setAttribute("stroke","rgb("+bmFloor(O.c.v[0])+","+bmFloor(O.c.v[1])+","+bmFloor(O.c.v[2])+")"),(O.o._mdf||j)&&$.pElem.setAttribute("stroke-opacity",O.o.v),(O.w._mdf||j)&&($.pElem.setAttribute("stroke-width",O.w.v),$.msElem&&$.msElem.setAttribute("stroke-width",O.w.v))}return d}();function SVGShapeElement(u,f,d){this.shapes=[],this.shapesData=u.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(u,f,d),this.prevViewData=[]}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var u,f=this.shapes.length,d,_,x=this.stylesList.length,I,E=[],M=!1;for(_=0;_<x;_+=1){for(I=this.stylesList[_],M=!1,E.length=0,u=0;u<f;u+=1)d=this.shapes[u],d.styles.indexOf(I)!==-1&&(E.push(d),M=d._isAnimated||M);E.length>1&&M&&this.setShapesAsAnimated(E)}},SVGShapeElement.prototype.setShapesAsAnimated=function(u){var f,d=u.length;for(f=0;f<d;f+=1)u[f].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(u,f){var d,_=new SVGStyleData(u,f),x=_.pElem;if(u.ty==="st")d=new SVGStrokeStyleData(this,u,_);else if(u.ty==="fl")d=new SVGFillStyleData(this,u,_);else if(u.ty==="gf"||u.ty==="gs"){var I=u.ty==="gf"?SVGGradientFillStyleData:SVGGradientStrokeStyleData;d=new I(this,u,_),this.globalData.defs.appendChild(d.gf),d.maskId&&(this.globalData.defs.appendChild(d.ms),this.globalData.defs.appendChild(d.of),x.setAttribute("mask","url("+getLocationHref()+"#"+d.maskId+")"))}else u.ty==="no"&&(d=new SVGNoStyleData(this,u,_));return(u.ty==="st"||u.ty==="gs")&&(x.setAttribute("stroke-linecap",lineCapEnum[u.lc||2]),x.setAttribute("stroke-linejoin",lineJoinEnum[u.lj||2]),x.setAttribute("fill-opacity","0"),u.lj===1&&x.setAttribute("stroke-miterlimit",u.ml)),u.r===2&&x.setAttribute("fill-rule","evenodd"),u.ln&&x.setAttribute("id",u.ln),u.cl&&x.setAttribute("class",u.cl),u.bm&&(x.style["mix-blend-mode"]=getBlendMode(u.bm)),this.stylesList.push(_),this.addToAnimatedContents(u,d),d},SVGShapeElement.prototype.createGroupElement=function(u){var f=new ShapeGroupData;return u.ln&&f.gr.setAttribute("id",u.ln),u.cl&&f.gr.setAttribute("class",u.cl),u.bm&&(f.gr.style["mix-blend-mode"]=getBlendMode(u.bm)),f},SVGShapeElement.prototype.createTransformElement=function(u,f){var d=TransformPropertyFactory.getTransformProperty(this,u,this),_=new SVGTransformData(d,d.o,f);return this.addToAnimatedContents(u,_),_},SVGShapeElement.prototype.createShapeElement=function(u,f,d){var _=4;u.ty==="rc"?_=5:u.ty==="el"?_=6:u.ty==="sr"&&(_=7);var x=ShapePropertyFactory.getShapeProp(this,u,_,this),I=new SVGShapeData(f,d,x);return this.shapes.push(I),this.addShapeToModifiers(I),this.addToAnimatedContents(u,I),I},SVGShapeElement.prototype.addToAnimatedContents=function(u,f){for(var d=0,_=this.animatedContents.length;d<_;){if(this.animatedContents[d].element===f)return;d+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(u),element:f,data:u})},SVGShapeElement.prototype.setElementStyles=function(u){var f=u.styles,d,_=this.stylesList.length;for(d=0;d<_;d+=1)this.stylesList[d].closed||f.push(this.stylesList[d])},SVGShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var u,f=this.itemsData.length;for(u=0;u<f;u+=1)this.prevViewData[u]=this.itemsData[u];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),f=this.dynamicProperties.length,u=0;u<f;u+=1)this.dynamicProperties[u].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(u,f,d,_,x,I,E){var M=[].concat(I),S,A=u.length-1,T,D,O=[],j=[],$,W,Q;for(S=A;S>=0;S-=1){if(Q=this.searchProcessedElement(u[S]),Q?f[S]=d[Q-1]:u[S]._render=E,u[S].ty==="fl"||u[S].ty==="st"||u[S].ty==="gf"||u[S].ty==="gs"||u[S].ty==="no")Q?f[S].style.closed=!1:f[S]=this.createStyleElement(u[S],x),u[S]._render&&f[S].style.pElem.parentNode!==_&&_.appendChild(f[S].style.pElem),O.push(f[S].style);else if(u[S].ty==="gr"){if(!Q)f[S]=this.createGroupElement(u[S]);else for(D=f[S].it.length,T=0;T<D;T+=1)f[S].prevViewData[T]=f[S].it[T];this.searchShapes(u[S].it,f[S].it,f[S].prevViewData,f[S].gr,x+1,M,E),u[S]._render&&f[S].gr.parentNode!==_&&_.appendChild(f[S].gr)}else u[S].ty==="tr"?(Q||(f[S]=this.createTransformElement(u[S],_)),$=f[S].transform,M.push($)):u[S].ty==="sh"||u[S].ty==="rc"||u[S].ty==="el"||u[S].ty==="sr"?(Q||(f[S]=this.createShapeElement(u[S],M,x)),this.setElementStyles(f[S])):u[S].ty==="tm"||u[S].ty==="rd"||u[S].ty==="ms"||u[S].ty==="pb"||u[S].ty==="zz"||u[S].ty==="op"?(Q?(W=f[S],W.closed=!1):(W=ShapeModifiers.getModifier(u[S].ty),W.init(this,u[S]),f[S]=W,this.shapeModifiers.push(W)),j.push(W)):u[S].ty==="rp"&&(Q?(W=f[S],W.closed=!0):(W=ShapeModifiers.getModifier(u[S].ty),f[S]=W,W.init(this,u,S,f),this.shapeModifiers.push(W),E=!1),j.push(W));this.addProcessedElement(u[S],S+1)}for(A=O.length,S=0;S<A;S+=1)O[S].closed=!0;for(A=j.length,S=0;S<A;S+=1)j[S].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){this.renderModifiers();var u,f=this.stylesList.length;for(u=0;u<f;u+=1)this.stylesList[u].reset();for(this.renderShape(),u=0;u<f;u+=1)(this.stylesList[u]._mdf||this._isFirstFrame)&&(this.stylesList[u].msElem&&(this.stylesList[u].msElem.setAttribute("d",this.stylesList[u].d),this.stylesList[u].d="M0 0"+this.stylesList[u].d),this.stylesList[u].pElem.setAttribute("d",this.stylesList[u].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var u,f=this.animatedContents.length,d;for(u=0;u<f;u+=1)d=this.animatedContents[u],(this._isFirstFrame||d.element._isAnimated)&&d.data!==!0&&d.fn(d.data,d.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function LetterProps(u,f,d,_,x,I){this.o=u,this.sw=f,this.sc=d,this.fc=_,this.m=x,this.p=I,this._mdf={o:!0,sw:!!f,sc:!!d,fc:!!_,m:!0,p:!0}}LetterProps.prototype.update=function(u,f,d,_,x,I){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var E=!1;return this.o!==u&&(this.o=u,this._mdf.o=!0,E=!0),this.sw!==f&&(this.sw=f,this._mdf.sw=!0,E=!0),this.sc!==d&&(this.sc=d,this._mdf.sc=!0,E=!0),this.fc!==_&&(this.fc=_,this._mdf.fc=!0,E=!0),this.m!==x&&(this.m=x,this._mdf.m=!0,E=!0),I.length&&(this.p[0]!==I[0]||this.p[1]!==I[1]||this.p[4]!==I[4]||this.p[5]!==I[5]||this.p[12]!==I[12]||this.p[13]!==I[13])&&(this.p=I,this._mdf.p=!0,E=!0),E};function TextProperty(u,f){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,f.d&&f.d.sid&&(f.d=u.globalData.slotManager.getProp(f.d)),this.data=f,this.elem=u,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(u,f){for(var d in f)Object.prototype.hasOwnProperty.call(f,d)&&(u[d]=f[d]);return u},TextProperty.prototype.setCurrentData=function(u){u.__complete||this.completeTextData(u),this.currentData=u,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(u){this.effectsSequence.push(u),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(u){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!u)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var f=this.currentData,d=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var _,x=this.effectsSequence.length,I=u||this.data.d.k[this.keysIndex].s;for(_=0;_<x;_+=1)d!==this.keysIndex?I=this.effectsSequence[_](I,I.t):I=this.effectsSequence[_](this.currentData,I.t);f!==I&&this.setCurrentData(I),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},TextProperty.prototype.getKeyframeValue=function(){for(var u=this.data.d.k,f=this.elem.comp.renderedFrame,d=0,_=u.length;d<=_-1&&!(d===_-1||u[d+1].t>f);)d+=1;return this.keysIndex!==d&&(this.keysIndex=d),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(u){for(var f=[],d=0,_=u.length,x,I,E=!1,M=!1,S="";d<_;)E=M,M=!1,x=u.charCodeAt(d),S=u.charAt(d),FontManager.isCombinedCharacter(x)?E=!0:x>=55296&&x<=56319?FontManager.isRegionalFlag(u,d)?S=u.substr(d,14):(I=u.charCodeAt(d+1),I>=56320&&I<=57343&&(FontManager.isModifier(x,I)?(S=u.substr(d,2),E=!0):FontManager.isFlagEmoji(u.substr(d,4))?S=u.substr(d,4):S=u.substr(d,2))):x>56319?(I=u.charCodeAt(d+1),FontManager.isVariationSelector(x)&&(E=!0)):FontManager.isZeroWidthJoiner(x)&&(E=!0,M=!0),E?(f[f.length-1]+=S,E=!1):f.push(S),d+=S.length;return f},TextProperty.prototype.completeTextData=function(u){u.__complete=!0;var f=this.elem.globalData.fontManager,d=this.data,_=[],x,I,E,M=0,S,A=d.m.g,T=0,D=0,O=0,j=[],$=0,W=0,Q,X,Y=f.getFontByName(u.f),ie,oe=0,ge=getFontProperties(Y);u.fWeight=ge.weight,u.fStyle=ge.style,u.finalSize=u.s,u.finalText=this.buildFinalText(u.t),I=u.finalText.length,u.finalLineHeight=u.lh;var be=u.tr/1e3*u.finalSize,ze;if(u.sz)for(var de=!0,Ce=u.sz[0],ke=u.sz[1],le,re;de;){re=this.buildFinalText(u.t),le=0,$=0,I=re.length,be=u.tr/1e3*u.finalSize;var P=-1;for(x=0;x<I;x+=1)ze=re[x].charCodeAt(0),E=!1,re[x]===" "?P=x:(ze===13||ze===3)&&($=0,E=!0,le+=u.finalLineHeight||u.finalSize*1.2),f.chars?(ie=f.getCharData(re[x],Y.fStyle,Y.fFamily),oe=E?0:ie.w*u.finalSize/100):oe=f.measureText(re[x],u.f,u.finalSize),$+oe>Ce&&re[x]!==" "?(P===-1?I+=1:x=P,le+=u.finalLineHeight||u.finalSize*1.2,re.splice(x,P===x?1:0,"\r"),P=-1,$=0):($+=oe,$+=be);le+=Y.ascent*u.finalSize/100,this.canResize&&u.finalSize>this.minimumFontSize&&ke<le?(u.finalSize-=1,u.finalLineHeight=u.finalSize*u.lh/u.s):(u.finalText=re,I=u.finalText.length,de=!1)}$=-be,oe=0;var k=0,B;for(x=0;x<I;x+=1)if(E=!1,B=u.finalText[x],ze=B.charCodeAt(0),ze===13||ze===3?(k=0,j.push($),W=$>W?$:W,$=-2*be,S="",E=!0,O+=1):S=B,f.chars?(ie=f.getCharData(B,Y.fStyle,f.getFontByName(u.f).fFamily),oe=E?0:ie.w*u.finalSize/100):oe=f.measureText(S,u.f,u.finalSize),B===" "?k+=oe+be:($+=oe+be+k,k=0),_.push({l:oe,an:oe,add:T,n:E,anIndexes:[],val:S,line:O,animatorJustifyOffset:0}),A==2){if(T+=oe,S===""||S===" "||x===I-1){for((S===""||S===" ")&&(T-=oe);D<=x;)_[D].an=T,_[D].ind=M,_[D].extra=oe,D+=1;M+=1,T=0}}else if(A==3){if(T+=oe,S===""||x===I-1){for(S===""&&(T-=oe);D<=x;)_[D].an=T,_[D].ind=M,_[D].extra=oe,D+=1;T=0,M+=1}}else _[M].ind=M,_[M].extra=0,M+=1;if(u.l=_,W=$>W?$:W,j.push($),u.sz)u.boxWidth=u.sz[0],u.justifyOffset=0;else switch(u.boxWidth=W,u.j){case 1:u.justifyOffset=-u.boxWidth;break;case 2:u.justifyOffset=-u.boxWidth/2;break;default:u.justifyOffset=0}u.lineWidths=j;var z=d.a,ee,H;X=z.length;var q,J,U=[];for(Q=0;Q<X;Q+=1){for(ee=z[Q],ee.a.sc&&(u.strokeColorAnim=!0),ee.a.sw&&(u.strokeWidthAnim=!0),(ee.a.fc||ee.a.fh||ee.a.fs||ee.a.fb)&&(u.fillColorAnim=!0),J=0,q=ee.s.b,x=0;x<I;x+=1)H=_[x],H.anIndexes[Q]=J,(q==1&&H.val!==""||q==2&&H.val!==""&&H.val!==" "||q==3&&(H.n||H.val==" "||x==I-1)||q==4&&(H.n||x==I-1))&&(ee.s.rn===1&&U.push(J),J+=1);d.a[Q].s.totalChars=J;var Z=-1,ve;if(ee.s.rn===1)for(x=0;x<I;x+=1)H=_[x],Z!=H.anIndexes[Q]&&(Z=H.anIndexes[Q],ve=U.splice(Math.floor(Math.random()*U.length),1)[0]),H.anIndexes[Q]=ve}u.yOffset=u.finalLineHeight||u.finalSize*1.2,u.ls=u.ls||0,u.ascent=Y.ascent*u.finalSize/100},TextProperty.prototype.updateDocumentData=function(u,f){f=f===void 0?this.keysIndex:f;var d=this.copyData({},this.data.d.k[f].s);d=this.copyData(d,u),this.data.d.k[f].s=d,this.recalculate(f),this.setCurrentData(d),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(u){var f=this.data.d.k[u].s;f.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(f)},TextProperty.prototype.canResizeFont=function(u){this.canResize=u,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(u){this.minimumFontSize=Math.floor(u)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var u=Math.max,f=Math.min,d=Math.floor;function _(I,E){this._currentTextLength=-1,this.k=!1,this.data=E,this.elem=I,this.comp=I.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(I),this.s=PropertyFactory.getProp(I,E.s||{k:0},0,0,this),"e"in E?this.e=PropertyFactory.getProp(I,E.e,0,0,this):this.e={v:100},this.o=PropertyFactory.getProp(I,E.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(I,E.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(I,E.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(I,E.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(I,E.a,0,.01,this),this.dynamicProperties.length||this.getValue()}_.prototype={getMult:function(E){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var M=0,S=0,A=1,T=1;this.ne.v>0?M=this.ne.v/100:S=-this.ne.v/100,this.xe.v>0?A=1-this.xe.v/100:T=1+this.xe.v/100;var D=BezierFactory.getBezierEasing(M,S,A,T).get,O=0,j=this.finalS,$=this.finalE,W=this.data.sh;if(W===2)$===j?O=E>=$?1:0:O=u(0,f(.5/($-j)+(E-j)/($-j),1)),O=D(O);else if(W===3)$===j?O=E>=$?0:1:O=1-u(0,f(.5/($-j)+(E-j)/($-j),1)),O=D(O);else if(W===4)$===j?O=0:(O=u(0,f(.5/($-j)+(E-j)/($-j),1)),O<.5?O*=2:O=1-2*(O-.5)),O=D(O);else if(W===5){if($===j)O=0;else{var Q=$-j;E=f(u(0,E+.5-j),$-j);var X=-Q/2+E,Y=Q/2;O=Math.sqrt(1-X*X/(Y*Y))}O=D(O)}else W===6?($===j?O=0:(E=f(u(0,E+.5-j),$-j),O=(1+Math.cos(Math.PI+Math.PI*2*E/($-j)))/2),O=D(O)):(E>=d(j)&&(E-j<0?O=u(0,f(f($,1)-(j-E),1)):O=u(0,f($-E,1))),O=D(O));if(this.sm.v!==100){var ie=this.sm.v*.01;ie===0&&(ie=1e-8);var oe=.5-ie*.5;O<oe?O=0:(O=(O-oe)/ie,O>1&&(O=1))}return O*this.a.v},getValue:function(E){this.iterateDynamicProperties(),this._mdf=E||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,E&&this.data.r===2&&(this.e.v=this._currentTextLength);var M=this.data.r===2?1:100/this.data.totalChars,S=this.o.v/M,A=this.s.v/M+S,T=this.e.v/M+S;if(A>T){var D=A;A=T,T=D}this.finalS=A,this.finalE=T}},extendPrototype([DynamicPropertyContainer],_);function x(I,E,M){return new _(I,E)}return{getTextSelectorProp:x}}();function TextAnimatorDataProperty(u,f,d){var _={propType:!1},x=PropertyFactory.getProp,I=f.a;this.a={r:I.r?x(u,I.r,0,degToRads,d):_,rx:I.rx?x(u,I.rx,0,degToRads,d):_,ry:I.ry?x(u,I.ry,0,degToRads,d):_,sk:I.sk?x(u,I.sk,0,degToRads,d):_,sa:I.sa?x(u,I.sa,0,degToRads,d):_,s:I.s?x(u,I.s,1,.01,d):_,a:I.a?x(u,I.a,1,0,d):_,o:I.o?x(u,I.o,0,.01,d):_,p:I.p?x(u,I.p,1,0,d):_,sw:I.sw?x(u,I.sw,0,0,d):_,sc:I.sc?x(u,I.sc,1,0,d):_,fc:I.fc?x(u,I.fc,1,0,d):_,fh:I.fh?x(u,I.fh,0,0,d):_,fs:I.fs?x(u,I.fs,0,.01,d):_,fb:I.fb?x(u,I.fb,0,.01,d):_,t:I.t?x(u,I.t,0,0,d):_},this.s=TextSelectorProp.getTextSelectorProp(u,f.s,d),this.s.t=f.s.t}function TextAnimatorProperty(u,f,d){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=u,this._renderType=f,this._elem=d,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(d)}TextAnimatorProperty.prototype.searchProperties=function(){var u,f=this._textData.a.length,d,_=PropertyFactory.getProp;for(u=0;u<f;u+=1)d=this._textData.a[u],this._animatorsData[u]=new TextAnimatorDataProperty(this._elem,d,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:_(this._elem,this._textData.p.a,0,0,this),f:_(this._elem,this._textData.p.f,0,0,this),l:_(this._elem,this._textData.p.l,0,0,this),r:_(this._elem,this._textData.p.r,0,0,this),p:_(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=_(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(u,f){if(this.lettersChangedFlag=f,!(!this._mdf&&!this._isFirstFrame&&!f&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var d=this._moreOptions.alignment.v,_=this._animatorsData,x=this._textData,I=this.mHelper,E=this._renderType,M=this.renderedLetters.length,S,A,T,D,O=u.l,j,$,W,Q,X,Y,ie,oe,ge,be,ze,de,Ce,ke,le;if(this._hasMaskedPath){if(le=this._pathData.m,!this._pathData.n||this._pathData._mdf){var re=le.v;this._pathData.r.v&&(re=re.reverse()),j={tLength:0,segments:[]},D=re._length-1;var P;for(de=0,T=0;T<D;T+=1)P=bez.buildBezierData(re.v[T],re.v[T+1],[re.o[T][0]-re.v[T][0],re.o[T][1]-re.v[T][1]],[re.i[T+1][0]-re.v[T+1][0],re.i[T+1][1]-re.v[T+1][1]]),j.tLength+=P.segmentLength,j.segments.push(P),de+=P.segmentLength;T=D,le.v.c&&(P=bez.buildBezierData(re.v[T],re.v[0],[re.o[T][0]-re.v[T][0],re.o[T][1]-re.v[T][1]],[re.i[0][0]-re.v[0][0],re.i[0][1]-re.v[0][1]]),j.tLength+=P.segmentLength,j.segments.push(P),de+=P.segmentLength),this._pathData.pi=j}if(j=this._pathData.pi,$=this._pathData.f.v,ie=0,Y=1,Q=0,X=!0,be=j.segments,$<0&&le.v.c)for(j.tLength<Math.abs($)&&($=-Math.abs($)%j.tLength),ie=be.length-1,ge=be[ie].points,Y=ge.length-1;$<0;)$+=ge[Y].partialLength,Y-=1,Y<0&&(ie-=1,ge=be[ie].points,Y=ge.length-1);ge=be[ie].points,oe=ge[Y-1],W=ge[Y],ze=W.partialLength}D=O.length,S=0,A=0;var k=u.finalSize*1.2*.714,B=!0,z,ee,H,q,J;q=_.length;var U,Z=-1,ve,Ye,rt,Ue=$,Qe=ie,vt=Y,ri=-1,ci,tt,et,$e,Le,ot,Oe,Ne,Fe="",Je=this.defaultPropsArray,Dt;if(u.j===2||u.j===1){var oi=0,Bt=0,li=u.j===2?-.5:-1,ii=0,Ot=!0;for(T=0;T<D;T+=1)if(O[T].n){for(oi&&(oi+=Bt);ii<T;)O[ii].animatorJustifyOffset=oi,ii+=1;oi=0,Ot=!0}else{for(H=0;H<q;H+=1)z=_[H].a,z.t.propType&&(Ot&&u.j===2&&(Bt+=z.t.v*li),ee=_[H].s,U=ee.getMult(O[T].anIndexes[H],x.a[H].s.totalChars),U.length?oi+=z.t.v*U[0]*li:oi+=z.t.v*U*li);Ot=!1}for(oi&&(oi+=Bt);ii<T;)O[ii].animatorJustifyOffset=oi,ii+=1}for(T=0;T<D;T+=1){if(I.reset(),ci=1,O[T].n)S=0,A+=u.yOffset,A+=B?1:0,$=Ue,B=!1,this._hasMaskedPath&&(ie=Qe,Y=vt,ge=be[ie].points,oe=ge[Y-1],W=ge[Y],ze=W.partialLength,Q=0),Fe="",Ne="",ot="",Dt="",Je=this.defaultPropsArray;else{if(this._hasMaskedPath){if(ri!==O[T].line){switch(u.j){case 1:$+=de-u.lineWidths[O[T].line];break;case 2:$+=(de-u.lineWidths[O[T].line])/2;break}ri=O[T].line}Z!==O[T].ind&&(O[Z]&&($+=O[Z].extra),$+=O[T].an/2,Z=O[T].ind),$+=d[0]*O[T].an*.005;var St=0;for(H=0;H<q;H+=1)z=_[H].a,z.p.propType&&(ee=_[H].s,U=ee.getMult(O[T].anIndexes[H],x.a[H].s.totalChars),U.length?St+=z.p.v[0]*U[0]:St+=z.p.v[0]*U),z.a.propType&&(ee=_[H].s,U=ee.getMult(O[T].anIndexes[H],x.a[H].s.totalChars),U.length?St+=z.a.v[0]*U[0]:St+=z.a.v[0]*U);for(X=!0,this._pathData.a.v&&($=O[0].an*.5+(de-this._pathData.f.v-O[0].an*.5-O[O.length-1].an*.5)*Z/(D-1),$+=this._pathData.f.v);X;)Q+ze>=$+St||!ge?(Ce=($+St-Q)/W.partialLength,Ye=oe.point[0]+(W.point[0]-oe.point[0])*Ce,rt=oe.point[1]+(W.point[1]-oe.point[1])*Ce,I.translate(-d[0]*O[T].an*.005,-(d[1]*k)*.01),X=!1):ge&&(Q+=W.partialLength,Y+=1,Y>=ge.length&&(Y=0,ie+=1,be[ie]?ge=be[ie].points:le.v.c?(Y=0,ie=0,ge=be[ie].points):(Q-=W.partialLength,ge=null)),ge&&(oe=W,W=ge[Y],ze=W.partialLength));ve=O[T].an/2-O[T].add,I.translate(-ve,0,0)}else ve=O[T].an/2-O[T].add,I.translate(-ve,0,0),I.translate(-d[0]*O[T].an*.005,-d[1]*k*.01,0);for(H=0;H<q;H+=1)z=_[H].a,z.t.propType&&(ee=_[H].s,U=ee.getMult(O[T].anIndexes[H],x.a[H].s.totalChars),(S!==0||u.j!==0)&&(this._hasMaskedPath?U.length?$+=z.t.v*U[0]:$+=z.t.v*U:U.length?S+=z.t.v*U[0]:S+=z.t.v*U));for(u.strokeWidthAnim&&(et=u.sw||0),u.strokeColorAnim&&(u.sc?tt=[u.sc[0],u.sc[1],u.sc[2]]:tt=[0,0,0]),u.fillColorAnim&&u.fc&&($e=[u.fc[0],u.fc[1],u.fc[2]]),H=0;H<q;H+=1)z=_[H].a,z.a.propType&&(ee=_[H].s,U=ee.getMult(O[T].anIndexes[H],x.a[H].s.totalChars),U.length?I.translate(-z.a.v[0]*U[0],-z.a.v[1]*U[1],z.a.v[2]*U[2]):I.translate(-z.a.v[0]*U,-z.a.v[1]*U,z.a.v[2]*U));for(H=0;H<q;H+=1)z=_[H].a,z.s.propType&&(ee=_[H].s,U=ee.getMult(O[T].anIndexes[H],x.a[H].s.totalChars),U.length?I.scale(1+(z.s.v[0]-1)*U[0],1+(z.s.v[1]-1)*U[1],1):I.scale(1+(z.s.v[0]-1)*U,1+(z.s.v[1]-1)*U,1));for(H=0;H<q;H+=1){if(z=_[H].a,ee=_[H].s,U=ee.getMult(O[T].anIndexes[H],x.a[H].s.totalChars),z.sk.propType&&(U.length?I.skewFromAxis(-z.sk.v*U[0],z.sa.v*U[1]):I.skewFromAxis(-z.sk.v*U,z.sa.v*U)),z.r.propType&&(U.length?I.rotateZ(-z.r.v*U[2]):I.rotateZ(-z.r.v*U)),z.ry.propType&&(U.length?I.rotateY(z.ry.v*U[1]):I.rotateY(z.ry.v*U)),z.rx.propType&&(U.length?I.rotateX(z.rx.v*U[0]):I.rotateX(z.rx.v*U)),z.o.propType&&(U.length?ci+=(z.o.v*U[0]-ci)*U[0]:ci+=(z.o.v*U-ci)*U),u.strokeWidthAnim&&z.sw.propType&&(U.length?et+=z.sw.v*U[0]:et+=z.sw.v*U),u.strokeColorAnim&&z.sc.propType)for(Le=0;Le<3;Le+=1)U.length?tt[Le]+=(z.sc.v[Le]-tt[Le])*U[0]:tt[Le]+=(z.sc.v[Le]-tt[Le])*U;if(u.fillColorAnim&&u.fc){if(z.fc.propType)for(Le=0;Le<3;Le+=1)U.length?$e[Le]+=(z.fc.v[Le]-$e[Le])*U[0]:$e[Le]+=(z.fc.v[Le]-$e[Le])*U;z.fh.propType&&(U.length?$e=addHueToRGB($e,z.fh.v*U[0]):$e=addHueToRGB($e,z.fh.v*U)),z.fs.propType&&(U.length?$e=addSaturationToRGB($e,z.fs.v*U[0]):$e=addSaturationToRGB($e,z.fs.v*U)),z.fb.propType&&(U.length?$e=addBrightnessToRGB($e,z.fb.v*U[0]):$e=addBrightnessToRGB($e,z.fb.v*U))}}for(H=0;H<q;H+=1)z=_[H].a,z.p.propType&&(ee=_[H].s,U=ee.getMult(O[T].anIndexes[H],x.a[H].s.totalChars),this._hasMaskedPath?U.length?I.translate(0,z.p.v[1]*U[0],-z.p.v[2]*U[1]):I.translate(0,z.p.v[1]*U,-z.p.v[2]*U):U.length?I.translate(z.p.v[0]*U[0],z.p.v[1]*U[1],-z.p.v[2]*U[2]):I.translate(z.p.v[0]*U,z.p.v[1]*U,-z.p.v[2]*U));if(u.strokeWidthAnim&&(ot=et<0?0:et),u.strokeColorAnim&&(Oe="rgb("+Math.round(tt[0]*255)+","+Math.round(tt[1]*255)+","+Math.round(tt[2]*255)+")"),u.fillColorAnim&&u.fc&&(Ne="rgb("+Math.round($e[0]*255)+","+Math.round($e[1]*255)+","+Math.round($e[2]*255)+")"),this._hasMaskedPath){if(I.translate(0,-u.ls),I.translate(0,d[1]*k*.01+A,0),this._pathData.p.v){ke=(W.point[1]-oe.point[1])/(W.point[0]-oe.point[0]);var pi=Math.atan(ke)*180/Math.PI;W.point[0]<oe.point[0]&&(pi+=180),I.rotate(-pi*Math.PI/180)}I.translate(Ye,rt,0),$-=d[0]*O[T].an*.005,O[T+1]&&Z!==O[T+1].ind&&($+=O[T].an/2,$+=u.tr*.001*u.finalSize)}else{switch(I.translate(S,A,0),u.ps&&I.translate(u.ps[0],u.ps[1]+u.ascent,0),u.j){case 1:I.translate(O[T].animatorJustifyOffset+u.justifyOffset+(u.boxWidth-u.lineWidths[O[T].line]),0,0);break;case 2:I.translate(O[T].animatorJustifyOffset+u.justifyOffset+(u.boxWidth-u.lineWidths[O[T].line])/2,0,0);break}I.translate(0,-u.ls),I.translate(ve,0,0),I.translate(d[0]*O[T].an*.005,d[1]*k*.01,0),S+=O[T].l+u.tr*.001*u.finalSize}E==="html"?Fe=I.toCSS():E==="svg"?Fe=I.to2dCSS():Je=[I.props[0],I.props[1],I.props[2],I.props[3],I.props[4],I.props[5],I.props[6],I.props[7],I.props[8],I.props[9],I.props[10],I.props[11],I.props[12],I.props[13],I.props[14],I.props[15]],Dt=ci}M<=T?(J=new LetterProps(Dt,ot,Oe,Ne,Fe,Je),this.renderedLetters.push(J),M+=1,this.lettersChangedFlag=!0):(J=this.renderedLetters[T],this.lettersChangedFlag=J.update(Dt,ot,Oe,Ne,Fe,Je)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty);function ITextElement(){}ITextElement.prototype.initElement=function(u,f,d){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(u,f,d),this.textProperty=new TextProperty(this,u.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(u.t,this.renderType,this),this.initTransform(u,f,d),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(u){this._mdf=!1,this.prepareRenderableFrame(u),this.prepareProperties(u,this.isInRange)},ITextElement.prototype.createPathShape=function(u,f){var d,_=f.length,x,I="";for(d=0;d<_;d+=1)f[d].ty==="sh"&&(x=f[d].ks.k,I+=buildShapeString(x,x.i.length,!0,u));return I},ITextElement.prototype.updateDocumentData=function(u,f){this.textProperty.updateDocumentData(u,f)},ITextElement.prototype.canResizeFont=function(u){this.textProperty.canResizeFont(u)},ITextElement.prototype.setMinimumFontSize=function(u){this.textProperty.setMinimumFontSize(u)},ITextElement.prototype.applyTextPropertiesToMatrix=function(u,f,d,_,x){switch(u.ps&&f.translate(u.ps[0],u.ps[1]+u.ascent,0),f.translate(0,-u.ls,0),u.j){case 1:f.translate(u.justifyOffset+(u.boxWidth-u.lineWidths[d]),0,0);break;case 2:f.translate(u.justifyOffset+(u.boxWidth-u.lineWidths[d])/2,0,0);break}f.translate(_,x,0)},ITextElement.prototype.buildColor=function(u){return"rgb("+Math.round(u[0]*255)+","+Math.round(u[1]*255)+","+Math.round(u[2]*255)+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},ITextElement.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var emptyShapeData={shapes:[]};function SVGTextLottieElement(u,f,d){this.textSpans=[],this.renderType="svg",this.initElement(u,f,d)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(u){for(var f=0,d=u.length,_=[],x="";f<d;)u[f]==="\r"||u[f]===""?(_.push(x),x=""):x+=u[f],f+=1;return _.push(x),_},SVGTextLottieElement.prototype.buildShapeData=function(u,f){if(u.shapes&&u.shapes.length){var d=u.shapes[0];if(d.it){var _=d.it[d.it.length-1];_.s&&(_.s.k[0]=f,_.s.k[1]=f)}}return u},SVGTextLottieElement.prototype.buildNewText=function(){this.addDynamicProperty(this);var u,f,d=this.textProperty.currentData;this.renderedLetters=createSizedArray(d?d.l.length:0),d.fc?this.layerElement.setAttribute("fill",this.buildColor(d.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),d.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(d.sc)),this.layerElement.setAttribute("stroke-width",d.sw)),this.layerElement.setAttribute("font-size",d.finalSize);var _=this.globalData.fontManager.getFontByName(d.f);if(_.fClass)this.layerElement.setAttribute("class",_.fClass);else{this.layerElement.setAttribute("font-family",_.fFamily);var x=d.fWeight,I=d.fStyle;this.layerElement.setAttribute("font-style",I),this.layerElement.setAttribute("font-weight",x)}this.layerElement.setAttribute("aria-label",d.t);var E=d.l||[],M=!!this.globalData.fontManager.chars;f=E.length;var S,A=this.mHelper,T="",D=this.data.singleShape,O=0,j=0,$=!0,W=d.tr*.001*d.finalSize;if(D&&!M&&!d.sz){var Q=this.textContainer,X="start";switch(d.j){case 1:X="end";break;case 2:X="middle";break;default:X="start";break}Q.setAttribute("text-anchor",X),Q.setAttribute("letter-spacing",W);var Y=this.buildTextContents(d.finalText);for(f=Y.length,j=d.ps?d.ps[1]+d.ascent:0,u=0;u<f;u+=1)S=this.textSpans[u].span||createNS("tspan"),S.textContent=Y[u],S.setAttribute("x",0),S.setAttribute("y",j),S.style.display="inherit",Q.appendChild(S),this.textSpans[u]||(this.textSpans[u]={span:null,glyph:null}),this.textSpans[u].span=S,j+=d.finalLineHeight;this.layerElement.appendChild(Q)}else{var ie=this.textSpans.length,oe;for(u=0;u<f;u+=1){if(this.textSpans[u]||(this.textSpans[u]={span:null,childSpan:null,glyph:null}),!M||!D||u===0){if(S=ie>u?this.textSpans[u].span:createNS(M?"g":"text"),ie<=u){if(S.setAttribute("stroke-linecap","butt"),S.setAttribute("stroke-linejoin","round"),S.setAttribute("stroke-miterlimit","4"),this.textSpans[u].span=S,M){var ge=createNS("g");S.appendChild(ge),this.textSpans[u].childSpan=ge}this.textSpans[u].span=S,this.layerElement.appendChild(S)}S.style.display="inherit"}if(A.reset(),D&&(E[u].n&&(O=-W,j+=d.yOffset,j+=$?1:0,$=!1),this.applyTextPropertiesToMatrix(d,A,E[u].line,O,j),O+=E[u].l||0,O+=W),M){oe=this.globalData.fontManager.getCharData(d.finalText[u],_.fStyle,this.globalData.fontManager.getFontByName(d.f).fFamily);var be;if(oe.t===1)be=new SVGCompElement(oe.data,this.globalData,this);else{var ze=emptyShapeData;oe.data&&oe.data.shapes&&(ze=this.buildShapeData(oe.data,d.finalSize)),be=new SVGShapeElement(ze,this.globalData,this)}if(this.textSpans[u].glyph){var de=this.textSpans[u].glyph;this.textSpans[u].childSpan.removeChild(de.layerElement),de.destroy()}this.textSpans[u].glyph=be,be._debug=!0,be.prepareFrame(0),be.renderFrame(),this.textSpans[u].childSpan.appendChild(be.layerElement),oe.t===1&&this.textSpans[u].childSpan.setAttribute("transform","scale("+d.finalSize/100+","+d.finalSize/100+")")}else D&&S.setAttribute("transform","translate("+A.props[12]+","+A.props[13]+")"),S.textContent=E[u].val,S.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}D&&S&&S.setAttribute("d",T)}for(;u<this.textSpans.length;)this.textSpans[u].span.style.display="none",u+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var u=this.layerElement.getBBox();this.bbox={top:u.y,left:u.x,width:u.width,height:u.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var u,f=this.textSpans.length,d;for(this.renderedFrame=this.comp.renderedFrame,u=0;u<f;u+=1)d=this.textSpans[u].glyph,d&&(d.prepareFrame(this.comp.renderedFrame-this.data.st),d._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var u,f,d=this.textAnimator.renderedLetters,_=this.textProperty.currentData.l;f=_.length;var x,I,E;for(u=0;u<f;u+=1)_[u].n||(x=d[u],I=this.textSpans[u].span,E=this.textSpans[u].glyph,E&&E.renderFrame(),x._mdf.m&&I.setAttribute("transform",x.m),x._mdf.o&&I.setAttribute("opacity",x.o),x._mdf.sw&&I.setAttribute("stroke-width",x.sw),x._mdf.sc&&I.setAttribute("stroke",x.sc),x._mdf.fc&&I.setAttribute("fill",x.fc))}};function ISolidElement(u,f,d){this.initElement(u,f,d)}extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var u=createNS("rect");u.setAttribute("width",this.data.sw),u.setAttribute("height",this.data.sh),u.setAttribute("fill",this.data.sc),this.layerElement.appendChild(u)};function NullElement(u,f,d){this.initFrame(),this.initBaseData(u,f,d),this.initFrame(),this.initTransform(u,f,d),this.initHierarchy()}NullElement.prototype.prepareFrame=function(u){this.prepareProperties(u,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement);function SVGRendererBase(){}extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(u){return new NullElement(u,this.globalData,this)},SVGRendererBase.prototype.createShape=function(u){return new SVGShapeElement(u,this.globalData,this)},SVGRendererBase.prototype.createText=function(u){return new SVGTextLottieElement(u,this.globalData,this)},SVGRendererBase.prototype.createImage=function(u){return new IImageElement(u,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(u){return new ISolidElement(u,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(u){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+u.w+" "+u.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",u.w),this.svgElement.setAttribute("height",u.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var f=this.globalData.defs;this.setupGlobalData(u,f),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=u;var d=createNS("clipPath"),_=createNS("rect");_.setAttribute("width",u.w),_.setAttribute("height",u.h),_.setAttribute("x",0),_.setAttribute("y",0);var x=createElementID();d.setAttribute("id",x),d.appendChild(_),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+x+")"),f.appendChild(d),this.layers=u.layers,this.elements=createSizedArray(u.layers.length)},SVGRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var u,f=this.layers?this.layers.length:0;for(u=0;u<f;u+=1)this.elements[u]&&this.elements[u].destroy&&this.elements[u].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(u){var f=0,d=this.layers.length;for(f=0;f<d;f+=1)if(this.layers[f].ind===u)return f;return-1},SVGRendererBase.prototype.buildItem=function(u){var f=this.elements;if(!(f[u]||this.layers[u].ty===99)){f[u]=!0;var d=this.createItem(this.layers[u]);if(f[u]=d,getExpressionsPlugin()&&(this.layers[u].ty===0&&this.globalData.projectInterface.registerComposition(d),d.initExpressions()),this.appendElementInPos(d,u),this.layers[u].tt){var _="tp"in this.layers[u]?this.findIndexByInd(this.layers[u].tp):u-1;if(_===-1)return;if(!this.elements[_]||this.elements[_]===!0)this.buildItem(_),this.addPendingElement(d);else{var x=f[_],I=x.getMatte(this.layers[u].tt);d.setMatte(I)}}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var u=this.pendingElements.pop();if(u.checkParenting(),u.data.tt)for(var f=0,d=this.elements.length;f<d;){if(this.elements[f]===u){var _="tp"in u.data?this.findIndexByInd(u.data.tp):f-1,x=this.elements[_],I=x.getMatte(this.layers[f].tt);u.setMatte(I);break}f+=1}}},SVGRendererBase.prototype.renderFrame=function(u){if(!(this.renderedFrame===u||this.destroyed)){u===null?u=this.renderedFrame:this.renderedFrame=u,this.globalData.frameNum=u,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=u,this.globalData._mdf=!1;var f,d=this.layers.length;for(this.completeLayers||this.checkLayers(u),f=d-1;f>=0;f-=1)(this.completeLayers||this.elements[f])&&this.elements[f].prepareFrame(u-this.layers[f].st);if(this.globalData._mdf)for(f=0;f<d;f+=1)(this.completeLayers||this.elements[f])&&this.elements[f].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(u,f){var d=u.getBaseElement();if(d){for(var _=0,x;_<f;)this.elements[_]&&this.elements[_]!==!0&&this.elements[_].getBaseElement()&&(x=this.elements[_].getBaseElement()),_+=1;x?this.layerElement.insertBefore(d,x):this.layerElement.appendChild(d)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"};function ICompElement(){}extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(u,f,d){this.initFrame(),this.initBaseData(u,f,d),this.initTransform(u,f,d),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!f.progressiveLoad)&&this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(u){if(this._mdf=!1,this.prepareRenderableFrame(u),this.prepareProperties(u,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=u/this.data.sr;else{var f=this.tm.v;f===this.data.op&&(f=this.data.op-1),this.renderedFrame=f}var d,_=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),d=_-1;d>=0;d-=1)(this.completeLayers||this.elements[d])&&(this.elements[d].prepareFrame(this.renderedFrame-this.layers[d].st),this.elements[d]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var u,f=this.layers.length;for(u=0;u<f;u+=1)(this.completeLayers||this.elements[u])&&this.elements[u].renderFrame()},ICompElement.prototype.setElements=function(u){this.elements=u},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var u,f=this.layers.length;for(u=0;u<f;u+=1)this.elements[u]&&this.elements[u].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function SVGCompElement(u,f,d){this.layers=u.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(u,f,d),this.tm=u.tm?PropertyFactory.getProp(this,u.tm,0,f.frameRate,this):{_placeholder:!0}}extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(u){return new SVGCompElement(u,this.globalData,this)};function SVGRenderer(u,f){this.animationItem=u,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var d="";if(f&&f.title){var _=createNS("title"),x=createElementID();_.setAttribute("id",x),_.textContent=f.title,this.svgElement.appendChild(_),d+=x}if(f&&f.description){var I=createNS("desc"),E=createElementID();I.setAttribute("id",E),I.textContent=f.description,this.svgElement.appendChild(I),d+=" "+E}d&&this.svgElement.setAttribute("aria-labelledby",d);var M=createNS("defs");this.svgElement.appendChild(M);var S=createNS("g");this.svgElement.appendChild(S),this.layerElement=S,this.renderConfig={preserveAspectRatio:f&&f.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:f&&f.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:f&&f.contentVisibility||"visible",progressiveLoad:f&&f.progressiveLoad||!1,hideOnTransparent:!(f&&f.hideOnTransparent===!1),viewBoxOnly:f&&f.viewBoxOnly||!1,viewBoxSize:f&&f.viewBoxSize||!1,className:f&&f.className||"",id:f&&f.id||"",focusable:f&&f.focusable,filterSize:{width:f&&f.filterSize&&f.filterSize.width||"100%",height:f&&f.filterSize&&f.filterSize.height||"100%",x:f&&f.filterSize&&f.filterSize.x||"0%",y:f&&f.filterSize&&f.filterSize.y||"0%"},width:f&&f.width,height:f&&f.height,runExpressions:!f||f.runExpressions===void 0||f.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:M,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(u){return new SVGCompElement(u,this.globalData,this)};function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}ShapeTransformManager.prototype={addTransformSequence:function(f){var d,_=f.length,x="_";for(d=0;d<_;d+=1)x+=f[d].transform.key+"_";var I=this.sequences[x];return I||(I={transforms:[].concat(f),finalTransform:new Matrix,_mdf:!1},this.sequences[x]=I,this.sequenceList.push(I)),I},processSequence:function(f,d){for(var _=0,x=f.transforms.length,I=d;_<x&&!d;){if(f.transforms[_].transform.mProps._mdf){I=!0;break}_+=1}if(I)for(f.finalTransform.reset(),_=x-1;_>=0;_-=1)f.finalTransform.multiply(f.transforms[_].transform.mProps.v);f._mdf=I},processSequences:function(f){var d,_=this.sequenceList.length;for(d=0;d<_;d+=1)this.processSequence(this.sequenceList[d],f)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var f="__lottie_element_luma_buffer",d=null,_=null,x=null;function I(){var S=createNS("svg"),A=createNS("filter"),T=createNS("feColorMatrix");return A.setAttribute("id",f),T.setAttribute("type","matrix"),T.setAttribute("color-interpolation-filters","sRGB"),T.setAttribute("values","0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0"),A.appendChild(T),S.appendChild(A),S.setAttribute("id",f+"_svg"),featureSupport.svgLumaHidden&&(S.style.display="none"),S}function E(){d||(x=I(),document.body.appendChild(x),d=createTag("canvas"),_=d.getContext("2d"),_.filter="url(#"+f+")",_.fillStyle="rgba(0,0,0,0)",_.fillRect(0,0,1,1))}function M(S){return d||E(),d.width=S.width,d.height=S.height,_.filter="url(#"+f+")",d}return{load:E,get:M}};function createCanvas(u,f){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(u,f);var d=createTag("canvas");return d.width=u,d.height=f,d}var assetLoader=function(){return{loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas}}(),registeredEffects={};function CVEffects(u){var f,d=u.data.ef?u.data.ef.length:0;this.filters=[];var _;for(f=0;f<d;f+=1){_=null;var x=u.data.ef[f].ty;if(registeredEffects[x]){var I=registeredEffects[x].effect;_=new I(u.effectsManager.effectElements[f],u)}_&&this.filters.push(_)}this.filters.length&&u.addRenderableComponent(this)}CVEffects.prototype.renderFrame=function(u){var f,d=this.filters.length;for(f=0;f<d;f+=1)this.filters[f].renderFrame(u)},CVEffects.prototype.getEffects=function(u){var f,d=this.filters.length,_=[];for(f=0;f<d;f+=1)this.filters[f].type===u&&_.push(this.filters[f]);return _};function registerEffect(u,f){registeredEffects[u]={effect:f}}function CVMaskElement(u,f){this.data=u,this.element=f,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var d,_=this.masksProperties.length,x=!1;for(d=0;d<_;d+=1)this.masksProperties[d].mode!=="n"&&(x=!0),this.viewData[d]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[d],3);this.hasMasks=x,x&&this.element.addRenderableComponent(this)}CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var u=this.element.finalTransform.mat,f=this.element.canvasContext,d,_=this.masksProperties.length,x,I,E;for(f.beginPath(),d=0;d<_;d+=1)if(this.masksProperties[d].mode!=="n"){this.masksProperties[d].inv&&(f.moveTo(0,0),f.lineTo(this.element.globalData.compSize.w,0),f.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),f.lineTo(0,this.element.globalData.compSize.h),f.lineTo(0,0)),E=this.viewData[d].v,x=u.applyToPointArray(E.v[0][0],E.v[0][1],0),f.moveTo(x[0],x[1]);var M,S=E._length;for(M=1;M<S;M+=1)I=u.applyToTriplePoints(E.o[M-1],E.i[M],E.v[M]),f.bezierCurveTo(I[0],I[1],I[2],I[3],I[4],I[5]);I=u.applyToTriplePoints(E.o[M-1],E.i[0],E.v[0]),f.bezierCurveTo(I[0],I[1],I[2],I[3],I[4],I[5])}this.element.globalData.renderer.save(!0),f.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};function CVBaseElement(){}var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){if(this.data.tt>=1){this.buffers=[];var f=this.globalData.canvasContext,d=assetLoader.createCanvas(f.canvas.width,f.canvas.height);this.buffers.push(d);var _=assetLoader.createCanvas(f.canvas.width,f.canvas.height);this.buffers.push(_),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var f=this.globalData;if(f.blendMode!==this.data.bm){f.blendMode=this.data.bm;var d=getBlendMode(this.data.bm);f.canvasContext.globalCompositeOperation=d}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function(){!this.hidden&&(!this.isInRange||this.isTransparent)&&(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(f){f.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var f=this.buffers[0],d=f.getContext("2d");this.clearCanvas(d),d.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var f=this.buffers[1],d=f.getContext("2d");this.clearCanvas(d),d.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform);var _=this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1);if(_.renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var x=assetLoader.getLumaCanvas(this.canvasContext.canvas),I=x.getContext("2d");I.drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(x,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(f,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(f){if(!(this.hidden||this.data.hd)&&!(this.data.td===1&&!f)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var d=this.data.ty===0;this.prepareLayer(),this.globalData.renderer.save(d),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(d),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement;function CVShapeData(u,f,d,_){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var x=4;f.ty==="rc"?x=5:f.ty==="el"?x=6:f.ty==="sr"&&(x=7),this.sh=ShapePropertyFactory.getShapeProp(u,f,x,u);var I,E=d.length,M;for(I=0;I<E;I+=1)d[I].closed||(M={transforms:_.addTransformSequence(d[I].transforms),trNodes:[]},this.styledShapes.push(M),d[I].elements.push(M))}CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated;function CVShapeElement(u,f,d){this.shapes=[],this.shapesData=u.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(u,f,d)}extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(u,f){var d={data:u,type:u.ty,preTransforms:this.transformsManager.addTransformSequence(f),transforms:[],elements:[],closed:u.hd===!0},_={};if(u.ty==="fl"||u.ty==="st"?(_.c=PropertyFactory.getProp(this,u.c,1,255,this),_.c.k||(d.co="rgb("+bmFloor(_.c.v[0])+","+bmFloor(_.c.v[1])+","+bmFloor(_.c.v[2])+")")):(u.ty==="gf"||u.ty==="gs")&&(_.s=PropertyFactory.getProp(this,u.s,1,null,this),_.e=PropertyFactory.getProp(this,u.e,1,null,this),_.h=PropertyFactory.getProp(this,u.h||{k:0},0,.01,this),_.a=PropertyFactory.getProp(this,u.a||{k:0},0,degToRads,this),_.g=new GradientProperty(this,u.g,this)),_.o=PropertyFactory.getProp(this,u.o,0,.01,this),u.ty==="st"||u.ty==="gs"){if(d.lc=lineCapEnum[u.lc||2],d.lj=lineJoinEnum[u.lj||2],u.lj==1&&(d.ml=u.ml),_.w=PropertyFactory.getProp(this,u.w,0,null,this),_.w.k||(d.wi=_.w.v),u.d){var x=new DashProperty(this,u.d,"canvas",this);_.d=x,_.d.k||(d.da=_.d.dashArray,d.do=_.d.dashoffset[0])}}else d.r=u.r===2?"evenodd":"nonzero";return this.stylesList.push(d),_.style=d,_},CVShapeElement.prototype.createGroupElement=function(){var u={it:[],prevViewData:[]};return u},CVShapeElement.prototype.createTransformElement=function(u){var f={transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,u.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,u,this)}};return f},CVShapeElement.prototype.createShapeElement=function(u){var f=new CVShapeData(this,u,this.stylesList,this.transformsManager);return this.shapes.push(f),this.addShapeToModifiers(f),f},CVShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var u,f=this.itemsData.length;for(u=0;u<f;u+=1)this.prevViewData[u]=this.itemsData[u];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),f=this.dynamicProperties.length,u=0;u<f;u+=1)this.dynamicProperties[u].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(u){var f,d=this.stylesList.length;for(f=0;f<d;f+=1)this.stylesList[f].closed||this.stylesList[f].transforms.push(u)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var u,f=this.stylesList.length;for(u=0;u<f;u+=1)this.stylesList[u].closed||this.stylesList[u].transforms.pop()},CVShapeElement.prototype.closeStyles=function(u){var f,d=u.length;for(f=0;f<d;f+=1)u[f].closed=!0},CVShapeElement.prototype.searchShapes=function(u,f,d,_,x){var I,E=u.length-1,M,S,A=[],T=[],D,O,j,$=[].concat(x);for(I=E;I>=0;I-=1){if(D=this.searchProcessedElement(u[I]),D?f[I]=d[D-1]:u[I]._shouldRender=_,u[I].ty==="fl"||u[I].ty==="st"||u[I].ty==="gf"||u[I].ty==="gs")D?f[I].style.closed=!1:f[I]=this.createStyleElement(u[I],$),A.push(f[I].style);else if(u[I].ty==="gr"){if(!D)f[I]=this.createGroupElement(u[I]);else for(S=f[I].it.length,M=0;M<S;M+=1)f[I].prevViewData[M]=f[I].it[M];this.searchShapes(u[I].it,f[I].it,f[I].prevViewData,_,$)}else u[I].ty==="tr"?(D||(j=this.createTransformElement(u[I]),f[I]=j),$.push(f[I]),this.addTransformToStyleList(f[I])):u[I].ty==="sh"||u[I].ty==="rc"||u[I].ty==="el"||u[I].ty==="sr"?D||(f[I]=this.createShapeElement(u[I])):u[I].ty==="tm"||u[I].ty==="rd"||u[I].ty==="pb"||u[I].ty==="zz"||u[I].ty==="op"?(D?(O=f[I],O.closed=!1):(O=ShapeModifiers.getModifier(u[I].ty),O.init(this,u[I]),f[I]=O,this.shapeModifiers.push(O)),T.push(O)):u[I].ty==="rp"&&(D?(O=f[I],O.closed=!0):(O=ShapeModifiers.getModifier(u[I].ty),f[I]=O,O.init(this,u,I,f),this.shapeModifiers.push(O),_=!1),T.push(O));this.addProcessedElement(u[I],I+1)}for(this.removeTransformFromStyleList(),this.closeStyles(A),E=T.length,I=0;I<E;I+=1)T[I].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(u,f){(u._opMdf||f.op._mdf||this._isFirstFrame)&&(f.opacity=u.opacity,f.opacity*=f.op.v,f._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var u,f=this.stylesList.length,d,_,x,I,E,M,S=this.globalData.renderer,A=this.globalData.canvasContext,T,D;for(u=0;u<f;u+=1)if(D=this.stylesList[u],T=D.type,!((T==="st"||T==="gs")&&D.wi===0||!D.data._shouldRender||D.coOp===0||this.globalData.currentGlobalAlpha===0)){for(S.save(),E=D.elements,T==="st"||T==="gs"?(S.ctxStrokeStyle(T==="st"?D.co:D.grd),S.ctxLineWidth(D.wi),S.ctxLineCap(D.lc),S.ctxLineJoin(D.lj),S.ctxMiterLimit(D.ml||0)):S.ctxFillStyle(T==="fl"?D.co:D.grd),S.ctxOpacity(D.coOp),T!=="st"&&T!=="gs"&&A.beginPath(),S.ctxTransform(D.preTransforms.finalTransform.props),_=E.length,d=0;d<_;d+=1){for((T==="st"||T==="gs")&&(A.beginPath(),D.da&&(A.setLineDash(D.da),A.lineDashOffset=D.do)),M=E[d].trNodes,I=M.length,x=0;x<I;x+=1)M[x].t==="m"?A.moveTo(M[x].p[0],M[x].p[1]):M[x].t==="c"?A.bezierCurveTo(M[x].pts[0],M[x].pts[1],M[x].pts[2],M[x].pts[3],M[x].pts[4],M[x].pts[5]):A.closePath();(T==="st"||T==="gs")&&(S.ctxStroke(),D.da&&A.setLineDash(this.dashResetter))}T!=="st"&&T!=="gs"&&this.globalData.renderer.ctxFill(D.r),S.restore()}},CVShapeElement.prototype.renderShape=function(u,f,d,_){var x,I=f.length-1,E;for(E=u,x=I;x>=0;x-=1)f[x].ty==="tr"?(E=d[x].transform,this.renderShapeTransform(u,E)):f[x].ty==="sh"||f[x].ty==="el"||f[x].ty==="rc"||f[x].ty==="sr"?this.renderPath(f[x],d[x]):f[x].ty==="fl"?this.renderFill(f[x],d[x],E):f[x].ty==="st"?this.renderStroke(f[x],d[x],E):f[x].ty==="gf"||f[x].ty==="gs"?this.renderGradientFill(f[x],d[x],E):f[x].ty==="gr"?this.renderShape(E,f[x].it,d[x].it):f[x].ty;_&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(u,f){if(this._isFirstFrame||f._mdf||u.transforms._mdf){var d=u.trNodes,_=f.paths,x,I,E,M=_._length;d.length=0;var S=u.transforms.finalTransform;for(E=0;E<M;E+=1){var A=_.shapes[E];if(A&&A.v){for(I=A._length,x=1;x<I;x+=1)x===1&&d.push({t:"m",p:S.applyToPointArray(A.v[0][0],A.v[0][1],0)}),d.push({t:"c",pts:S.applyToTriplePoints(A.o[x-1],A.i[x],A.v[x])});I===1&&d.push({t:"m",p:S.applyToPointArray(A.v[0][0],A.v[0][1],0)}),A.c&&I&&(d.push({t:"c",pts:S.applyToTriplePoints(A.o[x-1],A.i[0],A.v[0])}),d.push({t:"z"}))}}u.trNodes=d}},CVShapeElement.prototype.renderPath=function(u,f){if(u.hd!==!0&&u._shouldRender){var d,_=f.styledShapes.length;for(d=0;d<_;d+=1)this.renderStyledShape(f.styledShapes[d],f.sh)}},CVShapeElement.prototype.renderFill=function(u,f,d){var _=f.style;(f.c._mdf||this._isFirstFrame)&&(_.co="rgb("+bmFloor(f.c.v[0])+","+bmFloor(f.c.v[1])+","+bmFloor(f.c.v[2])+")"),(f.o._mdf||d._opMdf||this._isFirstFrame)&&(_.coOp=f.o.v*d.opacity)},CVShapeElement.prototype.renderGradientFill=function(u,f,d){var _=f.style,x;if(!_.grd||f.g._mdf||f.s._mdf||f.e._mdf||u.t!==1&&(f.h._mdf||f.a._mdf)){var I=this.globalData.canvasContext,E=f.s.v,M=f.e.v;if(u.t===1)x=I.createLinearGradient(E[0],E[1],M[0],M[1]);else{var S=Math.sqrt(Math.pow(E[0]-M[0],2)+Math.pow(E[1]-M[1],2)),A=Math.atan2(M[1]-E[1],M[0]-E[0]),T=f.h.v;T>=1?T=.99:T<=-1&&(T=-.99);var D=S*T,O=Math.cos(A+f.a.v)*D+E[0],j=Math.sin(A+f.a.v)*D+E[1];x=I.createRadialGradient(O,j,0,E[0],E[1],S)}var $,W=u.g.p,Q=f.g.c,X=1;for($=0;$<W;$+=1)f.g._hasOpacity&&f.g._collapsable&&(X=f.g.o[$*2+1]),x.addColorStop(Q[$*4]/100,"rgba("+Q[$*4+1]+","+Q[$*4+2]+","+Q[$*4+3]+","+X+")");_.grd=x}_.coOp=f.o.v*d.opacity},CVShapeElement.prototype.renderStroke=function(u,f,d){var _=f.style,x=f.d;x&&(x._mdf||this._isFirstFrame)&&(_.da=x.dashArray,_.do=x.dashoffset[0]),(f.c._mdf||this._isFirstFrame)&&(_.co="rgb("+bmFloor(f.c.v[0])+","+bmFloor(f.c.v[1])+","+bmFloor(f.c.v[2])+")"),(f.o._mdf||d._opMdf||this._isFirstFrame)&&(_.coOp=f.o.v*d.opacity),(f.w._mdf||this._isFirstFrame)&&(_.wi=f.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0};function CVTextElement(u,f,d){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(u,f,d)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var u=this.textProperty.currentData;this.renderedLetters=createSizedArray(u.l?u.l.length:0);var f=!1;u.fc?(f=!0,this.values.fill=this.buildColor(u.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=f;var d=!1;u.sc&&(d=!0,this.values.stroke=this.buildColor(u.sc),this.values.sWidth=u.sw);var _=this.globalData.fontManager.getFontByName(u.f),x,I,E=u.l,M=this.mHelper;this.stroke=d,this.values.fValue=u.finalSize+"px "+this.globalData.fontManager.getFontByName(u.f).fFamily,I=u.finalText.length;var S,A,T,D,O,j,$,W,Q,X,Y=this.data.singleShape,ie=u.tr*.001*u.finalSize,oe=0,ge=0,be=!0,ze=0;for(x=0;x<I;x+=1){S=this.globalData.fontManager.getCharData(u.finalText[x],_.fStyle,this.globalData.fontManager.getFontByName(u.f).fFamily),A=S&&S.data||{},M.reset(),Y&&E[x].n&&(oe=-ie,ge+=u.yOffset,ge+=be?1:0,be=!1),O=A.shapes?A.shapes[0].it:[],$=O.length,M.scale(u.finalSize/100,u.finalSize/100),Y&&this.applyTextPropertiesToMatrix(u,M,E[x].line,oe,ge),Q=createSizedArray($-1);var de=0;for(j=0;j<$;j+=1)if(O[j].ty==="sh"){for(D=O[j].ks.k.i.length,W=O[j].ks.k,X=[],T=1;T<D;T+=1)T===1&&X.push(M.applyToX(W.v[0][0],W.v[0][1],0),M.applyToY(W.v[0][0],W.v[0][1],0)),X.push(M.applyToX(W.o[T-1][0],W.o[T-1][1],0),M.applyToY(W.o[T-1][0],W.o[T-1][1],0),M.applyToX(W.i[T][0],W.i[T][1],0),M.applyToY(W.i[T][0],W.i[T][1],0),M.applyToX(W.v[T][0],W.v[T][1],0),M.applyToY(W.v[T][0],W.v[T][1],0));X.push(M.applyToX(W.o[T-1][0],W.o[T-1][1],0),M.applyToY(W.o[T-1][0],W.o[T-1][1],0),M.applyToX(W.i[0][0],W.i[0][1],0),M.applyToY(W.i[0][0],W.i[0][1],0),M.applyToX(W.v[0][0],W.v[0][1],0),M.applyToY(W.v[0][0],W.v[0][1],0)),Q[de]=X,de+=1}Y&&(oe+=E[x].l,oe+=ie),this.textSpans[ze]?this.textSpans[ze].elem=Q:this.textSpans[ze]={elem:Q},ze+=1}},CVTextElement.prototype.renderInnerContent=function(){this.validateText();var u=this.canvasContext;u.font=this.values.fValue,this.globalData.renderer.ctxLineCap("butt"),this.globalData.renderer.ctxLineJoin("miter"),this.globalData.renderer.ctxMiterLimit(4),this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var f,d,_,x,I,E,M=this.textAnimator.renderedLetters,S=this.textProperty.currentData.l;d=S.length;var A,T=null,D=null,O=null,j,$,W=this.globalData.renderer;for(f=0;f<d;f+=1)if(!S[f].n){if(A=M[f],A&&(W.save(),W.ctxTransform(A.p),W.ctxOpacity(A.o)),this.fill){for(A&&A.fc?T!==A.fc&&(W.ctxFillStyle(A.fc),T=A.fc):T!==this.values.fill&&(T=this.values.fill,W.ctxFillStyle(this.values.fill)),j=this.textSpans[f].elem,x=j.length,this.globalData.canvasContext.beginPath(),_=0;_<x;_+=1)for($=j[_],E=$.length,this.globalData.canvasContext.moveTo($[0],$[1]),I=2;I<E;I+=6)this.globalData.canvasContext.bezierCurveTo($[I],$[I+1],$[I+2],$[I+3],$[I+4],$[I+5]);this.globalData.canvasContext.closePath(),W.ctxFill()}if(this.stroke){for(A&&A.sw?O!==A.sw&&(O=A.sw,W.ctxLineWidth(A.sw)):O!==this.values.sWidth&&(O=this.values.sWidth,W.ctxLineWidth(this.values.sWidth)),A&&A.sc?D!==A.sc&&(D=A.sc,W.ctxStrokeStyle(A.sc)):D!==this.values.stroke&&(D=this.values.stroke,W.ctxStrokeStyle(this.values.stroke)),j=this.textSpans[f].elem,x=j.length,this.globalData.canvasContext.beginPath(),_=0;_<x;_+=1)for($=j[_],E=$.length,this.globalData.canvasContext.moveTo($[0],$[1]),I=2;I<E;I+=6)this.globalData.canvasContext.bezierCurveTo($[I],$[I+1],$[I+2],$[I+3],$[I+4],$[I+5]);this.globalData.canvasContext.closePath(),W.ctxStroke()}A&&this.globalData.renderer.restore()}};function CVImageElement(u,f,d){this.assetData=f.getAssetData(u.refId),this.img=f.imageLoader.getAsset(this.assetData),this.initElement(u,f,d)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var u=createTag("canvas");u.width=this.assetData.w,u.height=this.assetData.h;var f=u.getContext("2d"),d=this.img.width,_=this.img.height,x=d/_,I=this.assetData.w/this.assetData.h,E,M,S=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;x>I&&S==="xMidYMid slice"||x<I&&S!=="xMidYMid slice"?(M=_,E=M*I):(E=d,M=E/I),f.drawImage(this.img,(d-E)/2,(_-M)/2,E,M,0,0,this.assetData.w,this.assetData.h),this.img=u}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null};function CVSolidElement(u,f,d){this.initElement(u,f,d)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){this.globalData.renderer.ctxFillStyle(this.data.sc),this.globalData.renderer.ctxFillRect(0,0,this.data.sw,this.data.sh)};function CanvasRendererBase(){}extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(u){return new CVShapeElement(u,this.globalData,this)},CanvasRendererBase.prototype.createText=function(u){return new CVTextElement(u,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(u){return new CVImageElement(u,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(u){return new CVSolidElement(u,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(u){u[0]===1&&u[1]===0&&u[4]===0&&u[5]===1&&u[12]===0&&u[13]===0||this.canvasContext.transform(u[0],u[1],u[4],u[5],u[12],u[13])},CanvasRendererBase.prototype.ctxOpacity=function(u){this.canvasContext.globalAlpha*=u<0?0:u},CanvasRendererBase.prototype.ctxFillStyle=function(u){this.canvasContext.fillStyle=u},CanvasRendererBase.prototype.ctxStrokeStyle=function(u){this.canvasContext.strokeStyle=u},CanvasRendererBase.prototype.ctxLineWidth=function(u){this.canvasContext.lineWidth=u},CanvasRendererBase.prototype.ctxLineCap=function(u){this.canvasContext.lineCap=u},CanvasRendererBase.prototype.ctxLineJoin=function(u){this.canvasContext.lineJoin=u},CanvasRendererBase.prototype.ctxMiterLimit=function(u){this.canvasContext.miterLimit=u},CanvasRendererBase.prototype.ctxFill=function(u){this.canvasContext.fill(u)},CanvasRendererBase.prototype.ctxFillRect=function(u,f,d,_){this.canvasContext.fillRect(u,f,d,_)},CanvasRendererBase.prototype.ctxStroke=function(){this.canvasContext.stroke()},CanvasRendererBase.prototype.reset=function(){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}this.contextData.reset()},CanvasRendererBase.prototype.save=function(){this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(u){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}u&&(this.globalData.blendMode="source-over"),this.contextData.restore(u)},CanvasRendererBase.prototype.configAnimation=function(u){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var f=this.animationItem.container.style;f.width="100%",f.height="100%";var d="0px 0px 0px";f.transformOrigin=d,f.mozTransformOrigin=d,f.webkitTransformOrigin=d,f["-webkit-transform"]=d,f.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.contextData.setContext(this.canvasContext),this.data=u,this.layers=u.layers,this.transformCanvas={w:u.w,h:u.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(u,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(u.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(u,f){this.reset();var d,_;u?(d=u,_=f,this.canvasContext.canvas.width=d,this.canvasContext.canvas.height=_):(this.animationItem.wrapper&&this.animationItem.container?(d=this.animationItem.wrapper.offsetWidth,_=this.animationItem.wrapper.offsetHeight):(d=this.canvasContext.canvas.width,_=this.canvasContext.canvas.height),this.canvasContext.canvas.width=d*this.renderConfig.dpr,this.canvasContext.canvas.height=_*this.renderConfig.dpr);var x,I;if(this.renderConfig.preserveAspectRatio.indexOf("meet")!==-1||this.renderConfig.preserveAspectRatio.indexOf("slice")!==-1){var E=this.renderConfig.preserveAspectRatio.split(" "),M=E[1]||"meet",S=E[0]||"xMidYMid",A=S.substr(0,4),T=S.substr(4);x=d/_,I=this.transformCanvas.w/this.transformCanvas.h,I>x&&M==="meet"||I<x&&M==="slice"?(this.transformCanvas.sx=d/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=d/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=_/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=_/(this.transformCanvas.h/this.renderConfig.dpr)),A==="xMid"&&(I<x&&M==="meet"||I>x&&M==="slice")?this.transformCanvas.tx=(d-this.transformCanvas.w*(_/this.transformCanvas.h))/2*this.renderConfig.dpr:A==="xMax"&&(I<x&&M==="meet"||I>x&&M==="slice")?this.transformCanvas.tx=(d-this.transformCanvas.w*(_/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,T==="YMid"&&(I>x&&M==="meet"||I<x&&M==="slice")?this.transformCanvas.ty=(_-this.transformCanvas.h*(d/this.transformCanvas.w))/2*this.renderConfig.dpr:T==="YMax"&&(I>x&&M==="meet"||I<x&&M==="slice")?this.transformCanvas.ty=(_-this.transformCanvas.h*(d/this.transformCanvas.w))*this.renderConfig.dpr:this.transformCanvas.ty=0}else this.renderConfig.preserveAspectRatio==="none"?(this.transformCanvas.sx=d/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=_/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText="");var u,f=this.layers?this.layers.length:0;for(u=f-1;u>=0;u-=1)this.elements[u]&&this.elements[u].destroy&&this.elements[u].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(u,f){if(!(this.renderedFrame===u&&this.renderConfig.clearCanvas===!0&&!f||this.destroyed||u===-1)){this.renderedFrame=u,this.globalData.frameNum=u-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||f,this.globalData.projectInterface.currentFrame=u;var d,_=this.layers.length;for(this.completeLayers||this.checkLayers(u),d=_-1;d>=0;d-=1)(this.completeLayers||this.elements[d])&&this.elements[d].prepareFrame(u-this.layers[d].st);if(this.globalData._mdf){for(this.renderConfig.clearCanvas===!0?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),d=_-1;d>=0;d-=1)(this.completeLayers||this.elements[d])&&this.elements[d].renderFrame();this.renderConfig.clearCanvas!==!0&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(u){var f=this.elements;if(!(f[u]||this.layers[u].ty===99)){var d=this.createItem(this.layers[u],this,this.globalData);f[u]=d,d.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var u=this.pendingElements.pop();u.checkParenting()}},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"};function CanvasContext(){this.opacity=-1,this.transform=createTypedArray("float32",16),this.fillStyle="",this.strokeStyle="",this.lineWidth="",this.lineCap="",this.lineJoin="",this.miterLimit="",this.id=Math.random()}function CVContextData(){this.stack=[],this.cArrPos=0,this.cTr=new Matrix;var u,f=15;for(u=0;u<f;u+=1){var d=new CanvasContext;this.stack[u]=d}this._length=f,this.nativeContext=null,this.transformMat=new Matrix,this.currentOpacity=1,this.currentFillStyle="",this.appliedFillStyle="",this.currentStrokeStyle="",this.appliedStrokeStyle="",this.currentLineWidth="",this.appliedLineWidth="",this.currentLineCap="",this.appliedLineCap="",this.currentLineJoin="",this.appliedLineJoin="",this.appliedMiterLimit="",this.currentMiterLimit=""}CVContextData.prototype.duplicate=function(){var u=this._length*2,f=0;for(f=this._length;f<u;f+=1)this.stack[f]=new CanvasContext;this._length=u},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(u){this.cArrPos-=1;var f=this.stack[this.cArrPos],d=f.transform,_,x=this.cTr.props;for(_=0;_<16;_+=1)x[_]=d[_];if(u){this.nativeContext.restore();var I=this.stack[this.cArrPos+1];this.appliedFillStyle=I.fillStyle,this.appliedStrokeStyle=I.strokeStyle,this.appliedLineWidth=I.lineWidth,this.appliedLineCap=I.lineCap,this.appliedLineJoin=I.lineJoin,this.appliedMiterLimit=I.miterLimit}this.nativeContext.setTransform(d[0],d[1],d[4],d[5],d[12],d[13]),(u||f.opacity!==-1&&this.currentOpacity!==f.opacity)&&(this.nativeContext.globalAlpha=f.opacity,this.currentOpacity=f.opacity),this.currentFillStyle=f.fillStyle,this.currentStrokeStyle=f.strokeStyle,this.currentLineWidth=f.lineWidth,this.currentLineCap=f.lineCap,this.currentLineJoin=f.lineJoin,this.currentMiterLimit=f.miterLimit},CVContextData.prototype.save=function(u){u&&this.nativeContext.save();var f=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var d=this.stack[this.cArrPos],_;for(_=0;_<16;_+=1)d.transform[_]=f[_];this.cArrPos+=1;var x=this.stack[this.cArrPos];x.opacity=d.opacity,x.fillStyle=d.fillStyle,x.strokeStyle=d.strokeStyle,x.lineWidth=d.lineWidth,x.lineCap=d.lineCap,x.lineJoin=d.lineJoin,x.miterLimit=d.miterLimit},CVContextData.prototype.setOpacity=function(u){this.stack[this.cArrPos].opacity=u},CVContextData.prototype.setContext=function(u){this.nativeContext=u},CVContextData.prototype.fillStyle=function(u){this.stack[this.cArrPos].fillStyle!==u&&(this.currentFillStyle=u,this.stack[this.cArrPos].fillStyle=u)},CVContextData.prototype.strokeStyle=function(u){this.stack[this.cArrPos].strokeStyle!==u&&(this.currentStrokeStyle=u,this.stack[this.cArrPos].strokeStyle=u)},CVContextData.prototype.lineWidth=function(u){this.stack[this.cArrPos].lineWidth!==u&&(this.currentLineWidth=u,this.stack[this.cArrPos].lineWidth=u)},CVContextData.prototype.lineCap=function(u){this.stack[this.cArrPos].lineCap!==u&&(this.currentLineCap=u,this.stack[this.cArrPos].lineCap=u)},CVContextData.prototype.lineJoin=function(u){this.stack[this.cArrPos].lineJoin!==u&&(this.currentLineJoin=u,this.stack[this.cArrPos].lineJoin=u)},CVContextData.prototype.miterLimit=function(u){this.stack[this.cArrPos].miterLimit!==u&&(this.currentMiterLimit=u,this.stack[this.cArrPos].miterLimit=u)},CVContextData.prototype.transform=function(u){this.transformMat.cloneFromProps(u);var f=this.cTr;this.transformMat.multiply(f),f.cloneFromProps(this.transformMat.props);var d=f.props;this.nativeContext.setTransform(d[0],d[1],d[4],d[5],d[12],d[13])},CVContextData.prototype.opacity=function(u){var f=this.stack[this.cArrPos].opacity;f*=u<0?0:u,this.stack[this.cArrPos].opacity!==f&&(this.currentOpacity!==u&&(this.nativeContext.globalAlpha=u,this.currentOpacity=u),this.stack[this.cArrPos].opacity=f)},CVContextData.prototype.fill=function(u){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(u)},CVContextData.prototype.fillRect=function(u,f,d,_){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(u,f,d,_)},CVContextData.prototype.stroke=function(){this.appliedStrokeStyle!==this.currentStrokeStyle&&(this.appliedStrokeStyle=this.currentStrokeStyle,this.nativeContext.strokeStyle=this.appliedStrokeStyle),this.appliedLineWidth!==this.currentLineWidth&&(this.appliedLineWidth=this.currentLineWidth,this.nativeContext.lineWidth=this.appliedLineWidth),this.appliedLineCap!==this.currentLineCap&&(this.appliedLineCap=this.currentLineCap,this.nativeContext.lineCap=this.appliedLineCap),this.appliedLineJoin!==this.currentLineJoin&&(this.appliedLineJoin=this.currentLineJoin,this.nativeContext.lineJoin=this.appliedLineJoin),this.appliedMiterLimit!==this.currentMiterLimit&&(this.appliedMiterLimit=this.currentMiterLimit,this.nativeContext.miterLimit=this.appliedMiterLimit),this.nativeContext.stroke()};function CVCompElement(u,f,d){this.completeLayers=!1,this.layers=u.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(u,f,d),this.tm=u.tm?PropertyFactory.getProp(this,u.tm,0,f.frameRate,this):{_placeholder:!0}}extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var u=this.canvasContext;u.beginPath(),u.moveTo(0,0),u.lineTo(this.data.w,0),u.lineTo(this.data.w,this.data.h),u.lineTo(0,this.data.h),u.lineTo(0,0),u.clip();var f,d=this.layers.length;for(f=d-1;f>=0;f-=1)(this.completeLayers||this.elements[f])&&this.elements[f].renderFrame()},CVCompElement.prototype.destroy=function(){var u,f=this.layers.length;for(u=f-1;u>=0;u-=1)this.elements[u]&&this.elements[u].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(u){return new CVCompElement(u,this.globalData,this)};function CanvasRenderer(u,f){this.animationItem=u,this.renderConfig={clearCanvas:f&&f.clearCanvas!==void 0?f.clearCanvas:!0,context:f&&f.context||null,progressiveLoad:f&&f.progressiveLoad||!1,preserveAspectRatio:f&&f.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:f&&f.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:f&&f.contentVisibility||"visible",className:f&&f.className||"",id:f&&f.id||"",runExpressions:!f||f.runExpressions===void 0||f.runExpressions},this.renderConfig.dpr=f&&f.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=f&&f.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas",this.renderConfig.clearCanvas&&(this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData))}extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(u){return new CVCompElement(u,this.globalData,this)};function HBaseElement(){}HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.bm!==0&&this.setBlendMode()},renderElement:function(){var f=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var d=this.finalTransform.mat.toCSS();f.transform=d,f.webkitTransform=d}this.finalTransform._opMdf&&(f.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting;function HSolidElement(u,f,d){this.initElement(u,f,d)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var u;this.data.hasMask?(u=createNS("rect"),u.setAttribute("width",this.data.sw),u.setAttribute("height",this.data.sh),u.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):(u=createTag("div"),u.style.width=this.data.sw+"px",u.style.height=this.data.sh+"px",u.style.backgroundColor=this.data.sc),this.layerElement.appendChild(u)};function HShapeElement(u,f,d){this.shapes=[],this.shapesData=u.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(u,f,d),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var u;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),u=this.svgElement;else{u=createNS("svg");var f=this.comp.data?this.comp.data:this.globalData.compSize;u.setAttribute("width",f.w),u.setAttribute("height",f.h),u.appendChild(this.shapesContainer),this.layerElement.appendChild(u)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=u},HShapeElement.prototype.getTransformedPoint=function(u,f){var d,_=u.length;for(d=0;d<_;d+=1)f=u[d].mProps.v.applyToPointArray(f[0],f[1],0);return f},HShapeElement.prototype.calculateShapeBoundingBox=function(u,f){var d=u.sh.v,_=u.transformers,x,I=d._length,E,M,S,A;if(!(I<=1)){for(x=0;x<I-1;x+=1)E=this.getTransformedPoint(_,d.v[x]),M=this.getTransformedPoint(_,d.o[x]),S=this.getTransformedPoint(_,d.i[x+1]),A=this.getTransformedPoint(_,d.v[x+1]),this.checkBounds(E,M,S,A,f);d.c&&(E=this.getTransformedPoint(_,d.v[x]),M=this.getTransformedPoint(_,d.o[x]),S=this.getTransformedPoint(_,d.i[0]),A=this.getTransformedPoint(_,d.v[0]),this.checkBounds(E,M,S,A,f))}},HShapeElement.prototype.checkBounds=function(u,f,d,_,x){this.getBoundsOfCurve(u,f,d,_);var I=this.shapeBoundingBox;x.x=bmMin(I.left,x.x),x.xMax=bmMax(I.right,x.xMax),x.y=bmMin(I.top,x.y),x.yMax=bmMax(I.bottom,x.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(u,f,d,_){for(var x=[[u[0],_[0]],[u[1],_[1]]],I,E,M,S,A,T,D,O=0;O<2;++O)E=6*u[O]-12*f[O]+6*d[O],I=-3*u[O]+9*f[O]-9*d[O]+3*_[O],M=3*f[O]-3*u[O],E|=0,I|=0,M|=0,I===0&&E===0||(I===0?(S=-M/E,S>0&&S<1&&x[O].push(this.calculateF(S,u,f,d,_,O))):(A=E*E-4*M*I,A>=0&&(T=(-E+bmSqrt(A))/(2*I),T>0&&T<1&&x[O].push(this.calculateF(T,u,f,d,_,O)),D=(-E-bmSqrt(A))/(2*I),D>0&&D<1&&x[O].push(this.calculateF(D,u,f,d,_,O)))));this.shapeBoundingBox.left=bmMin.apply(null,x[0]),this.shapeBoundingBox.top=bmMin.apply(null,x[1]),this.shapeBoundingBox.right=bmMax.apply(null,x[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,x[1])},HShapeElement.prototype.calculateF=function(u,f,d,_,x,I){return bmPow(1-u,3)*f[I]+3*bmPow(1-u,2)*u*d[I]+3*(1-u)*bmPow(u,2)*_[I]+bmPow(u,3)*x[I]},HShapeElement.prototype.calculateBoundingBox=function(u,f){var d,_=u.length;for(d=0;d<_;d+=1)u[d]&&u[d].sh?this.calculateShapeBoundingBox(u[d],f):u[d]&&u[d].it?this.calculateBoundingBox(u[d].it,f):u[d]&&u[d].style&&u[d].w&&this.expandStrokeBoundingBox(u[d].w,f)},HShapeElement.prototype.expandStrokeBoundingBox=function(u,f){var d=0;if(u.keyframes){for(var _=0;_<u.keyframes.length;_+=1){var x=u.keyframes[_].s;x>d&&(d=x)}d*=u.mult}else d=u.v*u.mult;f.x-=d,f.xMax+=d,f.y-=d,f.yMax+=d},HShapeElement.prototype.currentBoxContains=function(u){return this.currentBBox.x<=u.x&&this.currentBBox.y<=u.y&&this.currentBBox.width+this.currentBBox.x>=u.x+u.width&&this.currentBBox.height+this.currentBBox.y>=u.y+u.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var u=this.tempBoundingBox,f=999999;if(u.x=f,u.xMax=-f,u.y=f,u.yMax=-f,this.calculateBoundingBox(this.itemsData,u),u.width=u.xMax<u.x?0:u.xMax-u.x,u.height=u.yMax<u.y?0:u.yMax-u.y,this.currentBoxContains(u))return;var d=!1;if(this.currentBBox.w!==u.width&&(this.currentBBox.w=u.width,this.shapeCont.setAttribute("width",u.width),d=!0),this.currentBBox.h!==u.height&&(this.currentBBox.h=u.height,this.shapeCont.setAttribute("height",u.height),d=!0),d||this.currentBBox.x!==u.x||this.currentBBox.y!==u.y){this.currentBBox.w=u.width,this.currentBBox.h=u.height,this.currentBBox.x=u.x,this.currentBBox.y=u.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var _=this.shapeCont.style,x="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";_.transform=x,_.webkitTransform=x}}};function HTextElement(u,f,d){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(u,f,d)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var u=createNS("g");this.maskedElement.appendChild(u),this.innerElem=u}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var u=this.textProperty.currentData;this.renderedLetters=createSizedArray(u.l?u.l.length:0);var f=this.innerElem.style,d=u.fc?this.buildColor(u.fc):"rgba(0,0,0,0)";f.fill=d,f.color=d,u.sc&&(f.stroke=this.buildColor(u.sc),f.strokeWidth=u.sw+"px");var _=this.globalData.fontManager.getFontByName(u.f);if(!this.globalData.fontManager.chars)if(f.fontSize=u.finalSize+"px",f.lineHeight=u.finalSize+"px",_.fClass)this.innerElem.className=_.fClass;else{f.fontFamily=_.fFamily;var x=u.fWeight,I=u.fStyle;f.fontStyle=I,f.fontWeight=x}var E,M,S=u.l;M=S.length;var A,T,D,O=this.mHelper,j,$="",W=0;for(E=0;E<M;E+=1){if(this.globalData.fontManager.chars?(this.textPaths[W]?A=this.textPaths[W]:(A=createNS("path"),A.setAttribute("stroke-linecap",lineCapEnum[1]),A.setAttribute("stroke-linejoin",lineJoinEnum[2]),A.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[W]?(T=this.textSpans[W],D=T.children[0]):(T=createTag("div"),T.style.lineHeight=0,D=createNS("svg"),D.appendChild(A),styleDiv(T)))):this.isMasked?A=this.textPaths[W]?this.textPaths[W]:createNS("text"):this.textSpans[W]?(T=this.textSpans[W],A=this.textPaths[W]):(T=createTag("span"),styleDiv(T),A=createTag("span"),styleDiv(A),T.appendChild(A)),this.globalData.fontManager.chars){var Q=this.globalData.fontManager.getCharData(u.finalText[E],_.fStyle,this.globalData.fontManager.getFontByName(u.f).fFamily),X;if(Q?X=Q.data:X=null,O.reset(),X&&X.shapes&&X.shapes.length&&(j=X.shapes[0].it,O.scale(u.finalSize/100,u.finalSize/100),$=this.createPathShape(O,j),A.setAttribute("d",$)),this.isMasked)this.innerElem.appendChild(A);else{if(this.innerElem.appendChild(T),X&&X.shapes){document.body.appendChild(D);var Y=D.getBBox();D.setAttribute("width",Y.width+2),D.setAttribute("height",Y.height+2),D.setAttribute("viewBox",Y.x-1+" "+(Y.y-1)+" "+(Y.width+2)+" "+(Y.height+2));var ie=D.style,oe="translate("+(Y.x-1)+"px,"+(Y.y-1)+"px)";ie.transform=oe,ie.webkitTransform=oe,S[E].yOffset=Y.y-1}else D.setAttribute("width",1),D.setAttribute("height",1);T.appendChild(D)}}else if(A.textContent=S[E].val,A.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(A);else{this.innerElem.appendChild(T);var ge=A.style,be="translate3d(0,"+-u.finalSize/1.2+"px,0)";ge.transform=be,ge.webkitTransform=be}this.isMasked?this.textSpans[W]=A:this.textSpans[W]=T,this.textSpans[W].style.display="block",this.textPaths[W]=A,W+=1}for(;W<this.textSpans.length;)this.textSpans[W].style.display="none",W+=1},HTextElement.prototype.renderInnerContent=function(){this.validateText();var u;if(this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),u=this.svgElement.style;var f="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";u.transform=f,u.webkitTransform=f}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),!(!this.lettersChangedFlag&&!this.textAnimator.lettersChangedFlag)){var d,_,x=0,I=this.textAnimator.renderedLetters,E=this.textProperty.currentData.l;_=E.length;var M,S,A;for(d=0;d<_;d+=1)E[d].n?x+=1:(S=this.textSpans[d],A=this.textPaths[d],M=I[x],x+=1,M._mdf.m&&(this.isMasked?S.setAttribute("transform",M.m):(S.style.webkitTransform=M.m,S.style.transform=M.m)),S.style.opacity=M.o,M.sw&&M._mdf.sw&&A.setAttribute("stroke-width",M.sw),M.sc&&M._mdf.sc&&A.setAttribute("stroke",M.sc),M.fc&&M._mdf.fc&&(A.setAttribute("fill",M.fc),A.style.color=M.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var T=this.innerElem.getBBox();this.currentBBox.w!==T.width&&(this.currentBBox.w=T.width,this.svgElement.setAttribute("width",T.width)),this.currentBBox.h!==T.height&&(this.currentBBox.h=T.height,this.svgElement.setAttribute("height",T.height));var D=1;if(this.currentBBox.w!==T.width+D*2||this.currentBBox.h!==T.height+D*2||this.currentBBox.x!==T.x-D||this.currentBBox.y!==T.y-D){this.currentBBox.w=T.width+D*2,this.currentBBox.h=T.height+D*2,this.currentBBox.x=T.x-D,this.currentBBox.y=T.y-D,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),u=this.svgElement.style;var O="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";u.transform=O,u.webkitTransform=O}}}};function HCameraElement(u,f,d){this.initFrame(),this.initBaseData(u,f,d),this.initHierarchy();var _=PropertyFactory.getProp;if(this.pe=_(this,u.pe,0,0,this),u.ks.p.s?(this.px=_(this,u.ks.p.x,1,0,this),this.py=_(this,u.ks.p.y,1,0,this),this.pz=_(this,u.ks.p.z,1,0,this)):this.p=_(this,u.ks.p,1,0,this),u.ks.a&&(this.a=_(this,u.ks.a,1,0,this)),u.ks.or.k.length&&u.ks.or.k[0].to){var x,I=u.ks.or.k.length;for(x=0;x<I;x+=1)u.ks.or.k[x].to=null,u.ks.or.k[x].ti=null}this.or=_(this,u.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=_(this,u.ks.rx,0,degToRads,this),this.ry=_(this,u.ks.ry,0,degToRads,this),this.rz=_(this,u.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var u,f=this.comp.threeDElements.length,d,_,x;for(u=0;u<f;u+=1)if(d=this.comp.threeDElements[u],d.type==="3d"){_=d.perspectiveElem.style,x=d.container.style;var I=this.pe.v+"px",E="0px 0px 0px",M="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";_.perspective=I,_.webkitPerspective=I,x.transformOrigin=E,x.mozTransformOrigin=E,x.webkitTransformOrigin=E,_.transform=M,_.webkitTransform=M}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var u=this._isFirstFrame,f,d;if(this.hierarchy)for(d=this.hierarchy.length,f=0;f<d;f+=1)u=this.hierarchy[f].finalTransform.mProp._mdf||u;if(u||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(d=this.hierarchy.length-1,f=d;f>=0;f-=1){var _=this.hierarchy[f].finalTransform.mProp;this.mat.translate(-_.p.v[0],-_.p.v[1],_.p.v[2]),this.mat.rotateX(-_.or.v[0]).rotateY(-_.or.v[1]).rotateZ(_.or.v[2]),this.mat.rotateX(-_.rx.v).rotateY(-_.ry.v).rotateZ(_.rz.v),this.mat.scale(1/_.s.v[0],1/_.s.v[1],1/_.s.v[2]),this.mat.translate(_.a.v[0],_.a.v[1],_.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var x;this.p?x=[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:x=[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var I=Math.sqrt(Math.pow(x[0],2)+Math.pow(x[1],2)+Math.pow(x[2],2)),E=[x[0]/I,x[1]/I,x[2]/I],M=Math.sqrt(E[2]*E[2]+E[0]*E[0]),S=Math.atan2(E[1],M),A=Math.atan2(E[0],-E[2]);this.mat.rotateY(A).rotateX(-S)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var T=!this._prevMat.equals(this.mat);if((T||this.pe._mdf)&&this.comp.threeDElements){d=this.comp.threeDElements.length;var D,O,j;for(f=0;f<d;f+=1)if(D=this.comp.threeDElements[f],D.type==="3d"){if(T){var $=this.mat.toCSS();j=D.container.style,j.transform=$,j.webkitTransform=$}this.pe._mdf&&(O=D.perspectiveElem.style,O.perspective=this.pe.v+"px",O.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(u){this.prepareProperties(u,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null};function HImageElement(u,f,d){this.assetData=f.getAssetData(u.refId),this.initElement(u,f,d)}extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var u=this.globalData.getAssetsPath(this.assetData),f=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",u),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(f),f.crossOrigin="anonymous",f.src=u,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)};function HybridRendererBase(u,f){this.animationItem=u,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:f&&f.className||"",imagePreserveAspectRatio:f&&f.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(f&&f.hideOnTransparent===!1),filterSize:{width:f&&f.filterSize&&f.filterSize.width||"400%",height:f&&f.filterSize&&f.filterSize.height||"400%",x:f&&f.filterSize&&f.filterSize.x||"-100%",y:f&&f.filterSize&&f.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var u=this.pendingElements.pop();u.checkParenting()}},HybridRendererBase.prototype.appendElementInPos=function(u,f){var d=u.getBaseElement();if(d){var _=this.layers[f];if(!_.ddd||!this.supports3d)if(this.threeDElements)this.addTo3dContainer(d,f);else{for(var x=0,I,E,M;x<f;)this.elements[x]&&this.elements[x]!==!0&&this.elements[x].getBaseElement&&(E=this.elements[x],M=this.layers[x].ddd?this.getThreeDContainerByPos(x):E.getBaseElement(),I=M||I),x+=1;I?(!_.ddd||!this.supports3d)&&this.layerElement.insertBefore(d,I):(!_.ddd||!this.supports3d)&&this.layerElement.appendChild(d)}else this.addTo3dContainer(d,f)}},HybridRendererBase.prototype.createShape=function(u){return this.supports3d?new HShapeElement(u,this.globalData,this):new SVGShapeElement(u,this.globalData,this)},HybridRendererBase.prototype.createText=function(u){return this.supports3d?new HTextElement(u,this.globalData,this):new SVGTextLottieElement(u,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(u){return this.camera=new HCameraElement(u,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(u){return this.supports3d?new HImageElement(u,this.globalData,this):new IImageElement(u,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(u){return this.supports3d?new HSolidElement(u,this.globalData,this):new ISolidElement(u,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(u){for(var f=0,d=this.threeDElements.length;f<d;){if(this.threeDElements[f].startPos<=u&&this.threeDElements[f].endPos>=u)return this.threeDElements[f].perspectiveElem;f+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(u,f){var d=createTag("div"),_,x;styleDiv(d);var I=createTag("div");if(styleDiv(I),f==="3d"){_=d.style,_.width=this.globalData.compSize.w+"px",_.height=this.globalData.compSize.h+"px";var E="50% 50%";_.webkitTransformOrigin=E,_.mozTransformOrigin=E,_.transformOrigin=E,x=I.style;var M="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";x.transform=M,x.webkitTransform=M}d.appendChild(I);var S={container:I,perspectiveElem:d,startPos:u,endPos:u,type:f};return this.threeDElements.push(S),S},HybridRendererBase.prototype.build3dContainers=function(){var u,f=this.layers.length,d,_="";for(u=0;u<f;u+=1)this.layers[u].ddd&&this.layers[u].ty!==3?(_!=="3d"&&(_="3d",d=this.createThreeDContainer(u,"3d")),d.endPos=Math.max(d.endPos,u)):(_!=="2d"&&(_="2d",d=this.createThreeDContainer(u,"2d")),d.endPos=Math.max(d.endPos,u));for(f=this.threeDElements.length,u=f-1;u>=0;u-=1)this.resizerElem.appendChild(this.threeDElements[u].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(u,f){for(var d=0,_=this.threeDElements.length;d<_;){if(f<=this.threeDElements[d].endPos){for(var x=this.threeDElements[d].startPos,I;x<f;)this.elements[x]&&this.elements[x].getBaseElement&&(I=this.elements[x].getBaseElement()),x+=1;I?this.threeDElements[d].container.insertBefore(u,I):this.threeDElements[d].container.appendChild(u);break}d+=1}},HybridRendererBase.prototype.configAnimation=function(u){var f=createTag("div"),d=this.animationItem.wrapper,_=f.style;_.width=u.w+"px",_.height=u.h+"px",this.resizerElem=f,styleDiv(f),_.transformStyle="flat",_.mozTransformStyle="flat",_.webkitTransformStyle="flat",this.renderConfig.className&&f.setAttribute("class",this.renderConfig.className),d.appendChild(f),_.overflow="hidden";var x=createNS("svg");x.setAttribute("width","1"),x.setAttribute("height","1"),styleDiv(x),this.resizerElem.appendChild(x);var I=createNS("defs");x.appendChild(I),this.data=u,this.setupGlobalData(u,x),this.globalData.defs=I,this.layers=u.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var u,f=this.layers?this.layers.length:0;for(u=0;u<f;u+=1)this.elements[u]&&this.elements[u].destroy&&this.elements[u].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var u=this.animationItem.wrapper.offsetWidth,f=this.animationItem.wrapper.offsetHeight,d=u/f,_=this.globalData.compSize.w/this.globalData.compSize.h,x,I,E,M;_>d?(x=u/this.globalData.compSize.w,I=u/this.globalData.compSize.w,E=0,M=(f-this.globalData.compSize.h*(u/this.globalData.compSize.w))/2):(x=f/this.globalData.compSize.h,I=f/this.globalData.compSize.h,E=(u-this.globalData.compSize.w*(f/this.globalData.compSize.h))/2,M=0);var S=this.resizerElem.style;S.webkitTransform="matrix3d("+x+",0,0,0,0,"+I+",0,0,0,0,1,0,"+E+","+M+",0,1)",S.transform=S.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var u=this.globalData.compSize.w,f=this.globalData.compSize.h,d,_=this.threeDElements.length;for(d=0;d<_;d+=1){var x=this.threeDElements[d].perspectiveElem.style;x.webkitPerspective=Math.sqrt(Math.pow(u,2)+Math.pow(f,2))+"px",x.perspective=x.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(u){var f,d=u.length,_=createTag("div");for(f=0;f<d;f+=1)if(u[f].xt){var x=this.createComp(u[f],_,this.globalData.comp,null);x.initExpressions(),this.globalData.projectInterface.registerComposition(x)}};function HCompElement(u,f,d){this.layers=u.layers,this.supports3d=!u.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(u,f,d),this.tm=u.tm?PropertyFactory.getProp(this,u.tm,0,f.frameRate,this):{_placeholder:!0}}extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(u,f){for(var d=0,_;d<f;)this.elements[d]&&this.elements[d].getBaseElement&&(_=this.elements[d].getBaseElement()),d+=1;_?this.layerElement.insertBefore(u,_):this.layerElement.appendChild(u)},HCompElement.prototype.createComp=function(u){return this.supports3d?new HCompElement(u,this.globalData,this):new SVGCompElement(u,this.globalData,this)};function HybridRenderer(u,f){this.animationItem=u,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:f&&f.className||"",imagePreserveAspectRatio:f&&f.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(f&&f.hideOnTransparent===!1),filterSize:{width:f&&f.filterSize&&f.filterSize.width||"400%",height:f&&f.filterSize&&f.filterSize.height||"400%",x:f&&f.filterSize&&f.filterSize.x||"-100%",y:f&&f.filterSize&&f.filterSize.y||"-100%"},runExpressions:!f||f.runExpressions===void 0||f.runExpressions},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(u){return this.supports3d?new HCompElement(u,this.globalData,this):new SVGCompElement(u,this.globalData,this)};var CompExpressionInterface=function(){return function(u){function f(d){for(var _=0,x=u.layers.length;_<x;){if(u.layers[_].nm===d||u.layers[_].ind===d)return u.elements[_].layerInterface;_+=1}return null}return Object.defineProperty(f,"_name",{value:u.data.nm}),f.layer=f,f.pixelAspect=1,f.height=u.data.h||u.globalData.compSize.h,f.width=u.data.w||u.globalData.compSize.w,f.pixelAspect=1,f.frameDuration=1/u.globalData.frameRate,f.displayStartTime=0,f.numLayers=u.layers.length,f}}();function _typeof$2(u){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$2=function(d){return typeof d}:_typeof$2=function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},_typeof$2(u)}function seedRandom(u,f){var d=this,_=256,x=6,I=52,E="random",M=f.pow(_,x),S=f.pow(2,I),A=S*2,T=_-1,D;function O(ie,oe,ge){var be=[];oe=oe===!0?{entropy:!0}:oe||{};var ze=Q(W(oe.entropy?[ie,Y(u)]:ie===null?X():ie,3),be),de=new j(be),Ce=function(){for(var le=de.g(x),re=M,P=0;le<S;)le=(le+P)*_,re*=_,P=de.g(1);for(;le>=A;)le/=2,re/=2,P>>>=1;return(le+P)/re};return Ce.int32=function(){return de.g(4)|0},Ce.quick=function(){return de.g(4)/4294967296},Ce.double=Ce,Q(Y(de.S),u),(oe.pass||ge||function(ke,le,re,P){return P&&(P.S&&$(P,de),ke.state=function(){return $(de,{})}),re?(f[E]=ke,le):ke})(Ce,ze,"global"in oe?oe.global:this==f,oe.state)}f["seed"+E]=O;function j(ie){var oe,ge=ie.length,be=this,ze=0,de=be.i=be.j=0,Ce=be.S=[];for(ge||(ie=[ge++]);ze<_;)Ce[ze]=ze++;for(ze=0;ze<_;ze++)Ce[ze]=Ce[de=T&de+ie[ze%ge]+(oe=Ce[ze])],Ce[de]=oe;be.g=function(ke){for(var le,re=0,P=be.i,k=be.j,B=be.S;ke--;)le=B[P=T&P+1],re=re*_+B[T&(B[P]=B[k=T&k+le])+(B[k]=le)];return be.i=P,be.j=k,re}}function $(ie,oe){return oe.i=ie.i,oe.j=ie.j,oe.S=ie.S.slice(),oe}function W(ie,oe){var ge=[],be=_typeof$2(ie),ze;if(oe&&be=="object")for(ze in ie)try{ge.push(W(ie[ze],oe-1))}catch{}return ge.length?ge:be=="string"?ie:ie+"\0"}function Q(ie,oe){for(var ge=ie+"",be,ze=0;ze<ge.length;)oe[T&ze]=T&(be^=oe[T&ze]*19)+ge.charCodeAt(ze++);return Y(oe)}function X(){try{var ie=new Uint8Array(_);return(d.crypto||d.msCrypto).getRandomValues(ie),Y(ie)}catch{var oe=d.navigator,ge=oe&&oe.plugins;return[+new Date,d,ge,d.screen,Y(u)]}}function Y(ie){return String.fromCharCode.apply(0,ie)}Q(f.random(),u)}function initialize$2(u){seedRandom([],u)}var propTypes={SHAPE:"shape"};function _typeof$1(u){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$1=function(d){return typeof d}:_typeof$1=function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},_typeof$1(u)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null,_lottieGlobal={};initialize$2(BMMath);function resetFrame(){_lottieGlobal={}}function $bm_isInstanceOfArray(u){return u.constructor===Array||u.constructor===Float32Array}function isNumerable(u,f){return u==="number"||f instanceof Number||u==="boolean"||u==="string"}function $bm_neg(u){var f=_typeof$1(u);if(f==="number"||u instanceof Number||f==="boolean")return-u;if($bm_isInstanceOfArray(u)){var d,_=u.length,x=[];for(d=0;d<_;d+=1)x[d]=-u[d];return x}return u.propType?u.v:-u}var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(u,f){var d=_typeof$1(u),_=_typeof$1(f);if(isNumerable(d,u)&&isNumerable(_,f)||d==="string"||_==="string")return u+f;if($bm_isInstanceOfArray(u)&&isNumerable(_,f))return u=u.slice(0),u[0]+=f,u;if(isNumerable(d,u)&&$bm_isInstanceOfArray(f))return f=f.slice(0),f[0]=u+f[0],f;if($bm_isInstanceOfArray(u)&&$bm_isInstanceOfArray(f)){for(var x=0,I=u.length,E=f.length,M=[];x<I||x<E;)(typeof u[x]=="number"||u[x]instanceof Number)&&(typeof f[x]=="number"||f[x]instanceof Number)?M[x]=u[x]+f[x]:M[x]=f[x]===void 0?u[x]:u[x]||f[x],x+=1;return M}return 0}var add=sum;function sub(u,f){var d=_typeof$1(u),_=_typeof$1(f);if(isNumerable(d,u)&&isNumerable(_,f))return d==="string"&&(u=parseInt(u,10)),_==="string"&&(f=parseInt(f,10)),u-f;if($bm_isInstanceOfArray(u)&&isNumerable(_,f))return u=u.slice(0),u[0]-=f,u;if(isNumerable(d,u)&&$bm_isInstanceOfArray(f))return f=f.slice(0),f[0]=u-f[0],f;if($bm_isInstanceOfArray(u)&&$bm_isInstanceOfArray(f)){for(var x=0,I=u.length,E=f.length,M=[];x<I||x<E;)(typeof u[x]=="number"||u[x]instanceof Number)&&(typeof f[x]=="number"||f[x]instanceof Number)?M[x]=u[x]-f[x]:M[x]=f[x]===void 0?u[x]:u[x]||f[x],x+=1;return M}return 0}function mul(u,f){var d=_typeof$1(u),_=_typeof$1(f),x;if(isNumerable(d,u)&&isNumerable(_,f))return u*f;var I,E;if($bm_isInstanceOfArray(u)&&isNumerable(_,f)){for(E=u.length,x=createTypedArray("float32",E),I=0;I<E;I+=1)x[I]=u[I]*f;return x}if(isNumerable(d,u)&&$bm_isInstanceOfArray(f)){for(E=f.length,x=createTypedArray("float32",E),I=0;I<E;I+=1)x[I]=u*f[I];return x}return 0}function div(u,f){var d=_typeof$1(u),_=_typeof$1(f),x;if(isNumerable(d,u)&&isNumerable(_,f))return u/f;var I,E;if($bm_isInstanceOfArray(u)&&isNumerable(_,f)){for(E=u.length,x=createTypedArray("float32",E),I=0;I<E;I+=1)x[I]=u[I]/f;return x}if(isNumerable(d,u)&&$bm_isInstanceOfArray(f)){for(E=f.length,x=createTypedArray("float32",E),I=0;I<E;I+=1)x[I]=u/f[I];return x}return 0}function mod(u,f){return typeof u=="string"&&(u=parseInt(u,10)),typeof f=="string"&&(f=parseInt(f,10)),u%f}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(u,f,d){if(f>d){var _=d;d=f,f=_}return Math.min(Math.max(u,f),d)}function radiansToDegrees(u){return u/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(u){return u*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(u,f){if(typeof u=="number"||u instanceof Number)return f=f||0,Math.abs(u-f);f||(f=helperLengthArray);var d,_=Math.min(u.length,f.length),x=0;for(d=0;d<_;d+=1)x+=Math.pow(f[d]-u[d],2);return Math.sqrt(x)}function normalize(u){return div(u,length(u))}function rgbToHsl(u){var f=u[0],d=u[1],_=u[2],x=Math.max(f,d,_),I=Math.min(f,d,_),E,M,S=(x+I)/2;if(x===I)E=0,M=0;else{var A=x-I;switch(M=S>.5?A/(2-x-I):A/(x+I),x){case f:E=(d-_)/A+(d<_?6:0);break;case d:E=(_-f)/A+2;break;case _:E=(f-d)/A+4;break}E/=6}return[E,M,S,u[3]]}function hue2rgb(u,f,d){return d<0&&(d+=1),d>1&&(d-=1),d<1/6?u+(f-u)*6*d:d<1/2?f:d<2/3?u+(f-u)*(2/3-d)*6:u}function hslToRgb(u){var f=u[0],d=u[1],_=u[2],x,I,E;if(d===0)x=_,E=_,I=_;else{var M=_<.5?_*(1+d):_+d-_*d,S=2*_-M;x=hue2rgb(S,M,f+1/3),I=hue2rgb(S,M,f),E=hue2rgb(S,M,f-1/3)}return[x,I,E,u[3]]}function linear(u,f,d,_,x){if((_===void 0||x===void 0)&&(_=f,x=d,f=0,d=1),d<f){var I=d;d=f,f=I}if(u<=f)return _;if(u>=d)return x;var E=d===f?0:(u-f)/(d-f);if(!_.length)return _+(x-_)*E;var M,S=_.length,A=createTypedArray("float32",S);for(M=0;M<S;M+=1)A[M]=_[M]+(x[M]-_[M])*E;return A}function random(u,f){if(f===void 0&&(u===void 0?(u=0,f=1):(f=u,u=void 0)),f.length){var d,_=f.length;u||(u=createTypedArray("float32",_));var x=createTypedArray("float32",_),I=BMMath.random();for(d=0;d<_;d+=1)x[d]=u[d]+I*(f[d]-u[d]);return x}u===void 0&&(u=0);var E=BMMath.random();return u+E*(f-u)}function createPath(u,f,d,_){var x,I=u.length,E=shapePool.newElement();E.setPathData(!!_,I);var M=[0,0],S,A;for(x=0;x<I;x+=1)S=f&&f[x]?f[x]:M,A=d&&d[x]?d[x]:M,E.setTripleAt(u[x][0],u[x][1],A[0]+u[x][0],A[1]+u[x][1],S[0]+u[x][0],S[1]+u[x][1],x,!0);return E}function initiateExpression(elem,data,property){function noOp(u){return u}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=val.indexOf("random")!==-1,elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||this.data.hd!==!0,wiggle=function u(f,d){var _,x,I=this.pv.length?this.pv.length:1,E=createTypedArray("float32",I);f=5;var M=Math.floor(time*f);for(_=0,x=0;_<M;){for(x=0;x<I;x+=1)E[x]+=-d+d*2*BMMath.random();_+=1}var S=time*f,A=S-Math.floor(S),T=createTypedArray("float32",I);if(I>1){for(x=0;x<I;x+=1)T[x]=this.pv[x]+E[x]+(-d+d*2*BMMath.random())*A;return T}return this.pv+E[0]+(-d+d*2*BMMath.random())*A}.bind(this);thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty));function loopInDuration(u,f){return loopIn(u,f,!0)}function loopOutDuration(u,f){return loopOut(u,f,!0)}this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface);function lookAt(u,f){var d=[f[0]-u[0],f[1]-u[1],f[2]-u[2]],_=Math.atan2(d[0],Math.sqrt(d[1]*d[1]+d[2]*d[2]))/degToRads,x=-Math.atan2(d[1],d[2])/degToRads;return[x,_,0]}function easeOut(u,f,d,_,x){return applyEase(easeOutBez,u,f,d,_,x)}function easeIn(u,f,d,_,x){return applyEase(easeInBez,u,f,d,_,x)}function ease(u,f,d,_,x){return applyEase(easeInOutBez,u,f,d,_,x)}function applyEase(u,f,d,_,x,I){x===void 0?(x=d,I=_):f=(f-d)/(_-d),f>1?f=1:f<0&&(f=0);var E=u(f);if($bm_isInstanceOfArray(x)){var M,S=x.length,A=createTypedArray("float32",S);for(M=0;M<S;M+=1)A[M]=(I[M]-x[M])*E+x[M];return A}return(I-x)*E+x}function nearestKey(u){var f,d=data.k.length,_,x;if(!data.k.length||typeof data.k[0]=="number")_=0,x=0;else if(_=-1,u*=elem.comp.globalData.frameRate,u<data.k[0].t)_=1,x=data.k[0].t;else{for(f=0;f<d-1;f+=1)if(u===data.k[f].t){_=f+1,x=data.k[f].t;break}else if(u>data.k[f].t&&u<data.k[f+1].t){u-data.k[f].t>data.k[f+1].t-u?(_=f+2,x=data.k[f+1].t):(_=f+1,x=data.k[f].t);break}_===-1&&(_=f+1,x=data.k[f].t)}var I={};return I.index=_,I.time=x/elem.comp.globalData.frameRate,I}function key(u){var f,d,_;if(!data.k.length||typeof data.k[0]=="number")throw new Error("The property has no keyframe at index "+u);u-=1,f={time:data.k[u].t/elem.comp.globalData.frameRate,value:[]};var x=Object.prototype.hasOwnProperty.call(data.k[u],"s")?data.k[u].s:data.k[u-1].e;for(_=x.length,d=0;d<_;d+=1)f[d]=x[d],f.value[d]=x[d];return f}function framesToTime(u,f){return f||(f=elem.comp.globalData.frameRate),u/f}function timeToFrames(u,f){return!u&&u!==0&&(u=time),f||(f=elem.comp.globalData.frameRate),u*f}function seedRandom(u){BMMath.seedrandom(randSeed+u)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(u,f){return typeof value=="string"?f===void 0?value.substring(u):value.substring(u,f):""}function substr(u,f){return typeof value=="string"?f===void 0?value.substr(u):value.substr(u,f):""}function posterizeTime(u){time=u===0?0:Math.floor(time*u)/u,value=valueAtTime(time)}var time,velocity,value,text,textIndex,textTotal,selectorValue,index=elem.data.ind,hasParent=!!(elem.hierarchy&&elem.hierarchy.length),parent,randSeed=Math.floor(Math.random()*1e6),globalData=elem.globalData;function executeExpression(u){return value=u,this.frameExpressionId===elem.globalData.frameId&&this.propType!=="textSelector"?value:(this.propType==="textSelector"&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),elemType===4&&!content&&(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),hasParent=!!(elem.hierarchy&&elem.hierarchy.length),hasParent&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt,scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath,_lottieGlobal],ob.resetFrame=resetFrame,ob}(),Expressions=function(){var u={};u.initExpressions=f,u.resetFrame=ExpressionManager.resetFrame;function f(d){var _=0,x=[];function I(){_+=1}function E(){_-=1,_===0&&S()}function M(A){x.indexOf(A)===-1&&x.push(A)}function S(){var A,T=x.length;for(A=0;A<T;A+=1)x[A].release();x.length=0}d.renderer.compInterface=CompExpressionInterface(d.renderer),d.renderer.globalData.projectInterface.registerComposition(d.renderer),d.renderer.globalData.pushExpression=I,d.renderer.globalData.popExpression=E,d.renderer.globalData.registerExpressionProperty=M}return u}(),MaskManagerInterface=function(){function u(d,_){this._mask=d,this._data=_}Object.defineProperty(u.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(u.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),this._mask.op.v*100}});var f=function(_){var x=createSizedArray(_.viewData.length),I,E=_.viewData.length;for(I=0;I<E;I+=1)x[I]=new u(_.viewData[I],_.masksProperties[I]);var M=function(A){for(I=0;I<E;){if(_.masksProperties[I].nm===A)return x[I];I+=1}return null};return M};return f}(),ExpressionPropertyInterface=function(){var u={pv:0,v:0,mult:1},f={pv:[0,0,0],v:[0,0,0],mult:1};function d(E,M,S){Object.defineProperty(E,"velocity",{get:function(){return M.getVelocityAtTime(M.comp.currentFrame)}}),E.numKeys=M.keyframes?M.keyframes.length:0,E.key=function(A){if(!E.numKeys)return 0;var T="";"s"in M.keyframes[A-1]?T=M.keyframes[A-1].s:"e"in M.keyframes[A-2]?T=M.keyframes[A-2].e:T=M.keyframes[A-2].s;var D=S==="unidimensional"?new Number(T):Object.assign({},T);return D.time=M.keyframes[A-1].t/M.elem.comp.globalData.frameRate,D.value=S==="unidimensional"?T[0]:T,D},E.valueAtTime=M.getValueAtTime,E.speedAtTime=M.getSpeedAtTime,E.velocityAtTime=M.getVelocityAtTime,E.propertyGroup=M.propertyGroup}function _(E){(!E||!("pv"in E))&&(E=u);var M=1/E.mult,S=E.pv*M,A=new Number(S);return A.value=S,d(A,E,"unidimensional"),function(){return E.k&&E.getValue(),S=E.v*M,A.value!==S&&(A=new Number(S),A.value=S,d(A,E,"unidimensional")),A}}function x(E){(!E||!("pv"in E))&&(E=f);var M=1/E.mult,S=E.data&&E.data.l||E.pv.length,A=createTypedArray("float32",S),T=createTypedArray("float32",S);return A.value=T,d(A,E,"multidimensional"),function(){E.k&&E.getValue();for(var D=0;D<S;D+=1)T[D]=E.v[D]*M,A[D]=T[D];return A}}function I(){return u}return function(E){return E?E.propType==="unidimensional"?_(E):x(E):I}}(),TransformExpressionInterface=function(){return function(u){function f(E){switch(E){case"scale":case"Scale":case"ADBE Scale":case 6:return f.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return f.rotation;case"ADBE Rotate X":return f.xRotation;case"ADBE Rotate Y":return f.yRotation;case"position":case"Position":case"ADBE Position":case 2:return f.position;case"ADBE Position_0":return f.xPosition;case"ADBE Position_1":return f.yPosition;case"ADBE Position_2":return f.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return f.anchorPoint;case"opacity":case"Opacity":case 11:return f.opacity;default:return null}}Object.defineProperty(f,"rotation",{get:ExpressionPropertyInterface(u.r||u.rz)}),Object.defineProperty(f,"zRotation",{get:ExpressionPropertyInterface(u.rz||u.r)}),Object.defineProperty(f,"xRotation",{get:ExpressionPropertyInterface(u.rx)}),Object.defineProperty(f,"yRotation",{get:ExpressionPropertyInterface(u.ry)}),Object.defineProperty(f,"scale",{get:ExpressionPropertyInterface(u.s)});var d,_,x,I;return u.p?I=ExpressionPropertyInterface(u.p):(d=ExpressionPropertyInterface(u.px),_=ExpressionPropertyInterface(u.py),u.pz&&(x=ExpressionPropertyInterface(u.pz))),Object.defineProperty(f,"position",{get:function(){return u.p?I():[d(),_(),x?x():0]}}),Object.defineProperty(f,"xPosition",{get:ExpressionPropertyInterface(u.px)}),Object.defineProperty(f,"yPosition",{get:ExpressionPropertyInterface(u.py)}),Object.defineProperty(f,"zPosition",{get:ExpressionPropertyInterface(u.pz)}),Object.defineProperty(f,"anchorPoint",{get:ExpressionPropertyInterface(u.a)}),Object.defineProperty(f,"opacity",{get:ExpressionPropertyInterface(u.o)}),Object.defineProperty(f,"skew",{get:ExpressionPropertyInterface(u.sk)}),Object.defineProperty(f,"skewAxis",{get:ExpressionPropertyInterface(u.sa)}),Object.defineProperty(f,"orientation",{get:ExpressionPropertyInterface(u.or)}),f}}(),LayerExpressionInterface=function(){function u(A){var T=new Matrix;if(A!==void 0){var D=this._elem.finalTransform.mProp.getValueAtTime(A);D.clone(T)}else{var O=this._elem.finalTransform.mProp;O.applyToMatrix(T)}return T}function f(A,T){var D=this.getMatrix(T);return D.props[12]=0,D.props[13]=0,D.props[14]=0,this.applyPoint(D,A)}function d(A,T){var D=this.getMatrix(T);return this.applyPoint(D,A)}function _(A,T){var D=this.getMatrix(T);return D.props[12]=0,D.props[13]=0,D.props[14]=0,this.invertPoint(D,A)}function x(A,T){var D=this.getMatrix(T);return this.invertPoint(D,A)}function I(A,T){if(this._elem.hierarchy&&this._elem.hierarchy.length){var D,O=this._elem.hierarchy.length;for(D=0;D<O;D+=1)this._elem.hierarchy[D].finalTransform.mProp.applyToMatrix(A)}return A.applyToPointArray(T[0],T[1],T[2]||0)}function E(A,T){if(this._elem.hierarchy&&this._elem.hierarchy.length){var D,O=this._elem.hierarchy.length;for(D=0;D<O;D+=1)this._elem.hierarchy[D].finalTransform.mProp.applyToMatrix(A)}return A.inversePoint(T)}function M(A){var T=new Matrix;if(T.reset(),this._elem.finalTransform.mProp.applyToMatrix(T),this._elem.hierarchy&&this._elem.hierarchy.length){var D,O=this._elem.hierarchy.length;for(D=0;D<O;D+=1)this._elem.hierarchy[D].finalTransform.mProp.applyToMatrix(T);return T.inversePoint(A)}return T.inversePoint(A)}function S(){return[1,1,1,1]}return function(A){var T;function D(W){j.mask=new MaskManagerInterface(W,A)}function O(W){j.effect=W}function j(W){switch(W){case"ADBE Root Vectors Group":case"Contents":case 2:return j.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return T;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return j.effect;case"ADBE Text Properties":return j.textInterface;default:return null}}j.getMatrix=u,j.invertPoint=E,j.applyPoint=I,j.toWorld=d,j.toWorldVec=f,j.fromWorld=x,j.fromWorldVec=_,j.toComp=d,j.fromComp=M,j.sampleImage=S,j.sourceRectAtTime=A.sourceRectAtTime.bind(A),j._elem=A,T=TransformExpressionInterface(A.finalTransform.mProp);var $=getDescriptor(T,"anchorPoint");return Object.defineProperties(j,{hasParent:{get:function(){return A.hierarchy.length}},parent:{get:function(){return A.hierarchy[0].layerInterface}},rotation:getDescriptor(T,"rotation"),scale:getDescriptor(T,"scale"),position:getDescriptor(T,"position"),opacity:getDescriptor(T,"opacity"),anchorPoint:$,anchor_point:$,transform:{get:function(){return T}},active:{get:function(){return A.isInRange}}}),j.startTime=A.data.st,j.index=A.data.ind,j.source=A.data.refId,j.height=A.data.ty===0?A.data.h:100,j.width=A.data.ty===0?A.data.w:100,j.inPoint=A.data.ip/A.comp.globalData.frameRate,j.outPoint=A.data.op/A.comp.globalData.frameRate,j._name=A.data.nm,j.registerMaskInterface=D,j.registerEffectsInterface=O,j}}(),propertyGroupFactory=function(){return function(u,f){return function(d){return d=d===void 0?1:d,d<=0?u:f(d-1)}}}(),PropertyInterface=function(){return function(u,f){var d={_name:u};function _(x){return x=x===void 0?1:x,x<=0?d:f(x-1)}return _}}(),EffectsExpressionInterface=function(){var u={createEffectsInterface:f};function f(x,I){if(x.effectsManager){var E=[],M=x.data.ef,S,A=x.effectsManager.effectElements.length;for(S=0;S<A;S+=1)E.push(d(M[S],x.effectsManager.effectElements[S],I,x));var T=x.data.ef||[],D=function(j){for(S=0,A=T.length;S<A;){if(j===T[S].nm||j===T[S].mn||j===T[S].ix)return E[S];S+=1}return null};return Object.defineProperty(D,"numProperties",{get:function(){return T.length}}),D}return null}function d(x,I,E,M){function S(j){for(var $=x.ef,W=0,Q=$.length;W<Q;){if(j===$[W].nm||j===$[W].mn||j===$[W].ix)return $[W].ty===5?T[W]:T[W]();W+=1}throw new Error}var A=propertyGroupFactory(S,E),T=[],D,O=x.ef.length;for(D=0;D<O;D+=1)x.ef[D].ty===5?T.push(d(x.ef[D],I.effectElements[D],I.effectElements[D].propertyGroup,M)):T.push(_(I.effectElements[D],x.ef[D].ty,M,A));return x.mn==="ADBE Color Control"&&Object.defineProperty(S,"color",{get:function(){return T[0]()}}),Object.defineProperties(S,{numProperties:{get:function(){return x.np}},_name:{value:x.nm},propertyGroup:{value:A}}),S.enabled=x.en!==0,S.active=S.enabled,S}function _(x,I,E,M){var S=ExpressionPropertyInterface(x.p);function A(){return I===10?E.comp.compInterface(x.p.v):S()}return x.p.setGroupProperty&&x.p.setGroupProperty(PropertyInterface("",M)),A}return u}(),ShapePathInterface=function(){return function(f,d,_){var x=d.sh;function I(M){return M==="Shape"||M==="shape"||M==="Path"||M==="path"||M==="ADBE Vector Shape"||M===2?I.path:null}var E=propertyGroupFactory(I,_);return x.setGroupProperty(PropertyInterface("Path",E)),Object.defineProperties(I,{path:{get:function(){return x.k&&x.getValue(),x}},shape:{get:function(){return x.k&&x.getValue(),x}},_name:{value:f.nm},ix:{value:f.ix},propertyIndex:{value:f.ix},mn:{value:f.mn},propertyGroup:{value:_}}),I}}(),ShapeExpressionInterface=function(){function u($,W,Q){var X=[],Y,ie=$?$.length:0;for(Y=0;Y<ie;Y+=1)$[Y].ty==="gr"?X.push(d($[Y],W[Y],Q)):$[Y].ty==="fl"?X.push(_($[Y],W[Y],Q)):$[Y].ty==="st"?X.push(E($[Y],W[Y],Q)):$[Y].ty==="tm"?X.push(M($[Y],W[Y],Q)):$[Y].ty==="tr"||($[Y].ty==="el"?X.push(A($[Y],W[Y],Q)):$[Y].ty==="sr"?X.push(T($[Y],W[Y],Q)):$[Y].ty==="sh"?X.push(ShapePathInterface($[Y],W[Y],Q)):$[Y].ty==="rc"?X.push(D($[Y],W[Y],Q)):$[Y].ty==="rd"?X.push(O($[Y],W[Y],Q)):$[Y].ty==="rp"?X.push(j($[Y],W[Y],Q)):$[Y].ty==="gf"?X.push(x($[Y],W[Y],Q)):X.push(I($[Y],W[Y])));return X}function f($,W,Q){var X,Y=function(ge){for(var be=0,ze=X.length;be<ze;){if(X[be]._name===ge||X[be].mn===ge||X[be].propertyIndex===ge||X[be].ix===ge||X[be].ind===ge)return X[be];be+=1}return typeof ge=="number"?X[ge-1]:null};Y.propertyGroup=propertyGroupFactory(Y,Q),X=u($.it,W.it,Y.propertyGroup),Y.numProperties=X.length;var ie=S($.it[$.it.length-1],W.it[W.it.length-1],Y.propertyGroup);return Y.transform=ie,Y.propertyIndex=$.cix,Y._name=$.nm,Y}function d($,W,Q){var X=function(ge){switch(ge){case"ADBE Vectors Group":case"Contents":case 2:return X.content;default:return X.transform}};X.propertyGroup=propertyGroupFactory(X,Q);var Y=f($,W,X.propertyGroup),ie=S($.it[$.it.length-1],W.it[W.it.length-1],X.propertyGroup);return X.content=Y,X.transform=ie,Object.defineProperty(X,"_name",{get:function(){return $.nm}}),X.numProperties=$.np,X.propertyIndex=$.ix,X.nm=$.nm,X.mn=$.mn,X}function _($,W,Q){function X(Y){return Y==="Color"||Y==="color"?X.color:Y==="Opacity"||Y==="opacity"?X.opacity:null}return Object.defineProperties(X,{color:{get:ExpressionPropertyInterface(W.c)},opacity:{get:ExpressionPropertyInterface(W.o)},_name:{value:$.nm},mn:{value:$.mn}}),W.c.setGroupProperty(PropertyInterface("Color",Q)),W.o.setGroupProperty(PropertyInterface("Opacity",Q)),X}function x($,W,Q){function X(Y){return Y==="Start Point"||Y==="start point"?X.startPoint:Y==="End Point"||Y==="end point"?X.endPoint:Y==="Opacity"||Y==="opacity"?X.opacity:null}return Object.defineProperties(X,{startPoint:{get:ExpressionPropertyInterface(W.s)},endPoint:{get:ExpressionPropertyInterface(W.e)},opacity:{get:ExpressionPropertyInterface(W.o)},type:{get:function(){return"a"}},_name:{value:$.nm},mn:{value:$.mn}}),W.s.setGroupProperty(PropertyInterface("Start Point",Q)),W.e.setGroupProperty(PropertyInterface("End Point",Q)),W.o.setGroupProperty(PropertyInterface("Opacity",Q)),X}function I(){function $(){return null}return $}function E($,W,Q){var X=propertyGroupFactory(ze,Q),Y=propertyGroupFactory(be,X);function ie(de){Object.defineProperty(be,$.d[de].nm,{get:ExpressionPropertyInterface(W.d.dataProps[de].p)})}var oe,ge=$.d?$.d.length:0,be={};for(oe=0;oe<ge;oe+=1)ie(oe),W.d.dataProps[oe].p.setGroupProperty(Y);function ze(de){return de==="Color"||de==="color"?ze.color:de==="Opacity"||de==="opacity"?ze.opacity:de==="Stroke Width"||de==="stroke width"?ze.strokeWidth:null}return Object.defineProperties(ze,{color:{get:ExpressionPropertyInterface(W.c)},opacity:{get:ExpressionPropertyInterface(W.o)},strokeWidth:{get:ExpressionPropertyInterface(W.w)},dash:{get:function(){return be}},_name:{value:$.nm},mn:{value:$.mn}}),W.c.setGroupProperty(PropertyInterface("Color",X)),W.o.setGroupProperty(PropertyInterface("Opacity",X)),W.w.setGroupProperty(PropertyInterface("Stroke Width",X)),ze}function M($,W,Q){function X(ie){return ie===$.e.ix||ie==="End"||ie==="end"?X.end:ie===$.s.ix?X.start:ie===$.o.ix?X.offset:null}var Y=propertyGroupFactory(X,Q);return X.propertyIndex=$.ix,W.s.setGroupProperty(PropertyInterface("Start",Y)),W.e.setGroupProperty(PropertyInterface("End",Y)),W.o.setGroupProperty(PropertyInterface("Offset",Y)),X.propertyIndex=$.ix,X.propertyGroup=Q,Object.defineProperties(X,{start:{get:ExpressionPropertyInterface(W.s)},end:{get:ExpressionPropertyInterface(W.e)},offset:{get:ExpressionPropertyInterface(W.o)},_name:{value:$.nm}}),X.mn=$.mn,X}function S($,W,Q){function X(ie){return $.a.ix===ie||ie==="Anchor Point"?X.anchorPoint:$.o.ix===ie||ie==="Opacity"?X.opacity:$.p.ix===ie||ie==="Position"?X.position:$.r.ix===ie||ie==="Rotation"||ie==="ADBE Vector Rotation"?X.rotation:$.s.ix===ie||ie==="Scale"?X.scale:$.sk&&$.sk.ix===ie||ie==="Skew"?X.skew:$.sa&&$.sa.ix===ie||ie==="Skew Axis"?X.skewAxis:null}var Y=propertyGroupFactory(X,Q);return W.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",Y)),W.transform.mProps.p.setGroupProperty(PropertyInterface("Position",Y)),W.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",Y)),W.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",Y)),W.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",Y)),W.transform.mProps.sk&&(W.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",Y)),W.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",Y))),W.transform.op.setGroupProperty(PropertyInterface("Opacity",Y)),Object.defineProperties(X,{opacity:{get:ExpressionPropertyInterface(W.transform.mProps.o)},position:{get:ExpressionPropertyInterface(W.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(W.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(W.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(W.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(W.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(W.transform.mProps.sa)},_name:{value:$.nm}}),X.ty="tr",X.mn=$.mn,X.propertyGroup=Q,X}function A($,W,Q){function X(oe){return $.p.ix===oe?X.position:$.s.ix===oe?X.size:null}var Y=propertyGroupFactory(X,Q);X.propertyIndex=$.ix;var ie=W.sh.ty==="tm"?W.sh.prop:W.sh;return ie.s.setGroupProperty(PropertyInterface("Size",Y)),ie.p.setGroupProperty(PropertyInterface("Position",Y)),Object.defineProperties(X,{size:{get:ExpressionPropertyInterface(ie.s)},position:{get:ExpressionPropertyInterface(ie.p)},_name:{value:$.nm}}),X.mn=$.mn,X}function T($,W,Q){function X(oe){return $.p.ix===oe?X.position:$.r.ix===oe?X.rotation:$.pt.ix===oe?X.points:$.or.ix===oe||oe==="ADBE Vector Star Outer Radius"?X.outerRadius:$.os.ix===oe?X.outerRoundness:$.ir&&($.ir.ix===oe||oe==="ADBE Vector Star Inner Radius")?X.innerRadius:$.is&&$.is.ix===oe?X.innerRoundness:null}var Y=propertyGroupFactory(X,Q),ie=W.sh.ty==="tm"?W.sh.prop:W.sh;return X.propertyIndex=$.ix,ie.or.setGroupProperty(PropertyInterface("Outer Radius",Y)),ie.os.setGroupProperty(PropertyInterface("Outer Roundness",Y)),ie.pt.setGroupProperty(PropertyInterface("Points",Y)),ie.p.setGroupProperty(PropertyInterface("Position",Y)),ie.r.setGroupProperty(PropertyInterface("Rotation",Y)),$.ir&&(ie.ir.setGroupProperty(PropertyInterface("Inner Radius",Y)),ie.is.setGroupProperty(PropertyInterface("Inner Roundness",Y))),Object.defineProperties(X,{position:{get:ExpressionPropertyInterface(ie.p)},rotation:{get:ExpressionPropertyInterface(ie.r)},points:{get:ExpressionPropertyInterface(ie.pt)},outerRadius:{get:ExpressionPropertyInterface(ie.or)},outerRoundness:{get:ExpressionPropertyInterface(ie.os)},innerRadius:{get:ExpressionPropertyInterface(ie.ir)},innerRoundness:{get:ExpressionPropertyInterface(ie.is)},_name:{value:$.nm}}),X.mn=$.mn,X}function D($,W,Q){function X(oe){return $.p.ix===oe?X.position:$.r.ix===oe?X.roundness:$.s.ix===oe||oe==="Size"||oe==="ADBE Vector Rect Size"?X.size:null}var Y=propertyGroupFactory(X,Q),ie=W.sh.ty==="tm"?W.sh.prop:W.sh;return X.propertyIndex=$.ix,ie.p.setGroupProperty(PropertyInterface("Position",Y)),ie.s.setGroupProperty(PropertyInterface("Size",Y)),ie.r.setGroupProperty(PropertyInterface("Rotation",Y)),Object.defineProperties(X,{position:{get:ExpressionPropertyInterface(ie.p)},roundness:{get:ExpressionPropertyInterface(ie.r)},size:{get:ExpressionPropertyInterface(ie.s)},_name:{value:$.nm}}),X.mn=$.mn,X}function O($,W,Q){function X(oe){return $.r.ix===oe||oe==="Round Corners 1"?X.radius:null}var Y=propertyGroupFactory(X,Q),ie=W;return X.propertyIndex=$.ix,ie.rd.setGroupProperty(PropertyInterface("Radius",Y)),Object.defineProperties(X,{radius:{get:ExpressionPropertyInterface(ie.rd)},_name:{value:$.nm}}),X.mn=$.mn,X}function j($,W,Q){function X(oe){return $.c.ix===oe||oe==="Copies"?X.copies:$.o.ix===oe||oe==="Offset"?X.offset:null}var Y=propertyGroupFactory(X,Q),ie=W;return X.propertyIndex=$.ix,ie.c.setGroupProperty(PropertyInterface("Copies",Y)),ie.o.setGroupProperty(PropertyInterface("Offset",Y)),Object.defineProperties(X,{copies:{get:ExpressionPropertyInterface(ie.c)},offset:{get:ExpressionPropertyInterface(ie.o)},_name:{value:$.nm}}),X.mn=$.mn,X}return function($,W,Q){var X;function Y(oe){if(typeof oe=="number")return oe=oe===void 0?1:oe,oe===0?Q:X[oe-1];for(var ge=0,be=X.length;ge<be;){if(X[ge]._name===oe)return X[ge];ge+=1}return null}function ie(){return Q}return Y.propertyGroup=propertyGroupFactory(Y,ie),X=u($,W,Y.propertyGroup),Y.numProperties=X.length,Y._name="Contents",Y}}(),TextExpressionInterface=function(){return function(u){var f;function d(_){switch(_){case"ADBE Text Document":return d.sourceText;default:return null}}return Object.defineProperty(d,"sourceText",{get:function(){u.textProperty.getValue();var x=u.textProperty.currentData.t;return(!f||x!==f.value)&&(f=new String(x),f.value=x||new String(x),Object.defineProperty(f,"style",{get:function(){return{fillColor:u.textProperty.currentData.fc}}})),f}}),d}}();function _typeof(u){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(d){return typeof d}:_typeof=function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},_typeof(u)}var FootageInterface=function(){var u=function(_){var x="",I=_.getFootageData();function E(){return x="",I=_.getFootageData(),M}function M(S){if(I[S])return x=S,I=I[S],_typeof(I)==="object"?M:I;var A=S.indexOf(x);if(A!==-1){var T=parseInt(S.substr(A+x.length),10);return I=I[T],_typeof(I)==="object"?M:I}return""}return E},f=function(_){function x(I){return I==="Outline"?x.outlineInterface():null}return x._name="Outline",x.outlineInterface=u(_),x};return function(d){function _(x){return x==="Data"?_.dataInterface:null}return _._name="Data",_.dataInterface=f(d),_}}(),interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(u){return interfaces[u]||null}var expressionHelpers=function(){function u(E,M,S){M.x&&(S.k=!0,S.x=!0,S.initiateExpression=ExpressionManager.initiateExpression,S.effectsSequence.push(S.initiateExpression(E,M,S).bind(S)))}function f(E){return E*=this.elem.globalData.frameRate,E-=this.offsetTime,E!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<E?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(E,this._cachingAtTime),this._cachingAtTime.lastFrame=E),this._cachingAtTime.value}function d(E){var M=-.01,S=this.getValueAtTime(E),A=this.getValueAtTime(E+M),T=0;if(S.length){var D;for(D=0;D<S.length;D+=1)T+=Math.pow(A[D]-S[D],2);T=Math.sqrt(T)*100}else T=0;return T}function _(E){if(this.vel!==void 0)return this.vel;var M=-.001,S=this.getValueAtTime(E),A=this.getValueAtTime(E+M),T;if(S.length){T=createTypedArray("float32",S.length);var D;for(D=0;D<S.length;D+=1)T[D]=(A[D]-S[D])/M}else T=(A-S)/M;return T}function x(){return this.pv}function I(E){this.propertyGroup=E}return{searchExpressions:u,getSpeedAtTime:d,getVelocityAtTime:_,getValueAtTime:f,getStaticValueAtTime:x,setGroupProperty:I}}();function addPropertyDecorator(){function u(O,j,$){if(!this.k||!this.keyframes)return this.pv;O=O?O.toLowerCase():"";var W=this.comp.renderedFrame,Q=this.keyframes,X=Q[Q.length-1].t;if(W<=X)return this.pv;var Y,ie;$?(j?Y=Math.abs(X-this.elem.comp.globalData.frameRate*j):Y=Math.max(0,X-this.elem.data.ip),ie=X-Y):((!j||j>Q.length-1)&&(j=Q.length-1),ie=Q[Q.length-1-j].t,Y=X-ie);var oe,ge,be;if(O==="pingpong"){var ze=Math.floor((W-ie)/Y);if(ze%2!==0)return this.getValueAtTime((Y-(W-ie)%Y+ie)/this.comp.globalData.frameRate,0)}else if(O==="offset"){var de=this.getValueAtTime(ie/this.comp.globalData.frameRate,0),Ce=this.getValueAtTime(X/this.comp.globalData.frameRate,0),ke=this.getValueAtTime(((W-ie)%Y+ie)/this.comp.globalData.frameRate,0),le=Math.floor((W-ie)/Y);if(this.pv.length){for(be=new Array(de.length),ge=be.length,oe=0;oe<ge;oe+=1)be[oe]=(Ce[oe]-de[oe])*le+ke[oe];return be}return(Ce-de)*le+ke}else if(O==="continue"){var re=this.getValueAtTime(X/this.comp.globalData.frameRate,0),P=this.getValueAtTime((X-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(be=new Array(re.length),ge=be.length,oe=0;oe<ge;oe+=1)be[oe]=re[oe]+(re[oe]-P[oe])*((W-X)/this.comp.globalData.frameRate)/5e-4;return be}return re+(re-P)*((W-X)/.001)}return this.getValueAtTime(((W-ie)%Y+ie)/this.comp.globalData.frameRate,0)}function f(O,j,$){if(!this.k)return this.pv;O=O?O.toLowerCase():"";var W=this.comp.renderedFrame,Q=this.keyframes,X=Q[0].t;if(W>=X)return this.pv;var Y,ie;$?(j?Y=Math.abs(this.elem.comp.globalData.frameRate*j):Y=Math.max(0,this.elem.data.op-X),ie=X+Y):((!j||j>Q.length-1)&&(j=Q.length-1),ie=Q[j].t,Y=ie-X);var oe,ge,be;if(O==="pingpong"){var ze=Math.floor((X-W)/Y);if(ze%2===0)return this.getValueAtTime(((X-W)%Y+X)/this.comp.globalData.frameRate,0)}else if(O==="offset"){var de=this.getValueAtTime(X/this.comp.globalData.frameRate,0),Ce=this.getValueAtTime(ie/this.comp.globalData.frameRate,0),ke=this.getValueAtTime((Y-(X-W)%Y+X)/this.comp.globalData.frameRate,0),le=Math.floor((X-W)/Y)+1;if(this.pv.length){for(be=new Array(de.length),ge=be.length,oe=0;oe<ge;oe+=1)be[oe]=ke[oe]-(Ce[oe]-de[oe])*le;return be}return ke-(Ce-de)*le}else if(O==="continue"){var re=this.getValueAtTime(X/this.comp.globalData.frameRate,0),P=this.getValueAtTime((X+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(be=new Array(re.length),ge=be.length,oe=0;oe<ge;oe+=1)be[oe]=re[oe]+(re[oe]-P[oe])*(X-W)/.001;return be}return re+(re-P)*(X-W)/.001}return this.getValueAtTime((Y-((X-W)%Y+X))/this.comp.globalData.frameRate,0)}function d(O,j){if(!this.k)return this.pv;if(O=(O||.4)*.5,j=Math.floor(j||5),j<=1)return this.pv;var $=this.comp.renderedFrame/this.comp.globalData.frameRate,W=$-O,Q=$+O,X=j>1?(Q-W)/(j-1):1,Y=0,ie=0,oe;this.pv.length?oe=createTypedArray("float32",this.pv.length):oe=0;for(var ge;Y<j;){if(ge=this.getValueAtTime(W+Y*X),this.pv.length)for(ie=0;ie<this.pv.length;ie+=1)oe[ie]+=ge[ie];else oe+=ge;Y+=1}if(this.pv.length)for(ie=0;ie<this.pv.length;ie+=1)oe[ie]/=j;else oe/=j;return oe}function _(O){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var j=this._transformCachingAtTime.v;if(j.cloneFromProps(this.pre.props),this.appliedTransformations<1){var $=this.a.getValueAtTime(O);j.translate(-$[0]*this.a.mult,-$[1]*this.a.mult,$[2]*this.a.mult)}if(this.appliedTransformations<2){var W=this.s.getValueAtTime(O);j.scale(W[0]*this.s.mult,W[1]*this.s.mult,W[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var Q=this.sk.getValueAtTime(O),X=this.sa.getValueAtTime(O);j.skewFromAxis(-Q*this.sk.mult,X*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var Y=this.r.getValueAtTime(O);j.rotate(-Y*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var ie=this.rz.getValueAtTime(O),oe=this.ry.getValueAtTime(O),ge=this.rx.getValueAtTime(O),be=this.or.getValueAtTime(O);j.rotateZ(-ie*this.rz.mult).rotateY(oe*this.ry.mult).rotateX(ge*this.rx.mult).rotateZ(-be[2]*this.or.mult).rotateY(be[1]*this.or.mult).rotateX(be[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var ze=this.px.getValueAtTime(O),de=this.py.getValueAtTime(O);if(this.data.p.z){var Ce=this.pz.getValueAtTime(O);j.translate(ze*this.px.mult,de*this.py.mult,-Ce*this.pz.mult)}else j.translate(ze*this.px.mult,de*this.py.mult,0)}else{var ke=this.p.getValueAtTime(O);j.translate(ke[0]*this.p.mult,ke[1]*this.p.mult,-ke[2]*this.p.mult)}return j}function x(){return this.v.clone(new Matrix)}var I=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(O,j,$){var W=I(O,j,$);return W.dynamicProperties.length?W.getValueAtTime=_.bind(W):W.getValueAtTime=x.bind(W),W.setGroupProperty=expressionHelpers.setGroupProperty,W};var E=PropertyFactory.getProp;PropertyFactory.getProp=function(O,j,$,W,Q){var X=E(O,j,$,W,Q);X.kf?X.getValueAtTime=expressionHelpers.getValueAtTime.bind(X):X.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(X),X.setGroupProperty=expressionHelpers.setGroupProperty,X.loopOut=u,X.loopIn=f,X.smooth=d,X.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(X),X.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(X),X.numKeys=j.a===1?j.k.length:0,X.propertyIndex=j.ix;var Y=0;return $!==0&&(Y=createTypedArray("float32",j.a===1?j.k[0].s.length:j.k.length)),X._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:Y},expressionHelpers.searchExpressions(O,j,X),X.k&&Q.addDynamicProperty(X),X};function M(O){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),O*=this.elem.globalData.frameRate,O-=this.offsetTime,O!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<O?this._caching.lastIndex:0,this._cachingAtTime.lastTime=O,this.interpolateShape(O,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue}var S=ShapePropertyFactory.getConstructorFunction(),A=ShapePropertyFactory.getKeyframedConstructorFunction();function T(){}T.prototype={vertices:function(j,$){this.k&&this.getValue();var W=this.v;$!==void 0&&(W=this.getValueAtTime($,0));var Q,X=W._length,Y=W[j],ie=W.v,oe=createSizedArray(X);for(Q=0;Q<X;Q+=1)j==="i"||j==="o"?oe[Q]=[Y[Q][0]-ie[Q][0],Y[Q][1]-ie[Q][1]]:oe[Q]=[Y[Q][0],Y[Q][1]];return oe},points:function(j){return this.vertices("v",j)},inTangents:function(j){return this.vertices("i",j)},outTangents:function(j){return this.vertices("o",j)},isClosed:function(){return this.v.c},pointOnPath:function(j,$){var W=this.v;$!==void 0&&(W=this.getValueAtTime($,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(W));for(var Q=this._segmentsLength,X=Q.lengths,Y=Q.totalLength*j,ie=0,oe=X.length,ge=0,be;ie<oe;){if(ge+X[ie].addedLength>Y){var ze=ie,de=W.c&&ie===oe-1?0:ie+1,Ce=(Y-ge)/X[ie].addedLength;be=bez.getPointInSegment(W.v[ze],W.v[de],W.o[ze],W.i[de],Ce,X[ie]);break}else ge+=X[ie].addedLength;ie+=1}return be||(be=W.c?[W.v[0][0],W.v[0][1]]:[W.v[W._length-1][0],W.v[W._length-1][1]]),be},vectorOnPath:function(j,$,W){j==1?j=this.v.c:j==0&&(j=.999);var Q=this.pointOnPath(j,$),X=this.pointOnPath(j+.001,$),Y=X[0]-Q[0],ie=X[1]-Q[1],oe=Math.sqrt(Math.pow(Y,2)+Math.pow(ie,2));if(oe===0)return[0,0];var ge=W==="tangent"?[Y/oe,ie/oe]:[-ie/oe,Y/oe];return ge},tangentOnPath:function(j,$){return this.vectorOnPath(j,$,"tangent")},normalOnPath:function(j,$){return this.vectorOnPath(j,$,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([T],S),extendPrototype([T],A),A.prototype.getValueAtTime=M,A.prototype.initiateExpression=ExpressionManager.initiateExpression;var D=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(O,j,$,W,Q){var X=D(O,j,$,W,Q);return X.propertyIndex=j.ix,X.lock=!1,$===3?expressionHelpers.searchExpressions(O,j.pt,X):$===4&&expressionHelpers.searchExpressions(O,j.ks,X),X.k&&O.addDynamicProperty(X),X}}function initialize$1(){addPropertyDecorator()}function addDecorator(){function u(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}TextProperty.prototype.getExpressionValue=function(f,d){var _=this.calculateExpression(d);if(f.t!==_){var x={};return this.copyData(x,f),x.t=_.toString(),x.__complete=!1,x}return f},TextProperty.prototype.searchProperty=function(){var f=this.searchKeyframes(),d=this.searchExpressions();return this.kf=f||d,this.kf},TextProperty.prototype.searchExpressions=u}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function u(f,d){var _=createNS("feMerge");_.setAttribute("result",f);var x,I;for(I=0;I<d.length;I+=1)x=createNS("feMergeNode"),x.setAttribute("in",d[I]),_.appendChild(x),_.appendChild(x);return _}};var linearFilterValue="0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0";function SVGTintFilter(u,f,d,_,x){this.filterManager=f;var I=createNS("feColorMatrix");I.setAttribute("type","matrix"),I.setAttribute("color-interpolation-filters","linearRGB"),I.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=I,I.setAttribute("result",_+"_tint_1"),u.appendChild(I),I=createNS("feColorMatrix"),I.setAttribute("type","matrix"),I.setAttribute("color-interpolation-filters","sRGB"),I.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),I.setAttribute("result",_+"_tint_2"),u.appendChild(I),this.matrixFilter=I;var E=this.createMergeNode(_,[x,_+"_tint_1",_+"_tint_2"]);u.appendChild(E)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(u){if(u||this.filterManager._mdf){var f=this.filterManager.effectElements[0].p.v,d=this.filterManager.effectElements[1].p.v,_=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+_+" 0"),this.matrixFilter.setAttribute("values",d[0]-f[0]+" 0 0 0 "+f[0]+" "+(d[1]-f[1])+" 0 0 0 "+f[1]+" "+(d[2]-f[2])+" 0 0 0 "+f[2]+" 0 0 0 1 0")}};function SVGFillFilter(u,f,d,_){this.filterManager=f;var x=createNS("feColorMatrix");x.setAttribute("type","matrix"),x.setAttribute("color-interpolation-filters","sRGB"),x.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),x.setAttribute("result",_),u.appendChild(x),this.matrixFilter=x}SVGFillFilter.prototype.renderFrame=function(u){if(u||this.filterManager._mdf){var f=this.filterManager.effectElements[2].p.v,d=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+f[0]+" 0 0 0 0 "+f[1]+" 0 0 0 0 "+f[2]+" 0 0 0 "+d+" 0")}};function SVGStrokeEffect(u,f,d){this.initialized=!1,this.filterManager=f,this.elem=d,this.paths=[]}SVGStrokeEffect.prototype.initialize=function(){var u=this.elem.layerElement.children||this.elem.layerElement.childNodes,f,d,_,x;for(this.filterManager.effectElements[1].p.v===1?(x=this.elem.maskManager.masksProperties.length,_=0):(_=this.filterManager.effectElements[0].p.v-1,x=_+1),d=createNS("g"),d.setAttribute("fill","none"),d.setAttribute("stroke-linecap","round"),d.setAttribute("stroke-dashoffset",1),_;_<x;_+=1)f=createNS("path"),d.appendChild(f),this.paths.push({p:f,m:_});if(this.filterManager.effectElements[10].p.v===3){var I=createNS("mask"),E=createElementID();I.setAttribute("id",E),I.setAttribute("mask-type","alpha"),I.appendChild(d),this.elem.globalData.defs.appendChild(I);var M=createNS("g");for(M.setAttribute("mask","url("+getLocationHref()+"#"+E+")");u[0];)M.appendChild(u[0]);this.elem.layerElement.appendChild(M),this.masker=I,d.setAttribute("stroke","#fff")}else if(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2){if(this.filterManager.effectElements[10].p.v===2)for(u=this.elem.layerElement.children||this.elem.layerElement.childNodes;u.length;)this.elem.layerElement.removeChild(u[0]);this.elem.layerElement.appendChild(d),this.elem.layerElement.removeAttribute("mask"),d.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=d},SVGStrokeEffect.prototype.renderFrame=function(u){this.initialized||this.initialize();var f,d=this.paths.length,_,x;for(f=0;f<d;f+=1)if(this.paths[f].m!==-1&&(_=this.elem.maskManager.viewData[this.paths[f].m],x=this.paths[f].p,(u||this.filterManager._mdf||_.prop._mdf)&&x.setAttribute("d",_.lastPath),u||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||_.prop._mdf)){var I;if(this.filterManager.effectElements[7].p.v!==0||this.filterManager.effectElements[8].p.v!==100){var E=Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,M=Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,S=x.getTotalLength();I="0 0 0 "+S*E+" ";var A=S*(M-E),T=1+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01,D=Math.floor(A/T),O;for(O=0;O<D;O+=1)I+="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01+" ";I+="0 "+S*10+" 0 0"}else I="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01;x.setAttribute("stroke-dasharray",I)}if((u||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",this.filterManager.effectElements[4].p.v*2),(u||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2)&&(u||this.filterManager.effectElements[3].p._mdf)){var j=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(j[0]*255)+","+bmFloor(j[1]*255)+","+bmFloor(j[2]*255)+")")}};function SVGTritoneFilter(u,f,d,_){this.filterManager=f;var x=createNS("feColorMatrix");x.setAttribute("type","matrix"),x.setAttribute("color-interpolation-filters","linearRGB"),x.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),u.appendChild(x);var I=createNS("feComponentTransfer");I.setAttribute("color-interpolation-filters","sRGB"),I.setAttribute("result",_),this.matrixFilter=I;var E=createNS("feFuncR");E.setAttribute("type","table"),I.appendChild(E),this.feFuncR=E;var M=createNS("feFuncG");M.setAttribute("type","table"),I.appendChild(M),this.feFuncG=M;var S=createNS("feFuncB");S.setAttribute("type","table"),I.appendChild(S),this.feFuncB=S,u.appendChild(I)}SVGTritoneFilter.prototype.renderFrame=function(u){if(u||this.filterManager._mdf){var f=this.filterManager.effectElements[0].p.v,d=this.filterManager.effectElements[1].p.v,_=this.filterManager.effectElements[2].p.v,x=_[0]+" "+d[0]+" "+f[0],I=_[1]+" "+d[1]+" "+f[1],E=_[2]+" "+d[2]+" "+f[2];this.feFuncR.setAttribute("tableValues",x),this.feFuncG.setAttribute("tableValues",I),this.feFuncB.setAttribute("tableValues",E)}};function SVGProLevelsFilter(u,f,d,_){this.filterManager=f;var x=this.filterManager.effectElements,I=createNS("feComponentTransfer");(x[10].p.k||x[10].p.v!==0||x[11].p.k||x[11].p.v!==1||x[12].p.k||x[12].p.v!==1||x[13].p.k||x[13].p.v!==0||x[14].p.k||x[14].p.v!==1)&&(this.feFuncR=this.createFeFunc("feFuncR",I)),(x[17].p.k||x[17].p.v!==0||x[18].p.k||x[18].p.v!==1||x[19].p.k||x[19].p.v!==1||x[20].p.k||x[20].p.v!==0||x[21].p.k||x[21].p.v!==1)&&(this.feFuncG=this.createFeFunc("feFuncG",I)),(x[24].p.k||x[24].p.v!==0||x[25].p.k||x[25].p.v!==1||x[26].p.k||x[26].p.v!==1||x[27].p.k||x[27].p.v!==0||x[28].p.k||x[28].p.v!==1)&&(this.feFuncB=this.createFeFunc("feFuncB",I)),(x[31].p.k||x[31].p.v!==0||x[32].p.k||x[32].p.v!==1||x[33].p.k||x[33].p.v!==1||x[34].p.k||x[34].p.v!==0||x[35].p.k||x[35].p.v!==1)&&(this.feFuncA=this.createFeFunc("feFuncA",I)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(I.setAttribute("color-interpolation-filters","sRGB"),u.appendChild(I)),(x[3].p.k||x[3].p.v!==0||x[4].p.k||x[4].p.v!==1||x[5].p.k||x[5].p.v!==1||x[6].p.k||x[6].p.v!==0||x[7].p.k||x[7].p.v!==1)&&(I=createNS("feComponentTransfer"),I.setAttribute("color-interpolation-filters","sRGB"),I.setAttribute("result",_),u.appendChild(I),this.feFuncRComposed=this.createFeFunc("feFuncR",I),this.feFuncGComposed=this.createFeFunc("feFuncG",I),this.feFuncBComposed=this.createFeFunc("feFuncB",I))}SVGProLevelsFilter.prototype.createFeFunc=function(u,f){var d=createNS(u);return d.setAttribute("type","table"),f.appendChild(d),d},SVGProLevelsFilter.prototype.getTableValue=function(u,f,d,_,x){for(var I=0,E=256,M,S=Math.min(u,f),A=Math.max(u,f),T=Array.call(null,{length:E}),D,O=0,j=x-_,$=f-u;I<=256;)M=I/256,M<=S?D=$<0?x:_:M>=A?D=$<0?_:x:D=_+j*Math.pow((M-u)/$,1/d),T[O]=D,O+=1,I+=256/(E-1);return T.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(u){if(u||this.filterManager._mdf){var f,d=this.filterManager.effectElements;this.feFuncRComposed&&(u||d[3].p._mdf||d[4].p._mdf||d[5].p._mdf||d[6].p._mdf||d[7].p._mdf)&&(f=this.getTableValue(d[3].p.v,d[4].p.v,d[5].p.v,d[6].p.v,d[7].p.v),this.feFuncRComposed.setAttribute("tableValues",f),this.feFuncGComposed.setAttribute("tableValues",f),this.feFuncBComposed.setAttribute("tableValues",f)),this.feFuncR&&(u||d[10].p._mdf||d[11].p._mdf||d[12].p._mdf||d[13].p._mdf||d[14].p._mdf)&&(f=this.getTableValue(d[10].p.v,d[11].p.v,d[12].p.v,d[13].p.v,d[14].p.v),this.feFuncR.setAttribute("tableValues",f)),this.feFuncG&&(u||d[17].p._mdf||d[18].p._mdf||d[19].p._mdf||d[20].p._mdf||d[21].p._mdf)&&(f=this.getTableValue(d[17].p.v,d[18].p.v,d[19].p.v,d[20].p.v,d[21].p.v),this.feFuncG.setAttribute("tableValues",f)),this.feFuncB&&(u||d[24].p._mdf||d[25].p._mdf||d[26].p._mdf||d[27].p._mdf||d[28].p._mdf)&&(f=this.getTableValue(d[24].p.v,d[25].p.v,d[26].p.v,d[27].p.v,d[28].p.v),this.feFuncB.setAttribute("tableValues",f)),this.feFuncA&&(u||d[31].p._mdf||d[32].p._mdf||d[33].p._mdf||d[34].p._mdf||d[35].p._mdf)&&(f=this.getTableValue(d[31].p.v,d[32].p.v,d[33].p.v,d[34].p.v,d[35].p.v),this.feFuncA.setAttribute("tableValues",f))}};function SVGDropShadowEffect(u,f,d,_,x){var I=f.container.globalData.renderConfig.filterSize,E=f.data.fs||I;u.setAttribute("x",E.x||I.x),u.setAttribute("y",E.y||I.y),u.setAttribute("width",E.width||I.width),u.setAttribute("height",E.height||I.height),this.filterManager=f;var M=createNS("feGaussianBlur");M.setAttribute("in","SourceAlpha"),M.setAttribute("result",_+"_drop_shadow_1"),M.setAttribute("stdDeviation","0"),this.feGaussianBlur=M,u.appendChild(M);var S=createNS("feOffset");S.setAttribute("dx","25"),S.setAttribute("dy","0"),S.setAttribute("in",_+"_drop_shadow_1"),S.setAttribute("result",_+"_drop_shadow_2"),this.feOffset=S,u.appendChild(S);var A=createNS("feFlood");A.setAttribute("flood-color","#00ff00"),A.setAttribute("flood-opacity","1"),A.setAttribute("result",_+"_drop_shadow_3"),this.feFlood=A,u.appendChild(A);var T=createNS("feComposite");T.setAttribute("in",_+"_drop_shadow_3"),T.setAttribute("in2",_+"_drop_shadow_2"),T.setAttribute("operator","in"),T.setAttribute("result",_+"_drop_shadow_4"),u.appendChild(T);var D=this.createMergeNode(_,[_+"_drop_shadow_4",x]);u.appendChild(D)}extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(u){if(u||this.filterManager._mdf){if((u||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),u||this.filterManager.effectElements[0].p._mdf){var f=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(f[0]*255),Math.round(f[1]*255),Math.round(f[2]*255)))}if((u||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),u||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var d=this.filterManager.effectElements[3].p.v,_=(this.filterManager.effectElements[2].p.v-90)*degToRads,x=d*Math.cos(_),I=d*Math.sin(_);this.feOffset.setAttribute("dx",x),this.feOffset.setAttribute("dy",I)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(u,f,d){this.initialized=!1,this.filterManager=f,this.filterElem=u,this.elem=d,d.matteElement=createNS("g"),d.matteElement.appendChild(d.layerElement),d.matteElement.appendChild(d.transformedElement),d.baseElement=d.matteElement}SVGMatte3Effect.prototype.findSymbol=function(u){for(var f=0,d=_svgMatteSymbols.length;f<d;){if(_svgMatteSymbols[f]===u)return _svgMatteSymbols[f];f+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(u,f){var d=u.layerElement.parentNode;if(d){for(var _=d.children,x=0,I=_.length;x<I&&_[x]!==u.layerElement;)x+=1;var E;x<=I-2&&(E=_[x+1]);var M=createNS("use");M.setAttribute("href","#"+f),E?d.insertBefore(M,E):d.appendChild(M)}},SVGMatte3Effect.prototype.setElementAsMask=function(u,f){if(!this.findSymbol(f)){var d=createElementID(),_=createNS("mask");_.setAttribute("id",f.layerId),_.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(f);var x=u.globalData.defs;x.appendChild(_);var I=createNS("symbol");I.setAttribute("id",d),this.replaceInParent(f,d),I.appendChild(f.layerElement),x.appendChild(I);var E=createNS("use");E.setAttribute("href","#"+d),_.appendChild(E),f.data.hd=!1,f.show()}u.setMatte(f.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var u=this.filterManager.effectElements[0].p.v,f=this.elem.comp.elements,d=0,_=f.length;d<_;)f[d]&&f[d].data.ind===u&&this.setElementAsMask(this.elem,f[d]),d+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()};function SVGGaussianBlurEffect(u,f,d,_){u.setAttribute("x","-100%"),u.setAttribute("y","-100%"),u.setAttribute("width","300%"),u.setAttribute("height","300%"),this.filterManager=f;var x=createNS("feGaussianBlur");x.setAttribute("result",_),u.appendChild(x),this.feGaussianBlur=x}SVGGaussianBlurEffect.prototype.renderFrame=function(u){if(u||this.filterManager._mdf){var f=.3,d=this.filterManager.effectElements[0].p.v*f,_=this.filterManager.effectElements[1].p.v,x=_==3?0:d,I=_==2?0:d;this.feGaussianBlur.setAttribute("stdDeviation",x+" "+I);var E=this.filterManager.effectElements[2].p.v==1?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",E)}};function TransformEffect(){}TransformEffect.prototype.init=function(u){this.effectsManager=u,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(u){if(this._opMdf=!1,this._mdf=!1,u||this.effectsManager._mdf){var f=this.effectsManager.effectElements,d=f[0].p.v,_=f[1].p.v,x=f[2].p.v===1,I=f[3].p.v,E=x?I:f[4].p.v,M=f[5].p.v,S=f[6].p.v,A=f[7].p.v;this.matrix.reset(),this.matrix.translate(-d[0],-d[1],d[2]),this.matrix.scale(E*.01,I*.01,1),this.matrix.rotate(-A*degToRads),this.matrix.skewFromAxis(-M*degToRads,(S+90)*degToRads),this.matrix.translate(_[0],_[1],0),this._mdf=!0,this.opacity!==f[8].p.v&&(this.opacity=f[8].p.v,this._opMdf=!0)}};function SVGTransformEffect(u,f){this.init(f)}extendPrototype([TransformEffect],SVGTransformEffect);function CVTransformEffect(u){this.init(u)}return extendPrototype([TransformEffect],CVTransformEffect),registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),ShapeModifiers.registerModifier("zz",ZigZagModifier),ShapeModifiers.registerModifier("op",OffsetPathModifier),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect$1(20,SVGTintFilter,!0),registerEffect$1(21,SVGFillFilter,!0),registerEffect$1(22,SVGStrokeEffect,!1),registerEffect$1(23,SVGTritoneFilter,!0),registerEffect$1(24,SVGProLevelsFilter,!0),registerEffect$1(25,SVGDropShadowEffect,!0),registerEffect$1(28,SVGMatte3Effect,!1),registerEffect$1(29,SVGGaussianBlurEffect,!0),registerEffect$1(35,SVGTransformEffect,!1),registerEffect(35,CVTransformEffect),lottie})})(lottie,lottie.exports);var lottieExports=lottie.exports;const Lottie=getDefaultExportFromCjs(lottieExports);(function(){try{if(typeof document<"u"){var u=document.createElement("style");u.appendChild(document.createTextNode(".lottie-animation-container{width:var(--lottie-animation-container-width);height:var(--lottie-animation-container-height);background-color:var(--lottie-animation-container-background-color);overflow:hidden;margin:var(--lottie-animation-margin)}.lottie-animation-container svg{transform:scale(var(--lottie-animation-scale))}")),document.head.appendChild(u)}}catch(f){console.error("vite-plugin-css-injected-by-js",f)}})();var __defProp$1=Object.defineProperty,__defProps=Object.defineProperties,__getOwnPropDescs=Object.getOwnPropertyDescriptors,__getOwnPropSymbols$3=Object.getOwnPropertySymbols,__hasOwnProp$3=Object.prototype.hasOwnProperty,__propIsEnum$3=Object.prototype.propertyIsEnumerable,__defNormalProp$1=(u,f,d)=>f in u?__defProp$1(u,f,{enumerable:!0,configurable:!0,writable:!0,value:d}):u[f]=d,__spreadValues$3=(u,f)=>{for(var d in f||(f={}))__hasOwnProp$3.call(f,d)&&__defNormalProp$1(u,d,f[d]);if(__getOwnPropSymbols$3)for(var d of __getOwnPropSymbols$3(f))__propIsEnum$3.call(f,d)&&__defNormalProp$1(u,d,f[d]);return u},__spreadProps=(u,f)=>__defProps(u,__getOwnPropDescs(f)),freeGlobal=typeof _global$2=="object"&&_global$2&&_global$2.Object===Object&&_global$2,freeGlobal$1=freeGlobal,freeSelf=typeof self=="object"&&self&&self.Object===Object&&self,root=freeGlobal$1||freeSelf||Function("return this")(),root$1=root,Symbol$1=root$1.Symbol,Symbol$2=Symbol$1,objectProto$e=Object.prototype,hasOwnProperty$b=objectProto$e.hasOwnProperty,nativeObjectToString$1=objectProto$e.toString,symToStringTag$1=Symbol$2?Symbol$2.toStringTag:void 0;function getRawTag(u){var f=hasOwnProperty$b.call(u,symToStringTag$1),d=u[symToStringTag$1];try{u[symToStringTag$1]=void 0;var _=!0}catch{}var x=nativeObjectToString$1.call(u);return _&&(f?u[symToStringTag$1]=d:delete u[symToStringTag$1]),x}var objectProto$d=Object.prototype,nativeObjectToString=objectProto$d.toString;function objectToString$2(u){return nativeObjectToString.call(u)}var nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=Symbol$2?Symbol$2.toStringTag:void 0;function baseGetTag(u){return u==null?u===void 0?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(u)?getRawTag(u):objectToString$2(u)}function isObjectLike(u){return u!=null&&typeof u=="object"}var isArray$4=Array.isArray,isArray$1$1=isArray$4;function isObject$7(u){var f=typeof u;return u!=null&&(f=="object"||f=="function")}var asyncTag="[object AsyncFunction]",funcTag$2="[object Function]",genTag$1="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction$2(u){if(!isObject$7(u))return!1;var f=baseGetTag(u);return f==funcTag$2||f==genTag$1||f==asyncTag||f==proxyTag}var coreJsData=root$1["__core-js_shared__"],coreJsData$1=coreJsData,maskSrcKey=function(){var u=/[^.]+$/.exec(coreJsData$1&&coreJsData$1.keys&&coreJsData$1.keys.IE_PROTO||"");return u?"Symbol(src)_1."+u:""}();function isMasked(u){return!!maskSrcKey&&maskSrcKey in u}var funcProto$1=Function.prototype,funcToString$1=funcProto$1.toString;function toSource(u){if(u!=null){try{return funcToString$1.call(u)}catch{}try{return u+""}catch{}}return""}var reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor=/^\[object .+?Constructor\]$/,funcProto=Function.prototype,objectProto$c=Object.prototype,funcToString=funcProto.toString,hasOwnProperty$a=objectProto$c.hasOwnProperty,reIsNative=RegExp("^"+funcToString.call(hasOwnProperty$a).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative(u){if(!isObject$7(u)||isMasked(u))return!1;var f=isFunction$2(u)?reIsNative:reIsHostCtor;return f.test(toSource(u))}function getValue(u,f){return u?.[f]}function getNative(u,f){var d=getValue(u,f);return baseIsNative(d)?d:void 0}var WeakMap$1=getNative(root$1,"WeakMap"),WeakMap$1$1=WeakMap$1,objectCreate=Object.create,baseCreate=function(){function u(){}return function(f){if(!isObject$7(f))return{};if(objectCreate)return objectCreate(f);u.prototype=f;var d=new u;return u.prototype=void 0,d}}(),baseCreate$1=baseCreate;function copyArray(u,f){var d=-1,_=u.length;for(f||(f=Array(_));++d<_;)f[d]=u[d];return f}var defineProperty=function(){try{var u=getNative(Object,"defineProperty");return u({},"",{}),u}catch{}}(),defineProperty$1=defineProperty;function arrayEach(u,f){for(var d=-1,_=u==null?0:u.length;++d<_&&f(u[d],d,u)!==!1;);return u}var MAX_SAFE_INTEGER$1=9007199254740991,reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex(u,f){var d=typeof u;return f=f??MAX_SAFE_INTEGER$1,!!f&&(d=="number"||d!="symbol"&&reIsUint.test(u))&&u>-1&&u%1==0&&u<f}function baseAssignValue(u,f,d){f=="__proto__"&&defineProperty$1?defineProperty$1(u,f,{configurable:!0,enumerable:!0,value:d,writable:!0}):u[f]=d}function eq(u,f){return u===f||u!==u&&f!==f}var objectProto$b=Object.prototype,hasOwnProperty$9=objectProto$b.hasOwnProperty;function assignValue(u,f,d){var _=u[f];(!(hasOwnProperty$9.call(u,f)&&eq(_,d))||d===void 0&&!(f in u))&&baseAssignValue(u,f,d)}function copyObject(u,f,d,_){var x=!d;d||(d={});for(var I=-1,E=f.length;++I<E;){var M=f[I],S=_?_(d[M],u[M],M,d,u):void 0;S===void 0&&(S=u[M]),x?baseAssignValue(d,M,S):assignValue(d,M,S)}return d}var MAX_SAFE_INTEGER$2=9007199254740991;function isLength(u){return typeof u=="number"&&u>-1&&u%1==0&&u<=MAX_SAFE_INTEGER$2}function isArrayLike(u){return u!=null&&isLength(u.length)&&!isFunction$2(u)}var objectProto$a=Object.prototype;function isPrototype(u){var f=u&&u.constructor,d=typeof f=="function"&&f.prototype||objectProto$a;return u===d}function baseTimes(u,f){for(var d=-1,_=Array(u);++d<u;)_[d]=f(d);return _}var argsTag$3="[object Arguments]";function baseIsArguments(u){return isObjectLike(u)&&baseGetTag(u)==argsTag$3}var objectProto$9=Object.prototype,hasOwnProperty$8=objectProto$9.hasOwnProperty,propertyIsEnumerable$1=objectProto$9.propertyIsEnumerable,isArguments$1=baseIsArguments(function(){return arguments}())?baseIsArguments:function(u){return isObjectLike(u)&&hasOwnProperty$8.call(u,"callee")&&!propertyIsEnumerable$1.call(u,"callee")},isArguments$1$1=isArguments$1;function stubFalse(){return!1}var freeExports$2=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule$2=freeExports$2&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports$2=freeModule$2&&freeModule$2.exports===freeExports$2,Buffer$1=moduleExports$2?root$1.Buffer:void 0,nativeIsBuffer=Buffer$1?Buffer$1.isBuffer:void 0,isBuffer=nativeIsBuffer||stubFalse,isBuffer$1=isBuffer,argsTag$2="[object Arguments]",arrayTag$2="[object Array]",boolTag$3="[object Boolean]",dateTag$3="[object Date]",errorTag$2="[object Error]",funcTag$1="[object Function]",mapTag$5="[object Map]",numberTag$3="[object Number]",objectTag$3="[object Object]",regexpTag$3="[object RegExp]",setTag$5="[object Set]",stringTag$3="[object String]",weakMapTag$2="[object WeakMap]",arrayBufferTag$3="[object ArrayBuffer]",dataViewTag$4="[object DataView]",float32Tag$2="[object Float32Array]",float64Tag$2="[object Float64Array]",int8Tag$2="[object Int8Array]",int16Tag$2="[object Int16Array]",int32Tag$2="[object Int32Array]",uint8Tag$2="[object Uint8Array]",uint8ClampedTag$2="[object Uint8ClampedArray]",uint16Tag$2="[object Uint16Array]",uint32Tag$2="[object Uint32Array]",typedArrayTags={};typedArrayTags[float32Tag$2]=typedArrayTags[float64Tag$2]=typedArrayTags[int8Tag$2]=typedArrayTags[int16Tag$2]=typedArrayTags[int32Tag$2]=typedArrayTags[uint8Tag$2]=typedArrayTags[uint8ClampedTag$2]=typedArrayTags[uint16Tag$2]=typedArrayTags[uint32Tag$2]=!0;typedArrayTags[argsTag$2]=typedArrayTags[arrayTag$2]=typedArrayTags[arrayBufferTag$3]=typedArrayTags[boolTag$3]=typedArrayTags[dataViewTag$4]=typedArrayTags[dateTag$3]=typedArrayTags[errorTag$2]=typedArrayTags[funcTag$1]=typedArrayTags[mapTag$5]=typedArrayTags[numberTag$3]=typedArrayTags[objectTag$3]=typedArrayTags[regexpTag$3]=typedArrayTags[setTag$5]=typedArrayTags[stringTag$3]=typedArrayTags[weakMapTag$2]=!1;function baseIsTypedArray(u){return isObjectLike(u)&&isLength(u.length)&&!!typedArrayTags[baseGetTag(u)]}function baseUnary(u){return function(f){return u(f)}}var freeExports$1=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule$1=freeExports$1&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports$1=freeModule$1&&freeModule$1.exports===freeExports$1,freeProcess=moduleExports$1&&freeGlobal$1.process,nodeUtil=function(){try{var u=freeModule$1&&freeModule$1.require&&freeModule$1.require("util").types;return u||freeProcess&&freeProcess.binding&&freeProcess.binding("util")}catch{}}(),nodeUtil$1=nodeUtil,nodeIsTypedArray=nodeUtil$1&&nodeUtil$1.isTypedArray,isTypedArray$1=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray,isTypedArray$1$1=isTypedArray$1,objectProto$8=Object.prototype,hasOwnProperty$7=objectProto$8.hasOwnProperty;function arrayLikeKeys(u,f){var d=isArray$1$1(u),_=!d&&isArguments$1$1(u),x=!d&&!_&&isBuffer$1(u),I=!d&&!_&&!x&&isTypedArray$1$1(u),E=d||_||x||I,M=E?baseTimes(u.length,String):[],S=M.length;for(var A in u)(f||hasOwnProperty$7.call(u,A))&&!(E&&(A=="length"||x&&(A=="offset"||A=="parent")||I&&(A=="buffer"||A=="byteLength"||A=="byteOffset")||isIndex(A,S)))&&M.push(A);return M}function overArg(u,f){return function(d){return u(f(d))}}var nativeKeys=overArg(Object.keys,Object),nativeKeys$1=nativeKeys,objectProto$7=Object.prototype,hasOwnProperty$6=objectProto$7.hasOwnProperty;function baseKeys(u){if(!isPrototype(u))return nativeKeys$1(u);var f=[];for(var d in Object(u))hasOwnProperty$6.call(u,d)&&d!="constructor"&&f.push(d);return f}function keys(u){return isArrayLike(u)?arrayLikeKeys(u):baseKeys(u)}function nativeKeysIn(u){var f=[];if(u!=null)for(var d in Object(u))f.push(d);return f}var objectProto$6=Object.prototype,hasOwnProperty$5=objectProto$6.hasOwnProperty;function baseKeysIn(u){if(!isObject$7(u))return nativeKeysIn(u);var f=isPrototype(u),d=[];for(var _ in u)_=="constructor"&&(f||!hasOwnProperty$5.call(u,_))||d.push(_);return d}function keysIn(u){return isArrayLike(u)?arrayLikeKeys(u,!0):baseKeysIn(u)}var nativeCreate=getNative(Object,"create"),nativeCreate$1=nativeCreate;function hashClear(){this.__data__=nativeCreate$1?nativeCreate$1(null):{},this.size=0}function hashDelete(u){var f=this.has(u)&&delete this.__data__[u];return this.size-=f?1:0,f}var HASH_UNDEFINED$2="__lodash_hash_undefined__",objectProto$5=Object.prototype,hasOwnProperty$4=objectProto$5.hasOwnProperty;function hashGet(u){var f=this.__data__;if(nativeCreate$1){var d=f[u];return d===HASH_UNDEFINED$2?void 0:d}return hasOwnProperty$4.call(f,u)?f[u]:void 0}var objectProto$4=Object.prototype,hasOwnProperty$3$1=objectProto$4.hasOwnProperty;function hashHas(u){var f=this.__data__;return nativeCreate$1?f[u]!==void 0:hasOwnProperty$3$1.call(f,u)}var HASH_UNDEFINED$1="__lodash_hash_undefined__";function hashSet(u,f){var d=this.__data__;return this.size+=this.has(u)?0:1,d[u]=nativeCreate$1&&f===void 0?HASH_UNDEFINED$1:f,this}function Hash(u){var f=-1,d=u==null?0:u.length;for(this.clear();++f<d;){var _=u[f];this.set(_[0],_[1])}}Hash.prototype.clear=hashClear;Hash.prototype.delete=hashDelete;Hash.prototype.get=hashGet;Hash.prototype.has=hashHas;Hash.prototype.set=hashSet;function listCacheClear(){this.__data__=[],this.size=0}function assocIndexOf(u,f){for(var d=u.length;d--;)if(eq(u[d][0],f))return d;return-1}var arrayProto=Array.prototype,splice=arrayProto.splice;function listCacheDelete(u){var f=this.__data__,d=assocIndexOf(f,u);if(d<0)return!1;var _=f.length-1;return d==_?f.pop():splice.call(f,d,1),--this.size,!0}function listCacheGet(u){var f=this.__data__,d=assocIndexOf(f,u);return d<0?void 0:f[d][1]}function listCacheHas(u){return assocIndexOf(this.__data__,u)>-1}function listCacheSet(u,f){var d=this.__data__,_=assocIndexOf(d,u);return _<0?(++this.size,d.push([u,f])):d[_][1]=f,this}function ListCache(u){var f=-1,d=u==null?0:u.length;for(this.clear();++f<d;){var _=u[f];this.set(_[0],_[1])}}ListCache.prototype.clear=listCacheClear;ListCache.prototype.delete=listCacheDelete;ListCache.prototype.get=listCacheGet;ListCache.prototype.has=listCacheHas;ListCache.prototype.set=listCacheSet;var Map$1=getNative(root$1,"Map"),Map$1$1=Map$1;function mapCacheClear(){this.size=0,this.__data__={hash:new Hash,map:new(Map$1$1||ListCache),string:new Hash}}function isKeyable(u){var f=typeof u;return f=="string"||f=="number"||f=="symbol"||f=="boolean"?u!=="__proto__":u===null}function getMapData(u,f){var d=u.__data__;return isKeyable(f)?d[typeof f=="string"?"string":"hash"]:d.map}function mapCacheDelete(u){var f=getMapData(this,u).delete(u);return this.size-=f?1:0,f}function mapCacheGet(u){return getMapData(this,u).get(u)}function mapCacheHas(u){return getMapData(this,u).has(u)}function mapCacheSet(u,f){var d=getMapData(this,u),_=d.size;return d.set(u,f),this.size+=d.size==_?0:1,this}function MapCache(u){var f=-1,d=u==null?0:u.length;for(this.clear();++f<d;){var _=u[f];this.set(_[0],_[1])}}MapCache.prototype.clear=mapCacheClear;MapCache.prototype.delete=mapCacheDelete;MapCache.prototype.get=mapCacheGet;MapCache.prototype.has=mapCacheHas;MapCache.prototype.set=mapCacheSet;function arrayPush(u,f){for(var d=-1,_=f.length,x=u.length;++d<_;)u[x+d]=f[d];return u}var getPrototype=overArg(Object.getPrototypeOf,Object),getPrototype$1=getPrototype;function stackClear(){this.__data__=new ListCache,this.size=0}function stackDelete(u){var f=this.__data__,d=f.delete(u);return this.size=f.size,d}function stackGet(u){return this.__data__.get(u)}function stackHas(u){return this.__data__.has(u)}var LARGE_ARRAY_SIZE=200;function stackSet(u,f){var d=this.__data__;if(d instanceof ListCache){var _=d.__data__;if(!Map$1$1||_.length<LARGE_ARRAY_SIZE-1)return _.push([u,f]),this.size=++d.size,this;d=this.__data__=new MapCache(_)}return d.set(u,f),this.size=d.size,this}function Stack(u){var f=this.__data__=new ListCache(u);this.size=f.size}Stack.prototype.clear=stackClear;Stack.prototype.delete=stackDelete;Stack.prototype.get=stackGet;Stack.prototype.has=stackHas;Stack.prototype.set=stackSet;function baseAssign(u,f){return u&&copyObject(f,keys(f),u)}function baseAssignIn(u,f){return u&&copyObject(f,keysIn(f),u)}var freeExports=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule=freeExports&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports=freeModule&&freeModule.exports===freeExports,Buffer2=moduleExports?root$1.Buffer:void 0,allocUnsafe=Buffer2?Buffer2.allocUnsafe:void 0;function cloneBuffer(u,f){if(f)return u.slice();var d=u.length,_=allocUnsafe?allocUnsafe(d):new u.constructor(d);return u.copy(_),_}function arrayFilter(u,f){for(var d=-1,_=u==null?0:u.length,x=0,I=[];++d<_;){var E=u[d];f(E,d,u)&&(I[x++]=E)}return I}function stubArray(){return[]}var objectProto$3=Object.prototype,propertyIsEnumerable=objectProto$3.propertyIsEnumerable,nativeGetSymbols$1=Object.getOwnPropertySymbols,getSymbols=nativeGetSymbols$1?function(u){return u==null?[]:(u=Object(u),arrayFilter(nativeGetSymbols$1(u),function(f){return propertyIsEnumerable.call(u,f)}))}:stubArray,getSymbols$1=getSymbols;function copySymbols(u,f){return copyObject(u,getSymbols$1(u),f)}var nativeGetSymbols=Object.getOwnPropertySymbols,getSymbolsIn=nativeGetSymbols?function(u){for(var f=[];u;)arrayPush(f,getSymbols$1(u)),u=getPrototype$1(u);return f}:stubArray,getSymbolsIn$1=getSymbolsIn;function copySymbolsIn(u,f){return copyObject(u,getSymbolsIn$1(u),f)}function baseGetAllKeys(u,f,d){var _=f(u);return isArray$1$1(u)?_:arrayPush(_,d(u))}function getAllKeys(u){return baseGetAllKeys(u,keys,getSymbols$1)}function getAllKeysIn(u){return baseGetAllKeys(u,keysIn,getSymbolsIn$1)}var DataView$1=getNative(root$1,"DataView"),DataView$1$1=DataView$1,Promise$1=getNative(root$1,"Promise"),Promise$2=Promise$1,Set$1=getNative(root$1,"Set"),Set$1$1=Set$1,mapTag$4="[object Map]",objectTag$2="[object Object]",promiseTag="[object Promise]",setTag$4="[object Set]",weakMapTag$1="[object WeakMap]",dataViewTag$3="[object DataView]",dataViewCtorString=toSource(DataView$1$1),mapCtorString=toSource(Map$1$1),promiseCtorString=toSource(Promise$2),setCtorString=toSource(Set$1$1),weakMapCtorString=toSource(WeakMap$1$1),getTag=baseGetTag;(DataView$1$1&&getTag(new DataView$1$1(new ArrayBuffer(1)))!=dataViewTag$3||Map$1$1&&getTag(new Map$1$1)!=mapTag$4||Promise$2&&getTag(Promise$2.resolve())!=promiseTag||Set$1$1&&getTag(new Set$1$1)!=setTag$4||WeakMap$1$1&&getTag(new WeakMap$1$1)!=weakMapTag$1)&&(getTag=function(u){var f=baseGetTag(u),d=f==objectTag$2?u.constructor:void 0,_=d?toSource(d):"";if(_)switch(_){case dataViewCtorString:return dataViewTag$3;case mapCtorString:return mapTag$4;case promiseCtorString:return promiseTag;case setCtorString:return setTag$4;case weakMapCtorString:return weakMapTag$1}return f});var getTag$1=getTag,objectProto$2=Object.prototype,hasOwnProperty$2$1=objectProto$2.hasOwnProperty;function initCloneArray(u){var f=u.length,d=new u.constructor(f);return f&&typeof u[0]=="string"&&hasOwnProperty$2$1.call(u,"index")&&(d.index=u.index,d.input=u.input),d}var Uint8Array2=root$1.Uint8Array,Uint8Array$1=Uint8Array2;function cloneArrayBuffer(u){var f=new u.constructor(u.byteLength);return new Uint8Array$1(f).set(new Uint8Array$1(u)),f}function cloneDataView(u,f){var d=f?cloneArrayBuffer(u.buffer):u.buffer;return new u.constructor(d,u.byteOffset,u.byteLength)}var reFlags=/\w*$/;function cloneRegExp(u){var f=new u.constructor(u.source,reFlags.exec(u));return f.lastIndex=u.lastIndex,f}var symbolProto$1=Symbol$2?Symbol$2.prototype:void 0,symbolValueOf$1=symbolProto$1?symbolProto$1.valueOf:void 0;function cloneSymbol(u){return symbolValueOf$1?Object(symbolValueOf$1.call(u)):{}}function cloneTypedArray(u,f){var d=f?cloneArrayBuffer(u.buffer):u.buffer;return new u.constructor(d,u.byteOffset,u.length)}var boolTag$2="[object Boolean]",dateTag$2="[object Date]",mapTag$3="[object Map]",numberTag$2="[object Number]",regexpTag$2="[object RegExp]",setTag$3="[object Set]",stringTag$2="[object String]",symbolTag$2="[object Symbol]",arrayBufferTag$2="[object ArrayBuffer]",dataViewTag$2="[object DataView]",float32Tag$1="[object Float32Array]",float64Tag$1="[object Float64Array]",int8Tag$1="[object Int8Array]",int16Tag$1="[object Int16Array]",int32Tag$1="[object Int32Array]",uint8Tag$1="[object Uint8Array]",uint8ClampedTag$1="[object Uint8ClampedArray]",uint16Tag$1="[object Uint16Array]",uint32Tag$1="[object Uint32Array]";function initCloneByTag(u,f,d){var _=u.constructor;switch(f){case arrayBufferTag$2:return cloneArrayBuffer(u);case boolTag$2:case dateTag$2:return new _(+u);case dataViewTag$2:return cloneDataView(u,d);case float32Tag$1:case float64Tag$1:case int8Tag$1:case int16Tag$1:case int32Tag$1:case uint8Tag$1:case uint8ClampedTag$1:case uint16Tag$1:case uint32Tag$1:return cloneTypedArray(u,d);case mapTag$3:return new _;case numberTag$2:case stringTag$2:return new _(u);case regexpTag$2:return cloneRegExp(u);case setTag$3:return new _;case symbolTag$2:return cloneSymbol(u)}}function initCloneObject(u){return typeof u.constructor=="function"&&!isPrototype(u)?baseCreate$1(getPrototype$1(u)):{}}var mapTag$2="[object Map]";function baseIsMap(u){return isObjectLike(u)&&getTag$1(u)==mapTag$2}var nodeIsMap=nodeUtil$1&&nodeUtil$1.isMap,isMap=nodeIsMap?baseUnary(nodeIsMap):baseIsMap,isMap$1=isMap,setTag$2="[object Set]";function baseIsSet(u){return isObjectLike(u)&&getTag$1(u)==setTag$2}var nodeIsSet=nodeUtil$1&&nodeUtil$1.isSet,isSet=nodeIsSet?baseUnary(nodeIsSet):baseIsSet,isSet$1=isSet,CLONE_DEEP_FLAG$1=1,CLONE_FLAT_FLAG=2,CLONE_SYMBOLS_FLAG$1=4,argsTag$1="[object Arguments]",arrayTag$1="[object Array]",boolTag$1="[object Boolean]",dateTag$1="[object Date]",errorTag$1="[object Error]",funcTag="[object Function]",genTag="[object GeneratorFunction]",mapTag$1="[object Map]",numberTag$1="[object Number]",objectTag$1="[object Object]",regexpTag$1="[object RegExp]",setTag$1="[object Set]",stringTag$1="[object String]",symbolTag$1="[object Symbol]",weakMapTag="[object WeakMap]",arrayBufferTag$1="[object ArrayBuffer]",dataViewTag$1="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",cloneableTags={};cloneableTags[argsTag$1]=cloneableTags[arrayTag$1]=cloneableTags[arrayBufferTag$1]=cloneableTags[dataViewTag$1]=cloneableTags[boolTag$1]=cloneableTags[dateTag$1]=cloneableTags[float32Tag]=cloneableTags[float64Tag]=cloneableTags[int8Tag]=cloneableTags[int16Tag]=cloneableTags[int32Tag]=cloneableTags[mapTag$1]=cloneableTags[numberTag$1]=cloneableTags[objectTag$1]=cloneableTags[regexpTag$1]=cloneableTags[setTag$1]=cloneableTags[stringTag$1]=cloneableTags[symbolTag$1]=cloneableTags[uint8Tag]=cloneableTags[uint8ClampedTag]=cloneableTags[uint16Tag]=cloneableTags[uint32Tag]=!0;cloneableTags[errorTag$1]=cloneableTags[funcTag]=cloneableTags[weakMapTag]=!1;function baseClone(u,f,d,_,x,I){var E,M=f&CLONE_DEEP_FLAG$1,S=f&CLONE_FLAT_FLAG,A=f&CLONE_SYMBOLS_FLAG$1;if(d&&(E=x?d(u,_,x,I):d(u)),E!==void 0)return E;if(!isObject$7(u))return u;var T=isArray$1$1(u);if(T){if(E=initCloneArray(u),!M)return copyArray(u,E)}else{var D=getTag$1(u),O=D==funcTag||D==genTag;if(isBuffer$1(u))return cloneBuffer(u,M);if(D==objectTag$1||D==argsTag$1||O&&!x){if(E=S||O?{}:initCloneObject(u),!M)return S?copySymbolsIn(u,baseAssignIn(E,u)):copySymbols(u,baseAssign(E,u))}else{if(!cloneableTags[D])return x?u:{};E=initCloneByTag(u,D,M)}}I||(I=new Stack);var j=I.get(u);if(j)return j;I.set(u,E),isSet$1(u)?u.forEach(function(Q){E.add(baseClone(Q,f,d,Q,u,I))}):isMap$1(u)&&u.forEach(function(Q,X){E.set(X,baseClone(Q,f,d,X,u,I))});var $=A?S?getAllKeysIn:getAllKeys:S?keysIn:keys,W=T?void 0:$(u);return arrayEach(W||u,function(Q,X){W&&(X=Q,Q=u[X]),assignValue(E,X,baseClone(Q,f,d,X,u,I))}),E}var CLONE_DEEP_FLAG=1,CLONE_SYMBOLS_FLAG=4;function cloneDeep(u){return baseClone(u,CLONE_DEEP_FLAG|CLONE_SYMBOLS_FLAG)}var HASH_UNDEFINED="__lodash_hash_undefined__";function setCacheAdd(u){return this.__data__.set(u,HASH_UNDEFINED),this}function setCacheHas(u){return this.__data__.has(u)}function SetCache(u){var f=-1,d=u==null?0:u.length;for(this.__data__=new MapCache;++f<d;)this.add(u[f])}SetCache.prototype.add=SetCache.prototype.push=setCacheAdd;SetCache.prototype.has=setCacheHas;function arraySome(u,f){for(var d=-1,_=u==null?0:u.length;++d<_;)if(f(u[d],d,u))return!0;return!1}function cacheHas(u,f){return u.has(f)}var COMPARE_PARTIAL_FLAG$3=1,COMPARE_UNORDERED_FLAG$1=2;function equalArrays(u,f,d,_,x,I){var E=d&COMPARE_PARTIAL_FLAG$3,M=u.length,S=f.length;if(M!=S&&!(E&&S>M))return!1;var A=I.get(u),T=I.get(f);if(A&&T)return A==f&&T==u;var D=-1,O=!0,j=d&COMPARE_UNORDERED_FLAG$1?new SetCache:void 0;for(I.set(u,f),I.set(f,u);++D<M;){var $=u[D],W=f[D];if(_)var Q=E?_(W,$,D,f,u,I):_($,W,D,u,f,I);if(Q!==void 0){if(Q)continue;O=!1;break}if(j){if(!arraySome(f,function(X,Y){if(!cacheHas(j,Y)&&($===X||x($,X,d,_,I)))return j.push(Y)})){O=!1;break}}else if(!($===W||x($,W,d,_,I))){O=!1;break}}return I.delete(u),I.delete(f),O}function mapToArray(u){var f=-1,d=Array(u.size);return u.forEach(function(_,x){d[++f]=[x,_]}),d}function setToArray(u){var f=-1,d=Array(u.size);return u.forEach(function(_){d[++f]=_}),d}var COMPARE_PARTIAL_FLAG$2=1,COMPARE_UNORDERED_FLAG=2,boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",mapTag="[object Map]",numberTag="[object Number]",regexpTag="[object RegExp]",setTag="[object Set]",stringTag="[object String]",symbolTag="[object Symbol]",arrayBufferTag="[object ArrayBuffer]",dataViewTag="[object DataView]",symbolProto=Symbol$2?Symbol$2.prototype:void 0,symbolValueOf=symbolProto?symbolProto.valueOf:void 0;function equalByTag(u,f,d,_,x,I,E){switch(d){case dataViewTag:if(u.byteLength!=f.byteLength||u.byteOffset!=f.byteOffset)return!1;u=u.buffer,f=f.buffer;case arrayBufferTag:return!(u.byteLength!=f.byteLength||!I(new Uint8Array$1(u),new Uint8Array$1(f)));case boolTag:case dateTag:case numberTag:return eq(+u,+f);case errorTag:return u.name==f.name&&u.message==f.message;case regexpTag:case stringTag:return u==f+"";case mapTag:var M=mapToArray;case setTag:var S=_&COMPARE_PARTIAL_FLAG$2;if(M||(M=setToArray),u.size!=f.size&&!S)return!1;var A=E.get(u);if(A)return A==f;_|=COMPARE_UNORDERED_FLAG,E.set(u,f);var T=equalArrays(M(u),M(f),_,x,I,E);return E.delete(u),T;case symbolTag:if(symbolValueOf)return symbolValueOf.call(u)==symbolValueOf.call(f)}return!1}var COMPARE_PARTIAL_FLAG$1=1,objectProto$1=Object.prototype,hasOwnProperty$1$1=objectProto$1.hasOwnProperty;function equalObjects(u,f,d,_,x,I){var E=d&COMPARE_PARTIAL_FLAG$1,M=getAllKeys(u),S=M.length,A=getAllKeys(f),T=A.length;if(S!=T&&!E)return!1;for(var D=S;D--;){var O=M[D];if(!(E?O in f:hasOwnProperty$1$1.call(f,O)))return!1}var j=I.get(u),$=I.get(f);if(j&&$)return j==f&&$==u;var W=!0;I.set(u,f),I.set(f,u);for(var Q=E;++D<S;){O=M[D];var X=u[O],Y=f[O];if(_)var ie=E?_(Y,X,O,f,u,I):_(X,Y,O,u,f,I);if(!(ie===void 0?X===Y||x(X,Y,d,_,I):ie)){W=!1;break}Q||(Q=O=="constructor")}if(W&&!Q){var oe=u.constructor,ge=f.constructor;oe!=ge&&"constructor"in u&&"constructor"in f&&!(typeof oe=="function"&&oe instanceof oe&&typeof ge=="function"&&ge instanceof ge)&&(W=!1)}return I.delete(u),I.delete(f),W}var COMPARE_PARTIAL_FLAG=1,argsTag="[object Arguments]",arrayTag="[object Array]",objectTag="[object Object]",objectProto=Object.prototype,hasOwnProperty$d=objectProto.hasOwnProperty;function baseIsEqualDeep(u,f,d,_,x,I){var E=isArray$1$1(u),M=isArray$1$1(f),S=E?arrayTag:getTag$1(u),A=M?arrayTag:getTag$1(f);S=S==argsTag?objectTag:S,A=A==argsTag?objectTag:A;var T=S==objectTag,D=A==objectTag,O=S==A;if(O&&isBuffer$1(u)){if(!isBuffer$1(f))return!1;E=!0,T=!1}if(O&&!T)return I||(I=new Stack),E||isTypedArray$1$1(u)?equalArrays(u,f,d,_,x,I):equalByTag(u,f,S,d,_,x,I);if(!(d&COMPARE_PARTIAL_FLAG)){var j=T&&hasOwnProperty$d.call(u,"__wrapped__"),$=D&&hasOwnProperty$d.call(f,"__wrapped__");if(j||$){var W=j?u.value():u,Q=$?f.value():f;return I||(I=new Stack),x(W,Q,d,_,I)}}return O?(I||(I=new Stack),equalObjects(u,f,d,_,x,I)):!1}function baseIsEqual(u,f,d,_,x){return u===f?!0:u==null||f==null||!isObjectLike(u)&&!isObjectLike(f)?u!==u&&f!==f:baseIsEqualDeep(u,f,d,_,baseIsEqual,x)}function isEqual(u,f){return baseIsEqual(u,f)}var _export_sfc$2=(u,f)=>{const d=u.__vccOpts||u;for(const[_,x]of f)d[_]=x;return d};const _sfc_main$1Q=defineComponent({props:{animationData:{type:Object,default:()=>({})},animationLink:{type:String,default:""},loop:{type:[Boolean,Number],default:!0},autoPlay:{type:Boolean,default:!0},width:{type:[Number,String],default:"100%"},height:{type:[Number,String],default:"100%"},speed:{type:Number,default:1},delay:{type:Number,default:0},direction:{type:String,default:"forward"},pauseOnHover:{type:Boolean,default:!1},playOnHover:{type:Boolean,default:!1},backgroundColor:{type:String,default:"transparent"},pauseAnimation:{type:Boolean,default:!1},noMargin:{type:Boolean,default:!1},scale:{type:Number,default:1},renderer:{type:String,default:"svg"},rendererSettings:{type:Object,default:()=>({})},assetsPath:{type:String,default:""}},emits:{onComplete:null,onLoopComplete:null,onEnterFrame:null,onSegmentStart:null,onAnimationLoaded:null},setup(u,{emit:f}){const d=ref(),_=ref();let x=null,I=1;watchEffect(async()=>{if(u.animationLink!="")try{const ze=await(await fetch(u.animationLink)).json();d.value=ze,nextTick$2(()=>E())}catch(be){console.error(be);return}else if(isEqual(u.animationData,{})===!1)d.value=cloneDeep(u.animationData),nextTick$2(()=>E());else throw new Error("You must provide either animationLink or animationData")});const E=()=>{if(!_.value||!d.value)return;x?.destroy(),x=null;let be=u.autoPlay,ze=u.loop;u.playOnHover&&(be=!1),typeof ze=="number"&&ze>0&&(ze=ze-1),u.delay>0&&(be=!1);const de={container:_.value,renderer:u.renderer,loop:ze,autoplay:be,animationData:d.value,assetsPath:u.assetsPath};isEqual(u.rendererSettings,{})===!1&&(de.rendererSettings=u.rendererSettings),u.scale!==1&&(de.rendererSettings=__spreadProps(__spreadValues$3({},de.rendererSettings),{viewBoxOnly:!0})),x=Lottie.loadAnimation(de),setTimeout(()=>{be=u.autoPlay,u.playOnHover?x?.pause():be?x?.play():x?.pause(),f("onAnimationLoaded")},u.delay),x.setSpeed(u.speed),u.direction==="reverse"&&x.setDirection(-1),u.direction==="normal"&&x.setDirection(1),(u.pauseAnimation||u.playOnHover)&&x.pause(),x.addEventListener("loopComplete",()=>{u.direction==="alternate"&&(x?.stop(),I=I===-1?1:-1,x?.setDirection(I),x?.play()),f("onLoopComplete")}),x.addEventListener("complete",()=>{f("onComplete")}),x.addEventListener("enterFrame",()=>{f("onEnterFrame")}),x.addEventListener("segmentStart",()=>{f("onSegmentStart")})},M=computed(()=>{let be=u.width,ze=u.height;return typeof u.width=="number"&&(be=`${u.width}px`),typeof u.height=="number"&&(ze=`${u.height}px`),{"--lottie-animation-container-width":be,"--lottie-animation-container-height":ze,"--lottie-animation-container-background-color":u.backgroundColor,"--lottie-animation-margin":u.noMargin?"0":"0 auto","--lottie-animation-scale":u.scale!=1?u.scale:""}}),S=()=>{x&&u.pauseOnHover&&x.pause(),x&&u.playOnHover&&x.play()},A=()=>{x&&u.pauseOnHover&&x.play(),x&&u.playOnHover&&x.pause()};return watch(()=>u.pauseAnimation,()=>{if((u.pauseOnHover||u.playOnHover)&&u.pauseAnimation){console.error("If you are using pauseAnimation prop for Vue3-Lottie, please remove the props pauseOnHover and playOnHover");return}x&&(u.pauseAnimation?x.pause():x.play())}),{lottieAnimationContainer:_,hoverEnded:A,hoverStarted:S,getCurrentStyle:M,play:()=>{x&&x.play()},pause:()=>{x&&x.pause()},stop:()=>{x&&x.stop()},destroy:()=>{x&&x.destroy()},setSpeed:(be=1)=>{if(be<=0)throw new Error("Speed must be greater than 0");x&&x.setSpeed(be)},setDirection:be=>{x&&(be==="forward"?x.setDirection(1):be==="reverse"&&x.setDirection(-1))},goToAndStop:(be,ze=!0)=>{x&&x.goToAndStop(be,ze)},goToAndPlay:(be,ze=!0)=>{x&&x.goToAndPlay(be,ze)},playSegments:(be,ze=!1)=>{x&&x.playSegments(be,ze)},setSubFrame:(be=!0)=>{x&&x.setSubframe(be)},getDuration:(be=!0)=>{if(x)return x.getDuration(be)},updateDocumentData:(be,ze=0)=>{x&&x.renderer.elements[ze].updateDocumentData(be)}}}});function _sfc_render$1(u,f,d,_,x,I){return openBlock(),createElementBlock("div",{ref:"lottieAnimationContainer",class:"lottie-animation-container",style:normalizeStyle(u.getCurrentStyle),onMouseenter:f[0]||(f[0]=(...E)=>u.hoverStarted&&u.hoverStarted(...E)),onMouseleave:f[1]||(f[1]=(...E)=>u.hoverEnded&&u.hoverEnded(...E))},null,36)}var Vue3Lottie=_export_sfc$2(_sfc_main$1Q,[["render",_sfc_render$1]]);const nm$1="square loader",ddd=0,h=1080,w=1080,meta={g:"LottieFiles AE 0.1.20"},layers=[{ty:4,nm:"1",sr:1,st:-29,op:182,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[-303,-213,0],ix:1},s:{a:0,k:[90,90,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[328.625,308.625,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:1,k:[{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[10],t:-14},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[100],t:0},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[10],t:16},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[10],t:46},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[100],t:60},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[10],t:76},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[10],t:106},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[100],t:120},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[10],t:136},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[10],t:166},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[100],t:181},{s:[10],t:196}],ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"Rectangle 1",ix:1,cix:2,np:3,it:[{ty:"rc",bm:0,hd:!1,mn:"ADBE Vector Shape - Rect",nm:"Rectangle Path 1",d:1,p:{a:0,k:[0,0],ix:3},r:{a:0,k:0,ix:4},s:{a:0,k:[382,382],ix:2}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"Fill 1",c:{a:0,k:[.3922,.251,.8667],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[-303,-213],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:1},{ty:4,nm:"2",sr:1,st:-14,op:182,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[-303,-213,0],ix:1},s:{a:0,k:[90,90,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[750.875,309.25,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:1,k:[{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[10],t:0},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[100],t:16},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[10],t:31},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[10],t:60},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[100],t:76},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[10],t:91},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[10],t:120},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[100],t:136},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[10],t:151},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[10],t:181},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[100],t:196},{s:[10],t:211}],ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"Rectangle 1",ix:1,cix:2,np:3,it:[{ty:"rc",bm:0,hd:!1,mn:"ADBE Vector Shape - Rect",nm:"Rectangle Path 1",d:1,p:{a:0,k:[0,0],ix:3},r:{a:0,k:0,ix:4},s:{a:0,k:[382,382],ix:2}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"Fill 1",c:{a:0,k:[.3922,.251,.8667],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[-303,-213],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:2},{ty:4,nm:"3",sr:1,st:1,op:182,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[-303,-213,0],ix:1},s:{a:0,k:[90,90,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[750.875,730.75,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:1,k:[{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[10],t:16},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[100],t:31},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[10],t:46},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[10],t:76},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[100],t:91},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[10],t:106},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[10],t:136},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[100],t:151},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[10],t:166},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[10],t:196},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[100],t:211},{s:[10],t:226}],ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"Rectangle 1",ix:1,cix:2,np:3,it:[{ty:"rc",bm:0,hd:!1,mn:"ADBE Vector Shape - Rect",nm:"Rectangle Path 1",d:1,p:{a:0,k:[0,0],ix:3},r:{a:0,k:0,ix:4},s:{a:0,k:[382,382],ix:2}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"Fill 1",c:{a:0,k:[.3922,.251,.8667],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[-303,-213],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:3},{ty:4,nm:"4",sr:1,st:16,op:182,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[-303,-213,0],ix:1},s:{a:0,k:[90,90,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[328.625,731,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:1,k:[{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[10],t:31},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[100],t:46},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[10],t:61},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[10],t:91},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[100],t:106},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[10],t:121},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[10],t:151},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[100],t:166},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[10],t:181},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[10],t:211},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[100],t:226},{s:[10],t:241}],ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"Rectangle 1",ix:1,cix:2,np:3,it:[{ty:"rc",bm:0,hd:!1,mn:"ADBE Vector Shape - Rect",nm:"Rectangle Path 1",d:1,p:{a:0,k:[0,0],ix:3},r:{a:0,k:0,ix:4},s:{a:0,k:[382,382],ix:2}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"Fill 1",c:{a:0,k:[.3922,.251,.8667],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[-303,-213],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:4}],v="5.5.7",fr$1=30,op$1=182,ip$1=0,assets=[],animationData={nm:nm$1,ddd,h,w,meta,layers,v,fr:fr$1,op:op$1,ip:ip$1,assets},_hoisted_1$1x={class:"spinner"},_sfc_main$1P=defineComponent({__name:"Spinner",props:{isLoading:{type:Boolean,default:!1},text:{default:"로딩 중입니다."}},setup(u){return(f,d)=>(openBlock(),createBlock(unref(Overlay),{show:f.isLoading,opacity:.8},{default:withCtx(()=>[createBaseVNode("div",_hoisted_1$1x,[createVNode(unref(Vue3Lottie),{"animation-data":unref(animationData),width:44,height:44},null,8,["animation-data"]),createBaseVNode("span",null,toDisplayString$2(f.text),1)])]),_:1},8,["show"]))}}),Spinner=_export_sfc$1(_sfc_main$1P,[["__scopeId","data-v-8abd8143"]]),_withScopeId$i=u=>(pushScopeId("data-v-c9b0a7c5"),u=u(),popScopeId(),u),_hoisted_1$1w=["src"],_hoisted_2$1j=["src"],_hoisted_3$17={key:3,class:"no-content"},_hoisted_4$$=createStaticVNode('<svg xmlns="http://www.w3.org/2000/svg" width="61" height="60" fill="none" data-v-c9b0a7c5><path fill="#fff" d="m21.8 45.8-7.1-7.1L2 51.3a5 5 0 1 0 7.2 7.2l12.6-12.7Z" data-v-c9b0a7c5></path><path fill="#CFD4DD" d="M2 54.6c2 2 5.2 2 7.2 0l10.7-10.7 2 2L9.1 58.4A5 5 0 0 1 .9 53c.2.6.6 1.1 1 1.6Z" opacity=".2" data-v-c9b0a7c5></path><path fill="#fff" d="m22.2 35 3.3 3.3-5.6 5.6-3.3-3.3 5.6-5.6Z" data-v-c9b0a7c5></path><path fill="#CFD4DD" d="M19.5 42.8c2-1.8 2.8-4.7 2-7l.7-.8 3.3 3.3-5.6 5.6-.7-.8.3-.3Z" opacity=".2" data-v-c9b0a7c5></path><path fill="#fff" d="M23.8 6A21.7 21.7 0 1 0 54 37.3 21.7 21.7 0 0 0 23.8 6.1Z" data-v-c9b0a7c5></path><path fill="#E7E9EF" d="M38.9 36.8a15.2 15.2 0 1 1 0-30.3 15.2 15.2 0 0 1 0 30.3Z" data-v-c9b0a7c5></path><path fill="#fff" d="M14.7 38.6a5 5 0 0 0 7.2 7.2l-7.2-7.2ZM31.6 24a2.3 2.3 0 1 1 0-4.6 2.3 2.3 0 0 1 0 4.6ZM38.8 24a2.3 2.3 0 1 1 0-4.6 2.3 2.3 0 0 1 0 4.6ZM44 22.8a2.3 2.3 0 1 1 4-2.2 2.3 2.3 0 0 1-4 2.2Z" data-v-c9b0a7c5></path><path stroke="#CFD4DD" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="m14.5 53-7-7M12.3 55.2l-7-7M10 57.4l-7-7M22 35.2a21.2 21.2 0 0 0 3.2 3.3" data-v-c9b0a7c5></path></svg>',1),_hoisted_5$T={class:"error"},_hoisted_6$M=_withScopeId$i(()=>createBaseVNode("div",{class:"circle"},null,-1)),_hoisted_7$E={class:"collectionInfo"},_hoisted_8$x=["textContent"],_hoisted_9$p=["textContent"],_hoisted_10$m={class:"infoNetwork"},_hoisted_11$j=["textContent"],_sfc_main$1O=defineComponent({__name:"CollectionCard",props:{collectionInfo:{},isDisabled:{type:Boolean,default:!1},isSend:{type:Boolean,default:!1},size:{default:"desktop"},type:{default:"dashboard"},errorMessage:{},imgTimeout:{default:1e4},pendingMessage:{default:void 0}},emits:["onClick:more","onClick:selected","onClick:card","load:timeOut"],setup(u,{emit:f}){const d=u,_=f,x=computed(()=>d.size==="mobile"),I=ref(null),E=ref(!1),M=ref(!1),S=()=>{E.value?I.value.pause():I.value.play(),E.value=!E.value},A=()=>{_("onClick:card",d.collectionInfo)};watch(()=>d.collectionInfo.imageUrl,(Y,ie)=>{Y!==ie&&d.collectionInfo.imageUrl.length!==0&&(X.value=!0,M.value=!1,j.value=!1,W.value=!1,Q.value=!1,T())});const T=()=>{const Y=setTimeout(()=>{!Q.value&&!W.value&&(Q.value=!0,j.value=!0),X.value=!1,_("load:timeOut")},d.imgTimeout);watch(()=>Q.value,ie=>{ie&&clearTimeout(Y)})};onMounted(()=>{T()});const D=ref(!1),O=()=>{D.value=!D.value,_("onClick:selected",d.collectionInfo)},j=ref(!1),$=ref(!1),W=ref(!1),Q=ref(!1),X=ref(!1);return watch(()=>d.collectionInfo,(Y,ie)=>{Y.iconUrl!==ie.iconUrl&&d.collectionInfo.iconUrl.length!==0&&($.value=!1)}),(Y,ie)=>(openBlock(),createElementBlock("div",{class:normalizeClass(["collectionWrapper",[Y.isDisabled?"disabled":"",x.value?"mobile":""]]),onClick:ie[7]||(ie[7]=withModifiers(oe=>Y.isSend?O():"",["stop"]))},[createBaseVNode("div",{class:normalizeClass(["collectionImg",Y.pendingMessage?"disabled":""]),onClick:ie[5]||(ie[5]=oe=>Y.isSend?"":A())},[W.value||Q.value||j.value?createCommentVNode("",!0):(openBlock(),createBlock(unref(Skeleton),{key:0,class:"image-skeleton",width:"100%",height:"100%","border-radius":"8px 8px 0 0"})),!M.value&&!j.value?withDirectives((openBlock(),createElementBlock("img",{key:1,src:Y.collectionInfo.imageUrl,alt:"collection IMG",onError:ie[0]||(ie[0]=()=>M.value=!0),onLoad:ie[1]||(ie[1]=()=>Q.value=!0)},null,40,_hoisted_1$1w)),[[vShow,Q.value]]):M.value&&!j.value?withDirectives((openBlock(),createElementBlock("video",{key:2,ref_key:"video",ref:I,class:"video",type:"video/*",src:Y.collectionInfo.imageUrl,controls:!1,loop:"",onCanplay:ie[2]||(ie[2]=()=>W.value=!0),onError:ie[3]||(ie[3]=()=>{j.value=!0,M.value=!1})},null,40,_hoisted_2$1j)),[[vShow,W.value]]):(openBlock(),createElementBlock("div",_hoisted_3$17,[_hoisted_4$$,createBaseVNode("span",_hoisted_5$T,toDisplayString$2(Y.errorMessage),1)])),W.value?(openBlock(),createElementBlock("button",{key:4,class:"videoButton",onClick:ie[4]||(ie[4]=withModifiers(oe=>S(),["stop"]))},[E.value?(openBlock(),createBlock(unref(Element$1),{key:1,name:"Pause",size:x.value?"small":"medium",color:unref(colors).currentThemeRef.value.main},null,8,["size","color"])):(openBlock(),createBlock(unref(Element$1),{key:0,class:"play",name:"Play",size:x.value?"small":"medium",color:unref(colors).currentThemeRef.value.main},null,8,["size","color"]))])):createCommentVNode("",!0),Y.isSend&&!Y.isDisabled&&!Y.pendingMessage?(openBlock(),createElementBlock("button",{key:5,class:normalizeClass(["checkedButton",D.value?"selected":""])},[createVNode(unref(Element$1),{name:"Check",size:"medium",color:unref(colors).currentThemeRef.value.grey_fff},null,8,["color"])],2)):createCommentVNode("",!0)],2),Y.pendingMessage?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(["pending",x.value?"mobile":""])},[_hoisted_6$M,createTextVNode(" "+toDisplayString$2(Y.pendingMessage),1)],2)):createCommentVNode("",!0),createBaseVNode("div",_hoisted_7$E,[createBaseVNode("p",{class:"title",textContent:toDisplayString$2(Y.collectionInfo.tokenName)},null,8,_hoisted_8$x),createBaseVNode("p",{class:"subTitle",textContent:toDisplayString$2(Y.collectionInfo.contractName)},null,8,_hoisted_9$p),createBaseVNode("div",_hoisted_10$m,[$.value?(openBlock(),createBlock(unref(Element$1),{key:1,name:"DefaultIcon",color:unref(colors).currentThemeRef.value.line_01},null,8,["color"])):(openBlock(),createBlock(unref(NetworkIcon),{key:0,"token-src":Y.collectionInfo.iconUrl,size:"custom","custom-size":"18px","onError:tokenIcon":ie[6]||(ie[6]=()=>$.value=!0)},null,8,["token-src"])),createBaseVNode("p",{textContent:toDisplayString$2(Y.collectionInfo.networkName)},null,8,_hoisted_11$j)])])],2))}}),CollectionCard=_export_sfc$1(_sfc_main$1O,[["__scopeId","data-v-c9b0a7c5"]]),_hoisted_1$1v={class:"icon-area"},_hoisted_2$1i={class:"coin-name"},_sfc_main$1N=defineComponent({__name:"CoinIconNameCard",props:{iconUrl:{type:String,default:""},iconSize:{type:String,default:"big"},name:{type:String,default:""},target:{type:String,default:"pc"}},emits:["error:load-token-icon","error:load-network-icon"],setup(u,{emit:f}){const d=u,_=f,x=()=>{_("error:load-network-icon")},I=()=>{_("error:load-token-icon")};return(E,M)=>(openBlock(),createElementBlock("div",{class:normalizeClass(["coin-icon-name-card",{[d.target]:!0}])},[renderSlot(E.$slots,"default",{},()=>[createBaseVNode("div",_hoisted_1$1v,[createVNode(unref(NetworkIcon),{"token-src":u.iconUrl,size:u.iconSize,"onError:networkIcon":x,"onError:tokenIcon":I},null,8,["token-src","size"])]),createBaseVNode("div",_hoisted_2$1i,toDisplayString$2(u.name),1)],!0)],2))}}),CoinIconNameCard=_export_sfc$1(_sfc_main$1N,[["__scopeId","data-v-f1a7f2bc"]]);function useBreakPointsClass(u){const f=useBreakpoints$1(u);return{breakPointsClass:computed(()=>f.desktop.value?"desktop":f.tablet.value?"tablet":"mobile")}}const getKeyframeId=u=>`slide-right-to-left-${u}`,makeKeyframeStyle=(u,f)=>{const d=`#keyframe-${u}`;let _=document.querySelector(d),x=!1;_||(_=document.createElement("style"),_.id=d,x=!0),_.innerHTML=`
@keyframes ${getKeyframeId(u)} {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-${f}px);
  }
}`,x&&document.head.appendChild(_)},useOverflowSlide=(u,f,d)=>{const _=Math.random().toString(16).substring(2,11),{width:x}=useElementSize(u),{width:I}=useElementSize(f);watchEffect(()=>{if(!u.value||!f.value||!E.value)return;const S=I.value-x.value;makeKeyframeStyle(_,S)});const E=computed(()=>I.value>x.value);return{overFlowStyle:computed(()=>E.value?{animationName:getKeyframeId(_),animationDuration:d?.animationDuration||"3s",animationIterationCount:d?.animationIterationCount||"infinite",animationTimingFunction:d?.animationTimingFunction||"default",animationDelay:d?.animationDelay||"1s"}:{}),isOverflow:E}},resizeTextSize=(u,f,d,_,x)=>{const E=document.createElement("canvas").getContext("2d");E.font=`${f}px sans-serif`;const M=E.measureText(u).width+x,S=d/M;return Math.min(Math.floor(f*(S-.15)),_)},getNumericSize=u=>{var f;const d=/((\d(\.\d+)?)+)([a-zA-Z])+/i;return Number.parseFloat(((f=d.exec(u))==null?void 0:f[1])??"0")},useResizeText=(u,f,d,_)=>{const x=ref(8);return watchEffect(async()=>{if(!u.value||!f.value)return;const I=getNumericSize(u.value.style.fontSize),E=getNumericSize(getComputedStyle(f.value).width);x.value=resizeTextSize(u.value.innerText,I,E,d,_?.value??0)}),{resizedFontSize:x}},_hoisted_1$1t={class:"content"},_hoisted_2$1g={class:"media-control"},_hoisted_3$15=["src","alt"],_hoisted_4$Z=["src"],_hoisted_5$R={key:3,class:"no-content"},_hoisted_6$K=createStaticVNode('<svg xmlns="http://www.w3.org/2000/svg" width="51" height="60" viewBox="0 0 61 60" fill="none" data-v-b14a919e><path fill="#fff" d="m21.8 45.8-7.1-7.1L2 51.3a5 5 0 1 0 7.2 7.2l12.6-12.7Z" data-v-b14a919e></path><path fill="#CFD4DD" d="M2 54.6c2 2 5.2 2 7.2 0l10.7-10.7 2 2L9.1 58.4A5 5 0 0 1 .9 53c.2.6.6 1.1 1 1.6Z" opacity=".2" data-v-b14a919e></path><path fill="#fff" d="m22.2 35 3.3 3.3-5.6 5.6-3.3-3.3 5.6-5.6Z" data-v-b14a919e></path><path fill="#CFD4DD" d="M19.5 42.8c2-1.8 2.8-4.7 2-7l.7-.8 3.3 3.3-5.6 5.6-.7-.8.3-.3Z" opacity=".2" data-v-b14a919e></path><path fill="#fff" d="M23.8 6A21.7 21.7 0 1 0 54 37.3 21.7 21.7 0 0 0 23.8 6.1Z" data-v-b14a919e></path><path fill="#E7E9EF" d="M38.9 36.8a15.2 15.2 0 1 1 0-30.3 15.2 15.2 0 0 1 0 30.3Z" data-v-b14a919e></path><path fill="#fff" d="M14.7 38.6a5 5 0 0 0 7.2 7.2l-7.2-7.2ZM31.6 24a2.3 2.3 0 1 1 0-4.6 2.3 2.3 0 0 1 0 4.6ZM38.8 24a2.3 2.3 0 1 1 0-4.6 2.3 2.3 0 0 1 0 4.6ZM44 22.8a2.3 2.3 0 1 1 4-2.2 2.3 2.3 0 0 1-4 2.2Z" data-v-b14a919e></path><path stroke="#CFD4DD" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="m14.5 53-7-7M12.3 55.2l-7-7M10 57.4l-7-7M22 35.2a21.2 21.2 0 0 0 3.2 3.3" data-v-b14a919e></path></svg>',1),_hoisted_7$C={class:"error"},_hoisted_8$v={class:"info"},_sfc_main$1L=defineComponent({__name:"NFTHubLinkCard",props:{type:{default:"nft"},src:{},isTypeOfVideo:{type:Boolean},errorMessage:{default:""},collection:{},tokenName:{},imgTimeout:{default:3e3}},emits:["load:timeOut"],setup(u,{emit:f}){const d=u,_=ref(),x=ref(!1),I=ref(!1),E=ref(!1),M=ref(!1),S=ref(d.isTypeOfVideo),A=f,T=()=>{var j,$;x.value?(j=_.value)==null||j.pause():($=_.value)==null||$.play(),x.value=!x.value};watch(()=>d.src,(j,$)=>{j!==$&&d.src.length!==0&&(M.value=!0,S.value=!1,O.value=!1,I.value=!1,E.value=!1,D())});const D=()=>{const j=setTimeout(()=>{!E.value&&!I.value&&(E.value=!0,O.value=!0),M.value=!1,A("load:timeOut")},d.imgTimeout);watch(()=>E.value,$=>{$&&clearTimeout(j)})};onMounted(()=>{D()});const O=ref(!d.src);return(j,$)=>(openBlock(),createElementBlock("div",{class:normalizeClass(["nftContainer",[j.type]])},[createBaseVNode("div",_hoisted_1$1t,[createBaseVNode("div",_hoisted_2$1g,[I.value||E.value||O.value?createCommentVNode("",!0):(openBlock(),createBlock(unref(Skeleton),{key:0,class:"image-skeleton",width:"100%",height:"100%","border-radius":"8px"})),!S.value&&!O.value&&j.src?(openBlock(),createElementBlock("img",{key:1,src:j.src,alt:j.src,onError:$[0]||($[0]=()=>S.value=!0),onLoad:$[1]||($[1]=()=>E.value=!0)},null,40,_hoisted_3$15)):S.value&&!O.value&&j.src?(openBlock(),createElementBlock("video",{key:2,ref_key:"videoRef",ref:_,type:"video/mp4",src:j.src,onCanplay:$[2]||($[2]=()=>I.value=!0),onError:$[3]||($[3]=()=>{O.value=!0,S.value=!1})},null,40,_hoisted_4$Z)):(openBlock(),createElementBlock("div",_hoisted_5$R,[_hoisted_6$K,createBaseVNode("span",_hoisted_7$C,toDisplayString$2(j.errorMessage),1)])),withDirectives(createBaseVNode("div",{class:"controller",onClick:withModifiers(T,["stop"]),onError:$[4]||($[4]=()=>O.value=!0)},[withDirectives(createVNode(unref(Element$1),{name:"VideoPlay",size:"medium"},null,512),[[vShow,!x.value]]),withDirectives(createVNode(unref(Element$1),{name:"VideoPause",size:"medium"},null,512),[[vShow,x.value]])],544),[[vShow,S.value&&!O.value]])])]),createBaseVNode("div",_hoisted_8$v,[createBaseVNode("span",null,toDisplayString$2(j.tokenName),1),createBaseVNode("span",null,toDisplayString$2(j.collection),1)])],2))}}),NFTHubLinkCard=_export_sfc$1(_sfc_main$1L,[["__scopeId","data-v-b14a919e"]]),_hoisted_1$1s={class:"element-icon"},_hoisted_2$1f={class:"text"},_sfc_main$1K=defineComponent({__name:"SelectIconCardItem",props:{element:{},text:{},isSelected:{type:Boolean},id:{}},setup(u){const f=u,d=computed(()=>f.isSelected?colors.currentThemeRef.value.main:colors.currentThemeRef.value.grey_111);return(_,x)=>(openBlock(),createElementBlock("div",{class:normalizeClass(["card-select-item",{select:_.isSelected}])},[createBaseVNode("div",_hoisted_1$1s,[createVNode(unref(Element$1),{name:_.element.name,size:_.element.size,color:d.value},null,8,["name","size","color"])]),createBaseVNode("div",_hoisted_2$1f,toDisplayString$2(_.text),1)],2))}}),SelectIconCardItem=_export_sfc$1(_sfc_main$1K,[["__scopeId","data-v-e5d708a9"]]),_sfc_main$1J=defineComponent({__name:"SelectIconCard",props:{items:{},flow:{default:"row"},isMulti:{type:Boolean,default:!1}},emits:["update:items"],setup(u,{emit:f}){const d=u,_=f,x=computed(()=>({"--flex-direction":d.flow}));function I(E){if(d.isMulti){const S=d.items.map(A=>({...A,isSelected:A===E?!A.isSelected:A.isSelected}));_("update:items",S);return}const M=d.items.map(S=>({...S,isSelected:S===E}));_("update:items",M)}return(E,M)=>(openBlock(),createElementBlock("div",{class:"card-select",style:normalizeStyle(x.value)},[(openBlock(!0),createElementBlock(Fragment,null,renderList(E.items,S=>(openBlock(),createBlock(SelectIconCardItem,{key:S.element.name+S.text,element:S.element,"is-selected":S.isSelected,text:S.text,onClick:A=>I(S)},null,8,["element","is-selected","text","onClick"]))),128))],4))}}),SelectIconCard=_export_sfc$1(_sfc_main$1J,[["__scopeId","data-v-e064c4e6"]]),_withScopeId$g=u=>(pushScopeId("data-v-6594bcab"),u=u(),popScopeId(),u),_hoisted_1$1o={class:"hublink-share-card"},_hoisted_2$1b=createStaticVNode('<svg class="gradient-filter-svg" width="487" height="342" viewBox="0 0 487 342" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-6594bcab><g opacity="0.6" filter="url(#filter0_f_14882_75570)" data-v-6594bcab><path d="M152.513 223.76C115.595 281.853 48.4914 265.622 27.3674 251.93C-28.7985 201.511 52.6542 169.201 62.6232 141.533C75.0846 106.947 58.2476 44.5745 104.472 24.7618C150.696 4.94911 203.844 36.1504 242.268 87.5243C280.692 138.898 285.019 118.111 392.933 139.023C479.265 155.753 473.175 217.029 440.269 240.278C411.476 260.62 359.394 274.874 306.036 227.828C239.339 169.02 196.856 153.983 152.513 223.76Z" fill="url(#paint0_angular_14882_75570)" data-v-6594bcab></path></g><defs data-v-6594bcab><filter id="filter0_f_14882_75570" x="-111.122" y="-100.158" width="692.721" height="484.015" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB" data-v-6594bcab><feFlood flood-opacity="0" result="BackgroundImageFix" data-v-6594bcab></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape" data-v-6594bcab></feBlend><feGaussianBlur stdDeviation="59.45" result="effect1_foregroundBlur_14882_75570" data-v-6594bcab></feGaussianBlur></filter><radialGradient id="paint0_angular_14882_75570" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(224.013 186.146) rotate(-98.4462) scale(151.68 238.384)" data-v-6594bcab><stop offset="0.0785972" stop-color="#6440DD" data-v-6594bcab></stop><stop offset="0.438386" stop-color="#70E6FB" data-v-6594bcab></stop><stop offset="0.613412" stop-color="#FBF8B3" data-v-6594bcab></stop><stop offset="0.847376" stop-color="#FA8792" data-v-6594bcab></stop></radialGradient></defs></svg>',1),_hoisted_3$11={class:"hublink-share-promo"},_hoisted_4$W={class:"popup-title"},_hoisted_5$O={class:"popup-desc"},_hoisted_6$H={class:"hublink-share-promo2"},_hoisted_7$z=_withScopeId$g(()=>createBaseVNode("svg",{class:"icon-link",width:"21",height:"20",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[createBaseVNode("rect",{width:"20.4255",height:"20",transform:"translate(0.287231)",fill:"white"}),createBaseVNode("path",{d:"M17.1904 3.08403C15.7307 1.64029 13.3507 1.63702 11.891 3.08403L9.38201 5.56556C7.92231 7.00927 7.92231 9.36313 9.38201 10.8068C9.64019 11.0622 10.0606 11.0622 10.3188 10.8068C10.5769 10.5515 10.5769 10.1357 10.3188 9.88039C9.37539 8.94736 9.37539 7.42504 10.3188 6.49201L12.8277 4.01051C13.7711 3.07748 15.3103 3.07748 16.2536 4.01051C17.197 4.94354 17.197 6.46582 16.2536 7.39885L13.7446 9.88039C13.4864 10.1357 13.4864 10.5515 13.7446 10.8068C13.8737 10.9345 14.0425 11 14.2113 11C14.3802 11 14.549 10.9345 14.6781 10.8068L17.1871 8.32534C18.6534 6.87832 18.6534 4.52776 17.1904 3.08403Z",fill:"#999999"}),createBaseVNode("path",{d:"M11.0566 9.19403C10.7723 9.44947 10.7723 9.86538 11.0566 10.1208C11.5596 10.5727 11.8329 11.172 11.8329 11.8171C11.8329 12.4623 11.5559 13.0616 11.0566 13.5135L8.29385 15.9958C7.25147 16.9291 5.56026 16.9291 4.52149 15.9958C4.01851 15.5439 3.74515 14.9446 3.74515 14.2995C3.74515 13.6543 4.02216 13.055 4.52149 12.6031L7.28423 10.1208C7.56853 9.86538 7.56853 9.44947 7.28423 9.19403C6.99994 8.9386 6.53708 8.9386 6.25278 9.19403L3.49001 11.6763C2.71367 12.3739 2.28723 13.3039 2.28723 14.2962C2.28723 15.2884 2.71367 16.2185 3.49001 16.916C4.29551 17.6398 5.3525 18 6.40587 18C7.45919 18 8.51983 17.6398 9.32169 16.916L12.0844 14.4337C12.8608 13.7362 13.2872 12.8061 13.2872 11.8139C13.2872 10.8216 12.8608 9.89157 12.0844 9.19403C11.8001 8.93532 11.3409 8.93532 11.0566 9.19403Z",fill:"#999999"})],-1)),_hoisted_8$s={class:"toast-btn-txt"},_sfc_main$1F=defineComponent({__name:"HubLinkShareCard",props:{locale:{}},emits:["click:share-button","click:close"],setup(u,{emit:f}){const d=f;return(_,x)=>(openBlock(),createElementBlock("div",_hoisted_1$1o,[createVNode(unref(_sfc_main$2I),{class:"heart-envelope-icon"}),_hoisted_2$1b,createBaseVNode("div",_hoisted_3$11,[createBaseVNode("div",_hoisted_4$W,toDisplayString$2(_.locale.title),1),createBaseVNode("div",_hoisted_5$O,toDisplayString$2(_.locale.description),1)]),createBaseVNode("div",_hoisted_6$H,[createBaseVNode("div",{class:"hublink-share-button",onClick:x[0]||(x[0]=I=>d("click:share-button"))},[_hoisted_7$z,createBaseVNode("div",_hoisted_8$s,toDisplayString$2(_.locale.share),1)]),createBaseVNode("div",{class:"toast-btn-close",onClick:x[1]||(x[1]=I=>d("click:close"))},toDisplayString$2(_.locale.close),1)])]))}}),HubLinkShareCard=_export_sfc$1(_sfc_main$1F,[["__scopeId","data-v-6594bcab"]]),_imports_0$2="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAyIiBoZWlnaHQ9IjkxIiB2aWV3Qm94PSIwIDAgMTAyIDkxIiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cGF0aCBkPSJNNTkuNDY4OSA0MS4xOTI2TDMyLjYyMyAzMy4wMzEyTDMyLjU3MzEgNjIuMDE2NUMzMi41NjgyIDY0Ljg2NDYgMzQuNDcwOCA2Ny4zNjMzIDM3LjIxNzUgNjguMTE2Mkw0Mi4zMjY2IDY5LjUxNjdMNDIuMzc3NCA0MC4wMjRMNDkuMzQwNyA0MS42NzA4TDQ5LjI4OTQgNzEuNDIyOUw1OS40MTIxIDc0LjE5NDZMNTkuNDY4OSA0MS4xOTI2WiIgZmlsbD0iI0I4OERGRiIvPgo8cGF0aCBkPSJNNDIuMzc4OSA0MC4wMTk1TDQyLjMyODEgNjkuNTEyMkw0OS4yOTEgNzEuNDE4NEw0OS4zNDIyIDQxLjY2NjRMNDIuMzc4OSA0MC4wMTk1WiIgZmlsbD0idXJsKCNwYWludDBfbGluZWFyXzk1OV8yNDYzMikiLz4KPHBhdGggZD0iTTMxLjE1MjMgMzAuMTcxOUwzMS4xNDIgMzYuMTY3NUMzMS4xMzk2IDM3LjU5MTIgMzIuMDkwNSAzOC44NDA1IDMzLjQ2MzYgMzkuMjE3MUw0MC41NTUxIDQxLjE2MjVMNDAuNTY5NiAzMi43NTJMMzEuMTUyMyAzMC4xNzE5WiIgZmlsbD0iI0IxODJGRiIvPgo8cGF0aCBkPSJNNTkuNDcyOCAzNy45MzMyTDQ4LjA2MDUgMzQuODA0N0w0OC4wNDYxIDQzLjIxNTJMNTkuNDU4MyA0Ni4zNDA0TDU5LjQ3MjggMzcuOTMzMloiIGZpbGw9IiNCMTgyRkYiLz4KPHBhdGggZD0iTTQwLjU3MDMgMzIuNzVMNDAuNTU1OCA0MS4xNjA1TDQ4LjA1MDIgNDMuMjEyMUw0OC4wNjQ3IDM0LjgwMTVMNDAuNTcwMyAzMi43NVoiIGZpbGw9IiNERkNCRkYiLz4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik00MC43MzAzIDMyLjY4OEw0MC41NjE3IDMyLjczNzRMMzEuMTUxIDMwLjE1NzRMNDMuNzM2NiAyNi43NTUxTDQ2LjQ1MzkgMjcuNTYyN0w0OC45MDE5IDI1LjI4Mkw1MC43NzE2IDI2LjM2NThMNTMuOTA5MyAyNS41MzA4TDUxLjIyNjggMjQuNzMzNUw1OC4yNTY4IDIyLjgzNDlDNTkuMDcwOCAyMi42MTUgNTkuOTI4OSAyMi42MTY1IDYwLjc0MjIgMjIuODM5M0w2Ny43NjIzIDI0Ljc2Mkw2NS4yOTY1IDI1LjQ4Nkw2OS44ODg0IDI1LjcwNjRMNzQuNzgyMiAyNi45NDlMNzUuMjQ2MyAyNi44MTI4TDg3LjgyMzQgMzAuMjU4NEw3OC40MDA2IDMyLjgwNjFMNzguMDU3NyAzMi43MDQyTDcwLjUxMyAzNC43MTE5TDcwLjkxMDcgMzQuODNMNTkuNDcxMyAzNy45MjI0TDQ4LjA0OTIgMzQuNzkwNkw0OC4yMjg4IDM0LjczOEw0MC43MzAzIDMyLjY4OFoiIGZpbGw9InVybCgjcGFpbnQxX2xpbmVhcl85NTlfMjQ2MzIpIi8+CjxwYXRoIGQ9Ik02Ny43NjI0IDI0Ljc2NTZMNTkuNDkyMSAyNy4xOTM3TDUyLjI4OTIgMjkuMzA1M0w0MC41NjA0IDMyLjc0NTJMNDguMDQ4MiAzNC43OTM0TDU5LjQ4NDggMzEuNDQxN0w2Ni42ODQzIDI5LjMzMDFMNzUuMjQ2OSAyNi44MTcxTDY3Ljc2MjQgMjQuNzY1NloiIGZpbGw9InVybCgjcGFpbnQyX2xpbmVhcl85NTlfMjQ2MzIpIi8+CjxwYXRoIGQ9Ik02Ni42ODU3IDI5LjMzMjVMNTkuNDkzNSAyNy4xOTYxTDUxLjIyODMgMjQuNzM5NUw0My43MzY3IDI2Ljc2NTJMNTIuMjkwNiAyOS4zMDc3TDU5LjQ4NjIgMzEuNDQ0TDcwLjkxMTEgMzQuODM1Mkw3OC40MDI2IDMyLjgxMjdMNjYuNjg1NyAyOS4zMzI1WiIgZmlsbD0idXJsKCNwYWludDNfbGluZWFyXzk1OV8yNDYzMikiLz4KPHBhdGggZD0iTTYzLjcwODQgMjQuNzI3MUM2Ny4xMzk4IDIyLjI4NzMgNzEuMzcxNSAxOC40MjA5IDcxLjIwNzkgMTQuMjk0MUM3MS4xNzMzIDEzLjQwNDQgNzAuOTM1MiAxMi41MDQ1IDcwLjQ0MSAxMS42MDA5TDc1LjEyMTkgMTUuNjYzMkM3NS40NDcxIDIzLjE3ODEgNjEuODgyMSAyOS4xNTI1IDYxLjg4MjEgMjkuMTUyNUw1OS40NTkyIDI3LjM2NTdDNTkuNDU5MiAyNy4zNjU3IDYxLjQwNDMgMjYuMzY3OCA2My43MTE3IDI0LjcyNzFMNjMuNzA4NCAyNC43MjcxWiIgZmlsbD0idXJsKCNwYWludDRfbGluZWFyXzk1OV8yNDYzMikiLz4KPHBhdGggZD0iTTcxLjIwNTkgMTQuMjkyNUM2NC4yODQ0IDE4Ljg3NjUgNjMuNzE5NyAyNC42MjA0IDYzLjcwOTcgMjQuNzI1NUM2MS40MDIzIDI2LjM2NjIgNTkuNDU3MiAyNy4zNjQxIDU5LjQ1NzIgMjcuMzY0MUM2My44MjUyIDExLjAyOTggNzAuNDQyNCAxMS41OTkzIDcwLjQ0MjQgMTEuNTk5M0M3MC45MzY1IDEyLjUwMjkgNzEuMTc0NiAxMy40MDI4IDcxLjIwOTIgMTQuMjkyNUw3MS4yMDU5IDE0LjI5MjVaIiBmaWxsPSJ1cmwoI3BhaW50NV9saW5lYXJfOTU5XzI0NjMyKSIvPgo8cGF0aCBkPSJNNzguMzk5IDM1LjUxNDNMNjkuMDAwNSAzNy4zMDA0TDY3LjYyOTEgMzguNzQ5MUw1OS40NzA0IDQxLjE5NzFMNTkuNDEzNiA3NC4xOTI1TDU5LjQxMzYgNzQuMTk5MUw2OS41NDkgNzEuNDU5TDc2LjUxODQgNjkuNTc2OEw4MS42Mjc2IDY4LjE5NjRDODQuMzc3NiA2Ny40NTM0IDg2LjI4OTQgNjQuOTYxIDg2LjI5NDMgNjIuMTEyNEw4Ni4zNDQyIDMzLjEyODNMNzguMzk5IDM1LjUxNDNaIiBmaWxsPSJ1cmwoI3BhaW50Nl9saW5lYXJfOTU5XzI0NjMyKSIvPgo8cGF0aCBkPSJNNzAuODkxNCA0My4yNDgyTDg1LjQ4MzMgMzkuMzA0MkM4Ni44NTgyIDM4LjkzMjcgODcuODE0IDM3LjY4NjUgODcuODE2NCAzNi4yNjIzTDg3LjgyNjcgMzAuMjY3NUw1OS40NzMxIDM3LjkzTDU5LjQ1ODYgNDYuMzM3M0w2OS41OTczIDQzLjU5NzJMNzAuODkxNCA0My4yNDgyWiIgZmlsbD0idXJsKCNwYWludDdfbGluZWFyXzk1OV8yNDYzMikiLz4KPHBhdGggZD0iTTU4LjI0MzMgMTQuODE1N0M1Ny44MTA3IDE0LjQxMTIgNTcuMjc5MyAxNC4xMjc5IDU2LjYzNjEgMTQuMDA1NEM1NC43NTMzIDE2Ljk3MzEgNTYuNTkxOSAyMC42NDk3IDU2LjU5MTkgMjAuNjQ5N0w1Ni42NTMyIDIzLjEzMTZMNTkuNDUyNyAyNy4zNzEyQzU5LjQ1MjcgMjcuMzcxMiA1OS43ODcxIDI1Ljc2IDU5Ljk2MTQgMjMuNjUyN0M1OS44NDM1IDIzLjQ2ODcgNTcuMzI5MyAxOS40MTk5IDU4LjI0IDE0LjgxNTdMNTguMjQzMyAxNC44MTU3WiIgZmlsbD0idXJsKCNwYWludDhfbGluZWFyXzk1OV8yNDYzMikiLz4KPHBhdGggZD0iTTYwLjE2MjQgMTMuNjUzOUw1OC40OTEyIDEzLjgxODRMNTYuNjM2MSAxMy45OTkxQzU3LjI3OTMgMTQuMTIxNiA1Ny44MDc0IDE0LjQwNDkgNTguMjQzMyAxNC44MDk0QzYwLjEzMTIgMTYuNTY5IDYwLjIxNjEgMjAuNjE2OCA1OS45NjQ3IDIzLjY0NjRDNTkuNzkwMyAyNS43NTM3IDU5LjQ1NiAyNy4zNjUgNTkuNDU2IDI3LjM2NUw2MC4xODUgMjcuMjMxNkw2MS40MDUgMjQuMTM0N0w2Mi4zMDg0IDIxLjg0MTZDNjIuNzA3NyAxNC45MDkgNjAuMTU5MiAxMy42NTA2IDYwLjE1OTIgMTMuNjUwNkw2MC4xNjI0IDEzLjY1MzlaIiBmaWxsPSJ1cmwoI3BhaW50OV9saW5lYXJfOTU5XzI0NjMyKSIvPgo8cGF0aCBkPSJNNTUuMTU2OSAyNC43MTk5QzUxLjczMzggMjIuMjY4MyA0Ny41MTU1IDE4LjM4NzMgNDcuNjkzNCAxNC4yNjEyQzQ3LjczMSAxMy4zNzE2IDQ3Ljk3MjIgMTIuNDcyNSA0OC40Njk0IDExLjU3MDZMNDMuNzc0NiAxNS42MTY4QzQzLjQyMzYgMjMuMTMwNSA1Ni45Njc5IDI5LjE1MTUgNTYuOTY3OSAyOS4xNTE1TDU5LjM5NyAyNy4zNzMxQzU5LjM5NyAyNy4zNzMxIDU3LjQ1NTMgMjYuMzY4NSA1NS4xNTM2IDI0LjcxOTlMNTUuMTU2OSAyNC43MTk5WiIgZmlsbD0idXJsKCNwYWludDEwX2xpbmVhcl85NTlfMjQ2MzIpIi8+CjxwYXRoIGQ9Ik00Ny42OTU5IDE0LjI1MjhDNTQuNjAxNiAxOC44NjA2IDU1LjE0NjUgMjQuNjA2NSA1NS4xNTYxIDI0LjcxMTVDNTcuNDU3OCAyNi4zNjAyIDU5LjM5OTUgMjcuMzY0OCA1OS4zOTk1IDI3LjM2NDhDNTUuMDg3OCAxMS4wMTU1IDQ4LjQ2ODcgMTEuNTYyMiA0OC40Njg3IDExLjU2MjJDNDcuOTcxNSAxMi40NjQxIDQ3LjczMDMgMTMuMzYzMiA0Ny42OTI2IDE0LjI1MjhMNDcuNjk1OSAxNC4yNTI4WiIgZmlsbD0idXJsKCNwYWludDExX2xpbmVhcl85NTlfMjQ2MzIpIi8+CjxwYXRoIGQ9Ik02OS41OTQ0IDQzLjU5NzNMNjkuNTQ2NCA3MS40NTE5TDc2LjUxNTggNjkuNTY5N0w3Ni41NjM4IDQxLjcxNTFMNzAuODg4NCA0My4yNDgzTDY5LjU5NDQgNDMuNTk3M1oiIGZpbGw9InVybCgjcGFpbnQxMl9saW5lYXJfOTU5XzI0NjMyKSIvPgo8cGF0aCBkPSJNNzguNDAyOCAzMi44MTM3TDcwLjkwNDcgMzQuODQyN0w3MC44OTAyIDQzLjI0OTlMNzguMzg4MyA0MS4yMjc1TDc4LjQwMjggMzIuODEzN1oiIGZpbGw9IiNEOEMwRkYiLz4KPGcgZmlsdGVyPSJ1cmwoI2ZpbHRlcjBfZF85NTlfMjQ2MzIpIj4KPHBhdGggZD0iTTcuNzg1MTYgMzIuMTk1M0M5LjI3ODk3IDM0LjUwNzggMTAuMTkzNCAzNS42MDE4IDExLjk0MTkgMzcuMjQzM0MxNC40MTQ4IDM1LjYwNiAxNS41MzEyIDM0LjY5NTYgMTYuOTg5OCAzMy4wODY1IiBzdHJva2U9IiNGRjJENzIiIHN0cm9rZS13aWR0aD0iMTIuMDYzMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+CjwvZz4KPGcgb3BhY2l0eT0iMC4zIiBmaWx0ZXI9InVybCgjZmlsdGVyMV9mXzk1OV8yNDYzMikiPgo8Y2lyY2xlIGN4PSI5Ljc0NzM5IiBjeT0iMzIuMzg5IiByPSIzLjczMzk5IiB0cmFuc2Zvcm09InJvdGF0ZSg1LjUzMDE2IDkuNzQ3MzkgMzIuMzg5KSIgZmlsbD0id2hpdGUiLz4KPC9nPgo8ZyBmaWx0ZXI9InVybCgjZmlsdGVyMl9kXzk1OV8yNDYzMikiPgo8cGF0aCBkPSJNMjcuMzI2MiAxOS40MDIzQzI4LjM0NDYgMjAuMjE1MSAyOC45MTk3IDIwLjU2ODMgMjkuOTUxNCAyMS4wNDE3QzMwLjgxNDUgMTkuOTM0NyAzMS4xNzg0IDE5LjM1ODEgMzEuNTkwNyAxOC40MTY1IiBzdHJva2U9IiNGRjJENzIiIHN0cm9rZS13aWR0aD0iNS43MDk1OSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+CjwvZz4KPGcgb3BhY2l0eT0iMC4yNSIgZmlsdGVyPSJ1cmwoI2ZpbHRlcjNfZl85NTlfMjQ2MzIpIj4KPGVsbGlwc2UgY3g9IjI4LjQxMjkiIGN5PSIxOS41Njk5IiByeD0iMS43NjczMiIgcnk9IjEuNzY3MzIiIHRyYW5zZm9ybT0icm90YXRlKC0xMy4wMTY4IDI4LjQxMjkgMTkuNTY5OSkiIGZpbGw9IndoaXRlIi8+CjwvZz4KPGRlZnM+CjxmaWx0ZXIgaWQ9ImZpbHRlcjBfZF85NTlfMjQ2MzIiIHg9IjAuMDA3MDk5MDMiIHk9IjI0Ljc2ODIiIHdpZHRoPSIyNi41MDQxIiBoZWlnaHQ9IjIzLjk3NjciIGZpbHRlclVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgY29sb3ItaW50ZXJwb2xhdGlvbi1maWx0ZXJzPSJzUkdCIj4KPGZlRmxvb2QgZmxvb2Qtb3BhY2l0eT0iMCIgcmVzdWx0PSJCYWNrZ3JvdW5kSW1hZ2VGaXgiLz4KPGZlQ29sb3JNYXRyaXggaW49IlNvdXJjZUFscGhhIiB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMTI3IDAiIHJlc3VsdD0iaGFyZEFscGhhIi8+CjxmZU9mZnNldCBkeD0iMC44NzI0MjciIGR5PSIxLjIyMTQiLz4KPGZlR2F1c3NpYW5CbHVyIHN0ZERldmlhdGlvbj0iMS4zMDg2NCIvPgo8ZmVDb21wb3NpdGUgaW4yPSJoYXJkQWxwaGEiIG9wZXJhdG9yPSJvdXQiLz4KPGZlQ29sb3JNYXRyaXggdHlwZT0ibWF0cml4IiB2YWx1ZXM9IjAgMCAwIDAgMSAwIDAgMCAwIDAuMTc2NDcxIDAgMCAwIDAgMC40NDcwNTkgMCAwIDAgMC4zIDAiLz4KPGZlQmxlbmQgbW9kZT0ibm9ybWFsIiBpbjI9IkJhY2tncm91bmRJbWFnZUZpeCIgcmVzdWx0PSJlZmZlY3QxX2Ryb3BTaGFkb3dfOTU5XzI0NjMyIi8+CjxmZUJsZW5kIG1vZGU9Im5vcm1hbCIgaW49IlNvdXJjZUdyYXBoaWMiIGluMj0iZWZmZWN0MV9kcm9wU2hhZG93Xzk1OV8yNDYzMiIgcmVzdWx0PSJzaGFwZSIvPgo8L2ZpbHRlcj4KPGZpbHRlciBpZD0iZmlsdGVyMV9mXzk1OV8yNDYzMiIgeD0iMi41MjM5NiIgeT0iMjUuMTY2NSIgd2lkdGg9IjE0LjQ0ODIiIGhlaWdodD0iMTQuNDQ4MiIgZmlsdGVyVW5pdHM9InVzZXJTcGFjZU9uVXNlIiBjb2xvci1pbnRlcnBvbGF0aW9uLWZpbHRlcnM9InNSR0IiPgo8ZmVGbG9vZCBmbG9vZC1vcGFjaXR5PSIwIiByZXN1bHQ9IkJhY2tncm91bmRJbWFnZUZpeCIvPgo8ZmVCbGVuZCBtb2RlPSJub3JtYWwiIGluPSJTb3VyY2VHcmFwaGljIiBpbjI9IkJhY2tncm91bmRJbWFnZUZpeCIgcmVzdWx0PSJzaGFwZSIvPgo8ZmVHYXVzc2lhbkJsdXIgc3RkRGV2aWF0aW9uPSIxLjc0NDg1IiByZXN1bHQ9ImVmZmVjdDFfZm9yZWdyb3VuZEJsdXJfOTU5XzI0NjMyIi8+CjwvZmlsdGVyPgo8ZmlsdGVyIGlkPSJmaWx0ZXIyX2RfOTU5XzI0NjMyIiB4PSIyMS4yMjA3IiB5PSIxMi4zMTI1IiB3aWR0aD0iMTguNDc0NiIgaGVpZ2h0PSIxNy41MTU2IiBmaWx0ZXJVbml0cz0idXNlclNwYWNlT25Vc2UiIGNvbG9yLWludGVycG9sYXRpb24tZmlsdGVycz0ic1JHQiI+CjxmZUZsb29kIGZsb29kLW9wYWNpdHk9IjAiIHJlc3VsdD0iQmFja2dyb3VuZEltYWdlRml4Ii8+CjxmZUNvbG9yTWF0cml4IGluPSJTb3VyY2VBbHBoYSIgdHlwZT0ibWF0cml4IiB2YWx1ZXM9IjAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDEyNyAwIiByZXN1bHQ9ImhhcmRBbHBoYSIvPgo8ZmVPZmZzZXQgZHg9IjEiIGR5PSIxIi8+CjxmZUdhdXNzaWFuQmx1ciBzdGREZXZpYXRpb249IjIuMTI1Ii8+CjxmZUNvbXBvc2l0ZSBpbjI9ImhhcmRBbHBoYSIgb3BlcmF0b3I9Im91dCIvPgo8ZmVDb2xvck1hdHJpeCB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAxIDAgMCAwIDAgMC4xNzY0NzEgMCAwIDAgMCAwLjQ0NzA1OSAwIDAgMCAwLjMgMCIvPgo8ZmVCbGVuZCBtb2RlPSJub3JtYWwiIGluMj0iQmFja2dyb3VuZEltYWdlRml4IiByZXN1bHQ9ImVmZmVjdDFfZHJvcFNoYWRvd185NTlfMjQ2MzIiLz4KPGZlQmxlbmQgbW9kZT0ibm9ybWFsIiBpbj0iU291cmNlR3JhcGhpYyIgaW4yPSJlZmZlY3QxX2Ryb3BTaGFkb3dfOTU5XzI0NjMyIiByZXN1bHQ9InNoYXBlIi8+CjwvZmlsdGVyPgo8ZmlsdGVyIGlkPSJmaWx0ZXIzX2ZfOTU5XzI0NjMyIiB4PSIyNC45OTI4IiB5PSIxNi4xNDkxIiB3aWR0aD0iNi44Mzg1NSIgaGVpZ2h0PSI2LjgzODU1IiBmaWx0ZXJVbml0cz0idXNlclNwYWNlT25Vc2UiIGNvbG9yLWludGVycG9sYXRpb24tZmlsdGVycz0ic1JHQiI+CjxmZUZsb29kIGZsb29kLW9wYWNpdHk9IjAiIHJlc3VsdD0iQmFja2dyb3VuZEltYWdlRml4Ii8+CjxmZUJsZW5kIG1vZGU9Im5vcm1hbCIgaW49IlNvdXJjZUdyYXBoaWMiIGluMj0iQmFja2dyb3VuZEltYWdlRml4IiByZXN1bHQ9InNoYXBlIi8+CjxmZUdhdXNzaWFuQmx1ciBzdGREZXZpYXRpb249IjAuODI1ODQ4IiByZXN1bHQ9ImVmZmVjdDFfZm9yZWdyb3VuZEJsdXJfOTU5XzI0NjMyIi8+CjwvZmlsdGVyPgo8bGluZWFyR3JhZGllbnQgaWQ9InBhaW50MF9saW5lYXJfOTU5XzI0NjMyIiB4MT0iNDYuMTExMyIgeTE9IjU2LjM5MTMiIHgyPSI0NS43MzA4IiB5Mj0iMzEuMTkxMyIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgo8c3RvcCBzdG9wLWNvbG9yPSIjRTNEMkZGIi8+CjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iI0VFRUJGRiIvPgo8L2xpbmVhckdyYWRpZW50Pgo8bGluZWFyR3JhZGllbnQgaWQ9InBhaW50MV9saW5lYXJfOTU5XzI0NjMyIiB4MT0iNTkuODMzNSIgeTE9IjE3LjYzMDQiIHgyPSI2MC4wNzk1IiB5Mj0iMzguNzQ5MiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgo8c3RvcCBzdG9wLWNvbG9yPSIjQjg4REZGIi8+CjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iI0I4OERGRiIvPgo8L2xpbmVhckdyYWRpZW50Pgo8bGluZWFyR3JhZGllbnQgaWQ9InBhaW50Ml9saW5lYXJfOTU5XzI0NjMyIiB4MT0iNDguNDg2NCIgeTE9IjI3LjI5MyIgeDI9IjQwLjc2MTgiIHkyPSI0MS4wNTA0IiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+CjxzdG9wIHN0b3AtY29sb3I9IiNFM0QyRkYiLz4KPHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSJ3aGl0ZSIvPgo8L2xpbmVhckdyYWRpZW50Pgo8bGluZWFyR3JhZGllbnQgaWQ9InBhaW50M19saW5lYXJfOTU5XzI0NjMyIiB4MT0iNTMuNDQ5NyIgeTE9IjI2LjkyNjMiIHgyPSI5NS41OTE0IiB5Mj0iNDMuODU5OCIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgo8c3RvcCBzdG9wLWNvbG9yPSIjRTNEMkZGIi8+CjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0id2hpdGUiLz4KPC9saW5lYXJHcmFkaWVudD4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDRfbGluZWFyXzk1OV8yNDYzMiIgeDE9IjY2LjU2MDUiIHkxPSIyNi4yNzg4IiB4Mj0iODEuNjUyNCIgeTI9IjQuNTUxOTEiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KPHN0b3Agc3RvcC1jb2xvcj0iI0RCQzVGRiIvPgo8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IndoaXRlIi8+CjwvbGluZWFyR3JhZGllbnQ+CjxsaW5lYXJHcmFkaWVudCBpZD0icGFpbnQ1X2xpbmVhcl85NTlfMjQ2MzIiIHgxPSI2OS43NTg4IiB5MT0iMTIuMTQ1MSIgeDI9IjYxLjY3OTIiIHkyPSIyNi45NDU3IiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+CjxzdG9wIHN0b3AtY29sb3I9IiNDOEE2RkYiLz4KPHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjQkI5MUZGIi8+CjwvbGluZWFyR3JhZGllbnQ+CjxsaW5lYXJHcmFkaWVudCBpZD0icGFpbnQ2X2xpbmVhcl85NTlfMjQ2MzIiIHgxPSI2Ni4xNDYzIiB5MT0iNDUuNDQ4MyIgeDI9Ijc5LjYyNDUiIHkyPSI3OS41MzI1IiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+CjxzdG9wIHN0b3AtY29sb3I9IiNCODhERkYiLz4KPHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjQTE2OEZGIi8+CjwvbGluZWFyR3JhZGllbnQ+CjxsaW5lYXJHcmFkaWVudCBpZD0icGFpbnQ3X2xpbmVhcl85NTlfMjQ2MzIiIHgxPSI3My42NTY1IiB5MT0iMzAuMjQzMSIgeDI9IjczLjgyNzciIHkyPSI1MC4yMTU5IiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+CjxzdG9wIHN0b3AtY29sb3I9IiNCODhERkYiLz4KPHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjQTE2OEZGIi8+CjwvbGluZWFyR3JhZGllbnQ+CjxsaW5lYXJHcmFkaWVudCBpZD0icGFpbnQ4X2xpbmVhcl85NTlfMjQ2MzIiIHgxPSI1Ny44ODU1IiB5MT0iMTQuMDA3NSIgeDI9IjU5LjY2OTgiIHkyPSIyNi41MzcxIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+CjxzdG9wIHN0b3AtY29sb3I9IiNDOEE2RkYiLz4KPHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjQkI5MUZGIi8+CjwvbGluZWFyR3JhZGllbnQ+CjxsaW5lYXJHcmFkaWVudCBpZD0icGFpbnQ5X2xpbmVhcl85NTlfMjQ2MzIiIHgxPSI2My4wNTY2IiB5MT0iMjQuOTk2OSIgeDI9IjUzLjAwODEiIHkyPSIyLjY4NTk1IiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+CjxzdG9wIHN0b3AtY29sb3I9IiNDOEE2RkYiLz4KPHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSJ3aGl0ZSIvPgo8L2xpbmVhckdyYWRpZW50Pgo8bGluZWFyR3JhZGllbnQgaWQ9InBhaW50MTBfbGluZWFyXzk1OV8yNDYzMiIgeDE9IjUzLjIxNTMiIHkxPSIyNi4wMzk5IiB4Mj0iMzMuNTU4NCIgeTI9IjUuNjUzMTgiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KPHN0b3Agc3RvcC1jb2xvcj0iI0RCQzVGRiIvPgo8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IndoaXRlIi8+CjwvbGluZWFyR3JhZGllbnQ+CjxsaW5lYXJHcmFkaWVudCBpZD0icGFpbnQxMV9saW5lYXJfOTU5XzI0NjMyIiB4MT0iNDkuNjE5MyIgeTE9IjEzLjcxMDciIHgyPSI1Ni4yMjg3IiB5Mj0iMjQuMjg2MiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgo8c3RvcCBzdG9wLWNvbG9yPSIjQzhBNkZGIi8+CjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iI0JCOTFGRiIvPgo8L2xpbmVhckdyYWRpZW50Pgo8bGluZWFyR3JhZGllbnQgaWQ9InBhaW50MTJfbGluZWFyXzk1OV8yNDYzMiIgeDE9Ijc0LjM0MSIgeTE9IjU1LjUyMjgiIHgyPSI3NC42MDU4IiB5Mj0iMzguNjkwMyIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgo8c3RvcCBzdG9wLWNvbG9yPSIjRTNEMkZGIi8+CjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iI0VFRUJGRiIvPgo8L2xpbmVhckdyYWRpZW50Pgo8L2RlZnM+Cjwvc3ZnPgo=",gift_box=Object.freeze(Object.defineProperty({__proto__:null,default:_imports_0$2},Symbol.toStringTag,{value:"Module"})),_hoisted_1$1n={class:"bonus-mission-card"},_hoisted_2$1a={class:"content-wrapper"},_hoisted_3$10={class:"title-wrapper"},_hoisted_4$V={class:"quest-title"},_hoisted_5$N={class:"quest-description"},_hoisted_6$G={class:"image-wrapper"},_hoisted_7$y=["src"],_hoisted_8$r={class:"mission-chip"},_hoisted_9$l={key:0,class:"box-image",src:_imports_0$2},_sfc_main$1E=defineComponent({__name:"BonusMissionCard",props:{title:{},description:{},assets:{},showBox:{type:Boolean},chipText:{}},setup(u){return(f,d)=>(openBlock(),createElementBlock("div",_hoisted_1$1n,[createBaseVNode("div",_hoisted_2$1a,[createBaseVNode("div",_hoisted_3$10,[createBaseVNode("div",_hoisted_4$V,toDisplayString$2(f.title),1),createBaseVNode("div",_hoisted_5$N,toDisplayString$2(f.description),1)]),createBaseVNode("div",_hoisted_6$G,[f.assets.length>0?(openBlock(!0),createElementBlock(Fragment,{key:0},renderList(f.assets,_=>(openBlock(),createElementBlock("img",{key:_,src:_},null,8,_hoisted_7$y))),128)):createCommentVNode("",!0),renderSlot(f.$slots,"default",{},void 0,!0)])]),createBaseVNode("div",_hoisted_8$r,[createVNode(unref(Element$1),{name:"Present",size:"medium",color:unref(colors).currentThemeRef.value.main},null,8,["color"]),createBaseVNode("span",null,toDisplayString$2(f.chipText),1)]),f.showBox?(openBlock(),createElementBlock("img",_hoisted_9$l)):createCommentVNode("",!0)]))}}),BonusMissionCard=_export_sfc$1(_sfc_main$1E,[["__scopeId","data-v-0b503112"]]),_imports_0$1="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIj4KICA8cGF0aCBkPSJNNi4xNzMxOSAxOC43MTM1QzUuNjAxNDcgMTguMTQyIDUuMTI5MTggMTcuNTQ5NiA0Ljc3MzE1IDE2Ljk4MDVMMy43MDUwOCAxOS4yMDQxQzMuOTgyNTIgMTkuNTczNyA0LjI5MzY0IDE5LjkzNTIgNC42MjE2IDIwLjI2MzhDNC45NDk1NiAyMC41OTE3IDUuMzExMiAyMC45MDM1IDUuNjgxNjYgMjEuMTgwMUw3LjkwNjAxIDIwLjExMjNDNy4zMzY2OSAxOS43NTY0IDYuNzQ0MTIgMTkuMjg0MyA2LjE3MjM5IDE4LjcxMjdMNi4xNzMxOSAxOC43MTM1WiIgZmlsbD0idXJsKCNwYWludDBfbGluZWFyXzkxODJfMTAzOTQpIi8+CiAgPHBhdGggZD0iTTguMzY3NTcgMTkuODUwNUM4LjMyMjY3IDE5LjgyNDEgOC4yNzY5NiAxOS43OTY4IDguMjMyMDYgMTkuNzY4OEM3LjYzMzg3IDE5LjQwMTYgNy4wMTgwNSAxOC45MTI3IDYuNDk3NjQgMTguMzkyNEM1Ljk3NzI0IDE3Ljg3MjIgNS40ODgxIDE3LjI1NjYgNS4xMjA4NSAxNi42NTg2QzUuMDkyNzkgMTYuNjEyOSA1LjA2NTUyIDE2LjU2OCA1LjAzOTA2IDE2LjUyMzFMNi4xMTgzNiAxNC4yNzU0QzYuMTQ4MDMgMTQuMzQ1MSA2LjE3OTMgMTQuNDE0OSA2LjIxMjE4IDE0LjQ4M0M2LjU5MzA2IDE1LjI3OTggNy4yMDgwOSAxNi4xMTU5IDcuOTkxNSAxNi44OTlDOC43NzQ5MiAxNy42ODIyIDkuNjEwNDUgMTguMjk3OCAxMC40MDgzIDE4LjY3NzhDMTAuNDc2NSAxOC43MTA3IDEwLjU0NjIgMTguNzQxOSAxMC42MTYgMTguNzcxNkw4LjM2NzU3IDE5Ljg1MDVaIiBmaWxsPSJ1cmwoI3BhaW50MV9saW5lYXJfOTE4Ml8xMDM5NCkiLz4KICA8cGF0aCBkPSJNNi4xMTU1OSAxNC4zNzE1QzYuMTM0ODMgMTQuNDE0OCA2LjE1NDg4IDE0LjQ1NzMgNi4xNzQ5MyAxNC40OTk4QzYuNTU3NDEgMTUuMzAxNCA3LjE3NTY0IDE2LjEzOTkgNy45NjIyNyAxNi45MjcxQzguNzQ4ODkgMTcuNzEzNCA5LjU4ODQzIDE4LjMzMTUgMTAuMzkwMyAxOC43MTM4QzEwLjQzMjggMTguNzMzOSAxMC40NzUzIDE4Ljc1MzkgMTAuNTE4NiAxOC43NzMyTDEwLjQ4NDkgMTguNzg5Mkw4LjYzNTgzIDE5LjY3NjZMOC4zNjg4MSAxOS44MDQ4QzguMzMwMzIgMTkuNzgxNiA4LjI5MTAzIDE5Ljc1ODMgOC4yNTE3NCAxOS43MzQzQzcuNjU1OTYgMTkuMzY4NyA3LjA0MjU0IDE4Ljg4MjIgNi41MjQ1NCAxOC4zNjM1QzYuMDA2NTQgMTcuODQ1NyA1LjUxOTgxIDE3LjIzMjUgNS4xNTMzNiAxNi42MzY5QzUuMTI5MzEgMTYuNTk3NiA1LjEwNjA1IDE2LjU1OTEgNS4wODI4IDE2LjUxOThMNS4yMTEwOSAxNi4yNTI5TDYuMDk4NzUgMTQuNDA0NEw2LjExNDc5IDE0LjM3MDdNNi4xMTk2IDE0LjE3NjhMNi4wMjY1OCAxNC4zNzA3TDUuMTM4OTMgMTYuMjE5Mkw0Ljk5MjE5IDE2LjUyNDdDNS4wMjE4NiAxNi41NzYgNS4wNTMxMyAxNi42MjgxIDUuMDg1MiAxNi42Nzk0QzUuNDUxNjUgMTcuMjc2NiA1LjkzOTE4IDE3Ljg5MjIgNi40Njc2IDE4LjQyMDRDNi45OTYwMyAxOC45NDg3IDcuNjEyNjYgMTkuNDM2MSA4LjIwOTI0IDE5LjgwMjRDOC4yNjEzNiAxOS44MzQ1IDguMzEyNjggMTkuODY0OSA4LjM2NCAxOS44OTU0TDguNjY5NSAxOS43NDg3TDEwLjUxODYgMTguODYxM0wxMC43MTI2IDE4Ljc2ODNDMTAuNjE4IDE4LjcyOTkgMTAuNTIxOCAxOC42ODc0IDEwLjQyNCAxOC42NDA5QzkuNjYzODEgMTguMjc3OCA4LjgyMDI1IDE3LjY3MDkgOC4wMTg0IDE2Ljg3MDFDNy4yMTY1NCAxNi4wNjkzIDYuNjA5NTMgMTUuMjI1MyA2LjI0NzA5IDE0LjQ2NTNDNi4yMDA1OSAxNC4zNjc1IDYuMTU4MDkgMTQuMjcxMyA2LjExOTYgMTQuMTc2OFoiIGZpbGw9InVybCgjcGFpbnQyX2xpbmVhcl85MTgyXzEwMzk0KSIvPgogIDxwYXRoIGQ9Ik0xMS40NDcyIDUuMjMxMUMxMS40NDcyIDUuMjMxMSAxMS43NSA0LjgxIDEyLjczMDQgNC42MTE3OUwxMy41MDgxIDQuNDExMTFMMTQuMTMzNiA0LjIxMTE5QzE0LjEzMzYgNC4yMTExOSAxNC4wMTQyIDQuOTIwMzcgMTMuMzIzMSA1LjEyMDExTDExLjQxMzYgNS42Mzg5OEwxMS40NDcyIDUuMjMxMVoiIGZpbGw9InVybCgjcGFpbnQzX2xpbmVhcl85MTgyXzEwMzk0KSIvPgogIDxwYXRoIGQ9Ik0zLjQ5ODAxIDE5LjYyNzlMMi45MTE4NSAyMC44NDk2QzIuNTY5NDYgMjEuNTYzOCAzLjMxNjc5IDIyLjMxMDkgNC4wMzA0NCAyMS45Njc4TDUuMjUyNDcgMjEuMzgxOEM0Ljk0MjE1IDIxLjEzNTcgNC42MzEwMyAyMC44NiA0LjMyNTUyIDIwLjU1NDZDNC4wMjAwMSAyMC4yNDkyIDMuNzQ0MTggMTkuOTM4MiAzLjQ5ODAxIDE5LjYyNzlaIiBmaWxsPSJ1cmwoI3BhaW50NF9saW5lYXJfOTE4Ml8xMDM5NCkiLz4KICA8cGF0aCBkPSJNNC45OTAwMSAxNi41MjA1TDQuOTUzMTIgMTYuNTk3NUM0Ljk5NjQzIDE2LjYyMzEgNS4wMzk3MyAxNi42NDg4IDUuMDgzMDMgMTYuNjc1MkM1LjA1MDk1IDE2LjYyMzEgNS4wMjA0OCAxNi41NzE4IDQuOTkwMDEgMTYuNTIwNVoiIGZpbGw9ImJsYWNrIi8+CiAgPHBhdGggZD0iTTEzLjEzMDkgMi4wNDc2QzEyLjc0NTEgMS45NDU3NiAxMi4zMzMzIDEuOTc4NjggMTEuOTUgMi4wNzI1MkMxMS45NSAyLjA3MjUyIDExLjY2MiAyLjY3Mzc4IDExLjY2MTIgMi42NzM5MUMxMS42NzQ0IDIuNjQ3MTkgMTEuODEyOSAyLjYyNDYxIDExLjgzODYgMi42MTc2OEMxMS45OTE3IDIuNTc2MjcgMTIuMTQ4OSAyLjU0ODggMTIuMzA2NiAyLjUzODMyQzEyLjcwMDIgMi41MTI2NyAxMy4wNjkxIDIuNjUzMjYgMTMuMzY0NCAyLjkxMjUxQzEzLjUwMSAzLjAzMjY3IDEzLjYwNzUgMy4xNDgzMyAxMy42OTE0IDMuMjU1NzJDMTMuODQ1NiAzLjQ1MzM3IDEzLjk0MTIgMy42OTI5OSAxMy45NDUyIDMuOTQzNzVDMTMuOTQ2OSA0LjA1NTc1IDEzLjkzNzcgNC4xNzY1OCAxMy44ODk2IDQuMjkyNDFMMTQuMTMwMiA0LjIxMjI1QzE0LjM1MiAzLjM0NDI1IDE0LjAyNzYgMi4yODMxMSAxMy4xMzA2IDIuMDQ2MDJMMTMuMTMwOSAyLjA0NzZaIiBmaWxsPSJ1cmwoI3BhaW50NV9saW5lYXJfOTE4Ml8xMDM5NCkiLz4KICA8cGF0aCBkPSJNOC4yODQ4MSAxOS45Mjg3TDguMzYxNzkgMTkuODkxOEM4LjMxMDQ3IDE5Ljg2MjIgOC4yNTgzNSAxOS44MzA5IDguMjA3MDMgMTkuNzk4OEM4LjIzMzQ5IDE5Ljg0MjEgOC4yNTk5NSAxOS44ODU0IDguMjg0ODEgMTkuOTI4N1oiIGZpbGw9ImJsYWNrIi8+CiAgPHBhdGggZD0iTTEyLjg0NTcgOC4xMTcyN0wxMy4xODQ5IDcuMzA2MDdDMTMuMTg0OSA3LjMwNjA3IDExLjQyNzYgNi4zNjI0NCAxMS40NDg3IDUuMjMwODlMMTEuMDAyOCA2LjIwNDc3QzExLjAwMjggNi4yMDQ3NyAxMS4wMTg4IDcuMTI0NzggMTIuODQ2NSA4LjExNzEzTDEyLjg0NTcgOC4xMTcyN1oiIGZpbGw9InVybCgjcGFpbnQ2X2xpbmVhcl85MTgyXzEwMzk0KSIvPgogIDxwYXRoIGQ9Ik02LjYxMjU4IDE4LjI3MTVDNi4xMDA5OSAxNy43NiA1LjYyMTQ4IDE3LjE1NTYgNS4yNjA2NCAxNi41Njg5TDUuMDk0NjYgMTYuMzAyN0w0LjY2NDA2IDE3LjE5ODlDNS4wMjczIDE3Ljc2MDEgNS40OTQ3OSAxOC4zMzE2IDYuMDIzMjEgMTguODYwN0M2LjU1MjQ0IDE5LjM4OTcgNy4xMjQ5NiAxOS44NTcgNy42ODcwNiAyMC4yMjAyTDguNTg1OTUgMTkuNzkxM0w4LjMxNTcyIDE5LjYyM0M3LjcyODc2IDE5LjI2MjMgNy4xMjMzNiAxOC43ODIxIDYuNjEyNTggMTguMjcxNVoiIGZpbGw9InVybCgjcGFpbnQ3X2xpbmVhcl85MTgyXzEwMzk0KSIvPgogIDxwYXRoIGQ9Ik00Ljc2ODgxIDIwLjExMDZDNC40NTEyOCAxOS43OTMyIDQuMTQ4OTggMTkuNDQzNyAzLjg3MTUzIDE5LjA3MzRMMy44MDQ5OCAxOC45ODQ0TDMuMzk4NDQgMTkuODMwMUMzLjYzODk5IDIwLjEyNzUgMy45MDEyIDIwLjQyIDQuMTgwMjUgMjAuNjk5QzQuNDU5MjkgMjAuOTc4IDQuNzQ4NzYgMjEuMjM2OSA1LjA0NDY1IDIxLjQ3NjZMNS44OTIyMSAyMS4wNzE4TDUuODA2NDEgMjEuMDA3NkM1LjQzNTk2IDIwLjczMDMgNS4wODcxNSAyMC40MjgxIDQuNzY4ODEgMjAuMTEwNloiIGZpbGw9InVybCgjcGFpbnQ4X2xpbmVhcl85MTgyXzEwMzk0KSIvPgogIDxwYXRoIGQ9Ik0xNC45MjQgMTIuOTQ4MkwxNC44Mzk4IDEzLjcyNThDMTQuODM5OCAxMy43MjU4IDE1LjMyNTggMTQuMjI0NCAxNS43MjExIDE0LjM5OTlMMTUuODQ0NiAxMy42NTUzQzE1Ljg0NDYgMTMuNjU1MyAxNS4wODYgMTMuNDQxMiAxNC45MjQgMTIuOTQ5TDE0LjkyNCAxMi45NDgyWiIgZmlsbD0iIzIyRDZGOSIvPgogIDxwYXRoIGQ9Ik0xOC4zODY0IDEyLjA2NzhDMTguMzU2NyAxMi4wNDc4IDE3LjUwMiAxMi43NTggMTcuNTAyIDEyLjc1OEMxNy41MDIgMTIuNzU4IDE4LjA3NDUgMTIuOTc2OCAxOC42ODE1IDEyLjkzNTFMMTkuNTI0MiAxMi4yNzg2QzE5LjUyNDIgMTIuMjc4NiAxOC43MzI4IDEyLjI5NTUgMTguMzg3MiAxMi4wNjc4TDE4LjM4NjQgMTIuMDY3OFoiIGZpbGw9IiNGRjZFRTUiLz4KICA8cGF0aCBkPSJNMTcuNjk1NyA2LjA4NDIxQzE3LjY5NTcgNi4wODQyMSAxNy4wNjU1IDUuOTMxOTEgMTYuODk1NSA1LjI4ODIyTDE2Ljg1OTQgNC40NTIxNUMxNi44NTk0IDQuNDUyMTUgMTcuMzIwNCA0LjgxNDQ3IDE3LjY1MDggNC44OTQ2M0MxNy42NTA4IDQuODk0NjMgMTcuNjEwNyA1LjAzODkyIDE3LjYyNDMgNS40NDEzM0MxNy42MzcyIDUuODAyODUgMTcuNjk0OSA2LjA4NDIxIDE3LjY5NDkgNi4wODQyMUwxNy42OTU3IDYuMDg0MjFaIiBmaWxsPSIjRkZCQTUzIi8+CiAgPHBhdGggZD0iTTIwLjA3NTEgOS44NzA0QzE5LjYyMDUgOS44NzA0IDE5LjI1IDkuNTAwMDYgMTkuMjUgOS4wNDU1NUMxOS4yNSA4LjU5MTA0IDE5LjYyMDUgOC4yMjA3IDIwLjA3NTEgOC4yMjA3QzIwLjUyOTggOC4yMjA3IDIwLjkwMDIgOC41OTEwNCAyMC45MDAyIDkuMDQ1NTVDMjAuOTAwMiA5LjUwMDA2IDIwLjUyOTggOS44NzA0IDIwLjA3NTEgOS44NzA0Wk0yMC4wNzUxIDguNTgyMjNDMTkuODE5MyA4LjU4MjIzIDE5LjYxMDggOC43OTA2NCAxOS42MTA4IDkuMDQ2MzVDMTkuNjEwOCA5LjMwMjA3IDE5LjgxOTMgOS41MTA0OCAyMC4wNzUxIDkuNTEwNDhDMjAuMzMwOSA5LjUxMDQ4IDIwLjUzOTQgOS4zMDIwNyAyMC41Mzk0IDkuMDQ2MzVDMjAuNTM5NCA4Ljc5MDY0IDIwLjMzMDkgOC41ODIyMyAyMC4wNzUxIDguNTgyMjNaIiBmaWxsPSIjREMzNzczIi8+CiAgPHBhdGggZD0iTTE5LjkzNCAxNi4xMzEzQzE5LjU2NDQgMTYuMTMxMyAxOS4yNjM3IDE1LjgzMDcgMTkuMjYzNyAxNS40NjEyQzE5LjI2MzcgMTUuMDkxNiAxOS41NjQ0IDE0Ljc5MSAxOS45MzQgMTQuNzkxQzIwLjMwMzcgMTQuNzkxIDIwLjYwNDQgMTUuMDkxNiAyMC42MDQ0IDE1LjQ2MTJDMjAuNjA0NCAxNS44MzA3IDIwLjMwMzcgMTYuMTMxMyAxOS45MzQgMTYuMTMxM1pNMTkuOTM0IDE1LjE1MTdDMTkuNzYzMiAxNS4xNTE3IDE5LjYyNDUgMTUuMjkwNCAxOS42MjQ1IDE1LjQ2MTJDMTkuNjI0NSAxNS42MzE5IDE5Ljc2MzIgMTUuNzcwNiAxOS45MzQgMTUuNzcwNkMyMC4xMDQ4IDE1Ljc3MDYgMjAuMjQzNSAxNS42MzE5IDIwLjI0MzUgMTUuNDYxMkMyMC4yNDM1IDE1LjI5MDQgMjAuMTA0OCAxNS4xNTE3IDE5LjkzNCAxNS4xNTE3WiIgZmlsbD0iIzMyQTlFMSIvPgogIDxwYXRoIGQ9Ik0xMi43NjUzIDEyLjUxODFDMTIuNzY1MyAxMi41MTgxIDEzLjIxNTEgMTIuMzk3IDEzLjI2NTcgMTEuNjE0N0MxMy4yOTI5IDEwLjgwNDIgMTMuMjA3OSA5LjY0NzUzIDEzLjUzNjcgOS41NzUzOEwxMy41MjA2IDkuMjk4ODNDMTMuNTIwNiA5LjI5ODgzIDEyLjY4MjcgOS4zMDc2NSAxMi41OTQ1IDEwLjE4N0MxMi41MDYzIDExLjA2NjQgMTIuNDk1OSAxMS44MTQzIDEyLjM4MjggMTIuMTc5TDEyLjY2NTEgMTIuNDgxMkwxMi43NjYxIDEyLjUxODFMMTIuNzY1MyAxMi41MTgxWiIgZmlsbD0idXJsKCNwYWludDlfbGluZWFyXzkxODJfMTAzOTQpIi8+CiAgPHBhdGggZD0iTTE0LjkzMDUgMTAuNTUzOUMxNC45MzA1IDEwLjU1MzkgMTYuMTI2NyAxMC45MDUzIDE2LjUxODggOS4xMjk2NkwxNS45MzIgOC4xMzc1NUMxNS45MzIgOC4xMzc1NSAxNi4xOTcgMTAuMjI2IDE0LjkyOTYgMTAuNTU0M0wxNC45MzA1IDEwLjU1MzlaIiBmaWxsPSJ1cmwoI3BhaW50MTBfbGluZWFyXzkxODJfMTAzOTQpIi8+CiAgPHBhdGggZD0iTTEwLjkwNTIgMTEuMzc4OEwxMC42MTMzIDExLjA3NThMMTEuNjYyOSAxMC44NzdDMTEuNjYyOSAxMC44NzcgMTIuMzkxIDEyLjEwNjYgMTIuNzY1NSAxMi41MTg2QzEyLjc2NTUgMTIuNTE4NiAxMi4xOTM3IDEyLjc5NDQgMTEuNzk0NCAxMi41NDc1TDEwLjkwNTIgMTEuMzc5NkwxMC45MDUyIDExLjM3ODhaIiBmaWxsPSJ1cmwoI3BhaW50MTFfbGluZWFyXzkxODJfMTAzOTQpIi8+CiAgPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik03LjU4OTMzIDExLjEyN0M3LjYxODYzIDExLjkxMDggOC41NzUxIDEzLjQxNDggMTAuMDMwNCAxNC44Njk3QzExLjQ4OTMgMTYuMzI4MSAxMi45OTc2IDE3LjI4NTQgMTMuNzggMTcuMzEwMkwxMy4xODY5IDE3LjU5NUwxMi43ODE2IDE3Ljc4OTNMMTEuNDIxNSAxOC40NDJDMTEuMjcyMiAxOC4zOTM2IDExLjExMzggMTguMzMxMSAxMC45NDk1IDE4LjI1NTNDMTAuNzI0NCAxOC4xNTE5IDEwLjQ4ODQgMTguMDI0MyAxMC4yNDc0IDE3Ljg3NkM5LjYyNzc5IDE3LjQ5NTggOC45OTA2OSAxNi45ODk4IDguNDUxMTYgMTYuNDUwNEM3LjkxMjQ2IDE1LjkxMTkgNy40MDYyOSAxNS4yNzQyIDcuMDI1MiAxNC42NTQ4QzYuODc2NzcgMTQuNDEzOSA2Ljc0OTE4IDE0LjE3OCA2LjY0NTc4IDEzLjk1MjlDNi41Njk4OSAxMy43ODk1IDYuNTA3MzUgMTMuNjMwMyA2LjQ1ODk4IDEzLjQ4MTFMNy4xMTE5MiAxMi4xMjE0TDcuMzA2MjIgMTEuNzE2M0w3LjU4OTMzIDExLjEyN1oiIGZpbGw9InVybCgjcGFpbnQxMl9saW5lYXJfOTE4Ml8xMDM5NCkiLz4KICA8cGF0aCBkPSJNMTQuNTk5NyAxMC41OTUyTDE1LjIwMTEgMTAuNTgyM0MxNS4yMDExIDEwLjU4MjMgMTQuODk2MiAxMC4zMjQyIDE0LjQ5MDUgOS42OTMzNUMxNC40OTA1IDkuNjkzMzUgMTMuOTA5MSA4Ljg1MzI2IDEzLjA5NzcgOS40MjI0QzEzLjA5NzcgOS40MjI0IDEzLjU2MDMgOS41MTI5OCAxMy44NzYzIDEwLjAwOTJDMTMuODc2MyAxMC4wMDkyIDE0LjAzNTggMTAuMjQ3MyAxNC4xOTM4IDEwLjQzMjRDMTQuMjk1NiAxMC41NTE5IDE0LjQ0MzQgMTAuNTk5MiAxNC42MDA1IDEwLjU5NkwxNC41OTk3IDEwLjU5NTJaIiBmaWxsPSJ1cmwoI3BhaW50MTNfbGluZWFyXzkxODJfMTAzOTQpIi8+CiAgPHBhdGggZD0iTTExLjY2NTEgMTMuMjE5M0M5Ljk0NjczIDExLjUwMTUgOC4xNTY5OCAxMC41MDY3IDcuNjY2MjUgMTAuOTk3M0M3LjE3NTUxIDExLjQ4NzggOC4xNzA2MiAxMy4yNzcgOS44ODkgMTQuOTk0OUMxMS42MDc0IDE2LjcxMjcgMTMuMzk3MSAxNy43MDc1IDEzLjg4NzkgMTcuMjE2OUMxNC4zNzg2IDE2LjcyNjMgMTMuMzgzNSAxNC45MzcxIDExLjY2NTEgMTMuMjE5M1oiIGZpbGw9InVybCgjcGFpbnQxNF9saW5lYXJfOTE4Ml8xMDM5NCkiLz4KICA8cGF0aCBkPSJNOS41MTI1MiAxNC42NDA5QzkuNTEyNTIgMTQuNjQwOSAxMC43MjU5IDEzLjM0NTcgMTAuNjEzNiAxMS4wNzU2TDExLjM1ODUgMTAuOTYwOUMxMS4zNTg1IDEwLjk2MDkgMTEuODk5OCAxMy4wOTA5IDEwLjA4MDQgMTUuMjA5Nkw5LjUxMTcyIDE0LjY0MDlMOS41MTI1MiAxNC42NDA5WiIgZmlsbD0idXJsKCNwYWludDE1X2xpbmVhcl85MTgyXzEwMzk0KSIvPgogIDxwYXRoIGQ9Ik0xMC44MjMyIDE4LjEzNEMxMC42MTE1IDE4LjAzNjIgMTAuMzg4NiAxNy45MTYgMTAuMTYxNiAxNy43NzY1QzkuNTc0NjggMTcuNDE1OCA4Ljk2OTI4IDE2LjkzNTYgOC40NTg0OSAxNi40MjVDNy45NDY5MSAxNS45MTM2IDcuNDY2NiAxNS4zMDkyIDcuMTA2NTYgMTQuNzIyNEM2Ljk2NzA0IDE0LjQ5NTUgNi44NDY3NiAxNC4yNzI3IDYuNzQ4OTMgMTQuMDYwM0M2LjY3MzU2IDEzLjg5NzUgNi42MTE4MiAxMy43Mzk2IDYuNTY2MTEgMTMuNTkyMUw2LjQ5OTU2IDEzLjM3ODlMNiAxNC40MjAyQzYuMDE5MjQgMTQuNDY0MyA2LjAzNzY5IDE0LjUwODQgNi4wNTc3MyAxNC41NTE3QzYuNDQ2NjMgMTUuMzY1MyA3LjA3Mjg4IDE2LjIxNzQgNy44Njk5MyAxNy4wMTQyQzguNjY2OTggMTcuODExIDkuNTE4NTUgMTguNDM3OCAxMC4zMzMyIDE4LjgyNThDMTAuMzc5NyAxOC44NDgyIDEwLjQyNzkgMTguODY3NSAxMC40NzUyIDE4Ljg4ODNMMTEuNTE0NCAxOC4zODY1TDExLjI5MjMgMTguMzE2OEMxMS4xNDQ3IDE4LjI3MDMgMTAuOTg2NyAxOC4yMDk0IDEwLjgyNCAxOC4xMzRMMTAuODIzMiAxOC4xMzRaIiBmaWxsPSJ1cmwoI3BhaW50MTZfbGluZWFyXzkxODJfMTAzOTQpIi8+CiAgPG1hc2sgaWQ9Im1hc2swXzkxODJfMTAzOTQiIHN0eWxlPSJtYXNrLXR5cGU6YWxwaGEiIG1hc2tVbml0cz0idXNlclNwYWNlT25Vc2UiIHg9IjUiIHk9IjQiIHdpZHRoPSI2IiBoZWlnaHQ9IjEwIj4KICAgIDxwYXRoIGQ9Ik04LjUzNzk2IDEzLjQyNDRDNy44ODgwMyAxMi41Nzk1IDcuNjQ0MzEgMTIuMDQzMyA3LjU2MzA2IDExLjQ3NDZMNy45NjkyNyA3LjI1MDFMNy40ODE4MiA2LjYwMDE3TDYuNzUwNjUgNy40OTM4Mkw1LjYxMzI4IDYuMjc1MjFMNi4yNjMyMSA0Ljk3NTM1TDguNTM3OTYgNC42NTAzOUw5LjgzNzgxIDUuOTUwMjVDMTAuMDU0NSA2LjgxNjgyIDEwLjQ4NzcgOC41ODI0NSAxMC40ODc3IDguNzEyNDRDMTAuNDg3NyA4Ljg3NDkyIDEwLjI0NCAxMC4zMzczIDEwLjI0NCAxMC40OTk3QzEwLjI0NCAxMC42Mjk3IDkuMTA2NjQgMTIuNTAzNyA4LjUzNzk2IDEzLjQyNDRaIiBmaWxsPSIjRDlEOUQ5Ii8+CiAgPC9tYXNrPgogIDxnIG1hc2s9InVybCgjbWFzazBfOTE4Ml8xMDM5NCkiPgogICAgPHBhdGggZD0iTTcuNDYzMDMgNS40NTJMNy40NzUwNiA1LjI5MDA4QzcuNDc1MDYgNS4yOTAwOCA4Ljk2MDkgNS4yNjYwMyA5LjM4NDI4IDYuNDM2MzdDOS4zODQyOCA2LjQzNjM3IDkuODUzMzcgNy4zMjg1NSA5LjQ5NDk0IDkuMzU5MDJDOS4xMzY1MSAxMS4zODk1IDguNjEwNDkgMTIuNTk3NSA3Ljg4MDggMTMuNzk2N0w3LjE5OTIyIDEzLjQ3NzdMNy41MDU1MyAxMi40NDM2QzcuNTA1NTMgMTIuNDQzNiA5LjU3NTEyIDkuMzU4MjEgOC42MzQ1NCA2LjIyMzE0TDguNDMwMDcgNS45MTM3Mkw3LjcxMTYxIDUuNTQ4MTlMNy40NjMwMyA1LjQ1MloiIGZpbGw9InVybCgjcGFpbnQxN19saW5lYXJfOTE4Ml8xMDM5NCkiLz4KICAgIDxwYXRoIGQ9Ik02Ljk0MjggNi42MDYxNUM2Ljk0MjggNi42MDYxNSA3LjEwNzE5IDUuNzI2NzkgNy45Nzk2MSA1Ljc4NjkxQzcuOTc5NjEgNS43ODY5MSA4LjMzOTY0IDUuODAyMTQgOC42MzQ3MiA2LjIyMzc4QzguNjM0NzIgNi4yMjM3OCA4LjQyNDY0IDUuNDk1MTIgNy43MDY5NyA1LjMyMTk4QzcuMzk3NDYgNS4yNDc0MyA3LjA2NjI5IDUuMzA1MTQgNi43OTc2NyA1LjQ3NjY5QzYuNjExNjQgNS41OTUzMiA2LjQwMDc1IDUuNzg2OTEgNi4yNSA2LjA5MTUyTDYuOTQzNjEgNi42MDYxNUw2Ljk0MjggNi42MDYxNVoiIGZpbGw9InVybCgjcGFpbnQxOF9saW5lYXJfOTE4Ml8xMDM5NCkiLz4KICA8L2c+CiAgPG1hc2sgaWQ9Im1hc2sxXzkxODJfMTAzOTQiIHN0eWxlPSJtYXNrLXR5cGU6YWxwaGEiIG1hc2tVbml0cz0idXNlclNwYWNlT25Vc2UiIHg9IjEwIiB5PSIxNCIgd2lkdGg9IjEwIiBoZWlnaHQ9IjYiPgogICAgPHBhdGggZD0iTTEwLjczMDUgMTUuNzc5MkMxMS4zMTU0IDE2LjIzNDIgMTEuNzA1NCAxNi41OTE2IDEyLjM1NTMgMTYuOTE2NkgxMy4zMzAySDE1LjM2MTJMMTcuMzExIDE3LjQwNEwxNi40OTg2IDE4LjEzNTJMMTcuMTQ4NSAxOS4zNTM4TDE3Ljk2MDkgMTkuMTEwMUwxOC45MzU4IDE4LjYyMjZMMTkuMDE3IDE3LjA3OTFMMTguNTI5NiAxNi4xODU0TDE3Ljk2MDkgMTUuNjE2N0wxNC4yMjM4IDE0Ljk2NjhMMTAuNzMwNSAxNS43NzkyWiIgZmlsbD0iI0Q5RDlEOSIvPgogIDwvbWFzaz4KICA8ZyBtYXNrPSJ1cmwoI21hc2sxXzkxODJfMTAzOTQpIj4KICAgIDxwYXRoIGQ9Ik0xOC4yMzIyIDE3LjgyNzRMMTguMzc3NSAxNy44Mzg1QzE4LjM3NzUgMTcuODM4NSAxOC42Mzg0IDE2LjU1NyAxNy42NjU5IDE2LjAzNEMxNy42NjU5IDE2LjAzNCAxNi45NDg2IDE1LjUxIDE1LjA4NjQgMTUuNTQ5MkMxMy4yMjQyIDE1LjU4OTIgMTIuMDY2IDE1Ljg4MyAxMC44ODMgMTYuMzU0NEwxMS4wNTY3IDE2Ljk4NjNMMTIuMDI0NyAxNi44NTlDMTIuMDI0NyAxNi44NTkgMTUuMTAwNiAxNS40Nzk0IDE3LjczMzggMTYuNzEwNUwxNy45NzY0IDE2LjkyODdMMTguMTg1NSAxNy41OTg3TDE4LjIzMDUgMTcuODI2OEwxOC4yMzIyIDE3LjgyNzRaIiBmaWxsPSJ1cmwoI3BhaW50MTlfbGluZWFyXzkxODJfMTAzOTQpIi8+CiAgICA8cGF0aCBkPSJNMTcuMDk3IDE4LjE2OTdDMTcuMDk3IDE4LjE2OTcgMTcuOTE2NCAxOC4xODQ2IDE4LjA0MjkgMTcuNDEyQzE4LjA0MjkgMTcuNDEyIDE4LjEwNCAxNy4wOTUxIDE3Ljc4OSAxNi43NjA5QzE3Ljc4OSAxNi43NjA5IDE4LjM5NTkgMTcuMDc1OSAxOC40MDE1IDE3LjczNDRDMTguNDA0MyAxOC4wMTg0IDE4LjI4NDEgMTguMjk3OSAxOC4wNzUzIDE4LjUwMTZDMTcuOTMwNiAxOC42NDI4IDE3LjcxNiAxOC43OTE5IDE3LjQxMzcgMTguODY5MUwxNy4wOTc5IDE4LjE2OTdMMTcuMDk3IDE4LjE2OTdaIiBmaWxsPSJ1cmwoI3BhaW50MjBfbGluZWFyXzkxODJfMTAzOTQpIi8+CiAgPC9nPgogIDxkZWZzPgogICAgPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDBfbGluZWFyXzkxODJfMTAzOTQiIHgxPSI0LjYxODkxIiB5MT0iMTguNDQxNSIgeDI9IjYuNDIyNCIgeTI9IjIwLjY4NjYiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KICAgICAgPHN0b3Agc3RvcC1jb2xvcj0iI0M5QThGRiIvPgogICAgICA8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNCODhERkYiLz4KICAgIDwvbGluZWFyR3JhZGllbnQ+CiAgICA8bGluZWFyR3JhZGllbnQgaWQ9InBhaW50MV9saW5lYXJfOTE4Ml8xMDM5NCIgeDE9IjUuNjUyMjQiIHkxPSIxNi4wNTE0IiB4Mj0iOS4wNTE3NiIgeTI9IjE5LjMzNDgiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KICAgICAgPHN0b3Agc3RvcC1jb2xvcj0iI0M5QThGRiIvPgogICAgICA8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNCODhERkYiLz4KICAgIDwvbGluZWFyR3JhZGllbnQ+CiAgICA8bGluZWFyR3JhZGllbnQgaWQ9InBhaW50Ml9saW5lYXJfOTE4Ml8xMDM5NCIgeDE9IjUuNjIxMTQiIHkxPSIxNS45OTg1IiB4Mj0iOS4xMDgxNiIgeTI9IjE5LjM2NjQiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KICAgICAgPHN0b3Agc3RvcC1jb2xvcj0iI0M5QThGRiIvPgogICAgICA8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNCODhERkYiLz4KICAgIDwvbGluZWFyR3JhZGllbnQ+CiAgICA8bGluZWFyR3JhZGllbnQgaWQ9InBhaW50M19saW5lYXJfOTE4Ml8xMDM5NCIgeDE9IjExLjcyODEiIHkxPSI1LjMzMjk2IiB4Mj0iMTQuMDkzNCIgeTI9IjQuNjExMDkiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KICAgICAgPHN0b3Agc3RvcC1jb2xvcj0iI0ZGQkE1MyIvPgogICAgICA8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNGRkM3NzIiLz4KICAgIDwvbGluZWFyR3JhZGllbnQ+CiAgICA8bGluZWFyR3JhZGllbnQgaWQ9InBhaW50NF9saW5lYXJfOTE4Ml8xMDM5NCIgeDE9IjMuNDk0MTMiIHkxPSIyMC40ODI4IiB4Mj0iNC4zMzU3MyIgeTI9IjIxLjY0NTMiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KICAgICAgPHN0b3Agc3RvcC1jb2xvcj0iI0M5QThGRiIvPgogICAgICA8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNCODhERkYiLz4KICAgIDwvbGluZWFyR3JhZGllbnQ+CiAgICA8bGluZWFyR3JhZGllbnQgaWQ9InBhaW50NV9saW5lYXJfOTE4Ml8xMDM5NCIgeDE9IjE0LjA1MjIiIHkxPSIzLjY4OTMzIiB4Mj0iMTIuMzI4NyIgeTI9IjIuMDA1NDEiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KICAgICAgPHN0b3Agc3RvcC1jb2xvcj0iI0ZGRDcwNSIvPgogICAgICA8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNGRkVCODQiLz4KICAgIDwvbGluZWFyR3JhZGllbnQ+CiAgICA8bGluZWFyR3JhZGllbnQgaWQ9InBhaW50Nl9saW5lYXJfOTE4Ml8xMDM5NCIgeDE9IjEzLjA1MjgiIHkxPSI3Ljc3ODk1IiB4Mj0iMTEuMjA5MSIgeTI9IjUuODE0NDQiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KICAgICAgPHN0b3Agc3RvcC1jb2xvcj0iI0ZGRDcwNSIvPgogICAgICA8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNGRkVCODQiLz4KICAgIDwvbGluZWFyR3JhZGllbnQ+CiAgICA8bGluZWFyR3JhZGllbnQgaWQ9InBhaW50N19saW5lYXJfOTE4Ml8xMDM5NCIgeDE9IjcuNjc2NjYiIHkxPSIxOS43NTg0IiB4Mj0iNS4xNTE1MiIgeTI9IjE3LjUxMzEiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KICAgICAgPHN0b3Agc3RvcC1jb2xvcj0iI0UzRDJGRiIvPgogICAgICA8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IndoaXRlIi8+CiAgICA8L2xpbmVhckdyYWRpZW50PgogICAgPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDhfbGluZWFyXzkxODJfMTAzOTQiIHgxPSI1LjIzMzE2IiB5MT0iMjAuODc1NyIgeDI9IjMuODMwMzEiIHkyPSIxOS41OTI3IiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+CiAgICAgIDxzdG9wIHN0b3AtY29sb3I9IiNFM0QyRkYiLz4KICAgICAgPHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSJ3aGl0ZSIvPgogICAgPC9saW5lYXJHcmFkaWVudD4KICAgIDxsaW5lYXJHcmFkaWVudCBpZD0icGFpbnQ5X2xpbmVhcl85MTgyXzEwMzk0IiB4MT0iMTIuOTU5NyIgeTE9IjkuMjk4ODMiIHgyPSIxMi45NTk3IiB5Mj0iMTIuNTE4MSIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgogICAgICA8c3RvcCBzdG9wLWNvbG9yPSIjRjc1Qzk0Ii8+CiAgICAgIDxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iI0RDMzc3MyIvPgogICAgPC9saW5lYXJHcmFkaWVudD4KICAgIDxsaW5lYXJHcmFkaWVudCBpZD0icGFpbnQxMF9saW5lYXJfOTE4Ml8xMDM5NCIgeDE9IjE1LjMzNjMiIHkxPSIxMC4zNDIzIiB4Mj0iMTYuMDE3NSIgeTI9IjguNTc4NjQiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KICAgICAgPHN0b3Agc3RvcC1jb2xvcj0iI0RDMzc3MyIvPgogICAgICA8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNGNzVDOTQiLz4KICAgIDwvbGluZWFyR3JhZGllbnQ+CiAgICA8bGluZWFyR3JhZGllbnQgaWQ9InBhaW50MTFfbGluZWFyXzkxODJfMTAzOTQiIHgxPSIxMS42ODk0IiB5MT0iMTAuODc3IiB4Mj0iMTIuNTY4MyIgeTI9IjEyLjUwNjciIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KICAgICAgPHN0b3Agc3RvcC1jb2xvcj0iI0ZGOTZFQyIvPgogICAgICA8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNGRjZFRTUiLz4KICAgIDwvbGluZWFyR3JhZGllbnQ+CiAgICA8bGluZWFyR3JhZGllbnQgaWQ9InBhaW50MTJfbGluZWFyXzkxODJfMTAzOTQiIHgxPSI3LjQ2NDI5IiB5MT0iMTMuMTUxNSIgeDI9IjExLjM5MDQiIHkyPSIxNy4zNjE3IiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+CiAgICAgIDxzdG9wIHN0b3AtY29sb3I9IiNDOUE4RkYiLz4KICAgICAgPHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjQjg4REZGIi8+CiAgICA8L2xpbmVhckdyYWRpZW50PgogICAgPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDEzX2xpbmVhcl85MTgyXzEwMzk0IiB4MT0iMTMuNTcwOSIgeTE9IjkuMjU5NjgiIHgyPSIxNC43NzMzIiB5Mj0iMTAuNDYyNSIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgogICAgICA8c3RvcCBzdG9wLWNvbG9yPSIjRkY5NkVDIi8+CiAgICAgIDxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iI0ZGNkVFNSIvPgogICAgPC9saW5lYXJHcmFkaWVudD4KICAgIDxsaW5lYXJHcmFkaWVudCBpZD0icGFpbnQxNF9saW5lYXJfOTE4Ml8xMDM5NCIgeDE9IjExLjUyNzEiIHkxPSIxMy40MjM0IiB4Mj0iOS4xODcxOCIgeTI9IjE1LjcwMDMiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KICAgICAgPHN0b3Agc3RvcC1jb2xvcj0iIzk3NUNGRiIvPgogICAgICA8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiM1QjM3OTkiLz4KICAgIDwvbGluZWFyR3JhZGllbnQ+CiAgICA8bGluZWFyR3JhZGllbnQgaWQ9InBhaW50MTVfbGluZWFyXzkxODJfMTAzOTQiIHgxPSIxMC43MjU4IiB5MT0iMTEuMzQzIiB4Mj0iMTAuMDcwNSIgeTI9IjE0LjU1NjIiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KICAgICAgPHN0b3Agc3RvcC1jb2xvcj0iI0Y3NTM4RiIvPgogICAgICA8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNEQzM3NzMiLz4KICAgIDwvbGluZWFyR3JhZGllbnQ+CiAgICA8bGluZWFyR3JhZGllbnQgaWQ9InBhaW50MTZfbGluZWFyXzkxODJfMTAzOTQiIHgxPSIxMC40ODMyIiB5MT0iMTguNDM0IiB4Mj0iNi41NTUzMSIgeTI9IjE0LjU4NTEiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KICAgICAgPHN0b3Agc3RvcC1jb2xvcj0iI0UzRDJGRiIvPgogICAgICA8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IndoaXRlIi8+CiAgICA8L2xpbmVhckdyYWRpZW50PgogICAgPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDE3X2xpbmVhcl85MTgyXzEwMzk0IiB4MT0iOC40MTQ1NCIgeTE9IjUuMjkwMDQiIHgyPSI4LjQxNDU0IiB5Mj0iMTMuNzk2NyIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgogICAgICA8c3RvcCBzdG9wLWNvbG9yPSIjM0ZFMEZGIi8+CiAgICAgIDxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzIyRDZGOSIvPgogICAgPC9saW5lYXJHcmFkaWVudD4KICAgIDxsaW5lYXJHcmFkaWVudCBpZD0icGFpbnQxOF9saW5lYXJfOTE4Ml8xMDM5NCIgeDE9IjguNTE4ODUiIHkxPSI1LjQxNDY2IiB4Mj0iNi43MTQ4MSIgeTI9IjYuMDk2NCIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgogICAgICA8c3RvcCBzdG9wLWNvbG9yPSIjNEFDM0ZDIi8+CiAgICAgIDxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzMyQTlFMSIvPgogICAgPC9saW5lYXJHcmFkaWVudD4KICAgIDxsaW5lYXJHcmFkaWVudCBpZD0icGFpbnQxOV9saW5lYXJfOTE4Ml8xMDM5NCIgeDE9IjE3Ljc4NjQiIHkxPSIxNi4yODkiIHgyPSIxMi43Njg1IiB5Mj0iMTYuMDE2OSIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgogICAgICA8c3RvcCBzdG9wLWNvbG9yPSIjRkZFQjg0Ii8+CiAgICAgIDxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iI0ZGRDcwNSIvPgogICAgPC9saW5lYXJHcmFkaWVudD4KICAgIDxsaW5lYXJHcmFkaWVudCBpZD0icGFpbnQyMF9saW5lYXJfOTE4Ml8xMDM5NCIgeDE9IjE4LjEzOTUiIHkxPSIxNy4wOTg4IiB4Mj0iMTcuNDg4NSIgeTI9IjE4LjU3IiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+CiAgICAgIDxzdG9wIHN0b3AtY29sb3I9IiNGRkJBNTMiLz4KICAgICAgPHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjRkZDNzcyIi8+CiAgICA8L2xpbmVhckdyYWRpZW50PgogIDwvZGVmcz4KPC9zdmc+",shared_rank_congratulation=Object.freeze(Object.defineProperty({__proto__:null,default:_imports_0$1},Symbol.toStringTag,{value:"Module"})),_withScopeId$f=u=>(pushScopeId("data-v-e8b32851"),u=u(),popScopeId(),u),_hoisted_1$1m={class:"shared-rank"},_hoisted_2$19={key:0,class:"shared-rank__share"},_hoisted_3$$={key:1,class:"shared-rank__first-place"},_hoisted_4$U={class:"first-area"},_hoisted_5$M=_withScopeId$f(()=>createBaseVNode("img",{src:_imports_0$1,alt:""},null,-1)),_sfc_main$1D=defineComponent({__name:"SharedRank",props:{props:{}},setup(u){return(f,d)=>(openBlock(),createElementBlock("div",_hoisted_1$1m,[f.props.type==="share"?(openBlock(),createElementBlock("div",_hoisted_2$19,[createVNode(unref(Element$1),{name:"PeoplePlus",size:"medium",color:unref(colors).currentThemeRef.value.line_02},null,8,["color"])])):f.props.type==="FirstPlace"?(openBlock(),createElementBlock("div",_hoisted_3$$,[createBaseVNode("div",_hoisted_4$U,[_hoisted_5$M,createTextVNode(" "+toDisplayString$2(f.props.rankText),1)])])):createCommentVNode("",!0),renderSlot(f.$slots,"default",{},void 0,!0)]))}}),SharedRank=_export_sfc$1(_sfc_main$1D,[["__scopeId","data-v-e8b32851"]]),_hoisted_1$1f={class:"front"},_hoisted_2$13={key:0,class:"icon-wrapper"},_hoisted_3$V={class:"back"},_sfc_main$1w=defineComponent({__name:"NavigationBar",props:{useBack:{type:Function,default:void 0},menu:{type:Boolean,default:!1},alarm:{type:Boolean,default:!1},profileSrc:{type:String,default:""},title:{type:String,default:"Unknown Page title"},isTablet:{type:Boolean,default:!1}},emits:["click:menu","click:alarm"],setup(u,{emit:f}){const d=f;return(_,x)=>(openBlock(),createElementBlock("nav",{class:normalizeClass(["appBarWrapper",{tablet:u.isTablet}])},[createBaseVNode("div",_hoisted_1$1f,[u.menu&&u.isTablet?(openBlock(),createElementBlock("div",_hoisted_2$13,[createVNode(unref(Element$1),{name:"Hamburger",size:"medium",class:"menu",color:unref(colors).currentThemeRef.value.grey_111,onClick:x[0]||(x[0]=I=>d("click:menu"))},null,8,["color"])])):withDirectives((openBlock(),createElementBlock("div",{key:1,class:"backButtonWrapper",onClick:x[1]||(x[1]=I=>u.useBack?u.useBack():()=>{})},[createVNode(unref(Element$1),{name:"ArrowLeft",size:"big",color:unref(colors).currentThemeRef.value.grey_999},null,8,["color"])],512)),[[vShow,u.useBack]]),createBaseVNode("span",null,toDisplayString$2(u.title),1)]),createBaseVNode("div",_hoisted_3$V,[u.menu&&!u.isTablet?(openBlock(),createBlock(unref(Element$1),{key:0,name:"Hamburger",size:"medium",class:"menu",color:unref(colors).currentThemeRef.value.grey_111,onClick:x[2]||(x[2]=I=>d("click:menu"))},null,8,["color"])):createCommentVNode("",!0)])],2))}}),NavigationBar=_export_sfc$1(_sfc_main$1w,[["__scopeId","data-v-558b9870"]]),_hoisted_1$1e={class:"upper"},_hoisted_2$12={class:"header"},_hoisted_3$U={key:0,class:"close-wrapper"},_hoisted_4$O={class:"logoWrapper"},_hoisted_5$I={class:"menuWrapper"},_hoisted_6$C={class:"bottom"},_hoisted_7$u={class:"bottomButtonWrapper"},_sfc_main$1v=defineComponent({__name:"SideBar",props:{menus:{default:()=>[]},bottomMenu:{default:void 0},media:{default:"desktop"},selectedIndex:{default:void 0},selectedBottom:{type:Boolean},isShow:{type:Boolean,default:!1}},emits:["click:menu","click:close"],setup(u,{emit:f}){const d=u,_=f,x=S=>S===d.selectedIndex,I=S=>S.mobile&&d.media==="mobile"?S.mobile.title:S.title,E=S=>S.mobile&&d.media==="mobile"?S.mobile.elementColor:S.element.color,M=S=>S.mobile&&d.media==="mobile"?S.mobile.titleColor:S.titleColor;return(S,A)=>{var T,D;const O=resolveComponent("router-link");return withDirectives((openBlock(),createElementBlock("nav",{class:normalizeClass(["navigation",{mobile:S.media==="mobile"}])},[createBaseVNode("div",_hoisted_1$1e,[createBaseVNode("div",_hoisted_2$12,[S.media==="mobile"?(openBlock(),createElementBlock("div",_hoisted_3$U,[createVNode(unref(Element$1),{class:"close-btn",name:"Close",size:"medium",color:unref(colors).currentThemeRef.value.grey_111,onClick:A[0]||(A[0]=j=>_("click:close"))},null,8,["color"])])):(openBlock(),createBlock(O,{key:1,to:((T=S.menus[0])==null?void 0:T.link)??""},{default:withCtx(()=>[createBaseVNode("div",_hoisted_4$O,[createVNode(unref(_sfc_main$2v),{type:"white"})])]),_:1},8,["to"]))]),createBaseVNode("div",_hoisted_5$I,[(openBlock(!0),createElementBlock(Fragment,null,renderList(S.menus,(j,$)=>(openBlock(),createBlock(O,{key:j.element.name,to:j?.link??"",onClick:W=>_("click:menu",j)},{default:withCtx(()=>[createBaseVNode("div",{class:normalizeClass(["menu",x($)?"selected":"selectable"])},[createVNode(unref(Element$1),{name:j.element.name,size:j.element.size,color:E(j)},null,8,["name","size","color"]),createBaseVNode("div",{style:normalizeStyle({color:M(j)})},toDisplayString$2(I(j)),5)],2)]),_:2},1032,["to","onClick"]))),128))])]),createBaseVNode("div",_hoisted_6$C,[S.bottomMenu?(openBlock(),createBlock(O,{key:0,to:((D=S.bottomMenu)==null?void 0:D.link)??"",onClick:A[1]||(A[1]=j=>_("click:menu",S.bottomMenu))},{default:withCtx(()=>[createBaseVNode("div",_hoisted_7$u,[createBaseVNode("div",{class:normalizeClass(["bottomButton",S.selectedBottom?"selected":""])},[createVNode(unref(Element$1),{name:S.bottomMenu.element.name,size:S.bottomMenu.element.size,color:E(S.bottomMenu)},null,8,["name","size","color"]),createBaseVNode("span",{style:normalizeStyle({color:M(S.bottomMenu)})},toDisplayString$2(I(S.bottomMenu)),5)],2)])]),_:1},8,["to"])):createCommentVNode("",!0)])],2)),[[vShow,S.media==="desktop"||S.isShow]])}}}),GoogleIcon="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCA0MCA0MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMjAiIGN5PSIyMCIgcj0iMTkuNSIgZmlsbD0id2hpdGUiIHN0cm9rZT0iI0U3RTlFRiIvPgo8bWFzayBpZD0ibWFzazBfMzcwMl8yNzI1IiBzdHlsZT0ibWFzay10eXBlOmx1bWluYW5jZSIgbWFza1VuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeD0iOCIgeT0iOCIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ij4KPHBhdGggZD0iTTMyIDhIOFYzMkgzMlY4WiIgZmlsbD0id2hpdGUiLz4KPC9tYXNrPgo8ZyBtYXNrPSJ1cmwoI21hc2swXzM3MDJfMjcyNSkiPgo8bWFzayBpZD0ibWFzazFfMzcwMl8yNzI1IiBzdHlsZT0ibWFzay10eXBlOmx1bWluYW5jZSIgbWFza1VuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeD0iOCIgeT0iOCIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ij4KPHBhdGggZD0iTTMyIDhIOFYzMkgzMlY4WiIgZmlsbD0id2hpdGUiLz4KPC9tYXNrPgo8ZyBtYXNrPSJ1cmwoI21hc2sxXzM3MDJfMjcyNSkiPgo8cGF0aCBkPSJNMzEuNTIgMjAuMjczMkMzMS41MiAxOS40MjIzIDMxLjQ0MzcgMTguNjA0MSAzMS4zMDE4IDE3LjgxODZIMjBWMjIuNDYwNEgyNi40NTgyQzI2LjE4IDIzLjk2MDQgMjUuMzM0NiAyNS4yMzE0IDI0LjA2MzcgMjYuMDgyM1YyOS4wOTMySDI3Ljk0MThDMzAuMjEwOSAyNy4wMDQxIDMxLjUyIDIzLjkyNzcgMzEuNTIgMjAuMjczMloiIGZpbGw9IiM0Mjg1RjQiLz4KPHBhdGggZD0iTTIwIDMxLjk5OThDMjMuMjQgMzEuOTk5OCAyNS45NTY0IDMwLjkyNTIgMjcuOTQxOCAyOS4wOTI1TDI0LjA2MzYgMjYuMDgxNkMyMi45ODkxIDI2LjgwMTYgMjEuNjE0NSAyNy4yMjcgMjAgMjcuMjI3QzE2Ljg3NDUgMjcuMjI3IDE0LjIyOTEgMjUuMTE2MSAxMy4yODU0IDIyLjI3OThIOS4yNzYzN1YyNS4zODg5QzExLjI1MSAyOS4zMTA3IDE1LjMwOTEgMzEuOTk5OCAyMCAzMS45OTk4WiIgZmlsbD0iIzM0QTg1MyIvPgo8cGF0aCBkPSJNMTMuMjg1NCAyMi4yNzk3QzEzLjA0NTQgMjEuNTU5NyAxMi45MDkxIDIwLjc5MDYgMTIuOTA5MSAxOS45OTk3QzEyLjkwOTEgMTkuMjA4OCAxMy4wNDU0IDE4LjQzOTcgMTMuMjg1NCAxNy43MTk3VjE0LjYxMDZIOS4yNzYzMkM4LjQ2MzY4IDE2LjIzMDYgOCAxOC4wNjM0IDggMTkuOTk5N0M4IDIxLjkzNiA4LjQ2MzY4IDIzLjc2ODggOS4yNzYzMiAyNS4zODg4TDEzLjI4NTQgMjIuMjc5N1oiIGZpbGw9IiNGQkJDMDQiLz4KPHBhdGggZD0iTTIwIDEyLjc3MjhDMjEuNzYxOCAxMi43NzI4IDIzLjM0MzYgMTMuMzc4MiAyNC41ODczIDE0LjU2NzJMMjguMDI5MSAxMS4xMjU0QzI1Ljk1MSA5LjE4OTA4IDIzLjIzNDUgOCAyMCA4QzE1LjMwOTEgOCAxMS4yNTEgMTAuNjg5MSA5LjI3NjM3IDE0LjYxMDlMMTMuMjg1NCAxNy43MkMxNC4yMjkxIDE0Ljg4MzcgMTYuODc0NSAxMi43NzI4IDIwIDEyLjc3MjhaIiBmaWxsPSIjRTk0MjM1Ii8+CjwvZz4KPC9nPgo8L3N2Zz4K",google_icon=Object.freeze(Object.defineProperty({__proto__:null,default:GoogleIcon},Symbol.toStringTag,{value:"Module"})),ContactUs="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHZpZXdCb3g9IjAgMCA2MCA2MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMzAiIGN5PSIzMCIgcj0iMzAiIGZpbGw9IiNFRkVERjkiLz4KPHBhdGggZD0iTTIzLjM3NSAzMi4xMjQ5SDM2Ljc5MTZWMzAuMzc1SDIzLjM3NVYzMi4xMjQ5Wk0yMy4zNzUgMjguNjI0OUgzNi43OTE2VjI2Ljg3NUgyMy4zNzVWMjguNjI0OVpNMjMuMzc1IDI1LjEyNDlIMzYuNzkxNlYyMy4zNzVIMjMuMzc1VjI1LjEyNDlaTTQxLjE2NjYgNDAuNjI4MUwzNy4wMzg0IDM2LjQ5OTlIMjEuMTA5QzIwLjUxOTcgMzYuNDk5OSAyMC4wMjA4IDM2LjI5NTggMTkuNjEyNSAzNS44ODc0QzE5LjIwNDIgMzUuNDc5MSAxOSAzNC45ODAzIDE5IDM0LjM5MVYyMS4xMDlDMTkgMjAuNTE5NyAxOS4yMDQyIDIwLjAyMDggMTkuNjEyNSAxOS42MTI1QzIwLjAyMDggMTkuMjA0MiAyMC41MTk3IDE5IDIxLjEwOSAxOUgzOS4wNTc2QzM5LjY0NjkgMTkgNDAuMTQ1OCAxOS4yMDQyIDQwLjU1NDEgMTkuNjEyNUM0MC45NjI0IDIwLjAyMDggNDEuMTY2NiAyMC41MTk3IDQxLjE2NjYgMjEuMTA5VjQwLjYyODFaIiBmaWxsPSIjNjQ0MEREIi8+Cjwvc3ZnPgo=",contactus=Object.freeze(Object.defineProperty({__proto__:null,default:ContactUs},Symbol.toStringTag,{value:"Module"})),DevGuide="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHZpZXdCb3g9IjAgMCA2MCA2MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMzAiIGN5PSIzMCIgcj0iMzAiIGZpbGw9IiNFRkVERjkiLz4KPG1hc2sgaWQ9Im1hc2swXzIzMF8xMDE1MzIiIHN0eWxlPSJtYXNrLXR5cGU6YWxwaGEiIG1hc2tVbml0cz0idXNlclNwYWNlT25Vc2UiIHg9IjE2IiB5PSIxNiIgd2lkdGg9IjI4IiBoZWlnaHQ9IjI4Ij4KPHBhdGggZD0iTTI5LjIzMTcgNDMuMjI0M0MyNy40MDExIDQzLjE3MjkgMjUuNjc5OSA0Mi43ODE4IDI0LjA2ODMgNDIuMDUxM0MyMi40NTY3IDQxLjMyMDYgMjEuMDU1NyA0MC4zNDQ4IDE5Ljg2NTMgMzkuMTIzOEMxOC42NzQ5IDM3LjkwMjcgMTcuNzMzMSAzNi40NzY5IDE3LjAzOTkgMzQuODQ2M0MxNi4zNDY2IDMzLjIxNTcgMTYgMzEuNDczNSAxNiAyOS42MTk1QzE2IDI3LjczNzQgMTYuMzU4IDI1Ljk2NzkgMTcuMDczOSAyNC4zMTA5QzE3Ljc4OTggMjIuNjU0IDE4Ljc2MDcgMjEuMjEyNiAxOS45ODY2IDE5Ljk4NjZDMjEuMjEyNiAxOC43NjA3IDIyLjY1NCAxNy43ODk4IDI0LjMxMDkgMTcuMDczOUMyNS45Njc5IDE2LjM1OCAyNy43Mzc0IDE2IDI5LjYxOTUgMTZDMzMuMDcwMSAxNiAzNi4wNTkzIDE3LjExMTUgMzguNTg3MSAxOS4zMzQ2QzQxLjExNSAyMS41NTc3IDQyLjYxNTEgMjQuMzI5OCA0My4wODc0IDI3LjY1MTFINDEuMjU2OEM0MC45Mjk3IDI1LjYxNTIgNDAuMTMyIDIzLjc5MDUgMzguODYzOCAyMi4xNzdDMzcuNTk1NiAyMC41NjM2IDM1Ljk4ODIgMTkuMzY0NyAzNC4wNDE4IDE4LjU4MDVWMTkuMjIwMUMzNC4wNDE4IDIwLjAzNDQgMzMuNzU4NiAyMC43MzYgMzMuMTkyMiAyMS4zMjUxQzMyLjYyNTcgMjEuOTE0MiAzMS45MzU0IDIyLjIwODcgMzEuMTIxMiAyMi4yMDg3SDI4LjEzMjZWMjUuMTk3M0MyOC4xMzI2IDI1LjU5NjcgMjcuOTgzOSAyNS45MzMxIDI3LjY4NjQgMjYuMjA2NEMyNy4zODkgMjYuNDc5NiAyNy4wMzcxIDI2LjYxNjIgMjYuNjMwOSAyNi42MTYySDIzLjcxMDRWMjkuNjE5NUgyNi45OTEyVjM0LjAwMzJIMjUuMTk3M0wxOC4xMDI2IDI2LjkxNzdDMTguMDExMyAyNy4zNjc0IDE3LjkzODMgMjcuODE3NSAxNy44ODM0IDI4LjI2OEMxNy44Mjg2IDI4LjcxODUgMTcuODAxMiAyOS4xNjkgMTcuODAxMiAyOS42MTk1QzE3LjgwMTIgMzIuNzk1IDE4Ljg5NTQgMzUuNTI5OSAyMS4wODM5IDM3LjgyNDRDMjMuMjcyMyA0MC4xMTg4IDI1Ljk4ODMgNDEuMzE4NCAyOS4yMzE3IDQxLjQyMzFWNDMuMjI0M1pNNDIuNzE3MSA0Mi41NjY0TDM3Ljg0MzYgMzcuNzIwNEMzNy4zNzg2IDM4LjA1MTkgMzYuODczOCAzOC4zMDg2IDM2LjMyOTEgMzguNDkwNkMzNS43ODQ1IDM4LjY3MjUgMzUuMjI0IDM4Ljc2MzUgMzQuNjQ3NyAzOC43NjM1QzMzLjA5OTkgMzguNzYzNSAzMS43ODQ1IDM4LjIyMjggMzAuNzAxNiAzNy4xNDE0QzI5LjYxODggMzYuMDYwMSAyOS4wNzc0IDM0Ljc0NjUgMjkuMDc3NCAzMy4yMDA4QzI5LjA3NzQgMzEuNjU1MSAyOS42MTgxIDMwLjM0MjUgMzAuNjk5NSAyOS4yNjNDMzEuNzgwOCAyOC4xODM1IDMzLjA5NDQgMjcuNjQzNyAzNC42NDAxIDI3LjY0MzdDMzYuMTg1OCAyNy42NDM3IDM3LjQ5ODQgMjguMTg1MiAzOC41Nzc5IDI5LjI2OEMzOS42NTc0IDMwLjM1MDkgNDAuMTk3MiAzMS42NjYyIDQwLjE5NzIgMzMuMjE0QzQwLjE5NzIgMzMuNzk5NSA0MC4xMDE0IDM0LjM2NjkgMzkuOTEgMzQuOTE2MkMzOS43MTg1IDM1LjQ2NTQgMzkuNDU3NCAzNS45Nzc1IDM5LjEyNjUgMzYuNDUyM0w0NCA0MS4yODM1TDQyLjcxNzEgNDIuNTY2NFpNMzQuNjMzOSAzNi45NjIzQzM1LjY4NSAzNi45NjIzIDM2LjU3NDggMzYuNTk5MiAzNy4zMDMzIDM1Ljg3M0MzOC4wMzE4IDM1LjE0NjggMzguMzk2IDM0LjI1ODEgMzguMzk2IDMzLjIwN0MzOC4zOTYgMzIuMTU1OSAzOC4wMzI5IDMxLjI2NjEgMzcuMzA2NyAzMC41Mzc2QzM2LjU4MDQgMjkuODA5MSAzNS42OTE4IDI5LjQ0NDkgMzQuNjQwNiAyOS40NDQ5QzMzLjU4OTUgMjkuNDQ0OSAzMi42OTk3IDI5LjgwOCAzMS45NzEyIDMwLjUzNDJDMzEuMjQyOCAzMS4yNjA1IDMwLjg3ODYgMzIuMTQ5MSAzMC44Nzg2IDMzLjIwMDNDMzAuODc4NiAzNC4yNTE0IDMxLjI0MTcgMzUuMTQxMiAzMS45Njc5IDM1Ljg2OTdDMzIuNjk0MSAzNi41OTgxIDMzLjU4MjggMzYuOTYyMyAzNC42MzM5IDM2Ljk2MjNaIiBmaWxsPSIjNjQ0MEREIi8+CjwvbWFzaz4KPGcgbWFzaz0idXJsKCNtYXNrMF8yMzBfMTAxNTMyKSI+CjxwYXRoIGQ9Ik0yOS4yMzE3IDQzLjIyNDNDMjcuNDAxMSA0My4xNzI5IDI1LjY3OTkgNDIuNzgxOCAyNC4wNjgzIDQyLjA1MTNDMjIuNDU2NyA0MS4zMjA2IDIxLjA1NTcgNDAuMzQ0OCAxOS44NjUzIDM5LjEyMzhDMTguNjc0OSAzNy45MDI3IDE3LjczMzEgMzYuNDc2OSAxNy4wMzk5IDM0Ljg0NjNDMTYuMzQ2NiAzMy4yMTU3IDE2IDMxLjQ3MzUgMTYgMjkuNjE5NUMxNiAyNy43Mzc0IDE2LjM1OCAyNS45Njc5IDE3LjA3MzkgMjQuMzEwOUMxNy43ODk4IDIyLjY1NCAxOC43NjA3IDIxLjIxMjYgMTkuOTg2NiAxOS45ODY2QzIxLjIxMjYgMTguNzYwNyAyMi42NTQgMTcuNzg5OCAyNC4zMTA5IDE3LjA3MzlDMjUuOTY3OSAxNi4zNTggMjcuNzM3NCAxNiAyOS42MTk1IDE2QzMzLjA3MDEgMTYgMzYuMDU5MyAxNy4xMTE1IDM4LjU4NzEgMTkuMzM0NkM0MS4xMTUgMjEuNTU3NyA0Mi42MTUxIDI0LjMyOTggNDMuMDg3NCAyNy42NTExSDQxLjI1NjhDNDAuOTI5NyAyNS42MTUyIDQwLjEzMiAyMy43OTA1IDM4Ljg2MzggMjIuMTc3QzM3LjU5NTYgMjAuNTYzNiAzNS45ODgyIDE5LjM2NDcgMzQuMDQxOCAxOC41ODA1VjE5LjIyMDFDMzQuMDQxOCAyMC4wMzQ0IDMzLjc1ODYgMjAuNzM2IDMzLjE5MjIgMjEuMzI1MUMzMi42MjU3IDIxLjkxNDIgMzEuOTM1NCAyMi4yMDg3IDMxLjEyMTIgMjIuMjA4N0gyOC4xMzI2VjI1LjE5NzNDMjguMTMyNiAyNS41OTY3IDI3Ljk4MzkgMjUuOTMzMSAyNy42ODY0IDI2LjIwNjRDMjcuMzg5IDI2LjQ3OTYgMjcuMDM3MSAyNi42MTYyIDI2LjYzMDkgMjYuNjE2MkgyMy43MTA0VjI5LjYxOTVIMjYuOTkxMlYzNC4wMDMySDI1LjE5NzNMMTguMTAyNiAyNi45MTc3QzE4LjAxMTMgMjcuMzY3NCAxNy45MzgzIDI3LjgxNzUgMTcuODgzNCAyOC4yNjhDMTcuODI4NiAyOC43MTg1IDE3LjgwMTIgMjkuMTY5IDE3LjgwMTIgMjkuNjE5NUMxNy44MDEyIDMyLjc5NSAxOC44OTU0IDM1LjUyOTkgMjEuMDgzOSAzNy44MjQ0QzIzLjI3MjMgNDAuMTE4OCAyNS45ODgzIDQxLjMxODQgMjkuMjMxNyA0MS40MjMxVjQzLjIyNDNaTTQyLjcxNzEgNDIuNTY2NEwzNy44NDM2IDM3LjcyMDRDMzcuMzc4NiAzOC4wNTE5IDM2Ljg3MzggMzguMzA4NiAzNi4zMjkxIDM4LjQ5MDZDMzUuNzg0NSAzOC42NzI1IDM1LjIyNCAzOC43NjM1IDM0LjY0NzcgMzguNzYzNUMzMy4wOTk5IDM4Ljc2MzUgMzEuNzg0NSAzOC4yMjI4IDMwLjcwMTYgMzcuMTQxNEMyOS42MTg4IDM2LjA2MDEgMjkuMDc3NCAzNC43NDY1IDI5LjA3NzQgMzMuMjAwOEMyOS4wNzc0IDMxLjY1NTEgMjkuNjE4MSAzMC4zNDI1IDMwLjY5OTUgMjkuMjYzQzMxLjc4MDggMjguMTgzNSAzMy4wOTQ0IDI3LjY0MzcgMzQuNjQwMSAyNy42NDM3QzM2LjE4NTggMjcuNjQzNyAzNy40OTg0IDI4LjE4NTIgMzguNTc3OSAyOS4yNjhDMzkuNjU3NCAzMC4zNTA5IDQwLjE5NzIgMzEuNjY2MiA0MC4xOTcyIDMzLjIxNEM0MC4xOTcyIDMzLjc5OTUgNDAuMTAxNCAzNC4zNjY5IDM5LjkxIDM0LjkxNjJDMzkuNzE4NSAzNS40NjU0IDM5LjQ1NzQgMzUuOTc3NSAzOS4xMjY1IDM2LjQ1MjNMNDQgNDEuMjgzNUw0Mi43MTcxIDQyLjU2NjRaTTM0LjYzMzkgMzYuOTYyM0MzNS42ODUgMzYuOTYyMyAzNi41NzQ4IDM2LjU5OTIgMzcuMzAzMyAzNS44NzNDMzguMDMxOCAzNS4xNDY4IDM4LjM5NiAzNC4yNTgxIDM4LjM5NiAzMy4yMDdDMzguMzk2IDMyLjE1NTkgMzguMDMyOSAzMS4yNjYxIDM3LjMwNjcgMzAuNTM3NkMzNi41ODA0IDI5LjgwOTEgMzUuNjkxOCAyOS40NDQ5IDM0LjY0MDYgMjkuNDQ0OUMzMy41ODk1IDI5LjQ0NDkgMzIuNjk5NyAyOS44MDggMzEuOTcxMiAzMC41MzQyQzMxLjI0MjggMzEuMjYwNSAzMC44Nzg2IDMyLjE0OTEgMzAuODc4NiAzMy4yMDAzQzMwLjg3ODYgMzQuMjUxNCAzMS4yNDE3IDM1LjE0MTIgMzEuOTY3OSAzNS44Njk3QzMyLjY5NDEgMzYuNTk4MSAzMy41ODI4IDM2Ljk2MjMgMzQuNjMzOSAzNi45NjIzWiIgZmlsbD0iIzY0NDBERCIvPgo8cGF0aCBkPSJNMzguODY3NSAyNy4xOTg3TDQ1Ljg2NzUgMzMuNzMyTDQ0LjQ2NzUgNDcuMjY1NEwzOC44Njc1IDQ2LjMzMkMzNi44NDUzIDQ1LjA4NzYgMzIuNDI3NSA0Mi40MTIgMzAuOTM0MSA0MS42NjU0QzI5LjQ0MDggNDAuOTE4NyAyOC4xMzQxIDM3LjYyMDkgMjcuNjY3NSAzNi4wNjU0VjMxLjg2NTRMMjkuMDY3NSAyOC4xMzJMMzIuODAwOCAyNS4zMzJMMzguODY3NSAyNy4xOTg3WiIgZmlsbD0iIzJDMjQ0NiIvPgo8L2c+Cjwvc3ZnPgo=",dev_guide=Object.freeze(Object.defineProperty({__proto__:null,default:DevGuide},Symbol.toStringTag,{value:"Module"})),WorkspaceGuide="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHZpZXdCb3g9IjAgMCA2MCA2MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMzAiIGN5PSIzMCIgcj0iMzAiIGZpbGw9IiNFRkVERjkiLz4KPG1hc2sgaWQ9Im1hc2swXzIzMF8xMDE1MjAiIHN0eWxlPSJtYXNrLXR5cGU6YWxwaGEiIG1hc2tVbml0cz0idXNlclNwYWNlT25Vc2UiIHg9IjE3IiB5PSIxOSIgd2lkdGg9IjI1IiBoZWlnaHQ9IjIyIj4KPHBhdGggZD0iTTQwLjUwNDMgMzkuMTI2NlYyMC44NjJDNDAuNTA0MyAyMC43NTUyIDQwLjQ3IDIwLjY2NzQgNDAuNDAxMyAyMC41OTg3QzQwLjMzMjYgMjAuNTMgNDAuMjQ0OCAyMC40OTU3IDQwLjEzOCAyMC40OTU3SDE4Ljg2MkMxOC43NTUyIDIwLjQ5NTcgMTguNjY3NCAyMC41MyAxOC41OTg3IDIwLjU5ODdDMTguNTMgMjAuNjY3NCAxOC40OTU3IDIwLjc1NTIgMTguNDk1NyAyMC44NjJWMzAuMDE5NUgxN1YyMC44NjJDMTcgMjAuMzQ4NyAxNy4xODI4IDE5LjkxIDE3LjU0ODUgMTkuNTQ2QzE3LjkxNDIgMTkuMTgyIDE4LjM1MiAxOSAxOC44NjIgMTlINDAuMTM4QzQwLjY0OCAxOSA0MS4wODU4IDE5LjE4MjggNDEuNDUxNSAxOS41NDg1QzQxLjgxNzIgMTkuOTE0MSA0MiAyMC4zNTIgNDIgMjAuODYyVjM3LjI4MDdDNDIgMzcuNzI4NSA0MS44NTk1IDM4LjEyNTQgNDEuNTc4NCAzOC40NzEzQzQxLjI5NzMgMzguODE3MSA0MC45MzkzIDM5LjAzNTUgNDAuNTA0MyAzOS4xMjY2Wk0yNS45Mjg2IDMxLjQxOTFDMjQuNzc5MyAzMS40MTkxIDIzLjgyMTcgMzEuMDM2MSAyMy4wNTU4IDMwLjI3MDJDMjIuMjg5OSAyOS41MDQzIDIxLjkwNjkgMjguNTQ1NCAyMS45MDY5IDI3LjM5MzZDMjEuOTA2OSAyNi4yNDE4IDIyLjI4OTkgMjUuMjg0MiAyMy4wNTU4IDI0LjUyMDlDMjMuODIxNyAyMy43NTc1IDI0Ljc3OTMgMjMuMzc1OCAyNS45Mjg2IDIzLjM3NThDMjcuMDc3OCAyMy4zNzU4IDI4LjAzNTQgMjMuNzU3NSAyOC44MDEzIDI0LjUyMDlDMjkuNTY3MyAyNS4yODQyIDI5Ljk1MDIgMjYuMjQxOCAyOS45NTAyIDI3LjM5MzZDMjkuOTUwMiAyOC41NDU0IDI5LjU2NzMgMjkuNTA0MyAyOC44MDEzIDMwLjI3MDJDMjguMDM1NCAzMS4wMzYxIDI3LjA3NzggMzEuNDE5MSAyNS45Mjg2IDMxLjQxOTFaTTE3IDQwLjQ5NzJWMzguMTA4N0MxNyAzNy40ODggMTcuMTY1OCAzNi45MzY2IDE3LjQ5NzIgMzYuNDU0NkMxNy44Mjg3IDM1Ljk3MjYgMTguMjYzMiAzNS42MDIxIDE4LjgwMSAzNS4zNDMxQzIwLjAyODYgMzQuNzc5NCAyMS4yMjk2IDM0LjM1NTQgMjIuNDAzOSAzNC4wNzFDMjMuNTc4MSAzMy43ODY2IDI0Ljc1MyAzMy42NDQ0IDI1LjkyODMgMzMuNjQ0NEMyNy4xMDM3IDMzLjY0NDQgMjguMjc2NiAzMy43ODg2IDI5LjQ0NjkgMzQuMDc3MUMzMC42MTczIDM0LjM2NTYgMzEuODE0NyAzNC43ODk0IDMzLjAzOSAzNS4zNDg1QzMzLjU5MDggMzUuNjA3IDM0LjAzMTggMzUuOTc2NSAzNC4zNjE5IDM2LjQ1N0MzNC42OTIxIDM2LjkzNzQgMzQuODU3MSAzNy40ODggMzQuODU3MSAzOC4xMDg3VjQwLjQ5NzJIMTdaIiBmaWxsPSIjNjQ0MEREIi8+CjwvbWFzaz4KPGcgbWFzaz0idXJsKCNtYXNrMF8yMzBfMTAxNTIwKSI+CjxwYXRoIGQ9Ik00MC41MDQzIDM5LjEyNjZWMjAuODYyQzQwLjUwNDMgMjAuNzU1MiA0MC40NyAyMC42Njc0IDQwLjQwMTMgMjAuNTk4N0M0MC4zMzI2IDIwLjUzIDQwLjI0NDggMjAuNDk1NyA0MC4xMzggMjAuNDk1N0gxOC44NjJDMTguNzU1MiAyMC40OTU3IDE4LjY2NzQgMjAuNTMgMTguNTk4NyAyMC41OTg3QzE4LjUzIDIwLjY2NzQgMTguNDk1NyAyMC43NTUyIDE4LjQ5NTcgMjAuODYyVjMwLjAxOTVIMTdWMjAuODYyQzE3IDIwLjM0ODcgMTcuMTgyOCAxOS45MSAxNy41NDg1IDE5LjU0NkMxNy45MTQyIDE5LjE4MiAxOC4zNTIgMTkgMTguODYyIDE5SDQwLjEzOEM0MC42NDggMTkgNDEuMDg1OCAxOS4xODI4IDQxLjQ1MTUgMTkuNTQ4NUM0MS44MTcyIDE5LjkxNDEgNDIgMjAuMzUyIDQyIDIwLjg2MlYzNy4yODA3QzQyIDM3LjcyODUgNDEuODU5NSAzOC4xMjU0IDQxLjU3ODQgMzguNDcxM0M0MS4yOTczIDM4LjgxNzEgNDAuOTM5MyAzOS4wMzU1IDQwLjUwNDMgMzkuMTI2NlpNMjUuOTI4NiAzMS40MTkxQzI0Ljc3OTMgMzEuNDE5MSAyMy44MjE3IDMxLjAzNjEgMjMuMDU1OCAzMC4yNzAyQzIyLjI4OTkgMjkuNTA0MyAyMS45MDY5IDI4LjU0NTQgMjEuOTA2OSAyNy4zOTM2QzIxLjkwNjkgMjYuMjQxOCAyMi4yODk5IDI1LjI4NDIgMjMuMDU1OCAyNC41MjA5QzIzLjgyMTcgMjMuNzU3NSAyNC43NzkzIDIzLjM3NTggMjUuOTI4NiAyMy4zNzU4QzI3LjA3NzggMjMuMzc1OCAyOC4wMzU0IDIzLjc1NzUgMjguODAxMyAyNC41MjA5QzI5LjU2NzMgMjUuMjg0MiAyOS45NTAyIDI2LjI0MTggMjkuOTUwMiAyNy4zOTM2QzI5Ljk1MDIgMjguNTQ1NCAyOS41NjczIDI5LjUwNDMgMjguODAxMyAzMC4yNzAyQzI4LjAzNTQgMzEuMDM2MSAyNy4wNzc4IDMxLjQxOTEgMjUuOTI4NiAzMS40MTkxWk0xNyA0MC40OTcyVjM4LjEwODdDMTcgMzcuNDg4IDE3LjE2NTggMzYuOTM2NiAxNy40OTcyIDM2LjQ1NDZDMTcuODI4NyAzNS45NzI2IDE4LjI2MzIgMzUuNjAyMSAxOC44MDEgMzUuMzQzMUMyMC4wMjg2IDM0Ljc3OTQgMjEuMjI5NiAzNC4zNTU0IDIyLjQwMzkgMzQuMDcxQzIzLjU3ODEgMzMuNzg2NiAyNC43NTMgMzMuNjQ0NCAyNS45MjgzIDMzLjY0NDRDMjcuMTAzNyAzMy42NDQ0IDI4LjI3NjYgMzMuNzg4NiAyOS40NDY5IDM0LjA3NzFDMzAuNjE3MyAzNC4zNjU2IDMxLjgxNDcgMzQuNzg5NCAzMy4wMzkgMzUuMzQ4NUMzMy41OTA4IDM1LjYwNyAzNC4wMzE4IDM1Ljk3NjUgMzQuMzYxOSAzNi40NTdDMzQuNjkyMSAzNi45Mzc0IDM0Ljg1NzEgMzcuNDg4IDM0Ljg1NzEgMzguMTA4N1Y0MC40OTcySDE3WiIgZmlsbD0iIzJDMjQ0NiIvPgo8cGF0aCBkPSJNMTguNDMyIDMyLjIwOTZMMTQuMTQ2MyAzNC43MDk2TDEyLjAwMzQgNDYuNDk1M0wzNy43MTc4IDQzLjk5NTNWNDAuNzgxVjMzLjYzODFMMzIuNzE3OCAyMi45MjM4SDI3LjAwMzVIMjAuOTMyTDE4LjQzMiAzMi4yMDk2WiIgZmlsbD0iIzY0NDBERCIvPgo8L2c+Cjwvc3ZnPgo=",ws_guide=Object.freeze(Object.defineProperty({__proto__:null,default:WorkspaceGuide},Symbol.toStringTag,{value:"Module"})),_hoisted_1$Y={class:"assets-header"},_hoisted_2$M={key:0,class:"header-title"},_hoisted_3$D={key:1,class:"header-account-info"},_hoisted_4$y={class:"header-button-area"},_hoisted_5$v={key:0},_hoisted_6$r={class:"select-content"},_hoisted_7$k={key:0,class:"select-title"},_hoisted_8$h={key:1,class:"assets-body"},_hoisted_9$e={key:0,class:"assets-amount"},_hoisted_10$d={class:"amount-unit"},_hoisted_11$d={class:"amount-value"},_hoisted_12$d={key:1,class:"assets-balance"},_hoisted_13$c={class:"balance"},_hoisted_14$b={class:"value"},_hoisted_15$b={class:"buttons-area"},_sfc_main$1d=defineComponent({__name:"TotalAssets",props:{title:{default:""},amountUnit:{},amountValue:{},sendText:{},receiveText:{},addAccountText:{},type:{default:"wallet"},accountInfo:{default:void 0},isMobile:{type:Boolean},selectedOption:{default:void 0},isDefaultPage:{type:Boolean,default:void 0},loading:{type:Boolean,default:!1}},emits:["click-send","click-receive","click-settings","click-create-account","click-selected","error:load-token-icon","error:load-network-icon"],setup(u,{emit:f}){const d=f,_=E=>{d("click-selected",E)},x=()=>{d("error:load-network-icon")},I=()=>{d("error:load-token-icon")};return(E,M)=>{var S,A,T,D,O,j,$;return openBlock(),createElementBlock("div",{class:normalizeClass(["total-assets",E.isMobile?"is-mobile":""])},[createBaseVNode("div",_hoisted_1$Y,[E.type==="wallet"?(openBlock(),createElementBlock("div",_hoisted_2$M,toDisplayString$2(E.title),1)):(openBlock(),createElementBlock("div",_hoisted_3$D,[createVNode(unref(NetworkIcon),{"token-src":(S=E.accountInfo)==null?void 0:S.iconSrc,"network-src":(A=E.accountInfo)==null?void 0:A.networkIconSrc,size:"big","onError:networkIcon":x,"onError:tokenIcon":I},null,8,["token-src","network-src"]),createBaseVNode("span",null,toDisplayString$2((T=E.accountInfo)==null?void 0:T.name),1),createBaseVNode("span",null,toDisplayString$2((D=E.accountInfo)==null?void 0:D.label),1)])),createBaseVNode("div",_hoisted_4$y,[renderSlot(E.$slots,"default",{},void 0,!0),createBaseVNode("div",{onClick:M[0]||(M[0]=W=>d("click-settings"))},[createVNode(unref(IconButton),{name:"Gear","icon-size":"medium",size:"small",color:unref(colors).currentThemeRef.value.main},null,8,["color"])])])]),E.isMobile&&E.selectedOption?(openBlock(),createElementBlock("div",_hoisted_5$v,[createBaseVNode("div",_hoisted_6$r,[createBaseVNode("span",{class:normalizeClass(E.isDefaultPage?"selected-option":""),onClick:M[1]||(M[1]=W=>{var Q;return _((Q=E.selectedOption)==null?void 0:Q.history)})},toDisplayString$2(E.selectedOption.history),3),createBaseVNode("span",{class:normalizeClass(E.isDefaultPage?"":"selected-option"),onClick:M[2]||(M[2]=W=>{var Q;return _((Q=E.selectedOption)==null?void 0:Q.stat)})},toDisplayString$2(E.selectedOption.stat),3)]),E.isDefaultPage?(openBlock(),createElementBlock("div",_hoisted_7$k,toDisplayString$2(E.selectedOption.text),1)):createCommentVNode("",!0)])):createCommentVNode("",!0),E.selectedOption&&!E.isDefaultPage?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_8$h,[E.type==="wallet"?(openBlock(),createElementBlock("div",_hoisted_9$e,[E.loading?(openBlock(),createBlock(unref(Skeleton),{key:0,width:E.isMobile?"100%":"368px",height:"60px","border-radius":"8px"},null,8,["width"])):(openBlock(),createElementBlock(Fragment,{key:1},[createBaseVNode("span",_hoisted_10$d,toDisplayString$2(E.amountUnit),1),createBaseVNode("span",_hoisted_11$d,toDisplayString$2(E.amountValue==="NaN"?0:E.amountValue),1)],64))])):(openBlock(),createElementBlock("div",_hoisted_12$d,[createBaseVNode("div",_hoisted_13$c,[createBaseVNode("span",null,toDisplayString$2(((O=E.accountInfo)==null?void 0:O.balance)==="NaN"?0:(j=E.accountInfo)==null?void 0:j.balance),1),createBaseVNode("span",null,toDisplayString$2(($=E.accountInfo)==null?void 0:$.symbol),1)]),createBaseVNode("div",_hoisted_14$b,[createBaseVNode("span",null,toDisplayString$2(E.amountUnit),1),createBaseVNode("span",null,toDisplayString$2(E.amountValue==="NaN"?0:E.amountValue),1)])])),createBaseVNode("div",_hoisted_15$b,[createVNode(unref(BasicButton),{class:"btn btn-send",type:"outlined",onClick:M[3]||(M[3]=W=>d("click-send"))},{default:withCtx(()=>[createTextVNode(toDisplayString$2(E.sendText),1)]),_:1}),createVNode(unref(BasicButton),{class:"btn btn-receive",type:"primary",onClick:M[4]||(M[4]=W=>d("click-receive"))},{default:withCtx(()=>[createTextVNode(toDisplayString$2(E.receiveText),1)]),_:1})]),E.addAccountText?(openBlock(),createBlock(unref(BasicButton),{key:2,class:"create-account",type:"outlined",width:"100%",onClick:M[5]||(M[5]=W=>d("click-create-account"))},{default:withCtx(()=>[createTextVNode(toDisplayString$2(E.addAccountText),1)]),_:1})):createCommentVNode("",!0)]))],2)}}}),TotalAssets=_export_sfc$1(_sfc_main$1d,[["__scopeId","data-v-d7a9b822"]]),BackgroundLogo="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjMwIiBoZWlnaHQ9IjI2OSIgdmlld0JveD0iMCAwIDIzMCAyNjkiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxnIG9wYWNpdHk9IjAuMDUiPgo8cGF0aCBkPSJNMTIzLjU3IDEwLjY1MDRDNjguNTMwOSAxMC42NTA0IDIzLjkxNDEgNTUuMDE2NyAyMy45MTQxIDEwOS43NDdDMjMuOTE0MSAxMjcuMjA2IDI4LjU2OCAxMzguMTI0IDM2LjM0MzIgMTU3LjkxTDY3LjQxNjIgMjMwLjYyNUM3MS45ODY2IDI0My4zNzMgODQuMTY0OSAyNTIuNDkgOTguNTQ0OSAyNTIuNDlDMTExLjk3NyAyNTIuNDkgMTIzLjU0MyAyNDQuNTA5IDEyOC42OTggMjMzLjAzNkwxNDAuNzkzIDIwNy4zMkMxODcuNjExIDE5OS4yIDIyMy4yMjcgMTU4LjYzMSAyMjMuMjI3IDEwOS43NDdDMjIzLjE5OSA1NS4wMTY3IDE3OC41ODIgMTAuNjUwNCAxMjMuNTcgMTAuNjUwNFpNMTIzLjU3IDE3NC42MkMxMjEuNjc1IDE3NC42MiAxMTkuODM2IDE3NC41MDkgMTE3Ljk5NyAxNzQuMzcxTDExNy44MDIgMTc0Ljc4Nkw5OC40MDU1IDIxNS45MzhMOTguMzQ5OCAyMTUuODI3TDY2LjUyNDQgMTQxLjMxMUM2MC43IDEyNy4xMjIgNTguMzMxMiAxMjEuMTkyIDU4LjMzMTIgMTA5LjcxOUM1OC4zMzEyIDczLjg4ODQgODcuNTM3IDQ0Ljg0NjYgMTIzLjU3IDQ0Ljg0NjZDMTU5LjYwNCA0NC44NDY2IDE4OC44MSA3My44ODg0IDE4OC44MSAxMDkuNzE5QzE4OC44MSAxNDUuNTUxIDE1OS42MDQgMTc0LjU5MiAxMjMuNTcgMTc0LjU5MlYxNzQuNjJaIiBmaWxsPSJ3aGl0ZSIvPgo8cGF0aCBkPSJNMTIzLjU3NiAxMzUuMDM5QzEzNy42MjggMTM1LjAzOSAxNDkuMDIgMTIzLjcxMSAxNDkuMDIgMTA5LjczOEMxNDkuMDIgOTUuNzY1IDEzNy42MjggODQuNDM3NSAxMjMuNTc2IDg0LjQzNzVDMTA5LjUyNCA4NC40Mzc1IDk4LjEzMjggOTUuNzY1IDk4LjEzMjggMTA5LjczOEM5OC4xMzI4IDEyMy43MTEgMTA5LjUyNCAxMzUuMDM5IDEyMy41NzYgMTM1LjAzOVoiIGZpbGw9IndoaXRlIi8+CjwvZz4KPC9zdmc+Cg==",background_logo=Object.freeze(Object.defineProperty({__proto__:null,default:BackgroundLogo},Symbol.toStringTag,{value:"Module"})),_sfc_main$13=defineComponent({__name:"BasicPopup",props:{isOpen:{type:Boolean,default:!1},isMobile:{type:Boolean,default:!1}},emits:["click:overlay"],setup(u,{emit:f}){const d=u,_=f,x=I=>{_("click:overlay",I)};return watch(()=>d.isOpen,()=>{d.isOpen?document.body.style.overflow="hidden":document.body.style.removeProperty("overflow")}),(I,E)=>(openBlock(),createBlock(unref(Overlay),{show:u.isOpen,opacity:.4,"onOnClick:overlay":withModifiers(x,["self"])},{default:withCtx(()=>[createBaseVNode("div",{class:normalizeClass(["popupWrapper",u.isMobile?"isMobile":""])},[renderSlot(I.$slots,"default",{},void 0,!0)],2)]),_:3},8,["show"]))}}),BasicPopup=_export_sfc$1(_sfc_main$13,[["__scopeId","data-v-0f0984b3"]]),_sfc_main$12=defineComponent({__name:"AlertPopup",props:{isOpen:{type:Boolean,default:!1},isMobile:{type:Boolean,default:!1},zIndex:{type:Number,default:1e3}},emits:["click:overlay"],setup(u,{emit:f}){const d=u,_=f,x=I=>{_("click:overlay",I)};return watch(()=>d.isOpen,()=>{d.isOpen?document.body.style.overflow="hidden":document.body.style.removeProperty("overflow")}),(I,E)=>(openBlock(),createBlock(unref(Overlay),{show:u.isOpen,"z-index":u.zIndex,opacity:.4,"onOnClick:overlay":withModifiers(x,["self"])},{default:withCtx(()=>[createBaseVNode("div",{class:normalizeClass(["popupWrapper",u.isMobile?"isMobile":""])},[renderSlot(I.$slots,"default",{},void 0,!0)],2)]),_:3},8,["show","z-index"]))}}),AlertPopup=_export_sfc$1(_sfc_main$12,[["__scopeId","data-v-d6c94789"]]),_sfc_main$11=defineComponent({__name:"BottomSheet",props:{isOpen:{type:Boolean},width:{default:"100%"},maxWidth:{default:"800px"},zIndex:{default:1e3}},emits:["click:overlay"],setup(u,{emit:f}){const d=f,_=x=>{d("click:overlay",x)};return(x,I)=>(openBlock(),createBlock(Transition,null,{default:withCtx(()=>[createVNode(unref(Overlay),{show:x.isOpen,"z-index":x.zIndex,opacity:.4,"onOnClick:overlay":withModifiers(_,["self"])},{default:withCtx(()=>[createBaseVNode("div",{class:"popupWrapper",style:normalizeStyle([{width:x.width},{maxWidth:x.maxWidth}])},[renderSlot(x.$slots,"default",{},void 0,!0)],4)]),_:3},8,["show","z-index"])]),_:3}))}}),BottomSheet=_export_sfc$1(_sfc_main$11,[["__scopeId","data-v-0e3dfbff"]]),_hoisted_1$K={class:"icon"},_hoisted_2$B={key:0,class:"title"},_hoisted_3$u={class:"icon"},_sfc_main$Y=defineComponent({__name:"BasicHeader",props:{title:{type:String,default:void 0},exit:{type:Function,default:void 0},back:{type:Function,default:void 0}},setup(u){const f=u,d=computed(()=>f.title?{padding:"20px"}:{padding:"13px 14px 7px 14px"});return(_,x)=>(openBlock(),createElementBlock("div",{class:"wrapper",style:normalizeStyle(d.value)},[createBaseVNode("div",_hoisted_1$K,[u.back?(openBlock(),createBlock(unref(Element$1),{key:0,name:"ArrowLeft",size:"big",color:unref(colors).currentThemeRef.value.grey_999,onClick:u.back},null,8,["color","onClick"])):createCommentVNode("",!0)]),createBaseVNode("div",null,[u.title?(openBlock(),createElementBlock("span",_hoisted_2$B,toDisplayString$2(u.title),1)):createCommentVNode("",!0)]),createBaseVNode("div",_hoisted_3$u,[u.exit?(openBlock(),createBlock(unref(Element$1),{key:0,name:"Close",size:"big",color:unref(colors).currentThemeRef.value.grey_999,onClick:u.exit},null,8,["color","onClick"])):createCommentVNode("",!0)])],4))}}),BasicHeader=_export_sfc$1(_sfc_main$Y,[["__scopeId","data-v-907ed1d3"]]),_hoisted_1$J={class:"icon"},_hoisted_2$A={key:0,class:"title"},_hoisted_3$t={class:"icon"},_hoisted_4$q={class:"progressWrapper"},_sfc_main$X=defineComponent({__name:"ProgressHeader",props:{title:{type:String,default:void 0},exit:{type:Function,default:void 0},back:{type:Function,default:void 0},fill:{type:Boolean,default:!1},progress:{type:Number,default:1,validator:u=>u>0},maxProgress:{type:Number,default:1,validator:u=>u>0}},setup(u){const f=u,d=computed(()=>f.title?{padding:"20px 20px 9px 20px"}:{padding:"13px 14px 7px 14px"}),_=x=>f.fill?f.progress>=x+1:f.progress===x+1;return(x,I)=>(openBlock(),createElementBlock("div",{class:"wrapper",style:normalizeStyle(d.value)},[createBaseVNode("div",_hoisted_1$J,[u.back?(openBlock(),createBlock(unref(Element$1),{key:0,name:"ArrowLeft",size:"big",color:unref(colors).currentThemeRef.value.grey_999,onClick:u.back},null,8,["color","onClick"])):createCommentVNode("",!0)]),createBaseVNode("div",null,[u.title?(openBlock(),createElementBlock("span",_hoisted_2$A,toDisplayString$2(u.title),1)):createCommentVNode("",!0)]),createBaseVNode("div",_hoisted_3$t,[u.exit?(openBlock(),createBlock(unref(Element$1),{key:0,name:"Close",size:"big",color:unref(colors).currentThemeRef.value.grey_999,onClick:u.exit},null,8,["color","onClick"])):createCommentVNode("",!0)]),createBaseVNode("div",_hoisted_4$q,[(openBlock(!0),createElementBlock(Fragment,null,renderList(u.maxProgress,(E,M)=>(openBlock(),createElementBlock("span",{key:M,class:normalizeClass(_(M)?"checked":"")},null,2))),128))])],4))}}),PopupProgressHeader=_export_sfc$1(_sfc_main$X,[["__scopeId","data-v-347eb283"]]),_imports_0="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTEiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCAxMSAxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iNS41IiBjeT0iNiIgcj0iNC41IiBmaWxsPSJ3aGl0ZSIgc3Ryb2tlPSIjRjUyMjJEIiBzdHJva2Utd2lkdGg9IjIiLz4KPGxpbmUgeDE9IjIuMjUyNTMiIHkxPSIyLjkwODExIiB4Mj0iOC45MzA5NSIgeTI9IjkuMTE0NjQiIHN0cm9rZT0iI0Y1MjIyRCIgc3Ryb2tlLXdpZHRoPSIyIi8+Cjwvc3ZnPgo=",ban=Object.freeze(Object.defineProperty({__proto__:null,default:_imports_0},Symbol.toStringTag,{value:"Module"}));var isNumeric=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,mathceil=Math.ceil,mathfloor=Math.floor,bignumberError="[BigNumber Error] ",tooManyDigits=bignumberError+"Number primitive has more than 15 significant digits: ",BASE=1e14,LOG_BASE=14,MAX_SAFE_INTEGER=9007199254740991,POWS_TEN=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],SQRT_BASE=1e7,MAX=1e9;function clone$1(u){var f,d,_,x=Y.prototype={constructor:Y,toString:null,valueOf:null},I=new Y(1),E=20,M=4,S=-7,A=21,T=-1e7,D=1e7,O=!1,j=1,$=0,W={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},Q="0123456789abcdefghijklmnopqrstuvwxyz",X=!0;function Y(de,Ce){var ke,le,re,P,k,B,z,ee,H=this;if(!(H instanceof Y))return new Y(de,Ce);if(Ce==null){if(de&&de._isBigNumber===!0){H.s=de.s,!de.c||de.e>D?H.c=H.e=null:de.e<T?H.c=[H.e=0]:(H.e=de.e,H.c=de.c.slice());return}if((B=typeof de=="number")&&de*0==0){if(H.s=1/de<0?(de=-de,-1):1,de===~~de){for(P=0,k=de;k>=10;k/=10,P++);P>D?H.c=H.e=null:(H.e=P,H.c=[de]);return}ee=String(de)}else{if(!isNumeric.test(ee=String(de)))return _(H,ee,B);H.s=ee.charCodeAt(0)==45?(ee=ee.slice(1),-1):1}(P=ee.indexOf("."))>-1&&(ee=ee.replace(".","")),(k=ee.search(/e/i))>0?(P<0&&(P=k),P+=+ee.slice(k+1),ee=ee.substring(0,k)):P<0&&(P=ee.length)}else{if(intCheck(Ce,2,Q.length,"Base"),Ce==10&&X)return H=new Y(de),be(H,E+H.e+1,M);if(ee=String(de),B=typeof de=="number"){if(de*0!=0)return _(H,ee,B,Ce);if(H.s=1/de<0?(ee=ee.slice(1),-1):1,Y.DEBUG&&ee.replace(/^0\.0*|\./,"").length>15)throw Error(tooManyDigits+de)}else H.s=ee.charCodeAt(0)===45?(ee=ee.slice(1),-1):1;for(ke=Q.slice(0,Ce),P=k=0,z=ee.length;k<z;k++)if(ke.indexOf(le=ee.charAt(k))<0){if(le=="."){if(k>P){P=z;continue}}else if(!re&&(ee==ee.toUpperCase()&&(ee=ee.toLowerCase())||ee==ee.toLowerCase()&&(ee=ee.toUpperCase()))){re=!0,k=-1,P=0;continue}return _(H,String(de),B,Ce)}B=!1,ee=d(ee,Ce,10,H.s),(P=ee.indexOf("."))>-1?ee=ee.replace(".",""):P=ee.length}for(k=0;ee.charCodeAt(k)===48;k++);for(z=ee.length;ee.charCodeAt(--z)===48;);if(ee=ee.slice(k,++z)){if(z-=k,B&&Y.DEBUG&&z>15&&(de>MAX_SAFE_INTEGER||de!==mathfloor(de)))throw Error(tooManyDigits+H.s*de);if((P=P-k-1)>D)H.c=H.e=null;else if(P<T)H.c=[H.e=0];else{if(H.e=P,H.c=[],k=(P+1)%LOG_BASE,P<0&&(k+=LOG_BASE),k<z){for(k&&H.c.push(+ee.slice(0,k)),z-=LOG_BASE;k<z;)H.c.push(+ee.slice(k,k+=LOG_BASE));k=LOG_BASE-(ee=ee.slice(k)).length}else k-=z;for(;k--;ee+="0");H.c.push(+ee)}}else H.c=[H.e=0]}Y.clone=clone$1,Y.ROUND_UP=0,Y.ROUND_DOWN=1,Y.ROUND_CEIL=2,Y.ROUND_FLOOR=3,Y.ROUND_HALF_UP=4,Y.ROUND_HALF_DOWN=5,Y.ROUND_HALF_EVEN=6,Y.ROUND_HALF_CEIL=7,Y.ROUND_HALF_FLOOR=8,Y.EUCLID=9,Y.config=Y.set=function(de){var Ce,ke;if(de!=null)if(typeof de=="object"){if(de.hasOwnProperty(Ce="DECIMAL_PLACES")&&(ke=de[Ce],intCheck(ke,0,MAX,Ce),E=ke),de.hasOwnProperty(Ce="ROUNDING_MODE")&&(ke=de[Ce],intCheck(ke,0,8,Ce),M=ke),de.hasOwnProperty(Ce="EXPONENTIAL_AT")&&(ke=de[Ce],ke&&ke.pop?(intCheck(ke[0],-MAX,0,Ce),intCheck(ke[1],0,MAX,Ce),S=ke[0],A=ke[1]):(intCheck(ke,-MAX,MAX,Ce),S=-(A=ke<0?-ke:ke))),de.hasOwnProperty(Ce="RANGE"))if(ke=de[Ce],ke&&ke.pop)intCheck(ke[0],-MAX,-1,Ce),intCheck(ke[1],1,MAX,Ce),T=ke[0],D=ke[1];else if(intCheck(ke,-MAX,MAX,Ce),ke)T=-(D=ke<0?-ke:ke);else throw Error(bignumberError+Ce+" cannot be zero: "+ke);if(de.hasOwnProperty(Ce="CRYPTO"))if(ke=de[Ce],ke===!!ke)if(ke)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))O=ke;else throw O=!ke,Error(bignumberError+"crypto unavailable");else O=ke;else throw Error(bignumberError+Ce+" not true or false: "+ke);if(de.hasOwnProperty(Ce="MODULO_MODE")&&(ke=de[Ce],intCheck(ke,0,9,Ce),j=ke),de.hasOwnProperty(Ce="POW_PRECISION")&&(ke=de[Ce],intCheck(ke,0,MAX,Ce),$=ke),de.hasOwnProperty(Ce="FORMAT"))if(ke=de[Ce],typeof ke=="object")W=ke;else throw Error(bignumberError+Ce+" not an object: "+ke);if(de.hasOwnProperty(Ce="ALPHABET"))if(ke=de[Ce],typeof ke=="string"&&!/^.?$|[+\-.\s]|(.).*\1/.test(ke))X=ke.slice(0,10)=="0123456789",Q=ke;else throw Error(bignumberError+Ce+" invalid: "+ke)}else throw Error(bignumberError+"Object expected: "+de);return{DECIMAL_PLACES:E,ROUNDING_MODE:M,EXPONENTIAL_AT:[S,A],RANGE:[T,D],CRYPTO:O,MODULO_MODE:j,POW_PRECISION:$,FORMAT:W,ALPHABET:Q}},Y.isBigNumber=function(de){if(!de||de._isBigNumber!==!0)return!1;if(!Y.DEBUG)return!0;var Ce,ke,le=de.c,re=de.e,P=de.s;e:if({}.toString.call(le)=="[object Array]"){if((P===1||P===-1)&&re>=-MAX&&re<=MAX&&re===mathfloor(re)){if(le[0]===0){if(re===0&&le.length===1)return!0;break e}if(Ce=(re+1)%LOG_BASE,Ce<1&&(Ce+=LOG_BASE),String(le[0]).length==Ce){for(Ce=0;Ce<le.length;Ce++)if(ke=le[Ce],ke<0||ke>=BASE||ke!==mathfloor(ke))break e;if(ke!==0)return!0}}}else if(le===null&&re===null&&(P===null||P===1||P===-1))return!0;throw Error(bignumberError+"Invalid BigNumber: "+de)},Y.maximum=Y.max=function(){return oe(arguments,-1)},Y.minimum=Y.min=function(){return oe(arguments,1)},Y.random=function(){var de=9007199254740992,Ce=Math.random()*de&2097151?function(){return mathfloor(Math.random()*de)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(ke){var le,re,P,k,B,z=0,ee=[],H=new Y(I);if(ke==null?ke=E:intCheck(ke,0,MAX),k=mathceil(ke/LOG_BASE),O)if(crypto.getRandomValues){for(le=crypto.getRandomValues(new Uint32Array(k*=2));z<k;)B=le[z]*131072+(le[z+1]>>>11),B>=9e15?(re=crypto.getRandomValues(new Uint32Array(2)),le[z]=re[0],le[z+1]=re[1]):(ee.push(B%1e14),z+=2);z=k/2}else if(crypto.randomBytes){for(le=crypto.randomBytes(k*=7);z<k;)B=(le[z]&31)*281474976710656+le[z+1]*1099511627776+le[z+2]*4294967296+le[z+3]*16777216+(le[z+4]<<16)+(le[z+5]<<8)+le[z+6],B>=9e15?crypto.randomBytes(7).copy(le,z):(ee.push(B%1e14),z+=7);z=k/7}else throw O=!1,Error(bignumberError+"crypto unavailable");if(!O)for(;z<k;)B=Ce(),B<9e15&&(ee[z++]=B%1e14);for(k=ee[--z],ke%=LOG_BASE,k&&ke&&(B=POWS_TEN[LOG_BASE-ke],ee[z]=mathfloor(k/B)*B);ee[z]===0;ee.pop(),z--);if(z<0)ee=[P=0];else{for(P=-1;ee[0]===0;ee.splice(0,1),P-=LOG_BASE);for(z=1,B=ee[0];B>=10;B/=10,z++);z<LOG_BASE&&(P-=LOG_BASE-z)}return H.e=P,H.c=ee,H}}(),Y.sum=function(){for(var de=1,Ce=arguments,ke=new Y(Ce[0]);de<Ce.length;)ke=ke.plus(Ce[de++]);return ke},d=function(){var de="0123456789";function Ce(ke,le,re,P){for(var k,B=[0],z,ee=0,H=ke.length;ee<H;){for(z=B.length;z--;B[z]*=le);for(B[0]+=P.indexOf(ke.charAt(ee++)),k=0;k<B.length;k++)B[k]>re-1&&(B[k+1]==null&&(B[k+1]=0),B[k+1]+=B[k]/re|0,B[k]%=re)}return B.reverse()}return function(ke,le,re,P,k){var B,z,ee,H,q,J,U,Z,ve=ke.indexOf("."),Ye=E,rt=M;for(ve>=0&&(H=$,$=0,ke=ke.replace(".",""),Z=new Y(le),J=Z.pow(ke.length-ve),$=H,Z.c=Ce(toFixedPoint(coeffToString(J.c),J.e,"0"),10,re,de),Z.e=Z.c.length),U=Ce(ke,le,re,k?(B=Q,de):(B=de,Q)),ee=H=U.length;U[--H]==0;U.pop());if(!U[0])return B.charAt(0);if(ve<0?--ee:(J.c=U,J.e=ee,J.s=P,J=f(J,Z,Ye,rt,re),U=J.c,q=J.r,ee=J.e),z=ee+Ye+1,ve=U[z],H=re/2,q=q||z<0||U[z+1]!=null,q=rt<4?(ve!=null||q)&&(rt==0||rt==(J.s<0?3:2)):ve>H||ve==H&&(rt==4||q||rt==6&&U[z-1]&1||rt==(J.s<0?8:7)),z<1||!U[0])ke=q?toFixedPoint(B.charAt(1),-Ye,B.charAt(0)):B.charAt(0);else{if(U.length=z,q)for(--re;++U[--z]>re;)U[z]=0,z||(++ee,U=[1].concat(U));for(H=U.length;!U[--H];);for(ve=0,ke="";ve<=H;ke+=B.charAt(U[ve++]));ke=toFixedPoint(ke,ee,B.charAt(0))}return ke}}(),f=function(){function de(le,re,P){var k,B,z,ee,H=0,q=le.length,J=re%SQRT_BASE,U=re/SQRT_BASE|0;for(le=le.slice();q--;)z=le[q]%SQRT_BASE,ee=le[q]/SQRT_BASE|0,k=U*z+ee*J,B=J*z+k%SQRT_BASE*SQRT_BASE+H,H=(B/P|0)+(k/SQRT_BASE|0)+U*ee,le[q]=B%P;return H&&(le=[H].concat(le)),le}function Ce(le,re,P,k){var B,z;if(P!=k)z=P>k?1:-1;else for(B=z=0;B<P;B++)if(le[B]!=re[B]){z=le[B]>re[B]?1:-1;break}return z}function ke(le,re,P,k){for(var B=0;P--;)le[P]-=B,B=le[P]<re[P]?1:0,le[P]=B*k+le[P]-re[P];for(;!le[0]&&le.length>1;le.splice(0,1));}return function(le,re,P,k,B){var z,ee,H,q,J,U,Z,ve,Ye,rt,Ue,Qe,vt,ri,ci,tt,et,$e=le.s==re.s?1:-1,Le=le.c,ot=re.c;if(!Le||!Le[0]||!ot||!ot[0])return new Y(!le.s||!re.s||(Le?ot&&Le[0]==ot[0]:!ot)?NaN:Le&&Le[0]==0||!ot?$e*0:$e/0);for(ve=new Y($e),Ye=ve.c=[],ee=le.e-re.e,$e=P+ee+1,B||(B=BASE,ee=bitFloor(le.e/LOG_BASE)-bitFloor(re.e/LOG_BASE),$e=$e/LOG_BASE|0),H=0;ot[H]==(Le[H]||0);H++);if(ot[H]>(Le[H]||0)&&ee--,$e<0)Ye.push(1),q=!0;else{for(ri=Le.length,tt=ot.length,H=0,$e+=2,J=mathfloor(B/(ot[0]+1)),J>1&&(ot=de(ot,J,B),Le=de(Le,J,B),tt=ot.length,ri=Le.length),vt=tt,rt=Le.slice(0,tt),Ue=rt.length;Ue<tt;rt[Ue++]=0);et=ot.slice(),et=[0].concat(et),ci=ot[0],ot[1]>=B/2&&ci++;do{if(J=0,z=Ce(ot,rt,tt,Ue),z<0){if(Qe=rt[0],tt!=Ue&&(Qe=Qe*B+(rt[1]||0)),J=mathfloor(Qe/ci),J>1)for(J>=B&&(J=B-1),U=de(ot,J,B),Z=U.length,Ue=rt.length;Ce(U,rt,Z,Ue)==1;)J--,ke(U,tt<Z?et:ot,Z,B),Z=U.length,z=1;else J==0&&(z=J=1),U=ot.slice(),Z=U.length;if(Z<Ue&&(U=[0].concat(U)),ke(rt,U,Ue,B),Ue=rt.length,z==-1)for(;Ce(ot,rt,tt,Ue)<1;)J++,ke(rt,tt<Ue?et:ot,Ue,B),Ue=rt.length}else z===0&&(J++,rt=[0]);Ye[H++]=J,rt[0]?rt[Ue++]=Le[vt]||0:(rt=[Le[vt]],Ue=1)}while((vt++<ri||rt[0]!=null)&&$e--);q=rt[0]!=null,Ye[0]||Ye.splice(0,1)}if(B==BASE){for(H=1,$e=Ye[0];$e>=10;$e/=10,H++);be(ve,P+(ve.e=H+ee*LOG_BASE-1)+1,k,q)}else ve.e=ee,ve.r=+q;return ve}}();function ie(de,Ce,ke,le){var re,P,k,B,z;if(ke==null?ke=M:intCheck(ke,0,8),!de.c)return de.toString();if(re=de.c[0],k=de.e,Ce==null)z=coeffToString(de.c),z=le==1||le==2&&(k<=S||k>=A)?toExponential(z,k):toFixedPoint(z,k,"0");else if(de=be(new Y(de),Ce,ke),P=de.e,z=coeffToString(de.c),B=z.length,le==1||le==2&&(Ce<=P||P<=S)){for(;B<Ce;z+="0",B++);z=toExponential(z,P)}else if(Ce-=k,z=toFixedPoint(z,P,"0"),P+1>B){if(--Ce>0)for(z+=".";Ce--;z+="0");}else if(Ce+=P-B,Ce>0)for(P+1==B&&(z+=".");Ce--;z+="0");return de.s<0&&re?"-"+z:z}function oe(de,Ce){for(var ke,le,re=1,P=new Y(de[0]);re<de.length;re++)le=new Y(de[re]),(!le.s||(ke=compare(P,le))===Ce||ke===0&&P.s===Ce)&&(P=le);return P}function ge(de,Ce,ke){for(var le=1,re=Ce.length;!Ce[--re];Ce.pop());for(re=Ce[0];re>=10;re/=10,le++);return(ke=le+ke*LOG_BASE-1)>D?de.c=de.e=null:ke<T?de.c=[de.e=0]:(de.e=ke,de.c=Ce),de}_=function(){var de=/^(-?)0([xbo])(?=\w[\w.]*$)/i,Ce=/^([^.]+)\.$/,ke=/^\.([^.]+)$/,le=/^-?(Infinity|NaN)$/,re=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(P,k,B,z){var ee,H=B?k:k.replace(re,"");if(le.test(H))P.s=isNaN(H)?null:H<0?-1:1;else{if(!B&&(H=H.replace(de,function(q,J,U){return ee=(U=U.toLowerCase())=="x"?16:U=="b"?2:8,!z||z==ee?J:q}),z&&(ee=z,H=H.replace(Ce,"$1").replace(ke,"0.$1")),k!=H))return new Y(H,ee);if(Y.DEBUG)throw Error(bignumberError+"Not a"+(z?" base "+z:"")+" number: "+k);P.s=null}P.c=P.e=null}}();function be(de,Ce,ke,le){var re,P,k,B,z,ee,H,q=de.c,J=POWS_TEN;if(q){e:{for(re=1,B=q[0];B>=10;B/=10,re++);if(P=Ce-re,P<0)P+=LOG_BASE,k=Ce,z=q[ee=0],H=mathfloor(z/J[re-k-1]%10);else if(ee=mathceil((P+1)/LOG_BASE),ee>=q.length)if(le){for(;q.length<=ee;q.push(0));z=H=0,re=1,P%=LOG_BASE,k=P-LOG_BASE+1}else break e;else{for(z=B=q[ee],re=1;B>=10;B/=10,re++);P%=LOG_BASE,k=P-LOG_BASE+re,H=k<0?0:mathfloor(z/J[re-k-1]%10)}if(le=le||Ce<0||q[ee+1]!=null||(k<0?z:z%J[re-k-1]),le=ke<4?(H||le)&&(ke==0||ke==(de.s<0?3:2)):H>5||H==5&&(ke==4||le||ke==6&&(P>0?k>0?z/J[re-k]:0:q[ee-1])%10&1||ke==(de.s<0?8:7)),Ce<1||!q[0])return q.length=0,le?(Ce-=de.e+1,q[0]=J[(LOG_BASE-Ce%LOG_BASE)%LOG_BASE],de.e=-Ce||0):q[0]=de.e=0,de;if(P==0?(q.length=ee,B=1,ee--):(q.length=ee+1,B=J[LOG_BASE-P],q[ee]=k>0?mathfloor(z/J[re-k]%J[k])*B:0),le)for(;;)if(ee==0){for(P=1,k=q[0];k>=10;k/=10,P++);for(k=q[0]+=B,B=1;k>=10;k/=10,B++);P!=B&&(de.e++,q[0]==BASE&&(q[0]=1));break}else{if(q[ee]+=B,q[ee]!=BASE)break;q[ee--]=0,B=1}for(P=q.length;q[--P]===0;q.pop());}de.e>D?de.c=de.e=null:de.e<T&&(de.c=[de.e=0])}return de}function ze(de){var Ce,ke=de.e;return ke===null?de.toString():(Ce=coeffToString(de.c),Ce=ke<=S||ke>=A?toExponential(Ce,ke):toFixedPoint(Ce,ke,"0"),de.s<0?"-"+Ce:Ce)}return x.absoluteValue=x.abs=function(){var de=new Y(this);return de.s<0&&(de.s=1),de},x.comparedTo=function(de,Ce){return compare(this,new Y(de,Ce))},x.decimalPlaces=x.dp=function(de,Ce){var ke,le,re,P=this;if(de!=null)return intCheck(de,0,MAX),Ce==null?Ce=M:intCheck(Ce,0,8),be(new Y(P),de+P.e+1,Ce);if(!(ke=P.c))return null;if(le=((re=ke.length-1)-bitFloor(this.e/LOG_BASE))*LOG_BASE,re=ke[re])for(;re%10==0;re/=10,le--);return le<0&&(le=0),le},x.dividedBy=x.div=function(de,Ce){return f(this,new Y(de,Ce),E,M)},x.dividedToIntegerBy=x.idiv=function(de,Ce){return f(this,new Y(de,Ce),0,1)},x.exponentiatedBy=x.pow=function(de,Ce){var ke,le,re,P,k,B,z,ee,H,q=this;if(de=new Y(de),de.c&&!de.isInteger())throw Error(bignumberError+"Exponent not an integer: "+ze(de));if(Ce!=null&&(Ce=new Y(Ce)),B=de.e>14,!q.c||!q.c[0]||q.c[0]==1&&!q.e&&q.c.length==1||!de.c||!de.c[0])return H=new Y(Math.pow(+ze(q),B?de.s*(2-isOdd(de)):+ze(de))),Ce?H.mod(Ce):H;if(z=de.s<0,Ce){if(Ce.c?!Ce.c[0]:!Ce.s)return new Y(NaN);le=!z&&q.isInteger()&&Ce.isInteger(),le&&(q=q.mod(Ce))}else{if(de.e>9&&(q.e>0||q.e<-1||(q.e==0?q.c[0]>1||B&&q.c[1]>=24e7:q.c[0]<8e13||B&&q.c[0]<=9999975e7)))return P=q.s<0&&isOdd(de)?-0:0,q.e>-1&&(P=1/P),new Y(z?1/P:P);$&&(P=mathceil($/LOG_BASE+2))}for(B?(ke=new Y(.5),z&&(de.s=1),ee=isOdd(de)):(re=Math.abs(+ze(de)),ee=re%2),H=new Y(I);;){if(ee){if(H=H.times(q),!H.c)break;P?H.c.length>P&&(H.c.length=P):le&&(H=H.mod(Ce))}if(re){if(re=mathfloor(re/2),re===0)break;ee=re%2}else if(de=de.times(ke),be(de,de.e+1,1),de.e>14)ee=isOdd(de);else{if(re=+ze(de),re===0)break;ee=re%2}q=q.times(q),P?q.c&&q.c.length>P&&(q.c.length=P):le&&(q=q.mod(Ce))}return le?H:(z&&(H=I.div(H)),Ce?H.mod(Ce):P?be(H,$,M,k):H)},x.integerValue=function(de){var Ce=new Y(this);return de==null?de=M:intCheck(de,0,8),be(Ce,Ce.e+1,de)},x.isEqualTo=x.eq=function(de,Ce){return compare(this,new Y(de,Ce))===0},x.isFinite=function(){return!!this.c},x.isGreaterThan=x.gt=function(de,Ce){return compare(this,new Y(de,Ce))>0},x.isGreaterThanOrEqualTo=x.gte=function(de,Ce){return(Ce=compare(this,new Y(de,Ce)))===1||Ce===0},x.isInteger=function(){return!!this.c&&bitFloor(this.e/LOG_BASE)>this.c.length-2},x.isLessThan=x.lt=function(de,Ce){return compare(this,new Y(de,Ce))<0},x.isLessThanOrEqualTo=x.lte=function(de,Ce){return(Ce=compare(this,new Y(de,Ce)))===-1||Ce===0},x.isNaN=function(){return!this.s},x.isNegative=function(){return this.s<0},x.isPositive=function(){return this.s>0},x.isZero=function(){return!!this.c&&this.c[0]==0},x.minus=function(de,Ce){var ke,le,re,P,k=this,B=k.s;if(de=new Y(de,Ce),Ce=de.s,!B||!Ce)return new Y(NaN);if(B!=Ce)return de.s=-Ce,k.plus(de);var z=k.e/LOG_BASE,ee=de.e/LOG_BASE,H=k.c,q=de.c;if(!z||!ee){if(!H||!q)return H?(de.s=-Ce,de):new Y(q?k:NaN);if(!H[0]||!q[0])return q[0]?(de.s=-Ce,de):new Y(H[0]?k:M==3?-0:0)}if(z=bitFloor(z),ee=bitFloor(ee),H=H.slice(),B=z-ee){for((P=B<0)?(B=-B,re=H):(ee=z,re=q),re.reverse(),Ce=B;Ce--;re.push(0));re.reverse()}else for(le=(P=(B=H.length)<(Ce=q.length))?B:Ce,B=Ce=0;Ce<le;Ce++)if(H[Ce]!=q[Ce]){P=H[Ce]<q[Ce];break}if(P&&(re=H,H=q,q=re,de.s=-de.s),Ce=(le=q.length)-(ke=H.length),Ce>0)for(;Ce--;H[ke++]=0);for(Ce=BASE-1;le>B;){if(H[--le]<q[le]){for(ke=le;ke&&!H[--ke];H[ke]=Ce);--H[ke],H[le]+=BASE}H[le]-=q[le]}for(;H[0]==0;H.splice(0,1),--ee);return H[0]?ge(de,H,ee):(de.s=M==3?-1:1,de.c=[de.e=0],de)},x.modulo=x.mod=function(de,Ce){var ke,le,re=this;return de=new Y(de,Ce),!re.c||!de.s||de.c&&!de.c[0]?new Y(NaN):!de.c||re.c&&!re.c[0]?new Y(re):(j==9?(le=de.s,de.s=1,ke=f(re,de,0,3),de.s=le,ke.s*=le):ke=f(re,de,0,j),de=re.minus(ke.times(de)),!de.c[0]&&j==1&&(de.s=re.s),de)},x.multipliedBy=x.times=function(de,Ce){var ke,le,re,P,k,B,z,ee,H,q,J,U,Z,ve,Ye,rt=this,Ue=rt.c,Qe=(de=new Y(de,Ce)).c;if(!Ue||!Qe||!Ue[0]||!Qe[0])return!rt.s||!de.s||Ue&&!Ue[0]&&!Qe||Qe&&!Qe[0]&&!Ue?de.c=de.e=de.s=null:(de.s*=rt.s,!Ue||!Qe?de.c=de.e=null:(de.c=[0],de.e=0)),de;for(le=bitFloor(rt.e/LOG_BASE)+bitFloor(de.e/LOG_BASE),de.s*=rt.s,z=Ue.length,q=Qe.length,z<q&&(Z=Ue,Ue=Qe,Qe=Z,re=z,z=q,q=re),re=z+q,Z=[];re--;Z.push(0));for(ve=BASE,Ye=SQRT_BASE,re=q;--re>=0;){for(ke=0,J=Qe[re]%Ye,U=Qe[re]/Ye|0,k=z,P=re+k;P>re;)ee=Ue[--k]%Ye,H=Ue[k]/Ye|0,B=U*ee+H*J,ee=J*ee+B%Ye*Ye+Z[P]+ke,ke=(ee/ve|0)+(B/Ye|0)+U*H,Z[P--]=ee%ve;Z[P]=ke}return ke?++le:Z.splice(0,1),ge(de,Z,le)},x.negated=function(){var de=new Y(this);return de.s=-de.s||null,de},x.plus=function(de,Ce){var ke,le=this,re=le.s;if(de=new Y(de,Ce),Ce=de.s,!re||!Ce)return new Y(NaN);if(re!=Ce)return de.s=-Ce,le.minus(de);var P=le.e/LOG_BASE,k=de.e/LOG_BASE,B=le.c,z=de.c;if(!P||!k){if(!B||!z)return new Y(re/0);if(!B[0]||!z[0])return z[0]?de:new Y(B[0]?le:re*0)}if(P=bitFloor(P),k=bitFloor(k),B=B.slice(),re=P-k){for(re>0?(k=P,ke=z):(re=-re,ke=B),ke.reverse();re--;ke.push(0));ke.reverse()}for(re=B.length,Ce=z.length,re-Ce<0&&(ke=z,z=B,B=ke,Ce=re),re=0;Ce;)re=(B[--Ce]=B[Ce]+z[Ce]+re)/BASE|0,B[Ce]=BASE===B[Ce]?0:B[Ce]%BASE;return re&&(B=[re].concat(B),++k),ge(de,B,k)},x.precision=x.sd=function(de,Ce){var ke,le,re,P=this;if(de!=null&&de!==!!de)return intCheck(de,1,MAX),Ce==null?Ce=M:intCheck(Ce,0,8),be(new Y(P),de,Ce);if(!(ke=P.c))return null;if(re=ke.length-1,le=re*LOG_BASE+1,re=ke[re]){for(;re%10==0;re/=10,le--);for(re=ke[0];re>=10;re/=10,le++);}return de&&P.e+1>le&&(le=P.e+1),le},x.shiftedBy=function(de){return intCheck(de,-MAX_SAFE_INTEGER,MAX_SAFE_INTEGER),this.times("1e"+de)},x.squareRoot=x.sqrt=function(){var de,Ce,ke,le,re,P=this,k=P.c,B=P.s,z=P.e,ee=E+4,H=new Y("0.5");if(B!==1||!k||!k[0])return new Y(!B||B<0&&(!k||k[0])?NaN:k?P:1/0);if(B=Math.sqrt(+ze(P)),B==0||B==1/0?(Ce=coeffToString(k),(Ce.length+z)%2==0&&(Ce+="0"),B=Math.sqrt(+Ce),z=bitFloor((z+1)/2)-(z<0||z%2),B==1/0?Ce="5e"+z:(Ce=B.toExponential(),Ce=Ce.slice(0,Ce.indexOf("e")+1)+z),ke=new Y(Ce)):ke=new Y(B+""),ke.c[0]){for(z=ke.e,B=z+ee,B<3&&(B=0);;)if(re=ke,ke=H.times(re.plus(f(P,re,ee,1))),coeffToString(re.c).slice(0,B)===(Ce=coeffToString(ke.c)).slice(0,B))if(ke.e<z&&--B,Ce=Ce.slice(B-3,B+1),Ce=="9999"||!le&&Ce=="4999"){if(!le&&(be(re,re.e+E+2,0),re.times(re).eq(P))){ke=re;break}ee+=4,B+=4,le=1}else{(!+Ce||!+Ce.slice(1)&&Ce.charAt(0)=="5")&&(be(ke,ke.e+E+2,1),de=!ke.times(ke).eq(P));break}}return be(ke,ke.e+E+1,M,de)},x.toExponential=function(de,Ce){return de!=null&&(intCheck(de,0,MAX),de++),ie(this,de,Ce,1)},x.toFixed=function(de,Ce){return de!=null&&(intCheck(de,0,MAX),de=de+this.e+1),ie(this,de,Ce)},x.toFormat=function(de,Ce,ke){var le,re=this;if(ke==null)de!=null&&Ce&&typeof Ce=="object"?(ke=Ce,Ce=null):de&&typeof de=="object"?(ke=de,de=Ce=null):ke=W;else if(typeof ke!="object")throw Error(bignumberError+"Argument not an object: "+ke);if(le=re.toFixed(de,Ce),re.c){var P,k=le.split("."),B=+ke.groupSize,z=+ke.secondaryGroupSize,ee=ke.groupSeparator||"",H=k[0],q=k[1],J=re.s<0,U=J?H.slice(1):H,Z=U.length;if(z&&(P=B,B=z,z=P,Z-=P),B>0&&Z>0){for(P=Z%B||B,H=U.substr(0,P);P<Z;P+=B)H+=ee+U.substr(P,B);z>0&&(H+=ee+U.slice(P)),J&&(H="-"+H)}le=q?H+(ke.decimalSeparator||"")+((z=+ke.fractionGroupSize)?q.replace(new RegExp("\\d{"+z+"}\\B","g"),"$&"+(ke.fractionGroupSeparator||"")):q):H}return(ke.prefix||"")+le+(ke.suffix||"")},x.toFraction=function(de){var Ce,ke,le,re,P,k,B,z,ee,H,q,J,U=this,Z=U.c;if(de!=null&&(B=new Y(de),!B.isInteger()&&(B.c||B.s!==1)||B.lt(I)))throw Error(bignumberError+"Argument "+(B.isInteger()?"out of range: ":"not an integer: ")+ze(B));if(!Z)return new Y(U);for(Ce=new Y(I),ee=ke=new Y(I),le=z=new Y(I),J=coeffToString(Z),P=Ce.e=J.length-U.e-1,Ce.c[0]=POWS_TEN[(k=P%LOG_BASE)<0?LOG_BASE+k:k],de=!de||B.comparedTo(Ce)>0?P>0?Ce:ee:B,k=D,D=1/0,B=new Y(J),z.c[0]=0;H=f(B,Ce,0,1),re=ke.plus(H.times(le)),re.comparedTo(de)!=1;)ke=le,le=re,ee=z.plus(H.times(re=ee)),z=re,Ce=B.minus(H.times(re=Ce)),B=re;return re=f(de.minus(ke),le,0,1),z=z.plus(re.times(ee)),ke=ke.plus(re.times(le)),z.s=ee.s=U.s,P=P*2,q=f(ee,le,P,M).minus(U).abs().comparedTo(f(z,ke,P,M).minus(U).abs())<1?[ee,le]:[z,ke],D=k,q},x.toNumber=function(){return+ze(this)},x.toPrecision=function(de,Ce){return de!=null&&intCheck(de,1,MAX),ie(this,de,Ce,2)},x.toString=function(de){var Ce,ke=this,le=ke.s,re=ke.e;return re===null?le?(Ce="Infinity",le<0&&(Ce="-"+Ce)):Ce="NaN":(de==null?Ce=re<=S||re>=A?toExponential(coeffToString(ke.c),re):toFixedPoint(coeffToString(ke.c),re,"0"):de===10&&X?(ke=be(new Y(ke),E+re+1,M),Ce=toFixedPoint(coeffToString(ke.c),ke.e,"0")):(intCheck(de,2,Q.length,"Base"),Ce=d(toFixedPoint(coeffToString(ke.c),re,"0"),10,de,le,!0)),le<0&&ke.c[0]&&(Ce="-"+Ce)),Ce},x.valueOf=x.toJSON=function(){return ze(this)},x._isBigNumber=!0,x[Symbol.toStringTag]="BigNumber",x[Symbol.for("nodejs.util.inspect.custom")]=x.valueOf,u!=null&&Y.set(u),Y}function bitFloor(u){var f=u|0;return u>0||u===f?f:f-1}function coeffToString(u){for(var f,d,_=1,x=u.length,I=u[0]+"";_<x;){for(f=u[_++]+"",d=LOG_BASE-f.length;d--;f="0"+f);I+=f}for(x=I.length;I.charCodeAt(--x)===48;);return I.slice(0,x+1||1)}function compare(u,f){var d,_,x=u.c,I=f.c,E=u.s,M=f.s,S=u.e,A=f.e;if(!E||!M)return null;if(d=x&&!x[0],_=I&&!I[0],d||_)return d?_?0:-M:E;if(E!=M)return E;if(d=E<0,_=S==A,!x||!I)return _?0:!x^d?1:-1;if(!_)return S>A^d?1:-1;for(M=(S=x.length)<(A=I.length)?S:A,E=0;E<M;E++)if(x[E]!=I[E])return x[E]>I[E]^d?1:-1;return S==A?0:S>A^d?1:-1}function intCheck(u,f,d,_){if(u<f||u>d||u!==mathfloor(u))throw Error(bignumberError+(_||"Argument")+(typeof u=="number"?u<f||u>d?" out of range: ":" not an integer: ":" not a primitive number: ")+String(u))}function isOdd(u){var f=u.c.length-1;return bitFloor(u.e/LOG_BASE)==f&&u.c[f]%2!=0}function toExponential(u,f){return(u.length>1?u.charAt(0)+"."+u.slice(1):u)+(f<0?"e":"e+")+f}function toFixedPoint(u,f,d){var _,x;if(f<0){for(x=d+".";++f;x+=d);u=x+u}else if(_=u.length,++f>_){for(x=d,f-=_;--f;x+=d);u+=x}else f<_&&(u=u.slice(0,f)+"."+u.slice(f));return u}var BigNumber=clone$1();const _withScopeId$8=u=>(pushScopeId("data-v-2908118e"),u=u(),popScopeId(),u),_hoisted_1$E={key:0},_hoisted_2$w=_withScopeId$8(()=>createBaseVNode("svg",{width:"17",height:"34",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[createBaseVNode("path",{d:"M1 30H.5v.5H1V30Zm15.35.35a.5.5 0 0 0 0-.7l-3.18-3.19a.5.5 0 1 0-.7.71L15.28 30l-2.83 2.83a.5.5 0 1 0 .71.7l3.18-3.18ZM.5 0v30h1V0h-1ZM1 30.5h15v-1H1v1Z",fill:"#CFD4DD"})],-1)),_hoisted_3$q=[_hoisted_2$w],_hoisted_4$n={key:1,class:"card"},_hoisted_5$l={class:"upper"},_hoisted_6$i={class:"nameSpace"},_hoisted_7$c={key:0,style:{"margin-bottom":"4px"}},_hoisted_8$a={key:1},_hoisted_9$7={key:3},_hoisted_10$7={class:"bottom"},_hoisted_11$7={class:"amount"},_hoisted_12$7={key:2,class:"symbol"},_hoisted_13$6={key:2,class:"list"},_hoisted_14$6={class:"listNameSpaceWrapper"},_hoisted_15$6={class:"listNameSpace"},_hoisted_16$6={class:"evaluationBalanceWrapper"},_hoisted_17$6={class:"evaluation"},_hoisted_18$6={key:3,class:"dailyRange"},_hoisted_19$5={key:3,class:"list-table"},_hoisted_20$5={class:"listNameSpaceWrapper"},_hoisted_21$4={class:"listNameSpace"},_hoisted_22$3={key:1},_hoisted_23$3={key:3},_hoisted_24$3={key:3,class:"dailyRange"},_hoisted_25$2={key:1,class:"balance"},_hoisted_26$2={class:"icon"},_hoisted_27$2={class:"listNameSpace"},_hoisted_28$2={class:"tickerWrapper"},_hoisted_29$2={key:0,class:"supportNft"},_hoisted_30$2=_withScopeId$8(()=>createBaseVNode("span",null," NFT ",-1)),_hoisted_31$2=_withScopeId$8(()=>createBaseVNode("img",{src:_imports_0},null,-1)),_hoisted_32$2=[_hoisted_30$2,_hoisted_31$2],_hoisted_33$2={class:"balanceWrapper"},_hoisted_34$1={class:"balance"},_hoisted_35$1={class:"symbolWrapper"},_hoisted_36$1={class:"evaluation"},_sfc_main$S=defineComponent({__name:"AccountListItem",props:{ticker:{},symbol:{},name:{},amount:{},value:{},supportNft:{type:Boolean,default:!0},currentValue:{default:void 0},unit:{},dailyRange:{default:void 0},type:{},tickerSrc:{},networkSrc:{},evalBalanceWidth:{},isChild:{type:Boolean,default:void 0},isMobile:{type:Boolean,default:void 0},loading:{type:Boolean,default:!1},isActive:{type:Boolean,default:!1}},emits:["error:load-token-icon","error:load-network-icon"],setup(u,{emit:f}){useCssVars(ke=>({"32c2c158":ke.evalBalanceWidth,"9b021010":I.value}));const d=u,_=f,x=computed(()=>typeof d.value=="string"?`${d.unit} ${d.value}`:`${d.unit} ${d.value.value}`),I=computed(()=>new BigNumber(d.dailyRange||"0").isPositive()?colors.currentThemeRef.value.main:colors.currentThemeRef.value.notice),E=ref(),M=ref(),{resizedFontSize:S}=useResizeText(M,E,28),A=computed(()=>({fontSize:S.value+"px"})),T=ref(),D=ref(),{resizedFontSize:O}=useResizeText(D,T,16),j=computed(()=>({fontSize:O.value+"px"})),$=ref(),W=ref(),Q=ref(),X=ref(),Y=ref(),ie=ref(),oe=ref(),ge=ref(),be=ref(),{overFlowStyle:ze}=useOverflowSlide(ge,be),de=()=>{_("error:load-network-icon")},Ce=()=>{_("error:load-token-icon")};return(ke,le)=>(openBlock(),createElementBlock("div",{class:normalizeClass(["accountListWrapper",{mobile:ke.isMobile}])},[ke.isChild?(openBlock(),createElementBlock("div",_hoisted_1$E,_hoisted_3$q)):createCommentVNode("",!0),ke.type==="card"?(openBlock(),createElementBlock("div",_hoisted_4$n,[createBaseVNode("div",_hoisted_5$l,[ke.loading||d.amount==="NaN"?(openBlock(),createBlock(unref(Skeleton),{key:0,width:"48px",height:"48px","border-radius":"50%"})):(openBlock(),createBlock(unref(NetworkIcon),{key:1,"token-src":ke.tickerSrc,"network-src":ke.networkSrc,size:"big","onError:networkIcon":de,"onError:tokenIcon":Ce},null,8,["token-src","network-src"])),createBaseVNode("div",_hoisted_6$i,[ke.loading||d.amount==="NaN"?(openBlock(),createElementBlock("div",_hoisted_7$c,[createVNode(unref(Skeleton),{width:"132px",height:"24px","border-radius":"4px"})])):(openBlock(),createElementBlock("span",_hoisted_8$a,toDisplayString$2(ke.ticker),1)),ke.loading||d.amount==="NaN"?(openBlock(),createBlock(unref(Skeleton),{key:2,width:"90px",height:"22px","border-radius":"4px"})):(openBlock(),createElementBlock("span",_hoisted_9$7,toDisplayString$2(ke.name),1))])]),createBaseVNode("div",_hoisted_10$7,[createBaseVNode("div",_hoisted_11$7,[ke.loading||d.amount==="NaN"?(openBlock(),createBlock(unref(Skeleton),{key:0,width:"295px",height:"30px","border-radius":"4px"})):createCommentVNode("",!0),ke.loading||d.amount==="NaN"?createCommentVNode("",!0):(openBlock(),createElementBlock("div",{key:1,ref_key:"cardBalance",ref:E,class:"balance"},[createBaseVNode("span",{ref_key:"cardBalanceSpan",ref:M,style:normalizeStyle(A.value)},toDisplayString$2(ke.amount),5)],512)),ke.loading||d.amount==="NaN"?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_12$7,[createBaseVNode("span",null,toDisplayString$2(ke.symbol),1)]))]),createBaseVNode("div",{ref_key:"cardValue",ref:T,class:"value"},[ke.loading||d.amount==="NaN"?(openBlock(),createBlock(unref(Skeleton),{key:0,width:"90px",height:"24px","border-radius":"4px"})):(openBlock(),createElementBlock("span",{key:1,ref_key:"cardValueSpan",ref:D,style:normalizeStyle(j.value)},toDisplayString$2(x.value),5))],512)])])):ke.type==="list"?(openBlock(),createElementBlock("div",_hoisted_13$6,[createBaseVNode("div",_hoisted_14$6,[createBaseVNode("div",null,[ke.loading||d.amount==="NaN"?(openBlock(),createBlock(unref(Skeleton),{key:0,width:"48px",height:"48px","border-radius":"50%"})):(openBlock(),createBlock(unref(NetworkIcon),{key:1,"token-src":ke.tickerSrc,"network-src":ke.networkSrc,size:"big","onError:networkIcon":de,"onError:tokenIcon":Ce},null,8,["token-src","network-src"]))]),createBaseVNode("div",_hoisted_15$6,[createBaseVNode("span",null,[ke.loading||d.amount==="NaN"?(openBlock(),createBlock(unref(Skeleton),{key:0,width:"132px",height:"30px","border-radius":"4px",style:{"margin-bottom":"4px"}})):(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString$2(ke.ticker),1)],64))]),createBaseVNode("span",null,[ke.loading||d.amount==="NaN"?(openBlock(),createBlock(unref(Skeleton),{key:0,width:"90px",height:"22px","border-radius":"4px"})):(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString$2(ke.name),1)],64))])])]),createBaseVNode("div",_hoisted_16$6,[createBaseVNode("div",_hoisted_17$6,[ke.loading||d.amount==="NaN"?(openBlock(),createBlock(unref(Skeleton),{key:0,width:"207px",height:"30px","border-radius":"4px",style:{"margin-bottom":"4px"}})):(openBlock(),createElementBlock("div",{key:1,ref_key:"listCurrentValue",ref:ie,class:"currentValue"},[createBaseVNode("span",{ref_key:"listCurrentValueSpan",ref:oe},toDisplayString$2(ke.unit)+" "+toDisplayString$2(ke.currentValue),513)],512)),ke.loading||d.amount==="NaN"?(openBlock(),createBlock(unref(Skeleton),{key:2,width:"150px",height:"22px","border-radius":"4px"})):(openBlock(),createElementBlock("span",_hoisted_18$6,toDisplayString$2(ke.dailyRange)+" %",1))]),createBaseVNode("div",null,[createBaseVNode("div",{ref_key:"listBalance",ref:W,class:"balance"},[ke.loading||d.amount==="NaN"?(openBlock(),createBlock(unref(Skeleton),{key:0,width:"121px",height:"30px","border-radius":"4px",style:{"margin-bottom":"4px","margin-left":"auto"}})):(openBlock(),createElementBlock(Fragment,{key:1},[createBaseVNode("span",{ref_key:"listBalanceSpan",ref:Q},toDisplayString$2(ke.amount),513),createBaseVNode("span",{ref_key:"listBalanceUnit",ref:$},toDisplayString$2(ke.symbol),513)],64))],512),ke.loading||d.amount==="NaN"?(openBlock(),createBlock(unref(Skeleton),{key:0,width:"67px",height:"22px","border-radius":"4px",style:{"margin-left":"auto"}})):(openBlock(),createElementBlock("div",{key:1,ref_key:"listValue",ref:X,style:{display:"flex"}},[createBaseVNode("span",{ref_key:"listValueSpan",ref:Y,class:"value"},toDisplayString$2(x.value),513)],512))])])])):ke.type==="list-table"?(openBlock(),createElementBlock("div",_hoisted_19$5,[createBaseVNode("div",_hoisted_20$5,[createBaseVNode("div",null,[ke.loading||d.amount==="NaN"?(openBlock(),createBlock(unref(Skeleton),{key:0,width:"48px",height:"48px","border-radius":"50%"})):(openBlock(),createBlock(unref(NetworkIcon),{key:1,"token-src":ke.tickerSrc,"network-src":ke.networkSrc,size:"big","onError:networkIcon":de,"onError:tokenIcon":Ce},null,8,["token-src","network-src"]))]),createBaseVNode("div",_hoisted_21$4,[ke.loading||d.amount==="NaN"?(openBlock(),createBlock(unref(Skeleton),{key:0,width:"132px",height:"30px","border-radius":"4px",style:{"margin-bottom":"4px"}})):(openBlock(),createElementBlock("span",_hoisted_22$3,toDisplayString$2(ke.ticker),1)),ke.loading||d.amount==="NaN"?(openBlock(),createBlock(unref(Skeleton),{key:2,width:"90px",height:"22px","border-radius":"4px"})):(openBlock(),createElementBlock("span",_hoisted_23$3,toDisplayString$2(ke.name),1))])]),ke.loading||d.amount==="NaN"?(openBlock(),createBlock(unref(Skeleton),{key:0,width:"207px",height:"30px","border-radius":"4px",style:{"margin-bottom":"4px"}})):(openBlock(),createElementBlock("div",{key:1,ref_key:"listCurrentValue",ref:ie,class:"currentValue"},[createBaseVNode("span",{ref_key:"listCurrentValueSpan",ref:oe},toDisplayString$2(ke.unit)+" "+toDisplayString$2(ke.currentValue),513)],512)),ke.loading||d.amount==="NaN"?(openBlock(),createBlock(unref(Skeleton),{key:2,width:"150px",height:"22px","border-radius":"4px"})):(openBlock(),createElementBlock("span",_hoisted_24$3,toDisplayString$2(ke.dailyRange)+" %",1)),createBaseVNode("div",{ref_key:"listBalance",ref:W,class:"list-balance"},[ke.loading||d.amount==="NaN"?(openBlock(),createBlock(unref(Skeleton),{key:0,width:"121px",height:"30px","border-radius":"4px",style:{"margin-bottom":"4px","margin-left":"auto"}})):(openBlock(),createElementBlock("div",_hoisted_25$2,[createBaseVNode("span",{ref_key:"listBalanceSpan",ref:Q},toDisplayString$2(ke.amount),513),createBaseVNode("span",{ref_key:"listBalanceUnit",ref:$},toDisplayString$2(ke.symbol),513)]))],512),ke.loading||d.amount==="NaN"?(openBlock(),createBlock(unref(Skeleton),{key:4,width:"67px",height:"22px","border-radius":"4px",style:{"margin-left":"auto"}})):(openBlock(),createElementBlock("div",{key:5,ref_key:"listValue",ref:X,class:"evaluated-amount"},[createBaseVNode("span",{ref_key:"listValueSpan",ref:Y,class:"value"},toDisplayString$2(x.value),513)],512))])):ke.type==="list-shortform"?(openBlock(),createElementBlock("div",{key:4,class:normalizeClass([ke.isActive?"active":"","listShort"])},[createBaseVNode("div",_hoisted_26$2,[ke.loading||d.amount==="NaN"?(openBlock(),createBlock(unref(Skeleton),{key:0,width:"30px",height:"30px","border-radius":"50%"})):(openBlock(),createBlock(unref(NetworkIcon),{key:1,"token-src":ke.tickerSrc,"network-src":ke.networkSrc,size:ke.isMobile?"medium":"small","onError:networkIcon":de,"onError:tokenIcon":Ce},null,8,["token-src","network-src","size"]))]),createBaseVNode("div",_hoisted_27$2,[createBaseVNode("div",_hoisted_28$2,[ke.loading||d.amount==="NaN"?(openBlock(),createBlock(unref(Skeleton),{key:0,width:"121px",height:"26px","border-radius":"4px",style:normalizeStyle(ke.isMobile?{"margin-bottom":"4px"}:"")},null,8,["style"])):(openBlock(),createElementBlock(Fragment,{key:1},[createBaseVNode("span",null,toDisplayString$2(ke.ticker),1),ke.supportNft===!1?(openBlock(),createElementBlock("div",_hoisted_29$2,_hoisted_32$2)):createCommentVNode("",!0)],64))]),createBaseVNode("span",null,[ke.loading||d.amount==="NaN"?(openBlock(),createBlock(unref(Skeleton),{key:0,width:"67px",height:"24px","border-radius":"4px"})):(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString$2(ke.name),1)],64))])]),createBaseVNode("div",_hoisted_33$2,[createBaseVNode("div",_hoisted_34$1,[ke.loading||d.amount==="NaN"?(openBlock(),createBlock(unref(Skeleton),{key:0,width:"86px",height:"26px","border-radius":"4px",style:normalizeStyle(ke.isMobile?{"margin-bottom":"4px"}:"")},null,8,["style"])):(openBlock(),createElementBlock(Fragment,{key:1},[createBaseVNode("div",{ref_key:"shortFormAmountWrapper",ref:ge,class:"amountWrapper"},[createBaseVNode("span",{ref_key:"shortFormAmountSpan",ref:be,style:normalizeStyle(unref(ze))},toDisplayString$2(ke.amount),5)],512),createBaseVNode("div",_hoisted_35$1,[createBaseVNode("span",null,toDisplayString$2(ke.symbol),1)])],64))]),createBaseVNode("div",_hoisted_36$1,[createBaseVNode("span",null,[ke.loading||d.amount==="NaN"?(openBlock(),createBlock(unref(Skeleton),{key:0,width:"53px",height:"24px","border-radius":"4px"})):(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString$2(x.value),1)],64))])])])],2)):createCommentVNode("",!0)],2))}}),AccountListItem=_export_sfc$1(_sfc_main$S,[["__scopeId","data-v-2908118e"]]),_hoisted_1$D={class:"name"},_hoisted_2$v={class:"networkName"},_sfc_main$R=defineComponent({__name:"NetworkListItem",props:{ticker:{type:String,default:""},symbol:{type:String,default:""},networkSrc:{type:String,default:""},address:{type:String,default:""},selected:{type:Boolean,default:!1},width:{type:String,default:"400px"}},emits:["error:load-token-icon","error:load-network-icon"],setup(u,{emit:f}){const d=u,_=f,x=computed(()=>{let M=d.width;return typeof M=="number"&&(M=M+"px"),{width:M,border:`1px solid ${d.selected?colors.currentThemeRef.value.main:colors.currentThemeRef.value.line_02}`,backgroundColor:d.selected?colors.currentThemeRef.value.bg_sub:colors.currentThemeRef.value.grey_fff}}),I=()=>{_("error:load-network-icon")},E=()=>{_("error:load-token-icon")};return(M,S)=>(openBlock(),createElementBlock("div",{class:"networkListWrapper",style:normalizeStyle(x.value)},[createVNode(unref(NetworkIcon),{"token-src":u.networkSrc,"onError:networkIcon":I,"onError:tokenIcon":E},null,8,["token-src"]),createBaseVNode("div",_hoisted_1$D,[createBaseVNode("div",_hoisted_2$v,[createBaseVNode("span",null,toDisplayString$2(u.ticker),1),createBaseVNode("span",null,toDisplayString$2(u.symbol),1)]),createBaseVNode("span",null,toDisplayString$2(u.address),1)]),u.selected?(openBlock(),createBlock(unref(Element$1),{key:0,name:"Check",size:"medium",color:unref(colors).currentThemeRef.value.main},null,8,["color"])):createCommentVNode("",!0)],4))}}),NetworkListItem=_export_sfc$1(_sfc_main$R,[["__scopeId","data-v-14595775"]]),_hoisted_1$C={class:"listItemWrapper"},_hoisted_2$u={class:"name"},_sfc_main$Q=defineComponent({__name:"TokenListItem",props:{ticker:{type:String,default:""},symbol:{type:String,default:""},tickerSrc:{type:String,default:void 0},networkSrc:{type:String,default:void 0},chip:{type:String,default:""},chipTestnet:{type:String,default:""}},emits:["error:load-token-icon","error:load-network-icon"],setup(u,{emit:f}){const d=f,_=()=>{d("error:load-network-icon")},x=()=>{d("error:load-token-icon")};return(I,E)=>(openBlock(),createElementBlock("div",_hoisted_1$C,[createVNode(unref(NetworkIcon),{"token-src":u.tickerSrc,"network-src":u.networkSrc,"onError:networkIcon":_,"onError:tokenIcon":x},null,8,["token-src","network-src"]),createBaseVNode("div",_hoisted_2$u,[createBaseVNode("span",null,toDisplayString$2(u.ticker),1),createBaseVNode("span",null,toDisplayString$2(u.symbol),1)]),u.chip?(openBlock(),createBlock(unref(LabelChip),{key:0,name:u.chip,property:"ercType"},null,8,["name"])):createCommentVNode("",!0),u.chipTestnet?(openBlock(),createBlock(unref(LabelChip),{key:1,name:u.chipTestnet,property:"testnet"},null,8,["name"])):createCommentVNode("",!0)]))}}),TokenListItem=_export_sfc$1(_sfc_main$Q,[["__scopeId","data-v-95d35bb8"]]),OnboardingImage="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDU0IiBoZWlnaHQ9IjM3OCIgdmlld0JveD0iMCAwIDQ1NCAzNzgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMF81NjU0XzI5OTc3KSI+CjxnIG9wYWNpdHk9IjAuNCIgZmlsdGVyPSJ1cmwoI2ZpbHRlcjBfZl81NjU0XzI5OTc3KSI+CjxyZWN0IHg9Ijg0IiB5PSIzMjgiIHdpZHRoPSIyMzgiIGhlaWdodD0iMjIiIHJ4PSIxMSIgZmlsbD0iIzhBNkJGNSIvPgo8L2c+CjxtYXNrIGlkPSJtYXNrMF81NjU0XzI5OTc3IiBzdHlsZT0ibWFzay10eXBlOmFscGhhIiBtYXNrVW5pdHM9InVzZXJTcGFjZU9uVXNlIiB4PSI1OSIgeT0iMTgyIiB3aWR0aD0iMjQ5IiBoZWlnaHQ9IjE1NyI+CjxwYXRoIGQ9Ik01OS44MzY5IDIwNi4xMjVDNTYuNDA3NiAxOTQuMDI0IDY1LjQ5NzYgMTgyIDc4LjA3NDcgMTgySDI1NS40QzI2My44NzkgMTgyIDI3MS4zMjYgMTg3LjYzIDI3My42MzggMTk1Ljc4N0wzMDcuMTI0IDMxMy45NDdDMzEwLjU1NCAzMjYuMDQ3IDMwMS40NjQgMzM4LjA3MSAyODguODg2IDMzOC4wNzFIMTE2LjMzOEMxMDUuMDMzIDMzOC4wNzEgOTUuMTAzMyAzMzAuNTY0IDkyLjAyMDkgMzE5LjY4OEw1OS44MzY5IDIwNi4xMjVaIiBmaWxsPSIjNEYyRkJEIi8+CjwvbWFzaz4KPGcgbWFzaz0idXJsKCNtYXNrMF81NjU0XzI5OTc3KSI+CjxwYXRoIGQ9Ik02MS40MzIyIDIxMS43NTRDNTcuMjAyNyAxOTYuODMgNjguNDEzNyAxODIgODMuOTI1NSAxODJIMjU1LjRDMjYzLjg3OSAxODIgMjcxLjMyNiAxODcuNjMgMjczLjYzOCAxOTUuNzg3TDMwNy4xMjQgMzEzLjk0N0MzMTAuNTU0IDMyNi4wNDcgMzAxLjQ2NCAzMzguMDcxIDI4OC44ODYgMzM4LjA3MUgxMTYuMzM4QzEwNS4wMzMgMzM4LjA3MSA5NS4xMDMzIDMzMC41NjQgOTIuMDIwOSAzMTkuNjg4TDYxLjQzMjIgMjExLjc1NFoiIGZpbGw9IiM2ODQ0RTAiLz4KPHBhdGggZD0iTTY1LjA2NzggMjA0LjUxNkM2MS44NjcxIDE5My4yMjIgNzAuMzUxMSAxODIgODIuMDg5NyAxODJIMjYxLjA4N0MyNjkuNTY1IDE4MiAyNzcuMDEzIDE4Ny42MyAyNzkuMzI0IDE5NS43ODdMMzEyLjgxMSAzMTMuOTQ3QzMxNi4yNCAzMjYuMDQ3IDMwNy4xNSAzMzguMDcxIDI5NC41NzMgMzM4LjA3MUgxMjIuMDI1QzExMC43MiAzMzguMDcxIDEwMC43OSAzMzAuNTY0IDk3LjcwNzUgMzE5LjY4OEw2NS4wNjc4IDIwNC41MTZaIiBmaWxsPSJ1cmwoI3BhaW50MF9saW5lYXJfNTY1NF8yOTk3NykiLz4KPC9nPgo8ZyBmaWx0ZXI9InVybCgjZmlsdGVyMV9iaV81NjU0XzI5OTc3KSI+CjxwYXRoIGQ9Ik0zMjcuOTYyIDEyNi4wNTFDMzA3LjU0OCAxNDkuMjc1IDMwNC4zNjEgMTc5Ljg0NiAzMjAuODQyIDE5NC4zMzNDMzIxLjA2OSAxOTQuNTMyIDMyMS4yOTkgMTk0LjcyNyAzMjEuNTMgMTk0LjkxOEwzMjEuNTIxIDE5NC45MjlMMzMxLjY5NCAyMDMuODcyTDMzMS43MDQgMjAzLjg2MUMzNDguMzE5IDIxNy41NjQgMzc3LjY4NyAyMTAuMzYxIDM5Ny44MjEgMTg3LjQ1NkM0MTcuOTU0IDE2NC41NTEgNDIxLjMzMSAxMzQuNTAxIDQwNS42MSAxMTkuNzgxTDQwNS42MTkgMTE5Ljc3TDM5NS40NDYgMTEwLjgyOEwzOTUuNDM2IDExMC44MzhDMzk1LjIxNiAxMTAuNjMzIDM5NC45OTQgMTEwLjQzMSAzOTQuNzY3IDExMC4yMzFDMzc4LjI4NiA5NS43NDQyIDM0OC4zNzYgMTAyLjgyNiAzMjcuOTYyIDEyNi4wNTFaIiBmaWxsPSIjNDkxNEZGIiBmaWxsLW9wYWNpdHk9IjAuMyIvPgo8L2c+CjxnIGZpbHRlcj0idXJsKCNmaWx0ZXIyX2JpXzU2NTRfMjk5NzcpIj4KPHBhdGggZD0iTTMyNy45NjIgMTI2LjA1MUMzMDcuNTQ5IDE0OS4yNzUgMzA0LjM2MSAxNzkuODQ2IDMyMC44NDIgMTk0LjMzM0MzMzcuMzI0IDIwOC44MiAzNjcuMjM0IDIwMS43MzggMzg3LjY0NyAxNzguNTE0QzQwOC4wNjEgMTU1LjI5IDQxMS4yNDkgMTI0LjcxOSAzOTQuNzY3IDExMC4yMzFDMzc4LjI4NiA5NS43NDQyIDM0OC4zNzYgMTAyLjgyNyAzMjcuOTYyIDEyNi4wNTFaIiBmaWxsPSIjNDkxNEZGIiBmaWxsLW9wYWNpdHk9IjAuMyIvPgo8L2c+CjxnIGZpbHRlcj0idXJsKCNmaWx0ZXIzX2JpXzU2NTRfMjk5NzcpIj4KPHBhdGggZD0iTTMzOC44MTQgMTM1LjU4OUMzMjQuMzI3IDE1Mi4wNyAzMjEuMDg1IDE3Mi45MDUgMzMxLjU3MyAxODIuMTI0QzM0Mi4wNjIgMTkxLjM0MyAzNjIuMzA4IDE4NS40NTUgMzc2Ljc5NSAxNjguOTc0QzM5MS4yODMgMTUyLjQ5MiAzOTQuNTI0IDEzMS42NTggMzg0LjAzNiAxMjIuNDM5QzM3My41NDggMTEzLjIyIDM1My4zMDEgMTE5LjEwNyAzMzguODE0IDEzNS41ODlaIiBmaWxsPSJ1cmwoI3BhaW50MV9saW5lYXJfNTY1NF8yOTk3NykiIGZpbGwtb3BhY2l0eT0iMC4yIi8+CjwvZz4KPGcgc3R5bGU9Im1peC1ibGVuZC1tb2RlOnBsdXMtbGlnaHRlciIgZmlsdGVyPSJ1cmwoI2ZpbHRlcjRfZl81NjU0XzI5OTc3KSI+CjxwYXRoIGQ9Ik0zNTUuMzI3IDE5OS45NzNDMzY4LjM3OCAxOTQuNjU0IDM4Mi4wMiAxODUuMTAxIDM5NC41OCAxNjkuMTgyQzM4My4wNzYgMTg3LjI0NiAzNzEuMjc5IDE5Ni4yNDIgMzU1LjMyNyAxOTkuOTczWiIgZmlsbD0id2hpdGUiIGZpbGwtb3BhY2l0eT0iMC4yOCIvPgo8L2c+CjxnIGZpbHRlcj0idXJsKCNmaWx0ZXI1X2JpXzU2NTRfMjk5NzcpIj4KPHBhdGggZD0iTTIxOC43NzYgNjMuOTg4M0MyMjguNDc5IDc1LjAyNzYgMjI5Ljk5NSA4OS41NTkgMjIyLjE2IDk2LjQ0NTNDMjIyLjA1MiA5Ni41NCAyMjEuOTQzIDk2LjYzMjUgMjIxLjgzMyA5Ni43MjM2TDIyMS44MzggOTYuNzI4N0wyMTcuMDAyIDEwMC45NzlMMjE2Ljk5OCAxMDAuOTc0QzIwOS4xIDEwNy40ODggMTk1LjE0IDEwNC4wNjQgMTg1LjU3IDkzLjE3NjVDMTc1Ljk5OSA4Mi4yODg4IDE3NC4zOTQgNjguMDA1MSAxODEuODY3IDYxLjAwNzlMMTgxLjg2MyA2MS4wMDI4TDE4Ni42OTkgNTYuNzUyMUwxODYuNzAzIDU2Ljc1NzJDMTg2LjgwOCA1Ni42NTk4IDE4Ni45MTMgNTYuNTYzNSAxODcuMDIxIDU2LjQ2ODhDMTk0Ljg1NSA0OS41ODI0IDIwOS4wNzIgNTIuOTQ4OSAyMTguNzc2IDYzLjk4ODNaIiBmaWxsPSIjNDkxNEZGIiBmaWxsLW9wYWNpdHk9IjAuMyIvPgo8L2c+CjxnIGZpbHRlcj0idXJsKCNmaWx0ZXI2X2JpXzU2NTRfMjk5NzcpIj4KPHBhdGggZD0iTTIxOC43NzYgNjMuOTg4M0MyMjguNDc5IDc1LjAyNzUgMjI5Ljk5NSA4OS41NTkgMjIyLjE2IDk2LjQ0NTNDMjE0LjMyNiAxMDMuMzMyIDIwMC4xMDkgOTkuOTY1IDE5MC40MDUgODguOTI1OEMxODAuNzAyIDc3Ljg4NjUgMTc5LjE4NyA2My4zNTUxIDE4Ny4wMjEgNTYuNDY4OEMxOTQuODU1IDQ5LjU4MjUgMjA5LjA3MiA1Mi45NDkgMjE4Ljc3NiA2My45ODgzWiIgZmlsbD0iIzQ5MTRGRiIgZmlsbC1vcGFjaXR5PSIwLjMiLz4KPC9nPgo8ZyBmaWx0ZXI9InVybCgjZmlsdGVyN19iaV81NjU0XzI5OTc3KSI+CjxwYXRoIGQ9Ik0yMTMuNjE3IDY4LjUyMTJDMjIwLjUwMyA3Ni4zNTU0IDIyMi4wNDQgODYuMjU4OCAyMTcuMDU5IDkwLjY0MUMyMTIuMDczIDk1LjAyMzIgMjAyLjQ0OSA5Mi4yMjQ4IDE5NS41NjMgODQuMzkwNUMxODguNjc3IDc2LjU1NjIgMTg3LjEzNiA2Ni42NTI4IDE5Mi4xMjEgNjIuMjcwNkMxOTcuMTA3IDU3Ljg4ODQgMjA2LjczMSA2MC42ODY5IDIxMy42MTcgNjguNTIxMloiIGZpbGw9InVybCgjcGFpbnQyX2xpbmVhcl81NjU0XzI5OTc3KSIgZmlsbC1vcGFjaXR5PSIwLjIiLz4KPC9nPgo8ZyBzdHlsZT0ibWl4LWJsZW5kLW1vZGU6cGx1cy1saWdodGVyIiBmaWx0ZXI9InVybCgjZmlsdGVyOF9mXzU2NTRfMjk5NzcpIj4KPHBhdGggZD0iTTIwNS43NjggOTkuMTI1N0MxOTkuNTY1IDk2LjU5NzIgMTkzLjA4IDkyLjA1NjUgMTg3LjEwOSA4NC40ODk3QzE5Mi41NzggOTMuMDc2MSAxOTguMTg1IDk3LjM1MiAyMDUuNzY4IDk5LjEyNTdaIiBmaWxsPSJ3aGl0ZSIgZmlsbC1vcGFjaXR5PSIwLjI4Ii8+CjwvZz4KPG1hc2sgaWQ9Im1hc2sxXzU2NTRfMjk5NzciIHN0eWxlPSJtYXNrLXR5cGU6YWxwaGEiIG1hc2tVbml0cz0idXNlclNwYWNlT25Vc2UiIHg9IjMzIiB5PSIyMDgiIHdpZHRoPSI5NCIgaGVpZ2h0PSI4NyI+CjxwYXRoIGQ9Ik0xMDAuOTczIDIxOC4yMzZDMTIzLjA5MSAyMzIuMTc0IDEzMy4wMDMgMjU2LjE5NyAxMjMuMTEyIDI3MS44OTNDMTIyLjk3NiAyNzIuMTA5IDEyMi44MzYgMjcyLjMyMiAxMjIuNjk1IDI3Mi41MzNMMTIyLjcwNSAyNzIuNTM5TDExNi41OTkgMjgyLjIyOUwxMTYuNTg5IDI4Mi4yMjJDMTA2LjQwMiAyOTcuMzE1IDgwLjg2MjggMjk4LjUxNCA1OS4wNDg0IDI4NC43NjhDMzcuMjM0IDI3MS4wMjIgMjcuMjkzOCAyNDcuNDY3IDM2LjUxMjUgMjMxLjc2M0wzNi41MDI0IDIzMS43NTdMNDIuNjA3OSAyMjIuMDY3TDQyLjYxOCAyMjIuMDc0QzQyLjc0NyAyMjEuODU1IDQyLjg3ODkgMjIxLjYzNyA0My4wMTQ5IDIyMS40MjFDNTIuOTA2IDIwNS43MjUgNzguODU0MyAyMDQuMjk4IDEwMC45NzMgMjE4LjIzNloiIGZpbGw9IiNEOUQ5RDkiLz4KPC9tYXNrPgo8ZyBtYXNrPSJ1cmwoI21hc2sxXzU2NTRfMjk5NzcpIj4KPGcgZmlsdGVyPSJ1cmwoI2ZpbHRlcjlfYmlfNTY1NF8yOTk3NykiPgo8cGF0aCBkPSJNMTAwLjk3MyAyMTguMjM2QzEyMy4wOTEgMjMyLjE3NCAxMzMuMDAzIDI1Ni4xOTcgMTIzLjExMiAyNzEuODkzQzEyMi45NzYgMjcyLjEwOSAxMjIuODM2IDI3Mi4zMjIgMTIyLjY5NSAyNzIuNTMzTDEyMi43MDUgMjcyLjUzOUwxMTYuNTk5IDI4Mi4yMjlMMTE2LjU4OSAyODIuMjIyQzEwNi40MDIgMjk3LjMxNSA4MC44NjI4IDI5OC41MTQgNTkuMDQ4NCAyODQuNzY4QzM3LjIzNCAyNzEuMDIyIDI3LjI5MzggMjQ3LjQ2NyAzNi41MTI1IDIzMS43NjNMMzYuNTAyNCAyMzEuNzU3TDQyLjYwNzkgMjIyLjA2N0w0Mi42MTggMjIyLjA3NEM0Mi43NDcgMjIxLjg1NSA0Mi44Nzg5IDIyMS42MzcgNDMuMDE0OSAyMjEuNDIxQzUyLjkwNiAyMDUuNzI1IDc4Ljg1NDMgMjA0LjI5OCAxMDAuOTczIDIxOC4yMzZaIiBmaWxsPSIjQzVBMUZGIiBmaWxsLW9wYWNpdHk9IjAuMiIvPgo8L2c+CjxnIGZpbHRlcj0idXJsKCNmaWx0ZXIxMF9iaV81NjU0XzI5OTc3KSI+CjxwYXRoIGQ9Ik0xMDAuOTczIDIxOC4yMzZDMTIzLjA5MSAyMzIuMTczIDEzMy4wMDMgMjU2LjE5NyAxMjMuMTEyIDI3MS44OTNDMTEzLjIyMSAyODcuNTkgODcuMjcyIDI4OS4wMTYgNjUuMTUzOSAyNzUuMDc5QzQzLjAzNTggMjYxLjE0MiAzMy4xMjM4IDIzNy4xMTggNDMuMDE0OSAyMjEuNDIxQzUyLjkwNiAyMDUuNzI1IDc4Ljg1NDYgMjA0LjI5OSAxMDAuOTczIDIxOC4yMzZaIiBmaWxsPSJ3aGl0ZSIgZmlsbC1vcGFjaXR5PSIwLjIiLz4KPC9nPgo8ZyBmaWx0ZXI9InVybCgjZmlsdGVyMTFfYmlpXzU2NTRfMjk5NzcpIj4KPHBhdGggZD0iTTk0LjQ1ODYgMjI4LjU3MkMxMTAuMTU1IDIzOC40NjMgMTE3Ljc3NyAyNTQuNTc5IDExMS40ODMgMjY0LjU2N0MxMDUuMTg5IDI3NC41NTYgODcuMzYxNSAyNzQuNjM1IDcxLjY2NDggMjY0Ljc0NEM1NS45NjggMjU0Ljg1MyA0OC4zNDU5IDIzOC43MzcgNTQuNjQwMiAyMjguNzQ5QzYwLjkzNDUgMjE4Ljc2IDc4Ljc2MTggMjE4LjY4IDk0LjQ1ODYgMjI4LjU3MloiIGZpbGw9InVybCgjcGFpbnQzX2xpbmVhcl81NjU0XzI5OTc3KSIgZmlsbC1vcGFjaXR5PSIwLjM4Ii8+CjwvZz4KPGcgc3R5bGU9Im1peC1ibGVuZC1tb2RlOmhhcmQtbGlnaHQiIGZpbHRlcj0idXJsKCNmaWx0ZXIxMl9mXzU2NTRfMjk5NzcpIj4KPHJlY3QgeD0iNjUuNTAzMiIgeT0iMTc4LjQ2NyIgd2lkdGg9IjEwMC4zMTciIGhlaWdodD0iNTUuNDEwNCIgdHJhbnNmb3JtPSJyb3RhdGUoMzguNzMzOCA2NS41MDMyIDE3OC40NjcpIiBmaWxsPSJ1cmwoI3BhaW50NF9saW5lYXJfNTY1NF8yOTk3NykiIGZpbGwtb3BhY2l0eT0iMC4zIi8+CjwvZz4KPGcgc3R5bGU9Im1peC1ibGVuZC1tb2RlOnBsdXMtbGlnaHRlciIgZmlsdGVyPSJ1cmwoI2ZpbHRlcjEzX2ZfNTY1NF8yOTk3NykiPgo8cGF0aCBkPSJNMTE4LjM5NCAyNzcuOTQ2Qzg1Ljg4IDI5NC40NTcgNjAuOTg5IDI3My44MDkgNDUuMTU0NiAyNTUuMjU4Qzc0LjU4NDggMjk1LjkxMyAxMDkuMDU5IDI4NS42IDExOC4zOTQgMjc3Ljk0NloiIGZpbGw9IiM1OUI5RkYiIGZpbGwtb3BhY2l0eT0iMC4yOCIvPgo8L2c+CjwvZz4KPG1hc2sgaWQ9Im1hc2syXzU2NTRfMjk5NzciIHN0eWxlPSJtYXNrLXR5cGU6YWxwaGEiIG1hc2tVbml0cz0idXNlclNwYWNlT25Vc2UiIHg9Ijk0IiB5PSIxOTIiIHdpZHRoPSIyNjgiIGhlaWdodD0iMTQ3Ij4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0yNTAuNDkxIDE5OS44ODNDMjQ4LjU3MyAxOTYuMjI0IDI0NS4zNDIgMTkyLjc0MiAyNDEuMjExIDE5Mi43NDJIMTYyLjMyMUMxNTQuOTExIDE5Mi43NDIgMTQ4LjE4IDE5Ny4wNiAxNDUuMDkxIDIwMy43OTVMOTUuODE5MSAzMTEuMjEyQzkwLjA1OTQgMzIzLjc2OSA5OS4yMzQ0IDMzOC4wNzIgMTEzLjA0OSAzMzguMDcySDI5My4xMjRDMzAwLjUzNCAzMzguMDcyIDMwNy4yNjUgMzMzLjc1NCAzMTAuMzU0IDMyNy4wMTlMMzU5LjYyNiAyMTkuNjAxQzM2NS4zODYgMjA3LjA0NSAzNTYuMjExIDE5Mi43NDIgMzQyLjM5NiAxOTIuNzQySDI4OS45MDhDMjg2LjczNSAxOTIuNzQyIDI4NC4yMzIgMTk1LjM1NiAyODMuMDc0IDE5OC4zMUMyODAuNjU0IDIwNC40ODEgMjc0LjcwMiAyMDguNTQgMjY4LjA3NCAyMDguNTRIMjY0Ljc3NkMyNTguMzkyIDIwOC41NCAyNTMuMTMzIDIwNC45MjYgMjUwLjQ5MSAxOTkuODgzWiIgZmlsbD0iI0Q5RDlEOSIvPgo8L21hc2s+CjxnIG1hc2s9InVybCgjbWFzazJfNTY1NF8yOTk3NykiPgo8ZyBmaWx0ZXI9InVybCgjZmlsdGVyMTRfYmlfNTY1NF8yOTk3NykiPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTI1MC40OTEgMTk5Ljg4M0MyNDguNTczIDE5Ni4yMjQgMjQ1LjM0MiAxOTIuNzQyIDI0MS4yMTEgMTkyLjc0MkgxNjIuMzIxQzE1NC45MTEgMTkyLjc0MiAxNDguMTggMTk3LjA2IDE0NS4wOTEgMjAzLjc5NUw5NS44MTkxIDMxMS4yMTJDOTAuMDU5NCAzMjMuNzY5IDk5LjIzNDQgMzM4LjA3MiAxMTMuMDQ5IDMzOC4wNzJIMjkzLjEyNEMzMDAuNTM0IDMzOC4wNzIgMzA3LjI2NSAzMzMuNzU0IDMxMC4zNTQgMzI3LjAxOUwzNTkuNjI2IDIxOS42MDFDMzY1LjM4NiAyMDcuMDQ1IDM1Ni4yMTEgMTkyLjc0MiAzNDIuMzk2IDE5Mi43NDJIMjg5LjkwOEMyODYuNzM1IDE5Mi43NDIgMjg0LjIzMiAxOTUuMzU2IDI4My4wNzQgMTk4LjMxQzI4MC42NTQgMjA0LjQ4MSAyNzQuNzAyIDIwOC41NCAyNjguMDc0IDIwOC41NEgyNjQuNzc2QzI1OC4zOTIgMjA4LjU0IDI1My4xMzMgMjA0LjkyNiAyNTAuNDkxIDE5OS44ODNaIiBmaWxsPSIjOUE2QkZGIiBmaWxsLW9wYWNpdHk9IjAuMiIvPgo8L2c+CjxnIHN0eWxlPSJtaXgtYmxlbmQtbW9kZTpwbHVzLWxpZ2h0ZXIiIGZpbHRlcj0idXJsKCNmaWx0ZXIxNV9mXzU2NTRfMjk5NzcpIj4KPHBhdGggZD0iTTExNC45MjIgMTgySDM5Mi45NDRMMzgzLjQ2NiAyMDIuMjJIMjkyLjE2MUwyODkuMTc1IDIwNi4wMzhDMjgwLjMwMSAyMTcuMzg1IDI2My43NTQgMjE5LjAzMiAyNTIuODE3IDIwOS42NThMMjQ0LjEzOSAyMDIuMjJIMTU1LjY3OEw5NS4wMTg2IDM0NC4zOUw4NS44NTY2IDM0Ni42MDFMMTE0LjkyMiAyMTUuNDg5VjE4MloiIGZpbGw9InVybCgjcGFpbnQ1X2xpbmVhcl81NjU0XzI5OTc3KSIgZmlsbC1vcGFjaXR5PSIwLjIiLz4KPC9nPgo8ZyBzdHlsZT0ibWl4LWJsZW5kLW1vZGU6aGFyZC1saWdodCIgZmlsdGVyPSJ1cmwoI2ZpbHRlcjE2X2ZfNTY1NF8yOTk3NykiPgo8cmVjdCB4PSI5MSIgeT0iMTgyIiB3aWR0aD0iMjcwIiBoZWlnaHQ9IjE2MyIgZmlsbD0idXJsKCNwYWludDZfbGluZWFyXzU2NTRfMjk5NzcpIiBmaWxsLW9wYWNpdHk9IjAuMyIvPgo8L2c+CjxnIHN0eWxlPSJtaXgtYmxlbmQtbW9kZTpwbHVzLWxpZ2h0ZXIiIGZpbHRlcj0idXJsKCNmaWx0ZXIxN19mXzU2NTRfMjk5NzcpIj4KPHBhdGggZD0iTTg4LjkzMzggMjk0LjUzQzEwNS4yNDIgMjUyLjg5NiAyMTEuMTI1IDI0NS41MjQgMjExLjEyNSAyNDUuNTI0QzIxMS4xMjUgMjQ1LjUyNCAxMjUuNzA5IDI4NS43MzggMTM3LjY2IDMxNi4xOTZDMTQ5LjY0OCAzNDYuNzQ2IDIzOS44MDYgMzE3LjAzOSAyMzkuODA2IDMxNy4wMzlDMjM5LjgwNiAzMTcuMDM5IDE1OC4xNzMgMzg0Ljg3MiAxMTcuNjE2IDM2Ni4wNDVDODcuNTI0OCAzNTIuMDc2IDc2LjgzMzggMzI1LjQyIDg4LjkzMzggMjk0LjUzWiIgZmlsbD0iIzZENTVGRiIvPgo8L2c+CjxnIHN0eWxlPSJtaXgtYmxlbmQtbW9kZTpwbHVzLWxpZ2h0ZXIiIGZpbHRlcj0idXJsKCNmaWx0ZXIxOF9mXzU2NTRfMjk5NzcpIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0zMzEuODQ3IDI3Ni4yNTZDMzMyLjQ4NiAyNzYuNTM4IDMzMi43NzUgMjc3LjI4NCAzMzIuNDk0IDI3Ny45MjJMMzEwLjA1IDMyOC44MTZMMzEwLjAzNiAzMjguODQzQzMwOC4yOTMgMzMyLjMyOSAzMDIuMjg1IDMzOS4wMiAyOTEuODQ2IDMzOS4wMkgxNzMuMDU1QzE3Mi4zNTcgMzM5LjAyIDE3MS43OTEgMzM4LjQ1NCAxNzEuNzkxIDMzNy43NTZDMTcxLjc5MSAzMzcuMDU4IDE3Mi4zNTcgMzM2LjQ5MiAxNzMuMDU1IDMzNi40OTJIMjkxLjg0NkMzMDEuMDkyIDMzNi40OTIgMzA2LjMyNyAzMzAuNTgxIDMwNy43NjMgMzI3LjczOUwzMzAuMTgxIDI3Ni45MDNDMzMwLjQ2MyAyNzYuMjY0IDMzMS4yMDkgMjc1Ljk3NSAzMzEuODQ3IDI3Ni4yNTZaIiBmaWxsPSJ1cmwoI3BhaW50N19saW5lYXJfNTY1NF8yOTk3NykiIGZpbGwtb3BhY2l0eT0iMC44Ii8+CjwvZz4KPGcgc3R5bGU9Im1peC1ibGVuZC1tb2RlOnBsdXMtbGlnaHRlciIgZmlsdGVyPSJ1cmwoI2ZpbHRlcjE5X2ZfNTY1NF8yOTk3NykiPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTI4Ni45OTYgMjA0LjIzNkMyODYuNTA3IDIwNS4xMjUgMjg1Ljk2MiAyMDYuMTE0IDI4NS4zNTIgMjA3LjE1QzI4My42NDkgMjEwLjA0IDI4MS4wNTkgMjExLjcgMjc4LjU4MiAyMTIuNjAzQzI3Ni4xMiAyMTMuNTAxIDI3My42OTQgMjEzLjY4MSAyNzIuMTU5IDIxMy41NkMyNzEuNDYzIDIxMy41MDYgMjcwLjk0MyAyMTIuODk4IDI3MC45OTggMjEyLjIwMkMyNzEuMDUyIDIxMS41MDYgMjcxLjY2IDIxMC45ODYgMjcyLjM1NiAyMTEuMDQxQzI3My41NTkgMjExLjEzNSAyNzUuNjE5IDIxMC45OTMgMjc3LjcxNyAyMTAuMjI4QzI3OS44IDIwOS40NjkgMjgxLjg0NCAyMDguMTI1IDI4My4xNzQgMjA1Ljg2N0MyODMuNzcxIDIwNC44NTMgMjg0LjI3NCAyMDMuOTM5IDI4NC43NDggMjAzLjA3OEMyODUuMDI1IDIwMi41NzQgMjg1LjI5MiAyMDIuMDg4IDI4NS41NjMgMjAxLjYxMkMyODYuMjcgMjAwLjM2MyAyODYuOTc2IDE5OS4yMTggMjg3LjgyIDE5OC4yNjhDMjg4LjY4MyAxOTcuMjk3IDI4OS42OTEgMTk2LjUyNiAyOTAuOTk2IDE5Ni4wMTFDMjkyLjI4NSAxOTUuNTAzIDI5My43OTcgMTk1LjI3IDI5NS42MzYgMTk1LjI3SDM0My42NThDMzQ0LjM1NiAxOTUuMjcgMzQ0LjkyMiAxOTUuODM1IDM0NC45MjIgMTk2LjUzM0MzNDQuOTIyIDE5Ny4yMzEgMzQ0LjM1NiAxOTcuNzk3IDM0My42NTggMTk3Ljc5N0gyOTUuNjM2QzI5NC4wMDEgMTk3Ljc5NyAyOTIuODI3IDE5OC4wMDYgMjkxLjkyNCAxOTguMzYyQzI5MS4wMzggMTk4LjcxMiAyOTAuMzQ4IDE5OS4yMjkgMjg5LjcxIDE5OS45NDdDMjg5LjA1MyAyMDAuNjg2IDI4OC40NTYgMjAxLjYzMyAyODcuNzYxIDIwMi44NThDMjg3LjUyMiAyMDMuMjggMjg3LjI2OCAyMDMuNzQyIDI4Ni45OTYgMjA0LjIzNloiIGZpbGw9InVybCgjcGFpbnQ4X2xpbmVhcl81NjU0XzI5OTc3KSIgZmlsbC1vcGFjaXR5PSIwLjI3Ii8+CjwvZz4KPGcgc3R5bGU9Im1peC1ibGVuZC1tb2RlOnBsdXMtbGlnaHRlciIgZmlsdGVyPSJ1cmwoI2ZpbHRlcjIwX2ZfNTY1NF8yOTk3NykiPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTE0Ny44NjQgMjAwLjgwMUMxNTAuMTEgMTk2LjAzMyAxNTMuODI5IDE5NC42MzkgMTU1LjczNSAxOTQuNjM5SDI0Mi4yNzhMMjQyLjYgMTk1LjQ0MkMyNDIuODg5IDE5Ni4xNjQgMjQzLjYzMSAxOTcuMTgzIDI0NC43OTUgMTk4LjQxOUMyNDUuOTMgMTk5LjYyNSAyNDcuMzcgMjAwLjkzNiAyNDguOTI1IDIwMi4yNDNDMjUyLjAzNCAyMDQuODU1IDI1NS41MjkgMjA3LjM4MyAyNTcuNzkzIDIwOC45MDhDMjU4LjM3OCAyMDkuMzAyIDI1OC41MzMgMjEwLjA5NiAyNTguMTM4IDIxMC42ODFDMjU3Ljc0MyAyMTEuMjY2IDI1Ni45NDggMjExLjQyIDI1Ni4zNjMgMjExLjAyNUMyNTQuMDQ0IDIwOS40NjMgMjUwLjQ3MyAyMDYuODgyIDI0Ny4yNzkgMjA0LjE5OEMyNDUuNjgzIDIwMi44NTcgMjQ0LjE2MSAyMDEuNDc1IDI0Mi45MzIgMjAwLjE2OUMyNDEuOTk1IDE5OS4xNzQgMjQxLjE2NCAxOTguMTU4IDI0MC42MTYgMTk3LjE5M0gxNTUuNzM1QzE1NC44NyAxOTcuMTkzIDE1Mi4wMjQgMTk3Ljk3IDE1MC4xNzggMjAxLjg4OEMxNDguMTM3IDIwNi4yMjEgMTE1LjY2MiAyNzcuNTQ2IDk5LjY3MzYgMzEyLjY4MUM5OS4zODEzIDMxMy4zMjMgOTguNjIzMiAzMTMuNjA3IDk3Ljk4MDMgMzEzLjMxNUM5Ny4zMzczIDMxMy4wMjMgOTcuMDUzIDMxMi4yNjYgOTcuMzQ1MyAzMTEuNjI0QzExMy4zMjYgMjc2LjUwNiAxNDUuODEzIDIwNS4xNTQgMTQ3Ljg2NCAyMDAuODAxWiIgZmlsbD0idXJsKCNwYWludDlfbGluZWFyXzU2NTRfMjk5NzcpIiBmaWxsLW9wYWNpdHk9IjAuNDciLz4KPC9nPgo8cGF0aCBkPSJNMjUwLjg1MiAyMzcuMjA0QzI1NC42ODggMjMyLjI2NCAyNTcuOTE2IDIzMC4wNzggMjYzLjY4IDIzMC4xNzdDMjcwLjM2MiAyMzAuMjkxIDI3MS42OTEgMjM4LjQwMyAyNjcuMzU2IDI0NC4zNjJDMjYzLjUzMSAyNDkuNjE5IDI1OS40MDUgMjUyLjAyOCAyNTMuOTYgMjUxLjc3OUMyNDcuNTU1IDI1MS40ODYgMjQ2LjIzNCAyNDMuNTE3IDI1MC44NTIgMjM3LjIwNFoiIGZpbGw9InVybCgjcGFpbnQxMF9saW5lYXJfNTY1NF8yOTk3NykiLz4KPC9nPgo8bWFzayBpZD0ibWFzazNfNTY1NF8yOTk3NyIgc3R5bGU9Im1hc2stdHlwZTphbHBoYSIgbWFza1VuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeD0iMTk2IiB5PSI4NCIgd2lkdGg9Ijc0IiBoZWlnaHQ9IjYzIj4KPHBhdGggZD0iTTI0NC4xMDMgODcuNjg3NEMyNjIuNTMxIDk1LjI0NjggMjczLjExOSAxMTEuOTc2IDI2Ny43NTUgMTI1LjA1M0MyNjcuNjgxIDEyNS4yMzMgMjY3LjYwNCAxMjUuNDExIDI2Ny41MjUgMTI1LjU4OEwyNjcuNTM0IDEyNS41OTFMMjY0LjIyMiAxMzMuNjYzTDI2NC4yMTQgMTMzLjY2QzI1OC41NDggMTQ2LjMyMyAyMzkuNTM5IDE1MC41NzIgMjIxLjM2NSAxNDMuMTE2QzIwMy4xOTEgMTM1LjY2IDE5Mi42NDIgMTE5LjI4NiAxOTcuNTAxIDEwNi4yOTJMMTk3LjQ5MyAxMDYuMjg5TDIwMC44MDQgOTguMjE2NEwyMDAuODEzIDk4LjIxOTlDMjAwLjg4MSA5OC4wMzg3IDIwMC45NTEgOTcuODU4MSAyMDEuMDI1IDk3LjY3ODNDMjA2LjM5IDg0LjYwMTEgMjI1LjY3NiA4MC4xMjc5IDI0NC4xMDMgODcuNjg3NFoiIGZpbGw9IiNEOUQ5RDkiLz4KPC9tYXNrPgo8ZyBtYXNrPSJ1cmwoI21hc2szXzU2NTRfMjk5NzcpIj4KPGcgZmlsdGVyPSJ1cmwoI2ZpbHRlcjIxX2JpXzU2NTRfMjk5NzcpIj4KPHBhdGggZD0iTTI0NC4xMDMgODcuNjg3NEMyNjIuNTMxIDk1LjI0NjggMjczLjExOSAxMTEuOTc2IDI2Ny43NTUgMTI1LjA1M0MyNjcuNjgxIDEyNS4yMzMgMjY3LjYwNCAxMjUuNDExIDI2Ny41MjUgMTI1LjU4OEwyNjcuNTM0IDEyNS41OTFMMjY0LjIyMiAxMzMuNjYzTDI2NC4yMTQgMTMzLjY2QzI1OC41NDggMTQ2LjMyMyAyMzkuNTM5IDE1MC41NzIgMjIxLjM2NSAxNDMuMTE2QzIwMy4xOTEgMTM1LjY2IDE5Mi42NDIgMTE5LjI4NiAxOTcuNTAxIDEwNi4yOTJMMTk3LjQ5MyAxMDYuMjg5TDIwMC44MDQgOTguMjE2NEwyMDAuODEzIDk4LjIxOTlDMjAwLjg4MSA5OC4wMzg3IDIwMC45NTEgOTcuODU4MSAyMDEuMDI1IDk3LjY3ODNDMjA2LjM5IDg0LjYwMTEgMjI1LjY3NiA4MC4xMjc5IDI0NC4xMDMgODcuNjg3NFoiIGZpbGw9IiNDNUExRkYiIGZpbGwtb3BhY2l0eT0iMC4yIi8+CjwvZz4KPGcgZmlsdGVyPSJ1cmwoI2ZpbHRlcjIyX2JpXzU2NTRfMjk5NzcpIj4KPHBhdGggZD0iTTI0NC4xMDMgODcuNjg3NEMyNjIuNTMgOTUuMjQ2NyAyNzMuMTE5IDExMS45NzYgMjY3Ljc1NSAxMjUuMDUzQzI2Mi4zOSAxMzguMTMgMjQzLjEwMyAxNDIuNjAzIDIyNC42NzYgMTM1LjA0NEMyMDYuMjQ5IDEyNy40ODUgMTk1LjY2IDExMC43NTUgMjAxLjAyNSA5Ny42NzgzQzIwNi4zOSA4NC42MDExIDIyNS42NzcgODAuMTI4IDI0NC4xMDMgODcuNjg3NFoiIGZpbGw9IndoaXRlIiBmaWxsLW9wYWNpdHk9IjAuMiIvPgo8L2c+CjxnIGZpbHRlcj0idXJsKCNmaWx0ZXIyM19iaWlfNTY1NF8yOTk3NykiPgo8cGF0aCBkPSJNMjQwLjU3IDk2LjI5NzZDMjUzLjY0OCAxMDEuNjYyIDI2MS40ODEgMTEyLjc1NyAyNTguMDY3IDEyMS4wNzlDMjU0LjY1MyAxMjkuNDAxIDI0MS4yODUgMTMxLjc5OCAyMjguMjA4IDEyNi40MzRDMjE1LjEzMSAxMjEuMDY5IDIwNy4yOTcgMTA5Ljk3NCAyMTAuNzExIDEwMS42NTJDMjE0LjEyNSA5My4zMzAyIDIyNy40OTMgOTAuOTMyOSAyNDAuNTcgOTYuMjk3NloiIGZpbGw9InVybCgjcGFpbnQxMV9saW5lYXJfNTY1NF8yOTk3NykiIGZpbGwtb3BhY2l0eT0iMC4zOCIvPgo8L2c+CjxnIHN0eWxlPSJtaXgtYmxlbmQtbW9kZTpwbHVzLWxpZ2h0ZXIiIGZpbHRlcj0idXJsKCNmaWx0ZXIyNF9mXzU2NTRfMjk5NzcpIj4KPHBhdGggZD0iTTI2NS4wMDcgMTMwLjIxNEMyNDIuNzcyIDE0Ni44NjkgMjIxLjM4NCAxMzQuNjM4IDIwNy4wNjggMTIyLjc5MkMyMzQuNDg2IDE0OS40NDMgMjU5LjAwNSAxMzcuMTgzIDI2NS4wMDcgMTMwLjIxNFoiIGZpbGw9IiM4NTNCRkYiIGZpbGwtb3BhY2l0eT0iMC4yOCIvPgo8L2c+CjxnIHN0eWxlPSJtaXgtYmxlbmQtbW9kZTpoYXJkLWxpZ2h0IiBmaWx0ZXI9InVybCgjZmlsdGVyMjVfZl81NjU0XzI5OTc3KSI+CjxyZWN0IHg9IjMwNS43MzIiIHk9IjEwMy4xOTMiIHdpZHRoPSIxMDAuMzE3IiBoZWlnaHQ9Ijk2LjA2MDkiIHRyYW5zZm9ybT0icm90YXRlKDEyMi4yODUgMzA1LjczMiAxMDMuMTkzKSIgZmlsbD0idXJsKCNwYWludDEyX2xpbmVhcl81NjU0XzI5OTc3KSIgZmlsbC1vcGFjaXR5PSIwLjMiLz4KPC9nPgo8L2c+CjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMV81NjU0XzI5OTc3KSI+CjxnIGZpbHRlcj0idXJsKCNmaWx0ZXIyNl9iaV81NjU0XzI5OTc3KSI+CjxwYXRoIGQ9Ik03NC41MDUzIDk4LjIyMjJDOTIuODUyIDExMi4xNDcgMTA0LjYwOSAxMjcuNTI0IDEwMC43NjEgMTMyLjU5NEM5Ni45MTM1IDEzNy42NjMgNzguOTIyMiAxMzAuNDYgNjAuNTk0NyAxMTYuNTVDNDIuMjY3MSAxMDIuNjM5IDMwLjQ4NiA4Ny4yMTQzIDM0LjMxOTQgODIuMTYzOEMzOC4xNTI5IDc3LjExMzIgNTYuMTU4NyA4NC4yOTcgNzQuNTA1MyA5OC4yMjIyWiIgZmlsbD0iI0M1QTFGRiIgZmlsbC1vcGFjaXR5PSIwLjIiLz4KPC9nPgo8ZyBmaWx0ZXI9InVybCgjZmlsdGVyMjdfYmlpXzU2NTRfMjk5NzcpIj4KPHBhdGggZD0iTTYzLjE0MzggMTEzLjcyMkM3NC4yMzczIDEyMi4xNDIgODUuMTcxNyAxMjYuNCA4Ny41ODE3IDEyMy4yMjVDODkuOTkxNyAxMjAuMDQ5IDgyLjkzODEgMTEwLjY1NCA3MS44NTYxIDEwMi4yNDNDNjAuNzc0MSA5My44MzE4IDQ5LjgwNzUgODkuNTY4MiA0Ny40MDY2IDkyLjczMTRDNDUuMDA1NyA5NS44OTQ2IDUyLjA1MDIgMTA1LjMwMiA2My4xNDM4IDExMy43MjJaIiBmaWxsPSJ1cmwoI3BhaW50MTNfbGluZWFyXzU2NTRfMjk5NzcpIiBmaWxsLW9wYWNpdHk9IjAuMzgiLz4KPC9nPgo8bWFzayBpZD0ibWFzazRfNTY1NF8yOTk3NyIgc3R5bGU9Im1hc2stdHlwZTphbHBoYSIgbWFza1VuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeD0iMjUiIHk9IjgyIiB3aWR0aD0iNzYiIGhlaWdodD0iNjQiPgo8cGF0aCBkPSJNMTAwLjc2IDEzMi41OTRMOTIuMzgyIDE0My42MzNDODguNTQ4NiAxNDguNjgzIDcwLjU0MjcgMTQxLjQ5OSA1Mi4yMTUyIDEyNy41ODlDMzMuODg3NyAxMTMuNjc4IDIyLjEwNjYgOTguMjUzMiAyNS45NCA5My4yMDI3TDM0LjMxODQgODIuMTY0MUMzMC40ODQ5IDg3LjIxNDYgNDIuMjQ2OSAxMDIuNjI1IDYwLjU5MzYgMTE2LjU1Qzc4Ljk0MDIgMTMwLjQ3NSA5Ni45MTI0IDEzNy42NjQgMTAwLjc2IDEzMi41OTRaIiBmaWxsPSIjRDlEOUQ5Ii8+CjwvbWFzaz4KPGcgbWFzaz0idXJsKCNtYXNrNF81NjU0XzI5OTc3KSI+CjxnIGZpbHRlcj0idXJsKCNmaWx0ZXIyOF9iaV81NjU0XzI5OTc3KSI+CjxwYXRoIGQ9Ik0xMDAuNzYgMTMyLjU5NEw5Mi4zODIgMTQzLjYzM0M4OC41NDg2IDE0OC42ODMgNzAuNTQyNyAxNDEuNDk5IDUyLjIxNTIgMTI3LjU4OUMzMy44ODc3IDExMy42NzggMjIuMTA2NiA5OC4yNTMyIDI1Ljk0IDkzLjIwMjdMMzQuMzE4NCA4Mi4xNjQxQzMwLjQ4NDkgODcuMjE0NiA0Mi4yNDY5IDEwMi42MjUgNjAuNTkzNiAxMTYuNTVDNzguOTQwMiAxMzAuNDc1IDk2LjkxMjQgMTM3LjY2NCAxMDAuNzYgMTMyLjU5NFoiIGZpbGw9IiNDNUExRkYiIGZpbGwtb3BhY2l0eT0iMC4yIi8+CjwvZz4KPGcgc3R5bGU9Im1peC1ibGVuZC1tb2RlOmhhcmQtbGlnaHQiIGZpbHRlcj0idXJsKCNmaWx0ZXIyOV9mXzU2NTRfMjk5NzcpIj4KPHJlY3QgeD0iMjEuNTQ3NCIgeT0iMzguMzY5MSIgd2lkdGg9IjE0MS44MzMiIGhlaWdodD0iNDMuMDI5NyIgdHJhbnNmb3JtPSJyb3RhdGUoNTAuODk1NCAyMS41NDc0IDM4LjM2OTEpIiBmaWxsPSJ1cmwoI3BhaW50MTRfbGluZWFyXzU2NTRfMjk5NzcpIiBmaWxsLW9wYWNpdHk9IjAuMyIvPgo8L2c+CjwvZz4KPC9nPgo8L2c+CjxkZWZzPgo8ZmlsdGVyIGlkPSJmaWx0ZXIwX2ZfNTY1NF8yOTk3NyIgeD0iNTAiIHk9IjI5NCIgd2lkdGg9IjMwNiIgaGVpZ2h0PSI5MCIgZmlsdGVyVW5pdHM9InVzZXJTcGFjZU9uVXNlIiBjb2xvci1pbnRlcnBvbGF0aW9uLWZpbHRlcnM9InNSR0IiPgo8ZmVGbG9vZCBmbG9vZC1vcGFjaXR5PSIwIiByZXN1bHQ9IkJhY2tncm91bmRJbWFnZUZpeCIvPgo8ZmVCbGVuZCBtb2RlPSJub3JtYWwiIGluPSJTb3VyY2VHcmFwaGljIiBpbjI9IkJhY2tncm91bmRJbWFnZUZpeCIgcmVzdWx0PSJzaGFwZSIvPgo8ZmVHYXVzc2lhbkJsdXIgc3RkRGV2aWF0aW9uPSIxNyIgcmVzdWx0PSJlZmZlY3QxX2ZvcmVncm91bmRCbHVyXzU2NTRfMjk5NzciLz4KPC9maWx0ZXI+CjxmaWx0ZXIgaWQ9ImZpbHRlcjFfYmlfNTY1NF8yOTk3NyIgeD0iMzA0Ljg3OSIgeT0iOTcuMjk0OCIgd2lkdGg9IjExNi4wMjQiIGhlaWdodD0iMTE4LjkxNiIgZmlsdGVyVW5pdHM9InVzZXJTcGFjZU9uVXNlIiBjb2xvci1pbnRlcnBvbGF0aW9uLWZpbHRlcnM9InNSR0IiPgo8ZmVGbG9vZCBmbG9vZC1vcGFjaXR5PSIwIiByZXN1bHQ9IkJhY2tncm91bmRJbWFnZUZpeCIvPgo8ZmVHYXVzc2lhbkJsdXIgaW49IkJhY2tncm91bmRJbWFnZUZpeCIgc3RkRGV2aWF0aW9uPSIyLjcwOTAyIi8+CjxmZUNvbXBvc2l0ZSBpbjI9IlNvdXJjZUFscGhhIiBvcGVyYXRvcj0iaW4iIHJlc3VsdD0iZWZmZWN0MV9iYWNrZ3JvdW5kQmx1cl81NjU0XzI5OTc3Ii8+CjxmZUJsZW5kIG1vZGU9Im5vcm1hbCIgaW49IlNvdXJjZUdyYXBoaWMiIGluMj0iZWZmZWN0MV9iYWNrZ3JvdW5kQmx1cl81NjU0XzI5OTc3IiByZXN1bHQ9InNoYXBlIi8+CjxmZUNvbG9yTWF0cml4IGluPSJTb3VyY2VBbHBoYSIgdHlwZT0ibWF0cml4IiB2YWx1ZXM9IjAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDEyNyAwIiByZXN1bHQ9ImhhcmRBbHBoYSIvPgo8ZmVPZmZzZXQgZHg9IjAuOTAzMDA4IiBkeT0iMC45MDMwMDgiLz4KPGZlR2F1c3NpYW5CbHVyIHN0ZERldmlhdGlvbj0iMC45MDMwMDgiLz4KPGZlQ29tcG9zaXRlIGluMj0iaGFyZEFscGhhIiBvcGVyYXRvcj0iYXJpdGhtZXRpYyIgazI9Ii0xIiBrMz0iMSIvPgo8ZmVDb2xvck1hdHJpeCB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAxIDAgMCAwIDAgMSAwIDAgMCAwIDEgMCAwIDAgMC44IDAiLz4KPGZlQmxlbmQgbW9kZT0ibm9ybWFsIiBpbjI9InNoYXBlIiByZXN1bHQ9ImVmZmVjdDJfaW5uZXJTaGFkb3dfNTY1NF8yOTk3NyIvPgo8L2ZpbHRlcj4KPGZpbHRlciBpZD0iZmlsdGVyMl9iaV81NjU0XzI5OTc3IiB4PSIzMDQuODc5IiB5PSI5Ny4yOTY4IiB3aWR0aD0iMTA1Ljg1MSIgaGVpZ2h0PSIxMDkuOTcxIiBmaWx0ZXJVbml0cz0idXNlclNwYWNlT25Vc2UiIGNvbG9yLWludGVycG9sYXRpb24tZmlsdGVycz0ic1JHQiI+CjxmZUZsb29kIGZsb29kLW9wYWNpdHk9IjAiIHJlc3VsdD0iQmFja2dyb3VuZEltYWdlRml4Ii8+CjxmZUdhdXNzaWFuQmx1ciBpbj0iQmFja2dyb3VuZEltYWdlRml4IiBzdGREZXZpYXRpb249IjIuNzA5MDIiLz4KPGZlQ29tcG9zaXRlIGluMj0iU291cmNlQWxwaGEiIG9wZXJhdG9yPSJpbiIgcmVzdWx0PSJlZmZlY3QxX2JhY2tncm91bmRCbHVyXzU2NTRfMjk5NzciLz4KPGZlQmxlbmQgbW9kZT0ibm9ybWFsIiBpbj0iU291cmNlR3JhcGhpYyIgaW4yPSJlZmZlY3QxX2JhY2tncm91bmRCbHVyXzU2NTRfMjk5NzciIHJlc3VsdD0ic2hhcGUiLz4KPGZlQ29sb3JNYXRyaXggaW49IlNvdXJjZUFscGhhIiB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMTI3IDAiIHJlc3VsdD0iaGFyZEFscGhhIi8+CjxmZU9mZnNldCBkeD0iMC45MDMwMDgiIGR5PSIwLjkwMzAwOCIvPgo8ZmVHYXVzc2lhbkJsdXIgc3RkRGV2aWF0aW9uPSIwLjkwMzAwOCIvPgo8ZmVDb21wb3NpdGUgaW4yPSJoYXJkQWxwaGEiIG9wZXJhdG9yPSJhcml0aG1ldGljIiBrMj0iLTEiIGszPSIxIi8+CjxmZUNvbG9yTWF0cml4IHR5cGU9Im1hdHJpeCIgdmFsdWVzPSIwIDAgMCAwIDEgMCAwIDAgMCAxIDAgMCAwIDAgMSAwIDAgMCAwLjggMCIvPgo8ZmVCbGVuZCBtb2RlPSJub3JtYWwiIGluMj0ic2hhcGUiIHJlc3VsdD0iZWZmZWN0Ml9pbm5lclNoYWRvd181NjU0XzI5OTc3Ii8+CjwvZmlsdGVyPgo8ZmlsdGVyIGlkPSJmaWx0ZXIzX2JpXzU2NTRfMjk5NzciIHg9IjMyMCIgeT0iMTEyLjY2NCIgd2lkdGg9Ijc1LjYwOSIgaGVpZ2h0PSI3OS4yMzQ1IiBmaWx0ZXJVbml0cz0idXNlclNwYWNlT25Vc2UiIGNvbG9yLWludGVycG9sYXRpb24tZmlsdGVycz0ic1JHQiI+CjxmZUZsb29kIGZsb29kLW9wYWNpdHk9IjAiIHJlc3VsdD0iQmFja2dyb3VuZEltYWdlRml4Ii8+CjxmZUdhdXNzaWFuQmx1ciBpbj0iQmFja2dyb3VuZEltYWdlRml4IiBzdGREZXZpYXRpb249IjIuNzA5MDIiLz4KPGZlQ29tcG9zaXRlIGluMj0iU291cmNlQWxwaGEiIG9wZXJhdG9yPSJpbiIgcmVzdWx0PSJlZmZlY3QxX2JhY2tncm91bmRCbHVyXzU2NTRfMjk5NzciLz4KPGZlQmxlbmQgbW9kZT0ibm9ybWFsIiBpbj0iU291cmNlR3JhcGhpYyIgaW4yPSJlZmZlY3QxX2JhY2tncm91bmRCbHVyXzU2NTRfMjk5NzciIHJlc3VsdD0ic2hhcGUiLz4KPGZlQ29sb3JNYXRyaXggaW49IlNvdXJjZUFscGhhIiB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMTI3IDAiIHJlc3VsdD0iaGFyZEFscGhhIi8+CjxmZU9mZnNldCBkeD0iMC45MDMwMDgiIGR5PSIwLjkwMzAwOCIvPgo8ZmVHYXVzc2lhbkJsdXIgc3RkRGV2aWF0aW9uPSIxNS44NTA5Ii8+CjxmZUNvbXBvc2l0ZSBpbjI9ImhhcmRBbHBoYSIgb3BlcmF0b3I9ImFyaXRobWV0aWMiIGsyPSItMSIgazM9IjEiLz4KPGZlQ29sb3JNYXRyaXggdHlwZT0ibWF0cml4IiB2YWx1ZXM9IjAgMCAwIDAgMC4yMjk4NjcgMCAwIDAgMCAwLjIyOTg2NyAwIDAgMCAwIDAuMjI5ODY3IDAgMCAwIDAuMDcgMCIvPgo8ZmVCbGVuZCBtb2RlPSJub3JtYWwiIGluMj0ic2hhcGUiIHJlc3VsdD0iZWZmZWN0Ml9pbm5lclNoYWRvd181NjU0XzI5OTc3Ii8+CjwvZmlsdGVyPgo8ZmlsdGVyIGlkPSJmaWx0ZXI0X2ZfNTY1NF8yOTk3NyIgeD0iMzUyLjYxOCIgeT0iMTY2LjQ3MyIgd2lkdGg9IjQ0LjY3MSIgaGVpZ2h0PSIzNi4yMDkxIiBmaWx0ZXJVbml0cz0idXNlclNwYWNlT25Vc2UiIGNvbG9yLWludGVycG9sYXRpb24tZmlsdGVycz0ic1JHQiI+CjxmZUZsb29kIGZsb29kLW9wYWNpdHk9IjAiIHJlc3VsdD0iQmFja2dyb3VuZEltYWdlRml4Ii8+CjxmZUJsZW5kIG1vZGU9Im5vcm1hbCIgaW49IlNvdXJjZUdyYXBoaWMiIGluMj0iQmFja2dyb3VuZEltYWdlRml4IiByZXN1bHQ9InNoYXBlIi8+CjxmZUdhdXNzaWFuQmx1ciBzdGREZXZpYXRpb249IjEuMzU0NTEiIHJlc3VsdD0iZWZmZWN0MV9mb3JlZ3JvdW5kQmx1cl81NjU0XzI5OTc3Ii8+CjwvZmlsdGVyPgo8ZmlsdGVyIGlkPSJmaWx0ZXI1X2JpXzU2NTRfMjk5NzciIHg9IjE3NC41OTciIHk9IjUwLjMxOTEiIHdpZHRoPSI1NS4xNTA2IiBoZWlnaHQ9IjU2LjUyNTgiIGZpbHRlclVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgY29sb3ItaW50ZXJwb2xhdGlvbi1maWx0ZXJzPSJzUkdCIj4KPGZlRmxvb2QgZmxvb2Qtb3BhY2l0eT0iMCIgcmVzdWx0PSJCYWNrZ3JvdW5kSW1hZ2VGaXgiLz4KPGZlR2F1c3NpYW5CbHVyIGluPSJCYWNrZ3JvdW5kSW1hZ2VGaXgiIHN0ZERldmlhdGlvbj0iMS4yODc3Ii8+CjxmZUNvbXBvc2l0ZSBpbjI9IlNvdXJjZUFscGhhIiBvcGVyYXRvcj0iaW4iIHJlc3VsdD0iZWZmZWN0MV9iYWNrZ3JvdW5kQmx1cl81NjU0XzI5OTc3Ii8+CjxmZUJsZW5kIG1vZGU9Im5vcm1hbCIgaW49IlNvdXJjZUdyYXBoaWMiIGluMj0iZWZmZWN0MV9iYWNrZ3JvdW5kQmx1cl81NjU0XzI5OTc3IiByZXN1bHQ9InNoYXBlIi8+CjxmZUNvbG9yTWF0cml4IGluPSJTb3VyY2VBbHBoYSIgdHlwZT0ibWF0cml4IiB2YWx1ZXM9IjAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDEyNyAwIiByZXN1bHQ9ImhhcmRBbHBoYSIvPgo8ZmVPZmZzZXQgZHg9IjAuNDI5MjMzIiBkeT0iMC40MjkyMzMiLz4KPGZlR2F1c3NpYW5CbHVyIHN0ZERldmlhdGlvbj0iMC40MjkyMzMiLz4KPGZlQ29tcG9zaXRlIGluMj0iaGFyZEFscGhhIiBvcGVyYXRvcj0iYXJpdGhtZXRpYyIgazI9Ii0xIiBrMz0iMSIvPgo8ZmVDb2xvck1hdHJpeCB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAxIDAgMCAwIDAgMSAwIDAgMCAwIDEgMCAwIDAgMC44IDAiLz4KPGZlQmxlbmQgbW9kZT0ibm9ybWFsIiBpbjI9InNoYXBlIiByZXN1bHQ9ImVmZmVjdDJfaW5uZXJTaGFkb3dfNTY1NF8yOTk3NyIvPgo8L2ZpbHRlcj4KPGZpbHRlciBpZD0iZmlsdGVyNl9iaV81NjU0XzI5OTc3IiB4PSIxNzkuNDMzIiB5PSI1MC4zMTkxIiB3aWR0aD0iNTAuMzE0OCIgaGVpZ2h0PSI1Mi4yNzU4IiBmaWx0ZXJVbml0cz0idXNlclNwYWNlT25Vc2UiIGNvbG9yLWludGVycG9sYXRpb24tZmlsdGVycz0ic1JHQiI+CjxmZUZsb29kIGZsb29kLW9wYWNpdHk9IjAiIHJlc3VsdD0iQmFja2dyb3VuZEltYWdlRml4Ii8+CjxmZUdhdXNzaWFuQmx1ciBpbj0iQmFja2dyb3VuZEltYWdlRml4IiBzdGREZXZpYXRpb249IjEuMjg3NyIvPgo8ZmVDb21wb3NpdGUgaW4yPSJTb3VyY2VBbHBoYSIgb3BlcmF0b3I9ImluIiByZXN1bHQ9ImVmZmVjdDFfYmFja2dyb3VuZEJsdXJfNTY1NF8yOTk3NyIvPgo8ZmVCbGVuZCBtb2RlPSJub3JtYWwiIGluPSJTb3VyY2VHcmFwaGljIiBpbjI9ImVmZmVjdDFfYmFja2dyb3VuZEJsdXJfNTY1NF8yOTk3NyIgcmVzdWx0PSJzaGFwZSIvPgo8ZmVDb2xvck1hdHJpeCBpbj0iU291cmNlQWxwaGEiIHR5cGU9Im1hdHJpeCIgdmFsdWVzPSIwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAxMjcgMCIgcmVzdWx0PSJoYXJkQWxwaGEiLz4KPGZlT2Zmc2V0IGR4PSIwLjQyOTIzMyIgZHk9IjAuNDI5MjMzIi8+CjxmZUdhdXNzaWFuQmx1ciBzdGREZXZpYXRpb249IjAuNDI5MjMzIi8+CjxmZUNvbXBvc2l0ZSBpbjI9ImhhcmRBbHBoYSIgb3BlcmF0b3I9ImFyaXRobWV0aWMiIGsyPSItMSIgazM9IjEiLz4KPGZlQ29sb3JNYXRyaXggdHlwZT0ibWF0cml4IiB2YWx1ZXM9IjAgMCAwIDAgMSAwIDAgMCAwIDEgMCAwIDAgMCAxIDAgMCAwIDAuOCAwIi8+CjxmZUJsZW5kIG1vZGU9Im5vcm1hbCIgaW4yPSJzaGFwZSIgcmVzdWx0PSJlZmZlY3QyX2lubmVyU2hhZG93XzU2NTRfMjk5NzciLz4KPC9maWx0ZXI+CjxmaWx0ZXIgaWQ9ImZpbHRlcjdfYmlfNTY1NF8yOTk3NyIgeD0iMTg2LjYyIiB5PSI1Ny42MjM4IiB3aWR0aD0iMzUuOTM5NyIgaGVpZ2h0PSIzNy42NjQ1IiBmaWx0ZXJVbml0cz0idXNlclNwYWNlT25Vc2UiIGNvbG9yLWludGVycG9sYXRpb24tZmlsdGVycz0ic1JHQiI+CjxmZUZsb29kIGZsb29kLW9wYWNpdHk9IjAiIHJlc3VsdD0iQmFja2dyb3VuZEltYWdlRml4Ii8+CjxmZUdhdXNzaWFuQmx1ciBpbj0iQmFja2dyb3VuZEltYWdlRml4IiBzdGREZXZpYXRpb249IjEuMjg3NyIvPgo8ZmVDb21wb3NpdGUgaW4yPSJTb3VyY2VBbHBoYSIgb3BlcmF0b3I9ImluIiByZXN1bHQ9ImVmZmVjdDFfYmFja2dyb3VuZEJsdXJfNTY1NF8yOTk3NyIvPgo8ZmVCbGVuZCBtb2RlPSJub3JtYWwiIGluPSJTb3VyY2VHcmFwaGljIiBpbjI9ImVmZmVjdDFfYmFja2dyb3VuZEJsdXJfNTY1NF8yOTk3NyIgcmVzdWx0PSJzaGFwZSIvPgo8ZmVDb2xvck1hdHJpeCBpbj0iU291cmNlQWxwaGEiIHR5cGU9Im1hdHJpeCIgdmFsdWVzPSIwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAxMjcgMCIgcmVzdWx0PSJoYXJkQWxwaGEiLz4KPGZlT2Zmc2V0IGR4PSIwLjQyOTIzMyIgZHk9IjAuNDI5MjMzIi8+CjxmZUdhdXNzaWFuQmx1ciBzdGREZXZpYXRpb249IjcuNTM0NTMiLz4KPGZlQ29tcG9zaXRlIGluMj0iaGFyZEFscGhhIiBvcGVyYXRvcj0iYXJpdGhtZXRpYyIgazI9Ii0xIiBrMz0iMSIvPgo8ZmVDb2xvck1hdHJpeCB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwLjIyOTg2NyAwIDAgMCAwIDAuMjI5ODY3IDAgMCAwIDAgMC4yMjk4NjcgMCAwIDAgMC4wNyAwIi8+CjxmZUJsZW5kIG1vZGU9Im5vcm1hbCIgaW4yPSJzaGFwZSIgcmVzdWx0PSJlZmZlY3QyX2lubmVyU2hhZG93XzU2NTRfMjk5NzciLz4KPC9maWx0ZXI+CjxmaWx0ZXIgaWQ9ImZpbHRlcjhfZl81NjU0XzI5OTc3IiB4PSIxODUuODIyIiB5PSI4My4yMDI1IiB3aWR0aD0iMjEuMjMzOCIgaGVpZ2h0PSIxNy4yMTAyIiBmaWx0ZXJVbml0cz0idXNlclNwYWNlT25Vc2UiIGNvbG9yLWludGVycG9sYXRpb24tZmlsdGVycz0ic1JHQiI+CjxmZUZsb29kIGZsb29kLW9wYWNpdHk9IjAiIHJlc3VsdD0iQmFja2dyb3VuZEltYWdlRml4Ii8+CjxmZUJsZW5kIG1vZGU9Im5vcm1hbCIgaW49IlNvdXJjZUdyYXBoaWMiIGluMj0iQmFja2dyb3VuZEltYWdlRml4IiByZXN1bHQ9InNoYXBlIi8+CjxmZUdhdXNzaWFuQmx1ciBzdGREZXZpYXRpb249IjAuNjQzODQ5IiByZXN1bHQ9ImVmZmVjdDFfZm9yZWdyb3VuZEJsdXJfNTY1NF8yOTk3NyIvPgo8L2ZpbHRlcj4KPGZpbHRlciBpZD0iZmlsdGVyOV9iaV81NjU0XzI5OTc3IiB4PSIyMC40MzkyIiB5PSIxOTYuMDExIiB3aWR0aD0iMTE5LjE0MyIgaGVpZ2h0PSIxMTAuOTgyIiBmaWx0ZXJVbml0cz0idXNlclNwYWNlT25Vc2UiIGNvbG9yLWludGVycG9sYXRpb24tZmlsdGVycz0ic1JHQiI+CjxmZUZsb29kIGZsb29kLW9wYWNpdHk9IjAiIHJlc3VsdD0iQmFja2dyb3VuZEltYWdlRml4Ii8+CjxmZUdhdXNzaWFuQmx1ciBpbj0iQmFja2dyb3VuZEltYWdlRml4IiBzdGREZXZpYXRpb249IjYuMzE4NjciLz4KPGZlQ29tcG9zaXRlIGluMj0iU291cmNlQWxwaGEiIG9wZXJhdG9yPSJpbiIgcmVzdWx0PSJlZmZlY3QxX2JhY2tncm91bmRCbHVyXzU2NTRfMjk5NzciLz4KPGZlQmxlbmQgbW9kZT0ibm9ybWFsIiBpbj0iU291cmNlR3JhcGhpYyIgaW4yPSJlZmZlY3QxX2JhY2tncm91bmRCbHVyXzU2NTRfMjk5NzciIHJlc3VsdD0ic2hhcGUiLz4KPGZlQ29sb3JNYXRyaXggaW49IlNvdXJjZUFscGhhIiB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMTI3IDAiIHJlc3VsdD0iaGFyZEFscGhhIi8+CjxmZU9mZnNldCBkeD0iMC43NjM0OSIgZHk9IjAuNzYzNDkiLz4KPGZlR2F1c3NpYW5CbHVyIHN0ZERldmlhdGlvbj0iMC43NjM0OSIvPgo8ZmVDb21wb3NpdGUgaW4yPSJoYXJkQWxwaGEiIG9wZXJhdG9yPSJhcml0aG1ldGljIiBrMj0iLTEiIGszPSIxIi8+CjxmZUNvbG9yTWF0cml4IHR5cGU9Im1hdHJpeCIgdmFsdWVzPSIwIDAgMCAwIDEgMCAwIDAgMCAxIDAgMCAwIDAgMSAwIDAgMCAwLjggMCIvPgo8ZmVCbGVuZCBtb2RlPSJub3JtYWwiIGluMj0ic2hhcGUiIHJlc3VsdD0iZWZmZWN0Ml9pbm5lclNoYWRvd181NjU0XzI5OTc3Ii8+CjwvZmlsdGVyPgo8ZmlsdGVyIGlkPSJmaWx0ZXIxMF9iaV81NjU0XzI5OTc3IiB4PSIxOS4zMzExIiB5PSIxODguNzk4IiB3aWR0aD0iMTI3LjQ2NCIgaGVpZ2h0PSIxMTUuNzE5IiBmaWx0ZXJVbml0cz0idXNlclNwYWNlT25Vc2UiIGNvbG9yLWludGVycG9sYXRpb24tZmlsdGVycz0ic1JHQiI+CjxmZUZsb29kIGZsb29kLW9wYWNpdHk9IjAiIHJlc3VsdD0iQmFja2dyb3VuZEltYWdlRml4Ii8+CjxmZUdhdXNzaWFuQmx1ciBpbj0iQmFja2dyb3VuZEltYWdlRml4IiBzdGREZXZpYXRpb249IjkuOTI1MzciLz4KPGZlQ29tcG9zaXRlIGluMj0iU291cmNlQWxwaGEiIG9wZXJhdG9yPSJpbiIgcmVzdWx0PSJlZmZlY3QxX2JhY2tncm91bmRCbHVyXzU2NTRfMjk5NzciLz4KPGZlQmxlbmQgbW9kZT0ibm9ybWFsIiBpbj0iU291cmNlR3JhcGhpYyIgaW4yPSJlZmZlY3QxX2JhY2tncm91bmRCbHVyXzU2NTRfMjk5NzciIHJlc3VsdD0ic2hhcGUiLz4KPGZlQ29sb3JNYXRyaXggaW49IlNvdXJjZUFscGhhIiB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMTI3IDAiIHJlc3VsdD0iaGFyZEFscGhhIi8+CjxmZU9mZnNldCBkeD0iMC43NjM0OSIgZHk9IjAuNzYzNDkiLz4KPGZlR2F1c3NpYW5CbHVyIHN0ZERldmlhdGlvbj0iMC43NjM0OSIvPgo8ZmVDb21wb3NpdGUgaW4yPSJoYXJkQWxwaGEiIG9wZXJhdG9yPSJhcml0aG1ldGljIiBrMj0iLTEiIGszPSIxIi8+CjxmZUNvbG9yTWF0cml4IHR5cGU9Im1hdHJpeCIgdmFsdWVzPSIwIDAgMCAwIDEgMCAwIDAgMCAxIDAgMCAwIDAgMSAwIDAgMCAwLjggMCIvPgo8ZmVCbGVuZCBtb2RlPSJub3JtYWwiIGluMj0ic2hhcGUiIHJlc3VsdD0iZWZmZWN0Ml9pbm5lclNoYWRvd181NjU0XzI5OTc3Ii8+CjwvZmlsdGVyPgo8ZmlsdGVyIGlkPSJmaWx0ZXIxMV9iaWlfNTY1NF8yOTk3NyIgeD0iMzIuNTgxNCIgeT0iMjAxLjM1NCIgd2lkdGg9IjEwMC45NjEiIGhlaWdodD0iOTAuNjA3NyIgZmlsdGVyVW5pdHM9InVzZXJTcGFjZU9uVXNlIiBjb2xvci1pbnRlcnBvbGF0aW9uLWZpbHRlcnM9InNSR0IiPgo8ZmVGbG9vZCBmbG9vZC1vcGFjaXR5PSIwIiByZXN1bHQ9IkJhY2tncm91bmRJbWFnZUZpeCIvPgo8ZmVHYXVzc2lhbkJsdXIgaW49IkJhY2tncm91bmRJbWFnZUZpeCIgc3RkRGV2aWF0aW9uPSI5LjkyNTM3Ii8+CjxmZUNvbXBvc2l0ZSBpbjI9IlNvdXJjZUFscGhhIiBvcGVyYXRvcj0iaW4iIHJlc3VsdD0iZWZmZWN0MV9iYWNrZ3JvdW5kQmx1cl81NjU0XzI5OTc3Ii8+CjxmZUJsZW5kIG1vZGU9Im5vcm1hbCIgaW49IlNvdXJjZUdyYXBoaWMiIGluMj0iZWZmZWN0MV9iYWNrZ3JvdW5kQmx1cl81NjU0XzI5OTc3IiByZXN1bHQ9InNoYXBlIi8+CjxmZUNvbG9yTWF0cml4IGluPSJTb3VyY2VBbHBoYSIgdHlwZT0ibWF0cml4IiB2YWx1ZXM9IjAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDEyNyAwIiByZXN1bHQ9ImhhcmRBbHBoYSIvPgo8ZmVPZmZzZXQgZHg9IjEuNTI2OTgiIGR5PSIzLjA1Mzk2Ii8+CjxmZUNvbXBvc2l0ZSBpbjI9ImhhcmRBbHBoYSIgb3BlcmF0b3I9ImFyaXRobWV0aWMiIGsyPSItMSIgazM9IjEiLz4KPGZlQ29sb3JNYXRyaXggdHlwZT0ibWF0cml4IiB2YWx1ZXM9IjAgMCAwIDAgMC45Mzg0NTYgMCAwIDAgMCAwLjkyODk4OCAwIDAgMCAwIDEgMCAwIDAgMSAwIi8+CjxmZUJsZW5kIG1vZGU9Im5vcm1hbCIgaW4yPSJzaGFwZSIgcmVzdWx0PSJlZmZlY3QyX2lubmVyU2hhZG93XzU2NTRfMjk5NzciLz4KPGZlQ29sb3JNYXRyaXggaW49IlNvdXJjZUFscGhhIiB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMTI3IDAiIHJlc3VsdD0iaGFyZEFscGhhIi8+CjxmZU9mZnNldCBkeD0iMC43NjM0OSIgZHk9IjIuMjkwNDciLz4KPGZlQ29tcG9zaXRlIGluMj0iaGFyZEFscGhhIiBvcGVyYXRvcj0iYXJpdGhtZXRpYyIgazI9Ii0xIiBrMz0iMSIvPgo8ZmVDb2xvck1hdHJpeCB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwLjg3MDAxOCAwIDAgMCAwIDAuODQwMTQgMCAwIDAgMCAwLjk3NzkxMyAwIDAgMCAxIDAiLz4KPGZlQmxlbmQgbW9kZT0ibm9ybWFsIiBpbjI9ImVmZmVjdDJfaW5uZXJTaGFkb3dfNTY1NF8yOTk3NyIgcmVzdWx0PSJlZmZlY3QzX2lubmVyU2hhZG93XzU2NTRfMjk5NzciLz4KPC9maWx0ZXI+CjxmaWx0ZXIgaWQ9ImZpbHRlcjEyX2ZfNTY1NF8yOTk3NyIgeD0iOS4zNDkyOCIgeT0iMTU2Ljk4MyIgd2lkdGg9IjE1NS44OTEiIGhlaWdodD0iMTQ4Ljk1OSIgZmlsdGVyVW5pdHM9InVzZXJTcGFjZU9uVXNlIiBjb2xvci1pbnRlcnBvbGF0aW9uLWZpbHRlcnM9InNSR0IiPgo8ZmVGbG9vZCBmbG9vZC1vcGFjaXR5PSIwIiByZXN1bHQ9IkJhY2tncm91bmRJbWFnZUZpeCIvPgo8ZmVCbGVuZCBtb2RlPSJub3JtYWwiIGluPSJTb3VyY2VHcmFwaGljIiBpbjI9IkJhY2tncm91bmRJbWFnZUZpeCIgcmVzdWx0PSJzaGFwZSIvPgo8ZmVHYXVzc2lhbkJsdXIgc3RkRGV2aWF0aW9uPSIxMC43NDE3IiByZXN1bHQ9ImVmZmVjdDFfZm9yZWdyb3VuZEJsdXJfNTY1NF8yOTk3NyIvPgo8L2ZpbHRlcj4KPGZpbHRlciBpZD0iZmlsdGVyMTNfZl81NjU0XzI5OTc3IiB4PSI0Mi44NjQxIiB5PSIyNTIuOTY3IiB3aWR0aD0iNzcuODIwMiIgaGVpZ2h0PSIzNC4zNTQ0IiBmaWx0ZXJVbml0cz0idXNlclNwYWNlT25Vc2UiIGNvbG9yLWludGVycG9sYXRpb24tZmlsdGVycz0ic1JHQiI+CjxmZUZsb29kIGZsb29kLW9wYWNpdHk9IjAiIHJlc3VsdD0iQmFja2dyb3VuZEltYWdlRml4Ii8+CjxmZUJsZW5kIG1vZGU9Im5vcm1hbCIgaW49IlNvdXJjZUdyYXBoaWMiIGluMj0iQmFja2dyb3VuZEltYWdlRml4IiByZXN1bHQ9InNoYXBlIi8+CjxmZUdhdXNzaWFuQmx1ciBzdGREZXZpYXRpb249IjEuMTQ1MjQiIHJlc3VsdD0iZWZmZWN0MV9mb3JlZ3JvdW5kQmx1cl81NjU0XzI5OTc3Ii8+CjwvZmlsdGVyPgo8ZmlsdGVyIGlkPSJmaWx0ZXIxNF9iaV81NjU0XzI5OTc3IiB4PSI4MS40MzM1IiB5PSIxODAuMTA1IiB3aWR0aD0iMjkyLjU3OCIgaGVpZ2h0PSIxNzAuNjA1IiBmaWx0ZXJVbml0cz0idXNlclNwYWNlT25Vc2UiIGNvbG9yLWludGVycG9sYXRpb24tZmlsdGVycz0ic1JHQiI+CjxmZUZsb29kIGZsb29kLW9wYWNpdHk9IjAiIHJlc3VsdD0iQmFja2dyb3VuZEltYWdlRml4Ii8+CjxmZUdhdXNzaWFuQmx1ciBpbj0iQmFja2dyb3VuZEltYWdlRml4IiBzdGREZXZpYXRpb249IjYuMzE4NjciLz4KPGZlQ29tcG9zaXRlIGluMj0iU291cmNlQWxwaGEiIG9wZXJhdG9yPSJpbiIgcmVzdWx0PSJlZmZlY3QxX2JhY2tncm91bmRCbHVyXzU2NTRfMjk5NzciLz4KPGZlQmxlbmQgbW9kZT0ibm9ybWFsIiBpbj0iU291cmNlR3JhcGhpYyIgaW4yPSJlZmZlY3QxX2JhY2tncm91bmRCbHVyXzU2NTRfMjk5NzciIHJlc3VsdD0ic2hhcGUiLz4KPGZlQ29sb3JNYXRyaXggaW49IlNvdXJjZUFscGhhIiB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMTI3IDAiIHJlc3VsdD0iaGFyZEFscGhhIi8+CjxmZU9mZnNldCBkeT0iLTEuOTYwMDgiLz4KPGZlR2F1c3NpYW5CbHVyIHN0ZERldmlhdGlvbj0iMi4zMjU4NyIvPgo8ZmVDb21wb3NpdGUgaW4yPSJoYXJkQWxwaGEiIG9wZXJhdG9yPSJhcml0aG1ldGljIiBrMj0iLTEiIGszPSIxIi8+CjxmZUNvbG9yTWF0cml4IHR5cGU9Im1hdHJpeCIgdmFsdWVzPSIwIDAgMCAwIDEgMCAwIDAgMCAxIDAgMCAwIDAgMSAwIDAgMCAwLjU1IDAiLz4KPGZlQmxlbmQgbW9kZT0ibm9ybWFsIiBpbjI9InNoYXBlIiByZXN1bHQ9ImVmZmVjdDJfaW5uZXJTaGFkb3dfNTY1NF8yOTk3NyIvPgo8L2ZpbHRlcj4KPGZpbHRlciBpZD0iZmlsdGVyMTVfZl81NjU0XzI5OTc3IiB4PSI4MC4xNjk4IiB5PSIxNzYuMzEzIiB3aWR0aD0iMzE4LjQ2MSIgaGVpZ2h0PSIxNzUuOTc1IiBmaWx0ZXJVbml0cz0idXNlclNwYWNlT25Vc2UiIGNvbG9yLWludGVycG9sYXRpb24tZmlsdGVycz0ic1JHQiI+CjxmZUZsb29kIGZsb29kLW9wYWNpdHk9IjAiIHJlc3VsdD0iQmFja2dyb3VuZEltYWdlRml4Ii8+CjxmZUJsZW5kIG1vZGU9Im5vcm1hbCIgaW49IlNvdXJjZUdyYXBoaWMiIGluMj0iQmFja2dyb3VuZEltYWdlRml4IiByZXN1bHQ9InNoYXBlIi8+CjxmZUdhdXNzaWFuQmx1ciBzdGREZXZpYXRpb249IjIuODQzNCIgcmVzdWx0PSJlZmZlY3QxX2ZvcmVncm91bmRCbHVyXzU2NTRfMjk5NzciLz4KPC9maWx0ZXI+CjxmaWx0ZXIgaWQ9ImZpbHRlcjE2X2ZfNTY1NF8yOTk3NyIgeD0iODguNDcyNSIgeT0iMTc5LjQ3MyIgd2lkdGg9IjI3NS4wNTUiIGhlaWdodD0iMTY4LjA1NSIgZmlsdGVyVW5pdHM9InVzZXJTcGFjZU9uVXNlIiBjb2xvci1pbnRlcnBvbGF0aW9uLWZpbHRlcnM9InNSR0IiPgo8ZmVGbG9vZCBmbG9vZC1vcGFjaXR5PSIwIiByZXN1bHQ9IkJhY2tncm91bmRJbWFnZUZpeCIvPgo8ZmVCbGVuZCBtb2RlPSJub3JtYWwiIGluPSJTb3VyY2VHcmFwaGljIiBpbjI9IkJhY2tncm91bmRJbWFnZUZpeCIgcmVzdWx0PSJzaGFwZSIvPgo8ZmVHYXVzc2lhbkJsdXIgc3RkRGV2aWF0aW9uPSIxLjI2MzczIiByZXN1bHQ9ImVmZmVjdDFfZm9yZWdyb3VuZEJsdXJfNTY1NF8yOTk3NyIvPgo8L2ZpbHRlcj4KPGZpbHRlciBpZD0iZmlsdGVyMTdfZl81NjU0XzI5OTc3IiB4PSI0My42MTA5IiB5PSIyMDUuMDg0IiB3aWR0aD0iMjM2LjYzNSIgaGVpZ2h0PSIyMDQuNzAxIiBmaWx0ZXJVbml0cz0idXNlclNwYWNlT25Vc2UiIGNvbG9yLWludGVycG9sYXRpb24tZmlsdGVycz0ic1JHQiI+CjxmZUZsb29kIGZsb29kLW9wYWNpdHk9IjAiIHJlc3VsdD0iQmFja2dyb3VuZEltYWdlRml4Ii8+CjxmZUJsZW5kIG1vZGU9Im5vcm1hbCIgaW49IlNvdXJjZUdyYXBoaWMiIGluMj0iQmFja2dyb3VuZEltYWdlRml4IiByZXN1bHQ9InNoYXBlIi8+CjxmZUdhdXNzaWFuQmx1ciBzdGREZXZpYXRpb249IjIwLjIxOTciIHJlc3VsdD0iZWZmZWN0MV9mb3JlZ3JvdW5kQmx1cl81NjU0XzI5OTc3Ii8+CjwvZmlsdGVyPgo8ZmlsdGVyIGlkPSJmaWx0ZXIxOF9mXzU2NTRfMjk5NzciIHg9IjE2Ni43MzYiIHk9IjI3MS4wOTQiIHdpZHRoPSIxNzAuOTIiIGhlaWdodD0iNzIuOTgxIiBmaWx0ZXJVbml0cz0idXNlclNwYWNlT25Vc2UiIGNvbG9yLWludGVycG9sYXRpb24tZmlsdGVycz0ic1JHQiI+CjxmZUZsb29kIGZsb29kLW9wYWNpdHk9IjAiIHJlc3VsdD0iQmFja2dyb3VuZEltYWdlRml4Ii8+CjxmZUJsZW5kIG1vZGU9Im5vcm1hbCIgaW49IlNvdXJjZUdyYXBoaWMiIGluMj0iQmFja2dyb3VuZEltYWdlRml4IiByZXN1bHQ9InNoYXBlIi8+CjxmZUdhdXNzaWFuQmx1ciBzdGREZXZpYXRpb249IjIuNTI3NDciIHJlc3VsdD0iZWZmZWN0MV9mb3JlZ3JvdW5kQmx1cl81NjU0XzI5OTc3Ii8+CjwvZmlsdGVyPgo8ZmlsdGVyIGlkPSJmaWx0ZXIxOV9mXzU2NTRfMjk5NzciIHg9IjI2Ny4yMDIiIHk9IjE5MS40NzgiIHdpZHRoPSI4MS41MTA5IiBoZWlnaHQ9IjI1LjkwNjYiIGZpbHRlclVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgY29sb3ItaW50ZXJwb2xhdGlvbi1maWx0ZXJzPSJzUkdCIj4KPGZlRmxvb2QgZmxvb2Qtb3BhY2l0eT0iMCIgcmVzdWx0PSJCYWNrZ3JvdW5kSW1hZ2VGaXgiLz4KPGZlQmxlbmQgbW9kZT0ibm9ybWFsIiBpbj0iU291cmNlR3JhcGhpYyIgaW4yPSJCYWNrZ3JvdW5kSW1hZ2VGaXgiIHJlc3VsdD0ic2hhcGUiLz4KPGZlR2F1c3NpYW5CbHVyIHN0ZERldmlhdGlvbj0iMS44OTU2IiByZXN1bHQ9ImVmZmVjdDFfZm9yZWdyb3VuZEJsdXJfNTY1NF8yOTk3NyIvPgo8L2ZpbHRlcj4KPGZpbHRlciBpZD0iZmlsdGVyMjBfZl81NjU0XzI5OTc3IiB4PSI5Mi44MDczIiB5PSIxOTAuMjE2IiB3aWR0aD0iMTY5Ljk3MiIgaGVpZ2h0PSIxMjcuNjM3IiBmaWx0ZXJVbml0cz0idXNlclNwYWNlT25Vc2UiIGNvbG9yLWludGVycG9sYXRpb24tZmlsdGVycz0ic1JHQiI+CjxmZUZsb29kIGZsb29kLW9wYWNpdHk9IjAiIHJlc3VsdD0iQmFja2dyb3VuZEltYWdlRml4Ii8+CjxmZUJsZW5kIG1vZGU9Im5vcm1hbCIgaW49IlNvdXJjZUdyYXBoaWMiIGluMj0iQmFja2dyb3VuZEltYWdlRml4IiByZXN1bHQ9InNoYXBlIi8+CjxmZUdhdXNzaWFuQmx1ciBzdGREZXZpYXRpb249IjIuMjExNTQiIHJlc3VsdD0iZWZmZWN0MV9mb3JlZ3JvdW5kQmx1cl81NjU0XzI5OTc3Ii8+CjwvZmlsdGVyPgo8ZmlsdGVyIGlkPSJmaWx0ZXIyMV9iaV81NjU0XzI5OTc3IiB4PSIxODYuNjkyIiB5PSI3NC4zODQiIHdpZHRoPSI5Mi4wODUiIGhlaWdodD0iODIuMDM2OCIgZmlsdGVyVW5pdHM9InVzZXJTcGFjZU9uVXNlIiBjb2xvci1pbnRlcnBvbGF0aW9uLWZpbHRlcnM9InNSR0IiPgo8ZmVGbG9vZCBmbG9vZC1vcGFjaXR5PSIwIiByZXN1bHQ9IkJhY2tncm91bmRJbWFnZUZpeCIvPgo8ZmVHYXVzc2lhbkJsdXIgaW49IkJhY2tncm91bmRJbWFnZUZpeCIgc3RkRGV2aWF0aW9uPSI0LjgxMzg4Ii8+CjxmZUNvbXBvc2l0ZSBpbjI9IlNvdXJjZUFscGhhIiBvcGVyYXRvcj0iaW4iIHJlc3VsdD0iZWZmZWN0MV9iYWNrZ3JvdW5kQmx1cl81NjU0XzI5OTc3Ii8+CjxmZUJsZW5kIG1vZGU9Im5vcm1hbCIgaW49IlNvdXJjZUdyYXBoaWMiIGluMj0iZWZmZWN0MV9iYWNrZ3JvdW5kQmx1cl81NjU0XzI5OTc3IiByZXN1bHQ9InNoYXBlIi8+CjxmZUNvbG9yTWF0cml4IGluPSJTb3VyY2VBbHBoYSIgdHlwZT0ibWF0cml4IiB2YWx1ZXM9IjAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDEyNyAwIiByZXN1bHQ9ImhhcmRBbHBoYSIvPgo8ZmVPZmZzZXQgZHg9IjAuNTgxNjY1IiBkeT0iMC41ODE2NjUiLz4KPGZlR2F1c3NpYW5CbHVyIHN0ZERldmlhdGlvbj0iMC41ODE2NjUiLz4KPGZlQ29tcG9zaXRlIGluMj0iaGFyZEFscGhhIiBvcGVyYXRvcj0iYXJpdGhtZXRpYyIgazI9Ii0xIiBrMz0iMSIvPgo8ZmVDb2xvck1hdHJpeCB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAxIDAgMCAwIDAgMSAwIDAgMCAwIDEgMCAwIDAgMC44IDAiLz4KPGZlQmxlbmQgbW9kZT0ibm9ybWFsIiBpbjI9InNoYXBlIiByZXN1bHQ9ImVmZmVjdDJfaW5uZXJTaGFkb3dfNTY1NF8yOTk3NyIvPgo8L2ZpbHRlcj4KPGZpbHRlciBpZD0iZmlsdGVyMjJfYmlfNTY1NF8yOTk3NyIgeD0iMTg0LjUwOCIgeT0iNjguODg4NCIgd2lkdGg9Ijk5Ljc2NDYiIGhlaWdodD0iODQuOTU1NSIgZmlsdGVyVW5pdHM9InVzZXJTcGFjZU9uVXNlIiBjb2xvci1pbnRlcnBvbGF0aW9uLWZpbHRlcnM9InNSR0IiPgo8ZmVGbG9vZCBmbG9vZC1vcGFjaXR5PSIwIiByZXN1bHQ9IkJhY2tncm91bmRJbWFnZUZpeCIvPgo8ZmVHYXVzc2lhbkJsdXIgaW49IkJhY2tncm91bmRJbWFnZUZpeCIgc3RkRGV2aWF0aW9uPSI3LjU2MTY0Ii8+CjxmZUNvbXBvc2l0ZSBpbjI9IlNvdXJjZUFscGhhIiBvcGVyYXRvcj0iaW4iIHJlc3VsdD0iZWZmZWN0MV9iYWNrZ3JvdW5kQmx1cl81NjU0XzI5OTc3Ii8+CjxmZUJsZW5kIG1vZGU9Im5vcm1hbCIgaW49IlNvdXJjZUdyYXBoaWMiIGluMj0iZWZmZWN0MV9iYWNrZ3JvdW5kQmx1cl81NjU0XzI5OTc3IiByZXN1bHQ9InNoYXBlIi8+CjxmZUNvbG9yTWF0cml4IGluPSJTb3VyY2VBbHBoYSIgdHlwZT0ibWF0cml4IiB2YWx1ZXM9IjAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDEyNyAwIiByZXN1bHQ9ImhhcmRBbHBoYSIvPgo8ZmVPZmZzZXQgZHg9IjAuNTgxNjY1IiBkeT0iMC41ODE2NjUiLz4KPGZlR2F1c3NpYW5CbHVyIHN0ZERldmlhdGlvbj0iMC41ODE2NjUiLz4KPGZlQ29tcG9zaXRlIGluMj0iaGFyZEFscGhhIiBvcGVyYXRvcj0iYXJpdGhtZXRpYyIgazI9Ii0xIiBrMz0iMSIvPgo8ZmVDb2xvck1hdHJpeCB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAxIDAgMCAwIDAgMSAwIDAgMCAwIDEgMCAwIDAgMC44IDAiLz4KPGZlQmxlbmQgbW9kZT0ibm9ybWFsIiBpbjI9InNoYXBlIiByZXN1bHQ9ImVmZmVjdDJfaW5uZXJTaGFkb3dfNTY1NF8yOTk3NyIvPgo8L2ZpbHRlcj4KPGZpbHRlciBpZD0iZmlsdGVyMjNfYmlpXzU2NTRfMjk5NzciIHg9IjE5NC43ODgiIHk9Ijc4LjMxMjMiIHdpZHRoPSI3OS4yMDIxIiBoZWlnaHQ9IjY2LjEwNTkiIGZpbHRlclVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgY29sb3ItaW50ZXJwb2xhdGlvbi1maWx0ZXJzPSJzUkdCIj4KPGZlRmxvb2QgZmxvb2Qtb3BhY2l0eT0iMCIgcmVzdWx0PSJCYWNrZ3JvdW5kSW1hZ2VGaXgiLz4KPGZlR2F1c3NpYW5CbHVyIGluPSJCYWNrZ3JvdW5kSW1hZ2VGaXgiIHN0ZERldmlhdGlvbj0iNy41NjE2NCIvPgo8ZmVDb21wb3NpdGUgaW4yPSJTb3VyY2VBbHBoYSIgb3BlcmF0b3I9ImluIiByZXN1bHQ9ImVmZmVjdDFfYmFja2dyb3VuZEJsdXJfNTY1NF8yOTk3NyIvPgo8ZmVCbGVuZCBtb2RlPSJub3JtYWwiIGluPSJTb3VyY2VHcmFwaGljIiBpbjI9ImVmZmVjdDFfYmFja2dyb3VuZEJsdXJfNTY1NF8yOTk3NyIgcmVzdWx0PSJzaGFwZSIvPgo8ZmVDb2xvck1hdHJpeCBpbj0iU291cmNlQWxwaGEiIHR5cGU9Im1hdHJpeCIgdmFsdWVzPSIwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAxMjcgMCIgcmVzdWx0PSJoYXJkQWxwaGEiLz4KPGZlT2Zmc2V0IGR4PSIxLjE2MzMzIiBkeT0iMi4zMjY2NiIvPgo8ZmVDb21wb3NpdGUgaW4yPSJoYXJkQWxwaGEiIG9wZXJhdG9yPSJhcml0aG1ldGljIiBrMj0iLTEiIGszPSIxIi8+CjxmZUNvbG9yTWF0cml4IHR5cGU9Im1hdHJpeCIgdmFsdWVzPSIwIDAgMCAwIDAuOTM4NDU2IDAgMCAwIDAgMC45Mjg5ODggMCAwIDAgMCAxIDAgMCAwIDEgMCIvPgo8ZmVCbGVuZCBtb2RlPSJub3JtYWwiIGluMj0ic2hhcGUiIHJlc3VsdD0iZWZmZWN0Ml9pbm5lclNoYWRvd181NjU0XzI5OTc3Ii8+CjxmZUNvbG9yTWF0cml4IGluPSJTb3VyY2VBbHBoYSIgdHlwZT0ibWF0cml4IiB2YWx1ZXM9IjAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDEyNyAwIiByZXN1bHQ9ImhhcmRBbHBoYSIvPgo8ZmVPZmZzZXQgZHg9IjAuNTgxNjY1IiBkeT0iMS43NDQ5OSIvPgo8ZmVDb21wb3NpdGUgaW4yPSJoYXJkQWxwaGEiIG9wZXJhdG9yPSJhcml0aG1ldGljIiBrMj0iLTEiIGszPSIxIi8+CjxmZUNvbG9yTWF0cml4IHR5cGU9Im1hdHJpeCIgdmFsdWVzPSIwIDAgMCAwIDAuODcwMDE4IDAgMCAwIDAgMC44NDAxNCAwIDAgMCAwIDAuOTc3OTEzIDAgMCAwIDEgMCIvPgo8ZmVCbGVuZCBtb2RlPSJub3JtYWwiIGluMj0iZWZmZWN0Ml9pbm5lclNoYWRvd181NjU0XzI5OTc3IiByZXN1bHQ9ImVmZmVjdDNfaW5uZXJTaGFkb3dfNTY1NF8yOTk3NyIvPgo8L2ZpbHRlcj4KPGZpbHRlciBpZD0iZmlsdGVyMjRfZl81NjU0XzI5OTc3IiB4PSIyMDUuMzIzIiB5PSIxMjEuMDQ2IiB3aWR0aD0iNjEuNDI5NiIgaGVpZ2h0PSIxOS44NzI4IiBmaWx0ZXJVbml0cz0idXNlclNwYWNlT25Vc2UiIGNvbG9yLWludGVycG9sYXRpb24tZmlsdGVycz0ic1JHQiI+CjxmZUZsb29kIGZsb29kLW9wYWNpdHk9IjAiIHJlc3VsdD0iQmFja2dyb3VuZEltYWdlRml4Ii8+CjxmZUJsZW5kIG1vZGU9Im5vcm1hbCIgaW49IlNvdXJjZUdyYXBoaWMiIGluMj0iQmFja2dyb3VuZEltYWdlRml4IiByZXN1bHQ9InNoYXBlIi8+CjxmZUdhdXNzaWFuQmx1ciBzdGREZXZpYXRpb249IjAuODcyNDk3IiByZXN1bHQ9ImVmZmVjdDFfZm9yZWdyb3VuZEJsdXJfNTY1NF8yOTk3NyIvPgo8L2ZpbHRlcj4KPGZpbHRlciBpZD0iZmlsdGVyMjVfZl81NjU0XzI5OTc3IiB4PSIxNDkuNDU2IiB5PSIzMC40MDEzIiB3aWR0aD0iMTc3Ljc2IiBoZWlnaHQ9IjE3OS4wODQiIGZpbHRlclVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgY29sb3ItaW50ZXJwb2xhdGlvbi1maWx0ZXJzPSJzUkdCIj4KPGZlRmxvb2QgZmxvb2Qtb3BhY2l0eT0iMCIgcmVzdWx0PSJCYWNrZ3JvdW5kSW1hZ2VGaXgiLz4KPGZlQmxlbmQgbW9kZT0ibm9ybWFsIiBpbj0iU291cmNlR3JhcGhpYyIgaW4yPSJCYWNrZ3JvdW5kSW1hZ2VGaXgiIHJlc3VsdD0ic2hhcGUiLz4KPGZlR2F1c3NpYW5CbHVyIHN0ZERldmlhdGlvbj0iMTAuNzQxNyIgcmVzdWx0PSJlZmZlY3QxX2ZvcmVncm91bmRCbHVyXzU2NTRfMjk5NzciLz4KPC9maWx0ZXI+CjxmaWx0ZXIgaWQ9ImZpbHRlcjI2X2JpXzU2NTRfMjk5NzciIHg9IjIzLjk2ODEiIHk9IjcwLjkyMTEiIHdpZHRoPSI4Ny4xNTA3IiBoZWlnaHQ9IjcyLjkyMzUiIGZpbHRlclVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgY29sb3ItaW50ZXJwb2xhdGlvbi1maWx0ZXJzPSJzUkdCIj4KPGZlRmxvb2QgZmxvb2Qtb3BhY2l0eT0iMCIgcmVzdWx0PSJCYWNrZ3JvdW5kSW1hZ2VGaXgiLz4KPGZlR2F1c3NpYW5CbHVyIGluPSJCYWNrZ3JvdW5kSW1hZ2VGaXgiIHN0ZERldmlhdGlvbj0iNC44MTM4OCIvPgo8ZmVDb21wb3NpdGUgaW4yPSJTb3VyY2VBbHBoYSIgb3BlcmF0b3I9ImluIiByZXN1bHQ9ImVmZmVjdDFfYmFja2dyb3VuZEJsdXJfNTY1NF8yOTk3NyIvPgo8ZmVCbGVuZCBtb2RlPSJub3JtYWwiIGluPSJTb3VyY2VHcmFwaGljIiBpbjI9ImVmZmVjdDFfYmFja2dyb3VuZEJsdXJfNTY1NF8yOTk3NyIgcmVzdWx0PSJzaGFwZSIvPgo8ZmVDb2xvck1hdHJpeCBpbj0iU291cmNlQWxwaGEiIHR5cGU9Im1hdHJpeCIgdmFsdWVzPSIwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAxMjcgMCIgcmVzdWx0PSJoYXJkQWxwaGEiLz4KPGZlT2Zmc2V0IGR4PSIwLjU4MTY2NSIgZHk9IjAuNTgxNjY1Ii8+CjxmZUdhdXNzaWFuQmx1ciBzdGREZXZpYXRpb249IjAuNTgxNjY1Ii8+CjxmZUNvbXBvc2l0ZSBpbjI9ImhhcmRBbHBoYSIgb3BlcmF0b3I9ImFyaXRobWV0aWMiIGsyPSItMSIgazM9IjEiLz4KPGZlQ29sb3JNYXRyaXggdHlwZT0ibWF0cml4IiB2YWx1ZXM9IjAgMCAwIDAgMSAwIDAgMCAwIDEgMCAwIDAgMCAxIDAgMCAwIDAuOCAwIi8+CjxmZUJsZW5kIG1vZGU9Im5vcm1hbCIgaW4yPSJzaGFwZSIgcmVzdWx0PSJlZmZlY3QyX2lubmVyU2hhZG93XzU2NTRfMjk5NzciLz4KPC9maWx0ZXI+CjxmaWx0ZXIgaWQ9ImZpbHRlcjI3X2JpaV81NjU0XzI5OTc3IiB4PSIzMS44MTM5IiB5PSI3Ni41NjQyIiB3aWR0aD0iNzEuMzYzMyIgaGVpZ2h0PSI2Mi44MzQ1IiBmaWx0ZXJVbml0cz0idXNlclNwYWNlT25Vc2UiIGNvbG9yLWludGVycG9sYXRpb24tZmlsdGVycz0ic1JHQiI+CjxmZUZsb29kIGZsb29kLW9wYWNpdHk9IjAiIHJlc3VsdD0iQmFja2dyb3VuZEltYWdlRml4Ii8+CjxmZUdhdXNzaWFuQmx1ciBpbj0iQmFja2dyb3VuZEltYWdlRml4IiBzdGREZXZpYXRpb249IjcuNTYxNjQiLz4KPGZlQ29tcG9zaXRlIGluMj0iU291cmNlQWxwaGEiIG9wZXJhdG9yPSJpbiIgcmVzdWx0PSJlZmZlY3QxX2JhY2tncm91bmRCbHVyXzU2NTRfMjk5NzciLz4KPGZlQmxlbmQgbW9kZT0ibm9ybWFsIiBpbj0iU291cmNlR3JhcGhpYyIgaW4yPSJlZmZlY3QxX2JhY2tncm91bmRCbHVyXzU2NTRfMjk5NzciIHJlc3VsdD0ic2hhcGUiLz4KPGZlQ29sb3JNYXRyaXggaW49IlNvdXJjZUFscGhhIiB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMTI3IDAiIHJlc3VsdD0iaGFyZEFscGhhIi8+CjxmZU9mZnNldCBkeD0iMS4xNjMzMyIgZHk9IjIuMzI2NjYiLz4KPGZlQ29tcG9zaXRlIGluMj0iaGFyZEFscGhhIiBvcGVyYXRvcj0iYXJpdGhtZXRpYyIgazI9Ii0xIiBrMz0iMSIvPgo8ZmVDb2xvck1hdHJpeCB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwLjkzODQ1NiAwIDAgMCAwIDAuOTI4OTg4IDAgMCAwIDAgMSAwIDAgMCAxIDAiLz4KPGZlQmxlbmQgbW9kZT0ibm9ybWFsIiBpbjI9InNoYXBlIiByZXN1bHQ9ImVmZmVjdDJfaW5uZXJTaGFkb3dfNTY1NF8yOTk3NyIvPgo8ZmVDb2xvck1hdHJpeCBpbj0iU291cmNlQWxwaGEiIHR5cGU9Im1hdHJpeCIgdmFsdWVzPSIwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAxMjcgMCIgcmVzdWx0PSJoYXJkQWxwaGEiLz4KPGZlT2Zmc2V0IGR4PSIwLjU4MTY2NSIgZHk9IjEuNzQ0OTkiLz4KPGZlQ29tcG9zaXRlIGluMj0iaGFyZEFscGhhIiBvcGVyYXRvcj0iYXJpdGhtZXRpYyIgazI9Ii0xIiBrMz0iMSIvPgo8ZmVDb2xvck1hdHJpeCB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwLjg3MDAxOCAwIDAgMCAwIDAuODQwMTQgMCAwIDAgMCAwLjk3NzkxMyAwIDAgMCAxIDAiLz4KPGZlQmxlbmQgbW9kZT0ibm9ybWFsIiBpbjI9ImVmZmVjdDJfaW5uZXJTaGFkb3dfNTY1NF8yOTk3NyIgcmVzdWx0PSJlZmZlY3QzX2lubmVyU2hhZG93XzU2NTRfMjk5NzciLz4KPC9maWx0ZXI+CjxmaWx0ZXIgaWQ9ImZpbHRlcjI4X2JpXzU2NTRfMjk5NzciIHg9IjE1LjU4ODciIHk9IjcyLjUzNjMiIHdpZHRoPSI5NC43OTk1IiBoZWlnaHQ9IjgyLjMzOTUiIGZpbHRlclVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgY29sb3ItaW50ZXJwb2xhdGlvbi1maWx0ZXJzPSJzUkdCIj4KPGZlRmxvb2QgZmxvb2Qtb3BhY2l0eT0iMCIgcmVzdWx0PSJCYWNrZ3JvdW5kSW1hZ2VGaXgiLz4KPGZlR2F1c3NpYW5CbHVyIGluPSJCYWNrZ3JvdW5kSW1hZ2VGaXgiIHN0ZERldmlhdGlvbj0iNC44MTM4OCIvPgo8ZmVDb21wb3NpdGUgaW4yPSJTb3VyY2VBbHBoYSIgb3BlcmF0b3I9ImluIiByZXN1bHQ9ImVmZmVjdDFfYmFja2dyb3VuZEJsdXJfNTY1NF8yOTk3NyIvPgo8ZmVCbGVuZCBtb2RlPSJub3JtYWwiIGluPSJTb3VyY2VHcmFwaGljIiBpbjI9ImVmZmVjdDFfYmFja2dyb3VuZEJsdXJfNTY1NF8yOTk3NyIgcmVzdWx0PSJzaGFwZSIvPgo8ZmVDb2xvck1hdHJpeCBpbj0iU291cmNlQWxwaGEiIHR5cGU9Im1hdHJpeCIgdmFsdWVzPSIwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAxMjcgMCIgcmVzdWx0PSJoYXJkQWxwaGEiLz4KPGZlT2Zmc2V0IGR4PSIwLjU4MTY2NSIgZHk9IjAuNTgxNjY1Ii8+CjxmZUdhdXNzaWFuQmx1ciBzdGREZXZpYXRpb249IjAuNTgxNjY1Ii8+CjxmZUNvbXBvc2l0ZSBpbjI9ImhhcmRBbHBoYSIgb3BlcmF0b3I9ImFyaXRobWV0aWMiIGsyPSItMSIgazM9IjEiLz4KPGZlQ29sb3JNYXRyaXggdHlwZT0ibWF0cml4IiB2YWx1ZXM9IjAgMCAwIDAgMSAwIDAgMCAwIDEgMCAwIDAgMCAxIDAgMCAwIDAuOCAwIi8+CjxmZUJsZW5kIG1vZGU9Im5vcm1hbCIgaW4yPSJzaGFwZSIgcmVzdWx0PSJlZmZlY3QyX2lubmVyU2hhZG93XzU2NTRfMjk5NzciLz4KPC9maWx0ZXI+CjxmaWx0ZXIgaWQ9ImZpbHRlcjI5X2ZfNTY1NF8yOTk3NyIgeD0iLTMzLjMyNyIgeT0iMTYuODg1NyIgd2lkdGg9IjE2NS44MTgiIGhlaWdodD0iMTgwLjE3IiBmaWx0ZXJVbml0cz0idXNlclNwYWNlT25Vc2UiIGNvbG9yLWludGVycG9sYXRpb24tZmlsdGVycz0ic1JHQiI+CjxmZUZsb29kIGZsb29kLW9wYWNpdHk9IjAiIHJlc3VsdD0iQmFja2dyb3VuZEltYWdlRml4Ii8+CjxmZUJsZW5kIG1vZGU9Im5vcm1hbCIgaW49IlNvdXJjZUdyYXBoaWMiIGluMj0iQmFja2dyb3VuZEltYWdlRml4IiByZXN1bHQ9InNoYXBlIi8+CjxmZUdhdXNzaWFuQmx1ciBzdGREZXZpYXRpb249IjEwLjc0MTciIHJlc3VsdD0iZWZmZWN0MV9mb3JlZ3JvdW5kQmx1cl81NjU0XzI5OTc3Ii8+CjwvZmlsdGVyPgo8bGluZWFyR3JhZGllbnQgaWQ9InBhaW50MF9saW5lYXJfNTY1NF8yOTk3NyIgeDE9IjE1NC40MTUiIHkxPSIyMDAuMDA4IiB4Mj0iMjcwLjY3OCIgeTI9IjMzOC4wNzEiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KPHN0b3Agc3RvcC1jb2xvcj0iIzdFNUJGNyIvPgo8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiM1MTJDQ0UiLz4KPC9saW5lYXJHcmFkaWVudD4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDFfbGluZWFyXzU2NTRfMjk5NzciIHgxPSIzMjcuMTU5IiB5MT0iMTYxLjUzNiIgeDI9IjM4OC44MDIiIHkyPSIxMzkuNDg2IiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+CjxzdG9wIHN0b3AtY29sb3I9IiM0OTE0RkYiLz4KPHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjMkEwMEJDIi8+CjwvbGluZWFyR3JhZGllbnQ+CjxsaW5lYXJHcmFkaWVudCBpZD0icGFpbnQyX2xpbmVhcl81NjU0XzI5OTc3IiB4MT0iMjE5LjE1NyIgeTE9IjgwLjg1NDkiIHgyPSIxODkuODU2IiB5Mj0iNzAuMzczOSIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgo8c3RvcCBzdG9wLWNvbG9yPSIjNDkxNEZGIi8+CjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzJBMDBCQyIvPgo8L2xpbmVhckdyYWRpZW50Pgo8bGluZWFyR3JhZGllbnQgaWQ9InBhaW50M19saW5lYXJfNTY1NF8yOTk3NyIgeDE9Ijk0LjQ1ODYiIHkxPSIyMjguNTcyIiB4Mj0iNzEuNjY0NyIgeTI9IjI2NC43NDQiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KPHN0b3Agc3RvcC1jb2xvcj0id2hpdGUiLz4KPHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSJ3aGl0ZSIvPgo8L2xpbmVhckdyYWRpZW50Pgo8bGluZWFyR3JhZGllbnQgaWQ9InBhaW50NF9saW5lYXJfNTY1NF8yOTk3NyIgeDE9Ijc3LjEzMzgiIHkxPSIyMjMuODkiIHgyPSI5Ny43MTYxIiB5Mj0iMTY4LjM0OSIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgo8c3RvcCBzdG9wLWNvbG9yPSIjRkY5ODk4Ii8+CjxzdG9wIG9mZnNldD0iMC42MDI0MDUiIHN0b3AtY29sb3I9IiMyREQ5RkYiLz4KPHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjOTBGRjIxIiBzdG9wLW9wYWNpdHk9IjAiLz4KPC9saW5lYXJHcmFkaWVudD4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDVfbGluZWFyXzU2NTRfMjk5NzciIHgxPSIxMTguMDgyIiB5MT0iMjIwLjIyOCIgeDI9IjEyNi4wMzkiIHkyPSIxNjguNzU3IiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+CjxzdG9wIHN0b3AtY29sb3I9IiM1NDBBMEEiLz4KPHN0b3Agb2Zmc2V0PSIwLjYzODc1OSIgc3RvcC1jb2xvcj0iIzREREZGRiIvPgo8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiM5MEZGMjEiIHN0b3Atb3BhY2l0eT0iMCIvPgo8L2xpbmVhckdyYWRpZW50Pgo8bGluZWFyR3JhZGllbnQgaWQ9InBhaW50Nl9saW5lYXJfNTY1NF8yOTk3NyIgeDE9IjEyMi4zMDMiIHkxPSIzMTUuNjIyIiB4Mj0iMTg2Ljk2IiB5Mj0iMTU1Ljk4OSIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgo8c3RvcCBzdG9wLWNvbG9yPSIjRkY5ODk4Ii8+CjxzdG9wIG9mZnNldD0iMC42MDI0MDUiIHN0b3AtY29sb3I9IiMyREQ5RkYiLz4KPHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjOTBGRjIxIiBzdG9wLW9wYWNpdHk9IjAiLz4KPC9saW5lYXJHcmFkaWVudD4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDdfbGluZWFyXzU2NTRfMjk5NzciIHgxPSIxNzEuNzkxIiB5MT0iMzA3Ljc0MiIgeDI9IjMzOC4yODgiIHkyPSIzMDcuNzQyIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+CjxzdG9wIHN0b3AtY29sb3I9IndoaXRlIiBzdG9wLW9wYWNpdHk9IjAiLz4KPHN0b3Agb2Zmc2V0PSIwLjY1MTgzOCIgc3RvcC1jb2xvcj0id2hpdGUiLz4KPHN0b3Agb2Zmc2V0PSIwLjk1MjMzMSIgc3RvcC1jb2xvcj0id2hpdGUiIHN0b3Atb3BhY2l0eT0iMCIvPgo8L2xpbmVhckdyYWRpZW50Pgo8bGluZWFyR3JhZGllbnQgaWQ9InBhaW50OF9saW5lYXJfNTY1NF8yOTk3NyIgeDE9IjI3MC45OTQiIHkxPSIyMDQuNDMyIiB4Mj0iMzMyLjI4NSIgeTI9IjIwNC40MzIiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KPHN0b3Agc3RvcC1jb2xvcj0id2hpdGUiLz4KPHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSJ3aGl0ZSIgc3RvcC1vcGFjaXR5PSIwIi8+CjwvbGluZWFyR3JhZGllbnQ+CjxsaW5lYXJHcmFkaWVudCBpZD0icGFpbnQ5X2xpbmVhcl81NjU0XzI5OTc3IiB4MT0iOTcuMjMwMyIgeTE9IjI1NC4wMzQiIHgyPSIyMzAuODE0IiB5Mj0iMjU0LjAzNCIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgo8c3RvcCBzdG9wLWNvbG9yPSJ3aGl0ZSIgc3RvcC1vcGFjaXR5PSIwIi8+CjxzdG9wIG9mZnNldD0iMC4zNDI3OTYiIHN0b3AtY29sb3I9IndoaXRlIi8+CjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0id2hpdGUiIHN0b3Atb3BhY2l0eT0iMCIvPgo8L2xpbmVhckdyYWRpZW50Pgo8bGluZWFyR3JhZGllbnQgaWQ9InBhaW50MTBfbGluZWFyXzU2NTRfMjk5NzciIHgxPSIyNjQuOTkxIiB5MT0iMjI5LjM5MSIgeDI9IjI1Mi42NyIgeTI9IjI1MS44MjIiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KPHN0b3Agc3RvcC1jb2xvcj0id2hpdGUiLz4KPHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSJ3aGl0ZSIgc3RvcC1vcGFjaXR5PSIwLjI3Ii8+CjwvbGluZWFyR3JhZGllbnQ+CjxsaW5lYXJHcmFkaWVudCBpZD0icGFpbnQxMV9saW5lYXJfNTY1NF8yOTk3NyIgeDE9IjI0MC41NyIgeTE9Ijk2LjI5NzYiIHgyPSIyMjguMjA4IiB5Mj0iMTI2LjQzNCIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgo8c3RvcCBzdG9wLWNvbG9yPSJ3aGl0ZSIvPgo8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IndoaXRlIi8+CjwvbGluZWFyR3JhZGllbnQ+CjxsaW5lYXJHcmFkaWVudCBpZD0icGFpbnQxMl9saW5lYXJfNTY1NF8yOTk3NyIgeDE9IjMxNy40MDgiIHkxPSIxODEuOTc2IiB4Mj0iMzMxLjAxNCIgeTI9IjExMi4yNDQiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KPHN0b3Agb2Zmc2V0PSIwLjE2MDMwNCIgc3RvcC1jb2xvcj0iI0ZGOTg5OCIvPgo8c3RvcCBvZmZzZXQ9IjAuODQzNjE4IiBzdG9wLWNvbG9yPSIjMkREOUZGIiBzdG9wLW9wYWNpdHk9IjAuNzkiLz4KPHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjOTBGRjIxIiBzdG9wLW9wYWNpdHk9IjAiLz4KPC9saW5lYXJHcmFkaWVudD4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDEzX2xpbmVhcl81NjU0XzI5OTc3IiB4MT0iNjMuMTM4IiB5MT0iMTEzLjcxNyIgeDI9IjcxLjg1MDMiIHkyPSIxMDIuMjM5IiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+CjxzdG9wIHN0b3AtY29sb3I9IndoaXRlIi8+CjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0id2hpdGUiLz4KPC9saW5lYXJHcmFkaWVudD4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDE0X2xpbmVhcl81NjU0XzI5OTc3IiB4MT0iMzcuOTkxMyIgeTE9IjczLjY0MzUiIHgyPSI0Ny41Nzg3IiB5Mj0iMjYuNTQwNyIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgo8c3RvcCBzdG9wLWNvbG9yPSIjRkY5ODk4Ii8+CjxzdG9wIG9mZnNldD0iMC42MDI0MDUiIHN0b3AtY29sb3I9IiMyREQ5RkYiLz4KPHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjOTBGRjIxIiBzdG9wLW9wYWNpdHk9IjAiLz4KPC9saW5lYXJHcmFkaWVudD4KPGNsaXBQYXRoIGlkPSJjbGlwMF81NjU0XzI5OTc3Ij4KPHJlY3Qgd2lkdGg9IjQ1NCIgaGVpZ2h0PSIzNzgiIGZpbGw9IndoaXRlIi8+CjwvY2xpcFBhdGg+CjxjbGlwUGF0aCBpZD0iY2xpcDFfNTY1NF8yOTk3NyI+CjxyZWN0IHdpZHRoPSI4My40MTI5IiBoZWlnaHQ9IjM2Ljg0MjkiIGZpbGw9IndoaXRlIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSg0MS4yNzQ1IDczKSByb3RhdGUoMzcuMTk4NykiLz4KPC9jbGlwUGF0aD4KPC9kZWZzPgo8L3N2Zz4K",onboarding$1=Object.freeze(Object.defineProperty({__proto__:null,default:OnboardingImage},Symbol.toStringTag,{value:"Module"}));/*!
  * shared v9.9.0
  * (c) 2024 kazuya kawaguchi
  * Released under the MIT License.
  */const inBrowser=typeof window<"u",makeSymbol=(u,f=!1)=>f?Symbol.for(u):Symbol(u),generateFormatCacheKey=(u,f,d)=>friendlyJSONstringify({l:u,k:f,s:d}),friendlyJSONstringify=u=>JSON.stringify(u).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),isNumber=u=>typeof u=="number"&&isFinite(u),isDate=u=>toTypeString(u)==="[object Date]",isRegExp=u=>toTypeString(u)==="[object RegExp]",isEmptyObject=u=>isPlainObject(u)&&Object.keys(u).length===0,assign$1=Object.assign;let _globalThis;const getGlobalThis=()=>_globalThis||(_globalThis=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof _global$2<"u"?_global$2:{});function escapeHtml(u){return u.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const hasOwnProperty$3=Object.prototype.hasOwnProperty;function hasOwn$1(u,f){return hasOwnProperty$3.call(u,f)}const isArray$2=Array.isArray,isFunction$1=u=>typeof u=="function",isString$2=u=>typeof u=="string",isBoolean=u=>typeof u=="boolean",isObject$4=u=>u!==null&&typeof u=="object",isPromise=u=>isObject$4(u)&&isFunction$1(u.then)&&isFunction$1(u.catch),objectToString=Object.prototype.toString,toTypeString=u=>objectToString.call(u),isPlainObject=u=>{if(!isObject$4(u))return!1;const f=Object.getPrototypeOf(u);return f===null||f.constructor===Object},toDisplayString=u=>u==null?"":isArray$2(u)||isPlainObject(u)&&u.toString===objectToString?JSON.stringify(u,null,2):String(u);function join$1(u,f=""){return u.reduce((d,_,x)=>x===0?d+_:d+f+_,"")}function incrementer(u){let f=u;return()=>++f}function warn(u,f){typeof console<"u"&&(console.warn("[intlify] "+u),f&&console.warn(f.stack))}const isNotObjectOrIsArray=u=>!isObject$4(u)||isArray$2(u);function deepCopy(u,f){if(isNotObjectOrIsArray(u)||isNotObjectOrIsArray(f))throw new Error("Invalid value");const d=[{src:u,des:f}];for(;d.length;){const{src:_,des:x}=d.pop();Object.keys(_).forEach(I=>{isNotObjectOrIsArray(_[I])||isNotObjectOrIsArray(x[I])?x[I]=_[I]:d.push({src:_[I],des:x[I]})})}}function createPosition(u,f,d){return{line:u,column:f,offset:d}}function createLocation(u,f,d){const _={start:u,end:f};return d!=null&&(_.source=d),_}const RE_ARGS=/\{([0-9a-zA-Z]+)\}/g;function format$1(u,...f){return f.length===1&&isObject$3(f[0])&&(f=f[0]),(!f||!f.hasOwnProperty)&&(f={}),u.replace(RE_ARGS,(d,_)=>f.hasOwnProperty(_)?f[_]:"")}const assign=Object.assign,isString$1=u=>typeof u=="string",isObject$3=u=>u!==null&&typeof u=="object";function join(u,f=""){return u.reduce((d,_,x)=>x===0?d+_:d+f+_,"")}const CompileErrorCodes={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},errorMessages={[CompileErrorCodes.EXPECTED_TOKEN]:"Expected token: '{0}'",[CompileErrorCodes.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[CompileErrorCodes.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[CompileErrorCodes.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[CompileErrorCodes.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[CompileErrorCodes.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[CompileErrorCodes.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[CompileErrorCodes.EMPTY_PLACEHOLDER]:"Empty placeholder",[CompileErrorCodes.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[CompileErrorCodes.INVALID_LINKED_FORMAT]:"Invalid linked format",[CompileErrorCodes.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[CompileErrorCodes.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[CompileErrorCodes.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function createCompileError(u,f,d={}){const{domain:_,messages:x,args:I}=d,E=format$1((x||errorMessages)[u]||"",...I||[]),M=new SyntaxError(String(E));return M.code=u,f&&(M.location=f),M.domain=_,M}function defaultOnError(u){throw u}const CHAR_SP=" ",CHAR_CR="\r",CHAR_LF=`
`,CHAR_LS="\u2028",CHAR_PS="\u2029";function createScanner(u){const f=u;let d=0,_=1,x=1,I=0;const E=ze=>f[ze]===CHAR_CR&&f[ze+1]===CHAR_LF,M=ze=>f[ze]===CHAR_LF,S=ze=>f[ze]===CHAR_PS,A=ze=>f[ze]===CHAR_LS,T=ze=>E(ze)||M(ze)||S(ze)||A(ze),D=()=>d,O=()=>_,j=()=>x,$=()=>I,W=ze=>E(ze)||S(ze)||A(ze)?CHAR_LF:f[ze],Q=()=>W(d),X=()=>W(d+I);function Y(){return I=0,T(d)&&(_++,x=0),E(d)&&d++,d++,x++,f[d]}function ie(){return E(d+I)&&I++,I++,f[d+I]}function oe(){d=0,_=1,x=1,I=0}function ge(ze=0){I=ze}function be(){const ze=d+I;for(;ze!==d;)Y();I=0}return{index:D,line:O,column:j,peekOffset:$,charAt:W,currentChar:Q,currentPeek:X,next:Y,peek:ie,reset:oe,resetPeek:ge,skipToPeek:be}}const EOF=void 0,DOT=".",LITERAL_DELIMITER="'",ERROR_DOMAIN$3="tokenizer";function createTokenizer(u,f={}){const d=f.location!==!1,_=createScanner(u),x=()=>_.index(),I=()=>createPosition(_.line(),_.column(),_.index()),E=I(),M=x(),S={currentType:14,offset:M,startLoc:E,endLoc:E,lastType:14,lastOffset:M,lastStartLoc:E,lastEndLoc:E,braceNest:0,inLinked:!1,text:""},A=()=>S,{onError:T}=f;function D($e,Le,ot,...Oe){const Ne=A();if(Le.column+=ot,Le.offset+=ot,T){const Fe=d?createLocation(Ne.startLoc,Le):null,Je=createCompileError($e,Fe,{domain:ERROR_DOMAIN$3,args:Oe});T(Je)}}function O($e,Le,ot){$e.endLoc=I(),$e.currentType=Le;const Oe={type:Le};return d&&(Oe.loc=createLocation($e.startLoc,$e.endLoc)),ot!=null&&(Oe.value=ot),Oe}const j=$e=>O($e,14);function $($e,Le){return $e.currentChar()===Le?($e.next(),Le):(D(CompileErrorCodes.EXPECTED_TOKEN,I(),0,Le),"")}function W($e){let Le="";for(;$e.currentPeek()===CHAR_SP||$e.currentPeek()===CHAR_LF;)Le+=$e.currentPeek(),$e.peek();return Le}function Q($e){const Le=W($e);return $e.skipToPeek(),Le}function X($e){if($e===EOF)return!1;const Le=$e.charCodeAt(0);return Le>=97&&Le<=122||Le>=65&&Le<=90||Le===95}function Y($e){if($e===EOF)return!1;const Le=$e.charCodeAt(0);return Le>=48&&Le<=57}function ie($e,Le){const{currentType:ot}=Le;if(ot!==2)return!1;W($e);const Oe=X($e.currentPeek());return $e.resetPeek(),Oe}function oe($e,Le){const{currentType:ot}=Le;if(ot!==2)return!1;W($e);const Oe=$e.currentPeek()==="-"?$e.peek():$e.currentPeek(),Ne=Y(Oe);return $e.resetPeek(),Ne}function ge($e,Le){const{currentType:ot}=Le;if(ot!==2)return!1;W($e);const Oe=$e.currentPeek()===LITERAL_DELIMITER;return $e.resetPeek(),Oe}function be($e,Le){const{currentType:ot}=Le;if(ot!==8)return!1;W($e);const Oe=$e.currentPeek()===".";return $e.resetPeek(),Oe}function ze($e,Le){const{currentType:ot}=Le;if(ot!==9)return!1;W($e);const Oe=X($e.currentPeek());return $e.resetPeek(),Oe}function de($e,Le){const{currentType:ot}=Le;if(!(ot===8||ot===12))return!1;W($e);const Oe=$e.currentPeek()===":";return $e.resetPeek(),Oe}function Ce($e,Le){const{currentType:ot}=Le;if(ot!==10)return!1;const Oe=()=>{const Fe=$e.currentPeek();return Fe==="{"?X($e.peek()):Fe==="@"||Fe==="%"||Fe==="|"||Fe===":"||Fe==="."||Fe===CHAR_SP||!Fe?!1:Fe===CHAR_LF?($e.peek(),Oe()):X(Fe)},Ne=Oe();return $e.resetPeek(),Ne}function ke($e){W($e);const Le=$e.currentPeek()==="|";return $e.resetPeek(),Le}function le($e){const Le=W($e),ot=$e.currentPeek()==="%"&&$e.peek()==="{";return $e.resetPeek(),{isModulo:ot,hasSpace:Le.length>0}}function re($e,Le=!0){const ot=(Ne=!1,Fe="",Je=!1)=>{const Dt=$e.currentPeek();return Dt==="{"?Fe==="%"?!1:Ne:Dt==="@"||!Dt?Fe==="%"?!0:Ne:Dt==="%"?($e.peek(),ot(Ne,"%",!0)):Dt==="|"?Fe==="%"||Je?!0:!(Fe===CHAR_SP||Fe===CHAR_LF):Dt===CHAR_SP?($e.peek(),ot(!0,CHAR_SP,Je)):Dt===CHAR_LF?($e.peek(),ot(!0,CHAR_LF,Je)):!0},Oe=ot();return Le&&$e.resetPeek(),Oe}function P($e,Le){const ot=$e.currentChar();return ot===EOF?EOF:Le(ot)?($e.next(),ot):null}function k($e){return P($e,ot=>{const Oe=ot.charCodeAt(0);return Oe>=97&&Oe<=122||Oe>=65&&Oe<=90||Oe>=48&&Oe<=57||Oe===95||Oe===36})}function B($e){return P($e,ot=>{const Oe=ot.charCodeAt(0);return Oe>=48&&Oe<=57})}function z($e){return P($e,ot=>{const Oe=ot.charCodeAt(0);return Oe>=48&&Oe<=57||Oe>=65&&Oe<=70||Oe>=97&&Oe<=102})}function ee($e){let Le="",ot="";for(;Le=B($e);)ot+=Le;return ot}function H($e){Q($e);const Le=$e.currentChar();return Le!=="%"&&D(CompileErrorCodes.EXPECTED_TOKEN,I(),0,Le),$e.next(),"%"}function q($e){let Le="";for(;;){const ot=$e.currentChar();if(ot==="{"||ot==="}"||ot==="@"||ot==="|"||!ot)break;if(ot==="%")if(re($e))Le+=ot,$e.next();else break;else if(ot===CHAR_SP||ot===CHAR_LF)if(re($e))Le+=ot,$e.next();else{if(ke($e))break;Le+=ot,$e.next()}else Le+=ot,$e.next()}return Le}function J($e){Q($e);let Le="",ot="";for(;Le=k($e);)ot+=Le;return $e.currentChar()===EOF&&D(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,I(),0),ot}function U($e){Q($e);let Le="";return $e.currentChar()==="-"?($e.next(),Le+=`-${ee($e)}`):Le+=ee($e),$e.currentChar()===EOF&&D(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,I(),0),Le}function Z($e){Q($e),$($e,"'");let Le="",ot="";const Oe=Fe=>Fe!==LITERAL_DELIMITER&&Fe!==CHAR_LF;for(;Le=P($e,Oe);)Le==="\\"?ot+=ve($e):ot+=Le;const Ne=$e.currentChar();return Ne===CHAR_LF||Ne===EOF?(D(CompileErrorCodes.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,I(),0),Ne===CHAR_LF&&($e.next(),$($e,"'")),ot):($($e,"'"),ot)}function ve($e){const Le=$e.currentChar();switch(Le){case"\\":case"'":return $e.next(),`\\${Le}`;case"u":return Ye($e,Le,4);case"U":return Ye($e,Le,6);default:return D(CompileErrorCodes.UNKNOWN_ESCAPE_SEQUENCE,I(),0,Le),""}}function Ye($e,Le,ot){$($e,Le);let Oe="";for(let Ne=0;Ne<ot;Ne++){const Fe=z($e);if(!Fe){D(CompileErrorCodes.INVALID_UNICODE_ESCAPE_SEQUENCE,I(),0,`\\${Le}${Oe}${$e.currentChar()}`);break}Oe+=Fe}return`\\${Le}${Oe}`}function rt($e){Q($e);let Le="",ot="";const Oe=Ne=>Ne!=="{"&&Ne!=="}"&&Ne!==CHAR_SP&&Ne!==CHAR_LF;for(;Le=P($e,Oe);)ot+=Le;return ot}function Ue($e){let Le="",ot="";for(;Le=k($e);)ot+=Le;return ot}function Qe($e){const Le=(ot=!1,Oe)=>{const Ne=$e.currentChar();return Ne==="{"||Ne==="%"||Ne==="@"||Ne==="|"||Ne==="("||Ne===")"||!Ne||Ne===CHAR_SP?Oe:Ne===CHAR_LF||Ne===DOT?(Oe+=Ne,$e.next(),Le(ot,Oe)):(Oe+=Ne,$e.next(),Le(!0,Oe))};return Le(!1,"")}function vt($e){Q($e);const Le=$($e,"|");return Q($e),Le}function ri($e,Le){let ot=null;switch($e.currentChar()){case"{":return Le.braceNest>=1&&D(CompileErrorCodes.NOT_ALLOW_NEST_PLACEHOLDER,I(),0),$e.next(),ot=O(Le,2,"{"),Q($e),Le.braceNest++,ot;case"}":return Le.braceNest>0&&Le.currentType===2&&D(CompileErrorCodes.EMPTY_PLACEHOLDER,I(),0),$e.next(),ot=O(Le,3,"}"),Le.braceNest--,Le.braceNest>0&&Q($e),Le.inLinked&&Le.braceNest===0&&(Le.inLinked=!1),ot;case"@":return Le.braceNest>0&&D(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,I(),0),ot=ci($e,Le)||j(Le),Le.braceNest=0,ot;default:let Ne=!0,Fe=!0,Je=!0;if(ke($e))return Le.braceNest>0&&D(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,I(),0),ot=O(Le,1,vt($e)),Le.braceNest=0,Le.inLinked=!1,ot;if(Le.braceNest>0&&(Le.currentType===5||Le.currentType===6||Le.currentType===7))return D(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,I(),0),Le.braceNest=0,tt($e,Le);if(Ne=ie($e,Le))return ot=O(Le,5,J($e)),Q($e),ot;if(Fe=oe($e,Le))return ot=O(Le,6,U($e)),Q($e),ot;if(Je=ge($e,Le))return ot=O(Le,7,Z($e)),Q($e),ot;if(!Ne&&!Fe&&!Je)return ot=O(Le,13,rt($e)),D(CompileErrorCodes.INVALID_TOKEN_IN_PLACEHOLDER,I(),0,ot.value),Q($e),ot;break}return ot}function ci($e,Le){const{currentType:ot}=Le;let Oe=null;const Ne=$e.currentChar();switch((ot===8||ot===9||ot===12||ot===10)&&(Ne===CHAR_LF||Ne===CHAR_SP)&&D(CompileErrorCodes.INVALID_LINKED_FORMAT,I(),0),Ne){case"@":return $e.next(),Oe=O(Le,8,"@"),Le.inLinked=!0,Oe;case".":return Q($e),$e.next(),O(Le,9,".");case":":return Q($e),$e.next(),O(Le,10,":");default:return ke($e)?(Oe=O(Le,1,vt($e)),Le.braceNest=0,Le.inLinked=!1,Oe):be($e,Le)||de($e,Le)?(Q($e),ci($e,Le)):ze($e,Le)?(Q($e),O(Le,12,Ue($e))):Ce($e,Le)?(Q($e),Ne==="{"?ri($e,Le)||Oe:O(Le,11,Qe($e))):(ot===8&&D(CompileErrorCodes.INVALID_LINKED_FORMAT,I(),0),Le.braceNest=0,Le.inLinked=!1,tt($e,Le))}}function tt($e,Le){let ot={type:14};if(Le.braceNest>0)return ri($e,Le)||j(Le);if(Le.inLinked)return ci($e,Le)||j(Le);switch($e.currentChar()){case"{":return ri($e,Le)||j(Le);case"}":return D(CompileErrorCodes.UNBALANCED_CLOSING_BRACE,I(),0),$e.next(),O(Le,3,"}");case"@":return ci($e,Le)||j(Le);default:if(ke($e))return ot=O(Le,1,vt($e)),Le.braceNest=0,Le.inLinked=!1,ot;const{isModulo:Ne,hasSpace:Fe}=le($e);if(Ne)return Fe?O(Le,0,q($e)):O(Le,4,H($e));if(re($e))return O(Le,0,q($e));break}return ot}function et(){const{currentType:$e,offset:Le,startLoc:ot,endLoc:Oe}=S;return S.lastType=$e,S.lastOffset=Le,S.lastStartLoc=ot,S.lastEndLoc=Oe,S.offset=x(),S.startLoc=I(),_.currentChar()===EOF?O(S,14):tt(_,S)}return{nextToken:et,currentOffset:x,currentPosition:I,context:A}}const ERROR_DOMAIN$2="parser",KNOWN_ESCAPES=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function fromEscapeSequence(u,f,d){switch(u){case"\\\\":return"\\";case"\\'":return"'";default:{const _=parseInt(f||d,16);return _<=55295||_>=57344?String.fromCodePoint(_):"�"}}}function createParser(u={}){const f=u.location!==!1,{onError:d}=u;function _(X,Y,ie,oe,...ge){const be=X.currentPosition();if(be.offset+=oe,be.column+=oe,d){const ze=f?createLocation(ie,be):null,de=createCompileError(Y,ze,{domain:ERROR_DOMAIN$2,args:ge});d(de)}}function x(X,Y,ie){const oe={type:X};return f&&(oe.start=Y,oe.end=Y,oe.loc={start:ie,end:ie}),oe}function I(X,Y,ie,oe){oe&&(X.type=oe),f&&(X.end=Y,X.loc&&(X.loc.end=ie))}function E(X,Y){const ie=X.context(),oe=x(3,ie.offset,ie.startLoc);return oe.value=Y,I(oe,X.currentOffset(),X.currentPosition()),oe}function M(X,Y){const ie=X.context(),{lastOffset:oe,lastStartLoc:ge}=ie,be=x(5,oe,ge);return be.index=parseInt(Y,10),X.nextToken(),I(be,X.currentOffset(),X.currentPosition()),be}function S(X,Y){const ie=X.context(),{lastOffset:oe,lastStartLoc:ge}=ie,be=x(4,oe,ge);return be.key=Y,X.nextToken(),I(be,X.currentOffset(),X.currentPosition()),be}function A(X,Y){const ie=X.context(),{lastOffset:oe,lastStartLoc:ge}=ie,be=x(9,oe,ge);return be.value=Y.replace(KNOWN_ESCAPES,fromEscapeSequence),X.nextToken(),I(be,X.currentOffset(),X.currentPosition()),be}function T(X){const Y=X.nextToken(),ie=X.context(),{lastOffset:oe,lastStartLoc:ge}=ie,be=x(8,oe,ge);return Y.type!==12?(_(X,CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_MODIFIER,ie.lastStartLoc,0),be.value="",I(be,oe,ge),{nextConsumeToken:Y,node:be}):(Y.value==null&&_(X,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,ie.lastStartLoc,0,getTokenCaption(Y)),be.value=Y.value||"",I(be,X.currentOffset(),X.currentPosition()),{node:be})}function D(X,Y){const ie=X.context(),oe=x(7,ie.offset,ie.startLoc);return oe.value=Y,I(oe,X.currentOffset(),X.currentPosition()),oe}function O(X){const Y=X.context(),ie=x(6,Y.offset,Y.startLoc);let oe=X.nextToken();if(oe.type===9){const ge=T(X);ie.modifier=ge.node,oe=ge.nextConsumeToken||X.nextToken()}switch(oe.type!==10&&_(X,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,Y.lastStartLoc,0,getTokenCaption(oe)),oe=X.nextToken(),oe.type===2&&(oe=X.nextToken()),oe.type){case 11:oe.value==null&&_(X,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,Y.lastStartLoc,0,getTokenCaption(oe)),ie.key=D(X,oe.value||"");break;case 5:oe.value==null&&_(X,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,Y.lastStartLoc,0,getTokenCaption(oe)),ie.key=S(X,oe.value||"");break;case 6:oe.value==null&&_(X,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,Y.lastStartLoc,0,getTokenCaption(oe)),ie.key=M(X,oe.value||"");break;case 7:oe.value==null&&_(X,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,Y.lastStartLoc,0,getTokenCaption(oe)),ie.key=A(X,oe.value||"");break;default:_(X,CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_KEY,Y.lastStartLoc,0);const ge=X.context(),be=x(7,ge.offset,ge.startLoc);return be.value="",I(be,ge.offset,ge.startLoc),ie.key=be,I(ie,ge.offset,ge.startLoc),{nextConsumeToken:oe,node:ie}}return I(ie,X.currentOffset(),X.currentPosition()),{node:ie}}function j(X){const Y=X.context(),ie=Y.currentType===1?X.currentOffset():Y.offset,oe=Y.currentType===1?Y.endLoc:Y.startLoc,ge=x(2,ie,oe);ge.items=[];let be=null;do{const Ce=be||X.nextToken();switch(be=null,Ce.type){case 0:Ce.value==null&&_(X,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,Y.lastStartLoc,0,getTokenCaption(Ce)),ge.items.push(E(X,Ce.value||""));break;case 6:Ce.value==null&&_(X,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,Y.lastStartLoc,0,getTokenCaption(Ce)),ge.items.push(M(X,Ce.value||""));break;case 5:Ce.value==null&&_(X,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,Y.lastStartLoc,0,getTokenCaption(Ce)),ge.items.push(S(X,Ce.value||""));break;case 7:Ce.value==null&&_(X,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,Y.lastStartLoc,0,getTokenCaption(Ce)),ge.items.push(A(X,Ce.value||""));break;case 8:const ke=O(X);ge.items.push(ke.node),be=ke.nextConsumeToken||null;break}}while(Y.currentType!==14&&Y.currentType!==1);const ze=Y.currentType===1?Y.lastOffset:X.currentOffset(),de=Y.currentType===1?Y.lastEndLoc:X.currentPosition();return I(ge,ze,de),ge}function $(X,Y,ie,oe){const ge=X.context();let be=oe.items.length===0;const ze=x(1,Y,ie);ze.cases=[],ze.cases.push(oe);do{const de=j(X);be||(be=de.items.length===0),ze.cases.push(de)}while(ge.currentType!==14);return be&&_(X,CompileErrorCodes.MUST_HAVE_MESSAGES_IN_PLURAL,ie,0),I(ze,X.currentOffset(),X.currentPosition()),ze}function W(X){const Y=X.context(),{offset:ie,startLoc:oe}=Y,ge=j(X);return Y.currentType===14?ge:$(X,ie,oe,ge)}function Q(X){const Y=createTokenizer(X,assign({},u)),ie=Y.context(),oe=x(0,ie.offset,ie.startLoc);return f&&oe.loc&&(oe.loc.source=X),oe.body=W(Y),u.onCacheKey&&(oe.cacheKey=u.onCacheKey(X)),ie.currentType!==14&&_(Y,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,ie.lastStartLoc,0,X[ie.offset]||""),I(oe,Y.currentOffset(),Y.currentPosition()),oe}return{parse:Q}}function getTokenCaption(u){if(u.type===14)return"EOF";const f=(u.value||"").replace(/\r?\n/gu,"\\n");return f.length>10?f.slice(0,9)+"…":f}function createTransformer(u,f={}){const d={ast:u,helpers:new Set};return{context:()=>d,helper:I=>(d.helpers.add(I),I)}}function traverseNodes(u,f){for(let d=0;d<u.length;d++)traverseNode(u[d],f)}function traverseNode(u,f){switch(u.type){case 1:traverseNodes(u.cases,f),f.helper("plural");break;case 2:traverseNodes(u.items,f);break;case 6:traverseNode(u.key,f),f.helper("linked"),f.helper("type");break;case 5:f.helper("interpolate"),f.helper("list");break;case 4:f.helper("interpolate"),f.helper("named");break}}function transform(u,f={}){const d=createTransformer(u);d.helper("normalize"),u.body&&traverseNode(u.body,d);const _=d.context();u.helpers=Array.from(_.helpers)}function optimize(u){const f=u.body;return f.type===2?optimizeMessageNode(f):f.cases.forEach(d=>optimizeMessageNode(d)),u}function optimizeMessageNode(u){if(u.items.length===1){const f=u.items[0];(f.type===3||f.type===9)&&(u.static=f.value,delete f.value)}else{const f=[];for(let d=0;d<u.items.length;d++){const _=u.items[d];if(!(_.type===3||_.type===9)||_.value==null)break;f.push(_.value)}if(f.length===u.items.length){u.static=join(f);for(let d=0;d<u.items.length;d++){const _=u.items[d];(_.type===3||_.type===9)&&delete _.value}}}}const ERROR_DOMAIN$1="minifier";function minify(u){switch(u.t=u.type,u.type){case 0:const f=u;minify(f.body),f.b=f.body,delete f.body;break;case 1:const d=u,_=d.cases;for(let T=0;T<_.length;T++)minify(_[T]);d.c=_,delete d.cases;break;case 2:const x=u,I=x.items;for(let T=0;T<I.length;T++)minify(I[T]);x.i=I,delete x.items,x.static&&(x.s=x.static,delete x.static);break;case 3:case 9:case 8:case 7:const E=u;E.value&&(E.v=E.value,delete E.value);break;case 6:const M=u;minify(M.key),M.k=M.key,delete M.key,M.modifier&&(minify(M.modifier),M.m=M.modifier,delete M.modifier);break;case 5:const S=u;S.i=S.index,delete S.index;break;case 4:const A=u;A.k=A.key,delete A.key;break;default:throw createCompileError(CompileErrorCodes.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:ERROR_DOMAIN$1,args:[u.type]})}delete u.type}const ERROR_DOMAIN="parser";function createCodeGenerator(u,f){const{sourceMap:d,filename:_,breakLineCode:x,needIndent:I}=f,E=f.location!==!1,M={filename:_,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:x,needIndent:I,indentLevel:0};E&&u.loc&&(M.source=u.loc.source);const S=()=>M;function A(Q,X){M.code+=Q}function T(Q,X=!0){const Y=X?x:"";A(I?Y+"  ".repeat(Q):Y)}function D(Q=!0){const X=++M.indentLevel;Q&&T(X)}function O(Q=!0){const X=--M.indentLevel;Q&&T(X)}function j(){T(M.indentLevel)}return{context:S,push:A,indent:D,deindent:O,newline:j,helper:Q=>`_${Q}`,needIndent:()=>M.needIndent}}function generateLinkedNode(u,f){const{helper:d}=u;u.push(`${d("linked")}(`),generateNode(u,f.key),f.modifier?(u.push(", "),generateNode(u,f.modifier),u.push(", _type")):u.push(", undefined, _type"),u.push(")")}function generateMessageNode(u,f){const{helper:d,needIndent:_}=u;u.push(`${d("normalize")}([`),u.indent(_());const x=f.items.length;for(let I=0;I<x&&(generateNode(u,f.items[I]),I!==x-1);I++)u.push(", ");u.deindent(_()),u.push("])")}function generatePluralNode(u,f){const{helper:d,needIndent:_}=u;if(f.cases.length>1){u.push(`${d("plural")}([`),u.indent(_());const x=f.cases.length;for(let I=0;I<x&&(generateNode(u,f.cases[I]),I!==x-1);I++)u.push(", ");u.deindent(_()),u.push("])")}}function generateResource(u,f){f.body?generateNode(u,f.body):u.push("null")}function generateNode(u,f){const{helper:d}=u;switch(f.type){case 0:generateResource(u,f);break;case 1:generatePluralNode(u,f);break;case 2:generateMessageNode(u,f);break;case 6:generateLinkedNode(u,f);break;case 8:u.push(JSON.stringify(f.value),f);break;case 7:u.push(JSON.stringify(f.value),f);break;case 5:u.push(`${d("interpolate")}(${d("list")}(${f.index}))`,f);break;case 4:u.push(`${d("interpolate")}(${d("named")}(${JSON.stringify(f.key)}))`,f);break;case 9:u.push(JSON.stringify(f.value),f);break;case 3:u.push(JSON.stringify(f.value),f);break;default:throw createCompileError(CompileErrorCodes.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:ERROR_DOMAIN,args:[f.type]})}}const generate=(u,f={})=>{const d=isString$1(f.mode)?f.mode:"normal",_=isString$1(f.filename)?f.filename:"message.intl",x=!!f.sourceMap,I=f.breakLineCode!=null?f.breakLineCode:d==="arrow"?";":`
`,E=f.needIndent?f.needIndent:d!=="arrow",M=u.helpers||[],S=createCodeGenerator(u,{mode:d,filename:_,sourceMap:x,breakLineCode:I,needIndent:E});S.push(d==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),S.indent(E),M.length>0&&(S.push(`const { ${join(M.map(D=>`${D}: _${D}`),", ")} } = ctx`),S.newline()),S.push("return "),generateNode(S,u),S.deindent(E),S.push("}"),delete u.helpers;const{code:A,map:T}=S.context();return{ast:u,code:A,map:T?T.toJSON():void 0}};function baseCompile$1(u,f={}){const d=assign({},f),_=!!d.jit,x=!!d.minify,I=d.optimize==null?!0:d.optimize,M=createParser(d).parse(u);return _?(I&&optimize(M),x&&minify(M),{ast:M,code:""}):(transform(M,d),generate(M,d))}function initFeatureFlags$1(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(getGlobalThis().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(getGlobalThis().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(getGlobalThis().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}const pathStateMachine=[];pathStateMachine[0]={w:[0],i:[3,0],"[":[4],o:[7]};pathStateMachine[1]={w:[1],".":[2],"[":[4],o:[7]};pathStateMachine[2]={w:[2],i:[3,0],0:[3,0]};pathStateMachine[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};pathStateMachine[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};pathStateMachine[5]={"'":[4,0],o:8,l:[5,0]};pathStateMachine[6]={'"':[4,0],o:8,l:[6,0]};const literalValueRE=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function isLiteral(u){return literalValueRE.test(u)}function stripQuotes(u){const f=u.charCodeAt(0),d=u.charCodeAt(u.length-1);return f===d&&(f===34||f===39)?u.slice(1,-1):u}function getPathCharType(u){if(u==null)return"o";switch(u.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return u;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function formatSubPath(u){const f=u.trim();return u.charAt(0)==="0"&&isNaN(parseInt(u))?!1:isLiteral(f)?stripQuotes(f):"*"+f}function parse(u){const f=[];let d=-1,_=0,x=0,I,E,M,S,A,T,D;const O=[];O[0]=()=>{E===void 0?E=M:E+=M},O[1]=()=>{E!==void 0&&(f.push(E),E=void 0)},O[2]=()=>{O[0](),x++},O[3]=()=>{if(x>0)x--,_=4,O[0]();else{if(x=0,E===void 0||(E=formatSubPath(E),E===!1))return!1;O[1]()}};function j(){const $=u[d+1];if(_===5&&$==="'"||_===6&&$==='"')return d++,M="\\"+$,O[0](),!0}for(;_!==null;)if(d++,I=u[d],!(I==="\\"&&j())){if(S=getPathCharType(I),D=pathStateMachine[_],A=D[S]||D.l||8,A===8||(_=A[0],A[1]!==void 0&&(T=O[A[1]],T&&(M=I,T()===!1))))return;if(_===7)return f}}const cache$1=new Map;function resolveWithKeyValue(u,f){return isObject$4(u)?u[f]:null}function resolveValue(u,f){if(!isObject$4(u))return null;let d=cache$1.get(f);if(d||(d=parse(f),d&&cache$1.set(f,d)),!d)return null;const _=d.length;let x=u,I=0;for(;I<_;){const E=x[d[I]];if(E===void 0||isFunction$1(x))return null;x=E,I++}return x}const DEFAULT_MODIFIER=u=>u,DEFAULT_MESSAGE=u=>"",DEFAULT_MESSAGE_DATA_TYPE="text",DEFAULT_NORMALIZE=u=>u.length===0?"":join$1(u),DEFAULT_INTERPOLATE=toDisplayString;function pluralDefault(u,f){return u=Math.abs(u),f===2?u?u>1?1:0:1:u?Math.min(u,2):0}function getPluralIndex(u){const f=isNumber(u.pluralIndex)?u.pluralIndex:-1;return u.named&&(isNumber(u.named.count)||isNumber(u.named.n))?isNumber(u.named.count)?u.named.count:isNumber(u.named.n)?u.named.n:f:f}function normalizeNamed(u,f){f.count||(f.count=u),f.n||(f.n=u)}function createMessageContext(u={}){const f=u.locale,d=getPluralIndex(u),_=isObject$4(u.pluralRules)&&isString$2(f)&&isFunction$1(u.pluralRules[f])?u.pluralRules[f]:pluralDefault,x=isObject$4(u.pluralRules)&&isString$2(f)&&isFunction$1(u.pluralRules[f])?pluralDefault:void 0,I=X=>X[_(d,X.length,x)],E=u.list||[],M=X=>E[X],S=u.named||{};isNumber(u.pluralIndex)&&normalizeNamed(d,S);const A=X=>S[X];function T(X){const Y=isFunction$1(u.messages)?u.messages(X):isObject$4(u.messages)?u.messages[X]:!1;return Y||(u.parent?u.parent.message(X):DEFAULT_MESSAGE)}const D=X=>u.modifiers?u.modifiers[X]:DEFAULT_MODIFIER,O=isPlainObject(u.processor)&&isFunction$1(u.processor.normalize)?u.processor.normalize:DEFAULT_NORMALIZE,j=isPlainObject(u.processor)&&isFunction$1(u.processor.interpolate)?u.processor.interpolate:DEFAULT_INTERPOLATE,$=isPlainObject(u.processor)&&isString$2(u.processor.type)?u.processor.type:DEFAULT_MESSAGE_DATA_TYPE,Q={list:M,named:A,plural:I,linked:(X,...Y)=>{const[ie,oe]=Y;let ge="text",be="";Y.length===1?isObject$4(ie)?(be=ie.modifier||be,ge=ie.type||ge):isString$2(ie)&&(be=ie||be):Y.length===2&&(isString$2(ie)&&(be=ie||be),isString$2(oe)&&(ge=oe||ge));const ze=T(X)(Q),de=ge==="vnode"&&isArray$2(ze)&&be?ze[0]:ze;return be?D(be)(de,ge):de},message:T,type:$,interpolate:j,normalize:O,values:assign$1({},E,S)};return Q}let devtools=null;function setDevToolsHook(u){devtools=u}function initI18nDevTools(u,f,d){devtools&&devtools.emit("i18n:init",{timestamp:Date.now(),i18n:u,version:f,meta:d})}const translateDevTools=createDevToolsHook("function:translate");function createDevToolsHook(u){return f=>devtools&&devtools.emit(u,f)}const CoreWarnCodes={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7,__EXTEND_POINT__:8},code$2=CompileErrorCodes.__EXTEND_POINT__,inc$2=incrementer(code$2),CoreErrorCodes={INVALID_ARGUMENT:code$2,INVALID_DATE_ARGUMENT:inc$2(),INVALID_ISO_DATE_ARGUMENT:inc$2(),NOT_SUPPORT_NON_STRING_MESSAGE:inc$2(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:inc$2(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:inc$2(),NOT_SUPPORT_LOCALE_TYPE:inc$2(),__EXTEND_POINT__:inc$2()};function createCoreError(u){return createCompileError(u,null,void 0)}function getLocale(u,f){return f.locale!=null?resolveLocale(f.locale):resolveLocale(u.locale)}let _resolveLocale;function resolveLocale(u){if(isString$2(u))return u;if(isFunction$1(u)){if(u.resolvedOnce&&_resolveLocale!=null)return _resolveLocale;if(u.constructor.name==="Function"){const f=u();if(isPromise(f))throw createCoreError(CoreErrorCodes.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return _resolveLocale=f}else throw createCoreError(CoreErrorCodes.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw createCoreError(CoreErrorCodes.NOT_SUPPORT_LOCALE_TYPE)}function fallbackWithSimple(u,f,d){return[...new Set([d,...isArray$2(f)?f:isObject$4(f)?Object.keys(f):isString$2(f)?[f]:[d]])]}function fallbackWithLocaleChain(u,f,d){const _=isString$2(d)?d:DEFAULT_LOCALE,x=u;x.__localeChainCache||(x.__localeChainCache=new Map);let I=x.__localeChainCache.get(_);if(!I){I=[];let E=[d];for(;isArray$2(E);)E=appendBlockToChain(I,E,f);const M=isArray$2(f)||!isPlainObject(f)?f:f.default?f.default:null;E=isString$2(M)?[M]:M,isArray$2(E)&&appendBlockToChain(I,E,!1),x.__localeChainCache.set(_,I)}return I}function appendBlockToChain(u,f,d){let _=!0;for(let x=0;x<f.length&&isBoolean(_);x++){const I=f[x];isString$2(I)&&(_=appendLocaleToChain(u,f[x],d))}return _}function appendLocaleToChain(u,f,d){let _;const x=f.split("-");do{const I=x.join("-");_=appendItemToChain(u,I,d),x.splice(-1,1)}while(x.length&&_===!0);return _}function appendItemToChain(u,f,d){let _=!1;if(!u.includes(f)&&(_=!0,f)){_=f[f.length-1]!=="!";const x=f.replace(/!/g,"");u.push(x),(isArray$2(d)||isPlainObject(d))&&d[x]&&(_=d[x])}return _}const VERSION$1="9.9.0",NOT_REOSLVED=-1,DEFAULT_LOCALE="en-US",MISSING_RESOLVE_VALUE="",capitalize=u=>`${u.charAt(0).toLocaleUpperCase()}${u.substr(1)}`;function getDefaultLinkedModifiers(){return{upper:(u,f)=>f==="text"&&isString$2(u)?u.toUpperCase():f==="vnode"&&isObject$4(u)&&"__v_isVNode"in u?u.children.toUpperCase():u,lower:(u,f)=>f==="text"&&isString$2(u)?u.toLowerCase():f==="vnode"&&isObject$4(u)&&"__v_isVNode"in u?u.children.toLowerCase():u,capitalize:(u,f)=>f==="text"&&isString$2(u)?capitalize(u):f==="vnode"&&isObject$4(u)&&"__v_isVNode"in u?capitalize(u.children):u}}let _compiler;function registerMessageCompiler(u){_compiler=u}let _resolver;function registerMessageResolver(u){_resolver=u}let _fallbacker;function registerLocaleFallbacker(u){_fallbacker=u}let _additionalMeta=null;const setAdditionalMeta=u=>{_additionalMeta=u},getAdditionalMeta=()=>_additionalMeta;let _fallbackContext=null;const setFallbackContext=u=>{_fallbackContext=u},getFallbackContext=()=>_fallbackContext;let _cid=0;function createCoreContext(u={}){const f=isFunction$1(u.onWarn)?u.onWarn:warn,d=isString$2(u.version)?u.version:VERSION$1,_=isString$2(u.locale)||isFunction$1(u.locale)?u.locale:DEFAULT_LOCALE,x=isFunction$1(_)?DEFAULT_LOCALE:_,I=isArray$2(u.fallbackLocale)||isPlainObject(u.fallbackLocale)||isString$2(u.fallbackLocale)||u.fallbackLocale===!1?u.fallbackLocale:x,E=isPlainObject(u.messages)?u.messages:{[x]:{}},M=isPlainObject(u.datetimeFormats)?u.datetimeFormats:{[x]:{}},S=isPlainObject(u.numberFormats)?u.numberFormats:{[x]:{}},A=assign$1({},u.modifiers||{},getDefaultLinkedModifiers()),T=u.pluralRules||{},D=isFunction$1(u.missing)?u.missing:null,O=isBoolean(u.missingWarn)||isRegExp(u.missingWarn)?u.missingWarn:!0,j=isBoolean(u.fallbackWarn)||isRegExp(u.fallbackWarn)?u.fallbackWarn:!0,$=!!u.fallbackFormat,W=!!u.unresolving,Q=isFunction$1(u.postTranslation)?u.postTranslation:null,X=isPlainObject(u.processor)?u.processor:null,Y=isBoolean(u.warnHtmlMessage)?u.warnHtmlMessage:!0,ie=!!u.escapeParameter,oe=isFunction$1(u.messageCompiler)?u.messageCompiler:_compiler,ge=isFunction$1(u.messageResolver)?u.messageResolver:_resolver||resolveWithKeyValue,be=isFunction$1(u.localeFallbacker)?u.localeFallbacker:_fallbacker||fallbackWithSimple,ze=isObject$4(u.fallbackContext)?u.fallbackContext:void 0,de=u,Ce=isObject$4(de.__datetimeFormatters)?de.__datetimeFormatters:new Map,ke=isObject$4(de.__numberFormatters)?de.__numberFormatters:new Map,le=isObject$4(de.__meta)?de.__meta:{};_cid++;const re={version:d,cid:_cid,locale:_,fallbackLocale:I,messages:E,modifiers:A,pluralRules:T,missing:D,missingWarn:O,fallbackWarn:j,fallbackFormat:$,unresolving:W,postTranslation:Q,processor:X,warnHtmlMessage:Y,escapeParameter:ie,messageCompiler:oe,messageResolver:ge,localeFallbacker:be,fallbackContext:ze,onWarn:f,__meta:le};return re.datetimeFormats=M,re.numberFormats=S,re.__datetimeFormatters=Ce,re.__numberFormatters=ke,__INTLIFY_PROD_DEVTOOLS__&&initI18nDevTools(re,d,le),re}function handleMissing(u,f,d,_,x){const{missing:I,onWarn:E}=u;if(I!==null){const M=I(u,d,f,x);return isString$2(M)?M:f}else return f}function updateFallbackLocale(u,f,d){const _=u;_.__localeChainCache=new Map,u.localeFallbacker(u,d,f)}function format(u){return d=>formatParts(d,u)}function formatParts(u,f){const d=f.b||f.body;if((d.t||d.type)===1){const _=d,x=_.c||_.cases;return u.plural(x.reduce((I,E)=>[...I,formatMessageParts(u,E)],[]))}else return formatMessageParts(u,d)}function formatMessageParts(u,f){const d=f.s||f.static;if(d)return u.type==="text"?d:u.normalize([d]);{const _=(f.i||f.items).reduce((x,I)=>[...x,formatMessagePart(u,I)],[]);return u.normalize(_)}}function formatMessagePart(u,f){const d=f.t||f.type;switch(d){case 3:const _=f;return _.v||_.value;case 9:const x=f;return x.v||x.value;case 4:const I=f;return u.interpolate(u.named(I.k||I.key));case 5:const E=f;return u.interpolate(u.list(E.i!=null?E.i:E.index));case 6:const M=f,S=M.m||M.modifier;return u.linked(formatMessagePart(u,M.k||M.key),S?formatMessagePart(u,S):void 0,u.type);case 7:const A=f;return A.v||A.value;case 8:const T=f;return T.v||T.value;default:throw new Error(`unhandled node type on format message part: ${d}`)}}const defaultOnCacheKey=u=>u;let compileCache=Object.create(null);const isMessageAST=u=>isObject$4(u)&&(u.t===0||u.type===0)&&("b"in u||"body"in u);function baseCompile(u,f={}){let d=!1;const _=f.onError||defaultOnError;return f.onError=x=>{d=!0,_(x)},{...baseCompile$1(u,f),detectError:d}}const compileToFunction=(u,f)=>{if(!isString$2(u))throw createCoreError(CoreErrorCodes.NOT_SUPPORT_NON_STRING_MESSAGE);{isBoolean(f.warnHtmlMessage)&&f.warnHtmlMessage;const _=(f.onCacheKey||defaultOnCacheKey)(u),x=compileCache[_];if(x)return x;const{code:I,detectError:E}=baseCompile(u,f),M=new Function(`return ${I}`)();return E?M:compileCache[_]=M}};function compile(u,f){if(__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&isString$2(u)){isBoolean(f.warnHtmlMessage)&&f.warnHtmlMessage;const _=(f.onCacheKey||defaultOnCacheKey)(u),x=compileCache[_];if(x)return x;const{ast:I,detectError:E}=baseCompile(u,{...f,location:!1,jit:!0}),M=format(I);return E?M:compileCache[_]=M}else{const d=u.cacheKey;if(d){const _=compileCache[d];return _||(compileCache[d]=format(u))}else return format(u)}}const NOOP_MESSAGE_FUNCTION=()=>"",isMessageFunction=u=>isFunction$1(u);function translate$1(u,...f){const{fallbackFormat:d,postTranslation:_,unresolving:x,messageCompiler:I,fallbackLocale:E,messages:M}=u,[S,A]=parseTranslateArgs(...f),T=isBoolean(A.missingWarn)?A.missingWarn:u.missingWarn,D=isBoolean(A.fallbackWarn)?A.fallbackWarn:u.fallbackWarn,O=isBoolean(A.escapeParameter)?A.escapeParameter:u.escapeParameter,j=!!A.resolvedMessage,$=isString$2(A.default)||isBoolean(A.default)?isBoolean(A.default)?I?S:()=>S:A.default:d?I?S:()=>S:"",W=d||$!=="",Q=getLocale(u,A);O&&escapeParams(A);let[X,Y,ie]=j?[S,Q,M[Q]||{}]:resolveMessageFormat(u,S,Q,E,D,T),oe=X,ge=S;if(!j&&!(isString$2(oe)||isMessageAST(oe)||isMessageFunction(oe))&&W&&(oe=$,ge=oe),!j&&(!(isString$2(oe)||isMessageAST(oe)||isMessageFunction(oe))||!isString$2(Y)))return x?NOT_REOSLVED:S;let be=!1;const ze=()=>{be=!0},de=isMessageFunction(oe)?oe:compileMessageFormat(u,S,Y,oe,ge,ze);if(be)return oe;const Ce=getMessageContextOptions(u,Y,ie,A),ke=createMessageContext(Ce),le=evaluateMessage(u,de,ke),re=_?_(le,S):le;if(__INTLIFY_PROD_DEVTOOLS__){const P={timestamp:Date.now(),key:isString$2(S)?S:isMessageFunction(oe)?oe.key:"",locale:Y||(isMessageFunction(oe)?oe.locale:""),format:isString$2(oe)?oe:isMessageFunction(oe)?oe.source:"",message:re};P.meta=assign$1({},u.__meta,getAdditionalMeta()||{}),translateDevTools(P)}return re}function escapeParams(u){isArray$2(u.list)?u.list=u.list.map(f=>isString$2(f)?escapeHtml(f):f):isObject$4(u.named)&&Object.keys(u.named).forEach(f=>{isString$2(u.named[f])&&(u.named[f]=escapeHtml(u.named[f]))})}function resolveMessageFormat(u,f,d,_,x,I){const{messages:E,onWarn:M,messageResolver:S,localeFallbacker:A}=u,T=A(u,_,d);let D={},O,j=null;const $="translate";for(let W=0;W<T.length&&(O=T[W],D=E[O]||{},(j=S(D,f))===null&&(j=D[f]),!(isString$2(j)||isMessageAST(j)||isMessageFunction(j)));W++){const Q=handleMissing(u,f,O,I,$);Q!==f&&(j=Q)}return[j,O,D]}function compileMessageFormat(u,f,d,_,x,I){const{messageCompiler:E,warnHtmlMessage:M}=u;if(isMessageFunction(_)){const A=_;return A.locale=A.locale||d,A.key=A.key||f,A}if(E==null){const A=()=>_;return A.locale=d,A.key=f,A}const S=E(_,getCompileContext(u,d,x,_,M,I));return S.locale=d,S.key=f,S.source=_,S}function evaluateMessage(u,f,d){return f(d)}function parseTranslateArgs(...u){const[f,d,_]=u,x={};if(!isString$2(f)&&!isNumber(f)&&!isMessageFunction(f)&&!isMessageAST(f))throw createCoreError(CoreErrorCodes.INVALID_ARGUMENT);const I=isNumber(f)?String(f):(isMessageFunction(f),f);return isNumber(d)?x.plural=d:isString$2(d)?x.default=d:isPlainObject(d)&&!isEmptyObject(d)?x.named=d:isArray$2(d)&&(x.list=d),isNumber(_)?x.plural=_:isString$2(_)?x.default=_:isPlainObject(_)&&assign$1(x,_),[I,x]}function getCompileContext(u,f,d,_,x,I){return{locale:f,key:d,warnHtmlMessage:x,onError:E=>{throw I&&I(E),E},onCacheKey:E=>generateFormatCacheKey(f,d,E)}}function getMessageContextOptions(u,f,d,_){const{modifiers:x,pluralRules:I,messageResolver:E,fallbackLocale:M,fallbackWarn:S,missingWarn:A,fallbackContext:T}=u,O={locale:f,modifiers:x,pluralRules:I,messages:j=>{let $=E(d,j);if($==null&&T){const[,,W]=resolveMessageFormat(T,j,f,M,S,A);$=E(W,j)}if(isString$2($)||isMessageAST($)){let W=!1;const X=compileMessageFormat(u,j,f,$,j,()=>{W=!0});return W?NOOP_MESSAGE_FUNCTION:X}else return isMessageFunction($)?$:NOOP_MESSAGE_FUNCTION}};return u.processor&&(O.processor=u.processor),_.list&&(O.list=_.list),_.named&&(O.named=_.named),isNumber(_.plural)&&(O.pluralIndex=_.plural),O}function datetime(u,...f){const{datetimeFormats:d,unresolving:_,fallbackLocale:x,onWarn:I,localeFallbacker:E}=u,{__datetimeFormatters:M}=u,[S,A,T,D]=parseDateTimeArgs(...f),O=isBoolean(T.missingWarn)?T.missingWarn:u.missingWarn;isBoolean(T.fallbackWarn)?T.fallbackWarn:u.fallbackWarn;const j=!!T.part,$=getLocale(u,T),W=E(u,x,$);if(!isString$2(S)||S==="")return new Intl.DateTimeFormat($,D).format(A);let Q={},X,Y=null;const ie="datetime format";for(let be=0;be<W.length&&(X=W[be],Q=d[X]||{},Y=Q[S],!isPlainObject(Y));be++)handleMissing(u,S,X,O,ie);if(!isPlainObject(Y)||!isString$2(X))return _?NOT_REOSLVED:S;let oe=`${X}__${S}`;isEmptyObject(D)||(oe=`${oe}__${JSON.stringify(D)}`);let ge=M.get(oe);return ge||(ge=new Intl.DateTimeFormat(X,assign$1({},Y,D)),M.set(oe,ge)),j?ge.formatToParts(A):ge.format(A)}const DATETIME_FORMAT_OPTIONS_KEYS=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function parseDateTimeArgs(...u){const[f,d,_,x]=u,I={};let E={},M;if(isString$2(f)){const S=f.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!S)throw createCoreError(CoreErrorCodes.INVALID_ISO_DATE_ARGUMENT);const A=S[3]?S[3].trim().startsWith("T")?`${S[1].trim()}${S[3].trim()}`:`${S[1].trim()}T${S[3].trim()}`:S[1].trim();M=new Date(A);try{M.toISOString()}catch{throw createCoreError(CoreErrorCodes.INVALID_ISO_DATE_ARGUMENT)}}else if(isDate(f)){if(isNaN(f.getTime()))throw createCoreError(CoreErrorCodes.INVALID_DATE_ARGUMENT);M=f}else if(isNumber(f))M=f;else throw createCoreError(CoreErrorCodes.INVALID_ARGUMENT);return isString$2(d)?I.key=d:isPlainObject(d)&&Object.keys(d).forEach(S=>{DATETIME_FORMAT_OPTIONS_KEYS.includes(S)?E[S]=d[S]:I[S]=d[S]}),isString$2(_)?I.locale=_:isPlainObject(_)&&(E=_),isPlainObject(x)&&(E=x),[I.key||"",M,I,E]}function clearDateTimeFormat(u,f,d){const _=u;for(const x in d){const I=`${f}__${x}`;_.__datetimeFormatters.has(I)&&_.__datetimeFormatters.delete(I)}}function number(u,...f){const{numberFormats:d,unresolving:_,fallbackLocale:x,onWarn:I,localeFallbacker:E}=u,{__numberFormatters:M}=u,[S,A,T,D]=parseNumberArgs(...f),O=isBoolean(T.missingWarn)?T.missingWarn:u.missingWarn;isBoolean(T.fallbackWarn)?T.fallbackWarn:u.fallbackWarn;const j=!!T.part,$=getLocale(u,T),W=E(u,x,$);if(!isString$2(S)||S==="")return new Intl.NumberFormat($,D).format(A);let Q={},X,Y=null;const ie="number format";for(let be=0;be<W.length&&(X=W[be],Q=d[X]||{},Y=Q[S],!isPlainObject(Y));be++)handleMissing(u,S,X,O,ie);if(!isPlainObject(Y)||!isString$2(X))return _?NOT_REOSLVED:S;let oe=`${X}__${S}`;isEmptyObject(D)||(oe=`${oe}__${JSON.stringify(D)}`);let ge=M.get(oe);return ge||(ge=new Intl.NumberFormat(X,assign$1({},Y,D)),M.set(oe,ge)),j?ge.formatToParts(A):ge.format(A)}const NUMBER_FORMAT_OPTIONS_KEYS=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function parseNumberArgs(...u){const[f,d,_,x]=u,I={};let E={};if(!isNumber(f))throw createCoreError(CoreErrorCodes.INVALID_ARGUMENT);const M=f;return isString$2(d)?I.key=d:isPlainObject(d)&&Object.keys(d).forEach(S=>{NUMBER_FORMAT_OPTIONS_KEYS.includes(S)?E[S]=d[S]:I[S]=d[S]}),isString$2(_)?I.locale=_:isPlainObject(_)&&(E=_),isPlainObject(x)&&(E=x),[I.key||"",M,I,E]}function clearNumberFormat(u,f,d){const _=u;for(const x in d){const I=`${f}__${x}`;_.__numberFormatters.has(I)&&_.__numberFormatters.delete(I)}}initFeatureFlags$1();const VERSION="9.9.0";function initFeatureFlags(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(getGlobalThis().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(getGlobalThis().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(getGlobalThis().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(getGlobalThis().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(getGlobalThis().__INTLIFY_PROD_DEVTOOLS__=!1)}const code$1=CoreWarnCodes.__EXTEND_POINT__,inc$1=incrementer(code$1);inc$1(),inc$1(),inc$1(),inc$1(),inc$1(),inc$1(),inc$1(),inc$1();const code=CoreErrorCodes.__EXTEND_POINT__,inc=incrementer(code),I18nErrorCodes={UNEXPECTED_RETURN_TYPE:code,INVALID_ARGUMENT:inc(),MUST_BE_CALL_SETUP_TOP:inc(),NOT_INSTALLED:inc(),NOT_AVAILABLE_IN_LEGACY_MODE:inc(),REQUIRED_VALUE:inc(),INVALID_VALUE:inc(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:inc(),NOT_INSTALLED_WITH_PROVIDE:inc(),UNEXPECTED_ERROR:inc(),NOT_COMPATIBLE_LEGACY_VUE_I18N:inc(),BRIDGE_SUPPORT_VUE_2_ONLY:inc(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:inc(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:inc(),__EXTEND_POINT__:inc()};function createI18nError(u,...f){return createCompileError(u,null,void 0)}const TranslateVNodeSymbol=makeSymbol("__translateVNode"),DatetimePartsSymbol=makeSymbol("__datetimeParts"),NumberPartsSymbol=makeSymbol("__numberParts"),SetPluralRulesSymbol=makeSymbol("__setPluralRules"),InejctWithOptionSymbol=makeSymbol("__injectWithOption"),DisposeSymbol=makeSymbol("__dispose");function handleFlatJson(u){if(!isObject$4(u))return u;for(const f in u)if(hasOwn$1(u,f))if(!f.includes("."))isObject$4(u[f])&&handleFlatJson(u[f]);else{const d=f.split("."),_=d.length-1;let x=u,I=!1;for(let E=0;E<_;E++){if(d[E]in x||(x[d[E]]={}),!isObject$4(x[d[E]])){I=!0;break}x=x[d[E]]}I||(x[d[_]]=u[f],delete u[f]),isObject$4(x[d[_]])&&handleFlatJson(x[d[_]])}return u}function getLocaleMessages(u,f){const{messages:d,__i18n:_,messageResolver:x,flatJson:I}=f,E=isPlainObject(d)?d:isArray$2(_)?{}:{[u]:{}};if(isArray$2(_)&&_.forEach(M=>{if("locale"in M&&"resource"in M){const{locale:S,resource:A}=M;S?(E[S]=E[S]||{},deepCopy(A,E[S])):deepCopy(A,E)}else isString$2(M)&&deepCopy(JSON.parse(M),E)}),x==null&&I)for(const M in E)hasOwn$1(E,M)&&handleFlatJson(E[M]);return E}function getComponentOptions(u){return u.type}function adjustI18nResources(u,f,d){let _=isObject$4(f.messages)?f.messages:{};"__i18nGlobal"in d&&(_=getLocaleMessages(u.locale.value,{messages:_,__i18n:d.__i18nGlobal}));const x=Object.keys(_);x.length&&x.forEach(I=>{u.mergeLocaleMessage(I,_[I])});{if(isObject$4(f.datetimeFormats)){const I=Object.keys(f.datetimeFormats);I.length&&I.forEach(E=>{u.mergeDateTimeFormat(E,f.datetimeFormats[E])})}if(isObject$4(f.numberFormats)){const I=Object.keys(f.numberFormats);I.length&&I.forEach(E=>{u.mergeNumberFormat(E,f.numberFormats[E])})}}}function createTextNode(u){return createVNode(Text,null,u,0)}const DEVTOOLS_META="__INTLIFY_META__",NOOP_RETURN_ARRAY=()=>[],NOOP_RETURN_FALSE=()=>!1;let composerID=0;function defineCoreMissingHandler(u){return(f,d,_,x)=>u(d,_,getCurrentInstance()||void 0,x)}const getMetaInfo=()=>{const u=getCurrentInstance();let f=null;return u&&(f=getComponentOptions(u)[DEVTOOLS_META])?{[DEVTOOLS_META]:f}:null};function createComposer(u={},f){const{__root:d,__injectWithOption:_}=u,x=d===void 0,I=u.flatJson,E=inBrowser?ref:shallowRef;let M=isBoolean(u.inheritLocale)?u.inheritLocale:!0;const S=E(d&&M?d.locale.value:isString$2(u.locale)?u.locale:DEFAULT_LOCALE),A=E(d&&M?d.fallbackLocale.value:isString$2(u.fallbackLocale)||isArray$2(u.fallbackLocale)||isPlainObject(u.fallbackLocale)||u.fallbackLocale===!1?u.fallbackLocale:S.value),T=E(getLocaleMessages(S.value,u)),D=E(isPlainObject(u.datetimeFormats)?u.datetimeFormats:{[S.value]:{}}),O=E(isPlainObject(u.numberFormats)?u.numberFormats:{[S.value]:{}});let j=d?d.missingWarn:isBoolean(u.missingWarn)||isRegExp(u.missingWarn)?u.missingWarn:!0,$=d?d.fallbackWarn:isBoolean(u.fallbackWarn)||isRegExp(u.fallbackWarn)?u.fallbackWarn:!0,W=d?d.fallbackRoot:isBoolean(u.fallbackRoot)?u.fallbackRoot:!0,Q=!!u.fallbackFormat,X=isFunction$1(u.missing)?u.missing:null,Y=isFunction$1(u.missing)?defineCoreMissingHandler(u.missing):null,ie=isFunction$1(u.postTranslation)?u.postTranslation:null,oe=d?d.warnHtmlMessage:isBoolean(u.warnHtmlMessage)?u.warnHtmlMessage:!0,ge=!!u.escapeParameter;const be=d?d.modifiers:isPlainObject(u.modifiers)?u.modifiers:{};let ze=u.pluralRules||d&&d.pluralRules,de;de=(()=>{x&&setFallbackContext(null);const Ot={version:VERSION,locale:S.value,fallbackLocale:A.value,messages:T.value,modifiers:be,pluralRules:ze,missing:Y===null?void 0:Y,missingWarn:j,fallbackWarn:$,fallbackFormat:Q,unresolving:!0,postTranslation:ie===null?void 0:ie,warnHtmlMessage:oe,escapeParameter:ge,messageResolver:u.messageResolver,messageCompiler:u.messageCompiler,__meta:{framework:"vue"}};Ot.datetimeFormats=D.value,Ot.numberFormats=O.value,Ot.__datetimeFormatters=isPlainObject(de)?de.__datetimeFormatters:void 0,Ot.__numberFormatters=isPlainObject(de)?de.__numberFormatters:void 0;const St=createCoreContext(Ot);return x&&setFallbackContext(St),St})(),updateFallbackLocale(de,S.value,A.value);function ke(){return[S.value,A.value,T.value,D.value,O.value]}const le=computed({get:()=>S.value,set:Ot=>{S.value=Ot,de.locale=S.value}}),re=computed({get:()=>A.value,set:Ot=>{A.value=Ot,de.fallbackLocale=A.value,updateFallbackLocale(de,S.value,Ot)}}),P=computed(()=>T.value),k=computed(()=>D.value),B=computed(()=>O.value);function z(){return isFunction$1(ie)?ie:null}function ee(Ot){ie=Ot,de.postTranslation=Ot}function H(){return X}function q(Ot){Ot!==null&&(Y=defineCoreMissingHandler(Ot)),X=Ot,de.missing=Y}const J=(Ot,St,pi,eM,hi,mi)=>{ke();let Dn;try{__INTLIFY_PROD_DEVTOOLS__,x||(de.fallbackContext=d?getFallbackContext():void 0),Dn=Ot(de)}finally{__INTLIFY_PROD_DEVTOOLS__,x||(de.fallbackContext=void 0)}if(pi!=="translate exists"&&isNumber(Dn)&&Dn===NOT_REOSLVED||pi==="translate exists"&&!Dn){const[tM,oM]=St();return d&&W?eM(d):hi(tM)}else{if(mi(Dn))return Dn;throw createI18nError(I18nErrorCodes.UNEXPECTED_RETURN_TYPE)}};function U(...Ot){return J(St=>Reflect.apply(translate$1,null,[St,...Ot]),()=>parseTranslateArgs(...Ot),"translate",St=>Reflect.apply(St.t,St,[...Ot]),St=>St,St=>isString$2(St))}function Z(...Ot){const[St,pi,eM]=Ot;if(eM&&!isObject$4(eM))throw createI18nError(I18nErrorCodes.INVALID_ARGUMENT);return U(St,pi,assign$1({resolvedMessage:!0},eM||{}))}function ve(...Ot){return J(St=>Reflect.apply(datetime,null,[St,...Ot]),()=>parseDateTimeArgs(...Ot),"datetime format",St=>Reflect.apply(St.d,St,[...Ot]),()=>MISSING_RESOLVE_VALUE,St=>isString$2(St))}function Ye(...Ot){return J(St=>Reflect.apply(number,null,[St,...Ot]),()=>parseNumberArgs(...Ot),"number format",St=>Reflect.apply(St.n,St,[...Ot]),()=>MISSING_RESOLVE_VALUE,St=>isString$2(St))}function rt(Ot){return Ot.map(St=>isString$2(St)||isNumber(St)||isBoolean(St)?createTextNode(String(St)):St)}const Qe={normalize:rt,interpolate:Ot=>Ot,type:"vnode"};function vt(...Ot){return J(St=>{let pi;const eM=St;try{eM.processor=Qe,pi=Reflect.apply(translate$1,null,[eM,...Ot])}finally{eM.processor=null}return pi},()=>parseTranslateArgs(...Ot),"translate",St=>St[TranslateVNodeSymbol](...Ot),St=>[createTextNode(St)],St=>isArray$2(St))}function ri(...Ot){return J(St=>Reflect.apply(number,null,[St,...Ot]),()=>parseNumberArgs(...Ot),"number format",St=>St[NumberPartsSymbol](...Ot),NOOP_RETURN_ARRAY,St=>isString$2(St)||isArray$2(St))}function ci(...Ot){return J(St=>Reflect.apply(datetime,null,[St,...Ot]),()=>parseDateTimeArgs(...Ot),"datetime format",St=>St[DatetimePartsSymbol](...Ot),NOOP_RETURN_ARRAY,St=>isString$2(St)||isArray$2(St))}function tt(Ot){ze=Ot,de.pluralRules=ze}function et(Ot,St){return J(()=>{if(!Ot)return!1;const pi=isString$2(St)?St:S.value,eM=ot(pi),hi=de.messageResolver(eM,Ot);return isMessageAST(hi)||isMessageFunction(hi)||isString$2(hi)},()=>[Ot],"translate exists",pi=>Reflect.apply(pi.te,pi,[Ot,St]),NOOP_RETURN_FALSE,pi=>isBoolean(pi))}function $e(Ot){let St=null;const pi=fallbackWithLocaleChain(de,A.value,S.value);for(let eM=0;eM<pi.length;eM++){const hi=T.value[pi[eM]]||{},mi=de.messageResolver(hi,Ot);if(mi!=null){St=mi;break}}return St}function Le(Ot){const St=$e(Ot);return St??(d?d.tm(Ot)||{}:{})}function ot(Ot){return T.value[Ot]||{}}function Oe(Ot,St){if(I){const pi={[Ot]:St};for(const eM in pi)hasOwn$1(pi,eM)&&handleFlatJson(pi[eM]);St=pi[Ot]}T.value[Ot]=St,de.messages=T.value}function Ne(Ot,St){T.value[Ot]=T.value[Ot]||{};const pi={[Ot]:St};for(const eM in pi)hasOwn$1(pi,eM)&&handleFlatJson(pi[eM]);St=pi[Ot],deepCopy(St,T.value[Ot]),de.messages=T.value}function Fe(Ot){return D.value[Ot]||{}}function Je(Ot,St){D.value[Ot]=St,de.datetimeFormats=D.value,clearDateTimeFormat(de,Ot,St)}function Dt(Ot,St){D.value[Ot]=assign$1(D.value[Ot]||{},St),de.datetimeFormats=D.value,clearDateTimeFormat(de,Ot,St)}function oi(Ot){return O.value[Ot]||{}}function Bt(Ot,St){O.value[Ot]=St,de.numberFormats=O.value,clearNumberFormat(de,Ot,St)}function li(Ot,St){O.value[Ot]=assign$1(O.value[Ot]||{},St),de.numberFormats=O.value,clearNumberFormat(de,Ot,St)}composerID++,d&&inBrowser&&(watch(d.locale,Ot=>{M&&(S.value=Ot,de.locale=Ot,updateFallbackLocale(de,S.value,A.value))}),watch(d.fallbackLocale,Ot=>{M&&(A.value=Ot,de.fallbackLocale=Ot,updateFallbackLocale(de,S.value,A.value))}));const ii={id:composerID,locale:le,fallbackLocale:re,get inheritLocale(){return M},set inheritLocale(Ot){M=Ot,Ot&&d&&(S.value=d.locale.value,A.value=d.fallbackLocale.value,updateFallbackLocale(de,S.value,A.value))},get availableLocales(){return Object.keys(T.value).sort()},messages:P,get modifiers(){return be},get pluralRules(){return ze||{}},get isGlobal(){return x},get missingWarn(){return j},set missingWarn(Ot){j=Ot,de.missingWarn=j},get fallbackWarn(){return $},set fallbackWarn(Ot){$=Ot,de.fallbackWarn=$},get fallbackRoot(){return W},set fallbackRoot(Ot){W=Ot},get fallbackFormat(){return Q},set fallbackFormat(Ot){Q=Ot,de.fallbackFormat=Q},get warnHtmlMessage(){return oe},set warnHtmlMessage(Ot){oe=Ot,de.warnHtmlMessage=Ot},get escapeParameter(){return ge},set escapeParameter(Ot){ge=Ot,de.escapeParameter=Ot},t:U,getLocaleMessage:ot,setLocaleMessage:Oe,mergeLocaleMessage:Ne,getPostTranslationHandler:z,setPostTranslationHandler:ee,getMissingHandler:H,setMissingHandler:q,[SetPluralRulesSymbol]:tt};return ii.datetimeFormats=k,ii.numberFormats=B,ii.rt=Z,ii.te=et,ii.tm=Le,ii.d=ve,ii.n=Ye,ii.getDateTimeFormat=Fe,ii.setDateTimeFormat=Je,ii.mergeDateTimeFormat=Dt,ii.getNumberFormat=oi,ii.setNumberFormat=Bt,ii.mergeNumberFormat=li,ii[InejctWithOptionSymbol]=_,ii[TranslateVNodeSymbol]=vt,ii[DatetimePartsSymbol]=ci,ii[NumberPartsSymbol]=ri,ii}function convertComposerOptions(u){const f=isString$2(u.locale)?u.locale:DEFAULT_LOCALE,d=isString$2(u.fallbackLocale)||isArray$2(u.fallbackLocale)||isPlainObject(u.fallbackLocale)||u.fallbackLocale===!1?u.fallbackLocale:f,_=isFunction$1(u.missing)?u.missing:void 0,x=isBoolean(u.silentTranslationWarn)||isRegExp(u.silentTranslationWarn)?!u.silentTranslationWarn:!0,I=isBoolean(u.silentFallbackWarn)||isRegExp(u.silentFallbackWarn)?!u.silentFallbackWarn:!0,E=isBoolean(u.fallbackRoot)?u.fallbackRoot:!0,M=!!u.formatFallbackMessages,S=isPlainObject(u.modifiers)?u.modifiers:{},A=u.pluralizationRules,T=isFunction$1(u.postTranslation)?u.postTranslation:void 0,D=isString$2(u.warnHtmlInMessage)?u.warnHtmlInMessage!=="off":!0,O=!!u.escapeParameterHtml,j=isBoolean(u.sync)?u.sync:!0;let $=u.messages;if(isPlainObject(u.sharedMessages)){const ge=u.sharedMessages;$=Object.keys(ge).reduce((ze,de)=>{const Ce=ze[de]||(ze[de]={});return assign$1(Ce,ge[de]),ze},$||{})}const{__i18n:W,__root:Q,__injectWithOption:X}=u,Y=u.datetimeFormats,ie=u.numberFormats,oe=u.flatJson;return{locale:f,fallbackLocale:d,messages:$,flatJson:oe,datetimeFormats:Y,numberFormats:ie,missing:_,missingWarn:x,fallbackWarn:I,fallbackRoot:E,fallbackFormat:M,modifiers:S,pluralRules:A,postTranslation:T,warnHtmlMessage:D,escapeParameter:O,messageResolver:u.messageResolver,inheritLocale:j,__i18n:W,__root:Q,__injectWithOption:X}}function createVueI18n(u={},f){{const d=createComposer(convertComposerOptions(u)),{__extender:_}=u,x={id:d.id,get locale(){return d.locale.value},set locale(I){d.locale.value=I},get fallbackLocale(){return d.fallbackLocale.value},set fallbackLocale(I){d.fallbackLocale.value=I},get messages(){return d.messages.value},get datetimeFormats(){return d.datetimeFormats.value},get numberFormats(){return d.numberFormats.value},get availableLocales(){return d.availableLocales},get formatter(){return{interpolate(){return[]}}},set formatter(I){},get missing(){return d.getMissingHandler()},set missing(I){d.setMissingHandler(I)},get silentTranslationWarn(){return isBoolean(d.missingWarn)?!d.missingWarn:d.missingWarn},set silentTranslationWarn(I){d.missingWarn=isBoolean(I)?!I:I},get silentFallbackWarn(){return isBoolean(d.fallbackWarn)?!d.fallbackWarn:d.fallbackWarn},set silentFallbackWarn(I){d.fallbackWarn=isBoolean(I)?!I:I},get modifiers(){return d.modifiers},get formatFallbackMessages(){return d.fallbackFormat},set formatFallbackMessages(I){d.fallbackFormat=I},get postTranslation(){return d.getPostTranslationHandler()},set postTranslation(I){d.setPostTranslationHandler(I)},get sync(){return d.inheritLocale},set sync(I){d.inheritLocale=I},get warnHtmlInMessage(){return d.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(I){d.warnHtmlMessage=I!=="off"},get escapeParameterHtml(){return d.escapeParameter},set escapeParameterHtml(I){d.escapeParameter=I},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(I){},get pluralizationRules(){return d.pluralRules||{}},__composer:d,t(...I){const[E,M,S]=I,A={};let T=null,D=null;if(!isString$2(E))throw createI18nError(I18nErrorCodes.INVALID_ARGUMENT);const O=E;return isString$2(M)?A.locale=M:isArray$2(M)?T=M:isPlainObject(M)&&(D=M),isArray$2(S)?T=S:isPlainObject(S)&&(D=S),Reflect.apply(d.t,d,[O,T||D||{},A])},rt(...I){return Reflect.apply(d.rt,d,[...I])},tc(...I){const[E,M,S]=I,A={plural:1};let T=null,D=null;if(!isString$2(E))throw createI18nError(I18nErrorCodes.INVALID_ARGUMENT);const O=E;return isString$2(M)?A.locale=M:isNumber(M)?A.plural=M:isArray$2(M)?T=M:isPlainObject(M)&&(D=M),isString$2(S)?A.locale=S:isArray$2(S)?T=S:isPlainObject(S)&&(D=S),Reflect.apply(d.t,d,[O,T||D||{},A])},te(I,E){return d.te(I,E)},tm(I){return d.tm(I)},getLocaleMessage(I){return d.getLocaleMessage(I)},setLocaleMessage(I,E){d.setLocaleMessage(I,E)},mergeLocaleMessage(I,E){d.mergeLocaleMessage(I,E)},d(...I){return Reflect.apply(d.d,d,[...I])},getDateTimeFormat(I){return d.getDateTimeFormat(I)},setDateTimeFormat(I,E){d.setDateTimeFormat(I,E)},mergeDateTimeFormat(I,E){d.mergeDateTimeFormat(I,E)},n(...I){return Reflect.apply(d.n,d,[...I])},getNumberFormat(I){return d.getNumberFormat(I)},setNumberFormat(I,E){d.setNumberFormat(I,E)},mergeNumberFormat(I,E){d.mergeNumberFormat(I,E)},getChoiceIndex(I,E){return-1}};return x.__extender=_,x}}const baseFormatProps={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:u=>u==="parent"||u==="global",default:"parent"},i18n:{type:Object}};function getInterpolateArg({slots:u},f){return f.length===1&&f[0]==="default"?(u.default?u.default():[]).reduce((_,x)=>[..._,...x.type===Fragment?x.children:[x]],[]):f.reduce((d,_)=>{const x=u[_];return x&&(d[_]=x()),d},{})}function getFragmentableTag(u){return Fragment}const TranslationImpl=defineComponent({name:"i18n-t",props:assign$1({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:u=>isNumber(u)||!isNaN(u)}},baseFormatProps),setup(u,f){const{slots:d,attrs:_}=f,x=u.i18n||useI18n({useScope:u.scope,__useComponent:!0});return()=>{const I=Object.keys(d).filter(D=>D!=="_"),E={};u.locale&&(E.locale=u.locale),u.plural!==void 0&&(E.plural=isString$2(u.plural)?+u.plural:u.plural);const M=getInterpolateArg(f,I),S=x[TranslateVNodeSymbol](u.keypath,M,E),A=assign$1({},_),T=isString$2(u.tag)||isObject$4(u.tag)?u.tag:getFragmentableTag();return h$1(T,A,S)}}}),Translation=TranslationImpl;function isVNode(u){return isArray$2(u)&&!isString$2(u[0])}function renderFormatter(u,f,d,_){const{slots:x,attrs:I}=f;return()=>{const E={part:!0};let M={};u.locale&&(E.locale=u.locale),isString$2(u.format)?E.key=u.format:isObject$4(u.format)&&(isString$2(u.format.key)&&(E.key=u.format.key),M=Object.keys(u.format).reduce((O,j)=>d.includes(j)?assign$1({},O,{[j]:u.format[j]}):O,{}));const S=_(u.value,E,M);let A=[E.key];isArray$2(S)?A=S.map((O,j)=>{const $=x[O.type],W=$?$({[O.type]:O.value,index:j,parts:S}):[O.value];return isVNode(W)&&(W[0].key=`${O.type}-${j}`),W}):isString$2(S)&&(A=[S]);const T=assign$1({},I),D=isString$2(u.tag)||isObject$4(u.tag)?u.tag:getFragmentableTag();return h$1(D,T,A)}}const NumberFormatImpl=defineComponent({name:"i18n-n",props:assign$1({value:{type:Number,required:!0},format:{type:[String,Object]}},baseFormatProps),setup(u,f){const d=u.i18n||useI18n({useScope:"parent",__useComponent:!0});return renderFormatter(u,f,NUMBER_FORMAT_OPTIONS_KEYS,(..._)=>d[NumberPartsSymbol](..._))}}),NumberFormat=NumberFormatImpl,DatetimeFormatImpl=defineComponent({name:"i18n-d",props:assign$1({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},baseFormatProps),setup(u,f){const d=u.i18n||useI18n({useScope:"parent",__useComponent:!0});return renderFormatter(u,f,DATETIME_FORMAT_OPTIONS_KEYS,(..._)=>d[DatetimePartsSymbol](..._))}}),DatetimeFormat=DatetimeFormatImpl;function getComposer$2(u,f){const d=u;if(u.mode==="composition")return d.__getInstance(f)||u.global;{const _=d.__getInstance(f);return _!=null?_.__composer:u.global.__composer}}function vTDirective(u){const f=E=>{const{instance:M,modifiers:S,value:A}=E;if(!M||!M.$)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);const T=getComposer$2(u,M.$),D=parseValue(A);return[Reflect.apply(T.t,T,[...makeParams(D)]),T]};return{created:(E,M)=>{const[S,A]=f(M);inBrowser&&u.global===A&&(E.__i18nWatcher=watch(A.locale,()=>{M.instance&&M.instance.$forceUpdate()})),E.__composer=A,E.textContent=S},unmounted:E=>{inBrowser&&E.__i18nWatcher&&(E.__i18nWatcher(),E.__i18nWatcher=void 0,delete E.__i18nWatcher),E.__composer&&(E.__composer=void 0,delete E.__composer)},beforeUpdate:(E,{value:M})=>{if(E.__composer){const S=E.__composer,A=parseValue(M);E.textContent=Reflect.apply(S.t,S,[...makeParams(A)])}},getSSRProps:E=>{const[M]=f(E);return{textContent:M}}}}function parseValue(u){if(isString$2(u))return{path:u};if(isPlainObject(u)){if(!("path"in u))throw createI18nError(I18nErrorCodes.REQUIRED_VALUE,"path");return u}else throw createI18nError(I18nErrorCodes.INVALID_VALUE)}function makeParams(u){const{path:f,locale:d,args:_,choice:x,plural:I}=u,E={},M=_||{};return isString$2(d)&&(E.locale=d),isNumber(x)&&(E.plural=x),isNumber(I)&&(E.plural=I),[f,M,E]}function apply(u,f,...d){const _=isPlainObject(d[0])?d[0]:{},x=!!_.useI18nComponentName;(isBoolean(_.globalInstall)?_.globalInstall:!0)&&([x?"i18n":Translation.name,"I18nT"].forEach(E=>u.component(E,Translation)),[NumberFormat.name,"I18nN"].forEach(E=>u.component(E,NumberFormat)),[DatetimeFormat.name,"I18nD"].forEach(E=>u.component(E,DatetimeFormat))),u.directive("t",vTDirective(f))}function defineMixin(u,f,d){return{beforeCreate(){const _=getCurrentInstance();if(!_)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);const x=this.$options;if(x.i18n){const I=x.i18n;if(x.__i18n&&(I.__i18n=x.__i18n),I.__root=f,this===this.$root)this.$i18n=mergeToGlobal(u,I);else{I.__injectWithOption=!0,I.__extender=d.__vueI18nExtend,this.$i18n=createVueI18n(I);const E=this.$i18n;E.__extender&&(E.__disposer=E.__extender(this.$i18n))}}else if(x.__i18n)if(this===this.$root)this.$i18n=mergeToGlobal(u,x);else{this.$i18n=createVueI18n({__i18n:x.__i18n,__injectWithOption:!0,__extender:d.__vueI18nExtend,__root:f});const I=this.$i18n;I.__extender&&(I.__disposer=I.__extender(this.$i18n))}else this.$i18n=u;x.__i18nGlobal&&adjustI18nResources(f,x,x),this.$t=(...I)=>this.$i18n.t(...I),this.$rt=(...I)=>this.$i18n.rt(...I),this.$tc=(...I)=>this.$i18n.tc(...I),this.$te=(I,E)=>this.$i18n.te(I,E),this.$d=(...I)=>this.$i18n.d(...I),this.$n=(...I)=>this.$i18n.n(...I),this.$tm=I=>this.$i18n.tm(I),d.__setInstance(_,this.$i18n)},mounted(){},unmounted(){const _=getCurrentInstance();if(!_)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);const x=this.$i18n;delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,x.__disposer&&(x.__disposer(),delete x.__disposer,delete x.__extender),d.__deleteInstance(_),delete this.$i18n}}}function mergeToGlobal(u,f){u.locale=f.locale||u.locale,u.fallbackLocale=f.fallbackLocale||u.fallbackLocale,u.missing=f.missing||u.missing,u.silentTranslationWarn=f.silentTranslationWarn||u.silentFallbackWarn,u.silentFallbackWarn=f.silentFallbackWarn||u.silentFallbackWarn,u.formatFallbackMessages=f.formatFallbackMessages||u.formatFallbackMessages,u.postTranslation=f.postTranslation||u.postTranslation,u.warnHtmlInMessage=f.warnHtmlInMessage||u.warnHtmlInMessage,u.escapeParameterHtml=f.escapeParameterHtml||u.escapeParameterHtml,u.sync=f.sync||u.sync,u.__composer[SetPluralRulesSymbol](f.pluralizationRules||u.pluralizationRules);const d=getLocaleMessages(u.locale,{messages:f.messages,__i18n:f.__i18n});return Object.keys(d).forEach(_=>u.mergeLocaleMessage(_,d[_])),f.datetimeFormats&&Object.keys(f.datetimeFormats).forEach(_=>u.mergeDateTimeFormat(_,f.datetimeFormats[_])),f.numberFormats&&Object.keys(f.numberFormats).forEach(_=>u.mergeNumberFormat(_,f.numberFormats[_])),u}const I18nInjectionKey=makeSymbol("global-vue-i18n");function createI18n(u={},f){const d=__VUE_I18N_LEGACY_API__&&isBoolean(u.legacy)?u.legacy:__VUE_I18N_LEGACY_API__,_=isBoolean(u.globalInjection)?u.globalInjection:!0,x=__VUE_I18N_LEGACY_API__&&d?!!u.allowComposition:!0,I=new Map,[E,M]=createGlobal(u,d),S=makeSymbol("");function A(O){return I.get(O)||null}function T(O,j){I.set(O,j)}function D(O){I.delete(O)}{const O={get mode(){return __VUE_I18N_LEGACY_API__&&d?"legacy":"composition"},get allowComposition(){return x},async install(j,...$){if(j.__VUE_I18N_SYMBOL__=S,j.provide(j.__VUE_I18N_SYMBOL__,O),isPlainObject($[0])){const X=$[0];O.__composerExtend=X.__composerExtend,O.__vueI18nExtend=X.__vueI18nExtend}let W=null;!d&&_&&(W=injectGlobalFields(j,O.global)),__VUE_I18N_FULL_INSTALL__&&apply(j,O,...$),__VUE_I18N_LEGACY_API__&&d&&j.mixin(defineMixin(M,M.__composer,O));const Q=j.unmount;j.unmount=()=>{W&&W(),O.dispose(),Q()}},get global(){return M},dispose(){E.stop()},__instances:I,__getInstance:A,__setInstance:T,__deleteInstance:D};return O}}function useI18n(u={}){const f=getCurrentInstance();if(f==null)throw createI18nError(I18nErrorCodes.MUST_BE_CALL_SETUP_TOP);if(!f.isCE&&f.appContext.app!=null&&!f.appContext.app.__VUE_I18N_SYMBOL__)throw createI18nError(I18nErrorCodes.NOT_INSTALLED);const d=getI18nInstance(f),_=getGlobalComposer(d),x=getComponentOptions(f),I=getScope(u,x);if(__VUE_I18N_LEGACY_API__&&d.mode==="legacy"&&!u.__useComponent){if(!d.allowComposition)throw createI18nError(I18nErrorCodes.NOT_AVAILABLE_IN_LEGACY_MODE);return useI18nForLegacy(f,I,_,u)}if(I==="global")return adjustI18nResources(_,u,x),_;if(I==="parent"){let S=getComposer(d,f,u.__useComponent);return S==null&&(S=_),S}const E=d;let M=E.__getInstance(f);if(M==null){const S=assign$1({},u);"__i18n"in x&&(S.__i18n=x.__i18n),_&&(S.__root=_),M=createComposer(S),E.__composerExtend&&(M[DisposeSymbol]=E.__composerExtend(M)),setupLifeCycle(E,f,M),E.__setInstance(f,M)}return M}function createGlobal(u,f,d){const _=effectScope();{const x=__VUE_I18N_LEGACY_API__&&f?_.run(()=>createVueI18n(u)):_.run(()=>createComposer(u));if(x==null)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);return[_,x]}}function getI18nInstance(u){{const f=inject(u.isCE?I18nInjectionKey:u.appContext.app.__VUE_I18N_SYMBOL__);if(!f)throw createI18nError(u.isCE?I18nErrorCodes.NOT_INSTALLED_WITH_PROVIDE:I18nErrorCodes.UNEXPECTED_ERROR);return f}}function getScope(u,f){return isEmptyObject(u)?"__i18n"in f?"local":"global":u.useScope?u.useScope:"local"}function getGlobalComposer(u){return u.mode==="composition"?u.global:u.global.__composer}function getComposer(u,f,d=!1){let _=null;const x=f.root;let I=getParentComponentInstance(f,d);for(;I!=null;){const E=u;if(u.mode==="composition")_=E.__getInstance(I);else if(__VUE_I18N_LEGACY_API__){const M=E.__getInstance(I);M!=null&&(_=M.__composer,d&&_&&!_[InejctWithOptionSymbol]&&(_=null))}if(_!=null||x===I)break;I=I.parent}return _}function getParentComponentInstance(u,f=!1){return u==null?null:f&&u.vnode.ctx||u.parent}function setupLifeCycle(u,f,d){onMounted(()=>{},f),onUnmounted(()=>{const _=d;u.__deleteInstance(f);const x=_[DisposeSymbol];x&&(x(),delete _[DisposeSymbol])},f)}function useI18nForLegacy(u,f,d,_={}){const x=f==="local",I=shallowRef(null);if(x&&u.proxy&&!(u.proxy.$options.i18n||u.proxy.$options.__i18n))throw createI18nError(I18nErrorCodes.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const E=isBoolean(_.inheritLocale)?_.inheritLocale:!isString$2(_.locale),M=ref(!x||E?d.locale.value:isString$2(_.locale)?_.locale:DEFAULT_LOCALE),S=ref(!x||E?d.fallbackLocale.value:isString$2(_.fallbackLocale)||isArray$2(_.fallbackLocale)||isPlainObject(_.fallbackLocale)||_.fallbackLocale===!1?_.fallbackLocale:M.value),A=ref(getLocaleMessages(M.value,_)),T=ref(isPlainObject(_.datetimeFormats)?_.datetimeFormats:{[M.value]:{}}),D=ref(isPlainObject(_.numberFormats)?_.numberFormats:{[M.value]:{}}),O=x?d.missingWarn:isBoolean(_.missingWarn)||isRegExp(_.missingWarn)?_.missingWarn:!0,j=x?d.fallbackWarn:isBoolean(_.fallbackWarn)||isRegExp(_.fallbackWarn)?_.fallbackWarn:!0,$=x?d.fallbackRoot:isBoolean(_.fallbackRoot)?_.fallbackRoot:!0,W=!!_.fallbackFormat,Q=isFunction$1(_.missing)?_.missing:null,X=isFunction$1(_.postTranslation)?_.postTranslation:null,Y=x?d.warnHtmlMessage:isBoolean(_.warnHtmlMessage)?_.warnHtmlMessage:!0,ie=!!_.escapeParameter,oe=x?d.modifiers:isPlainObject(_.modifiers)?_.modifiers:{},ge=_.pluralRules||x&&d.pluralRules;function be(){return[M.value,S.value,A.value,T.value,D.value]}const ze=computed({get:()=>I.value?I.value.locale.value:M.value,set:Le=>{I.value&&(I.value.locale.value=Le),M.value=Le}}),de=computed({get:()=>I.value?I.value.fallbackLocale.value:S.value,set:Le=>{I.value&&(I.value.fallbackLocale.value=Le),S.value=Le}}),Ce=computed(()=>I.value?I.value.messages.value:A.value),ke=computed(()=>T.value),le=computed(()=>D.value);function re(){return I.value?I.value.getPostTranslationHandler():X}function P(Le){I.value&&I.value.setPostTranslationHandler(Le)}function k(){return I.value?I.value.getMissingHandler():Q}function B(Le){I.value&&I.value.setMissingHandler(Le)}function z(Le){return be(),Le()}function ee(...Le){return I.value?z(()=>Reflect.apply(I.value.t,null,[...Le])):z(()=>"")}function H(...Le){return I.value?Reflect.apply(I.value.rt,null,[...Le]):""}function q(...Le){return I.value?z(()=>Reflect.apply(I.value.d,null,[...Le])):z(()=>"")}function J(...Le){return I.value?z(()=>Reflect.apply(I.value.n,null,[...Le])):z(()=>"")}function U(Le){return I.value?I.value.tm(Le):{}}function Z(Le,ot){return I.value?I.value.te(Le,ot):!1}function ve(Le){return I.value?I.value.getLocaleMessage(Le):{}}function Ye(Le,ot){I.value&&(I.value.setLocaleMessage(Le,ot),A.value[Le]=ot)}function rt(Le,ot){I.value&&I.value.mergeLocaleMessage(Le,ot)}function Ue(Le){return I.value?I.value.getDateTimeFormat(Le):{}}function Qe(Le,ot){I.value&&(I.value.setDateTimeFormat(Le,ot),T.value[Le]=ot)}function vt(Le,ot){I.value&&I.value.mergeDateTimeFormat(Le,ot)}function ri(Le){return I.value?I.value.getNumberFormat(Le):{}}function ci(Le,ot){I.value&&(I.value.setNumberFormat(Le,ot),D.value[Le]=ot)}function tt(Le,ot){I.value&&I.value.mergeNumberFormat(Le,ot)}const et={get id(){return I.value?I.value.id:-1},locale:ze,fallbackLocale:de,messages:Ce,datetimeFormats:ke,numberFormats:le,get inheritLocale(){return I.value?I.value.inheritLocale:E},set inheritLocale(Le){I.value&&(I.value.inheritLocale=Le)},get availableLocales(){return I.value?I.value.availableLocales:Object.keys(A.value)},get modifiers(){return I.value?I.value.modifiers:oe},get pluralRules(){return I.value?I.value.pluralRules:ge},get isGlobal(){return I.value?I.value.isGlobal:!1},get missingWarn(){return I.value?I.value.missingWarn:O},set missingWarn(Le){I.value&&(I.value.missingWarn=Le)},get fallbackWarn(){return I.value?I.value.fallbackWarn:j},set fallbackWarn(Le){I.value&&(I.value.missingWarn=Le)},get fallbackRoot(){return I.value?I.value.fallbackRoot:$},set fallbackRoot(Le){I.value&&(I.value.fallbackRoot=Le)},get fallbackFormat(){return I.value?I.value.fallbackFormat:W},set fallbackFormat(Le){I.value&&(I.value.fallbackFormat=Le)},get warnHtmlMessage(){return I.value?I.value.warnHtmlMessage:Y},set warnHtmlMessage(Le){I.value&&(I.value.warnHtmlMessage=Le)},get escapeParameter(){return I.value?I.value.escapeParameter:ie},set escapeParameter(Le){I.value&&(I.value.escapeParameter=Le)},t:ee,getPostTranslationHandler:re,setPostTranslationHandler:P,getMissingHandler:k,setMissingHandler:B,rt:H,d:q,n:J,tm:U,te:Z,getLocaleMessage:ve,setLocaleMessage:Ye,mergeLocaleMessage:rt,getDateTimeFormat:Ue,setDateTimeFormat:Qe,mergeDateTimeFormat:vt,getNumberFormat:ri,setNumberFormat:ci,mergeNumberFormat:tt};function $e(Le){Le.locale.value=M.value,Le.fallbackLocale.value=S.value,Object.keys(A.value).forEach(ot=>{Le.mergeLocaleMessage(ot,A.value[ot])}),Object.keys(T.value).forEach(ot=>{Le.mergeDateTimeFormat(ot,T.value[ot])}),Object.keys(D.value).forEach(ot=>{Le.mergeNumberFormat(ot,D.value[ot])}),Le.escapeParameter=ie,Le.fallbackFormat=W,Le.fallbackRoot=$,Le.fallbackWarn=j,Le.missingWarn=O,Le.warnHtmlMessage=Y}return onBeforeMount(()=>{if(u.proxy==null||u.proxy.$i18n==null)throw createI18nError(I18nErrorCodes.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const Le=I.value=u.proxy.$i18n.__composer;f==="global"?(M.value=Le.locale.value,S.value=Le.fallbackLocale.value,A.value=Le.messages.value,T.value=Le.datetimeFormats.value,D.value=Le.numberFormats.value):x&&$e(Le)}),et}const globalExportProps=["locale","fallbackLocale","availableLocales"],globalExportMethods=["t","rt","d","n","tm","te"];function injectGlobalFields(u,f){const d=Object.create(null);return globalExportProps.forEach(x=>{const I=Object.getOwnPropertyDescriptor(f,x);if(!I)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);const E=isRef(I.value)?{get(){return I.value.value},set(M){I.value.value=M}}:{get(){return I.get&&I.get()}};Object.defineProperty(d,x,E)}),u.config.globalProperties.$i18n=d,globalExportMethods.forEach(x=>{const I=Object.getOwnPropertyDescriptor(f,x);if(!I||!I.value)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);Object.defineProperty(u.config.globalProperties,`$${x}`,I)}),()=>{delete u.config.globalProperties.$i18n,globalExportMethods.forEach(x=>{delete u.config.globalProperties[`$${x}`]})}}initFeatureFlags();__INTLIFY_JIT_COMPILATION__?registerMessageCompiler(compile):registerMessageCompiler(compileToFunction);registerMessageResolver(resolveValue);registerLocaleFallbacker(fallbackWithLocaleChain);if(__INTLIFY_PROD_DEVTOOLS__){const u=getGlobalThis();u.__INTLIFY__=!0,setDevToolsHook(u.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}function useI18nTypes(){return useI18n()}const defaultCoinIcon="https://coin-img.wepin.io/coinlogo/default_coin_img.svg";let firebaseConfig={};switch("production"){case"stage":firebaseConfig={apiKey:"AIzaSyCSHZi3A84hgBOX6Qr9nsk5LtUx6zdcEhc",authDomain:"wepin-stage.firebaseapp.com",projectId:"wepin-stage",storageBucket:"wepin-stage.appspot.com",messagingSenderId:"852302363833",appId:"1:852302363833:web:0282ae893e7fd4edd5af68",measurementId:"G-FCHRF18ZTE"};break;case"production":firebaseConfig={apiKey:"AIzaSyDGKbvXgyBNB-O9O3-PoLNF_lXDiLQNmm4",authDomain:"wepin-prod.firebaseapp.com",projectId:"wepin-prod",storageBucket:"wepin-prod.appspot.com",messagingSenderId:"953743945029",appId:"1:953743945029:web:9bd25142d64f414154a22c",measurementId:"G-6R0RLZVNMS"};break;default:firebaseConfig={apiKey:"AIzaSyDw95B6LAfT5LhjL-VMAevkeR_X-wSmtnw",authDomain:"wepin-dev.firebaseapp.com",projectId:"wepin-dev",storageBucket:"wepin-dev.appspot.com",messagingSenderId:"1059640642042",appId:"1:1059640642042:web:0e2106d3ff8d1792197c43",measurementId:"G-QXWXHCJJC6"}}const FirebaseConfig=firebaseConfig,consecusiveReqDelay=60*1e3,OOB_CODE_REFRESH_TIME=60,REFRESH_STATUS_DEFAULT="refresh",REFRESH_STATUS_DISABLED="disabled",REFRESH_STATUS_LOADING="loading",REFRESH_TYPE_KEY="TYPE_NFT",DEFAULT_OFFSET=1,LAST_OFFSET=0,DEFAULT_LIMITS=15,BIG_NUMBER_DECIMAL=40,identityURL={resetPassword:`https://identitytoolkit.googleapis.com/v1/accounts:resetPassword?key=${FirebaseConfig.apiKey}`,updateVerifyEmail:`https://identitytoolkit.googleapis.com/v1/accounts:update?key=${FirebaseConfig.apiKey}`},WEPIN_TOKEN="wepin:token",WEPIN_TOKENLESS_URL=["/user/login","/user/exist","/user/verify","/user/password-state","/droplink"],WEPIN_PROMOTION_URL="/promotion",WalletStateVerified=2,WalletStateExported=4,LABEL_REG_EXP=/^[a-zA-Z][a-zA-Z0-9[\]\\/?.,;:|*~`!^\\_+<>@#$%&='(){}\\-]*$/,NUMBER_REG_EXP=/^[0-9]+$/,PIN_REG_EXP=/^\d{6,8}$/,CODE_REG_EXP=/^\d{6}$/,EMAIL_VALID_REG_EXP=/[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/i,PASSWORD_REG_EXP=/^(?=.*[a-zA-Z])(?=.*[0-9]).{8,128}$/,RECOVERY_CODE_REG_EXP=/^[a-f0-9]{6}-[a-f0-9]{6}$/,PUBLIC_URL_REG_EXP=/^(?!.*\/dashboard)(.*\/(hublink|campaign|promotion))/,naverOAuth={dev:{authorizationUrl:"https://nid.naver.com/oauth2.0/authorize",clientId:"fCZgC87oJqB9inkE1EyA"},stage:{authorizationUrl:"https://nid.naver.com/oauth2.0/authorize",clientId:"dlIBW3ZmHPBTynCs48WS"},production:{authorizationUrl:"https://nid.naver.com/oauth2.0/authorize",clientId:"mmtcizJvO7VtmBuUt8fL"}},discordOAuth={dev:{authorizationUrl:"https://discord.com/api/oauth2/authorize?&scope=email%20identify",clientId:"1169144638104424519"},stage:{authorizationUrl:"https://discord.com/api/oauth2/authorize?&scope=email%20identify",clientId:"1174932048897638490"},production:{authorizationUrl:"https://discord.com/api/oauth2/authorize?&scope=email%20identify",clientId:"1174932930641006622"}},googleOAuth={dev:{authorizationUrl:"https://accounts.google.com/o/oauth2/v2/auth?scope=email%20profile%20openid",clientId:"1059640642042-ol893cg9ptvrhm1ss35holj6qrvjbnto.apps.googleusercontent.com"},stage:{authorizationUrl:"https://accounts.google.com/o/oauth2/v2/auth?scope=email%20profile%20openid",clientId:"852302363833-it1ad7qe9284vreb5fa54esug1ikobor.apps.googleusercontent.com"},production:{authorizationUrl:"https://accounts.google.com/o/oauth2/v2/auth?scope=email%20profile%20openid",clientId:"953743945029-c70iisf9mtjpuq1opoedd62spohib3pg.apps.googleusercontent.com"}},appleOAuth={dev:{authorizationUrl:"https://appleid.apple.com/auth/authorize",clientId:"io.wepin"},stage:{authorizationUrl:"https://appleid.apple.com/auth/authorize",clientId:"io.wepin.stage"},production:{authorizationUrl:"https://appleid.apple.com/auth/authorize",clientId:"io.wepin.prod"}},User2FAState={UNSET:0,CREATED:1,AUTHENTICATED:2,RECOVERY_CHECKED:3},defaultBreakPoints=index$3.wepinDefaultBreakPoints,APIEvents={request:"request",response:"response"};var eventemitter2={exports:{}};(function(u,f){(function(d){var _=Object.hasOwnProperty,x=Array.isArray?Array.isArray:function(q){return Object.prototype.toString.call(q)==="[object Array]"},I=10,E=typeof browserExports=="object"&&typeof browserExports.nextTick=="function",M=typeof Symbol=="function",S=typeof Reflect=="object",A=typeof setImmediate=="function",T=A?setImmediate:setTimeout,D=M?S&&typeof Reflect.ownKeys=="function"?Reflect.ownKeys:function(H){var q=Object.getOwnPropertyNames(H);return q.push.apply(q,Object.getOwnPropertySymbols(H)),q}:Object.keys;function O(){this._events={},this._conf&&j.call(this,this._conf)}function j(H){H&&(this._conf=H,H.delimiter&&(this.delimiter=H.delimiter),H.maxListeners!==d&&(this._maxListeners=H.maxListeners),H.wildcard&&(this.wildcard=H.wildcard),H.newListener&&(this._newListener=H.newListener),H.removeListener&&(this._removeListener=H.removeListener),H.verboseMemoryLeak&&(this.verboseMemoryLeak=H.verboseMemoryLeak),H.ignoreErrors&&(this.ignoreErrors=H.ignoreErrors),this.wildcard&&(this.listenerTree={}))}function $(H,q){var J="(node) warning: possible EventEmitter memory leak detected. "+H+" listeners added. Use emitter.setMaxListeners() to increase limit.";if(this.verboseMemoryLeak&&(J+=" Event name: "+q+"."),typeof browserExports<"u"&&browserExports.emitWarning){var U=new Error(J);U.name="MaxListenersExceededWarning",U.emitter=this,U.count=H,browserExports.emitWarning(U)}else console.error(J),console.trace&&console.trace()}var W=function(H,q,J){var U=arguments.length;switch(U){case 0:return[];case 1:return[H];case 2:return[H,q];case 3:return[H,q,J];default:for(var Z=new Array(U);U--;)Z[U]=arguments[U];return Z}};function Q(H,q){for(var J={},U,Z=H.length,ve=q?q.length:0,Ye=0;Ye<Z;Ye++)U=H[Ye],J[U]=Ye<ve?q[Ye]:d;return J}function X(H,q,J){this._emitter=H,this._target=q,this._listeners={},this._listenersCount=0;var U,Z;if((J.on||J.off)&&(U=J.on,Z=J.off),q.addEventListener?(U=q.addEventListener,Z=q.removeEventListener):q.addListener?(U=q.addListener,Z=q.removeListener):q.on&&(U=q.on,Z=q.off),!U&&!Z)throw Error("target does not implement any known event API");if(typeof U!="function")throw TypeError("on method must be a function");if(typeof Z!="function")throw TypeError("off method must be a function");this._on=U,this._off=Z;var ve=H._observers;ve?ve.push(this):H._observers=[this]}Object.assign(X.prototype,{subscribe:function(H,q,J){var U=this,Z=this._target,ve=this._emitter,Ye=this._listeners,rt=function(){var Ue=W.apply(null,arguments),Qe={data:Ue,name:q,original:H};if(J){var vt=J.call(Z,Qe);vt!==!1&&ve.emit.apply(ve,[Qe.name].concat(Ue));return}ve.emit.apply(ve,[q].concat(Ue))};if(Ye[H])throw Error("Event '"+H+"' is already listening");this._listenersCount++,ve._newListener&&ve._removeListener&&!U._onNewListener?(this._onNewListener=function(Ue){Ue===q&&Ye[H]===null&&(Ye[H]=rt,U._on.call(Z,H,rt))},ve.on("newListener",this._onNewListener),this._onRemoveListener=function(Ue){Ue===q&&!ve.hasListeners(Ue)&&Ye[H]&&(Ye[H]=null,U._off.call(Z,H,rt))},Ye[H]=null,ve.on("removeListener",this._onRemoveListener)):(Ye[H]=rt,U._on.call(Z,H,rt))},unsubscribe:function(H){var q=this,J=this._listeners,U=this._emitter,Z,ve,Ye=this._off,rt=this._target,Ue;if(H&&typeof H!="string")throw TypeError("event must be a string");function Qe(){q._onNewListener&&(U.off("newListener",q._onNewListener),U.off("removeListener",q._onRemoveListener),q._onNewListener=null,q._onRemoveListener=null);var vt=de.call(U,q);U._observers.splice(vt,1)}if(H){if(Z=J[H],!Z)return;Ye.call(rt,H,Z),delete J[H],--this._listenersCount||Qe()}else{for(ve=D(J),Ue=ve.length;Ue-- >0;)H=ve[Ue],Ye.call(rt,H,J[H]);this._listeners={},this._listenersCount=0,Qe()}}});function Y(H,q,J,U){var Z=Object.assign({},q);if(!H)return Z;if(typeof H!="object")throw TypeError("options must be an object");var ve=Object.keys(H),Ye=ve.length,rt,Ue,Qe;function vt(ci){throw Error('Invalid "'+rt+'" option value'+(ci?". Reason: "+ci:""))}for(var ri=0;ri<Ye;ri++){if(rt=ve[ri],!U&&!_.call(q,rt))throw Error('Unknown "'+rt+'" option');Ue=H[rt],Ue!==d&&(Qe=J[rt],Z[rt]=Qe?Qe(Ue,vt):Ue)}return Z}function ie(H,q){return(typeof H!="function"||!H.hasOwnProperty("prototype"))&&q("value must be a constructor"),H}function oe(H){var q="value must be type of "+H.join("|"),J=H.length,U=H[0],Z=H[1];return J===1?function(ve,Ye){if(typeof ve===U)return ve;Ye(q)}:J===2?function(ve,Ye){var rt=typeof ve;if(rt===U||rt===Z)return ve;Ye(q)}:function(ve,Ye){for(var rt=typeof ve,Ue=J;Ue-- >0;)if(rt===H[Ue])return ve;Ye(q)}}var ge=oe(["function"]),be=oe(["object","function"]);function ze(H,q,J){var U,Z,ve=0,Ye,rt=new H(function(Ue,Qe,vt){J=Y(J,{timeout:0,overload:!1},{timeout:function(et,$e){return et*=1,(typeof et!="number"||et<0||!Number.isFinite(et))&&$e("timeout must be a positive number"),et}}),U=!J.overload&&typeof H.prototype.cancel=="function"&&typeof vt=="function";function ri(){Z&&(Z=null),ve&&(clearTimeout(ve),ve=0)}var ci=function(et){ri(),Ue(et)},tt=function(et){ri(),Qe(et)};U?q(ci,tt,vt):(Z=[function(et){tt(et||Error("canceled"))}],q(ci,tt,function(et){if(Ye)throw Error("Unable to subscribe on cancel event asynchronously");if(typeof et!="function")throw TypeError("onCancel callback must be a function");Z.push(et)}),Ye=!0),J.timeout>0&&(ve=setTimeout(function(){var et=Error("timeout");et.code="ETIMEDOUT",ve=0,rt.cancel(et),Qe(et)},J.timeout))});return U||(rt.cancel=function(Ue){if(Z){for(var Qe=Z.length,vt=1;vt<Qe;vt++)Z[vt](Ue);Z[0](Ue),Z=null}}),rt}function de(H){var q=this._observers;if(!q)return-1;for(var J=q.length,U=0;U<J;U++)if(q[U]._target===H)return U;return-1}function Ce(H,q,J,U,Z){if(!J)return null;if(U===0){var ve=typeof q;if(ve==="string"){var Ye,rt,Ue=0,Qe=0,vt=this.delimiter,ri=vt.length;if((rt=q.indexOf(vt))!==-1){Ye=new Array(5);do Ye[Ue++]=q.slice(Qe,rt),Qe=rt+ri;while((rt=q.indexOf(vt,Qe))!==-1);Ye[Ue++]=q.slice(Qe),q=Ye,Z=Ue}else q=[q],Z=1}else ve==="object"?Z=q.length:(q=[q],Z=1)}var ci=null,tt,et,$e,Le,ot,Oe=q[U],Ne=q[U+1],Fe,Je;if(U===Z)J._listeners&&(typeof J._listeners=="function"?(H&&H.push(J._listeners),ci=[J]):(H&&H.push.apply(H,J._listeners),ci=[J]));else if(Oe==="*"){for(Fe=D(J),rt=Fe.length;rt-- >0;)tt=Fe[rt],tt!=="_listeners"&&(Je=Ce(H,q,J[tt],U+1,Z),Je&&(ci?ci.push.apply(ci,Je):ci=Je));return ci}else if(Oe==="**"){for(ot=U+1===Z||U+2===Z&&Ne==="*",ot&&J._listeners&&(ci=Ce(H,q,J,Z,Z)),Fe=D(J),rt=Fe.length;rt-- >0;)tt=Fe[rt],tt!=="_listeners"&&(tt==="*"||tt==="**"?(J[tt]._listeners&&!ot&&(Je=Ce(H,q,J[tt],Z,Z),Je&&(ci?ci.push.apply(ci,Je):ci=Je)),Je=Ce(H,q,J[tt],U,Z)):tt===Ne?Je=Ce(H,q,J[tt],U+2,Z):Je=Ce(H,q,J[tt],U,Z),Je&&(ci?ci.push.apply(ci,Je):ci=Je));return ci}else J[Oe]&&(ci=Ce(H,q,J[Oe],U+1,Z));if(et=J["*"],et&&Ce(H,q,et,U+1,Z),$e=J["**"],$e)if(U<Z)for($e._listeners&&Ce(H,q,$e,Z,Z),Fe=D($e),rt=Fe.length;rt-- >0;)tt=Fe[rt],tt!=="_listeners"&&(tt===Ne?Ce(H,q,$e[tt],U+2,Z):tt===Oe?Ce(H,q,$e[tt],U+1,Z):(Le={},Le[tt]=$e[tt],Ce(H,q,{"**":Le},U+1,Z)));else $e._listeners?Ce(H,q,$e,Z,Z):$e["*"]&&$e["*"]._listeners&&Ce(H,q,$e["*"],Z,Z);return ci}function ke(H,q,J){var U=0,Z=0,ve,Ye=this.delimiter,rt=Ye.length,Ue;if(typeof H=="string")if((ve=H.indexOf(Ye))!==-1){Ue=new Array(5);do Ue[U++]=H.slice(Z,ve),Z=ve+rt;while((ve=H.indexOf(Ye,Z))!==-1);Ue[U++]=H.slice(Z)}else Ue=[H],U=1;else Ue=H,U=H.length;if(U>1){for(ve=0;ve+1<U;ve++)if(Ue[ve]==="**"&&Ue[ve+1]==="**")return}var Qe=this.listenerTree,vt;for(ve=0;ve<U;ve++)if(vt=Ue[ve],Qe=Qe[vt]||(Qe[vt]={}),ve===U-1)return Qe._listeners?(typeof Qe._listeners=="function"&&(Qe._listeners=[Qe._listeners]),J?Qe._listeners.unshift(q):Qe._listeners.push(q),!Qe._listeners.warned&&this._maxListeners>0&&Qe._listeners.length>this._maxListeners&&(Qe._listeners.warned=!0,$.call(this,Qe._listeners.length,vt))):Qe._listeners=q,!0;return!0}function le(H,q,J,U){for(var Z=D(H),ve=Z.length,Ye,rt,Ue,Qe=H._listeners,vt;ve-- >0;)rt=Z[ve],Ye=H[rt],rt==="_listeners"?Ue=J:Ue=J?J.concat(rt):[rt],vt=U||typeof rt=="symbol",Qe&&q.push(vt?Ue:Ue.join(this.delimiter)),typeof Ye=="object"&&le.call(this,Ye,q,Ue,vt);return q}function re(H){for(var q=D(H),J=q.length,U,Z,ve;J-- >0;)Z=q[J],U=H[Z],U&&(ve=!0,Z!=="_listeners"&&!re(U)&&delete H[Z]);return ve}function P(H,q,J){this.emitter=H,this.event=q,this.listener=J}P.prototype.off=function(){return this.emitter.off(this.event,this.listener),this};function k(H,q,J){if(J===!0)Z=!0;else if(J===!1)U=!0;else{if(!J||typeof J!="object")throw TypeError("options should be an object or true");var U=J.async,Z=J.promisify,ve=J.nextTick,Ye=J.objectify}if(U||ve||Z){var rt=q,Ue=q._origin||q;if(ve&&!E)throw Error("process.nextTick is not supported");Z===d&&(Z=q.constructor.name==="AsyncFunction"),q=function(){var Qe=arguments,vt=this,ri=this.event;return Z?ve?Promise.resolve():new Promise(function(ci){T(ci)}).then(function(){return vt.event=ri,rt.apply(vt,Qe)}):(ve?browserExports.nextTick:T)(function(){vt.event=ri,rt.apply(vt,Qe)})},q._async=!0,q._origin=Ue}return[q,Ye?new P(this,H,q):this]}function B(H){this._events={},this._newListener=!1,this._removeListener=!1,this.verboseMemoryLeak=!1,j.call(this,H)}B.EventEmitter2=B,B.prototype.listenTo=function(H,q,J){if(typeof H!="object")throw TypeError("target musts be an object");var U=this;J=Y(J,{on:d,off:d,reducers:d},{on:ge,off:ge,reducers:be});function Z(ve){if(typeof ve!="object")throw TypeError("events must be an object");var Ye=J.reducers,rt=de.call(U,H),Ue;rt===-1?Ue=new X(U,H,J):Ue=U._observers[rt];for(var Qe=D(ve),vt=Qe.length,ri,ci=typeof Ye=="function",tt=0;tt<vt;tt++)ri=Qe[tt],Ue.subscribe(ri,ve[ri]||ri,ci?Ye:Ye&&Ye[ri])}return x(q)?Z(Q(q)):Z(typeof q=="string"?Q(q.split(/\s+/)):q),this},B.prototype.stopListeningTo=function(H,q){var J=this._observers;if(!J)return!1;var U=J.length,Z,ve=!1;if(H&&typeof H!="object")throw TypeError("target should be an object");for(;U-- >0;)Z=J[U],(!H||Z._target===H)&&(Z.unsubscribe(q),ve=!0);return ve},B.prototype.delimiter=".",B.prototype.setMaxListeners=function(H){H!==d&&(this._maxListeners=H,this._conf||(this._conf={}),this._conf.maxListeners=H)},B.prototype.getMaxListeners=function(){return this._maxListeners},B.prototype.event="",B.prototype.once=function(H,q,J){return this._once(H,q,!1,J)},B.prototype.prependOnceListener=function(H,q,J){return this._once(H,q,!0,J)},B.prototype._once=function(H,q,J,U){return this._many(H,1,q,J,U)},B.prototype.many=function(H,q,J,U){return this._many(H,q,J,!1,U)},B.prototype.prependMany=function(H,q,J,U){return this._many(H,q,J,!0,U)},B.prototype._many=function(H,q,J,U,Z){var ve=this;if(typeof J!="function")throw new Error("many only accepts instances of Function");function Ye(){return--q===0&&ve.off(H,Ye),J.apply(this,arguments)}return Ye._origin=J,this._on(H,Ye,U,Z)},B.prototype.emit=function(){if(!this._events&&!this._all)return!1;this._events||O.call(this);var H=arguments[0],q,J=this.wildcard,U,Z,ve,Ye,rt;if(H==="newListener"&&!this._newListener&&!this._events.newListener)return!1;if(J&&(q=H,H!=="newListener"&&H!=="removeListener"&&typeof H=="object")){if(Z=H.length,M){for(ve=0;ve<Z;ve++)if(typeof H[ve]=="symbol"){rt=!0;break}}rt||(H=H.join(this.delimiter))}var Ue=arguments.length,Qe;if(this._all&&this._all.length)for(Qe=this._all.slice(),ve=0,Z=Qe.length;ve<Z;ve++)switch(this.event=H,Ue){case 1:Qe[ve].call(this,H);break;case 2:Qe[ve].call(this,H,arguments[1]);break;case 3:Qe[ve].call(this,H,arguments[1],arguments[2]);break;default:Qe[ve].apply(this,arguments)}if(J)Qe=[],Ce.call(this,Qe,q,this.listenerTree,0,Z);else if(Qe=this._events[H],typeof Qe=="function"){switch(this.event=H,Ue){case 1:Qe.call(this);break;case 2:Qe.call(this,arguments[1]);break;case 3:Qe.call(this,arguments[1],arguments[2]);break;default:for(U=new Array(Ue-1),Ye=1;Ye<Ue;Ye++)U[Ye-1]=arguments[Ye];Qe.apply(this,U)}return!0}else Qe&&(Qe=Qe.slice());if(Qe&&Qe.length){if(Ue>3)for(U=new Array(Ue-1),Ye=1;Ye<Ue;Ye++)U[Ye-1]=arguments[Ye];for(ve=0,Z=Qe.length;ve<Z;ve++)switch(this.event=H,Ue){case 1:Qe[ve].call(this);break;case 2:Qe[ve].call(this,arguments[1]);break;case 3:Qe[ve].call(this,arguments[1],arguments[2]);break;default:Qe[ve].apply(this,U)}return!0}else if(!this.ignoreErrors&&!this._all&&H==="error")throw arguments[1]instanceof Error?arguments[1]:new Error("Uncaught, unspecified 'error' event.");return!!this._all},B.prototype.emitAsync=function(){if(!this._events&&!this._all)return!1;this._events||O.call(this);var H=arguments[0],q=this.wildcard,J,U,Z,ve,Ye,rt;if(H==="newListener"&&!this._newListener&&!this._events.newListener)return Promise.resolve([!1]);if(q&&(J=H,H!=="newListener"&&H!=="removeListener"&&typeof H=="object")){if(ve=H.length,M){for(Ye=0;Ye<ve;Ye++)if(typeof H[Ye]=="symbol"){U=!0;break}}U||(H=H.join(this.delimiter))}var Ue=[],Qe=arguments.length,vt;if(this._all)for(Ye=0,ve=this._all.length;Ye<ve;Ye++)switch(this.event=H,Qe){case 1:Ue.push(this._all[Ye].call(this,H));break;case 2:Ue.push(this._all[Ye].call(this,H,arguments[1]));break;case 3:Ue.push(this._all[Ye].call(this,H,arguments[1],arguments[2]));break;default:Ue.push(this._all[Ye].apply(this,arguments))}if(q?(vt=[],Ce.call(this,vt,J,this.listenerTree,0)):vt=this._events[H],typeof vt=="function")switch(this.event=H,Qe){case 1:Ue.push(vt.call(this));break;case 2:Ue.push(vt.call(this,arguments[1]));break;case 3:Ue.push(vt.call(this,arguments[1],arguments[2]));break;default:for(Z=new Array(Qe-1),rt=1;rt<Qe;rt++)Z[rt-1]=arguments[rt];Ue.push(vt.apply(this,Z))}else if(vt&&vt.length){if(vt=vt.slice(),Qe>3)for(Z=new Array(Qe-1),rt=1;rt<Qe;rt++)Z[rt-1]=arguments[rt];for(Ye=0,ve=vt.length;Ye<ve;Ye++)switch(this.event=H,Qe){case 1:Ue.push(vt[Ye].call(this));break;case 2:Ue.push(vt[Ye].call(this,arguments[1]));break;case 3:Ue.push(vt[Ye].call(this,arguments[1],arguments[2]));break;default:Ue.push(vt[Ye].apply(this,Z))}}else if(!this.ignoreErrors&&!this._all&&H==="error")return arguments[1]instanceof Error?Promise.reject(arguments[1]):Promise.reject("Uncaught, unspecified 'error' event.");return Promise.all(Ue)},B.prototype.on=function(H,q,J){return this._on(H,q,!1,J)},B.prototype.prependListener=function(H,q,J){return this._on(H,q,!0,J)},B.prototype.onAny=function(H){return this._onAny(H,!1)},B.prototype.prependAny=function(H){return this._onAny(H,!0)},B.prototype.addListener=B.prototype.on,B.prototype._onAny=function(H,q){if(typeof H!="function")throw new Error("onAny only accepts instances of Function");return this._all||(this._all=[]),q?this._all.unshift(H):this._all.push(H),this},B.prototype._on=function(H,q,J,U){if(typeof H=="function")return this._onAny(H,q),this;if(typeof q!="function")throw new Error("on only accepts instances of Function");this._events||O.call(this);var Z=this,ve;return U!==d&&(ve=k.call(this,H,q,U),q=ve[0],Z=ve[1]),this._newListener&&this.emit("newListener",H,q),this.wildcard?(ke.call(this,H,q,J),Z):(this._events[H]?(typeof this._events[H]=="function"&&(this._events[H]=[this._events[H]]),J?this._events[H].unshift(q):this._events[H].push(q),!this._events[H].warned&&this._maxListeners>0&&this._events[H].length>this._maxListeners&&(this._events[H].warned=!0,$.call(this,this._events[H].length,H))):this._events[H]=q,Z)},B.prototype.off=function(H,q){if(typeof q!="function")throw new Error("removeListener only takes instances of Function");var J,U=[];if(this.wildcard){var Z=typeof H=="string"?H.split(this.delimiter):H.slice();if(U=Ce.call(this,null,Z,this.listenerTree,0),!U)return this}else{if(!this._events[H])return this;J=this._events[H],U.push({_listeners:J})}for(var ve=0;ve<U.length;ve++){var Ye=U[ve];if(J=Ye._listeners,x(J)){for(var rt=-1,Ue=0,Qe=J.length;Ue<Qe;Ue++)if(J[Ue]===q||J[Ue].listener&&J[Ue].listener===q||J[Ue]._origin&&J[Ue]._origin===q){rt=Ue;break}if(rt<0)continue;return this.wildcard?Ye._listeners.splice(rt,1):this._events[H].splice(rt,1),J.length===0&&(this.wildcard?delete Ye._listeners:delete this._events[H]),this._removeListener&&this.emit("removeListener",H,q),this}else(J===q||J.listener&&J.listener===q||J._origin&&J._origin===q)&&(this.wildcard?delete Ye._listeners:delete this._events[H],this._removeListener&&this.emit("removeListener",H,q))}return this.listenerTree&&re(this.listenerTree),this},B.prototype.offAny=function(H){var q=0,J=0,U;if(H&&this._all&&this._all.length>0){for(U=this._all,q=0,J=U.length;q<J;q++)if(H===U[q])return U.splice(q,1),this._removeListener&&this.emit("removeListenerAny",H),this}else{if(U=this._all,this._removeListener)for(q=0,J=U.length;q<J;q++)this.emit("removeListenerAny",U[q]);this._all=[]}return this},B.prototype.removeListener=B.prototype.off,B.prototype.removeAllListeners=function(H){if(H===d)return!this._events||O.call(this),this;if(this.wildcard){var q=Ce.call(this,null,H,this.listenerTree,0),J,U;if(!q)return this;for(U=0;U<q.length;U++)J=q[U],J._listeners=null;this.listenerTree&&re(this.listenerTree)}else this._events&&(this._events[H]=null);return this},B.prototype.listeners=function(H){var q=this._events,J,U,Z,ve,Ye;if(H===d){if(this.wildcard)throw Error("event name required for wildcard emitter");if(!q)return[];for(J=D(q),ve=J.length,Z=[];ve-- >0;)U=q[J[ve]],typeof U=="function"?Z.push(U):Z.push.apply(Z,U);return Z}else{if(this.wildcard){if(Ye=this.listenerTree,!Ye)return[];var rt=[],Ue=typeof H=="string"?H.split(this.delimiter):H.slice();return Ce.call(this,rt,Ue,Ye,0),rt}return q?(U=q[H],U?typeof U=="function"?[U]:U:[]):[]}},B.prototype.eventNames=function(H){var q=this._events;return this.wildcard?le.call(this,this.listenerTree,[],null,H):q?D(q):[]},B.prototype.listenerCount=function(H){return this.listeners(H).length},B.prototype.hasListeners=function(H){if(this.wildcard){var q=[],J=typeof H=="string"?H.split(this.delimiter):H.slice();return Ce.call(this,q,J,this.listenerTree,0),q.length>0}var U=this._events,Z=this._all;return!!(Z&&Z.length||U&&(H===d?D(U).length:U[H]))},B.prototype.listenersAny=function(){return this._all?this._all:[]},B.prototype.waitFor=function(H,q){var J=this,U=typeof q;return U==="number"?q={timeout:q}:U==="function"&&(q={filter:q}),q=Y(q,{timeout:0,filter:d,handleError:!1,Promise,overload:!1},{filter:ge,Promise:ie}),ze(q.Promise,function(Z,ve,Ye){function rt(){var Ue=q.filter;if(!(Ue&&!Ue.apply(J,arguments)))if(J.off(H,rt),q.handleError){var Qe=arguments[0];Qe?ve(Qe):Z(W.apply(null,arguments).slice(1))}else Z(W.apply(null,arguments))}Ye(function(){J.off(H,rt)}),J._on(H,rt,!1)},{timeout:q.timeout,overload:q.overload})};function z(H,q,J){J=Y(J,{Promise,timeout:0,overload:!1},{Promise:ie});var U=J.Promise;return ze(U,function(Z,ve,Ye){var rt;if(typeof H.addEventListener=="function"){rt=function(){Z(W.apply(null,arguments))},Ye(function(){H.removeEventListener(q,rt)}),H.addEventListener(q,rt,{once:!0});return}var Ue=function(){Qe&&H.removeListener("error",Qe),Z(W.apply(null,arguments))},Qe;q!=="error"&&(Qe=function(vt){H.removeListener(q,Ue),ve(vt)},H.once("error",Qe)),Ye(function(){Qe&&H.removeListener("error",Qe),H.removeListener(q,Ue)}),H.once(q,Ue)},{timeout:J.timeout,overload:J.overload})}var ee=B.prototype;Object.defineProperties(B,{defaultMaxListeners:{get:function(){return ee._maxListeners},set:function(H){if(typeof H!="number"||H<0||Number.isNaN(H))throw TypeError("n must be a non-negative number");ee._maxListeners=H},enumerable:!0},once:{value:z,writable:!0,configurable:!0}}),Object.defineProperties(ee,{_maxListeners:{value:I,writable:!0,configurable:!0},_observers:{value:null,writable:!0,configurable:!0}}),typeof d=="function"&&d.amd?d(function(){return B}):u.exports=B})()})(eventemitter2);var eventemitter2Exports=eventemitter2.exports;class APIResponse{constructor({data:f,status:d,headers:_,request:x}){aM(this,"data");aM(this,"status");aM(this,"headers");aM(this,"request");this.data=f,this.status=d,this.headers=_,this.request=x}}class NetworkFetchError extends Error{constructor(d,_){const x=d.data;typeof x?.message=="string"?_=x.message:typeof x?.message=="object"&&typeof x.message.message=="string"&&(_=x.message.message);super(_);aM(this,"response");aM(this,"data");this.response=d,this.data=x}get reasonData(){return this.data}get isInvalidPIN(){return typeof this.data.message=="object"&&this.data.message.data?.RemainPinTryCnt!==void 0}get remainPinTryCnt(){if(typeof this.data.message=="object"&&this.data.message.data?.RemainPinTryCnt!==void 0)return this.data.message.data.RemainPinTryCnt}get pinTryCnt(){if(typeof this.data.message=="object"&&this.data.message.data&&typeof this.data.message=="object")return this.data.message.data.RemainPinTryCnt}}class FetchAPI extends eventemitter2Exports{constructor(f){super(),this.baseUrl=f}async send(f,d){await this.emitAsync(APIEvents.request,f,d||{});const{url:_,urlParams:x,method:I,data:E,headers:M}=f,S=this.baseUrl+_,A=this.getUrlWithParams(S,x),[T,D]=E instanceof FormData?[E,{}]:[typeof E!="string"?JSON.stringify(E):E,{"Content-Type":"application/json"}],O=await fetch(A,{method:I,headers:Object.assign(M||{},D),body:T,credentials:f.withCredentials?"include":"same-origin"}),j=await O.json(),$=this.convertHeadersToPlainObject(O.headers),W=new APIResponse({data:j,status:O.status,headers:$,request:f});if(await this.emitAsync(APIEvents.response,W,d||{}),O.status<200||O.status>=400)throw new NetworkFetchError(W,`Network Error : request to ${_}`);return W}getUrlWithParams(f,d){if(!d)return f;const _=new URL(f);return Object.entries(d).forEach(([x,I])=>{I&&_.searchParams.append(x,I)}),_.toString()}convertHeadersToPlainObject(f){const d={};for(const _ of Object.keys(f))d[_]=f.get(_);return d}addListener(f,d){return super.addListener(f,d)}on(f,d,_){return super.on(f,d,_)}prependListener(f,d,_){return super.prependListener(f,d,_)}once(f,d,_){return super.once(f,d,_)}emit(f,...d){return super.emit(f,...d)}emitAsync(f,...d){return super.emitAsync(f,...d)}}class APIRequest{constructor({data:f,headers:d,url:_,urlParams:x,withCredentials:I=!1,method:E}){aM(this,"data");aM(this,"headers");aM(this,"url");aM(this,"urlParams");aM(this,"withCredentials");aM(this,"method");this.data=f,this.headers=d,this.url=_,this.urlParams=x,this.withCredentials=I,this.method=E}}class AccountAPI{constructor(f){aM(this,"basePath","/account");this.fetcher=f}async createAccount(f){const d=new APIRequest({url:`${this.basePath}/create`,method:"POST",data:f,withCredentials:!0});return(await this.fetcher.send(d)).data}async updateAccount(f,d){const _=new APIRequest({url:`${this.basePath}/${f.accountId}/modify`,method:"PATCH",data:d,withCredentials:!0});return(await this.fetcher.send(_)).data}async deleteAccount(f){const d=new APIRequest({url:`${this.basePath}/${f.accountId}`,method:"DELETE",withCredentials:!0});return(await this.fetcher.send(d)).data}async getAccount(f){const d=new APIRequest({url:`${this.basePath}/${f.accountId}`,method:"GET",withCredentials:!0});return(await this.fetcher.send(d)).data}async getAccountList(f){const d=new APIRequest({url:`${this.basePath}`,method:"GET",urlParams:f,withCredentials:!0});return(await this.fetcher.send(d)).data}async updateAccountList(f){const d=new APIRequest({url:`${this.basePath}/modify`,method:"PATCH",withCredentials:!0,data:f});return(await this.fetcher.send(d)).data}}var dist$1={},account$2={},DeleteAccount={};Object.defineProperty(DeleteAccount,"__esModule",{value:!0});var GetAccount={};Object.defineProperty(GetAccount,"__esModule",{value:!0});var GetAccountList={};Object.defineProperty(GetAccountList,"__esModule",{value:!0});var UpdateAccount={};Object.defineProperty(UpdateAccount,"__esModule",{value:!0});var UpdateAccountList={};Object.defineProperty(UpdateAccountList,"__esModule",{value:!0});var CreateAccount={};Object.defineProperty(CreateAccount,"__esModule",{value:!0});var ReaddressAccount={};Object.defineProperty(ReaddressAccount,"__esModule",{value:!0});var __createBinding$k=commonjsGlobal$1&&commonjsGlobal$1.__createBinding||(Object.create?function(u,f,d,_){_===void 0&&(_=d);var x=Object.getOwnPropertyDescriptor(f,d);(!x||("get"in x?!f.__esModule:x.writable||x.configurable))&&(x={enumerable:!0,get:function(){return f[d]}}),Object.defineProperty(u,_,x)}:function(u,f,d,_){_===void 0&&(_=d),u[_]=f[d]}),__setModuleDefault$k=commonjsGlobal$1&&commonjsGlobal$1.__setModuleDefault||(Object.create?function(u,f){Object.defineProperty(u,"default",{enumerable:!0,value:f})}:function(u,f){u.default=f}),__importStar$k=commonjsGlobal$1&&commonjsGlobal$1.__importStar||function(u){if(u&&u.__esModule)return u;var f={};if(u!=null)for(var d in u)d!=="default"&&Object.prototype.hasOwnProperty.call(u,d)&&__createBinding$k(f,u,d);return __setModuleDefault$k(f,u),f};Object.defineProperty(account$2,"__esModule",{value:!0});account$2.ReaddressAccount=account$2.CreateAccount=account$2.UpdateAccountList=account$2.UpdateAccount=account$2.GetAccountList=account$2.GetAccount=account$2.DeleteAccount=void 0;account$2.DeleteAccount=__importStar$k(DeleteAccount);account$2.GetAccount=__importStar$k(GetAccount);account$2.GetAccountList=__importStar$k(GetAccountList);account$2.UpdateAccount=__importStar$k(UpdateAccount);account$2.UpdateAccountList=__importStar$k(UpdateAccountList);account$2.CreateAccount=__importStar$k(CreateAccount);account$2.ReaddressAccount=__importStar$k(ReaddressAccount);var coin={},GetCoinLatestPrice={};Object.defineProperty(GetCoinLatestPrice,"__esModule",{value:!0});var GetCoinLatestPriceOfSpecificCoin={};Object.defineProperty(GetCoinLatestPriceOfSpecificCoin,"__esModule",{value:!0});var GetCoinLatestPriceOfSpecificToken={};Object.defineProperty(GetCoinLatestPriceOfSpecificToken,"__esModule",{value:!0});var GetCoinInfoList={};Object.defineProperty(GetCoinInfoList,"__esModule",{value:!0});var GetCoinPriceHistory={};Object.defineProperty(GetCoinPriceHistory,"__esModule",{value:!0});var GetTokenInfoList={};Object.defineProperty(GetTokenInfoList,"__esModule",{value:!0});var GetTokenInfoListBySpecificCoin={};Object.defineProperty(GetTokenInfoListBySpecificCoin,"__esModule",{value:!0});var __createBinding$j=commonjsGlobal$1&&commonjsGlobal$1.__createBinding||(Object.create?function(u,f,d,_){_===void 0&&(_=d);var x=Object.getOwnPropertyDescriptor(f,d);(!x||("get"in x?!f.__esModule:x.writable||x.configurable))&&(x={enumerable:!0,get:function(){return f[d]}}),Object.defineProperty(u,_,x)}:function(u,f,d,_){_===void 0&&(_=d),u[_]=f[d]}),__setModuleDefault$j=commonjsGlobal$1&&commonjsGlobal$1.__setModuleDefault||(Object.create?function(u,f){Object.defineProperty(u,"default",{enumerable:!0,value:f})}:function(u,f){u.default=f}),__importStar$j=commonjsGlobal$1&&commonjsGlobal$1.__importStar||function(u){if(u&&u.__esModule)return u;var f={};if(u!=null)for(var d in u)d!=="default"&&Object.prototype.hasOwnProperty.call(u,d)&&__createBinding$j(f,u,d);return __setModuleDefault$j(f,u),f};Object.defineProperty(coin,"__esModule",{value:!0});coin.GetTokenInfoListBySpecificCoin=coin.GetTokenInfoList=coin.GetCoinPriceHistory=coin.GetCoinInfoList=coin.GetCoinLatestPriceOfSpecificToken=coin.GetCoinLatestPriceOfSpecificCoin=coin.GetCoinLatestPrice=void 0;coin.GetCoinLatestPrice=__importStar$j(GetCoinLatestPrice);coin.GetCoinLatestPriceOfSpecificCoin=__importStar$j(GetCoinLatestPriceOfSpecificCoin);coin.GetCoinLatestPriceOfSpecificToken=__importStar$j(GetCoinLatestPriceOfSpecificToken);coin.GetCoinInfoList=__importStar$j(GetCoinInfoList);coin.GetCoinPriceHistory=__importStar$j(GetCoinPriceHistory);coin.GetTokenInfoList=__importStar$j(GetTokenInfoList);coin.GetTokenInfoListBySpecificCoin=__importStar$j(GetTokenInfoListBySpecificCoin);var info={},GetCurrency={};Object.defineProperty(GetCurrency,"__esModule",{value:!0});var GetCurrencyList={};Object.defineProperty(GetCurrencyList,"__esModule",{value:!0});var GetLocale={};Object.defineProperty(GetLocale,"__esModule",{value:!0});var GetLocaleList={};Object.defineProperty(GetLocaleList,"__esModule",{value:!0});var __createBinding$i=commonjsGlobal$1&&commonjsGlobal$1.__createBinding||(Object.create?function(u,f,d,_){_===void 0&&(_=d);var x=Object.getOwnPropertyDescriptor(f,d);(!x||("get"in x?!f.__esModule:x.writable||x.configurable))&&(x={enumerable:!0,get:function(){return f[d]}}),Object.defineProperty(u,_,x)}:function(u,f,d,_){_===void 0&&(_=d),u[_]=f[d]}),__setModuleDefault$i=commonjsGlobal$1&&commonjsGlobal$1.__setModuleDefault||(Object.create?function(u,f){Object.defineProperty(u,"default",{enumerable:!0,value:f})}:function(u,f){u.default=f}),__importStar$i=commonjsGlobal$1&&commonjsGlobal$1.__importStar||function(u){if(u&&u.__esModule)return u;var f={};if(u!=null)for(var d in u)d!=="default"&&Object.prototype.hasOwnProperty.call(u,d)&&__createBinding$i(f,u,d);return __setModuleDefault$i(f,u),f};Object.defineProperty(info,"__esModule",{value:!0});info.GetLocaleList=info.GetLocale=info.GetCurrencyList=info.GetCurrency=void 0;info.GetCurrency=__importStar$i(GetCurrency);info.GetCurrencyList=__importStar$i(GetCurrencyList);info.GetLocale=__importStar$i(GetLocale);info.GetLocaleList=__importStar$i(GetLocaleList);var nft$3={},GetNFTCount={};Object.defineProperty(GetNFTCount,"__esModule",{value:!0});var GetNFTInfo={};Object.defineProperty(GetNFTInfo,"__esModule",{value:!0});var GetNFTList={};Object.defineProperty(GetNFTList,"__esModule",{value:!0});var RefreshNFT={};Object.defineProperty(RefreshNFT,"__esModule",{value:!0});var GetSupportedNFTList={};Object.defineProperty(GetSupportedNFTList,"__esModule",{value:!0});var MintHublinkNFT={};Object.defineProperty(MintHublinkNFT,"__esModule",{value:!0});var __createBinding$h=commonjsGlobal$1&&commonjsGlobal$1.__createBinding||(Object.create?function(u,f,d,_){_===void 0&&(_=d);var x=Object.getOwnPropertyDescriptor(f,d);(!x||("get"in x?!f.__esModule:x.writable||x.configurable))&&(x={enumerable:!0,get:function(){return f[d]}}),Object.defineProperty(u,_,x)}:function(u,f,d,_){_===void 0&&(_=d),u[_]=f[d]}),__setModuleDefault$h=commonjsGlobal$1&&commonjsGlobal$1.__setModuleDefault||(Object.create?function(u,f){Object.defineProperty(u,"default",{enumerable:!0,value:f})}:function(u,f){u.default=f}),__importStar$h=commonjsGlobal$1&&commonjsGlobal$1.__importStar||function(u){if(u&&u.__esModule)return u;var f={};if(u!=null)for(var d in u)d!=="default"&&Object.prototype.hasOwnProperty.call(u,d)&&__createBinding$h(f,u,d);return __setModuleDefault$h(f,u),f};Object.defineProperty(nft$3,"__esModule",{value:!0});nft$3.MintHublinkNFT=nft$3.GetSupportedNFTList=nft$3.RefreshNFT=nft$3.GetNFTList=nft$3.GetNFTInfo=nft$3.GetNFTCount=void 0;nft$3.GetNFTCount=__importStar$h(GetNFTCount);nft$3.GetNFTInfo=__importStar$h(GetNFTInfo);nft$3.GetNFTList=__importStar$h(GetNFTList);nft$3.RefreshNFT=__importStar$h(RefreshNFT);nft$3.GetSupportedNFTList=__importStar$h(GetSupportedNFTList);nft$3.MintHublinkNFT=__importStar$h(MintHublinkNFT);var nftContract={},GetNFTContract={};Object.defineProperty(GetNFTContract,"__esModule",{value:!0});var GetNFTContractList={};Object.defineProperty(GetNFTContractList,"__esModule",{value:!0});var __createBinding$g=commonjsGlobal$1&&commonjsGlobal$1.__createBinding||(Object.create?function(u,f,d,_){_===void 0&&(_=d);var x=Object.getOwnPropertyDescriptor(f,d);(!x||("get"in x?!f.__esModule:x.writable||x.configurable))&&(x={enumerable:!0,get:function(){return f[d]}}),Object.defineProperty(u,_,x)}:function(u,f,d,_){_===void 0&&(_=d),u[_]=f[d]}),__setModuleDefault$g=commonjsGlobal$1&&commonjsGlobal$1.__setModuleDefault||(Object.create?function(u,f){Object.defineProperty(u,"default",{enumerable:!0,value:f})}:function(u,f){u.default=f}),__importStar$g=commonjsGlobal$1&&commonjsGlobal$1.__importStar||function(u){if(u&&u.__esModule)return u;var f={};if(u!=null)for(var d in u)d!=="default"&&Object.prototype.hasOwnProperty.call(u,d)&&__createBinding$g(f,u,d);return __setModuleDefault$g(f,u),f};Object.defineProperty(nftContract,"__esModule",{value:!0});nftContract.GetNFTContractList=nftContract.GetNFTContract=void 0;nftContract.GetNFTContract=__importStar$g(GetNFTContract);nftContract.GetNFTContractList=__importStar$g(GetNFTContractList);var notice={},DeleteNotice={};Object.defineProperty(DeleteNotice,"__esModule",{value:!0});var GetNotice={};Object.defineProperty(GetNotice,"__esModule",{value:!0});var GetNoticeList={};Object.defineProperty(GetNoticeList,"__esModule",{value:!0});var __createBinding$f=commonjsGlobal$1&&commonjsGlobal$1.__createBinding||(Object.create?function(u,f,d,_){_===void 0&&(_=d);var x=Object.getOwnPropertyDescriptor(f,d);(!x||("get"in x?!f.__esModule:x.writable||x.configurable))&&(x={enumerable:!0,get:function(){return f[d]}}),Object.defineProperty(u,_,x)}:function(u,f,d,_){_===void 0&&(_=d),u[_]=f[d]}),__setModuleDefault$f=commonjsGlobal$1&&commonjsGlobal$1.__setModuleDefault||(Object.create?function(u,f){Object.defineProperty(u,"default",{enumerable:!0,value:f})}:function(u,f){u.default=f}),__importStar$f=commonjsGlobal$1&&commonjsGlobal$1.__importStar||function(u){if(u&&u.__esModule)return u;var f={};if(u!=null)for(var d in u)d!=="default"&&Object.prototype.hasOwnProperty.call(u,d)&&__createBinding$f(f,u,d);return __setModuleDefault$f(f,u),f};Object.defineProperty(notice,"__esModule",{value:!0});notice.GetNoticeList=notice.GetNotice=notice.DeleteNotice=void 0;notice.DeleteNotice=__importStar$f(DeleteNotice);notice.GetNotice=__importStar$f(GetNotice);notice.GetNoticeList=__importStar$f(GetNoticeList);var project={},CreateProject={};Object.defineProperty(CreateProject,"__esModule",{value:!0});var ModifyProject={};Object.defineProperty(ModifyProject,"__esModule",{value:!0});var DeleteProject={};Object.defineProperty(DeleteProject,"__esModule",{value:!0});var DeregisterProject={};Object.defineProperty(DeregisterProject,"__esModule",{value:!0});var GetAppPromotion={};Object.defineProperty(GetAppPromotion,"__esModule",{value:!0});var GetNewProjectList={};Object.defineProperty(GetNewProjectList,"__esModule",{value:!0});var GetPopularProjectList={};Object.defineProperty(GetPopularProjectList,"__esModule",{value:!0});var GetProject={};Object.defineProperty(GetProject,"__esModule",{value:!0});var GetProjectList={};Object.defineProperty(GetProjectList,"__esModule",{value:!0});var GetProjectNFTList={};Object.defineProperty(GetProjectNFTList,"__esModule",{value:!0});var GetProjectTokenList={};Object.defineProperty(GetProjectTokenList,"__esModule",{value:!0});var GetUserProjectList={};Object.defineProperty(GetUserProjectList,"__esModule",{value:!0});var GetReferralAppPromotionList={};Object.defineProperty(GetReferralAppPromotionList,"__esModule",{value:!0});var GetUserAppDetail={};Object.defineProperty(GetUserAppDetail,"__esModule",{value:!0});var RegisterProject={};Object.defineProperty(RegisterProject,"__esModule",{value:!0});var SetLikeProject={};Object.defineProperty(SetLikeProject,"__esModule",{value:!0});var UnsetLikeProject={};Object.defineProperty(UnsetLikeProject,"__esModule",{value:!0});var InitProject={};Object.defineProperty(InitProject,"__esModule",{value:!0});var DropOutUser={};Object.defineProperty(DropOutUser,"__esModule",{value:!0});var UpdateProjectJoinUserInfo={};Object.defineProperty(UpdateProjectJoinUserInfo,"__esModule",{value:!0});var GetUserAppDetailById={};Object.defineProperty(GetUserAppDetailById,"__esModule",{value:!0});var __createBinding$e=commonjsGlobal$1&&commonjsGlobal$1.__createBinding||(Object.create?function(u,f,d,_){_===void 0&&(_=d);var x=Object.getOwnPropertyDescriptor(f,d);(!x||("get"in x?!f.__esModule:x.writable||x.configurable))&&(x={enumerable:!0,get:function(){return f[d]}}),Object.defineProperty(u,_,x)}:function(u,f,d,_){_===void 0&&(_=d),u[_]=f[d]}),__setModuleDefault$e=commonjsGlobal$1&&commonjsGlobal$1.__setModuleDefault||(Object.create?function(u,f){Object.defineProperty(u,"default",{enumerable:!0,value:f})}:function(u,f){u.default=f}),__importStar$e=commonjsGlobal$1&&commonjsGlobal$1.__importStar||function(u){if(u&&u.__esModule)return u;var f={};if(u!=null)for(var d in u)d!=="default"&&Object.prototype.hasOwnProperty.call(u,d)&&__createBinding$e(f,u,d);return __setModuleDefault$e(f,u),f};Object.defineProperty(project,"__esModule",{value:!0});project.GetUserAppDetailById=project.UpdateProjectJoinUserInfo=project.DropOutUser=project.InitProject=project.UnsetLikeProject=project.SetLikeProject=project.RegisterProject=project.GetUserAppDetail=project.GetReferralAppPromotionList=project.GetUserProjectList=project.GetProjectTokenList=project.GetProjectNFTList=project.GetProjectList=project.GetProject=project.GetPopularProjectList=project.GetNewProjectList=project.GetAppPromotion=project.DeregisterProject=project.DeleteProject=project.ModifyProject=project.CreateProject=void 0;project.CreateProject=__importStar$e(CreateProject);project.ModifyProject=__importStar$e(ModifyProject);project.DeleteProject=__importStar$e(DeleteProject);project.DeregisterProject=__importStar$e(DeregisterProject);project.GetAppPromotion=__importStar$e(GetAppPromotion);project.GetNewProjectList=__importStar$e(GetNewProjectList);project.GetPopularProjectList=__importStar$e(GetPopularProjectList);project.GetProject=__importStar$e(GetProject);project.GetProjectList=__importStar$e(GetProjectList);project.GetProjectNFTList=__importStar$e(GetProjectNFTList);project.GetProjectTokenList=__importStar$e(GetProjectTokenList);project.GetUserProjectList=__importStar$e(GetUserProjectList);project.GetReferralAppPromotionList=__importStar$e(GetReferralAppPromotionList);project.GetUserAppDetail=__importStar$e(GetUserAppDetail);project.RegisterProject=__importStar$e(RegisterProject);project.SetLikeProject=__importStar$e(SetLikeProject);project.UnsetLikeProject=__importStar$e(UnsetLikeProject);project.InitProject=__importStar$e(InitProject);project.DropOutUser=__importStar$e(DropOutUser);project.UpdateProjectJoinUserInfo=__importStar$e(UpdateProjectJoinUserInfo);project.GetUserAppDetailById=__importStar$e(GetUserAppDetailById);var token={},AddToken={};Object.defineProperty(AddToken,"__esModule",{value:!0});var DeleteToken={};Object.defineProperty(DeleteToken,"__esModule",{value:!0});var GetTokenList={};Object.defineProperty(GetTokenList,"__esModule",{value:!0});var UpdateToken={};Object.defineProperty(UpdateToken,"__esModule",{value:!0});var __createBinding$d=commonjsGlobal$1&&commonjsGlobal$1.__createBinding||(Object.create?function(u,f,d,_){_===void 0&&(_=d);var x=Object.getOwnPropertyDescriptor(f,d);(!x||("get"in x?!f.__esModule:x.writable||x.configurable))&&(x={enumerable:!0,get:function(){return f[d]}}),Object.defineProperty(u,_,x)}:function(u,f,d,_){_===void 0&&(_=d),u[_]=f[d]}),__setModuleDefault$d=commonjsGlobal$1&&commonjsGlobal$1.__setModuleDefault||(Object.create?function(u,f){Object.defineProperty(u,"default",{enumerable:!0,value:f})}:function(u,f){u.default=f}),__importStar$d=commonjsGlobal$1&&commonjsGlobal$1.__importStar||function(u){if(u&&u.__esModule)return u;var f={};if(u!=null)for(var d in u)d!=="default"&&Object.prototype.hasOwnProperty.call(u,d)&&__createBinding$d(f,u,d);return __setModuleDefault$d(f,u),f};Object.defineProperty(token,"__esModule",{value:!0});token.UpdateToken=token.GetTokenList=token.DeleteToken=token.AddToken=void 0;token.AddToken=__importStar$d(AddToken);token.DeleteToken=__importStar$d(DeleteToken);token.GetTokenList=__importStar$d(GetTokenList);token.UpdateToken=__importStar$d(UpdateToken);var transaction={},BroadcastTransaction={};Object.defineProperty(BroadcastTransaction,"__esModule",{value:!0});var GetAccountBalance={};Object.defineProperty(GetAccountBalance,"__esModule",{value:!0});var GetAccountTransactionList={};Object.defineProperty(GetAccountTransactionList,"__esModule",{value:!0});var GetTransactionDetail={};Object.defineProperty(GetTransactionDetail,"__esModule",{value:!0});var GetTransactionPrepareData={};Object.defineProperty(GetTransactionPrepareData,"__esModule",{value:!0});GetTransactionPrepareData.PrepareDetailType=void 0;GetTransactionPrepareData.PrepareDetailType={ETHEREUM:"ETHEREUM",KLAYTN:"KLAYTN",SOLANA:"SOLANA",NEAR:"NEAR"};var GetUserTransactionList={};Object.defineProperty(GetUserTransactionList,"__esModule",{value:!0});var Sign={};Object.defineProperty(Sign,"__esModule",{value:!0});var VerifySignature={};Object.defineProperty(VerifySignature,"__esModule",{value:!0});var CheckAddressValidation={};Object.defineProperty(CheckAddressValidation,"__esModule",{value:!0});var __createBinding$c=commonjsGlobal$1&&commonjsGlobal$1.__createBinding||(Object.create?function(u,f,d,_){_===void 0&&(_=d);var x=Object.getOwnPropertyDescriptor(f,d);(!x||("get"in x?!f.__esModule:x.writable||x.configurable))&&(x={enumerable:!0,get:function(){return f[d]}}),Object.defineProperty(u,_,x)}:function(u,f,d,_){_===void 0&&(_=d),u[_]=f[d]}),__setModuleDefault$c=commonjsGlobal$1&&commonjsGlobal$1.__setModuleDefault||(Object.create?function(u,f){Object.defineProperty(u,"default",{enumerable:!0,value:f})}:function(u,f){u.default=f}),__importStar$c=commonjsGlobal$1&&commonjsGlobal$1.__importStar||function(u){if(u&&u.__esModule)return u;var f={};if(u!=null)for(var d in u)d!=="default"&&Object.prototype.hasOwnProperty.call(u,d)&&__createBinding$c(f,u,d);return __setModuleDefault$c(f,u),f};Object.defineProperty(transaction,"__esModule",{value:!0});transaction.CheckAddressValidation=transaction.VerifySignature=transaction.Sign=transaction.GetUserTransactionList=transaction.GetTransactionPrepareData=transaction.GetTransactionDetail=transaction.GetAccountTransactionList=transaction.GetAccountBalance=transaction.BroadcastTransaction=void 0;transaction.BroadcastTransaction=__importStar$c(BroadcastTransaction);transaction.GetAccountBalance=__importStar$c(GetAccountBalance);transaction.GetAccountTransactionList=__importStar$c(GetAccountTransactionList);transaction.GetTransactionDetail=__importStar$c(GetTransactionDetail);transaction.GetTransactionPrepareData=__importStar$c(GetTransactionPrepareData);transaction.GetUserTransactionList=__importStar$c(GetUserTransactionList);transaction.Sign=__importStar$c(Sign);transaction.VerifySignature=__importStar$c(VerifySignature);transaction.CheckAddressValidation=__importStar$c(CheckAddressValidation);var user$1={},GetDetail={};Object.defineProperty(GetDetail,"__esModule",{value:!0});var Login$1={};Object.defineProperty(Login$1,"__esModule",{value:!0});var Verify={};Object.defineProperty(Verify,"__esModule",{value:!0});var CheckEmailExist={};Object.defineProperty(CheckEmailExist,"__esModule",{value:!0});var GetPublicKey={};Object.defineProperty(GetPublicKey,"__esModule",{value:!0});var GetUserPasswordState={};Object.defineProperty(GetUserPasswordState,"__esModule",{value:!0});var OAuth={};Object.defineProperty(OAuth,"__esModule",{value:!0});var UpdateLocale={};Object.defineProperty(UpdateLocale,"__esModule",{value:!0});var Logout={};Object.defineProperty(Logout,"__esModule",{value:!0});var RefreshAccessToken={};Object.defineProperty(RefreshAccessToken,"__esModule",{value:!0});var UpdateTermsAccepted={};Object.defineProperty(UpdateTermsAccepted,"__esModule",{value:!0});var GetTermsAccepted={};Object.defineProperty(GetTermsAccepted,"__esModule",{value:!0});var UpdateUser={};Object.defineProperty(UpdateUser,"__esModule",{value:!0});var UpdateUserProfileImage={};Object.defineProperty(UpdateUserProfileImage,"__esModule",{value:!0});var UpdateUserPasswordState={};Object.defineProperty(UpdateUserPasswordState,"__esModule",{value:!0});var __createBinding$b=commonjsGlobal$1&&commonjsGlobal$1.__createBinding||(Object.create?function(u,f,d,_){_===void 0&&(_=d);var x=Object.getOwnPropertyDescriptor(f,d);(!x||("get"in x?!f.__esModule:x.writable||x.configurable))&&(x={enumerable:!0,get:function(){return f[d]}}),Object.defineProperty(u,_,x)}:function(u,f,d,_){_===void 0&&(_=d),u[_]=f[d]}),__setModuleDefault$b=commonjsGlobal$1&&commonjsGlobal$1.__setModuleDefault||(Object.create?function(u,f){Object.defineProperty(u,"default",{enumerable:!0,value:f})}:function(u,f){u.default=f}),__importStar$b=commonjsGlobal$1&&commonjsGlobal$1.__importStar||function(u){if(u&&u.__esModule)return u;var f={};if(u!=null)for(var d in u)d!=="default"&&Object.prototype.hasOwnProperty.call(u,d)&&__createBinding$b(f,u,d);return __setModuleDefault$b(f,u),f};Object.defineProperty(user$1,"__esModule",{value:!0});user$1.UpdateUserPasswordState=user$1.UpdateUserProfileImage=user$1.UpdateUser=user$1.GetTermsAccepted=user$1.UpdateTermsAccepted=user$1.RefreshAccessToken=user$1.Logout=user$1.UpdateLocale=user$1.OAuth=user$1.GetUserPasswordState=user$1.GetPublicKey=user$1.CheckEmailExist=user$1.Verify=user$1.Login=user$1.GetDetail=void 0;user$1.GetDetail=__importStar$b(GetDetail);user$1.Login=__importStar$b(Login$1);user$1.Verify=__importStar$b(Verify);user$1.CheckEmailExist=__importStar$b(CheckEmailExist);user$1.GetPublicKey=__importStar$b(GetPublicKey);user$1.GetUserPasswordState=__importStar$b(GetUserPasswordState);user$1.OAuth=__importStar$b(OAuth);user$1.UpdateLocale=__importStar$b(UpdateLocale);user$1.Logout=__importStar$b(Logout);user$1.RefreshAccessToken=__importStar$b(RefreshAccessToken);user$1.UpdateTermsAccepted=__importStar$b(UpdateTermsAccepted);user$1.GetTermsAccepted=__importStar$b(GetTermsAccepted);user$1.UpdateUser=__importStar$b(UpdateUser);user$1.UpdateUserProfileImage=__importStar$b(UpdateUserProfileImage);user$1.UpdateUserPasswordState=__importStar$b(UpdateUserPasswordState);var wallet$2={},CreateWallet={};Object.defineProperty(CreateWallet,"__esModule",{value:!0});var BackupWallet={};Object.defineProperty(BackupWallet,"__esModule",{value:!0});var DeleteWallet={};Object.defineProperty(DeleteWallet,"__esModule",{value:!0});var GetWalletInfo$1={};Object.defineProperty(GetWalletInfo$1,"__esModule",{value:!0});var GetWalletList={};Object.defineProperty(GetWalletList,"__esModule",{value:!0});var UpdateWallet={};Object.defineProperty(UpdateWallet,"__esModule",{value:!0});var GetWalletCoreKeyInfo$1={};Object.defineProperty(GetWalletCoreKeyInfo$1,"__esModule",{value:!0});var ResetPinTryCount$1={};Object.defineProperty(ResetPinTryCount$1,"__esModule",{value:!0});var VerifyPin$2={};Object.defineProperty(VerifyPin$2,"__esModule",{value:!0});var ChangePin$1={};Object.defineProperty(ChangePin$1,"__esModule",{value:!0});var StoreWallet={};Object.defineProperty(StoreWallet,"__esModule",{value:!0});var UpdateWalletState={};Object.defineProperty(UpdateWalletState,"__esModule",{value:!0});var __createBinding$a=commonjsGlobal$1&&commonjsGlobal$1.__createBinding||(Object.create?function(u,f,d,_){_===void 0&&(_=d);var x=Object.getOwnPropertyDescriptor(f,d);(!x||("get"in x?!f.__esModule:x.writable||x.configurable))&&(x={enumerable:!0,get:function(){return f[d]}}),Object.defineProperty(u,_,x)}:function(u,f,d,_){_===void 0&&(_=d),u[_]=f[d]}),__setModuleDefault$a=commonjsGlobal$1&&commonjsGlobal$1.__setModuleDefault||(Object.create?function(u,f){Object.defineProperty(u,"default",{enumerable:!0,value:f})}:function(u,f){u.default=f}),__importStar$a=commonjsGlobal$1&&commonjsGlobal$1.__importStar||function(u){if(u&&u.__esModule)return u;var f={};if(u!=null)for(var d in u)d!=="default"&&Object.prototype.hasOwnProperty.call(u,d)&&__createBinding$a(f,u,d);return __setModuleDefault$a(f,u),f};Object.defineProperty(wallet$2,"__esModule",{value:!0});wallet$2.UpdateWalletState=wallet$2.StoreWallet=wallet$2.ChangePin=wallet$2.VerifyPin=wallet$2.ResetPinTryCount=wallet$2.GetWalletCoreKeyInfo=wallet$2.UpdateWallet=wallet$2.GetWalletList=wallet$2.GetWalletInfo=wallet$2.DeleteWallet=wallet$2.BackupWallet=wallet$2.CreateWallet=void 0;wallet$2.CreateWallet=__importStar$a(CreateWallet);wallet$2.BackupWallet=__importStar$a(BackupWallet);wallet$2.DeleteWallet=__importStar$a(DeleteWallet);wallet$2.GetWalletInfo=__importStar$a(GetWalletInfo$1);wallet$2.GetWalletList=__importStar$a(GetWalletList);wallet$2.UpdateWallet=__importStar$a(UpdateWallet);wallet$2.GetWalletCoreKeyInfo=__importStar$a(GetWalletCoreKeyInfo$1);wallet$2.ResetPinTryCount=__importStar$a(ResetPinTryCount$1);wallet$2.VerifyPin=__importStar$a(VerifyPin$2);wallet$2.ChangePin=__importStar$a(ChangePin$1);wallet$2.StoreWallet=__importStar$a(StoreWallet);wallet$2.UpdateWalletState=__importStar$a(UpdateWalletState);var sdk={},account$1={},GetAppAccountList={};Object.defineProperty(GetAppAccountList,"__esModule",{value:!0});var GetAppNFTList={};Object.defineProperty(GetAppNFTList,"__esModule",{value:!0});var Readdress$1={};Object.defineProperty(Readdress$1,"__esModule",{value:!0});var __createBinding$9=commonjsGlobal$1&&commonjsGlobal$1.__createBinding||(Object.create?function(u,f,d,_){_===void 0&&(_=d);var x=Object.getOwnPropertyDescriptor(f,d);(!x||("get"in x?!f.__esModule:x.writable||x.configurable))&&(x={enumerable:!0,get:function(){return f[d]}}),Object.defineProperty(u,_,x)}:function(u,f,d,_){_===void 0&&(_=d),u[_]=f[d]}),__setModuleDefault$9=commonjsGlobal$1&&commonjsGlobal$1.__setModuleDefault||(Object.create?function(u,f){Object.defineProperty(u,"default",{enumerable:!0,value:f})}:function(u,f){u.default=f}),__importStar$9=commonjsGlobal$1&&commonjsGlobal$1.__importStar||function(u){if(u&&u.__esModule)return u;var f={};if(u!=null)for(var d in u)d!=="default"&&Object.prototype.hasOwnProperty.call(u,d)&&__createBinding$9(f,u,d);return __setModuleDefault$9(f,u),f};Object.defineProperty(account$1,"__esModule",{value:!0});account$1.Readdress=account$1.GetAppNFTList=account$1.GetAppAccountList=void 0;account$1.GetAppAccountList=__importStar$9(GetAppAccountList);account$1.GetAppNFTList=__importStar$9(GetAppNFTList);account$1.Readdress=__importStar$9(Readdress$1);var droplink$4={},GetAppJoinCampaign={};Object.defineProperty(GetAppJoinCampaign,"__esModule",{value:!0});var UpdateCampaignQuestHistory={};Object.defineProperty(UpdateCampaignQuestHistory,"__esModule",{value:!0});var __createBinding$8=commonjsGlobal$1&&commonjsGlobal$1.__createBinding||(Object.create?function(u,f,d,_){_===void 0&&(_=d);var x=Object.getOwnPropertyDescriptor(f,d);(!x||("get"in x?!f.__esModule:x.writable||x.configurable))&&(x={enumerable:!0,get:function(){return f[d]}}),Object.defineProperty(u,_,x)}:function(u,f,d,_){_===void 0&&(_=d),u[_]=f[d]}),__setModuleDefault$8=commonjsGlobal$1&&commonjsGlobal$1.__setModuleDefault||(Object.create?function(u,f){Object.defineProperty(u,"default",{enumerable:!0,value:f})}:function(u,f){u.default=f}),__importStar$8=commonjsGlobal$1&&commonjsGlobal$1.__importStar||function(u){if(u&&u.__esModule)return u;var f={};if(u!=null)for(var d in u)d!=="default"&&Object.prototype.hasOwnProperty.call(u,d)&&__createBinding$8(f,u,d);return __setModuleDefault$8(f,u),f};Object.defineProperty(droplink$4,"__esModule",{value:!0});droplink$4.UpdateCampaignQuestHistory=droplink$4.GetAppJoinCampaign=void 0;droplink$4.GetAppJoinCampaign=__importStar$8(GetAppJoinCampaign);droplink$4.UpdateCampaignQuestHistory=__importStar$8(UpdateCampaignQuestHistory);var user={},Login={};Object.defineProperty(Login,"__esModule",{value:!0});(function(u){var f=commonjsGlobal$1&&commonjsGlobal$1.__createBinding||(Object.create?function(_,x,I,E){E===void 0&&(E=I);var M=Object.getOwnPropertyDescriptor(x,I);(!M||("get"in M?!x.__esModule:M.writable||M.configurable))&&(M={enumerable:!0,get:function(){return x[I]}}),Object.defineProperty(_,E,M)}:function(_,x,I,E){E===void 0&&(E=I),_[E]=x[I]}),d=commonjsGlobal$1&&commonjsGlobal$1.__exportStar||function(_,x){for(var I in _)I!=="default"&&!Object.prototype.hasOwnProperty.call(x,I)&&f(x,_,I)};Object.defineProperty(u,"__esModule",{value:!0}),d(Login,u)})(user);var wallet$1={},GetWalletCoreKeyInfo={};Object.defineProperty(GetWalletCoreKeyInfo,"__esModule",{value:!0});var ResetPinTryCount={};Object.defineProperty(ResetPinTryCount,"__esModule",{value:!0});var VerifyPin$1={};Object.defineProperty(VerifyPin$1,"__esModule",{value:!0});var GetWalletInfo={};Object.defineProperty(GetWalletInfo,"__esModule",{value:!0});var ChangePin={};Object.defineProperty(ChangePin,"__esModule",{value:!0});var __createBinding$7=commonjsGlobal$1&&commonjsGlobal$1.__createBinding||(Object.create?function(u,f,d,_){_===void 0&&(_=d);var x=Object.getOwnPropertyDescriptor(f,d);(!x||("get"in x?!f.__esModule:x.writable||x.configurable))&&(x={enumerable:!0,get:function(){return f[d]}}),Object.defineProperty(u,_,x)}:function(u,f,d,_){_===void 0&&(_=d),u[_]=f[d]}),__setModuleDefault$7=commonjsGlobal$1&&commonjsGlobal$1.__setModuleDefault||(Object.create?function(u,f){Object.defineProperty(u,"default",{enumerable:!0,value:f})}:function(u,f){u.default=f}),__importStar$7=commonjsGlobal$1&&commonjsGlobal$1.__importStar||function(u){if(u&&u.__esModule)return u;var f={};if(u!=null)for(var d in u)d!=="default"&&Object.prototype.hasOwnProperty.call(u,d)&&__createBinding$7(f,u,d);return __setModuleDefault$7(f,u),f};Object.defineProperty(wallet$1,"__esModule",{value:!0});wallet$1.ChangePin=wallet$1.GetWalletInfo=wallet$1.VerifyPin=wallet$1.ResetPinTryCount=wallet$1.GetWalletCoreKeyInfo=void 0;wallet$1.GetWalletCoreKeyInfo=__importStar$7(GetWalletCoreKeyInfo);wallet$1.ResetPinTryCount=__importStar$7(ResetPinTryCount);wallet$1.VerifyPin=__importStar$7(VerifyPin$1);wallet$1.GetWalletInfo=__importStar$7(GetWalletInfo);wallet$1.ChangePin=__importStar$7(ChangePin);var v1$1={},account={},Readdress={};Object.defineProperty(Readdress,"__esModule",{value:!0});var __createBinding$6=commonjsGlobal$1&&commonjsGlobal$1.__createBinding||(Object.create?function(u,f,d,_){_===void 0&&(_=d);var x=Object.getOwnPropertyDescriptor(f,d);(!x||("get"in x?!f.__esModule:x.writable||x.configurable))&&(x={enumerable:!0,get:function(){return f[d]}}),Object.defineProperty(u,_,x)}:function(u,f,d,_){_===void 0&&(_=d),u[_]=f[d]}),__setModuleDefault$6=commonjsGlobal$1&&commonjsGlobal$1.__setModuleDefault||(Object.create?function(u,f){Object.defineProperty(u,"default",{enumerable:!0,value:f})}:function(u,f){u.default=f}),__importStar$6=commonjsGlobal$1&&commonjsGlobal$1.__importStar||function(u){if(u&&u.__esModule)return u;var f={};if(u!=null)for(var d in u)d!=="default"&&Object.prototype.hasOwnProperty.call(u,d)&&__createBinding$6(f,u,d);return __setModuleDefault$6(f,u),f};Object.defineProperty(account,"__esModule",{value:!0});account.Readdress=void 0;account.Readdress=__importStar$6(Readdress);var wallet={},VerifyPin={};Object.defineProperty(VerifyPin,"__esModule",{value:!0});var __createBinding$5=commonjsGlobal$1&&commonjsGlobal$1.__createBinding||(Object.create?function(u,f,d,_){_===void 0&&(_=d);var x=Object.getOwnPropertyDescriptor(f,d);(!x||("get"in x?!f.__esModule:x.writable||x.configurable))&&(x={enumerable:!0,get:function(){return f[d]}}),Object.defineProperty(u,_,x)}:function(u,f,d,_){_===void 0&&(_=d),u[_]=f[d]}),__setModuleDefault$5=commonjsGlobal$1&&commonjsGlobal$1.__setModuleDefault||(Object.create?function(u,f){Object.defineProperty(u,"default",{enumerable:!0,value:f})}:function(u,f){u.default=f}),__importStar$5=commonjsGlobal$1&&commonjsGlobal$1.__importStar||function(u){if(u&&u.__esModule)return u;var f={};if(u!=null)for(var d in u)d!=="default"&&Object.prototype.hasOwnProperty.call(u,d)&&__createBinding$5(f,u,d);return __setModuleDefault$5(f,u),f};Object.defineProperty(wallet,"__esModule",{value:!0});wallet.VerifyPin=void 0;wallet.VerifyPin=__importStar$5(VerifyPin);var objects$2={},IAppNFT$1={};Object.defineProperty(IAppNFT$1,"__esModule",{value:!0});(function(u){var f=commonjsGlobal$1&&commonjsGlobal$1.__createBinding||(Object.create?function(_,x,I,E){E===void 0&&(E=I);var M=Object.getOwnPropertyDescriptor(x,I);(!M||("get"in M?!x.__esModule:M.writable||M.configurable))&&(M={enumerable:!0,get:function(){return x[I]}}),Object.defineProperty(_,E,M)}:function(_,x,I,E){E===void 0&&(E=I),_[E]=x[I]}),d=commonjsGlobal$1&&commonjsGlobal$1.__exportStar||function(_,x){for(var I in _)I!=="default"&&!Object.prototype.hasOwnProperty.call(x,I)&&f(x,_,I)};Object.defineProperty(u,"__esModule",{value:!0}),d(IAppNFT$1,u)})(objects$2);(function(u){var f=commonjsGlobal$1&&commonjsGlobal$1.__createBinding||(Object.create?function(I,E,M,S){S===void 0&&(S=M);var A=Object.getOwnPropertyDescriptor(E,M);(!A||("get"in A?!E.__esModule:A.writable||A.configurable))&&(A={enumerable:!0,get:function(){return E[M]}}),Object.defineProperty(I,S,A)}:function(I,E,M,S){S===void 0&&(S=M),I[S]=E[M]}),d=commonjsGlobal$1&&commonjsGlobal$1.__setModuleDefault||(Object.create?function(I,E){Object.defineProperty(I,"default",{enumerable:!0,value:E})}:function(I,E){I.default=E}),_=commonjsGlobal$1&&commonjsGlobal$1.__importStar||function(I){if(I&&I.__esModule)return I;var E={};if(I!=null)for(var M in I)M!=="default"&&Object.prototype.hasOwnProperty.call(I,M)&&f(E,I,M);return d(E,I),E},x=commonjsGlobal$1&&commonjsGlobal$1.__exportStar||function(I,E){for(var M in I)M!=="default"&&!Object.prototype.hasOwnProperty.call(E,M)&&f(E,I,M)};Object.defineProperty(u,"__esModule",{value:!0}),u.Wallet=u.Account=void 0,u.Account=_(account),u.Wallet=_(wallet),x(objects$2,u)})(v1$1);var objects$1={},IAppAccount={};Object.defineProperty(IAppAccount,"__esModule",{value:!0});var IAppUser={};Object.defineProperty(IAppUser,"__esModule",{value:!0});var IAppNFT={};Object.defineProperty(IAppNFT,"__esModule",{value:!0});var IAppJoinCampaign={};(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.QuestState=void 0,function(f){f[f.DONE=1]="DONE",f[f.DONE_WIDGET_HIDE=400]="DONE_WIDGET_HIDE",f[f.DONE_WIDGET_SHOW=401]="DONE_WIDGET_SHOW"}(u.QuestState||(u.QuestState={}))})(IAppJoinCampaign);(function(u){var f=commonjsGlobal$1&&commonjsGlobal$1.__createBinding||(Object.create?function(_,x,I,E){E===void 0&&(E=I);var M=Object.getOwnPropertyDescriptor(x,I);(!M||("get"in M?!x.__esModule:M.writable||M.configurable))&&(M={enumerable:!0,get:function(){return x[I]}}),Object.defineProperty(_,E,M)}:function(_,x,I,E){E===void 0&&(E=I),_[E]=x[I]}),d=commonjsGlobal$1&&commonjsGlobal$1.__exportStar||function(_,x){for(var I in _)I!=="default"&&!Object.prototype.hasOwnProperty.call(x,I)&&f(x,_,I)};Object.defineProperty(u,"__esModule",{value:!0}),d(IAppAccount,u),d(IAppUser,u),d(IAppNFT,u),d(IAppJoinCampaign,u)})(objects$1);(function(u){var f=commonjsGlobal$1&&commonjsGlobal$1.__createBinding||(Object.create?function(I,E,M,S){S===void 0&&(S=M);var A=Object.getOwnPropertyDescriptor(E,M);(!A||("get"in A?!E.__esModule:A.writable||A.configurable))&&(A={enumerable:!0,get:function(){return E[M]}}),Object.defineProperty(I,S,A)}:function(I,E,M,S){S===void 0&&(S=M),I[S]=E[M]}),d=commonjsGlobal$1&&commonjsGlobal$1.__setModuleDefault||(Object.create?function(I,E){Object.defineProperty(I,"default",{enumerable:!0,value:E})}:function(I,E){I.default=E}),_=commonjsGlobal$1&&commonjsGlobal$1.__importStar||function(I){if(I&&I.__esModule)return I;var E={};if(I!=null)for(var M in I)M!=="default"&&Object.prototype.hasOwnProperty.call(I,M)&&f(E,I,M);return d(E,I),E},x=commonjsGlobal$1&&commonjsGlobal$1.__exportStar||function(I,E){for(var M in I)M!=="default"&&!Object.prototype.hasOwnProperty.call(E,M)&&f(E,I,M)};Object.defineProperty(u,"__esModule",{value:!0}),u.V1=u.Wallet=u.User=u.Droplink=u.Account=void 0,u.Account=_(account$1),u.Droplink=_(droplink$4),u.User=_(user),u.Wallet=_(wallet$1),u.V1=_(v1$1),x(objects$1,u)})(sdk);var CoinPriceCache={},coins={},Markets={};Object.defineProperty(Markets,"__esModule",{value:!0});var __createBinding$4=commonjsGlobal$1&&commonjsGlobal$1.__createBinding||(Object.create?function(u,f,d,_){_===void 0&&(_=d);var x=Object.getOwnPropertyDescriptor(f,d);(!x||("get"in x?!f.__esModule:x.writable||x.configurable))&&(x={enumerable:!0,get:function(){return f[d]}}),Object.defineProperty(u,_,x)}:function(u,f,d,_){_===void 0&&(_=d),u[_]=f[d]}),__setModuleDefault$4=commonjsGlobal$1&&commonjsGlobal$1.__setModuleDefault||(Object.create?function(u,f){Object.defineProperty(u,"default",{enumerable:!0,value:f})}:function(u,f){u.default=f}),__importStar$4=commonjsGlobal$1&&commonjsGlobal$1.__importStar||function(u){if(u&&u.__esModule)return u;var f={};if(u!=null)for(var d in u)d!=="default"&&Object.prototype.hasOwnProperty.call(u,d)&&__createBinding$4(f,u,d);return __setModuleDefault$4(f,u),f};Object.defineProperty(coins,"__esModule",{value:!0});coins.Markets=void 0;coins.Markets=__importStar$4(Markets);var Global={};Object.defineProperty(Global,"__esModule",{value:!0});var __createBinding$3=commonjsGlobal$1&&commonjsGlobal$1.__createBinding||(Object.create?function(u,f,d,_){_===void 0&&(_=d);var x=Object.getOwnPropertyDescriptor(f,d);(!x||("get"in x?!f.__esModule:x.writable||x.configurable))&&(x={enumerable:!0,get:function(){return f[d]}}),Object.defineProperty(u,_,x)}:function(u,f,d,_){_===void 0&&(_=d),u[_]=f[d]}),__setModuleDefault$3=commonjsGlobal$1&&commonjsGlobal$1.__setModuleDefault||(Object.create?function(u,f){Object.defineProperty(u,"default",{enumerable:!0,value:f})}:function(u,f){u.default=f}),__importStar$3=commonjsGlobal$1&&commonjsGlobal$1.__importStar||function(u){if(u&&u.__esModule)return u;var f={};if(u!=null)for(var d in u)d!=="default"&&Object.prototype.hasOwnProperty.call(u,d)&&__createBinding$3(f,u,d);return __setModuleDefault$3(f,u),f};Object.defineProperty(CoinPriceCache,"__esModule",{value:!0});CoinPriceCache.Global=CoinPriceCache.Coins=void 0;CoinPriceCache.Coins=__importStar$3(coins);CoinPriceCache.Global=__importStar$3(Global);var _const={},AccountOnChainState={};(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.AccountOnChainState=void 0,function(f){f[f.active=1]="active",f[f.inactive=2]="inactive"}(u.AccountOnChainState||(u.AccountOnChainState={}))})(AccountOnChainState);var AccountState={};(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.AccountState=void 0,function(f){f[f.active=1]="active",f[f.inactive=2]="inactive"}(u.AccountState||(u.AccountState={}))})(AccountState);var AccountTokenOnChainState={};(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.AccountTokenOnChainState=void 0,function(f){f[f.active=1]="active",f[f.inactive=2]="inactive"}(u.AccountTokenOnChainState||(u.AccountTokenOnChainState={}))})(AccountTokenOnChainState);var AccountTokenState={};(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.AccountTokenState=void 0,function(f){f[f.active=1]="active",f[f.inactive=2]="inactive"}(u.AccountTokenState||(u.AccountTokenState={}))})(AccountTokenState);var NFTContractScheme={};(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.NFTContractScheme=void 0,function(f){f[f.ERC721=1]="ERC721",f[f.ERC1155=2]="ERC1155",f[f.SBT=3]="SBT",f[f.DNFT=4]="DNFT",f[f.SOLANA_SFA=5]="SOLANA_SFA",f[f.KIP37=6]="KIP37",f[f.KIP17=7]="KIP17",f[f.SOLANA_EDITION=8]="SOLANA_EDITION"}(u.NFTContractScheme||(u.NFTContractScheme={}))})(NFTContractScheme);var NFTContractType={};(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.NFTContractType=void 0,function(f){f[f.Common=0]="Common",f[f.HubLink=1]="HubLink"}(u.NFTContractType||(u.NFTContractType={}))})(NFTContractType);var NFTTokenContentType={};(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.NFTTokenContentType=void 0,function(f){f[f.image=1]="image",f[f.video=2]="video"}(u.NFTTokenContentType||(u.NFTTokenContentType={}))})(NFTTokenContentType);var NoticeType={};(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.NoticeType=void 0,function(f){f[f.head=1]="head",f[f.list=2]="list",f[f.popup=3]="popup",f[f.event=4]="event"}(u.NoticeType||(u.NoticeType={}))})(NoticeType);var OnChainState={};(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.OnChainState=void 0,function(f){f[f.active=1]="active",f[f.inactive=2]="inactive"}(u.OnChainState||(u.OnChainState={}))})(OnChainState);var ProjectPlatformKind={};(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.ProjectPlatformKind=void 0,function(f){f[f.web=1]="web",f[f.android=2]="android",f[f.ios=3]="ios"}(u.ProjectPlatformKind||(u.ProjectPlatformKind={}))})(ProjectPlatformKind);var ProjectPlatformReleaseType={};(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.ProjectPlatformReleaseType=void 0,function(f){f[f.development=1]="development",f[f.product=2]="product"}(u.ProjectPlatformReleaseType||(u.ProjectPlatformReleaseType={}))})(ProjectPlatformReleaseType);var ProjectState={};(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.ProjectState=void 0,function(f){f[f.active=1]="active",f[f.inactive=2]="inactive"}(u.ProjectState||(u.ProjectState={}))})(ProjectState);var ProjectType={};(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.ProjectType=void 0,function(f){f[f.useUser=1]="useUser",f[f.useAccount=2]="useAccount"}(u.ProjectType||(u.ProjectType={}))})(ProjectType);var TokenType={};(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.TokenType=void 0,function(f){f[f.ERC20=1]="ERC20",f[f.KRC20=2]="KRC20",f[f.SPL=3]="SPL",f[f["STELLAR-TA"]=4]="STELLAR-TA",f[f["RIPPLE-TA"]=5]="RIPPLE-TA",f[f.TRC10=6]="TRC10",f[f.TRC20=7]="TRC20",f[f.BEP2=8]="BEP2",f[f.BEP20=9]="BEP20",f[f.HRC20=10]="HRC20",f[f["xDai-ERC20"]=11]="xDai-ERC20",f[f["FTM-ERC20"]=12]="FTM-ERC20",f[f["Celo-ERC20"]=13]="Celo-ERC20",f[f["Meta-MRC20"]=14]="Meta-MRC20",f[f["KCC-ERC20"]=15]="KCC-ERC20",f[f["SONGBIRD-ERC20"]=16]="SONGBIRD-ERC20",f[f["AVA-ERC20"]=17]="AVA-ERC20",f[f["EWC-ERC20"]=18]="EWC-ERC20",f[f["ARBITRUM-ERC20"]=19]="ARBITRUM-ERC20",f[f["BOBA-ERC20"]=20]="BOBA-ERC20",f[f["OEC-KIP20"]=21]="OEC-KIP20",f[f["harmony-HRC20"]=22]="harmony-HRC20",f[f["ORC-ERC20"]=23]="ORC-ERC20",f[f["OC-ERC20"]=24]="OC-ERC20",f[f["CRO-ERC20"]=25]="CRO-ERC20",f[f["PALM-ERC20"]=26]="PALM-ERC20",f[f["FLR-ERC20"]=27]="FLR-ERC20",f[f["OAS-ERC20"]=28]="OAS-ERC20",f[f["LUNIVERSE-TKN"]=29]="LUNIVERSE-TKN",f[f["HEDERA-HTS"]=30]="HEDERA-HTS",f[f.SIP010=31]="SIP010",f[f["POLYGON-ERC20"]=32]="POLYGON-ERC20",f[f.XRC20=33]="XRC20",f[f.RRC20=34]="RRC20",f[f["CFX-CRC20"]=35]="CFX-CRC20",f[f["XTZ-FA"]=36]="XTZ-FA",f[f["VECHAIN-ERC20"]=37]="VECHAIN-ERC20",f[f["ERC20-KOVAN"]=38]="ERC20-KOVAN",f[f["ERC20-RINKEBY"]=39]="ERC20-RINKEBY",f[f["ERC20-ROPSTEN"]=40]="ERC20-ROPSTEN",f[f["FLR20-COSTON"]=41]="FLR20-COSTON",f[f["KRC20-TESTNET"]=42]="KRC20-TESTNET",f[f["XLM-TA-TESTNET"]=43]="XLM-TA-TESTNET",f[f["TRC-TESTNET"]=44]="TRC-TESTNET",f[f["BEP2-TESTNET"]=45]="BEP2-TESTNET",f[f.KoERC20=46]="KoERC20",f[f["Meta-Testnet-ERC20"]=47]="Meta-Testnet-ERC20",f[f["ARBITRUM-Testnet-ERC20"]=48]="ARBITRUM-Testnet-ERC20",f[f["harmony-testnet-HRC20"]=49]="harmony-testnet-HRC20",f[f["HTS-TESTNET"]=50]="HTS-TESTNET",f[f["SIP010-TESTNET"]=51]="SIP010-TESTNET",f[f["RRC20-TESTNET"]=52]="RRC20-TESTNET",f[f["XTZ-FA-TESTNET"]=53]="XTZ-FA-TESTNET",f[f["TRC-TOKEN"]=54]="TRC-TOKEN",f[f["NEAR-TOKEN"]=55]="NEAR-TOKEN",f[f["NEAR-TOKEN-TESTNET"]=56]="NEAR-TOKEN-TESTNET"}(u.TokenType||(u.TokenType={}))})(TokenType);var UserJoinStage={};(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.UserJoinStage=void 0,function(f){f[f.emailRequire=1]="emailRequire",f[f.pinRequire=2]="pinRequire",f[f.complete=3]="complete"}(u.UserJoinStage||(u.UserJoinStage={}))})(UserJoinStage);var UserCurrency={};(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.UserCurrency=void 0,function(f){f[f.KRW=1]="KRW",f[f.USD=2]="USD",f[f.EUR=3]="EUR",f[f.RUB=4]="RUB",f[f.IDR=5]="IDR",f[f.CNY=6]="CNY",f[f.TWD=7]="TWD",f[f.JPY=8]="JPY"}(u.UserCurrency||(u.UserCurrency={}))})(UserCurrency);var UserState={};(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.UserState=void 0,function(f){f[f.active=1]="active",f[f.deleted=2]="deleted"}(u.UserState||(u.UserState={}))})(UserState);var WalletPinState={};(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.WalletPinState=void 0,function(f){f[f.normal=1]="normal",f[f.resetRequest=2]="resetRequest",f[f.resetAvailable=3]="resetAvailable",f[f.blocked=4]="blocked"}(u.WalletPinState||(u.WalletPinState={}))})(WalletPinState);var WalletState={};(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.WalletState=void 0,function(f){f[f.created=1]="created",f[f.verified=2]="verified",f[f.blocked=3]="blocked",f[f.exported=4]="exported"}(u.WalletState||(u.WalletState={}))})(WalletState);var CoinFeeType={};(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.CoinFeeType=void 0,function(f){f[f.Ethererum=1]="Ethererum",f[f.EVM_fixprice=2]="EVM_fixprice",f[f.Solana=3]="Solana",f[f.Tron=4]="Tron",f[f.Near=5]="Near"}(u.CoinFeeType||(u.CoinFeeType={}))})(CoinFeeType);var CoinState={};(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.CoinState=void 0,function(f){f[f.active=1]="active",f[f.disable=2]="disable"}(u.CoinState||(u.CoinState={}))})(CoinState);var AppState={};(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.AppState=void 0,function(f){f[f.Activated=1]="Activated",f[f.Deactivated=2]="Deactivated",f[f.Recovered=3]="Recovered"}(u.AppState||(u.AppState={}))})(AppState);var NFTTokenState={};(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.NFTTokenState=void 0,function(f){f[f.active=1]="active",f[f.inactive=2]="inactive",f[f.pending=3]="pending"}(u.NFTTokenState||(u.NFTTokenState={}))})(NFTTokenState);var CampaignQuestType={};(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.CampaignQuestType=void 0,function(f){f[f.SNSFollow=1]="SNSFollow",f[f.Invite=2]="Invite",f[f.AppDownload=3]="AppDownload",f[f.visitCreateWallet=4]="visitCreateWallet",f[f.RankInvite=102]="RankInvite"}(u.CampaignQuestType||(u.CampaignQuestType={}))})(CampaignQuestType);var UseRestApiState={};(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.UseRestApiState=void 0,function(f){f[f.NONE=0]="NONE",f[f.REQUESTED=1]="REQUESTED",f[f.CONFIRMED=2]="CONFIRMED"}(u.UseRestApiState||(u.UseRestApiState={}))})(UseRestApiState);(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.UseRestApiState=u.CampaignQuestType=u.NFTTokenState=u.AppState=u.CoinState=u.CoinFeeType=u.WalletState=u.WalletPinState=u.UserState=u.UserCurrency=u.UserJoinStage=u.TokenType=u.ProjectType=u.ProjectState=u.ProjectPlatformReleaseType=u.ProjectPlatformKind=u.OnChainState=u.NoticeType=u.NFTTokenContentType=u.NFTContractType=u.NFTContractScheme=u.AccountTokenState=u.AccountTokenOnChainState=u.AccountState=u.AccountOnChainState=void 0;var f=AccountOnChainState;Object.defineProperty(u,"AccountOnChainState",{enumerable:!0,get:function(){return f.AccountOnChainState}});var d=AccountState;Object.defineProperty(u,"AccountState",{enumerable:!0,get:function(){return d.AccountState}});var _=AccountTokenOnChainState;Object.defineProperty(u,"AccountTokenOnChainState",{enumerable:!0,get:function(){return _.AccountTokenOnChainState}});var x=AccountTokenState;Object.defineProperty(u,"AccountTokenState",{enumerable:!0,get:function(){return x.AccountTokenState}});var I=NFTContractScheme;Object.defineProperty(u,"NFTContractScheme",{enumerable:!0,get:function(){return I.NFTContractScheme}});var E=NFTContractType;Object.defineProperty(u,"NFTContractType",{enumerable:!0,get:function(){return E.NFTContractType}});var M=NFTTokenContentType;Object.defineProperty(u,"NFTTokenContentType",{enumerable:!0,get:function(){return M.NFTTokenContentType}});var S=NoticeType;Object.defineProperty(u,"NoticeType",{enumerable:!0,get:function(){return S.NoticeType}});var A=OnChainState;Object.defineProperty(u,"OnChainState",{enumerable:!0,get:function(){return A.OnChainState}});var T=ProjectPlatformKind;Object.defineProperty(u,"ProjectPlatformKind",{enumerable:!0,get:function(){return T.ProjectPlatformKind}});var D=ProjectPlatformReleaseType;Object.defineProperty(u,"ProjectPlatformReleaseType",{enumerable:!0,get:function(){return D.ProjectPlatformReleaseType}});var O=ProjectState;Object.defineProperty(u,"ProjectState",{enumerable:!0,get:function(){return O.ProjectState}});var j=ProjectType;Object.defineProperty(u,"ProjectType",{enumerable:!0,get:function(){return j.ProjectType}});var $=TokenType;Object.defineProperty(u,"TokenType",{enumerable:!0,get:function(){return $.TokenType}});var W=UserJoinStage;Object.defineProperty(u,"UserJoinStage",{enumerable:!0,get:function(){return W.UserJoinStage}});var Q=UserCurrency;Object.defineProperty(u,"UserCurrency",{enumerable:!0,get:function(){return Q.UserCurrency}});var X=UserState;Object.defineProperty(u,"UserState",{enumerable:!0,get:function(){return X.UserState}});var Y=WalletPinState;Object.defineProperty(u,"WalletPinState",{enumerable:!0,get:function(){return Y.WalletPinState}});var ie=WalletState;Object.defineProperty(u,"WalletState",{enumerable:!0,get:function(){return ie.WalletState}});var oe=CoinFeeType;Object.defineProperty(u,"CoinFeeType",{enumerable:!0,get:function(){return oe.CoinFeeType}});var ge=CoinState;Object.defineProperty(u,"CoinState",{enumerable:!0,get:function(){return ge.CoinState}});var be=AppState;Object.defineProperty(u,"AppState",{enumerable:!0,get:function(){return be.AppState}});var ze=NFTTokenState;Object.defineProperty(u,"NFTTokenState",{enumerable:!0,get:function(){return ze.NFTTokenState}});var de=CampaignQuestType;Object.defineProperty(u,"CampaignQuestType",{enumerable:!0,get:function(){return de.CampaignQuestType}});var Ce=UseRestApiState;Object.defineProperty(u,"UseRestApiState",{enumerable:!0,get:function(){return Ce.UseRestApiState}})})(_const);var objects={},IAccount={};Object.defineProperty(IAccount,"__esModule",{value:!0});var IAccountToken={};Object.defineProperty(IAccountToken,"__esModule",{value:!0});var ICoinInfo={};Object.defineProperty(ICoinInfo,"__esModule",{value:!0});var ICoinPrice={};Object.defineProperty(ICoinPrice,"__esModule",{value:!0});var ICurrency={};Object.defineProperty(ICurrency,"__esModule",{value:!0});var ILocale={};Object.defineProperty(ILocale,"__esModule",{value:!0});var IMintedInfos={};Object.defineProperty(IMintedInfos,"__esModule",{value:!0});var INFT={};Object.defineProperty(INFT,"__esModule",{value:!0});var INFTContract={};Object.defineProperty(INFTContract,"__esModule",{value:!0});var INFTSupport={};Object.defineProperty(INFTSupport,"__esModule",{value:!0});var INotice={};Object.defineProperty(INotice,"__esModule",{value:!0});var IProject={};Object.defineProperty(IProject,"__esModule",{value:!0});var IProvider={};Object.defineProperty(IProvider,"__esModule",{value:!0});var IProjectJoinInfo={};Object.defineProperty(IProjectJoinInfo,"__esModule",{value:!0});var ITokenInfo={};Object.defineProperty(ITokenInfo,"__esModule",{value:!0});var IUser={};Object.defineProperty(IUser,"__esModule",{value:!0});var IWallet={};Object.defineProperty(IWallet,"__esModule",{value:!0});var ITokenBalance={};Object.defineProperty(ITokenBalance,"__esModule",{value:!0});var IAccountBalance={};Object.defineProperty(IAccountBalance,"__esModule",{value:!0});var ITransaction={};Object.defineProperty(ITransaction,"__esModule",{value:!0});var ITransactionDetail={};Object.defineProperty(ITransactionDetail,"__esModule",{value:!0});var IApp={};Object.defineProperty(IApp,"__esModule",{value:!0});var ITermsAccepted={};Object.defineProperty(ITermsAccepted,"__esModule",{value:!0});var IRecoveryCode={};Object.defineProperty(IRecoveryCode,"__esModule",{value:!0});var IUserApp={};Object.defineProperty(IUserApp,"__esModule",{value:!0});var IAppPromotion={};Object.defineProperty(IAppPromotion,"__esModule",{value:!0});var IAppPromotionContent={};Object.defineProperty(IAppPromotionContent,"__esModule",{value:!0});var IReferralEvent={};Object.defineProperty(IReferralEvent,"__esModule",{value:!0});var IaaAccount={};Object.defineProperty(IaaAccount,"__esModule",{value:!0});var IaaAccountToken={};Object.defineProperty(IaaAccountToken,"__esModule",{value:!0});var ICampaign={};Object.defineProperty(ICampaign,"__esModule",{value:!0});var ICampaignLanding={};Object.defineProperty(ICampaignLanding,"__esModule",{value:!0});var ICampaignDetail={};Object.defineProperty(ICampaignDetail,"__esModule",{value:!0});(function(u){var f=commonjsGlobal$1&&commonjsGlobal$1.__createBinding||(Object.create?function(_,x,I,E){E===void 0&&(E=I);var M=Object.getOwnPropertyDescriptor(x,I);(!M||("get"in M?!x.__esModule:M.writable||M.configurable))&&(M={enumerable:!0,get:function(){return x[I]}}),Object.defineProperty(_,E,M)}:function(_,x,I,E){E===void 0&&(E=I),_[E]=x[I]}),d=commonjsGlobal$1&&commonjsGlobal$1.__exportStar||function(_,x){for(var I in _)I!=="default"&&!Object.prototype.hasOwnProperty.call(x,I)&&f(x,_,I)};Object.defineProperty(u,"__esModule",{value:!0}),d(IAccount,u),d(IAccountToken,u),d(ICoinInfo,u),d(ICoinPrice,u),d(ICurrency,u),d(ILocale,u),d(IMintedInfos,u),d(INFT,u),d(INFTContract,u),d(INFTSupport,u),d(INotice,u),d(IProject,u),d(IProvider,u),d(IProjectJoinInfo,u),d(ITokenInfo,u),d(IUser,u),d(IWallet,u),d(ITokenBalance,u),d(IAccountBalance,u),d(ITransaction,u),d(ITransactionDetail,u),d(IApp,u),d(ITermsAccepted,u),d(IRecoveryCode,u),d(IUserApp,u),d(IAppPromotion,u),d(IAppPromotionContent,u),d(IReferralEvent,u),d(IaaAccount,u),d(IaaAccountToken,u),d(ICampaign,u),d(ICampaignLanding,u),d(ICampaignDetail,u)})(objects);var firebase={},GetDiscordUserInfo={};(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.Response=void 0,function(f){class d{constructor(x,I,E,M,S,A,T,D,O,j,$,W,Q,X,Y){this.id=x,this.username=I,this.email=E,this.verified=M,this.discriminator=S,this.avatar=A,this.public_flags=T,this.premium_type=D,this.flags=O,this.banner=j,this.account_color=$,this.mfa_enabled=W,this.locale=Q,this.avatar_decoration_data=X,this.global_name=Y}}f.Body=d}(u.Response||(u.Response={}))})(GetDiscordUserInfo);var GetNaverUserInfo={};(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.Response=void 0,function(f){class d{constructor(x,I,E,M){this.id=x,this.email=I,this.name=E,this.profile_image=M}}f.Body=d}(u.Response||(u.Response={}))})(GetNaverUserInfo);var GetGoogleUserInfo={};(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.Response=void 0,function(f){class d{constructor(x,I,E,M,S,A,T,D,O){this.id=x,this.email=I,this.verified_email=E,this.name=M,this.given_name=S,this.family_name=A,this.picture=T,this.locale=D,this.hd=O}}f.Body=d}(u.Response||(u.Response={}))})(GetGoogleUserInfo);var GetCustomProviderToken={};Object.defineProperty(GetCustomProviderToken,"__esModule",{value:!0});var GetAppleUserInfo={};(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.Response=void 0,function(f){class d{constructor(x,I,E,M,S,A,T,D){this.id=x,this.email=I,this.email_verifed=E,this.nonce=M,this.nonce_supported=S,this.is_private_email=A,this.real_user_status=T,this.transfer_sub=D}}f.Body=d}(u.Response||(u.Response={}))})(GetAppleUserInfo);var constant={};Object.defineProperty(constant,"__esModule",{value:!0});constant.Constants=void 0;constant.Constants={VERIFY:{CREATE:"create",RESETPW:"reset",VERIFY:"verify"},PROVIDERS:{NAVER:"naver",DISCORD:"discord",GOOGLE:"google",APPLE:"apple",FACEBOOK:"facebook",LINE:"line"}};(function(u){var f=commonjsGlobal$1&&commonjsGlobal$1.__createBinding||(Object.create?function(I,E,M,S){S===void 0&&(S=M);var A=Object.getOwnPropertyDescriptor(E,M);(!A||("get"in A?!E.__esModule:A.writable||A.configurable))&&(A={enumerable:!0,get:function(){return E[M]}}),Object.defineProperty(I,S,A)}:function(I,E,M,S){S===void 0&&(S=M),I[S]=E[M]}),d=commonjsGlobal$1&&commonjsGlobal$1.__setModuleDefault||(Object.create?function(I,E){Object.defineProperty(I,"default",{enumerable:!0,value:E})}:function(I,E){I.default=E}),_=commonjsGlobal$1&&commonjsGlobal$1.__importStar||function(I){if(I&&I.__esModule)return I;var E={};if(I!=null)for(var M in I)M!=="default"&&Object.prototype.hasOwnProperty.call(I,M)&&f(E,I,M);return d(E,I),E},x=commonjsGlobal$1&&commonjsGlobal$1.__exportStar||function(I,E){for(var M in I)M!=="default"&&!Object.prototype.hasOwnProperty.call(E,M)&&f(E,I,M)};Object.defineProperty(u,"__esModule",{value:!0}),u.GetAppleUserInfo=u.GetCustomProviderToken=u.GetGoogleUserInfo=u.GetNaverUserInfo=u.GetDiscordUserInfo=void 0,u.GetDiscordUserInfo=_(GetDiscordUserInfo),u.GetNaverUserInfo=_(GetNaverUserInfo),u.GetGoogleUserInfo=_(GetGoogleUserInfo),u.GetCustomProviderToken=_(GetCustomProviderToken),u.GetAppleUserInfo=_(GetAppleUserInfo),x(constant,u)})(firebase);var _2FA={},Get2FAStatus={};Object.defineProperty(Get2FAStatus,"__esModule",{value:!0});var GetRecoveryCode={};Object.defineProperty(GetRecoveryCode,"__esModule",{value:!0});var Set2FA={};Object.defineProperty(Set2FA,"__esModule",{value:!0});var Unset2FA={};Object.defineProperty(Unset2FA,"__esModule",{value:!0});var UpdateRecoveryCode={};Object.defineProperty(UpdateRecoveryCode,"__esModule",{value:!0});var VerifyCode={};Object.defineProperty(VerifyCode,"__esModule",{value:!0});var Update2FAState={};Object.defineProperty(Update2FAState,"__esModule",{value:!0});var __createBinding$2=commonjsGlobal$1&&commonjsGlobal$1.__createBinding||(Object.create?function(u,f,d,_){_===void 0&&(_=d);var x=Object.getOwnPropertyDescriptor(f,d);(!x||("get"in x?!f.__esModule:x.writable||x.configurable))&&(x={enumerable:!0,get:function(){return f[d]}}),Object.defineProperty(u,_,x)}:function(u,f,d,_){_===void 0&&(_=d),u[_]=f[d]}),__setModuleDefault$2=commonjsGlobal$1&&commonjsGlobal$1.__setModuleDefault||(Object.create?function(u,f){Object.defineProperty(u,"default",{enumerable:!0,value:f})}:function(u,f){u.default=f}),__importStar$2=commonjsGlobal$1&&commonjsGlobal$1.__importStar||function(u){if(u&&u.__esModule)return u;var f={};if(u!=null)for(var d in u)d!=="default"&&Object.prototype.hasOwnProperty.call(u,d)&&__createBinding$2(f,u,d);return __setModuleDefault$2(f,u),f};Object.defineProperty(_2FA,"__esModule",{value:!0});_2FA.Update2FAState=_2FA.VerifyCode=_2FA.UpdateRecoveryCode=_2FA.Unset=_2FA.Set2FA=_2FA.GetRecoveryCode=_2FA.Get2FAStatus=void 0;_2FA.Get2FAStatus=__importStar$2(Get2FAStatus);_2FA.GetRecoveryCode=__importStar$2(GetRecoveryCode);_2FA.Set2FA=__importStar$2(Set2FA);_2FA.Unset=__importStar$2(Unset2FA);_2FA.UpdateRecoveryCode=__importStar$2(UpdateRecoveryCode);_2FA.VerifyCode=__importStar$2(VerifyCode);_2FA.Update2FAState=__importStar$2(Update2FAState);var app$1={},addAppPublicKey={};Object.defineProperty(addAppPublicKey,"__esModule",{value:!0});var removeAppPublicKey={};Object.defineProperty(removeAppPublicKey,"__esModule",{value:!0});var useRestApi={};Object.defineProperty(useRestApi,"__esModule",{value:!0});var __createBinding$1=commonjsGlobal$1&&commonjsGlobal$1.__createBinding||(Object.create?function(u,f,d,_){_===void 0&&(_=d);var x=Object.getOwnPropertyDescriptor(f,d);(!x||("get"in x?!f.__esModule:x.writable||x.configurable))&&(x={enumerable:!0,get:function(){return f[d]}}),Object.defineProperty(u,_,x)}:function(u,f,d,_){_===void 0&&(_=d),u[_]=f[d]}),__setModuleDefault$1=commonjsGlobal$1&&commonjsGlobal$1.__setModuleDefault||(Object.create?function(u,f){Object.defineProperty(u,"default",{enumerable:!0,value:f})}:function(u,f){u.default=f}),__importStar$1=commonjsGlobal$1&&commonjsGlobal$1.__importStar||function(u){if(u&&u.__esModule)return u;var f={};if(u!=null)for(var d in u)d!=="default"&&Object.prototype.hasOwnProperty.call(u,d)&&__createBinding$1(f,u,d);return __setModuleDefault$1(f,u),f};Object.defineProperty(app$1,"__esModule",{value:!0});app$1.UseRestApi=app$1.RemoveAppPublicKey=app$1.AddAppPublicKey=void 0;app$1.AddAppPublicKey=__importStar$1(addAppPublicKey);app$1.RemoveAppPublicKey=__importStar$1(removeAppPublicKey);app$1.UseRestApi=__importStar$1(useRestApi);var droplink$3={},GetDroplinkCampaignList={};Object.defineProperty(GetDroplinkCampaignList,"__esModule",{value:!0});var GetDroplinkCampaignLanding={};Object.defineProperty(GetDroplinkCampaignLanding,"__esModule",{value:!0});var GetDroplinkCampaignJoin={};Object.defineProperty(GetDroplinkCampaignJoin,"__esModule",{value:!0});var GetDroplinkCampaignDetail={};Object.defineProperty(GetDroplinkCampaignDetail,"__esModule",{value:!0});var RequestDroplinkCampaign={};Object.defineProperty(RequestDroplinkCampaign,"__esModule",{value:!0});var CompleteDroplinkQuest={};Object.defineProperty(CompleteDroplinkQuest,"__esModule",{value:!0});var ClaimDroplinkCampaign={};Object.defineProperty(ClaimDroplinkCampaign,"__esModule",{value:!0});var SetDroplinkCampaignReferral={};Object.defineProperty(SetDroplinkCampaignReferral,"__esModule",{value:!0});var GetDroplinkCampaignClaim={};Object.defineProperty(GetDroplinkCampaignClaim,"__esModule",{value:!0});var GetDroplinkCampaignRequest={};Object.defineProperty(GetDroplinkCampaignRequest,"__esModule",{value:!0});var SendRequestEmailDroplinkCampaign={};Object.defineProperty(SendRequestEmailDroplinkCampaign,"__esModule",{value:!0});var SendRequestCompleteEmailDroplinkCampaign={};Object.defineProperty(SendRequestCompleteEmailDroplinkCampaign,"__esModule",{value:!0});var SendClaimEmailDroplinkCampaign={};Object.defineProperty(SendClaimEmailDroplinkCampaign,"__esModule",{value:!0});var __createBinding=commonjsGlobal$1&&commonjsGlobal$1.__createBinding||(Object.create?function(u,f,d,_){_===void 0&&(_=d);var x=Object.getOwnPropertyDescriptor(f,d);(!x||("get"in x?!f.__esModule:x.writable||x.configurable))&&(x={enumerable:!0,get:function(){return f[d]}}),Object.defineProperty(u,_,x)}:function(u,f,d,_){_===void 0&&(_=d),u[_]=f[d]}),__setModuleDefault=commonjsGlobal$1&&commonjsGlobal$1.__setModuleDefault||(Object.create?function(u,f){Object.defineProperty(u,"default",{enumerable:!0,value:f})}:function(u,f){u.default=f}),__importStar=commonjsGlobal$1&&commonjsGlobal$1.__importStar||function(u){if(u&&u.__esModule)return u;var f={};if(u!=null)for(var d in u)d!=="default"&&Object.prototype.hasOwnProperty.call(u,d)&&__createBinding(f,u,d);return __setModuleDefault(f,u),f};Object.defineProperty(droplink$3,"__esModule",{value:!0});droplink$3.SendClaimEmailDroplinkCampaign=droplink$3.SendRequestCompleteEmailDroplinkCampaign=droplink$3.SendRequestEmailDroplinkCampaign=droplink$3.GetDroplinkCampaignRequest=droplink$3.GetDroplinkCampaignClaim=droplink$3.SetDroplinkCampaignReferralCode=droplink$3.ClaimDroplinkCampaign=droplink$3.CompleteDroplinkQuest=droplink$3.RequestDroplinkCampaign=droplink$3.GetDroplinkCampaignDetail=droplink$3.GetDroplinkCampaignJoin=droplink$3.GetDroplinkCampaignLanding=droplink$3.GetDroplinkCampaignList=void 0;droplink$3.GetDroplinkCampaignList=__importStar(GetDroplinkCampaignList);droplink$3.GetDroplinkCampaignLanding=__importStar(GetDroplinkCampaignLanding);droplink$3.GetDroplinkCampaignJoin=__importStar(GetDroplinkCampaignJoin);droplink$3.GetDroplinkCampaignDetail=__importStar(GetDroplinkCampaignDetail);droplink$3.RequestDroplinkCampaign=__importStar(RequestDroplinkCampaign);droplink$3.CompleteDroplinkQuest=__importStar(CompleteDroplinkQuest);droplink$3.ClaimDroplinkCampaign=__importStar(ClaimDroplinkCampaign);droplink$3.SetDroplinkCampaignReferralCode=__importStar(SetDroplinkCampaignReferral);droplink$3.GetDroplinkCampaignClaim=__importStar(GetDroplinkCampaignClaim);droplink$3.GetDroplinkCampaignRequest=__importStar(GetDroplinkCampaignRequest);droplink$3.SendRequestEmailDroplinkCampaign=__importStar(SendRequestEmailDroplinkCampaign);droplink$3.SendRequestCompleteEmailDroplinkCampaign=__importStar(SendRequestCompleteEmailDroplinkCampaign);droplink$3.SendClaimEmailDroplinkCampaign=__importStar(SendClaimEmailDroplinkCampaign);(function(u){var f=commonjsGlobal$1&&commonjsGlobal$1.__createBinding||(Object.create?function(I,E,M,S){S===void 0&&(S=M);var A=Object.getOwnPropertyDescriptor(E,M);(!A||("get"in A?!E.__esModule:A.writable||A.configurable))&&(A={enumerable:!0,get:function(){return E[M]}}),Object.defineProperty(I,S,A)}:function(I,E,M,S){S===void 0&&(S=M),I[S]=E[M]}),d=commonjsGlobal$1&&commonjsGlobal$1.__setModuleDefault||(Object.create?function(I,E){Object.defineProperty(I,"default",{enumerable:!0,value:E})}:function(I,E){I.default=E}),_=commonjsGlobal$1&&commonjsGlobal$1.__importStar||function(I){if(I&&I.__esModule)return I;var E={};if(I!=null)for(var M in I)M!=="default"&&Object.prototype.hasOwnProperty.call(I,M)&&f(E,I,M);return d(E,I),E},x=commonjsGlobal$1&&commonjsGlobal$1.__exportStar||function(I,E){for(var M in I)M!=="default"&&!Object.prototype.hasOwnProperty.call(E,M)&&f(E,I,M)};Object.defineProperty(u,"__esModule",{value:!0}),u.Droplink=u.App=u.Auth=u.Firebase=u.CoinPriceCache=u.SDK=u.Wallet=u.User=u.Transaction=u.Token=u.Project=u.Notice=u.NftContract=u.Nft=u.Info=u.Coin=u.Account=void 0,u.Account=_(account$2),u.Coin=_(coin),u.Info=_(info),u.Nft=_(nft$3),u.NftContract=_(nftContract),u.Notice=_(notice),u.Project=_(project),u.Token=_(token),u.Transaction=_(transaction),u.User=_(user$1),u.Wallet=_(wallet$2),u.SDK=_(sdk),u.CoinPriceCache=_(CoinPriceCache),x(_const,u),x(objects,u),u.Firebase=_(firebase),u.Auth=_(_2FA),u.App=_(app$1),u.Droplink=_(droplink$3)})(dist$1);new Date().toISOString(),dist$1.AccountOnChainState.active,dist$1.AccountState.active;new Date().toISOString(),dist$1.AccountOnChainState.active,dist$1.AccountState.active;new Date().toISOString(),dist$1.AccountOnChainState.active,dist$1.AccountState.active;class AccountTokenAPI{constructor(f){aM(this,"basePath","/account-token");this.fetcher=f}async addToken(f){const d=new APIRequest({url:this.basePath,method:"POST",data:f,withCredentials:!0});return(await this.fetcher.send(d)).data}async deleteToken(f){const d=new APIRequest({url:`${this.basePath}/${f.id}`,method:"DELETE",withCredentials:!0});return(await this.fetcher.send(d)).data}async updateToken(f,d){const _=new APIRequest({url:`${this.basePath}/${f.id}/modify`,method:"PATCH",data:d,withCredentials:!0});return(await this.fetcher.send(_)).data}async getTokenList(f){const d=new APIRequest({url:`${this.basePath}`,method:"GET",urlParams:f,withCredentials:!0});return(await this.fetcher.send(d)).data}async getToken(f){const d=new APIRequest({url:`${this.basePath}/${f.id}`,method:"GET",withCredentials:!0});return(await this.fetcher.send(d)).data}}dist$1.AccountTokenState.active,dist$1.AccountTokenOnChainState.active,new Date().toISOString();dist$1.AccountTokenState.active,dist$1.AccountTokenOnChainState.active,new Date().toISOString();dist$1.AccountTokenState.active,dist$1.AccountTokenOnChainState.active,new Date().toISOString();dist$1.AccountTokenState.active,dist$1.AccountTokenOnChainState.active,new Date().toISOString();class CoinAPI{constructor(f){this.fetcher=f}async getCoinInfoListWithoutSession(f){const d=new APIRequest({url:"/coin",method:"GET",withCredentials:!0,urlParams:f});return(await this.fetcher.send(d,{ignoreCheckToken:!0})).data}async getCoinInfoList(f){const d=new APIRequest({url:"/coin",method:"GET",withCredentials:!0,urlParams:f});return(await this.fetcher.send(d)).data}async getTokenInfoListBySpecificCoin(f,d){const _=new APIRequest({url:`/coin/${f.coinId}/token`,method:"GET",urlParams:d,withCredentials:!0});return(await this.fetcher.send(_)).data}async getTokenInfoList(f){const d=new APIRequest({url:"/token",method:"GET",urlParams:f,withCredentials:!0});return(await this.fetcher.send(d)).data}async getCoinPriceHistory(f,d){const _=new APIRequest({url:`/coin/coinprice/history/${f.coinId}/${f.tokenId}`,method:"GET",urlParams:d,withCredentials:!0});return(await this.fetcher.send(_)).data}async getCoinLatestPrice(){const f=new APIRequest({url:"/coin/coinprice/latest",method:"GET",withCredentials:!0});return(await this.fetcher.send(f)).data}async getCoinLatestPriceOfSpecificCoin(f){const d=new APIRequest({url:`/coin/coinprice/latest/coin/${f.coinId}`,method:"GET",withCredentials:!0});return(await this.fetcher.send(d)).data}async getCoinLatestPriceOfSpecificToken(f){const d=new APIRequest({url:`/coin/coinprice/latest/coin/${f.coinId}/${f.tokenId}`,method:"GET",withCredentials:!0});return(await this.fetcher.send(d)).data}async getAllCoinPrice(){const f=new APIRequest({url:"/coin/coinprice/latest",method:"GET",withCredentials:!0});return(await this.fetcher.send(f)).data}}const mockCoin_Ethereum={id:1027,name:"Ethereum",network:"Ethereum",coreNetwork:"ETHEREUM",bipPath:"m/44'/60'/0'/0/0'",chainId:"1",decimals:18,isTestnet:0,cmkId:1027,color:"#3c3c3d",symbol:"ETH",order:0,iconUrl:"https://s2.coinmarketcap.com/static/img/coins/64x64/1027.png",defaultAccountState:dist$1.OnChainState.active,explorerUrl:"https://etherscan.io/",coinGeckoId:"ethereum",feeType:dist$1.CoinFeeType.Ethererum,layer:0,state:1};dist$1.OnChainState.active,dist$1.CoinFeeType.Ethererum;dist$1.OnChainState.active,dist$1.CoinFeeType.Ethererum;dist$1.OnChainState.active,dist$1.CoinFeeType.Ethererum;new Date().toISOString();new Date().toISOString();new Date().toISOString();new Date().toISOString();new Date().toISOString();new Date().toISOString();dist$1.TokenType.ERC20,dist$1.OnChainState.active;dist$1.TokenType.ERC20,dist$1.OnChainState.active;dist$1.TokenType.ERC20,dist$1.OnChainState.active;dist$1.TokenType.ERC20,dist$1.OnChainState.active;class DroplinkAPI{constructor(f){aM(this,"basePath","/droplink");this.fetcher=f}async getCampaign(f){const d=new APIRequest({url:`${this.basePath}/campaign`,method:"GET",urlParams:f,withCredentials:!0});return(await this.fetcher.send(d)).data}async getCampaignLanding(f,d){const _=new APIRequest({url:`${this.basePath}/campaign/${f.campaignId}/landing`,method:"GET",urlParams:d,withCredentials:!0});return(await this.fetcher.send(_)).data}async getCampaignDetail(f,d){const _=new APIRequest({url:`${this.basePath}/campaign/${f.campaignId}/detail`,method:"GET",urlParams:d,withCredentials:!0});return(await this.fetcher.send(_)).data}async getClaim(f,d){const _=new APIRequest({url:`${this.basePath}/campaign/${f.campaignId}/claim`,method:"GET",urlParams:d,withCredentials:!0});return(await this.fetcher.send(_)).data}async requestCampaign(f,d){const _=new APIRequest({url:`${this.basePath}/campaign/${f.campaignId}/request`,method:"POST",data:d,withCredentials:!0});return(await this.fetcher.send(_)).data}async updateQuestCampaign(f,d){const _=new APIRequest({url:`${this.basePath}/campaign/${f.campaignId}/quest`,method:"POST",data:d,withCredentials:!0});return(await this.fetcher.send(_)).data}async requestClaim(f,d){const _=new APIRequest({url:`${this.basePath}/campaign/${f.campaignId}/claim`,method:"POST",data:d,withCredentials:!0});return(await this.fetcher.send(_)).data}async referralCampaign(f,d){const _=new APIRequest({url:`${this.basePath}/campaign/${f.campaignId}/referral`,method:"POST",data:d,withCredentials:!0});return(await this.fetcher.send(_)).data}async requestEmailCampaign(f,d){const _=new APIRequest({url:`${this.basePath}/campaign/${f.campaignId}/request/email`,method:"POST",data:d,withCredentials:!0});return(await this.fetcher.send(_)).data}async requestCompleteEmailCampaign(f,d){const _=new APIRequest({url:`${this.basePath}/campaign/${f.campaignId}/request-complete/${f.requestId}/email`,method:"POST",data:d,withCredentials:!0});return(await this.fetcher.send(_)).data}async getReferralCodeCampaign(f,d){const _=new APIRequest({url:`${this.basePath}/campaign/${f.campaignId}/request`,method:"GET",urlParams:d,withCredentials:!0});return(await this.fetcher.send(_)).data}async checkEmailJoinCampaign(f,d){const _=new APIRequest({url:`${this.basePath}/campaign/${f.campaignId}/join`,method:"GET",urlParams:d,withCredentials:!0});return(await this.fetcher.send(_)).data}}class InfoAPI{constructor(f){aM(this,"basePath","/info");this.fetcher=f}async getCurrencyList(f){const d=new APIRequest({url:`${this.basePath}/currency`,method:"GET",urlParams:f,withCredentials:!0});return(await this.fetcher.send(d)).data}async getCurrency(f){const d=new APIRequest({url:`${this.basePath}/currency/${f.currencyId}`,method:"GET",withCredentials:!0});return(await this.fetcher.send(d)).data}async getLocaleList(f){const d=new APIRequest({url:`${this.basePath}/locale`,method:"GET",urlParams:f,withCredentials:!0});return(await this.fetcher.send(d)).data}async getLocale(f){const d=new APIRequest({url:`${this.basePath}/locale/${f.localeId}`,method:"GET",withCredentials:!0});return(await this.fetcher.send(d)).data}}const now$1=new Date().getTime();new Date(now$1+1e3).toISOString(),new Date(now$1+2e3).toISOString(),new Date(now$1+3e3).toISOString(),new Date(now$1+4e3).toISOString(),new Date(now$1+5e3).toISOString(),new Date(now$1+6e3).toISOString();class NFTAPI{constructor(f){aM(this,"basePath","/nfttoken");this.fetcher=f}async refreshNFTList(f){const d=new APIRequest({url:`${this.basePath}/refresh`,method:"POST",data:f,withCredentials:!0});return(await this.fetcher.send(d)).data}async getNFTList(f){const d=new APIRequest({url:`${this.basePath}/me`,method:"GET",urlParams:f,withCredentials:!0});return(await this.fetcher.send(d)).data}async getSupportedNFTList(){const f=new APIRequest({url:`${this.basePath}/support-network`,method:"GET",withCredentials:!0});return(await this.fetcher.send(f)).data}async getNFTCount(f){const d=new APIRequest({url:`${this.basePath}/me/count`,method:"GET",urlParams:f,withCredentials:!0});return(await this.fetcher.send(d)).data}async getNFTInfo(f){const d=new APIRequest({url:`${this.basePath}/${f.nftTokenId}`,method:"GET",withCredentials:!0});return(await this.fetcher.send(d)).data}async mintHublinkNFT(f){const d=new APIRequest({url:`${this.basePath}/mint`,method:"POST",withCredentials:!0,data:f});return(await this.fetcher.send(d)).data}}new Date().toISOString(),dist$1.NFTContractType.Common,new Date().toISOString(),dist$1.NFTContractType.Common;class NFTContractAPI{constructor(f){aM(this,"basePath","/nftcontract");this.fetcher=f}async getNFTContractWithoutSession(f){const d=new APIRequest({url:`${this.basePath}/${f.nftContractId}`,method:"GET",withCredentials:!0});return(await this.fetcher.send(d,{ignoreCheckToken:!0})).data}async getNFTContractList(f){const d=new APIRequest({url:`${this.basePath}`,method:"GET",urlParams:f,withCredentials:!0});return(await this.fetcher.send(d)).data}async getNFTContract(f){const d=new APIRequest({url:`${this.basePath}/${f.nftContractId}`,method:"GET",withCredentials:!0});return(await this.fetcher.send(d)).data}}dist$1.NoticeType.event,new Date().toISOString(),new Date(2022,0,1).toISOString(),new Date(2030,11,1).toISOString();class NoticeAPI{constructor(f){aM(this,"basePath","/notice");this.fetcher=f}async getNoticeList(f){const d=new APIRequest({url:this.basePath,method:"GET",urlParams:f,withCredentials:!0});return(await this.fetcher.send(d)).data}async getNotice(f){const d=new APIRequest({url:`${this.basePath}/${f.noticeId}`,method:"GET",withCredentials:!0});return(await this.fetcher.send(d)).data}async deleteNotice(f){const d=new APIRequest({url:`${this.basePath}/${f.noticeId}`,method:"DELETE",withCredentials:!0});return(await this.fetcher.send(d)).data}}dist$1.ProjectState.active,dist$1.ProjectType.useAccount,new Date().toISOString();class ProjectAPI{constructor(f){aM(this,"basePath","/app");this.fetcher=f}async createProject(f){const d=new APIRequest({url:`${this.basePath}`,method:"POST",data:f,withCredentials:!0});return(await this.fetcher.send(d)).data}async modifyProject(f,d){const _=new APIRequest({url:`${this.basePath}/${f.projectId}`,method:"PATCH",data:d,withCredentials:!0});return(await this.fetcher.send(_)).data}async deleteProject(f){const d=new APIRequest({url:`${this.basePath}/${f.projectId}`,method:"DELETE",withCredentials:!0});return(await this.fetcher.send(d)).data}async registerProject(f,d){const _=new APIRequest({url:`${this.basePath}/participant/${f.projectId}/register`,method:"POST",data:d,withCredentials:!0});return(await this.fetcher.send(_)).data}async deregisterProject(f){const d=new APIRequest({url:`${this.basePath}/participant/${f.projectId}/deregister`,method:"DELETE",withCredentials:!0});return(await this.fetcher.send(d)).data}async getProject(f,d){const _=new APIRequest({url:`${this.basePath}/${f.projectId}`,method:"GET",urlParams:d,withCredentials:!0});return(await this.fetcher.send(_)).data}async getProjectList(f){const d=new APIRequest({url:`${this.basePath}`,method:"GET",urlParams:f,withCredentials:!0});return(await this.fetcher.send(d)).data}async getUserAppDetail(){const f=new APIRequest({url:`${this.basePath}/me/detail`,method:"GET",withCredentials:!0});return(await this.fetcher.send(f)).data}async getUserAppDetailByID(f){const d=new APIRequest({url:`${this.basePath}/me/${f.appId}/detail`,method:"GET"});return(await this.fetcher.send(d,{ignoreCheckToken:!0})).data}async getPopularProjectList(f){const d=new APIRequest({url:`${this.basePath}/popular`,method:"GET",urlParams:f,withCredentials:!0});return(await this.fetcher.send(d)).data}async getNewProjectList(f){const d=new APIRequest({url:`${this.basePath}/new`,method:"GET",urlParams:f,withCredentials:!0});return(await this.fetcher.send(d)).data}async getProjectTokenList(f){const d=new APIRequest({url:`${this.basePath}/${f.projectId}/token`,method:"GET",withCredentials:!0});return(await this.fetcher.send(d)).data}async getProjectNFTList(f){const d=new APIRequest({url:`${this.basePath}/${f.projectId}/nft`,method:"GET",withCredentials:!0});return(await this.fetcher.send(d)).data}async setLikeProject(f){const d=new APIRequest({url:`${this.basePath}/participant/${f.userProjectJoinId}/like`,method:"PATCH",withCredentials:!0});return(await this.fetcher.send(d)).data}async unsetLikeProject(f){const d=new APIRequest({url:`${this.basePath}/participant/${f.userProjectJoinId}/unlike`,method:"PATCH",withCredentials:!0});return(await this.fetcher.send(d)).data}async updateProjectJoinUserInfo(f,d){const _=new APIRequest({url:`${this.basePath}/participant/${f.userProjectJoinId}`,method:"PATCH",data:d,withCredentials:!0});return(await this.fetcher.send(_)).data}async dropOutUser(f){const d=new APIRequest({url:`${this.basePath}/participant/${f.userProjectJoinId}`,method:"DELETE",withCredentials:!0});return(await this.fetcher.send(d)).data}async getUserProjectList(){const f=new APIRequest({url:`${this.basePath}/me`,method:"GET",withCredentials:!0});return(await this.fetcher.send(f)).data}async getPromotionInfomation(f){const d=new APIRequest({url:`${this.basePath}/promotion/${f}`,method:"GET",withCredentials:!0});return(await this.fetcher.send(d,{ignoreCheckToken:!0})).data}async getAppPromotionMintContent(f,d){const _=new APIRequest({url:`${this.basePath}/promotion/${f}/mintContent`,method:"GET",urlParams:d,withCredentials:!0});return(await this.fetcher.send(_)).data}async applyPromotionNft(f,d,_,x,I,E){const M=new APIRequest({url:`${this.basePath}/promotion/${f}/request`,method:"POST",data:{email:d,referralCode:_,contentId:x,cardId:I,pageId:E},withCredentials:!0});return(await this.fetcher.send(M,{ignoreCheckToken:!0})).data}async resendPromotionEmail(f,d){const _=new APIRequest({url:`${this.basePath}/promotion/${f}/resend`,method:"POST",data:{email:d},withCredentials:!0});return(await this.fetcher.send(_,{ignoreCheckToken:!0})).data}async getReferralAppPromotionList(){const f=new APIRequest({url:`${this.basePath}/promotion/referral`,method:"GET",withCredentials:!0});return(await this.fetcher.send(f)).data}async getAppPromotion(f,d){const _=d!==void 0?"?locale="+d:"",x=new APIRequest({url:`${this.basePath}/promotion/${f}`+_,method:"GET",withCredentials:!0});return(await this.fetcher.send(x,{ignoreCheckToken:!0})).data}async setPromotionInviter(f,d,_){const x=new APIRequest({url:`${this.basePath}/promotion/set-inviter`,method:"PATCH",data:{promotionId:f,email:d,inviterReferralCode:_}});return(await this.fetcher.send(x)).data}async getCardCheck(f,d,_,x){const I=new APIRequest({url:`${this.basePath}/promotion/card-check?promotionId=${f}&contentId=${d}&cardId=${_}${x?`&tag=${x}`:""}`,method:"GET",withCredentials:!0});return(await this.fetcher.send(I)).data}}class AccountBalanceAPI{constructor(f){aM(this,"basePath","/accountbalance");this.fetcher=f}async getAccountBalance(f){const d=new APIRequest({url:`${this.basePath}/${f.accountId}/balance`,method:"GET",withCredentials:!0});return(await this.fetcher.send(d)).data}}class TransactionAPI{constructor(f){aM(this,"basePath","/tx");this.fetcher=f}async getTransactionPrepareData(f){const d=new APIRequest({url:`${this.basePath}/prepare`,method:"GET",urlParams:f,withCredentials:!0});return(await this.fetcher.send(d)).data}async broadcastTransaction(f){const d=new APIRequest({url:`${this.basePath}/broadcast`,method:"POST",data:f,withCredentials:!0});return(await this.fetcher.send(d)).data}async getUserTransactionList(f){const d=new APIRequest({url:`${this.basePath}/txlist/me`,method:"GET",urlParams:f,withCredentials:!0});return(await this.fetcher.send(d)).data}async getAccountTransactionList(f){const d=new APIRequest({url:`${this.basePath}/txlist/account`,method:"GET",urlParams:f,withCredentials:!0});return(await this.fetcher.send(d)).data}async getTransactionDetail(f){const d=new APIRequest({url:`${this.basePath}/txdetail/${f.txId}`,method:"GET",withCredentials:!0});return(await this.fetcher.send(d)).data}async sign(f){const d=new APIRequest({url:`${this.basePath}/sign`,method:"POST",data:f,withCredentials:!0});return(await this.fetcher.send(d)).data}async verifySignature(f){const d=new APIRequest({url:`${this.basePath}/verify`,method:"POST",data:f,withCredentials:!0});return(await this.fetcher.send(d)).data}async checkAddressValidation(f){const d=new APIRequest({url:`${this.basePath}/check_address`,method:"GET",urlParams:f,withCredentials:!0});return(await this.fetcher.send(d)).data}}const mockUser={id:"exampleId",email:"join@iotrust.kr",name:"iotrustName",profileImage:"https://career.iotrust.kr/_next/image?url=https%3A%2F%2Fimage.ninehire.com%2Fbrand%2F9269a000-d199-11ec-acb9-cb122d836313%2Fbf5d53c0-535a-11ed-87db-851b36f05d6a.png&w=3840&q=75",localeId:15,currencyId:30,lastAccessDevice:"web",lastAccessTime:new Date().toISOString(),createdTime:new Date().toISOString(),userState:dist$1.UserState.active,userJoinStage:dist$1.UserJoinStage.pinRequire,lastSessionIp:"",use2FA:0};function deepEquals(u,f){if(u===f)return!0;if(u instanceof Date&&f instanceof Date)return u.getTime()===f.getTime();if(!u||!f||typeof u!="object"&&typeof f!="object")return u===f;if(u.prototype!==f.prototype)return!1;const d=Object.keys(u);return d.length!==Object.keys(f).length?!1:d.every(_=>deepEquals(u[_],f[_]))}const getExecuteOnce=u=>{const f=new ExecutingFunctionInfoList;return async(...d)=>{const _=f.getExecutingFunctionFromInfoList(d);if(_)return _.executingFunction;const x=f.addExecutingFunctionInfo({params:d,executingFunction:new Promise(E=>{E(u(...d))})}),I=await x.executingFunction;return f.removeExecutingFunctionInfo(x),I}};class ExecutingFunctionInfoList{constructor(){aM(this,"infoList",[])}getExecutingFunctionFromInfoList(f){return this.infoList.find(d=>deepEquals(d.params,f))}addExecutingFunctionInfo(f){return this.infoList.push(f),f}removeExecutingFunctionInfo(f){this.infoList=this.infoList.filter(d=>d!==f)}}function getParentPath(u){const f=u.split("/");return f.pop(),f.join("/")}const loginUserQueryToken=async()=>{if(PUBLIC_URL_REG_EXP.test(window.location.pathname))return;const u=useRouter(),f=useUserAPIStore(),d=useWalletAPIStore(),_=useWalletStore(),x=useLoadingsStore();try{const I=new URLSearchParams(window.location.search).get("userToken");if(!I)return;x.openSpinner(),await f.loginWepinWithToken(I),await d.fetchWalletList(),_.walletList.length===0&&u.replace("/signin")}catch{u.replace("/signin")}finally{x.closeSpinner()}};function arrayPushUnique(u,f,d){return!d||d?.length===0?u:(u.forEach(_=>{const x=d.findIndex(I=>I[f]===_[f]);x!==-1?d[x]=_:d.push(_)}),d)}var lodash={exports:{}};lodash.exports;(function(u,f){(function(){var d,_="4.17.21",x=200,I="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",E="Expected a function",M="Invalid `variable` option passed into `_.template`",S="__lodash_hash_undefined__",A=500,T="__lodash_placeholder__",D=1,O=2,j=4,$=1,W=2,Q=1,X=2,Y=4,ie=8,oe=16,ge=32,be=64,ze=128,de=256,Ce=512,ke=30,le="...",re=800,P=16,k=1,B=2,z=3,ee=1/0,H=9007199254740991,q=17976931348623157e292,J=NaN,U=4294967295,Z=U-1,ve=U>>>1,Ye=[["ary",ze],["bind",Q],["bindKey",X],["curry",ie],["curryRight",oe],["flip",Ce],["partial",ge],["partialRight",be],["rearg",de]],rt="[object Arguments]",Ue="[object Array]",Qe="[object AsyncFunction]",vt="[object Boolean]",ri="[object Date]",ci="[object DOMException]",tt="[object Error]",et="[object Function]",$e="[object GeneratorFunction]",Le="[object Map]",ot="[object Number]",Oe="[object Null]",Ne="[object Object]",Fe="[object Promise]",Je="[object Proxy]",Dt="[object RegExp]",oi="[object Set]",Bt="[object String]",li="[object Symbol]",ii="[object Undefined]",Ot="[object WeakMap]",St="[object WeakSet]",pi="[object ArrayBuffer]",eM="[object DataView]",hi="[object Float32Array]",mi="[object Float64Array]",Dn="[object Int8Array]",tM="[object Int16Array]",oM="[object Int32Array]",vM="[object Uint8Array]",dM="[object Uint8ClampedArray]",hM="[object Uint16Array]",_M="[object Uint32Array]",uM=/\b__p \+= '';/g,pM=/\b(__p \+=) '' \+/g,yM=/(__e\(.*?\)|\b__t\)) \+\n'';/g,gM=/&(?:amp|lt|gt|quot|#39);/g,fM=/[&<>"']/g,kM=RegExp(gM.source),IM=RegExp(fM.source),DM=/<%-([\s\S]+?)%>/g,$M=/<%([\s\S]+?)%>/g,TM=/<%=([\s\S]+?)%>/g,OM=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,UM=/^\w*$/,AM=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,RM=/[\\^$.*+?()[\]{}|]/g,FM=RegExp(RM.source),xM=/^\s+/,BM=/\s/,WM=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,SM=/\{\n\/\* \[wrapped with (.+)\] \*/,jM=/,? & /,YM=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,PM=/[()=,{}\[\]\/\s]/,VM=/\\(\\)?/g,HM=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,zM=/\w*$/,KM=/^[-+]0x[0-9a-f]+$/i,rN=/^0b[01]+$/i,eN=/^\[object .+?Constructor\]$/,iN=/^0o[0-7]+$/i,ai=/^(?:0|[1-9]\d*)$/,C=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,L=/($^)/,F=/['\n\r\u2028\u2029\\]/g,ne="\\ud800-\\udfff",ue="\\u0300-\\u036f",fe="\\ufe20-\\ufe2f",me="\\u20d0-\\u20ff",Pe=ue+fe+me,Re="\\u2700-\\u27bf",Xe="a-z\\xdf-\\xf6\\xf8-\\xff",qe="\\xac\\xb1\\xd7\\xf7",Ke="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",nt="\\u2000-\\u206f",It=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Tt="A-Z\\xc0-\\xd6\\xd8-\\xde",ni="\\ufe0e\\ufe0f",fi=qe+Ke+nt+It,gi="['’]",je="["+ne+"]",it="["+fi+"]",Ct="["+Pe+"]",si="\\d+",di="["+Re+"]",yi="["+Xe+"]",nM="[^"+ne+fi+si+Re+Xe+Tt+"]",iM="\\ud83c[\\udffb-\\udfff]",mM="(?:"+Ct+"|"+iM+")",EM="[^"+ne+"]",wM="(?:\\ud83c[\\udde6-\\uddff]){2}",GM="[\\ud800-\\udbff][\\udc00-\\udfff]",qM="["+Tt+"]",JM="\\u200d",zT="(?:"+yi+"|"+nM+")",WT="(?:"+qM+"|"+nM+")",FT="(?:"+gi+"(?:d|ll|m|re|s|t|ve))?",KT="(?:"+gi+"(?:D|LL|M|RE|S|T|VE))?",nN=mM+"?",SN="["+ni+"]?",_N="(?:"+JM+"(?:"+[EM,wM,GM].join("|")+")"+SN+nN+")*",WN="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",HN="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",hN=SN+nN+_N,mN="(?:"+[di,wM,GM].join("|")+")"+hN,lP="(?:"+[EM+Ct+"?",Ct,wM,GM,je].join("|")+")",lR=RegExp(gi,"g"),cR=RegExp(Ct,"g"),XP=RegExp(iM+"(?="+iM+")|"+lP+hN,"g"),uR=RegExp([qM+"?"+yi+"+"+FT+"(?="+[it,qM,"$"].join("|")+")",WT+"+"+KT+"(?="+[it,qM+zT,"$"].join("|")+")",qM+"?"+zT+"+"+FT,qM+"+"+KT,HN,WN,si,mN].join("|"),"g"),fR=RegExp("["+JM+ne+Pe+ni+"]"),dR=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,hR=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],pR=-1,oN={};oN[hi]=oN[mi]=oN[Dn]=oN[tM]=oN[oM]=oN[vM]=oN[dM]=oN[hM]=oN[_M]=!0,oN[rt]=oN[Ue]=oN[pi]=oN[vt]=oN[eM]=oN[ri]=oN[tt]=oN[et]=oN[Le]=oN[ot]=oN[Ne]=oN[Dt]=oN[oi]=oN[Bt]=oN[Ot]=!1;var sN={};sN[rt]=sN[Ue]=sN[pi]=sN[eM]=sN[vt]=sN[ri]=sN[hi]=sN[mi]=sN[Dn]=sN[tM]=sN[oM]=sN[Le]=sN[ot]=sN[Ne]=sN[Dt]=sN[oi]=sN[Bt]=sN[li]=sN[vM]=sN[dM]=sN[hM]=sN[_M]=!0,sN[tt]=sN[et]=sN[Ot]=!1;var gR={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",Ĳ:"IJ",ĳ:"ij",Œ:"Oe",œ:"oe",ŉ:"'n",ſ:"s"},mR={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},vR={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},yR={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},bR=parseFloat,_R=parseInt,eO=typeof commonjsGlobal$1=="object"&&commonjsGlobal$1&&commonjsGlobal$1.Object===Object&&commonjsGlobal$1,wR=typeof self=="object"&&self&&self.Object===Object&&self,yN=eO||wR||Function("return this")(),qP=f&&!f.nodeType&&f,bk=qP&&!0&&u&&!u.nodeType&&u,tO=bk&&bk.exports===qP,ZP=tO&&eO.process,BN=function(){try{var lM=bk&&bk.require&&bk.require("util").types;return lM||ZP&&ZP.binding&&ZP.binding("util")}catch{}}(),rO=BN&&BN.isArrayBuffer,iO=BN&&BN.isDate,nO=BN&&BN.isMap,aO=BN&&BN.isRegExp,sO=BN&&BN.isSet,oO=BN&&BN.isTypedArray;function kN(lM,MM,bM){switch(bM.length){case 0:return lM.call(MM);case 1:return lM.call(MM,bM[0]);case 2:return lM.call(MM,bM[0],bM[1]);case 3:return lM.call(MM,bM[0],bM[1],bM[2])}return lM.apply(MM,bM)}function xR(lM,MM,bM,ZM){for(var VT=-1,QT=lM==null?0:lM.length;++VT<QT;){var pN=lM[VT];MM(ZM,pN,bM(pN),lM)}return ZM}function jN(lM,MM){for(var bM=-1,ZM=lM==null?0:lM.length;++bM<ZM&&MM(lM[bM],bM,lM)!==!1;);return lM}function IR(lM,MM){for(var bM=lM==null?0:lM.length;bM--&&MM(lM[bM],bM,lM)!==!1;);return lM}function lO(lM,MM){for(var bM=-1,ZM=lM==null?0:lM.length;++bM<ZM;)if(!MM(lM[bM],bM,lM))return!1;return!0}function uk(lM,MM){for(var bM=-1,ZM=lM==null?0:lM.length,VT=0,QT=[];++bM<ZM;){var pN=lM[bM];MM(pN,bM,lM)&&(QT[VT++]=pN)}return QT}function cP(lM,MM){var bM=lM==null?0:lM.length;return!!bM&&Ok(lM,MM,0)>-1}function KP(lM,MM,bM){for(var ZM=-1,VT=lM==null?0:lM.length;++ZM<VT;)if(bM(MM,lM[ZM]))return!0;return!1}function lN(lM,MM){for(var bM=-1,ZM=lM==null?0:lM.length,VT=Array(ZM);++bM<ZM;)VT[bM]=MM(lM[bM],bM,lM);return VT}function fk(lM,MM){for(var bM=-1,ZM=MM.length,VT=lM.length;++bM<ZM;)lM[VT+bM]=MM[bM];return lM}function QP(lM,MM,bM,ZM){var VT=-1,QT=lM==null?0:lM.length;for(ZM&&QT&&(bM=lM[++VT]);++VT<QT;)bM=MM(bM,lM[VT],VT,lM);return bM}function ER(lM,MM,bM,ZM){var VT=lM==null?0:lM.length;for(ZM&&VT&&(bM=lM[--VT]);VT--;)bM=MM(bM,lM[VT],VT,lM);return bM}function JP(lM,MM){for(var bM=-1,ZM=lM==null?0:lM.length;++bM<ZM;)if(MM(lM[bM],bM,lM))return!0;return!1}var MR=eD("length");function SR(lM){return lM.split("")}function AR(lM){return lM.match(YM)||[]}function cO(lM,MM,bM){var ZM;return bM(lM,function(VT,QT,pN){if(MM(VT,QT,pN))return ZM=QT,!1}),ZM}function uP(lM,MM,bM,ZM){for(var VT=lM.length,QT=bM+(ZM?1:-1);ZM?QT--:++QT<VT;)if(MM(lM[QT],QT,lM))return QT;return-1}function Ok(lM,MM,bM){return MM===MM?$R(lM,MM,bM):uP(lM,uO,bM)}function TR(lM,MM,bM,ZM){for(var VT=bM-1,QT=lM.length;++VT<QT;)if(ZM(lM[VT],MM))return VT;return-1}function uO(lM){return lM!==lM}function fO(lM,MM){var bM=lM==null?0:lM.length;return bM?rD(lM,MM)/bM:J}function eD(lM){return function(MM){return MM==null?d:MM[lM]}}function tD(lM){return function(MM){return lM==null?d:lM[MM]}}function dO(lM,MM,bM,ZM,VT){return VT(lM,function(QT,pN,aN){bM=ZM?(ZM=!1,QT):MM(bM,QT,pN,aN)}),bM}function CR(lM,MM){var bM=lM.length;for(lM.sort(MM);bM--;)lM[bM]=lM[bM].value;return lM}function rD(lM,MM){for(var bM,ZM=-1,VT=lM.length;++ZM<VT;){var QT=MM(lM[ZM]);QT!==d&&(bM=bM===d?QT:bM+QT)}return bM}function iD(lM,MM){for(var bM=-1,ZM=Array(lM);++bM<lM;)ZM[bM]=MM(bM);return ZM}function NR(lM,MM){return lN(MM,function(bM){return[bM,lM[bM]]})}function hO(lM){return lM&&lM.slice(0,vO(lM)+1).replace(xM,"")}function PN(lM){return function(MM){return lM(MM)}}function nD(lM,MM){return lN(MM,function(bM){return lM[bM]})}function Yk(lM,MM){return lM.has(MM)}function pO(lM,MM){for(var bM=-1,ZM=lM.length;++bM<ZM&&Ok(MM,lM[bM],0)>-1;);return bM}function gO(lM,MM){for(var bM=lM.length;bM--&&Ok(MM,lM[bM],0)>-1;);return bM}function kR(lM,MM){for(var bM=lM.length,ZM=0;bM--;)lM[bM]===MM&&++ZM;return ZM}var PR=tD(gR),DR=tD(mR);function OR(lM){return"\\"+yR[lM]}function LR(lM,MM){return lM==null?d:lM[MM]}function Lk(lM){return fR.test(lM)}function RR(lM){return dR.test(lM)}function BR(lM){for(var MM,bM=[];!(MM=lM.next()).done;)bM.push(MM.value);return bM}function aD(lM){var MM=-1,bM=Array(lM.size);return lM.forEach(function(ZM,VT){bM[++MM]=[VT,ZM]}),bM}function mO(lM,MM){return function(bM){return lM(MM(bM))}}function dk(lM,MM){for(var bM=-1,ZM=lM.length,VT=0,QT=[];++bM<ZM;){var pN=lM[bM];(pN===MM||pN===T)&&(lM[bM]=T,QT[VT++]=bM)}return QT}function fP(lM){var MM=-1,bM=Array(lM.size);return lM.forEach(function(ZM){bM[++MM]=ZM}),bM}function jR(lM){var MM=-1,bM=Array(lM.size);return lM.forEach(function(ZM){bM[++MM]=[ZM,ZM]}),bM}function $R(lM,MM,bM){for(var ZM=bM-1,VT=lM.length;++ZM<VT;)if(lM[ZM]===MM)return ZM;return-1}function zR(lM,MM,bM){for(var ZM=bM+1;ZM--;)if(lM[ZM]===MM)return ZM;return ZM}function Rk(lM){return Lk(lM)?VR(lM):MR(lM)}function YN(lM){return Lk(lM)?UR(lM):SR(lM)}function vO(lM){for(var MM=lM.length;MM--&&BM.test(lM.charAt(MM)););return MM}var FR=tD(vR);function VR(lM){for(var MM=XP.lastIndex=0;XP.test(lM);)++MM;return MM}function UR(lM){return lM.match(XP)||[]}function GR(lM){return lM.match(uR)||[]}var WR=function lM(MM){MM=MM==null?yN:Bk.defaults(yN.Object(),MM,Bk.pick(yN,hR));var bM=MM.Array,ZM=MM.Date,VT=MM.Error,QT=MM.Function,pN=MM.Math,aN=MM.Object,sD=MM.RegExp,HR=MM.String,$N=MM.TypeError,dP=bM.prototype,YR=QT.prototype,jk=aN.prototype,hP=MM["__core-js_shared__"],pP=YR.toString,tN=jk.hasOwnProperty,XR=0,yO=function(){var ce=/[^.]+$/.exec(hP&&hP.keys&&hP.keys.IE_PROTO||"");return ce?"Symbol(src)_1."+ce:""}(),gP=jk.toString,qR=pP.call(aN),ZR=yN._,KR=sD("^"+pP.call(tN).replace(RM,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),mP=tO?MM.Buffer:d,hk=MM.Symbol,vP=MM.Uint8Array,bO=mP?mP.allocUnsafe:d,yP=mO(aN.getPrototypeOf,aN),_O=aN.create,wO=jk.propertyIsEnumerable,bP=dP.splice,xO=hk?hk.isConcatSpreadable:d,Xk=hk?hk.iterator:d,_k=hk?hk.toStringTag:d,_P=function(){try{var ce=Mk(aN,"defineProperty");return ce({},"",{}),ce}catch{}}(),QR=MM.clearTimeout!==yN.clearTimeout&&MM.clearTimeout,JR=ZM&&ZM.now!==yN.Date.now&&ZM.now,ej=MM.setTimeout!==yN.setTimeout&&MM.setTimeout,wP=pN.ceil,xP=pN.floor,oD=aN.getOwnPropertySymbols,tj=mP?mP.isBuffer:d,IO=MM.isFinite,rj=dP.join,ij=mO(aN.keys,aN),gN=pN.max,wN=pN.min,nj=ZM.now,aj=MM.parseInt,EO=pN.random,sj=dP.reverse,lD=Mk(MM,"DataView"),qk=Mk(MM,"Map"),cD=Mk(MM,"Promise"),$k=Mk(MM,"Set"),Zk=Mk(MM,"WeakMap"),Kk=Mk(aN,"create"),IP=Zk&&new Zk,zk={},oj=Sk(lD),lj=Sk(qk),cj=Sk(cD),uj=Sk($k),fj=Sk(Zk),EP=hk?hk.prototype:d,Qk=EP?EP.valueOf:d,MO=EP?EP.toString:d;function vi(ce){if(uN(ce)&&!UT(ce)&&!(ce instanceof qT)){if(ce instanceof zN)return ce;if(tN.call(ce,"__wrapped__"))return AL(ce)}return new zN(ce)}var Fk=function(){function ce(){}return function(Ae){if(!cN(Ae))return{};if(_O)return _O(Ae);ce.prototype=Ae;var Ze=new ce;return ce.prototype=d,Ze}}();function MP(){}function zN(ce,Ae){this.__wrapped__=ce,this.__actions__=[],this.__chain__=!!Ae,this.__index__=0,this.__values__=d}vi.templateSettings={escape:DM,evaluate:$M,interpolate:TM,variable:"",imports:{_:vi}},vi.prototype=MP.prototype,vi.prototype.constructor=vi,zN.prototype=Fk(MP.prototype),zN.prototype.constructor=zN;function qT(ce){this.__wrapped__=ce,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=U,this.__views__=[]}function dj(){var ce=new qT(this.__wrapped__);return ce.__actions__=AN(this.__actions__),ce.__dir__=this.__dir__,ce.__filtered__=this.__filtered__,ce.__iteratees__=AN(this.__iteratees__),ce.__takeCount__=this.__takeCount__,ce.__views__=AN(this.__views__),ce}function hj(){if(this.__filtered__){var ce=new qT(this);ce.__dir__=-1,ce.__filtered__=!0}else ce=this.clone(),ce.__dir__*=-1;return ce}function pj(){var ce=this.__wrapped__.value(),Ae=this.__dir__,Ze=UT(ce),At=Ae<0,ui=Ze?ce.length:0,Nn=S$(0,ui,this.__views__),rM=Nn.start,sM=Nn.end,cM=sM-rM,CM=At?sM:rM-1,NM=this.__iteratees__,LM=NM.length,XM=0,QM=wN(cM,this.__takeCount__);if(!Ze||!At&&ui==cM&&QM==cM)return ZO(ce,this.__actions__);var jT=[];e:for(;cM--&&XM<QM;){CM+=Ae;for(var HT=-1,$T=ce[CM];++HT<LM;){var XT=NM[HT],ZT=XT.iteratee,LN=XT.type,MN=ZT($T);if(LN==B)$T=MN;else if(!MN){if(LN==k)continue e;break e}}jT[XM++]=$T}return jT}qT.prototype=Fk(MP.prototype),qT.prototype.constructor=qT;function wk(ce){var Ae=-1,Ze=ce==null?0:ce.length;for(this.clear();++Ae<Ze;){var At=ce[Ae];this.set(At[0],At[1])}}function gj(){this.__data__=Kk?Kk(null):{},this.size=0}function mj(ce){var Ae=this.has(ce)&&delete this.__data__[ce];return this.size-=Ae?1:0,Ae}function vj(ce){var Ae=this.__data__;if(Kk){var Ze=Ae[ce];return Ze===S?d:Ze}return tN.call(Ae,ce)?Ae[ce]:d}function yj(ce){var Ae=this.__data__;return Kk?Ae[ce]!==d:tN.call(Ae,ce)}function bj(ce,Ae){var Ze=this.__data__;return this.size+=this.has(ce)?0:1,Ze[ce]=Kk&&Ae===d?S:Ae,this}wk.prototype.clear=gj,wk.prototype.delete=mj,wk.prototype.get=vj,wk.prototype.has=yj,wk.prototype.set=bj;function ek(ce){var Ae=-1,Ze=ce==null?0:ce.length;for(this.clear();++Ae<Ze;){var At=ce[Ae];this.set(At[0],At[1])}}function _j(){this.__data__=[],this.size=0}function wj(ce){var Ae=this.__data__,Ze=SP(Ae,ce);if(Ze<0)return!1;var At=Ae.length-1;return Ze==At?Ae.pop():bP.call(Ae,Ze,1),--this.size,!0}function xj(ce){var Ae=this.__data__,Ze=SP(Ae,ce);return Ze<0?d:Ae[Ze][1]}function Ij(ce){return SP(this.__data__,ce)>-1}function Ej(ce,Ae){var Ze=this.__data__,At=SP(Ze,ce);return At<0?(++this.size,Ze.push([ce,Ae])):Ze[At][1]=Ae,this}ek.prototype.clear=_j,ek.prototype.delete=wj,ek.prototype.get=xj,ek.prototype.has=Ij,ek.prototype.set=Ej;function tk(ce){var Ae=-1,Ze=ce==null?0:ce.length;for(this.clear();++Ae<Ze;){var At=ce[Ae];this.set(At[0],At[1])}}function Mj(){this.size=0,this.__data__={hash:new wk,map:new(qk||ek),string:new wk}}function Sj(ce){var Ae=jP(this,ce).delete(ce);return this.size-=Ae?1:0,Ae}function Aj(ce){return jP(this,ce).get(ce)}function Tj(ce){return jP(this,ce).has(ce)}function Cj(ce,Ae){var Ze=jP(this,ce),At=Ze.size;return Ze.set(ce,Ae),this.size+=Ze.size==At?0:1,this}tk.prototype.clear=Mj,tk.prototype.delete=Sj,tk.prototype.get=Aj,tk.prototype.has=Tj,tk.prototype.set=Cj;function xk(ce){var Ae=-1,Ze=ce==null?0:ce.length;for(this.__data__=new tk;++Ae<Ze;)this.add(ce[Ae])}function Nj(ce){return this.__data__.set(ce,S),this}function kj(ce){return this.__data__.has(ce)}xk.prototype.add=xk.prototype.push=Nj,xk.prototype.has=kj;function XN(ce){var Ae=this.__data__=new ek(ce);this.size=Ae.size}function Pj(){this.__data__=new ek,this.size=0}function Dj(ce){var Ae=this.__data__,Ze=Ae.delete(ce);return this.size=Ae.size,Ze}function Oj(ce){return this.__data__.get(ce)}function Lj(ce){return this.__data__.has(ce)}function Rj(ce,Ae){var Ze=this.__data__;if(Ze instanceof ek){var At=Ze.__data__;if(!qk||At.length<x-1)return At.push([ce,Ae]),this.size=++Ze.size,this;Ze=this.__data__=new tk(At)}return Ze.set(ce,Ae),this.size=Ze.size,this}XN.prototype.clear=Pj,XN.prototype.delete=Dj,XN.prototype.get=Oj,XN.prototype.has=Lj,XN.prototype.set=Rj;function SO(ce,Ae){var Ze=UT(ce),At=!Ze&&Ak(ce),ui=!Ze&&!At&&yk(ce),Nn=!Ze&&!At&&!ui&&Wk(ce),rM=Ze||At||ui||Nn,sM=rM?iD(ce.length,HR):[],cM=sM.length;for(var CM in ce)(Ae||tN.call(ce,CM))&&!(rM&&(CM=="length"||ui&&(CM=="offset"||CM=="parent")||Nn&&(CM=="buffer"||CM=="byteLength"||CM=="byteOffset")||ak(CM,cM)))&&sM.push(CM);return sM}function AO(ce){var Ae=ce.length;return Ae?ce[_D(0,Ae-1)]:d}function Bj(ce,Ae){return $P(AN(ce),Ik(Ae,0,ce.length))}function jj(ce){return $P(AN(ce))}function uD(ce,Ae,Ze){(Ze!==d&&!qN(ce[Ae],Ze)||Ze===d&&!(Ae in ce))&&rk(ce,Ae,Ze)}function Jk(ce,Ae,Ze){var At=ce[Ae];(!(tN.call(ce,Ae)&&qN(At,Ze))||Ze===d&&!(Ae in ce))&&rk(ce,Ae,Ze)}function SP(ce,Ae){for(var Ze=ce.length;Ze--;)if(qN(ce[Ze][0],Ae))return Ze;return-1}function $j(ce,Ae,Ze,At){return pk(ce,function(ui,Nn,rM){Ae(At,ui,Ze(ui),rM)}),At}function TO(ce,Ae){return ce&&QN(Ae,vN(Ae),ce)}function zj(ce,Ae){return ce&&QN(Ae,CN(Ae),ce)}function rk(ce,Ae,Ze){Ae=="__proto__"&&_P?_P(ce,Ae,{configurable:!0,enumerable:!0,value:Ze,writable:!0}):ce[Ae]=Ze}function fD(ce,Ae){for(var Ze=-1,At=Ae.length,ui=bM(At),Nn=ce==null;++Ze<At;)ui[Ze]=Nn?d:WD(ce,Ae[Ze]);return ui}function Ik(ce,Ae,Ze){return ce===ce&&(Ze!==d&&(ce=ce<=Ze?ce:Ze),Ae!==d&&(ce=ce>=Ae?ce:Ae)),ce}function FN(ce,Ae,Ze,At,ui,Nn){var rM,sM=Ae&D,cM=Ae&O,CM=Ae&j;if(Ze&&(rM=ui?Ze(ce,At,ui,Nn):Ze(ce)),rM!==d)return rM;if(!cN(ce))return ce;var NM=UT(ce);if(NM){if(rM=T$(ce),!sM)return AN(ce,rM)}else{var LM=xN(ce),XM=LM==et||LM==$e;if(yk(ce))return JO(ce,sM);if(LM==Ne||LM==rt||XM&&!ui){if(rM=cM||XM?{}:yL(ce),!sM)return cM?v$(ce,zj(rM,ce)):m$(ce,TO(rM,ce))}else{if(!sN[LM])return ui?ce:{};rM=C$(ce,LM,sM)}}Nn||(Nn=new XN);var QM=Nn.get(ce);if(QM)return QM;Nn.set(ce,rM),YL(ce)?ce.forEach(function($T){rM.add(FN($T,Ae,Ze,$T,ce,Nn))}):WL(ce)&&ce.forEach(function($T,XT){rM.set(XT,FN($T,Ae,Ze,XT,ce,Nn))});var jT=CM?cM?kD:ND:cM?CN:vN,HT=NM?d:jT(ce);return jN(HT||ce,function($T,XT){HT&&(XT=$T,$T=ce[XT]),Jk(rM,XT,FN($T,Ae,Ze,XT,ce,Nn))}),rM}function Fj(ce){var Ae=vN(ce);return function(Ze){return CO(Ze,ce,Ae)}}function CO(ce,Ae,Ze){var At=Ze.length;if(ce==null)return!At;for(ce=aN(ce);At--;){var ui=Ze[At],Nn=Ae[ui],rM=ce[ui];if(rM===d&&!(ui in ce)||!Nn(rM))return!1}return!0}function kO(ce,Ae,Ze){if(typeof ce!="function")throw new $N(E);return sP(function(){ce.apply(d,Ze)},Ae)}function eP(ce,Ae,Ze,At){var ui=-1,Nn=cP,rM=!0,sM=ce.length,cM=[],CM=Ae.length;if(!sM)return cM;Ze&&(Ae=lN(Ae,PN(Ze))),At?(Nn=KP,rM=!1):Ae.length>=x&&(Nn=Yk,rM=!1,Ae=new xk(Ae));e:for(;++ui<sM;){var NM=ce[ui],LM=Ze==null?NM:Ze(NM);if(NM=At||NM!==0?NM:0,rM&&LM===LM){for(var XM=CM;XM--;)if(Ae[XM]===LM)continue e;cM.push(NM)}else Nn(Ae,LM,At)||cM.push(NM)}return cM}var pk=nL(KN),PO=nL(hD,!0);function Vj(ce,Ae){var Ze=!0;return pk(ce,function(At,ui,Nn){return Ze=!!Ae(At,ui,Nn),Ze}),Ze}function AP(ce,Ae,Ze){for(var At=-1,ui=ce.length;++At<ui;){var Nn=ce[At],rM=Ae(Nn);if(rM!=null&&(sM===d?rM===rM&&!ON(rM):Ze(rM,sM)))var sM=rM,cM=Nn}return cM}function Uj(ce,Ae,Ze,At){var ui=ce.length;for(Ze=GT(Ze),Ze<0&&(Ze=-Ze>ui?0:ui+Ze),At=At===d||At>ui?ui:GT(At),At<0&&(At+=ui),At=Ze>At?0:qL(At);Ze<At;)ce[Ze++]=Ae;return ce}function DO(ce,Ae){var Ze=[];return pk(ce,function(At,ui,Nn){Ae(At,ui,Nn)&&Ze.push(At)}),Ze}function bN(ce,Ae,Ze,At,ui){var Nn=-1,rM=ce.length;for(Ze||(Ze=k$),ui||(ui=[]);++Nn<rM;){var sM=ce[Nn];Ae>0&&Ze(sM)?Ae>1?bN(sM,Ae-1,Ze,At,ui):fk(ui,sM):At||(ui[ui.length]=sM)}return ui}var dD=aL(),OO=aL(!0);function KN(ce,Ae){return ce&&dD(ce,Ae,vN)}function hD(ce,Ae){return ce&&OO(ce,Ae,vN)}function TP(ce,Ae){return uk(Ae,function(Ze){return sk(ce[Ze])})}function Ek(ce,Ae){Ae=mk(Ae,ce);for(var Ze=0,At=Ae.length;ce!=null&&Ze<At;)ce=ce[JN(Ae[Ze++])];return Ze&&Ze==At?ce:d}function LO(ce,Ae,Ze){var At=Ae(ce);return UT(ce)?At:fk(At,Ze(ce))}function IN(ce){return ce==null?ce===d?ii:Oe:_k&&_k in aN(ce)?M$(ce):j$(ce)}function pD(ce,Ae){return ce>Ae}function Gj(ce,Ae){return ce!=null&&tN.call(ce,Ae)}function Wj(ce,Ae){return ce!=null&&Ae in aN(ce)}function Hj(ce,Ae,Ze){return ce>=wN(Ae,Ze)&&ce<gN(Ae,Ze)}function gD(ce,Ae,Ze){for(var At=Ze?KP:cP,ui=ce[0].length,Nn=ce.length,rM=Nn,sM=bM(Nn),cM=1/0,CM=[];rM--;){var NM=ce[rM];rM&&Ae&&(NM=lN(NM,PN(Ae))),cM=wN(NM.length,cM),sM[rM]=!Ze&&(Ae||ui>=120&&NM.length>=120)?new xk(rM&&NM):d}NM=ce[0];var LM=-1,XM=sM[0];e:for(;++LM<ui&&CM.length<cM;){var QM=NM[LM],jT=Ae?Ae(QM):QM;if(QM=Ze||QM!==0?QM:0,!(XM?Yk(XM,jT):At(CM,jT,Ze))){for(rM=Nn;--rM;){var HT=sM[rM];if(!(HT?Yk(HT,jT):At(ce[rM],jT,Ze)))continue e}XM&&XM.push(jT),CM.push(QM)}}return CM}function Yj(ce,Ae,Ze,At){return KN(ce,function(ui,Nn,rM){Ae(At,Ze(ui),Nn,rM)}),At}function tP(ce,Ae,Ze){Ae=mk(Ae,ce),ce=xL(ce,Ae);var At=ce==null?ce:ce[JN(UN(Ae))];return At==null?d:kN(At,ce,Ze)}function RO(ce){return uN(ce)&&IN(ce)==rt}function Xj(ce){return uN(ce)&&IN(ce)==pi}function qj(ce){return uN(ce)&&IN(ce)==ri}function rP(ce,Ae,Ze,At,ui){return ce===Ae?!0:ce==null||Ae==null||!uN(ce)&&!uN(Ae)?ce!==ce&&Ae!==Ae:Zj(ce,Ae,Ze,At,rP,ui)}function Zj(ce,Ae,Ze,At,ui,Nn){var rM=UT(ce),sM=UT(Ae),cM=rM?Ue:xN(ce),CM=sM?Ue:xN(Ae);cM=cM==rt?Ne:cM,CM=CM==rt?Ne:CM;var NM=cM==Ne,LM=CM==Ne,XM=cM==CM;if(XM&&yk(ce)){if(!yk(Ae))return!1;rM=!0,NM=!1}if(XM&&!NM)return Nn||(Nn=new XN),rM||Wk(ce)?gL(ce,Ae,Ze,At,ui,Nn):I$(ce,Ae,cM,Ze,At,ui,Nn);if(!(Ze&$)){var QM=NM&&tN.call(ce,"__wrapped__"),jT=LM&&tN.call(Ae,"__wrapped__");if(QM||jT){var HT=QM?ce.value():ce,$T=jT?Ae.value():Ae;return Nn||(Nn=new XN),ui(HT,$T,Ze,At,Nn)}}return XM?(Nn||(Nn=new XN),E$(ce,Ae,Ze,At,ui,Nn)):!1}function Kj(ce){return uN(ce)&&xN(ce)==Le}function mD(ce,Ae,Ze,At){var ui=Ze.length,Nn=ui,rM=!At;if(ce==null)return!Nn;for(ce=aN(ce);ui--;){var sM=Ze[ui];if(rM&&sM[2]?sM[1]!==ce[sM[0]]:!(sM[0]in ce))return!1}for(;++ui<Nn;){sM=Ze[ui];var cM=sM[0],CM=ce[cM],NM=sM[1];if(rM&&sM[2]){if(CM===d&&!(cM in ce))return!1}else{var LM=new XN;if(At)var XM=At(CM,NM,cM,ce,Ae,LM);if(!(XM===d?rP(NM,CM,$|W,At,LM):XM))return!1}}return!0}function BO(ce){if(!cN(ce)||D$(ce))return!1;var Ae=sk(ce)?KR:eN;return Ae.test(Sk(ce))}function Qj(ce){return uN(ce)&&IN(ce)==Dt}function Jj(ce){return uN(ce)&&xN(ce)==oi}function e$(ce){return uN(ce)&&WP(ce.length)&&!!oN[IN(ce)]}function jO(ce){return typeof ce=="function"?ce:ce==null?NN:typeof ce=="object"?UT(ce)?FO(ce[0],ce[1]):zO(ce):sR(ce)}function vD(ce){if(!aP(ce))return ij(ce);var Ae=[];for(var Ze in aN(ce))tN.call(ce,Ze)&&Ze!="constructor"&&Ae.push(Ze);return Ae}function t$(ce){if(!cN(ce))return B$(ce);var Ae=aP(ce),Ze=[];for(var At in ce)At=="constructor"&&(Ae||!tN.call(ce,At))||Ze.push(At);return Ze}function yD(ce,Ae){return ce<Ae}function $O(ce,Ae){var Ze=-1,At=TN(ce)?bM(ce.length):[];return pk(ce,function(ui,Nn,rM){At[++Ze]=Ae(ui,Nn,rM)}),At}function zO(ce){var Ae=DD(ce);return Ae.length==1&&Ae[0][2]?_L(Ae[0][0],Ae[0][1]):function(Ze){return Ze===ce||mD(Ze,ce,Ae)}}function FO(ce,Ae){return LD(ce)&&bL(Ae)?_L(JN(ce),Ae):function(Ze){var At=WD(Ze,ce);return At===d&&At===Ae?HD(Ze,ce):rP(Ae,At,$|W)}}function CP(ce,Ae,Ze,At,ui){ce!==Ae&&dD(Ae,function(Nn,rM){if(ui||(ui=new XN),cN(Nn))r$(ce,Ae,rM,Ze,CP,At,ui);else{var sM=At?At(BD(ce,rM),Nn,rM+"",ce,Ae,ui):d;sM===d&&(sM=Nn),uD(ce,rM,sM)}},CN)}function r$(ce,Ae,Ze,At,ui,Nn,rM){var sM=BD(ce,Ze),cM=BD(Ae,Ze),CM=rM.get(cM);if(CM){uD(ce,Ze,CM);return}var NM=Nn?Nn(sM,cM,Ze+"",ce,Ae,rM):d,LM=NM===d;if(LM){var XM=UT(cM),QM=!XM&&yk(cM),jT=!XM&&!QM&&Wk(cM);NM=cM,XM||QM||jT?UT(sM)?NM=sM:fN(sM)?NM=AN(sM):QM?(LM=!1,NM=JO(cM,!0)):jT?(LM=!1,NM=eL(cM,!0)):NM=[]:oP(cM)||Ak(cM)?(NM=sM,Ak(sM)?NM=ZL(sM):(!cN(sM)||sk(sM))&&(NM=yL(cM))):LM=!1}LM&&(rM.set(cM,NM),ui(NM,cM,At,Nn,rM),rM.delete(cM)),uD(ce,Ze,NM)}function VO(ce,Ae){var Ze=ce.length;if(Ze)return Ae+=Ae<0?Ze:0,ak(Ae,Ze)?ce[Ae]:d}function UO(ce,Ae,Ze){Ae.length?Ae=lN(Ae,function(Nn){return UT(Nn)?function(rM){return Ek(rM,Nn.length===1?Nn[0]:Nn)}:Nn}):Ae=[NN];var At=-1;Ae=lN(Ae,PN(kT()));var ui=$O(ce,function(Nn,rM,sM){var cM=lN(Ae,function(CM){return CM(Nn)});return{criteria:cM,index:++At,value:Nn}});return CR(ui,function(Nn,rM){return g$(Nn,rM,Ze)})}function i$(ce,Ae){return GO(ce,Ae,function(Ze,At){return HD(ce,At)})}function GO(ce,Ae,Ze){for(var At=-1,ui=Ae.length,Nn={};++At<ui;){var rM=Ae[At],sM=Ek(ce,rM);Ze(sM,rM)&&iP(Nn,mk(rM,ce),sM)}return Nn}function n$(ce){return function(Ae){return Ek(Ae,ce)}}function bD(ce,Ae,Ze,At){var ui=At?TR:Ok,Nn=-1,rM=Ae.length,sM=ce;for(ce===Ae&&(Ae=AN(Ae)),Ze&&(sM=lN(ce,PN(Ze)));++Nn<rM;)for(var cM=0,CM=Ae[Nn],NM=Ze?Ze(CM):CM;(cM=ui(sM,NM,cM,At))>-1;)sM!==ce&&bP.call(sM,cM,1),bP.call(ce,cM,1);return ce}function WO(ce,Ae){for(var Ze=ce?Ae.length:0,At=Ze-1;Ze--;){var ui=Ae[Ze];if(Ze==At||ui!==Nn){var Nn=ui;ak(ui)?bP.call(ce,ui,1):ID(ce,ui)}}return ce}function _D(ce,Ae){return ce+xP(EO()*(Ae-ce+1))}function a$(ce,Ae,Ze,At){for(var ui=-1,Nn=gN(wP((Ae-ce)/(Ze||1)),0),rM=bM(Nn);Nn--;)rM[At?Nn:++ui]=ce,ce+=Ze;return rM}function wD(ce,Ae){var Ze="";if(!ce||Ae<1||Ae>H)return Ze;do Ae%2&&(Ze+=ce),Ae=xP(Ae/2),Ae&&(ce+=ce);while(Ae);return Ze}function YT(ce,Ae){return jD(wL(ce,Ae,NN),ce+"")}function s$(ce){return AO(Hk(ce))}function o$(ce,Ae){var Ze=Hk(ce);return $P(Ze,Ik(Ae,0,Ze.length))}function iP(ce,Ae,Ze,At){if(!cN(ce))return ce;Ae=mk(Ae,ce);for(var ui=-1,Nn=Ae.length,rM=Nn-1,sM=ce;sM!=null&&++ui<Nn;){var cM=JN(Ae[ui]),CM=Ze;if(cM==="__proto__"||cM==="constructor"||cM==="prototype")return ce;if(ui!=rM){var NM=sM[cM];CM=At?At(NM,cM,sM):d,CM===d&&(CM=cN(NM)?NM:ak(Ae[ui+1])?[]:{})}Jk(sM,cM,CM),sM=sM[cM]}return ce}var HO=IP?function(ce,Ae){return IP.set(ce,Ae),ce}:NN,l$=_P?function(ce,Ae){return _P(ce,"toString",{configurable:!0,enumerable:!1,value:XD(Ae),writable:!0})}:NN;function c$(ce){return $P(Hk(ce))}function VN(ce,Ae,Ze){var At=-1,ui=ce.length;Ae<0&&(Ae=-Ae>ui?0:ui+Ae),Ze=Ze>ui?ui:Ze,Ze<0&&(Ze+=ui),ui=Ae>Ze?0:Ze-Ae>>>0,Ae>>>=0;for(var Nn=bM(ui);++At<ui;)Nn[At]=ce[At+Ae];return Nn}function u$(ce,Ae){var Ze;return pk(ce,function(At,ui,Nn){return Ze=Ae(At,ui,Nn),!Ze}),!!Ze}function NP(ce,Ae,Ze){var At=0,ui=ce==null?At:ce.length;if(typeof Ae=="number"&&Ae===Ae&&ui<=ve){for(;At<ui;){var Nn=At+ui>>>1,rM=ce[Nn];rM!==null&&!ON(rM)&&(Ze?rM<=Ae:rM<Ae)?At=Nn+1:ui=Nn}return ui}return xD(ce,Ae,NN,Ze)}function xD(ce,Ae,Ze,At){var ui=0,Nn=ce==null?0:ce.length;if(Nn===0)return 0;Ae=Ze(Ae);for(var rM=Ae!==Ae,sM=Ae===null,cM=ON(Ae),CM=Ae===d;ui<Nn;){var NM=xP((ui+Nn)/2),LM=Ze(ce[NM]),XM=LM!==d,QM=LM===null,jT=LM===LM,HT=ON(LM);if(rM)var $T=At||jT;else CM?$T=jT&&(At||XM):sM?$T=jT&&XM&&(At||!QM):cM?$T=jT&&XM&&!QM&&(At||!HT):QM||HT?$T=!1:$T=At?LM<=Ae:LM<Ae;$T?ui=NM+1:Nn=NM}return wN(Nn,Z)}function YO(ce,Ae){for(var Ze=-1,At=ce.length,ui=0,Nn=[];++Ze<At;){var rM=ce[Ze],sM=Ae?Ae(rM):rM;if(!Ze||!qN(sM,cM)){var cM=sM;Nn[ui++]=rM===0?0:rM}}return Nn}function XO(ce){return typeof ce=="number"?ce:ON(ce)?J:+ce}function DN(ce){if(typeof ce=="string")return ce;if(UT(ce))return lN(ce,DN)+"";if(ON(ce))return MO?MO.call(ce):"";var Ae=ce+"";return Ae=="0"&&1/ce==-ee?"-0":Ae}function gk(ce,Ae,Ze){var At=-1,ui=cP,Nn=ce.length,rM=!0,sM=[],cM=sM;if(Ze)rM=!1,ui=KP;else if(Nn>=x){var CM=Ae?null:w$(ce);if(CM)return fP(CM);rM=!1,ui=Yk,cM=new xk}else cM=Ae?[]:sM;e:for(;++At<Nn;){var NM=ce[At],LM=Ae?Ae(NM):NM;if(NM=Ze||NM!==0?NM:0,rM&&LM===LM){for(var XM=cM.length;XM--;)if(cM[XM]===LM)continue e;Ae&&cM.push(LM),sM.push(NM)}else ui(cM,LM,Ze)||(cM!==sM&&cM.push(LM),sM.push(NM))}return sM}function ID(ce,Ae){return Ae=mk(Ae,ce),ce=xL(ce,Ae),ce==null||delete ce[JN(UN(Ae))]}function qO(ce,Ae,Ze,At){return iP(ce,Ae,Ze(Ek(ce,Ae)),At)}function kP(ce,Ae,Ze,At){for(var ui=ce.length,Nn=At?ui:-1;(At?Nn--:++Nn<ui)&&Ae(ce[Nn],Nn,ce););return Ze?VN(ce,At?0:Nn,At?Nn+1:ui):VN(ce,At?Nn+1:0,At?ui:Nn)}function ZO(ce,Ae){var Ze=ce;return Ze instanceof qT&&(Ze=Ze.value()),QP(Ae,function(At,ui){return ui.func.apply(ui.thisArg,fk([At],ui.args))},Ze)}function ED(ce,Ae,Ze){var At=ce.length;if(At<2)return At?gk(ce[0]):[];for(var ui=-1,Nn=bM(At);++ui<At;)for(var rM=ce[ui],sM=-1;++sM<At;)sM!=ui&&(Nn[ui]=eP(Nn[ui]||rM,ce[sM],Ae,Ze));return gk(bN(Nn,1),Ae,Ze)}function KO(ce,Ae,Ze){for(var At=-1,ui=ce.length,Nn=Ae.length,rM={};++At<ui;){var sM=At<Nn?Ae[At]:d;Ze(rM,ce[At],sM)}return rM}function MD(ce){return fN(ce)?ce:[]}function SD(ce){return typeof ce=="function"?ce:NN}function mk(ce,Ae){return UT(ce)?ce:LD(ce,Ae)?[ce]:SL(JT(ce))}var f$=YT;function vk(ce,Ae,Ze){var At=ce.length;return Ze=Ze===d?At:Ze,!Ae&&Ze>=At?ce:VN(ce,Ae,Ze)}var QO=QR||function(ce){return yN.clearTimeout(ce)};function JO(ce,Ae){if(Ae)return ce.slice();var Ze=ce.length,At=bO?bO(Ze):new ce.constructor(Ze);return ce.copy(At),At}function AD(ce){var Ae=new ce.constructor(ce.byteLength);return new vP(Ae).set(new vP(ce)),Ae}function d$(ce,Ae){var Ze=Ae?AD(ce.buffer):ce.buffer;return new ce.constructor(Ze,ce.byteOffset,ce.byteLength)}function h$(ce){var Ae=new ce.constructor(ce.source,zM.exec(ce));return Ae.lastIndex=ce.lastIndex,Ae}function p$(ce){return Qk?aN(Qk.call(ce)):{}}function eL(ce,Ae){var Ze=Ae?AD(ce.buffer):ce.buffer;return new ce.constructor(Ze,ce.byteOffset,ce.length)}function tL(ce,Ae){if(ce!==Ae){var Ze=ce!==d,At=ce===null,ui=ce===ce,Nn=ON(ce),rM=Ae!==d,sM=Ae===null,cM=Ae===Ae,CM=ON(Ae);if(!sM&&!CM&&!Nn&&ce>Ae||Nn&&rM&&cM&&!sM&&!CM||At&&rM&&cM||!Ze&&cM||!ui)return 1;if(!At&&!Nn&&!CM&&ce<Ae||CM&&Ze&&ui&&!At&&!Nn||sM&&Ze&&ui||!rM&&ui||!cM)return-1}return 0}function g$(ce,Ae,Ze){for(var At=-1,ui=ce.criteria,Nn=Ae.criteria,rM=ui.length,sM=Ze.length;++At<rM;){var cM=tL(ui[At],Nn[At]);if(cM){if(At>=sM)return cM;var CM=Ze[At];return cM*(CM=="desc"?-1:1)}}return ce.index-Ae.index}function rL(ce,Ae,Ze,At){for(var ui=-1,Nn=ce.length,rM=Ze.length,sM=-1,cM=Ae.length,CM=gN(Nn-rM,0),NM=bM(cM+CM),LM=!At;++sM<cM;)NM[sM]=Ae[sM];for(;++ui<rM;)(LM||ui<Nn)&&(NM[Ze[ui]]=ce[ui]);for(;CM--;)NM[sM++]=ce[ui++];return NM}function iL(ce,Ae,Ze,At){for(var ui=-1,Nn=ce.length,rM=-1,sM=Ze.length,cM=-1,CM=Ae.length,NM=gN(Nn-sM,0),LM=bM(NM+CM),XM=!At;++ui<NM;)LM[ui]=ce[ui];for(var QM=ui;++cM<CM;)LM[QM+cM]=Ae[cM];for(;++rM<sM;)(XM||ui<Nn)&&(LM[QM+Ze[rM]]=ce[ui++]);return LM}function AN(ce,Ae){var Ze=-1,At=ce.length;for(Ae||(Ae=bM(At));++Ze<At;)Ae[Ze]=ce[Ze];return Ae}function QN(ce,Ae,Ze,At){var ui=!Ze;Ze||(Ze={});for(var Nn=-1,rM=Ae.length;++Nn<rM;){var sM=Ae[Nn],cM=At?At(Ze[sM],ce[sM],sM,Ze,ce):d;cM===d&&(cM=ce[sM]),ui?rk(Ze,sM,cM):Jk(Ze,sM,cM)}return Ze}function m$(ce,Ae){return QN(ce,OD(ce),Ae)}function v$(ce,Ae){return QN(ce,mL(ce),Ae)}function PP(ce,Ae){return function(Ze,At){var ui=UT(Ze)?xR:$j,Nn=Ae?Ae():{};return ui(Ze,ce,kT(At,2),Nn)}}function Vk(ce){return YT(function(Ae,Ze){var At=-1,ui=Ze.length,Nn=ui>1?Ze[ui-1]:d,rM=ui>2?Ze[2]:d;for(Nn=ce.length>3&&typeof Nn=="function"?(ui--,Nn):d,rM&&EN(Ze[0],Ze[1],rM)&&(Nn=ui<3?d:Nn,ui=1),Ae=aN(Ae);++At<ui;){var sM=Ze[At];sM&&ce(Ae,sM,At,Nn)}return Ae})}function nL(ce,Ae){return function(Ze,At){if(Ze==null)return Ze;if(!TN(Ze))return ce(Ze,At);for(var ui=Ze.length,Nn=Ae?ui:-1,rM=aN(Ze);(Ae?Nn--:++Nn<ui)&&At(rM[Nn],Nn,rM)!==!1;);return Ze}}function aL(ce){return function(Ae,Ze,At){for(var ui=-1,Nn=aN(Ae),rM=At(Ae),sM=rM.length;sM--;){var cM=rM[ce?sM:++ui];if(Ze(Nn[cM],cM,Nn)===!1)break}return Ae}}function y$(ce,Ae,Ze){var At=Ae&Q,ui=nP(ce);function Nn(){var rM=this&&this!==yN&&this instanceof Nn?ui:ce;return rM.apply(At?Ze:this,arguments)}return Nn}function sL(ce){return function(Ae){Ae=JT(Ae);var Ze=Lk(Ae)?YN(Ae):d,At=Ze?Ze[0]:Ae.charAt(0),ui=Ze?vk(Ze,1).join(""):Ae.slice(1);return At[ce]()+ui}}function Uk(ce){return function(Ae){return QP(nR(iR(Ae).replace(lR,"")),ce,"")}}function nP(ce){return function(){var Ae=arguments;switch(Ae.length){case 0:return new ce;case 1:return new ce(Ae[0]);case 2:return new ce(Ae[0],Ae[1]);case 3:return new ce(Ae[0],Ae[1],Ae[2]);case 4:return new ce(Ae[0],Ae[1],Ae[2],Ae[3]);case 5:return new ce(Ae[0],Ae[1],Ae[2],Ae[3],Ae[4]);case 6:return new ce(Ae[0],Ae[1],Ae[2],Ae[3],Ae[4],Ae[5]);case 7:return new ce(Ae[0],Ae[1],Ae[2],Ae[3],Ae[4],Ae[5],Ae[6])}var Ze=Fk(ce.prototype),At=ce.apply(Ze,Ae);return cN(At)?At:Ze}}function b$(ce,Ae,Ze){var At=nP(ce);function ui(){for(var Nn=arguments.length,rM=bM(Nn),sM=Nn,cM=Gk(ui);sM--;)rM[sM]=arguments[sM];var CM=Nn<3&&rM[0]!==cM&&rM[Nn-1]!==cM?[]:dk(rM,cM);if(Nn-=CM.length,Nn<Ze)return fL(ce,Ae,DP,ui.placeholder,d,rM,CM,d,d,Ze-Nn);var NM=this&&this!==yN&&this instanceof ui?At:ce;return kN(NM,this,rM)}return ui}function oL(ce){return function(Ae,Ze,At){var ui=aN(Ae);if(!TN(Ae)){var Nn=kT(Ze,3);Ae=vN(Ae),Ze=function(sM){return Nn(ui[sM],sM,ui)}}var rM=ce(Ae,Ze,At);return rM>-1?ui[Nn?Ae[rM]:rM]:d}}function lL(ce){return nk(function(Ae){var Ze=Ae.length,At=Ze,ui=zN.prototype.thru;for(ce&&Ae.reverse();At--;){var Nn=Ae[At];if(typeof Nn!="function")throw new $N(E);if(ui&&!rM&&BP(Nn)=="wrapper")var rM=new zN([],!0)}for(At=rM?At:Ze;++At<Ze;){Nn=Ae[At];var sM=BP(Nn),cM=sM=="wrapper"?PD(Nn):d;cM&&RD(cM[0])&&cM[1]==(ze|ie|ge|de)&&!cM[4].length&&cM[9]==1?rM=rM[BP(cM[0])].apply(rM,cM[3]):rM=Nn.length==1&&RD(Nn)?rM[sM]():rM.thru(Nn)}return function(){var CM=arguments,NM=CM[0];if(rM&&CM.length==1&&UT(NM))return rM.plant(NM).value();for(var LM=0,XM=Ze?Ae[LM].apply(this,CM):NM;++LM<Ze;)XM=Ae[LM].call(this,XM);return XM}})}function DP(ce,Ae,Ze,At,ui,Nn,rM,sM,cM,CM){var NM=Ae&ze,LM=Ae&Q,XM=Ae&X,QM=Ae&(ie|oe),jT=Ae&Ce,HT=XM?d:nP(ce);function $T(){for(var XT=arguments.length,ZT=bM(XT),LN=XT;LN--;)ZT[LN]=arguments[LN];if(QM)var MN=Gk($T),RN=kR(ZT,MN);if(At&&(ZT=rL(ZT,At,ui,QM)),Nn&&(ZT=iL(ZT,Nn,rM,QM)),XT-=RN,QM&&XT<CM){var dN=dk(ZT,MN);return fL(ce,Ae,DP,$T.placeholder,Ze,ZT,dN,sM,cM,CM-XT)}var ZN=LM?Ze:this,lk=XM?ZN[ce]:ce;return XT=ZT.length,sM?ZT=$$(ZT,sM):jT&&XT>1&&ZT.reverse(),NM&&cM<XT&&(ZT.length=cM),this&&this!==yN&&this instanceof $T&&(lk=HT||nP(lk)),lk.apply(ZN,ZT)}return $T}function cL(ce,Ae){return function(Ze,At){return Yj(Ze,ce,Ae(At),{})}}function OP(ce,Ae){return function(Ze,At){var ui;if(Ze===d&&At===d)return Ae;if(Ze!==d&&(ui=Ze),At!==d){if(ui===d)return At;typeof Ze=="string"||typeof At=="string"?(Ze=DN(Ze),At=DN(At)):(Ze=XO(Ze),At=XO(At)),ui=ce(Ze,At)}return ui}}function TD(ce){return nk(function(Ae){return Ae=lN(Ae,PN(kT())),YT(function(Ze){var At=this;return ce(Ae,function(ui){return kN(ui,At,Ze)})})})}function LP(ce,Ae){Ae=Ae===d?" ":DN(Ae);var Ze=Ae.length;if(Ze<2)return Ze?wD(Ae,ce):Ae;var At=wD(Ae,wP(ce/Rk(Ae)));return Lk(Ae)?vk(YN(At),0,ce).join(""):At.slice(0,ce)}function _$(ce,Ae,Ze,At){var ui=Ae&Q,Nn=nP(ce);function rM(){for(var sM=-1,cM=arguments.length,CM=-1,NM=At.length,LM=bM(NM+cM),XM=this&&this!==yN&&this instanceof rM?Nn:ce;++CM<NM;)LM[CM]=At[CM];for(;cM--;)LM[CM++]=arguments[++sM];return kN(XM,ui?Ze:this,LM)}return rM}function uL(ce){return function(Ae,Ze,At){return At&&typeof At!="number"&&EN(Ae,Ze,At)&&(Ze=At=d),Ae=ok(Ae),Ze===d?(Ze=Ae,Ae=0):Ze=ok(Ze),At=At===d?Ae<Ze?1:-1:ok(At),a$(Ae,Ze,At,ce)}}function RP(ce){return function(Ae,Ze){return typeof Ae=="string"&&typeof Ze=="string"||(Ae=GN(Ae),Ze=GN(Ze)),ce(Ae,Ze)}}function fL(ce,Ae,Ze,At,ui,Nn,rM,sM,cM,CM){var NM=Ae&ie,LM=NM?rM:d,XM=NM?d:rM,QM=NM?Nn:d,jT=NM?d:Nn;Ae|=NM?ge:be,Ae&=~(NM?be:ge),Ae&Y||(Ae&=~(Q|X));var HT=[ce,Ae,ui,QM,LM,jT,XM,sM,cM,CM],$T=Ze.apply(d,HT);return RD(ce)&&IL($T,HT),$T.placeholder=At,EL($T,ce,Ae)}function CD(ce){var Ae=pN[ce];return function(Ze,At){if(Ze=GN(Ze),At=At==null?0:wN(GT(At),292),At&&IO(Ze)){var ui=(JT(Ze)+"e").split("e"),Nn=Ae(ui[0]+"e"+(+ui[1]+At));return ui=(JT(Nn)+"e").split("e"),+(ui[0]+"e"+(+ui[1]-At))}return Ae(Ze)}}var w$=$k&&1/fP(new $k([,-0]))[1]==ee?function(ce){return new $k(ce)}:KD;function dL(ce){return function(Ae){var Ze=xN(Ae);return Ze==Le?aD(Ae):Ze==oi?jR(Ae):NR(Ae,ce(Ae))}}function ik(ce,Ae,Ze,At,ui,Nn,rM,sM){var cM=Ae&X;if(!cM&&typeof ce!="function")throw new $N(E);var CM=At?At.length:0;if(CM||(Ae&=~(ge|be),At=ui=d),rM=rM===d?rM:gN(GT(rM),0),sM=sM===d?sM:GT(sM),CM-=ui?ui.length:0,Ae&be){var NM=At,LM=ui;At=ui=d}var XM=cM?d:PD(ce),QM=[ce,Ae,Ze,At,ui,NM,LM,Nn,rM,sM];if(XM&&R$(QM,XM),ce=QM[0],Ae=QM[1],Ze=QM[2],At=QM[3],ui=QM[4],sM=QM[9]=QM[9]===d?cM?0:ce.length:gN(QM[9]-CM,0),!sM&&Ae&(ie|oe)&&(Ae&=~(ie|oe)),!Ae||Ae==Q)var jT=y$(ce,Ae,Ze);else Ae==ie||Ae==oe?jT=b$(ce,Ae,sM):(Ae==ge||Ae==(Q|ge))&&!ui.length?jT=_$(ce,Ae,Ze,At):jT=DP.apply(d,QM);var HT=XM?HO:IL;return EL(HT(jT,QM),ce,Ae)}function hL(ce,Ae,Ze,At){return ce===d||qN(ce,jk[Ze])&&!tN.call(At,Ze)?Ae:ce}function pL(ce,Ae,Ze,At,ui,Nn){return cN(ce)&&cN(Ae)&&(Nn.set(Ae,ce),CP(ce,Ae,d,pL,Nn),Nn.delete(Ae)),ce}function x$(ce){return oP(ce)?d:ce}function gL(ce,Ae,Ze,At,ui,Nn){var rM=Ze&$,sM=ce.length,cM=Ae.length;if(sM!=cM&&!(rM&&cM>sM))return!1;var CM=Nn.get(ce),NM=Nn.get(Ae);if(CM&&NM)return CM==Ae&&NM==ce;var LM=-1,XM=!0,QM=Ze&W?new xk:d;for(Nn.set(ce,Ae),Nn.set(Ae,ce);++LM<sM;){var jT=ce[LM],HT=Ae[LM];if(At)var $T=rM?At(HT,jT,LM,Ae,ce,Nn):At(jT,HT,LM,ce,Ae,Nn);if($T!==d){if($T)continue;XM=!1;break}if(QM){if(!JP(Ae,function(XT,ZT){if(!Yk(QM,ZT)&&(jT===XT||ui(jT,XT,Ze,At,Nn)))return QM.push(ZT)})){XM=!1;break}}else if(!(jT===HT||ui(jT,HT,Ze,At,Nn))){XM=!1;break}}return Nn.delete(ce),Nn.delete(Ae),XM}function I$(ce,Ae,Ze,At,ui,Nn,rM){switch(Ze){case eM:if(ce.byteLength!=Ae.byteLength||ce.byteOffset!=Ae.byteOffset)return!1;ce=ce.buffer,Ae=Ae.buffer;case pi:return!(ce.byteLength!=Ae.byteLength||!Nn(new vP(ce),new vP(Ae)));case vt:case ri:case ot:return qN(+ce,+Ae);case tt:return ce.name==Ae.name&&ce.message==Ae.message;case Dt:case Bt:return ce==Ae+"";case Le:var sM=aD;case oi:var cM=At&$;if(sM||(sM=fP),ce.size!=Ae.size&&!cM)return!1;var CM=rM.get(ce);if(CM)return CM==Ae;At|=W,rM.set(ce,Ae);var NM=gL(sM(ce),sM(Ae),At,ui,Nn,rM);return rM.delete(ce),NM;case li:if(Qk)return Qk.call(ce)==Qk.call(Ae)}return!1}function E$(ce,Ae,Ze,At,ui,Nn){var rM=Ze&$,sM=ND(ce),cM=sM.length,CM=ND(Ae),NM=CM.length;if(cM!=NM&&!rM)return!1;for(var LM=cM;LM--;){var XM=sM[LM];if(!(rM?XM in Ae:tN.call(Ae,XM)))return!1}var QM=Nn.get(ce),jT=Nn.get(Ae);if(QM&&jT)return QM==Ae&&jT==ce;var HT=!0;Nn.set(ce,Ae),Nn.set(Ae,ce);for(var $T=rM;++LM<cM;){XM=sM[LM];var XT=ce[XM],ZT=Ae[XM];if(At)var LN=rM?At(ZT,XT,XM,Ae,ce,Nn):At(XT,ZT,XM,ce,Ae,Nn);if(!(LN===d?XT===ZT||ui(XT,ZT,Ze,At,Nn):LN)){HT=!1;break}$T||($T=XM=="constructor")}if(HT&&!$T){var MN=ce.constructor,RN=Ae.constructor;MN!=RN&&"constructor"in ce&&"constructor"in Ae&&!(typeof MN=="function"&&MN instanceof MN&&typeof RN=="function"&&RN instanceof RN)&&(HT=!1)}return Nn.delete(ce),Nn.delete(Ae),HT}function nk(ce){return jD(wL(ce,d,NL),ce+"")}function ND(ce){return LO(ce,vN,OD)}function kD(ce){return LO(ce,CN,mL)}var PD=IP?function(ce){return IP.get(ce)}:KD;function BP(ce){for(var Ae=ce.name+"",Ze=zk[Ae],At=tN.call(zk,Ae)?Ze.length:0;At--;){var ui=Ze[At],Nn=ui.func;if(Nn==null||Nn==ce)return ui.name}return Ae}function Gk(ce){var Ae=tN.call(vi,"placeholder")?vi:ce;return Ae.placeholder}function kT(){var ce=vi.iteratee||qD;return ce=ce===qD?jO:ce,arguments.length?ce(arguments[0],arguments[1]):ce}function jP(ce,Ae){var Ze=ce.__data__;return P$(Ae)?Ze[typeof Ae=="string"?"string":"hash"]:Ze.map}function DD(ce){for(var Ae=vN(ce),Ze=Ae.length;Ze--;){var At=Ae[Ze],ui=ce[At];Ae[Ze]=[At,ui,bL(ui)]}return Ae}function Mk(ce,Ae){var Ze=LR(ce,Ae);return BO(Ze)?Ze:d}function M$(ce){var Ae=tN.call(ce,_k),Ze=ce[_k];try{ce[_k]=d;var At=!0}catch{}var ui=gP.call(ce);return At&&(Ae?ce[_k]=Ze:delete ce[_k]),ui}var OD=oD?function(ce){return ce==null?[]:(ce=aN(ce),uk(oD(ce),function(Ae){return wO.call(ce,Ae)}))}:QD,mL=oD?function(ce){for(var Ae=[];ce;)fk(Ae,OD(ce)),ce=yP(ce);return Ae}:QD,xN=IN;(lD&&xN(new lD(new ArrayBuffer(1)))!=eM||qk&&xN(new qk)!=Le||cD&&xN(cD.resolve())!=Fe||$k&&xN(new $k)!=oi||Zk&&xN(new Zk)!=Ot)&&(xN=function(ce){var Ae=IN(ce),Ze=Ae==Ne?ce.constructor:d,At=Ze?Sk(Ze):"";if(At)switch(At){case oj:return eM;case lj:return Le;case cj:return Fe;case uj:return oi;case fj:return Ot}return Ae});function S$(ce,Ae,Ze){for(var At=-1,ui=Ze.length;++At<ui;){var Nn=Ze[At],rM=Nn.size;switch(Nn.type){case"drop":ce+=rM;break;case"dropRight":Ae-=rM;break;case"take":Ae=wN(Ae,ce+rM);break;case"takeRight":ce=gN(ce,Ae-rM);break}}return{start:ce,end:Ae}}function A$(ce){var Ae=ce.match(SM);return Ae?Ae[1].split(jM):[]}function vL(ce,Ae,Ze){Ae=mk(Ae,ce);for(var At=-1,ui=Ae.length,Nn=!1;++At<ui;){var rM=JN(Ae[At]);if(!(Nn=ce!=null&&Ze(ce,rM)))break;ce=ce[rM]}return Nn||++At!=ui?Nn:(ui=ce==null?0:ce.length,!!ui&&WP(ui)&&ak(rM,ui)&&(UT(ce)||Ak(ce)))}function T$(ce){var Ae=ce.length,Ze=new ce.constructor(Ae);return Ae&&typeof ce[0]=="string"&&tN.call(ce,"index")&&(Ze.index=ce.index,Ze.input=ce.input),Ze}function yL(ce){return typeof ce.constructor=="function"&&!aP(ce)?Fk(yP(ce)):{}}function C$(ce,Ae,Ze){var At=ce.constructor;switch(Ae){case pi:return AD(ce);case vt:case ri:return new At(+ce);case eM:return d$(ce,Ze);case hi:case mi:case Dn:case tM:case oM:case vM:case dM:case hM:case _M:return eL(ce,Ze);case Le:return new At;case ot:case Bt:return new At(ce);case Dt:return h$(ce);case oi:return new At;case li:return p$(ce)}}function N$(ce,Ae){var Ze=Ae.length;if(!Ze)return ce;var At=Ze-1;return Ae[At]=(Ze>1?"& ":"")+Ae[At],Ae=Ae.join(Ze>2?", ":" "),ce.replace(WM,`{
/* [wrapped with `+Ae+`] */
`)}function k$(ce){return UT(ce)||Ak(ce)||!!(xO&&ce&&ce[xO])}function ak(ce,Ae){var Ze=typeof ce;return Ae=Ae??H,!!Ae&&(Ze=="number"||Ze!="symbol"&&ai.test(ce))&&ce>-1&&ce%1==0&&ce<Ae}function EN(ce,Ae,Ze){if(!cN(Ze))return!1;var At=typeof Ae;return(At=="number"?TN(Ze)&&ak(Ae,Ze.length):At=="string"&&Ae in Ze)?qN(Ze[Ae],ce):!1}function LD(ce,Ae){if(UT(ce))return!1;var Ze=typeof ce;return Ze=="number"||Ze=="symbol"||Ze=="boolean"||ce==null||ON(ce)?!0:UM.test(ce)||!OM.test(ce)||Ae!=null&&ce in aN(Ae)}function P$(ce){var Ae=typeof ce;return Ae=="string"||Ae=="number"||Ae=="symbol"||Ae=="boolean"?ce!=="__proto__":ce===null}function RD(ce){var Ae=BP(ce),Ze=vi[Ae];if(typeof Ze!="function"||!(Ae in qT.prototype))return!1;if(ce===Ze)return!0;var At=PD(Ze);return!!At&&ce===At[0]}function D$(ce){return!!yO&&yO in ce}var O$=hP?sk:JD;function aP(ce){var Ae=ce&&ce.constructor,Ze=typeof Ae=="function"&&Ae.prototype||jk;return ce===Ze}function bL(ce){return ce===ce&&!cN(ce)}function _L(ce,Ae){return function(Ze){return Ze==null?!1:Ze[ce]===Ae&&(Ae!==d||ce in aN(Ze))}}function L$(ce){var Ae=UP(ce,function(At){return Ze.size===A&&Ze.clear(),At}),Ze=Ae.cache;return Ae}function R$(ce,Ae){var Ze=ce[1],At=Ae[1],ui=Ze|At,Nn=ui<(Q|X|ze),rM=At==ze&&Ze==ie||At==ze&&Ze==de&&ce[7].length<=Ae[8]||At==(ze|de)&&Ae[7].length<=Ae[8]&&Ze==ie;if(!(Nn||rM))return ce;At&Q&&(ce[2]=Ae[2],ui|=Ze&Q?0:Y);var sM=Ae[3];if(sM){var cM=ce[3];ce[3]=cM?rL(cM,sM,Ae[4]):sM,ce[4]=cM?dk(ce[3],T):Ae[4]}return sM=Ae[5],sM&&(cM=ce[5],ce[5]=cM?iL(cM,sM,Ae[6]):sM,ce[6]=cM?dk(ce[5],T):Ae[6]),sM=Ae[7],sM&&(ce[7]=sM),At&ze&&(ce[8]=ce[8]==null?Ae[8]:wN(ce[8],Ae[8])),ce[9]==null&&(ce[9]=Ae[9]),ce[0]=Ae[0],ce[1]=ui,ce}function B$(ce){var Ae=[];if(ce!=null)for(var Ze in aN(ce))Ae.push(Ze);return Ae}function j$(ce){return gP.call(ce)}function wL(ce,Ae,Ze){return Ae=gN(Ae===d?ce.length-1:Ae,0),function(){for(var At=arguments,ui=-1,Nn=gN(At.length-Ae,0),rM=bM(Nn);++ui<Nn;)rM[ui]=At[Ae+ui];ui=-1;for(var sM=bM(Ae+1);++ui<Ae;)sM[ui]=At[ui];return sM[Ae]=Ze(rM),kN(ce,this,sM)}}function xL(ce,Ae){return Ae.length<2?ce:Ek(ce,VN(Ae,0,-1))}function $$(ce,Ae){for(var Ze=ce.length,At=wN(Ae.length,Ze),ui=AN(ce);At--;){var Nn=Ae[At];ce[At]=ak(Nn,Ze)?ui[Nn]:d}return ce}function BD(ce,Ae){if(!(Ae==="constructor"&&typeof ce[Ae]=="function")&&Ae!="__proto__")return ce[Ae]}var IL=ML(HO),sP=ej||function(ce,Ae){return yN.setTimeout(ce,Ae)},jD=ML(l$);function EL(ce,Ae,Ze){var At=Ae+"";return jD(ce,N$(At,z$(A$(At),Ze)))}function ML(ce){var Ae=0,Ze=0;return function(){var At=nj(),ui=P-(At-Ze);if(Ze=At,ui>0){if(++Ae>=re)return arguments[0]}else Ae=0;return ce.apply(d,arguments)}}function $P(ce,Ae){var Ze=-1,At=ce.length,ui=At-1;for(Ae=Ae===d?At:Ae;++Ze<Ae;){var Nn=_D(Ze,ui),rM=ce[Nn];ce[Nn]=ce[Ze],ce[Ze]=rM}return ce.length=Ae,ce}var SL=L$(function(ce){var Ae=[];return ce.charCodeAt(0)===46&&Ae.push(""),ce.replace(AM,function(Ze,At,ui,Nn){Ae.push(ui?Nn.replace(VM,"$1"):At||Ze)}),Ae});function JN(ce){if(typeof ce=="string"||ON(ce))return ce;var Ae=ce+"";return Ae=="0"&&1/ce==-ee?"-0":Ae}function Sk(ce){if(ce!=null){try{return pP.call(ce)}catch{}try{return ce+""}catch{}}return""}function z$(ce,Ae){return jN(Ye,function(Ze){var At="_."+Ze[0];Ae&Ze[1]&&!cP(ce,At)&&ce.push(At)}),ce.sort()}function AL(ce){if(ce instanceof qT)return ce.clone();var Ae=new zN(ce.__wrapped__,ce.__chain__);return Ae.__actions__=AN(ce.__actions__),Ae.__index__=ce.__index__,Ae.__values__=ce.__values__,Ae}function F$(ce,Ae,Ze){(Ze?EN(ce,Ae,Ze):Ae===d)?Ae=1:Ae=gN(GT(Ae),0);var At=ce==null?0:ce.length;if(!At||Ae<1)return[];for(var ui=0,Nn=0,rM=bM(wP(At/Ae));ui<At;)rM[Nn++]=VN(ce,ui,ui+=Ae);return rM}function V$(ce){for(var Ae=-1,Ze=ce==null?0:ce.length,At=0,ui=[];++Ae<Ze;){var Nn=ce[Ae];Nn&&(ui[At++]=Nn)}return ui}function U$(){var ce=arguments.length;if(!ce)return[];for(var Ae=bM(ce-1),Ze=arguments[0],At=ce;At--;)Ae[At-1]=arguments[At];return fk(UT(Ze)?AN(Ze):[Ze],bN(Ae,1))}var G$=YT(function(ce,Ae){return fN(ce)?eP(ce,bN(Ae,1,fN,!0)):[]}),W$=YT(function(ce,Ae){var Ze=UN(Ae);return fN(Ze)&&(Ze=d),fN(ce)?eP(ce,bN(Ae,1,fN,!0),kT(Ze,2)):[]}),H$=YT(function(ce,Ae){var Ze=UN(Ae);return fN(Ze)&&(Ze=d),fN(ce)?eP(ce,bN(Ae,1,fN,!0),d,Ze):[]});function Y$(ce,Ae,Ze){var At=ce==null?0:ce.length;return At?(Ae=Ze||Ae===d?1:GT(Ae),VN(ce,Ae<0?0:Ae,At)):[]}function X$(ce,Ae,Ze){var At=ce==null?0:ce.length;return At?(Ae=Ze||Ae===d?1:GT(Ae),Ae=At-Ae,VN(ce,0,Ae<0?0:Ae)):[]}function q$(ce,Ae){return ce&&ce.length?kP(ce,kT(Ae,3),!0,!0):[]}function Z$(ce,Ae){return ce&&ce.length?kP(ce,kT(Ae,3),!0):[]}function K$(ce,Ae,Ze,At){var ui=ce==null?0:ce.length;return ui?(Ze&&typeof Ze!="number"&&EN(ce,Ae,Ze)&&(Ze=0,At=ui),Uj(ce,Ae,Ze,At)):[]}function TL(ce,Ae,Ze){var At=ce==null?0:ce.length;if(!At)return-1;var ui=Ze==null?0:GT(Ze);return ui<0&&(ui=gN(At+ui,0)),uP(ce,kT(Ae,3),ui)}function CL(ce,Ae,Ze){var At=ce==null?0:ce.length;if(!At)return-1;var ui=At-1;return Ze!==d&&(ui=GT(Ze),ui=Ze<0?gN(At+ui,0):wN(ui,At-1)),uP(ce,kT(Ae,3),ui,!0)}function NL(ce){var Ae=ce==null?0:ce.length;return Ae?bN(ce,1):[]}function Q$(ce){var Ae=ce==null?0:ce.length;return Ae?bN(ce,ee):[]}function J$(ce,Ae){var Ze=ce==null?0:ce.length;return Ze?(Ae=Ae===d?1:GT(Ae),bN(ce,Ae)):[]}function ez(ce){for(var Ae=-1,Ze=ce==null?0:ce.length,At={};++Ae<Ze;){var ui=ce[Ae];At[ui[0]]=ui[1]}return At}function kL(ce){return ce&&ce.length?ce[0]:d}function tz(ce,Ae,Ze){var At=ce==null?0:ce.length;if(!At)return-1;var ui=Ze==null?0:GT(Ze);return ui<0&&(ui=gN(At+ui,0)),Ok(ce,Ae,ui)}function rz(ce){var Ae=ce==null?0:ce.length;return Ae?VN(ce,0,-1):[]}var iz=YT(function(ce){var Ae=lN(ce,MD);return Ae.length&&Ae[0]===ce[0]?gD(Ae):[]}),nz=YT(function(ce){var Ae=UN(ce),Ze=lN(ce,MD);return Ae===UN(Ze)?Ae=d:Ze.pop(),Ze.length&&Ze[0]===ce[0]?gD(Ze,kT(Ae,2)):[]}),az=YT(function(ce){var Ae=UN(ce),Ze=lN(ce,MD);return Ae=typeof Ae=="function"?Ae:d,Ae&&Ze.pop(),Ze.length&&Ze[0]===ce[0]?gD(Ze,d,Ae):[]});function sz(ce,Ae){return ce==null?"":rj.call(ce,Ae)}function UN(ce){var Ae=ce==null?0:ce.length;return Ae?ce[Ae-1]:d}function oz(ce,Ae,Ze){var At=ce==null?0:ce.length;if(!At)return-1;var ui=At;return Ze!==d&&(ui=GT(Ze),ui=ui<0?gN(At+ui,0):wN(ui,At-1)),Ae===Ae?zR(ce,Ae,ui):uP(ce,uO,ui,!0)}function lz(ce,Ae){return ce&&ce.length?VO(ce,GT(Ae)):d}var cz=YT(PL);function PL(ce,Ae){return ce&&ce.length&&Ae&&Ae.length?bD(ce,Ae):ce}function uz(ce,Ae,Ze){return ce&&ce.length&&Ae&&Ae.length?bD(ce,Ae,kT(Ze,2)):ce}function fz(ce,Ae,Ze){return ce&&ce.length&&Ae&&Ae.length?bD(ce,Ae,d,Ze):ce}var dz=nk(function(ce,Ae){var Ze=ce==null?0:ce.length,At=fD(ce,Ae);return WO(ce,lN(Ae,function(ui){return ak(ui,Ze)?+ui:ui}).sort(tL)),At});function hz(ce,Ae){var Ze=[];if(!(ce&&ce.length))return Ze;var At=-1,ui=[],Nn=ce.length;for(Ae=kT(Ae,3);++At<Nn;){var rM=ce[At];Ae(rM,At,ce)&&(Ze.push(rM),ui.push(At))}return WO(ce,ui),Ze}function $D(ce){return ce==null?ce:sj.call(ce)}function pz(ce,Ae,Ze){var At=ce==null?0:ce.length;return At?(Ze&&typeof Ze!="number"&&EN(ce,Ae,Ze)?(Ae=0,Ze=At):(Ae=Ae==null?0:GT(Ae),Ze=Ze===d?At:GT(Ze)),VN(ce,Ae,Ze)):[]}function gz(ce,Ae){return NP(ce,Ae)}function mz(ce,Ae,Ze){return xD(ce,Ae,kT(Ze,2))}function vz(ce,Ae){var Ze=ce==null?0:ce.length;if(Ze){var At=NP(ce,Ae);if(At<Ze&&qN(ce[At],Ae))return At}return-1}function yz(ce,Ae){return NP(ce,Ae,!0)}function bz(ce,Ae,Ze){return xD(ce,Ae,kT(Ze,2),!0)}function _z(ce,Ae){var Ze=ce==null?0:ce.length;if(Ze){var At=NP(ce,Ae,!0)-1;if(qN(ce[At],Ae))return At}return-1}function wz(ce){return ce&&ce.length?YO(ce):[]}function xz(ce,Ae){return ce&&ce.length?YO(ce,kT(Ae,2)):[]}function Iz(ce){var Ae=ce==null?0:ce.length;return Ae?VN(ce,1,Ae):[]}function Ez(ce,Ae,Ze){return ce&&ce.length?(Ae=Ze||Ae===d?1:GT(Ae),VN(ce,0,Ae<0?0:Ae)):[]}function Mz(ce,Ae,Ze){var At=ce==null?0:ce.length;return At?(Ae=Ze||Ae===d?1:GT(Ae),Ae=At-Ae,VN(ce,Ae<0?0:Ae,At)):[]}function Sz(ce,Ae){return ce&&ce.length?kP(ce,kT(Ae,3),!1,!0):[]}function Az(ce,Ae){return ce&&ce.length?kP(ce,kT(Ae,3)):[]}var Tz=YT(function(ce){return gk(bN(ce,1,fN,!0))}),Cz=YT(function(ce){var Ae=UN(ce);return fN(Ae)&&(Ae=d),gk(bN(ce,1,fN,!0),kT(Ae,2))}),Nz=YT(function(ce){var Ae=UN(ce);return Ae=typeof Ae=="function"?Ae:d,gk(bN(ce,1,fN,!0),d,Ae)});function kz(ce){return ce&&ce.length?gk(ce):[]}function Pz(ce,Ae){return ce&&ce.length?gk(ce,kT(Ae,2)):[]}function Dz(ce,Ae){return Ae=typeof Ae=="function"?Ae:d,ce&&ce.length?gk(ce,d,Ae):[]}function zD(ce){if(!(ce&&ce.length))return[];var Ae=0;return ce=uk(ce,function(Ze){if(fN(Ze))return Ae=gN(Ze.length,Ae),!0}),iD(Ae,function(Ze){return lN(ce,eD(Ze))})}function DL(ce,Ae){if(!(ce&&ce.length))return[];var Ze=zD(ce);return Ae==null?Ze:lN(Ze,function(At){return kN(Ae,d,At)})}var Oz=YT(function(ce,Ae){return fN(ce)?eP(ce,Ae):[]}),Lz=YT(function(ce){return ED(uk(ce,fN))}),Rz=YT(function(ce){var Ae=UN(ce);return fN(Ae)&&(Ae=d),ED(uk(ce,fN),kT(Ae,2))}),Bz=YT(function(ce){var Ae=UN(ce);return Ae=typeof Ae=="function"?Ae:d,ED(uk(ce,fN),d,Ae)}),jz=YT(zD);function $z(ce,Ae){return KO(ce||[],Ae||[],Jk)}function zz(ce,Ae){return KO(ce||[],Ae||[],iP)}var Fz=YT(function(ce){var Ae=ce.length,Ze=Ae>1?ce[Ae-1]:d;return Ze=typeof Ze=="function"?(ce.pop(),Ze):d,DL(ce,Ze)});function OL(ce){var Ae=vi(ce);return Ae.__chain__=!0,Ae}function Vz(ce,Ae){return Ae(ce),ce}function zP(ce,Ae){return Ae(ce)}var Uz=nk(function(ce){var Ae=ce.length,Ze=Ae?ce[0]:0,At=this.__wrapped__,ui=function(Nn){return fD(Nn,ce)};return Ae>1||this.__actions__.length||!(At instanceof qT)||!ak(Ze)?this.thru(ui):(At=At.slice(Ze,+Ze+(Ae?1:0)),At.__actions__.push({func:zP,args:[ui],thisArg:d}),new zN(At,this.__chain__).thru(function(Nn){return Ae&&!Nn.length&&Nn.push(d),Nn}))});function Gz(){return OL(this)}function Wz(){return new zN(this.value(),this.__chain__)}function Hz(){this.__values__===d&&(this.__values__=XL(this.value()));var ce=this.__index__>=this.__values__.length,Ae=ce?d:this.__values__[this.__index__++];return{done:ce,value:Ae}}function Yz(){return this}function Xz(ce){for(var Ae,Ze=this;Ze instanceof MP;){var At=AL(Ze);At.__index__=0,At.__values__=d,Ae?ui.__wrapped__=At:Ae=At;var ui=At;Ze=Ze.__wrapped__}return ui.__wrapped__=ce,Ae}function qz(){var ce=this.__wrapped__;if(ce instanceof qT){var Ae=ce;return this.__actions__.length&&(Ae=new qT(this)),Ae=Ae.reverse(),Ae.__actions__.push({func:zP,args:[$D],thisArg:d}),new zN(Ae,this.__chain__)}return this.thru($D)}function Zz(){return ZO(this.__wrapped__,this.__actions__)}var Kz=PP(function(ce,Ae,Ze){tN.call(ce,Ze)?++ce[Ze]:rk(ce,Ze,1)});function Qz(ce,Ae,Ze){var At=UT(ce)?lO:Vj;return Ze&&EN(ce,Ae,Ze)&&(Ae=d),At(ce,kT(Ae,3))}function Jz(ce,Ae){var Ze=UT(ce)?uk:DO;return Ze(ce,kT(Ae,3))}var eF=oL(TL),tF=oL(CL);function rF(ce,Ae){return bN(FP(ce,Ae),1)}function iF(ce,Ae){return bN(FP(ce,Ae),ee)}function nF(ce,Ae,Ze){return Ze=Ze===d?1:GT(Ze),bN(FP(ce,Ae),Ze)}function LL(ce,Ae){var Ze=UT(ce)?jN:pk;return Ze(ce,kT(Ae,3))}function RL(ce,Ae){var Ze=UT(ce)?IR:PO;return Ze(ce,kT(Ae,3))}var aF=PP(function(ce,Ae,Ze){tN.call(ce,Ze)?ce[Ze].push(Ae):rk(ce,Ze,[Ae])});function sF(ce,Ae,Ze,At){ce=TN(ce)?ce:Hk(ce),Ze=Ze&&!At?GT(Ze):0;var ui=ce.length;return Ze<0&&(Ze=gN(ui+Ze,0)),HP(ce)?Ze<=ui&&ce.indexOf(Ae,Ze)>-1:!!ui&&Ok(ce,Ae,Ze)>-1}var oF=YT(function(ce,Ae,Ze){var At=-1,ui=typeof Ae=="function",Nn=TN(ce)?bM(ce.length):[];return pk(ce,function(rM){Nn[++At]=ui?kN(Ae,rM,Ze):tP(rM,Ae,Ze)}),Nn}),lF=PP(function(ce,Ae,Ze){rk(ce,Ze,Ae)});function FP(ce,Ae){var Ze=UT(ce)?lN:$O;return Ze(ce,kT(Ae,3))}function cF(ce,Ae,Ze,At){return ce==null?[]:(UT(Ae)||(Ae=Ae==null?[]:[Ae]),Ze=At?d:Ze,UT(Ze)||(Ze=Ze==null?[]:[Ze]),UO(ce,Ae,Ze))}var uF=PP(function(ce,Ae,Ze){ce[Ze?0:1].push(Ae)},function(){return[[],[]]});function fF(ce,Ae,Ze){var At=UT(ce)?QP:dO,ui=arguments.length<3;return At(ce,kT(Ae,4),Ze,ui,pk)}function dF(ce,Ae,Ze){var At=UT(ce)?ER:dO,ui=arguments.length<3;return At(ce,kT(Ae,4),Ze,ui,PO)}function hF(ce,Ae){var Ze=UT(ce)?uk:DO;return Ze(ce,GP(kT(Ae,3)))}function pF(ce){var Ae=UT(ce)?AO:s$;return Ae(ce)}function gF(ce,Ae,Ze){(Ze?EN(ce,Ae,Ze):Ae===d)?Ae=1:Ae=GT(Ae);var At=UT(ce)?Bj:o$;return At(ce,Ae)}function mF(ce){var Ae=UT(ce)?jj:c$;return Ae(ce)}function vF(ce){if(ce==null)return 0;if(TN(ce))return HP(ce)?Rk(ce):ce.length;var Ae=xN(ce);return Ae==Le||Ae==oi?ce.size:vD(ce).length}function yF(ce,Ae,Ze){var At=UT(ce)?JP:u$;return Ze&&EN(ce,Ae,Ze)&&(Ae=d),At(ce,kT(Ae,3))}var bF=YT(function(ce,Ae){if(ce==null)return[];var Ze=Ae.length;return Ze>1&&EN(ce,Ae[0],Ae[1])?Ae=[]:Ze>2&&EN(Ae[0],Ae[1],Ae[2])&&(Ae=[Ae[0]]),UO(ce,bN(Ae,1),[])}),VP=JR||function(){return yN.Date.now()};function _F(ce,Ae){if(typeof Ae!="function")throw new $N(E);return ce=GT(ce),function(){if(--ce<1)return Ae.apply(this,arguments)}}function BL(ce,Ae,Ze){return Ae=Ze?d:Ae,Ae=ce&&Ae==null?ce.length:Ae,ik(ce,ze,d,d,d,d,Ae)}function jL(ce,Ae){var Ze;if(typeof Ae!="function")throw new $N(E);return ce=GT(ce),function(){return--ce>0&&(Ze=Ae.apply(this,arguments)),ce<=1&&(Ae=d),Ze}}var FD=YT(function(ce,Ae,Ze){var At=Q;if(Ze.length){var ui=dk(Ze,Gk(FD));At|=ge}return ik(ce,At,Ae,Ze,ui)}),$L=YT(function(ce,Ae,Ze){var At=Q|X;if(Ze.length){var ui=dk(Ze,Gk($L));At|=ge}return ik(Ae,At,ce,Ze,ui)});function zL(ce,Ae,Ze){Ae=Ze?d:Ae;var At=ik(ce,ie,d,d,d,d,d,Ae);return At.placeholder=zL.placeholder,At}function FL(ce,Ae,Ze){Ae=Ze?d:Ae;var At=ik(ce,oe,d,d,d,d,d,Ae);return At.placeholder=FL.placeholder,At}function VL(ce,Ae,Ze){var At,ui,Nn,rM,sM,cM,CM=0,NM=!1,LM=!1,XM=!0;if(typeof ce!="function")throw new $N(E);Ae=GN(Ae)||0,cN(Ze)&&(NM=!!Ze.leading,LM="maxWait"in Ze,Nn=LM?gN(GN(Ze.maxWait)||0,Ae):Nn,XM="trailing"in Ze?!!Ze.trailing:XM);function QM(dN){var ZN=At,lk=ui;return At=ui=d,CM=dN,rM=ce.apply(lk,ZN),rM}function jT(dN){return CM=dN,sM=sP(XT,Ae),NM?QM(dN):rM}function HT(dN){var ZN=dN-cM,lk=dN-CM,oR=Ae-ZN;return LM?wN(oR,Nn-lk):oR}function $T(dN){var ZN=dN-cM,lk=dN-CM;return cM===d||ZN>=Ae||ZN<0||LM&&lk>=Nn}function XT(){var dN=VP();if($T(dN))return ZT(dN);sM=sP(XT,HT(dN))}function ZT(dN){return sM=d,XM&&At?QM(dN):(At=ui=d,rM)}function LN(){sM!==d&&QO(sM),CM=0,At=cM=ui=sM=d}function MN(){return sM===d?rM:ZT(VP())}function RN(){var dN=VP(),ZN=$T(dN);if(At=arguments,ui=this,cM=dN,ZN){if(sM===d)return jT(cM);if(LM)return QO(sM),sM=sP(XT,Ae),QM(cM)}return sM===d&&(sM=sP(XT,Ae)),rM}return RN.cancel=LN,RN.flush=MN,RN}var wF=YT(function(ce,Ae){return kO(ce,1,Ae)}),xF=YT(function(ce,Ae,Ze){return kO(ce,GN(Ae)||0,Ze)});function IF(ce){return ik(ce,Ce)}function UP(ce,Ae){if(typeof ce!="function"||Ae!=null&&typeof Ae!="function")throw new $N(E);var Ze=function(){var At=arguments,ui=Ae?Ae.apply(this,At):At[0],Nn=Ze.cache;if(Nn.has(ui))return Nn.get(ui);var rM=ce.apply(this,At);return Ze.cache=Nn.set(ui,rM)||Nn,rM};return Ze.cache=new(UP.Cache||tk),Ze}UP.Cache=tk;function GP(ce){if(typeof ce!="function")throw new $N(E);return function(){var Ae=arguments;switch(Ae.length){case 0:return!ce.call(this);case 1:return!ce.call(this,Ae[0]);case 2:return!ce.call(this,Ae[0],Ae[1]);case 3:return!ce.call(this,Ae[0],Ae[1],Ae[2])}return!ce.apply(this,Ae)}}function EF(ce){return jL(2,ce)}var MF=f$(function(ce,Ae){Ae=Ae.length==1&&UT(Ae[0])?lN(Ae[0],PN(kT())):lN(bN(Ae,1),PN(kT()));var Ze=Ae.length;return YT(function(At){for(var ui=-1,Nn=wN(At.length,Ze);++ui<Nn;)At[ui]=Ae[ui].call(this,At[ui]);return kN(ce,this,At)})}),VD=YT(function(ce,Ae){var Ze=dk(Ae,Gk(VD));return ik(ce,ge,d,Ae,Ze)}),UL=YT(function(ce,Ae){var Ze=dk(Ae,Gk(UL));return ik(ce,be,d,Ae,Ze)}),SF=nk(function(ce,Ae){return ik(ce,de,d,d,d,Ae)});function AF(ce,Ae){if(typeof ce!="function")throw new $N(E);return Ae=Ae===d?Ae:GT(Ae),YT(ce,Ae)}function TF(ce,Ae){if(typeof ce!="function")throw new $N(E);return Ae=Ae==null?0:gN(GT(Ae),0),YT(function(Ze){var At=Ze[Ae],ui=vk(Ze,0,Ae);return At&&fk(ui,At),kN(ce,this,ui)})}function CF(ce,Ae,Ze){var At=!0,ui=!0;if(typeof ce!="function")throw new $N(E);return cN(Ze)&&(At="leading"in Ze?!!Ze.leading:At,ui="trailing"in Ze?!!Ze.trailing:ui),VL(ce,Ae,{leading:At,maxWait:Ae,trailing:ui})}function NF(ce){return BL(ce,1)}function kF(ce,Ae){return VD(SD(Ae),ce)}function PF(){if(!arguments.length)return[];var ce=arguments[0];return UT(ce)?ce:[ce]}function DF(ce){return FN(ce,j)}function OF(ce,Ae){return Ae=typeof Ae=="function"?Ae:d,FN(ce,j,Ae)}function LF(ce){return FN(ce,D|j)}function RF(ce,Ae){return Ae=typeof Ae=="function"?Ae:d,FN(ce,D|j,Ae)}function BF(ce,Ae){return Ae==null||CO(ce,Ae,vN(Ae))}function qN(ce,Ae){return ce===Ae||ce!==ce&&Ae!==Ae}var jF=RP(pD),$F=RP(function(ce,Ae){return ce>=Ae}),Ak=RO(function(){return arguments}())?RO:function(ce){return uN(ce)&&tN.call(ce,"callee")&&!wO.call(ce,"callee")},UT=bM.isArray,zF=rO?PN(rO):Xj;function TN(ce){return ce!=null&&WP(ce.length)&&!sk(ce)}function fN(ce){return uN(ce)&&TN(ce)}function FF(ce){return ce===!0||ce===!1||uN(ce)&&IN(ce)==vt}var yk=tj||JD,VF=iO?PN(iO):qj;function UF(ce){return uN(ce)&&ce.nodeType===1&&!oP(ce)}function GF(ce){if(ce==null)return!0;if(TN(ce)&&(UT(ce)||typeof ce=="string"||typeof ce.splice=="function"||yk(ce)||Wk(ce)||Ak(ce)))return!ce.length;var Ae=xN(ce);if(Ae==Le||Ae==oi)return!ce.size;if(aP(ce))return!vD(ce).length;for(var Ze in ce)if(tN.call(ce,Ze))return!1;return!0}function WF(ce,Ae){return rP(ce,Ae)}function HF(ce,Ae,Ze){Ze=typeof Ze=="function"?Ze:d;var At=Ze?Ze(ce,Ae):d;return At===d?rP(ce,Ae,d,Ze):!!At}function UD(ce){if(!uN(ce))return!1;var Ae=IN(ce);return Ae==tt||Ae==ci||typeof ce.message=="string"&&typeof ce.name=="string"&&!oP(ce)}function YF(ce){return typeof ce=="number"&&IO(ce)}function sk(ce){if(!cN(ce))return!1;var Ae=IN(ce);return Ae==et||Ae==$e||Ae==Qe||Ae==Je}function GL(ce){return typeof ce=="number"&&ce==GT(ce)}function WP(ce){return typeof ce=="number"&&ce>-1&&ce%1==0&&ce<=H}function cN(ce){var Ae=typeof ce;return ce!=null&&(Ae=="object"||Ae=="function")}function uN(ce){return ce!=null&&typeof ce=="object"}var WL=nO?PN(nO):Kj;function XF(ce,Ae){return ce===Ae||mD(ce,Ae,DD(Ae))}function qF(ce,Ae,Ze){return Ze=typeof Ze=="function"?Ze:d,mD(ce,Ae,DD(Ae),Ze)}function ZF(ce){return HL(ce)&&ce!=+ce}function KF(ce){if(O$(ce))throw new VT(I);return BO(ce)}function QF(ce){return ce===null}function JF(ce){return ce==null}function HL(ce){return typeof ce=="number"||uN(ce)&&IN(ce)==ot}function oP(ce){if(!uN(ce)||IN(ce)!=Ne)return!1;var Ae=yP(ce);if(Ae===null)return!0;var Ze=tN.call(Ae,"constructor")&&Ae.constructor;return typeof Ze=="function"&&Ze instanceof Ze&&pP.call(Ze)==qR}var GD=aO?PN(aO):Qj;function eV(ce){return GL(ce)&&ce>=-H&&ce<=H}var YL=sO?PN(sO):Jj;function HP(ce){return typeof ce=="string"||!UT(ce)&&uN(ce)&&IN(ce)==Bt}function ON(ce){return typeof ce=="symbol"||uN(ce)&&IN(ce)==li}var Wk=oO?PN(oO):e$;function tV(ce){return ce===d}function rV(ce){return uN(ce)&&xN(ce)==Ot}function iV(ce){return uN(ce)&&IN(ce)==St}var nV=RP(yD),aV=RP(function(ce,Ae){return ce<=Ae});function XL(ce){if(!ce)return[];if(TN(ce))return HP(ce)?YN(ce):AN(ce);if(Xk&&ce[Xk])return BR(ce[Xk]());var Ae=xN(ce),Ze=Ae==Le?aD:Ae==oi?fP:Hk;return Ze(ce)}function ok(ce){if(!ce)return ce===0?ce:0;if(ce=GN(ce),ce===ee||ce===-ee){var Ae=ce<0?-1:1;return Ae*q}return ce===ce?ce:0}function GT(ce){var Ae=ok(ce),Ze=Ae%1;return Ae===Ae?Ze?Ae-Ze:Ae:0}function qL(ce){return ce?Ik(GT(ce),0,U):0}function GN(ce){if(typeof ce=="number")return ce;if(ON(ce))return J;if(cN(ce)){var Ae=typeof ce.valueOf=="function"?ce.valueOf():ce;ce=cN(Ae)?Ae+"":Ae}if(typeof ce!="string")return ce===0?ce:+ce;ce=hO(ce);var Ze=rN.test(ce);return Ze||iN.test(ce)?_R(ce.slice(2),Ze?2:8):KM.test(ce)?J:+ce}function ZL(ce){return QN(ce,CN(ce))}function sV(ce){return ce?Ik(GT(ce),-H,H):ce===0?ce:0}function JT(ce){return ce==null?"":DN(ce)}var oV=Vk(function(ce,Ae){if(aP(Ae)||TN(Ae)){QN(Ae,vN(Ae),ce);return}for(var Ze in Ae)tN.call(Ae,Ze)&&Jk(ce,Ze,Ae[Ze])}),KL=Vk(function(ce,Ae){QN(Ae,CN(Ae),ce)}),YP=Vk(function(ce,Ae,Ze,At){QN(Ae,CN(Ae),ce,At)}),lV=Vk(function(ce,Ae,Ze,At){QN(Ae,vN(Ae),ce,At)}),cV=nk(fD);function uV(ce,Ae){var Ze=Fk(ce);return Ae==null?Ze:TO(Ze,Ae)}var fV=YT(function(ce,Ae){ce=aN(ce);var Ze=-1,At=Ae.length,ui=At>2?Ae[2]:d;for(ui&&EN(Ae[0],Ae[1],ui)&&(At=1);++Ze<At;)for(var Nn=Ae[Ze],rM=CN(Nn),sM=-1,cM=rM.length;++sM<cM;){var CM=rM[sM],NM=ce[CM];(NM===d||qN(NM,jk[CM])&&!tN.call(ce,CM))&&(ce[CM]=Nn[CM])}return ce}),dV=YT(function(ce){return ce.push(d,pL),kN(QL,d,ce)});function hV(ce,Ae){return cO(ce,kT(Ae,3),KN)}function pV(ce,Ae){return cO(ce,kT(Ae,3),hD)}function gV(ce,Ae){return ce==null?ce:dD(ce,kT(Ae,3),CN)}function mV(ce,Ae){return ce==null?ce:OO(ce,kT(Ae,3),CN)}function vV(ce,Ae){return ce&&KN(ce,kT(Ae,3))}function yV(ce,Ae){return ce&&hD(ce,kT(Ae,3))}function bV(ce){return ce==null?[]:TP(ce,vN(ce))}function _V(ce){return ce==null?[]:TP(ce,CN(ce))}function WD(ce,Ae,Ze){var At=ce==null?d:Ek(ce,Ae);return At===d?Ze:At}function wV(ce,Ae){return ce!=null&&vL(ce,Ae,Gj)}function HD(ce,Ae){return ce!=null&&vL(ce,Ae,Wj)}var xV=cL(function(ce,Ae,Ze){Ae!=null&&typeof Ae.toString!="function"&&(Ae=gP.call(Ae)),ce[Ae]=Ze},XD(NN)),IV=cL(function(ce,Ae,Ze){Ae!=null&&typeof Ae.toString!="function"&&(Ae=gP.call(Ae)),tN.call(ce,Ae)?ce[Ae].push(Ze):ce[Ae]=[Ze]},kT),EV=YT(tP);function vN(ce){return TN(ce)?SO(ce):vD(ce)}function CN(ce){return TN(ce)?SO(ce,!0):t$(ce)}function MV(ce,Ae){var Ze={};return Ae=kT(Ae,3),KN(ce,function(At,ui,Nn){rk(Ze,Ae(At,ui,Nn),At)}),Ze}function SV(ce,Ae){var Ze={};return Ae=kT(Ae,3),KN(ce,function(At,ui,Nn){rk(Ze,ui,Ae(At,ui,Nn))}),Ze}var AV=Vk(function(ce,Ae,Ze){CP(ce,Ae,Ze)}),QL=Vk(function(ce,Ae,Ze,At){CP(ce,Ae,Ze,At)}),TV=nk(function(ce,Ae){var Ze={};if(ce==null)return Ze;var At=!1;Ae=lN(Ae,function(Nn){return Nn=mk(Nn,ce),At||(At=Nn.length>1),Nn}),QN(ce,kD(ce),Ze),At&&(Ze=FN(Ze,D|O|j,x$));for(var ui=Ae.length;ui--;)ID(Ze,Ae[ui]);return Ze});function CV(ce,Ae){return JL(ce,GP(kT(Ae)))}var NV=nk(function(ce,Ae){return ce==null?{}:i$(ce,Ae)});function JL(ce,Ae){if(ce==null)return{};var Ze=lN(kD(ce),function(At){return[At]});return Ae=kT(Ae),GO(ce,Ze,function(At,ui){return Ae(At,ui[0])})}function kV(ce,Ae,Ze){Ae=mk(Ae,ce);var At=-1,ui=Ae.length;for(ui||(ui=1,ce=d);++At<ui;){var Nn=ce==null?d:ce[JN(Ae[At])];Nn===d&&(At=ui,Nn=Ze),ce=sk(Nn)?Nn.call(ce):Nn}return ce}function PV(ce,Ae,Ze){return ce==null?ce:iP(ce,Ae,Ze)}function OV(ce,Ae,Ze,At){return At=typeof At=="function"?At:d,ce==null?ce:iP(ce,Ae,Ze,At)}var eR=dL(vN),tR=dL(CN);function LV(ce,Ae,Ze){var At=UT(ce),ui=At||yk(ce)||Wk(ce);if(Ae=kT(Ae,4),Ze==null){var Nn=ce&&ce.constructor;ui?Ze=At?new Nn:[]:cN(ce)?Ze=sk(Nn)?Fk(yP(ce)):{}:Ze={}}return(ui?jN:KN)(ce,function(rM,sM,cM){return Ae(Ze,rM,sM,cM)}),Ze}function RV(ce,Ae){return ce==null?!0:ID(ce,Ae)}function BV(ce,Ae,Ze){return ce==null?ce:qO(ce,Ae,SD(Ze))}function jV(ce,Ae,Ze,At){return At=typeof At=="function"?At:d,ce==null?ce:qO(ce,Ae,SD(Ze),At)}function Hk(ce){return ce==null?[]:nD(ce,vN(ce))}function $V(ce){return ce==null?[]:nD(ce,CN(ce))}function zV(ce,Ae,Ze){return Ze===d&&(Ze=Ae,Ae=d),Ze!==d&&(Ze=GN(Ze),Ze=Ze===Ze?Ze:0),Ae!==d&&(Ae=GN(Ae),Ae=Ae===Ae?Ae:0),Ik(GN(ce),Ae,Ze)}function FV(ce,Ae,Ze){return Ae=ok(Ae),Ze===d?(Ze=Ae,Ae=0):Ze=ok(Ze),ce=GN(ce),Hj(ce,Ae,Ze)}function VV(ce,Ae,Ze){if(Ze&&typeof Ze!="boolean"&&EN(ce,Ae,Ze)&&(Ae=Ze=d),Ze===d&&(typeof Ae=="boolean"?(Ze=Ae,Ae=d):typeof ce=="boolean"&&(Ze=ce,ce=d)),ce===d&&Ae===d?(ce=0,Ae=1):(ce=ok(ce),Ae===d?(Ae=ce,ce=0):Ae=ok(Ae)),ce>Ae){var At=ce;ce=Ae,Ae=At}if(Ze||ce%1||Ae%1){var ui=EO();return wN(ce+ui*(Ae-ce+bR("1e-"+((ui+"").length-1))),Ae)}return _D(ce,Ae)}var UV=Uk(function(ce,Ae,Ze){return Ae=Ae.toLowerCase(),ce+(Ze?rR(Ae):Ae)});function rR(ce){return YD(JT(ce).toLowerCase())}function iR(ce){return ce=JT(ce),ce&&ce.replace(C,PR).replace(cR,"")}function GV(ce,Ae,Ze){ce=JT(ce),Ae=DN(Ae);var At=ce.length;Ze=Ze===d?At:Ik(GT(Ze),0,At);var ui=Ze;return Ze-=Ae.length,Ze>=0&&ce.slice(Ze,ui)==Ae}function WV(ce){return ce=JT(ce),ce&&IM.test(ce)?ce.replace(fM,DR):ce}function HV(ce){return ce=JT(ce),ce&&FM.test(ce)?ce.replace(RM,"\\$&"):ce}var YV=Uk(function(ce,Ae,Ze){return ce+(Ze?"-":"")+Ae.toLowerCase()}),XV=Uk(function(ce,Ae,Ze){return ce+(Ze?" ":"")+Ae.toLowerCase()}),qV=sL("toLowerCase");function ZV(ce,Ae,Ze){ce=JT(ce),Ae=GT(Ae);var At=Ae?Rk(ce):0;if(!Ae||At>=Ae)return ce;var ui=(Ae-At)/2;return LP(xP(ui),Ze)+ce+LP(wP(ui),Ze)}function KV(ce,Ae,Ze){ce=JT(ce),Ae=GT(Ae);var At=Ae?Rk(ce):0;return Ae&&At<Ae?ce+LP(Ae-At,Ze):ce}function QV(ce,Ae,Ze){ce=JT(ce),Ae=GT(Ae);var At=Ae?Rk(ce):0;return Ae&&At<Ae?LP(Ae-At,Ze)+ce:ce}function JV(ce,Ae,Ze){return Ze||Ae==null?Ae=0:Ae&&(Ae=+Ae),aj(JT(ce).replace(xM,""),Ae||0)}function eU(ce,Ae,Ze){return(Ze?EN(ce,Ae,Ze):Ae===d)?Ae=1:Ae=GT(Ae),wD(JT(ce),Ae)}function tU(){var ce=arguments,Ae=JT(ce[0]);return ce.length<3?Ae:Ae.replace(ce[1],ce[2])}var rU=Uk(function(ce,Ae,Ze){return ce+(Ze?"_":"")+Ae.toLowerCase()});function iU(ce,Ae,Ze){return Ze&&typeof Ze!="number"&&EN(ce,Ae,Ze)&&(Ae=Ze=d),Ze=Ze===d?U:Ze>>>0,Ze?(ce=JT(ce),ce&&(typeof Ae=="string"||Ae!=null&&!GD(Ae))&&(Ae=DN(Ae),!Ae&&Lk(ce))?vk(YN(ce),0,Ze):ce.split(Ae,Ze)):[]}var nU=Uk(function(ce,Ae,Ze){return ce+(Ze?" ":"")+YD(Ae)});function aU(ce,Ae,Ze){return ce=JT(ce),Ze=Ze==null?0:Ik(GT(Ze),0,ce.length),Ae=DN(Ae),ce.slice(Ze,Ze+Ae.length)==Ae}function sU(ce,Ae,Ze){var At=vi.templateSettings;Ze&&EN(ce,Ae,Ze)&&(Ae=d),ce=JT(ce),Ae=YP({},Ae,At,hL);var ui=YP({},Ae.imports,At.imports,hL),Nn=vN(ui),rM=nD(ui,Nn),sM,cM,CM=0,NM=Ae.interpolate||L,LM="__p += '",XM=sD((Ae.escape||L).source+"|"+NM.source+"|"+(NM===TM?HM:L).source+"|"+(Ae.evaluate||L).source+"|$","g"),QM="//# sourceURL="+(tN.call(Ae,"sourceURL")?(Ae.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++pR+"]")+`
`;ce.replace(XM,function($T,XT,ZT,LN,MN,RN){return ZT||(ZT=LN),LM+=ce.slice(CM,RN).replace(F,OR),XT&&(sM=!0,LM+=`' +
__e(`+XT+`) +
'`),MN&&(cM=!0,LM+=`';
`+MN+`;
__p += '`),ZT&&(LM+=`' +
((__t = (`+ZT+`)) == null ? '' : __t) +
'`),CM=RN+$T.length,$T}),LM+=`';
`;var jT=tN.call(Ae,"variable")&&Ae.variable;if(!jT)LM=`with (obj) {
`+LM+`
}
`;else if(PM.test(jT))throw new VT(M);LM=(cM?LM.replace(uM,""):LM).replace(pM,"$1").replace(yM,"$1;"),LM="function("+(jT||"obj")+`) {
`+(jT?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(sM?", __e = _.escape":"")+(cM?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+LM+`return __p
}`;var HT=aR(function(){return QT(Nn,QM+"return "+LM).apply(d,rM)});if(HT.source=LM,UD(HT))throw HT;return HT}function oU(ce){return JT(ce).toLowerCase()}function lU(ce){return JT(ce).toUpperCase()}function cU(ce,Ae,Ze){if(ce=JT(ce),ce&&(Ze||Ae===d))return hO(ce);if(!ce||!(Ae=DN(Ae)))return ce;var At=YN(ce),ui=YN(Ae),Nn=pO(At,ui),rM=gO(At,ui)+1;return vk(At,Nn,rM).join("")}function uU(ce,Ae,Ze){if(ce=JT(ce),ce&&(Ze||Ae===d))return ce.slice(0,vO(ce)+1);if(!ce||!(Ae=DN(Ae)))return ce;var At=YN(ce),ui=gO(At,YN(Ae))+1;return vk(At,0,ui).join("")}function fU(ce,Ae,Ze){if(ce=JT(ce),ce&&(Ze||Ae===d))return ce.replace(xM,"");if(!ce||!(Ae=DN(Ae)))return ce;var At=YN(ce),ui=pO(At,YN(Ae));return vk(At,ui).join("")}function dU(ce,Ae){var Ze=ke,At=le;if(cN(Ae)){var ui="separator"in Ae?Ae.separator:ui;Ze="length"in Ae?GT(Ae.length):Ze,At="omission"in Ae?DN(Ae.omission):At}ce=JT(ce);var Nn=ce.length;if(Lk(ce)){var rM=YN(ce);Nn=rM.length}if(Ze>=Nn)return ce;var sM=Ze-Rk(At);if(sM<1)return At;var cM=rM?vk(rM,0,sM).join(""):ce.slice(0,sM);if(ui===d)return cM+At;if(rM&&(sM+=cM.length-sM),GD(ui)){if(ce.slice(sM).search(ui)){var CM,NM=cM;for(ui.global||(ui=sD(ui.source,JT(zM.exec(ui))+"g")),ui.lastIndex=0;CM=ui.exec(NM);)var LM=CM.index;cM=cM.slice(0,LM===d?sM:LM)}}else if(ce.indexOf(DN(ui),sM)!=sM){var XM=cM.lastIndexOf(ui);XM>-1&&(cM=cM.slice(0,XM))}return cM+At}function hU(ce){return ce=JT(ce),ce&&kM.test(ce)?ce.replace(gM,FR):ce}var pU=Uk(function(ce,Ae,Ze){return ce+(Ze?" ":"")+Ae.toUpperCase()}),YD=sL("toUpperCase");function nR(ce,Ae,Ze){return ce=JT(ce),Ae=Ze?d:Ae,Ae===d?RR(ce)?GR(ce):AR(ce):ce.match(Ae)||[]}var aR=YT(function(ce,Ae){try{return kN(ce,d,Ae)}catch(Ze){return UD(Ze)?Ze:new VT(Ze)}}),gU=nk(function(ce,Ae){return jN(Ae,function(Ze){Ze=JN(Ze),rk(ce,Ze,FD(ce[Ze],ce))}),ce});function mU(ce){var Ae=ce==null?0:ce.length,Ze=kT();return ce=Ae?lN(ce,function(At){if(typeof At[1]!="function")throw new $N(E);return[Ze(At[0]),At[1]]}):[],YT(function(At){for(var ui=-1;++ui<Ae;){var Nn=ce[ui];if(kN(Nn[0],this,At))return kN(Nn[1],this,At)}})}function vU(ce){return Fj(FN(ce,D))}function XD(ce){return function(){return ce}}function yU(ce,Ae){return ce==null||ce!==ce?Ae:ce}var bU=lL(),_U=lL(!0);function NN(ce){return ce}function qD(ce){return jO(typeof ce=="function"?ce:FN(ce,D))}function wU(ce){return zO(FN(ce,D))}function xU(ce,Ae){return FO(ce,FN(Ae,D))}var IU=YT(function(ce,Ae){return function(Ze){return tP(Ze,ce,Ae)}}),EU=YT(function(ce,Ae){return function(Ze){return tP(ce,Ze,Ae)}});function ZD(ce,Ae,Ze){var At=vN(Ae),ui=TP(Ae,At);Ze==null&&!(cN(Ae)&&(ui.length||!At.length))&&(Ze=Ae,Ae=ce,ce=this,ui=TP(Ae,vN(Ae)));var Nn=!(cN(Ze)&&"chain"in Ze)||!!Ze.chain,rM=sk(ce);return jN(ui,function(sM){var cM=Ae[sM];ce[sM]=cM,rM&&(ce.prototype[sM]=function(){var CM=this.__chain__;if(Nn||CM){var NM=ce(this.__wrapped__),LM=NM.__actions__=AN(this.__actions__);return LM.push({func:cM,args:arguments,thisArg:ce}),NM.__chain__=CM,NM}return cM.apply(ce,fk([this.value()],arguments))})}),ce}function MU(){return yN._===this&&(yN._=ZR),this}function KD(){}function SU(ce){return ce=GT(ce),YT(function(Ae){return VO(Ae,ce)})}var AU=TD(lN),TU=TD(lO),CU=TD(JP);function sR(ce){return LD(ce)?eD(JN(ce)):n$(ce)}function NU(ce){return function(Ae){return ce==null?d:Ek(ce,Ae)}}var kU=uL(),PU=uL(!0);function QD(){return[]}function JD(){return!1}function DU(){return{}}function OU(){return""}function LU(){return!0}function RU(ce,Ae){if(ce=GT(ce),ce<1||ce>H)return[];var Ze=U,At=wN(ce,U);Ae=kT(Ae),ce-=U;for(var ui=iD(At,Ae);++Ze<ce;)Ae(Ze);return ui}function BU(ce){return UT(ce)?lN(ce,JN):ON(ce)?[ce]:AN(SL(JT(ce)))}function jU(ce){var Ae=++XR;return JT(ce)+Ae}var $U=OP(function(ce,Ae){return ce+Ae},0),zU=CD("ceil"),FU=OP(function(ce,Ae){return ce/Ae},1),VU=CD("floor");function UU(ce){return ce&&ce.length?AP(ce,NN,pD):d}function GU(ce,Ae){return ce&&ce.length?AP(ce,kT(Ae,2),pD):d}function WU(ce){return fO(ce,NN)}function HU(ce,Ae){return fO(ce,kT(Ae,2))}function YU(ce){return ce&&ce.length?AP(ce,NN,yD):d}function XU(ce,Ae){return ce&&ce.length?AP(ce,kT(Ae,2),yD):d}var qU=OP(function(ce,Ae){return ce*Ae},1),ZU=CD("round"),KU=OP(function(ce,Ae){return ce-Ae},0);function QU(ce){return ce&&ce.length?rD(ce,NN):0}function JU(ce,Ae){return ce&&ce.length?rD(ce,kT(Ae,2)):0}return vi.after=_F,vi.ary=BL,vi.assign=oV,vi.assignIn=KL,vi.assignInWith=YP,vi.assignWith=lV,vi.at=cV,vi.before=jL,vi.bind=FD,vi.bindAll=gU,vi.bindKey=$L,vi.castArray=PF,vi.chain=OL,vi.chunk=F$,vi.compact=V$,vi.concat=U$,vi.cond=mU,vi.conforms=vU,vi.constant=XD,vi.countBy=Kz,vi.create=uV,vi.curry=zL,vi.curryRight=FL,vi.debounce=VL,vi.defaults=fV,vi.defaultsDeep=dV,vi.defer=wF,vi.delay=xF,vi.difference=G$,vi.differenceBy=W$,vi.differenceWith=H$,vi.drop=Y$,vi.dropRight=X$,vi.dropRightWhile=q$,vi.dropWhile=Z$,vi.fill=K$,vi.filter=Jz,vi.flatMap=rF,vi.flatMapDeep=iF,vi.flatMapDepth=nF,vi.flatten=NL,vi.flattenDeep=Q$,vi.flattenDepth=J$,vi.flip=IF,vi.flow=bU,vi.flowRight=_U,vi.fromPairs=ez,vi.functions=bV,vi.functionsIn=_V,vi.groupBy=aF,vi.initial=rz,vi.intersection=iz,vi.intersectionBy=nz,vi.intersectionWith=az,vi.invert=xV,vi.invertBy=IV,vi.invokeMap=oF,vi.iteratee=qD,vi.keyBy=lF,vi.keys=vN,vi.keysIn=CN,vi.map=FP,vi.mapKeys=MV,vi.mapValues=SV,vi.matches=wU,vi.matchesProperty=xU,vi.memoize=UP,vi.merge=AV,vi.mergeWith=QL,vi.method=IU,vi.methodOf=EU,vi.mixin=ZD,vi.negate=GP,vi.nthArg=SU,vi.omit=TV,vi.omitBy=CV,vi.once=EF,vi.orderBy=cF,vi.over=AU,vi.overArgs=MF,vi.overEvery=TU,vi.overSome=CU,vi.partial=VD,vi.partialRight=UL,vi.partition=uF,vi.pick=NV,vi.pickBy=JL,vi.property=sR,vi.propertyOf=NU,vi.pull=cz,vi.pullAll=PL,vi.pullAllBy=uz,vi.pullAllWith=fz,vi.pullAt=dz,vi.range=kU,vi.rangeRight=PU,vi.rearg=SF,vi.reject=hF,vi.remove=hz,vi.rest=AF,vi.reverse=$D,vi.sampleSize=gF,vi.set=PV,vi.setWith=OV,vi.shuffle=mF,vi.slice=pz,vi.sortBy=bF,vi.sortedUniq=wz,vi.sortedUniqBy=xz,vi.split=iU,vi.spread=TF,vi.tail=Iz,vi.take=Ez,vi.takeRight=Mz,vi.takeRightWhile=Sz,vi.takeWhile=Az,vi.tap=Vz,vi.throttle=CF,vi.thru=zP,vi.toArray=XL,vi.toPairs=eR,vi.toPairsIn=tR,vi.toPath=BU,vi.toPlainObject=ZL,vi.transform=LV,vi.unary=NF,vi.union=Tz,vi.unionBy=Cz,vi.unionWith=Nz,vi.uniq=kz,vi.uniqBy=Pz,vi.uniqWith=Dz,vi.unset=RV,vi.unzip=zD,vi.unzipWith=DL,vi.update=BV,vi.updateWith=jV,vi.values=Hk,vi.valuesIn=$V,vi.without=Oz,vi.words=nR,vi.wrap=kF,vi.xor=Lz,vi.xorBy=Rz,vi.xorWith=Bz,vi.zip=jz,vi.zipObject=$z,vi.zipObjectDeep=zz,vi.zipWith=Fz,vi.entries=eR,vi.entriesIn=tR,vi.extend=KL,vi.extendWith=YP,ZD(vi,vi),vi.add=$U,vi.attempt=aR,vi.camelCase=UV,vi.capitalize=rR,vi.ceil=zU,vi.clamp=zV,vi.clone=DF,vi.cloneDeep=LF,vi.cloneDeepWith=RF,vi.cloneWith=OF,vi.conformsTo=BF,vi.deburr=iR,vi.defaultTo=yU,vi.divide=FU,vi.endsWith=GV,vi.eq=qN,vi.escape=WV,vi.escapeRegExp=HV,vi.every=Qz,vi.find=eF,vi.findIndex=TL,vi.findKey=hV,vi.findLast=tF,vi.findLastIndex=CL,vi.findLastKey=pV,vi.floor=VU,vi.forEach=LL,vi.forEachRight=RL,vi.forIn=gV,vi.forInRight=mV,vi.forOwn=vV,vi.forOwnRight=yV,vi.get=WD,vi.gt=jF,vi.gte=$F,vi.has=wV,vi.hasIn=HD,vi.head=kL,vi.identity=NN,vi.includes=sF,vi.indexOf=tz,vi.inRange=FV,vi.invoke=EV,vi.isArguments=Ak,vi.isArray=UT,vi.isArrayBuffer=zF,vi.isArrayLike=TN,vi.isArrayLikeObject=fN,vi.isBoolean=FF,vi.isBuffer=yk,vi.isDate=VF,vi.isElement=UF,vi.isEmpty=GF,vi.isEqual=WF,vi.isEqualWith=HF,vi.isError=UD,vi.isFinite=YF,vi.isFunction=sk,vi.isInteger=GL,vi.isLength=WP,vi.isMap=WL,vi.isMatch=XF,vi.isMatchWith=qF,vi.isNaN=ZF,vi.isNative=KF,vi.isNil=JF,vi.isNull=QF,vi.isNumber=HL,vi.isObject=cN,vi.isObjectLike=uN,vi.isPlainObject=oP,vi.isRegExp=GD,vi.isSafeInteger=eV,vi.isSet=YL,vi.isString=HP,vi.isSymbol=ON,vi.isTypedArray=Wk,vi.isUndefined=tV,vi.isWeakMap=rV,vi.isWeakSet=iV,vi.join=sz,vi.kebabCase=YV,vi.last=UN,vi.lastIndexOf=oz,vi.lowerCase=XV,vi.lowerFirst=qV,vi.lt=nV,vi.lte=aV,vi.max=UU,vi.maxBy=GU,vi.mean=WU,vi.meanBy=HU,vi.min=YU,vi.minBy=XU,vi.stubArray=QD,vi.stubFalse=JD,vi.stubObject=DU,vi.stubString=OU,vi.stubTrue=LU,vi.multiply=qU,vi.nth=lz,vi.noConflict=MU,vi.noop=KD,vi.now=VP,vi.pad=ZV,vi.padEnd=KV,vi.padStart=QV,vi.parseInt=JV,vi.random=VV,vi.reduce=fF,vi.reduceRight=dF,vi.repeat=eU,vi.replace=tU,vi.result=kV,vi.round=ZU,vi.runInContext=lM,vi.sample=pF,vi.size=vF,vi.snakeCase=rU,vi.some=yF,vi.sortedIndex=gz,vi.sortedIndexBy=mz,vi.sortedIndexOf=vz,vi.sortedLastIndex=yz,vi.sortedLastIndexBy=bz,vi.sortedLastIndexOf=_z,vi.startCase=nU,vi.startsWith=aU,vi.subtract=KU,vi.sum=QU,vi.sumBy=JU,vi.template=sU,vi.times=RU,vi.toFinite=ok,vi.toInteger=GT,vi.toLength=qL,vi.toLower=oU,vi.toNumber=GN,vi.toSafeInteger=sV,vi.toString=JT,vi.toUpper=lU,vi.trim=cU,vi.trimEnd=uU,vi.trimStart=fU,vi.truncate=dU,vi.unescape=hU,vi.uniqueId=jU,vi.upperCase=pU,vi.upperFirst=YD,vi.each=LL,vi.eachRight=RL,vi.first=kL,ZD(vi,function(){var ce={};return KN(vi,function(Ae,Ze){tN.call(vi.prototype,Ze)||(ce[Ze]=Ae)}),ce}(),{chain:!1}),vi.VERSION=_,jN(["bind","bindKey","curry","curryRight","partial","partialRight"],function(ce){vi[ce].placeholder=vi}),jN(["drop","take"],function(ce,Ae){qT.prototype[ce]=function(Ze){Ze=Ze===d?1:gN(GT(Ze),0);var At=this.__filtered__&&!Ae?new qT(this):this.clone();return At.__filtered__?At.__takeCount__=wN(Ze,At.__takeCount__):At.__views__.push({size:wN(Ze,U),type:ce+(At.__dir__<0?"Right":"")}),At},qT.prototype[ce+"Right"]=function(Ze){return this.reverse()[ce](Ze).reverse()}}),jN(["filter","map","takeWhile"],function(ce,Ae){var Ze=Ae+1,At=Ze==k||Ze==z;qT.prototype[ce]=function(ui){var Nn=this.clone();return Nn.__iteratees__.push({iteratee:kT(ui,3),type:Ze}),Nn.__filtered__=Nn.__filtered__||At,Nn}}),jN(["head","last"],function(ce,Ae){var Ze="take"+(Ae?"Right":"");qT.prototype[ce]=function(){return this[Ze](1).value()[0]}}),jN(["initial","tail"],function(ce,Ae){var Ze="drop"+(Ae?"":"Right");qT.prototype[ce]=function(){return this.__filtered__?new qT(this):this[Ze](1)}}),qT.prototype.compact=function(){return this.filter(NN)},qT.prototype.find=function(ce){return this.filter(ce).head()},qT.prototype.findLast=function(ce){return this.reverse().find(ce)},qT.prototype.invokeMap=YT(function(ce,Ae){return typeof ce=="function"?new qT(this):this.map(function(Ze){return tP(Ze,ce,Ae)})}),qT.prototype.reject=function(ce){return this.filter(GP(kT(ce)))},qT.prototype.slice=function(ce,Ae){ce=GT(ce);var Ze=this;return Ze.__filtered__&&(ce>0||Ae<0)?new qT(Ze):(ce<0?Ze=Ze.takeRight(-ce):ce&&(Ze=Ze.drop(ce)),Ae!==d&&(Ae=GT(Ae),Ze=Ae<0?Ze.dropRight(-Ae):Ze.take(Ae-ce)),Ze)},qT.prototype.takeRightWhile=function(ce){return this.reverse().takeWhile(ce).reverse()},qT.prototype.toArray=function(){return this.take(U)},KN(qT.prototype,function(ce,Ae){var Ze=/^(?:filter|find|map|reject)|While$/.test(Ae),At=/^(?:head|last)$/.test(Ae),ui=vi[At?"take"+(Ae=="last"?"Right":""):Ae],Nn=At||/^find/.test(Ae);ui&&(vi.prototype[Ae]=function(){var rM=this.__wrapped__,sM=At?[1]:arguments,cM=rM instanceof qT,CM=sM[0],NM=cM||UT(rM),LM=function(XT){var ZT=ui.apply(vi,fk([XT],sM));return At&&XM?ZT[0]:ZT};NM&&Ze&&typeof CM=="function"&&CM.length!=1&&(cM=NM=!1);var XM=this.__chain__,QM=!!this.__actions__.length,jT=Nn&&!XM,HT=cM&&!QM;if(!Nn&&NM){rM=HT?rM:new qT(this);var $T=ce.apply(rM,sM);return $T.__actions__.push({func:zP,args:[LM],thisArg:d}),new zN($T,XM)}return jT&&HT?ce.apply(this,sM):($T=this.thru(LM),jT?At?$T.value()[0]:$T.value():$T)})}),jN(["pop","push","shift","sort","splice","unshift"],function(ce){var Ae=dP[ce],Ze=/^(?:push|sort|unshift)$/.test(ce)?"tap":"thru",At=/^(?:pop|shift)$/.test(ce);vi.prototype[ce]=function(){var ui=arguments;if(At&&!this.__chain__){var Nn=this.value();return Ae.apply(UT(Nn)?Nn:[],ui)}return this[Ze](function(rM){return Ae.apply(UT(rM)?rM:[],ui)})}}),KN(qT.prototype,function(ce,Ae){var Ze=vi[Ae];if(Ze){var At=Ze.name+"";tN.call(zk,At)||(zk[At]=[]),zk[At].push({name:Ae,func:Ze})}}),zk[DP(d,X).name]=[{name:"wrapper",func:d}],qT.prototype.clone=dj,qT.prototype.reverse=hj,qT.prototype.value=pj,vi.prototype.at=Uz,vi.prototype.chain=Gz,vi.prototype.commit=Wz,vi.prototype.next=Hz,vi.prototype.plant=Xz,vi.prototype.reverse=qz,vi.prototype.toJSON=vi.prototype.valueOf=vi.prototype.value=Zz,vi.prototype.first=vi.prototype.head,Xk&&(vi.prototype[Xk]=Yz),vi},Bk=WR();bk?((bk.exports=Bk)._=Bk,qP._=Bk):yN._=Bk}).call(commonjsGlobal$1)})(lodash,lodash.exports);var lodashExports=lodash.exports;class OffsetSettingInfoList{constructor(){aM(this,"offsetList",[])}checkLimit(f,d=0){const _=this.findExecutingFunctionOffsetInfo(f);return _.offset===LAST_OFFSET||(_.offset&&d>=DEFAULT_LIMITS?_.offset++:_.offset=LAST_OFFSET),_.offset}removeOffset(f){this.offsetList=this.offsetList.filter(d=>!lodashExports.isEqual(d.params,f))}offsetSettingInfo(f){if(!Object.keys(f.params).includes("needToAddData"))return LAST_OFFSET;f.offset||(f.offset=1);const d=this.findExecutingFunctionOffsetInfo(f);return d.offset===-1?(this.offsetList.push(f),DEFAULT_OFFSET):d.offset}findExecutingFunctionOffsetInfo(f){const d=this.offsetList.findIndex(_=>deepEquals(_.params,f.params));return d===-1?{offset:-1}:this.offsetList[d]}}function e(u){this.message=u}e.prototype=new Error,e.prototype.name="InvalidCharacterError";var r=typeof window<"u"&&window.atob&&window.atob.bind(window)||function(u){var f=String(u).replace(/=+$/,"");if(f.length%4==1)throw new e("'atob' failed: The string to be decoded is not correctly encoded.");for(var d,_,x=0,I=0,E="";_=f.charAt(I++);~_&&(d=x%4?64*d+_:_,x++%4)?E+=String.fromCharCode(255&d>>(-2*x&6)):0)_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(_);return E};function t(u){var f=u.replace(/-/g,"+").replace(/_/g,"/");switch(f.length%4){case 0:break;case 2:f+="==";break;case 3:f+="=";break;default:throw"Illegal base64url string!"}try{return function(d){return decodeURIComponent(r(d).replace(/(.)/g,function(_,x){var I=x.charCodeAt(0).toString(16).toUpperCase();return I.length<2&&(I="0"+I),"%"+I}))}(f)}catch{return r(f)}}function n(u){this.message=u}function o(u,f){if(typeof u!="string")throw new n("Invalid token specified");var d=(f=f||{}).header===!0?0:1;try{return JSON.parse(t(u.split(".")[d]))}catch(_){throw new n("Invalid token specified: "+_.message)}}n.prototype=new Error,n.prototype.name="InvalidTokenError";class TokenExpiredError extends Error{constructor(f){super(f==="refresh_expired"?"refresh token is expired":"access token is expired"),this.name=f}}const getLocalStorage=()=>{const u=useGlobalState();try{try{return JSON.parse(u.value)}catch{return u.value}}catch{return!1}},setLocalStorage=({key:u,value:f})=>{let d=f;if(u===WEPIN_TOKEN&&f.access){const _=f.access;d={refreshToken:f?.refresh,accessToken:_}}typeof d!="string"&&(d=JSON.stringify(d));try{const _=useGlobalState();return _.value=d,!0}catch{return!1}},isExpiredAccessToken=()=>{const u=getLocalStorage()?.accessToken;return u?o(u)?.exp<=Math.floor(Date.now()/1e3):!1},isExpiredRefreshToken=()=>{const u=getLocalStorage()?.refreshToken;return u?o(u)?.exp<=Math.floor(Date.now()/1e3):!1},isTokenExpired=(u,f)=>{if(!(u!=="/"&&(WEPIN_TOKENLESS_URL.find(d=>u.includes(d))||u.startsWith(WEPIN_PROMOTION_URL)))){if(isExpiredRefreshToken())throw new TokenExpiredError("refresh_expired");if(isExpiredAccessToken())throw new TokenExpiredError("access_expired")}};function formatDecimal(u,f=6){if(!u||u.includes(".")===!1)return u??"";const d=u.split(".");return d[1]=d[1].slice(0,f),d.join(".")}class UserAPI{constructor(f){aM(this,"basePath","/user");this.fetcher=f}async change2FAState(f){const d=new APIRequest({url:this.basePath+"/2fa/state",method:"PATCH",data:{state:f},withCredentials:!0});return(await this.fetcher.send(d)).data}async getOtpStatus(){const f=new APIRequest({url:this.basePath+"/2fa/status",method:"GET",withCredentials:!0});return(await this.fetcher.send(f)).data}async verifyOtpCode(f){const d=new APIRequest({url:this.basePath+"/2fa/verify",method:"POST",data:f,withCredentials:!0});return(await this.fetcher.send(d)).data}async startSetOtp(){const f=new APIRequest({url:this.basePath+"/2fa",method:"POST",withCredentials:!0});return(await this.fetcher.send(f)).data}async refreshOtpRecoveryCode(f){const d=new APIRequest({url:this.basePath+"/2fa/recovery",method:"PATCH",data:f,withCredentials:!0});return(await this.fetcher.send(d)).data}async unSetOtp(f){const d=new APIRequest({url:this.basePath+"/2fa",method:"DELETE",urlParams:f,withCredentials:!0});return(await this.fetcher.send(d)).data}async getRecoveryCode(f){const d=new APIRequest({url:this.basePath+"/2fa/recovery",method:"GET",urlParams:f,withCredentials:!0});return(await this.fetcher.send(d)).data}async login(f){const d=new APIRequest({url:this.basePath+"/login",method:"POST",data:{idToken:f.idToken},withCredentials:!0});return(await this.fetcher.send(d,{ignoreCheckToken:!0})).data}async checkEmailExist(f){const d=new APIRequest({url:this.basePath+"/exist",method:"GET",urlParams:f,withCredentials:!0});return(await this.fetcher.send(d)).data}async verify(f){const d=new APIRequest({url:this.basePath+"/verify",method:"POST",data:f,withCredentials:!0});return(await this.fetcher.send(d)).data}async getInfo(){const f=new APIRequest({url:this.basePath+"/detail",method:"GET",withCredentials:!0});return(await this.fetcher.send(f)).data}async logout(){const f=new APIRequest({url:this.basePath+"/logout",method:"POST",withCredentials:!0});return(await this.fetcher.send(f)).data}async getPubKey(){const f=new APIRequest({url:this.basePath+"/pubkey",method:"GET",withCredentials:!0});return(await this.fetcher.send(f)).data}async updateLocale(f){const d=new APIRequest({url:this.basePath+"/set-locale",method:"PATCH",data:f,withCredentials:!0});return(await this.fetcher.send(d)).data}async refreshAccessToken(){const f=new APIRequest({url:this.basePath+"/access-token",method:"GET",urlParams:{refresh_token:getLocalStorage()?.refreshToken},withCredentials:!0});return(await this.fetcher.send(f,{ignoreCheckToken:!0})).data}async updateTermsAccepted(f){const d=new APIRequest({url:this.basePath+"/terms-accepted",method:"PATCH",data:f,withCredentials:!0});return(await this.fetcher.send(d)).data}async getTermsAccepted(){const f=new APIRequest({url:this.basePath+"/terms-accepted",method:"GET",withCredentials:!0});return(await this.fetcher.send(f)).data}async getUserPasswordState(f){const d=new APIRequest({url:this.basePath+`/password-state?email=${f.email}`,method:"GET",withCredentials:!0});return(await this.fetcher.send(d)).data}async updateUser(f){const d=new APIRequest({url:`${this.basePath}/${f.localeId}`,method:"PATCH",data:f,withCredentials:!0});return(await this.fetcher.send(d)).data}async updateUserPasswordState(f){const d=new APIRequest({url:`${this.basePath}/password-state`,method:"PATCH",data:f,withCredentials:!0});return(await this.fetcher.send(d)).data}async updateUserProfileImage(f){const d=new APIRequest({url:`${this.basePath}/profile-image`,method:"PATCH",data:f,withCredentials:!0});return(await this.fetcher.send(d)).data}async oAuth(f,d){const _=new APIRequest({url:this.basePath+`/auth/${d.provider}`,method:"GET",urlParams:f,withCredentials:!0});return(await this.fetcher.send(_,{ignoreCheckToken:!0})).data}}new Date().toISOString(),new Date().toISOString(),dist$1.WalletState.created,dist$1.WalletPinState.normal,mockUser.id;new Date().toISOString(),new Date().toISOString(),dist$1.WalletState.created,dist$1.WalletPinState.normal,mockUser.id;class WalletAPI{constructor(f){aM(this,"basePath","/wallet");this.fetcher=f}async createWallet(f){const d=new APIRequest({url:`${this.basePath}/create`,method:"POST",data:f,withCredentials:!0});return(await this.fetcher.send(d)).data}async backupWallet(f){const d=new APIRequest({url:`${this.basePath}/backup`,method:"POST",data:f,withCredentials:!0});return(await this.fetcher.send(d)).data}async updateWallet(f,d){const _=new APIRequest({url:`${this.basePath}/${f.walletId}/modify`,method:"PATCH",data:d,withCredentials:!0});return(await this.fetcher.send(_)).data}async getWalletInfo(f){const d=new APIRequest({url:`${this.basePath}/${f.walletId}`,method:"GET",withCredentials:!0});return(await this.fetcher.send(d)).data}async getWalletList(f){const d=new APIRequest({url:`${this.basePath}/`,method:"GET",urlParams:f,withCredentials:!0});return(await this.fetcher.send(d)).data}async deleteWallet(f,d){const _=new APIRequest({url:`${this.basePath}/${f.walletId}`,method:"DELETE",data:d,withCredentials:!0});return(await this.fetcher.send(_)).data}async getWalletCoreKeyInfo(f){const d=new APIRequest({url:`${this.basePath}/keyinfo/${f.id}`,method:"GET",withCredentials:!0});return(await this.fetcher.send(d)).data}async resetPinTryCount(f){const d=new APIRequest({url:`${this.basePath}/resetpin/${f.id}`,method:"GET"});return(await this.fetcher.send(d)).data}async verifyPin(f){const d=new APIRequest({url:`${this.basePath}/verifypin`,method:"POST",data:f});return(await this.fetcher.send(d)).data}async updateWalletState(f){const d=new APIRequest({url:`${this.basePath}/state`,method:"PATCH",data:f});return(await this.fetcher.send(d)).data}async changePin(f){const d=new APIRequest({url:`${this.basePath}/changePin`,method:"PATCH",data:f});return(await this.fetcher.send(d)).data}}const changePinRoutes=[{path:":walletId/change/pin",name:"change_pin",component:()=>__vitePreload(()=>import("./ChangePinMain-7rGLeCCx.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8])),meta:{PageTitle:"wallet_manage.change_pin.title"}},{path:":walletId/change/pin/complete",name:"change_pin_complete",component:()=>__vitePreload(()=>import("./ChangePinComplete-4xLrV9sE.js"),__vite__mapDeps([9,10])),meta:{PageTitle:"wallet_manage.change_pin.title"}}],droplinkRoutes=[{path:"campaign/:id",name:"campaign_detail",component:()=>__vitePreload(()=>import("./CampaignDetailView-MKt1QN0T.js"),__vite__mapDeps([11,12,6,13,14,15])),meta:{isDynamicTitle:!0}}],hublinkRoutes=[{path:"/hublink/participate",name:"nft_event_participate",component:()=>__vitePreload(()=>import("./PromotionParticipate-6AoMpEUT.js"),__vite__mapDeps([16,17,18,19,20,14,21,22,23,24,25]))},{path:"/hublink/middleware",name:"nft_event_middleware",component:()=>__vitePreload(()=>import("./PromotionMiddleware-ucXWTom9.js"),__vite__mapDeps([26,18,19,20,14,21,22]))},{path:"/hublink/attend_duplicated",name:"nft_event_duplicate",component:()=>__vitePreload(()=>import("./PromotionDupAttend-syx7OGxR.js"),__vite__mapDeps([27,18,28,24,29]))},{path:"/hublink/invalid_quantity",name:"nft_event_quantity",component:()=>__vitePreload(()=>import("./PromotionInvalidQuantity-psIZUUIl.js"),__vite__mapDeps([30,31,18,19,20,14,21,22,24,32]))},{path:"/hublink/attend_complete",name:"nft_event_attended",component:()=>__vitePreload(()=>import("./PromotionAttendComplete-l4HB4UMQ.js"),__vite__mapDeps([33,31,18,28,24,21,34]))},{path:"/hublink/already_minted",name:"nft_event_minted",component:()=>__vitePreload(()=>import("./PromotionAlreadyMinted-TSkS98sT.js"),__vite__mapDeps([35,31,18,24,36]))},{path:"/hublink/mint_complete",name:"nft_event_completed",component:()=>__vitePreload(()=>import("./PromotionMintComplete-vDBSIbtQ.js"),__vite__mapDeps([37,38,18,24,21,39]))},{path:"/droplink/campaign/:id",name:"campaign_landing",component:()=>__vitePreload(()=>import("./CampaignLandingView-XdHP8tBD.js"),__vite__mapDeps([40,38,41,6,17,18,19,20,14,21,22,23,13,12,42]))},{path:"/droplink/campaign/:id/quest",name:"quest_main",component:()=>__vitePreload(()=>import("./CampaignQuestMain-DR4YoIw2.js"),__vite__mapDeps([43,18,12,14,44])),children:[{path:"attend",name:"quest_attend",component:()=>__vitePreload(()=>import("./CampaignQuestAttend-xTMcaxAE.js"),__vite__mapDeps([45,12,14,46]))}]},{path:"/droplink/campaign/:id/quest/complete",name:"quest_complete",component:()=>__vitePreload(()=>import("./CampaignQuestComplete-Cf4qvRid.js"),__vite__mapDeps([47,18,19,20,14,21,22,12,48]))},{path:"/droplink/campaign/:id/reward",name:"campaign_reward",component:()=>__vitePreload(()=>import("./CampaignReward-Oz6RXGIF.js"),__vite__mapDeps([49,38,50,6,18,12,14,51]))},{path:"/droplink/campaign/:id/signup",name:"campaign_signup",component:()=>__vitePreload(()=>import("./CampaignSignupMain-ek4om3w1.js"),__vite__mapDeps([52,18,19,20,14,21,22,53])),children:[{path:"login_select",name:"campaign_signup_select",component:()=>__vitePreload(()=>import("./CampaignSignupSelector-xZuQ8roE.js"),__vite__mapDeps([54,18,19,20,14,21,22,55,56]))},{path:"set_password",name:"campaign_signup_with_email_set_password",component:()=>__vitePreload(()=>import("./CampaignSignupSetPassword-WFQXl-yf.js"),__vite__mapDeps([57,58,31,18,21,22,59,19,20,14,60]))},{path:"set_pin",name:"campaign_signup_with_email_set_pin",component:()=>__vitePreload(()=>import("./CampaignSignupSetPin-N_KjnIHX.js"),__vite__mapDeps([61,18,19,20,14,21,22,23,62]))},{path:"create_account",name:"campaign_signup_create_account",component:()=>__vitePreload(()=>import("./CampaignSignupCreateAccount-HhjzmpqT.js"),__vite__mapDeps([63,5,6,18,19,20,14,21,22,64]))}]},{path:"/droplink/campaign/:id/check_email",name:"campaign_check_email",component:()=>__vitePreload(()=>import("./CampaignCheckEmail-jL4WrEzw.js"),__vite__mapDeps([65,18,28,22,66]))},{path:"/droplink/campaign/:id/check_set_pin",name:"campaign_check_set_pin",component:()=>__vitePreload(()=>import("./CampaignCheckSetPin-TWwkq8KN.js"),__vite__mapDeps([67,38,50,18,68]))},{path:"/droplink/campaign/:id/already_rewarded",name:"campaign_already_rewarded",component:()=>__vitePreload(()=>import("./CampaignAlreadyRewarded-QG0AiQgl.js"),__vite__mapDeps([69,38,41,18,70]))}];var _a$1;const isClient=typeof window<"u",isFunction=u=>typeof u=="function",isString=u=>typeof u=="string",noop$3=()=>{};isClient&&((_a$1=window?.navigator)!=null&&_a$1.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function resolveUnref(u){return typeof u=="function"?u():unref(u)}function createFilterWrapper(u,f){function d(..._){return new Promise((x,I)=>{Promise.resolve(u(()=>f.apply(this,_),{fn:f,thisArg:this,args:_})).then(x).catch(I)})}return d}const bypassFilter=u=>u();function debounceFilter(u,f={}){let d,_,x=noop$3;const I=M=>{clearTimeout(M),x(),x=noop$3};return M=>{const S=resolveUnref(u),A=resolveUnref(f.maxWait);return d&&I(d),S<=0||A!==void 0&&A<=0?(_&&(I(_),_=null),Promise.resolve(M())):new Promise((T,D)=>{x=f.rejectOnCancel?D:T,A&&!_&&(_=setTimeout(()=>{d&&I(d),_=null,T(M())},A)),d=setTimeout(()=>{_&&I(_),_=null,T(M())},S)})}}function throttleFilter(u,f=!0,d=!0,_=!1){let x=0,I,E=!0,M=noop$3,S;const A=()=>{I&&(clearTimeout(I),I=void 0,M(),M=noop$3)};return D=>{const O=resolveUnref(u),j=Date.now()-x,$=()=>S=D();return A(),O<=0?(x=Date.now(),$()):(j>O&&(d||!E)?(x=Date.now(),$()):f&&(S=new Promise((W,Q)=>{M=_?Q:W,I=setTimeout(()=>{x=Date.now(),E=!0,W($()),A()},Math.max(0,O-j))})),!d&&!I&&(I=setTimeout(()=>E=!0,O)),E=!1,S)}}function pausableFilter(u=bypassFilter){const f=ref(!0);function d(){f.value=!1}function _(){f.value=!0}const x=(...I)=>{f.value&&u(...I)};return{isActive:readonly(f),pause:d,resume:_,eventFilter:x}}function identity(u){return u}function increaseWithUnit(u,f){var d;if(typeof u=="number")return u+f;const _=((d=u.match(/^-?[0-9]+\.?[0-9]*/))==null?void 0:d[0])||"",x=u.slice(_.length),I=parseFloat(_)+f;return Number.isNaN(I)?u:I+x}function tryOnScopeDispose(u){return getCurrentScope()?(onScopeDispose(u),!0):!1}function createGlobalState(u){let f=!1,d;const _=effectScope(!0);return()=>(f||(d=_.run(u),f=!0),d)}function useDebounceFn(u,f=200,d={}){return createFilterWrapper(debounceFilter(f,d),u)}function refDebounced(u,f=200,d={}){const _=ref(u.value),x=useDebounceFn(()=>{_.value=u.value},f,d);return watch(u,()=>x()),_}function useThrottleFn(u,f=200,d=!1,_=!0,x=!1){return createFilterWrapper(throttleFilter(f,d,_,x),u)}function resolveRef(u){return typeof u=="function"?computed(u):ref(u)}function tryOnMounted(u,f=!0){getCurrentInstance()?onMounted(u):f?u():nextTick$2(u)}function useTimeoutFn(u,f,d={}){const{immediate:_=!0}=d,x=ref(!1);let I=null;function E(){I&&(clearTimeout(I),I=null)}function M(){x.value=!1,E()}function S(...A){E(),x.value=!0,I=setTimeout(()=>{x.value=!1,I=null,u(...A)},resolveUnref(f))}return _&&(x.value=!0,isClient&&S()),tryOnScopeDispose(M),{isPending:readonly(x),start:S,stop:M}}var __getOwnPropSymbols$6=Object.getOwnPropertySymbols,__hasOwnProp$6=Object.prototype.hasOwnProperty,__propIsEnum$6=Object.prototype.propertyIsEnumerable,__objRest$5=(u,f)=>{var d={};for(var _ in u)__hasOwnProp$6.call(u,_)&&f.indexOf(_)<0&&(d[_]=u[_]);if(u!=null&&__getOwnPropSymbols$6)for(var _ of __getOwnPropSymbols$6(u))f.indexOf(_)<0&&__propIsEnum$6.call(u,_)&&(d[_]=u[_]);return d};function watchWithFilter(u,f,d={}){const _=d,{eventFilter:x=bypassFilter}=_,I=__objRest$5(_,["eventFilter"]);return watch(u,createFilterWrapper(x,f),I)}var __defProp$2=Object.defineProperty,__defProps$2$1=Object.defineProperties,__getOwnPropDescs$2$1=Object.getOwnPropertyDescriptors,__getOwnPropSymbols$2=Object.getOwnPropertySymbols,__hasOwnProp$2=Object.prototype.hasOwnProperty,__propIsEnum$2=Object.prototype.propertyIsEnumerable,__defNormalProp$2=(u,f,d)=>f in u?__defProp$2(u,f,{enumerable:!0,configurable:!0,writable:!0,value:d}):u[f]=d,__spreadValues$2=(u,f)=>{for(var d in f||(f={}))__hasOwnProp$2.call(f,d)&&__defNormalProp$2(u,d,f[d]);if(__getOwnPropSymbols$2)for(var d of __getOwnPropSymbols$2(f))__propIsEnum$2.call(f,d)&&__defNormalProp$2(u,d,f[d]);return u},__spreadProps$2$1=(u,f)=>__defProps$2$1(u,__getOwnPropDescs$2$1(f)),__objRest$1=(u,f)=>{var d={};for(var _ in u)__hasOwnProp$2.call(u,_)&&f.indexOf(_)<0&&(d[_]=u[_]);if(u!=null&&__getOwnPropSymbols$2)for(var _ of __getOwnPropSymbols$2(u))f.indexOf(_)<0&&__propIsEnum$2.call(u,_)&&(d[_]=u[_]);return d};function watchPausable(u,f,d={}){const _=d,{eventFilter:x}=_,I=__objRest$1(_,["eventFilter"]),{eventFilter:E,pause:M,resume:S,isActive:A}=pausableFilter(x);return{stop:watchWithFilter(u,f,__spreadProps$2$1(__spreadValues$2({},I),{eventFilter:E})),pause:M,resume:S,isActive:A}}function unrefElement(u){var f;const d=resolveUnref(u);return(f=d?.$el)!=null?f:d}const defaultWindow=isClient?window:void 0,defaultNavigator=isClient?window.navigator:void 0;function useEventListener$1(...u){let f,d,_,x;if(isString(u[0])||Array.isArray(u[0])?([d,_,x]=u,f=defaultWindow):[f,d,_,x]=u,!f)return noop$3;Array.isArray(d)||(d=[d]),Array.isArray(_)||(_=[_]);const I=[],E=()=>{I.forEach(T=>T()),I.length=0},M=(T,D,O,j)=>(T.addEventListener(D,O,j),()=>T.removeEventListener(D,O,j)),S=watch(()=>[unrefElement(f),resolveUnref(x)],([T,D])=>{E(),T&&I.push(...d.flatMap(O=>_.map(j=>M(T,O,j,D))))},{immediate:!0,flush:"post"}),A=()=>{S(),E()};return tryOnScopeDispose(A),A}function useSupported(u,f=!1){const d=ref(),_=()=>d.value=!!u();return _(),tryOnMounted(_,f),d}function useMediaQuery(u,f={}){const{window:d=defaultWindow}=f,_=useSupported(()=>d&&"matchMedia"in d&&typeof d.matchMedia=="function");let x;const I=ref(!1),E=()=>{x&&("removeEventListener"in x?x.removeEventListener("change",M):x.removeListener(M))},M=()=>{_.value&&(E(),x=d.matchMedia(resolveRef(u).value),I.value=x.matches,"addEventListener"in x?x.addEventListener("change",M):x.addListener(M))};return watchEffect(M),tryOnScopeDispose(()=>E()),I}var __defProp$m=Object.defineProperty,__getOwnPropSymbols$o=Object.getOwnPropertySymbols,__hasOwnProp$o=Object.prototype.hasOwnProperty,__propIsEnum$o=Object.prototype.propertyIsEnumerable,__defNormalProp$m=(u,f,d)=>f in u?__defProp$m(u,f,{enumerable:!0,configurable:!0,writable:!0,value:d}):u[f]=d,__spreadValues$m=(u,f)=>{for(var d in f||(f={}))__hasOwnProp$o.call(f,d)&&__defNormalProp$m(u,d,f[d]);if(__getOwnPropSymbols$o)for(var d of __getOwnPropSymbols$o(f))__propIsEnum$o.call(f,d)&&__defNormalProp$m(u,d,f[d]);return u};function useBreakpoints(u,f={}){function d(M,S){let A=u[M];return S!=null&&(A=increaseWithUnit(A,S)),typeof A=="number"&&(A=`${A}px`),A}const{window:_=defaultWindow}=f;function x(M){return _?_.matchMedia(M).matches:!1}const I=M=>useMediaQuery(`(min-width: ${d(M)})`,f),E=Object.keys(u).reduce((M,S)=>(Object.defineProperty(M,S,{get:()=>I(S),enumerable:!0,configurable:!0}),M),{});return __spreadValues$m({greater(M){return useMediaQuery(`(min-width: ${d(M,.1)})`,f)},greaterOrEqual:I,smaller(M){return useMediaQuery(`(max-width: ${d(M,-.1)})`,f)},smallerOrEqual(M){return useMediaQuery(`(max-width: ${d(M)})`,f)},between(M,S){return useMediaQuery(`(min-width: ${d(M)}) and (max-width: ${d(S,-.1)})`,f)},isGreater(M){return x(`(min-width: ${d(M,.1)})`)},isGreaterOrEqual(M){return x(`(min-width: ${d(M)})`)},isSmaller(M){return x(`(max-width: ${d(M,-.1)})`)},isSmallerOrEqual(M){return x(`(max-width: ${d(M)})`)},isInBetween(M,S){return x(`(min-width: ${d(M)}) and (max-width: ${d(S,-.1)})`)}},E)}function useClipboard(u={}){const{navigator:f=defaultNavigator,read:d=!1,source:_,copiedDuring:x=1500,legacy:I=!1}=u,E=["copy","cut"],M=useSupported(()=>f&&"clipboard"in f),S=computed(()=>M.value||I),A=ref(""),T=ref(!1),D=useTimeoutFn(()=>T.value=!1,x);function O(){M.value?f.clipboard.readText().then(Q=>{A.value=Q}):A.value=W()}if(S.value&&d)for(const Q of E)useEventListener$1(Q,O);async function j(Q=resolveUnref(_)){S.value&&Q!=null&&(M.value?await f.clipboard.writeText(Q):$(Q),A.value=Q,T.value=!0,D.start())}function $(Q){const X=document.createElement("textarea");X.value=Q??"",X.style.position="absolute",X.style.opacity="0",document.body.appendChild(X),X.select(),document.execCommand("copy"),X.remove()}function W(){var Q,X,Y;return(Y=(X=(Q=document?.getSelection)==null?void 0:Q.call(document))==null?void 0:X.toString())!=null?Y:""}return{isSupported:S,text:A,copied:T,copy:j}}const _global=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof _global$2<"u"?_global$2:typeof self<"u"?self:{},globalKey="__vueuse_ssr_handlers__";_global[globalKey]=_global[globalKey]||{};const handlers=_global[globalKey];function getSSRHandler(u,f){return handlers[u]||f}function guessSerializerType(u){return u==null?"any":u instanceof Set?"set":u instanceof Map?"map":u instanceof Date?"date":typeof u=="boolean"?"boolean":typeof u=="string"?"string":typeof u=="object"?"object":Number.isNaN(u)?"any":"number"}var __defProp$k=Object.defineProperty,__getOwnPropSymbols$m=Object.getOwnPropertySymbols,__hasOwnProp$m=Object.prototype.hasOwnProperty,__propIsEnum$m=Object.prototype.propertyIsEnumerable,__defNormalProp$k=(u,f,d)=>f in u?__defProp$k(u,f,{enumerable:!0,configurable:!0,writable:!0,value:d}):u[f]=d,__spreadValues$k=(u,f)=>{for(var d in f||(f={}))__hasOwnProp$m.call(f,d)&&__defNormalProp$k(u,d,f[d]);if(__getOwnPropSymbols$m)for(var d of __getOwnPropSymbols$m(f))__propIsEnum$m.call(f,d)&&__defNormalProp$k(u,d,f[d]);return u};const StorageSerializers={boolean:{read:u=>u==="true",write:u=>String(u)},object:{read:u=>JSON.parse(u),write:u=>JSON.stringify(u)},number:{read:u=>Number.parseFloat(u),write:u=>String(u)},any:{read:u=>u,write:u=>String(u)},string:{read:u=>u,write:u=>String(u)},map:{read:u=>new Map(JSON.parse(u)),write:u=>JSON.stringify(Array.from(u.entries()))},set:{read:u=>new Set(JSON.parse(u)),write:u=>JSON.stringify(Array.from(u))},date:{read:u=>new Date(u),write:u=>u.toISOString()}},customStorageEventName="vueuse-storage";function useStorage(u,f,d,_={}){var x;const{flush:I="pre",deep:E=!0,listenToStorageChanges:M=!0,writeDefaults:S=!0,mergeDefaults:A=!1,shallow:T,window:D=defaultWindow,eventFilter:O,onError:j=de=>{console.error(de)}}=_,$=(T?shallowRef:ref)(f);if(!d)try{d=getSSRHandler("getDefaultStorage",()=>{var de;return(de=defaultWindow)==null?void 0:de.localStorage})()}catch(de){j(de)}if(!d)return $;const W=resolveUnref(f),Q=guessSerializerType(W),X=(x=_.serializer)!=null?x:StorageSerializers[Q],{pause:Y,resume:ie}=watchPausable($,()=>oe($.value),{flush:I,deep:E,eventFilter:O});return D&&M&&(useEventListener$1(D,"storage",ze),useEventListener$1(D,customStorageEventName,be)),ze(),$;function oe(de){try{if(de==null)d.removeItem(u);else{const Ce=X.write(de),ke=d.getItem(u);ke!==Ce&&(d.setItem(u,Ce),D&&D.dispatchEvent(new CustomEvent(customStorageEventName,{detail:{key:u,oldValue:ke,newValue:Ce,storageArea:d}})))}}catch(Ce){j(Ce)}}function ge(de){const Ce=de?de.newValue:d.getItem(u);if(Ce==null)return S&&W!==null&&d.setItem(u,X.write(W)),W;if(!de&&A){const ke=X.read(Ce);return isFunction(A)?A(ke,W):Q==="object"&&!Array.isArray(ke)?__spreadValues$k(__spreadValues$k({},W),ke):ke}else return typeof Ce!="string"?Ce:X.read(Ce)}function be(de){ze(de.detail)}function ze(de){if(!(de&&de.storageArea!==d)){if(de&&de.key==null){$.value=W;return}if(!(de&&de.key!==u)){Y();try{$.value=ge(de)}catch(Ce){j(Ce)}finally{de?nextTick$2(ie):ie()}}}}}var __getOwnPropSymbols$g=Object.getOwnPropertySymbols,__hasOwnProp$g=Object.prototype.hasOwnProperty,__propIsEnum$g=Object.prototype.propertyIsEnumerable,__objRest$2=(u,f)=>{var d={};for(var _ in u)__hasOwnProp$g.call(u,_)&&f.indexOf(_)<0&&(d[_]=u[_]);if(u!=null&&__getOwnPropSymbols$g)for(var _ of __getOwnPropSymbols$g(u))f.indexOf(_)<0&&__propIsEnum$g.call(u,_)&&(d[_]=u[_]);return d};function useResizeObserver(u,f,d={}){const _=d,{window:x=defaultWindow}=_,I=__objRest$2(_,["window"]);let E;const M=useSupported(()=>x&&"ResizeObserver"in x),S=()=>{E&&(E.disconnect(),E=void 0)},A=watch(()=>unrefElement(u),D=>{S(),M.value&&x&&D&&(E=new ResizeObserver(f),E.observe(D,I))},{immediate:!0,flush:"post"}),T=()=>{S(),A()};return tryOnScopeDispose(T),{isSupported:M,stop:T}}const ARRIVED_STATE_THRESHOLD_PIXELS=1;function useScroll(u,f={}){const{throttle:d=0,idle:_=200,onStop:x=noop$3,onScroll:I=noop$3,offset:E={left:0,right:0,top:0,bottom:0},eventListenerOptions:M={capture:!1,passive:!0},behavior:S="auto"}=f,A=ref(0),T=ref(0),D=computed({get(){return A.value},set(oe){j(oe,void 0)}}),O=computed({get(){return T.value},set(oe){j(void 0,oe)}});function j(oe,ge){var be,ze,de;const Ce=resolveUnref(u);Ce&&((de=Ce instanceof Document?document.body:Ce)==null||de.scrollTo({top:(be=resolveUnref(ge))!=null?be:O.value,left:(ze=resolveUnref(oe))!=null?ze:D.value,behavior:resolveUnref(S)}))}const $=ref(!1),W=reactive({left:!0,right:!1,top:!0,bottom:!1}),Q=reactive({left:!1,right:!1,top:!1,bottom:!1}),X=oe=>{$.value&&($.value=!1,Q.left=!1,Q.right=!1,Q.top=!1,Q.bottom=!1,x(oe))},Y=useDebounceFn(X,d+_),ie=oe=>{const ge=oe.target===document?oe.target.documentElement:oe.target,be=ge.scrollLeft;Q.left=be<A.value,Q.right=be>T.value,W.left=be<=0+(E.left||0),W.right=be+ge.clientWidth>=ge.scrollWidth-(E.right||0)-ARRIVED_STATE_THRESHOLD_PIXELS,A.value=be;let ze=ge.scrollTop;oe.target===document&&!ze&&(ze=document.body.scrollTop),Q.top=ze<T.value,Q.bottom=ze>T.value,W.top=ze<=0+(E.top||0),W.bottom=ze+ge.clientHeight>=ge.scrollHeight-(E.bottom||0)-ARRIVED_STATE_THRESHOLD_PIXELS,T.value=ze,$.value=!0,Y(oe),I(oe)};return useEventListener$1(u,"scroll",d?useThrottleFn(ie,d,!0,!1):ie,M),useEventListener$1(u,"scrollend",X,M),{x:D,y:O,isScrolling:$,arrivedState:W,directions:Q}}var __defProp$9=Object.defineProperty,__defProps$2=Object.defineProperties,__getOwnPropDescs$2=Object.getOwnPropertyDescriptors,__getOwnPropSymbols$a=Object.getOwnPropertySymbols,__hasOwnProp$a=Object.prototype.hasOwnProperty,__propIsEnum$a=Object.prototype.propertyIsEnumerable,__defNormalProp$9=(u,f,d)=>f in u?__defProp$9(u,f,{enumerable:!0,configurable:!0,writable:!0,value:d}):u[f]=d,__spreadValues$9=(u,f)=>{for(var d in f||(f={}))__hasOwnProp$a.call(f,d)&&__defNormalProp$9(u,d,f[d]);if(__getOwnPropSymbols$a)for(var d of __getOwnPropSymbols$a(f))__propIsEnum$a.call(f,d)&&__defNormalProp$9(u,d,f[d]);return u},__spreadProps$2=(u,f)=>__defProps$2(u,__getOwnPropDescs$2(f));function useInfiniteScroll(u,f,d={}){var _,x;const I=(_=d.direction)!=null?_:"bottom",E=reactive(useScroll(u,__spreadProps$2(__spreadValues$9({},d),{offset:__spreadValues$9({[I]:(x=d.distance)!=null?x:0},d.offset)})));watch(()=>E.arrivedState[I],async M=>{var S,A;if(M){const T=resolveUnref(u),D={height:(S=T?.scrollHeight)!=null?S:0,width:(A=T?.scrollWidth)!=null?A:0};await f(E),d.preserveScrollPosition&&T&&nextTick$2(()=>{T.scrollTo({top:T.scrollHeight-D.height,left:T.scrollWidth-D.width})})}})}function useIntersectionObserver(u,f,d={}){const{root:_,rootMargin:x="0px",threshold:I=.1,window:E=defaultWindow}=d,M=useSupported(()=>E&&"IntersectionObserver"in E);let S=noop$3;const A=M.value?watch(()=>({el:unrefElement(u),root:unrefElement(_)}),({el:D,root:O})=>{if(S(),!D)return;const j=new IntersectionObserver(f,{root:O,rootMargin:x,threshold:I});j.observe(D),S=()=>{j.disconnect(),S=noop$3}},{immediate:!0,flush:"post"}):noop$3,T=()=>{S(),A()};return tryOnScopeDispose(T),{isSupported:M,stop:T}}function useLocalStorage(u,f,d={}){const{window:_=defaultWindow}=d;return useStorage(u,f,_?.localStorage,d)}var SwipeDirection;(function(u){u.UP="UP",u.RIGHT="RIGHT",u.DOWN="DOWN",u.LEFT="LEFT",u.NONE="NONE"})(SwipeDirection||(SwipeDirection={}));var __defProp=Object.defineProperty,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(u,f,d)=>f in u?__defProp(u,f,{enumerable:!0,configurable:!0,writable:!0,value:d}):u[f]=d,__spreadValues=(u,f)=>{for(var d in f||(f={}))__hasOwnProp.call(f,d)&&__defNormalProp(u,d,f[d]);if(__getOwnPropSymbols)for(var d of __getOwnPropSymbols(f))__propIsEnum.call(f,d)&&__defNormalProp(u,d,f[d]);return u};const _TransitionPresets={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};__spreadValues({linear:identity},_TransitionPresets);function useWindowSize(u={}){const{window:f=defaultWindow,initialWidth:d=1/0,initialHeight:_=1/0,listenOrientation:x=!0,includeScrollbar:I=!0}=u,E=ref(d),M=ref(_),S=()=>{f&&(I?(E.value=f.innerWidth,M.value=f.innerHeight):(E.value=f.document.documentElement.clientWidth,M.value=f.document.documentElement.clientHeight))};return S(),tryOnMounted(S),useEventListener$1("resize",S,{passive:!0}),x&&useEventListener$1("orientationchange",S,{passive:!0}),{width:E,height:M}}const _export_sfc=(u,f)=>{const d=u.__vccOpts||u;for(const[_,x]of f)d[_]=x;return d};class Account{constructor({account:f}){aM(this,"id");aM(this,"walletId");aM(this,"label");aM(this,"coinId");aM(this,"state");aM(this,"onchainState");aM(this,"defaultAccount");aM(this,"addressPath");aM(this,"address");aM(this,"createdTime");aM(this,"wallet");aM(this,"tokens");aM(this,"nfts");aM(this,"coin");aM(this,"percent");aM(this,"_transactionExecutor");this.id=f.id,this.walletId=f.walletId,this.label=f.label,this.coinId=f.coinId,this.state=f.state,this.onchainState=f.onchainState,this.defaultAccount=f.defaultAccount,this.addressPath=f.addressPath,this.address=new Address(f.address),this.createdTime=f.createdTime;const d=useWalletStore(),_=computed(()=>d.getWallet(this.walletId));Object.defineProperty(this,"wallet",{get(){return _.value}});const x=computed(()=>d.accountTokenList.filter(S=>S.accountId===this.id));Object.defineProperty(this,"tokens",{get(){return x.value}});const I=computed(()=>d.nftList.filter(S=>S.accountId===this.id));Object.defineProperty(this,"nfts",{get(){return I.value}});const E=useCoinStore(),M=computed(()=>E.coinList?.find(S=>S.id===this.coinId));Object.defineProperty(this,"coin",{get(){return M.value}})}get transactionExecutor(){if(!this._transactionExecutor)switch(this.coin?.coreNetwork){case"ETHEREUM":case"KLAYTN":this._transactionExecutor=new EthereumCoinTransactionExecutor({account:this});break;case"SOLANA":this._transactionExecutor=new SolanaCoinTransactionExecutor({account:this});break;case"NEAR":this._transactionExecutor=new NearCoinTransactionExecutor({account:this});break}return this._transactionExecutor}getKey(){return"account"+this.id}get amount(){const f=useAccountBalanceAPIStore();return new CoinAmount({amount:f.accountBalanceList[this.id]??"0",decimal:this.coin?.decimals??0})}async fetchBalance(f=!1){return useAccountBalanceAPIStore().fetchAccountBalance({accountId:this.id,force:f})}async fetchAccountTokens(f=!1){return useAccountTokenAPIStore().fetchTokenList({accountIds:this.id},f)}async setLabel(f){await useAccountAPIStore().updateAccount(this.id,{label:f})}async hideAccount(){await useAccountAPIStore().deleteAccount(this.id)}async fetchTransactionList(f,d){await useTransactionAPIStore().fetchAccountTransactionList({accountId:this.id,force:f,refresh:d})}async getPrepareData(f){if(!this.transactionExecutor)throw new Error("transactionExecutor is not exist");return this.transactionExecutor.getPrepareData({to:f.to,amount:f.amount})}async send(f){if(!this.transactionExecutor)throw new Error("transactionExecutor is not exist");const d=await this.transactionExecutor.sign({to:f.to,amount:f.amount,encUVD:f.encUVD,extraData:f.extraData,otpCode:f.otpCode});return this.transactionExecutor.broadcast({signResponse:d})}}const Tk=class Tk{constructor(){}static getInstance(){return Tk.instance||(Tk.instance=new Tk),Tk.instance}makeAccount(f){return new Account({account:f})}};aM(Tk,"instance");let AccountFactory=Tk;class AccountToken{constructor(f){aM(this,"id");aM(this,"accountId");aM(this,"tokenId");aM(this,"state");aM(this,"onchainState");aM(this,"createdTime");aM(this,"label");aM(this,"account");aM(this,"coin");aM(this,"amount");aM(this,"percent");aM(this,"_transactionExecutor");this.id=f.id,this.accountId=f.accountId,this.tokenId=f.tokenId,this.state=f.state,this.onchainState=f.onchainState,this.createdTime=f.createdTime,this.label=f.label;const d=useWalletStore(),_=computed(()=>d.getAccount({accountId:this.accountId}));Object.defineProperty(this,"account",{get(){return _.value}});const x=useCoinStore(),I=computed(()=>x.tokenList.find(S=>S.id===this.tokenId));Object.defineProperty(this,"coin",{get(){return I.value}});const E=useAccountBalanceAPIStore(),M=computed(()=>new CoinAmount({amount:E.accountTokenBalanceList[this.accountId]?.[this.coin?.id??-1]??"0",decimal:this.coin?.decimals??0}));Object.defineProperty(this,"amount",{get(){return M.value}})}get wallet(){return this.account?.wallet}get address(){return this.account?.address??new Address("")}get transactionExecutor(){if(!this._transactionExecutor)switch(this.coin?.coin?.coreNetwork){case"ETHEREUM":case"KLAYTN":this._transactionExecutor=new EthereumTokenTransactionExecutor({accountToken:this});break;case"SOLANA":this._transactionExecutor=new SolanaTokenTransactionExecutor({accountToken:this});break;case"NEAR":this._transactionExecutor=new NearTokenTransactionExecutor({accountToken:this});break}return this._transactionExecutor}async fetchBalance(f=!1){await useAccountBalanceAPIStore().fetchAccountBalance({accountId:this.accountId,force:f})}getKey(){return"accountToken"+this.id}async setLabel(f){const d=useAccountTokenAPIStore(),_={label:f};await d.updateToken(this.id,_)}async hideAccount(){await useAccountTokenAPIStore().deleteToken(this.id)}async fetchTransactionList(f,d){const _=useTransactionAPIStore(),x={accountId:this.accountId,accountTokenId:this.id,contract:this.coin?.contract,force:f,refresh:d};await _.fetchAccountTokenTransactionList(x)}async getPrepareData(f){if(!this.transactionExecutor)throw new Error("transactionExecutor is not exist");return this.transactionExecutor.getPrepareData({to:f.to,amount:f.amount})}async send(f){if(!this.transactionExecutor)throw new Error("transactionExecutor is not exist");const d=await this.transactionExecutor.sign({to:f.to,amount:f.amount,extraData:f.extraData,encUVD:f.encUVD,otpCode:f.otpCode});return this.transactionExecutor.broadcast({signResponse:d})}}const Ck=class Ck{constructor(){}static getInstance(){return Ck.instance||(Ck.instance=new Ck),Ck.instance}makeAccountToken(f){return new AccountToken(f)}};aM(Ck,"instance");let AccountTokenFactory=Ck;class Address extends String{constructor(f){super(f)}shirinkAddress(){const f=this.substring(0,5),d="..",_=this.substring(this.length-4);return f+d+_}equals(f){return this.toString()===f.toString()}}class BaseCoin{async updateCoinPrice(f=!1){if(!this.coinGeckoId)return;const d=useCoinPriceAPIStore(),_=useInfoAPIStore();await d.fetchCoinPrice({coinGeckoIds:[this.coinGeckoId],currency:_.currentCurrency,force:f})}}class Coin extends BaseCoin{constructor(d){super();aM(this,"id");aM(this,"name");aM(this,"symbol");aM(this,"network");aM(this,"coreNetwork");aM(this,"iconUrl");aM(this,"chainId");aM(this,"decimals");aM(this,"isTestnet");aM(this,"cmkId");aM(this,"coinGeckoId");aM(this,"explorerUrl");aM(this,"explorerAddress");aM(this,"explorerTransaction");aM(this,"explorerContract");aM(this,"color");aM(this,"priceInfo");aM(this,"coin");aM(this,"supportNft");aM(this,"feeType");aM(this,"property");this.id=d.id,this.name=d.name,this.symbol=d.symbol,this.network=d.network,this.coreNetwork=d.coreNetwork,this.iconUrl=d.iconUrl,this.chainId=d.chainId,this.decimals=d.decimals??0,this.isTestnet=!!d.isTestnet,this.cmkId=d.cmkId,this.coinGeckoId=d.coinGeckoId,this.explorerUrl=d.explorerUrl,this.explorerAddress=d.explorerAddress,this.explorerTransaction=d.explorerTransaction,this.explorerContract=d.explorerContract,this.color=d.color,this.feeType=d.feeType,this.property=d.property;const _=useCoinPriceAPIStore(),x=computed(()=>{if(this.coinGeckoId)return _.getCoinPrice(this.coinGeckoId)});Object.defineProperty(this,"priceInfo",{get(){return x.value}});const I=useNFTAPIStore(),E=computed(()=>!!I.nftSupportedList?.find(M=>M?.coinId===this.id));Object.defineProperty(this,"supportNft",{get(){return E.value}})}get networkSymbol(){return this.symbol}get networkIcon(){return this.iconUrl}get networkName(){return this.name}get networkDecimals(){return this.decimals}get networkPriceInfo(){return this.priceInfo}}function isAmountConstructorParams(u){return"amount"in u}function isGweiAmountConstructorParams(u){return"gweiAmount"in u}class CoinAmount{constructor(f){aM(this,"amount");aM(this,"decimal");isAmountConstructorParams(f)?this.amount=typeof f.amount=="string"?new BigNumber$1(f.amount):f.amount:isGweiAmountConstructorParams(f)?this.amount=(typeof f.gweiAmount=="string"?new BigNumber$1(f.gweiAmount):f.gweiAmount).shiftedBy(9):this.amount=(typeof f.ethAmount=="string"?new BigNumber$1(f.ethAmount):f.ethAmount).shiftedBy(f.decimal),this.decimal=f.decimal}get ethValue(){return this.amount.shiftedBy(-this.decimal)}get weiValue(){return this.amount}get gweiValue(){return this.amount.shiftedBy(-9)}set gweiValue(f){this.amount=f.shiftedBy(9)}calculatePrice(f){return f?this.ethValue.multipliedBy(f.price):new BigNumber$1(0)}}class CoinGeckoCoinPrice{constructor(f,d){aM(this,"id");aM(this,"price");aM(this,"low24h");aM(this,"lowAll");aM(this,"high24h");aM(this,"highAll");aM(this,"tradingVolume");aM(this,"marketCapRank");aM(this,"marketCap");aM(this,"marketCapDominance");aM(this,"turnoverRatioOfMarketValue");aM(this,"low7d");aM(this,"high7d");aM(this,"percent24h");aM(this,"dailyRange");this.id=f.id,this.price=f.current_price,this.low24h=f.low_24h,this.lowAll=f.atl,this.high24h=f.high_24h,this.highAll=f.ath,this.tradingVolume=f.total_volume,this.marketCapRank=f.market_cap_rank,this.marketCap=f.market_cap,this.dailyRange=Number(f.price_change_percentage_24h?.toFixed(1)??0),this.marketCapDominance=d.data.market_cap_percentage[f.symbol??""],this.turnoverRatioOfMarketValue=(this.tradingVolume??0)/(this.marketCap??1),this.percent24h=f.price_change_percentage_24h;const _=useCoinPriceAPIStore(),x=computed(()=>{const E=_.getChart7d(this.id)?.prices.map(M=>M[1]);return E?Math.min(...E):0});Object.defineProperty(this,"low7d",{get(){return x.value}});const I=computed(()=>{const E=_.getChart7d(this.id)?.prices.map(M=>M[1]);return E?Math.max(...E):0});Object.defineProperty(this,"high7d",{get(){return I.value}})}async updateLowdHigh7d(){const f=useLocaleStore();useCoinPriceAPIStore().fetchChart7d({coinGeckoId:this.id,currency:f.localeInfo.currency})}}class Token extends BaseCoin{constructor(d){super();aM(this,"id");aM(this,"name");aM(this,"contract");aM(this,"symbol");aM(this,"iconUrl");aM(this,"decimals");aM(this,"cmkId");aM(this,"coinGeckoId");aM(this,"coinId");aM(this,"coin");aM(this,"priceInfo");aM(this,"property");this.id=d.id,this.coinId=d.coinId,this.name=d.name,this.symbol=d.symbol,this.iconUrl=d.iconUrl,this.decimals=d.decimals,this.contract=d.contract,this.cmkId=d.cmkId,this.coinGeckoId=d.coinGeckoId,this.property=d.property;const _=useCoinStore(),x=computed(()=>_.coinList?.find(M=>M.id===this.coinId));Object.defineProperty(this,"coin",{get(){return x.value}});const I=useCoinPriceAPIStore(),E=computed(()=>{if(this.coinGeckoId)return I.getCoinPrice(this.coinGeckoId)});Object.defineProperty(this,"priceInfo",{get(){return E.value}})}get supportNft(){if(this.coin)return this.coin.supportNft}get explorerUrl(){if(this.coin)return this.coin.explorerUrl}get color(){return this.coin?this.coin.color:"#000000"}get networkSymbol(){return this.coin?.symbol}get networkIcon(){return this.coin?.iconUrl}get networkName(){return this.coin?.name}get feeType(){return this.coin?.feeType}get coreNetwork(){return this.coin?.coreNetwork}get networkDecimals(){return this.coin?.networkDecimals}get explorerAddress(){return this.coin?.explorerAddress}get explorerTransaction(){return this.coin?.explorerTransaction}get explorerContract(){return this.coin?.explorerContract}get networkPriceInfo(){return this.coin?.priceInfo}}class EthereumPrepareData{constructor(f){aM(this,"gasPrice");aM(this,"gasLimit");aM(this,"nonce");this.gasPrice={high:new CoinAmount({gweiAmount:f.gasPrice.high,decimal:f.decimal}),medium:new CoinAmount({gweiAmount:f.gasPrice.medium,decimal:f.decimal}),low:new CoinAmount({gweiAmount:f.gasPrice.low,decimal:f.decimal})},this.gasLimit=f.gasLimit,this.nonce=f.nonce}}class EthereumNftTransactionExecutor{constructor(f){aM(this,"nft");this.nft=f.nft}getStringSchema(){switch(this.nft.contract?.schema){case dist$1.NFTContractScheme.ERC721:case dist$1.NFTContractScheme.KIP17:return"ERC721";case dist$1.NFTContractScheme.ERC1155:case dist$1.NFTContractScheme.KIP37:return"ERC1155";default:return"ERC1155"}}async getPrepareData(f){const d=await WepinBackendAPI$1.getInstance().transaction.getTransactionPrepareData({accountId:this.nft.accountId,amount:f.amount,isNft:this.getStringSchema(),contract:this.nft.contract?.address.toString(),to:f.to,tokenId:this.nft.tokenId.toString()});return new EthereumPrepareData({gasPrice:{high:d.detail?.gasPrice.high.toString()??"0",medium:d.detail?.gasPrice.medium.toString()??"0",low:d.detail?.gasPrice.low.toString()??"0"},gasLimit:d.detail?.gasLimit??0,nonce:d.detail?.nonce??0,decimal:this.nft.coin?.decimals??0})}async sign(f){if(!this.nft.account)throw new Error("Account is not found");return await WepinBackendAPI$1.getInstance().transaction.sign({walletId:this.nft.account.walletId,accountId:this.nft.accountId,type:"transaction",isNft:this.getStringSchema(),contract:this.nft.contract?.address.toString(),tokenId:this.nft.tokenId.toString(),txData:{tokenId:this.nft.tokenId.toString(),gasLimit:f.extraData.gasLimit,gasPrice:f.extraData.gasPrice.gweiValue.toFixed(),to:f.to,nonce:f.extraData.nonce,amount:f.amount},pin:f.encUVD,otpCode:f.otpCode})}async broadcast(f){if(!this.nft.account)throw new Error("Account is not found");return WepinBackendAPI$1.getInstance().transaction.broadcastTransaction({walletId:this.nft.account.walletId,accountId:this.nft.accountId,isNft:this.getStringSchema(),tokenId:this.nft.tokenId.toString(),contract:this.nft.contract?.address.toString(),transaction:f.signResponse.transaction,signatureResult:f.signResponse.signatureResult})}}class SolanaNftTransactionExecutor{constructor(f){aM(this,"nft");this.nft=f.nft}async getPrepareData(f){const d=await WepinBackendAPI$1.getInstance().transaction.getTransactionPrepareData({accountId:this.nft.accountId,contract:this.nft.contract?.address.toString(),isNft:this.getStringSchema(),to:f.to,tokenId:this.nft.tokenId?.toString()??"",amount:f.amount});if(!d.detail)throw new Error("No detail data for prepare");return new SolanaPrepareData({blockhash:d.detail.blockhash,lamportsPerSignature:d.detail.lamportsPerSignature,lastValidBlockHeight:d.detail.lastValidBlockHeight,priorityFee:d.detail.priorityFee})}getStringSchema(){switch(this.nft.contract?.schema){case dist$1.NFTContractScheme.SOLANA_SFA:case dist$1.NFTContractScheme.SOLANA_EDITION:return"SPL";default:return"SPL"}}async sign(f){if(!this.nft.account)throw new Error("Account is not found");return await WepinBackendAPI$1.getInstance().transaction.sign({type:"transaction",walletId:this.nft.account.walletId,accountId:this.nft.accountId,pin:f.encUVD,contract:this.nft.contract?.address.toString(),tokenId:this.nft.id,isNft:this.getStringSchema(),txData:{txCommand:"transfer-tkn",to:f.to,from:this.nft.account?.address,amount:f.amount,blockhash:f.extraData.blockhash,lastValidBlockHeight:f.extraData.lastValidBlockHeight,lamportsPerSignature:f.extraData.lamportsPerSignature,priorityFee:f.extraData.priorityFee},otpCode:f.otpCode})}async broadcast(f){if(!this.nft.account)throw new Error("Account is not found");return await WepinBackendAPI$1.getInstance().transaction.broadcastTransaction({walletId:this.nft.account.walletId,accountId:this.nft.accountId,contract:this.nft.contract?.address.toString(),tokenId:this.nft.tokenId?.toString()??"",transaction:f.signResponse.transaction,signatureResult:f.signResponse.signatureResult,isNft:this.getStringSchema()})}}class Nft{constructor(f){aM(this,"id");aM(this,"nftContractId");aM(this,"accountId");aM(this,"owner");aM(this,"tokenId");aM(this,"createdTime");aM(this,"contentType");aM(this,"quantity");aM(this,"externalLink");aM(this,"imageUrl");aM(this,"contentUrl");aM(this,"description");aM(this,"state");aM(this,"resizeImage");aM(this,"name");aM(this,"account");aM(this,"coin");aM(this,"contract");aM(this,"percent");aM(this,"_transactionExecutor");this.id=f.id,this.nftContractId=f.nftContractId,this.accountId=f.accountId,this.owner=f.owner,this.tokenId=f.tokenId,this.createdTime=f.createdTime,this.contentType=f.contentType,this.quantity=f.quantity,this.externalLink=f.externalLink,this.imageUrl=f.imageUrl,this.contentUrl=f.contentUrl,this.description=f.description,this.resizeImage=f.resizeImage,this.name=f.name,this.state=f.state;const d=computed(()=>useWalletStore().getAccount({accountId:this.accountId})),_=computed(()=>useCoinStore().coinList?.find(E=>E.id===this.contract?.coinId)),x=computed(()=>useNFTContractStore().getNFTContract(this.nftContractId));Object.defineProperty(this,"account",{get(){return d.value}}),Object.defineProperty(this,"coin",{get(){return _.value}}),Object.defineProperty(this,"contract",{get(){return x.value}})}getKey(){return this.contract+(this.account?.id??"")}get transactionExecutor(){if(!this._transactionExecutor)switch(this.coin?.coreNetwork){case"ETHEREUM":case"KLAYTN":this._transactionExecutor=new EthereumNftTransactionExecutor({nft:this});break;case"SOLANA":this._transactionExecutor=new SolanaNftTransactionExecutor({nft:this})}return this._transactionExecutor}async getPrepareData(f){if(!this.transactionExecutor)throw new Error("transactionExecutor is not exist");return this.transactionExecutor.getPrepareData({to:f.to,amount:f.amount})}async send(f){if(!this.transactionExecutor)throw new Error("transactionExecutor is not exist");const d=await this.transactionExecutor.sign({to:f.to,amount:f.amount,extraData:f.extraData,encUVD:f.encUVD,otpCode:f.otpCode});return this.transactionExecutor.broadcast({signResponse:d})}}const Nk=class Nk{constructor(){}static getInstance(){return Nk.instance||(Nk.instance=new Nk),Nk.instance}makeNft(f){return new Nft(f)}};aM(Nk,"instance");let NftFactory=Nk;class NftContract{constructor(f){aM(this,"id");aM(this,"coinId");aM(this,"name");aM(this,"symbol");aM(this,"address");aM(this,"schema");aM(this,"externalLink");aM(this,"description");aM(this,"imageUrl");aM(this,"createdTime");aM(this,"coin");this.id=f.id,this.coinId=f.coinId,this.name=f.name,this.symbol=f.symbol,this.address=new Address(f.address),this.schema=f.schema,this.externalLink=f.externalLink,this.description=f.description,this.imageUrl=f.imageUrl,this.createdTime=f.createdTime;const d=useCoinStore(),_=computed(()=>d.coinList?.find(x=>x.id===this.coinId));Object.defineProperty(this,"coin",{get(){return _.value}})}}function assertPath(u){if(typeof u!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(u))}function normalizeStringPosix(u,f){for(var d="",_=0,x=-1,I=0,E,M=0;M<=u.length;++M){if(M<u.length)E=u.charCodeAt(M);else{if(E===47)break;E=47}if(E===47){if(!(x===M-1||I===1))if(x!==M-1&&I===2){if(d.length<2||_!==2||d.charCodeAt(d.length-1)!==46||d.charCodeAt(d.length-2)!==46){if(d.length>2){var S=d.lastIndexOf("/");if(S!==d.length-1){S===-1?(d="",_=0):(d=d.slice(0,S),_=d.length-1-d.lastIndexOf("/")),x=M,I=0;continue}}else if(d.length===2||d.length===1){d="",_=0,x=M,I=0;continue}}f&&(d.length>0?d+="/..":d="..",_=2)}else d.length>0?d+="/"+u.slice(x+1,M):d=u.slice(x+1,M),_=M-x-1;x=M,I=0}else E===46&&I!==-1?++I:I=-1}return d}function _format(u,f){var d=f.dir||f.root,_=f.base||(f.name||"")+(f.ext||"");return d?d===f.root?d+_:d+u+_:_}var posix={resolve:function u(){for(var f="",d=!1,_,x=arguments.length-1;x>=-1&&!d;x--){var I;x>=0?I=arguments[x]:(_===void 0&&(_=browserExports.cwd()),I=_),assertPath(I),I.length!==0&&(f=I+"/"+f,d=I.charCodeAt(0)===47)}return f=normalizeStringPosix(f,!d),d?f.length>0?"/"+f:"/":f.length>0?f:"."},normalize:function u(f){if(assertPath(f),f.length===0)return".";var d=f.charCodeAt(0)===47,_=f.charCodeAt(f.length-1)===47;return f=normalizeStringPosix(f,!d),f.length===0&&!d&&(f="."),f.length>0&&_&&(f+="/"),d?"/"+f:f},isAbsolute:function u(f){return assertPath(f),f.length>0&&f.charCodeAt(0)===47},join:function u(){if(arguments.length===0)return".";for(var f,d=0;d<arguments.length;++d){var _=arguments[d];assertPath(_),_.length>0&&(f===void 0?f=_:f+="/"+_)}return f===void 0?".":posix.normalize(f)},relative:function u(f,d){if(assertPath(f),assertPath(d),f===d||(f=posix.resolve(f),d=posix.resolve(d),f===d))return"";for(var _=1;_<f.length&&f.charCodeAt(_)===47;++_);for(var x=f.length,I=x-_,E=1;E<d.length&&d.charCodeAt(E)===47;++E);for(var M=d.length,S=M-E,A=I<S?I:S,T=-1,D=0;D<=A;++D){if(D===A){if(S>A){if(d.charCodeAt(E+D)===47)return d.slice(E+D+1);if(D===0)return d.slice(E+D)}else I>A&&(f.charCodeAt(_+D)===47?T=D:D===0&&(T=0));break}var O=f.charCodeAt(_+D),j=d.charCodeAt(E+D);if(O!==j)break;O===47&&(T=D)}var $="";for(D=_+T+1;D<=x;++D)(D===x||f.charCodeAt(D)===47)&&($.length===0?$+="..":$+="/..");return $.length>0?$+d.slice(E+T):(E+=T,d.charCodeAt(E)===47&&++E,d.slice(E))},_makeLong:function u(f){return f},dirname:function u(f){if(assertPath(f),f.length===0)return".";for(var d=f.charCodeAt(0),_=d===47,x=-1,I=!0,E=f.length-1;E>=1;--E)if(d=f.charCodeAt(E),d===47){if(!I){x=E;break}}else I=!1;return x===-1?_?"/":".":_&&x===1?"//":f.slice(0,x)},basename:function u(f,d){if(d!==void 0&&typeof d!="string")throw new TypeError('"ext" argument must be a string');assertPath(f);var _=0,x=-1,I=!0,E;if(d!==void 0&&d.length>0&&d.length<=f.length){if(d.length===f.length&&d===f)return"";var M=d.length-1,S=-1;for(E=f.length-1;E>=0;--E){var A=f.charCodeAt(E);if(A===47){if(!I){_=E+1;break}}else S===-1&&(I=!1,S=E+1),M>=0&&(A===d.charCodeAt(M)?--M===-1&&(x=E):(M=-1,x=S))}return _===x?x=S:x===-1&&(x=f.length),f.slice(_,x)}else{for(E=f.length-1;E>=0;--E)if(f.charCodeAt(E)===47){if(!I){_=E+1;break}}else x===-1&&(I=!1,x=E+1);return x===-1?"":f.slice(_,x)}},extname:function u(f){assertPath(f);for(var d=-1,_=0,x=-1,I=!0,E=0,M=f.length-1;M>=0;--M){var S=f.charCodeAt(M);if(S===47){if(!I){_=M+1;break}continue}x===-1&&(I=!1,x=M+1),S===46?d===-1?d=M:E!==1&&(E=1):d!==-1&&(E=-1)}return d===-1||x===-1||E===0||E===1&&d===x-1&&d===_+1?"":f.slice(d,x)},format:function u(f){if(f===null||typeof f!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof f);return _format("/",f)},parse:function u(f){assertPath(f);var d={root:"",dir:"",base:"",ext:"",name:""};if(f.length===0)return d;var _=f.charCodeAt(0),x=_===47,I;x?(d.root="/",I=1):I=0;for(var E=-1,M=0,S=-1,A=!0,T=f.length-1,D=0;T>=I;--T){if(_=f.charCodeAt(T),_===47){if(!A){M=T+1;break}continue}S===-1&&(A=!1,S=T+1),_===46?E===-1?E=T:D!==1&&(D=1):E!==-1&&(D=-1)}return E===-1||S===-1||D===0||D===1&&E===S-1&&E===M+1?S!==-1&&(M===0&&x?d.base=d.name=f.slice(1,S):d.base=d.name=f.slice(M,S)):(M===0&&x?(d.name=f.slice(1,E),d.base=f.slice(1,S)):(d.name=f.slice(M,E),d.base=f.slice(M,S)),d.ext=f.slice(E,S)),M>0?d.dir=f.slice(0,M-1):x&&(d.dir="/"),d},sep:"/",delimiter:":",win32:null,posix:null};posix.posix=posix;var pathBrowserify=posix,define_process_env_default={};/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const stringToByteArray$1=function(u){const f=[];let d=0;for(let _=0;_<u.length;_++){let x=u.charCodeAt(_);x<128?f[d++]=x:x<2048?(f[d++]=x>>6|192,f[d++]=x&63|128):(x&64512)===55296&&_+1<u.length&&(u.charCodeAt(_+1)&64512)===56320?(x=65536+((x&1023)<<10)+(u.charCodeAt(++_)&1023),f[d++]=x>>18|240,f[d++]=x>>12&63|128,f[d++]=x>>6&63|128,f[d++]=x&63|128):(f[d++]=x>>12|224,f[d++]=x>>6&63|128,f[d++]=x&63|128)}return f},byteArrayToString=function(u){const f=[];let d=0,_=0;for(;d<u.length;){const x=u[d++];if(x<128)f[_++]=String.fromCharCode(x);else if(x>191&&x<224){const I=u[d++];f[_++]=String.fromCharCode((x&31)<<6|I&63)}else if(x>239&&x<365){const I=u[d++],E=u[d++],M=u[d++],S=((x&7)<<18|(I&63)<<12|(E&63)<<6|M&63)-65536;f[_++]=String.fromCharCode(55296+(S>>10)),f[_++]=String.fromCharCode(56320+(S&1023))}else{const I=u[d++],E=u[d++];f[_++]=String.fromCharCode((x&15)<<12|(I&63)<<6|E&63)}}return f.join("")},base64={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:typeof atob=="function",encodeByteArray(u,f){if(!Array.isArray(u))throw Error("encodeByteArray takes an array as a parameter");this.init_();const d=f?this.byteToCharMapWebSafe_:this.byteToCharMap_,_=[];for(let x=0;x<u.length;x+=3){const I=u[x],E=x+1<u.length,M=E?u[x+1]:0,S=x+2<u.length,A=S?u[x+2]:0,T=I>>2,D=(I&3)<<4|M>>4;let O=(M&15)<<2|A>>6,j=A&63;S||(j=64,E||(O=64)),_.push(d[T],d[D],d[O],d[j])}return _.join("")},encodeString(u,f){return this.HAS_NATIVE_SUPPORT&&!f?btoa(u):this.encodeByteArray(stringToByteArray$1(u),f)},decodeString(u,f){return this.HAS_NATIVE_SUPPORT&&!f?atob(u):byteArrayToString(this.decodeStringToByteArray(u,f))},decodeStringToByteArray(u,f){this.init_();const d=f?this.charToByteMapWebSafe_:this.charToByteMap_,_=[];for(let x=0;x<u.length;){const I=d[u.charAt(x++)],M=x<u.length?d[u.charAt(x)]:0;++x;const A=x<u.length?d[u.charAt(x)]:64;++x;const D=x<u.length?d[u.charAt(x)]:64;if(++x,I==null||M==null||A==null||D==null)throw new DecodeBase64StringError;const O=I<<2|M>>4;if(_.push(O),A!==64){const j=M<<4&240|A>>2;if(_.push(j),D!==64){const $=A<<6&192|D;_.push($)}}}return _},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let u=0;u<this.ENCODED_VALS.length;u++)this.byteToCharMap_[u]=this.ENCODED_VALS.charAt(u),this.charToByteMap_[this.byteToCharMap_[u]]=u,this.byteToCharMapWebSafe_[u]=this.ENCODED_VALS_WEBSAFE.charAt(u),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[u]]=u,u>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(u)]=u,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(u)]=u)}}};class DecodeBase64StringError extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const base64Encode=function(u){const f=stringToByteArray$1(u);return base64.encodeByteArray(f,!0)},base64urlEncodeWithoutPadding=function(u){return base64Encode(u).replace(/\./g,"")},base64Decode=function(u){try{return base64.decodeString(u,!0)}catch(f){console.error("base64Decode failed: ",f)}return null};/**
 * @license
 * Copyright 2022 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function getGlobal(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof _global$2<"u")return _global$2;throw new Error("Unable to locate global object.")}/**
 * @license
 * Copyright 2022 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const getDefaultsFromGlobal=()=>getGlobal().__FIREBASE_DEFAULTS__,getDefaultsFromEnvVariable=()=>{if(typeof browserExports>"u"||typeof define_process_env_default>"u")return;const u=define_process_env_default.__FIREBASE_DEFAULTS__;if(u)return JSON.parse(u)},getDefaultsFromCookie=()=>{if(typeof document>"u")return;let u;try{u=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const f=u&&base64Decode(u[1]);return f&&JSON.parse(f)},getDefaults=()=>{try{return getDefaultsFromGlobal()||getDefaultsFromEnvVariable()||getDefaultsFromCookie()}catch(u){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${u}`);return}},getDefaultEmulatorHost=u=>{var f,d;return(d=(f=getDefaults())===null||f===void 0?void 0:f.emulatorHosts)===null||d===void 0?void 0:d[u]},getDefaultAppConfig=()=>{var u;return(u=getDefaults())===null||u===void 0?void 0:u.config},getExperimentalSetting=u=>{var f;return(f=getDefaults())===null||f===void 0?void 0:f[`_${u}`]};/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class Deferred{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((f,d)=>{this.resolve=f,this.reject=d})}wrapCallback(f){return(d,_)=>{d?this.reject(d):this.resolve(_),typeof f=="function"&&(this.promise.catch(()=>{}),f.length===1?f(d):f(d,_))}}}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function getUA(){return typeof navigator<"u"&&typeof navigator.userAgent=="string"?navigator.userAgent:""}function isMobileCordova(){return typeof window<"u"&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(getUA())}function isBrowserExtension(){const u=typeof chrome=="object"?chrome.runtime:typeof browser=="object"?browser.runtime:void 0;return typeof u=="object"&&u.id!==void 0}function isReactNative(){return typeof navigator=="object"&&navigator.product==="ReactNative"}function isIE$1(){const u=getUA();return u.indexOf("MSIE ")>=0||u.indexOf("Trident/")>=0}function isIndexedDBAvailable(){try{return typeof indexedDB=="object"}catch{return!1}}function validateIndexedDBOpenable(){return new Promise((u,f)=>{try{let d=!0;const _="validate-browser-context-for-indexeddb-analytics-module",x=self.indexedDB.open(_);x.onsuccess=()=>{x.result.close(),d||self.indexedDB.deleteDatabase(_),u(!0)},x.onupgradeneeded=()=>{d=!1},x.onerror=()=>{var I;f(((I=x.error)===null||I===void 0?void 0:I.message)||"")}}catch(d){f(d)}})}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const ERROR_NAME="FirebaseError";class FirebaseError extends Error{constructor(f,d,_){super(d),this.code=f,this.customData=_,this.name=ERROR_NAME,Object.setPrototypeOf(this,FirebaseError.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,ErrorFactory.prototype.create)}}class ErrorFactory{constructor(f,d,_){this.service=f,this.serviceName=d,this.errors=_}create(f,...d){const _=d[0]||{},x=`${this.service}/${f}`,I=this.errors[f],E=I?replaceTemplate(I,_):"Error",M=`${this.serviceName}: ${E} (${x}).`;return new FirebaseError(x,M,_)}}function replaceTemplate(u,f){return u.replace(PATTERN,(d,_)=>{const x=f[_];return x!=null?String(x):`<${_}?>`})}const PATTERN=/\{\$([^}]+)}/g;function isEmpty(u){for(const f in u)if(Object.prototype.hasOwnProperty.call(u,f))return!1;return!0}function deepEqual$1(u,f){if(u===f)return!0;const d=Object.keys(u),_=Object.keys(f);for(const x of d){if(!_.includes(x))return!1;const I=u[x],E=f[x];if(isObject$2(I)&&isObject$2(E)){if(!deepEqual$1(I,E))return!1}else if(I!==E)return!1}for(const x of _)if(!d.includes(x))return!1;return!0}function isObject$2(u){return u!==null&&typeof u=="object"}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function querystring$1(u){const f=[];for(const[d,_]of Object.entries(u))Array.isArray(_)?_.forEach(x=>{f.push(encodeURIComponent(d)+"="+encodeURIComponent(x))}):f.push(encodeURIComponent(d)+"="+encodeURIComponent(_));return f.length?"&"+f.join("&"):""}function querystringDecode(u){const f={};return u.replace(/^\?/,"").split("&").forEach(_=>{if(_){const[x,I]=_.split("=");f[decodeURIComponent(x)]=decodeURIComponent(I)}}),f}function extractQuerystring(u){const f=u.indexOf("?");if(!f)return"";const d=u.indexOf("#",f);return u.substring(f,d>0?d:void 0)}function createSubscribe(u,f){const d=new ObserverProxy(u,f);return d.subscribe.bind(d)}class ObserverProxy{constructor(f,d){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=d,this.task.then(()=>{f(this)}).catch(_=>{this.error(_)})}next(f){this.forEachObserver(d=>{d.next(f)})}error(f){this.forEachObserver(d=>{d.error(f)}),this.close(f)}complete(){this.forEachObserver(f=>{f.complete()}),this.close()}subscribe(f,d,_){let x;if(f===void 0&&d===void 0&&_===void 0)throw new Error("Missing Observer.");implementsAnyMethods(f,["next","error","complete"])?x=f:x={next:f,error:d,complete:_},x.next===void 0&&(x.next=noop$2),x.error===void 0&&(x.error=noop$2),x.complete===void 0&&(x.complete=noop$2);const I=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?x.error(this.finalError):x.complete()}catch{}}),this.observers.push(x),I}unsubscribeOne(f){this.observers===void 0||this.observers[f]===void 0||(delete this.observers[f],this.observerCount-=1,this.observerCount===0&&this.onNoObservers!==void 0&&this.onNoObservers(this))}forEachObserver(f){if(!this.finalized)for(let d=0;d<this.observers.length;d++)this.sendOne(d,f)}sendOne(f,d){this.task.then(()=>{if(this.observers!==void 0&&this.observers[f]!==void 0)try{d(this.observers[f])}catch(_){typeof console<"u"&&console.error&&console.error(_)}})}close(f){this.finalized||(this.finalized=!0,f!==void 0&&(this.finalError=f),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function implementsAnyMethods(u,f){if(typeof u!="object"||u===null)return!1;for(const d of f)if(d in u&&typeof u[d]=="function")return!0;return!1}function noop$2(){}/**
 * @license
 * Copyright 2021 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function getModularInstance(u){return u&&u._delegate?u._delegate:u}class Component{constructor(f,d,_){this.name=f,this.instanceFactory=d,this.type=_,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(f){return this.instantiationMode=f,this}setMultipleInstances(f){return this.multipleInstances=f,this}setServiceProps(f){return this.serviceProps=f,this}setInstanceCreatedCallback(f){return this.onInstanceCreated=f,this}}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const DEFAULT_ENTRY_NAME$1="[DEFAULT]";/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class Provider{constructor(f,d){this.name=f,this.container=d,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(f){const d=this.normalizeInstanceIdentifier(f);if(!this.instancesDeferred.has(d)){const _=new Deferred;if(this.instancesDeferred.set(d,_),this.isInitialized(d)||this.shouldAutoInitialize())try{const x=this.getOrInitializeService({instanceIdentifier:d});x&&_.resolve(x)}catch{}}return this.instancesDeferred.get(d).promise}getImmediate(f){var d;const _=this.normalizeInstanceIdentifier(f?.identifier),x=(d=f?.optional)!==null&&d!==void 0?d:!1;if(this.isInitialized(_)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:_})}catch(I){if(x)return null;throw I}else{if(x)return null;throw Error(`Service ${this.name} is not available`)}}getComponent(){return this.component}setComponent(f){if(f.name!==this.name)throw Error(`Mismatching Component ${f.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=f,!!this.shouldAutoInitialize()){if(isComponentEager(f))try{this.getOrInitializeService({instanceIdentifier:DEFAULT_ENTRY_NAME$1})}catch{}for(const[d,_]of this.instancesDeferred.entries()){const x=this.normalizeInstanceIdentifier(d);try{const I=this.getOrInitializeService({instanceIdentifier:x});_.resolve(I)}catch{}}}}clearInstance(f=DEFAULT_ENTRY_NAME$1){this.instancesDeferred.delete(f),this.instancesOptions.delete(f),this.instances.delete(f)}async delete(){const f=Array.from(this.instances.values());await Promise.all([...f.filter(d=>"INTERNAL"in d).map(d=>d.INTERNAL.delete()),...f.filter(d=>"_delete"in d).map(d=>d._delete())])}isComponentSet(){return this.component!=null}isInitialized(f=DEFAULT_ENTRY_NAME$1){return this.instances.has(f)}getOptions(f=DEFAULT_ENTRY_NAME$1){return this.instancesOptions.get(f)||{}}initialize(f={}){const{options:d={}}=f,_=this.normalizeInstanceIdentifier(f.instanceIdentifier);if(this.isInitialized(_))throw Error(`${this.name}(${_}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const x=this.getOrInitializeService({instanceIdentifier:_,options:d});for(const[I,E]of this.instancesDeferred.entries()){const M=this.normalizeInstanceIdentifier(I);_===M&&E.resolve(x)}return x}onInit(f,d){var _;const x=this.normalizeInstanceIdentifier(d),I=(_=this.onInitCallbacks.get(x))!==null&&_!==void 0?_:new Set;I.add(f),this.onInitCallbacks.set(x,I);const E=this.instances.get(x);return E&&f(E,x),()=>{I.delete(f)}}invokeOnInitCallbacks(f,d){const _=this.onInitCallbacks.get(d);if(_)for(const x of _)try{x(f,d)}catch{}}getOrInitializeService({instanceIdentifier:f,options:d={}}){let _=this.instances.get(f);if(!_&&this.component&&(_=this.component.instanceFactory(this.container,{instanceIdentifier:normalizeIdentifierForFactory(f),options:d}),this.instances.set(f,_),this.instancesOptions.set(f,d),this.invokeOnInitCallbacks(_,f),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,f,_)}catch{}return _||null}normalizeInstanceIdentifier(f=DEFAULT_ENTRY_NAME$1){return this.component?this.component.multipleInstances?f:DEFAULT_ENTRY_NAME$1:f}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"}}function normalizeIdentifierForFactory(u){return u===DEFAULT_ENTRY_NAME$1?void 0:u}function isComponentEager(u){return u.instantiationMode==="EAGER"}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class ComponentContainer{constructor(f){this.name=f,this.providers=new Map}addComponent(f){const d=this.getProvider(f.name);if(d.isComponentSet())throw new Error(`Component ${f.name} has already been registered with ${this.name}`);d.setComponent(f)}addOrOverwriteComponent(f){this.getProvider(f.name).isComponentSet()&&this.providers.delete(f.name),this.addComponent(f)}getProvider(f){if(this.providers.has(f))return this.providers.get(f);const d=new Provider(f,this);return this.providers.set(f,d),d}getProviders(){return Array.from(this.providers.values())}}var LogLevel;(function(u){u[u.DEBUG=0]="DEBUG",u[u.VERBOSE=1]="VERBOSE",u[u.INFO=2]="INFO",u[u.WARN=3]="WARN",u[u.ERROR=4]="ERROR",u[u.SILENT=5]="SILENT"})(LogLevel||(LogLevel={}));const levelStringToEnum={debug:LogLevel.DEBUG,verbose:LogLevel.VERBOSE,info:LogLevel.INFO,warn:LogLevel.WARN,error:LogLevel.ERROR,silent:LogLevel.SILENT},defaultLogLevel=LogLevel.INFO,ConsoleMethod={[LogLevel.DEBUG]:"log",[LogLevel.VERBOSE]:"log",[LogLevel.INFO]:"info",[LogLevel.WARN]:"warn",[LogLevel.ERROR]:"error"},defaultLogHandler=(u,f,...d)=>{if(f<u.logLevel)return;const _=new Date().toISOString(),x=ConsoleMethod[f];if(x)console[x](`[${_}]  ${u.name}:`,...d);else throw new Error(`Attempted to log a message with an invalid logType (value: ${f})`)};class Logger{constructor(f){this.name=f,this._logLevel=defaultLogLevel,this._logHandler=defaultLogHandler,this._userLogHandler=null}get logLevel(){return this._logLevel}set logLevel(f){if(!(f in LogLevel))throw new TypeError(`Invalid value "${f}" assigned to \`logLevel\``);this._logLevel=f}setLogLevel(f){this._logLevel=typeof f=="string"?levelStringToEnum[f]:f}get logHandler(){return this._logHandler}set logHandler(f){if(typeof f!="function")throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=f}get userLogHandler(){return this._userLogHandler}set userLogHandler(f){this._userLogHandler=f}debug(...f){this._userLogHandler&&this._userLogHandler(this,LogLevel.DEBUG,...f),this._logHandler(this,LogLevel.DEBUG,...f)}log(...f){this._userLogHandler&&this._userLogHandler(this,LogLevel.VERBOSE,...f),this._logHandler(this,LogLevel.VERBOSE,...f)}info(...f){this._userLogHandler&&this._userLogHandler(this,LogLevel.INFO,...f),this._logHandler(this,LogLevel.INFO,...f)}warn(...f){this._userLogHandler&&this._userLogHandler(this,LogLevel.WARN,...f),this._logHandler(this,LogLevel.WARN,...f)}error(...f){this._userLogHandler&&this._userLogHandler(this,LogLevel.ERROR,...f),this._logHandler(this,LogLevel.ERROR,...f)}}const instanceOfAny=(u,f)=>f.some(d=>u instanceof d);let idbProxyableTypes,cursorAdvanceMethods;function getIdbProxyableTypes(){return idbProxyableTypes||(idbProxyableTypes=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function getCursorAdvanceMethods(){return cursorAdvanceMethods||(cursorAdvanceMethods=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const cursorRequestMap=new WeakMap,transactionDoneMap=new WeakMap,transactionStoreNamesMap=new WeakMap,transformCache=new WeakMap,reverseTransformCache=new WeakMap;function promisifyRequest(u){const f=new Promise((d,_)=>{const x=()=>{u.removeEventListener("success",I),u.removeEventListener("error",E)},I=()=>{d(wrap(u.result)),x()},E=()=>{_(u.error),x()};u.addEventListener("success",I),u.addEventListener("error",E)});return f.then(d=>{d instanceof IDBCursor&&cursorRequestMap.set(d,u)}).catch(()=>{}),reverseTransformCache.set(f,u),f}function cacheDonePromiseForTransaction(u){if(transactionDoneMap.has(u))return;const f=new Promise((d,_)=>{const x=()=>{u.removeEventListener("complete",I),u.removeEventListener("error",E),u.removeEventListener("abort",E)},I=()=>{d(),x()},E=()=>{_(u.error||new DOMException("AbortError","AbortError")),x()};u.addEventListener("complete",I),u.addEventListener("error",E),u.addEventListener("abort",E)});transactionDoneMap.set(u,f)}let idbProxyTraps={get(u,f,d){if(u instanceof IDBTransaction){if(f==="done")return transactionDoneMap.get(u);if(f==="objectStoreNames")return u.objectStoreNames||transactionStoreNamesMap.get(u);if(f==="store")return d.objectStoreNames[1]?void 0:d.objectStore(d.objectStoreNames[0])}return wrap(u[f])},set(u,f,d){return u[f]=d,!0},has(u,f){return u instanceof IDBTransaction&&(f==="done"||f==="store")?!0:f in u}};function replaceTraps(u){idbProxyTraps=u(idbProxyTraps)}function wrapFunction(u){return u===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(f,...d){const _=u.call(unwrap(this),f,...d);return transactionStoreNamesMap.set(_,f.sort?f.sort():[f]),wrap(_)}:getCursorAdvanceMethods().includes(u)?function(...f){return u.apply(unwrap(this),f),wrap(cursorRequestMap.get(this))}:function(...f){return wrap(u.apply(unwrap(this),f))}}function transformCachableValue(u){return typeof u=="function"?wrapFunction(u):(u instanceof IDBTransaction&&cacheDonePromiseForTransaction(u),instanceOfAny(u,getIdbProxyableTypes())?new Proxy(u,idbProxyTraps):u)}function wrap(u){if(u instanceof IDBRequest)return promisifyRequest(u);if(transformCache.has(u))return transformCache.get(u);const f=transformCachableValue(u);return f!==u&&(transformCache.set(u,f),reverseTransformCache.set(f,u)),f}const unwrap=u=>reverseTransformCache.get(u);function openDB(u,f,{blocked:d,upgrade:_,blocking:x,terminated:I}={}){const E=indexedDB.open(u,f),M=wrap(E);return _&&E.addEventListener("upgradeneeded",S=>{_(wrap(E.result),S.oldVersion,S.newVersion,wrap(E.transaction),S)}),d&&E.addEventListener("blocked",S=>d(S.oldVersion,S.newVersion,S)),M.then(S=>{I&&S.addEventListener("close",()=>I()),x&&S.addEventListener("versionchange",A=>x(A.oldVersion,A.newVersion,A))}).catch(()=>{}),M}const readMethods=["get","getKey","getAll","getAllKeys","count"],writeMethods=["put","add","delete","clear"],cachedMethods=new Map;function getMethod(u,f){if(!(u instanceof IDBDatabase&&!(f in u)&&typeof f=="string"))return;if(cachedMethods.get(f))return cachedMethods.get(f);const d=f.replace(/FromIndex$/,""),_=f!==d,x=writeMethods.includes(d);if(!(d in(_?IDBIndex:IDBObjectStore).prototype)||!(x||readMethods.includes(d)))return;const I=async function(E,...M){const S=this.transaction(E,x?"readwrite":"readonly");let A=S.store;return _&&(A=A.index(M.shift())),(await Promise.all([A[d](...M),x&&S.done]))[0]};return cachedMethods.set(f,I),I}replaceTraps(u=>({...u,get:(f,d,_)=>getMethod(f,d)||u.get(f,d,_),has:(f,d)=>!!getMethod(f,d)||u.has(f,d)}));/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class PlatformLoggerServiceImpl{constructor(f){this.container=f}getPlatformInfoString(){return this.container.getProviders().map(d=>{if(isVersionServiceProvider(d)){const _=d.getImmediate();return`${_.library}/${_.version}`}else return null}).filter(d=>d).join(" ")}}function isVersionServiceProvider(u){const f=u.getComponent();return f?.type==="VERSION"}const name$o="@firebase/app",version$1$1="0.9.13";/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const logger=new Logger("@firebase/app"),name$n="@firebase/app-compat",name$m="@firebase/analytics-compat",name$l="@firebase/analytics",name$k="@firebase/app-check-compat",name$j="@firebase/app-check",name$i="@firebase/auth",name$h="@firebase/auth-compat",name$g="@firebase/database",name$f="@firebase/database-compat",name$e="@firebase/functions",name$d="@firebase/functions-compat",name$c="@firebase/installations",name$b="@firebase/installations-compat",name$a="@firebase/messaging",name$9="@firebase/messaging-compat",name$8="@firebase/performance",name$7="@firebase/performance-compat",name$6="@firebase/remote-config",name$5="@firebase/remote-config-compat",name$4="@firebase/storage",name$3="@firebase/storage-compat",name$2$1="@firebase/firestore",name$1$1="@firebase/firestore-compat",name$p="firebase",version$4="9.23.0";/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const DEFAULT_ENTRY_NAME="[DEFAULT]",PLATFORM_LOG_STRING={[name$o]:"fire-core",[name$n]:"fire-core-compat",[name$l]:"fire-analytics",[name$m]:"fire-analytics-compat",[name$j]:"fire-app-check",[name$k]:"fire-app-check-compat",[name$i]:"fire-auth",[name$h]:"fire-auth-compat",[name$g]:"fire-rtdb",[name$f]:"fire-rtdb-compat",[name$e]:"fire-fn",[name$d]:"fire-fn-compat",[name$c]:"fire-iid",[name$b]:"fire-iid-compat",[name$a]:"fire-fcm",[name$9]:"fire-fcm-compat",[name$8]:"fire-perf",[name$7]:"fire-perf-compat",[name$6]:"fire-rc",[name$5]:"fire-rc-compat",[name$4]:"fire-gcs",[name$3]:"fire-gcs-compat",[name$2$1]:"fire-fst",[name$1$1]:"fire-fst-compat","fire-js":"fire-js",[name$p]:"fire-js-all"};/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const _apps=new Map,_components=new Map;function _addComponent(u,f){try{u.container.addComponent(f)}catch(d){logger.debug(`Component ${f.name} failed to register with FirebaseApp ${u.name}`,d)}}function _registerComponent(u){const f=u.name;if(_components.has(f))return logger.debug(`There were multiple attempts to register component ${f}.`),!1;_components.set(f,u);for(const d of _apps.values())_addComponent(d,u);return!0}function _getProvider(u,f){const d=u.container.getProvider("heartbeat").getImmediate({optional:!0});return d&&d.triggerHeartbeat(),u.container.getProvider(f)}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const ERRORS={"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invalid-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}."},ERROR_FACTORY=new ErrorFactory("app","Firebase",ERRORS);/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class FirebaseAppImpl{constructor(f,d,_){this._isDeleted=!1,this._options=Object.assign({},f),this._config=Object.assign({},d),this._name=d.name,this._automaticDataCollectionEnabled=d.automaticDataCollectionEnabled,this._container=_,this.container.addComponent(new Component("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(f){this.checkDestroyed(),this._automaticDataCollectionEnabled=f}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(f){this._isDeleted=f}checkDestroyed(){if(this.isDeleted)throw ERROR_FACTORY.create("app-deleted",{appName:this._name})}}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const SDK_VERSION=version$4;function initializeApp(u,f={}){let d=u;typeof f!="object"&&(f={name:f});const _=Object.assign({name:DEFAULT_ENTRY_NAME,automaticDataCollectionEnabled:!1},f),x=_.name;if(typeof x!="string"||!x)throw ERROR_FACTORY.create("bad-app-name",{appName:String(x)});if(d||(d=getDefaultAppConfig()),!d)throw ERROR_FACTORY.create("no-options");const I=_apps.get(x);if(I){if(deepEqual$1(d,I.options)&&deepEqual$1(_,I.config))return I;throw ERROR_FACTORY.create("duplicate-app",{appName:x})}const E=new ComponentContainer(x);for(const S of _components.values())E.addComponent(S);const M=new FirebaseAppImpl(d,_,E);return _apps.set(x,M),M}function getApp(u=DEFAULT_ENTRY_NAME){const f=_apps.get(u);if(!f&&u===DEFAULT_ENTRY_NAME&&getDefaultAppConfig())return initializeApp();if(!f)throw ERROR_FACTORY.create("no-app",{appName:u});return f}function registerVersion(u,f,d){var _;let x=(_=PLATFORM_LOG_STRING[u])!==null&&_!==void 0?_:u;d&&(x+=`-${d}`);const I=x.match(/\s|\//),E=f.match(/\s|\//);if(I||E){const M=[`Unable to register library "${x}" with version "${f}":`];I&&M.push(`library name "${x}" contains illegal characters (whitespace or "/")`),I&&E&&M.push("and"),E&&M.push(`version name "${f}" contains illegal characters (whitespace or "/")`),logger.warn(M.join(" "));return}_registerComponent(new Component(`${x}-version`,()=>({library:x,version:f}),"VERSION"))}/**
 * @license
 * Copyright 2021 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const DB_NAME$1="firebase-heartbeat-database",DB_VERSION$1=1,STORE_NAME="firebase-heartbeat-store";let dbPromise=null;function getDbPromise(){return dbPromise||(dbPromise=openDB(DB_NAME$1,DB_VERSION$1,{upgrade:(u,f)=>{switch(f){case 0:u.createObjectStore(STORE_NAME)}}}).catch(u=>{throw ERROR_FACTORY.create("idb-open",{originalErrorMessage:u.message})})),dbPromise}async function readHeartbeatsFromIndexedDB(u){try{return await(await getDbPromise()).transaction(STORE_NAME).objectStore(STORE_NAME).get(computeKey(u))}catch(f){if(f instanceof FirebaseError)logger.warn(f.message);else{const d=ERROR_FACTORY.create("idb-get",{originalErrorMessage:f?.message});logger.warn(d.message)}}}async function writeHeartbeatsToIndexedDB(u,f){try{const _=(await getDbPromise()).transaction(STORE_NAME,"readwrite");await _.objectStore(STORE_NAME).put(f,computeKey(u)),await _.done}catch(d){if(d instanceof FirebaseError)logger.warn(d.message);else{const _=ERROR_FACTORY.create("idb-set",{originalErrorMessage:d?.message});logger.warn(_.message)}}}function computeKey(u){return`${u.name}!${u.options.appId}`}/**
 * @license
 * Copyright 2021 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const MAX_HEADER_BYTES=1024,STORED_HEARTBEAT_RETENTION_MAX_MILLIS=30*24*60*60*1e3;class HeartbeatServiceImpl{constructor(f){this.container=f,this._heartbeatsCache=null;const d=this.container.getProvider("app").getImmediate();this._storage=new HeartbeatStorageImpl(d),this._heartbeatsCachePromise=this._storage.read().then(_=>(this._heartbeatsCache=_,_))}async triggerHeartbeat(){const d=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),_=getUTCDateString();if(this._heartbeatsCache===null&&(this._heartbeatsCache=await this._heartbeatsCachePromise),!(this._heartbeatsCache.lastSentHeartbeatDate===_||this._heartbeatsCache.heartbeats.some(x=>x.date===_)))return this._heartbeatsCache.heartbeats.push({date:_,agent:d}),this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter(x=>{const I=new Date(x.date).valueOf();return Date.now()-I<=STORED_HEARTBEAT_RETENTION_MAX_MILLIS}),this._storage.overwrite(this._heartbeatsCache)}async getHeartbeatsHeader(){if(this._heartbeatsCache===null&&await this._heartbeatsCachePromise,this._heartbeatsCache===null||this._heartbeatsCache.heartbeats.length===0)return"";const f=getUTCDateString(),{heartbeatsToSend:d,unsentEntries:_}=extractHeartbeatsForHeader(this._heartbeatsCache.heartbeats),x=base64urlEncodeWithoutPadding(JSON.stringify({version:2,heartbeats:d}));return this._heartbeatsCache.lastSentHeartbeatDate=f,_.length>0?(this._heartbeatsCache.heartbeats=_,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),x}}function getUTCDateString(){return new Date().toISOString().substring(0,10)}function extractHeartbeatsForHeader(u,f=MAX_HEADER_BYTES){const d=[];let _=u.slice();for(const x of u){const I=d.find(E=>E.agent===x.agent);if(I){if(I.dates.push(x.date),countBytes(d)>f){I.dates.pop();break}}else if(d.push({agent:x.agent,dates:[x.date]}),countBytes(d)>f){d.pop();break}_=_.slice(1)}return{heartbeatsToSend:d,unsentEntries:_}}class HeartbeatStorageImpl{constructor(f){this.app=f,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return isIndexedDBAvailable()?validateIndexedDBOpenable().then(()=>!0).catch(()=>!1):!1}async read(){return await this._canUseIndexedDBPromise?await readHeartbeatsFromIndexedDB(this.app)||{heartbeats:[]}:{heartbeats:[]}}async overwrite(f){var d;if(await this._canUseIndexedDBPromise){const x=await this.read();return writeHeartbeatsToIndexedDB(this.app,{lastSentHeartbeatDate:(d=f.lastSentHeartbeatDate)!==null&&d!==void 0?d:x.lastSentHeartbeatDate,heartbeats:f.heartbeats})}else return}async add(f){var d;if(await this._canUseIndexedDBPromise){const x=await this.read();return writeHeartbeatsToIndexedDB(this.app,{lastSentHeartbeatDate:(d=f.lastSentHeartbeatDate)!==null&&d!==void 0?d:x.lastSentHeartbeatDate,heartbeats:[...x.heartbeats,...f.heartbeats]})}else return}}function countBytes(u){return base64urlEncodeWithoutPadding(JSON.stringify({version:2,heartbeats:u})).length}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function registerCoreComponents(u){_registerComponent(new Component("platform-logger",f=>new PlatformLoggerServiceImpl(f),"PRIVATE")),_registerComponent(new Component("heartbeat",f=>new HeartbeatServiceImpl(f),"PRIVATE")),registerVersion(name$o,version$1$1,u),registerVersion(name$o,version$1$1,"esm2017"),registerVersion("fire-js","")}registerCoreComponents("");function __rest(u,f){var d={};for(var _ in u)Object.prototype.hasOwnProperty.call(u,_)&&f.indexOf(_)<0&&(d[_]=u[_]);if(u!=null&&typeof Object.getOwnPropertySymbols=="function")for(var x=0,_=Object.getOwnPropertySymbols(u);x<_.length;x++)f.indexOf(_[x])<0&&Object.prototype.propertyIsEnumerable.call(u,_[x])&&(d[_[x]]=u[_[x]]);return d}typeof SuppressedError=="function"&&SuppressedError;function _prodErrorMap(){return{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}}const prodErrorMap=_prodErrorMap,_DEFAULT_AUTH_ERROR_FACTORY=new ErrorFactory("auth","Firebase",_prodErrorMap());/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const logClient=new Logger("@firebase/auth");function _logWarn(u,...f){logClient.logLevel<=LogLevel.WARN&&logClient.warn(`Auth (${SDK_VERSION}): ${u}`,...f)}function _logError(u,...f){logClient.logLevel<=LogLevel.ERROR&&logClient.error(`Auth (${SDK_VERSION}): ${u}`,...f)}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function _fail(u,...f){throw createErrorInternal(u,...f)}function _createError(u,...f){return createErrorInternal(u,...f)}function _errorWithCustomMessage(u,f,d){const _=Object.assign(Object.assign({},prodErrorMap()),{[f]:d});return new ErrorFactory("auth","Firebase",_).create(f,{appName:u.name})}function createErrorInternal(u,...f){if(typeof u!="string"){const d=f[0],_=[...f.slice(1)];return _[0]&&(_[0].appName=u.name),u._errorFactory.create(d,..._)}return _DEFAULT_AUTH_ERROR_FACTORY.create(u,...f)}function _assert(u,f,...d){if(!u)throw createErrorInternal(f,...d)}function debugFail(u){const f="INTERNAL ASSERTION FAILED: "+u;throw _logError(f),new Error(f)}function debugAssert(u,f){u||debugFail(f)}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function _getCurrentUrl(){var u;return typeof self<"u"&&((u=self.location)===null||u===void 0?void 0:u.href)||""}function _isHttpOrHttps(){return _getCurrentScheme()==="http:"||_getCurrentScheme()==="https:"}function _getCurrentScheme(){var u;return typeof self<"u"&&((u=self.location)===null||u===void 0?void 0:u.protocol)||null}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function _isOnline(){return typeof navigator<"u"&&navigator&&"onLine"in navigator&&typeof navigator.onLine=="boolean"&&(_isHttpOrHttps()||isBrowserExtension()||"connection"in navigator)?navigator.onLine:!0}function _getUserLanguage(){if(typeof navigator>"u")return null;const u=navigator;return u.languages&&u.languages[0]||u.language||null}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class Delay{constructor(f,d){this.shortDelay=f,this.longDelay=d,debugAssert(d>f,"Short delay should be less than long delay!"),this.isMobile=isMobileCordova()||isReactNative()}get(){return _isOnline()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function _emulatorUrl(u,f){debugAssert(u.emulator,"Emulator should always be set here");const{url:d}=u.emulator;return f?`${d}${f.startsWith("/")?f.slice(1):f}`:d}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class FetchProvider{static initialize(f,d,_){this.fetchImpl=f,d&&(this.headersImpl=d),_&&(this.responseImpl=_)}static fetch(){if(this.fetchImpl)return this.fetchImpl;if(typeof self<"u"&&"fetch"in self)return self.fetch;debugFail("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static headers(){if(this.headersImpl)return this.headersImpl;if(typeof self<"u"&&"Headers"in self)return self.Headers;debugFail("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static response(){if(this.responseImpl)return this.responseImpl;if(typeof self<"u"&&"Response"in self)return self.Response;debugFail("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const SERVER_ERROR_MAP={CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_PASSWORD:"wrong-password",MISSING_PASSWORD:"missing-password",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_REQ_TYPE:"internal-error",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",INVALID_CODE:"invalid-verification-code",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_SESSION_INFO:"missing-verification-id",SESSION_EXPIRED:"code-expired",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",BLOCKING_FUNCTION_ERROR_RESPONSE:"internal-error",RECAPTCHA_NOT_ENABLED:"recaptcha-not-enabled",MISSING_RECAPTCHA_TOKEN:"missing-recaptcha-token",INVALID_RECAPTCHA_TOKEN:"invalid-recaptcha-token",INVALID_RECAPTCHA_ACTION:"invalid-recaptcha-action",MISSING_CLIENT_TYPE:"missing-client-type",MISSING_RECAPTCHA_VERSION:"missing-recaptcha-version",INVALID_RECAPTCHA_VERSION:"invalid-recaptcha-version",INVALID_REQ_TYPE:"invalid-req-type"};/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const DEFAULT_API_TIMEOUT_MS=new Delay(3e4,6e4);function _addTidIfNecessary(u,f){return u.tenantId&&!f.tenantId?Object.assign(Object.assign({},f),{tenantId:u.tenantId}):f}async function _performApiRequest(u,f,d,_,x={}){return _performFetchWithErrorHandling(u,x,async()=>{let I={},E={};_&&(f==="GET"?E=_:I={body:JSON.stringify(_)});const M=querystring$1(Object.assign({key:u.config.apiKey},E)).slice(1),S=await u._getAdditionalHeaders();return S["Content-Type"]="application/json",u.languageCode&&(S["X-Firebase-Locale"]=u.languageCode),FetchProvider.fetch()(_getFinalTarget(u,u.config.apiHost,d,M),Object.assign({method:f,headers:S,referrerPolicy:"no-referrer"},I))})}async function _performFetchWithErrorHandling(u,f,d){u._canInitEmulator=!1;const _=Object.assign(Object.assign({},SERVER_ERROR_MAP),f);try{const x=new NetworkTimeout(u),I=await Promise.race([d(),x.promise]);x.clearNetworkTimeout();const E=await I.json();if("needConfirmation"in E)throw _makeTaggedError(u,"account-exists-with-different-credential",E);if(I.ok&&!("errorMessage"in E))return E;{const M=I.ok?E.errorMessage:E.error.message,[S,A]=M.split(" : ");if(S==="FEDERATED_USER_ID_ALREADY_LINKED")throw _makeTaggedError(u,"credential-already-in-use",E);if(S==="EMAIL_EXISTS")throw _makeTaggedError(u,"email-already-in-use",E);if(S==="USER_DISABLED")throw _makeTaggedError(u,"user-disabled",E);const T=_[S]||S.toLowerCase().replace(/[_\s]+/g,"-");if(A)throw _errorWithCustomMessage(u,T,A);_fail(u,T)}}catch(x){if(x instanceof FirebaseError)throw x;_fail(u,"network-request-failed",{message:String(x)})}}async function _performSignInRequest(u,f,d,_,x={}){const I=await _performApiRequest(u,f,d,_,x);return"mfaPendingCredential"in I&&_fail(u,"multi-factor-auth-required",{_serverResponse:I}),I}function _getFinalTarget(u,f,d,_){const x=`${f}${d}?${_}`;return u.config.emulator?_emulatorUrl(u.config,x):`${u.config.apiScheme}://${x}`}class NetworkTimeout{constructor(f){this.auth=f,this.timer=null,this.promise=new Promise((d,_)=>{this.timer=setTimeout(()=>_(_createError(this.auth,"network-request-failed")),DEFAULT_API_TIMEOUT_MS.get())})}clearNetworkTimeout(){clearTimeout(this.timer)}}function _makeTaggedError(u,f,d){const _={appName:u.name};d.email&&(_.email=d.email),d.phoneNumber&&(_.phoneNumber=d.phoneNumber);const x=_createError(u,f,_);return x.customData._tokenResponse=d,x}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function deleteAccount(u,f){return _performApiRequest(u,"POST","/v1/accounts:delete",f)}async function getAccountInfo(u,f){return _performApiRequest(u,"POST","/v1/accounts:lookup",f)}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function utcTimestampToDateString(u){if(u)try{const f=new Date(Number(u));if(!isNaN(f.getTime()))return f.toUTCString()}catch{}}async function getIdTokenResult(u,f=!1){const d=getModularInstance(u),_=await d.getIdToken(f),x=_parseToken(_);_assert(x&&x.exp&&x.auth_time&&x.iat,d.auth,"internal-error");const I=typeof x.firebase=="object"?x.firebase:void 0,E=I?.sign_in_provider;return{claims:x,token:_,authTime:utcTimestampToDateString(secondsStringToMilliseconds(x.auth_time)),issuedAtTime:utcTimestampToDateString(secondsStringToMilliseconds(x.iat)),expirationTime:utcTimestampToDateString(secondsStringToMilliseconds(x.exp)),signInProvider:E||null,signInSecondFactor:I?.sign_in_second_factor||null}}function secondsStringToMilliseconds(u){return Number(u)*1e3}function _parseToken(u){const[f,d,_]=u.split(".");if(f===void 0||d===void 0||_===void 0)return _logError("JWT malformed, contained fewer than 3 sections"),null;try{const x=base64Decode(d);return x?JSON.parse(x):(_logError("Failed to decode base64 JWT payload"),null)}catch(x){return _logError("Caught error parsing JWT payload as JSON",x?.toString()),null}}function _tokenExpiresIn(u){const f=_parseToken(u);return _assert(f,"internal-error"),_assert(typeof f.exp<"u","internal-error"),_assert(typeof f.iat<"u","internal-error"),Number(f.exp)-Number(f.iat)}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function _logoutIfInvalidated(u,f,d=!1){if(d)return f;try{return await f}catch(_){throw _ instanceof FirebaseError&&isUserInvalidated(_)&&u.auth.currentUser===u&&await u.auth.signOut(),_}}function isUserInvalidated({code:u}){return u==="auth/user-disabled"||u==="auth/user-token-expired"}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class ProactiveRefresh{constructor(f){this.user=f,this.isRunning=!1,this.timerId=null,this.errorBackoff=3e4}_start(){this.isRunning||(this.isRunning=!0,this.schedule())}_stop(){this.isRunning&&(this.isRunning=!1,this.timerId!==null&&clearTimeout(this.timerId))}getInterval(f){var d;if(f){const _=this.errorBackoff;return this.errorBackoff=Math.min(this.errorBackoff*2,96e4),_}else{this.errorBackoff=3e4;const x=((d=this.user.stsTokenManager.expirationTime)!==null&&d!==void 0?d:0)-Date.now()-3e5;return Math.max(0,x)}}schedule(f=!1){if(!this.isRunning)return;const d=this.getInterval(f);this.timerId=setTimeout(async()=>{await this.iteration()},d)}async iteration(){try{await this.user.getIdToken(!0)}catch(f){f?.code==="auth/network-request-failed"&&this.schedule(!0);return}this.schedule()}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class UserMetadata{constructor(f,d){this.createdAt=f,this.lastLoginAt=d,this._initializeTime()}_initializeTime(){this.lastSignInTime=utcTimestampToDateString(this.lastLoginAt),this.creationTime=utcTimestampToDateString(this.createdAt)}_copy(f){this.createdAt=f.createdAt,this.lastLoginAt=f.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function _reloadWithoutSaving(u){var f;const d=u.auth,_=await u.getIdToken(),x=await _logoutIfInvalidated(u,getAccountInfo(d,{idToken:_}));_assert(x?.users.length,d,"internal-error");const I=x.users[0];u._notifyReloadListener(I);const E=!((f=I.providerUserInfo)===null||f===void 0)&&f.length?extractProviderData(I.providerUserInfo):[],M=mergeProviderData(u.providerData,E),S=u.isAnonymous,A=!(u.email&&I.passwordHash)&&!M?.length,T=S?A:!1,D={uid:I.localId,displayName:I.displayName||null,photoURL:I.photoUrl||null,email:I.email||null,emailVerified:I.emailVerified||!1,phoneNumber:I.phoneNumber||null,tenantId:I.tenantId||null,providerData:M,metadata:new UserMetadata(I.createdAt,I.lastLoginAt),isAnonymous:T};Object.assign(u,D)}async function reload(u){const f=getModularInstance(u);await _reloadWithoutSaving(f),await f.auth._persistUserIfCurrent(f),f.auth._notifyListenersIfCurrent(f)}function mergeProviderData(u,f){return[...u.filter(_=>!f.some(x=>x.providerId===_.providerId)),...f]}function extractProviderData(u){return u.map(f=>{var{providerId:d}=f,_=__rest(f,["providerId"]);return{providerId:d,uid:_.rawId||"",displayName:_.displayName||null,email:_.email||null,phoneNumber:_.phoneNumber||null,photoURL:_.photoUrl||null}})}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function requestStsToken(u,f){const d=await _performFetchWithErrorHandling(u,{},async()=>{const _=querystring$1({grant_type:"refresh_token",refresh_token:f}).slice(1),{tokenApiHost:x,apiKey:I}=u.config,E=_getFinalTarget(u,x,"/v1/token",`key=${I}`),M=await u._getAdditionalHeaders();return M["Content-Type"]="application/x-www-form-urlencoded",FetchProvider.fetch()(E,{method:"POST",headers:M,body:_})});return{accessToken:d.access_token,expiresIn:d.expires_in,refreshToken:d.refresh_token}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class StsTokenManager{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(f){_assert(f.idToken,"internal-error"),_assert(typeof f.idToken<"u","internal-error"),_assert(typeof f.refreshToken<"u","internal-error");const d="expiresIn"in f&&typeof f.expiresIn<"u"?Number(f.expiresIn):_tokenExpiresIn(f.idToken);this.updateTokensAndExpiration(f.idToken,f.refreshToken,d)}async getToken(f,d=!1){return _assert(!this.accessToken||this.refreshToken,f,"user-token-expired"),!d&&this.accessToken&&!this.isExpired?this.accessToken:this.refreshToken?(await this.refresh(f,this.refreshToken),this.accessToken):null}clearRefreshToken(){this.refreshToken=null}async refresh(f,d){const{accessToken:_,refreshToken:x,expiresIn:I}=await requestStsToken(f,d);this.updateTokensAndExpiration(_,x,Number(I))}updateTokensAndExpiration(f,d,_){this.refreshToken=d||null,this.accessToken=f||null,this.expirationTime=Date.now()+_*1e3}static fromJSON(f,d){const{refreshToken:_,accessToken:x,expirationTime:I}=d,E=new StsTokenManager;return _&&(_assert(typeof _=="string","internal-error",{appName:f}),E.refreshToken=_),x&&(_assert(typeof x=="string","internal-error",{appName:f}),E.accessToken=x),I&&(_assert(typeof I=="number","internal-error",{appName:f}),E.expirationTime=I),E}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(f){this.accessToken=f.accessToken,this.refreshToken=f.refreshToken,this.expirationTime=f.expirationTime}_clone(){return Object.assign(new StsTokenManager,this.toJSON())}_performRefresh(){return debugFail("not implemented")}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function assertStringOrUndefined(u,f){_assert(typeof u=="string"||typeof u>"u","internal-error",{appName:f})}class UserImpl{constructor(f){var{uid:d,auth:_,stsTokenManager:x}=f,I=__rest(f,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new ProactiveRefresh(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=d,this.auth=_,this.stsTokenManager=x,this.accessToken=x.accessToken,this.displayName=I.displayName||null,this.email=I.email||null,this.emailVerified=I.emailVerified||!1,this.phoneNumber=I.phoneNumber||null,this.photoURL=I.photoURL||null,this.isAnonymous=I.isAnonymous||!1,this.tenantId=I.tenantId||null,this.providerData=I.providerData?[...I.providerData]:[],this.metadata=new UserMetadata(I.createdAt||void 0,I.lastLoginAt||void 0)}async getIdToken(f){const d=await _logoutIfInvalidated(this,this.stsTokenManager.getToken(this.auth,f));return _assert(d,this.auth,"internal-error"),this.accessToken!==d&&(this.accessToken=d,await this.auth._persistUserIfCurrent(this),this.auth._notifyListenersIfCurrent(this)),d}getIdTokenResult(f){return getIdTokenResult(this,f)}reload(){return reload(this)}_assign(f){this!==f&&(_assert(this.uid===f.uid,this.auth,"internal-error"),this.displayName=f.displayName,this.photoURL=f.photoURL,this.email=f.email,this.emailVerified=f.emailVerified,this.phoneNumber=f.phoneNumber,this.isAnonymous=f.isAnonymous,this.tenantId=f.tenantId,this.providerData=f.providerData.map(d=>Object.assign({},d)),this.metadata._copy(f.metadata),this.stsTokenManager._assign(f.stsTokenManager))}_clone(f){const d=new UserImpl(Object.assign(Object.assign({},this),{auth:f,stsTokenManager:this.stsTokenManager._clone()}));return d.metadata._copy(this.metadata),d}_onReload(f){_assert(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=f,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}_notifyReloadListener(f){this.reloadListener?this.reloadListener(f):this.reloadUserInfo=f}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}async _updateTokensIfNecessary(f,d=!1){let _=!1;f.idToken&&f.idToken!==this.stsTokenManager.accessToken&&(this.stsTokenManager.updateFromServerResponse(f),_=!0),d&&await _reloadWithoutSaving(this),await this.auth._persistUserIfCurrent(this),_&&this.auth._notifyListenersIfCurrent(this)}async delete(){const f=await this.getIdToken();return await _logoutIfInvalidated(this,deleteAccount(this.auth,{idToken:f})),this.stsTokenManager.clearRefreshToken(),this.auth.signOut()}toJSON(){return Object.assign(Object.assign({uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isAnonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map(f=>Object.assign({},f)),stsTokenManager:this.stsTokenManager.toJSON(),_redirectEventId:this._redirectEventId},this.metadata.toJSON()),{apiKey:this.auth.config.apiKey,appName:this.auth.name})}get refreshToken(){return this.stsTokenManager.refreshToken||""}static _fromJSON(f,d){var _,x,I,E,M,S,A,T;const D=(_=d.displayName)!==null&&_!==void 0?_:void 0,O=(x=d.email)!==null&&x!==void 0?x:void 0,j=(I=d.phoneNumber)!==null&&I!==void 0?I:void 0,$=(E=d.photoURL)!==null&&E!==void 0?E:void 0,W=(M=d.tenantId)!==null&&M!==void 0?M:void 0,Q=(S=d._redirectEventId)!==null&&S!==void 0?S:void 0,X=(A=d.createdAt)!==null&&A!==void 0?A:void 0,Y=(T=d.lastLoginAt)!==null&&T!==void 0?T:void 0,{uid:ie,emailVerified:oe,isAnonymous:ge,providerData:be,stsTokenManager:ze}=d;_assert(ie&&ze,f,"internal-error");const de=StsTokenManager.fromJSON(this.name,ze);_assert(typeof ie=="string",f,"internal-error"),assertStringOrUndefined(D,f.name),assertStringOrUndefined(O,f.name),_assert(typeof oe=="boolean",f,"internal-error"),_assert(typeof ge=="boolean",f,"internal-error"),assertStringOrUndefined(j,f.name),assertStringOrUndefined($,f.name),assertStringOrUndefined(W,f.name),assertStringOrUndefined(Q,f.name),assertStringOrUndefined(X,f.name),assertStringOrUndefined(Y,f.name);const Ce=new UserImpl({uid:ie,auth:f,email:O,emailVerified:oe,displayName:D,isAnonymous:ge,photoURL:$,phoneNumber:j,tenantId:W,stsTokenManager:de,createdAt:X,lastLoginAt:Y});return be&&Array.isArray(be)&&(Ce.providerData=be.map(ke=>Object.assign({},ke))),Q&&(Ce._redirectEventId=Q),Ce}static async _fromIdTokenResponse(f,d,_=!1){const x=new StsTokenManager;x.updateFromServerResponse(d);const I=new UserImpl({uid:d.localId,auth:f,stsTokenManager:x,isAnonymous:_});return await _reloadWithoutSaving(I),I}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const instanceCache=new Map;function _getInstance(u){debugAssert(u instanceof Function,"Expected a class definition");let f=instanceCache.get(u);return f?(debugAssert(f instanceof u,"Instance stored in cache mismatched with class"),f):(f=new u,instanceCache.set(u,f),f)}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class InMemoryPersistence{constructor(){this.type="NONE",this.storage={}}async _isAvailable(){return!0}async _set(f,d){this.storage[f]=d}async _get(f){const d=this.storage[f];return d===void 0?null:d}async _remove(f){delete this.storage[f]}_addListener(f,d){}_removeListener(f,d){}}InMemoryPersistence.type="NONE";const inMemoryPersistence=InMemoryPersistence;/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function _persistenceKeyName(u,f,d){return`firebase:${u}:${f}:${d}`}class PersistenceUserManager{constructor(f,d,_){this.persistence=f,this.auth=d,this.userKey=_;const{config:x,name:I}=this.auth;this.fullUserKey=_persistenceKeyName(this.userKey,x.apiKey,I),this.fullPersistenceKey=_persistenceKeyName("persistence",x.apiKey,I),this.boundEventHandler=d._onStorageEvent.bind(d),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(f){return this.persistence._set(this.fullUserKey,f.toJSON())}async getCurrentUser(){const f=await this.persistence._get(this.fullUserKey);return f?UserImpl._fromJSON(this.auth,f):null}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}async setPersistence(f){if(this.persistence===f)return;const d=await this.getCurrentUser();if(await this.removeCurrentUser(),this.persistence=f,d)return this.setCurrentUser(d)}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static async create(f,d,_="authUser"){if(!d.length)return new PersistenceUserManager(_getInstance(inMemoryPersistence),f,_);const x=(await Promise.all(d.map(async A=>{if(await A._isAvailable())return A}))).filter(A=>A);let I=x[0]||_getInstance(inMemoryPersistence);const E=_persistenceKeyName(_,f.config.apiKey,f.name);let M=null;for(const A of d)try{const T=await A._get(E);if(T){const D=UserImpl._fromJSON(f,T);A!==I&&(M=D),I=A;break}}catch{}const S=x.filter(A=>A._shouldAllowMigration);return!I._shouldAllowMigration||!S.length?new PersistenceUserManager(I,f,_):(I=S[0],M&&await I._set(E,M.toJSON()),await Promise.all(d.map(async A=>{if(A!==I)try{await A._remove(E)}catch{}})),new PersistenceUserManager(I,f,_))}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function _getBrowserName(u){const f=u.toLowerCase();if(f.includes("opera/")||f.includes("opr/")||f.includes("opios/"))return"Opera";if(_isIEMobile(f))return"IEMobile";if(f.includes("msie")||f.includes("trident/"))return"IE";if(f.includes("edge/"))return"Edge";if(_isFirefox(f))return"Firefox";if(f.includes("silk/"))return"Silk";if(_isBlackBerry(f))return"Blackberry";if(_isWebOS(f))return"Webos";if(_isSafari(f))return"Safari";if((f.includes("chrome/")||_isChromeIOS(f))&&!f.includes("edge/"))return"Chrome";if(_isAndroid(f))return"Android";{const d=/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/,_=u.match(d);if(_?.length===2)return _[1]}return"Other"}function _isFirefox(u=getUA()){return/firefox\//i.test(u)}function _isSafari(u=getUA()){const f=u.toLowerCase();return f.includes("safari/")&&!f.includes("chrome/")&&!f.includes("crios/")&&!f.includes("android")}function _isChromeIOS(u=getUA()){return/crios\//i.test(u)}function _isIEMobile(u=getUA()){return/iemobile/i.test(u)}function _isAndroid(u=getUA()){return/android/i.test(u)}function _isBlackBerry(u=getUA()){return/blackberry/i.test(u)}function _isWebOS(u=getUA()){return/webos/i.test(u)}function _isIOS(u=getUA()){return/iphone|ipad|ipod/i.test(u)||/macintosh/i.test(u)&&/mobile/i.test(u)}function _isIOSStandalone(u=getUA()){var f;return _isIOS(u)&&!!(!((f=window.navigator)===null||f===void 0)&&f.standalone)}function _isIE10(){return isIE$1()&&document.documentMode===10}function _isMobileBrowser(u=getUA()){return _isIOS(u)||_isAndroid(u)||_isWebOS(u)||_isBlackBerry(u)||/windows phone/i.test(u)||_isIEMobile(u)}function _isIframe(){try{return!!(window&&window!==window.top)}catch{return!1}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function _getClientVersion(u,f=[]){let d;switch(u){case"Browser":d=_getBrowserName(getUA());break;case"Worker":d=`${_getBrowserName(getUA())}-${u}`;break;default:d=u}const _=f.length?f.join(","):"FirebaseCore-web";return`${d}/JsCore/${SDK_VERSION}/${_}`}async function getRecaptchaConfig(u,f){return _performApiRequest(u,"GET","/v2/recaptchaConfig",_addTidIfNecessary(u,f))}function isEnterprise(u){return u!==void 0&&u.enterprise!==void 0}class RecaptchaConfig{constructor(f){if(this.siteKey="",this.emailPasswordEnabled=!1,f.recaptchaKey===void 0)throw new Error("recaptchaKey undefined");this.siteKey=f.recaptchaKey.split("/")[3],this.emailPasswordEnabled=f.recaptchaEnforcementState.some(d=>d.provider==="EMAIL_PASSWORD_PROVIDER"&&d.enforcementState!=="OFF")}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function getScriptParentElement(){var u,f;return(f=(u=document.getElementsByTagName("head"))===null||u===void 0?void 0:u[0])!==null&&f!==void 0?f:document}function _loadJS(u){return new Promise((f,d)=>{const _=document.createElement("script");_.setAttribute("src",u),_.onload=f,_.onerror=x=>{const I=_createError("internal-error");I.customData=x,d(I)},_.type="text/javascript",_.charset="UTF-8",getScriptParentElement().appendChild(_)})}function _generateCallbackName(u){return`__${u}${Math.floor(Math.random()*1e6)}`}const RECAPTCHA_ENTERPRISE_URL="https://www.google.com/recaptcha/enterprise.js?render=",RECAPTCHA_ENTERPRISE_VERIFIER_TYPE="recaptcha-enterprise",FAKE_TOKEN="NO_RECAPTCHA";class RecaptchaEnterpriseVerifier{constructor(f){this.type=RECAPTCHA_ENTERPRISE_VERIFIER_TYPE,this.auth=_castAuth(f)}async verify(f="verify",d=!1){async function _(I){if(!d){if(I.tenantId==null&&I._agentRecaptchaConfig!=null)return I._agentRecaptchaConfig.siteKey;if(I.tenantId!=null&&I._tenantRecaptchaConfigs[I.tenantId]!==void 0)return I._tenantRecaptchaConfigs[I.tenantId].siteKey}return new Promise(async(E,M)=>{getRecaptchaConfig(I,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}).then(S=>{if(S.recaptchaKey===void 0)M(new Error("recaptcha Enterprise site key undefined"));else{const A=new RecaptchaConfig(S);return I.tenantId==null?I._agentRecaptchaConfig=A:I._tenantRecaptchaConfigs[I.tenantId]=A,E(A.siteKey)}}).catch(S=>{M(S)})})}function x(I,E,M){const S=window.grecaptcha;isEnterprise(S)?S.enterprise.ready(()=>{S.enterprise.execute(I,{action:f}).then(A=>{E(A)}).catch(()=>{E(FAKE_TOKEN)})}):M(Error("No reCAPTCHA enterprise script loaded."))}return new Promise((I,E)=>{_(this.auth).then(M=>{if(!d&&isEnterprise(window.grecaptcha))x(M,I,E);else{if(typeof window>"u"){E(new Error("RecaptchaVerifier is only supported in browser"));return}_loadJS(RECAPTCHA_ENTERPRISE_URL+M).then(()=>{x(M,I,E)}).catch(S=>{E(S)})}}).catch(M=>{E(M)})})}}async function injectRecaptchaFields(u,f,d,_=!1){const x=new RecaptchaEnterpriseVerifier(u);let I;try{I=await x.verify(d)}catch{I=await x.verify(d,!0)}const E=Object.assign({},f);return _?Object.assign(E,{captchaResp:I}):Object.assign(E,{captchaResponse:I}),Object.assign(E,{clientType:"CLIENT_TYPE_WEB"}),Object.assign(E,{recaptchaVersion:"RECAPTCHA_ENTERPRISE"}),E}/**
 * @license
 * Copyright 2022 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class AuthMiddlewareQueue{constructor(f){this.auth=f,this.queue=[]}pushCallback(f,d){const _=I=>new Promise((E,M)=>{try{const S=f(I);E(S)}catch(S){M(S)}});_.onAbort=d,this.queue.push(_);const x=this.queue.length-1;return()=>{this.queue[x]=()=>Promise.resolve()}}async runMiddleware(f){if(this.auth.currentUser===f)return;const d=[];try{for(const _ of this.queue)await _(f),_.onAbort&&d.push(_.onAbort)}catch(_){d.reverse();for(const x of d)try{x()}catch{}throw this.auth._errorFactory.create("login-blocked",{originalMessage:_?.message})}}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class AuthImpl{constructor(f,d,_,x){this.app=f,this.heartbeatServiceProvider=d,this.appCheckServiceProvider=_,this.config=x,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new Subscription(this),this.idTokenSubscription=new Subscription(this),this.beforeStateQueue=new AuthMiddlewareQueue(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=_DEFAULT_AUTH_ERROR_FACTORY,this._agentRecaptchaConfig=null,this._tenantRecaptchaConfigs={},this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=f.name,this.clientVersion=x.sdkClientVersion}_initializeWithPersistence(f,d){return d&&(this._popupRedirectResolver=_getInstance(d)),this._initializationPromise=this.queue(async()=>{var _,x;if(!this._deleted&&(this.persistenceManager=await PersistenceUserManager.create(this,f),!this._deleted)){if(!((_=this._popupRedirectResolver)===null||_===void 0)&&_._shouldInitProactively)try{await this._popupRedirectResolver._initialize(this)}catch{}await this.initializeCurrentUser(d),this.lastNotifiedUid=((x=this.currentUser)===null||x===void 0?void 0:x.uid)||null,!this._deleted&&(this._isInitialized=!0)}}),this._initializationPromise}async _onStorageEvent(){if(this._deleted)return;const f=await this.assertedPersistence.getCurrentUser();if(!(!this.currentUser&&!f)){if(this.currentUser&&f&&this.currentUser.uid===f.uid){this._currentUser._assign(f),await this.currentUser.getIdToken();return}await this._updateCurrentUser(f,!0)}}async initializeCurrentUser(f){var d;const _=await this.assertedPersistence.getCurrentUser();let x=_,I=!1;if(f&&this.config.authDomain){await this.getOrInitRedirectPersistenceManager();const E=(d=this.redirectUser)===null||d===void 0?void 0:d._redirectEventId,M=x?._redirectEventId,S=await this.tryRedirectSignIn(f);(!E||E===M)&&S?.user&&(x=S.user,I=!0)}if(!x)return this.directlySetCurrentUser(null);if(!x._redirectEventId){if(I)try{await this.beforeStateQueue.runMiddleware(x)}catch(E){x=_,this._popupRedirectResolver._overrideRedirectResult(this,()=>Promise.reject(E))}return x?this.reloadAndSetCurrentUserOrClear(x):this.directlySetCurrentUser(null)}return _assert(this._popupRedirectResolver,this,"argument-error"),await this.getOrInitRedirectPersistenceManager(),this.redirectUser&&this.redirectUser._redirectEventId===x._redirectEventId?this.directlySetCurrentUser(x):this.reloadAndSetCurrentUserOrClear(x)}async tryRedirectSignIn(f){let d=null;try{d=await this._popupRedirectResolver._completeRedirectFn(this,f,!0)}catch{await this._setRedirectUser(null)}return d}async reloadAndSetCurrentUserOrClear(f){try{await _reloadWithoutSaving(f)}catch(d){if(d?.code!=="auth/network-request-failed")return this.directlySetCurrentUser(null)}return this.directlySetCurrentUser(f)}useDeviceLanguage(){this.languageCode=_getUserLanguage()}async _delete(){this._deleted=!0}async updateCurrentUser(f){const d=f?getModularInstance(f):null;return d&&_assert(d.auth.config.apiKey===this.config.apiKey,this,"invalid-user-token"),this._updateCurrentUser(d&&d._clone(this))}async _updateCurrentUser(f,d=!1){if(!this._deleted)return f&&_assert(this.tenantId===f.tenantId,this,"tenant-id-mismatch"),d||await this.beforeStateQueue.runMiddleware(f),this.queue(async()=>{await this.directlySetCurrentUser(f),this.notifyAuthListeners()})}async signOut(){return await this.beforeStateQueue.runMiddleware(null),(this.redirectPersistenceManager||this._popupRedirectResolver)&&await this._setRedirectUser(null),this._updateCurrentUser(null,!0)}setPersistence(f){return this.queue(async()=>{await this.assertedPersistence.setPersistence(_getInstance(f))})}async initializeRecaptchaConfig(){const f=await getRecaptchaConfig(this,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}),d=new RecaptchaConfig(f);this.tenantId==null?this._agentRecaptchaConfig=d:this._tenantRecaptchaConfigs[this.tenantId]=d,d.emailPasswordEnabled&&new RecaptchaEnterpriseVerifier(this).verify()}_getRecaptchaConfig(){return this.tenantId==null?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}_getPersistence(){return this.assertedPersistence.persistence.type}_updateErrorMap(f){this._errorFactory=new ErrorFactory("auth","Firebase",f())}onAuthStateChanged(f,d,_){return this.registerStateListener(this.authStateSubscription,f,d,_)}beforeAuthStateChanged(f,d){return this.beforeStateQueue.pushCallback(f,d)}onIdTokenChanged(f,d,_){return this.registerStateListener(this.idTokenSubscription,f,d,_)}toJSON(){var f;return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:(f=this._currentUser)===null||f===void 0?void 0:f.toJSON()}}async _setRedirectUser(f,d){const _=await this.getOrInitRedirectPersistenceManager(d);return f===null?_.removeCurrentUser():_.setCurrentUser(f)}async getOrInitRedirectPersistenceManager(f){if(!this.redirectPersistenceManager){const d=f&&_getInstance(f)||this._popupRedirectResolver;_assert(d,this,"argument-error"),this.redirectPersistenceManager=await PersistenceUserManager.create(this,[_getInstance(d._redirectPersistence)],"redirectUser"),this.redirectUser=await this.redirectPersistenceManager.getCurrentUser()}return this.redirectPersistenceManager}async _redirectUserForId(f){var d,_;return this._isInitialized&&await this.queue(async()=>{}),((d=this._currentUser)===null||d===void 0?void 0:d._redirectEventId)===f?this._currentUser:((_=this.redirectUser)===null||_===void 0?void 0:_._redirectEventId)===f?this.redirectUser:null}async _persistUserIfCurrent(f){if(f===this.currentUser)return this.queue(async()=>this.directlySetCurrentUser(f))}_notifyListenersIfCurrent(f){f===this.currentUser&&this.notifyAuthListeners()}_key(){return`${this.config.authDomain}:${this.config.apiKey}:${this.name}`}_startProactiveRefresh(){this.isProactiveRefreshEnabled=!0,this.currentUser&&this._currentUser._startProactiveRefresh()}_stopProactiveRefresh(){this.isProactiveRefreshEnabled=!1,this.currentUser&&this._currentUser._stopProactiveRefresh()}get _currentUser(){return this.currentUser}notifyAuthListeners(){var f,d;if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);const _=(d=(f=this.currentUser)===null||f===void 0?void 0:f.uid)!==null&&d!==void 0?d:null;this.lastNotifiedUid!==_&&(this.lastNotifiedUid=_,this.authStateSubscription.next(this.currentUser))}registerStateListener(f,d,_,x){if(this._deleted)return()=>{};const I=typeof d=="function"?d:d.next.bind(d),E=this._isInitialized?Promise.resolve():this._initializationPromise;return _assert(E,this,"internal-error"),E.then(()=>I(this.currentUser)),typeof d=="function"?f.addObserver(d,_,x):f.addObserver(d)}async directlySetCurrentUser(f){this.currentUser&&this.currentUser!==f&&this._currentUser._stopProactiveRefresh(),f&&this.isProactiveRefreshEnabled&&f._startProactiveRefresh(),this.currentUser=f,f?await this.assertedPersistence.setCurrentUser(f):await this.assertedPersistence.removeCurrentUser()}queue(f){return this.operations=this.operations.then(f,f),this.operations}get assertedPersistence(){return _assert(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(f){!f||this.frameworks.includes(f)||(this.frameworks.push(f),this.frameworks.sort(),this.clientVersion=_getClientVersion(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}async _getAdditionalHeaders(){var f;const d={"X-Client-Version":this.clientVersion};this.app.options.appId&&(d["X-Firebase-gmpid"]=this.app.options.appId);const _=await((f=this.heartbeatServiceProvider.getImmediate({optional:!0}))===null||f===void 0?void 0:f.getHeartbeatsHeader());_&&(d["X-Firebase-Client"]=_);const x=await this._getAppCheckToken();return x&&(d["X-Firebase-AppCheck"]=x),d}async _getAppCheckToken(){var f;const d=await((f=this.appCheckServiceProvider.getImmediate({optional:!0}))===null||f===void 0?void 0:f.getToken());return d?.error&&_logWarn(`Error while retrieving App Check token: ${d.error}`),d?.token}}function _castAuth(u){return getModularInstance(u)}class Subscription{constructor(f){this.auth=f,this.observer=null,this.addObserver=createSubscribe(d=>this.observer=d)}get next(){return _assert(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function initializeAuth(u,f){const d=_getProvider(u,"auth");if(d.isInitialized()){const x=d.getImmediate(),I=d.getOptions();if(deepEqual$1(I,f??{}))return x;_fail(x,"already-initialized")}return d.initialize({options:f})}function _initializeAuthInstance(u,f){const d=f?.persistence||[],_=(Array.isArray(d)?d:[d]).map(_getInstance);f?.errorMap&&u._updateErrorMap(f.errorMap),u._initializeWithPersistence(_,f?.popupRedirectResolver)}function connectAuthEmulator(u,f,d){const _=_castAuth(u);_assert(_._canInitEmulator,_,"emulator-config-failed"),_assert(/^https?:\/\//.test(f),_,"invalid-emulator-scheme");const x=!!d?.disableWarnings,I=extractProtocol(f),{host:E,port:M}=extractHostAndPort(f),S=M===null?"":`:${M}`;_.config.emulator={url:`${I}//${E}${S}/`},_.settings.appVerificationDisabledForTesting=!0,_.emulatorConfig=Object.freeze({host:E,port:M,protocol:I.replace(":",""),options:Object.freeze({disableWarnings:x})}),x||emitEmulatorWarning()}function extractProtocol(u){const f=u.indexOf(":");return f<0?"":u.substr(0,f+1)}function extractHostAndPort(u){const f=extractProtocol(u),d=/(\/\/)?([^?#/]+)/.exec(u.substr(f.length));if(!d)return{host:"",port:null};const _=d[2].split("@").pop()||"",x=/^(\[[^\]]+\])(:|$)/.exec(_);if(x){const I=x[1];return{host:I,port:parsePort(_.substr(I.length+1))}}else{const[I,E]=_.split(":");return{host:I,port:parsePort(E)}}}function parsePort(u){if(!u)return null;const f=Number(u);return isNaN(f)?null:f}function emitEmulatorWarning(){function u(){const f=document.createElement("p"),d=f.style;f.innerText="Running in emulator mode. Do not use with production credentials.",d.position="fixed",d.width="100%",d.backgroundColor="#ffffff",d.border=".1em solid #000000",d.color="#b50000",d.bottom="0px",d.left="0px",d.margin="0px",d.zIndex="10000",d.textAlign="center",f.classList.add("firebase-emulator-warning"),document.body.appendChild(f)}typeof console<"u"&&typeof console.info=="function"&&console.info("WARNING: You are using the Auth Emulator, which is intended for local testing only.  Do not use with production credentials."),typeof window<"u"&&typeof document<"u"&&(document.readyState==="loading"?window.addEventListener("DOMContentLoaded",u):u())}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class AuthCredential{constructor(f,d){this.providerId=f,this.signInMethod=d}toJSON(){return debugFail("not implemented")}_getIdTokenResponse(f){return debugFail("not implemented")}_linkToIdToken(f,d){return debugFail("not implemented")}_getReauthenticationResolver(f){return debugFail("not implemented")}}async function updateEmailPassword(u,f){return _performApiRequest(u,"POST","/v1/accounts:update",f)}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function signInWithPassword(u,f){return _performSignInRequest(u,"POST","/v1/accounts:signInWithPassword",_addTidIfNecessary(u,f))}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function signInWithEmailLink$1(u,f){return _performSignInRequest(u,"POST","/v1/accounts:signInWithEmailLink",_addTidIfNecessary(u,f))}async function signInWithEmailLinkForLinking(u,f){return _performSignInRequest(u,"POST","/v1/accounts:signInWithEmailLink",_addTidIfNecessary(u,f))}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class EmailAuthCredential extends AuthCredential{constructor(f,d,_,x=null){super("password",_),this._email=f,this._password=d,this._tenantId=x}static _fromEmailAndPassword(f,d){return new EmailAuthCredential(f,d,"password")}static _fromEmailAndCode(f,d,_=null){return new EmailAuthCredential(f,d,"emailLink",_)}toJSON(){return{email:this._email,password:this._password,signInMethod:this.signInMethod,tenantId:this._tenantId}}static fromJSON(f){const d=typeof f=="string"?JSON.parse(f):f;if(d?.email&&d?.password){if(d.signInMethod==="password")return this._fromEmailAndPassword(d.email,d.password);if(d.signInMethod==="emailLink")return this._fromEmailAndCode(d.email,d.password,d.tenantId)}return null}async _getIdTokenResponse(f){var d;switch(this.signInMethod){case"password":const _={returnSecureToken:!0,email:this._email,password:this._password,clientType:"CLIENT_TYPE_WEB"};if(!((d=f._getRecaptchaConfig())===null||d===void 0)&&d.emailPasswordEnabled){const x=await injectRecaptchaFields(f,_,"signInWithPassword");return signInWithPassword(f,x)}else return signInWithPassword(f,_).catch(async x=>{if(x.code==="auth/missing-recaptcha-token"){console.log("Sign-in with email address and password is protected by reCAPTCHA for this project. Automatically triggering the reCAPTCHA flow and restarting the sign-in flow.");const I=await injectRecaptchaFields(f,_,"signInWithPassword");return signInWithPassword(f,I)}else return Promise.reject(x)});case"emailLink":return signInWithEmailLink$1(f,{email:this._email,oobCode:this._password});default:_fail(f,"internal-error")}}async _linkToIdToken(f,d){switch(this.signInMethod){case"password":return updateEmailPassword(f,{idToken:d,returnSecureToken:!0,email:this._email,password:this._password});case"emailLink":return signInWithEmailLinkForLinking(f,{idToken:d,email:this._email,oobCode:this._password});default:_fail(f,"internal-error")}}_getReauthenticationResolver(f){return this._getIdTokenResponse(f)}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function signInWithIdp(u,f){return _performSignInRequest(u,"POST","/v1/accounts:signInWithIdp",_addTidIfNecessary(u,f))}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const IDP_REQUEST_URI$1="http://localhost";class OAuthCredential extends AuthCredential{constructor(){super(...arguments),this.pendingToken=null}static _fromParams(f){const d=new OAuthCredential(f.providerId,f.signInMethod);return f.idToken||f.accessToken?(f.idToken&&(d.idToken=f.idToken),f.accessToken&&(d.accessToken=f.accessToken),f.nonce&&!f.pendingToken&&(d.nonce=f.nonce),f.pendingToken&&(d.pendingToken=f.pendingToken)):f.oauthToken&&f.oauthTokenSecret?(d.accessToken=f.oauthToken,d.secret=f.oauthTokenSecret):_fail("argument-error"),d}toJSON(){return{idToken:this.idToken,accessToken:this.accessToken,secret:this.secret,nonce:this.nonce,pendingToken:this.pendingToken,providerId:this.providerId,signInMethod:this.signInMethod}}static fromJSON(f){const d=typeof f=="string"?JSON.parse(f):f,{providerId:_,signInMethod:x}=d,I=__rest(d,["providerId","signInMethod"]);if(!_||!x)return null;const E=new OAuthCredential(_,x);return E.idToken=I.idToken||void 0,E.accessToken=I.accessToken||void 0,E.secret=I.secret,E.nonce=I.nonce,E.pendingToken=I.pendingToken||null,E}_getIdTokenResponse(f){const d=this.buildRequest();return signInWithIdp(f,d)}_linkToIdToken(f,d){const _=this.buildRequest();return _.idToken=d,signInWithIdp(f,_)}_getReauthenticationResolver(f){const d=this.buildRequest();return d.autoCreate=!1,signInWithIdp(f,d)}buildRequest(){const f={requestUri:IDP_REQUEST_URI$1,returnSecureToken:!0};if(this.pendingToken)f.pendingToken=this.pendingToken;else{const d={};this.idToken&&(d.id_token=this.idToken),this.accessToken&&(d.access_token=this.accessToken),this.secret&&(d.oauth_token_secret=this.secret),d.providerId=this.providerId,this.nonce&&!this.pendingToken&&(d.nonce=this.nonce),f.postBody=querystring$1(d)}return f}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function parseMode(u){switch(u){case"recoverEmail":return"RECOVER_EMAIL";case"resetPassword":return"PASSWORD_RESET";case"signIn":return"EMAIL_SIGNIN";case"verifyEmail":return"VERIFY_EMAIL";case"verifyAndChangeEmail":return"VERIFY_AND_CHANGE_EMAIL";case"revertSecondFactorAddition":return"REVERT_SECOND_FACTOR_ADDITION";default:return null}}function parseDeepLink(u){const f=querystringDecode(extractQuerystring(u)).link,d=f?querystringDecode(extractQuerystring(f)).deep_link_id:null,_=querystringDecode(extractQuerystring(u)).deep_link_id;return(_?querystringDecode(extractQuerystring(_)).link:null)||_||d||f||u}class ActionCodeURL{constructor(f){var d,_,x,I,E,M;const S=querystringDecode(extractQuerystring(f)),A=(d=S.apiKey)!==null&&d!==void 0?d:null,T=(_=S.oobCode)!==null&&_!==void 0?_:null,D=parseMode((x=S.mode)!==null&&x!==void 0?x:null);_assert(A&&T&&D,"argument-error"),this.apiKey=A,this.operation=D,this.code=T,this.continueUrl=(I=S.continueUrl)!==null&&I!==void 0?I:null,this.languageCode=(E=S.languageCode)!==null&&E!==void 0?E:null,this.tenantId=(M=S.tenantId)!==null&&M!==void 0?M:null}static parseLink(f){const d=parseDeepLink(f);try{return new ActionCodeURL(d)}catch{return null}}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class EmailAuthProvider{constructor(){this.providerId=EmailAuthProvider.PROVIDER_ID}static credential(f,d){return EmailAuthCredential._fromEmailAndPassword(f,d)}static credentialWithLink(f,d){const _=ActionCodeURL.parseLink(d);return _assert(_,"argument-error"),EmailAuthCredential._fromEmailAndCode(f,_.code,_.tenantId)}}EmailAuthProvider.PROVIDER_ID="password";EmailAuthProvider.EMAIL_PASSWORD_SIGN_IN_METHOD="password";EmailAuthProvider.EMAIL_LINK_SIGN_IN_METHOD="emailLink";/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class FederatedAuthProvider{constructor(f){this.providerId=f,this.defaultLanguageCode=null,this.customParameters={}}setDefaultLanguage(f){this.defaultLanguageCode=f}setCustomParameters(f){return this.customParameters=f,this}getCustomParameters(){return this.customParameters}}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class BaseOAuthProvider extends FederatedAuthProvider{constructor(){super(...arguments),this.scopes=[]}addScope(f){return this.scopes.includes(f)||this.scopes.push(f),this}getScopes(){return[...this.scopes]}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class FacebookAuthProvider extends BaseOAuthProvider{constructor(){super("facebook.com")}static credential(f){return OAuthCredential._fromParams({providerId:FacebookAuthProvider.PROVIDER_ID,signInMethod:FacebookAuthProvider.FACEBOOK_SIGN_IN_METHOD,accessToken:f})}static credentialFromResult(f){return FacebookAuthProvider.credentialFromTaggedObject(f)}static credentialFromError(f){return FacebookAuthProvider.credentialFromTaggedObject(f.customData||{})}static credentialFromTaggedObject({_tokenResponse:f}){if(!f||!("oauthAccessToken"in f)||!f.oauthAccessToken)return null;try{return FacebookAuthProvider.credential(f.oauthAccessToken)}catch{return null}}}FacebookAuthProvider.FACEBOOK_SIGN_IN_METHOD="facebook.com";FacebookAuthProvider.PROVIDER_ID="facebook.com";/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class GoogleAuthProvider extends BaseOAuthProvider{constructor(){super("google.com"),this.addScope("profile")}static credential(f,d){return OAuthCredential._fromParams({providerId:GoogleAuthProvider.PROVIDER_ID,signInMethod:GoogleAuthProvider.GOOGLE_SIGN_IN_METHOD,idToken:f,accessToken:d})}static credentialFromResult(f){return GoogleAuthProvider.credentialFromTaggedObject(f)}static credentialFromError(f){return GoogleAuthProvider.credentialFromTaggedObject(f.customData||{})}static credentialFromTaggedObject({_tokenResponse:f}){if(!f)return null;const{oauthIdToken:d,oauthAccessToken:_}=f;if(!d&&!_)return null;try{return GoogleAuthProvider.credential(d,_)}catch{return null}}}GoogleAuthProvider.GOOGLE_SIGN_IN_METHOD="google.com";GoogleAuthProvider.PROVIDER_ID="google.com";/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class GithubAuthProvider extends BaseOAuthProvider{constructor(){super("github.com")}static credential(f){return OAuthCredential._fromParams({providerId:GithubAuthProvider.PROVIDER_ID,signInMethod:GithubAuthProvider.GITHUB_SIGN_IN_METHOD,accessToken:f})}static credentialFromResult(f){return GithubAuthProvider.credentialFromTaggedObject(f)}static credentialFromError(f){return GithubAuthProvider.credentialFromTaggedObject(f.customData||{})}static credentialFromTaggedObject({_tokenResponse:f}){if(!f||!("oauthAccessToken"in f)||!f.oauthAccessToken)return null;try{return GithubAuthProvider.credential(f.oauthAccessToken)}catch{return null}}}GithubAuthProvider.GITHUB_SIGN_IN_METHOD="github.com";GithubAuthProvider.PROVIDER_ID="github.com";/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class TwitterAuthProvider extends BaseOAuthProvider{constructor(){super("twitter.com")}static credential(f,d){return OAuthCredential._fromParams({providerId:TwitterAuthProvider.PROVIDER_ID,signInMethod:TwitterAuthProvider.TWITTER_SIGN_IN_METHOD,oauthToken:f,oauthTokenSecret:d})}static credentialFromResult(f){return TwitterAuthProvider.credentialFromTaggedObject(f)}static credentialFromError(f){return TwitterAuthProvider.credentialFromTaggedObject(f.customData||{})}static credentialFromTaggedObject({_tokenResponse:f}){if(!f)return null;const{oauthAccessToken:d,oauthTokenSecret:_}=f;if(!d||!_)return null;try{return TwitterAuthProvider.credential(d,_)}catch{return null}}}TwitterAuthProvider.TWITTER_SIGN_IN_METHOD="twitter.com";TwitterAuthProvider.PROVIDER_ID="twitter.com";/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class UserCredentialImpl{constructor(f){this.user=f.user,this.providerId=f.providerId,this._tokenResponse=f._tokenResponse,this.operationType=f.operationType}static async _fromIdTokenResponse(f,d,_,x=!1){const I=await UserImpl._fromIdTokenResponse(f,_,x),E=providerIdForResponse(_);return new UserCredentialImpl({user:I,providerId:E,_tokenResponse:_,operationType:d})}static async _forOperation(f,d,_){await f._updateTokensIfNecessary(_,!0);const x=providerIdForResponse(_);return new UserCredentialImpl({user:f,providerId:x,_tokenResponse:_,operationType:d})}}function providerIdForResponse(u){return u.providerId?u.providerId:"phoneNumber"in u?"phone":null}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class MultiFactorError extends FirebaseError{constructor(f,d,_,x){var I;super(d.code,d.message),this.operationType=_,this.user=x,Object.setPrototypeOf(this,MultiFactorError.prototype),this.customData={appName:f.name,tenantId:(I=f.tenantId)!==null&&I!==void 0?I:void 0,_serverResponse:d.customData._serverResponse,operationType:_}}static _fromErrorAndOperation(f,d,_,x){return new MultiFactorError(f,d,_,x)}}function _processCredentialSavingMfaContextIfNecessary(u,f,d,_){return(f==="reauthenticate"?d._getReauthenticationResolver(u):d._getIdTokenResponse(u)).catch(I=>{throw I.code==="auth/multi-factor-auth-required"?MultiFactorError._fromErrorAndOperation(u,I,f,_):I})}async function _link$1(u,f,d=!1){const _=await _logoutIfInvalidated(u,f._linkToIdToken(u.auth,await u.getIdToken()),d);return UserCredentialImpl._forOperation(u,"link",_)}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function _reauthenticate(u,f,d=!1){const{auth:_}=u,x="reauthenticate";try{const I=await _logoutIfInvalidated(u,_processCredentialSavingMfaContextIfNecessary(_,x,f,u),d);_assert(I.idToken,_,"internal-error");const E=_parseToken(I.idToken);_assert(E,_,"internal-error");const{sub:M}=E;return _assert(u.uid===M,_,"user-mismatch"),UserCredentialImpl._forOperation(u,x,I)}catch(I){throw I?.code==="auth/user-not-found"&&_fail(_,"user-mismatch"),I}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function _signInWithCredential(u,f,d=!1){const _="signIn",x=await _processCredentialSavingMfaContextIfNecessary(u,_,f),I=await UserCredentialImpl._fromIdTokenResponse(u,_,x);return d||await u._updateCurrentUser(I.user),I}async function signInWithCredential(u,f){return _signInWithCredential(_castAuth(u),f)}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function signInWithCustomToken$1(u,f){return _performSignInRequest(u,"POST","/v1/accounts:signInWithCustomToken",_addTidIfNecessary(u,f))}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function signInWithCustomToken(u,f){const d=_castAuth(u),_=await signInWithCustomToken$1(d,{token:f,returnSecureToken:!0}),x=await UserCredentialImpl._fromIdTokenResponse(d,"signIn",_);return await d._updateCurrentUser(x.user),x}function signInWithEmailAndPassword(u,f,d){return signInWithCredential(getModularInstance(u),EmailAuthProvider.credential(f,d))}function updatePassword(u,f){return updateEmailOrPassword(getModularInstance(u),null,f)}async function updateEmailOrPassword(u,f,d){const{auth:_}=u,I={idToken:await u.getIdToken(),returnSecureToken:!0};f&&(I.email=f),d&&(I.password=d);const E=await _logoutIfInvalidated(u,updateEmailPassword(_,I));await u._updateTokensIfNecessary(E,!0)}function onIdTokenChanged(u,f,d,_){return getModularInstance(u).onIdTokenChanged(f,d,_)}function beforeAuthStateChanged(u,f,d){return getModularInstance(u).beforeAuthStateChanged(f,d)}const STORAGE_AVAILABLE_KEY="__sak";/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class BrowserPersistenceClass{constructor(f,d){this.storageRetriever=f,this.type=d}_isAvailable(){try{return this.storage?(this.storage.setItem(STORAGE_AVAILABLE_KEY,"1"),this.storage.removeItem(STORAGE_AVAILABLE_KEY),Promise.resolve(!0)):Promise.resolve(!1)}catch{return Promise.resolve(!1)}}_set(f,d){return this.storage.setItem(f,JSON.stringify(d)),Promise.resolve()}_get(f){const d=this.storage.getItem(f);return Promise.resolve(d?JSON.parse(d):null)}_remove(f){return this.storage.removeItem(f),Promise.resolve()}get storage(){return this.storageRetriever()}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function _iframeCannotSyncWebStorage(){const u=getUA();return _isSafari(u)||_isIOS(u)}const _POLLING_INTERVAL_MS$1=1e3,IE10_LOCAL_STORAGE_SYNC_DELAY=10;class BrowserLocalPersistence extends BrowserPersistenceClass{constructor(){super(()=>window.localStorage,"LOCAL"),this.boundEventHandler=(f,d)=>this.onStorageEvent(f,d),this.listeners={},this.localCache={},this.pollTimer=null,this.safariLocalStorageNotSynced=_iframeCannotSyncWebStorage()&&_isIframe(),this.fallbackToPolling=_isMobileBrowser(),this._shouldAllowMigration=!0}forAllChangedKeys(f){for(const d of Object.keys(this.listeners)){const _=this.storage.getItem(d),x=this.localCache[d];_!==x&&f(d,x,_)}}onStorageEvent(f,d=!1){if(!f.key){this.forAllChangedKeys((E,M,S)=>{this.notifyListeners(E,S)});return}const _=f.key;if(d?this.detachListener():this.stopPolling(),this.safariLocalStorageNotSynced){const E=this.storage.getItem(_);if(f.newValue!==E)f.newValue!==null?this.storage.setItem(_,f.newValue):this.storage.removeItem(_);else if(this.localCache[_]===f.newValue&&!d)return}const x=()=>{const E=this.storage.getItem(_);!d&&this.localCache[_]===E||this.notifyListeners(_,E)},I=this.storage.getItem(_);_isIE10()&&I!==f.newValue&&f.newValue!==f.oldValue?setTimeout(x,IE10_LOCAL_STORAGE_SYNC_DELAY):x()}notifyListeners(f,d){this.localCache[f]=d;const _=this.listeners[f];if(_)for(const x of Array.from(_))x(d&&JSON.parse(d))}startPolling(){this.stopPolling(),this.pollTimer=setInterval(()=>{this.forAllChangedKeys((f,d,_)=>{this.onStorageEvent(new StorageEvent("storage",{key:f,oldValue:d,newValue:_}),!0)})},_POLLING_INTERVAL_MS$1)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}attachListener(){window.addEventListener("storage",this.boundEventHandler)}detachListener(){window.removeEventListener("storage",this.boundEventHandler)}_addListener(f,d){Object.keys(this.listeners).length===0&&(this.fallbackToPolling?this.startPolling():this.attachListener()),this.listeners[f]||(this.listeners[f]=new Set,this.localCache[f]=this.storage.getItem(f)),this.listeners[f].add(d)}_removeListener(f,d){this.listeners[f]&&(this.listeners[f].delete(d),this.listeners[f].size===0&&delete this.listeners[f]),Object.keys(this.listeners).length===0&&(this.detachListener(),this.stopPolling())}async _set(f,d){await super._set(f,d),this.localCache[f]=JSON.stringify(d)}async _get(f){const d=await super._get(f);return this.localCache[f]=JSON.stringify(d),d}async _remove(f){await super._remove(f),delete this.localCache[f]}}BrowserLocalPersistence.type="LOCAL";const browserLocalPersistence=BrowserLocalPersistence;/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class BrowserSessionPersistence extends BrowserPersistenceClass{constructor(){super(()=>window.sessionStorage,"SESSION")}_addListener(f,d){}_removeListener(f,d){}}BrowserSessionPersistence.type="SESSION";const browserSessionPersistence=BrowserSessionPersistence;/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function _allSettled(u){return Promise.all(u.map(async f=>{try{return{fulfilled:!0,value:await f}}catch(d){return{fulfilled:!1,reason:d}}}))}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class Receiver{constructor(f){this.eventTarget=f,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}static _getInstance(f){const d=this.receivers.find(x=>x.isListeningto(f));if(d)return d;const _=new Receiver(f);return this.receivers.push(_),_}isListeningto(f){return this.eventTarget===f}async handleEvent(f){const d=f,{eventId:_,eventType:x,data:I}=d.data,E=this.handlersMap[x];if(!E?.size)return;d.ports[0].postMessage({status:"ack",eventId:_,eventType:x});const M=Array.from(E).map(async A=>A(d.origin,I)),S=await _allSettled(M);d.ports[0].postMessage({status:"done",eventId:_,eventType:x,response:S})}_subscribe(f,d){Object.keys(this.handlersMap).length===0&&this.eventTarget.addEventListener("message",this.boundEventHandler),this.handlersMap[f]||(this.handlersMap[f]=new Set),this.handlersMap[f].add(d)}_unsubscribe(f,d){this.handlersMap[f]&&d&&this.handlersMap[f].delete(d),(!d||this.handlersMap[f].size===0)&&delete this.handlersMap[f],Object.keys(this.handlersMap).length===0&&this.eventTarget.removeEventListener("message",this.boundEventHandler)}}Receiver.receivers=[];/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function _generateEventId(u="",f=10){let d="";for(let _=0;_<f;_++)d+=Math.floor(Math.random()*10);return u+d}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class Sender{constructor(f){this.target=f,this.handlers=new Set}removeMessageHandler(f){f.messageChannel&&(f.messageChannel.port1.removeEventListener("message",f.onMessage),f.messageChannel.port1.close()),this.handlers.delete(f)}async _send(f,d,_=50){const x=typeof MessageChannel<"u"?new MessageChannel:null;if(!x)throw new Error("connection_unavailable");let I,E;return new Promise((M,S)=>{const A=_generateEventId("",20);x.port1.start();const T=setTimeout(()=>{S(new Error("unsupported_event"))},_);E={messageChannel:x,onMessage(D){const O=D;if(O.data.eventId===A)switch(O.data.status){case"ack":clearTimeout(T),I=setTimeout(()=>{S(new Error("timeout"))},3e3);break;case"done":clearTimeout(I),M(O.data.response);break;default:clearTimeout(T),clearTimeout(I),S(new Error("invalid_response"));break}}},this.handlers.add(E),x.port1.addEventListener("message",E.onMessage),this.target.postMessage({eventType:f,eventId:A,data:d},[x.port2])}).finally(()=>{E&&this.removeMessageHandler(E)})}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function _window(){return window}function _setWindowLocation(u){_window().location.href=u}/**
 * @license
 * Copyright 2020 Google LLC.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function _isWorker(){return typeof _window().WorkerGlobalScope<"u"&&typeof _window().importScripts=="function"}async function _getActiveServiceWorker(){if(!navigator?.serviceWorker)return null;try{return(await navigator.serviceWorker.ready).active}catch{return null}}function _getServiceWorkerController(){var u;return((u=navigator?.serviceWorker)===null||u===void 0?void 0:u.controller)||null}function _getWorkerGlobalScope(){return _isWorker()?self:null}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const DB_NAME="firebaseLocalStorageDb",DB_VERSION=1,DB_OBJECTSTORE_NAME="firebaseLocalStorage",DB_DATA_KEYPATH="fbase_key";class DBPromise{constructor(f){this.request=f}toPromise(){return new Promise((f,d)=>{this.request.addEventListener("success",()=>{f(this.request.result)}),this.request.addEventListener("error",()=>{d(this.request.error)})})}}function getObjectStore(u,f){return u.transaction([DB_OBJECTSTORE_NAME],f?"readwrite":"readonly").objectStore(DB_OBJECTSTORE_NAME)}function _deleteDatabase(){const u=indexedDB.deleteDatabase(DB_NAME);return new DBPromise(u).toPromise()}function _openDatabase(){const u=indexedDB.open(DB_NAME,DB_VERSION);return new Promise((f,d)=>{u.addEventListener("error",()=>{d(u.error)}),u.addEventListener("upgradeneeded",()=>{const _=u.result;try{_.createObjectStore(DB_OBJECTSTORE_NAME,{keyPath:DB_DATA_KEYPATH})}catch(x){d(x)}}),u.addEventListener("success",async()=>{const _=u.result;_.objectStoreNames.contains(DB_OBJECTSTORE_NAME)?f(_):(_.close(),await _deleteDatabase(),f(await _openDatabase()))})})}async function _putObject(u,f,d){const _=getObjectStore(u,!0).put({[DB_DATA_KEYPATH]:f,value:d});return new DBPromise(_).toPromise()}async function getObject(u,f){const d=getObjectStore(u,!1).get(f),_=await new DBPromise(d).toPromise();return _===void 0?null:_.value}function _deleteObject(u,f){const d=getObjectStore(u,!0).delete(f);return new DBPromise(d).toPromise()}const _POLLING_INTERVAL_MS=800,_TRANSACTION_RETRY_COUNT=3;class IndexedDBLocalPersistence{constructor(){this.type="LOCAL",this._shouldAllowMigration=!0,this.listeners={},this.localCache={},this.pollTimer=null,this.pendingWrites=0,this.receiver=null,this.sender=null,this.serviceWorkerReceiverAvailable=!1,this.activeServiceWorker=null,this._workerInitializationPromise=this.initializeServiceWorkerMessaging().then(()=>{},()=>{})}async _openDb(){return this.db?this.db:(this.db=await _openDatabase(),this.db)}async _withRetries(f){let d=0;for(;;)try{const _=await this._openDb();return await f(_)}catch(_){if(d++>_TRANSACTION_RETRY_COUNT)throw _;this.db&&(this.db.close(),this.db=void 0)}}async initializeServiceWorkerMessaging(){return _isWorker()?this.initializeReceiver():this.initializeSender()}async initializeReceiver(){this.receiver=Receiver._getInstance(_getWorkerGlobalScope()),this.receiver._subscribe("keyChanged",async(f,d)=>({keyProcessed:(await this._poll()).includes(d.key)})),this.receiver._subscribe("ping",async(f,d)=>["keyChanged"])}async initializeSender(){var f,d;if(this.activeServiceWorker=await _getActiveServiceWorker(),!this.activeServiceWorker)return;this.sender=new Sender(this.activeServiceWorker);const _=await this.sender._send("ping",{},800);_&&!((f=_[0])===null||f===void 0)&&f.fulfilled&&!((d=_[0])===null||d===void 0)&&d.value.includes("keyChanged")&&(this.serviceWorkerReceiverAvailable=!0)}async notifyServiceWorker(f){if(!(!this.sender||!this.activeServiceWorker||_getServiceWorkerController()!==this.activeServiceWorker))try{await this.sender._send("keyChanged",{key:f},this.serviceWorkerReceiverAvailable?800:50)}catch{}}async _isAvailable(){try{if(!indexedDB)return!1;const f=await _openDatabase();return await _putObject(f,STORAGE_AVAILABLE_KEY,"1"),await _deleteObject(f,STORAGE_AVAILABLE_KEY),!0}catch{}return!1}async _withPendingWrite(f){this.pendingWrites++;try{await f()}finally{this.pendingWrites--}}async _set(f,d){return this._withPendingWrite(async()=>(await this._withRetries(_=>_putObject(_,f,d)),this.localCache[f]=d,this.notifyServiceWorker(f)))}async _get(f){const d=await this._withRetries(_=>getObject(_,f));return this.localCache[f]=d,d}async _remove(f){return this._withPendingWrite(async()=>(await this._withRetries(d=>_deleteObject(d,f)),delete this.localCache[f],this.notifyServiceWorker(f)))}async _poll(){const f=await this._withRetries(x=>{const I=getObjectStore(x,!1).getAll();return new DBPromise(I).toPromise()});if(!f)return[];if(this.pendingWrites!==0)return[];const d=[],_=new Set;for(const{fbase_key:x,value:I}of f)_.add(x),JSON.stringify(this.localCache[x])!==JSON.stringify(I)&&(this.notifyListeners(x,I),d.push(x));for(const x of Object.keys(this.localCache))this.localCache[x]&&!_.has(x)&&(this.notifyListeners(x,null),d.push(x));return d}notifyListeners(f,d){this.localCache[f]=d;const _=this.listeners[f];if(_)for(const x of Array.from(_))x(d)}startPolling(){this.stopPolling(),this.pollTimer=setInterval(async()=>this._poll(),_POLLING_INTERVAL_MS)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}_addListener(f,d){Object.keys(this.listeners).length===0&&this.startPolling(),this.listeners[f]||(this.listeners[f]=new Set,this._get(f)),this.listeners[f].add(d)}_removeListener(f,d){this.listeners[f]&&(this.listeners[f].delete(d),this.listeners[f].size===0&&delete this.listeners[f]),Object.keys(this.listeners).length===0&&this.stopPolling()}}IndexedDBLocalPersistence.type="LOCAL";const indexedDBLocalPersistence=IndexedDBLocalPersistence;new Delay(3e4,6e4);/**
 * @license
 * Copyright 2021 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function _withDefaultResolver(u,f){return f?_getInstance(f):(_assert(u._popupRedirectResolver,u,"argument-error"),u._popupRedirectResolver)}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class IdpCredential extends AuthCredential{constructor(f){super("custom","custom"),this.params=f}_getIdTokenResponse(f){return signInWithIdp(f,this._buildIdpRequest())}_linkToIdToken(f,d){return signInWithIdp(f,this._buildIdpRequest(d))}_getReauthenticationResolver(f){return signInWithIdp(f,this._buildIdpRequest())}_buildIdpRequest(f){const d={requestUri:this.params.requestUri,sessionId:this.params.sessionId,postBody:this.params.postBody,tenantId:this.params.tenantId,pendingToken:this.params.pendingToken,returnSecureToken:!0,returnIdpCredential:!0};return f&&(d.idToken=f),d}}function _signIn(u){return _signInWithCredential(u.auth,new IdpCredential(u),u.bypassAuthState)}function _reauth(u){const{auth:f,user:d}=u;return _assert(d,f,"internal-error"),_reauthenticate(d,new IdpCredential(u),u.bypassAuthState)}async function _link(u){const{auth:f,user:d}=u;return _assert(d,f,"internal-error"),_link$1(d,new IdpCredential(u),u.bypassAuthState)}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class AbstractPopupRedirectOperation{constructor(f,d,_,x,I=!1){this.auth=f,this.resolver=_,this.user=x,this.bypassAuthState=I,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(d)?d:[d]}execute(){return new Promise(async(f,d)=>{this.pendingPromise={resolve:f,reject:d};try{this.eventManager=await this.resolver._initialize(this.auth),await this.onExecution(),this.eventManager.registerConsumer(this)}catch(_){this.reject(_)}})}async onAuthEvent(f){const{urlResponse:d,sessionId:_,postBody:x,tenantId:I,error:E,type:M}=f;if(E){this.reject(E);return}const S={auth:this.auth,requestUri:d,sessionId:_,tenantId:I||void 0,postBody:x||void 0,user:this.user,bypassAuthState:this.bypassAuthState};try{this.resolve(await this.getIdpTask(M)(S))}catch(A){this.reject(A)}}onError(f){this.reject(f)}getIdpTask(f){switch(f){case"signInViaPopup":case"signInViaRedirect":return _signIn;case"linkViaPopup":case"linkViaRedirect":return _link;case"reauthViaPopup":case"reauthViaRedirect":return _reauth;default:_fail(this.auth,"internal-error")}}resolve(f){debugAssert(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(f),this.unregisterAndCleanUp()}reject(f){debugAssert(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.reject(f),this.unregisterAndCleanUp()}unregisterAndCleanUp(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const _POLL_WINDOW_CLOSE_TIMEOUT=new Delay(2e3,1e4);class PopupOperation extends AbstractPopupRedirectOperation{constructor(f,d,_,x,I){super(f,d,x,I),this.provider=_,this.authWindow=null,this.pollId=null,PopupOperation.currentPopupAction&&PopupOperation.currentPopupAction.cancel(),PopupOperation.currentPopupAction=this}async executeNotNull(){const f=await this.execute();return _assert(f,this.auth,"internal-error"),f}async onExecution(){debugAssert(this.filter.length===1,"Popup operations only handle one event");const f=_generateEventId();this.authWindow=await this.resolver._openPopup(this.auth,this.provider,this.filter[0],f),this.authWindow.associatedEvent=f,this.resolver._originValidation(this.auth).catch(d=>{this.reject(d)}),this.resolver._isIframeWebStorageSupported(this.auth,d=>{d||this.reject(_createError(this.auth,"web-storage-unsupported"))}),this.pollUserCancellation()}get eventId(){var f;return((f=this.authWindow)===null||f===void 0?void 0:f.associatedEvent)||null}cancel(){this.reject(_createError(this.auth,"cancelled-popup-request"))}cleanUp(){this.authWindow&&this.authWindow.close(),this.pollId&&window.clearTimeout(this.pollId),this.authWindow=null,this.pollId=null,PopupOperation.currentPopupAction=null}pollUserCancellation(){const f=()=>{var d,_;if(!((_=(d=this.authWindow)===null||d===void 0?void 0:d.window)===null||_===void 0)&&_.closed){this.pollId=window.setTimeout(()=>{this.pollId=null,this.reject(_createError(this.auth,"popup-closed-by-user"))},8e3);return}this.pollId=window.setTimeout(f,_POLL_WINDOW_CLOSE_TIMEOUT.get())};f()}}PopupOperation.currentPopupAction=null;/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const PENDING_REDIRECT_KEY="pendingRedirect",redirectOutcomeMap=new Map;class RedirectAction extends AbstractPopupRedirectOperation{constructor(f,d,_=!1){super(f,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],d,void 0,_),this.eventId=null}async execute(){let f=redirectOutcomeMap.get(this.auth._key());if(!f){try{const _=await _getAndClearPendingRedirectStatus(this.resolver,this.auth)?await super.execute():null;f=()=>Promise.resolve(_)}catch(d){f=()=>Promise.reject(d)}redirectOutcomeMap.set(this.auth._key(),f)}return this.bypassAuthState||redirectOutcomeMap.set(this.auth._key(),()=>Promise.resolve(null)),f()}async onAuthEvent(f){if(f.type==="signInViaRedirect")return super.onAuthEvent(f);if(f.type==="unknown"){this.resolve(null);return}if(f.eventId){const d=await this.auth._redirectUserForId(f.eventId);if(d)return this.user=d,super.onAuthEvent(f);this.resolve(null)}}async onExecution(){}cleanUp(){}}async function _getAndClearPendingRedirectStatus(u,f){const d=pendingRedirectKey(f),_=resolverPersistence(u);if(!await _._isAvailable())return!1;const x=await _._get(d)==="true";return await _._remove(d),x}function _overrideRedirectResult(u,f){redirectOutcomeMap.set(u._key(),f)}function resolverPersistence(u){return _getInstance(u._redirectPersistence)}function pendingRedirectKey(u){return _persistenceKeyName(PENDING_REDIRECT_KEY,u.config.apiKey,u.name)}async function _getRedirectResult(u,f,d=!1){const _=_castAuth(u),x=_withDefaultResolver(_,f),E=await new RedirectAction(_,x,d).execute();return E&&!d&&(delete E.user._redirectEventId,await _._persistUserIfCurrent(E.user),await _._setRedirectUser(null,f)),E}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const EVENT_DUPLICATION_CACHE_DURATION_MS=10*60*1e3;class AuthEventManager{constructor(f){this.auth=f,this.cachedEventUids=new Set,this.consumers=new Set,this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1,this.lastProcessedEventTime=Date.now()}registerConsumer(f){this.consumers.add(f),this.queuedRedirectEvent&&this.isEventForConsumer(this.queuedRedirectEvent,f)&&(this.sendToConsumer(this.queuedRedirectEvent,f),this.saveEventToCache(this.queuedRedirectEvent),this.queuedRedirectEvent=null)}unregisterConsumer(f){this.consumers.delete(f)}onEvent(f){if(this.hasEventBeenHandled(f))return!1;let d=!1;return this.consumers.forEach(_=>{this.isEventForConsumer(f,_)&&(d=!0,this.sendToConsumer(f,_),this.saveEventToCache(f))}),this.hasHandledPotentialRedirect||!isRedirectEvent(f)||(this.hasHandledPotentialRedirect=!0,d||(this.queuedRedirectEvent=f,d=!0)),d}sendToConsumer(f,d){var _;if(f.error&&!isNullRedirectEvent(f)){const x=((_=f.error.code)===null||_===void 0?void 0:_.split("auth/")[1])||"internal-error";d.onError(_createError(this.auth,x))}else d.onAuthEvent(f)}isEventForConsumer(f,d){const _=d.eventId===null||!!f.eventId&&f.eventId===d.eventId;return d.filter.includes(f.type)&&_}hasEventBeenHandled(f){return Date.now()-this.lastProcessedEventTime>=EVENT_DUPLICATION_CACHE_DURATION_MS&&this.cachedEventUids.clear(),this.cachedEventUids.has(eventUid(f))}saveEventToCache(f){this.cachedEventUids.add(eventUid(f)),this.lastProcessedEventTime=Date.now()}}function eventUid(u){return[u.type,u.eventId,u.sessionId,u.tenantId].filter(f=>f).join("-")}function isNullRedirectEvent({type:u,error:f}){return u==="unknown"&&f?.code==="auth/no-auth-event"}function isRedirectEvent(u){switch(u.type){case"signInViaRedirect":case"linkViaRedirect":case"reauthViaRedirect":return!0;case"unknown":return isNullRedirectEvent(u);default:return!1}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function _getProjectConfig(u,f={}){return _performApiRequest(u,"GET","/v1/projects",f)}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const IP_ADDRESS_REGEX=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,HTTP_REGEX=/^https?/;async function _validateOrigin(u){if(u.config.emulator)return;const{authorizedDomains:f}=await _getProjectConfig(u);for(const d of f)try{if(matchDomain(d))return}catch{}_fail(u,"unauthorized-domain")}function matchDomain(u){const f=_getCurrentUrl(),{protocol:d,hostname:_}=new URL(f);if(u.startsWith("chrome-extension://")){const E=new URL(u);return E.hostname===""&&_===""?d==="chrome-extension:"&&u.replace("chrome-extension://","")===f.replace("chrome-extension://",""):d==="chrome-extension:"&&E.hostname===_}if(!HTTP_REGEX.test(d))return!1;if(IP_ADDRESS_REGEX.test(u))return _===u;const x=u.replace(/\./g,"\\.");return new RegExp("^(.+\\."+x+"|"+x+")$","i").test(_)}/**
 * @license
 * Copyright 2020 Google LLC.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const NETWORK_TIMEOUT=new Delay(3e4,6e4);function resetUnloadedGapiModules(){const u=_window().___jsl;if(u?.H){for(const f of Object.keys(u.H))if(u.H[f].r=u.H[f].r||[],u.H[f].L=u.H[f].L||[],u.H[f].r=[...u.H[f].L],u.CP)for(let d=0;d<u.CP.length;d++)u.CP[d]=null}}function loadGapi(u){return new Promise((f,d)=>{var _,x,I;function E(){resetUnloadedGapiModules(),gapi.load("gapi.iframes",{callback:()=>{f(gapi.iframes.getContext())},ontimeout:()=>{resetUnloadedGapiModules(),d(_createError(u,"network-request-failed"))},timeout:NETWORK_TIMEOUT.get()})}if(!((x=(_=_window().gapi)===null||_===void 0?void 0:_.iframes)===null||x===void 0)&&x.Iframe)f(gapi.iframes.getContext());else if(!((I=_window().gapi)===null||I===void 0)&&I.load)E();else{const M=_generateCallbackName("iframefcb");return _window()[M]=()=>{gapi.load?E():d(_createError(u,"network-request-failed"))},_loadJS(`https://apis.google.com/js/api.js?onload=${M}`).catch(S=>d(S))}}).catch(f=>{throw cachedGApiLoader=null,f})}let cachedGApiLoader=null;function _loadGapi(u){return cachedGApiLoader=cachedGApiLoader||loadGapi(u),cachedGApiLoader}/**
 * @license
 * Copyright 2020 Google LLC.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const PING_TIMEOUT=new Delay(5e3,15e3),IFRAME_PATH="__/auth/iframe",EMULATED_IFRAME_PATH="emulator/auth/iframe",IFRAME_ATTRIBUTES={style:{position:"absolute",top:"-100px",width:"1px",height:"1px"},"aria-hidden":"true",tabindex:"-1"},EID_FROM_APIHOST=new Map([["identitytoolkit.googleapis.com","p"],["staging-identitytoolkit.sandbox.googleapis.com","s"],["test-identitytoolkit.sandbox.googleapis.com","t"]]);function getIframeUrl(u){const f=u.config;_assert(f.authDomain,u,"auth-domain-config-required");const d=f.emulator?_emulatorUrl(f,EMULATED_IFRAME_PATH):`https://${u.config.authDomain}/${IFRAME_PATH}`,_={apiKey:f.apiKey,appName:u.name,v:SDK_VERSION},x=EID_FROM_APIHOST.get(u.config.apiHost);x&&(_.eid=x);const I=u._getFrameworks();return I.length&&(_.fw=I.join(",")),`${d}?${querystring$1(_).slice(1)}`}async function _openIframe(u){const f=await _loadGapi(u),d=_window().gapi;return _assert(d,u,"internal-error"),f.open({where:document.body,url:getIframeUrl(u),messageHandlersFilter:d.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:IFRAME_ATTRIBUTES,dontclear:!0},_=>new Promise(async(x,I)=>{await _.restyle({setHideOnLeave:!1});const E=_createError(u,"network-request-failed"),M=_window().setTimeout(()=>{I(E)},PING_TIMEOUT.get());function S(){_window().clearTimeout(M),x(_)}_.ping(S).then(S,()=>{I(E)})}))}/**
 * @license
 * Copyright 2020 Google LLC.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const BASE_POPUP_OPTIONS={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"},DEFAULT_WIDTH=500,DEFAULT_HEIGHT=600,TARGET_BLANK="_blank",FIREFOX_EMPTY_URL="http://localhost";class AuthPopup{constructor(f){this.window=f,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch{}}}function _open(u,f,d,_=DEFAULT_WIDTH,x=DEFAULT_HEIGHT){const I=Math.max((window.screen.availHeight-x)/2,0).toString(),E=Math.max((window.screen.availWidth-_)/2,0).toString();let M="";const S=Object.assign(Object.assign({},BASE_POPUP_OPTIONS),{width:_.toString(),height:x.toString(),top:I,left:E}),A=getUA().toLowerCase();d&&(M=_isChromeIOS(A)?TARGET_BLANK:d),_isFirefox(A)&&(f=f||FIREFOX_EMPTY_URL,S.scrollbars="yes");const T=Object.entries(S).reduce((O,[j,$])=>`${O}${j}=${$},`,"");if(_isIOSStandalone(A)&&M!=="_self")return openAsNewWindowIOS(f||"",M),new AuthPopup(null);const D=window.open(f||"",M,T);_assert(D,u,"popup-blocked");try{D.focus()}catch{}return new AuthPopup(D)}function openAsNewWindowIOS(u,f){const d=document.createElement("a");d.href=u,d.target=f;const _=document.createEvent("MouseEvent");_.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),d.dispatchEvent(_)}/**
 * @license
 * Copyright 2021 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const WIDGET_PATH="__/auth/handler",EMULATOR_WIDGET_PATH="emulator/auth/handler",FIREBASE_APP_CHECK_FRAGMENT_ID=encodeURIComponent("fac");async function _getRedirectUrl(u,f,d,_,x,I){_assert(u.config.authDomain,u,"auth-domain-config-required"),_assert(u.config.apiKey,u,"invalid-api-key");const E={apiKey:u.config.apiKey,appName:u.name,authType:d,redirectUrl:_,v:SDK_VERSION,eventId:x};if(f instanceof FederatedAuthProvider){f.setDefaultLanguage(u.languageCode),E.providerId=f.providerId||"",isEmpty(f.getCustomParameters())||(E.customParameters=JSON.stringify(f.getCustomParameters()));for(const[T,D]of Object.entries(I||{}))E[T]=D}if(f instanceof BaseOAuthProvider){const T=f.getScopes().filter(D=>D!=="");T.length>0&&(E.scopes=T.join(","))}u.tenantId&&(E.tid=u.tenantId);const M=E;for(const T of Object.keys(M))M[T]===void 0&&delete M[T];const S=await u._getAppCheckToken(),A=S?`#${FIREBASE_APP_CHECK_FRAGMENT_ID}=${encodeURIComponent(S)}`:"";return`${getHandlerBase(u)}?${querystring$1(M).slice(1)}${A}`}function getHandlerBase({config:u}){return u.emulator?_emulatorUrl(u,EMULATOR_WIDGET_PATH):`https://${u.authDomain}/${WIDGET_PATH}`}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const WEB_STORAGE_SUPPORT_KEY="webStorageSupport";class BrowserPopupRedirectResolver{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=browserSessionPersistence,this._completeRedirectFn=_getRedirectResult,this._overrideRedirectResult=_overrideRedirectResult}async _openPopup(f,d,_,x){var I;debugAssert((I=this.eventManagers[f._key()])===null||I===void 0?void 0:I.manager,"_initialize() not called before _openPopup()");const E=await _getRedirectUrl(f,d,_,_getCurrentUrl(),x);return _open(f,E,_generateEventId())}async _openRedirect(f,d,_,x){await this._originValidation(f);const I=await _getRedirectUrl(f,d,_,_getCurrentUrl(),x);return _setWindowLocation(I),new Promise(()=>{})}_initialize(f){const d=f._key();if(this.eventManagers[d]){const{manager:x,promise:I}=this.eventManagers[d];return x?Promise.resolve(x):(debugAssert(I,"If manager is not set, promise should be"),I)}const _=this.initAndGetManager(f);return this.eventManagers[d]={promise:_},_.catch(()=>{delete this.eventManagers[d]}),_}async initAndGetManager(f){const d=await _openIframe(f),_=new AuthEventManager(f);return d.register("authEvent",x=>(_assert(x?.authEvent,f,"invalid-auth-event"),{status:_.onEvent(x.authEvent)?"ACK":"ERROR"}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),this.eventManagers[f._key()]={manager:_},this.iframes[f._key()]=d,_}_isIframeWebStorageSupported(f,d){this.iframes[f._key()].send(WEB_STORAGE_SUPPORT_KEY,{type:WEB_STORAGE_SUPPORT_KEY},x=>{var I;const E=(I=x?.[0])===null||I===void 0?void 0:I[WEB_STORAGE_SUPPORT_KEY];E!==void 0&&d(!!E),_fail(f,"internal-error")},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(f){const d=f._key();return this.originValidationPromises[d]||(this.originValidationPromises[d]=_validateOrigin(f)),this.originValidationPromises[d]}get _shouldInitProactively(){return _isMobileBrowser()||_isSafari()||_isIOS()}}const browserPopupRedirectResolver=BrowserPopupRedirectResolver;var name$2="@firebase/auth",version$3="0.23.2";/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class AuthInterop{constructor(f){this.auth=f,this.internalListeners=new Map}getUid(){var f;return this.assertAuthConfigured(),((f=this.auth.currentUser)===null||f===void 0?void 0:f.uid)||null}async getToken(f){return this.assertAuthConfigured(),await this.auth._initializationPromise,this.auth.currentUser?{accessToken:await this.auth.currentUser.getIdToken(f)}:null}addAuthTokenListener(f){if(this.assertAuthConfigured(),this.internalListeners.has(f))return;const d=this.auth.onIdTokenChanged(_=>{f(_?.stsTokenManager.accessToken||null)});this.internalListeners.set(f,d),this.updateProactiveRefresh()}removeAuthTokenListener(f){this.assertAuthConfigured();const d=this.internalListeners.get(f);d&&(this.internalListeners.delete(f),d(),this.updateProactiveRefresh())}assertAuthConfigured(){_assert(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function getVersionForPlatform(u){switch(u){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";default:return}}function registerAuth(u){_registerComponent(new Component("auth",(f,{options:d})=>{const _=f.getProvider("app").getImmediate(),x=f.getProvider("heartbeat"),I=f.getProvider("app-check-internal"),{apiKey:E,authDomain:M}=_.options;_assert(E&&!E.includes(":"),"invalid-api-key",{appName:_.name});const S={apiKey:E,authDomain:M,clientPlatform:u,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:_getClientVersion(u)},A=new AuthImpl(_,x,I,S);return _initializeAuthInstance(A,d),A},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((f,d,_)=>{f.getProvider("auth-internal").initialize()})),_registerComponent(new Component("auth-internal",f=>{const d=_castAuth(f.getProvider("auth").getImmediate());return(_=>new AuthInterop(_))(d)},"PRIVATE").setInstantiationMode("EXPLICIT")),registerVersion(name$2,version$3,getVersionForPlatform(u)),registerVersion(name$2,version$3,"esm2017")}/**
 * @license
 * Copyright 2021 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const DEFAULT_ID_TOKEN_MAX_AGE=5*60,authIdTokenMaxAge=getExperimentalSetting("authIdTokenMaxAge")||DEFAULT_ID_TOKEN_MAX_AGE;let lastPostedIdToken=null;const mintCookieFactory=u=>async f=>{const d=f&&await f.getIdTokenResult(),_=d&&(new Date().getTime()-Date.parse(d.issuedAtTime))/1e3;if(_&&_>authIdTokenMaxAge)return;const x=d?.token;lastPostedIdToken!==x&&(lastPostedIdToken=x,await fetch(u,{method:x?"POST":"DELETE",headers:x?{Authorization:`Bearer ${x}`}:{}}))};function getAuth(u=getApp()){const f=_getProvider(u,"auth");if(f.isInitialized())return f.getImmediate();const d=initializeAuth(u,{popupRedirectResolver:browserPopupRedirectResolver,persistence:[indexedDBLocalPersistence,browserLocalPersistence,browserSessionPersistence]}),_=getExperimentalSetting("authTokenSyncURL");if(_){const I=mintCookieFactory(_);beforeAuthStateChanged(d,I,()=>I(d.currentUser)),onIdTokenChanged(d,E=>I(E))}const x=getDefaultEmulatorHost("auth");return x&&connectAuthEmulator(d,`http://${x}`),d}registerAuth("Browser");class OAuthProcessor{constructor(f,d,_,x){aM(this,"customParameters",{});this.auth=f,this.providerString=d,this.authorizationUrl=_,this.clientId=x}setCustomParameters(f){this.customParameters=f}getAuthorizationUrl(){const f=new URL(this.authorizationUrl);f.searchParams.append("client_id",this.clientId),f.searchParams.append("redirect_uri",this.getRedirectUrl()),f.searchParams.append("response_type","code"),f.searchParams.append("prompt","select_account"),f.searchParams.get("scope")||f.searchParams.append("scope","email"),f.searchParams.append("response_mode","form_post"),f.searchParams.append("state",this.getState());for(const[_,x]of Object.entries(this.customParameters))f.searchParams.append(_,String(x));const d=new URL(window.location.protocol+window.location.host);return d.pathname="/signin/oauth/before-oauth",d.searchParams.append("next",encodeURIComponent(f.toString())),d.toString()}getState(){return encodeURIComponent(JSON.stringify({version:2}))}getRedirectUrl(){const f=new URL("https://prod-api.wepin.io"),d=new URL(window.location.protocol+window.location.host);return d.pathname="/signin/oauth_redirect",f.pathname=pathBrowserify.join(f.pathname,`/user/auth/${this.providerString}`),f.searchParams.append("redirect_url",d.toString()),f.toString()}checkClosedPopupWindow(f){return new Promise((d,_)=>{const x=setInterval(function(){f.closed&&(clearInterval(x),_(new Error("User closed popup window")))},1e3)})}async doPopupLogin(){const f=window.open(this.getAuthorizationUrl(),"_blank","popup=true,width=360,height=640");if(!f)throw new Error("Cannot open popup window");return new Promise(async(d,_)=>{try{this.checkClosedPopupWindow(f).catch(_);const x=await this.getCustomTokenFromChildWindow(),E=await(await signInWithCustomToken(this.auth,x)).user.getIdToken();d(E)}catch(x){_(x)}})}getCustomTokenFromChildWindow(){return new Promise(f=>{window.addEventListener("message",async d=>{const _=d.data;_.type==="customToken"&&f(_.customToken)})})}}function getOAuthProcessor(u,f){const d="production";if(f==="Naver")return new OAuthProcessor(u,"naver",naverOAuth[d].authorizationUrl,naverOAuth[d].clientId);if(f==="Discord")return new OAuthProcessor(u,"discord",discordOAuth[d].authorizationUrl,discordOAuth[d].clientId);if(f==="Google")return new OAuthProcessor(u,"google",googleOAuth[d].authorizationUrl,googleOAuth[d].clientId);if(f==="Apple")return new OAuthProcessor(u,"apple",appleOAuth[d].authorizationUrl,appleOAuth[d].clientId)}class Transaction{constructor(f){aM(this,"id");aM(this,"accountId");aM(this,"accountTokenId");aM(this,"txid");aM(this,"value");aM(this,"status");aM(this,"createDate");aM(this,"to");aM(this,"type");aM(this,"account");this.id=f.id,this.accountId=f.accountId,this.txid=f.txid,this.status=f.status,this.createDate=f.createDate,this.to=new Address(f.to),this.type=f.type,f.tokenInfo&&(this.accountTokenId=f.tokenInfo.accountTokenId);const d=useWalletStore(),_=computed(()=>this.accountTokenId?d.getAccountToken({accountTokenId:this.accountTokenId}):d.getAccount({accountId:this.accountId}));Object.defineProperty(this,"account",{get(){return _.value}}),this.value=new CoinAmount({ethAmount:f.value,decimal:_.value?.coin?.decimals??0})}get isReceive(){return this.account?.address.equals(this.to)}get isSend(){return!this.account?.address.equals(this.to)}get ethUnitValue(){return this.value.ethValue.toFixed()}get exchangedValue(){return this.value.calculatePrice(this.account?.coin?.priceInfo).toFixed()}get iconStatus(){return this.status==="pending"?"pending":this.status==="fail"?"cancel":this.isSend?"sent":"received"}get statusText(){const{t:f}=useI18nTypes();if(this.status==="pending")return f("transaction_detail.status.pending");if(this.status==="fail")return f("transaction_detail.status.failed");if(this.status==="confirm")return f("transaction_detail.status.confirm")}}class SolanaPrepareData{constructor(f){aM(this,"blockhash");aM(this,"lastValidBlockHeight");aM(this,"lamportsPerSignature");aM(this,"priorityFee");this.blockhash=f.blockhash,this.lastValidBlockHeight=f.lastValidBlockHeight,this.lamportsPerSignature=f.lamportsPerSignature,this.priorityFee=f.priorityFee}}class NearPrepareData{constructor(f){aM(this,"nonce");aM(this,"blockHash");aM(this,"fee");aM(this,"registered");this.nonce=f.nonce,this.blockHash=f.blockHash,this.fee=f.fee,this.registered=f.registered??"completed"}}class EthereumCoinTransactionExecutor{constructor(f){aM(this,"account");this.account=f.account}async getPrepareData(f){const d=await WepinBackendAPI$1.getInstance().transaction.getTransactionPrepareData({accountId:this.account.id,to:f.to,amount:f.amount});return new EthereumPrepareData({gasPrice:{high:d.detail?.gasPrice.high.toString()??"0",medium:d.detail?.gasPrice.medium.toString()??"0",low:d.detail?.gasPrice.low.toString()??"0"},gasLimit:d.detail?.gasLimit??0,nonce:d.detail?.nonce??0,decimal:this.account.coin?.decimals??0})}async sign(f){return await WepinBackendAPI$1.getInstance().transaction.sign({type:"transaction",walletId:this.account.walletId,accountId:this.account.id,pin:f.encUVD,txData:{gasLimit:f.extraData.gasLimit,gasPrice:f.extraData.gasPrice.gweiValue.toFixed(),to:f.to,nonce:f.extraData.nonce,amount:f.amount,data:"0x"},otpCode:f.otpCode})}async broadcast(f){return await WepinBackendAPI$1.getInstance().transaction.broadcastTransaction({walletId:this.account.walletId,accountId:this.account.id,transaction:f.signResponse.transaction,signatureResult:f.signResponse.signatureResult})}}class EthereumTokenTransactionExecutor{constructor(f){aM(this,"accountToken");this.accountToken=f.accountToken}async getPrepareData(f){const d=await WepinBackendAPI$1.getInstance().transaction.getTransactionPrepareData({accountId:this.accountToken.accountId,tokenId:this.accountToken.tokenId.toString(),contract:this.accountToken.coin?.contract,to:f.to,amount:f.amount});return new EthereumPrepareData({gasPrice:{high:d.detail?.gasPrice.high.toString()??"0",medium:d.detail?.gasPrice.medium.toString()??"0",low:d.detail?.gasPrice.low.toString()??"0"},gasLimit:d.detail?.gasLimit??0,nonce:d.detail?.nonce??0,decimal:this.accountToken.coin?.coin?.decimals??0})}async sign(f){if(!this.accountToken.account)throw new Error("Account is not exist");if(!this.accountToken.coin)throw new Error("Coin is not exist");return await WepinBackendAPI$1.getInstance().transaction.sign({type:"transaction",walletId:this.accountToken.account.walletId,accountId:this.accountToken.account.id,tokenId:this.accountToken.id,pin:f.encUVD,contract:this.accountToken.coin.contract,txData:{gasLimit:f.extraData.gasLimit,gasPrice:f.extraData.gasPrice.gweiValue.toFixed(),to:f.to,nonce:f.extraData.nonce,amount:f.amount,data:"0x"},otpCode:f.otpCode})}async broadcast(f){if(!this.accountToken.account)throw new Error("Account is not exist");if(!this.accountToken.coin)throw new Error("Coin is not exist");return await WepinBackendAPI$1.getInstance().transaction.broadcastTransaction({walletId:this.accountToken.account.walletId,accountId:this.accountToken.accountId,contract:this.accountToken.coin.contract,tokenId:this.accountToken.id,transaction:f.signResponse.transaction,signatureResult:f.signResponse.signatureResult})}}class SolanaCoinTransactionExecutor{constructor(f){aM(this,"account");this.account=f.account}async getPrepareData(f){const d=await WepinBackendAPI$1.getInstance().transaction.getTransactionPrepareData({accountId:this.account.id,to:f.to,amount:f.amount});if(!d.detail)throw new Error("No detail data for prepare");return new SolanaPrepareData({blockhash:d.detail.blockhash,lamportsPerSignature:d.detail.lamportsPerSignature,lastValidBlockHeight:d.detail.lastValidBlockHeight,priorityFee:d.detail.priorityFee})}async sign(f){return await WepinBackendAPI$1.getInstance().transaction.sign({type:"transaction",walletId:this.account.walletId,accountId:this.account.id,pin:f.encUVD,txData:{txCommand:"transfer",to:f.to,from:this.account.address,amount:f.amount,blockhash:f.extraData.blockhash,lastValidBlockHeight:f.extraData.lastValidBlockHeight,lamportsPerSignature:f.extraData.lamportsPerSignature,priorityFee:f.extraData.priorityFee},otpCode:f.otpCode})}async broadcast(f){return await WepinBackendAPI$1.getInstance().transaction.broadcastTransaction({walletId:this.account.walletId,accountId:this.account.id,transaction:f.signResponse.transaction,signatureResult:f.signResponse.signatureResult})}}class SolanaTokenTransactionExecutor{constructor(f){aM(this,"accountToken");this.accountToken=f.accountToken}async getPrepareData(f){const d=await WepinBackendAPI$1.getInstance().transaction.getTransactionPrepareData({accountId:this.accountToken.accountId,contract:this.accountToken.coin?.contract,to:f.to,tokenId:this.accountToken.tokenId.toString(),amount:f.amount});if(!d.detail)throw new Error("No detail data for prepare");return new SolanaPrepareData({blockhash:d.detail.blockhash,lamportsPerSignature:d.detail.lamportsPerSignature,lastValidBlockHeight:d.detail.lastValidBlockHeight,priorityFee:d.detail.priorityFee})}async sign(f){if(!this.accountToken.wallet)throw new Error("No wallet for account");return await WepinBackendAPI$1.getInstance().transaction.sign({type:"transaction",walletId:this.accountToken.wallet.id,accountId:this.accountToken.accountId,pin:f.encUVD,contract:this.accountToken.coin?.contract,tokenId:this.accountToken.id,txData:{txCommand:"transfer-tkn",to:f.to,from:this.accountToken.address,amount:f.amount,blockhash:f.extraData.blockhash,lastValidBlockHeight:f.extraData.lastValidBlockHeight,lamportsPerSignature:f.extraData.lamportsPerSignature,priorityFee:f.extraData.priorityFee},otpCode:f.otpCode})}async broadcast(f){if(!this.accountToken.wallet)throw new Error("No wallet for account");return await WepinBackendAPI$1.getInstance().transaction.broadcastTransaction({walletId:this.accountToken.wallet.id,accountId:this.accountToken.accountId,contract:this.accountToken.coin?.contract,tokenId:this.accountToken.id.toString(),transaction:f.signResponse.transaction,signatureResult:f.signResponse.signatureResult})}}class NearCoinTransactionExecutor{constructor(f){aM(this,"account");this.account=f.account}async getPrepareData(f){const d=await WepinBackendAPI$1.getInstance().transaction.getTransactionPrepareData({accountId:this.account.id,to:f.to,amount:f.amount});if(!d.detail)throw new Error("No detail data for prepare");return new NearPrepareData({nonce:d.detail.nonce,blockHash:d.detail.blockHash,fee:d.detail.fee,registered:d.detail.registered??"completed"})}async sign(f){return await WepinBackendAPI$1.getInstance().transaction.sign({type:"transaction",walletId:this.account.walletId,accountId:this.account.id,pin:f.encUVD,txData:{txType:"transfer",to:f.to,from:this.account.address,amount:f.amount,nonce:f.extraData.nonce,blockHash:f.extraData.blockHash,fee:f.extraData.fee,registered:f.extraData.registered},otpCode:f.otpCode})}async broadcast(f){return await WepinBackendAPI$1.getInstance().transaction.broadcastTransaction({walletId:this.account.walletId,accountId:this.account.id,transaction:f.signResponse.transaction,signatureResult:f.signResponse.signatureResult})}}class NearTokenTransactionExecutor{constructor(f){aM(this,"accountToken");this.accountToken=f.accountToken}async getPrepareData(f){const d=await WepinBackendAPI$1.getInstance().transaction.getTransactionPrepareData({accountId:this.accountToken.accountId,contract:this.accountToken.coin?.contract,to:f.to,tokenId:this.accountToken.tokenId.toString(),amount:f.amount});if(!d.detail)throw new Error("No detail data for prepare");return new NearPrepareData({nonce:d.detail.nonce,blockHash:d.detail.blockHash,fee:d.detail.fee,registered:d.detail.registered??"completed"})}async sign(f){if(!this.accountToken.wallet)throw new Error("No wallet for account");return await WepinBackendAPI$1.getInstance().transaction.sign({type:"transaction",walletId:this.accountToken.wallet.id,accountId:this.accountToken.accountId,pin:f.encUVD,contract:this.accountToken.coin?.contract,tokenId:this.accountToken.id,txData:{txType:"token-transfer",to:f.to,from:this.accountToken.address,amount:f.amount,nonce:f.extraData.nonce,blockHash:f.extraData.blockHash,fee:f.extraData.fee,registered:f.extraData.registered},otpCode:f.otpCode})}async broadcast(f){if(!this.accountToken.wallet)throw new Error("No wallet for account");return await WepinBackendAPI$1.getInstance().transaction.broadcastTransaction({walletId:this.accountToken.wallet.id,accountId:this.accountToken.accountId,contract:this.accountToken.coin?.contract,tokenId:this.accountToken.id.toString(),transaction:f.signResponse.transaction,signatureResult:f.signResponse.signatureResult})}}class User{constructor(f){aM(this,"id");aM(this,"email");aM(this,"name");aM(this,"localeId");aM(this,"currencyId");aM(this,"lastAccessDevice");aM(this,"lastAccessTime");aM(this,"lastSessionIp");aM(this,"createdTime");aM(this,"userJoinStage");aM(this,"profileImage");aM(this,"userState");aM(this,"use2FA");this.id=f.id,this.email=f.email,this.name=f.name,this.localeId=f.localeId,this.currencyId=f.currencyId,this.lastAccessDevice=f.lastAccessDevice,this.lastAccessTime=f.lastAccessTime,this.lastSessionIp=f.lastSessionIp,this.createdTime=f.createdTime,this.userJoinStage=f.userJoinStage,this.profileImage=f.profileImage,this.userState=f.userState,this.use2FA=f.use2FA}}class Wallet{constructor({wallet:f}){aM(this,"id");aM(this,"userId");aM(this,"label");aM(this,"defaultWallet");aM(this,"state");aM(this,"pinState");aM(this,"createdTime");aM(this,"exportedTime");aM(this,"order");aM(this,"accounts");this.id=f.id,this.userId=f.userId,this.label=f.label,this.defaultWallet=f.defaultWallet,this.state=f.state,this.pinState=f.pinState,this.createdTime=f.createdTime,this.exportedTime=f.exportedTime,this.order=f.order;const d=useWalletStore(),_=computed(()=>d.accountList.filter(x=>x.walletId===this.id));Object.defineProperty(this,"accounts",{get(){return _.value}})}get totalBalance(){return this.accounts.reduce((f,d)=>{const _=d.amount.ethValue.plus(f),x=d.tokens?.reduce((I,E)=>E.amount.ethValue.plus(I),new BigNumber$1(0));return _.plus(x??0)},new BigNumber$1(0)).toFixed()}get totalExchangedBalance(){return this.accounts.reduce((f,d)=>{const _=d.amount.calculatePrice(d.coin?.priceInfo).plus(f),x=d.tokens?.reduce((I,E)=>new BigNumber$1(E.amount.calculatePrice(E.coin?.priceInfo)).plus(I),new BigNumber$1(0));return _.plus(x??0)},new BigNumber$1(0)).toFixed()}async fetchAccounts(f=!1){await useAccountAPIStore().fetchAccountList({walletId:this.id},f)}async refreshNFT(){const f=useNFTAPIStore(),d=useWalletStore(),_=d.accountList.filter(x=>x.walletId===d.selectedWalletId).map(x=>x.id);await f.refreshNFTList(_)}}const kk=class kk{constructor(){}static getInstance(){return kk.instance||(kk.instance=new kk),kk.instance}makeWallet(f){return new Wallet({wallet:f})}};aM(kk,"instance");let WalletFactory=kk;const _sfc_main$s=defineComponent({__name:"WrappedNetworkIcon",props:{tokenSrc:{default:void 0},networkSrc:{default:void 0},size:{default:"medium"},customSize:{default:""}},setup(u){const f=u,d=computed(()=>x.value?defaultCoinIcon:f.tokenSrc),_=computed(()=>E.value?defaultCoinIcon:f.networkSrc),x=ref(!1),I=()=>{x.value=!0},E=ref(!1),M=()=>{E.value=!0};return(S,A)=>f.tokenSrc?(openBlock(),createBlock(unref(NetworkIcon),{key:0,size:S.size,"custom-size":S.customSize,"token-src":d.value,"network-src":_.value,"onError:tokenIcon":I,"onError:networkIcon":M},null,8,["size","custom-size","token-src","network-src"])):createCommentVNode("",!0)}});function debounce$1(u,f,d){var _,x,I,E,M;f==null&&(f=100);function S(){var T=Date.now()-E;T<f&&T>=0?_=setTimeout(S,f-T):(_=null,d||(M=u.apply(I,x),I=x=null))}var A=function(){I=this,x=arguments,E=Date.now();var T=d&&!_;return _||(_=setTimeout(S,f)),T&&(M=u.apply(I,x),I=x=null),M};return A.clear=function(){_&&(clearTimeout(_),_=null)},A.flush=function(){_&&(M=u.apply(I,x),I=x=null,clearTimeout(_),_=null)},A}debounce$1.debounce=debounce$1;var debounce_1=debounce$1;function useEventListener(u,f,d){isRef(u)?watch(u,(_,x)=>{x?.removeEventListener(f,d),_?.addEventListener(f,d)}):onMounted(()=>{u.addEventListener(f,d)}),onBeforeUnmount(()=>{var _;(_=unref(u))===null||_===void 0||_.removeEventListener(f,d)})}function useClickAway(u,f){const d="pointerdown";return typeof window>"u"||!window?void 0:useEventListener(window,d,x=>{const I=unref(u);I&&(I===x.target||x.composedPath().includes(I)||f(x))})}function useContent(u,f,d){let _=null;const x=ref(!1);onMounted(()=>{(u.content!==void 0||d.value)&&(x.value=!0),_=new MutationObserver(I),_.observe(f.value,{childList:!0,subtree:!0})}),onBeforeUnmount(()=>_.disconnect()),watch(d,E=>{E?x.value=!0:x.value=!1});const I=()=>{u.content?x.value=!0:x.value=!1};return{hasContent:x}}function getBoundingClientRect(u,f){var d=u.getBoundingClientRect(),_=1,x=1;return{width:d.width/_,height:d.height/x,top:d.top/x,right:d.right/_,bottom:d.bottom/x,left:d.left/_,x:d.left/_,y:d.top/x}}function getWindow$1(u){if(u==null)return window;if(u.toString()!=="[object Window]"){var f=u.ownerDocument;return f&&f.defaultView||window}return u}function getWindowScroll(u){var f=getWindow$1(u),d=f.pageXOffset,_=f.pageYOffset;return{scrollLeft:d,scrollTop:_}}function isElement$1(u){var f=getWindow$1(u).Element;return u instanceof f||u instanceof Element}function isHTMLElement(u){var f=getWindow$1(u).HTMLElement;return u instanceof f||u instanceof HTMLElement}function isShadowRoot(u){if(typeof ShadowRoot>"u")return!1;var f=getWindow$1(u).ShadowRoot;return u instanceof f||u instanceof ShadowRoot}function getHTMLElementScroll(u){return{scrollLeft:u.scrollLeft,scrollTop:u.scrollTop}}function getNodeScroll(u){return u===getWindow$1(u)||!isHTMLElement(u)?getWindowScroll(u):getHTMLElementScroll(u)}function getNodeName(u){return u?(u.nodeName||"").toLowerCase():null}function getDocumentElement(u){return((isElement$1(u)?u.ownerDocument:u.document)||window.document).documentElement}function getWindowScrollBarX(u){return getBoundingClientRect(getDocumentElement(u)).left+getWindowScroll(u).scrollLeft}function getComputedStyle$2(u){return getWindow$1(u).getComputedStyle(u)}function isScrollParent(u){var f=getComputedStyle$2(u),d=f.overflow,_=f.overflowX,x=f.overflowY;return/auto|scroll|overlay|hidden/.test(d+x+_)}function isElementScaled(u){var f=u.getBoundingClientRect(),d=f.width/u.offsetWidth||1,_=f.height/u.offsetHeight||1;return d!==1||_!==1}function getCompositeRect(u,f,d){d===void 0&&(d=!1);var _=isHTMLElement(f);isHTMLElement(f)&&isElementScaled(f);var x=getDocumentElement(f),I=getBoundingClientRect(u),E={scrollLeft:0,scrollTop:0},M={x:0,y:0};return(_||!_&&!d)&&((getNodeName(f)!=="body"||isScrollParent(x))&&(E=getNodeScroll(f)),isHTMLElement(f)?(M=getBoundingClientRect(f),M.x+=f.clientLeft,M.y+=f.clientTop):x&&(M.x=getWindowScrollBarX(x))),{x:I.left+E.scrollLeft-M.x,y:I.top+E.scrollTop-M.y,width:I.width,height:I.height}}function getLayoutRect(u){var f=getBoundingClientRect(u),d=u.offsetWidth,_=u.offsetHeight;return Math.abs(f.width-d)<=1&&(d=f.width),Math.abs(f.height-_)<=1&&(_=f.height),{x:u.offsetLeft,y:u.offsetTop,width:d,height:_}}function getParentNode(u){return getNodeName(u)==="html"?u:u.assignedSlot||u.parentNode||(isShadowRoot(u)?u.host:null)||getDocumentElement(u)}function getScrollParent$1(u){return["html","body","#document"].indexOf(getNodeName(u))>=0?u.ownerDocument.body:isHTMLElement(u)&&isScrollParent(u)?u:getScrollParent$1(getParentNode(u))}function listScrollParents(u,f){var d;f===void 0&&(f=[]);var _=getScrollParent$1(u),x=_===((d=u.ownerDocument)==null?void 0:d.body),I=getWindow$1(_),E=x?[I].concat(I.visualViewport||[],isScrollParent(_)?_:[]):_,M=f.concat(E);return x?M:M.concat(listScrollParents(getParentNode(E)))}function isTableElement(u){return["table","td","th"].indexOf(getNodeName(u))>=0}function getTrueOffsetParent(u){return!isHTMLElement(u)||getComputedStyle$2(u).position==="fixed"?null:u.offsetParent}function getContainingBlock(u){var f=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,d=navigator.userAgent.indexOf("Trident")!==-1;if(d&&isHTMLElement(u)){var _=getComputedStyle$2(u);if(_.position==="fixed")return null}for(var x=getParentNode(u);isHTMLElement(x)&&["html","body"].indexOf(getNodeName(x))<0;){var I=getComputedStyle$2(x);if(I.transform!=="none"||I.perspective!=="none"||I.contain==="paint"||["transform","perspective"].indexOf(I.willChange)!==-1||f&&I.willChange==="filter"||f&&I.filter&&I.filter!=="none")return x;x=x.parentNode}return null}function getOffsetParent(u){for(var f=getWindow$1(u),d=getTrueOffsetParent(u);d&&isTableElement(d)&&getComputedStyle$2(d).position==="static";)d=getTrueOffsetParent(d);return d&&(getNodeName(d)==="html"||getNodeName(d)==="body"&&getComputedStyle$2(d).position==="static")?f:d||getContainingBlock(u)||f}var top="top",bottom="bottom",right="right",left="left",auto="auto",basePlacements=[top,bottom,right,left],start="start",end="end",clippingParents="clippingParents",viewport="viewport",popper="popper",reference="reference",variationPlacements=basePlacements.reduce(function(u,f){return u.concat([f+"-"+start,f+"-"+end])},[]),placements=[].concat(basePlacements,[auto]).reduce(function(u,f){return u.concat([f,f+"-"+start,f+"-"+end])},[]),beforeRead="beforeRead",read="read",afterRead="afterRead",beforeMain="beforeMain",main$1="main",afterMain="afterMain",beforeWrite="beforeWrite",write="write",afterWrite="afterWrite",modifierPhases=[beforeRead,read,afterRead,beforeMain,main$1,afterMain,beforeWrite,write,afterWrite];function order(u){var f=new Map,d=new Set,_=[];u.forEach(function(I){f.set(I.name,I)});function x(I){d.add(I.name);var E=[].concat(I.requires||[],I.requiresIfExists||[]);E.forEach(function(M){if(!d.has(M)){var S=f.get(M);S&&x(S)}}),_.push(I)}return u.forEach(function(I){d.has(I.name)||x(I)}),_}function orderModifiers(u){var f=order(u);return modifierPhases.reduce(function(d,_){return d.concat(f.filter(function(x){return x.phase===_}))},[])}function debounce(u){var f;return function(){return f||(f=new Promise(function(d){Promise.resolve().then(function(){f=void 0,d(u())})})),f}}function getBasePlacement(u){return u.split("-")[0]}function mergeByName(u){var f=u.reduce(function(d,_){var x=d[_.name];return d[_.name]=x?Object.assign({},x,_,{options:Object.assign({},x.options,_.options),data:Object.assign({},x.data,_.data)}):_,d},{});return Object.keys(f).map(function(d){return f[d]})}function getViewportRect(u){var f=getWindow$1(u),d=getDocumentElement(u),_=f.visualViewport,x=d.clientWidth,I=d.clientHeight,E=0,M=0;return _&&(x=_.width,I=_.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(E=_.offsetLeft,M=_.offsetTop)),{width:x,height:I,x:E+getWindowScrollBarX(u),y:M}}var max$1=Math.max,min=Math.min,round=Math.round;function getDocumentRect(u){var f,d=getDocumentElement(u),_=getWindowScroll(u),x=(f=u.ownerDocument)==null?void 0:f.body,I=max$1(d.scrollWidth,d.clientWidth,x?x.scrollWidth:0,x?x.clientWidth:0),E=max$1(d.scrollHeight,d.clientHeight,x?x.scrollHeight:0,x?x.clientHeight:0),M=-_.scrollLeft+getWindowScrollBarX(u),S=-_.scrollTop;return getComputedStyle$2(x||d).direction==="rtl"&&(M+=max$1(d.clientWidth,x?x.clientWidth:0)-I),{width:I,height:E,x:M,y:S}}function contains(u,f){var d=f.getRootNode&&f.getRootNode();if(u.contains(f))return!0;if(d&&isShadowRoot(d)){var _=f;do{if(_&&u.isSameNode(_))return!0;_=_.parentNode||_.host}while(_)}return!1}function rectToClientRect(u){return Object.assign({},u,{left:u.x,top:u.y,right:u.x+u.width,bottom:u.y+u.height})}function getInnerBoundingClientRect(u){var f=getBoundingClientRect(u);return f.top=f.top+u.clientTop,f.left=f.left+u.clientLeft,f.bottom=f.top+u.clientHeight,f.right=f.left+u.clientWidth,f.width=u.clientWidth,f.height=u.clientHeight,f.x=f.left,f.y=f.top,f}function getClientRectFromMixedType(u,f){return f===viewport?rectToClientRect(getViewportRect(u)):isHTMLElement(f)?getInnerBoundingClientRect(f):rectToClientRect(getDocumentRect(getDocumentElement(u)))}function getClippingParents(u){var f=listScrollParents(getParentNode(u)),d=["absolute","fixed"].indexOf(getComputedStyle$2(u).position)>=0,_=d&&isHTMLElement(u)?getOffsetParent(u):u;return isElement$1(_)?f.filter(function(x){return isElement$1(x)&&contains(x,_)&&getNodeName(x)!=="body"}):[]}function getClippingRect(u,f,d){var _=f==="clippingParents"?getClippingParents(u):[].concat(f),x=[].concat(_,[d]),I=x[0],E=x.reduce(function(M,S){var A=getClientRectFromMixedType(u,S);return M.top=max$1(A.top,M.top),M.right=min(A.right,M.right),M.bottom=min(A.bottom,M.bottom),M.left=max$1(A.left,M.left),M},getClientRectFromMixedType(u,I));return E.width=E.right-E.left,E.height=E.bottom-E.top,E.x=E.left,E.y=E.top,E}function getVariation(u){return u.split("-")[1]}function getMainAxisFromPlacement(u){return["top","bottom"].indexOf(u)>=0?"x":"y"}function computeOffsets(u){var f=u.reference,d=u.element,_=u.placement,x=_?getBasePlacement(_):null,I=_?getVariation(_):null,E=f.x+f.width/2-d.width/2,M=f.y+f.height/2-d.height/2,S;switch(x){case top:S={x:E,y:f.y-d.height};break;case bottom:S={x:E,y:f.y+f.height};break;case right:S={x:f.x+f.width,y:M};break;case left:S={x:f.x-d.width,y:M};break;default:S={x:f.x,y:f.y}}var A=x?getMainAxisFromPlacement(x):null;if(A!=null){var T=A==="y"?"height":"width";switch(I){case start:S[A]=S[A]-(f[T]/2-d[T]/2);break;case end:S[A]=S[A]+(f[T]/2-d[T]/2);break}}return S}function getFreshSideObject(){return{top:0,right:0,bottom:0,left:0}}function mergePaddingObject(u){return Object.assign({},getFreshSideObject(),u)}function expandToHashMap(u,f){return f.reduce(function(d,_){return d[_]=u,d},{})}function detectOverflow(u,f){f===void 0&&(f={});var d=f,_=d.placement,x=_===void 0?u.placement:_,I=d.boundary,E=I===void 0?clippingParents:I,M=d.rootBoundary,S=M===void 0?viewport:M,A=d.elementContext,T=A===void 0?popper:A,D=d.altBoundary,O=D===void 0?!1:D,j=d.padding,$=j===void 0?0:j,W=mergePaddingObject(typeof $!="number"?$:expandToHashMap($,basePlacements)),Q=T===popper?reference:popper,X=u.rects.popper,Y=u.elements[O?Q:T],ie=getClippingRect(isElement$1(Y)?Y:Y.contextElement||getDocumentElement(u.elements.popper),E,S),oe=getBoundingClientRect(u.elements.reference),ge=computeOffsets({reference:oe,element:X,strategy:"absolute",placement:x}),be=rectToClientRect(Object.assign({},X,ge)),ze=T===popper?be:oe,de={top:ie.top-ze.top+W.top,bottom:ze.bottom-ie.bottom+W.bottom,left:ie.left-ze.left+W.left,right:ze.right-ie.right+W.right},Ce=u.modifiersData.offset;if(T===popper&&Ce){var ke=Ce[x];Object.keys(de).forEach(function(le){var re=[right,bottom].indexOf(le)>=0?1:-1,P=[top,bottom].indexOf(le)>=0?"y":"x";de[le]+=ke[P]*re})}return de}var DEFAULT_OPTIONS={placement:"bottom",modifiers:[],strategy:"absolute"};function areValidElements(){for(var u=arguments.length,f=new Array(u),d=0;d<u;d++)f[d]=arguments[d];return!f.some(function(_){return!(_&&typeof _.getBoundingClientRect=="function")})}function popperGenerator(u){u===void 0&&(u={});var f=u,d=f.defaultModifiers,_=d===void 0?[]:d,x=f.defaultOptions,I=x===void 0?DEFAULT_OPTIONS:x;return function(M,S,A){A===void 0&&(A=I);var T={placement:"bottom",orderedModifiers:[],options:Object.assign({},DEFAULT_OPTIONS,I),modifiersData:{},elements:{reference:M,popper:S},attributes:{},styles:{}},D=[],O=!1,j={state:T,setOptions:function(X){var Y=typeof X=="function"?X(T.options):X;W(),T.options=Object.assign({},I,T.options,Y),T.scrollParents={reference:isElement$1(M)?listScrollParents(M):M.contextElement?listScrollParents(M.contextElement):[],popper:listScrollParents(S)};var ie=orderModifiers(mergeByName([].concat(_,T.options.modifiers)));return T.orderedModifiers=ie.filter(function(oe){return oe.enabled}),$(),j.update()},forceUpdate:function(){if(!O){var X=T.elements,Y=X.reference,ie=X.popper;if(areValidElements(Y,ie)){T.rects={reference:getCompositeRect(Y,getOffsetParent(ie),T.options.strategy==="fixed"),popper:getLayoutRect(ie)},T.reset=!1,T.placement=T.options.placement,T.orderedModifiers.forEach(function(ke){return T.modifiersData[ke.name]=Object.assign({},ke.data)});for(var oe=0;oe<T.orderedModifiers.length;oe++){if(T.reset===!0){T.reset=!1,oe=-1;continue}var ge=T.orderedModifiers[oe],be=ge.fn,ze=ge.options,de=ze===void 0?{}:ze,Ce=ge.name;typeof be=="function"&&(T=be({state:T,options:de,name:Ce,instance:j})||T)}}}},update:debounce(function(){return new Promise(function(Q){j.forceUpdate(),Q(T)})}),destroy:function(){W(),O=!0}};if(!areValidElements(M,S))return j;j.setOptions(A).then(function(Q){!O&&A.onFirstUpdate&&A.onFirstUpdate(Q)});function $(){T.orderedModifiers.forEach(function(Q){var X=Q.name,Y=Q.options,ie=Y===void 0?{}:Y,oe=Q.effect;if(typeof oe=="function"){var ge=oe({state:T,name:X,instance:j,options:ie}),be=function(){};D.push(ge||be)}})}function W(){D.forEach(function(Q){return Q()}),D=[]}return j}}var passive={passive:!0};function effect$2(u){var f=u.state,d=u.instance,_=u.options,x=_.scroll,I=x===void 0?!0:x,E=_.resize,M=E===void 0?!0:E,S=getWindow$1(f.elements.popper),A=[].concat(f.scrollParents.reference,f.scrollParents.popper);return I&&A.forEach(function(T){T.addEventListener("scroll",d.update,passive)}),M&&S.addEventListener("resize",d.update,passive),function(){I&&A.forEach(function(T){T.removeEventListener("scroll",d.update,passive)}),M&&S.removeEventListener("resize",d.update,passive)}}var eventListeners={name:"eventListeners",enabled:!0,phase:"write",fn:function u(){},effect:effect$2,data:{}};function popperOffsets(u){var f=u.state,d=u.name;f.modifiersData[d]=computeOffsets({reference:f.rects.reference,element:f.rects.popper,strategy:"absolute",placement:f.placement})}var popperOffsets$1={name:"popperOffsets",enabled:!0,phase:"read",fn:popperOffsets,data:{}},unsetSides={top:"auto",right:"auto",bottom:"auto",left:"auto"};function roundOffsetsByDPR(u){var f=u.x,d=u.y,_=window,x=_.devicePixelRatio||1;return{x:round(round(f*x)/x)||0,y:round(round(d*x)/x)||0}}function mapToStyles(u){var f,d=u.popper,_=u.popperRect,x=u.placement,I=u.variation,E=u.offsets,M=u.position,S=u.gpuAcceleration,A=u.adaptive,T=u.roundOffsets,D=T===!0?roundOffsetsByDPR(E):typeof T=="function"?T(E):E,O=D.x,j=O===void 0?0:O,$=D.y,W=$===void 0?0:$,Q=E.hasOwnProperty("x"),X=E.hasOwnProperty("y"),Y=left,ie=top,oe=window;if(A){var ge=getOffsetParent(d),be="clientHeight",ze="clientWidth";ge===getWindow$1(d)&&(ge=getDocumentElement(d),getComputedStyle$2(ge).position!=="static"&&M==="absolute"&&(be="scrollHeight",ze="scrollWidth")),ge=ge,(x===top||(x===left||x===right)&&I===end)&&(ie=bottom,W-=ge[be]-_.height,W*=S?1:-1),(x===left||(x===top||x===bottom)&&I===end)&&(Y=right,j-=ge[ze]-_.width,j*=S?1:-1)}var de=Object.assign({position:M},A&&unsetSides);if(S){var Ce;return Object.assign({},de,(Ce={},Ce[ie]=X?"0":"",Ce[Y]=Q?"0":"",Ce.transform=(oe.devicePixelRatio||1)<=1?"translate("+j+"px, "+W+"px)":"translate3d("+j+"px, "+W+"px, 0)",Ce))}return Object.assign({},de,(f={},f[ie]=X?W+"px":"",f[Y]=Q?j+"px":"",f.transform="",f))}function computeStyles(u){var f=u.state,d=u.options,_=d.gpuAcceleration,x=_===void 0?!0:_,I=d.adaptive,E=I===void 0?!0:I,M=d.roundOffsets,S=M===void 0?!0:M,A={placement:getBasePlacement(f.placement),variation:getVariation(f.placement),popper:f.elements.popper,popperRect:f.rects.popper,gpuAcceleration:x};f.modifiersData.popperOffsets!=null&&(f.styles.popper=Object.assign({},f.styles.popper,mapToStyles(Object.assign({},A,{offsets:f.modifiersData.popperOffsets,position:f.options.strategy,adaptive:E,roundOffsets:S})))),f.modifiersData.arrow!=null&&(f.styles.arrow=Object.assign({},f.styles.arrow,mapToStyles(Object.assign({},A,{offsets:f.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:S})))),f.attributes.popper=Object.assign({},f.attributes.popper,{"data-popper-placement":f.placement})}var computeStyles$1={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:computeStyles,data:{}};function applyStyles(u){var f=u.state;Object.keys(f.elements).forEach(function(d){var _=f.styles[d]||{},x=f.attributes[d]||{},I=f.elements[d];!isHTMLElement(I)||!getNodeName(I)||(Object.assign(I.style,_),Object.keys(x).forEach(function(E){var M=x[E];M===!1?I.removeAttribute(E):I.setAttribute(E,M===!0?"":M)}))})}function effect$1(u){var f=u.state,d={popper:{position:f.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(f.elements.popper.style,d.popper),f.styles=d,f.elements.arrow&&Object.assign(f.elements.arrow.style,d.arrow),function(){Object.keys(f.elements).forEach(function(_){var x=f.elements[_],I=f.attributes[_]||{},E=Object.keys(f.styles.hasOwnProperty(_)?f.styles[_]:d[_]),M=E.reduce(function(S,A){return S[A]="",S},{});!isHTMLElement(x)||!getNodeName(x)||(Object.assign(x.style,M),Object.keys(I).forEach(function(S){x.removeAttribute(S)}))})}}var applyStyles$1={name:"applyStyles",enabled:!0,phase:"write",fn:applyStyles,effect:effect$1,requires:["computeStyles"]},defaultModifiers=[eventListeners,popperOffsets$1,computeStyles$1,applyStyles$1],createPopper=popperGenerator({defaultModifiers});function getAltAxis(u){return u==="x"?"y":"x"}function within(u,f,d){return max$1(u,min(f,d))}function preventOverflow(u){var f=u.state,d=u.options,_=u.name,x=d.mainAxis,I=x===void 0?!0:x,E=d.altAxis,M=E===void 0?!1:E,S=d.boundary,A=d.rootBoundary,T=d.altBoundary,D=d.padding,O=d.tether,j=O===void 0?!0:O,$=d.tetherOffset,W=$===void 0?0:$,Q=detectOverflow(f,{boundary:S,rootBoundary:A,padding:D,altBoundary:T}),X=getBasePlacement(f.placement),Y=getVariation(f.placement),ie=!Y,oe=getMainAxisFromPlacement(X),ge=getAltAxis(oe),be=f.modifiersData.popperOffsets,ze=f.rects.reference,de=f.rects.popper,Ce=typeof W=="function"?W(Object.assign({},f.rects,{placement:f.placement})):W,ke={x:0,y:0};if(be){if(I||M){var le=oe==="y"?top:left,re=oe==="y"?bottom:right,P=oe==="y"?"height":"width",k=be[oe],B=be[oe]+Q[le],z=be[oe]-Q[re],ee=j?-de[P]/2:0,H=Y===start?ze[P]:de[P],q=Y===start?-de[P]:-ze[P],J=f.elements.arrow,U=j&&J?getLayoutRect(J):{width:0,height:0},Z=f.modifiersData["arrow#persistent"]?f.modifiersData["arrow#persistent"].padding:getFreshSideObject(),ve=Z[le],Ye=Z[re],rt=within(0,ze[P],U[P]),Ue=ie?ze[P]/2-ee-rt-ve-Ce:H-rt-ve-Ce,Qe=ie?-ze[P]/2+ee+rt+Ye+Ce:q+rt+Ye+Ce,vt=f.elements.arrow&&getOffsetParent(f.elements.arrow),ri=vt?oe==="y"?vt.clientTop||0:vt.clientLeft||0:0,ci=f.modifiersData.offset?f.modifiersData.offset[f.placement][oe]:0,tt=be[oe]+Ue-ci-ri,et=be[oe]+Qe-ci;if(I){var $e=within(j?min(B,tt):B,k,j?max$1(z,et):z);be[oe]=$e,ke[oe]=$e-k}if(M){var Le=oe==="x"?top:left,ot=oe==="x"?bottom:right,Oe=be[ge],Ne=Oe+Q[Le],Fe=Oe-Q[ot],Je=within(j?min(Ne,tt):Ne,Oe,j?max$1(Fe,et):Fe);be[ge]=Je,ke[ge]=Je-Oe}}f.modifiersData[_]=ke}}var preventOverflow$1={name:"preventOverflow",enabled:!0,phase:"main",fn:preventOverflow,requiresIfExists:["offset"]},hash$1$1={left:"right",right:"left",bottom:"top",top:"bottom"};function getOppositePlacement(u){return u.replace(/left|right|bottom|top/g,function(f){return hash$1$1[f]})}var hash$2={start:"end",end:"start"};function getOppositeVariationPlacement(u){return u.replace(/start|end/g,function(f){return hash$2[f]})}function computeAutoPlacement(u,f){f===void 0&&(f={});var d=f,_=d.placement,x=d.boundary,I=d.rootBoundary,E=d.padding,M=d.flipVariations,S=d.allowedAutoPlacements,A=S===void 0?placements:S,T=getVariation(_),D=T?M?variationPlacements:variationPlacements.filter(function($){return getVariation($)===T}):basePlacements,O=D.filter(function($){return A.indexOf($)>=0});O.length===0&&(O=D);var j=O.reduce(function($,W){return $[W]=detectOverflow(u,{placement:W,boundary:x,rootBoundary:I,padding:E})[getBasePlacement(W)],$},{});return Object.keys(j).sort(function($,W){return j[$]-j[W]})}function getExpandedFallbackPlacements(u){if(getBasePlacement(u)===auto)return[];var f=getOppositePlacement(u);return[getOppositeVariationPlacement(u),f,getOppositeVariationPlacement(f)]}function flip(u){var f=u.state,d=u.options,_=u.name;if(!f.modifiersData[_]._skip){for(var x=d.mainAxis,I=x===void 0?!0:x,E=d.altAxis,M=E===void 0?!0:E,S=d.fallbackPlacements,A=d.padding,T=d.boundary,D=d.rootBoundary,O=d.altBoundary,j=d.flipVariations,$=j===void 0?!0:j,W=d.allowedAutoPlacements,Q=f.options.placement,X=getBasePlacement(Q),Y=X===Q,ie=S||(Y||!$?[getOppositePlacement(Q)]:getExpandedFallbackPlacements(Q)),oe=[Q].concat(ie).reduce(function(Ye,rt){return Ye.concat(getBasePlacement(rt)===auto?computeAutoPlacement(f,{placement:rt,boundary:T,rootBoundary:D,padding:A,flipVariations:$,allowedAutoPlacements:W}):rt)},[]),ge=f.rects.reference,be=f.rects.popper,ze=new Map,de=!0,Ce=oe[0],ke=0;ke<oe.length;ke++){var le=oe[ke],re=getBasePlacement(le),P=getVariation(le)===start,k=[top,bottom].indexOf(re)>=0,B=k?"width":"height",z=detectOverflow(f,{placement:le,boundary:T,rootBoundary:D,altBoundary:O,padding:A}),ee=k?P?right:left:P?bottom:top;ge[B]>be[B]&&(ee=getOppositePlacement(ee));var H=getOppositePlacement(ee),q=[];if(I&&q.push(z[re]<=0),M&&q.push(z[ee]<=0,z[H]<=0),q.every(function(Ye){return Ye})){Ce=le,de=!1;break}ze.set(le,q)}if(de)for(var J=$?3:1,U=function(rt){var Ue=oe.find(function(Qe){var vt=ze.get(Qe);if(vt)return vt.slice(0,rt).every(function(ri){return ri})});if(Ue)return Ce=Ue,"break"},Z=J;Z>0;Z--){var ve=U(Z);if(ve==="break")break}f.placement!==Ce&&(f.modifiersData[_]._skip=!0,f.placement=Ce,f.reset=!0)}}var flip$1={name:"flip",enabled:!0,phase:"main",fn:flip,requiresIfExists:["offset"],data:{_skip:!1}};function distanceAndSkiddingToXY(u,f,d){var _=getBasePlacement(u),x=[left,top].indexOf(_)>=0?-1:1,I=typeof d=="function"?d(Object.assign({},f,{placement:u})):d,E=I[0],M=I[1];return E=E||0,M=(M||0)*x,[left,right].indexOf(_)>=0?{x:M,y:E}:{x:E,y:M}}function offset(u){var f=u.state,d=u.options,_=u.name,x=d.offset,I=x===void 0?[0,0]:x,E=placements.reduce(function(T,D){return T[D]=distanceAndSkiddingToXY(D,f.rects,I),T},{}),M=E[f.placement],S=M.x,A=M.y;f.modifiersData.popperOffsets!=null&&(f.modifiersData.popperOffsets.x+=S,f.modifiersData.popperOffsets.y+=A),f.modifiersData[_]=E}var offset$1={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:offset},toPaddingObject=function u(f,d){return f=typeof f=="function"?f(Object.assign({},d.rects,{placement:d.placement})):f,mergePaddingObject(typeof f!="number"?f:expandToHashMap(f,basePlacements))};function arrow(u){var f,d=u.state,_=u.name,x=u.options,I=d.elements.arrow,E=d.modifiersData.popperOffsets,M=getBasePlacement(d.placement),S=getMainAxisFromPlacement(M),A=[left,right].indexOf(M)>=0,T=A?"height":"width";if(!(!I||!E)){var D=toPaddingObject(x.padding,d),O=getLayoutRect(I),j=S==="y"?top:left,$=S==="y"?bottom:right,W=d.rects.reference[T]+d.rects.reference[S]-E[S]-d.rects.popper[T],Q=E[S]-d.rects.reference[S],X=getOffsetParent(I),Y=X?S==="y"?X.clientHeight||0:X.clientWidth||0:0,ie=W/2-Q/2,oe=D[j],ge=Y-O[T]-D[$],be=Y/2-O[T]/2+ie,ze=within(oe,be,ge),de=S;d.modifiersData[_]=(f={},f[de]=ze,f.centerOffset=ze-be,f)}}function effect(u){var f=u.state,d=u.options,_=d.element,x=_===void 0?"[data-popper-arrow]":_;x!=null&&(typeof x=="string"&&(x=f.elements.popper.querySelector(x),!x)||contains(f.elements.popper,x)&&(f.elements.arrow=x))}var arrow$1={name:"arrow",enabled:!0,phase:"main",fn:arrow,effect,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};const toInt=u=>parseInt(u,10);function usePopper({arrowPadding:u,emit:f,locked:d,offsetDistance:_,offsetSkid:x,placement:I,popperNode:E,triggerNode:M}){const S=reactive({isOpen:!1,popperInstance:null}),A=W=>{var Q;(Q=S.popperInstance)===null||Q===void 0||Q.setOptions(X=>({...X,modifiers:[...X.modifiers,{name:"eventListeners",enabled:W}]}))},T=()=>A(!0),D=()=>A(!1),O=()=>{S.isOpen&&(S.isOpen=!1,f("close:popper"))},j=()=>{S.isOpen||(S.isOpen=!0,f("open:popper"))};watch([()=>S.isOpen,I],async([W])=>{W?(await $(),T()):D()});const $=async()=>{await nextTick$2(),S.popperInstance=createPopper(M.value,E.value,{placement:I.value,modifiers:[preventOverflow$1,flip$1,{name:"flip",enabled:!d.value},arrow$1,{name:"arrow",options:{padding:toInt(u.value)}},offset$1,{name:"offset",options:{offset:[toInt(x.value),toInt(_.value)]}}]}),S.popperInstance.update()};return onBeforeUnmount(()=>{var W;(W=S.popperInstance)===null||W===void 0||W.destroy()}),{...toRefs(S),open:j,close:O}}const _hoisted_1$1$1={id:"arrow","data-popper-arrow":""};function render$2(u,f){return openBlock(),createElementBlock("div",_hoisted_1$1$1)}function styleInject(u,f){f===void 0&&(f={});var d=f.insertAt;if(!(!u||typeof document>"u")){var _=document.head||document.getElementsByTagName("head")[0],x=document.createElement("style");x.type="text/css",d==="top"&&_.firstChild?_.insertBefore(x,_.firstChild):_.appendChild(x),x.styleSheet?x.styleSheet.cssText=u:x.appendChild(document.createTextNode(u))}}var css_248z$1=`
#arrow[data-v-20b7fd4a],
  #arrow[data-v-20b7fd4a]::before {
    transition: background 250ms ease-in-out;
    position: absolute;
    width: calc(10px - var(--popper-theme-border-width, 0px));
    height: calc(10px - var(--popper-theme-border-width, 0px));
    box-sizing: border-box;
    background: var(--popper-theme-background-color);
}
#arrow[data-v-20b7fd4a] {
    visibility: hidden;
}
#arrow[data-v-20b7fd4a]::before {
    visibility: visible;
    content: "";
    transform: rotate(45deg);
}

  /* Top arrow */
.popper[data-popper-placement^="top"] > #arrow[data-v-20b7fd4a] {
    bottom: -5px;
}
.popper[data-popper-placement^="top"] > #arrow[data-v-20b7fd4a]::before {
    border-right: var(--popper-theme-border-width)
      var(--popper-theme-border-style) var(--popper-theme-border-color);
    border-bottom: var(--popper-theme-border-width)
      var(--popper-theme-border-style) var(--popper-theme-border-color);
}

  /* Bottom arrow */
.popper[data-popper-placement^="bottom"] > #arrow[data-v-20b7fd4a] {
    top: -5px;
}
.popper[data-popper-placement^="bottom"] > #arrow[data-v-20b7fd4a]::before {
    border-left: var(--popper-theme-border-width)
      var(--popper-theme-border-style) var(--popper-theme-border-color);
    border-top: var(--popper-theme-border-width)
      var(--popper-theme-border-style) var(--popper-theme-border-color);
}

  /* Left arrow */
.popper[data-popper-placement^="left"] > #arrow[data-v-20b7fd4a] {
    right: -5px;
}
.popper[data-popper-placement^="left"] > #arrow[data-v-20b7fd4a]::before {
    border-right: var(--popper-theme-border-width)
      var(--popper-theme-border-style) var(--popper-theme-border-color);
    border-top: var(--popper-theme-border-width)
      var(--popper-theme-border-style) var(--popper-theme-border-color);
}

  /* Right arrow */
.popper[data-popper-placement^="right"] > #arrow[data-v-20b7fd4a] {
    left: -5px;
}
`;styleInject(css_248z$1);const script$1={};script$1.render=render$2;script$1.__scopeId="data-v-20b7fd4a";var Arrow=script$1;const _hoisted_1$o=["onKeyup"];var script$3={props:{placement:{type:String,default:"bottom",validator:function(u){return["auto","auto-start","auto-end","top","top-start","top-end","bottom","bottom-start","bottom-end","right","right-start","right-end","left","left-start","left-end"].includes(u)}},disableClickAway:{type:Boolean,default:!1},offsetSkid:{type:String,default:"0"},offsetDistance:{type:String,default:"12"},hover:{type:Boolean,default:!1},show:{type:Boolean,default:null},disabled:{type:Boolean,default:!1},openDelay:{type:[Number,String],default:0},closeDelay:{type:[Number,String],default:0},zIndex:{type:[Number,String],default:9999},arrow:{type:Boolean,default:!1},arrowPadding:{type:String,default:"0"},interactive:{type:Boolean,default:!0},locked:{type:Boolean,default:!1},content:{type:String,default:null}},emits:["open:popper","close:popper"],setup(u,{emit:f}){const d=u;useCssVars(H=>({c81fc0a4:u.zIndex}));const _=useSlots(),x=ref(null),I=ref(null),E=ref(null),M=ref(!1);onMounted(()=>{const H=_.default();if(H&&H.length>1)return console.error(`[Popper]: The <Popper> component expects only one child element at its root. You passed ${H.length} child nodes.`)});const{arrowPadding:S,closeDelay:A,content:T,disableClickAway:D,disabled:O,interactive:j,locked:$,offsetDistance:W,offsetSkid:Q,openDelay:X,placement:Y,show:ie}=toRefs(d),{isOpen:oe,open:ge,close:be}=usePopper({arrowPadding:S,emit:f,locked:$,offsetDistance:W,offsetSkid:Q,placement:Y,popperNode:I,triggerNode:E}),{hasContent:ze}=useContent(_,I,T),de=computed(()=>ie.value!==null),Ce=computed(()=>O.value||!ze.value),ke=computed(()=>oe.value&&!Ce.value),le=computed(()=>!D.value&&!de.value),re=computed(()=>j.value?`border: ${W.value}px solid transparent; margin: -${W.value}px;`:null),P=debounce_1.debounce(ge,X.value),k=debounce_1.debounce(be,A.value),B=async()=>{Ce.value||de.value||(k.clear(),P())},z=async()=>{de.value||(P.clear(),k())},ee=()=>{oe.value?z():B()};return watch([ze,O],([H,q])=>{oe.value&&(!H||q)&&be()}),watch(oe,H=>{H?M.value=!0:debounce_1.debounce(()=>{M.value=!1},200)}),watchEffect(()=>{de.value&&(ie.value?P():k())}),watchEffect(()=>{le.value&&useClickAway(x,z)}),(H,q)=>(openBlock(),createElementBlock("div",{class:"inline-block",style:normalizeStyle(unref(re)),onMouseleave:q[2]||(q[2]=J=>u.hover&&z()),ref:(J,U)=>{U.popperContainerNode=J,x.value=J}},[createBaseVNode("div",{ref:(J,U)=>{U.triggerNode=J,E.value=J},onMouseover:q[0]||(q[0]=J=>u.hover&&B()),onClick:ee,onFocus:B,onKeyup:withKeys(z,["esc"])},[renderSlot(H.$slots,"default")],40,_hoisted_1$o),createVNode(Transition,{name:"fade"},{default:withCtx(()=>[withDirectives(createBaseVNode("div",{onClick:q[1]||(q[1]=J=>!unref(j)&&z()),class:"popper",ref:(J,U)=>{U.popperNode=J,I.value=J}},[renderSlot(H.$slots,"content",{close:unref(be),isOpen:M.value},()=>[createTextVNode(toDisplayString$2(unref(T)),1)]),u.arrow?(openBlock(),createBlock(Arrow,{key:0})):createCommentVNode("",!0)],512),[[vShow,unref(ke)]])]),_:3})],36))}},css_248z=`
.inline-block[data-v-5784ed69] {
    display: inline-block;
}
.popper[data-v-5784ed69] {
    transition: background 250ms ease-in-out;
    background: var(--popper-theme-background-color);
    padding: var(--popper-theme-padding);
    color: var(--popper-theme-text-color);
    border-radius: var(--popper-theme-border-radius);
    border-width: var(--popper-theme-border-width);
    border-style: var(--popper-theme-border-style);
    border-color: var(--popper-theme-border-color);
    box-shadow: var(--popper-theme-box-shadow);
    z-index: var(--c81fc0a4);
}
.popper[data-v-5784ed69]:hover,
  .popper:hover > #arrow[data-v-5784ed69]::before {
    background: var(--popper-theme-background-color-hover);
}
.inline-block[data-v-5784ed69] {
    display: inline-block;
}
.fade-enter-active[data-v-5784ed69],
  .fade-leave-active[data-v-5784ed69] {
    transition: opacity 0.2s ease;
}
.fade-enter-from[data-v-5784ed69],
  .fade-leave-to[data-v-5784ed69] {
    opacity: 0;
}
`;styleInject(css_248z);script$3.__scopeId="data-v-5784ed69";var entry_esm=(()=>{const u=script$3;return u.install=f=>{f.component("Popper",u)},u})();const _sfc_main$r=defineComponent({__name:"WrappedAccountListItem",props:{ticker:{},symbol:{},name:{},amount:{},value:{},supportNft:{type:Boolean,default:!0},currentValue:{default:void 0},unit:{},dailyRange:{default:void 0},type:{},tickerSrc:{},evalBalanceWidth:{},networkSrc:{},isChild:{type:Boolean,default:void 0},isMobile:{type:Boolean,default:void 0},loading:{type:Boolean},isActive:{type:Boolean,default:!1}},emits:["click:item"],setup(u,{emit:f}){const d=u,_=f,x=useLocaleStore(),I=useLoadingsStore(),E=computed(()=>x.applyDigitRule(d.amount,{maximumFractionDigits:4})),M=computed(()=>x.applyLocaleCurrencyDigitRule(d.value)),S=computed(()=>d.currentValue?x.applyLocaleCurrencyDigitRule(d.currentValue):d.currentValue),A=computed(()=>D.value?defaultCoinIcon:d.tickerSrc),T=computed(()=>j.value?defaultCoinIcon:d.networkSrc),D=ref(!1),O=()=>{D.value=!0},j=ref(!1),$=()=>{j.value=!0},W=()=>{_("click:item")};return(Q,X)=>Q.loading||unref(I).localeLoading?(openBlock(),createBlock(unref(AccountListItem),{key:0,ticker:"",symbol:"",name:"",amount:"",value:"","current-value":"",unit:"","daily-range":"",type:Q.type,"ticker-src":"","network-src":"","eval-balance-width":Q.evalBalanceWidth==="52%"?Q.evalBalanceWidth:Q.evalBalanceWidth+"px","is-child":Q.isChild,"is-mobile":Q.isMobile,loading:!0},null,8,["type","eval-balance-width","is-child","is-mobile"])):(openBlock(),createBlock(unref(AccountListItem),{key:1,ticker:Q.ticker,symbol:Q.symbol,name:Q.name,amount:unref(formatDecimal)(E.value,4),value:M.value??"0","support-nft":Q.supportNft,"current-value":S.value,unit:Q.unit,"daily-range":Q.dailyRange,type:Q.type,"ticker-src":A.value,"network-src":T.value,"eval-balance-width":Q.evalBalanceWidth==="52%"?Q.evalBalanceWidth:Q.evalBalanceWidth+"px","is-child":Q.isChild,"is-mobile":Q.isMobile,"is-active":Q.isActive,"onError:loadTokenIcon":O,"onError:loadNetworkIcon":$,onClick:W},null,8,["ticker","symbol","name","amount","value","support-nft","current-value","unit","daily-range","type","ticker-src","network-src","eval-balance-width","is-child","is-mobile","is-active"]))}}),_sfc_main$q=defineComponent({__name:"WrappedNetworkListItem",props:{ticker:{default:""},symbol:{default:""},networkSrc:{default:""},address:{default:""},selected:{type:Boolean,default:!1},width:{default:"400px"}},setup(u){const f=u,d=ref(!1),_=()=>{d.value=!0},x=computed(()=>d.value?defaultCoinIcon:f.networkSrc);return(I,E)=>(openBlock(),createBlock(unref(NetworkListItem),{ticker:I.ticker,symbol:I.symbol,"network-src":x.value,address:I.address,selected:I.selected,width:I.width,"onError:loadTokenIcon":_},null,8,["ticker","symbol","network-src","address","selected","width"]))}}),_sfc_main$p=defineComponent({__name:"WrappedTokenListItem",props:{ticker:{default:""},symbol:{default:""},tickerSrc:{default:void 0},networkSrc:{default:void 0},chip:{default:""}},setup(u){const f=u,d=computed(()=>x.value?defaultCoinIcon:f.tickerSrc),_=computed(()=>E.value?defaultCoinIcon:f.networkSrc),x=ref(!1),I=()=>{x.value=!0},E=ref(!1),M=()=>{E.value=!0};return(S,A)=>(openBlock(),createBlock(unref(TokenListItem),{ticker:S.ticker,symbol:S.symbol,"ticker-src":d.value,"network-src":_.value,chip:S.chip,"onError:loadTokenIcon":I,"onError:loadNetworkIcon":M},null,8,["ticker","symbol","ticker-src","network-src","chip"]))}}),cWowerlayBackground="wowerlay-background",cWowerlay="wowerlay",cWowerlayAnimEnter="wowerlay-anim-enter",cWowerlayAnimLeave="wowerlay-anim-leave",sWowerlayX="--wowerlay-x",sWowerlayY="--wowerlay-y",scrollbarGap=15;var Direction;(function(u){u[u.Horizontal=0]="Horizontal",u[u.Vertical=1]="Vertical"})(Direction||(Direction={}));const getCenter=({targetRect:u,wowerlayRect:f},d)=>d===1?{x:0,y:u.y+u.height/2-f.height/2}:{x:u.x+u.width/2-f.width/2,y:0},getStart=({targetRect:u},f)=>f===1?{x:0,y:u.y}:{x:u.x,y:0},getEnd=({targetRect:u,wowerlayRect:f},d)=>d===1?{x:0,y:u.y+u.height-f.height}:{x:u.x+u.width-f.width,y:0},getRight=({targetRect:u,wowerlayRect:f},{horizontalGap:d})=>({x:u.x+u.width+d,y:getCenter({targetRect:u,wowerlayRect:f},1).y}),getRightStart=(u,f)=>({x:getRight(u,f).x,y:getStart(u,1).y}),getRightEnd=(u,f)=>({x:getRight(u,f).x,y:getEnd(u,1).y}),getLeft=({targetRect:u,wowerlayRect:f},{horizontalGap:d})=>({x:u.x-f.width-d,y:getCenter({targetRect:u,wowerlayRect:f},1).y}),getLeftStart=(u,f)=>({x:getLeft(u,f).x,y:getStart(u,1).y}),getLeftEnd=(u,f)=>({x:getLeft(u,f).x,y:getEnd(u,1).y}),getTop=({targetRect:u,wowerlayRect:f},{verticalGap:d})=>({x:getCenter({targetRect:u,wowerlayRect:f},0).x,y:u.y-f.height-d}),getTopStart=(u,f)=>({x:getStart(u,0).x,y:getTop(u,f).y}),getTopEnd=(u,f)=>({y:getTop(u,f).y,x:getEnd(u,0).x}),getBottom=({targetRect:u,wowerlayRect:f},{verticalGap:d})=>({x:getCenter({targetRect:u,wowerlayRect:f},0).x,y:u.y+u.height+d}),getBottomStart=(u,f)=>({x:getStart(u,0).x,y:getBottom(u,f).y}),getBottomEnd=(u,f)=>({y:getBottom(u,f).y,x:getEnd(u,0).x}),checkOutOfScreenTop=({targetRect:u,wowerlayRect:f},{verticalGap:d})=>u.y-f.height-d<0,checkOutOfScreenBottom=({targetRect:u,wowerlayRect:f},{verticalGap:d})=>u.y+u.height+f.height+scrollbarGap+d>window.innerHeight,checkOutOfScreenLeft=({targetRect:u,wowerlayRect:f},{horizontalGap:d})=>u.x-f.width-d<0,checkOutOfScreenRight=({targetRect:u,wowerlayRect:f},{horizontalGap:d})=>u.x+u.width+f.width+scrollbarGap+d>window.innerWidth,isBrowser=()=>typeof window<"u"&&typeof document<"u",isResizeObserverSupported=()=>isBrowser()&&"ResizeObserver"in window,isElement=u=>isBrowser()&&u instanceof HTMLElement;function getAncestors(u){const f=[];let d=u.parentNode;for(;d!=null;)f.push(d),d=d.parentNode;return f}const wowerlayBaseProps={target:{type:Object},backgroundAttrs:{type:Object,default:()=>({})},noBackground:{default:!1,type:Boolean},fixed:{default:!1,type:Boolean},syncWidth:{default:!1,type:Boolean},syncHeight:{default:!1,type:Boolean},noFlip:{default:!1,type:Boolean},position:{default:"bottom",type:String},verticalGap:{default:0,type:Number},horizontalGap:{default:0,type:Number},canLeaveViewport:{default:!1,type:Boolean},tag:{default:"div",type:String},transition:{default:!0,type:[Boolean,String]}},positionHandlers={top:{handle:getTop,handleOutOfScreen:getBottom},"top-start":{handle:getTopStart,handleOutOfScreen:getBottomStart},"top-end":{handle:getTopEnd,handleOutOfScreen:getBottomEnd},right:{handle:getRight,handleOutOfScreen:getLeft},"right-start":{handle:getRightStart,handleOutOfScreen:getLeftStart},"right-end":{handle:getRightEnd,handleOutOfScreen:getLeftEnd},bottom:{handle:getBottom,handleOutOfScreen:getTop},"bottom-start":{handle:getBottomStart,handleOutOfScreen:getTopStart},"bottom-end":{handle:getBottomEnd,handleOutOfScreen:getTopEnd},left:{handle:getLeft,handleOutOfScreen:getRight},"left-start":{handle:getLeftStart,handleOutOfScreen:getRightStart},"left-end":{handle:getLeftEnd,handleOutOfScreen:getRightEnd}},WowerlayRenderer=defineComponent({name:"WowerlayRenderer",inheritAttrs:!1,props:wowerlayBaseProps,emits:{click:null,"update:el":null},setup(u,{emit:f,expose:d}){const _=ref(null),x=ref(0),I=ref(0),E=ref(null),M=ref(null),S=computed(()=>u.position.split("-")[0]),A=computed(()=>({[sWowerlayX]:`${I.value}px`,[sWowerlayY]:`${x.value}px`})),T=computed(()=>({width:E.value?`${E.value}px`:null,height:M.value?`${M.value}px`:null})),D=Y=>f("click",Y),O=(Y,ie)=>{if(u.canLeaveViewport||!_.value)return Y;const{width:oe,height:ge}=_.value.getBoundingClientRect();if(ie===Direction.Horizontal){const ze=window.innerWidth-oe-scrollbarGap;return Math.max(0,Math.min(ze,Y))}const be=window.innerHeight-ge-scrollbarGap;return Math.max(0,Math.min(be,Y))},j=()=>{if(!isBrowser()||!isElement(u.target)||!isElement(_.value))return;const Y=u.target.getBoundingClientRect(),ie=_.value.getBoundingClientRect(),oe={targetRect:Y,wowerlayRect:ie},ge={verticalGap:u.verticalGap,horizontalGap:u.horizontalGap},be={x:0,y:0},ze=({x:le,y:re})=>{be.x=le,be.y=re},{checkOutOfScreen:de,handle:Ce,handleOutOfScreen:ke}=positionHandlers[u.position]||positionHandlers.bottom;ze(Ce(oe,ge)),ke&&!u.noFlip&&(de?de(oe)&&ze(ke(oe,ge)):(S.value==="top"&&checkOutOfScreenTop(oe,ge)||S.value==="bottom"&&checkOutOfScreenBottom(oe,ge)||S.value==="left"&&checkOutOfScreenLeft(oe,ge)||S.value==="right"&&checkOutOfScreenRight(oe,ge))&&ze(ke(oe,ge))),u.syncWidth&&(E.value=Y.width),u.syncHeight&&(M.value=Y.height),I.value=O(be.x,Direction.Horizontal),x.value=O(be.y,Direction.Vertical)};let $;isResizeObserverSupported()&&($=new ResizeObserver(()=>{u.fixed||j()}),watch(()=>u.target,(Y,ie)=>{isElement(ie)&&$?.unobserve(ie),isElement(Y)&&$?.observe(Y)},{immediate:!0}));const W=Y=>{Y===null||Y instanceof HTMLElement?(Y!==_.value&&f("update:el",Y),_.value=Y):f("update:el",null)};watch(()=>[u.position,u.target,u.verticalGap,u.horizontalGap,u.syncWidth,u.syncHeight,u.canLeaveViewport],j),watchEffect(()=>{u.syncWidth||(E.value=null),u.syncHeight||(M.value=null)});const Q=()=>{u.fixed||j()};onMounted(()=>{isElement(u.target)&&j(),_.value&&$?.observe(_.value),window.addEventListener("resize",Q)}),onBeforeUnmount(()=>{isElement(_.value)&&($?.unobserve(_.value),window.removeEventListener("resize",Q))});const X=shallowRef([]);return watch(()=>u.target,Y=>{for(const ie of X.value)ie.removeEventListener("scroll",Q);if(isElement(Y)){const ie=getAncestors(Y);for(const oe of ie)oe.addEventListener("scroll",Q,{passive:!0});X.value=ie}},{immediate:!0}),d({update:j}),{handleClick:D,handleRef:W,wowerlayElement:_,positionStyle:A,syncedBoundsStyle:T}},render(){const u=this.tag;return createVNode(u,mergeProps({ref:this.handleRef,class:cWowerlay,style:[this.positionStyle,this.syncedBoundsStyle],onClick:this.handleClick,role:"tooltip"},this.$attrs),{default:()=>[this.$slots.default?.()]})}});function _isSlot(u){return typeof u=="function"||Object.prototype.toString.call(u)==="[object Object]"&&!isVNode$2(u)}const ATTR_PREFIX="data-wowerlay-",SCOPE_ATTR_QUERY=`[${ATTR_PREFIX}scope]`,STOP_ATTR_QUERY=`[${ATTR_PREFIX}stop]`,Wowerlay=defineComponent({name:"Wowerlay",inheritAttrs:!1,props:{...wowerlayBaseProps,visible:{required:!0,type:Boolean}},emits:{"update:visible":null,"update:el":null},setup(u,{emit:f,expose:d}){const _=shallowRef();d({update(){_.value?.update()}});const x=ref(!1),I=computed(()=>isElement(u.target)&&u.visible),E=()=>{u.visible&&x.value&&f("update:visible",!1)};onBeforeUnmount(E);const M=shallowRef(),S=D=>{if(!u.visible||!(u.target instanceof HTMLElement)||!(D.target instanceof HTMLElement)||D.target.closest(STOP_ATTR_QUERY))return;const O=D.target.closest(SCOPE_ATTR_QUERY);O&&!O.contains(u.target)||D.target.matches("[data-wowerlay-background]")&&D.target!==M.value||E()};onMounted(()=>{window.addEventListener("click",S)}),onBeforeUnmount(()=>{window.removeEventListener("click",S)});const A=ref(u.visible);return watch(()=>u.visible,D=>{D?(setTimeout(()=>{x.value=!0},0),A.value=!0):(x.value=!1,u.transition===!1&&setTimeout(()=>{A.value=!1}))}),{handleContentTransitionEnd:()=>setTimeout(()=>{A.value=!1}),tooltipIsClosable:x,tooltipIsVisible:I,backgroundEl:M,wowerlayInstance:_,backgroundVisible:A}},render(){let u;const f=this.tooltipIsVisible?createVNode(WowerlayRenderer,mergeProps({"onUpdate:el":x=>this.$emit("update:el",x),"data-wowerlay-scope":!0,ref:"wowerlayInstance"},this.$props,this.$attrs),{default:()=>[this.$slots.default?.()]}):null;let d=createVNode(Transition,{appear:!0,enterActiveClass:cWowerlayAnimEnter,leaveActiveClass:cWowerlayAnimLeave,onAfterLeave:this.handleContentTransitionEnd},_isSlot(f)?f:{default:()=>[f]});this.transition===!1?d=f:typeof this.transition=="string"&&(d=createVNode(Transition,{appear:!0,onAfterLeave:this.handleContentTransitionEnd,name:this.transition},_isSlot(f)?f:{default:()=>[f]}));const _=Object.assign(Object.create(null),this.backgroundAttrs);return delete _.key,createVNode(Teleport,{to:"body"},_isSlot(u=this.noBackground?d:this.backgroundVisible?createVNode("div",mergeProps({"data-wowerlay-background":!0,class:cWowerlayBackground,role:"dialog",ref:"backgroundEl"},_),[d]):null)?u:{default:()=>[u]})}}),_hoisted_1$n={class:"buttons"},_sfc_main$o=defineComponent({__name:"BasicBottomButtons",props:{disabled:{type:Boolean,default:!1},confirmText:{default:""},cancelText:{default:""}},emits:["cancel","confirm"],setup(u){const{t:f}=useI18nTypes(),d=u,_=computed(()=>d.confirmText===""?f("global.confirm"):d.confirmText),x=computed(()=>d.cancelText===""?f("global.cancel"):d.cancelText);return(I,E)=>(openBlock(),createElementBlock("div",_hoisted_1$n,[createVNode(unref(BasicButton),{type:"outlined",width:"100%",onClick:E[0]||(E[0]=M=>I.$emit("cancel"))},{default:withCtx(()=>[createTextVNode(toDisplayString$2(x.value),1)]),_:1}),createVNode(unref(BasicButton),{type:"primary",disabled:I.disabled,width:"100%",onClick:E[1]||(E[1]=M=>I.disabled?void 0:I.$emit("confirm"))},{default:withCtx(()=>[createTextVNode(toDisplayString$2(_.value),1)]),_:1},8,["disabled"])]))}}),BBB=_export_sfc(_sfc_main$o,[["__scopeId","data-v-6adc0fbe"]]),_hoisted_1$m={key:0,class:"item-icon"},_hoisted_2$i={class:"item-name"},_hoisted_3$c={key:0,class:"item-desc"},_hoisted_4$7={class:"item-button"},_sfc_main$n=defineComponent({__name:"PopupListItem",props:{element:{},name:{},desc:{},button:{}},emits:["click","update:check","click:button"],setup(u,{emit:f}){const d=f,_=x=>{d("update:check",x)};return(x,I)=>(openBlock(),createElementBlock("div",{class:"popup-list-item",onClick:I[1]||(I[1]=E=>d("click"))},[x.element?(openBlock(),createElementBlock("div",_hoisted_1$m,[createVNode(unref(Element$1),{name:x.element.name,size:x.element.size,color:x.element.color},null,8,["name","size","color"])])):createCommentVNode("",!0),createBaseVNode("div",_hoisted_2$i,[createTextVNode(toDisplayString$2(x.name)+" ",1),x.desc?(openBlock(),createElementBlock("span",_hoisted_3$c,toDisplayString$2(x.desc),1)):createCommentVNode("",!0)]),createBaseVNode("div",_hoisted_4$7,[x.button?(openBlock(),createElementBlock(Fragment,{key:0},[x.button.type==="element"?(openBlock(),createBlock(unref(Element$1),{key:0,name:x.button.name,color:x.button.color,size:x.button.size,onClick:I[0]||(I[0]=E=>d("click:button"))},null,8,["name","color","size"])):x.button.type==="toggle"?(openBlock(),createBlock(unref(ToggleButton),{key:1,checked:x.button.checked,color:x.button.color,disabled:x.button.disabled,"onUpdate:checked":_},null,8,["checked","color","disabled"])):createCommentVNode("",!0)],64)):createCommentVNode("",!0)])]))}}),PopupListItem=_export_sfc(_sfc_main$n,[["__scopeId","data-v-98f163d2"]]),_hoisted_1$l={class:"popup-list"},_sfc_main$m=defineComponent({__name:"PopupList",props:{items:{}},setup(u){return(f,d)=>(openBlock(),createElementBlock("div",_hoisted_1$l,[(openBlock(!0),createElementBlock(Fragment,null,renderList(f.items,(_,x)=>(openBlock(),createElementBlock(Fragment,null,[_.type==="item"?(openBlock(),createBlock(PopupListItem,{key:_.name,element:_.element,name:_.name,button:_.button,desc:_.desc,onClick:_.onClick,"onUpdate:check":_.onCheck},null,8,["element","name","button","desc","onClick","onUpdate:check"])):_.type==="line"?(openBlock(),createElementBlock("div",{key:x,class:"line"})):createCommentVNode("",!0)],64))),256))]))}}),PopupList=_export_sfc(_sfc_main$m,[["__scopeId","data-v-bd36fbc8"]]),_hoisted_1$k={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$h=["fill"],_sfc_main$l=defineComponent({__name:"InfoIcon",props:{fill:{}},setup(u){return(f,d)=>(openBlock(),createElementBlock("svg",_hoisted_1$k,[createBaseVNode("path",{d:"M7.25 12H8.75V7H7.25V12ZM8 5.5C8.208 5.5 8.385 5.427 8.531 5.281C8.677 5.135 8.75 4.958 8.75 4.75C8.75 4.542 8.677 4.365 8.531 4.219C8.385 4.073 8.208 4 8 4C7.792 4 7.615 4.073 7.469 4.219C7.323 4.365 7.25 4.542 7.25 4.75C7.25 4.958 7.323 5.135 7.469 5.281C7.615 5.427 7.792 5.5 8 5.5ZM8 16C6.90267 16 5.868 15.7917 4.896 15.375C3.924 14.9583 3.07333 14.3853 2.344 13.656C1.61467 12.9267 1.04167 12.076 0.625 11.104C0.208333 10.132 0 9.09733 0 8C0 6.88867 0.208333 5.85033 0.625 4.885C1.04167 3.92033 1.61467 3.07333 2.344 2.344C3.07333 1.61467 3.924 1.04167 4.896 0.625C5.868 0.208333 6.90267 0 8 0C9.11133 0 10.1497 0.208333 11.115 0.625C12.0797 1.04167 12.9267 1.61467 13.656 2.344C14.3853 3.07333 14.9583 3.92033 15.375 4.885C15.7917 5.85033 16 6.88867 16 8C16 9.09733 15.7917 10.132 15.375 11.104C14.9583 12.076 14.3853 12.9267 13.656 13.656C12.9267 14.3853 12.0797 14.9583 11.115 15.375C10.1497 15.7917 9.11133 16 8 16Z",fill:f.fill?f.fill:"#CCCCCC"},null,8,_hoisted_2$h)]))}}),_sfc_main$k={},_hoisted_1$j={width:"46",height:"17",viewBox:"0 0 46 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$g=createStaticVNode('<rect x="0.5" y="1" width="45" height="15" rx="7.5" fill="white"></rect><path d="M12.96 5.21H11.92V10.91L7.84 5.21H6.72V12.57H7.76V6.88L11.84 12.57H12.96V5.21ZM19.5534 5.21H14.5034V12.57H15.5434V9.33H18.9034V8.43H15.5434V6.11H19.5534V5.21ZM25.8665 5.21H20.4365V6.11H22.6365V12.57H23.6765V6.11H25.8665V5.21Z" fill="#666666"></path><circle cx="34.5" cy="8.5" r="4.5" fill="white" stroke="#F5222D" stroke-width="2"></circle><line x1="31.2525" y1="5.40811" x2="37.931" y2="11.6146" stroke="#F5222D" stroke-width="2"></line><rect x="0.5" y="1" width="45" height="15" rx="7.5" stroke="#CCCCCC"></rect>',5),_hoisted_7$1=[_hoisted_2$g];function _sfc_render(u,f){return openBlock(),createElementBlock("svg",_hoisted_1$j,_hoisted_7$1)}const UnsupportNFTIcon=_export_sfc(_sfc_main$k,[["render",_sfc_render]]),_hoisted_1$i={class:"search-bar"},_hoisted_2$f={class:"search-bar-header"},_hoisted_3$b={class:"popper-content"},_hoisted_4$6={class:"accountList"},_hoisted_5$2={class:"bottom-wrapper"},_sfc_main$j=defineComponent({__name:"SelectAccount",props:{accountList:{},headerText:{},excludeTokens:{type:Boolean}},emits:["select-account"],setup(u,{emit:f}){const{t:d}=useI18n(),{breakPointsClass:_}=useBreakPointsClass(defaultBreakPoints),x=useLocaleStore(),I=u,E=f,M=computed(()=>I.accountList.reduce(($,W)=>($.push(W),!I.excludeTokens&&W.tokens&&W.tokens.forEach(Q=>$.push(Q)),$),[])),S=ref(""),A=computed(()=>M.value.filter($=>$.label.toLowerCase().includes(S.value.toLowerCase())||$.coin?.name?.toLowerCase().includes(S.value.toLowerCase())||$.coin?.symbol.toLowerCase().includes(S.value.toLowerCase()))),T=$=>{E("select-account",$)},D=$=>{const W=/^\/dashboard\/([^/]+)/,X=getParentPath(router.currentRoute.value.path).match(W);if(!X)return new Error("[onClickCreateAccount] ParentPath None Error");router.replace({name:X[1]+"_add_account_coinlist",query:{preSelectedCoin:$?.id}})},O=ref(),j=ref("52%");return useResizeObserver(O,$=>{j.value=$[0].contentRect.width}),($,W)=>(openBlock(),createElementBlock("div",{class:normalizeClass(["accountSelectWrapper",unref(_)])},[createBaseVNode("div",_hoisted_1$i,[createBaseVNode("div",_hoisted_2$f,[createBaseVNode("p",null,toDisplayString$2($.headerText),1),createVNode(unref(entry_esm),{class:"popper-parant",arrow:""},{content:withCtx(()=>[createBaseVNode("div",_hoisted_3$b,[createVNode(UnsupportNFTIcon),createTextVNode(toDisplayString$2(unref(d)("receive.info_support_nft")),1)])]),default:withCtx(()=>[createVNode(_sfc_main$l)]),_:1})]),createVNode(unref(SearchBox),{modelValue:S.value,"onUpdate:modelValue":W[0]||(W[0]=Q=>S.value=Q),width:"400",placeholder:unref(d)("send.search")},null,8,["modelValue","placeholder"])]),createBaseVNode("div",_hoisted_4$6,[(openBlock(!0),createElementBlock(Fragment,null,renderList(A.value,Q=>(openBlock(),createBlock(unref(_sfc_main$r),{key:Q.getKey(),ticker:Q.coin?.name??"",symbol:Q.coin?.symbol??"",name:Q.label,amount:unref(x).applyDigitRule(Q.amount.ethValue.toFixed()),value:Q.amount.calculatePrice(Q.coin?.priceInfo).toFixed(),"support-nft":Q.coin?.supportNft,unit:unref(x).localeInfo?.unit,type:"list-shortform","ticker-src":Q.coin?.iconUrl??unref(defaultCoinIcon),"network-src":Q.coin?.coin?.iconUrl,"eval-balance-width":j.value,onClick:X=>T(Q)},{default:withCtx(()=>[createTextVNode(toDisplayString$2(Q.coin?.supportNft),1)]),_:2},1032,["ticker","symbol","name","amount","value","support-nft","unit","ticker-src","network-src","eval-balance-width","onClick"]))),128))]),createBaseVNode("div",_hoisted_5$2,[createVNode(unref(BasicButton),{type:"outlined",width:"100%",onClick:D},{default:withCtx(()=>[createTextVNode(toDisplayString$2(unref(d)("my_wallet.add_account")),1)]),_:1})])],2))}}),SelectAccount=_export_sfc(_sfc_main$j,[["__scopeId","data-v-ec2679d4"]]);function getInternetExplorerVersion(){var u=window.navigator.userAgent,f=u.indexOf("MSIE ");if(f>0)return parseInt(u.substring(f+5,u.indexOf(".",f)),10);var d=u.indexOf("Trident/");if(d>0){var _=u.indexOf("rv:");return parseInt(u.substring(_+3,u.indexOf(".",_)),10)}var x=u.indexOf("Edge/");return x>0?parseInt(u.substring(x+5,u.indexOf(".",x)),10):-1}let isIE;function initCompat(){initCompat.init||(initCompat.init=!0,isIE=getInternetExplorerVersion()!==-1)}var script={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){initCompat(),nextTick$2(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const u=document.createElement("object");this._resizeObject=u,u.setAttribute("aria-hidden","true"),u.setAttribute("tabindex",-1),u.onload=this.addResizeHandlers,u.type="text/html",isIE&&this.$el.appendChild(u),u.data="about:blank",isIE||this.$el.appendChild(u)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!isIE&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const _withId=withScopeId();pushScopeId("data-v-b329ee4c");const _hoisted_1$h={class:"resize-observer",tabindex:"-1"};popScopeId();const render=_withId((u,f,d,_,x,I)=>(openBlock(),createBlock("div",_hoisted_1$h)));script.render=render;script.__scopeId="data-v-b329ee4c";script.__file="src/components/ResizeObserver.vue";function _typeof$2(u){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$2=function(f){return typeof f}:_typeof$2=function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},_typeof$2(u)}function _classCallCheck(u,f){if(!(u instanceof f))throw new TypeError("Cannot call a class as a function")}function _defineProperties(u,f){for(var d=0;d<f.length;d++){var _=f[d];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(u,_.key,_)}}function _createClass(u,f,d){return f&&_defineProperties(u.prototype,f),d&&_defineProperties(u,d),u}function _toConsumableArray$1(u){return _arrayWithoutHoles$1(u)||_iterableToArray$1(u)||_unsupportedIterableToArray$1(u)||_nonIterableSpread$1()}function _arrayWithoutHoles$1(u){if(Array.isArray(u))return _arrayLikeToArray$1(u)}function _iterableToArray$1(u){if(typeof Symbol<"u"&&Symbol.iterator in Object(u))return Array.from(u)}function _unsupportedIterableToArray$1(u,f){if(u){if(typeof u=="string")return _arrayLikeToArray$1(u,f);var d=Object.prototype.toString.call(u).slice(8,-1);if(d==="Object"&&u.constructor&&(d=u.constructor.name),d==="Map"||d==="Set")return Array.from(u);if(d==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d))return _arrayLikeToArray$1(u,f)}}function _arrayLikeToArray$1(u,f){(f==null||f>u.length)&&(f=u.length);for(var d=0,_=new Array(f);d<f;d++)_[d]=u[d];return _}function _nonIterableSpread$1(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function processOptions(u){var f;return typeof u=="function"?f={callback:u}:f=u,f}function throttle$1(u,f){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},_,x,I,E=function(S){for(var A=arguments.length,T=new Array(A>1?A-1:0),D=1;D<A;D++)T[D-1]=arguments[D];if(I=T,!(_&&S===x)){var O=d.leading;typeof O=="function"&&(O=O(S,x)),(!_||S!==x)&&O&&u.apply(void 0,[S].concat(_toConsumableArray$1(I))),x=S,clearTimeout(_),_=setTimeout(function(){u.apply(void 0,[S].concat(_toConsumableArray$1(I))),_=0},f)}};return E._clear=function(){clearTimeout(_),_=null},E}function deepEqual(u,f){if(u===f)return!0;if(_typeof$2(u)==="object"){for(var d in u)if(!deepEqual(u[d],f[d]))return!1;return!0}return!1}var VisibilityState=function(){function u(f,d,_){_classCallCheck(this,u),this.el=f,this.observer=null,this.frozen=!1,this.createObserver(d,_)}return _createClass(u,[{key:"createObserver",value:function(d,_){var x=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=processOptions(d),this.callback=function(M,S){x.options.callback(M,S),M&&x.options.once&&(x.frozen=!0,x.destroyObserver())},this.callback&&this.options.throttle){var I=this.options.throttleOptions||{},E=I.leading;this.callback=throttle$1(this.callback,this.options.throttle,{leading:function(S){return E==="both"||E==="visible"&&S||E==="hidden"&&!S}})}this.oldResult=void 0,this.observer=new IntersectionObserver(function(M){var S=M[0];if(M.length>1){var A=M.find(function(D){return D.isIntersecting});A&&(S=A)}if(x.callback){var T=S.isIntersecting&&S.intersectionRatio>=x.threshold;if(T===x.oldResult)return;x.oldResult=T,x.callback(T,S)}},this.options.intersection),nextTick$2(function(){x.observer&&x.observer.observe(x.el)})}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&typeof this.options.intersection.threshold=="number"?this.options.intersection.threshold:0}}]),u}();function beforeMount(u,f,d){var _=f.value;if(_)if(typeof IntersectionObserver>"u")console.warn("[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill");else{var x=new VisibilityState(u,_,d);u._vue_visibilityState=x}}function updated(u,f,d){var _=f.value,x=f.oldValue;if(!deepEqual(_,x)){var I=u._vue_visibilityState;if(!_){unmounted(u);return}I?I.createObserver(_,d):beforeMount(u,{value:_},d)}}function unmounted(u){var f=u._vue_visibilityState;f&&(f.destroyObserver(),delete u._vue_visibilityState)}var ObserveVisibility={beforeMount,updated,unmounted},config$1={itemsLimit:1e3},regex=/(auto|scroll)/;function parents(u,f){return u.parentNode===null?f:parents(u.parentNode,f.concat([u]))}var style=function u(f,d){return getComputedStyle(f,null).getPropertyValue(d)},overflow=function u(f){return style(f,"overflow")+style(f,"overflow-y")+style(f,"overflow-x")},scroll=function u(f){return regex.test(overflow(f))};function getScrollParent(u){if(u instanceof HTMLElement||u instanceof SVGElement){for(var f=parents(u.parentNode,[]),d=0;d<f.length;d+=1)if(scroll(f[d]))return f[d];return document.scrollingElement||document.documentElement}}function _typeof$1(u){"@babel/helpers - typeof";return _typeof$1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},_typeof$1(u)}var props={items:{type:Array,required:!0},keyField:{type:String,default:"id"},direction:{type:String,default:"vertical",validator:function u(f){return["vertical","horizontal"].includes(f)}},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"}};function simpleArray(){return this.items.length&&_typeof$1(this.items[0])!=="object"}var supportsPassive=!1;if(typeof window<"u"){supportsPassive=!1;try{var opts=Object.defineProperty({},"passive",{get:function(){supportsPassive=!0}});window.addEventListener("test",null,opts)}catch{}}let uid=0;var script$2={name:"RecycleScroller",components:{ResizeObserver:script},directives:{ObserveVisibility},props:{...props,itemSize:{type:Number,default:null},gridItems:{type:Number,default:void 0},itemSecondarySize:{type:Number,default:void 0},minItemSize:{type:[Number,String],default:null},sizeField:{type:String,default:"size"},typeField:{type:String,default:"type"},buffer:{type:Number,default:200},pageMode:{type:Boolean,default:!1},prerender:{type:Number,default:0},emitUpdate:{type:Boolean,default:!1},updateInterval:{type:Number,default:0},skipHover:{type:Boolean,default:!1},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"},listClass:{type:[String,Object,Array],default:""},itemClass:{type:[String,Object,Array],default:""}},emits:["resize","visible","hidden","update","scroll-start","scroll-end"],data(){return{pool:[],totalSize:0,ready:!1,hoverKey:null}},computed:{sizes(){if(this.itemSize===null){const u={"-1":{accumulator:0}},f=this.items,d=this.sizeField,_=this.minItemSize;let x=1e4,I=0,E;for(let M=0,S=f.length;M<S;M++)E=f[M][d]||_,E<x&&(x=E),I+=E,u[M]={accumulator:I,size:E};return this.$_computedMinItemSize=x,u}return[]},simpleArray,itemIndexByKey(){const{keyField:u,items:f}=this,d={};for(let _=0,x=f.length;_<x;_++)d[f[_][u]]=_;return d}},watch:{items(){this.updateVisibleItems(!0)},pageMode(){this.applyPageMode(),this.updateVisibleItems(!1)},sizes:{handler(){this.updateVisibleItems(!1)},deep:!0},gridItems(){this.updateVisibleItems(!0)},itemSecondarySize(){this.updateVisibleItems(!0)}},created(){this.$_startIndex=0,this.$_endIndex=0,this.$_views=new Map,this.$_unusedViews=new Map,this.$_scrollDirty=!1,this.$_lastUpdateScrollPosition=0,this.prerender&&(this.$_prerender=!0,this.updateVisibleItems(!1)),this.gridItems&&!this.itemSize&&console.error("[vue-recycle-scroller] You must provide an itemSize when using gridItems")},mounted(){this.applyPageMode(),this.$nextTick(()=>{this.$_prerender=!1,this.updateVisibleItems(!0),this.ready=!0})},activated(){const u=this.$_lastUpdateScrollPosition;typeof u=="number"&&this.$nextTick(()=>{this.scrollToPosition(u)})},beforeUnmount(){this.removeListeners()},methods:{addView(u,f,d,_,x){const I=markRaw({id:uid++,index:f,used:!0,key:_,type:x}),E=shallowReactive({item:d,position:0,nr:I});return u.push(E),E},unuseView(u,f=!1){const d=this.$_unusedViews,_=u.nr.type;let x=d.get(_);x||(x=[],d.set(_,x)),x.push(u),f||(u.nr.used=!1,u.position=-9999)},handleResize(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll(u){if(!this.$_scrollDirty){if(this.$_scrollDirty=!0,this.$_updateTimeout)return;const f=()=>requestAnimationFrame(()=>{this.$_scrollDirty=!1;const{continuous:d}=this.updateVisibleItems(!1,!0);d||(clearTimeout(this.$_refreshTimout),this.$_refreshTimout=setTimeout(this.handleScroll,this.updateInterval+100))});f(),this.updateInterval&&(this.$_updateTimeout=setTimeout(()=>{this.$_updateTimeout=0,this.$_scrollDirty&&f()},this.updateInterval))}},handleVisibilityChange(u,f){this.ready&&(u||f.boundingClientRect.width!==0||f.boundingClientRect.height!==0?(this.$emit("visible"),requestAnimationFrame(()=>{this.updateVisibleItems(!1)})):this.$emit("hidden"))},updateVisibleItems(u,f=!1){const d=this.itemSize,_=this.gridItems||1,x=this.itemSecondarySize||d,I=this.$_computedMinItemSize,E=this.typeField,M=this.simpleArray?null:this.keyField,S=this.items,A=S.length,T=this.sizes,D=this.$_views,O=this.$_unusedViews,j=this.pool,$=this.itemIndexByKey;let W,Q,X,Y,ie;if(!A)W=Q=Y=ie=X=0;else if(this.$_prerender)W=Y=0,Q=ie=Math.min(this.prerender,S.length),X=null;else{const ke=this.getScroll();if(f){let P=ke.start-this.$_lastUpdateScrollPosition;if(P<0&&(P=-P),d===null&&P<I||P<d)return{continuous:!0}}this.$_lastUpdateScrollPosition=ke.start;const le=this.buffer;ke.start-=le,ke.end+=le;let re=0;if(this.$refs.before&&(re=this.$refs.before.scrollHeight,ke.start-=re),this.$refs.after){const P=this.$refs.after.scrollHeight;ke.end+=P}if(d===null){let P,k=0,B=A-1,z=~~(A/2),ee;do ee=z,P=T[z].accumulator,P<ke.start?k=z:z<A-1&&T[z+1].accumulator>ke.start&&(B=z),z=~~((k+B)/2);while(z!==ee);for(z<0&&(z=0),W=z,X=T[A-1].accumulator,Q=z;Q<A&&T[Q].accumulator<ke.end;Q++);for(Q===-1?Q=S.length-1:(Q++,Q>A&&(Q=A)),Y=W;Y<A&&re+T[Y].accumulator<ke.start;Y++);for(ie=Y;ie<A&&re+T[ie].accumulator<ke.end;ie++);}else{W=~~(ke.start/d*_);const P=W%_;W-=P,Q=Math.ceil(ke.end/d*_),Y=Math.max(0,Math.floor((ke.start-re)/d*_)),ie=Math.floor((ke.end-re)/d*_),W<0&&(W=0),Q>A&&(Q=A),Y<0&&(Y=0),ie>A&&(ie=A),X=Math.ceil(A/_)*d}}Q-W>config$1.itemsLimit&&this.itemsLimitError(),this.totalSize=X;let oe;const ge=W<=this.$_endIndex&&Q>=this.$_startIndex;if(ge)for(let ke=0,le=j.length;ke<le;ke++)oe=j[ke],oe.nr.used&&(u&&(oe.nr.index=$[oe.item[M]]),(oe.nr.index==null||oe.nr.index<W||oe.nr.index>=Q)&&this.unuseView(oe));const be=ge?null:new Map;let ze,de,Ce;for(let ke=W;ke<Q;ke++){ze=S[ke];const le=M?ze[M]:ze;if(le==null)throw new Error(`Key is ${le} on item (keyField is '${M}')`);if(oe=D.get(le),!d&&!T[ke].size){oe&&this.unuseView(oe);continue}de=ze[E];let re=O.get(de),P=!1;if(!oe)ge?re&&re.length?oe=re.pop():oe=this.addView(j,ke,ze,le,de):(Ce=be.get(de)||0,(!re||Ce>=re.length)&&(oe=this.addView(j,ke,ze,le,de),this.unuseView(oe,!0),re=O.get(de)),oe=re[Ce],be.set(de,Ce+1)),D.delete(oe.nr.key),oe.nr.used=!0,oe.nr.index=ke,oe.nr.key=le,oe.nr.type=de,D.set(le,oe),P=!0;else if(!oe.nr.used&&(oe.nr.used=!0,P=!0,re)){const k=re.indexOf(oe);k!==-1&&re.splice(k,1)}oe.item=ze,P&&(ke===S.length-1&&this.$emit("scroll-end"),ke===0&&this.$emit("scroll-start")),d===null?(oe.position=T[ke-1].accumulator,oe.offset=0):(oe.position=Math.floor(ke/_)*d,oe.offset=ke%_*x)}return this.$_startIndex=W,this.$_endIndex=Q,this.emitUpdate&&this.$emit("update",W,Q,Y,ie),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:ge}},getListenerTarget(){let u=getScrollParent(this.$el);return window.document&&(u===window.document.documentElement||u===window.document.body)&&(u=window),u},getScroll(){const{$el:u,direction:f}=this,d=f==="vertical";let _;if(this.pageMode){const x=u.getBoundingClientRect(),I=d?x.height:x.width;let E=-(d?x.top:x.left),M=d?window.innerHeight:window.innerWidth;E<0&&(M+=E,E=0),E+M>I&&(M=I-E),_={start:E,end:E+M}}else d?_={start:u.scrollTop,end:u.scrollTop+u.clientHeight}:_={start:u.scrollLeft,end:u.scrollLeft+u.clientWidth};return _},applyPageMode(){this.pageMode?this.addListeners():this.removeListeners()},addListeners(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener("scroll",this.handleScroll,supportsPassive?{passive:!0}:!1),this.listenerTarget.addEventListener("resize",this.handleResize)},removeListeners(){this.listenerTarget&&(this.listenerTarget.removeEventListener("scroll",this.handleScroll),this.listenerTarget.removeEventListener("resize",this.handleResize),this.listenerTarget=null)},scrollToItem(u){let f;const d=this.gridItems||1;this.itemSize===null?f=u>0?this.sizes[u-1].accumulator:0:f=Math.floor(u/d)*this.itemSize,this.scrollToPosition(f)},scrollToPosition(u){const f=this.direction==="vertical"?{scroll:"scrollTop",start:"top"}:{scroll:"scrollLeft",start:"left"};let d,_,x;if(this.pageMode){const I=getScrollParent(this.$el),E=I.tagName==="HTML"?0:I[f.scroll],M=I.getBoundingClientRect(),A=this.$el.getBoundingClientRect()[f.start]-M[f.start];d=I,_=f.scroll,x=u+E+A}else d=this.$el,_=f.scroll,x=u;d[_]=x},itemsLimitError(){throw setTimeout(()=>{console.log("It seems the scroller element isn't scrolling, so it tries to render all the items at once.","Scroller:",this.$el),console.log("Make sure the scroller has a fixed height (or width) and 'overflow-y' (or 'overflow-x') set to 'auto' so it can scroll correctly and only render the items visible in the scroll viewport.")}),new Error("Rendered items limit reached")},sortViews(){this.pool.sort((u,f)=>u.nr.index-f.nr.index)}}};const _hoisted_1$g={key:0,ref:"before",class:"vue-recycle-scroller__slot"},_hoisted_2$e={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function render$1(u,f,d,_,x,I){const E=resolveComponent("ResizeObserver"),M=resolveDirective("observe-visibility");return withDirectives((openBlock(),createElementBlock("div",{class:normalizeClass(["vue-recycle-scroller",{ready:x.ready,"page-mode":d.pageMode,[`direction-${u.direction}`]:!0}]),onScrollPassive:f[0]||(f[0]=(...S)=>I.handleScroll&&I.handleScroll(...S))},[u.$slots.before?(openBlock(),createElementBlock("div",_hoisted_1$g,[renderSlot(u.$slots,"before")],512)):createCommentVNode("v-if",!0),(openBlock(),createBlock(resolveDynamicComponent(d.listTag),{ref:"wrapper",style:normalizeStyle({[u.direction==="vertical"?"minHeight":"minWidth"]:x.totalSize+"px"}),class:normalizeClass(["vue-recycle-scroller__item-wrapper",d.listClass])},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(x.pool,S=>(openBlock(),createBlock(resolveDynamicComponent(d.itemTag),mergeProps({key:S.nr.id,style:x.ready?{transform:`translate${u.direction==="vertical"?"Y":"X"}(${S.position}px) translate${u.direction==="vertical"?"X":"Y"}(${S.offset}px)`,width:d.gridItems?`${u.direction==="vertical"&&d.itemSecondarySize||d.itemSize}px`:void 0,height:d.gridItems?`${u.direction==="horizontal"&&d.itemSecondarySize||d.itemSize}px`:void 0}:null,class:["vue-recycle-scroller__item-view",[d.itemClass,{hover:!d.skipHover&&x.hoverKey===S.nr.key}]]},toHandlers(d.skipHover?{}:{mouseenter:()=>{x.hoverKey=S.nr.key},mouseleave:()=>{x.hoverKey=null}})),{default:withCtx(()=>[renderSlot(u.$slots,"default",{item:S.item,index:S.nr.index,active:S.nr.used})]),_:2},1040,["style","class"]))),128)),renderSlot(u.$slots,"empty")]),_:3},8,["style","class"])),u.$slots.after?(openBlock(),createElementBlock("div",_hoisted_2$e,[renderSlot(u.$slots,"after")],512)):createCommentVNode("v-if",!0),createVNode(E,{onNotify:I.handleResize},null,8,["onNotify"])],34)),[[M,I.handleVisibilityChange]])}script$2.render=render$1;script$2.__file="src/components/RecycleScroller.vue";const _hoisted_1$f={key:0,class:"address-copy-viewer"},_hoisted_2$d={class:"address-text"},_sfc_main$i=defineComponent({__name:"AddressCopyViewer",props:{onlyCopy:{type:Boolean,default:!1},address:{},modal:{type:Boolean}},emits:["open-modal"],setup(u,{emit:f}){const d=u,_=f,{t:x}=useI18nTypes(),{copy:I}=useClipboard({legacy:!0}),E=()=>{d.modal||(I(d.address.toString()),_("open-modal"))};return(M,S)=>M.onlyCopy?(openBlock(),createBlock(unref(Element$1),{key:1,class:"pointer",name:"Copy",size:"small",color:unref(colors).currentThemeRef.value.grey_111,onClick:E},null,8,["color"])):(openBlock(),createElementBlock("div",_hoisted_1$f,[createBaseVNode("span",_hoisted_2$d,toDisplayString$2(M.address),1),createVNode(unref(BasicButton),{class:"btn-copy",type:"small_outlined",onClick:E},{default:withCtx(()=>[createVNode(unref(Element$1),{name:"Copy",size:"small",color:unref(colors).currentThemeRef.value.grey_111},null,8,["color"]),createBaseVNode("span",null,toDisplayString$2(unref(x)("receive.copy")),1)]),_:1})]))}}),AddressCopyViewer=_export_sfc(_sfc_main$i,[["__scopeId","data-v-b0c9833e"]]),_sfc_main$h=defineComponent({__name:"NoticeText",props:{width:{default:"100%"},maxWidth:{},isError:{type:Boolean,default:!1}},setup(u){return useCssVars(f=>({"5ab14188":f.width})),(f,d)=>(openBlock(),createElementBlock("div",{class:normalizeClass(["notice-text",f.isError&&"error"])},[createVNode(unref(Element$1),{name:"Info",size:"small",color:f.isError?unref(colors).currentThemeRef.value.notice:unref(colors).currentThemeRef.value.grey_ccc},null,8,["color"]),createBaseVNode("span",null,[renderSlot(f.$slots,"default",{},void 0,!0)])],2))}}),NoticeText=_export_sfc(_sfc_main$h,[["__scopeId","data-v-7d339d51"]]);function isObject$1(u){return u!==null&&typeof u=="object"&&"constructor"in u&&u.constructor===Object}function extend$3(u,f){u===void 0&&(u={}),f===void 0&&(f={}),Object.keys(f).forEach(d=>{typeof u[d]>"u"?u[d]=f[d]:isObject$1(f[d])&&isObject$1(u[d])&&Object.keys(f[d]).length>0&&extend$3(u[d],f[d])})}const ssrDocument={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function getDocument(){const u=typeof document<"u"?document:{};return extend$3(u,ssrDocument),u}const ssrWindow={document:ssrDocument,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function u(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(u){return typeof setTimeout>"u"?(u(),null):setTimeout(u,0)},cancelAnimationFrame(u){typeof setTimeout>"u"||clearTimeout(u)}};function getWindow(){const u=typeof window<"u"?window:{};return extend$3(u,ssrWindow),u}function classesToTokens(u){return u===void 0&&(u=""),u.trim().split(" ").filter(f=>!!f.trim())}function deleteProps(u){const f=u;Object.keys(f).forEach(d=>{try{f[d]=null}catch{}try{delete f[d]}catch{}})}function nextTick(u,f){return f===void 0&&(f=0),setTimeout(u,f)}function now(){return Date.now()}function getComputedStyle$1(u){const f=getWindow();let d;return f.getComputedStyle&&(d=f.getComputedStyle(u,null)),!d&&u.currentStyle&&(d=u.currentStyle),d||(d=u.style),d}function getTranslate(u,f){f===void 0&&(f="x");const d=getWindow();let _,x,I;const E=getComputedStyle$1(u);return d.WebKitCSSMatrix?(x=E.transform||E.webkitTransform,x.split(",").length>6&&(x=x.split(", ").map(M=>M.replace(",",".")).join(", ")),I=new d.WebKitCSSMatrix(x==="none"?"":x)):(I=E.MozTransform||E.OTransform||E.MsTransform||E.msTransform||E.transform||E.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),_=I.toString().split(",")),f==="x"&&(d.WebKitCSSMatrix?x=I.m41:_.length===16?x=parseFloat(_[12]):x=parseFloat(_[4])),f==="y"&&(d.WebKitCSSMatrix?x=I.m42:_.length===16?x=parseFloat(_[13]):x=parseFloat(_[5])),x||0}function isObject(u){return typeof u=="object"&&u!==null&&u.constructor&&Object.prototype.toString.call(u).slice(8,-1)==="Object"}function isNode(u){return typeof window<"u"&&typeof window.HTMLElement<"u"?u instanceof HTMLElement:u&&(u.nodeType===1||u.nodeType===11)}function extend$2(){const u=Object(arguments.length<=0?void 0:arguments[0]),f=["__proto__","constructor","prototype"];for(let d=1;d<arguments.length;d+=1){const _=d<0||arguments.length<=d?void 0:arguments[d];if(_!=null&&!isNode(_)){const x=Object.keys(Object(_)).filter(I=>f.indexOf(I)<0);for(let I=0,E=x.length;I<E;I+=1){const M=x[I],S=Object.getOwnPropertyDescriptor(_,M);S!==void 0&&S.enumerable&&(isObject(u[M])&&isObject(_[M])?_[M].__swiper__?u[M]=_[M]:extend$2(u[M],_[M]):!isObject(u[M])&&isObject(_[M])?(u[M]={},_[M].__swiper__?u[M]=_[M]:extend$2(u[M],_[M])):u[M]=_[M])}}}return u}function setCSSProperty(u,f,d){u.style.setProperty(f,d)}function animateCSSModeScroll(u){let{swiper:f,targetPosition:d,side:_}=u;const x=getWindow(),I=-f.translate;let E=null,M;const S=f.params.speed;f.wrapperEl.style.scrollSnapType="none",x.cancelAnimationFrame(f.cssModeFrameID);const A=d>I?"next":"prev",T=(O,j)=>A==="next"&&O>=j||A==="prev"&&O<=j,D=()=>{M=new Date().getTime(),E===null&&(E=M);const O=Math.max(Math.min((M-E)/S,1),0),j=.5-Math.cos(O*Math.PI)/2;let $=I+j*(d-I);if(T($,d)&&($=d),f.wrapperEl.scrollTo({[_]:$}),T($,d)){f.wrapperEl.style.overflow="hidden",f.wrapperEl.style.scrollSnapType="",setTimeout(()=>{f.wrapperEl.style.overflow="",f.wrapperEl.scrollTo({[_]:$})}),x.cancelAnimationFrame(f.cssModeFrameID);return}f.cssModeFrameID=x.requestAnimationFrame(D)};D()}function elementChildren(u,f){return f===void 0&&(f=""),[...u.children].filter(d=>d.matches(f))}function showWarning(u){try{console.warn(u);return}catch{}}function createElement(u,f){f===void 0&&(f=[]);const d=document.createElement(u);return d.classList.add(...Array.isArray(f)?f:classesToTokens(f)),d}function elementPrevAll(u,f){const d=[];for(;u.previousElementSibling;){const _=u.previousElementSibling;f?_.matches(f)&&d.push(_):d.push(_),u=_}return d}function elementNextAll(u,f){const d=[];for(;u.nextElementSibling;){const _=u.nextElementSibling;f?_.matches(f)&&d.push(_):d.push(_),u=_}return d}function elementStyle(u,f){return getWindow().getComputedStyle(u,null).getPropertyValue(f)}function elementIndex(u){let f=u,d;if(f){for(d=0;(f=f.previousSibling)!==null;)f.nodeType===1&&(d+=1);return d}}function elementParents(u,f){const d=[];let _=u.parentElement;for(;_;)f?_.matches(f)&&d.push(_):d.push(_),_=_.parentElement;return d}function elementOuterSize(u,f,d){const _=getWindow();return d?u[f==="width"?"offsetWidth":"offsetHeight"]+parseFloat(_.getComputedStyle(u,null).getPropertyValue(f==="width"?"margin-right":"margin-top"))+parseFloat(_.getComputedStyle(u,null).getPropertyValue(f==="width"?"margin-left":"margin-bottom")):u.offsetWidth}let support;function calcSupport(){const u=getWindow(),f=getDocument();return{smoothScroll:f.documentElement&&f.documentElement.style&&"scrollBehavior"in f.documentElement.style,touch:!!("ontouchstart"in u||u.DocumentTouch&&f instanceof u.DocumentTouch)}}function getSupport(){return support||(support=calcSupport()),support}let deviceCached;function calcDevice(u){let{userAgent:f}=u===void 0?{}:u;const d=getSupport(),_=getWindow(),x=_.navigator.platform,I=f||_.navigator.userAgent,E={ios:!1,android:!1},M=_.screen.width,S=_.screen.height,A=I.match(/(Android);?[\s\/]+([\d.]+)?/);let T=I.match(/(iPad).*OS\s([\d_]+)/);const D=I.match(/(iPod)(.*OS\s([\d_]+))?/),O=!T&&I.match(/(iPhone\sOS|iOS)\s([\d_]+)/),j=x==="Win32";let $=x==="MacIntel";const W=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!T&&$&&d.touch&&W.indexOf(`${M}x${S}`)>=0&&(T=I.match(/(Version)\/([\d.]+)/),T||(T=[0,1,"13_0_0"]),$=!1),A&&!j&&(E.os="android",E.android=!0),(T||O||D)&&(E.os="ios",E.ios=!0),E}function getDevice(u){return u===void 0&&(u={}),deviceCached||(deviceCached=calcDevice(u)),deviceCached}let browser$e;function calcBrowser(){const u=getWindow();let f=!1;function d(){const _=u.navigator.userAgent.toLowerCase();return _.indexOf("safari")>=0&&_.indexOf("chrome")<0&&_.indexOf("android")<0}if(d()){const _=String(u.navigator.userAgent);if(_.includes("Version/")){const[x,I]=_.split("Version/")[1].split(" ")[0].split(".").map(E=>Number(E));f=x<16||x===16&&I<2}}return{isSafari:f||d(),needPerspectiveFix:f,isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(u.navigator.userAgent)}}function getBrowser(){return browser$e||(browser$e=calcBrowser()),browser$e}function Resize(u){let{swiper:f,on:d,emit:_}=u;const x=getWindow();let I=null,E=null;const M=()=>{!f||f.destroyed||!f.initialized||(_("beforeResize"),_("resize"))},S=()=>{!f||f.destroyed||!f.initialized||(I=new ResizeObserver(D=>{E=x.requestAnimationFrame(()=>{const{width:O,height:j}=f;let $=O,W=j;D.forEach(Q=>{let{contentBoxSize:X,contentRect:Y,target:ie}=Q;ie&&ie!==f.el||($=Y?Y.width:(X[0]||X).inlineSize,W=Y?Y.height:(X[0]||X).blockSize)}),($!==O||W!==j)&&M()})}),I.observe(f.el))},A=()=>{E&&x.cancelAnimationFrame(E),I&&I.unobserve&&f.el&&(I.unobserve(f.el),I=null)},T=()=>{!f||f.destroyed||!f.initialized||_("orientationchange")};d("init",()=>{if(f.params.resizeObserver&&typeof x.ResizeObserver<"u"){S();return}x.addEventListener("resize",M),x.addEventListener("orientationchange",T)}),d("destroy",()=>{A(),x.removeEventListener("resize",M),x.removeEventListener("orientationchange",T)})}function Observer(u){let{swiper:f,extendParams:d,on:_,emit:x}=u;const I=[],E=getWindow(),M=function(T,D){D===void 0&&(D={});const O=E.MutationObserver||E.WebkitMutationObserver,j=new O($=>{if(f.__preventObserver__)return;if($.length===1){x("observerUpdate",$[0]);return}const W=function(){x("observerUpdate",$[0])};E.requestAnimationFrame?E.requestAnimationFrame(W):E.setTimeout(W,0)});j.observe(T,{attributes:typeof D.attributes>"u"?!0:D.attributes,childList:typeof D.childList>"u"?!0:D.childList,characterData:typeof D.characterData>"u"?!0:D.characterData}),I.push(j)},S=()=>{if(f.params.observer){if(f.params.observeParents){const T=elementParents(f.hostEl);for(let D=0;D<T.length;D+=1)M(T[D])}M(f.hostEl,{childList:f.params.observeSlideChildren}),M(f.wrapperEl,{attributes:!1})}},A=()=>{I.forEach(T=>{T.disconnect()}),I.splice(0,I.length)};d({observer:!1,observeParents:!1,observeSlideChildren:!1}),_("init",S),_("destroy",A)}var eventsEmitter={on(u,f,d){const _=this;if(!_.eventsListeners||_.destroyed||typeof f!="function")return _;const x=d?"unshift":"push";return u.split(" ").forEach(I=>{_.eventsListeners[I]||(_.eventsListeners[I]=[]),_.eventsListeners[I][x](f)}),_},once(u,f,d){const _=this;if(!_.eventsListeners||_.destroyed||typeof f!="function")return _;function x(){_.off(u,x),x.__emitterProxy&&delete x.__emitterProxy;for(var I=arguments.length,E=new Array(I),M=0;M<I;M++)E[M]=arguments[M];f.apply(_,E)}return x.__emitterProxy=f,_.on(u,x,d)},onAny(u,f){const d=this;if(!d.eventsListeners||d.destroyed||typeof u!="function")return d;const _=f?"unshift":"push";return d.eventsAnyListeners.indexOf(u)<0&&d.eventsAnyListeners[_](u),d},offAny(u){const f=this;if(!f.eventsListeners||f.destroyed||!f.eventsAnyListeners)return f;const d=f.eventsAnyListeners.indexOf(u);return d>=0&&f.eventsAnyListeners.splice(d,1),f},off(u,f){const d=this;return!d.eventsListeners||d.destroyed||!d.eventsListeners||u.split(" ").forEach(_=>{typeof f>"u"?d.eventsListeners[_]=[]:d.eventsListeners[_]&&d.eventsListeners[_].forEach((x,I)=>{(x===f||x.__emitterProxy&&x.__emitterProxy===f)&&d.eventsListeners[_].splice(I,1)})}),d},emit(){const u=this;if(!u.eventsListeners||u.destroyed||!u.eventsListeners)return u;let f,d,_;for(var x=arguments.length,I=new Array(x),E=0;E<x;E++)I[E]=arguments[E];return typeof I[0]=="string"||Array.isArray(I[0])?(f=I[0],d=I.slice(1,I.length),_=u):(f=I[0].events,d=I[0].data,_=I[0].context||u),d.unshift(_),(Array.isArray(f)?f:f.split(" ")).forEach(S=>{u.eventsAnyListeners&&u.eventsAnyListeners.length&&u.eventsAnyListeners.forEach(A=>{A.apply(_,[S,...d])}),u.eventsListeners&&u.eventsListeners[S]&&u.eventsListeners[S].forEach(A=>{A.apply(_,d)})}),u}};function updateSize(){const u=this;let f,d;const _=u.el;typeof u.params.width<"u"&&u.params.width!==null?f=u.params.width:f=_.clientWidth,typeof u.params.height<"u"&&u.params.height!==null?d=u.params.height:d=_.clientHeight,!(f===0&&u.isHorizontal()||d===0&&u.isVertical())&&(f=f-parseInt(elementStyle(_,"padding-left")||0,10)-parseInt(elementStyle(_,"padding-right")||0,10),d=d-parseInt(elementStyle(_,"padding-top")||0,10)-parseInt(elementStyle(_,"padding-bottom")||0,10),Number.isNaN(f)&&(f=0),Number.isNaN(d)&&(d=0),Object.assign(u,{width:f,height:d,size:u.isHorizontal()?f:d}))}function updateSlides(){const u=this;function f(ke,le){return parseFloat(ke.getPropertyValue(u.getDirectionLabel(le))||0)}const d=u.params,{wrapperEl:_,slidesEl:x,size:I,rtlTranslate:E,wrongRTL:M}=u,S=u.virtual&&d.virtual.enabled,A=S?u.virtual.slides.length:u.slides.length,T=elementChildren(x,`.${u.params.slideClass}, swiper-slide`),D=S?u.virtual.slides.length:T.length;let O=[];const j=[],$=[];let W=d.slidesOffsetBefore;typeof W=="function"&&(W=d.slidesOffsetBefore.call(u));let Q=d.slidesOffsetAfter;typeof Q=="function"&&(Q=d.slidesOffsetAfter.call(u));const X=u.snapGrid.length,Y=u.slidesGrid.length;let ie=d.spaceBetween,oe=-W,ge=0,be=0;if(typeof I>"u")return;typeof ie=="string"&&ie.indexOf("%")>=0?ie=parseFloat(ie.replace("%",""))/100*I:typeof ie=="string"&&(ie=parseFloat(ie)),u.virtualSize=-ie,T.forEach(ke=>{E?ke.style.marginLeft="":ke.style.marginRight="",ke.style.marginBottom="",ke.style.marginTop=""}),d.centeredSlides&&d.cssMode&&(setCSSProperty(_,"--swiper-centered-offset-before",""),setCSSProperty(_,"--swiper-centered-offset-after",""));const ze=d.grid&&d.grid.rows>1&&u.grid;ze?u.grid.initSlides(T):u.grid&&u.grid.unsetSlides();let de;const Ce=d.slidesPerView==="auto"&&d.breakpoints&&Object.keys(d.breakpoints).filter(ke=>typeof d.breakpoints[ke].slidesPerView<"u").length>0;for(let ke=0;ke<D;ke+=1){de=0;let le;if(T[ke]&&(le=T[ke]),ze&&u.grid.updateSlide(ke,le,T),!(T[ke]&&elementStyle(le,"display")==="none")){if(d.slidesPerView==="auto"){Ce&&(T[ke].style[u.getDirectionLabel("width")]="");const re=getComputedStyle(le),P=le.style.transform,k=le.style.webkitTransform;if(P&&(le.style.transform="none"),k&&(le.style.webkitTransform="none"),d.roundLengths)de=u.isHorizontal()?elementOuterSize(le,"width",!0):elementOuterSize(le,"height",!0);else{const B=f(re,"width"),z=f(re,"padding-left"),ee=f(re,"padding-right"),H=f(re,"margin-left"),q=f(re,"margin-right"),J=re.getPropertyValue("box-sizing");if(J&&J==="border-box")de=B+H+q;else{const{clientWidth:U,offsetWidth:Z}=le;de=B+z+ee+H+q+(Z-U)}}P&&(le.style.transform=P),k&&(le.style.webkitTransform=k),d.roundLengths&&(de=Math.floor(de))}else de=(I-(d.slidesPerView-1)*ie)/d.slidesPerView,d.roundLengths&&(de=Math.floor(de)),T[ke]&&(T[ke].style[u.getDirectionLabel("width")]=`${de}px`);T[ke]&&(T[ke].swiperSlideSize=de),$.push(de),d.centeredSlides?(oe=oe+de/2+ge/2+ie,ge===0&&ke!==0&&(oe=oe-I/2-ie),ke===0&&(oe=oe-I/2-ie),Math.abs(oe)<1/1e3&&(oe=0),d.roundLengths&&(oe=Math.floor(oe)),be%d.slidesPerGroup===0&&O.push(oe),j.push(oe)):(d.roundLengths&&(oe=Math.floor(oe)),(be-Math.min(u.params.slidesPerGroupSkip,be))%u.params.slidesPerGroup===0&&O.push(oe),j.push(oe),oe=oe+de+ie),u.virtualSize+=de+ie,ge=de,be+=1}}if(u.virtualSize=Math.max(u.virtualSize,I)+Q,E&&M&&(d.effect==="slide"||d.effect==="coverflow")&&(_.style.width=`${u.virtualSize+ie}px`),d.setWrapperSize&&(_.style[u.getDirectionLabel("width")]=`${u.virtualSize+ie}px`),ze&&u.grid.updateWrapperSize(de,O),!d.centeredSlides){const ke=[];for(let le=0;le<O.length;le+=1){let re=O[le];d.roundLengths&&(re=Math.floor(re)),O[le]<=u.virtualSize-I&&ke.push(re)}O=ke,Math.floor(u.virtualSize-I)-Math.floor(O[O.length-1])>1&&O.push(u.virtualSize-I)}if(S&&d.loop){const ke=$[0]+ie;if(d.slidesPerGroup>1){const le=Math.ceil((u.virtual.slidesBefore+u.virtual.slidesAfter)/d.slidesPerGroup),re=ke*d.slidesPerGroup;for(let P=0;P<le;P+=1)O.push(O[O.length-1]+re)}for(let le=0;le<u.virtual.slidesBefore+u.virtual.slidesAfter;le+=1)d.slidesPerGroup===1&&O.push(O[O.length-1]+ke),j.push(j[j.length-1]+ke),u.virtualSize+=ke}if(O.length===0&&(O=[0]),ie!==0){const ke=u.isHorizontal()&&E?"marginLeft":u.getDirectionLabel("marginRight");T.filter((le,re)=>!d.cssMode||d.loop?!0:re!==T.length-1).forEach(le=>{le.style[ke]=`${ie}px`})}if(d.centeredSlides&&d.centeredSlidesBounds){let ke=0;$.forEach(re=>{ke+=re+(ie||0)}),ke-=ie;const le=ke-I;O=O.map(re=>re<=0?-W:re>le?le+Q:re)}if(d.centerInsufficientSlides){let ke=0;if($.forEach(le=>{ke+=le+(ie||0)}),ke-=ie,ke<I){const le=(I-ke)/2;O.forEach((re,P)=>{O[P]=re-le}),j.forEach((re,P)=>{j[P]=re+le})}}if(Object.assign(u,{slides:T,snapGrid:O,slidesGrid:j,slidesSizesGrid:$}),d.centeredSlides&&d.cssMode&&!d.centeredSlidesBounds){setCSSProperty(_,"--swiper-centered-offset-before",`${-O[0]}px`),setCSSProperty(_,"--swiper-centered-offset-after",`${u.size/2-$[$.length-1]/2}px`);const ke=-u.snapGrid[0],le=-u.slidesGrid[0];u.snapGrid=u.snapGrid.map(re=>re+ke),u.slidesGrid=u.slidesGrid.map(re=>re+le)}if(D!==A&&u.emit("slidesLengthChange"),O.length!==X&&(u.params.watchOverflow&&u.checkOverflow(),u.emit("snapGridLengthChange")),j.length!==Y&&u.emit("slidesGridLengthChange"),d.watchSlidesProgress&&u.updateSlidesOffset(),u.emit("slidesUpdated"),!S&&!d.cssMode&&(d.effect==="slide"||d.effect==="fade")){const ke=`${d.containerModifierClass}backface-hidden`,le=u.el.classList.contains(ke);D<=d.maxBackfaceHiddenSlides?le||u.el.classList.add(ke):le&&u.el.classList.remove(ke)}}function updateAutoHeight(u){const f=this,d=[],_=f.virtual&&f.params.virtual.enabled;let x=0,I;typeof u=="number"?f.setTransition(u):u===!0&&f.setTransition(f.params.speed);const E=M=>_?f.slides[f.getSlideIndexByData(M)]:f.slides[M];if(f.params.slidesPerView!=="auto"&&f.params.slidesPerView>1)if(f.params.centeredSlides)(f.visibleSlides||[]).forEach(M=>{d.push(M)});else for(I=0;I<Math.ceil(f.params.slidesPerView);I+=1){const M=f.activeIndex+I;if(M>f.slides.length&&!_)break;d.push(E(M))}else d.push(E(f.activeIndex));for(I=0;I<d.length;I+=1)if(typeof d[I]<"u"){const M=d[I].offsetHeight;x=M>x?M:x}(x||x===0)&&(f.wrapperEl.style.height=`${x}px`)}function updateSlidesOffset(){const u=this,f=u.slides,d=u.isElement?u.isHorizontal()?u.wrapperEl.offsetLeft:u.wrapperEl.offsetTop:0;for(let _=0;_<f.length;_+=1)f[_].swiperSlideOffset=(u.isHorizontal()?f[_].offsetLeft:f[_].offsetTop)-d-u.cssOverflowAdjustment()}function updateSlidesProgress(u){u===void 0&&(u=this&&this.translate||0);const f=this,d=f.params,{slides:_,rtlTranslate:x,snapGrid:I}=f;if(_.length===0)return;typeof _[0].swiperSlideOffset>"u"&&f.updateSlidesOffset();let E=-u;x&&(E=u),_.forEach(S=>{S.classList.remove(d.slideVisibleClass,d.slideFullyVisibleClass)}),f.visibleSlidesIndexes=[],f.visibleSlides=[];let M=d.spaceBetween;typeof M=="string"&&M.indexOf("%")>=0?M=parseFloat(M.replace("%",""))/100*f.size:typeof M=="string"&&(M=parseFloat(M));for(let S=0;S<_.length;S+=1){const A=_[S];let T=A.swiperSlideOffset;d.cssMode&&d.centeredSlides&&(T-=_[0].swiperSlideOffset);const D=(E+(d.centeredSlides?f.minTranslate():0)-T)/(A.swiperSlideSize+M),O=(E-I[0]+(d.centeredSlides?f.minTranslate():0)-T)/(A.swiperSlideSize+M),j=-(E-T),$=j+f.slidesSizesGrid[S],W=j>=0&&j<=f.size-f.slidesSizesGrid[S];(j>=0&&j<f.size-1||$>1&&$<=f.size||j<=0&&$>=f.size)&&(f.visibleSlides.push(A),f.visibleSlidesIndexes.push(S),_[S].classList.add(d.slideVisibleClass)),W&&_[S].classList.add(d.slideFullyVisibleClass),A.progress=x?-D:D,A.originalProgress=x?-O:O}}function updateProgress(u){const f=this;if(typeof u>"u"){const T=f.rtlTranslate?-1:1;u=f&&f.translate&&f.translate*T||0}const d=f.params,_=f.maxTranslate()-f.minTranslate();let{progress:x,isBeginning:I,isEnd:E,progressLoop:M}=f;const S=I,A=E;if(_===0)x=0,I=!0,E=!0;else{x=(u-f.minTranslate())/_;const T=Math.abs(u-f.minTranslate())<1,D=Math.abs(u-f.maxTranslate())<1;I=T||x<=0,E=D||x>=1,T&&(x=0),D&&(x=1)}if(d.loop){const T=f.getSlideIndexByData(0),D=f.getSlideIndexByData(f.slides.length-1),O=f.slidesGrid[T],j=f.slidesGrid[D],$=f.slidesGrid[f.slidesGrid.length-1],W=Math.abs(u);W>=O?M=(W-O)/$:M=(W+$-j)/$,M>1&&(M-=1)}Object.assign(f,{progress:x,progressLoop:M,isBeginning:I,isEnd:E}),(d.watchSlidesProgress||d.centeredSlides&&d.autoHeight)&&f.updateSlidesProgress(u),I&&!S&&f.emit("reachBeginning toEdge"),E&&!A&&f.emit("reachEnd toEdge"),(S&&!I||A&&!E)&&f.emit("fromEdge"),f.emit("progress",x)}function updateSlidesClasses(){const u=this,{slides:f,params:d,slidesEl:_,activeIndex:x}=u,I=u.virtual&&d.virtual.enabled,E=u.grid&&d.grid&&d.grid.rows>1,M=D=>elementChildren(_,`.${d.slideClass}${D}, swiper-slide${D}`)[0];f.forEach(D=>{D.classList.remove(d.slideActiveClass,d.slideNextClass,d.slidePrevClass)});let S,A,T;if(I)if(d.loop){let D=x-u.virtual.slidesBefore;D<0&&(D=u.virtual.slides.length+D),D>=u.virtual.slides.length&&(D-=u.virtual.slides.length),S=M(`[data-swiper-slide-index="${D}"]`)}else S=M(`[data-swiper-slide-index="${x}"]`);else E?(S=f.filter(D=>D.column===x)[0],T=f.filter(D=>D.column===x+1)[0],A=f.filter(D=>D.column===x-1)[0]):S=f[x];S&&(S.classList.add(d.slideActiveClass),E?(T&&T.classList.add(d.slideNextClass),A&&A.classList.add(d.slidePrevClass)):(T=elementNextAll(S,`.${d.slideClass}, swiper-slide`)[0],d.loop&&!T&&(T=f[0]),T&&T.classList.add(d.slideNextClass),A=elementPrevAll(S,`.${d.slideClass}, swiper-slide`)[0],d.loop&&!A===0&&(A=f[f.length-1]),A&&A.classList.add(d.slidePrevClass))),u.emitSlidesClasses()}const processLazyPreloader=(u,f)=>{if(!u||u.destroyed||!u.params)return;const d=()=>u.isElement?"swiper-slide":`.${u.params.slideClass}`,_=f.closest(d());if(_){let x=_.querySelector(`.${u.params.lazyPreloaderClass}`);!x&&u.isElement&&(_.shadowRoot?x=_.shadowRoot.querySelector(`.${u.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{_.shadowRoot&&(x=_.shadowRoot.querySelector(`.${u.params.lazyPreloaderClass}`),x&&x.remove())})),x&&x.remove()}},unlazy=(u,f)=>{if(!u.slides[f])return;const d=u.slides[f].querySelector('[loading="lazy"]');d&&d.removeAttribute("loading")},preload=u=>{if(!u||u.destroyed||!u.params)return;let f=u.params.lazyPreloadPrevNext;const d=u.slides.length;if(!d||!f||f<0)return;f=Math.min(f,d);const _=u.params.slidesPerView==="auto"?u.slidesPerViewDynamic():Math.ceil(u.params.slidesPerView),x=u.activeIndex;if(u.params.grid&&u.params.grid.rows>1){const E=x,M=[E-f];M.push(...Array.from({length:f}).map((S,A)=>E+_+A)),u.slides.forEach((S,A)=>{M.includes(S.column)&&unlazy(u,A)});return}const I=x+_-1;if(u.params.rewind||u.params.loop)for(let E=x-f;E<=I+f;E+=1){const M=(E%d+d)%d;(M<x||M>I)&&unlazy(u,M)}else for(let E=Math.max(x-f,0);E<=Math.min(I+f,d-1);E+=1)E!==x&&(E>I||E<x)&&unlazy(u,E)};function getActiveIndexByTranslate(u){const{slidesGrid:f,params:d}=u,_=u.rtlTranslate?u.translate:-u.translate;let x;for(let I=0;I<f.length;I+=1)typeof f[I+1]<"u"?_>=f[I]&&_<f[I+1]-(f[I+1]-f[I])/2?x=I:_>=f[I]&&_<f[I+1]&&(x=I+1):_>=f[I]&&(x=I);return d.normalizeSlideIndex&&(x<0||typeof x>"u")&&(x=0),x}function updateActiveIndex(u){const f=this,d=f.rtlTranslate?f.translate:-f.translate,{snapGrid:_,params:x,activeIndex:I,realIndex:E,snapIndex:M}=f;let S=u,A;const T=j=>{let $=j-f.virtual.slidesBefore;return $<0&&($=f.virtual.slides.length+$),$>=f.virtual.slides.length&&($-=f.virtual.slides.length),$};if(typeof S>"u"&&(S=getActiveIndexByTranslate(f)),_.indexOf(d)>=0)A=_.indexOf(d);else{const j=Math.min(x.slidesPerGroupSkip,S);A=j+Math.floor((S-j)/x.slidesPerGroup)}if(A>=_.length&&(A=_.length-1),S===I&&!f.params.loop){A!==M&&(f.snapIndex=A,f.emit("snapIndexChange"));return}if(S===I&&f.params.loop&&f.virtual&&f.params.virtual.enabled){f.realIndex=T(S);return}const D=f.grid&&x.grid&&x.grid.rows>1;let O;if(f.virtual&&x.virtual.enabled&&x.loop)O=T(S);else if(D){const j=f.slides.filter(W=>W.column===S)[0];let $=parseInt(j.getAttribute("data-swiper-slide-index"),10);Number.isNaN($)&&($=Math.max(f.slides.indexOf(j),0)),O=Math.floor($/x.grid.rows)}else if(f.slides[S]){const j=f.slides[S].getAttribute("data-swiper-slide-index");j?O=parseInt(j,10):O=S}else O=S;Object.assign(f,{previousSnapIndex:M,snapIndex:A,previousRealIndex:E,realIndex:O,previousIndex:I,activeIndex:S}),f.initialized&&preload(f),f.emit("activeIndexChange"),f.emit("snapIndexChange"),(f.initialized||f.params.runCallbacksOnInit)&&(E!==O&&f.emit("realIndexChange"),f.emit("slideChange"))}function updateClickedSlide(u,f){const d=this,_=d.params;let x=u.closest(`.${_.slideClass}, swiper-slide`);!x&&d.isElement&&f&&f.length>1&&f.includes(u)&&[...f.slice(f.indexOf(u)+1,f.length)].forEach(M=>{!x&&M.matches&&M.matches(`.${_.slideClass}, swiper-slide`)&&(x=M)});let I=!1,E;if(x){for(let M=0;M<d.slides.length;M+=1)if(d.slides[M]===x){I=!0,E=M;break}}if(x&&I)d.clickedSlide=x,d.virtual&&d.params.virtual.enabled?d.clickedIndex=parseInt(x.getAttribute("data-swiper-slide-index"),10):d.clickedIndex=E;else{d.clickedSlide=void 0,d.clickedIndex=void 0;return}_.slideToClickedSlide&&d.clickedIndex!==void 0&&d.clickedIndex!==d.activeIndex&&d.slideToClickedSlide()}var update={updateSize,updateSlides,updateAutoHeight,updateSlidesOffset,updateSlidesProgress,updateProgress,updateSlidesClasses,updateActiveIndex,updateClickedSlide};function getSwiperTranslate(u){u===void 0&&(u=this.isHorizontal()?"x":"y");const f=this,{params:d,rtlTranslate:_,translate:x,wrapperEl:I}=f;if(d.virtualTranslate)return _?-x:x;if(d.cssMode)return x;let E=getTranslate(I,u);return E+=f.cssOverflowAdjustment(),_&&(E=-E),E||0}function setTranslate(u,f){const d=this,{rtlTranslate:_,params:x,wrapperEl:I,progress:E}=d;let M=0,S=0;const A=0;d.isHorizontal()?M=_?-u:u:S=u,x.roundLengths&&(M=Math.floor(M),S=Math.floor(S)),d.previousTranslate=d.translate,d.translate=d.isHorizontal()?M:S,x.cssMode?I[d.isHorizontal()?"scrollLeft":"scrollTop"]=d.isHorizontal()?-M:-S:x.virtualTranslate||(d.isHorizontal()?M-=d.cssOverflowAdjustment():S-=d.cssOverflowAdjustment(),I.style.transform=`translate3d(${M}px, ${S}px, ${A}px)`);let T;const D=d.maxTranslate()-d.minTranslate();D===0?T=0:T=(u-d.minTranslate())/D,T!==E&&d.updateProgress(u),d.emit("setTranslate",d.translate,f)}function minTranslate(){return-this.snapGrid[0]}function maxTranslate(){return-this.snapGrid[this.snapGrid.length-1]}function translateTo(u,f,d,_,x){u===void 0&&(u=0),f===void 0&&(f=this.params.speed),d===void 0&&(d=!0),_===void 0&&(_=!0);const I=this,{params:E,wrapperEl:M}=I;if(I.animating&&E.preventInteractionOnTransition)return!1;const S=I.minTranslate(),A=I.maxTranslate();let T;if(_&&u>S?T=S:_&&u<A?T=A:T=u,I.updateProgress(T),E.cssMode){const D=I.isHorizontal();if(f===0)M[D?"scrollLeft":"scrollTop"]=-T;else{if(!I.support.smoothScroll)return animateCSSModeScroll({swiper:I,targetPosition:-T,side:D?"left":"top"}),!0;M.scrollTo({[D?"left":"top"]:-T,behavior:"smooth"})}return!0}return f===0?(I.setTransition(0),I.setTranslate(T),d&&(I.emit("beforeTransitionStart",f,x),I.emit("transitionEnd"))):(I.setTransition(f),I.setTranslate(T),d&&(I.emit("beforeTransitionStart",f,x),I.emit("transitionStart")),I.animating||(I.animating=!0,I.onTranslateToWrapperTransitionEnd||(I.onTranslateToWrapperTransitionEnd=function(O){!I||I.destroyed||O.target===this&&(I.wrapperEl.removeEventListener("transitionend",I.onTranslateToWrapperTransitionEnd),I.onTranslateToWrapperTransitionEnd=null,delete I.onTranslateToWrapperTransitionEnd,d&&I.emit("transitionEnd"))}),I.wrapperEl.addEventListener("transitionend",I.onTranslateToWrapperTransitionEnd))),!0}var translate={getTranslate:getSwiperTranslate,setTranslate,minTranslate,maxTranslate,translateTo};function setTransition(u,f){const d=this;d.params.cssMode||(d.wrapperEl.style.transitionDuration=`${u}ms`,d.wrapperEl.style.transitionDelay=u===0?"0ms":""),d.emit("setTransition",u,f)}function transitionEmit(u){let{swiper:f,runCallbacks:d,direction:_,step:x}=u;const{activeIndex:I,previousIndex:E}=f;let M=_;if(M||(I>E?M="next":I<E?M="prev":M="reset"),f.emit(`transition${x}`),d&&I!==E){if(M==="reset"){f.emit(`slideResetTransition${x}`);return}f.emit(`slideChangeTransition${x}`),M==="next"?f.emit(`slideNextTransition${x}`):f.emit(`slidePrevTransition${x}`)}}function transitionStart(u,f){u===void 0&&(u=!0);const d=this,{params:_}=d;_.cssMode||(_.autoHeight&&d.updateAutoHeight(),transitionEmit({swiper:d,runCallbacks:u,direction:f,step:"Start"}))}function transitionEnd(u,f){u===void 0&&(u=!0);const d=this,{params:_}=d;d.animating=!1,!_.cssMode&&(d.setTransition(0),transitionEmit({swiper:d,runCallbacks:u,direction:f,step:"End"}))}var transition={setTransition,transitionStart,transitionEnd};function slideTo(u,f,d,_,x){u===void 0&&(u=0),f===void 0&&(f=this.params.speed),d===void 0&&(d=!0),typeof u=="string"&&(u=parseInt(u,10));const I=this;let E=u;E<0&&(E=0);const{params:M,snapGrid:S,slidesGrid:A,previousIndex:T,activeIndex:D,rtlTranslate:O,wrapperEl:j,enabled:$}=I;if(I.animating&&M.preventInteractionOnTransition||!$&&!_&&!x)return!1;const W=Math.min(I.params.slidesPerGroupSkip,E);let Q=W+Math.floor((E-W)/I.params.slidesPerGroup);Q>=S.length&&(Q=S.length-1);const X=-S[Q];if(M.normalizeSlideIndex)for(let ie=0;ie<A.length;ie+=1){const oe=-Math.floor(X*100),ge=Math.floor(A[ie]*100),be=Math.floor(A[ie+1]*100);typeof A[ie+1]<"u"?oe>=ge&&oe<be-(be-ge)/2?E=ie:oe>=ge&&oe<be&&(E=ie+1):oe>=ge&&(E=ie)}if(I.initialized&&E!==D&&(!I.allowSlideNext&&(O?X>I.translate&&X>I.minTranslate():X<I.translate&&X<I.minTranslate())||!I.allowSlidePrev&&X>I.translate&&X>I.maxTranslate()&&(D||0)!==E))return!1;E!==(T||0)&&d&&I.emit("beforeSlideChangeStart"),I.updateProgress(X);let Y;if(E>D?Y="next":E<D?Y="prev":Y="reset",O&&-X===I.translate||!O&&X===I.translate)return I.updateActiveIndex(E),M.autoHeight&&I.updateAutoHeight(),I.updateSlidesClasses(),M.effect!=="slide"&&I.setTranslate(X),Y!=="reset"&&(I.transitionStart(d,Y),I.transitionEnd(d,Y)),!1;if(M.cssMode){const ie=I.isHorizontal(),oe=O?X:-X;if(f===0){const ge=I.virtual&&I.params.virtual.enabled;ge&&(I.wrapperEl.style.scrollSnapType="none",I._immediateVirtual=!0),ge&&!I._cssModeVirtualInitialSet&&I.params.initialSlide>0?(I._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{j[ie?"scrollLeft":"scrollTop"]=oe})):j[ie?"scrollLeft":"scrollTop"]=oe,ge&&requestAnimationFrame(()=>{I.wrapperEl.style.scrollSnapType="",I._immediateVirtual=!1})}else{if(!I.support.smoothScroll)return animateCSSModeScroll({swiper:I,targetPosition:oe,side:ie?"left":"top"}),!0;j.scrollTo({[ie?"left":"top"]:oe,behavior:"smooth"})}return!0}return I.setTransition(f),I.setTranslate(X),I.updateActiveIndex(E),I.updateSlidesClasses(),I.emit("beforeTransitionStart",f,_),I.transitionStart(d,Y),f===0?I.transitionEnd(d,Y):I.animating||(I.animating=!0,I.onSlideToWrapperTransitionEnd||(I.onSlideToWrapperTransitionEnd=function(oe){!I||I.destroyed||oe.target===this&&(I.wrapperEl.removeEventListener("transitionend",I.onSlideToWrapperTransitionEnd),I.onSlideToWrapperTransitionEnd=null,delete I.onSlideToWrapperTransitionEnd,I.transitionEnd(d,Y))}),I.wrapperEl.addEventListener("transitionend",I.onSlideToWrapperTransitionEnd)),!0}function slideToLoop(u,f,d,_){u===void 0&&(u=0),f===void 0&&(f=this.params.speed),d===void 0&&(d=!0),typeof u=="string"&&(u=parseInt(u,10));const x=this,I=x.grid&&x.params.grid&&x.params.grid.rows>1;let E=u;if(x.params.loop)if(x.virtual&&x.params.virtual.enabled)E=E+x.virtual.slidesBefore;else{let M;if(I){const O=E*x.params.grid.rows;M=x.slides.filter(j=>j.getAttribute("data-swiper-slide-index")*1===O)[0].column}else M=x.getSlideIndexByData(E);const S=I?Math.ceil(x.slides.length/x.params.grid.rows):x.slides.length,{centeredSlides:A}=x.params;let T=x.params.slidesPerView;T==="auto"?T=x.slidesPerViewDynamic():(T=Math.ceil(parseFloat(x.params.slidesPerView,10)),A&&T%2===0&&(T=T+1));let D=S-M<T;if(A&&(D=D||M<Math.ceil(T/2)),D){const O=A?M<x.activeIndex?"prev":"next":M-x.activeIndex-1<x.params.slidesPerView?"next":"prev";x.loopFix({direction:O,slideTo:!0,activeSlideIndex:O==="next"?M+1:M-S+1,slideRealIndex:O==="next"?x.realIndex:void 0})}if(I){const O=E*x.params.grid.rows;E=x.slides.filter(j=>j.getAttribute("data-swiper-slide-index")*1===O)[0].column}else E=x.getSlideIndexByData(E)}return requestAnimationFrame(()=>{x.slideTo(E,f,d,_)}),x}function slideNext(u,f,d){u===void 0&&(u=this.params.speed),f===void 0&&(f=!0);const _=this,{enabled:x,params:I,animating:E}=_;if(!x)return _;let M=I.slidesPerGroup;I.slidesPerView==="auto"&&I.slidesPerGroup===1&&I.slidesPerGroupAuto&&(M=Math.max(_.slidesPerViewDynamic("current",!0),1));const S=_.activeIndex<I.slidesPerGroupSkip?1:M,A=_.virtual&&I.virtual.enabled;if(I.loop){if(E&&!A&&I.loopPreventsSliding)return!1;if(_.loopFix({direction:"next"}),_._clientLeft=_.wrapperEl.clientLeft,_.activeIndex===_.slides.length-1&&I.cssMode)return requestAnimationFrame(()=>{_.slideTo(_.activeIndex+S,u,f,d)}),!0}return I.rewind&&_.isEnd?_.slideTo(0,u,f,d):_.slideTo(_.activeIndex+S,u,f,d)}function slidePrev(u,f,d){u===void 0&&(u=this.params.speed),f===void 0&&(f=!0);const _=this,{params:x,snapGrid:I,slidesGrid:E,rtlTranslate:M,enabled:S,animating:A}=_;if(!S)return _;const T=_.virtual&&x.virtual.enabled;if(x.loop){if(A&&!T&&x.loopPreventsSliding)return!1;_.loopFix({direction:"prev"}),_._clientLeft=_.wrapperEl.clientLeft}const D=M?_.translate:-_.translate;function O(X){return X<0?-Math.floor(Math.abs(X)):Math.floor(X)}const j=O(D),$=I.map(X=>O(X));let W=I[$.indexOf(j)-1];if(typeof W>"u"&&x.cssMode){let X;I.forEach((Y,ie)=>{j>=Y&&(X=ie)}),typeof X<"u"&&(W=I[X>0?X-1:X])}let Q=0;if(typeof W<"u"&&(Q=E.indexOf(W),Q<0&&(Q=_.activeIndex-1),x.slidesPerView==="auto"&&x.slidesPerGroup===1&&x.slidesPerGroupAuto&&(Q=Q-_.slidesPerViewDynamic("previous",!0)+1,Q=Math.max(Q,0))),x.rewind&&_.isBeginning){const X=_.params.virtual&&_.params.virtual.enabled&&_.virtual?_.virtual.slides.length-1:_.slides.length-1;return _.slideTo(X,u,f,d)}else if(x.loop&&_.activeIndex===0&&x.cssMode)return requestAnimationFrame(()=>{_.slideTo(Q,u,f,d)}),!0;return _.slideTo(Q,u,f,d)}function slideReset(u,f,d){u===void 0&&(u=this.params.speed),f===void 0&&(f=!0);const _=this;return _.slideTo(_.activeIndex,u,f,d)}function slideToClosest(u,f,d,_){u===void 0&&(u=this.params.speed),f===void 0&&(f=!0),_===void 0&&(_=.5);const x=this;let I=x.activeIndex;const E=Math.min(x.params.slidesPerGroupSkip,I),M=E+Math.floor((I-E)/x.params.slidesPerGroup),S=x.rtlTranslate?x.translate:-x.translate;if(S>=x.snapGrid[M]){const A=x.snapGrid[M],T=x.snapGrid[M+1];S-A>(T-A)*_&&(I+=x.params.slidesPerGroup)}else{const A=x.snapGrid[M-1],T=x.snapGrid[M];S-A<=(T-A)*_&&(I-=x.params.slidesPerGroup)}return I=Math.max(I,0),I=Math.min(I,x.slidesGrid.length-1),x.slideTo(I,u,f,d)}function slideToClickedSlide(){const u=this,{params:f,slidesEl:d}=u,_=f.slidesPerView==="auto"?u.slidesPerViewDynamic():f.slidesPerView;let x=u.clickedIndex,I;const E=u.isElement?"swiper-slide":`.${f.slideClass}`;if(f.loop){if(u.animating)return;I=parseInt(u.clickedSlide.getAttribute("data-swiper-slide-index"),10),f.centeredSlides?x<u.loopedSlides-_/2||x>u.slides.length-u.loopedSlides+_/2?(u.loopFix(),x=u.getSlideIndex(elementChildren(d,`${E}[data-swiper-slide-index="${I}"]`)[0]),nextTick(()=>{u.slideTo(x)})):u.slideTo(x):x>u.slides.length-_?(u.loopFix(),x=u.getSlideIndex(elementChildren(d,`${E}[data-swiper-slide-index="${I}"]`)[0]),nextTick(()=>{u.slideTo(x)})):u.slideTo(x)}else u.slideTo(x)}var slide={slideTo,slideToLoop,slideNext,slidePrev,slideReset,slideToClosest,slideToClickedSlide};function loopCreate(u){const f=this,{params:d,slidesEl:_}=f;if(!d.loop||f.virtual&&f.params.virtual.enabled)return;const x=()=>{elementChildren(_,`.${d.slideClass}, swiper-slide`).forEach((D,O)=>{D.setAttribute("data-swiper-slide-index",O)})},I=f.grid&&d.grid&&d.grid.rows>1,E=d.slidesPerGroup*(I?d.grid.rows:1),M=f.slides.length%E!==0,S=I&&f.slides.length%d.grid.rows!==0,A=T=>{for(let D=0;D<T;D+=1){const O=f.isElement?createElement("swiper-slide",[d.slideBlankClass]):createElement("div",[d.slideClass,d.slideBlankClass]);f.slidesEl.append(O)}};if(M){if(d.loopAddBlankSlides){const T=E-f.slides.length%E;A(T),f.recalcSlides(),f.updateSlides()}else showWarning("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");x()}else if(S){if(d.loopAddBlankSlides){const T=d.grid.rows-f.slides.length%d.grid.rows;A(T),f.recalcSlides(),f.updateSlides()}else showWarning("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");x()}else x();f.loopFix({slideRealIndex:u,direction:d.centeredSlides?void 0:"next"})}function loopFix(u){let{slideRealIndex:f,slideTo:d=!0,direction:_,setTranslate:x,activeSlideIndex:I,byController:E,byMousewheel:M}=u===void 0?{}:u;const S=this;if(!S.params.loop)return;S.emit("beforeLoopFix");const{slides:A,allowSlidePrev:T,allowSlideNext:D,slidesEl:O,params:j}=S,{centeredSlides:$}=j;if(S.allowSlidePrev=!0,S.allowSlideNext=!0,S.virtual&&j.virtual.enabled){d&&(!j.centeredSlides&&S.snapIndex===0?S.slideTo(S.virtual.slides.length,0,!1,!0):j.centeredSlides&&S.snapIndex<j.slidesPerView?S.slideTo(S.virtual.slides.length+S.snapIndex,0,!1,!0):S.snapIndex===S.snapGrid.length-1&&S.slideTo(S.virtual.slidesBefore,0,!1,!0)),S.allowSlidePrev=T,S.allowSlideNext=D,S.emit("loopFix");return}let W=j.slidesPerView;W==="auto"?W=S.slidesPerViewDynamic():(W=Math.ceil(parseFloat(j.slidesPerView,10)),$&&W%2===0&&(W=W+1));const Q=j.slidesPerGroupAuto?W:j.slidesPerGroup;let X=Q;X%Q!==0&&(X+=Q-X%Q),X+=j.loopAdditionalSlides,S.loopedSlides=X;const Y=S.grid&&j.grid&&j.grid.rows>1;A.length<W+X?showWarning("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled and not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):Y&&j.grid.fill==="row"&&showWarning("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const ie=[],oe=[];let ge=S.activeIndex;typeof I>"u"?I=S.getSlideIndex(A.filter(P=>P.classList.contains(j.slideActiveClass))[0]):ge=I;const be=_==="next"||!_,ze=_==="prev"||!_;let de=0,Ce=0;const ke=Y?Math.ceil(A.length/j.grid.rows):A.length,re=(Y?A[I].column:I)+($&&typeof x>"u"?-W/2+.5:0);if(re<X){de=Math.max(X-re,Q);for(let P=0;P<X-re;P+=1){const k=P-Math.floor(P/ke)*ke;if(Y){const B=ke-k-1;for(let z=A.length-1;z>=0;z-=1)A[z].column===B&&ie.push(z)}else ie.push(ke-k-1)}}else if(re+W>ke-X){Ce=Math.max(re-(ke-X*2),Q);for(let P=0;P<Ce;P+=1){const k=P-Math.floor(P/ke)*ke;Y?A.forEach((B,z)=>{B.column===k&&oe.push(z)}):oe.push(k)}}if(S.__preventObserver__=!0,requestAnimationFrame(()=>{S.__preventObserver__=!1}),ze&&ie.forEach(P=>{A[P].swiperLoopMoveDOM=!0,O.prepend(A[P]),A[P].swiperLoopMoveDOM=!1}),be&&oe.forEach(P=>{A[P].swiperLoopMoveDOM=!0,O.append(A[P]),A[P].swiperLoopMoveDOM=!1}),S.recalcSlides(),j.slidesPerView==="auto"?S.updateSlides():Y&&(ie.length>0&&ze||oe.length>0&&be)&&S.slides.forEach((P,k)=>{S.grid.updateSlide(k,P,S.slides)}),j.watchSlidesProgress&&S.updateSlidesOffset(),d){if(ie.length>0&&ze){if(typeof f>"u"){const P=S.slidesGrid[ge],B=S.slidesGrid[ge+de]-P;M?S.setTranslate(S.translate-B):(S.slideTo(ge+de,0,!1,!0),x&&(S.touchEventsData.startTranslate=S.touchEventsData.startTranslate-B,S.touchEventsData.currentTranslate=S.touchEventsData.currentTranslate-B))}else if(x){const P=Y?ie.length/j.grid.rows:ie.length;S.slideTo(S.activeIndex+P,0,!1,!0),S.touchEventsData.currentTranslate=S.translate}}else if(oe.length>0&&be)if(typeof f>"u"){const P=S.slidesGrid[ge],B=S.slidesGrid[ge-Ce]-P;M?S.setTranslate(S.translate-B):(S.slideTo(ge-Ce,0,!1,!0),x&&(S.touchEventsData.startTranslate=S.touchEventsData.startTranslate-B,S.touchEventsData.currentTranslate=S.touchEventsData.currentTranslate-B))}else{const P=Y?oe.length/j.grid.rows:oe.length;S.slideTo(S.activeIndex-P,0,!1,!0)}}if(S.allowSlidePrev=T,S.allowSlideNext=D,S.controller&&S.controller.control&&!E){const P={slideRealIndex:f,direction:_,setTranslate:x,activeSlideIndex:I,byController:!0};Array.isArray(S.controller.control)?S.controller.control.forEach(k=>{!k.destroyed&&k.params.loop&&k.loopFix({...P,slideTo:k.params.slidesPerView===j.slidesPerView?d:!1})}):S.controller.control instanceof S.constructor&&S.controller.control.params.loop&&S.controller.control.loopFix({...P,slideTo:S.controller.control.params.slidesPerView===j.slidesPerView?d:!1})}S.emit("loopFix")}function loopDestroy(){const u=this,{params:f,slidesEl:d}=u;if(!f.loop||u.virtual&&u.params.virtual.enabled)return;u.recalcSlides();const _=[];u.slides.forEach(x=>{const I=typeof x.swiperSlideIndex>"u"?x.getAttribute("data-swiper-slide-index")*1:x.swiperSlideIndex;_[I]=x}),u.slides.forEach(x=>{x.removeAttribute("data-swiper-slide-index")}),_.forEach(x=>{d.append(x)}),u.recalcSlides(),u.slideTo(u.realIndex,0)}var loop={loopCreate,loopFix,loopDestroy};function setGrabCursor(u){const f=this;if(!f.params.simulateTouch||f.params.watchOverflow&&f.isLocked||f.params.cssMode)return;const d=f.params.touchEventsTarget==="container"?f.el:f.wrapperEl;f.isElement&&(f.__preventObserver__=!0),d.style.cursor="move",d.style.cursor=u?"grabbing":"grab",f.isElement&&requestAnimationFrame(()=>{f.__preventObserver__=!1})}function unsetGrabCursor(){const u=this;u.params.watchOverflow&&u.isLocked||u.params.cssMode||(u.isElement&&(u.__preventObserver__=!0),u[u.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",u.isElement&&requestAnimationFrame(()=>{u.__preventObserver__=!1}))}var grabCursor={setGrabCursor,unsetGrabCursor};function closestElement(u,f){f===void 0&&(f=this);function d(_){if(!_||_===getDocument()||_===getWindow())return null;_.assignedSlot&&(_=_.assignedSlot);const x=_.closest(u);return!x&&!_.getRootNode?null:x||d(_.getRootNode().host)}return d(f)}function preventEdgeSwipe(u,f,d){const _=getWindow(),{params:x}=u,I=x.edgeSwipeDetection,E=x.edgeSwipeThreshold;return I&&(d<=E||d>=_.innerWidth-E)?I==="prevent"?(f.preventDefault(),!0):!1:!0}function onTouchStart(u){const f=this,d=getDocument();let _=u;_.originalEvent&&(_=_.originalEvent);const x=f.touchEventsData;if(_.type==="pointerdown"){if(x.pointerId!==null&&x.pointerId!==_.pointerId)return;x.pointerId=_.pointerId}else _.type==="touchstart"&&_.targetTouches.length===1&&(x.touchId=_.targetTouches[0].identifier);if(_.type==="touchstart"){preventEdgeSwipe(f,_,_.targetTouches[0].pageX);return}const{params:I,touches:E,enabled:M}=f;if(!M||!I.simulateTouch&&_.pointerType==="mouse"||f.animating&&I.preventInteractionOnTransition)return;!f.animating&&I.cssMode&&I.loop&&f.loopFix();let S=_.target;if(I.touchEventsTarget==="wrapper"&&!f.wrapperEl.contains(S)||"which"in _&&_.which===3||"button"in _&&_.button>0||x.isTouched&&x.isMoved)return;const A=!!I.noSwipingClass&&I.noSwipingClass!=="",T=_.composedPath?_.composedPath():_.path;A&&_.target&&_.target.shadowRoot&&T&&(S=T[0]);const D=I.noSwipingSelector?I.noSwipingSelector:`.${I.noSwipingClass}`,O=!!(_.target&&_.target.shadowRoot);if(I.noSwiping&&(O?closestElement(D,S):S.closest(D))){f.allowClick=!0;return}if(I.swipeHandler&&!S.closest(I.swipeHandler))return;E.currentX=_.pageX,E.currentY=_.pageY;const j=E.currentX,$=E.currentY;if(!preventEdgeSwipe(f,_,j))return;Object.assign(x,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),E.startX=j,E.startY=$,x.touchStartTime=now(),f.allowClick=!0,f.updateSize(),f.swipeDirection=void 0,I.threshold>0&&(x.allowThresholdMove=!1);let W=!0;S.matches(x.focusableElements)&&(W=!1,S.nodeName==="SELECT"&&(x.isTouched=!1)),d.activeElement&&d.activeElement.matches(x.focusableElements)&&d.activeElement!==S&&d.activeElement.blur();const Q=W&&f.allowTouchMove&&I.touchStartPreventDefault;(I.touchStartForcePreventDefault||Q)&&!S.isContentEditable&&_.preventDefault(),I.freeMode&&I.freeMode.enabled&&f.freeMode&&f.animating&&!I.cssMode&&f.freeMode.onTouchStart(),f.emit("touchStart",_)}function onTouchMove(u){const f=getDocument(),d=this,_=d.touchEventsData,{params:x,touches:I,rtlTranslate:E,enabled:M}=d;if(!M||!x.simulateTouch&&u.pointerType==="mouse")return;let S=u;if(S.originalEvent&&(S=S.originalEvent),S.type==="pointermove"&&(_.touchId!==null||S.pointerId!==_.pointerId))return;let A;if(S.type==="touchmove"){if(A=[...S.changedTouches].filter(be=>be.identifier===_.touchId)[0],!A||A.identifier!==_.touchId)return}else A=S;if(!_.isTouched){_.startMoving&&_.isScrolling&&d.emit("touchMoveOpposite",S);return}const T=A.pageX,D=A.pageY;if(S.preventedByNestedSwiper){I.startX=T,I.startY=D;return}if(!d.allowTouchMove){S.target.matches(_.focusableElements)||(d.allowClick=!1),_.isTouched&&(Object.assign(I,{startX:T,startY:D,currentX:T,currentY:D}),_.touchStartTime=now());return}if(x.touchReleaseOnEdges&&!x.loop){if(d.isVertical()){if(D<I.startY&&d.translate<=d.maxTranslate()||D>I.startY&&d.translate>=d.minTranslate()){_.isTouched=!1,_.isMoved=!1;return}}else if(T<I.startX&&d.translate<=d.maxTranslate()||T>I.startX&&d.translate>=d.minTranslate())return}if(f.activeElement&&S.target===f.activeElement&&S.target.matches(_.focusableElements)){_.isMoved=!0,d.allowClick=!1;return}_.allowTouchCallbacks&&d.emit("touchMove",S),I.previousX=I.currentX,I.previousY=I.currentY,I.currentX=T,I.currentY=D;const O=I.currentX-I.startX,j=I.currentY-I.startY;if(d.params.threshold&&Math.sqrt(O**2+j**2)<d.params.threshold)return;if(typeof _.isScrolling>"u"){let be;d.isHorizontal()&&I.currentY===I.startY||d.isVertical()&&I.currentX===I.startX?_.isScrolling=!1:O*O+j*j>=25&&(be=Math.atan2(Math.abs(j),Math.abs(O))*180/Math.PI,_.isScrolling=d.isHorizontal()?be>x.touchAngle:90-be>x.touchAngle)}if(_.isScrolling&&d.emit("touchMoveOpposite",S),typeof _.startMoving>"u"&&(I.currentX!==I.startX||I.currentY!==I.startY)&&(_.startMoving=!0),_.isScrolling){_.isTouched=!1;return}if(!_.startMoving)return;d.allowClick=!1,!x.cssMode&&S.cancelable&&S.preventDefault(),x.touchMoveStopPropagation&&!x.nested&&S.stopPropagation();let $=d.isHorizontal()?O:j,W=d.isHorizontal()?I.currentX-I.previousX:I.currentY-I.previousY;x.oneWayMovement&&($=Math.abs($)*(E?1:-1),W=Math.abs(W)*(E?1:-1)),I.diff=$,$*=x.touchRatio,E&&($=-$,W=-W);const Q=d.touchesDirection;d.swipeDirection=$>0?"prev":"next",d.touchesDirection=W>0?"prev":"next";const X=d.params.loop&&!x.cssMode,Y=d.touchesDirection==="next"&&d.allowSlideNext||d.touchesDirection==="prev"&&d.allowSlidePrev;if(!_.isMoved){if(X&&Y&&d.loopFix({direction:d.swipeDirection}),_.startTranslate=d.getTranslate(),d.setTransition(0),d.animating){const be=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});d.wrapperEl.dispatchEvent(be)}_.allowMomentumBounce=!1,x.grabCursor&&(d.allowSlideNext===!0||d.allowSlidePrev===!0)&&d.setGrabCursor(!0),d.emit("sliderFirstMove",S)}let ie;if(new Date().getTime(),_.isMoved&&_.allowThresholdMove&&Q!==d.touchesDirection&&X&&Y&&Math.abs($)>=1){Object.assign(I,{startX:T,startY:D,currentX:T,currentY:D,startTranslate:_.currentTranslate}),_.loopSwapReset=!0,_.startTranslate=_.currentTranslate;return}d.emit("sliderMove",S),_.isMoved=!0,_.currentTranslate=$+_.startTranslate;let oe=!0,ge=x.resistanceRatio;if(x.touchReleaseOnEdges&&(ge=0),$>0?(X&&Y&&!ie&&_.allowThresholdMove&&_.currentTranslate>(x.centeredSlides?d.minTranslate()-d.slidesSizesGrid[d.activeIndex+1]:d.minTranslate())&&d.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),_.currentTranslate>d.minTranslate()&&(oe=!1,x.resistance&&(_.currentTranslate=d.minTranslate()-1+(-d.minTranslate()+_.startTranslate+$)**ge))):$<0&&(X&&Y&&!ie&&_.allowThresholdMove&&_.currentTranslate<(x.centeredSlides?d.maxTranslate()+d.slidesSizesGrid[d.slidesSizesGrid.length-1]:d.maxTranslate())&&d.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:d.slides.length-(x.slidesPerView==="auto"?d.slidesPerViewDynamic():Math.ceil(parseFloat(x.slidesPerView,10)))}),_.currentTranslate<d.maxTranslate()&&(oe=!1,x.resistance&&(_.currentTranslate=d.maxTranslate()+1-(d.maxTranslate()-_.startTranslate-$)**ge))),oe&&(S.preventedByNestedSwiper=!0),!d.allowSlideNext&&d.swipeDirection==="next"&&_.currentTranslate<_.startTranslate&&(_.currentTranslate=_.startTranslate),!d.allowSlidePrev&&d.swipeDirection==="prev"&&_.currentTranslate>_.startTranslate&&(_.currentTranslate=_.startTranslate),!d.allowSlidePrev&&!d.allowSlideNext&&(_.currentTranslate=_.startTranslate),x.threshold>0)if(Math.abs($)>x.threshold||_.allowThresholdMove){if(!_.allowThresholdMove){_.allowThresholdMove=!0,I.startX=I.currentX,I.startY=I.currentY,_.currentTranslate=_.startTranslate,I.diff=d.isHorizontal()?I.currentX-I.startX:I.currentY-I.startY;return}}else{_.currentTranslate=_.startTranslate;return}!x.followFinger||x.cssMode||((x.freeMode&&x.freeMode.enabled&&d.freeMode||x.watchSlidesProgress)&&(d.updateActiveIndex(),d.updateSlidesClasses()),x.freeMode&&x.freeMode.enabled&&d.freeMode&&d.freeMode.onTouchMove(),d.updateProgress(_.currentTranslate),d.setTranslate(_.currentTranslate))}function onTouchEnd(u){const f=this,d=f.touchEventsData;let _=u;_.originalEvent&&(_=_.originalEvent);let x;if(_.type==="touchend"||_.type==="touchcancel"){if(x=[..._.changedTouches].filter(ge=>ge.identifier===d.touchId)[0],!x||x.identifier!==d.touchId)return}else{if(d.touchId!==null||_.pointerId!==d.pointerId)return;x=_}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(_.type)&&!(["pointercancel","contextmenu"].includes(_.type)&&(f.browser.isSafari||f.browser.isWebView)))return;d.pointerId=null,d.touchId=null;const{params:E,touches:M,rtlTranslate:S,slidesGrid:A,enabled:T}=f;if(!T||!E.simulateTouch&&_.pointerType==="mouse")return;if(d.allowTouchCallbacks&&f.emit("touchEnd",_),d.allowTouchCallbacks=!1,!d.isTouched){d.isMoved&&E.grabCursor&&f.setGrabCursor(!1),d.isMoved=!1,d.startMoving=!1;return}E.grabCursor&&d.isMoved&&d.isTouched&&(f.allowSlideNext===!0||f.allowSlidePrev===!0)&&f.setGrabCursor(!1);const D=now(),O=D-d.touchStartTime;if(f.allowClick){const ge=_.path||_.composedPath&&_.composedPath();f.updateClickedSlide(ge&&ge[0]||_.target,ge),f.emit("tap click",_),O<300&&D-d.lastClickTime<300&&f.emit("doubleTap doubleClick",_)}if(d.lastClickTime=now(),nextTick(()=>{f.destroyed||(f.allowClick=!0)}),!d.isTouched||!d.isMoved||!f.swipeDirection||M.diff===0&&!d.loopSwapReset||d.currentTranslate===d.startTranslate&&!d.loopSwapReset){d.isTouched=!1,d.isMoved=!1,d.startMoving=!1;return}d.isTouched=!1,d.isMoved=!1,d.startMoving=!1;let j;if(E.followFinger?j=S?f.translate:-f.translate:j=-d.currentTranslate,E.cssMode)return;if(E.freeMode&&E.freeMode.enabled){f.freeMode.onTouchEnd({currentPos:j});return}const $=j>=-f.maxTranslate()&&!f.params.loop;let W=0,Q=f.slidesSizesGrid[0];for(let ge=0;ge<A.length;ge+=ge<E.slidesPerGroupSkip?1:E.slidesPerGroup){const be=ge<E.slidesPerGroupSkip-1?1:E.slidesPerGroup;typeof A[ge+be]<"u"?($||j>=A[ge]&&j<A[ge+be])&&(W=ge,Q=A[ge+be]-A[ge]):($||j>=A[ge])&&(W=ge,Q=A[A.length-1]-A[A.length-2])}let X=null,Y=null;E.rewind&&(f.isBeginning?Y=E.virtual&&E.virtual.enabled&&f.virtual?f.virtual.slides.length-1:f.slides.length-1:f.isEnd&&(X=0));const ie=(j-A[W])/Q,oe=W<E.slidesPerGroupSkip-1?1:E.slidesPerGroup;if(O>E.longSwipesMs){if(!E.longSwipes){f.slideTo(f.activeIndex);return}f.swipeDirection==="next"&&(ie>=E.longSwipesRatio?f.slideTo(E.rewind&&f.isEnd?X:W+oe):f.slideTo(W)),f.swipeDirection==="prev"&&(ie>1-E.longSwipesRatio?f.slideTo(W+oe):Y!==null&&ie<0&&Math.abs(ie)>E.longSwipesRatio?f.slideTo(Y):f.slideTo(W))}else{if(!E.shortSwipes){f.slideTo(f.activeIndex);return}f.navigation&&(_.target===f.navigation.nextEl||_.target===f.navigation.prevEl)?_.target===f.navigation.nextEl?f.slideTo(W+oe):f.slideTo(W):(f.swipeDirection==="next"&&f.slideTo(X!==null?X:W+oe),f.swipeDirection==="prev"&&f.slideTo(Y!==null?Y:W))}}function onResize(){const u=this,{params:f,el:d}=u;if(d&&d.offsetWidth===0)return;f.breakpoints&&u.setBreakpoint();const{allowSlideNext:_,allowSlidePrev:x,snapGrid:I}=u,E=u.virtual&&u.params.virtual.enabled;u.allowSlideNext=!0,u.allowSlidePrev=!0,u.updateSize(),u.updateSlides(),u.updateSlidesClasses();const M=E&&f.loop;(f.slidesPerView==="auto"||f.slidesPerView>1)&&u.isEnd&&!u.isBeginning&&!u.params.centeredSlides&&!M?u.slideTo(u.slides.length-1,0,!1,!0):u.params.loop&&!E?u.slideToLoop(u.realIndex,0,!1,!0):u.slideTo(u.activeIndex,0,!1,!0),u.autoplay&&u.autoplay.running&&u.autoplay.paused&&(clearTimeout(u.autoplay.resizeTimeout),u.autoplay.resizeTimeout=setTimeout(()=>{u.autoplay&&u.autoplay.running&&u.autoplay.paused&&u.autoplay.resume()},500)),u.allowSlidePrev=x,u.allowSlideNext=_,u.params.watchOverflow&&I!==u.snapGrid&&u.checkOverflow()}function onClick(u){const f=this;f.enabled&&(f.allowClick||(f.params.preventClicks&&u.preventDefault(),f.params.preventClicksPropagation&&f.animating&&(u.stopPropagation(),u.stopImmediatePropagation())))}function onScroll(){const u=this,{wrapperEl:f,rtlTranslate:d,enabled:_}=u;if(!_)return;u.previousTranslate=u.translate,u.isHorizontal()?u.translate=-f.scrollLeft:u.translate=-f.scrollTop,u.translate===0&&(u.translate=0),u.updateActiveIndex(),u.updateSlidesClasses();let x;const I=u.maxTranslate()-u.minTranslate();I===0?x=0:x=(u.translate-u.minTranslate())/I,x!==u.progress&&u.updateProgress(d?-u.translate:u.translate),u.emit("setTranslate",u.translate,!1)}function onLoad(u){const f=this;processLazyPreloader(f,u.target),!(f.params.cssMode||f.params.slidesPerView!=="auto"&&!f.params.autoHeight)&&f.update()}function onDocumentTouchStart(){const u=this;u.documentTouchHandlerProceeded||(u.documentTouchHandlerProceeded=!0,u.params.touchReleaseOnEdges&&(u.el.style.touchAction="auto"))}const events$1=(u,f)=>{const d=getDocument(),{params:_,el:x,wrapperEl:I,device:E}=u,M=!!_.nested,S=f==="on"?"addEventListener":"removeEventListener",A=f;d[S]("touchstart",u.onDocumentTouchStart,{passive:!1,capture:M}),x[S]("touchstart",u.onTouchStart,{passive:!1}),x[S]("pointerdown",u.onTouchStart,{passive:!1}),d[S]("touchmove",u.onTouchMove,{passive:!1,capture:M}),d[S]("pointermove",u.onTouchMove,{passive:!1,capture:M}),d[S]("touchend",u.onTouchEnd,{passive:!0}),d[S]("pointerup",u.onTouchEnd,{passive:!0}),d[S]("pointercancel",u.onTouchEnd,{passive:!0}),d[S]("touchcancel",u.onTouchEnd,{passive:!0}),d[S]("pointerout",u.onTouchEnd,{passive:!0}),d[S]("pointerleave",u.onTouchEnd,{passive:!0}),d[S]("contextmenu",u.onTouchEnd,{passive:!0}),(_.preventClicks||_.preventClicksPropagation)&&x[S]("click",u.onClick,!0),_.cssMode&&I[S]("scroll",u.onScroll),_.updateOnWindowResize?u[A](E.ios||E.android?"resize orientationchange observerUpdate":"resize observerUpdate",onResize,!0):u[A]("observerUpdate",onResize,!0),x[S]("load",u.onLoad,{capture:!0})};function attachEvents(){const u=this,{params:f}=u;u.onTouchStart=onTouchStart.bind(u),u.onTouchMove=onTouchMove.bind(u),u.onTouchEnd=onTouchEnd.bind(u),u.onDocumentTouchStart=onDocumentTouchStart.bind(u),f.cssMode&&(u.onScroll=onScroll.bind(u)),u.onClick=onClick.bind(u),u.onLoad=onLoad.bind(u),events$1(u,"on")}function detachEvents(){events$1(this,"off")}var events$1$1={attachEvents,detachEvents};const isGridEnabled=(u,f)=>u.grid&&f.grid&&f.grid.rows>1;function setBreakpoint(){const u=this,{realIndex:f,initialized:d,params:_,el:x}=u,I=_.breakpoints;if(!I||I&&Object.keys(I).length===0)return;const E=u.getBreakpoint(I,u.params.breakpointsBase,u.el);if(!E||u.currentBreakpoint===E)return;const S=(E in I?I[E]:void 0)||u.originalParams,A=isGridEnabled(u,_),T=isGridEnabled(u,S),D=_.enabled;A&&!T?(x.classList.remove(`${_.containerModifierClass}grid`,`${_.containerModifierClass}grid-column`),u.emitContainerClasses()):!A&&T&&(x.classList.add(`${_.containerModifierClass}grid`),(S.grid.fill&&S.grid.fill==="column"||!S.grid.fill&&_.grid.fill==="column")&&x.classList.add(`${_.containerModifierClass}grid-column`),u.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(X=>{if(typeof S[X]>"u")return;const Y=_[X]&&_[X].enabled,ie=S[X]&&S[X].enabled;Y&&!ie&&u[X].disable(),!Y&&ie&&u[X].enable()});const O=S.direction&&S.direction!==_.direction,j=_.loop&&(S.slidesPerView!==_.slidesPerView||O),$=_.loop;O&&d&&u.changeDirection(),extend$2(u.params,S);const W=u.params.enabled,Q=u.params.loop;Object.assign(u,{allowTouchMove:u.params.allowTouchMove,allowSlideNext:u.params.allowSlideNext,allowSlidePrev:u.params.allowSlidePrev}),D&&!W?u.disable():!D&&W&&u.enable(),u.currentBreakpoint=E,u.emit("_beforeBreakpoint",S),d&&(j?(u.loopDestroy(),u.loopCreate(f),u.updateSlides()):!$&&Q?(u.loopCreate(f),u.updateSlides()):$&&!Q&&u.loopDestroy()),u.emit("breakpoint",S)}function getBreakpoint(u,f,d){if(f===void 0&&(f="window"),!u||f==="container"&&!d)return;let _=!1;const x=getWindow(),I=f==="window"?x.innerHeight:d.clientHeight,E=Object.keys(u).map(M=>{if(typeof M=="string"&&M.indexOf("@")===0){const S=parseFloat(M.substr(1));return{value:I*S,point:M}}return{value:M,point:M}});E.sort((M,S)=>parseInt(M.value,10)-parseInt(S.value,10));for(let M=0;M<E.length;M+=1){const{point:S,value:A}=E[M];f==="window"?x.matchMedia(`(min-width: ${A}px)`).matches&&(_=S):A<=d.clientWidth&&(_=S)}return _||"max"}var breakpoints={setBreakpoint,getBreakpoint};function prepareClasses(u,f){const d=[];return u.forEach(_=>{typeof _=="object"?Object.keys(_).forEach(x=>{_[x]&&d.push(f+x)}):typeof _=="string"&&d.push(f+_)}),d}function addClasses(){const u=this,{classNames:f,params:d,rtl:_,el:x,device:I}=u,E=prepareClasses(["initialized",d.direction,{"free-mode":u.params.freeMode&&d.freeMode.enabled},{autoheight:d.autoHeight},{rtl:_},{grid:d.grid&&d.grid.rows>1},{"grid-column":d.grid&&d.grid.rows>1&&d.grid.fill==="column"},{android:I.android},{ios:I.ios},{"css-mode":d.cssMode},{centered:d.cssMode&&d.centeredSlides},{"watch-progress":d.watchSlidesProgress}],d.containerModifierClass);f.push(...E),x.classList.add(...f),u.emitContainerClasses()}function removeClasses(){const u=this,{el:f,classNames:d}=u;f.classList.remove(...d),u.emitContainerClasses()}var classes={addClasses,removeClasses};function checkOverflow(){const u=this,{isLocked:f,params:d}=u,{slidesOffsetBefore:_}=d;if(_){const x=u.slides.length-1,I=u.slidesGrid[x]+u.slidesSizesGrid[x]+_*2;u.isLocked=u.size>I}else u.isLocked=u.snapGrid.length===1;d.allowSlideNext===!0&&(u.allowSlideNext=!u.isLocked),d.allowSlidePrev===!0&&(u.allowSlidePrev=!u.isLocked),f&&f!==u.isLocked&&(u.isEnd=!1),f!==u.isLocked&&u.emit(u.isLocked?"lock":"unlock")}var checkOverflow$1={checkOverflow},defaults$1={init:!0,direction:"horizontal",oneWayMovement:!1,touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function moduleExtendParams(u,f){return function(_){_===void 0&&(_={});const x=Object.keys(_)[0],I=_[x];if(typeof I!="object"||I===null){extend$2(f,_);return}if(u[x]===!0&&(u[x]={enabled:!0}),x==="navigation"&&u[x]&&u[x].enabled&&!u[x].prevEl&&!u[x].nextEl&&(u[x].auto=!0),["pagination","scrollbar"].indexOf(x)>=0&&u[x]&&u[x].enabled&&!u[x].el&&(u[x].auto=!0),!(x in u&&"enabled"in I)){extend$2(f,_);return}typeof u[x]=="object"&&!("enabled"in u[x])&&(u[x].enabled=!0),u[x]||(u[x]={enabled:!1}),extend$2(f,_)}}const prototypes={eventsEmitter,update,translate,transition,slide,loop,grabCursor,events:events$1$1,breakpoints,checkOverflow:checkOverflow$1,classes},extendedDefaults={};class Swiper{constructor(){let f,d;for(var _=arguments.length,x=new Array(_),I=0;I<_;I++)x[I]=arguments[I];x.length===1&&x[0].constructor&&Object.prototype.toString.call(x[0]).slice(8,-1)==="Object"?d=x[0]:[f,d]=x,d||(d={}),d=extend$2({},d),f&&!d.el&&(d.el=f);const E=getDocument();if(d.el&&typeof d.el=="string"&&E.querySelectorAll(d.el).length>1){const T=[];return E.querySelectorAll(d.el).forEach(D=>{const O=extend$2({},d,{el:D});T.push(new Swiper(O))}),T}const M=this;M.__swiper__=!0,M.support=getSupport(),M.device=getDevice({userAgent:d.userAgent}),M.browser=getBrowser(),M.eventsListeners={},M.eventsAnyListeners=[],M.modules=[...M.__modules__],d.modules&&Array.isArray(d.modules)&&M.modules.push(...d.modules);const S={};M.modules.forEach(T=>{T({params:d,swiper:M,extendParams:moduleExtendParams(d,S),on:M.on.bind(M),once:M.once.bind(M),off:M.off.bind(M),emit:M.emit.bind(M)})});const A=extend$2({},defaults$1,S);return M.params=extend$2({},A,extendedDefaults,d),M.originalParams=extend$2({},M.params),M.passedParams=extend$2({},d),M.params&&M.params.on&&Object.keys(M.params.on).forEach(T=>{M.on(T,M.params.on[T])}),M.params&&M.params.onAny&&M.onAny(M.params.onAny),Object.assign(M,{enabled:M.params.enabled,el:f,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return M.params.direction==="horizontal"},isVertical(){return M.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:M.params.allowSlideNext,allowSlidePrev:M.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:M.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:M.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),M.emit("_swiper"),M.params.init&&M.init(),M}getDirectionLabel(f){return this.isHorizontal()?f:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[f]}getSlideIndex(f){const{slidesEl:d,params:_}=this,x=elementChildren(d,`.${_.slideClass}, swiper-slide`),I=elementIndex(x[0]);return elementIndex(f)-I}getSlideIndexByData(f){return this.getSlideIndex(this.slides.filter(d=>d.getAttribute("data-swiper-slide-index")*1===f)[0])}recalcSlides(){const f=this,{slidesEl:d,params:_}=f;f.slides=elementChildren(d,`.${_.slideClass}, swiper-slide`)}enable(){const f=this;f.enabled||(f.enabled=!0,f.params.grabCursor&&f.setGrabCursor(),f.emit("enable"))}disable(){const f=this;f.enabled&&(f.enabled=!1,f.params.grabCursor&&f.unsetGrabCursor(),f.emit("disable"))}setProgress(f,d){const _=this;f=Math.min(Math.max(f,0),1);const x=_.minTranslate(),E=(_.maxTranslate()-x)*f+x;_.translateTo(E,typeof d>"u"?0:d),_.updateActiveIndex(),_.updateSlidesClasses()}emitContainerClasses(){const f=this;if(!f.params._emitClasses||!f.el)return;const d=f.el.className.split(" ").filter(_=>_.indexOf("swiper")===0||_.indexOf(f.params.containerModifierClass)===0);f.emit("_containerClasses",d.join(" "))}getSlideClasses(f){const d=this;return d.destroyed?"":f.className.split(" ").filter(_=>_.indexOf("swiper-slide")===0||_.indexOf(d.params.slideClass)===0).join(" ")}emitSlidesClasses(){const f=this;if(!f.params._emitClasses||!f.el)return;const d=[];f.slides.forEach(_=>{const x=f.getSlideClasses(_);d.push({slideEl:_,classNames:x}),f.emit("_slideClass",_,x)}),f.emit("_slideClasses",d)}slidesPerViewDynamic(f,d){f===void 0&&(f="current"),d===void 0&&(d=!1);const _=this,{params:x,slides:I,slidesGrid:E,slidesSizesGrid:M,size:S,activeIndex:A}=_;let T=1;if(typeof x.slidesPerView=="number")return x.slidesPerView;if(x.centeredSlides){let D=I[A]?I[A].swiperSlideSize:0,O;for(let j=A+1;j<I.length;j+=1)I[j]&&!O&&(D+=I[j].swiperSlideSize,T+=1,D>S&&(O=!0));for(let j=A-1;j>=0;j-=1)I[j]&&!O&&(D+=I[j].swiperSlideSize,T+=1,D>S&&(O=!0))}else if(f==="current")for(let D=A+1;D<I.length;D+=1)(d?E[D]+M[D]-E[A]<S:E[D]-E[A]<S)&&(T+=1);else for(let D=A-1;D>=0;D-=1)E[A]-E[D]<S&&(T+=1);return T}update(){const f=this;if(!f||f.destroyed)return;const{snapGrid:d,params:_}=f;_.breakpoints&&f.setBreakpoint(),[...f.el.querySelectorAll('[loading="lazy"]')].forEach(E=>{E.complete&&processLazyPreloader(f,E)}),f.updateSize(),f.updateSlides(),f.updateProgress(),f.updateSlidesClasses();function x(){const E=f.rtlTranslate?f.translate*-1:f.translate,M=Math.min(Math.max(E,f.maxTranslate()),f.minTranslate());f.setTranslate(M),f.updateActiveIndex(),f.updateSlidesClasses()}let I;if(_.freeMode&&_.freeMode.enabled&&!_.cssMode)x(),_.autoHeight&&f.updateAutoHeight();else{if((_.slidesPerView==="auto"||_.slidesPerView>1)&&f.isEnd&&!_.centeredSlides){const E=f.virtual&&_.virtual.enabled?f.virtual.slides:f.slides;I=f.slideTo(E.length-1,0,!1,!0)}else I=f.slideTo(f.activeIndex,0,!1,!0);I||x()}_.watchOverflow&&d!==f.snapGrid&&f.checkOverflow(),f.emit("update")}changeDirection(f,d){d===void 0&&(d=!0);const _=this,x=_.params.direction;return f||(f=x==="horizontal"?"vertical":"horizontal"),f===x||f!=="horizontal"&&f!=="vertical"||(_.el.classList.remove(`${_.params.containerModifierClass}${x}`),_.el.classList.add(`${_.params.containerModifierClass}${f}`),_.emitContainerClasses(),_.params.direction=f,_.slides.forEach(I=>{f==="vertical"?I.style.width="":I.style.height=""}),_.emit("changeDirection"),d&&_.update()),_}changeLanguageDirection(f){const d=this;d.rtl&&f==="rtl"||!d.rtl&&f==="ltr"||(d.rtl=f==="rtl",d.rtlTranslate=d.params.direction==="horizontal"&&d.rtl,d.rtl?(d.el.classList.add(`${d.params.containerModifierClass}rtl`),d.el.dir="rtl"):(d.el.classList.remove(`${d.params.containerModifierClass}rtl`),d.el.dir="ltr"),d.update())}mount(f){const d=this;if(d.mounted)return!0;let _=f||d.params.el;if(typeof _=="string"&&(_=document.querySelector(_)),!_)return!1;_.swiper=d,_.parentNode&&_.parentNode.host&&_.parentNode.host.nodeName==="SWIPER-CONTAINER"&&(d.isElement=!0);const x=()=>`.${(d.params.wrapperClass||"").trim().split(" ").join(".")}`;let E=_&&_.shadowRoot&&_.shadowRoot.querySelector?_.shadowRoot.querySelector(x()):elementChildren(_,x())[0];return!E&&d.params.createElements&&(E=createElement("div",d.params.wrapperClass),_.append(E),elementChildren(_,`.${d.params.slideClass}`).forEach(M=>{E.append(M)})),Object.assign(d,{el:_,wrapperEl:E,slidesEl:d.isElement&&!_.parentNode.host.slideSlots?_.parentNode.host:E,hostEl:d.isElement?_.parentNode.host:_,mounted:!0,rtl:_.dir.toLowerCase()==="rtl"||elementStyle(_,"direction")==="rtl",rtlTranslate:d.params.direction==="horizontal"&&(_.dir.toLowerCase()==="rtl"||elementStyle(_,"direction")==="rtl"),wrongRTL:elementStyle(E,"display")==="-webkit-box"}),!0}init(f){const d=this;if(d.initialized||d.mount(f)===!1)return d;d.emit("beforeInit"),d.params.breakpoints&&d.setBreakpoint(),d.addClasses(),d.updateSize(),d.updateSlides(),d.params.watchOverflow&&d.checkOverflow(),d.params.grabCursor&&d.enabled&&d.setGrabCursor(),d.params.loop&&d.virtual&&d.params.virtual.enabled?d.slideTo(d.params.initialSlide+d.virtual.slidesBefore,0,d.params.runCallbacksOnInit,!1,!0):d.slideTo(d.params.initialSlide,0,d.params.runCallbacksOnInit,!1,!0),d.params.loop&&d.loopCreate(),d.attachEvents();const x=[...d.el.querySelectorAll('[loading="lazy"]')];return d.isElement&&x.push(...d.hostEl.querySelectorAll('[loading="lazy"]')),x.forEach(I=>{I.complete?processLazyPreloader(d,I):I.addEventListener("load",E=>{processLazyPreloader(d,E.target)})}),preload(d),d.initialized=!0,preload(d),d.emit("init"),d.emit("afterInit"),d}destroy(f,d){f===void 0&&(f=!0),d===void 0&&(d=!0);const _=this,{params:x,el:I,wrapperEl:E,slides:M}=_;return typeof _.params>"u"||_.destroyed||(_.emit("beforeDestroy"),_.initialized=!1,_.detachEvents(),x.loop&&_.loopDestroy(),d&&(_.removeClasses(),I.removeAttribute("style"),E.removeAttribute("style"),M&&M.length&&M.forEach(S=>{S.classList.remove(x.slideVisibleClass,x.slideFullyVisibleClass,x.slideActiveClass,x.slideNextClass,x.slidePrevClass),S.removeAttribute("style"),S.removeAttribute("data-swiper-slide-index")})),_.emit("destroy"),Object.keys(_.eventsListeners).forEach(S=>{_.off(S)}),f!==!1&&(_.el.swiper=null,deleteProps(_)),_.destroyed=!0),null}static extendDefaults(f){extend$2(extendedDefaults,f)}static get extendedDefaults(){return extendedDefaults}static get defaults(){return defaults$1}static installModule(f){Swiper.prototype.__modules__||(Swiper.prototype.__modules__=[]);const d=Swiper.prototype.__modules__;typeof f=="function"&&d.indexOf(f)<0&&d.push(f)}static use(f){return Array.isArray(f)?(f.forEach(d=>Swiper.installModule(d)),Swiper):(Swiper.installModule(f),Swiper)}}Object.keys(prototypes).forEach(u=>{Object.keys(prototypes[u]).forEach(f=>{Swiper.prototype[f]=prototypes[u][f]})});Swiper.use([Resize,Observer]);var apexcharts_common={exports:{}};(function(u,f){function d(ai,C){var L=Object.keys(ai);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(ai);C&&(F=F.filter(function(ne){return Object.getOwnPropertyDescriptor(ai,ne).enumerable})),L.push.apply(L,F)}return L}function _(ai){for(var C=1;C<arguments.length;C++){var L=arguments[C]!=null?arguments[C]:{};C%2?d(Object(L),!0).forEach(function(F){S(ai,F,L[F])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ai,Object.getOwnPropertyDescriptors(L)):d(Object(L)).forEach(function(F){Object.defineProperty(ai,F,Object.getOwnPropertyDescriptor(L,F))})}return ai}function x(ai){return x=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(C){return typeof C}:function(C){return C&&typeof Symbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeof C},x(ai)}function I(ai,C){if(!(ai instanceof C))throw new TypeError("Cannot call a class as a function")}function E(ai,C){for(var L=0;L<C.length;L++){var F=C[L];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(ai,F.key,F)}}function M(ai,C,L){return C&&E(ai.prototype,C),L&&E(ai,L),ai}function S(ai,C,L){return C in ai?Object.defineProperty(ai,C,{value:L,enumerable:!0,configurable:!0,writable:!0}):ai[C]=L,ai}function A(ai,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function");ai.prototype=Object.create(C&&C.prototype,{constructor:{value:ai,writable:!0,configurable:!0}}),C&&D(ai,C)}function T(ai){return T=Object.setPrototypeOf?Object.getPrototypeOf:function(C){return C.__proto__||Object.getPrototypeOf(C)},T(ai)}function D(ai,C){return D=Object.setPrototypeOf||function(L,F){return L.__proto__=F,L},D(ai,C)}function O(ai){if(ai===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ai}function j(ai){var C=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var L,F=T(ai);if(C){var ne=T(this).constructor;L=Reflect.construct(F,arguments,ne)}else L=F.apply(this,arguments);return function(ue,fe){if(fe&&(typeof fe=="object"||typeof fe=="function"))return fe;if(fe!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return O(ue)}(this,L)}}function $(ai,C){return function(L){if(Array.isArray(L))return L}(ai)||function(L,F){var ne=L==null?null:typeof Symbol<"u"&&L[Symbol.iterator]||L["@@iterator"];if(ne!=null){var ue,fe,me=[],Pe=!0,Re=!1;try{for(ne=ne.call(L);!(Pe=(ue=ne.next()).done)&&(me.push(ue.value),!F||me.length!==F);Pe=!0);}catch(Xe){Re=!0,fe=Xe}finally{try{Pe||ne.return==null||ne.return()}finally{if(Re)throw fe}}return me}}(ai,C)||Q(ai,C)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function W(ai){return function(C){if(Array.isArray(C))return X(C)}(ai)||function(C){if(typeof Symbol<"u"&&C[Symbol.iterator]!=null||C["@@iterator"]!=null)return Array.from(C)}(ai)||Q(ai)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Q(ai,C){if(ai){if(typeof ai=="string")return X(ai,C);var L=Object.prototype.toString.call(ai).slice(8,-1);return L==="Object"&&ai.constructor&&(L=ai.constructor.name),L==="Map"||L==="Set"?Array.from(ai):L==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(L)?X(ai,C):void 0}}function X(ai,C){(C==null||C>ai.length)&&(C=ai.length);for(var L=0,F=new Array(C);L<C;L++)F[L]=ai[L];return F}var Y=function(){function ai(){I(this,ai)}return M(ai,[{key:"shadeRGBColor",value:function(C,L){var F=L.split(","),ne=C<0?0:255,ue=C<0?-1*C:C,fe=parseInt(F[0].slice(4),10),me=parseInt(F[1],10),Pe=parseInt(F[2],10);return"rgb("+(Math.round((ne-fe)*ue)+fe)+","+(Math.round((ne-me)*ue)+me)+","+(Math.round((ne-Pe)*ue)+Pe)+")"}},{key:"shadeHexColor",value:function(C,L){var F=parseInt(L.slice(1),16),ne=C<0?0:255,ue=C<0?-1*C:C,fe=F>>16,me=F>>8&255,Pe=255&F;return"#"+(16777216+65536*(Math.round((ne-fe)*ue)+fe)+256*(Math.round((ne-me)*ue)+me)+(Math.round((ne-Pe)*ue)+Pe)).toString(16).slice(1)}},{key:"shadeColor",value:function(C,L){return ai.isColorHex(L)?this.shadeHexColor(C,L):this.shadeRGBColor(C,L)}}],[{key:"bind",value:function(C,L){return function(){return C.apply(L,arguments)}}},{key:"isObject",value:function(C){return C&&x(C)==="object"&&!Array.isArray(C)&&C!=null}},{key:"is",value:function(C,L){return Object.prototype.toString.call(L)==="[object "+C+"]"}},{key:"listToArray",value:function(C){var L,F=[];for(L=0;L<C.length;L++)F[L]=C[L];return F}},{key:"extend",value:function(C,L){var F=this;typeof Object.assign!="function"&&(Object.assign=function(ue){if(ue==null)throw new TypeError("Cannot convert undefined or null to object");for(var fe=Object(ue),me=1;me<arguments.length;me++){var Pe=arguments[me];if(Pe!=null)for(var Re in Pe)Pe.hasOwnProperty(Re)&&(fe[Re]=Pe[Re])}return fe});var ne=Object.assign({},C);return this.isObject(C)&&this.isObject(L)&&Object.keys(L).forEach(function(ue){F.isObject(L[ue])&&ue in C?ne[ue]=F.extend(C[ue],L[ue]):Object.assign(ne,S({},ue,L[ue]))}),ne}},{key:"extendArray",value:function(C,L){var F=[];return C.map(function(ne){F.push(ai.extend(L,ne))}),C=F}},{key:"monthMod",value:function(C){return C%12}},{key:"clone",value:function(C){if(ai.is("Array",C)){for(var L=[],F=0;F<C.length;F++)L[F]=this.clone(C[F]);return L}if(ai.is("Null",C))return null;if(ai.is("Date",C))return C;if(x(C)==="object"){var ne={};for(var ue in C)C.hasOwnProperty(ue)&&(ne[ue]=this.clone(C[ue]));return ne}return C}},{key:"log10",value:function(C){return Math.log(C)/Math.LN10}},{key:"roundToBase10",value:function(C){return Math.pow(10,Math.floor(Math.log10(C)))}},{key:"roundToBase",value:function(C,L){return Math.pow(L,Math.floor(Math.log(C)/Math.log(L)))}},{key:"parseNumber",value:function(C){return C===null?C:parseFloat(C)}},{key:"stripNumber",value:function(C){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return Number.isInteger(C)?C:parseFloat(C.toPrecision(L))}},{key:"randomId",value:function(){return(Math.random()+1).toString(36).substring(4)}},{key:"noExponents",value:function(C){var L=String(C).split(/[eE]/);if(L.length===1)return L[0];var F="",ne=C<0?"-":"",ue=L[0].replace(".",""),fe=Number(L[1])+1;if(fe<0){for(F=ne+"0.";fe++;)F+="0";return F+ue.replace(/^-/,"")}for(fe-=ue.length;fe--;)F+="0";return ue+F}},{key:"getDimensions",value:function(C){var L=getComputedStyle(C,null),F=C.clientHeight,ne=C.clientWidth;return F-=parseFloat(L.paddingTop)+parseFloat(L.paddingBottom),[ne-=parseFloat(L.paddingLeft)+parseFloat(L.paddingRight),F]}},{key:"getBoundingClientRect",value:function(C){var L=C.getBoundingClientRect();return{top:L.top,right:L.right,bottom:L.bottom,left:L.left,width:C.clientWidth,height:C.clientHeight,x:L.left,y:L.top}}},{key:"getLargestStringFromArr",value:function(C){return C.reduce(function(L,F){return Array.isArray(F)&&(F=F.reduce(function(ne,ue){return ne.length>ue.length?ne:ue})),L.length>F.length?L:F},0)}},{key:"hexToRgba",value:function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"#999999",L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:.6;C.substring(0,1)!=="#"&&(C="#999999");var F=C.replace("#","");F=F.match(new RegExp("(.{"+F.length/3+"})","g"));for(var ne=0;ne<F.length;ne++)F[ne]=parseInt(F[ne].length===1?F[ne]+F[ne]:F[ne],16);return L!==void 0&&F.push(L),"rgba("+F.join(",")+")"}},{key:"getOpacityFromRGBA",value:function(C){return parseFloat(C.replace(/^.*,(.+)\)/,"$1"))}},{key:"rgb2hex",value:function(C){return(C=C.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i))&&C.length===4?"#"+("0"+parseInt(C[1],10).toString(16)).slice(-2)+("0"+parseInt(C[2],10).toString(16)).slice(-2)+("0"+parseInt(C[3],10).toString(16)).slice(-2):""}},{key:"isColorHex",value:function(C){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)|(^#[0-9A-F]{8}$)/i.test(C)}},{key:"getPolygonPos",value:function(C,L){for(var F=[],ne=2*Math.PI/L,ue=0;ue<L;ue++){var fe={};fe.x=C*Math.sin(ue*ne),fe.y=-C*Math.cos(ue*ne),F.push(fe)}return F}},{key:"polarToCartesian",value:function(C,L,F,ne){var ue=(ne-90)*Math.PI/180;return{x:C+F*Math.cos(ue),y:L+F*Math.sin(ue)}}},{key:"escapeString",value:function(C){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"x",F=C.toString().slice();return F=F.replace(/[` ~!@#$%^&*()|+\=?;:'",.<>{}[\]\\/]/gi,L)}},{key:"negToZero",value:function(C){return C<0?0:C}},{key:"moveIndexInArray",value:function(C,L,F){if(F>=C.length)for(var ne=F-C.length+1;ne--;)C.push(void 0);return C.splice(F,0,C.splice(L,1)[0]),C}},{key:"extractNumber",value:function(C){return parseFloat(C.replace(/[^\d.]*/g,""))}},{key:"findAncestor",value:function(C,L){for(;(C=C.parentElement)&&!C.classList.contains(L););return C}},{key:"setELstyles",value:function(C,L){for(var F in L)L.hasOwnProperty(F)&&(C.style.key=L[F])}},{key:"isNumber",value:function(C){return!isNaN(C)&&parseFloat(Number(C))===C&&!isNaN(parseInt(C,10))}},{key:"isFloat",value:function(C){return Number(C)===C&&C%1!=0}},{key:"isSafari",value:function(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}},{key:"isFirefox",value:function(){return navigator.userAgent.toLowerCase().indexOf("firefox")>-1}},{key:"isIE11",value:function(){if(window.navigator.userAgent.indexOf("MSIE")!==-1||window.navigator.appVersion.indexOf("Trident/")>-1)return!0}},{key:"isIE",value:function(){var C=window.navigator.userAgent,L=C.indexOf("MSIE ");if(L>0)return parseInt(C.substring(L+5,C.indexOf(".",L)),10);if(C.indexOf("Trident/")>0){var F=C.indexOf("rv:");return parseInt(C.substring(F+3,C.indexOf(".",F)),10)}var ne=C.indexOf("Edge/");return ne>0&&parseInt(C.substring(ne+5,C.indexOf(".",ne)),10)}}]),ai}(),ie=function(){function ai(C){I(this,ai),this.ctx=C,this.w=C.w,this.setEasingFunctions()}return M(ai,[{key:"setEasingFunctions",value:function(){var C;if(!this.w.globals.easing){switch(this.w.config.chart.animations.easing){case"linear":C="-";break;case"easein":C="<";break;case"easeout":C=">";break;case"easeinout":default:C="<>";break;case"swing":C=function(L){var F=1.70158;return(L-=1)*L*((F+1)*L+F)+1};break;case"bounce":C=function(L){return L<1/2.75?7.5625*L*L:L<2/2.75?7.5625*(L-=1.5/2.75)*L+.75:L<2.5/2.75?7.5625*(L-=2.25/2.75)*L+.9375:7.5625*(L-=2.625/2.75)*L+.984375};break;case"elastic":C=function(L){return L===!!L?L:Math.pow(2,-10*L)*Math.sin((L-.075)*(2*Math.PI)/.3)+1}}this.w.globals.easing=C}}},{key:"animateLine",value:function(C,L,F,ne){C.attr(L).animate(ne).attr(F)}},{key:"animateMarker",value:function(C,L,F,ne,ue,fe){L||(L=0),C.attr({r:L,width:L,height:L}).animate(ne,ue).attr({r:F,width:F.width,height:F.height}).afterAll(function(){fe()})}},{key:"animateCircle",value:function(C,L,F,ne,ue){C.attr({r:L.r,cx:L.cx,cy:L.cy}).animate(ne,ue).attr({r:F.r,cx:F.cx,cy:F.cy})}},{key:"animateRect",value:function(C,L,F,ne,ue){C.attr(L).animate(ne).attr(F).afterAll(function(){return ue()})}},{key:"animatePathsGradually",value:function(C){var L=C.el,F=C.realIndex,ne=C.j,ue=C.fill,fe=C.pathFrom,me=C.pathTo,Pe=C.speed,Re=C.delay,Xe=this.w,qe=0;Xe.config.chart.animations.animateGradually.enabled&&(qe=Xe.config.chart.animations.animateGradually.delay),Xe.config.chart.animations.dynamicAnimation.enabled&&Xe.globals.dataChanged&&Xe.config.chart.type!=="bar"&&(qe=0),this.morphSVG(L,F,ne,Xe.config.chart.type!=="line"||Xe.globals.comboCharts?ue:"stroke",fe,me,Pe,Re*qe)}},{key:"showDelayedElements",value:function(){this.w.globals.delayedElements.forEach(function(C){var L=C.el;L.classList.remove("apexcharts-element-hidden"),L.classList.add("apexcharts-hidden-element-shown")})}},{key:"animationCompleted",value:function(C){var L=this.w;L.globals.animationEnded||(L.globals.animationEnded=!0,this.showDelayedElements(),typeof L.config.chart.events.animationEnd=="function"&&L.config.chart.events.animationEnd(this.ctx,{el:C,w:L}))}},{key:"morphSVG",value:function(C,L,F,ne,ue,fe,me,Pe){var Re=this,Xe=this.w;ue||(ue=C.attr("pathFrom")),fe||(fe=C.attr("pathTo"));var qe=function(Ke){return Xe.config.chart.type==="radar"&&(me=1),"M 0 ".concat(Xe.globals.gridHeight)};(!ue||ue.indexOf("undefined")>-1||ue.indexOf("NaN")>-1)&&(ue=qe()),(!fe||fe.indexOf("undefined")>-1||fe.indexOf("NaN")>-1)&&(fe=qe()),Xe.globals.shouldAnimate||(me=1),C.plot(ue).animate(1,Xe.globals.easing,Pe).plot(ue).animate(me,Xe.globals.easing,Pe).plot(fe).afterAll(function(){Y.isNumber(F)?F===Xe.globals.series[Xe.globals.maxValsInArrayIndex].length-2&&Xe.globals.shouldAnimate&&Re.animationCompleted(C):ne!=="none"&&Xe.globals.shouldAnimate&&(!Xe.globals.comboCharts&&L===Xe.globals.series.length-1||Xe.globals.comboCharts)&&Re.animationCompleted(C),Re.showDelayedElements()})}}]),ai}(),oe=function(){function ai(C){I(this,ai),this.ctx=C,this.w=C.w}return M(ai,[{key:"getDefaultFilter",value:function(C,L){var F=this.w;C.unfilter(!0),new window.SVG.Filter().size("120%","180%","-5%","-40%"),F.config.states.normal.filter!=="none"?this.applyFilter(C,L,F.config.states.normal.filter.type,F.config.states.normal.filter.value):F.config.chart.dropShadow.enabled&&this.dropShadow(C,F.config.chart.dropShadow,L)}},{key:"addNormalFilter",value:function(C,L){var F=this.w;F.config.chart.dropShadow.enabled&&!C.node.classList.contains("apexcharts-marker")&&this.dropShadow(C,F.config.chart.dropShadow,L)}},{key:"addLightenFilter",value:function(C,L,F){var ne=this,ue=this.w,fe=F.intensity;C.unfilter(!0),new window.SVG.Filter,C.filter(function(me){var Pe=ue.config.chart.dropShadow;(Pe.enabled?ne.addShadow(me,L,Pe):me).componentTransfer({rgb:{type:"linear",slope:1.5,intercept:fe}})}),C.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(C.filterer.node)}},{key:"addDarkenFilter",value:function(C,L,F){var ne=this,ue=this.w,fe=F.intensity;C.unfilter(!0),new window.SVG.Filter,C.filter(function(me){var Pe=ue.config.chart.dropShadow;(Pe.enabled?ne.addShadow(me,L,Pe):me).componentTransfer({rgb:{type:"linear",slope:fe}})}),C.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(C.filterer.node)}},{key:"applyFilter",value:function(C,L,F){var ne=arguments.length>3&&arguments[3]!==void 0?arguments[3]:.5;switch(F){case"none":this.addNormalFilter(C,L);break;case"lighten":this.addLightenFilter(C,L,{intensity:ne});break;case"darken":this.addDarkenFilter(C,L,{intensity:ne})}}},{key:"addShadow",value:function(C,L,F){var ne=F.blur,ue=F.top,fe=F.left,me=F.color,Pe=F.opacity,Re=C.flood(Array.isArray(me)?me[L]:me,Pe).composite(C.sourceAlpha,"in").offset(fe,ue).gaussianBlur(ne).merge(C.source);return C.blend(C.source,Re)}},{key:"dropShadow",value:function(C,L){var F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,ne=L.top,ue=L.left,fe=L.blur,me=L.color,Pe=L.opacity,Re=L.noUserSpaceOnUse,Xe=this.w;return C.unfilter(!0),Y.isIE()&&Xe.config.chart.type==="radialBar"||(me=Array.isArray(me)?me[F]:me,C.filter(function(qe){var Ke=null;Ke=Y.isSafari()||Y.isFirefox()||Y.isIE()?qe.flood(me,Pe).composite(qe.sourceAlpha,"in").offset(ue,ne).gaussianBlur(fe):qe.flood(me,Pe).composite(qe.sourceAlpha,"in").offset(ue,ne).gaussianBlur(fe).merge(qe.source),qe.blend(qe.source,Ke)}),Re||C.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(C.filterer.node)),C}},{key:"setSelectionFilter",value:function(C,L,F){var ne=this.w;if(ne.globals.selectedDataPoints[L]!==void 0&&ne.globals.selectedDataPoints[L].indexOf(F)>-1){C.node.setAttribute("selected",!0);var ue=ne.config.states.active.filter;ue!=="none"&&this.applyFilter(C,L,ue.type,ue.value)}}},{key:"_scaleFilterSize",value:function(C){(function(L){for(var F in L)L.hasOwnProperty(F)&&C.setAttribute(F,L[F])})({width:"200%",height:"200%",x:"-50%",y:"-50%"})}}]),ai}(),ge=function(){function ai(C){I(this,ai),this.ctx=C,this.w=C.w}return M(ai,[{key:"roundPathCorners",value:function(C,L){function F(yi,nM,iM){var mM=nM.x-yi.x,EM=nM.y-yi.y,wM=Math.sqrt(mM*mM+EM*EM);return ne(yi,nM,Math.min(1,iM/wM))}function ne(yi,nM,iM){return{x:yi.x+(nM.x-yi.x)*iM,y:yi.y+(nM.y-yi.y)*iM}}function ue(yi,nM){yi.length>2&&(yi[yi.length-2]=nM.x,yi[yi.length-1]=nM.y)}function fe(yi){return{x:parseFloat(yi[yi.length-2]),y:parseFloat(yi[yi.length-1])}}C.indexOf("NaN")>-1&&(C="");var me=C.split(/[,\s]/).reduce(function(yi,nM){var iM=nM.match("([a-zA-Z])(.+)");return iM?(yi.push(iM[1]),yi.push(iM[2])):yi.push(nM),yi},[]).reduce(function(yi,nM){return parseFloat(nM)==nM&&yi.length?yi[yi.length-1].push(nM):yi.push([nM]),yi},[]),Pe=[];if(me.length>1){var Re=fe(me[0]),Xe=null;me[me.length-1][0]=="Z"&&me[0].length>2&&(Xe=["L",Re.x,Re.y],me[me.length-1]=Xe),Pe.push(me[0]);for(var qe=1;qe<me.length;qe++){var Ke=Pe[Pe.length-1],nt=me[qe],It=nt==Xe?me[1]:me[qe+1];if(It&&Ke&&Ke.length>2&&nt[0]=="L"&&It.length>2&&It[0]=="L"){var Tt,ni,fi=fe(Ke),gi=fe(nt),je=fe(It);Tt=F(gi,fi,L),ni=F(gi,je,L),ue(nt,Tt),nt.origPoint=gi,Pe.push(nt);var it=ne(Tt,gi,.5),Ct=ne(gi,ni,.5),si=["C",it.x,it.y,Ct.x,Ct.y,ni.x,ni.y];si.origPoint=gi,Pe.push(si)}else Pe.push(nt)}if(Xe){var di=fe(Pe[Pe.length-1]);Pe.push(["Z"]),ue(Pe[0],di)}}else Pe=me;return Pe.reduce(function(yi,nM){return yi+nM.join(" ")+" "},"")}},{key:"drawLine",value:function(C,L,F,ne){var ue=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"#a8a8a8",fe=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0,me=arguments.length>6&&arguments[6]!==void 0?arguments[6]:null,Pe=arguments.length>7&&arguments[7]!==void 0?arguments[7]:"butt";return this.w.globals.dom.Paper.line().attr({x1:C,y1:L,x2:F,y2:ne,stroke:ue,"stroke-dasharray":fe,"stroke-width":me,"stroke-linecap":Pe})}},{key:"drawRect",value:function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,ne=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,ue=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,fe=arguments.length>5&&arguments[5]!==void 0?arguments[5]:"#fefefe",me=arguments.length>6&&arguments[6]!==void 0?arguments[6]:1,Pe=arguments.length>7&&arguments[7]!==void 0?arguments[7]:null,Re=arguments.length>8&&arguments[8]!==void 0?arguments[8]:null,Xe=arguments.length>9&&arguments[9]!==void 0?arguments[9]:0,qe=this.w.globals.dom.Paper.rect();return qe.attr({x:C,y:L,width:F>0?F:0,height:ne>0?ne:0,rx:ue,ry:ue,opacity:me,"stroke-width":Pe!==null?Pe:0,stroke:Re!==null?Re:"none","stroke-dasharray":Xe}),qe.node.setAttribute("fill",fe),qe}},{key:"drawPolygon",value:function(C){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"#e1e1e1",F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,ne=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"none";return this.w.globals.dom.Paper.polygon(C).attr({fill:ne,stroke:L,"stroke-width":F})}},{key:"drawCircle",value:function(C){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;C<0&&(C=0);var F=this.w.globals.dom.Paper.circle(2*C);return L!==null&&F.attr(L),F}},{key:"drawPath",value:function(C){var L=C.d,F=L===void 0?"":L,ne=C.stroke,ue=ne===void 0?"#a8a8a8":ne,fe=C.strokeWidth,me=fe===void 0?1:fe,Pe=C.fill,Re=C.fillOpacity,Xe=Re===void 0?1:Re,qe=C.strokeOpacity,Ke=qe===void 0?1:qe,nt=C.classes,It=C.strokeLinecap,Tt=It===void 0?null:It,ni=C.strokeDashArray,fi=ni===void 0?0:ni,gi=this.w;return Tt===null&&(Tt=gi.config.stroke.lineCap),(F.indexOf("undefined")>-1||F.indexOf("NaN")>-1)&&(F="M 0 ".concat(gi.globals.gridHeight)),gi.globals.dom.Paper.path(F).attr({fill:Pe,"fill-opacity":Xe,stroke:ue,"stroke-opacity":Ke,"stroke-linecap":Tt,"stroke-width":me,"stroke-dasharray":fi,class:nt})}},{key:"group",value:function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,L=this.w.globals.dom.Paper.group();return C!==null&&L.attr(C),L}},{key:"move",value:function(C,L){var F=["M",C,L].join(" ");return F}},{key:"line",value:function(C,L){var F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,ne=null;return F===null?ne=[" L",C,L].join(" "):F==="H"?ne=[" H",C].join(" "):F==="V"&&(ne=[" V",L].join(" ")),ne}},{key:"curve",value:function(C,L,F,ne,ue,fe){var me=["C",C,L,F,ne,ue,fe].join(" ");return me}},{key:"quadraticCurve",value:function(C,L,F,ne){return["Q",C,L,F,ne].join(" ")}},{key:"arc",value:function(C,L,F,ne,ue,fe,me){var Pe="A";arguments.length>7&&arguments[7]!==void 0&&arguments[7]&&(Pe="a");var Re=[Pe,C,L,F,ne,ue,fe,me].join(" ");return Re}},{key:"renderPaths",value:function(C){var L,F=C.j,ne=C.realIndex,ue=C.pathFrom,fe=C.pathTo,me=C.stroke,Pe=C.strokeWidth,Re=C.strokeLinecap,Xe=C.fill,qe=C.animationDelay,Ke=C.initialSpeed,nt=C.dataChangeSpeed,It=C.className,Tt=C.shouldClipToGrid,ni=Tt===void 0||Tt,fi=C.bindEventsOnPaths,gi=fi===void 0||fi,je=C.drawShadow,it=je===void 0||je,Ct=this.w,si=new oe(this.ctx),di=new ie(this.ctx),yi=this.w.config.chart.animations.enabled,nM=yi&&this.w.config.chart.animations.dynamicAnimation.enabled,iM=!!(yi&&!Ct.globals.resized||nM&&Ct.globals.dataChanged&&Ct.globals.shouldAnimate);iM?L=ue:(L=fe,Ct.globals.animationEnded=!0);var mM=Ct.config.stroke.dashArray,EM=0;EM=Array.isArray(mM)?mM[ne]:Ct.config.stroke.dashArray;var wM=this.drawPath({d:L,stroke:me,strokeWidth:Pe,fill:Xe,fillOpacity:1,classes:It,strokeLinecap:Re,strokeDashArray:EM});if(wM.attr("index",ne),ni&&wM.attr({"clip-path":"url(#gridRectMask".concat(Ct.globals.cuid,")")}),Ct.config.states.normal.filter.type!=="none")si.getDefaultFilter(wM,ne);else if(Ct.config.chart.dropShadow.enabled&&it&&(!Ct.config.chart.dropShadow.enabledOnSeries||Ct.config.chart.dropShadow.enabledOnSeries&&Ct.config.chart.dropShadow.enabledOnSeries.indexOf(ne)!==-1)){var GM=Ct.config.chart.dropShadow;si.dropShadow(wM,GM,ne)}gi&&(wM.node.addEventListener("mouseenter",this.pathMouseEnter.bind(this,wM)),wM.node.addEventListener("mouseleave",this.pathMouseLeave.bind(this,wM)),wM.node.addEventListener("mousedown",this.pathMouseDown.bind(this,wM))),wM.attr({pathTo:fe,pathFrom:ue});var qM={el:wM,j:F,realIndex:ne,pathFrom:ue,pathTo:fe,fill:Xe,strokeWidth:Pe,delay:qe};return!yi||Ct.globals.resized||Ct.globals.dataChanged?!Ct.globals.resized&&Ct.globals.dataChanged||di.showDelayedElements():di.animatePathsGradually(_(_({},qM),{},{speed:Ke})),Ct.globals.dataChanged&&nM&&iM&&di.animatePathsGradually(_(_({},qM),{},{speed:nt})),wM}},{key:"drawPattern",value:function(C,L,F){var ne=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"#a8a8a8",ue=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;return this.w.globals.dom.Paper.pattern(L,F,function(fe){C==="horizontalLines"?fe.line(0,0,F,0).stroke({color:ne,width:ue+1}):C==="verticalLines"?fe.line(0,0,0,L).stroke({color:ne,width:ue+1}):C==="slantedLines"?fe.line(0,0,L,F).stroke({color:ne,width:ue}):C==="squares"?fe.rect(L,F).fill("none").stroke({color:ne,width:ue}):C==="circles"&&fe.circle(L).fill("none").stroke({color:ne,width:ue})})}},{key:"drawGradient",value:function(C,L,F,ne,ue){var fe,me=arguments.length>5&&arguments[5]!==void 0?arguments[5]:null,Pe=arguments.length>6&&arguments[6]!==void 0?arguments[6]:null,Re=arguments.length>7&&arguments[7]!==void 0?arguments[7]:null,Xe=arguments.length>8&&arguments[8]!==void 0?arguments[8]:0,qe=this.w;L.length<9&&L.indexOf("#")===0&&(L=Y.hexToRgba(L,ne)),F.length<9&&F.indexOf("#")===0&&(F=Y.hexToRgba(F,ue));var Ke=0,nt=1,It=1,Tt=null;Pe!==null&&(Ke=Pe[0]!==void 0?Pe[0]/100:0,nt=Pe[1]!==void 0?Pe[1]/100:1,It=Pe[2]!==void 0?Pe[2]/100:1,Tt=Pe[3]!==void 0?Pe[3]/100:null);var ni=!(qe.config.chart.type!=="donut"&&qe.config.chart.type!=="pie"&&qe.config.chart.type!=="polarArea"&&qe.config.chart.type!=="bubble");if(fe=Re===null||Re.length===0?qe.globals.dom.Paper.gradient(ni?"radial":"linear",function(je){je.at(Ke,L,ne),je.at(nt,F,ue),je.at(It,F,ue),Tt!==null&&je.at(Tt,L,ne)}):qe.globals.dom.Paper.gradient(ni?"radial":"linear",function(je){(Array.isArray(Re[Xe])?Re[Xe]:Re).forEach(function(it){je.at(it.offset/100,it.color,it.opacity)})}),ni){var fi=qe.globals.gridWidth/2,gi=qe.globals.gridHeight/2;qe.config.chart.type!=="bubble"?fe.attr({gradientUnits:"userSpaceOnUse",cx:fi,cy:gi,r:me}):fe.attr({cx:.5,cy:.5,r:.8,fx:.2,fy:.2})}else C==="vertical"?fe.from(0,0).to(0,1):C==="diagonal"?fe.from(0,0).to(1,1):C==="horizontal"?fe.from(0,1).to(1,1):C==="diagonal2"&&fe.from(1,0).to(0,1);return fe}},{key:"getTextBasedOnMaxWidth",value:function(C){var L=C.text,F=C.maxWidth,ne=C.fontSize,ue=C.fontFamily,fe=this.getTextRects(L,ne,ue),me=fe.width/L.length,Pe=Math.floor(F/me);return F<fe.width?L.slice(0,Pe-3)+"...":L}},{key:"drawText",value:function(C){var L=this,F=C.x,ne=C.y,ue=C.text,fe=C.textAnchor,me=C.fontSize,Pe=C.fontFamily,Re=C.fontWeight,Xe=C.foreColor,qe=C.opacity,Ke=C.maxWidth,nt=C.cssClass,It=nt===void 0?"":nt,Tt=C.isPlainText,ni=Tt===void 0||Tt,fi=C.dominantBaseline,gi=fi===void 0?"auto":fi,je=this.w;ue===void 0&&(ue="");var it=ue;fe||(fe="start"),Xe&&Xe.length||(Xe=je.config.chart.foreColor),Pe=Pe||je.config.chart.fontFamily,Re=Re||"regular";var Ct,si={maxWidth:Ke,fontSize:me=me||"11px",fontFamily:Pe};return Array.isArray(ue)?Ct=je.globals.dom.Paper.text(function(di){for(var yi=0;yi<ue.length;yi++)it=ue[yi],Ke&&(it=L.getTextBasedOnMaxWidth(_({text:ue[yi]},si))),yi===0?di.tspan(it):di.tspan(it).newLine()}):(Ke&&(it=this.getTextBasedOnMaxWidth(_({text:ue},si))),Ct=ni?je.globals.dom.Paper.plain(ue):je.globals.dom.Paper.text(function(di){return di.tspan(it)})),Ct.attr({x:F,y:ne,"text-anchor":fe,"dominant-baseline":gi,"font-size":me,"font-family":Pe,"font-weight":Re,fill:Xe,class:"apexcharts-text "+It}),Ct.node.style.fontFamily=Pe,Ct.node.style.opacity=qe,Ct}},{key:"drawMarker",value:function(C,L,F){C=C||0;var ne=F.pSize||0,ue=null;if(F.shape==="square"||F.shape==="rect"){var fe=F.pRadius===void 0?ne/2:F.pRadius;L!==null&&ne||(ne=0,fe=0);var me=1.2*ne+fe,Pe=this.drawRect(me,me,me,me,fe);Pe.attr({x:C-me/2,y:L-me/2,cx:C,cy:L,class:F.class?F.class:"",fill:F.pointFillColor,"fill-opacity":F.pointFillOpacity?F.pointFillOpacity:1,stroke:F.pointStrokeColor,"stroke-width":F.pointStrokeWidth?F.pointStrokeWidth:0,"stroke-opacity":F.pointStrokeOpacity?F.pointStrokeOpacity:1}),ue=Pe}else F.shape!=="circle"&&F.shape||(Y.isNumber(L)||(ne=0,L=0),ue=this.drawCircle(ne,{cx:C,cy:L,class:F.class?F.class:"",stroke:F.pointStrokeColor,fill:F.pointFillColor,"fill-opacity":F.pointFillOpacity?F.pointFillOpacity:1,"stroke-width":F.pointStrokeWidth?F.pointStrokeWidth:0,"stroke-opacity":F.pointStrokeOpacity?F.pointStrokeOpacity:1}));return ue}},{key:"pathMouseEnter",value:function(C,L){var F=this.w,ne=new oe(this.ctx),ue=parseInt(C.node.getAttribute("index"),10),fe=parseInt(C.node.getAttribute("j"),10);if(typeof F.config.chart.events.dataPointMouseEnter=="function"&&F.config.chart.events.dataPointMouseEnter(L,this.ctx,{seriesIndex:ue,dataPointIndex:fe,w:F}),this.ctx.events.fireEvent("dataPointMouseEnter",[L,this.ctx,{seriesIndex:ue,dataPointIndex:fe,w:F}]),(F.config.states.active.filter.type==="none"||C.node.getAttribute("selected")!=="true")&&F.config.states.hover.filter.type!=="none"&&!F.globals.isTouchDevice){var me=F.config.states.hover.filter;ne.applyFilter(C,ue,me.type,me.value)}}},{key:"pathMouseLeave",value:function(C,L){var F=this.w,ne=new oe(this.ctx),ue=parseInt(C.node.getAttribute("index"),10),fe=parseInt(C.node.getAttribute("j"),10);typeof F.config.chart.events.dataPointMouseLeave=="function"&&F.config.chart.events.dataPointMouseLeave(L,this.ctx,{seriesIndex:ue,dataPointIndex:fe,w:F}),this.ctx.events.fireEvent("dataPointMouseLeave",[L,this.ctx,{seriesIndex:ue,dataPointIndex:fe,w:F}]),F.config.states.active.filter.type!=="none"&&C.node.getAttribute("selected")==="true"||F.config.states.hover.filter.type!=="none"&&ne.getDefaultFilter(C,ue)}},{key:"pathMouseDown",value:function(C,L){var F=this.w,ne=new oe(this.ctx),ue=parseInt(C.node.getAttribute("index"),10),fe=parseInt(C.node.getAttribute("j"),10),me="false";if(C.node.getAttribute("selected")==="true"){if(C.node.setAttribute("selected","false"),F.globals.selectedDataPoints[ue].indexOf(fe)>-1){var Pe=F.globals.selectedDataPoints[ue].indexOf(fe);F.globals.selectedDataPoints[ue].splice(Pe,1)}}else{if(!F.config.states.active.allowMultipleDataPointsSelection&&F.globals.selectedDataPoints.length>0){F.globals.selectedDataPoints=[];var Re=F.globals.dom.Paper.select(".apexcharts-series path").members,Xe=F.globals.dom.Paper.select(".apexcharts-series circle, .apexcharts-series rect").members,qe=function(It){Array.prototype.forEach.call(It,function(Tt){Tt.node.setAttribute("selected","false"),ne.getDefaultFilter(Tt,ue)})};qe(Re),qe(Xe)}C.node.setAttribute("selected","true"),me="true",F.globals.selectedDataPoints[ue]===void 0&&(F.globals.selectedDataPoints[ue]=[]),F.globals.selectedDataPoints[ue].push(fe)}if(me==="true"){var Ke=F.config.states.active.filter;if(Ke!=="none")ne.applyFilter(C,ue,Ke.type,Ke.value);else if(F.config.states.hover.filter!=="none"&&!F.globals.isTouchDevice){var nt=F.config.states.hover.filter;ne.applyFilter(C,ue,nt.type,nt.value)}}else F.config.states.active.filter.type!=="none"&&(F.config.states.hover.filter.type==="none"||F.globals.isTouchDevice?ne.getDefaultFilter(C,ue):(nt=F.config.states.hover.filter,ne.applyFilter(C,ue,nt.type,nt.value)));typeof F.config.chart.events.dataPointSelection=="function"&&F.config.chart.events.dataPointSelection(L,this.ctx,{selectedDataPoints:F.globals.selectedDataPoints,seriesIndex:ue,dataPointIndex:fe,w:F}),L&&this.ctx.events.fireEvent("dataPointSelection",[L,this.ctx,{selectedDataPoints:F.globals.selectedDataPoints,seriesIndex:ue,dataPointIndex:fe,w:F}])}},{key:"rotateAroundCenter",value:function(C){var L={};return C&&typeof C.getBBox=="function"&&(L=C.getBBox()),{x:L.x+L.width/2,y:L.y+L.height/2}}},{key:"getTextRects",value:function(C,L,F,ne){var ue=!(arguments.length>4&&arguments[4]!==void 0)||arguments[4],fe=this.w,me=this.drawText({x:-200,y:-200,text:C,textAnchor:"start",fontSize:L,fontFamily:F,foreColor:"#fff",opacity:0});ne&&me.attr("transform",ne),fe.globals.dom.Paper.add(me);var Pe=me.bbox();return ue||(Pe=me.node.getBoundingClientRect()),me.remove(),{width:Pe.width,height:Pe.height}}},{key:"placeTextWithEllipsis",value:function(C,L,F){if(typeof C.getComputedTextLength=="function"&&(C.textContent=L,L.length>0&&C.getComputedTextLength()>=F/1.1)){for(var ne=L.length-3;ne>0;ne-=3)if(C.getSubStringLength(0,ne)<=F/1.1)return void(C.textContent=L.substring(0,ne)+"...");C.textContent="."}}}],[{key:"setAttrs",value:function(C,L){for(var F in L)L.hasOwnProperty(F)&&C.setAttribute(F,L[F])}}]),ai}(),be=function(){function ai(C){I(this,ai),this.ctx=C,this.w=C.w}return M(ai,[{key:"getStackedSeriesTotals",value:function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],L=this.w,F=[];if(L.globals.series.length===0)return F;for(var ne=0;ne<L.globals.series[L.globals.maxValsInArrayIndex].length;ne++){for(var ue=0,fe=0;fe<L.globals.series.length;fe++)L.globals.series[fe][ne]!==void 0&&C.indexOf(fe)===-1&&(ue+=L.globals.series[fe][ne]);F.push(ue)}return F}},{key:"getSeriesTotalByIndex",value:function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return C===null?this.w.config.series.reduce(function(L,F){return L+F},0):this.w.globals.series[C].reduce(function(L,F){return L+F},0)}},{key:"getStackedSeriesTotalsByGroups",value:function(){var C=this,L=this.w,F=[];return L.globals.seriesGroups.forEach(function(ne){var ue=[];L.config.series.forEach(function(me,Pe){ne.indexOf(me.name)>-1&&ue.push(Pe)});var fe=L.globals.series.map(function(me,Pe){return ue.indexOf(Pe)===-1?Pe:-1}).filter(function(me){return me!==-1});F.push(C.getStackedSeriesTotals(fe))}),F}},{key:"isSeriesNull",value:function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return(C===null?this.w.config.series.filter(function(L){return L!==null}):this.w.config.series[C].data.filter(function(L){return L!==null})).length===0}},{key:"seriesHaveSameValues",value:function(C){return this.w.globals.series[C].every(function(L,F,ne){return L===ne[0]})}},{key:"getCategoryLabels",value:function(C){var L=this.w,F=C.slice();return L.config.xaxis.convertedCatToNumeric&&(F=C.map(function(ne,ue){return L.config.xaxis.labels.formatter(ne-L.globals.minX+1)})),F}},{key:"getLargestSeries",value:function(){var C=this.w;C.globals.maxValsInArrayIndex=C.globals.series.map(function(L){return L.length}).indexOf(Math.max.apply(Math,C.globals.series.map(function(L){return L.length})))}},{key:"getLargestMarkerSize",value:function(){var C=this.w,L=0;return C.globals.markers.size.forEach(function(F){L=Math.max(L,F)}),C.config.markers.discrete&&C.config.markers.discrete.length&&C.config.markers.discrete.forEach(function(F){L=Math.max(L,F.size)}),L>0&&(L+=C.config.markers.hover.sizeOffset+1),C.globals.markers.largestSize=L,L}},{key:"getSeriesTotals",value:function(){var C=this.w;C.globals.seriesTotals=C.globals.series.map(function(L,F){var ne=0;if(Array.isArray(L))for(var ue=0;ue<L.length;ue++)ne+=L[ue];else ne+=L;return ne})}},{key:"getSeriesTotalsXRange",value:function(C,L){var F=this.w;return F.globals.series.map(function(ne,ue){for(var fe=0,me=0;me<ne.length;me++)F.globals.seriesX[ue][me]>C&&F.globals.seriesX[ue][me]<L&&(fe+=ne[me]);return fe})}},{key:"getPercentSeries",value:function(){var C=this.w;C.globals.seriesPercent=C.globals.series.map(function(L,F){var ne=[];if(Array.isArray(L))for(var ue=0;ue<L.length;ue++){var fe=C.globals.stackedSeriesTotals[ue],me=0;fe&&(me=100*L[ue]/fe),ne.push(me)}else{var Pe=100*L/C.globals.seriesTotals.reduce(function(Re,Xe){return Re+Xe},0);ne.push(Pe)}return ne})}},{key:"getCalculatedRatios",value:function(){var C,L,F,ne=this.w.globals,ue=[],fe=0,me=[],Pe=.1,Re=0;if(ne.yRange=[],ne.isMultipleYAxis)for(var Xe=0;Xe<ne.minYArr.length;Xe++)ne.yRange.push(Math.abs(ne.minYArr[Xe]-ne.maxYArr[Xe])),me.push(0);else ne.yRange.push(Math.abs(ne.minY-ne.maxY));ne.xRange=Math.abs(ne.maxX-ne.minX),ne.zRange=Math.abs(ne.maxZ-ne.minZ);for(var qe=0;qe<ne.yRange.length;qe++)ue.push(ne.yRange[qe]/ne.gridHeight);if(L=ne.xRange/ne.gridWidth,C=ne.yRange/ne.gridWidth,F=ne.xRange/ne.gridHeight,(fe=ne.zRange/ne.gridHeight*16)||(fe=1),ne.minY!==Number.MIN_VALUE&&Math.abs(ne.minY)!==0&&(ne.hasNegs=!0),ne.isMultipleYAxis){me=[];for(var Ke=0;Ke<ue.length;Ke++)me.push(-ne.minYArr[Ke]/ue[Ke])}else me.push(-ne.minY/ue[0]),ne.minY!==Number.MIN_VALUE&&Math.abs(ne.minY)!==0&&(Pe=-ne.minY/C,Re=ne.minX/L);return{yRatio:ue,invertedYRatio:C,zRatio:fe,xRatio:L,invertedXRatio:F,baseLineInvertedY:Pe,baseLineY:me,baseLineX:Re}}},{key:"getLogSeries",value:function(C){var L=this,F=this.w;return F.globals.seriesLog=C.map(function(ne,ue){return F.config.yaxis[ue]&&F.config.yaxis[ue].logarithmic?ne.map(function(fe){return fe===null?null:L.getLogVal(F.config.yaxis[ue].logBase,fe,ue)}):ne}),F.globals.invalidLogScale?C:F.globals.seriesLog}},{key:"getBaseLog",value:function(C,L){return Math.log(L)/Math.log(C)}},{key:"getLogVal",value:function(C,L,F){if(L===0)return 0;var ne=this.w,ue=ne.globals.minYArr[F]===0?-1:this.getBaseLog(C,ne.globals.minYArr[F]),fe=(ne.globals.maxYArr[F]===0?0:this.getBaseLog(C,ne.globals.maxYArr[F]))-ue;return L<1?L/fe:(this.getBaseLog(C,L)-ue)/fe}},{key:"getLogYRatios",value:function(C){var L=this,F=this.w,ne=this.w.globals;return ne.yLogRatio=C.slice(),ne.logYRange=ne.yRange.map(function(ue,fe){if(F.config.yaxis[fe]&&L.w.config.yaxis[fe].logarithmic){var me,Pe=-Number.MAX_VALUE,Re=Number.MIN_VALUE;return ne.seriesLog.forEach(function(Xe,qe){Xe.forEach(function(Ke){F.config.yaxis[qe]&&F.config.yaxis[qe].logarithmic&&(Pe=Math.max(Ke,Pe),Re=Math.min(Ke,Re))})}),me=Math.pow(ne.yRange[fe],Math.abs(Re-Pe)/ne.yRange[fe]),ne.yLogRatio[fe]=me/ne.gridHeight,me}}),ne.invalidLogScale?C.slice():ne.yLogRatio}}],[{key:"checkComboSeries",value:function(C){var L=!1,F=0,ne=0;return C.length&&C[0].type!==void 0&&C.forEach(function(ue){ue.type!=="bar"&&ue.type!=="column"&&ue.type!=="candlestick"&&ue.type!=="boxPlot"||F++,ue.type!==void 0&&ne++}),ne>0&&(L=!0),{comboBarCount:F,comboCharts:L}}},{key:"extendArrayProps",value:function(C,L,F){return L.yaxis&&(L=C.extendYAxis(L,F)),L.annotations&&(L.annotations.yaxis&&(L=C.extendYAxisAnnotations(L)),L.annotations.xaxis&&(L=C.extendXAxisAnnotations(L)),L.annotations.points&&(L=C.extendPointAnnotations(L))),L}}]),ai}(),ze=function(){function ai(C){I(this,ai),this.w=C.w,this.annoCtx=C}return M(ai,[{key:"setOrientations",value:function(C){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,F=this.w;if(C.label.orientation==="vertical"){var ne=L!==null?L:0,ue=F.globals.dom.baseEl.querySelector(".apexcharts-xaxis-annotations .apexcharts-xaxis-annotation-label[rel='".concat(ne,"']"));if(ue!==null){var fe=ue.getBoundingClientRect();ue.setAttribute("x",parseFloat(ue.getAttribute("x"))-fe.height+4),C.label.position==="top"?ue.setAttribute("y",parseFloat(ue.getAttribute("y"))+fe.width):ue.setAttribute("y",parseFloat(ue.getAttribute("y"))-fe.width);var me=this.annoCtx.graphics.rotateAroundCenter(ue),Pe=me.x,Re=me.y;ue.setAttribute("transform","rotate(-90 ".concat(Pe," ").concat(Re,")"))}}}},{key:"addBackgroundToAnno",value:function(C,L){var F=this.w;if(!C||L.label.text===void 0||L.label.text!==void 0&&!String(L.label.text).trim())return null;var ne=F.globals.dom.baseEl.querySelector(".apexcharts-grid").getBoundingClientRect(),ue=C.getBoundingClientRect(),fe=L.label.style.padding.left,me=L.label.style.padding.right,Pe=L.label.style.padding.top,Re=L.label.style.padding.bottom;L.label.orientation==="vertical"&&(Pe=L.label.style.padding.left,Re=L.label.style.padding.right,fe=L.label.style.padding.top,me=L.label.style.padding.bottom);var Xe=ue.left-ne.left-fe,qe=ue.top-ne.top-Pe,Ke=this.annoCtx.graphics.drawRect(Xe-F.globals.barPadForNumericAxis,qe,ue.width+fe+me,ue.height+Pe+Re,L.label.borderRadius,L.label.style.background,1,L.label.borderWidth,L.label.borderColor,0);return L.id&&Ke.node.classList.add(L.id),Ke}},{key:"annotationsBackground",value:function(){var C=this,L=this.w,F=function(ne,ue,fe){var me=L.globals.dom.baseEl.querySelector(".apexcharts-".concat(fe,"-annotations .apexcharts-").concat(fe,"-annotation-label[rel='").concat(ue,"']"));if(me){var Pe=me.parentNode,Re=C.addBackgroundToAnno(me,ne);Re&&(Pe.insertBefore(Re.node,me),ne.label.mouseEnter&&Re.node.addEventListener("mouseenter",ne.label.mouseEnter.bind(C,ne)),ne.label.mouseLeave&&Re.node.addEventListener("mouseleave",ne.label.mouseLeave.bind(C,ne)),ne.label.click&&Re.node.addEventListener("click",ne.label.click.bind(C,ne)))}};L.config.annotations.xaxis.map(function(ne,ue){F(ne,ue,"xaxis")}),L.config.annotations.yaxis.map(function(ne,ue){F(ne,ue,"yaxis")}),L.config.annotations.points.map(function(ne,ue){F(ne,ue,"point")})}},{key:"getY1Y2",value:function(C,L){var F,ne=C==="y1"?L.y:L.y2,ue=this.w;if(this.annoCtx.invertAxis){var fe=ue.globals.labels.indexOf(ne);ue.config.xaxis.convertedCatToNumeric&&(fe=ue.globals.categoryLabels.indexOf(ne));var me=ue.globals.dom.baseEl.querySelector(".apexcharts-yaxis-texts-g text:nth-child("+(fe+1)+")");me&&(F=parseFloat(me.getAttribute("y"))),L.seriesIndex!==void 0&&ue.globals.barHeight&&(F=F-ue.globals.barHeight/2*(ue.globals.series.length-1)+ue.globals.barHeight*L.seriesIndex)}else{var Pe;ue.config.yaxis[L.yAxisIndex].logarithmic?Pe=(ne=new be(this.annoCtx.ctx).getLogVal(ne,L.yAxisIndex))/ue.globals.yLogRatio[L.yAxisIndex]:Pe=(ne-ue.globals.minYArr[L.yAxisIndex])/(ue.globals.yRange[L.yAxisIndex]/ue.globals.gridHeight),F=ue.globals.gridHeight-Pe,!L.marker||L.y!==void 0&&L.y!==null||(F=0),ue.config.yaxis[L.yAxisIndex]&&ue.config.yaxis[L.yAxisIndex].reversed&&(F=Pe)}return typeof ne=="string"&&ne.indexOf("px")>-1&&(F=parseFloat(ne)),F}},{key:"getX1X2",value:function(C,L){var F=this.w,ne=this.annoCtx.invertAxis?F.globals.minY:F.globals.minX,ue=this.annoCtx.invertAxis?F.globals.maxY:F.globals.maxX,fe=this.annoCtx.invertAxis?F.globals.yRange[0]:F.globals.xRange,me=(L.x-ne)/(fe/F.globals.gridWidth);this.annoCtx.inversedReversedAxis&&(me=(ue-L.x)/(fe/F.globals.gridWidth)),F.config.xaxis.type!=="category"&&!F.config.xaxis.convertedCatToNumeric||this.annoCtx.invertAxis||F.globals.dataFormatXNumeric||(me=this.getStringX(L.x));var Pe=(L.x2-ne)/(fe/F.globals.gridWidth);return this.annoCtx.inversedReversedAxis&&(Pe=(ue-L.x2)/(fe/F.globals.gridWidth)),F.config.xaxis.type!=="category"&&!F.config.xaxis.convertedCatToNumeric||this.annoCtx.invertAxis||F.globals.dataFormatXNumeric||(Pe=this.getStringX(L.x2)),L.x!==void 0&&L.x!==null||!L.marker||(me=F.globals.gridWidth),C==="x1"&&typeof L.x=="string"&&L.x.indexOf("px")>-1&&(me=parseFloat(L.x)),C==="x2"&&typeof L.x2=="string"&&L.x2.indexOf("px")>-1&&(Pe=parseFloat(L.x2)),L.seriesIndex!==void 0&&F.globals.barWidth&&!this.annoCtx.invertAxis&&(me=me-F.globals.barWidth/2*(F.globals.series.length-1)+F.globals.barWidth*L.seriesIndex),C==="x1"?me:Pe}},{key:"getStringX",value:function(C){var L=this.w,F=C;L.config.xaxis.convertedCatToNumeric&&L.globals.categoryLabels.length&&(C=L.globals.categoryLabels.indexOf(C)+1);var ne=L.globals.labels.indexOf(C),ue=L.globals.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g text:nth-child("+(ne+1)+")");return ue&&(F=parseFloat(ue.getAttribute("x"))),F}}]),ai}(),de=function(){function ai(C){I(this,ai),this.w=C.w,this.annoCtx=C,this.invertAxis=this.annoCtx.invertAxis,this.helpers=new ze(this.annoCtx)}return M(ai,[{key:"addXaxisAnnotation",value:function(C,L,F){var ne,ue=this.w,fe=this.helpers.getX1X2("x1",C),me=C.label.text,Pe=C.strokeDashArray;if(Y.isNumber(fe)){if(C.x2===null||C.x2===void 0){var Re=this.annoCtx.graphics.drawLine(fe+C.offsetX,0+C.offsetY,fe+C.offsetX,ue.globals.gridHeight+C.offsetY,C.borderColor,Pe,C.borderWidth);L.appendChild(Re.node),C.id&&Re.node.classList.add(C.id)}else{if((ne=this.helpers.getX1X2("x2",C))<fe){var Xe=fe;fe=ne,ne=Xe}var qe=this.annoCtx.graphics.drawRect(fe+C.offsetX,0+C.offsetY,ne-fe,ue.globals.gridHeight+C.offsetY,0,C.fillColor,C.opacity,1,C.borderColor,Pe);qe.node.classList.add("apexcharts-annotation-rect"),qe.attr("clip-path","url(#gridRectMask".concat(ue.globals.cuid,")")),L.appendChild(qe.node),C.id&&qe.node.classList.add(C.id)}var Ke=this.annoCtx.graphics.getTextRects(me,parseFloat(C.label.style.fontSize)),nt=C.label.position==="top"?4:C.label.position==="center"?ue.globals.gridHeight/2+(C.label.orientation==="vertical"?Ke.width/2:0):ue.globals.gridHeight,It=this.annoCtx.graphics.drawText({x:fe+C.label.offsetX,y:nt+C.label.offsetY-(C.label.orientation==="vertical"?C.label.position==="top"?Ke.width/2-12:-Ke.width/2:0),text:me,textAnchor:C.label.textAnchor,fontSize:C.label.style.fontSize,fontFamily:C.label.style.fontFamily,fontWeight:C.label.style.fontWeight,foreColor:C.label.style.color,cssClass:"apexcharts-xaxis-annotation-label ".concat(C.label.style.cssClass," ").concat(C.id?C.id:"")});It.attr({rel:F}),L.appendChild(It.node),this.annoCtx.helpers.setOrientations(C,F)}}},{key:"drawXAxisAnnotations",value:function(){var C=this,L=this.w,F=this.annoCtx.graphics.group({class:"apexcharts-xaxis-annotations"});return L.config.annotations.xaxis.map(function(ne,ue){C.addXaxisAnnotation(ne,F.node,ue)}),F}}]),ai}(),Ce=function(){function ai(C){I(this,ai),this.w=C.w,this.annoCtx=C,this.helpers=new ze(this.annoCtx)}return M(ai,[{key:"addYaxisAnnotation",value:function(C,L,F){var ne,ue=this.w,fe=C.strokeDashArray,me=this.helpers.getY1Y2("y1",C),Pe=C.label.text;if(C.y2===null||C.y2===void 0){var Re=this.annoCtx.graphics.drawLine(0+C.offsetX,me+C.offsetY,this._getYAxisAnnotationWidth(C),me+C.offsetY,C.borderColor,fe,C.borderWidth);L.appendChild(Re.node),C.id&&Re.node.classList.add(C.id)}else{if((ne=this.helpers.getY1Y2("y2",C))>me){var Xe=me;me=ne,ne=Xe}var qe=this.annoCtx.graphics.drawRect(0+C.offsetX,ne+C.offsetY,this._getYAxisAnnotationWidth(C),me-ne,0,C.fillColor,C.opacity,1,C.borderColor,fe);qe.node.classList.add("apexcharts-annotation-rect"),qe.attr("clip-path","url(#gridRectMask".concat(ue.globals.cuid,")")),L.appendChild(qe.node),C.id&&qe.node.classList.add(C.id)}var Ke=C.label.position==="right"?ue.globals.gridWidth:C.label.position==="center"?ue.globals.gridWidth/2:0,nt=this.annoCtx.graphics.drawText({x:Ke+C.label.offsetX,y:(ne??me)+C.label.offsetY-3,text:Pe,textAnchor:C.label.textAnchor,fontSize:C.label.style.fontSize,fontFamily:C.label.style.fontFamily,fontWeight:C.label.style.fontWeight,foreColor:C.label.style.color,cssClass:"apexcharts-yaxis-annotation-label ".concat(C.label.style.cssClass," ").concat(C.id?C.id:"")});nt.attr({rel:F}),L.appendChild(nt.node)}},{key:"_getYAxisAnnotationWidth",value:function(C){var L=this.w;return L.globals.gridWidth,(C.width.indexOf("%")>-1?L.globals.gridWidth*parseInt(C.width,10)/100:parseInt(C.width,10))+C.offsetX}},{key:"drawYAxisAnnotations",value:function(){var C=this,L=this.w,F=this.annoCtx.graphics.group({class:"apexcharts-yaxis-annotations"});return L.config.annotations.yaxis.map(function(ne,ue){C.addYaxisAnnotation(ne,F.node,ue)}),F}}]),ai}(),ke=function(){function ai(C){I(this,ai),this.w=C.w,this.annoCtx=C,this.helpers=new ze(this.annoCtx)}return M(ai,[{key:"addPointAnnotation",value:function(C,L,F){this.w;var ne=this.helpers.getX1X2("x1",C),ue=this.helpers.getY1Y2("y1",C);if(Y.isNumber(ne)){var fe={pSize:C.marker.size,pointStrokeWidth:C.marker.strokeWidth,pointFillColor:C.marker.fillColor,pointStrokeColor:C.marker.strokeColor,shape:C.marker.shape,pRadius:C.marker.radius,class:"apexcharts-point-annotation-marker ".concat(C.marker.cssClass," ").concat(C.id?C.id:"")},me=this.annoCtx.graphics.drawMarker(ne+C.marker.offsetX,ue+C.marker.offsetY,fe);L.appendChild(me.node);var Pe=C.label.text?C.label.text:"",Re=this.annoCtx.graphics.drawText({x:ne+C.label.offsetX,y:ue+C.label.offsetY-C.marker.size-parseFloat(C.label.style.fontSize)/1.6,text:Pe,textAnchor:C.label.textAnchor,fontSize:C.label.style.fontSize,fontFamily:C.label.style.fontFamily,fontWeight:C.label.style.fontWeight,foreColor:C.label.style.color,cssClass:"apexcharts-point-annotation-label ".concat(C.label.style.cssClass," ").concat(C.id?C.id:"")});if(Re.attr({rel:F}),L.appendChild(Re.node),C.customSVG.SVG){var Xe=this.annoCtx.graphics.group({class:"apexcharts-point-annotations-custom-svg "+C.customSVG.cssClass});Xe.attr({transform:"translate(".concat(ne+C.customSVG.offsetX,", ").concat(ue+C.customSVG.offsetY,")")}),Xe.node.innerHTML=C.customSVG.SVG,L.appendChild(Xe.node)}if(C.image.path){var qe=C.image.width?C.image.width:20,Ke=C.image.height?C.image.height:20;me=this.annoCtx.addImage({x:ne+C.image.offsetX-qe/2,y:ue+C.image.offsetY-Ke/2,width:qe,height:Ke,path:C.image.path,appendTo:".apexcharts-point-annotations"})}C.mouseEnter&&me.node.addEventListener("mouseenter",C.mouseEnter.bind(this,C)),C.mouseLeave&&me.node.addEventListener("mouseleave",C.mouseLeave.bind(this,C)),C.click&&me.node.addEventListener("click",C.click.bind(this,C))}}},{key:"drawPointAnnotations",value:function(){var C=this,L=this.w,F=this.annoCtx.graphics.group({class:"apexcharts-point-annotations"});return L.config.annotations.points.map(function(ne,ue){C.addPointAnnotation(ne,F.node,ue)}),F}}]),ai}(),le={name:"en",options:{months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],toolbar:{exportToSVG:"Download SVG",exportToPNG:"Download PNG",exportToCSV:"Download CSV",menu:"Menu",selection:"Selection",selectionZoom:"Selection Zoom",zoomIn:"Zoom In",zoomOut:"Zoom Out",pan:"Panning",reset:"Reset Zoom"}}},re=function(){function ai(){I(this,ai),this.yAxis={show:!0,showAlways:!1,showForNullSeries:!0,seriesName:void 0,opposite:!1,reversed:!1,logarithmic:!1,logBase:10,tickAmount:void 0,stepSize:void 0,forceNiceScale:!1,max:void 0,min:void 0,floating:!1,decimalsInFloat:void 0,labels:{show:!0,minWidth:0,maxWidth:160,offsetX:0,offsetY:0,align:void 0,rotate:0,padding:20,style:{colors:[],fontSize:"11px",fontWeight:400,fontFamily:void 0,cssClass:""},formatter:void 0},axisBorder:{show:!1,color:"#e0e0e0",width:1,offsetX:0,offsetY:0},axisTicks:{show:!1,color:"#e0e0e0",width:6,offsetX:0,offsetY:0},title:{text:void 0,rotate:-90,offsetY:0,offsetX:0,style:{color:void 0,fontSize:"11px",fontWeight:900,fontFamily:void 0,cssClass:""}},tooltip:{enabled:!1,offsetX:0},crosshairs:{show:!0,position:"front",stroke:{color:"#b6b6b6",width:1,dashArray:0}}},this.pointAnnotation={id:void 0,x:0,y:null,yAxisIndex:0,seriesIndex:void 0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,marker:{size:4,fillColor:"#fff",strokeWidth:2,strokeColor:"#333",shape:"circle",offsetX:0,offsetY:0,radius:2,cssClass:""},label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"middle",offsetX:0,offsetY:0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}},customSVG:{SVG:void 0,cssClass:void 0,offsetX:0,offsetY:0},image:{path:void 0,width:20,height:20,offsetX:0,offsetY:0}},this.yAxisAnnotation={id:void 0,y:0,y2:null,strokeDashArray:1,fillColor:"#c2c2c2",borderColor:"#c2c2c2",borderWidth:1,opacity:.3,offsetX:0,offsetY:0,width:"100%",yAxisIndex:0,label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"end",position:"right",offsetX:0,offsetY:-3,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}}},this.xAxisAnnotation={id:void 0,x:0,x2:null,strokeDashArray:1,fillColor:"#c2c2c2",borderColor:"#c2c2c2",borderWidth:1,opacity:.3,offsetX:0,offsetY:0,label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"middle",orientation:"vertical",position:"top",offsetX:0,offsetY:0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}}},this.text={x:0,y:0,text:"",textAnchor:"start",foreColor:void 0,fontSize:"13px",fontFamily:void 0,fontWeight:400,appendTo:".apexcharts-annotations",backgroundColor:"transparent",borderColor:"#c2c2c2",borderRadius:0,borderWidth:0,paddingLeft:4,paddingRight:4,paddingTop:2,paddingBottom:2}}return M(ai,[{key:"init",value:function(){return{annotations:{yaxis:[this.yAxisAnnotation],xaxis:[this.xAxisAnnotation],points:[this.pointAnnotation],texts:[],images:[],shapes:[]},chart:{animations:{enabled:!0,easing:"easeinout",speed:800,animateGradually:{delay:150,enabled:!0},dynamicAnimation:{enabled:!0,speed:350}},background:"transparent",locales:[le],defaultLocale:"en",dropShadow:{enabled:!1,enabledOnSeries:void 0,top:2,left:2,blur:4,color:"#000",opacity:.35},events:{animationEnd:void 0,beforeMount:void 0,mounted:void 0,updated:void 0,click:void 0,mouseMove:void 0,mouseLeave:void 0,xAxisLabelClick:void 0,legendClick:void 0,markerClick:void 0,selection:void 0,dataPointSelection:void 0,dataPointMouseEnter:void 0,dataPointMouseLeave:void 0,beforeZoom:void 0,beforeResetZoom:void 0,zoomed:void 0,scrolled:void 0,brushScrolled:void 0},foreColor:"#373d3f",fontFamily:"Helvetica, Arial, sans-serif",height:"auto",parentHeightOffset:15,redrawOnParentResize:!0,redrawOnWindowResize:!0,id:void 0,group:void 0,nonce:void 0,offsetX:0,offsetY:0,selection:{enabled:!1,type:"x",fill:{color:"#24292e",opacity:.1},stroke:{width:1,color:"#24292e",opacity:.4,dashArray:3},xaxis:{min:void 0,max:void 0},yaxis:{min:void 0,max:void 0}},sparkline:{enabled:!1},brush:{enabled:!1,autoScaleYaxis:!0,target:void 0,targets:void 0},stacked:!1,stackOnlyBar:!0,stackType:"normal",toolbar:{show:!0,offsetX:0,offsetY:0,tools:{download:!0,selection:!0,zoom:!0,zoomin:!0,zoomout:!0,pan:!0,reset:!0,customIcons:[]},export:{csv:{filename:void 0,columnDelimiter:",",headerCategory:"category",headerValue:"value",dateFormatter:function(C){return new Date(C).toDateString()}},png:{filename:void 0},svg:{filename:void 0}},autoSelected:"zoom"},type:"line",width:"100%",zoom:{enabled:!0,type:"x",autoScaleYaxis:!1,zoomedArea:{fill:{color:"#90CAF9",opacity:.4},stroke:{color:"#0D47A1",opacity:.4,width:1}}}},plotOptions:{area:{fillTo:"origin"},bar:{horizontal:!1,columnWidth:"70%",barHeight:"70%",distributed:!1,borderRadius:0,borderRadiusApplication:"around",borderRadiusWhenStacked:"last",rangeBarOverlap:!0,rangeBarGroupRows:!1,hideZeroBarsWhenGrouped:!1,isDumbbell:!1,dumbbellColors:void 0,isFunnel:!1,isFunnel3d:!0,colors:{ranges:[],backgroundBarColors:[],backgroundBarOpacity:1,backgroundBarRadius:0},dataLabels:{position:"top",maxItems:100,hideOverflowingLabels:!0,orientation:"horizontal",total:{enabled:!1,formatter:void 0,offsetX:0,offsetY:0,style:{color:"#373d3f",fontSize:"12px",fontFamily:void 0,fontWeight:600}}}},bubble:{zScaling:!0,minBubbleRadius:void 0,maxBubbleRadius:void 0},candlestick:{colors:{upward:"#00B746",downward:"#EF403C"},wick:{useFillColor:!0}},boxPlot:{colors:{upper:"#00E396",lower:"#008FFB"}},heatmap:{radius:2,enableShades:!0,shadeIntensity:.5,reverseNegativeShade:!1,distributed:!1,useFillColorAsStroke:!1,colorScale:{inverse:!1,ranges:[],min:void 0,max:void 0}},treemap:{enableShades:!0,shadeIntensity:.5,distributed:!1,reverseNegativeShade:!1,useFillColorAsStroke:!1,borderRadius:4,dataLabels:{format:"scale"},colorScale:{inverse:!1,ranges:[],min:void 0,max:void 0}},radialBar:{inverseOrder:!1,startAngle:0,endAngle:360,offsetX:0,offsetY:0,hollow:{margin:5,size:"50%",background:"transparent",image:void 0,imageWidth:150,imageHeight:150,imageOffsetX:0,imageOffsetY:0,imageClipped:!0,position:"front",dropShadow:{enabled:!1,top:0,left:0,blur:3,color:"#000",opacity:.5}},track:{show:!0,startAngle:void 0,endAngle:void 0,background:"#f2f2f2",strokeWidth:"97%",opacity:1,margin:5,dropShadow:{enabled:!1,top:0,left:0,blur:3,color:"#000",opacity:.5}},dataLabels:{show:!0,name:{show:!0,fontSize:"16px",fontFamily:void 0,fontWeight:600,color:void 0,offsetY:0,formatter:function(C){return C}},value:{show:!0,fontSize:"14px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:16,formatter:function(C){return C+"%"}},total:{show:!1,label:"Total",fontSize:"16px",fontWeight:600,fontFamily:void 0,color:void 0,formatter:function(C){return C.globals.seriesTotals.reduce(function(L,F){return L+F},0)/C.globals.series.length+"%"}}},barLabels:{enabled:!1,margin:5,useSeriesColors:!0,fontFamily:void 0,fontWeight:600,fontSize:"16px",formatter:function(C){return C},onClick:void 0}},pie:{customScale:1,offsetX:0,offsetY:0,startAngle:0,endAngle:360,expandOnClick:!0,dataLabels:{offset:0,minAngleToShowLabel:10},donut:{size:"65%",background:"transparent",labels:{show:!1,name:{show:!0,fontSize:"16px",fontFamily:void 0,fontWeight:600,color:void 0,offsetY:-10,formatter:function(C){return C}},value:{show:!0,fontSize:"20px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:10,formatter:function(C){return C}},total:{show:!1,showAlways:!1,label:"Total",fontSize:"16px",fontWeight:400,fontFamily:void 0,color:void 0,formatter:function(C){return C.globals.seriesTotals.reduce(function(L,F){return L+F},0)}}}}},polarArea:{rings:{strokeWidth:1,strokeColor:"#e8e8e8"},spokes:{strokeWidth:1,connectorColors:"#e8e8e8"}},radar:{size:void 0,offsetX:0,offsetY:0,polygons:{strokeWidth:1,strokeColors:"#e8e8e8",connectorColors:"#e8e8e8",fill:{colors:void 0}}}},colors:void 0,dataLabels:{enabled:!0,enabledOnSeries:void 0,formatter:function(C){return C!==null?C:""},textAnchor:"middle",distributed:!1,offsetX:0,offsetY:0,style:{fontSize:"12px",fontFamily:void 0,fontWeight:600,colors:void 0},background:{enabled:!0,foreColor:"#fff",borderRadius:2,padding:4,opacity:.9,borderWidth:1,borderColor:"#fff",dropShadow:{enabled:!1,top:1,left:1,blur:1,color:"#000",opacity:.45}},dropShadow:{enabled:!1,top:1,left:1,blur:1,color:"#000",opacity:.45}},fill:{type:"solid",colors:void 0,opacity:.85,gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:void 0,inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,50,100],colorStops:[]},image:{src:[],width:void 0,height:void 0},pattern:{style:"squares",width:6,height:6,strokeWidth:2}},forecastDataPoints:{count:0,fillOpacity:.5,strokeWidth:void 0,dashArray:4},grid:{show:!0,borderColor:"#e0e0e0",strokeDashArray:0,position:"back",xaxis:{lines:{show:!1}},yaxis:{lines:{show:!0}},row:{colors:void 0,opacity:.5},column:{colors:void 0,opacity:.5},padding:{top:0,right:10,bottom:0,left:12}},labels:[],legend:{show:!0,showForSingleSeries:!1,showForNullSeries:!0,showForZeroSeries:!0,floating:!1,position:"bottom",horizontalAlign:"center",inverseOrder:!1,fontSize:"12px",fontFamily:void 0,fontWeight:400,width:void 0,height:void 0,formatter:void 0,tooltipHoverFormatter:void 0,offsetX:-20,offsetY:4,customLegendItems:[],labels:{colors:void 0,useSeriesColors:!1},markers:{width:12,height:12,strokeWidth:0,fillColors:void 0,strokeColor:"#fff",radius:12,customHTML:void 0,offsetX:0,offsetY:0,onClick:void 0},itemMargin:{horizontal:5,vertical:2},onItemClick:{toggleDataSeries:!0},onItemHover:{highlightDataSeries:!0}},markers:{discrete:[],size:0,colors:void 0,strokeColors:"#fff",strokeWidth:2,strokeOpacity:.9,strokeDashArray:0,fillOpacity:1,shape:"circle",width:8,height:8,radius:2,offsetX:0,offsetY:0,onClick:void 0,onDblClick:void 0,showNullDataPoints:!0,hover:{size:void 0,sizeOffset:3}},noData:{text:void 0,align:"center",verticalAlign:"middle",offsetX:0,offsetY:0,style:{color:void 0,fontSize:"14px",fontFamily:void 0}},responsive:[],series:void 0,states:{normal:{filter:{type:"none",value:0}},hover:{filter:{type:"lighten",value:.1}},active:{allowMultipleDataPointsSelection:!1,filter:{type:"darken",value:.5}}},title:{text:void 0,align:"left",margin:5,offsetX:0,offsetY:0,floating:!1,style:{fontSize:"14px",fontWeight:900,fontFamily:void 0,color:void 0}},subtitle:{text:void 0,align:"left",margin:5,offsetX:0,offsetY:30,floating:!1,style:{fontSize:"12px",fontWeight:400,fontFamily:void 0,color:void 0}},stroke:{show:!0,curve:"smooth",lineCap:"butt",width:2,colors:void 0,dashArray:0,fill:{type:"solid",colors:void 0,opacity:.85,gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:void 0,inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,50,100],colorStops:[]}}},tooltip:{enabled:!0,enabledOnSeries:void 0,shared:!0,hideEmptySeries:!1,followCursor:!1,intersect:!1,inverseOrder:!1,custom:void 0,fillSeriesColor:!1,theme:"light",cssClass:"",style:{fontSize:"12px",fontFamily:void 0},onDatasetHover:{highlightDataSeries:!1},x:{show:!0,format:"dd MMM",formatter:void 0},y:{formatter:void 0,title:{formatter:function(C){return C?C+": ":""}}},z:{formatter:void 0,title:"Size: "},marker:{show:!0,fillColors:void 0},items:{display:"flex"},fixed:{enabled:!1,position:"topRight",offsetX:0,offsetY:0}},xaxis:{type:"category",categories:[],convertedCatToNumeric:!1,offsetX:0,offsetY:0,overwriteCategories:void 0,labels:{show:!0,rotate:-45,rotateAlways:!1,hideOverlappingLabels:!0,trim:!1,minHeight:void 0,maxHeight:120,showDuplicates:!0,style:{colors:[],fontSize:"12px",fontWeight:400,fontFamily:void 0,cssClass:""},offsetX:0,offsetY:0,format:void 0,formatter:void 0,datetimeUTC:!0,datetimeFormatter:{year:"yyyy",month:"MMM 'yy",day:"dd MMM",hour:"HH:mm",minute:"HH:mm:ss",second:"HH:mm:ss"}},group:{groups:[],style:{colors:[],fontSize:"12px",fontWeight:400,fontFamily:void 0,cssClass:""}},axisBorder:{show:!0,color:"#e0e0e0",width:"100%",height:1,offsetX:0,offsetY:0},axisTicks:{show:!0,color:"#e0e0e0",height:6,offsetX:0,offsetY:0},stepSize:void 0,tickAmount:void 0,tickPlacement:"on",min:void 0,max:void 0,range:void 0,floating:!1,decimalsInFloat:void 0,position:"bottom",title:{text:void 0,offsetX:0,offsetY:0,style:{color:void 0,fontSize:"12px",fontWeight:900,fontFamily:void 0,cssClass:""}},crosshairs:{show:!0,width:1,position:"back",opacity:.9,stroke:{color:"#b6b6b6",width:1,dashArray:3},fill:{type:"solid",color:"#B1B9C4",gradient:{colorFrom:"#D8E3F0",colorTo:"#BED1E6",stops:[0,100],opacityFrom:.4,opacityTo:.5}},dropShadow:{enabled:!1,left:0,top:0,blur:1,opacity:.4}},tooltip:{enabled:!0,offsetY:0,formatter:void 0,style:{fontSize:"12px",fontFamily:void 0}}},yaxis:this.yAxis,theme:{mode:"light",palette:"palette1",monochrome:{enabled:!1,color:"#008FFB",shadeTo:"light",shadeIntensity:.65}}}}}]),ai}(),P=function(){function ai(C){I(this,ai),this.ctx=C,this.w=C.w,this.graphics=new ge(this.ctx),this.w.globals.isBarHorizontal&&(this.invertAxis=!0),this.helpers=new ze(this),this.xAxisAnnotations=new de(this),this.yAxisAnnotations=new Ce(this),this.pointsAnnotations=new ke(this),this.w.globals.isBarHorizontal&&this.w.config.yaxis[0].reversed&&(this.inversedReversedAxis=!0),this.xDivision=this.w.globals.gridWidth/this.w.globals.dataPoints}return M(ai,[{key:"drawAxesAnnotations",value:function(){var C=this.w;if(C.globals.axisCharts){for(var L=this.yAxisAnnotations.drawYAxisAnnotations(),F=this.xAxisAnnotations.drawXAxisAnnotations(),ne=this.pointsAnnotations.drawPointAnnotations(),ue=C.config.chart.animations.enabled,fe=[L,F,ne],me=[F.node,L.node,ne.node],Pe=0;Pe<3;Pe++)C.globals.dom.elGraphical.add(fe[Pe]),!ue||C.globals.resized||C.globals.dataChanged||C.config.chart.type!=="scatter"&&C.config.chart.type!=="bubble"&&C.globals.dataPoints>1&&me[Pe].classList.add("apexcharts-element-hidden"),C.globals.delayedElements.push({el:me[Pe],index:0});this.helpers.annotationsBackground()}}},{key:"drawImageAnnos",value:function(){var C=this;this.w.config.annotations.images.map(function(L,F){C.addImage(L,F)})}},{key:"drawTextAnnos",value:function(){var C=this;this.w.config.annotations.texts.map(function(L,F){C.addText(L,F)})}},{key:"addXaxisAnnotation",value:function(C,L,F){this.xAxisAnnotations.addXaxisAnnotation(C,L,F)}},{key:"addYaxisAnnotation",value:function(C,L,F){this.yAxisAnnotations.addYaxisAnnotation(C,L,F)}},{key:"addPointAnnotation",value:function(C,L,F){this.pointsAnnotations.addPointAnnotation(C,L,F)}},{key:"addText",value:function(C,L){var F=C.x,ne=C.y,ue=C.text,fe=C.textAnchor,me=C.foreColor,Pe=C.fontSize,Re=C.fontFamily,Xe=C.fontWeight,qe=C.cssClass,Ke=C.backgroundColor,nt=C.borderWidth,It=C.strokeDashArray,Tt=C.borderRadius,ni=C.borderColor,fi=C.appendTo,gi=fi===void 0?".apexcharts-svg":fi,je=C.paddingLeft,it=je===void 0?4:je,Ct=C.paddingRight,si=Ct===void 0?4:Ct,di=C.paddingBottom,yi=di===void 0?2:di,nM=C.paddingTop,iM=nM===void 0?2:nM,mM=this.w,EM=this.graphics.drawText({x:F,y:ne,text:ue,textAnchor:fe||"start",fontSize:Pe||"12px",fontWeight:Xe||"regular",fontFamily:Re||mM.config.chart.fontFamily,foreColor:me||mM.config.chart.foreColor,cssClass:qe}),wM=mM.globals.dom.baseEl.querySelector(gi);wM&&wM.appendChild(EM.node);var GM=EM.bbox();if(ue){var qM=this.graphics.drawRect(GM.x-it,GM.y-iM,GM.width+it+si,GM.height+yi+iM,Tt,Ke||"transparent",1,nt,ni,It);wM.insertBefore(qM.node,EM.node)}}},{key:"addImage",value:function(C,L){var F=this.w,ne=C.path,ue=C.x,fe=ue===void 0?0:ue,me=C.y,Pe=me===void 0?0:me,Re=C.width,Xe=Re===void 0?20:Re,qe=C.height,Ke=qe===void 0?20:qe,nt=C.appendTo,It=nt===void 0?".apexcharts-svg":nt,Tt=F.globals.dom.Paper.image(ne);Tt.size(Xe,Ke).move(fe,Pe);var ni=F.globals.dom.baseEl.querySelector(It);return ni&&ni.appendChild(Tt.node),Tt}},{key:"addXaxisAnnotationExternal",value:function(C,L,F){return this.addAnnotationExternal({params:C,pushToMemory:L,context:F,type:"xaxis",contextMethod:F.addXaxisAnnotation}),F}},{key:"addYaxisAnnotationExternal",value:function(C,L,F){return this.addAnnotationExternal({params:C,pushToMemory:L,context:F,type:"yaxis",contextMethod:F.addYaxisAnnotation}),F}},{key:"addPointAnnotationExternal",value:function(C,L,F){return this.invertAxis===void 0&&(this.invertAxis=F.w.globals.isBarHorizontal),this.addAnnotationExternal({params:C,pushToMemory:L,context:F,type:"point",contextMethod:F.addPointAnnotation}),F}},{key:"addAnnotationExternal",value:function(C){var L=C.params,F=C.pushToMemory,ne=C.context,ue=C.type,fe=C.contextMethod,me=ne,Pe=me.w,Re=Pe.globals.dom.baseEl.querySelector(".apexcharts-".concat(ue,"-annotations")),Xe=Re.childNodes.length+1,qe=new re,Ke=Object.assign({},ue==="xaxis"?qe.xAxisAnnotation:ue==="yaxis"?qe.yAxisAnnotation:qe.pointAnnotation),nt=Y.extend(Ke,L);switch(ue){case"xaxis":this.addXaxisAnnotation(nt,Re,Xe);break;case"yaxis":this.addYaxisAnnotation(nt,Re,Xe);break;case"point":this.addPointAnnotation(nt,Re,Xe)}var It=Pe.globals.dom.baseEl.querySelector(".apexcharts-".concat(ue,"-annotations .apexcharts-").concat(ue,"-annotation-label[rel='").concat(Xe,"']")),Tt=this.helpers.addBackgroundToAnno(It,nt);return Tt&&Re.insertBefore(Tt.node,It),F&&Pe.globals.memory.methodsToExec.push({context:me,id:nt.id?nt.id:Y.randomId(),method:fe,label:"addAnnotation",params:L}),ne}},{key:"clearAnnotations",value:function(C){var L=C.w,F=L.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis-annotations, .apexcharts-xaxis-annotations, .apexcharts-point-annotations");L.globals.memory.methodsToExec.map(function(ne,ue){ne.label!=="addText"&&ne.label!=="addAnnotation"||L.globals.memory.methodsToExec.splice(ue,1)}),F=Y.listToArray(F),Array.prototype.forEach.call(F,function(ne){for(;ne.firstChild;)ne.removeChild(ne.firstChild)})}},{key:"removeAnnotation",value:function(C,L){var F=C.w,ne=F.globals.dom.baseEl.querySelectorAll(".".concat(L));ne&&(F.globals.memory.methodsToExec.map(function(ue,fe){ue.id===L&&F.globals.memory.methodsToExec.splice(fe,1)}),Array.prototype.forEach.call(ne,function(ue){ue.parentElement.removeChild(ue)}))}}]),ai}(),k=function(){function ai(C){I(this,ai),this.ctx=C,this.w=C.w,this.months31=[1,3,5,7,8,10,12],this.months30=[2,4,6,9,11],this.daysCntOfYear=[0,31,59,90,120,151,181,212,243,273,304,334]}return M(ai,[{key:"isValidDate",value:function(C){return typeof C!="number"&&!isNaN(this.parseDate(C))}},{key:"getTimeStamp",value:function(C){return Date.parse(C)?this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(C).toISOString().substr(0,25)).getTime():new Date(C).getTime():C}},{key:"getDate",value:function(C){return this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(C).toUTCString()):new Date(C)}},{key:"parseDate",value:function(C){var L=Date.parse(C);if(!isNaN(L))return this.getTimeStamp(C);var F=Date.parse(C.replace(/-/g,"/").replace(/[a-z]+/gi," "));return F=this.getTimeStamp(F)}},{key:"parseDateWithTimezone",value:function(C){return Date.parse(C.replace(/-/g,"/").replace(/[a-z]+/gi," "))}},{key:"formatDate",value:function(C,L){var F=this.w.globals.locale,ne=this.w.config.xaxis.labels.datetimeUTC,ue=["\0"].concat(W(F.months)),fe=[""].concat(W(F.shortMonths)),me=[""].concat(W(F.days)),Pe=[""].concat(W(F.shortDays));function Re(yi,nM){var iM=yi+"";for(nM=nM||2;iM.length<nM;)iM="0"+iM;return iM}var Xe=ne?C.getUTCFullYear():C.getFullYear();L=(L=(L=L.replace(/(^|[^\\])yyyy+/g,"$1"+Xe)).replace(/(^|[^\\])yy/g,"$1"+Xe.toString().substr(2,2))).replace(/(^|[^\\])y/g,"$1"+Xe);var qe=(ne?C.getUTCMonth():C.getMonth())+1;L=(L=(L=(L=L.replace(/(^|[^\\])MMMM+/g,"$1"+ue[0])).replace(/(^|[^\\])MMM/g,"$1"+fe[0])).replace(/(^|[^\\])MM/g,"$1"+Re(qe))).replace(/(^|[^\\])M/g,"$1"+qe);var Ke=ne?C.getUTCDate():C.getDate();L=(L=(L=(L=L.replace(/(^|[^\\])dddd+/g,"$1"+me[0])).replace(/(^|[^\\])ddd/g,"$1"+Pe[0])).replace(/(^|[^\\])dd/g,"$1"+Re(Ke))).replace(/(^|[^\\])d/g,"$1"+Ke);var nt=ne?C.getUTCHours():C.getHours(),It=nt>12?nt-12:nt===0?12:nt;L=(L=(L=(L=L.replace(/(^|[^\\])HH+/g,"$1"+Re(nt))).replace(/(^|[^\\])H/g,"$1"+nt)).replace(/(^|[^\\])hh+/g,"$1"+Re(It))).replace(/(^|[^\\])h/g,"$1"+It);var Tt=ne?C.getUTCMinutes():C.getMinutes();L=(L=L.replace(/(^|[^\\])mm+/g,"$1"+Re(Tt))).replace(/(^|[^\\])m/g,"$1"+Tt);var ni=ne?C.getUTCSeconds():C.getSeconds();L=(L=L.replace(/(^|[^\\])ss+/g,"$1"+Re(ni))).replace(/(^|[^\\])s/g,"$1"+ni);var fi=ne?C.getUTCMilliseconds():C.getMilliseconds();L=L.replace(/(^|[^\\])fff+/g,"$1"+Re(fi,3)),fi=Math.round(fi/10),L=L.replace(/(^|[^\\])ff/g,"$1"+Re(fi)),fi=Math.round(fi/10);var gi=nt<12?"AM":"PM";L=(L=(L=L.replace(/(^|[^\\])f/g,"$1"+fi)).replace(/(^|[^\\])TT+/g,"$1"+gi)).replace(/(^|[^\\])T/g,"$1"+gi.charAt(0));var je=gi.toLowerCase();L=(L=L.replace(/(^|[^\\])tt+/g,"$1"+je)).replace(/(^|[^\\])t/g,"$1"+je.charAt(0));var it=-C.getTimezoneOffset(),Ct=ne||!it?"Z":it>0?"+":"-";if(!ne){var si=(it=Math.abs(it))%60;Ct+=Re(Math.floor(it/60))+":"+Re(si)}L=L.replace(/(^|[^\\])K/g,"$1"+Ct);var di=(ne?C.getUTCDay():C.getDay())+1;return L=(L=(L=(L=(L=L.replace(new RegExp(me[0],"g"),me[di])).replace(new RegExp(Pe[0],"g"),Pe[di])).replace(new RegExp(ue[0],"g"),ue[qe])).replace(new RegExp(fe[0],"g"),fe[qe])).replace(/\\(.)/g,"$1")}},{key:"getTimeUnitsfromTimestamp",value:function(C,L,F){var ne=this.w;ne.config.xaxis.min!==void 0&&(C=ne.config.xaxis.min),ne.config.xaxis.max!==void 0&&(L=ne.config.xaxis.max);var ue=this.getDate(C),fe=this.getDate(L),me=this.formatDate(ue,"yyyy MM dd HH mm ss fff").split(" "),Pe=this.formatDate(fe,"yyyy MM dd HH mm ss fff").split(" ");return{minMillisecond:parseInt(me[6],10),maxMillisecond:parseInt(Pe[6],10),minSecond:parseInt(me[5],10),maxSecond:parseInt(Pe[5],10),minMinute:parseInt(me[4],10),maxMinute:parseInt(Pe[4],10),minHour:parseInt(me[3],10),maxHour:parseInt(Pe[3],10),minDate:parseInt(me[2],10),maxDate:parseInt(Pe[2],10),minMonth:parseInt(me[1],10)-1,maxMonth:parseInt(Pe[1],10)-1,minYear:parseInt(me[0],10),maxYear:parseInt(Pe[0],10)}}},{key:"isLeapYear",value:function(C){return C%4==0&&C%100!=0||C%400==0}},{key:"calculcateLastDaysOfMonth",value:function(C,L,F){return this.determineDaysOfMonths(C,L)-F}},{key:"determineDaysOfYear",value:function(C){var L=365;return this.isLeapYear(C)&&(L=366),L}},{key:"determineRemainingDaysOfYear",value:function(C,L,F){var ne=this.daysCntOfYear[L]+F;return L>1&&this.isLeapYear()&&ne++,ne}},{key:"determineDaysOfMonths",value:function(C,L){var F=30;switch(C=Y.monthMod(C),!0){case this.months30.indexOf(C)>-1:C===2&&(F=this.isLeapYear(L)?29:28);break;case this.months31.indexOf(C)>-1:default:F=31}return F}}]),ai}(),B=function(){function ai(C){I(this,ai),this.ctx=C,this.w=C.w,this.tooltipKeyFormat="dd MMM"}return M(ai,[{key:"xLabelFormat",value:function(C,L,F,ne){var ue=this.w;if(ue.config.xaxis.type==="datetime"&&ue.config.xaxis.labels.formatter===void 0&&ue.config.tooltip.x.formatter===void 0){var fe=new k(this.ctx);return fe.formatDate(fe.getDate(L),ue.config.tooltip.x.format)}return C(L,F,ne)}},{key:"defaultGeneralFormatter",value:function(C){return Array.isArray(C)?C.map(function(L){return L}):C}},{key:"defaultYFormatter",value:function(C,L,F){var ne=this.w;return Y.isNumber(C)&&(C=ne.globals.yValueDecimal!==0?C.toFixed(L.decimalsInFloat!==void 0?L.decimalsInFloat:ne.globals.yValueDecimal):ne.globals.maxYArr[F]-ne.globals.minYArr[F]<5?C.toFixed(1):C.toFixed(0)),C}},{key:"setLabelFormatters",value:function(){var C=this,L=this.w;return L.globals.xaxisTooltipFormatter=function(F){return C.defaultGeneralFormatter(F)},L.globals.ttKeyFormatter=function(F){return C.defaultGeneralFormatter(F)},L.globals.ttZFormatter=function(F){return F},L.globals.legendFormatter=function(F){return C.defaultGeneralFormatter(F)},L.config.xaxis.labels.formatter!==void 0?L.globals.xLabelFormatter=L.config.xaxis.labels.formatter:L.globals.xLabelFormatter=function(F){if(Y.isNumber(F)){if(!L.config.xaxis.convertedCatToNumeric&&L.config.xaxis.type==="numeric"){if(Y.isNumber(L.config.xaxis.decimalsInFloat))return F.toFixed(L.config.xaxis.decimalsInFloat);var ne=L.globals.maxX-L.globals.minX;return ne>0&&ne<100?F.toFixed(1):F.toFixed(0)}return L.globals.isBarHorizontal&&L.globals.maxY-L.globals.minYArr<4?F.toFixed(1):F.toFixed(0)}return F},typeof L.config.tooltip.x.formatter=="function"?L.globals.ttKeyFormatter=L.config.tooltip.x.formatter:L.globals.ttKeyFormatter=L.globals.xLabelFormatter,typeof L.config.xaxis.tooltip.formatter=="function"&&(L.globals.xaxisTooltipFormatter=L.config.xaxis.tooltip.formatter),(Array.isArray(L.config.tooltip.y)||L.config.tooltip.y.formatter!==void 0)&&(L.globals.ttVal=L.config.tooltip.y),L.config.tooltip.z.formatter!==void 0&&(L.globals.ttZFormatter=L.config.tooltip.z.formatter),L.config.legend.formatter!==void 0&&(L.globals.legendFormatter=L.config.legend.formatter),L.config.yaxis.forEach(function(F,ne){F.labels.formatter!==void 0?L.globals.yLabelFormatters[ne]=F.labels.formatter:L.globals.yLabelFormatters[ne]=function(ue){return L.globals.xyCharts?Array.isArray(ue)?ue.map(function(fe){return C.defaultYFormatter(fe,F,ne)}):C.defaultYFormatter(ue,F,ne):ue}}),L.globals}},{key:"heatmapLabelFormatters",value:function(){var C=this.w;if(C.config.chart.type==="heatmap"){C.globals.yAxisScale[0].result=C.globals.seriesNames.slice();var L=C.globals.seriesNames.reduce(function(F,ne){return F.length>ne.length?F:ne},0);C.globals.yAxisScale[0].niceMax=L,C.globals.yAxisScale[0].niceMin=L}}}]),ai}(),z=function(ai){var C,L=ai.isTimeline,F=ai.ctx,ne=ai.seriesIndex,ue=ai.dataPointIndex,fe=ai.y1,me=ai.y2,Pe=ai.w,Re=Pe.globals.seriesRangeStart[ne][ue],Xe=Pe.globals.seriesRangeEnd[ne][ue],qe=Pe.globals.labels[ue],Ke=Pe.config.series[ne].name?Pe.config.series[ne].name:"",nt=Pe.globals.ttKeyFormatter,It=Pe.config.tooltip.y.title.formatter,Tt={w:Pe,seriesIndex:ne,dataPointIndex:ue,start:Re,end:Xe};typeof It=="function"&&(Ke=It(Ke,Tt)),(C=Pe.config.series[ne].data[ue])!==null&&C!==void 0&&C.x&&(qe=Pe.config.series[ne].data[ue].x),L||Pe.config.xaxis.type==="datetime"&&(qe=new B(F).xLabelFormat(Pe.globals.ttKeyFormatter,qe,qe,{i:void 0,dateFormatter:new k(F).formatDate,w:Pe})),typeof nt=="function"&&(qe=nt(qe,Tt)),Number.isFinite(fe)&&Number.isFinite(me)&&(Re=fe,Xe=me);var ni="",fi="",gi=Pe.globals.colors[ne];if(Pe.config.tooltip.x.formatter===void 0)if(Pe.config.xaxis.type==="datetime"){var je=new k(F);ni=je.formatDate(je.getDate(Re),Pe.config.tooltip.x.format),fi=je.formatDate(je.getDate(Xe),Pe.config.tooltip.x.format)}else ni=Re,fi=Xe;else ni=Pe.config.tooltip.x.formatter(Re),fi=Pe.config.tooltip.x.formatter(Xe);return{start:Re,end:Xe,startVal:ni,endVal:fi,ylabel:qe,color:gi,seriesName:Ke}},ee=function(ai){var C=ai.color,L=ai.seriesName,F=ai.ylabel,ne=ai.start,ue=ai.end,fe=ai.seriesIndex,me=ai.dataPointIndex,Pe=ai.ctx.tooltip.tooltipLabels.getFormatters(fe);ne=Pe.yLbFormatter(ne),ue=Pe.yLbFormatter(ue);var Re=Pe.yLbFormatter(ai.w.globals.series[fe][me]),Xe=`<span class="value start-value">
  `.concat(ne,`
  </span> <span class="separator">-</span> <span class="value end-value">
  `).concat(ue,`
  </span>`);return'<div class="apexcharts-tooltip-rangebar"><div> <span class="series-name" style="color: '+C+'">'+(L||"")+'</span></div><div> <span class="category">'+F+": </span> "+(ai.w.globals.comboCharts?ai.w.config.series[fe].type==="rangeArea"||ai.w.config.series[fe].type==="rangeBar"?Xe:"<span>".concat(Re,"</span>"):Xe)+" </div></div>"},H=function(){function ai(C){I(this,ai),this.opts=C}return M(ai,[{key:"hideYAxis",value:function(){this.opts.yaxis[0].show=!1,this.opts.yaxis[0].title.text="",this.opts.yaxis[0].axisBorder.show=!1,this.opts.yaxis[0].axisTicks.show=!1,this.opts.yaxis[0].floating=!0}},{key:"line",value:function(){return{chart:{animations:{easing:"swing"}},dataLabels:{enabled:!1},stroke:{width:5,curve:"straight"},markers:{size:0,hover:{sizeOffset:6}},xaxis:{crosshairs:{width:1}}}}},{key:"sparkline",value:function(C){return this.hideYAxis(),Y.extend(C,{grid:{show:!1,padding:{left:0,right:0,top:0,bottom:0}},legend:{show:!1},xaxis:{labels:{show:!1},tooltip:{enabled:!1},axisBorder:{show:!1},axisTicks:{show:!1}},chart:{toolbar:{show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!1}})}},{key:"bar",value:function(){return{chart:{stacked:!1,animations:{easing:"swing"}},plotOptions:{bar:{dataLabels:{position:"center"}}},dataLabels:{style:{colors:["#fff"]},background:{enabled:!1}},stroke:{width:0,lineCap:"round"},fill:{opacity:.85},legend:{markers:{shape:"square",radius:2,size:8}},tooltip:{shared:!1,intersect:!0},xaxis:{tooltip:{enabled:!1},tickPlacement:"between",crosshairs:{width:"barWidth",position:"back",fill:{type:"gradient"},dropShadow:{enabled:!1},stroke:{width:0}}}}}},{key:"funnel",value:function(){return this.hideYAxis(),_(_({},this.bar()),{},{chart:{animations:{easing:"linear",speed:800,animateGradually:{enabled:!1}}},plotOptions:{bar:{horizontal:!0,borderRadiusApplication:"around",borderRadius:0,dataLabels:{position:"center"}}},grid:{show:!1,padding:{left:0,right:0}},xaxis:{labels:{show:!1},tooltip:{enabled:!1},axisBorder:{show:!1},axisTicks:{show:!1}}})}},{key:"candlestick",value:function(){var C=this;return{stroke:{width:1,colors:["#333"]},fill:{opacity:1},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(L){var F=L.seriesIndex,ne=L.dataPointIndex,ue=L.w;return C._getBoxTooltip(ue,F,ne,["Open","High","","Low","Close"],"candlestick")}},states:{active:{filter:{type:"none"}}},xaxis:{crosshairs:{width:1}}}}},{key:"boxPlot",value:function(){var C=this;return{chart:{animations:{dynamicAnimation:{enabled:!1}}},stroke:{width:1,colors:["#24292e"]},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(L){var F=L.seriesIndex,ne=L.dataPointIndex,ue=L.w;return C._getBoxTooltip(ue,F,ne,["Minimum","Q1","Median","Q3","Maximum"],"boxPlot")}},markers:{size:5,strokeWidth:1,strokeColors:"#111"},xaxis:{crosshairs:{width:1}}}}},{key:"rangeBar",value:function(){return{chart:{animations:{animateGradually:!1}},stroke:{width:0,lineCap:"square"},plotOptions:{bar:{borderRadius:0,dataLabels:{position:"center"}}},dataLabels:{enabled:!1,formatter:function(C,L){L.ctx;var F=L.seriesIndex,ne=L.dataPointIndex,ue=L.w,fe=function(){var me=ue.globals.seriesRangeStart[F][ne];return ue.globals.seriesRangeEnd[F][ne]-me};return ue.globals.comboCharts?ue.config.series[F].type==="rangeBar"||ue.config.series[F].type==="rangeArea"?fe():C:fe()},background:{enabled:!1},style:{colors:["#fff"]}},markers:{size:10},tooltip:{shared:!1,followCursor:!0,custom:function(C){return C.w.config.plotOptions&&C.w.config.plotOptions.bar&&C.w.config.plotOptions.bar.horizontal?function(L){var F=z(_(_({},L),{},{isTimeline:!0})),ne=F.color,ue=F.seriesName,fe=F.ylabel,me=F.startVal,Pe=F.endVal;return ee(_(_({},L),{},{color:ne,seriesName:ue,ylabel:fe,start:me,end:Pe}))}(C):function(L){var F=z(L),ne=F.color,ue=F.seriesName,fe=F.ylabel,me=F.start,Pe=F.end;return ee(_(_({},L),{},{color:ne,seriesName:ue,ylabel:fe,start:me,end:Pe}))}(C)}},xaxis:{tickPlacement:"between",tooltip:{enabled:!1},crosshairs:{stroke:{width:0}}}}}},{key:"dumbbell",value:function(C){var L,F;return(L=C.plotOptions.bar)!==null&&L!==void 0&&L.barHeight||(C.plotOptions.bar.barHeight=2),(F=C.plotOptions.bar)!==null&&F!==void 0&&F.columnWidth||(C.plotOptions.bar.columnWidth=2),C}},{key:"area",value:function(){return{stroke:{width:4,fill:{type:"solid",gradient:{inverseColors:!1,shade:"light",type:"vertical",opacityFrom:.65,opacityTo:.5,stops:[0,100,100]}}},fill:{type:"gradient",gradient:{inverseColors:!1,shade:"light",type:"vertical",opacityFrom:.65,opacityTo:.5,stops:[0,100,100]}},markers:{size:0,hover:{sizeOffset:6}},tooltip:{followCursor:!1}}}},{key:"rangeArea",value:function(){return{stroke:{curve:"straight",width:0},fill:{type:"solid",opacity:.6},markers:{size:0},states:{hover:{filter:{type:"none"}},active:{filter:{type:"none"}}},tooltip:{intersect:!1,shared:!0,followCursor:!0,custom:function(C){return function(L){var F=z(L),ne=F.color,ue=F.seriesName,fe=F.ylabel,me=F.start,Pe=F.end;return ee(_(_({},L),{},{color:ne,seriesName:ue,ylabel:fe,start:me,end:Pe}))}(C)}}}}},{key:"brush",value:function(C){return Y.extend(C,{chart:{toolbar:{autoSelected:"selection",show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!1},stroke:{width:1},tooltip:{enabled:!1},xaxis:{tooltip:{enabled:!1}}})}},{key:"stacked100",value:function(C){C.dataLabels=C.dataLabels||{},C.dataLabels.formatter=C.dataLabels.formatter||void 0;var L=C.dataLabels.formatter;return C.yaxis.forEach(function(F,ne){C.yaxis[ne].min=0,C.yaxis[ne].max=100}),C.chart.type==="bar"&&(C.dataLabels.formatter=L||function(F){return typeof F=="number"&&F?F.toFixed(0)+"%":F}),C}},{key:"stackedBars",value:function(){var C=this.bar();return _(_({},C),{},{plotOptions:_(_({},C.plotOptions),{},{bar:_(_({},C.plotOptions.bar),{},{borderRadiusApplication:"end",borderRadiusWhenStacked:"last"})})})}},{key:"convertCatToNumeric",value:function(C){return C.xaxis.convertedCatToNumeric=!0,C}},{key:"convertCatToNumericXaxis",value:function(C,L,F){C.xaxis.type="numeric",C.xaxis.labels=C.xaxis.labels||{},C.xaxis.labels.formatter=C.xaxis.labels.formatter||function(fe){return Y.isNumber(fe)?Math.floor(fe):fe};var ne=C.xaxis.labels.formatter,ue=C.xaxis.categories&&C.xaxis.categories.length?C.xaxis.categories:C.labels;return F&&F.length&&(ue=F.map(function(fe){return Array.isArray(fe)?fe:String(fe)})),ue&&ue.length&&(C.xaxis.labels.formatter=function(fe){return Y.isNumber(fe)?ne(ue[Math.floor(fe)-1]):ne(fe)}),C.xaxis.categories=[],C.labels=[],C.xaxis.tickAmount=C.xaxis.tickAmount||"dataPoints",C}},{key:"bubble",value:function(){return{dataLabels:{style:{colors:["#fff"]}},tooltip:{shared:!1,intersect:!0},xaxis:{crosshairs:{width:0}},fill:{type:"solid",gradient:{shade:"light",inverse:!0,shadeIntensity:.55,opacityFrom:.4,opacityTo:.8}}}}},{key:"scatter",value:function(){return{dataLabels:{enabled:!1},tooltip:{shared:!1,intersect:!0},markers:{size:6,strokeWidth:1,hover:{sizeOffset:2}}}}},{key:"heatmap",value:function(){return{chart:{stacked:!1},fill:{opacity:1},dataLabels:{style:{colors:["#fff"]}},stroke:{colors:["#fff"]},tooltip:{followCursor:!0,marker:{show:!1},x:{show:!1}},legend:{position:"top",markers:{shape:"square",size:10,offsetY:2}},grid:{padding:{right:20}}}}},{key:"treemap",value:function(){return{chart:{zoom:{enabled:!1}},dataLabels:{style:{fontSize:14,fontWeight:600,colors:["#fff"]}},stroke:{show:!0,width:2,colors:["#fff"]},legend:{show:!1},fill:{gradient:{stops:[0,100]}},tooltip:{followCursor:!0,x:{show:!1}},grid:{padding:{left:0,right:0}},xaxis:{crosshairs:{show:!1},tooltip:{enabled:!1}}}}},{key:"pie",value:function(){return{chart:{toolbar:{show:!1}},plotOptions:{pie:{donut:{labels:{show:!1}}}},dataLabels:{formatter:function(C){return C.toFixed(1)+"%"},style:{colors:["#fff"]},background:{enabled:!1},dropShadow:{enabled:!0}},stroke:{colors:["#fff"]},fill:{opacity:1,gradient:{shade:"light",stops:[0,100]}},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"}}}},{key:"donut",value:function(){return{chart:{toolbar:{show:!1}},dataLabels:{formatter:function(C){return C.toFixed(1)+"%"},style:{colors:["#fff"]},background:{enabled:!1},dropShadow:{enabled:!0}},stroke:{colors:["#fff"]},fill:{opacity:1,gradient:{shade:"light",shadeIntensity:.35,stops:[80,100],opacityFrom:1,opacityTo:1}},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"}}}},{key:"polarArea",value:function(){return this.opts.yaxis[0].tickAmount=this.opts.yaxis[0].tickAmount?this.opts.yaxis[0].tickAmount:6,{chart:{toolbar:{show:!1}},dataLabels:{formatter:function(C){return C.toFixed(1)+"%"},enabled:!1},stroke:{show:!0,width:2},fill:{opacity:.7},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"}}}},{key:"radar",value:function(){return this.opts.yaxis[0].labels.offsetY=this.opts.yaxis[0].labels.offsetY?this.opts.yaxis[0].labels.offsetY:6,{dataLabels:{enabled:!1,style:{fontSize:"11px"}},stroke:{width:2},markers:{size:3,strokeWidth:1,strokeOpacity:1},fill:{opacity:.2},tooltip:{shared:!1,intersect:!0,followCursor:!0},grid:{show:!1},xaxis:{labels:{formatter:function(C){return C},style:{colors:["#a8a8a8"],fontSize:"11px"}},tooltip:{enabled:!1},crosshairs:{show:!1}}}}},{key:"radialBar",value:function(){return{chart:{animations:{dynamicAnimation:{enabled:!0,speed:800}},toolbar:{show:!1}},fill:{gradient:{shade:"dark",shadeIntensity:.4,inverseColors:!1,type:"diagonal2",opacityFrom:1,opacityTo:1,stops:[70,98,100]}},legend:{show:!1,position:"right"},tooltip:{enabled:!1,fillSeriesColor:!0}}}},{key:"_getBoxTooltip",value:function(C,L,F,ne,ue){var fe=C.globals.seriesCandleO[L][F],me=C.globals.seriesCandleH[L][F],Pe=C.globals.seriesCandleM[L][F],Re=C.globals.seriesCandleL[L][F],Xe=C.globals.seriesCandleC[L][F];return C.config.series[L].type&&C.config.series[L].type!==ue?`<div class="apexcharts-custom-tooltip">
          `.concat(C.config.series[L].name?C.config.series[L].name:"series-"+(L+1),": <strong>").concat(C.globals.series[L][F],`</strong>
        </div>`):'<div class="apexcharts-tooltip-box apexcharts-tooltip-'.concat(C.config.chart.type,'">')+"<div>".concat(ne[0],': <span class="value">')+fe+"</span></div>"+"<div>".concat(ne[1],': <span class="value">')+me+"</span></div>"+(Pe?"<div>".concat(ne[2],': <span class="value">')+Pe+"</span></div>":"")+"<div>".concat(ne[3],': <span class="value">')+Re+"</span></div>"+"<div>".concat(ne[4],': <span class="value">')+Xe+"</span></div></div>"}}]),ai}(),q=function(){function ai(C){I(this,ai),this.opts=C}return M(ai,[{key:"init",value:function(C){var L=C.responsiveOverride,F=this.opts,ne=new re,ue=new H(F);this.chartType=F.chart.type,F=this.extendYAxis(F),F=this.extendAnnotations(F);var fe=ne.init(),me={};if(F&&x(F)==="object"){var Pe,Re,Xe,qe,Ke,nt,It,Tt,ni={};ni=["line","area","bar","candlestick","boxPlot","rangeBar","rangeArea","bubble","scatter","heatmap","treemap","pie","polarArea","donut","radar","radialBar"].indexOf(F.chart.type)!==-1?ue[F.chart.type]():ue.line(),(Pe=F.plotOptions)!==null&&Pe!==void 0&&(Re=Pe.bar)!==null&&Re!==void 0&&Re.isFunnel&&(ni=ue.funnel()),F.chart.stacked&&F.chart.type==="bar"&&(ni=ue.stackedBars()),(Xe=F.chart.brush)!==null&&Xe!==void 0&&Xe.enabled&&(ni=ue.brush(ni)),F.chart.stacked&&F.chart.stackType==="100%"&&(F=ue.stacked100(F)),(qe=F.plotOptions)!==null&&qe!==void 0&&(Ke=qe.bar)!==null&&Ke!==void 0&&Ke.isDumbbell&&(F=ue.dumbbell(F)),this.checkForDarkTheme(window.Apex),this.checkForDarkTheme(F),F.xaxis=F.xaxis||window.Apex.xaxis||{},L||(F.xaxis.convertedCatToNumeric=!1),((nt=(F=this.checkForCatToNumericXAxis(this.chartType,ni,F)).chart.sparkline)!==null&&nt!==void 0&&nt.enabled||(It=window.Apex.chart)!==null&&It!==void 0&&(Tt=It.sparkline)!==null&&Tt!==void 0&&Tt.enabled)&&(ni=ue.sparkline(ni)),me=Y.extend(fe,ni)}var fi=Y.extend(me,window.Apex);return fe=Y.extend(fi,F),fe=this.handleUserInputErrors(fe)}},{key:"checkForCatToNumericXAxis",value:function(C,L,F){var ne,ue,fe=new H(F),me=(C==="bar"||C==="boxPlot")&&((ne=F.plotOptions)===null||ne===void 0||(ue=ne.bar)===null||ue===void 0?void 0:ue.horizontal),Pe=C==="pie"||C==="polarArea"||C==="donut"||C==="radar"||C==="radialBar"||C==="heatmap",Re=F.xaxis.type!=="datetime"&&F.xaxis.type!=="numeric",Xe=F.xaxis.tickPlacement?F.xaxis.tickPlacement:L.xaxis&&L.xaxis.tickPlacement;return me||Pe||!Re||Xe==="between"||(F=fe.convertCatToNumeric(F)),F}},{key:"extendYAxis",value:function(C,L){var F=new re;(C.yaxis===void 0||!C.yaxis||Array.isArray(C.yaxis)&&C.yaxis.length===0)&&(C.yaxis={}),C.yaxis.constructor!==Array&&window.Apex.yaxis&&window.Apex.yaxis.constructor!==Array&&(C.yaxis=Y.extend(C.yaxis,window.Apex.yaxis)),C.yaxis.constructor!==Array?C.yaxis=[Y.extend(F.yAxis,C.yaxis)]:C.yaxis=Y.extendArray(C.yaxis,F.yAxis);var ne=!1;C.yaxis.forEach(function(fe){fe.logarithmic&&(ne=!0)});var ue=C.series;return L&&!ue&&(ue=L.config.series),ne&&ue.length!==C.yaxis.length&&ue.length&&(C.yaxis=ue.map(function(fe,me){if(fe.name||(ue[me].name="series-".concat(me+1)),C.yaxis[me])return C.yaxis[me].seriesName=ue[me].name,C.yaxis[me];var Pe=Y.extend(F.yAxis,C.yaxis[0]);return Pe.show=!1,Pe})),ne&&ue.length>1&&ue.length!==C.yaxis.length&&console.warn("A multi-series logarithmic chart should have equal number of series and y-axes"),C}},{key:"extendAnnotations",value:function(C){return C.annotations===void 0&&(C.annotations={},C.annotations.yaxis=[],C.annotations.xaxis=[],C.annotations.points=[]),C=this.extendYAxisAnnotations(C),C=this.extendXAxisAnnotations(C),C=this.extendPointAnnotations(C)}},{key:"extendYAxisAnnotations",value:function(C){var L=new re;return C.annotations.yaxis=Y.extendArray(C.annotations.yaxis!==void 0?C.annotations.yaxis:[],L.yAxisAnnotation),C}},{key:"extendXAxisAnnotations",value:function(C){var L=new re;return C.annotations.xaxis=Y.extendArray(C.annotations.xaxis!==void 0?C.annotations.xaxis:[],L.xAxisAnnotation),C}},{key:"extendPointAnnotations",value:function(C){var L=new re;return C.annotations.points=Y.extendArray(C.annotations.points!==void 0?C.annotations.points:[],L.pointAnnotation),C}},{key:"checkForDarkTheme",value:function(C){C.theme&&C.theme.mode==="dark"&&(C.tooltip||(C.tooltip={}),C.tooltip.theme!=="light"&&(C.tooltip.theme="dark"),C.chart.foreColor||(C.chart.foreColor="#f6f7f8"),C.chart.background||(C.chart.background="#424242"),C.theme.palette||(C.theme.palette="palette4"))}},{key:"handleUserInputErrors",value:function(C){var L=C;if(L.tooltip.shared&&L.tooltip.intersect)throw new Error("tooltip.shared cannot be enabled when tooltip.intersect is true. Turn off any other option by setting it to false.");if(L.chart.type==="bar"&&L.plotOptions.bar.horizontal){if(L.yaxis.length>1)throw new Error("Multiple Y Axis for bars are not supported. Switch to column chart by setting plotOptions.bar.horizontal=false");L.yaxis[0].reversed&&(L.yaxis[0].opposite=!0),L.xaxis.tooltip.enabled=!1,L.yaxis[0].tooltip.enabled=!1,L.chart.zoom.enabled=!1}return L.chart.type!=="bar"&&L.chart.type!=="rangeBar"||L.tooltip.shared&&L.xaxis.crosshairs.width==="barWidth"&&L.series.length>1&&(L.xaxis.crosshairs.width="tickWidth"),L.chart.type!=="candlestick"&&L.chart.type!=="boxPlot"||L.yaxis[0].reversed&&(console.warn("Reversed y-axis in ".concat(L.chart.type," chart is not supported.")),L.yaxis[0].reversed=!1),L}}]),ai}(),J=function(){function ai(){I(this,ai)}return M(ai,[{key:"initGlobalVars",value:function(C){C.series=[],C.seriesCandleO=[],C.seriesCandleH=[],C.seriesCandleM=[],C.seriesCandleL=[],C.seriesCandleC=[],C.seriesRangeStart=[],C.seriesRangeEnd=[],C.seriesRange=[],C.seriesPercent=[],C.seriesGoals=[],C.seriesX=[],C.seriesZ=[],C.seriesNames=[],C.seriesTotals=[],C.seriesLog=[],C.seriesColors=[],C.stackedSeriesTotals=[],C.seriesXvalues=[],C.seriesYvalues=[],C.labels=[],C.hasXaxisGroups=!1,C.groups=[],C.hasSeriesGroups=!1,C.seriesGroups=[],C.categoryLabels=[],C.timescaleLabels=[],C.noLabelsProvided=!1,C.resizeTimer=null,C.selectionResizeTimer=null,C.delayedElements=[],C.pointsArray=[],C.dataLabelsRects=[],C.isXNumeric=!1,C.skipLastTimelinelabel=!1,C.skipFirstTimelinelabel=!1,C.isDataXYZ=!1,C.isMultiLineX=!1,C.isMultipleYAxis=!1,C.maxY=-Number.MAX_VALUE,C.minY=Number.MIN_VALUE,C.minYArr=[],C.maxYArr=[],C.maxX=-Number.MAX_VALUE,C.minX=Number.MAX_VALUE,C.initialMaxX=-Number.MAX_VALUE,C.initialMinX=Number.MAX_VALUE,C.maxDate=0,C.minDate=Number.MAX_VALUE,C.minZ=Number.MAX_VALUE,C.maxZ=-Number.MAX_VALUE,C.minXDiff=Number.MAX_VALUE,C.yAxisScale=[],C.xAxisScale=null,C.xAxisTicksPositions=[],C.yLabelsCoords=[],C.yTitleCoords=[],C.barPadForNumericAxis=0,C.padHorizontal=0,C.xRange=0,C.yRange=[],C.zRange=0,C.dataPoints=0,C.xTickAmount=0}},{key:"globalVars",value:function(C){return{chartID:null,cuid:null,events:{beforeMount:[],mounted:[],updated:[],clicked:[],selection:[],dataPointSelection:[],zoomed:[],scrolled:[]},colors:[],clientX:null,clientY:null,fill:{colors:[]},stroke:{colors:[]},dataLabels:{style:{colors:[]}},radarPolygons:{fill:{colors:[]}},markers:{colors:[],size:C.markers.size,largestSize:0},animationEnded:!1,isTouchDevice:"ontouchstart"in window||navigator.msMaxTouchPoints,isDirty:!1,isExecCalled:!1,initialConfig:null,initialSeries:[],lastXAxis:[],lastYAxis:[],columnSeries:null,labels:[],timescaleLabels:[],noLabelsProvided:!1,allSeriesCollapsed:!1,collapsedSeries:[],collapsedSeriesIndices:[],ancillaryCollapsedSeries:[],ancillaryCollapsedSeriesIndices:[],risingSeries:[],dataFormatXNumeric:!1,capturedSeriesIndex:-1,capturedDataPointIndex:-1,selectedDataPoints:[],goldenPadding:35,invalidLogScale:!1,ignoreYAxisIndexes:[],yAxisSameScaleIndices:[],maxValsInArrayIndex:0,radialSize:0,selection:void 0,zoomEnabled:C.chart.toolbar.autoSelected==="zoom"&&C.chart.toolbar.tools.zoom&&C.chart.zoom.enabled,panEnabled:C.chart.toolbar.autoSelected==="pan"&&C.chart.toolbar.tools.pan,selectionEnabled:C.chart.toolbar.autoSelected==="selection"&&C.chart.toolbar.tools.selection,yaxis:null,mousedown:!1,lastClientPosition:{},visibleXRange:void 0,yValueDecimal:0,total:0,SVGNS:"http://www.w3.org/2000/svg",svgWidth:0,svgHeight:0,noData:!1,locale:{},dom:{},memory:{methodsToExec:[]},shouldAnimate:!0,skipLastTimelinelabel:!1,skipFirstTimelinelabel:!1,delayedElements:[],axisCharts:!0,isDataXYZ:!1,resized:!1,resizeTimer:null,comboCharts:!1,dataChanged:!1,previousPaths:[],allSeriesHasEqualX:!0,pointsArray:[],dataLabelsRects:[],lastDrawnDataLabelsIndexes:[],hasNullValues:!1,easing:null,zoomed:!1,gridWidth:0,gridHeight:0,rotateXLabels:!1,defaultLabels:!1,xLabelFormatter:void 0,yLabelFormatters:[],xaxisTooltipFormatter:void 0,ttKeyFormatter:void 0,ttVal:void 0,ttZFormatter:void 0,LINE_HEIGHT_RATIO:1.618,xAxisLabelsHeight:0,xAxisGroupLabelsHeight:0,xAxisLabelsWidth:0,yAxisLabelsWidth:0,scaleX:1,scaleY:1,translateX:0,translateY:0,translateYAxisX:[],yAxisWidths:[],translateXAxisY:0,translateXAxisX:0,tooltip:null}}},{key:"init",value:function(C){var L=this.globalVars(C);return this.initGlobalVars(L),L.initialConfig=Y.extend({},C),L.initialSeries=Y.clone(C.series),L.lastXAxis=Y.clone(L.initialConfig.xaxis),L.lastYAxis=Y.clone(L.initialConfig.yaxis),L}}]),ai}(),U=function(){function ai(C){I(this,ai),this.opts=C}return M(ai,[{key:"init",value:function(){var C=new q(this.opts).init({responsiveOverride:!1});return{config:C,globals:new J().init(C)}}}]),ai}(),Z=function(){function ai(C){I(this,ai),this.ctx=C,this.w=C.w,this.opts=null,this.seriesIndex=0}return M(ai,[{key:"clippedImgArea",value:function(C){var L=this.w,F=L.config,ne=parseInt(L.globals.gridWidth,10),ue=parseInt(L.globals.gridHeight,10),fe=ne>ue?ne:ue,me=C.image,Pe=0,Re=0;C.width===void 0&&C.height===void 0?F.fill.image.width!==void 0&&F.fill.image.height!==void 0?(Pe=F.fill.image.width+1,Re=F.fill.image.height):(Pe=fe+1,Re=fe):(Pe=C.width,Re=C.height);var Xe=document.createElementNS(L.globals.SVGNS,"pattern");ge.setAttrs(Xe,{id:C.patternID,patternUnits:C.patternUnits?C.patternUnits:"userSpaceOnUse",width:Pe+"px",height:Re+"px"});var qe=document.createElementNS(L.globals.SVGNS,"image");Xe.appendChild(qe),qe.setAttributeNS(window.SVG.xlink,"href",me),ge.setAttrs(qe,{x:0,y:0,preserveAspectRatio:"none",width:Pe+"px",height:Re+"px"}),qe.style.opacity=C.opacity,L.globals.dom.elDefs.node.appendChild(Xe)}},{key:"getSeriesIndex",value:function(C){var L=this.w,F=L.config.chart.type;return(F==="bar"||F==="rangeBar")&&L.config.plotOptions.bar.distributed||F==="heatmap"||F==="treemap"?this.seriesIndex=C.seriesNumber:this.seriesIndex=C.seriesNumber%L.globals.series.length,this.seriesIndex}},{key:"fillPath",value:function(C){var L=this.w;this.opts=C;var F,ne,ue,fe=this.w.config;this.seriesIndex=this.getSeriesIndex(C);var me=this.getFillColors()[this.seriesIndex];L.globals.seriesColors[this.seriesIndex]!==void 0&&(me=L.globals.seriesColors[this.seriesIndex]),typeof me=="function"&&(me=me({seriesIndex:this.seriesIndex,dataPointIndex:C.dataPointIndex,value:C.value,w:L}));var Pe=C.fillType?C.fillType:this.getFillType(this.seriesIndex),Re=Array.isArray(fe.fill.opacity)?fe.fill.opacity[this.seriesIndex]:fe.fill.opacity;C.color&&(me=C.color),me||(me="#fff",console.warn("undefined color - ApexCharts"));var Xe=me;if(me.indexOf("rgb")===-1?me.length<9&&(Xe=Y.hexToRgba(me,Re)):me.indexOf("rgba")>-1&&(Re=Y.getOpacityFromRGBA(me)),C.opacity&&(Re=C.opacity),Pe==="pattern"&&(ne=this.handlePatternFill({fillConfig:C.fillConfig,patternFill:ne,fillColor:me,fillOpacity:Re,defaultColor:Xe})),Pe==="gradient"&&(ue=this.handleGradientFill({fillConfig:C.fillConfig,fillColor:me,fillOpacity:Re,i:this.seriesIndex})),Pe==="image"){var qe=fe.fill.image.src,Ke=C.patternID?C.patternID:"";this.clippedImgArea({opacity:Re,image:Array.isArray(qe)?C.seriesNumber<qe.length?qe[C.seriesNumber]:qe[0]:qe,width:C.width?C.width:void 0,height:C.height?C.height:void 0,patternUnits:C.patternUnits,patternID:"pattern".concat(L.globals.cuid).concat(C.seriesNumber+1).concat(Ke)}),F="url(#pattern".concat(L.globals.cuid).concat(C.seriesNumber+1).concat(Ke,")")}else F=Pe==="gradient"?ue:Pe==="pattern"?ne:Xe;return C.solid&&(F=Xe),F}},{key:"getFillType",value:function(C){var L=this.w;return Array.isArray(L.config.fill.type)?L.config.fill.type[C]:L.config.fill.type}},{key:"getFillColors",value:function(){var C=this.w,L=C.config,F=this.opts,ne=[];return C.globals.comboCharts?C.config.series[this.seriesIndex].type==="line"?Array.isArray(C.globals.stroke.colors)?ne=C.globals.stroke.colors:ne.push(C.globals.stroke.colors):Array.isArray(C.globals.fill.colors)?ne=C.globals.fill.colors:ne.push(C.globals.fill.colors):L.chart.type==="line"?Array.isArray(C.globals.stroke.colors)?ne=C.globals.stroke.colors:ne.push(C.globals.stroke.colors):Array.isArray(C.globals.fill.colors)?ne=C.globals.fill.colors:ne.push(C.globals.fill.colors),F.fillColors!==void 0&&(ne=[],Array.isArray(F.fillColors)?ne=F.fillColors.slice():ne.push(F.fillColors)),ne}},{key:"handlePatternFill",value:function(C){var L=C.fillConfig,F=C.patternFill,ne=C.fillColor,ue=C.fillOpacity,fe=C.defaultColor,me=this.w.config.fill;L&&(me=L);var Pe=this.opts,Re=new ge(this.ctx),Xe=Array.isArray(me.pattern.strokeWidth)?me.pattern.strokeWidth[this.seriesIndex]:me.pattern.strokeWidth,qe=ne;return Array.isArray(me.pattern.style)?F=me.pattern.style[Pe.seriesNumber]!==void 0?Re.drawPattern(me.pattern.style[Pe.seriesNumber],me.pattern.width,me.pattern.height,qe,Xe,ue):fe:F=Re.drawPattern(me.pattern.style,me.pattern.width,me.pattern.height,qe,Xe,ue),F}},{key:"handleGradientFill",value:function(C){var L=C.fillColor,F=C.fillOpacity,ne=C.fillConfig,ue=C.i,fe=this.w.config.fill;ne&&(fe=_(_({},fe),ne));var me,Pe=this.opts,Re=new ge(this.ctx),Xe=new Y,qe=fe.gradient.type,Ke=L,nt=fe.gradient.opacityFrom===void 0?F:Array.isArray(fe.gradient.opacityFrom)?fe.gradient.opacityFrom[ue]:fe.gradient.opacityFrom;Ke.indexOf("rgba")>-1&&(nt=Y.getOpacityFromRGBA(Ke));var It=fe.gradient.opacityTo===void 0?F:Array.isArray(fe.gradient.opacityTo)?fe.gradient.opacityTo[ue]:fe.gradient.opacityTo;if(fe.gradient.gradientToColors===void 0||fe.gradient.gradientToColors.length===0)me=fe.gradient.shade==="dark"?Xe.shadeColor(-1*parseFloat(fe.gradient.shadeIntensity),L.indexOf("rgb")>-1?Y.rgb2hex(L):L):Xe.shadeColor(parseFloat(fe.gradient.shadeIntensity),L.indexOf("rgb")>-1?Y.rgb2hex(L):L);else if(fe.gradient.gradientToColors[Pe.seriesNumber]){var Tt=fe.gradient.gradientToColors[Pe.seriesNumber];me=Tt,Tt.indexOf("rgba")>-1&&(It=Y.getOpacityFromRGBA(Tt))}else me=L;if(fe.gradient.gradientFrom&&(Ke=fe.gradient.gradientFrom),fe.gradient.gradientTo&&(me=fe.gradient.gradientTo),fe.gradient.inverseColors){var ni=Ke;Ke=me,me=ni}return Ke.indexOf("rgb")>-1&&(Ke=Y.rgb2hex(Ke)),me.indexOf("rgb")>-1&&(me=Y.rgb2hex(me)),Re.drawGradient(qe,Ke,me,nt,It,Pe.size,fe.gradient.stops,fe.gradient.colorStops,ue)}}]),ai}(),ve=function(){function ai(C,L){I(this,ai),this.ctx=C,this.w=C.w}return M(ai,[{key:"setGlobalMarkerSize",value:function(){var C=this.w;if(C.globals.markers.size=Array.isArray(C.config.markers.size)?C.config.markers.size:[C.config.markers.size],C.globals.markers.size.length>0){if(C.globals.markers.size.length<C.globals.series.length+1)for(var L=0;L<=C.globals.series.length;L++)C.globals.markers.size[L]===void 0&&C.globals.markers.size.push(C.globals.markers.size[0])}else C.globals.markers.size=C.config.series.map(function(F){return C.config.markers.size})}},{key:"plotChartMarkers",value:function(C,L,F,ne){var ue,fe=arguments.length>4&&arguments[4]!==void 0&&arguments[4],me=this.w,Pe=L,Re=C,Xe=null,qe=new ge(this.ctx),Ke=me.config.markers.discrete&&me.config.markers.discrete.length;if((me.globals.markers.size[L]>0||fe||Ke)&&(Xe=qe.group({class:fe||Ke?"":"apexcharts-series-markers"})).attr("clip-path","url(#gridRectMarkerMask".concat(me.globals.cuid,")")),Array.isArray(Re.x))for(var nt=0;nt<Re.x.length;nt++){var It=F;F===1&&nt===0&&(It=0),F===1&&nt===1&&(It=1);var Tt="apexcharts-marker";if(me.config.chart.type!=="line"&&me.config.chart.type!=="area"||me.globals.comboCharts||me.config.tooltip.intersect||(Tt+=" no-pointer-events"),(Array.isArray(me.config.markers.size)?me.globals.markers.size[L]>0:me.config.markers.size>0)||fe||Ke){Y.isNumber(Re.y[nt])?Tt+=" w".concat(Y.randomId()):Tt="apexcharts-nullpoint";var ni=this.getMarkerConfig({cssClass:Tt,seriesIndex:L,dataPointIndex:It});me.config.series[Pe].data[It]&&(me.config.series[Pe].data[It].fillColor&&(ni.pointFillColor=me.config.series[Pe].data[It].fillColor),me.config.series[Pe].data[It].strokeColor&&(ni.pointStrokeColor=me.config.series[Pe].data[It].strokeColor)),ne&&(ni.pSize=ne),(Re.x[nt]<0||Re.x[nt]>me.globals.gridWidth||Re.y[nt]<-me.globals.markers.largestSize||Re.y[nt]>me.globals.gridHeight+me.globals.markers.largestSize)&&(ni.pSize=0),(ue=qe.drawMarker(Re.x[nt],Re.y[nt],ni)).attr("rel",It),ue.attr("j",It),ue.attr("index",L),ue.node.setAttribute("default-marker-size",ni.pSize),new oe(this.ctx).setSelectionFilter(ue,L,It),this.addEvents(ue),Xe&&Xe.add(ue)}else me.globals.pointsArray[L]===void 0&&(me.globals.pointsArray[L]=[]),me.globals.pointsArray[L].push([Re.x[nt],Re.y[nt]])}return Xe}},{key:"getMarkerConfig",value:function(C){var L=C.cssClass,F=C.seriesIndex,ne=C.dataPointIndex,ue=ne===void 0?null:ne,fe=C.finishRadius,me=fe===void 0?null:fe,Pe=this.w,Re=this.getMarkerStyle(F),Xe=Pe.globals.markers.size[F],qe=Pe.config.markers;return ue!==null&&qe.discrete.length&&qe.discrete.map(function(Ke){Ke.seriesIndex===F&&Ke.dataPointIndex===ue&&(Re.pointStrokeColor=Ke.strokeColor,Re.pointFillColor=Ke.fillColor,Xe=Ke.size,Re.pointShape=Ke.shape)}),{pSize:me===null?Xe:me,pRadius:qe.radius,width:Array.isArray(qe.width)?qe.width[F]:qe.width,height:Array.isArray(qe.height)?qe.height[F]:qe.height,pointStrokeWidth:Array.isArray(qe.strokeWidth)?qe.strokeWidth[F]:qe.strokeWidth,pointStrokeColor:Re.pointStrokeColor,pointFillColor:Re.pointFillColor,shape:Re.pointShape||(Array.isArray(qe.shape)?qe.shape[F]:qe.shape),class:L,pointStrokeOpacity:Array.isArray(qe.strokeOpacity)?qe.strokeOpacity[F]:qe.strokeOpacity,pointStrokeDashArray:Array.isArray(qe.strokeDashArray)?qe.strokeDashArray[F]:qe.strokeDashArray,pointFillOpacity:Array.isArray(qe.fillOpacity)?qe.fillOpacity[F]:qe.fillOpacity,seriesIndex:F}}},{key:"addEvents",value:function(C){var L=this.w,F=new ge(this.ctx);C.node.addEventListener("mouseenter",F.pathMouseEnter.bind(this.ctx,C)),C.node.addEventListener("mouseleave",F.pathMouseLeave.bind(this.ctx,C)),C.node.addEventListener("mousedown",F.pathMouseDown.bind(this.ctx,C)),C.node.addEventListener("click",L.config.markers.onClick),C.node.addEventListener("dblclick",L.config.markers.onDblClick),C.node.addEventListener("touchstart",F.pathMouseDown.bind(this.ctx,C),{passive:!0})}},{key:"getMarkerStyle",value:function(C){var L=this.w,F=L.globals.markers.colors,ne=L.config.markers.strokeColor||L.config.markers.strokeColors;return{pointStrokeColor:Array.isArray(ne)?ne[C]:ne,pointFillColor:Array.isArray(F)?F[C]:F}}}]),ai}(),Ye=function(){function ai(C){I(this,ai),this.ctx=C,this.w=C.w,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled}return M(ai,[{key:"draw",value:function(C,L,F){var ne=this.w,ue=new ge(this.ctx),fe=F.realIndex,me=F.pointsPos,Pe=F.zRatio,Re=F.elParent,Xe=ue.group({class:"apexcharts-series-markers apexcharts-series-".concat(ne.config.chart.type)});if(Xe.attr("clip-path","url(#gridRectMarkerMask".concat(ne.globals.cuid,")")),Array.isArray(me.x))for(var qe=0;qe<me.x.length;qe++){var Ke=L+1,nt=!0;L===0&&qe===0&&(Ke=0),L===0&&qe===1&&(Ke=1);var It=0,Tt=ne.globals.markers.size[fe];if(Pe!==1/0){var ni=ne.config.plotOptions.bubble;Tt=ne.globals.seriesZ[fe][Ke],ni.zScaling&&(Tt/=Pe),ni.minBubbleRadius&&Tt<ni.minBubbleRadius&&(Tt=ni.minBubbleRadius),ni.maxBubbleRadius&&Tt>ni.maxBubbleRadius&&(Tt=ni.maxBubbleRadius)}ne.config.chart.animations.enabled||(It=Tt);var fi=me.x[qe],gi=me.y[qe];if(It=It||0,gi!==null&&ne.globals.series[fe][Ke]!==void 0||(nt=!1),nt){var je=this.drawPoint(fi,gi,It,Tt,fe,Ke,L);Xe.add(je)}Re.add(Xe)}}},{key:"drawPoint",value:function(C,L,F,ne,ue,fe,me){var Pe=this.w,Re=ue,Xe=new ie(this.ctx),qe=new oe(this.ctx),Ke=new Z(this.ctx),nt=new ve(this.ctx),It=new ge(this.ctx),Tt=nt.getMarkerConfig({cssClass:"apexcharts-marker",seriesIndex:Re,dataPointIndex:fe,finishRadius:Pe.config.chart.type==="bubble"||Pe.globals.comboCharts&&Pe.config.series[ue]&&Pe.config.series[ue].type==="bubble"?ne:null});ne=Tt.pSize;var ni,fi=Ke.fillPath({seriesNumber:ue,dataPointIndex:fe,color:Tt.pointFillColor,patternUnits:"objectBoundingBox",value:Pe.globals.series[ue][me]});if(Tt.shape==="circle"?ni=It.drawCircle(F):Tt.shape!=="square"&&Tt.shape!=="rect"||(ni=It.drawRect(0,0,Tt.width-Tt.pointStrokeWidth/2,Tt.height-Tt.pointStrokeWidth/2,Tt.pRadius)),Pe.config.series[Re].data[fe]&&Pe.config.series[Re].data[fe].fillColor&&(fi=Pe.config.series[Re].data[fe].fillColor),ni.attr({x:C-Tt.width/2-Tt.pointStrokeWidth/2,y:L-Tt.height/2-Tt.pointStrokeWidth/2,cx:C,cy:L,fill:fi,"fill-opacity":Tt.pointFillOpacity,stroke:Tt.pointStrokeColor,r:ne,"stroke-width":Tt.pointStrokeWidth,"stroke-dasharray":Tt.pointStrokeDashArray,"stroke-opacity":Tt.pointStrokeOpacity}),Pe.config.chart.dropShadow.enabled){var gi=Pe.config.chart.dropShadow;qe.dropShadow(ni,gi,ue)}if(!this.initialAnim||Pe.globals.dataChanged||Pe.globals.resized)Pe.globals.animationEnded=!0;else{var je=Pe.config.chart.animations.speed;Xe.animateMarker(ni,0,Tt.shape==="circle"?ne:{width:Tt.width,height:Tt.height},je,Pe.globals.easing,function(){window.setTimeout(function(){Xe.animationCompleted(ni)},100)})}if(Pe.globals.dataChanged&&Tt.shape==="circle")if(this.dynamicAnim){var it,Ct,si,di,yi=Pe.config.chart.animations.dynamicAnimation.speed;(di=Pe.globals.previousPaths[ue]&&Pe.globals.previousPaths[ue][me])!=null&&(it=di.x,Ct=di.y,si=di.r!==void 0?di.r:ne);for(var nM=0;nM<Pe.globals.collapsedSeries.length;nM++)Pe.globals.collapsedSeries[nM].index===ue&&(yi=1,ne=0);C===0&&L===0&&(ne=0),Xe.animateCircle(ni,{cx:it,cy:Ct,r:si},{cx:C,cy:L,r:ne},yi,Pe.globals.easing)}else ni.attr({r:ne});return ni.attr({rel:fe,j:fe,index:ue,"default-marker-size":ne}),qe.setSelectionFilter(ni,ue,fe),nt.addEvents(ni),ni.node.classList.add("apexcharts-marker"),ni}},{key:"centerTextInBubble",value:function(C){var L=this.w;return{y:C+=parseInt(L.config.dataLabels.style.fontSize,10)/4}}}]),ai}(),rt=function(){function ai(C){I(this,ai),this.ctx=C,this.w=C.w}return M(ai,[{key:"dataLabelsCorrection",value:function(C,L,F,ne,ue,fe,me){var Pe=this.w,Re=!1,Xe=new ge(this.ctx).getTextRects(F,me),qe=Xe.width,Ke=Xe.height;L<0&&(L=0),L>Pe.globals.gridHeight+Ke&&(L=Pe.globals.gridHeight+Ke/2),Pe.globals.dataLabelsRects[ne]===void 0&&(Pe.globals.dataLabelsRects[ne]=[]),Pe.globals.dataLabelsRects[ne].push({x:C,y:L,width:qe,height:Ke});var nt=Pe.globals.dataLabelsRects[ne].length-2,It=Pe.globals.lastDrawnDataLabelsIndexes[ne]!==void 0?Pe.globals.lastDrawnDataLabelsIndexes[ne][Pe.globals.lastDrawnDataLabelsIndexes[ne].length-1]:0;if(Pe.globals.dataLabelsRects[ne][nt]!==void 0){var Tt=Pe.globals.dataLabelsRects[ne][It];(C>Tt.x+Tt.width||L>Tt.y+Tt.height||L+Ke<Tt.y||C+qe<Tt.x)&&(Re=!0)}return(ue===0||fe)&&(Re=!0),{x:C,y:L,textRects:Xe,drawnextLabel:Re}}},{key:"drawDataLabel",value:function(C){var L=this,F=C.type,ne=C.pos,ue=C.i,fe=C.j,me=C.isRangeStart,Pe=C.strokeWidth,Re=Pe===void 0?2:Pe,Xe=this.w,qe=new ge(this.ctx),Ke=Xe.config.dataLabels,nt=0,It=0,Tt=fe,ni=null;if(!Ke.enabled||!Array.isArray(ne.x))return ni;ni=qe.group({class:"apexcharts-data-labels"});for(var fi=0;fi<ne.x.length;fi++)if(nt=ne.x[fi]+Ke.offsetX,It=ne.y[fi]+Ke.offsetY+Re,!isNaN(nt)){fe===1&&fi===0&&(Tt=0),fe===1&&fi===1&&(Tt=1);var gi=Xe.globals.series[ue][Tt];F==="rangeArea"&&(gi=me?Xe.globals.seriesRangeStart[ue][Tt]:Xe.globals.seriesRangeEnd[ue][Tt]);var je="",it=function(Ct){return Xe.config.dataLabels.formatter(Ct,{ctx:L.ctx,seriesIndex:ue,dataPointIndex:Tt,w:Xe})};Xe.config.chart.type==="bubble"?(je=it(gi=Xe.globals.seriesZ[ue][Tt]),It=ne.y[fi],It=new Ye(this.ctx).centerTextInBubble(It,ue,Tt).y):gi!==void 0&&(je=it(gi)),this.plotDataLabelsText({x:nt,y:It,text:je,i:ue,j:Tt,parent:ni,offsetCorrection:!0,dataLabelsConfig:Xe.config.dataLabels})}return ni}},{key:"plotDataLabelsText",value:function(C){var L=this.w,F=new ge(this.ctx),ne=C.x,ue=C.y,fe=C.i,me=C.j,Pe=C.text,Re=C.textAnchor,Xe=C.fontSize,qe=C.parent,Ke=C.dataLabelsConfig,nt=C.color,It=C.alwaysDrawDataLabel,Tt=C.offsetCorrection;if(!(Array.isArray(L.config.dataLabels.enabledOnSeries)&&L.config.dataLabels.enabledOnSeries.indexOf(fe)<0)){var ni={x:ne,y:ue,drawnextLabel:!0,textRects:null};Tt&&(ni=this.dataLabelsCorrection(ne,ue,Pe,fe,me,It,parseInt(Ke.style.fontSize,10))),L.globals.zoomed||(ne=ni.x,ue=ni.y),ni.textRects&&(ne<-20-ni.textRects.width||ne>L.globals.gridWidth+ni.textRects.width+30)&&(Pe="");var fi=L.globals.dataLabels.style.colors[fe];((L.config.chart.type==="bar"||L.config.chart.type==="rangeBar")&&L.config.plotOptions.bar.distributed||L.config.dataLabels.distributed)&&(fi=L.globals.dataLabels.style.colors[me]),typeof fi=="function"&&(fi=fi({series:L.globals.series,seriesIndex:fe,dataPointIndex:me,w:L})),nt&&(fi=nt);var gi=Ke.offsetX,je=Ke.offsetY;if(L.config.chart.type!=="bar"&&L.config.chart.type!=="rangeBar"||(gi=0,je=0),ni.drawnextLabel){var it=F.drawText({width:100,height:parseInt(Ke.style.fontSize,10),x:ne+gi,y:ue+je,foreColor:fi,textAnchor:Re||Ke.textAnchor,text:Pe,fontSize:Xe||Ke.style.fontSize,fontFamily:Ke.style.fontFamily,fontWeight:Ke.style.fontWeight||"normal"});if(it.attr({class:"apexcharts-datalabel",cx:ne,cy:ue}),Ke.dropShadow.enabled){var Ct=Ke.dropShadow;new oe(this.ctx).dropShadow(it,Ct)}qe.add(it),L.globals.lastDrawnDataLabelsIndexes[fe]===void 0&&(L.globals.lastDrawnDataLabelsIndexes[fe]=[]),L.globals.lastDrawnDataLabelsIndexes[fe].push(me)}}}},{key:"addBackgroundToDataLabel",value:function(C,L){var F=this.w,ne=F.config.dataLabels.background,ue=ne.padding,fe=ne.padding/2,me=L.width,Pe=L.height,Re=new ge(this.ctx).drawRect(L.x-ue,L.y-fe/2,me+2*ue,Pe+fe,ne.borderRadius,F.config.chart.background==="transparent"?"#fff":F.config.chart.background,ne.opacity,ne.borderWidth,ne.borderColor);return ne.dropShadow.enabled&&new oe(this.ctx).dropShadow(Re,ne.dropShadow),Re}},{key:"dataLabelsBackground",value:function(){var C=this.w;if(C.config.chart.type!=="bubble")for(var L=C.globals.dom.baseEl.querySelectorAll(".apexcharts-datalabels text"),F=0;F<L.length;F++){var ne=L[F],ue=ne.getBBox(),fe=null;if(ue.width&&ue.height&&(fe=this.addBackgroundToDataLabel(ne,ue)),fe){ne.parentNode.insertBefore(fe.node,ne);var me=ne.getAttribute("fill");C.config.chart.animations.enabled&&!C.globals.resized&&!C.globals.dataChanged?fe.animate().attr({fill:me}):fe.attr({fill:me}),ne.setAttribute("fill",C.config.dataLabels.background.foreColor)}}}},{key:"bringForward",value:function(){for(var C=this.w,L=C.globals.dom.baseEl.querySelectorAll(".apexcharts-datalabels"),F=C.globals.dom.baseEl.querySelector(".apexcharts-plot-series:last-child"),ne=0;ne<L.length;ne++)F&&F.insertBefore(L[ne],F.nextSibling)}}]),ai}(),Ue=function(){function ai(C){I(this,ai),this.ctx=C,this.w=C.w,this.legendInactiveClass="legend-mouseover-inactive"}return M(ai,[{key:"getAllSeriesEls",value:function(){return this.w.globals.dom.baseEl.getElementsByClassName("apexcharts-series")}},{key:"getSeriesByName",value:function(C){return this.w.globals.dom.baseEl.querySelector(".apexcharts-inner .apexcharts-series[seriesName='".concat(Y.escapeString(C),"']"))}},{key:"isSeriesHidden",value:function(C){var L=this.getSeriesByName(C),F=parseInt(L.getAttribute("data:realIndex"),10);return{isHidden:L.classList.contains("apexcharts-series-collapsed"),realIndex:F}}},{key:"addCollapsedClassToSeries",value:function(C,L){var F=this.w;function ne(ue){for(var fe=0;fe<ue.length;fe++)ue[fe].index===L&&C.node.classList.add("apexcharts-series-collapsed")}ne(F.globals.collapsedSeries),ne(F.globals.ancillaryCollapsedSeries)}},{key:"toggleSeries",value:function(C){var L=this.isSeriesHidden(C);return this.ctx.legend.legendHelpers.toggleDataSeries(L.realIndex,L.isHidden),L.isHidden}},{key:"showSeries",value:function(C){var L=this.isSeriesHidden(C);L.isHidden&&this.ctx.legend.legendHelpers.toggleDataSeries(L.realIndex,!0)}},{key:"hideSeries",value:function(C){var L=this.isSeriesHidden(C);L.isHidden||this.ctx.legend.legendHelpers.toggleDataSeries(L.realIndex,!1)}},{key:"resetSeries",value:function(){var C=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],L=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],F=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],ne=this.w,ue=Y.clone(ne.globals.initialSeries);ne.globals.previousPaths=[],F?(ne.globals.collapsedSeries=[],ne.globals.ancillaryCollapsedSeries=[],ne.globals.collapsedSeriesIndices=[],ne.globals.ancillaryCollapsedSeriesIndices=[]):ue=this.emptyCollapsedSeries(ue),ne.config.series=ue,C&&(L&&(ne.globals.zoomed=!1,this.ctx.updateHelpers.revertDefaultAxisMinMax()),this.ctx.updateHelpers._updateSeries(ue,ne.config.chart.animations.dynamicAnimation.enabled))}},{key:"emptyCollapsedSeries",value:function(C){for(var L=this.w,F=0;F<C.length;F++)L.globals.collapsedSeriesIndices.indexOf(F)>-1&&(C[F].data=[]);return C}},{key:"toggleSeriesOnHover",value:function(C,L){var F=this.w;L||(L=C.target);var ne=F.globals.dom.baseEl.querySelectorAll(".apexcharts-series, .apexcharts-datalabels");if(C.type==="mousemove"){var ue=parseInt(L.getAttribute("rel"),10)-1,fe=null,me=null;F.globals.axisCharts||F.config.chart.type==="radialBar"?F.globals.axisCharts?(fe=F.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(ue,"']")),me=F.globals.dom.baseEl.querySelector(".apexcharts-datalabels[data\\:realIndex='".concat(ue,"']"))):fe=F.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(ue+1,"']")):fe=F.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(ue+1,"'] path"));for(var Pe=0;Pe<ne.length;Pe++)ne[Pe].classList.add(this.legendInactiveClass);fe!==null&&(F.globals.axisCharts||fe.parentNode.classList.remove(this.legendInactiveClass),fe.classList.remove(this.legendInactiveClass),me!==null&&me.classList.remove(this.legendInactiveClass))}else if(C.type==="mouseout")for(var Re=0;Re<ne.length;Re++)ne[Re].classList.remove(this.legendInactiveClass)}},{key:"highlightRangeInSeries",value:function(C,L){var F=this,ne=this.w,ue=ne.globals.dom.baseEl.getElementsByClassName("apexcharts-heatmap-rect"),fe=function(Pe){for(var Re=0;Re<ue.length;Re++)ue[Re].classList[Pe](F.legendInactiveClass)};if(C.type==="mousemove"){var me=parseInt(L.getAttribute("rel"),10)-1;fe("add"),function(Pe){for(var Re=0;Re<ue.length;Re++){var Xe=parseInt(ue[Re].getAttribute("val"),10);Xe>=Pe.from&&Xe<=Pe.to&&ue[Re].classList.remove(F.legendInactiveClass)}}(ne.config.plotOptions.heatmap.colorScale.ranges[me])}else C.type==="mouseout"&&fe("remove")}},{key:"getActiveConfigSeriesIndex",value:function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"asc",L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],F=this.w,ne=0;if(F.config.series.length>1){for(var ue=F.config.series.map(function(me,Pe){return me.data&&me.data.length>0&&F.globals.collapsedSeriesIndices.indexOf(Pe)===-1&&(!F.globals.comboCharts||L.length===0||L.length&&L.indexOf(F.config.series[Pe].type)>-1)?Pe:-1}),fe=C==="asc"?0:ue.length-1;C==="asc"?fe<ue.length:fe>=0;C==="asc"?fe++:fe--)if(ue[fe]!==-1){ne=ue[fe];break}}return ne}},{key:"getBarSeriesIndices",value:function(){return this.w.globals.comboCharts?this.w.config.series.map(function(C,L){return C.type==="bar"||C.type==="column"?L:-1}).filter(function(C){return C!==-1}):this.w.config.series.map(function(C,L){return L})}},{key:"getPreviousPaths",value:function(){var C=this.w;function L(fe,me,Pe){for(var Re=fe[me].childNodes,Xe={type:Pe,paths:[],realIndex:fe[me].getAttribute("data:realIndex")},qe=0;qe<Re.length;qe++)if(Re[qe].hasAttribute("pathTo")){var Ke=Re[qe].getAttribute("pathTo");Xe.paths.push({d:Ke})}C.globals.previousPaths.push(Xe)}C.globals.previousPaths=[],["line","area","bar","rangebar","rangeArea","candlestick","radar"].forEach(function(fe){for(var me,Pe=(me=fe,C.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(me,"-series .apexcharts-series"))),Re=0;Re<Pe.length;Re++)L(Pe,Re,fe)}),this.handlePrevBubbleScatterPaths("bubble"),this.handlePrevBubbleScatterPaths("scatter");var F=C.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(C.config.chart.type," .apexcharts-series"));if(F.length>0)for(var ne=function(fe){for(var me=C.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(C.config.chart.type," .apexcharts-series[data\\:realIndex='").concat(fe,"'] rect")),Pe=[],Re=function(qe){var Ke=function(It){return me[qe].getAttribute(It)},nt={x:parseFloat(Ke("x")),y:parseFloat(Ke("y")),width:parseFloat(Ke("width")),height:parseFloat(Ke("height"))};Pe.push({rect:nt,color:me[qe].getAttribute("color")})},Xe=0;Xe<me.length;Xe++)Re(Xe);C.globals.previousPaths.push(Pe)},ue=0;ue<F.length;ue++)ne(ue);C.globals.axisCharts||(C.globals.previousPaths=C.globals.series)}},{key:"handlePrevBubbleScatterPaths",value:function(C){var L=this.w,F=L.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(C,"-series .apexcharts-series"));if(F.length>0)for(var ne=0;ne<F.length;ne++){for(var ue=L.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(C,"-series .apexcharts-series[data\\:realIndex='").concat(ne,"'] circle")),fe=[],me=0;me<ue.length;me++)fe.push({x:ue[me].getAttribute("cx"),y:ue[me].getAttribute("cy"),r:ue[me].getAttribute("r")});L.globals.previousPaths.push(fe)}}},{key:"clearPreviousPaths",value:function(){var C=this.w;C.globals.previousPaths=[],C.globals.allSeriesCollapsed=!1}},{key:"handleNoData",value:function(){var C=this.w,L=C.config.noData,F=new ge(this.ctx),ne=C.globals.svgWidth/2,ue=C.globals.svgHeight/2,fe="middle";if(C.globals.noData=!0,C.globals.animationEnded=!0,L.align==="left"?(ne=10,fe="start"):L.align==="right"&&(ne=C.globals.svgWidth-10,fe="end"),L.verticalAlign==="top"?ue=50:L.verticalAlign==="bottom"&&(ue=C.globals.svgHeight-50),ne+=L.offsetX,ue=ue+parseInt(L.style.fontSize,10)+2+L.offsetY,L.text!==void 0&&L.text!==""){var me=F.drawText({x:ne,y:ue,text:L.text,textAnchor:fe,fontSize:L.style.fontSize,fontFamily:L.style.fontFamily,foreColor:L.style.color,opacity:1,class:"apexcharts-text-nodata"});C.globals.dom.Paper.add(me)}}},{key:"setNullSeriesToZeroValues",value:function(C){for(var L=this.w,F=0;F<C.length;F++)if(C[F].length===0)for(var ne=0;ne<C[L.globals.maxValsInArrayIndex].length;ne++)C[F].push(0);return C}},{key:"hasAllSeriesEqualX",value:function(){for(var C=!0,L=this.w,F=this.filteredSeriesX(),ne=0;ne<F.length-1;ne++)if(F[ne][0]!==F[ne+1][0]){C=!1;break}return L.globals.allSeriesHasEqualX=C,C}},{key:"filteredSeriesX",value:function(){var C=this.w.globals.seriesX.map(function(L){return L.length>0?L:[]});return C}}]),ai}(),Qe=function(){function ai(C){I(this,ai),this.ctx=C,this.w=C.w,this.twoDSeries=[],this.threeDSeries=[],this.twoDSeriesX=[],this.seriesGoals=[],this.coreUtils=new be(this.ctx)}return M(ai,[{key:"isMultiFormat",value:function(){return this.isFormatXY()||this.isFormat2DArray()}},{key:"isFormatXY",value:function(){var C=this.w.config.series.slice(),L=new Ue(this.ctx);if(this.activeSeriesIndex=L.getActiveConfigSeriesIndex(),C[this.activeSeriesIndex].data!==void 0&&C[this.activeSeriesIndex].data.length>0&&C[this.activeSeriesIndex].data[0]!==null&&C[this.activeSeriesIndex].data[0].x!==void 0&&C[this.activeSeriesIndex].data[0]!==null)return!0}},{key:"isFormat2DArray",value:function(){var C=this.w.config.series.slice(),L=new Ue(this.ctx);if(this.activeSeriesIndex=L.getActiveConfigSeriesIndex(),C[this.activeSeriesIndex].data!==void 0&&C[this.activeSeriesIndex].data.length>0&&C[this.activeSeriesIndex].data[0]!==void 0&&C[this.activeSeriesIndex].data[0]!==null&&C[this.activeSeriesIndex].data[0].constructor===Array)return!0}},{key:"handleFormat2DArray",value:function(C,L){for(var F=this.w.config,ne=this.w.globals,ue=F.chart.type==="boxPlot"||F.series[L].type==="boxPlot",fe=0;fe<C[L].data.length;fe++)if(C[L].data[fe][1]!==void 0&&(Array.isArray(C[L].data[fe][1])&&C[L].data[fe][1].length===4&&!ue?this.twoDSeries.push(Y.parseNumber(C[L].data[fe][1][3])):C[L].data[fe].length>=5?this.twoDSeries.push(Y.parseNumber(C[L].data[fe][4])):this.twoDSeries.push(Y.parseNumber(C[L].data[fe][1])),ne.dataFormatXNumeric=!0),F.xaxis.type==="datetime"){var me=new Date(C[L].data[fe][0]);me=new Date(me).getTime(),this.twoDSeriesX.push(me)}else this.twoDSeriesX.push(C[L].data[fe][0]);for(var Pe=0;Pe<C[L].data.length;Pe++)C[L].data[Pe][2]!==void 0&&(this.threeDSeries.push(C[L].data[Pe][2]),ne.isDataXYZ=!0)}},{key:"handleFormatXY",value:function(C,L){var F=this.w.config,ne=this.w.globals,ue=new k(this.ctx),fe=L;ne.collapsedSeriesIndices.indexOf(L)>-1&&(fe=this.activeSeriesIndex);for(var me=0;me<C[L].data.length;me++)C[L].data[me].y!==void 0&&(Array.isArray(C[L].data[me].y)?this.twoDSeries.push(Y.parseNumber(C[L].data[me].y[C[L].data[me].y.length-1])):this.twoDSeries.push(Y.parseNumber(C[L].data[me].y))),C[L].data[me].goals!==void 0&&Array.isArray(C[L].data[me].goals)?(this.seriesGoals[L]===void 0&&(this.seriesGoals[L]=[]),this.seriesGoals[L].push(C[L].data[me].goals)):(this.seriesGoals[L]===void 0&&(this.seriesGoals[L]=[]),this.seriesGoals[L].push(null));for(var Pe=0;Pe<C[fe].data.length;Pe++){var Re=typeof C[fe].data[Pe].x=="string",Xe=Array.isArray(C[fe].data[Pe].x),qe=!Xe&&!!ue.isValidDate(C[fe].data[Pe].x);if(Re||qe)if(Re||F.xaxis.convertedCatToNumeric){var Ke=ne.isBarHorizontal&&ne.isRangeData;F.xaxis.type!=="datetime"||Ke?(this.fallbackToCategory=!0,this.twoDSeriesX.push(C[fe].data[Pe].x),isNaN(C[fe].data[Pe].x)||this.w.config.xaxis.type==="category"||typeof C[fe].data[Pe].x=="string"||(ne.isXNumeric=!0)):this.twoDSeriesX.push(ue.parseDate(C[fe].data[Pe].x))}else F.xaxis.type==="datetime"?this.twoDSeriesX.push(ue.parseDate(C[fe].data[Pe].x.toString())):(ne.dataFormatXNumeric=!0,ne.isXNumeric=!0,this.twoDSeriesX.push(parseFloat(C[fe].data[Pe].x)));else Xe?(this.fallbackToCategory=!0,this.twoDSeriesX.push(C[fe].data[Pe].x)):(ne.isXNumeric=!0,ne.dataFormatXNumeric=!0,this.twoDSeriesX.push(C[fe].data[Pe].x))}if(C[L].data[0]&&C[L].data[0].z!==void 0){for(var nt=0;nt<C[L].data.length;nt++)this.threeDSeries.push(C[L].data[nt].z);ne.isDataXYZ=!0}}},{key:"handleRangeData",value:function(C,L){var F=this.w.globals,ne={};return this.isFormat2DArray()?ne=this.handleRangeDataFormat("array",C,L):this.isFormatXY()&&(ne=this.handleRangeDataFormat("xy",C,L)),F.seriesRangeStart.push(ne.start),F.seriesRangeEnd.push(ne.end),F.seriesRange.push(ne.rangeUniques),F.seriesRange.forEach(function(ue,fe){ue&&ue.forEach(function(me,Pe){me.y.forEach(function(Re,Xe){for(var qe=0;qe<me.y.length;qe++)if(Xe!==qe){var Ke=Re.y1,nt=Re.y2,It=me.y[qe].y1;Ke<=me.y[qe].y2&&It<=nt&&(me.overlaps.indexOf(Re.rangeName)<0&&me.overlaps.push(Re.rangeName),me.overlaps.indexOf(me.y[qe].rangeName)<0&&me.overlaps.push(me.y[qe].rangeName))}})})}),ne}},{key:"handleCandleStickBoxData",value:function(C,L){var F=this.w.globals,ne={};return this.isFormat2DArray()?ne=this.handleCandleStickBoxDataFormat("array",C,L):this.isFormatXY()&&(ne=this.handleCandleStickBoxDataFormat("xy",C,L)),F.seriesCandleO[L]=ne.o,F.seriesCandleH[L]=ne.h,F.seriesCandleM[L]=ne.m,F.seriesCandleL[L]=ne.l,F.seriesCandleC[L]=ne.c,ne}},{key:"handleRangeDataFormat",value:function(C,L,F){var ne=[],ue=[],fe=L[F].data.filter(function(Xe,qe,Ke){return qe===Ke.findIndex(function(nt){return nt.x===Xe.x})}).map(function(Xe,qe){return{x:Xe.x,overlaps:[],y:[]}});if(C==="array")for(var me=0;me<L[F].data.length;me++)Array.isArray(L[F].data[me])?(ne.push(L[F].data[me][1][0]),ue.push(L[F].data[me][1][1])):(ne.push(L[F].data[me]),ue.push(L[F].data[me]));else if(C==="xy")for(var Pe=function(Xe){var qe=Array.isArray(L[F].data[Xe].y),Ke=Y.randomId(),nt=L[F].data[Xe].x,It={y1:qe?L[F].data[Xe].y[0]:L[F].data[Xe].y,y2:qe?L[F].data[Xe].y[1]:L[F].data[Xe].y,rangeName:Ke};L[F].data[Xe].rangeName=Ke;var Tt=fe.findIndex(function(ni){return ni.x===nt});fe[Tt].y.push(It),ne.push(It.y1),ue.push(It.y2)},Re=0;Re<L[F].data.length;Re++)Pe(Re);return{start:ne,end:ue,rangeUniques:fe}}},{key:"handleCandleStickBoxDataFormat",value:function(C,L,F){var ne=this.w,ue=ne.config.chart.type==="boxPlot"||ne.config.series[F].type==="boxPlot",fe=[],me=[],Pe=[],Re=[],Xe=[];if(C==="array")if(ue&&L[F].data[0].length===6||!ue&&L[F].data[0].length===5)for(var qe=0;qe<L[F].data.length;qe++)fe.push(L[F].data[qe][1]),me.push(L[F].data[qe][2]),ue?(Pe.push(L[F].data[qe][3]),Re.push(L[F].data[qe][4]),Xe.push(L[F].data[qe][5])):(Re.push(L[F].data[qe][3]),Xe.push(L[F].data[qe][4]));else for(var Ke=0;Ke<L[F].data.length;Ke++)Array.isArray(L[F].data[Ke][1])&&(fe.push(L[F].data[Ke][1][0]),me.push(L[F].data[Ke][1][1]),ue?(Pe.push(L[F].data[Ke][1][2]),Re.push(L[F].data[Ke][1][3]),Xe.push(L[F].data[Ke][1][4])):(Re.push(L[F].data[Ke][1][2]),Xe.push(L[F].data[Ke][1][3])));else if(C==="xy")for(var nt=0;nt<L[F].data.length;nt++)Array.isArray(L[F].data[nt].y)&&(fe.push(L[F].data[nt].y[0]),me.push(L[F].data[nt].y[1]),ue?(Pe.push(L[F].data[nt].y[2]),Re.push(L[F].data[nt].y[3]),Xe.push(L[F].data[nt].y[4])):(Re.push(L[F].data[nt].y[2]),Xe.push(L[F].data[nt].y[3])));return{o:fe,h:me,m:Pe,l:Re,c:Xe}}},{key:"parseDataAxisCharts",value:function(C){var L,F=this,ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.ctx,ue=this.w.config,fe=this.w.globals,me=new k(ne),Pe=ue.labels.length>0?ue.labels.slice():ue.xaxis.categories.slice();if(fe.isRangeBar=ue.chart.type==="rangeBar"&&fe.isBarHorizontal,fe.hasXaxisGroups=ue.xaxis.type==="category"&&ue.xaxis.group.groups.length>0,fe.hasXaxisGroups&&(fe.groups=ue.xaxis.group.groups),fe.hasSeriesGroups=(L=C[0])===null||L===void 0?void 0:L.group,fe.hasSeriesGroups){var Re=[],Xe=W(new Set(C.map(function(It){return It.group})));C.forEach(function(It,Tt){var ni=Xe.indexOf(It.group);Re[ni]||(Re[ni]=[]),Re[ni].push(It.name)}),fe.seriesGroups=Re}for(var qe=function(){for(var It=0;It<Pe.length;It++)if(typeof Pe[It]=="string"){if(!me.isValidDate(Pe[It]))throw new Error("You have provided invalid Date format. Please provide a valid JavaScript Date");F.twoDSeriesX.push(me.parseDate(Pe[It]))}else F.twoDSeriesX.push(Pe[It])},Ke=0;Ke<C.length;Ke++){if(this.twoDSeries=[],this.twoDSeriesX=[],this.threeDSeries=[],C[Ke].data===void 0)return void console.error("It is a possibility that you may have not included 'data' property in series.");if(ue.chart.type!=="rangeBar"&&ue.chart.type!=="rangeArea"&&C[Ke].type!=="rangeBar"&&C[Ke].type!=="rangeArea"||(fe.isRangeData=!0,ue.chart.type!=="rangeBar"&&ue.chart.type!=="rangeArea"||this.handleRangeData(C,Ke)),this.isMultiFormat())this.isFormat2DArray()?this.handleFormat2DArray(C,Ke):this.isFormatXY()&&this.handleFormatXY(C,Ke),ue.chart.type!=="candlestick"&&C[Ke].type!=="candlestick"&&ue.chart.type!=="boxPlot"&&C[Ke].type!=="boxPlot"||this.handleCandleStickBoxData(C,Ke),fe.series.push(this.twoDSeries),fe.labels.push(this.twoDSeriesX),fe.seriesX.push(this.twoDSeriesX),fe.seriesGoals=this.seriesGoals,Ke!==this.activeSeriesIndex||this.fallbackToCategory||(fe.isXNumeric=!0);else{ue.xaxis.type==="datetime"?(fe.isXNumeric=!0,qe(),fe.seriesX.push(this.twoDSeriesX)):ue.xaxis.type==="numeric"&&(fe.isXNumeric=!0,Pe.length>0&&(this.twoDSeriesX=Pe,fe.seriesX.push(this.twoDSeriesX))),fe.labels.push(this.twoDSeriesX);var nt=C[Ke].data.map(function(It){return Y.parseNumber(It)});fe.series.push(nt)}fe.seriesZ.push(this.threeDSeries),C[Ke].name!==void 0?fe.seriesNames.push(C[Ke].name):fe.seriesNames.push("series-"+parseInt(Ke+1,10)),C[Ke].color!==void 0?fe.seriesColors.push(C[Ke].color):fe.seriesColors.push(void 0)}return this.w}},{key:"parseDataNonAxisCharts",value:function(C){var L=this.w.globals,F=this.w.config;L.series=C.slice(),L.seriesNames=F.labels.slice();for(var ne=0;ne<L.series.length;ne++)L.seriesNames[ne]===void 0&&L.seriesNames.push("series-"+(ne+1));return this.w}},{key:"handleExternalLabelsData",value:function(C){var L=this.w.config,F=this.w.globals;L.xaxis.categories.length>0?F.labels=L.xaxis.categories:L.labels.length>0?F.labels=L.labels.slice():this.fallbackToCategory?(F.labels=F.labels[0],F.seriesRange.length&&(F.seriesRange.map(function(ne){ne.forEach(function(ue){F.labels.indexOf(ue.x)<0&&ue.x&&F.labels.push(ue.x)})}),F.labels=Array.from(new Set(F.labels.map(JSON.stringify)),JSON.parse)),L.xaxis.convertedCatToNumeric&&(new H(L).convertCatToNumericXaxis(L,this.ctx,F.seriesX[0]),this._generateExternalLabels(C))):this._generateExternalLabels(C)}},{key:"_generateExternalLabels",value:function(C){var L=this.w.globals,F=this.w.config,ne=[];if(L.axisCharts){if(L.series.length>0)if(this.isFormatXY())for(var ue=F.series.map(function(qe,Ke){return qe.data.filter(function(nt,It,Tt){return Tt.findIndex(function(ni){return ni.x===nt.x})===It})}),fe=ue.reduce(function(qe,Ke,nt,It){return It[qe].length>Ke.length?qe:nt},0),me=0;me<ue[fe].length;me++)ne.push(me+1);else for(var Pe=0;Pe<L.series[L.maxValsInArrayIndex].length;Pe++)ne.push(Pe+1);L.seriesX=[];for(var Re=0;Re<C.length;Re++)L.seriesX.push(ne);this.w.globals.isBarHorizontal||(L.isXNumeric=!0)}if(ne.length===0){ne=L.axisCharts?[]:L.series.map(function(qe,Ke){return Ke+1});for(var Xe=0;Xe<C.length;Xe++)L.seriesX.push(ne)}L.labels=ne,F.xaxis.convertedCatToNumeric&&(L.categoryLabels=ne.map(function(qe){return F.xaxis.labels.formatter(qe)})),L.noLabelsProvided=!0}},{key:"parseData",value:function(C){var L=this.w,F=L.config,ne=L.globals;if(this.excludeCollapsedSeriesInYAxis(),this.fallbackToCategory=!1,this.ctx.core.resetGlobals(),this.ctx.core.isMultipleY(),ne.axisCharts?(this.parseDataAxisCharts(C),this.coreUtils.getLargestSeries()):this.parseDataNonAxisCharts(C),F.chart.stacked){var ue=new Ue(this.ctx);ne.series=ue.setNullSeriesToZeroValues(ne.series)}this.coreUtils.getSeriesTotals(),ne.axisCharts&&(ne.stackedSeriesTotals=this.coreUtils.getStackedSeriesTotals(),ne.stackedSeriesTotalsByGroups=this.coreUtils.getStackedSeriesTotalsByGroups()),this.coreUtils.getPercentSeries(),ne.dataFormatXNumeric||ne.isXNumeric&&(F.xaxis.type!=="numeric"||F.labels.length!==0||F.xaxis.categories.length!==0)||this.handleExternalLabelsData(C);for(var fe=this.coreUtils.getCategoryLabels(ne.labels),me=0;me<fe.length;me++)if(Array.isArray(fe[me])){ne.isMultiLineX=!0;break}}},{key:"excludeCollapsedSeriesInYAxis",value:function(){var C=this,L=this.w;L.globals.ignoreYAxisIndexes=L.globals.collapsedSeries.map(function(F,ne){if(C.w.globals.isMultipleYAxis&&!L.config.chart.stacked)return F.index})}}]),ai}(),vt=function(){function ai(C){I(this,ai),this.ctx=C,this.w=C.w}return M(ai,[{key:"getLabel",value:function(C,L,F,ne){var ue=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],fe=arguments.length>5&&arguments[5]!==void 0?arguments[5]:"12px",me=!(arguments.length>6&&arguments[6]!==void 0)||arguments[6],Pe=this.w,Re=C[ne]===void 0?"":C[ne],Xe=Re,qe=Pe.globals.xLabelFormatter,Ke=Pe.config.xaxis.labels.formatter,nt=!1,It=new B(this.ctx),Tt=Re;me&&(Xe=It.xLabelFormat(qe,Re,Tt,{i:ne,dateFormatter:new k(this.ctx).formatDate,w:Pe}),Ke!==void 0&&(Xe=Ke(Re,C[ne],{i:ne,dateFormatter:new k(this.ctx).formatDate,w:Pe})));var ni,fi;L.length>0?(ni=L[ne].unit,fi=null,L.forEach(function(Ct){Ct.unit==="month"?fi="year":Ct.unit==="day"?fi="month":Ct.unit==="hour"?fi="day":Ct.unit==="minute"&&(fi="hour")}),nt=fi===ni,F=L[ne].position,Xe=L[ne].value):Pe.config.xaxis.type==="datetime"&&Ke===void 0&&(Xe=""),Xe===void 0&&(Xe=""),Xe=Array.isArray(Xe)?Xe:Xe.toString();var gi=new ge(this.ctx),je={};je=Pe.globals.rotateXLabels&&me?gi.getTextRects(Xe,parseInt(fe,10),null,"rotate(".concat(Pe.config.xaxis.labels.rotate," 0 0)"),!1):gi.getTextRects(Xe,parseInt(fe,10));var it=!Pe.config.xaxis.labels.showDuplicates&&this.ctx.timeScale;return!Array.isArray(Xe)&&(Xe.indexOf("NaN")===0||Xe.toLowerCase().indexOf("invalid")===0||Xe.toLowerCase().indexOf("infinity")>=0||ue.indexOf(Xe)>=0&&it)&&(Xe=""),{x:F,text:Xe,textRect:je,isBold:nt}}},{key:"checkLabelBasedOnTickamount",value:function(C,L,F){var ne=this.w,ue=ne.config.xaxis.tickAmount;return ue==="dataPoints"&&(ue=Math.round(ne.globals.gridWidth/120)),ue>F||C%Math.round(F/(ue+1))==0||(L.text=""),L}},{key:"checkForOverflowingLabels",value:function(C,L,F,ne,ue){var fe=this.w;if(C===0&&fe.globals.skipFirstTimelinelabel&&(L.text=""),C===F-1&&fe.globals.skipLastTimelinelabel&&(L.text=""),fe.config.xaxis.labels.hideOverlappingLabels&&ne.length>0){var me=ue[ue.length-1];L.x<me.textRect.width/(fe.globals.rotateXLabels?Math.abs(fe.config.xaxis.labels.rotate)/12:1.01)+me.x&&(L.text="")}return L}},{key:"checkForReversedLabels",value:function(C,L){var F=this.w;return F.config.yaxis[C]&&F.config.yaxis[C].reversed&&L.reverse(),L}},{key:"isYAxisHidden",value:function(C){var L=this.w,F=new be(this.ctx);return!L.config.yaxis[C].show||!L.config.yaxis[C].showForNullSeries&&F.isSeriesNull(C)&&L.globals.collapsedSeriesIndices.indexOf(C)===-1}},{key:"getYAxisForeColor",value:function(C,L){var F=this.w;return Array.isArray(C)&&F.globals.yAxisScale[L]&&this.ctx.theme.pushExtraColors(C,F.globals.yAxisScale[L].result.length,!1),C}},{key:"drawYAxisTicks",value:function(C,L,F,ne,ue,fe,me){var Pe=this.w,Re=new ge(this.ctx),Xe=Pe.globals.translateY;if(ne.show&&L>0){Pe.config.yaxis[ue].opposite===!0&&(C+=ne.width);for(var qe=L;qe>=0;qe--){var Ke=Xe+L/10+Pe.config.yaxis[ue].labels.offsetY-1;Pe.globals.isBarHorizontal&&(Ke=fe*qe),Pe.config.chart.type==="heatmap"&&(Ke+=fe/2);var nt=Re.drawLine(C+F.offsetX-ne.width+ne.offsetX,Ke+ne.offsetY,C+F.offsetX+ne.offsetX,Ke+ne.offsetY,ne.color);me.add(nt),Xe+=fe}}}}]),ai}(),ri=function(){function ai(C){I(this,ai),this.ctx=C,this.w=C.w}return M(ai,[{key:"scaleSvgNode",value:function(C,L){var F=parseFloat(C.getAttributeNS(null,"width")),ne=parseFloat(C.getAttributeNS(null,"height"));C.setAttributeNS(null,"width",F*L),C.setAttributeNS(null,"height",ne*L),C.setAttributeNS(null,"viewBox","0 0 "+F+" "+ne)}},{key:"fixSvgStringForIe11",value:function(C){if(!Y.isIE11())return C.replace(/&nbsp;/g,"&#160;");var L=0,F=C.replace(/xmlns="http:\/\/www.w3.org\/2000\/svg"/g,function(ne){return++L===2?'xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svgjs="http://svgjs.dev"':ne});return F=(F=F.replace(/xmlns:NS\d+=""/g,"")).replace(/NS\d+:(\w+:\w+=")/g,"$1")}},{key:"getSvgString",value:function(C){C==null&&(C=1);var L=this.w.globals.dom.Paper.svg();if(C!==1){var F=this.w.globals.dom.Paper.node.cloneNode(!0);this.scaleSvgNode(F,C),L=new XMLSerializer().serializeToString(F)}return this.fixSvgStringForIe11(L)}},{key:"cleanup",value:function(){var C=this.w,L=C.globals.dom.baseEl.getElementsByClassName("apexcharts-xcrosshairs"),F=C.globals.dom.baseEl.getElementsByClassName("apexcharts-ycrosshairs"),ne=C.globals.dom.baseEl.querySelectorAll(".apexcharts-zoom-rect, .apexcharts-selection-rect");Array.prototype.forEach.call(ne,function(ue){ue.setAttribute("width",0)}),L&&L[0]&&(L[0].setAttribute("x",-500),L[0].setAttribute("x1",-500),L[0].setAttribute("x2",-500)),F&&F[0]&&(F[0].setAttribute("y",-100),F[0].setAttribute("y1",-100),F[0].setAttribute("y2",-100))}},{key:"svgUrl",value:function(){this.cleanup();var C=this.getSvgString(),L=new Blob([C],{type:"image/svg+xml;charset=utf-8"});return URL.createObjectURL(L)}},{key:"dataURI",value:function(C){var L=this;return new Promise(function(F){var ne=L.w,ue=C?C.scale||C.width/ne.globals.svgWidth:1;L.cleanup();var fe=document.createElement("canvas");fe.width=ne.globals.svgWidth*ue,fe.height=parseInt(ne.globals.dom.elWrap.style.height,10)*ue;var me=ne.config.chart.background==="transparent"?"#fff":ne.config.chart.background,Pe=fe.getContext("2d");Pe.fillStyle=me,Pe.fillRect(0,0,fe.width*ue,fe.height*ue);var Re=L.getSvgString(ue);if(window.canvg&&Y.isIE11()){var Xe=window.canvg.Canvg.fromString(Pe,Re,{ignoreClear:!0,ignoreDimensions:!0});Xe.start();var qe=fe.msToBlob();Xe.stop(),F({blob:qe})}else{var Ke="data:image/svg+xml,"+encodeURIComponent(Re),nt=new Image;nt.crossOrigin="anonymous",nt.onload=function(){if(Pe.drawImage(nt,0,0),fe.msToBlob){var It=fe.msToBlob();F({blob:It})}else{var Tt=fe.toDataURL("image/png");F({imgURI:Tt})}},nt.src=Ke}})}},{key:"exportToSVG",value:function(){this.triggerDownload(this.svgUrl(),this.w.config.chart.toolbar.export.svg.filename,".svg")}},{key:"exportToPng",value:function(){var C=this;this.dataURI().then(function(L){var F=L.imgURI,ne=L.blob;ne?navigator.msSaveOrOpenBlob(ne,C.w.globals.chartID+".png"):C.triggerDownload(F,C.w.config.chart.toolbar.export.png.filename,".png")})}},{key:"exportToCSV",value:function(C){var L=this,F=C.series,ne=C.fileName,ue=C.columnDelimiter,fe=ue===void 0?",":ue,me=C.lineDelimiter,Pe=me===void 0?`
`:me,Re=this.w;F||(F=Re.config.series);var Xe,qe,Ke=[],nt=[],It="",Tt=Re.globals.series.map(function(si,di){return Re.globals.collapsedSeriesIndices.indexOf(di)===-1?si:[]}),ni=function(si){return Re.config.xaxis.type==="datetime"&&String(si).length>=10},fi=Math.max.apply(Math,W(F.map(function(si){return si.data?si.data.length:0}))),gi=new Qe(this.ctx),je=new vt(this.ctx),it=function(si){var di="";if(Re.globals.axisCharts){if(Re.config.xaxis.type==="category"||Re.config.xaxis.convertedCatToNumeric)if(Re.globals.isBarHorizontal){var yi=Re.globals.yLabelFormatters[0],nM=new Ue(L.ctx).getActiveConfigSeriesIndex();di=yi(Re.globals.labels[si],{seriesIndex:nM,dataPointIndex:si,w:Re})}else di=je.getLabel(Re.globals.labels,Re.globals.timescaleLabels,0,si).text;Re.config.xaxis.type==="datetime"&&(Re.config.xaxis.categories.length?di=Re.config.xaxis.categories[si]:Re.config.labels.length&&(di=Re.config.labels[si]))}else di=Re.config.labels[si];return Array.isArray(di)&&(di=di.join(" ")),Y.isNumber(di)?di:di.split(fe).join("")},Ct=function(si,di){if(Ke.length&&di===0&&nt.push(Ke.join(fe)),si.data){si.data=si.data.length&&si.data||W(Array(fi)).map(function(){return""});for(var yi=0;yi<si.data.length;yi++){Ke=[];var nM=it(yi);if(nM||(gi.isFormatXY()?nM=F[di].data[yi].x:gi.isFormat2DArray()&&(nM=F[di].data[yi]?F[di].data[yi][0]:"")),di===0){Ke.push(ni(nM)?Re.config.chart.toolbar.export.csv.dateFormatter(nM):Y.isNumber(nM)?nM:nM.split(fe).join(""));for(var iM=0;iM<Re.globals.series.length;iM++){var mM;gi.isFormatXY()?Ke.push((mM=F[iM].data[yi])===null||mM===void 0?void 0:mM.y):Ke.push(Tt[iM][yi])}}(Re.config.chart.type==="candlestick"||si.type&&si.type==="candlestick")&&(Ke.pop(),Ke.push(Re.globals.seriesCandleO[di][yi]),Ke.push(Re.globals.seriesCandleH[di][yi]),Ke.push(Re.globals.seriesCandleL[di][yi]),Ke.push(Re.globals.seriesCandleC[di][yi])),(Re.config.chart.type==="boxPlot"||si.type&&si.type==="boxPlot")&&(Ke.pop(),Ke.push(Re.globals.seriesCandleO[di][yi]),Ke.push(Re.globals.seriesCandleH[di][yi]),Ke.push(Re.globals.seriesCandleM[di][yi]),Ke.push(Re.globals.seriesCandleL[di][yi]),Ke.push(Re.globals.seriesCandleC[di][yi])),Re.config.chart.type==="rangeBar"&&(Ke.pop(),Ke.push(Re.globals.seriesRangeStart[di][yi]),Ke.push(Re.globals.seriesRangeEnd[di][yi])),Ke.length&&nt.push(Ke.join(fe))}}};Ke.push(Re.config.chart.toolbar.export.csv.headerCategory),Re.config.chart.type==="boxPlot"?(Ke.push("minimum"),Ke.push("q1"),Ke.push("median"),Ke.push("q3"),Ke.push("maximum")):Re.config.chart.type==="candlestick"?(Ke.push("open"),Ke.push("high"),Ke.push("low"),Ke.push("close")):Re.config.chart.type==="rangeBar"?(Ke.push("minimum"),Ke.push("maximum")):F.map(function(si,di){var yi=(si.name?si.name:"series-".concat(di))+"";Re.globals.axisCharts&&Ke.push(yi.split(fe).join("")?yi.split(fe).join(""):"series-".concat(di))}),Re.globals.axisCharts||(Ke.push(Re.config.chart.toolbar.export.csv.headerValue),nt.push(Ke.join(fe))),Re.globals.allSeriesHasEqualX||!Re.globals.axisCharts||Re.config.xaxis.categories.length||Re.config.labels.length?F.map(function(si,di){Re.globals.axisCharts?Ct(si,di):((Ke=[]).push(Re.globals.labels[di].split(fe).join("")),Ke.push(Tt[di]),nt.push(Ke.join(fe)))}):(Xe=new Set,qe={},F.forEach(function(si,di){si?.data.forEach(function(yi){var nM,iM;if(gi.isFormatXY())nM=yi.x,iM=yi.y;else{if(!gi.isFormat2DArray())return;nM=yi[0],iM=yi[1]}qe[nM]||(qe[nM]=Array(F.length).fill("")),qe[nM][di]=iM,Xe.add(nM)})}),Ke.length&&nt.push(Ke.join(fe)),Array.from(Xe).sort().forEach(function(si){nt.push([ni(si)&&Re.config.xaxis.type==="datetime"?Re.config.chart.toolbar.export.csv.dateFormatter(si):Y.isNumber(si)?si:si.split(fe).join(""),qe[si].join(fe)])})),It+=nt.join(Pe),this.triggerDownload("data:text/csv; charset=utf-8,"+encodeURIComponent("\uFEFF"+It),ne||Re.config.chart.toolbar.export.csv.filename,".csv")}},{key:"triggerDownload",value:function(C,L,F){var ne=document.createElement("a");ne.href=C,ne.download=(L||this.w.globals.chartID)+F,document.body.appendChild(ne),ne.click(),document.body.removeChild(ne)}}]),ai}(),ci=function(){function ai(C,L){I(this,ai),this.ctx=C,this.elgrid=L,this.w=C.w;var F=this.w;this.axesUtils=new vt(C),this.xaxisLabels=F.globals.labels.slice(),F.globals.timescaleLabels.length>0&&!F.globals.isBarHorizontal&&(this.xaxisLabels=F.globals.timescaleLabels.slice()),F.config.xaxis.overwriteCategories&&(this.xaxisLabels=F.config.xaxis.overwriteCategories),this.drawnLabels=[],this.drawnLabelsRects=[],F.config.xaxis.position==="top"?this.offY=0:this.offY=F.globals.gridHeight+1,this.offY=this.offY+F.config.xaxis.axisBorder.offsetY,this.isCategoryBarHorizontal=F.config.chart.type==="bar"&&F.config.plotOptions.bar.horizontal,this.xaxisFontSize=F.config.xaxis.labels.style.fontSize,this.xaxisFontFamily=F.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=F.config.xaxis.labels.style.colors,this.xaxisBorderWidth=F.config.xaxis.axisBorder.width,this.isCategoryBarHorizontal&&(this.xaxisBorderWidth=F.config.yaxis[0].axisBorder.width.toString()),this.xaxisBorderWidth.indexOf("%")>-1?this.xaxisBorderWidth=F.globals.gridWidth*parseInt(this.xaxisBorderWidth,10)/100:this.xaxisBorderWidth=parseInt(this.xaxisBorderWidth,10),this.xaxisBorderHeight=F.config.xaxis.axisBorder.height,this.yaxis=F.config.yaxis[0]}return M(ai,[{key:"drawXaxis",value:function(){var C=this.w,L=new ge(this.ctx),F=L.group({class:"apexcharts-xaxis",transform:"translate(".concat(C.config.xaxis.offsetX,", ").concat(C.config.xaxis.offsetY,")")}),ne=L.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(C.globals.translateXAxisX,", ").concat(C.globals.translateXAxisY,")")});F.add(ne);for(var ue=[],fe=0;fe<this.xaxisLabels.length;fe++)ue.push(this.xaxisLabels[fe]);if(this.drawXAxisLabelAndGroup(!0,L,ne,ue,C.globals.isXNumeric,function(It,Tt){return Tt}),C.globals.hasXaxisGroups){var me=C.globals.groups;ue=[];for(var Pe=0;Pe<me.length;Pe++)ue.push(me[Pe].title);var Re={};C.config.xaxis.group.style&&(Re.xaxisFontSize=C.config.xaxis.group.style.fontSize,Re.xaxisFontFamily=C.config.xaxis.group.style.fontFamily,Re.xaxisForeColors=C.config.xaxis.group.style.colors,Re.fontWeight=C.config.xaxis.group.style.fontWeight,Re.cssClass=C.config.xaxis.group.style.cssClass),this.drawXAxisLabelAndGroup(!1,L,ne,ue,!1,function(It,Tt){return me[It].cols*Tt},Re)}if(C.config.xaxis.title.text!==void 0){var Xe=L.group({class:"apexcharts-xaxis-title"}),qe=L.drawText({x:C.globals.gridWidth/2+C.config.xaxis.title.offsetX,y:this.offY+parseFloat(this.xaxisFontSize)+(C.config.xaxis.position==="bottom"?C.globals.xAxisLabelsHeight:-C.globals.xAxisLabelsHeight-10)+C.config.xaxis.title.offsetY,text:C.config.xaxis.title.text,textAnchor:"middle",fontSize:C.config.xaxis.title.style.fontSize,fontFamily:C.config.xaxis.title.style.fontFamily,fontWeight:C.config.xaxis.title.style.fontWeight,foreColor:C.config.xaxis.title.style.color,cssClass:"apexcharts-xaxis-title-text "+C.config.xaxis.title.style.cssClass});Xe.add(qe),F.add(Xe)}if(C.config.xaxis.axisBorder.show){var Ke=C.globals.barPadForNumericAxis,nt=L.drawLine(C.globals.padHorizontal+C.config.xaxis.axisBorder.offsetX-Ke,this.offY,this.xaxisBorderWidth+Ke,this.offY,C.config.xaxis.axisBorder.color,0,this.xaxisBorderHeight);this.elgrid&&this.elgrid.elGridBorders&&C.config.grid.show?this.elgrid.elGridBorders.add(nt):F.add(nt)}return F}},{key:"drawXAxisLabelAndGroup",value:function(C,L,F,ne,ue,fe){var me,Pe=this,Re=arguments.length>6&&arguments[6]!==void 0?arguments[6]:{},Xe=[],qe=[],Ke=this.w,nt=Re.xaxisFontSize||this.xaxisFontSize,It=Re.xaxisFontFamily||this.xaxisFontFamily,Tt=Re.xaxisForeColors||this.xaxisForeColors,ni=Re.fontWeight||Ke.config.xaxis.labels.style.fontWeight,fi=Re.cssClass||Ke.config.xaxis.labels.style.cssClass,gi=Ke.globals.padHorizontal,je=ne.length,it=Ke.config.xaxis.type==="category"?Ke.globals.dataPoints:je;if(it===0&&je>it&&(it=je),ue){var Ct=it>1?it-1:it;me=Ke.globals.gridWidth/Math.min(Ct,je-1),gi=gi+fe(0,me)/2+Ke.config.xaxis.labels.offsetX}else me=Ke.globals.gridWidth/it,gi=gi+fe(0,me)+Ke.config.xaxis.labels.offsetX;for(var si=function(yi){var nM=gi-fe(yi,me)/2+Ke.config.xaxis.labels.offsetX;yi===0&&je===1&&me/2===gi&&it===1&&(nM=Ke.globals.gridWidth/2);var iM=Pe.axesUtils.getLabel(ne,Ke.globals.timescaleLabels,nM,yi,Xe,nt,C),mM=28;if(Ke.globals.rotateXLabels&&C&&(mM=22),Ke.config.xaxis.title.text&&Ke.config.xaxis.position==="top"&&(mM+=parseFloat(Ke.config.xaxis.title.style.fontSize)+2),C||(mM=mM+parseFloat(nt)+(Ke.globals.xAxisLabelsHeight-Ke.globals.xAxisGroupLabelsHeight)+(Ke.globals.rotateXLabels?10:0)),iM=Ke.config.xaxis.tickAmount!==void 0&&Ke.config.xaxis.tickAmount!=="dataPoints"&&Ke.config.xaxis.type!=="datetime"?Pe.axesUtils.checkLabelBasedOnTickamount(yi,iM,je):Pe.axesUtils.checkForOverflowingLabels(yi,iM,je,Xe,qe),Ke.config.xaxis.labels.show){var EM=L.drawText({x:iM.x,y:Pe.offY+Ke.config.xaxis.labels.offsetY+mM-(Ke.config.xaxis.position==="top"?Ke.globals.xAxisHeight+Ke.config.xaxis.axisTicks.height-2:0),text:iM.text,textAnchor:"middle",fontWeight:iM.isBold?600:ni,fontSize:nt,fontFamily:It,foreColor:Array.isArray(Tt)?C&&Ke.config.xaxis.convertedCatToNumeric?Tt[Ke.globals.minX+yi-1]:Tt[yi]:Tt,isPlainText:!1,cssClass:(C?"apexcharts-xaxis-label ":"apexcharts-xaxis-group-label ")+fi});if(F.add(EM),EM.on("click",function(GM){if(typeof Ke.config.chart.events.xAxisLabelClick=="function"){var qM=Object.assign({},Ke,{labelIndex:yi});Ke.config.chart.events.xAxisLabelClick(GM,Pe.ctx,qM)}}),C){var wM=document.createElementNS(Ke.globals.SVGNS,"title");wM.textContent=Array.isArray(iM.text)?iM.text.join(" "):iM.text,EM.node.appendChild(wM),iM.text!==""&&(Xe.push(iM.text),qe.push(iM))}}yi<je-1&&(gi+=fe(yi+1,me))},di=0;di<=je-1;di++)si(di)}},{key:"drawXaxisInversed",value:function(C){var L,F,ne=this,ue=this.w,fe=new ge(this.ctx),me=ue.config.yaxis[0].opposite?ue.globals.translateYAxisX[C]:0,Pe=fe.group({class:"apexcharts-yaxis apexcharts-xaxis-inversed",rel:C}),Re=fe.group({class:"apexcharts-yaxis-texts-g apexcharts-xaxis-inversed-texts-g",transform:"translate("+me+", 0)"});Pe.add(Re);var Xe=[];if(ue.config.yaxis[C].show)for(var qe=0;qe<this.xaxisLabels.length;qe++)Xe.push(this.xaxisLabels[qe]);L=ue.globals.gridHeight/Xe.length,F=-L/2.2;var Ke=ue.globals.yLabelFormatters[0],nt=ue.config.yaxis[0].labels;if(nt.show)for(var It=function(Ct){var si=Xe[Ct]===void 0?"":Xe[Ct];si=Ke(si,{seriesIndex:C,dataPointIndex:Ct,w:ue});var di=ne.axesUtils.getYAxisForeColor(nt.style.colors,C),yi=0;Array.isArray(si)&&(yi=si.length/2*parseInt(nt.style.fontSize,10));var nM=nt.offsetX-15,iM="end";ne.yaxis.opposite&&(iM="start"),ue.config.yaxis[0].labels.align==="left"?(nM=nt.offsetX,iM="start"):ue.config.yaxis[0].labels.align==="center"?(nM=nt.offsetX,iM="middle"):ue.config.yaxis[0].labels.align==="right"&&(iM="end");var mM=fe.drawText({x:nM,y:F+L+nt.offsetY-yi,text:si,textAnchor:iM,foreColor:Array.isArray(di)?di[Ct]:di,fontSize:nt.style.fontSize,fontFamily:nt.style.fontFamily,fontWeight:nt.style.fontWeight,isPlainText:!1,cssClass:"apexcharts-yaxis-label "+nt.style.cssClass,maxWidth:nt.maxWidth});Re.add(mM),mM.on("click",function(GM){if(typeof ue.config.chart.events.xAxisLabelClick=="function"){var qM=Object.assign({},ue,{labelIndex:Ct});ue.config.chart.events.xAxisLabelClick(GM,ne.ctx,qM)}});var EM=document.createElementNS(ue.globals.SVGNS,"title");if(EM.textContent=Array.isArray(si)?si.join(" "):si,mM.node.appendChild(EM),ue.config.yaxis[C].labels.rotate!==0){var wM=fe.rotateAroundCenter(mM.node);mM.node.setAttribute("transform","rotate(".concat(ue.config.yaxis[C].labels.rotate," 0 ").concat(wM.y,")"))}F+=L},Tt=0;Tt<=Xe.length-1;Tt++)It(Tt);if(ue.config.yaxis[0].title.text!==void 0){var ni=fe.group({class:"apexcharts-yaxis-title apexcharts-xaxis-title-inversed",transform:"translate("+me+", 0)"}),fi=fe.drawText({x:ue.config.yaxis[0].title.offsetX,y:ue.globals.gridHeight/2+ue.config.yaxis[0].title.offsetY,text:ue.config.yaxis[0].title.text,textAnchor:"middle",foreColor:ue.config.yaxis[0].title.style.color,fontSize:ue.config.yaxis[0].title.style.fontSize,fontWeight:ue.config.yaxis[0].title.style.fontWeight,fontFamily:ue.config.yaxis[0].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text "+ue.config.yaxis[0].title.style.cssClass});ni.add(fi),Pe.add(ni)}var gi=0;this.isCategoryBarHorizontal&&ue.config.yaxis[0].opposite&&(gi=ue.globals.gridWidth);var je=ue.config.xaxis.axisBorder;if(je.show){var it=fe.drawLine(ue.globals.padHorizontal+je.offsetX+gi,1+je.offsetY,ue.globals.padHorizontal+je.offsetX+gi,ue.globals.gridHeight+je.offsetY,je.color,0);this.elgrid&&this.elgrid.elGridBorders&&ue.config.grid.show?this.elgrid.elGridBorders.add(it):Pe.add(it)}return ue.config.yaxis[0].axisTicks.show&&this.axesUtils.drawYAxisTicks(gi,Xe.length,ue.config.yaxis[0].axisBorder,ue.config.yaxis[0].axisTicks,0,L,Pe),Pe}},{key:"drawXaxisTicks",value:function(C,L,F){var ne=this.w,ue=C;if(!(C<0||C-2>ne.globals.gridWidth)){var fe=this.offY+ne.config.xaxis.axisTicks.offsetY;if(L=L+fe+ne.config.xaxis.axisTicks.height,ne.config.xaxis.position==="top"&&(L=fe-ne.config.xaxis.axisTicks.height),ne.config.xaxis.axisTicks.show){var me=new ge(this.ctx).drawLine(C+ne.config.xaxis.axisTicks.offsetX,fe+ne.config.xaxis.offsetY,ue+ne.config.xaxis.axisTicks.offsetX,L+ne.config.xaxis.offsetY,ne.config.xaxis.axisTicks.color);F.add(me),me.node.classList.add("apexcharts-xaxis-tick")}}}},{key:"getXAxisTicksPositions",value:function(){var C=this.w,L=[],F=this.xaxisLabels.length,ne=C.globals.padHorizontal;if(C.globals.timescaleLabels.length>0)for(var ue=0;ue<F;ue++)ne=this.xaxisLabels[ue].position,L.push(ne);else for(var fe=F,me=0;me<fe;me++){var Pe=fe;C.globals.isXNumeric&&C.config.chart.type!=="bar"&&(Pe-=1),ne+=C.globals.gridWidth/Pe,L.push(ne)}return L}},{key:"xAxisLabelCorrections",value:function(){var C=this.w,L=new ge(this.ctx),F=C.globals.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g"),ne=C.globals.dom.baseEl.querySelectorAll(".apexcharts-xaxis-texts-g text:not(.apexcharts-xaxis-group-label)"),ue=C.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis-inversed text"),fe=C.globals.dom.baseEl.querySelectorAll(".apexcharts-xaxis-inversed-texts-g text tspan");if(C.globals.rotateXLabels||C.config.xaxis.labels.rotateAlways)for(var me=0;me<ne.length;me++){var Pe=L.rotateAroundCenter(ne[me]);Pe.y=Pe.y-1,Pe.x=Pe.x+1,ne[me].setAttribute("transform","rotate(".concat(C.config.xaxis.labels.rotate," ").concat(Pe.x," ").concat(Pe.y,")")),ne[me].setAttribute("text-anchor","end"),F.setAttribute("transform","translate(0, ".concat(-10,")"));var Re=ne[me].childNodes;C.config.xaxis.labels.trim&&Array.prototype.forEach.call(Re,function(nt){L.placeTextWithEllipsis(nt,nt.textContent,C.globals.xAxisLabelsHeight-(C.config.legend.position==="bottom"?20:10))})}else(function(){for(var nt=C.globals.gridWidth/(C.globals.labels.length+1),It=0;It<ne.length;It++){var Tt=ne[It].childNodes;C.config.xaxis.labels.trim&&C.config.xaxis.type!=="datetime"&&Array.prototype.forEach.call(Tt,function(ni){L.placeTextWithEllipsis(ni,ni.textContent,nt)})}})();if(ue.length>0){var Xe=ue[ue.length-1].getBBox(),qe=ue[0].getBBox();Xe.x<-20&&ue[ue.length-1].parentNode.removeChild(ue[ue.length-1]),qe.x+qe.width>C.globals.gridWidth&&!C.globals.isBarHorizontal&&ue[0].parentNode.removeChild(ue[0]);for(var Ke=0;Ke<fe.length;Ke++)L.placeTextWithEllipsis(fe[Ke],fe[Ke].textContent,C.config.yaxis[0].labels.maxWidth-(C.config.yaxis[0].title.text?2*parseFloat(C.config.yaxis[0].title.style.fontSize):0)-15)}}}]),ai}(),tt=function(){function ai(C){I(this,ai),this.ctx=C,this.w=C.w;var L=this.w;this.xaxisLabels=L.globals.labels.slice(),this.axesUtils=new vt(C),this.isRangeBar=L.globals.seriesRange.length&&L.globals.isBarHorizontal,L.globals.timescaleLabels.length>0&&(this.xaxisLabels=L.globals.timescaleLabels.slice())}return M(ai,[{key:"drawGridArea",value:function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,L=this.w,F=new ge(this.ctx);C===null&&(C=F.group({class:"apexcharts-grid"}));var ne=F.drawLine(L.globals.padHorizontal,1,L.globals.padHorizontal,L.globals.gridHeight,"transparent"),ue=F.drawLine(L.globals.padHorizontal,L.globals.gridHeight,L.globals.gridWidth,L.globals.gridHeight,"transparent");return C.add(ue),C.add(ne),C}},{key:"drawGrid",value:function(){var C=null;return this.w.globals.axisCharts&&(C=this.renderGrid(),this.drawGridArea(C.el)),C}},{key:"createGridMask",value:function(){var C=this.w,L=C.globals,F=new ge(this.ctx),ne=Array.isArray(C.config.stroke.width)?0:C.config.stroke.width;if(Array.isArray(C.config.stroke.width)){var ue=0;C.config.stroke.width.forEach(function(qe){ue=Math.max(ue,qe)}),ne=ue}L.dom.elGridRectMask=document.createElementNS(L.SVGNS,"clipPath"),L.dom.elGridRectMask.setAttribute("id","gridRectMask".concat(L.cuid)),L.dom.elGridRectMarkerMask=document.createElementNS(L.SVGNS,"clipPath"),L.dom.elGridRectMarkerMask.setAttribute("id","gridRectMarkerMask".concat(L.cuid)),L.dom.elForecastMask=document.createElementNS(L.SVGNS,"clipPath"),L.dom.elForecastMask.setAttribute("id","forecastMask".concat(L.cuid)),L.dom.elNonForecastMask=document.createElementNS(L.SVGNS,"clipPath"),L.dom.elNonForecastMask.setAttribute("id","nonForecastMask".concat(L.cuid));var fe=C.config.chart.type,me=0,Pe=0;(fe==="bar"||fe==="rangeBar"||fe==="candlestick"||fe==="boxPlot"||C.globals.comboBarCount>0)&&C.globals.isXNumeric&&!C.globals.isBarHorizontal&&(me=C.config.grid.padding.left,Pe=C.config.grid.padding.right,L.barPadForNumericAxis>me&&(me=L.barPadForNumericAxis,Pe=L.barPadForNumericAxis)),L.dom.elGridRect=F.drawRect(-ne-me-2,2*-ne-2,L.gridWidth+ne+Pe+me+4,L.gridHeight+4*ne+4,0,"#fff");var Re=C.globals.markers.largestSize+1;L.dom.elGridRectMarker=F.drawRect(2*-Re,2*-Re,L.gridWidth+4*Re,L.gridHeight+4*Re,0,"#fff"),L.dom.elGridRectMask.appendChild(L.dom.elGridRect.node),L.dom.elGridRectMarkerMask.appendChild(L.dom.elGridRectMarker.node);var Xe=L.dom.baseEl.querySelector("defs");Xe.appendChild(L.dom.elGridRectMask),Xe.appendChild(L.dom.elForecastMask),Xe.appendChild(L.dom.elNonForecastMask),Xe.appendChild(L.dom.elGridRectMarkerMask)}},{key:"_drawGridLines",value:function(C){var L=C.i,F=C.x1,ne=C.y1,ue=C.x2,fe=C.y2,me=C.xCount,Pe=C.parent,Re=this.w;if(!(L===0&&Re.globals.skipFirstTimelinelabel||L===me-1&&Re.globals.skipLastTimelinelabel&&!Re.config.xaxis.labels.formatter||Re.config.chart.type==="radar")){Re.config.grid.xaxis.lines.show&&this._drawGridLine({i:L,x1:F,y1:ne,x2:ue,y2:fe,xCount:me,parent:Pe});var Xe=0;if(Re.globals.hasXaxisGroups&&Re.config.xaxis.tickPlacement==="between"){var qe=Re.globals.groups;if(qe){for(var Ke=0,nt=0;Ke<L&&nt<qe.length;nt++)Ke+=qe[nt].cols;Ke===L&&(Xe=.6*Re.globals.xAxisLabelsHeight)}}new ci(this.ctx).drawXaxisTicks(F,Xe,Re.globals.dom.elGraphical)}}},{key:"_drawGridLine",value:function(C){var L=C.i,F=C.x1,ne=C.y1,ue=C.x2,fe=C.y2,me=C.xCount,Pe=C.parent,Re=this.w,Xe=!1,qe=Pe.node.classList.contains("apexcharts-gridlines-horizontal"),Ke=Re.config.grid.strokeDashArray,nt=Re.globals.barPadForNumericAxis;(ne===0&&fe===0||F===0&&ue===0)&&(Xe=!0),ne===Re.globals.gridHeight&&fe===Re.globals.gridHeight&&(Xe=!0),!Re.globals.isBarHorizontal||L!==0&&L!==me-1||(Xe=!0);var It=new ge(this).drawLine(F-(qe?nt:0),ne,ue+(qe?nt:0),fe,Re.config.grid.borderColor,Ke);It.node.classList.add("apexcharts-gridline"),Xe&&Re.config.grid.show?this.elGridBorders.add(It):Pe.add(It)}},{key:"_drawGridBandRect",value:function(C){var L=C.c,F=C.x1,ne=C.y1,ue=C.x2,fe=C.y2,me=C.type,Pe=this.w,Re=new ge(this.ctx),Xe=Pe.globals.barPadForNumericAxis;if(me!=="column"||Pe.config.xaxis.type!=="datetime"){var qe=Pe.config.grid[me].colors[L],Ke=Re.drawRect(F-(me==="row"?Xe:0),ne,ue+(me==="row"?2*Xe:0),fe,0,qe,Pe.config.grid[me].opacity);this.elg.add(Ke),Ke.attr("clip-path","url(#gridRectMask".concat(Pe.globals.cuid,")")),Ke.node.classList.add("apexcharts-grid-".concat(me))}}},{key:"_drawXYLines",value:function(C){var L=this,F=C.xCount,ne=C.tickAmount,ue=this.w;if(ue.config.grid.xaxis.lines.show||ue.config.xaxis.axisTicks.show){var fe,me=ue.globals.padHorizontal,Pe=ue.globals.gridHeight;ue.globals.timescaleLabels.length?function(It){for(var Tt=It.xC,ni=It.x1,fi=It.y1,gi=It.x2,je=It.y2,it=0;it<Tt;it++)ni=L.xaxisLabels[it].position,gi=L.xaxisLabels[it].position,L._drawGridLines({i:it,x1:ni,y1:fi,x2:gi,y2:je,xCount:F,parent:L.elgridLinesV})}({xC:F,x1:me,y1:0,x2:fe,y2:Pe}):(ue.globals.isXNumeric&&(F=ue.globals.xAxisScale.result.length),function(It){for(var Tt=It.xC,ni=It.x1,fi=It.y1,gi=It.x2,je=It.y2,it=0;it<Tt+(ue.globals.isXNumeric?0:1);it++)it===0&&Tt===1&&ue.globals.dataPoints===1&&(gi=ni=ue.globals.gridWidth/2),L._drawGridLines({i:it,x1:ni,y1:fi,x2:gi,y2:je,xCount:F,parent:L.elgridLinesV}),gi=ni+=ue.globals.gridWidth/(ue.globals.isXNumeric?Tt-1:Tt)}({xC:F,x1:me,y1:0,x2:fe,y2:Pe}))}if(ue.config.grid.yaxis.lines.show){var Re=0,Xe=0,qe=ue.globals.gridWidth,Ke=ne+1;this.isRangeBar&&(Ke=ue.globals.labels.length);for(var nt=0;nt<Ke+(this.isRangeBar?1:0);nt++)this._drawGridLine({i:nt,xCount:Ke+(this.isRangeBar?1:0),x1:0,y1:Re,x2:qe,y2:Xe,parent:this.elgridLinesH}),Xe=Re+=ue.globals.gridHeight/(this.isRangeBar?Ke:ne)}}},{key:"_drawInvertedXYLines",value:function(C){var L=C.xCount,F=this.w;if(F.config.grid.xaxis.lines.show||F.config.xaxis.axisTicks.show)for(var ne,ue=F.globals.padHorizontal,fe=F.globals.gridHeight,me=0;me<L+1;me++)F.config.grid.xaxis.lines.show&&this._drawGridLine({i:me,xCount:L+1,x1:ue,y1:0,x2:ne,y2:fe,parent:this.elgridLinesV}),new ci(this.ctx).drawXaxisTicks(ue,0,F.globals.dom.elGraphical),ne=ue=ue+F.globals.gridWidth/L+.3;if(F.config.grid.yaxis.lines.show)for(var Pe=0,Re=0,Xe=F.globals.gridWidth,qe=0;qe<F.globals.dataPoints+1;qe++)this._drawGridLine({i:qe,xCount:F.globals.dataPoints+1,x1:0,y1:Pe,x2:Xe,y2:Re,parent:this.elgridLinesH}),Re=Pe+=F.globals.gridHeight/F.globals.dataPoints}},{key:"renderGrid",value:function(){var C=this.w,L=new ge(this.ctx);this.elg=L.group({class:"apexcharts-grid"}),this.elgridLinesH=L.group({class:"apexcharts-gridlines-horizontal"}),this.elgridLinesV=L.group({class:"apexcharts-gridlines-vertical"}),this.elGridBorders=L.group({class:"apexcharts-grid-borders"}),this.elg.add(this.elgridLinesH),this.elg.add(this.elgridLinesV),C.config.grid.show||(this.elgridLinesV.hide(),this.elgridLinesH.hide(),this.elGridBorders.hide());for(var F,ne=C.globals.yAxisScale.length?C.globals.yAxisScale[0].result.length-1:5,ue=0;ue<C.globals.series.length&&(C.globals.yAxisScale[ue]!==void 0&&(ne=C.globals.yAxisScale[ue].result.length-1),!(ne>2));ue++);if(!C.globals.isBarHorizontal||this.isRangeBar){var fe,me,Pe;F=this.xaxisLabels.length,this.isRangeBar&&(F--,ne=C.globals.labels.length,C.config.xaxis.tickAmount&&C.config.xaxis.labels.formatter&&(F=C.config.xaxis.tickAmount),((fe=C.globals.yAxisScale)===null||fe===void 0||(me=fe[0])===null||me===void 0||(Pe=me.result)===null||Pe===void 0?void 0:Pe.length)>0&&C.config.xaxis.type!=="datetime"&&(F=C.globals.yAxisScale[0].result.length-1)),this._drawXYLines({xCount:F,tickAmount:ne})}else F=ne,ne=C.globals.xTickAmount,this._drawInvertedXYLines({xCount:F,tickAmount:ne});return this.drawGridBands(F,ne),{el:this.elg,elGridBorders:this.elGridBorders,xAxisTickWidth:C.globals.gridWidth/F}}},{key:"drawGridBands",value:function(C,L){var F=this.w;if(F.config.grid.row.colors!==void 0&&F.config.grid.row.colors.length>0)for(var ne=0,ue=F.globals.gridHeight/L,fe=F.globals.gridWidth,me=0,Pe=0;me<L;me++,Pe++)Pe>=F.config.grid.row.colors.length&&(Pe=0),this._drawGridBandRect({c:Pe,x1:0,y1:ne,x2:fe,y2:ue,type:"row"}),ne+=F.globals.gridHeight/L;if(F.config.grid.column.colors!==void 0&&F.config.grid.column.colors.length>0)for(var Re=F.globals.isBarHorizontal||F.config.xaxis.tickPlacement!=="on"||F.config.xaxis.type!=="category"&&!F.config.xaxis.convertedCatToNumeric?C:C-1,Xe=F.globals.padHorizontal,qe=F.globals.padHorizontal+F.globals.gridWidth/Re,Ke=F.globals.gridHeight,nt=0,It=0;nt<C;nt++,It++)It>=F.config.grid.column.colors.length&&(It=0),this._drawGridBandRect({c:It,x1:Xe,y1:0,x2:qe,y2:Ke,type:"column"}),Xe+=F.globals.gridWidth/Re}}]),ai}(),et=function(){function ai(C){I(this,ai),this.ctx=C,this.w=C.w}return M(ai,[{key:"niceScale",value:function(C,L){var F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:5,ne=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,ue=arguments.length>4?arguments[4]:void 0,fe=this.w,me=Math.abs(L-C);if((F=this._adjustTicksForSmallRange(F,ne,me))==="dataPoints"&&(F=fe.globals.dataPoints-1),C===Number.MIN_VALUE&&L===0||!Y.isNumber(C)&&!Y.isNumber(L)||C===Number.MIN_VALUE&&L===-Number.MAX_VALUE)return C=0,L=F,this.linearScale(C,L,F,ne,fe.config.yaxis[ne].stepSize);C>L?(console.warn("axis.min cannot be greater than axis.max"),L=C+.1):C===L&&(C=C===0?0:C-.5,L=L===0?2:L+.5);var Pe=[];me<1&&ue&&(fe.config.chart.type==="candlestick"||fe.config.series[ne].type==="candlestick"||fe.config.chart.type==="boxPlot"||fe.config.series[ne].type==="boxPlot"||fe.globals.isRangeData)&&(L*=1.01);var Re=F+1;Re<2?Re=2:Re>2&&(Re-=2);var Xe=me/Re,qe=Math.floor(Y.log10(Xe)),Ke=Math.pow(10,qe),nt=Math.round(Xe/Ke);nt<1&&(nt=1);var It=nt*Ke;fe.config.yaxis[ne].stepSize&&(It=fe.config.yaxis[ne].stepSize),fe.globals.isBarHorizontal&&fe.config.xaxis.stepSize&&fe.config.xaxis.type!=="datetime"&&(It=fe.config.xaxis.stepSize);var Tt=It*Math.floor(C/It),ni=It*Math.ceil(L/It),fi=Tt;if(ue&&me>2){for(;Pe.push(Y.stripNumber(fi,7)),!((fi+=It)>ni););return{result:Pe,niceMin:Pe[0],niceMax:Pe[Pe.length-1]}}var gi=C;(Pe=[]).push(Y.stripNumber(gi,7));for(var je=Math.abs(L-C)/F,it=0;it<=F;it++)gi+=je,Pe.push(gi);return Pe[Pe.length-2]>=L&&Pe.pop(),{result:Pe,niceMin:Pe[0],niceMax:Pe[Pe.length-1]}}},{key:"linearScale",value:function(C,L){var F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:5,ne=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,ue=arguments.length>4&&arguments[4]!==void 0?arguments[4]:void 0,fe=Math.abs(L-C);(F=this._adjustTicksForSmallRange(F,ne,fe))==="dataPoints"&&(F=this.w.globals.dataPoints-1),ue||(ue=fe/F),F===Number.MAX_VALUE&&(F=5,ue=1);for(var me=[],Pe=C;F>=0;)me.push(Pe),Pe+=ue,F-=1;return{result:me,niceMin:me[0],niceMax:me[me.length-1]}}},{key:"logarithmicScaleNice",value:function(C,L,F){L<=0&&(L=Math.max(C,F)),C<=0&&(C=Math.min(L,F));for(var ne=[],ue=Math.ceil(Math.log(L)/Math.log(F)+1),fe=Math.floor(Math.log(C)/Math.log(F));fe<ue;fe++)ne.push(Math.pow(F,fe));return{result:ne,niceMin:ne[0],niceMax:ne[ne.length-1]}}},{key:"logarithmicScale",value:function(C,L,F){L<=0&&(L=Math.max(C,F)),C<=0&&(C=Math.min(L,F));for(var ne=[],ue=Math.log(L)/Math.log(F),fe=Math.log(C)/Math.log(F),me=ue-fe,Pe=Math.round(me),Re=me/Pe,Xe=0,qe=fe;Xe<Pe;Xe++,qe+=Re)ne.push(Math.pow(F,qe));return ne.push(Math.pow(F,ue)),{result:ne,niceMin:C,niceMax:L}}},{key:"_adjustTicksForSmallRange",value:function(C,L,F){var ne=C;if(L!==void 0&&this.w.config.yaxis[L].labels.formatter&&this.w.config.yaxis[L].tickAmount===void 0){var ue=Number(this.w.config.yaxis[L].labels.formatter(1));Y.isNumber(ue)&&this.w.globals.yValueDecimal===0&&(ne=Math.ceil(F))}return ne<C?ne:C}},{key:"setYScaleForIndex",value:function(C,L,F){var ne=this.w.globals,ue=this.w.config,fe=ne.isBarHorizontal?ue.xaxis:ue.yaxis[C];ne.yAxisScale[C]===void 0&&(ne.yAxisScale[C]=[]);var me=Math.abs(F-L);if(fe.logarithmic&&me<=5&&(ne.invalidLogScale=!0),fe.logarithmic&&me>5)ne.allSeriesCollapsed=!1,ne.yAxisScale[C]=this.logarithmicScale(L,F,fe.logBase),ne.yAxisScale[C]=fe.forceNiceScale?this.logarithmicScaleNice(L,F,fe.logBase):this.logarithmicScale(L,F,fe.logBase);else if(F!==-Number.MAX_VALUE&&Y.isNumber(F))if(ne.allSeriesCollapsed=!1,fe.min===void 0&&fe.max===void 0||fe.forceNiceScale){var Pe=ue.yaxis[C].max===void 0&&ue.yaxis[C].min===void 0||ue.yaxis[C].forceNiceScale;ne.yAxisScale[C]=this.niceScale(L,F,fe.tickAmount?fe.tickAmount:me<5&&me>1?me+1:5,C,Pe)}else ne.yAxisScale[C]=this.linearScale(L,F,fe.tickAmount,C,ue.yaxis[C].stepSize);else ne.yAxisScale[C]=this.linearScale(0,5,5,C,ue.yaxis[C].stepSize)}},{key:"setXScale",value:function(C,L){var F=this.w,ne=F.globals,ue=Math.abs(L-C);return L!==-Number.MAX_VALUE&&Y.isNumber(L)?ne.xAxisScale=this.linearScale(C,L,F.config.xaxis.tickAmount?F.config.xaxis.tickAmount:ue<5&&ue>1?ue+1:5,0,F.config.xaxis.stepSize):ne.xAxisScale=this.linearScale(0,5,5),ne.xAxisScale}},{key:"setMultipleYScales",value:function(){var C=this,L=this.w.globals,F=this.w.config,ne=L.minYArr.concat([]),ue=L.maxYArr.concat([]),fe=[];F.yaxis.forEach(function(me,Pe){var Re=Pe;F.series.forEach(function(Ke,nt){Ke.name===me.seriesName&&(Re=nt,Pe!==nt?fe.push({index:nt,similarIndex:Pe,alreadyExists:!0}):fe.push({index:nt}))});var Xe=ne[Re],qe=ue[Re];C.setYScaleForIndex(Pe,Xe,qe)}),this.sameScaleInMultipleAxes(ne,ue,fe)}},{key:"sameScaleInMultipleAxes",value:function(C,L,F){var ne=this,ue=this.w.config,fe=this.w.globals,me=[];F.forEach(function(Tt){Tt.alreadyExists&&(me[Tt.index]===void 0&&(me[Tt.index]=[]),me[Tt.index].push(Tt.index),me[Tt.index].push(Tt.similarIndex))}),fe.yAxisSameScaleIndices=me,me.forEach(function(Tt,ni){me.forEach(function(fi,gi){var je,it;ni!==gi&&(je=Tt,it=fi,je.filter(function(Ct){return it.indexOf(Ct)!==-1})).length>0&&(me[ni]=me[ni].concat(me[gi]))})});var Pe=me.map(function(Tt){return Tt.filter(function(ni,fi){return Tt.indexOf(ni)===fi})}).map(function(Tt){return Tt.sort()});me=me.filter(function(Tt){return!!Tt});var Re=Pe.slice(),Xe=Re.map(function(Tt){return JSON.stringify(Tt)});Re=Re.filter(function(Tt,ni){return Xe.indexOf(JSON.stringify(Tt))===ni});var qe=[],Ke=[];C.forEach(function(Tt,ni){Re.forEach(function(fi,gi){fi.indexOf(ni)>-1&&(qe[gi]===void 0&&(qe[gi]=[],Ke[gi]=[]),qe[gi].push({key:ni,value:Tt}),Ke[gi].push({key:ni,value:L[ni]}))})});var nt=Array.apply(null,Array(Re.length)).map(Number.prototype.valueOf,Number.MIN_VALUE),It=Array.apply(null,Array(Re.length)).map(Number.prototype.valueOf,-Number.MAX_VALUE);qe.forEach(function(Tt,ni){Tt.forEach(function(fi,gi){nt[ni]=Math.min(fi.value,nt[ni])})}),Ke.forEach(function(Tt,ni){Tt.forEach(function(fi,gi){It[ni]=Math.max(fi.value,It[ni])})}),C.forEach(function(Tt,ni){Ke.forEach(function(fi,gi){var je=nt[gi],it=It[gi];ue.chart.stacked&&(it=0,fi.forEach(function(Ct,si){Ct.value!==-Number.MAX_VALUE&&(it+=Ct.value),je!==Number.MIN_VALUE&&(je+=qe[gi][si].value)})),fi.forEach(function(Ct,si){fi[si].key===ni&&(ue.yaxis[ni].min!==void 0&&(je=typeof ue.yaxis[ni].min=="function"?ue.yaxis[ni].min(fe.minY):ue.yaxis[ni].min),ue.yaxis[ni].max!==void 0&&(it=typeof ue.yaxis[ni].max=="function"?ue.yaxis[ni].max(fe.maxY):ue.yaxis[ni].max),ne.setYScaleForIndex(ni,je,it))})})})}},{key:"autoScaleY",value:function(C,L,F){C||(C=this);var ne=C.w;if(ne.globals.isMultipleYAxis||ne.globals.collapsedSeries.length)return console.warn("autoScaleYaxis not supported in a multi-yaxis chart."),L;var ue=ne.globals.seriesX[0],fe=ne.config.chart.stacked;return L.forEach(function(me,Pe){for(var Re=0,Xe=0;Xe<ue.length;Xe++)if(ue[Xe]>=F.xaxis.min){Re=Xe;break}var qe,Ke,nt=ne.globals.minYArr[Pe],It=ne.globals.maxYArr[Pe],Tt=ne.globals.stackedSeriesTotals;ne.globals.series.forEach(function(ni,fi){var gi=ni[Re];fe?(gi=Tt[Re],qe=Ke=gi,Tt.forEach(function(je,it){ue[it]<=F.xaxis.max&&ue[it]>=F.xaxis.min&&(je>Ke&&je!==null&&(Ke=je),ni[it]<qe&&ni[it]!==null&&(qe=ni[it]))})):(qe=Ke=gi,ni.forEach(function(je,it){if(ue[it]<=F.xaxis.max&&ue[it]>=F.xaxis.min){var Ct=je,si=je;ne.globals.series.forEach(function(di,yi){je!==null&&(Ct=Math.min(di[it],Ct),si=Math.max(di[it],si))}),si>Ke&&si!==null&&(Ke=si),Ct<qe&&Ct!==null&&(qe=Ct)}})),qe===void 0&&Ke===void 0&&(qe=nt,Ke=It),Ke*=Ke<0?.9:1.1,(qe*=qe<0?1.1:.9)===0&&Ke===0&&(qe=-1,Ke=1),Ke<0&&Ke<It&&(Ke=It),qe<0&&qe>nt&&(qe=nt),L.length>1?(L[fi].min=me.min===void 0?qe:me.min,L[fi].max=me.max===void 0?Ke:me.max):(L[0].min=me.min===void 0?qe:me.min,L[0].max=me.max===void 0?Ke:me.max)})}),L}}]),ai}(),$e=function(){function ai(C){I(this,ai),this.ctx=C,this.w=C.w,this.scales=new et(C)}return M(ai,[{key:"init",value:function(){this.setYRange(),this.setXRange(),this.setZRange()}},{key:"getMinYMaxY",value:function(C){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:-Number.MAX_VALUE,ne=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,ue=this.w.config,fe=this.w.globals,me=-Number.MAX_VALUE,Pe=Number.MIN_VALUE;ne===null&&(ne=C+1);var Re=fe.series,Xe=Re,qe=Re;ue.chart.type==="candlestick"?(Xe=fe.seriesCandleL,qe=fe.seriesCandleH):ue.chart.type==="boxPlot"?(Xe=fe.seriesCandleO,qe=fe.seriesCandleC):fe.isRangeData&&(Xe=fe.seriesRangeStart,qe=fe.seriesRangeEnd);for(var Ke=C;Ke<ne;Ke++){fe.dataPoints=Math.max(fe.dataPoints,Re[Ke].length),fe.categoryLabels.length&&(fe.dataPoints=fe.categoryLabels.filter(function(Tt){return Tt!==void 0}).length),fe.labels.length&&ue.xaxis.type!=="datetime"&&fe.series.reduce(function(Tt,ni){return Tt+ni.length},0)!==0&&(fe.dataPoints=Math.max(fe.dataPoints,fe.labels.length));for(var nt=0;nt<fe.series[Ke].length;nt++){var It=Re[Ke][nt];It!==null&&Y.isNumber(It)?(qe[Ke][nt]!==void 0&&(me=Math.max(me,qe[Ke][nt]),L=Math.min(L,qe[Ke][nt])),Xe[Ke][nt]!==void 0&&(L=Math.min(L,Xe[Ke][nt]),F=Math.max(F,Xe[Ke][nt])),this.w.config.chart.type!=="candlestick"&&this.w.config.chart.type!=="boxPlot"&&this.w.config.chart.type==="rangeArea"&&this.w.config.chart.type==="rangeBar"||(this.w.config.chart.type!=="candlestick"&&this.w.config.chart.type!=="boxPlot"||fe.seriesCandleC[Ke][nt]!==void 0&&(me=Math.max(me,fe.seriesCandleO[Ke][nt]),me=Math.max(me,fe.seriesCandleH[Ke][nt]),me=Math.max(me,fe.seriesCandleL[Ke][nt]),me=Math.max(me,fe.seriesCandleC[Ke][nt]),this.w.config.chart.type==="boxPlot"&&(me=Math.max(me,fe.seriesCandleM[Ke][nt]))),!ue.series[Ke].type||ue.series[Ke].type==="candlestick"&&ue.series[Ke].type==="boxPlot"&&ue.series[Ke].type==="rangeArea"&&ue.series[Ke].type==="rangeBar"||(me=Math.max(me,fe.series[Ke][nt]),L=Math.min(L,fe.series[Ke][nt])),F=me),fe.seriesGoals[Ke]&&fe.seriesGoals[Ke][nt]&&Array.isArray(fe.seriesGoals[Ke][nt])&&fe.seriesGoals[Ke][nt].forEach(function(Tt){Pe!==Number.MIN_VALUE&&(Pe=Math.min(Pe,Tt.value),L=Pe),me=Math.max(me,Tt.value),F=me}),Y.isFloat(It)&&(It=Y.noExponents(It),fe.yValueDecimal=Math.max(fe.yValueDecimal,It.toString().split(".")[1].length)),Pe>Xe[Ke][nt]&&Xe[Ke][nt]<0&&(Pe=Xe[Ke][nt])):fe.hasNullValues=!0}}return ue.chart.type==="rangeBar"&&fe.seriesRangeStart.length&&fe.isBarHorizontal&&(Pe=L),ue.chart.type==="bar"&&(Pe<0&&me<0&&(me=0),Pe===Number.MIN_VALUE&&(Pe=0)),{minY:Pe,maxY:me,lowestY:L,highestY:F}}},{key:"setYRange",value:function(){var C=this.w.globals,L=this.w.config;C.maxY=-Number.MAX_VALUE,C.minY=Number.MIN_VALUE;var F=Number.MAX_VALUE;if(C.isMultipleYAxis)for(var ne=0;ne<C.series.length;ne++){var ue=this.getMinYMaxY(ne,F,null,ne+1);C.minYArr.push(ue.minY),C.maxYArr.push(ue.maxY),F=ue.lowestY}var fe=this.getMinYMaxY(0,F,null,C.series.length);if(C.minY=fe.minY,C.maxY=fe.maxY,F=fe.lowestY,L.chart.stacked&&this._setStackedMinMax(),(L.chart.type==="line"||L.chart.type==="area"||L.chart.type==="candlestick"||L.chart.type==="boxPlot"||L.chart.type==="rangeBar"&&!C.isBarHorizontal)&&C.minY===Number.MIN_VALUE&&F!==-Number.MAX_VALUE&&F!==C.maxY){var me=C.maxY-F;(F>=0&&F<=10||L.yaxis[0].min!==void 0||L.yaxis[0].max!==void 0)&&(me=0),C.minY=F-5*me/100,F>0&&C.minY<0&&(C.minY=0),C.maxY=C.maxY+5*me/100}return L.yaxis.forEach(function(Pe,Re){Pe.max!==void 0&&(typeof Pe.max=="number"?C.maxYArr[Re]=Pe.max:typeof Pe.max=="function"&&(C.maxYArr[Re]=Pe.max(C.isMultipleYAxis?C.maxYArr[Re]:C.maxY)),C.maxY=C.maxYArr[Re]),Pe.min!==void 0&&(typeof Pe.min=="number"?C.minYArr[Re]=Pe.min:typeof Pe.min=="function"&&(C.minYArr[Re]=Pe.min(C.isMultipleYAxis?C.minYArr[Re]===Number.MIN_VALUE?0:C.minYArr[Re]:C.minY)),C.minY=C.minYArr[Re])}),C.isBarHorizontal&&["min","max"].forEach(function(Pe){L.xaxis[Pe]!==void 0&&typeof L.xaxis[Pe]=="number"&&(Pe==="min"?C.minY=L.xaxis[Pe]:C.maxY=L.xaxis[Pe])}),C.isMultipleYAxis?(this.scales.setMultipleYScales(),C.minY=F,C.yAxisScale.forEach(function(Pe,Re){C.minYArr[Re]=Pe.niceMin,C.maxYArr[Re]=Pe.niceMax})):(this.scales.setYScaleForIndex(0,C.minY,C.maxY),C.minY=C.yAxisScale[0].niceMin,C.maxY=C.yAxisScale[0].niceMax,C.minYArr[0]=C.yAxisScale[0].niceMin,C.maxYArr[0]=C.yAxisScale[0].niceMax),{minY:C.minY,maxY:C.maxY,minYArr:C.minYArr,maxYArr:C.maxYArr,yAxisScale:C.yAxisScale}}},{key:"setXRange",value:function(){var C=this.w.globals,L=this.w.config,F=L.xaxis.type==="numeric"||L.xaxis.type==="datetime"||L.xaxis.type==="category"&&!C.noLabelsProvided||C.noLabelsProvided||C.isXNumeric;if(C.isXNumeric&&function(){for(var me=0;me<C.series.length;me++)if(C.labels[me])for(var Pe=0;Pe<C.labels[me].length;Pe++)C.labels[me][Pe]!==null&&Y.isNumber(C.labels[me][Pe])&&(C.maxX=Math.max(C.maxX,C.labels[me][Pe]),C.initialMaxX=Math.max(C.maxX,C.labels[me][Pe]),C.minX=Math.min(C.minX,C.labels[me][Pe]),C.initialMinX=Math.min(C.minX,C.labels[me][Pe]))}(),C.noLabelsProvided&&L.xaxis.categories.length===0&&(C.maxX=C.labels[C.labels.length-1],C.initialMaxX=C.labels[C.labels.length-1],C.minX=1,C.initialMinX=1),C.isXNumeric||C.noLabelsProvided||C.dataFormatXNumeric){var ne;if(L.xaxis.tickAmount===void 0?(ne=Math.round(C.svgWidth/150),L.xaxis.type==="numeric"&&C.dataPoints<30&&(ne=C.dataPoints-1),ne>C.dataPoints&&C.dataPoints!==0&&(ne=C.dataPoints-1)):L.xaxis.tickAmount==="dataPoints"?(C.series.length>1&&(ne=C.series[C.maxValsInArrayIndex].length-1),C.isXNumeric&&(ne=C.maxX-C.minX-1)):ne=L.xaxis.tickAmount,C.xTickAmount=ne,L.xaxis.max!==void 0&&typeof L.xaxis.max=="number"&&(C.maxX=L.xaxis.max),L.xaxis.min!==void 0&&typeof L.xaxis.min=="number"&&(C.minX=L.xaxis.min),L.xaxis.range!==void 0&&(C.minX=C.maxX-L.xaxis.range),C.minX!==Number.MAX_VALUE&&C.maxX!==-Number.MAX_VALUE)if(L.xaxis.convertedCatToNumeric&&!C.dataFormatXNumeric){for(var ue=[],fe=C.minX-1;fe<C.maxX;fe++)ue.push(fe+1);C.xAxisScale={result:ue,niceMin:ue[0],niceMax:ue[ue.length-1]}}else C.xAxisScale=this.scales.setXScale(C.minX,C.maxX);else C.xAxisScale=this.scales.linearScale(0,ne,ne,0,L.xaxis.stepSize),C.noLabelsProvided&&C.labels.length>0&&(C.xAxisScale=this.scales.linearScale(1,C.labels.length,ne-1,0,L.xaxis.stepSize),C.seriesX=C.labels.slice());F&&(C.labels=C.xAxisScale.result.slice())}return C.isBarHorizontal&&C.labels.length&&(C.xTickAmount=C.labels.length),this._handleSingleDataPoint(),this._getMinXDiff(),{minX:C.minX,maxX:C.maxX}}},{key:"setZRange",value:function(){var C=this.w.globals;if(C.isDataXYZ){for(var L=0;L<C.series.length;L++)if(C.seriesZ[L]!==void 0)for(var F=0;F<C.seriesZ[L].length;F++)C.seriesZ[L][F]!==null&&Y.isNumber(C.seriesZ[L][F])&&(C.maxZ=Math.max(C.maxZ,C.seriesZ[L][F]),C.minZ=Math.min(C.minZ,C.seriesZ[L][F]))}}},{key:"_handleSingleDataPoint",value:function(){var C=this.w.globals,L=this.w.config;if(C.minX===C.maxX){var F=new k(this.ctx);if(L.xaxis.type==="datetime"){var ne=F.getDate(C.minX);L.xaxis.labels.datetimeUTC?ne.setUTCDate(ne.getUTCDate()-2):ne.setDate(ne.getDate()-2),C.minX=new Date(ne).getTime();var ue=F.getDate(C.maxX);L.xaxis.labels.datetimeUTC?ue.setUTCDate(ue.getUTCDate()+2):ue.setDate(ue.getDate()+2),C.maxX=new Date(ue).getTime()}else(L.xaxis.type==="numeric"||L.xaxis.type==="category"&&!C.noLabelsProvided)&&(C.minX=C.minX-2,C.initialMinX=C.minX,C.maxX=C.maxX+2,C.initialMaxX=C.maxX)}}},{key:"_getMinXDiff",value:function(){var C=this.w.globals;C.isXNumeric&&C.seriesX.forEach(function(L,F){L.length===1&&L.push(C.seriesX[C.maxValsInArrayIndex][C.seriesX[C.maxValsInArrayIndex].length-1]);var ne=L.slice();ne.sort(function(ue,fe){return ue-fe}),ne.forEach(function(ue,fe){if(fe>0){var me=ue-ne[fe-1];me>0&&(C.minXDiff=Math.min(me,C.minXDiff))}}),C.dataPoints!==1&&C.minXDiff!==Number.MAX_VALUE||(C.minXDiff=.5)})}},{key:"_setStackedMinMax",value:function(){var C=this,L=this.w.globals;if(L.series.length){var F=L.seriesGroups;F.length||(F=[this.w.config.series.map(function(fe){return fe.name})]);var ne={},ue={};F.forEach(function(fe){ne[fe]=[],ue[fe]=[],C.w.config.series.map(function(me,Pe){return fe.indexOf(me.name)>-1?Pe:null}).filter(function(me){return me!==null}).forEach(function(me){for(var Pe=0;Pe<L.series[L.maxValsInArrayIndex].length;Pe++){var Re,Xe;ne[fe][Pe]===void 0&&(ne[fe][Pe]=0,ue[fe][Pe]=0),(C.w.config.chart.stacked&&!L.comboCharts||C.w.config.chart.stacked&&L.comboCharts&&(!C.w.config.chart.stackOnlyBar||((Re=C.w.config.series)===null||Re===void 0||(Xe=Re[me])===null||Xe===void 0?void 0:Xe.type)==="bar"))&&L.series[me][Pe]!==null&&Y.isNumber(L.series[me][Pe])&&(L.series[me][Pe]>0?ne[fe][Pe]+=parseFloat(L.series[me][Pe])+1e-4:ue[fe][Pe]+=parseFloat(L.series[me][Pe]))}})}),Object.entries(ne).forEach(function(fe){var me=$(fe,1)[0];ne[me].forEach(function(Pe,Re){L.maxY=Math.max(L.maxY,ne[me][Re]),L.minY=Math.min(L.minY,ue[me][Re])})})}}}]),ai}(),Le=function(){function ai(C,L){I(this,ai),this.ctx=C,this.elgrid=L,this.w=C.w;var F=this.w;this.xaxisFontSize=F.config.xaxis.labels.style.fontSize,this.axisFontFamily=F.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=F.config.xaxis.labels.style.colors,this.isCategoryBarHorizontal=F.config.chart.type==="bar"&&F.config.plotOptions.bar.horizontal,this.xAxisoffX=0,F.config.xaxis.position==="bottom"&&(this.xAxisoffX=F.globals.gridHeight),this.drawnLabels=[],this.axesUtils=new vt(C)}return M(ai,[{key:"drawYaxis",value:function(C){var L=this,F=this.w,ne=new ge(this.ctx),ue=F.config.yaxis[C].labels.style,fe=ue.fontSize,me=ue.fontFamily,Pe=ue.fontWeight,Re=ne.group({class:"apexcharts-yaxis",rel:C,transform:"translate("+F.globals.translateYAxisX[C]+", 0)"});if(this.axesUtils.isYAxisHidden(C))return Re;var Xe=ne.group({class:"apexcharts-yaxis-texts-g"});Re.add(Xe);var qe=F.globals.yAxisScale[C].result.length-1,Ke=F.globals.gridHeight/qe,nt=F.globals.translateY,It=F.globals.yLabelFormatters[C],Tt=F.globals.yAxisScale[C].result.slice();Tt=this.axesUtils.checkForReversedLabels(C,Tt);var ni="";if(F.config.yaxis[C].labels.show)for(var fi=function(nM){var iM=Tt[nM];iM=It(iM,nM,F);var mM=F.config.yaxis[C].labels.padding;F.config.yaxis[C].opposite&&F.config.yaxis.length!==0&&(mM*=-1);var EM="end";F.config.yaxis[C].opposite&&(EM="start"),F.config.yaxis[C].labels.align==="left"?EM="start":F.config.yaxis[C].labels.align==="center"?EM="middle":F.config.yaxis[C].labels.align==="right"&&(EM="end");var wM=L.axesUtils.getYAxisForeColor(ue.colors,C),GM=F.config.yaxis[C].labels.offsetY;F.config.chart.type==="heatmap"&&(GM-=(F.globals.gridHeight/F.globals.series.length-1)/2);var qM=ne.drawText({x:mM,y:nt+qe/10+GM+1,text:iM,textAnchor:EM,fontSize:fe,fontFamily:me,fontWeight:Pe,maxWidth:F.config.yaxis[C].labels.maxWidth,foreColor:Array.isArray(wM)?wM[nM]:wM,isPlainText:!1,cssClass:"apexcharts-yaxis-label "+ue.cssClass});nM===qe&&(ni=qM),Xe.add(qM);var JM=document.createElementNS(F.globals.SVGNS,"title");if(JM.textContent=Array.isArray(iM)?iM.join(" "):iM,qM.node.appendChild(JM),F.config.yaxis[C].labels.rotate!==0){var zT=ne.rotateAroundCenter(ni.node),WT=ne.rotateAroundCenter(qM.node);qM.node.setAttribute("transform","rotate(".concat(F.config.yaxis[C].labels.rotate," ").concat(zT.x," ").concat(WT.y,")"))}nt+=Ke},gi=qe;gi>=0;gi--)fi(gi);if(F.config.yaxis[C].title.text!==void 0){var je=ne.group({class:"apexcharts-yaxis-title"}),it=0;F.config.yaxis[C].opposite&&(it=F.globals.translateYAxisX[C]);var Ct=ne.drawText({x:it,y:F.globals.gridHeight/2+F.globals.translateY+F.config.yaxis[C].title.offsetY,text:F.config.yaxis[C].title.text,textAnchor:"end",foreColor:F.config.yaxis[C].title.style.color,fontSize:F.config.yaxis[C].title.style.fontSize,fontWeight:F.config.yaxis[C].title.style.fontWeight,fontFamily:F.config.yaxis[C].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text "+F.config.yaxis[C].title.style.cssClass});je.add(Ct),Re.add(je)}var si=F.config.yaxis[C].axisBorder,di=31+si.offsetX;if(F.config.yaxis[C].opposite&&(di=-31-si.offsetX),si.show){var yi=ne.drawLine(di,F.globals.translateY+si.offsetY-2,di,F.globals.gridHeight+F.globals.translateY+si.offsetY+2,si.color,0,si.width);Re.add(yi)}return F.config.yaxis[C].axisTicks.show&&this.axesUtils.drawYAxisTicks(di,qe,si,F.config.yaxis[C].axisTicks,C,Ke,Re),Re}},{key:"drawYaxisInversed",value:function(C){var L=this.w,F=new ge(this.ctx),ne=F.group({class:"apexcharts-xaxis apexcharts-yaxis-inversed"}),ue=F.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(L.globals.translateXAxisX,", ").concat(L.globals.translateXAxisY,")")});ne.add(ue);var fe=L.globals.yAxisScale[C].result.length-1,me=L.globals.gridWidth/fe+.1,Pe=me+L.config.xaxis.labels.offsetX,Re=L.globals.xLabelFormatter,Xe=L.globals.yAxisScale[C].result.slice(),qe=L.globals.timescaleLabels;qe.length>0&&(this.xaxisLabels=qe.slice(),fe=(Xe=qe.slice()).length),Xe=this.axesUtils.checkForReversedLabels(C,Xe);var Ke=qe.length;if(L.config.xaxis.labels.show)for(var nt=Ke?0:fe;Ke?nt<Ke:nt>=0;Ke?nt++:nt--){var It=Xe[nt];It=Re(It,nt,L);var Tt=L.globals.gridWidth+L.globals.padHorizontal-(Pe-me+L.config.xaxis.labels.offsetX);if(qe.length){var ni=this.axesUtils.getLabel(Xe,qe,Tt,nt,this.drawnLabels,this.xaxisFontSize);Tt=ni.x,It=ni.text,this.drawnLabels.push(ni.text),nt===0&&L.globals.skipFirstTimelinelabel&&(It=""),nt===Xe.length-1&&L.globals.skipLastTimelinelabel&&(It="")}var fi=F.drawText({x:Tt,y:this.xAxisoffX+L.config.xaxis.labels.offsetY+30-(L.config.xaxis.position==="top"?L.globals.xAxisHeight+L.config.xaxis.axisTicks.height-2:0),text:It,textAnchor:"middle",foreColor:Array.isArray(this.xaxisForeColors)?this.xaxisForeColors[C]:this.xaxisForeColors,fontSize:this.xaxisFontSize,fontFamily:this.xaxisFontFamily,fontWeight:L.config.xaxis.labels.style.fontWeight,isPlainText:!1,cssClass:"apexcharts-xaxis-label "+L.config.xaxis.labels.style.cssClass});ue.add(fi),fi.tspan(It);var gi=document.createElementNS(L.globals.SVGNS,"title");gi.textContent=It,fi.node.appendChild(gi),Pe+=me}return this.inversedYAxisTitleText(ne),this.inversedYAxisBorder(ne),ne}},{key:"inversedYAxisBorder",value:function(C){var L=this.w,F=new ge(this.ctx),ne=L.config.xaxis.axisBorder;if(ne.show){var ue=0;L.config.chart.type==="bar"&&L.globals.isXNumeric&&(ue-=15);var fe=F.drawLine(L.globals.padHorizontal+ue+ne.offsetX,this.xAxisoffX,L.globals.gridWidth,this.xAxisoffX,ne.color,0,ne.height);this.elgrid&&this.elgrid.elGridBorders&&L.config.grid.show?this.elgrid.elGridBorders.add(fe):C.add(fe)}}},{key:"inversedYAxisTitleText",value:function(C){var L=this.w,F=new ge(this.ctx);if(L.config.xaxis.title.text!==void 0){var ne=F.group({class:"apexcharts-xaxis-title apexcharts-yaxis-title-inversed"}),ue=F.drawText({x:L.globals.gridWidth/2+L.config.xaxis.title.offsetX,y:this.xAxisoffX+parseFloat(this.xaxisFontSize)+parseFloat(L.config.xaxis.title.style.fontSize)+L.config.xaxis.title.offsetY+20,text:L.config.xaxis.title.text,textAnchor:"middle",fontSize:L.config.xaxis.title.style.fontSize,fontFamily:L.config.xaxis.title.style.fontFamily,fontWeight:L.config.xaxis.title.style.fontWeight,foreColor:L.config.xaxis.title.style.color,cssClass:"apexcharts-xaxis-title-text "+L.config.xaxis.title.style.cssClass});ne.add(ue),C.add(ne)}}},{key:"yAxisTitleRotate",value:function(C,L){var F=this.w,ne=new ge(this.ctx),ue={width:0,height:0},fe={width:0,height:0},me=F.globals.dom.baseEl.querySelector(" .apexcharts-yaxis[rel='".concat(C,"'] .apexcharts-yaxis-texts-g"));me!==null&&(ue=me.getBoundingClientRect());var Pe=F.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(C,"'] .apexcharts-yaxis-title text"));if(Pe!==null&&(fe=Pe.getBoundingClientRect()),Pe!==null){var Re=this.xPaddingForYAxisTitle(C,ue,fe,L);Pe.setAttribute("x",Re.xPos-(L?10:0))}if(Pe!==null){var Xe=ne.rotateAroundCenter(Pe);Pe.setAttribute("transform","rotate(".concat(L?-1*F.config.yaxis[C].title.rotate:F.config.yaxis[C].title.rotate," ").concat(Xe.x," ").concat(Xe.y,")"))}}},{key:"xPaddingForYAxisTitle",value:function(C,L,F,ne){var ue=this.w,fe=0,me=0,Pe=10;return ue.config.yaxis[C].title.text===void 0||C<0?{xPos:me,padd:0}:(ne?(me=L.width+ue.config.yaxis[C].title.offsetX+F.width/2+Pe/2,(fe+=1)===0&&(me-=Pe/2)):(me=-1*L.width+ue.config.yaxis[C].title.offsetX+Pe/2+F.width/2,ue.globals.isBarHorizontal&&(Pe=25,me=-1*L.width-ue.config.yaxis[C].title.offsetX-Pe)),{xPos:me,padd:Pe})}},{key:"setYAxisXPosition",value:function(C,L){var F=this.w,ne=0,ue=0,fe=18,me=1;F.config.yaxis.length>1&&(this.multipleYs=!0),F.config.yaxis.map(function(Pe,Re){var Xe=F.globals.ignoreYAxisIndexes.indexOf(Re)>-1||!Pe.show||Pe.floating||C[Re].width===0,qe=C[Re].width+L[Re].width;Pe.opposite?F.globals.isBarHorizontal?(ue=F.globals.gridWidth+F.globals.translateX-1,F.globals.translateYAxisX[Re]=ue-Pe.labels.offsetX):(ue=F.globals.gridWidth+F.globals.translateX+me,Xe||(me=me+qe+20),F.globals.translateYAxisX[Re]=ue-Pe.labels.offsetX+20):(ne=F.globals.translateX-fe,Xe||(fe=fe+qe+20),F.globals.translateYAxisX[Re]=ne+Pe.labels.offsetX)})}},{key:"setYAxisTextAlignments",value:function(){var C=this.w,L=C.globals.dom.baseEl.getElementsByClassName("apexcharts-yaxis");(L=Y.listToArray(L)).forEach(function(F,ne){var ue=C.config.yaxis[ne];if(ue&&!ue.floating&&ue.labels.align!==void 0){var fe=C.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(ne,"'] .apexcharts-yaxis-texts-g")),me=C.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis[rel='".concat(ne,"'] .apexcharts-yaxis-label"));me=Y.listToArray(me);var Pe=fe.getBoundingClientRect();ue.labels.align==="left"?(me.forEach(function(Re,Xe){Re.setAttribute("text-anchor","start")}),ue.opposite||fe.setAttribute("transform","translate(-".concat(Pe.width,", 0)"))):ue.labels.align==="center"?(me.forEach(function(Re,Xe){Re.setAttribute("text-anchor","middle")}),fe.setAttribute("transform","translate(".concat(Pe.width/2*(ue.opposite?1:-1),", 0)"))):ue.labels.align==="right"&&(me.forEach(function(Re,Xe){Re.setAttribute("text-anchor","end")}),ue.opposite&&fe.setAttribute("transform","translate(".concat(Pe.width,", 0)")))}})}}]),ai}(),ot=function(){function ai(C){I(this,ai),this.ctx=C,this.w=C.w,this.documentEvent=Y.bind(this.documentEvent,this)}return M(ai,[{key:"addEventListener",value:function(C,L){var F=this.w;F.globals.events.hasOwnProperty(C)?F.globals.events[C].push(L):F.globals.events[C]=[L]}},{key:"removeEventListener",value:function(C,L){var F=this.w;if(F.globals.events.hasOwnProperty(C)){var ne=F.globals.events[C].indexOf(L);ne!==-1&&F.globals.events[C].splice(ne,1)}}},{key:"fireEvent",value:function(C,L){var F=this.w;if(F.globals.events.hasOwnProperty(C)){L&&L.length||(L=[]);for(var ne=F.globals.events[C],ue=ne.length,fe=0;fe<ue;fe++)ne[fe].apply(null,L)}}},{key:"setupEventHandlers",value:function(){var C=this,L=this.w,F=this.ctx,ne=L.globals.dom.baseEl.querySelector(L.globals.chartClass);this.ctx.eventList.forEach(function(ue){ne.addEventListener(ue,function(fe){var me=Object.assign({},L,{seriesIndex:L.globals.capturedSeriesIndex,dataPointIndex:L.globals.capturedDataPointIndex});fe.type==="mousemove"||fe.type==="touchmove"?typeof L.config.chart.events.mouseMove=="function"&&L.config.chart.events.mouseMove(fe,F,me):fe.type==="mouseleave"||fe.type==="touchleave"?typeof L.config.chart.events.mouseLeave=="function"&&L.config.chart.events.mouseLeave(fe,F,me):(fe.type==="mouseup"&&fe.which===1||fe.type==="touchend")&&(typeof L.config.chart.events.click=="function"&&L.config.chart.events.click(fe,F,me),F.ctx.events.fireEvent("click",[fe,F,me]))},{capture:!1,passive:!0})}),this.ctx.eventList.forEach(function(ue){L.globals.dom.baseEl.addEventListener(ue,C.documentEvent,{passive:!0})}),this.ctx.core.setupBrushHandler()}},{key:"documentEvent",value:function(C){var L=this.w,F=C.target.className;if(C.type==="click"){var ne=L.globals.dom.baseEl.querySelector(".apexcharts-menu");ne&&ne.classList.contains("apexcharts-menu-open")&&F!=="apexcharts-menu-icon"&&ne.classList.remove("apexcharts-menu-open")}L.globals.clientX=C.type==="touchmove"?C.touches[0].clientX:C.clientX,L.globals.clientY=C.type==="touchmove"?C.touches[0].clientY:C.clientY}}]),ai}(),Oe=function(){function ai(C){I(this,ai),this.ctx=C,this.w=C.w}return M(ai,[{key:"setCurrentLocaleValues",value:function(C){var L=this.w.config.chart.locales;window.Apex.chart&&window.Apex.chart.locales&&window.Apex.chart.locales.length>0&&(L=this.w.config.chart.locales.concat(window.Apex.chart.locales));var F=L.filter(function(ue){return ue.name===C})[0];if(!F)throw new Error("Wrong locale name provided. Please make sure you set the correct locale name in options");var ne=Y.extend(le,F);this.w.globals.locale=ne.options}}]),ai}(),Ne=function(){function ai(C){I(this,ai),this.ctx=C,this.w=C.w}return M(ai,[{key:"drawAxis",value:function(C,L){var F,ne,ue=this,fe=this.w.globals,me=this.w.config,Pe=new ci(this.ctx,L),Re=new Le(this.ctx,L);fe.axisCharts&&C!=="radar"&&(fe.isBarHorizontal?(ne=Re.drawYaxisInversed(0),F=Pe.drawXaxisInversed(0),fe.dom.elGraphical.add(F),fe.dom.elGraphical.add(ne)):(F=Pe.drawXaxis(),fe.dom.elGraphical.add(F),me.yaxis.map(function(Xe,qe){if(fe.ignoreYAxisIndexes.indexOf(qe)===-1&&(ne=Re.drawYaxis(qe),fe.dom.Paper.add(ne),ue.w.config.grid.position==="back")){var Ke=fe.dom.Paper.children()[1];Ke.remove(),fe.dom.Paper.add(Ke)}})))}}]),ai}(),Fe=function(){function ai(C){I(this,ai),this.ctx=C,this.w=C.w}return M(ai,[{key:"drawXCrosshairs",value:function(){var C=this.w,L=new ge(this.ctx),F=new oe(this.ctx),ne=C.config.xaxis.crosshairs.fill.gradient,ue=C.config.xaxis.crosshairs.dropShadow,fe=C.config.xaxis.crosshairs.fill.type,me=ne.colorFrom,Pe=ne.colorTo,Re=ne.opacityFrom,Xe=ne.opacityTo,qe=ne.stops,Ke=ue.enabled,nt=ue.left,It=ue.top,Tt=ue.blur,ni=ue.color,fi=ue.opacity,gi=C.config.xaxis.crosshairs.fill.color;if(C.config.xaxis.crosshairs.show){fe==="gradient"&&(gi=L.drawGradient("vertical",me,Pe,Re,Xe,null,qe,null));var je=L.drawRect();C.config.xaxis.crosshairs.width===1&&(je=L.drawLine());var it=C.globals.gridHeight;(!Y.isNumber(it)||it<0)&&(it=0);var Ct=C.config.xaxis.crosshairs.width;(!Y.isNumber(Ct)||Ct<0)&&(Ct=0),je.attr({class:"apexcharts-xcrosshairs",x:0,y:0,y2:it,width:Ct,height:it,fill:gi,filter:"none","fill-opacity":C.config.xaxis.crosshairs.opacity,stroke:C.config.xaxis.crosshairs.stroke.color,"stroke-width":C.config.xaxis.crosshairs.stroke.width,"stroke-dasharray":C.config.xaxis.crosshairs.stroke.dashArray}),Ke&&(je=F.dropShadow(je,{left:nt,top:It,blur:Tt,color:ni,opacity:fi})),C.globals.dom.elGraphical.add(je)}}},{key:"drawYCrosshairs",value:function(){var C=this.w,L=new ge(this.ctx),F=C.config.yaxis[0].crosshairs,ne=C.globals.barPadForNumericAxis;if(C.config.yaxis[0].crosshairs.show){var ue=L.drawLine(-ne,0,C.globals.gridWidth+ne,0,F.stroke.color,F.stroke.dashArray,F.stroke.width);ue.attr({class:"apexcharts-ycrosshairs"}),C.globals.dom.elGraphical.add(ue)}var fe=L.drawLine(-ne,0,C.globals.gridWidth+ne,0,F.stroke.color,0,0);fe.attr({class:"apexcharts-ycrosshairs-hidden"}),C.globals.dom.elGraphical.add(fe)}}]),ai}(),Je=function(){function ai(C){I(this,ai),this.ctx=C,this.w=C.w}return M(ai,[{key:"checkResponsiveConfig",value:function(C){var L=this,F=this.w,ne=F.config;if(ne.responsive.length!==0){var ue=ne.responsive.slice();ue.sort(function(Re,Xe){return Re.breakpoint>Xe.breakpoint?1:Xe.breakpoint>Re.breakpoint?-1:0}).reverse();var fe=new q({}),me=function(){var Re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Xe=ue[0].breakpoint,qe=window.innerWidth>0?window.innerWidth:screen.width;if(qe>Xe){var Ke=be.extendArrayProps(fe,F.globals.initialConfig,F);Re=Y.extend(Ke,Re),Re=Y.extend(F.config,Re),L.overrideResponsiveOptions(Re)}else for(var nt=0;nt<ue.length;nt++)qe<ue[nt].breakpoint&&(Re=be.extendArrayProps(fe,ue[nt].options,F),Re=Y.extend(F.config,Re),L.overrideResponsiveOptions(Re))};if(C){var Pe=be.extendArrayProps(fe,C,F);Pe=Y.extend(F.config,Pe),me(Pe=Y.extend(Pe,C))}else me({})}}},{key:"overrideResponsiveOptions",value:function(C){var L=new q(C).init({responsiveOverride:!0});this.w.config=L}}]),ai}(),Dt=function(){function ai(C){I(this,ai),this.ctx=C,this.colors=[],this.w=C.w;var L=this.w;this.isColorFn=!1,this.isHeatmapDistributed=L.config.chart.type==="treemap"&&L.config.plotOptions.treemap.distributed||L.config.chart.type==="heatmap"&&L.config.plotOptions.heatmap.distributed,this.isBarDistributed=L.config.plotOptions.bar.distributed&&(L.config.chart.type==="bar"||L.config.chart.type==="rangeBar")}return M(ai,[{key:"init",value:function(){this.setDefaultColors()}},{key:"setDefaultColors",value:function(){var C,L=this,F=this.w,ne=new Y;if(F.globals.dom.elWrap.classList.add("apexcharts-theme-".concat(F.config.theme.mode)),F.config.colors===void 0||((C=F.config.colors)===null||C===void 0?void 0:C.length)===0?F.globals.colors=this.predefined():(F.globals.colors=F.config.colors,Array.isArray(F.config.colors)&&F.config.colors.length>0&&typeof F.config.colors[0]=="function"&&(F.globals.colors=F.config.series.map(function(It,Tt){var ni=F.config.colors[Tt];return ni||(ni=F.config.colors[0]),typeof ni=="function"?(L.isColorFn=!0,ni({value:F.globals.axisCharts?F.globals.series[Tt][0]?F.globals.series[Tt][0]:0:F.globals.series[Tt],seriesIndex:Tt,dataPointIndex:Tt,w:F})):ni}))),F.globals.seriesColors.map(function(It,Tt){It&&(F.globals.colors[Tt]=It)}),F.config.theme.monochrome.enabled){var ue=[],fe=F.globals.series.length;(this.isBarDistributed||this.isHeatmapDistributed)&&(fe=F.globals.series[0].length*F.globals.series.length);for(var me=F.config.theme.monochrome.color,Pe=1/(fe/F.config.theme.monochrome.shadeIntensity),Re=F.config.theme.monochrome.shadeTo,Xe=0,qe=0;qe<fe;qe++){var Ke=void 0;Re==="dark"?(Ke=ne.shadeColor(-1*Xe,me),Xe+=Pe):(Ke=ne.shadeColor(Xe,me),Xe+=Pe),ue.push(Ke)}F.globals.colors=ue.slice()}var nt=F.globals.colors.slice();this.pushExtraColors(F.globals.colors),["fill","stroke"].forEach(function(It){F.config[It].colors===void 0?F.globals[It].colors=L.isColorFn?F.config.colors:nt:F.globals[It].colors=F.config[It].colors.slice(),L.pushExtraColors(F.globals[It].colors)}),F.config.dataLabels.style.colors===void 0?F.globals.dataLabels.style.colors=nt:F.globals.dataLabels.style.colors=F.config.dataLabels.style.colors.slice(),this.pushExtraColors(F.globals.dataLabels.style.colors,50),F.config.plotOptions.radar.polygons.fill.colors===void 0?F.globals.radarPolygons.fill.colors=[F.config.theme.mode==="dark"?"#424242":"none"]:F.globals.radarPolygons.fill.colors=F.config.plotOptions.radar.polygons.fill.colors.slice(),this.pushExtraColors(F.globals.radarPolygons.fill.colors,20),F.config.markers.colors===void 0?F.globals.markers.colors=nt:F.globals.markers.colors=F.config.markers.colors.slice(),this.pushExtraColors(F.globals.markers.colors)}},{key:"pushExtraColors",value:function(C,L){var F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,ne=this.w,ue=L||ne.globals.series.length;if(F===null&&(F=this.isBarDistributed||this.isHeatmapDistributed||ne.config.chart.type==="heatmap"&&ne.config.plotOptions.heatmap.colorScale.inverse),F&&ne.globals.series.length&&(ue=ne.globals.series[ne.globals.maxValsInArrayIndex].length*ne.globals.series.length),C.length<ue)for(var fe=ue-C.length,me=0;me<fe;me++)C.push(C[me])}},{key:"updateThemeOptions",value:function(C){C.chart=C.chart||{},C.tooltip=C.tooltip||{};var L=C.theme.mode||"light",F=C.theme.palette?C.theme.palette:L==="dark"?"palette4":"palette1",ne=C.chart.foreColor?C.chart.foreColor:L==="dark"?"#f6f7f8":"#373d3f";return C.tooltip.theme=L,C.chart.foreColor=ne,C.theme.palette=F,C}},{key:"predefined",value:function(){switch(this.w.config.theme.palette){case"palette1":default:this.colors=["#008FFB","#00E396","#FEB019","#FF4560","#775DD0"];break;case"palette2":this.colors=["#3f51b5","#03a9f4","#4caf50","#f9ce1d","#FF9800"];break;case"palette3":this.colors=["#33b2df","#546E7A","#d4526e","#13d8aa","#A5978B"];break;case"palette4":this.colors=["#4ecdc4","#c7f464","#81D4FA","#fd6a6a","#546E7A"];break;case"palette5":this.colors=["#2b908f","#f9a3a4","#90ee7e","#fa4443","#69d2e7"];break;case"palette6":this.colors=["#449DD1","#F86624","#EA3546","#662E9B","#C5D86D"];break;case"palette7":this.colors=["#D7263D","#1B998B","#2E294E","#F46036","#E2C044"];break;case"palette8":this.colors=["#662E9B","#F86624","#F9C80E","#EA3546","#43BCCD"];break;case"palette9":this.colors=["#5C4742","#A5978B","#8D5B4C","#5A2A27","#C4BBAF"];break;case"palette10":this.colors=["#A300D6","#7D02EB","#5653FE","#2983FF","#00B1F2"]}return this.colors}}]),ai}(),oi=function(){function ai(C){I(this,ai),this.ctx=C,this.w=C.w}return M(ai,[{key:"draw",value:function(){this.drawTitleSubtitle("title"),this.drawTitleSubtitle("subtitle")}},{key:"drawTitleSubtitle",value:function(C){var L=this.w,F=C==="title"?L.config.title:L.config.subtitle,ne=L.globals.svgWidth/2,ue=F.offsetY,fe="middle";if(F.align==="left"?(ne=10,fe="start"):F.align==="right"&&(ne=L.globals.svgWidth-10,fe="end"),ne+=F.offsetX,ue=ue+parseInt(F.style.fontSize,10)+F.margin/2,F.text!==void 0){var me=new ge(this.ctx).drawText({x:ne,y:ue,text:F.text,textAnchor:fe,fontSize:F.style.fontSize,fontFamily:F.style.fontFamily,fontWeight:F.style.fontWeight,foreColor:F.style.color,opacity:1});me.node.setAttribute("class","apexcharts-".concat(C,"-text")),L.globals.dom.Paper.add(me)}}}]),ai}(),Bt=function(){function ai(C){I(this,ai),this.w=C.w,this.dCtx=C}return M(ai,[{key:"getTitleSubtitleCoords",value:function(C){var L=this.w,F=0,ne=0,ue=C==="title"?L.config.title.floating:L.config.subtitle.floating,fe=L.globals.dom.baseEl.querySelector(".apexcharts-".concat(C,"-text"));if(fe!==null&&!ue){var me=fe.getBoundingClientRect();F=me.width,ne=L.globals.axisCharts?me.height+5:me.height}return{width:F,height:ne}}},{key:"getLegendsRect",value:function(){var C=this.w,L=C.globals.dom.elLegendWrap;C.config.legend.height||C.config.legend.position!=="top"&&C.config.legend.position!=="bottom"||(L.style.maxHeight=C.globals.svgHeight/2+"px");var F=Object.assign({},Y.getBoundingClientRect(L));return L!==null&&!C.config.legend.floating&&C.config.legend.show?this.dCtx.lgRect={x:F.x,y:F.y,height:F.height,width:F.height===0?0:F.width}:this.dCtx.lgRect={x:0,y:0,height:0,width:0},C.config.legend.position!=="left"&&C.config.legend.position!=="right"||1.5*this.dCtx.lgRect.width>C.globals.svgWidth&&(this.dCtx.lgRect.width=C.globals.svgWidth/1.5),this.dCtx.lgRect}},{key:"getLargestStringFromMultiArr",value:function(C,L){var F=C;if(this.w.globals.isMultiLineX){var ne=L.map(function(fe,me){return Array.isArray(fe)?fe.length:1}),ue=Math.max.apply(Math,W(ne));F=L[ne.indexOf(ue)]}return F}}]),ai}(),li=function(){function ai(C){I(this,ai),this.w=C.w,this.dCtx=C}return M(ai,[{key:"getxAxisLabelsCoords",value:function(){var C,L=this.w,F=L.globals.labels.slice();if(L.config.xaxis.convertedCatToNumeric&&F.length===0&&(F=L.globals.categoryLabels),L.globals.timescaleLabels.length>0){var ne=this.getxAxisTimeScaleLabelsCoords();C={width:ne.width,height:ne.height},L.globals.rotateXLabels=!1}else{this.dCtx.lgWidthForSideLegends=L.config.legend.position!=="left"&&L.config.legend.position!=="right"||L.config.legend.floating?0:this.dCtx.lgRect.width;var ue=L.globals.xLabelFormatter,fe=Y.getLargestStringFromArr(F),me=this.dCtx.dimHelpers.getLargestStringFromMultiArr(fe,F);L.globals.isBarHorizontal&&(me=fe=L.globals.yAxisScale[0].result.reduce(function(It,Tt){return It.length>Tt.length?It:Tt},0));var Pe=new B(this.dCtx.ctx),Re=fe;fe=Pe.xLabelFormat(ue,fe,Re,{i:void 0,dateFormatter:new k(this.dCtx.ctx).formatDate,w:L}),me=Pe.xLabelFormat(ue,me,Re,{i:void 0,dateFormatter:new k(this.dCtx.ctx).formatDate,w:L}),(L.config.xaxis.convertedCatToNumeric&&fe===void 0||String(fe).trim()==="")&&(me=fe="1");var Xe=new ge(this.dCtx.ctx),qe=Xe.getTextRects(fe,L.config.xaxis.labels.style.fontSize),Ke=qe;if(fe!==me&&(Ke=Xe.getTextRects(me,L.config.xaxis.labels.style.fontSize)),(C={width:qe.width>=Ke.width?qe.width:Ke.width,height:qe.height>=Ke.height?qe.height:Ke.height}).width*F.length>L.globals.svgWidth-this.dCtx.lgWidthForSideLegends-this.dCtx.yAxisWidth-this.dCtx.gridPad.left-this.dCtx.gridPad.right&&L.config.xaxis.labels.rotate!==0||L.config.xaxis.labels.rotateAlways){if(!L.globals.isBarHorizontal){L.globals.rotateXLabels=!0;var nt=function(It){return Xe.getTextRects(It,L.config.xaxis.labels.style.fontSize,L.config.xaxis.labels.style.fontFamily,"rotate(".concat(L.config.xaxis.labels.rotate," 0 0)"),!1)};qe=nt(fe),fe!==me&&(Ke=nt(me)),C.height=(qe.height>Ke.height?qe.height:Ke.height)/1.5,C.width=qe.width>Ke.width?qe.width:Ke.width}}else L.globals.rotateXLabels=!1}return L.config.xaxis.labels.show||(C={width:0,height:0}),{width:C.width,height:C.height}}},{key:"getxAxisGroupLabelsCoords",value:function(){var C,L=this.w;if(!L.globals.hasXaxisGroups)return{width:0,height:0};var F,ne=((C=L.config.xaxis.group.style)===null||C===void 0?void 0:C.fontSize)||L.config.xaxis.labels.style.fontSize,ue=L.globals.groups.map(function(qe){return qe.title}),fe=Y.getLargestStringFromArr(ue),me=this.dCtx.dimHelpers.getLargestStringFromMultiArr(fe,ue),Pe=new ge(this.dCtx.ctx),Re=Pe.getTextRects(fe,ne),Xe=Re;return fe!==me&&(Xe=Pe.getTextRects(me,ne)),F={width:Re.width>=Xe.width?Re.width:Xe.width,height:Re.height>=Xe.height?Re.height:Xe.height},L.config.xaxis.labels.show||(F={width:0,height:0}),{width:F.width,height:F.height}}},{key:"getxAxisTitleCoords",value:function(){var C=this.w,L=0,F=0;if(C.config.xaxis.title.text!==void 0){var ne=new ge(this.dCtx.ctx).getTextRects(C.config.xaxis.title.text,C.config.xaxis.title.style.fontSize);L=ne.width,F=ne.height}return{width:L,height:F}}},{key:"getxAxisTimeScaleLabelsCoords",value:function(){var C,L=this.w;this.dCtx.timescaleLabels=L.globals.timescaleLabels.slice();var F=this.dCtx.timescaleLabels.map(function(ue){return ue.value}),ne=F.reduce(function(ue,fe){return ue===void 0?(console.error("You have possibly supplied invalid Date format. Please supply a valid JavaScript Date"),0):ue.length>fe.length?ue:fe},0);return 1.05*(C=new ge(this.dCtx.ctx).getTextRects(ne,L.config.xaxis.labels.style.fontSize)).width*F.length>L.globals.gridWidth&&L.config.xaxis.labels.rotate!==0&&(L.globals.overlappingXLabels=!0),C}},{key:"additionalPaddingXLabels",value:function(C){var L=this,F=this.w,ne=F.globals,ue=F.config,fe=ue.xaxis.type,me=C.width;ne.skipLastTimelinelabel=!1,ne.skipFirstTimelinelabel=!1;var Pe=F.config.yaxis[0].opposite&&F.globals.isBarHorizontal,Re=function(Xe,qe){ue.yaxis.length>1&&function(Ke){return ne.collapsedSeriesIndices.indexOf(Ke)!==-1}(qe)||function(Ke){if(L.dCtx.timescaleLabels&&L.dCtx.timescaleLabels.length){var nt=L.dCtx.timescaleLabels[0],It=L.dCtx.timescaleLabels[L.dCtx.timescaleLabels.length-1].position+me/1.75-L.dCtx.yAxisWidthRight,Tt=nt.position-me/1.75+L.dCtx.yAxisWidthLeft,ni=F.config.legend.position==="right"&&L.dCtx.lgRect.width>0?L.dCtx.lgRect.width:0;It>ne.svgWidth-ne.translateX-ni&&(ne.skipLastTimelinelabel=!0),Tt<-(Ke.show&&!Ke.floating||ue.chart.type!=="bar"&&ue.chart.type!=="candlestick"&&ue.chart.type!=="rangeBar"&&ue.chart.type!=="boxPlot"?10:me/1.75)&&(ne.skipFirstTimelinelabel=!0)}else fe==="datetime"?L.dCtx.gridPad.right<me&&!ne.rotateXLabels&&(ne.skipLastTimelinelabel=!0):fe!=="datetime"&&L.dCtx.gridPad.right<me/2-L.dCtx.yAxisWidthRight&&!ne.rotateXLabels&&!F.config.xaxis.labels.trim&&(F.config.xaxis.tickPlacement!=="between"||F.globals.isBarHorizontal)&&(L.dCtx.xPadRight=me/2+1)}(Xe)};ue.yaxis.forEach(function(Xe,qe){Pe?(L.dCtx.gridPad.left<me&&(L.dCtx.xPadLeft=me/2+1),L.dCtx.xPadRight=me/2+1):Re(Xe,qe)})}}]),ai}(),ii=function(){function ai(C){I(this,ai),this.w=C.w,this.dCtx=C}return M(ai,[{key:"getyAxisLabelsCoords",value:function(){var C=this,L=this.w,F=[],ne=10,ue=new vt(this.dCtx.ctx);return L.config.yaxis.map(function(fe,me){var Pe={seriesIndex:me,dataPointIndex:-1,w:L},Re=L.globals.yAxisScale[me],Xe=0;if(!ue.isYAxisHidden(me)&&fe.labels.show&&fe.labels.minWidth!==void 0&&(Xe=fe.labels.minWidth),!ue.isYAxisHidden(me)&&fe.labels.show&&Re.result.length){var qe=L.globals.yLabelFormatters[me],Ke=Re.niceMin===Number.MIN_VALUE?0:Re.niceMin,nt=Re.result.reduce(function(it,Ct){var si,di;return((si=String(qe(it,Pe)))===null||si===void 0?void 0:si.length)>((di=String(qe(Ct,Pe)))===null||di===void 0?void 0:di.length)?it:Ct},Ke),It=nt=qe(nt,Pe);if(nt!==void 0&&nt.length!==0||(nt=Re.niceMax),L.globals.isBarHorizontal){ne=0;var Tt=L.globals.labels.slice();nt=Y.getLargestStringFromArr(Tt),nt=qe(nt,{seriesIndex:me,dataPointIndex:-1,w:L}),It=C.dCtx.dimHelpers.getLargestStringFromMultiArr(nt,Tt)}var ni=new ge(C.dCtx.ctx),fi="rotate(".concat(fe.labels.rotate," 0 0)"),gi=ni.getTextRects(nt,fe.labels.style.fontSize,fe.labels.style.fontFamily,fi,!1),je=gi;nt!==It&&(je=ni.getTextRects(It,fe.labels.style.fontSize,fe.labels.style.fontFamily,fi,!1)),F.push({width:(Xe>je.width||Xe>gi.width?Xe:je.width>gi.width?je.width:gi.width)+ne,height:je.height>gi.height?je.height:gi.height})}else F.push({width:0,height:0})}),F}},{key:"getyAxisTitleCoords",value:function(){var C=this,L=this.w,F=[];return L.config.yaxis.map(function(ne,ue){if(ne.show&&ne.title.text!==void 0){var fe=new ge(C.dCtx.ctx),me="rotate(".concat(ne.title.rotate," 0 0)"),Pe=fe.getTextRects(ne.title.text,ne.title.style.fontSize,ne.title.style.fontFamily,me,!1);F.push({width:Pe.width,height:Pe.height})}else F.push({width:0,height:0})}),F}},{key:"getTotalYAxisWidth",value:function(){var C=this.w,L=0,F=0,ne=0,ue=C.globals.yAxisScale.length>1?10:0,fe=new vt(this.dCtx.ctx),me=function(Pe,Re){var Xe=C.config.yaxis[Re].floating,qe=0;Pe.width>0&&!Xe?(qe=Pe.width+ue,function(Ke){return C.globals.ignoreYAxisIndexes.indexOf(Ke)>-1}(Re)&&(qe=qe-Pe.width-ue)):qe=Xe||fe.isYAxisHidden(Re)?0:5,C.config.yaxis[Re].opposite?ne+=qe:F+=qe,L+=qe};return C.globals.yLabelsCoords.map(function(Pe,Re){me(Pe,Re)}),C.globals.yTitleCoords.map(function(Pe,Re){me(Pe,Re)}),C.globals.isBarHorizontal&&!C.config.yaxis[0].floating&&(L=C.globals.yLabelsCoords[0].width+C.globals.yTitleCoords[0].width+15),this.dCtx.yAxisWidthLeft=F,this.dCtx.yAxisWidthRight=ne,L}}]),ai}(),Ot=function(){function ai(C){I(this,ai),this.w=C.w,this.dCtx=C}return M(ai,[{key:"gridPadForColumnsInNumericAxis",value:function(C){var L=this.w;if(L.globals.noData||L.globals.allSeriesCollapsed)return 0;var F=function(Xe){return Xe==="bar"||Xe==="rangeBar"||Xe==="candlestick"||Xe==="boxPlot"},ne=L.config.chart.type,ue=0,fe=F(ne)?L.config.series.length:1;if(L.globals.comboBarCount>0&&(fe=L.globals.comboBarCount),L.globals.collapsedSeries.forEach(function(Xe){F(Xe.type)&&(fe-=1)}),L.config.chart.stacked&&(fe=1),(F(ne)||L.globals.comboBarCount>0)&&L.globals.isXNumeric&&!L.globals.isBarHorizontal&&fe>0){var me,Pe,Re=Math.abs(L.globals.initialMaxX-L.globals.initialMinX);Re<=3&&(Re=L.globals.dataPoints),me=Re/C,L.globals.minXDiff&&L.globals.minXDiff/me>0&&(Pe=L.globals.minXDiff/me),Pe>C/2&&(Pe/=2),(ue=Pe/fe*parseInt(L.config.plotOptions.bar.columnWidth,10)/100)<1&&(ue=1),ue=ue/(fe>1?1:1.5)+5,L.globals.barPadForNumericAxis=ue}return ue}},{key:"gridPadFortitleSubtitle",value:function(){var C=this,L=this.w,F=L.globals,ne=this.dCtx.isSparkline||!L.globals.axisCharts?0:10;["title","subtitle"].forEach(function(me){L.config[me].text!==void 0?ne+=L.config[me].margin:ne+=C.dCtx.isSparkline||!L.globals.axisCharts?0:5}),!L.config.legend.show||L.config.legend.position!=="bottom"||L.config.legend.floating||L.globals.axisCharts||(ne+=10);var ue=this.dCtx.dimHelpers.getTitleSubtitleCoords("title"),fe=this.dCtx.dimHelpers.getTitleSubtitleCoords("subtitle");F.gridHeight=F.gridHeight-ue.height-fe.height-ne,F.translateY=F.translateY+ue.height+fe.height+ne}},{key:"setGridXPosForDualYAxis",value:function(C,L){var F=this.w,ne=new vt(this.dCtx.ctx);F.config.yaxis.map(function(ue,fe){F.globals.ignoreYAxisIndexes.indexOf(fe)!==-1||ue.floating||ne.isYAxisHidden(fe)||(ue.opposite&&(F.globals.translateX=F.globals.translateX-(L[fe].width+C[fe].width)-parseInt(F.config.yaxis[fe].labels.style.fontSize,10)/1.2-12),F.globals.translateX<2&&(F.globals.translateX=2))})}}]),ai}(),St=function(){function ai(C){I(this,ai),this.ctx=C,this.w=C.w,this.lgRect={},this.yAxisWidth=0,this.yAxisWidthLeft=0,this.yAxisWidthRight=0,this.xAxisHeight=0,this.isSparkline=this.w.config.chart.sparkline.enabled,this.dimHelpers=new Bt(this),this.dimYAxis=new ii(this),this.dimXAxis=new li(this),this.dimGrid=new Ot(this),this.lgWidthForSideLegends=0,this.gridPad=this.w.config.grid.padding,this.xPadRight=0,this.xPadLeft=0}return M(ai,[{key:"plotCoords",value:function(){var C=this,L=this.w,F=L.globals;this.lgRect=this.dimHelpers.getLegendsRect(),this.isSparkline&&((L.config.markers.discrete.length>0||L.config.markers.size>0)&&Object.entries(this.gridPad).forEach(function(ue){var fe=$(ue,2),me=fe[0],Pe=fe[1];C.gridPad[me]=Math.max(Pe,C.w.globals.markers.largestSize/1.5)}),this.gridPad.top=Math.max(L.config.stroke.width/2,this.gridPad.top),this.gridPad.bottom=Math.max(L.config.stroke.width/2,this.gridPad.bottom)),F.axisCharts?this.setDimensionsForAxisCharts():this.setDimensionsForNonAxisCharts(),this.dimGrid.gridPadFortitleSubtitle(),F.gridHeight=F.gridHeight-this.gridPad.top-this.gridPad.bottom,F.gridWidth=F.gridWidth-this.gridPad.left-this.gridPad.right-this.xPadRight-this.xPadLeft;var ne=this.dimGrid.gridPadForColumnsInNumericAxis(F.gridWidth);F.gridWidth=F.gridWidth-2*ne,F.translateX=F.translateX+this.gridPad.left+this.xPadLeft+(ne>0?ne+4:0),F.translateY=F.translateY+this.gridPad.top}},{key:"setDimensionsForAxisCharts",value:function(){var C=this,L=this.w,F=L.globals,ne=this.dimYAxis.getyAxisLabelsCoords(),ue=this.dimYAxis.getyAxisTitleCoords();L.globals.yLabelsCoords=[],L.globals.yTitleCoords=[],L.config.yaxis.map(function(nt,It){L.globals.yLabelsCoords.push({width:ne[It].width,index:It}),L.globals.yTitleCoords.push({width:ue[It].width,index:It})}),this.yAxisWidth=this.dimYAxis.getTotalYAxisWidth();var fe=this.dimXAxis.getxAxisLabelsCoords(),me=this.dimXAxis.getxAxisGroupLabelsCoords(),Pe=this.dimXAxis.getxAxisTitleCoords();this.conditionalChecksForAxisCoords(fe,Pe,me),F.translateXAxisY=L.globals.rotateXLabels?this.xAxisHeight/8:-4,F.translateXAxisX=L.globals.rotateXLabels&&L.globals.isXNumeric&&L.config.xaxis.labels.rotate<=-45?-this.xAxisWidth/4:0,L.globals.isBarHorizontal&&(F.rotateXLabels=!1,F.translateXAxisY=parseInt(L.config.xaxis.labels.style.fontSize,10)/1.5*-1),F.translateXAxisY=F.translateXAxisY+L.config.xaxis.labels.offsetY,F.translateXAxisX=F.translateXAxisX+L.config.xaxis.labels.offsetX;var Re=this.yAxisWidth,Xe=this.xAxisHeight;F.xAxisLabelsHeight=this.xAxisHeight-Pe.height,F.xAxisGroupLabelsHeight=F.xAxisLabelsHeight-fe.height,F.xAxisLabelsWidth=this.xAxisWidth,F.xAxisHeight=this.xAxisHeight;var qe=10;(L.config.chart.type==="radar"||this.isSparkline)&&(Re=0,Xe=F.goldenPadding),this.isSparkline&&(this.lgRect={height:0,width:0}),(this.isSparkline||L.config.chart.type==="treemap")&&(Re=0,Xe=0,qe=0),this.isSparkline||this.dimXAxis.additionalPaddingXLabels(fe);var Ke=function(){F.translateX=Re,F.gridHeight=F.svgHeight-C.lgRect.height-Xe-(C.isSparkline||L.config.chart.type==="treemap"?0:L.globals.rotateXLabels?10:15),F.gridWidth=F.svgWidth-Re};switch(L.config.xaxis.position==="top"&&(qe=F.xAxisHeight-L.config.xaxis.axisTicks.height-5),L.config.legend.position){case"bottom":F.translateY=qe,Ke();break;case"top":F.translateY=this.lgRect.height+qe,Ke();break;case"left":F.translateY=qe,F.translateX=this.lgRect.width+Re,F.gridHeight=F.svgHeight-Xe-12,F.gridWidth=F.svgWidth-this.lgRect.width-Re;break;case"right":F.translateY=qe,F.translateX=Re,F.gridHeight=F.svgHeight-Xe-12,F.gridWidth=F.svgWidth-this.lgRect.width-Re-5;break;default:throw new Error("Legend position not supported")}this.dimGrid.setGridXPosForDualYAxis(ue,ne),new Le(this.ctx).setYAxisXPosition(ne,ue)}},{key:"setDimensionsForNonAxisCharts",value:function(){var C=this.w,L=C.globals,F=C.config,ne=0;C.config.legend.show&&!C.config.legend.floating&&(ne=20);var ue=F.chart.type==="pie"||F.chart.type==="polarArea"||F.chart.type==="donut"?"pie":"radialBar",fe=F.plotOptions[ue].offsetY,me=F.plotOptions[ue].offsetX;if(!F.legend.show||F.legend.floating)return L.gridHeight=L.svgHeight-F.grid.padding.left+F.grid.padding.right,L.gridWidth=L.gridHeight,L.translateY=fe,void(L.translateX=me+(L.svgWidth-L.gridWidth)/2);switch(F.legend.position){case"bottom":L.gridHeight=L.svgHeight-this.lgRect.height-L.goldenPadding,L.gridWidth=L.svgWidth,L.translateY=fe-10,L.translateX=me+(L.svgWidth-L.gridWidth)/2;break;case"top":L.gridHeight=L.svgHeight-this.lgRect.height-L.goldenPadding,L.gridWidth=L.svgWidth,L.translateY=this.lgRect.height+fe+10,L.translateX=me+(L.svgWidth-L.gridWidth)/2;break;case"left":L.gridWidth=L.svgWidth-this.lgRect.width-ne,L.gridHeight=F.chart.height!=="auto"?L.svgHeight:L.gridWidth,L.translateY=fe,L.translateX=me+this.lgRect.width+ne;break;case"right":L.gridWidth=L.svgWidth-this.lgRect.width-ne-5,L.gridHeight=F.chart.height!=="auto"?L.svgHeight:L.gridWidth,L.translateY=fe,L.translateX=me+10;break;default:throw new Error("Legend position not supported")}}},{key:"conditionalChecksForAxisCoords",value:function(C,L,F){var ne=this.w,ue=ne.globals.hasXaxisGroups?2:1,fe=F.height+C.height+L.height,me=ne.globals.isMultiLineX?1.2:ne.globals.LINE_HEIGHT_RATIO,Pe=ne.globals.rotateXLabels?22:10,Re=ne.globals.rotateXLabels&&ne.config.legend.position==="bottom"?10:0;this.xAxisHeight=fe*me+ue*Pe+Re,this.xAxisWidth=C.width,this.xAxisHeight-L.height>ne.config.xaxis.labels.maxHeight&&(this.xAxisHeight=ne.config.xaxis.labels.maxHeight),ne.config.xaxis.labels.minHeight&&this.xAxisHeight<ne.config.xaxis.labels.minHeight&&(this.xAxisHeight=ne.config.xaxis.labels.minHeight),ne.config.xaxis.floating&&(this.xAxisHeight=0);var Xe=0,qe=0;ne.config.yaxis.forEach(function(Ke){Xe+=Ke.labels.minWidth,qe+=Ke.labels.maxWidth}),this.yAxisWidth<Xe&&(this.yAxisWidth=Xe),this.yAxisWidth>qe&&(this.yAxisWidth=qe)}}]),ai}(),pi=function(){function ai(C){I(this,ai),this.w=C.w,this.lgCtx=C}return M(ai,[{key:"getLegendStyles",value:function(){var C,L,F,ne=document.createElement("style");ne.setAttribute("type","text/css");var ue=((C=this.lgCtx.ctx)===null||C===void 0||(L=C.opts)===null||L===void 0||(F=L.chart)===null||F===void 0?void 0:F.nonce)||this.w.config.chart.nonce;ue&&ne.setAttribute("nonce",ue);var fe=document.createTextNode(`
      .apexcharts-legend {
        display: flex;
        overflow: auto;
        padding: 0 10px;
      }
      .apexcharts-legend.apx-legend-position-bottom, .apexcharts-legend.apx-legend-position-top {
        flex-wrap: wrap
      }
      .apexcharts-legend.apx-legend-position-right, .apexcharts-legend.apx-legend-position-left {
        flex-direction: column;
        bottom: 0;
      }
      .apexcharts-legend.apx-legend-position-bottom.apexcharts-align-left, .apexcharts-legend.apx-legend-position-top.apexcharts-align-left, .apexcharts-legend.apx-legend-position-right, .apexcharts-legend.apx-legend-position-left {
        justify-content: flex-start;
      }
      .apexcharts-legend.apx-legend-position-bottom.apexcharts-align-center, .apexcharts-legend.apx-legend-position-top.apexcharts-align-center {
        justify-content: center;
      }
      .apexcharts-legend.apx-legend-position-bottom.apexcharts-align-right, .apexcharts-legend.apx-legend-position-top.apexcharts-align-right {
        justify-content: flex-end;
      }
      .apexcharts-legend-series {
        cursor: pointer;
        line-height: normal;
      }
      .apexcharts-legend.apx-legend-position-bottom .apexcharts-legend-series, .apexcharts-legend.apx-legend-position-top .apexcharts-legend-series{
        display: flex;
        align-items: center;
      }
      .apexcharts-legend-text {
        position: relative;
        font-size: 14px;
      }
      .apexcharts-legend-text *, .apexcharts-legend-marker * {
        pointer-events: none;
      }
      .apexcharts-legend-marker {
        position: relative;
        display: inline-block;
        cursor: pointer;
        margin-right: 3px;
        border-style: solid;
      }

      .apexcharts-legend.apexcharts-align-right .apexcharts-legend-series, .apexcharts-legend.apexcharts-align-left .apexcharts-legend-series{
        display: inline-block;
      }
      .apexcharts-legend-series.apexcharts-no-click {
        cursor: auto;
      }
      .apexcharts-legend .apexcharts-hidden-zero-series, .apexcharts-legend .apexcharts-hidden-null-series {
        display: none !important;
      }
      .apexcharts-inactive-legend {
        opacity: 0.45;
      }`);return ne.appendChild(fe),ne}},{key:"getLegendBBox",value:function(){var C=this.w.globals.dom.baseEl.querySelector(".apexcharts-legend").getBoundingClientRect(),L=C.width;return{clwh:C.height,clww:L}}},{key:"appendToForeignObject",value:function(){this.w.globals.dom.elLegendForeign.appendChild(this.getLegendStyles())}},{key:"toggleDataSeries",value:function(C,L){var F=this,ne=this.w;if(ne.globals.axisCharts||ne.config.chart.type==="radialBar"){ne.globals.resized=!0;var ue=null,fe=null;ne.globals.risingSeries=[],ne.globals.axisCharts?(ue=ne.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(C,"']")),fe=parseInt(ue.getAttribute("data:realIndex"),10)):(ue=ne.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(C+1,"']")),fe=parseInt(ue.getAttribute("rel"),10)-1),L?[{cs:ne.globals.collapsedSeries,csi:ne.globals.collapsedSeriesIndices},{cs:ne.globals.ancillaryCollapsedSeries,csi:ne.globals.ancillaryCollapsedSeriesIndices}].forEach(function(Xe){F.riseCollapsedSeries(Xe.cs,Xe.csi,fe)}):this.hideSeries({seriesEl:ue,realIndex:fe})}else{var me=ne.globals.dom.Paper.select(" .apexcharts-series[rel='".concat(C+1,"'] path")),Pe=ne.config.chart.type;if(Pe==="pie"||Pe==="polarArea"||Pe==="donut"){var Re=ne.config.plotOptions.pie.donut.labels;new ge(this.lgCtx.ctx).pathMouseDown(me.members[0],null),this.lgCtx.ctx.pie.printDataLabelsInner(me.members[0].node,Re)}me.fire("click")}}},{key:"hideSeries",value:function(C){var L=C.seriesEl,F=C.realIndex,ne=this.w,ue=Y.clone(ne.config.series);if(ne.globals.axisCharts){var fe=!1;if(ne.config.yaxis[F]&&ne.config.yaxis[F].show&&ne.config.yaxis[F].showAlways&&(fe=!0,ne.globals.ancillaryCollapsedSeriesIndices.indexOf(F)<0&&(ne.globals.ancillaryCollapsedSeries.push({index:F,data:ue[F].data.slice(),type:L.parentNode.className.baseVal.split("-")[1]}),ne.globals.ancillaryCollapsedSeriesIndices.push(F))),!fe){ne.globals.collapsedSeries.push({index:F,data:ue[F].data.slice(),type:L.parentNode.className.baseVal.split("-")[1]}),ne.globals.collapsedSeriesIndices.push(F);var me=ne.globals.risingSeries.indexOf(F);ne.globals.risingSeries.splice(me,1)}}else ne.globals.collapsedSeries.push({index:F,data:ue[F]}),ne.globals.collapsedSeriesIndices.push(F);for(var Pe=L.childNodes,Re=0;Re<Pe.length;Re++)Pe[Re].classList.contains("apexcharts-series-markers-wrap")&&(Pe[Re].classList.contains("apexcharts-hide")?Pe[Re].classList.remove("apexcharts-hide"):Pe[Re].classList.add("apexcharts-hide"));ne.globals.allSeriesCollapsed=ne.globals.collapsedSeries.length===ne.config.series.length,ue=this._getSeriesBasedOnCollapsedState(ue),this.lgCtx.ctx.updateHelpers._updateSeries(ue,ne.config.chart.animations.dynamicAnimation.enabled)}},{key:"riseCollapsedSeries",value:function(C,L,F){var ne=this.w,ue=Y.clone(ne.config.series);if(C.length>0){for(var fe=0;fe<C.length;fe++)C[fe].index===F&&(ne.globals.axisCharts?(ue[F].data=C[fe].data.slice(),C.splice(fe,1),L.splice(fe,1),ne.globals.risingSeries.push(F)):(ue[F]=C[fe].data,C.splice(fe,1),L.splice(fe,1),ne.globals.risingSeries.push(F)));ue=this._getSeriesBasedOnCollapsedState(ue),this.lgCtx.ctx.updateHelpers._updateSeries(ue,ne.config.chart.animations.dynamicAnimation.enabled)}}},{key:"_getSeriesBasedOnCollapsedState",value:function(C){var L=this.w;return L.globals.axisCharts?C.forEach(function(F,ne){L.globals.collapsedSeriesIndices.indexOf(ne)>-1&&(C[ne].data=[])}):C.forEach(function(F,ne){L.globals.collapsedSeriesIndices.indexOf(ne)>-1&&(C[ne]=0)}),C}}]),ai}(),eM=function(){function ai(C){I(this,ai),this.ctx=C,this.w=C.w,this.onLegendClick=this.onLegendClick.bind(this),this.onLegendHovered=this.onLegendHovered.bind(this),this.isBarsDistributed=this.w.config.chart.type==="bar"&&this.w.config.plotOptions.bar.distributed&&this.w.config.series.length===1,this.legendHelpers=new pi(this)}return M(ai,[{key:"init",value:function(){var C=this.w,L=C.globals,F=C.config;if((F.legend.showForSingleSeries&&L.series.length===1||this.isBarsDistributed||L.series.length>1||!L.axisCharts)&&F.legend.show){for(;L.dom.elLegendWrap.firstChild;)L.dom.elLegendWrap.removeChild(L.dom.elLegendWrap.firstChild);this.drawLegends(),Y.isIE11()?document.getElementsByTagName("head")[0].appendChild(this.legendHelpers.getLegendStyles()):this.legendHelpers.appendToForeignObject(),F.legend.position==="bottom"||F.legend.position==="top"?this.legendAlignHorizontal():F.legend.position!=="right"&&F.legend.position!=="left"||this.legendAlignVertical()}}},{key:"drawLegends",value:function(){var C=this,L=this.w,F=L.config.legend.fontFamily,ne=L.globals.seriesNames,ue=L.globals.colors.slice();if(L.config.chart.type==="heatmap"){var fe=L.config.plotOptions.heatmap.colorScale.ranges;ne=fe.map(function(wM){return wM.name?wM.name:wM.from+" - "+wM.to}),ue=fe.map(function(wM){return wM.color})}else this.isBarsDistributed&&(ne=L.globals.labels.slice());L.config.legend.customLegendItems.length&&(ne=L.config.legend.customLegendItems);for(var me=L.globals.legendFormatter,Pe=L.config.legend.inverseOrder,Re=Pe?ne.length-1:0;Pe?Re>=0:Re<=ne.length-1;Pe?Re--:Re++){var Xe,qe=me(ne[Re],{seriesIndex:Re,w:L}),Ke=!1,nt=!1;if(L.globals.collapsedSeries.length>0)for(var It=0;It<L.globals.collapsedSeries.length;It++)L.globals.collapsedSeries[It].index===Re&&(Ke=!0);if(L.globals.ancillaryCollapsedSeriesIndices.length>0)for(var Tt=0;Tt<L.globals.ancillaryCollapsedSeriesIndices.length;Tt++)L.globals.ancillaryCollapsedSeriesIndices[Tt]===Re&&(nt=!0);var ni=document.createElement("span");ni.classList.add("apexcharts-legend-marker");var fi=L.config.legend.markers.offsetX,gi=L.config.legend.markers.offsetY,je=L.config.legend.markers.height,it=L.config.legend.markers.width,Ct=L.config.legend.markers.strokeWidth,si=L.config.legend.markers.strokeColor,di=L.config.legend.markers.radius,yi=ni.style;yi.background=ue[Re],yi.color=ue[Re],yi.setProperty("background",ue[Re],"important"),L.config.legend.markers.fillColors&&L.config.legend.markers.fillColors[Re]&&(yi.background=L.config.legend.markers.fillColors[Re]),L.globals.seriesColors[Re]!==void 0&&(yi.background=L.globals.seriesColors[Re],yi.color=L.globals.seriesColors[Re]),yi.height=Array.isArray(je)?parseFloat(je[Re])+"px":parseFloat(je)+"px",yi.width=Array.isArray(it)?parseFloat(it[Re])+"px":parseFloat(it)+"px",yi.left=(Array.isArray(fi)?parseFloat(fi[Re]):parseFloat(fi))+"px",yi.top=(Array.isArray(gi)?parseFloat(gi[Re]):parseFloat(gi))+"px",yi.borderWidth=Array.isArray(Ct)?Ct[Re]:Ct,yi.borderColor=Array.isArray(si)?si[Re]:si,yi.borderRadius=Array.isArray(di)?parseFloat(di[Re])+"px":parseFloat(di)+"px",L.config.legend.markers.customHTML&&(Array.isArray(L.config.legend.markers.customHTML)?L.config.legend.markers.customHTML[Re]&&(ni.innerHTML=L.config.legend.markers.customHTML[Re]()):ni.innerHTML=L.config.legend.markers.customHTML()),ge.setAttrs(ni,{rel:Re+1,"data:collapsed":Ke||nt}),(Ke||nt)&&ni.classList.add("apexcharts-inactive-legend");var nM=document.createElement("div"),iM=document.createElement("span");iM.classList.add("apexcharts-legend-text"),iM.innerHTML=Array.isArray(qe)?qe.join(" "):qe;var mM=L.config.legend.labels.useSeriesColors?L.globals.colors[Re]:Array.isArray(L.config.legend.labels.colors)?(Xe=L.config.legend.labels.colors)===null||Xe===void 0?void 0:Xe[Re]:L.config.legend.labels.colors;mM||(mM=L.config.chart.foreColor),iM.style.color=mM,iM.style.fontSize=parseFloat(L.config.legend.fontSize)+"px",iM.style.fontWeight=L.config.legend.fontWeight,iM.style.fontFamily=F||L.config.chart.fontFamily,ge.setAttrs(iM,{rel:Re+1,i:Re,"data:default-text":encodeURIComponent(qe),"data:collapsed":Ke||nt}),nM.appendChild(ni),nM.appendChild(iM);var EM=new be(this.ctx);L.config.legend.showForZeroSeries||EM.getSeriesTotalByIndex(Re)===0&&EM.seriesHaveSameValues(Re)&&!EM.isSeriesNull(Re)&&L.globals.collapsedSeriesIndices.indexOf(Re)===-1&&L.globals.ancillaryCollapsedSeriesIndices.indexOf(Re)===-1&&nM.classList.add("apexcharts-hidden-zero-series"),L.config.legend.showForNullSeries||EM.isSeriesNull(Re)&&L.globals.collapsedSeriesIndices.indexOf(Re)===-1&&L.globals.ancillaryCollapsedSeriesIndices.indexOf(Re)===-1&&nM.classList.add("apexcharts-hidden-null-series"),L.globals.dom.elLegendWrap.appendChild(nM),L.globals.dom.elLegendWrap.classList.add("apexcharts-align-".concat(L.config.legend.horizontalAlign)),L.globals.dom.elLegendWrap.classList.add("apx-legend-position-"+L.config.legend.position),nM.classList.add("apexcharts-legend-series"),nM.style.margin="".concat(L.config.legend.itemMargin.vertical,"px ").concat(L.config.legend.itemMargin.horizontal,"px"),L.globals.dom.elLegendWrap.style.width=L.config.legend.width?L.config.legend.width+"px":"",L.globals.dom.elLegendWrap.style.height=L.config.legend.height?L.config.legend.height+"px":"",ge.setAttrs(nM,{rel:Re+1,seriesName:Y.escapeString(ne[Re]),"data:collapsed":Ke||nt}),(Ke||nt)&&nM.classList.add("apexcharts-inactive-legend"),L.config.legend.onItemClick.toggleDataSeries||nM.classList.add("apexcharts-no-click")}L.globals.dom.elWrap.addEventListener("click",C.onLegendClick,!0),L.config.legend.onItemHover.highlightDataSeries&&L.config.legend.customLegendItems.length===0&&(L.globals.dom.elWrap.addEventListener("mousemove",C.onLegendHovered,!0),L.globals.dom.elWrap.addEventListener("mouseout",C.onLegendHovered,!0))}},{key:"setLegendWrapXY",value:function(C,L){var F=this.w,ne=F.globals.dom.elLegendWrap,ue=ne.getBoundingClientRect(),fe=0,me=0;if(F.config.legend.position==="bottom")me+=F.globals.svgHeight-ue.height/2;else if(F.config.legend.position==="top"){var Pe=new St(this.ctx),Re=Pe.dimHelpers.getTitleSubtitleCoords("title").height,Xe=Pe.dimHelpers.getTitleSubtitleCoords("subtitle").height;me=me+(Re>0?Re-10:0)+(Xe>0?Xe-10:0)}ne.style.position="absolute",fe=fe+C+F.config.legend.offsetX,me=me+L+F.config.legend.offsetY,ne.style.left=fe+"px",ne.style.top=me+"px",F.config.legend.position==="bottom"?(ne.style.top="auto",ne.style.bottom=5-F.config.legend.offsetY+"px"):F.config.legend.position==="right"&&(ne.style.left="auto",ne.style.right=25+F.config.legend.offsetX+"px"),["width","height"].forEach(function(qe){ne.style[qe]&&(ne.style[qe]=parseInt(F.config.legend[qe],10)+"px")})}},{key:"legendAlignHorizontal",value:function(){var C=this.w;C.globals.dom.elLegendWrap.style.right=0;var L=this.legendHelpers.getLegendBBox(),F=new St(this.ctx),ne=F.dimHelpers.getTitleSubtitleCoords("title"),ue=F.dimHelpers.getTitleSubtitleCoords("subtitle"),fe=0;C.config.legend.position==="bottom"?fe=-L.clwh/1.8:C.config.legend.position==="top"&&(fe=ne.height+ue.height+C.config.title.margin+C.config.subtitle.margin-10),this.setLegendWrapXY(20,fe)}},{key:"legendAlignVertical",value:function(){var C=this.w,L=this.legendHelpers.getLegendBBox(),F=0;C.config.legend.position==="left"&&(F=20),C.config.legend.position==="right"&&(F=C.globals.svgWidth-L.clww-10),this.setLegendWrapXY(F,20)}},{key:"onLegendHovered",value:function(C){var L=this.w,F=C.target.classList.contains("apexcharts-legend-series")||C.target.classList.contains("apexcharts-legend-text")||C.target.classList.contains("apexcharts-legend-marker");if(L.config.chart.type==="heatmap"||this.isBarsDistributed){if(F){var ne=parseInt(C.target.getAttribute("rel"),10)-1;this.ctx.events.fireEvent("legendHover",[this.ctx,ne,this.w]),new Ue(this.ctx).highlightRangeInSeries(C,C.target)}}else!C.target.classList.contains("apexcharts-inactive-legend")&&F&&new Ue(this.ctx).toggleSeriesOnHover(C,C.target)}},{key:"onLegendClick",value:function(C){var L=this.w;if(!L.config.legend.customLegendItems.length&&(C.target.classList.contains("apexcharts-legend-series")||C.target.classList.contains("apexcharts-legend-text")||C.target.classList.contains("apexcharts-legend-marker"))){var F=parseInt(C.target.getAttribute("rel"),10)-1,ne=C.target.getAttribute("data:collapsed")==="true",ue=this.w.config.chart.events.legendClick;typeof ue=="function"&&ue(this.ctx,F,this.w),this.ctx.events.fireEvent("legendClick",[this.ctx,F,this.w]);var fe=this.w.config.legend.markers.onClick;typeof fe=="function"&&C.target.classList.contains("apexcharts-legend-marker")&&(fe(this.ctx,F,this.w),this.ctx.events.fireEvent("legendMarkerClick",[this.ctx,F,this.w])),L.config.chart.type!=="treemap"&&L.config.chart.type!=="heatmap"&&!this.isBarsDistributed&&L.config.legend.onItemClick.toggleDataSeries&&this.legendHelpers.toggleDataSeries(F,ne)}}}]),ai}(),hi=function(){function ai(C){I(this,ai),this.ctx=C,this.w=C.w;var L=this.w;this.ev=this.w.config.chart.events,this.selectedClass="apexcharts-selected",this.localeValues=this.w.globals.locale.toolbar,this.minX=L.globals.minX,this.maxX=L.globals.maxX}return M(ai,[{key:"createToolbar",value:function(){var C=this,L=this.w,F=function(){return document.createElement("div")},ne=F();if(ne.setAttribute("class","apexcharts-toolbar"),ne.style.top=L.config.chart.toolbar.offsetY+"px",ne.style.right=3-L.config.chart.toolbar.offsetX+"px",L.globals.dom.elWrap.appendChild(ne),this.elZoom=F(),this.elZoomIn=F(),this.elZoomOut=F(),this.elPan=F(),this.elSelection=F(),this.elZoomReset=F(),this.elMenuIcon=F(),this.elMenu=F(),this.elCustomIcons=[],this.t=L.config.chart.toolbar.tools,Array.isArray(this.t.customIcons))for(var ue=0;ue<this.t.customIcons.length;ue++)this.elCustomIcons.push(F());var fe=[],me=function(qe,Ke,nt){var It=qe.toLowerCase();C.t[It]&&L.config.chart.zoom.enabled&&fe.push({el:Ke,icon:typeof C.t[It]=="string"?C.t[It]:nt,title:C.localeValues[qe],class:"apexcharts-".concat(It,"-icon")})};me("zoomIn",this.elZoomIn,`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
    <path d="M0 0h24v24H0z" fill="none"/>
    <path d="M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/>
</svg>
`),me("zoomOut",this.elZoomOut,`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
    <path d="M0 0h24v24H0z" fill="none"/>
    <path d="M7 11v2h10v-2H7zm5-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/>
</svg>
`);var Pe=function(qe){C.t[qe]&&L.config.chart[qe].enabled&&fe.push({el:qe==="zoom"?C.elZoom:C.elSelection,icon:typeof C.t[qe]=="string"?C.t[qe]:qe==="zoom"?`<svg xmlns="http://www.w3.org/2000/svg" fill="#000000" height="24" viewBox="0 0 24 24" width="24">
    <path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/>
    <path d="M0 0h24v24H0V0z" fill="none"/>
    <path d="M12 10h-2v2H9v-2H7V9h2V7h1v2h2v1z"/>
</svg>`:`<svg fill="#6E8192" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
    <path d="M0 0h24v24H0z" fill="none"/>
    <path d="M3 5h2V3c-1.1 0-2 .9-2 2zm0 8h2v-2H3v2zm4 8h2v-2H7v2zM3 9h2V7H3v2zm10-6h-2v2h2V3zm6 0v2h2c0-1.1-.9-2-2-2zM5 21v-2H3c0 1.1.9 2 2 2zm-2-4h2v-2H3v2zM9 3H7v2h2V3zm2 18h2v-2h-2v2zm8-8h2v-2h-2v2zm0 8c1.1 0 2-.9 2-2h-2v2zm0-12h2V7h-2v2zm0 8h2v-2h-2v2zm-4 4h2v-2h-2v2zm0-16h2V3h-2v2z"/>
</svg>`,title:C.localeValues[qe==="zoom"?"selectionZoom":"selection"],class:L.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-".concat(qe,"-icon")})};Pe("zoom"),Pe("selection"),this.t.pan&&L.config.chart.zoom.enabled&&fe.push({el:this.elPan,icon:typeof this.t.pan=="string"?this.t.pan:`<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="#000000" height="24" viewBox="0 0 24 24" width="24">
    <defs>
        <path d="M0 0h24v24H0z" id="a"/>
    </defs>
    <clipPath id="b">
        <use overflow="visible" xlink:href="#a"/>
    </clipPath>
    <path clip-path="url(#b)" d="M23 5.5V20c0 2.2-1.8 4-4 4h-7.3c-1.08 0-2.1-.43-2.85-1.19L1 14.83s1.26-1.23 1.3-1.25c.22-.19.49-.29.79-.29.22 0 .42.06.6.16.04.01 4.31 2.46 4.31 2.46V4c0-.83.67-1.5 1.5-1.5S11 3.17 11 4v7h1V1.5c0-.83.67-1.5 1.5-1.5S15 .67 15 1.5V11h1V2.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5V11h1V5.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5z"/>
</svg>`,title:this.localeValues.pan,class:L.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-pan-icon"}),me("reset",this.elZoomReset,`<svg fill="#000000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
    <path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/>
    <path d="M0 0h24v24H0z" fill="none"/>
</svg>`),this.t.download&&fe.push({el:this.elMenuIcon,icon:typeof this.t.download=="string"?this.t.download:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"/></svg>',title:this.localeValues.menu,class:"apexcharts-menu-icon"});for(var Re=0;Re<this.elCustomIcons.length;Re++)fe.push({el:this.elCustomIcons[Re],icon:this.t.customIcons[Re].icon,title:this.t.customIcons[Re].title,index:this.t.customIcons[Re].index,class:"apexcharts-toolbar-custom-icon "+this.t.customIcons[Re].class});fe.forEach(function(qe,Ke){qe.index&&Y.moveIndexInArray(fe,Ke,qe.index)});for(var Xe=0;Xe<fe.length;Xe++)ge.setAttrs(fe[Xe].el,{class:fe[Xe].class,title:fe[Xe].title}),fe[Xe].el.innerHTML=fe[Xe].icon,ne.appendChild(fe[Xe].el);this._createHamburgerMenu(ne),L.globals.zoomEnabled?this.elZoom.classList.add(this.selectedClass):L.globals.panEnabled?this.elPan.classList.add(this.selectedClass):L.globals.selectionEnabled&&this.elSelection.classList.add(this.selectedClass),this.addToolbarEventListeners()}},{key:"_createHamburgerMenu",value:function(C){this.elMenuItems=[],C.appendChild(this.elMenu),ge.setAttrs(this.elMenu,{class:"apexcharts-menu"});for(var L=[{name:"exportSVG",title:this.localeValues.exportToSVG},{name:"exportPNG",title:this.localeValues.exportToPNG},{name:"exportCSV",title:this.localeValues.exportToCSV}],F=0;F<L.length;F++)this.elMenuItems.push(document.createElement("div")),this.elMenuItems[F].innerHTML=L[F].title,ge.setAttrs(this.elMenuItems[F],{class:"apexcharts-menu-item ".concat(L[F].name),title:L[F].title}),this.elMenu.appendChild(this.elMenuItems[F])}},{key:"addToolbarEventListeners",value:function(){var C=this;this.elZoomReset.addEventListener("click",this.handleZoomReset.bind(this)),this.elSelection.addEventListener("click",this.toggleZoomSelection.bind(this,"selection")),this.elZoom.addEventListener("click",this.toggleZoomSelection.bind(this,"zoom")),this.elZoomIn.addEventListener("click",this.handleZoomIn.bind(this)),this.elZoomOut.addEventListener("click",this.handleZoomOut.bind(this)),this.elPan.addEventListener("click",this.togglePanning.bind(this)),this.elMenuIcon.addEventListener("click",this.toggleMenu.bind(this)),this.elMenuItems.forEach(function(F){F.classList.contains("exportSVG")?F.addEventListener("click",C.handleDownload.bind(C,"svg")):F.classList.contains("exportPNG")?F.addEventListener("click",C.handleDownload.bind(C,"png")):F.classList.contains("exportCSV")&&F.addEventListener("click",C.handleDownload.bind(C,"csv"))});for(var L=0;L<this.t.customIcons.length;L++)this.elCustomIcons[L].addEventListener("click",this.t.customIcons[L].click.bind(this,this.ctx,this.ctx.w))}},{key:"toggleZoomSelection",value:function(C){this.ctx.getSyncedCharts().forEach(function(L){L.ctx.toolbar.toggleOtherControls();var F=C==="selection"?L.ctx.toolbar.elSelection:L.ctx.toolbar.elZoom,ne=C==="selection"?"selectionEnabled":"zoomEnabled";L.w.globals[ne]=!L.w.globals[ne],F.classList.contains(L.ctx.toolbar.selectedClass)?F.classList.remove(L.ctx.toolbar.selectedClass):F.classList.add(L.ctx.toolbar.selectedClass)})}},{key:"getToolbarIconsReference",value:function(){var C=this.w;this.elZoom||(this.elZoom=C.globals.dom.baseEl.querySelector(".apexcharts-zoom-icon")),this.elPan||(this.elPan=C.globals.dom.baseEl.querySelector(".apexcharts-pan-icon")),this.elSelection||(this.elSelection=C.globals.dom.baseEl.querySelector(".apexcharts-selection-icon"))}},{key:"enableZoomPanFromToolbar",value:function(C){this.toggleOtherControls(),C==="pan"?this.w.globals.panEnabled=!0:this.w.globals.zoomEnabled=!0;var L=C==="pan"?this.elPan:this.elZoom,F=C==="pan"?this.elZoom:this.elPan;L&&L.classList.add(this.selectedClass),F&&F.classList.remove(this.selectedClass)}},{key:"togglePanning",value:function(){this.ctx.getSyncedCharts().forEach(function(C){C.ctx.toolbar.toggleOtherControls(),C.w.globals.panEnabled=!C.w.globals.panEnabled,C.ctx.toolbar.elPan.classList.contains(C.ctx.toolbar.selectedClass)?C.ctx.toolbar.elPan.classList.remove(C.ctx.toolbar.selectedClass):C.ctx.toolbar.elPan.classList.add(C.ctx.toolbar.selectedClass)})}},{key:"toggleOtherControls",value:function(){var C=this,L=this.w;L.globals.panEnabled=!1,L.globals.zoomEnabled=!1,L.globals.selectionEnabled=!1,this.getToolbarIconsReference(),[this.elPan,this.elSelection,this.elZoom].forEach(function(F){F&&F.classList.remove(C.selectedClass)})}},{key:"handleZoomIn",value:function(){var C=this.w;C.globals.isRangeBar&&(this.minX=C.globals.minY,this.maxX=C.globals.maxY);var L=(this.minX+this.maxX)/2,F=(this.minX+L)/2,ne=(this.maxX+L)/2,ue=this._getNewMinXMaxX(F,ne);C.globals.disableZoomIn||this.zoomUpdateOptions(ue.minX,ue.maxX)}},{key:"handleZoomOut",value:function(){var C=this.w;if(C.globals.isRangeBar&&(this.minX=C.globals.minY,this.maxX=C.globals.maxY),!(C.config.xaxis.type==="datetime"&&new Date(this.minX).getUTCFullYear()<1e3)){var L=(this.minX+this.maxX)/2,F=this.minX-(L-this.minX),ne=this.maxX-(L-this.maxX),ue=this._getNewMinXMaxX(F,ne);C.globals.disableZoomOut||this.zoomUpdateOptions(ue.minX,ue.maxX)}}},{key:"_getNewMinXMaxX",value:function(C,L){var F=this.w.config.xaxis.convertedCatToNumeric;return{minX:F?Math.floor(C):C,maxX:F?Math.floor(L):L}}},{key:"zoomUpdateOptions",value:function(C,L){var F=this.w;if(C!==void 0||L!==void 0){if(!(F.config.xaxis.convertedCatToNumeric&&(C<1&&(C=1,L=F.globals.dataPoints),L-C<2))){var ne={min:C,max:L},ue=this.getBeforeZoomRange(ne);ue&&(ne=ue.xaxis);var fe={xaxis:ne},me=Y.clone(F.globals.initialConfig.yaxis);F.config.chart.zoom.autoScaleYaxis&&(me=new et(this.ctx).autoScaleY(this.ctx,me,{xaxis:ne})),F.config.chart.group||(fe.yaxis=me),this.w.globals.zoomed=!0,this.ctx.updateHelpers._updateOptions(fe,!1,this.w.config.chart.animations.dynamicAnimation.enabled),this.zoomCallback(ne,me)}}else this.handleZoomReset()}},{key:"zoomCallback",value:function(C,L){typeof this.ev.zoomed=="function"&&this.ev.zoomed(this.ctx,{xaxis:C,yaxis:L})}},{key:"getBeforeZoomRange",value:function(C,L){var F=null;return typeof this.ev.beforeZoom=="function"&&(F=this.ev.beforeZoom(this,{xaxis:C,yaxis:L})),F}},{key:"toggleMenu",value:function(){var C=this;window.setTimeout(function(){C.elMenu.classList.contains("apexcharts-menu-open")?C.elMenu.classList.remove("apexcharts-menu-open"):C.elMenu.classList.add("apexcharts-menu-open")},0)}},{key:"handleDownload",value:function(C){var L=this.w,F=new ri(this.ctx);switch(C){case"svg":F.exportToSVG(this.ctx);break;case"png":F.exportToPng(this.ctx);break;case"csv":F.exportToCSV({series:L.config.series,columnDelimiter:L.config.chart.toolbar.export.csv.columnDelimiter})}}},{key:"handleZoomReset",value:function(C){this.ctx.getSyncedCharts().forEach(function(L){var F=L.w;if(F.globals.lastXAxis.min=F.globals.initialConfig.xaxis.min,F.globals.lastXAxis.max=F.globals.initialConfig.xaxis.max,L.updateHelpers.revertDefaultAxisMinMax(),typeof F.config.chart.events.beforeResetZoom=="function"){var ne=F.config.chart.events.beforeResetZoom(L,F);ne&&L.updateHelpers.revertDefaultAxisMinMax(ne)}typeof F.config.chart.events.zoomed=="function"&&L.ctx.toolbar.zoomCallback({min:F.config.xaxis.min,max:F.config.xaxis.max}),F.globals.zoomed=!1;var ue=L.ctx.series.emptyCollapsedSeries(Y.clone(F.globals.initialSeries));L.updateHelpers._updateSeries(ue,F.config.chart.animations.dynamicAnimation.enabled)})}},{key:"destroy",value:function(){this.elZoom=null,this.elZoomIn=null,this.elZoomOut=null,this.elPan=null,this.elSelection=null,this.elZoomReset=null,this.elMenuIcon=null}}]),ai}(),mi=function(ai){A(L,hi);var C=j(L);function L(F){var ne;return I(this,L),(ne=C.call(this,F)).ctx=F,ne.w=F.w,ne.dragged=!1,ne.graphics=new ge(ne.ctx),ne.eventList=["mousedown","mouseleave","mousemove","touchstart","touchmove","mouseup","touchend"],ne.clientX=0,ne.clientY=0,ne.startX=0,ne.endX=0,ne.dragX=0,ne.startY=0,ne.endY=0,ne.dragY=0,ne.moveDirection="none",ne}return M(L,[{key:"init",value:function(F){var ne=this,ue=F.xyRatios,fe=this.w,me=this;this.xyRatios=ue,this.zoomRect=this.graphics.drawRect(0,0,0,0),this.selectionRect=this.graphics.drawRect(0,0,0,0),this.gridRect=fe.globals.dom.baseEl.querySelector(".apexcharts-grid"),this.zoomRect.node.classList.add("apexcharts-zoom-rect"),this.selectionRect.node.classList.add("apexcharts-selection-rect"),fe.globals.dom.elGraphical.add(this.zoomRect),fe.globals.dom.elGraphical.add(this.selectionRect),fe.config.chart.selection.type==="x"?this.slDraggableRect=this.selectionRect.draggable({minX:0,minY:0,maxX:fe.globals.gridWidth,maxY:fe.globals.gridHeight}).on("dragmove",this.selectionDragging.bind(this,"dragging")):fe.config.chart.selection.type==="y"?this.slDraggableRect=this.selectionRect.draggable({minX:0,maxX:fe.globals.gridWidth}).on("dragmove",this.selectionDragging.bind(this,"dragging")):this.slDraggableRect=this.selectionRect.draggable().on("dragmove",this.selectionDragging.bind(this,"dragging")),this.preselectedSelection(),this.hoverArea=fe.globals.dom.baseEl.querySelector("".concat(fe.globals.chartClass," .apexcharts-svg")),this.hoverArea.classList.add("apexcharts-zoomable"),this.eventList.forEach(function(Pe){ne.hoverArea.addEventListener(Pe,me.svgMouseEvents.bind(me,ue),{capture:!1,passive:!0})})}},{key:"destroy",value:function(){this.slDraggableRect&&(this.slDraggableRect.draggable(!1),this.slDraggableRect.off(),this.selectionRect.off()),this.selectionRect=null,this.zoomRect=null,this.gridRect=null}},{key:"svgMouseEvents",value:function(F,ne){var ue=this.w,fe=this,me=this.ctx.toolbar,Pe=ue.globals.zoomEnabled?ue.config.chart.zoom.type:ue.config.chart.selection.type,Re=ue.config.chart.toolbar.autoSelected;if(ne.shiftKey?(this.shiftWasPressed=!0,me.enableZoomPanFromToolbar(Re==="pan"?"zoom":"pan")):this.shiftWasPressed&&(me.enableZoomPanFromToolbar(Re),this.shiftWasPressed=!1),ne.target){var Xe,qe=ne.target.classList;if(ne.target.parentNode&&ne.target.parentNode!==null&&(Xe=ne.target.parentNode.classList),!(qe.contains("apexcharts-selection-rect")||qe.contains("apexcharts-legend-marker")||qe.contains("apexcharts-legend-text")||Xe&&Xe.contains("apexcharts-toolbar"))){if(fe.clientX=ne.type==="touchmove"||ne.type==="touchstart"?ne.touches[0].clientX:ne.type==="touchend"?ne.changedTouches[0].clientX:ne.clientX,fe.clientY=ne.type==="touchmove"||ne.type==="touchstart"?ne.touches[0].clientY:ne.type==="touchend"?ne.changedTouches[0].clientY:ne.clientY,ne.type==="mousedown"&&ne.which===1){var Ke=fe.gridRect.getBoundingClientRect();fe.startX=fe.clientX-Ke.left,fe.startY=fe.clientY-Ke.top,fe.dragged=!1,fe.w.globals.mousedown=!0}if((ne.type==="mousemove"&&ne.which===1||ne.type==="touchmove")&&(fe.dragged=!0,ue.globals.panEnabled?(ue.globals.selection=null,fe.w.globals.mousedown&&fe.panDragging({context:fe,zoomtype:Pe,xyRatios:F})):(fe.w.globals.mousedown&&ue.globals.zoomEnabled||fe.w.globals.mousedown&&ue.globals.selectionEnabled)&&(fe.selection=fe.selectionDrawing({context:fe,zoomtype:Pe}))),ne.type==="mouseup"||ne.type==="touchend"||ne.type==="mouseleave"){var nt=fe.gridRect.getBoundingClientRect();fe.w.globals.mousedown&&(fe.endX=fe.clientX-nt.left,fe.endY=fe.clientY-nt.top,fe.dragX=Math.abs(fe.endX-fe.startX),fe.dragY=Math.abs(fe.endY-fe.startY),(ue.globals.zoomEnabled||ue.globals.selectionEnabled)&&fe.selectionDrawn({context:fe,zoomtype:Pe}),ue.globals.panEnabled&&ue.config.xaxis.convertedCatToNumeric&&fe.delayedPanScrolled()),ue.globals.zoomEnabled&&fe.hideSelectionRect(this.selectionRect),fe.dragged=!1,fe.w.globals.mousedown=!1}this.makeSelectionRectDraggable()}}}},{key:"makeSelectionRectDraggable",value:function(){var F=this.w;if(this.selectionRect){var ne=this.selectionRect.node.getBoundingClientRect();ne.width>0&&ne.height>0&&this.slDraggableRect.selectize({points:"l, r",pointSize:8,pointType:"rect"}).resize({constraint:{minX:0,minY:0,maxX:F.globals.gridWidth,maxY:F.globals.gridHeight}}).on("resizing",this.selectionDragging.bind(this,"resizing"))}}},{key:"preselectedSelection",value:function(){var F=this.w,ne=this.xyRatios;if(!F.globals.zoomEnabled){if(F.globals.selection!==void 0&&F.globals.selection!==null)this.drawSelectionRect(F.globals.selection);else if(F.config.chart.selection.xaxis.min!==void 0&&F.config.chart.selection.xaxis.max!==void 0){var ue=(F.config.chart.selection.xaxis.min-F.globals.minX)/ne.xRatio,fe=F.globals.gridWidth-(F.globals.maxX-F.config.chart.selection.xaxis.max)/ne.xRatio-ue;F.globals.isRangeBar&&(ue=(F.config.chart.selection.xaxis.min-F.globals.yAxisScale[0].niceMin)/ne.invertedYRatio,fe=(F.config.chart.selection.xaxis.max-F.config.chart.selection.xaxis.min)/ne.invertedYRatio);var me={x:ue,y:0,width:fe,height:F.globals.gridHeight,translateX:0,translateY:0,selectionEnabled:!0};this.drawSelectionRect(me),this.makeSelectionRectDraggable(),typeof F.config.chart.events.selection=="function"&&F.config.chart.events.selection(this.ctx,{xaxis:{min:F.config.chart.selection.xaxis.min,max:F.config.chart.selection.xaxis.max},yaxis:{}})}}}},{key:"drawSelectionRect",value:function(F){var ne=F.x,ue=F.y,fe=F.width,me=F.height,Pe=F.translateX,Re=Pe===void 0?0:Pe,Xe=F.translateY,qe=Xe===void 0?0:Xe,Ke=this.w,nt=this.zoomRect,It=this.selectionRect;if(this.dragged||Ke.globals.selection!==null){var Tt={transform:"translate("+Re+", "+qe+")"};Ke.globals.zoomEnabled&&this.dragged&&(fe<0&&(fe=1),nt.attr({x:ne,y:ue,width:fe,height:me,fill:Ke.config.chart.zoom.zoomedArea.fill.color,"fill-opacity":Ke.config.chart.zoom.zoomedArea.fill.opacity,stroke:Ke.config.chart.zoom.zoomedArea.stroke.color,"stroke-width":Ke.config.chart.zoom.zoomedArea.stroke.width,"stroke-opacity":Ke.config.chart.zoom.zoomedArea.stroke.opacity}),ge.setAttrs(nt.node,Tt)),Ke.globals.selectionEnabled&&(It.attr({x:ne,y:ue,width:fe>0?fe:0,height:me>0?me:0,fill:Ke.config.chart.selection.fill.color,"fill-opacity":Ke.config.chart.selection.fill.opacity,stroke:Ke.config.chart.selection.stroke.color,"stroke-width":Ke.config.chart.selection.stroke.width,"stroke-dasharray":Ke.config.chart.selection.stroke.dashArray,"stroke-opacity":Ke.config.chart.selection.stroke.opacity}),ge.setAttrs(It.node,Tt))}}},{key:"hideSelectionRect",value:function(F){F&&F.attr({x:0,y:0,width:0,height:0})}},{key:"selectionDrawing",value:function(F){var ne=F.context,ue=F.zoomtype,fe=this.w,me=ne,Pe=this.gridRect.getBoundingClientRect(),Re=me.startX-1,Xe=me.startY,qe=!1,Ke=!1,nt=me.clientX-Pe.left-Re,It=me.clientY-Pe.top-Xe,Tt={};return Math.abs(nt+Re)>fe.globals.gridWidth?nt=fe.globals.gridWidth-Re:me.clientX-Pe.left<0&&(nt=Re),Re>me.clientX-Pe.left&&(qe=!0,nt=Math.abs(nt)),Xe>me.clientY-Pe.top&&(Ke=!0,It=Math.abs(It)),Tt=ue==="x"?{x:qe?Re-nt:Re,y:0,width:nt,height:fe.globals.gridHeight}:ue==="y"?{x:0,y:Ke?Xe-It:Xe,width:fe.globals.gridWidth,height:It}:{x:qe?Re-nt:Re,y:Ke?Xe-It:Xe,width:nt,height:It},me.drawSelectionRect(Tt),me.selectionDragging("resizing"),Tt}},{key:"selectionDragging",value:function(F,ne){var ue=this,fe=this.w,me=this.xyRatios,Pe=this.selectionRect,Re=0;F==="resizing"&&(Re=30);var Xe=function(Ke){return parseFloat(Pe.node.getAttribute(Ke))},qe={x:Xe("x"),y:Xe("y"),width:Xe("width"),height:Xe("height")};fe.globals.selection=qe,typeof fe.config.chart.events.selection=="function"&&fe.globals.selectionEnabled&&(clearTimeout(this.w.globals.selectionResizeTimer),this.w.globals.selectionResizeTimer=window.setTimeout(function(){var Ke,nt,It,Tt,ni=ue.gridRect.getBoundingClientRect(),fi=Pe.node.getBoundingClientRect();fe.globals.isRangeBar?(Ke=fe.globals.yAxisScale[0].niceMin+(fi.left-ni.left)*me.invertedYRatio,nt=fe.globals.yAxisScale[0].niceMin+(fi.right-ni.left)*me.invertedYRatio,It=0,Tt=1):(Ke=fe.globals.xAxisScale.niceMin+(fi.left-ni.left)*me.xRatio,nt=fe.globals.xAxisScale.niceMin+(fi.right-ni.left)*me.xRatio,It=fe.globals.yAxisScale[0].niceMin+(ni.bottom-fi.bottom)*me.yRatio[0],Tt=fe.globals.yAxisScale[0].niceMax-(fi.top-ni.top)*me.yRatio[0]);var gi={xaxis:{min:Ke,max:nt},yaxis:{min:It,max:Tt}};fe.config.chart.events.selection(ue.ctx,gi),fe.config.chart.brush.enabled&&fe.config.chart.events.brushScrolled!==void 0&&fe.config.chart.events.brushScrolled(ue.ctx,gi)},Re))}},{key:"selectionDrawn",value:function(F){var ne=F.context,ue=F.zoomtype,fe=this.w,me=ne,Pe=this.xyRatios,Re=this.ctx.toolbar;if(me.startX>me.endX){var Xe=me.startX;me.startX=me.endX,me.endX=Xe}if(me.startY>me.endY){var qe=me.startY;me.startY=me.endY,me.endY=qe}var Ke=void 0,nt=void 0;fe.globals.isRangeBar?(Ke=fe.globals.yAxisScale[0].niceMin+me.startX*Pe.invertedYRatio,nt=fe.globals.yAxisScale[0].niceMin+me.endX*Pe.invertedYRatio):(Ke=fe.globals.xAxisScale.niceMin+me.startX*Pe.xRatio,nt=fe.globals.xAxisScale.niceMin+me.endX*Pe.xRatio);var It=[],Tt=[];if(fe.config.yaxis.forEach(function(di,yi){It.push(fe.globals.yAxisScale[yi].niceMax-Pe.yRatio[yi]*me.startY),Tt.push(fe.globals.yAxisScale[yi].niceMax-Pe.yRatio[yi]*me.endY)}),me.dragged&&(me.dragX>10||me.dragY>10)&&Ke!==nt){if(fe.globals.zoomEnabled){var ni=Y.clone(fe.globals.initialConfig.yaxis),fi=Y.clone(fe.globals.initialConfig.xaxis);if(fe.globals.zoomed=!0,fe.config.xaxis.convertedCatToNumeric&&(Ke=Math.floor(Ke),nt=Math.floor(nt),Ke<1&&(Ke=1,nt=fe.globals.dataPoints),nt-Ke<2&&(nt=Ke+1)),ue!=="xy"&&ue!=="x"||(fi={min:Ke,max:nt}),ue!=="xy"&&ue!=="y"||ni.forEach(function(di,yi){ni[yi].min=Tt[yi],ni[yi].max=It[yi]}),fe.config.chart.zoom.autoScaleYaxis){var gi=new et(me.ctx);ni=gi.autoScaleY(me.ctx,ni,{xaxis:fi})}if(Re){var je=Re.getBeforeZoomRange(fi,ni);je&&(fi=je.xaxis?je.xaxis:fi,ni=je.yaxis?je.yaxis:ni)}var it={xaxis:fi};fe.config.chart.group||(it.yaxis=ni),me.ctx.updateHelpers._updateOptions(it,!1,me.w.config.chart.animations.dynamicAnimation.enabled),typeof fe.config.chart.events.zoomed=="function"&&Re.zoomCallback(fi,ni)}else if(fe.globals.selectionEnabled){var Ct,si=null;Ct={min:Ke,max:nt},ue!=="xy"&&ue!=="y"||(si=Y.clone(fe.config.yaxis)).forEach(function(di,yi){si[yi].min=Tt[yi],si[yi].max=It[yi]}),fe.globals.selection=me.selection,typeof fe.config.chart.events.selection=="function"&&fe.config.chart.events.selection(me.ctx,{xaxis:Ct,yaxis:si})}}}},{key:"panDragging",value:function(F){var ne=F.context,ue=this.w,fe=ne;if(ue.globals.lastClientPosition.x!==void 0){var me=ue.globals.lastClientPosition.x-fe.clientX,Pe=ue.globals.lastClientPosition.y-fe.clientY;Math.abs(me)>Math.abs(Pe)&&me>0?this.moveDirection="left":Math.abs(me)>Math.abs(Pe)&&me<0?this.moveDirection="right":Math.abs(Pe)>Math.abs(me)&&Pe>0?this.moveDirection="up":Math.abs(Pe)>Math.abs(me)&&Pe<0&&(this.moveDirection="down")}ue.globals.lastClientPosition={x:fe.clientX,y:fe.clientY};var Re=ue.globals.isRangeBar?ue.globals.minY:ue.globals.minX,Xe=ue.globals.isRangeBar?ue.globals.maxY:ue.globals.maxX;ue.config.xaxis.convertedCatToNumeric||fe.panScrolled(Re,Xe)}},{key:"delayedPanScrolled",value:function(){var F=this.w,ne=F.globals.minX,ue=F.globals.maxX,fe=(F.globals.maxX-F.globals.minX)/2;this.moveDirection==="left"?(ne=F.globals.minX+fe,ue=F.globals.maxX+fe):this.moveDirection==="right"&&(ne=F.globals.minX-fe,ue=F.globals.maxX-fe),ne=Math.floor(ne),ue=Math.floor(ue),this.updateScrolledChart({xaxis:{min:ne,max:ue}},ne,ue)}},{key:"panScrolled",value:function(F,ne){var ue=this.w,fe=this.xyRatios,me=Y.clone(ue.globals.initialConfig.yaxis),Pe=fe.xRatio,Re=ue.globals.minX,Xe=ue.globals.maxX;ue.globals.isRangeBar&&(Pe=fe.invertedYRatio,Re=ue.globals.minY,Xe=ue.globals.maxY),this.moveDirection==="left"?(F=Re+ue.globals.gridWidth/15*Pe,ne=Xe+ue.globals.gridWidth/15*Pe):this.moveDirection==="right"&&(F=Re-ue.globals.gridWidth/15*Pe,ne=Xe-ue.globals.gridWidth/15*Pe),ue.globals.isRangeBar||(F<ue.globals.initialMinX||ne>ue.globals.initialMaxX)&&(F=Re,ne=Xe);var qe={min:F,max:ne};ue.config.chart.zoom.autoScaleYaxis&&(me=new et(this.ctx).autoScaleY(this.ctx,me,{xaxis:qe}));var Ke={xaxis:{min:F,max:ne}};ue.config.chart.group||(Ke.yaxis=me),this.updateScrolledChart(Ke,F,ne)}},{key:"updateScrolledChart",value:function(F,ne,ue){var fe=this.w;this.ctx.updateHelpers._updateOptions(F,!1,!1),typeof fe.config.chart.events.scrolled=="function"&&fe.config.chart.events.scrolled(this.ctx,{xaxis:{min:ne,max:ue}})}}]),L}(),Dn=function(){function ai(C){I(this,ai),this.w=C.w,this.ttCtx=C,this.ctx=C.ctx}return M(ai,[{key:"getNearestValues",value:function(C){var L=C.hoverArea,F=C.elGrid,ne=C.clientX,ue=C.clientY,fe=this.w,me=F.getBoundingClientRect(),Pe=me.width,Re=me.height,Xe=Pe/(fe.globals.dataPoints-1),qe=Re/fe.globals.dataPoints,Ke=this.hasBars();!fe.globals.comboCharts&&!Ke||fe.config.xaxis.convertedCatToNumeric||(Xe=Pe/fe.globals.dataPoints);var nt=ne-me.left-fe.globals.barPadForNumericAxis,It=ue-me.top;nt<0||It<0||nt>Pe||It>Re?(L.classList.remove("hovering-zoom"),L.classList.remove("hovering-pan")):fe.globals.zoomEnabled?(L.classList.remove("hovering-pan"),L.classList.add("hovering-zoom")):fe.globals.panEnabled&&(L.classList.remove("hovering-zoom"),L.classList.add("hovering-pan"));var Tt=Math.round(nt/Xe),ni=Math.floor(It/qe);Ke&&!fe.config.xaxis.convertedCatToNumeric&&(Tt=Math.ceil(nt/Xe),Tt-=1);var fi=null,gi=null,je=fe.globals.seriesXvalues.map(function(yi){return yi.filter(function(nM){return Y.isNumber(nM)})}),it=fe.globals.seriesYvalues.map(function(yi){return yi.filter(function(nM){return Y.isNumber(nM)})});if(fe.globals.isXNumeric){var Ct=this.ttCtx.getElGrid().getBoundingClientRect(),si=nt*(Ct.width/Pe),di=It*(Ct.height/Re);fi=(gi=this.closestInMultiArray(si,di,je,it)).index,Tt=gi.j,fi!==null&&(je=fe.globals.seriesXvalues[fi],Tt=(gi=this.closestInArray(si,je)).index)}return fe.globals.capturedSeriesIndex=fi===null?-1:fi,(!Tt||Tt<1)&&(Tt=0),fe.globals.isBarHorizontal?fe.globals.capturedDataPointIndex=ni:fe.globals.capturedDataPointIndex=Tt,{capturedSeries:fi,j:fe.globals.isBarHorizontal?ni:Tt,hoverX:nt,hoverY:It}}},{key:"closestInMultiArray",value:function(C,L,F,ne){var ue=this.w,fe=0,me=null,Pe=-1;ue.globals.series.length>1?fe=this.getFirstActiveXArray(F):me=0;var Re=F[fe][0],Xe=Math.abs(C-Re);if(F.forEach(function(nt){nt.forEach(function(It,Tt){var ni=Math.abs(C-It);ni<=Xe&&(Xe=ni,Pe=Tt)})}),Pe!==-1){var qe=ne[fe][Pe],Ke=Math.abs(L-qe);me=fe,ne.forEach(function(nt,It){var Tt=Math.abs(L-nt[Pe]);Tt<=Ke&&(Ke=Tt,me=It)})}return{index:me,j:Pe}}},{key:"getFirstActiveXArray",value:function(C){for(var L=this.w,F=0,ne=C.map(function(fe,me){return fe.length>0?me:-1}),ue=0;ue<ne.length;ue++)if(ne[ue]!==-1&&L.globals.collapsedSeriesIndices.indexOf(ue)===-1&&L.globals.ancillaryCollapsedSeriesIndices.indexOf(ue)===-1){F=ne[ue];break}return F}},{key:"closestInArray",value:function(C,L){for(var F=L[0],ne=null,ue=Math.abs(C-F),fe=0;fe<L.length;fe++){var me=Math.abs(C-L[fe]);me<ue&&(ue=me,ne=fe)}return{index:ne}}},{key:"isXoverlap",value:function(C){var L=[],F=this.w.globals.seriesX.filter(function(ue){return ue[0]!==void 0});if(F.length>0)for(var ne=0;ne<F.length-1;ne++)F[ne][C]!==void 0&&F[ne+1][C]!==void 0&&F[ne][C]!==F[ne+1][C]&&L.push("unEqual");return L.length===0}},{key:"isInitialSeriesSameLen",value:function(){for(var C=!0,L=this.w.globals.initialSeries,F=0;F<L.length-1;F++)if(L[F].data.length!==L[F+1].data.length){C=!1;break}return C}},{key:"getBarsHeight",value:function(C){return W(C).reduce(function(L,F){return L+F.getBBox().height},0)}},{key:"getElMarkers",value:function(C){return typeof C=="number"?this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series[data\\:realIndex='".concat(C,"'] .apexcharts-series-markers-wrap > *")):this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers-wrap > *")}},{key:"getAllMarkers",value:function(){var C=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers-wrap");(C=W(C)).sort(function(F,ne){var ue=Number(F.getAttribute("data:realIndex")),fe=Number(ne.getAttribute("data:realIndex"));return fe<ue?1:fe>ue?-1:0});var L=[];return C.forEach(function(F){L.push(F.querySelector(".apexcharts-marker"))}),L}},{key:"hasMarkers",value:function(C){return this.getElMarkers(C).length>0}},{key:"getElBars",value:function(){return this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-bar-series,  .apexcharts-candlestick-series, .apexcharts-boxPlot-series, .apexcharts-rangebar-series")}},{key:"hasBars",value:function(){return this.getElBars().length>0}},{key:"getHoverMarkerSize",value:function(C){var L=this.w,F=L.config.markers.hover.size;return F===void 0&&(F=L.globals.markers.size[C]+L.config.markers.hover.sizeOffset),F}},{key:"toggleAllTooltipSeriesGroups",value:function(C){var L=this.w,F=this.ttCtx;F.allTooltipSeriesGroups.length===0&&(F.allTooltipSeriesGroups=L.globals.dom.baseEl.querySelectorAll(".apexcharts-tooltip-series-group"));for(var ne=F.allTooltipSeriesGroups,ue=0;ue<ne.length;ue++)C==="enable"?(ne[ue].classList.add("apexcharts-active"),ne[ue].style.display=L.config.tooltip.items.display):(ne[ue].classList.remove("apexcharts-active"),ne[ue].style.display="none")}}]),ai}(),tM=function(){function ai(C){I(this,ai),this.w=C.w,this.ctx=C.ctx,this.ttCtx=C,this.tooltipUtil=new Dn(C)}return M(ai,[{key:"drawSeriesTexts",value:function(C){var L=C.shared,F=L===void 0||L,ne=C.ttItems,ue=C.i,fe=ue===void 0?0:ue,me=C.j,Pe=me===void 0?null:me,Re=C.y1,Xe=C.y2,qe=C.e,Ke=this.w;Ke.config.tooltip.custom!==void 0?this.handleCustomTooltip({i:fe,j:Pe,y1:Re,y2:Xe,w:Ke}):this.toggleActiveInactiveSeries(F);var nt=this.getValuesToPrint({i:fe,j:Pe});this.printLabels({i:fe,j:Pe,values:nt,ttItems:ne,shared:F,e:qe});var It=this.ttCtx.getElTooltip();this.ttCtx.tooltipRect.ttWidth=It.getBoundingClientRect().width,this.ttCtx.tooltipRect.ttHeight=It.getBoundingClientRect().height}},{key:"printLabels",value:function(C){var L,F=this,ne=C.i,ue=C.j,fe=C.values,me=C.ttItems,Pe=C.shared,Re=C.e,Xe=this.w,qe=[],Ke=function(Ct){return Xe.globals.seriesGoals[Ct]&&Xe.globals.seriesGoals[Ct][ue]&&Array.isArray(Xe.globals.seriesGoals[Ct][ue])},nt=fe.xVal,It=fe.zVal,Tt=fe.xAxisTTVal,ni="",fi=Xe.globals.colors[ne];ue!==null&&Xe.config.plotOptions.bar.distributed&&(fi=Xe.globals.colors[ue]);for(var gi=function(Ct,si){var di=F.getFormatters(ne);ni=F.getSeriesName({fn:di.yLbTitleFormatter,index:ne,seriesIndex:ne,j:ue}),Xe.config.chart.type==="treemap"&&(ni=di.yLbTitleFormatter(String(Xe.config.series[ne].data[ue].x),{series:Xe.globals.series,seriesIndex:ne,dataPointIndex:ue,w:Xe}));var yi=Xe.config.tooltip.inverseOrder?si:Ct;if(Xe.globals.axisCharts){var nM=function(EM){var wM,GM,qM,JM;return Xe.globals.isRangeData?di.yLbFormatter((wM=Xe.globals.seriesRangeStart)===null||wM===void 0||(GM=wM[EM])===null||GM===void 0?void 0:GM[ue],{series:Xe.globals.seriesRangeStart,seriesIndex:EM,dataPointIndex:ue,w:Xe})+" - "+di.yLbFormatter((qM=Xe.globals.seriesRangeEnd)===null||qM===void 0||(JM=qM[EM])===null||JM===void 0?void 0:JM[ue],{series:Xe.globals.seriesRangeEnd,seriesIndex:EM,dataPointIndex:ue,w:Xe}):di.yLbFormatter(Xe.globals.series[EM][ue],{series:Xe.globals.series,seriesIndex:EM,dataPointIndex:ue,w:Xe})};if(Pe)di=F.getFormatters(yi),ni=F.getSeriesName({fn:di.yLbTitleFormatter,index:yi,seriesIndex:ne,j:ue}),fi=Xe.globals.colors[yi],L=nM(yi),Ke(yi)&&(qe=Xe.globals.seriesGoals[yi][ue].map(function(EM){return{attrs:EM,val:di.yLbFormatter(EM.value,{seriesIndex:yi,dataPointIndex:ue,w:Xe})}}));else{var iM,mM=Re==null||(iM=Re.target)===null||iM===void 0?void 0:iM.getAttribute("fill");mM&&(fi=mM.indexOf("url")!==-1?document.querySelector(mM.substr(4).slice(0,-1)).childNodes[0].getAttribute("stroke"):mM),L=nM(ne),Ke(ne)&&Array.isArray(Xe.globals.seriesGoals[ne][ue])&&(qe=Xe.globals.seriesGoals[ne][ue].map(function(EM){return{attrs:EM,val:di.yLbFormatter(EM.value,{seriesIndex:ne,dataPointIndex:ue,w:Xe})}}))}}ue===null&&(L=di.yLbFormatter(Xe.globals.series[ne],_(_({},Xe),{},{seriesIndex:ne,dataPointIndex:ne}))),F.DOMHandling({i:ne,t:yi,j:ue,ttItems:me,values:{val:L,goalVals:qe,xVal:nt,xAxisTTVal:Tt,zVal:It},seriesName:ni,shared:Pe,pColor:fi})},je=0,it=Xe.globals.series.length-1;je<Xe.globals.series.length;je++,it--)gi(je,it)}},{key:"getFormatters",value:function(C){var L,F=this.w,ne=F.globals.yLabelFormatters[C];return F.globals.ttVal!==void 0?Array.isArray(F.globals.ttVal)?(ne=F.globals.ttVal[C]&&F.globals.ttVal[C].formatter,L=F.globals.ttVal[C]&&F.globals.ttVal[C].title&&F.globals.ttVal[C].title.formatter):(ne=F.globals.ttVal.formatter,typeof F.globals.ttVal.title.formatter=="function"&&(L=F.globals.ttVal.title.formatter)):L=F.config.tooltip.y.title.formatter,typeof ne!="function"&&(ne=F.globals.yLabelFormatters[0]?F.globals.yLabelFormatters[0]:function(ue){return ue}),typeof L!="function"&&(L=function(ue){return ue}),{yLbFormatter:ne,yLbTitleFormatter:L}}},{key:"getSeriesName",value:function(C){var L=C.fn,F=C.index,ne=C.seriesIndex,ue=C.j,fe=this.w;return L(String(fe.globals.seriesNames[F]),{series:fe.globals.series,seriesIndex:ne,dataPointIndex:ue,w:fe})}},{key:"DOMHandling",value:function(C){C.i;var L=C.t,F=C.j,ne=C.ttItems,ue=C.values,fe=C.seriesName,me=C.shared,Pe=C.pColor,Re=this.w,Xe=this.ttCtx,qe=ue.val,Ke=ue.goalVals,nt=ue.xVal,It=ue.xAxisTTVal,Tt=ue.zVal,ni=null;ni=ne[L].children,Re.config.tooltip.fillSeriesColor&&(ne[L].style.backgroundColor=Pe,ni[0].style.display="none"),Xe.showTooltipTitle&&(Xe.tooltipTitle===null&&(Xe.tooltipTitle=Re.globals.dom.baseEl.querySelector(".apexcharts-tooltip-title")),Xe.tooltipTitle.innerHTML=nt),Xe.isXAxisTooltipEnabled&&(Xe.xaxisTooltipText.innerHTML=It!==""?It:nt);var fi=ne[L].querySelector(".apexcharts-tooltip-text-y-label");fi&&(fi.innerHTML=fe||"");var gi=ne[L].querySelector(".apexcharts-tooltip-text-y-value");gi&&(gi.innerHTML=qe!==void 0?qe:""),ni[0]&&ni[0].classList.contains("apexcharts-tooltip-marker")&&(Re.config.tooltip.marker.fillColors&&Array.isArray(Re.config.tooltip.marker.fillColors)&&(Pe=Re.config.tooltip.marker.fillColors[L]),ni[0].style.backgroundColor=Pe),Re.config.tooltip.marker.show||(ni[0].style.display="none");var je=ne[L].querySelector(".apexcharts-tooltip-text-goals-label"),it=ne[L].querySelector(".apexcharts-tooltip-text-goals-value");if(Ke.length&&Re.globals.seriesGoals[L]){var Ct=function(){var yi="<div >",nM="<div>";Ke.forEach(function(iM,mM){yi+=' <div style="display: flex"><span class="apexcharts-tooltip-marker" style="background-color: '.concat(iM.attrs.strokeColor,'; height: 3px; border-radius: 0; top: 5px;"></span> ').concat(iM.attrs.name,"</div>"),nM+="<div>".concat(iM.val,"</div>")}),je.innerHTML=yi+"</div>",it.innerHTML=nM+"</div>"};me?Re.globals.seriesGoals[L][F]&&Array.isArray(Re.globals.seriesGoals[L][F])?Ct():(je.innerHTML="",it.innerHTML=""):Ct()}else je.innerHTML="",it.innerHTML="";if(Tt!==null&&(ne[L].querySelector(".apexcharts-tooltip-text-z-label").innerHTML=Re.config.tooltip.z.title,ne[L].querySelector(".apexcharts-tooltip-text-z-value").innerHTML=Tt!==void 0?Tt:""),me&&ni[0]){if(Re.config.tooltip.hideEmptySeries){var si=ne[L].querySelector(".apexcharts-tooltip-marker"),di=ne[L].querySelector(".apexcharts-tooltip-text");parseFloat(qe)==0?(si.style.display="none",di.style.display="none"):(si.style.display="block",di.style.display="block")}qe==null||Re.globals.ancillaryCollapsedSeriesIndices.indexOf(L)>-1||Re.globals.collapsedSeriesIndices.indexOf(L)>-1?ni[0].parentNode.style.display="none":ni[0].parentNode.style.display=Re.config.tooltip.items.display}}},{key:"toggleActiveInactiveSeries",value:function(C){var L=this.w;if(C)this.tooltipUtil.toggleAllTooltipSeriesGroups("enable");else{this.tooltipUtil.toggleAllTooltipSeriesGroups("disable");var F=L.globals.dom.baseEl.querySelector(".apexcharts-tooltip-series-group");F&&(F.classList.add("apexcharts-active"),F.style.display=L.config.tooltip.items.display)}}},{key:"getValuesToPrint",value:function(C){var L=C.i,F=C.j,ne=this.w,ue=this.ctx.series.filteredSeriesX(),fe="",me="",Pe=null,Re=null,Xe={series:ne.globals.series,seriesIndex:L,dataPointIndex:F,w:ne},qe=ne.globals.ttZFormatter;F===null?Re=ne.globals.series[L]:ne.globals.isXNumeric&&ne.config.chart.type!=="treemap"?(fe=ue[L][F],ue[L].length===0&&(fe=ue[this.tooltipUtil.getFirstActiveXArray(ue)][F])):fe=ne.globals.labels[F]!==void 0?ne.globals.labels[F]:"";var Ke=fe;return ne.globals.isXNumeric&&ne.config.xaxis.type==="datetime"?fe=new B(this.ctx).xLabelFormat(ne.globals.ttKeyFormatter,Ke,Ke,{i:void 0,dateFormatter:new k(this.ctx).formatDate,w:this.w}):fe=ne.globals.isBarHorizontal?ne.globals.yLabelFormatters[0](Ke,Xe):ne.globals.xLabelFormatter(Ke,Xe),ne.config.tooltip.x.formatter!==void 0&&(fe=ne.globals.ttKeyFormatter(Ke,Xe)),ne.globals.seriesZ.length>0&&ne.globals.seriesZ[L].length>0&&(Pe=qe(ne.globals.seriesZ[L][F],ne)),me=typeof ne.config.xaxis.tooltip.formatter=="function"?ne.globals.xaxisTooltipFormatter(Ke,Xe):fe,{val:Array.isArray(Re)?Re.join(" "):Re,xVal:Array.isArray(fe)?fe.join(" "):fe,xAxisTTVal:Array.isArray(me)?me.join(" "):me,zVal:Pe}}},{key:"handleCustomTooltip",value:function(C){var L=C.i,F=C.j,ne=C.y1,ue=C.y2,fe=C.w,me=this.ttCtx.getElTooltip(),Pe=fe.config.tooltip.custom;Array.isArray(Pe)&&Pe[L]&&(Pe=Pe[L]),me.innerHTML=Pe({ctx:this.ctx,series:fe.globals.series,seriesIndex:L,dataPointIndex:F,y1:ne,y2:ue,w:fe})}}]),ai}(),oM=function(){function ai(C){I(this,ai),this.ttCtx=C,this.ctx=C.ctx,this.w=C.w}return M(ai,[{key:"moveXCrosshairs",value:function(C){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,F=this.ttCtx,ne=this.w,ue=F.getElXCrosshairs(),fe=C-F.xcrosshairsWidth/2,me=ne.globals.labels.slice().length;if(L!==null&&(fe=ne.globals.gridWidth/me*L),ue===null||ne.globals.isBarHorizontal||(ue.setAttribute("x",fe),ue.setAttribute("x1",fe),ue.setAttribute("x2",fe),ue.setAttribute("y2",ne.globals.gridHeight),ue.classList.add("apexcharts-active")),fe<0&&(fe=0),fe>ne.globals.gridWidth&&(fe=ne.globals.gridWidth),F.isXAxisTooltipEnabled){var Pe=fe;ne.config.xaxis.crosshairs.width!=="tickWidth"&&ne.config.xaxis.crosshairs.width!=="barWidth"||(Pe=fe+F.xcrosshairsWidth/2),this.moveXAxisTooltip(Pe)}}},{key:"moveYCrosshairs",value:function(C){var L=this.ttCtx;L.ycrosshairs!==null&&ge.setAttrs(L.ycrosshairs,{y1:C,y2:C}),L.ycrosshairsHidden!==null&&ge.setAttrs(L.ycrosshairsHidden,{y1:C,y2:C})}},{key:"moveXAxisTooltip",value:function(C){var L=this.w,F=this.ttCtx;if(F.xaxisTooltip!==null&&F.xcrosshairsWidth!==0){F.xaxisTooltip.classList.add("apexcharts-active");var ne=F.xaxisOffY+L.config.xaxis.tooltip.offsetY+L.globals.translateY+1+L.config.xaxis.offsetY;if(C-=F.xaxisTooltip.getBoundingClientRect().width/2,!isNaN(C)){C+=L.globals.translateX;var ue;ue=new ge(this.ctx).getTextRects(F.xaxisTooltipText.innerHTML),F.xaxisTooltipText.style.minWidth=ue.width+"px",F.xaxisTooltip.style.left=C+"px",F.xaxisTooltip.style.top=ne+"px"}}}},{key:"moveYAxisTooltip",value:function(C){var L=this.w,F=this.ttCtx;F.yaxisTTEls===null&&(F.yaxisTTEls=L.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxistooltip"));var ne=parseInt(F.ycrosshairsHidden.getAttribute("y1"),10),ue=L.globals.translateY+ne,fe=F.yaxisTTEls[C].getBoundingClientRect().height,me=L.globals.translateYAxisX[C]-2;L.config.yaxis[C].opposite&&(me-=26),ue-=fe/2,L.globals.ignoreYAxisIndexes.indexOf(C)===-1?(F.yaxisTTEls[C].classList.add("apexcharts-active"),F.yaxisTTEls[C].style.top=ue+"px",F.yaxisTTEls[C].style.left=me+L.config.yaxis[C].tooltip.offsetX+"px"):F.yaxisTTEls[C].classList.remove("apexcharts-active")}},{key:"moveTooltip",value:function(C,L){var F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,ne=this.w,ue=this.ttCtx,fe=ue.getElTooltip(),me=ue.tooltipRect,Pe=F!==null?parseFloat(F):1,Re=parseFloat(C)+Pe+5,Xe=parseFloat(L)+Pe/2;if(Re>ne.globals.gridWidth/2&&(Re=Re-me.ttWidth-Pe-10),Re>ne.globals.gridWidth-me.ttWidth-10&&(Re=ne.globals.gridWidth-me.ttWidth),Re<-20&&(Re=-20),ne.config.tooltip.followCursor){var qe=ue.getElGrid().getBoundingClientRect();(Re=ue.e.clientX-qe.left)>ne.globals.gridWidth/2&&(Re-=ue.tooltipRect.ttWidth),(Xe=ue.e.clientY+ne.globals.translateY-qe.top)>ne.globals.gridHeight/2&&(Xe-=ue.tooltipRect.ttHeight)}else ne.globals.isBarHorizontal||me.ttHeight/2+Xe>ne.globals.gridHeight&&(Xe=ne.globals.gridHeight-me.ttHeight+ne.globals.translateY);isNaN(Re)||(Re+=ne.globals.translateX,fe.style.left=Re+"px",fe.style.top=Xe+"px")}},{key:"moveMarkers",value:function(C,L){var F=this.w,ne=this.ttCtx;if(F.globals.markers.size[C]>0)for(var ue=F.globals.dom.baseEl.querySelectorAll(" .apexcharts-series[data\\:realIndex='".concat(C,"'] .apexcharts-marker")),fe=0;fe<ue.length;fe++)parseInt(ue[fe].getAttribute("rel"),10)===L&&(ne.marker.resetPointsSize(),ne.marker.enlargeCurrentPoint(L,ue[fe]));else ne.marker.resetPointsSize(),this.moveDynamicPointOnHover(L,C)}},{key:"moveDynamicPointOnHover",value:function(C,L){var F,ne,ue=this.w,fe=this.ttCtx,me=ue.globals.pointsArray,Pe=fe.tooltipUtil.getHoverMarkerSize(L),Re=ue.config.series[L].type;if(!Re||Re!=="column"&&Re!=="candlestick"&&Re!=="boxPlot"){F=me[L][C][0],ne=me[L][C][1]?me[L][C][1]:0;var Xe=ue.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(L,"'] .apexcharts-series-markers circle"));Xe&&ne<ue.globals.gridHeight&&ne>0&&(Xe.setAttribute("r",Pe),Xe.setAttribute("cx",F),Xe.setAttribute("cy",ne)),this.moveXCrosshairs(F),fe.fixedTooltip||this.moveTooltip(F,ne,Pe)}}},{key:"moveDynamicPointsOnHover",value:function(C){var L,F=this.ttCtx,ne=F.w,ue=0,fe=0,me=ne.globals.pointsArray;L=new Ue(this.ctx).getActiveConfigSeriesIndex("asc",["line","area","scatter","bubble"]);var Pe=F.tooltipUtil.getHoverMarkerSize(L);me[L]&&(ue=me[L][C][0],fe=me[L][C][1]);var Re=F.tooltipUtil.getAllMarkers();if(Re!==null)for(var Xe=0;Xe<ne.globals.series.length;Xe++){var qe=me[Xe];if(ne.globals.comboCharts&&qe===void 0&&Re.splice(Xe,0,null),qe&&qe.length){var Ke=me[Xe][C][1],nt=void 0;if(Re[Xe].setAttribute("cx",ue),ne.config.chart.type==="rangeArea"&&!ne.globals.comboCharts){var It=C+ne.globals.series[Xe].length;nt=me[Xe][It][1],Ke-=Math.abs(Ke-nt)/2}Ke!==null&&!isNaN(Ke)&&Ke<ne.globals.gridHeight+Pe&&Ke+Pe>0?(Re[Xe]&&Re[Xe].setAttribute("r",Pe),Re[Xe]&&Re[Xe].setAttribute("cy",Ke)):Re[Xe]&&Re[Xe].setAttribute("r",0)}}this.moveXCrosshairs(ue),F.fixedTooltip||this.moveTooltip(ue,fe||ne.globals.gridHeight,Pe)}},{key:"moveStickyTooltipOverBars",value:function(C,L){var F=this.w,ne=this.ttCtx,ue=F.globals.columnSeries?F.globals.columnSeries.length:F.globals.series.length,fe=ue>=2&&ue%2==0?Math.floor(ue/2):Math.floor(ue/2)+1;F.globals.isBarHorizontal&&(fe=new Ue(this.ctx).getActiveConfigSeriesIndex("desc")+1);var me=F.globals.dom.baseEl.querySelector(".apexcharts-bar-series .apexcharts-series[rel='".concat(fe,"'] path[j='").concat(C,"'], .apexcharts-candlestick-series .apexcharts-series[rel='").concat(fe,"'] path[j='").concat(C,"'], .apexcharts-boxPlot-series .apexcharts-series[rel='").concat(fe,"'] path[j='").concat(C,"'], .apexcharts-rangebar-series .apexcharts-series[rel='").concat(fe,"'] path[j='").concat(C,"']"));me||typeof L!="number"||(me=F.globals.dom.baseEl.querySelector(".apexcharts-bar-series .apexcharts-series[data\\:realIndex='".concat(L,"'] path[j='").concat(C,`'],
        .apexcharts-candlestick-series .apexcharts-series[data\\:realIndex='`).concat(L,"'] path[j='").concat(C,`'],
        .apexcharts-boxPlot-series .apexcharts-series[data\\:realIndex='`).concat(L,"'] path[j='").concat(C,`'],
        .apexcharts-rangebar-series .apexcharts-series[data\\:realIndex='`).concat(L,"'] path[j='").concat(C,"']")));var Pe=me?parseFloat(me.getAttribute("cx")):0,Re=me?parseFloat(me.getAttribute("cy")):0,Xe=me?parseFloat(me.getAttribute("barWidth")):0,qe=ne.getElGrid().getBoundingClientRect(),Ke=me&&(me.classList.contains("apexcharts-candlestick-area")||me.classList.contains("apexcharts-boxPlot-area"));F.globals.isXNumeric?(me&&!Ke&&(Pe-=ue%2!=0?Xe/2:0),me&&Ke&&F.globals.comboCharts&&(Pe-=Xe/2)):F.globals.isBarHorizontal||(Pe=ne.xAxisTicksPositions[C-1]+ne.dataPointsDividedWidth/2,isNaN(Pe)&&(Pe=ne.xAxisTicksPositions[C]-ne.dataPointsDividedWidth/2)),F.globals.isBarHorizontal?Re-=ne.tooltipRect.ttHeight:F.config.tooltip.followCursor?Re=ne.e.clientY-qe.top-ne.tooltipRect.ttHeight/2:Re+ne.tooltipRect.ttHeight+15>F.globals.gridHeight&&(Re=F.globals.gridHeight),F.globals.isBarHorizontal||this.moveXCrosshairs(Pe),ne.fixedTooltip||this.moveTooltip(Pe,Re||F.globals.gridHeight)}}]),ai}(),vM=function(){function ai(C){I(this,ai),this.w=C.w,this.ttCtx=C,this.ctx=C.ctx,this.tooltipPosition=new oM(C)}return M(ai,[{key:"drawDynamicPoints",value:function(){var C=this.w,L=new ge(this.ctx),F=new ve(this.ctx),ne=C.globals.dom.baseEl.querySelectorAll(".apexcharts-series");ne=W(ne),C.config.chart.stacked&&ne.sort(function(qe,Ke){return parseFloat(qe.getAttribute("data:realIndex"))-parseFloat(Ke.getAttribute("data:realIndex"))});for(var ue=0;ue<ne.length;ue++){var fe=ne[ue].querySelector(".apexcharts-series-markers-wrap");if(fe!==null){var me=void 0,Pe="apexcharts-marker w".concat((Math.random()+1).toString(36).substring(4));C.config.chart.type!=="line"&&C.config.chart.type!=="area"||C.globals.comboCharts||C.config.tooltip.intersect||(Pe+=" no-pointer-events");var Re=F.getMarkerConfig({cssClass:Pe,seriesIndex:Number(fe.getAttribute("data:realIndex"))});(me=L.drawMarker(0,0,Re)).node.setAttribute("default-marker-size",0);var Xe=document.createElementNS(C.globals.SVGNS,"g");Xe.classList.add("apexcharts-series-markers"),Xe.appendChild(me.node),fe.appendChild(Xe)}}}},{key:"enlargeCurrentPoint",value:function(C,L){var F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,ne=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,ue=this.w;ue.config.chart.type!=="bubble"&&this.newPointSize(C,L);var fe=L.getAttribute("cx"),me=L.getAttribute("cy");if(F!==null&&ne!==null&&(fe=F,me=ne),this.tooltipPosition.moveXCrosshairs(fe),!this.fixedTooltip){if(ue.config.chart.type==="radar"){var Pe=this.ttCtx.getElGrid().getBoundingClientRect();fe=this.ttCtx.e.clientX-Pe.left}this.tooltipPosition.moveTooltip(fe,me,ue.config.markers.hover.size)}}},{key:"enlargePoints",value:function(C){for(var L=this.w,F=this,ne=this.ttCtx,ue=C,fe=L.globals.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker"),me=L.config.markers.hover.size,Pe=0;Pe<fe.length;Pe++){var Re=fe[Pe].getAttribute("rel"),Xe=fe[Pe].getAttribute("index");if(me===void 0&&(me=L.globals.markers.size[Xe]+L.config.markers.hover.sizeOffset),ue===parseInt(Re,10)){F.newPointSize(ue,fe[Pe]);var qe=fe[Pe].getAttribute("cx"),Ke=fe[Pe].getAttribute("cy");F.tooltipPosition.moveXCrosshairs(qe),ne.fixedTooltip||F.tooltipPosition.moveTooltip(qe,Ke,me)}else F.oldPointSize(fe[Pe])}}},{key:"newPointSize",value:function(C,L){var F=this.w,ne=F.config.markers.hover.size,ue=C===0?L.parentNode.firstChild:L.parentNode.lastChild;if(ue.getAttribute("default-marker-size")!=="0"){var fe=parseInt(ue.getAttribute("index"),10);ne===void 0&&(ne=F.globals.markers.size[fe]+F.config.markers.hover.sizeOffset),ne<0&&(ne=0),ue.setAttribute("r",ne)}}},{key:"oldPointSize",value:function(C){var L=parseFloat(C.getAttribute("default-marker-size"));C.setAttribute("r",L)}},{key:"resetPointsSize",value:function(){for(var C=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker"),L=0;L<C.length;L++){var F=parseFloat(C[L].getAttribute("default-marker-size"));Y.isNumber(F)&&F>=0?C[L].setAttribute("r",F):C[L].setAttribute("r",0)}}}]),ai}(),dM=function(){function ai(C){I(this,ai),this.w=C.w;var L=this.w;this.ttCtx=C,this.isVerticalGroupedRangeBar=!L.globals.isBarHorizontal&&L.config.chart.type==="rangeBar"&&L.config.plotOptions.bar.rangeBarGroupRows}return M(ai,[{key:"getAttr",value:function(C,L){return parseFloat(C.target.getAttribute(L))}},{key:"handleHeatTreeTooltip",value:function(C){var L=C.e,F=C.opt,ne=C.x,ue=C.y,fe=C.type,me=this.ttCtx,Pe=this.w;if(L.target.classList.contains("apexcharts-".concat(fe,"-rect"))){var Re=this.getAttr(L,"i"),Xe=this.getAttr(L,"j"),qe=this.getAttr(L,"cx"),Ke=this.getAttr(L,"cy"),nt=this.getAttr(L,"width"),It=this.getAttr(L,"height");if(me.tooltipLabels.drawSeriesTexts({ttItems:F.ttItems,i:Re,j:Xe,shared:!1,e:L}),Pe.globals.capturedSeriesIndex=Re,Pe.globals.capturedDataPointIndex=Xe,ne=qe+me.tooltipRect.ttWidth/2+nt,ue=Ke+me.tooltipRect.ttHeight/2-It/2,me.tooltipPosition.moveXCrosshairs(qe+nt/2),ne>Pe.globals.gridWidth/2&&(ne=qe-me.tooltipRect.ttWidth/2+nt),me.w.config.tooltip.followCursor){var Tt=Pe.globals.dom.elWrap.getBoundingClientRect();ne=Pe.globals.clientX-Tt.left-(ne>Pe.globals.gridWidth/2?me.tooltipRect.ttWidth:0),ue=Pe.globals.clientY-Tt.top-(ue>Pe.globals.gridHeight/2?me.tooltipRect.ttHeight:0)}}return{x:ne,y:ue}}},{key:"handleMarkerTooltip",value:function(C){var L,F,ne=C.e,ue=C.opt,fe=C.x,me=C.y,Pe=this.w,Re=this.ttCtx;if(ne.target.classList.contains("apexcharts-marker")){var Xe=parseInt(ue.paths.getAttribute("cx"),10),qe=parseInt(ue.paths.getAttribute("cy"),10),Ke=parseFloat(ue.paths.getAttribute("val"));if(F=parseInt(ue.paths.getAttribute("rel"),10),L=parseInt(ue.paths.parentNode.parentNode.parentNode.getAttribute("rel"),10)-1,Re.intersect){var nt=Y.findAncestor(ue.paths,"apexcharts-series");nt&&(L=parseInt(nt.getAttribute("data:realIndex"),10))}if(Re.tooltipLabels.drawSeriesTexts({ttItems:ue.ttItems,i:L,j:F,shared:!Re.showOnIntersect&&Pe.config.tooltip.shared,e:ne}),ne.type==="mouseup"&&Re.markerClick(ne,L,F),Pe.globals.capturedSeriesIndex=L,Pe.globals.capturedDataPointIndex=F,fe=Xe,me=qe+Pe.globals.translateY-1.4*Re.tooltipRect.ttHeight,Re.w.config.tooltip.followCursor){var It=Re.getElGrid().getBoundingClientRect();me=Re.e.clientY+Pe.globals.translateY-It.top}Ke<0&&(me=qe),Re.marker.enlargeCurrentPoint(F,ue.paths,fe,me)}return{x:fe,y:me}}},{key:"handleBarTooltip",value:function(C){var L,F,ne=C.e,ue=C.opt,fe=this.w,me=this.ttCtx,Pe=me.getElTooltip(),Re=0,Xe=0,qe=0,Ke=this.getBarTooltipXY({e:ne,opt:ue});L=Ke.i;var nt=Ke.barHeight,It=Ke.j;fe.globals.capturedSeriesIndex=L,fe.globals.capturedDataPointIndex=It,fe.globals.isBarHorizontal&&me.tooltipUtil.hasBars()||!fe.config.tooltip.shared?(Xe=Ke.x,qe=Ke.y,F=Array.isArray(fe.config.stroke.width)?fe.config.stroke.width[L]:fe.config.stroke.width,Re=Xe):fe.globals.comboCharts||fe.config.tooltip.shared||(Re/=2),isNaN(qe)&&(qe=fe.globals.svgHeight-me.tooltipRect.ttHeight);var Tt=parseInt(ue.paths.parentNode.getAttribute("data:realIndex"),10),ni=fe.globals.isMultipleYAxis?fe.config.yaxis[Tt]&&fe.config.yaxis[Tt].reversed:fe.config.yaxis[0].reversed;if(Xe+me.tooltipRect.ttWidth>fe.globals.gridWidth&&!ni?Xe-=me.tooltipRect.ttWidth:Xe<0&&(Xe=0),me.w.config.tooltip.followCursor){var fi=me.getElGrid().getBoundingClientRect();qe=me.e.clientY-fi.top}me.tooltip===null&&(me.tooltip=fe.globals.dom.baseEl.querySelector(".apexcharts-tooltip")),fe.config.tooltip.shared||(fe.globals.comboBarCount>0?me.tooltipPosition.moveXCrosshairs(Re+F/2):me.tooltipPosition.moveXCrosshairs(Re)),!me.fixedTooltip&&(!fe.config.tooltip.shared||fe.globals.isBarHorizontal&&me.tooltipUtil.hasBars())&&(ni&&(Xe-=me.tooltipRect.ttWidth)<0&&(Xe=0),!ni||fe.globals.isBarHorizontal&&me.tooltipUtil.hasBars()||(qe=qe+nt-2*(fe.globals.series[L][It]<0?nt:0)),qe=qe+fe.globals.translateY-me.tooltipRect.ttHeight/2,Pe.style.left=Xe+fe.globals.translateX+"px",Pe.style.top=qe+"px")}},{key:"getBarTooltipXY",value:function(C){var L=this,F=C.e,ne=C.opt,ue=this.w,fe=null,me=this.ttCtx,Pe=0,Re=0,Xe=0,qe=0,Ke=0,nt=F.target.classList;if(nt.contains("apexcharts-bar-area")||nt.contains("apexcharts-candlestick-area")||nt.contains("apexcharts-boxPlot-area")||nt.contains("apexcharts-rangebar-area")){var It=F.target,Tt=It.getBoundingClientRect(),ni=ne.elGrid.getBoundingClientRect(),fi=Tt.height;Ke=Tt.height;var gi=Tt.width,je=parseInt(It.getAttribute("cx"),10),it=parseInt(It.getAttribute("cy"),10);qe=parseFloat(It.getAttribute("barWidth"));var Ct=F.type==="touchmove"?F.touches[0].clientX:F.clientX;fe=parseInt(It.getAttribute("j"),10),Pe=parseInt(It.parentNode.getAttribute("rel"),10)-1;var si=It.getAttribute("data-range-y1"),di=It.getAttribute("data-range-y2");ue.globals.comboCharts&&(Pe=parseInt(It.parentNode.getAttribute("data:realIndex"),10));var yi=function(iM){return ue.globals.isXNumeric?je-gi/2:L.isVerticalGroupedRangeBar?je+gi/2:je-me.dataPointsDividedWidth+gi/2},nM=function(){return it-me.dataPointsDividedHeight+fi/2-me.tooltipRect.ttHeight/2};me.tooltipLabels.drawSeriesTexts({ttItems:ne.ttItems,i:Pe,j:fe,y1:si?parseInt(si,10):null,y2:di?parseInt(di,10):null,shared:!me.showOnIntersect&&ue.config.tooltip.shared,e:F}),ue.config.tooltip.followCursor?ue.globals.isBarHorizontal?(Re=Ct-ni.left+15,Xe=nM()):(Re=yi(),Xe=F.clientY-ni.top-me.tooltipRect.ttHeight/2-15):ue.globals.isBarHorizontal?((Re=je)<me.xyRatios.baseLineInvertedY&&(Re=je-me.tooltipRect.ttWidth),Xe=nM()):(Re=yi(),Xe=it)}return{x:Re,y:Xe,barHeight:Ke,barWidth:qe,i:Pe,j:fe}}}]),ai}(),hM=function(){function ai(C){I(this,ai),this.w=C.w,this.ttCtx=C}return M(ai,[{key:"drawXaxisTooltip",value:function(){var C=this.w,L=this.ttCtx,F=C.config.xaxis.position==="bottom";L.xaxisOffY=F?C.globals.gridHeight+1:-C.globals.xAxisHeight-C.config.xaxis.axisTicks.height+3;var ne=F?"apexcharts-xaxistooltip apexcharts-xaxistooltip-bottom":"apexcharts-xaxistooltip apexcharts-xaxistooltip-top",ue=C.globals.dom.elWrap;L.isXAxisTooltipEnabled&&C.globals.dom.baseEl.querySelector(".apexcharts-xaxistooltip")===null&&(L.xaxisTooltip=document.createElement("div"),L.xaxisTooltip.setAttribute("class",ne+" apexcharts-theme-"+C.config.tooltip.theme),ue.appendChild(L.xaxisTooltip),L.xaxisTooltipText=document.createElement("div"),L.xaxisTooltipText.classList.add("apexcharts-xaxistooltip-text"),L.xaxisTooltipText.style.fontFamily=C.config.xaxis.tooltip.style.fontFamily||C.config.chart.fontFamily,L.xaxisTooltipText.style.fontSize=C.config.xaxis.tooltip.style.fontSize,L.xaxisTooltip.appendChild(L.xaxisTooltipText))}},{key:"drawYaxisTooltip",value:function(){for(var C=this.w,L=this.ttCtx,F=function(ue){var fe=C.config.yaxis[ue].opposite||C.config.yaxis[ue].crosshairs.opposite;L.yaxisOffX=fe?C.globals.gridWidth+1:1;var me="apexcharts-yaxistooltip apexcharts-yaxistooltip-".concat(ue,fe?" apexcharts-yaxistooltip-right":" apexcharts-yaxistooltip-left");C.globals.yAxisSameScaleIndices.map(function(Re,Xe){Re.map(function(qe,Ke){Ke===ue&&(me+=C.config.yaxis[Ke].show?" ":" apexcharts-yaxistooltip-hidden")})});var Pe=C.globals.dom.elWrap;C.globals.dom.baseEl.querySelector(".apexcharts-yaxistooltip apexcharts-yaxistooltip-".concat(ue))===null&&(L.yaxisTooltip=document.createElement("div"),L.yaxisTooltip.setAttribute("class",me+" apexcharts-theme-"+C.config.tooltip.theme),Pe.appendChild(L.yaxisTooltip),ue===0&&(L.yaxisTooltipText=[]),L.yaxisTooltipText[ue]=document.createElement("div"),L.yaxisTooltipText[ue].classList.add("apexcharts-yaxistooltip-text"),L.yaxisTooltip.appendChild(L.yaxisTooltipText[ue]))},ne=0;ne<C.config.yaxis.length;ne++)F(ne)}},{key:"setXCrosshairWidth",value:function(){var C=this.w,L=this.ttCtx,F=L.getElXCrosshairs();if(L.xcrosshairsWidth=parseInt(C.config.xaxis.crosshairs.width,10),C.globals.comboCharts){var ne=C.globals.dom.baseEl.querySelector(".apexcharts-bar-area");if(ne!==null&&C.config.xaxis.crosshairs.width==="barWidth"){var ue=parseFloat(ne.getAttribute("barWidth"));L.xcrosshairsWidth=ue}else if(C.config.xaxis.crosshairs.width==="tickWidth"){var fe=C.globals.labels.length;L.xcrosshairsWidth=C.globals.gridWidth/fe}}else if(C.config.xaxis.crosshairs.width==="tickWidth"){var me=C.globals.labels.length;L.xcrosshairsWidth=C.globals.gridWidth/me}else if(C.config.xaxis.crosshairs.width==="barWidth"){var Pe=C.globals.dom.baseEl.querySelector(".apexcharts-bar-area");if(Pe!==null){var Re=parseFloat(Pe.getAttribute("barWidth"));L.xcrosshairsWidth=Re}else L.xcrosshairsWidth=1}C.globals.isBarHorizontal&&(L.xcrosshairsWidth=0),F!==null&&L.xcrosshairsWidth>0&&F.setAttribute("width",L.xcrosshairsWidth)}},{key:"handleYCrosshair",value:function(){var C=this.w,L=this.ttCtx;L.ycrosshairs=C.globals.dom.baseEl.querySelector(".apexcharts-ycrosshairs"),L.ycrosshairsHidden=C.globals.dom.baseEl.querySelector(".apexcharts-ycrosshairs-hidden")}},{key:"drawYaxisTooltipText",value:function(C,L,F){var ne=this.ttCtx,ue=this.w,fe=ue.globals.yLabelFormatters[C];if(ne.yaxisTooltips[C]){var me=ne.getElGrid().getBoundingClientRect(),Pe=(L-me.top)*F.yRatio[C],Re=ue.globals.maxYArr[C]-ue.globals.minYArr[C],Xe=ue.globals.minYArr[C]+(Re-Pe);ne.tooltipPosition.moveYCrosshairs(L-me.top),ne.yaxisTooltipText[C].innerHTML=fe(Xe),ne.tooltipPosition.moveYAxisTooltip(C)}}}]),ai}(),_M=function(){function ai(C){I(this,ai),this.ctx=C,this.w=C.w;var L=this.w;this.tConfig=L.config.tooltip,this.tooltipUtil=new Dn(this),this.tooltipLabels=new tM(this),this.tooltipPosition=new oM(this),this.marker=new vM(this),this.intersect=new dM(this),this.axesTooltip=new hM(this),this.showOnIntersect=this.tConfig.intersect,this.showTooltipTitle=this.tConfig.x.show,this.fixedTooltip=this.tConfig.fixed.enabled,this.xaxisTooltip=null,this.yaxisTTEls=null,this.isBarShared=!L.globals.isBarHorizontal&&this.tConfig.shared,this.lastHoverTime=Date.now()}return M(ai,[{key:"getElTooltip",value:function(C){return C||(C=this),C.w.globals.dom.baseEl?C.w.globals.dom.baseEl.querySelector(".apexcharts-tooltip"):null}},{key:"getElXCrosshairs",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-xcrosshairs")}},{key:"getElGrid",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-grid")}},{key:"drawTooltip",value:function(C){var L=this.w;this.xyRatios=C,this.isXAxisTooltipEnabled=L.config.xaxis.tooltip.enabled&&L.globals.axisCharts,this.yaxisTooltips=L.config.yaxis.map(function(fe,me){return!!(fe.show&&fe.tooltip.enabled&&L.globals.axisCharts)}),this.allTooltipSeriesGroups=[],L.globals.axisCharts||(this.showTooltipTitle=!1);var F=document.createElement("div");if(F.classList.add("apexcharts-tooltip"),L.config.tooltip.cssClass&&F.classList.add(L.config.tooltip.cssClass),F.classList.add("apexcharts-theme-".concat(this.tConfig.theme)),L.globals.dom.elWrap.appendChild(F),L.globals.axisCharts){this.axesTooltip.drawXaxisTooltip(),this.axesTooltip.drawYaxisTooltip(),this.axesTooltip.setXCrosshairWidth(),this.axesTooltip.handleYCrosshair();var ne=new ci(this.ctx);this.xAxisTicksPositions=ne.getXAxisTicksPositions()}if(!L.globals.comboCharts&&!this.tConfig.intersect&&L.config.chart.type!=="rangeBar"||this.tConfig.shared||(this.showOnIntersect=!0),L.config.markers.size!==0&&L.globals.markers.largestSize!==0||this.marker.drawDynamicPoints(this),L.globals.collapsedSeries.length!==L.globals.series.length){this.dataPointsDividedHeight=L.globals.gridHeight/L.globals.dataPoints,this.dataPointsDividedWidth=L.globals.gridWidth/L.globals.dataPoints,this.showTooltipTitle&&(this.tooltipTitle=document.createElement("div"),this.tooltipTitle.classList.add("apexcharts-tooltip-title"),this.tooltipTitle.style.fontFamily=this.tConfig.style.fontFamily||L.config.chart.fontFamily,this.tooltipTitle.style.fontSize=this.tConfig.style.fontSize,F.appendChild(this.tooltipTitle));var ue=L.globals.series.length;(L.globals.xyCharts||L.globals.comboCharts)&&this.tConfig.shared&&(ue=this.showOnIntersect?1:L.globals.series.length),this.legendLabels=L.globals.dom.baseEl.querySelectorAll(".apexcharts-legend-text"),this.ttItems=this.createTTElements(ue),this.addSVGEvents()}}},{key:"createTTElements",value:function(C){for(var L=this,F=this.w,ne=[],ue=this.getElTooltip(),fe=function(Pe){var Re=document.createElement("div");Re.classList.add("apexcharts-tooltip-series-group"),Re.style.order=F.config.tooltip.inverseOrder?C-Pe:Pe+1,L.tConfig.shared&&L.tConfig.enabledOnSeries&&Array.isArray(L.tConfig.enabledOnSeries)&&L.tConfig.enabledOnSeries.indexOf(Pe)<0&&Re.classList.add("apexcharts-tooltip-series-group-hidden");var Xe=document.createElement("span");Xe.classList.add("apexcharts-tooltip-marker"),Xe.style.backgroundColor=F.globals.colors[Pe],Re.appendChild(Xe);var qe=document.createElement("div");qe.classList.add("apexcharts-tooltip-text"),qe.style.fontFamily=L.tConfig.style.fontFamily||F.config.chart.fontFamily,qe.style.fontSize=L.tConfig.style.fontSize,["y","goals","z"].forEach(function(Ke){var nt=document.createElement("div");nt.classList.add("apexcharts-tooltip-".concat(Ke,"-group"));var It=document.createElement("span");It.classList.add("apexcharts-tooltip-text-".concat(Ke,"-label")),nt.appendChild(It);var Tt=document.createElement("span");Tt.classList.add("apexcharts-tooltip-text-".concat(Ke,"-value")),nt.appendChild(Tt),qe.appendChild(nt)}),Re.appendChild(qe),ue.appendChild(Re),ne.push(Re)},me=0;me<C;me++)fe(me);return ne}},{key:"addSVGEvents",value:function(){var C=this.w,L=C.config.chart.type,F=this.getElTooltip(),ne=!(L!=="bar"&&L!=="candlestick"&&L!=="boxPlot"&&L!=="rangeBar"),ue=L==="area"||L==="line"||L==="scatter"||L==="bubble"||L==="radar",fe=C.globals.dom.Paper.node,me=this.getElGrid();me&&(this.seriesBound=me.getBoundingClientRect());var Pe,Re=[],Xe=[],qe={hoverArea:fe,elGrid:me,tooltipEl:F,tooltipY:Re,tooltipX:Xe,ttItems:this.ttItems};if(C.globals.axisCharts&&(ue?Pe=C.globals.dom.baseEl.querySelectorAll(".apexcharts-series[data\\:longestSeries='true'] .apexcharts-marker"):ne?Pe=C.globals.dom.baseEl.querySelectorAll(".apexcharts-series .apexcharts-bar-area, .apexcharts-series .apexcharts-candlestick-area, .apexcharts-series .apexcharts-boxPlot-area, .apexcharts-series .apexcharts-rangebar-area"):L!=="heatmap"&&L!=="treemap"||(Pe=C.globals.dom.baseEl.querySelectorAll(".apexcharts-series .apexcharts-heatmap, .apexcharts-series .apexcharts-treemap")),Pe&&Pe.length))for(var Ke=0;Ke<Pe.length;Ke++)Re.push(Pe[Ke].getAttribute("cy")),Xe.push(Pe[Ke].getAttribute("cx"));if(C.globals.xyCharts&&!this.showOnIntersect||C.globals.comboCharts&&!this.showOnIntersect||ne&&this.tooltipUtil.hasBars()&&this.tConfig.shared)this.addPathsEventListeners([fe],qe);else if(ne&&!C.globals.comboCharts||ue&&this.showOnIntersect)this.addDatapointEventsListeners(qe);else if(!C.globals.axisCharts||L==="heatmap"||L==="treemap"){var nt=C.globals.dom.baseEl.querySelectorAll(".apexcharts-series");this.addPathsEventListeners(nt,qe)}if(this.showOnIntersect){var It=C.globals.dom.baseEl.querySelectorAll(".apexcharts-line-series .apexcharts-marker, .apexcharts-area-series .apexcharts-marker");It.length>0&&this.addPathsEventListeners(It,qe),this.tooltipUtil.hasBars()&&!this.tConfig.shared&&this.addDatapointEventsListeners(qe)}}},{key:"drawFixedTooltipRect",value:function(){var C=this.w,L=this.getElTooltip(),F=L.getBoundingClientRect(),ne=F.width+10,ue=F.height+10,fe=this.tConfig.fixed.offsetX,me=this.tConfig.fixed.offsetY,Pe=this.tConfig.fixed.position.toLowerCase();return Pe.indexOf("right")>-1&&(fe=fe+C.globals.svgWidth-ne+10),Pe.indexOf("bottom")>-1&&(me=me+C.globals.svgHeight-ue-10),L.style.left=fe+"px",L.style.top=me+"px",{x:fe,y:me,ttWidth:ne,ttHeight:ue}}},{key:"addDatapointEventsListeners",value:function(C){var L=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers .apexcharts-marker, .apexcharts-bar-area, .apexcharts-candlestick-area, .apexcharts-boxPlot-area, .apexcharts-rangebar-area");this.addPathsEventListeners(L,C)}},{key:"addPathsEventListeners",value:function(C,L){for(var F=this,ne=function(fe){var me={paths:C[fe],tooltipEl:L.tooltipEl,tooltipY:L.tooltipY,tooltipX:L.tooltipX,elGrid:L.elGrid,hoverArea:L.hoverArea,ttItems:L.ttItems};["mousemove","mouseup","touchmove","mouseout","touchend"].map(function(Pe){return C[fe].addEventListener(Pe,F.onSeriesHover.bind(F,me),{capture:!1,passive:!0})})},ue=0;ue<C.length;ue++)ne(ue)}},{key:"onSeriesHover",value:function(C,L){var F=this,ne=Date.now()-this.lastHoverTime;ne>=100?this.seriesHover(C,L):(clearTimeout(this.seriesHoverTimeout),this.seriesHoverTimeout=setTimeout(function(){F.seriesHover(C,L)},100-ne))}},{key:"seriesHover",value:function(C,L){var F=this;this.lastHoverTime=Date.now();var ne=[],ue=this.w;ue.config.chart.group&&(ne=this.ctx.getGroupedCharts()),ue.globals.axisCharts&&(ue.globals.minX===-1/0&&ue.globals.maxX===1/0||ue.globals.dataPoints===0)||(ne.length?ne.forEach(function(fe){var me=F.getElTooltip(fe),Pe={paths:C.paths,tooltipEl:me,tooltipY:C.tooltipY,tooltipX:C.tooltipX,elGrid:C.elGrid,hoverArea:C.hoverArea,ttItems:fe.w.globals.tooltip.ttItems};fe.w.globals.minX===F.w.globals.minX&&fe.w.globals.maxX===F.w.globals.maxX&&fe.w.globals.tooltip.seriesHoverByContext({chartCtx:fe,ttCtx:fe.w.globals.tooltip,opt:Pe,e:L})}):this.seriesHoverByContext({chartCtx:this.ctx,ttCtx:this.w.globals.tooltip,opt:C,e:L}))}},{key:"seriesHoverByContext",value:function(C){var L=C.chartCtx,F=C.ttCtx,ne=C.opt,ue=C.e,fe=L.w,me=this.getElTooltip();me&&(F.tooltipRect={x:0,y:0,ttWidth:me.getBoundingClientRect().width,ttHeight:me.getBoundingClientRect().height},F.e=ue,F.tooltipUtil.hasBars()&&!fe.globals.comboCharts&&!F.isBarShared&&this.tConfig.onDatasetHover.highlightDataSeries&&new Ue(L).toggleSeriesOnHover(ue,ue.target.parentNode),F.fixedTooltip&&F.drawFixedTooltipRect(),fe.globals.axisCharts?F.axisChartsTooltips({e:ue,opt:ne,tooltipRect:F.tooltipRect}):F.nonAxisChartsTooltips({e:ue,opt:ne,tooltipRect:F.tooltipRect}))}},{key:"axisChartsTooltips",value:function(C){var L,F,ne=C.e,ue=C.opt,fe=this.w,me=ue.elGrid.getBoundingClientRect(),Pe=ne.type==="touchmove"?ne.touches[0].clientX:ne.clientX,Re=ne.type==="touchmove"?ne.touches[0].clientY:ne.clientY;if(this.clientY=Re,this.clientX=Pe,fe.globals.capturedSeriesIndex=-1,fe.globals.capturedDataPointIndex=-1,Re<me.top||Re>me.top+me.height)this.handleMouseOut(ue);else{if(Array.isArray(this.tConfig.enabledOnSeries)&&!fe.config.tooltip.shared){var Xe=parseInt(ue.paths.getAttribute("index"),10);if(this.tConfig.enabledOnSeries.indexOf(Xe)<0)return void this.handleMouseOut(ue)}var qe=this.getElTooltip(),Ke=this.getElXCrosshairs(),nt=fe.globals.xyCharts||fe.config.chart.type==="bar"&&!fe.globals.isBarHorizontal&&this.tooltipUtil.hasBars()&&this.tConfig.shared||fe.globals.comboCharts&&this.tooltipUtil.hasBars();if(ne.type==="mousemove"||ne.type==="touchmove"||ne.type==="mouseup"){if(fe.globals.collapsedSeries.length+fe.globals.ancillaryCollapsedSeries.length===fe.globals.series.length)return;Ke!==null&&Ke.classList.add("apexcharts-active");var It=this.yaxisTooltips.filter(function(fi){return fi===!0});if(this.ycrosshairs!==null&&It.length&&this.ycrosshairs.classList.add("apexcharts-active"),nt&&!this.showOnIntersect)this.handleStickyTooltip(ne,Pe,Re,ue);else if(fe.config.chart.type==="heatmap"||fe.config.chart.type==="treemap"){var Tt=this.intersect.handleHeatTreeTooltip({e:ne,opt:ue,x:L,y:F,type:fe.config.chart.type});L=Tt.x,F=Tt.y,qe.style.left=L+"px",qe.style.top=F+"px"}else this.tooltipUtil.hasBars()&&this.intersect.handleBarTooltip({e:ne,opt:ue}),this.tooltipUtil.hasMarkers()&&this.intersect.handleMarkerTooltip({e:ne,opt:ue,x:L,y:F});if(this.yaxisTooltips.length)for(var ni=0;ni<fe.config.yaxis.length;ni++)this.axesTooltip.drawYaxisTooltipText(ni,Re,this.xyRatios);ue.tooltipEl.classList.add("apexcharts-active")}else ne.type!=="mouseout"&&ne.type!=="touchend"||this.handleMouseOut(ue)}}},{key:"nonAxisChartsTooltips",value:function(C){var L=C.e,F=C.opt,ne=C.tooltipRect,ue=this.w,fe=F.paths.getAttribute("rel"),me=this.getElTooltip(),Pe=ue.globals.dom.elWrap.getBoundingClientRect();if(L.type==="mousemove"||L.type==="touchmove"){me.classList.add("apexcharts-active"),this.tooltipLabels.drawSeriesTexts({ttItems:F.ttItems,i:parseInt(fe,10)-1,shared:!1});var Re=ue.globals.clientX-Pe.left-ne.ttWidth/2,Xe=ue.globals.clientY-Pe.top-ne.ttHeight-10;if(me.style.left=Re+"px",me.style.top=Xe+"px",ue.config.legend.tooltipHoverFormatter){var qe=fe-1,Ke=(0,ue.config.legend.tooltipHoverFormatter)(this.legendLabels[qe].getAttribute("data:default-text"),{seriesIndex:qe,dataPointIndex:qe,w:ue});this.legendLabels[qe].innerHTML=Ke}}else L.type!=="mouseout"&&L.type!=="touchend"||(me.classList.remove("apexcharts-active"),ue.config.legend.tooltipHoverFormatter&&this.legendLabels.forEach(function(nt){var It=nt.getAttribute("data:default-text");nt.innerHTML=decodeURIComponent(It)}))}},{key:"handleStickyTooltip",value:function(C,L,F,ne){var ue=this.w,fe=this.tooltipUtil.getNearestValues({context:this,hoverArea:ne.hoverArea,elGrid:ne.elGrid,clientX:L,clientY:F}),me=fe.j,Pe=fe.capturedSeries;ue.globals.collapsedSeriesIndices.includes(Pe)&&(Pe=null);var Re=ne.elGrid.getBoundingClientRect();if(fe.hoverX<0||fe.hoverX>Re.width)this.handleMouseOut(ne);else if(Pe!==null)this.handleStickyCapturedSeries(C,Pe,ne,me);else if(this.tooltipUtil.isXoverlap(me)||ue.globals.isBarHorizontal){var Xe=ue.globals.series.findIndex(function(qe,Ke){return!ue.globals.collapsedSeriesIndices.includes(Ke)});this.create(C,this,Xe,me,ne.ttItems)}}},{key:"handleStickyCapturedSeries",value:function(C,L,F,ne){var ue=this.w;if(!this.tConfig.shared&&ue.globals.series[L][ne]===null)return void this.handleMouseOut(F);if(ue.globals.series[L][ne]!==void 0)this.tConfig.shared&&this.tooltipUtil.isXoverlap(ne)&&this.tooltipUtil.isInitialSeriesSameLen()?this.create(C,this,L,ne,F.ttItems):this.create(C,this,L,ne,F.ttItems,!1);else if(this.tooltipUtil.isXoverlap(ne)){var fe=ue.globals.series.findIndex(function(me,Pe){return!ue.globals.collapsedSeriesIndices.includes(Pe)});this.create(C,this,fe,ne,F.ttItems)}}},{key:"deactivateHoverFilter",value:function(){for(var C=this.w,L=new ge(this.ctx),F=C.globals.dom.Paper.select(".apexcharts-bar-area"),ne=0;ne<F.length;ne++)L.pathMouseLeave(F[ne])}},{key:"handleMouseOut",value:function(C){var L=this.w,F=this.getElXCrosshairs();if(C.tooltipEl.classList.remove("apexcharts-active"),this.deactivateHoverFilter(),L.config.chart.type!=="bubble"&&this.marker.resetPointsSize(),F!==null&&F.classList.remove("apexcharts-active"),this.ycrosshairs!==null&&this.ycrosshairs.classList.remove("apexcharts-active"),this.isXAxisTooltipEnabled&&this.xaxisTooltip.classList.remove("apexcharts-active"),this.yaxisTooltips.length){this.yaxisTTEls===null&&(this.yaxisTTEls=L.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxistooltip"));for(var ne=0;ne<this.yaxisTTEls.length;ne++)this.yaxisTTEls[ne].classList.remove("apexcharts-active")}L.config.legend.tooltipHoverFormatter&&this.legendLabels.forEach(function(ue){var fe=ue.getAttribute("data:default-text");ue.innerHTML=decodeURIComponent(fe)})}},{key:"markerClick",value:function(C,L,F){var ne=this.w;typeof ne.config.chart.events.markerClick=="function"&&ne.config.chart.events.markerClick(C,this.ctx,{seriesIndex:L,dataPointIndex:F,w:ne}),this.ctx.events.fireEvent("markerClick",[C,this.ctx,{seriesIndex:L,dataPointIndex:F,w:ne}])}},{key:"create",value:function(C,L,F,ne,ue){var fe,me,Pe,Re,Xe,qe,Ke,nt,It,Tt,ni,fi,gi,je,it,Ct,si=arguments.length>5&&arguments[5]!==void 0?arguments[5]:null,di=this.w,yi=L;C.type==="mouseup"&&this.markerClick(C,F,ne),si===null&&(si=this.tConfig.shared);var nM=this.tooltipUtil.hasMarkers(F),iM=this.tooltipUtil.getElBars();if(di.config.legend.tooltipHoverFormatter){var mM=di.config.legend.tooltipHoverFormatter,EM=Array.from(this.legendLabels);EM.forEach(function(SN){var _N=SN.getAttribute("data:default-text");SN.innerHTML=decodeURIComponent(_N)});for(var wM=0;wM<EM.length;wM++){var GM=EM[wM],qM=parseInt(GM.getAttribute("i"),10),JM=decodeURIComponent(GM.getAttribute("data:default-text")),zT=mM(JM,{seriesIndex:si?qM:F,dataPointIndex:ne,w:di});if(si)GM.innerHTML=di.globals.collapsedSeriesIndices.indexOf(qM)<0?zT:JM;else if(GM.innerHTML=qM===F?zT:JM,F===qM)break}}var WT=_(_({ttItems:ue,i:F,j:ne},((fe=di.globals.seriesRange)===null||fe===void 0||(me=fe[F])===null||me===void 0||(Pe=me[ne])===null||Pe===void 0||(Re=Pe.y[0])===null||Re===void 0?void 0:Re.y1)!==void 0&&{y1:(Xe=di.globals.seriesRange)===null||Xe===void 0||(qe=Xe[F])===null||qe===void 0||(Ke=qe[ne])===null||Ke===void 0||(nt=Ke.y[0])===null||nt===void 0?void 0:nt.y1}),((It=di.globals.seriesRange)===null||It===void 0||(Tt=It[F])===null||Tt===void 0||(ni=Tt[ne])===null||ni===void 0||(fi=ni.y[0])===null||fi===void 0?void 0:fi.y2)!==void 0&&{y2:(gi=di.globals.seriesRange)===null||gi===void 0||(je=gi[F])===null||je===void 0||(it=je[ne])===null||it===void 0||(Ct=it.y[0])===null||Ct===void 0?void 0:Ct.y2});if(si){if(yi.tooltipLabels.drawSeriesTexts(_(_({},WT),{},{shared:!this.showOnIntersect&&this.tConfig.shared})),nM)di.globals.markers.largestSize>0?yi.marker.enlargePoints(ne):yi.tooltipPosition.moveDynamicPointsOnHover(ne);else if(this.tooltipUtil.hasBars()&&(this.barSeriesHeight=this.tooltipUtil.getBarsHeight(iM),this.barSeriesHeight>0)){var FT=new ge(this.ctx),KT=di.globals.dom.Paper.select(".apexcharts-bar-area[j='".concat(ne,"']"));this.deactivateHoverFilter(),this.tooltipPosition.moveStickyTooltipOverBars(ne,F);for(var nN=0;nN<KT.length;nN++)FT.pathMouseEnter(KT[nN])}}else yi.tooltipLabels.drawSeriesTexts(_({shared:!1},WT)),this.tooltipUtil.hasBars()&&yi.tooltipPosition.moveStickyTooltipOverBars(ne,F),nM&&yi.tooltipPosition.moveMarkers(F,ne)}}]),ai}(),uM=function(){function ai(C){I(this,ai),this.w=C.w,this.barCtx=C,this.totalFormatter=this.w.config.plotOptions.bar.dataLabels.total.formatter,this.totalFormatter||(this.totalFormatter=this.w.config.dataLabels.formatter)}return M(ai,[{key:"handleBarDataLabels",value:function(C){var L=C.x,F=C.y,ne=C.y1,ue=C.y2,fe=C.i,me=C.j,Pe=C.realIndex,Re=C.groupIndex,Xe=C.series,qe=C.barHeight,Ke=C.barWidth,nt=C.barXPosition,It=C.barYPosition,Tt=C.visibleSeries,ni=C.renderedPath,fi=this.w,gi=new ge(this.barCtx.ctx),je=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[Pe]:this.barCtx.strokeWidth,it=L+parseFloat(Ke*Tt),Ct=F+parseFloat(qe*Tt);fi.globals.isXNumeric&&!fi.globals.isBarHorizontal&&(it=L+parseFloat(Ke*(Tt+1)),Ct=F+parseFloat(qe*(Tt+1))-je);var si,di=null,yi=L,nM=F,iM={},mM=fi.config.dataLabels,EM=this.barCtx.barOptions.dataLabels,wM=this.barCtx.barOptions.dataLabels.total;It!==void 0&&this.barCtx.isRangeBar&&(Ct=It,nM=It),nt!==void 0&&this.barCtx.isVerticalGroupedRangeBar&&(it=nt,yi=nt);var GM=mM.offsetX,qM=mM.offsetY,JM={width:0,height:0};if(fi.config.dataLabels.enabled){var zT=this.barCtx.series[fe][me];JM=gi.getTextRects(fi.globals.yLabelFormatters[0](zT),parseFloat(mM.style.fontSize))}var WT={x:L,y:F,i:fe,j:me,realIndex:Pe,groupIndex:Re||-1,renderedPath:ni,bcx:it,bcy:Ct,barHeight:qe,barWidth:Ke,textRects:JM,strokeWidth:je,dataLabelsX:yi,dataLabelsY:nM,dataLabelsConfig:mM,barDataLabelsConfig:EM,barTotalDataLabelsConfig:wM,offX:GM,offY:qM};return iM=this.barCtx.isHorizontal?this.calculateBarsDataLabelsPosition(WT):this.calculateColumnsDataLabelsPosition(WT),ni.attr({cy:iM.bcy,cx:iM.bcx,j:me,val:Xe[fe][me],barHeight:qe,barWidth:Ke}),si=this.drawCalculatedDataLabels({x:iM.dataLabelsX,y:iM.dataLabelsY,val:this.barCtx.isRangeBar?[ne,ue]:Xe[fe][me],i:Pe,j:me,barWidth:Ke,barHeight:qe,textRects:JM,dataLabelsConfig:mM}),fi.config.chart.stacked&&wM.enabled&&(di=this.drawTotalDataLabels({x:iM.totalDataLabelsX,y:iM.totalDataLabelsY,barWidth:Ke,barHeight:qe,realIndex:Pe,textAnchor:iM.totalDataLabelsAnchor,val:this.getStackedTotalDataLabel({realIndex:Pe,j:me}),dataLabelsConfig:mM,barTotalDataLabelsConfig:wM})),{dataLabels:si,totalDataLabels:di}}},{key:"getStackedTotalDataLabel",value:function(C){var L=C.realIndex,F=C.j,ne=this.w,ue=this.barCtx.stackedSeriesTotals[F];return this.totalFormatter&&(ue=this.totalFormatter(ue,_(_({},ne),{},{seriesIndex:L,dataPointIndex:F,w:ne}))),ue}},{key:"calculateColumnsDataLabelsPosition",value:function(C){var L,F,ne=this.w,ue=C.i,fe=C.j,me=C.realIndex,Pe=C.groupIndex,Re=C.y,Xe=C.bcx,qe=C.barWidth,Ke=C.barHeight,nt=C.textRects,It=C.dataLabelsX,Tt=C.dataLabelsY,ni=C.dataLabelsConfig,fi=C.barDataLabelsConfig,gi=C.barTotalDataLabelsConfig,je=C.strokeWidth,it=C.offX,Ct=C.offY;Ke=Math.abs(Ke);var si=ne.config.plotOptions.bar.dataLabels.orientation==="vertical",di=this.barCtx.barHelpers.getZeroValueEncounters({i:ue,j:fe}).zeroEncounters;Xe=Xe-je/2+(Pe!==-1?Pe*qe:0);var yi=ne.globals.gridWidth/ne.globals.dataPoints;this.barCtx.isVerticalGroupedRangeBar?It+=qe/2:(It=ne.globals.isXNumeric?Xe-qe/2+it:Xe-yi+qe/2+it,di>0&&ne.config.plotOptions.bar.hideZeroBarsWhenGrouped&&(It-=qe*di)),si&&(It=It+nt.height/2-je/2-2);var nM=this.barCtx.series[ue][fe]<0,iM=Re;switch(this.barCtx.isReversed&&(iM=Re-Ke+(nM?2*Ke:0),Re-=Ke),fi.position){case"center":Tt=si?nM?iM-Ke/2+Ct:iM+Ke/2-Ct:nM?iM-Ke/2+nt.height/2+Ct:iM+Ke/2+nt.height/2-Ct;break;case"bottom":Tt=si?nM?iM-Ke+Ct:iM+Ke-Ct:nM?iM-Ke+nt.height+je+Ct:iM+Ke-nt.height/2+je-Ct;break;case"top":Tt=si?nM?iM+Ct:iM-Ct:nM?iM-nt.height/2-Ct:iM+nt.height+Ct}if(this.barCtx.lastActiveBarSerieIndex===me&&gi.enabled){var mM=new ge(this.barCtx.ctx).getTextRects(this.getStackedTotalDataLabel({realIndex:me,j:fe}),ni.fontSize);L=nM?iM-mM.height/2-Ct-gi.offsetY+18:iM+mM.height+Ct+gi.offsetY-18,F=It+gi.offsetX}return ne.config.chart.stacked||(Tt<0?Tt=0+je:Tt+nt.height/3>ne.globals.gridHeight&&(Tt=ne.globals.gridHeight-je)),{bcx:Xe,bcy:Re,dataLabelsX:It,dataLabelsY:Tt,totalDataLabelsX:F,totalDataLabelsY:L,totalDataLabelsAnchor:"middle"}}},{key:"calculateBarsDataLabelsPosition",value:function(C){var L=this.w,F=C.x,ne=C.i,ue=C.j,fe=C.realIndex,me=C.groupIndex,Pe=C.bcy,Re=C.barHeight,Xe=C.barWidth,qe=C.textRects,Ke=C.dataLabelsX,nt=C.strokeWidth,It=C.dataLabelsConfig,Tt=C.barDataLabelsConfig,ni=C.barTotalDataLabelsConfig,fi=C.offX,gi=C.offY,je=L.globals.gridHeight/L.globals.dataPoints;Xe=Math.abs(Xe);var it,Ct,si=(Pe+=me!==-1?me*Re:0)-(this.barCtx.isRangeBar?0:je)+Re/2+qe.height/2+gi-3,di="start",yi=this.barCtx.series[ne][ue]<0,nM=F;switch(this.barCtx.isReversed&&(nM=F+Xe-(yi?2*Xe:0),F=L.globals.gridWidth-Xe),Tt.position){case"center":Ke=yi?nM+Xe/2-fi:Math.max(qe.width/2,nM-Xe/2)+fi;break;case"bottom":Ke=yi?nM+Xe-nt-Math.round(qe.width/2)-fi:nM-Xe+nt+Math.round(qe.width/2)+fi;break;case"top":Ke=yi?nM-nt+Math.round(qe.width/2)-fi:nM-nt-Math.round(qe.width/2)+fi}if(this.barCtx.lastActiveBarSerieIndex===fe&&ni.enabled){var iM=new ge(this.barCtx.ctx).getTextRects(this.getStackedTotalDataLabel({realIndex:fe,j:ue}),It.fontSize);yi?(it=nM-nt+Math.round(iM.width/2)-fi-ni.offsetX-15,di="end"):it=nM-nt-Math.round(iM.width/2)+fi+ni.offsetX+15,Ct=si+ni.offsetY}return L.config.chart.stacked||(Ke<0?Ke=Ke+qe.width+nt:Ke+qe.width/2>L.globals.gridWidth&&(Ke=L.globals.gridWidth-qe.width-nt)),{bcx:F,bcy:Pe,dataLabelsX:Ke,dataLabelsY:si,totalDataLabelsX:it,totalDataLabelsY:Ct,totalDataLabelsAnchor:di}}},{key:"drawCalculatedDataLabels",value:function(C){var L=C.x,F=C.y,ne=C.val,ue=C.i,fe=C.j,me=C.textRects,Pe=C.barHeight,Re=C.barWidth,Xe=C.dataLabelsConfig,qe=this.w,Ke="rotate(0)";qe.config.plotOptions.bar.dataLabels.orientation==="vertical"&&(Ke="rotate(-90, ".concat(L,", ").concat(F,")"));var nt=new rt(this.barCtx.ctx),It=new ge(this.barCtx.ctx),Tt=Xe.formatter,ni=null,fi=qe.globals.collapsedSeriesIndices.indexOf(ue)>-1;if(Xe.enabled&&!fi){ni=It.group({class:"apexcharts-data-labels",transform:Ke});var gi="";ne!==void 0&&(gi=Tt(ne,_(_({},qe),{},{seriesIndex:ue,dataPointIndex:fe,w:qe}))),!ne&&qe.config.plotOptions.bar.hideZeroBarsWhenGrouped&&(gi="");var je=qe.globals.series[ue][fe]<0,it=qe.config.plotOptions.bar.dataLabels.position;qe.config.plotOptions.bar.dataLabels.orientation==="vertical"&&(it==="top"&&(Xe.textAnchor=je?"end":"start"),it==="center"&&(Xe.textAnchor="middle"),it==="bottom"&&(Xe.textAnchor=je?"end":"start")),this.barCtx.isRangeBar&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&Re<It.getTextRects(gi,parseFloat(Xe.style.fontSize)).width&&(gi=""),qe.config.chart.stacked&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&(this.barCtx.isHorizontal?me.width/1.6>Math.abs(Re)&&(gi=""):me.height/1.6>Math.abs(Pe)&&(gi=""));var Ct=_({},Xe);this.barCtx.isHorizontal&&ne<0&&(Xe.textAnchor==="start"?Ct.textAnchor="end":Xe.textAnchor==="end"&&(Ct.textAnchor="start")),nt.plotDataLabelsText({x:L,y:F,text:gi,i:ue,j:fe,parent:ni,dataLabelsConfig:Ct,alwaysDrawDataLabel:!0,offsetCorrection:!0})}return ni}},{key:"drawTotalDataLabels",value:function(C){var L,F=C.x,ne=C.y,ue=C.val,fe=C.barWidth,me=C.barHeight,Pe=C.realIndex,Re=C.textAnchor,Xe=C.barTotalDataLabelsConfig,qe=this.w,Ke=new ge(this.barCtx.ctx);return Xe.enabled&&F!==void 0&&ne!==void 0&&this.barCtx.lastActiveBarSerieIndex===Pe&&(L=Ke.drawText({x:F-(!qe.globals.isBarHorizontal&&qe.globals.seriesGroups.length?fe/qe.globals.seriesGroups.length:0),y:ne-(qe.globals.isBarHorizontal&&qe.globals.seriesGroups.length?me/qe.globals.seriesGroups.length:0),foreColor:Xe.style.color,text:ue,textAnchor:Re,fontFamily:Xe.style.fontFamily,fontSize:Xe.style.fontSize,fontWeight:Xe.style.fontWeight})),L}}]),ai}(),pM=function(){function ai(C){I(this,ai),this.w=C.w,this.barCtx=C}return M(ai,[{key:"initVariables",value:function(C){var L=this.w;this.barCtx.series=C,this.barCtx.totalItems=0,this.barCtx.seriesLen=0,this.barCtx.visibleI=-1,this.barCtx.visibleItems=1;for(var F=0;F<C.length;F++)if(C[F].length>0&&(this.barCtx.seriesLen=this.barCtx.seriesLen+1,this.barCtx.totalItems+=C[F].length),L.globals.isXNumeric)for(var ne=0;ne<C[F].length;ne++)L.globals.seriesX[F][ne]>L.globals.minX&&L.globals.seriesX[F][ne]<L.globals.maxX&&this.barCtx.visibleItems++;else this.barCtx.visibleItems=L.globals.dataPoints;this.barCtx.seriesLen===0&&(this.barCtx.seriesLen=1),this.barCtx.zeroSerieses=[],L.globals.comboCharts||this.checkZeroSeries({series:C})}},{key:"initialPositions",value:function(){var C,L,F,ne,ue,fe,me,Pe,Re=this.w,Xe=Re.globals.dataPoints;this.barCtx.isRangeBar&&(Xe=Re.globals.labels.length);var qe=this.barCtx.seriesLen;if(Re.config.plotOptions.bar.rangeBarGroupRows&&(qe=1),this.barCtx.isHorizontal)ue=(F=Re.globals.gridHeight/Xe)/qe,Re.globals.isXNumeric&&(ue=(F=Re.globals.gridHeight/this.barCtx.totalItems)/this.barCtx.seriesLen),ue=ue*parseInt(this.barCtx.barOptions.barHeight,10)/100,String(this.barCtx.barOptions.barHeight).indexOf("%")===-1&&(ue=parseInt(this.barCtx.barOptions.barHeight,10)),Pe=this.barCtx.baseLineInvertedY+Re.globals.padHorizontal+(this.barCtx.isReversed?Re.globals.gridWidth:0)-(this.barCtx.isReversed?2*this.barCtx.baseLineInvertedY:0),this.barCtx.isFunnel&&(Pe=Re.globals.gridWidth/2),L=(F-ue*this.barCtx.seriesLen)/2;else{if(ne=Re.globals.gridWidth/this.barCtx.visibleItems,Re.config.xaxis.convertedCatToNumeric&&(ne=Re.globals.gridWidth/Re.globals.dataPoints),fe=ne/qe*parseInt(this.barCtx.barOptions.columnWidth,10)/100,Re.globals.isXNumeric){var Ke=this.barCtx.xRatio;Re.globals.minXDiff&&Re.globals.minXDiff!==.5&&Re.globals.minXDiff/Ke>0&&(ne=Re.globals.minXDiff/Ke),(fe=ne/qe*parseInt(this.barCtx.barOptions.columnWidth,10)/100)<1&&(fe=1)}String(this.barCtx.barOptions.columnWidth).indexOf("%")===-1&&(fe=parseInt(this.barCtx.barOptions.columnWidth,10)),me=Re.globals.gridHeight-this.barCtx.baseLineY[this.barCtx.yaxisIndex]-(this.barCtx.isReversed?Re.globals.gridHeight:0)+(this.barCtx.isReversed?2*this.barCtx.baseLineY[this.barCtx.yaxisIndex]:0),C=Re.globals.padHorizontal+(ne-fe*this.barCtx.seriesLen)/2}return Re.globals.barHeight=ue,Re.globals.barWidth=fe,{x:C,y:L,yDivision:F,xDivision:ne,barHeight:ue,barWidth:fe,zeroH:me,zeroW:Pe}}},{key:"initializeStackedPrevVars",value:function(C){var L=C.w;L.globals.hasSeriesGroups?L.globals.seriesGroups.forEach(function(F){C[F]||(C[F]={}),C[F].prevY=[],C[F].prevX=[],C[F].prevYF=[],C[F].prevXF=[],C[F].prevYVal=[],C[F].prevXVal=[]}):(C.prevY=[],C.prevX=[],C.prevYF=[],C.prevXF=[],C.prevYVal=[],C.prevXVal=[])}},{key:"initializeStackedXYVars",value:function(C){var L=C.w;L.globals.hasSeriesGroups?L.globals.seriesGroups.forEach(function(F){C[F]||(C[F]={}),C[F].xArrj=[],C[F].xArrjF=[],C[F].xArrjVal=[],C[F].yArrj=[],C[F].yArrjF=[],C[F].yArrjVal=[]}):(C.xArrj=[],C.xArrjF=[],C.xArrjVal=[],C.yArrj=[],C.yArrjF=[],C.yArrjVal=[])}},{key:"getPathFillColor",value:function(C,L,F,ne){var ue,fe,me,Pe,Re=this.w,Xe=new Z(this.barCtx.ctx),qe=null,Ke=this.barCtx.barOptions.distributed?F:L;return this.barCtx.barOptions.colors.ranges.length>0&&this.barCtx.barOptions.colors.ranges.map(function(nt){C[L][F]>=nt.from&&C[L][F]<=nt.to&&(qe=nt.color)}),Re.config.series[L].data[F]&&Re.config.series[L].data[F].fillColor&&(qe=Re.config.series[L].data[F].fillColor),Xe.fillPath({seriesNumber:this.barCtx.barOptions.distributed?Ke:ne,dataPointIndex:F,color:qe,value:C[L][F],fillConfig:(ue=Re.config.series[L].data[F])===null||ue===void 0?void 0:ue.fill,fillType:(fe=Re.config.series[L].data[F])!==null&&fe!==void 0&&(me=fe.fill)!==null&&me!==void 0&&me.type?(Pe=Re.config.series[L].data[F])===null||Pe===void 0?void 0:Pe.fill.type:Array.isArray(Re.config.fill.type)?Re.config.fill.type[L]:Re.config.fill.type})}},{key:"getStrokeWidth",value:function(C,L,F){var ne=0,ue=this.w;return this.barCtx.series[C][L]===void 0||this.barCtx.series[C][L]===null?this.barCtx.isNullValue=!0:this.barCtx.isNullValue=!1,ue.config.stroke.show&&(this.barCtx.isNullValue||(ne=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[F]:this.barCtx.strokeWidth)),ne}},{key:"shouldApplyRadius",value:function(C){var L=this.w,F=!1;return L.config.plotOptions.bar.borderRadius>0&&(L.config.chart.stacked&&L.config.plotOptions.bar.borderRadiusWhenStacked==="last"?this.barCtx.lastActiveBarSerieIndex===C&&(F=!0):F=!0),F}},{key:"barBackground",value:function(C){var L=C.j,F=C.i,ne=C.x1,ue=C.x2,fe=C.y1,me=C.y2,Pe=C.elSeries,Re=this.w,Xe=new ge(this.barCtx.ctx),qe=new Ue(this.barCtx.ctx).getActiveConfigSeriesIndex();if(this.barCtx.barOptions.colors.backgroundBarColors.length>0&&qe===F){L>=this.barCtx.barOptions.colors.backgroundBarColors.length&&(L%=this.barCtx.barOptions.colors.backgroundBarColors.length);var Ke=this.barCtx.barOptions.colors.backgroundBarColors[L],nt=Xe.drawRect(ne!==void 0?ne:0,fe!==void 0?fe:0,ue!==void 0?ue:Re.globals.gridWidth,me!==void 0?me:Re.globals.gridHeight,this.barCtx.barOptions.colors.backgroundBarRadius,Ke,this.barCtx.barOptions.colors.backgroundBarOpacity);Pe.add(nt),nt.node.classList.add("apexcharts-backgroundBar")}}},{key:"getColumnPaths",value:function(C){var L,F=C.barWidth,ne=C.barXPosition,ue=C.y1,fe=C.y2,me=C.strokeWidth,Pe=C.seriesGroup,Re=C.realIndex,Xe=C.i,qe=C.j,Ke=C.w,nt=new ge(this.barCtx.ctx);(me=Array.isArray(me)?me[Re]:me)||(me=0);var It=F,Tt=ne;(L=Ke.config.series[Re].data[qe])!==null&&L!==void 0&&L.columnWidthOffset&&(Tt=ne-Ke.config.series[Re].data[qe].columnWidthOffset/2,It=F+Ke.config.series[Re].data[qe].columnWidthOffset);var ni=Tt,fi=Tt+It;ue+=.001,fe+=.001;var gi=nt.move(ni,ue),je=nt.move(ni,ue),it=nt.line(fi-me,ue);if(Ke.globals.previousPaths.length>0&&(je=this.barCtx.getPreviousPath(Re,qe,!1)),gi=gi+nt.line(ni,fe)+nt.line(fi-me,fe)+nt.line(fi-me,ue)+(Ke.config.plotOptions.bar.borderRadiusApplication==="around"?" Z":" z"),je=je+nt.line(ni,ue)+it+it+it+it+it+nt.line(ni,ue)+(Ke.config.plotOptions.bar.borderRadiusApplication==="around"?" Z":" z"),this.shouldApplyRadius(Re)&&(gi=nt.roundPathCorners(gi,Ke.config.plotOptions.bar.borderRadius)),Ke.config.chart.stacked){var Ct=this.barCtx;Ke.globals.hasSeriesGroups&&Pe&&(Ct=this.barCtx[Pe]),Ct.yArrj.push(fe),Ct.yArrjF.push(Math.abs(ue-fe)),Ct.yArrjVal.push(this.barCtx.series[Xe][qe])}return{pathTo:gi,pathFrom:je}}},{key:"getBarpaths",value:function(C){var L,F=C.barYPosition,ne=C.barHeight,ue=C.x1,fe=C.x2,me=C.strokeWidth,Pe=C.seriesGroup,Re=C.realIndex,Xe=C.i,qe=C.j,Ke=C.w,nt=new ge(this.barCtx.ctx);(me=Array.isArray(me)?me[Re]:me)||(me=0);var It=F,Tt=ne;(L=Ke.config.series[Re].data[qe])!==null&&L!==void 0&&L.barHeightOffset&&(It=F-Ke.config.series[Re].data[qe].barHeightOffset/2,Tt=ne+Ke.config.series[Re].data[qe].barHeightOffset);var ni=It,fi=It+Tt;ue+=.001,fe+=.001;var gi=nt.move(ue,ni),je=nt.move(ue,ni);Ke.globals.previousPaths.length>0&&(je=this.barCtx.getPreviousPath(Re,qe,!1));var it=nt.line(ue,fi-me);if(gi=gi+nt.line(fe,ni)+nt.line(fe,fi-me)+it+(Ke.config.plotOptions.bar.borderRadiusApplication==="around"?" Z":" z"),je=je+nt.line(ue,ni)+it+it+it+it+it+nt.line(ue,ni)+(Ke.config.plotOptions.bar.borderRadiusApplication==="around"?" Z":" z"),this.shouldApplyRadius(Re)&&(gi=nt.roundPathCorners(gi,Ke.config.plotOptions.bar.borderRadius)),Ke.config.chart.stacked){var Ct=this.barCtx;Ke.globals.hasSeriesGroups&&Pe&&(Ct=this.barCtx[Pe]),Ct.xArrj.push(fe),Ct.xArrjF.push(Math.abs(ue-fe)),Ct.xArrjVal.push(this.barCtx.series[Xe][qe])}return{pathTo:gi,pathFrom:je}}},{key:"checkZeroSeries",value:function(C){for(var L=C.series,F=this.w,ne=0;ne<L.length;ne++){for(var ue=0,fe=0;fe<L[F.globals.maxValsInArrayIndex].length;fe++)ue+=L[ne][fe];ue===0&&this.barCtx.zeroSerieses.push(ne)}}},{key:"getXForValue",value:function(C,L){var F=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2]?L:null;return C!=null&&(F=L+C/this.barCtx.invertedYRatio-2*(this.barCtx.isReversed?C/this.barCtx.invertedYRatio:0)),F}},{key:"getYForValue",value:function(C,L){var F=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2]?L:null;return C!=null&&(F=L-C/this.barCtx.yRatio[this.barCtx.yaxisIndex]+2*(this.barCtx.isReversed?C/this.barCtx.yRatio[this.barCtx.yaxisIndex]:0)),F}},{key:"getGoalValues",value:function(C,L,F,ne,ue){var fe=this,me=this.w,Pe=[],Re=function(Ke,nt){var It;Pe.push((S(It={},C,C==="x"?fe.getXForValue(Ke,L,!1):fe.getYForValue(Ke,F,!1)),S(It,"attrs",nt),It))};if(me.globals.seriesGoals[ne]&&me.globals.seriesGoals[ne][ue]&&Array.isArray(me.globals.seriesGoals[ne][ue])&&me.globals.seriesGoals[ne][ue].forEach(function(Ke){Re(Ke.value,Ke)}),this.barCtx.barOptions.isDumbbell&&me.globals.seriesRange.length){var Xe=this.barCtx.barOptions.dumbbellColors?this.barCtx.barOptions.dumbbellColors:me.globals.colors,qe={strokeHeight:C==="x"?0:me.globals.markers.size[ne],strokeWidth:C==="x"?me.globals.markers.size[ne]:0,strokeDashArray:0,strokeLineCap:"round",strokeColor:Array.isArray(Xe[ne])?Xe[ne][0]:Xe[ne]};Re(me.globals.seriesRangeStart[ne][ue],qe),Re(me.globals.seriesRangeEnd[ne][ue],_(_({},qe),{},{strokeColor:Array.isArray(Xe[ne])?Xe[ne][1]:Xe[ne]}))}return Pe}},{key:"drawGoalLine",value:function(C){var L=C.barXPosition,F=C.barYPosition,ne=C.goalX,ue=C.goalY,fe=C.barWidth,me=C.barHeight,Pe=new ge(this.barCtx.ctx),Re=Pe.group({className:"apexcharts-bar-goals-groups"});Re.node.classList.add("apexcharts-element-hidden"),this.barCtx.w.globals.delayedElements.push({el:Re.node}),Re.attr("clip-path","url(#gridRectMarkerMask".concat(this.barCtx.w.globals.cuid,")"));var Xe=null;return this.barCtx.isHorizontal?Array.isArray(ne)&&ne.forEach(function(qe){var Ke=qe.attrs.strokeHeight!==void 0?qe.attrs.strokeHeight:me/2,nt=F+Ke+me/2;Xe=Pe.drawLine(qe.x,nt-2*Ke,qe.x,nt,qe.attrs.strokeColor?qe.attrs.strokeColor:void 0,qe.attrs.strokeDashArray,qe.attrs.strokeWidth?qe.attrs.strokeWidth:2,qe.attrs.strokeLineCap),Re.add(Xe)}):Array.isArray(ue)&&ue.forEach(function(qe){var Ke=qe.attrs.strokeWidth!==void 0?qe.attrs.strokeWidth:fe/2,nt=L+Ke+fe/2;Xe=Pe.drawLine(nt-2*Ke,qe.y,nt,qe.y,qe.attrs.strokeColor?qe.attrs.strokeColor:void 0,qe.attrs.strokeDashArray,qe.attrs.strokeHeight?qe.attrs.strokeHeight:2,qe.attrs.strokeLineCap),Re.add(Xe)}),Re}},{key:"drawBarShadow",value:function(C){var L=C.prevPaths,F=C.currPaths,ne=C.color,ue=this.w,fe=L.x,me=L.x1,Pe=L.barYPosition,Re=F.x,Xe=F.x1,qe=F.barYPosition,Ke=Pe+F.barHeight,nt=new ge(this.barCtx.ctx),It=new Y,Tt=nt.move(me,Ke)+nt.line(fe,Ke)+nt.line(Re,qe)+nt.line(Xe,qe)+nt.line(me,Ke)+(ue.config.plotOptions.bar.borderRadiusApplication==="around"?" Z":" z");return nt.drawPath({d:Tt,fill:It.shadeColor(.5,Y.rgb2hex(ne)),stroke:"none",strokeWidth:0,fillOpacity:1,classes:"apexcharts-bar-shadows"})}},{key:"getZeroValueEncounters",value:function(C){var L=C.i,F=C.j,ne=this.w,ue=0,fe=0;return ne.globals.seriesPercent.forEach(function(me,Pe){me[F]&&ue++,Pe<L&&me[F]===0&&fe++}),{nonZeroColumns:ue,zeroEncounters:fe}}}]),ai}(),yM=function(){function ai(C,L){I(this,ai),this.ctx=C,this.w=C.w;var F=this.w;this.barOptions=F.config.plotOptions.bar,this.isHorizontal=this.barOptions.horizontal,this.strokeWidth=F.config.stroke.width,this.isNullValue=!1,this.isRangeBar=F.globals.seriesRange.length&&this.isHorizontal,this.isVerticalGroupedRangeBar=!F.globals.isBarHorizontal&&F.globals.seriesRange.length&&F.config.plotOptions.bar.rangeBarGroupRows,this.isFunnel=this.barOptions.isFunnel,this.xyRatios=L,this.xyRatios!==null&&(this.xRatio=L.xRatio,this.yRatio=L.yRatio,this.invertedXRatio=L.invertedXRatio,this.invertedYRatio=L.invertedYRatio,this.baseLineY=L.baseLineY,this.baseLineInvertedY=L.baseLineInvertedY),this.yaxisIndex=0,this.seriesLen=0,this.pathArr=[];var ne=new Ue(this.ctx);this.lastActiveBarSerieIndex=ne.getActiveConfigSeriesIndex("desc",["bar","column"]);var ue=ne.getBarSeriesIndices(),fe=new be(this.ctx);this.stackedSeriesTotals=fe.getStackedSeriesTotals(this.w.config.series.map(function(me,Pe){return ue.indexOf(Pe)===-1?Pe:-1}).filter(function(me){return me!==-1})),this.barHelpers=new pM(this)}return M(ai,[{key:"draw",value:function(C,L){var F=this.w,ne=new ge(this.ctx),ue=new be(this.ctx,F);C=ue.getLogSeries(C),this.series=C,this.yRatio=ue.getLogYRatios(this.yRatio),this.barHelpers.initVariables(C);var fe=ne.group({class:"apexcharts-bar-series apexcharts-plot-series"});F.config.dataLabels.enabled&&this.totalItems>this.barOptions.dataLabels.maxItems&&console.warn("WARNING: DataLabels are enabled but there are too many to display. This may cause performance issue when rendering - ApexCharts");for(var me=0,Pe=0;me<C.length;me++,Pe++){var Re,Xe,qe,Ke,nt=void 0,It=void 0,Tt=[],ni=[],fi=F.globals.comboCharts?L[me]:me,gi=ne.group({class:"apexcharts-series",rel:me+1,seriesName:Y.escapeString(F.globals.seriesNames[fi]),"data:realIndex":fi});this.ctx.series.addCollapsedClassToSeries(gi,fi),C[me].length>0&&(this.visibleI=this.visibleI+1);var je=0,it=0;this.yRatio.length>1&&(this.yaxisIndex=fi),this.isReversed=F.config.yaxis[this.yaxisIndex]&&F.config.yaxis[this.yaxisIndex].reversed;var Ct=this.barHelpers.initialPositions();It=Ct.y,je=Ct.barHeight,Xe=Ct.yDivision,Ke=Ct.zeroW,nt=Ct.x,it=Ct.barWidth,Re=Ct.xDivision,qe=Ct.zeroH,this.horizontal||ni.push(nt+it/2);var si=ne.group({class:"apexcharts-datalabels","data:realIndex":fi});F.globals.delayedElements.push({el:si.node}),si.node.classList.add("apexcharts-element-hidden");var di=ne.group({class:"apexcharts-bar-goals-markers"}),yi=ne.group({class:"apexcharts-bar-shadows"});F.globals.delayedElements.push({el:yi.node}),yi.node.classList.add("apexcharts-element-hidden");for(var nM=0;nM<F.globals.dataPoints;nM++){var iM=this.barHelpers.getStrokeWidth(me,nM,fi),mM=null,EM={indexes:{i:me,j:nM,realIndex:fi,bc:Pe},x:nt,y:It,strokeWidth:iM,elSeries:gi};this.isHorizontal?(mM=this.drawBarPaths(_(_({},EM),{},{barHeight:je,zeroW:Ke,yDivision:Xe})),it=this.series[me][nM]/this.invertedYRatio):(mM=this.drawColumnPaths(_(_({},EM),{},{xDivision:Re,barWidth:it,zeroH:qe})),je=this.series[me][nM]/this.yRatio[this.yaxisIndex]);var wM=this.barHelpers.getPathFillColor(C,me,nM,fi);if(this.isFunnel&&this.barOptions.isFunnel3d&&this.pathArr.length&&nM>0){var GM=this.barHelpers.drawBarShadow({color:typeof wM=="string"&&wM?.indexOf("url")===-1?wM:Y.hexToRgba(F.globals.colors[me]),prevPaths:this.pathArr[this.pathArr.length-1],currPaths:mM});GM&&yi.add(GM)}this.pathArr.push(mM);var qM=this.barHelpers.drawGoalLine({barXPosition:mM.barXPosition,barYPosition:mM.barYPosition,goalX:mM.goalX,goalY:mM.goalY,barHeight:je,barWidth:it});qM&&di.add(qM),It=mM.y,nt=mM.x,nM>0&&ni.push(nt+it/2),Tt.push(It),this.renderSeries({realIndex:fi,pathFill:wM,j:nM,i:me,pathFrom:mM.pathFrom,pathTo:mM.pathTo,strokeWidth:iM,elSeries:gi,x:nt,y:It,series:C,barHeight:mM.barHeight?mM.barHeight:je,barWidth:mM.barWidth?mM.barWidth:it,elDataLabelsWrap:si,elGoalsMarkers:di,elBarShadows:yi,visibleSeries:this.visibleI,type:"bar"})}F.globals.seriesXvalues[fi]=ni,F.globals.seriesYvalues[fi]=Tt,fe.add(gi)}return fe}},{key:"renderSeries",value:function(C){var L=C.realIndex,F=C.pathFill,ne=C.lineFill,ue=C.j,fe=C.i,me=C.groupIndex,Pe=C.pathFrom,Re=C.pathTo,Xe=C.strokeWidth,qe=C.elSeries,Ke=C.x,nt=C.y,It=C.y1,Tt=C.y2,ni=C.series,fi=C.barHeight,gi=C.barWidth,je=C.barXPosition,it=C.barYPosition,Ct=C.elDataLabelsWrap,si=C.elGoalsMarkers,di=C.elBarShadows,yi=C.visibleSeries,nM=C.type,iM=this.w,mM=new ge(this.ctx);ne||(ne=this.barOptions.distributed?iM.globals.stroke.colors[ue]:iM.globals.stroke.colors[L]),iM.config.series[fe].data[ue]&&iM.config.series[fe].data[ue].strokeColor&&(ne=iM.config.series[fe].data[ue].strokeColor),this.isNullValue&&(F="none");var EM=ue/iM.config.chart.animations.animateGradually.delay*(iM.config.chart.animations.speed/iM.globals.dataPoints)/2.4,wM=mM.renderPaths({i:fe,j:ue,realIndex:L,pathFrom:Pe,pathTo:Re,stroke:ne,strokeWidth:Xe,strokeLineCap:iM.config.stroke.lineCap,fill:F,animationDelay:EM,initialSpeed:iM.config.chart.animations.speed,dataChangeSpeed:iM.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(nM,"-area")});wM.attr("clip-path","url(#gridRectMask".concat(iM.globals.cuid,")"));var GM=iM.config.forecastDataPoints;GM.count>0&&ue>=iM.globals.dataPoints-GM.count&&(wM.node.setAttribute("stroke-dasharray",GM.dashArray),wM.node.setAttribute("stroke-width",GM.strokeWidth),wM.node.setAttribute("fill-opacity",GM.fillOpacity)),It!==void 0&&Tt!==void 0&&(wM.attr("data-range-y1",It),wM.attr("data-range-y2",Tt)),new oe(this.ctx).setSelectionFilter(wM,L,ue),qe.add(wM);var qM=new uM(this).handleBarDataLabels({x:Ke,y:nt,y1:It,y2:Tt,i:fe,j:ue,series:ni,realIndex:L,groupIndex:me,barHeight:fi,barWidth:gi,barXPosition:je,barYPosition:it,renderedPath:wM,visibleSeries:yi});return qM.dataLabels!==null&&Ct.add(qM.dataLabels),qM.totalDataLabels&&Ct.add(qM.totalDataLabels),qe.add(Ct),si&&qe.add(si),di&&qe.add(di),qe}},{key:"drawBarPaths",value:function(C){var L,F=C.indexes,ne=C.barHeight,ue=C.strokeWidth,fe=C.zeroW,me=C.x,Pe=C.y,Re=C.yDivision,Xe=C.elSeries,qe=this.w,Ke=F.i,nt=F.j;if(qe.globals.isXNumeric)L=(Pe=(qe.globals.seriesX[Ke][nt]-qe.globals.minX)/this.invertedXRatio-ne)+ne*this.visibleI;else if(qe.config.plotOptions.bar.hideZeroBarsWhenGrouped){var It=0,Tt=0;qe.globals.seriesPercent.forEach(function(fi,gi){fi[nt]&&It++,gi<Ke&&fi[nt]===0&&Tt++}),It>0&&(ne=this.seriesLen*ne/It),L=Pe+ne*this.visibleI,L-=ne*Tt}else L=Pe+ne*this.visibleI;this.isFunnel&&(fe-=(this.barHelpers.getXForValue(this.series[Ke][nt],fe)-fe)/2),me=this.barHelpers.getXForValue(this.series[Ke][nt],fe);var ni=this.barHelpers.getBarpaths({barYPosition:L,barHeight:ne,x1:fe,x2:me,strokeWidth:ue,series:this.series,realIndex:F.realIndex,i:Ke,j:nt,w:qe});return qe.globals.isXNumeric||(Pe+=Re),this.barHelpers.barBackground({j:nt,i:Ke,y1:L-ne*this.visibleI,y2:ne*this.seriesLen,elSeries:Xe}),{pathTo:ni.pathTo,pathFrom:ni.pathFrom,x1:fe,x:me,y:Pe,goalX:this.barHelpers.getGoalValues("x",fe,null,Ke,nt),barYPosition:L,barHeight:ne}}},{key:"drawColumnPaths",value:function(C){var L,F=C.indexes,ne=C.x,ue=C.y,fe=C.xDivision,me=C.barWidth,Pe=C.zeroH,Re=C.strokeWidth,Xe=C.elSeries,qe=this.w,Ke=F.realIndex,nt=F.i,It=F.j,Tt=F.bc;if(qe.globals.isXNumeric){var ni=this.getBarXForNumericXAxis({x:ne,j:It,realIndex:Ke,barWidth:me});ne=ni.x,L=ni.barXPosition}else if(qe.config.plotOptions.bar.hideZeroBarsWhenGrouped){var fi=this.barHelpers.getZeroValueEncounters({i:nt,j:It}),gi=fi.nonZeroColumns,je=fi.zeroEncounters;gi>0&&(me=this.seriesLen*me/gi),L=ne+me*this.visibleI,L-=me*je}else L=ne+me*this.visibleI;ue=this.barHelpers.getYForValue(this.series[nt][It],Pe);var it=this.barHelpers.getColumnPaths({barXPosition:L,barWidth:me,y1:Pe,y2:ue,strokeWidth:Re,series:this.series,realIndex:F.realIndex,i:nt,j:It,w:qe});return qe.globals.isXNumeric||(ne+=fe),this.barHelpers.barBackground({bc:Tt,j:It,i:nt,x1:L-Re/2-me*this.visibleI,x2:me*this.seriesLen+Re/2,elSeries:Xe}),{pathTo:it.pathTo,pathFrom:it.pathFrom,x:ne,y:ue,goalY:this.barHelpers.getGoalValues("y",null,Pe,nt,It),barXPosition:L,barWidth:me}}},{key:"getBarXForNumericXAxis",value:function(C){var L=C.x,F=C.barWidth,ne=C.realIndex,ue=C.j,fe=this.w,me=ne;return fe.globals.seriesX[ne].length||(me=fe.globals.maxValsInArrayIndex),fe.globals.seriesX[me][ue]&&(L=(fe.globals.seriesX[me][ue]-fe.globals.minX)/this.xRatio-F*this.seriesLen/2),{barXPosition:L+F*this.visibleI,x:L}}},{key:"getPreviousPath",value:function(C,L){for(var F,ne=this.w,ue=0;ue<ne.globals.previousPaths.length;ue++){var fe=ne.globals.previousPaths[ue];fe.paths&&fe.paths.length>0&&parseInt(fe.realIndex,10)===parseInt(C,10)&&ne.globals.previousPaths[ue].paths[L]!==void 0&&(F=ne.globals.previousPaths[ue].paths[L].d)}return F}}]),ai}(),gM=function(ai){A(L,yM);var C=j(L);function L(){return I(this,L),C.apply(this,arguments)}return M(L,[{key:"draw",value:function(F,ne){var ue=this,fe=this.w;this.graphics=new ge(this.ctx),this.bar=new yM(this.ctx,this.xyRatios);var me=new be(this.ctx,fe);F=me.getLogSeries(F),this.yRatio=me.getLogYRatios(this.yRatio),this.barHelpers.initVariables(F),fe.config.chart.stackType==="100%"&&(F=fe.globals.seriesPercent.slice()),this.series=F,this.barHelpers.initializeStackedPrevVars(this);for(var Pe=this.graphics.group({class:"apexcharts-bar-series apexcharts-plot-series"}),Re=0,Xe=0,qe=function(It,Tt){var ni=void 0,fi=void 0,gi=void 0,je=void 0,it=-1;ue.groupCtx=ue,fe.globals.seriesGroups.forEach(function(KT,nN){KT.indexOf(fe.config.series[It].name)>-1&&(it=nN)}),it!==-1&&(ue.groupCtx=ue[fe.globals.seriesGroups[it]]);var Ct=[],si=[],di=fe.globals.comboCharts?ne[It]:It;ue.yRatio.length>1&&(ue.yaxisIndex=di),ue.isReversed=fe.config.yaxis[ue.yaxisIndex]&&fe.config.yaxis[ue.yaxisIndex].reversed;var yi=ue.graphics.group({class:"apexcharts-series",seriesName:Y.escapeString(fe.globals.seriesNames[di]),rel:It+1,"data:realIndex":di});ue.ctx.series.addCollapsedClassToSeries(yi,di);var nM=ue.graphics.group({class:"apexcharts-datalabels","data:realIndex":di}),iM=ue.graphics.group({class:"apexcharts-bar-goals-markers"}),mM=0,EM=0,wM=ue.initialPositions(Re,Xe,ni,fi,gi,je);Xe=wM.y,mM=wM.barHeight,fi=wM.yDivision,je=wM.zeroW,Re=wM.x,EM=wM.barWidth,ni=wM.xDivision,gi=wM.zeroH,fe.globals.barHeight=mM,fe.globals.barWidth=EM,ue.barHelpers.initializeStackedXYVars(ue),ue.groupCtx.prevY.length===1&&ue.groupCtx.prevY[0].every(function(KT){return isNaN(KT)})&&(ue.groupCtx.prevY[0]=ue.groupCtx.prevY[0].map(function(KT){return gi}),ue.groupCtx.prevYF[0]=ue.groupCtx.prevYF[0].map(function(KT){return 0}));for(var GM=0;GM<fe.globals.dataPoints;GM++){var qM=ue.barHelpers.getStrokeWidth(It,GM,di),JM={indexes:{i:It,j:GM,realIndex:di,bc:Tt},strokeWidth:qM,x:Re,y:Xe,elSeries:yi,groupIndex:it,seriesGroup:fe.globals.seriesGroups[it]},zT=null;ue.isHorizontal?(zT=ue.drawStackedBarPaths(_(_({},JM),{},{zeroW:je,barHeight:mM,yDivision:fi})),EM=ue.series[It][GM]/ue.invertedYRatio):(zT=ue.drawStackedColumnPaths(_(_({},JM),{},{xDivision:ni,barWidth:EM,zeroH:gi})),mM=ue.series[It][GM]/ue.yRatio[ue.yaxisIndex]);var WT=ue.barHelpers.drawGoalLine({barXPosition:zT.barXPosition,barYPosition:zT.barYPosition,goalX:zT.goalX,goalY:zT.goalY,barHeight:mM,barWidth:EM});WT&&iM.add(WT),Xe=zT.y,Re=zT.x,Ct.push(Re),si.push(Xe);var FT=ue.barHelpers.getPathFillColor(F,It,GM,di);yi=ue.renderSeries({realIndex:di,pathFill:FT,j:GM,i:It,groupIndex:it,pathFrom:zT.pathFrom,pathTo:zT.pathTo,strokeWidth:qM,elSeries:yi,x:Re,y:Xe,series:F,barHeight:mM,barWidth:EM,elDataLabelsWrap:nM,elGoalsMarkers:iM,type:"bar",visibleSeries:0})}fe.globals.seriesXvalues[di]=Ct,fe.globals.seriesYvalues[di]=si,ue.groupCtx.prevY.push(ue.groupCtx.yArrj),ue.groupCtx.prevYF.push(ue.groupCtx.yArrjF),ue.groupCtx.prevYVal.push(ue.groupCtx.yArrjVal),ue.groupCtx.prevX.push(ue.groupCtx.xArrj),ue.groupCtx.prevXF.push(ue.groupCtx.xArrjF),ue.groupCtx.prevXVal.push(ue.groupCtx.xArrjVal),Pe.add(yi)},Ke=0,nt=0;Ke<F.length;Ke++,nt++)qe(Ke,nt);return Pe}},{key:"initialPositions",value:function(F,ne,ue,fe,me,Pe){var Re,Xe,qe,Ke,nt=this.w;return this.isHorizontal?(qe=(qe=fe=nt.globals.gridHeight/nt.globals.dataPoints)*parseInt(nt.config.plotOptions.bar.barHeight,10)/100,String(nt.config.plotOptions.bar.barHeight).indexOf("%")===-1&&(qe=parseInt(nt.config.plotOptions.bar.barHeight,10)),Pe=this.baseLineInvertedY+nt.globals.padHorizontal+(this.isReversed?nt.globals.gridWidth:0)-(this.isReversed?2*this.baseLineInvertedY:0),ne=(fe-qe)/2):(Ke=ue=nt.globals.gridWidth/nt.globals.dataPoints,Ke=nt.globals.isXNumeric&&nt.globals.dataPoints>1?(ue=nt.globals.minXDiff/this.xRatio)*parseInt(this.barOptions.columnWidth,10)/100:Ke*parseInt(nt.config.plotOptions.bar.columnWidth,10)/100,String(nt.config.plotOptions.bar.columnWidth).indexOf("%")===-1&&(Ke=parseInt(nt.config.plotOptions.bar.columnWidth,10)),me=nt.globals.gridHeight-this.baseLineY[this.yaxisIndex]-(this.isReversed?nt.globals.gridHeight:0)+(this.isReversed?2*this.baseLineY[this.yaxisIndex]:0),F=nt.globals.padHorizontal+(ue-Ke)/2),{x:F,y:ne,yDivision:fe,xDivision:ue,barHeight:(Re=nt.globals.seriesGroups)!==null&&Re!==void 0&&Re.length?qe/nt.globals.seriesGroups.length:qe,barWidth:(Xe=nt.globals.seriesGroups)!==null&&Xe!==void 0&&Xe.length?Ke/nt.globals.seriesGroups.length:Ke,zeroH:me,zeroW:Pe}}},{key:"drawStackedBarPaths",value:function(F){for(var ne,ue=F.indexes,fe=F.barHeight,me=F.strokeWidth,Pe=F.zeroW,Re=F.x,Xe=F.y,qe=F.groupIndex,Ke=F.seriesGroup,nt=F.yDivision,It=F.elSeries,Tt=this.w,ni=Xe+(qe!==-1?qe*fe:0),fi=ue.i,gi=ue.j,je=0,it=0;it<this.groupCtx.prevXF.length;it++)je+=this.groupCtx.prevXF[it][gi];var Ct=fi;if(Ke&&(Ct=Ke.indexOf(Tt.config.series[fi].name)),Ct>0){var si=Pe;this.groupCtx.prevXVal[Ct-1][gi]<0?si=this.series[fi][gi]>=0?this.groupCtx.prevX[Ct-1][gi]+je-2*(this.isReversed?je:0):this.groupCtx.prevX[Ct-1][gi]:this.groupCtx.prevXVal[Ct-1][gi]>=0&&(si=this.series[fi][gi]>=0?this.groupCtx.prevX[Ct-1][gi]:this.groupCtx.prevX[Ct-1][gi]-je+2*(this.isReversed?je:0)),ne=si}else ne=Pe;Re=this.series[fi][gi]===null?ne:ne+this.series[fi][gi]/this.invertedYRatio-2*(this.isReversed?this.series[fi][gi]/this.invertedYRatio:0);var di=this.barHelpers.getBarpaths({barYPosition:ni,barHeight:fe,x1:ne,x2:Re,strokeWidth:me,series:this.series,realIndex:ue.realIndex,seriesGroup:Ke,i:fi,j:gi,w:Tt});return this.barHelpers.barBackground({j:gi,i:fi,y1:ni,y2:fe,elSeries:It}),Xe+=nt,{pathTo:di.pathTo,pathFrom:di.pathFrom,goalX:this.barHelpers.getGoalValues("x",Pe,null,fi,gi),barYPosition:ni,x:Re,y:Xe}}},{key:"drawStackedColumnPaths",value:function(F){var ne=F.indexes,ue=F.x,fe=F.y,me=F.xDivision,Pe=F.barWidth,Re=F.zeroH,Xe=F.groupIndex,qe=F.seriesGroup,Ke=F.elSeries,nt=this.w,It=ne.i,Tt=ne.j,ni=ne.bc;if(nt.globals.isXNumeric){var fi=nt.globals.seriesX[It][Tt];fi||(fi=0),ue=(fi-nt.globals.minX)/this.xRatio-Pe/2,nt.globals.seriesGroups.length&&(ue=(fi-nt.globals.minX)/this.xRatio-Pe/2*nt.globals.seriesGroups.length)}for(var gi,je=ue+(Xe!==-1?Xe*Pe:0),it=0,Ct=0;Ct<this.groupCtx.prevYF.length;Ct++)it+=isNaN(this.groupCtx.prevYF[Ct][Tt])?0:this.groupCtx.prevYF[Ct][Tt];var si=It;if(qe&&(si=qe.indexOf(nt.config.series[It].name)),si>0&&!nt.globals.isXNumeric||si>0&&nt.globals.isXNumeric&&nt.globals.seriesX[It-1][Tt]===nt.globals.seriesX[It][Tt]){var di,yi,nM,iM=Math.min(this.yRatio.length+1,It+1);if(this.groupCtx.prevY[si-1]!==void 0&&this.groupCtx.prevY[si-1].length)for(var mM=1;mM<iM;mM++){var EM;if(!isNaN((EM=this.groupCtx.prevY[si-mM])===null||EM===void 0?void 0:EM[Tt])){nM=this.groupCtx.prevY[si-mM][Tt];break}}for(var wM=1;wM<iM;wM++){var GM,qM;if(((GM=this.groupCtx.prevYVal[si-wM])===null||GM===void 0?void 0:GM[Tt])<0){yi=this.series[It][Tt]>=0?nM-it+2*(this.isReversed?it:0):nM;break}if(((qM=this.groupCtx.prevYVal[si-wM])===null||qM===void 0?void 0:qM[Tt])>=0){yi=this.series[It][Tt]>=0?nM:nM+it-2*(this.isReversed?it:0);break}}yi===void 0&&(yi=nt.globals.gridHeight),gi=(di=this.groupCtx.prevYF[0])!==null&&di!==void 0&&di.every(function(zT){return zT===0})&&this.groupCtx.prevYF.slice(1,si).every(function(zT){return zT.every(function(WT){return isNaN(WT)})})?Re:yi}else gi=Re;fe=this.series[It][Tt]?gi-this.series[It][Tt]/this.yRatio[this.yaxisIndex]+2*(this.isReversed?this.series[It][Tt]/this.yRatio[this.yaxisIndex]:0):gi;var JM=this.barHelpers.getColumnPaths({barXPosition:je,barWidth:Pe,y1:gi,y2:fe,yRatio:this.yRatio[this.yaxisIndex],strokeWidth:this.strokeWidth,series:this.series,seriesGroup:qe,realIndex:ne.realIndex,i:It,j:Tt,w:nt});return this.barHelpers.barBackground({bc:ni,j:Tt,i:It,x1:je,x2:Pe,elSeries:Ke}),ue+=me,{pathTo:JM.pathTo,pathFrom:JM.pathFrom,goalY:this.barHelpers.getGoalValues("y",null,Re,It,Tt),barXPosition:je,x:nt.globals.isXNumeric?ue-me:ue,y:fe}}}]),L}(),fM=function(ai){A(L,yM);var C=j(L);function L(){return I(this,L),C.apply(this,arguments)}return M(L,[{key:"draw",value:function(F,ne,ue){var fe=this,me=this.w,Pe=new ge(this.ctx),Re=me.globals.comboCharts?ne:me.config.chart.type,Xe=new Z(this.ctx);this.candlestickOptions=this.w.config.plotOptions.candlestick,this.boxOptions=this.w.config.plotOptions.boxPlot,this.isHorizontal=me.config.plotOptions.bar.horizontal;var qe=new be(this.ctx,me);F=qe.getLogSeries(F),this.series=F,this.yRatio=qe.getLogYRatios(this.yRatio),this.barHelpers.initVariables(F);for(var Ke=Pe.group({class:"apexcharts-".concat(Re,"-series apexcharts-plot-series")}),nt=function(Tt){fe.isBoxPlot=me.config.chart.type==="boxPlot"||me.config.series[Tt].type==="boxPlot";var ni,fi,gi,je,it=void 0,Ct=void 0,si=[],di=[],yi=me.globals.comboCharts?ue[Tt]:Tt,nM=Pe.group({class:"apexcharts-series",seriesName:Y.escapeString(me.globals.seriesNames[yi]),rel:Tt+1,"data:realIndex":yi});fe.ctx.series.addCollapsedClassToSeries(nM,yi),F[Tt].length>0&&(fe.visibleI=fe.visibleI+1);var iM,mM;fe.yRatio.length>1&&(fe.yaxisIndex=yi);var EM=fe.barHelpers.initialPositions();Ct=EM.y,iM=EM.barHeight,fi=EM.yDivision,je=EM.zeroW,it=EM.x,mM=EM.barWidth,ni=EM.xDivision,gi=EM.zeroH,di.push(it+mM/2);for(var wM=Pe.group({class:"apexcharts-datalabels","data:realIndex":yi}),GM=function(JM){var zT=fe.barHelpers.getStrokeWidth(Tt,JM,yi),WT=null,FT={indexes:{i:Tt,j:JM,realIndex:yi},x:it,y:Ct,strokeWidth:zT,elSeries:nM};WT=fe.isHorizontal?fe.drawHorizontalBoxPaths(_(_({},FT),{},{yDivision:fi,barHeight:iM,zeroW:je})):fe.drawVerticalBoxPaths(_(_({},FT),{},{xDivision:ni,barWidth:mM,zeroH:gi})),Ct=WT.y,it=WT.x,JM>0&&di.push(it+mM/2),si.push(Ct),WT.pathTo.forEach(function(KT,nN){var SN=!fe.isBoxPlot&&fe.candlestickOptions.wick.useFillColor?WT.color[nN]:me.globals.stroke.colors[Tt],_N=Xe.fillPath({seriesNumber:yi,dataPointIndex:JM,color:WT.color[nN],value:F[Tt][JM]});fe.renderSeries({realIndex:yi,pathFill:_N,lineFill:SN,j:JM,i:Tt,pathFrom:WT.pathFrom,pathTo:KT,strokeWidth:zT,elSeries:nM,x:it,y:Ct,series:F,barHeight:iM,barWidth:mM,elDataLabelsWrap:wM,visibleSeries:fe.visibleI,type:me.config.chart.type})})},qM=0;qM<me.globals.dataPoints;qM++)GM(qM);me.globals.seriesXvalues[yi]=di,me.globals.seriesYvalues[yi]=si,Ke.add(nM)},It=0;It<F.length;It++)nt(It);return Ke}},{key:"drawVerticalBoxPaths",value:function(F){var ne=F.indexes,ue=F.x;F.y;var fe=F.xDivision,me=F.barWidth,Pe=F.zeroH,Re=F.strokeWidth,Xe=this.w,qe=new ge(this.ctx),Ke=ne.i,nt=ne.j,It=!0,Tt=Xe.config.plotOptions.candlestick.colors.upward,ni=Xe.config.plotOptions.candlestick.colors.downward,fi="";this.isBoxPlot&&(fi=[this.boxOptions.colors.lower,this.boxOptions.colors.upper]);var gi=this.yRatio[this.yaxisIndex],je=ne.realIndex,it=this.getOHLCValue(je,nt),Ct=Pe,si=Pe;it.o>it.c&&(It=!1);var di=Math.min(it.o,it.c),yi=Math.max(it.o,it.c),nM=it.m;Xe.globals.isXNumeric&&(ue=(Xe.globals.seriesX[je][nt]-Xe.globals.minX)/this.xRatio-me/2);var iM=ue+me*this.visibleI;this.series[Ke][nt]===void 0||this.series[Ke][nt]===null?(di=Pe,yi=Pe):(di=Pe-di/gi,yi=Pe-yi/gi,Ct=Pe-it.h/gi,si=Pe-it.l/gi,nM=Pe-it.m/gi);var mM=qe.move(iM,Pe),EM=qe.move(iM+me/2,di);return Xe.globals.previousPaths.length>0&&(EM=this.getPreviousPath(je,nt,!0)),mM=this.isBoxPlot?[qe.move(iM,di)+qe.line(iM+me/2,di)+qe.line(iM+me/2,Ct)+qe.line(iM+me/4,Ct)+qe.line(iM+me-me/4,Ct)+qe.line(iM+me/2,Ct)+qe.line(iM+me/2,di)+qe.line(iM+me,di)+qe.line(iM+me,nM)+qe.line(iM,nM)+qe.line(iM,di+Re/2),qe.move(iM,nM)+qe.line(iM+me,nM)+qe.line(iM+me,yi)+qe.line(iM+me/2,yi)+qe.line(iM+me/2,si)+qe.line(iM+me-me/4,si)+qe.line(iM+me/4,si)+qe.line(iM+me/2,si)+qe.line(iM+me/2,yi)+qe.line(iM,yi)+qe.line(iM,nM)+"z"]:[qe.move(iM,yi)+qe.line(iM+me/2,yi)+qe.line(iM+me/2,Ct)+qe.line(iM+me/2,yi)+qe.line(iM+me,yi)+qe.line(iM+me,di)+qe.line(iM+me/2,di)+qe.line(iM+me/2,si)+qe.line(iM+me/2,di)+qe.line(iM,di)+qe.line(iM,yi-Re/2)],EM+=qe.move(iM,di),Xe.globals.isXNumeric||(ue+=fe),{pathTo:mM,pathFrom:EM,x:ue,y:yi,barXPosition:iM,color:this.isBoxPlot?fi:It?[Tt]:[ni]}}},{key:"drawHorizontalBoxPaths",value:function(F){var ne=F.indexes;F.x;var ue=F.y,fe=F.yDivision,me=F.barHeight,Pe=F.zeroW,Re=F.strokeWidth,Xe=this.w,qe=new ge(this.ctx),Ke=ne.i,nt=ne.j,It=this.boxOptions.colors.lower;this.isBoxPlot&&(It=[this.boxOptions.colors.lower,this.boxOptions.colors.upper]);var Tt=this.invertedYRatio,ni=ne.realIndex,fi=this.getOHLCValue(ni,nt),gi=Pe,je=Pe,it=Math.min(fi.o,fi.c),Ct=Math.max(fi.o,fi.c),si=fi.m;Xe.globals.isXNumeric&&(ue=(Xe.globals.seriesX[ni][nt]-Xe.globals.minX)/this.invertedXRatio-me/2);var di=ue+me*this.visibleI;this.series[Ke][nt]===void 0||this.series[Ke][nt]===null?(it=Pe,Ct=Pe):(it=Pe+it/Tt,Ct=Pe+Ct/Tt,gi=Pe+fi.h/Tt,je=Pe+fi.l/Tt,si=Pe+fi.m/Tt);var yi=qe.move(Pe,di),nM=qe.move(it,di+me/2);return Xe.globals.previousPaths.length>0&&(nM=this.getPreviousPath(ni,nt,!0)),yi=[qe.move(it,di)+qe.line(it,di+me/2)+qe.line(gi,di+me/2)+qe.line(gi,di+me/2-me/4)+qe.line(gi,di+me/2+me/4)+qe.line(gi,di+me/2)+qe.line(it,di+me/2)+qe.line(it,di+me)+qe.line(si,di+me)+qe.line(si,di)+qe.line(it+Re/2,di),qe.move(si,di)+qe.line(si,di+me)+qe.line(Ct,di+me)+qe.line(Ct,di+me/2)+qe.line(je,di+me/2)+qe.line(je,di+me-me/4)+qe.line(je,di+me/4)+qe.line(je,di+me/2)+qe.line(Ct,di+me/2)+qe.line(Ct,di)+qe.line(si,di)+"z"],nM+=qe.move(it,di),Xe.globals.isXNumeric||(ue+=fe),{pathTo:yi,pathFrom:nM,x:Ct,y:ue,barYPosition:di,color:It}}},{key:"getOHLCValue",value:function(F,ne){var ue=this.w;return{o:this.isBoxPlot?ue.globals.seriesCandleH[F][ne]:ue.globals.seriesCandleO[F][ne],h:this.isBoxPlot?ue.globals.seriesCandleO[F][ne]:ue.globals.seriesCandleH[F][ne],m:ue.globals.seriesCandleM[F][ne],l:this.isBoxPlot?ue.globals.seriesCandleC[F][ne]:ue.globals.seriesCandleL[F][ne],c:this.isBoxPlot?ue.globals.seriesCandleL[F][ne]:ue.globals.seriesCandleC[F][ne]}}}]),L}(),kM=function(){function ai(C){I(this,ai),this.ctx=C,this.w=C.w}return M(ai,[{key:"checkColorRange",value:function(){var C=this.w,L=!1,F=C.config.plotOptions[C.config.chart.type];return F.colorScale.ranges.length>0&&F.colorScale.ranges.map(function(ne,ue){ne.from<=0&&(L=!0)}),L}},{key:"getShadeColor",value:function(C,L,F,ne){var ue=this.w,fe=1,me=ue.config.plotOptions[C].shadeIntensity,Pe=this.determineColor(C,L,F);ue.globals.hasNegs||ne?fe=ue.config.plotOptions[C].reverseNegativeShade?Pe.percent<0?Pe.percent/100*(1.25*me):(1-Pe.percent/100)*(1.25*me):Pe.percent<=0?1-(1+Pe.percent/100)*me:(1-Pe.percent/100)*me:(fe=1-Pe.percent/100,C==="treemap"&&(fe=(1-Pe.percent/100)*(1.25*me)));var Re=Pe.color,Xe=new Y;return ue.config.plotOptions[C].enableShades&&(Re=this.w.config.theme.mode==="dark"?Y.hexToRgba(Xe.shadeColor(-1*fe,Pe.color),ue.config.fill.opacity):Y.hexToRgba(Xe.shadeColor(fe,Pe.color),ue.config.fill.opacity)),{color:Re,colorProps:Pe}}},{key:"determineColor",value:function(C,L,F){var ne=this.w,ue=ne.globals.series[L][F],fe=ne.config.plotOptions[C],me=fe.colorScale.inverse?F:L;fe.distributed&&ne.config.chart.type==="treemap"&&(me=F);var Pe=ne.globals.colors[me],Re=null,Xe=Math.min.apply(Math,W(ne.globals.series[L])),qe=Math.max.apply(Math,W(ne.globals.series[L]));fe.distributed||C!=="heatmap"||(Xe=ne.globals.minY,qe=ne.globals.maxY),fe.colorScale.min!==void 0&&(Xe=fe.colorScale.min<ne.globals.minY?fe.colorScale.min:ne.globals.minY,qe=fe.colorScale.max>ne.globals.maxY?fe.colorScale.max:ne.globals.maxY);var Ke=Math.abs(qe)+Math.abs(Xe),nt=100*ue/(Ke===0?Ke-1e-6:Ke);return fe.colorScale.ranges.length>0&&fe.colorScale.ranges.map(function(It,Tt){if(ue>=It.from&&ue<=It.to){Pe=It.color,Re=It.foreColor?It.foreColor:null,Xe=It.from,qe=It.to;var ni=Math.abs(qe)+Math.abs(Xe);nt=100*ue/(ni===0?ni-1e-6:ni)}}),{color:Pe,foreColor:Re,percent:nt}}},{key:"calculateDataLabels",value:function(C){var L=C.text,F=C.x,ne=C.y,ue=C.i,fe=C.j,me=C.colorProps,Pe=C.fontSize,Re=this.w.config.dataLabels,Xe=new ge(this.ctx),qe=new rt(this.ctx),Ke=null;if(Re.enabled){Ke=Xe.group({class:"apexcharts-data-labels"});var nt=Re.offsetX,It=Re.offsetY,Tt=F+nt,ni=ne+parseFloat(Re.style.fontSize)/3+It;qe.plotDataLabelsText({x:Tt,y:ni,text:L,i:ue,j:fe,color:me.foreColor,parent:Ke,fontSize:Pe,dataLabelsConfig:Re})}return Ke}},{key:"addListeners",value:function(C){var L=new ge(this.ctx);C.node.addEventListener("mouseenter",L.pathMouseEnter.bind(this,C)),C.node.addEventListener("mouseleave",L.pathMouseLeave.bind(this,C)),C.node.addEventListener("mousedown",L.pathMouseDown.bind(this,C))}}]),ai}(),IM=function(){function ai(C,L){I(this,ai),this.ctx=C,this.w=C.w,this.xRatio=L.xRatio,this.yRatio=L.yRatio,this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.helpers=new kM(C),this.rectRadius=this.w.config.plotOptions.heatmap.radius,this.strokeWidth=this.w.config.stroke.show?this.w.config.stroke.width:0}return M(ai,[{key:"draw",value:function(C){var L=this.w,F=new ge(this.ctx),ne=F.group({class:"apexcharts-heatmap"});ne.attr("clip-path","url(#gridRectMask".concat(L.globals.cuid,")"));var ue=L.globals.gridWidth/L.globals.dataPoints,fe=L.globals.gridHeight/L.globals.series.length,me=0,Pe=!1;this.negRange=this.helpers.checkColorRange();var Re=C.slice();L.config.yaxis[0].reversed&&(Pe=!0,Re.reverse());for(var Xe=Pe?0:Re.length-1;Pe?Xe<Re.length:Xe>=0;Pe?Xe++:Xe--){var qe=F.group({class:"apexcharts-series apexcharts-heatmap-series",seriesName:Y.escapeString(L.globals.seriesNames[Xe]),rel:Xe+1,"data:realIndex":Xe});if(this.ctx.series.addCollapsedClassToSeries(qe,Xe),L.config.chart.dropShadow.enabled){var Ke=L.config.chart.dropShadow;new oe(this.ctx).dropShadow(qe,Ke,Xe)}for(var nt=0,It=L.config.plotOptions.heatmap.shadeIntensity,Tt=0;Tt<Re[Xe].length;Tt++){var ni=this.helpers.getShadeColor(L.config.chart.type,Xe,Tt,this.negRange),fi=ni.color,gi=ni.colorProps;L.config.fill.type==="image"&&(fi=new Z(this.ctx).fillPath({seriesNumber:Xe,dataPointIndex:Tt,opacity:L.globals.hasNegs?gi.percent<0?1-(1+gi.percent/100):It+gi.percent/100:gi.percent/100,patternID:Y.randomId(),width:L.config.fill.image.width?L.config.fill.image.width:ue,height:L.config.fill.image.height?L.config.fill.image.height:fe}));var je=this.rectRadius,it=F.drawRect(nt,me,ue,fe,je);if(it.attr({cx:nt,cy:me}),it.node.classList.add("apexcharts-heatmap-rect"),qe.add(it),it.attr({fill:fi,i:Xe,index:Xe,j:Tt,val:C[Xe][Tt],"stroke-width":this.strokeWidth,stroke:L.config.plotOptions.heatmap.useFillColorAsStroke?fi:L.globals.stroke.colors[0],color:fi}),this.helpers.addListeners(it),L.config.chart.animations.enabled&&!L.globals.dataChanged){var Ct=1;L.globals.resized||(Ct=L.config.chart.animations.speed),this.animateHeatMap(it,nt,me,ue,fe,Ct)}if(L.globals.dataChanged){var si=1;if(this.dynamicAnim.enabled&&L.globals.shouldAnimate){si=this.dynamicAnim.speed;var di=L.globals.previousPaths[Xe]&&L.globals.previousPaths[Xe][Tt]&&L.globals.previousPaths[Xe][Tt].color;di||(di="rgba(255, 255, 255, 0)"),this.animateHeatColor(it,Y.isColorHex(di)?di:Y.rgb2hex(di),Y.isColorHex(fi)?fi:Y.rgb2hex(fi),si)}}var yi=(0,L.config.dataLabels.formatter)(L.globals.series[Xe][Tt],{value:L.globals.series[Xe][Tt],seriesIndex:Xe,dataPointIndex:Tt,w:L}),nM=this.helpers.calculateDataLabels({text:yi,x:nt+ue/2,y:me+fe/2,i:Xe,j:Tt,colorProps:gi,series:Re});nM!==null&&qe.add(nM),nt+=ue}me+=fe,ne.add(qe)}var iM=L.globals.yAxisScale[0].result.slice();return L.config.yaxis[0].reversed?iM.unshift(""):iM.push(""),L.globals.yAxisScale[0].result=iM,ne}},{key:"animateHeatMap",value:function(C,L,F,ne,ue,fe){var me=new ie(this.ctx);me.animateRect(C,{x:L+ne/2,y:F+ue/2,width:0,height:0},{x:L,y:F,width:ne,height:ue},fe,function(){me.animationCompleted(C)})}},{key:"animateHeatColor",value:function(C,L,F,ne){C.attr({fill:L}).animate(ne).attr({fill:F})}}]),ai}(),DM=function(){function ai(C){I(this,ai),this.ctx=C,this.w=C.w}return M(ai,[{key:"drawYAxisTexts",value:function(C,L,F,ne){var ue=this.w,fe=ue.config.yaxis[0],me=ue.globals.yLabelFormatters[0];return new ge(this.ctx).drawText({x:C+fe.labels.offsetX,y:L+fe.labels.offsetY,text:me(ne,F),textAnchor:"middle",fontSize:fe.labels.style.fontSize,fontFamily:fe.labels.style.fontFamily,foreColor:Array.isArray(fe.labels.style.colors)?fe.labels.style.colors[F]:fe.labels.style.colors})}}]),ai}(),$M=function(){function ai(C){I(this,ai),this.ctx=C,this.w=C.w;var L=this.w;this.chartType=this.w.config.chart.type,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled,this.animBeginArr=[0],this.animDur=0,this.donutDataLabels=this.w.config.plotOptions.pie.donut.labels,this.lineColorArr=L.globals.stroke.colors!==void 0?L.globals.stroke.colors:L.globals.colors,this.defaultSize=Math.min(L.globals.gridWidth,L.globals.gridHeight),this.centerY=this.defaultSize/2,this.centerX=L.globals.gridWidth/2,L.config.chart.type==="radialBar"?this.fullAngle=360:this.fullAngle=Math.abs(L.config.plotOptions.pie.endAngle-L.config.plotOptions.pie.startAngle),this.initialAngle=L.config.plotOptions.pie.startAngle%this.fullAngle,L.globals.radialSize=this.defaultSize/2.05-L.config.stroke.width-(L.config.chart.sparkline.enabled?0:L.config.chart.dropShadow.blur),this.donutSize=L.globals.radialSize*parseInt(L.config.plotOptions.pie.donut.size,10)/100,this.maxY=0,this.sliceLabels=[],this.sliceSizes=[],this.prevSectorAngleArr=[]}return M(ai,[{key:"draw",value:function(C){var L=this,F=this.w,ne=new ge(this.ctx);if(this.ret=ne.group({class:"apexcharts-pie"}),F.globals.noData)return this.ret;for(var ue=0,fe=0;fe<C.length;fe++)ue+=Y.negToZero(C[fe]);var me=[],Pe=ne.group();ue===0&&(ue=1e-5),C.forEach(function(di){L.maxY=Math.max(L.maxY,di)}),F.config.yaxis[0].max&&(this.maxY=F.config.yaxis[0].max),F.config.grid.position==="back"&&this.chartType==="polarArea"&&this.drawPolarElements(this.ret);for(var Re=0;Re<C.length;Re++){var Xe=this.fullAngle*Y.negToZero(C[Re])/ue;me.push(Xe),this.chartType==="polarArea"?(me[Re]=this.fullAngle/C.length,this.sliceSizes.push(F.globals.radialSize*C[Re]/this.maxY)):this.sliceSizes.push(F.globals.radialSize)}if(F.globals.dataChanged){for(var qe,Ke=0,nt=0;nt<F.globals.previousPaths.length;nt++)Ke+=Y.negToZero(F.globals.previousPaths[nt]);for(var It=0;It<F.globals.previousPaths.length;It++)qe=this.fullAngle*Y.negToZero(F.globals.previousPaths[It])/Ke,this.prevSectorAngleArr.push(qe)}this.donutSize<0&&(this.donutSize=0);var Tt=F.config.plotOptions.pie.customScale,ni=F.globals.gridWidth/2,fi=F.globals.gridHeight/2,gi=ni-F.globals.gridWidth/2*Tt,je=fi-F.globals.gridHeight/2*Tt;if(this.chartType==="donut"){var it=ne.drawCircle(this.donutSize);it.attr({cx:this.centerX,cy:this.centerY,fill:F.config.plotOptions.pie.donut.background?F.config.plotOptions.pie.donut.background:"transparent"}),Pe.add(it)}var Ct=this.drawArcs(me,C);if(this.sliceLabels.forEach(function(di){Ct.add(di)}),Pe.attr({transform:"translate(".concat(gi,", ").concat(je,") scale(").concat(Tt,")")}),Pe.add(Ct),this.ret.add(Pe),this.donutDataLabels.show){var si=this.renderInnerDataLabels(this.donutDataLabels,{hollowSize:this.donutSize,centerX:this.centerX,centerY:this.centerY,opacity:this.donutDataLabels.show,translateX:gi,translateY:je});this.ret.add(si)}return F.config.grid.position==="front"&&this.chartType==="polarArea"&&this.drawPolarElements(this.ret),this.ret}},{key:"drawArcs",value:function(C,L){var F=this.w,ne=new oe(this.ctx),ue=new ge(this.ctx),fe=new Z(this.ctx),me=ue.group({class:"apexcharts-slices"}),Pe=this.initialAngle,Re=this.initialAngle,Xe=this.initialAngle,qe=this.initialAngle;this.strokeWidth=F.config.stroke.show?F.config.stroke.width:0;for(var Ke=0;Ke<C.length;Ke++){var nt=ue.group({class:"apexcharts-series apexcharts-pie-series",seriesName:Y.escapeString(F.globals.seriesNames[Ke]),rel:Ke+1,"data:realIndex":Ke});me.add(nt),Re=qe,Xe=(Pe=Xe)+C[Ke],qe=Re+this.prevSectorAngleArr[Ke];var It=Xe<Pe?this.fullAngle+Xe-Pe:Xe-Pe,Tt=fe.fillPath({seriesNumber:Ke,size:this.sliceSizes[Ke],value:L[Ke]}),ni=this.getChangedPath(Re,qe),fi=ue.drawPath({d:ni,stroke:Array.isArray(this.lineColorArr)?this.lineColorArr[Ke]:this.lineColorArr,strokeWidth:0,fill:Tt,fillOpacity:F.config.fill.opacity,classes:"apexcharts-pie-area apexcharts-".concat(this.chartType.toLowerCase(),"-slice-").concat(Ke)});if(fi.attr({index:0,j:Ke}),ne.setSelectionFilter(fi,0,Ke),F.config.chart.dropShadow.enabled){var gi=F.config.chart.dropShadow;ne.dropShadow(fi,gi,Ke)}this.addListeners(fi,this.donutDataLabels),ge.setAttrs(fi.node,{"data:angle":It,"data:startAngle":Pe,"data:strokeWidth":this.strokeWidth,"data:value":L[Ke]});var je={x:0,y:0};this.chartType==="pie"||this.chartType==="polarArea"?je=Y.polarToCartesian(this.centerX,this.centerY,F.globals.radialSize/1.25+F.config.plotOptions.pie.dataLabels.offset,(Pe+It/2)%this.fullAngle):this.chartType==="donut"&&(je=Y.polarToCartesian(this.centerX,this.centerY,(F.globals.radialSize+this.donutSize)/2+F.config.plotOptions.pie.dataLabels.offset,(Pe+It/2)%this.fullAngle)),nt.add(fi);var it=0;if(!this.initialAnim||F.globals.resized||F.globals.dataChanged?this.animBeginArr.push(0):((it=It/this.fullAngle*F.config.chart.animations.speed)===0&&(it=1),this.animDur=it+this.animDur,this.animBeginArr.push(this.animDur)),this.dynamicAnim&&F.globals.dataChanged?this.animatePaths(fi,{size:this.sliceSizes[Ke],endAngle:Xe,startAngle:Pe,prevStartAngle:Re,prevEndAngle:qe,animateStartingPos:!0,i:Ke,animBeginArr:this.animBeginArr,shouldSetPrevPaths:!0,dur:F.config.chart.animations.dynamicAnimation.speed}):this.animatePaths(fi,{size:this.sliceSizes[Ke],endAngle:Xe,startAngle:Pe,i:Ke,totalItems:C.length-1,animBeginArr:this.animBeginArr,dur:it}),F.config.plotOptions.pie.expandOnClick&&this.chartType!=="polarArea"&&fi.click(this.pieClicked.bind(this,Ke)),F.globals.selectedDataPoints[0]!==void 0&&F.globals.selectedDataPoints[0].indexOf(Ke)>-1&&this.pieClicked(Ke),F.config.dataLabels.enabled){var Ct=je.x,si=je.y,di=100*It/this.fullAngle+"%";if(It!==0&&F.config.plotOptions.pie.dataLabels.minAngleToShowLabel<C[Ke]){var yi=F.config.dataLabels.formatter;yi!==void 0&&(di=yi(F.globals.seriesPercent[Ke][0],{seriesIndex:Ke,w:F}));var nM=F.globals.dataLabels.style.colors[Ke],iM=ue.group({class:"apexcharts-datalabels"}),mM=ue.drawText({x:Ct,y:si,text:di,textAnchor:"middle",fontSize:F.config.dataLabels.style.fontSize,fontFamily:F.config.dataLabels.style.fontFamily,fontWeight:F.config.dataLabels.style.fontWeight,foreColor:nM});if(iM.add(mM),F.config.dataLabels.dropShadow.enabled){var EM=F.config.dataLabels.dropShadow;ne.dropShadow(mM,EM)}mM.node.classList.add("apexcharts-pie-label"),F.config.chart.animations.animate&&F.globals.resized===!1&&(mM.node.classList.add("apexcharts-pie-label-delay"),mM.node.style.animationDelay=F.config.chart.animations.speed/940+"s"),this.sliceLabels.push(iM)}}}return me}},{key:"addListeners",value:function(C,L){var F=new ge(this.ctx);C.node.addEventListener("mouseenter",F.pathMouseEnter.bind(this,C)),C.node.addEventListener("mouseleave",F.pathMouseLeave.bind(this,C)),C.node.addEventListener("mouseleave",this.revertDataLabelsInner.bind(this,C.node,L)),C.node.addEventListener("mousedown",F.pathMouseDown.bind(this,C)),this.donutDataLabels.total.showAlways||(C.node.addEventListener("mouseenter",this.printDataLabelsInner.bind(this,C.node,L)),C.node.addEventListener("mousedown",this.printDataLabelsInner.bind(this,C.node,L)))}},{key:"animatePaths",value:function(C,L){var F=this.w,ne=L.endAngle<L.startAngle?this.fullAngle+L.endAngle-L.startAngle:L.endAngle-L.startAngle,ue=ne,fe=L.startAngle,me=L.startAngle;L.prevStartAngle!==void 0&&L.prevEndAngle!==void 0&&(fe=L.prevEndAngle,ue=L.prevEndAngle<L.prevStartAngle?this.fullAngle+L.prevEndAngle-L.prevStartAngle:L.prevEndAngle-L.prevStartAngle),L.i===F.config.series.length-1&&(ne+me>this.fullAngle?L.endAngle=L.endAngle-(ne+me):ne+me<this.fullAngle&&(L.endAngle=L.endAngle+(this.fullAngle-(ne+me)))),ne===this.fullAngle&&(ne=this.fullAngle-.01),this.animateArc(C,fe,me,ne,ue,L)}},{key:"animateArc",value:function(C,L,F,ne,ue,fe){var me,Pe=this,Re=this.w,Xe=new ie(this.ctx),qe=fe.size;(isNaN(L)||isNaN(ue))&&(L=F,ue=ne,fe.dur=0);var Ke=ne,nt=F,It=L<F?this.fullAngle+L-F:L-F;Re.globals.dataChanged&&fe.shouldSetPrevPaths&&fe.prevEndAngle&&(me=Pe.getPiePath({me:Pe,startAngle:fe.prevStartAngle,angle:fe.prevEndAngle<fe.prevStartAngle?this.fullAngle+fe.prevEndAngle-fe.prevStartAngle:fe.prevEndAngle-fe.prevStartAngle,size:qe}),C.attr({d:me})),fe.dur!==0?C.animate(fe.dur,Re.globals.easing,fe.animBeginArr[fe.i]).afterAll(function(){Pe.chartType!=="pie"&&Pe.chartType!=="donut"&&Pe.chartType!=="polarArea"||this.animate(Re.config.chart.animations.dynamicAnimation.speed).attr({"stroke-width":Pe.strokeWidth}),fe.i===Re.config.series.length-1&&Xe.animationCompleted(C)}).during(function(Tt){Ke=It+(ne-It)*Tt,fe.animateStartingPos&&(Ke=ue+(ne-ue)*Tt,nt=L-ue+(F-(L-ue))*Tt),me=Pe.getPiePath({me:Pe,startAngle:nt,angle:Ke,size:qe}),C.node.setAttribute("data:pathOrig",me),C.attr({d:me})}):(me=Pe.getPiePath({me:Pe,startAngle:nt,angle:ne,size:qe}),fe.isTrack||(Re.globals.animationEnded=!0),C.node.setAttribute("data:pathOrig",me),C.attr({d:me,"stroke-width":Pe.strokeWidth}))}},{key:"pieClicked",value:function(C){var L,F=this.w,ne=this,ue=ne.sliceSizes[C]+(F.config.plotOptions.pie.expandOnClick?4:0),fe=F.globals.dom.Paper.select(".apexcharts-".concat(ne.chartType.toLowerCase(),"-slice-").concat(C)).members[0];if(fe.attr("data:pieClicked")!=="true"){var me=F.globals.dom.baseEl.getElementsByClassName("apexcharts-pie-area");Array.prototype.forEach.call(me,function(qe){qe.setAttribute("data:pieClicked","false");var Ke=qe.getAttribute("data:pathOrig");Ke&&qe.setAttribute("d",Ke)}),fe.attr("data:pieClicked","true");var Pe=parseInt(fe.attr("data:startAngle"),10),Re=parseInt(fe.attr("data:angle"),10);L=ne.getPiePath({me:ne,startAngle:Pe,angle:Re,size:ue}),Re!==360&&fe.plot(L)}else{fe.attr({"data:pieClicked":"false"}),this.revertDataLabelsInner(fe.node,this.donutDataLabels);var Xe=fe.attr("data:pathOrig");fe.attr({d:Xe})}}},{key:"getChangedPath",value:function(C,L){var F="";return this.dynamicAnim&&this.w.globals.dataChanged&&(F=this.getPiePath({me:this,startAngle:C,angle:L-C,size:this.size})),F}},{key:"getPiePath",value:function(C){var L,F=C.me,ne=C.startAngle,ue=C.angle,fe=C.size,me=new ge(this.ctx),Pe=ne,Re=Math.PI*(Pe-90)/180,Xe=ue+ne;Math.ceil(Xe)>=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle&&(Xe=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle-.01),Math.ceil(Xe)>this.fullAngle&&(Xe-=this.fullAngle);var qe=Math.PI*(Xe-90)/180,Ke=F.centerX+fe*Math.cos(Re),nt=F.centerY+fe*Math.sin(Re),It=F.centerX+fe*Math.cos(qe),Tt=F.centerY+fe*Math.sin(qe),ni=Y.polarToCartesian(F.centerX,F.centerY,F.donutSize,Xe),fi=Y.polarToCartesian(F.centerX,F.centerY,F.donutSize,Pe),gi=ue>180?1:0,je=["M",Ke,nt,"A",fe,fe,0,gi,1,It,Tt];return L=F.chartType==="donut"?[].concat(je,["L",ni.x,ni.y,"A",F.donutSize,F.donutSize,0,gi,0,fi.x,fi.y,"L",Ke,nt,"z"]).join(" "):F.chartType==="pie"||F.chartType==="polarArea"?[].concat(je,["L",F.centerX,F.centerY,"L",Ke,nt]).join(" "):[].concat(je).join(" "),me.roundPathCorners(L,2*this.strokeWidth)}},{key:"drawPolarElements",value:function(C){var L=this.w,F=new et(this.ctx),ne=new ge(this.ctx),ue=new DM(this.ctx),fe=ne.group(),me=ne.group(),Pe=F.niceScale(0,Math.ceil(this.maxY),L.config.yaxis[0].tickAmount,0,!0),Re=Pe.result.reverse(),Xe=Pe.result.length;this.maxY=Pe.niceMax;for(var qe=L.globals.radialSize,Ke=qe/(Xe-1),nt=0;nt<Xe-1;nt++){var It=ne.drawCircle(qe);if(It.attr({cx:this.centerX,cy:this.centerY,fill:"none","stroke-width":L.config.plotOptions.polarArea.rings.strokeWidth,stroke:L.config.plotOptions.polarArea.rings.strokeColor}),L.config.yaxis[0].show){var Tt=ue.drawYAxisTexts(this.centerX,this.centerY-qe+parseInt(L.config.yaxis[0].labels.style.fontSize,10)/2,nt,Re[nt]);me.add(Tt)}fe.add(It),qe-=Ke}this.drawSpokes(C),C.add(fe),C.add(me)}},{key:"renderInnerDataLabels",value:function(C,L){var F=this.w,ne=new ge(this.ctx),ue=ne.group({class:"apexcharts-datalabels-group",transform:"translate(".concat(L.translateX?L.translateX:0,", ").concat(L.translateY?L.translateY:0,") scale(").concat(F.config.plotOptions.pie.customScale,")")}),fe=C.total.show;ue.node.style.opacity=L.opacity;var me,Pe,Re=L.centerX,Xe=L.centerY;me=C.name.color===void 0?F.globals.colors[0]:C.name.color;var qe=C.name.fontSize,Ke=C.name.fontFamily,nt=C.name.fontWeight;Pe=C.value.color===void 0?F.config.chart.foreColor:C.value.color;var It=C.value.formatter,Tt="",ni="";if(fe?(me=C.total.color,qe=C.total.fontSize,Ke=C.total.fontFamily,nt=C.total.fontWeight,ni=C.total.label,Tt=C.total.formatter(F)):F.globals.series.length===1&&(Tt=It(F.globals.series[0],F),ni=F.globals.seriesNames[0]),ni&&(ni=C.name.formatter(ni,C.total.show,F)),C.name.show){var fi=ne.drawText({x:Re,y:Xe+parseFloat(C.name.offsetY),text:ni,textAnchor:"middle",foreColor:me,fontSize:qe,fontWeight:nt,fontFamily:Ke});fi.node.classList.add("apexcharts-datalabel-label"),ue.add(fi)}if(C.value.show){var gi=C.name.show?parseFloat(C.value.offsetY)+16:C.value.offsetY,je=ne.drawText({x:Re,y:Xe+gi,text:Tt,textAnchor:"middle",foreColor:Pe,fontWeight:C.value.fontWeight,fontSize:C.value.fontSize,fontFamily:C.value.fontFamily});je.node.classList.add("apexcharts-datalabel-value"),ue.add(je)}return ue}},{key:"printInnerLabels",value:function(C,L,F,ne){var ue,fe=this.w;ne?ue=C.name.color===void 0?fe.globals.colors[parseInt(ne.parentNode.getAttribute("rel"),10)-1]:C.name.color:fe.globals.series.length>1&&C.total.show&&(ue=C.total.color);var me=fe.globals.dom.baseEl.querySelector(".apexcharts-datalabel-label"),Pe=fe.globals.dom.baseEl.querySelector(".apexcharts-datalabel-value");F=(0,C.value.formatter)(F,fe),ne||typeof C.total.formatter!="function"||(F=C.total.formatter(fe));var Re=L===C.total.label;L=C.name.formatter(L,Re,fe),me!==null&&(me.textContent=L),Pe!==null&&(Pe.textContent=F),me!==null&&(me.style.fill=ue)}},{key:"printDataLabelsInner",value:function(C,L){var F=this.w,ne=C.getAttribute("data:value"),ue=F.globals.seriesNames[parseInt(C.parentNode.getAttribute("rel"),10)-1];F.globals.series.length>1&&this.printInnerLabels(L,ue,ne,C);var fe=F.globals.dom.baseEl.querySelector(".apexcharts-datalabels-group");fe!==null&&(fe.style.opacity=1)}},{key:"drawSpokes",value:function(C){var L=this,F=this.w,ne=new ge(this.ctx),ue=F.config.plotOptions.polarArea.spokes;if(ue.strokeWidth!==0){for(var fe=[],me=360/F.globals.series.length,Pe=0;Pe<F.globals.series.length;Pe++)fe.push(Y.polarToCartesian(this.centerX,this.centerY,F.globals.radialSize,F.config.plotOptions.pie.startAngle+me*Pe));fe.forEach(function(Re,Xe){var qe=ne.drawLine(Re.x,Re.y,L.centerX,L.centerY,Array.isArray(ue.connectorColors)?ue.connectorColors[Xe]:ue.connectorColors);C.add(qe)})}}},{key:"revertDataLabelsInner",value:function(C,L,F){var ne=this,ue=this.w,fe=ue.globals.dom.baseEl.querySelector(".apexcharts-datalabels-group"),me=!1,Pe=ue.globals.dom.baseEl.getElementsByClassName("apexcharts-pie-area"),Re=function(Ke){var nt=Ke.makeSliceOut,It=Ke.printLabel;Array.prototype.forEach.call(Pe,function(Tt){Tt.getAttribute("data:pieClicked")==="true"&&(nt&&(me=!0),It&&ne.printDataLabelsInner(Tt,L))})};if(Re({makeSliceOut:!0,printLabel:!1}),L.total.show&&ue.globals.series.length>1)me&&!L.total.showAlways?Re({makeSliceOut:!1,printLabel:!0}):this.printInnerLabels(L,L.total.label,L.total.formatter(ue));else if(Re({makeSliceOut:!1,printLabel:!0}),!me)if(ue.globals.selectedDataPoints.length&&ue.globals.series.length>1)if(ue.globals.selectedDataPoints[0].length>0){var Xe=ue.globals.selectedDataPoints[0],qe=ue.globals.dom.baseEl.querySelector(".apexcharts-".concat(this.chartType.toLowerCase(),"-slice-").concat(Xe));this.printDataLabelsInner(qe,L)}else fe&&ue.globals.selectedDataPoints.length&&ue.globals.selectedDataPoints[0].length===0&&(fe.style.opacity=0);else fe&&ue.globals.series.length>1&&(fe.style.opacity=0)}}]),ai}(),TM=function(){function ai(C){I(this,ai),this.ctx=C,this.w=C.w,this.chartType=this.w.config.chart.type,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled,this.animDur=0;var L=this.w;this.graphics=new ge(this.ctx),this.lineColorArr=L.globals.stroke.colors!==void 0?L.globals.stroke.colors:L.globals.colors,this.defaultSize=L.globals.svgHeight<L.globals.svgWidth?L.globals.gridHeight+1.5*L.globals.goldenPadding:L.globals.gridWidth,this.isLog=L.config.yaxis[0].logarithmic,this.coreUtils=new be(this.ctx),this.maxValue=this.isLog?this.coreUtils.getLogVal(L.globals.maxY,0):L.globals.maxY,this.minValue=this.isLog?this.coreUtils.getLogVal(this.w.globals.minY,0):L.globals.minY,this.polygons=L.config.plotOptions.radar.polygons,this.strokeWidth=L.config.stroke.show?L.config.stroke.width:0,this.size=this.defaultSize/2.1-this.strokeWidth-L.config.chart.dropShadow.blur,L.config.xaxis.labels.show&&(this.size=this.size-L.globals.xAxisLabelsWidth/1.75),L.config.plotOptions.radar.size!==void 0&&(this.size=L.config.plotOptions.radar.size),this.dataRadiusOfPercent=[],this.dataRadius=[],this.angleArr=[],this.yaxisLabelsTextsPos=[]}return M(ai,[{key:"draw",value:function(C){var L=this,F=this.w,ne=new Z(this.ctx),ue=[],fe=new rt(this.ctx);C.length&&(this.dataPointsLen=C[F.globals.maxValsInArrayIndex].length),this.disAngle=2*Math.PI/this.dataPointsLen;var me=F.globals.gridWidth/2,Pe=F.globals.gridHeight/2,Re=me+F.config.plotOptions.radar.offsetX,Xe=Pe+F.config.plotOptions.radar.offsetY,qe=this.graphics.group({class:"apexcharts-radar-series apexcharts-plot-series",transform:"translate(".concat(Re||0,", ").concat(Xe||0,")")}),Ke=[],nt=null,It=null;if(this.yaxisLabels=this.graphics.group({class:"apexcharts-yaxis"}),C.forEach(function(ni,fi){var gi=ni.length===F.globals.dataPoints,je=L.graphics.group().attr({class:"apexcharts-series","data:longestSeries":gi,seriesName:Y.escapeString(F.globals.seriesNames[fi]),rel:fi+1,"data:realIndex":fi});L.dataRadiusOfPercent[fi]=[],L.dataRadius[fi]=[],L.angleArr[fi]=[],ni.forEach(function(wM,GM){var qM=Math.abs(L.maxValue-L.minValue);wM+=Math.abs(L.minValue),L.isLog&&(wM=L.coreUtils.getLogVal(wM,0)),L.dataRadiusOfPercent[fi][GM]=wM/qM,L.dataRadius[fi][GM]=L.dataRadiusOfPercent[fi][GM]*L.size,L.angleArr[fi][GM]=GM*L.disAngle}),Ke=L.getDataPointsPos(L.dataRadius[fi],L.angleArr[fi]);var it=L.createPaths(Ke,{x:0,y:0});nt=L.graphics.group({class:"apexcharts-series-markers-wrap apexcharts-element-hidden"}),It=L.graphics.group({class:"apexcharts-datalabels","data:realIndex":fi}),F.globals.delayedElements.push({el:nt.node,index:fi});var Ct={i:fi,realIndex:fi,animationDelay:fi,initialSpeed:F.config.chart.animations.speed,dataChangeSpeed:F.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-radar",shouldClipToGrid:!1,bindEventsOnPaths:!1,stroke:F.globals.stroke.colors[fi],strokeLineCap:F.config.stroke.lineCap},si=null;F.globals.previousPaths.length>0&&(si=L.getPreviousPath(fi));for(var di=0;di<it.linePathsTo.length;di++){var yi=L.graphics.renderPaths(_(_({},Ct),{},{pathFrom:si===null?it.linePathsFrom[di]:si,pathTo:it.linePathsTo[di],strokeWidth:Array.isArray(L.strokeWidth)?L.strokeWidth[fi]:L.strokeWidth,fill:"none",drawShadow:!1}));je.add(yi);var nM=ne.fillPath({seriesNumber:fi}),iM=L.graphics.renderPaths(_(_({},Ct),{},{pathFrom:si===null?it.areaPathsFrom[di]:si,pathTo:it.areaPathsTo[di],strokeWidth:0,fill:nM,drawShadow:!1}));if(F.config.chart.dropShadow.enabled){var mM=new oe(L.ctx),EM=F.config.chart.dropShadow;mM.dropShadow(iM,Object.assign({},EM,{noUserSpaceOnUse:!0}),fi)}je.add(iM)}ni.forEach(function(wM,GM){var qM=new ve(L.ctx).getMarkerConfig({cssClass:"apexcharts-marker",seriesIndex:fi,dataPointIndex:GM}),JM=L.graphics.drawMarker(Ke[GM].x,Ke[GM].y,qM);JM.attr("rel",GM),JM.attr("j",GM),JM.attr("index",fi),JM.node.setAttribute("default-marker-size",qM.pSize);var zT=L.graphics.group({class:"apexcharts-series-markers"});zT&&zT.add(JM),nt.add(zT),je.add(nt);var WT=F.config.dataLabels;if(WT.enabled){var FT=WT.formatter(F.globals.series[fi][GM],{seriesIndex:fi,dataPointIndex:GM,w:F});fe.plotDataLabelsText({x:Ke[GM].x,y:Ke[GM].y,text:FT,textAnchor:"middle",i:fi,j:fi,parent:It,offsetCorrection:!1,dataLabelsConfig:_({},WT)})}je.add(It)}),ue.push(je)}),this.drawPolygons({parent:qe}),F.config.xaxis.labels.show){var Tt=this.drawXAxisTexts();qe.add(Tt)}return ue.forEach(function(ni){qe.add(ni)}),qe.add(this.yaxisLabels),qe}},{key:"drawPolygons",value:function(C){for(var L=this,F=this.w,ne=C.parent,ue=new DM(this.ctx),fe=F.globals.yAxisScale[0].result.reverse(),me=fe.length,Pe=[],Re=this.size/(me-1),Xe=0;Xe<me;Xe++)Pe[Xe]=Re*Xe;Pe.reverse();var qe=[],Ke=[];Pe.forEach(function(nt,It){var Tt=Y.getPolygonPos(nt,L.dataPointsLen),ni="";Tt.forEach(function(fi,gi){if(It===0){var je=L.graphics.drawLine(fi.x,fi.y,0,0,Array.isArray(L.polygons.connectorColors)?L.polygons.connectorColors[gi]:L.polygons.connectorColors);Ke.push(je)}gi===0&&L.yaxisLabelsTextsPos.push({x:fi.x,y:fi.y}),ni+=fi.x+","+fi.y+" "}),qe.push(ni)}),qe.forEach(function(nt,It){var Tt=L.polygons.strokeColors,ni=L.polygons.strokeWidth,fi=L.graphics.drawPolygon(nt,Array.isArray(Tt)?Tt[It]:Tt,Array.isArray(ni)?ni[It]:ni,F.globals.radarPolygons.fill.colors[It]);ne.add(fi)}),Ke.forEach(function(nt){ne.add(nt)}),F.config.yaxis[0].show&&this.yaxisLabelsTextsPos.forEach(function(nt,It){var Tt=ue.drawYAxisTexts(nt.x,nt.y,It,fe[It]);L.yaxisLabels.add(Tt)})}},{key:"drawXAxisTexts",value:function(){var C=this,L=this.w,F=L.config.xaxis.labels,ne=this.graphics.group({class:"apexcharts-xaxis"}),ue=Y.getPolygonPos(this.size,this.dataPointsLen);return L.globals.labels.forEach(function(fe,me){var Pe=L.config.xaxis.labels.formatter,Re=new rt(C.ctx);if(ue[me]){var Xe=C.getTextPos(ue[me],C.size),qe=Pe(fe,{seriesIndex:-1,dataPointIndex:me,w:L});Re.plotDataLabelsText({x:Xe.newX,y:Xe.newY,text:qe,textAnchor:Xe.textAnchor,i:me,j:me,parent:ne,color:Array.isArray(F.style.colors)&&F.style.colors[me]?F.style.colors[me]:"#a8a8a8",dataLabelsConfig:_({textAnchor:Xe.textAnchor,dropShadow:{enabled:!1}},F),offsetCorrection:!1})}}),ne}},{key:"createPaths",value:function(C,L){var F=this,ne=[],ue=[],fe=[],me=[];if(C.length){ue=[this.graphics.move(L.x,L.y)],me=[this.graphics.move(L.x,L.y)];var Pe=this.graphics.move(C[0].x,C[0].y),Re=this.graphics.move(C[0].x,C[0].y);C.forEach(function(Xe,qe){Pe+=F.graphics.line(Xe.x,Xe.y),Re+=F.graphics.line(Xe.x,Xe.y),qe===C.length-1&&(Pe+="Z",Re+="Z")}),ne.push(Pe),fe.push(Re)}return{linePathsFrom:ue,linePathsTo:ne,areaPathsFrom:me,areaPathsTo:fe}}},{key:"getTextPos",value:function(C,L){var F="middle",ne=C.x,ue=C.y;return Math.abs(C.x)>=10?C.x>0?(F="start",ne+=10):C.x<0&&(F="end",ne-=10):F="middle",Math.abs(C.y)>=L-10&&(C.y<0?ue-=10:C.y>0&&(ue+=10)),{textAnchor:F,newX:ne,newY:ue}}},{key:"getPreviousPath",value:function(C){for(var L=this.w,F=null,ne=0;ne<L.globals.previousPaths.length;ne++){var ue=L.globals.previousPaths[ne];ue.paths.length>0&&parseInt(ue.realIndex,10)===parseInt(C,10)&&L.globals.previousPaths[ne].paths[0]!==void 0&&(F=L.globals.previousPaths[ne].paths[0].d)}return F}},{key:"getDataPointsPos",value:function(C,L){var F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.dataPointsLen;C=C||[],L=L||[];for(var ne=[],ue=0;ue<F;ue++){var fe={};fe.x=C[ue]*Math.sin(L[ue]),fe.y=-C[ue]*Math.cos(L[ue]),ne.push(fe)}return ne}}]),ai}(),OM=function(ai){A(L,$M);var C=j(L);function L(F){var ne;I(this,L),(ne=C.call(this,F)).ctx=F,ne.w=F.w,ne.animBeginArr=[0],ne.animDur=0;var ue=ne.w;return ne.startAngle=ue.config.plotOptions.radialBar.startAngle,ne.endAngle=ue.config.plotOptions.radialBar.endAngle,ne.totalAngle=Math.abs(ue.config.plotOptions.radialBar.endAngle-ue.config.plotOptions.radialBar.startAngle),ne.trackStartAngle=ue.config.plotOptions.radialBar.track.startAngle,ne.trackEndAngle=ue.config.plotOptions.radialBar.track.endAngle,ne.barLabels=ne.w.config.plotOptions.radialBar.barLabels,ne.donutDataLabels=ne.w.config.plotOptions.radialBar.dataLabels,ne.radialDataLabels=ne.donutDataLabels,ne.trackStartAngle||(ne.trackStartAngle=ne.startAngle),ne.trackEndAngle||(ne.trackEndAngle=ne.endAngle),ne.endAngle===360&&(ne.endAngle=359.99),ne.margin=parseInt(ue.config.plotOptions.radialBar.track.margin,10),ne.onBarLabelClick=ne.onBarLabelClick.bind(O(ne)),ne}return M(L,[{key:"draw",value:function(F){var ne=this.w,ue=new ge(this.ctx),fe=ue.group({class:"apexcharts-radialbar"});if(ne.globals.noData)return fe;var me=ue.group(),Pe=this.defaultSize/2,Re=ne.globals.gridWidth/2,Xe=this.defaultSize/2.05;ne.config.chart.sparkline.enabled||(Xe=Xe-ne.config.stroke.width-ne.config.chart.dropShadow.blur);var qe=ne.globals.fill.colors;if(ne.config.plotOptions.radialBar.track.show){var Ke=this.drawTracks({size:Xe,centerX:Re,centerY:Pe,colorArr:qe,series:F});me.add(Ke)}var nt=this.drawArcs({size:Xe,centerX:Re,centerY:Pe,colorArr:qe,series:F}),It=360;ne.config.plotOptions.radialBar.startAngle<0&&(It=this.totalAngle);var Tt=(360-It)/360;if(ne.globals.radialSize=Xe-Xe*Tt,this.radialDataLabels.value.show){var ni=Math.max(this.radialDataLabels.value.offsetY,this.radialDataLabels.name.offsetY);ne.globals.radialSize+=ni*Tt}return me.add(nt.g),ne.config.plotOptions.radialBar.hollow.position==="front"&&(nt.g.add(nt.elHollow),nt.dataLabels&&nt.g.add(nt.dataLabels)),fe.add(me),fe}},{key:"drawTracks",value:function(F){var ne=this.w,ue=new ge(this.ctx),fe=ue.group({class:"apexcharts-tracks"}),me=new oe(this.ctx),Pe=new Z(this.ctx),Re=this.getStrokeWidth(F);F.size=F.size-Re/2;for(var Xe=0;Xe<F.series.length;Xe++){var qe=ue.group({class:"apexcharts-radialbar-track apexcharts-track"});fe.add(qe),qe.attr({rel:Xe+1}),F.size=F.size-Re-this.margin;var Ke=ne.config.plotOptions.radialBar.track,nt=Pe.fillPath({seriesNumber:0,size:F.size,fillColors:Array.isArray(Ke.background)?Ke.background[Xe]:Ke.background,solid:!0}),It=this.trackStartAngle,Tt=this.trackEndAngle;Math.abs(Tt)+Math.abs(It)>=360&&(Tt=360-Math.abs(this.startAngle)-.1);var ni=ue.drawPath({d:"",stroke:nt,strokeWidth:Re*parseInt(Ke.strokeWidth,10)/100,fill:"none",strokeOpacity:Ke.opacity,classes:"apexcharts-radialbar-area"});if(Ke.dropShadow.enabled){var fi=Ke.dropShadow;me.dropShadow(ni,fi)}qe.add(ni),ni.attr("id","apexcharts-radialbarTrack-"+Xe),this.animatePaths(ni,{centerX:F.centerX,centerY:F.centerY,endAngle:Tt,startAngle:It,size:F.size,i:Xe,totalItems:2,animBeginArr:0,dur:0,isTrack:!0,easing:ne.globals.easing})}return fe}},{key:"drawArcs",value:function(F){var ne=this.w,ue=new ge(this.ctx),fe=new Z(this.ctx),me=new oe(this.ctx),Pe=ue.group(),Re=this.getStrokeWidth(F);F.size=F.size-Re/2;var Xe=ne.config.plotOptions.radialBar.hollow.background,qe=F.size-Re*F.series.length-this.margin*F.series.length-Re*parseInt(ne.config.plotOptions.radialBar.track.strokeWidth,10)/100/2,Ke=qe-ne.config.plotOptions.radialBar.hollow.margin;ne.config.plotOptions.radialBar.hollow.image!==void 0&&(Xe=this.drawHollowImage(F,Pe,qe,Xe));var nt=this.drawHollow({size:Ke,centerX:F.centerX,centerY:F.centerY,fill:Xe||"transparent"});if(ne.config.plotOptions.radialBar.hollow.dropShadow.enabled){var It=ne.config.plotOptions.radialBar.hollow.dropShadow;me.dropShadow(nt,It)}var Tt=1;!this.radialDataLabels.total.show&&ne.globals.series.length>1&&(Tt=0);var ni=null;this.radialDataLabels.show&&(ni=this.renderInnerDataLabels(this.radialDataLabels,{hollowSize:qe,centerX:F.centerX,centerY:F.centerY,opacity:Tt})),ne.config.plotOptions.radialBar.hollow.position==="back"&&(Pe.add(nt),ni&&Pe.add(ni));var fi=!1;ne.config.plotOptions.radialBar.inverseOrder&&(fi=!0);for(var gi=fi?F.series.length-1:0;fi?gi>=0:gi<F.series.length;fi?gi--:gi++){var je=ue.group({class:"apexcharts-series apexcharts-radial-series",seriesName:Y.escapeString(ne.globals.seriesNames[gi])});Pe.add(je),je.attr({rel:gi+1,"data:realIndex":gi}),this.ctx.series.addCollapsedClassToSeries(je,gi),F.size=F.size-Re-this.margin;var it=fe.fillPath({seriesNumber:gi,size:F.size,value:F.series[gi]}),Ct=this.startAngle,si=void 0,di=Y.negToZero(F.series[gi]>100?100:F.series[gi])/100,yi=Math.round(this.totalAngle*di)+this.startAngle,nM=void 0;ne.globals.dataChanged&&(si=this.startAngle,nM=Math.round(this.totalAngle*Y.negToZero(ne.globals.previousPaths[gi])/100)+si),Math.abs(yi)+Math.abs(Ct)>=360&&(yi-=.01),Math.abs(nM)+Math.abs(si)>=360&&(nM-=.01);var iM=yi-Ct,mM=Array.isArray(ne.config.stroke.dashArray)?ne.config.stroke.dashArray[gi]:ne.config.stroke.dashArray,EM=ue.drawPath({d:"",stroke:it,strokeWidth:Re,fill:"none",fillOpacity:ne.config.fill.opacity,classes:"apexcharts-radialbar-area apexcharts-radialbar-slice-"+gi,strokeDashArray:mM});if(ge.setAttrs(EM.node,{"data:angle":iM,"data:value":F.series[gi]}),ne.config.chart.dropShadow.enabled){var wM=ne.config.chart.dropShadow;me.dropShadow(EM,wM,gi)}if(me.setSelectionFilter(EM,0,gi),this.addListeners(EM,this.radialDataLabels),je.add(EM),EM.attr({index:0,j:gi}),this.barLabels.enabled){var GM=Y.polarToCartesian(F.centerX,F.centerY,F.size,Ct),qM=this.barLabels.formatter(ne.globals.seriesNames[gi],{seriesIndex:gi,w:ne}),JM=["apexcharts-radialbar-label"];this.barLabels.onClick||JM.push("apexcharts-no-click");var zT=this.barLabels.useSeriesColors?ne.globals.colors[gi]:ne.config.chart.foreColor;zT||(zT=ne.config.chart.foreColor);var WT=GM.x-this.barLabels.margin,FT=GM.y,KT=ue.drawText({x:WT,y:FT,text:qM,textAnchor:"end",dominantBaseline:"middle",fontFamily:this.barLabels.fontFamily,fontWeight:this.barLabels.fontWeight,fontSize:this.barLabels.fontSize,foreColor:zT,cssClass:JM.join(" ")});KT.on("click",this.onBarLabelClick),KT.attr({rel:gi+1}),Ct!==0&&KT.attr({"transform-origin":"".concat(WT," ").concat(FT),transform:"rotate(".concat(Ct," 0 0)")}),je.add(KT)}var nN=0;!this.initialAnim||ne.globals.resized||ne.globals.dataChanged||(nN=ne.config.chart.animations.speed),ne.globals.dataChanged&&(nN=ne.config.chart.animations.dynamicAnimation.speed),this.animDur=nN/(1.2*F.series.length)+this.animDur,this.animBeginArr.push(this.animDur),this.animatePaths(EM,{centerX:F.centerX,centerY:F.centerY,endAngle:yi,startAngle:Ct,prevEndAngle:nM,prevStartAngle:si,size:F.size,i:gi,totalItems:2,animBeginArr:this.animBeginArr,dur:nN,shouldSetPrevPaths:!0,easing:ne.globals.easing})}return{g:Pe,elHollow:nt,dataLabels:ni}}},{key:"drawHollow",value:function(F){var ne=new ge(this.ctx).drawCircle(2*F.size);return ne.attr({class:"apexcharts-radialbar-hollow",cx:F.centerX,cy:F.centerY,r:F.size,fill:F.fill}),ne}},{key:"drawHollowImage",value:function(F,ne,ue,fe){var me=this.w,Pe=new Z(this.ctx),Re=Y.randomId(),Xe=me.config.plotOptions.radialBar.hollow.image;if(me.config.plotOptions.radialBar.hollow.imageClipped)Pe.clippedImgArea({width:ue,height:ue,image:Xe,patternID:"pattern".concat(me.globals.cuid).concat(Re)}),fe="url(#pattern".concat(me.globals.cuid).concat(Re,")");else{var qe=me.config.plotOptions.radialBar.hollow.imageWidth,Ke=me.config.plotOptions.radialBar.hollow.imageHeight;if(qe===void 0&&Ke===void 0){var nt=me.globals.dom.Paper.image(Xe).loaded(function(Tt){this.move(F.centerX-Tt.width/2+me.config.plotOptions.radialBar.hollow.imageOffsetX,F.centerY-Tt.height/2+me.config.plotOptions.radialBar.hollow.imageOffsetY)});ne.add(nt)}else{var It=me.globals.dom.Paper.image(Xe).loaded(function(Tt){this.move(F.centerX-qe/2+me.config.plotOptions.radialBar.hollow.imageOffsetX,F.centerY-Ke/2+me.config.plotOptions.radialBar.hollow.imageOffsetY),this.size(qe,Ke)});ne.add(It)}}return fe}},{key:"getStrokeWidth",value:function(F){var ne=this.w;return F.size*(100-parseInt(ne.config.plotOptions.radialBar.hollow.size,10))/100/(F.series.length+1)-this.margin}},{key:"onBarLabelClick",value:function(F){var ne=parseInt(F.target.getAttribute("rel"),10)-1,ue=this.barLabels.onClick,fe=this.w;ue&&ue(fe.globals.seriesNames[ne],{w:fe,seriesIndex:ne})}}]),L}(),UM=function(ai){A(L,yM);var C=j(L);function L(){return I(this,L),C.apply(this,arguments)}return M(L,[{key:"draw",value:function(F,ne){var ue=this.w,fe=new ge(this.ctx);this.rangeBarOptions=this.w.config.plotOptions.rangeBar,this.series=F,this.seriesRangeStart=ue.globals.seriesRangeStart,this.seriesRangeEnd=ue.globals.seriesRangeEnd,this.barHelpers.initVariables(F);for(var me=fe.group({class:"apexcharts-rangebar-series apexcharts-plot-series"}),Pe=0;Pe<F.length;Pe++){var Re,Xe,qe,Ke,nt=void 0,It=void 0,Tt=ue.globals.comboCharts?ne[Pe]:Pe,ni=fe.group({class:"apexcharts-series",seriesName:Y.escapeString(ue.globals.seriesNames[Tt]),rel:Pe+1,"data:realIndex":Tt});this.ctx.series.addCollapsedClassToSeries(ni,Tt),F[Pe].length>0&&(this.visibleI=this.visibleI+1);var fi=0,gi=0;this.yRatio.length>1&&(this.yaxisIndex=Tt);var je=this.barHelpers.initialPositions();It=je.y,Ke=je.zeroW,nt=je.x,gi=je.barWidth,fi=je.barHeight,Re=je.xDivision,Xe=je.yDivision,qe=je.zeroH;for(var it=fe.group({class:"apexcharts-datalabels","data:realIndex":Tt}),Ct=fe.group({class:"apexcharts-rangebar-goals-markers"}),si=0;si<ue.globals.dataPoints;si++){var di,yi=this.barHelpers.getStrokeWidth(Pe,si,Tt),nM=this.seriesRangeStart[Pe][si],iM=this.seriesRangeEnd[Pe][si],mM=null,EM=null,wM=null,GM={x:nt,y:It,strokeWidth:yi,elSeries:ni},qM=this.seriesLen;if(ue.config.plotOptions.bar.rangeBarGroupRows&&(qM=1),ue.config.series[Pe].data[si]===void 0)break;if(this.isHorizontal){wM=It+fi*this.visibleI;var JM=(Xe-fi*qM)/2;if(ue.config.series[Pe].data[si].x){var zT=this.detectOverlappingBars({i:Pe,j:si,barYPosition:wM,srty:JM,barHeight:fi,yDivision:Xe,initPositions:je});fi=zT.barHeight,wM=zT.barYPosition}gi=(mM=this.drawRangeBarPaths(_({indexes:{i:Pe,j:si,realIndex:Tt},barHeight:fi,barYPosition:wM,zeroW:Ke,yDivision:Xe,y1:nM,y2:iM},GM))).barWidth}else{ue.globals.isXNumeric&&(nt=(ue.globals.seriesX[Pe][si]-ue.globals.minX)/this.xRatio-gi/2),EM=nt+gi*this.visibleI;var WT=(Re-gi*qM)/2;if(ue.config.series[Pe].data[si].x){var FT=this.detectOverlappingBars({i:Pe,j:si,barXPosition:EM,srtx:WT,barWidth:gi,xDivision:Re,initPositions:je});gi=FT.barWidth,EM=FT.barXPosition}fi=(mM=this.drawRangeColumnPaths(_({indexes:{i:Pe,j:si,realIndex:Tt},barWidth:gi,barXPosition:EM,zeroH:qe,xDivision:Re},GM))).barHeight}var KT=this.barHelpers.drawGoalLine({barXPosition:mM.barXPosition,barYPosition:wM,goalX:mM.goalX,goalY:mM.goalY,barHeight:fi,barWidth:gi});KT&&Ct.add(KT),It=mM.y,nt=mM.x;var nN=this.barHelpers.getPathFillColor(F,Pe,si,Tt),SN=ue.globals.stroke.colors[Tt];this.renderSeries((S(di={realIndex:Tt,pathFill:nN,lineFill:SN,j:si,i:Pe,x:nt,y:It,y1:nM,y2:iM,pathFrom:mM.pathFrom,pathTo:mM.pathTo,strokeWidth:yi,elSeries:ni,series:F,barHeight:fi,barWidth:gi,barXPosition:EM,barYPosition:wM},"barWidth",gi),S(di,"elDataLabelsWrap",it),S(di,"elGoalsMarkers",Ct),S(di,"visibleSeries",this.visibleI),S(di,"type","rangebar"),di))}me.add(ni)}return me}},{key:"detectOverlappingBars",value:function(F){var ne=F.i,ue=F.j,fe=F.barYPosition,me=F.barXPosition,Pe=F.srty,Re=F.srtx,Xe=F.barHeight,qe=F.barWidth,Ke=F.yDivision,nt=F.xDivision,It=F.initPositions,Tt=this.w,ni=[],fi=Tt.config.series[ne].data[ue].rangeName,gi=Tt.config.series[ne].data[ue].x,je=Array.isArray(gi)?gi.join(" "):gi,it=Tt.globals.labels.map(function(si){return Array.isArray(si)?si.join(" "):si}).indexOf(je),Ct=Tt.globals.seriesRange[ne].findIndex(function(si){return si.x===je&&si.overlaps.length>0});return this.isHorizontal?(fe=Tt.config.plotOptions.bar.rangeBarGroupRows?Pe+Ke*it:Pe+Xe*this.visibleI+Ke*it,Ct>-1&&!Tt.config.plotOptions.bar.rangeBarOverlap&&(ni=Tt.globals.seriesRange[ne][Ct].overlaps).indexOf(fi)>-1&&(fe=(Xe=It.barHeight/ni.length)*this.visibleI+Ke*(100-parseInt(this.barOptions.barHeight,10))/100/2+Xe*(this.visibleI+ni.indexOf(fi))+Ke*it)):(it>-1&&(me=Tt.config.plotOptions.bar.rangeBarGroupRows?Re+nt*it:Re+qe*this.visibleI+nt*it),Ct>-1&&!Tt.config.plotOptions.bar.rangeBarOverlap&&(ni=Tt.globals.seriesRange[ne][Ct].overlaps).indexOf(fi)>-1&&(me=(qe=It.barWidth/ni.length)*this.visibleI+nt*(100-parseInt(this.barOptions.barWidth,10))/100/2+qe*(this.visibleI+ni.indexOf(fi))+nt*it)),{barYPosition:fe,barXPosition:me,barHeight:Xe,barWidth:qe}}},{key:"drawRangeColumnPaths",value:function(F){var ne=F.indexes,ue=F.x,fe=F.xDivision,me=F.barWidth,Pe=F.barXPosition,Re=F.zeroH,Xe=this.w,qe=ne.i,Ke=ne.j,nt=this.yRatio[this.yaxisIndex],It=ne.realIndex,Tt=this.getRangeValue(It,Ke),ni=Math.min(Tt.start,Tt.end),fi=Math.max(Tt.start,Tt.end);this.series[qe][Ke]===void 0||this.series[qe][Ke]===null?ni=Re:(ni=Re-ni/nt,fi=Re-fi/nt);var gi=Math.abs(fi-ni),je=this.barHelpers.getColumnPaths({barXPosition:Pe,barWidth:me,y1:ni,y2:fi,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,realIndex:ne.realIndex,i:It,j:Ke,w:Xe});if(Xe.globals.isXNumeric){var it=this.getBarXForNumericXAxis({x:ue,j:Ke,realIndex:It,barWidth:me});ue=it.x,Pe=it.barXPosition}else ue+=fe;return{pathTo:je.pathTo,pathFrom:je.pathFrom,barHeight:gi,x:ue,y:fi,goalY:this.barHelpers.getGoalValues("y",null,Re,qe,Ke),barXPosition:Pe}}},{key:"drawRangeBarPaths",value:function(F){var ne=F.indexes,ue=F.y,fe=F.y1,me=F.y2,Pe=F.yDivision,Re=F.barHeight,Xe=F.barYPosition,qe=F.zeroW,Ke=this.w,nt=qe+fe/this.invertedYRatio,It=qe+me/this.invertedYRatio,Tt=Math.abs(It-nt),ni=this.barHelpers.getBarpaths({barYPosition:Xe,barHeight:Re,x1:nt,x2:It,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,i:ne.realIndex,realIndex:ne.realIndex,j:ne.j,w:Ke});return Ke.globals.isXNumeric||(ue+=Pe),{pathTo:ni.pathTo,pathFrom:ni.pathFrom,barWidth:Tt,x:It,goalX:this.barHelpers.getGoalValues("x",qe,null,ne.realIndex,ne.j),y:ue}}},{key:"getRangeValue",value:function(F,ne){var ue=this.w;return{start:ue.globals.seriesRangeStart[F][ne],end:ue.globals.seriesRangeEnd[F][ne]}}}]),L}(),AM=function(){function ai(C){I(this,ai),this.w=C.w,this.lineCtx=C}return M(ai,[{key:"sameValueSeriesFix",value:function(C,L){var F=this.w;if((F.config.fill.type==="gradient"||F.config.fill.type[C]==="gradient")&&new be(this.lineCtx.ctx,F).seriesHaveSameValues(C)){var ne=L[C].slice();ne[ne.length-1]=ne[ne.length-1]+1e-6,L[C]=ne}return L}},{key:"calculatePoints",value:function(C){var L=C.series,F=C.realIndex,ne=C.x,ue=C.y,fe=C.i,me=C.j,Pe=C.prevY,Re=this.w,Xe=[],qe=[];if(me===0){var Ke=this.lineCtx.categoryAxisCorrection+Re.config.markers.offsetX;Re.globals.isXNumeric&&(Ke=(Re.globals.seriesX[F][0]-Re.globals.minX)/this.lineCtx.xRatio+Re.config.markers.offsetX),Xe.push(Ke),qe.push(Y.isNumber(L[fe][0])?Pe+Re.config.markers.offsetY:null),Xe.push(ne+Re.config.markers.offsetX),qe.push(Y.isNumber(L[fe][me+1])?ue+Re.config.markers.offsetY:null)}else Xe.push(ne+Re.config.markers.offsetX),qe.push(Y.isNumber(L[fe][me+1])?ue+Re.config.markers.offsetY:null);return{x:Xe,y:qe}}},{key:"checkPreviousPaths",value:function(C){for(var L=C.pathFromLine,F=C.pathFromArea,ne=C.realIndex,ue=this.w,fe=0;fe<ue.globals.previousPaths.length;fe++){var me=ue.globals.previousPaths[fe];(me.type==="line"||me.type==="area")&&me.paths.length>0&&parseInt(me.realIndex,10)===parseInt(ne,10)&&(me.type==="line"?(this.lineCtx.appendPathFrom=!1,L=ue.globals.previousPaths[fe].paths[0].d):me.type==="area"&&(this.lineCtx.appendPathFrom=!1,F=ue.globals.previousPaths[fe].paths[0].d,ue.config.stroke.show&&ue.globals.previousPaths[fe].paths[1]&&(L=ue.globals.previousPaths[fe].paths[1].d)))}return{pathFromLine:L,pathFromArea:F}}},{key:"determineFirstPrevY",value:function(C){var L,F,ne=C.i,ue=C.series,fe=C.prevY,me=C.lineYPosition,Pe=this.w,Re=Pe.config.chart.stacked&&!Pe.globals.comboCharts||Pe.config.chart.stacked&&Pe.globals.comboCharts&&(!this.w.config.chart.stackOnlyBar||((L=this.w.config.series[ne])===null||L===void 0?void 0:L.type)==="bar");if(((F=ue[ne])===null||F===void 0?void 0:F[0])!==void 0)fe=(me=Re&&ne>0?this.lineCtx.prevSeriesY[ne-1][0]:this.lineCtx.zeroY)-ue[ne][0]/this.lineCtx.yRatio[this.lineCtx.yaxisIndex]+2*(this.lineCtx.isReversed?ue[ne][0]/this.lineCtx.yRatio[this.lineCtx.yaxisIndex]:0);else if(Re&&ne>0&&ue[ne][0]===void 0){for(var Xe=ne-1;Xe>=0;Xe--)if(ue[Xe][0]!==null&&ue[Xe][0]!==void 0){fe=me=this.lineCtx.prevSeriesY[Xe][0];break}}return{prevY:fe,lineYPosition:me}}}]),ai}(),RM=function(ai){for(var C,L,F,ne,ue=function(Xe){for(var qe=[],Ke=Xe[0],nt=Xe[1],It=qe[0]=BM(Ke,nt),Tt=1,ni=Xe.length-1;Tt<ni;Tt++)Ke=nt,nt=Xe[Tt+1],qe[Tt]=.5*(It+(It=BM(Ke,nt)));return qe[Tt]=It,qe}(ai),fe=ai.length-1,me=[],Pe=0;Pe<fe;Pe++)F=BM(ai[Pe],ai[Pe+1]),Math.abs(F)<1e-6?ue[Pe]=ue[Pe+1]=0:(ne=(C=ue[Pe]/F)*C+(L=ue[Pe+1]/F)*L)>9&&(ne=3*F/Math.sqrt(ne),ue[Pe]=ne*C,ue[Pe+1]=ne*L);for(var Re=0;Re<=fe;Re++)ne=(ai[Math.min(fe,Re+1)][0]-ai[Math.max(0,Re-1)][0])/(6*(1+ue[Re]*ue[Re])),me.push([ne||0,ue[Re]*ne||0]);return me},FM=function(ai){for(var C="",L=0;L<ai.length;L++){var F=ai[L],ne=F.length;ne>4?(C+="C".concat(F[0],", ").concat(F[1]),C+=", ".concat(F[2],", ").concat(F[3]),C+=", ".concat(F[4],", ").concat(F[5])):ne>2&&(C+="S".concat(F[0],", ").concat(F[1]),C+=", ".concat(F[2],", ").concat(F[3]))}return C},xM=function(ai){var C=RM(ai),L=ai[1],F=ai[0],ne=[],ue=C[1],fe=C[0];ne.push(F,[F[0]+fe[0],F[1]+fe[1],L[0]-ue[0],L[1]-ue[1],L[0],L[1]]);for(var me=2,Pe=C.length;me<Pe;me++){var Re=ai[me],Xe=C[me];ne.push([Re[0]-Xe[0],Re[1]-Xe[1],Re[0],Re[1]])}return ne};function BM(ai,C){return(C[1]-ai[1])/(C[0]-ai[0])}var WM=function(){function ai(C,L,F){I(this,ai),this.ctx=C,this.w=C.w,this.xyRatios=L,this.pointsChart=!(this.w.config.chart.type!=="bubble"&&this.w.config.chart.type!=="scatter")||F,this.scatter=new Ye(this.ctx),this.noNegatives=this.w.globals.minX===Number.MAX_VALUE,this.lineHelpers=new AM(this),this.markers=new ve(this.ctx),this.prevSeriesY=[],this.categoryAxisCorrection=0,this.yaxisIndex=0}return M(ai,[{key:"draw",value:function(C,L,F,ne){var ue,fe=this.w,me=new ge(this.ctx),Pe=fe.globals.comboCharts?L:fe.config.chart.type,Re=me.group({class:"apexcharts-".concat(Pe,"-series apexcharts-plot-series")}),Xe=new be(this.ctx,fe);this.yRatio=this.xyRatios.yRatio,this.zRatio=this.xyRatios.zRatio,this.xRatio=this.xyRatios.xRatio,this.baseLineY=this.xyRatios.baseLineY,C=Xe.getLogSeries(C),this.yRatio=Xe.getLogYRatios(this.yRatio);for(var qe=[],Ke=0;Ke<C.length;Ke++){C=this.lineHelpers.sameValueSeriesFix(Ke,C);var nt=fe.globals.comboCharts?F[Ke]:Ke;this._initSerieVariables(C,Ke,nt);var It=[],Tt=[],ni=[],fi=fe.globals.padHorizontal+this.categoryAxisCorrection;this.ctx.series.addCollapsedClassToSeries(this.elSeries,nt),fe.globals.isXNumeric&&fe.globals.seriesX.length>0&&(fi=(fe.globals.seriesX[nt][0]-fe.globals.minX)/this.xRatio),ni.push(fi);var gi,je=fi,it=void 0,Ct=je,si=this.zeroY,di=this.zeroY;si=this.lineHelpers.determineFirstPrevY({i:Ke,series:C,prevY:si,lineYPosition:0}).prevY,fe.config.stroke.curve==="monotonCubic"&&C[Ke][0]===null?It.push(null):It.push(si),gi=si,Pe==="rangeArea"&&(it=di=this.lineHelpers.determineFirstPrevY({i:Ke,series:ne,prevY:di,lineYPosition:0}).prevY,Tt.push(di));var yi={type:Pe,series:C,realIndex:nt,i:Ke,x:fi,y:1,pX:je,pY:gi,pathsFrom:this._calculatePathsFrom({type:Pe,series:C,i:Ke,realIndex:nt,prevX:Ct,prevY:si,prevY2:di}),linePaths:[],areaPaths:[],seriesIndex:F,lineYPosition:0,xArrj:ni,yArrj:It,y2Arrj:Tt,seriesRangeEnd:ne},nM=this._iterateOverDataPoints(_(_({},yi),{},{iterations:Pe==="rangeArea"?C[Ke].length-1:void 0,isRangeStart:!0}));if(Pe==="rangeArea"){var iM=this._calculatePathsFrom({series:ne,i:Ke,realIndex:nt,prevX:Ct,prevY:di}),mM=this._iterateOverDataPoints(_(_({},yi),{},{series:ne,pY:it,pathsFrom:iM,iterations:ne[Ke].length-1,isRangeStart:!1}));nM.linePaths[0]=mM.linePath+nM.linePath,nM.pathFromLine=mM.pathFromLine+nM.pathFromLine}this._handlePaths({type:Pe,realIndex:nt,i:Ke,paths:nM}),this.elSeries.add(this.elPointsMain),this.elSeries.add(this.elDataLabelsWrap),qe.push(this.elSeries)}if(((ue=fe.config.series[0])===null||ue===void 0?void 0:ue.zIndex)!==void 0&&qe.sort(function(GM,qM){return Number(GM.node.getAttribute("zIndex"))-Number(qM.node.getAttribute("zIndex"))}),fe.config.chart.stacked)for(var EM=qe.length;EM>0;EM--)Re.add(qe[EM-1]);else for(var wM=0;wM<qe.length;wM++)Re.add(qe[wM]);return Re}},{key:"_initSerieVariables",value:function(C,L,F){var ne=this.w,ue=new ge(this.ctx);this.xDivision=ne.globals.gridWidth/(ne.globals.dataPoints-(ne.config.xaxis.tickPlacement==="on"?1:0)),this.strokeWidth=Array.isArray(ne.config.stroke.width)?ne.config.stroke.width[F]:ne.config.stroke.width,this.yRatio.length>1&&(this.yaxisIndex=F),this.isReversed=ne.config.yaxis[this.yaxisIndex]&&ne.config.yaxis[this.yaxisIndex].reversed,this.zeroY=ne.globals.gridHeight-this.baseLineY[this.yaxisIndex]-(this.isReversed?ne.globals.gridHeight:0)+(this.isReversed?2*this.baseLineY[this.yaxisIndex]:0),this.areaBottomY=this.zeroY,(this.zeroY>ne.globals.gridHeight||ne.config.plotOptions.area.fillTo==="end")&&(this.areaBottomY=ne.globals.gridHeight),this.categoryAxisCorrection=this.xDivision/2,this.elSeries=ue.group({class:"apexcharts-series",zIndex:ne.config.series[F].zIndex!==void 0?ne.config.series[F].zIndex:F,seriesName:Y.escapeString(ne.globals.seriesNames[F])}),this.elPointsMain=ue.group({class:"apexcharts-series-markers-wrap","data:realIndex":F}),this.elDataLabelsWrap=ue.group({class:"apexcharts-datalabels","data:realIndex":F});var fe=C[L].length===ne.globals.dataPoints;this.elSeries.attr({"data:longestSeries":fe,rel:L+1,"data:realIndex":F}),this.appendPathFrom=!0}},{key:"_calculatePathsFrom",value:function(C){var L,F,ne,ue,fe=C.type,me=C.series,Pe=C.i,Re=C.realIndex,Xe=C.prevX,qe=C.prevY,Ke=C.prevY2,nt=this.w,It=new ge(this.ctx);if(me[Pe][0]===null){for(var Tt=0;Tt<me[Pe].length;Tt++)if(me[Pe][Tt]!==null){Xe=this.xDivision*Tt,qe=this.zeroY-me[Pe][Tt]/this.yRatio[this.yaxisIndex],L=It.move(Xe,qe),F=It.move(Xe,this.areaBottomY);break}}else L=It.move(Xe,qe),fe==="rangeArea"&&(L=It.move(Xe,Ke)+It.line(Xe,qe)),F=It.move(Xe,this.areaBottomY)+It.line(Xe,qe);if(ne=It.move(-1,this.zeroY)+It.line(-1,this.zeroY),ue=It.move(-1,this.zeroY)+It.line(-1,this.zeroY),nt.globals.previousPaths.length>0){var ni=this.lineHelpers.checkPreviousPaths({pathFromLine:ne,pathFromArea:ue,realIndex:Re});ne=ni.pathFromLine,ue=ni.pathFromArea}return{prevX:Xe,prevY:qe,linePath:L,areaPath:F,pathFromLine:ne,pathFromArea:ue}}},{key:"_handlePaths",value:function(C){var L=C.type,F=C.realIndex,ne=C.i,ue=C.paths,fe=this.w,me=new ge(this.ctx),Pe=new Z(this.ctx);this.prevSeriesY.push(ue.yArrj),fe.globals.seriesXvalues[F]=ue.xArrj,fe.globals.seriesYvalues[F]=ue.yArrj;var Re=fe.config.forecastDataPoints;if(Re.count>0&&L!=="rangeArea"){var Xe=fe.globals.seriesXvalues[F][fe.globals.seriesXvalues[F].length-Re.count-1],qe=me.drawRect(Xe,0,fe.globals.gridWidth,fe.globals.gridHeight,0);fe.globals.dom.elForecastMask.appendChild(qe.node);var Ke=me.drawRect(0,0,Xe,fe.globals.gridHeight,0);fe.globals.dom.elNonForecastMask.appendChild(Ke.node)}this.pointsChart||fe.globals.delayedElements.push({el:this.elPointsMain.node,index:F});var nt={i:ne,realIndex:F,animationDelay:ne,initialSpeed:fe.config.chart.animations.speed,dataChangeSpeed:fe.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(L)};if(L==="area")for(var It=Pe.fillPath({seriesNumber:F}),Tt=0;Tt<ue.areaPaths.length;Tt++){var ni=me.renderPaths(_(_({},nt),{},{pathFrom:ue.pathFromArea,pathTo:ue.areaPaths[Tt],stroke:"none",strokeWidth:0,strokeLineCap:null,fill:It}));this.elSeries.add(ni)}if(fe.config.stroke.show&&!this.pointsChart){var fi=null;if(L==="line")fi=Pe.fillPath({seriesNumber:F,i:ne});else if(fe.config.stroke.fill.type==="solid")fi=fe.globals.stroke.colors[F];else{var gi=fe.config.fill;fe.config.fill=fe.config.stroke.fill,fi=Pe.fillPath({seriesNumber:F,i:ne}),fe.config.fill=gi}for(var je=0;je<ue.linePaths.length;je++){var it=fi;L==="rangeArea"&&(it=Pe.fillPath({seriesNumber:F}));var Ct=_(_({},nt),{},{pathFrom:ue.pathFromLine,pathTo:ue.linePaths[je],stroke:fi,strokeWidth:this.strokeWidth,strokeLineCap:fe.config.stroke.lineCap,fill:L==="rangeArea"?it:"none"}),si=me.renderPaths(Ct);if(this.elSeries.add(si),si.attr("fill-rule","evenodd"),Re.count>0&&L!=="rangeArea"){var di=me.renderPaths(Ct);di.node.setAttribute("stroke-dasharray",Re.dashArray),Re.strokeWidth&&di.node.setAttribute("stroke-width",Re.strokeWidth),this.elSeries.add(di),di.attr("clip-path","url(#forecastMask".concat(fe.globals.cuid,")")),si.attr("clip-path","url(#nonForecastMask".concat(fe.globals.cuid,")"))}}}}},{key:"_iterateOverDataPoints",value:function(C){var L,F=this,ne=C.type,ue=C.series,fe=C.iterations,me=C.realIndex,Pe=C.i,Re=C.x,Xe=C.y,qe=C.pX,Ke=C.pY,nt=C.pathsFrom,It=C.linePaths,Tt=C.areaPaths,ni=C.seriesIndex,fi=C.lineYPosition,gi=C.xArrj,je=C.yArrj,it=C.y2Arrj,Ct=C.isRangeStart,si=C.seriesRangeEnd,di=this.w,yi=new ge(this.ctx),nM=this.yRatio,iM=nt.prevY,mM=nt.linePath,EM=nt.areaPath,wM=nt.pathFromLine,GM=nt.pathFromArea,qM=Y.isNumber(di.globals.minYArr[me])?di.globals.minYArr[me]:di.globals.minY;fe||(fe=di.globals.dataPoints>1?di.globals.dataPoints-1:di.globals.dataPoints);for(var JM=function(WN,HN){return HN-WN/nM[F.yaxisIndex]+2*(F.isReversed?WN/nM[F.yaxisIndex]:0)},zT=Xe,WT=di.config.chart.stacked&&!di.globals.comboCharts||di.config.chart.stacked&&di.globals.comboCharts&&(!this.w.config.chart.stackOnlyBar||((L=this.w.config.series[me])===null||L===void 0?void 0:L.type)==="bar"),FT=0;FT<fe;FT++){var KT=ue[Pe][FT+1]===void 0||ue[Pe][FT+1]===null;if(di.globals.isXNumeric){var nN=di.globals.seriesX[me][FT+1];di.globals.seriesX[me][FT+1]===void 0&&(nN=di.globals.seriesX[me][fe-1]),Re=(nN-di.globals.minX)/this.xRatio}else Re+=this.xDivision;WT?Pe>0&&di.globals.collapsedSeries.length<di.config.series.length-1?fi=this.prevSeriesY[function(WN){for(var HN=WN,hN=0;hN<di.globals.series.length;hN++)if(di.globals.collapsedSeriesIndices.indexOf(WN)>-1){HN--;break}return HN>=0?HN:0}(Pe-1)][FT+1]:fi=this.zeroY:fi=this.zeroY,KT?Xe=JM(qM,fi):(Xe=JM(ue[Pe][FT+1],fi),ne==="rangeArea"&&(zT=JM(si[Pe][FT+1],fi))),gi.push(Re),KT&&di.config.stroke.curve==="smooth"?je.push(null):je.push(Xe),it.push(zT);var SN=this.lineHelpers.calculatePoints({series:ue,x:Re,y:Xe,realIndex:me,i:Pe,j:FT,prevY:iM}),_N=this._createPaths({type:ne,series:ue,i:Pe,realIndex:me,j:FT,x:Re,y:Xe,y2:zT,xArrj:gi,yArrj:je,y2Arrj:it,pX:qe,pY:Ke,linePath:mM,areaPath:EM,linePaths:It,areaPaths:Tt,seriesIndex:ni,isRangeStart:Ct});Tt=_N.areaPaths,It=_N.linePaths,qe=_N.pX,Ke=_N.pY,EM=_N.areaPath,mM=_N.linePath,!this.appendPathFrom||di.config.stroke.curve==="monotoneCubic"&&ne==="rangeArea"||(wM+=yi.line(Re,this.zeroY),GM+=yi.line(Re,this.zeroY)),this.handleNullDataPoints(ue,SN,Pe,FT,me),this._handleMarkersAndLabels({type:ne,pointsPos:SN,i:Pe,j:FT,realIndex:me,isRangeStart:Ct})}return{yArrj:je,xArrj:gi,pathFromArea:GM,areaPaths:Tt,pathFromLine:wM,linePaths:It,linePath:mM,areaPath:EM}}},{key:"_handleMarkersAndLabels",value:function(C){var L=C.type,F=C.pointsPos,ne=C.isRangeStart,ue=C.i,fe=C.j,me=C.realIndex,Pe=this.w,Re=new rt(this.ctx);if(this.pointsChart)this.scatter.draw(this.elSeries,fe,{realIndex:me,pointsPos:F,zRatio:this.zRatio,elParent:this.elPointsMain});else{Pe.globals.series[ue].length>1&&this.elPointsMain.node.classList.add("apexcharts-element-hidden");var Xe=this.markers.plotChartMarkers(F,me,fe+1);Xe!==null&&this.elPointsMain.add(Xe)}var qe=Re.drawDataLabel({type:L,isRangeStart:ne,pos:F,i:me,j:fe+1});qe!==null&&this.elDataLabelsWrap.add(qe)}},{key:"_createPaths",value:function(C){var L=C.type,F=C.series,ne=C.i,ue=C.realIndex,fe=C.j,me=C.x,Pe=C.y,Re=C.xArrj,Xe=C.yArrj,qe=C.y2,Ke=C.y2Arrj,nt=C.pX,It=C.pY,Tt=C.linePath,ni=C.areaPath,fi=C.linePaths,gi=C.areaPaths,je=C.seriesIndex,it=C.isRangeStart,Ct=this.w,si=new ge(this.ctx),di=Ct.config.stroke.curve,yi=this.areaBottomY;if(Array.isArray(Ct.config.stroke.curve)&&(di=Array.isArray(je)?Ct.config.stroke.curve[je[ne]]:Ct.config.stroke.curve[ne]),L==="rangeArea"&&(Ct.globals.hasNullValues||Ct.config.forecastDataPoints.count>0)&&di==="monotoneCubic"&&(di="straight"),di==="monotoneCubic"){var nM=L==="rangeArea"?Re.length===Ct.globals.dataPoints:fe===F[ne].length-2,iM=Re.map(function(WT,FT){return[Re[FT],Xe[FT]]}).filter(function(WT){return WT[1]!==null});if(nM&&iM.length>1){var mM=xM(iM);if(Tt+=FM(mM),F[ne][0]===null?ni=Tt:ni+=FM(mM),L==="rangeArea"&&it){Tt+=si.line(Re[Re.length-1],Ke[Ke.length-1]);var EM=Re.slice().reverse(),wM=Ke.slice().reverse(),GM=EM.map(function(WT,FT){return[EM[FT],wM[FT]]}),qM=xM(GM);ni=Tt+=FM(qM)}else ni+=si.line(iM[iM.length-1][0],yi)+si.line(iM[0][0],yi)+si.move(iM[0][0],iM[0][1])+"z";fi.push(Tt),gi.push(ni)}}else if(di==="smooth"){var JM=.35*(me-nt);Ct.globals.hasNullValues?(F[ne][fe]!==null&&(F[ne][fe+1]!==null?(Tt=si.move(nt,It)+si.curve(nt+JM,It,me-JM,Pe,me+1,Pe),ni=si.move(nt+1,It)+si.curve(nt+JM,It,me-JM,Pe,me+1,Pe)+si.line(me,yi)+si.line(nt,yi)+"z"):(Tt=si.move(nt,It),ni=si.move(nt,It)+"z")),fi.push(Tt),gi.push(ni)):(Tt+=si.curve(nt+JM,It,me-JM,Pe,me,Pe),ni+=si.curve(nt+JM,It,me-JM,Pe,me,Pe)),nt=me,It=Pe,fe===F[ne].length-2&&(ni=ni+si.curve(nt,It,me,Pe,me,yi)+si.move(me,Pe)+"z",L==="rangeArea"&&it?Tt=Tt+si.curve(nt,It,me,Pe,me,qe)+si.move(me,qe)+"z":Ct.globals.hasNullValues||(fi.push(Tt),gi.push(ni)))}else{if(F[ne][fe+1]===null){Tt+=si.move(me,Pe);var zT=Ct.globals.isXNumeric?(Ct.globals.seriesX[ue][fe]-Ct.globals.minX)/this.xRatio:me-this.xDivision;ni=ni+si.line(zT,yi)+si.move(me,Pe)+"z"}F[ne][fe]===null&&(Tt+=si.move(me,Pe),ni+=si.move(me,yi)),di==="stepline"?(Tt=Tt+si.line(me,null,"H")+si.line(null,Pe,"V"),ni=ni+si.line(me,null,"H")+si.line(null,Pe,"V")):di==="straight"&&(Tt+=si.line(me,Pe),ni+=si.line(me,Pe)),fe===F[ne].length-2&&(ni=ni+si.line(me,yi)+si.move(me,Pe)+"z",L==="rangeArea"&&it?Tt=Tt+si.line(me,qe)+si.move(me,qe)+"z":(fi.push(Tt),gi.push(ni)))}return{linePaths:fi,areaPaths:gi,pX:nt,pY:It,linePath:Tt,areaPath:ni}}},{key:"handleNullDataPoints",value:function(C,L,F,ne,ue){var fe=this.w;if(C[F][ne]===null&&fe.config.markers.showNullDataPoints||C[F].length===1){var me=this.markers.plotChartMarkers(L,ue,ne+1,this.strokeWidth-fe.config.markers.strokeWidth/2,!0);me!==null&&this.elPointsMain.add(me)}}}]),ai}();window.TreemapSquared={},window.TreemapSquared.generate=function(){function ai(me,Pe,Re,Xe){this.xoffset=me,this.yoffset=Pe,this.height=Xe,this.width=Re,this.shortestEdge=function(){return Math.min(this.height,this.width)},this.getCoordinates=function(qe){var Ke,nt=[],It=this.xoffset,Tt=this.yoffset,ni=ue(qe)/this.height,fi=ue(qe)/this.width;if(this.width>=this.height)for(Ke=0;Ke<qe.length;Ke++)nt.push([It,Tt,It+ni,Tt+qe[Ke]/ni]),Tt+=qe[Ke]/ni;else for(Ke=0;Ke<qe.length;Ke++)nt.push([It,Tt,It+qe[Ke]/fi,Tt+fi]),It+=qe[Ke]/fi;return nt},this.cutArea=function(qe){var Ke;if(this.width>=this.height){var nt=qe/this.height,It=this.width-nt;Ke=new ai(this.xoffset+nt,this.yoffset,It,this.height)}else{var Tt=qe/this.width,ni=this.height-Tt;Ke=new ai(this.xoffset,this.yoffset+Tt,this.width,ni)}return Ke}}function C(me,Pe,Re,Xe,qe){Xe=Xe===void 0?0:Xe,qe=qe===void 0?0:qe;var Ke=L(function(nt,It){var Tt,ni=[],fi=It/ue(nt);for(Tt=0;Tt<nt.length;Tt++)ni[Tt]=nt[Tt]*fi;return ni}(me,Pe*Re),[],new ai(Xe,qe,Pe,Re),[]);return function(nt){var It,Tt,ni=[];for(It=0;It<nt.length;It++)for(Tt=0;Tt<nt[It].length;Tt++)ni.push(nt[It][Tt]);return ni}(Ke)}function L(me,Pe,Re,Xe){var qe,Ke,nt;if(me.length!==0)return qe=Re.shortestEdge(),function(It,Tt,ni){var fi;if(It.length===0)return!0;(fi=It.slice()).push(Tt);var gi=F(It,ni),je=F(fi,ni);return gi>=je}(Pe,Ke=me[0],qe)?(Pe.push(Ke),L(me.slice(1),Pe,Re,Xe)):(nt=Re.cutArea(ue(Pe),Xe),Xe.push(Re.getCoordinates(Pe)),L(me,[],nt,Xe)),Xe;Xe.push(Re.getCoordinates(Pe))}function F(me,Pe){var Re=Math.min.apply(Math,me),Xe=Math.max.apply(Math,me),qe=ue(me);return Math.max(Math.pow(Pe,2)*Xe/Math.pow(qe,2),Math.pow(qe,2)/(Math.pow(Pe,2)*Re))}function ne(me){return me&&me.constructor===Array}function ue(me){var Pe,Re=0;for(Pe=0;Pe<me.length;Pe++)Re+=me[Pe];return Re}function fe(me){var Pe,Re=0;if(ne(me[0]))for(Pe=0;Pe<me.length;Pe++)Re+=fe(me[Pe]);else Re=ue(me);return Re}return function me(Pe,Re,Xe,qe,Ke){qe=qe===void 0?0:qe,Ke=Ke===void 0?0:Ke;var nt,It,Tt=[],ni=[];if(ne(Pe[0])){for(It=0;It<Pe.length;It++)Tt[It]=fe(Pe[It]);for(nt=C(Tt,Re,Xe,qe,Ke),It=0;It<Pe.length;It++)ni.push(me(Pe[It],nt[It][2]-nt[It][0],nt[It][3]-nt[It][1],nt[It][0],nt[It][1]))}else ni=C(Pe,Re,Xe,qe,Ke);return ni}}();var SM,jM,YM=function(){function ai(C,L){I(this,ai),this.ctx=C,this.w=C.w,this.strokeWidth=this.w.config.stroke.width,this.helpers=new kM(C),this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.labels=[]}return M(ai,[{key:"draw",value:function(C){var L=this,F=this.w,ne=new ge(this.ctx),ue=new Z(this.ctx),fe=ne.group({class:"apexcharts-treemap"});if(F.globals.noData)return fe;var me=[];return C.forEach(function(Pe){var Re=Pe.map(function(Xe){return Math.abs(Xe)});me.push(Re)}),this.negRange=this.helpers.checkColorRange(),F.config.series.forEach(function(Pe,Re){Pe.data.forEach(function(Xe){Array.isArray(L.labels[Re])||(L.labels[Re]=[]),L.labels[Re].push(Xe.x)})}),window.TreemapSquared.generate(me,F.globals.gridWidth,F.globals.gridHeight).forEach(function(Pe,Re){var Xe=ne.group({class:"apexcharts-series apexcharts-treemap-series",seriesName:Y.escapeString(F.globals.seriesNames[Re]),rel:Re+1,"data:realIndex":Re});if(F.config.chart.dropShadow.enabled){var qe=F.config.chart.dropShadow;new oe(L.ctx).dropShadow(fe,qe,Re)}var Ke=ne.group({class:"apexcharts-data-labels"});Pe.forEach(function(nt,It){var Tt=nt[0],ni=nt[1],fi=nt[2],gi=nt[3],je=ne.drawRect(Tt,ni,fi-Tt,gi-ni,F.config.plotOptions.treemap.borderRadius,"#fff",1,L.strokeWidth,F.config.plotOptions.treemap.useFillColorAsStroke?Ct:F.globals.stroke.colors[Re]);je.attr({cx:Tt,cy:ni,index:Re,i:Re,j:It,width:fi-Tt,height:gi-ni});var it=L.helpers.getShadeColor(F.config.chart.type,Re,It,L.negRange),Ct=it.color;F.config.series[Re].data[It]!==void 0&&F.config.series[Re].data[It].fillColor&&(Ct=F.config.series[Re].data[It].fillColor);var si=ue.fillPath({color:Ct,seriesNumber:Re,dataPointIndex:It});je.node.classList.add("apexcharts-treemap-rect"),je.attr({fill:si}),L.helpers.addListeners(je);var di={x:Tt+(fi-Tt)/2,y:ni+(gi-ni)/2,width:0,height:0},yi={x:Tt,y:ni,width:fi-Tt,height:gi-ni};if(F.config.chart.animations.enabled&&!F.globals.dataChanged){var nM=1;F.globals.resized||(nM=F.config.chart.animations.speed),L.animateTreemap(je,di,yi,nM)}if(F.globals.dataChanged){var iM=1;L.dynamicAnim.enabled&&F.globals.shouldAnimate&&(iM=L.dynamicAnim.speed,F.globals.previousPaths[Re]&&F.globals.previousPaths[Re][It]&&F.globals.previousPaths[Re][It].rect&&(di=F.globals.previousPaths[Re][It].rect),L.animateTreemap(je,di,yi,iM))}var mM=L.getFontSize(nt),EM=F.config.dataLabels.formatter(L.labels[Re][It],{value:F.globals.series[Re][It],seriesIndex:Re,dataPointIndex:It,w:F});F.config.plotOptions.treemap.dataLabels.format==="truncate"&&(mM=parseInt(F.config.dataLabels.style.fontSize,10),EM=L.truncateLabels(EM,mM,Tt,ni,fi,gi));var wM=L.helpers.calculateDataLabels({text:EM,x:(Tt+fi)/2,y:(ni+gi)/2+L.strokeWidth/2+mM/3,i:Re,j:It,colorProps:it,fontSize:mM,series:C});F.config.dataLabels.enabled&&wM&&L.rotateToFitLabel(wM,mM,EM,Tt,ni,fi,gi),Xe.add(je),wM!==null&&Xe.add(wM)}),Xe.add(Ke),fe.add(Xe)}),fe}},{key:"getFontSize",value:function(C){var L=this.w,F,ne,ue,fe,me=function Pe(Re){var Xe,qe=0;if(Array.isArray(Re[0]))for(Xe=0;Xe<Re.length;Xe++)qe+=Pe(Re[Xe]);else for(Xe=0;Xe<Re.length;Xe++)qe+=Re[Xe].length;return qe}(this.labels)/function Pe(Re){var Xe,qe=0;if(Array.isArray(Re[0]))for(Xe=0;Xe<Re.length;Xe++)qe+=Pe(Re[Xe]);else for(Xe=0;Xe<Re.length;Xe++)qe+=1;return qe}(this.labels);return F=C[2]-C[0],ne=C[3]-C[1],ue=F*ne,fe=Math.pow(ue,.5),Math.min(fe/me,parseInt(L.config.dataLabels.style.fontSize,10))}},{key:"rotateToFitLabel",value:function(C,L,F,ne,ue,fe,me){var Pe=new ge(this.ctx),Re=Pe.getTextRects(F,L);if(Re.width+this.w.config.stroke.width+5>fe-ne&&Re.width<=me-ue){var Xe=Pe.rotateAroundCenter(C.node);C.node.setAttribute("transform","rotate(-90 ".concat(Xe.x," ").concat(Xe.y,") translate(").concat(Re.height/3,")"))}}},{key:"truncateLabels",value:function(C,L,F,ne,ue,fe){var me=new ge(this.ctx),Pe=me.getTextRects(C,L).width+this.w.config.stroke.width+5>ue-F&&fe-ne>ue-F?fe-ne:ue-F,Re=me.getTextBasedOnMaxWidth({text:C,maxWidth:Pe,fontSize:L});return C.length!==Re.length&&Pe/L<5?"":Re}},{key:"animateTreemap",value:function(C,L,F,ne){var ue=new ie(this.ctx);ue.animateRect(C,{x:L.x,y:L.y,width:L.width,height:L.height},{x:F.x,y:F.y,width:F.width,height:F.height},ne,function(){ue.animationCompleted(C)})}}]),ai}(),PM=86400,VM=function(){function ai(C){I(this,ai),this.ctx=C,this.w=C.w,this.timeScaleArray=[],this.utc=this.w.config.xaxis.labels.datetimeUTC}return M(ai,[{key:"calculateTimeScaleTicks",value:function(C,L){var F=this,ne=this.w;if(ne.globals.allSeriesCollapsed)return ne.globals.labels=[],ne.globals.timescaleLabels=[],[];var ue=new k(this.ctx),fe=(L-C)/864e5;this.determineInterval(fe),ne.globals.disableZoomIn=!1,ne.globals.disableZoomOut=!1,fe<.00011574074074074075?ne.globals.disableZoomIn=!0:fe>5e4&&(ne.globals.disableZoomOut=!0);var me=ue.getTimeUnitsfromTimestamp(C,L,this.utc),Pe=ne.globals.gridWidth/fe,Re=Pe/24,Xe=Re/60,qe=Xe/60,Ke=Math.floor(24*fe),nt=Math.floor(1440*fe),It=Math.floor(fe*PM),Tt=Math.floor(fe),ni=Math.floor(fe/30),fi=Math.floor(fe/365),gi={minMillisecond:me.minMillisecond,minSecond:me.minSecond,minMinute:me.minMinute,minHour:me.minHour,minDate:me.minDate,minMonth:me.minMonth,minYear:me.minYear},je={firstVal:gi,currentMillisecond:gi.minMillisecond,currentSecond:gi.minSecond,currentMinute:gi.minMinute,currentHour:gi.minHour,currentMonthDate:gi.minDate,currentDate:gi.minDate,currentMonth:gi.minMonth,currentYear:gi.minYear,daysWidthOnXAxis:Pe,hoursWidthOnXAxis:Re,minutesWidthOnXAxis:Xe,secondsWidthOnXAxis:qe,numberOfSeconds:It,numberOfMinutes:nt,numberOfHours:Ke,numberOfDays:Tt,numberOfMonths:ni,numberOfYears:fi};switch(this.tickInterval){case"years":this.generateYearScale(je);break;case"months":case"half_year":this.generateMonthScale(je);break;case"months_days":case"months_fortnight":case"days":case"week_days":this.generateDayScale(je);break;case"hours":this.generateHourScale(je);break;case"minutes_fives":case"minutes":this.generateMinuteScale(je);break;case"seconds_tens":case"seconds_fives":case"seconds":this.generateSecondScale(je)}var it=this.timeScaleArray.map(function(Ct){var si={position:Ct.position,unit:Ct.unit,year:Ct.year,day:Ct.day?Ct.day:1,hour:Ct.hour?Ct.hour:0,month:Ct.month+1};return Ct.unit==="month"?_(_({},si),{},{day:1,value:Ct.value+1}):Ct.unit==="day"||Ct.unit==="hour"?_(_({},si),{},{value:Ct.value}):Ct.unit==="minute"?_(_({},si),{},{value:Ct.value,minute:Ct.value}):Ct.unit==="second"?_(_({},si),{},{value:Ct.value,minute:Ct.minute,second:Ct.second}):Ct});return it.filter(function(Ct){var si=1,di=Math.ceil(ne.globals.gridWidth/120),yi=Ct.value;ne.config.xaxis.tickAmount!==void 0&&(di=ne.config.xaxis.tickAmount),it.length>di&&(si=Math.floor(it.length/di));var nM=!1,iM=!1;switch(F.tickInterval){case"years":Ct.unit==="year"&&(nM=!0);break;case"half_year":si=7,Ct.unit==="year"&&(nM=!0);break;case"months":si=1,Ct.unit==="year"&&(nM=!0);break;case"months_fortnight":si=15,Ct.unit!=="year"&&Ct.unit!=="month"||(nM=!0),yi===30&&(iM=!0);break;case"months_days":si=10,Ct.unit==="month"&&(nM=!0),yi===30&&(iM=!0);break;case"week_days":si=8,Ct.unit==="month"&&(nM=!0);break;case"days":si=1,Ct.unit==="month"&&(nM=!0);break;case"hours":Ct.unit==="day"&&(nM=!0);break;case"minutes_fives":case"seconds_fives":yi%5!=0&&(iM=!0);break;case"seconds_tens":yi%10!=0&&(iM=!0)}if(F.tickInterval==="hours"||F.tickInterval==="minutes_fives"||F.tickInterval==="seconds_tens"||F.tickInterval==="seconds_fives"){if(!iM)return!0}else if((yi%si==0||nM)&&!iM)return!0})}},{key:"recalcDimensionsBasedOnFormat",value:function(C,L){var F=this.w,ne=this.formatDates(C),ue=this.removeOverlappingTS(ne);F.globals.timescaleLabels=ue.slice(),new St(this.ctx).plotCoords()}},{key:"determineInterval",value:function(C){var L=24*C,F=60*L;switch(!0){case C/365>5:this.tickInterval="years";break;case C>800:this.tickInterval="half_year";break;case C>180:this.tickInterval="months";break;case C>90:this.tickInterval="months_fortnight";break;case C>60:this.tickInterval="months_days";break;case C>30:this.tickInterval="week_days";break;case C>2:this.tickInterval="days";break;case L>2.4:this.tickInterval="hours";break;case F>15:this.tickInterval="minutes_fives";break;case F>5:this.tickInterval="minutes";break;case F>1:this.tickInterval="seconds_tens";break;case 60*F>20:this.tickInterval="seconds_fives";break;default:this.tickInterval="seconds"}}},{key:"generateYearScale",value:function(C){var L=C.firstVal,F=C.currentMonth,ne=C.currentYear,ue=C.daysWidthOnXAxis,fe=C.numberOfYears,me=L.minYear,Pe=0,Re=new k(this.ctx),Xe="year";if(L.minDate>1||L.minMonth>0){var qe=Re.determineRemainingDaysOfYear(L.minYear,L.minMonth,L.minDate);Pe=(Re.determineDaysOfYear(L.minYear)-qe+1)*ue,me=L.minYear+1,this.timeScaleArray.push({position:Pe,value:me,unit:Xe,year:me,month:Y.monthMod(F+1)})}else L.minDate===1&&L.minMonth===0&&this.timeScaleArray.push({position:Pe,value:me,unit:Xe,year:ne,month:Y.monthMod(F+1)});for(var Ke=me,nt=Pe,It=0;It<fe;It++)Ke++,nt=Re.determineDaysOfYear(Ke-1)*ue+nt,this.timeScaleArray.push({position:nt,value:Ke,unit:Xe,year:Ke,month:1})}},{key:"generateMonthScale",value:function(C){var L=C.firstVal,F=C.currentMonthDate,ne=C.currentMonth,ue=C.currentYear,fe=C.daysWidthOnXAxis,me=C.numberOfMonths,Pe=ne,Re=0,Xe=new k(this.ctx),qe="month",Ke=0;if(L.minDate>1){Re=(Xe.determineDaysOfMonths(ne+1,L.minYear)-F+1)*fe,Pe=Y.monthMod(ne+1);var nt=ue+Ke,It=Y.monthMod(Pe),Tt=Pe;Pe===0&&(qe="year",Tt=nt,It=1,nt+=Ke+=1),this.timeScaleArray.push({position:Re,value:Tt,unit:qe,year:nt,month:It})}else this.timeScaleArray.push({position:Re,value:Pe,unit:qe,year:ue,month:Y.monthMod(ne)});for(var ni=Pe+1,fi=Re,gi=0,je=1;gi<me;gi++,je++){(ni=Y.monthMod(ni))===0?(qe="year",Ke+=1):qe="month";var it=this._getYear(ue,ni,Ke);fi=Xe.determineDaysOfMonths(ni,it)*fe+fi;var Ct=ni===0?it:ni;this.timeScaleArray.push({position:fi,value:Ct,unit:qe,year:it,month:ni===0?1:ni}),ni++}}},{key:"generateDayScale",value:function(C){var L=C.firstVal,F=C.currentMonth,ne=C.currentYear,ue=C.hoursWidthOnXAxis,fe=C.numberOfDays,me=new k(this.ctx),Pe="day",Re=L.minDate+1,Xe=Re,qe=function(je,it,Ct){return je>me.determineDaysOfMonths(it+1,Ct)&&(Xe=1,Pe="month",nt=it+=1),it},Ke=(24-L.minHour)*ue,nt=Re,It=qe(Xe,F,ne);L.minHour===0&&L.minDate===1?(Ke=0,nt=Y.monthMod(L.minMonth),Pe="month",Xe=L.minDate):L.minDate!==1&&L.minHour===0&&L.minMinute===0&&(Ke=0,Re=L.minDate,nt=Re,It=qe(Xe=Re,F,ne)),this.timeScaleArray.push({position:Ke,value:nt,unit:Pe,year:this._getYear(ne,It,0),month:Y.monthMod(It),day:Xe});for(var Tt=Ke,ni=0;ni<fe;ni++){Pe="day",It=qe(Xe+=1,It,this._getYear(ne,It,0));var fi=this._getYear(ne,It,0);Tt=24*ue+Tt;var gi=Xe===1?Y.monthMod(It):Xe;this.timeScaleArray.push({position:Tt,value:gi,unit:Pe,year:fi,month:Y.monthMod(It),day:gi})}}},{key:"generateHourScale",value:function(C){var L=C.firstVal,F=C.currentDate,ne=C.currentMonth,ue=C.currentYear,fe=C.minutesWidthOnXAxis,me=C.numberOfHours,Pe=new k(this.ctx),Re="hour",Xe=function(si,di){return si>Pe.determineDaysOfMonths(di+1,ue)&&(ni=1,di+=1),{month:di,date:ni}},qe=function(si,di){return si>Pe.determineDaysOfMonths(di+1,ue)?di+=1:di},Ke=60-(L.minMinute+L.minSecond/60),nt=Ke*fe,It=L.minHour+1,Tt=It;Ke===60&&(nt=0,Tt=It=L.minHour);var ni=F;Tt>=24&&(Tt=0,ni+=1,Re="day");var fi=Xe(ni,ne).month;fi=qe(ni,fi),this.timeScaleArray.push({position:nt,value:It,unit:Re,day:ni,hour:Tt,year:ue,month:Y.monthMod(fi)}),Tt++;for(var gi=nt,je=0;je<me;je++){Re="hour",Tt>=24&&(Tt=0,Re="day",fi=Xe(ni+=1,fi).month,fi=qe(ni,fi));var it=this._getYear(ue,fi,0);gi=60*fe+gi;var Ct=Tt===0?ni:Tt;this.timeScaleArray.push({position:gi,value:Ct,unit:Re,hour:Tt,day:ni,year:it,month:Y.monthMod(fi)}),Tt++}}},{key:"generateMinuteScale",value:function(C){for(var L=C.currentMillisecond,F=C.currentSecond,ne=C.currentMinute,ue=C.currentHour,fe=C.currentDate,me=C.currentMonth,Pe=C.currentYear,Re=C.minutesWidthOnXAxis,Xe=C.secondsWidthOnXAxis,qe=C.numberOfMinutes,Ke=ne+1,nt=fe,It=me,Tt=Pe,ni=ue,fi=(60-F-L/1e3)*Xe,gi=0;gi<qe;gi++)Ke>=60&&(Ke=0,(ni+=1)===24&&(ni=0)),this.timeScaleArray.push({position:fi,value:Ke,unit:"minute",hour:ni,minute:Ke,day:nt,year:this._getYear(Tt,It,0),month:Y.monthMod(It)}),fi+=Re,Ke++}},{key:"generateSecondScale",value:function(C){for(var L=C.currentMillisecond,F=C.currentSecond,ne=C.currentMinute,ue=C.currentHour,fe=C.currentDate,me=C.currentMonth,Pe=C.currentYear,Re=C.secondsWidthOnXAxis,Xe=C.numberOfSeconds,qe=F+1,Ke=ne,nt=fe,It=me,Tt=Pe,ni=ue,fi=(1e3-L)/1e3*Re,gi=0;gi<Xe;gi++)qe>=60&&(qe=0,++Ke>=60&&(Ke=0,++ni===24&&(ni=0))),this.timeScaleArray.push({position:fi,value:qe,unit:"second",hour:ni,minute:Ke,second:qe,day:nt,year:this._getYear(Tt,It,0),month:Y.monthMod(It)}),fi+=Re,qe++}},{key:"createRawDateString",value:function(C,L){var F=C.year;return C.month===0&&(C.month=1),F+="-"+("0"+C.month.toString()).slice(-2),C.unit==="day"?F+=C.unit==="day"?"-"+("0"+L).slice(-2):"-01":F+="-"+("0"+(C.day?C.day:"1")).slice(-2),C.unit==="hour"?F+=C.unit==="hour"?"T"+("0"+L).slice(-2):"T00":F+="T"+("0"+(C.hour?C.hour:"0")).slice(-2),C.unit==="minute"?F+=":"+("0"+L).slice(-2):F+=":"+(C.minute?("0"+C.minute).slice(-2):"00"),C.unit==="second"?F+=":"+("0"+L).slice(-2):F+=":00",this.utc&&(F+=".000Z"),F}},{key:"formatDates",value:function(C){var L=this,F=this.w;return C.map(function(ne){var ue=ne.value.toString(),fe=new k(L.ctx),me=L.createRawDateString(ne,ue),Pe=fe.getDate(fe.parseDate(me));if(L.utc||(Pe=fe.getDate(fe.parseDateWithTimezone(me))),F.config.xaxis.labels.format===void 0){var Re="dd MMM",Xe=F.config.xaxis.labels.datetimeFormatter;ne.unit==="year"&&(Re=Xe.year),ne.unit==="month"&&(Re=Xe.month),ne.unit==="day"&&(Re=Xe.day),ne.unit==="hour"&&(Re=Xe.hour),ne.unit==="minute"&&(Re=Xe.minute),ne.unit==="second"&&(Re=Xe.second),ue=fe.formatDate(Pe,Re)}else ue=fe.formatDate(Pe,F.config.xaxis.labels.format);return{dateString:me,position:ne.position,value:ue,unit:ne.unit,year:ne.year,month:ne.month}})}},{key:"removeOverlappingTS",value:function(C){var L,F=this,ne=new ge(this.ctx),ue=!1;C.length>0&&C[0].value&&C.every(function(Pe){return Pe.value.length===C[0].value.length})&&(ue=!0,L=ne.getTextRects(C[0].value).width);var fe=0,me=C.map(function(Pe,Re){if(Re>0&&F.w.config.xaxis.labels.hideOverlappingLabels){var Xe=ue?L:ne.getTextRects(C[fe].value).width,qe=C[fe].position;return Pe.position>qe+Xe+10?(fe=Re,Pe):null}return Pe});return me=me.filter(function(Pe){return Pe!==null})}},{key:"_getYear",value:function(C,L,F){return C+Math.floor(L/12)+F}}]),ai}(),HM=function(){function ai(C,L){I(this,ai),this.ctx=L,this.w=L.w,this.el=C}return M(ai,[{key:"setupElements",value:function(){var C=this.w.globals,L=this.w.config,F=L.chart.type;C.axisCharts=["line","area","bar","rangeBar","rangeArea","candlestick","boxPlot","scatter","bubble","radar","heatmap","treemap"].indexOf(F)>-1,C.xyCharts=["line","area","bar","rangeBar","rangeArea","candlestick","boxPlot","scatter","bubble"].indexOf(F)>-1,C.isBarHorizontal=(L.chart.type==="bar"||L.chart.type==="rangeBar"||L.chart.type==="boxPlot")&&L.plotOptions.bar.horizontal,C.chartClass=".apexcharts"+C.chartID,C.dom.baseEl=this.el,C.dom.elWrap=document.createElement("div"),ge.setAttrs(C.dom.elWrap,{id:C.chartClass.substring(1),class:"apexcharts-canvas "+C.chartClass.substring(1)}),this.el.appendChild(C.dom.elWrap),C.dom.Paper=new window.SVG.Doc(C.dom.elWrap),C.dom.Paper.attr({class:"apexcharts-svg","xmlns:data":"ApexChartsNS",transform:"translate(".concat(L.chart.offsetX,", ").concat(L.chart.offsetY,")")}),C.dom.Paper.node.style.background=L.theme.mode!=="dark"||L.chart.background?L.chart.background:"rgba(0, 0, 0, 0.8)",this.setSVGDimensions(),C.dom.elLegendForeign=document.createElementNS(C.SVGNS,"foreignObject"),ge.setAttrs(C.dom.elLegendForeign,{x:0,y:0,width:C.svgWidth,height:C.svgHeight}),C.dom.elLegendWrap=document.createElement("div"),C.dom.elLegendWrap.classList.add("apexcharts-legend"),C.dom.elLegendWrap.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),C.dom.elLegendForeign.appendChild(C.dom.elLegendWrap),C.dom.Paper.node.appendChild(C.dom.elLegendForeign),C.dom.elGraphical=C.dom.Paper.group().attr({class:"apexcharts-inner apexcharts-graphical"}),C.dom.elDefs=C.dom.Paper.defs(),C.dom.Paper.add(C.dom.elGraphical),C.dom.elGraphical.add(C.dom.elDefs)}},{key:"plotChartType",value:function(C,L){var F=this.w,ne=F.config,ue=F.globals,fe={series:[],i:[]},me={series:[],i:[]},Pe={series:[],i:[]},Re={series:[],i:[]},Xe={series:[],i:[]},qe={series:[],i:[]},Ke={series:[],i:[]},nt={series:[],i:[]},It={series:[],seriesRangeEnd:[],i:[]};ue.series.map(function(di,yi){var nM=0;C[yi].type!==void 0?(C[yi].type==="column"||C[yi].type==="bar"?(ue.series.length>1&&ne.plotOptions.bar.horizontal&&console.warn("Horizontal bars are not supported in a mixed/combo chart. Please turn off `plotOptions.bar.horizontal`"),Xe.series.push(di),Xe.i.push(yi),nM++,F.globals.columnSeries=Xe.series):C[yi].type==="area"?(me.series.push(di),me.i.push(yi),nM++):C[yi].type==="line"?(fe.series.push(di),fe.i.push(yi),nM++):C[yi].type==="scatter"?(Pe.series.push(di),Pe.i.push(yi)):C[yi].type==="bubble"?(Re.series.push(di),Re.i.push(yi),nM++):C[yi].type==="candlestick"?(qe.series.push(di),qe.i.push(yi),nM++):C[yi].type==="boxPlot"?(Ke.series.push(di),Ke.i.push(yi),nM++):C[yi].type==="rangeBar"?(nt.series.push(di),nt.i.push(yi),nM++):C[yi].type==="rangeArea"?(It.series.push(ue.seriesRangeStart[yi]),It.seriesRangeEnd.push(ue.seriesRangeEnd[yi]),It.i.push(yi),nM++):console.warn("You have specified an unrecognized chart type. Available types for this property are line/area/column/bar/scatter/bubble/candlestick/boxPlot/rangeBar/rangeArea"),nM>1&&(ue.comboCharts=!0)):(fe.series.push(di),fe.i.push(yi))});var Tt=new WM(this.ctx,L),ni=new fM(this.ctx,L);this.ctx.pie=new $M(this.ctx);var fi=new OM(this.ctx);this.ctx.rangeBar=new UM(this.ctx,L);var gi=new TM(this.ctx),je=[];if(ue.comboCharts){if(me.series.length>0&&je.push(Tt.draw(me.series,"area",me.i)),Xe.series.length>0)if(F.config.chart.stacked){var it=new gM(this.ctx,L);je.push(it.draw(Xe.series,Xe.i))}else this.ctx.bar=new yM(this.ctx,L),je.push(this.ctx.bar.draw(Xe.series,Xe.i));if(It.series.length>0&&je.push(Tt.draw(It.series,"rangeArea",It.i,It.seriesRangeEnd)),fe.series.length>0&&je.push(Tt.draw(fe.series,"line",fe.i)),qe.series.length>0&&je.push(ni.draw(qe.series,"candlestick",qe.i)),Ke.series.length>0&&je.push(ni.draw(Ke.series,"boxPlot",Ke.i)),nt.series.length>0&&je.push(this.ctx.rangeBar.draw(nt.series,nt.i)),Pe.series.length>0){var Ct=new WM(this.ctx,L,!0);je.push(Ct.draw(Pe.series,"scatter",Pe.i))}if(Re.series.length>0){var si=new WM(this.ctx,L,!0);je.push(si.draw(Re.series,"bubble",Re.i))}}else switch(ne.chart.type){case"line":je=Tt.draw(ue.series,"line");break;case"area":je=Tt.draw(ue.series,"area");break;case"bar":ne.chart.stacked?je=new gM(this.ctx,L).draw(ue.series):(this.ctx.bar=new yM(this.ctx,L),je=this.ctx.bar.draw(ue.series));break;case"candlestick":je=new fM(this.ctx,L).draw(ue.series,"candlestick");break;case"boxPlot":je=new fM(this.ctx,L).draw(ue.series,ne.chart.type);break;case"rangeBar":je=this.ctx.rangeBar.draw(ue.series);break;case"rangeArea":je=Tt.draw(ue.seriesRangeStart,"rangeArea",void 0,ue.seriesRangeEnd);break;case"heatmap":je=new IM(this.ctx,L).draw(ue.series);break;case"treemap":je=new YM(this.ctx,L).draw(ue.series);break;case"pie":case"donut":case"polarArea":je=this.ctx.pie.draw(ue.series);break;case"radialBar":je=fi.draw(ue.series);break;case"radar":je=gi.draw(ue.series);break;default:je=Tt.draw(ue.series)}return je}},{key:"setSVGDimensions",value:function(){var C=this.w.globals,L=this.w.config;C.svgWidth=L.chart.width,C.svgHeight=L.chart.height;var F=Y.getDimensions(this.el),ne=L.chart.width.toString().split(/[0-9]+/g).pop();ne==="%"?Y.isNumber(F[0])&&(F[0].width===0&&(F=Y.getDimensions(this.el.parentNode)),C.svgWidth=F[0]*parseInt(L.chart.width,10)/100):ne!=="px"&&ne!==""||(C.svgWidth=parseInt(L.chart.width,10));var ue=L.chart.height.toString().split(/[0-9]+/g).pop();if(C.svgHeight!=="auto"&&C.svgHeight!=="")if(ue==="%"){var fe=Y.getDimensions(this.el.parentNode);C.svgHeight=fe[1]*parseInt(L.chart.height,10)/100}else C.svgHeight=parseInt(L.chart.height,10);else C.axisCharts?C.svgHeight=C.svgWidth/1.61:C.svgHeight=C.svgWidth/1.2;if(C.svgWidth<0&&(C.svgWidth=0),C.svgHeight<0&&(C.svgHeight=0),ge.setAttrs(C.dom.Paper.node,{width:C.svgWidth,height:C.svgHeight}),ue!=="%"){var me=L.chart.sparkline.enabled?0:C.axisCharts?L.chart.parentHeightOffset:0;C.dom.Paper.node.parentNode.parentNode.style.minHeight=C.svgHeight+me+"px"}C.dom.elWrap.style.width=C.svgWidth+"px",C.dom.elWrap.style.height=C.svgHeight+"px"}},{key:"shiftGraphPosition",value:function(){var C=this.w.globals,L=C.translateY,F={transform:"translate("+C.translateX+", "+L+")"};ge.setAttrs(C.dom.elGraphical.node,F)}},{key:"resizeNonAxisCharts",value:function(){var C=this.w,L=C.globals,F=0,ne=C.config.chart.sparkline.enabled?1:15;ne+=C.config.grid.padding.bottom,C.config.legend.position!=="top"&&C.config.legend.position!=="bottom"||!C.config.legend.show||C.config.legend.floating||(F=new eM(this.ctx).legendHelpers.getLegendBBox().clwh+10);var ue=C.globals.dom.baseEl.querySelector(".apexcharts-radialbar, .apexcharts-pie"),fe=2.05*C.globals.radialSize;if(ue&&!C.config.chart.sparkline.enabled&&C.config.plotOptions.radialBar.startAngle!==0){var me=Y.getBoundingClientRect(ue);fe=me.bottom;var Pe=me.bottom-me.top;fe=Math.max(2.05*C.globals.radialSize,Pe)}var Re=fe+L.translateY+F+ne;L.dom.elLegendForeign&&L.dom.elLegendForeign.setAttribute("height",Re),C.config.chart.height&&String(C.config.chart.height).indexOf("%")>0||(L.dom.elWrap.style.height=Re+"px",ge.setAttrs(L.dom.Paper.node,{height:Re}),L.dom.Paper.node.parentNode.parentNode.style.minHeight=Re+"px")}},{key:"coreCalculations",value:function(){new $e(this.ctx).init()}},{key:"resetGlobals",value:function(){var C=this,L=function(){return C.w.config.series.map(function(ue){return[]})},F=new J,ne=this.w.globals;F.initGlobalVars(ne),ne.seriesXvalues=L(),ne.seriesYvalues=L()}},{key:"isMultipleY",value:function(){if(this.w.config.yaxis.constructor===Array&&this.w.config.yaxis.length>1)return this.w.globals.isMultipleYAxis=!0,!0}},{key:"xySettings",value:function(){var C=null,L=this.w;if(L.globals.axisCharts){if(L.config.xaxis.crosshairs.position==="back"&&new Fe(this.ctx).drawXCrosshairs(),L.config.yaxis[0].crosshairs.position==="back"&&new Fe(this.ctx).drawYCrosshairs(),L.config.xaxis.type==="datetime"&&L.config.xaxis.labels.formatter===void 0){this.ctx.timeScale=new VM(this.ctx);var F=[];isFinite(L.globals.minX)&&isFinite(L.globals.maxX)&&!L.globals.isBarHorizontal?F=this.ctx.timeScale.calculateTimeScaleTicks(L.globals.minX,L.globals.maxX):L.globals.isBarHorizontal&&(F=this.ctx.timeScale.calculateTimeScaleTicks(L.globals.minY,L.globals.maxY)),this.ctx.timeScale.recalcDimensionsBasedOnFormat(F)}C=new be(this.ctx).getCalculatedRatios()}return C}},{key:"updateSourceChart",value:function(C){this.ctx.w.globals.selection=void 0,this.ctx.updateHelpers._updateOptions({chart:{selection:{xaxis:{min:C.w.globals.minX,max:C.w.globals.maxX}}}},!1,!1)}},{key:"setupBrushHandler",value:function(){var C=this,L=this.w;if(L.config.chart.brush.enabled&&typeof L.config.chart.events.selection!="function"){var F=Array.isArray(L.config.chart.brush.targets)?L.config.chart.brush.targets:[L.config.chart.brush.target];F.forEach(function(ne){var ue=ApexCharts.getChartByID(ne);ue.w.globals.brushSource=C.ctx,typeof ue.w.config.chart.events.zoomed!="function"&&(ue.w.config.chart.events.zoomed=function(){C.updateSourceChart(ue)}),typeof ue.w.config.chart.events.scrolled!="function"&&(ue.w.config.chart.events.scrolled=function(){C.updateSourceChart(ue)})}),L.config.chart.events.selection=function(ne,ue){F.forEach(function(fe){var me=ApexCharts.getChartByID(fe),Pe=Y.clone(L.config.yaxis);if(L.config.chart.brush.autoScaleYaxis&&me.w.globals.series.length===1){var Re=new et(me);Pe=Re.autoScaleY(me,Pe,ue)}var Xe=me.w.config.yaxis.reduce(function(qe,Ke,nt){return[].concat(W(qe),[_(_({},me.w.config.yaxis[nt]),{},{min:Pe[0].min,max:Pe[0].max})])},[]);me.ctx.updateHelpers._updateOptions({xaxis:{min:ue.xaxis.min,max:ue.xaxis.max},yaxis:Xe},!1,!1,!1,!1)})}}}}]),ai}(),zM=function(){function ai(C){I(this,ai),this.ctx=C,this.w=C.w}return M(ai,[{key:"_updateOptions",value:function(C){var L=this,F=arguments.length>1&&arguments[1]!==void 0&&arguments[1],ne=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],ue=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],fe=arguments.length>4&&arguments[4]!==void 0&&arguments[4];return new Promise(function(me){var Pe=[L.ctx];ue&&(Pe=L.ctx.getSyncedCharts()),L.ctx.w.globals.isExecCalled&&(Pe=[L.ctx],L.ctx.w.globals.isExecCalled=!1),Pe.forEach(function(Re,Xe){var qe=Re.w;if(qe.globals.shouldAnimate=ne,F||(qe.globals.resized=!0,qe.globals.dataChanged=!0,ne&&Re.series.getPreviousPaths()),C&&x(C)==="object"&&(Re.config=new q(C),C=be.extendArrayProps(Re.config,C,qe),Re.w.globals.chartID!==L.ctx.w.globals.chartID&&delete C.series,qe.config=Y.extend(qe.config,C),fe&&(qe.globals.lastXAxis=C.xaxis?Y.clone(C.xaxis):[],qe.globals.lastYAxis=C.yaxis?Y.clone(C.yaxis):[],qe.globals.initialConfig=Y.extend({},qe.config),qe.globals.initialSeries=Y.clone(qe.config.series),C.series))){for(var Ke=0;Ke<qe.globals.collapsedSeriesIndices.length;Ke++){var nt=qe.config.series[qe.globals.collapsedSeriesIndices[Ke]];qe.globals.collapsedSeries[Ke].data=qe.globals.axisCharts?nt.data.slice():nt}for(var It=0;It<qe.globals.ancillaryCollapsedSeriesIndices.length;It++){var Tt=qe.config.series[qe.globals.ancillaryCollapsedSeriesIndices[It]];qe.globals.ancillaryCollapsedSeries[It].data=qe.globals.axisCharts?Tt.data.slice():Tt}Re.series.emptyCollapsedSeries(qe.config.series)}return Re.update(C).then(function(){Xe===Pe.length-1&&me(Re)})})})}},{key:"_updateSeries",value:function(C,L){var F=this,ne=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return new Promise(function(ue){var fe,me=F.w;return me.globals.shouldAnimate=L,me.globals.dataChanged=!0,L&&F.ctx.series.getPreviousPaths(),me.globals.axisCharts?((fe=C.map(function(Pe,Re){return F._extendSeries(Pe,Re)})).length===0&&(fe=[{data:[]}]),me.config.series=fe):me.config.series=C.slice(),ne&&(me.globals.initialConfig.series=Y.clone(me.config.series),me.globals.initialSeries=Y.clone(me.config.series)),F.ctx.update().then(function(){ue(F.ctx)})})}},{key:"_extendSeries",value:function(C,L){var F=this.w,ne=F.config.series[L];return _(_({},F.config.series[L]),{},{name:C.name?C.name:ne?.name,color:C.color?C.color:ne?.color,type:C.type?C.type:ne?.type,group:C.group?C.group:ne?.group,data:C.data?C.data:ne?.data,zIndex:C.zIndex!==void 0?C.zIndex:L})}},{key:"toggleDataPointSelection",value:function(C,L){var F=this.w,ne=null,ue=".apexcharts-series[data\\:realIndex='".concat(C,"']");return F.globals.axisCharts?ne=F.globals.dom.Paper.select("".concat(ue," path[j='").concat(L,"'], ").concat(ue," circle[j='").concat(L,"'], ").concat(ue," rect[j='").concat(L,"']")).members[0]:L===void 0&&(ne=F.globals.dom.Paper.select("".concat(ue," path[j='").concat(C,"']")).members[0],F.config.chart.type!=="pie"&&F.config.chart.type!=="polarArea"&&F.config.chart.type!=="donut"||this.ctx.pie.pieClicked(C)),ne?(new ge(this.ctx).pathMouseDown(ne,null),ne.node?ne.node:null):(console.warn("toggleDataPointSelection: Element not found"),null)}},{key:"forceXAxisUpdate",value:function(C){var L=this.w;if(["min","max"].forEach(function(ne){C.xaxis[ne]!==void 0&&(L.config.xaxis[ne]=C.xaxis[ne],L.globals.lastXAxis[ne]=C.xaxis[ne])}),C.xaxis.categories&&C.xaxis.categories.length&&(L.config.xaxis.categories=C.xaxis.categories),L.config.xaxis.convertedCatToNumeric){var F=new H(C);C=F.convertCatToNumericXaxis(C,this.ctx)}return C}},{key:"forceYAxisUpdate",value:function(C){return C.chart&&C.chart.stacked&&C.chart.stackType==="100%"&&(Array.isArray(C.yaxis)?C.yaxis.forEach(function(L,F){C.yaxis[F].min=0,C.yaxis[F].max=100}):(C.yaxis.min=0,C.yaxis.max=100)),C}},{key:"revertDefaultAxisMinMax",value:function(C){var L=this,F=this.w,ne=F.globals.lastXAxis,ue=F.globals.lastYAxis;C&&C.xaxis&&(ne=C.xaxis),C&&C.yaxis&&(ue=C.yaxis),F.config.xaxis.min=ne.min,F.config.xaxis.max=ne.max;var fe=function(me){ue[me]!==void 0&&(F.config.yaxis[me].min=ue[me].min,F.config.yaxis[me].max=ue[me].max)};F.config.yaxis.map(function(me,Pe){F.globals.zoomed||ue[Pe]!==void 0?fe(Pe):L.ctx.opts.yaxis[Pe]!==void 0&&(me.min=L.ctx.opts.yaxis[Pe].min,me.max=L.ctx.opts.yaxis[Pe].max)})}}]),ai}();SM=typeof window<"u"?window:void 0,jM=function(ai,C){var L=(this!==void 0?this:ai).SVG=function(je){if(L.supported)return je=new L.Doc(je),L.parser.draw||L.prepare(),je};if(L.ns="http://www.w3.org/2000/svg",L.xmlns="http://www.w3.org/2000/xmlns/",L.xlink="http://www.w3.org/1999/xlink",L.svgjs="http://svgjs.dev",L.supported=!0,!L.supported)return!1;L.did=1e3,L.eid=function(je){return"Svgjs"+Xe(je)+L.did++},L.create=function(je){var it=C.createElementNS(this.ns,je);return it.setAttribute("id",this.eid(je)),it},L.extend=function(){var je,it;it=(je=[].slice.call(arguments)).pop();for(var Ct=je.length-1;Ct>=0;Ct--)if(je[Ct])for(var si in it)je[Ct].prototype[si]=it[si];L.Set&&L.Set.inherit&&L.Set.inherit()},L.invent=function(je){var it=typeof je.create=="function"?je.create:function(){this.constructor.call(this,L.create(je.create))};return je.inherit&&(it.prototype=new je.inherit),je.extend&&L.extend(it,je.extend),je.construct&&L.extend(je.parent||L.Container,je.construct),it},L.adopt=function(je){return je?je.instance?je.instance:((it=je.nodeName=="svg"?je.parentNode instanceof ai.SVGElement?new L.Nested:new L.Doc:je.nodeName=="linearGradient"?new L.Gradient("linear"):je.nodeName=="radialGradient"?new L.Gradient("radial"):L[Xe(je.nodeName)]?new L[Xe(je.nodeName)]:new L.Element(je)).type=je.nodeName,it.node=je,je.instance=it,it instanceof L.Doc&&it.namespace().defs(),it.setData(JSON.parse(je.getAttribute("svgjs:data"))||{}),it):null;var it},L.prepare=function(){var je=C.getElementsByTagName("body")[0],it=(je?new L.Doc(je):L.adopt(C.documentElement).nested()).size(2,0);L.parser={body:je||C.documentElement,draw:it.style("opacity:0;position:absolute;left:-100%;top:-100%;overflow:hidden").node,poly:it.polyline().node,path:it.path().node,native:L.create("svg")}},L.parser={native:L.create("svg")},C.addEventListener("DOMContentLoaded",function(){L.parser.draw||L.prepare()},!1),L.regex={numberAndUnit:/^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i,hex:/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,rgb:/rgb\((\d+),(\d+),(\d+)\)/,reference:/#([a-z0-9\-_]+)/i,transforms:/\)\s*,?\s*/,whitespace:/\s/g,isHex:/^#[a-f0-9]{3,6}$/i,isRgb:/^rgb\(/,isCss:/[^:]+:[^;]+;?/,isBlank:/^(\s+)?$/,isNumber:/^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,isPercent:/^-?[\d\.]+%$/,isImage:/\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i,delimiter:/[\s,]+/,hyphen:/([^e])\-/gi,pathLetters:/[MLHVCSQTAZ]/gi,isPathLetter:/[MLHVCSQTAZ]/i,numbersWithDots:/((\d?\.\d+(?:e[+-]?\d+)?)((?:\.\d+(?:e[+-]?\d+)?)+))+/gi,dots:/\./g},L.utils={map:function(je,it){for(var Ct=je.length,si=[],di=0;di<Ct;di++)si.push(it(je[di]));return si},filter:function(je,it){for(var Ct=je.length,si=[],di=0;di<Ct;di++)it(je[di])&&si.push(je[di]);return si},filterSVGElements:function(je){return this.filter(je,function(it){return it instanceof ai.SVGElement})}},L.defaults={attrs:{"fill-opacity":1,"stroke-opacity":1,"stroke-width":0,"stroke-linejoin":"miter","stroke-linecap":"butt",fill:"#000000",stroke:"#000000",opacity:1,x:0,y:0,cx:0,cy:0,width:0,height:0,r:0,rx:0,ry:0,offset:0,"stop-opacity":1,"stop-color":"#000000","font-size":16,"font-family":"Helvetica, Arial, sans-serif","text-anchor":"start"}},L.Color=function(je){var it,Ct;this.r=0,this.g=0,this.b=0,je&&(typeof je=="string"?L.regex.isRgb.test(je)?(it=L.regex.rgb.exec(je.replace(L.regex.whitespace,"")),this.r=parseInt(it[1]),this.g=parseInt(it[2]),this.b=parseInt(it[3])):L.regex.isHex.test(je)&&(it=L.regex.hex.exec((Ct=je).length==4?["#",Ct.substring(1,2),Ct.substring(1,2),Ct.substring(2,3),Ct.substring(2,3),Ct.substring(3,4),Ct.substring(3,4)].join(""):Ct),this.r=parseInt(it[1],16),this.g=parseInt(it[2],16),this.b=parseInt(it[3],16)):x(je)==="object"&&(this.r=je.r,this.g=je.g,this.b=je.b))},L.extend(L.Color,{toString:function(){return this.toHex()},toHex:function(){return"#"+qe(this.r)+qe(this.g)+qe(this.b)},toRgb:function(){return"rgb("+[this.r,this.g,this.b].join()+")"},brightness:function(){return this.r/255*.3+this.g/255*.59+this.b/255*.11},morph:function(je){return this.destination=new L.Color(je),this},at:function(je){return this.destination?(je=je<0?0:je>1?1:je,new L.Color({r:~~(this.r+(this.destination.r-this.r)*je),g:~~(this.g+(this.destination.g-this.g)*je),b:~~(this.b+(this.destination.b-this.b)*je)})):this}}),L.Color.test=function(je){return je+="",L.regex.isHex.test(je)||L.regex.isRgb.test(je)},L.Color.isRgb=function(je){return je&&typeof je.r=="number"&&typeof je.g=="number"&&typeof je.b=="number"},L.Color.isColor=function(je){return L.Color.isRgb(je)||L.Color.test(je)},L.Array=function(je,it){(je=(je||[]).valueOf()).length==0&&it&&(je=it.valueOf()),this.value=this.parse(je)},L.extend(L.Array,{toString:function(){return this.value.join(" ")},valueOf:function(){return this.value},parse:function(je){return je=je.valueOf(),Array.isArray(je)?je:this.split(je)}}),L.PointArray=function(je,it){L.Array.call(this,je,it||[[0,0]])},L.PointArray.prototype=new L.Array,L.PointArray.prototype.constructor=L.PointArray;for(var F={M:function(je,it,Ct){return it.x=Ct.x=je[0],it.y=Ct.y=je[1],["M",it.x,it.y]},L:function(je,it){return it.x=je[0],it.y=je[1],["L",je[0],je[1]]},H:function(je,it){return it.x=je[0],["H",je[0]]},V:function(je,it){return it.y=je[0],["V",je[0]]},C:function(je,it){return it.x=je[4],it.y=je[5],["C",je[0],je[1],je[2],je[3],je[4],je[5]]},Q:function(je,it){return it.x=je[2],it.y=je[3],["Q",je[0],je[1],je[2],je[3]]},S:function(je,it){return it.x=je[2],it.y=je[3],["S",je[0],je[1],je[2],je[3]]},Z:function(je,it,Ct){return it.x=Ct.x,it.y=Ct.y,["Z"]}},ne="mlhvqtcsaz".split(""),ue=0,fe=ne.length;ue<fe;++ue)F[ne[ue]]=function(je){return function(it,Ct,si){if(je=="H")it[0]=it[0]+Ct.x;else if(je=="V")it[0]=it[0]+Ct.y;else if(je=="A")it[5]=it[5]+Ct.x,it[6]=it[6]+Ct.y;else for(var di=0,yi=it.length;di<yi;++di)it[di]=it[di]+(di%2?Ct.y:Ct.x);if(F&&typeof F[je]=="function")return F[je](it,Ct,si)}}(ne[ue].toUpperCase());L.PathArray=function(je,it){L.Array.call(this,je,it||[["M",0,0]])},L.PathArray.prototype=new L.Array,L.PathArray.prototype.constructor=L.PathArray,L.extend(L.PathArray,{toString:function(){return function(je){for(var it=0,Ct=je.length,si="";it<Ct;it++)si+=je[it][0],je[it][1]!=null&&(si+=je[it][1],je[it][2]!=null&&(si+=" ",si+=je[it][2],je[it][3]!=null&&(si+=" ",si+=je[it][3],si+=" ",si+=je[it][4],je[it][5]!=null&&(si+=" ",si+=je[it][5],si+=" ",si+=je[it][6],je[it][7]!=null&&(si+=" ",si+=je[it][7])))));return si+" "}(this.value)},move:function(je,it){var Ct=this.bbox();return Ct.x,Ct.y,this},at:function(je){if(!this.destination)return this;for(var it=this.value,Ct=this.destination.value,si=[],di=new L.PathArray,yi=0,nM=it.length;yi<nM;yi++){si[yi]=[it[yi][0]];for(var iM=1,mM=it[yi].length;iM<mM;iM++)si[yi][iM]=it[yi][iM]+(Ct[yi][iM]-it[yi][iM])*je;si[yi][0]==="A"&&(si[yi][4]=+(si[yi][4]!=0),si[yi][5]=+(si[yi][5]!=0))}return di.value=si,di},parse:function(je){if(je instanceof L.PathArray)return je.valueOf();var it,Ct={M:2,L:2,H:1,V:1,C:6,S:4,Q:4,T:2,A:7,Z:0};je=typeof je=="string"?je.replace(L.regex.numbersWithDots,Pe).replace(L.regex.pathLetters," $& ").replace(L.regex.hyphen,"$1 -").trim().split(L.regex.delimiter):je.reduce(function(mM,EM){return[].concat.call(mM,EM)},[]);var si=[],di=new L.Point,yi=new L.Point,nM=0,iM=je.length;do L.regex.isPathLetter.test(je[nM])?(it=je[nM],++nM):it=="M"?it="L":it=="m"&&(it="l"),si.push(F[it].call(null,je.slice(nM,nM+=Ct[it.toUpperCase()]).map(parseFloat),di,yi));while(iM>nM);return si},bbox:function(){return L.parser.draw||L.prepare(),L.parser.path.setAttribute("d",this.toString()),L.parser.path.getBBox()}}),L.Number=L.invent({create:function(je,it){this.value=0,this.unit=it||"",typeof je=="number"?this.value=isNaN(je)?0:isFinite(je)?je:je<0?-34e37:34e37:typeof je=="string"?(it=je.match(L.regex.numberAndUnit))&&(this.value=parseFloat(it[1]),it[5]=="%"?this.value/=100:it[5]=="s"&&(this.value*=1e3),this.unit=it[5]):je instanceof L.Number&&(this.value=je.valueOf(),this.unit=je.unit)},extend:{toString:function(){return(this.unit=="%"?~~(1e8*this.value)/1e6:this.unit=="s"?this.value/1e3:this.value)+this.unit},toJSON:function(){return this.toString()},valueOf:function(){return this.value},plus:function(je){return je=new L.Number(je),new L.Number(this+je,this.unit||je.unit)},minus:function(je){return je=new L.Number(je),new L.Number(this-je,this.unit||je.unit)},times:function(je){return je=new L.Number(je),new L.Number(this*je,this.unit||je.unit)},divide:function(je){return je=new L.Number(je),new L.Number(this/je,this.unit||je.unit)},to:function(je){var it=new L.Number(this);return typeof je=="string"&&(it.unit=je),it},morph:function(je){return this.destination=new L.Number(je),je.relative&&(this.destination.value+=this.value),this},at:function(je){return this.destination?new L.Number(this.destination).minus(this).times(je).plus(this):this}}}),L.Element=L.invent({create:function(je){this._stroke=L.defaults.attrs.stroke,this._event=null,this.dom={},(this.node=je)&&(this.type=je.nodeName,this.node.instance=this,this._stroke=je.getAttribute("stroke")||this._stroke)},extend:{x:function(je){return this.attr("x",je)},y:function(je){return this.attr("y",je)},cx:function(je){return je==null?this.x()+this.width()/2:this.x(je-this.width()/2)},cy:function(je){return je==null?this.y()+this.height()/2:this.y(je-this.height()/2)},move:function(je,it){return this.x(je).y(it)},center:function(je,it){return this.cx(je).cy(it)},width:function(je){return this.attr("width",je)},height:function(je){return this.attr("height",je)},size:function(je,it){var Ct=Ke(this,je,it);return this.width(new L.Number(Ct.width)).height(new L.Number(Ct.height))},clone:function(je){this.writeDataToDom();var it=Tt(this.node.cloneNode(!0));return je?je.add(it):this.after(it),it},remove:function(){return this.parent()&&this.parent().removeElement(this),this},replace:function(je){return this.after(je).remove(),je},addTo:function(je){return je.put(this)},putIn:function(je){return je.add(this)},id:function(je){return this.attr("id",je)},show:function(){return this.style("display","")},hide:function(){return this.style("display","none")},visible:function(){return this.style("display")!="none"},toString:function(){return this.attr("id")},classes:function(){var je=this.attr("class");return je==null?[]:je.trim().split(L.regex.delimiter)},hasClass:function(je){return this.classes().indexOf(je)!=-1},addClass:function(je){if(!this.hasClass(je)){var it=this.classes();it.push(je),this.attr("class",it.join(" "))}return this},removeClass:function(je){return this.hasClass(je)&&this.attr("class",this.classes().filter(function(it){return it!=je}).join(" ")),this},toggleClass:function(je){return this.hasClass(je)?this.removeClass(je):this.addClass(je)},reference:function(je){return L.get(this.attr(je))},parent:function(je){var it=this;if(!it.node.parentNode)return null;if(it=L.adopt(it.node.parentNode),!je)return it;for(;it&&it.node instanceof ai.SVGElement;){if(typeof je=="string"?it.matches(je):it instanceof je)return it;if(!it.node.parentNode||it.node.parentNode.nodeName=="#document")return null;it=L.adopt(it.node.parentNode)}},doc:function(){return this instanceof L.Doc?this:this.parent(L.Doc)},parents:function(je){var it=[],Ct=this;do{if(!(Ct=Ct.parent(je))||!Ct.node)break;it.push(Ct)}while(Ct.parent);return it},matches:function(je){return function(it,Ct){return(it.matches||it.matchesSelector||it.msMatchesSelector||it.mozMatchesSelector||it.webkitMatchesSelector||it.oMatchesSelector).call(it,Ct)}(this.node,je)},native:function(){return this.node},svg:function(je){var it=C.createElement("svg");if(!(je&&this instanceof L.Parent))return it.appendChild(je=C.createElement("svg")),this.writeDataToDom(),je.appendChild(this.node.cloneNode(!0)),it.innerHTML.replace(/^<svg>/,"").replace(/<\/svg>$/,"");it.innerHTML="<svg>"+je.replace(/\n/,"").replace(/<([\w:-]+)([^<]+?)\/>/g,"<$1$2></$1>")+"</svg>";for(var Ct=0,si=it.firstChild.childNodes.length;Ct<si;Ct++)this.node.appendChild(it.firstChild.firstChild);return this},writeDataToDom:function(){return(this.each||this.lines)&&(this.each?this:this.lines()).each(function(){this.writeDataToDom()}),this.node.removeAttribute("svgjs:data"),Object.keys(this.dom).length&&this.node.setAttribute("svgjs:data",JSON.stringify(this.dom)),this},setData:function(je){return this.dom=je,this},is:function(je){return function(it,Ct){return it instanceof Ct}(this,je)}}}),L.easing={"-":function(je){return je},"<>":function(je){return-Math.cos(je*Math.PI)/2+.5},">":function(je){return Math.sin(je*Math.PI/2)},"<":function(je){return 1-Math.cos(je*Math.PI/2)}},L.morph=function(je){return function(it,Ct){return new L.MorphObj(it,Ct).at(je)}},L.Situation=L.invent({create:function(je){this.init=!1,this.reversed=!1,this.reversing=!1,this.duration=new L.Number(je.duration).valueOf(),this.delay=new L.Number(je.delay).valueOf(),this.start=+new Date+this.delay,this.finish=this.start+this.duration,this.ease=je.ease,this.loop=0,this.loops=!1,this.animations={},this.attrs={},this.styles={},this.transforms=[],this.once={}}}),L.FX=L.invent({create:function(je){this._target=je,this.situations=[],this.active=!1,this.situation=null,this.paused=!1,this.lastPos=0,this.pos=0,this.absPos=0,this._speed=1},extend:{animate:function(je,it,Ct){x(je)==="object"&&(it=je.ease,Ct=je.delay,je=je.duration);var si=new L.Situation({duration:je||1e3,delay:Ct||0,ease:L.easing[it||"-"]||it});return this.queue(si),this},target:function(je){return je&&je instanceof L.Element?(this._target=je,this):this._target},timeToAbsPos:function(je){return(je-this.situation.start)/(this.situation.duration/this._speed)},absPosToTime:function(je){return this.situation.duration/this._speed*je+this.situation.start},startAnimFrame:function(){this.stopAnimFrame(),this.animationFrame=ai.requestAnimationFrame(function(){this.step()}.bind(this))},stopAnimFrame:function(){ai.cancelAnimationFrame(this.animationFrame)},start:function(){return!this.active&&this.situation&&(this.active=!0,this.startCurrent()),this},startCurrent:function(){return this.situation.start=+new Date+this.situation.delay/this._speed,this.situation.finish=this.situation.start+this.situation.duration/this._speed,this.initAnimations().step()},queue:function(je){return(typeof je=="function"||je instanceof L.Situation)&&this.situations.push(je),this.situation||(this.situation=this.situations.shift()),this},dequeue:function(){return this.stop(),this.situation=this.situations.shift(),this.situation&&(this.situation instanceof L.Situation?this.start():this.situation.call(this)),this},initAnimations:function(){var je,it=this.situation;if(it.init)return this;for(var Ct in it.animations){je=this.target()[Ct](),Array.isArray(je)||(je=[je]),Array.isArray(it.animations[Ct])||(it.animations[Ct]=[it.animations[Ct]]);for(var si=je.length;si--;)it.animations[Ct][si]instanceof L.Number&&(je[si]=new L.Number(je[si])),it.animations[Ct][si]=je[si].morph(it.animations[Ct][si])}for(var Ct in it.attrs)it.attrs[Ct]=new L.MorphObj(this.target().attr(Ct),it.attrs[Ct]);for(var Ct in it.styles)it.styles[Ct]=new L.MorphObj(this.target().style(Ct),it.styles[Ct]);return it.initialTransformation=this.target().matrixify(),it.init=!0,this},clearQueue:function(){return this.situations=[],this},clearCurrent:function(){return this.situation=null,this},stop:function(je,it){var Ct=this.active;return this.active=!1,it&&this.clearQueue(),je&&this.situation&&(!Ct&&this.startCurrent(),this.atEnd()),this.stopAnimFrame(),this.clearCurrent()},after:function(je){var it=this.last();return this.target().on("finished.fx",function Ct(si){si.detail.situation==it&&(je.call(this,it),this.off("finished.fx",Ct))}),this._callStart()},during:function(je){var it=this.last(),Ct=function(si){si.detail.situation==it&&je.call(this,si.detail.pos,L.morph(si.detail.pos),si.detail.eased,it)};return this.target().off("during.fx",Ct).on("during.fx",Ct),this.after(function(){this.off("during.fx",Ct)}),this._callStart()},afterAll:function(je){var it=function Ct(si){je.call(this),this.off("allfinished.fx",Ct)};return this.target().off("allfinished.fx",it).on("allfinished.fx",it),this._callStart()},last:function(){return this.situations.length?this.situations[this.situations.length-1]:this.situation},add:function(je,it,Ct){return this.last()[Ct||"animations"][je]=it,this._callStart()},step:function(je){var it,Ct,si;je||(this.absPos=this.timeToAbsPos(+new Date)),this.situation.loops!==!1?(it=Math.max(this.absPos,0),Ct=Math.floor(it),this.situation.loops===!0||Ct<this.situation.loops?(this.pos=it-Ct,si=this.situation.loop,this.situation.loop=Ct):(this.absPos=this.situation.loops,this.pos=1,si=this.situation.loop-1,this.situation.loop=this.situation.loops),this.situation.reversing&&(this.situation.reversed=this.situation.reversed!=!!((this.situation.loop-si)%2))):(this.absPos=Math.min(this.absPos,1),this.pos=this.absPos),this.pos<0&&(this.pos=0),this.situation.reversed&&(this.pos=1-this.pos);var di=this.situation.ease(this.pos);for(var yi in this.situation.once)yi>this.lastPos&&yi<=di&&(this.situation.once[yi].call(this.target(),this.pos,di),delete this.situation.once[yi]);return this.active&&this.target().fire("during",{pos:this.pos,eased:di,fx:this,situation:this.situation}),this.situation?(this.eachAt(),this.pos==1&&!this.situation.reversed||this.situation.reversed&&this.pos==0?(this.stopAnimFrame(),this.target().fire("finished",{fx:this,situation:this.situation}),this.situations.length||(this.target().fire("allfinished"),this.situations.length||(this.target().off(".fx"),this.active=!1)),this.active?this.dequeue():this.clearCurrent()):!this.paused&&this.active&&this.startAnimFrame(),this.lastPos=di,this):this},eachAt:function(){var je,it=this,Ct=this.target(),si=this.situation;for(var di in si.animations)je=[].concat(si.animations[di]).map(function(iM){return typeof iM!="string"&&iM.at?iM.at(si.ease(it.pos),it.pos):iM}),Ct[di].apply(Ct,je);for(var di in si.attrs)je=[di].concat(si.attrs[di]).map(function(mM){return typeof mM!="string"&&mM.at?mM.at(si.ease(it.pos),it.pos):mM}),Ct.attr.apply(Ct,je);for(var di in si.styles)je=[di].concat(si.styles[di]).map(function(mM){return typeof mM!="string"&&mM.at?mM.at(si.ease(it.pos),it.pos):mM}),Ct.style.apply(Ct,je);if(si.transforms.length){je=si.initialTransformation,di=0;for(var yi=si.transforms.length;di<yi;di++){var nM=si.transforms[di];nM instanceof L.Matrix?je=nM.relative?je.multiply(new L.Matrix().morph(nM).at(si.ease(this.pos))):je.morph(nM).at(si.ease(this.pos)):(nM.relative||nM.undo(je.extract()),je=je.multiply(nM.at(si.ease(this.pos))))}Ct.matrix(je)}return this},once:function(je,it,Ct){var si=this.last();return Ct||(je=si.ease(je)),si.once[je]=it,this},_callStart:function(){return setTimeout(function(){this.start()}.bind(this),0),this}},parent:L.Element,construct:{animate:function(je,it,Ct){return(this.fx||(this.fx=new L.FX(this))).animate(je,it,Ct)},delay:function(je){return(this.fx||(this.fx=new L.FX(this))).delay(je)},stop:function(je,it){return this.fx&&this.fx.stop(je,it),this},finish:function(){return this.fx&&this.fx.finish(),this}}}),L.MorphObj=L.invent({create:function(je,it){return L.Color.isColor(it)?new L.Color(je).morph(it):L.regex.delimiter.test(je)?L.regex.pathLetters.test(je)?new L.PathArray(je).morph(it):new L.Array(je).morph(it):L.regex.numberAndUnit.test(it)?new L.Number(je).morph(it):(this.value=je,void(this.destination=it))},extend:{at:function(je,it){return it<1?this.value:this.destination},valueOf:function(){return this.value}}}),L.extend(L.FX,{attr:function(je,it,Ct){if(x(je)==="object")for(var si in je)this.attr(si,je[si]);else this.add(je,it,"attrs");return this},plot:function(je,it,Ct,si){return arguments.length==4?this.plot([je,it,Ct,si]):this.add("plot",new(this.target()).morphArray(je))}}),L.Box=L.invent({create:function(je,it,Ct,si){if(!(x(je)!=="object"||je instanceof L.Element))return L.Box.call(this,je.left!=null?je.left:je.x,je.top!=null?je.top:je.y,je.width,je.height);var di;arguments.length==4&&(this.x=je,this.y=it,this.width=Ct,this.height=si),(di=this).x==null&&(di.x=0,di.y=0,di.width=0,di.height=0),di.w=di.width,di.h=di.height,di.x2=di.x+di.width,di.y2=di.y+di.height,di.cx=di.x+di.width/2,di.cy=di.y+di.height/2}}),L.BBox=L.invent({create:function(je){if(L.Box.apply(this,[].slice.call(arguments)),je instanceof L.Element){var it;try{if(!C.documentElement.contains){for(var Ct=je.node;Ct.parentNode;)Ct=Ct.parentNode;if(Ct!=C)throw new Error("Element not in the dom")}it=je.node.getBBox()}catch{if(je instanceof L.Shape){L.parser.draw||L.prepare();var si=je.clone(L.parser.draw.instance).show();si&&si.node&&typeof si.node.getBBox=="function"&&(it=si.node.getBBox()),si&&typeof si.remove=="function"&&si.remove()}else it={x:je.node.clientLeft,y:je.node.clientTop,width:je.node.clientWidth,height:je.node.clientHeight}}L.Box.call(this,it)}},inherit:L.Box,parent:L.Element,construct:{bbox:function(){return new L.BBox(this)}}}),L.BBox.prototype.constructor=L.BBox,L.Matrix=L.invent({create:function(je){var it=It([1,0,0,1,0,0]);je=je===null?it:je instanceof L.Element?je.matrixify():typeof je=="string"?It(je.split(L.regex.delimiter).map(parseFloat)):arguments.length==6?It([].slice.call(arguments)):Array.isArray(je)?It(je):je&&x(je)==="object"?je:it;for(var Ct=fi.length-1;Ct>=0;--Ct)this[fi[Ct]]=je[fi[Ct]]!=null?je[fi[Ct]]:it[fi[Ct]]},extend:{extract:function(){var je=nt(this,0,1);nt(this,1,0);var it=180/Math.PI*Math.atan2(je.y,je.x)-90;return{x:this.e,y:this.f,transformedX:(this.e*Math.cos(it*Math.PI/180)+this.f*Math.sin(it*Math.PI/180))/Math.sqrt(this.a*this.a+this.b*this.b),transformedY:(this.f*Math.cos(it*Math.PI/180)+this.e*Math.sin(-it*Math.PI/180))/Math.sqrt(this.c*this.c+this.d*this.d),rotation:it,a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f,matrix:new L.Matrix(this)}},clone:function(){return new L.Matrix(this)},morph:function(je){return this.destination=new L.Matrix(je),this},multiply:function(je){return new L.Matrix(this.native().multiply(function(it){return it instanceof L.Matrix||(it=new L.Matrix(it)),it}(je).native()))},inverse:function(){return new L.Matrix(this.native().inverse())},translate:function(je,it){return new L.Matrix(this.native().translate(je||0,it||0))},native:function(){for(var je=L.parser.native.createSVGMatrix(),it=fi.length-1;it>=0;it--)je[fi[it]]=this[fi[it]];return je},toString:function(){return"matrix("+ni(this.a)+","+ni(this.b)+","+ni(this.c)+","+ni(this.d)+","+ni(this.e)+","+ni(this.f)+")"}},parent:L.Element,construct:{ctm:function(){return new L.Matrix(this.node.getCTM())},screenCTM:function(){if(this instanceof L.Nested){var je=this.rect(1,1),it=je.node.getScreenCTM();return je.remove(),new L.Matrix(it)}return new L.Matrix(this.node.getScreenCTM())}}}),L.Point=L.invent({create:function(je,it){var Ct;Ct=Array.isArray(je)?{x:je[0],y:je[1]}:x(je)==="object"?{x:je.x,y:je.y}:je!=null?{x:je,y:it??je}:{x:0,y:0},this.x=Ct.x,this.y=Ct.y},extend:{clone:function(){return new L.Point(this)},morph:function(je,it){return this.destination=new L.Point(je,it),this}}}),L.extend(L.Element,{point:function(je,it){return new L.Point(je,it).transform(this.screenCTM().inverse())}}),L.extend(L.Element,{attr:function(je,it,Ct){if(je==null){for(je={},Ct=(it=this.node.attributes).length-1;Ct>=0;Ct--)je[it[Ct].nodeName]=L.regex.isNumber.test(it[Ct].nodeValue)?parseFloat(it[Ct].nodeValue):it[Ct].nodeValue;return je}if(x(je)==="object")for(var si in je)this.attr(si,je[si]);else if(it===null)this.node.removeAttribute(je);else{if(it==null)return(it=this.node.getAttribute(je))==null?L.defaults.attrs[je]:L.regex.isNumber.test(it)?parseFloat(it):it;je=="stroke-width"?this.attr("stroke",parseFloat(it)>0?this._stroke:null):je=="stroke"&&(this._stroke=it),je!="fill"&&je!="stroke"||(L.regex.isImage.test(it)&&(it=this.doc().defs().image(it,0,0)),it instanceof L.Image&&(it=this.doc().defs().pattern(0,0,function(){this.add(it)}))),typeof it=="number"?it=new L.Number(it):L.Color.isColor(it)?it=new L.Color(it):Array.isArray(it)&&(it=new L.Array(it)),je=="leading"?this.leading&&this.leading(it):typeof Ct=="string"?this.node.setAttributeNS(Ct,je,it.toString()):this.node.setAttribute(je,it.toString()),!this.rebuild||je!="font-size"&&je!="x"||this.rebuild(je,it)}return this}}),L.extend(L.Element,{transform:function(je,it){var Ct;return x(je)!=="object"?(Ct=new L.Matrix(this).extract(),typeof je=="string"?Ct[je]:Ct):(Ct=new L.Matrix(this),it=!!it||!!je.relative,je.a!=null&&(Ct=it?Ct.multiply(new L.Matrix(je)):new L.Matrix(je)),this.attr("transform",Ct))}}),L.extend(L.Element,{untransform:function(){return this.attr("transform",null)},matrixify:function(){return(this.attr("transform")||"").split(L.regex.transforms).slice(0,-1).map(function(je){var it=je.trim().split("(");return[it[0],it[1].split(L.regex.delimiter).map(function(Ct){return parseFloat(Ct)})]}).reduce(function(je,it){return it[0]=="matrix"?je.multiply(It(it[1])):je[it[0]].apply(je,it[1])},new L.Matrix)},toParent:function(je){if(this==je)return this;var it=this.screenCTM(),Ct=je.screenCTM().inverse();return this.addTo(je).untransform().transform(Ct.multiply(it)),this},toDoc:function(){return this.toParent(this.doc())}}),L.Transformation=L.invent({create:function(je,it){if(arguments.length>1&&typeof it!="boolean")return this.constructor.call(this,[].slice.call(arguments));if(Array.isArray(je))for(var Ct=0,si=this.arguments.length;Ct<si;++Ct)this[this.arguments[Ct]]=je[Ct];else if(je&&x(je)==="object")for(Ct=0,si=this.arguments.length;Ct<si;++Ct)this[this.arguments[Ct]]=je[this.arguments[Ct]];this.inversed=!1,it===!0&&(this.inversed=!0)}}),L.Translate=L.invent({parent:L.Matrix,inherit:L.Transformation,create:function(je,it){this.constructor.apply(this,[].slice.call(arguments))},extend:{arguments:["transformedX","transformedY"],method:"translate"}}),L.extend(L.Element,{style:function(je,it){if(arguments.length==0)return this.node.style.cssText||"";if(arguments.length<2)if(x(je)==="object")for(var Ct in je)this.style(Ct,je[Ct]);else{if(!L.regex.isCss.test(je))return this.node.style[Re(je)];for(je=je.split(/\s*;\s*/).filter(function(si){return!!si}).map(function(si){return si.split(/\s*:\s*/)});it=je.pop();)this.style(it[0],it[1])}else this.node.style[Re(je)]=it===null||L.regex.isBlank.test(it)?"":it;return this}}),L.Parent=L.invent({create:function(je){this.constructor.call(this,je)},inherit:L.Element,extend:{children:function(){return L.utils.map(L.utils.filterSVGElements(this.node.childNodes),function(je){return L.adopt(je)})},add:function(je,it){return it==null?this.node.appendChild(je.node):je.node!=this.node.childNodes[it]&&this.node.insertBefore(je.node,this.node.childNodes[it]),this},put:function(je,it){return this.add(je,it),je},has:function(je){return this.index(je)>=0},index:function(je){return[].slice.call(this.node.childNodes).indexOf(je.node)},get:function(je){return L.adopt(this.node.childNodes[je])},first:function(){return this.get(0)},last:function(){return this.get(this.node.childNodes.length-1)},each:function(je,it){for(var Ct=this.children(),si=0,di=Ct.length;si<di;si++)Ct[si]instanceof L.Element&&je.apply(Ct[si],[si,Ct]),it&&Ct[si]instanceof L.Container&&Ct[si].each(je,it);return this},removeElement:function(je){return this.node.removeChild(je.node),this},clear:function(){for(;this.node.hasChildNodes();)this.node.removeChild(this.node.lastChild);return delete this._defs,this},defs:function(){return this.doc().defs()}}}),L.extend(L.Parent,{ungroup:function(je,it){return it===0||this instanceof L.Defs||this.node==L.parser.draw||(je=je||(this instanceof L.Doc?this:this.parent(L.Parent)),it=it||1/0,this.each(function(){return this instanceof L.Defs?this:this instanceof L.Parent?this.ungroup(je,it-1):this.toParent(je)}),this.node.firstChild||this.remove()),this},flatten:function(je,it){return this.ungroup(je,it)}}),L.Container=L.invent({create:function(je){this.constructor.call(this,je)},inherit:L.Parent}),L.ViewBox=L.invent({parent:L.Container,construct:{}}),["click","dblclick","mousedown","mouseup","mouseover","mouseout","mousemove","touchstart","touchmove","touchleave","touchend","touchcancel"].forEach(function(je){L.Element.prototype[je]=function(it){return L.on(this.node,je,it),this}}),L.listeners=[],L.handlerMap=[],L.listenerId=0,L.on=function(je,it,Ct,si,di){var yi=Ct.bind(si||je.instance||je),nM=(L.handlerMap.indexOf(je)+1||L.handlerMap.push(je))-1,iM=it.split(".")[0],mM=it.split(".")[1]||"*";L.listeners[nM]=L.listeners[nM]||{},L.listeners[nM][iM]=L.listeners[nM][iM]||{},L.listeners[nM][iM][mM]=L.listeners[nM][iM][mM]||{},Ct._svgjsListenerId||(Ct._svgjsListenerId=++L.listenerId),L.listeners[nM][iM][mM][Ct._svgjsListenerId]=yi,je.addEventListener(iM,yi,di||{passive:!0})},L.off=function(je,it,Ct){var si=L.handlerMap.indexOf(je),di=it&&it.split(".")[0],yi=it&&it.split(".")[1],nM="";if(si!=-1)if(Ct){if(typeof Ct=="function"&&(Ct=Ct._svgjsListenerId),!Ct)return;L.listeners[si][di]&&L.listeners[si][di][yi||"*"]&&(je.removeEventListener(di,L.listeners[si][di][yi||"*"][Ct],!1),delete L.listeners[si][di][yi||"*"][Ct])}else if(yi&&di){if(L.listeners[si][di]&&L.listeners[si][di][yi]){for(var iM in L.listeners[si][di][yi])L.off(je,[di,yi].join("."),iM);delete L.listeners[si][di][yi]}}else if(yi)for(var mM in L.listeners[si])for(var nM in L.listeners[si][mM])yi===nM&&L.off(je,[mM,yi].join("."));else if(di){if(L.listeners[si][di]){for(var nM in L.listeners[si][di])L.off(je,[di,nM].join("."));delete L.listeners[si][di]}}else{for(var mM in L.listeners[si])L.off(je,mM);delete L.listeners[si],delete L.handlerMap[si]}},L.extend(L.Element,{on:function(je,it,Ct,si){return L.on(this.node,je,it,Ct,si),this},off:function(je,it){return L.off(this.node,je,it),this},fire:function(je,it){return je instanceof ai.Event?this.node.dispatchEvent(je):this.node.dispatchEvent(je=new L.CustomEvent(je,{detail:it,cancelable:!0})),this._event=je,this},event:function(){return this._event}}),L.Defs=L.invent({create:"defs",inherit:L.Container}),L.G=L.invent({create:"g",inherit:L.Container,extend:{x:function(je){return je==null?this.transform("x"):this.transform({x:je-this.x()},!0)}},construct:{group:function(){return this.put(new L.G)}}}),L.Doc=L.invent({create:function(je){je&&((je=typeof je=="string"?C.getElementById(je):je).nodeName=="svg"?this.constructor.call(this,je):(this.constructor.call(this,L.create("svg")),je.appendChild(this.node),this.size("100%","100%")),this.namespace().defs())},inherit:L.Container,extend:{namespace:function(){return this.attr({xmlns:L.ns,version:"1.1"}).attr("xmlns:xlink",L.xlink,L.xmlns).attr("xmlns:svgjs",L.svgjs,L.xmlns)},defs:function(){var je;return this._defs||((je=this.node.getElementsByTagName("defs")[0])?this._defs=L.adopt(je):this._defs=new L.Defs,this.node.appendChild(this._defs.node)),this._defs},parent:function(){return this.node.parentNode&&this.node.parentNode.nodeName!="#document"?this.node.parentNode:null},remove:function(){return this.parent()&&this.parent().removeChild(this.node),this},clear:function(){for(;this.node.hasChildNodes();)this.node.removeChild(this.node.lastChild);return delete this._defs,L.parser.draw&&!L.parser.draw.parentNode&&this.node.appendChild(L.parser.draw),this},clone:function(je){this.writeDataToDom();var it=this.node,Ct=Tt(it.cloneNode(!0));return je?(je.node||je).appendChild(Ct.node):it.parentNode.insertBefore(Ct.node,it.nextSibling),Ct}}}),L.extend(L.Element,{}),L.Gradient=L.invent({create:function(je){this.constructor.call(this,L.create(je+"Gradient")),this.type=je},inherit:L.Container,extend:{at:function(je,it,Ct){return this.put(new L.Stop).update(je,it,Ct)},update:function(je){return this.clear(),typeof je=="function"&&je.call(this,this),this},fill:function(){return"url(#"+this.id()+")"},toString:function(){return this.fill()},attr:function(je,it,Ct){return je=="transform"&&(je="gradientTransform"),L.Container.prototype.attr.call(this,je,it,Ct)}},construct:{gradient:function(je,it){return this.defs().gradient(je,it)}}}),L.extend(L.Gradient,L.FX,{from:function(je,it){return(this._target||this).type=="radial"?this.attr({fx:new L.Number(je),fy:new L.Number(it)}):this.attr({x1:new L.Number(je),y1:new L.Number(it)})},to:function(je,it){return(this._target||this).type=="radial"?this.attr({cx:new L.Number(je),cy:new L.Number(it)}):this.attr({x2:new L.Number(je),y2:new L.Number(it)})}}),L.extend(L.Defs,{gradient:function(je,it){return this.put(new L.Gradient(je)).update(it)}}),L.Stop=L.invent({create:"stop",inherit:L.Element,extend:{update:function(je){return(typeof je=="number"||je instanceof L.Number)&&(je={offset:arguments[0],color:arguments[1],opacity:arguments[2]}),je.opacity!=null&&this.attr("stop-opacity",je.opacity),je.color!=null&&this.attr("stop-color",je.color),je.offset!=null&&this.attr("offset",new L.Number(je.offset)),this}}}),L.Pattern=L.invent({create:"pattern",inherit:L.Container,extend:{fill:function(){return"url(#"+this.id()+")"},update:function(je){return this.clear(),typeof je=="function"&&je.call(this,this),this},toString:function(){return this.fill()},attr:function(je,it,Ct){return je=="transform"&&(je="patternTransform"),L.Container.prototype.attr.call(this,je,it,Ct)}},construct:{pattern:function(je,it,Ct){return this.defs().pattern(je,it,Ct)}}}),L.extend(L.Defs,{pattern:function(je,it,Ct){return this.put(new L.Pattern).update(Ct).attr({x:0,y:0,width:je,height:it,patternUnits:"userSpaceOnUse"})}}),L.Shape=L.invent({create:function(je){this.constructor.call(this,je)},inherit:L.Element}),L.Symbol=L.invent({create:"symbol",inherit:L.Container,construct:{symbol:function(){return this.put(new L.Symbol)}}}),L.Use=L.invent({create:"use",inherit:L.Shape,extend:{element:function(je,it){return this.attr("href",(it||"")+"#"+je,L.xlink)}},construct:{use:function(je,it){return this.put(new L.Use).element(je,it)}}}),L.Rect=L.invent({create:"rect",inherit:L.Shape,construct:{rect:function(je,it){return this.put(new L.Rect).size(je,it)}}}),L.Circle=L.invent({create:"circle",inherit:L.Shape,construct:{circle:function(je){return this.put(new L.Circle).rx(new L.Number(je).divide(2)).move(0,0)}}}),L.extend(L.Circle,L.FX,{rx:function(je){return this.attr("r",je)},ry:function(je){return this.rx(je)}}),L.Ellipse=L.invent({create:"ellipse",inherit:L.Shape,construct:{ellipse:function(je,it){return this.put(new L.Ellipse).size(je,it).move(0,0)}}}),L.extend(L.Ellipse,L.Rect,L.FX,{rx:function(je){return this.attr("rx",je)},ry:function(je){return this.attr("ry",je)}}),L.extend(L.Circle,L.Ellipse,{x:function(je){return je==null?this.cx()-this.rx():this.cx(je+this.rx())},y:function(je){return je==null?this.cy()-this.ry():this.cy(je+this.ry())},cx:function(je){return je==null?this.attr("cx"):this.attr("cx",je)},cy:function(je){return je==null?this.attr("cy"):this.attr("cy",je)},width:function(je){return je==null?2*this.rx():this.rx(new L.Number(je).divide(2))},height:function(je){return je==null?2*this.ry():this.ry(new L.Number(je).divide(2))},size:function(je,it){var Ct=Ke(this,je,it);return this.rx(new L.Number(Ct.width).divide(2)).ry(new L.Number(Ct.height).divide(2))}}),L.Line=L.invent({create:"line",inherit:L.Shape,extend:{array:function(){return new L.PointArray([[this.attr("x1"),this.attr("y1")],[this.attr("x2"),this.attr("y2")]])},plot:function(je,it,Ct,si){return je==null?this.array():(je=it!==void 0?{x1:je,y1:it,x2:Ct,y2:si}:new L.PointArray(je).toLine(),this.attr(je))},move:function(je,it){return this.attr(this.array().move(je,it).toLine())},size:function(je,it){var Ct=Ke(this,je,it);return this.attr(this.array().size(Ct.width,Ct.height).toLine())}},construct:{line:function(je,it,Ct,si){return L.Line.prototype.plot.apply(this.put(new L.Line),je!=null?[je,it,Ct,si]:[0,0,0,0])}}}),L.Polyline=L.invent({create:"polyline",inherit:L.Shape,construct:{polyline:function(je){return this.put(new L.Polyline).plot(je||new L.PointArray)}}}),L.Polygon=L.invent({create:"polygon",inherit:L.Shape,construct:{polygon:function(je){return this.put(new L.Polygon).plot(je||new L.PointArray)}}}),L.extend(L.Polyline,L.Polygon,{array:function(){return this._array||(this._array=new L.PointArray(this.attr("points")))},plot:function(je){return je==null?this.array():this.clear().attr("points",typeof je=="string"?je:this._array=new L.PointArray(je))},clear:function(){return delete this._array,this},move:function(je,it){return this.attr("points",this.array().move(je,it))},size:function(je,it){var Ct=Ke(this,je,it);return this.attr("points",this.array().size(Ct.width,Ct.height))}}),L.extend(L.Line,L.Polyline,L.Polygon,{morphArray:L.PointArray,x:function(je){return je==null?this.bbox().x:this.move(je,this.bbox().y)},y:function(je){return je==null?this.bbox().y:this.move(this.bbox().x,je)},width:function(je){var it=this.bbox();return je==null?it.width:this.size(je,it.height)},height:function(je){var it=this.bbox();return je==null?it.height:this.size(it.width,je)}}),L.Path=L.invent({create:"path",inherit:L.Shape,extend:{morphArray:L.PathArray,array:function(){return this._array||(this._array=new L.PathArray(this.attr("d")))},plot:function(je){return je==null?this.array():this.clear().attr("d",typeof je=="string"?je:this._array=new L.PathArray(je))},clear:function(){return delete this._array,this}},construct:{path:function(je){return this.put(new L.Path).plot(je||new L.PathArray)}}}),L.Image=L.invent({create:"image",inherit:L.Shape,extend:{load:function(je){if(!je)return this;var it=this,Ct=new ai.Image;return L.on(Ct,"load",function(){L.off(Ct);var si=it.parent(L.Pattern);si!==null&&(it.width()==0&&it.height()==0&&it.size(Ct.width,Ct.height),si&&si.width()==0&&si.height()==0&&si.size(it.width(),it.height()),typeof it._loaded=="function"&&it._loaded.call(it,{width:Ct.width,height:Ct.height,ratio:Ct.width/Ct.height,url:je}))}),L.on(Ct,"error",function(si){L.off(Ct),typeof it._error=="function"&&it._error.call(it,si)}),this.attr("href",Ct.src=this.src=je,L.xlink)},loaded:function(je){return this._loaded=je,this},error:function(je){return this._error=je,this}},construct:{image:function(je,it,Ct){return this.put(new L.Image).load(je).size(it||0,Ct||it||0)}}}),L.Text=L.invent({create:function(){this.constructor.call(this,L.create("text")),this.dom.leading=new L.Number(1.3),this._rebuild=!0,this._build=!1,this.attr("font-family",L.defaults.attrs["font-family"])},inherit:L.Shape,extend:{x:function(je){return je==null?this.attr("x"):this.attr("x",je)},text:function(je){if(je===void 0){je="";for(var it=this.node.childNodes,Ct=0,si=it.length;Ct<si;++Ct)Ct!=0&&it[Ct].nodeType!=3&&L.adopt(it[Ct]).dom.newLined==1&&(je+=`
`),je+=it[Ct].textContent;return je}if(this.clear().build(!0),typeof je=="function")je.call(this,this);else{Ct=0;for(var di=(je=je.split(`
`)).length;Ct<di;Ct++)this.tspan(je[Ct]).newLine()}return this.build(!1).rebuild()},size:function(je){return this.attr("font-size",je).rebuild()},leading:function(je){return je==null?this.dom.leading:(this.dom.leading=new L.Number(je),this.rebuild())},lines:function(){var je=(this.textPath&&this.textPath()||this).node,it=L.utils.map(L.utils.filterSVGElements(je.childNodes),function(Ct){return L.adopt(Ct)});return new L.Set(it)},rebuild:function(je){if(typeof je=="boolean"&&(this._rebuild=je),this._rebuild){var it=this,Ct=0,si=this.dom.leading*new L.Number(this.attr("font-size"));this.lines().each(function(){this.dom.newLined&&(it.textPath()||this.attr("x",it.attr("x")),this.text()==`
`?Ct+=si:(this.attr("dy",si+Ct),Ct=0))}),this.fire("rebuild")}return this},build:function(je){return this._build=!!je,this},setData:function(je){return this.dom=je,this.dom.leading=new L.Number(je.leading||1.3),this}},construct:{text:function(je){return this.put(new L.Text).text(je)},plain:function(je){return this.put(new L.Text).plain(je)}}}),L.Tspan=L.invent({create:"tspan",inherit:L.Shape,extend:{text:function(je){return je==null?this.node.textContent+(this.dom.newLined?`
`:""):(typeof je=="function"?je.call(this,this):this.plain(je),this)},dx:function(je){return this.attr("dx",je)},dy:function(je){return this.attr("dy",je)},newLine:function(){var je=this.parent(L.Text);return this.dom.newLined=!0,this.dy(je.dom.leading*je.attr("font-size")).attr("x",je.x())}}}),L.extend(L.Text,L.Tspan,{plain:function(je){return this._build===!1&&this.clear(),this.node.appendChild(C.createTextNode(je)),this},tspan:function(je){var it=(this.textPath&&this.textPath()||this).node,Ct=new L.Tspan;return this._build===!1&&this.clear(),it.appendChild(Ct.node),Ct.text(je)},clear:function(){for(var je=(this.textPath&&this.textPath()||this).node;je.hasChildNodes();)je.removeChild(je.lastChild);return this},length:function(){return this.node.getComputedTextLength()}}),L.TextPath=L.invent({create:"textPath",inherit:L.Parent,parent:L.Text,construct:{morphArray:L.PathArray,array:function(){var je=this.track();return je?je.array():null},plot:function(je){var it=this.track(),Ct=null;return it&&(Ct=it.plot(je)),je==null?Ct:this},track:function(){var je=this.textPath();if(je)return je.reference("href")},textPath:function(){if(this.node.firstChild&&this.node.firstChild.nodeName=="textPath")return L.adopt(this.node.firstChild)}}}),L.Nested=L.invent({create:function(){this.constructor.call(this,L.create("svg")),this.style("overflow","visible")},inherit:L.Container,construct:{nested:function(){return this.put(new L.Nested)}}});var me={stroke:["color","width","opacity","linecap","linejoin","miterlimit","dasharray","dashoffset"],fill:["color","opacity","rule"],prefix:function(je,it){return it=="color"?je:je+"-"+it}};function Pe(je,it,Ct,si){return Ct+si.replace(L.regex.dots," .")}function Re(je){return je.toLowerCase().replace(/-(.)/g,function(it,Ct){return Ct.toUpperCase()})}function Xe(je){return je.charAt(0).toUpperCase()+je.slice(1)}function qe(je){var it=je.toString(16);return it.length==1?"0"+it:it}function Ke(je,it,Ct){if(it==null||Ct==null){var si=je.bbox();it==null?it=si.width/si.height*Ct:Ct==null&&(Ct=si.height/si.width*it)}return{width:it,height:Ct}}function nt(je,it,Ct){return{x:it*je.a+Ct*je.c+0,y:it*je.b+Ct*je.d+0}}function It(je){return{a:je[0],b:je[1],c:je[2],d:je[3],e:je[4],f:je[5]}}function Tt(je){for(var it=je.childNodes.length-1;it>=0;it--)je.childNodes[it]instanceof ai.SVGElement&&Tt(je.childNodes[it]);return L.adopt(je).id(L.eid(je.nodeName))}function ni(je){return Math.abs(je)>1e-37?je:0}["fill","stroke"].forEach(function(je){var it={};it[je]=function(Ct){if(Ct===void 0)return this;if(typeof Ct=="string"||L.Color.isRgb(Ct)||Ct&&typeof Ct.fill=="function")this.attr(je,Ct);else for(var si=me[je].length-1;si>=0;si--)Ct[me[je][si]]!=null&&this.attr(me.prefix(je,me[je][si]),Ct[me[je][si]]);return this},L.extend(L.Element,L.FX,it)}),L.extend(L.Element,L.FX,{translate:function(je,it){return this.transform({x:je,y:it})},matrix:function(je){return this.attr("transform",new L.Matrix(arguments.length==6?[].slice.call(arguments):je))},opacity:function(je){return this.attr("opacity",je)},dx:function(je){return this.x(new L.Number(je).plus(this instanceof L.FX?0:this.x()),!0)},dy:function(je){return this.y(new L.Number(je).plus(this instanceof L.FX?0:this.y()),!0)}}),L.extend(L.Path,{length:function(){return this.node.getTotalLength()},pointAt:function(je){return this.node.getPointAtLength(je)}}),L.Set=L.invent({create:function(je){Array.isArray(je)?this.members=je:this.clear()},extend:{add:function(){for(var je=[].slice.call(arguments),it=0,Ct=je.length;it<Ct;it++)this.members.push(je[it]);return this},remove:function(je){var it=this.index(je);return it>-1&&this.members.splice(it,1),this},each:function(je){for(var it=0,Ct=this.members.length;it<Ct;it++)je.apply(this.members[it],[it,this.members]);return this},clear:function(){return this.members=[],this},length:function(){return this.members.length},has:function(je){return this.index(je)>=0},index:function(je){return this.members.indexOf(je)},get:function(je){return this.members[je]},first:function(){return this.get(0)},last:function(){return this.get(this.members.length-1)},valueOf:function(){return this.members}},construct:{set:function(je){return new L.Set(je)}}}),L.FX.Set=L.invent({create:function(je){this.set=je}}),L.Set.inherit=function(){var je=[];for(var it in L.Shape.prototype)typeof L.Shape.prototype[it]=="function"&&typeof L.Set.prototype[it]!="function"&&je.push(it);for(var it in je.forEach(function(si){L.Set.prototype[si]=function(){for(var di=0,yi=this.members.length;di<yi;di++)this.members[di]&&typeof this.members[di][si]=="function"&&this.members[di][si].apply(this.members[di],arguments);return si=="animate"?this.fx||(this.fx=new L.FX.Set(this)):this}}),je=[],L.FX.prototype)typeof L.FX.prototype[it]=="function"&&typeof L.FX.Set.prototype[it]!="function"&&je.push(it);je.forEach(function(Ct){L.FX.Set.prototype[Ct]=function(){for(var si=0,di=this.set.members.length;si<di;si++)this.set.members[si].fx[Ct].apply(this.set.members[si].fx,arguments);return this}})},L.extend(L.Element,{}),L.extend(L.Element,{remember:function(je,it){if(x(arguments[0])==="object")for(var Ct in je)this.remember(Ct,je[Ct]);else{if(arguments.length==1)return this.memory()[je];this.memory()[je]=it}return this},forget:function(){if(arguments.length==0)this._memory={};else for(var je=arguments.length-1;je>=0;je--)delete this.memory()[arguments[je]];return this},memory:function(){return this._memory||(this._memory={})}}),L.get=function(je){var it=C.getElementById(function(Ct){var si=(Ct||"").toString().match(L.regex.reference);if(si)return si[1]}(je)||je);return L.adopt(it)},L.select=function(je,it){return new L.Set(L.utils.map((it||C).querySelectorAll(je),function(Ct){return L.adopt(Ct)}))},L.extend(L.Parent,{select:function(je){return L.select(je,this.node)}});var fi="abcdef".split("");if(typeof ai.CustomEvent!="function"){var gi=function(je,it){it=it||{bubbles:!1,cancelable:!1,detail:void 0};var Ct=C.createEvent("CustomEvent");return Ct.initCustomEvent(je,it.bubbles,it.cancelable,it.detail),Ct};gi.prototype=ai.Event.prototype,L.CustomEvent=gi}else L.CustomEvent=ai.CustomEvent;return L},x(f)==="object"?u.exports=SM.document?jM(SM,SM.document):function(ai){return jM(ai,ai.document)}:SM.SVG=jM(SM,SM.document),function(){SVG.Filter=SVG.invent({create:"filter",inherit:SVG.Parent,extend:{source:"SourceGraphic",sourceAlpha:"SourceAlpha",background:"BackgroundImage",backgroundAlpha:"BackgroundAlpha",fill:"FillPaint",stroke:"StrokePaint",autoSetIn:!0,put:function(fe,me){return this.add(fe,me),!fe.attr("in")&&this.autoSetIn&&fe.attr("in",this.source),fe.attr("result")||fe.attr("result",fe),fe},blend:function(fe,me,Pe){return this.put(new SVG.BlendEffect(fe,me,Pe))},colorMatrix:function(fe,me){return this.put(new SVG.ColorMatrixEffect(fe,me))},convolveMatrix:function(fe){return this.put(new SVG.ConvolveMatrixEffect(fe))},componentTransfer:function(fe){return this.put(new SVG.ComponentTransferEffect(fe))},composite:function(fe,me,Pe){return this.put(new SVG.CompositeEffect(fe,me,Pe))},flood:function(fe,me){return this.put(new SVG.FloodEffect(fe,me))},offset:function(fe,me){return this.put(new SVG.OffsetEffect(fe,me))},image:function(fe){return this.put(new SVG.ImageEffect(fe))},merge:function(){var fe=[void 0];for(var me in arguments)fe.push(arguments[me]);return this.put(new(SVG.MergeEffect.bind.apply(SVG.MergeEffect,fe)))},gaussianBlur:function(fe,me){return this.put(new SVG.GaussianBlurEffect(fe,me))},morphology:function(fe,me){return this.put(new SVG.MorphologyEffect(fe,me))},diffuseLighting:function(fe,me,Pe){return this.put(new SVG.DiffuseLightingEffect(fe,me,Pe))},displacementMap:function(fe,me,Pe,Re,Xe){return this.put(new SVG.DisplacementMapEffect(fe,me,Pe,Re,Xe))},specularLighting:function(fe,me,Pe,Re){return this.put(new SVG.SpecularLightingEffect(fe,me,Pe,Re))},tile:function(){return this.put(new SVG.TileEffect)},turbulence:function(fe,me,Pe,Re,Xe){return this.put(new SVG.TurbulenceEffect(fe,me,Pe,Re,Xe))},toString:function(){return"url(#"+this.attr("id")+")"}}}),SVG.extend(SVG.Defs,{filter:function(fe){var me=this.put(new SVG.Filter);return typeof fe=="function"&&fe.call(me,me),me}}),SVG.extend(SVG.Container,{filter:function(fe){return this.defs().filter(fe)}}),SVG.extend(SVG.Element,SVG.G,SVG.Nested,{filter:function(fe){return this.filterer=fe instanceof SVG.Element?fe:this.doc().filter(fe),this.doc()&&this.filterer.doc()!==this.doc()&&this.doc().defs().add(this.filterer),this.attr("filter",this.filterer),this.filterer},unfilter:function(fe){return this.filterer&&fe===!0&&this.filterer.remove(),delete this.filterer,this.attr("filter",null)}}),SVG.Effect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Element,extend:{in:function(fe){return fe==null?this.parent()&&this.parent().select('[result="'+this.attr("in")+'"]').get(0)||this.attr("in"):this.attr("in",fe)},result:function(fe){return fe==null?this.attr("result"):this.attr("result",fe)},toString:function(){return this.result()}}}),SVG.ParentEffect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Parent,extend:{in:function(fe){return fe==null?this.parent()&&this.parent().select('[result="'+this.attr("in")+'"]').get(0)||this.attr("in"):this.attr("in",fe)},result:function(fe){return fe==null?this.attr("result"):this.attr("result",fe)},toString:function(){return this.result()}}});var ai={blend:function(fe,me){return this.parent()&&this.parent().blend(this,fe,me)},colorMatrix:function(fe,me){return this.parent()&&this.parent().colorMatrix(fe,me).in(this)},convolveMatrix:function(fe){return this.parent()&&this.parent().convolveMatrix(fe).in(this)},componentTransfer:function(fe){return this.parent()&&this.parent().componentTransfer(fe).in(this)},composite:function(fe,me){return this.parent()&&this.parent().composite(this,fe,me)},flood:function(fe,me){return this.parent()&&this.parent().flood(fe,me)},offset:function(fe,me){return this.parent()&&this.parent().offset(fe,me).in(this)},image:function(fe){return this.parent()&&this.parent().image(fe)},merge:function(){return this.parent()&&this.parent().merge.apply(this.parent(),[this].concat(arguments))},gaussianBlur:function(fe,me){return this.parent()&&this.parent().gaussianBlur(fe,me).in(this)},morphology:function(fe,me){return this.parent()&&this.parent().morphology(fe,me).in(this)},diffuseLighting:function(fe,me,Pe){return this.parent()&&this.parent().diffuseLighting(fe,me,Pe).in(this)},displacementMap:function(fe,me,Pe,Re){return this.parent()&&this.parent().displacementMap(this,fe,me,Pe,Re)},specularLighting:function(fe,me,Pe,Re){return this.parent()&&this.parent().specularLighting(fe,me,Pe,Re).in(this)},tile:function(){return this.parent()&&this.parent().tile().in(this)},turbulence:function(fe,me,Pe,Re,Xe){return this.parent()&&this.parent().turbulence(fe,me,Pe,Re,Xe).in(this)}};SVG.extend(SVG.Effect,ai),SVG.extend(SVG.ParentEffect,ai),SVG.ChildEffect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Element,extend:{in:function(fe){this.attr("in",fe)}}});var C={blend:function(fe,me,Pe){this.attr({in:fe,in2:me,mode:Pe||"normal"})},colorMatrix:function(fe,me){fe=="matrix"&&(me=ne(me)),this.attr({type:fe,values:me===void 0?null:me})},convolveMatrix:function(fe){fe=ne(fe),this.attr({order:Math.sqrt(fe.split(" ").length),kernelMatrix:fe})},composite:function(fe,me,Pe){this.attr({in:fe,in2:me,operator:Pe})},flood:function(fe,me){this.attr("flood-color",fe),me!=null&&this.attr("flood-opacity",me)},offset:function(fe,me){this.attr({dx:fe,dy:me})},image:function(fe){this.attr("href",fe,SVG.xlink)},displacementMap:function(fe,me,Pe,Re,Xe){this.attr({in:fe,in2:me,scale:Pe,xChannelSelector:Re,yChannelSelector:Xe})},gaussianBlur:function(fe,me){fe!=null||me!=null?this.attr("stdDeviation",function(Pe){if(!Array.isArray(Pe))return Pe;for(var Re=0,Xe=Pe.length,qe=[];Re<Xe;Re++)qe.push(Pe[Re]);return qe.join(" ")}(Array.prototype.slice.call(arguments))):this.attr("stdDeviation","0 0")},morphology:function(fe,me){this.attr({operator:fe,radius:me})},tile:function(){},turbulence:function(fe,me,Pe,Re,Xe){this.attr({numOctaves:me,seed:Pe,stitchTiles:Re,baseFrequency:fe,type:Xe})}},L={merge:function(){var fe;if(arguments[0]instanceof SVG.Set){var me=this;arguments[0].each(function(Re){this instanceof SVG.MergeNode?me.put(this):(this instanceof SVG.Effect||this instanceof SVG.ParentEffect)&&me.put(new SVG.MergeNode(this))})}else{fe=Array.isArray(arguments[0])?arguments[0]:arguments;for(var Pe=0;Pe<fe.length;Pe++)fe[Pe]instanceof SVG.MergeNode?this.put(fe[Pe]):this.put(new SVG.MergeNode(fe[Pe]))}},componentTransfer:function(fe){if(this.rgb=new SVG.Set,["r","g","b","a"].forEach(function(Pe){this[Pe]=new SVG["Func"+Pe.toUpperCase()]("identity"),this.rgb.add(this[Pe]),this.node.appendChild(this[Pe].node)}.bind(this)),fe)for(var me in fe.rgb&&(["r","g","b"].forEach(function(Pe){this[Pe].attr(fe.rgb)}.bind(this)),delete fe.rgb),fe)this[me].attr(fe[me])},diffuseLighting:function(fe,me,Pe){this.attr({surfaceScale:fe,diffuseConstant:me,kernelUnitLength:Pe})},specularLighting:function(fe,me,Pe,Re){this.attr({surfaceScale:fe,diffuseConstant:me,specularExponent:Pe,kernelUnitLength:Re})}},F={distantLight:function(fe,me){this.attr({azimuth:fe,elevation:me})},pointLight:function(fe,me,Pe){this.attr({x:fe,y:me,z:Pe})},spotLight:function(fe,me,Pe,Re,Xe,qe){this.attr({x:fe,y:me,z:Pe,pointsAtX:Re,pointsAtY:Xe,pointsAtZ:qe})},mergeNode:function(fe){this.attr("in",fe)}};function ne(fe){return Array.isArray(fe)&&(fe=new SVG.Array(fe)),fe.toString().replace(/^\s+/,"").replace(/\s+$/,"").replace(/\s+/g," ")}function ue(){var fe=function(){};for(var me in typeof arguments[arguments.length-1]=="function"&&(fe=arguments[arguments.length-1],Array.prototype.splice.call(arguments,arguments.length-1,1)),arguments)for(var Pe in arguments[me])fe(arguments[me][Pe],Pe,arguments[me])}["r","g","b","a"].forEach(function(fe){F["Func"+fe.toUpperCase()]=function(me){switch(this.attr("type",me),me){case"table":this.attr("tableValues",arguments[1]);break;case"linear":this.attr("slope",arguments[1]),this.attr("intercept",arguments[2]);break;case"gamma":this.attr("amplitude",arguments[1]),this.attr("exponent",arguments[2]),this.attr("offset",arguments[2])}}}),ue(C,function(fe,me){var Pe=me.charAt(0).toUpperCase()+me.slice(1);SVG[Pe+"Effect"]=SVG.invent({create:function(){this.constructor.call(this,SVG.create("fe"+Pe)),fe.apply(this,arguments),this.result(this.attr("id")+"Out")},inherit:SVG.Effect,extend:{}})}),ue(L,function(fe,me){var Pe=me.charAt(0).toUpperCase()+me.slice(1);SVG[Pe+"Effect"]=SVG.invent({create:function(){this.constructor.call(this,SVG.create("fe"+Pe)),fe.apply(this,arguments),this.result(this.attr("id")+"Out")},inherit:SVG.ParentEffect,extend:{}})}),ue(F,function(fe,me){var Pe=me.charAt(0).toUpperCase()+me.slice(1);SVG[Pe]=SVG.invent({create:function(){this.constructor.call(this,SVG.create("fe"+Pe)),fe.apply(this,arguments)},inherit:SVG.ChildEffect,extend:{}})}),SVG.extend(SVG.MergeEffect,{in:function(fe){return fe instanceof SVG.MergeNode?this.add(fe,0):this.add(new SVG.MergeNode(fe),0),this}}),SVG.extend(SVG.CompositeEffect,SVG.BlendEffect,SVG.DisplacementMapEffect,{in2:function(fe){return fe==null?this.parent()&&this.parent().select('[result="'+this.attr("in2")+'"]').get(0)||this.attr("in2"):this.attr("in2",fe)}}),SVG.filter={sepiatone:[.343,.669,.119,0,0,.249,.626,.13,0,0,.172,.334,.111,0,0,0,0,0,1,0]}}.call(void 0),function(){function ai(ue,fe,me,Pe,Re,Xe,qe){for(var Ke=ue.slice(fe,me||qe),nt=Pe.slice(Re,Xe||qe),It=0,Tt={pos:[0,0],start:[0,0]},ni={pos:[0,0],start:[0,0]};Ke[It]=C.call(Tt,Ke[It]),nt[It]=C.call(ni,nt[It]),Ke[It][0]!=nt[It][0]||Ke[It][0]=="M"||Ke[It][0]=="A"&&(Ke[It][4]!=nt[It][4]||Ke[It][5]!=nt[It][5])?(Array.prototype.splice.apply(Ke,[It,1].concat(F.call(Tt,Ke[It]))),Array.prototype.splice.apply(nt,[It,1].concat(F.call(ni,nt[It])))):(Ke[It]=L.call(Tt,Ke[It]),nt[It]=L.call(ni,nt[It])),!(++It==Ke.length&&It==nt.length);)It==Ke.length&&Ke.push(["C",Tt.pos[0],Tt.pos[1],Tt.pos[0],Tt.pos[1],Tt.pos[0],Tt.pos[1]]),It==nt.length&&nt.push(["C",ni.pos[0],ni.pos[1],ni.pos[0],ni.pos[1],ni.pos[0],ni.pos[1]]);return{start:Ke,dest:nt}}function C(ue){switch(ue[0]){case"z":case"Z":ue[0]="L",ue[1]=this.start[0],ue[2]=this.start[1];break;case"H":ue[0]="L",ue[2]=this.pos[1];break;case"V":ue[0]="L",ue[2]=ue[1],ue[1]=this.pos[0];break;case"T":ue[0]="Q",ue[3]=ue[1],ue[4]=ue[2],ue[1]=this.reflection[1],ue[2]=this.reflection[0];break;case"S":ue[0]="C",ue[6]=ue[4],ue[5]=ue[3],ue[4]=ue[2],ue[3]=ue[1],ue[2]=this.reflection[1],ue[1]=this.reflection[0]}return ue}function L(ue){var fe=ue.length;return this.pos=[ue[fe-2],ue[fe-1]],"SCQT".indexOf(ue[0])!=-1&&(this.reflection=[2*this.pos[0]-ue[fe-4],2*this.pos[1]-ue[fe-3]]),ue}function F(ue){var fe=[ue];switch(ue[0]){case"M":return this.pos=this.start=[ue[1],ue[2]],fe;case"L":ue[5]=ue[3]=ue[1],ue[6]=ue[4]=ue[2],ue[1]=this.pos[0],ue[2]=this.pos[1];break;case"Q":ue[6]=ue[4],ue[5]=ue[3],ue[4]=1*ue[4]/3+2*ue[2]/3,ue[3]=1*ue[3]/3+2*ue[1]/3,ue[2]=1*this.pos[1]/3+2*ue[2]/3,ue[1]=1*this.pos[0]/3+2*ue[1]/3;break;case"A":fe=function(me,Pe){var Re,Xe,qe,Ke,nt,It,Tt,ni,fi,gi,je,it,Ct,si,di,yi,nM,iM,mM,EM,wM,GM,qM,JM,zT,WT,FT=Math.abs(Pe[1]),KT=Math.abs(Pe[2]),nN=Pe[3]%360,SN=Pe[4],_N=Pe[5],WN=Pe[6],HN=Pe[7],hN=new SVG.Point(me),mN=new SVG.Point(WN,HN),lP=[];if(FT===0||KT===0||hN.x===mN.x&&hN.y===mN.y)return[["C",hN.x,hN.y,mN.x,mN.y,mN.x,mN.y]];for(Re=new SVG.Point((hN.x-mN.x)/2,(hN.y-mN.y)/2).transform(new SVG.Matrix().rotate(nN)),(Xe=Re.x*Re.x/(FT*FT)+Re.y*Re.y/(KT*KT))>1&&(FT*=Xe=Math.sqrt(Xe),KT*=Xe),qe=new SVG.Matrix().rotate(nN).scale(1/FT,1/KT).rotate(-nN),hN=hN.transform(qe),mN=mN.transform(qe),Ke=[mN.x-hN.x,mN.y-hN.y],It=Ke[0]*Ke[0]+Ke[1]*Ke[1],nt=Math.sqrt(It),Ke[0]/=nt,Ke[1]/=nt,Tt=It<4?Math.sqrt(1-It/4):0,SN===_N&&(Tt*=-1),ni=new SVG.Point((mN.x+hN.x)/2+Tt*-Ke[1],(mN.y+hN.y)/2+Tt*Ke[0]),fi=new SVG.Point(hN.x-ni.x,hN.y-ni.y),gi=new SVG.Point(mN.x-ni.x,mN.y-ni.y),je=Math.acos(fi.x/Math.sqrt(fi.x*fi.x+fi.y*fi.y)),fi.y<0&&(je*=-1),it=Math.acos(gi.x/Math.sqrt(gi.x*gi.x+gi.y*gi.y)),gi.y<0&&(it*=-1),_N&&je>it&&(it+=2*Math.PI),!_N&&je<it&&(it-=2*Math.PI),si=Math.ceil(2*Math.abs(je-it)/Math.PI),yi=[],nM=je,Ct=(it-je)/si,di=4*Math.tan(Ct/4)/3,wM=0;wM<=si;wM++)mM=Math.cos(nM),iM=Math.sin(nM),EM=new SVG.Point(ni.x+mM,ni.y+iM),yi[wM]=[new SVG.Point(EM.x+di*iM,EM.y-di*mM),EM,new SVG.Point(EM.x-di*iM,EM.y+di*mM)],nM+=Ct;for(yi[0][0]=yi[0][1].clone(),yi[yi.length-1][2]=yi[yi.length-1][1].clone(),qe=new SVG.Matrix().rotate(nN).scale(FT,KT).rotate(-nN),wM=0,GM=yi.length;wM<GM;wM++)yi[wM][0]=yi[wM][0].transform(qe),yi[wM][1]=yi[wM][1].transform(qe),yi[wM][2]=yi[wM][2].transform(qe);for(wM=1,GM=yi.length;wM<GM;wM++)qM=(EM=yi[wM-1][2]).x,JM=EM.y,zT=(EM=yi[wM][0]).x,WT=EM.y,WN=(EM=yi[wM][1]).x,HN=EM.y,lP.push(["C",qM,JM,zT,WT,WN,HN]);return lP}(this.pos,ue),ue=fe[0]}return ue[0]="C",this.pos=[ue[5],ue[6]],this.reflection=[2*ue[5]-ue[3],2*ue[6]-ue[4]],fe}function ne(ue,fe){if(fe===!1)return!1;for(var me=fe,Pe=ue.length;me<Pe;++me)if(ue[me][0]=="M")return me;return!1}SVG.extend(SVG.PathArray,{morph:function(ue){for(var fe=this.value,me=this.parse(ue),Pe=0,Re=0,Xe=!1,qe=!1;Pe!==!1||Re!==!1;){var Ke;Xe=ne(fe,Pe!==!1&&Pe+1),qe=ne(me,Re!==!1&&Re+1),Pe===!1&&(Pe=(Ke=new SVG.PathArray(nt.start).bbox()).height==0||Ke.width==0?fe.push(fe[0])-1:fe.push(["M",Ke.x+Ke.width/2,Ke.y+Ke.height/2])-1),Re===!1&&(Re=(Ke=new SVG.PathArray(nt.dest).bbox()).height==0||Ke.width==0?me.push(me[0])-1:me.push(["M",Ke.x+Ke.width/2,Ke.y+Ke.height/2])-1);var nt=ai(fe,Pe,Xe,me,Re,qe);fe=fe.slice(0,Pe).concat(nt.start,Xe===!1?[]:fe.slice(Xe)),me=me.slice(0,Re).concat(nt.dest,qe===!1?[]:me.slice(qe)),Pe=Xe!==!1&&Pe+nt.start.length,Re=qe!==!1&&Re+nt.dest.length}return this.value=fe,this.destination=new SVG.PathArray,this.destination.value=me,this}})}(),function(){function ai(C){C.remember("_draggable",this),this.el=C}ai.prototype.init=function(C,L){var F=this;this.constraint=C,this.value=L,this.el.on("mousedown.drag",function(ne){F.start(ne)}),this.el.on("touchstart.drag",function(ne){F.start(ne)})},ai.prototype.transformPoint=function(C,L){var F=(C=C||window.event).changedTouches&&C.changedTouches[0]||C;return this.p.x=F.clientX-(L||0),this.p.y=F.clientY,this.p.matrixTransform(this.m)},ai.prototype.getBBox=function(){var C=this.el.bbox();return this.el instanceof SVG.Nested&&(C=this.el.rbox()),(this.el instanceof SVG.G||this.el instanceof SVG.Use||this.el instanceof SVG.Nested)&&(C.x=this.el.x(),C.y=this.el.y()),C},ai.prototype.start=function(C){if(C.type!="click"&&C.type!="mousedown"&&C.type!="mousemove"||(C.which||C.buttons)==1){var L=this;if(this.el.fire("beforedrag",{event:C,handler:this}),!this.el.event().defaultPrevented){C.preventDefault(),C.stopPropagation(),this.parent=this.parent||this.el.parent(SVG.Nested)||this.el.parent(SVG.Doc),this.p=this.parent.node.createSVGPoint(),this.m=this.el.node.getScreenCTM().inverse();var F,ne=this.getBBox();if(this.el instanceof SVG.Text)switch(F=this.el.node.getComputedTextLength(),this.el.attr("text-anchor")){case"middle":F/=2;break;case"start":F=0}this.startPoints={point:this.transformPoint(C,F),box:ne,transform:this.el.transform()},SVG.on(window,"mousemove.drag",function(ue){L.drag(ue)}),SVG.on(window,"touchmove.drag",function(ue){L.drag(ue)}),SVG.on(window,"mouseup.drag",function(ue){L.end(ue)}),SVG.on(window,"touchend.drag",function(ue){L.end(ue)}),this.el.fire("dragstart",{event:C,p:this.startPoints.point,m:this.m,handler:this})}}},ai.prototype.drag=function(C){var L=this.getBBox(),F=this.transformPoint(C),ne=this.startPoints.box.x+F.x-this.startPoints.point.x,ue=this.startPoints.box.y+F.y-this.startPoints.point.y,fe=this.constraint,me=F.x-this.startPoints.point.x,Pe=F.y-this.startPoints.point.y;if(this.el.fire("dragmove",{event:C,p:F,m:this.m,handler:this}),this.el.event().defaultPrevented)return F;if(typeof fe=="function"){var Re=fe.call(this.el,ne,ue,this.m);typeof Re=="boolean"&&(Re={x:Re,y:Re}),Re.x===!0?this.el.x(ne):Re.x!==!1&&this.el.x(Re.x),Re.y===!0?this.el.y(ue):Re.y!==!1&&this.el.y(Re.y)}else typeof fe=="object"&&(fe.minX!=null&&ne<fe.minX?me=(ne=fe.minX)-this.startPoints.box.x:fe.maxX!=null&&ne>fe.maxX-L.width&&(me=(ne=fe.maxX-L.width)-this.startPoints.box.x),fe.minY!=null&&ue<fe.minY?Pe=(ue=fe.minY)-this.startPoints.box.y:fe.maxY!=null&&ue>fe.maxY-L.height&&(Pe=(ue=fe.maxY-L.height)-this.startPoints.box.y),fe.snapToGrid!=null&&(ne-=ne%fe.snapToGrid,ue-=ue%fe.snapToGrid,me-=me%fe.snapToGrid,Pe-=Pe%fe.snapToGrid),this.el instanceof SVG.G?this.el.matrix(this.startPoints.transform).transform({x:me,y:Pe},!0):this.el.move(ne,ue));return F},ai.prototype.end=function(C){var L=this.drag(C);this.el.fire("dragend",{event:C,p:L,m:this.m,handler:this}),SVG.off(window,"mousemove.drag"),SVG.off(window,"touchmove.drag"),SVG.off(window,"mouseup.drag"),SVG.off(window,"touchend.drag")},SVG.extend(SVG.Element,{draggable:function(C,L){typeof C!="function"&&typeof C!="object"||(L=C,C=!0);var F=this.remember("_draggable")||new ai(this);return(C=C===void 0||C)?F.init(L||{},C):(this.off("mousedown.drag"),this.off("touchstart.drag")),this}})}.call(void 0),function(){function ai(C){this.el=C,C.remember("_selectHandler",this),this.pointSelection={isSelected:!1},this.rectSelection={isSelected:!1},this.pointsList={lt:[0,0],rt:["width",0],rb:["width","height"],lb:[0,"height"],t:["width",0],r:["width","height"],b:["width","height"],l:[0,"height"]},this.pointCoord=function(L,F,ne){var ue=typeof L!="string"?L:F[L];return ne?ue/2:ue},this.pointCoords=function(L,F){var ne=this.pointsList[L];return{x:this.pointCoord(ne[0],F,L==="t"||L==="b"),y:this.pointCoord(ne[1],F,L==="r"||L==="l")}}}ai.prototype.init=function(C,L){var F=this.el.bbox();this.options={};var ne=this.el.selectize.defaults.points;for(var ue in this.el.selectize.defaults)this.options[ue]=this.el.selectize.defaults[ue],L[ue]!==void 0&&(this.options[ue]=L[ue]);var fe=["points","pointsExclude"];for(var ue in fe){var me=this.options[fe[ue]];typeof me=="string"?me=me.length>0?me.split(/\s*,\s*/i):[]:typeof me=="boolean"&&fe[ue]==="points"&&(me=me?ne:[]),this.options[fe[ue]]=me}this.options.points=[ne,this.options.points].reduce(function(Pe,Re){return Pe.filter(function(Xe){return Re.indexOf(Xe)>-1})}),this.options.points=[this.options.points,this.options.pointsExclude].reduce(function(Pe,Re){return Pe.filter(function(Xe){return Re.indexOf(Xe)<0})}),this.parent=this.el.parent(),this.nested=this.nested||this.parent.group(),this.nested.matrix(new SVG.Matrix(this.el).translate(F.x,F.y)),this.options.deepSelect&&["line","polyline","polygon"].indexOf(this.el.type)!==-1?this.selectPoints(C):this.selectRect(C),this.observe(),this.cleanup()},ai.prototype.selectPoints=function(C){return this.pointSelection.isSelected=C,this.pointSelection.set||(this.pointSelection.set=this.parent.set(),this.drawPoints()),this},ai.prototype.getPointArray=function(){var C=this.el.bbox();return this.el.array().valueOf().map(function(L){return[L[0]-C.x,L[1]-C.y]})},ai.prototype.drawPoints=function(){for(var C=this,L=this.getPointArray(),F=0,ne=L.length;F<ne;++F){var ue=function(me){return function(Pe){(Pe=Pe||window.event).preventDefault?Pe.preventDefault():Pe.returnValue=!1,Pe.stopPropagation();var Re=Pe.pageX||Pe.touches[0].pageX,Xe=Pe.pageY||Pe.touches[0].pageY;C.el.fire("point",{x:Re,y:Xe,i:me,event:Pe})}}(F),fe=this.drawPoint(L[F][0],L[F][1]).addClass(this.options.classPoints).addClass(this.options.classPoints+"_point").on("touchstart",ue).on("mousedown",ue);this.pointSelection.set.add(fe)}},ai.prototype.drawPoint=function(C,L){var F=this.options.pointType;switch(F){case"circle":return this.drawCircle(C,L);case"rect":return this.drawRect(C,L);default:if(typeof F=="function")return F.call(this,C,L);throw new Error("Unknown "+F+" point type!")}},ai.prototype.drawCircle=function(C,L){return this.nested.circle(this.options.pointSize).center(C,L)},ai.prototype.drawRect=function(C,L){return this.nested.rect(this.options.pointSize,this.options.pointSize).center(C,L)},ai.prototype.updatePointSelection=function(){var C=this.getPointArray();this.pointSelection.set.each(function(L){this.cx()===C[L][0]&&this.cy()===C[L][1]||this.center(C[L][0],C[L][1])})},ai.prototype.updateRectSelection=function(){var C=this,L=this.el.bbox();if(this.rectSelection.set.get(0).attr({width:L.width,height:L.height}),this.options.points.length&&this.options.points.map(function(ne,ue){var fe=C.pointCoords(ne,L);C.rectSelection.set.get(ue+1).center(fe.x,fe.y)}),this.options.rotationPoint){var F=this.rectSelection.set.length();this.rectSelection.set.get(F-1).center(L.width/2,20)}},ai.prototype.selectRect=function(C){var L=this,F=this.el.bbox();function ne(me){return function(Pe){(Pe=Pe||window.event).preventDefault?Pe.preventDefault():Pe.returnValue=!1,Pe.stopPropagation();var Re=Pe.pageX||Pe.touches[0].pageX,Xe=Pe.pageY||Pe.touches[0].pageY;L.el.fire(me,{x:Re,y:Xe,event:Pe})}}if(this.rectSelection.isSelected=C,this.rectSelection.set=this.rectSelection.set||this.parent.set(),this.rectSelection.set.get(0)||this.rectSelection.set.add(this.nested.rect(F.width,F.height).addClass(this.options.classRect)),this.options.points.length&&this.rectSelection.set.length()<2&&(this.options.points.map(function(me,Pe){var Re=L.pointCoords(me,F),Xe=L.drawPoint(Re.x,Re.y).attr("class",L.options.classPoints+"_"+me).on("mousedown",ne(me)).on("touchstart",ne(me));L.rectSelection.set.add(Xe)}),this.rectSelection.set.each(function(){this.addClass(L.options.classPoints)})),this.options.rotationPoint&&(this.options.points&&!this.rectSelection.set.get(9)||!this.options.points&&!this.rectSelection.set.get(1))){var ue=function(me){(me=me||window.event).preventDefault?me.preventDefault():me.returnValue=!1,me.stopPropagation();var Pe=me.pageX||me.touches[0].pageX,Re=me.pageY||me.touches[0].pageY;L.el.fire("rot",{x:Pe,y:Re,event:me})},fe=this.drawPoint(F.width/2,20).attr("class",this.options.classPoints+"_rot").on("touchstart",ue).on("mousedown",ue);this.rectSelection.set.add(fe)}},ai.prototype.handler=function(){var C=this.el.bbox();this.nested.matrix(new SVG.Matrix(this.el).translate(C.x,C.y)),this.rectSelection.isSelected&&this.updateRectSelection(),this.pointSelection.isSelected&&this.updatePointSelection()},ai.prototype.observe=function(){var C=this;if(MutationObserver)if(this.rectSelection.isSelected||this.pointSelection.isSelected)this.observerInst=this.observerInst||new MutationObserver(function(){C.handler()}),this.observerInst.observe(this.el.node,{attributes:!0});else try{this.observerInst.disconnect(),delete this.observerInst}catch{}else this.el.off("DOMAttrModified.select"),(this.rectSelection.isSelected||this.pointSelection.isSelected)&&this.el.on("DOMAttrModified.select",function(){C.handler()})},ai.prototype.cleanup=function(){!this.rectSelection.isSelected&&this.rectSelection.set&&(this.rectSelection.set.each(function(){this.remove()}),this.rectSelection.set.clear(),delete this.rectSelection.set),!this.pointSelection.isSelected&&this.pointSelection.set&&(this.pointSelection.set.each(function(){this.remove()}),this.pointSelection.set.clear(),delete this.pointSelection.set),this.pointSelection.isSelected||this.rectSelection.isSelected||(this.nested.remove(),delete this.nested)},SVG.extend(SVG.Element,{selectize:function(C,L){return typeof C=="object"&&(L=C,C=!0),(this.remember("_selectHandler")||new ai(this)).init(C===void 0||C,L||{}),this}}),SVG.Element.prototype.selectize.defaults={points:["lt","rt","rb","lb","t","r","b","l"],pointsExclude:[],classRect:"svg_select_boundingRect",classPoints:"svg_select_points",pointSize:7,rotationPoint:!0,deepSelect:!1,pointType:"circle"}}(),function(){(function(){function ai(C){C.remember("_resizeHandler",this),this.el=C,this.parameters={},this.lastUpdateCall=null,this.p=C.doc().node.createSVGPoint()}ai.prototype.transformPoint=function(C,L,F){return this.p.x=C-(this.offset.x-window.pageXOffset),this.p.y=L-(this.offset.y-window.pageYOffset),this.p.matrixTransform(F||this.m)},ai.prototype._extractPosition=function(C){return{x:C.clientX!=null?C.clientX:C.touches[0].clientX,y:C.clientY!=null?C.clientY:C.touches[0].clientY}},ai.prototype.init=function(C){var L=this;if(this.stop(),C!=="stop"){for(var F in this.options={},this.el.resize.defaults)this.options[F]=this.el.resize.defaults[F],C[F]!==void 0&&(this.options[F]=C[F]);this.el.on("lt.resize",function(ne){L.resize(ne||window.event)}),this.el.on("rt.resize",function(ne){L.resize(ne||window.event)}),this.el.on("rb.resize",function(ne){L.resize(ne||window.event)}),this.el.on("lb.resize",function(ne){L.resize(ne||window.event)}),this.el.on("t.resize",function(ne){L.resize(ne||window.event)}),this.el.on("r.resize",function(ne){L.resize(ne||window.event)}),this.el.on("b.resize",function(ne){L.resize(ne||window.event)}),this.el.on("l.resize",function(ne){L.resize(ne||window.event)}),this.el.on("rot.resize",function(ne){L.resize(ne||window.event)}),this.el.on("point.resize",function(ne){L.resize(ne||window.event)}),this.update()}},ai.prototype.stop=function(){return this.el.off("lt.resize"),this.el.off("rt.resize"),this.el.off("rb.resize"),this.el.off("lb.resize"),this.el.off("t.resize"),this.el.off("r.resize"),this.el.off("b.resize"),this.el.off("l.resize"),this.el.off("rot.resize"),this.el.off("point.resize"),this},ai.prototype.resize=function(C){var L=this;this.m=this.el.node.getScreenCTM().inverse(),this.offset={x:window.pageXOffset,y:window.pageYOffset};var F=this._extractPosition(C.detail.event);if(this.parameters={type:this.el.type,p:this.transformPoint(F.x,F.y),x:C.detail.x,y:C.detail.y,box:this.el.bbox(),rotation:this.el.transform().rotation},this.el.type==="text"&&(this.parameters.fontSize=this.el.attr()["font-size"]),C.detail.i!==void 0){var ne=this.el.array().valueOf();this.parameters.i=C.detail.i,this.parameters.pointCoords=[ne[C.detail.i][0],ne[C.detail.i][1]]}switch(C.type){case"lt":this.calc=function(ue,fe){var me=this.snapToGrid(ue,fe);if(this.parameters.box.width-me[0]>0&&this.parameters.box.height-me[1]>0){if(this.parameters.type==="text")return this.el.move(this.parameters.box.x+me[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize-me[0]);me=this.checkAspectRatio(me),this.el.move(this.parameters.box.x+me[0],this.parameters.box.y+me[1]).size(this.parameters.box.width-me[0],this.parameters.box.height-me[1])}};break;case"rt":this.calc=function(ue,fe){var me=this.snapToGrid(ue,fe,2);if(this.parameters.box.width+me[0]>0&&this.parameters.box.height-me[1]>0){if(this.parameters.type==="text")return this.el.move(this.parameters.box.x-me[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize+me[0]);me=this.checkAspectRatio(me,!0),this.el.move(this.parameters.box.x,this.parameters.box.y+me[1]).size(this.parameters.box.width+me[0],this.parameters.box.height-me[1])}};break;case"rb":this.calc=function(ue,fe){var me=this.snapToGrid(ue,fe,0);if(this.parameters.box.width+me[0]>0&&this.parameters.box.height+me[1]>0){if(this.parameters.type==="text")return this.el.move(this.parameters.box.x-me[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize+me[0]);me=this.checkAspectRatio(me),this.el.move(this.parameters.box.x,this.parameters.box.y).size(this.parameters.box.width+me[0],this.parameters.box.height+me[1])}};break;case"lb":this.calc=function(ue,fe){var me=this.snapToGrid(ue,fe,1);if(this.parameters.box.width-me[0]>0&&this.parameters.box.height+me[1]>0){if(this.parameters.type==="text")return this.el.move(this.parameters.box.x+me[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize-me[0]);me=this.checkAspectRatio(me,!0),this.el.move(this.parameters.box.x+me[0],this.parameters.box.y).size(this.parameters.box.width-me[0],this.parameters.box.height+me[1])}};break;case"t":this.calc=function(ue,fe){var me=this.snapToGrid(ue,fe,2);if(this.parameters.box.height-me[1]>0){if(this.parameters.type==="text")return;this.el.move(this.parameters.box.x,this.parameters.box.y+me[1]).height(this.parameters.box.height-me[1])}};break;case"r":this.calc=function(ue,fe){var me=this.snapToGrid(ue,fe,0);if(this.parameters.box.width+me[0]>0){if(this.parameters.type==="text")return;this.el.move(this.parameters.box.x,this.parameters.box.y).width(this.parameters.box.width+me[0])}};break;case"b":this.calc=function(ue,fe){var me=this.snapToGrid(ue,fe,0);if(this.parameters.box.height+me[1]>0){if(this.parameters.type==="text")return;this.el.move(this.parameters.box.x,this.parameters.box.y).height(this.parameters.box.height+me[1])}};break;case"l":this.calc=function(ue,fe){var me=this.snapToGrid(ue,fe,1);if(this.parameters.box.width-me[0]>0){if(this.parameters.type==="text")return;this.el.move(this.parameters.box.x+me[0],this.parameters.box.y).width(this.parameters.box.width-me[0])}};break;case"rot":this.calc=function(ue,fe){var me=ue+this.parameters.p.x,Pe=fe+this.parameters.p.y,Re=Math.atan2(this.parameters.p.y-this.parameters.box.y-this.parameters.box.height/2,this.parameters.p.x-this.parameters.box.x-this.parameters.box.width/2),Xe=Math.atan2(Pe-this.parameters.box.y-this.parameters.box.height/2,me-this.parameters.box.x-this.parameters.box.width/2),qe=this.parameters.rotation+180*(Xe-Re)/Math.PI+this.options.snapToAngle/2;this.el.center(this.parameters.box.cx,this.parameters.box.cy).rotate(qe-qe%this.options.snapToAngle,this.parameters.box.cx,this.parameters.box.cy)};break;case"point":this.calc=function(ue,fe){var me=this.snapToGrid(ue,fe,this.parameters.pointCoords[0],this.parameters.pointCoords[1]),Pe=this.el.array().valueOf();Pe[this.parameters.i][0]=this.parameters.pointCoords[0]+me[0],Pe[this.parameters.i][1]=this.parameters.pointCoords[1]+me[1],this.el.plot(Pe)}}this.el.fire("resizestart",{dx:this.parameters.x,dy:this.parameters.y,event:C}),SVG.on(window,"touchmove.resize",function(ue){L.update(ue||window.event)}),SVG.on(window,"touchend.resize",function(){L.done()}),SVG.on(window,"mousemove.resize",function(ue){L.update(ue||window.event)}),SVG.on(window,"mouseup.resize",function(){L.done()})},ai.prototype.update=function(C){if(C){var L=this._extractPosition(C),F=this.transformPoint(L.x,L.y),ne=F.x-this.parameters.p.x,ue=F.y-this.parameters.p.y;this.lastUpdateCall=[ne,ue],this.calc(ne,ue),this.el.fire("resizing",{dx:ne,dy:ue,event:C})}else this.lastUpdateCall&&this.calc(this.lastUpdateCall[0],this.lastUpdateCall[1])},ai.prototype.done=function(){this.lastUpdateCall=null,SVG.off(window,"mousemove.resize"),SVG.off(window,"mouseup.resize"),SVG.off(window,"touchmove.resize"),SVG.off(window,"touchend.resize"),this.el.fire("resizedone")},ai.prototype.snapToGrid=function(C,L,F,ne){var ue;return ne!==void 0?ue=[(F+C)%this.options.snapToGrid,(ne+L)%this.options.snapToGrid]:(F=F??3,ue=[(this.parameters.box.x+C+(1&F?0:this.parameters.box.width))%this.options.snapToGrid,(this.parameters.box.y+L+(2&F?0:this.parameters.box.height))%this.options.snapToGrid]),C<0&&(ue[0]-=this.options.snapToGrid),L<0&&(ue[1]-=this.options.snapToGrid),C-=Math.abs(ue[0])<this.options.snapToGrid/2?ue[0]:ue[0]-(C<0?-this.options.snapToGrid:this.options.snapToGrid),L-=Math.abs(ue[1])<this.options.snapToGrid/2?ue[1]:ue[1]-(L<0?-this.options.snapToGrid:this.options.snapToGrid),this.constraintToBox(C,L,F,ne)},ai.prototype.constraintToBox=function(C,L,F,ne){var ue,fe,me=this.options.constraint||{};return ne!==void 0?(ue=F,fe=ne):(ue=this.parameters.box.x+(1&F?0:this.parameters.box.width),fe=this.parameters.box.y+(2&F?0:this.parameters.box.height)),me.minX!==void 0&&ue+C<me.minX&&(C=me.minX-ue),me.maxX!==void 0&&ue+C>me.maxX&&(C=me.maxX-ue),me.minY!==void 0&&fe+L<me.minY&&(L=me.minY-fe),me.maxY!==void 0&&fe+L>me.maxY&&(L=me.maxY-fe),[C,L]},ai.prototype.checkAspectRatio=function(C,L){if(!this.options.saveAspectRatio)return C;var F=C.slice(),ne=this.parameters.box.width/this.parameters.box.height,ue=this.parameters.box.width+C[0],fe=this.parameters.box.height-C[1],me=ue/fe;return me<ne?(F[1]=ue/ne-this.parameters.box.height,L&&(F[1]=-F[1])):me>ne&&(F[0]=this.parameters.box.width-fe*ne,L&&(F[0]=-F[0])),F},SVG.extend(SVG.Element,{resize:function(C){return(this.remember("_resizeHandler")||new ai(this)).init(C||{}),this}}),SVG.Element.prototype.resize.defaults={snapToAngle:.1,snapToGrid:1,constraint:{},saveAspectRatio:!1}}).call(this)}(),window.Apex===void 0&&(window.Apex={});var KM=function(){function ai(C){I(this,ai),this.ctx=C,this.w=C.w}return M(ai,[{key:"initModules",value:function(){this.ctx.publicMethods=["updateOptions","updateSeries","appendData","appendSeries","isSeriesHidden","toggleSeries","showSeries","hideSeries","setLocale","resetSeries","zoomX","toggleDataPointSelection","dataURI","exportToCSV","addXaxisAnnotation","addYaxisAnnotation","addPointAnnotation","clearAnnotations","removeAnnotation","paper","destroy"],this.ctx.eventList=["click","mousedown","mousemove","mouseleave","touchstart","touchmove","touchleave","mouseup","touchend"],this.ctx.animations=new ie(this.ctx),this.ctx.axes=new Ne(this.ctx),this.ctx.core=new HM(this.ctx.el,this.ctx),this.ctx.config=new q({}),this.ctx.data=new Qe(this.ctx),this.ctx.grid=new tt(this.ctx),this.ctx.graphics=new ge(this.ctx),this.ctx.coreUtils=new be(this.ctx),this.ctx.crosshairs=new Fe(this.ctx),this.ctx.events=new ot(this.ctx),this.ctx.exports=new ri(this.ctx),this.ctx.localization=new Oe(this.ctx),this.ctx.options=new re,this.ctx.responsive=new Je(this.ctx),this.ctx.series=new Ue(this.ctx),this.ctx.theme=new Dt(this.ctx),this.ctx.formatters=new B(this.ctx),this.ctx.titleSubtitle=new oi(this.ctx),this.ctx.legend=new eM(this.ctx),this.ctx.toolbar=new hi(this.ctx),this.ctx.tooltip=new _M(this.ctx),this.ctx.dimensions=new St(this.ctx),this.ctx.updateHelpers=new zM(this.ctx),this.ctx.zoomPanSelection=new mi(this.ctx),this.ctx.w.globals.tooltip=new _M(this.ctx)}}]),ai}(),rN=function(){function ai(C){I(this,ai),this.ctx=C,this.w=C.w}return M(ai,[{key:"clear",value:function(C){var L=C.isUpdating;this.ctx.zoomPanSelection&&this.ctx.zoomPanSelection.destroy(),this.ctx.toolbar&&this.ctx.toolbar.destroy(),this.ctx.animations=null,this.ctx.axes=null,this.ctx.annotations=null,this.ctx.core=null,this.ctx.data=null,this.ctx.grid=null,this.ctx.series=null,this.ctx.responsive=null,this.ctx.theme=null,this.ctx.formatters=null,this.ctx.titleSubtitle=null,this.ctx.legend=null,this.ctx.dimensions=null,this.ctx.options=null,this.ctx.crosshairs=null,this.ctx.zoomPanSelection=null,this.ctx.updateHelpers=null,this.ctx.toolbar=null,this.ctx.localization=null,this.ctx.w.globals.tooltip=null,this.clearDomElements({isUpdating:L})}},{key:"killSVG",value:function(C){C.each(function(L,F){this.removeClass("*"),this.off(),this.stop()},!0),C.ungroup(),C.clear()}},{key:"clearDomElements",value:function(C){var L=this,F=C.isUpdating,ne=this.w.globals.dom.Paper.node;ne.parentNode&&ne.parentNode.parentNode&&!F&&(ne.parentNode.parentNode.style.minHeight="unset");var ue=this.w.globals.dom.baseEl;ue&&this.ctx.eventList.forEach(function(me){ue.removeEventListener(me,L.ctx.events.documentEvent)});var fe=this.w.globals.dom;if(this.ctx.el!==null)for(;this.ctx.el.firstChild;)this.ctx.el.removeChild(this.ctx.el.firstChild);this.killSVG(fe.Paper),fe.Paper.remove(),fe.elWrap=null,fe.elGraphical=null,fe.elLegendWrap=null,fe.elLegendForeign=null,fe.baseEl=null,fe.elGridRect=null,fe.elGridRectMask=null,fe.elGridRectMarkerMask=null,fe.elForecastMask=null,fe.elNonForecastMask=null,fe.elDefs=null}}]),ai}(),eN=new WeakMap,iN=function(){function ai(C,L){I(this,ai),this.opts=L,this.ctx=this,this.w=new U(L).init(),this.el=C,this.w.globals.cuid=Y.randomId(),this.w.globals.chartID=this.w.config.chart.id?Y.escapeString(this.w.config.chart.id):this.w.globals.cuid,new KM(this).initModules(),this.create=Y.bind(this.create,this),this.windowResizeHandler=this._windowResizeHandler.bind(this),this.parentResizeHandler=this._parentResizeCallback.bind(this)}return M(ai,[{key:"render",value:function(){var C=this;return new Promise(function(L,F){if(C.el!==null){Apex._chartInstances===void 0&&(Apex._chartInstances=[]),C.w.config.chart.id&&Apex._chartInstances.push({id:C.w.globals.chartID,group:C.w.config.chart.group,chart:C}),C.setLocale(C.w.config.chart.defaultLocale);var ne=C.w.config.chart.events.beforeMount;if(typeof ne=="function"&&ne(C,C.w),C.events.fireEvent("beforeMount",[C,C.w]),window.addEventListener("resize",C.windowResizeHandler),function(Ke,nt){var It=!1;if(Ke.nodeType!==Node.DOCUMENT_FRAGMENT_NODE){var Tt=Ke.getBoundingClientRect();Ke.style.display!=="none"&&Tt.width!==0||(It=!0)}var ni=new ResizeObserver(function(fi){It&&nt.call(Ke,fi),It=!0});Ke.nodeType===Node.DOCUMENT_FRAGMENT_NODE?Array.from(Ke.children).forEach(function(fi){return ni.observe(fi)}):ni.observe(Ke),eN.set(nt,ni)}(C.el.parentNode,C.parentResizeHandler),!C.css){var ue=C.el.getRootNode&&C.el.getRootNode(),fe=Y.is("ShadowRoot",ue),me=C.el.ownerDocument,Pe=me.getElementById("apexcharts-css");if(fe||!Pe){var Re;C.css=document.createElement("style"),C.css.id="apexcharts-css",C.css.textContent=`@keyframes opaque {
  0% {
      opacity: 0
  }

  to {
      opacity: 1
  }
}

@keyframes resizeanim {
  0%,to {
      opacity: 0
  }
}

.apexcharts-canvas {
  position: relative;
  user-select: none
}

.apexcharts-canvas ::-webkit-scrollbar {
  -webkit-appearance: none;
  width: 6px
}

.apexcharts-canvas ::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background-color: rgba(0,0,0,.5);
  box-shadow: 0 0 1px rgba(255,255,255,.5);
  -webkit-box-shadow: 0 0 1px rgba(255,255,255,.5)
}

.apexcharts-inner {
  position: relative
}

.apexcharts-text tspan {
  font-family: inherit
}

.legend-mouseover-inactive {
  transition: .15s ease all;
  opacity: .2
}

.apexcharts-legend-text {
  padding-left: 15px;
  margin-left: -15px;
}

.apexcharts-series-collapsed {
  opacity: 0
}

.apexcharts-tooltip {
  border-radius: 5px;
  box-shadow: 2px 2px 6px -4px #999;
  cursor: default;
  font-size: 14px;
  left: 62px;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  white-space: nowrap;
  z-index: 12;
  transition: .15s ease all
}

.apexcharts-tooltip.apexcharts-active {
  opacity: 1;
  transition: .15s ease all
}

.apexcharts-tooltip.apexcharts-theme-light {
  border: 1px solid #e3e3e3;
  background: rgba(255,255,255,.96)
}

.apexcharts-tooltip.apexcharts-theme-dark {
  color: #fff;
  background: rgba(30,30,30,.8)
}

.apexcharts-tooltip * {
  font-family: inherit
}

.apexcharts-tooltip-title {
  padding: 6px;
  font-size: 15px;
  margin-bottom: 4px
}

.apexcharts-tooltip.apexcharts-theme-light .apexcharts-tooltip-title {
  background: #eceff1;
  border-bottom: 1px solid #ddd
}

.apexcharts-tooltip.apexcharts-theme-dark .apexcharts-tooltip-title {
  background: rgba(0,0,0,.7);
  border-bottom: 1px solid #333
}

.apexcharts-tooltip-text-goals-value,.apexcharts-tooltip-text-y-value,.apexcharts-tooltip-text-z-value {
  display: inline-block;
  margin-left: 5px;
  font-weight: 600
}

.apexcharts-tooltip-text-goals-label:empty,.apexcharts-tooltip-text-goals-value:empty,.apexcharts-tooltip-text-y-label:empty,.apexcharts-tooltip-text-y-value:empty,.apexcharts-tooltip-text-z-value:empty,.apexcharts-tooltip-title:empty {
  display: none
}

.apexcharts-tooltip-text-goals-label,.apexcharts-tooltip-text-goals-value {
  padding: 6px 0 5px
}

.apexcharts-tooltip-goals-group,.apexcharts-tooltip-text-goals-label,.apexcharts-tooltip-text-goals-value {
  display: flex
}

.apexcharts-tooltip-text-goals-label:not(:empty),.apexcharts-tooltip-text-goals-value:not(:empty) {
  margin-top: -6px
}

.apexcharts-tooltip-marker {
  width: 12px;
  height: 12px;
  position: relative;
  top: 0;
  margin-right: 10px;
  border-radius: 50%
}

.apexcharts-tooltip-series-group {
  padding: 0 10px;
  display: none;
  text-align: left;
  justify-content: left;
  align-items: center
}

.apexcharts-tooltip-series-group.apexcharts-active .apexcharts-tooltip-marker {
  opacity: 1
}

.apexcharts-tooltip-series-group.apexcharts-active,.apexcharts-tooltip-series-group:last-child {
  padding-bottom: 4px
}

.apexcharts-tooltip-series-group-hidden {
  opacity: 0;
  height: 0;
  line-height: 0;
  padding: 0!important
}

.apexcharts-tooltip-y-group {
  padding: 6px 0 5px
}

.apexcharts-custom-tooltip,.apexcharts-tooltip-box {
  padding: 4px 8px
}

.apexcharts-tooltip-boxPlot {
  display: flex;
  flex-direction: column-reverse
}

.apexcharts-tooltip-box>div {
  margin: 4px 0
}

.apexcharts-tooltip-box span.value {
  font-weight: 700
}

.apexcharts-tooltip-rangebar {
  padding: 5px 8px
}

.apexcharts-tooltip-rangebar .category {
  font-weight: 600;
  color: #777
}

.apexcharts-tooltip-rangebar .series-name {
  font-weight: 700;
  display: block;
  margin-bottom: 5px
}

.apexcharts-xaxistooltip,.apexcharts-yaxistooltip {
  opacity: 0;
  pointer-events: none;
  color: #373d3f;
  font-size: 13px;
  text-align: center;
  border-radius: 2px;
  position: absolute;
  z-index: 10;
  background: #eceff1;
  border: 1px solid #90a4ae
}

.apexcharts-xaxistooltip {
  padding: 9px 10px;
  transition: .15s ease all
}

.apexcharts-xaxistooltip.apexcharts-theme-dark {
  background: rgba(0,0,0,.7);
  border: 1px solid rgba(0,0,0,.5);
  color: #fff
}

.apexcharts-xaxistooltip:after,.apexcharts-xaxistooltip:before {
  left: 50%;
  border: solid transparent;
  content: " ";
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none
}

.apexcharts-xaxistooltip:after {
  border-color: transparent;
  border-width: 6px;
  margin-left: -6px
}

.apexcharts-xaxistooltip:before {
  border-color: transparent;
  border-width: 7px;
  margin-left: -7px
}

.apexcharts-xaxistooltip-bottom:after,.apexcharts-xaxistooltip-bottom:before {
  bottom: 100%
}

.apexcharts-xaxistooltip-top:after,.apexcharts-xaxistooltip-top:before {
  top: 100%
}

.apexcharts-xaxistooltip-bottom:after {
  border-bottom-color: #eceff1
}

.apexcharts-xaxistooltip-bottom:before {
  border-bottom-color: #90a4ae
}

.apexcharts-xaxistooltip-bottom.apexcharts-theme-dark:after,.apexcharts-xaxistooltip-bottom.apexcharts-theme-dark:before {
  border-bottom-color: rgba(0,0,0,.5)
}

.apexcharts-xaxistooltip-top:after {
  border-top-color: #eceff1
}

.apexcharts-xaxistooltip-top:before {
  border-top-color: #90a4ae
}

.apexcharts-xaxistooltip-top.apexcharts-theme-dark:after,.apexcharts-xaxistooltip-top.apexcharts-theme-dark:before {
  border-top-color: rgba(0,0,0,.5)
}

.apexcharts-xaxistooltip.apexcharts-active {
  opacity: 1;
  transition: .15s ease all
}

.apexcharts-yaxistooltip {
  padding: 4px 10px
}

.apexcharts-yaxistooltip.apexcharts-theme-dark {
  background: rgba(0,0,0,.7);
  border: 1px solid rgba(0,0,0,.5);
  color: #fff
}

.apexcharts-yaxistooltip:after,.apexcharts-yaxistooltip:before {
  top: 50%;
  border: solid transparent;
  content: " ";
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none
}

.apexcharts-yaxistooltip:after {
  border-color: transparent;
  border-width: 6px;
  margin-top: -6px
}

.apexcharts-yaxistooltip:before {
  border-color: transparent;
  border-width: 7px;
  margin-top: -7px
}

.apexcharts-yaxistooltip-left:after,.apexcharts-yaxistooltip-left:before {
  left: 100%
}

.apexcharts-yaxistooltip-right:after,.apexcharts-yaxistooltip-right:before {
  right: 100%
}

.apexcharts-yaxistooltip-left:after {
  border-left-color: #eceff1
}

.apexcharts-yaxistooltip-left:before {
  border-left-color: #90a4ae
}

.apexcharts-yaxistooltip-left.apexcharts-theme-dark:after,.apexcharts-yaxistooltip-left.apexcharts-theme-dark:before {
  border-left-color: rgba(0,0,0,.5)
}

.apexcharts-yaxistooltip-right:after {
  border-right-color: #eceff1
}

.apexcharts-yaxistooltip-right:before {
  border-right-color: #90a4ae
}

.apexcharts-yaxistooltip-right.apexcharts-theme-dark:after,.apexcharts-yaxistooltip-right.apexcharts-theme-dark:before {
  border-right-color: rgba(0,0,0,.5)
}

.apexcharts-yaxistooltip.apexcharts-active {
  opacity: 1
}

.apexcharts-yaxistooltip-hidden {
  display: none
}

.apexcharts-xcrosshairs,.apexcharts-ycrosshairs {
  pointer-events: none;
  opacity: 0;
  transition: .15s ease all
}

.apexcharts-xcrosshairs.apexcharts-active,.apexcharts-ycrosshairs.apexcharts-active {
  opacity: 1;
  transition: .15s ease all
}

.apexcharts-ycrosshairs-hidden {
  opacity: 0
}

.apexcharts-selection-rect {
  cursor: move
}

.svg_select_boundingRect,.svg_select_points_rot {
  pointer-events: none;
  opacity: 0;
  visibility: hidden
}

.apexcharts-selection-rect+g .svg_select_boundingRect,.apexcharts-selection-rect+g .svg_select_points_rot {
  opacity: 0;
  visibility: hidden
}

.apexcharts-selection-rect+g .svg_select_points_l,.apexcharts-selection-rect+g .svg_select_points_r {
  cursor: ew-resize;
  opacity: 1;
  visibility: visible
}

.svg_select_points {
  fill: #efefef;
  stroke: #333;
  rx: 2
}

.apexcharts-svg.apexcharts-zoomable.hovering-zoom {
  cursor: crosshair
}

.apexcharts-svg.apexcharts-zoomable.hovering-pan {
  cursor: move
}

.apexcharts-menu-icon,.apexcharts-pan-icon,.apexcharts-reset-icon,.apexcharts-selection-icon,.apexcharts-toolbar-custom-icon,.apexcharts-zoom-icon,.apexcharts-zoomin-icon,.apexcharts-zoomout-icon {
  cursor: pointer;
  width: 20px;
  height: 20px;
  line-height: 24px;
  color: #6e8192;
  text-align: center
}

.apexcharts-menu-icon svg,.apexcharts-reset-icon svg,.apexcharts-zoom-icon svg,.apexcharts-zoomin-icon svg,.apexcharts-zoomout-icon svg {
  fill: #6e8192
}

.apexcharts-selection-icon svg {
  fill: #444;
  transform: scale(.76)
}

.apexcharts-theme-dark .apexcharts-menu-icon svg,.apexcharts-theme-dark .apexcharts-pan-icon svg,.apexcharts-theme-dark .apexcharts-reset-icon svg,.apexcharts-theme-dark .apexcharts-selection-icon svg,.apexcharts-theme-dark .apexcharts-toolbar-custom-icon svg,.apexcharts-theme-dark .apexcharts-zoom-icon svg,.apexcharts-theme-dark .apexcharts-zoomin-icon svg,.apexcharts-theme-dark .apexcharts-zoomout-icon svg {
  fill: #f3f4f5
}

.apexcharts-canvas .apexcharts-reset-zoom-icon.apexcharts-selected svg,.apexcharts-canvas .apexcharts-selection-icon.apexcharts-selected svg,.apexcharts-canvas .apexcharts-zoom-icon.apexcharts-selected svg {
  fill: #008ffb
}

.apexcharts-theme-light .apexcharts-menu-icon:hover svg,.apexcharts-theme-light .apexcharts-reset-icon:hover svg,.apexcharts-theme-light .apexcharts-selection-icon:not(.apexcharts-selected):hover svg,.apexcharts-theme-light .apexcharts-zoom-icon:not(.apexcharts-selected):hover svg,.apexcharts-theme-light .apexcharts-zoomin-icon:hover svg,.apexcharts-theme-light .apexcharts-zoomout-icon:hover svg {
  fill: #333
}

.apexcharts-menu-icon,.apexcharts-selection-icon {
  position: relative
}

.apexcharts-reset-icon {
  margin-left: 5px
}

.apexcharts-menu-icon,.apexcharts-reset-icon,.apexcharts-zoom-icon {
  transform: scale(.85)
}

.apexcharts-zoomin-icon,.apexcharts-zoomout-icon {
  transform: scale(.7)
}

.apexcharts-zoomout-icon {
  margin-right: 3px
}

.apexcharts-pan-icon {
  transform: scale(.62);
  position: relative;
  left: 1px;
  top: 0
}

.apexcharts-pan-icon svg {
  fill: #fff;
  stroke: #6e8192;
  stroke-width: 2
}

.apexcharts-pan-icon.apexcharts-selected svg {
  stroke: #008ffb
}

.apexcharts-pan-icon:not(.apexcharts-selected):hover svg {
  stroke: #333
}

.apexcharts-toolbar {
  position: absolute;
  z-index: 11;
  max-width: 176px;
  text-align: right;
  border-radius: 3px;
  padding: 0 6px 2px;
  display: flex;
  justify-content: space-between;
  align-items: center
}

.apexcharts-menu {
  background: #fff;
  position: absolute;
  top: 100%;
  border: 1px solid #ddd;
  border-radius: 3px;
  padding: 3px;
  right: 10px;
  opacity: 0;
  min-width: 110px;
  transition: .15s ease all;
  pointer-events: none
}

.apexcharts-menu.apexcharts-menu-open {
  opacity: 1;
  pointer-events: all;
  transition: .15s ease all
}

.apexcharts-menu-item {
  padding: 6px 7px;
  font-size: 12px;
  cursor: pointer
}

.apexcharts-theme-light .apexcharts-menu-item:hover {
  background: #eee
}

.apexcharts-theme-dark .apexcharts-menu {
  background: rgba(0,0,0,.7);
  color: #fff
}

@media screen and (min-width:768px) {
  .apexcharts-canvas:hover .apexcharts-toolbar {
      opacity: 1
  }
}

.apexcharts-canvas .apexcharts-element-hidden,.apexcharts-datalabel.apexcharts-element-hidden,.apexcharts-hide .apexcharts-series-points {
  opacity: 0
}

.apexcharts-hidden-element-shown {
  opacity: 1;
  transition: 0.25s ease all;
}
.apexcharts-datalabel,.apexcharts-datalabel-label,.apexcharts-datalabel-value,.apexcharts-datalabels,.apexcharts-pie-label {
  cursor: default;
  pointer-events: none
}

.apexcharts-pie-label-delay {
  opacity: 0;
  animation-name: opaque;
  animation-duration: .3s;
  animation-fill-mode: forwards;
  animation-timing-function: ease
}

.apexcharts-radialbar-label {
  cursor: pointer;
}

.apexcharts-annotation-rect,.apexcharts-area-series .apexcharts-area,.apexcharts-area-series .apexcharts-series-markers .apexcharts-marker.no-pointer-events,.apexcharts-gridline,.apexcharts-line,.apexcharts-line-series .apexcharts-series-markers .apexcharts-marker.no-pointer-events,.apexcharts-point-annotation-label,.apexcharts-radar-series path,.apexcharts-radar-series polygon,.apexcharts-toolbar svg,.apexcharts-tooltip .apexcharts-marker,.apexcharts-xaxis-annotation-label,.apexcharts-yaxis-annotation-label,.apexcharts-zoom-rect {
  pointer-events: none
}

.apexcharts-marker {
  transition: .15s ease all
}

.resize-triggers {
  animation: 1ms resizeanim;
  visibility: hidden;
  opacity: 0;
  height: 100%;
  width: 100%;
  overflow: hidden
}

.contract-trigger:before,.resize-triggers,.resize-triggers>div {
  content: " ";
  display: block;
  position: absolute;
  top: 0;
  left: 0
}

.resize-triggers>div {
  height: 100%;
  width: 100%;
  background: #eee;
  overflow: auto
}

.contract-trigger:before {
  overflow: hidden;
  width: 200%;
  height: 200%
}

.apexcharts-bar-goals-markers{
  pointer-events: none
}

.apexcharts-bar-shadows{
  pointer-events: none
}

.apexcharts-rangebar-goals-markers{
  pointer-events: none
}`;var Xe=((Re=C.opts.chart)===null||Re===void 0?void 0:Re.nonce)||C.w.config.chart.nonce;Xe&&C.css.setAttribute("nonce",Xe),fe?ue.prepend(C.css):me.head.appendChild(C.css)}}var qe=C.create(C.w.config.series,{});if(!qe)return L(C);C.mount(qe).then(function(){typeof C.w.config.chart.events.mounted=="function"&&C.w.config.chart.events.mounted(C,C.w),C.events.fireEvent("mounted",[C,C.w]),L(qe)}).catch(function(Ke){F(Ke)})}else F(new Error("Element not found"))})}},{key:"create",value:function(C,L){var F=this.w;new KM(this).initModules();var ne=this.w.globals;if(ne.noData=!1,ne.animationEnded=!1,this.responsive.checkResponsiveConfig(L),F.config.xaxis.convertedCatToNumeric&&new H(F.config).convertCatToNumericXaxis(F.config,this.ctx),this.el===null||(this.core.setupElements(),F.config.chart.type==="treemap"&&(F.config.grid.show=!1,F.config.yaxis[0].show=!1),ne.svgWidth===0))return ne.animationEnded=!0,null;var ue=be.checkComboSeries(C);ne.comboCharts=ue.comboCharts,ne.comboBarCount=ue.comboBarCount;var fe=C.every(function(Xe){return Xe.data&&Xe.data.length===0});(C.length===0||fe)&&this.series.handleNoData(),this.events.setupEventHandlers(),this.data.parseData(C),this.theme.init(),new ve(this).setGlobalMarkerSize(),this.formatters.setLabelFormatters(),this.titleSubtitle.draw(),ne.noData&&ne.collapsedSeries.length!==ne.series.length&&!F.config.legend.showForSingleSeries||this.legend.init(),this.series.hasAllSeriesEqualX(),ne.axisCharts&&(this.core.coreCalculations(),F.config.xaxis.type!=="category"&&this.formatters.setLabelFormatters(),this.ctx.toolbar.minX=F.globals.minX,this.ctx.toolbar.maxX=F.globals.maxX),this.formatters.heatmapLabelFormatters(),new be(this).getLargestMarkerSize(),this.dimensions.plotCoords();var me=this.core.xySettings();this.grid.createGridMask();var Pe=this.core.plotChartType(C,me),Re=new rt(this);return Re.bringForward(),F.config.dataLabels.background.enabled&&Re.dataLabelsBackground(),this.core.shiftGraphPosition(),{elGraph:Pe,xyRatios:me,dimensions:{plot:{left:F.globals.translateX,top:F.globals.translateY,width:F.globals.gridWidth,height:F.globals.gridHeight}}}}},{key:"mount",value:function(){var C=this,L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,F=this,ne=F.w;return new Promise(function(ue,fe){if(F.el===null)return fe(new Error("Not enough data to display or target element not found"));(L===null||ne.globals.allSeriesCollapsed)&&F.series.handleNoData(),F.grid=new tt(F);var me,Pe,Re=F.grid.drawGrid();if(F.annotations=new P(F),F.annotations.drawImageAnnos(),F.annotations.drawTextAnnos(),ne.config.grid.position==="back"&&(Re&&ne.globals.dom.elGraphical.add(Re.el),Re!=null&&(me=Re.elGridBorders)!==null&&me!==void 0&&me.node&&ne.globals.dom.elGraphical.add(Re.elGridBorders)),Array.isArray(L.elGraph))for(var Xe=0;Xe<L.elGraph.length;Xe++)ne.globals.dom.elGraphical.add(L.elGraph[Xe]);else ne.globals.dom.elGraphical.add(L.elGraph);ne.config.grid.position==="front"&&(Re&&ne.globals.dom.elGraphical.add(Re.el),Re!=null&&(Pe=Re.elGridBorders)!==null&&Pe!==void 0&&Pe.node&&ne.globals.dom.elGraphical.add(Re.elGridBorders)),ne.config.xaxis.crosshairs.position==="front"&&F.crosshairs.drawXCrosshairs(),ne.config.yaxis[0].crosshairs.position==="front"&&F.crosshairs.drawYCrosshairs(),ne.config.chart.type!=="treemap"&&F.axes.drawAxis(ne.config.chart.type,Re);var qe=new ci(C.ctx,Re),Ke=new Le(C.ctx,Re);if(Re!==null&&(qe.xAxisLabelCorrections(Re.xAxisTickWidth),Ke.setYAxisTextAlignments(),ne.config.yaxis.map(function(It,Tt){ne.globals.ignoreYAxisIndexes.indexOf(Tt)===-1&&Ke.yAxisTitleRotate(Tt,It.opposite)})),F.annotations.drawAxesAnnotations(),!ne.globals.noData){if(ne.config.tooltip.enabled&&!ne.globals.noData&&F.w.globals.tooltip.drawTooltip(L.xyRatios),ne.globals.axisCharts&&(ne.globals.isXNumeric||ne.config.xaxis.convertedCatToNumeric||ne.globals.isRangeBar))(ne.config.chart.zoom.enabled||ne.config.chart.selection&&ne.config.chart.selection.enabled||ne.config.chart.pan&&ne.config.chart.pan.enabled)&&F.zoomPanSelection.init({xyRatios:L.xyRatios});else{var nt=ne.config.chart.toolbar.tools;["zoom","zoomin","zoomout","selection","pan","reset"].forEach(function(It){nt[It]=!1})}ne.config.chart.toolbar.show&&!ne.globals.allSeriesCollapsed&&F.toolbar.createToolbar()}ne.globals.memory.methodsToExec.length>0&&ne.globals.memory.methodsToExec.forEach(function(It){It.method(It.params,!1,It.context)}),ne.globals.axisCharts||ne.globals.noData||F.core.resizeNonAxisCharts(),ue(F)})}},{key:"destroy",value:function(){var C,L;window.removeEventListener("resize",this.windowResizeHandler),this.el.parentNode,C=this.parentResizeHandler,(L=eN.get(C))&&(L.disconnect(),eN.delete(C));var F=this.w.config.chart.id;F&&Apex._chartInstances.forEach(function(ne,ue){ne.id===Y.escapeString(F)&&Apex._chartInstances.splice(ue,1)}),new rN(this.ctx).clear({isUpdating:!1})}},{key:"updateOptions",value:function(C){var L=this,F=arguments.length>1&&arguments[1]!==void 0&&arguments[1],ne=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],ue=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],fe=!(arguments.length>4&&arguments[4]!==void 0)||arguments[4],me=this.w;return me.globals.selection=void 0,C.series&&(this.series.resetSeries(!1,!0,!1),C.series.length&&C.series[0].data&&(C.series=C.series.map(function(Pe,Re){return L.updateHelpers._extendSeries(Pe,Re)})),this.updateHelpers.revertDefaultAxisMinMax()),C.xaxis&&(C=this.updateHelpers.forceXAxisUpdate(C)),C.yaxis&&(C=this.updateHelpers.forceYAxisUpdate(C)),me.globals.collapsedSeriesIndices.length>0&&this.series.clearPreviousPaths(),C.theme&&(C=this.theme.updateThemeOptions(C)),this.updateHelpers._updateOptions(C,F,ne,ue,fe)}},{key:"updateSeries",value:function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],L=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],F=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2];return this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(C,L,F)}},{key:"appendSeries",value:function(C){var L=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],F=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],ne=this.w.config.series.slice();return ne.push(C),this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(ne,L,F)}},{key:"appendData",value:function(C){var L=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],F=this;F.w.globals.dataChanged=!0,F.series.getPreviousPaths();for(var ne=F.w.config.series.slice(),ue=0;ue<ne.length;ue++)if(C[ue]!==null&&C[ue]!==void 0)for(var fe=0;fe<C[ue].data.length;fe++)ne[ue].data.push(C[ue].data[fe]);return F.w.config.series=ne,L&&(F.w.globals.initialSeries=Y.clone(F.w.config.series)),this.update()}},{key:"update",value:function(C){var L=this;return new Promise(function(F,ne){new rN(L.ctx).clear({isUpdating:!0});var ue=L.create(L.w.config.series,C);if(!ue)return F(L);L.mount(ue).then(function(){typeof L.w.config.chart.events.updated=="function"&&L.w.config.chart.events.updated(L,L.w),L.events.fireEvent("updated",[L,L.w]),L.w.globals.isDirty=!0,F(L)}).catch(function(fe){ne(fe)})})}},{key:"getSyncedCharts",value:function(){var C=this.getGroupedCharts(),L=[this];return C.length&&(L=[],C.forEach(function(F){L.push(F)})),L}},{key:"getGroupedCharts",value:function(){var C=this;return Apex._chartInstances.filter(function(L){if(L.group)return!0}).map(function(L){return C.w.config.chart.group===L.group?L.chart:C})}},{key:"toggleSeries",value:function(C){return this.series.toggleSeries(C)}},{key:"highlightSeriesOnLegendHover",value:function(C,L){return this.series.toggleSeriesOnHover(C,L)}},{key:"showSeries",value:function(C){this.series.showSeries(C)}},{key:"hideSeries",value:function(C){this.series.hideSeries(C)}},{key:"isSeriesHidden",value:function(C){this.series.isSeriesHidden(C)}},{key:"resetSeries",value:function(){var C=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],L=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];this.series.resetSeries(C,L)}},{key:"addEventListener",value:function(C,L){this.events.addEventListener(C,L)}},{key:"removeEventListener",value:function(C,L){this.events.removeEventListener(C,L)}},{key:"addXaxisAnnotation",value:function(C){var L=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,ne=this;F&&(ne=F),ne.annotations.addXaxisAnnotationExternal(C,L,ne)}},{key:"addYaxisAnnotation",value:function(C){var L=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,ne=this;F&&(ne=F),ne.annotations.addYaxisAnnotationExternal(C,L,ne)}},{key:"addPointAnnotation",value:function(C){var L=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,ne=this;F&&(ne=F),ne.annotations.addPointAnnotationExternal(C,L,ne)}},{key:"clearAnnotations",value:function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:void 0,L=this;C&&(L=C),L.annotations.clearAnnotations(L)}},{key:"removeAnnotation",value:function(C){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,F=this;L&&(F=L),F.annotations.removeAnnotation(F,C)}},{key:"getChartArea",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-inner")}},{key:"getSeriesTotalXRange",value:function(C,L){return this.coreUtils.getSeriesTotalsXRange(C,L)}},{key:"getHighestValueInSeries",value:function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return new $e(this.ctx).getMinYMaxY(C).highestY}},{key:"getLowestValueInSeries",value:function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return new $e(this.ctx).getMinYMaxY(C).lowestY}},{key:"getSeriesTotal",value:function(){return this.w.globals.seriesTotals}},{key:"toggleDataPointSelection",value:function(C,L){return this.updateHelpers.toggleDataPointSelection(C,L)}},{key:"zoomX",value:function(C,L){this.ctx.toolbar.zoomUpdateOptions(C,L)}},{key:"setLocale",value:function(C){this.localization.setCurrentLocaleValues(C)}},{key:"dataURI",value:function(C){return new ri(this.ctx).dataURI(C)}},{key:"exportToCSV",value:function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return new ri(this.ctx).exportToCSV(C)}},{key:"paper",value:function(){return this.w.globals.dom.Paper}},{key:"_parentResizeCallback",value:function(){this.w.globals.animationEnded&&this.w.config.chart.redrawOnParentResize&&this._windowResize()}},{key:"_windowResize",value:function(){var C=this;clearTimeout(this.w.globals.resizeTimer),this.w.globals.resizeTimer=window.setTimeout(function(){C.w.globals.resized=!0,C.w.globals.dataChanged=!1,C.ctx.update()},150)}},{key:"_windowResizeHandler",value:function(){var C=this.w.config.chart.redrawOnWindowResize;typeof C=="function"&&(C=C()),C&&this._windowResize()}}],[{key:"getChartByID",value:function(C){var L=Y.escapeString(C);if(Apex._chartInstances){var F=Apex._chartInstances.filter(function(ne){return ne.id===L})[0];return F&&F.chart}}},{key:"initOnLoad",value:function(){for(var C=document.querySelectorAll("[data-apexcharts]"),L=0;L<C.length;L++)new ai(C[L],JSON.parse(C[L].getAttribute("data-options"))).render()}},{key:"exec",value:function(C,L){var F=this.getChartByID(C);if(F){F.w.globals.isExecCalled=!0;var ne=null;if(F.publicMethods.indexOf(L)!==-1){for(var ue=arguments.length,fe=new Array(ue>2?ue-2:0),me=2;me<ue;me++)fe[me-2]=arguments[me];ne=F[L].apply(F,fe)}return ne}}},{key:"merge",value:function(C,L){return Y.extend(C,L)}}]),ai}();u.exports=iN})(apexcharts_common,apexcharts_common.exports);var apexcharts_commonExports=apexcharts_common.exports;const _hoisted_1$e={class:"inner"},_sfc_main$g=defineComponent({__name:"DoneCopyModal",props:{open:{type:Boolean},message:{default:"receive.doneCopy"},position:{default:"center"}},setup(u){const{t:f}=useI18nTypes();return(d,_)=>(openBlock(),createBlock(Transition,{name:"fade"},{default:withCtx(()=>[d.open?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(["modal",d.position])},[createBaseVNode("div",_hoisted_1$e,toDisplayString$2(unref(f)(d.message)),1)],2)):createCommentVNode("",!0)]),_:1}))}}),DoneCopyModal=_export_sfc(_sfc_main$g,[["__scopeId","data-v-dda9af99"]]),_withScopeId$2=u=>(pushScopeId("data-v-a1e63dab"),u=u(),popScopeId(),u),_hoisted_1$d={class:"flex-between default-padding"},_hoisted_2$c={class:"default-padding"},_hoisted_3$a=["onClick"],_hoisted_4$5=["onClick"],_hoisted_5$1=_withScopeId$2(()=>createBaseVNode("div",{class:"circle"},null,-1)),_hoisted_6=_withScopeId$2(()=>createBaseVNode("div",{class:"rect"},null,-1)),_hoisted_7=[_hoisted_5$1,_hoisted_6],createCoinList=u=>defineComponent(f=>()=>h$1(CoinList,{"onClick-coin":u.onClickCoin,"onClick-token":u.onClickToken,...f})),_sfc_main$f=defineComponent({__name:"CoinList",emits:["close","click-coin","click-token"],setup(u,{emit:f}){const d=f,{t:_}=useI18n(),x=useCoinAPIStore(),I=useWalletStore(),E=useCoinStore(),M=useUserAPIStore(),{breakPointsClass:S}=useBreakPointsClass(defaultBreakPoints),A=useRouter(),T=ref(),D=ref(!1),O=ref(!1),j=ref([]),$=ref([]),W=ref();onMounted(()=>{if(A.currentRoute.value.query.preSelectedCoin){const H=E.coinList.find(q=>q.id.toString()===A.currentRoute.value.query.preSelectedCoin);d("click-coin",H)}});let Q=1;const X=computed(()=>M.userInfo?.localeId);async function Y(){if(D.value||O.value)return;D.value=!0;const H=await x.searchTokenList({searchValue:Ce.value,page:Q,gotAllTokens:O,locale:X.value}),q=I.getAccountList({walletId:A.currentRoute.value.params.walletId}),J=H.filter(U=>{if(!U.property?.isAppOnly)return!q?.some(Z=>Z.tokens?.some(ve=>U.id===Number(ve.coin?.id)))});j.value=j.value.concat(J),le.value||($.value=j.value),Q++,D.value=!1}const ie=()=>{d("close")},oe=H=>{d("click-coin",H)},ge=async H=>{const q=await I.getAccountListFilteringByNetwork({network:H.coin?.network});!q||q.length===0?d("click-token",{token:H,network:void 0}):d("click-token",{token:H,network:H.coin?.network})},be=()=>{const H=I.getAccountList({walletId:A.currentRoute.value.params.walletId});return E.coinList?.filter(J=>{if(!J.property?.isAppOnly)return!H?.some(U=>U.coinId===J.id)})??[]},ze=H=>H?.filter(q=>q.name?.toLowerCase().includes(Ce.value.toLowerCase())||q.symbol?.toLowerCase().includes(Ce.value.toLowerCase())),de=ref(""),Ce=refDebounced(de,500);watch(Ce,async()=>{O.value=!1,Q=1},{immediate:!0});const ke=ref(be()),le=ref(!1);watch(de,()=>{le.value=!0});const re=ref(!1);useIntersectionObserver(W,([{isIntersecting:H}])=>{re.value=H}),useIntersectionObserver(T,([{isIntersecting:H}])=>{H&&Y()});const P=ref();watch(Ce,()=>{if(re.value){le.value=!1,Ce.value===""?ke.value=be():ke.value=ze(be()),j.value=[],$.value=[];return}let H;le.value&&(P.value.onscroll=q=>{clearTimeout(H),H=setTimeout(()=>{Ce.value===""?(ke.value=be(),$.value=j.value):(ke.value=ze(be()),$.value=j.value),le.value=!1,j.value=[],$.value=[],P.value.onscroll=()=>{}},50)},W.value?.scrollIntoView({behavior:"smooth"}),le.value=!1)});const k=H=>H instanceof Coin?H.isTestnet?_("create_account.testnet"):"":H.coin?.isTestnet?_("create_account.testnet"):"",B=ref(null),z=ref(465);useResizeObserver(B,H=>{const q=H[0];z.value=q.contentRect.height});const ee=ref({height:S.value==="mobile"?`${window.screen.availHeight-174}px`:"465px"});return watch([S,Ce,z],()=>{if(!D.value&&S.value!=="mobile"){const H=Ce.value?Math.min(465,z.value):465;ee.value={height:`${H}px`}}}),(H,q)=>(openBlock(),createElementBlock("div",{class:normalizeClass(["coin-list",[unref(S)]])},[createVNode(unref(BasicHeader),{class:"popup-header",title:unref(_)("create_account.add_account"),exit:ie},null,8,["title"]),createBaseVNode("div",_hoisted_1$d,toDisplayString$2(unref(_)("create_account.choose_account")),1),createBaseVNode("div",_hoisted_2$c,[createVNode(unref(SearchBox),{modelValue:de.value,"onUpdate:modelValue":q[0]||(q[0]=J=>de.value=J),width:"100%",class:"search-box",placeholder:unref(_)("send.search")},null,8,["modelValue","placeholder"])]),createBaseVNode("div",{ref_key:"scrollRef",ref:P,class:normalizeClass(["account-list",[unref(S)]]),style:normalizeStyle(ee.value)},[createBaseVNode("div",{ref_key:"listEl",ref:B},[createBaseVNode("div",{ref_key:"topRef",ref:W},null,512),(openBlock(!0),createElementBlock(Fragment,null,renderList(ke.value,J=>(openBlock(),createElementBlock("div",{key:J.id,class:"add-coin-box",onClick:U=>oe(J)},[createVNode(unref(_sfc_main$p),{class:normalizeClass(["token-list-item",k(J)?"testnet-chip":""]),ticker:J.name,symbol:J.symbol,"ticker-src":J.iconUrl,"chip-testnet":k(J)},null,8,["class","ticker","symbol","ticker-src","chip-testnet"])],8,_hoisted_3$a))),128)),(openBlock(!0),createElementBlock(Fragment,null,renderList($.value,J=>(openBlock(),createElementBlock("div",{key:J.id,class:"add-coin-box",onClick:U=>ge(J)},[createVNode(unref(_sfc_main$p),{class:normalizeClass(["token-list-item",k(J)?"testnet-chip":""]),ticker:J.name,symbol:J.symbol,chip:J.coin?.name,"chip-testnet":k(J),"ticker-src":J.iconUrl,"network-src":J.coin?.iconUrl},null,8,["class","ticker","symbol","chip","chip-testnet","ticker-src","network-src"])],8,_hoisted_4$5))),128)),O.value?createCommentVNode("",!0):(openBlock(),createElementBlock("div",{key:0,ref_key:"infiniteScrollEl",ref:T},[(openBlock(),createElementBlock(Fragment,null,renderList(5,(J,U)=>createBaseVNode("div",{key:U,class:"skeleton"},_hoisted_7)),64))],512))],512)],6)],2))}}),CoinList=_export_sfc(_sfc_main$f,[["__scopeId","data-v-a1e63dab"]]),_withScopeId$1=u=>(pushScopeId("data-v-09e9c6fe"),u=u(),popScopeId(),u),_hoisted_1$c={class:"notice-text"},_hoisted_2$b=_withScopeId$1(()=>createBaseVNode("br",null,null,-1)),_hoisted_3$9=_withScopeId$1(()=>createBaseVNode("br",null,null,-1)),createTokenNetwork=u=>defineComponent(f=>()=>h$1(CreateTokenNetwork,{"onClick-confirm":u.onClickConfirm,...f})),_sfc_main$e=defineComponent({__name:"CreateTokenNetwork",emits:["close","click-confirm"],setup(u,{emit:f}){const d=f,{t:_}=useI18n(),{breakPointsClass:x}=useBreakPointsClass(defaultBreakPoints),I=useWalletStore(),E=useCoinStore(),M=useRouter(),{isError:S,inputValue:A,onInputLabel:T}=useInput(),D=computed(()=>E.coinList.find(Q=>Q.id.toString()===M.currentRoute.value.query.selectedCoin)),O=computed(()=>M.currentRoute.value.query.selectedToken?I.getAccount({accountId:M.currentRoute.value.query.selectedToken}):null),j=()=>{d("close")},$=()=>{S.value||d("click-confirm",A.value)};return useKeyDown({confirm:$}),(W,Q)=>{const X=resolveComponent("i18n-t");return openBlock(),createElementBlock(Fragment,null,[createVNode(unref(BasicHeader),{title:unref(_)("create_account.add_account"),exit:j},null,8,["title"]),createBaseVNode("div",{class:normalizeClass(["create-token-network",[unref(x)]])},[createBaseVNode("div",_hoisted_1$c,[createVNode(X,{keypath:"create_account.network_for_tokens_title"},{line_break:withCtx(()=>[_hoisted_2$b]),_:1},8,["keypath"]),createBaseVNode("span",null,[createVNode(X,{keypath:"create_account.network_for_tokens_sub"},{line_break:withCtx(()=>[_hoisted_3$9]),_:1},8,["keypath"])])]),createVNode(unref(_sfc_main$p),{class:"token-list-item",ticker:D.value?.name,symbol:D.value?.symbol,"ticker-src":D.value?.iconUrl,"network-src":O.value?.coin?.iconUrl},null,8,["ticker","symbol","ticker-src","network-src"]),createVNode(unref(InputBox),{width:"100%",placeholder:unref(_)("create_account.name_placeholder"),"model-value":unref(A),clear:!0,error:unref(S),maxlength:"14",onInput:unref(T)},null,8,["placeholder","model-value","error","onInput"]),createVNode(unref(NoticeText),{class:"notice-wrapper","is-error":unref(S)},{default:withCtx(()=>[createTextVNode(toDisplayString$2(unref(_)("create_account.input_name_caution")),1)]),_:1},8,["is-error"]),createVNode(unref(BBB),{class:"default-margin",disabled:unref(S),onConfirm:$,onCancel:j},null,8,["disabled"])],2)],64)}}}),CreateTokenNetwork=_export_sfc(_sfc_main$e,[["__scopeId","data-v-09e9c6fe"]]),_hoisted_1$b={class:"notice-text"},_hoisted_2$a=["textContent"],createInputLabel=u=>defineComponent(f=>()=>h$1(InputLabel,{"onClick-confirm":u.onClickConfirm,...f})),_sfc_main$d=defineComponent({__name:"InputLabel",emits:["close","click-confirm"],setup(u,{emit:f}){const d=f,{t:_}=useI18n(),{breakPointsClass:x}=useBreakPointsClass(defaultBreakPoints),I=useWalletStore(),E=useAccountTokenAPIStore(),M=useCoinStore(),S=useRouter(),{isError:A,inputValue:T,onInputLabel:D}=useInput(),O=computed(()=>S.currentRoute.value.query.forToken==="false"?M.coinList.find(Y=>Y.id.toString()===S.currentRoute.value.query.selectedCoin):M.tokenList.find(Y=>Y.id.toString()===S.currentRoute.value.query.selectedCoin)),j=computed(()=>S.currentRoute.value.query.selectedParentAccount?I.getAccount({accountId:S.currentRoute.value.query.selectedParentAccount.toString()}):null),$=computed(()=>S.currentRoute.value.query.forToken==="true"),W=()=>{d("close")},Q=async()=>{A.value||($.value===!1?d("click-confirm",T.value):(await E.addToken({accountId:j.value?.id,label:T.value,tokenId:O.value?.id}),W()))};return useKeyDown({confirm:Q}),(X,Y)=>(openBlock(),createElementBlock(Fragment,null,[createVNode(unref(BasicHeader),{title:unref(_)("create_account.add_account"),exit:W},null,8,["title"]),createBaseVNode("div",{class:normalizeClass(["input-label",[unref(x)]])},[createBaseVNode("div",_hoisted_1$b,[createTextVNode(toDisplayString$2(unref(_)("create_account.input_name_title"))+" ",1),createBaseVNode("span",{textContent:toDisplayString$2(unref(_)("create_account.input_name_sub"))},null,8,_hoisted_2$a)]),j.value?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(["networkWrapper",$.value?"for-token":""])},[createBaseVNode("span",null,toDisplayString$2(unref(_)("send.network")),1),createVNode(unref(_sfc_main$s),{"token-src":j.value?.coin?.iconUrl,size:"custom","custom-size":"20px"},null,8,["token-src"]),createBaseVNode("span",null,toDisplayString$2(j.value?.coin?.name),1)],2)):createCommentVNode("",!0),createVNode(unref(_sfc_main$p),{class:"token-list-item",ticker:O.value?.name,symbol:O.value?.symbol,"ticker-src":O.value?.iconUrl,"network-src":j.value?.coin?.iconUrl},null,8,["ticker","symbol","ticker-src","network-src"]),createVNode(unref(InputBox),{width:"100%",placeholder:unref(_)("create_account.name_placeholder"),clear:!0,"model-value":unref(T),error:unref(A),maxlength:"14",onInput:unref(D)},null,8,["placeholder","model-value","error","onInput"]),createVNode(unref(NoticeText),{class:"notice-wrapper","is-error":unref(A)},{default:withCtx(()=>[createTextVNode(toDisplayString$2(unref(_)("create_account.input_name_caution")),1)]),_:1},8,["is-error"]),createVNode(unref(BBB),{disabled:unref(A),onConfirm:Q,onCancel:W},null,8,["disabled"])],2)],64))}}),InputLabel=_export_sfc(_sfc_main$d,[["__scopeId","data-v-2aadb08d"]]),_hoisted_1$a={class:"notice-text"},_hoisted_2$9=["textContent"],_hoisted_3$8={class:"select-fee-account"},_hoisted_4$4=["onClick"],createSelectParentAccount=u=>defineComponent(f=>()=>h$1(SelectParentAccount,{"onClick-account":u.onClickAccount,...f})),_sfc_main$c=defineComponent({__name:"SelectParentAccount",emits:["close","click-account"],setup(u,{emit:f}){const d=f,{t:_}=useI18n(),{breakPointsClass:x}=useBreakPointsClass(defaultBreakPoints),I=useWalletStore(),E=useRouter(),M=ref();watchEffect(async()=>{M.value=await I.getAccountListFilteringByNetwork({network:E.currentRoute.value.query.network})});const S=()=>{d("close")},A=ref(),T=O=>{if(A.value?.id.toString()===O.id.toString()){A.value=void 0;return}A.value=O},D=O=>{d("click-account",O)};return(O,j)=>(openBlock(),createElementBlock(Fragment,null,[createVNode(unref(BasicHeader),{title:unref(_)("create_account.add_account"),exit:S},null,8,["title"]),createBaseVNode("div",{class:normalizeClass(["select-parent-account",[unref(x)]])},[createBaseVNode("div",_hoisted_1$a,[createTextVNode(toDisplayString$2(unref(_)("create_account.selected_network_title"))+" ",1),createBaseVNode("span",{textContent:toDisplayString$2(unref(_)("create_account.selected_network_sub"))},null,8,_hoisted_2$9)]),createBaseVNode("div",_hoisted_3$8,[(openBlock(!0),createElementBlock(Fragment,null,renderList(M.value,$=>(openBlock(),createElementBlock("div",{key:$.id.toString(),class:"fee-account",onClick:W=>T($)},[createVNode(unref(_sfc_main$q),{ticker:$.coin?.name,symbol:$.coin?.symbol,address:$.address.shirinkAddress(),"network-src":$.coin?.iconUrl??unref(defaultCoinIcon),width:unref(x)==="mobile"?"100%":"400px",selected:$.id.toString()===A.value?.id.toString(),required:""},null,8,["ticker","symbol","address","network-src","width","selected"])],8,_hoisted_4$4))),128))]),createVNode(unref(BBB),{disabled:!A.value,onConfirm:j[0]||(j[0]=$=>D(A.value)),onCancel:S},null,8,["disabled"])],2)],64))}}),SelectParentAccount=_export_sfc(_sfc_main$c,[["__scopeId","data-v-b6df19f7"]]),addAccountCoinList=u=>({name:u.name,path:u.path??"add-account",component:createCoinList({onClickCoin:u.onClickCoin,onClickToken:u.onClickToken}),props:!0}),walletAddAccountCoinListRoute=addAccountCoinList({name:"wallet_add_account_coinlist",path:"add/coinlist",onClickCoin(u){router.replace({name:"wallet_add_account_label",query:{...router.currentRoute.value.query,selectedCoin:u.id.toString(),forToken:"false"}})},onClickToken(u){const f={};typeof u.network>"u"?(f.selectedCoin=u.token.coin?.id.toString(),f.selectedToken=u.token.id.toString(),f.forToken="true",router.replace({name:"wallet_add_account_create_parent",query:f})):(f.selectedToken=u.token.id.toString(),f.network=u.network,f.forToken="true",router.replace({name:"wallet_add_account_select_parent",query:f}))}}),nftAddAccountCoinListRoute=addAccountCoinList({name:"nft_add_account_coinlist",path:"add/coinlist",onClickCoin(u){router.replace({name:"nft_add_account_label",query:{...router.currentRoute.value.query,selectedCoin:u.id.toString(),forToken:"false"}})},onClickToken(u){const f={};typeof u.network>"u"?(f.selectedCoin=u.token.coin?.id.toString(),f.selectedToken=u.token.id.toString(),f.forToken="true",router.replace({name:"nft_add_account_create_parent",query:f})):(f.selectedToken=u.token.id.toString(),f.network=u.network,f.forToken="true",router.replace({name:"nft_add_account_select_parent",query:f}))}}),addAccountInputLabel=u=>({name:u.name,path:u.path??"account-label",component:createInputLabel({onClickConfirm:u.onClickConfirm})}),walletAddAccountInputLabelRoute=addAccountInputLabel({name:"wallet_add_account_label",path:"account-label",onClickConfirm(u){router.replace({name:"wallet_account_pin",query:{...router.currentRoute.value.query,label:u}})}}),nftAddAccountInputLabelRoute=addAccountInputLabel({name:"nft_add_account_label",path:"account-label",onClickConfirm(u){router.replace({name:"nft_account_pin",query:{...router.currentRoute.value.query,label:u}})}}),addAccountCreateParentNetwork=u=>({name:u.name,path:u.path??"wallet_create-parent",component:createTokenNetwork({onClickConfirm:u.onClickConfirm})}),walletAddAccountCreateParentNetworkRoute=addAccountCreateParentNetwork({name:"wallet_add_account_create_parent",path:"create-parent",onClickConfirm(u){router.replace({name:"wallet_account_pin",query:{...router.currentRoute.value.query,label:u}})}}),nftAddAccountCreateParentNetworkRoute=addAccountCreateParentNetwork({name:"nft_add_account_create_parent",path:"create-parent",onClickConfirm(u){router.replace({name:"nft_account_pin",query:{...router.currentRoute.value.query,label:u}})}}),addAccountSelectParentAccount=u=>({name:u.name,path:u.path??"wallet_select-parent",component:createSelectParentAccount({onClickAccount:u.onClickAccount})}),walletAddAccountSelectParentAccountRoute=addAccountSelectParentAccount({name:"wallet_add_account_select_parent",path:"select-parent",onClickAccount(u){router.replace({name:"wallet_add_account_label",query:{selectedCoin:router.currentRoute.value.query.selectedToken,selectedParentAccount:u.id,forToken:router.currentRoute.value.query.forToken}})}}),nftAddAccountSelectParentAccountRoute=addAccountSelectParentAccount({name:"nft_add_account_select_parent",path:"select-parent",onClickAccount(u){router.replace({name:"nft_add_account_label",query:{selectedCoin:router.currentRoute.value.query.selectedToken,selectedParentAccount:u.id,forToken:router.currentRoute.value.query.forToken}})}}),walletAddAccountInputPinRoute=u=>({name:u.name,path:u.path??"wallet-account-pin",component:()=>__vitePreload(()=>import("./AddAccountPin-qBUFcnng.js"),__vite__mapDeps([71,72,5,6,7,4,73]))}),nftAddAccountInputPinRoute=u=>({name:u.name,path:u.path??"nft-account-pin",component:()=>__vitePreload(()=>import("./AddAccountPin-qBUFcnng.js"),__vite__mapDeps([71,72,5,6,7,4,73]))}),__variableDynamicImportRuntimeHelper=(u,f)=>{const d=u[f];return d?typeof d=="function"?d():Promise.resolve(d):new Promise((_,x)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(x.bind(null,new Error("Unknown variable dynamic import: "+f)))})},_withScopeId=u=>(pushScopeId("data-v-3206aafe"),u=u(),popScopeId(),u),_hoisted_1$9={class:"manage-content"},_hoisted_2$8={class:"coin-name"},_hoisted_3$7={class:"account-label"},_hoisted_4$3=_withScopeId(()=>createBaseVNode("div",{class:"button-area"},[createBaseVNode("div",{class:"popup-button"}),createBaseVNode("div",{class:"popup-button"})],-1)),createAccountManageRoute=u=>defineComponent(f=>()=>h$1(AccountManage,{"onSelect-route":d=>{u.onSelectRoute(d)},...f})),_sfc_main$b=defineComponent({__name:"AccountManage",emits:["close","select-route"],setup(u,{emit:f}){const d=f,{t:_}=useI18nTypes(),{breakPointsClass:x}=useBreakPointsClass(defaultBreakPoints),{account:I}=useAccountQuery(),E=()=>{d("select-route","ChangeLabel")},M=()=>{d("select-route","HideAccount")},S=ref([{name:_("account_manage.change_label"),type:"item",button:{type:"element",name:"Right",size:"medium",color:colors.currentThemeRef.value.grey_111},onClick:E},{name:_("account_manage.delete"),type:"item",button:{type:"element",name:"Right",size:"medium",color:colors.currentThemeRef.value.grey_111},onClick:M}]),A=ref(!1),T=()=>{A.value||(A.value=!0,setTimeout(()=>{A.value=!1},2e3))};return(D,O)=>unref(I)?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(["account-manage",[unref(x)]])},[createVNode(unref(BasicHeader),{class:"header",title:"",exit:()=>d("close")},null,8,["exit"]),createBaseVNode("div",_hoisted_1$9,[createVNode(unref(_sfc_main$s),{class:"network-icon","token-src":unref(I).coin?.iconUrl,"network-src":unref(I).coin?.coin?.iconUrl,size:"custom","custom-size":"58px"},null,8,["token-src","network-src"]),createBaseVNode("div",_hoisted_2$8,toDisplayString$2(unref(I).coin?.name),1),createBaseVNode("div",_hoisted_3$7,toDisplayString$2(unref(I).label),1),createVNode(unref(AddressCopyViewer),{address:unref(I).address,modal:A.value,onOpenModal:T},null,8,["address","modal"]),createVNode(unref(PopupList),{class:"popup-list",items:S.value},null,8,["items"]),_hoisted_4$3]),createVNode(DoneCopyModal,{open:A.value},null,8,["open"])],2)):createCommentVNode("",!0)}}),AccountManage=_export_sfc(_sfc_main$b,[["__scopeId","data-v-3206aafe"]]),AccountManage$1=Object.freeze(Object.defineProperty({__proto__:null,createAccountManageRoute,default:AccountManage},Symbol.toStringTag,{value:"Module"})),_hoisted_1$8={class:"popup-body"},_hoisted_2$7={class:"header"},_hoisted_3$6={class:"coin-name"},_hoisted_4$2={class:"coin-symbol"},_sfc_main$a=defineComponent({__name:"ChangeLabel",emits:["close"],setup(u,{emit:f}){const d=f,{t:_}=useI18nTypes(),x=useLoadingsStore(),{breakPointsClass:I}=useBreakPointsClass(defaultBreakPoints),{account:E}=useAccountQuery(),{isError:M,inputValue:S,onInputLabel:A}=useInput(),T=async()=>{if(!(S.value.length===0||M.value)){x.openSpinner();try{await E.value.setLabel(S.value),d("close")}catch(O){console.error("[ChangeLabel onClickConfirm] error :",O)}finally{x.closeSpinner()}}},D=()=>{d("close")};return useKeyDown({confirm:T}),(O,j)=>unref(E)?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(["change-label",unref(I)])},[createVNode(unref(BasicHeader),{title:unref(_)("change_label.title"),exit:D},null,8,["title"]),createBaseVNode("div",_hoisted_1$8,[createBaseVNode("div",_hoisted_2$7,[createVNode(unref(_sfc_main$s),{class:"network-icon","token-src":unref(E).coin?.iconUrl,"network-src":unref(E).coin?.coin?.iconUrl},null,8,["token-src","network-src"]),createBaseVNode("div",_hoisted_3$6,toDisplayString$2(unref(E).coin?.name),1),createBaseVNode("div",_hoisted_4$2,toDisplayString$2(unref(E).coin?.symbol),1)]),createVNode(unref(InputBox),{width:"100%",class:"label-input",placeholder:unref(_)("create_account.name_placeholder"),clear:!0,"model-value":unref(S),error:unref(M),maxlength:"14",onInput:unref(A)},null,8,["placeholder","model-value","error","onInput"]),createVNode(unref(NoticeText),{class:"notice-wrapper","is-error":unref(M)},{default:withCtx(()=>[createTextVNode(toDisplayString$2(unref(_)("create_account.input_name_caution")),1)]),_:1},8,["is-error"]),createVNode(unref(BBB),{disabled:unref(S).length===0||unref(M),onConfirm:T,onCancel:D},null,8,["disabled"])])],2)):createCommentVNode("",!0)}}),ChangeLabel=_export_sfc(_sfc_main$a,[["__scopeId","data-v-07c5ee8b"]]),ChangeLabel$1=Object.freeze(Object.defineProperty({__proto__:null,default:ChangeLabel},Symbol.toStringTag,{value:"Module"})),_hoisted_1$7={class:"popup-body"},_hoisted_2$6=["innerHTML"],_sfc_main$9=defineComponent({__name:"HideAccount",emits:["close"],setup(u,{emit:f}){const d=f,{t:_}=useI18nTypes(),{breakPointsClass:x}=useBreakPointsClass(defaultBreakPoints),I=useRouter(),{account:E}=useAccountQuery(),M=useWalletStore(),S=useNFTAPIStore(),A=ref();onBeforeMount(()=>{M.selectedWalletId!==""&&S.fetchNFTList({walletId:M.selectedWalletId})});const T=async()=>{O.value.length>0&&await Promise.all(O.value.map(async X=>X.hideAccount())),E.value instanceof Account&&(A.value=E.value.id),await E.value.hideAccount(),A.value&&(S.nftListByWalletKey[M.selectedWalletId]=S.nftListByWalletKey[M.selectedWalletId]?.filter(X=>X.accountId!==A.value)),I.push(`/dashboard/wallet/${M.selectedWalletId}`)},D=()=>{d("close")};useKeyDown({confirm:T});const O=computed(()=>E.value instanceof Account&&E.value.tokens?E.value.tokens:[]),j=computed(()=>E.value instanceof Account&&E.value.nfts?E.value.nfts.length:0),$=computed(()=>E.value?E.value.amount.ethValue.toFixed():"0"),W=computed(()=>E.value?.coin?E.value.coin.symbol:""),Q=computed(()=>{const X="hide_account.description.";return O.value.length>0&&j.value>0?X+"has_token_account_and_nft":O.value.length>0?X+"has_token_account":j.value>0?X+"has_nft":$.value!=="0"?X+"has_balance":X+"delete_available"});return(X,Y)=>(openBlock(),createElementBlock("div",{class:normalizeClass(["hide-account",[unref(x)]])},[createVNode(unref(BasicHeader),{title:unref(_)("hide_account.title"),exit:D},null,8,["title"]),createBaseVNode("div",_hoisted_1$7,[createBaseVNode("div",{class:"description",innerHTML:unref(_)(Q.value,{count:j.value,balance:$.value,symbol:W.value})},null,8,_hoisted_2$6),createVNode(unref(NoticeText),{class:"notice-text"},{default:withCtx(()=>[createTextVNode(toDisplayString$2(unref(_)("hide_account.notice")),1)]),_:1}),createVNode(unref(BBB),{"confirm-text":unref(_)("global.delete"),onConfirm:T,onCancel:D},null,8,["confirm-text"])])],2))}}),HideAccount=_export_sfc(_sfc_main$9,[["__scopeId","data-v-f028bb70"]]),HideAccount$1=Object.freeze(Object.defineProperty({__proto__:null,default:HideAccount},Symbol.toStringTag,{value:"Module"})),accountManageRoutes=[{name:"AccountManage",component:AccountManage},{name:"ChangeLabel",component:ChangeLabel},{name:"HideAccount",component:HideAccount}],manageAccountRoute=u=>({name:u.name,path:u.path??"manage",component:createAccountManageRoute({onSelectRoute:u.onSelectRoute}),props:!0}),accountManageRoute=manageAccountRoute({name:"accountManage",onSelectRoute(u){router.replace({name:u,query:router.currentRoute.value.query})}}),accountManageViewRoutes=()=>accountManageRoutes.map(u=>({name:u.name,path:`manage/${u.name}`,component:()=>__variableDynamicImportRuntimeHelper(Object.assign({"../../views/dashboard/account_manage/AccountManage.vue":()=>__vitePreload(()=>Promise.resolve().then(()=>AccountManage$1),void 0),"../../views/dashboard/account_manage/ChangeLabel.vue":()=>__vitePreload(()=>Promise.resolve().then(()=>ChangeLabel$1),void 0),"../../views/dashboard/account_manage/HideAccount.vue":()=>__vitePreload(()=>Promise.resolve().then(()=>HideAccount$1),void 0)}),`../../views/dashboard/account_manage/${u.name}.vue`),props:!0})),_hoisted_1$6={class:"popup-body"},_hoisted_2$5={key:0,class:"text-item"},_hoisted_3$5={key:1,class:"text-item"},createWalletManageRoute=u=>defineComponent(f=>()=>h$1(WalletManage,{"onSelect-route":(d,_)=>{u(d,_)},walletId:f.walletId})),_sfc_main$8=defineComponent({__name:"WalletManage",props:{walletId:{}},emits:["select-route","close"],setup(u,{emit:f}){const d=u,_=f,x=useWalletAPIStore(),I=useWalletStore(),{t:E}=useI18nTypes(),{breakPointsClass:M}=useBreakPointsClass(defaultBreakPoints),S=useLoadingsStore(),A=computed(()=>I.getWallet(d.walletId)?.defaultWallet);onBeforeMount(()=>{const W=I.getWallet(d.walletId);W&&(T.value=W.accounts.length>0,(W.state===WalletStateExported||W.state===WalletStateVerified)&&(O.desc=E("wallet_manage.is_backuped"))),!A.value&&!T.value&&j.value.push({type:"item",name:E("wallet_manage.delete"),button:{type:"element",name:"Right",size:"medium",color:colors.currentThemeRef.value.grey_111},onClick(){I.walletList.find(Q=>Q.id===d.walletId)?.state===WalletStateVerified?_("select-route","delete_wallet_Exec",d.walletId):_("select-route","delete_wallet_start",d.walletId)}})});const T=ref(!1),D=reactive({type:"item",name:E("wallet_manage.default_wallet"),button:{type:"toggle",checked:A.value,color:colors.currentThemeRef.value.main,disabled:!1},async onCheck(W){if(!A.value&&D.button?.type==="toggle"){S.openSpinner();try{const Q=await x.updateWallet(d.walletId,{defaultWallet:!0});if(!Q)return;D.button.checked=W,Q.wallet.defaultWallet&&j.value.length===5&&j.value.pop()}finally{S.closeSpinner()}}}}),O=reactive({type:"item",name:E("wallet_manage.backup"),button:{type:"element",name:"Right",size:"medium",color:colors.currentThemeRef.value.grey_111},onClick(){_("select-route","backup_confirm_caution",d.walletId)}}),j=ref([{type:"item",name:E("wallet_manage.label_modify"),button:{type:"element",name:"Right",size:"medium",color:colors.currentThemeRef.value.grey_111},onClick(){_("select-route","change_wallet_label",d.walletId)}},{type:"item",name:E("wallet_manage.change_pin.title"),button:{type:"element",name:"Right",size:"medium",color:colors.currentThemeRef.value.grey_111},onClick(){_("select-route","change_pin",d.walletId)}},O]),$=()=>{_("close")};return(W,Q)=>(openBlock(),createElementBlock("div",{class:normalizeClass(["wallet-manage",[unref(M)]])},[createVNode(unref(BasicHeader),{title:unref(E)("wallet_manage.title"),exit:$},null,8,["title"]),createBaseVNode("div",_hoisted_1$6,[createVNode(unref(PopupList),{items:j.value},null,8,["items"]),A.value?(openBlock(),createElementBlock("div",_hoisted_2$5,[createBaseVNode("span",null,toDisplayString$2(unref(E)("wallet_manage.delete")),1),createBaseVNode("span",null,toDisplayString$2(unref(E)("wallet_manage.delete_disabled")),1)])):T.value?(openBlock(),createElementBlock("div",_hoisted_3$5,[createBaseVNode("span",null,toDisplayString$2(unref(E)("wallet_manage.delete")),1),createBaseVNode("span",null,toDisplayString$2(unref(E)("wallet_manage.delete_disabled_account")),1)])):createCommentVNode("",!0)])],2))}}),WalletManage=_export_sfc(_sfc_main$8,[["__scopeId","data-v-4cab5339"]]),manageWalletRoute=u=>({name:u.name,path:u.path??"manage",component:createWalletManageRoute(u.onSelectRoute),props:!0}),walletManageRoute=manageWalletRoute({name:"wallet_manage",onSelectRoute(u,f){router.replace({name:u,params:{walletId:f}})}}),changeWalletLabelViewRoute=(u,f)=>({name:u,path:f??"change/label",component:()=>__vitePreload(()=>import("./ChangeWalletLabel-UEKFpB0p.js"),__vite__mapDeps([74,75])),props:!0}),createSelectReceiveAccount=u=>defineComponent(f=>()=>h$1(_sfc_main$7,{"onSelect-account":d=>{u(d)},...f})),_sfc_main$7=defineComponent({__name:"SelectReceiveAccount",emits:["close","select-account"],setup(u,{emit:f}){const d=f,{t:_}=useI18nTypes(),x=useRouter(),I=computed(()=>x.currentRoute.value.params.walletId),E=computed(()=>x.currentRoute.value.query.excludeTokens==="true"),M=useWalletStore(),S=computed(()=>M.walletList?.find(D=>D.id===I.value)?.accounts??[]),A=()=>{d("close")},T=D=>{d("select-account",D)};return(D,O)=>(openBlock(),createElementBlock("div",null,[createVNode(unref(BasicHeader),{title:unref(_)("receive.title"),exit:A},null,8,["title"]),createVNode(unref(SelectAccount),{"account-list":S.value,"header-text":unref(_)("receive.select_account"),"exclude-tokens":E.value,onSelectAccount:T},null,8,["account-list","header-text","exclude-tokens"])]))}}),receiveSelectAddressRoute=u=>({name:u.name,path:u.path??"receive/select-address",component:createSelectReceiveAccount(u.onSelectAccount),props:!0}),walletReceiveSelectAddressRoute=receiveSelectAddressRoute({name:"wallet_receive_select_address",onSelectAccount(u){u instanceof Account?router.replace({name:"wallet_receive_account_qrview",query:{accountId:u.id,accountTokenId:void 0}}):u instanceof AccountToken&&router.replace({name:"wallet_receive_account_qrview",query:{accountId:void 0,accountTokenId:u.id}})}}),nftReceiveSelectAddressRoute=receiveSelectAddressRoute({name:"nft_receive_select_address",onSelectAccount(u){u instanceof Account?router.replace({name:"nft_receive_account_qrview",query:{accountId:u.id,accountTokenId:void 0}}):u instanceof AccountToken&&router.replace({name:"nft_receive_account_qrview",query:{accountId:void 0,accountTokenId:u.id}})}}),receiveQrViewRoute=(u,f)=>({name:u,path:f??"receive/qrview",component:()=>__vitePreload(()=>import("./QRViewer-z2-dlTWc.js"),__vite__mapDeps([76,77])),props:!0}),_hoisted_1$5={class:"change-layout"},_hoisted_2$4={class:"card-select"},_hoisted_3$4={key:0,class:"group-mainnet"},_sfc_main$6=defineComponent({__name:"ChangeLayout",emits:["close"],setup(u,{emit:f}){const d=f,{t:_}=useI18nTypes(),x=useSettingsStore(),I=ref([{id:"card",element:{name:"GridView",size:"medium",color:colors.currentThemeRef.value.main},text:_("change_layout.card"),isSelected:x.accountLayout.card},{id:"list",element:{name:"Hamburger",size:"medium",color:colors.currentThemeRef.value.main},text:_("change_layout.list"),isSelected:x.accountLayout.list}]);watchEffect(()=>{for(const M of I.value)M.id==="card"?x.accountLayout.card=M.isSelected:M.id==="list"&&(x.accountLayout.list=M.isSelected)});const E=computed(()=>x.accountLayout.card);return(M,S)=>(openBlock(),createElementBlock("div",_hoisted_1$5,[createVNode(unref(BasicHeader),{title:unref(_)("change_layout.title"),exit:()=>d("close")},null,8,["title","exit"]),createBaseVNode("div",_hoisted_2$4,[createVNode(unref(SelectIconCard),{items:I.value,"onUpdate:items":S[0]||(S[0]=A=>I.value=A)},null,8,["items"])]),unref(x).accountLayout.card?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_3$4,[createBaseVNode("span",null,toDisplayString$2(unref(_)("change_layout.group_mainnet")),1),createVNode(unref(ToggleButton),{checked:unref(x).accountLayout.group,"onUpdate:checked":S[1]||(S[1]=A=>unref(x).accountLayout.group=A),disabled:E.value},null,8,["checked","disabled"])]))]))}}),ChangeLayout=_export_sfc(_sfc_main$6,[["__scopeId","data-v-29deada5"]]),ChangeLayout$1=Object.freeze(Object.defineProperty({__proto__:null,default:ChangeLayout},Symbol.toStringTag,{value:"Module"}));var vuedraggable_umd={exports:{}};const require$$0$1=getAugmentedNamespace(vue_runtime_esmBundler);function ownKeys(u,f){var d=Object.keys(u);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(u);f&&(_=_.filter(function(x){return Object.getOwnPropertyDescriptor(u,x).enumerable})),d.push.apply(d,_)}return d}function _objectSpread2(u){for(var f=1;f<arguments.length;f++){var d=arguments[f]!=null?arguments[f]:{};f%2?ownKeys(Object(d),!0).forEach(function(_){_defineProperty(u,_,d[_])}):Object.getOwnPropertyDescriptors?Object.defineProperties(u,Object.getOwnPropertyDescriptors(d)):ownKeys(Object(d)).forEach(function(_){Object.defineProperty(u,_,Object.getOwnPropertyDescriptor(d,_))})}return u}function _typeof(u){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(f){return typeof f}:_typeof=function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},_typeof(u)}function _defineProperty(u,f,d){return f in u?Object.defineProperty(u,f,{value:d,enumerable:!0,configurable:!0,writable:!0}):u[f]=d,u}function _extends(){return _extends=Object.assign||function(u){for(var f=1;f<arguments.length;f++){var d=arguments[f];for(var _ in d)Object.prototype.hasOwnProperty.call(d,_)&&(u[_]=d[_])}return u},_extends.apply(this,arguments)}function _objectWithoutPropertiesLoose(u,f){if(u==null)return{};var d={},_=Object.keys(u),x,I;for(I=0;I<_.length;I++)x=_[I],!(f.indexOf(x)>=0)&&(d[x]=u[x]);return d}function _objectWithoutProperties(u,f){if(u==null)return{};var d=_objectWithoutPropertiesLoose(u,f),_,x;if(Object.getOwnPropertySymbols){var I=Object.getOwnPropertySymbols(u);for(x=0;x<I.length;x++)_=I[x],!(f.indexOf(_)>=0)&&Object.prototype.propertyIsEnumerable.call(u,_)&&(d[_]=u[_])}return d}function _toConsumableArray(u){return _arrayWithoutHoles(u)||_iterableToArray(u)||_unsupportedIterableToArray(u)||_nonIterableSpread()}function _arrayWithoutHoles(u){if(Array.isArray(u))return _arrayLikeToArray(u)}function _iterableToArray(u){if(typeof Symbol<"u"&&u[Symbol.iterator]!=null||u["@@iterator"]!=null)return Array.from(u)}function _unsupportedIterableToArray(u,f){if(u){if(typeof u=="string")return _arrayLikeToArray(u,f);var d=Object.prototype.toString.call(u).slice(8,-1);if(d==="Object"&&u.constructor&&(d=u.constructor.name),d==="Map"||d==="Set")return Array.from(u);if(d==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d))return _arrayLikeToArray(u,f)}}function _arrayLikeToArray(u,f){(f==null||f>u.length)&&(f=u.length);for(var d=0,_=new Array(f);d<f;d++)_[d]=u[d];return _}function _nonIterableSpread(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var version$2="1.14.0";function userAgent(u){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(u)}var IE11OrLess=userAgent(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Edge=userAgent(/Edge/i),FireFox=userAgent(/firefox/i),Safari=userAgent(/safari/i)&&!userAgent(/chrome/i)&&!userAgent(/android/i),IOS=userAgent(/iP(ad|od|hone)/i),ChromeForAndroid=userAgent(/chrome/i)&&userAgent(/android/i),captureMode={capture:!1,passive:!1};function on$1(u,f,d){u.addEventListener(f,d,!IE11OrLess&&captureMode)}function off(u,f,d){u.removeEventListener(f,d,!IE11OrLess&&captureMode)}function matches(u,f){if(f){if(f[0]===">"&&(f=f.substring(1)),u)try{if(u.matches)return u.matches(f);if(u.msMatchesSelector)return u.msMatchesSelector(f);if(u.webkitMatchesSelector)return u.webkitMatchesSelector(f)}catch{return!1}return!1}}function getParentOrHost(u){return u.host&&u!==document&&u.host.nodeType?u.host:u.parentNode}function closest(u,f,d,_){if(u){d=d||document;do{if(f!=null&&(f[0]===">"?u.parentNode===d&&matches(u,f):matches(u,f))||_&&u===d)return u;if(u===d)break}while(u=getParentOrHost(u))}return null}var R_SPACE=/\s+/g;function toggleClass(u,f,d){if(u&&f)if(u.classList)u.classList[d?"add":"remove"](f);else{var _=(" "+u.className+" ").replace(R_SPACE," ").replace(" "+f+" "," ");u.className=(_+(d?" "+f:"")).replace(R_SPACE," ")}}function css(u,f,d){var _=u&&u.style;if(_){if(d===void 0)return document.defaultView&&document.defaultView.getComputedStyle?d=document.defaultView.getComputedStyle(u,""):u.currentStyle&&(d=u.currentStyle),f===void 0?d:d[f];!(f in _)&&f.indexOf("webkit")===-1&&(f="-webkit-"+f),_[f]=d+(typeof d=="string"?"":"px")}}function matrix(u,f){var d="";if(typeof u=="string")d=u;else do{var _=css(u,"transform");_&&_!=="none"&&(d=_+" "+d)}while(!f&&(u=u.parentNode));var x=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return x&&new x(d)}function find(u,f,d){if(u){var _=u.getElementsByTagName(f),x=0,I=_.length;if(d)for(;x<I;x++)d(_[x],x);return _}return[]}function getWindowScrollingElement(){var u=document.scrollingElement;return u||document.documentElement}function getRect(u,f,d,_,x){if(!(!u.getBoundingClientRect&&u!==window)){var I,E,M,S,A,T,D;if(u!==window&&u.parentNode&&u!==getWindowScrollingElement()?(I=u.getBoundingClientRect(),E=I.top,M=I.left,S=I.bottom,A=I.right,T=I.height,D=I.width):(E=0,M=0,S=window.innerHeight,A=window.innerWidth,T=window.innerHeight,D=window.innerWidth),(f||d)&&u!==window&&(x=x||u.parentNode,!IE11OrLess))do if(x&&x.getBoundingClientRect&&(css(x,"transform")!=="none"||d&&css(x,"position")!=="static")){var O=x.getBoundingClientRect();E-=O.top+parseInt(css(x,"border-top-width")),M-=O.left+parseInt(css(x,"border-left-width")),S=E+I.height,A=M+I.width;break}while(x=x.parentNode);if(_&&u!==window){var j=matrix(x||u),$=j&&j.a,W=j&&j.d;j&&(E/=W,M/=$,D/=$,T/=W,S=E+T,A=M+D)}return{top:E,left:M,bottom:S,right:A,width:D,height:T}}}function isScrolledPast(u,f,d){for(var _=getParentAutoScrollElement(u,!0),x=getRect(u)[f];_;){var I=getRect(_)[d],E=void 0;if(d==="top"||d==="left"?E=x>=I:E=x<=I,!E)return _;if(_===getWindowScrollingElement())break;_=getParentAutoScrollElement(_,!1)}return!1}function getChild(u,f,d,_){for(var x=0,I=0,E=u.children;I<E.length;){if(E[I].style.display!=="none"&&E[I]!==Sortable.ghost&&(_||E[I]!==Sortable.dragged)&&closest(E[I],d.draggable,u,!1)){if(x===f)return E[I];x++}I++}return null}function lastChild(u,f){for(var d=u.lastElementChild;d&&(d===Sortable.ghost||css(d,"display")==="none"||f&&!matches(d,f));)d=d.previousElementSibling;return d||null}function index(u,f){var d=0;if(!u||!u.parentNode)return-1;for(;u=u.previousElementSibling;)u.nodeName.toUpperCase()!=="TEMPLATE"&&u!==Sortable.clone&&(!f||matches(u,f))&&d++;return d}function getRelativeScrollOffset(u){var f=0,d=0,_=getWindowScrollingElement();if(u)do{var x=matrix(u),I=x.a,E=x.d;f+=u.scrollLeft*I,d+=u.scrollTop*E}while(u!==_&&(u=u.parentNode));return[f,d]}function indexOfObject(u,f){for(var d in u)if(u.hasOwnProperty(d)){for(var _ in f)if(f.hasOwnProperty(_)&&f[_]===u[d][_])return Number(d)}return-1}function getParentAutoScrollElement(u,f){if(!u||!u.getBoundingClientRect)return getWindowScrollingElement();var d=u,_=!1;do if(d.clientWidth<d.scrollWidth||d.clientHeight<d.scrollHeight){var x=css(d);if(d.clientWidth<d.scrollWidth&&(x.overflowX=="auto"||x.overflowX=="scroll")||d.clientHeight<d.scrollHeight&&(x.overflowY=="auto"||x.overflowY=="scroll")){if(!d.getBoundingClientRect||d===document.body)return getWindowScrollingElement();if(_||f)return d;_=!0}}while(d=d.parentNode);return getWindowScrollingElement()}function extend$1(u,f){if(u&&f)for(var d in f)f.hasOwnProperty(d)&&(u[d]=f[d]);return u}function isRectEqual(u,f){return Math.round(u.top)===Math.round(f.top)&&Math.round(u.left)===Math.round(f.left)&&Math.round(u.height)===Math.round(f.height)&&Math.round(u.width)===Math.round(f.width)}var _throttleTimeout;function throttle(u,f){return function(){if(!_throttleTimeout){var d=arguments,_=this;d.length===1?u.call(_,d[0]):u.apply(_,d),_throttleTimeout=setTimeout(function(){_throttleTimeout=void 0},f)}}}function cancelThrottle(){clearTimeout(_throttleTimeout),_throttleTimeout=void 0}function scrollBy(u,f,d){u.scrollLeft+=f,u.scrollTop+=d}function clone(u){var f=window.Polymer,d=window.jQuery||window.Zepto;return f&&f.dom?f.dom(u).cloneNode(!0):d?d(u).clone(!0)[0]:u.cloneNode(!0)}function setRect(u,f){css(u,"position","absolute"),css(u,"top",f.top),css(u,"left",f.left),css(u,"width",f.width),css(u,"height",f.height)}function unsetRect(u){css(u,"position",""),css(u,"top",""),css(u,"left",""),css(u,"width",""),css(u,"height","")}var expando="Sortable"+new Date().getTime();function AnimationStateManager(){var u=[],f;return{captureAnimationState:function(){if(u=[],!!this.options.animation){var _=[].slice.call(this.el.children);_.forEach(function(x){if(!(css(x,"display")==="none"||x===Sortable.ghost)){u.push({target:x,rect:getRect(x)});var I=_objectSpread2({},u[u.length-1].rect);if(x.thisAnimationDuration){var E=matrix(x,!0);E&&(I.top-=E.f,I.left-=E.e)}x.fromRect=I}})}},addAnimationState:function(_){u.push(_)},removeAnimationState:function(_){u.splice(indexOfObject(u,{target:_}),1)},animateAll:function(_){var x=this;if(!this.options.animation){clearTimeout(f),typeof _=="function"&&_();return}var I=!1,E=0;u.forEach(function(M){var S=0,A=M.target,T=A.fromRect,D=getRect(A),O=A.prevFromRect,j=A.prevToRect,$=M.rect,W=matrix(A,!0);W&&(D.top-=W.f,D.left-=W.e),A.toRect=D,A.thisAnimationDuration&&isRectEqual(O,D)&&!isRectEqual(T,D)&&($.top-D.top)/($.left-D.left)===(T.top-D.top)/(T.left-D.left)&&(S=calculateRealTime($,O,j,x.options)),isRectEqual(D,T)||(A.prevFromRect=T,A.prevToRect=D,S||(S=x.options.animation),x.animate(A,$,D,S)),S&&(I=!0,E=Math.max(E,S),clearTimeout(A.animationResetTimer),A.animationResetTimer=setTimeout(function(){A.animationTime=0,A.prevFromRect=null,A.fromRect=null,A.prevToRect=null,A.thisAnimationDuration=null},S),A.thisAnimationDuration=S)}),clearTimeout(f),I?f=setTimeout(function(){typeof _=="function"&&_()},E):typeof _=="function"&&_(),u=[]},animate:function(_,x,I,E){if(E){css(_,"transition",""),css(_,"transform","");var M=matrix(this.el),S=M&&M.a,A=M&&M.d,T=(x.left-I.left)/(S||1),D=(x.top-I.top)/(A||1);_.animatingX=!!T,_.animatingY=!!D,css(_,"transform","translate3d("+T+"px,"+D+"px,0)"),this.forRepaintDummy=repaint(_),css(_,"transition","transform "+E+"ms"+(this.options.easing?" "+this.options.easing:"")),css(_,"transform","translate3d(0,0,0)"),typeof _.animated=="number"&&clearTimeout(_.animated),_.animated=setTimeout(function(){css(_,"transition",""),css(_,"transform",""),_.animated=!1,_.animatingX=!1,_.animatingY=!1},E)}}}}function repaint(u){return u.offsetWidth}function calculateRealTime(u,f,d,_){return Math.sqrt(Math.pow(f.top-u.top,2)+Math.pow(f.left-u.left,2))/Math.sqrt(Math.pow(f.top-d.top,2)+Math.pow(f.left-d.left,2))*_.animation}var plugins=[],defaults={initializeByDefault:!0},PluginManager={mount:function u(f){for(var d in defaults)defaults.hasOwnProperty(d)&&!(d in f)&&(f[d]=defaults[d]);plugins.forEach(function(_){if(_.pluginName===f.pluginName)throw"Sortable: Cannot mount plugin ".concat(f.pluginName," more than once")}),plugins.push(f)},pluginEvent:function u(f,d,_){var x=this;this.eventCanceled=!1,_.cancel=function(){x.eventCanceled=!0};var I=f+"Global";plugins.forEach(function(E){d[E.pluginName]&&(d[E.pluginName][I]&&d[E.pluginName][I](_objectSpread2({sortable:d},_)),d.options[E.pluginName]&&d[E.pluginName][f]&&d[E.pluginName][f](_objectSpread2({sortable:d},_)))})},initializePlugins:function u(f,d,_,x){plugins.forEach(function(M){var S=M.pluginName;if(!(!f.options[S]&&!M.initializeByDefault)){var A=new M(f,d,f.options);A.sortable=f,A.options=f.options,f[S]=A,_extends(_,A.defaults)}});for(var I in f.options)if(f.options.hasOwnProperty(I)){var E=this.modifyOption(f,I,f.options[I]);typeof E<"u"&&(f.options[I]=E)}},getEventProperties:function u(f,d){var _={};return plugins.forEach(function(x){typeof x.eventProperties=="function"&&_extends(_,x.eventProperties.call(d[x.pluginName],f))}),_},modifyOption:function u(f,d,_){var x;return plugins.forEach(function(I){f[I.pluginName]&&I.optionListeners&&typeof I.optionListeners[d]=="function"&&(x=I.optionListeners[d].call(f[I.pluginName],_))}),x}};function dispatchEvent(u){var f=u.sortable,d=u.rootEl,_=u.name,x=u.targetEl,I=u.cloneEl,E=u.toEl,M=u.fromEl,S=u.oldIndex,A=u.newIndex,T=u.oldDraggableIndex,D=u.newDraggableIndex,O=u.originalEvent,j=u.putSortable,$=u.extraEventProperties;if(f=f||d&&d[expando],!!f){var W,Q=f.options,X="on"+_.charAt(0).toUpperCase()+_.substr(1);window.CustomEvent&&!IE11OrLess&&!Edge?W=new CustomEvent(_,{bubbles:!0,cancelable:!0}):(W=document.createEvent("Event"),W.initEvent(_,!0,!0)),W.to=E||d,W.from=M||d,W.item=x||d,W.clone=I,W.oldIndex=S,W.newIndex=A,W.oldDraggableIndex=T,W.newDraggableIndex=D,W.originalEvent=O,W.pullMode=j?j.lastPutMode:void 0;var Y=_objectSpread2(_objectSpread2({},$),PluginManager.getEventProperties(_,f));for(var ie in Y)W[ie]=Y[ie];d&&d.dispatchEvent(W),Q[X]&&Q[X].call(f,W)}}var _excluded=["evt"],pluginEvent=function u(f,d){var _=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},x=_.evt,I=_objectWithoutProperties(_,_excluded);PluginManager.pluginEvent.bind(Sortable)(f,d,_objectSpread2({dragEl,parentEl,ghostEl,rootEl,nextEl,lastDownEl,cloneEl,cloneHidden,dragStarted:moved,putSortable,activeSortable:Sortable.active,originalEvent:x,oldIndex,oldDraggableIndex,newIndex,newDraggableIndex,hideGhostForTarget:_hideGhostForTarget,unhideGhostForTarget:_unhideGhostForTarget,cloneNowHidden:function(){cloneHidden=!0},cloneNowShown:function(){cloneHidden=!1},dispatchSortableEvent:function(M){_dispatchEvent({sortable:d,name:M,originalEvent:x})}},I))};function _dispatchEvent(u){dispatchEvent(_objectSpread2({putSortable,cloneEl,targetEl:dragEl,rootEl,oldIndex,oldDraggableIndex,newIndex,newDraggableIndex},u))}var dragEl,parentEl,ghostEl,rootEl,nextEl,lastDownEl,cloneEl,cloneHidden,oldIndex,newIndex,oldDraggableIndex,newDraggableIndex,activeGroup,putSortable,awaitingDragStarted=!1,ignoreNextClick=!1,sortables=[],tapEvt,touchEvt,lastDx,lastDy,tapDistanceLeft,tapDistanceTop,moved,lastTarget,lastDirection,pastFirstInvertThresh=!1,isCircumstantialInvert=!1,targetMoveDistance,ghostRelativeParent,ghostRelativeParentInitialScroll=[],_silent=!1,savedInputChecked=[],documentExists=typeof document<"u",PositionGhostAbsolutely=IOS,CSSFloatProperty=Edge||IE11OrLess?"cssFloat":"float",supportDraggable=documentExists&&!ChromeForAndroid&&!IOS&&"draggable"in document.createElement("div"),supportCssPointerEvents=function(){if(documentExists){if(IE11OrLess)return!1;var u=document.createElement("x");return u.style.cssText="pointer-events:auto",u.style.pointerEvents==="auto"}}(),_detectDirection=function u(f,d){var _=css(f),x=parseInt(_.width)-parseInt(_.paddingLeft)-parseInt(_.paddingRight)-parseInt(_.borderLeftWidth)-parseInt(_.borderRightWidth),I=getChild(f,0,d),E=getChild(f,1,d),M=I&&css(I),S=E&&css(E),A=M&&parseInt(M.marginLeft)+parseInt(M.marginRight)+getRect(I).width,T=S&&parseInt(S.marginLeft)+parseInt(S.marginRight)+getRect(E).width;if(_.display==="flex")return _.flexDirection==="column"||_.flexDirection==="column-reverse"?"vertical":"horizontal";if(_.display==="grid")return _.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(I&&M.float&&M.float!=="none"){var D=M.float==="left"?"left":"right";return E&&(S.clear==="both"||S.clear===D)?"vertical":"horizontal"}return I&&(M.display==="block"||M.display==="flex"||M.display==="table"||M.display==="grid"||A>=x&&_[CSSFloatProperty]==="none"||E&&_[CSSFloatProperty]==="none"&&A+T>x)?"vertical":"horizontal"},_dragElInRowColumn=function u(f,d,_){var x=_?f.left:f.top,I=_?f.right:f.bottom,E=_?f.width:f.height,M=_?d.left:d.top,S=_?d.right:d.bottom,A=_?d.width:d.height;return x===M||I===S||x+E/2===M+A/2},_detectNearestEmptySortable=function u(f,d){var _;return sortables.some(function(x){var I=x[expando].options.emptyInsertThreshold;if(!(!I||lastChild(x))){var E=getRect(x),M=f>=E.left-I&&f<=E.right+I,S=d>=E.top-I&&d<=E.bottom+I;if(M&&S)return _=x}}),_},_prepareGroup=function u(f){function d(I,E){return function(M,S,A,T){var D=M.options.group.name&&S.options.group.name&&M.options.group.name===S.options.group.name;if(I==null&&(E||D))return!0;if(I==null||I===!1)return!1;if(E&&I==="clone")return I;if(typeof I=="function")return d(I(M,S,A,T),E)(M,S,A,T);var O=(E?M:S).options.group.name;return I===!0||typeof I=="string"&&I===O||I.join&&I.indexOf(O)>-1}}var _={},x=f.group;(!x||_typeof(x)!="object")&&(x={name:x}),_.name=x.name,_.checkPull=d(x.pull,!0),_.checkPut=d(x.put),_.revertClone=x.revertClone,f.group=_},_hideGhostForTarget=function u(){!supportCssPointerEvents&&ghostEl&&css(ghostEl,"display","none")},_unhideGhostForTarget=function u(){!supportCssPointerEvents&&ghostEl&&css(ghostEl,"display","")};documentExists&&document.addEventListener("click",function(u){if(ignoreNextClick)return u.preventDefault(),u.stopPropagation&&u.stopPropagation(),u.stopImmediatePropagation&&u.stopImmediatePropagation(),ignoreNextClick=!1,!1},!0);var nearestEmptyInsertDetectEvent=function u(f){if(dragEl){f=f.touches?f.touches[0]:f;var d=_detectNearestEmptySortable(f.clientX,f.clientY);if(d){var _={};for(var x in f)f.hasOwnProperty(x)&&(_[x]=f[x]);_.target=_.rootEl=d,_.preventDefault=void 0,_.stopPropagation=void 0,d[expando]._onDragOver(_)}}},_checkOutsideTargetEl=function u(f){dragEl&&dragEl.parentNode[expando]._isOutsideThisEl(f.target)};function Sortable(u,f){if(!(u&&u.nodeType&&u.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(u));this.el=u,this.options=f=_extends({},f),u[expando]=this;var d={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(u.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return _detectDirection(u,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(E,M){E.setData("Text",M.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:Sortable.supportPointer!==!1&&"PointerEvent"in window&&!Safari,emptyInsertThreshold:5};PluginManager.initializePlugins(this,u,d);for(var _ in d)!(_ in f)&&(f[_]=d[_]);_prepareGroup(f);for(var x in this)x.charAt(0)==="_"&&typeof this[x]=="function"&&(this[x]=this[x].bind(this));this.nativeDraggable=f.forceFallback?!1:supportDraggable,this.nativeDraggable&&(this.options.touchStartThreshold=1),f.supportPointer?on$1(u,"pointerdown",this._onTapStart):(on$1(u,"mousedown",this._onTapStart),on$1(u,"touchstart",this._onTapStart)),this.nativeDraggable&&(on$1(u,"dragover",this),on$1(u,"dragenter",this)),sortables.push(this.el),f.store&&f.store.get&&this.sort(f.store.get(this)||[]),_extends(this,AnimationStateManager())}Sortable.prototype={constructor:Sortable,_isOutsideThisEl:function u(f){!this.el.contains(f)&&f!==this.el&&(lastTarget=null)},_getDirection:function u(f,d){return typeof this.options.direction=="function"?this.options.direction.call(this,f,d,dragEl):this.options.direction},_onTapStart:function u(f){if(f.cancelable){var d=this,_=this.el,x=this.options,I=x.preventOnFilter,E=f.type,M=f.touches&&f.touches[0]||f.pointerType&&f.pointerType==="touch"&&f,S=(M||f).target,A=f.target.shadowRoot&&(f.path&&f.path[0]||f.composedPath&&f.composedPath()[0])||S,T=x.filter;if(_saveInputCheckedState(_),!dragEl&&!(/mousedown|pointerdown/.test(E)&&f.button!==0||x.disabled)&&!A.isContentEditable&&!(!this.nativeDraggable&&Safari&&S&&S.tagName.toUpperCase()==="SELECT")&&(S=closest(S,x.draggable,_,!1),!(S&&S.animated)&&lastDownEl!==S)){if(oldIndex=index(S),oldDraggableIndex=index(S,x.draggable),typeof T=="function"){if(T.call(this,f,S,this)){_dispatchEvent({sortable:d,rootEl:A,name:"filter",targetEl:S,toEl:_,fromEl:_}),pluginEvent("filter",d,{evt:f}),I&&f.cancelable&&f.preventDefault();return}}else if(T&&(T=T.split(",").some(function(D){if(D=closest(A,D.trim(),_,!1),D)return _dispatchEvent({sortable:d,rootEl:D,name:"filter",targetEl:S,fromEl:_,toEl:_}),pluginEvent("filter",d,{evt:f}),!0}),T)){I&&f.cancelable&&f.preventDefault();return}x.handle&&!closest(A,x.handle,_,!1)||this._prepareDragStart(f,M,S)}}},_prepareDragStart:function u(f,d,_){var x=this,I=x.el,E=x.options,M=I.ownerDocument,S;if(_&&!dragEl&&_.parentNode===I){var A=getRect(_);if(rootEl=I,dragEl=_,parentEl=dragEl.parentNode,nextEl=dragEl.nextSibling,lastDownEl=_,activeGroup=E.group,Sortable.dragged=dragEl,tapEvt={target:dragEl,clientX:(d||f).clientX,clientY:(d||f).clientY},tapDistanceLeft=tapEvt.clientX-A.left,tapDistanceTop=tapEvt.clientY-A.top,this._lastX=(d||f).clientX,this._lastY=(d||f).clientY,dragEl.style["will-change"]="all",S=function(){if(pluginEvent("delayEnded",x,{evt:f}),Sortable.eventCanceled){x._onDrop();return}x._disableDelayedDragEvents(),!FireFox&&x.nativeDraggable&&(dragEl.draggable=!0),x._triggerDragStart(f,d),_dispatchEvent({sortable:x,name:"choose",originalEvent:f}),toggleClass(dragEl,E.chosenClass,!0)},E.ignore.split(",").forEach(function(T){find(dragEl,T.trim(),_disableDraggable)}),on$1(M,"dragover",nearestEmptyInsertDetectEvent),on$1(M,"mousemove",nearestEmptyInsertDetectEvent),on$1(M,"touchmove",nearestEmptyInsertDetectEvent),on$1(M,"mouseup",x._onDrop),on$1(M,"touchend",x._onDrop),on$1(M,"touchcancel",x._onDrop),FireFox&&this.nativeDraggable&&(this.options.touchStartThreshold=4,dragEl.draggable=!0),pluginEvent("delayStart",this,{evt:f}),E.delay&&(!E.delayOnTouchOnly||d)&&(!this.nativeDraggable||!(Edge||IE11OrLess))){if(Sortable.eventCanceled){this._onDrop();return}on$1(M,"mouseup",x._disableDelayedDrag),on$1(M,"touchend",x._disableDelayedDrag),on$1(M,"touchcancel",x._disableDelayedDrag),on$1(M,"mousemove",x._delayedDragTouchMoveHandler),on$1(M,"touchmove",x._delayedDragTouchMoveHandler),E.supportPointer&&on$1(M,"pointermove",x._delayedDragTouchMoveHandler),x._dragStartTimer=setTimeout(S,E.delay)}else S()}},_delayedDragTouchMoveHandler:function u(f){var d=f.touches?f.touches[0]:f;Math.max(Math.abs(d.clientX-this._lastX),Math.abs(d.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function u(){dragEl&&_disableDraggable(dragEl),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function u(){var f=this.el.ownerDocument;off(f,"mouseup",this._disableDelayedDrag),off(f,"touchend",this._disableDelayedDrag),off(f,"touchcancel",this._disableDelayedDrag),off(f,"mousemove",this._delayedDragTouchMoveHandler),off(f,"touchmove",this._delayedDragTouchMoveHandler),off(f,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function u(f,d){d=d||f.pointerType=="touch"&&f,!this.nativeDraggable||d?this.options.supportPointer?on$1(document,"pointermove",this._onTouchMove):d?on$1(document,"touchmove",this._onTouchMove):on$1(document,"mousemove",this._onTouchMove):(on$1(dragEl,"dragend",this),on$1(rootEl,"dragstart",this._onDragStart));try{document.selection?_nextTick(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function u(f,d){if(awaitingDragStarted=!1,rootEl&&dragEl){pluginEvent("dragStarted",this,{evt:d}),this.nativeDraggable&&on$1(document,"dragover",_checkOutsideTargetEl);var _=this.options;!f&&toggleClass(dragEl,_.dragClass,!1),toggleClass(dragEl,_.ghostClass,!0),Sortable.active=this,f&&this._appendGhost(),_dispatchEvent({sortable:this,name:"start",originalEvent:d})}else this._nulling()},_emulateDragOver:function u(){if(touchEvt){this._lastX=touchEvt.clientX,this._lastY=touchEvt.clientY,_hideGhostForTarget();for(var f=document.elementFromPoint(touchEvt.clientX,touchEvt.clientY),d=f;f&&f.shadowRoot&&(f=f.shadowRoot.elementFromPoint(touchEvt.clientX,touchEvt.clientY),f!==d);)d=f;if(dragEl.parentNode[expando]._isOutsideThisEl(f),d)do{if(d[expando]){var _=void 0;if(_=d[expando]._onDragOver({clientX:touchEvt.clientX,clientY:touchEvt.clientY,target:f,rootEl:d}),_&&!this.options.dragoverBubble)break}f=d}while(d=d.parentNode);_unhideGhostForTarget()}},_onTouchMove:function u(f){if(tapEvt){var d=this.options,_=d.fallbackTolerance,x=d.fallbackOffset,I=f.touches?f.touches[0]:f,E=ghostEl&&matrix(ghostEl,!0),M=ghostEl&&E&&E.a,S=ghostEl&&E&&E.d,A=PositionGhostAbsolutely&&ghostRelativeParent&&getRelativeScrollOffset(ghostRelativeParent),T=(I.clientX-tapEvt.clientX+x.x)/(M||1)+(A?A[0]-ghostRelativeParentInitialScroll[0]:0)/(M||1),D=(I.clientY-tapEvt.clientY+x.y)/(S||1)+(A?A[1]-ghostRelativeParentInitialScroll[1]:0)/(S||1);if(!Sortable.active&&!awaitingDragStarted){if(_&&Math.max(Math.abs(I.clientX-this._lastX),Math.abs(I.clientY-this._lastY))<_)return;this._onDragStart(f,!0)}if(ghostEl){E?(E.e+=T-(lastDx||0),E.f+=D-(lastDy||0)):E={a:1,b:0,c:0,d:1,e:T,f:D};var O="matrix(".concat(E.a,",").concat(E.b,",").concat(E.c,",").concat(E.d,",").concat(E.e,",").concat(E.f,")");css(ghostEl,"webkitTransform",O),css(ghostEl,"mozTransform",O),css(ghostEl,"msTransform",O),css(ghostEl,"transform",O),lastDx=T,lastDy=D,touchEvt=I}f.cancelable&&f.preventDefault()}},_appendGhost:function u(){if(!ghostEl){var f=this.options.fallbackOnBody?document.body:rootEl,d=getRect(dragEl,!0,PositionGhostAbsolutely,!0,f),_=this.options;if(PositionGhostAbsolutely){for(ghostRelativeParent=f;css(ghostRelativeParent,"position")==="static"&&css(ghostRelativeParent,"transform")==="none"&&ghostRelativeParent!==document;)ghostRelativeParent=ghostRelativeParent.parentNode;ghostRelativeParent!==document.body&&ghostRelativeParent!==document.documentElement?(ghostRelativeParent===document&&(ghostRelativeParent=getWindowScrollingElement()),d.top+=ghostRelativeParent.scrollTop,d.left+=ghostRelativeParent.scrollLeft):ghostRelativeParent=getWindowScrollingElement(),ghostRelativeParentInitialScroll=getRelativeScrollOffset(ghostRelativeParent)}ghostEl=dragEl.cloneNode(!0),toggleClass(ghostEl,_.ghostClass,!1),toggleClass(ghostEl,_.fallbackClass,!0),toggleClass(ghostEl,_.dragClass,!0),css(ghostEl,"transition",""),css(ghostEl,"transform",""),css(ghostEl,"box-sizing","border-box"),css(ghostEl,"margin",0),css(ghostEl,"top",d.top),css(ghostEl,"left",d.left),css(ghostEl,"width",d.width),css(ghostEl,"height",d.height),css(ghostEl,"opacity","0.8"),css(ghostEl,"position",PositionGhostAbsolutely?"absolute":"fixed"),css(ghostEl,"zIndex","100000"),css(ghostEl,"pointerEvents","none"),Sortable.ghost=ghostEl,f.appendChild(ghostEl),css(ghostEl,"transform-origin",tapDistanceLeft/parseInt(ghostEl.style.width)*100+"% "+tapDistanceTop/parseInt(ghostEl.style.height)*100+"%")}},_onDragStart:function u(f,d){var _=this,x=f.dataTransfer,I=_.options;if(pluginEvent("dragStart",this,{evt:f}),Sortable.eventCanceled){this._onDrop();return}pluginEvent("setupClone",this),Sortable.eventCanceled||(cloneEl=clone(dragEl),cloneEl.draggable=!1,cloneEl.style["will-change"]="",this._hideClone(),toggleClass(cloneEl,this.options.chosenClass,!1),Sortable.clone=cloneEl),_.cloneId=_nextTick(function(){pluginEvent("clone",_),!Sortable.eventCanceled&&(_.options.removeCloneOnHide||rootEl.insertBefore(cloneEl,dragEl),_._hideClone(),_dispatchEvent({sortable:_,name:"clone"}))}),!d&&toggleClass(dragEl,I.dragClass,!0),d?(ignoreNextClick=!0,_._loopId=setInterval(_._emulateDragOver,50)):(off(document,"mouseup",_._onDrop),off(document,"touchend",_._onDrop),off(document,"touchcancel",_._onDrop),x&&(x.effectAllowed="move",I.setData&&I.setData.call(_,x,dragEl)),on$1(document,"drop",_),css(dragEl,"transform","translateZ(0)")),awaitingDragStarted=!0,_._dragStartId=_nextTick(_._dragStarted.bind(_,d,f)),on$1(document,"selectstart",_),moved=!0,Safari&&css(document.body,"user-select","none")},_onDragOver:function u(f){var d=this.el,_=f.target,x,I,E,M=this.options,S=M.group,A=Sortable.active,T=activeGroup===S,D=M.sort,O=putSortable||A,j,$=this,W=!1;if(_silent)return;function Q(H,q){pluginEvent(H,$,_objectSpread2({evt:f,isOwner:T,axis:j?"vertical":"horizontal",revert:E,dragRect:x,targetRect:I,canSort:D,fromSortable:O,target:_,completed:Y,onMove:function(U,Z){return _onMove(rootEl,d,dragEl,x,U,getRect(U),f,Z)},changed:ie},q))}function X(){Q("dragOverAnimationCapture"),$.captureAnimationState(),$!==O&&O.captureAnimationState()}function Y(H){return Q("dragOverCompleted",{insertion:H}),H&&(T?A._hideClone():A._showClone($),$!==O&&(toggleClass(dragEl,putSortable?putSortable.options.ghostClass:A.options.ghostClass,!1),toggleClass(dragEl,M.ghostClass,!0)),putSortable!==$&&$!==Sortable.active?putSortable=$:$===Sortable.active&&putSortable&&(putSortable=null),O===$&&($._ignoreWhileAnimating=_),$.animateAll(function(){Q("dragOverAnimationComplete"),$._ignoreWhileAnimating=null}),$!==O&&(O.animateAll(),O._ignoreWhileAnimating=null)),(_===dragEl&&!dragEl.animated||_===d&&!_.animated)&&(lastTarget=null),!M.dragoverBubble&&!f.rootEl&&_!==document&&(dragEl.parentNode[expando]._isOutsideThisEl(f.target),!H&&nearestEmptyInsertDetectEvent(f)),!M.dragoverBubble&&f.stopPropagation&&f.stopPropagation(),W=!0}function ie(){newIndex=index(dragEl),newDraggableIndex=index(dragEl,M.draggable),_dispatchEvent({sortable:$,name:"change",toEl:d,newIndex,newDraggableIndex,originalEvent:f})}if(f.preventDefault!==void 0&&f.cancelable&&f.preventDefault(),_=closest(_,M.draggable,d,!0),Q("dragOver"),Sortable.eventCanceled)return W;if(dragEl.contains(f.target)||_.animated&&_.animatingX&&_.animatingY||$._ignoreWhileAnimating===_)return Y(!1);if(ignoreNextClick=!1,A&&!M.disabled&&(T?D||(E=parentEl!==rootEl):putSortable===this||(this.lastPutMode=activeGroup.checkPull(this,A,dragEl,f))&&S.checkPut(this,A,dragEl,f))){if(j=this._getDirection(f,_)==="vertical",x=getRect(dragEl),Q("dragOverValid"),Sortable.eventCanceled)return W;if(E)return parentEl=rootEl,X(),this._hideClone(),Q("revert"),Sortable.eventCanceled||(nextEl?rootEl.insertBefore(dragEl,nextEl):rootEl.appendChild(dragEl)),Y(!0);var oe=lastChild(d,M.draggable);if(!oe||_ghostIsLast(f,j,this)&&!oe.animated){if(oe===dragEl)return Y(!1);if(oe&&d===f.target&&(_=oe),_&&(I=getRect(_)),_onMove(rootEl,d,dragEl,x,_,I,f,!!_)!==!1)return X(),d.appendChild(dragEl),parentEl=d,ie(),Y(!0)}else if(oe&&_ghostIsFirst(f,j,this)){var ge=getChild(d,0,M,!0);if(ge===dragEl)return Y(!1);if(_=ge,I=getRect(_),_onMove(rootEl,d,dragEl,x,_,I,f,!1)!==!1)return X(),d.insertBefore(dragEl,ge),parentEl=d,ie(),Y(!0)}else if(_.parentNode===d){I=getRect(_);var be=0,ze,de=dragEl.parentNode!==d,Ce=!_dragElInRowColumn(dragEl.animated&&dragEl.toRect||x,_.animated&&_.toRect||I,j),ke=j?"top":"left",le=isScrolledPast(_,"top","top")||isScrolledPast(dragEl,"top","top"),re=le?le.scrollTop:void 0;lastTarget!==_&&(ze=I[ke],pastFirstInvertThresh=!1,isCircumstantialInvert=!Ce&&M.invertSwap||de),be=_getSwapDirection(f,_,I,j,Ce?1:M.swapThreshold,M.invertedSwapThreshold==null?M.swapThreshold:M.invertedSwapThreshold,isCircumstantialInvert,lastTarget===_);var P;if(be!==0){var k=index(dragEl);do k-=be,P=parentEl.children[k];while(P&&(css(P,"display")==="none"||P===ghostEl))}if(be===0||P===_)return Y(!1);lastTarget=_,lastDirection=be;var B=_.nextElementSibling,z=!1;z=be===1;var ee=_onMove(rootEl,d,dragEl,x,_,I,f,z);if(ee!==!1)return(ee===1||ee===-1)&&(z=ee===1),_silent=!0,setTimeout(_unsilent,30),X(),z&&!B?d.appendChild(dragEl):_.parentNode.insertBefore(dragEl,z?B:_),le&&scrollBy(le,0,re-le.scrollTop),parentEl=dragEl.parentNode,ze!==void 0&&!isCircumstantialInvert&&(targetMoveDistance=Math.abs(ze-getRect(_)[ke])),ie(),Y(!0)}if(d.contains(dragEl))return Y(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function u(){off(document,"mousemove",this._onTouchMove),off(document,"touchmove",this._onTouchMove),off(document,"pointermove",this._onTouchMove),off(document,"dragover",nearestEmptyInsertDetectEvent),off(document,"mousemove",nearestEmptyInsertDetectEvent),off(document,"touchmove",nearestEmptyInsertDetectEvent)},_offUpEvents:function u(){var f=this.el.ownerDocument;off(f,"mouseup",this._onDrop),off(f,"touchend",this._onDrop),off(f,"pointerup",this._onDrop),off(f,"touchcancel",this._onDrop),off(document,"selectstart",this)},_onDrop:function u(f){var d=this.el,_=this.options;if(newIndex=index(dragEl),newDraggableIndex=index(dragEl,_.draggable),pluginEvent("drop",this,{evt:f}),parentEl=dragEl&&dragEl.parentNode,newIndex=index(dragEl),newDraggableIndex=index(dragEl,_.draggable),Sortable.eventCanceled){this._nulling();return}awaitingDragStarted=!1,isCircumstantialInvert=!1,pastFirstInvertThresh=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),_cancelNextTick(this.cloneId),_cancelNextTick(this._dragStartId),this.nativeDraggable&&(off(document,"drop",this),off(d,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Safari&&css(document.body,"user-select",""),css(dragEl,"transform",""),f&&(moved&&(f.cancelable&&f.preventDefault(),!_.dropBubble&&f.stopPropagation()),ghostEl&&ghostEl.parentNode&&ghostEl.parentNode.removeChild(ghostEl),(rootEl===parentEl||putSortable&&putSortable.lastPutMode!=="clone")&&cloneEl&&cloneEl.parentNode&&cloneEl.parentNode.removeChild(cloneEl),dragEl&&(this.nativeDraggable&&off(dragEl,"dragend",this),_disableDraggable(dragEl),dragEl.style["will-change"]="",moved&&!awaitingDragStarted&&toggleClass(dragEl,putSortable?putSortable.options.ghostClass:this.options.ghostClass,!1),toggleClass(dragEl,this.options.chosenClass,!1),_dispatchEvent({sortable:this,name:"unchoose",toEl:parentEl,newIndex:null,newDraggableIndex:null,originalEvent:f}),rootEl!==parentEl?(newIndex>=0&&(_dispatchEvent({rootEl:parentEl,name:"add",toEl:parentEl,fromEl:rootEl,originalEvent:f}),_dispatchEvent({sortable:this,name:"remove",toEl:parentEl,originalEvent:f}),_dispatchEvent({rootEl:parentEl,name:"sort",toEl:parentEl,fromEl:rootEl,originalEvent:f}),_dispatchEvent({sortable:this,name:"sort",toEl:parentEl,originalEvent:f})),putSortable&&putSortable.save()):newIndex!==oldIndex&&newIndex>=0&&(_dispatchEvent({sortable:this,name:"update",toEl:parentEl,originalEvent:f}),_dispatchEvent({sortable:this,name:"sort",toEl:parentEl,originalEvent:f})),Sortable.active&&((newIndex==null||newIndex===-1)&&(newIndex=oldIndex,newDraggableIndex=oldDraggableIndex),_dispatchEvent({sortable:this,name:"end",toEl:parentEl,originalEvent:f}),this.save()))),this._nulling()},_nulling:function u(){pluginEvent("nulling",this),rootEl=dragEl=parentEl=ghostEl=nextEl=cloneEl=lastDownEl=cloneHidden=tapEvt=touchEvt=moved=newIndex=newDraggableIndex=oldIndex=oldDraggableIndex=lastTarget=lastDirection=putSortable=activeGroup=Sortable.dragged=Sortable.ghost=Sortable.clone=Sortable.active=null,savedInputChecked.forEach(function(f){f.checked=!0}),savedInputChecked.length=lastDx=lastDy=0},handleEvent:function u(f){switch(f.type){case"drop":case"dragend":this._onDrop(f);break;case"dragenter":case"dragover":dragEl&&(this._onDragOver(f),_globalDragOver(f));break;case"selectstart":f.preventDefault();break}},toArray:function u(){for(var f=[],d,_=this.el.children,x=0,I=_.length,E=this.options;x<I;x++)d=_[x],closest(d,E.draggable,this.el,!1)&&f.push(d.getAttribute(E.dataIdAttr)||_generateId(d));return f},sort:function u(f,d){var _={},x=this.el;this.toArray().forEach(function(I,E){var M=x.children[E];closest(M,this.options.draggable,x,!1)&&(_[I]=M)},this),d&&this.captureAnimationState(),f.forEach(function(I){_[I]&&(x.removeChild(_[I]),x.appendChild(_[I]))}),d&&this.animateAll()},save:function u(){var f=this.options.store;f&&f.set&&f.set(this)},closest:function u(f,d){return closest(f,d||this.options.draggable,this.el,!1)},option:function u(f,d){var _=this.options;if(d===void 0)return _[f];var x=PluginManager.modifyOption(this,f,d);typeof x<"u"?_[f]=x:_[f]=d,f==="group"&&_prepareGroup(_)},destroy:function u(){pluginEvent("destroy",this);var f=this.el;f[expando]=null,off(f,"mousedown",this._onTapStart),off(f,"touchstart",this._onTapStart),off(f,"pointerdown",this._onTapStart),this.nativeDraggable&&(off(f,"dragover",this),off(f,"dragenter",this)),Array.prototype.forEach.call(f.querySelectorAll("[draggable]"),function(d){d.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),sortables.splice(sortables.indexOf(this.el),1),this.el=f=null},_hideClone:function u(){if(!cloneHidden){if(pluginEvent("hideClone",this),Sortable.eventCanceled)return;css(cloneEl,"display","none"),this.options.removeCloneOnHide&&cloneEl.parentNode&&cloneEl.parentNode.removeChild(cloneEl),cloneHidden=!0}},_showClone:function u(f){if(f.lastPutMode!=="clone"){this._hideClone();return}if(cloneHidden){if(pluginEvent("showClone",this),Sortable.eventCanceled)return;dragEl.parentNode==rootEl&&!this.options.group.revertClone?rootEl.insertBefore(cloneEl,dragEl):nextEl?rootEl.insertBefore(cloneEl,nextEl):rootEl.appendChild(cloneEl),this.options.group.revertClone&&this.animate(dragEl,cloneEl),css(cloneEl,"display",""),cloneHidden=!1}}};function _globalDragOver(u){u.dataTransfer&&(u.dataTransfer.dropEffect="move"),u.cancelable&&u.preventDefault()}function _onMove(u,f,d,_,x,I,E,M){var S,A=u[expando],T=A.options.onMove,D;return window.CustomEvent&&!IE11OrLess&&!Edge?S=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(S=document.createEvent("Event"),S.initEvent("move",!0,!0)),S.to=f,S.from=u,S.dragged=d,S.draggedRect=_,S.related=x||f,S.relatedRect=I||getRect(f),S.willInsertAfter=M,S.originalEvent=E,u.dispatchEvent(S),T&&(D=T.call(A,S,E)),D}function _disableDraggable(u){u.draggable=!1}function _unsilent(){_silent=!1}function _ghostIsFirst(u,f,d){var _=getRect(getChild(d.el,0,d.options,!0)),x=10;return f?u.clientX<_.left-x||u.clientY<_.top&&u.clientX<_.right:u.clientY<_.top-x||u.clientY<_.bottom&&u.clientX<_.left}function _ghostIsLast(u,f,d){var _=getRect(lastChild(d.el,d.options.draggable)),x=10;return f?u.clientX>_.right+x||u.clientX<=_.right&&u.clientY>_.bottom&&u.clientX>=_.left:u.clientX>_.right&&u.clientY>_.top||u.clientX<=_.right&&u.clientY>_.bottom+x}function _getSwapDirection(u,f,d,_,x,I,E,M){var S=_?u.clientY:u.clientX,A=_?d.height:d.width,T=_?d.top:d.left,D=_?d.bottom:d.right,O=!1;if(!E){if(M&&targetMoveDistance<A*x){if(!pastFirstInvertThresh&&(lastDirection===1?S>T+A*I/2:S<D-A*I/2)&&(pastFirstInvertThresh=!0),pastFirstInvertThresh)O=!0;else if(lastDirection===1?S<T+targetMoveDistance:S>D-targetMoveDistance)return-lastDirection}else if(S>T+A*(1-x)/2&&S<D-A*(1-x)/2)return _getInsertDirection(f)}return O=O||E,O&&(S<T+A*I/2||S>D-A*I/2)?S>T+A/2?1:-1:0}function _getInsertDirection(u){return index(dragEl)<index(u)?1:-1}function _generateId(u){for(var f=u.tagName+u.className+u.src+u.href+u.textContent,d=f.length,_=0;d--;)_+=f.charCodeAt(d);return _.toString(36)}function _saveInputCheckedState(u){savedInputChecked.length=0;for(var f=u.getElementsByTagName("input"),d=f.length;d--;){var _=f[d];_.checked&&savedInputChecked.push(_)}}function _nextTick(u){return setTimeout(u,0)}function _cancelNextTick(u){return clearTimeout(u)}documentExists&&on$1(document,"touchmove",function(u){(Sortable.active||awaitingDragStarted)&&u.cancelable&&u.preventDefault()});Sortable.utils={on:on$1,off,css,find,is:function u(f,d){return!!closest(f,d,f,!1)},extend:extend$1,throttle,closest,toggleClass,clone,index,nextTick:_nextTick,cancelNextTick:_cancelNextTick,detectDirection:_detectDirection,getChild};Sortable.get=function(u){return u[expando]};Sortable.mount=function(){for(var u=arguments.length,f=new Array(u),d=0;d<u;d++)f[d]=arguments[d];f[0].constructor===Array&&(f=f[0]),f.forEach(function(_){if(!_.prototype||!_.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(_));_.utils&&(Sortable.utils=_objectSpread2(_objectSpread2({},Sortable.utils),_.utils)),PluginManager.mount(_)})};Sortable.create=function(u,f){return new Sortable(u,f)};Sortable.version=version$2;var autoScrolls=[],scrollEl,scrollRootEl,scrolling=!1,lastAutoScrollX,lastAutoScrollY,touchEvt$1,pointerElemChangedInterval;function AutoScrollPlugin(){function u(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var f in this)f.charAt(0)==="_"&&typeof this[f]=="function"&&(this[f]=this[f].bind(this))}return u.prototype={dragStarted:function(d){var _=d.originalEvent;this.sortable.nativeDraggable?on$1(document,"dragover",this._handleAutoScroll):this.options.supportPointer?on$1(document,"pointermove",this._handleFallbackAutoScroll):_.touches?on$1(document,"touchmove",this._handleFallbackAutoScroll):on$1(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(d){var _=d.originalEvent;!this.options.dragOverBubble&&!_.rootEl&&this._handleAutoScroll(_)},drop:function(){this.sortable.nativeDraggable?off(document,"dragover",this._handleAutoScroll):(off(document,"pointermove",this._handleFallbackAutoScroll),off(document,"touchmove",this._handleFallbackAutoScroll),off(document,"mousemove",this._handleFallbackAutoScroll)),clearPointerElemChangedInterval(),clearAutoScrolls(),cancelThrottle()},nulling:function(){touchEvt$1=scrollRootEl=scrollEl=scrolling=pointerElemChangedInterval=lastAutoScrollX=lastAutoScrollY=null,autoScrolls.length=0},_handleFallbackAutoScroll:function(d){this._handleAutoScroll(d,!0)},_handleAutoScroll:function(d,_){var x=this,I=(d.touches?d.touches[0]:d).clientX,E=(d.touches?d.touches[0]:d).clientY,M=document.elementFromPoint(I,E);if(touchEvt$1=d,_||this.options.forceAutoScrollFallback||Edge||IE11OrLess||Safari){autoScroll(d,this.options,M,_);var S=getParentAutoScrollElement(M,!0);scrolling&&(!pointerElemChangedInterval||I!==lastAutoScrollX||E!==lastAutoScrollY)&&(pointerElemChangedInterval&&clearPointerElemChangedInterval(),pointerElemChangedInterval=setInterval(function(){var A=getParentAutoScrollElement(document.elementFromPoint(I,E),!0);A!==S&&(S=A,clearAutoScrolls()),autoScroll(d,x.options,A,_)},10),lastAutoScrollX=I,lastAutoScrollY=E)}else{if(!this.options.bubbleScroll||getParentAutoScrollElement(M,!0)===getWindowScrollingElement()){clearAutoScrolls();return}autoScroll(d,this.options,getParentAutoScrollElement(M,!1),!1)}}},_extends(u,{pluginName:"scroll",initializeByDefault:!0})}function clearAutoScrolls(){autoScrolls.forEach(function(u){clearInterval(u.pid)}),autoScrolls=[]}function clearPointerElemChangedInterval(){clearInterval(pointerElemChangedInterval)}var autoScroll=throttle(function(u,f,d,_){if(f.scroll){var x=(u.touches?u.touches[0]:u).clientX,I=(u.touches?u.touches[0]:u).clientY,E=f.scrollSensitivity,M=f.scrollSpeed,S=getWindowScrollingElement(),A=!1,T;scrollRootEl!==d&&(scrollRootEl=d,clearAutoScrolls(),scrollEl=f.scroll,T=f.scrollFn,scrollEl===!0&&(scrollEl=getParentAutoScrollElement(d,!0)));var D=0,O=scrollEl;do{var j=O,$=getRect(j),W=$.top,Q=$.bottom,X=$.left,Y=$.right,ie=$.width,oe=$.height,ge=void 0,be=void 0,ze=j.scrollWidth,de=j.scrollHeight,Ce=css(j),ke=j.scrollLeft,le=j.scrollTop;j===S?(ge=ie<ze&&(Ce.overflowX==="auto"||Ce.overflowX==="scroll"||Ce.overflowX==="visible"),be=oe<de&&(Ce.overflowY==="auto"||Ce.overflowY==="scroll"||Ce.overflowY==="visible")):(ge=ie<ze&&(Ce.overflowX==="auto"||Ce.overflowX==="scroll"),be=oe<de&&(Ce.overflowY==="auto"||Ce.overflowY==="scroll"));var re=ge&&(Math.abs(Y-x)<=E&&ke+ie<ze)-(Math.abs(X-x)<=E&&!!ke),P=be&&(Math.abs(Q-I)<=E&&le+oe<de)-(Math.abs(W-I)<=E&&!!le);if(!autoScrolls[D])for(var k=0;k<=D;k++)autoScrolls[k]||(autoScrolls[k]={});(autoScrolls[D].vx!=re||autoScrolls[D].vy!=P||autoScrolls[D].el!==j)&&(autoScrolls[D].el=j,autoScrolls[D].vx=re,autoScrolls[D].vy=P,clearInterval(autoScrolls[D].pid),(re!=0||P!=0)&&(A=!0,autoScrolls[D].pid=setInterval(function(){_&&this.layer===0&&Sortable.active._onTouchMove(touchEvt$1);var B=autoScrolls[this.layer].vy?autoScrolls[this.layer].vy*M:0,z=autoScrolls[this.layer].vx?autoScrolls[this.layer].vx*M:0;typeof T=="function"&&T.call(Sortable.dragged.parentNode[expando],z,B,u,touchEvt$1,autoScrolls[this.layer].el)!=="continue"||scrollBy(autoScrolls[this.layer].el,z,B)}.bind({layer:D}),24))),D++}while(f.bubbleScroll&&O!==S&&(O=getParentAutoScrollElement(O,!1)));scrolling=A}},30),drop=function u(f){var d=f.originalEvent,_=f.putSortable,x=f.dragEl,I=f.activeSortable,E=f.dispatchSortableEvent,M=f.hideGhostForTarget,S=f.unhideGhostForTarget;if(d){var A=_||I;M();var T=d.changedTouches&&d.changedTouches.length?d.changedTouches[0]:d,D=document.elementFromPoint(T.clientX,T.clientY);S(),A&&!A.el.contains(D)&&(E("spill"),this.onSpill({dragEl:x,putSortable:_}))}};function Revert(){}Revert.prototype={startIndex:null,dragStart:function u(f){var d=f.oldDraggableIndex;this.startIndex=d},onSpill:function u(f){var d=f.dragEl,_=f.putSortable;this.sortable.captureAnimationState(),_&&_.captureAnimationState();var x=getChild(this.sortable.el,this.startIndex,this.options);x?this.sortable.el.insertBefore(d,x):this.sortable.el.appendChild(d),this.sortable.animateAll(),_&&_.animateAll()},drop};_extends(Revert,{pluginName:"revertOnSpill"});function Remove(){}Remove.prototype={onSpill:function u(f){var d=f.dragEl,_=f.putSortable,x=_||this.sortable;x.captureAnimationState(),d.parentNode&&d.parentNode.removeChild(d),x.animateAll()},drop};_extends(Remove,{pluginName:"removeOnSpill"});var lastSwapEl;function SwapPlugin(){function u(){this.defaults={swapClass:"sortable-swap-highlight"}}return u.prototype={dragStart:function(d){var _=d.dragEl;lastSwapEl=_},dragOverValid:function(d){var _=d.completed,x=d.target,I=d.onMove,E=d.activeSortable,M=d.changed,S=d.cancel;if(E.options.swap){var A=this.sortable.el,T=this.options;if(x&&x!==A){var D=lastSwapEl;I(x)!==!1?(toggleClass(x,T.swapClass,!0),lastSwapEl=x):lastSwapEl=null,D&&D!==lastSwapEl&&toggleClass(D,T.swapClass,!1)}M(),_(!0),S()}},drop:function(d){var _=d.activeSortable,x=d.putSortable,I=d.dragEl,E=x||this.sortable,M=this.options;lastSwapEl&&toggleClass(lastSwapEl,M.swapClass,!1),lastSwapEl&&(M.swap||x&&x.options.swap)&&I!==lastSwapEl&&(E.captureAnimationState(),E!==_&&_.captureAnimationState(),swapNodes(I,lastSwapEl),E.animateAll(),E!==_&&_.animateAll())},nulling:function(){lastSwapEl=null}},_extends(u,{pluginName:"swap",eventProperties:function(){return{swapItem:lastSwapEl}}})}function swapNodes(u,f){var d=u.parentNode,_=f.parentNode,x,I;!d||!_||d.isEqualNode(f)||_.isEqualNode(u)||(x=index(u),I=index(f),d.isEqualNode(_)&&x<I&&I++,d.insertBefore(f,d.children[x]),_.insertBefore(u,_.children[I]))}var multiDragElements=[],multiDragClones=[],lastMultiDragSelect,multiDragSortable,initialFolding=!1,folding=!1,dragStarted=!1,dragEl$1,clonesFromRect,clonesHidden;function MultiDragPlugin(){function u(f){for(var d in this)d.charAt(0)==="_"&&typeof this[d]=="function"&&(this[d]=this[d].bind(this));f.options.supportPointer?on$1(document,"pointerup",this._deselectMultiDrag):(on$1(document,"mouseup",this._deselectMultiDrag),on$1(document,"touchend",this._deselectMultiDrag)),on$1(document,"keydown",this._checkKeyDown),on$1(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(x,I){var E="";multiDragElements.length&&multiDragSortable===f?multiDragElements.forEach(function(M,S){E+=(S?", ":"")+M.textContent}):E=I.textContent,x.setData("Text",E)}}}return u.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(d){var _=d.dragEl;dragEl$1=_},delayEnded:function(){this.isMultiDrag=~multiDragElements.indexOf(dragEl$1)},setupClone:function(d){var _=d.sortable,x=d.cancel;if(this.isMultiDrag){for(var I=0;I<multiDragElements.length;I++)multiDragClones.push(clone(multiDragElements[I])),multiDragClones[I].sortableIndex=multiDragElements[I].sortableIndex,multiDragClones[I].draggable=!1,multiDragClones[I].style["will-change"]="",toggleClass(multiDragClones[I],this.options.selectedClass,!1),multiDragElements[I]===dragEl$1&&toggleClass(multiDragClones[I],this.options.chosenClass,!1);_._hideClone(),x()}},clone:function(d){var _=d.sortable,x=d.rootEl,I=d.dispatchSortableEvent,E=d.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||multiDragElements.length&&multiDragSortable===_&&(insertMultiDragClones(!0,x),I("clone"),E()))},showClone:function(d){var _=d.cloneNowShown,x=d.rootEl,I=d.cancel;this.isMultiDrag&&(insertMultiDragClones(!1,x),multiDragClones.forEach(function(E){css(E,"display","")}),_(),clonesHidden=!1,I())},hideClone:function(d){var _=this;d.sortable;var x=d.cloneNowHidden,I=d.cancel;this.isMultiDrag&&(multiDragClones.forEach(function(E){css(E,"display","none"),_.options.removeCloneOnHide&&E.parentNode&&E.parentNode.removeChild(E)}),x(),clonesHidden=!0,I())},dragStartGlobal:function(d){d.sortable,!this.isMultiDrag&&multiDragSortable&&multiDragSortable.multiDrag._deselectMultiDrag(),multiDragElements.forEach(function(_){_.sortableIndex=index(_)}),multiDragElements=multiDragElements.sort(function(_,x){return _.sortableIndex-x.sortableIndex}),dragStarted=!0},dragStarted:function(d){var _=this,x=d.sortable;if(this.isMultiDrag){if(this.options.sort&&(x.captureAnimationState(),this.options.animation)){multiDragElements.forEach(function(E){E!==dragEl$1&&css(E,"position","absolute")});var I=getRect(dragEl$1,!1,!0,!0);multiDragElements.forEach(function(E){E!==dragEl$1&&setRect(E,I)}),folding=!0,initialFolding=!0}x.animateAll(function(){folding=!1,initialFolding=!1,_.options.animation&&multiDragElements.forEach(function(E){unsetRect(E)}),_.options.sort&&removeMultiDragElements()})}},dragOver:function(d){var _=d.target,x=d.completed,I=d.cancel;folding&&~multiDragElements.indexOf(_)&&(x(!1),I())},revert:function(d){var _=d.fromSortable,x=d.rootEl,I=d.sortable,E=d.dragRect;multiDragElements.length>1&&(multiDragElements.forEach(function(M){I.addAnimationState({target:M,rect:folding?getRect(M):E}),unsetRect(M),M.fromRect=E,_.removeAnimationState(M)}),folding=!1,insertMultiDragElements(!this.options.removeCloneOnHide,x))},dragOverCompleted:function(d){var _=d.sortable,x=d.isOwner,I=d.insertion,E=d.activeSortable,M=d.parentEl,S=d.putSortable,A=this.options;if(I){if(x&&E._hideClone(),initialFolding=!1,A.animation&&multiDragElements.length>1&&(folding||!x&&!E.options.sort&&!S)){var T=getRect(dragEl$1,!1,!0,!0);multiDragElements.forEach(function(O){O!==dragEl$1&&(setRect(O,T),M.appendChild(O))}),folding=!0}if(!x)if(folding||removeMultiDragElements(),multiDragElements.length>1){var D=clonesHidden;E._showClone(_),E.options.animation&&!clonesHidden&&D&&multiDragClones.forEach(function(O){E.addAnimationState({target:O,rect:clonesFromRect}),O.fromRect=clonesFromRect,O.thisAnimationDuration=null})}else E._showClone(_)}},dragOverAnimationCapture:function(d){var _=d.dragRect,x=d.isOwner,I=d.activeSortable;if(multiDragElements.forEach(function(M){M.thisAnimationDuration=null}),I.options.animation&&!x&&I.multiDrag.isMultiDrag){clonesFromRect=_extends({},_);var E=matrix(dragEl$1,!0);clonesFromRect.top-=E.f,clonesFromRect.left-=E.e}},dragOverAnimationComplete:function(){folding&&(folding=!1,removeMultiDragElements())},drop:function(d){var _=d.originalEvent,x=d.rootEl,I=d.parentEl,E=d.sortable,M=d.dispatchSortableEvent,S=d.oldIndex,A=d.putSortable,T=A||this.sortable;if(_){var D=this.options,O=I.children;if(!dragStarted)if(D.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),toggleClass(dragEl$1,D.selectedClass,!~multiDragElements.indexOf(dragEl$1)),~multiDragElements.indexOf(dragEl$1))multiDragElements.splice(multiDragElements.indexOf(dragEl$1),1),lastMultiDragSelect=null,dispatchEvent({sortable:E,rootEl:x,name:"deselect",targetEl:dragEl$1,originalEvt:_});else{if(multiDragElements.push(dragEl$1),dispatchEvent({sortable:E,rootEl:x,name:"select",targetEl:dragEl$1,originalEvt:_}),_.shiftKey&&lastMultiDragSelect&&E.el.contains(lastMultiDragSelect)){var j=index(lastMultiDragSelect),$=index(dragEl$1);if(~j&&~$&&j!==$){var W,Q;for($>j?(Q=j,W=$):(Q=$,W=j+1);Q<W;Q++)~multiDragElements.indexOf(O[Q])||(toggleClass(O[Q],D.selectedClass,!0),multiDragElements.push(O[Q]),dispatchEvent({sortable:E,rootEl:x,name:"select",targetEl:O[Q],originalEvt:_}))}}else lastMultiDragSelect=dragEl$1;multiDragSortable=T}if(dragStarted&&this.isMultiDrag){if(folding=!1,(I[expando].options.sort||I!==x)&&multiDragElements.length>1){var X=getRect(dragEl$1),Y=index(dragEl$1,":not(."+this.options.selectedClass+")");if(!initialFolding&&D.animation&&(dragEl$1.thisAnimationDuration=null),T.captureAnimationState(),!initialFolding&&(D.animation&&(dragEl$1.fromRect=X,multiDragElements.forEach(function(oe){if(oe.thisAnimationDuration=null,oe!==dragEl$1){var ge=folding?getRect(oe):X;oe.fromRect=ge,T.addAnimationState({target:oe,rect:ge})}})),removeMultiDragElements(),multiDragElements.forEach(function(oe){O[Y]?I.insertBefore(oe,O[Y]):I.appendChild(oe),Y++}),S===index(dragEl$1))){var ie=!1;multiDragElements.forEach(function(oe){if(oe.sortableIndex!==index(oe)){ie=!0;return}}),ie&&M("update")}multiDragElements.forEach(function(oe){unsetRect(oe)}),T.animateAll()}multiDragSortable=T}(x===I||A&&A.lastPutMode!=="clone")&&multiDragClones.forEach(function(oe){oe.parentNode&&oe.parentNode.removeChild(oe)})}},nullingGlobal:function(){this.isMultiDrag=dragStarted=!1,multiDragClones.length=0},destroyGlobal:function(){this._deselectMultiDrag(),off(document,"pointerup",this._deselectMultiDrag),off(document,"mouseup",this._deselectMultiDrag),off(document,"touchend",this._deselectMultiDrag),off(document,"keydown",this._checkKeyDown),off(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(d){if(!(typeof dragStarted<"u"&&dragStarted)&&multiDragSortable===this.sortable&&!(d&&closest(d.target,this.options.draggable,this.sortable.el,!1))&&!(d&&d.button!==0))for(;multiDragElements.length;){var _=multiDragElements[0];toggleClass(_,this.options.selectedClass,!1),multiDragElements.shift(),dispatchEvent({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:_,originalEvt:d})}},_checkKeyDown:function(d){d.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(d){d.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},_extends(u,{pluginName:"multiDrag",utils:{select:function(d){var _=d.parentNode[expando];!_||!_.options.multiDrag||~multiDragElements.indexOf(d)||(multiDragSortable&&multiDragSortable!==_&&(multiDragSortable.multiDrag._deselectMultiDrag(),multiDragSortable=_),toggleClass(d,_.options.selectedClass,!0),multiDragElements.push(d))},deselect:function(d){var _=d.parentNode[expando],x=multiDragElements.indexOf(d);!_||!_.options.multiDrag||!~x||(toggleClass(d,_.options.selectedClass,!1),multiDragElements.splice(x,1))}},eventProperties:function(){var d=this,_=[],x=[];return multiDragElements.forEach(function(I){_.push({multiDragElement:I,index:I.sortableIndex});var E;folding&&I!==dragEl$1?E=-1:folding?E=index(I,":not(."+d.options.selectedClass+")"):E=index(I),x.push({multiDragElement:I,index:E})}),{items:_toConsumableArray(multiDragElements),clones:[].concat(multiDragClones),oldIndicies:_,newIndicies:x}},optionListeners:{multiDragKey:function(d){return d=d.toLowerCase(),d==="ctrl"?d="Control":d.length>1&&(d=d.charAt(0).toUpperCase()+d.substr(1)),d}}})}function insertMultiDragElements(u,f){multiDragElements.forEach(function(d,_){var x=f.children[d.sortableIndex+(u?Number(_):0)];x?f.insertBefore(d,x):f.appendChild(d)})}function insertMultiDragClones(u,f){multiDragClones.forEach(function(d,_){var x=f.children[d.sortableIndex+(u?Number(_):0)];x?f.insertBefore(d,x):f.appendChild(d)})}function removeMultiDragElements(){multiDragElements.forEach(function(u){u!==dragEl$1&&u.parentNode&&u.parentNode.removeChild(u)})}Sortable.mount(new AutoScrollPlugin);Sortable.mount(Remove,Revert);const sortable_esm=Object.freeze(Object.defineProperty({__proto__:null,MultiDrag:MultiDragPlugin,Sortable,Swap:SwapPlugin,default:Sortable},Symbol.toStringTag,{value:"Module"})),require$$1$2=getAugmentedNamespace(sortable_esm);(function(u,f){(function(_,x){u.exports=x(require$$0$1,require$$1$2)})(typeof self<"u"?self:commonjsGlobal$1,function(d,_){return function(x){var I={};function E(M){if(I[M])return I[M].exports;var S=I[M]={i:M,l:!1,exports:{}};return x[M].call(S.exports,S,S.exports,E),S.l=!0,S.exports}return E.m=x,E.c=I,E.d=function(M,S,A){E.o(M,S)||Object.defineProperty(M,S,{enumerable:!0,get:A})},E.r=function(M){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(M,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(M,"__esModule",{value:!0})},E.t=function(M,S){if(S&1&&(M=E(M)),S&8||S&4&&typeof M=="object"&&M&&M.__esModule)return M;var A=Object.create(null);if(E.r(A),Object.defineProperty(A,"default",{enumerable:!0,value:M}),S&2&&typeof M!="string")for(var T in M)E.d(A,T,function(D){return M[D]}.bind(null,T));return A},E.n=function(M){var S=M&&M.__esModule?function(){return M.default}:function(){return M};return E.d(S,"a",S),S},E.o=function(M,S){return Object.prototype.hasOwnProperty.call(M,S)},E.p="",E(E.s="fb15")}({"00ee":function(x,I,E){var M=E("b622"),S=M("toStringTag"),A={};A[S]="z",x.exports=String(A)==="[object z]"},"0366":function(x,I,E){var M=E("1c0b");x.exports=function(S,A,T){if(M(S),A===void 0)return S;switch(T){case 0:return function(){return S.call(A)};case 1:return function(D){return S.call(A,D)};case 2:return function(D,O){return S.call(A,D,O)};case 3:return function(D,O,j){return S.call(A,D,O,j)}}return function(){return S.apply(A,arguments)}}},"057f":function(x,I,E){var M=E("fc6a"),S=E("241c").f,A={}.toString,T=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],D=function(O){try{return S(O)}catch{return T.slice()}};x.exports.f=function(j){return T&&A.call(j)=="[object Window]"?D(j):S(M(j))}},"06cf":function(x,I,E){var M=E("83ab"),S=E("d1e7"),A=E("5c6c"),T=E("fc6a"),D=E("c04e"),O=E("5135"),j=E("0cfb"),$=Object.getOwnPropertyDescriptor;I.f=M?$:function(Q,X){if(Q=T(Q),X=D(X,!0),j)try{return $(Q,X)}catch{}if(O(Q,X))return A(!S.f.call(Q,X),Q[X])}},"0cfb":function(x,I,E){var M=E("83ab"),S=E("d039"),A=E("cc12");x.exports=!M&&!S(function(){return Object.defineProperty(A("div"),"a",{get:function(){return 7}}).a!=7})},"13d5":function(x,I,E){var M=E("23e7"),S=E("d58f").left,A=E("a640"),T=E("ae40"),D=A("reduce"),O=T("reduce",{1:0});M({target:"Array",proto:!0,forced:!D||!O},{reduce:function($){return S(this,$,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"14c3":function(x,I,E){var M=E("c6b6"),S=E("9263");x.exports=function(A,T){var D=A.exec;if(typeof D=="function"){var O=D.call(A,T);if(typeof O!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return O}if(M(A)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return S.call(A,T)}},"159b":function(x,I,E){var M=E("da84"),S=E("fdbc"),A=E("17c2"),T=E("9112");for(var D in S){var O=M[D],j=O&&O.prototype;if(j&&j.forEach!==A)try{T(j,"forEach",A)}catch{j.forEach=A}}},"17c2":function(x,I,E){var M=E("b727").forEach,S=E("a640"),A=E("ae40"),T=S("forEach"),D=A("forEach");x.exports=!T||!D?function(j){return M(this,j,arguments.length>1?arguments[1]:void 0)}:[].forEach},"1be4":function(x,I,E){var M=E("d066");x.exports=M("document","documentElement")},"1c0b":function(x,I){x.exports=function(E){if(typeof E!="function")throw TypeError(String(E)+" is not a function");return E}},"1c7e":function(x,I,E){var M=E("b622"),S=M("iterator"),A=!1;try{var T=0,D={next:function(){return{done:!!T++}},return:function(){A=!0}};D[S]=function(){return this},Array.from(D,function(){throw 2})}catch{}x.exports=function(O,j){if(!j&&!A)return!1;var $=!1;try{var W={};W[S]=function(){return{next:function(){return{done:$=!0}}}},O(W)}catch{}return $}},"1d80":function(x,I){x.exports=function(E){if(E==null)throw TypeError("Can't call method on "+E);return E}},"1dde":function(x,I,E){var M=E("d039"),S=E("b622"),A=E("2d00"),T=S("species");x.exports=function(D){return A>=51||!M(function(){var O=[],j=O.constructor={};return j[T]=function(){return{foo:1}},O[D](Boolean).foo!==1})}},"23cb":function(x,I,E){var M=E("a691"),S=Math.max,A=Math.min;x.exports=function(T,D){var O=M(T);return O<0?S(O+D,0):A(O,D)}},"23e7":function(x,I,E){var M=E("da84"),S=E("06cf").f,A=E("9112"),T=E("6eeb"),D=E("ce4e"),O=E("e893"),j=E("94ca");x.exports=function($,W){var Q=$.target,X=$.global,Y=$.stat,ie,oe,ge,be,ze,de;if(X?oe=M:Y?oe=M[Q]||D(Q,{}):oe=(M[Q]||{}).prototype,oe)for(ge in W){if(ze=W[ge],$.noTargetGet?(de=S(oe,ge),be=de&&de.value):be=oe[ge],ie=j(X?ge:Q+(Y?".":"#")+ge,$.forced),!ie&&be!==void 0){if(typeof ze==typeof be)continue;O(ze,be)}($.sham||be&&be.sham)&&A(ze,"sham",!0),T(oe,ge,ze,$)}}},"241c":function(x,I,E){var M=E("ca84"),S=E("7839"),A=S.concat("length","prototype");I.f=Object.getOwnPropertyNames||function(D){return M(D,A)}},"25f0":function(x,I,E){var M=E("6eeb"),S=E("825a"),A=E("d039"),T=E("ad6d"),D="toString",O=RegExp.prototype,j=O[D],$=A(function(){return j.call({source:"a",flags:"b"})!="/a/b"}),W=j.name!=D;($||W)&&M(RegExp.prototype,D,function(){var X=S(this),Y=String(X.source),ie=X.flags,oe=String(ie===void 0&&X instanceof RegExp&&!("flags"in O)?T.call(X):ie);return"/"+Y+"/"+oe},{unsafe:!0})},"2ca0":function(x,I,E){var M=E("23e7"),S=E("06cf").f,A=E("50c4"),T=E("5a34"),D=E("1d80"),O=E("ab13"),j=E("c430"),$="".startsWith,W=Math.min,Q=O("startsWith"),X=!j&&!Q&&!!function(){var Y=S(String.prototype,"startsWith");return Y&&!Y.writable}();M({target:"String",proto:!0,forced:!X&&!Q},{startsWith:function(ie){var oe=String(D(this));T(ie);var ge=A(W(arguments.length>1?arguments[1]:void 0,oe.length)),be=String(ie);return $?$.call(oe,be,ge):oe.slice(ge,ge+be.length)===be}})},"2d00":function(x,I,E){var M=E("da84"),S=E("342f"),A=M.process,T=A&&A.versions,D=T&&T.v8,O,j;D?(O=D.split("."),j=O[0]+O[1]):S&&(O=S.match(/Edge\/(\d+)/),(!O||O[1]>=74)&&(O=S.match(/Chrome\/(\d+)/),O&&(j=O[1]))),x.exports=j&&+j},"342f":function(x,I,E){var M=E("d066");x.exports=M("navigator","userAgent")||""},"35a1":function(x,I,E){var M=E("f5df"),S=E("3f8c"),A=E("b622"),T=A("iterator");x.exports=function(D){if(D!=null)return D[T]||D["@@iterator"]||S[M(D)]}},"37e8":function(x,I,E){var M=E("83ab"),S=E("9bf2"),A=E("825a"),T=E("df75");x.exports=M?Object.defineProperties:function(O,j){A(O);for(var $=T(j),W=$.length,Q=0,X;W>Q;)S.f(O,X=$[Q++],j[X]);return O}},"3bbe":function(x,I,E){var M=E("861d");x.exports=function(S){if(!M(S)&&S!==null)throw TypeError("Can't set "+String(S)+" as a prototype");return S}},"3ca3":function(x,I,E){var M=E("6547").charAt,S=E("69f3"),A=E("7dd0"),T="String Iterator",D=S.set,O=S.getterFor(T);A(String,"String",function(j){D(this,{type:T,string:String(j),index:0})},function(){var $=O(this),W=$.string,Q=$.index,X;return Q>=W.length?{value:void 0,done:!0}:(X=M(W,Q),$.index+=X.length,{value:X,done:!1})})},"3f8c":function(x,I){x.exports={}},4160:function(x,I,E){var M=E("23e7"),S=E("17c2");M({target:"Array",proto:!0,forced:[].forEach!=S},{forEach:S})},"428f":function(x,I,E){var M=E("da84");x.exports=M},"44ad":function(x,I,E){var M=E("d039"),S=E("c6b6"),A="".split;x.exports=M(function(){return!Object("z").propertyIsEnumerable(0)})?function(T){return S(T)=="String"?A.call(T,""):Object(T)}:Object},"44d2":function(x,I,E){var M=E("b622"),S=E("7c73"),A=E("9bf2"),T=M("unscopables"),D=Array.prototype;D[T]==null&&A.f(D,T,{configurable:!0,value:S(null)}),x.exports=function(O){D[T][O]=!0}},"44e7":function(x,I,E){var M=E("861d"),S=E("c6b6"),A=E("b622"),T=A("match");x.exports=function(D){var O;return M(D)&&((O=D[T])!==void 0?!!O:S(D)=="RegExp")}},4930:function(x,I,E){var M=E("d039");x.exports=!!Object.getOwnPropertySymbols&&!M(function(){return!String(Symbol())})},"4d64":function(x,I,E){var M=E("fc6a"),S=E("50c4"),A=E("23cb"),T=function(D){return function(O,j,$){var W=M(O),Q=S(W.length),X=A($,Q),Y;if(D&&j!=j){for(;Q>X;)if(Y=W[X++],Y!=Y)return!0}else for(;Q>X;X++)if((D||X in W)&&W[X]===j)return D||X||0;return!D&&-1}};x.exports={includes:T(!0),indexOf:T(!1)}},"4de4":function(x,I,E){var M=E("23e7"),S=E("b727").filter,A=E("1dde"),T=E("ae40"),D=A("filter"),O=T("filter");M({target:"Array",proto:!0,forced:!D||!O},{filter:function($){return S(this,$,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(x,I,E){var M=E("0366"),S=E("7b0b"),A=E("9bdd"),T=E("e95a"),D=E("50c4"),O=E("8418"),j=E("35a1");x.exports=function(W){var Q=S(W),X=typeof this=="function"?this:Array,Y=arguments.length,ie=Y>1?arguments[1]:void 0,oe=ie!==void 0,ge=j(Q),be=0,ze,de,Ce,ke,le,re;if(oe&&(ie=M(ie,Y>2?arguments[2]:void 0,2)),ge!=null&&!(X==Array&&T(ge)))for(ke=ge.call(Q),le=ke.next,de=new X;!(Ce=le.call(ke)).done;be++)re=oe?A(ke,ie,[Ce.value,be],!0):Ce.value,O(de,be,re);else for(ze=D(Q.length),de=new X(ze);ze>be;be++)re=oe?ie(Q[be],be):Q[be],O(de,be,re);return de.length=be,de}},"4fad":function(x,I,E){var M=E("23e7"),S=E("6f53").entries;M({target:"Object",stat:!0},{entries:function(T){return S(T)}})},"50c4":function(x,I,E){var M=E("a691"),S=Math.min;x.exports=function(A){return A>0?S(M(A),9007199254740991):0}},5135:function(x,I){var E={}.hasOwnProperty;x.exports=function(M,S){return E.call(M,S)}},5319:function(x,I,E){var M=E("d784"),S=E("825a"),A=E("7b0b"),T=E("50c4"),D=E("a691"),O=E("1d80"),j=E("8aa5"),$=E("14c3"),W=Math.max,Q=Math.min,X=Math.floor,Y=/\$([$&'`]|\d\d?|<[^>]*>)/g,ie=/\$([$&'`]|\d\d?)/g,oe=function(ge){return ge===void 0?ge:String(ge)};M("replace",2,function(ge,be,ze,de){var Ce=de.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,ke=de.REPLACE_KEEPS_$0,le=Ce?"$":"$0";return[function(k,B){var z=O(this),ee=k?.[ge];return ee!==void 0?ee.call(k,z,B):be.call(String(z),k,B)},function(P,k){if(!Ce&&ke||typeof k=="string"&&k.indexOf(le)===-1){var B=ze(be,P,this,k);if(B.done)return B.value}var z=S(P),ee=String(this),H=typeof k=="function";H||(k=String(k));var q=z.global;if(q){var J=z.unicode;z.lastIndex=0}for(var U=[];;){var Z=$(z,ee);if(Z===null||(U.push(Z),!q))break;var ve=String(Z[0]);ve===""&&(z.lastIndex=j(ee,T(z.lastIndex),J))}for(var Ye="",rt=0,Ue=0;Ue<U.length;Ue++){Z=U[Ue];for(var Qe=String(Z[0]),vt=W(Q(D(Z.index),ee.length),0),ri=[],ci=1;ci<Z.length;ci++)ri.push(oe(Z[ci]));var tt=Z.groups;if(H){var et=[Qe].concat(ri,vt,ee);tt!==void 0&&et.push(tt);var $e=String(k.apply(void 0,et))}else $e=re(Qe,ee,vt,ri,tt,k);vt>=rt&&(Ye+=ee.slice(rt,vt)+$e,rt=vt+Qe.length)}return Ye+ee.slice(rt)}];function re(P,k,B,z,ee,H){var q=B+P.length,J=z.length,U=ie;return ee!==void 0&&(ee=A(ee),U=Y),be.call(H,U,function(Z,ve){var Ye;switch(ve.charAt(0)){case"$":return"$";case"&":return P;case"`":return k.slice(0,B);case"'":return k.slice(q);case"<":Ye=ee[ve.slice(1,-1)];break;default:var rt=+ve;if(rt===0)return Z;if(rt>J){var Ue=X(rt/10);return Ue===0?Z:Ue<=J?z[Ue-1]===void 0?ve.charAt(1):z[Ue-1]+ve.charAt(1):Z}Ye=z[rt-1]}return Ye===void 0?"":Ye})}})},5692:function(x,I,E){var M=E("c430"),S=E("c6cd");(x.exports=function(A,T){return S[A]||(S[A]=T!==void 0?T:{})})("versions",[]).push({version:"3.6.5",mode:M?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(x,I,E){var M=E("d066"),S=E("241c"),A=E("7418"),T=E("825a");x.exports=M("Reflect","ownKeys")||function(O){var j=S.f(T(O)),$=A.f;return $?j.concat($(O)):j}},"5a34":function(x,I,E){var M=E("44e7");x.exports=function(S){if(M(S))throw TypeError("The method doesn't accept regular expressions");return S}},"5c6c":function(x,I){x.exports=function(E,M){return{enumerable:!(E&1),configurable:!(E&2),writable:!(E&4),value:M}}},"5db7":function(x,I,E){var M=E("23e7"),S=E("a2bf"),A=E("7b0b"),T=E("50c4"),D=E("1c0b"),O=E("65f0");M({target:"Array",proto:!0},{flatMap:function($){var W=A(this),Q=T(W.length),X;return D($),X=O(W,0),X.length=S(X,W,W,Q,0,1,$,arguments.length>1?arguments[1]:void 0),X}})},6547:function(x,I,E){var M=E("a691"),S=E("1d80"),A=function(T){return function(D,O){var j=String(S(D)),$=M(O),W=j.length,Q,X;return $<0||$>=W?T?"":void 0:(Q=j.charCodeAt($),Q<55296||Q>56319||$+1===W||(X=j.charCodeAt($+1))<56320||X>57343?T?j.charAt($):Q:T?j.slice($,$+2):(Q-55296<<10)+(X-56320)+65536)}};x.exports={codeAt:A(!1),charAt:A(!0)}},"65f0":function(x,I,E){var M=E("861d"),S=E("e8b5"),A=E("b622"),T=A("species");x.exports=function(D,O){var j;return S(D)&&(j=D.constructor,typeof j=="function"&&(j===Array||S(j.prototype))?j=void 0:M(j)&&(j=j[T],j===null&&(j=void 0))),new(j===void 0?Array:j)(O===0?0:O)}},"69f3":function(x,I,E){var M=E("7f9a"),S=E("da84"),A=E("861d"),T=E("9112"),D=E("5135"),O=E("f772"),j=E("d012"),$=S.WeakMap,W,Q,X,Y=function(Ce){return X(Ce)?Q(Ce):W(Ce,{})},ie=function(Ce){return function(ke){var le;if(!A(ke)||(le=Q(ke)).type!==Ce)throw TypeError("Incompatible receiver, "+Ce+" required");return le}};if(M){var oe=new $,ge=oe.get,be=oe.has,ze=oe.set;W=function(Ce,ke){return ze.call(oe,Ce,ke),ke},Q=function(Ce){return ge.call(oe,Ce)||{}},X=function(Ce){return be.call(oe,Ce)}}else{var de=O("state");j[de]=!0,W=function(Ce,ke){return T(Ce,de,ke),ke},Q=function(Ce){return D(Ce,de)?Ce[de]:{}},X=function(Ce){return D(Ce,de)}}x.exports={set:W,get:Q,has:X,enforce:Y,getterFor:ie}},"6eeb":function(x,I,E){var M=E("da84"),S=E("9112"),A=E("5135"),T=E("ce4e"),D=E("8925"),O=E("69f3"),j=O.get,$=O.enforce,W=String(String).split("String");(x.exports=function(Q,X,Y,ie){var oe=ie?!!ie.unsafe:!1,ge=ie?!!ie.enumerable:!1,be=ie?!!ie.noTargetGet:!1;if(typeof Y=="function"&&(typeof X=="string"&&!A(Y,"name")&&S(Y,"name",X),$(Y).source=W.join(typeof X=="string"?X:"")),Q===M){ge?Q[X]=Y:T(X,Y);return}else oe?!be&&Q[X]&&(ge=!0):delete Q[X];ge?Q[X]=Y:S(Q,X,Y)})(Function.prototype,"toString",function(){return typeof this=="function"&&j(this).source||D(this)})},"6f53":function(x,I,E){var M=E("83ab"),S=E("df75"),A=E("fc6a"),T=E("d1e7").f,D=function(O){return function(j){for(var $=A(j),W=S($),Q=W.length,X=0,Y=[],ie;Q>X;)ie=W[X++],(!M||T.call($,ie))&&Y.push(O?[ie,$[ie]]:$[ie]);return Y}};x.exports={entries:D(!0),values:D(!1)}},"73d9":function(x,I,E){var M=E("44d2");M("flatMap")},7418:function(x,I){I.f=Object.getOwnPropertySymbols},"746f":function(x,I,E){var M=E("428f"),S=E("5135"),A=E("e538"),T=E("9bf2").f;x.exports=function(D){var O=M.Symbol||(M.Symbol={});S(O,D)||T(O,D,{value:A.f(D)})}},7839:function(x,I){x.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(x,I,E){var M=E("1d80");x.exports=function(S){return Object(M(S))}},"7c73":function(x,I,E){var M=E("825a"),S=E("37e8"),A=E("7839"),T=E("d012"),D=E("1be4"),O=E("cc12"),j=E("f772"),$=">",W="<",Q="prototype",X="script",Y=j("IE_PROTO"),ie=function(){},oe=function(Ce){return W+X+$+Ce+W+"/"+X+$},ge=function(Ce){Ce.write(oe("")),Ce.close();var ke=Ce.parentWindow.Object;return Ce=null,ke},be=function(){var Ce=O("iframe"),ke="java"+X+":",le;return Ce.style.display="none",D.appendChild(Ce),Ce.src=String(ke),le=Ce.contentWindow.document,le.open(),le.write(oe("document.F=Object")),le.close(),le.F},ze,de=function(){try{ze=document.domain&&new ActiveXObject("htmlfile")}catch{}de=ze?ge(ze):be();for(var Ce=A.length;Ce--;)delete de[Q][A[Ce]];return de()};T[Y]=!0,x.exports=Object.create||function(ke,le){var re;return ke!==null?(ie[Q]=M(ke),re=new ie,ie[Q]=null,re[Y]=ke):re=de(),le===void 0?re:S(re,le)}},"7dd0":function(x,I,E){var M=E("23e7"),S=E("9ed3"),A=E("e163"),T=E("d2bb"),D=E("d44e"),O=E("9112"),j=E("6eeb"),$=E("b622"),W=E("c430"),Q=E("3f8c"),X=E("ae93"),Y=X.IteratorPrototype,ie=X.BUGGY_SAFARI_ITERATORS,oe=$("iterator"),ge="keys",be="values",ze="entries",de=function(){return this};x.exports=function(Ce,ke,le,re,P,k,B){S(le,ke,re);var z=function(Ue){if(Ue===P&&U)return U;if(!ie&&Ue in q)return q[Ue];switch(Ue){case ge:return function(){return new le(this,Ue)};case be:return function(){return new le(this,Ue)};case ze:return function(){return new le(this,Ue)}}return function(){return new le(this)}},ee=ke+" Iterator",H=!1,q=Ce.prototype,J=q[oe]||q["@@iterator"]||P&&q[P],U=!ie&&J||z(P),Z=ke=="Array"&&q.entries||J,ve,Ye,rt;if(Z&&(ve=A(Z.call(new Ce)),Y!==Object.prototype&&ve.next&&(!W&&A(ve)!==Y&&(T?T(ve,Y):typeof ve[oe]!="function"&&O(ve,oe,de)),D(ve,ee,!0,!0),W&&(Q[ee]=de))),P==be&&J&&J.name!==be&&(H=!0,U=function(){return J.call(this)}),(!W||B)&&q[oe]!==U&&O(q,oe,U),Q[ke]=U,P)if(Ye={values:z(be),keys:k?U:z(ge),entries:z(ze)},B)for(rt in Ye)(ie||H||!(rt in q))&&j(q,rt,Ye[rt]);else M({target:ke,proto:!0,forced:ie||H},Ye);return Ye}},"7f9a":function(x,I,E){var M=E("da84"),S=E("8925"),A=M.WeakMap;x.exports=typeof A=="function"&&/native code/.test(S(A))},"825a":function(x,I,E){var M=E("861d");x.exports=function(S){if(!M(S))throw TypeError(String(S)+" is not an object");return S}},"83ab":function(x,I,E){var M=E("d039");x.exports=!M(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},8418:function(x,I,E){var M=E("c04e"),S=E("9bf2"),A=E("5c6c");x.exports=function(T,D,O){var j=M(D);j in T?S.f(T,j,A(0,O)):T[j]=O}},"861d":function(x,I){x.exports=function(E){return typeof E=="object"?E!==null:typeof E=="function"}},8875:function(x,I,E){var M,S,A;(function(T,D){S=[],M=D,A=typeof M=="function"?M.apply(I,S):M,A!==void 0&&(x.exports=A)})(typeof self<"u"?self:this,function(){function T(){var D=Object.getOwnPropertyDescriptor(document,"currentScript");if(!D&&"currentScript"in document&&document.currentScript||D&&D.get!==T&&document.currentScript)return document.currentScript;try{throw new Error}catch(ze){var O=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,j=/@([^@]*):(\d+):(\d+)\s*$/ig,$=O.exec(ze.stack)||j.exec(ze.stack),W=$&&$[1]||!1,Q=$&&$[2]||!1,X=document.location.href.replace(document.location.hash,""),Y,ie,oe,ge=document.getElementsByTagName("script");W===X&&(Y=document.documentElement.outerHTML,ie=new RegExp("(?:[^\\n]+?\\n){0,"+(Q-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),oe=Y.replace(ie,"$1").trim());for(var be=0;be<ge.length;be++)if(ge[be].readyState==="interactive"||ge[be].src===W||W===X&&ge[be].innerHTML&&ge[be].innerHTML.trim()===oe)return ge[be];return null}}return T})},8925:function(x,I,E){var M=E("c6cd"),S=Function.toString;typeof M.inspectSource!="function"&&(M.inspectSource=function(A){return S.call(A)}),x.exports=M.inspectSource},"8aa5":function(x,I,E){var M=E("6547").charAt;x.exports=function(S,A,T){return A+(T?M(S,A).length:1)}},"8bbf":function(x,I){x.exports=d},"90e3":function(x,I){var E=0,M=Math.random();x.exports=function(S){return"Symbol("+String(S===void 0?"":S)+")_"+(++E+M).toString(36)}},9112:function(x,I,E){var M=E("83ab"),S=E("9bf2"),A=E("5c6c");x.exports=M?function(T,D,O){return S.f(T,D,A(1,O))}:function(T,D,O){return T[D]=O,T}},9263:function(x,I,E){var M=E("ad6d"),S=E("9f7f"),A=RegExp.prototype.exec,T=String.prototype.replace,D=A,O=function(){var Q=/a/,X=/b*/g;return A.call(Q,"a"),A.call(X,"a"),Q.lastIndex!==0||X.lastIndex!==0}(),j=S.UNSUPPORTED_Y||S.BROKEN_CARET,$=/()??/.exec("")[1]!==void 0,W=O||$||j;W&&(D=function(X){var Y=this,ie,oe,ge,be,ze=j&&Y.sticky,de=M.call(Y),Ce=Y.source,ke=0,le=X;return ze&&(de=de.replace("y",""),de.indexOf("g")===-1&&(de+="g"),le=String(X).slice(Y.lastIndex),Y.lastIndex>0&&(!Y.multiline||Y.multiline&&X[Y.lastIndex-1]!==`
`)&&(Ce="(?: "+Ce+")",le=" "+le,ke++),oe=new RegExp("^(?:"+Ce+")",de)),$&&(oe=new RegExp("^"+Ce+"$(?!\\s)",de)),O&&(ie=Y.lastIndex),ge=A.call(ze?oe:Y,le),ze?ge?(ge.input=ge.input.slice(ke),ge[0]=ge[0].slice(ke),ge.index=Y.lastIndex,Y.lastIndex+=ge[0].length):Y.lastIndex=0:O&&ge&&(Y.lastIndex=Y.global?ge.index+ge[0].length:ie),$&&ge&&ge.length>1&&T.call(ge[0],oe,function(){for(be=1;be<arguments.length-2;be++)arguments[be]===void 0&&(ge[be]=void 0)}),ge}),x.exports=D},"94ca":function(x,I,E){var M=E("d039"),S=/#|\.prototype\./,A=function($,W){var Q=D[T($)];return Q==j?!0:Q==O?!1:typeof W=="function"?M(W):!!W},T=A.normalize=function($){return String($).replace(S,".").toLowerCase()},D=A.data={},O=A.NATIVE="N",j=A.POLYFILL="P";x.exports=A},"99af":function(x,I,E){var M=E("23e7"),S=E("d039"),A=E("e8b5"),T=E("861d"),D=E("7b0b"),O=E("50c4"),j=E("8418"),$=E("65f0"),W=E("1dde"),Q=E("b622"),X=E("2d00"),Y=Q("isConcatSpreadable"),ie=9007199254740991,oe="Maximum allowed index exceeded",ge=X>=51||!S(function(){var Ce=[];return Ce[Y]=!1,Ce.concat()[0]!==Ce}),be=W("concat"),ze=function(Ce){if(!T(Ce))return!1;var ke=Ce[Y];return ke!==void 0?!!ke:A(Ce)},de=!ge||!be;M({target:"Array",proto:!0,forced:de},{concat:function(ke){var le=D(this),re=$(le,0),P=0,k,B,z,ee,H;for(k=-1,z=arguments.length;k<z;k++)if(H=k===-1?le:arguments[k],ze(H)){if(ee=O(H.length),P+ee>ie)throw TypeError(oe);for(B=0;B<ee;B++,P++)B in H&&j(re,P,H[B])}else{if(P>=ie)throw TypeError(oe);j(re,P++,H)}return re.length=P,re}})},"9bdd":function(x,I,E){var M=E("825a");x.exports=function(S,A,T,D){try{return D?A(M(T)[0],T[1]):A(T)}catch(j){var O=S.return;throw O!==void 0&&M(O.call(S)),j}}},"9bf2":function(x,I,E){var M=E("83ab"),S=E("0cfb"),A=E("825a"),T=E("c04e"),D=Object.defineProperty;I.f=M?D:function(j,$,W){if(A(j),$=T($,!0),A(W),S)try{return D(j,$,W)}catch{}if("get"in W||"set"in W)throw TypeError("Accessors not supported");return"value"in W&&(j[$]=W.value),j}},"9ed3":function(x,I,E){var M=E("ae93").IteratorPrototype,S=E("7c73"),A=E("5c6c"),T=E("d44e"),D=E("3f8c"),O=function(){return this};x.exports=function(j,$,W){var Q=$+" Iterator";return j.prototype=S(M,{next:A(1,W)}),T(j,Q,!1,!0),D[Q]=O,j}},"9f7f":function(x,I,E){var M=E("d039");function S(A,T){return RegExp(A,T)}I.UNSUPPORTED_Y=M(function(){var A=S("a","y");return A.lastIndex=2,A.exec("abcd")!=null}),I.BROKEN_CARET=M(function(){var A=S("^r","gy");return A.lastIndex=2,A.exec("str")!=null})},a2bf:function(x,I,E){var M=E("e8b5"),S=E("50c4"),A=E("0366"),T=function(D,O,j,$,W,Q,X,Y){for(var ie=W,oe=0,ge=X?A(X,Y,3):!1,be;oe<$;){if(oe in j){if(be=ge?ge(j[oe],oe,O):j[oe],Q>0&&M(be))ie=T(D,O,be,S(be.length),ie,Q-1)-1;else{if(ie>=9007199254740991)throw TypeError("Exceed the acceptable array length");D[ie]=be}ie++}oe++}return ie};x.exports=T},a352:function(x,I){x.exports=_},a434:function(x,I,E){var M=E("23e7"),S=E("23cb"),A=E("a691"),T=E("50c4"),D=E("7b0b"),O=E("65f0"),j=E("8418"),$=E("1dde"),W=E("ae40"),Q=$("splice"),X=W("splice",{ACCESSORS:!0,0:0,1:2}),Y=Math.max,ie=Math.min,oe=9007199254740991,ge="Maximum allowed length exceeded";M({target:"Array",proto:!0,forced:!Q||!X},{splice:function(ze,de){var Ce=D(this),ke=T(Ce.length),le=S(ze,ke),re=arguments.length,P,k,B,z,ee,H;if(re===0?P=k=0:re===1?(P=0,k=ke-le):(P=re-2,k=ie(Y(A(de),0),ke-le)),ke+P-k>oe)throw TypeError(ge);for(B=O(Ce,k),z=0;z<k;z++)ee=le+z,ee in Ce&&j(B,z,Ce[ee]);if(B.length=k,P<k){for(z=le;z<ke-k;z++)ee=z+k,H=z+P,ee in Ce?Ce[H]=Ce[ee]:delete Ce[H];for(z=ke;z>ke-k+P;z--)delete Ce[z-1]}else if(P>k)for(z=ke-k;z>le;z--)ee=z+k-1,H=z+P-1,ee in Ce?Ce[H]=Ce[ee]:delete Ce[H];for(z=0;z<P;z++)Ce[z+le]=arguments[z+2];return Ce.length=ke-k+P,B}})},a4d3:function(x,I,E){var M=E("23e7"),S=E("da84"),A=E("d066"),T=E("c430"),D=E("83ab"),O=E("4930"),j=E("fdbf"),$=E("d039"),W=E("5135"),Q=E("e8b5"),X=E("861d"),Y=E("825a"),ie=E("7b0b"),oe=E("fc6a"),ge=E("c04e"),be=E("5c6c"),ze=E("7c73"),de=E("df75"),Ce=E("241c"),ke=E("057f"),le=E("7418"),re=E("06cf"),P=E("9bf2"),k=E("d1e7"),B=E("9112"),z=E("6eeb"),ee=E("5692"),H=E("f772"),q=E("d012"),J=E("90e3"),U=E("b622"),Z=E("e538"),ve=E("746f"),Ye=E("d44e"),rt=E("69f3"),Ue=E("b727").forEach,Qe=H("hidden"),vt="Symbol",ri="prototype",ci=U("toPrimitive"),tt=rt.set,et=rt.getterFor(vt),$e=Object[ri],Le=S.Symbol,ot=A("JSON","stringify"),Oe=re.f,Ne=P.f,Fe=ke.f,Je=k.f,Dt=ee("symbols"),oi=ee("op-symbols"),Bt=ee("string-to-symbol-registry"),li=ee("symbol-to-string-registry"),ii=ee("wks"),Ot=S.QObject,St=!Ot||!Ot[ri]||!Ot[ri].findChild,pi=D&&$(function(){return ze(Ne({},"a",{get:function(){return Ne(this,"a",{value:7}).a}})).a!=7})?function(uM,pM,yM){var gM=Oe($e,pM);gM&&delete $e[pM],Ne(uM,pM,yM),gM&&uM!==$e&&Ne($e,pM,gM)}:Ne,eM=function(uM,pM){var yM=Dt[uM]=ze(Le[ri]);return tt(yM,{type:vt,tag:uM,description:pM}),D||(yM.description=pM),yM},hi=j?function(uM){return typeof uM=="symbol"}:function(uM){return Object(uM)instanceof Le},mi=function(pM,yM,gM){pM===$e&&mi(oi,yM,gM),Y(pM);var fM=ge(yM,!0);return Y(gM),W(Dt,fM)?(gM.enumerable?(W(pM,Qe)&&pM[Qe][fM]&&(pM[Qe][fM]=!1),gM=ze(gM,{enumerable:be(0,!1)})):(W(pM,Qe)||Ne(pM,Qe,be(1,{})),pM[Qe][fM]=!0),pi(pM,fM,gM)):Ne(pM,fM,gM)},Dn=function(pM,yM){Y(pM);var gM=oe(yM),fM=de(gM).concat(hM(gM));return Ue(fM,function(kM){(!D||oM.call(gM,kM))&&mi(pM,kM,gM[kM])}),pM},tM=function(pM,yM){return yM===void 0?ze(pM):Dn(ze(pM),yM)},oM=function(pM){var yM=ge(pM,!0),gM=Je.call(this,yM);return this===$e&&W(Dt,yM)&&!W(oi,yM)?!1:gM||!W(this,yM)||!W(Dt,yM)||W(this,Qe)&&this[Qe][yM]?gM:!0},vM=function(pM,yM){var gM=oe(pM),fM=ge(yM,!0);if(!(gM===$e&&W(Dt,fM)&&!W(oi,fM))){var kM=Oe(gM,fM);return kM&&W(Dt,fM)&&!(W(gM,Qe)&&gM[Qe][fM])&&(kM.enumerable=!0),kM}},dM=function(pM){var yM=Fe(oe(pM)),gM=[];return Ue(yM,function(fM){!W(Dt,fM)&&!W(q,fM)&&gM.push(fM)}),gM},hM=function(pM){var yM=pM===$e,gM=Fe(yM?oi:oe(pM)),fM=[];return Ue(gM,function(kM){W(Dt,kM)&&(!yM||W($e,kM))&&fM.push(Dt[kM])}),fM};if(O||(Le=function(){if(this instanceof Le)throw TypeError("Symbol is not a constructor");var pM=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),yM=J(pM),gM=function(fM){this===$e&&gM.call(oi,fM),W(this,Qe)&&W(this[Qe],yM)&&(this[Qe][yM]=!1),pi(this,yM,be(1,fM))};return D&&St&&pi($e,yM,{configurable:!0,set:gM}),eM(yM,pM)},z(Le[ri],"toString",function(){return et(this).tag}),z(Le,"withoutSetter",function(uM){return eM(J(uM),uM)}),k.f=oM,P.f=mi,re.f=vM,Ce.f=ke.f=dM,le.f=hM,Z.f=function(uM){return eM(U(uM),uM)},D&&(Ne(Le[ri],"description",{configurable:!0,get:function(){return et(this).description}}),T||z($e,"propertyIsEnumerable",oM,{unsafe:!0}))),M({global:!0,wrap:!0,forced:!O,sham:!O},{Symbol:Le}),Ue(de(ii),function(uM){ve(uM)}),M({target:vt,stat:!0,forced:!O},{for:function(uM){var pM=String(uM);if(W(Bt,pM))return Bt[pM];var yM=Le(pM);return Bt[pM]=yM,li[yM]=pM,yM},keyFor:function(pM){if(!hi(pM))throw TypeError(pM+" is not a symbol");if(W(li,pM))return li[pM]},useSetter:function(){St=!0},useSimple:function(){St=!1}}),M({target:"Object",stat:!0,forced:!O,sham:!D},{create:tM,defineProperty:mi,defineProperties:Dn,getOwnPropertyDescriptor:vM}),M({target:"Object",stat:!0,forced:!O},{getOwnPropertyNames:dM,getOwnPropertySymbols:hM}),M({target:"Object",stat:!0,forced:$(function(){le.f(1)})},{getOwnPropertySymbols:function(pM){return le.f(ie(pM))}}),ot){var _M=!O||$(function(){var uM=Le();return ot([uM])!="[null]"||ot({a:uM})!="{}"||ot(Object(uM))!="{}"});M({target:"JSON",stat:!0,forced:_M},{stringify:function(pM,yM,gM){for(var fM=[pM],kM=1,IM;arguments.length>kM;)fM.push(arguments[kM++]);if(IM=yM,!(!X(yM)&&pM===void 0||hi(pM)))return Q(yM)||(yM=function(DM,$M){if(typeof IM=="function"&&($M=IM.call(this,DM,$M)),!hi($M))return $M}),fM[1]=yM,ot.apply(null,fM)}})}Le[ri][ci]||B(Le[ri],ci,Le[ri].valueOf),Ye(Le,vt),q[Qe]=!0},a630:function(x,I,E){var M=E("23e7"),S=E("4df4"),A=E("1c7e"),T=!A(function(D){Array.from(D)});M({target:"Array",stat:!0,forced:T},{from:S})},a640:function(x,I,E){var M=E("d039");x.exports=function(S,A){var T=[][S];return!!T&&M(function(){T.call(null,A||function(){throw 1},1)})}},a691:function(x,I){var E=Math.ceil,M=Math.floor;x.exports=function(S){return isNaN(S=+S)?0:(S>0?M:E)(S)}},ab13:function(x,I,E){var M=E("b622"),S=M("match");x.exports=function(A){var T=/./;try{"/./"[A](T)}catch{try{return T[S]=!1,"/./"[A](T)}catch{}}return!1}},ac1f:function(x,I,E){var M=E("23e7"),S=E("9263");M({target:"RegExp",proto:!0,forced:/./.exec!==S},{exec:S})},ad6d:function(x,I,E){var M=E("825a");x.exports=function(){var S=M(this),A="";return S.global&&(A+="g"),S.ignoreCase&&(A+="i"),S.multiline&&(A+="m"),S.dotAll&&(A+="s"),S.unicode&&(A+="u"),S.sticky&&(A+="y"),A}},ae40:function(x,I,E){var M=E("83ab"),S=E("d039"),A=E("5135"),T=Object.defineProperty,D={},O=function(j){throw j};x.exports=function(j,$){if(A(D,j))return D[j];$||($={});var W=[][j],Q=A($,"ACCESSORS")?$.ACCESSORS:!1,X=A($,0)?$[0]:O,Y=A($,1)?$[1]:void 0;return D[j]=!!W&&!S(function(){if(Q&&!M)return!0;var ie={length:-1};Q?T(ie,1,{enumerable:!0,get:O}):ie[1]=1,W.call(ie,X,Y)})}},ae93:function(x,I,E){var M=E("e163"),S=E("9112"),A=E("5135"),T=E("b622"),D=E("c430"),O=T("iterator"),j=!1,$=function(){return this},W,Q,X;[].keys&&(X=[].keys(),"next"in X?(Q=M(M(X)),Q!==Object.prototype&&(W=Q)):j=!0),W==null&&(W={}),!D&&!A(W,O)&&S(W,O,$),x.exports={IteratorPrototype:W,BUGGY_SAFARI_ITERATORS:j}},b041:function(x,I,E){var M=E("00ee"),S=E("f5df");x.exports=M?{}.toString:function(){return"[object "+S(this)+"]"}},b0c0:function(x,I,E){var M=E("83ab"),S=E("9bf2").f,A=Function.prototype,T=A.toString,D=/^\s*function ([^ (]*)/,O="name";M&&!(O in A)&&S(A,O,{configurable:!0,get:function(){try{return T.call(this).match(D)[1]}catch{return""}}})},b622:function(x,I,E){var M=E("da84"),S=E("5692"),A=E("5135"),T=E("90e3"),D=E("4930"),O=E("fdbf"),j=S("wks"),$=M.Symbol,W=O?$:$&&$.withoutSetter||T;x.exports=function(Q){return A(j,Q)||(D&&A($,Q)?j[Q]=$[Q]:j[Q]=W("Symbol."+Q)),j[Q]}},b64b:function(x,I,E){var M=E("23e7"),S=E("7b0b"),A=E("df75"),T=E("d039"),D=T(function(){A(1)});M({target:"Object",stat:!0,forced:D},{keys:function(j){return A(S(j))}})},b727:function(x,I,E){var M=E("0366"),S=E("44ad"),A=E("7b0b"),T=E("50c4"),D=E("65f0"),O=[].push,j=function($){var W=$==1,Q=$==2,X=$==3,Y=$==4,ie=$==6,oe=$==5||ie;return function(ge,be,ze,de){for(var Ce=A(ge),ke=S(Ce),le=M(be,ze,3),re=T(ke.length),P=0,k=de||D,B=W?k(ge,re):Q?k(ge,0):void 0,z,ee;re>P;P++)if((oe||P in ke)&&(z=ke[P],ee=le(z,P,Ce),$)){if(W)B[P]=ee;else if(ee)switch($){case 3:return!0;case 5:return z;case 6:return P;case 2:O.call(B,z)}else if(Y)return!1}return ie?-1:X||Y?Y:B}};x.exports={forEach:j(0),map:j(1),filter:j(2),some:j(3),every:j(4),find:j(5),findIndex:j(6)}},c04e:function(x,I,E){var M=E("861d");x.exports=function(S,A){if(!M(S))return S;var T,D;if(A&&typeof(T=S.toString)=="function"&&!M(D=T.call(S))||typeof(T=S.valueOf)=="function"&&!M(D=T.call(S))||!A&&typeof(T=S.toString)=="function"&&!M(D=T.call(S)))return D;throw TypeError("Can't convert object to primitive value")}},c430:function(x,I){x.exports=!1},c6b6:function(x,I){var E={}.toString;x.exports=function(M){return E.call(M).slice(8,-1)}},c6cd:function(x,I,E){var M=E("da84"),S=E("ce4e"),A="__core-js_shared__",T=M[A]||S(A,{});x.exports=T},c740:function(x,I,E){var M=E("23e7"),S=E("b727").findIndex,A=E("44d2"),T=E("ae40"),D="findIndex",O=!0,j=T(D);D in[]&&Array(1)[D](function(){O=!1}),M({target:"Array",proto:!0,forced:O||!j},{findIndex:function(W){return S(this,W,arguments.length>1?arguments[1]:void 0)}}),A(D)},c8ba:function(x,I){var E;E=function(){return this}();try{E=E||new Function("return this")()}catch{typeof window=="object"&&(E=window)}x.exports=E},c975:function(x,I,E){var M=E("23e7"),S=E("4d64").indexOf,A=E("a640"),T=E("ae40"),D=[].indexOf,O=!!D&&1/[1].indexOf(1,-0)<0,j=A("indexOf"),$=T("indexOf",{ACCESSORS:!0,1:0});M({target:"Array",proto:!0,forced:O||!j||!$},{indexOf:function(Q){return O?D.apply(this,arguments)||0:S(this,Q,arguments.length>1?arguments[1]:void 0)}})},ca84:function(x,I,E){var M=E("5135"),S=E("fc6a"),A=E("4d64").indexOf,T=E("d012");x.exports=function(D,O){var j=S(D),$=0,W=[],Q;for(Q in j)!M(T,Q)&&M(j,Q)&&W.push(Q);for(;O.length>$;)M(j,Q=O[$++])&&(~A(W,Q)||W.push(Q));return W}},caad:function(x,I,E){var M=E("23e7"),S=E("4d64").includes,A=E("44d2"),T=E("ae40"),D=T("indexOf",{ACCESSORS:!0,1:0});M({target:"Array",proto:!0,forced:!D},{includes:function(j){return S(this,j,arguments.length>1?arguments[1]:void 0)}}),A("includes")},cc12:function(x,I,E){var M=E("da84"),S=E("861d"),A=M.document,T=S(A)&&S(A.createElement);x.exports=function(D){return T?A.createElement(D):{}}},ce4e:function(x,I,E){var M=E("da84"),S=E("9112");x.exports=function(A,T){try{S(M,A,T)}catch{M[A]=T}return T}},d012:function(x,I){x.exports={}},d039:function(x,I){x.exports=function(E){try{return!!E()}catch{return!0}}},d066:function(x,I,E){var M=E("428f"),S=E("da84"),A=function(T){return typeof T=="function"?T:void 0};x.exports=function(T,D){return arguments.length<2?A(M[T])||A(S[T]):M[T]&&M[T][D]||S[T]&&S[T][D]}},d1e7:function(x,I,E){var M={}.propertyIsEnumerable,S=Object.getOwnPropertyDescriptor,A=S&&!M.call({1:2},1);I.f=A?function(D){var O=S(this,D);return!!O&&O.enumerable}:M},d28b:function(x,I,E){var M=E("746f");M("iterator")},d2bb:function(x,I,E){var M=E("825a"),S=E("3bbe");x.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var A=!1,T={},D;try{D=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,D.call(T,[]),A=T instanceof Array}catch{}return function(j,$){return M(j),S($),A?D.call(j,$):j.__proto__=$,j}}():void 0)},d3b7:function(x,I,E){var M=E("00ee"),S=E("6eeb"),A=E("b041");M||S(Object.prototype,"toString",A,{unsafe:!0})},d44e:function(x,I,E){var M=E("9bf2").f,S=E("5135"),A=E("b622"),T=A("toStringTag");x.exports=function(D,O,j){D&&!S(D=j?D:D.prototype,T)&&M(D,T,{configurable:!0,value:O})}},d58f:function(x,I,E){var M=E("1c0b"),S=E("7b0b"),A=E("44ad"),T=E("50c4"),D=function(O){return function(j,$,W,Q){M($);var X=S(j),Y=A(X),ie=T(X.length),oe=O?ie-1:0,ge=O?-1:1;if(W<2)for(;;){if(oe in Y){Q=Y[oe],oe+=ge;break}if(oe+=ge,O?oe<0:ie<=oe)throw TypeError("Reduce of empty array with no initial value")}for(;O?oe>=0:ie>oe;oe+=ge)oe in Y&&(Q=$(Q,Y[oe],oe,X));return Q}};x.exports={left:D(!1),right:D(!0)}},d784:function(x,I,E){E("ac1f");var M=E("6eeb"),S=E("d039"),A=E("b622"),T=E("9263"),D=E("9112"),O=A("species"),j=!S(function(){var Y=/./;return Y.exec=function(){var ie=[];return ie.groups={a:"7"},ie},"".replace(Y,"$<a>")!=="7"}),$=function(){return"a".replace(/./,"$0")==="$0"}(),W=A("replace"),Q=function(){return/./[W]?/./[W]("a","$0")==="":!1}(),X=!S(function(){var Y=/(?:)/,ie=Y.exec;Y.exec=function(){return ie.apply(this,arguments)};var oe="ab".split(Y);return oe.length!==2||oe[0]!=="a"||oe[1]!=="b"});x.exports=function(Y,ie,oe,ge){var be=A(Y),ze=!S(function(){var P={};return P[be]=function(){return 7},""[Y](P)!=7}),de=ze&&!S(function(){var P=!1,k=/a/;return Y==="split"&&(k={},k.constructor={},k.constructor[O]=function(){return k},k.flags="",k[be]=/./[be]),k.exec=function(){return P=!0,null},k[be](""),!P});if(!ze||!de||Y==="replace"&&!(j&&$&&!Q)||Y==="split"&&!X){var Ce=/./[be],ke=oe(be,""[Y],function(P,k,B,z,ee){return k.exec===T?ze&&!ee?{done:!0,value:Ce.call(k,B,z)}:{done:!0,value:P.call(B,k,z)}:{done:!1}},{REPLACE_KEEPS_$0:$,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:Q}),le=ke[0],re=ke[1];M(String.prototype,Y,le),M(RegExp.prototype,be,ie==2?function(P,k){return re.call(P,this,k)}:function(P){return re.call(P,this)})}ge&&D(RegExp.prototype[be],"sham",!0)}},d81d:function(x,I,E){var M=E("23e7"),S=E("b727").map,A=E("1dde"),T=E("ae40"),D=A("map"),O=T("map");M({target:"Array",proto:!0,forced:!D||!O},{map:function($){return S(this,$,arguments.length>1?arguments[1]:void 0)}})},da84:function(x,I,E){(function(M){var S=function(A){return A&&A.Math==Math&&A};x.exports=S(typeof globalThis=="object"&&globalThis)||S(typeof window=="object"&&window)||S(typeof self=="object"&&self)||S(typeof M=="object"&&M)||Function("return this")()}).call(this,E("c8ba"))},dbb4:function(x,I,E){var M=E("23e7"),S=E("83ab"),A=E("56ef"),T=E("fc6a"),D=E("06cf"),O=E("8418");M({target:"Object",stat:!0,sham:!S},{getOwnPropertyDescriptors:function($){for(var W=T($),Q=D.f,X=A(W),Y={},ie=0,oe,ge;X.length>ie;)ge=Q(W,oe=X[ie++]),ge!==void 0&&O(Y,oe,ge);return Y}})},dbf1:function(x,I,E){(function(M){E.d(I,"a",function(){return A});function S(){return typeof window<"u"?window.console:M.console}var A=S()}).call(this,E("c8ba"))},ddb0:function(x,I,E){var M=E("da84"),S=E("fdbc"),A=E("e260"),T=E("9112"),D=E("b622"),O=D("iterator"),j=D("toStringTag"),$=A.values;for(var W in S){var Q=M[W],X=Q&&Q.prototype;if(X){if(X[O]!==$)try{T(X,O,$)}catch{X[O]=$}if(X[j]||T(X,j,W),S[W]){for(var Y in A)if(X[Y]!==A[Y])try{T(X,Y,A[Y])}catch{X[Y]=A[Y]}}}}},df75:function(x,I,E){var M=E("ca84"),S=E("7839");x.exports=Object.keys||function(T){return M(T,S)}},e01a:function(x,I,E){var M=E("23e7"),S=E("83ab"),A=E("da84"),T=E("5135"),D=E("861d"),O=E("9bf2").f,j=E("e893"),$=A.Symbol;if(S&&typeof $=="function"&&(!("description"in $.prototype)||$().description!==void 0)){var W={},Q=function(){var be=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),ze=this instanceof Q?new $(be):be===void 0?$():$(be);return be===""&&(W[ze]=!0),ze};j(Q,$);var X=Q.prototype=$.prototype;X.constructor=Q;var Y=X.toString,ie=String($("test"))=="Symbol(test)",oe=/^Symbol\((.*)\)[^)]+$/;O(X,"description",{configurable:!0,get:function(){var be=D(this)?this.valueOf():this,ze=Y.call(be);if(T(W,be))return"";var de=ie?ze.slice(7,-1):ze.replace(oe,"$1");return de===""?void 0:de}}),M({global:!0,forced:!0},{Symbol:Q})}},e163:function(x,I,E){var M=E("5135"),S=E("7b0b"),A=E("f772"),T=E("e177"),D=A("IE_PROTO"),O=Object.prototype;x.exports=T?Object.getPrototypeOf:function(j){return j=S(j),M(j,D)?j[D]:typeof j.constructor=="function"&&j instanceof j.constructor?j.constructor.prototype:j instanceof Object?O:null}},e177:function(x,I,E){var M=E("d039");x.exports=!M(function(){function S(){}return S.prototype.constructor=null,Object.getPrototypeOf(new S)!==S.prototype})},e260:function(x,I,E){var M=E("fc6a"),S=E("44d2"),A=E("3f8c"),T=E("69f3"),D=E("7dd0"),O="Array Iterator",j=T.set,$=T.getterFor(O);x.exports=D(Array,"Array",function(W,Q){j(this,{type:O,target:M(W),index:0,kind:Q})},function(){var W=$(this),Q=W.target,X=W.kind,Y=W.index++;return!Q||Y>=Q.length?(W.target=void 0,{value:void 0,done:!0}):X=="keys"?{value:Y,done:!1}:X=="values"?{value:Q[Y],done:!1}:{value:[Y,Q[Y]],done:!1}},"values"),A.Arguments=A.Array,S("keys"),S("values"),S("entries")},e439:function(x,I,E){var M=E("23e7"),S=E("d039"),A=E("fc6a"),T=E("06cf").f,D=E("83ab"),O=S(function(){T(1)}),j=!D||O;M({target:"Object",stat:!0,forced:j,sham:!D},{getOwnPropertyDescriptor:function(W,Q){return T(A(W),Q)}})},e538:function(x,I,E){var M=E("b622");I.f=M},e893:function(x,I,E){var M=E("5135"),S=E("56ef"),A=E("06cf"),T=E("9bf2");x.exports=function(D,O){for(var j=S(O),$=T.f,W=A.f,Q=0;Q<j.length;Q++){var X=j[Q];M(D,X)||$(D,X,W(O,X))}}},e8b5:function(x,I,E){var M=E("c6b6");x.exports=Array.isArray||function(A){return M(A)=="Array"}},e95a:function(x,I,E){var M=E("b622"),S=E("3f8c"),A=M("iterator"),T=Array.prototype;x.exports=function(D){return D!==void 0&&(S.Array===D||T[A]===D)}},f5df:function(x,I,E){var M=E("00ee"),S=E("c6b6"),A=E("b622"),T=A("toStringTag"),D=S(function(){return arguments}())=="Arguments",O=function(j,$){try{return j[$]}catch{}};x.exports=M?S:function(j){var $,W,Q;return j===void 0?"Undefined":j===null?"Null":typeof(W=O($=Object(j),T))=="string"?W:D?S($):(Q=S($))=="Object"&&typeof $.callee=="function"?"Arguments":Q}},f772:function(x,I,E){var M=E("5692"),S=E("90e3"),A=M("keys");x.exports=function(T){return A[T]||(A[T]=S(T))}},fb15:function(x,I,E){if(E.r(I),typeof window<"u"){var M=window.document.currentScript;{var S=E("8875");M=S(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:S})}var A=M&&M.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);A&&(E.p=A[1])}E("99af"),E("4de4"),E("4160"),E("c975"),E("d81d"),E("a434"),E("159b"),E("a4d3"),E("e439"),E("dbb4"),E("b64b");function T(hi,mi,Dn){return mi in hi?Object.defineProperty(hi,mi,{value:Dn,enumerable:!0,configurable:!0,writable:!0}):hi[mi]=Dn,hi}function D(hi,mi){var Dn=Object.keys(hi);if(Object.getOwnPropertySymbols){var tM=Object.getOwnPropertySymbols(hi);mi&&(tM=tM.filter(function(oM){return Object.getOwnPropertyDescriptor(hi,oM).enumerable})),Dn.push.apply(Dn,tM)}return Dn}function O(hi){for(var mi=1;mi<arguments.length;mi++){var Dn=arguments[mi]!=null?arguments[mi]:{};mi%2?D(Object(Dn),!0).forEach(function(tM){T(hi,tM,Dn[tM])}):Object.getOwnPropertyDescriptors?Object.defineProperties(hi,Object.getOwnPropertyDescriptors(Dn)):D(Object(Dn)).forEach(function(tM){Object.defineProperty(hi,tM,Object.getOwnPropertyDescriptor(Dn,tM))})}return hi}function j(hi){if(Array.isArray(hi))return hi}E("e01a"),E("d28b"),E("e260"),E("d3b7"),E("3ca3"),E("ddb0");function $(hi,mi){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(hi)))){var Dn=[],tM=!0,oM=!1,vM=void 0;try{for(var dM=hi[Symbol.iterator](),hM;!(tM=(hM=dM.next()).done)&&(Dn.push(hM.value),!(mi&&Dn.length===mi));tM=!0);}catch(_M){oM=!0,vM=_M}finally{try{!tM&&dM.return!=null&&dM.return()}finally{if(oM)throw vM}}return Dn}}E("a630"),E("fb6a"),E("b0c0"),E("25f0");function W(hi,mi){(mi==null||mi>hi.length)&&(mi=hi.length);for(var Dn=0,tM=new Array(mi);Dn<mi;Dn++)tM[Dn]=hi[Dn];return tM}function Q(hi,mi){if(hi){if(typeof hi=="string")return W(hi,mi);var Dn=Object.prototype.toString.call(hi).slice(8,-1);if(Dn==="Object"&&hi.constructor&&(Dn=hi.constructor.name),Dn==="Map"||Dn==="Set")return Array.from(hi);if(Dn==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Dn))return W(hi,mi)}}function X(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Y(hi,mi){return j(hi)||$(hi,mi)||Q(hi,mi)||X()}function ie(hi){if(Array.isArray(hi))return W(hi)}function oe(hi){if(typeof Symbol<"u"&&Symbol.iterator in Object(hi))return Array.from(hi)}function ge(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function be(hi){return ie(hi)||oe(hi)||Q(hi)||ge()}var ze=E("a352"),de=E.n(ze);function Ce(hi){hi.parentElement!==null&&hi.parentElement.removeChild(hi)}function ke(hi,mi,Dn){var tM=Dn===0?hi.children[0]:hi.children[Dn-1].nextSibling;hi.insertBefore(mi,tM)}var le=E("dbf1");E("13d5"),E("4fad"),E("ac1f"),E("5319");function re(hi){var mi=Object.create(null);return function(tM){var oM=mi[tM];return oM||(mi[tM]=hi(tM))}}var P=/-(\w)/g,k=re(function(hi){return hi.replace(P,function(mi,Dn){return Dn.toUpperCase()})});E("5db7"),E("73d9");var B=["Start","Add","Remove","Update","End"],z=["Choose","Unchoose","Sort","Filter","Clone"],ee=["Move"],H=[ee,B,z].flatMap(function(hi){return hi}).map(function(hi){return"on".concat(hi)}),q={manage:ee,manageAndEmit:B,emit:z};function J(hi){return H.indexOf(hi)!==-1}E("caad"),E("2ca0");var U=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];function Z(hi){return U.includes(hi)}function ve(hi){return["transition-group","TransitionGroup"].includes(hi)}function Ye(hi){return["id","class","role","style"].includes(hi)||hi.startsWith("data-")||hi.startsWith("aria-")||hi.startsWith("on")}function rt(hi){return hi.reduce(function(mi,Dn){var tM=Y(Dn,2),oM=tM[0],vM=tM[1];return mi[oM]=vM,mi},{})}function Ue(hi){var mi=hi.$attrs,Dn=hi.componentData,tM=Dn===void 0?{}:Dn,oM=rt(Object.entries(mi).filter(function(vM){var dM=Y(vM,2),hM=dM[0];return dM[1],Ye(hM)}));return O(O({},oM),tM)}function Qe(hi){var mi=hi.$attrs,Dn=hi.callBackBuilder,tM=rt(vt(mi));Object.entries(Dn).forEach(function(vM){var dM=Y(vM,2),hM=dM[0],_M=dM[1];q[hM].forEach(function(uM){tM["on".concat(uM)]=_M(uM)})});var oM="[data-draggable]".concat(tM.draggable||"");return O(O({},tM),{},{draggable:oM})}function vt(hi){return Object.entries(hi).filter(function(mi){var Dn=Y(mi,2),tM=Dn[0];return Dn[1],!Ye(tM)}).map(function(mi){var Dn=Y(mi,2),tM=Dn[0],oM=Dn[1];return[k(tM),oM]}).filter(function(mi){var Dn=Y(mi,2),tM=Dn[0];return Dn[1],!J(tM)})}E("c740");function ri(hi,mi){if(!(hi instanceof mi))throw new TypeError("Cannot call a class as a function")}function ci(hi,mi){for(var Dn=0;Dn<mi.length;Dn++){var tM=mi[Dn];tM.enumerable=tM.enumerable||!1,tM.configurable=!0,"value"in tM&&(tM.writable=!0),Object.defineProperty(hi,tM.key,tM)}}function tt(hi,mi,Dn){return mi&&ci(hi.prototype,mi),Dn&&ci(hi,Dn),hi}var et=function(mi){var Dn=mi.el;return Dn},$e=function(mi,Dn){return mi.__draggable_context=Dn},Le=function(mi){return mi.__draggable_context},ot=function(){function hi(mi){var Dn=mi.nodes,tM=Dn.header,oM=Dn.default,vM=Dn.footer,dM=mi.root,hM=mi.realList;ri(this,hi),this.defaultNodes=oM,this.children=[].concat(be(tM),be(oM),be(vM)),this.externalComponent=dM.externalComponent,this.rootTransition=dM.transition,this.tag=dM.tag,this.realList=hM}return tt(hi,[{key:"render",value:function(Dn,tM){var oM=this.tag,vM=this.children,dM=this._isRootComponent,hM=dM?{default:function(){return vM}}:vM;return Dn(oM,tM,hM)}},{key:"updated",value:function(){var Dn=this.defaultNodes,tM=this.realList;Dn.forEach(function(oM,vM){$e(et(oM),{element:tM[vM],index:vM})})}},{key:"getUnderlyingVm",value:function(Dn){return Le(Dn)}},{key:"getVmIndexFromDomIndex",value:function(Dn,tM){var oM=this.defaultNodes,vM=oM.length,dM=tM.children,hM=dM.item(Dn);if(hM===null)return vM;var _M=Le(hM);if(_M)return _M.index;if(vM===0)return 0;var uM=et(oM[0]),pM=be(dM).findIndex(function(yM){return yM===uM});return Dn<pM?0:vM}},{key:"_isRootComponent",get:function(){return this.externalComponent||this.rootTransition}}]),hi}(),Oe=E("8bbf");function Ne(hi,mi){var Dn=hi[mi];return Dn?Dn():[]}function Fe(hi){var mi=hi.$slots,Dn=hi.realList,tM=hi.getKey,oM=Dn||[],vM=["header","footer"].map(function(yM){return Ne(mi,yM)}),dM=Y(vM,2),hM=dM[0],_M=dM[1],uM=mi.item;if(!uM)throw new Error("draggable element must have an item slot");var pM=oM.flatMap(function(yM,gM){return uM({element:yM,index:gM}).map(function(fM){return fM.key=tM(yM),fM.props=O(O({},fM.props||{}),{},{"data-draggable":!0}),fM})});if(pM.length!==oM.length)throw new Error("Item slot must have only one child");return{header:hM,footer:_M,default:pM}}function Je(hi){var mi=ve(hi),Dn=!Z(hi)&&!mi;return{transition:mi,externalComponent:Dn,tag:Dn?Object(Oe.resolveComponent)(hi):mi?Oe.TransitionGroup:hi}}function Dt(hi){var mi=hi.$slots,Dn=hi.tag,tM=hi.realList,oM=hi.getKey,vM=Fe({$slots:mi,realList:tM,getKey:oM}),dM=Je(Dn);return new ot({nodes:vM,root:dM,realList:tM})}function oi(hi,mi){var Dn=this;Object(Oe.nextTick)(function(){return Dn.$emit(hi.toLowerCase(),mi)})}function Bt(hi){var mi=this;return function(Dn,tM){if(mi.realList!==null)return mi["onDrag".concat(hi)](Dn,tM)}}function li(hi){var mi=this,Dn=Bt.call(this,hi);return function(tM,oM){Dn.call(mi,tM,oM),oi.call(mi,hi,tM)}}var ii=null,Ot={list:{type:Array,required:!1,default:null},modelValue:{type:Array,required:!1,default:null},itemKey:{type:[String,Function],required:!0},clone:{type:Function,default:function(mi){return mi}},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},St=["update:modelValue","change"].concat(be([].concat(be(q.manageAndEmit),be(q.emit)).map(function(hi){return hi.toLowerCase()}))),pi=Object(Oe.defineComponent)({name:"draggable",inheritAttrs:!1,props:Ot,emits:St,data:function(){return{error:!1}},render:function(){try{this.error=!1;var mi=this.$slots,Dn=this.$attrs,tM=this.tag,oM=this.componentData,vM=this.realList,dM=this.getKey,hM=Dt({$slots:mi,tag:tM,realList:vM,getKey:dM});this.componentStructure=hM;var _M=Ue({$attrs:Dn,componentData:oM});return hM.render(Oe.h,_M)}catch(uM){return this.error=!0,Object(Oe.h)("pre",{style:{color:"red"}},uM.stack)}},created:function(){this.list!==null&&this.modelValue!==null&&le.a.error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted:function(){var mi=this;if(!this.error){var Dn=this.$attrs,tM=this.$el,oM=this.componentStructure;oM.updated();var vM=Qe({$attrs:Dn,callBackBuilder:{manageAndEmit:function(_M){return li.call(mi,_M)},emit:function(_M){return oi.bind(mi,_M)},manage:function(_M){return Bt.call(mi,_M)}}}),dM=tM.nodeType===1?tM:tM.parentElement;this._sortable=new de.a(dM,vM),this.targetDomElement=dM,dM.__draggable_component__=this}},updated:function(){this.componentStructure.updated()},beforeUnmount:function(){this._sortable!==void 0&&this._sortable.destroy()},computed:{realList:function(){var mi=this.list;return mi||this.modelValue},getKey:function(){var mi=this.itemKey;return typeof mi=="function"?mi:function(Dn){return Dn[mi]}}},watch:{$attrs:{handler:function(mi){var Dn=this._sortable;Dn&&vt(mi).forEach(function(tM){var oM=Y(tM,2),vM=oM[0],dM=oM[1];Dn.option(vM,dM)})},deep:!0}},methods:{getUnderlyingVm:function(mi){return this.componentStructure.getUnderlyingVm(mi)||null},getUnderlyingPotencialDraggableComponent:function(mi){return mi.__draggable_component__},emitChanges:function(mi){var Dn=this;Object(Oe.nextTick)(function(){return Dn.$emit("change",mi)})},alterList:function(mi){if(this.list){mi(this.list);return}var Dn=be(this.modelValue);mi(Dn),this.$emit("update:modelValue",Dn)},spliceList:function(){var mi=arguments,Dn=function(oM){return oM.splice.apply(oM,be(mi))};this.alterList(Dn)},updatePosition:function(mi,Dn){var tM=function(vM){return vM.splice(Dn,0,vM.splice(mi,1)[0])};this.alterList(tM)},getRelatedContextFromMoveEvent:function(mi){var Dn=mi.to,tM=mi.related,oM=this.getUnderlyingPotencialDraggableComponent(Dn);if(!oM)return{component:oM};var vM=oM.realList,dM={list:vM,component:oM};if(Dn!==tM&&vM){var hM=oM.getUnderlyingVm(tM)||{};return O(O({},hM),dM)}return dM},getVmIndexFromDomIndex:function(mi){return this.componentStructure.getVmIndexFromDomIndex(mi,this.targetDomElement)},onDragStart:function(mi){this.context=this.getUnderlyingVm(mi.item),mi.item._underlying_vm_=this.clone(this.context.element),ii=mi.item},onDragAdd:function(mi){var Dn=mi.item._underlying_vm_;if(Dn!==void 0){Ce(mi.item);var tM=this.getVmIndexFromDomIndex(mi.newIndex);this.spliceList(tM,0,Dn);var oM={element:Dn,newIndex:tM};this.emitChanges({added:oM})}},onDragRemove:function(mi){if(ke(this.$el,mi.item,mi.oldIndex),mi.pullMode==="clone"){Ce(mi.clone);return}var Dn=this.context,tM=Dn.index,oM=Dn.element;this.spliceList(tM,1);var vM={element:oM,oldIndex:tM};this.emitChanges({removed:vM})},onDragUpdate:function(mi){Ce(mi.item),ke(mi.from,mi.item,mi.oldIndex);var Dn=this.context.index,tM=this.getVmIndexFromDomIndex(mi.newIndex);this.updatePosition(Dn,tM);var oM={element:this.context.element,oldIndex:Dn,newIndex:tM};this.emitChanges({moved:oM})},computeFutureIndex:function(mi,Dn){if(!mi.element)return 0;var tM=be(Dn.to.children).filter(function(hM){return hM.style.display!=="none"}),oM=tM.indexOf(Dn.related),vM=mi.component.getVmIndexFromDomIndex(oM),dM=tM.indexOf(ii)!==-1;return dM||!Dn.willInsertAfter?vM:vM+1},onDragMove:function(mi,Dn){var tM=this.move,oM=this.realList;if(!tM||!oM)return!0;var vM=this.getRelatedContextFromMoveEvent(mi),dM=this.computeFutureIndex(vM,mi),hM=O(O({},this.context),{},{futureIndex:dM}),_M=O(O({},mi),{},{relatedContext:vM,draggedContext:hM});return tM(_M,Dn)},onDragEnd:function(){ii=null}}}),eM=pi;I.default=eM},fb6a:function(x,I,E){var M=E("23e7"),S=E("861d"),A=E("e8b5"),T=E("23cb"),D=E("50c4"),O=E("fc6a"),j=E("8418"),$=E("b622"),W=E("1dde"),Q=E("ae40"),X=W("slice"),Y=Q("slice",{ACCESSORS:!0,0:0,1:2}),ie=$("species"),oe=[].slice,ge=Math.max;M({target:"Array",proto:!0,forced:!X||!Y},{slice:function(ze,de){var Ce=O(this),ke=D(Ce.length),le=T(ze,ke),re=T(de===void 0?ke:de,ke),P,k,B;if(A(Ce)&&(P=Ce.constructor,typeof P=="function"&&(P===Array||A(P.prototype))?P=void 0:S(P)&&(P=P[ie],P===null&&(P=void 0)),P===Array||P===void 0))return oe.call(Ce,le,re);for(k=new(P===void 0?Array:P)(ge(re-le,0)),B=0;le<re;le++,B++)le in Ce&&j(k,B,Ce[le]);return k.length=B,k}})},fc6a:function(x,I,E){var M=E("44ad"),S=E("1d80");x.exports=function(A){return M(S(A))}},fdbc:function(x,I){x.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(x,I,E){var M=E("4930");x.exports=M&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}}).default})})(vuedraggable_umd);var vuedraggable_umdExports=vuedraggable_umd.exports;const _hoisted_1$4=["width","height","viewBox"],_hoisted_2$3=createBaseVNode("path",{d:"M1 15.5H0.5V16H1V15.5ZM16.3536 15.8536C16.5488 15.6583 16.5488 15.3417 16.3536 15.1464L13.1716 11.9645C12.9763 11.7692 12.6597 11.7692 12.4645 11.9645C12.2692 12.1597 12.2692 12.4763 12.4645 12.6716L15.2929 15.5L12.4645 18.3284C12.2692 18.5237 12.2692 18.8403 12.4645 19.0355C12.6597 19.2308 12.9763 19.2308 13.1716 19.0355L16.3536 15.8536ZM0.5 0.5V15.5H1.5V0.5H0.5ZM1 16H16V15H1V16Z",fill:"#cfd4dd"},null,-1),_hoisted_3$3=[_hoisted_2$3],_sfc_main$5=defineComponent({__name:"DepthIcon",props:{width:{},height:{}},setup(u){return(f,d)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",width:f.width,height:f.width,viewBox:`0 0 ${f.width} ${f.height}`,fill:"none"},_hoisted_3$3,8,_hoisted_1$4))}}),_hoisted_1$3={class:"list-item"},_hoisted_2$2={class:"item-img"},_hoisted_3$2=["src"],_hoisted_4$1=["src"],_hoisted_5={class:"item-info"},_sfc_main$4=defineComponent({__name:"EditListItem",props:{account:{},isToken:{type:Boolean}},setup(u){const f=u,d=useSettingsStore(),_=computed(()=>f.isToken&&d.accountLayout.group?"":"handle"),x=computed(()=>f.account instanceof AccountToken),I=ref(!1),E=()=>{I.value=!0},M=computed(()=>I.value?defaultCoinIcon:f.account.coin?.iconUrl),S=ref(!1),A=()=>{S.value=!0},T=computed(()=>S.value?defaultCoinIcon:f.account.coin?.coin?.iconUrl);return(D,O)=>(openBlock(),createElementBlock("div",{class:normalizeClass(["list",D.isToken?"token":""])},[createBaseVNode("div",_hoisted_1$3,[D.isToken?(openBlock(),createBlock(_sfc_main$5,{key:0,width:20,height:20})):createCommentVNode("",!0),createBaseVNode("div",_hoisted_2$2,[createBaseVNode("img",{src:M.value,onError:O[0]||(O[0]=j=>E())},null,40,_hoisted_3$2),x.value?(openBlock(),createElementBlock("img",{key:0,class:"sub-icon",src:T.value,onError:O[1]||(O[1]=j=>A())},null,40,_hoisted_4$1)):createCommentVNode("",!0)]),createBaseVNode("div",_hoisted_5,[createBaseVNode("span",null,toDisplayString$2(D.account.coin?.name),1),createBaseVNode("span",null,toDisplayString$2(D.account.label),1)])]),createBaseVNode("div",{class:normalizeClass(["list-hamburger",_.value])},[createVNode(unref(Element$1),{name:"Hamburger",color:unref(colors).currentThemeRef.value.grey_bbb},null,8,["color"])],2)],2))}}),EditListItem=_export_sfc(_sfc_main$4,[["__scopeId","data-v-a5c59c7c"]]),EditListItem$1=Object.freeze(Object.defineProperty({__proto__:null,default:EditListItem},Symbol.toStringTag,{value:"Module"}));var Me=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof _global$2<"u"?_global$2:typeof self<"u"?self:{};function Gs(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}var pe={},zs={};zs.byteLength=cg;zs.toByteArray=lg;zs.fromByteArray=vg;var Pi=[],Ur=[],og=typeof Uint8Array<"u"?Uint8Array:Array,Gf="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var ca=0,ug=Gf.length;ca<ug;++ca)Pi[ca]=Gf[ca],Ur[Gf.charCodeAt(ca)]=ca;Ur[45]=62;Ur[95]=63;function n1(u){var f=u.length;if(f%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var d=u.indexOf("=");d===-1&&(d=f);var _=d===f?0:4-d%4;return[d,_]}function cg(u){var f=n1(u),d=f[0],_=f[1];return(d+_)*3/4-_}function hg(u,f,d){return(f+d)*3/4-d}function lg(u){var f,d=n1(u),_=d[0],x=d[1],I=new og(hg(u,_,x)),E=0,M=x>0?_-4:_,S;for(S=0;S<M;S+=4)f=Ur[u.charCodeAt(S)]<<18|Ur[u.charCodeAt(S+1)]<<12|Ur[u.charCodeAt(S+2)]<<6|Ur[u.charCodeAt(S+3)],I[E++]=f>>16&255,I[E++]=f>>8&255,I[E++]=f&255;return x===2&&(f=Ur[u.charCodeAt(S)]<<2|Ur[u.charCodeAt(S+1)]>>4,I[E++]=f&255),x===1&&(f=Ur[u.charCodeAt(S)]<<10|Ur[u.charCodeAt(S+1)]<<4|Ur[u.charCodeAt(S+2)]>>2,I[E++]=f>>8&255,I[E++]=f&255),I}function dg(u){return Pi[u>>18&63]+Pi[u>>12&63]+Pi[u>>6&63]+Pi[u&63]}function pg(u,f,d){for(var _,x=[],I=f;I<d;I+=3)_=(u[I]<<16&16711680)+(u[I+1]<<8&65280)+(u[I+2]&255),x.push(dg(_));return x.join("")}function vg(u){for(var f,d=u.length,_=d%3,x=[],I=16383,E=0,M=d-_;E<M;E+=I)x.push(pg(u,E,E+I>M?M:E+I));return _===1?(f=u[d-1],x.push(Pi[f>>2]+Pi[f<<4&63]+"==")):_===2&&(f=(u[d-2]<<8)+u[d-1],x.push(Pi[f>>10]+Pi[f>>4&63]+Pi[f<<2&63]+"=")),x.join("")}var Oc={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */Oc.read=function(u,f,d,_,x){var I,E,M=x*8-_-1,S=(1<<M)-1,A=S>>1,T=-7,D=d?x-1:0,O=d?-1:1,j=u[f+D];for(D+=O,I=j&(1<<-T)-1,j>>=-T,T+=M;T>0;I=I*256+u[f+D],D+=O,T-=8);for(E=I&(1<<-T)-1,I>>=-T,T+=_;T>0;E=E*256+u[f+D],D+=O,T-=8);if(I===0)I=1-A;else{if(I===S)return E?NaN:(j?-1:1)*(1/0);E=E+Math.pow(2,_),I=I-A}return(j?-1:1)*E*Math.pow(2,I-_)};Oc.write=function(u,f,d,_,x,I){var E,M,S,A=I*8-x-1,T=(1<<A)-1,D=T>>1,O=x===23?Math.pow(2,-24)-Math.pow(2,-77):0,j=_?0:I-1,$=_?1:-1,W=f<0||f===0&&1/f<0?1:0;for(f=Math.abs(f),isNaN(f)||f===1/0?(M=isNaN(f)?1:0,E=T):(E=Math.floor(Math.log(f)/Math.LN2),f*(S=Math.pow(2,-E))<1&&(E--,S*=2),E+D>=1?f+=O/S:f+=O*Math.pow(2,1-D),f*S>=2&&(E++,S/=2),E+D>=T?(M=0,E=T):E+D>=1?(M=(f*S-1)*Math.pow(2,x),E=E+D):(M=f*Math.pow(2,D-1)*Math.pow(2,x),E=0));x>=8;u[d+j]=M&255,j+=$,M/=256,x-=8);for(E=E<<x|M,A+=x;A>0;u[d+j]=E&255,j+=$,E/=256,A-=8);u[d+j-$]|=W*128};/*!
* The buffer module from node.js, for the browser.
*
* @author   Feross Aboukhadijeh <https://feross.org>
* @license  MIT
*/(function(u){var f=zs,d=Oc,_=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;u.Buffer=M,u.SlowBuffer=Y,u.INSPECT_MAX_BYTES=50;var x=2147483647;u.kMaxLength=x,M.TYPED_ARRAY_SUPPORT=I(),!M.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function I(){try{var Oe=new Uint8Array(1),Ne={foo:function(){return 42}};return Object.setPrototypeOf(Ne,Uint8Array.prototype),Object.setPrototypeOf(Oe,Ne),Oe.foo()===42}catch{return!1}}Object.defineProperty(M.prototype,"parent",{enumerable:!0,get:function(){if(M.isBuffer(this))return this.buffer}}),Object.defineProperty(M.prototype,"offset",{enumerable:!0,get:function(){if(M.isBuffer(this))return this.byteOffset}});function E(Oe){if(Oe>x)throw new RangeError('The value "'+Oe+'" is invalid for option "size"');var Ne=new Uint8Array(Oe);return Object.setPrototypeOf(Ne,M.prototype),Ne}function M(Oe,Ne,Fe){if(typeof Oe=="number"){if(typeof Ne=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return D(Oe)}return S(Oe,Ne,Fe)}M.poolSize=8192;function S(Oe,Ne,Fe){if(typeof Oe=="string")return O(Oe,Ne);if(ArrayBuffer.isView(Oe))return $(Oe);if(Oe==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Oe);if($e(Oe,ArrayBuffer)||Oe&&$e(Oe.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&($e(Oe,SharedArrayBuffer)||Oe&&$e(Oe.buffer,SharedArrayBuffer)))return W(Oe,Ne,Fe);if(typeof Oe=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var Je=Oe.valueOf&&Oe.valueOf();if(Je!=null&&Je!==Oe)return M.from(Je,Ne,Fe);var Dt=Q(Oe);if(Dt)return Dt;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Oe[Symbol.toPrimitive]=="function")return M.from(Oe[Symbol.toPrimitive]("string"),Ne,Fe);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Oe)}M.from=function(Oe,Ne,Fe){return S(Oe,Ne,Fe)},Object.setPrototypeOf(M.prototype,Uint8Array.prototype),Object.setPrototypeOf(M,Uint8Array);function A(Oe){if(typeof Oe!="number")throw new TypeError('"size" argument must be of type number');if(Oe<0)throw new RangeError('The value "'+Oe+'" is invalid for option "size"')}function T(Oe,Ne,Fe){return A(Oe),Oe<=0?E(Oe):Ne!==void 0?typeof Fe=="string"?E(Oe).fill(Ne,Fe):E(Oe).fill(Ne):E(Oe)}M.alloc=function(Oe,Ne,Fe){return T(Oe,Ne,Fe)};function D(Oe){return A(Oe),E(Oe<0?0:X(Oe)|0)}M.allocUnsafe=function(Oe){return D(Oe)},M.allocUnsafeSlow=function(Oe){return D(Oe)};function O(Oe,Ne){if((typeof Ne!="string"||Ne==="")&&(Ne="utf8"),!M.isEncoding(Ne))throw new TypeError("Unknown encoding: "+Ne);var Fe=ie(Oe,Ne)|0,Je=E(Fe),Dt=Je.write(Oe,Ne);return Dt!==Fe&&(Je=Je.slice(0,Dt)),Je}function j(Oe){for(var Ne=Oe.length<0?0:X(Oe.length)|0,Fe=E(Ne),Je=0;Je<Ne;Je+=1)Fe[Je]=Oe[Je]&255;return Fe}function $(Oe){if($e(Oe,Uint8Array)){var Ne=new Uint8Array(Oe);return W(Ne.buffer,Ne.byteOffset,Ne.byteLength)}return j(Oe)}function W(Oe,Ne,Fe){if(Ne<0||Oe.byteLength<Ne)throw new RangeError('"offset" is outside of buffer bounds');if(Oe.byteLength<Ne+(Fe||0))throw new RangeError('"length" is outside of buffer bounds');var Je;return Ne===void 0&&Fe===void 0?Je=new Uint8Array(Oe):Fe===void 0?Je=new Uint8Array(Oe,Ne):Je=new Uint8Array(Oe,Ne,Fe),Object.setPrototypeOf(Je,M.prototype),Je}function Q(Oe){if(M.isBuffer(Oe)){var Ne=X(Oe.length)|0,Fe=E(Ne);return Fe.length===0||Oe.copy(Fe,0,0,Ne),Fe}if(Oe.length!==void 0)return typeof Oe.length!="number"||Le(Oe.length)?E(0):j(Oe);if(Oe.type==="Buffer"&&Array.isArray(Oe.data))return j(Oe.data)}function X(Oe){if(Oe>=x)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+x.toString(16)+" bytes");return Oe|0}function Y(Oe){return+Oe!=Oe&&(Oe=0),M.alloc(+Oe)}M.isBuffer=function(Oe){return Oe!=null&&Oe._isBuffer===!0&&Oe!==M.prototype},M.compare=function(Oe,Ne){if($e(Oe,Uint8Array)&&(Oe=M.from(Oe,Oe.offset,Oe.byteLength)),$e(Ne,Uint8Array)&&(Ne=M.from(Ne,Ne.offset,Ne.byteLength)),!M.isBuffer(Oe)||!M.isBuffer(Ne))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Oe===Ne)return 0;for(var Fe=Oe.length,Je=Ne.length,Dt=0,oi=Math.min(Fe,Je);Dt<oi;++Dt)if(Oe[Dt]!==Ne[Dt]){Fe=Oe[Dt],Je=Ne[Dt];break}return Fe<Je?-1:Je<Fe?1:0},M.isEncoding=function(Oe){switch(String(Oe).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},M.concat=function(Oe,Ne){if(!Array.isArray(Oe))throw new TypeError('"list" argument must be an Array of Buffers');if(Oe.length===0)return M.alloc(0);var Fe;if(Ne===void 0)for(Ne=0,Fe=0;Fe<Oe.length;++Fe)Ne+=Oe[Fe].length;var Je=M.allocUnsafe(Ne),Dt=0;for(Fe=0;Fe<Oe.length;++Fe){var oi=Oe[Fe];if($e(oi,Uint8Array))Dt+oi.length>Je.length?M.from(oi).copy(Je,Dt):Uint8Array.prototype.set.call(Je,oi,Dt);else if(M.isBuffer(oi))oi.copy(Je,Dt);else throw new TypeError('"list" argument must be an Array of Buffers');Dt+=oi.length}return Je};function ie(Oe,Ne){if(M.isBuffer(Oe))return Oe.length;if(ArrayBuffer.isView(Oe)||$e(Oe,ArrayBuffer))return Oe.byteLength;if(typeof Oe!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Oe);var Fe=Oe.length,Je=arguments.length>2&&arguments[2]===!0;if(!Je&&Fe===0)return 0;for(var Dt=!1;;)switch(Ne){case"ascii":case"latin1":case"binary":return Fe;case"utf8":case"utf-8":return vt(Oe).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Fe*2;case"hex":return Fe>>>1;case"base64":return tt(Oe).length;default:if(Dt)return Je?-1:vt(Oe).length;Ne=(""+Ne).toLowerCase(),Dt=!0}}M.byteLength=ie;function oe(Oe,Ne,Fe){var Je=!1;if((Ne===void 0||Ne<0)&&(Ne=0),Ne>this.length||((Fe===void 0||Fe>this.length)&&(Fe=this.length),Fe<=0)||(Fe>>>=0,Ne>>>=0,Fe<=Ne))return"";for(Oe||(Oe="utf8");;)switch(Oe){case"hex":return q(this,Ne,Fe);case"utf8":case"utf-8":return k(this,Ne,Fe);case"ascii":return ee(this,Ne,Fe);case"latin1":case"binary":return H(this,Ne,Fe);case"base64":return P(this,Ne,Fe);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return J(this,Ne,Fe);default:if(Je)throw new TypeError("Unknown encoding: "+Oe);Oe=(Oe+"").toLowerCase(),Je=!0}}M.prototype._isBuffer=!0;function ge(Oe,Ne,Fe){var Je=Oe[Ne];Oe[Ne]=Oe[Fe],Oe[Fe]=Je}M.prototype.swap16=function(){var Oe=this.length;if(Oe%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var Ne=0;Ne<Oe;Ne+=2)ge(this,Ne,Ne+1);return this},M.prototype.swap32=function(){var Oe=this.length;if(Oe%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var Ne=0;Ne<Oe;Ne+=4)ge(this,Ne,Ne+3),ge(this,Ne+1,Ne+2);return this},M.prototype.swap64=function(){var Oe=this.length;if(Oe%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var Ne=0;Ne<Oe;Ne+=8)ge(this,Ne,Ne+7),ge(this,Ne+1,Ne+6),ge(this,Ne+2,Ne+5),ge(this,Ne+3,Ne+4);return this},M.prototype.toString=function(){var Oe=this.length;return Oe===0?"":arguments.length===0?k(this,0,Oe):oe.apply(this,arguments)},M.prototype.toLocaleString=M.prototype.toString,M.prototype.equals=function(Oe){if(!M.isBuffer(Oe))throw new TypeError("Argument must be a Buffer");return this===Oe?!0:M.compare(this,Oe)===0},M.prototype.inspect=function(){var Oe="",Ne=u.INSPECT_MAX_BYTES;return Oe=this.toString("hex",0,Ne).replace(/(.{2})/g,"$1 ").trim(),this.length>Ne&&(Oe+=" ... "),"<Buffer "+Oe+">"},_&&(M.prototype[_]=M.prototype.inspect),M.prototype.compare=function(Oe,Ne,Fe,Je,Dt){if($e(Oe,Uint8Array)&&(Oe=M.from(Oe,Oe.offset,Oe.byteLength)),!M.isBuffer(Oe))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Oe);if(Ne===void 0&&(Ne=0),Fe===void 0&&(Fe=Oe?Oe.length:0),Je===void 0&&(Je=0),Dt===void 0&&(Dt=this.length),Ne<0||Fe>Oe.length||Je<0||Dt>this.length)throw new RangeError("out of range index");if(Je>=Dt&&Ne>=Fe)return 0;if(Je>=Dt)return-1;if(Ne>=Fe)return 1;if(Ne>>>=0,Fe>>>=0,Je>>>=0,Dt>>>=0,this===Oe)return 0;for(var oi=Dt-Je,Bt=Fe-Ne,li=Math.min(oi,Bt),ii=this.slice(Je,Dt),Ot=Oe.slice(Ne,Fe),St=0;St<li;++St)if(ii[St]!==Ot[St]){oi=ii[St],Bt=Ot[St];break}return oi<Bt?-1:Bt<oi?1:0};function be(Oe,Ne,Fe,Je,Dt){if(Oe.length===0)return-1;if(typeof Fe=="string"?(Je=Fe,Fe=0):Fe>2147483647?Fe=2147483647:Fe<-2147483648&&(Fe=-2147483648),Fe=+Fe,Le(Fe)&&(Fe=Dt?0:Oe.length-1),Fe<0&&(Fe=Oe.length+Fe),Fe>=Oe.length){if(Dt)return-1;Fe=Oe.length-1}else if(Fe<0)if(Dt)Fe=0;else return-1;if(typeof Ne=="string"&&(Ne=M.from(Ne,Je)),M.isBuffer(Ne))return Ne.length===0?-1:ze(Oe,Ne,Fe,Je,Dt);if(typeof Ne=="number")return Ne=Ne&255,typeof Uint8Array.prototype.indexOf=="function"?Dt?Uint8Array.prototype.indexOf.call(Oe,Ne,Fe):Uint8Array.prototype.lastIndexOf.call(Oe,Ne,Fe):ze(Oe,[Ne],Fe,Je,Dt);throw new TypeError("val must be string, number or Buffer")}function ze(Oe,Ne,Fe,Je,Dt){var oi=1,Bt=Oe.length,li=Ne.length;if(Je!==void 0&&(Je=String(Je).toLowerCase(),Je==="ucs2"||Je==="ucs-2"||Je==="utf16le"||Je==="utf-16le")){if(Oe.length<2||Ne.length<2)return-1;oi=2,Bt/=2,li/=2,Fe/=2}function ii(hi,mi){return oi===1?hi[mi]:hi.readUInt16BE(mi*oi)}var Ot;if(Dt){var St=-1;for(Ot=Fe;Ot<Bt;Ot++)if(ii(Oe,Ot)===ii(Ne,St===-1?0:Ot-St)){if(St===-1&&(St=Ot),Ot-St+1===li)return St*oi}else St!==-1&&(Ot-=Ot-St),St=-1}else for(Fe+li>Bt&&(Fe=Bt-li),Ot=Fe;Ot>=0;Ot--){for(var pi=!0,eM=0;eM<li;eM++)if(ii(Oe,Ot+eM)!==ii(Ne,eM)){pi=!1;break}if(pi)return Ot}return-1}M.prototype.includes=function(Oe,Ne,Fe){return this.indexOf(Oe,Ne,Fe)!==-1},M.prototype.indexOf=function(Oe,Ne,Fe){return be(this,Oe,Ne,Fe,!0)},M.prototype.lastIndexOf=function(Oe,Ne,Fe){return be(this,Oe,Ne,Fe,!1)};function de(Oe,Ne,Fe,Je){Fe=Number(Fe)||0;var Dt=Oe.length-Fe;Je?(Je=Number(Je),Je>Dt&&(Je=Dt)):Je=Dt;var oi=Ne.length;Je>oi/2&&(Je=oi/2);for(var Bt=0;Bt<Je;++Bt){var li=parseInt(Ne.substr(Bt*2,2),16);if(Le(li))return Bt;Oe[Fe+Bt]=li}return Bt}function Ce(Oe,Ne,Fe,Je){return et(vt(Ne,Oe.length-Fe),Oe,Fe,Je)}function ke(Oe,Ne,Fe,Je){return et(ri(Ne),Oe,Fe,Je)}function le(Oe,Ne,Fe,Je){return et(tt(Ne),Oe,Fe,Je)}function re(Oe,Ne,Fe,Je){return et(ci(Ne,Oe.length-Fe),Oe,Fe,Je)}M.prototype.write=function(Oe,Ne,Fe,Je){if(Ne===void 0)Je="utf8",Fe=this.length,Ne=0;else if(Fe===void 0&&typeof Ne=="string")Je=Ne,Fe=this.length,Ne=0;else if(isFinite(Ne))Ne=Ne>>>0,isFinite(Fe)?(Fe=Fe>>>0,Je===void 0&&(Je="utf8")):(Je=Fe,Fe=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var Dt=this.length-Ne;if((Fe===void 0||Fe>Dt)&&(Fe=Dt),Oe.length>0&&(Fe<0||Ne<0)||Ne>this.length)throw new RangeError("Attempt to write outside buffer bounds");Je||(Je="utf8");for(var oi=!1;;)switch(Je){case"hex":return de(this,Oe,Ne,Fe);case"utf8":case"utf-8":return Ce(this,Oe,Ne,Fe);case"ascii":case"latin1":case"binary":return ke(this,Oe,Ne,Fe);case"base64":return le(this,Oe,Ne,Fe);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return re(this,Oe,Ne,Fe);default:if(oi)throw new TypeError("Unknown encoding: "+Je);Je=(""+Je).toLowerCase(),oi=!0}},M.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function P(Oe,Ne,Fe){return Ne===0&&Fe===Oe.length?f.fromByteArray(Oe):f.fromByteArray(Oe.slice(Ne,Fe))}function k(Oe,Ne,Fe){Fe=Math.min(Oe.length,Fe);for(var Je=[],Dt=Ne;Dt<Fe;){var oi=Oe[Dt],Bt=null,li=oi>239?4:oi>223?3:oi>191?2:1;if(Dt+li<=Fe){var ii,Ot,St,pi;switch(li){case 1:oi<128&&(Bt=oi);break;case 2:ii=Oe[Dt+1],(ii&192)===128&&(pi=(oi&31)<<6|ii&63,pi>127&&(Bt=pi));break;case 3:ii=Oe[Dt+1],Ot=Oe[Dt+2],(ii&192)===128&&(Ot&192)===128&&(pi=(oi&15)<<12|(ii&63)<<6|Ot&63,pi>2047&&(pi<55296||pi>57343)&&(Bt=pi));break;case 4:ii=Oe[Dt+1],Ot=Oe[Dt+2],St=Oe[Dt+3],(ii&192)===128&&(Ot&192)===128&&(St&192)===128&&(pi=(oi&15)<<18|(ii&63)<<12|(Ot&63)<<6|St&63,pi>65535&&pi<1114112&&(Bt=pi))}}Bt===null?(Bt=65533,li=1):Bt>65535&&(Bt-=65536,Je.push(Bt>>>10&1023|55296),Bt=56320|Bt&1023),Je.push(Bt),Dt+=li}return z(Je)}var B=4096;function z(Oe){var Ne=Oe.length;if(Ne<=B)return String.fromCharCode.apply(String,Oe);for(var Fe="",Je=0;Je<Ne;)Fe+=String.fromCharCode.apply(String,Oe.slice(Je,Je+=B));return Fe}function ee(Oe,Ne,Fe){var Je="";Fe=Math.min(Oe.length,Fe);for(var Dt=Ne;Dt<Fe;++Dt)Je+=String.fromCharCode(Oe[Dt]&127);return Je}function H(Oe,Ne,Fe){var Je="";Fe=Math.min(Oe.length,Fe);for(var Dt=Ne;Dt<Fe;++Dt)Je+=String.fromCharCode(Oe[Dt]);return Je}function q(Oe,Ne,Fe){var Je=Oe.length;(!Ne||Ne<0)&&(Ne=0),(!Fe||Fe<0||Fe>Je)&&(Fe=Je);for(var Dt="",oi=Ne;oi<Fe;++oi)Dt+=ot[Oe[oi]];return Dt}function J(Oe,Ne,Fe){for(var Je=Oe.slice(Ne,Fe),Dt="",oi=0;oi<Je.length-1;oi+=2)Dt+=String.fromCharCode(Je[oi]+Je[oi+1]*256);return Dt}M.prototype.slice=function(Oe,Ne){var Fe=this.length;Oe=~~Oe,Ne=Ne===void 0?Fe:~~Ne,Oe<0?(Oe+=Fe,Oe<0&&(Oe=0)):Oe>Fe&&(Oe=Fe),Ne<0?(Ne+=Fe,Ne<0&&(Ne=0)):Ne>Fe&&(Ne=Fe),Ne<Oe&&(Ne=Oe);var Je=this.subarray(Oe,Ne);return Object.setPrototypeOf(Je,M.prototype),Je};function U(Oe,Ne,Fe){if(Oe%1!==0||Oe<0)throw new RangeError("offset is not uint");if(Oe+Ne>Fe)throw new RangeError("Trying to access beyond buffer length")}M.prototype.readUintLE=M.prototype.readUIntLE=function(Oe,Ne,Fe){Oe=Oe>>>0,Ne=Ne>>>0,Fe||U(Oe,Ne,this.length);for(var Je=this[Oe],Dt=1,oi=0;++oi<Ne&&(Dt*=256);)Je+=this[Oe+oi]*Dt;return Je},M.prototype.readUintBE=M.prototype.readUIntBE=function(Oe,Ne,Fe){Oe=Oe>>>0,Ne=Ne>>>0,Fe||U(Oe,Ne,this.length);for(var Je=this[Oe+--Ne],Dt=1;Ne>0&&(Dt*=256);)Je+=this[Oe+--Ne]*Dt;return Je},M.prototype.readUint8=M.prototype.readUInt8=function(Oe,Ne){return Oe=Oe>>>0,Ne||U(Oe,1,this.length),this[Oe]},M.prototype.readUint16LE=M.prototype.readUInt16LE=function(Oe,Ne){return Oe=Oe>>>0,Ne||U(Oe,2,this.length),this[Oe]|this[Oe+1]<<8},M.prototype.readUint16BE=M.prototype.readUInt16BE=function(Oe,Ne){return Oe=Oe>>>0,Ne||U(Oe,2,this.length),this[Oe]<<8|this[Oe+1]},M.prototype.readUint32LE=M.prototype.readUInt32LE=function(Oe,Ne){return Oe=Oe>>>0,Ne||U(Oe,4,this.length),(this[Oe]|this[Oe+1]<<8|this[Oe+2]<<16)+this[Oe+3]*16777216},M.prototype.readUint32BE=M.prototype.readUInt32BE=function(Oe,Ne){return Oe=Oe>>>0,Ne||U(Oe,4,this.length),this[Oe]*16777216+(this[Oe+1]<<16|this[Oe+2]<<8|this[Oe+3])},M.prototype.readIntLE=function(Oe,Ne,Fe){Oe=Oe>>>0,Ne=Ne>>>0,Fe||U(Oe,Ne,this.length);for(var Je=this[Oe],Dt=1,oi=0;++oi<Ne&&(Dt*=256);)Je+=this[Oe+oi]*Dt;return Dt*=128,Je>=Dt&&(Je-=Math.pow(2,8*Ne)),Je},M.prototype.readIntBE=function(Oe,Ne,Fe){Oe=Oe>>>0,Ne=Ne>>>0,Fe||U(Oe,Ne,this.length);for(var Je=Ne,Dt=1,oi=this[Oe+--Je];Je>0&&(Dt*=256);)oi+=this[Oe+--Je]*Dt;return Dt*=128,oi>=Dt&&(oi-=Math.pow(2,8*Ne)),oi},M.prototype.readInt8=function(Oe,Ne){return Oe=Oe>>>0,Ne||U(Oe,1,this.length),this[Oe]&128?(255-this[Oe]+1)*-1:this[Oe]},M.prototype.readInt16LE=function(Oe,Ne){Oe=Oe>>>0,Ne||U(Oe,2,this.length);var Fe=this[Oe]|this[Oe+1]<<8;return Fe&32768?Fe|4294901760:Fe},M.prototype.readInt16BE=function(Oe,Ne){Oe=Oe>>>0,Ne||U(Oe,2,this.length);var Fe=this[Oe+1]|this[Oe]<<8;return Fe&32768?Fe|4294901760:Fe},M.prototype.readInt32LE=function(Oe,Ne){return Oe=Oe>>>0,Ne||U(Oe,4,this.length),this[Oe]|this[Oe+1]<<8|this[Oe+2]<<16|this[Oe+3]<<24},M.prototype.readInt32BE=function(Oe,Ne){return Oe=Oe>>>0,Ne||U(Oe,4,this.length),this[Oe]<<24|this[Oe+1]<<16|this[Oe+2]<<8|this[Oe+3]},M.prototype.readFloatLE=function(Oe,Ne){return Oe=Oe>>>0,Ne||U(Oe,4,this.length),d.read(this,Oe,!0,23,4)},M.prototype.readFloatBE=function(Oe,Ne){return Oe=Oe>>>0,Ne||U(Oe,4,this.length),d.read(this,Oe,!1,23,4)},M.prototype.readDoubleLE=function(Oe,Ne){return Oe=Oe>>>0,Ne||U(Oe,8,this.length),d.read(this,Oe,!0,52,8)},M.prototype.readDoubleBE=function(Oe,Ne){return Oe=Oe>>>0,Ne||U(Oe,8,this.length),d.read(this,Oe,!1,52,8)};function Z(Oe,Ne,Fe,Je,Dt,oi){if(!M.isBuffer(Oe))throw new TypeError('"buffer" argument must be a Buffer instance');if(Ne>Dt||Ne<oi)throw new RangeError('"value" argument is out of bounds');if(Fe+Je>Oe.length)throw new RangeError("Index out of range")}M.prototype.writeUintLE=M.prototype.writeUIntLE=function(Oe,Ne,Fe,Je){if(Oe=+Oe,Ne=Ne>>>0,Fe=Fe>>>0,!Je){var Dt=Math.pow(2,8*Fe)-1;Z(this,Oe,Ne,Fe,Dt,0)}var oi=1,Bt=0;for(this[Ne]=Oe&255;++Bt<Fe&&(oi*=256);)this[Ne+Bt]=Oe/oi&255;return Ne+Fe},M.prototype.writeUintBE=M.prototype.writeUIntBE=function(Oe,Ne,Fe,Je){if(Oe=+Oe,Ne=Ne>>>0,Fe=Fe>>>0,!Je){var Dt=Math.pow(2,8*Fe)-1;Z(this,Oe,Ne,Fe,Dt,0)}var oi=Fe-1,Bt=1;for(this[Ne+oi]=Oe&255;--oi>=0&&(Bt*=256);)this[Ne+oi]=Oe/Bt&255;return Ne+Fe},M.prototype.writeUint8=M.prototype.writeUInt8=function(Oe,Ne,Fe){return Oe=+Oe,Ne=Ne>>>0,Fe||Z(this,Oe,Ne,1,255,0),this[Ne]=Oe&255,Ne+1},M.prototype.writeUint16LE=M.prototype.writeUInt16LE=function(Oe,Ne,Fe){return Oe=+Oe,Ne=Ne>>>0,Fe||Z(this,Oe,Ne,2,65535,0),this[Ne]=Oe&255,this[Ne+1]=Oe>>>8,Ne+2},M.prototype.writeUint16BE=M.prototype.writeUInt16BE=function(Oe,Ne,Fe){return Oe=+Oe,Ne=Ne>>>0,Fe||Z(this,Oe,Ne,2,65535,0),this[Ne]=Oe>>>8,this[Ne+1]=Oe&255,Ne+2},M.prototype.writeUint32LE=M.prototype.writeUInt32LE=function(Oe,Ne,Fe){return Oe=+Oe,Ne=Ne>>>0,Fe||Z(this,Oe,Ne,4,4294967295,0),this[Ne+3]=Oe>>>24,this[Ne+2]=Oe>>>16,this[Ne+1]=Oe>>>8,this[Ne]=Oe&255,Ne+4},M.prototype.writeUint32BE=M.prototype.writeUInt32BE=function(Oe,Ne,Fe){return Oe=+Oe,Ne=Ne>>>0,Fe||Z(this,Oe,Ne,4,4294967295,0),this[Ne]=Oe>>>24,this[Ne+1]=Oe>>>16,this[Ne+2]=Oe>>>8,this[Ne+3]=Oe&255,Ne+4},M.prototype.writeIntLE=function(Oe,Ne,Fe,Je){if(Oe=+Oe,Ne=Ne>>>0,!Je){var Dt=Math.pow(2,8*Fe-1);Z(this,Oe,Ne,Fe,Dt-1,-Dt)}var oi=0,Bt=1,li=0;for(this[Ne]=Oe&255;++oi<Fe&&(Bt*=256);)Oe<0&&li===0&&this[Ne+oi-1]!==0&&(li=1),this[Ne+oi]=(Oe/Bt>>0)-li&255;return Ne+Fe},M.prototype.writeIntBE=function(Oe,Ne,Fe,Je){if(Oe=+Oe,Ne=Ne>>>0,!Je){var Dt=Math.pow(2,8*Fe-1);Z(this,Oe,Ne,Fe,Dt-1,-Dt)}var oi=Fe-1,Bt=1,li=0;for(this[Ne+oi]=Oe&255;--oi>=0&&(Bt*=256);)Oe<0&&li===0&&this[Ne+oi+1]!==0&&(li=1),this[Ne+oi]=(Oe/Bt>>0)-li&255;return Ne+Fe},M.prototype.writeInt8=function(Oe,Ne,Fe){return Oe=+Oe,Ne=Ne>>>0,Fe||Z(this,Oe,Ne,1,127,-128),Oe<0&&(Oe=255+Oe+1),this[Ne]=Oe&255,Ne+1},M.prototype.writeInt16LE=function(Oe,Ne,Fe){return Oe=+Oe,Ne=Ne>>>0,Fe||Z(this,Oe,Ne,2,32767,-32768),this[Ne]=Oe&255,this[Ne+1]=Oe>>>8,Ne+2},M.prototype.writeInt16BE=function(Oe,Ne,Fe){return Oe=+Oe,Ne=Ne>>>0,Fe||Z(this,Oe,Ne,2,32767,-32768),this[Ne]=Oe>>>8,this[Ne+1]=Oe&255,Ne+2},M.prototype.writeInt32LE=function(Oe,Ne,Fe){return Oe=+Oe,Ne=Ne>>>0,Fe||Z(this,Oe,Ne,4,2147483647,-2147483648),this[Ne]=Oe&255,this[Ne+1]=Oe>>>8,this[Ne+2]=Oe>>>16,this[Ne+3]=Oe>>>24,Ne+4},M.prototype.writeInt32BE=function(Oe,Ne,Fe){return Oe=+Oe,Ne=Ne>>>0,Fe||Z(this,Oe,Ne,4,2147483647,-2147483648),Oe<0&&(Oe=4294967295+Oe+1),this[Ne]=Oe>>>24,this[Ne+1]=Oe>>>16,this[Ne+2]=Oe>>>8,this[Ne+3]=Oe&255,Ne+4};function ve(Oe,Ne,Fe,Je,Dt,oi){if(Fe+Je>Oe.length)throw new RangeError("Index out of range");if(Fe<0)throw new RangeError("Index out of range")}function Ye(Oe,Ne,Fe,Je,Dt){return Ne=+Ne,Fe=Fe>>>0,Dt||ve(Oe,Ne,Fe,4),d.write(Oe,Ne,Fe,Je,23,4),Fe+4}M.prototype.writeFloatLE=function(Oe,Ne,Fe){return Ye(this,Oe,Ne,!0,Fe)},M.prototype.writeFloatBE=function(Oe,Ne,Fe){return Ye(this,Oe,Ne,!1,Fe)};function rt(Oe,Ne,Fe,Je,Dt){return Ne=+Ne,Fe=Fe>>>0,Dt||ve(Oe,Ne,Fe,8),d.write(Oe,Ne,Fe,Je,52,8),Fe+8}M.prototype.writeDoubleLE=function(Oe,Ne,Fe){return rt(this,Oe,Ne,!0,Fe)},M.prototype.writeDoubleBE=function(Oe,Ne,Fe){return rt(this,Oe,Ne,!1,Fe)},M.prototype.copy=function(Oe,Ne,Fe,Je){if(!M.isBuffer(Oe))throw new TypeError("argument should be a Buffer");if(Fe||(Fe=0),!Je&&Je!==0&&(Je=this.length),Ne>=Oe.length&&(Ne=Oe.length),Ne||(Ne=0),Je>0&&Je<Fe&&(Je=Fe),Je===Fe||Oe.length===0||this.length===0)return 0;if(Ne<0)throw new RangeError("targetStart out of bounds");if(Fe<0||Fe>=this.length)throw new RangeError("Index out of range");if(Je<0)throw new RangeError("sourceEnd out of bounds");Je>this.length&&(Je=this.length),Oe.length-Ne<Je-Fe&&(Je=Oe.length-Ne+Fe);var Dt=Je-Fe;return this===Oe&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(Ne,Fe,Je):Uint8Array.prototype.set.call(Oe,this.subarray(Fe,Je),Ne),Dt},M.prototype.fill=function(Oe,Ne,Fe,Je){if(typeof Oe=="string"){if(typeof Ne=="string"?(Je=Ne,Ne=0,Fe=this.length):typeof Fe=="string"&&(Je=Fe,Fe=this.length),Je!==void 0&&typeof Je!="string")throw new TypeError("encoding must be a string");if(typeof Je=="string"&&!M.isEncoding(Je))throw new TypeError("Unknown encoding: "+Je);if(Oe.length===1){var Dt=Oe.charCodeAt(0);(Je==="utf8"&&Dt<128||Je==="latin1")&&(Oe=Dt)}}else typeof Oe=="number"?Oe=Oe&255:typeof Oe=="boolean"&&(Oe=Number(Oe));if(Ne<0||this.length<Ne||this.length<Fe)throw new RangeError("Out of range index");if(Fe<=Ne)return this;Ne=Ne>>>0,Fe=Fe===void 0?this.length:Fe>>>0,Oe||(Oe=0);var oi;if(typeof Oe=="number")for(oi=Ne;oi<Fe;++oi)this[oi]=Oe;else{var Bt=M.isBuffer(Oe)?Oe:M.from(Oe,Je),li=Bt.length;if(li===0)throw new TypeError('The value "'+Oe+'" is invalid for argument "value"');for(oi=0;oi<Fe-Ne;++oi)this[oi+Ne]=Bt[oi%li]}return this};var Ue=/[^+/0-9A-Za-z-_]/g;function Qe(Oe){if(Oe=Oe.split("=")[0],Oe=Oe.trim().replace(Ue,""),Oe.length<2)return"";for(;Oe.length%4!==0;)Oe=Oe+"=";return Oe}function vt(Oe,Ne){Ne=Ne||1/0;for(var Fe,Je=Oe.length,Dt=null,oi=[],Bt=0;Bt<Je;++Bt){if(Fe=Oe.charCodeAt(Bt),Fe>55295&&Fe<57344){if(!Dt){if(Fe>56319){(Ne-=3)>-1&&oi.push(239,191,189);continue}else if(Bt+1===Je){(Ne-=3)>-1&&oi.push(239,191,189);continue}Dt=Fe;continue}if(Fe<56320){(Ne-=3)>-1&&oi.push(239,191,189),Dt=Fe;continue}Fe=(Dt-55296<<10|Fe-56320)+65536}else Dt&&(Ne-=3)>-1&&oi.push(239,191,189);if(Dt=null,Fe<128){if((Ne-=1)<0)break;oi.push(Fe)}else if(Fe<2048){if((Ne-=2)<0)break;oi.push(Fe>>6|192,Fe&63|128)}else if(Fe<65536){if((Ne-=3)<0)break;oi.push(Fe>>12|224,Fe>>6&63|128,Fe&63|128)}else if(Fe<1114112){if((Ne-=4)<0)break;oi.push(Fe>>18|240,Fe>>12&63|128,Fe>>6&63|128,Fe&63|128)}else throw new Error("Invalid code point")}return oi}function ri(Oe){for(var Ne=[],Fe=0;Fe<Oe.length;++Fe)Ne.push(Oe.charCodeAt(Fe)&255);return Ne}function ci(Oe,Ne){for(var Fe,Je,Dt,oi=[],Bt=0;Bt<Oe.length&&!((Ne-=2)<0);++Bt)Fe=Oe.charCodeAt(Bt),Je=Fe>>8,Dt=Fe%256,oi.push(Dt),oi.push(Je);return oi}function tt(Oe){return f.toByteArray(Qe(Oe))}function et(Oe,Ne,Fe,Je){for(var Dt=0;Dt<Je&&!(Dt+Fe>=Ne.length||Dt>=Oe.length);++Dt)Ne[Dt+Fe]=Oe[Dt];return Dt}function $e(Oe,Ne){return Oe instanceof Ne||Oe!=null&&Oe.constructor!=null&&Oe.constructor.name!=null&&Oe.constructor.name===Ne.name}function Le(Oe){return Oe!==Oe}var ot=function(){for(var Oe="0123456789abcdef",Ne=new Array(256),Fe=0;Fe<16;++Fe)for(var Je=Fe*16,Dt=0;Dt<16;++Dt)Ne[Je+Dt]=Oe[Fe]+Oe[Dt];return Ne}()})(pe);var a1={exports:{}},$t=a1.exports={},Ri,Ni;function Gu(){throw new Error("setTimeout has not been defined")}function zu(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Ri=setTimeout:Ri=Gu}catch{Ri=Gu}try{typeof clearTimeout=="function"?Ni=clearTimeout:Ni=zu}catch{Ni=zu}})();function s1(u){if(Ri===setTimeout)return setTimeout(u,0);if((Ri===Gu||!Ri)&&setTimeout)return Ri=setTimeout,setTimeout(u,0);try{return Ri(u,0)}catch{try{return Ri.call(null,u,0)}catch{return Ri.call(this,u,0)}}}function yg(u){if(Ni===clearTimeout)return clearTimeout(u);if((Ni===zu||!Ni)&&clearTimeout)return Ni=clearTimeout,clearTimeout(u);try{return Ni(u)}catch{try{return Ni.call(null,u)}catch{return Ni.call(this,u)}}}var en$1=[],xa=!1,Hn,us=-1;function gg(){!xa||!Hn||(xa=!1,Hn.length?en$1=Hn.concat(en$1):us=-1,en$1.length&&f1())}function f1(){if(!xa){var u=s1(gg);xa=!0;for(var f=en$1.length;f;){for(Hn=en$1,en$1=[];++us<f;)Hn&&Hn[us].run();us=-1,f=en$1.length}Hn=null,xa=!1,yg(u)}}$t.nextTick=function(u){var f=new Array(arguments.length-1);if(arguments.length>1)for(var d=1;d<arguments.length;d++)f[d-1]=arguments[d];en$1.push(new o1(u,f)),en$1.length===1&&!xa&&s1(f1)};function o1(u,f){this.fun=u,this.array=f}o1.prototype.run=function(){this.fun.apply(null,this.array)};$t.title="browser";$t.browser=!0;$t.env={};$t.argv=[];$t.version="";$t.versions={};function cn(){}$t.on=cn;$t.addListener=cn;$t.once=cn;$t.off=cn;$t.removeListener=cn;$t.removeAllListeners=cn;$t.emit=cn;$t.prependListener=cn;$t.prependOnceListener=cn;$t.listeners=function(u){return[]};$t.binding=function(u){throw new Error("process.binding is not supported")};$t.cwd=function(){return"/"};$t.chdir=function(u){throw new Error("process.chdir is not supported")};$t.umask=function(){return 0};var mg=a1.exports;const Ve=Gs(mg);(function(u){function f(){var _=this||self;return delete u.prototype.__magic__,_}if(typeof globalThis=="object")return globalThis;if(this)return f();u.defineProperty(u.prototype,"__magic__",{configurable:!0,get:f});var d=__magic__;return d})(Object);var u1={exports:{}};function bg(u){throw new Error('Could not dynamically require "'+u+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var zf={exports:{}},st={},ju={exports:{}},Wu={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */(function(u,f){var d=pe,_=d.Buffer;function x(E,M){for(var S in E)M[S]=E[S]}_.from&&_.alloc&&_.allocUnsafe&&_.allocUnsafeSlow?u.exports=d:(x(d,f),f.Buffer=I);function I(E,M,S){return _(E,M,S)}I.prototype=Object.create(_.prototype),x(_,I),I.from=function(E,M,S){if(typeof E=="number")throw new TypeError("Argument must not be a number");return _(E,M,S)},I.alloc=function(E,M,S){if(typeof E!="number")throw new TypeError("Argument must be a number");var A=_(E);return M!==void 0?typeof S=="string"?A.fill(M,S):A.fill(M):A.fill(0),A},I.allocUnsafe=function(E){if(typeof E!="number")throw new TypeError("Argument must be a number");return _(E)},I.allocUnsafeSlow=function(E){if(typeof E!="number")throw new TypeError("Argument must be a number");return d.SlowBuffer(E)}})(Wu,Wu.exports);var ct=Wu.exports,jf=65536,xg=4294967295;function _g(){throw new Error(`Secure random number generation is not supported by this browser.
Use Chrome, Firefox or Internet Explorer 11`)}var Eg=ct.Buffer,ws=Me.crypto||Me.msCrypto;ws&&ws.getRandomValues?ju.exports=Sg:ju.exports=_g;function Sg(u,f){if(u>xg)throw new RangeError("requested too many random bytes");var d=Eg.allocUnsafe(u);if(u>0)if(u>jf)for(var _=0;_<u;_+=jf)ws.getRandomValues(d.slice(_,_+jf));else ws.getRandomValues(d);return typeof f=="function"?Ve.nextTick(function(){f(null,d)}):d}var Ua=ju.exports,Yu={exports:{}};typeof Object.create=="function"?Yu.exports=function(u,f){f&&(u.super_=f,u.prototype=Object.create(f.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}))}:Yu.exports=function(u,f){if(f){u.super_=f;var d=function(){};d.prototype=f.prototype,u.prototype=new d,u.prototype.constructor=u}};var ut=Yu.exports,Xu={exports:{}},Pc={exports:{}},_a=typeof Reflect=="object"?Reflect:null,Zh=_a&&typeof _a.apply=="function"?_a.apply:function(u,f,d){return Function.prototype.apply.call(u,f,d)},cs;_a&&typeof _a.ownKeys=="function"?cs=_a.ownKeys:Object.getOwnPropertySymbols?cs=function(u){return Object.getOwnPropertyNames(u).concat(Object.getOwnPropertySymbols(u))}:cs=function(u){return Object.getOwnPropertyNames(u)};function wg(u){console&&console.warn&&console.warn(u)}var c1=Number.isNaN||function(u){return u!==u};function Mt(){Mt.init.call(this)}Pc.exports=Mt;Pc.exports.once=Ig;Mt.EventEmitter=Mt;Mt.prototype._events=void 0;Mt.prototype._eventsCount=0;Mt.prototype._maxListeners=void 0;var Jh=10;function js(u){if(typeof u!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof u)}Object.defineProperty(Mt,"defaultMaxListeners",{enumerable:!0,get:function(){return Jh},set:function(u){if(typeof u!="number"||u<0||c1(u))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+u+".");Jh=u}});Mt.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Mt.prototype.setMaxListeners=function(u){if(typeof u!="number"||u<0||c1(u))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+u+".");return this._maxListeners=u,this};function h1(u){return u._maxListeners===void 0?Mt.defaultMaxListeners:u._maxListeners}Mt.prototype.getMaxListeners=function(){return h1(this)};Mt.prototype.emit=function(u){for(var f=[],d=1;d<arguments.length;d++)f.push(arguments[d]);var _=u==="error",x=this._events;if(x!==void 0)_=_&&x.error===void 0;else if(!_)return!1;if(_){var I;if(f.length>0&&(I=f[0]),I instanceof Error)throw I;var E=new Error("Unhandled error."+(I?" ("+I.message+")":""));throw E.context=I,E}var M=x[u];if(M===void 0)return!1;if(typeof M=="function")Zh(M,this,f);else for(var S=M.length,A=y1(M,S),d=0;d<S;++d)Zh(A[d],this,f);return!0};function l1(u,f,d,_){var x,I,E;if(js(d),I=u._events,I===void 0?(I=u._events=Object.create(null),u._eventsCount=0):(I.newListener!==void 0&&(u.emit("newListener",f,d.listener?d.listener:d),I=u._events),E=I[f]),E===void 0)E=I[f]=d,++u._eventsCount;else if(typeof E=="function"?E=I[f]=_?[d,E]:[E,d]:_?E.unshift(d):E.push(d),x=h1(u),x>0&&E.length>x&&!E.warned){E.warned=!0;var M=new Error("Possible EventEmitter memory leak detected. "+E.length+" "+String(f)+" listeners added. Use emitter.setMaxListeners() to increase limit");M.name="MaxListenersExceededWarning",M.emitter=u,M.type=f,M.count=E.length,wg(M)}return u}Mt.prototype.addListener=function(u,f){return l1(this,u,f,!1)};Mt.prototype.on=Mt.prototype.addListener;Mt.prototype.prependListener=function(u,f){return l1(this,u,f,!0)};function Cg(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d1(u,f,d){var _={fired:!1,wrapFn:void 0,target:u,type:f,listener:d},x=Cg.bind(_);return x.listener=d,_.wrapFn=x,x}Mt.prototype.once=function(u,f){return js(f),this.on(u,d1(this,u,f)),this};Mt.prototype.prependOnceListener=function(u,f){return js(f),this.prependListener(u,d1(this,u,f)),this};Mt.prototype.removeListener=function(u,f){var d,_,x,I,E;if(js(f),_=this._events,_===void 0)return this;if(d=_[u],d===void 0)return this;if(d===f||d.listener===f)--this._eventsCount===0?this._events=Object.create(null):(delete _[u],_.removeListener&&this.emit("removeListener",u,d.listener||f));else if(typeof d!="function"){for(x=-1,I=d.length-1;I>=0;I--)if(d[I]===f||d[I].listener===f){E=d[I].listener,x=I;break}if(x<0)return this;x===0?d.shift():Ag(d,x),d.length===1&&(_[u]=d[0]),_.removeListener!==void 0&&this.emit("removeListener",u,E||f)}return this};Mt.prototype.off=Mt.prototype.removeListener;Mt.prototype.removeAllListeners=function(u){var f,d,_;if(d=this._events,d===void 0)return this;if(d.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):d[u]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete d[u]),this;if(arguments.length===0){var x=Object.keys(d),I;for(_=0;_<x.length;++_)I=x[_],I!=="removeListener"&&this.removeAllListeners(I);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(f=d[u],typeof f=="function")this.removeListener(u,f);else if(f!==void 0)for(_=f.length-1;_>=0;_--)this.removeListener(u,f[_]);return this};function p1(u,f,d){var _=u._events;if(_===void 0)return[];var x=_[f];return x===void 0?[]:typeof x=="function"?d?[x.listener||x]:[x]:d?Bg(x):y1(x,x.length)}Mt.prototype.listeners=function(u){return p1(this,u,!0)};Mt.prototype.rawListeners=function(u){return p1(this,u,!1)};Mt.listenerCount=function(u,f){return typeof u.listenerCount=="function"?u.listenerCount(f):v1.call(u,f)};Mt.prototype.listenerCount=v1;function v1(u){var f=this._events;if(f!==void 0){var d=f[u];if(typeof d=="function")return 1;if(d!==void 0)return d.length}return 0}Mt.prototype.eventNames=function(){return this._eventsCount>0?cs(this._events):[]};function y1(u,f){for(var d=new Array(f),_=0;_<f;++_)d[_]=u[_];return d}function Ag(u,f){for(;f+1<u.length;f++)u[f]=u[f+1];u.pop()}function Bg(u){for(var f=new Array(u.length),d=0;d<f.length;++d)f[d]=u[d].listener||u[d];return f}function Ig(u,f){return new Promise(function(d,_){function x(E){u.removeListener(f,I),_(E)}function I(){typeof u.removeListener=="function"&&u.removeListener("error",x),d([].slice.call(arguments))}g1(u,f,I,{once:!0}),f!=="error"&&Tg(u,x,{once:!0})})}function Tg(u,f,d){typeof u.on=="function"&&g1(u,"error",f,d)}function g1(u,f,d,_){if(typeof u.on=="function")_.once?u.once(f,d):u.on(f,d);else if(typeof u.addEventListener=="function")u.addEventListener(f,function x(I){_.once&&u.removeEventListener(f,x),d(I)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof u)}var Lc=Pc.exports,m1=Lc.EventEmitter,wn={},b1={},x1=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var u={},f=Symbol("test"),d=Object(f);if(typeof f=="string"||Object.prototype.toString.call(f)!=="[object Symbol]"||Object.prototype.toString.call(d)!=="[object Symbol]")return!1;var _=42;u[f]=_;for(f in u)return!1;if(typeof Object.keys=="function"&&Object.keys(u).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(u).length!==0)return!1;var x=Object.getOwnPropertySymbols(u);if(x.length!==1||x[0]!==f||!Object.prototype.propertyIsEnumerable.call(u,f))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var I=Object.getOwnPropertyDescriptor(u,f);if(I.value!==_||I.enumerable!==!0)return!1}return!0},Mg=x1,kc=function(){return Mg()&&!!Symbol.toStringTag},Wf,el;function Rg(){if(el)return Wf;el=1;var u=typeof Symbol<"u"&&Symbol,f=x1;return Wf=function(){return typeof u!="function"||typeof Symbol!="function"||typeof u("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:f()},Wf}var Yf,tl;function Ng(){if(tl)return Yf;tl=1;var u={foo:{}},f=Object;return Yf=function(){return{__proto__:u}.foo===u.foo&&!({__proto__:null}instanceof f)},Yf}var Xf,rl;function Dg(){if(rl)return Xf;rl=1;var u="Function.prototype.bind called on incompatible ",f=Array.prototype.slice,d=Object.prototype.toString,_="[object Function]";return Xf=function(x){var I=this;if(typeof I!="function"||d.call(I)!==_)throw new TypeError(u+I);for(var E=f.call(arguments,1),M,S=function(){if(this instanceof M){var j=I.apply(this,E.concat(f.call(arguments)));return Object(j)===j?j:this}else return I.apply(x,E.concat(f.call(arguments)))},A=Math.max(0,I.length-E.length),T=[],D=0;D<A;D++)T.push("$"+D);if(M=Function("binder","return function ("+T.join(",")+"){ return binder.apply(this,arguments); }")(S),I.prototype){var O=function(){};O.prototype=I.prototype,M.prototype=new O,O.prototype=null}return M},Xf}var Qf,il;function Uc(){if(il)return Qf;il=1;var u=Dg();return Qf=Function.prototype.bind||u,Qf}var Zf,nl;function Og(){if(nl)return Zf;nl=1;var u=Uc();return Zf=u.call(Function.call,Object.prototype.hasOwnProperty),Zf}var Jf,al;function Ws(){if(al)return Jf;al=1;var u,f=SyntaxError,d=Function,_=TypeError,x=function(re){try{return d('"use strict"; return ('+re+").constructor;")()}catch{}},I=Object.getOwnPropertyDescriptor;if(I)try{I({},"")}catch{I=null}var E=function(){throw new _},M=I?function(){try{return arguments.callee,E}catch{try{return I(arguments,"callee").get}catch{return E}}}():E,S=Rg()(),A=Ng()(),T=Object.getPrototypeOf||(A?function(re){return re.__proto__}:null),D={},O=typeof Uint8Array>"u"||!T?u:T(Uint8Array),j={"%AggregateError%":typeof AggregateError>"u"?u:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?u:ArrayBuffer,"%ArrayIteratorPrototype%":S&&T?T([][Symbol.iterator]()):u,"%AsyncFromSyncIteratorPrototype%":u,"%AsyncFunction%":D,"%AsyncGenerator%":D,"%AsyncGeneratorFunction%":D,"%AsyncIteratorPrototype%":D,"%Atomics%":typeof Atomics>"u"?u:Atomics,"%BigInt%":typeof BigInt>"u"?u:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?u:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?u:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?u:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?u:Float32Array,"%Float64Array%":typeof Float64Array>"u"?u:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?u:FinalizationRegistry,"%Function%":d,"%GeneratorFunction%":D,"%Int8Array%":typeof Int8Array>"u"?u:Int8Array,"%Int16Array%":typeof Int16Array>"u"?u:Int16Array,"%Int32Array%":typeof Int32Array>"u"?u:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":S&&T?T(T([][Symbol.iterator]())):u,"%JSON%":typeof JSON=="object"?JSON:u,"%Map%":typeof Map>"u"?u:Map,"%MapIteratorPrototype%":typeof Map>"u"||!S||!T?u:T(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?u:Promise,"%Proxy%":typeof Proxy>"u"?u:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?u:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?u:Set,"%SetIteratorPrototype%":typeof Set>"u"||!S||!T?u:T(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?u:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":S&&T?T(""[Symbol.iterator]()):u,"%Symbol%":S?Symbol:u,"%SyntaxError%":f,"%ThrowTypeError%":M,"%TypedArray%":O,"%TypeError%":_,"%Uint8Array%":typeof Uint8Array>"u"?u:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?u:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?u:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?u:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?u:WeakMap,"%WeakRef%":typeof WeakRef>"u"?u:WeakRef,"%WeakSet%":typeof WeakSet>"u"?u:WeakSet};if(T)try{null.error}catch(re){var $=T(T(re));j["%Error.prototype%"]=$}var W=function re(P){var k;if(P==="%AsyncFunction%")k=x("async function () {}");else if(P==="%GeneratorFunction%")k=x("function* () {}");else if(P==="%AsyncGeneratorFunction%")k=x("async function* () {}");else if(P==="%AsyncGenerator%"){var B=re("%AsyncGeneratorFunction%");B&&(k=B.prototype)}else if(P==="%AsyncIteratorPrototype%"){var z=re("%AsyncGenerator%");z&&T&&(k=T(z.prototype))}return j[P]=k,k},Q={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},X=Uc(),Y=Og(),ie=X.call(Function.call,Array.prototype.concat),oe=X.call(Function.apply,Array.prototype.splice),ge=X.call(Function.call,String.prototype.replace),be=X.call(Function.call,String.prototype.slice),ze=X.call(Function.call,RegExp.prototype.exec),de=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Ce=/\\(\\)?/g,ke=function(re){var P=be(re,0,1),k=be(re,-1);if(P==="%"&&k!=="%")throw new f("invalid intrinsic syntax, expected closing `%`");if(k==="%"&&P!=="%")throw new f("invalid intrinsic syntax, expected opening `%`");var B=[];return ge(re,de,function(z,ee,H,q){B[B.length]=H?ge(q,Ce,"$1"):ee||z}),B},le=function(re,P){var k=re,B;if(Y(Q,k)&&(B=Q[k],k="%"+B[0]+"%"),Y(j,k)){var z=j[k];if(z===D&&(z=W(k)),typeof z>"u"&&!P)throw new _("intrinsic "+re+" exists, but is not available. Please file an issue!");return{alias:B,name:k,value:z}}throw new f("intrinsic "+re+" does not exist!")};return Jf=function(re,P){if(typeof re!="string"||re.length===0)throw new _("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof P!="boolean")throw new _('"allowMissing" argument must be a boolean');if(ze(/^%?[^%]*%?$/,re)===null)throw new f("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var k=ke(re),B=k.length>0?k[0]:"",z=le("%"+B+"%",P),ee=z.name,H=z.value,q=!1,J=z.alias;J&&(B=J[0],oe(k,ie([0,1],J)));for(var U=1,Z=!0;U<k.length;U+=1){var ve=k[U],Ye=be(ve,0,1),rt=be(ve,-1);if((Ye==='"'||Ye==="'"||Ye==="`"||rt==='"'||rt==="'"||rt==="`")&&Ye!==rt)throw new f("property names with quotes must have matching quotes");if((ve==="constructor"||!Z)&&(q=!0),B+="."+ve,ee="%"+B+"%",Y(j,ee))H=j[ee];else if(H!=null){if(!(ve in H)){if(!P)throw new _("base intrinsic for "+re+" exists, but the property is not available.");return}if(I&&U+1>=k.length){var Ue=I(H,ve);Z=!!Ue,Z&&"get"in Ue&&!("originalValue"in Ue.get)?H=Ue.get:H=H[ve]}else Z=Y(H,ve),H=H[ve];Z&&!q&&(j[ee]=H)}}return H},Jf}var eo={exports:{}},sl;function Ys(){return sl||(sl=1,function(u){var f=Uc(),d=Ws(),_=d("%Function.prototype.apply%"),x=d("%Function.prototype.call%"),I=d("%Reflect.apply%",!0)||f.call(x,_),E=d("%Object.getOwnPropertyDescriptor%",!0),M=d("%Object.defineProperty%",!0),S=d("%Math.max%");if(M)try{M({},"a",{value:1})}catch{M=null}u.exports=function(T){var D=I(f,x,arguments);if(E&&M){var O=E(D,"length");O.configurable&&M(D,"length",{value:1+S(0,T.length-(arguments.length-1))})}return D};var A=function(){return I(f,_,arguments)};M?M(u.exports,"apply",{value:A}):u.exports.apply=A}(eo)),eo.exports}var _1$1=Ws(),E1=Ys(),Pg=E1(_1$1("String.prototype.indexOf")),S1=function(u,f){var d=_1$1(u,!!f);return typeof d=="function"&&Pg(u,".prototype.")>-1?E1(d):d},Lg=kc(),kg=S1,Qu=kg("Object.prototype.toString"),Xs=function(u){return Lg&&u&&typeof u=="object"&&Symbol.toStringTag in u?!1:Qu(u)==="[object Arguments]"},w1=function(u){return Xs(u)?!0:u!==null&&typeof u=="object"&&typeof u.length=="number"&&u.length>=0&&Qu(u)!=="[object Array]"&&Qu(u.callee)==="[object Function]"},Ug=function(){return Xs(arguments)}();Xs.isLegacyArguments=w1;var Fg=Ug?Xs:w1,qg=Object.prototype.toString,Vg=Function.prototype.toString,Kg=/^\s*(?:function)?\*/,C1=kc(),to=Object.getPrototypeOf,$g=function(){if(!C1)return!1;try{return Function("return function*() {}")()}catch{}},ro,Hg=function(u){if(typeof u!="function")return!1;if(Kg.test(Vg.call(u)))return!0;if(!C1){var f=qg.call(u);return f==="[object GeneratorFunction]"}if(!to)return!1;if(typeof ro>"u"){var d=$g();ro=d?to(d):!1}return to(u)===ro},A1=Function.prototype.toString,va=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,Zu,hs;if(typeof va=="function"&&typeof Object.defineProperty=="function")try{Zu=Object.defineProperty({},"length",{get:function(){throw hs}}),hs={},va(function(){throw 42},null,Zu)}catch(u){u!==hs&&(va=null)}else va=null;var Gg=/^\s*class\b/,Ju=function(u){try{var f=A1.call(u);return Gg.test(f)}catch{return!1}},io=function(u){try{return Ju(u)?!1:(A1.call(u),!0)}catch{return!1}},ls=Object.prototype.toString,zg="[object Object]",jg="[object Function]",Wg="[object GeneratorFunction]",Yg="[object HTMLAllCollection]",Xg="[object HTML document.all class]",Qg="[object HTMLCollection]",Zg=typeof Symbol=="function"&&!!Symbol.toStringTag,Jg=!(0 in[,]),ec$1=function(){return!1};if(typeof document=="object"){var em=document.all;ls.call(em)===ls.call(document.all)&&(ec$1=function(u){if((Jg||!u)&&(typeof u>"u"||typeof u=="object"))try{var f=ls.call(u);return(f===Yg||f===Xg||f===Qg||f===zg)&&u("")==null}catch{}return!1})}var tm=va?function(u){if(ec$1(u))return!0;if(!u||typeof u!="function"&&typeof u!="object")return!1;try{va(u,null,Zu)}catch(f){if(f!==hs)return!1}return!Ju(u)&&io(u)}:function(u){if(ec$1(u))return!0;if(!u||typeof u!="function"&&typeof u!="object")return!1;if(Zg)return io(u);if(Ju(u))return!1;var f=ls.call(u);return f!==jg&&f!==Wg&&!/^\[object HTML/.test(f)?!1:io(u)},rm=tm,im=Object.prototype.toString,B1=Object.prototype.hasOwnProperty,nm=function(u,f,d){for(var _=0,x=u.length;_<x;_++)B1.call(u,_)&&(d==null?f(u[_],_,u):f.call(d,u[_],_,u))},am=function(u,f,d){for(var _=0,x=u.length;_<x;_++)d==null?f(u.charAt(_),_,u):f.call(d,u.charAt(_),_,u)},sm=function(u,f,d){for(var _ in u)B1.call(u,_)&&(d==null?f(u[_],_,u):f.call(d,u[_],_,u))},fm=function(u,f,d){if(!rm(f))throw new TypeError("iterator must be a function");var _;arguments.length>=3&&(_=d),im.call(u)==="[object Array]"?nm(u,f,_):typeof u=="string"?am(u,f,_):sm(u,f,_)},om=fm,no=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],um=typeof globalThis>"u"?Me:globalThis,cm=function(){for(var u=[],f=0;f<no.length;f++)typeof um[no[f]]=="function"&&(u[u.length]=no[f]);return u},hm=Ws(),ds=hm("%Object.getOwnPropertyDescriptor%",!0);if(ds)try{ds([],"length")}catch{ds=null}var lm=ds,Cs=om,dm=cm,fl=Ys(),Fc=S1,ps=lm,pm=Fc("Object.prototype.toString"),I1=kc(),ol=typeof globalThis>"u"?Me:globalThis,tc=dm(),qc=Fc("String.prototype.slice"),ao=Object.getPrototypeOf,vm=Fc("Array.prototype.indexOf",!0)||function(u,f){for(var d=0;d<u.length;d+=1)if(u[d]===f)return d;return-1},As={__proto__:null};I1&&ps&&ao?Cs(tc,function(u){var f=new ol[u];if(Symbol.toStringTag in f){var d=ao(f),_=ps(d,Symbol.toStringTag);if(!_){var x=ao(d);_=ps(x,Symbol.toStringTag)}As["$"+u]=fl(_.get)}}):Cs(tc,function(u){var f=new ol[u];As["$"+u]=fl(f.slice)});var ym=function(u){var f=!1;return Cs(As,function(d,_){if(!f)try{"$"+d(u)===_&&(f=qc(_,1))}catch{}}),f},gm=function(u){var f=!1;return Cs(As,function(d,_){if(!f)try{d(u),f=qc(_,1)}catch{}}),f},T1=function(u){if(!u||typeof u!="object")return!1;if(!I1){var f=qc(pm(u),8,-1);return vm(tc,f)>-1?f:f!=="Object"?!1:gm(u)}return ps?ym(u):null},mm=T1,bm=function(u){return!!mm(u)};(function(u){var f=Fg,d=Hg,_=T1,x=bm;function I(Je){return Je.call.bind(Je)}var E=typeof BigInt<"u",M=typeof Symbol<"u",S=I(Object.prototype.toString),A=I(Number.prototype.valueOf),T=I(String.prototype.valueOf),D=I(Boolean.prototype.valueOf);if(E)var O=I(BigInt.prototype.valueOf);if(M)var j=I(Symbol.prototype.valueOf);function $(Je,Dt){if(typeof Je!="object")return!1;try{return Dt(Je),!0}catch{return!1}}u.isArgumentsObject=f,u.isGeneratorFunction=d,u.isTypedArray=x;function W(Je){return typeof Promise<"u"&&Je instanceof Promise||Je!==null&&typeof Je=="object"&&typeof Je.then=="function"&&typeof Je.catch=="function"}u.isPromise=W;function Q(Je){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(Je):x(Je)||ve(Je)}u.isArrayBufferView=Q;function X(Je){return _(Je)==="Uint8Array"}u.isUint8Array=X;function Y(Je){return _(Je)==="Uint8ClampedArray"}u.isUint8ClampedArray=Y;function ie(Je){return _(Je)==="Uint16Array"}u.isUint16Array=ie;function oe(Je){return _(Je)==="Uint32Array"}u.isUint32Array=oe;function ge(Je){return _(Je)==="Int8Array"}u.isInt8Array=ge;function be(Je){return _(Je)==="Int16Array"}u.isInt16Array=be;function ze(Je){return _(Je)==="Int32Array"}u.isInt32Array=ze;function de(Je){return _(Je)==="Float32Array"}u.isFloat32Array=de;function Ce(Je){return _(Je)==="Float64Array"}u.isFloat64Array=Ce;function ke(Je){return _(Je)==="BigInt64Array"}u.isBigInt64Array=ke;function le(Je){return _(Je)==="BigUint64Array"}u.isBigUint64Array=le;function re(Je){return S(Je)==="[object Map]"}re.working=typeof Map<"u"&&re(new Map);function P(Je){return typeof Map>"u"?!1:re.working?re(Je):Je instanceof Map}u.isMap=P;function k(Je){return S(Je)==="[object Set]"}k.working=typeof Set<"u"&&k(new Set);function B(Je){return typeof Set>"u"?!1:k.working?k(Je):Je instanceof Set}u.isSet=B;function z(Je){return S(Je)==="[object WeakMap]"}z.working=typeof WeakMap<"u"&&z(new WeakMap);function ee(Je){return typeof WeakMap>"u"?!1:z.working?z(Je):Je instanceof WeakMap}u.isWeakMap=ee;function H(Je){return S(Je)==="[object WeakSet]"}H.working=typeof WeakSet<"u"&&H(new WeakSet);function q(Je){return H(Je)}u.isWeakSet=q;function J(Je){return S(Je)==="[object ArrayBuffer]"}J.working=typeof ArrayBuffer<"u"&&J(new ArrayBuffer);function U(Je){return typeof ArrayBuffer>"u"?!1:J.working?J(Je):Je instanceof ArrayBuffer}u.isArrayBuffer=U;function Z(Je){return S(Je)==="[object DataView]"}Z.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&Z(new DataView(new ArrayBuffer(1),0,1));function ve(Je){return typeof DataView>"u"?!1:Z.working?Z(Je):Je instanceof DataView}u.isDataView=ve;var Ye=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function rt(Je){return S(Je)==="[object SharedArrayBuffer]"}function Ue(Je){return typeof Ye>"u"?!1:(typeof rt.working>"u"&&(rt.working=rt(new Ye)),rt.working?rt(Je):Je instanceof Ye)}u.isSharedArrayBuffer=Ue;function Qe(Je){return S(Je)==="[object AsyncFunction]"}u.isAsyncFunction=Qe;function vt(Je){return S(Je)==="[object Map Iterator]"}u.isMapIterator=vt;function ri(Je){return S(Je)==="[object Set Iterator]"}u.isSetIterator=ri;function ci(Je){return S(Je)==="[object Generator]"}u.isGeneratorObject=ci;function tt(Je){return S(Je)==="[object WebAssembly.Module]"}u.isWebAssemblyCompiledModule=tt;function et(Je){return $(Je,A)}u.isNumberObject=et;function $e(Je){return $(Je,T)}u.isStringObject=$e;function Le(Je){return $(Je,D)}u.isBooleanObject=Le;function ot(Je){return E&&$(Je,O)}u.isBigIntObject=ot;function Oe(Je){return M&&$(Je,j)}u.isSymbolObject=Oe;function Ne(Je){return et(Je)||$e(Je)||Le(Je)||ot(Je)||Oe(Je)}u.isBoxedPrimitive=Ne;function Fe(Je){return typeof Uint8Array<"u"&&(U(Je)||Ue(Je))}u.isAnyArrayBuffer=Fe,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(Je){Object.defineProperty(u,Je,{enumerable:!1,value:function(){throw new Error(Je+" is not supported in userland")}})})})(b1);var xm=function(u){return u&&typeof u=="object"&&typeof u.copy=="function"&&typeof u.fill=="function"&&typeof u.readUInt8=="function"};(function(u){var f=Object.getOwnPropertyDescriptors||function(Z){for(var ve=Object.keys(Z),Ye={},rt=0;rt<ve.length;rt++)Ye[ve[rt]]=Object.getOwnPropertyDescriptor(Z,ve[rt]);return Ye},d=/%[sdj%]/g;u.format=function(Z){if(!ge(Z)){for(var ve=[],Ye=0;Ye<arguments.length;Ye++)ve.push(E(arguments[Ye]));return ve.join(" ")}for(var Ye=1,rt=arguments,Ue=rt.length,Qe=String(Z).replace(d,function(ci){if(ci==="%%")return"%";if(Ye>=Ue)return ci;switch(ci){case"%s":return String(rt[Ye++]);case"%d":return Number(rt[Ye++]);case"%j":try{return JSON.stringify(rt[Ye++])}catch{return"[Circular]"}default:return ci}}),vt=rt[Ye];Ye<Ue;vt=rt[++Ye])Y(vt)||!Ce(vt)?Qe+=" "+vt:Qe+=" "+E(vt);return Qe},u.deprecate=function(Z,ve){if(typeof Ve<"u"&&Ve.noDeprecation===!0)return Z;if(typeof Ve>"u")return function(){return u.deprecate(Z,ve).apply(this,arguments)};var Ye=!1;function rt(){if(!Ye){if(Ve.throwDeprecation)throw new Error(ve);Ve.traceDeprecation?console.trace(ve):console.error(ve),Ye=!0}return Z.apply(this,arguments)}return rt};var _={},x=/^$/;if(Ve.env.NODE_DEBUG){var I=Ve.env.NODE_DEBUG;I=I.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),x=new RegExp("^"+I+"$","i")}u.debuglog=function(Z){if(Z=Z.toUpperCase(),!_[Z])if(x.test(Z)){var ve=Ve.pid;_[Z]=function(){var Ye=u.format.apply(u,arguments);console.error("%s %d: %s",Z,ve,Ye)}}else _[Z]=function(){};return _[Z]};function E(Z,ve){var Ye={seen:[],stylize:S};return arguments.length>=3&&(Ye.depth=arguments[2]),arguments.length>=4&&(Ye.colors=arguments[3]),X(ve)?Ye.showHidden=ve:ve&&u._extend(Ye,ve),ze(Ye.showHidden)&&(Ye.showHidden=!1),ze(Ye.depth)&&(Ye.depth=2),ze(Ye.colors)&&(Ye.colors=!1),ze(Ye.customInspect)&&(Ye.customInspect=!0),Ye.colors&&(Ye.stylize=M),T(Ye,Z,Ye.depth)}u.inspect=E,E.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},E.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function M(Z,ve){var Ye=E.styles[ve];return Ye?"\x1B["+E.colors[Ye][0]+"m"+Z+"\x1B["+E.colors[Ye][1]+"m":Z}function S(Z,ve){return Z}function A(Z){var ve={};return Z.forEach(function(Ye,rt){ve[Ye]=!0}),ve}function T(Z,ve,Ye){if(Z.customInspect&&ve&&re(ve.inspect)&&ve.inspect!==u.inspect&&!(ve.constructor&&ve.constructor.prototype===ve)){var rt=ve.inspect(Ye,Z);return ge(rt)||(rt=T(Z,rt,Ye)),rt}var Ue=D(Z,ve);if(Ue)return Ue;var Qe=Object.keys(ve),vt=A(Qe);if(Z.showHidden&&(Qe=Object.getOwnPropertyNames(ve)),le(ve)&&(Qe.indexOf("message")>=0||Qe.indexOf("description")>=0))return O(ve);if(Qe.length===0){if(re(ve)){var ri=ve.name?": "+ve.name:"";return Z.stylize("[Function"+ri+"]","special")}if(de(ve))return Z.stylize(RegExp.prototype.toString.call(ve),"regexp");if(ke(ve))return Z.stylize(Date.prototype.toString.call(ve),"date");if(le(ve))return O(ve)}var ci="",tt=!1,et=["{","}"];if(Q(ve)&&(tt=!0,et=["[","]"]),re(ve)){var $e=ve.name?": "+ve.name:"";ci=" [Function"+$e+"]"}if(de(ve)&&(ci=" "+RegExp.prototype.toString.call(ve)),ke(ve)&&(ci=" "+Date.prototype.toUTCString.call(ve)),le(ve)&&(ci=" "+O(ve)),Qe.length===0&&(!tt||ve.length==0))return et[0]+ci+et[1];if(Ye<0)return de(ve)?Z.stylize(RegExp.prototype.toString.call(ve),"regexp"):Z.stylize("[Object]","special");Z.seen.push(ve);var Le;return tt?Le=j(Z,ve,Ye,vt,Qe):Le=Qe.map(function(ot){return $(Z,ve,Ye,vt,ot,tt)}),Z.seen.pop(),W(Le,ci,et)}function D(Z,ve){if(ze(ve))return Z.stylize("undefined","undefined");if(ge(ve)){var Ye="'"+JSON.stringify(ve).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return Z.stylize(Ye,"string")}if(oe(ve))return Z.stylize(""+ve,"number");if(X(ve))return Z.stylize(""+ve,"boolean");if(Y(ve))return Z.stylize("null","null")}function O(Z){return"["+Error.prototype.toString.call(Z)+"]"}function j(Z,ve,Ye,rt,Ue){for(var Qe=[],vt=0,ri=ve.length;vt<ri;++vt)H(ve,String(vt))?Qe.push($(Z,ve,Ye,rt,String(vt),!0)):Qe.push("");return Ue.forEach(function(ci){ci.match(/^\d+$/)||Qe.push($(Z,ve,Ye,rt,ci,!0))}),Qe}function $(Z,ve,Ye,rt,Ue,Qe){var vt,ri,ci;if(ci=Object.getOwnPropertyDescriptor(ve,Ue)||{value:ve[Ue]},ci.get?ci.set?ri=Z.stylize("[Getter/Setter]","special"):ri=Z.stylize("[Getter]","special"):ci.set&&(ri=Z.stylize("[Setter]","special")),H(rt,Ue)||(vt="["+Ue+"]"),ri||(Z.seen.indexOf(ci.value)<0?(Y(Ye)?ri=T(Z,ci.value,null):ri=T(Z,ci.value,Ye-1),ri.indexOf(`
`)>-1&&(Qe?ri=ri.split(`
`).map(function(tt){return"  "+tt}).join(`
`).slice(2):ri=`
`+ri.split(`
`).map(function(tt){return"   "+tt}).join(`
`))):ri=Z.stylize("[Circular]","special")),ze(vt)){if(Qe&&Ue.match(/^\d+$/))return ri;vt=JSON.stringify(""+Ue),vt.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(vt=vt.slice(1,-1),vt=Z.stylize(vt,"name")):(vt=vt.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),vt=Z.stylize(vt,"string"))}return vt+": "+ri}function W(Z,ve,Ye){var rt=Z.reduce(function(Ue,Qe){return Qe.indexOf(`
`)>=0,Ue+Qe.replace(/\u001b\[\d\d?m/g,"").length+1},0);return rt>60?Ye[0]+(ve===""?"":ve+`
 `)+" "+Z.join(`,
  `)+" "+Ye[1]:Ye[0]+ve+" "+Z.join(", ")+" "+Ye[1]}u.types=b1;function Q(Z){return Array.isArray(Z)}u.isArray=Q;function X(Z){return typeof Z=="boolean"}u.isBoolean=X;function Y(Z){return Z===null}u.isNull=Y;function ie(Z){return Z==null}u.isNullOrUndefined=ie;function oe(Z){return typeof Z=="number"}u.isNumber=oe;function ge(Z){return typeof Z=="string"}u.isString=ge;function be(Z){return typeof Z=="symbol"}u.isSymbol=be;function ze(Z){return Z===void 0}u.isUndefined=ze;function de(Z){return Ce(Z)&&k(Z)==="[object RegExp]"}u.isRegExp=de,u.types.isRegExp=de;function Ce(Z){return typeof Z=="object"&&Z!==null}u.isObject=Ce;function ke(Z){return Ce(Z)&&k(Z)==="[object Date]"}u.isDate=ke,u.types.isDate=ke;function le(Z){return Ce(Z)&&(k(Z)==="[object Error]"||Z instanceof Error)}u.isError=le,u.types.isNativeError=le;function re(Z){return typeof Z=="function"}u.isFunction=re;function P(Z){return Z===null||typeof Z=="boolean"||typeof Z=="number"||typeof Z=="string"||typeof Z=="symbol"||typeof Z>"u"}u.isPrimitive=P,u.isBuffer=xm;function k(Z){return Object.prototype.toString.call(Z)}function B(Z){return Z<10?"0"+Z.toString(10):Z.toString(10)}var z=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function ee(){var Z=new Date,ve=[B(Z.getHours()),B(Z.getMinutes()),B(Z.getSeconds())].join(":");return[Z.getDate(),z[Z.getMonth()],ve].join(" ")}u.log=function(){console.log("%s - %s",ee(),u.format.apply(u,arguments))},u.inherits=ut,u._extend=function(Z,ve){if(!ve||!Ce(ve))return Z;for(var Ye=Object.keys(ve),rt=Ye.length;rt--;)Z[Ye[rt]]=ve[Ye[rt]];return Z};function H(Z,ve){return Object.prototype.hasOwnProperty.call(Z,ve)}var q=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;u.promisify=function(Z){if(typeof Z!="function")throw new TypeError('The "original" argument must be of type Function');if(q&&Z[q]){var ve=Z[q];if(typeof ve!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(ve,q,{value:ve,enumerable:!1,writable:!1,configurable:!0}),ve}function ve(){for(var Ye,rt,Ue=new Promise(function(ri,ci){Ye=ri,rt=ci}),Qe=[],vt=0;vt<arguments.length;vt++)Qe.push(arguments[vt]);Qe.push(function(ri,ci){ri?rt(ri):Ye(ci)});try{Z.apply(this,Qe)}catch(ri){rt(ri)}return Ue}return Object.setPrototypeOf(ve,Object.getPrototypeOf(Z)),q&&Object.defineProperty(ve,q,{value:ve,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(ve,f(Z))},u.promisify.custom=q;function J(Z,ve){if(!Z){var Ye=new Error("Promise was rejected with a falsy value");Ye.reason=Z,Z=Ye}return ve(Z)}function U(Z){if(typeof Z!="function")throw new TypeError('The "original" argument must be of type Function');function ve(){for(var Ye=[],rt=0;rt<arguments.length;rt++)Ye.push(arguments[rt]);var Ue=Ye.pop();if(typeof Ue!="function")throw new TypeError("The last argument must be of type Function");var Qe=this,vt=function(){return Ue.apply(Qe,arguments)};Z.apply(this,Ye).then(function(ri){Ve.nextTick(vt.bind(null,null,ri))},function(ri){Ve.nextTick(J.bind(null,ri,vt))})}return Object.setPrototypeOf(ve,Object.getPrototypeOf(Z)),Object.defineProperties(ve,f(Z)),ve}u.callbackify=U})(wn);var so,ul;function _m(){if(ul)return so;ul=1;function u($,W){var Q=Object.keys($);if(Object.getOwnPropertySymbols){var X=Object.getOwnPropertySymbols($);W&&(X=X.filter(function(Y){return Object.getOwnPropertyDescriptor($,Y).enumerable})),Q.push.apply(Q,X)}return Q}function f($){for(var W=1;W<arguments.length;W++){var Q=arguments[W]!=null?arguments[W]:{};W%2?u(Object(Q),!0).forEach(function(X){d($,X,Q[X])}):Object.getOwnPropertyDescriptors?Object.defineProperties($,Object.getOwnPropertyDescriptors(Q)):u(Object(Q)).forEach(function(X){Object.defineProperty($,X,Object.getOwnPropertyDescriptor(Q,X))})}return $}function d($,W,Q){return W=E(W),W in $?Object.defineProperty($,W,{value:Q,enumerable:!0,configurable:!0,writable:!0}):$[W]=Q,$}function _($,W){if(!($ instanceof W))throw new TypeError("Cannot call a class as a function")}function x($,W){for(var Q=0;Q<W.length;Q++){var X=W[Q];X.enumerable=X.enumerable||!1,X.configurable=!0,"value"in X&&(X.writable=!0),Object.defineProperty($,E(X.key),X)}}function I($,W,Q){return W&&x($.prototype,W),Q&&x($,Q),Object.defineProperty($,"prototype",{writable:!1}),$}function E($){var W=M($,"string");return typeof W=="symbol"?W:String(W)}function M($,W){if(typeof $!="object"||$===null)return $;var Q=$[Symbol.toPrimitive];if(Q!==void 0){var X=Q.call($,W||"default");if(typeof X!="object")return X;throw new TypeError("@@toPrimitive must return a primitive value.")}return(W==="string"?String:Number)($)}var S=pe,A=S.Buffer,T=wn,D=T.inspect,O=D&&D.custom||"inspect";function j($,W,Q){A.prototype.copy.call($,W,Q)}return so=function(){function $(){_(this,$),this.head=null,this.tail=null,this.length=0}return I($,[{key:"push",value:function(W){var Q={data:W,next:null};this.length>0?this.tail.next=Q:this.head=Q,this.tail=Q,++this.length}},{key:"unshift",value:function(W){var Q={data:W,next:this.head};this.length===0&&(this.tail=Q),this.head=Q,++this.length}},{key:"shift",value:function(){if(this.length!==0){var W=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,W}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(W){if(this.length===0)return"";for(var Q=this.head,X=""+Q.data;Q=Q.next;)X+=W+Q.data;return X}},{key:"concat",value:function(W){if(this.length===0)return A.alloc(0);for(var Q=A.allocUnsafe(W>>>0),X=this.head,Y=0;X;)j(X.data,Q,Y),Y+=X.data.length,X=X.next;return Q}},{key:"consume",value:function(W,Q){var X;return W<this.head.data.length?(X=this.head.data.slice(0,W),this.head.data=this.head.data.slice(W)):W===this.head.data.length?X=this.shift():X=Q?this._getString(W):this._getBuffer(W),X}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(W){var Q=this.head,X=1,Y=Q.data;for(W-=Y.length;Q=Q.next;){var ie=Q.data,oe=W>ie.length?ie.length:W;if(oe===ie.length?Y+=ie:Y+=ie.slice(0,W),W-=oe,W===0){oe===ie.length?(++X,Q.next?this.head=Q.next:this.head=this.tail=null):(this.head=Q,Q.data=ie.slice(oe));break}++X}return this.length-=X,Y}},{key:"_getBuffer",value:function(W){var Q=A.allocUnsafe(W),X=this.head,Y=1;for(X.data.copy(Q),W-=X.data.length;X=X.next;){var ie=X.data,oe=W>ie.length?ie.length:W;if(ie.copy(Q,Q.length-W,0,oe),W-=oe,W===0){oe===ie.length?(++Y,X.next?this.head=X.next:this.head=this.tail=null):(this.head=X,X.data=ie.slice(oe));break}++Y}return this.length-=Y,Q}},{key:O,value:function(W,Q){return D(this,f(f({},Q),{},{depth:0,customInspect:!1}))}}]),$}(),so}function Em(u,f){var d=this,_=this._readableState&&this._readableState.destroyed,x=this._writableState&&this._writableState.destroyed;return _||x?(f?f(u):u&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,Ve.nextTick(rc,this,u)):Ve.nextTick(rc,this,u)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(u||null,function(I){!f&&I?d._writableState?d._writableState.errorEmitted?Ve.nextTick(vs,d):(d._writableState.errorEmitted=!0,Ve.nextTick(cl,d,I)):Ve.nextTick(cl,d,I):f?(Ve.nextTick(vs,d),f(I)):Ve.nextTick(vs,d)}),this)}function cl(u,f){rc(u,f),vs(u)}function vs(u){u._writableState&&!u._writableState.emitClose||u._readableState&&!u._readableState.emitClose||u.emit("close")}function Sm(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function rc(u,f){u.emit("error",f)}function wm(u,f){var d=u._readableState,_=u._writableState;d&&d.autoDestroy||_&&_.autoDestroy?u.destroy(f):u.emit("error",f)}var M1={destroy:Em,undestroy:Sm,errorOrDestroy:wm},ta={};function Cm(u,f){u.prototype=Object.create(f.prototype),u.prototype.constructor=u,u.__proto__=f}var R1={};function Xr(u,f,d){d||(d=Error);function _(I,E,M){return typeof f=="string"?f:f(I,E,M)}var x=function(I){Cm(E,I);function E(M,S,A){return I.call(this,_(M,S,A))||this}return E}(d);x.prototype.name=d.name,x.prototype.code=u,R1[u]=x}function hl(u,f){if(Array.isArray(u)){var d=u.length;return u=u.map(function(_){return String(_)}),d>2?"one of ".concat(f," ").concat(u.slice(0,d-1).join(", "),", or ")+u[d-1]:d===2?"one of ".concat(f," ").concat(u[0]," or ").concat(u[1]):"of ".concat(f," ").concat(u[0])}else return"of ".concat(f," ").concat(String(u))}function Am(u,f,d){return u.substr(!d||d<0?0:+d,f.length)===f}function Bm(u,f,d){return(d===void 0||d>u.length)&&(d=u.length),u.substring(d-f.length,d)===f}function Im(u,f,d){return typeof d!="number"&&(d=0),d+f.length>u.length?!1:u.indexOf(f,d)!==-1}Xr("ERR_INVALID_OPT_VALUE",function(u,f){return'The value "'+f+'" is invalid for option "'+u+'"'},TypeError);Xr("ERR_INVALID_ARG_TYPE",function(u,f,d){var _;typeof f=="string"&&Am(f,"not ")?(_="must not be",f=f.replace(/^not /,"")):_="must be";var x;if(Bm(u," argument"))x="The ".concat(u," ").concat(_," ").concat(hl(f,"type"));else{var I=Im(u,".")?"property":"argument";x='The "'.concat(u,'" ').concat(I," ").concat(_," ").concat(hl(f,"type"))}return x+=". Received type ".concat(typeof d),x},TypeError);Xr("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");Xr("ERR_METHOD_NOT_IMPLEMENTED",function(u){return"The "+u+" method is not implemented"});Xr("ERR_STREAM_PREMATURE_CLOSE","Premature close");Xr("ERR_STREAM_DESTROYED",function(u){return"Cannot call "+u+" after a stream was destroyed"});Xr("ERR_MULTIPLE_CALLBACK","Callback called multiple times");Xr("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");Xr("ERR_STREAM_WRITE_AFTER_END","write after end");Xr("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Xr("ERR_UNKNOWN_ENCODING",function(u){return"Unknown encoding: "+u},TypeError);Xr("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");ta.codes=R1;var Tm=ta.codes.ERR_INVALID_OPT_VALUE;function Mm(u,f,d){return u.highWaterMark!=null?u.highWaterMark:f?u[d]:null}function Rm(u,f,d,_){var x=Mm(f,_,d);if(x!=null){if(!(isFinite(x)&&Math.floor(x)===x)||x<0){var I=_?d:"highWaterMark";throw new Tm(I,x)}return Math.floor(x)}return u.objectMode?16:16*1024}var N1={getHighWaterMark:Rm},Nm=Dm;function Dm(u,f){if(fo("noDeprecation"))return u;var d=!1;function _(){if(!d){if(fo("throwDeprecation"))throw new Error(f);fo("traceDeprecation")?console.trace(f):console.warn(f),d=!0}return u.apply(this,arguments)}return _}function fo(u){try{if(!Me.localStorage)return!1}catch{return!1}var f=Me.localStorage[u];return f==null?!1:String(f).toLowerCase()==="true"}var oo,ll;function Vc(){if(ll)return oo;ll=1,oo=de;function u(Ue){var Qe=this;this.next=null,this.entry=null,this.finish=function(){rt(Qe,Ue)}}var f;de.WritableState=be;var d={deprecate:Nm},_=m1,x=pe.Buffer,I=(typeof Me<"u"?Me:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function E(Ue){return x.from(Ue)}function M(Ue){return x.isBuffer(Ue)||Ue instanceof I}var S=M1,A=N1,T=A.getHighWaterMark,D=ta.codes,O=D.ERR_INVALID_ARG_TYPE,j=D.ERR_METHOD_NOT_IMPLEMENTED,$=D.ERR_MULTIPLE_CALLBACK,W=D.ERR_STREAM_CANNOT_PIPE,Q=D.ERR_STREAM_DESTROYED,X=D.ERR_STREAM_NULL_VALUES,Y=D.ERR_STREAM_WRITE_AFTER_END,ie=D.ERR_UNKNOWN_ENCODING,oe=S.errorOrDestroy;ut(de,_);function ge(){}function be(Ue,Qe,vt){f=f||Xn(),Ue=Ue||{},typeof vt!="boolean"&&(vt=Qe instanceof f),this.objectMode=!!Ue.objectMode,vt&&(this.objectMode=this.objectMode||!!Ue.writableObjectMode),this.highWaterMark=T(this,Ue,"writableHighWaterMark",vt),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var ri=Ue.decodeStrings===!1;this.decodeStrings=!ri,this.defaultEncoding=Ue.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(ci){z(Qe,ci)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=Ue.emitClose!==!1,this.autoDestroy=!!Ue.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new u(this)}be.prototype.getBuffer=function(){for(var Ue=this.bufferedRequest,Qe=[];Ue;)Qe.push(Ue),Ue=Ue.next;return Qe},function(){try{Object.defineProperty(be.prototype,"buffer",{get:d.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var ze;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(ze=Function.prototype[Symbol.hasInstance],Object.defineProperty(de,Symbol.hasInstance,{value:function(Ue){return ze.call(this,Ue)?!0:this!==de?!1:Ue&&Ue._writableState instanceof be}})):ze=function(Ue){return Ue instanceof this};function de(Ue){f=f||Xn();var Qe=this instanceof f;if(!Qe&&!ze.call(de,this))return new de(Ue);this._writableState=new be(Ue,this,Qe),this.writable=!0,Ue&&(typeof Ue.write=="function"&&(this._write=Ue.write),typeof Ue.writev=="function"&&(this._writev=Ue.writev),typeof Ue.destroy=="function"&&(this._destroy=Ue.destroy),typeof Ue.final=="function"&&(this._final=Ue.final)),_.call(this)}de.prototype.pipe=function(){oe(this,new W)};function Ce(Ue,Qe){var vt=new Y;oe(Ue,vt),Ve.nextTick(Qe,vt)}function ke(Ue,Qe,vt,ri){var ci;return vt===null?ci=new X:typeof vt!="string"&&!Qe.objectMode&&(ci=new O("chunk",["string","Buffer"],vt)),ci?(oe(Ue,ci),Ve.nextTick(ri,ci),!1):!0}de.prototype.write=function(Ue,Qe,vt){var ri=this._writableState,ci=!1,tt=!ri.objectMode&&M(Ue);return tt&&!x.isBuffer(Ue)&&(Ue=E(Ue)),typeof Qe=="function"&&(vt=Qe,Qe=null),tt?Qe="buffer":Qe||(Qe=ri.defaultEncoding),typeof vt!="function"&&(vt=ge),ri.ending?Ce(this,vt):(tt||ke(this,ri,Ue,vt))&&(ri.pendingcb++,ci=re(this,ri,tt,Ue,Qe,vt)),ci},de.prototype.cork=function(){this._writableState.corked++},de.prototype.uncork=function(){var Ue=this._writableState;Ue.corked&&(Ue.corked--,!Ue.writing&&!Ue.corked&&!Ue.bufferProcessing&&Ue.bufferedRequest&&q(this,Ue))},de.prototype.setDefaultEncoding=function(Ue){if(typeof Ue=="string"&&(Ue=Ue.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Ue+"").toLowerCase())>-1))throw new ie(Ue);return this._writableState.defaultEncoding=Ue,this},Object.defineProperty(de.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function le(Ue,Qe,vt){return!Ue.objectMode&&Ue.decodeStrings!==!1&&typeof Qe=="string"&&(Qe=x.from(Qe,vt)),Qe}Object.defineProperty(de.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function re(Ue,Qe,vt,ri,ci,tt){if(!vt){var et=le(Qe,ri,ci);ri!==et&&(vt=!0,ci="buffer",ri=et)}var $e=Qe.objectMode?1:ri.length;Qe.length+=$e;var Le=Qe.length<Qe.highWaterMark;if(Le||(Qe.needDrain=!0),Qe.writing||Qe.corked){var ot=Qe.lastBufferedRequest;Qe.lastBufferedRequest={chunk:ri,encoding:ci,isBuf:vt,callback:tt,next:null},ot?ot.next=Qe.lastBufferedRequest:Qe.bufferedRequest=Qe.lastBufferedRequest,Qe.bufferedRequestCount+=1}else P(Ue,Qe,!1,$e,ri,ci,tt);return Le}function P(Ue,Qe,vt,ri,ci,tt,et){Qe.writelen=ri,Qe.writecb=et,Qe.writing=!0,Qe.sync=!0,Qe.destroyed?Qe.onwrite(new Q("write")):vt?Ue._writev(ci,Qe.onwrite):Ue._write(ci,tt,Qe.onwrite),Qe.sync=!1}function k(Ue,Qe,vt,ri,ci){--Qe.pendingcb,vt?(Ve.nextTick(ci,ri),Ve.nextTick(ve,Ue,Qe),Ue._writableState.errorEmitted=!0,oe(Ue,ri)):(ci(ri),Ue._writableState.errorEmitted=!0,oe(Ue,ri),ve(Ue,Qe))}function B(Ue){Ue.writing=!1,Ue.writecb=null,Ue.length-=Ue.writelen,Ue.writelen=0}function z(Ue,Qe){var vt=Ue._writableState,ri=vt.sync,ci=vt.writecb;if(typeof ci!="function")throw new $;if(B(vt),Qe)k(Ue,vt,ri,Qe,ci);else{var tt=J(vt)||Ue.destroyed;!tt&&!vt.corked&&!vt.bufferProcessing&&vt.bufferedRequest&&q(Ue,vt),ri?Ve.nextTick(ee,Ue,vt,tt,ci):ee(Ue,vt,tt,ci)}}function ee(Ue,Qe,vt,ri){vt||H(Ue,Qe),Qe.pendingcb--,ri(),ve(Ue,Qe)}function H(Ue,Qe){Qe.length===0&&Qe.needDrain&&(Qe.needDrain=!1,Ue.emit("drain"))}function q(Ue,Qe){Qe.bufferProcessing=!0;var vt=Qe.bufferedRequest;if(Ue._writev&&vt&&vt.next){var ri=Qe.bufferedRequestCount,ci=new Array(ri),tt=Qe.corkedRequestsFree;tt.entry=vt;for(var et=0,$e=!0;vt;)ci[et]=vt,vt.isBuf||($e=!1),vt=vt.next,et+=1;ci.allBuffers=$e,P(Ue,Qe,!0,Qe.length,ci,"",tt.finish),Qe.pendingcb++,Qe.lastBufferedRequest=null,tt.next?(Qe.corkedRequestsFree=tt.next,tt.next=null):Qe.corkedRequestsFree=new u(Qe),Qe.bufferedRequestCount=0}else{for(;vt;){var Le=vt.chunk,ot=vt.encoding,Oe=vt.callback,Ne=Qe.objectMode?1:Le.length;if(P(Ue,Qe,!1,Ne,Le,ot,Oe),vt=vt.next,Qe.bufferedRequestCount--,Qe.writing)break}vt===null&&(Qe.lastBufferedRequest=null)}Qe.bufferedRequest=vt,Qe.bufferProcessing=!1}de.prototype._write=function(Ue,Qe,vt){vt(new j("_write()"))},de.prototype._writev=null,de.prototype.end=function(Ue,Qe,vt){var ri=this._writableState;return typeof Ue=="function"?(vt=Ue,Ue=null,Qe=null):typeof Qe=="function"&&(vt=Qe,Qe=null),Ue!=null&&this.write(Ue,Qe),ri.corked&&(ri.corked=1,this.uncork()),ri.ending||Ye(this,ri,vt),this},Object.defineProperty(de.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function J(Ue){return Ue.ending&&Ue.length===0&&Ue.bufferedRequest===null&&!Ue.finished&&!Ue.writing}function U(Ue,Qe){Ue._final(function(vt){Qe.pendingcb--,vt&&oe(Ue,vt),Qe.prefinished=!0,Ue.emit("prefinish"),ve(Ue,Qe)})}function Z(Ue,Qe){!Qe.prefinished&&!Qe.finalCalled&&(typeof Ue._final=="function"&&!Qe.destroyed?(Qe.pendingcb++,Qe.finalCalled=!0,Ve.nextTick(U,Ue,Qe)):(Qe.prefinished=!0,Ue.emit("prefinish")))}function ve(Ue,Qe){var vt=J(Qe);if(vt&&(Z(Ue,Qe),Qe.pendingcb===0&&(Qe.finished=!0,Ue.emit("finish"),Qe.autoDestroy))){var ri=Ue._readableState;(!ri||ri.autoDestroy&&ri.endEmitted)&&Ue.destroy()}return vt}function Ye(Ue,Qe,vt){Qe.ending=!0,ve(Ue,Qe),vt&&(Qe.finished?Ve.nextTick(vt):Ue.once("finish",vt)),Qe.ended=!0,Ue.writable=!1}function rt(Ue,Qe,vt){var ri=Ue.entry;for(Ue.entry=null;ri;){var ci=ri.callback;Qe.pendingcb--,ci(vt),ri=ri.next}Qe.corkedRequestsFree.next=Ue}return Object.defineProperty(de.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(Ue){this._writableState&&(this._writableState.destroyed=Ue)}}),de.prototype.destroy=S.destroy,de.prototype._undestroy=S.undestroy,de.prototype._destroy=function(Ue,Qe){Qe(Ue)},oo}var uo,dl;function Xn(){if(dl)return uo;dl=1;var u=Object.keys||function(A){var T=[];for(var D in A)T.push(D);return T};uo=E;var f=$c(),d=Vc();ut(E,f);for(var _=u(d.prototype),x=0;x<_.length;x++){var I=_[x];E.prototype[I]||(E.prototype[I]=d.prototype[I])}function E(A){if(!(this instanceof E))return new E(A);f.call(this,A),d.call(this,A),this.allowHalfOpen=!0,A&&(A.readable===!1&&(this.readable=!1),A.writable===!1&&(this.writable=!1),A.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",M)))}Object.defineProperty(E.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(E.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(E.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function M(){this._writableState.ended||Ve.nextTick(S,this)}function S(A){A.end()}return Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(A){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=A,this._writableState.destroyed=A)}}),uo}var Bs={},Kc=ct.Buffer,pl=Kc.isEncoding||function(u){switch(u=""+u,u&&u.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function Om(u){if(!u)return"utf8";for(var f;;)switch(u){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return u;default:if(f)return;u=(""+u).toLowerCase(),f=!0}}function Pm(u){var f=Om(u);if(typeof f!="string"&&(Kc.isEncoding===pl||!pl(u)))throw new Error("Unknown encoding: "+u);return f||u}Bs.StringDecoder=M0;function M0(u){this.encoding=Pm(u);var f;switch(this.encoding){case"utf16le":this.text=Vm,this.end=Km,f=4;break;case"utf8":this.fillLast=Um,f=4;break;case"base64":this.text=$m,this.end=Hm,f=3;break;default:this.write=Gm,this.end=zm;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Kc.allocUnsafe(f)}M0.prototype.write=function(u){if(u.length===0)return"";var f,d;if(this.lastNeed){if(f=this.fillLast(u),f===void 0)return"";d=this.lastNeed,this.lastNeed=0}else d=0;return d<u.length?f?f+this.text(u,d):this.text(u,d):f||""};M0.prototype.end=qm;M0.prototype.text=Fm;M0.prototype.fillLast=function(u){if(this.lastNeed<=u.length)return u.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);u.copy(this.lastChar,this.lastTotal-this.lastNeed,0,u.length),this.lastNeed-=u.length};function co(u){return u<=127?0:u>>5===6?2:u>>4===14?3:u>>3===30?4:u>>6===2?-1:-2}function Lm(u,f,d){var _=f.length-1;if(_<d)return 0;var x=co(f[_]);return x>=0?(x>0&&(u.lastNeed=x-1),x):--_<d||x===-2?0:(x=co(f[_]),x>=0?(x>0&&(u.lastNeed=x-2),x):--_<d||x===-2?0:(x=co(f[_]),x>=0?(x>0&&(x===2?x=0:u.lastNeed=x-3),x):0))}function km(u,f,d){if((f[0]&192)!==128)return u.lastNeed=0,"�";if(u.lastNeed>1&&f.length>1){if((f[1]&192)!==128)return u.lastNeed=1,"�";if(u.lastNeed>2&&f.length>2&&(f[2]&192)!==128)return u.lastNeed=2,"�"}}function Um(u){var f=this.lastTotal-this.lastNeed,d=km(this,u);if(d!==void 0)return d;if(this.lastNeed<=u.length)return u.copy(this.lastChar,f,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);u.copy(this.lastChar,f,0,u.length),this.lastNeed-=u.length}function Fm(u,f){var d=Lm(this,u,f);if(!this.lastNeed)return u.toString("utf8",f);this.lastTotal=d;var _=u.length-(d-this.lastNeed);return u.copy(this.lastChar,0,_),u.toString("utf8",f,_)}function qm(u){var f=u&&u.length?this.write(u):"";return this.lastNeed?f+"�":f}function Vm(u,f){if((u.length-f)%2===0){var d=u.toString("utf16le",f);if(d){var _=d.charCodeAt(d.length-1);if(_>=55296&&_<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=u[u.length-2],this.lastChar[1]=u[u.length-1],d.slice(0,-1)}return d}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=u[u.length-1],u.toString("utf16le",f,u.length-1)}function Km(u){var f=u&&u.length?this.write(u):"";if(this.lastNeed){var d=this.lastTotal-this.lastNeed;return f+this.lastChar.toString("utf16le",0,d)}return f}function $m(u,f){var d=(u.length-f)%3;return d===0?u.toString("base64",f):(this.lastNeed=3-d,this.lastTotal=3,d===1?this.lastChar[0]=u[u.length-1]:(this.lastChar[0]=u[u.length-2],this.lastChar[1]=u[u.length-1]),u.toString("base64",f,u.length-d))}function Hm(u){var f=u&&u.length?this.write(u):"";return this.lastNeed?f+this.lastChar.toString("base64",0,3-this.lastNeed):f}function Gm(u){return u.toString(this.encoding)}function zm(u){return u&&u.length?this.write(u):""}var vl=ta.codes.ERR_STREAM_PREMATURE_CLOSE;function jm(u){var f=!1;return function(){if(!f){f=!0;for(var d=arguments.length,_=new Array(d),x=0;x<d;x++)_[x]=arguments[x];u.apply(this,_)}}}function Wm(){}function Ym(u){return u.setHeader&&typeof u.abort=="function"}function D1(u,f,d){if(typeof f=="function")return D1(u,null,f);f||(f={}),d=jm(d||Wm);var _=f.readable||f.readable!==!1&&u.readable,x=f.writable||f.writable!==!1&&u.writable,I=function(){u.writable||M()},E=u._writableState&&u._writableState.finished,M=function(){x=!1,E=!0,_||d.call(u)},S=u._readableState&&u._readableState.endEmitted,A=function(){_=!1,S=!0,x||d.call(u)},T=function(j){d.call(u,j)},D=function(){var j;if(_&&!S)return(!u._readableState||!u._readableState.ended)&&(j=new vl),d.call(u,j);if(x&&!E)return(!u._writableState||!u._writableState.ended)&&(j=new vl),d.call(u,j)},O=function(){u.req.on("finish",M)};return Ym(u)?(u.on("complete",M),u.on("abort",D),u.req?O():u.on("request",O)):x&&!u._writableState&&(u.on("end",I),u.on("close",I)),u.on("end",A),u.on("finish",M),f.error!==!1&&u.on("error",T),u.on("close",D),function(){u.removeListener("complete",M),u.removeListener("abort",D),u.removeListener("request",O),u.req&&u.req.removeListener("finish",M),u.removeListener("end",I),u.removeListener("close",I),u.removeListener("finish",M),u.removeListener("end",A),u.removeListener("error",T),u.removeListener("close",D)}}var Qs=D1,ho,yl;function Xm(){if(yl)return ho;yl=1;var u;function f(ie,oe,ge){return oe=d(oe),oe in ie?Object.defineProperty(ie,oe,{value:ge,enumerable:!0,configurable:!0,writable:!0}):ie[oe]=ge,ie}function d(ie){var oe=_(ie,"string");return typeof oe=="symbol"?oe:String(oe)}function _(ie,oe){if(typeof ie!="object"||ie===null)return ie;var ge=ie[Symbol.toPrimitive];if(ge!==void 0){var be=ge.call(ie,oe||"default");if(typeof be!="object")return be;throw new TypeError("@@toPrimitive must return a primitive value.")}return(oe==="string"?String:Number)(ie)}var x=Qs,I=Symbol("lastResolve"),E=Symbol("lastReject"),M=Symbol("error"),S=Symbol("ended"),A=Symbol("lastPromise"),T=Symbol("handlePromise"),D=Symbol("stream");function O(ie,oe){return{value:ie,done:oe}}function j(ie){var oe=ie[I];if(oe!==null){var ge=ie[D].read();ge!==null&&(ie[A]=null,ie[I]=null,ie[E]=null,oe(O(ge,!1)))}}function $(ie){Ve.nextTick(j,ie)}function W(ie,oe){return function(ge,be){ie.then(function(){if(oe[S]){ge(O(void 0,!0));return}oe[T](ge,be)},be)}}var Q=Object.getPrototypeOf(function(){}),X=Object.setPrototypeOf((u={get stream(){return this[D]},next:function(){var ie=this,oe=this[M];if(oe!==null)return Promise.reject(oe);if(this[S])return Promise.resolve(O(void 0,!0));if(this[D].destroyed)return new Promise(function(de,Ce){Ve.nextTick(function(){ie[M]?Ce(ie[M]):de(O(void 0,!0))})});var ge=this[A],be;if(ge)be=new Promise(W(ge,this));else{var ze=this[D].read();if(ze!==null)return Promise.resolve(O(ze,!1));be=new Promise(this[T])}return this[A]=be,be}},f(u,Symbol.asyncIterator,function(){return this}),f(u,"return",function(){var ie=this;return new Promise(function(oe,ge){ie[D].destroy(null,function(be){if(be){ge(be);return}oe(O(void 0,!0))})})}),u),Q),Y=function(ie){var oe,ge=Object.create(X,(oe={},f(oe,D,{value:ie,writable:!0}),f(oe,I,{value:null,writable:!0}),f(oe,E,{value:null,writable:!0}),f(oe,M,{value:null,writable:!0}),f(oe,S,{value:ie._readableState.endEmitted,writable:!0}),f(oe,T,{value:function(be,ze){var de=ge[D].read();de?(ge[A]=null,ge[I]=null,ge[E]=null,be(O(de,!1))):(ge[I]=be,ge[E]=ze)},writable:!0}),oe));return ge[A]=null,x(ie,function(be){if(be&&be.code!=="ERR_STREAM_PREMATURE_CLOSE"){var ze=ge[E];ze!==null&&(ge[A]=null,ge[I]=null,ge[E]=null,ze(be)),ge[M]=be;return}var de=ge[I];de!==null&&(ge[A]=null,ge[I]=null,ge[E]=null,de(O(void 0,!0))),ge[S]=!0}),ie.on("readable",$.bind(null,ge)),ge};return ho=Y,ho}var lo,gl;function Qm(){return gl||(gl=1,lo=function(){throw new Error("Readable.from is not available in the browser")}),lo}var po,ml;function $c(){if(ml)return po;ml=1,po=Ce;var u;Ce.ReadableState=de,Lc.EventEmitter;var f=function(tt,et){return tt.listeners(et).length},d=m1,_=pe.Buffer,x=(typeof Me<"u"?Me:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function I(tt){return _.from(tt)}function E(tt){return _.isBuffer(tt)||tt instanceof x}var M=wn,S;M&&M.debuglog?S=M.debuglog("stream"):S=function(){};var A=_m(),T=M1,D=N1,O=D.getHighWaterMark,j=ta.codes,$=j.ERR_INVALID_ARG_TYPE,W=j.ERR_STREAM_PUSH_AFTER_EOF,Q=j.ERR_METHOD_NOT_IMPLEMENTED,X=j.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Y,ie,oe;ut(Ce,d);var ge=T.errorOrDestroy,be=["error","close","destroy","pause","resume"];function ze(tt,et,$e){if(typeof tt.prependListener=="function")return tt.prependListener(et,$e);!tt._events||!tt._events[et]?tt.on(et,$e):Array.isArray(tt._events[et])?tt._events[et].unshift($e):tt._events[et]=[$e,tt._events[et]]}function de(tt,et,$e){u=u||Xn(),tt=tt||{},typeof $e!="boolean"&&($e=et instanceof u),this.objectMode=!!tt.objectMode,$e&&(this.objectMode=this.objectMode||!!tt.readableObjectMode),this.highWaterMark=O(this,tt,"readableHighWaterMark",$e),this.buffer=new A,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=tt.emitClose!==!1,this.autoDestroy=!!tt.autoDestroy,this.destroyed=!1,this.defaultEncoding=tt.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,tt.encoding&&(Y||(Y=Bs.StringDecoder),this.decoder=new Y(tt.encoding),this.encoding=tt.encoding)}function Ce(tt){if(u=u||Xn(),!(this instanceof Ce))return new Ce(tt);var et=this instanceof u;this._readableState=new de(tt,this,et),this.readable=!0,tt&&(typeof tt.read=="function"&&(this._read=tt.read),typeof tt.destroy=="function"&&(this._destroy=tt.destroy)),d.call(this)}Object.defineProperty(Ce.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(tt){this._readableState&&(this._readableState.destroyed=tt)}}),Ce.prototype.destroy=T.destroy,Ce.prototype._undestroy=T.undestroy,Ce.prototype._destroy=function(tt,et){et(tt)},Ce.prototype.push=function(tt,et){var $e=this._readableState,Le;return $e.objectMode?Le=!0:typeof tt=="string"&&(et=et||$e.defaultEncoding,et!==$e.encoding&&(tt=_.from(tt,et),et=""),Le=!0),ke(this,tt,et,!1,Le)},Ce.prototype.unshift=function(tt){return ke(this,tt,null,!0,!1)};function ke(tt,et,$e,Le,ot){S("readableAddChunk",et);var Oe=tt._readableState;if(et===null)Oe.reading=!1,z(tt,Oe);else{var Ne;if(ot||(Ne=re(Oe,et)),Ne)ge(tt,Ne);else if(Oe.objectMode||et&&et.length>0)if(typeof et!="string"&&!Oe.objectMode&&Object.getPrototypeOf(et)!==_.prototype&&(et=I(et)),Le)Oe.endEmitted?ge(tt,new X):le(tt,Oe,et,!0);else if(Oe.ended)ge(tt,new W);else{if(Oe.destroyed)return!1;Oe.reading=!1,Oe.decoder&&!$e?(et=Oe.decoder.write(et),Oe.objectMode||et.length!==0?le(tt,Oe,et,!1):q(tt,Oe)):le(tt,Oe,et,!1)}else Le||(Oe.reading=!1,q(tt,Oe))}return!Oe.ended&&(Oe.length<Oe.highWaterMark||Oe.length===0)}function le(tt,et,$e,Le){et.flowing&&et.length===0&&!et.sync?(et.awaitDrain=0,tt.emit("data",$e)):(et.length+=et.objectMode?1:$e.length,Le?et.buffer.unshift($e):et.buffer.push($e),et.needReadable&&ee(tt)),q(tt,et)}function re(tt,et){var $e;return!E(et)&&typeof et!="string"&&et!==void 0&&!tt.objectMode&&($e=new $("chunk",["string","Buffer","Uint8Array"],et)),$e}Ce.prototype.isPaused=function(){return this._readableState.flowing===!1},Ce.prototype.setEncoding=function(tt){Y||(Y=Bs.StringDecoder);var et=new Y(tt);this._readableState.decoder=et,this._readableState.encoding=this._readableState.decoder.encoding;for(var $e=this._readableState.buffer.head,Le="";$e!==null;)Le+=et.write($e.data),$e=$e.next;return this._readableState.buffer.clear(),Le!==""&&this._readableState.buffer.push(Le),this._readableState.length=Le.length,this};var P=1073741824;function k(tt){return tt>=P?tt=P:(tt--,tt|=tt>>>1,tt|=tt>>>2,tt|=tt>>>4,tt|=tt>>>8,tt|=tt>>>16,tt++),tt}function B(tt,et){return tt<=0||et.length===0&&et.ended?0:et.objectMode?1:tt!==tt?et.flowing&&et.length?et.buffer.head.data.length:et.length:(tt>et.highWaterMark&&(et.highWaterMark=k(tt)),tt<=et.length?tt:et.ended?et.length:(et.needReadable=!0,0))}Ce.prototype.read=function(tt){S("read",tt),tt=parseInt(tt,10);var et=this._readableState,$e=tt;if(tt!==0&&(et.emittedReadable=!1),tt===0&&et.needReadable&&((et.highWaterMark!==0?et.length>=et.highWaterMark:et.length>0)||et.ended))return S("read: emitReadable",et.length,et.ended),et.length===0&&et.ended?vt(this):ee(this),null;if(tt=B(tt,et),tt===0&&et.ended)return et.length===0&&vt(this),null;var Le=et.needReadable;S("need readable",Le),(et.length===0||et.length-tt<et.highWaterMark)&&(Le=!0,S("length less than watermark",Le)),et.ended||et.reading?(Le=!1,S("reading or ended",Le)):Le&&(S("do read"),et.reading=!0,et.sync=!0,et.length===0&&(et.needReadable=!0),this._read(et.highWaterMark),et.sync=!1,et.reading||(tt=B($e,et)));var ot;return tt>0?ot=Qe(tt,et):ot=null,ot===null?(et.needReadable=et.length<=et.highWaterMark,tt=0):(et.length-=tt,et.awaitDrain=0),et.length===0&&(et.ended||(et.needReadable=!0),$e!==tt&&et.ended&&vt(this)),ot!==null&&this.emit("data",ot),ot};function z(tt,et){if(S("onEofChunk"),!et.ended){if(et.decoder){var $e=et.decoder.end();$e&&$e.length&&(et.buffer.push($e),et.length+=et.objectMode?1:$e.length)}et.ended=!0,et.sync?ee(tt):(et.needReadable=!1,et.emittedReadable||(et.emittedReadable=!0,H(tt)))}}function ee(tt){var et=tt._readableState;S("emitReadable",et.needReadable,et.emittedReadable),et.needReadable=!1,et.emittedReadable||(S("emitReadable",et.flowing),et.emittedReadable=!0,Ve.nextTick(H,tt))}function H(tt){var et=tt._readableState;S("emitReadable_",et.destroyed,et.length,et.ended),!et.destroyed&&(et.length||et.ended)&&(tt.emit("readable"),et.emittedReadable=!1),et.needReadable=!et.flowing&&!et.ended&&et.length<=et.highWaterMark,Ue(tt)}function q(tt,et){et.readingMore||(et.readingMore=!0,Ve.nextTick(J,tt,et))}function J(tt,et){for(;!et.reading&&!et.ended&&(et.length<et.highWaterMark||et.flowing&&et.length===0);){var $e=et.length;if(S("maybeReadMore read 0"),tt.read(0),$e===et.length)break}et.readingMore=!1}Ce.prototype._read=function(tt){ge(this,new Q("_read()"))},Ce.prototype.pipe=function(tt,et){var $e=this,Le=this._readableState;switch(Le.pipesCount){case 0:Le.pipes=tt;break;case 1:Le.pipes=[Le.pipes,tt];break;default:Le.pipes.push(tt);break}Le.pipesCount+=1,S("pipe count=%d opts=%j",Le.pipesCount,et);var ot=(!et||et.end!==!1)&&tt!==Ve.stdout&&tt!==Ve.stderr,Oe=ot?Fe:St;Le.endEmitted?Ve.nextTick(Oe):$e.once("end",Oe),tt.on("unpipe",Ne);function Ne(pi,eM){S("onunpipe"),pi===$e&&eM&&eM.hasUnpiped===!1&&(eM.hasUnpiped=!0,oi())}function Fe(){S("onend"),tt.end()}var Je=U($e);tt.on("drain",Je);var Dt=!1;function oi(){S("cleanup"),tt.removeListener("close",ii),tt.removeListener("finish",Ot),tt.removeListener("drain",Je),tt.removeListener("error",li),tt.removeListener("unpipe",Ne),$e.removeListener("end",Fe),$e.removeListener("end",St),$e.removeListener("data",Bt),Dt=!0,Le.awaitDrain&&(!tt._writableState||tt._writableState.needDrain)&&Je()}$e.on("data",Bt);function Bt(pi){S("ondata");var eM=tt.write(pi);S("dest.write",eM),eM===!1&&((Le.pipesCount===1&&Le.pipes===tt||Le.pipesCount>1&&ci(Le.pipes,tt)!==-1)&&!Dt&&(S("false write response, pause",Le.awaitDrain),Le.awaitDrain++),$e.pause())}function li(pi){S("onerror",pi),St(),tt.removeListener("error",li),f(tt,"error")===0&&ge(tt,pi)}ze(tt,"error",li);function ii(){tt.removeListener("finish",Ot),St()}tt.once("close",ii);function Ot(){S("onfinish"),tt.removeListener("close",ii),St()}tt.once("finish",Ot);function St(){S("unpipe"),$e.unpipe(tt)}return tt.emit("pipe",$e),Le.flowing||(S("pipe resume"),$e.resume()),tt};function U(tt){return function(){var et=tt._readableState;S("pipeOnDrain",et.awaitDrain),et.awaitDrain&&et.awaitDrain--,et.awaitDrain===0&&f(tt,"data")&&(et.flowing=!0,Ue(tt))}}Ce.prototype.unpipe=function(tt){var et=this._readableState,$e={hasUnpiped:!1};if(et.pipesCount===0)return this;if(et.pipesCount===1)return tt&&tt!==et.pipes?this:(tt||(tt=et.pipes),et.pipes=null,et.pipesCount=0,et.flowing=!1,tt&&tt.emit("unpipe",this,$e),this);if(!tt){var Le=et.pipes,ot=et.pipesCount;et.pipes=null,et.pipesCount=0,et.flowing=!1;for(var Oe=0;Oe<ot;Oe++)Le[Oe].emit("unpipe",this,{hasUnpiped:!1});return this}var Ne=ci(et.pipes,tt);return Ne===-1?this:(et.pipes.splice(Ne,1),et.pipesCount-=1,et.pipesCount===1&&(et.pipes=et.pipes[0]),tt.emit("unpipe",this,$e),this)},Ce.prototype.on=function(tt,et){var $e=d.prototype.on.call(this,tt,et),Le=this._readableState;return tt==="data"?(Le.readableListening=this.listenerCount("readable")>0,Le.flowing!==!1&&this.resume()):tt==="readable"&&!Le.endEmitted&&!Le.readableListening&&(Le.readableListening=Le.needReadable=!0,Le.flowing=!1,Le.emittedReadable=!1,S("on readable",Le.length,Le.reading),Le.length?ee(this):Le.reading||Ve.nextTick(ve,this)),$e},Ce.prototype.addListener=Ce.prototype.on,Ce.prototype.removeListener=function(tt,et){var $e=d.prototype.removeListener.call(this,tt,et);return tt==="readable"&&Ve.nextTick(Z,this),$e},Ce.prototype.removeAllListeners=function(tt){var et=d.prototype.removeAllListeners.apply(this,arguments);return(tt==="readable"||tt===void 0)&&Ve.nextTick(Z,this),et};function Z(tt){var et=tt._readableState;et.readableListening=tt.listenerCount("readable")>0,et.resumeScheduled&&!et.paused?et.flowing=!0:tt.listenerCount("data")>0&&tt.resume()}function ve(tt){S("readable nexttick read 0"),tt.read(0)}Ce.prototype.resume=function(){var tt=this._readableState;return tt.flowing||(S("resume"),tt.flowing=!tt.readableListening,Ye(this,tt)),tt.paused=!1,this};function Ye(tt,et){et.resumeScheduled||(et.resumeScheduled=!0,Ve.nextTick(rt,tt,et))}function rt(tt,et){S("resume",et.reading),et.reading||tt.read(0),et.resumeScheduled=!1,tt.emit("resume"),Ue(tt),et.flowing&&!et.reading&&tt.read(0)}Ce.prototype.pause=function(){return S("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(S("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Ue(tt){var et=tt._readableState;for(S("flow",et.flowing);et.flowing&&tt.read()!==null;);}Ce.prototype.wrap=function(tt){var et=this,$e=this._readableState,Le=!1;tt.on("end",function(){if(S("wrapped end"),$e.decoder&&!$e.ended){var Ne=$e.decoder.end();Ne&&Ne.length&&et.push(Ne)}et.push(null)}),tt.on("data",function(Ne){if(S("wrapped data"),$e.decoder&&(Ne=$e.decoder.write(Ne)),!($e.objectMode&&Ne==null)&&!(!$e.objectMode&&(!Ne||!Ne.length))){var Fe=et.push(Ne);Fe||(Le=!0,tt.pause())}});for(var ot in tt)this[ot]===void 0&&typeof tt[ot]=="function"&&(this[ot]=function(Ne){return function(){return tt[Ne].apply(tt,arguments)}}(ot));for(var Oe=0;Oe<be.length;Oe++)tt.on(be[Oe],this.emit.bind(this,be[Oe]));return this._read=function(Ne){S("wrapped _read",Ne),Le&&(Le=!1,tt.resume())},this},typeof Symbol=="function"&&(Ce.prototype[Symbol.asyncIterator]=function(){return ie===void 0&&(ie=Xm()),ie(this)}),Object.defineProperty(Ce.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(Ce.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(Ce.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(tt){this._readableState&&(this._readableState.flowing=tt)}}),Ce._fromList=Qe,Object.defineProperty(Ce.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function Qe(tt,et){if(et.length===0)return null;var $e;return et.objectMode?$e=et.buffer.shift():!tt||tt>=et.length?(et.decoder?$e=et.buffer.join(""):et.buffer.length===1?$e=et.buffer.first():$e=et.buffer.concat(et.length),et.buffer.clear()):$e=et.buffer.consume(tt,et.decoder),$e}function vt(tt){var et=tt._readableState;S("endReadable",et.endEmitted),et.endEmitted||(et.ended=!0,Ve.nextTick(ri,et,tt))}function ri(tt,et){if(S("endReadableNT",tt.endEmitted,tt.length),!tt.endEmitted&&tt.length===0&&(tt.endEmitted=!0,et.readable=!1,et.emit("end"),tt.autoDestroy)){var $e=et._writableState;(!$e||$e.autoDestroy&&$e.finished)&&et.destroy()}}typeof Symbol=="function"&&(Ce.from=function(tt,et){return oe===void 0&&(oe=Qm()),oe(Ce,tt,et)});function ci(tt,et){for(var $e=0,Le=tt.length;$e<Le;$e++)if(tt[$e]===et)return $e;return-1}return po}var Hc=sn,Zs=ta.codes,Zm=Zs.ERR_METHOD_NOT_IMPLEMENTED,Jm=Zs.ERR_MULTIPLE_CALLBACK,eb=Zs.ERR_TRANSFORM_ALREADY_TRANSFORMING,tb=Zs.ERR_TRANSFORM_WITH_LENGTH_0,Js=Xn();ut(sn,Js);function rb(u,f){var d=this._transformState;d.transforming=!1;var _=d.writecb;if(_===null)return this.emit("error",new Jm);d.writechunk=null,d.writecb=null,f!=null&&this.push(f),_(u);var x=this._readableState;x.reading=!1,(x.needReadable||x.length<x.highWaterMark)&&this._read(x.highWaterMark)}function sn(u){if(!(this instanceof sn))return new sn(u);Js.call(this,u),this._transformState={afterTransform:rb.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,u&&(typeof u.transform=="function"&&(this._transform=u.transform),typeof u.flush=="function"&&(this._flush=u.flush)),this.on("prefinish",ib)}function ib(){var u=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(f,d){bl(u,f,d)}):bl(this,null,null)}sn.prototype.push=function(u,f){return this._transformState.needTransform=!1,Js.prototype.push.call(this,u,f)};sn.prototype._transform=function(u,f,d){d(new Zm("_transform()"))};sn.prototype._write=function(u,f,d){var _=this._transformState;if(_.writecb=d,_.writechunk=u,_.writeencoding=f,!_.transforming){var x=this._readableState;(_.needTransform||x.needReadable||x.length<x.highWaterMark)&&this._read(x.highWaterMark)}};sn.prototype._read=function(u){var f=this._transformState;f.writechunk!==null&&!f.transforming?(f.transforming=!0,this._transform(f.writechunk,f.writeencoding,f.afterTransform)):f.needTransform=!0};sn.prototype._destroy=function(u,f){Js.prototype._destroy.call(this,u,function(d){f(d)})};function bl(u,f,d){if(f)return u.emit("error",f);if(d!=null&&u.push(d),u._writableState.length)throw new tb;if(u._transformState.transforming)throw new eb;return u.push(null)}var O1=C0,P1=Hc;ut(C0,P1);function C0(u){if(!(this instanceof C0))return new C0(u);P1.call(this,u)}C0.prototype._transform=function(u,f,d){d(null,u)};var vo;function nb(u){var f=!1;return function(){f||(f=!0,u.apply(void 0,arguments))}}var L1=ta.codes,ab=L1.ERR_MISSING_ARGS,sb=L1.ERR_STREAM_DESTROYED;function xl(u){if(u)throw u}function fb(u){return u.setHeader&&typeof u.abort=="function"}function ob(u,f,d,_){_=nb(_);var x=!1;u.on("close",function(){x=!0}),vo===void 0&&(vo=Qs),vo(u,{readable:f,writable:d},function(E){if(E)return _(E);x=!0,_()});var I=!1;return function(E){if(!x&&!I){if(I=!0,fb(u))return u.abort();if(typeof u.destroy=="function")return u.destroy();_(E||new sb("pipe"))}}}function _l(u){u()}function ub(u,f){return u.pipe(f)}function cb(u){return!u.length||typeof u[u.length-1]!="function"?xl:u.pop()}function hb(){for(var u=arguments.length,f=new Array(u),d=0;d<u;d++)f[d]=arguments[d];var _=cb(f);if(Array.isArray(f[0])&&(f=f[0]),f.length<2)throw new ab("streams");var x,I=f.map(function(E,M){var S=M<f.length-1,A=M>0;return ob(E,S,A,function(T){x||(x=T),T&&I.forEach(_l),!S&&(I.forEach(_l),_(x))})});return f.reduce(ub)}var k1=hb;(function(u,f){f=u.exports=$c(),f.Stream=f,f.Readable=f,f.Writable=Vc(),f.Duplex=Xn(),f.Transform=Hc,f.PassThrough=O1,f.finished=Qs,f.pipeline=k1})(Xu,Xu.exports);var U1=Xu.exports,Is=ct.Buffer,F1=U1.Transform,lb=ut;function db(u,f){if(!Is.isBuffer(u)&&typeof u!="string")throw new TypeError(f+" must be a string or a buffer")}function Tn(u){F1.call(this),this._block=Is.allocUnsafe(u),this._blockSize=u,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}lb(Tn,F1);Tn.prototype._transform=function(u,f,d){var _=null;try{this.update(u,f)}catch(x){_=x}d(_)};Tn.prototype._flush=function(u){var f=null;try{this.push(this.digest())}catch(d){f=d}u(f)};Tn.prototype.update=function(u,f){if(db(u,"Data"),this._finalized)throw new Error("Digest already called");Is.isBuffer(u)||(u=Is.from(u,f));for(var d=this._block,_=0;this._blockOffset+u.length-_>=this._blockSize;){for(var x=this._blockOffset;x<this._blockSize;)d[x++]=u[_++];this._update(),this._blockOffset=0}for(;_<u.length;)d[this._blockOffset++]=u[_++];for(var I=0,E=u.length*8;E>0;++I)this._length[I]+=E,E=this._length[I]/4294967296|0,E>0&&(this._length[I]-=4294967296*E);return this};Tn.prototype._update=function(){throw new Error("_update is not implemented")};Tn.prototype.digest=function(u){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var f=this._digest();u!==void 0&&(f=f.toString(u)),this._block.fill(0),this._blockOffset=0;for(var d=0;d<4;++d)this._length[d]=0;return f};Tn.prototype._digest=function(){throw new Error("_digest is not implemented")};var q1=Tn,pb=ut,V1=q1,vb=ct.Buffer,yb=new Array(16);function ef(){V1.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}pb(ef,V1);ef.prototype._update=function(){for(var u=yb,f=0;f<16;++f)u[f]=this._block.readInt32LE(f*4);var d=this._a,_=this._b,x=this._c,I=this._d;d=ur(d,_,x,I,u[0],3614090360,7),I=ur(I,d,_,x,u[1],3905402710,12),x=ur(x,I,d,_,u[2],606105819,17),_=ur(_,x,I,d,u[3],3250441966,22),d=ur(d,_,x,I,u[4],4118548399,7),I=ur(I,d,_,x,u[5],1200080426,12),x=ur(x,I,d,_,u[6],2821735955,17),_=ur(_,x,I,d,u[7],4249261313,22),d=ur(d,_,x,I,u[8],1770035416,7),I=ur(I,d,_,x,u[9],2336552879,12),x=ur(x,I,d,_,u[10],4294925233,17),_=ur(_,x,I,d,u[11],2304563134,22),d=ur(d,_,x,I,u[12],1804603682,7),I=ur(I,d,_,x,u[13],4254626195,12),x=ur(x,I,d,_,u[14],2792965006,17),_=ur(_,x,I,d,u[15],1236535329,22),d=cr(d,_,x,I,u[1],4129170786,5),I=cr(I,d,_,x,u[6],3225465664,9),x=cr(x,I,d,_,u[11],643717713,14),_=cr(_,x,I,d,u[0],3921069994,20),d=cr(d,_,x,I,u[5],3593408605,5),I=cr(I,d,_,x,u[10],38016083,9),x=cr(x,I,d,_,u[15],3634488961,14),_=cr(_,x,I,d,u[4],3889429448,20),d=cr(d,_,x,I,u[9],568446438,5),I=cr(I,d,_,x,u[14],3275163606,9),x=cr(x,I,d,_,u[3],4107603335,14),_=cr(_,x,I,d,u[8],1163531501,20),d=cr(d,_,x,I,u[13],2850285829,5),I=cr(I,d,_,x,u[2],4243563512,9),x=cr(x,I,d,_,u[7],1735328473,14),_=cr(_,x,I,d,u[12],2368359562,20),d=hr(d,_,x,I,u[5],4294588738,4),I=hr(I,d,_,x,u[8],2272392833,11),x=hr(x,I,d,_,u[11],1839030562,16),_=hr(_,x,I,d,u[14],4259657740,23),d=hr(d,_,x,I,u[1],2763975236,4),I=hr(I,d,_,x,u[4],1272893353,11),x=hr(x,I,d,_,u[7],4139469664,16),_=hr(_,x,I,d,u[10],3200236656,23),d=hr(d,_,x,I,u[13],681279174,4),I=hr(I,d,_,x,u[0],3936430074,11),x=hr(x,I,d,_,u[3],3572445317,16),_=hr(_,x,I,d,u[6],76029189,23),d=hr(d,_,x,I,u[9],3654602809,4),I=hr(I,d,_,x,u[12],3873151461,11),x=hr(x,I,d,_,u[15],530742520,16),_=hr(_,x,I,d,u[2],3299628645,23),d=lr(d,_,x,I,u[0],4096336452,6),I=lr(I,d,_,x,u[7],1126891415,10),x=lr(x,I,d,_,u[14],2878612391,15),_=lr(_,x,I,d,u[5],4237533241,21),d=lr(d,_,x,I,u[12],1700485571,6),I=lr(I,d,_,x,u[3],2399980690,10),x=lr(x,I,d,_,u[10],4293915773,15),_=lr(_,x,I,d,u[1],2240044497,21),d=lr(d,_,x,I,u[8],1873313359,6),I=lr(I,d,_,x,u[15],4264355552,10),x=lr(x,I,d,_,u[6],2734768916,15),_=lr(_,x,I,d,u[13],1309151649,21),d=lr(d,_,x,I,u[4],4149444226,6),I=lr(I,d,_,x,u[11],3174756917,10),x=lr(x,I,d,_,u[2],718787259,15),_=lr(_,x,I,d,u[9],3951481745,21),this._a=this._a+d|0,this._b=this._b+_|0,this._c=this._c+x|0,this._d=this._d+I|0};ef.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var u=vb.allocUnsafe(16);return u.writeInt32LE(this._a,0),u.writeInt32LE(this._b,4),u.writeInt32LE(this._c,8),u.writeInt32LE(this._d,12),u};function tf(u,f){return u<<f|u>>>32-f}function ur(u,f,d,_,x,I,E){return tf(u+(f&d|~f&_)+x+I|0,E)+f|0}function cr(u,f,d,_,x,I,E){return tf(u+(f&_|d&~_)+x+I|0,E)+f|0}function hr(u,f,d,_,x,I,E){return tf(u+(f^d^_)+x+I|0,E)+f|0}function lr(u,f,d,_,x,I,E){return tf(u+(d^(f|~_))+x+I|0,E)+f|0}var Gc=ef,yo=pe.Buffer,gb=ut,K1=q1,mb=new Array(16),i0=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],n0=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],a0=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],s0=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],f0=[0,1518500249,1859775393,2400959708,2840853838],o0=[1352829926,1548603684,1836072691,2053994217,0];function rf(){K1.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}gb(rf,K1);rf.prototype._update=function(){for(var u=mb,f=0;f<16;++f)u[f]=this._block.readInt32LE(f*4);for(var d=this._a|0,_=this._b|0,x=this._c|0,I=this._d|0,E=this._e|0,M=this._a|0,S=this._b|0,A=this._c|0,T=this._d|0,D=this._e|0,O=0;O<80;O+=1){var j,$;O<16?(j=El(d,_,x,I,E,u[i0[O]],f0[0],a0[O]),$=Al(M,S,A,T,D,u[n0[O]],o0[0],s0[O])):O<32?(j=Sl(d,_,x,I,E,u[i0[O]],f0[1],a0[O]),$=Cl(M,S,A,T,D,u[n0[O]],o0[1],s0[O])):O<48?(j=wl(d,_,x,I,E,u[i0[O]],f0[2],a0[O]),$=wl(M,S,A,T,D,u[n0[O]],o0[2],s0[O])):O<64?(j=Cl(d,_,x,I,E,u[i0[O]],f0[3],a0[O]),$=Sl(M,S,A,T,D,u[n0[O]],o0[3],s0[O])):(j=Al(d,_,x,I,E,u[i0[O]],f0[4],a0[O]),$=El(M,S,A,T,D,u[n0[O]],o0[4],s0[O])),d=E,E=I,I=Qn(x,10),x=_,_=j,M=D,D=T,T=Qn(A,10),A=S,S=$}var W=this._b+x+T|0;this._b=this._c+I+D|0,this._c=this._d+E+M|0,this._d=this._e+d+S|0,this._e=this._a+_+A|0,this._a=W};rf.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var u=yo.alloc?yo.alloc(20):new yo(20);return u.writeInt32LE(this._a,0),u.writeInt32LE(this._b,4),u.writeInt32LE(this._c,8),u.writeInt32LE(this._d,12),u.writeInt32LE(this._e,16),u};function Qn(u,f){return u<<f|u>>>32-f}function El(u,f,d,_,x,I,E,M){return Qn(u+(f^d^_)+I+E|0,M)+x|0}function Sl(u,f,d,_,x,I,E,M){return Qn(u+(f&d|~f&_)+I+E|0,M)+x|0}function wl(u,f,d,_,x,I,E,M){return Qn(u+((f|~d)^_)+I+E|0,M)+x|0}function Cl(u,f,d,_,x,I,E,M){return Qn(u+(f&_|d&~_)+I+E|0,M)+x|0}function Al(u,f,d,_,x,I,E,M){return Qn(u+(f^(d|~_))+I+E|0,M)+x|0}var zc=rf,$1={exports:{}},H1=ct.Buffer;function nf(u,f){this._block=H1.alloc(u),this._finalSize=f,this._blockSize=u,this._len=0}nf.prototype.update=function(u,f){typeof u=="string"&&(f=f||"utf8",u=H1.from(u,f));for(var d=this._block,_=this._blockSize,x=u.length,I=this._len,E=0;E<x;){for(var M=I%_,S=Math.min(x-E,_-M),A=0;A<S;A++)d[M+A]=u[E+A];I+=S,E+=S,I%_===0&&this._update(d)}return this._len+=x,this};nf.prototype.digest=function(u){var f=this._len%this._blockSize;this._block[f]=128,this._block.fill(0,f+1),f>=this._finalSize&&(this._update(this._block),this._block.fill(0));var d=this._len*8;if(d<=4294967295)this._block.writeUInt32BE(d,this._blockSize-4);else{var _=(d&4294967295)>>>0,x=(d-_)/4294967296;this._block.writeUInt32BE(x,this._blockSize-8),this._block.writeUInt32BE(_,this._blockSize-4)}this._update(this._block);var I=this._hash();return u?I.toString(u):I};nf.prototype._update=function(){throw new Error("_update must be implemented by subclass")};var Fa=nf,bb=ut,G1=Fa,xb=ct.Buffer,_b=[1518500249,1859775393,-1894007588,-899497514],Eb=new Array(80);function R0(){this.init(),this._w=Eb,G1.call(this,64,56)}bb(R0,G1);R0.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function Sb(u){return u<<5|u>>>27}function wb(u){return u<<30|u>>>2}function Cb(u,f,d,_){return u===0?f&d|~f&_:u===2?f&d|f&_|d&_:f^d^_}R0.prototype._update=function(u){for(var f=this._w,d=this._a|0,_=this._b|0,x=this._c|0,I=this._d|0,E=this._e|0,M=0;M<16;++M)f[M]=u.readInt32BE(M*4);for(;M<80;++M)f[M]=f[M-3]^f[M-8]^f[M-14]^f[M-16];for(var S=0;S<80;++S){var A=~~(S/20),T=Sb(d)+Cb(A,_,x,I)+E+f[S]+_b[A]|0;E=I,I=x,x=wb(_),_=d,d=T}this._a=d+this._a|0,this._b=_+this._b|0,this._c=x+this._c|0,this._d=I+this._d|0,this._e=E+this._e|0};R0.prototype._hash=function(){var u=xb.allocUnsafe(20);return u.writeInt32BE(this._a|0,0),u.writeInt32BE(this._b|0,4),u.writeInt32BE(this._c|0,8),u.writeInt32BE(this._d|0,12),u.writeInt32BE(this._e|0,16),u};var Ab=R0,Bb=ut,z1=Fa,Ib=ct.Buffer,Tb=[1518500249,1859775393,-1894007588,-899497514],Mb=new Array(80);function N0(){this.init(),this._w=Mb,z1.call(this,64,56)}Bb(N0,z1);N0.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function Rb(u){return u<<1|u>>>31}function Nb(u){return u<<5|u>>>27}function Db(u){return u<<30|u>>>2}function Ob(u,f,d,_){return u===0?f&d|~f&_:u===2?f&d|f&_|d&_:f^d^_}N0.prototype._update=function(u){for(var f=this._w,d=this._a|0,_=this._b|0,x=this._c|0,I=this._d|0,E=this._e|0,M=0;M<16;++M)f[M]=u.readInt32BE(M*4);for(;M<80;++M)f[M]=Rb(f[M-3]^f[M-8]^f[M-14]^f[M-16]);for(var S=0;S<80;++S){var A=~~(S/20),T=Nb(d)+Ob(A,_,x,I)+E+f[S]+Tb[A]|0;E=I,I=x,x=Db(_),_=d,d=T}this._a=d+this._a|0,this._b=_+this._b|0,this._c=x+this._c|0,this._d=I+this._d|0,this._e=E+this._e|0};N0.prototype._hash=function(){var u=Ib.allocUnsafe(20);return u.writeInt32BE(this._a|0,0),u.writeInt32BE(this._b|0,4),u.writeInt32BE(this._c|0,8),u.writeInt32BE(this._d|0,12),u.writeInt32BE(this._e|0,16),u};var Pb=N0,Lb=ut,j1=Fa,kb=ct.Buffer,Ub=[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],Fb=new Array(64);function D0(){this.init(),this._w=Fb,j1.call(this,64,56)}Lb(D0,j1);D0.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this};function qb(u,f,d){return d^u&(f^d)}function Vb(u,f,d){return u&f|d&(u|f)}function Kb(u){return(u>>>2|u<<30)^(u>>>13|u<<19)^(u>>>22|u<<10)}function $b(u){return(u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7)}function Hb(u){return(u>>>7|u<<25)^(u>>>18|u<<14)^u>>>3}function Gb(u){return(u>>>17|u<<15)^(u>>>19|u<<13)^u>>>10}D0.prototype._update=function(u){for(var f=this._w,d=this._a|0,_=this._b|0,x=this._c|0,I=this._d|0,E=this._e|0,M=this._f|0,S=this._g|0,A=this._h|0,T=0;T<16;++T)f[T]=u.readInt32BE(T*4);for(;T<64;++T)f[T]=Gb(f[T-2])+f[T-7]+Hb(f[T-15])+f[T-16]|0;for(var D=0;D<64;++D){var O=A+$b(E)+qb(E,M,S)+Ub[D]+f[D]|0,j=Kb(d)+Vb(d,_,x)|0;A=S,S=M,M=E,E=I+O|0,I=x,x=_,_=d,d=O+j|0}this._a=d+this._a|0,this._b=_+this._b|0,this._c=x+this._c|0,this._d=I+this._d|0,this._e=E+this._e|0,this._f=M+this._f|0,this._g=S+this._g|0,this._h=A+this._h|0};D0.prototype._hash=function(){var u=kb.allocUnsafe(32);return u.writeInt32BE(this._a,0),u.writeInt32BE(this._b,4),u.writeInt32BE(this._c,8),u.writeInt32BE(this._d,12),u.writeInt32BE(this._e,16),u.writeInt32BE(this._f,20),u.writeInt32BE(this._g,24),u.writeInt32BE(this._h,28),u};var W1=D0,zb=ut,jb=W1,Wb=Fa,Yb=ct.Buffer,Xb=new Array(64);function af(){this.init(),this._w=Xb,Wb.call(this,64,56)}zb(af,jb);af.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this};af.prototype._hash=function(){var u=Yb.allocUnsafe(28);return u.writeInt32BE(this._a,0),u.writeInt32BE(this._b,4),u.writeInt32BE(this._c,8),u.writeInt32BE(this._d,12),u.writeInt32BE(this._e,16),u.writeInt32BE(this._f,20),u.writeInt32BE(this._g,24),u};var Qb=af,Zb=ut,Y1=Fa,Jb=ct.Buffer,Bl=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],ex=new Array(160);function O0(){this.init(),this._w=ex,Y1.call(this,128,112)}Zb(O0,Y1);O0.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this};function Il(u,f,d){return d^u&(f^d)}function Tl(u,f,d){return u&f|d&(u|f)}function Ml(u,f){return(u>>>28|f<<4)^(f>>>2|u<<30)^(f>>>7|u<<25)}function Rl(u,f){return(u>>>14|f<<18)^(u>>>18|f<<14)^(f>>>9|u<<23)}function tx(u,f){return(u>>>1|f<<31)^(u>>>8|f<<24)^u>>>7}function rx(u,f){return(u>>>1|f<<31)^(u>>>8|f<<24)^(u>>>7|f<<25)}function ix(u,f){return(u>>>19|f<<13)^(f>>>29|u<<3)^u>>>6}function nx(u,f){return(u>>>19|f<<13)^(f>>>29|u<<3)^(u>>>6|f<<26)}function Wt(u,f){return u>>>0<f>>>0?1:0}O0.prototype._update=function(u){for(var f=this._w,d=this._ah|0,_=this._bh|0,x=this._ch|0,I=this._dh|0,E=this._eh|0,M=this._fh|0,S=this._gh|0,A=this._hh|0,T=this._al|0,D=this._bl|0,O=this._cl|0,j=this._dl|0,$=this._el|0,W=this._fl|0,Q=this._gl|0,X=this._hl|0,Y=0;Y<32;Y+=2)f[Y]=u.readInt32BE(Y*4),f[Y+1]=u.readInt32BE(Y*4+4);for(;Y<160;Y+=2){var ie=f[Y-30],oe=f[Y-15*2+1],ge=tx(ie,oe),be=rx(oe,ie);ie=f[Y-2*2],oe=f[Y-2*2+1];var ze=ix(ie,oe),de=nx(oe,ie),Ce=f[Y-7*2],ke=f[Y-7*2+1],le=f[Y-16*2],re=f[Y-16*2+1],P=be+ke|0,k=ge+Ce+Wt(P,be)|0;P=P+de|0,k=k+ze+Wt(P,de)|0,P=P+re|0,k=k+le+Wt(P,re)|0,f[Y]=k,f[Y+1]=P}for(var B=0;B<160;B+=2){k=f[B],P=f[B+1];var z=Tl(d,_,x),ee=Tl(T,D,O),H=Ml(d,T),q=Ml(T,d),J=Rl(E,$),U=Rl($,E),Z=Bl[B],ve=Bl[B+1],Ye=Il(E,M,S),rt=Il($,W,Q),Ue=X+U|0,Qe=A+J+Wt(Ue,X)|0;Ue=Ue+rt|0,Qe=Qe+Ye+Wt(Ue,rt)|0,Ue=Ue+ve|0,Qe=Qe+Z+Wt(Ue,ve)|0,Ue=Ue+P|0,Qe=Qe+k+Wt(Ue,P)|0;var vt=q+ee|0,ri=H+z+Wt(vt,q)|0;A=S,X=Q,S=M,Q=W,M=E,W=$,$=j+Ue|0,E=I+Qe+Wt($,j)|0,I=x,j=O,x=_,O=D,_=d,D=T,T=Ue+vt|0,d=Qe+ri+Wt(T,Ue)|0}this._al=this._al+T|0,this._bl=this._bl+D|0,this._cl=this._cl+O|0,this._dl=this._dl+j|0,this._el=this._el+$|0,this._fl=this._fl+W|0,this._gl=this._gl+Q|0,this._hl=this._hl+X|0,this._ah=this._ah+d+Wt(this._al,T)|0,this._bh=this._bh+_+Wt(this._bl,D)|0,this._ch=this._ch+x+Wt(this._cl,O)|0,this._dh=this._dh+I+Wt(this._dl,j)|0,this._eh=this._eh+E+Wt(this._el,$)|0,this._fh=this._fh+M+Wt(this._fl,W)|0,this._gh=this._gh+S+Wt(this._gl,Q)|0,this._hh=this._hh+A+Wt(this._hl,X)|0};O0.prototype._hash=function(){var u=Jb.allocUnsafe(64);function f(d,_,x){u.writeInt32BE(d,x),u.writeInt32BE(_,x+4)}return f(this._ah,this._al,0),f(this._bh,this._bl,8),f(this._ch,this._cl,16),f(this._dh,this._dl,24),f(this._eh,this._el,32),f(this._fh,this._fl,40),f(this._gh,this._gl,48),f(this._hh,this._hl,56),u};var X1=O0,ax=ut,sx=X1,fx=Fa,ox=ct.Buffer,ux=new Array(160);function sf(){this.init(),this._w=ux,fx.call(this,128,112)}ax(sf,sx);sf.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this};sf.prototype._hash=function(){var u=ox.allocUnsafe(48);function f(d,_,x){u.writeInt32BE(d,x),u.writeInt32BE(_,x+4)}return f(this._ah,this._al,0),f(this._bh,this._bl,8),f(this._ch,this._cl,16),f(this._dh,this._dl,24),f(this._eh,this._el,32),f(this._fh,this._fl,40),u};var cx=sf,ra=$1.exports=function(u){u=u.toLowerCase();var f=ra[u];if(!f)throw new Error(u+" is not supported (we accept pull requests)");return new f};ra.sha=Ab;ra.sha1=Pb;ra.sha224=Qb;ra.sha256=W1;ra.sha384=cx;ra.sha512=X1;var jc=$1.exports,hx=jr,Wc=Lc.EventEmitter,lx=ut;lx(jr,Wc);jr.Readable=$c();jr.Writable=Vc();jr.Duplex=Xn();jr.Transform=Hc;jr.PassThrough=O1;jr.finished=Qs;jr.pipeline=k1;jr.Stream=jr;function jr(){Wc.call(this)}jr.prototype.pipe=function(u,f){var d=this;function _(T){u.writable&&u.write(T)===!1&&d.pause&&d.pause()}d.on("data",_);function x(){d.readable&&d.resume&&d.resume()}u.on("drain",x),!u._isStdio&&(!f||f.end!==!1)&&(d.on("end",E),d.on("close",M));var I=!1;function E(){I||(I=!0,u.end())}function M(){I||(I=!0,typeof u.destroy=="function"&&u.destroy())}function S(T){if(A(),Wc.listenerCount(this,"error")===0)throw T}d.on("error",S),u.on("error",S);function A(){d.removeListener("data",_),u.removeListener("drain",x),d.removeListener("end",E),d.removeListener("close",M),d.removeListener("error",S),u.removeListener("error",S),d.removeListener("end",A),d.removeListener("close",A),u.removeListener("close",A)}return d.on("end",A),d.on("close",A),u.on("close",A),u.emit("pipe",d),u};var Q1=ct.Buffer,Z1=hx.Transform,dx=Bs.StringDecoder,px=ut;function Ci(u){Z1.call(this),this.hashMode=typeof u=="string",this.hashMode?this[u]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}px(Ci,Z1);Ci.prototype.update=function(u,f,d){typeof u=="string"&&(u=Q1.from(u,f));var _=this._update(u);return this.hashMode?this:(d&&(_=this._toString(_,d)),_)};Ci.prototype.setAutoPadding=function(){};Ci.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")};Ci.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")};Ci.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")};Ci.prototype._transform=function(u,f,d){var _;try{this.hashMode?this._update(u):this.push(this._update(u))}catch(x){_=x}finally{d(_)}};Ci.prototype._flush=function(u){var f;try{this.push(this.__final())}catch(d){f=d}u(f)};Ci.prototype._finalOrDigest=function(u){var f=this.__final()||Q1.alloc(0);return u&&(f=this._toString(f,u,!0)),f};Ci.prototype._toString=function(u,f,d){if(this._decoder||(this._decoder=new dx(f),this._encoding=f),this._encoding!==f)throw new Error("can't switch encodings");var _=this._decoder.write(u);return d&&(_+=this._decoder.end()),_};var Mn=Ci,vx=ut,yx=Gc,gx=zc,mx=jc,J1=Mn;function ff(u){J1.call(this,"digest"),this._hash=u}vx(ff,J1);ff.prototype._update=function(u){this._hash.update(u)};ff.prototype._final=function(){return this._hash.digest()};var P0=function(u){return u=u.toLowerCase(),u==="md5"?new yx:u==="rmd160"||u==="ripemd160"?new gx:new ff(mx(u))},bx=ut,Gn=ct.Buffer,ev=Mn,xx=Gn.alloc(128),ha=64;function of(u,f){ev.call(this,"digest"),typeof f=="string"&&(f=Gn.from(f)),this._alg=u,this._key=f,f.length>ha?f=u(f):f.length<ha&&(f=Gn.concat([f,xx],ha));for(var d=this._ipad=Gn.allocUnsafe(ha),_=this._opad=Gn.allocUnsafe(ha),x=0;x<ha;x++)d[x]=f[x]^54,_[x]=f[x]^92;this._hash=[d]}bx(of,ev);of.prototype._update=function(u){this._hash.push(u)};of.prototype._final=function(){var u=this._alg(Gn.concat(this._hash));return this._alg(Gn.concat([this._opad,u]))};var _x=of,Ex=Gc,tv=function(u){return new Ex().update(u).digest()},Sx=ut,wx=_x,rv=Mn,y0=ct.Buffer,Cx=tv,ic=zc,nc=jc,Ax=y0.alloc(128);function A0(u,f){rv.call(this,"digest"),typeof f=="string"&&(f=y0.from(f));var d=u==="sha512"||u==="sha384"?128:64;if(this._alg=u,this._key=f,f.length>d){var _=u==="rmd160"?new ic:nc(u);f=_.update(f).digest()}else f.length<d&&(f=y0.concat([f,Ax],d));for(var x=this._ipad=y0.allocUnsafe(d),I=this._opad=y0.allocUnsafe(d),E=0;E<d;E++)x[E]=f[E]^54,I[E]=f[E]^92;this._hash=u==="rmd160"?new ic:nc(u),this._hash.update(x)}Sx(A0,rv);A0.prototype._update=function(u){this._hash.update(u)};A0.prototype._final=function(){var u=this._hash.digest(),f=this._alg==="rmd160"?new ic:nc(this._alg);return f.update(this._opad).update(u).digest()};var iv=function(u,f){return u=u.toLowerCase(),u==="rmd160"||u==="ripemd160"?new A0("rmd160",f):u==="md5"?new wx(Cx,f):new A0(u,f)};const Bx={sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},Ix={sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},Tx={sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},Mx={sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},Rx={sign:"ecdsa",hash:"sha256",id:""},Nx={sign:"ecdsa",hash:"sha224",id:""},Dx={sign:"ecdsa",hash:"sha384",id:""},Ox={sign:"ecdsa",hash:"sha512",id:""},Px={sign:"dsa",hash:"sha1",id:""},Lx={sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},kx={sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},nv={sha224WithRSAEncryption:Bx,"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:Ix,"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:Tx,"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:Mx,"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:Rx,sha224:Nx,sha384:Dx,sha512:Ox,"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:Px,"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:Lx,"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:kx,"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}};var Ux=nv,uf={},Fx=Math.pow(2,30)-1,av=function(u,f){if(typeof u!="number")throw new TypeError("Iterations not a number");if(u<0)throw new TypeError("Bad iterations");if(typeof f!="number")throw new TypeError("Key length not a number");if(f<0||f>Fx||f!==f)throw new TypeError("Bad key length")},ys;if(Me.process&&Me.process.browser)ys="utf-8";else if(Me.process&&Me.process.version){var qx=parseInt(Ve.version.split(".")[0].slice(1),10);ys=qx>=6?"utf-8":"binary"}else ys="utf-8";var sv=ys,go=ct.Buffer,fv=function(u,f,d){if(go.isBuffer(u))return u;if(typeof u=="string")return go.from(u,f);if(ArrayBuffer.isView(u))return go.from(u.buffer);throw new TypeError(d+" must be a string, a Buffer, a typed array or a DataView")},Vx=tv,Kx=zc,$x=jc,zn=ct.Buffer,Hx=av,Nl=sv,Dl=fv,Gx=zn.alloc(128),gs={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function ov(u,f,d){var _=zx(u),x=u==="sha512"||u==="sha384"?128:64;f.length>x?f=_(f):f.length<x&&(f=zn.concat([f,Gx],x));for(var I=zn.allocUnsafe(x+gs[u]),E=zn.allocUnsafe(x+gs[u]),M=0;M<x;M++)I[M]=f[M]^54,E[M]=f[M]^92;var S=zn.allocUnsafe(x+d+4);I.copy(S,0,0,x),this.ipad1=S,this.ipad2=I,this.opad=E,this.alg=u,this.blocksize=x,this.hash=_,this.size=gs[u]}ov.prototype.run=function(u,f){u.copy(f,this.blocksize);var d=this.hash(f);return d.copy(this.opad,this.blocksize),this.hash(this.opad)};function zx(u){function f(_){return $x(u).update(_).digest()}function d(_){return new Kx().update(_).digest()}return u==="rmd160"||u==="ripemd160"?d:u==="md5"?Vx:f}function jx(u,f,d,_,x){Hx(d,_),u=Dl(u,Nl,"Password"),f=Dl(f,Nl,"Salt"),x=x||"sha1";var I=new ov(x,u,f.length),E=zn.allocUnsafe(_),M=zn.allocUnsafe(f.length+4);f.copy(M,0,0,f.length);for(var S=0,A=gs[x],T=Math.ceil(_/A),D=1;D<=T;D++){M.writeUInt32BE(D,f.length);for(var O=I.run(M,I.ipad1),j=O,$=1;$<d;$++){j=I.run(j,I.ipad2);for(var W=0;W<A;W++)O[W]^=j[W]}O.copy(E,S),S+=A}return E}var uv=jx,cv=ct.Buffer,Wx=av,Ol=sv,Pl=uv,Ll=fv,X0,_0=Me.crypto&&Me.crypto.subtle,Yx={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},mo=[];function Xx(u){if(Me.process&&!Me.process.browser||!_0||!_0.importKey||!_0.deriveBits)return Promise.resolve(!1);if(mo[u]!==void 0)return mo[u];X0=X0||cv.alloc(8);var f=hv(X0,X0,10,128,u).then(function(){return!0}).catch(function(){return!1});return mo[u]=f,f}var On;function ac(){return On||(Me.process&&Me.process.nextTick?On=Me.process.nextTick:Me.queueMicrotask?On=Me.queueMicrotask:Me.setImmediate?On=Me.setImmediate:On=Me.setTimeout,On)}function hv(u,f,d,_,x){return _0.importKey("raw",u,{name:"PBKDF2"},!1,["deriveBits"]).then(function(I){return _0.deriveBits({name:"PBKDF2",salt:f,iterations:d,hash:{name:x}},I,_<<3)}).then(function(I){return cv.from(I)})}function Qx(u,f){u.then(function(d){ac()(function(){f(null,d)})},function(d){ac()(function(){f(d)})})}var Zx=function(u,f,d,_,x,I){typeof x=="function"&&(I=x,x=void 0),x=x||"sha1";var E=Yx[x.toLowerCase()];if(!E||typeof Me.Promise!="function"){ac()(function(){var M;try{M=Pl(u,f,d,_,x)}catch(S){return I(S)}I(null,M)});return}if(Wx(d,_),u=Ll(u,Ol,"Password"),f=Ll(f,Ol,"Salt"),typeof I!="function")throw new Error("No callback provided to pbkdf2");Qx(Xx(E).then(function(M){return M?hv(u,f,d,_,E):Pl(u,f,d,_,x)}),I)};uf.pbkdf2=Zx;uf.pbkdf2Sync=uv;var Si={},qa={},Or={};Or.readUInt32BE=function(u,f){var d=u[0+f]<<24|u[1+f]<<16|u[2+f]<<8|u[3+f];return d>>>0};Or.writeUInt32BE=function(u,f,d){u[0+d]=f>>>24,u[1+d]=f>>>16&255,u[2+d]=f>>>8&255,u[3+d]=f&255};Or.ip=function(u,f,d,_){for(var x=0,I=0,E=6;E>=0;E-=2){for(var M=0;M<=24;M+=8)x<<=1,x|=f>>>M+E&1;for(var M=0;M<=24;M+=8)x<<=1,x|=u>>>M+E&1}for(var E=6;E>=0;E-=2){for(var M=1;M<=25;M+=8)I<<=1,I|=f>>>M+E&1;for(var M=1;M<=25;M+=8)I<<=1,I|=u>>>M+E&1}d[_+0]=x>>>0,d[_+1]=I>>>0};Or.rip=function(u,f,d,_){for(var x=0,I=0,E=0;E<4;E++)for(var M=24;M>=0;M-=8)x<<=1,x|=f>>>M+E&1,x<<=1,x|=u>>>M+E&1;for(var E=4;E<8;E++)for(var M=24;M>=0;M-=8)I<<=1,I|=f>>>M+E&1,I<<=1,I|=u>>>M+E&1;d[_+0]=x>>>0,d[_+1]=I>>>0};Or.pc1=function(u,f,d,_){for(var x=0,I=0,E=7;E>=5;E--){for(var M=0;M<=24;M+=8)x<<=1,x|=f>>M+E&1;for(var M=0;M<=24;M+=8)x<<=1,x|=u>>M+E&1}for(var M=0;M<=24;M+=8)x<<=1,x|=f>>M+E&1;for(var E=1;E<=3;E++){for(var M=0;M<=24;M+=8)I<<=1,I|=f>>M+E&1;for(var M=0;M<=24;M+=8)I<<=1,I|=u>>M+E&1}for(var M=0;M<=24;M+=8)I<<=1,I|=u>>M+E&1;d[_+0]=x>>>0,d[_+1]=I>>>0};Or.r28shl=function(u,f){return u<<f&268435455|u>>>28-f};var Q0=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];Or.pc2=function(u,f,d,_){for(var x=0,I=0,E=Q0.length>>>1,M=0;M<E;M++)x<<=1,x|=u>>>Q0[M]&1;for(var M=E;M<Q0.length;M++)I<<=1,I|=f>>>Q0[M]&1;d[_+0]=x>>>0,d[_+1]=I>>>0};Or.expand=function(u,f,d){var _=0,x=0;_=(u&1)<<5|u>>>27;for(var I=23;I>=15;I-=4)_<<=6,_|=u>>>I&63;for(var I=11;I>=3;I-=4)x|=u>>>I&63,x<<=6;x|=(u&31)<<1|u>>>31,f[d+0]=_>>>0,f[d+1]=x>>>0};var kl=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];Or.substitute=function(u,f){for(var d=0,_=0;_<4;_++){var x=u>>>18-_*6&63,I=kl[_*64+x];d<<=4,d|=I}for(var _=0;_<4;_++){var x=f>>>18-_*6&63,I=kl[4*64+_*64+x];d<<=4,d|=I}return d>>>0};var Ul=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];Or.permute=function(u){for(var f=0,d=0;d<Ul.length;d++)f<<=1,f|=u>>>Ul[d]&1;return f>>>0};Or.padSplit=function(u,f,d){for(var _=u.toString(2);_.length<f;)_="0"+_;for(var x=[],I=0;I<f;I+=d)x.push(_.slice(I,I+d));return x.join(" ")};var Qr=lv;function lv(u,f){if(!u)throw new Error(f||"Assertion failed")}lv.equal=function(u,f,d){if(u!=f)throw new Error(d||"Assertion failed: "+u+" != "+f)};var Jx=Qr;function Zr(u){this.options=u,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0,this.padding=u.padding!==!1}var Yc=Zr;Zr.prototype._init=function(){};Zr.prototype.update=function(u){return u.length===0?[]:this.type==="decrypt"?this._updateDecrypt(u):this._updateEncrypt(u)};Zr.prototype._buffer=function(u,f){for(var d=Math.min(this.buffer.length-this.bufferOff,u.length-f),_=0;_<d;_++)this.buffer[this.bufferOff+_]=u[f+_];return this.bufferOff+=d,d};Zr.prototype._flushBuffer=function(u,f){return this._update(this.buffer,0,u,f),this.bufferOff=0,this.blockSize};Zr.prototype._updateEncrypt=function(u){var f=0,d=0,_=(this.bufferOff+u.length)/this.blockSize|0,x=new Array(_*this.blockSize);this.bufferOff!==0&&(f+=this._buffer(u,f),this.bufferOff===this.buffer.length&&(d+=this._flushBuffer(x,d)));for(var I=u.length-(u.length-f)%this.blockSize;f<I;f+=this.blockSize)this._update(u,f,x,d),d+=this.blockSize;for(;f<u.length;f++,this.bufferOff++)this.buffer[this.bufferOff]=u[f];return x};Zr.prototype._updateDecrypt=function(u){for(var f=0,d=0,_=Math.ceil((this.bufferOff+u.length)/this.blockSize)-1,x=new Array(_*this.blockSize);_>0;_--)f+=this._buffer(u,f),d+=this._flushBuffer(x,d);return f+=this._buffer(u,f),x};Zr.prototype.final=function(u){var f;u&&(f=this.update(u));var d;return this.type==="encrypt"?d=this._finalEncrypt():d=this._finalDecrypt(),f?f.concat(d):d};Zr.prototype._pad=function(u,f){if(f===0)return!1;for(;f<u.length;)u[f++]=0;return!0};Zr.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var u=new Array(this.blockSize);return this._update(this.buffer,0,u,0),u};Zr.prototype._unpad=function(u){return u};Zr.prototype._finalDecrypt=function(){Jx.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var u=new Array(this.blockSize);return this._flushBuffer(u,0),this._unpad(u)};var dv=Qr,e4=ut,jt=Or,pv=Yc;function t4(){this.tmp=new Array(2),this.keys=null}function $i(u){pv.call(this,u);var f=new t4;this._desState=f,this.deriveKeys(f,u.key)}e4($i,pv);var vv=$i;$i.create=function(u){return new $i(u)};var r4=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];$i.prototype.deriveKeys=function(u,f){u.keys=new Array(16*2),dv.equal(f.length,this.blockSize,"Invalid key length");var d=jt.readUInt32BE(f,0),_=jt.readUInt32BE(f,4);jt.pc1(d,_,u.tmp,0),d=u.tmp[0],_=u.tmp[1];for(var x=0;x<u.keys.length;x+=2){var I=r4[x>>>1];d=jt.r28shl(d,I),_=jt.r28shl(_,I),jt.pc2(d,_,u.keys,x)}};$i.prototype._update=function(u,f,d,_){var x=this._desState,I=jt.readUInt32BE(u,f),E=jt.readUInt32BE(u,f+4);jt.ip(I,E,x.tmp,0),I=x.tmp[0],E=x.tmp[1],this.type==="encrypt"?this._encrypt(x,I,E,x.tmp,0):this._decrypt(x,I,E,x.tmp,0),I=x.tmp[0],E=x.tmp[1],jt.writeUInt32BE(d,I,_),jt.writeUInt32BE(d,E,_+4)};$i.prototype._pad=function(u,f){if(this.padding===!1)return!1;for(var d=u.length-f,_=f;_<u.length;_++)u[_]=d;return!0};$i.prototype._unpad=function(u){if(this.padding===!1)return u;for(var f=u[u.length-1],d=u.length-f;d<u.length;d++)dv.equal(u[d],f);return u.slice(0,u.length-f)};$i.prototype._encrypt=function(u,f,d,_,x){for(var I=f,E=d,M=0;M<u.keys.length;M+=2){var S=u.keys[M],A=u.keys[M+1];jt.expand(E,u.tmp,0),S^=u.tmp[0],A^=u.tmp[1];var T=jt.substitute(S,A),D=jt.permute(T),O=E;E=(I^D)>>>0,I=O}jt.rip(E,I,_,x)};$i.prototype._decrypt=function(u,f,d,_,x){for(var I=d,E=f,M=u.keys.length-2;M>=0;M-=2){var S=u.keys[M],A=u.keys[M+1];jt.expand(I,u.tmp,0),S^=u.tmp[0],A^=u.tmp[1];var T=jt.substitute(S,A),D=jt.permute(T),O=I;I=(E^D)>>>0,E=O}jt.rip(I,E,_,x)};var yv={},i4=Qr,n4=ut,Ts={};function a4(u){i4.equal(u.length,8,"Invalid IV length"),this.iv=new Array(8);for(var f=0;f<this.iv.length;f++)this.iv[f]=u[f]}function s4(u){function f(I){u.call(this,I),this._cbcInit()}n4(f,u);for(var d=Object.keys(Ts),_=0;_<d.length;_++){var x=d[_];f.prototype[x]=Ts[x]}return f.create=function(I){return new f(I)},f}yv.instantiate=s4;Ts._cbcInit=function(){var u=new a4(this.options.iv);this._cbcState=u};Ts._update=function(u,f,d,_){var x=this._cbcState,I=this.constructor.super_.prototype,E=x.iv;if(this.type==="encrypt"){for(var M=0;M<this.blockSize;M++)E[M]^=u[f+M];I._update.call(this,E,0,d,_);for(var M=0;M<this.blockSize;M++)E[M]=d[_+M]}else{I._update.call(this,u,f,d,_);for(var M=0;M<this.blockSize;M++)d[_+M]^=E[M];for(var M=0;M<this.blockSize;M++)E[M]=u[f+M]}};var f4=Qr,o4=ut,gv=Yc,pn=vv;function u4(u,f){f4.equal(f.length,24,"Invalid key length");var d=f.slice(0,8),_=f.slice(8,16),x=f.slice(16,24);u==="encrypt"?this.ciphers=[pn.create({type:"encrypt",key:d}),pn.create({type:"decrypt",key:_}),pn.create({type:"encrypt",key:x})]:this.ciphers=[pn.create({type:"decrypt",key:x}),pn.create({type:"encrypt",key:_}),pn.create({type:"decrypt",key:d})]}function Zn(u){gv.call(this,u);var f=new u4(this.type,this.options.key);this._edeState=f}o4(Zn,gv);var c4=Zn;Zn.create=function(u){return new Zn(u)};Zn.prototype._update=function(u,f,d,_){var x=this._edeState;x.ciphers[0]._update(u,f,d,_),x.ciphers[1]._update(d,_,d,_),x.ciphers[2]._update(d,_,d,_)};Zn.prototype._pad=pn.prototype._pad;Zn.prototype._unpad=pn.prototype._unpad;qa.utils=Or;qa.Cipher=Yc;qa.DES=vv;qa.CBC=yv;qa.EDE=c4;var mv=Mn,Xi=qa,h4=ut,qn=ct.Buffer,B0={"des-ede3-cbc":Xi.CBC.instantiate(Xi.EDE),"des-ede3":Xi.EDE,"des-ede-cbc":Xi.CBC.instantiate(Xi.EDE),"des-ede":Xi.EDE,"des-cbc":Xi.CBC.instantiate(Xi.DES),"des-ecb":Xi.DES};B0.des=B0["des-cbc"];B0.des3=B0["des-ede3-cbc"];var l4=cf;h4(cf,mv);function cf(u){mv.call(this);var f=u.mode.toLowerCase(),d=B0[f],_;u.decrypt?_="decrypt":_="encrypt";var x=u.key;qn.isBuffer(x)||(x=qn.from(x)),(f==="des-ede"||f==="des-ede-cbc")&&(x=qn.concat([x,x.slice(0,8)]));var I=u.iv;qn.isBuffer(I)||(I=qn.from(I)),this._des=d.create({key:x,iv:I,type:_})}cf.prototype._update=function(u){return qn.from(this._des.update(u))};cf.prototype._final=function(){return qn.from(this._des.final())};var Dr={},Xc={},Qc={};Qc.encrypt=function(u,f){return u._cipher.encryptBlock(f)};Qc.decrypt=function(u,f){return u._cipher.decryptBlock(f)};var Zc={},L0=function(u,f){for(var d=Math.min(u.length,f.length),_=new pe.Buffer(d),x=0;x<d;++x)_[x]=u[x]^f[x];return _},bv=L0;Zc.encrypt=function(u,f){var d=bv(f,u._prev);return u._prev=u._cipher.encryptBlock(d),u._prev};Zc.decrypt=function(u,f){var d=u._prev;u._prev=f;var _=u._cipher.decryptBlock(f);return bv(_,d)};var xv={},g0=ct.Buffer,d4=L0;function Fl(u,f,d){var _=f.length,x=d4(f,u._cache);return u._cache=u._cache.slice(_),u._prev=g0.concat([u._prev,d?f:x]),x}xv.encrypt=function(u,f,d){for(var _=g0.allocUnsafe(0),x;f.length;)if(u._cache.length===0&&(u._cache=u._cipher.encryptBlock(u._prev),u._prev=g0.allocUnsafe(0)),u._cache.length<=f.length)x=u._cache.length,_=g0.concat([_,Fl(u,f.slice(0,x),d)]),f=f.slice(x);else{_=g0.concat([_,Fl(u,f,d)]);break}return _};var _v={},sc=ct.Buffer;function p4(u,f,d){var _=u._cipher.encryptBlock(u._prev),x=_[0]^f;return u._prev=sc.concat([u._prev.slice(1),sc.from([d?f:x])]),x}_v.encrypt=function(u,f,d){for(var _=f.length,x=sc.allocUnsafe(_),I=-1;++I<_;)x[I]=p4(u,f[I],d);return x};var Ev={},ms=ct.Buffer;function v4(u,f,d){for(var _,x=-1,I=8,E=0,M,S;++x<I;)_=u._cipher.encryptBlock(u._prev),M=f&1<<7-x?128:0,S=_[0]^M,E+=(S&128)>>x%8,u._prev=y4(u._prev,d?M:S);return E}function y4(u,f){var d=u.length,_=-1,x=ms.allocUnsafe(u.length);for(u=ms.concat([u,ms.from([f])]);++_<d;)x[_]=u[_]<<1|u[_+1]>>7;return x}Ev.encrypt=function(u,f,d){for(var _=f.length,x=ms.allocUnsafe(_),I=-1;++I<_;)x[I]=v4(u,f[I],d);return x};var Sv={},g4=L0;function m4(u){return u._prev=u._cipher.encryptBlock(u._prev),u._prev}Sv.encrypt=function(u,f){for(;u._cache.length<f.length;)u._cache=pe.Buffer.concat([u._cache,m4(u)]);var d=u._cache.slice(0,f.length);return u._cache=u._cache.slice(f.length),g4(f,d)};var fc={};function b4(u){for(var f=u.length,d;f--;)if(d=u.readUInt8(f),d===255)u.writeUInt8(0,f);else{d++,u.writeUInt8(d,f);break}}var wv=b4,x4=L0,ql=ct.Buffer,_4=wv;function E4(u){var f=u._cipher.encryptBlockRaw(u._prev);return _4(u._prev),f}var bo=16;fc.encrypt=function(u,f){var d=Math.ceil(f.length/bo),_=u._cache.length;u._cache=ql.concat([u._cache,ql.allocUnsafe(d*bo)]);for(var x=0;x<d;x++){var I=E4(u),E=_+x*bo;u._cache.writeUInt32BE(I[0],E+0),u._cache.writeUInt32BE(I[1],E+4),u._cache.writeUInt32BE(I[2],E+8),u._cache.writeUInt32BE(I[3],E+12)}var M=u._cache.slice(0,f.length);return u._cache=u._cache.slice(f.length),x4(f,M)};const S4={cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},w4={cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},C4={cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},Cv={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:S4,aes192:w4,aes256:C4,"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}};var A4={ECB:Qc,CBC:Zc,CFB:xv,CFB8:_v,CFB1:Ev,OFB:Sv,CTR:fc,GCM:fc},bs=Cv;for(var Vl in bs)bs[Vl].module=A4[bs[Vl].mode];var Jc=bs,k0={},Ms=ct.Buffer;function eh(u){Ms.isBuffer(u)||(u=Ms.from(u));for(var f=u.length/4|0,d=new Array(f),_=0;_<f;_++)d[_]=u.readUInt32BE(_*4);return d}function xo(u){for(var f=0;f<u.length;u++)u[f]=0}function Av(u,f,d,_,x){for(var I=d[0],E=d[1],M=d[2],S=d[3],A=u[0]^f[0],T=u[1]^f[1],D=u[2]^f[2],O=u[3]^f[3],j,$,W,Q,X=4,Y=1;Y<x;Y++)j=I[A>>>24]^E[T>>>16&255]^M[D>>>8&255]^S[O&255]^f[X++],$=I[T>>>24]^E[D>>>16&255]^M[O>>>8&255]^S[A&255]^f[X++],W=I[D>>>24]^E[O>>>16&255]^M[A>>>8&255]^S[T&255]^f[X++],Q=I[O>>>24]^E[A>>>16&255]^M[T>>>8&255]^S[D&255]^f[X++],A=j,T=$,D=W,O=Q;return j=(_[A>>>24]<<24|_[T>>>16&255]<<16|_[D>>>8&255]<<8|_[O&255])^f[X++],$=(_[T>>>24]<<24|_[D>>>16&255]<<16|_[O>>>8&255]<<8|_[A&255])^f[X++],W=(_[D>>>24]<<24|_[O>>>16&255]<<16|_[A>>>8&255]<<8|_[T&255])^f[X++],Q=(_[O>>>24]<<24|_[A>>>16&255]<<16|_[T>>>8&255]<<8|_[D&255])^f[X++],j=j>>>0,$=$>>>0,W=W>>>0,Q=Q>>>0,[j,$,W,Q]}var B4=[0,1,2,4,8,16,32,64,128,27,54],Ht=function(){for(var u=new Array(256),f=0;f<256;f++)f<128?u[f]=f<<1:u[f]=f<<1^283;for(var d=[],_=[],x=[[],[],[],[]],I=[[],[],[],[]],E=0,M=0,S=0;S<256;++S){var A=M^M<<1^M<<2^M<<3^M<<4;A=A>>>8^A&255^99,d[E]=A,_[A]=E;var T=u[E],D=u[T],O=u[D],j=u[A]*257^A*16843008;x[0][E]=j<<24|j>>>8,x[1][E]=j<<16|j>>>16,x[2][E]=j<<8|j>>>24,x[3][E]=j,j=O*16843009^D*65537^T*257^E*16843008,I[0][A]=j<<24|j>>>8,I[1][A]=j<<16|j>>>16,I[2][A]=j<<8|j>>>24,I[3][A]=j,E===0?E=M=1:(E=T^u[u[u[O^T]]],M^=u[u[M]])}return{SBOX:d,INV_SBOX:_,SUB_MIX:x,INV_SUB_MIX:I}}();function Wr(u){this._key=eh(u),this._reset()}Wr.blockSize=4*4;Wr.keySize=256/8;Wr.prototype.blockSize=Wr.blockSize;Wr.prototype.keySize=Wr.keySize;Wr.prototype._reset=function(){for(var u=this._key,f=u.length,d=f+6,_=(d+1)*4,x=[],I=0;I<f;I++)x[I]=u[I];for(I=f;I<_;I++){var E=x[I-1];I%f===0?(E=E<<8|E>>>24,E=Ht.SBOX[E>>>24]<<24|Ht.SBOX[E>>>16&255]<<16|Ht.SBOX[E>>>8&255]<<8|Ht.SBOX[E&255],E^=B4[I/f|0]<<24):f>6&&I%f===4&&(E=Ht.SBOX[E>>>24]<<24|Ht.SBOX[E>>>16&255]<<16|Ht.SBOX[E>>>8&255]<<8|Ht.SBOX[E&255]),x[I]=x[I-f]^E}for(var M=[],S=0;S<_;S++){var A=_-S,T=x[A-(S%4?0:4)];S<4||A<=4?M[S]=T:M[S]=Ht.INV_SUB_MIX[0][Ht.SBOX[T>>>24]]^Ht.INV_SUB_MIX[1][Ht.SBOX[T>>>16&255]]^Ht.INV_SUB_MIX[2][Ht.SBOX[T>>>8&255]]^Ht.INV_SUB_MIX[3][Ht.SBOX[T&255]]}this._nRounds=d,this._keySchedule=x,this._invKeySchedule=M};Wr.prototype.encryptBlockRaw=function(u){return u=eh(u),Av(u,this._keySchedule,Ht.SUB_MIX,Ht.SBOX,this._nRounds)};Wr.prototype.encryptBlock=function(u){var f=this.encryptBlockRaw(u),d=Ms.allocUnsafe(16);return d.writeUInt32BE(f[0],0),d.writeUInt32BE(f[1],4),d.writeUInt32BE(f[2],8),d.writeUInt32BE(f[3],12),d};Wr.prototype.decryptBlock=function(u){u=eh(u);var f=u[1];u[1]=u[3],u[3]=f;var d=Av(u,this._invKeySchedule,Ht.INV_SUB_MIX,Ht.INV_SBOX,this._nRounds),_=Ms.allocUnsafe(16);return _.writeUInt32BE(d[0],0),_.writeUInt32BE(d[3],4),_.writeUInt32BE(d[2],8),_.writeUInt32BE(d[1],12),_};Wr.prototype.scrub=function(){xo(this._keySchedule),xo(this._invKeySchedule),xo(this._key)};k0.AES=Wr;var Ca=ct.Buffer,I4=Ca.alloc(16,0);function T4(u){return[u.readUInt32BE(0),u.readUInt32BE(4),u.readUInt32BE(8),u.readUInt32BE(12)]}function Bv(u){var f=Ca.allocUnsafe(16);return f.writeUInt32BE(u[0]>>>0,0),f.writeUInt32BE(u[1]>>>0,4),f.writeUInt32BE(u[2]>>>0,8),f.writeUInt32BE(u[3]>>>0,12),f}function U0(u){this.h=u,this.state=Ca.alloc(16,0),this.cache=Ca.allocUnsafe(0)}U0.prototype.ghash=function(u){for(var f=-1;++f<u.length;)this.state[f]^=u[f];this._multiply()};U0.prototype._multiply=function(){for(var u=T4(this.h),f=[0,0,0,0],d,_,x,I=-1;++I<128;){for(_=(this.state[~~(I/8)]&1<<7-I%8)!==0,_&&(f[0]^=u[0],f[1]^=u[1],f[2]^=u[2],f[3]^=u[3]),x=(u[3]&1)!==0,d=3;d>0;d--)u[d]=u[d]>>>1|(u[d-1]&1)<<31;u[0]=u[0]>>>1,x&&(u[0]=u[0]^225<<24)}this.state=Bv(f)};U0.prototype.update=function(u){this.cache=Ca.concat([this.cache,u]);for(var f;this.cache.length>=16;)f=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(f)};U0.prototype.final=function(u,f){return this.cache.length&&this.ghash(Ca.concat([this.cache,I4],16)),this.ghash(Bv([0,u,0,f])),this.state};var M4=U0,R4=k0,wr=ct.Buffer,Iv=Mn,N4=ut,Tv=M4,D4=L0,O4=wv;function P4(u,f){var d=0;u.length!==f.length&&d++;for(var _=Math.min(u.length,f.length),x=0;x<_;++x)d+=u[x]^f[x];return d}function L4(u,f,d){if(f.length===12)return u._finID=wr.concat([f,wr.from([0,0,0,1])]),wr.concat([f,wr.from([0,0,0,2])]);var _=new Tv(d),x=f.length,I=x%16;_.update(f),I&&(I=16-I,_.update(wr.alloc(I,0))),_.update(wr.alloc(8,0));var E=x*8,M=wr.alloc(8);M.writeUIntBE(E,0,8),_.update(M),u._finID=_.state;var S=wr.from(u._finID);return O4(S),S}function ia(u,f,d,_){Iv.call(this);var x=wr.alloc(4,0);this._cipher=new R4.AES(f);var I=this._cipher.encryptBlock(x);this._ghash=new Tv(I),d=L4(this,d,I),this._prev=wr.from(d),this._cache=wr.allocUnsafe(0),this._secCache=wr.allocUnsafe(0),this._decrypt=_,this._alen=0,this._len=0,this._mode=u,this._authTag=null,this._called=!1}N4(ia,Iv);ia.prototype._update=function(u){if(!this._called&&this._alen){var f=16-this._alen%16;f<16&&(f=wr.alloc(f,0),this._ghash.update(f))}this._called=!0;var d=this._mode.encrypt(this,u);return this._decrypt?this._ghash.update(u):this._ghash.update(d),this._len+=u.length,d};ia.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var u=D4(this._ghash.final(this._alen*8,this._len*8),this._cipher.encryptBlock(this._finID));if(this._decrypt&&P4(u,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=u,this._cipher.scrub()};ia.prototype.getAuthTag=function(){if(this._decrypt||!wr.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag};ia.prototype.setAuthTag=function(u){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=u};ia.prototype.setAAD=function(u){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(u),this._alen+=u.length};var Mv=ia,k4=k0,_o=ct.Buffer,Rv=Mn,U4=ut;function hf(u,f,d,_){Rv.call(this),this._cipher=new k4.AES(f),this._prev=_o.from(d),this._cache=_o.allocUnsafe(0),this._secCache=_o.allocUnsafe(0),this._decrypt=_,this._mode=u}U4(hf,Rv);hf.prototype._update=function(u){return this._mode.encrypt(this,u,this._decrypt)};hf.prototype._final=function(){this._cipher.scrub()};var Nv=hf,Pn=ct.Buffer,F4=Gc;function q4(u,f,d,_){if(Pn.isBuffer(u)||(u=Pn.from(u,"binary")),f&&(Pn.isBuffer(f)||(f=Pn.from(f,"binary")),f.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var x=d/8,I=Pn.alloc(x),E=Pn.alloc(_||0),M=Pn.alloc(0);x>0||_>0;){var S=new F4;S.update(M),S.update(u),f&&S.update(f),M=S.digest();var A=0;if(x>0){var T=I.length-x;A=Math.min(x,M.length),M.copy(I,T,0,A),x-=A}if(A<M.length&&_>0){var D=E.length-_,O=Math.min(_,M.length-A);M.copy(E,D,A,A+O),_-=O}}return M.fill(0),{key:I,iv:E}}var lf=q4,Dv=Jc,V4=Mv,fn=ct.Buffer,K4=Nv,Ov=Mn,$4=k0,H4=lf,G4=ut;function F0(u,f,d){Ov.call(this),this._cache=new df,this._cipher=new $4.AES(f),this._prev=fn.from(d),this._mode=u,this._autopadding=!0}G4(F0,Ov);F0.prototype._update=function(u){this._cache.add(u);for(var f,d,_=[];f=this._cache.get();)d=this._mode.encrypt(this,f),_.push(d);return fn.concat(_)};var z4=fn.alloc(16,16);F0.prototype._final=function(){var u=this._cache.flush();if(this._autopadding)return u=this._mode.encrypt(this,u),this._cipher.scrub(),u;if(!u.equals(z4))throw this._cipher.scrub(),new Error("data not multiple of block length")};F0.prototype.setAutoPadding=function(u){return this._autopadding=!!u,this};function df(){this.cache=fn.allocUnsafe(0)}df.prototype.add=function(u){this.cache=fn.concat([this.cache,u])};df.prototype.get=function(){if(this.cache.length>15){var u=this.cache.slice(0,16);return this.cache=this.cache.slice(16),u}return null};df.prototype.flush=function(){for(var u=16-this.cache.length,f=fn.allocUnsafe(u),d=-1;++d<u;)f.writeUInt8(u,d);return fn.concat([this.cache,f])};function Pv(u,f,d){var _=Dv[u.toLowerCase()];if(!_)throw new TypeError("invalid suite type");if(typeof f=="string"&&(f=fn.from(f)),f.length!==_.key/8)throw new TypeError("invalid key length "+f.length);if(typeof d=="string"&&(d=fn.from(d)),_.mode!=="GCM"&&d.length!==_.iv)throw new TypeError("invalid iv length "+d.length);return _.type==="stream"?new K4(_.module,f,d):_.type==="auth"?new V4(_.module,f,d):new F0(_.module,f,d)}function j4(u,f){var d=Dv[u.toLowerCase()];if(!d)throw new TypeError("invalid suite type");var _=H4(f,!1,d.key,d.iv);return Pv(u,_.key,_.iv)}Xc.createCipheriv=Pv;Xc.createCipher=j4;var th={},W4=Mv,Aa=ct.Buffer,Lv=Jc,Y4=Nv,kv=Mn,X4=k0,Q4=lf,Z4=ut;function q0(u,f,d){kv.call(this),this._cache=new pf,this._last=void 0,this._cipher=new X4.AES(f),this._prev=Aa.from(d),this._mode=u,this._autopadding=!0}Z4(q0,kv);q0.prototype._update=function(u){this._cache.add(u);for(var f,d,_=[];f=this._cache.get(this._autopadding);)d=this._mode.decrypt(this,f),_.push(d);return Aa.concat(_)};q0.prototype._final=function(){var u=this._cache.flush();if(this._autopadding)return J4(this._mode.decrypt(this,u));if(u)throw new Error("data not multiple of block length")};q0.prototype.setAutoPadding=function(u){return this._autopadding=!!u,this};function pf(){this.cache=Aa.allocUnsafe(0)}pf.prototype.add=function(u){this.cache=Aa.concat([this.cache,u])};pf.prototype.get=function(u){var f;if(u){if(this.cache.length>16)return f=this.cache.slice(0,16),this.cache=this.cache.slice(16),f}else if(this.cache.length>=16)return f=this.cache.slice(0,16),this.cache=this.cache.slice(16),f;return null};pf.prototype.flush=function(){if(this.cache.length)return this.cache};function J4(u){var f=u[15];if(f<1||f>16)throw new Error("unable to decrypt data");for(var d=-1;++d<f;)if(u[d+(16-f)]!==f)throw new Error("unable to decrypt data");if(f!==16)return u.slice(0,16-f)}function Uv(u,f,d){var _=Lv[u.toLowerCase()];if(!_)throw new TypeError("invalid suite type");if(typeof d=="string"&&(d=Aa.from(d)),_.mode!=="GCM"&&d.length!==_.iv)throw new TypeError("invalid iv length "+d.length);if(typeof f=="string"&&(f=Aa.from(f)),f.length!==_.key/8)throw new TypeError("invalid key length "+f.length);return _.type==="stream"?new Y4(_.module,f,d,!0):_.type==="auth"?new W4(_.module,f,d,!0):new q0(_.module,f,d)}function e3(u,f){var d=Lv[u.toLowerCase()];if(!d)throw new TypeError("invalid suite type");var _=Q4(f,!1,d.key,d.iv);return Uv(u,_.key,_.iv)}th.createDecipher=e3;th.createDecipheriv=Uv;var Fv=Xc,qv=th,t3=Cv;function r3(){return Object.keys(t3)}Dr.createCipher=Dr.Cipher=Fv.createCipher;Dr.createCipheriv=Dr.Cipheriv=Fv.createCipheriv;Dr.createDecipher=Dr.Decipher=qv.createDecipher;Dr.createDecipheriv=Dr.Decipheriv=qv.createDecipheriv;Dr.listCiphers=Dr.getCiphers=r3;var Vv={};(function(u){u["des-ecb"]={key:8,iv:0},u["des-cbc"]=u.des={key:8,iv:8},u["des-ede3-cbc"]=u.des3={key:24,iv:8},u["des-ede3"]={key:24,iv:0},u["des-ede-cbc"]={key:16,iv:8},u["des-ede"]={key:16,iv:0}})(Vv);var Kv=l4,rh=Dr,En=Jc,nn=Vv,$v=lf;function i3(u,f){u=u.toLowerCase();var d,_;if(En[u])d=En[u].key,_=En[u].iv;else if(nn[u])d=nn[u].key*8,_=nn[u].iv;else throw new TypeError("invalid suite type");var x=$v(f,!1,d,_);return Hv(u,x.key,x.iv)}function n3(u,f){u=u.toLowerCase();var d,_;if(En[u])d=En[u].key,_=En[u].iv;else if(nn[u])d=nn[u].key*8,_=nn[u].iv;else throw new TypeError("invalid suite type");var x=$v(f,!1,d,_);return Gv(u,x.key,x.iv)}function Hv(u,f,d){if(u=u.toLowerCase(),En[u])return rh.createCipheriv(u,f,d);if(nn[u])return new Kv({key:f,iv:d,mode:u});throw new TypeError("invalid suite type")}function Gv(u,f,d){if(u=u.toLowerCase(),En[u])return rh.createDecipheriv(u,f,d);if(nn[u])return new Kv({key:f,iv:d,mode:u,decrypt:!0});throw new TypeError("invalid suite type")}function a3(){return Object.keys(nn).concat(rh.getCiphers())}Si.createCipher=Si.Cipher=i3;Si.createCipheriv=Si.Cipheriv=Hv;Si.createDecipher=Si.Decipher=n3;Si.createDecipheriv=Si.Decipheriv=Gv;Si.listCiphers=Si.getCiphers=a3;var Ln={},ih={exports:{}};(function(u){(function(f,d){function _(le,re){if(!le)throw new Error(re||"Assertion failed")}function x(le,re){le.super_=re;var P=function(){};P.prototype=re.prototype,le.prototype=new P,le.prototype.constructor=le}function I(le,re,P){if(I.isBN(le))return le;this.negative=0,this.words=null,this.length=0,this.red=null,le!==null&&((re==="le"||re==="be")&&(P=re,re=10),this._init(le||0,re||10,P||"be"))}typeof f=="object"?f.exports=I:d.BN=I,I.BN=I,I.wordSize=26;var E;try{typeof window<"u"&&typeof window.Buffer<"u"?E=window.Buffer:E=pe.Buffer}catch{}I.isBN=function(le){return le instanceof I?!0:le!==null&&typeof le=="object"&&le.constructor.wordSize===I.wordSize&&Array.isArray(le.words)},I.max=function(le,re){return le.cmp(re)>0?le:re},I.min=function(le,re){return le.cmp(re)<0?le:re},I.prototype._init=function(le,re,P){if(typeof le=="number")return this._initNumber(le,re,P);if(typeof le=="object")return this._initArray(le,re,P);re==="hex"&&(re=16),_(re===(re|0)&&re>=2&&re<=36),le=le.toString().replace(/\s+/g,"");var k=0;le[0]==="-"&&(k++,this.negative=1),k<le.length&&(re===16?this._parseHex(le,k,P):(this._parseBase(le,re,k),P==="le"&&this._initArray(this.toArray(),re,P)))},I.prototype._initNumber=function(le,re,P){le<0&&(this.negative=1,le=-le),le<67108864?(this.words=[le&67108863],this.length=1):le<4503599627370496?(this.words=[le&67108863,le/67108864&67108863],this.length=2):(_(le<9007199254740992),this.words=[le&67108863,le/67108864&67108863,1],this.length=3),P==="le"&&this._initArray(this.toArray(),re,P)},I.prototype._initArray=function(le,re,P){if(_(typeof le.length=="number"),le.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(le.length/3),this.words=new Array(this.length);for(var k=0;k<this.length;k++)this.words[k]=0;var B,z,ee=0;if(P==="be")for(k=le.length-1,B=0;k>=0;k-=3)z=le[k]|le[k-1]<<8|le[k-2]<<16,this.words[B]|=z<<ee&67108863,this.words[B+1]=z>>>26-ee&67108863,ee+=24,ee>=26&&(ee-=26,B++);else if(P==="le")for(k=0,B=0;k<le.length;k+=3)z=le[k]|le[k+1]<<8|le[k+2]<<16,this.words[B]|=z<<ee&67108863,this.words[B+1]=z>>>26-ee&67108863,ee+=24,ee>=26&&(ee-=26,B++);return this.strip()};function M(le,re){var P=le.charCodeAt(re);return P>=65&&P<=70?P-55:P>=97&&P<=102?P-87:P-48&15}function S(le,re,P){var k=M(le,P);return P-1>=re&&(k|=M(le,P-1)<<4),k}I.prototype._parseHex=function(le,re,P){this.length=Math.ceil((le.length-re)/6),this.words=new Array(this.length);for(var k=0;k<this.length;k++)this.words[k]=0;var B=0,z=0,ee;if(P==="be")for(k=le.length-1;k>=re;k-=2)ee=S(le,re,k)<<B,this.words[z]|=ee&67108863,B>=18?(B-=18,z+=1,this.words[z]|=ee>>>26):B+=8;else{var H=le.length-re;for(k=H%2===0?re+1:re;k<le.length;k+=2)ee=S(le,re,k)<<B,this.words[z]|=ee&67108863,B>=18?(B-=18,z+=1,this.words[z]|=ee>>>26):B+=8}this.strip()};function A(le,re,P,k){for(var B=0,z=Math.min(le.length,P),ee=re;ee<z;ee++){var H=le.charCodeAt(ee)-48;B*=k,H>=49?B+=H-49+10:H>=17?B+=H-17+10:B+=H}return B}I.prototype._parseBase=function(le,re,P){this.words=[0],this.length=1;for(var k=0,B=1;B<=67108863;B*=re)k++;k--,B=B/re|0;for(var z=le.length-P,ee=z%k,H=Math.min(z,z-ee)+P,q=0,J=P;J<H;J+=k)q=A(le,J,J+k,re),this.imuln(B),this.words[0]+q<67108864?this.words[0]+=q:this._iaddn(q);if(ee!==0){var U=1;for(q=A(le,J,le.length,re),J=0;J<ee;J++)U*=re;this.imuln(U),this.words[0]+q<67108864?this.words[0]+=q:this._iaddn(q)}this.strip()},I.prototype.copy=function(le){le.words=new Array(this.length);for(var re=0;re<this.length;re++)le.words[re]=this.words[re];le.length=this.length,le.negative=this.negative,le.red=this.red},I.prototype.clone=function(){var le=new I(null);return this.copy(le),le},I.prototype._expand=function(le){for(;this.length<le;)this.words[this.length++]=0;return this},I.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},I.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},I.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var T=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],D=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],O=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];I.prototype.toString=function(le,re){le=le||10,re=re|0||1;var P;if(le===16||le==="hex"){P="";for(var k=0,B=0,z=0;z<this.length;z++){var ee=this.words[z],H=((ee<<k|B)&16777215).toString(16);B=ee>>>24-k&16777215,B!==0||z!==this.length-1?P=T[6-H.length]+H+P:P=H+P,k+=2,k>=26&&(k-=26,z--)}for(B!==0&&(P=B.toString(16)+P);P.length%re!==0;)P="0"+P;return this.negative!==0&&(P="-"+P),P}if(le===(le|0)&&le>=2&&le<=36){var q=D[le],J=O[le];P="";var U=this.clone();for(U.negative=0;!U.isZero();){var Z=U.modn(J).toString(le);U=U.idivn(J),U.isZero()?P=Z+P:P=T[q-Z.length]+Z+P}for(this.isZero()&&(P="0"+P);P.length%re!==0;)P="0"+P;return this.negative!==0&&(P="-"+P),P}_(!1,"Base should be between 2 and 36")},I.prototype.toNumber=function(){var le=this.words[0];return this.length===2?le+=this.words[1]*67108864:this.length===3&&this.words[2]===1?le+=4503599627370496+this.words[1]*67108864:this.length>2&&_(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-le:le},I.prototype.toJSON=function(){return this.toString(16)},I.prototype.toBuffer=function(le,re){return _(typeof E<"u"),this.toArrayLike(E,le,re)},I.prototype.toArray=function(le,re){return this.toArrayLike(Array,le,re)},I.prototype.toArrayLike=function(le,re,P){var k=this.byteLength(),B=P||Math.max(1,k);_(k<=B,"byte array longer than desired length"),_(B>0,"Requested array length <= 0"),this.strip();var z=re==="le",ee=new le(B),H,q,J=this.clone();if(z){for(q=0;!J.isZero();q++)H=J.andln(255),J.iushrn(8),ee[q]=H;for(;q<B;q++)ee[q]=0}else{for(q=0;q<B-k;q++)ee[q]=0;for(q=0;!J.isZero();q++)H=J.andln(255),J.iushrn(8),ee[B-q-1]=H}return ee},Math.clz32?I.prototype._countBits=function(le){return 32-Math.clz32(le)}:I.prototype._countBits=function(le){var re=le,P=0;return re>=4096&&(P+=13,re>>>=13),re>=64&&(P+=7,re>>>=7),re>=8&&(P+=4,re>>>=4),re>=2&&(P+=2,re>>>=2),P+re},I.prototype._zeroBits=function(le){if(le===0)return 26;var re=le,P=0;return re&8191||(P+=13,re>>>=13),re&127||(P+=7,re>>>=7),re&15||(P+=4,re>>>=4),re&3||(P+=2,re>>>=2),re&1||P++,P},I.prototype.bitLength=function(){var le=this.words[this.length-1],re=this._countBits(le);return(this.length-1)*26+re};function j(le){for(var re=new Array(le.bitLength()),P=0;P<re.length;P++){var k=P/26|0,B=P%26;re[P]=(le.words[k]&1<<B)>>>B}return re}I.prototype.zeroBits=function(){if(this.isZero())return 0;for(var le=0,re=0;re<this.length;re++){var P=this._zeroBits(this.words[re]);if(le+=P,P!==26)break}return le},I.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},I.prototype.toTwos=function(le){return this.negative!==0?this.abs().inotn(le).iaddn(1):this.clone()},I.prototype.fromTwos=function(le){return this.testn(le-1)?this.notn(le).iaddn(1).ineg():this.clone()},I.prototype.isNeg=function(){return this.negative!==0},I.prototype.neg=function(){return this.clone().ineg()},I.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},I.prototype.iuor=function(le){for(;this.length<le.length;)this.words[this.length++]=0;for(var re=0;re<le.length;re++)this.words[re]=this.words[re]|le.words[re];return this.strip()},I.prototype.ior=function(le){return _((this.negative|le.negative)===0),this.iuor(le)},I.prototype.or=function(le){return this.length>le.length?this.clone().ior(le):le.clone().ior(this)},I.prototype.uor=function(le){return this.length>le.length?this.clone().iuor(le):le.clone().iuor(this)},I.prototype.iuand=function(le){var re;this.length>le.length?re=le:re=this;for(var P=0;P<re.length;P++)this.words[P]=this.words[P]&le.words[P];return this.length=re.length,this.strip()},I.prototype.iand=function(le){return _((this.negative|le.negative)===0),this.iuand(le)},I.prototype.and=function(le){return this.length>le.length?this.clone().iand(le):le.clone().iand(this)},I.prototype.uand=function(le){return this.length>le.length?this.clone().iuand(le):le.clone().iuand(this)},I.prototype.iuxor=function(le){var re,P;this.length>le.length?(re=this,P=le):(re=le,P=this);for(var k=0;k<P.length;k++)this.words[k]=re.words[k]^P.words[k];if(this!==re)for(;k<re.length;k++)this.words[k]=re.words[k];return this.length=re.length,this.strip()},I.prototype.ixor=function(le){return _((this.negative|le.negative)===0),this.iuxor(le)},I.prototype.xor=function(le){return this.length>le.length?this.clone().ixor(le):le.clone().ixor(this)},I.prototype.uxor=function(le){return this.length>le.length?this.clone().iuxor(le):le.clone().iuxor(this)},I.prototype.inotn=function(le){_(typeof le=="number"&&le>=0);var re=Math.ceil(le/26)|0,P=le%26;this._expand(re),P>0&&re--;for(var k=0;k<re;k++)this.words[k]=~this.words[k]&67108863;return P>0&&(this.words[k]=~this.words[k]&67108863>>26-P),this.strip()},I.prototype.notn=function(le){return this.clone().inotn(le)},I.prototype.setn=function(le,re){_(typeof le=="number"&&le>=0);var P=le/26|0,k=le%26;return this._expand(P+1),re?this.words[P]=this.words[P]|1<<k:this.words[P]=this.words[P]&~(1<<k),this.strip()},I.prototype.iadd=function(le){var re;if(this.negative!==0&&le.negative===0)return this.negative=0,re=this.isub(le),this.negative^=1,this._normSign();if(this.negative===0&&le.negative!==0)return le.negative=0,re=this.isub(le),le.negative=1,re._normSign();var P,k;this.length>le.length?(P=this,k=le):(P=le,k=this);for(var B=0,z=0;z<k.length;z++)re=(P.words[z]|0)+(k.words[z]|0)+B,this.words[z]=re&67108863,B=re>>>26;for(;B!==0&&z<P.length;z++)re=(P.words[z]|0)+B,this.words[z]=re&67108863,B=re>>>26;if(this.length=P.length,B!==0)this.words[this.length]=B,this.length++;else if(P!==this)for(;z<P.length;z++)this.words[z]=P.words[z];return this},I.prototype.add=function(le){var re;return le.negative!==0&&this.negative===0?(le.negative=0,re=this.sub(le),le.negative^=1,re):le.negative===0&&this.negative!==0?(this.negative=0,re=le.sub(this),this.negative=1,re):this.length>le.length?this.clone().iadd(le):le.clone().iadd(this)},I.prototype.isub=function(le){if(le.negative!==0){le.negative=0;var re=this.iadd(le);return le.negative=1,re._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(le),this.negative=1,this._normSign();var P=this.cmp(le);if(P===0)return this.negative=0,this.length=1,this.words[0]=0,this;var k,B;P>0?(k=this,B=le):(k=le,B=this);for(var z=0,ee=0;ee<B.length;ee++)re=(k.words[ee]|0)-(B.words[ee]|0)+z,z=re>>26,this.words[ee]=re&67108863;for(;z!==0&&ee<k.length;ee++)re=(k.words[ee]|0)+z,z=re>>26,this.words[ee]=re&67108863;if(z===0&&ee<k.length&&k!==this)for(;ee<k.length;ee++)this.words[ee]=k.words[ee];return this.length=Math.max(this.length,ee),k!==this&&(this.negative=1),this.strip()},I.prototype.sub=function(le){return this.clone().isub(le)};function $(le,re,P){P.negative=re.negative^le.negative;var k=le.length+re.length|0;P.length=k,k=k-1|0;var B=le.words[0]|0,z=re.words[0]|0,ee=B*z,H=ee&67108863,q=ee/67108864|0;P.words[0]=H;for(var J=1;J<k;J++){for(var U=q>>>26,Z=q&67108863,ve=Math.min(J,re.length-1),Ye=Math.max(0,J-le.length+1);Ye<=ve;Ye++){var rt=J-Ye|0;B=le.words[rt]|0,z=re.words[Ye]|0,ee=B*z+Z,U+=ee/67108864|0,Z=ee&67108863}P.words[J]=Z|0,q=U|0}return q!==0?P.words[J]=q|0:P.length--,P.strip()}var W=function(le,re,P){var k=le.words,B=re.words,z=P.words,ee=0,H,q,J,U=k[0]|0,Z=U&8191,ve=U>>>13,Ye=k[1]|0,rt=Ye&8191,Ue=Ye>>>13,Qe=k[2]|0,vt=Qe&8191,ri=Qe>>>13,ci=k[3]|0,tt=ci&8191,et=ci>>>13,$e=k[4]|0,Le=$e&8191,ot=$e>>>13,Oe=k[5]|0,Ne=Oe&8191,Fe=Oe>>>13,Je=k[6]|0,Dt=Je&8191,oi=Je>>>13,Bt=k[7]|0,li=Bt&8191,ii=Bt>>>13,Ot=k[8]|0,St=Ot&8191,pi=Ot>>>13,eM=k[9]|0,hi=eM&8191,mi=eM>>>13,Dn=B[0]|0,tM=Dn&8191,oM=Dn>>>13,vM=B[1]|0,dM=vM&8191,hM=vM>>>13,_M=B[2]|0,uM=_M&8191,pM=_M>>>13,yM=B[3]|0,gM=yM&8191,fM=yM>>>13,kM=B[4]|0,IM=kM&8191,DM=kM>>>13,$M=B[5]|0,TM=$M&8191,OM=$M>>>13,UM=B[6]|0,AM=UM&8191,RM=UM>>>13,FM=B[7]|0,xM=FM&8191,BM=FM>>>13,WM=B[8]|0,SM=WM&8191,jM=WM>>>13,YM=B[9]|0,PM=YM&8191,VM=YM>>>13;P.negative=le.negative^re.negative,P.length=19,H=Math.imul(Z,tM),q=Math.imul(Z,oM),q=q+Math.imul(ve,tM)|0,J=Math.imul(ve,oM);var HM=(ee+H|0)+((q&8191)<<13)|0;ee=(J+(q>>>13)|0)+(HM>>>26)|0,HM&=67108863,H=Math.imul(rt,tM),q=Math.imul(rt,oM),q=q+Math.imul(Ue,tM)|0,J=Math.imul(Ue,oM),H=H+Math.imul(Z,dM)|0,q=q+Math.imul(Z,hM)|0,q=q+Math.imul(ve,dM)|0,J=J+Math.imul(ve,hM)|0;var zM=(ee+H|0)+((q&8191)<<13)|0;ee=(J+(q>>>13)|0)+(zM>>>26)|0,zM&=67108863,H=Math.imul(vt,tM),q=Math.imul(vt,oM),q=q+Math.imul(ri,tM)|0,J=Math.imul(ri,oM),H=H+Math.imul(rt,dM)|0,q=q+Math.imul(rt,hM)|0,q=q+Math.imul(Ue,dM)|0,J=J+Math.imul(Ue,hM)|0,H=H+Math.imul(Z,uM)|0,q=q+Math.imul(Z,pM)|0,q=q+Math.imul(ve,uM)|0,J=J+Math.imul(ve,pM)|0;var KM=(ee+H|0)+((q&8191)<<13)|0;ee=(J+(q>>>13)|0)+(KM>>>26)|0,KM&=67108863,H=Math.imul(tt,tM),q=Math.imul(tt,oM),q=q+Math.imul(et,tM)|0,J=Math.imul(et,oM),H=H+Math.imul(vt,dM)|0,q=q+Math.imul(vt,hM)|0,q=q+Math.imul(ri,dM)|0,J=J+Math.imul(ri,hM)|0,H=H+Math.imul(rt,uM)|0,q=q+Math.imul(rt,pM)|0,q=q+Math.imul(Ue,uM)|0,J=J+Math.imul(Ue,pM)|0,H=H+Math.imul(Z,gM)|0,q=q+Math.imul(Z,fM)|0,q=q+Math.imul(ve,gM)|0,J=J+Math.imul(ve,fM)|0;var rN=(ee+H|0)+((q&8191)<<13)|0;ee=(J+(q>>>13)|0)+(rN>>>26)|0,rN&=67108863,H=Math.imul(Le,tM),q=Math.imul(Le,oM),q=q+Math.imul(ot,tM)|0,J=Math.imul(ot,oM),H=H+Math.imul(tt,dM)|0,q=q+Math.imul(tt,hM)|0,q=q+Math.imul(et,dM)|0,J=J+Math.imul(et,hM)|0,H=H+Math.imul(vt,uM)|0,q=q+Math.imul(vt,pM)|0,q=q+Math.imul(ri,uM)|0,J=J+Math.imul(ri,pM)|0,H=H+Math.imul(rt,gM)|0,q=q+Math.imul(rt,fM)|0,q=q+Math.imul(Ue,gM)|0,J=J+Math.imul(Ue,fM)|0,H=H+Math.imul(Z,IM)|0,q=q+Math.imul(Z,DM)|0,q=q+Math.imul(ve,IM)|0,J=J+Math.imul(ve,DM)|0;var eN=(ee+H|0)+((q&8191)<<13)|0;ee=(J+(q>>>13)|0)+(eN>>>26)|0,eN&=67108863,H=Math.imul(Ne,tM),q=Math.imul(Ne,oM),q=q+Math.imul(Fe,tM)|0,J=Math.imul(Fe,oM),H=H+Math.imul(Le,dM)|0,q=q+Math.imul(Le,hM)|0,q=q+Math.imul(ot,dM)|0,J=J+Math.imul(ot,hM)|0,H=H+Math.imul(tt,uM)|0,q=q+Math.imul(tt,pM)|0,q=q+Math.imul(et,uM)|0,J=J+Math.imul(et,pM)|0,H=H+Math.imul(vt,gM)|0,q=q+Math.imul(vt,fM)|0,q=q+Math.imul(ri,gM)|0,J=J+Math.imul(ri,fM)|0,H=H+Math.imul(rt,IM)|0,q=q+Math.imul(rt,DM)|0,q=q+Math.imul(Ue,IM)|0,J=J+Math.imul(Ue,DM)|0,H=H+Math.imul(Z,TM)|0,q=q+Math.imul(Z,OM)|0,q=q+Math.imul(ve,TM)|0,J=J+Math.imul(ve,OM)|0;var iN=(ee+H|0)+((q&8191)<<13)|0;ee=(J+(q>>>13)|0)+(iN>>>26)|0,iN&=67108863,H=Math.imul(Dt,tM),q=Math.imul(Dt,oM),q=q+Math.imul(oi,tM)|0,J=Math.imul(oi,oM),H=H+Math.imul(Ne,dM)|0,q=q+Math.imul(Ne,hM)|0,q=q+Math.imul(Fe,dM)|0,J=J+Math.imul(Fe,hM)|0,H=H+Math.imul(Le,uM)|0,q=q+Math.imul(Le,pM)|0,q=q+Math.imul(ot,uM)|0,J=J+Math.imul(ot,pM)|0,H=H+Math.imul(tt,gM)|0,q=q+Math.imul(tt,fM)|0,q=q+Math.imul(et,gM)|0,J=J+Math.imul(et,fM)|0,H=H+Math.imul(vt,IM)|0,q=q+Math.imul(vt,DM)|0,q=q+Math.imul(ri,IM)|0,J=J+Math.imul(ri,DM)|0,H=H+Math.imul(rt,TM)|0,q=q+Math.imul(rt,OM)|0,q=q+Math.imul(Ue,TM)|0,J=J+Math.imul(Ue,OM)|0,H=H+Math.imul(Z,AM)|0,q=q+Math.imul(Z,RM)|0,q=q+Math.imul(ve,AM)|0,J=J+Math.imul(ve,RM)|0;var ai=(ee+H|0)+((q&8191)<<13)|0;ee=(J+(q>>>13)|0)+(ai>>>26)|0,ai&=67108863,H=Math.imul(li,tM),q=Math.imul(li,oM),q=q+Math.imul(ii,tM)|0,J=Math.imul(ii,oM),H=H+Math.imul(Dt,dM)|0,q=q+Math.imul(Dt,hM)|0,q=q+Math.imul(oi,dM)|0,J=J+Math.imul(oi,hM)|0,H=H+Math.imul(Ne,uM)|0,q=q+Math.imul(Ne,pM)|0,q=q+Math.imul(Fe,uM)|0,J=J+Math.imul(Fe,pM)|0,H=H+Math.imul(Le,gM)|0,q=q+Math.imul(Le,fM)|0,q=q+Math.imul(ot,gM)|0,J=J+Math.imul(ot,fM)|0,H=H+Math.imul(tt,IM)|0,q=q+Math.imul(tt,DM)|0,q=q+Math.imul(et,IM)|0,J=J+Math.imul(et,DM)|0,H=H+Math.imul(vt,TM)|0,q=q+Math.imul(vt,OM)|0,q=q+Math.imul(ri,TM)|0,J=J+Math.imul(ri,OM)|0,H=H+Math.imul(rt,AM)|0,q=q+Math.imul(rt,RM)|0,q=q+Math.imul(Ue,AM)|0,J=J+Math.imul(Ue,RM)|0,H=H+Math.imul(Z,xM)|0,q=q+Math.imul(Z,BM)|0,q=q+Math.imul(ve,xM)|0,J=J+Math.imul(ve,BM)|0;var C=(ee+H|0)+((q&8191)<<13)|0;ee=(J+(q>>>13)|0)+(C>>>26)|0,C&=67108863,H=Math.imul(St,tM),q=Math.imul(St,oM),q=q+Math.imul(pi,tM)|0,J=Math.imul(pi,oM),H=H+Math.imul(li,dM)|0,q=q+Math.imul(li,hM)|0,q=q+Math.imul(ii,dM)|0,J=J+Math.imul(ii,hM)|0,H=H+Math.imul(Dt,uM)|0,q=q+Math.imul(Dt,pM)|0,q=q+Math.imul(oi,uM)|0,J=J+Math.imul(oi,pM)|0,H=H+Math.imul(Ne,gM)|0,q=q+Math.imul(Ne,fM)|0,q=q+Math.imul(Fe,gM)|0,J=J+Math.imul(Fe,fM)|0,H=H+Math.imul(Le,IM)|0,q=q+Math.imul(Le,DM)|0,q=q+Math.imul(ot,IM)|0,J=J+Math.imul(ot,DM)|0,H=H+Math.imul(tt,TM)|0,q=q+Math.imul(tt,OM)|0,q=q+Math.imul(et,TM)|0,J=J+Math.imul(et,OM)|0,H=H+Math.imul(vt,AM)|0,q=q+Math.imul(vt,RM)|0,q=q+Math.imul(ri,AM)|0,J=J+Math.imul(ri,RM)|0,H=H+Math.imul(rt,xM)|0,q=q+Math.imul(rt,BM)|0,q=q+Math.imul(Ue,xM)|0,J=J+Math.imul(Ue,BM)|0,H=H+Math.imul(Z,SM)|0,q=q+Math.imul(Z,jM)|0,q=q+Math.imul(ve,SM)|0,J=J+Math.imul(ve,jM)|0;var L=(ee+H|0)+((q&8191)<<13)|0;ee=(J+(q>>>13)|0)+(L>>>26)|0,L&=67108863,H=Math.imul(hi,tM),q=Math.imul(hi,oM),q=q+Math.imul(mi,tM)|0,J=Math.imul(mi,oM),H=H+Math.imul(St,dM)|0,q=q+Math.imul(St,hM)|0,q=q+Math.imul(pi,dM)|0,J=J+Math.imul(pi,hM)|0,H=H+Math.imul(li,uM)|0,q=q+Math.imul(li,pM)|0,q=q+Math.imul(ii,uM)|0,J=J+Math.imul(ii,pM)|0,H=H+Math.imul(Dt,gM)|0,q=q+Math.imul(Dt,fM)|0,q=q+Math.imul(oi,gM)|0,J=J+Math.imul(oi,fM)|0,H=H+Math.imul(Ne,IM)|0,q=q+Math.imul(Ne,DM)|0,q=q+Math.imul(Fe,IM)|0,J=J+Math.imul(Fe,DM)|0,H=H+Math.imul(Le,TM)|0,q=q+Math.imul(Le,OM)|0,q=q+Math.imul(ot,TM)|0,J=J+Math.imul(ot,OM)|0,H=H+Math.imul(tt,AM)|0,q=q+Math.imul(tt,RM)|0,q=q+Math.imul(et,AM)|0,J=J+Math.imul(et,RM)|0,H=H+Math.imul(vt,xM)|0,q=q+Math.imul(vt,BM)|0,q=q+Math.imul(ri,xM)|0,J=J+Math.imul(ri,BM)|0,H=H+Math.imul(rt,SM)|0,q=q+Math.imul(rt,jM)|0,q=q+Math.imul(Ue,SM)|0,J=J+Math.imul(Ue,jM)|0,H=H+Math.imul(Z,PM)|0,q=q+Math.imul(Z,VM)|0,q=q+Math.imul(ve,PM)|0,J=J+Math.imul(ve,VM)|0;var F=(ee+H|0)+((q&8191)<<13)|0;ee=(J+(q>>>13)|0)+(F>>>26)|0,F&=67108863,H=Math.imul(hi,dM),q=Math.imul(hi,hM),q=q+Math.imul(mi,dM)|0,J=Math.imul(mi,hM),H=H+Math.imul(St,uM)|0,q=q+Math.imul(St,pM)|0,q=q+Math.imul(pi,uM)|0,J=J+Math.imul(pi,pM)|0,H=H+Math.imul(li,gM)|0,q=q+Math.imul(li,fM)|0,q=q+Math.imul(ii,gM)|0,J=J+Math.imul(ii,fM)|0,H=H+Math.imul(Dt,IM)|0,q=q+Math.imul(Dt,DM)|0,q=q+Math.imul(oi,IM)|0,J=J+Math.imul(oi,DM)|0,H=H+Math.imul(Ne,TM)|0,q=q+Math.imul(Ne,OM)|0,q=q+Math.imul(Fe,TM)|0,J=J+Math.imul(Fe,OM)|0,H=H+Math.imul(Le,AM)|0,q=q+Math.imul(Le,RM)|0,q=q+Math.imul(ot,AM)|0,J=J+Math.imul(ot,RM)|0,H=H+Math.imul(tt,xM)|0,q=q+Math.imul(tt,BM)|0,q=q+Math.imul(et,xM)|0,J=J+Math.imul(et,BM)|0,H=H+Math.imul(vt,SM)|0,q=q+Math.imul(vt,jM)|0,q=q+Math.imul(ri,SM)|0,J=J+Math.imul(ri,jM)|0,H=H+Math.imul(rt,PM)|0,q=q+Math.imul(rt,VM)|0,q=q+Math.imul(Ue,PM)|0,J=J+Math.imul(Ue,VM)|0;var ne=(ee+H|0)+((q&8191)<<13)|0;ee=(J+(q>>>13)|0)+(ne>>>26)|0,ne&=67108863,H=Math.imul(hi,uM),q=Math.imul(hi,pM),q=q+Math.imul(mi,uM)|0,J=Math.imul(mi,pM),H=H+Math.imul(St,gM)|0,q=q+Math.imul(St,fM)|0,q=q+Math.imul(pi,gM)|0,J=J+Math.imul(pi,fM)|0,H=H+Math.imul(li,IM)|0,q=q+Math.imul(li,DM)|0,q=q+Math.imul(ii,IM)|0,J=J+Math.imul(ii,DM)|0,H=H+Math.imul(Dt,TM)|0,q=q+Math.imul(Dt,OM)|0,q=q+Math.imul(oi,TM)|0,J=J+Math.imul(oi,OM)|0,H=H+Math.imul(Ne,AM)|0,q=q+Math.imul(Ne,RM)|0,q=q+Math.imul(Fe,AM)|0,J=J+Math.imul(Fe,RM)|0,H=H+Math.imul(Le,xM)|0,q=q+Math.imul(Le,BM)|0,q=q+Math.imul(ot,xM)|0,J=J+Math.imul(ot,BM)|0,H=H+Math.imul(tt,SM)|0,q=q+Math.imul(tt,jM)|0,q=q+Math.imul(et,SM)|0,J=J+Math.imul(et,jM)|0,H=H+Math.imul(vt,PM)|0,q=q+Math.imul(vt,VM)|0,q=q+Math.imul(ri,PM)|0,J=J+Math.imul(ri,VM)|0;var ue=(ee+H|0)+((q&8191)<<13)|0;ee=(J+(q>>>13)|0)+(ue>>>26)|0,ue&=67108863,H=Math.imul(hi,gM),q=Math.imul(hi,fM),q=q+Math.imul(mi,gM)|0,J=Math.imul(mi,fM),H=H+Math.imul(St,IM)|0,q=q+Math.imul(St,DM)|0,q=q+Math.imul(pi,IM)|0,J=J+Math.imul(pi,DM)|0,H=H+Math.imul(li,TM)|0,q=q+Math.imul(li,OM)|0,q=q+Math.imul(ii,TM)|0,J=J+Math.imul(ii,OM)|0,H=H+Math.imul(Dt,AM)|0,q=q+Math.imul(Dt,RM)|0,q=q+Math.imul(oi,AM)|0,J=J+Math.imul(oi,RM)|0,H=H+Math.imul(Ne,xM)|0,q=q+Math.imul(Ne,BM)|0,q=q+Math.imul(Fe,xM)|0,J=J+Math.imul(Fe,BM)|0,H=H+Math.imul(Le,SM)|0,q=q+Math.imul(Le,jM)|0,q=q+Math.imul(ot,SM)|0,J=J+Math.imul(ot,jM)|0,H=H+Math.imul(tt,PM)|0,q=q+Math.imul(tt,VM)|0,q=q+Math.imul(et,PM)|0,J=J+Math.imul(et,VM)|0;var fe=(ee+H|0)+((q&8191)<<13)|0;ee=(J+(q>>>13)|0)+(fe>>>26)|0,fe&=67108863,H=Math.imul(hi,IM),q=Math.imul(hi,DM),q=q+Math.imul(mi,IM)|0,J=Math.imul(mi,DM),H=H+Math.imul(St,TM)|0,q=q+Math.imul(St,OM)|0,q=q+Math.imul(pi,TM)|0,J=J+Math.imul(pi,OM)|0,H=H+Math.imul(li,AM)|0,q=q+Math.imul(li,RM)|0,q=q+Math.imul(ii,AM)|0,J=J+Math.imul(ii,RM)|0,H=H+Math.imul(Dt,xM)|0,q=q+Math.imul(Dt,BM)|0,q=q+Math.imul(oi,xM)|0,J=J+Math.imul(oi,BM)|0,H=H+Math.imul(Ne,SM)|0,q=q+Math.imul(Ne,jM)|0,q=q+Math.imul(Fe,SM)|0,J=J+Math.imul(Fe,jM)|0,H=H+Math.imul(Le,PM)|0,q=q+Math.imul(Le,VM)|0,q=q+Math.imul(ot,PM)|0,J=J+Math.imul(ot,VM)|0;var me=(ee+H|0)+((q&8191)<<13)|0;ee=(J+(q>>>13)|0)+(me>>>26)|0,me&=67108863,H=Math.imul(hi,TM),q=Math.imul(hi,OM),q=q+Math.imul(mi,TM)|0,J=Math.imul(mi,OM),H=H+Math.imul(St,AM)|0,q=q+Math.imul(St,RM)|0,q=q+Math.imul(pi,AM)|0,J=J+Math.imul(pi,RM)|0,H=H+Math.imul(li,xM)|0,q=q+Math.imul(li,BM)|0,q=q+Math.imul(ii,xM)|0,J=J+Math.imul(ii,BM)|0,H=H+Math.imul(Dt,SM)|0,q=q+Math.imul(Dt,jM)|0,q=q+Math.imul(oi,SM)|0,J=J+Math.imul(oi,jM)|0,H=H+Math.imul(Ne,PM)|0,q=q+Math.imul(Ne,VM)|0,q=q+Math.imul(Fe,PM)|0,J=J+Math.imul(Fe,VM)|0;var Pe=(ee+H|0)+((q&8191)<<13)|0;ee=(J+(q>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,H=Math.imul(hi,AM),q=Math.imul(hi,RM),q=q+Math.imul(mi,AM)|0,J=Math.imul(mi,RM),H=H+Math.imul(St,xM)|0,q=q+Math.imul(St,BM)|0,q=q+Math.imul(pi,xM)|0,J=J+Math.imul(pi,BM)|0,H=H+Math.imul(li,SM)|0,q=q+Math.imul(li,jM)|0,q=q+Math.imul(ii,SM)|0,J=J+Math.imul(ii,jM)|0,H=H+Math.imul(Dt,PM)|0,q=q+Math.imul(Dt,VM)|0,q=q+Math.imul(oi,PM)|0,J=J+Math.imul(oi,VM)|0;var Re=(ee+H|0)+((q&8191)<<13)|0;ee=(J+(q>>>13)|0)+(Re>>>26)|0,Re&=67108863,H=Math.imul(hi,xM),q=Math.imul(hi,BM),q=q+Math.imul(mi,xM)|0,J=Math.imul(mi,BM),H=H+Math.imul(St,SM)|0,q=q+Math.imul(St,jM)|0,q=q+Math.imul(pi,SM)|0,J=J+Math.imul(pi,jM)|0,H=H+Math.imul(li,PM)|0,q=q+Math.imul(li,VM)|0,q=q+Math.imul(ii,PM)|0,J=J+Math.imul(ii,VM)|0;var Xe=(ee+H|0)+((q&8191)<<13)|0;ee=(J+(q>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,H=Math.imul(hi,SM),q=Math.imul(hi,jM),q=q+Math.imul(mi,SM)|0,J=Math.imul(mi,jM),H=H+Math.imul(St,PM)|0,q=q+Math.imul(St,VM)|0,q=q+Math.imul(pi,PM)|0,J=J+Math.imul(pi,VM)|0;var qe=(ee+H|0)+((q&8191)<<13)|0;ee=(J+(q>>>13)|0)+(qe>>>26)|0,qe&=67108863,H=Math.imul(hi,PM),q=Math.imul(hi,VM),q=q+Math.imul(mi,PM)|0,J=Math.imul(mi,VM);var Ke=(ee+H|0)+((q&8191)<<13)|0;return ee=(J+(q>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,z[0]=HM,z[1]=zM,z[2]=KM,z[3]=rN,z[4]=eN,z[5]=iN,z[6]=ai,z[7]=C,z[8]=L,z[9]=F,z[10]=ne,z[11]=ue,z[12]=fe,z[13]=me,z[14]=Pe,z[15]=Re,z[16]=Xe,z[17]=qe,z[18]=Ke,ee!==0&&(z[19]=ee,P.length++),P};Math.imul||(W=$);function Q(le,re,P){P.negative=re.negative^le.negative,P.length=le.length+re.length;for(var k=0,B=0,z=0;z<P.length-1;z++){var ee=B;B=0;for(var H=k&67108863,q=Math.min(z,re.length-1),J=Math.max(0,z-le.length+1);J<=q;J++){var U=z-J,Z=le.words[U]|0,ve=re.words[J]|0,Ye=Z*ve,rt=Ye&67108863;ee=ee+(Ye/67108864|0)|0,rt=rt+H|0,H=rt&67108863,ee=ee+(rt>>>26)|0,B+=ee>>>26,ee&=67108863}P.words[z]=H,k=ee,ee=B}return k!==0?P.words[z]=k:P.length--,P.strip()}function X(le,re,P){var k=new Y;return k.mulp(le,re,P)}I.prototype.mulTo=function(le,re){var P,k=this.length+le.length;return this.length===10&&le.length===10?P=W(this,le,re):k<63?P=$(this,le,re):k<1024?P=Q(this,le,re):P=X(this,le,re),P};function Y(le,re){this.x=le,this.y=re}Y.prototype.makeRBT=function(le){for(var re=new Array(le),P=I.prototype._countBits(le)-1,k=0;k<le;k++)re[k]=this.revBin(k,P,le);return re},Y.prototype.revBin=function(le,re,P){if(le===0||le===P-1)return le;for(var k=0,B=0;B<re;B++)k|=(le&1)<<re-B-1,le>>=1;return k},Y.prototype.permute=function(le,re,P,k,B,z){for(var ee=0;ee<z;ee++)k[ee]=re[le[ee]],B[ee]=P[le[ee]]},Y.prototype.transform=function(le,re,P,k,B,z){this.permute(z,le,re,P,k,B);for(var ee=1;ee<B;ee<<=1)for(var H=ee<<1,q=Math.cos(2*Math.PI/H),J=Math.sin(2*Math.PI/H),U=0;U<B;U+=H)for(var Z=q,ve=J,Ye=0;Ye<ee;Ye++){var rt=P[U+Ye],Ue=k[U+Ye],Qe=P[U+Ye+ee],vt=k[U+Ye+ee],ri=Z*Qe-ve*vt;vt=Z*vt+ve*Qe,Qe=ri,P[U+Ye]=rt+Qe,k[U+Ye]=Ue+vt,P[U+Ye+ee]=rt-Qe,k[U+Ye+ee]=Ue-vt,Ye!==H&&(ri=q*Z-J*ve,ve=q*ve+J*Z,Z=ri)}},Y.prototype.guessLen13b=function(le,re){var P=Math.max(re,le)|1,k=P&1,B=0;for(P=P/2|0;P;P=P>>>1)B++;return 1<<B+1+k},Y.prototype.conjugate=function(le,re,P){if(!(P<=1))for(var k=0;k<P/2;k++){var B=le[k];le[k]=le[P-k-1],le[P-k-1]=B,B=re[k],re[k]=-re[P-k-1],re[P-k-1]=-B}},Y.prototype.normalize13b=function(le,re){for(var P=0,k=0;k<re/2;k++){var B=Math.round(le[2*k+1]/re)*8192+Math.round(le[2*k]/re)+P;le[k]=B&67108863,B<67108864?P=0:P=B/67108864|0}return le},Y.prototype.convert13b=function(le,re,P,k){for(var B=0,z=0;z<re;z++)B=B+(le[z]|0),P[2*z]=B&8191,B=B>>>13,P[2*z+1]=B&8191,B=B>>>13;for(z=2*re;z<k;++z)P[z]=0;_(B===0),_((B&-8192)===0)},Y.prototype.stub=function(le){for(var re=new Array(le),P=0;P<le;P++)re[P]=0;return re},Y.prototype.mulp=function(le,re,P){var k=2*this.guessLen13b(le.length,re.length),B=this.makeRBT(k),z=this.stub(k),ee=new Array(k),H=new Array(k),q=new Array(k),J=new Array(k),U=new Array(k),Z=new Array(k),ve=P.words;ve.length=k,this.convert13b(le.words,le.length,ee,k),this.convert13b(re.words,re.length,J,k),this.transform(ee,z,H,q,k,B),this.transform(J,z,U,Z,k,B);for(var Ye=0;Ye<k;Ye++){var rt=H[Ye]*U[Ye]-q[Ye]*Z[Ye];q[Ye]=H[Ye]*Z[Ye]+q[Ye]*U[Ye],H[Ye]=rt}return this.conjugate(H,q,k),this.transform(H,q,ve,z,k,B),this.conjugate(ve,z,k),this.normalize13b(ve,k),P.negative=le.negative^re.negative,P.length=le.length+re.length,P.strip()},I.prototype.mul=function(le){var re=new I(null);return re.words=new Array(this.length+le.length),this.mulTo(le,re)},I.prototype.mulf=function(le){var re=new I(null);return re.words=new Array(this.length+le.length),X(this,le,re)},I.prototype.imul=function(le){return this.clone().mulTo(le,this)},I.prototype.imuln=function(le){_(typeof le=="number"),_(le<67108864);for(var re=0,P=0;P<this.length;P++){var k=(this.words[P]|0)*le,B=(k&67108863)+(re&67108863);re>>=26,re+=k/67108864|0,re+=B>>>26,this.words[P]=B&67108863}return re!==0&&(this.words[P]=re,this.length++),this},I.prototype.muln=function(le){return this.clone().imuln(le)},I.prototype.sqr=function(){return this.mul(this)},I.prototype.isqr=function(){return this.imul(this.clone())},I.prototype.pow=function(le){var re=j(le);if(re.length===0)return new I(1);for(var P=this,k=0;k<re.length&&re[k]===0;k++,P=P.sqr());if(++k<re.length)for(var B=P.sqr();k<re.length;k++,B=B.sqr())re[k]!==0&&(P=P.mul(B));return P},I.prototype.iushln=function(le){_(typeof le=="number"&&le>=0);var re=le%26,P=(le-re)/26,k=67108863>>>26-re<<26-re,B;if(re!==0){var z=0;for(B=0;B<this.length;B++){var ee=this.words[B]&k,H=(this.words[B]|0)-ee<<re;this.words[B]=H|z,z=ee>>>26-re}z&&(this.words[B]=z,this.length++)}if(P!==0){for(B=this.length-1;B>=0;B--)this.words[B+P]=this.words[B];for(B=0;B<P;B++)this.words[B]=0;this.length+=P}return this.strip()},I.prototype.ishln=function(le){return _(this.negative===0),this.iushln(le)},I.prototype.iushrn=function(le,re,P){_(typeof le=="number"&&le>=0);var k;re?k=(re-re%26)/26:k=0;var B=le%26,z=Math.min((le-B)/26,this.length),ee=67108863^67108863>>>B<<B,H=P;if(k-=z,k=Math.max(0,k),H){for(var q=0;q<z;q++)H.words[q]=this.words[q];H.length=z}if(z!==0)if(this.length>z)for(this.length-=z,q=0;q<this.length;q++)this.words[q]=this.words[q+z];else this.words[0]=0,this.length=1;var J=0;for(q=this.length-1;q>=0&&(J!==0||q>=k);q--){var U=this.words[q]|0;this.words[q]=J<<26-B|U>>>B,J=U&ee}return H&&J!==0&&(H.words[H.length++]=J),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},I.prototype.ishrn=function(le,re,P){return _(this.negative===0),this.iushrn(le,re,P)},I.prototype.shln=function(le){return this.clone().ishln(le)},I.prototype.ushln=function(le){return this.clone().iushln(le)},I.prototype.shrn=function(le){return this.clone().ishrn(le)},I.prototype.ushrn=function(le){return this.clone().iushrn(le)},I.prototype.testn=function(le){_(typeof le=="number"&&le>=0);var re=le%26,P=(le-re)/26,k=1<<re;if(this.length<=P)return!1;var B=this.words[P];return!!(B&k)},I.prototype.imaskn=function(le){_(typeof le=="number"&&le>=0);var re=le%26,P=(le-re)/26;if(_(this.negative===0,"imaskn works only with positive numbers"),this.length<=P)return this;if(re!==0&&P++,this.length=Math.min(P,this.length),re!==0){var k=67108863^67108863>>>re<<re;this.words[this.length-1]&=k}return this.strip()},I.prototype.maskn=function(le){return this.clone().imaskn(le)},I.prototype.iaddn=function(le){return _(typeof le=="number"),_(le<67108864),le<0?this.isubn(-le):this.negative!==0?this.length===1&&(this.words[0]|0)<le?(this.words[0]=le-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(le),this.negative=1,this):this._iaddn(le)},I.prototype._iaddn=function(le){this.words[0]+=le;for(var re=0;re<this.length&&this.words[re]>=67108864;re++)this.words[re]-=67108864,re===this.length-1?this.words[re+1]=1:this.words[re+1]++;return this.length=Math.max(this.length,re+1),this},I.prototype.isubn=function(le){if(_(typeof le=="number"),_(le<67108864),le<0)return this.iaddn(-le);if(this.negative!==0)return this.negative=0,this.iaddn(le),this.negative=1,this;if(this.words[0]-=le,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var re=0;re<this.length&&this.words[re]<0;re++)this.words[re]+=67108864,this.words[re+1]-=1;return this.strip()},I.prototype.addn=function(le){return this.clone().iaddn(le)},I.prototype.subn=function(le){return this.clone().isubn(le)},I.prototype.iabs=function(){return this.negative=0,this},I.prototype.abs=function(){return this.clone().iabs()},I.prototype._ishlnsubmul=function(le,re,P){var k=le.length+P,B;this._expand(k);var z,ee=0;for(B=0;B<le.length;B++){z=(this.words[B+P]|0)+ee;var H=(le.words[B]|0)*re;z-=H&67108863,ee=(z>>26)-(H/67108864|0),this.words[B+P]=z&67108863}for(;B<this.length-P;B++)z=(this.words[B+P]|0)+ee,ee=z>>26,this.words[B+P]=z&67108863;if(ee===0)return this.strip();for(_(ee===-1),ee=0,B=0;B<this.length;B++)z=-(this.words[B]|0)+ee,ee=z>>26,this.words[B]=z&67108863;return this.negative=1,this.strip()},I.prototype._wordDiv=function(le,re){var P=this.length-le.length,k=this.clone(),B=le,z=B.words[B.length-1]|0,ee=this._countBits(z);P=26-ee,P!==0&&(B=B.ushln(P),k.iushln(P),z=B.words[B.length-1]|0);var H=k.length-B.length,q;if(re!=="mod"){q=new I(null),q.length=H+1,q.words=new Array(q.length);for(var J=0;J<q.length;J++)q.words[J]=0}var U=k.clone()._ishlnsubmul(B,1,H);U.negative===0&&(k=U,q&&(q.words[H]=1));for(var Z=H-1;Z>=0;Z--){var ve=(k.words[B.length+Z]|0)*67108864+(k.words[B.length+Z-1]|0);for(ve=Math.min(ve/z|0,67108863),k._ishlnsubmul(B,ve,Z);k.negative!==0;)ve--,k.negative=0,k._ishlnsubmul(B,1,Z),k.isZero()||(k.negative^=1);q&&(q.words[Z]=ve)}return q&&q.strip(),k.strip(),re!=="div"&&P!==0&&k.iushrn(P),{div:q||null,mod:k}},I.prototype.divmod=function(le,re,P){if(_(!le.isZero()),this.isZero())return{div:new I(0),mod:new I(0)};var k,B,z;return this.negative!==0&&le.negative===0?(z=this.neg().divmod(le,re),re!=="mod"&&(k=z.div.neg()),re!=="div"&&(B=z.mod.neg(),P&&B.negative!==0&&B.iadd(le)),{div:k,mod:B}):this.negative===0&&le.negative!==0?(z=this.divmod(le.neg(),re),re!=="mod"&&(k=z.div.neg()),{div:k,mod:z.mod}):this.negative&le.negative?(z=this.neg().divmod(le.neg(),re),re!=="div"&&(B=z.mod.neg(),P&&B.negative!==0&&B.isub(le)),{div:z.div,mod:B}):le.length>this.length||this.cmp(le)<0?{div:new I(0),mod:this}:le.length===1?re==="div"?{div:this.divn(le.words[0]),mod:null}:re==="mod"?{div:null,mod:new I(this.modn(le.words[0]))}:{div:this.divn(le.words[0]),mod:new I(this.modn(le.words[0]))}:this._wordDiv(le,re)},I.prototype.div=function(le){return this.divmod(le,"div",!1).div},I.prototype.mod=function(le){return this.divmod(le,"mod",!1).mod},I.prototype.umod=function(le){return this.divmod(le,"mod",!0).mod},I.prototype.divRound=function(le){var re=this.divmod(le);if(re.mod.isZero())return re.div;var P=re.div.negative!==0?re.mod.isub(le):re.mod,k=le.ushrn(1),B=le.andln(1),z=P.cmp(k);return z<0||B===1&&z===0?re.div:re.div.negative!==0?re.div.isubn(1):re.div.iaddn(1)},I.prototype.modn=function(le){_(le<=67108863);for(var re=(1<<26)%le,P=0,k=this.length-1;k>=0;k--)P=(re*P+(this.words[k]|0))%le;return P},I.prototype.idivn=function(le){_(le<=67108863);for(var re=0,P=this.length-1;P>=0;P--){var k=(this.words[P]|0)+re*67108864;this.words[P]=k/le|0,re=k%le}return this.strip()},I.prototype.divn=function(le){return this.clone().idivn(le)},I.prototype.egcd=function(le){_(le.negative===0),_(!le.isZero());var re=this,P=le.clone();re.negative!==0?re=re.umod(le):re=re.clone();for(var k=new I(1),B=new I(0),z=new I(0),ee=new I(1),H=0;re.isEven()&&P.isEven();)re.iushrn(1),P.iushrn(1),++H;for(var q=P.clone(),J=re.clone();!re.isZero();){for(var U=0,Z=1;!(re.words[0]&Z)&&U<26;++U,Z<<=1);if(U>0)for(re.iushrn(U);U-- >0;)(k.isOdd()||B.isOdd())&&(k.iadd(q),B.isub(J)),k.iushrn(1),B.iushrn(1);for(var ve=0,Ye=1;!(P.words[0]&Ye)&&ve<26;++ve,Ye<<=1);if(ve>0)for(P.iushrn(ve);ve-- >0;)(z.isOdd()||ee.isOdd())&&(z.iadd(q),ee.isub(J)),z.iushrn(1),ee.iushrn(1);re.cmp(P)>=0?(re.isub(P),k.isub(z),B.isub(ee)):(P.isub(re),z.isub(k),ee.isub(B))}return{a:z,b:ee,gcd:P.iushln(H)}},I.prototype._invmp=function(le){_(le.negative===0),_(!le.isZero());var re=this,P=le.clone();re.negative!==0?re=re.umod(le):re=re.clone();for(var k=new I(1),B=new I(0),z=P.clone();re.cmpn(1)>0&&P.cmpn(1)>0;){for(var ee=0,H=1;!(re.words[0]&H)&&ee<26;++ee,H<<=1);if(ee>0)for(re.iushrn(ee);ee-- >0;)k.isOdd()&&k.iadd(z),k.iushrn(1);for(var q=0,J=1;!(P.words[0]&J)&&q<26;++q,J<<=1);if(q>0)for(P.iushrn(q);q-- >0;)B.isOdd()&&B.iadd(z),B.iushrn(1);re.cmp(P)>=0?(re.isub(P),k.isub(B)):(P.isub(re),B.isub(k))}var U;return re.cmpn(1)===0?U=k:U=B,U.cmpn(0)<0&&U.iadd(le),U},I.prototype.gcd=function(le){if(this.isZero())return le.abs();if(le.isZero())return this.abs();var re=this.clone(),P=le.clone();re.negative=0,P.negative=0;for(var k=0;re.isEven()&&P.isEven();k++)re.iushrn(1),P.iushrn(1);do{for(;re.isEven();)re.iushrn(1);for(;P.isEven();)P.iushrn(1);var B=re.cmp(P);if(B<0){var z=re;re=P,P=z}else if(B===0||P.cmpn(1)===0)break;re.isub(P)}while(!0);return P.iushln(k)},I.prototype.invm=function(le){return this.egcd(le).a.umod(le)},I.prototype.isEven=function(){return(this.words[0]&1)===0},I.prototype.isOdd=function(){return(this.words[0]&1)===1},I.prototype.andln=function(le){return this.words[0]&le},I.prototype.bincn=function(le){_(typeof le=="number");var re=le%26,P=(le-re)/26,k=1<<re;if(this.length<=P)return this._expand(P+1),this.words[P]|=k,this;for(var B=k,z=P;B!==0&&z<this.length;z++){var ee=this.words[z]|0;ee+=B,B=ee>>>26,ee&=67108863,this.words[z]=ee}return B!==0&&(this.words[z]=B,this.length++),this},I.prototype.isZero=function(){return this.length===1&&this.words[0]===0},I.prototype.cmpn=function(le){var re=le<0;if(this.negative!==0&&!re)return-1;if(this.negative===0&&re)return 1;this.strip();var P;if(this.length>1)P=1;else{re&&(le=-le),_(le<=67108863,"Number is too big");var k=this.words[0]|0;P=k===le?0:k<le?-1:1}return this.negative!==0?-P|0:P},I.prototype.cmp=function(le){if(this.negative!==0&&le.negative===0)return-1;if(this.negative===0&&le.negative!==0)return 1;var re=this.ucmp(le);return this.negative!==0?-re|0:re},I.prototype.ucmp=function(le){if(this.length>le.length)return 1;if(this.length<le.length)return-1;for(var re=0,P=this.length-1;P>=0;P--){var k=this.words[P]|0,B=le.words[P]|0;if(k!==B){k<B?re=-1:k>B&&(re=1);break}}return re},I.prototype.gtn=function(le){return this.cmpn(le)===1},I.prototype.gt=function(le){return this.cmp(le)===1},I.prototype.gten=function(le){return this.cmpn(le)>=0},I.prototype.gte=function(le){return this.cmp(le)>=0},I.prototype.ltn=function(le){return this.cmpn(le)===-1},I.prototype.lt=function(le){return this.cmp(le)===-1},I.prototype.lten=function(le){return this.cmpn(le)<=0},I.prototype.lte=function(le){return this.cmp(le)<=0},I.prototype.eqn=function(le){return this.cmpn(le)===0},I.prototype.eq=function(le){return this.cmp(le)===0},I.red=function(le){return new Ce(le)},I.prototype.toRed=function(le){return _(!this.red,"Already a number in reduction context"),_(this.negative===0,"red works only with positives"),le.convertTo(this)._forceRed(le)},I.prototype.fromRed=function(){return _(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},I.prototype._forceRed=function(le){return this.red=le,this},I.prototype.forceRed=function(le){return _(!this.red,"Already a number in reduction context"),this._forceRed(le)},I.prototype.redAdd=function(le){return _(this.red,"redAdd works only with red numbers"),this.red.add(this,le)},I.prototype.redIAdd=function(le){return _(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,le)},I.prototype.redSub=function(le){return _(this.red,"redSub works only with red numbers"),this.red.sub(this,le)},I.prototype.redISub=function(le){return _(this.red,"redISub works only with red numbers"),this.red.isub(this,le)},I.prototype.redShl=function(le){return _(this.red,"redShl works only with red numbers"),this.red.shl(this,le)},I.prototype.redMul=function(le){return _(this.red,"redMul works only with red numbers"),this.red._verify2(this,le),this.red.mul(this,le)},I.prototype.redIMul=function(le){return _(this.red,"redMul works only with red numbers"),this.red._verify2(this,le),this.red.imul(this,le)},I.prototype.redSqr=function(){return _(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},I.prototype.redISqr=function(){return _(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},I.prototype.redSqrt=function(){return _(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},I.prototype.redInvm=function(){return _(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},I.prototype.redNeg=function(){return _(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},I.prototype.redPow=function(le){return _(this.red&&!le.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,le)};var ie={k256:null,p224:null,p192:null,p25519:null};function oe(le,re){this.name=le,this.p=new I(re,16),this.n=this.p.bitLength(),this.k=new I(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}oe.prototype._tmp=function(){var le=new I(null);return le.words=new Array(Math.ceil(this.n/13)),le},oe.prototype.ireduce=function(le){var re=le,P;do this.split(re,this.tmp),re=this.imulK(re),re=re.iadd(this.tmp),P=re.bitLength();while(P>this.n);var k=P<this.n?-1:re.ucmp(this.p);return k===0?(re.words[0]=0,re.length=1):k>0?re.isub(this.p):re.strip!==void 0?re.strip():re._strip(),re},oe.prototype.split=function(le,re){le.iushrn(this.n,0,re)},oe.prototype.imulK=function(le){return le.imul(this.k)};function ge(){oe.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}x(ge,oe),ge.prototype.split=function(le,re){for(var P=4194303,k=Math.min(le.length,9),B=0;B<k;B++)re.words[B]=le.words[B];if(re.length=k,le.length<=9){le.words[0]=0,le.length=1;return}var z=le.words[9];for(re.words[re.length++]=z&P,B=10;B<le.length;B++){var ee=le.words[B]|0;le.words[B-10]=(ee&P)<<4|z>>>22,z=ee}z>>>=22,le.words[B-10]=z,z===0&&le.length>10?le.length-=10:le.length-=9},ge.prototype.imulK=function(le){le.words[le.length]=0,le.words[le.length+1]=0,le.length+=2;for(var re=0,P=0;P<le.length;P++){var k=le.words[P]|0;re+=k*977,le.words[P]=re&67108863,re=k*64+(re/67108864|0)}return le.words[le.length-1]===0&&(le.length--,le.words[le.length-1]===0&&le.length--),le};function be(){oe.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}x(be,oe);function ze(){oe.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}x(ze,oe);function de(){oe.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}x(de,oe),de.prototype.imulK=function(le){for(var re=0,P=0;P<le.length;P++){var k=(le.words[P]|0)*19+re,B=k&67108863;k>>>=26,le.words[P]=B,re=k}return re!==0&&(le.words[le.length++]=re),le},I._prime=function(le){if(ie[le])return ie[le];var re;if(le==="k256")re=new ge;else if(le==="p224")re=new be;else if(le==="p192")re=new ze;else if(le==="p25519")re=new de;else throw new Error("Unknown prime "+le);return ie[le]=re,re};function Ce(le){if(typeof le=="string"){var re=I._prime(le);this.m=re.p,this.prime=re}else _(le.gtn(1),"modulus must be greater than 1"),this.m=le,this.prime=null}Ce.prototype._verify1=function(le){_(le.negative===0,"red works only with positives"),_(le.red,"red works only with red numbers")},Ce.prototype._verify2=function(le,re){_((le.negative|re.negative)===0,"red works only with positives"),_(le.red&&le.red===re.red,"red works only with red numbers")},Ce.prototype.imod=function(le){return this.prime?this.prime.ireduce(le)._forceRed(this):le.umod(this.m)._forceRed(this)},Ce.prototype.neg=function(le){return le.isZero()?le.clone():this.m.sub(le)._forceRed(this)},Ce.prototype.add=function(le,re){this._verify2(le,re);var P=le.add(re);return P.cmp(this.m)>=0&&P.isub(this.m),P._forceRed(this)},Ce.prototype.iadd=function(le,re){this._verify2(le,re);var P=le.iadd(re);return P.cmp(this.m)>=0&&P.isub(this.m),P},Ce.prototype.sub=function(le,re){this._verify2(le,re);var P=le.sub(re);return P.cmpn(0)<0&&P.iadd(this.m),P._forceRed(this)},Ce.prototype.isub=function(le,re){this._verify2(le,re);var P=le.isub(re);return P.cmpn(0)<0&&P.iadd(this.m),P},Ce.prototype.shl=function(le,re){return this._verify1(le),this.imod(le.ushln(re))},Ce.prototype.imul=function(le,re){return this._verify2(le,re),this.imod(le.imul(re))},Ce.prototype.mul=function(le,re){return this._verify2(le,re),this.imod(le.mul(re))},Ce.prototype.isqr=function(le){return this.imul(le,le.clone())},Ce.prototype.sqr=function(le){return this.mul(le,le)},Ce.prototype.sqrt=function(le){if(le.isZero())return le.clone();var re=this.m.andln(3);if(_(re%2===1),re===3){var P=this.m.add(new I(1)).iushrn(2);return this.pow(le,P)}for(var k=this.m.subn(1),B=0;!k.isZero()&&k.andln(1)===0;)B++,k.iushrn(1);_(!k.isZero());var z=new I(1).toRed(this),ee=z.redNeg(),H=this.m.subn(1).iushrn(1),q=this.m.bitLength();for(q=new I(2*q*q).toRed(this);this.pow(q,H).cmp(ee)!==0;)q.redIAdd(ee);for(var J=this.pow(q,k),U=this.pow(le,k.addn(1).iushrn(1)),Z=this.pow(le,k),ve=B;Z.cmp(z)!==0;){for(var Ye=Z,rt=0;Ye.cmp(z)!==0;rt++)Ye=Ye.redSqr();_(rt<ve);var Ue=this.pow(J,new I(1).iushln(ve-rt-1));U=U.redMul(Ue),J=Ue.redSqr(),Z=Z.redMul(J),ve=rt}return U},Ce.prototype.invm=function(le){var re=le._invmp(this.m);return re.negative!==0?(re.negative=0,this.imod(re).redNeg()):this.imod(re)},Ce.prototype.pow=function(le,re){if(re.isZero())return new I(1).toRed(this);if(re.cmpn(1)===0)return le.clone();var P=4,k=new Array(1<<P);k[0]=new I(1).toRed(this),k[1]=le;for(var B=2;B<k.length;B++)k[B]=this.mul(k[B-1],le);var z=k[0],ee=0,H=0,q=re.bitLength()%26;for(q===0&&(q=26),B=re.length-1;B>=0;B--){for(var J=re.words[B],U=q-1;U>=0;U--){var Z=J>>U&1;if(z!==k[0]&&(z=this.sqr(z)),Z===0&&ee===0){H=0;continue}ee<<=1,ee|=Z,H++,!(H!==P&&(B!==0||U!==0))&&(z=this.mul(z,k[ee]),H=0,ee=0)}q=26}return z},Ce.prototype.convertTo=function(le){var re=le.umod(this.m);return re===le?re.clone():re},Ce.prototype.convertFrom=function(le){var re=le.clone();return re.red=null,re},I.mont=function(le){return new ke(le)};function ke(le){Ce.call(this,le),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new I(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}x(ke,Ce),ke.prototype.convertTo=function(le){return this.imod(le.ushln(this.shift))},ke.prototype.convertFrom=function(le){var re=this.imod(le.mul(this.rinv));return re.red=null,re},ke.prototype.imul=function(le,re){if(le.isZero()||re.isZero())return le.words[0]=0,le.length=1,le;var P=le.imul(re),k=P.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),B=P.isub(k).iushrn(this.shift),z=B;return B.cmp(this.m)>=0?z=B.isub(this.m):B.cmpn(0)<0&&(z=B.iadd(this.m)),z._forceRed(this)},ke.prototype.mul=function(le,re){if(le.isZero()||re.isZero())return new I(0)._forceRed(this);var P=le.mul(re),k=P.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),B=P.isub(k).iushrn(this.shift),z=B;return B.cmp(this.m)>=0?z=B.isub(this.m):B.cmpn(0)<0&&(z=B.iadd(this.m)),z._forceRed(this)},ke.prototype.invm=function(le){var re=this.imod(le._invmp(this.m).mul(this.r2));return re._forceRed(this)}})(u,Me)})(ih);var rr=ih.exports,Z0={exports:{}},Kl;function nh(){if(Kl)return Z0.exports;Kl=1;var u;Z0.exports=function(_){return u||(u=new f(null)),u.generate(_)};function f(_){this.rand=_}if(Z0.exports.Rand=f,f.prototype.generate=function(_){return this._rand(_)},f.prototype._rand=function(_){if(this.rand.getBytes)return this.rand.getBytes(_);for(var x=new Uint8Array(_),I=0;I<x.length;I++)x[I]=this.rand.getByte();return x},typeof self=="object")self.crypto&&self.crypto.getRandomValues?f.prototype._rand=function(_){var x=new Uint8Array(_);return self.crypto.getRandomValues(x),x}:self.msCrypto&&self.msCrypto.getRandomValues?f.prototype._rand=function(_){var x=new Uint8Array(_);return self.msCrypto.getRandomValues(x),x}:typeof window=="object"&&(f.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var d=_r();if(typeof d.randomBytes!="function")throw new Error("Not supported");f.prototype._rand=function(_){return d.randomBytes(_)}}catch{}return Z0.exports}var Eo,$l;function zv(){if($l)return Eo;$l=1;var u=rr,f=nh();function d(_){this.rand=_||new f.Rand}return Eo=d,d.create=function(_){return new d(_)},d.prototype._randbelow=function(_){var x=_.bitLength(),I=Math.ceil(x/8);do var E=new u(this.rand.generate(I));while(E.cmp(_)>=0);return E},d.prototype._randrange=function(_,x){var I=x.sub(_);return _.add(this._randbelow(I))},d.prototype.test=function(_,x,I){var E=_.bitLength(),M=u.mont(_),S=new u(1).toRed(M);x||(x=Math.max(1,E/48|0));for(var A=_.subn(1),T=0;!A.testn(T);T++);for(var D=_.shrn(T),O=A.toRed(M),j=!0;x>0;x--){var $=this._randrange(new u(2),A);I&&I($);var W=$.toRed(M).redPow(D);if(!(W.cmp(S)===0||W.cmp(O)===0)){for(var Q=1;Q<T;Q++){if(W=W.redSqr(),W.cmp(S)===0)return!1;if(W.cmp(O)===0)break}if(Q===T)return!1}}return j},d.prototype.getDivisor=function(_,x){var I=_.bitLength(),E=u.mont(_),M=new u(1).toRed(E);x||(x=Math.max(1,I/48|0));for(var S=_.subn(1),A=0;!S.testn(A);A++);for(var T=_.shrn(A),D=S.toRed(E);x>0;x--){var O=this._randrange(new u(2),S),j=_.gcd(O);if(j.cmpn(1)!==0)return j;var $=O.toRed(E).redPow(T);if(!($.cmp(M)===0||$.cmp(D)===0)){for(var W=1;W<A;W++){if($=$.redSqr(),$.cmp(M)===0)return $.fromRed().subn(1).gcd(_);if($.cmp(D)===0)break}if(W===A)return $=$.redSqr(),$.fromRed().subn(1).gcd(_)}}return!1},Eo}var So,Hl;function jv(){if(Hl)return So;Hl=1;var u=Ua;So=Q,Q.simpleSieve=$,Q.fermatTest=W;var f=rr,d=new f(24),_=zv(),x=new _,I=new f(1),E=new f(2),M=new f(5);new f(16),new f(8);var S=new f(10),A=new f(3);new f(7);var T=new f(11),D=new f(4);new f(12);var O=null;function j(){if(O!==null)return O;var X=1048576,Y=[];Y[0]=2;for(var ie=1,oe=3;oe<X;oe+=2){for(var ge=Math.ceil(Math.sqrt(oe)),be=0;be<ie&&Y[be]<=ge&&oe%Y[be]!==0;be++);ie!==be&&Y[be]<=ge||(Y[ie++]=oe)}return O=Y,Y}function $(X){for(var Y=j(),ie=0;ie<Y.length;ie++)if(X.modn(Y[ie])===0)return X.cmpn(Y[ie])===0;return!0}function W(X){var Y=f.mont(X);return E.toRed(Y).redPow(X.subn(1)).fromRed().cmpn(1)===0}function Q(X,Y){if(X<16)return Y===2||Y===5?new f([140,123]):new f([140,39]);Y=new f(Y);for(var ie,oe;;){for(ie=new f(u(Math.ceil(X/8)));ie.bitLength()>X;)ie.ishrn(1);if(ie.isEven()&&ie.iadd(I),ie.testn(1)||ie.iadd(E),Y.cmp(E)){if(!Y.cmp(M))for(;ie.mod(S).cmp(A);)ie.iadd(D)}else for(;ie.mod(d).cmp(T);)ie.iadd(D);if(oe=ie.shrn(1),$(oe)&&$(ie)&&W(oe)&&W(ie)&&x.test(oe)&&x.test(ie))return ie}}return So}const s3={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},f3={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},o3={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},u3={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},c3={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},h3={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},l3={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},d3={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"},p3={modp1:s3,modp2:f3,modp5:o3,modp14:u3,modp15:c3,modp16:h3,modp17:l3,modp18:d3};var wo,Gl;function v3(){if(Gl)return wo;Gl=1;var u=rr,f=zv(),d=new f,_=new u(24),x=new u(11),I=new u(10),E=new u(3),M=new u(7),S=jv(),A=Ua;wo=$;function T(Q,X){return X=X||"utf8",pe.Buffer.isBuffer(Q)||(Q=new pe.Buffer(Q,X)),this._pub=new u(Q),this}function D(Q,X){return X=X||"utf8",pe.Buffer.isBuffer(Q)||(Q=new pe.Buffer(Q,X)),this._priv=new u(Q),this}var O={};function j(Q,X){var Y=X.toString("hex"),ie=[Y,Q.toString(16)].join("_");if(ie in O)return O[ie];var oe=0;if(Q.isEven()||!S.simpleSieve||!S.fermatTest(Q)||!d.test(Q))return oe+=1,Y==="02"||Y==="05"?oe+=8:oe+=4,O[ie]=oe,oe;d.test(Q.shrn(1))||(oe+=2);var ge;switch(Y){case"02":Q.mod(_).cmp(x)&&(oe+=8);break;case"05":ge=Q.mod(I),ge.cmp(E)&&ge.cmp(M)&&(oe+=8);break;default:oe+=4}return O[ie]=oe,oe}function $(Q,X,Y){this.setGenerator(X),this.__prime=new u(Q),this._prime=u.mont(this.__prime),this._primeLen=Q.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,Y?(this.setPublicKey=T,this.setPrivateKey=D):this._primeCode=8}Object.defineProperty($.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=j(this.__prime,this.__gen)),this._primeCode}}),$.prototype.generateKeys=function(){return this._priv||(this._priv=new u(A(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},$.prototype.computeSecret=function(Q){Q=new u(Q),Q=Q.toRed(this._prime);var X=Q.redPow(this._priv).fromRed(),Y=new pe.Buffer(X.toArray()),ie=this.getPrime();if(Y.length<ie.length){var oe=new pe.Buffer(ie.length-Y.length);oe.fill(0),Y=pe.Buffer.concat([oe,Y])}return Y},$.prototype.getPublicKey=function(Q){return W(this._pub,Q)},$.prototype.getPrivateKey=function(Q){return W(this._priv,Q)},$.prototype.getPrime=function(Q){return W(this.__prime,Q)},$.prototype.getGenerator=function(Q){return W(this._gen,Q)},$.prototype.setGenerator=function(Q,X){return X=X||"utf8",pe.Buffer.isBuffer(Q)||(Q=new pe.Buffer(Q,X)),this.__gen=Q,this._gen=new u(Q),this};function W(Q,X){var Y=new pe.Buffer(Q.toArray());return X?Y.toString(X):Y}return wo}var zl;function y3(){if(zl)return Ln;zl=1;var u=jv(),f=p3,d=v3();function _(E){var M=new pe.Buffer(f[E].prime,"hex"),S=new pe.Buffer(f[E].gen,"hex");return new d(M,S)}var x={binary:!0,hex:!0,base64:!0};function I(E,M,S,A){return pe.Buffer.isBuffer(M)||x[M]===void 0?I(E,"binary",M,S):(M=M||"binary",A=A||"binary",S=S||new pe.Buffer([2]),pe.Buffer.isBuffer(S)||(S=new pe.Buffer(S,A)),typeof E=="number"?new d(u(E,S),S,!0):(pe.Buffer.isBuffer(E)||(E=new pe.Buffer(E,M)),new d(E,S,!0)))}return Ln.DiffieHellmanGroup=Ln.createDiffieHellmanGroup=Ln.getDiffieHellman=_,Ln.createDiffieHellman=Ln.DiffieHellman=I,Ln}var u0={exports:{}},ah={exports:{}};(function(u){(function(f,d){function _(P,k){if(!P)throw new Error(k||"Assertion failed")}function x(P,k){P.super_=k;var B=function(){};B.prototype=k.prototype,P.prototype=new B,P.prototype.constructor=P}function I(P,k,B){if(I.isBN(P))return P;this.negative=0,this.words=null,this.length=0,this.red=null,P!==null&&((k==="le"||k==="be")&&(B=k,k=10),this._init(P||0,k||10,B||"be"))}typeof f=="object"?f.exports=I:d.BN=I,I.BN=I,I.wordSize=26;var E;try{typeof window<"u"&&typeof window.Buffer<"u"?E=window.Buffer:E=pe.Buffer}catch{}I.isBN=function(P){return P instanceof I?!0:P!==null&&typeof P=="object"&&P.constructor.wordSize===I.wordSize&&Array.isArray(P.words)},I.max=function(P,k){return P.cmp(k)>0?P:k},I.min=function(P,k){return P.cmp(k)<0?P:k},I.prototype._init=function(P,k,B){if(typeof P=="number")return this._initNumber(P,k,B);if(typeof P=="object")return this._initArray(P,k,B);k==="hex"&&(k=16),_(k===(k|0)&&k>=2&&k<=36),P=P.toString().replace(/\s+/g,"");var z=0;P[0]==="-"&&(z++,this.negative=1),z<P.length&&(k===16?this._parseHex(P,z,B):(this._parseBase(P,k,z),B==="le"&&this._initArray(this.toArray(),k,B)))},I.prototype._initNumber=function(P,k,B){P<0&&(this.negative=1,P=-P),P<67108864?(this.words=[P&67108863],this.length=1):P<4503599627370496?(this.words=[P&67108863,P/67108864&67108863],this.length=2):(_(P<9007199254740992),this.words=[P&67108863,P/67108864&67108863,1],this.length=3),B==="le"&&this._initArray(this.toArray(),k,B)},I.prototype._initArray=function(P,k,B){if(_(typeof P.length=="number"),P.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(P.length/3),this.words=new Array(this.length);for(var z=0;z<this.length;z++)this.words[z]=0;var ee,H,q=0;if(B==="be")for(z=P.length-1,ee=0;z>=0;z-=3)H=P[z]|P[z-1]<<8|P[z-2]<<16,this.words[ee]|=H<<q&67108863,this.words[ee+1]=H>>>26-q&67108863,q+=24,q>=26&&(q-=26,ee++);else if(B==="le")for(z=0,ee=0;z<P.length;z+=3)H=P[z]|P[z+1]<<8|P[z+2]<<16,this.words[ee]|=H<<q&67108863,this.words[ee+1]=H>>>26-q&67108863,q+=24,q>=26&&(q-=26,ee++);return this._strip()};function M(P,k){var B=P.charCodeAt(k);if(B>=48&&B<=57)return B-48;if(B>=65&&B<=70)return B-55;if(B>=97&&B<=102)return B-87;_(!1,"Invalid character in "+P)}function S(P,k,B){var z=M(P,B);return B-1>=k&&(z|=M(P,B-1)<<4),z}I.prototype._parseHex=function(P,k,B){this.length=Math.ceil((P.length-k)/6),this.words=new Array(this.length);for(var z=0;z<this.length;z++)this.words[z]=0;var ee=0,H=0,q;if(B==="be")for(z=P.length-1;z>=k;z-=2)q=S(P,k,z)<<ee,this.words[H]|=q&67108863,ee>=18?(ee-=18,H+=1,this.words[H]|=q>>>26):ee+=8;else{var J=P.length-k;for(z=J%2===0?k+1:k;z<P.length;z+=2)q=S(P,k,z)<<ee,this.words[H]|=q&67108863,ee>=18?(ee-=18,H+=1,this.words[H]|=q>>>26):ee+=8}this._strip()};function A(P,k,B,z){for(var ee=0,H=0,q=Math.min(P.length,B),J=k;J<q;J++){var U=P.charCodeAt(J)-48;ee*=z,U>=49?H=U-49+10:U>=17?H=U-17+10:H=U,_(U>=0&&H<z,"Invalid character"),ee+=H}return ee}I.prototype._parseBase=function(P,k,B){this.words=[0],this.length=1;for(var z=0,ee=1;ee<=67108863;ee*=k)z++;z--,ee=ee/k|0;for(var H=P.length-B,q=H%z,J=Math.min(H,H-q)+B,U=0,Z=B;Z<J;Z+=z)U=A(P,Z,Z+z,k),this.imuln(ee),this.words[0]+U<67108864?this.words[0]+=U:this._iaddn(U);if(q!==0){var ve=1;for(U=A(P,Z,P.length,k),Z=0;Z<q;Z++)ve*=k;this.imuln(ve),this.words[0]+U<67108864?this.words[0]+=U:this._iaddn(U)}this._strip()},I.prototype.copy=function(P){P.words=new Array(this.length);for(var k=0;k<this.length;k++)P.words[k]=this.words[k];P.length=this.length,P.negative=this.negative,P.red=this.red};function T(P,k){P.words=k.words,P.length=k.length,P.negative=k.negative,P.red=k.red}if(I.prototype._move=function(P){T(P,this)},I.prototype.clone=function(){var P=new I(null);return this.copy(P),P},I.prototype._expand=function(P){for(;this.length<P;)this.words[this.length++]=0;return this},I.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},I.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{I.prototype[Symbol.for("nodejs.util.inspect.custom")]=D}catch{I.prototype.inspect=D}else I.prototype.inspect=D;function D(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var O=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],j=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],$=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];I.prototype.toString=function(P,k){P=P||10,k=k|0||1;var B;if(P===16||P==="hex"){B="";for(var z=0,ee=0,H=0;H<this.length;H++){var q=this.words[H],J=((q<<z|ee)&16777215).toString(16);ee=q>>>24-z&16777215,z+=2,z>=26&&(z-=26,H--),ee!==0||H!==this.length-1?B=O[6-J.length]+J+B:B=J+B}for(ee!==0&&(B=ee.toString(16)+B);B.length%k!==0;)B="0"+B;return this.negative!==0&&(B="-"+B),B}if(P===(P|0)&&P>=2&&P<=36){var U=j[P],Z=$[P];B="";var ve=this.clone();for(ve.negative=0;!ve.isZero();){var Ye=ve.modrn(Z).toString(P);ve=ve.idivn(Z),ve.isZero()?B=Ye+B:B=O[U-Ye.length]+Ye+B}for(this.isZero()&&(B="0"+B);B.length%k!==0;)B="0"+B;return this.negative!==0&&(B="-"+B),B}_(!1,"Base should be between 2 and 36")},I.prototype.toNumber=function(){var P=this.words[0];return this.length===2?P+=this.words[1]*67108864:this.length===3&&this.words[2]===1?P+=4503599627370496+this.words[1]*67108864:this.length>2&&_(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-P:P},I.prototype.toJSON=function(){return this.toString(16,2)},E&&(I.prototype.toBuffer=function(P,k){return this.toArrayLike(E,P,k)}),I.prototype.toArray=function(P,k){return this.toArrayLike(Array,P,k)};var W=function(P,k){return P.allocUnsafe?P.allocUnsafe(k):new P(k)};I.prototype.toArrayLike=function(P,k,B){this._strip();var z=this.byteLength(),ee=B||Math.max(1,z);_(z<=ee,"byte array longer than desired length"),_(ee>0,"Requested array length <= 0");var H=W(P,ee),q=k==="le"?"LE":"BE";return this["_toArrayLike"+q](H,z),H},I.prototype._toArrayLikeLE=function(P,k){for(var B=0,z=0,ee=0,H=0;ee<this.length;ee++){var q=this.words[ee]<<H|z;P[B++]=q&255,B<P.length&&(P[B++]=q>>8&255),B<P.length&&(P[B++]=q>>16&255),H===6?(B<P.length&&(P[B++]=q>>24&255),z=0,H=0):(z=q>>>24,H+=2)}if(B<P.length)for(P[B++]=z;B<P.length;)P[B++]=0},I.prototype._toArrayLikeBE=function(P,k){for(var B=P.length-1,z=0,ee=0,H=0;ee<this.length;ee++){var q=this.words[ee]<<H|z;P[B--]=q&255,B>=0&&(P[B--]=q>>8&255),B>=0&&(P[B--]=q>>16&255),H===6?(B>=0&&(P[B--]=q>>24&255),z=0,H=0):(z=q>>>24,H+=2)}if(B>=0)for(P[B--]=z;B>=0;)P[B--]=0},Math.clz32?I.prototype._countBits=function(P){return 32-Math.clz32(P)}:I.prototype._countBits=function(P){var k=P,B=0;return k>=4096&&(B+=13,k>>>=13),k>=64&&(B+=7,k>>>=7),k>=8&&(B+=4,k>>>=4),k>=2&&(B+=2,k>>>=2),B+k},I.prototype._zeroBits=function(P){if(P===0)return 26;var k=P,B=0;return k&8191||(B+=13,k>>>=13),k&127||(B+=7,k>>>=7),k&15||(B+=4,k>>>=4),k&3||(B+=2,k>>>=2),k&1||B++,B},I.prototype.bitLength=function(){var P=this.words[this.length-1],k=this._countBits(P);return(this.length-1)*26+k};function Q(P){for(var k=new Array(P.bitLength()),B=0;B<k.length;B++){var z=B/26|0,ee=B%26;k[B]=P.words[z]>>>ee&1}return k}I.prototype.zeroBits=function(){if(this.isZero())return 0;for(var P=0,k=0;k<this.length;k++){var B=this._zeroBits(this.words[k]);if(P+=B,B!==26)break}return P},I.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},I.prototype.toTwos=function(P){return this.negative!==0?this.abs().inotn(P).iaddn(1):this.clone()},I.prototype.fromTwos=function(P){return this.testn(P-1)?this.notn(P).iaddn(1).ineg():this.clone()},I.prototype.isNeg=function(){return this.negative!==0},I.prototype.neg=function(){return this.clone().ineg()},I.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},I.prototype.iuor=function(P){for(;this.length<P.length;)this.words[this.length++]=0;for(var k=0;k<P.length;k++)this.words[k]=this.words[k]|P.words[k];return this._strip()},I.prototype.ior=function(P){return _((this.negative|P.negative)===0),this.iuor(P)},I.prototype.or=function(P){return this.length>P.length?this.clone().ior(P):P.clone().ior(this)},I.prototype.uor=function(P){return this.length>P.length?this.clone().iuor(P):P.clone().iuor(this)},I.prototype.iuand=function(P){var k;this.length>P.length?k=P:k=this;for(var B=0;B<k.length;B++)this.words[B]=this.words[B]&P.words[B];return this.length=k.length,this._strip()},I.prototype.iand=function(P){return _((this.negative|P.negative)===0),this.iuand(P)},I.prototype.and=function(P){return this.length>P.length?this.clone().iand(P):P.clone().iand(this)},I.prototype.uand=function(P){return this.length>P.length?this.clone().iuand(P):P.clone().iuand(this)},I.prototype.iuxor=function(P){var k,B;this.length>P.length?(k=this,B=P):(k=P,B=this);for(var z=0;z<B.length;z++)this.words[z]=k.words[z]^B.words[z];if(this!==k)for(;z<k.length;z++)this.words[z]=k.words[z];return this.length=k.length,this._strip()},I.prototype.ixor=function(P){return _((this.negative|P.negative)===0),this.iuxor(P)},I.prototype.xor=function(P){return this.length>P.length?this.clone().ixor(P):P.clone().ixor(this)},I.prototype.uxor=function(P){return this.length>P.length?this.clone().iuxor(P):P.clone().iuxor(this)},I.prototype.inotn=function(P){_(typeof P=="number"&&P>=0);var k=Math.ceil(P/26)|0,B=P%26;this._expand(k),B>0&&k--;for(var z=0;z<k;z++)this.words[z]=~this.words[z]&67108863;return B>0&&(this.words[z]=~this.words[z]&67108863>>26-B),this._strip()},I.prototype.notn=function(P){return this.clone().inotn(P)},I.prototype.setn=function(P,k){_(typeof P=="number"&&P>=0);var B=P/26|0,z=P%26;return this._expand(B+1),k?this.words[B]=this.words[B]|1<<z:this.words[B]=this.words[B]&~(1<<z),this._strip()},I.prototype.iadd=function(P){var k;if(this.negative!==0&&P.negative===0)return this.negative=0,k=this.isub(P),this.negative^=1,this._normSign();if(this.negative===0&&P.negative!==0)return P.negative=0,k=this.isub(P),P.negative=1,k._normSign();var B,z;this.length>P.length?(B=this,z=P):(B=P,z=this);for(var ee=0,H=0;H<z.length;H++)k=(B.words[H]|0)+(z.words[H]|0)+ee,this.words[H]=k&67108863,ee=k>>>26;for(;ee!==0&&H<B.length;H++)k=(B.words[H]|0)+ee,this.words[H]=k&67108863,ee=k>>>26;if(this.length=B.length,ee!==0)this.words[this.length]=ee,this.length++;else if(B!==this)for(;H<B.length;H++)this.words[H]=B.words[H];return this},I.prototype.add=function(P){var k;return P.negative!==0&&this.negative===0?(P.negative=0,k=this.sub(P),P.negative^=1,k):P.negative===0&&this.negative!==0?(this.negative=0,k=P.sub(this),this.negative=1,k):this.length>P.length?this.clone().iadd(P):P.clone().iadd(this)},I.prototype.isub=function(P){if(P.negative!==0){P.negative=0;var k=this.iadd(P);return P.negative=1,k._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(P),this.negative=1,this._normSign();var B=this.cmp(P);if(B===0)return this.negative=0,this.length=1,this.words[0]=0,this;var z,ee;B>0?(z=this,ee=P):(z=P,ee=this);for(var H=0,q=0;q<ee.length;q++)k=(z.words[q]|0)-(ee.words[q]|0)+H,H=k>>26,this.words[q]=k&67108863;for(;H!==0&&q<z.length;q++)k=(z.words[q]|0)+H,H=k>>26,this.words[q]=k&67108863;if(H===0&&q<z.length&&z!==this)for(;q<z.length;q++)this.words[q]=z.words[q];return this.length=Math.max(this.length,q),z!==this&&(this.negative=1),this._strip()},I.prototype.sub=function(P){return this.clone().isub(P)};function X(P,k,B){B.negative=k.negative^P.negative;var z=P.length+k.length|0;B.length=z,z=z-1|0;var ee=P.words[0]|0,H=k.words[0]|0,q=ee*H,J=q&67108863,U=q/67108864|0;B.words[0]=J;for(var Z=1;Z<z;Z++){for(var ve=U>>>26,Ye=U&67108863,rt=Math.min(Z,k.length-1),Ue=Math.max(0,Z-P.length+1);Ue<=rt;Ue++){var Qe=Z-Ue|0;ee=P.words[Qe]|0,H=k.words[Ue]|0,q=ee*H+Ye,ve+=q/67108864|0,Ye=q&67108863}B.words[Z]=Ye|0,U=ve|0}return U!==0?B.words[Z]=U|0:B.length--,B._strip()}var Y=function(P,k,B){var z=P.words,ee=k.words,H=B.words,q=0,J,U,Z,ve=z[0]|0,Ye=ve&8191,rt=ve>>>13,Ue=z[1]|0,Qe=Ue&8191,vt=Ue>>>13,ri=z[2]|0,ci=ri&8191,tt=ri>>>13,et=z[3]|0,$e=et&8191,Le=et>>>13,ot=z[4]|0,Oe=ot&8191,Ne=ot>>>13,Fe=z[5]|0,Je=Fe&8191,Dt=Fe>>>13,oi=z[6]|0,Bt=oi&8191,li=oi>>>13,ii=z[7]|0,Ot=ii&8191,St=ii>>>13,pi=z[8]|0,eM=pi&8191,hi=pi>>>13,mi=z[9]|0,Dn=mi&8191,tM=mi>>>13,oM=ee[0]|0,vM=oM&8191,dM=oM>>>13,hM=ee[1]|0,_M=hM&8191,uM=hM>>>13,pM=ee[2]|0,yM=pM&8191,gM=pM>>>13,fM=ee[3]|0,kM=fM&8191,IM=fM>>>13,DM=ee[4]|0,$M=DM&8191,TM=DM>>>13,OM=ee[5]|0,UM=OM&8191,AM=OM>>>13,RM=ee[6]|0,FM=RM&8191,xM=RM>>>13,BM=ee[7]|0,WM=BM&8191,SM=BM>>>13,jM=ee[8]|0,YM=jM&8191,PM=jM>>>13,VM=ee[9]|0,HM=VM&8191,zM=VM>>>13;B.negative=P.negative^k.negative,B.length=19,J=Math.imul(Ye,vM),U=Math.imul(Ye,dM),U=U+Math.imul(rt,vM)|0,Z=Math.imul(rt,dM);var KM=(q+J|0)+((U&8191)<<13)|0;q=(Z+(U>>>13)|0)+(KM>>>26)|0,KM&=67108863,J=Math.imul(Qe,vM),U=Math.imul(Qe,dM),U=U+Math.imul(vt,vM)|0,Z=Math.imul(vt,dM),J=J+Math.imul(Ye,_M)|0,U=U+Math.imul(Ye,uM)|0,U=U+Math.imul(rt,_M)|0,Z=Z+Math.imul(rt,uM)|0;var rN=(q+J|0)+((U&8191)<<13)|0;q=(Z+(U>>>13)|0)+(rN>>>26)|0,rN&=67108863,J=Math.imul(ci,vM),U=Math.imul(ci,dM),U=U+Math.imul(tt,vM)|0,Z=Math.imul(tt,dM),J=J+Math.imul(Qe,_M)|0,U=U+Math.imul(Qe,uM)|0,U=U+Math.imul(vt,_M)|0,Z=Z+Math.imul(vt,uM)|0,J=J+Math.imul(Ye,yM)|0,U=U+Math.imul(Ye,gM)|0,U=U+Math.imul(rt,yM)|0,Z=Z+Math.imul(rt,gM)|0;var eN=(q+J|0)+((U&8191)<<13)|0;q=(Z+(U>>>13)|0)+(eN>>>26)|0,eN&=67108863,J=Math.imul($e,vM),U=Math.imul($e,dM),U=U+Math.imul(Le,vM)|0,Z=Math.imul(Le,dM),J=J+Math.imul(ci,_M)|0,U=U+Math.imul(ci,uM)|0,U=U+Math.imul(tt,_M)|0,Z=Z+Math.imul(tt,uM)|0,J=J+Math.imul(Qe,yM)|0,U=U+Math.imul(Qe,gM)|0,U=U+Math.imul(vt,yM)|0,Z=Z+Math.imul(vt,gM)|0,J=J+Math.imul(Ye,kM)|0,U=U+Math.imul(Ye,IM)|0,U=U+Math.imul(rt,kM)|0,Z=Z+Math.imul(rt,IM)|0;var iN=(q+J|0)+((U&8191)<<13)|0;q=(Z+(U>>>13)|0)+(iN>>>26)|0,iN&=67108863,J=Math.imul(Oe,vM),U=Math.imul(Oe,dM),U=U+Math.imul(Ne,vM)|0,Z=Math.imul(Ne,dM),J=J+Math.imul($e,_M)|0,U=U+Math.imul($e,uM)|0,U=U+Math.imul(Le,_M)|0,Z=Z+Math.imul(Le,uM)|0,J=J+Math.imul(ci,yM)|0,U=U+Math.imul(ci,gM)|0,U=U+Math.imul(tt,yM)|0,Z=Z+Math.imul(tt,gM)|0,J=J+Math.imul(Qe,kM)|0,U=U+Math.imul(Qe,IM)|0,U=U+Math.imul(vt,kM)|0,Z=Z+Math.imul(vt,IM)|0,J=J+Math.imul(Ye,$M)|0,U=U+Math.imul(Ye,TM)|0,U=U+Math.imul(rt,$M)|0,Z=Z+Math.imul(rt,TM)|0;var ai=(q+J|0)+((U&8191)<<13)|0;q=(Z+(U>>>13)|0)+(ai>>>26)|0,ai&=67108863,J=Math.imul(Je,vM),U=Math.imul(Je,dM),U=U+Math.imul(Dt,vM)|0,Z=Math.imul(Dt,dM),J=J+Math.imul(Oe,_M)|0,U=U+Math.imul(Oe,uM)|0,U=U+Math.imul(Ne,_M)|0,Z=Z+Math.imul(Ne,uM)|0,J=J+Math.imul($e,yM)|0,U=U+Math.imul($e,gM)|0,U=U+Math.imul(Le,yM)|0,Z=Z+Math.imul(Le,gM)|0,J=J+Math.imul(ci,kM)|0,U=U+Math.imul(ci,IM)|0,U=U+Math.imul(tt,kM)|0,Z=Z+Math.imul(tt,IM)|0,J=J+Math.imul(Qe,$M)|0,U=U+Math.imul(Qe,TM)|0,U=U+Math.imul(vt,$M)|0,Z=Z+Math.imul(vt,TM)|0,J=J+Math.imul(Ye,UM)|0,U=U+Math.imul(Ye,AM)|0,U=U+Math.imul(rt,UM)|0,Z=Z+Math.imul(rt,AM)|0;var C=(q+J|0)+((U&8191)<<13)|0;q=(Z+(U>>>13)|0)+(C>>>26)|0,C&=67108863,J=Math.imul(Bt,vM),U=Math.imul(Bt,dM),U=U+Math.imul(li,vM)|0,Z=Math.imul(li,dM),J=J+Math.imul(Je,_M)|0,U=U+Math.imul(Je,uM)|0,U=U+Math.imul(Dt,_M)|0,Z=Z+Math.imul(Dt,uM)|0,J=J+Math.imul(Oe,yM)|0,U=U+Math.imul(Oe,gM)|0,U=U+Math.imul(Ne,yM)|0,Z=Z+Math.imul(Ne,gM)|0,J=J+Math.imul($e,kM)|0,U=U+Math.imul($e,IM)|0,U=U+Math.imul(Le,kM)|0,Z=Z+Math.imul(Le,IM)|0,J=J+Math.imul(ci,$M)|0,U=U+Math.imul(ci,TM)|0,U=U+Math.imul(tt,$M)|0,Z=Z+Math.imul(tt,TM)|0,J=J+Math.imul(Qe,UM)|0,U=U+Math.imul(Qe,AM)|0,U=U+Math.imul(vt,UM)|0,Z=Z+Math.imul(vt,AM)|0,J=J+Math.imul(Ye,FM)|0,U=U+Math.imul(Ye,xM)|0,U=U+Math.imul(rt,FM)|0,Z=Z+Math.imul(rt,xM)|0;var L=(q+J|0)+((U&8191)<<13)|0;q=(Z+(U>>>13)|0)+(L>>>26)|0,L&=67108863,J=Math.imul(Ot,vM),U=Math.imul(Ot,dM),U=U+Math.imul(St,vM)|0,Z=Math.imul(St,dM),J=J+Math.imul(Bt,_M)|0,U=U+Math.imul(Bt,uM)|0,U=U+Math.imul(li,_M)|0,Z=Z+Math.imul(li,uM)|0,J=J+Math.imul(Je,yM)|0,U=U+Math.imul(Je,gM)|0,U=U+Math.imul(Dt,yM)|0,Z=Z+Math.imul(Dt,gM)|0,J=J+Math.imul(Oe,kM)|0,U=U+Math.imul(Oe,IM)|0,U=U+Math.imul(Ne,kM)|0,Z=Z+Math.imul(Ne,IM)|0,J=J+Math.imul($e,$M)|0,U=U+Math.imul($e,TM)|0,U=U+Math.imul(Le,$M)|0,Z=Z+Math.imul(Le,TM)|0,J=J+Math.imul(ci,UM)|0,U=U+Math.imul(ci,AM)|0,U=U+Math.imul(tt,UM)|0,Z=Z+Math.imul(tt,AM)|0,J=J+Math.imul(Qe,FM)|0,U=U+Math.imul(Qe,xM)|0,U=U+Math.imul(vt,FM)|0,Z=Z+Math.imul(vt,xM)|0,J=J+Math.imul(Ye,WM)|0,U=U+Math.imul(Ye,SM)|0,U=U+Math.imul(rt,WM)|0,Z=Z+Math.imul(rt,SM)|0;var F=(q+J|0)+((U&8191)<<13)|0;q=(Z+(U>>>13)|0)+(F>>>26)|0,F&=67108863,J=Math.imul(eM,vM),U=Math.imul(eM,dM),U=U+Math.imul(hi,vM)|0,Z=Math.imul(hi,dM),J=J+Math.imul(Ot,_M)|0,U=U+Math.imul(Ot,uM)|0,U=U+Math.imul(St,_M)|0,Z=Z+Math.imul(St,uM)|0,J=J+Math.imul(Bt,yM)|0,U=U+Math.imul(Bt,gM)|0,U=U+Math.imul(li,yM)|0,Z=Z+Math.imul(li,gM)|0,J=J+Math.imul(Je,kM)|0,U=U+Math.imul(Je,IM)|0,U=U+Math.imul(Dt,kM)|0,Z=Z+Math.imul(Dt,IM)|0,J=J+Math.imul(Oe,$M)|0,U=U+Math.imul(Oe,TM)|0,U=U+Math.imul(Ne,$M)|0,Z=Z+Math.imul(Ne,TM)|0,J=J+Math.imul($e,UM)|0,U=U+Math.imul($e,AM)|0,U=U+Math.imul(Le,UM)|0,Z=Z+Math.imul(Le,AM)|0,J=J+Math.imul(ci,FM)|0,U=U+Math.imul(ci,xM)|0,U=U+Math.imul(tt,FM)|0,Z=Z+Math.imul(tt,xM)|0,J=J+Math.imul(Qe,WM)|0,U=U+Math.imul(Qe,SM)|0,U=U+Math.imul(vt,WM)|0,Z=Z+Math.imul(vt,SM)|0,J=J+Math.imul(Ye,YM)|0,U=U+Math.imul(Ye,PM)|0,U=U+Math.imul(rt,YM)|0,Z=Z+Math.imul(rt,PM)|0;var ne=(q+J|0)+((U&8191)<<13)|0;q=(Z+(U>>>13)|0)+(ne>>>26)|0,ne&=67108863,J=Math.imul(Dn,vM),U=Math.imul(Dn,dM),U=U+Math.imul(tM,vM)|0,Z=Math.imul(tM,dM),J=J+Math.imul(eM,_M)|0,U=U+Math.imul(eM,uM)|0,U=U+Math.imul(hi,_M)|0,Z=Z+Math.imul(hi,uM)|0,J=J+Math.imul(Ot,yM)|0,U=U+Math.imul(Ot,gM)|0,U=U+Math.imul(St,yM)|0,Z=Z+Math.imul(St,gM)|0,J=J+Math.imul(Bt,kM)|0,U=U+Math.imul(Bt,IM)|0,U=U+Math.imul(li,kM)|0,Z=Z+Math.imul(li,IM)|0,J=J+Math.imul(Je,$M)|0,U=U+Math.imul(Je,TM)|0,U=U+Math.imul(Dt,$M)|0,Z=Z+Math.imul(Dt,TM)|0,J=J+Math.imul(Oe,UM)|0,U=U+Math.imul(Oe,AM)|0,U=U+Math.imul(Ne,UM)|0,Z=Z+Math.imul(Ne,AM)|0,J=J+Math.imul($e,FM)|0,U=U+Math.imul($e,xM)|0,U=U+Math.imul(Le,FM)|0,Z=Z+Math.imul(Le,xM)|0,J=J+Math.imul(ci,WM)|0,U=U+Math.imul(ci,SM)|0,U=U+Math.imul(tt,WM)|0,Z=Z+Math.imul(tt,SM)|0,J=J+Math.imul(Qe,YM)|0,U=U+Math.imul(Qe,PM)|0,U=U+Math.imul(vt,YM)|0,Z=Z+Math.imul(vt,PM)|0,J=J+Math.imul(Ye,HM)|0,U=U+Math.imul(Ye,zM)|0,U=U+Math.imul(rt,HM)|0,Z=Z+Math.imul(rt,zM)|0;var ue=(q+J|0)+((U&8191)<<13)|0;q=(Z+(U>>>13)|0)+(ue>>>26)|0,ue&=67108863,J=Math.imul(Dn,_M),U=Math.imul(Dn,uM),U=U+Math.imul(tM,_M)|0,Z=Math.imul(tM,uM),J=J+Math.imul(eM,yM)|0,U=U+Math.imul(eM,gM)|0,U=U+Math.imul(hi,yM)|0,Z=Z+Math.imul(hi,gM)|0,J=J+Math.imul(Ot,kM)|0,U=U+Math.imul(Ot,IM)|0,U=U+Math.imul(St,kM)|0,Z=Z+Math.imul(St,IM)|0,J=J+Math.imul(Bt,$M)|0,U=U+Math.imul(Bt,TM)|0,U=U+Math.imul(li,$M)|0,Z=Z+Math.imul(li,TM)|0,J=J+Math.imul(Je,UM)|0,U=U+Math.imul(Je,AM)|0,U=U+Math.imul(Dt,UM)|0,Z=Z+Math.imul(Dt,AM)|0,J=J+Math.imul(Oe,FM)|0,U=U+Math.imul(Oe,xM)|0,U=U+Math.imul(Ne,FM)|0,Z=Z+Math.imul(Ne,xM)|0,J=J+Math.imul($e,WM)|0,U=U+Math.imul($e,SM)|0,U=U+Math.imul(Le,WM)|0,Z=Z+Math.imul(Le,SM)|0,J=J+Math.imul(ci,YM)|0,U=U+Math.imul(ci,PM)|0,U=U+Math.imul(tt,YM)|0,Z=Z+Math.imul(tt,PM)|0,J=J+Math.imul(Qe,HM)|0,U=U+Math.imul(Qe,zM)|0,U=U+Math.imul(vt,HM)|0,Z=Z+Math.imul(vt,zM)|0;var fe=(q+J|0)+((U&8191)<<13)|0;q=(Z+(U>>>13)|0)+(fe>>>26)|0,fe&=67108863,J=Math.imul(Dn,yM),U=Math.imul(Dn,gM),U=U+Math.imul(tM,yM)|0,Z=Math.imul(tM,gM),J=J+Math.imul(eM,kM)|0,U=U+Math.imul(eM,IM)|0,U=U+Math.imul(hi,kM)|0,Z=Z+Math.imul(hi,IM)|0,J=J+Math.imul(Ot,$M)|0,U=U+Math.imul(Ot,TM)|0,U=U+Math.imul(St,$M)|0,Z=Z+Math.imul(St,TM)|0,J=J+Math.imul(Bt,UM)|0,U=U+Math.imul(Bt,AM)|0,U=U+Math.imul(li,UM)|0,Z=Z+Math.imul(li,AM)|0,J=J+Math.imul(Je,FM)|0,U=U+Math.imul(Je,xM)|0,U=U+Math.imul(Dt,FM)|0,Z=Z+Math.imul(Dt,xM)|0,J=J+Math.imul(Oe,WM)|0,U=U+Math.imul(Oe,SM)|0,U=U+Math.imul(Ne,WM)|0,Z=Z+Math.imul(Ne,SM)|0,J=J+Math.imul($e,YM)|0,U=U+Math.imul($e,PM)|0,U=U+Math.imul(Le,YM)|0,Z=Z+Math.imul(Le,PM)|0,J=J+Math.imul(ci,HM)|0,U=U+Math.imul(ci,zM)|0,U=U+Math.imul(tt,HM)|0,Z=Z+Math.imul(tt,zM)|0;var me=(q+J|0)+((U&8191)<<13)|0;q=(Z+(U>>>13)|0)+(me>>>26)|0,me&=67108863,J=Math.imul(Dn,kM),U=Math.imul(Dn,IM),U=U+Math.imul(tM,kM)|0,Z=Math.imul(tM,IM),J=J+Math.imul(eM,$M)|0,U=U+Math.imul(eM,TM)|0,U=U+Math.imul(hi,$M)|0,Z=Z+Math.imul(hi,TM)|0,J=J+Math.imul(Ot,UM)|0,U=U+Math.imul(Ot,AM)|0,U=U+Math.imul(St,UM)|0,Z=Z+Math.imul(St,AM)|0,J=J+Math.imul(Bt,FM)|0,U=U+Math.imul(Bt,xM)|0,U=U+Math.imul(li,FM)|0,Z=Z+Math.imul(li,xM)|0,J=J+Math.imul(Je,WM)|0,U=U+Math.imul(Je,SM)|0,U=U+Math.imul(Dt,WM)|0,Z=Z+Math.imul(Dt,SM)|0,J=J+Math.imul(Oe,YM)|0,U=U+Math.imul(Oe,PM)|0,U=U+Math.imul(Ne,YM)|0,Z=Z+Math.imul(Ne,PM)|0,J=J+Math.imul($e,HM)|0,U=U+Math.imul($e,zM)|0,U=U+Math.imul(Le,HM)|0,Z=Z+Math.imul(Le,zM)|0;var Pe=(q+J|0)+((U&8191)<<13)|0;q=(Z+(U>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,J=Math.imul(Dn,$M),U=Math.imul(Dn,TM),U=U+Math.imul(tM,$M)|0,Z=Math.imul(tM,TM),J=J+Math.imul(eM,UM)|0,U=U+Math.imul(eM,AM)|0,U=U+Math.imul(hi,UM)|0,Z=Z+Math.imul(hi,AM)|0,J=J+Math.imul(Ot,FM)|0,U=U+Math.imul(Ot,xM)|0,U=U+Math.imul(St,FM)|0,Z=Z+Math.imul(St,xM)|0,J=J+Math.imul(Bt,WM)|0,U=U+Math.imul(Bt,SM)|0,U=U+Math.imul(li,WM)|0,Z=Z+Math.imul(li,SM)|0,J=J+Math.imul(Je,YM)|0,U=U+Math.imul(Je,PM)|0,U=U+Math.imul(Dt,YM)|0,Z=Z+Math.imul(Dt,PM)|0,J=J+Math.imul(Oe,HM)|0,U=U+Math.imul(Oe,zM)|0,U=U+Math.imul(Ne,HM)|0,Z=Z+Math.imul(Ne,zM)|0;var Re=(q+J|0)+((U&8191)<<13)|0;q=(Z+(U>>>13)|0)+(Re>>>26)|0,Re&=67108863,J=Math.imul(Dn,UM),U=Math.imul(Dn,AM),U=U+Math.imul(tM,UM)|0,Z=Math.imul(tM,AM),J=J+Math.imul(eM,FM)|0,U=U+Math.imul(eM,xM)|0,U=U+Math.imul(hi,FM)|0,Z=Z+Math.imul(hi,xM)|0,J=J+Math.imul(Ot,WM)|0,U=U+Math.imul(Ot,SM)|0,U=U+Math.imul(St,WM)|0,Z=Z+Math.imul(St,SM)|0,J=J+Math.imul(Bt,YM)|0,U=U+Math.imul(Bt,PM)|0,U=U+Math.imul(li,YM)|0,Z=Z+Math.imul(li,PM)|0,J=J+Math.imul(Je,HM)|0,U=U+Math.imul(Je,zM)|0,U=U+Math.imul(Dt,HM)|0,Z=Z+Math.imul(Dt,zM)|0;var Xe=(q+J|0)+((U&8191)<<13)|0;q=(Z+(U>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,J=Math.imul(Dn,FM),U=Math.imul(Dn,xM),U=U+Math.imul(tM,FM)|0,Z=Math.imul(tM,xM),J=J+Math.imul(eM,WM)|0,U=U+Math.imul(eM,SM)|0,U=U+Math.imul(hi,WM)|0,Z=Z+Math.imul(hi,SM)|0,J=J+Math.imul(Ot,YM)|0,U=U+Math.imul(Ot,PM)|0,U=U+Math.imul(St,YM)|0,Z=Z+Math.imul(St,PM)|0,J=J+Math.imul(Bt,HM)|0,U=U+Math.imul(Bt,zM)|0,U=U+Math.imul(li,HM)|0,Z=Z+Math.imul(li,zM)|0;var qe=(q+J|0)+((U&8191)<<13)|0;q=(Z+(U>>>13)|0)+(qe>>>26)|0,qe&=67108863,J=Math.imul(Dn,WM),U=Math.imul(Dn,SM),U=U+Math.imul(tM,WM)|0,Z=Math.imul(tM,SM),J=J+Math.imul(eM,YM)|0,U=U+Math.imul(eM,PM)|0,U=U+Math.imul(hi,YM)|0,Z=Z+Math.imul(hi,PM)|0,J=J+Math.imul(Ot,HM)|0,U=U+Math.imul(Ot,zM)|0,U=U+Math.imul(St,HM)|0,Z=Z+Math.imul(St,zM)|0;var Ke=(q+J|0)+((U&8191)<<13)|0;q=(Z+(U>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,J=Math.imul(Dn,YM),U=Math.imul(Dn,PM),U=U+Math.imul(tM,YM)|0,Z=Math.imul(tM,PM),J=J+Math.imul(eM,HM)|0,U=U+Math.imul(eM,zM)|0,U=U+Math.imul(hi,HM)|0,Z=Z+Math.imul(hi,zM)|0;var nt=(q+J|0)+((U&8191)<<13)|0;q=(Z+(U>>>13)|0)+(nt>>>26)|0,nt&=67108863,J=Math.imul(Dn,HM),U=Math.imul(Dn,zM),U=U+Math.imul(tM,HM)|0,Z=Math.imul(tM,zM);var It=(q+J|0)+((U&8191)<<13)|0;return q=(Z+(U>>>13)|0)+(It>>>26)|0,It&=67108863,H[0]=KM,H[1]=rN,H[2]=eN,H[3]=iN,H[4]=ai,H[5]=C,H[6]=L,H[7]=F,H[8]=ne,H[9]=ue,H[10]=fe,H[11]=me,H[12]=Pe,H[13]=Re,H[14]=Xe,H[15]=qe,H[16]=Ke,H[17]=nt,H[18]=It,q!==0&&(H[19]=q,B.length++),B};Math.imul||(Y=X);function ie(P,k,B){B.negative=k.negative^P.negative,B.length=P.length+k.length;for(var z=0,ee=0,H=0;H<B.length-1;H++){var q=ee;ee=0;for(var J=z&67108863,U=Math.min(H,k.length-1),Z=Math.max(0,H-P.length+1);Z<=U;Z++){var ve=H-Z,Ye=P.words[ve]|0,rt=k.words[Z]|0,Ue=Ye*rt,Qe=Ue&67108863;q=q+(Ue/67108864|0)|0,Qe=Qe+J|0,J=Qe&67108863,q=q+(Qe>>>26)|0,ee+=q>>>26,q&=67108863}B.words[H]=J,z=q,q=ee}return z!==0?B.words[H]=z:B.length--,B._strip()}function oe(P,k,B){return ie(P,k,B)}I.prototype.mulTo=function(P,k){var B,z=this.length+P.length;return this.length===10&&P.length===10?B=Y(this,P,k):z<63?B=X(this,P,k):z<1024?B=ie(this,P,k):B=oe(this,P,k),B},I.prototype.mul=function(P){var k=new I(null);return k.words=new Array(this.length+P.length),this.mulTo(P,k)},I.prototype.mulf=function(P){var k=new I(null);return k.words=new Array(this.length+P.length),oe(this,P,k)},I.prototype.imul=function(P){return this.clone().mulTo(P,this)},I.prototype.imuln=function(P){var k=P<0;k&&(P=-P),_(typeof P=="number"),_(P<67108864);for(var B=0,z=0;z<this.length;z++){var ee=(this.words[z]|0)*P,H=(ee&67108863)+(B&67108863);B>>=26,B+=ee/67108864|0,B+=H>>>26,this.words[z]=H&67108863}return B!==0&&(this.words[z]=B,this.length++),k?this.ineg():this},I.prototype.muln=function(P){return this.clone().imuln(P)},I.prototype.sqr=function(){return this.mul(this)},I.prototype.isqr=function(){return this.imul(this.clone())},I.prototype.pow=function(P){var k=Q(P);if(k.length===0)return new I(1);for(var B=this,z=0;z<k.length&&k[z]===0;z++,B=B.sqr());if(++z<k.length)for(var ee=B.sqr();z<k.length;z++,ee=ee.sqr())k[z]!==0&&(B=B.mul(ee));return B},I.prototype.iushln=function(P){_(typeof P=="number"&&P>=0);var k=P%26,B=(P-k)/26,z=67108863>>>26-k<<26-k,ee;if(k!==0){var H=0;for(ee=0;ee<this.length;ee++){var q=this.words[ee]&z,J=(this.words[ee]|0)-q<<k;this.words[ee]=J|H,H=q>>>26-k}H&&(this.words[ee]=H,this.length++)}if(B!==0){for(ee=this.length-1;ee>=0;ee--)this.words[ee+B]=this.words[ee];for(ee=0;ee<B;ee++)this.words[ee]=0;this.length+=B}return this._strip()},I.prototype.ishln=function(P){return _(this.negative===0),this.iushln(P)},I.prototype.iushrn=function(P,k,B){_(typeof P=="number"&&P>=0);var z;k?z=(k-k%26)/26:z=0;var ee=P%26,H=Math.min((P-ee)/26,this.length),q=67108863^67108863>>>ee<<ee,J=B;if(z-=H,z=Math.max(0,z),J){for(var U=0;U<H;U++)J.words[U]=this.words[U];J.length=H}if(H!==0)if(this.length>H)for(this.length-=H,U=0;U<this.length;U++)this.words[U]=this.words[U+H];else this.words[0]=0,this.length=1;var Z=0;for(U=this.length-1;U>=0&&(Z!==0||U>=z);U--){var ve=this.words[U]|0;this.words[U]=Z<<26-ee|ve>>>ee,Z=ve&q}return J&&Z!==0&&(J.words[J.length++]=Z),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},I.prototype.ishrn=function(P,k,B){return _(this.negative===0),this.iushrn(P,k,B)},I.prototype.shln=function(P){return this.clone().ishln(P)},I.prototype.ushln=function(P){return this.clone().iushln(P)},I.prototype.shrn=function(P){return this.clone().ishrn(P)},I.prototype.ushrn=function(P){return this.clone().iushrn(P)},I.prototype.testn=function(P){_(typeof P=="number"&&P>=0);var k=P%26,B=(P-k)/26,z=1<<k;if(this.length<=B)return!1;var ee=this.words[B];return!!(ee&z)},I.prototype.imaskn=function(P){_(typeof P=="number"&&P>=0);var k=P%26,B=(P-k)/26;if(_(this.negative===0,"imaskn works only with positive numbers"),this.length<=B)return this;if(k!==0&&B++,this.length=Math.min(B,this.length),k!==0){var z=67108863^67108863>>>k<<k;this.words[this.length-1]&=z}return this._strip()},I.prototype.maskn=function(P){return this.clone().imaskn(P)},I.prototype.iaddn=function(P){return _(typeof P=="number"),_(P<67108864),P<0?this.isubn(-P):this.negative!==0?this.length===1&&(this.words[0]|0)<=P?(this.words[0]=P-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(P),this.negative=1,this):this._iaddn(P)},I.prototype._iaddn=function(P){this.words[0]+=P;for(var k=0;k<this.length&&this.words[k]>=67108864;k++)this.words[k]-=67108864,k===this.length-1?this.words[k+1]=1:this.words[k+1]++;return this.length=Math.max(this.length,k+1),this},I.prototype.isubn=function(P){if(_(typeof P=="number"),_(P<67108864),P<0)return this.iaddn(-P);if(this.negative!==0)return this.negative=0,this.iaddn(P),this.negative=1,this;if(this.words[0]-=P,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var k=0;k<this.length&&this.words[k]<0;k++)this.words[k]+=67108864,this.words[k+1]-=1;return this._strip()},I.prototype.addn=function(P){return this.clone().iaddn(P)},I.prototype.subn=function(P){return this.clone().isubn(P)},I.prototype.iabs=function(){return this.negative=0,this},I.prototype.abs=function(){return this.clone().iabs()},I.prototype._ishlnsubmul=function(P,k,B){var z=P.length+B,ee;this._expand(z);var H,q=0;for(ee=0;ee<P.length;ee++){H=(this.words[ee+B]|0)+q;var J=(P.words[ee]|0)*k;H-=J&67108863,q=(H>>26)-(J/67108864|0),this.words[ee+B]=H&67108863}for(;ee<this.length-B;ee++)H=(this.words[ee+B]|0)+q,q=H>>26,this.words[ee+B]=H&67108863;if(q===0)return this._strip();for(_(q===-1),q=0,ee=0;ee<this.length;ee++)H=-(this.words[ee]|0)+q,q=H>>26,this.words[ee]=H&67108863;return this.negative=1,this._strip()},I.prototype._wordDiv=function(P,k){var B=this.length-P.length,z=this.clone(),ee=P,H=ee.words[ee.length-1]|0,q=this._countBits(H);B=26-q,B!==0&&(ee=ee.ushln(B),z.iushln(B),H=ee.words[ee.length-1]|0);var J=z.length-ee.length,U;if(k!=="mod"){U=new I(null),U.length=J+1,U.words=new Array(U.length);for(var Z=0;Z<U.length;Z++)U.words[Z]=0}var ve=z.clone()._ishlnsubmul(ee,1,J);ve.negative===0&&(z=ve,U&&(U.words[J]=1));for(var Ye=J-1;Ye>=0;Ye--){var rt=(z.words[ee.length+Ye]|0)*67108864+(z.words[ee.length+Ye-1]|0);for(rt=Math.min(rt/H|0,67108863),z._ishlnsubmul(ee,rt,Ye);z.negative!==0;)rt--,z.negative=0,z._ishlnsubmul(ee,1,Ye),z.isZero()||(z.negative^=1);U&&(U.words[Ye]=rt)}return U&&U._strip(),z._strip(),k!=="div"&&B!==0&&z.iushrn(B),{div:U||null,mod:z}},I.prototype.divmod=function(P,k,B){if(_(!P.isZero()),this.isZero())return{div:new I(0),mod:new I(0)};var z,ee,H;return this.negative!==0&&P.negative===0?(H=this.neg().divmod(P,k),k!=="mod"&&(z=H.div.neg()),k!=="div"&&(ee=H.mod.neg(),B&&ee.negative!==0&&ee.iadd(P)),{div:z,mod:ee}):this.negative===0&&P.negative!==0?(H=this.divmod(P.neg(),k),k!=="mod"&&(z=H.div.neg()),{div:z,mod:H.mod}):this.negative&P.negative?(H=this.neg().divmod(P.neg(),k),k!=="div"&&(ee=H.mod.neg(),B&&ee.negative!==0&&ee.isub(P)),{div:H.div,mod:ee}):P.length>this.length||this.cmp(P)<0?{div:new I(0),mod:this}:P.length===1?k==="div"?{div:this.divn(P.words[0]),mod:null}:k==="mod"?{div:null,mod:new I(this.modrn(P.words[0]))}:{div:this.divn(P.words[0]),mod:new I(this.modrn(P.words[0]))}:this._wordDiv(P,k)},I.prototype.div=function(P){return this.divmod(P,"div",!1).div},I.prototype.mod=function(P){return this.divmod(P,"mod",!1).mod},I.prototype.umod=function(P){return this.divmod(P,"mod",!0).mod},I.prototype.divRound=function(P){var k=this.divmod(P);if(k.mod.isZero())return k.div;var B=k.div.negative!==0?k.mod.isub(P):k.mod,z=P.ushrn(1),ee=P.andln(1),H=B.cmp(z);return H<0||ee===1&&H===0?k.div:k.div.negative!==0?k.div.isubn(1):k.div.iaddn(1)},I.prototype.modrn=function(P){var k=P<0;k&&(P=-P),_(P<=67108863);for(var B=(1<<26)%P,z=0,ee=this.length-1;ee>=0;ee--)z=(B*z+(this.words[ee]|0))%P;return k?-z:z},I.prototype.modn=function(P){return this.modrn(P)},I.prototype.idivn=function(P){var k=P<0;k&&(P=-P),_(P<=67108863);for(var B=0,z=this.length-1;z>=0;z--){var ee=(this.words[z]|0)+B*67108864;this.words[z]=ee/P|0,B=ee%P}return this._strip(),k?this.ineg():this},I.prototype.divn=function(P){return this.clone().idivn(P)},I.prototype.egcd=function(P){_(P.negative===0),_(!P.isZero());var k=this,B=P.clone();k.negative!==0?k=k.umod(P):k=k.clone();for(var z=new I(1),ee=new I(0),H=new I(0),q=new I(1),J=0;k.isEven()&&B.isEven();)k.iushrn(1),B.iushrn(1),++J;for(var U=B.clone(),Z=k.clone();!k.isZero();){for(var ve=0,Ye=1;!(k.words[0]&Ye)&&ve<26;++ve,Ye<<=1);if(ve>0)for(k.iushrn(ve);ve-- >0;)(z.isOdd()||ee.isOdd())&&(z.iadd(U),ee.isub(Z)),z.iushrn(1),ee.iushrn(1);for(var rt=0,Ue=1;!(B.words[0]&Ue)&&rt<26;++rt,Ue<<=1);if(rt>0)for(B.iushrn(rt);rt-- >0;)(H.isOdd()||q.isOdd())&&(H.iadd(U),q.isub(Z)),H.iushrn(1),q.iushrn(1);k.cmp(B)>=0?(k.isub(B),z.isub(H),ee.isub(q)):(B.isub(k),H.isub(z),q.isub(ee))}return{a:H,b:q,gcd:B.iushln(J)}},I.prototype._invmp=function(P){_(P.negative===0),_(!P.isZero());var k=this,B=P.clone();k.negative!==0?k=k.umod(P):k=k.clone();for(var z=new I(1),ee=new I(0),H=B.clone();k.cmpn(1)>0&&B.cmpn(1)>0;){for(var q=0,J=1;!(k.words[0]&J)&&q<26;++q,J<<=1);if(q>0)for(k.iushrn(q);q-- >0;)z.isOdd()&&z.iadd(H),z.iushrn(1);for(var U=0,Z=1;!(B.words[0]&Z)&&U<26;++U,Z<<=1);if(U>0)for(B.iushrn(U);U-- >0;)ee.isOdd()&&ee.iadd(H),ee.iushrn(1);k.cmp(B)>=0?(k.isub(B),z.isub(ee)):(B.isub(k),ee.isub(z))}var ve;return k.cmpn(1)===0?ve=z:ve=ee,ve.cmpn(0)<0&&ve.iadd(P),ve},I.prototype.gcd=function(P){if(this.isZero())return P.abs();if(P.isZero())return this.abs();var k=this.clone(),B=P.clone();k.negative=0,B.negative=0;for(var z=0;k.isEven()&&B.isEven();z++)k.iushrn(1),B.iushrn(1);do{for(;k.isEven();)k.iushrn(1);for(;B.isEven();)B.iushrn(1);var ee=k.cmp(B);if(ee<0){var H=k;k=B,B=H}else if(ee===0||B.cmpn(1)===0)break;k.isub(B)}while(!0);return B.iushln(z)},I.prototype.invm=function(P){return this.egcd(P).a.umod(P)},I.prototype.isEven=function(){return(this.words[0]&1)===0},I.prototype.isOdd=function(){return(this.words[0]&1)===1},I.prototype.andln=function(P){return this.words[0]&P},I.prototype.bincn=function(P){_(typeof P=="number");var k=P%26,B=(P-k)/26,z=1<<k;if(this.length<=B)return this._expand(B+1),this.words[B]|=z,this;for(var ee=z,H=B;ee!==0&&H<this.length;H++){var q=this.words[H]|0;q+=ee,ee=q>>>26,q&=67108863,this.words[H]=q}return ee!==0&&(this.words[H]=ee,this.length++),this},I.prototype.isZero=function(){return this.length===1&&this.words[0]===0},I.prototype.cmpn=function(P){var k=P<0;if(this.negative!==0&&!k)return-1;if(this.negative===0&&k)return 1;this._strip();var B;if(this.length>1)B=1;else{k&&(P=-P),_(P<=67108863,"Number is too big");var z=this.words[0]|0;B=z===P?0:z<P?-1:1}return this.negative!==0?-B|0:B},I.prototype.cmp=function(P){if(this.negative!==0&&P.negative===0)return-1;if(this.negative===0&&P.negative!==0)return 1;var k=this.ucmp(P);return this.negative!==0?-k|0:k},I.prototype.ucmp=function(P){if(this.length>P.length)return 1;if(this.length<P.length)return-1;for(var k=0,B=this.length-1;B>=0;B--){var z=this.words[B]|0,ee=P.words[B]|0;if(z!==ee){z<ee?k=-1:z>ee&&(k=1);break}}return k},I.prototype.gtn=function(P){return this.cmpn(P)===1},I.prototype.gt=function(P){return this.cmp(P)===1},I.prototype.gten=function(P){return this.cmpn(P)>=0},I.prototype.gte=function(P){return this.cmp(P)>=0},I.prototype.ltn=function(P){return this.cmpn(P)===-1},I.prototype.lt=function(P){return this.cmp(P)===-1},I.prototype.lten=function(P){return this.cmpn(P)<=0},I.prototype.lte=function(P){return this.cmp(P)<=0},I.prototype.eqn=function(P){return this.cmpn(P)===0},I.prototype.eq=function(P){return this.cmp(P)===0},I.red=function(P){return new le(P)},I.prototype.toRed=function(P){return _(!this.red,"Already a number in reduction context"),_(this.negative===0,"red works only with positives"),P.convertTo(this)._forceRed(P)},I.prototype.fromRed=function(){return _(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},I.prototype._forceRed=function(P){return this.red=P,this},I.prototype.forceRed=function(P){return _(!this.red,"Already a number in reduction context"),this._forceRed(P)},I.prototype.redAdd=function(P){return _(this.red,"redAdd works only with red numbers"),this.red.add(this,P)},I.prototype.redIAdd=function(P){return _(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,P)},I.prototype.redSub=function(P){return _(this.red,"redSub works only with red numbers"),this.red.sub(this,P)},I.prototype.redISub=function(P){return _(this.red,"redISub works only with red numbers"),this.red.isub(this,P)},I.prototype.redShl=function(P){return _(this.red,"redShl works only with red numbers"),this.red.shl(this,P)},I.prototype.redMul=function(P){return _(this.red,"redMul works only with red numbers"),this.red._verify2(this,P),this.red.mul(this,P)},I.prototype.redIMul=function(P){return _(this.red,"redMul works only with red numbers"),this.red._verify2(this,P),this.red.imul(this,P)},I.prototype.redSqr=function(){return _(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},I.prototype.redISqr=function(){return _(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},I.prototype.redSqrt=function(){return _(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},I.prototype.redInvm=function(){return _(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},I.prototype.redNeg=function(){return _(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},I.prototype.redPow=function(P){return _(this.red&&!P.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,P)};var ge={k256:null,p224:null,p192:null,p25519:null};function be(P,k){this.name=P,this.p=new I(k,16),this.n=this.p.bitLength(),this.k=new I(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}be.prototype._tmp=function(){var P=new I(null);return P.words=new Array(Math.ceil(this.n/13)),P},be.prototype.ireduce=function(P){var k=P,B;do this.split(k,this.tmp),k=this.imulK(k),k=k.iadd(this.tmp),B=k.bitLength();while(B>this.n);var z=B<this.n?-1:k.ucmp(this.p);return z===0?(k.words[0]=0,k.length=1):z>0?k.isub(this.p):k.strip!==void 0?k.strip():k._strip(),k},be.prototype.split=function(P,k){P.iushrn(this.n,0,k)},be.prototype.imulK=function(P){return P.imul(this.k)};function ze(){be.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}x(ze,be),ze.prototype.split=function(P,k){for(var B=4194303,z=Math.min(P.length,9),ee=0;ee<z;ee++)k.words[ee]=P.words[ee];if(k.length=z,P.length<=9){P.words[0]=0,P.length=1;return}var H=P.words[9];for(k.words[k.length++]=H&B,ee=10;ee<P.length;ee++){var q=P.words[ee]|0;P.words[ee-10]=(q&B)<<4|H>>>22,H=q}H>>>=22,P.words[ee-10]=H,H===0&&P.length>10?P.length-=10:P.length-=9},ze.prototype.imulK=function(P){P.words[P.length]=0,P.words[P.length+1]=0,P.length+=2;for(var k=0,B=0;B<P.length;B++){var z=P.words[B]|0;k+=z*977,P.words[B]=k&67108863,k=z*64+(k/67108864|0)}return P.words[P.length-1]===0&&(P.length--,P.words[P.length-1]===0&&P.length--),P};function de(){be.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}x(de,be);function Ce(){be.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}x(Ce,be);function ke(){be.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}x(ke,be),ke.prototype.imulK=function(P){for(var k=0,B=0;B<P.length;B++){var z=(P.words[B]|0)*19+k,ee=z&67108863;z>>>=26,P.words[B]=ee,k=z}return k!==0&&(P.words[P.length++]=k),P},I._prime=function(P){if(ge[P])return ge[P];var k;if(P==="k256")k=new ze;else if(P==="p224")k=new de;else if(P==="p192")k=new Ce;else if(P==="p25519")k=new ke;else throw new Error("Unknown prime "+P);return ge[P]=k,k};function le(P){if(typeof P=="string"){var k=I._prime(P);this.m=k.p,this.prime=k}else _(P.gtn(1),"modulus must be greater than 1"),this.m=P,this.prime=null}le.prototype._verify1=function(P){_(P.negative===0,"red works only with positives"),_(P.red,"red works only with red numbers")},le.prototype._verify2=function(P,k){_((P.negative|k.negative)===0,"red works only with positives"),_(P.red&&P.red===k.red,"red works only with red numbers")},le.prototype.imod=function(P){return this.prime?this.prime.ireduce(P)._forceRed(this):(T(P,P.umod(this.m)._forceRed(this)),P)},le.prototype.neg=function(P){return P.isZero()?P.clone():this.m.sub(P)._forceRed(this)},le.prototype.add=function(P,k){this._verify2(P,k);var B=P.add(k);return B.cmp(this.m)>=0&&B.isub(this.m),B._forceRed(this)},le.prototype.iadd=function(P,k){this._verify2(P,k);var B=P.iadd(k);return B.cmp(this.m)>=0&&B.isub(this.m),B},le.prototype.sub=function(P,k){this._verify2(P,k);var B=P.sub(k);return B.cmpn(0)<0&&B.iadd(this.m),B._forceRed(this)},le.prototype.isub=function(P,k){this._verify2(P,k);var B=P.isub(k);return B.cmpn(0)<0&&B.iadd(this.m),B},le.prototype.shl=function(P,k){return this._verify1(P),this.imod(P.ushln(k))},le.prototype.imul=function(P,k){return this._verify2(P,k),this.imod(P.imul(k))},le.prototype.mul=function(P,k){return this._verify2(P,k),this.imod(P.mul(k))},le.prototype.isqr=function(P){return this.imul(P,P.clone())},le.prototype.sqr=function(P){return this.mul(P,P)},le.prototype.sqrt=function(P){if(P.isZero())return P.clone();var k=this.m.andln(3);if(_(k%2===1),k===3){var B=this.m.add(new I(1)).iushrn(2);return this.pow(P,B)}for(var z=this.m.subn(1),ee=0;!z.isZero()&&z.andln(1)===0;)ee++,z.iushrn(1);_(!z.isZero());var H=new I(1).toRed(this),q=H.redNeg(),J=this.m.subn(1).iushrn(1),U=this.m.bitLength();for(U=new I(2*U*U).toRed(this);this.pow(U,J).cmp(q)!==0;)U.redIAdd(q);for(var Z=this.pow(U,z),ve=this.pow(P,z.addn(1).iushrn(1)),Ye=this.pow(P,z),rt=ee;Ye.cmp(H)!==0;){for(var Ue=Ye,Qe=0;Ue.cmp(H)!==0;Qe++)Ue=Ue.redSqr();_(Qe<rt);var vt=this.pow(Z,new I(1).iushln(rt-Qe-1));ve=ve.redMul(vt),Z=vt.redSqr(),Ye=Ye.redMul(Z),rt=Qe}return ve},le.prototype.invm=function(P){var k=P._invmp(this.m);return k.negative!==0?(k.negative=0,this.imod(k).redNeg()):this.imod(k)},le.prototype.pow=function(P,k){if(k.isZero())return new I(1).toRed(this);if(k.cmpn(1)===0)return P.clone();var B=4,z=new Array(1<<B);z[0]=new I(1).toRed(this),z[1]=P;for(var ee=2;ee<z.length;ee++)z[ee]=this.mul(z[ee-1],P);var H=z[0],q=0,J=0,U=k.bitLength()%26;for(U===0&&(U=26),ee=k.length-1;ee>=0;ee--){for(var Z=k.words[ee],ve=U-1;ve>=0;ve--){var Ye=Z>>ve&1;if(H!==z[0]&&(H=this.sqr(H)),Ye===0&&q===0){J=0;continue}q<<=1,q|=Ye,J++,!(J!==B&&(ee!==0||ve!==0))&&(H=this.mul(H,z[q]),J=0,q=0)}U=26}return H},le.prototype.convertTo=function(P){var k=P.umod(this.m);return k===P?k.clone():k},le.prototype.convertFrom=function(P){var k=P.clone();return k.red=null,k},I.mont=function(P){return new re(P)};function re(P){le.call(this,P),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new I(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}x(re,le),re.prototype.convertTo=function(P){return this.imod(P.ushln(this.shift))},re.prototype.convertFrom=function(P){var k=this.imod(P.mul(this.rinv));return k.red=null,k},re.prototype.imul=function(P,k){if(P.isZero()||k.isZero())return P.words[0]=0,P.length=1,P;var B=P.imul(k),z=B.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),ee=B.isub(z).iushrn(this.shift),H=ee;return ee.cmp(this.m)>=0?H=ee.isub(this.m):ee.cmpn(0)<0&&(H=ee.iadd(this.m)),H._forceRed(this)},re.prototype.mul=function(P,k){if(P.isZero()||k.isZero())return new I(0)._forceRed(this);var B=P.mul(k),z=B.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),ee=B.isub(z).iushrn(this.shift),H=ee;return ee.cmp(this.m)>=0?H=ee.isub(this.m):ee.cmpn(0)<0&&(H=ee.iadd(this.m)),H._forceRed(this)},re.prototype.invm=function(P){var k=this.imod(P._invmp(this.m).mul(this.r2));return k._forceRed(this)}})(u,Me)})(ah);var g3=ah.exports,Ea=g3,m3=Ua;function b3(u){var f=Wv(u),d=f.toRed(Ea.mont(u.modulus)).redPow(new Ea(u.publicExponent)).fromRed();return{blinder:d,unblinder:f.invm(u.modulus)}}function Wv(u){var f=u.modulus.byteLength(),d;do d=new Ea(m3(f));while(d.cmp(u.modulus)>=0||!d.umod(u.prime1)||!d.umod(u.prime2));return d}function Yv(u,f){var d=b3(f),_=f.modulus.byteLength(),x=new Ea(u).mul(d.blinder).umod(f.modulus),I=x.toRed(Ea.mont(f.prime1)),E=x.toRed(Ea.mont(f.prime2)),M=f.coefficient,S=f.prime1,A=f.prime2,T=I.redPow(f.exponent1).fromRed(),D=E.redPow(f.exponent2).fromRed(),O=T.isub(D).imul(M).umod(S).imul(A);return D.iadd(O).imul(d.unblinder).umod(f.modulus).toArrayLike(pe.Buffer,"be",_)}Yv.getr=Wv;var sh=Yv,Co={};const x3="elliptic",_3="6.5.4",E3="EC cryptography",S3="lib/elliptic.js",w3=["lib"],C3={lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},A3={type:"git",url:"git@github.com:indutny/elliptic"},B3=["EC","Elliptic","curve","Cryptography"],I3="Fedor Indutny <fedor@indutny.com>",T3="MIT",M3={url:"https://github.com/indutny/elliptic/issues"},R3="https://github.com/indutny/elliptic",N3={brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},D3={"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"},O3={name:x3,version:_3,description:E3,main:S3,files:w3,scripts:C3,repository:A3,keywords:B3,author:I3,license:T3,bugs:M3,homepage:R3,devDependencies:N3,dependencies:D3};var Pr={},fh={};(function(u){var f=u;function d(I,E){if(Array.isArray(I))return I.slice();if(!I)return[];var M=[];if(typeof I!="string"){for(var S=0;S<I.length;S++)M[S]=I[S]|0;return M}if(E==="hex"){I=I.replace(/[^a-z0-9]+/ig,""),I.length%2!==0&&(I="0"+I);for(var S=0;S<I.length;S+=2)M.push(parseInt(I[S]+I[S+1],16))}else for(var S=0;S<I.length;S++){var A=I.charCodeAt(S),T=A>>8,D=A&255;T?M.push(T,D):M.push(D)}return M}f.toArray=d;function _(I){return I.length===1?"0"+I:I}f.zero2=_;function x(I){for(var E="",M=0;M<I.length;M++)E+=_(I[M].toString(16));return E}f.toHex=x,f.encode=function(I,E){return E==="hex"?x(I):I}})(fh);(function(u){var f=u,d=rr,_=Qr,x=fh;f.assert=_,f.toArray=x.toArray,f.zero2=x.zero2,f.toHex=x.toHex,f.encode=x.encode;function I(T,D,O){var j=new Array(Math.max(T.bitLength(),O)+1);j.fill(0);for(var $=1<<D+1,W=T.clone(),Q=0;Q<j.length;Q++){var X,Y=W.andln($-1);W.isOdd()?(Y>($>>1)-1?X=($>>1)-Y:X=Y,W.isubn(X)):X=0,j[Q]=X,W.iushrn(1)}return j}f.getNAF=I;function E(T,D){var O=[[],[]];T=T.clone(),D=D.clone();for(var j=0,$=0,W;T.cmpn(-j)>0||D.cmpn(-$)>0;){var Q=T.andln(3)+j&3,X=D.andln(3)+$&3;Q===3&&(Q=-1),X===3&&(X=-1);var Y;Q&1?(W=T.andln(7)+j&7,(W===3||W===5)&&X===2?Y=-Q:Y=Q):Y=0,O[0].push(Y);var ie;X&1?(W=D.andln(7)+$&7,(W===3||W===5)&&Q===2?ie=-X:ie=X):ie=0,O[1].push(ie),2*j===Y+1&&(j=1-j),2*$===ie+1&&($=1-$),T.iushrn(1),D.iushrn(1)}return O}f.getJSF=E;function M(T,D,O){var j="_"+D;T.prototype[D]=function(){return this[j]!==void 0?this[j]:this[j]=O.call(this)}}f.cachedProperty=M;function S(T){return typeof T=="string"?f.toArray(T,"hex"):T}f.parseBytes=S;function A(T){return new d(T,"hex","le")}f.intFromLE=A})(Pr);var oh={},kn=rr,V0=Pr,Rs=V0.getNAF,P3=V0.getJSF,Ns=V0.assert;function Rn(u,f){this.type=u,this.p=new kn(f.p,16),this.red=f.prime?kn.red(f.prime):kn.mont(this.p),this.zero=new kn(0).toRed(this.red),this.one=new kn(1).toRed(this.red),this.two=new kn(2).toRed(this.red),this.n=f.n&&new kn(f.n,16),this.g=f.g&&this.pointFromJSON(f.g,f.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var d=this.n&&this.p.div(this.n);!d||d.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var vf=Rn;Rn.prototype.point=function(){throw new Error("Not implemented")};Rn.prototype.validate=function(){throw new Error("Not implemented")};Rn.prototype._fixedNafMul=function(u,f){Ns(u.precomputed);var d=u._getDoubles(),_=Rs(f,1,this._bitLength),x=(1<<d.step+1)-(d.step%2===0?2:1);x/=3;var I=[],E,M;for(E=0;E<_.length;E+=d.step){M=0;for(var S=E+d.step-1;S>=E;S--)M=(M<<1)+_[S];I.push(M)}for(var A=this.jpoint(null,null,null),T=this.jpoint(null,null,null),D=x;D>0;D--){for(E=0;E<I.length;E++)M=I[E],M===D?T=T.mixedAdd(d.points[E]):M===-D&&(T=T.mixedAdd(d.points[E].neg()));A=A.add(T)}return A.toP()};Rn.prototype._wnafMul=function(u,f){var d=4,_=u._getNAFPoints(d);d=_.wnd;for(var x=_.points,I=Rs(f,d,this._bitLength),E=this.jpoint(null,null,null),M=I.length-1;M>=0;M--){for(var S=0;M>=0&&I[M]===0;M--)S++;if(M>=0&&S++,E=E.dblp(S),M<0)break;var A=I[M];Ns(A!==0),u.type==="affine"?A>0?E=E.mixedAdd(x[A-1>>1]):E=E.mixedAdd(x[-A-1>>1].neg()):A>0?E=E.add(x[A-1>>1]):E=E.add(x[-A-1>>1].neg())}return u.type==="affine"?E.toP():E};Rn.prototype._wnafMulAdd=function(u,f,d,_,x){var I=this._wnafT1,E=this._wnafT2,M=this._wnafT3,S=0,A,T,D;for(A=0;A<_;A++){D=f[A];var O=D._getNAFPoints(u);I[A]=O.wnd,E[A]=O.points}for(A=_-1;A>=1;A-=2){var j=A-1,$=A;if(I[j]!==1||I[$]!==1){M[j]=Rs(d[j],I[j],this._bitLength),M[$]=Rs(d[$],I[$],this._bitLength),S=Math.max(M[j].length,S),S=Math.max(M[$].length,S);continue}var W=[f[j],null,null,f[$]];f[j].y.cmp(f[$].y)===0?(W[1]=f[j].add(f[$]),W[2]=f[j].toJ().mixedAdd(f[$].neg())):f[j].y.cmp(f[$].y.redNeg())===0?(W[1]=f[j].toJ().mixedAdd(f[$]),W[2]=f[j].add(f[$].neg())):(W[1]=f[j].toJ().mixedAdd(f[$]),W[2]=f[j].toJ().mixedAdd(f[$].neg()));var Q=[-3,-1,-5,-7,0,7,5,1,3],X=P3(d[j],d[$]);for(S=Math.max(X[0].length,S),M[j]=new Array(S),M[$]=new Array(S),T=0;T<S;T++){var Y=X[0][T]|0,ie=X[1][T]|0;M[j][T]=Q[(Y+1)*3+(ie+1)],M[$][T]=0,E[j]=W}}var oe=this.jpoint(null,null,null),ge=this._wnafT4;for(A=S;A>=0;A--){for(var be=0;A>=0;){var ze=!0;for(T=0;T<_;T++)ge[T]=M[T][A]|0,ge[T]!==0&&(ze=!1);if(!ze)break;be++,A--}if(A>=0&&be++,oe=oe.dblp(be),A<0)break;for(T=0;T<_;T++){var de=ge[T];de!==0&&(de>0?D=E[T][de-1>>1]:de<0&&(D=E[T][-de-1>>1].neg()),D.type==="affine"?oe=oe.mixedAdd(D):oe=oe.add(D))}}for(A=0;A<_;A++)E[A]=null;return x?oe:oe.toP()};function Jr(u,f){this.curve=u,this.type=f,this.precomputed=null}Rn.BasePoint=Jr;Jr.prototype.eq=function(){throw new Error("Not implemented")};Jr.prototype.validate=function(){return this.curve.validate(this)};Rn.prototype.decodePoint=function(u,f){u=V0.toArray(u,f);var d=this.p.byteLength();if((u[0]===4||u[0]===6||u[0]===7)&&u.length-1===2*d){u[0]===6?Ns(u[u.length-1]%2===0):u[0]===7&&Ns(u[u.length-1]%2===1);var _=this.point(u.slice(1,1+d),u.slice(1+d,1+2*d));return _}else if((u[0]===2||u[0]===3)&&u.length-1===d)return this.pointFromX(u.slice(1,1+d),u[0]===3);throw new Error("Unknown point format")};Jr.prototype.encodeCompressed=function(u){return this.encode(u,!0)};Jr.prototype._encode=function(u){var f=this.curve.p.byteLength(),d=this.getX().toArray("be",f);return u?[this.getY().isEven()?2:3].concat(d):[4].concat(d,this.getY().toArray("be",f))};Jr.prototype.encode=function(u,f){return V0.encode(this._encode(f),u)};Jr.prototype.precompute=function(u){if(this.precomputed)return this;var f={doubles:null,naf:null,beta:null};return f.naf=this._getNAFPoints(8),f.doubles=this._getDoubles(4,u),f.beta=this._getBeta(),this.precomputed=f,this};Jr.prototype._hasDoubles=function(u){if(!this.precomputed)return!1;var f=this.precomputed.doubles;return f?f.points.length>=Math.ceil((u.bitLength()+1)/f.step):!1};Jr.prototype._getDoubles=function(u,f){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var d=[this],_=this,x=0;x<f;x+=u){for(var I=0;I<u;I++)_=_.dbl();d.push(_)}return{step:u,points:d}};Jr.prototype._getNAFPoints=function(u){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var f=[this],d=(1<<u)-1,_=d===1?null:this.dbl(),x=1;x<d;x++)f[x]=f[x-1].add(_);return{wnd:u,points:f}};Jr.prototype._getBeta=function(){return null};Jr.prototype.dblp=function(u){for(var f=this,d=0;d<u;d++)f=f.dbl();return f};var L3=Pr,Vt=rr,uh=ut,Va=vf,k3=L3.assert;function ei(u){Va.call(this,"short",u),this.a=new Vt(u.a,16).toRed(this.red),this.b=new Vt(u.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=this.a.fromRed().cmpn(0)===0,this.threeA=this.a.fromRed().sub(this.p).cmpn(-3)===0,this.endo=this._getEndomorphism(u),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}uh(ei,Va);var U3=ei;ei.prototype._getEndomorphism=function(u){if(!(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)){var f,d;if(u.beta)f=new Vt(u.beta,16).toRed(this.red);else{var _=this._getEndoRoots(this.p);f=_[0].cmp(_[1])<0?_[0]:_[1],f=f.toRed(this.red)}if(u.lambda)d=new Vt(u.lambda,16);else{var x=this._getEndoRoots(this.n);this.g.mul(x[0]).x.cmp(this.g.x.redMul(f))===0?d=x[0]:(d=x[1],k3(this.g.mul(d).x.cmp(this.g.x.redMul(f))===0))}var I;return u.basis?I=u.basis.map(function(E){return{a:new Vt(E.a,16),b:new Vt(E.b,16)}}):I=this._getEndoBasis(d),{beta:f,lambda:d,basis:I}}};ei.prototype._getEndoRoots=function(u){var f=u===this.p?this.red:Vt.mont(u),d=new Vt(2).toRed(f).redInvm(),_=d.redNeg(),x=new Vt(3).toRed(f).redNeg().redSqrt().redMul(d),I=_.redAdd(x).fromRed(),E=_.redSub(x).fromRed();return[I,E]};ei.prototype._getEndoBasis=function(u){for(var f=this.n.ushrn(Math.floor(this.n.bitLength()/2)),d=u,_=this.n.clone(),x=new Vt(1),I=new Vt(0),E=new Vt(0),M=new Vt(1),S,A,T,D,O,j,$,W=0,Q,X;d.cmpn(0)!==0;){var Y=_.div(d);Q=_.sub(Y.mul(d)),X=E.sub(Y.mul(x));var ie=M.sub(Y.mul(I));if(!T&&Q.cmp(f)<0)S=$.neg(),A=x,T=Q.neg(),D=X;else if(T&&++W===2)break;$=Q,_=d,d=Q,E=x,x=X,M=I,I=ie}O=Q.neg(),j=X;var oe=T.sqr().add(D.sqr()),ge=O.sqr().add(j.sqr());return ge.cmp(oe)>=0&&(O=S,j=A),T.negative&&(T=T.neg(),D=D.neg()),O.negative&&(O=O.neg(),j=j.neg()),[{a:T,b:D},{a:O,b:j}]};ei.prototype._endoSplit=function(u){var f=this.endo.basis,d=f[0],_=f[1],x=_.b.mul(u).divRound(this.n),I=d.b.neg().mul(u).divRound(this.n),E=x.mul(d.a),M=I.mul(_.a),S=x.mul(d.b),A=I.mul(_.b),T=u.sub(E).sub(M),D=S.add(A).neg();return{k1:T,k2:D}};ei.prototype.pointFromX=function(u,f){u=new Vt(u,16),u.red||(u=u.toRed(this.red));var d=u.redSqr().redMul(u).redIAdd(u.redMul(this.a)).redIAdd(this.b),_=d.redSqrt();if(_.redSqr().redSub(d).cmp(this.zero)!==0)throw new Error("invalid point");var x=_.fromRed().isOdd();return(f&&!x||!f&&x)&&(_=_.redNeg()),this.point(u,_)};ei.prototype.validate=function(u){if(u.inf)return!0;var f=u.x,d=u.y,_=this.a.redMul(f),x=f.redSqr().redMul(f).redIAdd(_).redIAdd(this.b);return d.redSqr().redISub(x).cmpn(0)===0};ei.prototype._endoWnafMulAdd=function(u,f,d){for(var _=this._endoWnafT1,x=this._endoWnafT2,I=0;I<u.length;I++){var E=this._endoSplit(f[I]),M=u[I],S=M._getBeta();E.k1.negative&&(E.k1.ineg(),M=M.neg(!0)),E.k2.negative&&(E.k2.ineg(),S=S.neg(!0)),_[I*2]=M,_[I*2+1]=S,x[I*2]=E.k1,x[I*2+1]=E.k2}for(var A=this._wnafMulAdd(1,_,x,I*2,d),T=0;T<I*2;T++)_[T]=null,x[T]=null;return A};function ir(u,f,d,_){Va.BasePoint.call(this,u,"affine"),f===null&&d===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new Vt(f,16),this.y=new Vt(d,16),_&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}uh(ir,Va.BasePoint);ei.prototype.point=function(u,f,d){return new ir(this,u,f,d)};ei.prototype.pointFromJSON=function(u,f){return ir.fromJSON(this,u,f)};ir.prototype._getBeta=function(){if(this.curve.endo){var u=this.precomputed;if(u&&u.beta)return u.beta;var f=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(u){var d=this.curve,_=function(x){return d.point(x.x.redMul(d.endo.beta),x.y)};u.beta=f,f.precomputed={beta:null,naf:u.naf&&{wnd:u.naf.wnd,points:u.naf.points.map(_)},doubles:u.doubles&&{step:u.doubles.step,points:u.doubles.points.map(_)}}}return f}};ir.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]};ir.fromJSON=function(u,f,d){typeof f=="string"&&(f=JSON.parse(f));var _=u.point(f[0],f[1],d);if(!f[2])return _;function x(E){return u.point(E[0],E[1],d)}var I=f[2];return _.precomputed={beta:null,doubles:I.doubles&&{step:I.doubles.step,points:[_].concat(I.doubles.points.map(x))},naf:I.naf&&{wnd:I.naf.wnd,points:[_].concat(I.naf.points.map(x))}},_};ir.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"};ir.prototype.isInfinity=function(){return this.inf};ir.prototype.add=function(u){if(this.inf)return u;if(u.inf)return this;if(this.eq(u))return this.dbl();if(this.neg().eq(u))return this.curve.point(null,null);if(this.x.cmp(u.x)===0)return this.curve.point(null,null);var f=this.y.redSub(u.y);f.cmpn(0)!==0&&(f=f.redMul(this.x.redSub(u.x).redInvm()));var d=f.redSqr().redISub(this.x).redISub(u.x),_=f.redMul(this.x.redSub(d)).redISub(this.y);return this.curve.point(d,_)};ir.prototype.dbl=function(){if(this.inf)return this;var u=this.y.redAdd(this.y);if(u.cmpn(0)===0)return this.curve.point(null,null);var f=this.curve.a,d=this.x.redSqr(),_=u.redInvm(),x=d.redAdd(d).redIAdd(d).redIAdd(f).redMul(_),I=x.redSqr().redISub(this.x.redAdd(this.x)),E=x.redMul(this.x.redSub(I)).redISub(this.y);return this.curve.point(I,E)};ir.prototype.getX=function(){return this.x.fromRed()};ir.prototype.getY=function(){return this.y.fromRed()};ir.prototype.mul=function(u){return u=new Vt(u,16),this.isInfinity()?this:this._hasDoubles(u)?this.curve._fixedNafMul(this,u):this.curve.endo?this.curve._endoWnafMulAdd([this],[u]):this.curve._wnafMul(this,u)};ir.prototype.mulAdd=function(u,f,d){var _=[this,f],x=[u,d];return this.curve.endo?this.curve._endoWnafMulAdd(_,x):this.curve._wnafMulAdd(1,_,x,2)};ir.prototype.jmulAdd=function(u,f,d){var _=[this,f],x=[u,d];return this.curve.endo?this.curve._endoWnafMulAdd(_,x,!0):this.curve._wnafMulAdd(1,_,x,2,!0)};ir.prototype.eq=function(u){return this===u||this.inf===u.inf&&(this.inf||this.x.cmp(u.x)===0&&this.y.cmp(u.y)===0)};ir.prototype.neg=function(u){if(this.inf)return this;var f=this.curve.point(this.x,this.y.redNeg());if(u&&this.precomputed){var d=this.precomputed,_=function(x){return x.neg()};f.precomputed={naf:d.naf&&{wnd:d.naf.wnd,points:d.naf.points.map(_)},doubles:d.doubles&&{step:d.doubles.step,points:d.doubles.points.map(_)}}}return f};ir.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var u=this.curve.jpoint(this.x,this.y,this.curve.one);return u};function fr(u,f,d,_){Va.BasePoint.call(this,u,"jacobian"),f===null&&d===null&&_===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new Vt(0)):(this.x=new Vt(f,16),this.y=new Vt(d,16),this.z=new Vt(_,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}uh(fr,Va.BasePoint);ei.prototype.jpoint=function(u,f,d){return new fr(this,u,f,d)};fr.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var u=this.z.redInvm(),f=u.redSqr(),d=this.x.redMul(f),_=this.y.redMul(f).redMul(u);return this.curve.point(d,_)};fr.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)};fr.prototype.add=function(u){if(this.isInfinity())return u;if(u.isInfinity())return this;var f=u.z.redSqr(),d=this.z.redSqr(),_=this.x.redMul(f),x=u.x.redMul(d),I=this.y.redMul(f.redMul(u.z)),E=u.y.redMul(d.redMul(this.z)),M=_.redSub(x),S=I.redSub(E);if(M.cmpn(0)===0)return S.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var A=M.redSqr(),T=A.redMul(M),D=_.redMul(A),O=S.redSqr().redIAdd(T).redISub(D).redISub(D),j=S.redMul(D.redISub(O)).redISub(I.redMul(T)),$=this.z.redMul(u.z).redMul(M);return this.curve.jpoint(O,j,$)};fr.prototype.mixedAdd=function(u){if(this.isInfinity())return u.toJ();if(u.isInfinity())return this;var f=this.z.redSqr(),d=this.x,_=u.x.redMul(f),x=this.y,I=u.y.redMul(f).redMul(this.z),E=d.redSub(_),M=x.redSub(I);if(E.cmpn(0)===0)return M.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var S=E.redSqr(),A=S.redMul(E),T=d.redMul(S),D=M.redSqr().redIAdd(A).redISub(T).redISub(T),O=M.redMul(T.redISub(D)).redISub(x.redMul(A)),j=this.z.redMul(E);return this.curve.jpoint(D,O,j)};fr.prototype.dblp=function(u){if(u===0)return this;if(this.isInfinity())return this;if(!u)return this.dbl();var f;if(this.curve.zeroA||this.curve.threeA){var d=this;for(f=0;f<u;f++)d=d.dbl();return d}var _=this.curve.a,x=this.curve.tinv,I=this.x,E=this.y,M=this.z,S=M.redSqr().redSqr(),A=E.redAdd(E);for(f=0;f<u;f++){var T=I.redSqr(),D=A.redSqr(),O=D.redSqr(),j=T.redAdd(T).redIAdd(T).redIAdd(_.redMul(S)),$=I.redMul(D),W=j.redSqr().redISub($.redAdd($)),Q=$.redISub(W),X=j.redMul(Q);X=X.redIAdd(X).redISub(O);var Y=A.redMul(M);f+1<u&&(S=S.redMul(O)),I=W,M=Y,A=X}return this.curve.jpoint(I,A.redMul(x),M)};fr.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()};fr.prototype._zeroDbl=function(){var u,f,d;if(this.zOne){var _=this.x.redSqr(),x=this.y.redSqr(),I=x.redSqr(),E=this.x.redAdd(x).redSqr().redISub(_).redISub(I);E=E.redIAdd(E);var M=_.redAdd(_).redIAdd(_),S=M.redSqr().redISub(E).redISub(E),A=I.redIAdd(I);A=A.redIAdd(A),A=A.redIAdd(A),u=S,f=M.redMul(E.redISub(S)).redISub(A),d=this.y.redAdd(this.y)}else{var T=this.x.redSqr(),D=this.y.redSqr(),O=D.redSqr(),j=this.x.redAdd(D).redSqr().redISub(T).redISub(O);j=j.redIAdd(j);var $=T.redAdd(T).redIAdd(T),W=$.redSqr(),Q=O.redIAdd(O);Q=Q.redIAdd(Q),Q=Q.redIAdd(Q),u=W.redISub(j).redISub(j),f=$.redMul(j.redISub(u)).redISub(Q),d=this.y.redMul(this.z),d=d.redIAdd(d)}return this.curve.jpoint(u,f,d)};fr.prototype._threeDbl=function(){var u,f,d;if(this.zOne){var _=this.x.redSqr(),x=this.y.redSqr(),I=x.redSqr(),E=this.x.redAdd(x).redSqr().redISub(_).redISub(I);E=E.redIAdd(E);var M=_.redAdd(_).redIAdd(_).redIAdd(this.curve.a),S=M.redSqr().redISub(E).redISub(E);u=S;var A=I.redIAdd(I);A=A.redIAdd(A),A=A.redIAdd(A),f=M.redMul(E.redISub(S)).redISub(A),d=this.y.redAdd(this.y)}else{var T=this.z.redSqr(),D=this.y.redSqr(),O=this.x.redMul(D),j=this.x.redSub(T).redMul(this.x.redAdd(T));j=j.redAdd(j).redIAdd(j);var $=O.redIAdd(O);$=$.redIAdd($);var W=$.redAdd($);u=j.redSqr().redISub(W),d=this.y.redAdd(this.z).redSqr().redISub(D).redISub(T);var Q=D.redSqr();Q=Q.redIAdd(Q),Q=Q.redIAdd(Q),Q=Q.redIAdd(Q),f=j.redMul($.redISub(u)).redISub(Q)}return this.curve.jpoint(u,f,d)};fr.prototype._dbl=function(){var u=this.curve.a,f=this.x,d=this.y,_=this.z,x=_.redSqr().redSqr(),I=f.redSqr(),E=d.redSqr(),M=I.redAdd(I).redIAdd(I).redIAdd(u.redMul(x)),S=f.redAdd(f);S=S.redIAdd(S);var A=S.redMul(E),T=M.redSqr().redISub(A.redAdd(A)),D=A.redISub(T),O=E.redSqr();O=O.redIAdd(O),O=O.redIAdd(O),O=O.redIAdd(O);var j=M.redMul(D).redISub(O),$=d.redAdd(d).redMul(_);return this.curve.jpoint(T,j,$)};fr.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var u=this.x.redSqr(),f=this.y.redSqr(),d=this.z.redSqr(),_=f.redSqr(),x=u.redAdd(u).redIAdd(u),I=x.redSqr(),E=this.x.redAdd(f).redSqr().redISub(u).redISub(_);E=E.redIAdd(E),E=E.redAdd(E).redIAdd(E),E=E.redISub(I);var M=E.redSqr(),S=_.redIAdd(_);S=S.redIAdd(S),S=S.redIAdd(S),S=S.redIAdd(S);var A=x.redIAdd(E).redSqr().redISub(I).redISub(M).redISub(S),T=f.redMul(A);T=T.redIAdd(T),T=T.redIAdd(T);var D=this.x.redMul(M).redISub(T);D=D.redIAdd(D),D=D.redIAdd(D);var O=this.y.redMul(A.redMul(S.redISub(A)).redISub(E.redMul(M)));O=O.redIAdd(O),O=O.redIAdd(O),O=O.redIAdd(O);var j=this.z.redAdd(E).redSqr().redISub(d).redISub(M);return this.curve.jpoint(D,O,j)};fr.prototype.mul=function(u,f){return u=new Vt(u,f),this.curve._wnafMul(this,u)};fr.prototype.eq=function(u){if(u.type==="affine")return this.eq(u.toJ());if(this===u)return!0;var f=this.z.redSqr(),d=u.z.redSqr();if(this.x.redMul(d).redISub(u.x.redMul(f)).cmpn(0)!==0)return!1;var _=f.redMul(this.z),x=d.redMul(u.z);return this.y.redMul(x).redISub(u.y.redMul(_)).cmpn(0)===0};fr.prototype.eqXToP=function(u){var f=this.z.redSqr(),d=u.toRed(this.curve.red).redMul(f);if(this.x.cmp(d)===0)return!0;for(var _=u.clone(),x=this.curve.redN.redMul(f);;){if(_.iadd(this.curve.n),_.cmp(this.curve.p)>=0)return!1;if(d.redIAdd(x),this.x.cmp(d)===0)return!0}};fr.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"};fr.prototype.isInfinity=function(){return this.z.cmpn(0)===0};var ya=rr,Xv=ut,yf=vf,F3=Pr;function Ka(u){yf.call(this,"mont",u),this.a=new ya(u.a,16).toRed(this.red),this.b=new ya(u.b,16).toRed(this.red),this.i4=new ya(4).toRed(this.red).redInvm(),this.two=new ya(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}Xv(Ka,yf);var q3=Ka;Ka.prototype.validate=function(u){var f=u.normalize().x,d=f.redSqr(),_=d.redMul(f).redAdd(d.redMul(this.a)).redAdd(f),x=_.redSqrt();return x.redSqr().cmp(_)===0};function er(u,f,d){yf.BasePoint.call(this,u,"projective"),f===null&&d===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new ya(f,16),this.z=new ya(d,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}Xv(er,yf.BasePoint);Ka.prototype.decodePoint=function(u,f){return this.point(F3.toArray(u,f),1)};Ka.prototype.point=function(u,f){return new er(this,u,f)};Ka.prototype.pointFromJSON=function(u){return er.fromJSON(this,u)};er.prototype.precompute=function(){};er.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())};er.fromJSON=function(u,f){return new er(u,f[0],f[1]||u.one)};er.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"};er.prototype.isInfinity=function(){return this.z.cmpn(0)===0};er.prototype.dbl=function(){var u=this.x.redAdd(this.z),f=u.redSqr(),d=this.x.redSub(this.z),_=d.redSqr(),x=f.redSub(_),I=f.redMul(_),E=x.redMul(_.redAdd(this.curve.a24.redMul(x)));return this.curve.point(I,E)};er.prototype.add=function(){throw new Error("Not supported on Montgomery curve")};er.prototype.diffAdd=function(u,f){var d=this.x.redAdd(this.z),_=this.x.redSub(this.z),x=u.x.redAdd(u.z),I=u.x.redSub(u.z),E=I.redMul(d),M=x.redMul(_),S=f.z.redMul(E.redAdd(M).redSqr()),A=f.x.redMul(E.redISub(M).redSqr());return this.curve.point(S,A)};er.prototype.mul=function(u){for(var f=u.clone(),d=this,_=this.curve.point(null,null),x=this,I=[];f.cmpn(0)!==0;f.iushrn(1))I.push(f.andln(1));for(var E=I.length-1;E>=0;E--)I[E]===0?(d=d.diffAdd(_,x),_=_.dbl()):(_=d.diffAdd(_,x),d=d.dbl());return _};er.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")};er.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")};er.prototype.eq=function(u){return this.getX().cmp(u.getX())===0};er.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this};er.prototype.getX=function(){return this.normalize(),this.x.fromRed()};var V3=Pr,tn=rr,Qv=ut,gf=vf,K3=V3.assert;function ji(u){this.twisted=(u.a|0)!==1,this.mOneA=this.twisted&&(u.a|0)===-1,this.extended=this.mOneA,gf.call(this,"edwards",u),this.a=new tn(u.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new tn(u.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new tn(u.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),K3(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(u.c|0)===1}Qv(ji,gf);var $3=ji;ji.prototype._mulA=function(u){return this.mOneA?u.redNeg():this.a.redMul(u)};ji.prototype._mulC=function(u){return this.oneC?u:this.c.redMul(u)};ji.prototype.jpoint=function(u,f,d,_){return this.point(u,f,d,_)};ji.prototype.pointFromX=function(u,f){u=new tn(u,16),u.red||(u=u.toRed(this.red));var d=u.redSqr(),_=this.c2.redSub(this.a.redMul(d)),x=this.one.redSub(this.c2.redMul(this.d).redMul(d)),I=_.redMul(x.redInvm()),E=I.redSqrt();if(E.redSqr().redSub(I).cmp(this.zero)!==0)throw new Error("invalid point");var M=E.fromRed().isOdd();return(f&&!M||!f&&M)&&(E=E.redNeg()),this.point(u,E)};ji.prototype.pointFromY=function(u,f){u=new tn(u,16),u.red||(u=u.toRed(this.red));var d=u.redSqr(),_=d.redSub(this.c2),x=d.redMul(this.d).redMul(this.c2).redSub(this.a),I=_.redMul(x.redInvm());if(I.cmp(this.zero)===0){if(f)throw new Error("invalid point");return this.point(this.zero,u)}var E=I.redSqrt();if(E.redSqr().redSub(I).cmp(this.zero)!==0)throw new Error("invalid point");return E.fromRed().isOdd()!==f&&(E=E.redNeg()),this.point(E,u)};ji.prototype.validate=function(u){if(u.isInfinity())return!0;u.normalize();var f=u.x.redSqr(),d=u.y.redSqr(),_=f.redMul(this.a).redAdd(d),x=this.c2.redMul(this.one.redAdd(this.d.redMul(f).redMul(d)));return _.cmp(x)===0};function kt(u,f,d,_,x){gf.BasePoint.call(this,u,"projective"),f===null&&d===null&&_===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new tn(f,16),this.y=new tn(d,16),this.z=_?new tn(_,16):this.curve.one,this.t=x&&new tn(x,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}Qv(kt,gf.BasePoint);ji.prototype.pointFromJSON=function(u){return kt.fromJSON(this,u)};ji.prototype.point=function(u,f,d,_){return new kt(this,u,f,d,_)};kt.fromJSON=function(u,f){return new kt(u,f[0],f[1],f[2])};kt.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"};kt.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)};kt.prototype._extDbl=function(){var u=this.x.redSqr(),f=this.y.redSqr(),d=this.z.redSqr();d=d.redIAdd(d);var _=this.curve._mulA(u),x=this.x.redAdd(this.y).redSqr().redISub(u).redISub(f),I=_.redAdd(f),E=I.redSub(d),M=_.redSub(f),S=x.redMul(E),A=I.redMul(M),T=x.redMul(M),D=E.redMul(I);return this.curve.point(S,A,D,T)};kt.prototype._projDbl=function(){var u=this.x.redAdd(this.y).redSqr(),f=this.x.redSqr(),d=this.y.redSqr(),_,x,I,E,M,S;if(this.curve.twisted){E=this.curve._mulA(f);var A=E.redAdd(d);this.zOne?(_=u.redSub(f).redSub(d).redMul(A.redSub(this.curve.two)),x=A.redMul(E.redSub(d)),I=A.redSqr().redSub(A).redSub(A)):(M=this.z.redSqr(),S=A.redSub(M).redISub(M),_=u.redSub(f).redISub(d).redMul(S),x=A.redMul(E.redSub(d)),I=A.redMul(S))}else E=f.redAdd(d),M=this.curve._mulC(this.z).redSqr(),S=E.redSub(M).redSub(M),_=this.curve._mulC(u.redISub(E)).redMul(S),x=this.curve._mulC(E).redMul(f.redISub(d)),I=E.redMul(S);return this.curve.point(_,x,I)};kt.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()};kt.prototype._extAdd=function(u){var f=this.y.redSub(this.x).redMul(u.y.redSub(u.x)),d=this.y.redAdd(this.x).redMul(u.y.redAdd(u.x)),_=this.t.redMul(this.curve.dd).redMul(u.t),x=this.z.redMul(u.z.redAdd(u.z)),I=d.redSub(f),E=x.redSub(_),M=x.redAdd(_),S=d.redAdd(f),A=I.redMul(E),T=M.redMul(S),D=I.redMul(S),O=E.redMul(M);return this.curve.point(A,T,O,D)};kt.prototype._projAdd=function(u){var f=this.z.redMul(u.z),d=f.redSqr(),_=this.x.redMul(u.x),x=this.y.redMul(u.y),I=this.curve.d.redMul(_).redMul(x),E=d.redSub(I),M=d.redAdd(I),S=this.x.redAdd(this.y).redMul(u.x.redAdd(u.y)).redISub(_).redISub(x),A=f.redMul(E).redMul(S),T,D;return this.curve.twisted?(T=f.redMul(M).redMul(x.redSub(this.curve._mulA(_))),D=E.redMul(M)):(T=f.redMul(M).redMul(x.redSub(_)),D=this.curve._mulC(E).redMul(M)),this.curve.point(A,T,D)};kt.prototype.add=function(u){return this.isInfinity()?u:u.isInfinity()?this:this.curve.extended?this._extAdd(u):this._projAdd(u)};kt.prototype.mul=function(u){return this._hasDoubles(u)?this.curve._fixedNafMul(this,u):this.curve._wnafMul(this,u)};kt.prototype.mulAdd=function(u,f,d){return this.curve._wnafMulAdd(1,[this,f],[u,d],2,!1)};kt.prototype.jmulAdd=function(u,f,d){return this.curve._wnafMulAdd(1,[this,f],[u,d],2,!0)};kt.prototype.normalize=function(){if(this.zOne)return this;var u=this.z.redInvm();return this.x=this.x.redMul(u),this.y=this.y.redMul(u),this.t&&(this.t=this.t.redMul(u)),this.z=this.curve.one,this.zOne=!0,this};kt.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())};kt.prototype.getX=function(){return this.normalize(),this.x.fromRed()};kt.prototype.getY=function(){return this.normalize(),this.y.fromRed()};kt.prototype.eq=function(u){return this===u||this.getX().cmp(u.getX())===0&&this.getY().cmp(u.getY())===0};kt.prototype.eqXToP=function(u){var f=u.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(f)===0)return!0;for(var d=u.clone(),_=this.curve.redN.redMul(this.z);;){if(d.iadd(this.curve.n),d.cmp(this.curve.p)>=0)return!1;if(f.redIAdd(_),this.x.cmp(f)===0)return!0}};kt.prototype.toP=kt.prototype.normalize;kt.prototype.mixedAdd=kt.prototype.add;(function(u){var f=u;f.base=vf,f.short=U3,f.mont=q3,f.edwards=$3})(oh);var mf={},bf={},gt={},H3=Qr,G3=ut;gt.inherits=G3;function z3(u,f){return(u.charCodeAt(f)&64512)!==55296||f<0||f+1>=u.length?!1:(u.charCodeAt(f+1)&64512)===56320}function j3(u,f){if(Array.isArray(u))return u.slice();if(!u)return[];var d=[];if(typeof u=="string")if(f){if(f==="hex")for(u=u.replace(/[^a-z0-9]+/ig,""),u.length%2!==0&&(u="0"+u),x=0;x<u.length;x+=2)d.push(parseInt(u[x]+u[x+1],16))}else for(var _=0,x=0;x<u.length;x++){var I=u.charCodeAt(x);I<128?d[_++]=I:I<2048?(d[_++]=I>>6|192,d[_++]=I&63|128):z3(u,x)?(I=65536+((I&1023)<<10)+(u.charCodeAt(++x)&1023),d[_++]=I>>18|240,d[_++]=I>>12&63|128,d[_++]=I>>6&63|128,d[_++]=I&63|128):(d[_++]=I>>12|224,d[_++]=I>>6&63|128,d[_++]=I&63|128)}else for(x=0;x<u.length;x++)d[x]=u[x]|0;return d}gt.toArray=j3;function W3(u){for(var f="",d=0;d<u.length;d++)f+=Jv(u[d].toString(16));return f}gt.toHex=W3;function Zv(u){var f=u>>>24|u>>>8&65280|u<<8&16711680|(u&255)<<24;return f>>>0}gt.htonl=Zv;function Y3(u,f){for(var d="",_=0;_<u.length;_++){var x=u[_];f==="little"&&(x=Zv(x)),d+=ey(x.toString(16))}return d}gt.toHex32=Y3;function Jv(u){return u.length===1?"0"+u:u}gt.zero2=Jv;function ey(u){return u.length===7?"0"+u:u.length===6?"00"+u:u.length===5?"000"+u:u.length===4?"0000"+u:u.length===3?"00000"+u:u.length===2?"000000"+u:u.length===1?"0000000"+u:u}gt.zero8=ey;function X3(u,f,d,_){var x=d-f;H3(x%4===0);for(var I=new Array(x/4),E=0,M=f;E<I.length;E++,M+=4){var S;_==="big"?S=u[M]<<24|u[M+1]<<16|u[M+2]<<8|u[M+3]:S=u[M+3]<<24|u[M+2]<<16|u[M+1]<<8|u[M],I[E]=S>>>0}return I}gt.join32=X3;function Q3(u,f){for(var d=new Array(u.length*4),_=0,x=0;_<u.length;_++,x+=4){var I=u[_];f==="big"?(d[x]=I>>>24,d[x+1]=I>>>16&255,d[x+2]=I>>>8&255,d[x+3]=I&255):(d[x+3]=I>>>24,d[x+2]=I>>>16&255,d[x+1]=I>>>8&255,d[x]=I&255)}return d}gt.split32=Q3;function Z3(u,f){return u>>>f|u<<32-f}gt.rotr32=Z3;function J3(u,f){return u<<f|u>>>32-f}gt.rotl32=J3;function e6(u,f){return u+f>>>0}gt.sum32=e6;function t6(u,f,d){return u+f+d>>>0}gt.sum32_3=t6;function r6(u,f,d,_){return u+f+d+_>>>0}gt.sum32_4=r6;function i6(u,f,d,_,x){return u+f+d+_+x>>>0}gt.sum32_5=i6;function n6(u,f,d,_){var x=u[f],I=u[f+1],E=_+I>>>0,M=(E<_?1:0)+d+x;u[f]=M>>>0,u[f+1]=E}gt.sum64=n6;function a6(u,f,d,_){var x=f+_>>>0,I=(x<f?1:0)+u+d;return I>>>0}gt.sum64_hi=a6;function s6(u,f,d,_){var x=f+_;return x>>>0}gt.sum64_lo=s6;function f6(u,f,d,_,x,I,E,M){var S=0,A=f;A=A+_>>>0,S+=A<f?1:0,A=A+I>>>0,S+=A<I?1:0,A=A+M>>>0,S+=A<M?1:0;var T=u+d+x+E+S;return T>>>0}gt.sum64_4_hi=f6;function o6(u,f,d,_,x,I,E,M){var S=f+_+I+M;return S>>>0}gt.sum64_4_lo=o6;function u6(u,f,d,_,x,I,E,M,S,A){var T=0,D=f;D=D+_>>>0,T+=D<f?1:0,D=D+I>>>0,T+=D<I?1:0,D=D+M>>>0,T+=D<M?1:0,D=D+A>>>0,T+=D<A?1:0;var O=u+d+x+E+S+T;return O>>>0}gt.sum64_5_hi=u6;function c6(u,f,d,_,x,I,E,M,S,A){var T=f+_+I+M+A;return T>>>0}gt.sum64_5_lo=c6;function h6(u,f,d){var _=f<<32-d|u>>>d;return _>>>0}gt.rotr64_hi=h6;function l6(u,f,d){var _=u<<32-d|f>>>d;return _>>>0}gt.rotr64_lo=l6;function d6(u,f,d){return u>>>d}gt.shr64_hi=d6;function p6(u,f,d){var _=u<<32-d|f>>>d;return _>>>0}gt.shr64_lo=p6;var $a={},jl=gt,v6=Qr;function xf(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}$a.BlockHash=xf;xf.prototype.update=function(u,f){if(u=jl.toArray(u,f),this.pending?this.pending=this.pending.concat(u):this.pending=u,this.pendingTotal+=u.length,this.pending.length>=this._delta8){u=this.pending;var d=u.length%this._delta8;this.pending=u.slice(u.length-d,u.length),this.pending.length===0&&(this.pending=null),u=jl.join32(u,0,u.length-d,this.endian);for(var _=0;_<u.length;_+=this._delta32)this._update(u,_,_+this._delta32)}return this};xf.prototype.digest=function(u){return this.update(this._pad()),v6(this.pending===null),this._digest(u)};xf.prototype._pad=function(){var u=this.pendingTotal,f=this._delta8,d=f-(u+this.padLength)%f,_=new Array(d+this.padLength);_[0]=128;for(var x=1;x<d;x++)_[x]=0;if(u<<=3,this.endian==="big"){for(var I=8;I<this.padLength;I++)_[x++]=0;_[x++]=0,_[x++]=0,_[x++]=0,_[x++]=0,_[x++]=u>>>24&255,_[x++]=u>>>16&255,_[x++]=u>>>8&255,_[x++]=u&255}else for(_[x++]=u&255,_[x++]=u>>>8&255,_[x++]=u>>>16&255,_[x++]=u>>>24&255,_[x++]=0,_[x++]=0,_[x++]=0,_[x++]=0,I=8;I<this.padLength;I++)_[x++]=0;return _};var Ha={},Wi={},y6=gt,qi=y6.rotr32;function g6(u,f,d,_){if(u===0)return ty(f,d,_);if(u===1||u===3)return iy(f,d,_);if(u===2)return ry(f,d,_)}Wi.ft_1=g6;function ty(u,f,d){return u&f^~u&d}Wi.ch32=ty;function ry(u,f,d){return u&f^u&d^f&d}Wi.maj32=ry;function iy(u,f,d){return u^f^d}Wi.p32=iy;function m6(u){return qi(u,2)^qi(u,13)^qi(u,22)}Wi.s0_256=m6;function b6(u){return qi(u,6)^qi(u,11)^qi(u,25)}Wi.s1_256=b6;function x6(u){return qi(u,7)^qi(u,18)^u>>>3}Wi.g0_256=x6;function _6(u){return qi(u,17)^qi(u,19)^u>>>10}Wi.g1_256=_6;var Ba=gt,E6=$a,S6=Wi,Ao=Ba.rotl32,c0=Ba.sum32,w6=Ba.sum32_5,C6=S6.ft_1,ny=E6.BlockHash,A6=[1518500249,1859775393,2400959708,3395469782];function Hi(){if(!(this instanceof Hi))return new Hi;ny.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}Ba.inherits(Hi,ny);var B6=Hi;Hi.blockSize=512;Hi.outSize=160;Hi.hmacStrength=80;Hi.padLength=64;Hi.prototype._update=function(u,f){for(var d=this.W,_=0;_<16;_++)d[_]=u[f+_];for(;_<d.length;_++)d[_]=Ao(d[_-3]^d[_-8]^d[_-14]^d[_-16],1);var x=this.h[0],I=this.h[1],E=this.h[2],M=this.h[3],S=this.h[4];for(_=0;_<d.length;_++){var A=~~(_/20),T=w6(Ao(x,5),C6(A,I,E,M),S,d[_],A6[A]);S=M,M=E,E=Ao(I,30),I=x,x=T}this.h[0]=c0(this.h[0],x),this.h[1]=c0(this.h[1],I),this.h[2]=c0(this.h[2],E),this.h[3]=c0(this.h[3],M),this.h[4]=c0(this.h[4],S)};Hi.prototype._digest=function(u){return u==="hex"?Ba.toHex32(this.h,"big"):Ba.split32(this.h,"big")};var Ia=gt,I6=$a,Ga=Wi,T6=Qr,bi=Ia.sum32,M6=Ia.sum32_4,R6=Ia.sum32_5,N6=Ga.ch32,D6=Ga.maj32,O6=Ga.s0_256,P6=Ga.s1_256,L6=Ga.g0_256,k6=Ga.g1_256,ay=I6.BlockHash,U6=[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];function Gi(){if(!(this instanceof Gi))return new Gi;ay.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=U6,this.W=new Array(64)}Ia.inherits(Gi,ay);var sy=Gi;Gi.blockSize=512;Gi.outSize=256;Gi.hmacStrength=192;Gi.padLength=64;Gi.prototype._update=function(u,f){for(var d=this.W,_=0;_<16;_++)d[_]=u[f+_];for(;_<d.length;_++)d[_]=M6(k6(d[_-2]),d[_-7],L6(d[_-15]),d[_-16]);var x=this.h[0],I=this.h[1],E=this.h[2],M=this.h[3],S=this.h[4],A=this.h[5],T=this.h[6],D=this.h[7];for(T6(this.k.length===d.length),_=0;_<d.length;_++){var O=R6(D,P6(S),N6(S,A,T),this.k[_],d[_]),j=bi(O6(x),D6(x,I,E));D=T,T=A,A=S,S=bi(M,O),M=E,E=I,I=x,x=bi(O,j)}this.h[0]=bi(this.h[0],x),this.h[1]=bi(this.h[1],I),this.h[2]=bi(this.h[2],E),this.h[3]=bi(this.h[3],M),this.h[4]=bi(this.h[4],S),this.h[5]=bi(this.h[5],A),this.h[6]=bi(this.h[6],T),this.h[7]=bi(this.h[7],D)};Gi.prototype._digest=function(u){return u==="hex"?Ia.toHex32(this.h,"big"):Ia.split32(this.h,"big")};var oc=gt,fy=sy;function on(){if(!(this instanceof on))return new on;fy.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}oc.inherits(on,fy);var F6=on;on.blockSize=512;on.outSize=224;on.hmacStrength=192;on.padLength=64;on.prototype._digest=function(u){return u==="hex"?oc.toHex32(this.h.slice(0,7),"big"):oc.split32(this.h.slice(0,7),"big")};var Br=gt,q6=$a,V6=Qr,Vi=Br.rotr64_hi,Ki=Br.rotr64_lo,oy=Br.shr64_hi,uy=Br.shr64_lo,hn=Br.sum64,Bo=Br.sum64_hi,Io=Br.sum64_lo,K6=Br.sum64_4_hi,$6=Br.sum64_4_lo,H6=Br.sum64_5_hi,G6=Br.sum64_5_lo,cy=q6.BlockHash,z6=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function wi(){if(!(this instanceof wi))return new wi;cy.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=z6,this.W=new Array(160)}Br.inherits(wi,cy);var hy=wi;wi.blockSize=1024;wi.outSize=512;wi.hmacStrength=192;wi.padLength=128;wi.prototype._prepareBlock=function(u,f){for(var d=this.W,_=0;_<32;_++)d[_]=u[f+_];for(;_<d.length;_+=2){var x=i8(d[_-4],d[_-3]),I=n8(d[_-4],d[_-3]),E=d[_-14],M=d[_-13],S=t8(d[_-30],d[_-29]),A=r8(d[_-30],d[_-29]),T=d[_-32],D=d[_-31];d[_]=K6(x,I,E,M,S,A,T,D),d[_+1]=$6(x,I,E,M,S,A,T,D)}};wi.prototype._update=function(u,f){this._prepareBlock(u,f);var d=this.W,_=this.h[0],x=this.h[1],I=this.h[2],E=this.h[3],M=this.h[4],S=this.h[5],A=this.h[6],T=this.h[7],D=this.h[8],O=this.h[9],j=this.h[10],$=this.h[11],W=this.h[12],Q=this.h[13],X=this.h[14],Y=this.h[15];V6(this.k.length===d.length);for(var ie=0;ie<d.length;ie+=2){var oe=X,ge=Y,be=J6(D,O),ze=e8(D,O),de=j6(D,O,j,$,W),Ce=W6(D,O,j,$,W,Q),ke=this.k[ie],le=this.k[ie+1],re=d[ie],P=d[ie+1],k=H6(oe,ge,be,ze,de,Ce,ke,le,re,P),B=G6(oe,ge,be,ze,de,Ce,ke,le,re,P);oe=Q6(_,x),ge=Z6(_,x),be=Y6(_,x,I,E,M),ze=X6(_,x,I,E,M,S);var z=Bo(oe,ge,be,ze),ee=Io(oe,ge,be,ze);X=W,Y=Q,W=j,Q=$,j=D,$=O,D=Bo(A,T,k,B),O=Io(T,T,k,B),A=M,T=S,M=I,S=E,I=_,E=x,_=Bo(k,B,z,ee),x=Io(k,B,z,ee)}hn(this.h,0,_,x),hn(this.h,2,I,E),hn(this.h,4,M,S),hn(this.h,6,A,T),hn(this.h,8,D,O),hn(this.h,10,j,$),hn(this.h,12,W,Q),hn(this.h,14,X,Y)};wi.prototype._digest=function(u){return u==="hex"?Br.toHex32(this.h,"big"):Br.split32(this.h,"big")};function j6(u,f,d,_,x){var I=u&d^~u&x;return I<0&&(I+=4294967296),I}function W6(u,f,d,_,x,I){var E=f&_^~f&I;return E<0&&(E+=4294967296),E}function Y6(u,f,d,_,x){var I=u&d^u&x^d&x;return I<0&&(I+=4294967296),I}function X6(u,f,d,_,x,I){var E=f&_^f&I^_&I;return E<0&&(E+=4294967296),E}function Q6(u,f){var d=Vi(u,f,28),_=Vi(f,u,2),x=Vi(f,u,7),I=d^_^x;return I<0&&(I+=4294967296),I}function Z6(u,f){var d=Ki(u,f,28),_=Ki(f,u,2),x=Ki(f,u,7),I=d^_^x;return I<0&&(I+=4294967296),I}function J6(u,f){var d=Vi(u,f,14),_=Vi(u,f,18),x=Vi(f,u,9),I=d^_^x;return I<0&&(I+=4294967296),I}function e8(u,f){var d=Ki(u,f,14),_=Ki(u,f,18),x=Ki(f,u,9),I=d^_^x;return I<0&&(I+=4294967296),I}function t8(u,f){var d=Vi(u,f,1),_=Vi(u,f,8),x=oy(u,f,7),I=d^_^x;return I<0&&(I+=4294967296),I}function r8(u,f){var d=Ki(u,f,1),_=Ki(u,f,8),x=uy(u,f,7),I=d^_^x;return I<0&&(I+=4294967296),I}function i8(u,f){var d=Vi(u,f,19),_=Vi(f,u,29),x=oy(u,f,6),I=d^_^x;return I<0&&(I+=4294967296),I}function n8(u,f){var d=Ki(u,f,19),_=Ki(f,u,29),x=uy(u,f,6),I=d^_^x;return I<0&&(I+=4294967296),I}var uc=gt,ly=hy;function un(){if(!(this instanceof un))return new un;ly.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}uc.inherits(un,ly);var a8=un;un.blockSize=1024;un.outSize=384;un.hmacStrength=192;un.padLength=128;un.prototype._digest=function(u){return u==="hex"?uc.toHex32(this.h.slice(0,12),"big"):uc.split32(this.h.slice(0,12),"big")};Ha.sha1=B6;Ha.sha224=F6;Ha.sha256=sy;Ha.sha384=a8;Ha.sha512=hy;var dy={},Jn=gt,s8=$a,J0=Jn.rotl32,Wl=Jn.sum32,h0=Jn.sum32_3,Yl=Jn.sum32_4,py=s8.BlockHash;function zi(){if(!(this instanceof zi))return new zi;py.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}Jn.inherits(zi,py);dy.ripemd160=zi;zi.blockSize=512;zi.outSize=160;zi.hmacStrength=192;zi.padLength=64;zi.prototype._update=function(u,f){for(var d=this.h[0],_=this.h[1],x=this.h[2],I=this.h[3],E=this.h[4],M=d,S=_,A=x,T=I,D=E,O=0;O<80;O++){var j=Wl(J0(Yl(d,Xl(O,_,x,I),u[u8[O]+f],f8(O)),h8[O]),E);d=E,E=I,I=J0(x,10),x=_,_=j,j=Wl(J0(Yl(M,Xl(79-O,S,A,T),u[c8[O]+f],o8(O)),l8[O]),D),M=D,D=T,T=J0(A,10),A=S,S=j}j=h0(this.h[1],x,T),this.h[1]=h0(this.h[2],I,D),this.h[2]=h0(this.h[3],E,M),this.h[3]=h0(this.h[4],d,S),this.h[4]=h0(this.h[0],_,A),this.h[0]=j};zi.prototype._digest=function(u){return u==="hex"?Jn.toHex32(this.h,"little"):Jn.split32(this.h,"little")};function Xl(u,f,d,_){return u<=15?f^d^_:u<=31?f&d|~f&_:u<=47?(f|~d)^_:u<=63?f&_|d&~_:f^(d|~_)}function f8(u){return u<=15?0:u<=31?1518500249:u<=47?1859775393:u<=63?2400959708:2840853838}function o8(u){return u<=15?1352829926:u<=31?1548603684:u<=47?1836072691:u<=63?2053994217:0}var u8=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],c8=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],h8=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],l8=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],d8=gt,p8=Qr;function Ta(u,f,d){if(!(this instanceof Ta))return new Ta(u,f,d);this.Hash=u,this.blockSize=u.blockSize/8,this.outSize=u.outSize/8,this.inner=null,this.outer=null,this._init(d8.toArray(f,d))}var v8=Ta;Ta.prototype._init=function(u){u.length>this.blockSize&&(u=new this.Hash().update(u).digest()),p8(u.length<=this.blockSize);for(var f=u.length;f<this.blockSize;f++)u.push(0);for(f=0;f<u.length;f++)u[f]^=54;for(this.inner=new this.Hash().update(u),f=0;f<u.length;f++)u[f]^=106;this.outer=new this.Hash().update(u)};Ta.prototype.update=function(u,f){return this.inner.update(u,f),this};Ta.prototype.digest=function(u){return this.outer.update(this.inner.digest()),this.outer.digest(u)};(function(u){var f=u;f.utils=gt,f.common=$a,f.sha=Ha,f.ripemd=dy,f.hmac=v8,f.sha1=f.sha.sha1,f.sha256=f.sha.sha256,f.sha224=f.sha.sha224,f.sha384=f.sha.sha384,f.sha512=f.sha.sha512,f.ripemd160=f.ripemd.ripemd160})(bf);var To,Ql;function y8(){return Ql||(Ql=1,To={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}),To}(function(u){var f=u,d=bf,_=oh,x=Pr,I=x.assert;function E(A){A.type==="short"?this.curve=new _.short(A):A.type==="edwards"?this.curve=new _.edwards(A):this.curve=new _.mont(A),this.g=this.curve.g,this.n=this.curve.n,this.hash=A.hash,I(this.g.validate(),"Invalid curve"),I(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}f.PresetCurve=E;function M(A,T){Object.defineProperty(f,A,{configurable:!0,enumerable:!0,get:function(){var D=new E(T);return Object.defineProperty(f,A,{configurable:!0,enumerable:!0,value:D}),D}})}M("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:d.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),M("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:d.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),M("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:d.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),M("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:d.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),M("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:d.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),M("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:d.sha256,gRed:!1,g:["9"]}),M("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:d.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var S;try{S=y8()}catch{S=void 0}M("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:d.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",S]})})(mf);var g8=bf,Wn=fh,vy=Qr;function Cn(u){if(!(this instanceof Cn))return new Cn(u);this.hash=u.hash,this.predResist=!!u.predResist,this.outLen=this.hash.outSize,this.minEntropy=u.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var f=Wn.toArray(u.entropy,u.entropyEnc||"hex"),d=Wn.toArray(u.nonce,u.nonceEnc||"hex"),_=Wn.toArray(u.pers,u.persEnc||"hex");vy(f.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(f,d,_)}var m8=Cn;Cn.prototype._init=function(u,f,d){var _=u.concat(f).concat(d);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var x=0;x<this.V.length;x++)this.K[x]=0,this.V[x]=1;this._update(_),this._reseed=1,this.reseedInterval=281474976710656};Cn.prototype._hmac=function(){return new g8.hmac(this.hash,this.K)};Cn.prototype._update=function(u){var f=this._hmac().update(this.V).update([0]);u&&(f=f.update(u)),this.K=f.digest(),this.V=this._hmac().update(this.V).digest(),u&&(this.K=this._hmac().update(this.V).update([1]).update(u).digest(),this.V=this._hmac().update(this.V).digest())};Cn.prototype.reseed=function(u,f,d,_){typeof f!="string"&&(_=d,d=f,f=null),u=Wn.toArray(u,f),d=Wn.toArray(d,_),vy(u.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(u.concat(d||[])),this._reseed=1};Cn.prototype.generate=function(u,f,d,_){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof f!="string"&&(_=d,d=f,f=null),d&&(d=Wn.toArray(d,_||"hex"),this._update(d));for(var x=[];x.length<u;)this.V=this._hmac().update(this.V).digest(),x=x.concat(this.V);var I=x.slice(0,u);return this._update(d),this._reseed++,Wn.encode(I,f)};var b8=rr,x8=Pr,cc=x8.assert;function dr(u,f){this.ec=u,this.priv=null,this.pub=null,f.priv&&this._importPrivate(f.priv,f.privEnc),f.pub&&this._importPublic(f.pub,f.pubEnc)}var _8=dr;dr.fromPublic=function(u,f,d){return f instanceof dr?f:new dr(u,{pub:f,pubEnc:d})};dr.fromPrivate=function(u,f,d){return f instanceof dr?f:new dr(u,{priv:f,privEnc:d})};dr.prototype.validate=function(){var u=this.getPublic();return u.isInfinity()?{result:!1,reason:"Invalid public key"}:u.validate()?u.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}};dr.prototype.getPublic=function(u,f){return typeof u=="string"&&(f=u,u=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),f?this.pub.encode(f,u):this.pub};dr.prototype.getPrivate=function(u){return u==="hex"?this.priv.toString(16,2):this.priv};dr.prototype._importPrivate=function(u,f){this.priv=new b8(u,f||16),this.priv=this.priv.umod(this.ec.curve.n)};dr.prototype._importPublic=function(u,f){if(u.x||u.y){this.ec.curve.type==="mont"?cc(u.x,"Need x coordinate"):(this.ec.curve.type==="short"||this.ec.curve.type==="edwards")&&cc(u.x&&u.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(u.x,u.y);return}this.pub=this.ec.curve.decodePoint(u,f)};dr.prototype.derive=function(u){return u.validate()||cc(u.validate(),"public point not validated"),u.mul(this.priv).getX()};dr.prototype.sign=function(u,f,d){return this.ec.sign(u,this,f,d)};dr.prototype.verify=function(u,f){return this.ec.verify(u,f,this)};dr.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"};var Ds=rr,ch=Pr,E8=ch.assert;function _f(u,f){if(u instanceof _f)return u;this._importDER(u,f)||(E8(u.r&&u.s,"Signature without r or s"),this.r=new Ds(u.r,16),this.s=new Ds(u.s,16),u.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=u.recoveryParam)}var S8=_f;function w8(){this.place=0}function Mo(u,f){var d=u[f.place++];if(!(d&128))return d;var _=d&15;if(_===0||_>4)return!1;for(var x=0,I=0,E=f.place;I<_;I++,E++)x<<=8,x|=u[E],x>>>=0;return x<=127?!1:(f.place=E,x)}function Zl(u){for(var f=0,d=u.length-1;!u[f]&&!(u[f+1]&128)&&f<d;)f++;return f===0?u:u.slice(f)}_f.prototype._importDER=function(u,f){u=ch.toArray(u,f);var d=new w8;if(u[d.place++]!==48)return!1;var _=Mo(u,d);if(_===!1||_+d.place!==u.length||u[d.place++]!==2)return!1;var x=Mo(u,d);if(x===!1)return!1;var I=u.slice(d.place,x+d.place);if(d.place+=x,u[d.place++]!==2)return!1;var E=Mo(u,d);if(E===!1||u.length!==E+d.place)return!1;var M=u.slice(d.place,E+d.place);if(I[0]===0)if(I[1]&128)I=I.slice(1);else return!1;if(M[0]===0)if(M[1]&128)M=M.slice(1);else return!1;return this.r=new Ds(I),this.s=new Ds(M),this.recoveryParam=null,!0};function Ro(u,f){if(f<128){u.push(f);return}var d=1+(Math.log(f)/Math.LN2>>>3);for(u.push(d|128);--d;)u.push(f>>>(d<<3)&255);u.push(f)}_f.prototype.toDER=function(u){var f=this.r.toArray(),d=this.s.toArray();for(f[0]&128&&(f=[0].concat(f)),d[0]&128&&(d=[0].concat(d)),f=Zl(f),d=Zl(d);!d[0]&&!(d[1]&128);)d=d.slice(1);var _=[2];Ro(_,f.length),_=_.concat(f),_.push(2),Ro(_,d.length);var x=_.concat(d),I=[48];return Ro(I,x.length),I=I.concat(x),ch.encode(I,u)};var No,Jl;function C8(){if(Jl)return No;Jl=1;var u=rr,f=m8,d=Pr,_=mf,x=nh(),I=d.assert,E=_8,M=S8;function S(A){if(!(this instanceof S))return new S(A);typeof A=="string"&&(I(Object.prototype.hasOwnProperty.call(_,A),"Unknown curve "+A),A=_[A]),A instanceof _.PresetCurve&&(A={curve:A}),this.curve=A.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=A.curve.g,this.g.precompute(A.curve.n.bitLength()+1),this.hash=A.hash||A.curve.hash}return No=S,S.prototype.keyPair=function(A){return new E(this,A)},S.prototype.keyFromPrivate=function(A,T){return E.fromPrivate(this,A,T)},S.prototype.keyFromPublic=function(A,T){return E.fromPublic(this,A,T)},S.prototype.genKeyPair=function(A){A||(A={});for(var T=new f({hash:this.hash,pers:A.pers,persEnc:A.persEnc||"utf8",entropy:A.entropy||x(this.hash.hmacStrength),entropyEnc:A.entropy&&A.entropyEnc||"utf8",nonce:this.n.toArray()}),D=this.n.byteLength(),O=this.n.sub(new u(2));;){var j=new u(T.generate(D));if(!(j.cmp(O)>0))return j.iaddn(1),this.keyFromPrivate(j)}},S.prototype._truncateToN=function(A,T){var D=A.byteLength()*8-this.n.bitLength();return D>0&&(A=A.ushrn(D)),!T&&A.cmp(this.n)>=0?A.sub(this.n):A},S.prototype.sign=function(A,T,D,O){typeof D=="object"&&(O=D,D=null),O||(O={}),T=this.keyFromPrivate(T,D),A=this._truncateToN(new u(A,16));for(var j=this.n.byteLength(),$=T.getPrivate().toArray("be",j),W=A.toArray("be",j),Q=new f({hash:this.hash,entropy:$,nonce:W,pers:O.pers,persEnc:O.persEnc||"utf8"}),X=this.n.sub(new u(1)),Y=0;;Y++){var ie=O.k?O.k(Y):new u(Q.generate(this.n.byteLength()));if(ie=this._truncateToN(ie,!0),!(ie.cmpn(1)<=0||ie.cmp(X)>=0)){var oe=this.g.mul(ie);if(!oe.isInfinity()){var ge=oe.getX(),be=ge.umod(this.n);if(be.cmpn(0)!==0){var ze=ie.invm(this.n).mul(be.mul(T.getPrivate()).iadd(A));if(ze=ze.umod(this.n),ze.cmpn(0)!==0){var de=(oe.getY().isOdd()?1:0)|(ge.cmp(be)!==0?2:0);return O.canonical&&ze.cmp(this.nh)>0&&(ze=this.n.sub(ze),de^=1),new M({r:be,s:ze,recoveryParam:de})}}}}}},S.prototype.verify=function(A,T,D,O){A=this._truncateToN(new u(A,16)),D=this.keyFromPublic(D,O),T=new M(T,"hex");var j=T.r,$=T.s;if(j.cmpn(1)<0||j.cmp(this.n)>=0||$.cmpn(1)<0||$.cmp(this.n)>=0)return!1;var W=$.invm(this.n),Q=W.mul(A).umod(this.n),X=W.mul(j).umod(this.n),Y;return this.curve._maxwellTrick?(Y=this.g.jmulAdd(Q,D.getPublic(),X),Y.isInfinity()?!1:Y.eqXToP(j)):(Y=this.g.mulAdd(Q,D.getPublic(),X),Y.isInfinity()?!1:Y.getX().umod(this.n).cmp(j)===0)},S.prototype.recoverPubKey=function(A,T,D,O){I((3&D)===D,"The recovery param is more than two bits"),T=new M(T,O);var j=this.n,$=new u(A),W=T.r,Q=T.s,X=D&1,Y=D>>1;if(W.cmp(this.curve.p.umod(this.curve.n))>=0&&Y)throw new Error("Unable to find sencond key candinate");Y?W=this.curve.pointFromX(W.add(this.curve.n),X):W=this.curve.pointFromX(W,X);var ie=T.r.invm(j),oe=j.sub($).mul(ie).umod(j),ge=Q.mul(ie).umod(j);return this.g.mulAdd(oe,W,ge)},S.prototype.getKeyRecoveryParam=function(A,T,D,O){if(T=new M(T,O),T.recoveryParam!==null)return T.recoveryParam;for(var j=0;j<4;j++){var $;try{$=this.recoverPubKey(A,T,j)}catch{continue}if($.eq(D))return j}throw new Error("Unable to find valid recovery factor")},No}var K0=Pr,yy=K0.assert,ed=K0.parseBytes,za=K0.cachedProperty;function Zt(u,f){this.eddsa=u,this._secret=ed(f.secret),u.isPoint(f.pub)?this._pub=f.pub:this._pubBytes=ed(f.pub)}Zt.fromPublic=function(u,f){return f instanceof Zt?f:new Zt(u,{pub:f})};Zt.fromSecret=function(u,f){return f instanceof Zt?f:new Zt(u,{secret:f})};Zt.prototype.secret=function(){return this._secret};za(Zt,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())});za(Zt,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())});za(Zt,"privBytes",function(){var u=this.eddsa,f=this.hash(),d=u.encodingLength-1,_=f.slice(0,u.encodingLength);return _[0]&=248,_[d]&=127,_[d]|=64,_});za(Zt,"priv",function(){return this.eddsa.decodeInt(this.privBytes())});za(Zt,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()});za(Zt,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)});Zt.prototype.sign=function(u){return yy(this._secret,"KeyPair can only verify"),this.eddsa.sign(u,this)};Zt.prototype.verify=function(u,f){return this.eddsa.verify(u,f,this)};Zt.prototype.getSecret=function(u){return yy(this._secret,"KeyPair is public only"),K0.encode(this.secret(),u)};Zt.prototype.getPublic=function(u){return K0.encode(this.pubBytes(),u)};var A8=Zt,B8=rr,Ef=Pr,I8=Ef.assert,Sf=Ef.cachedProperty,T8=Ef.parseBytes;function na(u,f){this.eddsa=u,typeof f!="object"&&(f=T8(f)),Array.isArray(f)&&(f={R:f.slice(0,u.encodingLength),S:f.slice(u.encodingLength)}),I8(f.R&&f.S,"Signature without R or S"),u.isPoint(f.R)&&(this._R=f.R),f.S instanceof B8&&(this._S=f.S),this._Rencoded=Array.isArray(f.R)?f.R:f.Rencoded,this._Sencoded=Array.isArray(f.S)?f.S:f.Sencoded}Sf(na,"S",function(){return this.eddsa.decodeInt(this.Sencoded())});Sf(na,"R",function(){return this.eddsa.decodePoint(this.Rencoded())});Sf(na,"Rencoded",function(){return this.eddsa.encodePoint(this.R())});Sf(na,"Sencoded",function(){return this.eddsa.encodeInt(this.S())});na.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())};na.prototype.toHex=function(){return Ef.encode(this.toBytes(),"hex").toUpperCase()};var M8=na,R8=bf,N8=mf,Ma=Pr,D8=Ma.assert,gy=Ma.parseBytes,my=A8,td=M8;function Ir(u){if(D8(u==="ed25519","only tested with ed25519 so far"),!(this instanceof Ir))return new Ir(u);u=N8[u].curve,this.curve=u,this.g=u.g,this.g.precompute(u.n.bitLength()+1),this.pointClass=u.point().constructor,this.encodingLength=Math.ceil(u.n.bitLength()/8),this.hash=R8.sha512}var O8=Ir;Ir.prototype.sign=function(u,f){u=gy(u);var d=this.keyFromSecret(f),_=this.hashInt(d.messagePrefix(),u),x=this.g.mul(_),I=this.encodePoint(x),E=this.hashInt(I,d.pubBytes(),u).mul(d.priv()),M=_.add(E).umod(this.curve.n);return this.makeSignature({R:x,S:M,Rencoded:I})};Ir.prototype.verify=function(u,f,d){u=gy(u),f=this.makeSignature(f);var _=this.keyFromPublic(d),x=this.hashInt(f.Rencoded(),_.pubBytes(),u),I=this.g.mul(f.S()),E=f.R().add(_.pub().mul(x));return E.eq(I)};Ir.prototype.hashInt=function(){for(var u=this.hash(),f=0;f<arguments.length;f++)u.update(arguments[f]);return Ma.intFromLE(u.digest()).umod(this.curve.n)};Ir.prototype.keyFromPublic=function(u){return my.fromPublic(this,u)};Ir.prototype.keyFromSecret=function(u){return my.fromSecret(this,u)};Ir.prototype.makeSignature=function(u){return u instanceof td?u:new td(this,u)};Ir.prototype.encodePoint=function(u){var f=u.getY().toArray("le",this.encodingLength);return f[this.encodingLength-1]|=u.getX().isOdd()?128:0,f};Ir.prototype.decodePoint=function(u){u=Ma.parseBytes(u);var f=u.length-1,d=u.slice(0,f).concat(u[f]&-129),_=(u[f]&128)!==0,x=Ma.intFromLE(d);return this.curve.pointFromY(x,_)};Ir.prototype.encodeInt=function(u){return u.toArray("le",this.encodingLength)};Ir.prototype.decodeInt=function(u){return Ma.intFromLE(u)};Ir.prototype.isPoint=function(u){return u instanceof this.pointClass};var rd;function hh(){return rd||(rd=1,function(u){var f=u;f.version=O3.version,f.utils=Pr,f.rand=nh(),f.curve=oh,f.curves=mf,f.ec=C8(),f.eddsa=O8}(Co)),Co}var lh={exports:{}};(function(u){(function(f,d){function _(P,k){if(!P)throw new Error(k||"Assertion failed")}function x(P,k){P.super_=k;var B=function(){};B.prototype=k.prototype,P.prototype=new B,P.prototype.constructor=P}function I(P,k,B){if(I.isBN(P))return P;this.negative=0,this.words=null,this.length=0,this.red=null,P!==null&&((k==="le"||k==="be")&&(B=k,k=10),this._init(P||0,k||10,B||"be"))}typeof f=="object"?f.exports=I:d.BN=I,I.BN=I,I.wordSize=26;var E;try{typeof window<"u"&&typeof window.Buffer<"u"?E=window.Buffer:E=pe.Buffer}catch{}I.isBN=function(P){return P instanceof I?!0:P!==null&&typeof P=="object"&&P.constructor.wordSize===I.wordSize&&Array.isArray(P.words)},I.max=function(P,k){return P.cmp(k)>0?P:k},I.min=function(P,k){return P.cmp(k)<0?P:k},I.prototype._init=function(P,k,B){if(typeof P=="number")return this._initNumber(P,k,B);if(typeof P=="object")return this._initArray(P,k,B);k==="hex"&&(k=16),_(k===(k|0)&&k>=2&&k<=36),P=P.toString().replace(/\s+/g,"");var z=0;P[0]==="-"&&(z++,this.negative=1),z<P.length&&(k===16?this._parseHex(P,z,B):(this._parseBase(P,k,z),B==="le"&&this._initArray(this.toArray(),k,B)))},I.prototype._initNumber=function(P,k,B){P<0&&(this.negative=1,P=-P),P<67108864?(this.words=[P&67108863],this.length=1):P<4503599627370496?(this.words=[P&67108863,P/67108864&67108863],this.length=2):(_(P<9007199254740992),this.words=[P&67108863,P/67108864&67108863,1],this.length=3),B==="le"&&this._initArray(this.toArray(),k,B)},I.prototype._initArray=function(P,k,B){if(_(typeof P.length=="number"),P.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(P.length/3),this.words=new Array(this.length);for(var z=0;z<this.length;z++)this.words[z]=0;var ee,H,q=0;if(B==="be")for(z=P.length-1,ee=0;z>=0;z-=3)H=P[z]|P[z-1]<<8|P[z-2]<<16,this.words[ee]|=H<<q&67108863,this.words[ee+1]=H>>>26-q&67108863,q+=24,q>=26&&(q-=26,ee++);else if(B==="le")for(z=0,ee=0;z<P.length;z+=3)H=P[z]|P[z+1]<<8|P[z+2]<<16,this.words[ee]|=H<<q&67108863,this.words[ee+1]=H>>>26-q&67108863,q+=24,q>=26&&(q-=26,ee++);return this._strip()};function M(P,k){var B=P.charCodeAt(k);if(B>=48&&B<=57)return B-48;if(B>=65&&B<=70)return B-55;if(B>=97&&B<=102)return B-87;_(!1,"Invalid character in "+P)}function S(P,k,B){var z=M(P,B);return B-1>=k&&(z|=M(P,B-1)<<4),z}I.prototype._parseHex=function(P,k,B){this.length=Math.ceil((P.length-k)/6),this.words=new Array(this.length);for(var z=0;z<this.length;z++)this.words[z]=0;var ee=0,H=0,q;if(B==="be")for(z=P.length-1;z>=k;z-=2)q=S(P,k,z)<<ee,this.words[H]|=q&67108863,ee>=18?(ee-=18,H+=1,this.words[H]|=q>>>26):ee+=8;else{var J=P.length-k;for(z=J%2===0?k+1:k;z<P.length;z+=2)q=S(P,k,z)<<ee,this.words[H]|=q&67108863,ee>=18?(ee-=18,H+=1,this.words[H]|=q>>>26):ee+=8}this._strip()};function A(P,k,B,z){for(var ee=0,H=0,q=Math.min(P.length,B),J=k;J<q;J++){var U=P.charCodeAt(J)-48;ee*=z,U>=49?H=U-49+10:U>=17?H=U-17+10:H=U,_(U>=0&&H<z,"Invalid character"),ee+=H}return ee}I.prototype._parseBase=function(P,k,B){this.words=[0],this.length=1;for(var z=0,ee=1;ee<=67108863;ee*=k)z++;z--,ee=ee/k|0;for(var H=P.length-B,q=H%z,J=Math.min(H,H-q)+B,U=0,Z=B;Z<J;Z+=z)U=A(P,Z,Z+z,k),this.imuln(ee),this.words[0]+U<67108864?this.words[0]+=U:this._iaddn(U);if(q!==0){var ve=1;for(U=A(P,Z,P.length,k),Z=0;Z<q;Z++)ve*=k;this.imuln(ve),this.words[0]+U<67108864?this.words[0]+=U:this._iaddn(U)}this._strip()},I.prototype.copy=function(P){P.words=new Array(this.length);for(var k=0;k<this.length;k++)P.words[k]=this.words[k];P.length=this.length,P.negative=this.negative,P.red=this.red};function T(P,k){P.words=k.words,P.length=k.length,P.negative=k.negative,P.red=k.red}if(I.prototype._move=function(P){T(P,this)},I.prototype.clone=function(){var P=new I(null);return this.copy(P),P},I.prototype._expand=function(P){for(;this.length<P;)this.words[this.length++]=0;return this},I.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},I.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{I.prototype[Symbol.for("nodejs.util.inspect.custom")]=D}catch{I.prototype.inspect=D}else I.prototype.inspect=D;function D(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var O=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],j=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],$=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];I.prototype.toString=function(P,k){P=P||10,k=k|0||1;var B;if(P===16||P==="hex"){B="";for(var z=0,ee=0,H=0;H<this.length;H++){var q=this.words[H],J=((q<<z|ee)&16777215).toString(16);ee=q>>>24-z&16777215,z+=2,z>=26&&(z-=26,H--),ee!==0||H!==this.length-1?B=O[6-J.length]+J+B:B=J+B}for(ee!==0&&(B=ee.toString(16)+B);B.length%k!==0;)B="0"+B;return this.negative!==0&&(B="-"+B),B}if(P===(P|0)&&P>=2&&P<=36){var U=j[P],Z=$[P];B="";var ve=this.clone();for(ve.negative=0;!ve.isZero();){var Ye=ve.modrn(Z).toString(P);ve=ve.idivn(Z),ve.isZero()?B=Ye+B:B=O[U-Ye.length]+Ye+B}for(this.isZero()&&(B="0"+B);B.length%k!==0;)B="0"+B;return this.negative!==0&&(B="-"+B),B}_(!1,"Base should be between 2 and 36")},I.prototype.toNumber=function(){var P=this.words[0];return this.length===2?P+=this.words[1]*67108864:this.length===3&&this.words[2]===1?P+=4503599627370496+this.words[1]*67108864:this.length>2&&_(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-P:P},I.prototype.toJSON=function(){return this.toString(16,2)},E&&(I.prototype.toBuffer=function(P,k){return this.toArrayLike(E,P,k)}),I.prototype.toArray=function(P,k){return this.toArrayLike(Array,P,k)};var W=function(P,k){return P.allocUnsafe?P.allocUnsafe(k):new P(k)};I.prototype.toArrayLike=function(P,k,B){this._strip();var z=this.byteLength(),ee=B||Math.max(1,z);_(z<=ee,"byte array longer than desired length"),_(ee>0,"Requested array length <= 0");var H=W(P,ee),q=k==="le"?"LE":"BE";return this["_toArrayLike"+q](H,z),H},I.prototype._toArrayLikeLE=function(P,k){for(var B=0,z=0,ee=0,H=0;ee<this.length;ee++){var q=this.words[ee]<<H|z;P[B++]=q&255,B<P.length&&(P[B++]=q>>8&255),B<P.length&&(P[B++]=q>>16&255),H===6?(B<P.length&&(P[B++]=q>>24&255),z=0,H=0):(z=q>>>24,H+=2)}if(B<P.length)for(P[B++]=z;B<P.length;)P[B++]=0},I.prototype._toArrayLikeBE=function(P,k){for(var B=P.length-1,z=0,ee=0,H=0;ee<this.length;ee++){var q=this.words[ee]<<H|z;P[B--]=q&255,B>=0&&(P[B--]=q>>8&255),B>=0&&(P[B--]=q>>16&255),H===6?(B>=0&&(P[B--]=q>>24&255),z=0,H=0):(z=q>>>24,H+=2)}if(B>=0)for(P[B--]=z;B>=0;)P[B--]=0},Math.clz32?I.prototype._countBits=function(P){return 32-Math.clz32(P)}:I.prototype._countBits=function(P){var k=P,B=0;return k>=4096&&(B+=13,k>>>=13),k>=64&&(B+=7,k>>>=7),k>=8&&(B+=4,k>>>=4),k>=2&&(B+=2,k>>>=2),B+k},I.prototype._zeroBits=function(P){if(P===0)return 26;var k=P,B=0;return k&8191||(B+=13,k>>>=13),k&127||(B+=7,k>>>=7),k&15||(B+=4,k>>>=4),k&3||(B+=2,k>>>=2),k&1||B++,B},I.prototype.bitLength=function(){var P=this.words[this.length-1],k=this._countBits(P);return(this.length-1)*26+k};function Q(P){for(var k=new Array(P.bitLength()),B=0;B<k.length;B++){var z=B/26|0,ee=B%26;k[B]=P.words[z]>>>ee&1}return k}I.prototype.zeroBits=function(){if(this.isZero())return 0;for(var P=0,k=0;k<this.length;k++){var B=this._zeroBits(this.words[k]);if(P+=B,B!==26)break}return P},I.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},I.prototype.toTwos=function(P){return this.negative!==0?this.abs().inotn(P).iaddn(1):this.clone()},I.prototype.fromTwos=function(P){return this.testn(P-1)?this.notn(P).iaddn(1).ineg():this.clone()},I.prototype.isNeg=function(){return this.negative!==0},I.prototype.neg=function(){return this.clone().ineg()},I.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},I.prototype.iuor=function(P){for(;this.length<P.length;)this.words[this.length++]=0;for(var k=0;k<P.length;k++)this.words[k]=this.words[k]|P.words[k];return this._strip()},I.prototype.ior=function(P){return _((this.negative|P.negative)===0),this.iuor(P)},I.prototype.or=function(P){return this.length>P.length?this.clone().ior(P):P.clone().ior(this)},I.prototype.uor=function(P){return this.length>P.length?this.clone().iuor(P):P.clone().iuor(this)},I.prototype.iuand=function(P){var k;this.length>P.length?k=P:k=this;for(var B=0;B<k.length;B++)this.words[B]=this.words[B]&P.words[B];return this.length=k.length,this._strip()},I.prototype.iand=function(P){return _((this.negative|P.negative)===0),this.iuand(P)},I.prototype.and=function(P){return this.length>P.length?this.clone().iand(P):P.clone().iand(this)},I.prototype.uand=function(P){return this.length>P.length?this.clone().iuand(P):P.clone().iuand(this)},I.prototype.iuxor=function(P){var k,B;this.length>P.length?(k=this,B=P):(k=P,B=this);for(var z=0;z<B.length;z++)this.words[z]=k.words[z]^B.words[z];if(this!==k)for(;z<k.length;z++)this.words[z]=k.words[z];return this.length=k.length,this._strip()},I.prototype.ixor=function(P){return _((this.negative|P.negative)===0),this.iuxor(P)},I.prototype.xor=function(P){return this.length>P.length?this.clone().ixor(P):P.clone().ixor(this)},I.prototype.uxor=function(P){return this.length>P.length?this.clone().iuxor(P):P.clone().iuxor(this)},I.prototype.inotn=function(P){_(typeof P=="number"&&P>=0);var k=Math.ceil(P/26)|0,B=P%26;this._expand(k),B>0&&k--;for(var z=0;z<k;z++)this.words[z]=~this.words[z]&67108863;return B>0&&(this.words[z]=~this.words[z]&67108863>>26-B),this._strip()},I.prototype.notn=function(P){return this.clone().inotn(P)},I.prototype.setn=function(P,k){_(typeof P=="number"&&P>=0);var B=P/26|0,z=P%26;return this._expand(B+1),k?this.words[B]=this.words[B]|1<<z:this.words[B]=this.words[B]&~(1<<z),this._strip()},I.prototype.iadd=function(P){var k;if(this.negative!==0&&P.negative===0)return this.negative=0,k=this.isub(P),this.negative^=1,this._normSign();if(this.negative===0&&P.negative!==0)return P.negative=0,k=this.isub(P),P.negative=1,k._normSign();var B,z;this.length>P.length?(B=this,z=P):(B=P,z=this);for(var ee=0,H=0;H<z.length;H++)k=(B.words[H]|0)+(z.words[H]|0)+ee,this.words[H]=k&67108863,ee=k>>>26;for(;ee!==0&&H<B.length;H++)k=(B.words[H]|0)+ee,this.words[H]=k&67108863,ee=k>>>26;if(this.length=B.length,ee!==0)this.words[this.length]=ee,this.length++;else if(B!==this)for(;H<B.length;H++)this.words[H]=B.words[H];return this},I.prototype.add=function(P){var k;return P.negative!==0&&this.negative===0?(P.negative=0,k=this.sub(P),P.negative^=1,k):P.negative===0&&this.negative!==0?(this.negative=0,k=P.sub(this),this.negative=1,k):this.length>P.length?this.clone().iadd(P):P.clone().iadd(this)},I.prototype.isub=function(P){if(P.negative!==0){P.negative=0;var k=this.iadd(P);return P.negative=1,k._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(P),this.negative=1,this._normSign();var B=this.cmp(P);if(B===0)return this.negative=0,this.length=1,this.words[0]=0,this;var z,ee;B>0?(z=this,ee=P):(z=P,ee=this);for(var H=0,q=0;q<ee.length;q++)k=(z.words[q]|0)-(ee.words[q]|0)+H,H=k>>26,this.words[q]=k&67108863;for(;H!==0&&q<z.length;q++)k=(z.words[q]|0)+H,H=k>>26,this.words[q]=k&67108863;if(H===0&&q<z.length&&z!==this)for(;q<z.length;q++)this.words[q]=z.words[q];return this.length=Math.max(this.length,q),z!==this&&(this.negative=1),this._strip()},I.prototype.sub=function(P){return this.clone().isub(P)};function X(P,k,B){B.negative=k.negative^P.negative;var z=P.length+k.length|0;B.length=z,z=z-1|0;var ee=P.words[0]|0,H=k.words[0]|0,q=ee*H,J=q&67108863,U=q/67108864|0;B.words[0]=J;for(var Z=1;Z<z;Z++){for(var ve=U>>>26,Ye=U&67108863,rt=Math.min(Z,k.length-1),Ue=Math.max(0,Z-P.length+1);Ue<=rt;Ue++){var Qe=Z-Ue|0;ee=P.words[Qe]|0,H=k.words[Ue]|0,q=ee*H+Ye,ve+=q/67108864|0,Ye=q&67108863}B.words[Z]=Ye|0,U=ve|0}return U!==0?B.words[Z]=U|0:B.length--,B._strip()}var Y=function(P,k,B){var z=P.words,ee=k.words,H=B.words,q=0,J,U,Z,ve=z[0]|0,Ye=ve&8191,rt=ve>>>13,Ue=z[1]|0,Qe=Ue&8191,vt=Ue>>>13,ri=z[2]|0,ci=ri&8191,tt=ri>>>13,et=z[3]|0,$e=et&8191,Le=et>>>13,ot=z[4]|0,Oe=ot&8191,Ne=ot>>>13,Fe=z[5]|0,Je=Fe&8191,Dt=Fe>>>13,oi=z[6]|0,Bt=oi&8191,li=oi>>>13,ii=z[7]|0,Ot=ii&8191,St=ii>>>13,pi=z[8]|0,eM=pi&8191,hi=pi>>>13,mi=z[9]|0,Dn=mi&8191,tM=mi>>>13,oM=ee[0]|0,vM=oM&8191,dM=oM>>>13,hM=ee[1]|0,_M=hM&8191,uM=hM>>>13,pM=ee[2]|0,yM=pM&8191,gM=pM>>>13,fM=ee[3]|0,kM=fM&8191,IM=fM>>>13,DM=ee[4]|0,$M=DM&8191,TM=DM>>>13,OM=ee[5]|0,UM=OM&8191,AM=OM>>>13,RM=ee[6]|0,FM=RM&8191,xM=RM>>>13,BM=ee[7]|0,WM=BM&8191,SM=BM>>>13,jM=ee[8]|0,YM=jM&8191,PM=jM>>>13,VM=ee[9]|0,HM=VM&8191,zM=VM>>>13;B.negative=P.negative^k.negative,B.length=19,J=Math.imul(Ye,vM),U=Math.imul(Ye,dM),U=U+Math.imul(rt,vM)|0,Z=Math.imul(rt,dM);var KM=(q+J|0)+((U&8191)<<13)|0;q=(Z+(U>>>13)|0)+(KM>>>26)|0,KM&=67108863,J=Math.imul(Qe,vM),U=Math.imul(Qe,dM),U=U+Math.imul(vt,vM)|0,Z=Math.imul(vt,dM),J=J+Math.imul(Ye,_M)|0,U=U+Math.imul(Ye,uM)|0,U=U+Math.imul(rt,_M)|0,Z=Z+Math.imul(rt,uM)|0;var rN=(q+J|0)+((U&8191)<<13)|0;q=(Z+(U>>>13)|0)+(rN>>>26)|0,rN&=67108863,J=Math.imul(ci,vM),U=Math.imul(ci,dM),U=U+Math.imul(tt,vM)|0,Z=Math.imul(tt,dM),J=J+Math.imul(Qe,_M)|0,U=U+Math.imul(Qe,uM)|0,U=U+Math.imul(vt,_M)|0,Z=Z+Math.imul(vt,uM)|0,J=J+Math.imul(Ye,yM)|0,U=U+Math.imul(Ye,gM)|0,U=U+Math.imul(rt,yM)|0,Z=Z+Math.imul(rt,gM)|0;var eN=(q+J|0)+((U&8191)<<13)|0;q=(Z+(U>>>13)|0)+(eN>>>26)|0,eN&=67108863,J=Math.imul($e,vM),U=Math.imul($e,dM),U=U+Math.imul(Le,vM)|0,Z=Math.imul(Le,dM),J=J+Math.imul(ci,_M)|0,U=U+Math.imul(ci,uM)|0,U=U+Math.imul(tt,_M)|0,Z=Z+Math.imul(tt,uM)|0,J=J+Math.imul(Qe,yM)|0,U=U+Math.imul(Qe,gM)|0,U=U+Math.imul(vt,yM)|0,Z=Z+Math.imul(vt,gM)|0,J=J+Math.imul(Ye,kM)|0,U=U+Math.imul(Ye,IM)|0,U=U+Math.imul(rt,kM)|0,Z=Z+Math.imul(rt,IM)|0;var iN=(q+J|0)+((U&8191)<<13)|0;q=(Z+(U>>>13)|0)+(iN>>>26)|0,iN&=67108863,J=Math.imul(Oe,vM),U=Math.imul(Oe,dM),U=U+Math.imul(Ne,vM)|0,Z=Math.imul(Ne,dM),J=J+Math.imul($e,_M)|0,U=U+Math.imul($e,uM)|0,U=U+Math.imul(Le,_M)|0,Z=Z+Math.imul(Le,uM)|0,J=J+Math.imul(ci,yM)|0,U=U+Math.imul(ci,gM)|0,U=U+Math.imul(tt,yM)|0,Z=Z+Math.imul(tt,gM)|0,J=J+Math.imul(Qe,kM)|0,U=U+Math.imul(Qe,IM)|0,U=U+Math.imul(vt,kM)|0,Z=Z+Math.imul(vt,IM)|0,J=J+Math.imul(Ye,$M)|0,U=U+Math.imul(Ye,TM)|0,U=U+Math.imul(rt,$M)|0,Z=Z+Math.imul(rt,TM)|0;var ai=(q+J|0)+((U&8191)<<13)|0;q=(Z+(U>>>13)|0)+(ai>>>26)|0,ai&=67108863,J=Math.imul(Je,vM),U=Math.imul(Je,dM),U=U+Math.imul(Dt,vM)|0,Z=Math.imul(Dt,dM),J=J+Math.imul(Oe,_M)|0,U=U+Math.imul(Oe,uM)|0,U=U+Math.imul(Ne,_M)|0,Z=Z+Math.imul(Ne,uM)|0,J=J+Math.imul($e,yM)|0,U=U+Math.imul($e,gM)|0,U=U+Math.imul(Le,yM)|0,Z=Z+Math.imul(Le,gM)|0,J=J+Math.imul(ci,kM)|0,U=U+Math.imul(ci,IM)|0,U=U+Math.imul(tt,kM)|0,Z=Z+Math.imul(tt,IM)|0,J=J+Math.imul(Qe,$M)|0,U=U+Math.imul(Qe,TM)|0,U=U+Math.imul(vt,$M)|0,Z=Z+Math.imul(vt,TM)|0,J=J+Math.imul(Ye,UM)|0,U=U+Math.imul(Ye,AM)|0,U=U+Math.imul(rt,UM)|0,Z=Z+Math.imul(rt,AM)|0;var C=(q+J|0)+((U&8191)<<13)|0;q=(Z+(U>>>13)|0)+(C>>>26)|0,C&=67108863,J=Math.imul(Bt,vM),U=Math.imul(Bt,dM),U=U+Math.imul(li,vM)|0,Z=Math.imul(li,dM),J=J+Math.imul(Je,_M)|0,U=U+Math.imul(Je,uM)|0,U=U+Math.imul(Dt,_M)|0,Z=Z+Math.imul(Dt,uM)|0,J=J+Math.imul(Oe,yM)|0,U=U+Math.imul(Oe,gM)|0,U=U+Math.imul(Ne,yM)|0,Z=Z+Math.imul(Ne,gM)|0,J=J+Math.imul($e,kM)|0,U=U+Math.imul($e,IM)|0,U=U+Math.imul(Le,kM)|0,Z=Z+Math.imul(Le,IM)|0,J=J+Math.imul(ci,$M)|0,U=U+Math.imul(ci,TM)|0,U=U+Math.imul(tt,$M)|0,Z=Z+Math.imul(tt,TM)|0,J=J+Math.imul(Qe,UM)|0,U=U+Math.imul(Qe,AM)|0,U=U+Math.imul(vt,UM)|0,Z=Z+Math.imul(vt,AM)|0,J=J+Math.imul(Ye,FM)|0,U=U+Math.imul(Ye,xM)|0,U=U+Math.imul(rt,FM)|0,Z=Z+Math.imul(rt,xM)|0;var L=(q+J|0)+((U&8191)<<13)|0;q=(Z+(U>>>13)|0)+(L>>>26)|0,L&=67108863,J=Math.imul(Ot,vM),U=Math.imul(Ot,dM),U=U+Math.imul(St,vM)|0,Z=Math.imul(St,dM),J=J+Math.imul(Bt,_M)|0,U=U+Math.imul(Bt,uM)|0,U=U+Math.imul(li,_M)|0,Z=Z+Math.imul(li,uM)|0,J=J+Math.imul(Je,yM)|0,U=U+Math.imul(Je,gM)|0,U=U+Math.imul(Dt,yM)|0,Z=Z+Math.imul(Dt,gM)|0,J=J+Math.imul(Oe,kM)|0,U=U+Math.imul(Oe,IM)|0,U=U+Math.imul(Ne,kM)|0,Z=Z+Math.imul(Ne,IM)|0,J=J+Math.imul($e,$M)|0,U=U+Math.imul($e,TM)|0,U=U+Math.imul(Le,$M)|0,Z=Z+Math.imul(Le,TM)|0,J=J+Math.imul(ci,UM)|0,U=U+Math.imul(ci,AM)|0,U=U+Math.imul(tt,UM)|0,Z=Z+Math.imul(tt,AM)|0,J=J+Math.imul(Qe,FM)|0,U=U+Math.imul(Qe,xM)|0,U=U+Math.imul(vt,FM)|0,Z=Z+Math.imul(vt,xM)|0,J=J+Math.imul(Ye,WM)|0,U=U+Math.imul(Ye,SM)|0,U=U+Math.imul(rt,WM)|0,Z=Z+Math.imul(rt,SM)|0;var F=(q+J|0)+((U&8191)<<13)|0;q=(Z+(U>>>13)|0)+(F>>>26)|0,F&=67108863,J=Math.imul(eM,vM),U=Math.imul(eM,dM),U=U+Math.imul(hi,vM)|0,Z=Math.imul(hi,dM),J=J+Math.imul(Ot,_M)|0,U=U+Math.imul(Ot,uM)|0,U=U+Math.imul(St,_M)|0,Z=Z+Math.imul(St,uM)|0,J=J+Math.imul(Bt,yM)|0,U=U+Math.imul(Bt,gM)|0,U=U+Math.imul(li,yM)|0,Z=Z+Math.imul(li,gM)|0,J=J+Math.imul(Je,kM)|0,U=U+Math.imul(Je,IM)|0,U=U+Math.imul(Dt,kM)|0,Z=Z+Math.imul(Dt,IM)|0,J=J+Math.imul(Oe,$M)|0,U=U+Math.imul(Oe,TM)|0,U=U+Math.imul(Ne,$M)|0,Z=Z+Math.imul(Ne,TM)|0,J=J+Math.imul($e,UM)|0,U=U+Math.imul($e,AM)|0,U=U+Math.imul(Le,UM)|0,Z=Z+Math.imul(Le,AM)|0,J=J+Math.imul(ci,FM)|0,U=U+Math.imul(ci,xM)|0,U=U+Math.imul(tt,FM)|0,Z=Z+Math.imul(tt,xM)|0,J=J+Math.imul(Qe,WM)|0,U=U+Math.imul(Qe,SM)|0,U=U+Math.imul(vt,WM)|0,Z=Z+Math.imul(vt,SM)|0,J=J+Math.imul(Ye,YM)|0,U=U+Math.imul(Ye,PM)|0,U=U+Math.imul(rt,YM)|0,Z=Z+Math.imul(rt,PM)|0;var ne=(q+J|0)+((U&8191)<<13)|0;q=(Z+(U>>>13)|0)+(ne>>>26)|0,ne&=67108863,J=Math.imul(Dn,vM),U=Math.imul(Dn,dM),U=U+Math.imul(tM,vM)|0,Z=Math.imul(tM,dM),J=J+Math.imul(eM,_M)|0,U=U+Math.imul(eM,uM)|0,U=U+Math.imul(hi,_M)|0,Z=Z+Math.imul(hi,uM)|0,J=J+Math.imul(Ot,yM)|0,U=U+Math.imul(Ot,gM)|0,U=U+Math.imul(St,yM)|0,Z=Z+Math.imul(St,gM)|0,J=J+Math.imul(Bt,kM)|0,U=U+Math.imul(Bt,IM)|0,U=U+Math.imul(li,kM)|0,Z=Z+Math.imul(li,IM)|0,J=J+Math.imul(Je,$M)|0,U=U+Math.imul(Je,TM)|0,U=U+Math.imul(Dt,$M)|0,Z=Z+Math.imul(Dt,TM)|0,J=J+Math.imul(Oe,UM)|0,U=U+Math.imul(Oe,AM)|0,U=U+Math.imul(Ne,UM)|0,Z=Z+Math.imul(Ne,AM)|0,J=J+Math.imul($e,FM)|0,U=U+Math.imul($e,xM)|0,U=U+Math.imul(Le,FM)|0,Z=Z+Math.imul(Le,xM)|0,J=J+Math.imul(ci,WM)|0,U=U+Math.imul(ci,SM)|0,U=U+Math.imul(tt,WM)|0,Z=Z+Math.imul(tt,SM)|0,J=J+Math.imul(Qe,YM)|0,U=U+Math.imul(Qe,PM)|0,U=U+Math.imul(vt,YM)|0,Z=Z+Math.imul(vt,PM)|0,J=J+Math.imul(Ye,HM)|0,U=U+Math.imul(Ye,zM)|0,U=U+Math.imul(rt,HM)|0,Z=Z+Math.imul(rt,zM)|0;var ue=(q+J|0)+((U&8191)<<13)|0;q=(Z+(U>>>13)|0)+(ue>>>26)|0,ue&=67108863,J=Math.imul(Dn,_M),U=Math.imul(Dn,uM),U=U+Math.imul(tM,_M)|0,Z=Math.imul(tM,uM),J=J+Math.imul(eM,yM)|0,U=U+Math.imul(eM,gM)|0,U=U+Math.imul(hi,yM)|0,Z=Z+Math.imul(hi,gM)|0,J=J+Math.imul(Ot,kM)|0,U=U+Math.imul(Ot,IM)|0,U=U+Math.imul(St,kM)|0,Z=Z+Math.imul(St,IM)|0,J=J+Math.imul(Bt,$M)|0,U=U+Math.imul(Bt,TM)|0,U=U+Math.imul(li,$M)|0,Z=Z+Math.imul(li,TM)|0,J=J+Math.imul(Je,UM)|0,U=U+Math.imul(Je,AM)|0,U=U+Math.imul(Dt,UM)|0,Z=Z+Math.imul(Dt,AM)|0,J=J+Math.imul(Oe,FM)|0,U=U+Math.imul(Oe,xM)|0,U=U+Math.imul(Ne,FM)|0,Z=Z+Math.imul(Ne,xM)|0,J=J+Math.imul($e,WM)|0,U=U+Math.imul($e,SM)|0,U=U+Math.imul(Le,WM)|0,Z=Z+Math.imul(Le,SM)|0,J=J+Math.imul(ci,YM)|0,U=U+Math.imul(ci,PM)|0,U=U+Math.imul(tt,YM)|0,Z=Z+Math.imul(tt,PM)|0,J=J+Math.imul(Qe,HM)|0,U=U+Math.imul(Qe,zM)|0,U=U+Math.imul(vt,HM)|0,Z=Z+Math.imul(vt,zM)|0;var fe=(q+J|0)+((U&8191)<<13)|0;q=(Z+(U>>>13)|0)+(fe>>>26)|0,fe&=67108863,J=Math.imul(Dn,yM),U=Math.imul(Dn,gM),U=U+Math.imul(tM,yM)|0,Z=Math.imul(tM,gM),J=J+Math.imul(eM,kM)|0,U=U+Math.imul(eM,IM)|0,U=U+Math.imul(hi,kM)|0,Z=Z+Math.imul(hi,IM)|0,J=J+Math.imul(Ot,$M)|0,U=U+Math.imul(Ot,TM)|0,U=U+Math.imul(St,$M)|0,Z=Z+Math.imul(St,TM)|0,J=J+Math.imul(Bt,UM)|0,U=U+Math.imul(Bt,AM)|0,U=U+Math.imul(li,UM)|0,Z=Z+Math.imul(li,AM)|0,J=J+Math.imul(Je,FM)|0,U=U+Math.imul(Je,xM)|0,U=U+Math.imul(Dt,FM)|0,Z=Z+Math.imul(Dt,xM)|0,J=J+Math.imul(Oe,WM)|0,U=U+Math.imul(Oe,SM)|0,U=U+Math.imul(Ne,WM)|0,Z=Z+Math.imul(Ne,SM)|0,J=J+Math.imul($e,YM)|0,U=U+Math.imul($e,PM)|0,U=U+Math.imul(Le,YM)|0,Z=Z+Math.imul(Le,PM)|0,J=J+Math.imul(ci,HM)|0,U=U+Math.imul(ci,zM)|0,U=U+Math.imul(tt,HM)|0,Z=Z+Math.imul(tt,zM)|0;var me=(q+J|0)+((U&8191)<<13)|0;q=(Z+(U>>>13)|0)+(me>>>26)|0,me&=67108863,J=Math.imul(Dn,kM),U=Math.imul(Dn,IM),U=U+Math.imul(tM,kM)|0,Z=Math.imul(tM,IM),J=J+Math.imul(eM,$M)|0,U=U+Math.imul(eM,TM)|0,U=U+Math.imul(hi,$M)|0,Z=Z+Math.imul(hi,TM)|0,J=J+Math.imul(Ot,UM)|0,U=U+Math.imul(Ot,AM)|0,U=U+Math.imul(St,UM)|0,Z=Z+Math.imul(St,AM)|0,J=J+Math.imul(Bt,FM)|0,U=U+Math.imul(Bt,xM)|0,U=U+Math.imul(li,FM)|0,Z=Z+Math.imul(li,xM)|0,J=J+Math.imul(Je,WM)|0,U=U+Math.imul(Je,SM)|0,U=U+Math.imul(Dt,WM)|0,Z=Z+Math.imul(Dt,SM)|0,J=J+Math.imul(Oe,YM)|0,U=U+Math.imul(Oe,PM)|0,U=U+Math.imul(Ne,YM)|0,Z=Z+Math.imul(Ne,PM)|0,J=J+Math.imul($e,HM)|0,U=U+Math.imul($e,zM)|0,U=U+Math.imul(Le,HM)|0,Z=Z+Math.imul(Le,zM)|0;var Pe=(q+J|0)+((U&8191)<<13)|0;q=(Z+(U>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,J=Math.imul(Dn,$M),U=Math.imul(Dn,TM),U=U+Math.imul(tM,$M)|0,Z=Math.imul(tM,TM),J=J+Math.imul(eM,UM)|0,U=U+Math.imul(eM,AM)|0,U=U+Math.imul(hi,UM)|0,Z=Z+Math.imul(hi,AM)|0,J=J+Math.imul(Ot,FM)|0,U=U+Math.imul(Ot,xM)|0,U=U+Math.imul(St,FM)|0,Z=Z+Math.imul(St,xM)|0,J=J+Math.imul(Bt,WM)|0,U=U+Math.imul(Bt,SM)|0,U=U+Math.imul(li,WM)|0,Z=Z+Math.imul(li,SM)|0,J=J+Math.imul(Je,YM)|0,U=U+Math.imul(Je,PM)|0,U=U+Math.imul(Dt,YM)|0,Z=Z+Math.imul(Dt,PM)|0,J=J+Math.imul(Oe,HM)|0,U=U+Math.imul(Oe,zM)|0,U=U+Math.imul(Ne,HM)|0,Z=Z+Math.imul(Ne,zM)|0;var Re=(q+J|0)+((U&8191)<<13)|0;q=(Z+(U>>>13)|0)+(Re>>>26)|0,Re&=67108863,J=Math.imul(Dn,UM),U=Math.imul(Dn,AM),U=U+Math.imul(tM,UM)|0,Z=Math.imul(tM,AM),J=J+Math.imul(eM,FM)|0,U=U+Math.imul(eM,xM)|0,U=U+Math.imul(hi,FM)|0,Z=Z+Math.imul(hi,xM)|0,J=J+Math.imul(Ot,WM)|0,U=U+Math.imul(Ot,SM)|0,U=U+Math.imul(St,WM)|0,Z=Z+Math.imul(St,SM)|0,J=J+Math.imul(Bt,YM)|0,U=U+Math.imul(Bt,PM)|0,U=U+Math.imul(li,YM)|0,Z=Z+Math.imul(li,PM)|0,J=J+Math.imul(Je,HM)|0,U=U+Math.imul(Je,zM)|0,U=U+Math.imul(Dt,HM)|0,Z=Z+Math.imul(Dt,zM)|0;var Xe=(q+J|0)+((U&8191)<<13)|0;q=(Z+(U>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,J=Math.imul(Dn,FM),U=Math.imul(Dn,xM),U=U+Math.imul(tM,FM)|0,Z=Math.imul(tM,xM),J=J+Math.imul(eM,WM)|0,U=U+Math.imul(eM,SM)|0,U=U+Math.imul(hi,WM)|0,Z=Z+Math.imul(hi,SM)|0,J=J+Math.imul(Ot,YM)|0,U=U+Math.imul(Ot,PM)|0,U=U+Math.imul(St,YM)|0,Z=Z+Math.imul(St,PM)|0,J=J+Math.imul(Bt,HM)|0,U=U+Math.imul(Bt,zM)|0,U=U+Math.imul(li,HM)|0,Z=Z+Math.imul(li,zM)|0;var qe=(q+J|0)+((U&8191)<<13)|0;q=(Z+(U>>>13)|0)+(qe>>>26)|0,qe&=67108863,J=Math.imul(Dn,WM),U=Math.imul(Dn,SM),U=U+Math.imul(tM,WM)|0,Z=Math.imul(tM,SM),J=J+Math.imul(eM,YM)|0,U=U+Math.imul(eM,PM)|0,U=U+Math.imul(hi,YM)|0,Z=Z+Math.imul(hi,PM)|0,J=J+Math.imul(Ot,HM)|0,U=U+Math.imul(Ot,zM)|0,U=U+Math.imul(St,HM)|0,Z=Z+Math.imul(St,zM)|0;var Ke=(q+J|0)+((U&8191)<<13)|0;q=(Z+(U>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,J=Math.imul(Dn,YM),U=Math.imul(Dn,PM),U=U+Math.imul(tM,YM)|0,Z=Math.imul(tM,PM),J=J+Math.imul(eM,HM)|0,U=U+Math.imul(eM,zM)|0,U=U+Math.imul(hi,HM)|0,Z=Z+Math.imul(hi,zM)|0;var nt=(q+J|0)+((U&8191)<<13)|0;q=(Z+(U>>>13)|0)+(nt>>>26)|0,nt&=67108863,J=Math.imul(Dn,HM),U=Math.imul(Dn,zM),U=U+Math.imul(tM,HM)|0,Z=Math.imul(tM,zM);var It=(q+J|0)+((U&8191)<<13)|0;return q=(Z+(U>>>13)|0)+(It>>>26)|0,It&=67108863,H[0]=KM,H[1]=rN,H[2]=eN,H[3]=iN,H[4]=ai,H[5]=C,H[6]=L,H[7]=F,H[8]=ne,H[9]=ue,H[10]=fe,H[11]=me,H[12]=Pe,H[13]=Re,H[14]=Xe,H[15]=qe,H[16]=Ke,H[17]=nt,H[18]=It,q!==0&&(H[19]=q,B.length++),B};Math.imul||(Y=X);function ie(P,k,B){B.negative=k.negative^P.negative,B.length=P.length+k.length;for(var z=0,ee=0,H=0;H<B.length-1;H++){var q=ee;ee=0;for(var J=z&67108863,U=Math.min(H,k.length-1),Z=Math.max(0,H-P.length+1);Z<=U;Z++){var ve=H-Z,Ye=P.words[ve]|0,rt=k.words[Z]|0,Ue=Ye*rt,Qe=Ue&67108863;q=q+(Ue/67108864|0)|0,Qe=Qe+J|0,J=Qe&67108863,q=q+(Qe>>>26)|0,ee+=q>>>26,q&=67108863}B.words[H]=J,z=q,q=ee}return z!==0?B.words[H]=z:B.length--,B._strip()}function oe(P,k,B){return ie(P,k,B)}I.prototype.mulTo=function(P,k){var B,z=this.length+P.length;return this.length===10&&P.length===10?B=Y(this,P,k):z<63?B=X(this,P,k):z<1024?B=ie(this,P,k):B=oe(this,P,k),B},I.prototype.mul=function(P){var k=new I(null);return k.words=new Array(this.length+P.length),this.mulTo(P,k)},I.prototype.mulf=function(P){var k=new I(null);return k.words=new Array(this.length+P.length),oe(this,P,k)},I.prototype.imul=function(P){return this.clone().mulTo(P,this)},I.prototype.imuln=function(P){var k=P<0;k&&(P=-P),_(typeof P=="number"),_(P<67108864);for(var B=0,z=0;z<this.length;z++){var ee=(this.words[z]|0)*P,H=(ee&67108863)+(B&67108863);B>>=26,B+=ee/67108864|0,B+=H>>>26,this.words[z]=H&67108863}return B!==0&&(this.words[z]=B,this.length++),k?this.ineg():this},I.prototype.muln=function(P){return this.clone().imuln(P)},I.prototype.sqr=function(){return this.mul(this)},I.prototype.isqr=function(){return this.imul(this.clone())},I.prototype.pow=function(P){var k=Q(P);if(k.length===0)return new I(1);for(var B=this,z=0;z<k.length&&k[z]===0;z++,B=B.sqr());if(++z<k.length)for(var ee=B.sqr();z<k.length;z++,ee=ee.sqr())k[z]!==0&&(B=B.mul(ee));return B},I.prototype.iushln=function(P){_(typeof P=="number"&&P>=0);var k=P%26,B=(P-k)/26,z=67108863>>>26-k<<26-k,ee;if(k!==0){var H=0;for(ee=0;ee<this.length;ee++){var q=this.words[ee]&z,J=(this.words[ee]|0)-q<<k;this.words[ee]=J|H,H=q>>>26-k}H&&(this.words[ee]=H,this.length++)}if(B!==0){for(ee=this.length-1;ee>=0;ee--)this.words[ee+B]=this.words[ee];for(ee=0;ee<B;ee++)this.words[ee]=0;this.length+=B}return this._strip()},I.prototype.ishln=function(P){return _(this.negative===0),this.iushln(P)},I.prototype.iushrn=function(P,k,B){_(typeof P=="number"&&P>=0);var z;k?z=(k-k%26)/26:z=0;var ee=P%26,H=Math.min((P-ee)/26,this.length),q=67108863^67108863>>>ee<<ee,J=B;if(z-=H,z=Math.max(0,z),J){for(var U=0;U<H;U++)J.words[U]=this.words[U];J.length=H}if(H!==0)if(this.length>H)for(this.length-=H,U=0;U<this.length;U++)this.words[U]=this.words[U+H];else this.words[0]=0,this.length=1;var Z=0;for(U=this.length-1;U>=0&&(Z!==0||U>=z);U--){var ve=this.words[U]|0;this.words[U]=Z<<26-ee|ve>>>ee,Z=ve&q}return J&&Z!==0&&(J.words[J.length++]=Z),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},I.prototype.ishrn=function(P,k,B){return _(this.negative===0),this.iushrn(P,k,B)},I.prototype.shln=function(P){return this.clone().ishln(P)},I.prototype.ushln=function(P){return this.clone().iushln(P)},I.prototype.shrn=function(P){return this.clone().ishrn(P)},I.prototype.ushrn=function(P){return this.clone().iushrn(P)},I.prototype.testn=function(P){_(typeof P=="number"&&P>=0);var k=P%26,B=(P-k)/26,z=1<<k;if(this.length<=B)return!1;var ee=this.words[B];return!!(ee&z)},I.prototype.imaskn=function(P){_(typeof P=="number"&&P>=0);var k=P%26,B=(P-k)/26;if(_(this.negative===0,"imaskn works only with positive numbers"),this.length<=B)return this;if(k!==0&&B++,this.length=Math.min(B,this.length),k!==0){var z=67108863^67108863>>>k<<k;this.words[this.length-1]&=z}return this._strip()},I.prototype.maskn=function(P){return this.clone().imaskn(P)},I.prototype.iaddn=function(P){return _(typeof P=="number"),_(P<67108864),P<0?this.isubn(-P):this.negative!==0?this.length===1&&(this.words[0]|0)<=P?(this.words[0]=P-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(P),this.negative=1,this):this._iaddn(P)},I.prototype._iaddn=function(P){this.words[0]+=P;for(var k=0;k<this.length&&this.words[k]>=67108864;k++)this.words[k]-=67108864,k===this.length-1?this.words[k+1]=1:this.words[k+1]++;return this.length=Math.max(this.length,k+1),this},I.prototype.isubn=function(P){if(_(typeof P=="number"),_(P<67108864),P<0)return this.iaddn(-P);if(this.negative!==0)return this.negative=0,this.iaddn(P),this.negative=1,this;if(this.words[0]-=P,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var k=0;k<this.length&&this.words[k]<0;k++)this.words[k]+=67108864,this.words[k+1]-=1;return this._strip()},I.prototype.addn=function(P){return this.clone().iaddn(P)},I.prototype.subn=function(P){return this.clone().isubn(P)},I.prototype.iabs=function(){return this.negative=0,this},I.prototype.abs=function(){return this.clone().iabs()},I.prototype._ishlnsubmul=function(P,k,B){var z=P.length+B,ee;this._expand(z);var H,q=0;for(ee=0;ee<P.length;ee++){H=(this.words[ee+B]|0)+q;var J=(P.words[ee]|0)*k;H-=J&67108863,q=(H>>26)-(J/67108864|0),this.words[ee+B]=H&67108863}for(;ee<this.length-B;ee++)H=(this.words[ee+B]|0)+q,q=H>>26,this.words[ee+B]=H&67108863;if(q===0)return this._strip();for(_(q===-1),q=0,ee=0;ee<this.length;ee++)H=-(this.words[ee]|0)+q,q=H>>26,this.words[ee]=H&67108863;return this.negative=1,this._strip()},I.prototype._wordDiv=function(P,k){var B=this.length-P.length,z=this.clone(),ee=P,H=ee.words[ee.length-1]|0,q=this._countBits(H);B=26-q,B!==0&&(ee=ee.ushln(B),z.iushln(B),H=ee.words[ee.length-1]|0);var J=z.length-ee.length,U;if(k!=="mod"){U=new I(null),U.length=J+1,U.words=new Array(U.length);for(var Z=0;Z<U.length;Z++)U.words[Z]=0}var ve=z.clone()._ishlnsubmul(ee,1,J);ve.negative===0&&(z=ve,U&&(U.words[J]=1));for(var Ye=J-1;Ye>=0;Ye--){var rt=(z.words[ee.length+Ye]|0)*67108864+(z.words[ee.length+Ye-1]|0);for(rt=Math.min(rt/H|0,67108863),z._ishlnsubmul(ee,rt,Ye);z.negative!==0;)rt--,z.negative=0,z._ishlnsubmul(ee,1,Ye),z.isZero()||(z.negative^=1);U&&(U.words[Ye]=rt)}return U&&U._strip(),z._strip(),k!=="div"&&B!==0&&z.iushrn(B),{div:U||null,mod:z}},I.prototype.divmod=function(P,k,B){if(_(!P.isZero()),this.isZero())return{div:new I(0),mod:new I(0)};var z,ee,H;return this.negative!==0&&P.negative===0?(H=this.neg().divmod(P,k),k!=="mod"&&(z=H.div.neg()),k!=="div"&&(ee=H.mod.neg(),B&&ee.negative!==0&&ee.iadd(P)),{div:z,mod:ee}):this.negative===0&&P.negative!==0?(H=this.divmod(P.neg(),k),k!=="mod"&&(z=H.div.neg()),{div:z,mod:H.mod}):this.negative&P.negative?(H=this.neg().divmod(P.neg(),k),k!=="div"&&(ee=H.mod.neg(),B&&ee.negative!==0&&ee.isub(P)),{div:H.div,mod:ee}):P.length>this.length||this.cmp(P)<0?{div:new I(0),mod:this}:P.length===1?k==="div"?{div:this.divn(P.words[0]),mod:null}:k==="mod"?{div:null,mod:new I(this.modrn(P.words[0]))}:{div:this.divn(P.words[0]),mod:new I(this.modrn(P.words[0]))}:this._wordDiv(P,k)},I.prototype.div=function(P){return this.divmod(P,"div",!1).div},I.prototype.mod=function(P){return this.divmod(P,"mod",!1).mod},I.prototype.umod=function(P){return this.divmod(P,"mod",!0).mod},I.prototype.divRound=function(P){var k=this.divmod(P);if(k.mod.isZero())return k.div;var B=k.div.negative!==0?k.mod.isub(P):k.mod,z=P.ushrn(1),ee=P.andln(1),H=B.cmp(z);return H<0||ee===1&&H===0?k.div:k.div.negative!==0?k.div.isubn(1):k.div.iaddn(1)},I.prototype.modrn=function(P){var k=P<0;k&&(P=-P),_(P<=67108863);for(var B=(1<<26)%P,z=0,ee=this.length-1;ee>=0;ee--)z=(B*z+(this.words[ee]|0))%P;return k?-z:z},I.prototype.modn=function(P){return this.modrn(P)},I.prototype.idivn=function(P){var k=P<0;k&&(P=-P),_(P<=67108863);for(var B=0,z=this.length-1;z>=0;z--){var ee=(this.words[z]|0)+B*67108864;this.words[z]=ee/P|0,B=ee%P}return this._strip(),k?this.ineg():this},I.prototype.divn=function(P){return this.clone().idivn(P)},I.prototype.egcd=function(P){_(P.negative===0),_(!P.isZero());var k=this,B=P.clone();k.negative!==0?k=k.umod(P):k=k.clone();for(var z=new I(1),ee=new I(0),H=new I(0),q=new I(1),J=0;k.isEven()&&B.isEven();)k.iushrn(1),B.iushrn(1),++J;for(var U=B.clone(),Z=k.clone();!k.isZero();){for(var ve=0,Ye=1;!(k.words[0]&Ye)&&ve<26;++ve,Ye<<=1);if(ve>0)for(k.iushrn(ve);ve-- >0;)(z.isOdd()||ee.isOdd())&&(z.iadd(U),ee.isub(Z)),z.iushrn(1),ee.iushrn(1);for(var rt=0,Ue=1;!(B.words[0]&Ue)&&rt<26;++rt,Ue<<=1);if(rt>0)for(B.iushrn(rt);rt-- >0;)(H.isOdd()||q.isOdd())&&(H.iadd(U),q.isub(Z)),H.iushrn(1),q.iushrn(1);k.cmp(B)>=0?(k.isub(B),z.isub(H),ee.isub(q)):(B.isub(k),H.isub(z),q.isub(ee))}return{a:H,b:q,gcd:B.iushln(J)}},I.prototype._invmp=function(P){_(P.negative===0),_(!P.isZero());var k=this,B=P.clone();k.negative!==0?k=k.umod(P):k=k.clone();for(var z=new I(1),ee=new I(0),H=B.clone();k.cmpn(1)>0&&B.cmpn(1)>0;){for(var q=0,J=1;!(k.words[0]&J)&&q<26;++q,J<<=1);if(q>0)for(k.iushrn(q);q-- >0;)z.isOdd()&&z.iadd(H),z.iushrn(1);for(var U=0,Z=1;!(B.words[0]&Z)&&U<26;++U,Z<<=1);if(U>0)for(B.iushrn(U);U-- >0;)ee.isOdd()&&ee.iadd(H),ee.iushrn(1);k.cmp(B)>=0?(k.isub(B),z.isub(ee)):(B.isub(k),ee.isub(z))}var ve;return k.cmpn(1)===0?ve=z:ve=ee,ve.cmpn(0)<0&&ve.iadd(P),ve},I.prototype.gcd=function(P){if(this.isZero())return P.abs();if(P.isZero())return this.abs();var k=this.clone(),B=P.clone();k.negative=0,B.negative=0;for(var z=0;k.isEven()&&B.isEven();z++)k.iushrn(1),B.iushrn(1);do{for(;k.isEven();)k.iushrn(1);for(;B.isEven();)B.iushrn(1);var ee=k.cmp(B);if(ee<0){var H=k;k=B,B=H}else if(ee===0||B.cmpn(1)===0)break;k.isub(B)}while(!0);return B.iushln(z)},I.prototype.invm=function(P){return this.egcd(P).a.umod(P)},I.prototype.isEven=function(){return(this.words[0]&1)===0},I.prototype.isOdd=function(){return(this.words[0]&1)===1},I.prototype.andln=function(P){return this.words[0]&P},I.prototype.bincn=function(P){_(typeof P=="number");var k=P%26,B=(P-k)/26,z=1<<k;if(this.length<=B)return this._expand(B+1),this.words[B]|=z,this;for(var ee=z,H=B;ee!==0&&H<this.length;H++){var q=this.words[H]|0;q+=ee,ee=q>>>26,q&=67108863,this.words[H]=q}return ee!==0&&(this.words[H]=ee,this.length++),this},I.prototype.isZero=function(){return this.length===1&&this.words[0]===0},I.prototype.cmpn=function(P){var k=P<0;if(this.negative!==0&&!k)return-1;if(this.negative===0&&k)return 1;this._strip();var B;if(this.length>1)B=1;else{k&&(P=-P),_(P<=67108863,"Number is too big");var z=this.words[0]|0;B=z===P?0:z<P?-1:1}return this.negative!==0?-B|0:B},I.prototype.cmp=function(P){if(this.negative!==0&&P.negative===0)return-1;if(this.negative===0&&P.negative!==0)return 1;var k=this.ucmp(P);return this.negative!==0?-k|0:k},I.prototype.ucmp=function(P){if(this.length>P.length)return 1;if(this.length<P.length)return-1;for(var k=0,B=this.length-1;B>=0;B--){var z=this.words[B]|0,ee=P.words[B]|0;if(z!==ee){z<ee?k=-1:z>ee&&(k=1);break}}return k},I.prototype.gtn=function(P){return this.cmpn(P)===1},I.prototype.gt=function(P){return this.cmp(P)===1},I.prototype.gten=function(P){return this.cmpn(P)>=0},I.prototype.gte=function(P){return this.cmp(P)>=0},I.prototype.ltn=function(P){return this.cmpn(P)===-1},I.prototype.lt=function(P){return this.cmp(P)===-1},I.prototype.lten=function(P){return this.cmpn(P)<=0},I.prototype.lte=function(P){return this.cmp(P)<=0},I.prototype.eqn=function(P){return this.cmpn(P)===0},I.prototype.eq=function(P){return this.cmp(P)===0},I.red=function(P){return new le(P)},I.prototype.toRed=function(P){return _(!this.red,"Already a number in reduction context"),_(this.negative===0,"red works only with positives"),P.convertTo(this)._forceRed(P)},I.prototype.fromRed=function(){return _(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},I.prototype._forceRed=function(P){return this.red=P,this},I.prototype.forceRed=function(P){return _(!this.red,"Already a number in reduction context"),this._forceRed(P)},I.prototype.redAdd=function(P){return _(this.red,"redAdd works only with red numbers"),this.red.add(this,P)},I.prototype.redIAdd=function(P){return _(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,P)},I.prototype.redSub=function(P){return _(this.red,"redSub works only with red numbers"),this.red.sub(this,P)},I.prototype.redISub=function(P){return _(this.red,"redISub works only with red numbers"),this.red.isub(this,P)},I.prototype.redShl=function(P){return _(this.red,"redShl works only with red numbers"),this.red.shl(this,P)},I.prototype.redMul=function(P){return _(this.red,"redMul works only with red numbers"),this.red._verify2(this,P),this.red.mul(this,P)},I.prototype.redIMul=function(P){return _(this.red,"redMul works only with red numbers"),this.red._verify2(this,P),this.red.imul(this,P)},I.prototype.redSqr=function(){return _(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},I.prototype.redISqr=function(){return _(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},I.prototype.redSqrt=function(){return _(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},I.prototype.redInvm=function(){return _(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},I.prototype.redNeg=function(){return _(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},I.prototype.redPow=function(P){return _(this.red&&!P.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,P)};var ge={k256:null,p224:null,p192:null,p25519:null};function be(P,k){this.name=P,this.p=new I(k,16),this.n=this.p.bitLength(),this.k=new I(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}be.prototype._tmp=function(){var P=new I(null);return P.words=new Array(Math.ceil(this.n/13)),P},be.prototype.ireduce=function(P){var k=P,B;do this.split(k,this.tmp),k=this.imulK(k),k=k.iadd(this.tmp),B=k.bitLength();while(B>this.n);var z=B<this.n?-1:k.ucmp(this.p);return z===0?(k.words[0]=0,k.length=1):z>0?k.isub(this.p):k.strip!==void 0?k.strip():k._strip(),k},be.prototype.split=function(P,k){P.iushrn(this.n,0,k)},be.prototype.imulK=function(P){return P.imul(this.k)};function ze(){be.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}x(ze,be),ze.prototype.split=function(P,k){for(var B=4194303,z=Math.min(P.length,9),ee=0;ee<z;ee++)k.words[ee]=P.words[ee];if(k.length=z,P.length<=9){P.words[0]=0,P.length=1;return}var H=P.words[9];for(k.words[k.length++]=H&B,ee=10;ee<P.length;ee++){var q=P.words[ee]|0;P.words[ee-10]=(q&B)<<4|H>>>22,H=q}H>>>=22,P.words[ee-10]=H,H===0&&P.length>10?P.length-=10:P.length-=9},ze.prototype.imulK=function(P){P.words[P.length]=0,P.words[P.length+1]=0,P.length+=2;for(var k=0,B=0;B<P.length;B++){var z=P.words[B]|0;k+=z*977,P.words[B]=k&67108863,k=z*64+(k/67108864|0)}return P.words[P.length-1]===0&&(P.length--,P.words[P.length-1]===0&&P.length--),P};function de(){be.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}x(de,be);function Ce(){be.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}x(Ce,be);function ke(){be.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}x(ke,be),ke.prototype.imulK=function(P){for(var k=0,B=0;B<P.length;B++){var z=(P.words[B]|0)*19+k,ee=z&67108863;z>>>=26,P.words[B]=ee,k=z}return k!==0&&(P.words[P.length++]=k),P},I._prime=function(P){if(ge[P])return ge[P];var k;if(P==="k256")k=new ze;else if(P==="p224")k=new de;else if(P==="p192")k=new Ce;else if(P==="p25519")k=new ke;else throw new Error("Unknown prime "+P);return ge[P]=k,k};function le(P){if(typeof P=="string"){var k=I._prime(P);this.m=k.p,this.prime=k}else _(P.gtn(1),"modulus must be greater than 1"),this.m=P,this.prime=null}le.prototype._verify1=function(P){_(P.negative===0,"red works only with positives"),_(P.red,"red works only with red numbers")},le.prototype._verify2=function(P,k){_((P.negative|k.negative)===0,"red works only with positives"),_(P.red&&P.red===k.red,"red works only with red numbers")},le.prototype.imod=function(P){return this.prime?this.prime.ireduce(P)._forceRed(this):(T(P,P.umod(this.m)._forceRed(this)),P)},le.prototype.neg=function(P){return P.isZero()?P.clone():this.m.sub(P)._forceRed(this)},le.prototype.add=function(P,k){this._verify2(P,k);var B=P.add(k);return B.cmp(this.m)>=0&&B.isub(this.m),B._forceRed(this)},le.prototype.iadd=function(P,k){this._verify2(P,k);var B=P.iadd(k);return B.cmp(this.m)>=0&&B.isub(this.m),B},le.prototype.sub=function(P,k){this._verify2(P,k);var B=P.sub(k);return B.cmpn(0)<0&&B.iadd(this.m),B._forceRed(this)},le.prototype.isub=function(P,k){this._verify2(P,k);var B=P.isub(k);return B.cmpn(0)<0&&B.iadd(this.m),B},le.prototype.shl=function(P,k){return this._verify1(P),this.imod(P.ushln(k))},le.prototype.imul=function(P,k){return this._verify2(P,k),this.imod(P.imul(k))},le.prototype.mul=function(P,k){return this._verify2(P,k),this.imod(P.mul(k))},le.prototype.isqr=function(P){return this.imul(P,P.clone())},le.prototype.sqr=function(P){return this.mul(P,P)},le.prototype.sqrt=function(P){if(P.isZero())return P.clone();var k=this.m.andln(3);if(_(k%2===1),k===3){var B=this.m.add(new I(1)).iushrn(2);return this.pow(P,B)}for(var z=this.m.subn(1),ee=0;!z.isZero()&&z.andln(1)===0;)ee++,z.iushrn(1);_(!z.isZero());var H=new I(1).toRed(this),q=H.redNeg(),J=this.m.subn(1).iushrn(1),U=this.m.bitLength();for(U=new I(2*U*U).toRed(this);this.pow(U,J).cmp(q)!==0;)U.redIAdd(q);for(var Z=this.pow(U,z),ve=this.pow(P,z.addn(1).iushrn(1)),Ye=this.pow(P,z),rt=ee;Ye.cmp(H)!==0;){for(var Ue=Ye,Qe=0;Ue.cmp(H)!==0;Qe++)Ue=Ue.redSqr();_(Qe<rt);var vt=this.pow(Z,new I(1).iushln(rt-Qe-1));ve=ve.redMul(vt),Z=vt.redSqr(),Ye=Ye.redMul(Z),rt=Qe}return ve},le.prototype.invm=function(P){var k=P._invmp(this.m);return k.negative!==0?(k.negative=0,this.imod(k).redNeg()):this.imod(k)},le.prototype.pow=function(P,k){if(k.isZero())return new I(1).toRed(this);if(k.cmpn(1)===0)return P.clone();var B=4,z=new Array(1<<B);z[0]=new I(1).toRed(this),z[1]=P;for(var ee=2;ee<z.length;ee++)z[ee]=this.mul(z[ee-1],P);var H=z[0],q=0,J=0,U=k.bitLength()%26;for(U===0&&(U=26),ee=k.length-1;ee>=0;ee--){for(var Z=k.words[ee],ve=U-1;ve>=0;ve--){var Ye=Z>>ve&1;if(H!==z[0]&&(H=this.sqr(H)),Ye===0&&q===0){J=0;continue}q<<=1,q|=Ye,J++,!(J!==B&&(ee!==0||ve!==0))&&(H=this.mul(H,z[q]),J=0,q=0)}U=26}return H},le.prototype.convertTo=function(P){var k=P.umod(this.m);return k===P?k.clone():k},le.prototype.convertFrom=function(P){var k=P.clone();return k.red=null,k},I.mont=function(P){return new re(P)};function re(P){le.call(this,P),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new I(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}x(re,le),re.prototype.convertTo=function(P){return this.imod(P.ushln(this.shift))},re.prototype.convertFrom=function(P){var k=this.imod(P.mul(this.rinv));return k.red=null,k},re.prototype.imul=function(P,k){if(P.isZero()||k.isZero())return P.words[0]=0,P.length=1,P;var B=P.imul(k),z=B.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),ee=B.isub(z).iushrn(this.shift),H=ee;return ee.cmp(this.m)>=0?H=ee.isub(this.m):ee.cmpn(0)<0&&(H=ee.iadd(this.m)),H._forceRed(this)},re.prototype.mul=function(P,k){if(P.isZero()||k.isZero())return new I(0)._forceRed(this);var B=P.mul(k),z=B.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),ee=B.isub(z).iushrn(this.shift),H=ee;return ee.cmp(this.m)>=0?H=ee.isub(this.m):ee.cmpn(0)<0&&(H=ee.iadd(this.m)),H._forceRed(this)},re.prototype.invm=function(P){var k=this.imod(P._invmp(this.m).mul(this.r2));return k._forceRed(this)}})(u,Me)})(lh);var by=lh.exports,Ai={},dh$1={},xy={},ph={},xs=pe,Sa=xs.Buffer,qr={},Vr;for(Vr in xs)xs.hasOwnProperty(Vr)&&(Vr==="SlowBuffer"||Vr==="Buffer"||(qr[Vr]=xs[Vr]));var wa=qr.Buffer={};for(Vr in Sa)Sa.hasOwnProperty(Vr)&&(Vr==="allocUnsafe"||Vr==="allocUnsafeSlow"||(wa[Vr]=Sa[Vr]));qr.Buffer.prototype=Sa.prototype;(!wa.from||wa.from===Uint8Array.from)&&(wa.from=function(u,f,d){if(typeof u=="number")throw new TypeError('The "value" argument must not be of type number. Received type '+typeof u);if(u&&typeof u.length>"u")throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof u);return Sa(u,f,d)});wa.alloc||(wa.alloc=function(u,f,d){if(typeof u!="number")throw new TypeError('The "size" argument must be of type number. Received type '+typeof u);if(u<0||u>=2*(1<<30))throw new RangeError('The value "'+u+'" is invalid for option "size"');var _=Sa(u);return!f||f.length===0?_.fill(0):typeof d=="string"?_.fill(f,d):_.fill(f),_});if(!qr.kStringMaxLength)try{qr.kStringMaxLength=Ve.binding("buffer").kStringMaxLength}catch{}qr.constants||(qr.constants={MAX_LENGTH:qr.kMaxLength},qr.kStringMaxLength&&(qr.constants.MAX_STRING_LENGTH=qr.kStringMaxLength));var $0=qr,wf={};const P8=ut;function ti(u){this._reporterState={obj:null,path:[],options:u||{},errors:[]}}wf.Reporter=ti;ti.prototype.isError=function(u){return u instanceof Ra};ti.prototype.save=function(){const u=this._reporterState;return{obj:u.obj,pathLen:u.path.length}};ti.prototype.restore=function(u){const f=this._reporterState;f.obj=u.obj,f.path=f.path.slice(0,u.pathLen)};ti.prototype.enterKey=function(u){return this._reporterState.path.push(u)};ti.prototype.exitKey=function(u){const f=this._reporterState;f.path=f.path.slice(0,u-1)};ti.prototype.leaveKey=function(u,f,d){const _=this._reporterState;this.exitKey(u),_.obj!==null&&(_.obj[f]=d)};ti.prototype.path=function(){return this._reporterState.path.join("/")};ti.prototype.enterObject=function(){const u=this._reporterState,f=u.obj;return u.obj={},f};ti.prototype.leaveObject=function(u){const f=this._reporterState,d=f.obj;return f.obj=u,d};ti.prototype.error=function(u){let f;const d=this._reporterState,_=u instanceof Ra;if(_?f=u:f=new Ra(d.path.map(function(x){return"["+JSON.stringify(x)+"]"}).join(""),u.message||u,u.stack),!d.options.partial)throw f;return _||d.errors.push(f),f};ti.prototype.wrapResult=function(u){const f=this._reporterState;return f.options.partial?{result:this.isError(u)?null:u,errors:f.errors}:u};function Ra(u,f){this.path=u,this.rethrow(f)}P8(Ra,Error);Ra.prototype.rethrow=function(u){if(this.message=u+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,Ra),!this.stack)try{throw new Error(this.message)}catch(f){this.stack=f.stack}return this};var ea={};const L8=ut,Cf=wf.Reporter,Na=$0.Buffer;function Yr(u,f){if(Cf.call(this,f),!Na.isBuffer(u)){this.error("Input not Buffer");return}this.base=u,this.offset=0,this.length=u.length}L8(Yr,Cf);ea.DecoderBuffer=Yr;Yr.isDecoderBuffer=function(u){return u instanceof Yr?!0:typeof u=="object"&&Na.isBuffer(u.base)&&u.constructor.name==="DecoderBuffer"&&typeof u.offset=="number"&&typeof u.length=="number"&&typeof u.save=="function"&&typeof u.restore=="function"&&typeof u.isEmpty=="function"&&typeof u.readUInt8=="function"&&typeof u.skip=="function"&&typeof u.raw=="function"};Yr.prototype.save=function(){return{offset:this.offset,reporter:Cf.prototype.save.call(this)}};Yr.prototype.restore=function(u){const f=new Yr(this.base);return f.offset=u.offset,f.length=this.offset,this.offset=u.offset,Cf.prototype.restore.call(this,u.reporter),f};Yr.prototype.isEmpty=function(){return this.offset===this.length};Yr.prototype.readUInt8=function(u){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(u||"DecoderBuffer overrun")};Yr.prototype.skip=function(u,f){if(!(this.offset+u<=this.length))return this.error(f||"DecoderBuffer overrun");const d=new Yr(this.base);return d._reporterState=this._reporterState,d.offset=this.offset,d.length=this.offset+u,this.offset+=u,d};Yr.prototype.raw=function(u){return this.base.slice(u?u.offset:this.offset,this.length)};function Da(u,f){if(Array.isArray(u))this.length=0,this.value=u.map(function(d){return Da.isEncoderBuffer(d)||(d=new Da(d,f)),this.length+=d.length,d},this);else if(typeof u=="number"){if(!(0<=u&&u<=255))return f.error("non-byte EncoderBuffer value");this.value=u,this.length=1}else if(typeof u=="string")this.value=u,this.length=Na.byteLength(u);else if(Na.isBuffer(u))this.value=u,this.length=u.length;else return f.error("Unsupported type: "+typeof u)}ea.EncoderBuffer=Da;Da.isEncoderBuffer=function(u){return u instanceof Da?!0:typeof u=="object"&&u.constructor.name==="EncoderBuffer"&&typeof u.length=="number"&&typeof u.join=="function"};Da.prototype.join=function(u,f){return u||(u=Na.alloc(this.length)),f||(f=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(d){d.join(u,f),f+=d.length}):(typeof this.value=="number"?u[f]=this.value:typeof this.value=="string"?u.write(this.value,f):Na.isBuffer(this.value)&&this.value.copy(u,f),f+=this.length)),u};const k8=wf.Reporter,U8=ea.EncoderBuffer,F8=ea.DecoderBuffer,xr=Qr,_y=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],q8=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(_y),V8=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function Rt(u,f,d){const _={};this._baseState=_,_.name=d,_.enc=u,_.parent=f||null,_.children=null,_.tag=null,_.args=null,_.reverseArgs=null,_.choice=null,_.optional=!1,_.any=!1,_.obj=!1,_.use=null,_.useDecoder=null,_.key=null,_.default=null,_.explicit=null,_.implicit=null,_.contains=null,_.parent||(_.children=[],this._wrap())}var vh=Rt;const K8=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];Rt.prototype.clone=function(){const u=this._baseState,f={};K8.forEach(function(_){f[_]=u[_]});const d=new this.constructor(f.parent);return d._baseState=f,d};Rt.prototype._wrap=function(){const u=this._baseState;q8.forEach(function(f){this[f]=function(){const d=new this.constructor(this);return u.children.push(d),d[f].apply(d,arguments)}},this)};Rt.prototype._init=function(u){const f=this._baseState;xr(f.parent===null),u.call(this),f.children=f.children.filter(function(d){return d._baseState.parent===this},this),xr.equal(f.children.length,1,"Root node can have only one child")};Rt.prototype._useArgs=function(u){const f=this._baseState,d=u.filter(function(_){return _ instanceof this.constructor},this);u=u.filter(function(_){return!(_ instanceof this.constructor)},this),d.length!==0&&(xr(f.children===null),f.children=d,d.forEach(function(_){_._baseState.parent=this},this)),u.length!==0&&(xr(f.args===null),f.args=u,f.reverseArgs=u.map(function(_){if(typeof _!="object"||_.constructor!==Object)return _;const x={};return Object.keys(_).forEach(function(I){I==(I|0)&&(I|=0);const E=_[I];x[E]=I}),x}))};V8.forEach(function(u){Rt.prototype[u]=function(){const f=this._baseState;throw new Error(u+" not implemented for encoding: "+f.enc)}});_y.forEach(function(u){Rt.prototype[u]=function(){const f=this._baseState,d=Array.prototype.slice.call(arguments);return xr(f.tag===null),f.tag=u,this._useArgs(d),this}});Rt.prototype.use=function(u){xr(u);const f=this._baseState;return xr(f.use===null),f.use=u,this};Rt.prototype.optional=function(){const u=this._baseState;return u.optional=!0,this};Rt.prototype.def=function(u){const f=this._baseState;return xr(f.default===null),f.default=u,f.optional=!0,this};Rt.prototype.explicit=function(u){const f=this._baseState;return xr(f.explicit===null&&f.implicit===null),f.explicit=u,this};Rt.prototype.implicit=function(u){const f=this._baseState;return xr(f.explicit===null&&f.implicit===null),f.implicit=u,this};Rt.prototype.obj=function(){const u=this._baseState,f=Array.prototype.slice.call(arguments);return u.obj=!0,f.length!==0&&this._useArgs(f),this};Rt.prototype.key=function(u){const f=this._baseState;return xr(f.key===null),f.key=u,this};Rt.prototype.any=function(){const u=this._baseState;return u.any=!0,this};Rt.prototype.choice=function(u){const f=this._baseState;return xr(f.choice===null),f.choice=u,this._useArgs(Object.keys(u).map(function(d){return u[d]})),this};Rt.prototype.contains=function(u){const f=this._baseState;return xr(f.use===null),f.contains=u,this};Rt.prototype._decode=function(u,f){const d=this._baseState;if(d.parent===null)return u.wrapResult(d.children[0]._decode(u,f));let _=d.default,x=!0,I=null;if(d.key!==null&&(I=u.enterKey(d.key)),d.optional){let M=null;if(d.explicit!==null?M=d.explicit:d.implicit!==null?M=d.implicit:d.tag!==null&&(M=d.tag),M===null&&!d.any){const S=u.save();try{d.choice===null?this._decodeGeneric(d.tag,u,f):this._decodeChoice(u,f),x=!0}catch{x=!1}u.restore(S)}else if(x=this._peekTag(u,M,d.any),u.isError(x))return x}let E;if(d.obj&&x&&(E=u.enterObject()),x){if(d.explicit!==null){const S=this._decodeTag(u,d.explicit);if(u.isError(S))return S;u=S}const M=u.offset;if(d.use===null&&d.choice===null){let S;d.any&&(S=u.save());const A=this._decodeTag(u,d.implicit!==null?d.implicit:d.tag,d.any);if(u.isError(A))return A;d.any?_=u.raw(S):u=A}if(f&&f.track&&d.tag!==null&&f.track(u.path(),M,u.length,"tagged"),f&&f.track&&d.tag!==null&&f.track(u.path(),u.offset,u.length,"content"),d.any||(d.choice===null?_=this._decodeGeneric(d.tag,u,f):_=this._decodeChoice(u,f)),u.isError(_))return _;if(!d.any&&d.choice===null&&d.children!==null&&d.children.forEach(function(S){S._decode(u,f)}),d.contains&&(d.tag==="octstr"||d.tag==="bitstr")){const S=new F8(_);_=this._getUse(d.contains,u._reporterState.obj)._decode(S,f)}}return d.obj&&x&&(_=u.leaveObject(E)),d.key!==null&&(_!==null||x===!0)?u.leaveKey(I,d.key,_):I!==null&&u.exitKey(I),_};Rt.prototype._decodeGeneric=function(u,f,d){const _=this._baseState;return u==="seq"||u==="set"?null:u==="seqof"||u==="setof"?this._decodeList(f,u,_.args[0],d):/str$/.test(u)?this._decodeStr(f,u,d):u==="objid"&&_.args?this._decodeObjid(f,_.args[0],_.args[1],d):u==="objid"?this._decodeObjid(f,null,null,d):u==="gentime"||u==="utctime"?this._decodeTime(f,u,d):u==="null_"?this._decodeNull(f,d):u==="bool"?this._decodeBool(f,d):u==="objDesc"?this._decodeStr(f,u,d):u==="int"||u==="enum"?this._decodeInt(f,_.args&&_.args[0],d):_.use!==null?this._getUse(_.use,f._reporterState.obj)._decode(f,d):f.error("unknown tag: "+u)};Rt.prototype._getUse=function(u,f){const d=this._baseState;return d.useDecoder=this._use(u,f),xr(d.useDecoder._baseState.parent===null),d.useDecoder=d.useDecoder._baseState.children[0],d.implicit!==d.useDecoder._baseState.implicit&&(d.useDecoder=d.useDecoder.clone(),d.useDecoder._baseState.implicit=d.implicit),d.useDecoder};Rt.prototype._decodeChoice=function(u,f){const d=this._baseState;let _=null,x=!1;return Object.keys(d.choice).some(function(I){const E=u.save(),M=d.choice[I];try{const S=M._decode(u,f);if(u.isError(S))return!1;_={type:I,value:S},x=!0}catch{return u.restore(E),!1}return!0},this),x?_:u.error("Choice not matched")};Rt.prototype._createEncoderBuffer=function(u){return new U8(u,this.reporter)};Rt.prototype._encode=function(u,f,d){const _=this._baseState;if(_.default!==null&&_.default===u)return;const x=this._encodeValue(u,f,d);if(x!==void 0&&!this._skipDefault(x,f,d))return x};Rt.prototype._encodeValue=function(u,f,d){const _=this._baseState;if(_.parent===null)return _.children[0]._encode(u,f||new k8);let x=null;if(this.reporter=f,_.optional&&u===void 0)if(_.default!==null)u=_.default;else return;let I=null,E=!1;if(_.any)x=this._createEncoderBuffer(u);else if(_.choice)x=this._encodeChoice(u,f);else if(_.contains)I=this._getUse(_.contains,d)._encode(u,f),E=!0;else if(_.children)I=_.children.map(function(M){if(M._baseState.tag==="null_")return M._encode(null,f,u);if(M._baseState.key===null)return f.error("Child should have a key");const S=f.enterKey(M._baseState.key);if(typeof u!="object")return f.error("Child expected, but input is not object");const A=M._encode(u[M._baseState.key],f,u);return f.leaveKey(S),A},this).filter(function(M){return M}),I=this._createEncoderBuffer(I);else if(_.tag==="seqof"||_.tag==="setof"){if(!(_.args&&_.args.length===1))return f.error("Too many args for : "+_.tag);if(!Array.isArray(u))return f.error("seqof/setof, but data is not Array");const M=this.clone();M._baseState.implicit=null,I=this._createEncoderBuffer(u.map(function(S){const A=this._baseState;return this._getUse(A.args[0],u)._encode(S,f)},M))}else _.use!==null?x=this._getUse(_.use,d)._encode(u,f):(I=this._encodePrimitive(_.tag,u),E=!0);if(!_.any&&_.choice===null){const M=_.implicit!==null?_.implicit:_.tag,S=_.implicit===null?"universal":"context";M===null?_.use===null&&f.error("Tag could be omitted only for .use()"):_.use===null&&(x=this._encodeComposite(M,E,S,I))}return _.explicit!==null&&(x=this._encodeComposite(_.explicit,!1,"context",x)),x};Rt.prototype._encodeChoice=function(u,f){const d=this._baseState,_=d.choice[u.type];return _||xr(!1,u.type+" not found in "+JSON.stringify(Object.keys(d.choice))),_._encode(u.value,f)};Rt.prototype._encodePrimitive=function(u,f){const d=this._baseState;if(/str$/.test(u))return this._encodeStr(f,u);if(u==="objid"&&d.args)return this._encodeObjid(f,d.reverseArgs[0],d.args[1]);if(u==="objid")return this._encodeObjid(f,null,null);if(u==="gentime"||u==="utctime")return this._encodeTime(f,u);if(u==="null_")return this._encodeNull();if(u==="int"||u==="enum")return this._encodeInt(f,d.args&&d.reverseArgs[0]);if(u==="bool")return this._encodeBool(f);if(u==="objDesc")return this._encodeStr(f,u);throw new Error("Unsupported tag: "+u)};Rt.prototype._isNumstr=function(u){return/^[0-9 ]*$/.test(u)};Rt.prototype._isPrintstr=function(u){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(u)};var Af={};(function(u){function f(d){const _={};return Object.keys(d).forEach(function(x){(x|0)==x&&(x=x|0);const I=d[x];_[I]=x}),_}u.tagClass={0:"universal",1:"application",2:"context",3:"private"},u.tagClassByName=f(u.tagClass),u.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},u.tagByName=f(u.tag)})(Af);const $8=ut,Ji=$0.Buffer,Ey=vh,Do=Af;function Sy(u){this.enc="der",this.name=u.name,this.entity=u,this.tree=new Bi,this.tree._init(u.body)}var wy=Sy;Sy.prototype.encode=function(u,f){return this.tree._encode(u,f).join()};function Bi(u){Ey.call(this,"der",u)}$8(Bi,Ey);Bi.prototype._encodeComposite=function(u,f,d,_){const x=H8(u,f,d,this.reporter);if(_.length<128){const M=Ji.alloc(2);return M[0]=x,M[1]=_.length,this._createEncoderBuffer([M,_])}let I=1;for(let M=_.length;M>=256;M>>=8)I++;const E=Ji.alloc(2+I);E[0]=x,E[1]=128|I;for(let M=1+I,S=_.length;S>0;M--,S>>=8)E[M]=S&255;return this._createEncoderBuffer([E,_])};Bi.prototype._encodeStr=function(u,f){if(f==="bitstr")return this._createEncoderBuffer([u.unused|0,u.data]);if(f==="bmpstr"){const d=Ji.alloc(u.length*2);for(let _=0;_<u.length;_++)d.writeUInt16BE(u.charCodeAt(_),_*2);return this._createEncoderBuffer(d)}else return f==="numstr"?this._isNumstr(u)?this._createEncoderBuffer(u):this.reporter.error("Encoding of string type: numstr supports only digits and space"):f==="printstr"?this._isPrintstr(u)?this._createEncoderBuffer(u):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(f)?this._createEncoderBuffer(u):f==="objDesc"?this._createEncoderBuffer(u):this.reporter.error("Encoding of string type: "+f+" unsupported")};Bi.prototype._encodeObjid=function(u,f,d){if(typeof u=="string"){if(!f)return this.reporter.error("string objid given, but no values map found");if(!f.hasOwnProperty(u))return this.reporter.error("objid not found in values map");u=f[u].split(/[\s.]+/g);for(let E=0;E<u.length;E++)u[E]|=0}else if(Array.isArray(u)){u=u.slice();for(let E=0;E<u.length;E++)u[E]|=0}if(!Array.isArray(u))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(u));if(!d){if(u[1]>=40)return this.reporter.error("Second objid identifier OOB");u.splice(0,2,u[0]*40+u[1])}let _=0;for(let E=0;E<u.length;E++){let M=u[E];for(_++;M>=128;M>>=7)_++}const x=Ji.alloc(_);let I=x.length-1;for(let E=u.length-1;E>=0;E--){let M=u[E];for(x[I--]=M&127;(M>>=7)>0;)x[I--]=128|M&127}return this._createEncoderBuffer(x)};function kr(u){return u<10?"0"+u:u}Bi.prototype._encodeTime=function(u,f){let d;const _=new Date(u);return f==="gentime"?d=[kr(_.getUTCFullYear()),kr(_.getUTCMonth()+1),kr(_.getUTCDate()),kr(_.getUTCHours()),kr(_.getUTCMinutes()),kr(_.getUTCSeconds()),"Z"].join(""):f==="utctime"?d=[kr(_.getUTCFullYear()%100),kr(_.getUTCMonth()+1),kr(_.getUTCDate()),kr(_.getUTCHours()),kr(_.getUTCMinutes()),kr(_.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+f+" time is not supported yet"),this._encodeStr(d,"octstr")};Bi.prototype._encodeNull=function(){return this._createEncoderBuffer("")};Bi.prototype._encodeInt=function(u,f){if(typeof u=="string"){if(!f)return this.reporter.error("String int or enum given, but no values map");if(!f.hasOwnProperty(u))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(u));u=f[u]}if(typeof u!="number"&&!Ji.isBuffer(u)){const x=u.toArray();!u.sign&&x[0]&128&&x.unshift(0),u=Ji.from(x)}if(Ji.isBuffer(u)){let x=u.length;u.length===0&&x++;const I=Ji.alloc(x);return u.copy(I),u.length===0&&(I[0]=0),this._createEncoderBuffer(I)}if(u<128)return this._createEncoderBuffer(u);if(u<256)return this._createEncoderBuffer([0,u]);let d=1;for(let x=u;x>=256;x>>=8)d++;const _=new Array(d);for(let x=_.length-1;x>=0;x--)_[x]=u&255,u>>=8;return _[0]&128&&_.unshift(0),this._createEncoderBuffer(Ji.from(_))};Bi.prototype._encodeBool=function(u){return this._createEncoderBuffer(u?255:0)};Bi.prototype._use=function(u,f){return typeof u=="function"&&(u=u(f)),u._getEncoder("der").tree};Bi.prototype._skipDefault=function(u,f,d){const _=this._baseState;let x;if(_.default===null)return!1;const I=u.join();if(_.defaultBuffer===void 0&&(_.defaultBuffer=this._encodeValue(_.default,f,d).join()),I.length!==_.defaultBuffer.length)return!1;for(x=0;x<I.length;x++)if(I[x]!==_.defaultBuffer[x])return!1;return!0};function H8(u,f,d,_){let x;if(u==="seqof"?u="seq":u==="setof"&&(u="set"),Do.tagByName.hasOwnProperty(u))x=Do.tagByName[u];else if(typeof u=="number"&&(u|0)===u)x=u;else return _.error("Unknown tag: "+u);return x>=31?_.error("Multi-octet tag encoding unsupported"):(f||(x|=32),x|=Do.tagClassByName[d||"universal"]<<6,x)}const G8=ut,yh=wy;function gh(u){yh.call(this,u),this.enc="pem"}G8(gh,yh);var z8=gh;gh.prototype.encode=function(u,f){const d=yh.prototype.encode.call(this,u).toString("base64"),_=["-----BEGIN "+f.label+"-----"];for(let x=0;x<d.length;x+=64)_.push(d.slice(x,x+64));return _.push("-----END "+f.label+"-----"),_.join(`
`)};(function(u){const f=u;f.der=wy,f.pem=z8})(ph);var mh={};const j8=ut,W8=rr,id=ea.DecoderBuffer,Cy=vh,nd=Af;function Ay(u){this.enc="der",this.name=u.name,this.entity=u,this.tree=new Lr,this.tree._init(u.body)}var By=Ay;Ay.prototype.decode=function(u,f){return id.isDecoderBuffer(u)||(u=new id(u,f)),this.tree._decode(u,f)};function Lr(u){Cy.call(this,"der",u)}j8(Lr,Cy);Lr.prototype._peekTag=function(u,f,d){if(u.isEmpty())return!1;const _=u.save(),x=bh(u,'Failed to peek tag: "'+f+'"');return u.isError(x)?x:(u.restore(_),x.tag===f||x.tagStr===f||x.tagStr+"of"===f||d)};Lr.prototype._decodeTag=function(u,f,d){const _=bh(u,'Failed to decode tag of "'+f+'"');if(u.isError(_))return _;let x=Iy(u,_.primitive,'Failed to get length of "'+f+'"');if(u.isError(x))return x;if(!d&&_.tag!==f&&_.tagStr!==f&&_.tagStr+"of"!==f)return u.error('Failed to match tag: "'+f+'"');if(_.primitive||x!==null)return u.skip(x,'Failed to match body of: "'+f+'"');const I=u.save(),E=this._skipUntilEnd(u,'Failed to skip indefinite length body: "'+this.tag+'"');return u.isError(E)?E:(x=u.offset-I.offset,u.restore(I),u.skip(x,'Failed to match body of: "'+f+'"'))};Lr.prototype._skipUntilEnd=function(u,f){for(;;){const d=bh(u,f);if(u.isError(d))return d;const _=Iy(u,d.primitive,f);if(u.isError(_))return _;let x;if(d.primitive||_!==null?x=u.skip(_):x=this._skipUntilEnd(u,f),u.isError(x))return x;if(d.tagStr==="end")break}};Lr.prototype._decodeList=function(u,f,d,_){const x=[];for(;!u.isEmpty();){const I=this._peekTag(u,"end");if(u.isError(I))return I;const E=d.decode(u,"der",_);if(u.isError(E)&&I)break;x.push(E)}return x};Lr.prototype._decodeStr=function(u,f){if(f==="bitstr"){const d=u.readUInt8();return u.isError(d)?d:{unused:d,data:u.raw()}}else if(f==="bmpstr"){const d=u.raw();if(d.length%2===1)return u.error("Decoding of string type: bmpstr length mismatch");let _="";for(let x=0;x<d.length/2;x++)_+=String.fromCharCode(d.readUInt16BE(x*2));return _}else if(f==="numstr"){const d=u.raw().toString("ascii");return this._isNumstr(d)?d:u.error("Decoding of string type: numstr unsupported characters")}else{if(f==="octstr"||f==="objDesc")return u.raw();if(f==="printstr"){const d=u.raw().toString("ascii");return this._isPrintstr(d)?d:u.error("Decoding of string type: printstr unsupported characters")}else return/str$/.test(f)?u.raw().toString():u.error("Decoding of string type: "+f+" unsupported")}};Lr.prototype._decodeObjid=function(u,f,d){let _;const x=[];let I=0,E=0;for(;!u.isEmpty();)E=u.readUInt8(),I<<=7,I|=E&127,E&128||(x.push(I),I=0);E&128&&x.push(I);const M=x[0]/40|0,S=x[0]%40;if(d?_=x:_=[M,S].concat(x.slice(1)),f){let A=f[_.join(" ")];A===void 0&&(A=f[_.join(".")]),A!==void 0&&(_=A)}return _};Lr.prototype._decodeTime=function(u,f){const d=u.raw().toString();let _,x,I,E,M,S;if(f==="gentime")_=d.slice(0,4)|0,x=d.slice(4,6)|0,I=d.slice(6,8)|0,E=d.slice(8,10)|0,M=d.slice(10,12)|0,S=d.slice(12,14)|0;else if(f==="utctime")_=d.slice(0,2)|0,x=d.slice(2,4)|0,I=d.slice(4,6)|0,E=d.slice(6,8)|0,M=d.slice(8,10)|0,S=d.slice(10,12)|0,_<70?_=2e3+_:_=1900+_;else return u.error("Decoding "+f+" time is not supported yet");return Date.UTC(_,x-1,I,E,M,S,0)};Lr.prototype._decodeNull=function(){return null};Lr.prototype._decodeBool=function(u){const f=u.readUInt8();return u.isError(f)?f:f!==0};Lr.prototype._decodeInt=function(u,f){const d=u.raw();let _=new W8(d);return f&&(_=f[_.toString(10)]||_),_};Lr.prototype._use=function(u,f){return typeof u=="function"&&(u=u(f)),u._getDecoder("der").tree};function bh(u,f){let d=u.readUInt8(f);if(u.isError(d))return d;const _=nd.tagClass[d>>6],x=(d&32)===0;if((d&31)===31){let E=d;for(d=0;(E&128)===128;){if(E=u.readUInt8(f),u.isError(E))return E;d<<=7,d|=E&127}}else d&=31;const I=nd.tag[d];return{cls:_,primitive:x,tag:d,tagStr:I}}function Iy(u,f,d){let _=u.readUInt8(d);if(u.isError(_))return _;if(!f&&_===128)return null;if(!(_&128))return _;const x=_&127;if(x>4)return u.error("length octect is too long");_=0;for(let I=0;I<x;I++){_<<=8;const E=u.readUInt8(d);if(u.isError(E))return E;_|=E}return _}const Y8=ut,X8=$0.Buffer,xh=By;function _h(u){xh.call(this,u),this.enc="pem"}Y8(_h,xh);var Q8=_h;_h.prototype.decode=function(u,f){const d=u.toString().split(/[\r\n]+/g),_=f.label.toUpperCase(),x=/^-----(BEGIN|END) ([^-]+)-----$/;let I=-1,E=-1;for(let A=0;A<d.length;A++){const T=d[A].match(x);if(T!==null&&T[2]===_)if(I===-1){if(T[1]!=="BEGIN")break;I=A}else{if(T[1]!=="END")break;E=A;break}}if(I===-1||E===-1)throw new Error("PEM section not found for: "+_);const M=d.slice(I+1,E).join("");M.replace(/[^a-z0-9+/=]+/gi,"");const S=X8.from(M,"base64");return xh.prototype.decode.call(this,S,f)};(function(u){const f=u;f.der=By,f.pem=Q8})(mh);(function(u){const f=ph,d=mh,_=ut,x=u;x.define=function(E,M){return new I(E,M)};function I(E,M){this.name=E,this.body=M,this.decoders={},this.encoders={}}I.prototype._createNamed=function(E){const M=this.name;function S(A){this._initNamed(A,M)}return _(S,E),S.prototype._initNamed=function(A,T){E.call(this,A,T)},new S(this)},I.prototype._getDecoder=function(E){return E=E||"der",this.decoders.hasOwnProperty(E)||(this.decoders[E]=this._createNamed(d[E])),this.decoders[E]},I.prototype.decode=function(E,M,S){return this._getDecoder(M).decode(E,S)},I.prototype._getEncoder=function(E){return E=E||"der",this.encoders.hasOwnProperty(E)||(this.encoders[E]=this._createNamed(f[E])),this.encoders[E]},I.prototype.encode=function(E,M,S){return this._getEncoder(M).encode(E,S)}})(xy);var Ty={};(function(u){const f=u;f.Reporter=wf.Reporter,f.DecoderBuffer=ea.DecoderBuffer,f.EncoderBuffer=ea.EncoderBuffer,f.Node=vh})(Ty);var My={};(function(u){const f=u;f._reverse=function(d){const _={};return Object.keys(d).forEach(function(x){(x|0)==x&&(x=x|0);const I=d[x];_[I]=x}),_},f.der=Af})(My);(function(u){const f=u;f.bignum=rr,f.define=xy.define,f.base=Ty,f.constants=My,f.decoders=mh,f.encoders=ph})(dh$1);var Ii=dh$1,ad=Ii.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),Z8=Ii.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),Eh=Ii.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),J8=Ii.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(Eh),this.key("subjectPublicKey").bitstr())}),e5=Ii.define("RelativeDistinguishedName",function(){this.setof(Z8)}),t5=Ii.define("RDNSequence",function(){this.seqof(e5)}),sd=Ii.define("Name",function(){this.choice({rdnSequence:this.use(t5)})}),r5=Ii.define("Validity",function(){this.seq().obj(this.key("notBefore").use(ad),this.key("notAfter").use(ad))}),i5=Ii.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),n5=Ii.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(Eh),this.key("issuer").use(sd),this.key("validity").use(r5),this.key("subject").use(sd),this.key("subjectPublicKeyInfo").use(J8),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(i5).optional())}),a5=Ii.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(n5),this.key("signatureAlgorithm").use(Eh),this.key("signatureValue").bitstr())}),s5=a5,Ti=dh$1;Ai.certificate=s5;var f5=Ti.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});Ai.RSAPrivateKey=f5;var o5=Ti.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});Ai.RSAPublicKey=o5;var u5=Ti.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(Ry),this.key("subjectPublicKey").bitstr())});Ai.PublicKey=u5;var Ry=Ti.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),c5=Ti.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(Ry),this.key("subjectPrivateKey").octstr())});Ai.PrivateKey=c5;var h5=Ti.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});Ai.EncryptedPrivateKey=h5;var l5=Ti.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});Ai.DSAPrivateKey=l5;Ai.DSAparam=Ti.define("DSAparam",function(){this.int()});var d5=Ti.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(p5),this.key("publicKey").optional().explicit(1).bitstr())});Ai.ECPrivateKey=d5;var p5=Ti.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});Ai.signature=Ti.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())});const v5={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"};var y5=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,g5=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,m5=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,b5=lf,x5=Dr,es=ct.Buffer,_5=function(u,f){var d=u.toString(),_=d.match(y5),x;if(_){var I="aes"+_[1],E=es.from(_[2],"hex"),M=es.from(_[3].replace(/[\r\n]/g,""),"base64"),S=b5(f,E.slice(0,8),parseInt(_[1],10)).key,A=[],T=x5.createDecipheriv(I,S,E);A.push(T.update(M)),A.push(T.final()),x=es.concat(A)}else{var D=d.match(m5);x=es.from(D[2].replace(/[\r\n]/g,""),"base64")}var O=d.match(g5)[1];return{tag:O,data:x}},Sr=Ai,E5=v5,S5=_5,w5=Dr,C5=uf,hc=ct.Buffer,Bf=Ny;function Ny(u){var f;typeof u=="object"&&!hc.isBuffer(u)&&(f=u.passphrase,u=u.key),typeof u=="string"&&(u=hc.from(u));var d=S5(u,f),_=d.tag,x=d.data,I,E;switch(_){case"CERTIFICATE":E=Sr.certificate.decode(x,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(E||(E=Sr.PublicKey.decode(x,"der")),I=E.algorithm.algorithm.join("."),I){case"1.2.840.113549.1.1.1":return Sr.RSAPublicKey.decode(E.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return E.subjectPrivateKey=E.subjectPublicKey,{type:"ec",data:E};case"1.2.840.10040.4.1":return E.algorithm.params.pub_key=Sr.DSAparam.decode(E.subjectPublicKey.data,"der"),{type:"dsa",data:E.algorithm.params};default:throw new Error("unknown key id "+I)}case"ENCRYPTED PRIVATE KEY":x=Sr.EncryptedPrivateKey.decode(x,"der"),x=A5(x,f);case"PRIVATE KEY":switch(E=Sr.PrivateKey.decode(x,"der"),I=E.algorithm.algorithm.join("."),I){case"1.2.840.113549.1.1.1":return Sr.RSAPrivateKey.decode(E.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:E.algorithm.curve,privateKey:Sr.ECPrivateKey.decode(E.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return E.algorithm.params.priv_key=Sr.DSAparam.decode(E.subjectPrivateKey,"der"),{type:"dsa",params:E.algorithm.params};default:throw new Error("unknown key id "+I)}case"RSA PUBLIC KEY":return Sr.RSAPublicKey.decode(x,"der");case"RSA PRIVATE KEY":return Sr.RSAPrivateKey.decode(x,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:Sr.DSAPrivateKey.decode(x,"der")};case"EC PRIVATE KEY":return x=Sr.ECPrivateKey.decode(x,"der"),{curve:x.parameters.value,privateKey:x.privateKey};default:throw new Error("unknown key type "+_)}}Ny.signature=Sr.signature;function A5(u,f){var d=u.algorithm.decrypt.kde.kdeparams.salt,_=parseInt(u.algorithm.decrypt.kde.kdeparams.iters.toString(),10),x=E5[u.algorithm.decrypt.cipher.algo.join(".")],I=u.algorithm.decrypt.cipher.iv,E=u.subjectPrivateKey,M=parseInt(x.split("-")[1],10)/8,S=C5.pbkdf2Sync(f,d,_,M,"sha1"),A=w5.createDecipheriv(x,S,I),T=[];return T.push(A.update(E)),T.push(A.final()),hc.concat(T)}const Dy={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"};var fd;function B5(){if(fd)return u0.exports;fd=1;var u=ct.Buffer,f=iv,d=sh,_=hh().ec,x=by,I=Bf,E=Dy;function M(Q,X,Y,ie,oe){var ge=I(X);if(ge.curve){if(ie!=="ecdsa"&&ie!=="ecdsa/rsa")throw new Error("wrong private key type");return S(Q,ge)}else if(ge.type==="dsa"){if(ie!=="dsa")throw new Error("wrong private key type");return A(Q,ge,Y)}else if(ie!=="rsa"&&ie!=="ecdsa/rsa")throw new Error("wrong private key type");Q=u.concat([oe,Q]);for(var be=ge.modulus.byteLength(),ze=[0,1];Q.length+ze.length+1<be;)ze.push(255);ze.push(0);for(var de=-1;++de<Q.length;)ze.push(Q[de]);var Ce=d(ze,ge);return Ce}function S(Q,X){var Y=E[X.curve.join(".")];if(!Y)throw new Error("unknown curve "+X.curve.join("."));var ie=new _(Y),oe=ie.keyFromPrivate(X.privateKey),ge=oe.sign(Q);return u.from(ge.toDER())}function A(Q,X,Y){for(var ie=X.params.priv_key,oe=X.params.p,ge=X.params.q,be=X.params.g,ze=new x(0),de,Ce=O(Q,ge).mod(ge),ke=!1,le=D(ie,ge,Q,Y);ke===!1;)de=$(ge,le,Y),ze=W(be,de,oe,ge),ke=de.invm(ge).imul(Ce.add(ie.mul(ze))).mod(ge),ke.cmpn(0)===0&&(ke=!1,ze=new x(0));return T(ze,ke)}function T(Q,X){Q=Q.toArray(),X=X.toArray(),Q[0]&128&&(Q=[0].concat(Q)),X[0]&128&&(X=[0].concat(X));var Y=Q.length+X.length+4,ie=[48,Y,2,Q.length];return ie=ie.concat(Q,[2,X.length],X),u.from(ie)}function D(Q,X,Y,ie){if(Q=u.from(Q.toArray()),Q.length<X.byteLength()){var oe=u.alloc(X.byteLength()-Q.length);Q=u.concat([oe,Q])}var ge=Y.length,be=j(Y,X),ze=u.alloc(ge);ze.fill(1);var de=u.alloc(ge);return de=f(ie,de).update(ze).update(u.from([0])).update(Q).update(be).digest(),ze=f(ie,de).update(ze).digest(),de=f(ie,de).update(ze).update(u.from([1])).update(Q).update(be).digest(),ze=f(ie,de).update(ze).digest(),{k:de,v:ze}}function O(Q,X){var Y=new x(Q),ie=(Q.length<<3)-X.bitLength();return ie>0&&Y.ishrn(ie),Y}function j(Q,X){Q=O(Q,X),Q=Q.mod(X);var Y=u.from(Q.toArray());if(Y.length<X.byteLength()){var ie=u.alloc(X.byteLength()-Y.length);Y=u.concat([ie,Y])}return Y}function $(Q,X,Y){var ie,oe;do{for(ie=u.alloc(0);ie.length*8<Q.bitLength();)X.v=f(Y,X.k).update(X.v).digest(),ie=u.concat([ie,X.v]);oe=O(ie,Q),X.k=f(Y,X.k).update(X.v).update(u.from([0])).digest(),X.v=f(Y,X.k).update(X.v).digest()}while(oe.cmp(Q)!==-1);return oe}function W(Q,X,Y,ie){return Q.toRed(x.mont(Y)).redPow(X).fromRed().mod(ie)}return u0.exports=M,u0.exports.getKey=D,u0.exports.makeKey=$,u0.exports}var Oo,od;function I5(){if(od)return Oo;od=1;var u=ct.Buffer,f=by,d=hh().ec,_=Bf,x=Dy;function I(A,T,D,O,j){var $=_(D);if($.type==="ec"){if(O!=="ecdsa"&&O!=="ecdsa/rsa")throw new Error("wrong public key type");return E(A,T,$)}else if($.type==="dsa"){if(O!=="dsa")throw new Error("wrong public key type");return M(A,T,$)}else if(O!=="rsa"&&O!=="ecdsa/rsa")throw new Error("wrong public key type");T=u.concat([j,T]);for(var W=$.modulus.byteLength(),Q=[1],X=0;T.length+Q.length+2<W;)Q.push(255),X++;Q.push(0);for(var Y=-1;++Y<T.length;)Q.push(T[Y]);Q=u.from(Q);var ie=f.mont($.modulus);A=new f(A).toRed(ie),A=A.redPow(new f($.publicExponent)),A=u.from(A.fromRed().toArray());var oe=X<8?1:0;for(W=Math.min(A.length,Q.length),A.length!==Q.length&&(oe=1),Y=-1;++Y<W;)oe|=A[Y]^Q[Y];return oe===0}function E(A,T,D){var O=x[D.data.algorithm.curve.join(".")];if(!O)throw new Error("unknown curve "+D.data.algorithm.curve.join("."));var j=new d(O),$=D.data.subjectPrivateKey.data;return j.verify(T,A,$)}function M(A,T,D){var O=D.data.p,j=D.data.q,$=D.data.g,W=D.data.pub_key,Q=_.signature.decode(A,"der"),X=Q.s,Y=Q.r;S(X,j),S(Y,j);var ie=f.mont(O),oe=X.invm(j),ge=$.toRed(ie).redPow(new f(T).mul(oe).mod(j)).fromRed().mul(W.toRed(ie).redPow(Y.mul(oe).mod(j)).fromRed()).mod(O).mod(j);return ge.cmp(Y)===0}function S(A,T){if(A.cmpn(0)<=0)throw new Error("invalid sig");if(A.cmp(T)>=T)throw new Error("invalid sig")}return Oo=I,Oo}var Po,ud;function T5(){if(ud)return Po;ud=1;var u=ct.Buffer,f=P0,d=U1,_=ut,x=B5(),I=I5(),E=nv;Object.keys(E).forEach(function(D){E[D].id=u.from(E[D].id,"hex"),E[D.toLowerCase()]=E[D]});function M(D){d.Writable.call(this);var O=E[D];if(!O)throw new Error("Unknown message digest");this._hashType=O.hash,this._hash=f(O.hash),this._tag=O.id,this._signType=O.sign}_(M,d.Writable),M.prototype._write=function(D,O,j){this._hash.update(D),j()},M.prototype.update=function(D,O){return typeof D=="string"&&(D=u.from(D,O)),this._hash.update(D),this},M.prototype.sign=function(D,O){this.end();var j=this._hash.digest(),$=x(j,D,this._hashType,this._signType,this._tag);return O?$.toString(O):$};function S(D){d.Writable.call(this);var O=E[D];if(!O)throw new Error("Unknown message digest");this._hash=f(O.hash),this._tag=O.id,this._signType=O.sign}_(S,d.Writable),S.prototype._write=function(D,O,j){this._hash.update(D),j()},S.prototype.update=function(D,O){return typeof D=="string"&&(D=u.from(D,O)),this._hash.update(D),this},S.prototype.verify=function(D,O,j){typeof O=="string"&&(O=u.from(O,j)),this.end();var $=this._hash.digest();return I(O,$,D,this._signType,this._tag)};function A(D){return new M(D)}function T(D){return new S(D)}return Po={Sign:A,Verify:T,createSign:A,createVerify:T},Po}var Lo,cd;function M5(){if(cd)return Lo;cd=1;var u=hh(),f=rr;Lo=function(I){return new _(I)};var d={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};d.p224=d.secp224r1,d.p256=d.secp256r1=d.prime256v1,d.p192=d.secp192r1=d.prime192v1,d.p384=d.secp384r1,d.p521=d.secp521r1;function _(I){this.curveType=d[I],this.curveType||(this.curveType={name:I}),this.curve=new u.ec(this.curveType.name),this.keys=void 0}_.prototype.generateKeys=function(I,E){return this.keys=this.curve.genKeyPair(),this.getPublicKey(I,E)},_.prototype.computeSecret=function(I,E,M){E=E||"utf8",pe.Buffer.isBuffer(I)||(I=new pe.Buffer(I,E));var S=this.curve.keyFromPublic(I).getPublic(),A=S.mul(this.keys.getPrivate()).getX();return x(A,M,this.curveType.byteLength)},_.prototype.getPublicKey=function(I,E){var M=this.keys.getPublic(E==="compressed",!0);return E==="hybrid"&&(M[M.length-1]%2?M[0]=7:M[0]=6),x(M,I)},_.prototype.getPrivateKey=function(I){return x(this.keys.getPrivate(),I)},_.prototype.setPublicKey=function(I,E){return E=E||"utf8",pe.Buffer.isBuffer(I)||(I=new pe.Buffer(I,E)),this.keys._importPublic(I),this},_.prototype.setPrivateKey=function(I,E){E=E||"utf8",pe.Buffer.isBuffer(I)||(I=new pe.Buffer(I,E));var M=new f(I);return M=M.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(M),this};function x(I,E,M){Array.isArray(I)||(I=I.toArray());var S=new pe.Buffer(I);if(M&&S.length<M){var A=new pe.Buffer(M-S.length);A.fill(0),S=pe.Buffer.concat([A,S])}return E?S.toString(E):S}return Lo}var Oy={},R5=P0,lc=ct.Buffer,Py=function(u,f){for(var d=lc.alloc(0),_=0,x;d.length<f;)x=N5(_++),d=lc.concat([d,R5("sha1").update(u).update(x).digest()]);return d.slice(0,f)};function N5(u){var f=lc.allocUnsafe(4);return f.writeUInt32BE(u,0),f}var Ly=function(u,f){for(var d=u.length,_=-1;++_<d;)u[_]^=f[_];return u},hd=rr,D5=ct.Buffer;function O5(u,f){return D5.from(u.toRed(hd.mont(f.modulus)).redPow(new hd(f.publicExponent)).fromRed().toArray())}var ky=O5,P5=Bf,dc=Ua,L5=P0,ld=Py,dd=Ly,Sh=rr,k5=ky,U5=sh,_i=ct.Buffer,F5=function(u,f,d){var _;u.padding?_=u.padding:d?_=1:_=4;var x=P5(u),I;if(_===4)I=q5(x,f);else if(_===1)I=V5(x,f,d);else if(_===3){if(I=new Sh(f),I.cmp(x.modulus)>=0)throw new Error("data too long for modulus")}else throw new Error("unknown padding");return d?U5(I,x):k5(I,x)};function q5(u,f){var d=u.modulus.byteLength(),_=f.length,x=L5("sha1").update(_i.alloc(0)).digest(),I=x.length,E=2*I;if(_>d-E-2)throw new Error("message too long");var M=_i.alloc(d-_-E-2),S=d-I-1,A=dc(I),T=dd(_i.concat([x,M,_i.alloc(1,1),f],S),ld(A,S)),D=dd(A,ld(T,I));return new Sh(_i.concat([_i.alloc(1),D,T],d))}function V5(u,f,d){var _=f.length,x=u.modulus.byteLength();if(_>x-11)throw new Error("message too long");var I;return d?I=_i.alloc(x-_-3,255):I=K5(x-_-3),new Sh(_i.concat([_i.from([0,d?1:2]),I,_i.alloc(1),f],x))}function K5(u){for(var f=_i.allocUnsafe(u),d=0,_=dc(u*2),x=0,I;d<u;)x===_.length&&(_=dc(u*2),x=0),I=_[x++],I&&(f[d++]=I);return f}var $5=Bf,pd=Py,vd=Ly,yd=rr,H5=sh,G5=P0,z5=ky,I0=ct.Buffer,j5=function(u,f,d){var _;u.padding?_=u.padding:d?_=1:_=4;var x=$5(u),I=x.modulus.byteLength();if(f.length>I||new yd(f).cmp(x.modulus)>=0)throw new Error("decryption error");var E;d?E=z5(new yd(f),x):E=H5(f,x);var M=I0.alloc(I-E.length);if(E=I0.concat([M,E],I),_===4)return W5(x,E);if(_===1)return Y5(x,E,d);if(_===3)return E;throw new Error("unknown padding")};function W5(u,f){var d=u.modulus.byteLength(),_=G5("sha1").update(I0.alloc(0)).digest(),x=_.length;if(f[0]!==0)throw new Error("decryption error");var I=f.slice(1,x+1),E=f.slice(x+1),M=vd(I,pd(E,x)),S=vd(E,pd(M,d-x-1));if(X5(_,S.slice(0,x)))throw new Error("decryption error");for(var A=x;S[A]===0;)A++;if(S[A++]!==1)throw new Error("decryption error");return S.slice(A)}function Y5(u,f,d){for(var _=f.slice(0,2),x=2,I=0;f[x++]!==0;)if(x>=f.length){I++;break}var E=f.slice(2,x-1);if((_.toString("hex")!=="0002"&&!d||_.toString("hex")!=="0001"&&d)&&I++,E.length<8&&I++,I)throw new Error("decryption error");return f.slice(x)}function X5(u,f){u=I0.from(u),f=I0.from(f);var d=0,_=u.length;u.length!==f.length&&(d++,_=Math.min(u.length,f.length));for(var x=-1;++x<_;)d+=u[x]^f[x];return d}(function(u){u.publicEncrypt=F5,u.privateDecrypt=j5,u.privateEncrypt=function(f,d){return u.publicEncrypt(f,d,!0)},u.publicDecrypt=function(f,d){return u.privateDecrypt(f,d,!0)}})(Oy);var m0={};function gd(){throw new Error(`secure random number generation not supported by this browser
use chrome, FireFox or Internet Explorer 11`)}var Uy=ct,md=Ua,Fy=Uy.Buffer,qy=Uy.kMaxLength,pc=Me.crypto||Me.msCrypto,Vy=Math.pow(2,32)-1;function Ky(u,f){if(typeof u!="number"||u!==u)throw new TypeError("offset must be a number");if(u>Vy||u<0)throw new TypeError("offset must be a uint32");if(u>qy||u>f)throw new RangeError("offset out of range")}function $y(u,f,d){if(typeof u!="number"||u!==u)throw new TypeError("size must be a number");if(u>Vy||u<0)throw new TypeError("size must be a uint32");if(u+f>d||u>qy)throw new RangeError("buffer too small")}pc&&pc.getRandomValues||!Ve.browser?(m0.randomFill=Q5,m0.randomFillSync=Z5):(m0.randomFill=gd,m0.randomFillSync=gd);function Q5(u,f,d,_){if(!Fy.isBuffer(u)&&!(u instanceof Me.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof f=="function")_=f,f=0,d=u.length;else if(typeof d=="function")_=d,d=u.length-f;else if(typeof _!="function")throw new TypeError('"cb" argument must be a function');return Ky(f,u.length),$y(d,f,u.length),Hy(u,f,d,_)}function Hy(u,f,d,_){if(Ve.browser){var x=u.buffer,I=new Uint8Array(x,f,d);if(pc.getRandomValues(I),_){Ve.nextTick(function(){_(null,u)});return}return u}if(_){md(d,function(M,S){if(M)return _(M);S.copy(u,f),_(null,u)});return}var E=md(d);return E.copy(u,f),u}function Z5(u,f,d){if(typeof f>"u"&&(f=0),!Fy.isBuffer(u)&&!(u instanceof Me.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return Ky(f,u.length),d===void 0&&(d=u.length-f),$y(d,f,u.length),Hy(u,f,d)}var bd;function _r(){if(bd)return st;bd=1,st.randomBytes=st.rng=st.pseudoRandomBytes=st.prng=Ua,st.createHash=st.Hash=P0,st.createHmac=st.Hmac=iv;var u=Ux,f=Object.keys(u),d=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(f);st.getHashes=function(){return d};var _=uf;st.pbkdf2=_.pbkdf2,st.pbkdf2Sync=_.pbkdf2Sync;var x=Si;st.Cipher=x.Cipher,st.createCipher=x.createCipher,st.Cipheriv=x.Cipheriv,st.createCipheriv=x.createCipheriv,st.Decipher=x.Decipher,st.createDecipher=x.createDecipher,st.Decipheriv=x.Decipheriv,st.createDecipheriv=x.createDecipheriv,st.getCiphers=x.getCiphers,st.listCiphers=x.listCiphers;var I=y3();st.DiffieHellmanGroup=I.DiffieHellmanGroup,st.createDiffieHellmanGroup=I.createDiffieHellmanGroup,st.getDiffieHellman=I.getDiffieHellman,st.createDiffieHellman=I.createDiffieHellman,st.DiffieHellman=I.DiffieHellman;var E=T5();st.createSign=E.createSign,st.Sign=E.Sign,st.createVerify=E.createVerify,st.Verify=E.Verify,st.createECDH=M5();var M=Oy;st.publicEncrypt=M.publicEncrypt,st.privateEncrypt=M.privateEncrypt,st.publicDecrypt=M.publicDecrypt,st.privateDecrypt=M.privateDecrypt;var S=m0;return st.randomFill=S.randomFill,st.randomFillSync=S.randomFillSync,st.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join(`
`))},st.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6},st}var xd;function xt(){return xd||(xd=1,function(u,f){(function(d,_){u.exports=_()})(Me,function(){var d=d||function(_,x){var I;if(typeof window<"u"&&window.crypto&&(I=window.crypto),typeof self<"u"&&self.crypto&&(I=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(I=globalThis.crypto),!I&&typeof window<"u"&&window.msCrypto&&(I=window.msCrypto),!I&&typeof Me<"u"&&Me.crypto&&(I=Me.crypto),!I&&typeof bg=="function")try{I=_r()}catch{}var E=function(){if(I){if(typeof I.getRandomValues=="function")try{return I.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof I.randomBytes=="function")try{return I.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},M=Object.create||function(){function Y(){}return function(ie){var oe;return Y.prototype=ie,oe=new Y,Y.prototype=null,oe}}(),S={},A=S.lib={},T=A.Base=function(){return{extend:function(Y){var ie=M(this);return Y&&ie.mixIn(Y),(!ie.hasOwnProperty("init")||this.init===ie.init)&&(ie.init=function(){ie.$super.init.apply(this,arguments)}),ie.init.prototype=ie,ie.$super=this,ie},create:function(){var Y=this.extend();return Y.init.apply(Y,arguments),Y},init:function(){},mixIn:function(Y){for(var ie in Y)Y.hasOwnProperty(ie)&&(this[ie]=Y[ie]);Y.hasOwnProperty("toString")&&(this.toString=Y.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),D=A.WordArray=T.extend({init:function(Y,ie){Y=this.words=Y||[],ie!=x?this.sigBytes=ie:this.sigBytes=Y.length*4},toString:function(Y){return(Y||j).stringify(this)},concat:function(Y){var ie=this.words,oe=Y.words,ge=this.sigBytes,be=Y.sigBytes;if(this.clamp(),ge%4)for(var ze=0;ze<be;ze++){var de=oe[ze>>>2]>>>24-ze%4*8&255;ie[ge+ze>>>2]|=de<<24-(ge+ze)%4*8}else for(var Ce=0;Ce<be;Ce+=4)ie[ge+Ce>>>2]=oe[Ce>>>2];return this.sigBytes+=be,this},clamp:function(){var Y=this.words,ie=this.sigBytes;Y[ie>>>2]&=4294967295<<32-ie%4*8,Y.length=_.ceil(ie/4)},clone:function(){var Y=T.clone.call(this);return Y.words=this.words.slice(0),Y},random:function(Y){for(var ie=[],oe=0;oe<Y;oe+=4)ie.push(E());return new D.init(ie,Y)}}),O=S.enc={},j=O.Hex={stringify:function(Y){for(var ie=Y.words,oe=Y.sigBytes,ge=[],be=0;be<oe;be++){var ze=ie[be>>>2]>>>24-be%4*8&255;ge.push((ze>>>4).toString(16)),ge.push((ze&15).toString(16))}return ge.join("")},parse:function(Y){for(var ie=Y.length,oe=[],ge=0;ge<ie;ge+=2)oe[ge>>>3]|=parseInt(Y.substr(ge,2),16)<<24-ge%8*4;return new D.init(oe,ie/2)}},$=O.Latin1={stringify:function(Y){for(var ie=Y.words,oe=Y.sigBytes,ge=[],be=0;be<oe;be++){var ze=ie[be>>>2]>>>24-be%4*8&255;ge.push(String.fromCharCode(ze))}return ge.join("")},parse:function(Y){for(var ie=Y.length,oe=[],ge=0;ge<ie;ge++)oe[ge>>>2]|=(Y.charCodeAt(ge)&255)<<24-ge%4*8;return new D.init(oe,ie)}},W=O.Utf8={stringify:function(Y){try{return decodeURIComponent(escape($.stringify(Y)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(Y){return $.parse(unescape(encodeURIComponent(Y)))}},Q=A.BufferedBlockAlgorithm=T.extend({reset:function(){this._data=new D.init,this._nDataBytes=0},_append:function(Y){typeof Y=="string"&&(Y=W.parse(Y)),this._data.concat(Y),this._nDataBytes+=Y.sigBytes},_process:function(Y){var ie,oe=this._data,ge=oe.words,be=oe.sigBytes,ze=this.blockSize,de=ze*4,Ce=be/de;Y?Ce=_.ceil(Ce):Ce=_.max((Ce|0)-this._minBufferSize,0);var ke=Ce*ze,le=_.min(ke*4,be);if(ke){for(var re=0;re<ke;re+=ze)this._doProcessBlock(ge,re);ie=ge.splice(0,ke),oe.sigBytes-=le}return new D.init(ie,le)},clone:function(){var Y=T.clone.call(this);return Y._data=this._data.clone(),Y},_minBufferSize:0});A.Hasher=Q.extend({cfg:T.extend(),init:function(Y){this.cfg=this.cfg.extend(Y),this.reset()},reset:function(){Q.reset.call(this),this._doReset()},update:function(Y){return this._append(Y),this._process(),this},finalize:function(Y){Y&&this._append(Y);var ie=this._doFinalize();return ie},blockSize:16,_createHelper:function(Y){return function(ie,oe){return new Y.init(oe).finalize(ie)}},_createHmacHelper:function(Y){return function(ie,oe){return new X.HMAC.init(Y,oe).finalize(ie)}}});var X=S.algo={};return S}(Math);return d})}(zf)),zf.exports}var ko$1={exports:{}},_d;function If(){return _d||(_d=1,function(u,f){(function(d,_){u.exports=_(xt())})(Me,function(d){return function(_){var x=d,I=x.lib,E=I.Base,M=I.WordArray,S=x.x64={};S.Word=E.extend({init:function(A,T){this.high=A,this.low=T}}),S.WordArray=E.extend({init:function(A,T){A=this.words=A||[],T!=_?this.sigBytes=T:this.sigBytes=A.length*8},toX32:function(){for(var A=this.words,T=A.length,D=[],O=0;O<T;O++){var j=A[O];D.push(j.high),D.push(j.low)}return M.create(D,this.sigBytes)},clone:function(){for(var A=E.clone.call(this),T=A.words=this.words.slice(0),D=T.length,O=0;O<D;O++)T[O]=T[O].clone();return A}})}(),d})}(ko$1)),ko$1.exports}var Uo={exports:{}},Ed;function J5(){return Ed||(Ed=1,function(u,f){(function(d,_){u.exports=_(xt())})(Me,function(d){return function(){if(typeof ArrayBuffer=="function"){var _=d,x=_.lib,I=x.WordArray,E=I.init,M=I.init=function(S){if(S instanceof ArrayBuffer&&(S=new Uint8Array(S)),(S instanceof Int8Array||typeof Uint8ClampedArray<"u"&&S instanceof Uint8ClampedArray||S instanceof Int16Array||S instanceof Uint16Array||S instanceof Int32Array||S instanceof Uint32Array||S instanceof Float32Array||S instanceof Float64Array)&&(S=new Uint8Array(S.buffer,S.byteOffset,S.byteLength)),S instanceof Uint8Array){for(var A=S.byteLength,T=[],D=0;D<A;D++)T[D>>>2]|=S[D]<<24-D%4*8;E.call(this,T,A)}else E.apply(this,arguments)};M.prototype=I}}(),d.lib.WordArray})}(Uo)),Uo.exports}var Fo={exports:{}},Sd;function e_(){return Sd||(Sd=1,function(u,f){(function(d,_){u.exports=_(xt())})(Me,function(d){return function(){var _=d,x=_.lib,I=x.WordArray,E=_.enc;E.Utf16=E.Utf16BE={stringify:function(S){for(var A=S.words,T=S.sigBytes,D=[],O=0;O<T;O+=2){var j=A[O>>>2]>>>16-O%4*8&65535;D.push(String.fromCharCode(j))}return D.join("")},parse:function(S){for(var A=S.length,T=[],D=0;D<A;D++)T[D>>>1]|=S.charCodeAt(D)<<16-D%2*16;return I.create(T,A*2)}},E.Utf16LE={stringify:function(S){for(var A=S.words,T=S.sigBytes,D=[],O=0;O<T;O+=2){var j=M(A[O>>>2]>>>16-O%4*8&65535);D.push(String.fromCharCode(j))}return D.join("")},parse:function(S){for(var A=S.length,T=[],D=0;D<A;D++)T[D>>>1]|=M(S.charCodeAt(D)<<16-D%2*16);return I.create(T,A*2)}};function M(S){return S<<8&4278255360|S>>>8&16711935}}(),d.enc.Utf16})}(Fo)),Fo.exports}var qo={exports:{}},wd;function ja$1(){return wd||(wd=1,function(u,f){(function(d,_){u.exports=_(xt())})(Me,function(d){return function(){var _=d,x=_.lib,I=x.WordArray,E=_.enc;E.Base64={stringify:function(S){var A=S.words,T=S.sigBytes,D=this._map;S.clamp();for(var O=[],j=0;j<T;j+=3)for(var $=A[j>>>2]>>>24-j%4*8&255,W=A[j+1>>>2]>>>24-(j+1)%4*8&255,Q=A[j+2>>>2]>>>24-(j+2)%4*8&255,X=$<<16|W<<8|Q,Y=0;Y<4&&j+Y*.75<T;Y++)O.push(D.charAt(X>>>6*(3-Y)&63));var ie=D.charAt(64);if(ie)for(;O.length%4;)O.push(ie);return O.join("")},parse:function(S){var A=S.length,T=this._map,D=this._reverseMap;if(!D){D=this._reverseMap=[];for(var O=0;O<T.length;O++)D[T.charCodeAt(O)]=O}var j=T.charAt(64);if(j){var $=S.indexOf(j);$!==-1&&(A=$)}return M(S,A,D)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function M(S,A,T){for(var D=[],O=0,j=0;j<A;j++)if(j%4){var $=T[S.charCodeAt(j-1)]<<j%4*2,W=T[S.charCodeAt(j)]>>>6-j%4*2,Q=$|W;D[O>>>2]|=Q<<24-O%4*8,O++}return I.create(D,O)}}(),d.enc.Base64})}(qo)),qo.exports}var Vo={exports:{}},Cd;function t_(){return Cd||(Cd=1,function(u,f){(function(d,_){u.exports=_(xt())})(Me,function(d){return function(){var _=d,x=_.lib,I=x.WordArray,E=_.enc;E.Base64url={stringify:function(S,A=!0){var T=S.words,D=S.sigBytes,O=A?this._safe_map:this._map;S.clamp();for(var j=[],$=0;$<D;$+=3)for(var W=T[$>>>2]>>>24-$%4*8&255,Q=T[$+1>>>2]>>>24-($+1)%4*8&255,X=T[$+2>>>2]>>>24-($+2)%4*8&255,Y=W<<16|Q<<8|X,ie=0;ie<4&&$+ie*.75<D;ie++)j.push(O.charAt(Y>>>6*(3-ie)&63));var oe=O.charAt(64);if(oe)for(;j.length%4;)j.push(oe);return j.join("")},parse:function(S,A=!0){var T=S.length,D=A?this._safe_map:this._map,O=this._reverseMap;if(!O){O=this._reverseMap=[];for(var j=0;j<D.length;j++)O[D.charCodeAt(j)]=j}var $=D.charAt(64);if($){var W=S.indexOf($);W!==-1&&(T=W)}return M(S,T,O)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function M(S,A,T){for(var D=[],O=0,j=0;j<A;j++)if(j%4){var $=T[S.charCodeAt(j-1)]<<j%4*2,W=T[S.charCodeAt(j)]>>>6-j%4*2,Q=$|W;D[O>>>2]|=Q<<24-O%4*8,O++}return I.create(D,O)}}(),d.enc.Base64url})}(Vo)),Vo.exports}var Ko={exports:{}},Ad;function Wa(){return Ad||(Ad=1,function(u,f){(function(d,_){u.exports=_(xt())})(Me,function(d){return function(_){var x=d,I=x.lib,E=I.WordArray,M=I.Hasher,S=x.algo,A=[];(function(){for(var W=0;W<64;W++)A[W]=_.abs(_.sin(W+1))*4294967296|0})();var T=S.MD5=M.extend({_doReset:function(){this._hash=new E.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(W,Q){for(var X=0;X<16;X++){var Y=Q+X,ie=W[Y];W[Y]=(ie<<8|ie>>>24)&16711935|(ie<<24|ie>>>8)&4278255360}var oe=this._hash.words,ge=W[Q+0],be=W[Q+1],ze=W[Q+2],de=W[Q+3],Ce=W[Q+4],ke=W[Q+5],le=W[Q+6],re=W[Q+7],P=W[Q+8],k=W[Q+9],B=W[Q+10],z=W[Q+11],ee=W[Q+12],H=W[Q+13],q=W[Q+14],J=W[Q+15],U=oe[0],Z=oe[1],ve=oe[2],Ye=oe[3];U=D(U,Z,ve,Ye,ge,7,A[0]),Ye=D(Ye,U,Z,ve,be,12,A[1]),ve=D(ve,Ye,U,Z,ze,17,A[2]),Z=D(Z,ve,Ye,U,de,22,A[3]),U=D(U,Z,ve,Ye,Ce,7,A[4]),Ye=D(Ye,U,Z,ve,ke,12,A[5]),ve=D(ve,Ye,U,Z,le,17,A[6]),Z=D(Z,ve,Ye,U,re,22,A[7]),U=D(U,Z,ve,Ye,P,7,A[8]),Ye=D(Ye,U,Z,ve,k,12,A[9]),ve=D(ve,Ye,U,Z,B,17,A[10]),Z=D(Z,ve,Ye,U,z,22,A[11]),U=D(U,Z,ve,Ye,ee,7,A[12]),Ye=D(Ye,U,Z,ve,H,12,A[13]),ve=D(ve,Ye,U,Z,q,17,A[14]),Z=D(Z,ve,Ye,U,J,22,A[15]),U=O(U,Z,ve,Ye,be,5,A[16]),Ye=O(Ye,U,Z,ve,le,9,A[17]),ve=O(ve,Ye,U,Z,z,14,A[18]),Z=O(Z,ve,Ye,U,ge,20,A[19]),U=O(U,Z,ve,Ye,ke,5,A[20]),Ye=O(Ye,U,Z,ve,B,9,A[21]),ve=O(ve,Ye,U,Z,J,14,A[22]),Z=O(Z,ve,Ye,U,Ce,20,A[23]),U=O(U,Z,ve,Ye,k,5,A[24]),Ye=O(Ye,U,Z,ve,q,9,A[25]),ve=O(ve,Ye,U,Z,de,14,A[26]),Z=O(Z,ve,Ye,U,P,20,A[27]),U=O(U,Z,ve,Ye,H,5,A[28]),Ye=O(Ye,U,Z,ve,ze,9,A[29]),ve=O(ve,Ye,U,Z,re,14,A[30]),Z=O(Z,ve,Ye,U,ee,20,A[31]),U=j(U,Z,ve,Ye,ke,4,A[32]),Ye=j(Ye,U,Z,ve,P,11,A[33]),ve=j(ve,Ye,U,Z,z,16,A[34]),Z=j(Z,ve,Ye,U,q,23,A[35]),U=j(U,Z,ve,Ye,be,4,A[36]),Ye=j(Ye,U,Z,ve,Ce,11,A[37]),ve=j(ve,Ye,U,Z,re,16,A[38]),Z=j(Z,ve,Ye,U,B,23,A[39]),U=j(U,Z,ve,Ye,H,4,A[40]),Ye=j(Ye,U,Z,ve,ge,11,A[41]),ve=j(ve,Ye,U,Z,de,16,A[42]),Z=j(Z,ve,Ye,U,le,23,A[43]),U=j(U,Z,ve,Ye,k,4,A[44]),Ye=j(Ye,U,Z,ve,ee,11,A[45]),ve=j(ve,Ye,U,Z,J,16,A[46]),Z=j(Z,ve,Ye,U,ze,23,A[47]),U=$(U,Z,ve,Ye,ge,6,A[48]),Ye=$(Ye,U,Z,ve,re,10,A[49]),ve=$(ve,Ye,U,Z,q,15,A[50]),Z=$(Z,ve,Ye,U,ke,21,A[51]),U=$(U,Z,ve,Ye,ee,6,A[52]),Ye=$(Ye,U,Z,ve,de,10,A[53]),ve=$(ve,Ye,U,Z,B,15,A[54]),Z=$(Z,ve,Ye,U,be,21,A[55]),U=$(U,Z,ve,Ye,P,6,A[56]),Ye=$(Ye,U,Z,ve,J,10,A[57]),ve=$(ve,Ye,U,Z,le,15,A[58]),Z=$(Z,ve,Ye,U,H,21,A[59]),U=$(U,Z,ve,Ye,Ce,6,A[60]),Ye=$(Ye,U,Z,ve,z,10,A[61]),ve=$(ve,Ye,U,Z,ze,15,A[62]),Z=$(Z,ve,Ye,U,k,21,A[63]),oe[0]=oe[0]+U|0,oe[1]=oe[1]+Z|0,oe[2]=oe[2]+ve|0,oe[3]=oe[3]+Ye|0},_doFinalize:function(){var W=this._data,Q=W.words,X=this._nDataBytes*8,Y=W.sigBytes*8;Q[Y>>>5]|=128<<24-Y%32;var ie=_.floor(X/4294967296),oe=X;Q[(Y+64>>>9<<4)+15]=(ie<<8|ie>>>24)&16711935|(ie<<24|ie>>>8)&4278255360,Q[(Y+64>>>9<<4)+14]=(oe<<8|oe>>>24)&16711935|(oe<<24|oe>>>8)&4278255360,W.sigBytes=(Q.length+1)*4,this._process();for(var ge=this._hash,be=ge.words,ze=0;ze<4;ze++){var de=be[ze];be[ze]=(de<<8|de>>>24)&16711935|(de<<24|de>>>8)&4278255360}return ge},clone:function(){var W=M.clone.call(this);return W._hash=this._hash.clone(),W}});function D(W,Q,X,Y,ie,oe,ge){var be=W+(Q&X|~Q&Y)+ie+ge;return(be<<oe|be>>>32-oe)+Q}function O(W,Q,X,Y,ie,oe,ge){var be=W+(Q&Y|X&~Y)+ie+ge;return(be<<oe|be>>>32-oe)+Q}function j(W,Q,X,Y,ie,oe,ge){var be=W+(Q^X^Y)+ie+ge;return(be<<oe|be>>>32-oe)+Q}function $(W,Q,X,Y,ie,oe,ge){var be=W+(X^(Q|~Y))+ie+ge;return(be<<oe|be>>>32-oe)+Q}x.MD5=M._createHelper(T),x.HmacMD5=M._createHmacHelper(T)}(Math),d.MD5})}(Ko)),Ko.exports}var $o={exports:{}},Bd;function wh(){return Bd||(Bd=1,function(u,f){(function(d,_){u.exports=_(xt())})(Me,function(d){return function(){var _=d,x=_.lib,I=x.WordArray,E=x.Hasher,M=_.algo,S=[],A=M.SHA1=E.extend({_doReset:function(){this._hash=new I.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(T,D){for(var O=this._hash.words,j=O[0],$=O[1],W=O[2],Q=O[3],X=O[4],Y=0;Y<80;Y++){if(Y<16)S[Y]=T[D+Y]|0;else{var ie=S[Y-3]^S[Y-8]^S[Y-14]^S[Y-16];S[Y]=ie<<1|ie>>>31}var oe=(j<<5|j>>>27)+X+S[Y];Y<20?oe+=($&W|~$&Q)+1518500249:Y<40?oe+=($^W^Q)+1859775393:Y<60?oe+=($&W|$&Q|W&Q)-1894007588:oe+=($^W^Q)-899497514,X=Q,Q=W,W=$<<30|$>>>2,$=j,j=oe}O[0]=O[0]+j|0,O[1]=O[1]+$|0,O[2]=O[2]+W|0,O[3]=O[3]+Q|0,O[4]=O[4]+X|0},_doFinalize:function(){var T=this._data,D=T.words,O=this._nDataBytes*8,j=T.sigBytes*8;return D[j>>>5]|=128<<24-j%32,D[(j+64>>>9<<4)+14]=Math.floor(O/4294967296),D[(j+64>>>9<<4)+15]=O,T.sigBytes=D.length*4,this._process(),this._hash},clone:function(){var T=E.clone.call(this);return T._hash=this._hash.clone(),T}});_.SHA1=E._createHelper(A),_.HmacSHA1=E._createHmacHelper(A)}(),d.SHA1})}($o)),$o.exports}var Ho={exports:{}},Id;function Gy(){return Id||(Id=1,function(u,f){(function(d,_){u.exports=_(xt())})(Me,function(d){return function(_){var x=d,I=x.lib,E=I.WordArray,M=I.Hasher,S=x.algo,A=[],T=[];(function(){function j(X){for(var Y=_.sqrt(X),ie=2;ie<=Y;ie++)if(!(X%ie))return!1;return!0}function $(X){return(X-(X|0))*4294967296|0}for(var W=2,Q=0;Q<64;)j(W)&&(Q<8&&(A[Q]=$(_.pow(W,1/2))),T[Q]=$(_.pow(W,1/3)),Q++),W++})();var D=[],O=S.SHA256=M.extend({_doReset:function(){this._hash=new E.init(A.slice(0))},_doProcessBlock:function(j,$){for(var W=this._hash.words,Q=W[0],X=W[1],Y=W[2],ie=W[3],oe=W[4],ge=W[5],be=W[6],ze=W[7],de=0;de<64;de++){if(de<16)D[de]=j[$+de]|0;else{var Ce=D[de-15],ke=(Ce<<25|Ce>>>7)^(Ce<<14|Ce>>>18)^Ce>>>3,le=D[de-2],re=(le<<15|le>>>17)^(le<<13|le>>>19)^le>>>10;D[de]=ke+D[de-7]+re+D[de-16]}var P=oe&ge^~oe&be,k=Q&X^Q&Y^X&Y,B=(Q<<30|Q>>>2)^(Q<<19|Q>>>13)^(Q<<10|Q>>>22),z=(oe<<26|oe>>>6)^(oe<<21|oe>>>11)^(oe<<7|oe>>>25),ee=ze+z+P+T[de]+D[de],H=B+k;ze=be,be=ge,ge=oe,oe=ie+ee|0,ie=Y,Y=X,X=Q,Q=ee+H|0}W[0]=W[0]+Q|0,W[1]=W[1]+X|0,W[2]=W[2]+Y|0,W[3]=W[3]+ie|0,W[4]=W[4]+oe|0,W[5]=W[5]+ge|0,W[6]=W[6]+be|0,W[7]=W[7]+ze|0},_doFinalize:function(){var j=this._data,$=j.words,W=this._nDataBytes*8,Q=j.sigBytes*8;return $[Q>>>5]|=128<<24-Q%32,$[(Q+64>>>9<<4)+14]=_.floor(W/4294967296),$[(Q+64>>>9<<4)+15]=W,j.sigBytes=$.length*4,this._process(),this._hash},clone:function(){var j=M.clone.call(this);return j._hash=this._hash.clone(),j}});x.SHA256=M._createHelper(O),x.HmacSHA256=M._createHmacHelper(O)}(Math),d.SHA256})}(Ho)),Ho.exports}var Go={exports:{}},Td;function r_(){return Td||(Td=1,function(u,f){(function(d,_,x){u.exports=_(xt(),Gy())})(Me,function(d){return function(){var _=d,x=_.lib,I=x.WordArray,E=_.algo,M=E.SHA256,S=E.SHA224=M.extend({_doReset:function(){this._hash=new I.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var A=M._doFinalize.call(this);return A.sigBytes-=4,A}});_.SHA224=M._createHelper(S),_.HmacSHA224=M._createHmacHelper(S)}(),d.SHA224})}(Go)),Go.exports}var zo={exports:{}},Md;function zy(){return Md||(Md=1,function(u,f){(function(d,_,x){u.exports=_(xt(),If())})(Me,function(d){return function(){var _=d,x=_.lib,I=x.Hasher,E=_.x64,M=E.Word,S=E.WordArray,A=_.algo;function T(){return M.create.apply(M,arguments)}var D=[T(1116352408,3609767458),T(1899447441,602891725),T(3049323471,3964484399),T(3921009573,2173295548),T(961987163,4081628472),T(1508970993,3053834265),T(2453635748,2937671579),T(2870763221,3664609560),T(3624381080,2734883394),T(310598401,1164996542),T(607225278,1323610764),T(1426881987,3590304994),T(1925078388,4068182383),T(2162078206,991336113),T(2614888103,633803317),T(3248222580,3479774868),T(3835390401,2666613458),T(4022224774,944711139),T(264347078,2341262773),T(604807628,2007800933),T(770255983,1495990901),T(1249150122,1856431235),T(1555081692,3175218132),T(1996064986,2198950837),T(2554220882,3999719339),T(2821834349,766784016),T(2952996808,2566594879),T(3210313671,3203337956),T(3336571891,1034457026),T(3584528711,2466948901),T(113926993,3758326383),T(338241895,168717936),T(666307205,1188179964),T(773529912,1546045734),T(1294757372,1522805485),T(1396182291,2643833823),T(1695183700,2343527390),T(1986661051,1014477480),T(2177026350,1206759142),T(2456956037,344077627),T(2730485921,1290863460),T(2820302411,3158454273),T(3259730800,3505952657),T(3345764771,106217008),T(3516065817,3606008344),T(3600352804,1432725776),T(4094571909,1467031594),T(275423344,851169720),T(430227734,3100823752),T(506948616,1363258195),T(659060556,3750685593),T(883997877,3785050280),T(958139571,3318307427),T(1322822218,3812723403),T(1537002063,2003034995),T(1747873779,3602036899),T(1955562222,1575990012),T(2024104815,1125592928),T(2227730452,2716904306),T(2361852424,442776044),T(2428436474,593698344),T(2756734187,3733110249),T(3204031479,2999351573),T(3329325298,3815920427),T(3391569614,3928383900),T(3515267271,566280711),T(3940187606,3454069534),T(4118630271,4000239992),T(116418474,1914138554),T(174292421,2731055270),T(289380356,3203993006),T(460393269,320620315),T(685471733,587496836),T(852142971,1086792851),T(1017036298,365543100),T(1126000580,2618297676),T(1288033470,3409855158),T(1501505948,4234509866),T(1607167915,987167468),T(1816402316,1246189591)],O=[];(function(){for(var $=0;$<80;$++)O[$]=T()})();var j=A.SHA512=I.extend({_doReset:function(){this._hash=new S.init([new M.init(1779033703,4089235720),new M.init(3144134277,2227873595),new M.init(1013904242,4271175723),new M.init(2773480762,1595750129),new M.init(1359893119,2917565137),new M.init(2600822924,725511199),new M.init(528734635,4215389547),new M.init(1541459225,327033209)])},_doProcessBlock:function($,W){for(var Q=this._hash.words,X=Q[0],Y=Q[1],ie=Q[2],oe=Q[3],ge=Q[4],be=Q[5],ze=Q[6],de=Q[7],Ce=X.high,ke=X.low,le=Y.high,re=Y.low,P=ie.high,k=ie.low,B=oe.high,z=oe.low,ee=ge.high,H=ge.low,q=be.high,J=be.low,U=ze.high,Z=ze.low,ve=de.high,Ye=de.low,rt=Ce,Ue=ke,Qe=le,vt=re,ri=P,ci=k,tt=B,et=z,$e=ee,Le=H,ot=q,Oe=J,Ne=U,Fe=Z,Je=ve,Dt=Ye,oi=0;oi<80;oi++){var Bt,li,ii=O[oi];if(oi<16)li=ii.high=$[W+oi*2]|0,Bt=ii.low=$[W+oi*2+1]|0;else{var Ot=O[oi-15],St=Ot.high,pi=Ot.low,eM=(St>>>1|pi<<31)^(St>>>8|pi<<24)^St>>>7,hi=(pi>>>1|St<<31)^(pi>>>8|St<<24)^(pi>>>7|St<<25),mi=O[oi-2],Dn=mi.high,tM=mi.low,oM=(Dn>>>19|tM<<13)^(Dn<<3|tM>>>29)^Dn>>>6,vM=(tM>>>19|Dn<<13)^(tM<<3|Dn>>>29)^(tM>>>6|Dn<<26),dM=O[oi-7],hM=dM.high,_M=dM.low,uM=O[oi-16],pM=uM.high,yM=uM.low;Bt=hi+_M,li=eM+hM+(Bt>>>0<hi>>>0?1:0),Bt=Bt+vM,li=li+oM+(Bt>>>0<vM>>>0?1:0),Bt=Bt+yM,li=li+pM+(Bt>>>0<yM>>>0?1:0),ii.high=li,ii.low=Bt}var gM=$e&ot^~$e&Ne,fM=Le&Oe^~Le&Fe,kM=rt&Qe^rt&ri^Qe&ri,IM=Ue&vt^Ue&ci^vt&ci,DM=(rt>>>28|Ue<<4)^(rt<<30|Ue>>>2)^(rt<<25|Ue>>>7),$M=(Ue>>>28|rt<<4)^(Ue<<30|rt>>>2)^(Ue<<25|rt>>>7),TM=($e>>>14|Le<<18)^($e>>>18|Le<<14)^($e<<23|Le>>>9),OM=(Le>>>14|$e<<18)^(Le>>>18|$e<<14)^(Le<<23|$e>>>9),UM=D[oi],AM=UM.high,RM=UM.low,FM=Dt+OM,xM=Je+TM+(FM>>>0<Dt>>>0?1:0),FM=FM+fM,xM=xM+gM+(FM>>>0<fM>>>0?1:0),FM=FM+RM,xM=xM+AM+(FM>>>0<RM>>>0?1:0),FM=FM+Bt,xM=xM+li+(FM>>>0<Bt>>>0?1:0),BM=$M+IM,WM=DM+kM+(BM>>>0<$M>>>0?1:0);Je=Ne,Dt=Fe,Ne=ot,Fe=Oe,ot=$e,Oe=Le,Le=et+FM|0,$e=tt+xM+(Le>>>0<et>>>0?1:0)|0,tt=ri,et=ci,ri=Qe,ci=vt,Qe=rt,vt=Ue,Ue=FM+BM|0,rt=xM+WM+(Ue>>>0<FM>>>0?1:0)|0}ke=X.low=ke+Ue,X.high=Ce+rt+(ke>>>0<Ue>>>0?1:0),re=Y.low=re+vt,Y.high=le+Qe+(re>>>0<vt>>>0?1:0),k=ie.low=k+ci,ie.high=P+ri+(k>>>0<ci>>>0?1:0),z=oe.low=z+et,oe.high=B+tt+(z>>>0<et>>>0?1:0),H=ge.low=H+Le,ge.high=ee+$e+(H>>>0<Le>>>0?1:0),J=be.low=J+Oe,be.high=q+ot+(J>>>0<Oe>>>0?1:0),Z=ze.low=Z+Fe,ze.high=U+Ne+(Z>>>0<Fe>>>0?1:0),Ye=de.low=Ye+Dt,de.high=ve+Je+(Ye>>>0<Dt>>>0?1:0)},_doFinalize:function(){var $=this._data,W=$.words,Q=this._nDataBytes*8,X=$.sigBytes*8;W[X>>>5]|=128<<24-X%32,W[(X+128>>>10<<5)+30]=Math.floor(Q/4294967296),W[(X+128>>>10<<5)+31]=Q,$.sigBytes=W.length*4,this._process();var Y=this._hash.toX32();return Y},clone:function(){var $=I.clone.call(this);return $._hash=this._hash.clone(),$},blockSize:1024/32});_.SHA512=I._createHelper(j),_.HmacSHA512=I._createHmacHelper(j)}(),d.SHA512})}(zo)),zo.exports}var jo={exports:{}},Rd;function i_(){return Rd||(Rd=1,function(u,f){(function(d,_,x){u.exports=_(xt(),If(),zy())})(Me,function(d){return function(){var _=d,x=_.x64,I=x.Word,E=x.WordArray,M=_.algo,S=M.SHA512,A=M.SHA384=S.extend({_doReset:function(){this._hash=new E.init([new I.init(3418070365,3238371032),new I.init(1654270250,914150663),new I.init(2438529370,812702999),new I.init(355462360,4144912697),new I.init(1731405415,4290775857),new I.init(2394180231,1750603025),new I.init(3675008525,1694076839),new I.init(1203062813,3204075428)])},_doFinalize:function(){var T=S._doFinalize.call(this);return T.sigBytes-=16,T}});_.SHA384=S._createHelper(A),_.HmacSHA384=S._createHmacHelper(A)}(),d.SHA384})}(jo)),jo.exports}var Wo={exports:{}},Nd;function n_(){return Nd||(Nd=1,function(u,f){(function(d,_,x){u.exports=_(xt(),If())})(Me,function(d){return function(_){var x=d,I=x.lib,E=I.WordArray,M=I.Hasher,S=x.x64,A=S.Word,T=x.algo,D=[],O=[],j=[];(function(){for(var Q=1,X=0,Y=0;Y<24;Y++){D[Q+5*X]=(Y+1)*(Y+2)/2%64;var ie=X%5,oe=(2*Q+3*X)%5;Q=ie,X=oe}for(var Q=0;Q<5;Q++)for(var X=0;X<5;X++)O[Q+5*X]=X+(2*Q+3*X)%5*5;for(var ge=1,be=0;be<24;be++){for(var ze=0,de=0,Ce=0;Ce<7;Ce++){if(ge&1){var ke=(1<<Ce)-1;ke<32?de^=1<<ke:ze^=1<<ke-32}ge&128?ge=ge<<1^113:ge<<=1}j[be]=A.create(ze,de)}})();var $=[];(function(){for(var Q=0;Q<25;Q++)$[Q]=A.create()})();var W=T.SHA3=M.extend({cfg:M.cfg.extend({outputLength:512}),_doReset:function(){for(var Q=this._state=[],X=0;X<25;X++)Q[X]=new A.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(Q,X){for(var Y=this._state,ie=this.blockSize/2,oe=0;oe<ie;oe++){var ge=Q[X+2*oe],be=Q[X+2*oe+1];ge=(ge<<8|ge>>>24)&16711935|(ge<<24|ge>>>8)&4278255360,be=(be<<8|be>>>24)&16711935|(be<<24|be>>>8)&4278255360;var ze=Y[oe];ze.high^=be,ze.low^=ge}for(var de=0;de<24;de++){for(var Ce=0;Ce<5;Ce++){for(var ke=0,le=0,re=0;re<5;re++){var ze=Y[Ce+5*re];ke^=ze.high,le^=ze.low}var P=$[Ce];P.high=ke,P.low=le}for(var Ce=0;Ce<5;Ce++)for(var k=$[(Ce+4)%5],B=$[(Ce+1)%5],z=B.high,ee=B.low,ke=k.high^(z<<1|ee>>>31),le=k.low^(ee<<1|z>>>31),re=0;re<5;re++){var ze=Y[Ce+5*re];ze.high^=ke,ze.low^=le}for(var H=1;H<25;H++){var ke,le,ze=Y[H],q=ze.high,J=ze.low,U=D[H];U<32?(ke=q<<U|J>>>32-U,le=J<<U|q>>>32-U):(ke=J<<U-32|q>>>64-U,le=q<<U-32|J>>>64-U);var Z=$[O[H]];Z.high=ke,Z.low=le}var ve=$[0],Ye=Y[0];ve.high=Ye.high,ve.low=Ye.low;for(var Ce=0;Ce<5;Ce++)for(var re=0;re<5;re++){var H=Ce+5*re,ze=Y[H],rt=$[H],Ue=$[(Ce+1)%5+5*re],Qe=$[(Ce+2)%5+5*re];ze.high=rt.high^~Ue.high&Qe.high,ze.low=rt.low^~Ue.low&Qe.low}var ze=Y[0],vt=j[de];ze.high^=vt.high,ze.low^=vt.low}},_doFinalize:function(){var Q=this._data,X=Q.words;this._nDataBytes*8;var Y=Q.sigBytes*8,ie=this.blockSize*32;X[Y>>>5]|=1<<24-Y%32,X[(_.ceil((Y+1)/ie)*ie>>>5)-1]|=128,Q.sigBytes=X.length*4,this._process();for(var oe=this._state,ge=this.cfg.outputLength/8,be=ge/8,ze=[],de=0;de<be;de++){var Ce=oe[de],ke=Ce.high,le=Ce.low;ke=(ke<<8|ke>>>24)&16711935|(ke<<24|ke>>>8)&4278255360,le=(le<<8|le>>>24)&16711935|(le<<24|le>>>8)&4278255360,ze.push(le),ze.push(ke)}return new E.init(ze,ge)},clone:function(){for(var Q=M.clone.call(this),X=Q._state=this._state.slice(0),Y=0;Y<25;Y++)X[Y]=X[Y].clone();return Q}});x.SHA3=M._createHelper(W),x.HmacSHA3=M._createHmacHelper(W)}(Math),d.SHA3})}(Wo)),Wo.exports}var Yo={exports:{}},Dd;function a_(){return Dd||(Dd=1,function(u,f){(function(d,_){u.exports=_(xt())})(Me,function(d){/** @preserve
			(c) 2012 by Cédric Mesnil. All rights reserved.

			Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

			    - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
			    - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

			THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
			*/return function(_){var x=d,I=x.lib,E=I.WordArray,M=I.Hasher,S=x.algo,A=E.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),T=E.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),D=E.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),O=E.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),j=E.create([0,1518500249,1859775393,2400959708,2840853838]),$=E.create([1352829926,1548603684,1836072691,2053994217,0]),W=S.RIPEMD160=M.extend({_doReset:function(){this._hash=E.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(be,ze){for(var de=0;de<16;de++){var Ce=ze+de,ke=be[Ce];be[Ce]=(ke<<8|ke>>>24)&16711935|(ke<<24|ke>>>8)&4278255360}var le=this._hash.words,re=j.words,P=$.words,k=A.words,B=T.words,z=D.words,ee=O.words,H,q,J,U,Z,ve,Ye,rt,Ue,Qe;ve=H=le[0],Ye=q=le[1],rt=J=le[2],Ue=U=le[3],Qe=Z=le[4];for(var vt,de=0;de<80;de+=1)vt=H+be[ze+k[de]]|0,de<16?vt+=Q(q,J,U)+re[0]:de<32?vt+=X(q,J,U)+re[1]:de<48?vt+=Y(q,J,U)+re[2]:de<64?vt+=ie(q,J,U)+re[3]:vt+=oe(q,J,U)+re[4],vt=vt|0,vt=ge(vt,z[de]),vt=vt+Z|0,H=Z,Z=U,U=ge(J,10),J=q,q=vt,vt=ve+be[ze+B[de]]|0,de<16?vt+=oe(Ye,rt,Ue)+P[0]:de<32?vt+=ie(Ye,rt,Ue)+P[1]:de<48?vt+=Y(Ye,rt,Ue)+P[2]:de<64?vt+=X(Ye,rt,Ue)+P[3]:vt+=Q(Ye,rt,Ue)+P[4],vt=vt|0,vt=ge(vt,ee[de]),vt=vt+Qe|0,ve=Qe,Qe=Ue,Ue=ge(rt,10),rt=Ye,Ye=vt;vt=le[1]+J+Ue|0,le[1]=le[2]+U+Qe|0,le[2]=le[3]+Z+ve|0,le[3]=le[4]+H+Ye|0,le[4]=le[0]+q+rt|0,le[0]=vt},_doFinalize:function(){var be=this._data,ze=be.words,de=this._nDataBytes*8,Ce=be.sigBytes*8;ze[Ce>>>5]|=128<<24-Ce%32,ze[(Ce+64>>>9<<4)+14]=(de<<8|de>>>24)&16711935|(de<<24|de>>>8)&4278255360,be.sigBytes=(ze.length+1)*4,this._process();for(var ke=this._hash,le=ke.words,re=0;re<5;re++){var P=le[re];le[re]=(P<<8|P>>>24)&16711935|(P<<24|P>>>8)&4278255360}return ke},clone:function(){var be=M.clone.call(this);return be._hash=this._hash.clone(),be}});function Q(be,ze,de){return be^ze^de}function X(be,ze,de){return be&ze|~be&de}function Y(be,ze,de){return(be|~ze)^de}function ie(be,ze,de){return be&de|ze&~de}function oe(be,ze,de){return be^(ze|~de)}function ge(be,ze){return be<<ze|be>>>32-ze}x.RIPEMD160=M._createHelper(W),x.HmacRIPEMD160=M._createHmacHelper(W)}(),d.RIPEMD160})}(Yo)),Yo.exports}var Xo={exports:{}},Od;function Ch(){return Od||(Od=1,function(u,f){(function(d,_){u.exports=_(xt())})(Me,function(d){(function(){var _=d,x=_.lib,I=x.Base,E=_.enc,M=E.Utf8,S=_.algo;S.HMAC=I.extend({init:function(A,T){A=this._hasher=new A.init,typeof T=="string"&&(T=M.parse(T));var D=A.blockSize,O=D*4;T.sigBytes>O&&(T=A.finalize(T)),T.clamp();for(var j=this._oKey=T.clone(),$=this._iKey=T.clone(),W=j.words,Q=$.words,X=0;X<D;X++)W[X]^=1549556828,Q[X]^=909522486;j.sigBytes=$.sigBytes=O,this.reset()},reset:function(){var A=this._hasher;A.reset(),A.update(this._iKey)},update:function(A){return this._hasher.update(A),this},finalize:function(A){var T=this._hasher,D=T.finalize(A);T.reset();var O=T.finalize(this._oKey.clone().concat(D));return O}})})()})}(Xo)),Xo.exports}var Qo={exports:{}},Pd;function s_(){return Pd||(Pd=1,function(u,f){(function(d,_,x){u.exports=_(xt(),wh(),Ch())})(Me,function(d){return function(){var _=d,x=_.lib,I=x.Base,E=x.WordArray,M=_.algo,S=M.SHA1,A=M.HMAC,T=M.PBKDF2=I.extend({cfg:I.extend({keySize:128/32,hasher:S,iterations:1}),init:function(D){this.cfg=this.cfg.extend(D)},compute:function(D,O){for(var j=this.cfg,$=A.create(j.hasher,D),W=E.create(),Q=E.create([1]),X=W.words,Y=Q.words,ie=j.keySize,oe=j.iterations;X.length<ie;){var ge=$.update(O).finalize(Q);$.reset();for(var be=ge.words,ze=be.length,de=ge,Ce=1;Ce<oe;Ce++){de=$.finalize(de),$.reset();for(var ke=de.words,le=0;le<ze;le++)be[le]^=ke[le]}W.concat(ge),Y[0]++}return W.sigBytes=ie*4,W}});_.PBKDF2=function(D,O,j){return T.create(j).compute(D,O)}}(),d.PBKDF2})}(Qo)),Qo.exports}var Zo={exports:{}},Ld;function aa(){return Ld||(Ld=1,function(u,f){(function(d,_,x){u.exports=_(xt(),wh(),Ch())})(Me,function(d){return function(){var _=d,x=_.lib,I=x.Base,E=x.WordArray,M=_.algo,S=M.MD5,A=M.EvpKDF=I.extend({cfg:I.extend({keySize:128/32,hasher:S,iterations:1}),init:function(T){this.cfg=this.cfg.extend(T)},compute:function(T,D){for(var O,j=this.cfg,$=j.hasher.create(),W=E.create(),Q=W.words,X=j.keySize,Y=j.iterations;Q.length<X;){O&&$.update(O),O=$.update(T).finalize(D),$.reset();for(var ie=1;ie<Y;ie++)O=$.finalize(O),$.reset();W.concat(O)}return W.sigBytes=X*4,W}});_.EvpKDF=function(T,D,O){return A.create(O).compute(T,D)}}(),d.EvpKDF})}(Zo)),Zo.exports}var Jo={exports:{}},kd;function or(){return kd||(kd=1,function(u,f){(function(d,_,x){u.exports=_(xt(),aa())})(Me,function(d){d.lib.Cipher||function(_){var x=d,I=x.lib,E=I.Base,M=I.WordArray,S=I.BufferedBlockAlgorithm,A=x.enc;A.Utf8;var T=A.Base64,D=x.algo,O=D.EvpKDF,j=I.Cipher=S.extend({cfg:E.extend(),createEncryptor:function(ke,le){return this.create(this._ENC_XFORM_MODE,ke,le)},createDecryptor:function(ke,le){return this.create(this._DEC_XFORM_MODE,ke,le)},init:function(ke,le,re){this.cfg=this.cfg.extend(re),this._xformMode=ke,this._key=le,this.reset()},reset:function(){S.reset.call(this),this._doReset()},process:function(ke){return this._append(ke),this._process()},finalize:function(ke){ke&&this._append(ke);var le=this._doFinalize();return le},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function ke(le){return typeof le=="string"?Ce:be}return function(le){return{encrypt:function(re,P,k){return ke(P).encrypt(le,re,P,k)},decrypt:function(re,P,k){return ke(P).decrypt(le,re,P,k)}}}}()});I.StreamCipher=j.extend({_doFinalize:function(){var ke=this._process(!0);return ke},blockSize:1});var $=x.mode={},W=I.BlockCipherMode=E.extend({createEncryptor:function(ke,le){return this.Encryptor.create(ke,le)},createDecryptor:function(ke,le){return this.Decryptor.create(ke,le)},init:function(ke,le){this._cipher=ke,this._iv=le}}),Q=$.CBC=function(){var ke=W.extend();ke.Encryptor=ke.extend({processBlock:function(re,P){var k=this._cipher,B=k.blockSize;le.call(this,re,P,B),k.encryptBlock(re,P),this._prevBlock=re.slice(P,P+B)}}),ke.Decryptor=ke.extend({processBlock:function(re,P){var k=this._cipher,B=k.blockSize,z=re.slice(P,P+B);k.decryptBlock(re,P),le.call(this,re,P,B),this._prevBlock=z}});function le(re,P,k){var B,z=this._iv;z?(B=z,this._iv=_):B=this._prevBlock;for(var ee=0;ee<k;ee++)re[P+ee]^=B[ee]}return ke}(),X=x.pad={},Y=X.Pkcs7={pad:function(ke,le){for(var re=le*4,P=re-ke.sigBytes%re,k=P<<24|P<<16|P<<8|P,B=[],z=0;z<P;z+=4)B.push(k);var ee=M.create(B,P);ke.concat(ee)},unpad:function(ke){var le=ke.words[ke.sigBytes-1>>>2]&255;ke.sigBytes-=le}};I.BlockCipher=j.extend({cfg:j.cfg.extend({mode:Q,padding:Y}),reset:function(){var ke;j.reset.call(this);var le=this.cfg,re=le.iv,P=le.mode;this._xformMode==this._ENC_XFORM_MODE?ke=P.createEncryptor:(ke=P.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==ke?this._mode.init(this,re&&re.words):(this._mode=ke.call(P,this,re&&re.words),this._mode.__creator=ke)},_doProcessBlock:function(ke,le){this._mode.processBlock(ke,le)},_doFinalize:function(){var ke,le=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(le.pad(this._data,this.blockSize),ke=this._process(!0)):(ke=this._process(!0),le.unpad(ke)),ke},blockSize:128/32});var ie=I.CipherParams=E.extend({init:function(ke){this.mixIn(ke)},toString:function(ke){return(ke||this.formatter).stringify(this)}}),oe=x.format={},ge=oe.OpenSSL={stringify:function(ke){var le,re=ke.ciphertext,P=ke.salt;return P?le=M.create([1398893684,1701076831]).concat(P).concat(re):le=re,le.toString(T)},parse:function(ke){var le,re=T.parse(ke),P=re.words;return P[0]==1398893684&&P[1]==1701076831&&(le=M.create(P.slice(2,4)),P.splice(0,4),re.sigBytes-=16),ie.create({ciphertext:re,salt:le})}},be=I.SerializableCipher=E.extend({cfg:E.extend({format:ge}),encrypt:function(ke,le,re,P){P=this.cfg.extend(P);var k=ke.createEncryptor(re,P),B=k.finalize(le),z=k.cfg;return ie.create({ciphertext:B,key:re,iv:z.iv,algorithm:ke,mode:z.mode,padding:z.padding,blockSize:ke.blockSize,formatter:P.format})},decrypt:function(ke,le,re,P){P=this.cfg.extend(P),le=this._parse(le,P.format);var k=ke.createDecryptor(re,P).finalize(le.ciphertext);return k},_parse:function(ke,le){return typeof ke=="string"?le.parse(ke,this):ke}}),ze=x.kdf={},de=ze.OpenSSL={execute:function(ke,le,re,P){P||(P=M.random(64/8));var k=O.create({keySize:le+re}).compute(ke,P),B=M.create(k.words.slice(le),re*4);return k.sigBytes=le*4,ie.create({key:k,iv:B,salt:P})}},Ce=I.PasswordBasedCipher=be.extend({cfg:be.cfg.extend({kdf:de}),encrypt:function(ke,le,re,P){P=this.cfg.extend(P);var k=P.kdf.execute(re,ke.keySize,ke.ivSize);P.iv=k.iv;var B=be.encrypt.call(this,ke,le,k.key,P);return B.mixIn(k),B},decrypt:function(ke,le,re,P){P=this.cfg.extend(P),le=this._parse(le,P.format);var k=P.kdf.execute(re,ke.keySize,ke.ivSize,le.salt);P.iv=k.iv;var B=be.decrypt.call(this,ke,le,k.key,P);return B}})}()})}(Jo)),Jo.exports}var eu={exports:{}},Ud;function f_(){return Ud||(Ud=1,function(u,f){(function(d,_,x){u.exports=_(xt(),or())})(Me,function(d){return d.mode.CFB=function(){var _=d.lib.BlockCipherMode.extend();_.Encryptor=_.extend({processBlock:function(I,E){var M=this._cipher,S=M.blockSize;x.call(this,I,E,S,M),this._prevBlock=I.slice(E,E+S)}}),_.Decryptor=_.extend({processBlock:function(I,E){var M=this._cipher,S=M.blockSize,A=I.slice(E,E+S);x.call(this,I,E,S,M),this._prevBlock=A}});function x(I,E,M,S){var A,T=this._iv;T?(A=T.slice(0),this._iv=void 0):A=this._prevBlock,S.encryptBlock(A,0);for(var D=0;D<M;D++)I[E+D]^=A[D]}return _}(),d.mode.CFB})}(eu)),eu.exports}var tu={exports:{}},Fd;function o_(){return Fd||(Fd=1,function(u,f){(function(d,_,x){u.exports=_(xt(),or())})(Me,function(d){return d.mode.CTR=function(){var _=d.lib.BlockCipherMode.extend(),x=_.Encryptor=_.extend({processBlock:function(I,E){var M=this._cipher,S=M.blockSize,A=this._iv,T=this._counter;A&&(T=this._counter=A.slice(0),this._iv=void 0);var D=T.slice(0);M.encryptBlock(D,0),T[S-1]=T[S-1]+1|0;for(var O=0;O<S;O++)I[E+O]^=D[O]}});return _.Decryptor=x,_}(),d.mode.CTR})}(tu)),tu.exports}var ru={exports:{}},qd;function u_(){return qd||(qd=1,function(u,f){(function(d,_,x){u.exports=_(xt(),or())})(Me,function(d){/** @preserve
* Counter block mode compatible with  Dr Brian Gladman fileenc.c
* derived from CryptoJS.mode.CTR
* Jan Hruby jhruby.web@gmail.com
*/return d.mode.CTRGladman=function(){var _=d.lib.BlockCipherMode.extend();function x(M){if((M>>24&255)===255){var S=M>>16&255,A=M>>8&255,T=M&255;S===255?(S=0,A===255?(A=0,T===255?T=0:++T):++A):++S,M=0,M+=S<<16,M+=A<<8,M+=T}else M+=1<<24;return M}function I(M){return(M[0]=x(M[0]))===0&&(M[1]=x(M[1])),M}var E=_.Encryptor=_.extend({processBlock:function(M,S){var A=this._cipher,T=A.blockSize,D=this._iv,O=this._counter;D&&(O=this._counter=D.slice(0),this._iv=void 0),I(O);var j=O.slice(0);A.encryptBlock(j,0);for(var $=0;$<T;$++)M[S+$]^=j[$]}});return _.Decryptor=E,_}(),d.mode.CTRGladman})}(ru)),ru.exports}var iu={exports:{}},Vd;function c_(){return Vd||(Vd=1,function(u,f){(function(d,_,x){u.exports=_(xt(),or())})(Me,function(d){return d.mode.OFB=function(){var _=d.lib.BlockCipherMode.extend(),x=_.Encryptor=_.extend({processBlock:function(I,E){var M=this._cipher,S=M.blockSize,A=this._iv,T=this._keystream;A&&(T=this._keystream=A.slice(0),this._iv=void 0),M.encryptBlock(T,0);for(var D=0;D<S;D++)I[E+D]^=T[D]}});return _.Decryptor=x,_}(),d.mode.OFB})}(iu)),iu.exports}var nu={exports:{}},Kd;function h_(){return Kd||(Kd=1,function(u,f){(function(d,_,x){u.exports=_(xt(),or())})(Me,function(d){return d.mode.ECB=function(){var _=d.lib.BlockCipherMode.extend();return _.Encryptor=_.extend({processBlock:function(x,I){this._cipher.encryptBlock(x,I)}}),_.Decryptor=_.extend({processBlock:function(x,I){this._cipher.decryptBlock(x,I)}}),_}(),d.mode.ECB})}(nu)),nu.exports}var au={exports:{}},$d;function l_(){return $d||($d=1,function(u,f){(function(d,_,x){u.exports=_(xt(),or())})(Me,function(d){return d.pad.AnsiX923={pad:function(_,x){var I=_.sigBytes,E=x*4,M=E-I%E,S=I+M-1;_.clamp(),_.words[S>>>2]|=M<<24-S%4*8,_.sigBytes+=M},unpad:function(_){var x=_.words[_.sigBytes-1>>>2]&255;_.sigBytes-=x}},d.pad.Ansix923})}(au)),au.exports}var su={exports:{}},Hd;function d_(){return Hd||(Hd=1,function(u,f){(function(d,_,x){u.exports=_(xt(),or())})(Me,function(d){return d.pad.Iso10126={pad:function(_,x){var I=x*4,E=I-_.sigBytes%I;_.concat(d.lib.WordArray.random(E-1)).concat(d.lib.WordArray.create([E<<24],1))},unpad:function(_){var x=_.words[_.sigBytes-1>>>2]&255;_.sigBytes-=x}},d.pad.Iso10126})}(su)),su.exports}var fu={exports:{}},Gd;function p_(){return Gd||(Gd=1,function(u,f){(function(d,_,x){u.exports=_(xt(),or())})(Me,function(d){return d.pad.Iso97971={pad:function(_,x){_.concat(d.lib.WordArray.create([2147483648],1)),d.pad.ZeroPadding.pad(_,x)},unpad:function(_){d.pad.ZeroPadding.unpad(_),_.sigBytes--}},d.pad.Iso97971})}(fu)),fu.exports}var ou={exports:{}},zd;function v_(){return zd||(zd=1,function(u,f){(function(d,_,x){u.exports=_(xt(),or())})(Me,function(d){return d.pad.ZeroPadding={pad:function(_,x){var I=x*4;_.clamp(),_.sigBytes+=I-(_.sigBytes%I||I)},unpad:function(_){for(var x=_.words,I=_.sigBytes-1,I=_.sigBytes-1;I>=0;I--)if(x[I>>>2]>>>24-I%4*8&255){_.sigBytes=I+1;break}}},d.pad.ZeroPadding})}(ou)),ou.exports}var uu={exports:{}},jd;function y_(){return jd||(jd=1,function(u,f){(function(d,_,x){u.exports=_(xt(),or())})(Me,function(d){return d.pad.NoPadding={pad:function(){},unpad:function(){}},d.pad.NoPadding})}(uu)),uu.exports}var cu={exports:{}},Wd;function g_(){return Wd||(Wd=1,function(u,f){(function(d,_,x){u.exports=_(xt(),or())})(Me,function(d){return function(_){var x=d,I=x.lib,E=I.CipherParams,M=x.enc,S=M.Hex,A=x.format;A.Hex={stringify:function(T){return T.ciphertext.toString(S)},parse:function(T){var D=S.parse(T);return E.create({ciphertext:D})}}}(),d.format.Hex})}(cu)),cu.exports}var hu={exports:{}},Yd;function m_(){return Yd||(Yd=1,function(u,f){(function(d,_,x){u.exports=_(xt(),ja$1(),Wa(),aa(),or())})(Me,function(d){return function(){var _=d,x=_.lib,I=x.BlockCipher,E=_.algo,M=[],S=[],A=[],T=[],D=[],O=[],j=[],$=[],W=[],Q=[];(function(){for(var ie=[],oe=0;oe<256;oe++)oe<128?ie[oe]=oe<<1:ie[oe]=oe<<1^283;for(var ge=0,be=0,oe=0;oe<256;oe++){var ze=be^be<<1^be<<2^be<<3^be<<4;ze=ze>>>8^ze&255^99,M[ge]=ze,S[ze]=ge;var de=ie[ge],Ce=ie[de],ke=ie[Ce],le=ie[ze]*257^ze*16843008;A[ge]=le<<24|le>>>8,T[ge]=le<<16|le>>>16,D[ge]=le<<8|le>>>24,O[ge]=le;var le=ke*16843009^Ce*65537^de*257^ge*16843008;j[ze]=le<<24|le>>>8,$[ze]=le<<16|le>>>16,W[ze]=le<<8|le>>>24,Q[ze]=le,ge?(ge=de^ie[ie[ie[ke^de]]],be^=ie[ie[be]]):ge=be=1}})();var X=[0,1,2,4,8,16,32,64,128,27,54],Y=E.AES=I.extend({_doReset:function(){var ie;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var oe=this._keyPriorReset=this._key,ge=oe.words,be=oe.sigBytes/4,ze=this._nRounds=be+6,de=(ze+1)*4,Ce=this._keySchedule=[],ke=0;ke<de;ke++)ke<be?Ce[ke]=ge[ke]:(ie=Ce[ke-1],ke%be?be>6&&ke%be==4&&(ie=M[ie>>>24]<<24|M[ie>>>16&255]<<16|M[ie>>>8&255]<<8|M[ie&255]):(ie=ie<<8|ie>>>24,ie=M[ie>>>24]<<24|M[ie>>>16&255]<<16|M[ie>>>8&255]<<8|M[ie&255],ie^=X[ke/be|0]<<24),Ce[ke]=Ce[ke-be]^ie);for(var le=this._invKeySchedule=[],re=0;re<de;re++){var ke=de-re;if(re%4)var ie=Ce[ke];else var ie=Ce[ke-4];re<4||ke<=4?le[re]=ie:le[re]=j[M[ie>>>24]]^$[M[ie>>>16&255]]^W[M[ie>>>8&255]]^Q[M[ie&255]]}}},encryptBlock:function(ie,oe){this._doCryptBlock(ie,oe,this._keySchedule,A,T,D,O,M)},decryptBlock:function(ie,oe){var ge=ie[oe+1];ie[oe+1]=ie[oe+3],ie[oe+3]=ge,this._doCryptBlock(ie,oe,this._invKeySchedule,j,$,W,Q,S);var ge=ie[oe+1];ie[oe+1]=ie[oe+3],ie[oe+3]=ge},_doCryptBlock:function(ie,oe,ge,be,ze,de,Ce,ke){for(var le=this._nRounds,re=ie[oe]^ge[0],P=ie[oe+1]^ge[1],k=ie[oe+2]^ge[2],B=ie[oe+3]^ge[3],z=4,ee=1;ee<le;ee++){var H=be[re>>>24]^ze[P>>>16&255]^de[k>>>8&255]^Ce[B&255]^ge[z++],q=be[P>>>24]^ze[k>>>16&255]^de[B>>>8&255]^Ce[re&255]^ge[z++],J=be[k>>>24]^ze[B>>>16&255]^de[re>>>8&255]^Ce[P&255]^ge[z++],U=be[B>>>24]^ze[re>>>16&255]^de[P>>>8&255]^Ce[k&255]^ge[z++];re=H,P=q,k=J,B=U}var H=(ke[re>>>24]<<24|ke[P>>>16&255]<<16|ke[k>>>8&255]<<8|ke[B&255])^ge[z++],q=(ke[P>>>24]<<24|ke[k>>>16&255]<<16|ke[B>>>8&255]<<8|ke[re&255])^ge[z++],J=(ke[k>>>24]<<24|ke[B>>>16&255]<<16|ke[re>>>8&255]<<8|ke[P&255])^ge[z++],U=(ke[B>>>24]<<24|ke[re>>>16&255]<<16|ke[P>>>8&255]<<8|ke[k&255])^ge[z++];ie[oe]=H,ie[oe+1]=q,ie[oe+2]=J,ie[oe+3]=U},keySize:256/32});_.AES=I._createHelper(Y)}(),d.AES})}(hu)),hu.exports}var lu={exports:{}},Xd;function b_(){return Xd||(Xd=1,function(u,f){(function(d,_,x){u.exports=_(xt(),ja$1(),Wa(),aa(),or())})(Me,function(d){return function(){var _=d,x=_.lib,I=x.WordArray,E=x.BlockCipher,M=_.algo,S=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],A=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],T=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],D=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],O=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],j=M.DES=E.extend({_doReset:function(){for(var X=this._key,Y=X.words,ie=[],oe=0;oe<56;oe++){var ge=S[oe]-1;ie[oe]=Y[ge>>>5]>>>31-ge%32&1}for(var be=this._subKeys=[],ze=0;ze<16;ze++){for(var de=be[ze]=[],Ce=T[ze],oe=0;oe<24;oe++)de[oe/6|0]|=ie[(A[oe]-1+Ce)%28]<<31-oe%6,de[4+(oe/6|0)]|=ie[28+(A[oe+24]-1+Ce)%28]<<31-oe%6;de[0]=de[0]<<1|de[0]>>>31;for(var oe=1;oe<7;oe++)de[oe]=de[oe]>>>(oe-1)*4+3;de[7]=de[7]<<5|de[7]>>>27}for(var ke=this._invSubKeys=[],oe=0;oe<16;oe++)ke[oe]=be[15-oe]},encryptBlock:function(X,Y){this._doCryptBlock(X,Y,this._subKeys)},decryptBlock:function(X,Y){this._doCryptBlock(X,Y,this._invSubKeys)},_doCryptBlock:function(X,Y,ie){this._lBlock=X[Y],this._rBlock=X[Y+1],$.call(this,4,252645135),$.call(this,16,65535),W.call(this,2,858993459),W.call(this,8,16711935),$.call(this,1,1431655765);for(var oe=0;oe<16;oe++){for(var ge=ie[oe],be=this._lBlock,ze=this._rBlock,de=0,Ce=0;Ce<8;Ce++)de|=D[Ce][((ze^ge[Ce])&O[Ce])>>>0];this._lBlock=ze,this._rBlock=be^de}var ke=this._lBlock;this._lBlock=this._rBlock,this._rBlock=ke,$.call(this,1,1431655765),W.call(this,8,16711935),W.call(this,2,858993459),$.call(this,16,65535),$.call(this,4,252645135),X[Y]=this._lBlock,X[Y+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function $(X,Y){var ie=(this._lBlock>>>X^this._rBlock)&Y;this._rBlock^=ie,this._lBlock^=ie<<X}function W(X,Y){var ie=(this._rBlock>>>X^this._lBlock)&Y;this._lBlock^=ie,this._rBlock^=ie<<X}_.DES=E._createHelper(j);var Q=M.TripleDES=E.extend({_doReset:function(){var X=this._key,Y=X.words;if(Y.length!==2&&Y.length!==4&&Y.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var ie=Y.slice(0,2),oe=Y.length<4?Y.slice(0,2):Y.slice(2,4),ge=Y.length<6?Y.slice(0,2):Y.slice(4,6);this._des1=j.createEncryptor(I.create(ie)),this._des2=j.createEncryptor(I.create(oe)),this._des3=j.createEncryptor(I.create(ge))},encryptBlock:function(X,Y){this._des1.encryptBlock(X,Y),this._des2.decryptBlock(X,Y),this._des3.encryptBlock(X,Y)},decryptBlock:function(X,Y){this._des3.decryptBlock(X,Y),this._des2.encryptBlock(X,Y),this._des1.decryptBlock(X,Y)},keySize:192/32,ivSize:64/32,blockSize:64/32});_.TripleDES=E._createHelper(Q)}(),d.TripleDES})}(lu)),lu.exports}var du={exports:{}},Qd;function x_(){return Qd||(Qd=1,function(u,f){(function(d,_,x){u.exports=_(xt(),ja$1(),Wa(),aa(),or())})(Me,function(d){return function(){var _=d,x=_.lib,I=x.StreamCipher,E=_.algo,M=E.RC4=I.extend({_doReset:function(){for(var T=this._key,D=T.words,O=T.sigBytes,j=this._S=[],$=0;$<256;$++)j[$]=$;for(var $=0,W=0;$<256;$++){var Q=$%O,X=D[Q>>>2]>>>24-Q%4*8&255;W=(W+j[$]+X)%256;var Y=j[$];j[$]=j[W],j[W]=Y}this._i=this._j=0},_doProcessBlock:function(T,D){T[D]^=S.call(this)},keySize:256/32,ivSize:0});function S(){for(var T=this._S,D=this._i,O=this._j,j=0,$=0;$<4;$++){D=(D+1)%256,O=(O+T[D])%256;var W=T[D];T[D]=T[O],T[O]=W,j|=T[(T[D]+T[O])%256]<<24-$*8}return this._i=D,this._j=O,j}_.RC4=I._createHelper(M);var A=E.RC4Drop=M.extend({cfg:M.cfg.extend({drop:192}),_doReset:function(){M._doReset.call(this);for(var T=this.cfg.drop;T>0;T--)S.call(this)}});_.RC4Drop=I._createHelper(A)}(),d.RC4})}(du)),du.exports}var pu={exports:{}},Zd;function __(){return Zd||(Zd=1,function(u,f){(function(d,_,x){u.exports=_(xt(),ja$1(),Wa(),aa(),or())})(Me,function(d){return function(){var _=d,x=_.lib,I=x.StreamCipher,E=_.algo,M=[],S=[],A=[],T=E.Rabbit=I.extend({_doReset:function(){for(var O=this._key.words,j=this.cfg.iv,$=0;$<4;$++)O[$]=(O[$]<<8|O[$]>>>24)&16711935|(O[$]<<24|O[$]>>>8)&4278255360;var W=this._X=[O[0],O[3]<<16|O[2]>>>16,O[1],O[0]<<16|O[3]>>>16,O[2],O[1]<<16|O[0]>>>16,O[3],O[2]<<16|O[1]>>>16],Q=this._C=[O[2]<<16|O[2]>>>16,O[0]&4294901760|O[1]&65535,O[3]<<16|O[3]>>>16,O[1]&4294901760|O[2]&65535,O[0]<<16|O[0]>>>16,O[2]&4294901760|O[3]&65535,O[1]<<16|O[1]>>>16,O[3]&4294901760|O[0]&65535];this._b=0;for(var $=0;$<4;$++)D.call(this);for(var $=0;$<8;$++)Q[$]^=W[$+4&7];if(j){var X=j.words,Y=X[0],ie=X[1],oe=(Y<<8|Y>>>24)&16711935|(Y<<24|Y>>>8)&4278255360,ge=(ie<<8|ie>>>24)&16711935|(ie<<24|ie>>>8)&4278255360,be=oe>>>16|ge&4294901760,ze=ge<<16|oe&65535;Q[0]^=oe,Q[1]^=be,Q[2]^=ge,Q[3]^=ze,Q[4]^=oe,Q[5]^=be,Q[6]^=ge,Q[7]^=ze;for(var $=0;$<4;$++)D.call(this)}},_doProcessBlock:function(O,j){var $=this._X;D.call(this),M[0]=$[0]^$[5]>>>16^$[3]<<16,M[1]=$[2]^$[7]>>>16^$[5]<<16,M[2]=$[4]^$[1]>>>16^$[7]<<16,M[3]=$[6]^$[3]>>>16^$[1]<<16;for(var W=0;W<4;W++)M[W]=(M[W]<<8|M[W]>>>24)&16711935|(M[W]<<24|M[W]>>>8)&4278255360,O[j+W]^=M[W]},blockSize:128/32,ivSize:64/32});function D(){for(var O=this._X,j=this._C,$=0;$<8;$++)S[$]=j[$];j[0]=j[0]+1295307597+this._b|0,j[1]=j[1]+3545052371+(j[0]>>>0<S[0]>>>0?1:0)|0,j[2]=j[2]+886263092+(j[1]>>>0<S[1]>>>0?1:0)|0,j[3]=j[3]+1295307597+(j[2]>>>0<S[2]>>>0?1:0)|0,j[4]=j[4]+3545052371+(j[3]>>>0<S[3]>>>0?1:0)|0,j[5]=j[5]+886263092+(j[4]>>>0<S[4]>>>0?1:0)|0,j[6]=j[6]+1295307597+(j[5]>>>0<S[5]>>>0?1:0)|0,j[7]=j[7]+3545052371+(j[6]>>>0<S[6]>>>0?1:0)|0,this._b=j[7]>>>0<S[7]>>>0?1:0;for(var $=0;$<8;$++){var W=O[$]+j[$],Q=W&65535,X=W>>>16,Y=((Q*Q>>>17)+Q*X>>>15)+X*X,ie=((W&4294901760)*W|0)+((W&65535)*W|0);A[$]=Y^ie}O[0]=A[0]+(A[7]<<16|A[7]>>>16)+(A[6]<<16|A[6]>>>16)|0,O[1]=A[1]+(A[0]<<8|A[0]>>>24)+A[7]|0,O[2]=A[2]+(A[1]<<16|A[1]>>>16)+(A[0]<<16|A[0]>>>16)|0,O[3]=A[3]+(A[2]<<8|A[2]>>>24)+A[1]|0,O[4]=A[4]+(A[3]<<16|A[3]>>>16)+(A[2]<<16|A[2]>>>16)|0,O[5]=A[5]+(A[4]<<8|A[4]>>>24)+A[3]|0,O[6]=A[6]+(A[5]<<16|A[5]>>>16)+(A[4]<<16|A[4]>>>16)|0,O[7]=A[7]+(A[6]<<8|A[6]>>>24)+A[5]|0}_.Rabbit=I._createHelper(T)}(),d.Rabbit})}(pu)),pu.exports}var vu={exports:{}},Jd;function E_(){return Jd||(Jd=1,function(u,f){(function(d,_,x){u.exports=_(xt(),ja$1(),Wa(),aa(),or())})(Me,function(d){return function(){var _=d,x=_.lib,I=x.StreamCipher,E=_.algo,M=[],S=[],A=[],T=E.RabbitLegacy=I.extend({_doReset:function(){var O=this._key.words,j=this.cfg.iv,$=this._X=[O[0],O[3]<<16|O[2]>>>16,O[1],O[0]<<16|O[3]>>>16,O[2],O[1]<<16|O[0]>>>16,O[3],O[2]<<16|O[1]>>>16],W=this._C=[O[2]<<16|O[2]>>>16,O[0]&4294901760|O[1]&65535,O[3]<<16|O[3]>>>16,O[1]&4294901760|O[2]&65535,O[0]<<16|O[0]>>>16,O[2]&4294901760|O[3]&65535,O[1]<<16|O[1]>>>16,O[3]&4294901760|O[0]&65535];this._b=0;for(var Q=0;Q<4;Q++)D.call(this);for(var Q=0;Q<8;Q++)W[Q]^=$[Q+4&7];if(j){var X=j.words,Y=X[0],ie=X[1],oe=(Y<<8|Y>>>24)&16711935|(Y<<24|Y>>>8)&4278255360,ge=(ie<<8|ie>>>24)&16711935|(ie<<24|ie>>>8)&4278255360,be=oe>>>16|ge&4294901760,ze=ge<<16|oe&65535;W[0]^=oe,W[1]^=be,W[2]^=ge,W[3]^=ze,W[4]^=oe,W[5]^=be,W[6]^=ge,W[7]^=ze;for(var Q=0;Q<4;Q++)D.call(this)}},_doProcessBlock:function(O,j){var $=this._X;D.call(this),M[0]=$[0]^$[5]>>>16^$[3]<<16,M[1]=$[2]^$[7]>>>16^$[5]<<16,M[2]=$[4]^$[1]>>>16^$[7]<<16,M[3]=$[6]^$[3]>>>16^$[1]<<16;for(var W=0;W<4;W++)M[W]=(M[W]<<8|M[W]>>>24)&16711935|(M[W]<<24|M[W]>>>8)&4278255360,O[j+W]^=M[W]},blockSize:128/32,ivSize:64/32});function D(){for(var O=this._X,j=this._C,$=0;$<8;$++)S[$]=j[$];j[0]=j[0]+1295307597+this._b|0,j[1]=j[1]+3545052371+(j[0]>>>0<S[0]>>>0?1:0)|0,j[2]=j[2]+886263092+(j[1]>>>0<S[1]>>>0?1:0)|0,j[3]=j[3]+1295307597+(j[2]>>>0<S[2]>>>0?1:0)|0,j[4]=j[4]+3545052371+(j[3]>>>0<S[3]>>>0?1:0)|0,j[5]=j[5]+886263092+(j[4]>>>0<S[4]>>>0?1:0)|0,j[6]=j[6]+1295307597+(j[5]>>>0<S[5]>>>0?1:0)|0,j[7]=j[7]+3545052371+(j[6]>>>0<S[6]>>>0?1:0)|0,this._b=j[7]>>>0<S[7]>>>0?1:0;for(var $=0;$<8;$++){var W=O[$]+j[$],Q=W&65535,X=W>>>16,Y=((Q*Q>>>17)+Q*X>>>15)+X*X,ie=((W&4294901760)*W|0)+((W&65535)*W|0);A[$]=Y^ie}O[0]=A[0]+(A[7]<<16|A[7]>>>16)+(A[6]<<16|A[6]>>>16)|0,O[1]=A[1]+(A[0]<<8|A[0]>>>24)+A[7]|0,O[2]=A[2]+(A[1]<<16|A[1]>>>16)+(A[0]<<16|A[0]>>>16)|0,O[3]=A[3]+(A[2]<<8|A[2]>>>24)+A[1]|0,O[4]=A[4]+(A[3]<<16|A[3]>>>16)+(A[2]<<16|A[2]>>>16)|0,O[5]=A[5]+(A[4]<<8|A[4]>>>24)+A[3]|0,O[6]=A[6]+(A[5]<<16|A[5]>>>16)+(A[4]<<16|A[4]>>>16)|0,O[7]=A[7]+(A[6]<<8|A[6]>>>24)+A[5]|0}_.RabbitLegacy=I._createHelper(T)}(),d.RabbitLegacy})}(vu)),vu.exports}(function(u,f){(function(d,_,x){u.exports=_(xt(),If(),J5(),e_(),ja$1(),t_(),Wa(),wh(),Gy(),r_(),zy(),i_(),n_(),a_(),Ch(),s_(),aa(),or(),f_(),o_(),u_(),c_(),h_(),l_(),d_(),p_(),v_(),y_(),g_(),m_(),b_(),x_(),__(),E_())})(Me,function(d){return d})})(u1);var S_=u1.exports;const Cr=Gs(S_),w_=0,C_=1,A_=2,B_=61440,I_=32768,T_=16384,M_=8192,R_=24576,N_=4096,D_=40960,O_=49152,P_=512,L_=2048,k_=131072,U_=1024,F_=8,q_=1048576,V_=256,K_=128,$_=2097152,H_=4,G_=448,z_=256,j_=128,W_=64,Y_=56,X_=32,Q_=16,Z_=8,J_=7,eE=4,tE=2,rE=1,iE=7,nE=13,aE=48,sE=49,fE=47,oE=35,uE=37,cE=9,hE=94,lE=16,dE=89,pE=10,vE=53,yE=61,gE=54,mE=11,bE=39,xE=33,_E=69,EE=17,SE=14,wE=27,CE=65,AE=90,BE=92,IE=36,TE=4,ME=22,RE=5,NE=56,DE=21,OE=62,PE=24,LE=31,kE=40,UE=95,FE=63,qE=50,VE=52,KE=51,$E=23,HE=55,GE=96,zE=19,jE=2,WE=8,YE=77,XE=97,QE=12,ZE=91,JE=42,eS=28,tS=98,rS=99,iS=78,nS=57,aS=20,sS=66,fS=38,oS=45,uS=25,cS=6,hS=102,lS=84,dS=1,pS=32,vS=100,yS=43,gS=41,mS=34,bS=30,xS=29,_S=3,ES=70,SS=101,wS=60,CS=26,AS=35,BS=18,IS=1,TS=2,MS=3,RS=4,NS=5,DS=6,OS=6,PS=10,LS=8,kS=9,US=30,FS=11,qS=31,VS=13,KS=14,$S=15,HS=20,GS=19,zS=17,jS=18,WS=21,YS=22,XS=16,QS=24,ZS=25,JS=26,ew=27,tw=28,rw=23,iw=12,nw=2147486719,aw=262144,sw=4194304,fw=32768,ow=8192,uw=2147483648,cw=2048,hw=0,lw=4,dw=32,pw=1,vw=0,yw=536870912,gw=2,mw=1073741824,bw=8,xw=131072,_w=4096,Ew=65536,Sw=16777216,ww=33554432,Cw=16384,Aw=67108864,Bw=268435456,Iw=134217728,Tw=0,Mw=0,Rw=1048576,Nw=524288,Dw=128,Ow=0,Pw=512,Lw=256,kw=8388608,Uw=2,Fw=4,qw=8,Vw=16,Kw=32,$w=64,Hw=128,Gw=256,zw=512,jw=1024,Ww=65535,Yw=0,Xw=2,Qw=1,Zw=4,Jw=8,e7=1,t7=1,r7=2,i7=3,n7=4,a7=5,s7=6,f7=2,o7=4,u7=6,c7=0,h7=4,l7=2,d7=1,p7=4,Ah={O_RDONLY:w_,O_WRONLY:C_,O_RDWR:A_,S_IFMT:B_,S_IFREG:I_,S_IFDIR:T_,S_IFCHR:M_,S_IFBLK:R_,S_IFIFO:N_,S_IFLNK:D_,S_IFSOCK:O_,O_CREAT:P_,O_EXCL:L_,O_NOCTTY:k_,O_TRUNC:U_,O_APPEND:F_,O_DIRECTORY:q_,O_NOFOLLOW:V_,O_SYNC:K_,O_SYMLINK:$_,O_NONBLOCK:H_,S_IRWXU:G_,S_IRUSR:z_,S_IWUSR:j_,S_IXUSR:W_,S_IRWXG:Y_,S_IRGRP:X_,S_IWGRP:Q_,S_IXGRP:Z_,S_IRWXO:J_,S_IROTH:eE,S_IWOTH:tE,S_IXOTH:rE,E2BIG:iE,EACCES:nE,EADDRINUSE:aE,EADDRNOTAVAIL:sE,EAFNOSUPPORT:fE,EAGAIN:oE,EALREADY:uE,EBADF:cE,EBADMSG:hE,EBUSY:lE,ECANCELED:dE,ECHILD:pE,ECONNABORTED:vE,ECONNREFUSED:yE,ECONNRESET:gE,EDEADLK:mE,EDESTADDRREQ:bE,EDOM:xE,EDQUOT:_E,EEXIST:EE,EFAULT:SE,EFBIG:wE,EHOSTUNREACH:CE,EIDRM:AE,EILSEQ:BE,EINPROGRESS:IE,EINTR:TE,EINVAL:ME,EIO:RE,EISCONN:NE,EISDIR:DE,ELOOP:OE,EMFILE:PE,EMLINK:LE,EMSGSIZE:kE,EMULTIHOP:UE,ENAMETOOLONG:FE,ENETDOWN:qE,ENETRESET:VE,ENETUNREACH:KE,ENFILE:$E,ENOBUFS:HE,ENODATA:GE,ENODEV:zE,ENOENT:jE,ENOEXEC:WE,ENOLCK:YE,ENOLINK:XE,ENOMEM:QE,ENOMSG:ZE,ENOPROTOOPT:JE,ENOSPC:eS,ENOSR:tS,ENOSTR:rS,ENOSYS:iS,ENOTCONN:nS,ENOTDIR:aS,ENOTEMPTY:sS,ENOTSOCK:fS,ENOTSUP:oS,ENOTTY:uS,ENXIO:cS,EOPNOTSUPP:hS,EOVERFLOW:lS,EPERM:dS,EPIPE:pS,EPROTO:vS,EPROTONOSUPPORT:yS,EPROTOTYPE:gS,ERANGE:mS,EROFS:bS,ESPIPE:xS,ESRCH:_S,ESTALE:ES,ETIME:SS,ETIMEDOUT:wS,ETXTBSY:CS,EWOULDBLOCK:AS,EXDEV:BS,SIGHUP:IS,SIGINT:TS,SIGQUIT:MS,SIGILL:RS,SIGTRAP:NS,SIGABRT:DS,SIGIOT:OS,SIGBUS:PS,SIGFPE:LS,SIGKILL:kS,SIGUSR1:US,SIGSEGV:FS,SIGUSR2:qS,SIGPIPE:VS,SIGALRM:KS,SIGTERM:$S,SIGCHLD:HS,SIGCONT:GS,SIGSTOP:zS,SIGTSTP:jS,SIGTTIN:WS,SIGTTOU:YS,SIGURG:XS,SIGXCPU:QS,SIGXFSZ:ZS,SIGVTALRM:JS,SIGPROF:ew,SIGWINCH:tw,SIGIO:rw,SIGSYS:iw,SSL_OP_ALL:nw,SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION:aw,SSL_OP_CIPHER_SERVER_PREFERENCE:sw,SSL_OP_CISCO_ANYCONNECT:fw,SSL_OP_COOKIE_EXCHANGE:ow,SSL_OP_CRYPTOPRO_TLSEXT_BUG:uw,SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS:cw,SSL_OP_EPHEMERAL_RSA:hw,SSL_OP_LEGACY_SERVER_CONNECT:lw,SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER:dw,SSL_OP_MICROSOFT_SESS_ID_BUG:pw,SSL_OP_MSIE_SSLV2_RSA_PADDING:vw,SSL_OP_NETSCAPE_CA_DN_BUG:yw,SSL_OP_NETSCAPE_CHALLENGE_BUG:gw,SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG:mw,SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG:bw,SSL_OP_NO_COMPRESSION:xw,SSL_OP_NO_QUERY_MTU:_w,SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION:Ew,SSL_OP_NO_SSLv2:Sw,SSL_OP_NO_SSLv3:ww,SSL_OP_NO_TICKET:Cw,SSL_OP_NO_TLSv1:Aw,SSL_OP_NO_TLSv1_1:Bw,SSL_OP_NO_TLSv1_2:Iw,SSL_OP_PKCS1_CHECK_1:Tw,SSL_OP_PKCS1_CHECK_2:Mw,SSL_OP_SINGLE_DH_USE:Rw,SSL_OP_SINGLE_ECDH_USE:Nw,SSL_OP_SSLEAY_080_CLIENT_DH_BUG:Dw,SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG:Ow,SSL_OP_TLS_BLOCK_PADDING_BUG:Pw,SSL_OP_TLS_D5_BUG:Lw,SSL_OP_TLS_ROLLBACK_BUG:kw,ENGINE_METHOD_DSA:Uw,ENGINE_METHOD_DH:Fw,ENGINE_METHOD_RAND:qw,ENGINE_METHOD_ECDH:Vw,ENGINE_METHOD_ECDSA:Kw,ENGINE_METHOD_CIPHERS:$w,ENGINE_METHOD_DIGESTS:Hw,ENGINE_METHOD_STORE:Gw,ENGINE_METHOD_PKEY_METHS:zw,ENGINE_METHOD_PKEY_ASN1_METHS:jw,ENGINE_METHOD_ALL:Ww,ENGINE_METHOD_NONE:Yw,DH_CHECK_P_NOT_SAFE_PRIME:Xw,DH_CHECK_P_NOT_PRIME:Qw,DH_UNABLE_TO_CHECK_GENERATOR:Zw,DH_NOT_SUITABLE_GENERATOR:Jw,NPN_ENABLED:e7,RSA_PKCS1_PADDING:t7,RSA_SSLV23_PADDING:r7,RSA_NO_PADDING:i7,RSA_PKCS1_OAEP_PADDING:n7,RSA_X931_PADDING:a7,RSA_PKCS1_PSS_PADDING:s7,POINT_CONVERSION_COMPRESSED:f7,POINT_CONVERSION_UNCOMPRESSED:o7,POINT_CONVERSION_HYBRID:u7,F_OK:c7,R_OK:h7,W_OK:l7,X_OK:d7,UV_UDP_REUSEADDR:p7};var Bh={},tr={};_r();tr.linebrk=function(u,f){for(var d="",_=0;_+f<u.length;)d+=u.substring(_,_+f)+`
`,_+=f;return d+u.substring(_,u.length)};tr.detectEnvironment=function(){return typeof window<"u"&&window&&!(Ve&&Ve.title==="node")?"browser":"node"};tr.get32IntFromBuffer=function(u,f){f=f||0;var d=0;if((d=u.length-f)>0){if(d>=4)return u.readUIntBE(f,d);for(var _=0,x=f+d,I=0;x>f;x--,I+=2)_+=u[x-1]*Math.pow(16,I);return _}else return NaN};tr._={isObject:function(u){var f=typeof u;return!!u&&(f=="object"||f=="function")},isString:function(u){return typeof u=="string"||u instanceof String},isNumber:function(u){return typeof u=="number"||!isNaN(parseFloat(u))&&isFinite(u)},omit:function(u,f){var d={};for(var _ in u)!u.hasOwnProperty(_)||_===f||(d[_]=u[_]);return d}};tr.trimSurroundingText=function(u,f,d){var _=0,x=u.length,I=u.indexOf(f);I>=0&&(_=I+f.length);var E=u.indexOf(d,I);return E>=0&&(x=E),u.substring(_,x)};var v7=_r(),y7=tr._,Ya;function Ee(u,f){u!=null&&(typeof u=="number"?this.fromNumber(u,f):pe.Buffer.isBuffer(u)?this.fromBuffer(u):f==null&&typeof u!="string"?this.fromByteArray(u):this.fromString(u,f))}function mt(){return new Ee(null)}function g7(u,f,d,_,x,I){for(var E=f&16383,M=f>>14;--I>=0;){var S=this[u]&16383,A=this[u++]>>14,T=M*S+A*E;S=E*S+((T&16383)<<14)+d[_]+x,x=(S>>28)+(T>>14)+M*A,d[_++]=S&268435455}return x}Ee.prototype.am=g7;Ya=28;Ee.prototype.DB=Ya;Ee.prototype.DM=(1<<Ya)-1;Ee.prototype.DV=1<<Ya;var Ih=52;Ee.prototype.FV=Math.pow(2,Ih);Ee.prototype.F1=Ih-Ya;Ee.prototype.F2=2*Ya-Ih;var m7="0123456789abcdefghijklmnopqrstuvwxyz",Tf=new Array,Xa,Kr;Xa=48;for(Kr=0;Kr<=9;++Kr)Tf[Xa++]=Kr;Xa=97;for(Kr=10;Kr<36;++Kr)Tf[Xa++]=Kr;Xa=65;for(Kr=10;Kr<36;++Kr)Tf[Xa++]=Kr;function vc(u){return m7.charAt(u)}function jy(u,f){var d=Tf[u.charCodeAt(f)];return d??-1}function b7(u){for(var f=this.t-1;f>=0;--f)u[f]=this[f];u.t=this.t,u.s=this.s}function x7(u){this.t=1,this.s=u<0?-1:0,u>0?this[0]=u:u<-1?this[0]=u+DV:this.t=0}function vn(u){var f=mt();return f.fromInt(u),f}function _7(u,f,d){var _;switch(f){case 2:_=1;break;case 4:_=2;break;case 8:_=3;break;case 16:_=4;break;case 32:_=5;break;case 256:_=8;break;default:this.fromRadix(u,f);return}this.t=0,this.s=0;for(var x=u.length,I=!1,E=0;--x>=0;){var M=_==8?u[x]&255:jy(u,x);if(M<0){u.charAt(x)=="-"&&(I=!0);continue}I=!1,E===0?this[this.t++]=M:E+_>this.DB?(this[this.t-1]|=(M&(1<<this.DB-E)-1)<<E,this[this.t++]=M>>this.DB-E):this[this.t-1]|=M<<E,E+=_,E>=this.DB&&(E-=this.DB)}!d&&_==8&&u[0]&128&&(this.s=-1,E>0&&(this[this.t-1]|=(1<<this.DB-E)-1<<E)),this.clamp(),I&&Ee.ZERO.subTo(this,this)}function E7(u,f){this.fromString(u,256,f)}function S7(u){this.fromString(u,256,!0)}function w7(){for(var u=this.s&this.DM;this.t>0&&this[this.t-1]==u;)--this.t}function C7(u){if(this.s<0)return"-"+this.negate().toString(u);var f;if(u==16)f=4;else if(u==8)f=3;else if(u==2)f=1;else if(u==32)f=5;else if(u==4)f=2;else return this.toRadix(u);var d=(1<<f)-1,_,x=!1,I="",E=this.t,M=this.DB-E*this.DB%f;if(E-- >0)for(M<this.DB&&(_=this[E]>>M)>0&&(x=!0,I=vc(_));E>=0;)M<f?(_=(this[E]&(1<<M)-1)<<f-M,_|=this[--E]>>(M+=this.DB-f)):(_=this[E]>>(M-=f)&d,M<=0&&(M+=this.DB,--E)),_>0&&(x=!0),x&&(I+=vc(_));return x?I:"0"}function A7(){var u=mt();return Ee.ZERO.subTo(this,u),u}function B7(){return this.s<0?this.negate():this}function I7(u){var f=this.s-u.s;if(f!=0)return f;var d=this.t;if(f=d-u.t,f!=0)return this.s<0?-f:f;for(;--d>=0;)if((f=this[d]-u[d])!=0)return f;return 0}function Mf(u){var f=1,d;return(d=u>>>16)!=0&&(u=d,f+=16),(d=u>>8)!=0&&(u=d,f+=8),(d=u>>4)!=0&&(u=d,f+=4),(d=u>>2)!=0&&(u=d,f+=2),(d=u>>1)!=0&&(u=d,f+=1),f}function T7(){return this.t<=0?0:this.DB*(this.t-1)+Mf(this[this.t-1]^this.s&this.DM)}function M7(u,f){var d;for(d=this.t-1;d>=0;--d)f[d+u]=this[d];for(d=u-1;d>=0;--d)f[d]=0;f.t=this.t+u,f.s=this.s}function R7(u,f){for(var d=u;d<this.t;++d)f[d-u]=this[d];f.t=Math.max(this.t-u,0),f.s=this.s}function N7(u,f){var d=u%this.DB,_=this.DB-d,x=(1<<_)-1,I=Math.floor(u/this.DB),E=this.s<<d&this.DM,M;for(M=this.t-1;M>=0;--M)f[M+I+1]=this[M]>>_|E,E=(this[M]&x)<<d;for(M=I-1;M>=0;--M)f[M]=0;f[I]=E,f.t=this.t+I+1,f.s=this.s,f.clamp()}function D7(u,f){f.s=this.s;var d=Math.floor(u/this.DB);if(d>=this.t){f.t=0;return}var _=u%this.DB,x=this.DB-_,I=(1<<_)-1;f[0]=this[d]>>_;for(var E=d+1;E<this.t;++E)f[E-d-1]|=(this[E]&I)<<x,f[E-d]=this[E]>>_;_>0&&(f[this.t-d-1]|=(this.s&I)<<x),f.t=this.t-d,f.clamp()}function O7(u,f){for(var d=0,_=0,x=Math.min(u.t,this.t);d<x;)_+=this[d]-u[d],f[d++]=_&this.DM,_>>=this.DB;if(u.t<this.t){for(_-=u.s;d<this.t;)_+=this[d],f[d++]=_&this.DM,_>>=this.DB;_+=this.s}else{for(_+=this.s;d<u.t;)_-=u[d],f[d++]=_&this.DM,_>>=this.DB;_-=u.s}f.s=_<0?-1:0,_<-1?f[d++]=this.DV+_:_>0&&(f[d++]=_),f.t=d,f.clamp()}function P7(u,f){var d=this.abs(),_=u.abs(),x=d.t;for(f.t=x+_.t;--x>=0;)f[x]=0;for(x=0;x<_.t;++x)f[x+d.t]=d.am(0,_[x],f,x,0,d.t);f.s=0,f.clamp(),this.s!=u.s&&Ee.ZERO.subTo(f,f)}function L7(u){for(var f=this.abs(),d=u.t=2*f.t;--d>=0;)u[d]=0;for(d=0;d<f.t-1;++d){var _=f.am(d,f[d],u,2*d,0,1);(u[d+f.t]+=f.am(d+1,2*f[d],u,2*d+1,_,f.t-d-1))>=f.DV&&(u[d+f.t]-=f.DV,u[d+f.t+1]=1)}u.t>0&&(u[u.t-1]+=f.am(d,f[d],u,2*d,0,1)),u.s=0,u.clamp()}function k7(u,f,d){var _=u.abs();if(!(_.t<=0)){var x=this.abs();if(x.t<_.t){f?.fromInt(0),d!=null&&this.copyTo(d);return}d==null&&(d=mt());var I=mt(),E=this.s,M=u.s,S=this.DB-Mf(_[_.t-1]);S>0?(_.lShiftTo(S,I),x.lShiftTo(S,d)):(_.copyTo(I),x.copyTo(d));var A=I.t,T=I[A-1];if(T!==0){var D=T*(1<<this.F1)+(A>1?I[A-2]>>this.F2:0),O=this.FV/D,j=(1<<this.F1)/D,$=1<<this.F2,W=d.t,Q=W-A,X=f??mt();for(I.dlShiftTo(Q,X),d.compareTo(X)>=0&&(d[d.t++]=1,d.subTo(X,d)),Ee.ONE.dlShiftTo(A,X),X.subTo(I,I);I.t<A;)I[I.t++]=0;for(;--Q>=0;){var Y=d[--W]==T?this.DM:Math.floor(d[W]*O+(d[W-1]+$)*j);if((d[W]+=I.am(0,Y,d,Q,0,A))<Y)for(I.dlShiftTo(Q,X),d.subTo(X,d);d[W]<--Y;)d.subTo(X,d)}f!=null&&(d.drShiftTo(A,f),E!=M&&Ee.ZERO.subTo(f,f)),d.t=A,d.clamp(),S>0&&d.rShiftTo(S,d),E<0&&Ee.ZERO.subTo(d,d)}}}function U7(u){var f=mt();return this.abs().divRemTo(u,null,f),this.s<0&&f.compareTo(Ee.ZERO)>0&&u.subTo(f,f),f}function sa(u){this.m=u}function F7(u){return u.s<0||u.compareTo(this.m)>=0?u.mod(this.m):u}function q7(u){return u}function V7(u){u.divRemTo(this.m,null,u)}function K7(u,f,d){u.multiplyTo(f,d),this.reduce(d)}function $7(u,f){u.squareTo(f),this.reduce(f)}sa.prototype.convert=F7;sa.prototype.revert=q7;sa.prototype.reduce=V7;sa.prototype.mulTo=K7;sa.prototype.sqrTo=$7;function H7(){if(this.t<1)return 0;var u=this[0];if(!(u&1))return 0;var f=u&3;return f=f*(2-(u&15)*f)&15,f=f*(2-(u&255)*f)&255,f=f*(2-((u&65535)*f&65535))&65535,f=f*(2-u*f%this.DV)%this.DV,f>0?this.DV-f:-f}function fa(u){this.m=u,this.mp=u.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<u.DB-15)-1,this.mt2=2*u.t}function G7(u){var f=mt();return u.abs().dlShiftTo(this.m.t,f),f.divRemTo(this.m,null,f),u.s<0&&f.compareTo(Ee.ZERO)>0&&this.m.subTo(f,f),f}function z7(u){var f=mt();return u.copyTo(f),this.reduce(f),f}function j7(u){for(;u.t<=this.mt2;)u[u.t++]=0;for(var f=0;f<this.m.t;++f){var d=u[f]&32767,_=d*this.mpl+((d*this.mph+(u[f]>>15)*this.mpl&this.um)<<15)&u.DM;for(d=f+this.m.t,u[d]+=this.m.am(0,_,u,f,0,this.m.t);u[d]>=u.DV;)u[d]-=u.DV,u[++d]++}u.clamp(),u.drShiftTo(this.m.t,u),u.compareTo(this.m)>=0&&u.subTo(this.m,u)}function W7(u,f){u.squareTo(f),this.reduce(f)}function Y7(u,f,d){u.multiplyTo(f,d),this.reduce(d)}fa.prototype.convert=G7;fa.prototype.revert=z7;fa.prototype.reduce=j7;fa.prototype.mulTo=Y7;fa.prototype.sqrTo=W7;function X7(){return(this.t>0?this[0]&1:this.s)===0}function Q7(u,f){if(u>4294967295||u<1)return Ee.ONE;var d=mt(),_=mt(),x=f.convert(this),I=Mf(u)-1;for(x.copyTo(d);--I>=0;)if(f.sqrTo(d,_),(u&1<<I)>0)f.mulTo(_,x,d);else{var E=d;d=_,_=E}return f.revert(d)}function Z7(u,f){var d;return u<256||f.isEven()?d=new sa(f):d=new fa(f),this.exp(u,d)}function J7(){var u=mt();return this.copyTo(u),u}function e9(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t===0)return-1}else{if(this.t==1)return this[0];if(this.t===0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]}function t9(){return this.t==0?this.s:this[0]<<24>>24}function r9(){return this.t==0?this.s:this[0]<<16>>16}function i9(u){return Math.floor(Math.LN2*this.DB/Math.log(u))}function n9(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1}function a9(u){if(u==null&&(u=10),this.signum()===0||u<2||u>36)return"0";var f=this.chunkSize(u),d=Math.pow(u,f),_=vn(d),x=mt(),I=mt(),E="";for(this.divRemTo(_,x,I);x.signum()>0;)E=(d+I.intValue()).toString(u).substr(1)+E,x.divRemTo(_,x,I);return I.intValue().toString(u)+E}function s9(u,f){this.fromInt(0),f==null&&(f=10);for(var d=this.chunkSize(f),_=Math.pow(f,d),x=!1,I=0,E=0,M=0;M<u.length;++M){var S=jy(u,M);if(S<0){u.charAt(M)=="-"&&this.signum()===0&&(x=!0);continue}E=f*E+S,++I>=d&&(this.dMultiply(_),this.dAddOffset(E,0),I=0,E=0)}I>0&&(this.dMultiply(Math.pow(f,I)),this.dAddOffset(E,0)),x&&Ee.ZERO.subTo(this,this)}function f9(u,f){if(typeof f=="number")if(u<2)this.fromInt(1);else for(this.fromNumber(u),this.testBit(u-1)||this.bitwiseTo(Ee.ONE.shiftLeft(u-1),Th,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(f);)this.dAddOffset(2,0),this.bitLength()>u&&this.subTo(Ee.ONE.shiftLeft(u-1),this);else{var d=v7.randomBytes((u>>3)+1),_=u&7;_>0?d[0]&=(1<<_)-1:d[0]=0,this.fromByteArray(d)}}function o9(){var u=this.t,f=new Array;f[0]=this.s;var d=this.DB-u*this.DB%8,_,x=0;if(u-- >0)for(d<this.DB&&(_=this[u]>>d)!=(this.s&this.DM)>>d&&(f[x++]=_|this.s<<this.DB-d);u>=0;)d<8?(_=(this[u]&(1<<d)-1)<<8-d,_|=this[--u]>>(d+=this.DB-8)):(_=this[u]>>(d-=8)&255,d<=0&&(d+=this.DB,--u)),_&128&&(_|=-256),x===0&&(this.s&128)!=(_&128)&&++x,(x>0||_!=this.s)&&(f[x++]=_);return f}function u9(u){var f=pe.Buffer.from(this.toByteArray());if(u===!0&&f[0]===0)f=f.slice(1);else if(y7.isNumber(u)){if(f.length>u){for(var d=0;d<f.length-u;d++)if(f[d]!==0)return null;return f.slice(f.length-u)}else if(f.length<u){var _=pe.Buffer.alloc(u);return _.fill(0,0,u-f.length),f.copy(_,u-f.length),_}}return f}function c9(u){return this.compareTo(u)==0}function h9(u){return this.compareTo(u)<0?this:u}function l9(u){return this.compareTo(u)>0?this:u}function d9(u,f,d){var _,x,I=Math.min(u.t,this.t);for(_=0;_<I;++_)d[_]=f(this[_],u[_]);if(u.t<this.t){for(x=u.s&this.DM,_=I;_<this.t;++_)d[_]=f(this[_],x);d.t=this.t}else{for(x=this.s&this.DM,_=I;_<u.t;++_)d[_]=f(x,u[_]);d.t=u.t}d.s=f(this.s,u.s),d.clamp()}function p9(u,f){return u&f}function v9(u){var f=mt();return this.bitwiseTo(u,p9,f),f}function Th(u,f){return u|f}function y9(u){var f=mt();return this.bitwiseTo(u,Th,f),f}function Wy(u,f){return u^f}function g9(u){var f=mt();return this.bitwiseTo(u,Wy,f),f}function Yy(u,f){return u&~f}function m9(u){var f=mt();return this.bitwiseTo(u,Yy,f),f}function b9(){for(var u=mt(),f=0;f<this.t;++f)u[f]=this.DM&~this[f];return u.t=this.t,u.s=~this.s,u}function x9(u){var f=mt();return u<0?this.rShiftTo(-u,f):this.lShiftTo(u,f),f}function _9(u){var f=mt();return u<0?this.lShiftTo(-u,f):this.rShiftTo(u,f),f}function E9(u){if(u===0)return-1;var f=0;return u&65535||(u>>=16,f+=16),u&255||(u>>=8,f+=8),u&15||(u>>=4,f+=4),u&3||(u>>=2,f+=2),u&1||++f,f}function S9(){for(var u=0;u<this.t;++u)if(this[u]!=0)return u*this.DB+E9(this[u]);return this.s<0?this.t*this.DB:-1}function w9(u){for(var f=0;u!=0;)u&=u-1,++f;return f}function C9(){for(var u=0,f=this.s&this.DM,d=0;d<this.t;++d)u+=w9(this[d]^f);return u}function A9(u){var f=Math.floor(u/this.DB);return f>=this.t?this.s!=0:(this[f]&1<<u%this.DB)!=0}function B9(u,f){var d=Ee.ONE.shiftLeft(u);return this.bitwiseTo(d,f,d),d}function I9(u){return this.changeBit(u,Th)}function T9(u){return this.changeBit(u,Yy)}function M9(u){return this.changeBit(u,Wy)}function R9(u,f){for(var d=0,_=0,x=Math.min(u.t,this.t);d<x;)_+=this[d]+u[d],f[d++]=_&this.DM,_>>=this.DB;if(u.t<this.t){for(_+=u.s;d<this.t;)_+=this[d],f[d++]=_&this.DM,_>>=this.DB;_+=this.s}else{for(_+=this.s;d<u.t;)_+=u[d],f[d++]=_&this.DM,_>>=this.DB;_+=u.s}f.s=_<0?-1:0,_>0?f[d++]=_:_<-1&&(f[d++]=this.DV+_),f.t=d,f.clamp()}function N9(u){var f=mt();return this.addTo(u,f),f}function D9(u){var f=mt();return this.subTo(u,f),f}function O9(u){var f=mt();return this.multiplyTo(u,f),f}function P9(){var u=mt();return this.squareTo(u),u}function L9(u){var f=mt();return this.divRemTo(u,f,null),f}function k9(u){var f=mt();return this.divRemTo(u,null,f),f}function U9(u){var f=mt(),d=mt();return this.divRemTo(u,f,d),new Array(f,d)}function F9(u){this[this.t]=this.am(0,u-1,this,0,0,this.t),++this.t,this.clamp()}function q9(u,f){if(u!==0){for(;this.t<=f;)this[this.t++]=0;for(this[f]+=u;this[f]>=this.DV;)this[f]-=this.DV,++f>=this.t&&(this[this.t++]=0),++this[f]}}function H0(){}function Xy(u){return u}function V9(u,f,d){u.multiplyTo(f,d)}function K9(u,f){u.squareTo(f)}H0.prototype.convert=Xy;H0.prototype.revert=Xy;H0.prototype.mulTo=V9;H0.prototype.sqrTo=K9;function $9(u){return this.exp(u,new H0)}function H9(u,f,d){var _=Math.min(this.t+u.t,f);for(d.s=0,d.t=_;_>0;)d[--_]=0;var x;for(x=d.t-this.t;_<x;++_)d[_+this.t]=this.am(0,u[_],d,_,0,this.t);for(x=Math.min(u.t,f);_<x;++_)this.am(0,u[_],d,_,0,f-_);d.clamp()}function G9(u,f,d){--f;var _=d.t=this.t+u.t-f;for(d.s=0;--_>=0;)d[_]=0;for(_=Math.max(f-this.t,0);_<u.t;++_)d[this.t+_-f]=this.am(f-_,u[_],d,0,0,this.t+_-f);d.clamp(),d.drShiftTo(1,d)}function Qa(u){this.r2=mt(),this.q3=mt(),Ee.ONE.dlShiftTo(2*u.t,this.r2),this.mu=this.r2.divide(u),this.m=u}function z9(u){if(u.s<0||u.t>2*this.m.t)return u.mod(this.m);if(u.compareTo(this.m)<0)return u;var f=mt();return u.copyTo(f),this.reduce(f),f}function j9(u){return u}function W9(u){for(u.drShiftTo(this.m.t-1,this.r2),u.t>this.m.t+1&&(u.t=this.m.t+1,u.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);u.compareTo(this.r2)<0;)u.dAddOffset(1,this.m.t+1);for(u.subTo(this.r2,u);u.compareTo(this.m)>=0;)u.subTo(this.m,u)}function Y9(u,f){u.squareTo(f),this.reduce(f)}function X9(u,f,d){u.multiplyTo(f,d),this.reduce(d)}Qa.prototype.convert=z9;Qa.prototype.revert=j9;Qa.prototype.reduce=W9;Qa.prototype.mulTo=X9;Qa.prototype.sqrTo=Y9;function Q9(u,f){var d=u.bitLength(),_,x=vn(1),I;if(d<=0)return x;d<18?_=1:d<48?_=3:d<144?_=4:d<768?_=5:_=6,d<8?I=new sa(f):f.isEven()?I=new Qa(f):I=new fa(f);var E=new Array,M=3,S=_-1,A=(1<<_)-1;if(E[1]=I.convert(this),_>1){var T=mt();for(I.sqrTo(E[1],T);M<=A;)E[M]=mt(),I.mulTo(T,E[M-2],E[M]),M+=2}var D=u.t-1,O,j=!0,$=mt(),W;for(d=Mf(u[D])-1;D>=0;){for(d>=S?O=u[D]>>d-S&A:(O=(u[D]&(1<<d+1)-1)<<S-d,D>0&&(O|=u[D-1]>>this.DB+d-S)),M=_;!(O&1);)O>>=1,--M;if((d-=M)<0&&(d+=this.DB,--D),j)E[O].copyTo(x),j=!1;else{for(;M>1;)I.sqrTo(x,$),I.sqrTo($,x),M-=2;M>0?I.sqrTo(x,$):(W=x,x=$,$=W),I.mulTo($,E[O],x)}for(;D>=0&&!(u[D]&1<<d);)I.sqrTo(x,$),W=x,x=$,$=W,--d<0&&(d=this.DB-1,--D)}return I.revert(x)}function Z9(u){var f=this.s<0?this.negate():this.clone(),d=u.s<0?u.negate():u.clone();if(f.compareTo(d)<0){var _=f;f=d,d=_}var x=f.getLowestSetBit(),I=d.getLowestSetBit();if(I<0)return f;for(x<I&&(I=x),I>0&&(f.rShiftTo(I,f),d.rShiftTo(I,d));f.signum()>0;)(x=f.getLowestSetBit())>0&&f.rShiftTo(x,f),(x=d.getLowestSetBit())>0&&d.rShiftTo(x,d),f.compareTo(d)>=0?(f.subTo(d,f),f.rShiftTo(1,f)):(d.subTo(f,d),d.rShiftTo(1,d));return I>0&&d.lShiftTo(I,d),d}function J9(u){if(u<=0)return 0;var f=this.DV%u,d=this.s<0?u-1:0;if(this.t>0)if(f===0)d=this[0]%u;else for(var _=this.t-1;_>=0;--_)d=(f*d+this[_])%u;return d}function eC(u){var f=u.isEven();if(this.isEven()&&f||u.signum()===0)return Ee.ZERO;for(var d=u.clone(),_=this.clone(),x=vn(1),I=vn(0),E=vn(0),M=vn(1);d.signum()!=0;){for(;d.isEven();)d.rShiftTo(1,d),f?((!x.isEven()||!I.isEven())&&(x.addTo(this,x),I.subTo(u,I)),x.rShiftTo(1,x)):I.isEven()||I.subTo(u,I),I.rShiftTo(1,I);for(;_.isEven();)_.rShiftTo(1,_),f?((!E.isEven()||!M.isEven())&&(E.addTo(this,E),M.subTo(u,M)),E.rShiftTo(1,E)):M.isEven()||M.subTo(u,M),M.rShiftTo(1,M);d.compareTo(_)>=0?(d.subTo(_,d),f&&x.subTo(E,x),I.subTo(M,I)):(_.subTo(d,_),f&&E.subTo(x,E),M.subTo(I,M))}if(_.compareTo(Ee.ONE)!=0)return Ee.ZERO;if(M.compareTo(u)>=0)return M.subtract(u);if(M.signum()<0)M.addTo(u,M);else return M;return M.signum()<0?M.add(u):M}var gr=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],tC=(1<<26)/gr[gr.length-1];function rC(u){var f,d=this.abs();if(d.t==1&&d[0]<=gr[gr.length-1]){for(f=0;f<gr.length;++f)if(d[0]==gr[f])return!0;return!1}if(d.isEven())return!1;for(f=1;f<gr.length;){for(var _=gr[f],x=f+1;x<gr.length&&_<tC;)_*=gr[x++];for(_=d.modInt(_);f<x;)if(_%gr[f++]===0)return!1}return d.millerRabin(u)}function iC(u){var f=this.subtract(Ee.ONE),d=f.getLowestSetBit();if(d<=0)return!1;var _=f.shiftRight(d);u=u+1>>1,u>gr.length&&(u=gr.length);for(var x=mt(),I=0;I<u;++I){x.fromInt(gr[Math.floor(Math.random()*gr.length)]);var E=x.modPow(_,this);if(E.compareTo(Ee.ONE)!=0&&E.compareTo(f)!=0){for(var M=1;M++<d&&E.compareTo(f)!=0;)if(E=E.modPowInt(2,this),E.compareTo(Ee.ONE)===0)return!1;if(E.compareTo(f)!=0)return!1}}return!0}Ee.prototype.copyTo=b7;Ee.prototype.fromInt=x7;Ee.prototype.fromString=_7;Ee.prototype.fromByteArray=E7;Ee.prototype.fromBuffer=S7;Ee.prototype.clamp=w7;Ee.prototype.dlShiftTo=M7;Ee.prototype.drShiftTo=R7;Ee.prototype.lShiftTo=N7;Ee.prototype.rShiftTo=D7;Ee.prototype.subTo=O7;Ee.prototype.multiplyTo=P7;Ee.prototype.squareTo=L7;Ee.prototype.divRemTo=k7;Ee.prototype.invDigit=H7;Ee.prototype.isEven=X7;Ee.prototype.exp=Q7;Ee.prototype.chunkSize=i9;Ee.prototype.toRadix=a9;Ee.prototype.fromRadix=s9;Ee.prototype.fromNumber=f9;Ee.prototype.bitwiseTo=d9;Ee.prototype.changeBit=B9;Ee.prototype.addTo=R9;Ee.prototype.dMultiply=F9;Ee.prototype.dAddOffset=q9;Ee.prototype.multiplyLowerTo=H9;Ee.prototype.multiplyUpperTo=G9;Ee.prototype.modInt=J9;Ee.prototype.millerRabin=iC;Ee.prototype.toString=C7;Ee.prototype.negate=A7;Ee.prototype.abs=B7;Ee.prototype.compareTo=I7;Ee.prototype.bitLength=T7;Ee.prototype.mod=U7;Ee.prototype.modPowInt=Z7;Ee.prototype.clone=J7;Ee.prototype.intValue=e9;Ee.prototype.byteValue=t9;Ee.prototype.shortValue=r9;Ee.prototype.signum=n9;Ee.prototype.toByteArray=o9;Ee.prototype.toBuffer=u9;Ee.prototype.equals=c9;Ee.prototype.min=h9;Ee.prototype.max=l9;Ee.prototype.and=v9;Ee.prototype.or=y9;Ee.prototype.xor=g9;Ee.prototype.andNot=m9;Ee.prototype.not=b9;Ee.prototype.shiftLeft=x9;Ee.prototype.shiftRight=_9;Ee.prototype.getLowestSetBit=S9;Ee.prototype.bitCount=C9;Ee.prototype.testBit=A9;Ee.prototype.setBit=I9;Ee.prototype.clearBit=T9;Ee.prototype.flipBit=M9;Ee.prototype.add=N9;Ee.prototype.subtract=D9;Ee.prototype.multiply=O9;Ee.prototype.divide=L9;Ee.prototype.remainder=k9;Ee.prototype.divideAndRemainder=U9;Ee.prototype.modPow=Q9;Ee.prototype.modInverse=eC;Ee.prototype.pow=$9;Ee.prototype.gcd=Z9;Ee.prototype.isProbablePrime=rC;Ee.int2char=vc;Ee.ZERO=vn(0);Ee.ONE=vn(1);Ee.prototype.square=P9;var G0=Ee,yu={exports:{}},Mh={exports:{}},ep=G0,la=_r(),ts=Ah,nC={md2:pe.Buffer.from("3020300c06082a864886f70d020205000410","hex"),md5:pe.Buffer.from("3020300c06082a864886f70d020505000410","hex"),sha1:pe.Buffer.from("3021300906052b0e03021a05000414","hex"),sha224:pe.Buffer.from("302d300d06096086480165030402040500041c","hex"),sha256:pe.Buffer.from("3031300d060960864801650304020105000420","hex"),sha384:pe.Buffer.from("3041300d060960864801650304020205000430","hex"),sha512:pe.Buffer.from("3051300d060960864801650304020305000440","hex"),ripemd160:pe.Buffer.from("3021300906052b2403020105000414","hex"),rmd160:pe.Buffer.from("3021300906052b2403020105000414","hex")},tp={ripemd160:"rmd160"},rp="sha256";Mh.exports={isEncryption:!0,isSignature:!0};Mh.exports.makeScheme=function(u,f){function d(_,x){this.key=_,this.options=x}return d.prototype.maxMessageLength=function(){return this.options.encryptionSchemeOptions&&this.options.encryptionSchemeOptions.padding==ts.RSA_NO_PADDING?this.key.encryptedDataLength:this.key.encryptedDataLength-11},d.prototype.encPad=function(_,x){x=x||{};var I;if(_.length>this.key.maxMessageLength)throw new Error("Message too long for RSA (n="+this.key.encryptedDataLength+", l="+_.length+")");if(this.options.encryptionSchemeOptions&&this.options.encryptionSchemeOptions.padding==ts.RSA_NO_PADDING)return I=pe.Buffer.alloc(this.key.maxMessageLength-_.length),I.fill(0),pe.Buffer.concat([I,_]);if(x.type===1)return I=pe.Buffer.alloc(this.key.encryptedDataLength-_.length-1),I.fill(255,0,I.length-1),I[0]=1,I[I.length-1]=0,pe.Buffer.concat([I,_]);I=pe.Buffer.alloc(this.key.encryptedDataLength-_.length),I[0]=0,I[1]=2;for(var E=la.randomBytes(I.length-3),M=0;M<E.length;M++){for(var S=E[M];S===0;)S=la.randomBytes(1)[0];I[M+2]=S}return I[I.length-1]=0,pe.Buffer.concat([I,_])},d.prototype.encUnPad=function(_,x){x=x||{};var I=0;if(this.options.encryptionSchemeOptions&&this.options.encryptionSchemeOptions.padding==ts.RSA_NO_PADDING){var E;return typeof _.lastIndexOf=="function"?E=_.slice(_.lastIndexOf("\0")+1,_.length):E=_.slice(String.prototype.lastIndexOf.call(_,"\0")+1,_.length),E}if(_.length<4)return null;if(x.type===1){if(_[0]!==0||_[1]!==1)return null;for(I=3;_[I]!==0;)if(_[I]!=255||++I>=_.length)return null}else{if(_[0]!==0||_[1]!==2)return null;for(I=3;_[I]!==0;)if(++I>=_.length)return null}return _.slice(I+1,_.length)},d.prototype.sign=function(_){var x=this.options.signingSchemeOptions.hash||rp;if(this.options.environment==="browser"){x=tp[x]||x;var I=la.createHash(x);I.update(_);var E=this.pkcs1pad(I.digest(),x),M=this.key.$doPrivate(new ep(E)).toBuffer(this.key.encryptedDataLength);return M}else{var S=la.createSign("RSA-"+x.toUpperCase());return S.update(_),S.sign(this.options.rsaUtils.exportKey("private"))}},d.prototype.verify=function(_,x,I){if(this.options.encryptionSchemeOptions&&this.options.encryptionSchemeOptions.padding==ts.RSA_NO_PADDING)return!1;var E=this.options.signingSchemeOptions.hash||rp;if(this.options.environment==="browser"){E=tp[E]||E,I&&(x=pe.Buffer.from(x,I));var M=la.createHash(E);M.update(_);var S=this.pkcs1pad(M.digest(),E),A=this.key.$doPublic(new ep(x));return A.toBuffer().toString("hex")==S.toString("hex")}else{var T=la.createVerify("RSA-"+E.toUpperCase());return T.update(_),T.verify(this.options.rsaUtils.exportKey("public"),x,I)}},d.prototype.pkcs0pad=function(_){var x=pe.Buffer.alloc(this.key.maxMessageLength-_.length);return x.fill(0),pe.Buffer.concat([x,_])},d.prototype.pkcs0unpad=function(_){var x;return typeof _.lastIndexOf=="function"?x=_.slice(_.lastIndexOf("\0")+1,_.length):x=_.slice(String.prototype.lastIndexOf.call(_,"\0")+1,_.length),x},d.prototype.pkcs1pad=function(_,x){var I=nC[x];if(!I)throw Error("Unsupported hash algorithm");var E=pe.Buffer.concat([I,_]);if(E.length+10>this.key.encryptedDataLength)throw Error("Key is too short for signing algorithm ("+x+")");var M=pe.Buffer.alloc(this.key.encryptedDataLength-E.length-1);M.fill(255,0,M.length-1),M[0]=1,M[M.length-1]=0;var S=pe.Buffer.concat([M,E]);return S},new d(u,f)};var aC=Mh.exports,Qy={exports:{}};(function(u){var f=_r();u.exports={isEncryption:!0,isSignature:!1},u.exports.digestLength={md4:16,md5:16,ripemd160:20,rmd160:20,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64};var d="sha1";u.exports.eme_oaep_mgf1=function(_,x,I){I=I||d;for(var E=u.exports.digestLength[I],M=Math.ceil(x/E),S=pe.Buffer.alloc(E*M),A=pe.Buffer.alloc(4),T=0;T<M;++T){var D=f.createHash(I);D.update(_),A.writeUInt32BE(T,0),D.update(A),D.digest().copy(S,T*E)}return S.slice(0,x)},u.exports.makeScheme=function(_,x){function I(E,M){this.key=E,this.options=M}return I.prototype.maxMessageLength=function(){return this.key.encryptedDataLength-2*u.exports.digestLength[this.options.encryptionSchemeOptions.hash||d]-2},I.prototype.encPad=function(E){var M=this.options.encryptionSchemeOptions.hash||d,S=this.options.encryptionSchemeOptions.mgf||u.exports.eme_oaep_mgf1,A=this.options.encryptionSchemeOptions.label||pe.Buffer.alloc(0),T=this.key.encryptedDataLength,D=u.exports.digestLength[M];if(E.length>T-2*D-2)throw new Error("Message is too long to encode into an encoded message with a length of "+T+" bytes, increaseemLen to fix this error (minimum value for given parameters and options: "+(T-2*D-2)+")");var O=f.createHash(M);O.update(A),O=O.digest();var j=pe.Buffer.alloc(T-E.length-2*D-1);j.fill(0),j[j.length-1]=1;for(var $=pe.Buffer.concat([O,j,E]),W=f.randomBytes(D),Q=S(W,$.length,M),X=0;X<$.length;X++)$[X]^=Q[X];for(Q=S($,D,M),X=0;X<W.length;X++)W[X]^=Q[X];var Y=pe.Buffer.alloc(1+W.length+$.length);return Y[0]=0,W.copy(Y,1),$.copy(Y,1+W.length),Y},I.prototype.encUnPad=function(E){var M=this.options.encryptionSchemeOptions.hash||d,S=this.options.encryptionSchemeOptions.mgf||u.exports.eme_oaep_mgf1,A=this.options.encryptionSchemeOptions.label||pe.Buffer.alloc(0),T=u.exports.digestLength[M];if(E.length<2*T+2)throw new Error("Error decoding message, the supplied message is not long enough to be a valid OAEP encoded message");for(var D=E.slice(1,T+1),O=E.slice(1+T),j=S(O,T,M),$=0;$<D.length;$++)D[$]^=j[$];for(j=S(D,O.length,M),$=0;$<O.length;$++)O[$]^=j[$];var W=f.createHash(M);W.update(A),W=W.digest();var Q=O.slice(0,T);if(Q.toString("hex")!=W.toString("hex"))throw new Error("Error decoding message, the lHash calculated from the label provided and the lHash in the encrypted data do not match.");for($=T;O[$++]===0&&$<O.length;);if(O[$-1]!=1)throw new Error("Error decoding message, there is no padding message separator byte");return O.slice($)},new I(_,x)}})(Qy);var sC=Qy.exports,rs={exports:{}},ip;function fC(){if(ip)return rs.exports;ip=1;var u=G0,f=_r();rs.exports={isEncryption:!1,isSignature:!0};var d="sha1",_=20;return rs.exports.makeScheme=function(x,I){var E=Za().pkcs1_oaep;function M(S,A){this.key=S,this.options=A}return M.prototype.sign=function(S){var A=f.createHash(this.options.signingSchemeOptions.hash||d);A.update(S);var T=this.emsa_pss_encode(A.digest(),this.key.keySize-1);return this.key.$doPrivate(new u(T)).toBuffer(this.key.encryptedDataLength)},M.prototype.verify=function(S,A,T){T&&(A=pe.Buffer.from(A,T)),A=new u(A);var D=Math.ceil((this.key.keySize-1)/8),O=this.key.$doPublic(A).toBuffer(D),j=f.createHash(this.options.signingSchemeOptions.hash||d);return j.update(S),this.emsa_pss_verify(j.digest(),O,this.key.keySize-1)},M.prototype.emsa_pss_encode=function(S,A){var T=this.options.signingSchemeOptions.hash||d,D=this.options.signingSchemeOptions.mgf||E.eme_oaep_mgf1,O=this.options.signingSchemeOptions.saltLength||_,j=E.digestLength[T],$=Math.ceil(A/8);if($<j+O+2)throw new Error("Output length passed to emBits("+A+") is too small for the options specified("+T+", "+O+"). To fix this issue increase the value of emBits. (minimum size: "+(8*j+8*O+9)+")");var W=f.randomBytes(O),Q=pe.Buffer.alloc(8+j+O);Q.fill(0,0,8),S.copy(Q,8),W.copy(Q,8+S.length);var X=f.createHash(T);X.update(Q),X=X.digest();var Y=pe.Buffer.alloc($-W.length-j-2);Y.fill(0);var ie=pe.Buffer.alloc(Y.length+1+W.length);Y.copy(ie),ie[Y.length]=1,W.copy(ie,Y.length+1);for(var oe=D(X,ie.length,T),ge=pe.Buffer.alloc(ie.length),be=0;be<oe.length;be++)ge[be]=ie[be]^oe[be];var ze=8*$-A,de=255^255>>8-ze<<8-ze;ge[0]=ge[0]&de;var Ce=pe.Buffer.alloc(ge.length+X.length+1);return ge.copy(Ce,0),X.copy(Ce,ge.length),Ce[Ce.length-1]=188,Ce},M.prototype.emsa_pss_verify=function(S,A,T){var D=this.options.signingSchemeOptions.hash||d,O=this.options.signingSchemeOptions.mgf||E.eme_oaep_mgf1,j=this.options.signingSchemeOptions.saltLength||_,$=E.digestLength[D],W=Math.ceil(T/8);if(W<$+j+2||A[A.length-1]!=188)return!1;var Q=pe.Buffer.alloc(W-$-1);A.copy(Q,0,0,W-$-1);for(var X=0,Y=0,ie=8*W-T;Y<ie;Y++)X|=1<<7-Y;if(Q[0]&X)return!1;var oe=A.slice(W-$-1,W-1),ge=O(oe,Q.length,D);for(Y=0;Y<Q.length;Y++)Q[Y]^=ge[Y];for(ie=8*W-T,X=255^255>>8-ie<<8-ie,Q[0]=Q[0]&X,Y=0;Q[Y]===0&&Y<Q.length;Y++);if(Q[Y]!=1)return!1;var be=Q.slice(Q.length-j),ze=pe.Buffer.alloc(8+$+j);ze.fill(0,0,8),S.copy(ze,8),be.copy(ze,8+S.length);var de=f.createHash(D);return de.update(ze),de=de.digest(),oe.toString("hex")===de.toString("hex")},new M(x,I)},rs.exports}var np;function Za(){return np||(np=1,function(u){u.exports={pkcs1:aC,pkcs1_oaep:sC,pss:fC(),isEncryption:function(f){return u.exports[f]&&u.exports[f].isEncryption},isSignature:function(f){return u.exports[f]&&u.exports[f].isSignature}}}(yu)),yu.exports}var gu,ap;function Zy(){if(ap)return gu;ap=1;var u=G0,f=Za();return gu=function(d,_){var x=f.pkcs1.makeScheme(d,_);return{encrypt:function(I,E){var M,S;return E?(M=new u(x.encPad(I,{type:1})),S=d.$doPrivate(M)):(M=new u(d.encryptionScheme.encPad(I)),S=d.$doPublic(M)),S.toBuffer(d.encryptedDataLength)},decrypt:function(I,E){var M,S=new u(I);return E?(M=d.$doPublic(S),x.encUnPad(M.toBuffer(d.encryptedDataLength),{type:1})):(M=d.$doPrivate(S),d.encryptionScheme.encUnPad(M.toBuffer(d.encryptedDataLength)))}}},gu}var mu,sp;function oC(){if(sp)return mu;sp=1;var u=_r(),f=Ah,d=Za();return mu=function(_,x){var I=d.pkcs1.makeScheme(_,x);return{encrypt:function(E,M){var S;if(M)return S=f.RSA_PKCS1_PADDING,x.encryptionSchemeOptions&&x.encryptionSchemeOptions.padding&&(S=x.encryptionSchemeOptions.padding),u.privateEncrypt({key:x.rsaUtils.exportKey("private"),padding:S},E);S=f.RSA_PKCS1_OAEP_PADDING,x.encryptionScheme==="pkcs1"&&(S=f.RSA_PKCS1_PADDING),x.encryptionSchemeOptions&&x.encryptionSchemeOptions.padding&&(S=x.encryptionSchemeOptions.padding);var A=E;return S===f.RSA_NO_PADDING&&(A=I.pkcs0pad(E)),u.publicEncrypt({key:x.rsaUtils.exportKey("public"),padding:S},A)},decrypt:function(E,M){var S;if(M)return S=f.RSA_PKCS1_PADDING,x.encryptionSchemeOptions&&x.encryptionSchemeOptions.padding&&(S=x.encryptionSchemeOptions.padding),u.publicDecrypt({key:x.rsaUtils.exportKey("public"),padding:S},E);S=f.RSA_PKCS1_OAEP_PADDING,x.encryptionScheme==="pkcs1"&&(S=f.RSA_PKCS1_PADDING),x.encryptionSchemeOptions&&x.encryptionSchemeOptions.padding&&(S=x.encryptionSchemeOptions.padding);var A=u.privateDecrypt({key:x.rsaUtils.exportKey("private"),padding:S},E);return S===f.RSA_NO_PADDING?I.pkcs0unpad(A):A}}},mu}var bu,fp;function uC(){if(fp)return bu;fp=1;var u=_r(),f=Ah,d=Za();return bu=function(_,x){var I=Zy()(_,x),E=d.pkcs1.makeScheme(_,x);return{encrypt:function(M,S){if(S)return I.encrypt(M,S);var A=f.RSA_PKCS1_OAEP_PADDING;x.encryptionScheme==="pkcs1"&&(A=f.RSA_PKCS1_PADDING),x.encryptionSchemeOptions&&x.encryptionSchemeOptions.padding&&(A=x.encryptionSchemeOptions.padding);var T=M;return A===f.RSA_NO_PADDING&&(T=E.pkcs0pad(M)),u.publicEncrypt({key:x.rsaUtils.exportKey("public"),padding:A},T)},decrypt:function(M,S){if(S)return I.decrypt(M,S);var A=f.RSA_PKCS1_OAEP_PADDING;x.encryptionScheme==="pkcs1"&&(A=f.RSA_PKCS1_PADDING),x.encryptionSchemeOptions&&x.encryptionSchemeOptions.padding&&(A=x.encryptionSchemeOptions.padding);var T=u.privateDecrypt({key:x.rsaUtils.exportKey("private"),padding:A},M);return A===f.RSA_NO_PADDING?E.pkcs0unpad(T):T}}},bu}var is=_r(),cC={getEngine:function(u,f){var d=Zy();return f.environment==="node"&&typeof is.publicEncrypt=="function"&&typeof is.privateDecrypt=="function"&&(typeof is.privateEncrypt=="function"&&typeof is.publicDecrypt=="function"?d=oC():d=uC()),d(u,f)}},ns=tr._;_r();var zt=G0,op=tr,up=Za(),hC=cC;Bh.BigInteger=zt;Bh.Key=function(){function u(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return u.prototype.setOptions=function(f){var d=up[f.signingScheme],_=up[f.encryptionScheme];d===_?this.signingScheme=this.encryptionScheme=_.makeScheme(this,f):(this.encryptionScheme=_.makeScheme(this,f),this.signingScheme=d.makeScheme(this,f)),this.encryptEngine=hC.getEngine(this,f)},u.prototype.generate=function(f,d){var _=f>>1;this.e=parseInt(d,16);for(var x=new zt(d,16);;){for(;this.p=new zt(f-_,1),!(this.p.subtract(zt.ONE).gcd(x).compareTo(zt.ONE)===0&&this.p.isProbablePrime(10)););for(;this.q=new zt(_,1),!(this.q.subtract(zt.ONE).gcd(x).compareTo(zt.ONE)===0&&this.q.isProbablePrime(10)););if(this.p.compareTo(this.q)<=0){var I=this.p;this.p=this.q,this.q=I}var E=this.p.subtract(zt.ONE),M=this.q.subtract(zt.ONE),S=E.multiply(M);if(S.gcd(x).compareTo(zt.ONE)===0){if(this.n=this.p.multiply(this.q),this.n.bitLength()<f)continue;this.d=x.modInverse(S),this.dmp1=this.d.mod(E),this.dmq1=this.d.mod(M),this.coeff=this.q.modInverse(this.p);break}}this.$$recalculateCache()},u.prototype.setPrivate=function(f,d,_,x,I,E,M,S){if(f&&d&&_&&f.length>0&&(ns.isNumber(d)||d.length>0)&&_.length>0)this.n=new zt(f),this.e=ns.isNumber(d)?d:op.get32IntFromBuffer(d,0),this.d=new zt(_),x&&I&&E&&M&&S&&(this.p=new zt(x),this.q=new zt(I),this.dmp1=new zt(E),this.dmq1=new zt(M),this.coeff=new zt(S)),this.$$recalculateCache();else throw Error("Invalid RSA private key")},u.prototype.setPublic=function(f,d){if(f&&d&&f.length>0&&(ns.isNumber(d)||d.length>0))this.n=new zt(f),this.e=ns.isNumber(d)?d:op.get32IntFromBuffer(d,0),this.$$recalculateCache();else throw Error("Invalid RSA public key")},u.prototype.$doPrivate=function(f){if(this.p||this.q)return f.modPow(this.d,this.n);for(var d=f.mod(this.p).modPow(this.dmp1,this.p),_=f.mod(this.q).modPow(this.dmq1,this.q);d.compareTo(_)<0;)d=d.add(this.p);return d.subtract(_).multiply(this.coeff).mod(this.p).multiply(this.q).add(_)},u.prototype.$doPublic=function(f){return f.modPowInt(this.e,this.n)},u.prototype.encrypt=function(f,d){var _=[],x=[],I=f.length,E=Math.ceil(I/this.maxMessageLength)||1,M=Math.ceil(I/E||1);if(E==1)_.push(f);else for(var S=0;S<E;S++)_.push(f.slice(S*M,(S+1)*M));for(var A=0;A<_.length;A++)x.push(this.encryptEngine.encrypt(_[A],d));return pe.Buffer.concat(x)},u.prototype.decrypt=function(f,d){if(f.length%this.encryptedDataLength>0)throw Error("Incorrect data or key");for(var _=[],x=0,I=0,E=f.length/this.encryptedDataLength,M=0;M<E;M++)x=M*this.encryptedDataLength,I=x+this.encryptedDataLength,_.push(this.encryptEngine.decrypt(f.slice(x,Math.min(I,f.length)),d));return pe.Buffer.concat(_)},u.prototype.sign=function(f){return this.signingScheme.sign.apply(this.signingScheme,arguments)},u.prototype.verify=function(f,d,_){return this.signingScheme.verify.apply(this.signingScheme,arguments)},u.prototype.isPrivate=function(){return this.n&&this.e&&this.d&&!0||!1},u.prototype.isPublic=function(f){return this.n&&this.e&&!(f&&this.d)||!1},Object.defineProperty(u.prototype,"keySize",{get:function(){return this.cache.keyBitLength}}),Object.defineProperty(u.prototype,"encryptedDataLength",{get:function(){return this.cache.keyByteLength}}),Object.defineProperty(u.prototype,"maxMessageLength",{get:function(){return this.encryptionScheme.maxMessageLength()}}),u.prototype.$$recalculateCache=function(){this.cache=this.cache||{},this.cache.keyBitLength=this.n.bitLength(),this.cache.keyByteLength=this.cache.keyBitLength+6>>3},u}();var Jy={exports:{}},Rh={newInvalidAsn1Error:function(u){var f=new Error;return f.name="InvalidAsn1Error",f.message=u||"",f}},Nh={EOC:0,Boolean:1,Integer:2,BitString:3,OctetString:4,Null:5,OID:6,ObjectDescriptor:7,External:8,Real:9,Enumeration:10,PDV:11,Utf8String:12,RelativeOID:13,Sequence:16,Set:17,NumericString:18,PrintableString:19,T61String:20,VideotexString:21,IA5String:22,UTCTime:23,GeneralizedTime:24,GraphicString:25,VisibleString:26,GeneralString:28,UniversalString:29,CharacterString:30,BMPString:31,Constructor:32,Context:128},xu={exports:{}},_u={},cp;function e2(){if(cp)return _u;cp=1;function u(W){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?u=function(Q){return typeof Q}:u=function(Q){return Q&&typeof Symbol=="function"&&Q.constructor===Symbol&&Q!==Symbol.prototype?"symbol":typeof Q},u(W)}function f(W,Q){if(!(W instanceof Q))throw new TypeError("Cannot call a class as a function")}function d(W,Q){return Q&&(u(Q)==="object"||typeof Q=="function")?Q:_(W)}function _(W){if(W===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return W}function x(W){return x=Object.setPrototypeOf?Object.getPrototypeOf:function(Q){return Q.__proto__||Object.getPrototypeOf(Q)},x(W)}function I(W,Q){if(typeof Q!="function"&&Q!==null)throw new TypeError("Super expression must either be null or a function");W.prototype=Object.create(Q&&Q.prototype,{constructor:{value:W,writable:!0,configurable:!0}}),Q&&E(W,Q)}function E(W,Q){return E=Object.setPrototypeOf||function(X,Y){return X.__proto__=Y,X},E(W,Q)}var M={},S,A;function T(W,Q,X){X||(X=Error);function Y(oe,ge,be){return typeof Q=="string"?Q:Q(oe,ge,be)}var ie=function(oe){I(ge,oe);function ge(be,ze,de){var Ce;return f(this,ge),Ce=d(this,x(ge).call(this,Y(be,ze,de))),Ce.code=W,Ce}return ge}(X);M[W]=ie}function D(W,Q){if(Array.isArray(W)){var X=W.length;return W=W.map(function(Y){return String(Y)}),X>2?"one of ".concat(Q," ").concat(W.slice(0,X-1).join(", "),", or ")+W[X-1]:X===2?"one of ".concat(Q," ").concat(W[0]," or ").concat(W[1]):"of ".concat(Q," ").concat(W[0])}else return"of ".concat(Q," ").concat(String(W))}function O(W,Q,X){return W.substr(!X||X<0?0:+X,Q.length)===Q}function j(W,Q,X){return(X===void 0||X>W.length)&&(X=W.length),W.substring(X-Q.length,X)===Q}function $(W,Q,X){return typeof X!="number"&&(X=0),X+Q.length>W.length?!1:W.indexOf(Q,X)!==-1}return T("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),T("ERR_INVALID_ARG_TYPE",function(W,Q,X){S===void 0&&(S=Os()),S(typeof W=="string","'name' must be a string");var Y;typeof Q=="string"&&O(Q,"not ")?(Y="must not be",Q=Q.replace(/^not /,"")):Y="must be";var ie;if(j(W," argument"))ie="The ".concat(W," ").concat(Y," ").concat(D(Q,"type"));else{var oe=$(W,".")?"property":"argument";ie='The "'.concat(W,'" ').concat(oe," ").concat(Y," ").concat(D(Q,"type"))}return ie+=". Received type ".concat(u(X)),ie},TypeError),T("ERR_INVALID_ARG_VALUE",function(W,Q){var X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";A===void 0&&(A=wn);var Y=A.inspect(Q);return Y.length>128&&(Y="".concat(Y.slice(0,128),"...")),"The argument '".concat(W,"' ").concat(X,". Received ").concat(Y)},TypeError),T("ERR_INVALID_RETURN_VALUE",function(W,Q,X){var Y;return X&&X.constructor&&X.constructor.name?Y="instance of ".concat(X.constructor.name):Y="type ".concat(u(X)),"Expected ".concat(W,' to be returned from the "').concat(Q,'"')+" function but got ".concat(Y,".")},TypeError),T("ERR_MISSING_ARGS",function(){for(var W=arguments.length,Q=new Array(W),X=0;X<W;X++)Q[X]=arguments[X];S===void 0&&(S=Os()),S(Q.length>0,"At least one arg needs to be specified");var Y="The ",ie=Q.length;switch(Q=Q.map(function(oe){return'"'.concat(oe,'"')}),ie){case 1:Y+="".concat(Q[0]," argument");break;case 2:Y+="".concat(Q[0]," and ").concat(Q[1]," arguments");break;default:Y+=Q.slice(0,ie-1).join(", "),Y+=", and ".concat(Q[ie-1]," arguments");break}return"".concat(Y," must be specified")},TypeError),_u.codes=M,_u}var Eu,hp;function lC(){if(hp)return Eu;hp=1;function u(B){for(var z=1;z<arguments.length;z++){var ee=arguments[z]!=null?arguments[z]:{},H=Object.keys(ee);typeof Object.getOwnPropertySymbols=="function"&&(H=H.concat(Object.getOwnPropertySymbols(ee).filter(function(q){return Object.getOwnPropertyDescriptor(ee,q).enumerable}))),H.forEach(function(q){f(B,q,ee[q])})}return B}function f(B,z,ee){return z in B?Object.defineProperty(B,z,{value:ee,enumerable:!0,configurable:!0,writable:!0}):B[z]=ee,B}function d(B,z){if(!(B instanceof z))throw new TypeError("Cannot call a class as a function")}function _(B,z){for(var ee=0;ee<z.length;ee++){var H=z[ee];H.enumerable=H.enumerable||!1,H.configurable=!0,"value"in H&&(H.writable=!0),Object.defineProperty(B,H.key,H)}}function x(B,z,ee){return z&&_(B.prototype,z),ee&&_(B,ee),B}function I(B,z){return z&&($(z)==="object"||typeof z=="function")?z:E(B)}function E(B){if(B===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return B}function M(B,z){if(typeof z!="function"&&z!==null)throw new TypeError("Super expression must either be null or a function");B.prototype=Object.create(z&&z.prototype,{constructor:{value:B,writable:!0,configurable:!0}}),z&&O(B,z)}function S(B){var z=typeof Map=="function"?new Map:void 0;return S=function(ee){if(ee===null||!D(ee))return ee;if(typeof ee!="function")throw new TypeError("Super expression must either be null or a function");if(typeof z<"u"){if(z.has(ee))return z.get(ee);z.set(ee,H)}function H(){return T(ee,arguments,j(this).constructor)}return H.prototype=Object.create(ee.prototype,{constructor:{value:H,enumerable:!1,writable:!0,configurable:!0}}),O(H,ee)},S(B)}function A(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function T(B,z,ee){return A()?T=Reflect.construct:T=function(H,q,J){var U=[null];U.push.apply(U,q);var Z=Function.bind.apply(H,U),ve=new Z;return J&&O(ve,J.prototype),ve},T.apply(null,arguments)}function D(B){return Function.toString.call(B).indexOf("[native code]")!==-1}function O(B,z){return O=Object.setPrototypeOf||function(ee,H){return ee.__proto__=H,ee},O(B,z)}function j(B){return j=Object.setPrototypeOf?Object.getPrototypeOf:function(z){return z.__proto__||Object.getPrototypeOf(z)},j(B)}function $(B){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?$=function(z){return typeof z}:$=function(z){return z&&typeof Symbol=="function"&&z.constructor===Symbol&&z!==Symbol.prototype?"symbol":typeof z},$(B)}var W=wn,Q=W.inspect,X=e2(),Y=X.codes.ERR_INVALID_ARG_TYPE;function ie(B,z,ee){return(ee===void 0||ee>B.length)&&(ee=B.length),B.substring(ee-z.length,ee)===z}function oe(B,z){if(z=Math.floor(z),B.length==0||z==0)return"";var ee=B.length*z;for(z=Math.floor(Math.log(z)/Math.log(2));z;)B+=B,z--;return B+=B.substring(0,ee-B.length),B}var ge="",be="",ze="",de="",Ce={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},ke=10;function le(B){var z=Object.keys(B),ee=Object.create(Object.getPrototypeOf(B));return z.forEach(function(H){ee[H]=B[H]}),Object.defineProperty(ee,"message",{value:B.message}),ee}function re(B){return Q(B,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function P(B,z,ee){var H="",q="",J=0,U="",Z=!1,ve=re(B),Ye=ve.split(`
`),rt=re(z).split(`
`),Ue=0,Qe="";if(ee==="strictEqual"&&$(B)==="object"&&$(z)==="object"&&B!==null&&z!==null&&(ee="strictEqualObject"),Ye.length===1&&rt.length===1&&Ye[0]!==rt[0]){var vt=Ye[0].length+rt[0].length;if(vt<=ke){if(($(B)!=="object"||B===null)&&($(z)!=="object"||z===null)&&(B!==0||z!==0))return"".concat(Ce[ee],`

`)+"".concat(Ye[0]," !== ").concat(rt[0],`
`)}else if(ee!=="strictEqualObject"){var ri=Ve.stderr&&Ve.stderr.isTTY?Ve.stderr.columns:80;if(vt<ri){for(;Ye[0][Ue]===rt[0][Ue];)Ue++;Ue>2&&(Qe=`
  `.concat(oe(" ",Ue),"^"),Ue=0)}}}for(var ci=Ye[Ye.length-1],tt=rt[rt.length-1];ci===tt&&(Ue++<2?U=`
  `.concat(ci).concat(U):H=ci,Ye.pop(),rt.pop(),!(Ye.length===0||rt.length===0));)ci=Ye[Ye.length-1],tt=rt[rt.length-1];var et=Math.max(Ye.length,rt.length);if(et===0){var $e=ve.split(`
`);if($e.length>30)for($e[26]="".concat(ge,"...").concat(de);$e.length>27;)$e.pop();return"".concat(Ce.notIdentical,`

`).concat($e.join(`
`),`
`)}Ue>3&&(U=`
`.concat(ge,"...").concat(de).concat(U),Z=!0),H!==""&&(U=`
  `.concat(H).concat(U),H="");var Le=0,ot=Ce[ee]+`
`.concat(be,"+ actual").concat(de," ").concat(ze,"- expected").concat(de),Oe=" ".concat(ge,"...").concat(de," Lines skipped");for(Ue=0;Ue<et;Ue++){var Ne=Ue-J;if(Ye.length<Ue+1)Ne>1&&Ue>2&&(Ne>4?(q+=`
`.concat(ge,"...").concat(de),Z=!0):Ne>3&&(q+=`
  `.concat(rt[Ue-2]),Le++),q+=`
  `.concat(rt[Ue-1]),Le++),J=Ue,H+=`
`.concat(ze,"-").concat(de," ").concat(rt[Ue]),Le++;else if(rt.length<Ue+1)Ne>1&&Ue>2&&(Ne>4?(q+=`
`.concat(ge,"...").concat(de),Z=!0):Ne>3&&(q+=`
  `.concat(Ye[Ue-2]),Le++),q+=`
  `.concat(Ye[Ue-1]),Le++),J=Ue,q+=`
`.concat(be,"+").concat(de," ").concat(Ye[Ue]),Le++;else{var Fe=rt[Ue],Je=Ye[Ue],Dt=Je!==Fe&&(!ie(Je,",")||Je.slice(0,-1)!==Fe);Dt&&ie(Fe,",")&&Fe.slice(0,-1)===Je&&(Dt=!1,Je+=","),Dt?(Ne>1&&Ue>2&&(Ne>4?(q+=`
`.concat(ge,"...").concat(de),Z=!0):Ne>3&&(q+=`
  `.concat(Ye[Ue-2]),Le++),q+=`
  `.concat(Ye[Ue-1]),Le++),J=Ue,q+=`
`.concat(be,"+").concat(de," ").concat(Je),H+=`
`.concat(ze,"-").concat(de," ").concat(Fe),Le+=2):(q+=H,H="",(Ne===1||Ue===0)&&(q+=`
  `.concat(Je),Le++))}if(Le>20&&Ue<et-2)return"".concat(ot).concat(Oe,`
`).concat(q,`
`).concat(ge,"...").concat(de).concat(H,`
`)+"".concat(ge,"...").concat(de)}return"".concat(ot).concat(Z?Oe:"",`
`).concat(q).concat(H).concat(U).concat(Qe)}var k=function(B){M(z,B);function z(ee){var H;if(d(this,z),$(ee)!=="object"||ee===null)throw new Y("options","Object",ee);var q=ee.message,J=ee.operator,U=ee.stackStartFn,Z=ee.actual,ve=ee.expected,Ye=Error.stackTraceLimit;if(Error.stackTraceLimit=0,q!=null)H=I(this,j(z).call(this,String(q)));else if(Ve.stderr&&Ve.stderr.isTTY&&(Ve.stderr&&Ve.stderr.getColorDepth&&Ve.stderr.getColorDepth()!==1?(ge="\x1B[34m",be="\x1B[32m",de="\x1B[39m",ze="\x1B[31m"):(ge="",be="",de="",ze="")),$(Z)==="object"&&Z!==null&&$(ve)==="object"&&ve!==null&&"stack"in Z&&Z instanceof Error&&"stack"in ve&&ve instanceof Error&&(Z=le(Z),ve=le(ve)),J==="deepStrictEqual"||J==="strictEqual")H=I(this,j(z).call(this,P(Z,ve,J)));else if(J==="notDeepStrictEqual"||J==="notStrictEqual"){var rt=Ce[J],Ue=re(Z).split(`
`);if(J==="notStrictEqual"&&$(Z)==="object"&&Z!==null&&(rt=Ce.notStrictEqualObject),Ue.length>30)for(Ue[26]="".concat(ge,"...").concat(de);Ue.length>27;)Ue.pop();Ue.length===1?H=I(this,j(z).call(this,"".concat(rt," ").concat(Ue[0]))):H=I(this,j(z).call(this,"".concat(rt,`

`).concat(Ue.join(`
`),`
`)))}else{var Qe=re(Z),vt="",ri=Ce[J];J==="notDeepEqual"||J==="notEqual"?(Qe="".concat(Ce[J],`

`).concat(Qe),Qe.length>1024&&(Qe="".concat(Qe.slice(0,1021),"..."))):(vt="".concat(re(ve)),Qe.length>512&&(Qe="".concat(Qe.slice(0,509),"...")),vt.length>512&&(vt="".concat(vt.slice(0,509),"...")),J==="deepEqual"||J==="equal"?Qe="".concat(ri,`

`).concat(Qe,`

should equal

`):vt=" ".concat(J," ").concat(vt)),H=I(this,j(z).call(this,"".concat(Qe).concat(vt)))}return Error.stackTraceLimit=Ye,H.generatedMessage=!q,Object.defineProperty(E(H),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),H.code="ERR_ASSERTION",H.actual=Z,H.expected=ve,H.operator=J,Error.captureStackTrace&&Error.captureStackTrace(E(H),U),H.stack,H.name="AssertionError",I(H)}return x(z,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:Q.custom,value:function(ee,H){return Q(this,u({},H,{customInspect:!1,depth:0}))}}]),z}(S(Error));return Eu=k,Eu}var Su,lp;function dC(){if(lp)return Su;lp=1;function u(d,_){if(d==null)throw new TypeError("Cannot convert first argument to object");for(var x=Object(d),I=1;I<arguments.length;I++){var E=arguments[I];if(E!=null)for(var M=Object.keys(Object(E)),S=0,A=M.length;S<A;S++){var T=M[S],D=Object.getOwnPropertyDescriptor(E,T);D!==void 0&&D.enumerable&&(x[T]=E[T])}}return x}function f(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:u})}return Su={assign:u,polyfill:f},Su}var wu,dp;function t2(){if(dp)return wu;dp=1;var u=Object.prototype.toString;return wu=function(f){var d=u.call(f),_=d==="[object Arguments]";return _||(_=d!=="[object Array]"&&f!==null&&typeof f=="object"&&typeof f.length=="number"&&f.length>=0&&u.call(f.callee)==="[object Function]"),_},wu}var Cu,pp;function pC(){if(pp)return Cu;pp=1;var u;if(!Object.keys){var f=Object.prototype.hasOwnProperty,d=Object.prototype.toString,_=t2(),x=Object.prototype.propertyIsEnumerable,I=!x.call({toString:null},"toString"),E=x.call(function(){},"prototype"),M=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],S=function(O){var j=O.constructor;return j&&j.prototype===O},A={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},T=function(){if(typeof window>"u")return!1;for(var O in window)try{if(!A["$"+O]&&f.call(window,O)&&window[O]!==null&&typeof window[O]=="object")try{S(window[O])}catch{return!0}}catch{return!0}return!1}(),D=function(O){if(typeof window>"u"||!T)return S(O);try{return S(O)}catch{return!1}};u=function(O){var j=O!==null&&typeof O=="object",$=d.call(O)==="[object Function]",W=_(O),Q=j&&d.call(O)==="[object String]",X=[];if(!j&&!$&&!W)throw new TypeError("Object.keys called on a non-object");var Y=E&&$;if(Q&&O.length>0&&!f.call(O,0))for(var ie=0;ie<O.length;++ie)X.push(String(ie));if(W&&O.length>0)for(var oe=0;oe<O.length;++oe)X.push(String(oe));else for(var ge in O)!(Y&&ge==="prototype")&&f.call(O,ge)&&X.push(String(ge));if(I)for(var be=D(O),ze=0;ze<M.length;++ze)!(be&&M[ze]==="constructor")&&f.call(O,M[ze])&&X.push(M[ze]);return X}}return Cu=u,Cu}var Au,vp;function vC(){if(vp)return Au;vp=1;var u=Array.prototype.slice,f=t2(),d=Object.keys,_=d?function(I){return d(I)}:pC(),x=Object.keys;return _.shim=function(){if(Object.keys){var I=function(){var E=Object.keys(arguments);return E&&E.length===arguments.length}(1,2);I||(Object.keys=function(E){return f(E)?x(u.call(E)):x(E)})}else Object.keys=_;return Object.keys||_},Au=_,Au}var Bu,yp;function yC(){if(yp)return Bu;yp=1;var u=Ws(),f=u("%Object.defineProperty%",!0),d=function(){if(f)try{return f({},"a",{value:1}),!0}catch{return!1}return!1};return d.hasArrayLengthDefineBug=function(){if(!d())return null;try{return f([],"length",{value:1}).length!==1}catch{return!0}},Bu=d,Bu}var Iu,gp;function Rf(){if(gp)return Iu;gp=1;var u=vC(),f=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",d=Object.prototype.toString,_=Array.prototype.concat,x=Object.defineProperty,I=function(T){return typeof T=="function"&&d.call(T)==="[object Function]"},E=yC()(),M=x&&E,S=function(T,D,O,j){if(D in T){if(j===!0){if(T[D]===O)return}else if(!I(j)||!j())return}M?x(T,D,{configurable:!0,enumerable:!1,value:O,writable:!0}):T[D]=O},A=function(T,D){var O=arguments.length>2?arguments[2]:{},j=u(D);f&&(j=_.call(j,Object.getOwnPropertySymbols(D)));for(var $=0;$<j.length;$+=1)S(T,j[$],D[j[$]],O[j[$]])};return A.supportsDescriptors=!!M,Iu=A,Iu}var Tu,mp;function r2(){if(mp)return Tu;mp=1;var u=function(f){return f!==f};return Tu=function(f,d){return f===0&&d===0?1/f===1/d:!!(f===d||u(f)&&u(d))},Tu}var Mu,bp;function i2(){if(bp)return Mu;bp=1;var u=r2();return Mu=function(){return typeof Object.is=="function"?Object.is:u},Mu}var Ru,xp;function gC(){if(xp)return Ru;xp=1;var u=i2(),f=Rf();return Ru=function(){var d=u();return f(Object,{is:d},{is:function(){return Object.is!==d}}),d},Ru}var Nu,_p;function n2(){if(_p)return Nu;_p=1;var u=Rf(),f=Ys(),d=r2(),_=i2(),x=gC(),I=f(_(),Object);return u(I,{getPolyfill:_,implementation:d,shim:x}),Nu=I,Nu}var Du,Ep;function a2(){return Ep||(Ep=1,Du=function(u){return u!==u}),Du}var Ou,Sp;function s2(){if(Sp)return Ou;Sp=1;var u=a2();return Ou=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:u},Ou}var Pu,wp;function mC(){if(wp)return Pu;wp=1;var u=Rf(),f=s2();return Pu=function(){var d=f();return u(Number,{isNaN:d},{isNaN:function(){return Number.isNaN!==d}}),d},Pu}var Lu,Cp;function bC(){if(Cp)return Lu;Cp=1;var u=Ys(),f=Rf(),d=a2(),_=s2(),x=mC(),I=u(_(),Number);return f(I,{getPolyfill:_,implementation:d,shim:x}),Lu=I,Lu}var ku,Ap;function xC(){if(Ap)return ku;Ap=1;function u(Bt,li){return _(Bt)||d(Bt,li)||f()}function f(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function d(Bt,li){var ii=[],Ot=!0,St=!1,pi=void 0;try{for(var eM=Bt[Symbol.iterator](),hi;!(Ot=(hi=eM.next()).done)&&(ii.push(hi.value),!(li&&ii.length===li));Ot=!0);}catch(mi){St=!0,pi=mi}finally{try{!Ot&&eM.return!=null&&eM.return()}finally{if(St)throw pi}}return ii}function _(Bt){if(Array.isArray(Bt))return Bt}function x(Bt){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?x=function(li){return typeof li}:x=function(li){return li&&typeof Symbol=="function"&&li.constructor===Symbol&&li!==Symbol.prototype?"symbol":typeof li},x(Bt)}var I=/a/g.flags!==void 0,E=function(Bt){var li=[];return Bt.forEach(function(ii){return li.push(ii)}),li},M=function(Bt){var li=[];return Bt.forEach(function(ii,Ot){return li.push([Ot,ii])}),li},S=Object.is?Object.is:n2(),A=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},T=Number.isNaN?Number.isNaN:bC();function D(Bt){return Bt.call.bind(Bt)}var O=D(Object.prototype.hasOwnProperty),j=D(Object.prototype.propertyIsEnumerable),$=D(Object.prototype.toString),W=wn.types,Q=W.isAnyArrayBuffer,X=W.isArrayBufferView,Y=W.isDate,ie=W.isMap,oe=W.isRegExp,ge=W.isSet,be=W.isNativeError,ze=W.isBoxedPrimitive,de=W.isNumberObject,Ce=W.isStringObject,ke=W.isBooleanObject,le=W.isBigIntObject,re=W.isSymbolObject,P=W.isFloat32Array,k=W.isFloat64Array;function B(Bt){if(Bt.length===0||Bt.length>10)return!0;for(var li=0;li<Bt.length;li++){var ii=Bt.charCodeAt(li);if(ii<48||ii>57)return!0}return Bt.length===10&&Bt>=Math.pow(2,32)}function z(Bt){return Object.keys(Bt).filter(B).concat(A(Bt).filter(Object.prototype.propertyIsEnumerable.bind(Bt)))}/*!
* The buffer module from node.js, for the browser.
*
* @author   Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
* @license  MIT
*/function ee(Bt,li){if(Bt===li)return 0;for(var ii=Bt.length,Ot=li.length,St=0,pi=Math.min(ii,Ot);St<pi;++St)if(Bt[St]!==li[St]){ii=Bt[St],Ot=li[St];break}return ii<Ot?-1:Ot<ii?1:0}var H=!0,q=!1,J=0,U=1,Z=2,ve=3;function Ye(Bt,li){return I?Bt.source===li.source&&Bt.flags===li.flags:RegExp.prototype.toString.call(Bt)===RegExp.prototype.toString.call(li)}function rt(Bt,li){if(Bt.byteLength!==li.byteLength)return!1;for(var ii=0;ii<Bt.byteLength;ii++)if(Bt[ii]!==li[ii])return!1;return!0}function Ue(Bt,li){return Bt.byteLength!==li.byteLength?!1:ee(new Uint8Array(Bt.buffer,Bt.byteOffset,Bt.byteLength),new Uint8Array(li.buffer,li.byteOffset,li.byteLength))===0}function Qe(Bt,li){return Bt.byteLength===li.byteLength&&ee(new Uint8Array(Bt),new Uint8Array(li))===0}function vt(Bt,li){return de(Bt)?de(li)&&S(Number.prototype.valueOf.call(Bt),Number.prototype.valueOf.call(li)):Ce(Bt)?Ce(li)&&String.prototype.valueOf.call(Bt)===String.prototype.valueOf.call(li):ke(Bt)?ke(li)&&Boolean.prototype.valueOf.call(Bt)===Boolean.prototype.valueOf.call(li):le(Bt)?le(li)&&BigInt.prototype.valueOf.call(Bt)===BigInt.prototype.valueOf.call(li):re(li)&&Symbol.prototype.valueOf.call(Bt)===Symbol.prototype.valueOf.call(li)}function ri(Bt,li,ii,Ot){if(Bt===li)return Bt!==0?!0:ii?S(Bt,li):!0;if(ii){if(x(Bt)!=="object")return typeof Bt=="number"&&T(Bt)&&T(li);if(x(li)!=="object"||Bt===null||li===null||Object.getPrototypeOf(Bt)!==Object.getPrototypeOf(li))return!1}else{if(Bt===null||x(Bt)!=="object")return li===null||x(li)!=="object"?Bt==li:!1;if(li===null||x(li)!=="object")return!1}var St=$(Bt),pi=$(li);if(St!==pi)return!1;if(Array.isArray(Bt)){if(Bt.length!==li.length)return!1;var eM=z(Bt),hi=z(li);return eM.length!==hi.length?!1:tt(Bt,li,ii,Ot,U,eM)}if(St==="[object Object]"&&(!ie(Bt)&&ie(li)||!ge(Bt)&&ge(li)))return!1;if(Y(Bt)){if(!Y(li)||Date.prototype.getTime.call(Bt)!==Date.prototype.getTime.call(li))return!1}else if(oe(Bt)){if(!oe(li)||!Ye(Bt,li))return!1}else if(be(Bt)||Bt instanceof Error){if(Bt.message!==li.message||Bt.name!==li.name)return!1}else if(X(Bt)){if(!ii&&(P(Bt)||k(Bt))){if(!rt(Bt,li))return!1}else if(!Ue(Bt,li))return!1;var mi=z(Bt),Dn=z(li);return mi.length!==Dn.length?!1:tt(Bt,li,ii,Ot,J,mi)}else{if(ge(Bt))return!ge(li)||Bt.size!==li.size?!1:tt(Bt,li,ii,Ot,Z);if(ie(Bt))return!ie(li)||Bt.size!==li.size?!1:tt(Bt,li,ii,Ot,ve);if(Q(Bt)){if(!Qe(Bt,li))return!1}else if(ze(Bt)&&!vt(Bt,li))return!1}return tt(Bt,li,ii,Ot,J)}function ci(Bt,li){return li.filter(function(ii){return j(Bt,ii)})}function tt(Bt,li,ii,Ot,St,pi){if(arguments.length===5){pi=Object.keys(Bt);var eM=Object.keys(li);if(pi.length!==eM.length)return!1}for(var hi=0;hi<pi.length;hi++)if(!O(li,pi[hi]))return!1;if(ii&&arguments.length===5){var mi=A(Bt);if(mi.length!==0){var Dn=0;for(hi=0;hi<mi.length;hi++){var tM=mi[hi];if(j(Bt,tM)){if(!j(li,tM))return!1;pi.push(tM),Dn++}else if(j(li,tM))return!1}var oM=A(li);if(mi.length!==oM.length&&ci(li,oM).length!==Dn)return!1}else{var vM=A(li);if(vM.length!==0&&ci(li,vM).length!==0)return!1}}if(pi.length===0&&(St===J||St===U&&Bt.length===0||Bt.size===0))return!0;if(Ot===void 0)Ot={val1:new Map,val2:new Map,position:0};else{var dM=Ot.val1.get(Bt);if(dM!==void 0){var hM=Ot.val2.get(li);if(hM!==void 0)return dM===hM}Ot.position++}Ot.val1.set(Bt,Ot.position),Ot.val2.set(li,Ot.position);var _M=Je(Bt,li,ii,pi,Ot,St);return Ot.val1.delete(Bt),Ot.val2.delete(li),_M}function et(Bt,li,ii,Ot){for(var St=E(Bt),pi=0;pi<St.length;pi++){var eM=St[pi];if(ri(li,eM,ii,Ot))return Bt.delete(eM),!0}return!1}function $e(Bt){switch(x(Bt)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":Bt=+Bt;case"number":if(T(Bt))return!1}return!0}function Le(Bt,li,ii){var Ot=$e(ii);return Ot??(li.has(Ot)&&!Bt.has(Ot))}function ot(Bt,li,ii,Ot,St){var pi=$e(ii);if(pi!=null)return pi;var eM=li.get(pi);return eM===void 0&&!li.has(pi)||!ri(Ot,eM,!1,St)?!1:!Bt.has(pi)&&ri(Ot,eM,!1,St)}function Oe(Bt,li,ii,Ot){for(var St=null,pi=E(Bt),eM=0;eM<pi.length;eM++){var hi=pi[eM];if(x(hi)==="object"&&hi!==null)St===null&&(St=new Set),St.add(hi);else if(!li.has(hi)){if(ii||!Le(Bt,li,hi))return!1;St===null&&(St=new Set),St.add(hi)}}if(St!==null){for(var mi=E(li),Dn=0;Dn<mi.length;Dn++){var tM=mi[Dn];if(x(tM)==="object"&&tM!==null){if(!et(St,tM,ii,Ot))return!1}else if(!ii&&!Bt.has(tM)&&!et(St,tM,ii,Ot))return!1}return St.size===0}return!0}function Ne(Bt,li,ii,Ot,St,pi){for(var eM=E(Bt),hi=0;hi<eM.length;hi++){var mi=eM[hi];if(ri(ii,mi,St,pi)&&ri(Ot,li.get(mi),St,pi))return Bt.delete(mi),!0}return!1}function Fe(Bt,li,ii,Ot){for(var St=null,pi=M(Bt),eM=0;eM<pi.length;eM++){var hi=u(pi[eM],2),mi=hi[0],Dn=hi[1];if(x(mi)==="object"&&mi!==null)St===null&&(St=new Set),St.add(mi);else{var tM=li.get(mi);if(tM===void 0&&!li.has(mi)||!ri(Dn,tM,ii,Ot)){if(ii||!ot(Bt,li,mi,Dn,Ot))return!1;St===null&&(St=new Set),St.add(mi)}}}if(St!==null){for(var oM=M(li),vM=0;vM<oM.length;vM++){var dM=u(oM[vM],2),mi=dM[0],hM=dM[1];if(x(mi)==="object"&&mi!==null){if(!Ne(St,Bt,mi,hM,ii,Ot))return!1}else if(!ii&&(!Bt.has(mi)||!ri(Bt.get(mi),hM,!1,Ot))&&!Ne(St,Bt,mi,hM,!1,Ot))return!1}return St.size===0}return!0}function Je(Bt,li,ii,Ot,St,pi){var eM=0;if(pi===Z){if(!Oe(Bt,li,ii,St))return!1}else if(pi===ve){if(!Fe(Bt,li,ii,St))return!1}else if(pi===U)for(;eM<Bt.length;eM++)if(O(Bt,eM)){if(!O(li,eM)||!ri(Bt[eM],li[eM],ii,St))return!1}else{if(O(li,eM))return!1;for(var hi=Object.keys(Bt);eM<hi.length;eM++){var mi=hi[eM];if(!O(li,mi)||!ri(Bt[mi],li[mi],ii,St))return!1}return hi.length===Object.keys(li).length}for(eM=0;eM<Ot.length;eM++){var Dn=Ot[eM];if(!ri(Bt[Dn],li[Dn],ii,St))return!1}return!0}function Dt(Bt,li){return ri(Bt,li,q)}function oi(Bt,li){return ri(Bt,li,H)}return ku={isDeepEqual:Dt,isDeepStrictEqual:oi},ku}var Bp;function Os(){if(Bp)return xu.exports;Bp=1;function u(U){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?u=function(Z){return typeof Z}:u=function(Z){return Z&&typeof Symbol=="function"&&Z.constructor===Symbol&&Z!==Symbol.prototype?"symbol":typeof Z},u(U)}function f(U,Z){if(!(U instanceof Z))throw new TypeError("Cannot call a class as a function")}var d=e2(),_=d.codes,x=_.ERR_AMBIGUOUS_ARGUMENT,I=_.ERR_INVALID_ARG_TYPE,E=_.ERR_INVALID_ARG_VALUE,M=_.ERR_INVALID_RETURN_VALUE,S=_.ERR_MISSING_ARGS,A=lC(),T=wn,D=T.inspect,O=wn.types,j=O.isPromise,$=O.isRegExp,W=Object.assign?Object.assign:dC().assign,Q=Object.is?Object.is:n2(),X,Y;function ie(){var U=xC();X=U.isDeepEqual,Y=U.isDeepStrictEqual}var oe=!1,ge=xu.exports=ke,be={};function ze(U){throw U.message instanceof Error?U.message:new A(U)}function de(U,Z,ve,Ye,rt){var Ue=arguments.length,Qe;if(Ue===0)Qe="Failed";else if(Ue===1)ve=U,U=void 0;else{if(oe===!1){oe=!0;var vt=Ve.emitWarning?Ve.emitWarning:console.warn.bind(console);vt("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")}Ue===2&&(Ye="!=")}if(ve instanceof Error)throw ve;var ri={actual:U,expected:Z,operator:Ye===void 0?"fail":Ye,stackStartFn:rt||de};ve!==void 0&&(ri.message=ve);var ci=new A(ri);throw Qe&&(ci.message=Qe,ci.generatedMessage=!0),ci}ge.fail=de,ge.AssertionError=A;function Ce(U,Z,ve,Ye){if(!ve){var rt=!1;if(Z===0)rt=!0,Ye="No value argument passed to `assert.ok()`";else if(Ye instanceof Error)throw Ye;var Ue=new A({actual:ve,expected:!0,message:Ye,operator:"==",stackStartFn:U});throw Ue.generatedMessage=rt,Ue}}function ke(){for(var U=arguments.length,Z=new Array(U),ve=0;ve<U;ve++)Z[ve]=arguments[ve];Ce.apply(void 0,[ke,Z.length].concat(Z))}ge.ok=ke,ge.equal=function U(Z,ve,Ye){if(arguments.length<2)throw new S("actual","expected");Z!=ve&&ze({actual:Z,expected:ve,message:Ye,operator:"==",stackStartFn:U})},ge.notEqual=function U(Z,ve,Ye){if(arguments.length<2)throw new S("actual","expected");Z==ve&&ze({actual:Z,expected:ve,message:Ye,operator:"!=",stackStartFn:U})},ge.deepEqual=function U(Z,ve,Ye){if(arguments.length<2)throw new S("actual","expected");X===void 0&&ie(),X(Z,ve)||ze({actual:Z,expected:ve,message:Ye,operator:"deepEqual",stackStartFn:U})},ge.notDeepEqual=function U(Z,ve,Ye){if(arguments.length<2)throw new S("actual","expected");X===void 0&&ie(),X(Z,ve)&&ze({actual:Z,expected:ve,message:Ye,operator:"notDeepEqual",stackStartFn:U})},ge.deepStrictEqual=function U(Z,ve,Ye){if(arguments.length<2)throw new S("actual","expected");X===void 0&&ie(),Y(Z,ve)||ze({actual:Z,expected:ve,message:Ye,operator:"deepStrictEqual",stackStartFn:U})},ge.notDeepStrictEqual=le;function le(U,Z,ve){if(arguments.length<2)throw new S("actual","expected");X===void 0&&ie(),Y(U,Z)&&ze({actual:U,expected:Z,message:ve,operator:"notDeepStrictEqual",stackStartFn:le})}ge.strictEqual=function U(Z,ve,Ye){if(arguments.length<2)throw new S("actual","expected");Q(Z,ve)||ze({actual:Z,expected:ve,message:Ye,operator:"strictEqual",stackStartFn:U})},ge.notStrictEqual=function U(Z,ve,Ye){if(arguments.length<2)throw new S("actual","expected");Q(Z,ve)&&ze({actual:Z,expected:ve,message:Ye,operator:"notStrictEqual",stackStartFn:U})};var re=function U(Z,ve,Ye){var rt=this;f(this,U),ve.forEach(function(Ue){Ue in Z&&(Ye!==void 0&&typeof Ye[Ue]=="string"&&$(Z[Ue])&&Z[Ue].test(Ye[Ue])?rt[Ue]=Ye[Ue]:rt[Ue]=Z[Ue])})};function P(U,Z,ve,Ye,rt,Ue){if(!(ve in U)||!Y(U[ve],Z[ve])){if(!Ye){var Qe=new re(U,rt),vt=new re(Z,rt,U),ri=new A({actual:Qe,expected:vt,operator:"deepStrictEqual",stackStartFn:Ue});throw ri.actual=U,ri.expected=Z,ri.operator=Ue.name,ri}ze({actual:U,expected:Z,message:Ye,operator:Ue.name,stackStartFn:Ue})}}function k(U,Z,ve,Ye){if(typeof Z!="function"){if($(Z))return Z.test(U);if(arguments.length===2)throw new I("expected",["Function","RegExp"],Z);if(u(U)!=="object"||U===null){var rt=new A({actual:U,expected:Z,message:ve,operator:"deepStrictEqual",stackStartFn:Ye});throw rt.operator=Ye.name,rt}var Ue=Object.keys(Z);if(Z instanceof Error)Ue.push("name","message");else if(Ue.length===0)throw new E("error",Z,"may not be an empty object");return X===void 0&&ie(),Ue.forEach(function(Qe){typeof U[Qe]=="string"&&$(Z[Qe])&&Z[Qe].test(U[Qe])||P(U,Z,Qe,ve,Ue,Ye)}),!0}return Z.prototype!==void 0&&U instanceof Z?!0:Error.isPrototypeOf(Z)?!1:Z.call({},U)===!0}function B(U){if(typeof U!="function")throw new I("fn","Function",U);try{U()}catch(Z){return Z}return be}function z(U){return j(U)||U!==null&&u(U)==="object"&&typeof U.then=="function"&&typeof U.catch=="function"}function ee(U){return Promise.resolve().then(function(){var Z;if(typeof U=="function"){if(Z=U(),!z(Z))throw new M("instance of Promise","promiseFn",Z)}else if(z(U))Z=U;else throw new I("promiseFn",["Function","Promise"],U);return Promise.resolve().then(function(){return Z}).then(function(){return be}).catch(function(ve){return ve})})}function H(U,Z,ve,Ye){if(typeof ve=="string"){if(arguments.length===4)throw new I("error",["Object","Error","Function","RegExp"],ve);if(u(Z)==="object"&&Z!==null){if(Z.message===ve)throw new x("error/message",'The error message "'.concat(Z.message,'" is identical to the message.'))}else if(Z===ve)throw new x("error/message",'The error "'.concat(Z,'" is identical to the message.'));Ye=ve,ve=void 0}else if(ve!=null&&u(ve)!=="object"&&typeof ve!="function")throw new I("error",["Object","Error","Function","RegExp"],ve);if(Z===be){var rt="";ve&&ve.name&&(rt+=" (".concat(ve.name,")")),rt+=Ye?": ".concat(Ye):".";var Ue=U.name==="rejects"?"rejection":"exception";ze({actual:void 0,expected:ve,operator:U.name,message:"Missing expected ".concat(Ue).concat(rt),stackStartFn:U})}if(ve&&!k(Z,ve,Ye,U))throw Z}function q(U,Z,ve,Ye){if(Z!==be){if(typeof ve=="string"&&(Ye=ve,ve=void 0),!ve||k(Z,ve)){var rt=Ye?": ".concat(Ye):".",Ue=U.name==="doesNotReject"?"rejection":"exception";ze({actual:Z,expected:ve,operator:U.name,message:"Got unwanted ".concat(Ue).concat(rt,`
`)+'Actual message: "'.concat(Z&&Z.message,'"'),stackStartFn:U})}throw Z}}ge.throws=function U(Z){for(var ve=arguments.length,Ye=new Array(ve>1?ve-1:0),rt=1;rt<ve;rt++)Ye[rt-1]=arguments[rt];H.apply(void 0,[U,B(Z)].concat(Ye))},ge.rejects=function U(Z){for(var ve=arguments.length,Ye=new Array(ve>1?ve-1:0),rt=1;rt<ve;rt++)Ye[rt-1]=arguments[rt];return ee(Z).then(function(Ue){return H.apply(void 0,[U,Ue].concat(Ye))})},ge.doesNotThrow=function U(Z){for(var ve=arguments.length,Ye=new Array(ve>1?ve-1:0),rt=1;rt<ve;rt++)Ye[rt-1]=arguments[rt];q.apply(void 0,[U,B(Z)].concat(Ye))},ge.doesNotReject=function U(Z){for(var ve=arguments.length,Ye=new Array(ve>1?ve-1:0),rt=1;rt<ve;rt++)Ye[rt-1]=arguments[rt];return ee(Z).then(function(Ue){return q.apply(void 0,[U,Ue].concat(Ye))})},ge.ifError=function U(Z){if(Z!=null){var ve="ifError got unwanted exception: ";u(Z)==="object"&&typeof Z.message=="string"?Z.message.length===0&&Z.constructor?ve+=Z.constructor.name:ve+=Z.message:ve+=D(Z);var Ye=new A({actual:Z,expected:null,operator:"ifError",message:ve,stackStartFn:U}),rt=Z.stack;if(typeof rt=="string"){var Ue=rt.split(`
`);Ue.shift();for(var Qe=Ye.stack.split(`
`),vt=0;vt<Ue.length;vt++){var ri=Qe.indexOf(Ue[vt]);if(ri!==-1){Qe=Qe.slice(0,ri);break}}Ye.stack="".concat(Qe.join(`
`),`
`).concat(Ue.join(`
`))}throw Ye}};function J(){for(var U=arguments.length,Z=new Array(U),ve=0;ve<U;ve++)Z[ve]=arguments[ve];Ce.apply(void 0,[J,Z.length].concat(Z))}return ge.strict=W(J,ge,{equal:ge.strictEqual,deepEqual:ge.deepStrictEqual,notEqual:ge.notStrictEqual,notDeepEqual:ge.notDeepStrictEqual}),ge.strict.strict=ge.strict,xu.exports}var _C=Os(),f2=$0.Buffer,z0=Nh,EC=Rh,Oa=EC.newInvalidAsn1Error;function Er(u){if(!u||!f2.isBuffer(u))throw new TypeError("data must be a node Buffer");this._buf=u,this._size=u.length,this._len=0,this._offset=0}Object.defineProperty(Er.prototype,"length",{enumerable:!0,get:function(){return this._len}});Object.defineProperty(Er.prototype,"offset",{enumerable:!0,get:function(){return this._offset}});Object.defineProperty(Er.prototype,"remain",{get:function(){return this._size-this._offset}});Object.defineProperty(Er.prototype,"buffer",{get:function(){return this._buf.slice(this._offset)}});Er.prototype.readByte=function(u){if(this._size-this._offset<1)return null;var f=this._buf[this._offset]&255;return u||(this._offset+=1),f};Er.prototype.peek=function(){return this.readByte(!0)};Er.prototype.readLength=function(u){if(u===void 0&&(u=this._offset),u>=this._size)return null;var f=this._buf[u++]&255;if(f===null)return null;if((f&128)===128){if(f&=127,f===0)throw Oa("Indefinite length not supported");if(f>4)throw Oa("encoding too long");if(this._size-u<f)return null;this._len=0;for(var d=0;d<f;d++)this._len=(this._len<<8)+(this._buf[u++]&255)}else this._len=f;return u};Er.prototype.readSequence=function(u){var f=this.peek();if(f===null)return null;if(u!==void 0&&u!==f)throw Oa("Expected 0x"+u.toString(16)+": got 0x"+f.toString(16));var d=this.readLength(this._offset+1);return d===null?null:(this._offset=d,f)};Er.prototype.readInt=function(){return this._readTag(z0.Integer)};Er.prototype.readBoolean=function(){return this._readTag(z0.Boolean)!==0};Er.prototype.readEnumeration=function(){return this._readTag(z0.Enumeration)};Er.prototype.readString=function(u,f){u||(u=z0.OctetString);var d=this.peek();if(d===null)return null;if(d!==u)throw Oa("Expected 0x"+u.toString(16)+": got 0x"+d.toString(16));var _=this.readLength(this._offset+1);if(_===null||this.length>this._size-_)return null;if(this._offset=_,this.length===0)return f?f2.alloc(0):"";var x=this._buf.slice(this._offset,this._offset+this.length);return this._offset+=this.length,f?x:x.toString("utf8")};Er.prototype.readOID=function(u){u||(u=z0.OID);var f=this.readString(u,!0);if(f===null)return null;for(var d=[],_=0,x=0;x<f.length;x++){var I=f[x]&255;_<<=7,_+=I&127,I&128||(d.push(_),_=0)}return _=d.shift(),d.unshift(_%40),d.unshift(_/40>>0),d.join(".")};Er.prototype._readTag=function(u){_C.ok(u!==void 0);var f=this.peek();if(f===null)return null;if(f!==u)throw Oa("Expected 0x"+u.toString(16)+": got 0x"+f.toString(16));var d=this.readLength(this._offset+1);if(d===null)return null;if(this.length>4)throw Oa("Integer too long: "+this.length);if(this.length>this._size-d)return null;this._offset=d;for(var _=this._buf[this._offset],x=0,I=0;I<this.length;I++)x<<=8,x|=this._buf[this._offset++]&255;return(_&128)===128&&I!==4&&(x-=1<<I*8),x>>0};var SC=Er,yn=Os(),Nf=$0.Buffer,An=Nh,wC=Rh,Df=wC.newInvalidAsn1Error,CC={size:1024,growthFactor:8};function AC(u,f){yn.ok(u),yn.equal(typeof u,"object"),yn.ok(f),yn.equal(typeof f,"object");var d=Object.getOwnPropertyNames(u);return d.forEach(function(_){if(!f[_]){var x=Object.getOwnPropertyDescriptor(u,_);Object.defineProperty(f,_,x)}}),f}function pr(u){u=AC(CC,u||{}),this._buf=Nf.alloc(u.size||1024),this._size=this._buf.length,this._offset=0,this._options=u,this._seq=[]}Object.defineProperty(pr.prototype,"buffer",{get:function(){if(this._seq.length)throw Df(this._seq.length+" unended sequence(s)");return this._buf.slice(0,this._offset)}});pr.prototype.writeByte=function(u){if(typeof u!="number")throw new TypeError("argument must be a Number");this._ensure(1),this._buf[this._offset++]=u};pr.prototype.writeInt=function(u,f){if(typeof u!="number")throw new TypeError("argument must be a Number");typeof f!="number"&&(f=An.Integer);for(var d=4;(!(u&4286578688)||(u&4286578688)===-8388608)&&d>1;)d--,u<<=8;if(d>4)throw Df("BER ints cannot be > 0xffffffff");for(this._ensure(2+d),this._buf[this._offset++]=f,this._buf[this._offset++]=d;d-- >0;)this._buf[this._offset++]=(u&4278190080)>>>24,u<<=8};pr.prototype.writeNull=function(){this.writeByte(An.Null),this.writeByte(0)};pr.prototype.writeEnumeration=function(u,f){if(typeof u!="number")throw new TypeError("argument must be a Number");return typeof f!="number"&&(f=An.Enumeration),this.writeInt(u,f)};pr.prototype.writeBoolean=function(u,f){if(typeof u!="boolean")throw new TypeError("argument must be a Boolean");typeof f!="number"&&(f=An.Boolean),this._ensure(3),this._buf[this._offset++]=f,this._buf[this._offset++]=1,this._buf[this._offset++]=u?255:0};pr.prototype.writeString=function(u,f){if(typeof u!="string")throw new TypeError("argument must be a string (was: "+typeof u+")");typeof f!="number"&&(f=An.OctetString);var d=Nf.byteLength(u);this.writeByte(f),this.writeLength(d),d&&(this._ensure(d),this._buf.write(u,this._offset),this._offset+=d)};pr.prototype.writeBuffer=function(u,f){if(typeof f!="number")throw new TypeError("tag must be a number");if(!Nf.isBuffer(u))throw new TypeError("argument must be a buffer");this.writeByte(f),this.writeLength(u.length),this._ensure(u.length),u.copy(this._buf,this._offset,0,u.length),this._offset+=u.length};pr.prototype.writeStringArray=function(u){if(!u instanceof Array)throw new TypeError("argument must be an Array[String]");var f=this;u.forEach(function(d){f.writeString(d)})};pr.prototype.writeOID=function(u,f){if(typeof u!="string")throw new TypeError("argument must be a string");if(typeof f!="number"&&(f=An.OID),!/^([0-9]+\.){3,}[0-9]+$/.test(u))throw new Error("argument is not a valid OID string");function d(E,M){M<128?E.push(M):M<16384?(E.push(M>>>7|128),E.push(M&127)):M<2097152?(E.push(M>>>14|128),E.push((M>>>7|128)&255),E.push(M&127)):M<268435456?(E.push(M>>>21|128),E.push((M>>>14|128)&255),E.push((M>>>7|128)&255),E.push(M&127)):(E.push((M>>>28|128)&255),E.push((M>>>21|128)&255),E.push((M>>>14|128)&255),E.push((M>>>7|128)&255),E.push(M&127))}var _=u.split("."),x=[];x.push(parseInt(_[0],10)*40+parseInt(_[1],10)),_.slice(2).forEach(function(E){d(x,parseInt(E,10))});var I=this;this._ensure(2+x.length),this.writeByte(f),this.writeLength(x.length),x.forEach(function(E){I.writeByte(E)})};pr.prototype.writeLength=function(u){if(typeof u!="number")throw new TypeError("argument must be a Number");if(this._ensure(4),u<=127)this._buf[this._offset++]=u;else if(u<=255)this._buf[this._offset++]=129,this._buf[this._offset++]=u;else if(u<=65535)this._buf[this._offset++]=130,this._buf[this._offset++]=u>>8,this._buf[this._offset++]=u;else if(u<=16777215)this._buf[this._offset++]=131,this._buf[this._offset++]=u>>16,this._buf[this._offset++]=u>>8,this._buf[this._offset++]=u;else throw Df("Length too long (> 4 bytes)")};pr.prototype.startSequence=function(u){typeof u!="number"&&(u=An.Sequence|An.Constructor),this.writeByte(u),this._seq.push(this._offset),this._ensure(3),this._offset+=3};pr.prototype.endSequence=function(){var u=this._seq.pop(),f=u+3,d=this._offset-f;if(d<=127)this._shift(f,d,-2),this._buf[u]=d;else if(d<=255)this._shift(f,d,-1),this._buf[u]=129,this._buf[u+1]=d;else if(d<=65535)this._buf[u]=130,this._buf[u+1]=d>>8,this._buf[u+2]=d;else if(d<=16777215)this._shift(f,d,1),this._buf[u]=131,this._buf[u+1]=d>>16,this._buf[u+2]=d>>8,this._buf[u+3]=d;else throw Df("Sequence too long")};pr.prototype._shift=function(u,f,d){yn.ok(u!==void 0),yn.ok(f!==void 0),yn.ok(d),this._buf.copy(this._buf,u+d,u,u+f),this._offset+=d};pr.prototype._ensure=function(u){if(yn.ok(u),this._size-this._offset<u){var f=this._size*this._options.growthFactor;f-this._offset<u&&(f+=u);var d=Nf.alloc(f);this._buf.copy(d,0,0,this._offset),this._buf=d,this._size=f}};var BC=pr;(function(u){var f=Rh,d=Nh,_=SC,x=BC;u.exports={Reader:_,Writer:x};for(var I in d)d.hasOwnProperty(I)&&(u.exports[I]=d[I]);for(var E in f)f.hasOwnProperty(E)&&(u.exports[E]=f[E])})(Jy);var IC=Jy.exports,Uu=IC,Dh={Ber:Uu,BerReader:Uu.Reader,BerWriter:Uu.Writer},o2={exports:{}},u2={exports:{}};(function(u){var f=Dh.Ber,d=tr._,_=tr;const x="-----BEGIN RSA PRIVATE KEY-----",I="-----END RSA PRIVATE KEY-----",E="-----BEGIN RSA PUBLIC KEY-----",M="-----END RSA PUBLIC KEY-----";u.exports={privateExport:function(S,A){A=A||{};var T=S.n.toBuffer(),D=S.d.toBuffer(),O=S.p.toBuffer(),j=S.q.toBuffer(),$=S.dmp1.toBuffer(),W=S.dmq1.toBuffer(),Q=S.coeff.toBuffer(),X=T.length+D.length+O.length+j.length+$.length+W.length+Q.length+512,Y=new f.Writer({size:X});return Y.startSequence(),Y.writeInt(0),Y.writeBuffer(T,2),Y.writeInt(S.e),Y.writeBuffer(D,2),Y.writeBuffer(O,2),Y.writeBuffer(j,2),Y.writeBuffer($,2),Y.writeBuffer(W,2),Y.writeBuffer(Q,2),Y.endSequence(),A.type==="der"?Y.buffer:x+`
`+_.linebrk(Y.buffer.toString("base64"),64)+`
`+I},privateImport:function(S,A,T){T=T||{};var D;if(T.type!=="der")if(pe.Buffer.isBuffer(A)&&(A=A.toString("utf8")),d.isString(A)){var O=_.trimSurroundingText(A,x,I).replace(/\s+|\n\r|\n|\r$/gm,"");D=pe.Buffer.from(O,"base64")}else throw Error("Unsupported key format");else if(pe.Buffer.isBuffer(A))D=A;else throw Error("Unsupported key format");var j=new f.Reader(D);j.readSequence(),j.readString(2,!0),S.setPrivate(j.readString(2,!0),j.readString(2,!0),j.readString(2,!0),j.readString(2,!0),j.readString(2,!0),j.readString(2,!0),j.readString(2,!0),j.readString(2,!0))},publicExport:function(S,A){A=A||{};var T=S.n.toBuffer(),D=T.length+512,O=new f.Writer({size:D});return O.startSequence(),O.writeBuffer(T,2),O.writeInt(S.e),O.endSequence(),A.type==="der"?O.buffer:E+`
`+_.linebrk(O.buffer.toString("base64"),64)+`
`+M},publicImport:function(S,A,T){T=T||{};var D;if(T.type!=="der"){if(pe.Buffer.isBuffer(A)&&(A=A.toString("utf8")),d.isString(A)){var O=_.trimSurroundingText(A,E,M).replace(/\s+|\n\r|\n|\r$/gm,"");D=pe.Buffer.from(O,"base64")}}else if(pe.Buffer.isBuffer(A))D=A;else throw Error("Unsupported key format");var j=new f.Reader(D);j.readSequence(),S.setPublic(j.readString(2,!0),j.readString(2,!0))},autoImport:function(S,A){return/^[\S\s]*-----BEGIN RSA PRIVATE KEY-----\s*(?=(([A-Za-z0-9+/=]+\s*)+))\1-----END RSA PRIVATE KEY-----[\S\s]*$/g.test(A)?(u.exports.privateImport(S,A),!0):/^[\S\s]*-----BEGIN RSA PUBLIC KEY-----\s*(?=(([A-Za-z0-9+/=]+\s*)+))\1-----END RSA PUBLIC KEY-----[\S\s]*$/g.test(A)?(u.exports.publicImport(S,A),!0):!1}}})(u2);var TC=u2.exports,c2={exports:{}};(function(u){var f=Dh.Ber,d=tr._,_="1.2.840.113549.1.1.1",x=tr;const I="-----BEGIN PRIVATE KEY-----",E="-----END PRIVATE KEY-----",M="-----BEGIN PUBLIC KEY-----",S="-----END PUBLIC KEY-----";u.exports={privateExport:function(A,T){T=T||{};var D=A.n.toBuffer(),O=A.d.toBuffer(),j=A.p.toBuffer(),$=A.q.toBuffer(),W=A.dmp1.toBuffer(),Q=A.dmq1.toBuffer(),X=A.coeff.toBuffer(),Y=D.length+O.length+j.length+$.length+W.length+Q.length+X.length+512,ie=new f.Writer({size:Y});ie.startSequence(),ie.writeInt(0),ie.writeBuffer(D,2),ie.writeInt(A.e),ie.writeBuffer(O,2),ie.writeBuffer(j,2),ie.writeBuffer($,2),ie.writeBuffer(W,2),ie.writeBuffer(Q,2),ie.writeBuffer(X,2),ie.endSequence();var oe=new f.Writer({size:Y});return oe.startSequence(),oe.writeInt(0),oe.startSequence(),oe.writeOID(_),oe.writeNull(),oe.endSequence(),oe.writeBuffer(ie.buffer,4),oe.endSequence(),T.type==="der"?oe.buffer:I+`
`+x.linebrk(oe.buffer.toString("base64"),64)+`
`+E},privateImport:function(A,T,D){D=D||{};var O;if(D.type!=="der")if(pe.Buffer.isBuffer(T)&&(T=T.toString("utf8")),d.isString(T)){var j=x.trimSurroundingText(T,I,E).replace("-----END PRIVATE KEY-----","").replace(/\s+|\n\r|\n|\r$/gm,"");O=pe.Buffer.from(j,"base64")}else throw Error("Unsupported key format");else if(pe.Buffer.isBuffer(T))O=T;else throw Error("Unsupported key format");var $=new f.Reader(O);$.readSequence(),$.readInt(0);var W=new f.Reader($.readString(48,!0));if(W.readOID(6,!0)!==_)throw Error("Invalid Public key format");var Q=new f.Reader($.readString(4,!0));Q.readSequence(),Q.readString(2,!0),A.setPrivate(Q.readString(2,!0),Q.readString(2,!0),Q.readString(2,!0),Q.readString(2,!0),Q.readString(2,!0),Q.readString(2,!0),Q.readString(2,!0),Q.readString(2,!0))},publicExport:function(A,T){T=T||{};var D=A.n.toBuffer(),O=D.length+512,j=new f.Writer({size:O});j.writeByte(0),j.startSequence(),j.writeBuffer(D,2),j.writeInt(A.e),j.endSequence();var $=new f.Writer({size:O});return $.startSequence(),$.startSequence(),$.writeOID(_),$.writeNull(),$.endSequence(),$.writeBuffer(j.buffer,3),$.endSequence(),T.type==="der"?$.buffer:M+`
`+x.linebrk($.buffer.toString("base64"),64)+`
`+S},publicImport:function(A,T,D){D=D||{};var O;if(D.type!=="der"){if(pe.Buffer.isBuffer(T)&&(T=T.toString("utf8")),d.isString(T)){var j=x.trimSurroundingText(T,M,S).replace(/\s+|\n\r|\n|\r$/gm,"");O=pe.Buffer.from(j,"base64")}}else if(pe.Buffer.isBuffer(T))O=T;else throw Error("Unsupported key format");var $=new f.Reader(O);$.readSequence();var W=new f.Reader($.readString(48,!0));if(W.readOID(6,!0)!==_)throw Error("Invalid Public key format");var Q=new f.Reader($.readString(3,!0));Q.readByte(),Q.readSequence(),A.setPublic(Q.readString(2,!0),Q.readString(2,!0))},autoImport:function(A,T){return/^[\S\s]*-----BEGIN PRIVATE KEY-----\s*(?=(([A-Za-z0-9+/=]+\s*)+))\1-----END PRIVATE KEY-----[\S\s]*$/g.test(T)?(u.exports.privateImport(A,T),!0):/^[\S\s]*-----BEGIN PUBLIC KEY-----\s*(?=(([A-Za-z0-9+/=]+\s*)+))\1-----END PUBLIC KEY-----[\S\s]*$/g.test(T)?(u.exports.publicImport(A,T),!0):!1}}})(c2);var MC=c2.exports,h2={exports:{}};(function(u){tr._,u.exports={privateExport:function(f,d){return{n:f.n.toBuffer(),e:f.e,d:f.d.toBuffer(),p:f.p.toBuffer(),q:f.q.toBuffer(),dmp1:f.dmp1.toBuffer(),dmq1:f.dmq1.toBuffer(),coeff:f.coeff.toBuffer()}},privateImport:function(f,d,_){if(d.n&&d.e&&d.d&&d.p&&d.q&&d.dmp1&&d.dmq1&&d.coeff)f.setPrivate(d.n,d.e,d.d,d.p,d.q,d.dmp1,d.dmq1,d.coeff);else throw Error("Invalid key data")},publicExport:function(f,d){return{n:f.n.toBuffer(),e:f.e}},publicImport:function(f,d,_){if(d.n&&d.e)f.setPublic(d.n,d.e);else throw Error("Invalid key data")},autoImport:function(f,d){return d.n&&d.e?d.d&&d.p&&d.q&&d.dmp1&&d.dmq1&&d.coeff?(u.exports.privateImport(f,d),!0):(u.exports.publicImport(f,d),!0):!1}}})(h2);var RC=h2.exports,l2={exports:{}};(function(u){var f=tr._,d=tr,_=G0;const x="-----BEGIN OPENSSH PRIVATE KEY-----",I="-----END OPENSSH PRIVATE KEY-----";u.exports={privateExport:function(S,A){const T=S.n.toBuffer();let D=pe.Buffer.alloc(4);for(D.writeUInt32BE(S.e,0);D[0]===0;)D=D.slice(1);const O=S.d.toBuffer(),j=S.coeff.toBuffer(),$=S.p.toBuffer(),W=S.q.toBuffer();let Q;typeof S.sshcomment<"u"?Q=pe.Buffer.from(S.sshcomment):Q=pe.Buffer.from([]);const X=15+D.byteLength+4+T.byteLength,Y=23+T.byteLength+4+D.byteLength+4+O.byteLength+4+j.byteLength+4+$.byteLength+4+W.byteLength+4+Q.byteLength;let ie=43+X+4+Y;const oe=Math.ceil(Y/8)*8-Y;ie+=oe;const ge=pe.Buffer.alloc(ie),be={buf:ge,off:0};ge.write("openssh-key-v1","utf8"),ge.writeUInt8(0,14),be.off+=15,M(be,pe.Buffer.from("none")),M(be,pe.Buffer.from("none")),M(be,pe.Buffer.from("")),be.off=be.buf.writeUInt32BE(1,be.off),be.off=be.buf.writeUInt32BE(X,be.off),M(be,pe.Buffer.from("ssh-rsa")),M(be,D),M(be,T),be.off=be.buf.writeUInt32BE(ie-47-X,be.off),be.off+=8,M(be,pe.Buffer.from("ssh-rsa")),M(be,T),M(be,D),M(be,O),M(be,j),M(be,$),M(be,W),M(be,Q);let ze=1;for(;be.off<ie;)be.off=be.buf.writeUInt8(ze++,be.off);return A.type==="der"?be.buf:x+`
`+d.linebrk(ge.toString("base64"),70)+`
`+I+`
`},privateImport:function(S,A,T){T=T||{};var D;if(T.type!=="der")if(pe.Buffer.isBuffer(A)&&(A=A.toString("utf8")),f.isString(A)){var O=d.trimSurroundingText(A,x,I).replace(/\s+|\n\r|\n|\r$/gm,"");D=pe.Buffer.from(O,"base64")}else throw Error("Unsupported key format");else if(pe.Buffer.isBuffer(A))D=A;else throw Error("Unsupported key format");const j={buf:D,off:0};if(D.slice(0,14).toString("ascii")!=="openssh-key-v1")throw"Invalid file format.";if(j.off+=15,E(j).toString("ascii")!=="none"||E(j).toString("ascii")!=="none"||E(j).toString("ascii")!==""||(j.off+=4,j.off+=4,E(j).toString("ascii")!=="ssh-rsa")||(E(j),E(j),j.off+=12,E(j).toString("ascii")!=="ssh-rsa"))throw Error("Unsupported key type");const $=E(j),W=E(j),Q=E(j),X=E(j),Y=E(j),ie=E(j),oe=new _(Q),ge=new _(ie),be=new _(Y),ze=oe.mod(be.subtract(_.ONE)),de=oe.mod(ge.subtract(_.ONE));S.setPrivate($,W,Q,Y,ie,ze.toBuffer(),de.toBuffer(),X),S.sshcomment=E(j).toString("ascii")},publicExport:function(S,A){let T=pe.Buffer.alloc(4);for(T.writeUInt32BE(S.e,0);T[0]===0;)T=T.slice(1);const D=S.n.toBuffer(),O=pe.Buffer.alloc(T.byteLength+4+D.byteLength+4+7+4),j={buf:O,off:0};M(j,pe.Buffer.from("ssh-rsa")),M(j,T),M(j,D);let $=S.sshcomment||"";return A.type==="der"?j.buf:"ssh-rsa "+O.toString("base64")+" "+$+`
`},publicImport:function(S,A,T){T=T||{};var D;if(T.type!=="der")if(pe.Buffer.isBuffer(A)&&(A=A.toString("utf8")),f.isString(A)){if(A.substring(0,8)!=="ssh-rsa ")throw Error("Unsupported key format");let Q=A.indexOf(" ",8);Q===-1?Q=A.length:S.sshcomment=A.substring(Q+1).replace(/\s+|\n\r|\n|\r$/gm,"");const X=A.substring(8,Q).replace(/\s+|\n\r|\n|\r$/gm,"");D=pe.Buffer.from(X,"base64")}else throw Error("Unsupported key format");else if(pe.Buffer.isBuffer(A))D=A;else throw Error("Unsupported key format");const O={buf:D,off:0},j=E(O).toString("ascii");if(j!=="ssh-rsa")throw Error("Invalid key type: "+j);const $=E(O),W=E(O);S.setPublic(W,$)},autoImport:function(S,A){return/^[\S\s]*-----BEGIN OPENSSH PRIVATE KEY-----\s*(?=(([A-Za-z0-9+/=]+\s*)+))\1-----END OPENSSH PRIVATE KEY-----[\S\s]*$/g.test(A)?(u.exports.privateImport(S,A),!0):/^[\S\s]*ssh-rsa \s*(?=(([A-Za-z0-9+/=]+\s*)+))\1[\S\s]*$/g.test(A)?(u.exports.publicImport(S,A),!0):!1}};function E(S){const A=S.buf.readInt32BE(S.off);S.off+=4;const T=S.buf.slice(S.off,S.off+A);return S.off+=A,T}function M(S,A){S.buf.writeInt32BE(A.byteLength,S.off),S.off+=4,S.off+=A.copy(S.buf,S.off)}})(l2);var NC=l2.exports;(function(u){tr._;function f(d){d=d.split("-");for(var _="private",x={type:"default"},I=1;I<d.length;I++)if(d[I])switch(d[I]){case"public":_=d[I];break;case"private":_=d[I];break;case"pem":x.type=d[I];break;case"der":x.type=d[I];break}return{scheme:d[0],keyType:_,keyOpt:x}}u.exports={pkcs1:TC,pkcs8:MC,components:RC,openssh:NC,isPrivateExport:function(d){return u.exports[d]&&typeof u.exports[d].privateExport=="function"},isPrivateImport:function(d){return u.exports[d]&&typeof u.exports[d].privateImport=="function"},isPublicExport:function(d){return u.exports[d]&&typeof u.exports[d].publicExport=="function"},isPublicImport:function(d){return u.exports[d]&&typeof u.exports[d].publicImport=="function"},detectAndImport:function(d,_,x){if(x===void 0){for(var I in u.exports)if(typeof u.exports[I].autoImport=="function"&&u.exports[I].autoImport(d,_))return!0}else if(x){var E=f(x);if(u.exports[E.scheme])E.keyType==="private"?u.exports[E.scheme].privateImport(d,_,E.keyOpt):u.exports[E.scheme].publicImport(d,_,E.keyOpt);else throw Error("Unsupported key format")}return!1},detectAndExport:function(d,_){if(_){var x=f(_);if(u.exports[x.scheme])if(x.keyType==="private"){if(!d.isPrivate())throw Error("This is not private key");return u.exports[x.scheme].privateExport(d,x.keyOpt)}else{if(!d.isPublic())throw Error("This is not public key");return u.exports[x.scheme].publicExport(d,x.keyOpt)}else throw Error("Unsupported key format")}}}})(o2);var DC=o2.exports,OC=Bh;_r();var Mr=tr._,PC=tr,Ip=Za(),Tp=DC,LC=function(){var u={node10:["md4","md5","ripemd160","sha1","sha224","sha256","sha384","sha512"],node:["md4","md5","ripemd160","sha1","sha224","sha256","sha384","sha512"],iojs:["md4","md5","ripemd160","sha1","sha224","sha256","sha384","sha512"],browser:["md5","ripemd160","sha1","sha256","sha512"]},f="pkcs1_oaep",d="pkcs1",_="private",x={private:"pkcs1-private-pem","private-der":"pkcs1-private-der",public:"pkcs8-public-pem","public-der":"pkcs8-public-der"};function I(E,M,S){if(!(this instanceof I))return new I(E,M,S);Mr.isObject(M)&&(S=M,M=void 0),this.$options={signingScheme:d,signingSchemeOptions:{hash:"sha256",saltLength:null},encryptionScheme:f,encryptionSchemeOptions:{hash:"sha1",label:null},environment:PC.detectEnvironment(),rsaUtils:this},this.keyPair=new OC.Key,this.$cache={},pe.Buffer.isBuffer(E)||Mr.isString(E)?this.importKey(E,M):Mr.isObject(E)&&this.generateKeyPair(E.b,E.e),this.setOptions(S)}return I.prototype.setOptions=function(E){if(E=E||{},E.environment&&(this.$options.environment=E.environment),E.signingScheme){if(Mr.isString(E.signingScheme)){var M=E.signingScheme.toLowerCase().split("-");M.length==1?u.node.indexOf(M[0])>-1?(this.$options.signingSchemeOptions={hash:M[0]},this.$options.signingScheme=d):(this.$options.signingScheme=M[0],this.$options.signingSchemeOptions={hash:null}):(this.$options.signingSchemeOptions={hash:M[1]},this.$options.signingScheme=M[0])}else Mr.isObject(E.signingScheme)&&(this.$options.signingScheme=E.signingScheme.scheme||d,this.$options.signingSchemeOptions=Mr.omit(E.signingScheme,"scheme"));if(!Ip.isSignature(this.$options.signingScheme))throw Error("Unsupported signing scheme");if(this.$options.signingSchemeOptions.hash&&u[this.$options.environment].indexOf(this.$options.signingSchemeOptions.hash)===-1)throw Error("Unsupported hashing algorithm for "+this.$options.environment+" environment")}if(E.encryptionScheme){if(Mr.isString(E.encryptionScheme)?(this.$options.encryptionScheme=E.encryptionScheme.toLowerCase(),this.$options.encryptionSchemeOptions={}):Mr.isObject(E.encryptionScheme)&&(this.$options.encryptionScheme=E.encryptionScheme.scheme||f,this.$options.encryptionSchemeOptions=Mr.omit(E.encryptionScheme,"scheme")),!Ip.isEncryption(this.$options.encryptionScheme))throw Error("Unsupported encryption scheme");if(this.$options.encryptionSchemeOptions.hash&&u[this.$options.environment].indexOf(this.$options.encryptionSchemeOptions.hash)===-1)throw Error("Unsupported hashing algorithm for "+this.$options.environment+" environment")}this.keyPair.setOptions(this.$options)},I.prototype.generateKeyPair=function(E,M){if(E=E||2048,M=M||65537,E%8!==0)throw Error("Key size must be a multiple of 8.");return this.keyPair.generate(E,M.toString(16)),this.$cache={},this},I.prototype.importKey=function(E,M){if(!E)throw Error("Empty key given");if(M&&(M=x[M]||M),!Tp.detectAndImport(this.keyPair,E,M)&&M===void 0)throw Error("Key format must be specified");return this.$cache={},this},I.prototype.exportKey=function(E){return E=E||_,E=x[E]||E,this.$cache[E]||(this.$cache[E]=Tp.detectAndExport(this.keyPair,E)),this.$cache[E]},I.prototype.isPrivate=function(){return this.keyPair.isPrivate()},I.prototype.isPublic=function(E){return this.keyPair.isPublic(E)},I.prototype.isEmpty=function(E){return!(this.keyPair.n||this.keyPair.e||this.keyPair.d)},I.prototype.encrypt=function(E,M,S){return this.$$encryptKey(!1,E,M,S)},I.prototype.decrypt=function(E,M){return this.$$decryptKey(!1,E,M)},I.prototype.encryptPrivate=function(E,M,S){return this.$$encryptKey(!0,E,M,S)},I.prototype.decryptPublic=function(E,M){return this.$$decryptKey(!0,E,M)},I.prototype.$$encryptKey=function(E,M,S,A){try{var T=this.keyPair.encrypt(this.$getDataForEncrypt(M,A),E);return S=="buffer"||!S?T:T.toString(S)}catch(D){throw Error("Error during encryption. Original error: "+D)}},I.prototype.$$decryptKey=function(E,M,S){try{M=Mr.isString(M)?pe.Buffer.from(M,"base64"):M;var A=this.keyPair.decrypt(M,E);if(A===null)throw Error("Key decrypt method returns null.");return this.$getDecryptedData(A,S)}catch(T){throw Error("Error during decryption (probably incorrect key). Original error: "+T)}},I.prototype.sign=function(E,M,S){if(!this.isPrivate())throw Error("This is not private key");var A=this.keyPair.sign(this.$getDataForEncrypt(E,S));return M&&M!="buffer"&&(A=A.toString(M)),A},I.prototype.verify=function(E,M,S,A){if(!this.isPublic())throw Error("This is not public key");return A=!A||A=="buffer"?null:A,this.keyPair.verify(this.$getDataForEncrypt(E,S),M,A)},I.prototype.getKeySize=function(){return this.keyPair.keySize},I.prototype.getMaxMessageSize=function(){return this.keyPair.maxMessageLength},I.prototype.$getDataForEncrypt=function(E,M){if(Mr.isString(E)||Mr.isNumber(E))return pe.Buffer.from(""+E,M||"utf8");if(pe.Buffer.isBuffer(E))return E;if(Mr.isObject(E))return pe.Buffer.from(JSON.stringify(E));throw Error("Unexpected data type")},I.prototype.$getDecryptedData=function(E,M){return M=M||"buffer",M=="buffer"?E:M=="json"?JSON.parse(E.toString()):E.toString(M)},I}();const kC=Gs(LC);var ht={options:{usePureJavaScript:!1}},Oh={},UC=Oh,Mp={};Oh.encode=function(u,f,d){if(typeof f!="string")throw new TypeError('"alphabet" must be a string.');if(d!==void 0&&typeof d!="number")throw new TypeError('"maxline" must be a number.');var _="";if(!(u instanceof Uint8Array))_=FC(u,f);else{var x=0,I=f.length,E=f.charAt(0),M=[0];for(x=0;x<u.length;++x){for(var S=0,A=u[x];S<M.length;++S)A+=M[S]<<8,M[S]=A%I,A=A/I|0;for(;A>0;)M.push(A%I),A=A/I|0}for(x=0;u[x]===0&&x<u.length-1;++x)_+=E;for(x=M.length-1;x>=0;--x)_+=f[M[x]]}if(d){var T=new RegExp(".{1,"+d+"}","g");_=_.match(T).join(`\r
`)}return _};Oh.decode=function(u,f){if(typeof u!="string")throw new TypeError('"input" must be a string.');if(typeof f!="string")throw new TypeError('"alphabet" must be a string.');var d=Mp[f];if(!d){d=Mp[f]=[];for(var _=0;_<f.length;++_)d[f.charCodeAt(_)]=_}u=u.replace(/\s/g,"");for(var x=f.length,I=f.charAt(0),E=[0],_=0;_<u.length;_++){var M=d[u.charCodeAt(_)];if(M===void 0)return;for(var S=0,A=M;S<E.length;++S)A+=E[S]*x,E[S]=A&255,A>>=8;for(;A>0;)E.push(A&255),A>>=8}for(var T=0;u[T]===I&&T<u.length-1;++T)E.push(0);return typeof pe.Buffer<"u"?pe.Buffer.from(E.reverse()):new Uint8Array(E.reverse())};function FC(u,f){var d=0,_=f.length,x=f.charAt(0),I=[0];for(d=0;d<u.length();++d){for(var E=0,M=u.at(d);E<I.length;++E)M+=I[E]<<8,I[E]=M%_,M=M/_|0;for(;M>0;)I.push(M%_),M=M/_|0}var S="";for(d=0;u.at(d)===0&&d<u.length()-1;++d)S+=x;for(d=I.length-1;d>=0;--d)S+=f[I[d]];return S}var Rp=ht,Np=UC,se=Rp.util=Rp.util||{};(function(){if(typeof Ve<"u"&&Ve.nextTick&&!Ve.browser){se.nextTick=Ve.nextTick,typeof setImmediate=="function"?se.setImmediate=setImmediate:se.setImmediate=se.nextTick;return}if(typeof setImmediate=="function"){se.setImmediate=function(){return setImmediate.apply(void 0,arguments)},se.nextTick=function(E){return setImmediate(E)};return}if(se.setImmediate=function(E){setTimeout(E,0)},typeof window<"u"&&typeof window.postMessage=="function"){let E=function(M){if(M.source===window&&M.data===u){M.stopPropagation();var S=f.slice();f.length=0,S.forEach(function(A){A()})}};var u="forge.setImmediate",f=[];se.setImmediate=function(M){f.push(M),f.length===1&&window.postMessage(u,"*")},window.addEventListener("message",E,!0)}if(typeof MutationObserver<"u"){var d=Date.now(),_=!0,x=document.createElement("div"),f=[];new MutationObserver(function(){var M=f.slice();f.length=0,M.forEach(function(S){S()})}).observe(x,{attributes:!0});var I=se.setImmediate;se.setImmediate=function(M){Date.now()-d>15?(d=Date.now(),I(M)):(f.push(M),f.length===1&&x.setAttribute("a",_=!_))}}se.nextTick=se.setImmediate})();se.isNodejs=typeof Ve<"u"&&Ve.versions&&Ve.versions.node;se.globalScope=function(){return se.isNodejs?Me:typeof self>"u"?window:self}();se.isArray=Array.isArray||function(u){return Object.prototype.toString.call(u)==="[object Array]"};se.isArrayBuffer=function(u){return typeof ArrayBuffer<"u"&&u instanceof ArrayBuffer};se.isArrayBufferView=function(u){return u&&se.isArrayBuffer(u.buffer)&&u.byteLength!==void 0};function j0(u){if(!(u===8||u===16||u===24||u===32))throw new Error("Only 8, 16, 24, or 32 bits supported: "+u)}se.ByteBuffer=Ph;function Ph(u){if(this.data="",this.read=0,typeof u=="string")this.data=u;else if(se.isArrayBuffer(u)||se.isArrayBufferView(u))if(typeof pe.Buffer<"u"&&u instanceof pe.Buffer)this.data=u.toString("binary");else{var f=new Uint8Array(u);try{this.data=String.fromCharCode.apply(null,f)}catch{for(var d=0;d<f.length;++d)this.putByte(f[d])}}else(u instanceof Ph||typeof u=="object"&&typeof u.data=="string"&&typeof u.read=="number")&&(this.data=u.data,this.read=u.read);this._constructedStringLength=0}se.ByteStringBuffer=Ph;var qC=4096;se.ByteStringBuffer.prototype._optimizeConstructedString=function(u){this._constructedStringLength+=u,this._constructedStringLength>qC&&(this.data.substr(0,1),this._constructedStringLength=0)};se.ByteStringBuffer.prototype.length=function(){return this.data.length-this.read};se.ByteStringBuffer.prototype.isEmpty=function(){return this.length()<=0};se.ByteStringBuffer.prototype.putByte=function(u){return this.putBytes(String.fromCharCode(u))};se.ByteStringBuffer.prototype.fillWithByte=function(u,f){u=String.fromCharCode(u);for(var d=this.data;f>0;)f&1&&(d+=u),f>>>=1,f>0&&(u+=u);return this.data=d,this._optimizeConstructedString(f),this};se.ByteStringBuffer.prototype.putBytes=function(u){return this.data+=u,this._optimizeConstructedString(u.length),this};se.ByteStringBuffer.prototype.putString=function(u){return this.putBytes(se.encodeUtf8(u))};se.ByteStringBuffer.prototype.putInt16=function(u){return this.putBytes(String.fromCharCode(u>>8&255)+String.fromCharCode(u&255))};se.ByteStringBuffer.prototype.putInt24=function(u){return this.putBytes(String.fromCharCode(u>>16&255)+String.fromCharCode(u>>8&255)+String.fromCharCode(u&255))};se.ByteStringBuffer.prototype.putInt32=function(u){return this.putBytes(String.fromCharCode(u>>24&255)+String.fromCharCode(u>>16&255)+String.fromCharCode(u>>8&255)+String.fromCharCode(u&255))};se.ByteStringBuffer.prototype.putInt16Le=function(u){return this.putBytes(String.fromCharCode(u&255)+String.fromCharCode(u>>8&255))};se.ByteStringBuffer.prototype.putInt24Le=function(u){return this.putBytes(String.fromCharCode(u&255)+String.fromCharCode(u>>8&255)+String.fromCharCode(u>>16&255))};se.ByteStringBuffer.prototype.putInt32Le=function(u){return this.putBytes(String.fromCharCode(u&255)+String.fromCharCode(u>>8&255)+String.fromCharCode(u>>16&255)+String.fromCharCode(u>>24&255))};se.ByteStringBuffer.prototype.putInt=function(u,f){j0(f);var d="";do f-=8,d+=String.fromCharCode(u>>f&255);while(f>0);return this.putBytes(d)};se.ByteStringBuffer.prototype.putSignedInt=function(u,f){return u<0&&(u+=2<<f-1),this.putInt(u,f)};se.ByteStringBuffer.prototype.putBuffer=function(u){return this.putBytes(u.getBytes())};se.ByteStringBuffer.prototype.getByte=function(){return this.data.charCodeAt(this.read++)};se.ByteStringBuffer.prototype.getInt16=function(){var u=this.data.charCodeAt(this.read)<<8^this.data.charCodeAt(this.read+1);return this.read+=2,u};se.ByteStringBuffer.prototype.getInt24=function(){var u=this.data.charCodeAt(this.read)<<16^this.data.charCodeAt(this.read+1)<<8^this.data.charCodeAt(this.read+2);return this.read+=3,u};se.ByteStringBuffer.prototype.getInt32=function(){var u=this.data.charCodeAt(this.read)<<24^this.data.charCodeAt(this.read+1)<<16^this.data.charCodeAt(this.read+2)<<8^this.data.charCodeAt(this.read+3);return this.read+=4,u};se.ByteStringBuffer.prototype.getInt16Le=function(){var u=this.data.charCodeAt(this.read)^this.data.charCodeAt(this.read+1)<<8;return this.read+=2,u};se.ByteStringBuffer.prototype.getInt24Le=function(){var u=this.data.charCodeAt(this.read)^this.data.charCodeAt(this.read+1)<<8^this.data.charCodeAt(this.read+2)<<16;return this.read+=3,u};se.ByteStringBuffer.prototype.getInt32Le=function(){var u=this.data.charCodeAt(this.read)^this.data.charCodeAt(this.read+1)<<8^this.data.charCodeAt(this.read+2)<<16^this.data.charCodeAt(this.read+3)<<24;return this.read+=4,u};se.ByteStringBuffer.prototype.getInt=function(u){j0(u);var f=0;do f=(f<<8)+this.data.charCodeAt(this.read++),u-=8;while(u>0);return f};se.ByteStringBuffer.prototype.getSignedInt=function(u){var f=this.getInt(u),d=2<<u-2;return f>=d&&(f-=d<<1),f};se.ByteStringBuffer.prototype.getBytes=function(u){var f;return u?(u=Math.min(this.length(),u),f=this.data.slice(this.read,this.read+u),this.read+=u):u===0?f="":(f=this.read===0?this.data:this.data.slice(this.read),this.clear()),f};se.ByteStringBuffer.prototype.bytes=function(u){return typeof u>"u"?this.data.slice(this.read):this.data.slice(this.read,this.read+u)};se.ByteStringBuffer.prototype.at=function(u){return this.data.charCodeAt(this.read+u)};se.ByteStringBuffer.prototype.setAt=function(u,f){return this.data=this.data.substr(0,this.read+u)+String.fromCharCode(f)+this.data.substr(this.read+u+1),this};se.ByteStringBuffer.prototype.last=function(){return this.data.charCodeAt(this.data.length-1)};se.ByteStringBuffer.prototype.copy=function(){var u=se.createBuffer(this.data);return u.read=this.read,u};se.ByteStringBuffer.prototype.compact=function(){return this.read>0&&(this.data=this.data.slice(this.read),this.read=0),this};se.ByteStringBuffer.prototype.clear=function(){return this.data="",this.read=0,this};se.ByteStringBuffer.prototype.truncate=function(u){var f=Math.max(0,this.length()-u);return this.data=this.data.substr(this.read,f),this.read=0,this};se.ByteStringBuffer.prototype.toHex=function(){for(var u="",f=this.read;f<this.data.length;++f){var d=this.data.charCodeAt(f);d<16&&(u+="0"),u+=d.toString(16)}return u};se.ByteStringBuffer.prototype.toString=function(){return se.decodeUtf8(this.bytes())};function VC(u,f){f=f||{},this.read=f.readOffset||0,this.growSize=f.growSize||1024;var d=se.isArrayBuffer(u),_=se.isArrayBufferView(u);if(d||_){d?this.data=new DataView(u):this.data=new DataView(u.buffer,u.byteOffset,u.byteLength),this.write="writeOffset"in f?f.writeOffset:this.data.byteLength;return}this.data=new DataView(new ArrayBuffer(0)),this.write=0,u!=null&&this.putBytes(u),"writeOffset"in f&&(this.write=f.writeOffset)}se.DataBuffer=VC;se.DataBuffer.prototype.length=function(){return this.write-this.read};se.DataBuffer.prototype.isEmpty=function(){return this.length()<=0};se.DataBuffer.prototype.accommodate=function(u,f){if(this.length()>=u)return this;f=Math.max(f||this.growSize,u);var d=new Uint8Array(this.data.buffer,this.data.byteOffset,this.data.byteLength),_=new Uint8Array(this.length()+f);return _.set(d),this.data=new DataView(_.buffer),this};se.DataBuffer.prototype.putByte=function(u){return this.accommodate(1),this.data.setUint8(this.write++,u),this};se.DataBuffer.prototype.fillWithByte=function(u,f){this.accommodate(f);for(var d=0;d<f;++d)this.data.setUint8(u);return this};se.DataBuffer.prototype.putBytes=function(u,f){if(se.isArrayBufferView(u)){var d=new Uint8Array(u.buffer,u.byteOffset,u.byteLength),_=d.byteLength-d.byteOffset;this.accommodate(_);var x=new Uint8Array(this.data.buffer,this.write);return x.set(d),this.write+=_,this}if(se.isArrayBuffer(u)){var d=new Uint8Array(u);this.accommodate(d.byteLength);var x=new Uint8Array(this.data.buffer);return x.set(d,this.write),this.write+=d.byteLength,this}if(u instanceof se.DataBuffer||typeof u=="object"&&typeof u.read=="number"&&typeof u.write=="number"&&se.isArrayBufferView(u.data)){var d=new Uint8Array(u.data.byteLength,u.read,u.length());this.accommodate(d.byteLength);var x=new Uint8Array(u.data.byteLength,this.write);return x.set(d),this.write+=d.byteLength,this}if(u instanceof se.ByteStringBuffer&&(u=u.data,f="binary"),f=f||"binary",typeof u=="string"){var I;if(f==="hex")return this.accommodate(Math.ceil(u.length/2)),I=new Uint8Array(this.data.buffer,this.write),this.write+=se.binary.hex.decode(u,I,this.write),this;if(f==="base64")return this.accommodate(Math.ceil(u.length/4)*3),I=new Uint8Array(this.data.buffer,this.write),this.write+=se.binary.base64.decode(u,I,this.write),this;if(f==="utf8"&&(u=se.encodeUtf8(u),f="binary"),f==="binary"||f==="raw")return this.accommodate(u.length),I=new Uint8Array(this.data.buffer,this.write),this.write+=se.binary.raw.decode(I),this;if(f==="utf16")return this.accommodate(u.length*2),I=new Uint16Array(this.data.buffer,this.write),this.write+=se.text.utf16.encode(I),this;throw new Error("Invalid encoding: "+f)}throw Error("Invalid parameter: "+u)};se.DataBuffer.prototype.putBuffer=function(u){return this.putBytes(u),u.clear(),this};se.DataBuffer.prototype.putString=function(u){return this.putBytes(u,"utf16")};se.DataBuffer.prototype.putInt16=function(u){return this.accommodate(2),this.data.setInt16(this.write,u),this.write+=2,this};se.DataBuffer.prototype.putInt24=function(u){return this.accommodate(3),this.data.setInt16(this.write,u>>8&65535),this.data.setInt8(this.write,u>>16&255),this.write+=3,this};se.DataBuffer.prototype.putInt32=function(u){return this.accommodate(4),this.data.setInt32(this.write,u),this.write+=4,this};se.DataBuffer.prototype.putInt16Le=function(u){return this.accommodate(2),this.data.setInt16(this.write,u,!0),this.write+=2,this};se.DataBuffer.prototype.putInt24Le=function(u){return this.accommodate(3),this.data.setInt8(this.write,u>>16&255),this.data.setInt16(this.write,u>>8&65535,!0),this.write+=3,this};se.DataBuffer.prototype.putInt32Le=function(u){return this.accommodate(4),this.data.setInt32(this.write,u,!0),this.write+=4,this};se.DataBuffer.prototype.putInt=function(u,f){j0(f),this.accommodate(f/8);do f-=8,this.data.setInt8(this.write++,u>>f&255);while(f>0);return this};se.DataBuffer.prototype.putSignedInt=function(u,f){return j0(f),this.accommodate(f/8),u<0&&(u+=2<<f-1),this.putInt(u,f)};se.DataBuffer.prototype.getByte=function(){return this.data.getInt8(this.read++)};se.DataBuffer.prototype.getInt16=function(){var u=this.data.getInt16(this.read);return this.read+=2,u};se.DataBuffer.prototype.getInt24=function(){var u=this.data.getInt16(this.read)<<8^this.data.getInt8(this.read+2);return this.read+=3,u};se.DataBuffer.prototype.getInt32=function(){var u=this.data.getInt32(this.read);return this.read+=4,u};se.DataBuffer.prototype.getInt16Le=function(){var u=this.data.getInt16(this.read,!0);return this.read+=2,u};se.DataBuffer.prototype.getInt24Le=function(){var u=this.data.getInt8(this.read)^this.data.getInt16(this.read+1,!0)<<8;return this.read+=3,u};se.DataBuffer.prototype.getInt32Le=function(){var u=this.data.getInt32(this.read,!0);return this.read+=4,u};se.DataBuffer.prototype.getInt=function(u){j0(u);var f=0;do f=(f<<8)+this.data.getInt8(this.read++),u-=8;while(u>0);return f};se.DataBuffer.prototype.getSignedInt=function(u){var f=this.getInt(u),d=2<<u-2;return f>=d&&(f-=d<<1),f};se.DataBuffer.prototype.getBytes=function(u){var f;return u?(u=Math.min(this.length(),u),f=this.data.slice(this.read,this.read+u),this.read+=u):u===0?f="":(f=this.read===0?this.data:this.data.slice(this.read),this.clear()),f};se.DataBuffer.prototype.bytes=function(u){return typeof u>"u"?this.data.slice(this.read):this.data.slice(this.read,this.read+u)};se.DataBuffer.prototype.at=function(u){return this.data.getUint8(this.read+u)};se.DataBuffer.prototype.setAt=function(u,f){return this.data.setUint8(u,f),this};se.DataBuffer.prototype.last=function(){return this.data.getUint8(this.write-1)};se.DataBuffer.prototype.copy=function(){return new se.DataBuffer(this)};se.DataBuffer.prototype.compact=function(){if(this.read>0){var u=new Uint8Array(this.data.buffer,this.read),f=new Uint8Array(u.byteLength);f.set(u),this.data=new DataView(f),this.write-=this.read,this.read=0}return this};se.DataBuffer.prototype.clear=function(){return this.data=new DataView(new ArrayBuffer(0)),this.read=this.write=0,this};se.DataBuffer.prototype.truncate=function(u){return this.write=Math.max(0,this.length()-u),this.read=Math.min(this.read,this.write),this};se.DataBuffer.prototype.toHex=function(){for(var u="",f=this.read;f<this.data.byteLength;++f){var d=this.data.getUint8(f);d<16&&(u+="0"),u+=d.toString(16)}return u};se.DataBuffer.prototype.toString=function(u){var f=new Uint8Array(this.data,this.read,this.length());if(u=u||"utf8",u==="binary"||u==="raw")return se.binary.raw.encode(f);if(u==="hex")return se.binary.hex.encode(f);if(u==="base64")return se.binary.base64.encode(f);if(u==="utf8")return se.text.utf8.decode(f);if(u==="utf16")return se.text.utf16.decode(f);throw new Error("Invalid encoding: "+u)};se.createBuffer=function(u,f){return f=f||"raw",u!==void 0&&f==="utf8"&&(u=se.encodeUtf8(u)),new se.ByteBuffer(u)};se.fillString=function(u,f){for(var d="";f>0;)f&1&&(d+=u),f>>>=1,f>0&&(u+=u);return d};se.xorBytes=function(u,f,d){for(var _="",x="",I="",E=0,M=0;d>0;--d,++E)x=u.charCodeAt(E)^f.charCodeAt(E),M>=10&&(_+=I,I="",M=0),I+=String.fromCharCode(x),++M;return _+=I,_};se.hexToBytes=function(u){var f="",d=0;for(u.length&!0&&(d=1,f+=String.fromCharCode(parseInt(u[0],16)));d<u.length;d+=2)f+=String.fromCharCode(parseInt(u.substr(d,2),16));return f};se.bytesToHex=function(u){return se.createBuffer(u).toHex()};se.int32ToBytes=function(u){return String.fromCharCode(u>>24&255)+String.fromCharCode(u>>16&255)+String.fromCharCode(u>>8&255)+String.fromCharCode(u&255)};var gn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",mn=[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],d2="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";se.encode64=function(u,f){for(var d="",_="",x,I,E,M=0;M<u.length;)x=u.charCodeAt(M++),I=u.charCodeAt(M++),E=u.charCodeAt(M++),d+=gn.charAt(x>>2),d+=gn.charAt((x&3)<<4|I>>4),isNaN(I)?d+="==":(d+=gn.charAt((I&15)<<2|E>>6),d+=isNaN(E)?"=":gn.charAt(E&63)),f&&d.length>f&&(_+=d.substr(0,f)+`\r
`,d=d.substr(f));return _+=d,_};se.decode64=function(u){u=u.replace(/[^A-Za-z0-9\+\/\=]/g,"");for(var f="",d,_,x,I,E=0;E<u.length;)d=mn[u.charCodeAt(E++)-43],_=mn[u.charCodeAt(E++)-43],x=mn[u.charCodeAt(E++)-43],I=mn[u.charCodeAt(E++)-43],f+=String.fromCharCode(d<<2|_>>4),x!==64&&(f+=String.fromCharCode((_&15)<<4|x>>2),I!==64&&(f+=String.fromCharCode((x&3)<<6|I)));return f};se.encodeUtf8=function(u){return unescape(encodeURIComponent(u))};se.decodeUtf8=function(u){return decodeURIComponent(escape(u))};se.binary={raw:{},hex:{},base64:{},base58:{},baseN:{encode:Np.encode,decode:Np.decode}};se.binary.raw.encode=function(u){return String.fromCharCode.apply(null,u)};se.binary.raw.decode=function(u,f,d){var _=f;_||(_=new Uint8Array(u.length)),d=d||0;for(var x=d,I=0;I<u.length;++I)_[x++]=u.charCodeAt(I);return f?x-d:_};se.binary.hex.encode=se.bytesToHex;se.binary.hex.decode=function(u,f,d){var _=f;_||(_=new Uint8Array(Math.ceil(u.length/2))),d=d||0;var x=0,I=d;for(u.length&1&&(x=1,_[I++]=parseInt(u[0],16));x<u.length;x+=2)_[I++]=parseInt(u.substr(x,2),16);return f?I-d:_};se.binary.base64.encode=function(u,f){for(var d="",_="",x,I,E,M=0;M<u.byteLength;)x=u[M++],I=u[M++],E=u[M++],d+=gn.charAt(x>>2),d+=gn.charAt((x&3)<<4|I>>4),isNaN(I)?d+="==":(d+=gn.charAt((I&15)<<2|E>>6),d+=isNaN(E)?"=":gn.charAt(E&63)),f&&d.length>f&&(_+=d.substr(0,f)+`\r
`,d=d.substr(f));return _+=d,_};se.binary.base64.decode=function(u,f,d){var _=f;_||(_=new Uint8Array(Math.ceil(u.length/4)*3)),u=u.replace(/[^A-Za-z0-9\+\/\=]/g,""),d=d||0;for(var x,I,E,M,S=0,A=d;S<u.length;)x=mn[u.charCodeAt(S++)-43],I=mn[u.charCodeAt(S++)-43],E=mn[u.charCodeAt(S++)-43],M=mn[u.charCodeAt(S++)-43],_[A++]=x<<2|I>>4,E!==64&&(_[A++]=(I&15)<<4|E>>2,M!==64&&(_[A++]=(E&3)<<6|M));return f?A-d:_.subarray(0,A)};se.binary.base58.encode=function(u,f){return se.binary.baseN.encode(u,d2,f)};se.binary.base58.decode=function(u,f){return se.binary.baseN.decode(u,d2,f)};se.text={utf8:{},utf16:{}};se.text.utf8.encode=function(u,f,d){u=se.encodeUtf8(u);var _=f;_||(_=new Uint8Array(u.length)),d=d||0;for(var x=d,I=0;I<u.length;++I)_[x++]=u.charCodeAt(I);return f?x-d:_};se.text.utf8.decode=function(u){return se.decodeUtf8(String.fromCharCode.apply(null,u))};se.text.utf16.encode=function(u,f,d){var _=f;_||(_=new Uint8Array(u.length*2));var x=new Uint16Array(_.buffer);d=d||0;for(var I=d,E=d,M=0;M<u.length;++M)x[E++]=u.charCodeAt(M),I+=2;return f?I-d:_};se.text.utf16.decode=function(u){return String.fromCharCode.apply(null,new Uint16Array(u.buffer))};se.deflate=function(u,f,d){if(f=se.decode64(u.deflate(se.encode64(f)).rval),d){var _=2,x=f.charCodeAt(1);x&32&&(_=6),f=f.substring(_,f.length-4)}return f};se.inflate=function(u,f,d){var _=u.inflate(se.encode64(f)).rval;return _===null?null:se.decode64(_)};var Lh=function(u,f,d){if(!u)throw new Error("WebStorage not available.");var _;if(d===null?_=u.removeItem(f):(d=se.encode64(JSON.stringify(d)),_=u.setItem(f,d)),typeof _<"u"&&_.rval!==!0){var x=new Error(_.error.message);throw x.id=_.error.id,x.name=_.error.name,x}},kh=function(u,f){if(!u)throw new Error("WebStorage not available.");var d=u.getItem(f);if(u.init)if(d.rval===null){if(d.error){var _=new Error(d.error.message);throw _.id=d.error.id,_.name=d.error.name,_}d=null}else d=d.rval;return d!==null&&(d=JSON.parse(se.decode64(d))),d},KC=function(u,f,d,_){var x=kh(u,f);x===null&&(x={}),x[d]=_,Lh(u,f,x)},$C=function(u,f,d){var _=kh(u,f);return _!==null&&(_=d in _?_[d]:null),_},HC=function(u,f,d){var _=kh(u,f);if(_!==null&&d in _){delete _[d];var x=!0;for(var I in _){x=!1;break}x&&(_=null),Lh(u,f,_)}},GC=function(u,f){Lh(u,f,null)},Of=function(u,f,d){var _=null;typeof d>"u"&&(d=["web","flash"]);var x,I=!1,E=null;for(var M in d){x=d[M];try{if(x==="flash"||x==="both"){if(f[0]===null)throw new Error("Flash local storage not available.");_=u.apply(this,f),I=x==="flash"}(x==="web"||x==="both")&&(f[0]=localStorage,_=u.apply(this,f),I=!0)}catch(S){E=S}if(I)break}if(!I)throw E;return _};se.setItem=function(u,f,d,_,x){Of(KC,arguments,x)};se.getItem=function(u,f,d,_){return Of($C,arguments,_)};se.removeItem=function(u,f,d,_){Of(HC,arguments,_)};se.clearItems=function(u,f,d){Of(GC,arguments,d)};se.isEmpty=function(u){for(var f in u)if(u.hasOwnProperty(f))return!1;return!0};se.format=function(u){for(var f=/%./g,d,_,x=0,I=[],E=0;d=f.exec(u);){_=u.substring(E,f.lastIndex-2),_.length>0&&I.push(_),E=f.lastIndex;var M=d[0][1];switch(M){case"s":case"o":x<arguments.length?I.push(arguments[x+++1]):I.push("<?>");break;case"%":I.push("%");break;default:I.push("<%"+M+"?>")}}return I.push(u.substring(E)),I.join("")};se.formatNumber=function(u,f,d,_){var x=u,I=isNaN(f=Math.abs(f))?2:f,E=d===void 0?",":d,M=_===void 0?".":_,S=x<0?"-":"",A=parseInt(x=Math.abs(+x||0).toFixed(I),10)+"",T=A.length>3?A.length%3:0;return S+(T?A.substr(0,T)+M:"")+A.substr(T).replace(/(\d{3})(?=\d)/g,"$1"+M)+(I?E+Math.abs(x-A).toFixed(I).slice(2):"")};se.formatSize=function(u){return u>=1073741824?u=se.formatNumber(u/1073741824,2,".","")+" GiB":u>=1048576?u=se.formatNumber(u/1048576,2,".","")+" MiB":u>=1024?u=se.formatNumber(u/1024,0)+" KiB":u=se.formatNumber(u,0)+" bytes",u};se.bytesFromIP=function(u){return u.indexOf(".")!==-1?se.bytesFromIPv4(u):u.indexOf(":")!==-1?se.bytesFromIPv6(u):null};se.bytesFromIPv4=function(u){if(u=u.split("."),u.length!==4)return null;for(var f=se.createBuffer(),d=0;d<u.length;++d){var _=parseInt(u[d],10);if(isNaN(_))return null;f.putByte(_)}return f.getBytes()};se.bytesFromIPv6=function(u){var f=0;u=u.split(":").filter(function(E){return E.length===0&&++f,!0});for(var d=(8-u.length+f)*2,_=se.createBuffer(),x=0;x<8;++x){if(!u[x]||u[x].length===0){_.fillWithByte(0,d),d=0;continue}var I=se.hexToBytes(u[x]);I.length<2&&_.putByte(0),_.putBytes(I)}return _.getBytes()};se.bytesToIP=function(u){return u.length===4?se.bytesToIPv4(u):u.length===16?se.bytesToIPv6(u):null};se.bytesToIPv4=function(u){if(u.length!==4)return null;for(var f=[],d=0;d<u.length;++d)f.push(u.charCodeAt(d));return f.join(".")};se.bytesToIPv6=function(u){if(u.length!==16)return null;for(var f=[],d=[],_=0,x=0;x<u.length;x+=2){for(var I=se.bytesToHex(u[x]+u[x+1]);I[0]==="0"&&I!=="0";)I=I.substr(1);if(I==="0"){var E=d[d.length-1],M=f.length;!E||M!==E.end+1?d.push({start:M,end:M}):(E.end=M,E.end-E.start>d[_].end-d[_].start&&(_=d.length-1))}f.push(I)}if(d.length>0){var S=d[_];S.end-S.start>0&&(f.splice(S.start,S.end-S.start+1,""),S.start===0&&f.unshift(""),S.end===7&&f.push(""))}return f.join(":")};se.estimateCores=function(u,f){if(typeof u=="function"&&(f=u,u={}),u=u||{},"cores"in se&&!u.update)return f(null,se.cores);if(typeof navigator<"u"&&"hardwareConcurrency"in navigator&&navigator.hardwareConcurrency>0)return se.cores=navigator.hardwareConcurrency,f(null,se.cores);if(typeof Worker>"u")return se.cores=1,f(null,se.cores);if(typeof Blob>"u")return se.cores=2,f(null,se.cores);var d=URL.createObjectURL(new Blob(["(",function(){self.addEventListener("message",function(E){var M=Date.now(),S=M+4;self.postMessage({st:M,et:S})})}.toString(),")()"],{type:"application/javascript"}));_([],5,16);function _(E,M,S){if(M===0){var A=Math.floor(E.reduce(function(T,D){return T+D},0)/E.length);return se.cores=Math.max(1,A),URL.revokeObjectURL(d),f(null,se.cores)}x(S,function(T,D){E.push(I(S,D)),_(E,M-1,S)})}function x(E,M){for(var S=[],A=[],T=0;T<E;++T){var D=new Worker(d);D.addEventListener("message",function(O){if(A.push(O.data),A.length===E){for(var j=0;j<E;++j)S[j].terminate();M(null,A)}}),S.push(D)}for(var T=0;T<E;++T)S[T].postMessage(T)}function I(E,M){for(var S=[],A=0;A<E;++A)for(var T=M[A],D=S[A]=[],O=0;O<E;++O)if(A!==O){var j=M[O];(T.st>j.st&&T.st<j.et||j.st>T.st&&j.st<T.et)&&D.push(O)}return S.reduce(function($,W){return Math.max($,W.length)},0)}};var Jt=ht;Jt.cipher=Jt.cipher||{};Jt.cipher.algorithms=Jt.cipher.algorithms||{};Jt.cipher.createCipher=function(u,f){var d=u;if(typeof d=="string"&&(d=Jt.cipher.getAlgorithm(d),d&&(d=d())),!d)throw new Error("Unsupported algorithm: "+u);return new Jt.cipher.BlockCipher({algorithm:d,key:f,decrypt:!1})};Jt.cipher.createDecipher=function(u,f){var d=u;if(typeof d=="string"&&(d=Jt.cipher.getAlgorithm(d),d&&(d=d())),!d)throw new Error("Unsupported algorithm: "+u);return new Jt.cipher.BlockCipher({algorithm:d,key:f,decrypt:!0})};Jt.cipher.registerAlgorithm=function(u,f){u=u.toUpperCase(),Jt.cipher.algorithms[u]=f};Jt.cipher.getAlgorithm=function(u){return u=u.toUpperCase(),u in Jt.cipher.algorithms?Jt.cipher.algorithms[u]:null};var Uh=Jt.cipher.BlockCipher=function(u){this.algorithm=u.algorithm,this.mode=this.algorithm.mode,this.blockSize=this.mode.blockSize,this._finish=!1,this._input=null,this.output=null,this._op=u.decrypt?this.mode.decrypt:this.mode.encrypt,this._decrypt=u.decrypt,this.algorithm.initialize(u)};Uh.prototype.start=function(u){u=u||{};var f={};for(var d in u)f[d]=u[d];f.decrypt=this._decrypt,this._finish=!1,this._input=Jt.util.createBuffer(),this.output=u.output||Jt.util.createBuffer(),this.mode.start(f)};Uh.prototype.update=function(u){for(u&&this._input.putBuffer(u);!this._op.call(this.mode,this._input,this.output,this._finish)&&!this._finish;);this._input.compact()};Uh.prototype.finish=function(u){u&&(this.mode.name==="ECB"||this.mode.name==="CBC")&&(this.mode.pad=function(d){return u(this.blockSize,d,!1)},this.mode.unpad=function(d){return u(this.blockSize,d,!0)});var f={};return f.decrypt=this._decrypt,f.overflow=this._input.length()%this.blockSize,!(!this._decrypt&&this.mode.pad&&!this.mode.pad(this._input,f)||(this._finish=!0,this.update(),this._decrypt&&this.mode.unpad&&!this.mode.unpad(this.output,f))||this.mode.afterFinish&&!this.mode.afterFinish(this.output,f))};var Qt=ht;Qt.cipher=Qt.cipher||{};var pt=Qt.cipher.modes=Qt.cipher.modes||{};pt.ecb=function(u){u=u||{},this.name="ECB",this.cipher=u.cipher,this.blockSize=u.blockSize||16,this._ints=this.blockSize/4,this._inBlock=new Array(this._ints),this._outBlock=new Array(this._ints)};pt.ecb.prototype.start=function(u){};pt.ecb.prototype.encrypt=function(u,f,d){if(u.length()<this.blockSize&&!(d&&u.length()>0))return!0;for(var _=0;_<this._ints;++_)this._inBlock[_]=u.getInt32();this.cipher.encrypt(this._inBlock,this._outBlock);for(var _=0;_<this._ints;++_)f.putInt32(this._outBlock[_])};pt.ecb.prototype.decrypt=function(u,f,d){if(u.length()<this.blockSize&&!(d&&u.length()>0))return!0;for(var _=0;_<this._ints;++_)this._inBlock[_]=u.getInt32();this.cipher.decrypt(this._inBlock,this._outBlock);for(var _=0;_<this._ints;++_)f.putInt32(this._outBlock[_])};pt.ecb.prototype.pad=function(u,f){var d=u.length()===this.blockSize?this.blockSize:this.blockSize-u.length();return u.fillWithByte(d,d),!0};pt.ecb.prototype.unpad=function(u,f){if(f.overflow>0)return!1;var d=u.length(),_=u.at(d-1);return _>this.blockSize<<2?!1:(u.truncate(_),!0)};pt.cbc=function(u){u=u||{},this.name="CBC",this.cipher=u.cipher,this.blockSize=u.blockSize||16,this._ints=this.blockSize/4,this._inBlock=new Array(this._ints),this._outBlock=new Array(this._ints)};pt.cbc.prototype.start=function(u){if(u.iv===null){if(!this._prev)throw new Error("Invalid IV parameter.");this._iv=this._prev.slice(0)}else if("iv"in u)this._iv=Pf(u.iv,this.blockSize),this._prev=this._iv.slice(0);else throw new Error("Invalid IV parameter.")};pt.cbc.prototype.encrypt=function(u,f,d){if(u.length()<this.blockSize&&!(d&&u.length()>0))return!0;for(var _=0;_<this._ints;++_)this._inBlock[_]=this._prev[_]^u.getInt32();this.cipher.encrypt(this._inBlock,this._outBlock);for(var _=0;_<this._ints;++_)f.putInt32(this._outBlock[_]);this._prev=this._outBlock};pt.cbc.prototype.decrypt=function(u,f,d){if(u.length()<this.blockSize&&!(d&&u.length()>0))return!0;for(var _=0;_<this._ints;++_)this._inBlock[_]=u.getInt32();this.cipher.decrypt(this._inBlock,this._outBlock);for(var _=0;_<this._ints;++_)f.putInt32(this._prev[_]^this._outBlock[_]);this._prev=this._inBlock.slice(0)};pt.cbc.prototype.pad=function(u,f){var d=u.length()===this.blockSize?this.blockSize:this.blockSize-u.length();return u.fillWithByte(d,d),!0};pt.cbc.prototype.unpad=function(u,f){if(f.overflow>0)return!1;var d=u.length(),_=u.at(d-1);return _>this.blockSize<<2?!1:(u.truncate(_),!0)};pt.cfb=function(u){u=u||{},this.name="CFB",this.cipher=u.cipher,this.blockSize=u.blockSize||16,this._ints=this.blockSize/4,this._inBlock=null,this._outBlock=new Array(this._ints),this._partialBlock=new Array(this._ints),this._partialOutput=Qt.util.createBuffer(),this._partialBytes=0};pt.cfb.prototype.start=function(u){if(!("iv"in u))throw new Error("Invalid IV parameter.");this._iv=Pf(u.iv,this.blockSize),this._inBlock=this._iv.slice(0),this._partialBytes=0};pt.cfb.prototype.encrypt=function(u,f,d){var _=u.length();if(_===0)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),this._partialBytes===0&&_>=this.blockSize){for(var x=0;x<this._ints;++x)this._inBlock[x]=u.getInt32()^this._outBlock[x],f.putInt32(this._inBlock[x]);return}var I=(this.blockSize-_)%this.blockSize;I>0&&(I=this.blockSize-I),this._partialOutput.clear();for(var x=0;x<this._ints;++x)this._partialBlock[x]=u.getInt32()^this._outBlock[x],this._partialOutput.putInt32(this._partialBlock[x]);if(I>0)u.read-=this.blockSize;else for(var x=0;x<this._ints;++x)this._inBlock[x]=this._partialBlock[x];if(this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),I>0&&!d)return f.putBytes(this._partialOutput.getBytes(I-this._partialBytes)),this._partialBytes=I,!0;f.putBytes(this._partialOutput.getBytes(_-this._partialBytes)),this._partialBytes=0};pt.cfb.prototype.decrypt=function(u,f,d){var _=u.length();if(_===0)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),this._partialBytes===0&&_>=this.blockSize){for(var x=0;x<this._ints;++x)this._inBlock[x]=u.getInt32(),f.putInt32(this._inBlock[x]^this._outBlock[x]);return}var I=(this.blockSize-_)%this.blockSize;I>0&&(I=this.blockSize-I),this._partialOutput.clear();for(var x=0;x<this._ints;++x)this._partialBlock[x]=u.getInt32(),this._partialOutput.putInt32(this._partialBlock[x]^this._outBlock[x]);if(I>0)u.read-=this.blockSize;else for(var x=0;x<this._ints;++x)this._inBlock[x]=this._partialBlock[x];if(this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),I>0&&!d)return f.putBytes(this._partialOutput.getBytes(I-this._partialBytes)),this._partialBytes=I,!0;f.putBytes(this._partialOutput.getBytes(_-this._partialBytes)),this._partialBytes=0};pt.ofb=function(u){u=u||{},this.name="OFB",this.cipher=u.cipher,this.blockSize=u.blockSize||16,this._ints=this.blockSize/4,this._inBlock=null,this._outBlock=new Array(this._ints),this._partialOutput=Qt.util.createBuffer(),this._partialBytes=0};pt.ofb.prototype.start=function(u){if(!("iv"in u))throw new Error("Invalid IV parameter.");this._iv=Pf(u.iv,this.blockSize),this._inBlock=this._iv.slice(0),this._partialBytes=0};pt.ofb.prototype.encrypt=function(u,f,d){var _=u.length();if(u.length()===0)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),this._partialBytes===0&&_>=this.blockSize){for(var x=0;x<this._ints;++x)f.putInt32(u.getInt32()^this._outBlock[x]),this._inBlock[x]=this._outBlock[x];return}var I=(this.blockSize-_)%this.blockSize;I>0&&(I=this.blockSize-I),this._partialOutput.clear();for(var x=0;x<this._ints;++x)this._partialOutput.putInt32(u.getInt32()^this._outBlock[x]);if(I>0)u.read-=this.blockSize;else for(var x=0;x<this._ints;++x)this._inBlock[x]=this._outBlock[x];if(this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),I>0&&!d)return f.putBytes(this._partialOutput.getBytes(I-this._partialBytes)),this._partialBytes=I,!0;f.putBytes(this._partialOutput.getBytes(_-this._partialBytes)),this._partialBytes=0};pt.ofb.prototype.decrypt=pt.ofb.prototype.encrypt;pt.ctr=function(u){u=u||{},this.name="CTR",this.cipher=u.cipher,this.blockSize=u.blockSize||16,this._ints=this.blockSize/4,this._inBlock=null,this._outBlock=new Array(this._ints),this._partialOutput=Qt.util.createBuffer(),this._partialBytes=0};pt.ctr.prototype.start=function(u){if(!("iv"in u))throw new Error("Invalid IV parameter.");this._iv=Pf(u.iv,this.blockSize),this._inBlock=this._iv.slice(0),this._partialBytes=0};pt.ctr.prototype.encrypt=function(u,f,d){var _=u.length();if(_===0)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),this._partialBytes===0&&_>=this.blockSize)for(var x=0;x<this._ints;++x)f.putInt32(u.getInt32()^this._outBlock[x]);else{var I=(this.blockSize-_)%this.blockSize;I>0&&(I=this.blockSize-I),this._partialOutput.clear();for(var x=0;x<this._ints;++x)this._partialOutput.putInt32(u.getInt32()^this._outBlock[x]);if(I>0&&(u.read-=this.blockSize),this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),I>0&&!d)return f.putBytes(this._partialOutput.getBytes(I-this._partialBytes)),this._partialBytes=I,!0;f.putBytes(this._partialOutput.getBytes(_-this._partialBytes)),this._partialBytes=0}Lf(this._inBlock)};pt.ctr.prototype.decrypt=pt.ctr.prototype.encrypt;pt.gcm=function(u){u=u||{},this.name="GCM",this.cipher=u.cipher,this.blockSize=u.blockSize||16,this._ints=this.blockSize/4,this._inBlock=new Array(this._ints),this._outBlock=new Array(this._ints),this._partialOutput=Qt.util.createBuffer(),this._partialBytes=0,this._R=3774873600};pt.gcm.prototype.start=function(u){if(!("iv"in u))throw new Error("Invalid IV parameter.");var f=Qt.util.createBuffer(u.iv);this._cipherLength=0;var d;if("additionalData"in u?d=Qt.util.createBuffer(u.additionalData):d=Qt.util.createBuffer(),"tagLength"in u?this._tagLength=u.tagLength:this._tagLength=128,this._tag=null,u.decrypt&&(this._tag=Qt.util.createBuffer(u.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 _=f.length();if(_===12)this._j0=[f.getInt32(),f.getInt32(),f.getInt32(),1];else{for(this._j0=[0,0,0,0];f.length()>0;)this._j0=this.ghash(this._hashSubkey,this._j0,[f.getInt32(),f.getInt32(),f.getInt32(),f.getInt32()]);this._j0=this.ghash(this._hashSubkey,this._j0,[0,0].concat(yc(_*8)))}this._inBlock=this._j0.slice(0),Lf(this._inBlock),this._partialBytes=0,d=Qt.util.createBuffer(d),this._aDataLength=yc(d.length()*8);var x=d.length()%this.blockSize;for(x&&d.fillWithByte(0,this.blockSize-x),this._s=[0,0,0,0];d.length()>0;)this._s=this.ghash(this._hashSubkey,this._s,[d.getInt32(),d.getInt32(),d.getInt32(),d.getInt32()])};pt.gcm.prototype.encrypt=function(u,f,d){var _=u.length();if(_===0)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),this._partialBytes===0&&_>=this.blockSize){for(var x=0;x<this._ints;++x)f.putInt32(this._outBlock[x]^=u.getInt32());this._cipherLength+=this.blockSize}else{var I=(this.blockSize-_)%this.blockSize;I>0&&(I=this.blockSize-I),this._partialOutput.clear();for(var x=0;x<this._ints;++x)this._partialOutput.putInt32(u.getInt32()^this._outBlock[x]);if(I<=0||d){if(d){var E=_%this.blockSize;this._cipherLength+=E,this._partialOutput.truncate(this.blockSize-E)}else this._cipherLength+=this.blockSize;for(var x=0;x<this._ints;++x)this._outBlock[x]=this._partialOutput.getInt32();this._partialOutput.read-=this.blockSize}if(this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),I>0&&!d)return u.read-=this.blockSize,f.putBytes(this._partialOutput.getBytes(I-this._partialBytes)),this._partialBytes=I,!0;f.putBytes(this._partialOutput.getBytes(_-this._partialBytes)),this._partialBytes=0}this._s=this.ghash(this._hashSubkey,this._s,this._outBlock),Lf(this._inBlock)};pt.gcm.prototype.decrypt=function(u,f,d){var _=u.length();if(_<this.blockSize&&!(d&&_>0))return!0;this.cipher.encrypt(this._inBlock,this._outBlock),Lf(this._inBlock),this._hashBlock[0]=u.getInt32(),this._hashBlock[1]=u.getInt32(),this._hashBlock[2]=u.getInt32(),this._hashBlock[3]=u.getInt32(),this._s=this.ghash(this._hashSubkey,this._s,this._hashBlock);for(var x=0;x<this._ints;++x)f.putInt32(this._outBlock[x]^this._hashBlock[x]);_<this.blockSize?this._cipherLength+=_%this.blockSize:this._cipherLength+=this.blockSize};pt.gcm.prototype.afterFinish=function(u,f){var d=!0;f.decrypt&&f.overflow&&u.truncate(this.blockSize-f.overflow),this.tag=Qt.util.createBuffer();var _=this._aDataLength.concat(yc(this._cipherLength*8));this._s=this.ghash(this._hashSubkey,this._s,_);var x=[];this.cipher.encrypt(this._j0,x);for(var I=0;I<this._ints;++I)this.tag.putInt32(this._s[I]^x[I]);return this.tag.truncate(this.tag.length()%(this._tagLength/8)),f.decrypt&&this.tag.bytes()!==this._tag&&(d=!1),d};pt.gcm.prototype.multiply=function(u,f){for(var d=[0,0,0,0],_=f.slice(0),x=0;x<128;++x){var I=u[x/32|0]&1<<31-x%32;I&&(d[0]^=_[0],d[1]^=_[1],d[2]^=_[2],d[3]^=_[3]),this.pow(_,_)}return d};pt.gcm.prototype.pow=function(u,f){for(var d=u[3]&1,_=3;_>0;--_)f[_]=u[_]>>>1|(u[_-1]&1)<<31;f[0]=u[0]>>>1,d&&(f[0]^=this._R)};pt.gcm.prototype.tableMultiply=function(u){for(var f=[0,0,0,0],d=0;d<32;++d){var _=d/8|0,x=u[_]>>>(7-d%8)*4&15,I=this._m[d][x];f[0]^=I[0],f[1]^=I[1],f[2]^=I[2],f[3]^=I[3]}return f};pt.gcm.prototype.ghash=function(u,f,d){return f[0]^=d[0],f[1]^=d[1],f[2]^=d[2],f[3]^=d[3],this.tableMultiply(f)};pt.gcm.prototype.generateHashTable=function(u,f){for(var d=8/f,_=4*d,x=16*d,I=new Array(x),E=0;E<x;++E){var M=[0,0,0,0],S=E/_|0,A=(_-1-E%_)*f;M[S]=1<<f-1<<A,I[E]=this.generateSubHashTable(this.multiply(M,u),f)}return I};pt.gcm.prototype.generateSubHashTable=function(u,f){var d=1<<f,_=d>>>1,x=new Array(d);x[_]=u.slice(0);for(var I=_>>>1;I>0;)this.pow(x[2*I],x[I]=[]),I>>=1;for(I=2;I<_;){for(var E=1;E<I;++E){var M=x[I],S=x[E];x[I+E]=[M[0]^S[0],M[1]^S[1],M[2]^S[2],M[3]^S[3]]}I*=2}for(x[0]=[0,0,0,0],I=_+1;I<d;++I){var A=x[I^_];x[I]=[u[0]^A[0],u[1]^A[1],u[2]^A[2],u[3]^A[3]]}return x};function Pf(u,f){if(typeof u=="string"&&(u=Qt.util.createBuffer(u)),Qt.util.isArray(u)&&u.length>4){var d=u;u=Qt.util.createBuffer();for(var _=0;_<d.length;++_)u.putByte(d[_])}if(u.length()<f)throw new Error("Invalid IV length; got "+u.length()+" bytes and expected "+f+" bytes.");if(!Qt.util.isArray(u)){for(var x=[],I=f/4,_=0;_<I;++_)x.push(u.getInt32());u=x}return u}function Lf(u){u[u.length-1]=u[u.length-1]+1&4294967295}function yc(u){return[u/4294967296|0,u&4294967295]}var Lt=ht;Lt.aes=Lt.aes||{};Lt.aes.startEncrypting=function(u,f,d,_){var x=kf({key:u,output:d,decrypt:!1,mode:_});return x.start(f),x};Lt.aes.createEncryptionCipher=function(u,f){return kf({key:u,output:null,decrypt:!1,mode:f})};Lt.aes.startDecrypting=function(u,f,d,_){var x=kf({key:u,output:d,decrypt:!0,mode:_});return x.start(f),x};Lt.aes.createDecryptionCipher=function(u,f){return kf({key:u,output:null,decrypt:!0,mode:f})};Lt.aes.Algorithm=function(u,f){Fh||v2();var d=this;d.name=u,d.mode=new f({blockSize:16,cipher:{encrypt:function(_,x){return mc(d._w,_,x,!1)},decrypt:function(_,x){return mc(d._w,_,x,!0)}}}),d._init=!1};Lt.aes.Algorithm.prototype.initialize=function(u){if(!this._init){var f=u.key,d;if(typeof f=="string"&&(f.length===16||f.length===24||f.length===32))f=Lt.util.createBuffer(f);else if(Lt.util.isArray(f)&&(f.length===16||f.length===24||f.length===32)){d=f,f=Lt.util.createBuffer();for(var _=0;_<d.length;++_)f.putByte(d[_])}if(!Lt.util.isArray(f)){d=f,f=[];var x=d.length();if(x===16||x===24||x===32){x=x>>>2;for(var _=0;_<x;++_)f.push(d.getInt32())}}if(!Lt.util.isArray(f)||!(f.length===4||f.length===6||f.length===8))throw new Error("Invalid key parameter.");var I=this.mode.name,E=["CFB","OFB","CTR","GCM"].indexOf(I)!==-1;this._w=y2(f,u.decrypt&&!E),this._init=!0}};Lt.aes._expandKey=function(u,f){return Fh||v2(),y2(u,f)};Lt.aes._updateBlock=mc;Ja("AES-ECB",Lt.cipher.modes.ecb);Ja("AES-CBC",Lt.cipher.modes.cbc);Ja("AES-CFB",Lt.cipher.modes.cfb);Ja("AES-OFB",Lt.cipher.modes.ofb);Ja("AES-CTR",Lt.cipher.modes.ctr);Ja("AES-GCM",Lt.cipher.modes.gcm);function Ja(u,f){var d=function(){return new Lt.aes.Algorithm(u,f)};Lt.cipher.registerAlgorithm(u,d)}var Fh=!1,da=4,vr,gc,p2,jn,Ei;function v2(){Fh=!0,p2=[0,1,2,4,8,16,32,64,128,27,54];for(var u=new Array(256),f=0;f<128;++f)u[f]=f<<1,u[f+128]=f+128<<1^283;vr=new Array(256),gc=new Array(256),jn=new Array(4),Ei=new Array(4);for(var f=0;f<4;++f)jn[f]=new Array(256),Ei[f]=new Array(256);for(var d=0,_=0,x,I,E,M,S,A,T,f=0;f<256;++f){M=_^_<<1^_<<2^_<<3^_<<4,M=M>>8^M&255^99,vr[d]=M,gc[M]=d,S=u[M],x=u[d],I=u[x],E=u[I],A=S<<24^M<<16^M<<8^(M^S),T=(x^I^E)<<24^(d^E)<<16^(d^I^E)<<8^(d^x^E);for(var D=0;D<4;++D)jn[D][d]=A,Ei[D][M]=T,A=A<<24|A>>>8,T=T<<24|T>>>8;d===0?d=_=1:(d=x^u[u[u[x^E]]],_^=u[u[_]])}}function y2(u,f){for(var d=u.slice(0),_,x=1,I=d.length,E=I+6+1,M=da*E,S=I;S<M;++S)_=d[S-1],S%I===0?(_=vr[_>>>16&255]<<24^vr[_>>>8&255]<<16^vr[_&255]<<8^vr[_>>>24]^p2[x]<<24,x++):I>6&&S%I===4&&(_=vr[_>>>24]<<24^vr[_>>>16&255]<<16^vr[_>>>8&255]<<8^vr[_&255]),d[S]=d[S-I]^_;if(f){var A,T=Ei[0],D=Ei[1],O=Ei[2],j=Ei[3],$=d.slice(0);M=d.length;for(var S=0,W=M-da;S<M;S+=da,W-=da)if(S===0||S===M-da)$[S]=d[W],$[S+1]=d[W+3],$[S+2]=d[W+2],$[S+3]=d[W+1];else for(var Q=0;Q<da;++Q)A=d[W+Q],$[S+(3&-Q)]=T[vr[A>>>24]]^D[vr[A>>>16&255]]^O[vr[A>>>8&255]]^j[vr[A&255]];d=$}return d}function mc(u,f,d,_){var x=u.length/4-1,I,E,M,S,A;_?(I=Ei[0],E=Ei[1],M=Ei[2],S=Ei[3],A=gc):(I=jn[0],E=jn[1],M=jn[2],S=jn[3],A=vr);var T,D,O,j,$,W,Q;T=f[0]^u[0],D=f[_?3:1]^u[1],O=f[2]^u[2],j=f[_?1:3]^u[3];for(var X=3,Y=1;Y<x;++Y)$=I[T>>>24]^E[D>>>16&255]^M[O>>>8&255]^S[j&255]^u[++X],W=I[D>>>24]^E[O>>>16&255]^M[j>>>8&255]^S[T&255]^u[++X],Q=I[O>>>24]^E[j>>>16&255]^M[T>>>8&255]^S[D&255]^u[++X],j=I[j>>>24]^E[T>>>16&255]^M[D>>>8&255]^S[O&255]^u[++X],T=$,D=W,O=Q;d[0]=A[T>>>24]<<24^A[D>>>16&255]<<16^A[O>>>8&255]<<8^A[j&255]^u[++X],d[_?3:1]=A[D>>>24]<<24^A[O>>>16&255]<<16^A[j>>>8&255]<<8^A[T&255]^u[++X],d[2]=A[O>>>24]<<24^A[j>>>16&255]<<16^A[T>>>8&255]<<8^A[D&255]^u[++X],d[_?1:3]=A[j>>>24]<<24^A[T>>>16&255]<<16^A[D>>>8&255]<<8^A[O&255]^u[++X]}function kf(u){u=u||{};var f=(u.mode||"CBC").toUpperCase(),d="AES-"+f,_;u.decrypt?_=Lt.cipher.createDecipher(d,u.key):_=Lt.cipher.createCipher(d,u.key);var x=_.start;return _.start=function(I,E){var M=null;E instanceof Lt.util.ByteBuffer&&(M=E,E={}),E=E||{},E.output=M,E.iv=I,x.call(_,E)},_}var E0=ht;E0.pki=E0.pki||{};var bc=E0.pki.oids=E0.oids=E0.oids||{};function Se(u,f){bc[u]=f,bc[f]=u}function wt(u,f){bc[u]=f}Se("1.2.840.113549.1.1.1","rsaEncryption");Se("1.2.840.113549.1.1.4","md5WithRSAEncryption");Se("1.2.840.113549.1.1.5","sha1WithRSAEncryption");Se("1.2.840.113549.1.1.7","RSAES-OAEP");Se("1.2.840.113549.1.1.8","mgf1");Se("1.2.840.113549.1.1.9","pSpecified");Se("1.2.840.113549.1.1.10","RSASSA-PSS");Se("1.2.840.113549.1.1.11","sha256WithRSAEncryption");Se("1.2.840.113549.1.1.12","sha384WithRSAEncryption");Se("1.2.840.113549.1.1.13","sha512WithRSAEncryption");Se("1.3.101.112","EdDSA25519");Se("1.2.840.10040.4.3","dsa-with-sha1");Se("1.3.14.3.2.7","desCBC");Se("1.3.14.3.2.26","sha1");Se("1.3.14.3.2.29","sha1WithRSASignature");Se("2.16.840.1.101.3.4.2.1","sha256");Se("2.16.840.1.101.3.4.2.2","sha384");Se("2.16.840.1.101.3.4.2.3","sha512");Se("2.16.840.1.101.3.4.2.4","sha224");Se("2.16.840.1.101.3.4.2.5","sha512-224");Se("2.16.840.1.101.3.4.2.6","sha512-256");Se("1.2.840.113549.2.2","md2");Se("1.2.840.113549.2.5","md5");Se("1.2.840.113549.1.7.1","data");Se("1.2.840.113549.1.7.2","signedData");Se("1.2.840.113549.1.7.3","envelopedData");Se("1.2.840.113549.1.7.4","signedAndEnvelopedData");Se("1.2.840.113549.1.7.5","digestedData");Se("1.2.840.113549.1.7.6","encryptedData");Se("1.2.840.113549.1.9.1","emailAddress");Se("1.2.840.113549.1.9.2","unstructuredName");Se("1.2.840.113549.1.9.3","contentType");Se("1.2.840.113549.1.9.4","messageDigest");Se("1.2.840.113549.1.9.5","signingTime");Se("1.2.840.113549.1.9.6","counterSignature");Se("1.2.840.113549.1.9.7","challengePassword");Se("1.2.840.113549.1.9.8","unstructuredAddress");Se("1.2.840.113549.1.9.14","extensionRequest");Se("1.2.840.113549.1.9.20","friendlyName");Se("1.2.840.113549.1.9.21","localKeyId");Se("1.2.840.113549.1.9.22.1","x509Certificate");Se("1.2.840.113549.1.12.10.1.1","keyBag");Se("1.2.840.113549.1.12.10.1.2","pkcs8ShroudedKeyBag");Se("1.2.840.113549.1.12.10.1.3","certBag");Se("1.2.840.113549.1.12.10.1.4","crlBag");Se("1.2.840.113549.1.12.10.1.5","secretBag");Se("1.2.840.113549.1.12.10.1.6","safeContentsBag");Se("1.2.840.113549.1.5.13","pkcs5PBES2");Se("1.2.840.113549.1.5.12","pkcs5PBKDF2");Se("1.2.840.113549.1.12.1.1","pbeWithSHAAnd128BitRC4");Se("1.2.840.113549.1.12.1.2","pbeWithSHAAnd40BitRC4");Se("1.2.840.113549.1.12.1.3","pbeWithSHAAnd3-KeyTripleDES-CBC");Se("1.2.840.113549.1.12.1.4","pbeWithSHAAnd2-KeyTripleDES-CBC");Se("1.2.840.113549.1.12.1.5","pbeWithSHAAnd128BitRC2-CBC");Se("1.2.840.113549.1.12.1.6","pbewithSHAAnd40BitRC2-CBC");Se("1.2.840.113549.2.7","hmacWithSHA1");Se("1.2.840.113549.2.8","hmacWithSHA224");Se("1.2.840.113549.2.9","hmacWithSHA256");Se("1.2.840.113549.2.10","hmacWithSHA384");Se("1.2.840.113549.2.11","hmacWithSHA512");Se("1.2.840.113549.3.7","des-EDE3-CBC");Se("2.16.840.1.101.3.4.1.2","aes128-CBC");Se("2.16.840.1.101.3.4.1.22","aes192-CBC");Se("2.16.840.1.101.3.4.1.42","aes256-CBC");Se("2.5.4.3","commonName");Se("2.5.4.4","surname");Se("2.5.4.5","serialNumber");Se("2.5.4.6","countryName");Se("2.5.4.7","localityName");Se("2.5.4.8","stateOrProvinceName");Se("2.5.4.9","streetAddress");Se("2.5.4.10","organizationName");Se("2.5.4.11","organizationalUnitName");Se("2.5.4.12","title");Se("2.5.4.13","description");Se("2.5.4.15","businessCategory");Se("2.5.4.17","postalCode");Se("2.5.4.42","givenName");Se("1.3.6.1.4.1.311.60.2.1.2","jurisdictionOfIncorporationStateOrProvinceName");Se("1.3.6.1.4.1.311.60.2.1.3","jurisdictionOfIncorporationCountryName");Se("2.16.840.1.113730.1.1","nsCertType");Se("2.16.840.1.113730.1.13","nsComment");wt("2.5.29.1","authorityKeyIdentifier");wt("2.5.29.2","keyAttributes");wt("2.5.29.3","certificatePolicies");wt("2.5.29.4","keyUsageRestriction");wt("2.5.29.5","policyMapping");wt("2.5.29.6","subtreesConstraint");wt("2.5.29.7","subjectAltName");wt("2.5.29.8","issuerAltName");wt("2.5.29.9","subjectDirectoryAttributes");wt("2.5.29.10","basicConstraints");wt("2.5.29.11","nameConstraints");wt("2.5.29.12","policyConstraints");wt("2.5.29.13","basicConstraints");Se("2.5.29.14","subjectKeyIdentifier");Se("2.5.29.15","keyUsage");wt("2.5.29.16","privateKeyUsagePeriod");Se("2.5.29.17","subjectAltName");Se("2.5.29.18","issuerAltName");Se("2.5.29.19","basicConstraints");wt("2.5.29.20","cRLNumber");wt("2.5.29.21","cRLReason");wt("2.5.29.22","expirationDate");wt("2.5.29.23","instructionCode");wt("2.5.29.24","invalidityDate");wt("2.5.29.25","cRLDistributionPoints");wt("2.5.29.26","issuingDistributionPoint");wt("2.5.29.27","deltaCRLIndicator");wt("2.5.29.28","issuingDistributionPoint");wt("2.5.29.29","certificateIssuer");wt("2.5.29.30","nameConstraints");Se("2.5.29.31","cRLDistributionPoints");Se("2.5.29.32","certificatePolicies");wt("2.5.29.33","policyMappings");wt("2.5.29.34","policyConstraints");Se("2.5.29.35","authorityKeyIdentifier");wt("2.5.29.36","policyConstraints");Se("2.5.29.37","extKeyUsage");wt("2.5.29.46","freshestCRL");wt("2.5.29.54","inhibitAnyPolicy");Se("1.3.6.1.4.1.11129.2.4.2","timestampList");Se("1.3.6.1.5.5.7.1.1","authorityInfoAccess");Se("1.3.6.1.5.5.7.3.1","serverAuth");Se("1.3.6.1.5.5.7.3.2","clientAuth");Se("1.3.6.1.5.5.7.3.3","codeSigning");Se("1.3.6.1.5.5.7.3.4","emailProtection");Se("1.3.6.1.5.5.7.3.8","timeStamping");var Ut=ht,Ie=Ut.asn1=Ut.asn1||{};Ie.Class={UNIVERSAL:0,APPLICATION:64,CONTEXT_SPECIFIC:128,PRIVATE:192};Ie.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};Ie.create=function(u,f,d,_,x){if(Ut.util.isArray(_)){for(var I=[],E=0;E<_.length;++E)_[E]!==void 0&&I.push(_[E]);_=I}var M={tagClass:u,type:f,constructed:d,composed:d||Ut.util.isArray(_),value:_};return x&&"bitStringContents"in x&&(M.bitStringContents=x.bitStringContents,M.original=Ie.copy(M)),M};Ie.copy=function(u,f){var d;if(Ut.util.isArray(u)){d=[];for(var _=0;_<u.length;++_)d.push(Ie.copy(u[_],f));return d}return typeof u=="string"?u:(d={tagClass:u.tagClass,type:u.type,constructed:u.constructed,composed:u.composed,value:Ie.copy(u.value,f)},f&&!f.excludeBitStringContents&&(d.bitStringContents=u.bitStringContents),d)};Ie.equals=function(u,f,d){if(Ut.util.isArray(u)){if(!Ut.util.isArray(f)||u.length!==f.length)return!1;for(var _=0;_<u.length;++_)if(!Ie.equals(u[_],f[_]))return!1;return!0}if(typeof u!=typeof f)return!1;if(typeof u=="string")return u===f;var x=u.tagClass===f.tagClass&&u.type===f.type&&u.constructed===f.constructed&&u.composed===f.composed&&Ie.equals(u.value,f.value);return d&&d.includeBitStringContents&&(x=x&&u.bitStringContents===f.bitStringContents),x};Ie.getBerValueLength=function(u){var f=u.getByte();if(f!==128){var d,_=f&128;return _?d=u.getInt((f&127)<<3):d=f,d}};function b0(u,f,d){if(d>f){var _=new Error("Too few bytes to parse DER.");throw _.available=u.length(),_.remaining=f,_.requested=d,_}}var zC=function(u,f){var d=u.getByte();if(f--,d!==128){var _,x=d&128;if(!x)_=d;else{var I=d&127;b0(u,f,I),_=u.getInt(I<<3)}if(_<0)throw new Error("Negative length: "+_);return _}};Ie.fromDer=function(u,f){f===void 0&&(f={strict:!0,parseAllBytes:!0,decodeBitStrings:!0}),typeof f=="boolean"&&(f={strict:f,parseAllBytes:!0,decodeBitStrings:!0}),"strict"in f||(f.strict=!0),"parseAllBytes"in f||(f.parseAllBytes=!0),"decodeBitStrings"in f||(f.decodeBitStrings=!0),typeof u=="string"&&(u=Ut.util.createBuffer(u));var d=u.length(),_=_s(u,u.length(),0,f);if(f.parseAllBytes&&u.length()!==0){var x=new Error("Unparsed DER bytes remain after ASN.1 parsing.");throw x.byteCount=d,x.remaining=u.length(),x}return _};function _s(u,f,d,_){var x;b0(u,f,2);var I=u.getByte();f--;var E=I&192,M=I&31;x=u.length();var S=zC(u,f);if(f-=x-u.length(),S!==void 0&&S>f){if(_.strict){var A=new Error("Too few bytes to read ASN.1 value.");throw A.available=u.length(),A.remaining=f,A.requested=S,A}S=f}var T,D,O=(I&32)===32;if(O)if(T=[],S===void 0)for(;;){if(b0(u,f,2),u.bytes(2)==="\0\0"){u.getBytes(2),f-=2;break}x=u.length(),T.push(_s(u,f,d+1,_)),f-=x-u.length()}else for(;S>0;)x=u.length(),T.push(_s(u,S,d+1,_)),f-=x-u.length(),S-=x-u.length();if(T===void 0&&E===Ie.Class.UNIVERSAL&&M===Ie.Type.BITSTRING&&(D=u.bytes(S)),T===void 0&&_.decodeBitStrings&&E===Ie.Class.UNIVERSAL&&M===Ie.Type.BITSTRING&&S>1){var j=u.read,$=f,W=0;if(M===Ie.Type.BITSTRING&&(b0(u,f,1),W=u.getByte(),f--),W===0)try{x=u.length();var Q={strict:!0,decodeBitStrings:!0},X=_s(u,f,d+1,Q),Y=x-u.length();f-=Y,M==Ie.Type.BITSTRING&&Y++;var ie=X.tagClass;Y===S&&(ie===Ie.Class.UNIVERSAL||ie===Ie.Class.CONTEXT_SPECIFIC)&&(T=[X])}catch{}T===void 0&&(u.read=j,f=$)}if(T===void 0){if(S===void 0){if(_.strict)throw new Error("Non-constructed ASN.1 object of indefinite length.");S=f}if(M===Ie.Type.BMPSTRING)for(T="";S>0;S-=2)b0(u,f,2),T+=String.fromCharCode(u.getInt16()),f-=2;else T=u.getBytes(S),f-=S}var oe=D===void 0?null:{bitStringContents:D};return Ie.create(E,M,O,T,oe)}Ie.toDer=function(u){var f=Ut.util.createBuffer(),d=u.tagClass|u.type,_=Ut.util.createBuffer(),x=!1;if("bitStringContents"in u&&(x=!0,u.original&&(x=Ie.equals(u,u.original))),x)_.putBytes(u.bitStringContents);else if(u.composed){u.constructed?d|=32:_.putByte(0);for(var I=0;I<u.value.length;++I)u.value[I]!==void 0&&_.putBuffer(Ie.toDer(u.value[I]))}else if(u.type===Ie.Type.BMPSTRING)for(var I=0;I<u.value.length;++I)_.putInt16(u.value.charCodeAt(I));else u.type===Ie.Type.INTEGER&&u.value.length>1&&(u.value.charCodeAt(0)===0&&!(u.value.charCodeAt(1)&128)||u.value.charCodeAt(0)===255&&(u.value.charCodeAt(1)&128)===128)?_.putBytes(u.value.substr(1)):_.putBytes(u.value);if(f.putByte(d),_.length()<=127)f.putByte(_.length()&127);else{var E=_.length(),M="";do M+=String.fromCharCode(E&255),E=E>>>8;while(E>0);f.putByte(M.length|128);for(var I=M.length-1;I>=0;--I)f.putByte(M.charCodeAt(I))}return f.putBuffer(_),f};Ie.oidToDer=function(u){var f=u.split("."),d=Ut.util.createBuffer();d.putByte(40*parseInt(f[0],10)+parseInt(f[1],10));for(var _,x,I,E,M=2;M<f.length;++M){_=!0,x=[],I=parseInt(f[M],10);do E=I&127,I=I>>>7,_||(E|=128),x.push(E),_=!1;while(I>0);for(var S=x.length-1;S>=0;--S)d.putByte(x[S])}return d};Ie.derToOid=function(u){var f;typeof u=="string"&&(u=Ut.util.createBuffer(u));var d=u.getByte();f=Math.floor(d/40)+"."+d%40;for(var _=0;u.length()>0;)d=u.getByte(),_=_<<7,d&128?_+=d&127:(f+="."+(_+d),_=0);return f};Ie.utcTimeToDate=function(u){var f=new Date,d=parseInt(u.substr(0,2),10);d=d>=50?1900+d:2e3+d;var _=parseInt(u.substr(2,2),10)-1,x=parseInt(u.substr(4,2),10),I=parseInt(u.substr(6,2),10),E=parseInt(u.substr(8,2),10),M=0;if(u.length>11){var S=u.charAt(10),A=10;S!=="+"&&S!=="-"&&(M=parseInt(u.substr(10,2),10),A+=2)}if(f.setUTCFullYear(d,_,x),f.setUTCHours(I,E,M,0),A&&(S=u.charAt(A),S==="+"||S==="-")){var T=parseInt(u.substr(A+1,2),10),D=parseInt(u.substr(A+4,2),10),O=T*60+D;O*=6e4,S==="+"?f.setTime(+f-O):f.setTime(+f+O)}return f};Ie.generalizedTimeToDate=function(u){var f=new Date,d=parseInt(u.substr(0,4),10),_=parseInt(u.substr(4,2),10)-1,x=parseInt(u.substr(6,2),10),I=parseInt(u.substr(8,2),10),E=parseInt(u.substr(10,2),10),M=parseInt(u.substr(12,2),10),S=0,A=0,T=!1;u.charAt(u.length-1)==="Z"&&(T=!0);var D=u.length-5,O=u.charAt(D);if(O==="+"||O==="-"){var j=parseInt(u.substr(D+1,2),10),$=parseInt(u.substr(D+4,2),10);A=j*60+$,A*=6e4,O==="+"&&(A*=-1),T=!0}return u.charAt(14)==="."&&(S=parseFloat(u.substr(14),10)*1e3),T?(f.setUTCFullYear(d,_,x),f.setUTCHours(I,E,M,S),f.setTime(+f+A)):(f.setFullYear(d,_,x),f.setHours(I,E,M,S)),f};Ie.dateToUtcTime=function(u){if(typeof u=="string")return u;var f="",d=[];d.push((""+u.getUTCFullYear()).substr(2)),d.push(""+(u.getUTCMonth()+1)),d.push(""+u.getUTCDate()),d.push(""+u.getUTCHours()),d.push(""+u.getUTCMinutes()),d.push(""+u.getUTCSeconds());for(var _=0;_<d.length;++_)d[_].length<2&&(f+="0"),f+=d[_];return f+="Z",f};Ie.dateToGeneralizedTime=function(u){if(typeof u=="string")return u;var f="",d=[];d.push(""+u.getUTCFullYear()),d.push(""+(u.getUTCMonth()+1)),d.push(""+u.getUTCDate()),d.push(""+u.getUTCHours()),d.push(""+u.getUTCMinutes()),d.push(""+u.getUTCSeconds());for(var _=0;_<d.length;++_)d[_].length<2&&(f+="0"),f+=d[_];return f+="Z",f};Ie.integerToDer=function(u){var f=Ut.util.createBuffer();if(u>=-128&&u<128)return f.putSignedInt(u,8);if(u>=-32768&&u<32768)return f.putSignedInt(u,16);if(u>=-8388608&&u<8388608)return f.putSignedInt(u,24);if(u>=-2147483648&&u<2147483648)return f.putSignedInt(u,32);var d=new Error("Integer too large; max is 32-bits.");throw d.integer=u,d};Ie.derToInteger=function(u){typeof u=="string"&&(u=Ut.util.createBuffer(u));var f=u.length()*8;if(f>32)throw new Error("Integer too large; max is 32-bits.");return u.getSignedInt(f)};Ie.validate=function(u,f,d,_){var x=!1;if((u.tagClass===f.tagClass||typeof f.tagClass>"u")&&(u.type===f.type||typeof f.type>"u"))if(u.constructed===f.constructed||typeof f.constructed>"u"){if(x=!0,f.value&&Ut.util.isArray(f.value))for(var I=0,E=0;x&&E<f.value.length;++E)x=f.value[E].optional||!1,u.value[I]&&(x=Ie.validate(u.value[I],f.value[E],d,_),x?++I:f.value[E].optional&&(x=!0)),!x&&_&&_.push("["+f.name+'] Tag class "'+f.tagClass+'", type "'+f.type+'" expected value length "'+f.value.length+'", got "'+u.value.length+'"');if(x&&d&&(f.capture&&(d[f.capture]=u.value),f.captureAsn1&&(d[f.captureAsn1]=u),f.captureBitStringContents&&"bitStringContents"in u&&(d[f.captureBitStringContents]=u.bitStringContents),f.captureBitStringValue&&"bitStringContents"in u))if(u.bitStringContents.length<2)d[f.captureBitStringValue]="";else{var M=u.bitStringContents.charCodeAt(0);if(M!==0)throw new Error("captureBitStringValue only supported for zero unused bits");d[f.captureBitStringValue]=u.bitStringContents.slice(1)}}else _&&_.push("["+f.name+'] Expected constructed "'+f.constructed+'", got "'+u.constructed+'"');else _&&(u.tagClass!==f.tagClass&&_.push("["+f.name+'] Expected tag class "'+f.tagClass+'", got "'+u.tagClass+'"'),u.type!==f.type&&_.push("["+f.name+'] Expected type "'+f.type+'", got "'+u.type+'"'));return x};var Dp=/[^\\u0000-\\u00ff]/;Ie.prettyPrint=function(u,f,d){var _="";f=f||0,d=d||2,f>0&&(_+=`
`);for(var x="",I=0;I<f*d;++I)x+=" ";switch(_+=x+"Tag: ",u.tagClass){case Ie.Class.UNIVERSAL:_+="Universal:";break;case Ie.Class.APPLICATION:_+="Application:";break;case Ie.Class.CONTEXT_SPECIFIC:_+="Context-Specific:";break;case Ie.Class.PRIVATE:_+="Private:";break}if(u.tagClass===Ie.Class.UNIVERSAL)switch(_+=u.type,u.type){case Ie.Type.NONE:_+=" (None)";break;case Ie.Type.BOOLEAN:_+=" (Boolean)";break;case Ie.Type.INTEGER:_+=" (Integer)";break;case Ie.Type.BITSTRING:_+=" (Bit string)";break;case Ie.Type.OCTETSTRING:_+=" (Octet string)";break;case Ie.Type.NULL:_+=" (Null)";break;case Ie.Type.OID:_+=" (Object Identifier)";break;case Ie.Type.ODESC:_+=" (Object Descriptor)";break;case Ie.Type.EXTERNAL:_+=" (External or Instance of)";break;case Ie.Type.REAL:_+=" (Real)";break;case Ie.Type.ENUMERATED:_+=" (Enumerated)";break;case Ie.Type.EMBEDDED:_+=" (Embedded PDV)";break;case Ie.Type.UTF8:_+=" (UTF8)";break;case Ie.Type.ROID:_+=" (Relative Object Identifier)";break;case Ie.Type.SEQUENCE:_+=" (Sequence)";break;case Ie.Type.SET:_+=" (Set)";break;case Ie.Type.PRINTABLESTRING:_+=" (Printable String)";break;case Ie.Type.IA5String:_+=" (IA5String (ASCII))";break;case Ie.Type.UTCTIME:_+=" (UTC time)";break;case Ie.Type.GENERALIZEDTIME:_+=" (Generalized time)";break;case Ie.Type.BMPSTRING:_+=" (BMP String)";break}else _+=u.type;if(_+=`
`,_+=x+"Constructed: "+u.constructed+`
`,u.composed){for(var E=0,M="",I=0;I<u.value.length;++I)u.value[I]!==void 0&&(E+=1,M+=Ie.prettyPrint(u.value[I],f+1,d),I+1<u.value.length&&(M+=","));_+=x+"Sub values: "+E+M}else{if(_+=x+"Value: ",u.type===Ie.Type.OID){var S=Ie.derToOid(u.value);_+=S,Ut.pki&&Ut.pki.oids&&S in Ut.pki.oids&&(_+=" ("+Ut.pki.oids[S]+") ")}if(u.type===Ie.Type.INTEGER)try{_+=Ie.derToInteger(u.value)}catch{_+="0x"+Ut.util.bytesToHex(u.value)}else if(u.type===Ie.Type.BITSTRING){if(u.value.length>1?_+="0x"+Ut.util.bytesToHex(u.value.slice(1)):_+="(none)",u.value.length>0){var A=u.value.charCodeAt(0);A==1?_+=" (1 unused bit shown)":A>1&&(_+=" ("+A+" unused bits shown)")}}else if(u.type===Ie.Type.OCTETSTRING)Dp.test(u.value)||(_+="("+u.value+") "),_+="0x"+Ut.util.bytesToHex(u.value);else if(u.type===Ie.Type.UTF8)try{_+=Ut.util.decodeUtf8(u.value)}catch(T){if(T.message==="URI malformed")_+="0x"+Ut.util.bytesToHex(u.value)+" (malformed UTF8)";else throw T}else u.type===Ie.Type.PRINTABLESTRING||u.type===Ie.Type.IA5String?_+=u.value:Dp.test(u.value)?_+="0x"+Ut.util.bytesToHex(u.value):u.value.length===0?_+="[null]":_+=u.value}return _};var Ps=ht;Ps.md=Ps.md||{};Ps.md.algorithms=Ps.md.algorithms||{};var Zi=ht,jC=Zi.hmac=Zi.hmac||{};jC.create=function(){var u=null,f=null,d=null,_=null,x={};return x.start=function(I,E){if(I!==null)if(typeof I=="string")if(I=I.toLowerCase(),I in Zi.md.algorithms)f=Zi.md.algorithms[I].create();else throw new Error('Unknown hash algorithm "'+I+'"');else f=I;if(E===null)E=u;else{if(typeof E=="string")E=Zi.util.createBuffer(E);else if(Zi.util.isArray(E)){var M=E;E=Zi.util.createBuffer();for(var S=0;S<M.length;++S)E.putByte(M[S])}var A=E.length();A>f.blockLength&&(f.start(),f.update(E.bytes()),E=f.digest()),d=Zi.util.createBuffer(),_=Zi.util.createBuffer(),A=E.length();for(var S=0;S<A;++S){var M=E.at(S);d.putByte(54^M),_.putByte(92^M)}if(A<f.blockLength)for(var M=f.blockLength-A,S=0;S<M;++S)d.putByte(54),_.putByte(92);u=E,d=d.bytes(),_=_.bytes()}f.start(),f.update(d)},x.update=function(I){f.update(I)},x.getMac=function(){var I=f.digest().bytes();return f.start(),f.update(_),f.update(I),f.digest()},x.digest=x.getMac,x};var Li=ht,g2=Li.md5=Li.md5||{};Li.md.md5=Li.md.algorithms.md5=g2;g2.create=function(){m2||WC();var u=null,f=Li.util.createBuffer(),d=new Array(16),_={algorithm:"md5",blockLength:64,digestLength:16,messageLength:0,fullMessageLength:null,messageLengthSize:8};return _.start=function(){_.messageLength=0,_.fullMessageLength=_.messageLength64=[];for(var x=_.messageLengthSize/4,I=0;I<x;++I)_.fullMessageLength.push(0);return f=Li.util.createBuffer(),u={h0:1732584193,h1:4023233417,h2:2562383102,h3:271733878},_},_.start(),_.update=function(x,I){I==="utf8"&&(x=Li.util.encodeUtf8(x));var E=x.length;_.messageLength+=E,E=[E/4294967296>>>0,E>>>0];for(var M=_.fullMessageLength.length-1;M>=0;--M)_.fullMessageLength[M]+=E[1],E[1]=E[0]+(_.fullMessageLength[M]/4294967296>>>0),_.fullMessageLength[M]=_.fullMessageLength[M]>>>0,E[0]=E[1]/4294967296>>>0;return f.putBytes(x),Op(u,d,f),(f.read>2048||f.length()===0)&&f.compact(),_},_.digest=function(){var x=Li.util.createBuffer();x.putBytes(f.bytes());var I=_.fullMessageLength[_.fullMessageLength.length-1]+_.messageLengthSize,E=I&_.blockLength-1;x.putBytes(xc.substr(0,_.blockLength-E));for(var M,S=0,A=_.fullMessageLength.length-1;A>=0;--A)M=_.fullMessageLength[A]*8+S,S=M/4294967296>>>0,x.putInt32Le(M>>>0);var T={h0:u.h0,h1:u.h1,h2:u.h2,h3:u.h3};Op(T,d,x);var D=Li.util.createBuffer();return D.putInt32Le(T.h0),D.putInt32Le(T.h1),D.putInt32Le(T.h2),D.putInt32Le(T.h3),D},_};var xc=null,Es=null,x0=null,ga=null,m2=!1;function WC(){xc="",xc+=Li.util.fillString("\0",64),Es=[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],x0=[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],ga=new Array(64);for(var u=0;u<64;++u)ga[u]=Math.floor(Math.abs(Math.sin(u+1))*4294967296);m2=!0}function Op(u,f,d){for(var _,x,I,E,M,S,A,T,D=d.length();D>=64;){for(x=u.h0,I=u.h1,E=u.h2,M=u.h3,T=0;T<16;++T)f[T]=d.getInt32Le(),S=M^I&(E^M),_=x+S+ga[T]+f[T],A=x0[T],x=M,M=E,E=I,I+=_<<A|_>>>32-A;for(;T<32;++T)S=E^M&(I^E),_=x+S+ga[T]+f[Es[T]],A=x0[T],x=M,M=E,E=I,I+=_<<A|_>>>32-A;for(;T<48;++T)S=I^E^M,_=x+S+ga[T]+f[Es[T]],A=x0[T],x=M,M=E,E=I,I+=_<<A|_>>>32-A;for(;T<64;++T)S=E^(I|~M),_=x+S+ga[T]+f[Es[T]],A=x0[T],x=M,M=E,E=I,I+=_<<A|_>>>32-A;u.h0=u.h0+x|0,u.h1=u.h1+I|0,u.h2=u.h2+E|0,u.h3=u.h3+M|0,D-=64}}var Ls=ht,b2=Ls.pem=Ls.pem||{};b2.encode=function(u,f){f=f||{};var d="-----BEGIN "+u.type+`-----\r
`,_;if(u.procType&&(_={name:"Proc-Type",values:[String(u.procType.version),u.procType.type]},d+=as(_)),u.contentDomain&&(_={name:"Content-Domain",values:[u.contentDomain]},d+=as(_)),u.dekInfo&&(_={name:"DEK-Info",values:[u.dekInfo.algorithm]},u.dekInfo.parameters&&_.values.push(u.dekInfo.parameters),d+=as(_)),u.headers)for(var x=0;x<u.headers.length;++x)d+=as(u.headers[x]);return u.procType&&(d+=`\r
`),d+=Ls.util.encode64(u.body,f.maxline||64)+`\r
`,d+="-----END "+u.type+`-----\r
`,d};b2.decode=function(u){for(var f=[],d=/\s*-----BEGIN ([A-Z0-9- ]+)-----\r?\n?([\x21-\x7e\s]+?(?:\r?\n\r?\n))?([:A-Za-z0-9+\/=\s]+?)-----END \1-----/g,_=/([\x21-\x7e]+):\s*([\x21-\x7e\s^:]+)/,x=/\r?\n/,I;I=d.exec(u),!!I;){var E=I[1];E==="NEW CERTIFICATE REQUEST"&&(E="CERTIFICATE REQUEST");var M={type:E,procType:null,contentDomain:null,dekInfo:null,headers:[],body:Ls.util.decode64(I[3])};if(f.push(M),!!I[2]){for(var S=I[2].split(x),A=0;I&&A<S.length;){for(var T=S[A].replace(/\s+$/,""),D=A+1;D<S.length;++D){var O=S[D];if(!/\s/.test(O[0]))break;T+=O,A=D}if(I=T.match(_),I){for(var j={name:I[1],values:[]},$=I[2].split(","),W=0;W<$.length;++W)j.values.push(YC($[W]));if(M.procType)if(!M.contentDomain&&j.name==="Content-Domain")M.contentDomain=$[0]||"";else if(!M.dekInfo&&j.name==="DEK-Info"){if(j.values.length===0)throw new Error('Invalid PEM formatted message. The "DEK-Info" header must have at least one subfield.');M.dekInfo={algorithm:$[0],parameters:$[1]||null}}else M.headers.push(j);else{if(j.name!=="Proc-Type")throw new Error('Invalid PEM formatted message. The first encapsulated header must be "Proc-Type".');if(j.values.length!==2)throw new Error('Invalid PEM formatted message. The "Proc-Type" header must have two subfields.');M.procType={version:$[0],type:$[1]}}}++A}if(M.procType==="ENCRYPTED"&&!M.dekInfo)throw new Error('Invalid PEM formatted message. The "DEK-Info" header must be present if "Proc-Type" is "ENCRYPTED".')}}if(f.length===0)throw new Error("Invalid PEM formatted message.");return f};function as(u){for(var f=u.name+": ",d=[],_=function(S,A){return" "+A},x=0;x<u.values.length;++x)d.push(u.values[x].replace(/^(\S+\r\n)/,_));f+=d.join(",")+`\r
`;for(var I=0,E=-1,x=0;x<f.length;++x,++I)if(I>65&&E!==-1){var M=f[E];M===","?(++E,f=f.substr(0,E)+`\r
 `+f.substr(E)):f=f.substr(0,E)+`\r
`+M+f.substr(E+1),I=x-E-1,E=-1,++x}else(f[x]===" "||f[x]==="	"||f[x]===",")&&(E=x);return f}function YC(u){return u.replace(/^\s+/,"")}var qt=ht;qt.des=qt.des||{};qt.des.startEncrypting=function(u,f,d,_){var x=Uf({key:u,output:d,decrypt:!1,mode:_||(f===null?"ECB":"CBC")});return x.start(f),x};qt.des.createEncryptionCipher=function(u,f){return Uf({key:u,output:null,decrypt:!1,mode:f})};qt.des.startDecrypting=function(u,f,d,_){var x=Uf({key:u,output:d,decrypt:!0,mode:_||(f===null?"ECB":"CBC")});return x.start(f),x};qt.des.createDecryptionCipher=function(u,f){return Uf({key:u,output:null,decrypt:!0,mode:f})};qt.des.Algorithm=function(u,f){var d=this;d.name=u,d.mode=new f({blockSize:8,cipher:{encrypt:function(_,x){return Pp(d._keys,_,x,!1)},decrypt:function(_,x){return Pp(d._keys,_,x,!0)}}}),d._init=!1};qt.des.Algorithm.prototype.initialize=function(u){if(!this._init){var f=qt.util.createBuffer(u.key);if(this.name.indexOf("3DES")===0&&f.length()!==24)throw new Error("Invalid Triple-DES key size: "+f.length()*8);this._keys=nA(f),this._init=!0}};Yi("DES-ECB",qt.cipher.modes.ecb);Yi("DES-CBC",qt.cipher.modes.cbc);Yi("DES-CFB",qt.cipher.modes.cfb);Yi("DES-OFB",qt.cipher.modes.ofb);Yi("DES-CTR",qt.cipher.modes.ctr);Yi("3DES-ECB",qt.cipher.modes.ecb);Yi("3DES-CBC",qt.cipher.modes.cbc);Yi("3DES-CFB",qt.cipher.modes.cfb);Yi("3DES-OFB",qt.cipher.modes.ofb);Yi("3DES-CTR",qt.cipher.modes.ctr);function Yi(u,f){var d=function(){return new qt.des.Algorithm(u,f)};qt.cipher.registerAlgorithm(u,d)}var XC=[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],QC=[-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],ZC=[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],JC=[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],eA=[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],tA=[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],rA=[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],iA=[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 nA(u){for(var f=[0,4,536870912,536870916,65536,65540,536936448,536936452,512,516,536871424,536871428,66048,66052,536936960,536936964],d=[0,1,1048576,1048577,67108864,67108865,68157440,68157441,256,257,1048832,1048833,67109120,67109121,68157696,68157697],_=[0,8,2048,2056,16777216,16777224,16779264,16779272,0,8,2048,2056,16777216,16777224,16779264,16779272],x=[0,2097152,134217728,136314880,8192,2105344,134225920,136323072,131072,2228224,134348800,136445952,139264,2236416,134356992,136454144],I=[0,262144,16,262160,0,262144,16,262160,4096,266240,4112,266256,4096,266240,4112,266256],E=[0,1024,32,1056,0,1024,32,1056,33554432,33555456,33554464,33555488,33554432,33555456,33554464,33555488],M=[0,268435456,524288,268959744,2,268435458,524290,268959746,0,268435456,524288,268959744,2,268435458,524290,268959746],S=[0,65536,2048,67584,536870912,536936448,536872960,536938496,131072,196608,133120,198656,537001984,537067520,537004032,537069568],A=[0,262144,0,262144,2,262146,2,262146,33554432,33816576,33554432,33816576,33554434,33816578,33554434,33816578],T=[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],O=[0,16777216,512,16777728,2097152,18874368,2097664,18874880,67108864,83886080,67109376,83886592,69206016,85983232,69206528,85983744],j=[0,4096,134217728,134221824,524288,528384,134742016,134746112,16,4112,134217744,134221840,524304,528400,134742032,134746128],$=[0,4,256,260,0,4,256,260,1,5,257,261,1,5,257,261],W=u.length()>8?3:1,Q=[],X=[0,0,1,1,1,1,1,1,0,1,1,1,1,1,1,0],Y=0,ie,oe=0;oe<W;oe++){var ge=u.getInt32(),be=u.getInt32();ie=(ge>>>4^be)&252645135,be^=ie,ge^=ie<<4,ie=(be>>>-16^ge)&65535,ge^=ie,be^=ie<<-16,ie=(ge>>>2^be)&858993459,be^=ie,ge^=ie<<2,ie=(be>>>-16^ge)&65535,ge^=ie,be^=ie<<-16,ie=(ge>>>1^be)&1431655765,be^=ie,ge^=ie<<1,ie=(be>>>8^ge)&16711935,ge^=ie,be^=ie<<8,ie=(ge>>>1^be)&1431655765,be^=ie,ge^=ie<<1,ie=ge<<8|be>>>20&240,ge=be<<24|be<<8&16711680|be>>>8&65280|be>>>24&240,be=ie;for(var ze=0;ze<X.length;++ze){X[ze]?(ge=ge<<2|ge>>>26,be=be<<2|be>>>26):(ge=ge<<1|ge>>>27,be=be<<1|be>>>27),ge&=-15,be&=-15;var de=f[ge>>>28]|d[ge>>>24&15]|_[ge>>>20&15]|x[ge>>>16&15]|I[ge>>>12&15]|E[ge>>>8&15]|M[ge>>>4&15],Ce=S[be>>>28]|A[be>>>24&15]|T[be>>>20&15]|D[be>>>16&15]|O[be>>>12&15]|j[be>>>8&15]|$[be>>>4&15];ie=(Ce>>>16^de)&65535,Q[Y++]=de^ie,Q[Y++]=Ce^ie<<16}}return Q}function Pp(u,f,d,_){var x=u.length===32?3:9,I;x===3?I=_?[30,-2,-2]:[0,32,2]:I=_?[94,62,-2,32,64,2,30,-2,-2]:[0,32,2,62,30,-2,64,96,2];var E,M=f[0],S=f[1];E=(M>>>4^S)&252645135,S^=E,M^=E<<4,E=(M>>>16^S)&65535,S^=E,M^=E<<16,E=(S>>>2^M)&858993459,M^=E,S^=E<<2,E=(S>>>8^M)&16711935,M^=E,S^=E<<8,E=(M>>>1^S)&1431655765,S^=E,M^=E<<1,M=M<<1|M>>>31,S=S<<1|S>>>31;for(var A=0;A<x;A+=3){for(var T=I[A+1],D=I[A+2],O=I[A];O!=T;O+=D){var j=S^u[O],$=(S>>>4|S<<28)^u[O+1];E=M,M=S,S=E^(QC[j>>>24&63]|JC[j>>>16&63]|tA[j>>>8&63]|iA[j&63]|XC[$>>>24&63]|ZC[$>>>16&63]|eA[$>>>8&63]|rA[$&63])}E=M,M=S,S=E}M=M>>>1|M<<31,S=S>>>1|S<<31,E=(M>>>1^S)&1431655765,S^=E,M^=E<<1,E=(S>>>8^M)&16711935,M^=E,S^=E<<8,E=(S>>>2^M)&858993459,M^=E,S^=E<<2,E=(M>>>16^S)&65535,S^=E,M^=E<<16,E=(M>>>4^S)&252645135,S^=E,M^=E<<4,d[0]=M,d[1]=S}function Uf(u){u=u||{};var f=(u.mode||"CBC").toUpperCase(),d="DES-"+f,_;u.decrypt?_=qt.cipher.createDecipher(d,u.key):_=qt.cipher.createCipher(d,u.key);var x=_.start;return _.start=function(I,E){var M=null;E instanceof qt.util.ByteBuffer&&(M=E,E={}),E=E||{},E.output=M,E.iv=I,x.call(_,E)},_}var yr=ht,aA=yr.pkcs5=yr.pkcs5||{},Qi;yr.util.isNodejs&&!yr.options.usePureJavaScript&&(Qi=_r());yr.pbkdf2=aA.pbkdf2=function(u,f,d,_,x,I){if(typeof x=="function"&&(I=x,x=null),yr.util.isNodejs&&!yr.options.usePureJavaScript&&Qi.pbkdf2&&(x===null||typeof x!="object")&&(Qi.pbkdf2Sync.length>4||!x||x==="sha1"))return typeof x!="string"&&(x="sha1"),u=pe.Buffer.from(u,"binary"),f=pe.Buffer.from(f,"binary"),I?Qi.pbkdf2Sync.length===4?Qi.pbkdf2(u,f,d,_,function(ie,oe){if(ie)return I(ie);I(null,oe.toString("binary"))}):Qi.pbkdf2(u,f,d,_,x,function(ie,oe){if(ie)return I(ie);I(null,oe.toString("binary"))}):Qi.pbkdf2Sync.length===4?Qi.pbkdf2Sync(u,f,d,_).toString("binary"):Qi.pbkdf2Sync(u,f,d,_,x).toString("binary");if((typeof x>"u"||x===null)&&(x="sha1"),typeof x=="string"){if(!(x in yr.md.algorithms))throw new Error("Unknown hash algorithm: "+x);x=yr.md[x].create()}var E=x.digestLength;if(_>4294967295*E){var M=new Error("Derived key is too long.");if(I)return I(M);throw M}var S=Math.ceil(_/E),A=_-(S-1)*E,T=yr.hmac.create();T.start(x,u);var D="",O,j,$;if(!I){for(var W=1;W<=S;++W){T.start(null,null),T.update(f),T.update(yr.util.int32ToBytes(W)),O=$=T.digest().getBytes();for(var Q=2;Q<=d;++Q)T.start(null,null),T.update($),j=T.digest().getBytes(),O=yr.util.xorBytes(O,j,E),$=j;D+=W<S?O:O.substr(0,A)}return D}var W=1,Q;function X(){if(W>S)return I(null,D);T.start(null,null),T.update(f),T.update(yr.util.int32ToBytes(W)),O=$=T.digest().getBytes(),Q=2,Y()}function Y(){if(Q<=d)return T.start(null,null),T.update($),j=T.digest().getBytes(),O=yr.util.xorBytes(O,j,E),$=j,++Q,yr.util.setImmediate(Y);D+=W<S?O:O.substr(0,A),++W,X()}X()};var ki=ht,x2=ki.sha256=ki.sha256||{};ki.md.sha256=ki.md.algorithms.sha256=x2;x2.create=function(){_2||sA();var u=null,f=ki.util.createBuffer(),d=new Array(64),_={algorithm:"sha256",blockLength:64,digestLength:32,messageLength:0,fullMessageLength:null,messageLengthSize:8};return _.start=function(){_.messageLength=0,_.fullMessageLength=_.messageLength64=[];for(var x=_.messageLengthSize/4,I=0;I<x;++I)_.fullMessageLength.push(0);return f=ki.util.createBuffer(),u={h0:1779033703,h1:3144134277,h2:1013904242,h3:2773480762,h4:1359893119,h5:2600822924,h6:528734635,h7:1541459225},_},_.start(),_.update=function(x,I){I==="utf8"&&(x=ki.util.encodeUtf8(x));var E=x.length;_.messageLength+=E,E=[E/4294967296>>>0,E>>>0];for(var M=_.fullMessageLength.length-1;M>=0;--M)_.fullMessageLength[M]+=E[1],E[1]=E[0]+(_.fullMessageLength[M]/4294967296>>>0),_.fullMessageLength[M]=_.fullMessageLength[M]>>>0,E[0]=E[1]/4294967296>>>0;return f.putBytes(x),Lp(u,d,f),(f.read>2048||f.length()===0)&&f.compact(),_},_.digest=function(){var x=ki.util.createBuffer();x.putBytes(f.bytes());var I=_.fullMessageLength[_.fullMessageLength.length-1]+_.messageLengthSize,E=I&_.blockLength-1;x.putBytes(_c.substr(0,_.blockLength-E));for(var M,S,A=_.fullMessageLength[0]*8,T=0;T<_.fullMessageLength.length-1;++T)M=_.fullMessageLength[T+1]*8,S=M/4294967296>>>0,A+=S,x.putInt32(A>>>0),A=M>>>0;x.putInt32(A);var D={h0:u.h0,h1:u.h1,h2:u.h2,h3:u.h3,h4:u.h4,h5:u.h5,h6:u.h6,h7:u.h7};Lp(D,d,x);var O=ki.util.createBuffer();return O.putInt32(D.h0),O.putInt32(D.h1),O.putInt32(D.h2),O.putInt32(D.h3),O.putInt32(D.h4),O.putInt32(D.h5),O.putInt32(D.h6),O.putInt32(D.h7),O},_};var _c=null,_2=!1,E2=null;function sA(){_c="",_c+=ki.util.fillString("\0",64),E2=[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],_2=!0}function Lp(u,f,d){for(var _,x,I,E,M,S,A,T,D,O,j,$,W,Q,X,Y=d.length();Y>=64;){for(A=0;A<16;++A)f[A]=d.getInt32();for(;A<64;++A)_=f[A-2],_=(_>>>17|_<<15)^(_>>>19|_<<13)^_>>>10,x=f[A-15],x=(x>>>7|x<<25)^(x>>>18|x<<14)^x>>>3,f[A]=_+f[A-7]+x+f[A-16]|0;for(T=u.h0,D=u.h1,O=u.h2,j=u.h3,$=u.h4,W=u.h5,Q=u.h6,X=u.h7,A=0;A<64;++A)E=($>>>6|$<<26)^($>>>11|$<<21)^($>>>25|$<<7),M=Q^$&(W^Q),I=(T>>>2|T<<30)^(T>>>13|T<<19)^(T>>>22|T<<10),S=T&D|O&(T^D),_=X+E+M+E2[A]+f[A],x=I+S,X=Q,Q=W,W=$,$=j+_>>>0,j=O,O=D,D=T,T=_+x>>>0;u.h0=u.h0+T|0,u.h1=u.h1+D|0,u.h2=u.h2+O|0,u.h3=u.h3+j|0,u.h4=u.h4+$|0,u.h5=u.h5+W|0,u.h6=u.h6+Q|0,u.h7=u.h7+X|0,Y-=64}}var Di=ht,Ss=null;Di.util.isNodejs&&!Di.options.usePureJavaScript&&!Ve.versions["node-webkit"]&&(Ss=_r());var fA=Di.prng=Di.prng||{};fA.create=function(u){for(var f={plugin:u,key:null,seed:null,time:null,reseeds:0,generated:0,keyBytes:""},d=u.md,_=new Array(32),x=0;x<32;++x)_[x]=d.create();f.pools=_,f.pool=0,f.generate=function(A,T){if(!T)return f.generateSync(A);var D=f.plugin.cipher,O=f.plugin.increment,j=f.plugin.formatKey,$=f.plugin.formatSeed,W=Di.util.createBuffer();f.key=null,Q();function Q(X){if(X)return T(X);if(W.length()>=A)return T(null,W.getBytes(A));if(f.generated>1048575&&(f.key=null),f.key===null)return Di.util.nextTick(function(){I(Q)});var Y=D(f.key,f.seed);f.generated+=Y.length,W.putBytes(Y),f.key=j(D(f.key,O(f.seed))),f.seed=$(D(f.key,f.seed)),Di.util.setImmediate(Q)}},f.generateSync=function(A){var T=f.plugin.cipher,D=f.plugin.increment,O=f.plugin.formatKey,j=f.plugin.formatSeed;f.key=null;for(var $=Di.util.createBuffer();$.length()<A;){f.generated>1048575&&(f.key=null),f.key===null&&E();var W=T(f.key,f.seed);f.generated+=W.length,$.putBytes(W),f.key=O(T(f.key,D(f.seed))),f.seed=j(T(f.key,f.seed))}return $.getBytes(A)};function I(A){if(f.pools[0].messageLength>=32)return M(),A();var T=32-f.pools[0].messageLength<<5;f.seedFile(T,function(D,O){if(D)return A(D);f.collect(O),M(),A()})}function E(){if(f.pools[0].messageLength>=32)return M();var A=32-f.pools[0].messageLength<<5;f.collect(f.seedFileSync(A)),M()}function M(){f.reseeds=f.reseeds===4294967295?0:f.reseeds+1;var A=f.plugin.md.create();A.update(f.keyBytes);for(var T=1,D=0;D<32;++D)f.reseeds%T===0&&(A.update(f.pools[D].digest().getBytes()),f.pools[D].start()),T=T<<1;f.keyBytes=A.digest().getBytes(),A.start(),A.update(f.keyBytes);var O=A.digest().getBytes();f.key=f.plugin.formatKey(f.keyBytes),f.seed=f.plugin.formatSeed(O),f.generated=0}function S(A){var T=null,D=Di.util.globalScope,O=D.crypto||D.msCrypto;O&&O.getRandomValues&&(T=function(ge){return O.getRandomValues(ge)});var j=Di.util.createBuffer();if(T)for(;j.length()<A;){var $=Math.max(1,Math.min(A-j.length(),65536)/4),W=new Uint32Array(Math.floor($));try{T(W);for(var Q=0;Q<W.length;++Q)j.putInt32(W[Q])}catch(ge){if(!(typeof QuotaExceededError<"u"&&ge instanceof QuotaExceededError))throw ge}}if(j.length()<A)for(var X,Y,ie,oe=Math.floor(Math.random()*65536);j.length()<A;){Y=16807*(oe&65535),X=16807*(oe>>16),Y+=(X&32767)<<16,Y+=X>>15,Y=(Y&2147483647)+(Y>>31),oe=Y&4294967295;for(var Q=0;Q<3;++Q)ie=oe>>>(Q<<3),ie^=Math.floor(Math.random()*256),j.putByte(ie&255)}return j.getBytes(A)}return Ss?(f.seedFile=function(A,T){Ss.randomBytes(A,function(D,O){if(D)return T(D);T(null,O.toString())})},f.seedFileSync=function(A){return Ss.randomBytes(A).toString()}):(f.seedFile=function(A,T){try{T(null,S(A))}catch(D){T(D)}},f.seedFileSync=S),f.collect=function(A){for(var T=A.length,D=0;D<T;++D)f.pools[f.pool].update(A.substr(D,1)),f.pool=f.pool===31?0:f.pool+1},f.collectInt=function(A,T){for(var D="",O=0;O<T;O+=8)D+=String.fromCharCode(A>>O&255);f.collect(D)},f.registerWorker=function(A){if(A===self)f.seedFile=function(D,O){function j($){var W=$.data;W.forge&&W.forge.prng&&(self.removeEventListener("message",j),O(W.forge.prng.err,W.forge.prng.bytes))}self.addEventListener("message",j),self.postMessage({forge:{prng:{needed:D}}})};else{var T=function(D){var O=D.data;O.forge&&O.forge.prng&&f.seedFile(O.forge.prng.needed,function(j,$){A.postMessage({forge:{prng:{err:j,bytes:$}}})})};A.addEventListener("message",T)}},f};var Yt=ht;(function(){if(Yt.random&&Yt.random.getBytes){Yt.random;return}(function(u){var f={},d=new Array(4),_=Yt.util.createBuffer();f.formatKey=function(D){var O=Yt.util.createBuffer(D);return D=new Array(4),D[0]=O.getInt32(),D[1]=O.getInt32(),D[2]=O.getInt32(),D[3]=O.getInt32(),Yt.aes._expandKey(D,!1)},f.formatSeed=function(D){var O=Yt.util.createBuffer(D);return D=new Array(4),D[0]=O.getInt32(),D[1]=O.getInt32(),D[2]=O.getInt32(),D[3]=O.getInt32(),D},f.cipher=function(D,O){return Yt.aes._updateBlock(D,O,d,!1),_.putInt32(d[0]),_.putInt32(d[1]),_.putInt32(d[2]),_.putInt32(d[3]),_.getBytes()},f.increment=function(D){return++D[3],D},f.md=Yt.md.sha256;function x(){var D=Yt.prng.create(f);return D.getBytes=function(O,j){return D.generate(O,j)},D.getBytesSync=function(O){return D.generate(O)},D}var I=x(),E=null,M=Yt.util.globalScope,S=M.crypto||M.msCrypto;if(S&&S.getRandomValues&&(E=function(D){return S.getRandomValues(D)}),Yt.options.usePureJavaScript||!Yt.util.isNodejs&&!E){if(I.collectInt(+new Date,32),typeof navigator<"u"){var A="";for(var T in navigator)try{typeof navigator[T]=="string"&&(A+=navigator[T])}catch{}I.collect(A),A=null}u&&(u().mousemove(function(D){I.collectInt(D.clientX,16),I.collectInt(D.clientY,16)}),u().keypress(function(D){I.collectInt(D.charCode,8)}))}if(!Yt.random)Yt.random=I;else for(var T in I)Yt.random[T]=I[T];Yt.random.createInstance=x,Yt.random})(typeof jQuery<"u"?jQuery:null)})();var Ar=ht,Fu=[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],kp=[1,2,3,5],oA=function(u,f){return u<<f&65535|(u&65535)>>16-f},uA=function(u,f){return(u&65535)>>f|u<<16-f&65535};Ar.rc2=Ar.rc2||{};Ar.rc2.expandKey=function(u,f){typeof u=="string"&&(u=Ar.util.createBuffer(u)),f=f||128;var d=u,_=u.length(),x=f,I=Math.ceil(x/8),E=255>>(x&7),M;for(M=_;M<128;M++)d.putByte(Fu[d.at(M-1)+d.at(M-_)&255]);for(d.setAt(128-I,Fu[d.at(128-I)&E]),M=127-I;M>=0;M--)d.setAt(M,Fu[d.at(M+1)^d.at(M+I)]);return d};var S2=function(u,f,d){var _=!1,x=null,I=null,E=null,M,S,A,T,D=[];for(u=Ar.rc2.expandKey(u,f),A=0;A<64;A++)D.push(u.getInt16Le());d?(M=function($){for(A=0;A<4;A++)$[A]+=D[T]+($[(A+3)%4]&$[(A+2)%4])+(~$[(A+3)%4]&$[(A+1)%4]),$[A]=oA($[A],kp[A]),T++},S=function($){for(A=0;A<4;A++)$[A]+=D[$[(A+3)%4]&63]}):(M=function($){for(A=3;A>=0;A--)$[A]=uA($[A],kp[A]),$[A]-=D[T]+($[(A+3)%4]&$[(A+2)%4])+(~$[(A+3)%4]&$[(A+1)%4]),T--},S=function($){for(A=3;A>=0;A--)$[A]-=D[$[(A+3)%4]&63]});var O=function($){var W=[];for(A=0;A<4;A++){var Q=x.getInt16Le();E!==null&&(d?Q^=E.getInt16Le():E.putInt16Le(Q)),W.push(Q&65535)}T=d?0:63;for(var X=0;X<$.length;X++)for(var Y=0;Y<$[X][0];Y++)$[X][1](W);for(A=0;A<4;A++)E!==null&&(d?E.putInt16Le(W[A]):W[A]^=E.getInt16Le()),I.putInt16Le(W[A])},j=null;return j={start:function($,W){$&&typeof $=="string"&&($=Ar.util.createBuffer($)),_=!1,x=Ar.util.createBuffer(),I=W||new Ar.util.createBuffer,E=$,j.output=I},update:function($){for(_||x.putBuffer($);x.length()>=8;)O([[5,M],[1,S],[6,M],[1,S],[5,M]])},finish:function($){var W=!0;if(d)if($)W=$(8,x,!d);else{var Q=x.length()===8?8:8-x.length();x.fillWithByte(Q,Q)}if(W&&(_=!0,j.update()),!d&&(W=x.length()===0,W))if($)W=$(8,I,!d);else{var X=I.length(),Y=I.at(X-1);Y>X?W=!1:I.truncate(Y)}return W}},j};Ar.rc2.startEncrypting=function(u,f,d){var _=Ar.rc2.createEncryptionCipher(u,128);return _.start(f,d),_};Ar.rc2.createEncryptionCipher=function(u,f){return S2(u,f,!0)};Ar.rc2.startDecrypting=function(u,f,d){var _=Ar.rc2.createDecryptionCipher(u,128);return _.start(f,d),_};Ar.rc2.createDecryptionCipher=function(u,f){return S2(u,f,!1)};var Ec=ht;Ec.jsbn=Ec.jsbn||{};var rn;function _e(u,f,d){this.data=[],u!=null&&(typeof u=="number"?this.fromNumber(u,f,d):f==null&&typeof u!="string"?this.fromString(u,256):this.fromString(u,f))}Ec.jsbn.BigInteger=_e;function Et(){return new _e(null)}function cA(u,f,d,_,x,I){for(;--I>=0;){var E=f*this.data[u++]+d.data[_]+x;x=Math.floor(E/67108864),d.data[_++]=E&67108863}return x}function hA(u,f,d,_,x,I){for(var E=f&32767,M=f>>15;--I>=0;){var S=this.data[u]&32767,A=this.data[u++]>>15,T=M*S+A*E;S=E*S+((T&32767)<<15)+d.data[_]+(x&1073741823),x=(S>>>30)+(T>>>15)+M*A+(x>>>30),d.data[_++]=S&1073741823}return x}function Up(u,f,d,_,x,I){for(var E=f&16383,M=f>>14;--I>=0;){var S=this.data[u]&16383,A=this.data[u++]>>14,T=M*S+A*E;S=E*S+((T&16383)<<14)+d.data[_]+x,x=(S>>28)+(T>>14)+M*A,d.data[_++]=S&268435455}return x}typeof navigator>"u"?(_e.prototype.am=Up,rn=28):navigator.appName=="Microsoft Internet Explorer"?(_e.prototype.am=hA,rn=30):navigator.appName!="Netscape"?(_e.prototype.am=cA,rn=26):(_e.prototype.am=Up,rn=28);_e.prototype.DB=rn;_e.prototype.DM=(1<<rn)-1;_e.prototype.DV=1<<rn;var qh=52;_e.prototype.FV=Math.pow(2,qh);_e.prototype.F1=qh-rn;_e.prototype.F2=2*rn-qh;var lA="0123456789abcdefghijklmnopqrstuvwxyz",Ff=new Array,e0,$r;e0=48;for($r=0;$r<=9;++$r)Ff[e0++]=$r;e0=97;for($r=10;$r<36;++$r)Ff[e0++]=$r;e0=65;for($r=10;$r<36;++$r)Ff[e0++]=$r;function Fp(u){return lA.charAt(u)}function w2(u,f){var d=Ff[u.charCodeAt(f)];return d??-1}function dA(u){for(var f=this.t-1;f>=0;--f)u.data[f]=this.data[f];u.t=this.t,u.s=this.s}function pA(u){this.t=1,this.s=u<0?-1:0,u>0?this.data[0]=u:u<-1?this.data[0]=u+this.DV:this.t=0}function bn$3(u){var f=Et();return f.fromInt(u),f}function vA(u,f){var d;if(f==16)d=4;else if(f==8)d=3;else if(f==256)d=8;else if(f==2)d=1;else if(f==32)d=5;else if(f==4)d=2;else{this.fromRadix(u,f);return}this.t=0,this.s=0;for(var _=u.length,x=!1,I=0;--_>=0;){var E=d==8?u[_]&255:w2(u,_);if(E<0){u.charAt(_)=="-"&&(x=!0);continue}x=!1,I==0?this.data[this.t++]=E:I+d>this.DB?(this.data[this.t-1]|=(E&(1<<this.DB-I)-1)<<I,this.data[this.t++]=E>>this.DB-I):this.data[this.t-1]|=E<<I,I+=d,I>=this.DB&&(I-=this.DB)}d==8&&u[0]&128&&(this.s=-1,I>0&&(this.data[this.t-1]|=(1<<this.DB-I)-1<<I)),this.clamp(),x&&_e.ZERO.subTo(this,this)}function yA(){for(var u=this.s&this.DM;this.t>0&&this.data[this.t-1]==u;)--this.t}function gA(u){if(this.s<0)return"-"+this.negate().toString(u);var f;if(u==16)f=4;else if(u==8)f=3;else if(u==2)f=1;else if(u==32)f=5;else if(u==4)f=2;else return this.toRadix(u);var d=(1<<f)-1,_,x=!1,I="",E=this.t,M=this.DB-E*this.DB%f;if(E-- >0)for(M<this.DB&&(_=this.data[E]>>M)>0&&(x=!0,I=Fp(_));E>=0;)M<f?(_=(this.data[E]&(1<<M)-1)<<f-M,_|=this.data[--E]>>(M+=this.DB-f)):(_=this.data[E]>>(M-=f)&d,M<=0&&(M+=this.DB,--E)),_>0&&(x=!0),x&&(I+=Fp(_));return x?I:"0"}function mA(){var u=Et();return _e.ZERO.subTo(this,u),u}function bA(){return this.s<0?this.negate():this}function xA(u){var f=this.s-u.s;if(f!=0)return f;var d=this.t;if(f=d-u.t,f!=0)return this.s<0?-f:f;for(;--d>=0;)if((f=this.data[d]-u.data[d])!=0)return f;return 0}function qf(u){var f=1,d;return(d=u>>>16)!=0&&(u=d,f+=16),(d=u>>8)!=0&&(u=d,f+=8),(d=u>>4)!=0&&(u=d,f+=4),(d=u>>2)!=0&&(u=d,f+=2),(d=u>>1)!=0&&(u=d,f+=1),f}function _A(){return this.t<=0?0:this.DB*(this.t-1)+qf(this.data[this.t-1]^this.s&this.DM)}function EA(u,f){var d;for(d=this.t-1;d>=0;--d)f.data[d+u]=this.data[d];for(d=u-1;d>=0;--d)f.data[d]=0;f.t=this.t+u,f.s=this.s}function SA(u,f){for(var d=u;d<this.t;++d)f.data[d-u]=this.data[d];f.t=Math.max(this.t-u,0),f.s=this.s}function wA(u,f){var d=u%this.DB,_=this.DB-d,x=(1<<_)-1,I=Math.floor(u/this.DB),E=this.s<<d&this.DM,M;for(M=this.t-1;M>=0;--M)f.data[M+I+1]=this.data[M]>>_|E,E=(this.data[M]&x)<<d;for(M=I-1;M>=0;--M)f.data[M]=0;f.data[I]=E,f.t=this.t+I+1,f.s=this.s,f.clamp()}function CA(u,f){f.s=this.s;var d=Math.floor(u/this.DB);if(d>=this.t){f.t=0;return}var _=u%this.DB,x=this.DB-_,I=(1<<_)-1;f.data[0]=this.data[d]>>_;for(var E=d+1;E<this.t;++E)f.data[E-d-1]|=(this.data[E]&I)<<x,f.data[E-d]=this.data[E]>>_;_>0&&(f.data[this.t-d-1]|=(this.s&I)<<x),f.t=this.t-d,f.clamp()}function AA(u,f){for(var d=0,_=0,x=Math.min(u.t,this.t);d<x;)_+=this.data[d]-u.data[d],f.data[d++]=_&this.DM,_>>=this.DB;if(u.t<this.t){for(_-=u.s;d<this.t;)_+=this.data[d],f.data[d++]=_&this.DM,_>>=this.DB;_+=this.s}else{for(_+=this.s;d<u.t;)_-=u.data[d],f.data[d++]=_&this.DM,_>>=this.DB;_-=u.s}f.s=_<0?-1:0,_<-1?f.data[d++]=this.DV+_:_>0&&(f.data[d++]=_),f.t=d,f.clamp()}function BA(u,f){var d=this.abs(),_=u.abs(),x=d.t;for(f.t=x+_.t;--x>=0;)f.data[x]=0;for(x=0;x<_.t;++x)f.data[x+d.t]=d.am(0,_.data[x],f,x,0,d.t);f.s=0,f.clamp(),this.s!=u.s&&_e.ZERO.subTo(f,f)}function IA(u){for(var f=this.abs(),d=u.t=2*f.t;--d>=0;)u.data[d]=0;for(d=0;d<f.t-1;++d){var _=f.am(d,f.data[d],u,2*d,0,1);(u.data[d+f.t]+=f.am(d+1,2*f.data[d],u,2*d+1,_,f.t-d-1))>=f.DV&&(u.data[d+f.t]-=f.DV,u.data[d+f.t+1]=1)}u.t>0&&(u.data[u.t-1]+=f.am(d,f.data[d],u,2*d,0,1)),u.s=0,u.clamp()}function TA(u,f,d){var _=u.abs();if(!(_.t<=0)){var x=this.abs();if(x.t<_.t){f?.fromInt(0),d!=null&&this.copyTo(d);return}d==null&&(d=Et());var I=Et(),E=this.s,M=u.s,S=this.DB-qf(_.data[_.t-1]);S>0?(_.lShiftTo(S,I),x.lShiftTo(S,d)):(_.copyTo(I),x.copyTo(d));var A=I.t,T=I.data[A-1];if(T!=0){var D=T*(1<<this.F1)+(A>1?I.data[A-2]>>this.F2:0),O=this.FV/D,j=(1<<this.F1)/D,$=1<<this.F2,W=d.t,Q=W-A,X=f??Et();for(I.dlShiftTo(Q,X),d.compareTo(X)>=0&&(d.data[d.t++]=1,d.subTo(X,d)),_e.ONE.dlShiftTo(A,X),X.subTo(I,I);I.t<A;)I.data[I.t++]=0;for(;--Q>=0;){var Y=d.data[--W]==T?this.DM:Math.floor(d.data[W]*O+(d.data[W-1]+$)*j);if((d.data[W]+=I.am(0,Y,d,Q,0,A))<Y)for(I.dlShiftTo(Q,X),d.subTo(X,d);d.data[W]<--Y;)d.subTo(X,d)}f!=null&&(d.drShiftTo(A,f),E!=M&&_e.ZERO.subTo(f,f)),d.t=A,d.clamp(),S>0&&d.rShiftTo(S,d),E<0&&_e.ZERO.subTo(d,d)}}}function MA(u){var f=Et();return this.abs().divRemTo(u,null,f),this.s<0&&f.compareTo(_e.ZERO)>0&&u.subTo(f,f),f}function oa(u){this.m=u}function RA(u){return u.s<0||u.compareTo(this.m)>=0?u.mod(this.m):u}function NA(u){return u}function DA(u){u.divRemTo(this.m,null,u)}function OA(u,f,d){u.multiplyTo(f,d),this.reduce(d)}function PA(u,f){u.squareTo(f),this.reduce(f)}oa.prototype.convert=RA;oa.prototype.revert=NA;oa.prototype.reduce=DA;oa.prototype.mulTo=OA;oa.prototype.sqrTo=PA;function LA(){if(this.t<1)return 0;var u=this.data[0];if(!(u&1))return 0;var f=u&3;return f=f*(2-(u&15)*f)&15,f=f*(2-(u&255)*f)&255,f=f*(2-((u&65535)*f&65535))&65535,f=f*(2-u*f%this.DV)%this.DV,f>0?this.DV-f:-f}function ua(u){this.m=u,this.mp=u.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<u.DB-15)-1,this.mt2=2*u.t}function kA(u){var f=Et();return u.abs().dlShiftTo(this.m.t,f),f.divRemTo(this.m,null,f),u.s<0&&f.compareTo(_e.ZERO)>0&&this.m.subTo(f,f),f}function UA(u){var f=Et();return u.copyTo(f),this.reduce(f),f}function FA(u){for(;u.t<=this.mt2;)u.data[u.t++]=0;for(var f=0;f<this.m.t;++f){var d=u.data[f]&32767,_=d*this.mpl+((d*this.mph+(u.data[f]>>15)*this.mpl&this.um)<<15)&u.DM;for(d=f+this.m.t,u.data[d]+=this.m.am(0,_,u,f,0,this.m.t);u.data[d]>=u.DV;)u.data[d]-=u.DV,u.data[++d]++}u.clamp(),u.drShiftTo(this.m.t,u),u.compareTo(this.m)>=0&&u.subTo(this.m,u)}function qA(u,f){u.squareTo(f),this.reduce(f)}function VA(u,f,d){u.multiplyTo(f,d),this.reduce(d)}ua.prototype.convert=kA;ua.prototype.revert=UA;ua.prototype.reduce=FA;ua.prototype.mulTo=VA;ua.prototype.sqrTo=qA;function KA(){return(this.t>0?this.data[0]&1:this.s)==0}function $A(u,f){if(u>4294967295||u<1)return _e.ONE;var d=Et(),_=Et(),x=f.convert(this),I=qf(u)-1;for(x.copyTo(d);--I>=0;)if(f.sqrTo(d,_),(u&1<<I)>0)f.mulTo(_,x,d);else{var E=d;d=_,_=E}return f.revert(d)}function HA(u,f){var d;return u<256||f.isEven()?d=new oa(f):d=new ua(f),this.exp(u,d)}_e.prototype.copyTo=dA;_e.prototype.fromInt=pA;_e.prototype.fromString=vA;_e.prototype.clamp=yA;_e.prototype.dlShiftTo=EA;_e.prototype.drShiftTo=SA;_e.prototype.lShiftTo=wA;_e.prototype.rShiftTo=CA;_e.prototype.subTo=AA;_e.prototype.multiplyTo=BA;_e.prototype.squareTo=IA;_e.prototype.divRemTo=TA;_e.prototype.invDigit=LA;_e.prototype.isEven=KA;_e.prototype.exp=$A;_e.prototype.toString=gA;_e.prototype.negate=mA;_e.prototype.abs=bA;_e.prototype.compareTo=xA;_e.prototype.bitLength=_A;_e.prototype.mod=MA;_e.prototype.modPowInt=HA;_e.ZERO=bn$3(0);_e.ONE=bn$3(1);function GA(){var u=Et();return this.copyTo(u),u}function zA(){if(this.s<0){if(this.t==1)return this.data[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this.data[0];if(this.t==0)return 0}return(this.data[1]&(1<<32-this.DB)-1)<<this.DB|this.data[0]}function jA(){return this.t==0?this.s:this.data[0]<<24>>24}function WA(){return this.t==0?this.s:this.data[0]<<16>>16}function YA(u){return Math.floor(Math.LN2*this.DB/Math.log(u))}function XA(){return this.s<0?-1:this.t<=0||this.t==1&&this.data[0]<=0?0:1}function QA(u){if(u==null&&(u=10),this.signum()==0||u<2||u>36)return"0";var f=this.chunkSize(u),d=Math.pow(u,f),_=bn$3(d),x=Et(),I=Et(),E="";for(this.divRemTo(_,x,I);x.signum()>0;)E=(d+I.intValue()).toString(u).substr(1)+E,x.divRemTo(_,x,I);return I.intValue().toString(u)+E}function ZA(u,f){this.fromInt(0),f==null&&(f=10);for(var d=this.chunkSize(f),_=Math.pow(f,d),x=!1,I=0,E=0,M=0;M<u.length;++M){var S=w2(u,M);if(S<0){u.charAt(M)=="-"&&this.signum()==0&&(x=!0);continue}E=f*E+S,++I>=d&&(this.dMultiply(_),this.dAddOffset(E,0),I=0,E=0)}I>0&&(this.dMultiply(Math.pow(f,I)),this.dAddOffset(E,0)),x&&_e.ZERO.subTo(this,this)}function JA(u,f,d){if(typeof f=="number")if(u<2)this.fromInt(1);else for(this.fromNumber(u,d),this.testBit(u-1)||this.bitwiseTo(_e.ONE.shiftLeft(u-1),Vh,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(f);)this.dAddOffset(2,0),this.bitLength()>u&&this.subTo(_e.ONE.shiftLeft(u-1),this);else{var _=new Array,x=u&7;_.length=(u>>3)+1,f.nextBytes(_),x>0?_[0]&=(1<<x)-1:_[0]=0,this.fromString(_,256)}}function eB(){var u=this.t,f=new Array;f[0]=this.s;var d=this.DB-u*this.DB%8,_,x=0;if(u-- >0)for(d<this.DB&&(_=this.data[u]>>d)!=(this.s&this.DM)>>d&&(f[x++]=_|this.s<<this.DB-d);u>=0;)d<8?(_=(this.data[u]&(1<<d)-1)<<8-d,_|=this.data[--u]>>(d+=this.DB-8)):(_=this.data[u]>>(d-=8)&255,d<=0&&(d+=this.DB,--u)),_&128&&(_|=-256),x==0&&(this.s&128)!=(_&128)&&++x,(x>0||_!=this.s)&&(f[x++]=_);return f}function tB(u){return this.compareTo(u)==0}function rB(u){return this.compareTo(u)<0?this:u}function iB(u){return this.compareTo(u)>0?this:u}function nB(u,f,d){var _,x,I=Math.min(u.t,this.t);for(_=0;_<I;++_)d.data[_]=f(this.data[_],u.data[_]);if(u.t<this.t){for(x=u.s&this.DM,_=I;_<this.t;++_)d.data[_]=f(this.data[_],x);d.t=this.t}else{for(x=this.s&this.DM,_=I;_<u.t;++_)d.data[_]=f(x,u.data[_]);d.t=u.t}d.s=f(this.s,u.s),d.clamp()}function aB(u,f){return u&f}function sB(u){var f=Et();return this.bitwiseTo(u,aB,f),f}function Vh(u,f){return u|f}function fB(u){var f=Et();return this.bitwiseTo(u,Vh,f),f}function C2(u,f){return u^f}function oB(u){var f=Et();return this.bitwiseTo(u,C2,f),f}function A2(u,f){return u&~f}function uB(u){var f=Et();return this.bitwiseTo(u,A2,f),f}function cB(){for(var u=Et(),f=0;f<this.t;++f)u.data[f]=this.DM&~this.data[f];return u.t=this.t,u.s=~this.s,u}function hB(u){var f=Et();return u<0?this.rShiftTo(-u,f):this.lShiftTo(u,f),f}function lB(u){var f=Et();return u<0?this.lShiftTo(-u,f):this.rShiftTo(u,f),f}function dB(u){if(u==0)return-1;var f=0;return u&65535||(u>>=16,f+=16),u&255||(u>>=8,f+=8),u&15||(u>>=4,f+=4),u&3||(u>>=2,f+=2),u&1||++f,f}function pB(){for(var u=0;u<this.t;++u)if(this.data[u]!=0)return u*this.DB+dB(this.data[u]);return this.s<0?this.t*this.DB:-1}function vB(u){for(var f=0;u!=0;)u&=u-1,++f;return f}function yB(){for(var u=0,f=this.s&this.DM,d=0;d<this.t;++d)u+=vB(this.data[d]^f);return u}function gB(u){var f=Math.floor(u/this.DB);return f>=this.t?this.s!=0:(this.data[f]&1<<u%this.DB)!=0}function mB(u,f){var d=_e.ONE.shiftLeft(u);return this.bitwiseTo(d,f,d),d}function bB(u){return this.changeBit(u,Vh)}function xB(u){return this.changeBit(u,A2)}function _B(u){return this.changeBit(u,C2)}function EB(u,f){for(var d=0,_=0,x=Math.min(u.t,this.t);d<x;)_+=this.data[d]+u.data[d],f.data[d++]=_&this.DM,_>>=this.DB;if(u.t<this.t){for(_+=u.s;d<this.t;)_+=this.data[d],f.data[d++]=_&this.DM,_>>=this.DB;_+=this.s}else{for(_+=this.s;d<u.t;)_+=u.data[d],f.data[d++]=_&this.DM,_>>=this.DB;_+=u.s}f.s=_<0?-1:0,_>0?f.data[d++]=_:_<-1&&(f.data[d++]=this.DV+_),f.t=d,f.clamp()}function SB(u){var f=Et();return this.addTo(u,f),f}function wB(u){var f=Et();return this.subTo(u,f),f}function CB(u){var f=Et();return this.multiplyTo(u,f),f}function AB(u){var f=Et();return this.divRemTo(u,f,null),f}function BB(u){var f=Et();return this.divRemTo(u,null,f),f}function IB(u){var f=Et(),d=Et();return this.divRemTo(u,f,d),new Array(f,d)}function TB(u){this.data[this.t]=this.am(0,u-1,this,0,0,this.t),++this.t,this.clamp()}function MB(u,f){if(u!=0){for(;this.t<=f;)this.data[this.t++]=0;for(this.data[f]+=u;this.data[f]>=this.DV;)this.data[f]-=this.DV,++f>=this.t&&(this.data[this.t++]=0),++this.data[f]}}function W0(){}function B2(u){return u}function RB(u,f,d){u.multiplyTo(f,d)}function NB(u,f){u.squareTo(f)}W0.prototype.convert=B2;W0.prototype.revert=B2;W0.prototype.mulTo=RB;W0.prototype.sqrTo=NB;function DB(u){return this.exp(u,new W0)}function OB(u,f,d){var _=Math.min(this.t+u.t,f);for(d.s=0,d.t=_;_>0;)d.data[--_]=0;var x;for(x=d.t-this.t;_<x;++_)d.data[_+this.t]=this.am(0,u.data[_],d,_,0,this.t);for(x=Math.min(u.t,f);_<x;++_)this.am(0,u.data[_],d,_,0,f-_);d.clamp()}function PB(u,f,d){--f;var _=d.t=this.t+u.t-f;for(d.s=0;--_>=0;)d.data[_]=0;for(_=Math.max(f-this.t,0);_<u.t;++_)d.data[this.t+_-f]=this.am(f-_,u.data[_],d,0,0,this.t+_-f);d.clamp(),d.drShiftTo(1,d)}function t0(u){this.r2=Et(),this.q3=Et(),_e.ONE.dlShiftTo(2*u.t,this.r2),this.mu=this.r2.divide(u),this.m=u}function LB(u){if(u.s<0||u.t>2*this.m.t)return u.mod(this.m);if(u.compareTo(this.m)<0)return u;var f=Et();return u.copyTo(f),this.reduce(f),f}function kB(u){return u}function UB(u){for(u.drShiftTo(this.m.t-1,this.r2),u.t>this.m.t+1&&(u.t=this.m.t+1,u.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);u.compareTo(this.r2)<0;)u.dAddOffset(1,this.m.t+1);for(u.subTo(this.r2,u);u.compareTo(this.m)>=0;)u.subTo(this.m,u)}function FB(u,f){u.squareTo(f),this.reduce(f)}function qB(u,f,d){u.multiplyTo(f,d),this.reduce(d)}t0.prototype.convert=LB;t0.prototype.revert=kB;t0.prototype.reduce=UB;t0.prototype.mulTo=qB;t0.prototype.sqrTo=FB;function VB(u,f){var d=u.bitLength(),_,x=bn$3(1),I;if(d<=0)return x;d<18?_=1:d<48?_=3:d<144?_=4:d<768?_=5:_=6,d<8?I=new oa(f):f.isEven()?I=new t0(f):I=new ua(f);var E=new Array,M=3,S=_-1,A=(1<<_)-1;if(E[1]=I.convert(this),_>1){var T=Et();for(I.sqrTo(E[1],T);M<=A;)E[M]=Et(),I.mulTo(T,E[M-2],E[M]),M+=2}var D=u.t-1,O,j=!0,$=Et(),W;for(d=qf(u.data[D])-1;D>=0;){for(d>=S?O=u.data[D]>>d-S&A:(O=(u.data[D]&(1<<d+1)-1)<<S-d,D>0&&(O|=u.data[D-1]>>this.DB+d-S)),M=_;!(O&1);)O>>=1,--M;if((d-=M)<0&&(d+=this.DB,--D),j)E[O].copyTo(x),j=!1;else{for(;M>1;)I.sqrTo(x,$),I.sqrTo($,x),M-=2;M>0?I.sqrTo(x,$):(W=x,x=$,$=W),I.mulTo($,E[O],x)}for(;D>=0&&!(u.data[D]&1<<d);)I.sqrTo(x,$),W=x,x=$,$=W,--d<0&&(d=this.DB-1,--D)}return I.revert(x)}function KB(u){var f=this.s<0?this.negate():this.clone(),d=u.s<0?u.negate():u.clone();if(f.compareTo(d)<0){var _=f;f=d,d=_}var x=f.getLowestSetBit(),I=d.getLowestSetBit();if(I<0)return f;for(x<I&&(I=x),I>0&&(f.rShiftTo(I,f),d.rShiftTo(I,d));f.signum()>0;)(x=f.getLowestSetBit())>0&&f.rShiftTo(x,f),(x=d.getLowestSetBit())>0&&d.rShiftTo(x,d),f.compareTo(d)>=0?(f.subTo(d,f),f.rShiftTo(1,f)):(d.subTo(f,d),d.rShiftTo(1,d));return I>0&&d.lShiftTo(I,d),d}function $B(u){if(u<=0)return 0;var f=this.DV%u,d=this.s<0?u-1:0;if(this.t>0)if(f==0)d=this.data[0]%u;else for(var _=this.t-1;_>=0;--_)d=(f*d+this.data[_])%u;return d}function HB(u){var f=u.isEven();if(this.isEven()&&f||u.signum()==0)return _e.ZERO;for(var d=u.clone(),_=this.clone(),x=bn$3(1),I=bn$3(0),E=bn$3(0),M=bn$3(1);d.signum()!=0;){for(;d.isEven();)d.rShiftTo(1,d),f?((!x.isEven()||!I.isEven())&&(x.addTo(this,x),I.subTo(u,I)),x.rShiftTo(1,x)):I.isEven()||I.subTo(u,I),I.rShiftTo(1,I);for(;_.isEven();)_.rShiftTo(1,_),f?((!E.isEven()||!M.isEven())&&(E.addTo(this,E),M.subTo(u,M)),E.rShiftTo(1,E)):M.isEven()||M.subTo(u,M),M.rShiftTo(1,M);d.compareTo(_)>=0?(d.subTo(_,d),f&&x.subTo(E,x),I.subTo(M,I)):(_.subTo(d,_),f&&E.subTo(x,E),M.subTo(I,M))}if(_.compareTo(_e.ONE)!=0)return _e.ZERO;if(M.compareTo(u)>=0)return M.subtract(u);if(M.signum()<0)M.addTo(u,M);else return M;return M.signum()<0?M.add(u):M}var xi=[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],GB=(1<<26)/xi[xi.length-1];function zB(u){var f,d=this.abs();if(d.t==1&&d.data[0]<=xi[xi.length-1]){for(f=0;f<xi.length;++f)if(d.data[0]==xi[f])return!0;return!1}if(d.isEven())return!1;for(f=1;f<xi.length;){for(var _=xi[f],x=f+1;x<xi.length&&_<GB;)_*=xi[x++];for(_=d.modInt(_);f<x;)if(_%xi[f++]==0)return!1}return d.millerRabin(u)}function jB(u){var f=this.subtract(_e.ONE),d=f.getLowestSetBit();if(d<=0)return!1;for(var _=f.shiftRight(d),x=WB(),I,E=0;E<u;++E){do I=new _e(this.bitLength(),x);while(I.compareTo(_e.ONE)<=0||I.compareTo(f)>=0);var M=I.modPow(_,this);if(M.compareTo(_e.ONE)!=0&&M.compareTo(f)!=0){for(var S=1;S++<d&&M.compareTo(f)!=0;)if(M=M.modPowInt(2,this),M.compareTo(_e.ONE)==0)return!1;if(M.compareTo(f)!=0)return!1}}return!0}function WB(){return{nextBytes:function(u){for(var f=0;f<u.length;++f)u[f]=Math.floor(Math.random()*256)}}}_e.prototype.chunkSize=YA;_e.prototype.toRadix=QA;_e.prototype.fromRadix=ZA;_e.prototype.fromNumber=JA;_e.prototype.bitwiseTo=nB;_e.prototype.changeBit=mB;_e.prototype.addTo=EB;_e.prototype.dMultiply=TB;_e.prototype.dAddOffset=MB;_e.prototype.multiplyLowerTo=OB;_e.prototype.multiplyUpperTo=PB;_e.prototype.modInt=$B;_e.prototype.millerRabin=jB;_e.prototype.clone=GA;_e.prototype.intValue=zA;_e.prototype.byteValue=jA;_e.prototype.shortValue=WA;_e.prototype.signum=XA;_e.prototype.toByteArray=eB;_e.prototype.equals=tB;_e.prototype.min=rB;_e.prototype.max=iB;_e.prototype.and=sB;_e.prototype.or=fB;_e.prototype.xor=oB;_e.prototype.andNot=uB;_e.prototype.not=cB;_e.prototype.shiftLeft=hB;_e.prototype.shiftRight=lB;_e.prototype.getLowestSetBit=pB;_e.prototype.bitCount=yB;_e.prototype.testBit=gB;_e.prototype.setBit=bB;_e.prototype.clearBit=xB;_e.prototype.flipBit=_B;_e.prototype.add=SB;_e.prototype.subtract=wB;_e.prototype.multiply=CB;_e.prototype.divide=AB;_e.prototype.remainder=BB;_e.prototype.divideAndRemainder=IB;_e.prototype.modPow=VB;_e.prototype.modInverse=HB;_e.prototype.pow=DB;_e.prototype.gcd=KB;_e.prototype.isProbablePrime=zB;var Ui=ht,I2=Ui.sha1=Ui.sha1||{};Ui.md.sha1=Ui.md.algorithms.sha1=I2;I2.create=function(){T2||YB();var u=null,f=Ui.util.createBuffer(),d=new Array(80),_={algorithm:"sha1",blockLength:64,digestLength:20,messageLength:0,fullMessageLength:null,messageLengthSize:8};return _.start=function(){_.messageLength=0,_.fullMessageLength=_.messageLength64=[];for(var x=_.messageLengthSize/4,I=0;I<x;++I)_.fullMessageLength.push(0);return f=Ui.util.createBuffer(),u={h0:1732584193,h1:4023233417,h2:2562383102,h3:271733878,h4:3285377520},_},_.start(),_.update=function(x,I){I==="utf8"&&(x=Ui.util.encodeUtf8(x));var E=x.length;_.messageLength+=E,E=[E/4294967296>>>0,E>>>0];for(var M=_.fullMessageLength.length-1;M>=0;--M)_.fullMessageLength[M]+=E[1],E[1]=E[0]+(_.fullMessageLength[M]/4294967296>>>0),_.fullMessageLength[M]=_.fullMessageLength[M]>>>0,E[0]=E[1]/4294967296>>>0;return f.putBytes(x),qp(u,d,f),(f.read>2048||f.length()===0)&&f.compact(),_},_.digest=function(){var x=Ui.util.createBuffer();x.putBytes(f.bytes());var I=_.fullMessageLength[_.fullMessageLength.length-1]+_.messageLengthSize,E=I&_.blockLength-1;x.putBytes(Sc.substr(0,_.blockLength-E));for(var M,S,A=_.fullMessageLength[0]*8,T=0;T<_.fullMessageLength.length-1;++T)M=_.fullMessageLength[T+1]*8,S=M/4294967296>>>0,A+=S,x.putInt32(A>>>0),A=M>>>0;x.putInt32(A);var D={h0:u.h0,h1:u.h1,h2:u.h2,h3:u.h3,h4:u.h4};qp(D,d,x);var O=Ui.util.createBuffer();return O.putInt32(D.h0),O.putInt32(D.h1),O.putInt32(D.h2),O.putInt32(D.h3),O.putInt32(D.h4),O},_};var Sc=null,T2=!1;function YB(){Sc="",Sc+=Ui.util.fillString("\0",64),T2=!0}function qp(u,f,d){for(var _,x,I,E,M,S,A,T,D=d.length();D>=64;){for(x=u.h0,I=u.h1,E=u.h2,M=u.h3,S=u.h4,T=0;T<16;++T)_=d.getInt32(),f[T]=_,A=M^I&(E^M),_=(x<<5|x>>>27)+A+S+1518500249+_,S=M,M=E,E=(I<<30|I>>>2)>>>0,I=x,x=_;for(;T<20;++T)_=f[T-3]^f[T-8]^f[T-14]^f[T-16],_=_<<1|_>>>31,f[T]=_,A=M^I&(E^M),_=(x<<5|x>>>27)+A+S+1518500249+_,S=M,M=E,E=(I<<30|I>>>2)>>>0,I=x,x=_;for(;T<32;++T)_=f[T-3]^f[T-8]^f[T-14]^f[T-16],_=_<<1|_>>>31,f[T]=_,A=I^E^M,_=(x<<5|x>>>27)+A+S+1859775393+_,S=M,M=E,E=(I<<30|I>>>2)>>>0,I=x,x=_;for(;T<40;++T)_=f[T-6]^f[T-16]^f[T-28]^f[T-32],_=_<<2|_>>>30,f[T]=_,A=I^E^M,_=(x<<5|x>>>27)+A+S+1859775393+_,S=M,M=E,E=(I<<30|I>>>2)>>>0,I=x,x=_;for(;T<60;++T)_=f[T-6]^f[T-16]^f[T-28]^f[T-32],_=_<<2|_>>>30,f[T]=_,A=I&E|M&(I^E),_=(x<<5|x>>>27)+A+S+2400959708+_,S=M,M=E,E=(I<<30|I>>>2)>>>0,I=x,x=_;for(;T<80;++T)_=f[T-6]^f[T-16]^f[T-28]^f[T-32],_=_<<2|_>>>30,f[T]=_,A=I^E^M,_=(x<<5|x>>>27)+A+S+3395469782+_,S=M,M=E,E=(I<<30|I>>>2)>>>0,I=x,x=_;u.h0=u.h0+x|0,u.h1=u.h1+I|0,u.h2=u.h2+E|0,u.h3=u.h3+M|0,u.h4=u.h4+S|0,D-=64}}var Fi=ht,M2=Fi.pkcs1=Fi.pkcs1||{};M2.encode_rsa_oaep=function(u,f,d){var _,x,I,E;typeof d=="string"?(_=d,x=arguments[3]||void 0,I=arguments[4]||void 0):d&&(_=d.label||void 0,x=d.seed||void 0,I=d.md||void 0,d.mgf1&&d.mgf1.md&&(E=d.mgf1.md)),I?I.start():I=Fi.md.sha1.create(),E||(E=I);var M=Math.ceil(u.n.bitLength()/8),S=M-2*I.digestLength-2;if(f.length>S){var A=new Error("RSAES-OAEP input message length is too long.");throw A.length=f.length,A.maxLength=S,A}_||(_=""),I.update(_,"raw");for(var T=I.digest(),D="",O=S-f.length,j=0;j<O;j++)D+="\0";var $=T.getBytes()+D+""+f;if(!x)x=Fi.random.getBytes(I.digestLength);else if(x.length!==I.digestLength){var A=new Error("Invalid RSAES-OAEP seed. The seed length must match the digest length.");throw A.seedLength=x.length,A.digestLength=I.digestLength,A}var W=ks(x,M-I.digestLength-1,E),Q=Fi.util.xorBytes($,W,$.length),X=ks(Q,I.digestLength,E),Y=Fi.util.xorBytes(x,X,x.length);return"\0"+Y+Q};M2.decode_rsa_oaep=function(u,f,d){var _,x,I;typeof d=="string"?(_=d,x=arguments[3]||void 0):d&&(_=d.label||void 0,x=d.md||void 0,d.mgf1&&d.mgf1.md&&(I=d.mgf1.md));var E=Math.ceil(u.n.bitLength()/8);if(f.length!==E){var M=new Error("RSAES-OAEP encoded message length is invalid.");throw M.length=f.length,M.expectedLength=E,M}if(x===void 0?x=Fi.md.sha1.create():x.start(),I||(I=x),E<2*x.digestLength+2)throw new Error("RSAES-OAEP key is too short for the hash function.");_||(_=""),x.update(_,"raw");for(var S=x.digest().getBytes(),A=f.charAt(0),T=f.substring(1,x.digestLength+1),D=f.substring(1+x.digestLength),O=ks(D,x.digestLength,I),j=Fi.util.xorBytes(T,O,T.length),$=ks(j,E-x.digestLength-1,I),W=Fi.util.xorBytes(D,$,D.length),Q=W.substring(0,x.digestLength),M=A!=="\0",X=0;X<x.digestLength;++X)M|=S.charAt(X)!==Q.charAt(X);for(var Y=1,ie=x.digestLength,oe=x.digestLength;oe<W.length;oe++){var ge=W.charCodeAt(oe),be=ge&1^1,ze=Y?65534:0;M|=ge&ze,Y=Y&be,ie+=Y}if(M||W.charCodeAt(ie)!==1)throw new Error("Invalid RSAES-OAEP padding.");return W.substring(ie+1)};function ks(u,f,d){d||(d=Fi.md.sha1.create());for(var _="",x=Math.ceil(f/d.digestLength),I=0;I<x;++I){var E=String.fromCharCode(I>>24&255,I>>16&255,I>>8&255,I&255);d.start(),d.update(u+E),_+=d.digest().getBytes()}return _.substring(0,f)}var ln=ht;(function(){if(ln.prime){ln.prime;return}var u=ln.prime=ln.prime||{},f=ln.jsbn.BigInteger,d=[6,4,2,4,2,4,6,2],_=new f(null);_.fromInt(30);var x=function(D,O){return D|O};u.generateProbablePrime=function(D,O,j){typeof O=="function"&&(j=O,O={}),O=O||{};var $=O.algorithm||"PRIMEINC";typeof $=="string"&&($={name:$}),$.options=$.options||{};var W=O.prng||ln.random,Q={nextBytes:function(X){for(var Y=W.getBytesSync(X.length),ie=0;ie<X.length;++ie)X[ie]=Y.charCodeAt(ie)}};if($.name==="PRIMEINC")return I(D,Q,$.options,j);throw new Error("Invalid prime generation algorithm: "+$.name)};function I(D,O,j,$){return"workers"in j?S(D,O,j,$):E(D,O,j,$)}function E(D,O,j,$){var W=A(D,O),Q=0,X=T(W.bitLength());"millerRabinTests"in j&&(X=j.millerRabinTests);var Y=10;"maxBlockTime"in j&&(Y=j.maxBlockTime),M(W,D,O,Q,X,Y,$)}function M(D,O,j,$,W,Q,X){var Y=+new Date;do{if(D.bitLength()>O&&(D=A(O,j)),D.isProbablePrime(W))return X(null,D);D.dAddOffset(d[$++%8],0)}while(Q<0||+new Date-Y<Q);ln.util.setImmediate(function(){M(D,O,j,$,W,Q,X)})}function S(D,O,j,$){if(typeof Worker>"u")return E(D,O,j,$);var W=A(D,O),Q=j.workers,X=j.workLoad||100,Y=X*30/8,ie=j.workerScript||"forge/prime.worker.js";if(Q===-1)return ln.util.estimateCores(function(ge,be){ge&&(be=2),Q=be-1,oe()});oe();function oe(){Q=Math.max(1,Q);for(var ge=[],be=0;be<Q;++be)ge[be]=new Worker(ie);for(var be=0;be<Q;++be)ge[be].addEventListener("message",de);var ze=!1;function de(Ce){if(!ze){var ke=Ce.data;if(ke.found){for(var le=0;le<ge.length;++le)ge[le].terminate();return ze=!0,$(null,new f(ke.prime,16))}W.bitLength()>D&&(W=A(D,O));var re=W.toString(16);Ce.target.postMessage({hex:re,workLoad:X}),W.dAddOffset(Y,0)}}}}function A(D,O){var j=new f(D,O),$=D-1;return j.testBit($)||j.bitwiseTo(f.ONE.shiftLeft($),x,j),j.dAddOffset(31-j.mod(_).byteValue(),0),j}function T(D){return D<=100?27:D<=150?18:D<=200?15:D<=250?12:D<=300?9:D<=350?8:D<=400?7:D<=500?6:D<=600?5:D<=800?4:D<=1250?3:2}})();var He=ht;if(typeof _t>"u")var _t=He.jsbn.BigInteger;var wc=He.util.isNodejs?_r():null,he=He.asn1,Hr=He.util;He.pki=He.pki||{};He.pki.rsa=He.rsa=He.rsa||{};var at=He.pki,XB=[6,4,2,4,2,4,6,2],QB={name:"PrivateKeyInfo",tagClass:he.Class.UNIVERSAL,type:he.Type.SEQUENCE,constructed:!0,value:[{name:"PrivateKeyInfo.version",tagClass:he.Class.UNIVERSAL,type:he.Type.INTEGER,constructed:!1,capture:"privateKeyVersion"},{name:"PrivateKeyInfo.privateKeyAlgorithm",tagClass:he.Class.UNIVERSAL,type:he.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:he.Class.UNIVERSAL,type:he.Type.OID,constructed:!1,capture:"privateKeyOid"}]},{name:"PrivateKeyInfo",tagClass:he.Class.UNIVERSAL,type:he.Type.OCTETSTRING,constructed:!1,capture:"privateKey"}]},ZB={name:"RSAPrivateKey",tagClass:he.Class.UNIVERSAL,type:he.Type.SEQUENCE,constructed:!0,value:[{name:"RSAPrivateKey.version",tagClass:he.Class.UNIVERSAL,type:he.Type.INTEGER,constructed:!1,capture:"privateKeyVersion"},{name:"RSAPrivateKey.modulus",tagClass:he.Class.UNIVERSAL,type:he.Type.INTEGER,constructed:!1,capture:"privateKeyModulus"},{name:"RSAPrivateKey.publicExponent",tagClass:he.Class.UNIVERSAL,type:he.Type.INTEGER,constructed:!1,capture:"privateKeyPublicExponent"},{name:"RSAPrivateKey.privateExponent",tagClass:he.Class.UNIVERSAL,type:he.Type.INTEGER,constructed:!1,capture:"privateKeyPrivateExponent"},{name:"RSAPrivateKey.prime1",tagClass:he.Class.UNIVERSAL,type:he.Type.INTEGER,constructed:!1,capture:"privateKeyPrime1"},{name:"RSAPrivateKey.prime2",tagClass:he.Class.UNIVERSAL,type:he.Type.INTEGER,constructed:!1,capture:"privateKeyPrime2"},{name:"RSAPrivateKey.exponent1",tagClass:he.Class.UNIVERSAL,type:he.Type.INTEGER,constructed:!1,capture:"privateKeyExponent1"},{name:"RSAPrivateKey.exponent2",tagClass:he.Class.UNIVERSAL,type:he.Type.INTEGER,constructed:!1,capture:"privateKeyExponent2"},{name:"RSAPrivateKey.coefficient",tagClass:he.Class.UNIVERSAL,type:he.Type.INTEGER,constructed:!1,capture:"privateKeyCoefficient"}]},JB={name:"RSAPublicKey",tagClass:he.Class.UNIVERSAL,type:he.Type.SEQUENCE,constructed:!0,value:[{name:"RSAPublicKey.modulus",tagClass:he.Class.UNIVERSAL,type:he.Type.INTEGER,constructed:!1,capture:"publicKeyModulus"},{name:"RSAPublicKey.exponent",tagClass:he.Class.UNIVERSAL,type:he.Type.INTEGER,constructed:!1,capture:"publicKeyExponent"}]},eI=He.pki.rsa.publicKeyValidator={name:"SubjectPublicKeyInfo",tagClass:he.Class.UNIVERSAL,type:he.Type.SEQUENCE,constructed:!0,captureAsn1:"subjectPublicKeyInfo",value:[{name:"SubjectPublicKeyInfo.AlgorithmIdentifier",tagClass:he.Class.UNIVERSAL,type:he.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:he.Class.UNIVERSAL,type:he.Type.OID,constructed:!1,capture:"publicKeyOid"}]},{name:"SubjectPublicKeyInfo.subjectPublicKey",tagClass:he.Class.UNIVERSAL,type:he.Type.BITSTRING,constructed:!1,value:[{name:"SubjectPublicKeyInfo.subjectPublicKey.RSAPublicKey",tagClass:he.Class.UNIVERSAL,type:he.Type.SEQUENCE,constructed:!0,optional:!0,captureAsn1:"rsaPublicKey"}]}]},tI={name:"DigestInfo",tagClass:he.Class.UNIVERSAL,type:he.Type.SEQUENCE,constructed:!0,value:[{name:"DigestInfo.DigestAlgorithm",tagClass:he.Class.UNIVERSAL,type:he.Type.SEQUENCE,constructed:!0,value:[{name:"DigestInfo.DigestAlgorithm.algorithmIdentifier",tagClass:he.Class.UNIVERSAL,type:he.Type.OID,constructed:!1,capture:"algorithmIdentifier"},{name:"DigestInfo.DigestAlgorithm.parameters",tagClass:he.Class.UNIVERSAL,type:he.Type.NULL,capture:"parameters",optional:!0,constructed:!1}]},{name:"DigestInfo.digest",tagClass:he.Class.UNIVERSAL,type:he.Type.OCTETSTRING,constructed:!1,capture:"digest"}]},rI=function(u){var f;if(u.algorithm in at.oids)f=at.oids[u.algorithm];else{var d=new Error("Unknown message digest algorithm.");throw d.algorithm=u.algorithm,d}var _=he.oidToDer(f).getBytes(),x=he.create(he.Class.UNIVERSAL,he.Type.SEQUENCE,!0,[]),I=he.create(he.Class.UNIVERSAL,he.Type.SEQUENCE,!0,[]);I.value.push(he.create(he.Class.UNIVERSAL,he.Type.OID,!1,_)),I.value.push(he.create(he.Class.UNIVERSAL,he.Type.NULL,!1,""));var E=he.create(he.Class.UNIVERSAL,he.Type.OCTETSTRING,!1,u.digest().getBytes());return x.value.push(I),x.value.push(E),he.toDer(x).getBytes()},R2=function(u,f,d){if(d)return u.modPow(f.e,f.n);if(!f.p||!f.q)return u.modPow(f.d,f.n);f.dP||(f.dP=f.d.mod(f.p.subtract(_t.ONE))),f.dQ||(f.dQ=f.d.mod(f.q.subtract(_t.ONE))),f.qInv||(f.qInv=f.q.modInverse(f.p));var _;do _=new _t(He.util.bytesToHex(He.random.getBytes(f.n.bitLength()/8)),16);while(_.compareTo(f.n)>=0||!_.gcd(f.n).equals(_t.ONE));u=u.multiply(_.modPow(f.e,f.n)).mod(f.n);for(var x=u.mod(f.p).modPow(f.dP,f.p),I=u.mod(f.q).modPow(f.dQ,f.q);x.compareTo(I)<0;)x=x.add(f.p);var E=x.subtract(I).multiply(f.qInv).mod(f.p).multiply(f.q).add(I);return E=E.multiply(_.modInverse(f.n)).mod(f.n),E};at.rsa.encrypt=function(u,f,d){var _=d,x,I=Math.ceil(f.n.bitLength()/8);d!==!1&&d!==!0?(_=d===2,x=N2(u,f,d)):(x=He.util.createBuffer(),x.putBytes(u));for(var E=new _t(x.toHex(),16),M=R2(E,f,_),S=M.toString(16),A=He.util.createBuffer(),T=I-Math.ceil(S.length/2);T>0;)A.putByte(0),--T;return A.putBytes(He.util.hexToBytes(S)),A.getBytes()};at.rsa.decrypt=function(u,f,d,_){var x=Math.ceil(f.n.bitLength()/8);if(u.length!==x){var I=new Error("Encrypted message length is invalid.");throw I.length=u.length,I.expected=x,I}var E=new _t(He.util.createBuffer(u).toHex(),16);if(E.compareTo(f.n)>=0)throw new Error("Encrypted message is invalid.");for(var M=R2(E,f,d),S=M.toString(16),A=He.util.createBuffer(),T=x-Math.ceil(S.length/2);T>0;)A.putByte(0),--T;return A.putBytes(He.util.hexToBytes(S)),_!==!1?Us(A.getBytes(),f,d):A.getBytes()};at.rsa.createKeyPairGenerationState=function(u,f,d){typeof u=="string"&&(u=parseInt(u,10)),u=u||2048,d=d||{};var _=d.prng||He.random,x={nextBytes:function(M){for(var S=_.getBytesSync(M.length),A=0;A<M.length;++A)M[A]=S.charCodeAt(A)}},I=d.algorithm||"PRIMEINC",E;if(I==="PRIMEINC")E={algorithm:I,state:0,bits:u,rng:x,eInt:f||65537,e:new _t(null),p:null,q:null,qBits:u>>1,pBits:u-(u>>1),pqState:0,num:null,keys:null},E.e.fromInt(E.eInt);else throw new Error("Invalid key generation algorithm: "+I);return E};at.rsa.stepKeyPairGenerationState=function(u,f){"algorithm"in u||(u.algorithm="PRIMEINC");var d=new _t(null);d.fromInt(30);for(var _=0,x=function(D,O){return D|O},I=+new Date,E,M=0;u.keys===null&&(f<=0||M<f);){if(u.state===0){var S=u.p===null?u.pBits:u.qBits,A=S-1;u.pqState===0?(u.num=new _t(S,u.rng),u.num.testBit(A)||u.num.bitwiseTo(_t.ONE.shiftLeft(A),x,u.num),u.num.dAddOffset(31-u.num.mod(d).byteValue(),0),_=0,++u.pqState):u.pqState===1?u.num.bitLength()>S?u.pqState=0:u.num.isProbablePrime(nI(u.num.bitLength()))?++u.pqState:u.num.dAddOffset(XB[_++%8],0):u.pqState===2?u.pqState=u.num.subtract(_t.ONE).gcd(u.e).compareTo(_t.ONE)===0?3:0:u.pqState===3&&(u.pqState=0,u.p===null?u.p=u.num:u.q=u.num,u.p!==null&&u.q!==null&&++u.state,u.num=null)}else if(u.state===1)u.p.compareTo(u.q)<0&&(u.num=u.p,u.p=u.q,u.q=u.num),++u.state;else if(u.state===2)u.p1=u.p.subtract(_t.ONE),u.q1=u.q.subtract(_t.ONE),u.phi=u.p1.multiply(u.q1),++u.state;else if(u.state===3)u.phi.gcd(u.e).compareTo(_t.ONE)===0?++u.state:(u.p=null,u.q=null,u.state=0);else if(u.state===4)u.n=u.p.multiply(u.q),u.n.bitLength()===u.bits?++u.state:(u.q=null,u.state=0);else if(u.state===5){var T=u.e.modInverse(u.phi);u.keys={privateKey:at.rsa.setPrivateKey(u.n,u.e,T,u.p,u.q,T.mod(u.p1),T.mod(u.q1),u.q.modInverse(u.p)),publicKey:at.rsa.setPublicKey(u.n,u.e)}}E=+new Date,M+=E-I,I=E}return u.keys!==null};at.rsa.generateKeyPair=function(u,f,d,_){if(arguments.length===1?typeof u=="object"?(d=u,u=void 0):typeof u=="function"&&(_=u,u=void 0):arguments.length===2?typeof u=="number"?typeof f=="function"?(_=f,f=void 0):typeof f!="number"&&(d=f,f=void 0):(d=u,_=f,u=void 0,f=void 0):arguments.length===3&&(typeof f=="number"?typeof d=="function"&&(_=d,d=void 0):(_=d,d=f,f=void 0)),d=d||{},u===void 0&&(u=d.bits||2048),f===void 0&&(f=d.e||65537),!He.options.usePureJavaScript&&!d.prng&&u>=256&&u<=16384&&(f===65537||f===3)){if(_){if(Vp("generateKeyPair"))return wc.generateKeyPair("rsa",{modulusLength:u,publicExponent:f,publicKeyEncoding:{type:"spki",format:"pem"},privateKeyEncoding:{type:"pkcs8",format:"pem"}},function(M,S,A){if(M)return _(M);_(null,{privateKey:at.privateKeyFromPem(A),publicKey:at.publicKeyFromPem(S)})});if(Kp("generateKey")&&Kp("exportKey"))return Hr.globalScope.crypto.subtle.generateKey({name:"RSASSA-PKCS1-v1_5",modulusLength:u,publicExponent:Hp(f),hash:{name:"SHA-256"}},!0,["sign","verify"]).then(function(M){return Hr.globalScope.crypto.subtle.exportKey("pkcs8",M.privateKey)}).then(void 0,function(M){_(M)}).then(function(M){if(M){var S=at.privateKeyFromAsn1(he.fromDer(He.util.createBuffer(M)));_(null,{privateKey:S,publicKey:at.setRsaPublicKey(S.n,S.e)})}});if($p("generateKey")&&$p("exportKey")){var x=Hr.globalScope.msCrypto.subtle.generateKey({name:"RSASSA-PKCS1-v1_5",modulusLength:u,publicExponent:Hp(f),hash:{name:"SHA-256"}},!0,["sign","verify"]);x.oncomplete=function(M){var S=M.target.result,A=Hr.globalScope.msCrypto.subtle.exportKey("pkcs8",S.privateKey);A.oncomplete=function(T){var D=T.target.result,O=at.privateKeyFromAsn1(he.fromDer(He.util.createBuffer(D)));_(null,{privateKey:O,publicKey:at.setRsaPublicKey(O.n,O.e)})},A.onerror=function(T){_(T)}},x.onerror=function(M){_(M)};return}}else if(Vp("generateKeyPairSync")){var I=wc.generateKeyPairSync("rsa",{modulusLength:u,publicExponent:f,publicKeyEncoding:{type:"spki",format:"pem"},privateKeyEncoding:{type:"pkcs8",format:"pem"}});return{privateKey:at.privateKeyFromPem(I.privateKey),publicKey:at.publicKeyFromPem(I.publicKey)}}}var E=at.rsa.createKeyPairGenerationState(u,f,d);if(!_)return at.rsa.stepKeyPairGenerationState(E,0),E.keys;iI(E,d,_)};at.setRsaPublicKey=at.rsa.setPublicKey=function(u,f){var d={n:u,e:f};return d.encrypt=function(_,x,I){if(typeof x=="string"?x=x.toUpperCase():x===void 0&&(x="RSAES-PKCS1-V1_5"),x==="RSAES-PKCS1-V1_5")x={encode:function(M,S,A){return N2(M,S,2).getBytes()}};else if(x==="RSA-OAEP"||x==="RSAES-OAEP")x={encode:function(M,S){return He.pkcs1.encode_rsa_oaep(S,M,I)}};else if(["RAW","NONE","NULL",null].indexOf(x)!==-1)x={encode:function(M){return M}};else if(typeof x=="string")throw new Error('Unsupported encryption scheme: "'+x+'".');var E=x.encode(_,d,!0);return at.rsa.encrypt(E,d,!0)},d.verify=function(_,x,I,E){typeof I=="string"?I=I.toUpperCase():I===void 0&&(I="RSASSA-PKCS1-V1_5"),E===void 0&&(E={_parseAllDigestBytes:!0}),"_parseAllDigestBytes"in E||(E._parseAllDigestBytes=!0),I==="RSASSA-PKCS1-V1_5"?I={verify:function(S,A){A=Us(A,d,!0);var T=he.fromDer(A,{parseAllBytes:E._parseAllDigestBytes}),D={},O=[];if(!he.validate(T,tI,D,O)){var j=new Error("ASN.1 object does not contain a valid RSASSA-PKCS1-v1_5 DigestInfo value.");throw j.errors=O,j}var $=he.derToOid(D.algorithmIdentifier);if(!($===He.oids.md2||$===He.oids.md5||$===He.oids.sha1||$===He.oids.sha224||$===He.oids.sha256||$===He.oids.sha384||$===He.oids.sha512||$===He.oids["sha512-224"]||$===He.oids["sha512-256"])){var j=new Error("Unknown RSASSA-PKCS1-v1_5 DigestAlgorithm identifier.");throw j.oid=$,j}if(($===He.oids.md2||$===He.oids.md5)&&!("parameters"in D))throw new Error("ASN.1 object does not contain a valid RSASSA-PKCS1-v1_5 DigestInfo value. Missing algorithm identifer NULL parameters.");return S===D.digest}}:(I==="NONE"||I==="NULL"||I===null)&&(I={verify:function(S,A){return A=Us(A,d,!0),S===A}});var M=at.rsa.decrypt(x,d,!0,!1);return I.verify(_,M,d.n.bitLength())},d};at.setRsaPrivateKey=at.rsa.setPrivateKey=function(u,f,d,_,x,I,E,M){var S={n:u,e:f,d,p:_,q:x,dP:I,dQ:E,qInv:M};return S.decrypt=function(A,T,D){typeof T=="string"?T=T.toUpperCase():T===void 0&&(T="RSAES-PKCS1-V1_5");var O=at.rsa.decrypt(A,S,!1,!1);if(T==="RSAES-PKCS1-V1_5")T={decode:Us};else if(T==="RSA-OAEP"||T==="RSAES-OAEP")T={decode:function(j,$){return He.pkcs1.decode_rsa_oaep($,j,D)}};else if(["RAW","NONE","NULL",null].indexOf(T)!==-1)T={decode:function(j){return j}};else throw new Error('Unsupported encryption scheme: "'+T+'".');return T.decode(O,S,!1)},S.sign=function(A,T){var D=!1;typeof T=="string"&&(T=T.toUpperCase()),T===void 0||T==="RSASSA-PKCS1-V1_5"?(T={encode:rI},D=1):(T==="NONE"||T==="NULL"||T===null)&&(T={encode:function(){return A}},D=1);var O=T.encode(A,S.n.bitLength());return at.rsa.encrypt(O,S,D)},S};at.wrapRsaPrivateKey=function(u){return he.create(he.Class.UNIVERSAL,he.Type.SEQUENCE,!0,[he.create(he.Class.UNIVERSAL,he.Type.INTEGER,!1,he.integerToDer(0).getBytes()),he.create(he.Class.UNIVERSAL,he.Type.SEQUENCE,!0,[he.create(he.Class.UNIVERSAL,he.Type.OID,!1,he.oidToDer(at.oids.rsaEncryption).getBytes()),he.create(he.Class.UNIVERSAL,he.Type.NULL,!1,"")]),he.create(he.Class.UNIVERSAL,he.Type.OCTETSTRING,!1,he.toDer(u).getBytes())])};at.privateKeyFromAsn1=function(u){var f={},d=[];if(he.validate(u,QB,f,d)&&(u=he.fromDer(He.util.createBuffer(f.privateKey))),f={},d=[],!he.validate(u,ZB,f,d)){var _=new Error("Cannot read private key. ASN.1 object does not contain an RSAPrivateKey.");throw _.errors=d,_}var x,I,E,M,S,A,T,D;return x=He.util.createBuffer(f.privateKeyModulus).toHex(),I=He.util.createBuffer(f.privateKeyPublicExponent).toHex(),E=He.util.createBuffer(f.privateKeyPrivateExponent).toHex(),M=He.util.createBuffer(f.privateKeyPrime1).toHex(),S=He.util.createBuffer(f.privateKeyPrime2).toHex(),A=He.util.createBuffer(f.privateKeyExponent1).toHex(),T=He.util.createBuffer(f.privateKeyExponent2).toHex(),D=He.util.createBuffer(f.privateKeyCoefficient).toHex(),at.setRsaPrivateKey(new _t(x,16),new _t(I,16),new _t(E,16),new _t(M,16),new _t(S,16),new _t(A,16),new _t(T,16),new _t(D,16))};at.privateKeyToAsn1=at.privateKeyToRSAPrivateKey=function(u){return he.create(he.Class.UNIVERSAL,he.Type.SEQUENCE,!0,[he.create(he.Class.UNIVERSAL,he.Type.INTEGER,!1,he.integerToDer(0).getBytes()),he.create(he.Class.UNIVERSAL,he.Type.INTEGER,!1,Mi(u.n)),he.create(he.Class.UNIVERSAL,he.Type.INTEGER,!1,Mi(u.e)),he.create(he.Class.UNIVERSAL,he.Type.INTEGER,!1,Mi(u.d)),he.create(he.Class.UNIVERSAL,he.Type.INTEGER,!1,Mi(u.p)),he.create(he.Class.UNIVERSAL,he.Type.INTEGER,!1,Mi(u.q)),he.create(he.Class.UNIVERSAL,he.Type.INTEGER,!1,Mi(u.dP)),he.create(he.Class.UNIVERSAL,he.Type.INTEGER,!1,Mi(u.dQ)),he.create(he.Class.UNIVERSAL,he.Type.INTEGER,!1,Mi(u.qInv))])};at.publicKeyFromAsn1=function(u){var f={},d=[];if(he.validate(u,eI,f,d)){var _=he.derToOid(f.publicKeyOid);if(_!==at.oids.rsaEncryption){var x=new Error("Cannot read public key. Unknown OID.");throw x.oid=_,x}u=f.rsaPublicKey}if(d=[],!he.validate(u,JB,f,d)){var x=new Error("Cannot read public key. ASN.1 object does not contain an RSAPublicKey.");throw x.errors=d,x}var I=He.util.createBuffer(f.publicKeyModulus).toHex(),E=He.util.createBuffer(f.publicKeyExponent).toHex();return at.setRsaPublicKey(new _t(I,16),new _t(E,16))};at.publicKeyToAsn1=at.publicKeyToSubjectPublicKeyInfo=function(u){return he.create(he.Class.UNIVERSAL,he.Type.SEQUENCE,!0,[he.create(he.Class.UNIVERSAL,he.Type.SEQUENCE,!0,[he.create(he.Class.UNIVERSAL,he.Type.OID,!1,he.oidToDer(at.oids.rsaEncryption).getBytes()),he.create(he.Class.UNIVERSAL,he.Type.NULL,!1,"")]),he.create(he.Class.UNIVERSAL,he.Type.BITSTRING,!1,[at.publicKeyToRSAPublicKey(u)])])};at.publicKeyToRSAPublicKey=function(u){return he.create(he.Class.UNIVERSAL,he.Type.SEQUENCE,!0,[he.create(he.Class.UNIVERSAL,he.Type.INTEGER,!1,Mi(u.n)),he.create(he.Class.UNIVERSAL,he.Type.INTEGER,!1,Mi(u.e))])};function N2(u,f,d){var _=He.util.createBuffer(),x=Math.ceil(f.n.bitLength()/8);if(u.length>x-11){var I=new Error("Message is too long for PKCS#1 v1.5 padding.");throw I.length=u.length,I.max=x-11,I}_.putByte(0),_.putByte(d);var E=x-3-u.length,M;if(d===0||d===1){M=d===0?0:255;for(var S=0;S<E;++S)_.putByte(M)}else for(;E>0;){for(var A=0,T=He.random.getBytes(E),S=0;S<E;++S)M=T.charCodeAt(S),M===0?++A:_.putByte(M);E=A}return _.putByte(0),_.putBytes(u),_}function Us(u,f,d,_){var x=Math.ceil(f.n.bitLength()/8),I=He.util.createBuffer(u),E=I.getByte(),M=I.getByte();if(E!==0||d&&M!==0&&M!==1||!d&&M!=2||d&&M===0&&typeof _>"u")throw new Error("Encryption block is invalid.");var S=0;if(M===0){S=x-3-_;for(var A=0;A<S;++A)if(I.getByte()!==0)throw new Error("Encryption block is invalid.")}else if(M===1)for(S=0;I.length()>1;){if(I.getByte()!==255){--I.read;break}++S}else if(M===2)for(S=0;I.length()>1;){if(I.getByte()===0){--I.read;break}++S}var T=I.getByte();if(T!==0||S!==x-3-I.length())throw new Error("Encryption block is invalid.");return I.getBytes()}function iI(u,f,d){typeof f=="function"&&(d=f,f={}),f=f||{};var _={algorithm:{name:f.algorithm||"PRIMEINC",options:{workers:f.workers||2,workLoad:f.workLoad||100,workerScript:f.workerScript}}};"prng"in f&&(_.prng=f.prng),x();function x(){I(u.pBits,function(M,S){if(M)return d(M);if(u.p=S,u.q!==null)return E(M,u.q);I(u.qBits,E)})}function I(M,S){He.prime.generateProbablePrime(M,_,S)}function E(M,S){if(M)return d(M);if(u.q=S,u.p.compareTo(u.q)<0){var A=u.p;u.p=u.q,u.q=A}if(u.p.subtract(_t.ONE).gcd(u.e).compareTo(_t.ONE)!==0){u.p=null,x();return}if(u.q.subtract(_t.ONE).gcd(u.e).compareTo(_t.ONE)!==0){u.q=null,I(u.qBits,E);return}if(u.p1=u.p.subtract(_t.ONE),u.q1=u.q.subtract(_t.ONE),u.phi=u.p1.multiply(u.q1),u.phi.gcd(u.e).compareTo(_t.ONE)!==0){u.p=u.q=null,x();return}if(u.n=u.p.multiply(u.q),u.n.bitLength()!==u.bits){u.q=null,I(u.qBits,E);return}var T=u.e.modInverse(u.phi);u.keys={privateKey:at.rsa.setPrivateKey(u.n,u.e,T,u.p,u.q,T.mod(u.p1),T.mod(u.q1),u.q.modInverse(u.p)),publicKey:at.rsa.setPublicKey(u.n,u.e)},d(null,u.keys)}}function Mi(u){var f=u.toString(16);f[0]>="8"&&(f="00"+f);var d=He.util.hexToBytes(f);return d.length>1&&(d.charCodeAt(0)===0&&!(d.charCodeAt(1)&128)||d.charCodeAt(0)===255&&(d.charCodeAt(1)&128)===128)?d.substr(1):d}function nI(u){return u<=100?27:u<=150?18:u<=200?15:u<=250?12:u<=300?9:u<=350?8:u<=400?7:u<=500?6:u<=600?5:u<=800?4:u<=1250?3:2}function Vp(u){return He.util.isNodejs&&typeof wc[u]=="function"}function Kp(u){return typeof Hr.globalScope<"u"&&typeof Hr.globalScope.crypto=="object"&&typeof Hr.globalScope.crypto.subtle=="object"&&typeof Hr.globalScope.crypto.subtle[u]=="function"}function $p(u){return typeof Hr.globalScope<"u"&&typeof Hr.globalScope.msCrypto=="object"&&typeof Hr.globalScope.msCrypto.subtle=="object"&&typeof Hr.globalScope.msCrypto.subtle[u]=="function"}function Hp(u){for(var f=He.util.hexToBytes(u.toString(16)),d=new Uint8Array(f.length),_=0;_<f.length;++_)d[_]=f.charCodeAt(_);return d}var De=ht;if(typeof aI>"u")var aI=De.jsbn.BigInteger;var ye=De.asn1,ft=De.pki=De.pki||{};ft.pbe=De.pbe=De.pbe||{};var Un=ft.oids,sI={name:"EncryptedPrivateKeyInfo",tagClass:ye.Class.UNIVERSAL,type:ye.Type.SEQUENCE,constructed:!0,value:[{name:"EncryptedPrivateKeyInfo.encryptionAlgorithm",tagClass:ye.Class.UNIVERSAL,type:ye.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:ye.Class.UNIVERSAL,type:ye.Type.OID,constructed:!1,capture:"encryptionOid"},{name:"AlgorithmIdentifier.parameters",tagClass:ye.Class.UNIVERSAL,type:ye.Type.SEQUENCE,constructed:!0,captureAsn1:"encryptionParams"}]},{name:"EncryptedPrivateKeyInfo.encryptedData",tagClass:ye.Class.UNIVERSAL,type:ye.Type.OCTETSTRING,constructed:!1,capture:"encryptedData"}]},fI={name:"PBES2Algorithms",tagClass:ye.Class.UNIVERSAL,type:ye.Type.SEQUENCE,constructed:!0,value:[{name:"PBES2Algorithms.keyDerivationFunc",tagClass:ye.Class.UNIVERSAL,type:ye.Type.SEQUENCE,constructed:!0,value:[{name:"PBES2Algorithms.keyDerivationFunc.oid",tagClass:ye.Class.UNIVERSAL,type:ye.Type.OID,constructed:!1,capture:"kdfOid"},{name:"PBES2Algorithms.params",tagClass:ye.Class.UNIVERSAL,type:ye.Type.SEQUENCE,constructed:!0,value:[{name:"PBES2Algorithms.params.salt",tagClass:ye.Class.UNIVERSAL,type:ye.Type.OCTETSTRING,constructed:!1,capture:"kdfSalt"},{name:"PBES2Algorithms.params.iterationCount",tagClass:ye.Class.UNIVERSAL,type:ye.Type.INTEGER,constructed:!1,capture:"kdfIterationCount"},{name:"PBES2Algorithms.params.keyLength",tagClass:ye.Class.UNIVERSAL,type:ye.Type.INTEGER,constructed:!1,optional:!0,capture:"keyLength"},{name:"PBES2Algorithms.params.prf",tagClass:ye.Class.UNIVERSAL,type:ye.Type.SEQUENCE,constructed:!0,optional:!0,value:[{name:"PBES2Algorithms.params.prf.algorithm",tagClass:ye.Class.UNIVERSAL,type:ye.Type.OID,constructed:!1,capture:"prfOid"}]}]}]},{name:"PBES2Algorithms.encryptionScheme",tagClass:ye.Class.UNIVERSAL,type:ye.Type.SEQUENCE,constructed:!0,value:[{name:"PBES2Algorithms.encryptionScheme.oid",tagClass:ye.Class.UNIVERSAL,type:ye.Type.OID,constructed:!1,capture:"encOid"},{name:"PBES2Algorithms.encryptionScheme.iv",tagClass:ye.Class.UNIVERSAL,type:ye.Type.OCTETSTRING,constructed:!1,capture:"encIv"}]}]},oI={name:"pkcs-12PbeParams",tagClass:ye.Class.UNIVERSAL,type:ye.Type.SEQUENCE,constructed:!0,value:[{name:"pkcs-12PbeParams.salt",tagClass:ye.Class.UNIVERSAL,type:ye.Type.OCTETSTRING,constructed:!1,capture:"salt"},{name:"pkcs-12PbeParams.iterations",tagClass:ye.Class.UNIVERSAL,type:ye.Type.INTEGER,constructed:!1,capture:"iterations"}]};ft.encryptPrivateKeyInfo=function(u,f,d){d=d||{},d.saltSize=d.saltSize||8,d.count=d.count||2048,d.algorithm=d.algorithm||"aes128",d.prfAlgorithm=d.prfAlgorithm||"sha1";var _=De.random.getBytesSync(d.saltSize),x=d.count,I=ye.integerToDer(x),E,M,S;if(d.algorithm.indexOf("aes")===0||d.algorithm==="des"){var A,T,D;switch(d.algorithm){case"aes128":E=16,A=16,T=Un["aes128-CBC"],D=De.aes.createEncryptionCipher;break;case"aes192":E=24,A=16,T=Un["aes192-CBC"],D=De.aes.createEncryptionCipher;break;case"aes256":E=32,A=16,T=Un["aes256-CBC"],D=De.aes.createEncryptionCipher;break;case"des":E=8,A=8,T=Un.desCBC,D=De.des.createEncryptionCipher;break;default:var O=new Error("Cannot encrypt private key. Unknown encryption algorithm.");throw O.algorithm=d.algorithm,O}var j="hmacWith"+d.prfAlgorithm.toUpperCase(),$=O2(j),W=De.pkcs5.pbkdf2(f,_,x,E,$),Q=De.random.getBytesSync(A),X=D(W);X.start(Q),X.update(ye.toDer(u)),X.finish(),S=X.output.getBytes();var Y=uI(_,I,E,j);M=ye.create(ye.Class.UNIVERSAL,ye.Type.SEQUENCE,!0,[ye.create(ye.Class.UNIVERSAL,ye.Type.OID,!1,ye.oidToDer(Un.pkcs5PBES2).getBytes()),ye.create(ye.Class.UNIVERSAL,ye.Type.SEQUENCE,!0,[ye.create(ye.Class.UNIVERSAL,ye.Type.SEQUENCE,!0,[ye.create(ye.Class.UNIVERSAL,ye.Type.OID,!1,ye.oidToDer(Un.pkcs5PBKDF2).getBytes()),Y]),ye.create(ye.Class.UNIVERSAL,ye.Type.SEQUENCE,!0,[ye.create(ye.Class.UNIVERSAL,ye.Type.OID,!1,ye.oidToDer(T).getBytes()),ye.create(ye.Class.UNIVERSAL,ye.Type.OCTETSTRING,!1,Q)])])])}else if(d.algorithm==="3des"){E=24;var ie=new De.util.ByteBuffer(_),W=ft.pbe.generatePkcs12Key(f,ie,1,x,E),Q=ft.pbe.generatePkcs12Key(f,ie,2,x,E),X=De.des.createEncryptionCipher(W);X.start(Q),X.update(ye.toDer(u)),X.finish(),S=X.output.getBytes(),M=ye.create(ye.Class.UNIVERSAL,ye.Type.SEQUENCE,!0,[ye.create(ye.Class.UNIVERSAL,ye.Type.OID,!1,ye.oidToDer(Un["pbeWithSHAAnd3-KeyTripleDES-CBC"]).getBytes()),ye.create(ye.Class.UNIVERSAL,ye.Type.SEQUENCE,!0,[ye.create(ye.Class.UNIVERSAL,ye.Type.OCTETSTRING,!1,_),ye.create(ye.Class.UNIVERSAL,ye.Type.INTEGER,!1,I.getBytes())])])}else{var O=new Error("Cannot encrypt private key. Unknown encryption algorithm.");throw O.algorithm=d.algorithm,O}var oe=ye.create(ye.Class.UNIVERSAL,ye.Type.SEQUENCE,!0,[M,ye.create(ye.Class.UNIVERSAL,ye.Type.OCTETSTRING,!1,S)]);return oe};ft.decryptPrivateKeyInfo=function(u,f){var d=null,_={},x=[];if(!ye.validate(u,sI,_,x)){var I=new Error("Cannot read encrypted private key. ASN.1 object is not a supported EncryptedPrivateKeyInfo.");throw I.errors=x,I}var E=ye.derToOid(_.encryptionOid),M=ft.pbe.getCipher(E,_.encryptionParams,f),S=De.util.createBuffer(_.encryptedData);return M.update(S),M.finish()&&(d=ye.fromDer(M.output)),d};ft.encryptedPrivateKeyToPem=function(u,f){var d={type:"ENCRYPTED PRIVATE KEY",body:ye.toDer(u).getBytes()};return De.pem.encode(d,{maxline:f})};ft.encryptedPrivateKeyFromPem=function(u){var f=De.pem.decode(u)[0];if(f.type!=="ENCRYPTED PRIVATE KEY"){var d=new Error('Could not convert encrypted private key from PEM; PEM header type is "ENCRYPTED PRIVATE KEY".');throw d.headerType=f.type,d}if(f.procType&&f.procType.type==="ENCRYPTED")throw new Error("Could not convert encrypted private key from PEM; PEM is encrypted.");return ye.fromDer(f.body)};ft.encryptRsaPrivateKey=function(u,f,d){if(d=d||{},!d.legacy){var _=ft.wrapRsaPrivateKey(ft.privateKeyToAsn1(u));return _=ft.encryptPrivateKeyInfo(_,f,d),ft.encryptedPrivateKeyToPem(_)}var x,I,E,M;switch(d.algorithm){case"aes128":x="AES-128-CBC",E=16,I=De.random.getBytesSync(16),M=De.aes.createEncryptionCipher;break;case"aes192":x="AES-192-CBC",E=24,I=De.random.getBytesSync(16),M=De.aes.createEncryptionCipher;break;case"aes256":x="AES-256-CBC",E=32,I=De.random.getBytesSync(16),M=De.aes.createEncryptionCipher;break;case"3des":x="DES-EDE3-CBC",E=24,I=De.random.getBytesSync(8),M=De.des.createEncryptionCipher;break;case"des":x="DES-CBC",E=8,I=De.random.getBytesSync(8),M=De.des.createEncryptionCipher;break;default:var S=new Error('Could not encrypt RSA private key; unsupported encryption algorithm "'+d.algorithm+'".');throw S.algorithm=d.algorithm,S}var A=De.pbe.opensslDeriveBytes(f,I.substr(0,8),E),T=M(A);T.start(I),T.update(ye.toDer(ft.privateKeyToAsn1(u))),T.finish();var D={type:"RSA PRIVATE KEY",procType:{version:"4",type:"ENCRYPTED"},dekInfo:{algorithm:x,parameters:De.util.bytesToHex(I).toUpperCase()},body:T.output.getBytes()};return De.pem.encode(D)};ft.decryptRsaPrivateKey=function(u,f){var d=null,_=De.pem.decode(u)[0];if(_.type!=="ENCRYPTED PRIVATE KEY"&&_.type!=="PRIVATE KEY"&&_.type!=="RSA PRIVATE KEY"){var x=new Error('Could not convert private key from PEM; PEM header type is not "ENCRYPTED PRIVATE KEY", "PRIVATE KEY", or "RSA PRIVATE KEY".');throw x.headerType=x,x}if(_.procType&&_.procType.type==="ENCRYPTED"){var I,E;switch(_.dekInfo.algorithm){case"DES-CBC":I=8,E=De.des.createDecryptionCipher;break;case"DES-EDE3-CBC":I=24,E=De.des.createDecryptionCipher;break;case"AES-128-CBC":I=16,E=De.aes.createDecryptionCipher;break;case"AES-192-CBC":I=24,E=De.aes.createDecryptionCipher;break;case"AES-256-CBC":I=32,E=De.aes.createDecryptionCipher;break;case"RC2-40-CBC":I=5,E=function(D){return De.rc2.createDecryptionCipher(D,40)};break;case"RC2-64-CBC":I=8,E=function(D){return De.rc2.createDecryptionCipher(D,64)};break;case"RC2-128-CBC":I=16,E=function(D){return De.rc2.createDecryptionCipher(D,128)};break;default:var x=new Error('Could not decrypt private key; unsupported encryption algorithm "'+_.dekInfo.algorithm+'".');throw x.algorithm=_.dekInfo.algorithm,x}var M=De.util.hexToBytes(_.dekInfo.parameters),S=De.pbe.opensslDeriveBytes(f,M.substr(0,8),I),A=E(S);if(A.start(M),A.update(De.util.createBuffer(_.body)),A.finish())d=A.output.getBytes();else return d}else d=_.body;return _.type==="ENCRYPTED PRIVATE KEY"?d=ft.decryptPrivateKeyInfo(ye.fromDer(d),f):d=ye.fromDer(d),d!==null&&(d=ft.privateKeyFromAsn1(d)),d};ft.pbe.generatePkcs12Key=function(u,f,d,_,x,I){var E,M;if(typeof I>"u"||I===null){if(!("sha1"in De.md))throw new Error('"sha1" hash algorithm unavailable.');I=De.md.sha1.create()}var S=I.digestLength,A=I.blockLength,T=new De.util.ByteBuffer,D=new De.util.ByteBuffer;if(u!=null){for(M=0;M<u.length;M++)D.putInt16(u.charCodeAt(M));D.putInt16(0)}var O=D.length(),j=f.length(),$=new De.util.ByteBuffer;$.fillWithByte(d,A);var W=A*Math.ceil(j/A),Q=new De.util.ByteBuffer;for(M=0;M<W;M++)Q.putByte(f.at(M%j));var X=A*Math.ceil(O/A),Y=new De.util.ByteBuffer;for(M=0;M<X;M++)Y.putByte(D.at(M%O));var ie=Q;ie.putBuffer(Y);for(var oe=Math.ceil(x/S),ge=1;ge<=oe;ge++){var be=new De.util.ByteBuffer;be.putBytes($.bytes()),be.putBytes(ie.bytes());for(var ze=0;ze<_;ze++)I.start(),I.update(be.getBytes()),be=I.digest();var de=new De.util.ByteBuffer;for(M=0;M<A;M++)de.putByte(be.at(M%S));var Ce=Math.ceil(j/A)+Math.ceil(O/A),ke=new De.util.ByteBuffer;for(E=0;E<Ce;E++){var le=new De.util.ByteBuffer(ie.getBytes(A)),re=511;for(M=de.length()-1;M>=0;M--)re=re>>8,re+=de.at(M)+le.at(M),le.setAt(M,re&255);ke.putBuffer(le)}ie=ke,T.putBuffer(be)}return T.truncate(T.length()-x),T};ft.pbe.getCipher=function(u,f,d){switch(u){case ft.oids.pkcs5PBES2:return ft.pbe.getCipherForPBES2(u,f,d);case ft.oids["pbeWithSHAAnd3-KeyTripleDES-CBC"]:case ft.oids["pbewithSHAAnd40BitRC2-CBC"]:return ft.pbe.getCipherForPKCS12PBE(u,f,d);default:var _=new Error("Cannot read encrypted PBE data block. Unsupported OID.");throw _.oid=u,_.supportedOids=["pkcs5PBES2","pbeWithSHAAnd3-KeyTripleDES-CBC","pbewithSHAAnd40BitRC2-CBC"],_}};ft.pbe.getCipherForPBES2=function(u,f,d){var _={},x=[];if(!ye.validate(f,fI,_,x)){var I=new Error("Cannot read password-based-encryption algorithm parameters. ASN.1 object is not a supported EncryptedPrivateKeyInfo.");throw I.errors=x,I}if(u=ye.derToOid(_.kdfOid),u!==ft.oids.pkcs5PBKDF2){var I=new Error("Cannot read encrypted private key. Unsupported key derivation function OID.");throw I.oid=u,I.supportedOids=["pkcs5PBKDF2"],I}if(u=ye.derToOid(_.encOid),u!==ft.oids["aes128-CBC"]&&u!==ft.oids["aes192-CBC"]&&u!==ft.oids["aes256-CBC"]&&u!==ft.oids["des-EDE3-CBC"]&&u!==ft.oids.desCBC){var I=new Error("Cannot read encrypted private key. Unsupported encryption scheme OID.");throw I.oid=u,I.supportedOids=["aes128-CBC","aes192-CBC","aes256-CBC","des-EDE3-CBC","desCBC"],I}var E=_.kdfSalt,M=De.util.createBuffer(_.kdfIterationCount);M=M.getInt(M.length()<<3);var S,A;switch(ft.oids[u]){case"aes128-CBC":S=16,A=De.aes.createDecryptionCipher;break;case"aes192-CBC":S=24,A=De.aes.createDecryptionCipher;break;case"aes256-CBC":S=32,A=De.aes.createDecryptionCipher;break;case"des-EDE3-CBC":S=24,A=De.des.createDecryptionCipher;break;case"desCBC":S=8,A=De.des.createDecryptionCipher;break}var T=D2(_.prfOid),D=De.pkcs5.pbkdf2(d,E,M,S,T),O=_.encIv,j=A(D);return j.start(O),j};ft.pbe.getCipherForPKCS12PBE=function(u,f,d){var _={},x=[];if(!ye.validate(f,oI,_,x)){var I=new Error("Cannot read password-based-encryption algorithm parameters. ASN.1 object is not a supported EncryptedPrivateKeyInfo.");throw I.errors=x,I}var E=De.util.createBuffer(_.salt),M=De.util.createBuffer(_.iterations);M=M.getInt(M.length()<<3);var S,A,T;switch(u){case ft.oids["pbeWithSHAAnd3-KeyTripleDES-CBC"]:S=24,A=8,T=De.des.startDecrypting;break;case ft.oids["pbewithSHAAnd40BitRC2-CBC"]:S=5,A=8,T=function(W,Q){var X=De.rc2.createDecryptionCipher(W,40);return X.start(Q,null),X};break;default:var I=new Error("Cannot read PKCS #12 PBE data block. Unsupported OID.");throw I.oid=u,I}var D=D2(_.prfOid),O=ft.pbe.generatePkcs12Key(d,E,1,M,S,D);D.start();var j=ft.pbe.generatePkcs12Key(d,E,2,M,A,D);return T(O,j)};ft.pbe.opensslDeriveBytes=function(u,f,d,_){if(typeof _>"u"||_===null){if(!("md5"in De.md))throw new Error('"md5" hash algorithm unavailable.');_=De.md.md5.create()}f===null&&(f="");for(var x=[Gp(_,u+f)],I=16,E=1;I<d;++E,I+=16)x.push(Gp(_,x[E-1]+u+f));return x.join("").substr(0,d)};function Gp(u,f){return u.start().update(f).digest().getBytes()}function D2(u){var f;if(!u)f="hmacWithSHA1";else if(f=ft.oids[ye.derToOid(u)],!f){var d=new Error("Unsupported PRF OID.");throw d.oid=u,d.supported=["hmacWithSHA1","hmacWithSHA224","hmacWithSHA256","hmacWithSHA384","hmacWithSHA512"],d}return O2(f)}function O2(u){var f=De.md;switch(u){case"hmacWithSHA224":f=De.md.sha512;case"hmacWithSHA1":case"hmacWithSHA256":case"hmacWithSHA384":case"hmacWithSHA512":u=u.substr(8).toLowerCase();break;default:var d=new Error("Unsupported PRF algorithm.");throw d.algorithm=u,d.supported=["hmacWithSHA1","hmacWithSHA224","hmacWithSHA256","hmacWithSHA384","hmacWithSHA512"],d}if(!f||!(u in f))throw new Error("Unknown hash algorithm: "+u);return f[u].create()}function uI(u,f,d,_){var x=ye.create(ye.Class.UNIVERSAL,ye.Type.SEQUENCE,!0,[ye.create(ye.Class.UNIVERSAL,ye.Type.OCTETSTRING,!1,u),ye.create(ye.Class.UNIVERSAL,ye.Type.INTEGER,!1,f.getBytes())]);return _!=="hmacWithSHA1"&&x.value.push(ye.create(ye.Class.UNIVERSAL,ye.Type.INTEGER,!1,De.util.hexToBytes(d.toString(16))),ye.create(ye.Class.UNIVERSAL,ye.Type.SEQUENCE,!0,[ye.create(ye.Class.UNIVERSAL,ye.Type.OID,!1,ye.oidToDer(ft.oids[_]).getBytes()),ye.create(ye.Class.UNIVERSAL,ye.Type.NULL,!1,"")])),x}var Pa=ht,Te=Pa.asn1,r0=Pa.pkcs7asn1=Pa.pkcs7asn1||{};Pa.pkcs7=Pa.pkcs7||{};Pa.pkcs7.asn1=r0;var P2={name:"ContentInfo",tagClass:Te.Class.UNIVERSAL,type:Te.Type.SEQUENCE,constructed:!0,value:[{name:"ContentInfo.ContentType",tagClass:Te.Class.UNIVERSAL,type:Te.Type.OID,constructed:!1,capture:"contentType"},{name:"ContentInfo.content",tagClass:Te.Class.CONTEXT_SPECIFIC,type:0,constructed:!0,optional:!0,captureAsn1:"content"}]};r0.contentInfoValidator=P2;var L2={name:"EncryptedContentInfo",tagClass:Te.Class.UNIVERSAL,type:Te.Type.SEQUENCE,constructed:!0,value:[{name:"EncryptedContentInfo.contentType",tagClass:Te.Class.UNIVERSAL,type:Te.Type.OID,constructed:!1,capture:"contentType"},{name:"EncryptedContentInfo.contentEncryptionAlgorithm",tagClass:Te.Class.UNIVERSAL,type:Te.Type.SEQUENCE,constructed:!0,value:[{name:"EncryptedContentInfo.contentEncryptionAlgorithm.algorithm",tagClass:Te.Class.UNIVERSAL,type:Te.Type.OID,constructed:!1,capture:"encAlgorithm"},{name:"EncryptedContentInfo.contentEncryptionAlgorithm.parameter",tagClass:Te.Class.UNIVERSAL,captureAsn1:"encParameter"}]},{name:"EncryptedContentInfo.encryptedContent",tagClass:Te.Class.CONTEXT_SPECIFIC,type:0,capture:"encryptedContent",captureAsn1:"encryptedContentAsn1"}]};r0.envelopedDataValidator={name:"EnvelopedData",tagClass:Te.Class.UNIVERSAL,type:Te.Type.SEQUENCE,constructed:!0,value:[{name:"EnvelopedData.Version",tagClass:Te.Class.UNIVERSAL,type:Te.Type.INTEGER,constructed:!1,capture:"version"},{name:"EnvelopedData.RecipientInfos",tagClass:Te.Class.UNIVERSAL,type:Te.Type.SET,constructed:!0,captureAsn1:"recipientInfos"}].concat(L2)};r0.encryptedDataValidator={name:"EncryptedData",tagClass:Te.Class.UNIVERSAL,type:Te.Type.SEQUENCE,constructed:!0,value:[{name:"EncryptedData.Version",tagClass:Te.Class.UNIVERSAL,type:Te.Type.INTEGER,constructed:!1,capture:"version"}].concat(L2)};var cI={name:"SignerInfo",tagClass:Te.Class.UNIVERSAL,type:Te.Type.SEQUENCE,constructed:!0,value:[{name:"SignerInfo.version",tagClass:Te.Class.UNIVERSAL,type:Te.Type.INTEGER,constructed:!1},{name:"SignerInfo.issuerAndSerialNumber",tagClass:Te.Class.UNIVERSAL,type:Te.Type.SEQUENCE,constructed:!0,value:[{name:"SignerInfo.issuerAndSerialNumber.issuer",tagClass:Te.Class.UNIVERSAL,type:Te.Type.SEQUENCE,constructed:!0,captureAsn1:"issuer"},{name:"SignerInfo.issuerAndSerialNumber.serialNumber",tagClass:Te.Class.UNIVERSAL,type:Te.Type.INTEGER,constructed:!1,capture:"serial"}]},{name:"SignerInfo.digestAlgorithm",tagClass:Te.Class.UNIVERSAL,type:Te.Type.SEQUENCE,constructed:!0,value:[{name:"SignerInfo.digestAlgorithm.algorithm",tagClass:Te.Class.UNIVERSAL,type:Te.Type.OID,constructed:!1,capture:"digestAlgorithm"},{name:"SignerInfo.digestAlgorithm.parameter",tagClass:Te.Class.UNIVERSAL,constructed:!1,captureAsn1:"digestParameter",optional:!0}]},{name:"SignerInfo.authenticatedAttributes",tagClass:Te.Class.CONTEXT_SPECIFIC,type:0,constructed:!0,optional:!0,capture:"authenticatedAttributes"},{name:"SignerInfo.digestEncryptionAlgorithm",tagClass:Te.Class.UNIVERSAL,type:Te.Type.SEQUENCE,constructed:!0,capture:"signatureAlgorithm"},{name:"SignerInfo.encryptedDigest",tagClass:Te.Class.UNIVERSAL,type:Te.Type.OCTETSTRING,constructed:!1,capture:"signature"},{name:"SignerInfo.unauthenticatedAttributes",tagClass:Te.Class.CONTEXT_SPECIFIC,type:1,constructed:!0,optional:!0,capture:"unauthenticatedAttributes"}]};r0.signedDataValidator={name:"SignedData",tagClass:Te.Class.UNIVERSAL,type:Te.Type.SEQUENCE,constructed:!0,value:[{name:"SignedData.Version",tagClass:Te.Class.UNIVERSAL,type:Te.Type.INTEGER,constructed:!1,capture:"version"},{name:"SignedData.DigestAlgorithms",tagClass:Te.Class.UNIVERSAL,type:Te.Type.SET,constructed:!0,captureAsn1:"digestAlgorithms"},P2,{name:"SignedData.Certificates",tagClass:Te.Class.CONTEXT_SPECIFIC,type:0,optional:!0,captureAsn1:"certificates"},{name:"SignedData.CertificateRevocationLists",tagClass:Te.Class.CONTEXT_SPECIFIC,type:1,optional:!0,captureAsn1:"crls"},{name:"SignedData.SignerInfos",tagClass:Te.Class.UNIVERSAL,type:Te.Type.SET,capture:"signerInfos",optional:!0,value:[cI]}]};r0.recipientInfoValidator={name:"RecipientInfo",tagClass:Te.Class.UNIVERSAL,type:Te.Type.SEQUENCE,constructed:!0,value:[{name:"RecipientInfo.version",tagClass:Te.Class.UNIVERSAL,type:Te.Type.INTEGER,constructed:!1,capture:"version"},{name:"RecipientInfo.issuerAndSerial",tagClass:Te.Class.UNIVERSAL,type:Te.Type.SEQUENCE,constructed:!0,value:[{name:"RecipientInfo.issuerAndSerial.issuer",tagClass:Te.Class.UNIVERSAL,type:Te.Type.SEQUENCE,constructed:!0,captureAsn1:"issuer"},{name:"RecipientInfo.issuerAndSerial.serialNumber",tagClass:Te.Class.UNIVERSAL,type:Te.Type.INTEGER,constructed:!1,capture:"serial"}]},{name:"RecipientInfo.keyEncryptionAlgorithm",tagClass:Te.Class.UNIVERSAL,type:Te.Type.SEQUENCE,constructed:!0,value:[{name:"RecipientInfo.keyEncryptionAlgorithm.algorithm",tagClass:Te.Class.UNIVERSAL,type:Te.Type.OID,constructed:!1,capture:"encAlgorithm"},{name:"RecipientInfo.keyEncryptionAlgorithm.parameter",tagClass:Te.Class.UNIVERSAL,constructed:!1,captureAsn1:"encParameter",optional:!0}]},{name:"RecipientInfo.encryptedKey",tagClass:Te.Class.UNIVERSAL,type:Te.Type.OCTETSTRING,constructed:!1,capture:"encKey"}]};var Yn=ht;Yn.mgf=Yn.mgf||{};var hI=Yn.mgf.mgf1=Yn.mgf1=Yn.mgf1||{};hI.create=function(u){var f={generate:function(d,_){for(var x=new Yn.util.ByteBuffer,I=Math.ceil(_/u.digestLength),E=0;E<I;E++){var M=new Yn.util.ByteBuffer;M.putInt32(E),u.start(),u.update(d+M.getBytes()),x.putBuffer(u.digest())}return x.truncate(x.length()-_),x.getBytes()}};return f};var Fs=ht;Fs.mgf=Fs.mgf||{};Fs.mgf.mgf1=Fs.mgf1;var Vn=ht,lI=Vn.pss=Vn.pss||{};lI.create=function(u){arguments.length===3&&(u={md:arguments[0],mgf:arguments[1],saltLength:arguments[2]});var f=u.md,d=u.mgf,_=f.digestLength,x=u.salt||null;typeof x=="string"&&(x=Vn.util.createBuffer(x));var I;if("saltLength"in u)I=u.saltLength;else if(x!==null)I=x.length();else throw new Error("Salt length not specified or specific salt not given.");if(x!==null&&x.length()!==I)throw new Error("Given salt length does not match length of given salt.");var E=u.prng||Vn.random,M={};return M.encode=function(S,A){var T,D=A-1,O=Math.ceil(D/8),j=S.digest().getBytes();if(O<_+I+2)throw new Error("Message is too long to encrypt.");var $;x===null?$=E.getBytesSync(I):$=x.bytes();var W=new Vn.util.ByteBuffer;W.fillWithByte(0,8),W.putBytes(j),W.putBytes($),f.start(),f.update(W.getBytes());var Q=f.digest().getBytes(),X=new Vn.util.ByteBuffer;X.fillWithByte(0,O-I-_-2),X.putByte(1),X.putBytes($);var Y=X.getBytes(),ie=O-_-1,oe=d.generate(Q,ie),ge="";for(T=0;T<ie;T++)ge+=String.fromCharCode(Y.charCodeAt(T)^oe.charCodeAt(T));var be=65280>>8*O-D&255;return ge=String.fromCharCode(ge.charCodeAt(0)&~be)+ge.substr(1),ge+Q+"¼"},M.verify=function(S,A,T){var D,O=T-1,j=Math.ceil(O/8);if(A=A.substr(-j),j<_+I+2)throw new Error("Inconsistent parameters to PSS signature verification.");if(A.charCodeAt(j-1)!==188)throw new Error("Encoded message does not end in 0xBC.");var $=j-_-1,W=A.substr(0,$),Q=A.substr($,_),X=65280>>8*j-O&255;if(W.charCodeAt(0)&X)throw new Error("Bits beyond keysize not zero as expected.");var Y=d.generate(Q,$),ie="";for(D=0;D<$;D++)ie+=String.fromCharCode(W.charCodeAt(D)^Y.charCodeAt(D));ie=String.fromCharCode(ie.charCodeAt(0)&~X)+ie.substr(1);var oe=j-_-I-2;for(D=0;D<oe;D++)if(ie.charCodeAt(D)!==0)throw new Error("Leftmost octets not zero as expected");if(ie.charCodeAt(oe)!==1)throw new Error("Inconsistent PSS signature, 0x01 marker not found");var ge=ie.substr(-I),be=new Vn.util.ByteBuffer;be.fillWithByte(0,8),be.putBytes(S),be.putBytes(ge),f.start(),f.update(be.getBytes());var ze=f.digest().getBytes();return Q===ze},M};var Ge=ht,V=Ge.asn1,we=Ge.pki=Ge.pki||{},bt=we.oids,Kt={};Kt.CN=bt.commonName;Kt.commonName="CN";Kt.C=bt.countryName;Kt.countryName="C";Kt.L=bt.localityName;Kt.localityName="L";Kt.ST=bt.stateOrProvinceName;Kt.stateOrProvinceName="ST";Kt.O=bt.organizationName;Kt.organizationName="O";Kt.OU=bt.organizationalUnitName;Kt.organizationalUnitName="OU";Kt.E=bt.emailAddress;Kt.emailAddress="E";var k2=Ge.pki.rsa.publicKeyValidator,dI={name:"Certificate",tagClass:V.Class.UNIVERSAL,type:V.Type.SEQUENCE,constructed:!0,value:[{name:"Certificate.TBSCertificate",tagClass:V.Class.UNIVERSAL,type:V.Type.SEQUENCE,constructed:!0,captureAsn1:"tbsCertificate",value:[{name:"Certificate.TBSCertificate.version",tagClass:V.Class.CONTEXT_SPECIFIC,type:0,constructed:!0,optional:!0,value:[{name:"Certificate.TBSCertificate.version.integer",tagClass:V.Class.UNIVERSAL,type:V.Type.INTEGER,constructed:!1,capture:"certVersion"}]},{name:"Certificate.TBSCertificate.serialNumber",tagClass:V.Class.UNIVERSAL,type:V.Type.INTEGER,constructed:!1,capture:"certSerialNumber"},{name:"Certificate.TBSCertificate.signature",tagClass:V.Class.UNIVERSAL,type:V.Type.SEQUENCE,constructed:!0,value:[{name:"Certificate.TBSCertificate.signature.algorithm",tagClass:V.Class.UNIVERSAL,type:V.Type.OID,constructed:!1,capture:"certinfoSignatureOid"},{name:"Certificate.TBSCertificate.signature.parameters",tagClass:V.Class.UNIVERSAL,optional:!0,captureAsn1:"certinfoSignatureParams"}]},{name:"Certificate.TBSCertificate.issuer",tagClass:V.Class.UNIVERSAL,type:V.Type.SEQUENCE,constructed:!0,captureAsn1:"certIssuer"},{name:"Certificate.TBSCertificate.validity",tagClass:V.Class.UNIVERSAL,type:V.Type.SEQUENCE,constructed:!0,value:[{name:"Certificate.TBSCertificate.validity.notBefore (utc)",tagClass:V.Class.UNIVERSAL,type:V.Type.UTCTIME,constructed:!1,optional:!0,capture:"certValidity1UTCTime"},{name:"Certificate.TBSCertificate.validity.notBefore (generalized)",tagClass:V.Class.UNIVERSAL,type:V.Type.GENERALIZEDTIME,constructed:!1,optional:!0,capture:"certValidity2GeneralizedTime"},{name:"Certificate.TBSCertificate.validity.notAfter (utc)",tagClass:V.Class.UNIVERSAL,type:V.Type.UTCTIME,constructed:!1,optional:!0,capture:"certValidity3UTCTime"},{name:"Certificate.TBSCertificate.validity.notAfter (generalized)",tagClass:V.Class.UNIVERSAL,type:V.Type.GENERALIZEDTIME,constructed:!1,optional:!0,capture:"certValidity4GeneralizedTime"}]},{name:"Certificate.TBSCertificate.subject",tagClass:V.Class.UNIVERSAL,type:V.Type.SEQUENCE,constructed:!0,captureAsn1:"certSubject"},k2,{name:"Certificate.TBSCertificate.issuerUniqueID",tagClass:V.Class.CONTEXT_SPECIFIC,type:1,constructed:!0,optional:!0,value:[{name:"Certificate.TBSCertificate.issuerUniqueID.id",tagClass:V.Class.UNIVERSAL,type:V.Type.BITSTRING,constructed:!1,captureBitStringValue:"certIssuerUniqueId"}]},{name:"Certificate.TBSCertificate.subjectUniqueID",tagClass:V.Class.CONTEXT_SPECIFIC,type:2,constructed:!0,optional:!0,value:[{name:"Certificate.TBSCertificate.subjectUniqueID.id",tagClass:V.Class.UNIVERSAL,type:V.Type.BITSTRING,constructed:!1,captureBitStringValue:"certSubjectUniqueId"}]},{name:"Certificate.TBSCertificate.extensions",tagClass:V.Class.CONTEXT_SPECIFIC,type:3,constructed:!0,captureAsn1:"certExtensions",optional:!0}]},{name:"Certificate.signatureAlgorithm",tagClass:V.Class.UNIVERSAL,type:V.Type.SEQUENCE,constructed:!0,value:[{name:"Certificate.signatureAlgorithm.algorithm",tagClass:V.Class.UNIVERSAL,type:V.Type.OID,constructed:!1,capture:"certSignatureOid"},{name:"Certificate.TBSCertificate.signature.parameters",tagClass:V.Class.UNIVERSAL,optional:!0,captureAsn1:"certSignatureParams"}]},{name:"Certificate.signatureValue",tagClass:V.Class.UNIVERSAL,type:V.Type.BITSTRING,constructed:!1,captureBitStringValue:"certSignature"}]},pI={name:"rsapss",tagClass:V.Class.UNIVERSAL,type:V.Type.SEQUENCE,constructed:!0,value:[{name:"rsapss.hashAlgorithm",tagClass:V.Class.CONTEXT_SPECIFIC,type:0,constructed:!0,value:[{name:"rsapss.hashAlgorithm.AlgorithmIdentifier",tagClass:V.Class.UNIVERSAL,type:V.Class.SEQUENCE,constructed:!0,optional:!0,value:[{name:"rsapss.hashAlgorithm.AlgorithmIdentifier.algorithm",tagClass:V.Class.UNIVERSAL,type:V.Type.OID,constructed:!1,capture:"hashOid"}]}]},{name:"rsapss.maskGenAlgorithm",tagClass:V.Class.CONTEXT_SPECIFIC,type:1,constructed:!0,value:[{name:"rsapss.maskGenAlgorithm.AlgorithmIdentifier",tagClass:V.Class.UNIVERSAL,type:V.Class.SEQUENCE,constructed:!0,optional:!0,value:[{name:"rsapss.maskGenAlgorithm.AlgorithmIdentifier.algorithm",tagClass:V.Class.UNIVERSAL,type:V.Type.OID,constructed:!1,capture:"maskGenOid"},{name:"rsapss.maskGenAlgorithm.AlgorithmIdentifier.params",tagClass:V.Class.UNIVERSAL,type:V.Type.SEQUENCE,constructed:!0,value:[{name:"rsapss.maskGenAlgorithm.AlgorithmIdentifier.params.algorithm",tagClass:V.Class.UNIVERSAL,type:V.Type.OID,constructed:!1,capture:"maskGenHashOid"}]}]}]},{name:"rsapss.saltLength",tagClass:V.Class.CONTEXT_SPECIFIC,type:2,optional:!0,value:[{name:"rsapss.saltLength.saltLength",tagClass:V.Class.UNIVERSAL,type:V.Class.INTEGER,constructed:!1,capture:"saltLength"}]},{name:"rsapss.trailerField",tagClass:V.Class.CONTEXT_SPECIFIC,type:3,optional:!0,value:[{name:"rsapss.trailer.trailer",tagClass:V.Class.UNIVERSAL,type:V.Class.INTEGER,constructed:!1,capture:"trailer"}]}]},vI={name:"CertificationRequestInfo",tagClass:V.Class.UNIVERSAL,type:V.Type.SEQUENCE,constructed:!0,captureAsn1:"certificationRequestInfo",value:[{name:"CertificationRequestInfo.integer",tagClass:V.Class.UNIVERSAL,type:V.Type.INTEGER,constructed:!1,capture:"certificationRequestInfoVersion"},{name:"CertificationRequestInfo.subject",tagClass:V.Class.UNIVERSAL,type:V.Type.SEQUENCE,constructed:!0,captureAsn1:"certificationRequestInfoSubject"},k2,{name:"CertificationRequestInfo.attributes",tagClass:V.Class.CONTEXT_SPECIFIC,type:0,constructed:!0,optional:!0,capture:"certificationRequestInfoAttributes",value:[{name:"CertificationRequestInfo.attributes",tagClass:V.Class.UNIVERSAL,type:V.Type.SEQUENCE,constructed:!0,value:[{name:"CertificationRequestInfo.attributes.type",tagClass:V.Class.UNIVERSAL,type:V.Type.OID,constructed:!1},{name:"CertificationRequestInfo.attributes.value",tagClass:V.Class.UNIVERSAL,type:V.Type.SET,constructed:!0}]}]}]},yI={name:"CertificationRequest",tagClass:V.Class.UNIVERSAL,type:V.Type.SEQUENCE,constructed:!0,captureAsn1:"csr",value:[vI,{name:"CertificationRequest.signatureAlgorithm",tagClass:V.Class.UNIVERSAL,type:V.Type.SEQUENCE,constructed:!0,value:[{name:"CertificationRequest.signatureAlgorithm.algorithm",tagClass:V.Class.UNIVERSAL,type:V.Type.OID,constructed:!1,capture:"csrSignatureOid"},{name:"CertificationRequest.signatureAlgorithm.parameters",tagClass:V.Class.UNIVERSAL,optional:!0,captureAsn1:"csrSignatureParams"}]},{name:"CertificationRequest.signature",tagClass:V.Class.UNIVERSAL,type:V.Type.BITSTRING,constructed:!1,captureBitStringValue:"csrSignature"}]};we.RDNAttributesAsArray=function(u,f){for(var d=[],_,x,I,E=0;E<u.value.length;++E){_=u.value[E];for(var M=0;M<_.value.length;++M)I={},x=_.value[M],I.type=V.derToOid(x.value[0].value),I.value=x.value[1].value,I.valueTagClass=x.value[1].type,I.type in bt&&(I.name=bt[I.type],I.name in Kt&&(I.shortName=Kt[I.name])),f&&(f.update(I.type),f.update(I.value)),d.push(I)}return d};we.CRIAttributesAsArray=function(u){for(var f=[],d=0;d<u.length;++d)for(var _=u[d],x=V.derToOid(_.value[0].value),I=_.value[1].value,E=0;E<I.length;++E){var M={};if(M.type=x,M.value=I[E].value,M.valueTagClass=I[E].type,M.type in bt&&(M.name=bt[M.type],M.name in Kt&&(M.shortName=Kt[M.name])),M.type===bt.extensionRequest){M.extensions=[];for(var S=0;S<M.value.length;++S)M.extensions.push(we.certificateExtensionFromAsn1(M.value[S]))}f.push(M)}return f};function Bn(u,f){typeof f=="string"&&(f={shortName:f});for(var d=null,_,x=0;d===null&&x<u.attributes.length;++x)_=u.attributes[x],(f.type&&f.type===_.type||f.name&&f.name===_.name||f.shortName&&f.shortName===_.shortName)&&(d=_);return d}var qs=function(u,f,d){var _={};if(u!==bt["RSASSA-PSS"])return _;d&&(_={hash:{algorithmOid:bt.sha1},mgf:{algorithmOid:bt.mgf1,hash:{algorithmOid:bt.sha1}},saltLength:20});var x={},I=[];if(!V.validate(f,pI,x,I)){var E=new Error("Cannot read RSASSA-PSS parameter block.");throw E.errors=I,E}return x.hashOid!==void 0&&(_.hash=_.hash||{},_.hash.algorithmOid=V.derToOid(x.hashOid)),x.maskGenOid!==void 0&&(_.mgf=_.mgf||{},_.mgf.algorithmOid=V.derToOid(x.maskGenOid),_.mgf.hash=_.mgf.hash||{},_.mgf.hash.algorithmOid=V.derToOid(x.maskGenHashOid)),x.saltLength!==void 0&&(_.saltLength=x.saltLength.charCodeAt(0)),_},Vf=function(u){switch(bt[u.signatureOid]){case"sha1WithRSAEncryption":case"sha1WithRSASignature":return Ge.md.sha1.create();case"md5WithRSAEncryption":return Ge.md.md5.create();case"sha256WithRSAEncryption":return Ge.md.sha256.create();case"sha384WithRSAEncryption":return Ge.md.sha384.create();case"sha512WithRSAEncryption":return Ge.md.sha512.create();case"RSASSA-PSS":return Ge.md.sha256.create();default:var f=new Error("Could not compute "+u.type+" digest. Unknown signature OID.");throw f.signatureOid=u.signatureOid,f}},U2=function(u){var f=u.certificate,d;switch(f.signatureOid){case bt.sha1WithRSAEncryption:case bt.sha1WithRSASignature:break;case bt["RSASSA-PSS"]:var _,x;if(_=bt[f.signatureParameters.mgf.hash.algorithmOid],_===void 0||Ge.md[_]===void 0){var I=new Error("Unsupported MGF hash function.");throw I.oid=f.signatureParameters.mgf.hash.algorithmOid,I.name=_,I}if(x=bt[f.signatureParameters.mgf.algorithmOid],x===void 0||Ge.mgf[x]===void 0){var I=new Error("Unsupported MGF function.");throw I.oid=f.signatureParameters.mgf.algorithmOid,I.name=x,I}if(x=Ge.mgf[x].create(Ge.md[_].create()),_=bt[f.signatureParameters.hash.algorithmOid],_===void 0||Ge.md[_]===void 0){var I=new Error("Unsupported RSASSA-PSS hash function.");throw I.oid=f.signatureParameters.hash.algorithmOid,I.name=_,I}d=Ge.pss.create(Ge.md[_].create(),x,f.signatureParameters.saltLength);break}return f.publicKey.verify(u.md.digest().getBytes(),u.signature,d)};we.certificateFromPem=function(u,f,d){var _=Ge.pem.decode(u)[0];if(_.type!=="CERTIFICATE"&&_.type!=="X509 CERTIFICATE"&&_.type!=="TRUSTED CERTIFICATE"){var x=new Error('Could not convert certificate from PEM; PEM header type is not "CERTIFICATE", "X509 CERTIFICATE", or "TRUSTED CERTIFICATE".');throw x.headerType=_.type,x}if(_.procType&&_.procType.type==="ENCRYPTED")throw new Error("Could not convert certificate from PEM; PEM is encrypted.");var I=V.fromDer(_.body,d);return we.certificateFromAsn1(I,f)};we.certificateToPem=function(u,f){var d={type:"CERTIFICATE",body:V.toDer(we.certificateToAsn1(u)).getBytes()};return Ge.pem.encode(d,{maxline:f})};we.publicKeyFromPem=function(u){var f=Ge.pem.decode(u)[0];if(f.type!=="PUBLIC KEY"&&f.type!=="RSA PUBLIC KEY"){var d=new Error('Could not convert public key from PEM; PEM header type is not "PUBLIC KEY" or "RSA PUBLIC KEY".');throw d.headerType=f.type,d}if(f.procType&&f.procType.type==="ENCRYPTED")throw new Error("Could not convert public key from PEM; PEM is encrypted.");var _=V.fromDer(f.body);return we.publicKeyFromAsn1(_)};we.publicKeyToPem=function(u,f){var d={type:"PUBLIC KEY",body:V.toDer(we.publicKeyToAsn1(u)).getBytes()};return Ge.pem.encode(d,{maxline:f})};we.publicKeyToRSAPublicKeyPem=function(u,f){var d={type:"RSA PUBLIC KEY",body:V.toDer(we.publicKeyToRSAPublicKey(u)).getBytes()};return Ge.pem.encode(d,{maxline:f})};we.getPublicKeyFingerprint=function(u,f){f=f||{};var d=f.md||Ge.md.sha1.create(),_=f.type||"RSAPublicKey",x;switch(_){case"RSAPublicKey":x=V.toDer(we.publicKeyToRSAPublicKey(u)).getBytes();break;case"SubjectPublicKeyInfo":x=V.toDer(we.publicKeyToAsn1(u)).getBytes();break;default:throw new Error('Unknown fingerprint type "'+f.type+'".')}d.start(),d.update(x);var I=d.digest();if(f.encoding==="hex"){var E=I.toHex();return f.delimiter?E.match(/.{2}/g).join(f.delimiter):E}else{if(f.encoding==="binary")return I.getBytes();if(f.encoding)throw new Error('Unknown encoding "'+f.encoding+'".')}return I};we.certificationRequestFromPem=function(u,f,d){var _=Ge.pem.decode(u)[0];if(_.type!=="CERTIFICATE REQUEST"){var x=new Error('Could not convert certification request from PEM; PEM header type is not "CERTIFICATE REQUEST".');throw x.headerType=_.type,x}if(_.procType&&_.procType.type==="ENCRYPTED")throw new Error("Could not convert certification request from PEM; PEM is encrypted.");var I=V.fromDer(_.body,d);return we.certificationRequestFromAsn1(I,f)};we.certificationRequestToPem=function(u,f){var d={type:"CERTIFICATE REQUEST",body:V.toDer(we.certificationRequestToAsn1(u)).getBytes()};return Ge.pem.encode(d,{maxline:f})};we.createCertificate=function(){var u={};return u.version=2,u.serialNumber="00",u.signatureOid=null,u.signature=null,u.siginfo={},u.siginfo.algorithmOid=null,u.validity={},u.validity.notBefore=new Date,u.validity.notAfter=new Date,u.issuer={},u.issuer.getField=function(f){return Bn(u.issuer,f)},u.issuer.addField=function(f){Gr([f]),u.issuer.attributes.push(f)},u.issuer.attributes=[],u.issuer.hash=null,u.subject={},u.subject.getField=function(f){return Bn(u.subject,f)},u.subject.addField=function(f){Gr([f]),u.subject.attributes.push(f)},u.subject.attributes=[],u.subject.hash=null,u.extensions=[],u.publicKey=null,u.md=null,u.setSubject=function(f,d){Gr(f),u.subject.attributes=f,delete u.subject.uniqueId,d&&(u.subject.uniqueId=d),u.subject.hash=null},u.setIssuer=function(f,d){Gr(f),u.issuer.attributes=f,delete u.issuer.uniqueId,d&&(u.issuer.uniqueId=d),u.issuer.hash=null},u.setExtensions=function(f){for(var d=0;d<f.length;++d)F2(f[d],{cert:u});u.extensions=f},u.getExtension=function(f){typeof f=="string"&&(f={name:f});for(var d=null,_,x=0;d===null&&x<u.extensions.length;++x)_=u.extensions[x],(f.id&&_.id===f.id||f.name&&_.name===f.name)&&(d=_);return d},u.sign=function(f,d){u.md=d||Ge.md.sha1.create();var _=bt[u.md.algorithm+"WithRSAEncryption"];if(!_){var x=new Error("Could not compute certificate digest. Unknown message digest algorithm OID.");throw x.algorithm=u.md.algorithm,x}u.signatureOid=u.siginfo.algorithmOid=_,u.tbsCertificate=we.getTBSCertificate(u);var I=V.toDer(u.tbsCertificate);u.md.update(I.getBytes()),u.signature=f.sign(u.md)},u.verify=function(f){var d=!1;if(!u.issued(f)){var _=f.issuer,x=u.subject,I=new Error("The parent certificate did not issue the given child certificate; the child certificate's issuer does not match the parent's subject.");throw I.expectedIssuer=x.attributes,I.actualIssuer=_.attributes,I}var E=f.md;if(E===null){E=Vf({signatureOid:f.signatureOid,type:"certificate"});var M=f.tbsCertificate||we.getTBSCertificate(f),S=V.toDer(M);E.update(S.getBytes())}return E!==null&&(d=U2({certificate:u,md:E,signature:f.signature})),d},u.isIssuer=function(f){var d=!1,_=u.issuer,x=f.subject;if(_.hash&&x.hash)d=_.hash===x.hash;else if(_.attributes.length===x.attributes.length){d=!0;for(var I,E,M=0;d&&M<_.attributes.length;++M)I=_.attributes[M],E=x.attributes[M],(I.type!==E.type||I.value!==E.value)&&(d=!1)}return d},u.issued=function(f){return f.isIssuer(u)},u.generateSubjectKeyIdentifier=function(){return we.getPublicKeyFingerprint(u.publicKey,{type:"RSAPublicKey"})},u.verifySubjectKeyIdentifier=function(){for(var f=bt.subjectKeyIdentifier,d=0;d<u.extensions.length;++d){var _=u.extensions[d];if(_.id===f){var x=u.generateSubjectKeyIdentifier().getBytes();return Ge.util.hexToBytes(_.subjectKeyIdentifier)===x}}return!1},u};we.certificateFromAsn1=function(u,f){var d={},_=[];if(!V.validate(u,dI,d,_)){var x=new Error("Cannot read X.509 certificate. ASN.1 object is not an X509v3 Certificate.");throw x.errors=_,x}var I=V.derToOid(d.publicKeyOid);if(I!==we.oids.rsaEncryption)throw new Error("Cannot read public key. OID is not RSA.");var E=we.createCertificate();E.version=d.certVersion?d.certVersion.charCodeAt(0):0;var M=Ge.util.createBuffer(d.certSerialNumber);E.serialNumber=M.toHex(),E.signatureOid=Ge.asn1.derToOid(d.certSignatureOid),E.signatureParameters=qs(E.signatureOid,d.certSignatureParams,!0),E.siginfo.algorithmOid=Ge.asn1.derToOid(d.certinfoSignatureOid),E.siginfo.parameters=qs(E.siginfo.algorithmOid,d.certinfoSignatureParams,!1),E.signature=d.certSignature;var S=[];if(d.certValidity1UTCTime!==void 0&&S.push(V.utcTimeToDate(d.certValidity1UTCTime)),d.certValidity2GeneralizedTime!==void 0&&S.push(V.generalizedTimeToDate(d.certValidity2GeneralizedTime)),d.certValidity3UTCTime!==void 0&&S.push(V.utcTimeToDate(d.certValidity3UTCTime)),d.certValidity4GeneralizedTime!==void 0&&S.push(V.generalizedTimeToDate(d.certValidity4GeneralizedTime)),S.length>2)throw new Error("Cannot read notBefore/notAfter validity times; more than two times were provided in the certificate.");if(S.length<2)throw new Error("Cannot read notBefore/notAfter validity times; they were not provided as either UTCTime or GeneralizedTime.");if(E.validity.notBefore=S[0],E.validity.notAfter=S[1],E.tbsCertificate=d.tbsCertificate,f){E.md=Vf({signatureOid:E.signatureOid,type:"certificate"});var A=V.toDer(E.tbsCertificate);E.md.update(A.getBytes())}var T=Ge.md.sha1.create(),D=V.toDer(d.certIssuer);T.update(D.getBytes()),E.issuer.getField=function($){return Bn(E.issuer,$)},E.issuer.addField=function($){Gr([$]),E.issuer.attributes.push($)},E.issuer.attributes=we.RDNAttributesAsArray(d.certIssuer),d.certIssuerUniqueId&&(E.issuer.uniqueId=d.certIssuerUniqueId),E.issuer.hash=T.digest().toHex();var O=Ge.md.sha1.create(),j=V.toDer(d.certSubject);return O.update(j.getBytes()),E.subject.getField=function($){return Bn(E.subject,$)},E.subject.addField=function($){Gr([$]),E.subject.attributes.push($)},E.subject.attributes=we.RDNAttributesAsArray(d.certSubject),d.certSubjectUniqueId&&(E.subject.uniqueId=d.certSubjectUniqueId),E.subject.hash=O.digest().toHex(),d.certExtensions?E.extensions=we.certificateExtensionsFromAsn1(d.certExtensions):E.extensions=[],E.publicKey=we.publicKeyFromAsn1(d.subjectPublicKeyInfo),E};we.certificateExtensionsFromAsn1=function(u){for(var f=[],d=0;d<u.value.length;++d)for(var _=u.value[d],x=0;x<_.value.length;++x)f.push(we.certificateExtensionFromAsn1(_.value[x]));return f};we.certificateExtensionFromAsn1=function(u){var f={};if(f.id=V.derToOid(u.value[0].value),f.critical=!1,u.value[1].type===V.Type.BOOLEAN?(f.critical=u.value[1].value.charCodeAt(0)!==0,f.value=u.value[2].value):f.value=u.value[1].value,f.id in bt){if(f.name=bt[f.id],f.name==="keyUsage"){var d=V.fromDer(f.value),_=0,x=0;d.value.length>1&&(_=d.value.charCodeAt(1),x=d.value.length>2?d.value.charCodeAt(2):0),f.digitalSignature=(_&128)===128,f.nonRepudiation=(_&64)===64,f.keyEncipherment=(_&32)===32,f.dataEncipherment=(_&16)===16,f.keyAgreement=(_&8)===8,f.keyCertSign=(_&4)===4,f.cRLSign=(_&2)===2,f.encipherOnly=(_&1)===1,f.decipherOnly=(x&128)===128}else if(f.name==="basicConstraints"){var d=V.fromDer(f.value);d.value.length>0&&d.value[0].type===V.Type.BOOLEAN?f.cA=d.value[0].value.charCodeAt(0)!==0:f.cA=!1;var I=null;d.value.length>0&&d.value[0].type===V.Type.INTEGER?I=d.value[0].value:d.value.length>1&&(I=d.value[1].value),I!==null&&(f.pathLenConstraint=V.derToInteger(I))}else if(f.name==="extKeyUsage")for(var d=V.fromDer(f.value),E=0;E<d.value.length;++E){var M=V.derToOid(d.value[E].value);M in bt?f[bt[M]]=!0:f[M]=!0}else if(f.name==="nsCertType"){var d=V.fromDer(f.value),_=0;d.value.length>1&&(_=d.value.charCodeAt(1)),f.client=(_&128)===128,f.server=(_&64)===64,f.email=(_&32)===32,f.objsign=(_&16)===16,f.reserved=(_&8)===8,f.sslCA=(_&4)===4,f.emailCA=(_&2)===2,f.objCA=(_&1)===1}else if(f.name==="subjectAltName"||f.name==="issuerAltName"){f.altNames=[];for(var S,d=V.fromDer(f.value),A=0;A<d.value.length;++A){S=d.value[A];var T={type:S.type,value:S.value};switch(f.altNames.push(T),S.type){case 1:case 2:case 6:break;case 7:T.ip=Ge.util.bytesToIP(S.value);break;case 8:T.oid=V.derToOid(S.value);break}}}else if(f.name==="subjectKeyIdentifier"){var d=V.fromDer(f.value);f.subjectKeyIdentifier=Ge.util.bytesToHex(d.value)}}return f};we.certificationRequestFromAsn1=function(u,f){var d={},_=[];if(!V.validate(u,yI,d,_)){var x=new Error("Cannot read PKCS#10 certificate request. ASN.1 object is not a PKCS#10 CertificationRequest.");throw x.errors=_,x}var I=V.derToOid(d.publicKeyOid);if(I!==we.oids.rsaEncryption)throw new Error("Cannot read public key. OID is not RSA.");var E=we.createCertificationRequest();if(E.version=d.csrVersion?d.csrVersion.charCodeAt(0):0,E.signatureOid=Ge.asn1.derToOid(d.csrSignatureOid),E.signatureParameters=qs(E.signatureOid,d.csrSignatureParams,!0),E.siginfo.algorithmOid=Ge.asn1.derToOid(d.csrSignatureOid),E.siginfo.parameters=qs(E.siginfo.algorithmOid,d.csrSignatureParams,!1),E.signature=d.csrSignature,E.certificationRequestInfo=d.certificationRequestInfo,f){E.md=Vf({signatureOid:E.signatureOid,type:"certification request"});var M=V.toDer(E.certificationRequestInfo);E.md.update(M.getBytes())}var S=Ge.md.sha1.create();return E.subject.getField=function(A){return Bn(E.subject,A)},E.subject.addField=function(A){Gr([A]),E.subject.attributes.push(A)},E.subject.attributes=we.RDNAttributesAsArray(d.certificationRequestInfoSubject,S),E.subject.hash=S.digest().toHex(),E.publicKey=we.publicKeyFromAsn1(d.subjectPublicKeyInfo),E.getAttribute=function(A){return Bn(E,A)},E.addAttribute=function(A){Gr([A]),E.attributes.push(A)},E.attributes=we.CRIAttributesAsArray(d.certificationRequestInfoAttributes||[]),E};we.createCertificationRequest=function(){var u={};return u.version=0,u.signatureOid=null,u.signature=null,u.siginfo={},u.siginfo.algorithmOid=null,u.subject={},u.subject.getField=function(f){return Bn(u.subject,f)},u.subject.addField=function(f){Gr([f]),u.subject.attributes.push(f)},u.subject.attributes=[],u.subject.hash=null,u.publicKey=null,u.attributes=[],u.getAttribute=function(f){return Bn(u,f)},u.addAttribute=function(f){Gr([f]),u.attributes.push(f)},u.md=null,u.setSubject=function(f){Gr(f),u.subject.attributes=f,u.subject.hash=null},u.setAttributes=function(f){Gr(f),u.attributes=f},u.sign=function(f,d){u.md=d||Ge.md.sha1.create();var _=bt[u.md.algorithm+"WithRSAEncryption"];if(!_){var x=new Error("Could not compute certification request digest. Unknown message digest algorithm OID.");throw x.algorithm=u.md.algorithm,x}u.signatureOid=u.siginfo.algorithmOid=_,u.certificationRequestInfo=we.getCertificationRequestInfo(u);var I=V.toDer(u.certificationRequestInfo);u.md.update(I.getBytes()),u.signature=f.sign(u.md)},u.verify=function(){var f=!1,d=u.md;if(d===null){d=Vf({signatureOid:u.signatureOid,type:"certification request"});var _=u.certificationRequestInfo||we.getCertificationRequestInfo(u),x=V.toDer(_);d.update(x.getBytes())}return d!==null&&(f=U2({certificate:u,md:d,signature:u.signature})),f},u};function La(u){for(var f=V.create(V.Class.UNIVERSAL,V.Type.SEQUENCE,!0,[]),d,_,x=u.attributes,I=0;I<x.length;++I){d=x[I];var E=d.value,M=V.Type.PRINTABLESTRING;"valueTagClass"in d&&(M=d.valueTagClass,M===V.Type.UTF8&&(E=Ge.util.encodeUtf8(E))),_=V.create(V.Class.UNIVERSAL,V.Type.SET,!0,[V.create(V.Class.UNIVERSAL,V.Type.SEQUENCE,!0,[V.create(V.Class.UNIVERSAL,V.Type.OID,!1,V.oidToDer(d.type).getBytes()),V.create(V.Class.UNIVERSAL,M,!1,E)])]),f.value.push(_)}return f}function Gr(u){for(var f,d=0;d<u.length;++d){if(f=u[d],typeof f.name>"u"&&(f.type&&f.type in we.oids?f.name=we.oids[f.type]:f.shortName&&f.shortName in Kt&&(f.name=we.oids[Kt[f.shortName]])),typeof f.type>"u")if(f.name&&f.name in we.oids)f.type=we.oids[f.name];else{var _=new Error("Attribute type not specified.");throw _.attribute=f,_}if(typeof f.shortName>"u"&&f.name&&f.name in Kt&&(f.shortName=Kt[f.name]),f.type===bt.extensionRequest&&(f.valueConstructed=!0,f.valueTagClass=V.Type.SEQUENCE,!f.value&&f.extensions)){f.value=[];for(var x=0;x<f.extensions.length;++x)f.value.push(we.certificateExtensionToAsn1(F2(f.extensions[x])))}if(typeof f.value>"u"){var _=new Error("Attribute value not specified.");throw _.attribute=f,_}}}function F2(u,f){if(f=f||{},typeof u.name>"u"&&u.id&&u.id in we.oids&&(u.name=we.oids[u.id]),typeof u.id>"u")if(u.name&&u.name in we.oids)u.id=we.oids[u.name];else{var d=new Error("Extension ID not specified.");throw d.extension=u,d}if(typeof u.value<"u")return u;if(u.name==="keyUsage"){var _=0,x=0,I=0;u.digitalSignature&&(x|=128,_=7),u.nonRepudiation&&(x|=64,_=6),u.keyEncipherment&&(x|=32,_=5),u.dataEncipherment&&(x|=16,_=4),u.keyAgreement&&(x|=8,_=3),u.keyCertSign&&(x|=4,_=2),u.cRLSign&&(x|=2,_=1),u.encipherOnly&&(x|=1,_=0),u.decipherOnly&&(I|=128,_=7);var E=String.fromCharCode(_);I!==0?E+=String.fromCharCode(x)+String.fromCharCode(I):x!==0&&(E+=String.fromCharCode(x)),u.value=V.create(V.Class.UNIVERSAL,V.Type.BITSTRING,!1,E)}else if(u.name==="basicConstraints")u.value=V.create(V.Class.UNIVERSAL,V.Type.SEQUENCE,!0,[]),u.cA&&u.value.value.push(V.create(V.Class.UNIVERSAL,V.Type.BOOLEAN,!1,"ÿ")),"pathLenConstraint"in u&&u.value.value.push(V.create(V.Class.UNIVERSAL,V.Type.INTEGER,!1,V.integerToDer(u.pathLenConstraint).getBytes()));else if(u.name==="extKeyUsage"){u.value=V.create(V.Class.UNIVERSAL,V.Type.SEQUENCE,!0,[]);var M=u.value.value;for(var S in u)u[S]===!0&&(S in bt?M.push(V.create(V.Class.UNIVERSAL,V.Type.OID,!1,V.oidToDer(bt[S]).getBytes())):S.indexOf(".")!==-1&&M.push(V.create(V.Class.UNIVERSAL,V.Type.OID,!1,V.oidToDer(S).getBytes())))}else if(u.name==="nsCertType"){var _=0,x=0;u.client&&(x|=128,_=7),u.server&&(x|=64,_=6),u.email&&(x|=32,_=5),u.objsign&&(x|=16,_=4),u.reserved&&(x|=8,_=3),u.sslCA&&(x|=4,_=2),u.emailCA&&(x|=2,_=1),u.objCA&&(x|=1,_=0);var E=String.fromCharCode(_);x!==0&&(E+=String.fromCharCode(x)),u.value=V.create(V.Class.UNIVERSAL,V.Type.BITSTRING,!1,E)}else if(u.name==="subjectAltName"||u.name==="issuerAltName"){u.value=V.create(V.Class.UNIVERSAL,V.Type.SEQUENCE,!0,[]);for(var A,T=0;T<u.altNames.length;++T){A=u.altNames[T];var E=A.value;if(A.type===7&&A.ip){if(E=Ge.util.bytesFromIP(A.ip),E===null){var d=new Error('Extension "ip" value is not a valid IPv4 or IPv6 address.');throw d.extension=u,d}}else A.type===8&&(A.oid?E=V.oidToDer(V.oidToDer(A.oid)):E=V.oidToDer(E));u.value.value.push(V.create(V.Class.CONTEXT_SPECIFIC,A.type,!1,E))}}else if(u.name==="nsComment"&&f.cert){if(!/^[\x00-\x7F]*$/.test(u.comment)||u.comment.length<1||u.comment.length>128)throw new Error('Invalid "nsComment" content.');u.value=V.create(V.Class.UNIVERSAL,V.Type.IA5STRING,!1,u.comment)}else if(u.name==="subjectKeyIdentifier"&&f.cert){var D=f.cert.generateSubjectKeyIdentifier();u.subjectKeyIdentifier=D.toHex(),u.value=V.create(V.Class.UNIVERSAL,V.Type.OCTETSTRING,!1,D.getBytes())}else if(u.name==="authorityKeyIdentifier"&&f.cert){u.value=V.create(V.Class.UNIVERSAL,V.Type.SEQUENCE,!0,[]);var M=u.value.value;if(u.keyIdentifier){var O=u.keyIdentifier===!0?f.cert.generateSubjectKeyIdentifier().getBytes():u.keyIdentifier;M.push(V.create(V.Class.CONTEXT_SPECIFIC,0,!1,O))}if(u.authorityCertIssuer){var j=[V.create(V.Class.CONTEXT_SPECIFIC,4,!0,[La(u.authorityCertIssuer===!0?f.cert.issuer:u.authorityCertIssuer)])];M.push(V.create(V.Class.CONTEXT_SPECIFIC,1,!0,j))}if(u.serialNumber){var $=Ge.util.hexToBytes(u.serialNumber===!0?f.cert.serialNumber:u.serialNumber);M.push(V.create(V.Class.CONTEXT_SPECIFIC,2,!1,$))}}else if(u.name==="cRLDistributionPoints"){u.value=V.create(V.Class.UNIVERSAL,V.Type.SEQUENCE,!0,[]);for(var M=u.value.value,W=V.create(V.Class.UNIVERSAL,V.Type.SEQUENCE,!0,[]),Q=V.create(V.Class.CONTEXT_SPECIFIC,0,!0,[]),A,T=0;T<u.altNames.length;++T){A=u.altNames[T];var E=A.value;if(A.type===7&&A.ip){if(E=Ge.util.bytesFromIP(A.ip),E===null){var d=new Error('Extension "ip" value is not a valid IPv4 or IPv6 address.');throw d.extension=u,d}}else A.type===8&&(A.oid?E=V.oidToDer(V.oidToDer(A.oid)):E=V.oidToDer(E));Q.value.push(V.create(V.Class.CONTEXT_SPECIFIC,A.type,!1,E))}W.value.push(V.create(V.Class.CONTEXT_SPECIFIC,0,!0,[Q])),M.push(W)}if(typeof u.value>"u"){var d=new Error("Extension value not specified.");throw d.extension=u,d}return u}function Kh(u,f){switch(u){case bt["RSASSA-PSS"]:var d=[];return f.hash.algorithmOid!==void 0&&d.push(V.create(V.Class.CONTEXT_SPECIFIC,0,!0,[V.create(V.Class.UNIVERSAL,V.Type.SEQUENCE,!0,[V.create(V.Class.UNIVERSAL,V.Type.OID,!1,V.oidToDer(f.hash.algorithmOid).getBytes()),V.create(V.Class.UNIVERSAL,V.Type.NULL,!1,"")])])),f.mgf.algorithmOid!==void 0&&d.push(V.create(V.Class.CONTEXT_SPECIFIC,1,!0,[V.create(V.Class.UNIVERSAL,V.Type.SEQUENCE,!0,[V.create(V.Class.UNIVERSAL,V.Type.OID,!1,V.oidToDer(f.mgf.algorithmOid).getBytes()),V.create(V.Class.UNIVERSAL,V.Type.SEQUENCE,!0,[V.create(V.Class.UNIVERSAL,V.Type.OID,!1,V.oidToDer(f.mgf.hash.algorithmOid).getBytes()),V.create(V.Class.UNIVERSAL,V.Type.NULL,!1,"")])])])),f.saltLength!==void 0&&d.push(V.create(V.Class.CONTEXT_SPECIFIC,2,!0,[V.create(V.Class.UNIVERSAL,V.Type.INTEGER,!1,V.integerToDer(f.saltLength).getBytes())])),V.create(V.Class.UNIVERSAL,V.Type.SEQUENCE,!0,d);default:return V.create(V.Class.UNIVERSAL,V.Type.NULL,!1,"")}}function gI(u){var f=V.create(V.Class.CONTEXT_SPECIFIC,0,!0,[]);if(u.attributes.length===0)return f;for(var d=u.attributes,_=0;_<d.length;++_){var x=d[_],I=x.value,E=V.Type.UTF8;"valueTagClass"in x&&(E=x.valueTagClass),E===V.Type.UTF8&&(I=Ge.util.encodeUtf8(I));var M=!1;"valueConstructed"in x&&(M=x.valueConstructed);var S=V.create(V.Class.UNIVERSAL,V.Type.SEQUENCE,!0,[V.create(V.Class.UNIVERSAL,V.Type.OID,!1,V.oidToDer(x.type).getBytes()),V.create(V.Class.UNIVERSAL,V.Type.SET,!0,[V.create(V.Class.UNIVERSAL,E,M,I)])]);f.value.push(S)}return f}var mI=new Date("1950-01-01T00:00:00Z"),bI=new Date("2050-01-01T00:00:00Z");function zp(u){return u>=mI&&u<bI?V.create(V.Class.UNIVERSAL,V.Type.UTCTIME,!1,V.dateToUtcTime(u)):V.create(V.Class.UNIVERSAL,V.Type.GENERALIZEDTIME,!1,V.dateToGeneralizedTime(u))}we.getTBSCertificate=function(u){var f=zp(u.validity.notBefore),d=zp(u.validity.notAfter),_=V.create(V.Class.UNIVERSAL,V.Type.SEQUENCE,!0,[V.create(V.Class.CONTEXT_SPECIFIC,0,!0,[V.create(V.Class.UNIVERSAL,V.Type.INTEGER,!1,V.integerToDer(u.version).getBytes())]),V.create(V.Class.UNIVERSAL,V.Type.INTEGER,!1,Ge.util.hexToBytes(u.serialNumber)),V.create(V.Class.UNIVERSAL,V.Type.SEQUENCE,!0,[V.create(V.Class.UNIVERSAL,V.Type.OID,!1,V.oidToDer(u.siginfo.algorithmOid).getBytes()),Kh(u.siginfo.algorithmOid,u.siginfo.parameters)]),La(u.issuer),V.create(V.Class.UNIVERSAL,V.Type.SEQUENCE,!0,[f,d]),La(u.subject),we.publicKeyToAsn1(u.publicKey)]);return u.issuer.uniqueId&&_.value.push(V.create(V.Class.CONTEXT_SPECIFIC,1,!0,[V.create(V.Class.UNIVERSAL,V.Type.BITSTRING,!1,"\0"+u.issuer.uniqueId)])),u.subject.uniqueId&&_.value.push(V.create(V.Class.CONTEXT_SPECIFIC,2,!0,[V.create(V.Class.UNIVERSAL,V.Type.BITSTRING,!1,"\0"+u.subject.uniqueId)])),u.extensions.length>0&&_.value.push(we.certificateExtensionsToAsn1(u.extensions)),_};we.getCertificationRequestInfo=function(u){var f=V.create(V.Class.UNIVERSAL,V.Type.SEQUENCE,!0,[V.create(V.Class.UNIVERSAL,V.Type.INTEGER,!1,V.integerToDer(u.version).getBytes()),La(u.subject),we.publicKeyToAsn1(u.publicKey),gI(u)]);return f};we.distinguishedNameToAsn1=function(u){return La(u)};we.certificateToAsn1=function(u){var f=u.tbsCertificate||we.getTBSCertificate(u);return V.create(V.Class.UNIVERSAL,V.Type.SEQUENCE,!0,[f,V.create(V.Class.UNIVERSAL,V.Type.SEQUENCE,!0,[V.create(V.Class.UNIVERSAL,V.Type.OID,!1,V.oidToDer(u.signatureOid).getBytes()),Kh(u.signatureOid,u.signatureParameters)]),V.create(V.Class.UNIVERSAL,V.Type.BITSTRING,!1,"\0"+u.signature)])};we.certificateExtensionsToAsn1=function(u){var f=V.create(V.Class.CONTEXT_SPECIFIC,3,!0,[]),d=V.create(V.Class.UNIVERSAL,V.Type.SEQUENCE,!0,[]);f.value.push(d);for(var _=0;_<u.length;++_)d.value.push(we.certificateExtensionToAsn1(u[_]));return f};we.certificateExtensionToAsn1=function(u){var f=V.create(V.Class.UNIVERSAL,V.Type.SEQUENCE,!0,[]);f.value.push(V.create(V.Class.UNIVERSAL,V.Type.OID,!1,V.oidToDer(u.id).getBytes())),u.critical&&f.value.push(V.create(V.Class.UNIVERSAL,V.Type.BOOLEAN,!1,"ÿ"));var d=u.value;return typeof u.value!="string"&&(d=V.toDer(d).getBytes()),f.value.push(V.create(V.Class.UNIVERSAL,V.Type.OCTETSTRING,!1,d)),f};we.certificationRequestToAsn1=function(u){var f=u.certificationRequestInfo||we.getCertificationRequestInfo(u);return V.create(V.Class.UNIVERSAL,V.Type.SEQUENCE,!0,[f,V.create(V.Class.UNIVERSAL,V.Type.SEQUENCE,!0,[V.create(V.Class.UNIVERSAL,V.Type.OID,!1,V.oidToDer(u.signatureOid).getBytes()),Kh(u.signatureOid,u.signatureParameters)]),V.create(V.Class.UNIVERSAL,V.Type.BITSTRING,!1,"\0"+u.signature)])};we.createCaStore=function(u){var f={certs:{}};f.getIssuer=function(E){var M=d(E.issuer);return M},f.addCertificate=function(E){if(typeof E=="string"&&(E=Ge.pki.certificateFromPem(E)),_(E.subject),!f.hasCertificate(E))if(E.subject.hash in f.certs){var M=f.certs[E.subject.hash];Ge.util.isArray(M)||(M=[M]),M.push(E),f.certs[E.subject.hash]=M}else f.certs[E.subject.hash]=E},f.hasCertificate=function(E){typeof E=="string"&&(E=Ge.pki.certificateFromPem(E));var M=d(E.subject);if(!M)return!1;Ge.util.isArray(M)||(M=[M]);for(var S=V.toDer(we.certificateToAsn1(E)).getBytes(),A=0;A<M.length;++A){var T=V.toDer(we.certificateToAsn1(M[A])).getBytes();if(S===T)return!0}return!1},f.listAllCertificates=function(){var E=[];for(var M in f.certs)if(f.certs.hasOwnProperty(M)){var S=f.certs[M];if(!Ge.util.isArray(S))E.push(S);else for(var A=0;A<S.length;++A)E.push(S[A])}return E},f.removeCertificate=function(E){var M;if(typeof E=="string"&&(E=Ge.pki.certificateFromPem(E)),_(E.subject),!f.hasCertificate(E))return null;var S=d(E.subject);if(!Ge.util.isArray(S))return M=f.certs[E.subject.hash],delete f.certs[E.subject.hash],M;for(var A=V.toDer(we.certificateToAsn1(E)).getBytes(),T=0;T<S.length;++T){var D=V.toDer(we.certificateToAsn1(S[T])).getBytes();A===D&&(M=S[T],S.splice(T,1))}return S.length===0&&delete f.certs[E.subject.hash],M};function d(E){return _(E),f.certs[E.hash]||null}function _(E){if(!E.hash){var M=Ge.md.sha1.create();E.attributes=we.RDNAttributesAsArray(La(E),M),E.hash=M.digest().toHex()}}if(u)for(var x=0;x<u.length;++x){var I=u[x];f.addCertificate(I)}return f};we.certificateError={bad_certificate:"forge.pki.BadCertificate",unsupported_certificate:"forge.pki.UnsupportedCertificate",certificate_revoked:"forge.pki.CertificateRevoked",certificate_expired:"forge.pki.CertificateExpired",certificate_unknown:"forge.pki.CertificateUnknown",unknown_ca:"forge.pki.UnknownCertificateAuthority"};we.verifyCertificateChain=function(u,f,d){typeof d=="function"&&(d={verify:d}),d=d||{},f=f.slice(0);var _=f.slice(0),x=d.validityCheckDate;typeof x>"u"&&(x=new Date);var I=!0,E=null,M=0;do{var S=f.shift(),A=null,T=!1;if(x&&(x<S.validity.notBefore||x>S.validity.notAfter)&&(E={message:"Certificate is not valid yet or has expired.",error:we.certificateError.certificate_expired,notBefore:S.validity.notBefore,notAfter:S.validity.notAfter,now:x}),E===null){if(A=f[0]||u.getIssuer(S),A===null&&S.isIssuer(S)&&(T=!0,A=S),A){var D=A;Ge.util.isArray(D)||(D=[D]);for(var O=!1;!O&&D.length>0;){A=D.shift();try{O=A.verify(S)}catch{}}O||(E={message:"Certificate signature is invalid.",error:we.certificateError.bad_certificate})}E===null&&(!A||T)&&!u.hasCertificate(S)&&(E={message:"Certificate is not trusted.",error:we.certificateError.unknown_ca})}if(E===null&&A&&!S.isIssuer(A)&&(E={message:"Certificate issuer is invalid.",error:we.certificateError.bad_certificate}),E===null)for(var j={keyUsage:!0,basicConstraints:!0},$=0;E===null&&$<S.extensions.length;++$){var W=S.extensions[$];W.critical&&!(W.name in j)&&(E={message:"Certificate has an unsupported critical extension.",error:we.certificateError.unsupported_certificate})}if(E===null&&(!I||f.length===0&&(!A||T))){var Q=S.getExtension("basicConstraints"),X=S.getExtension("keyUsage");if(X!==null&&(!X.keyCertSign||Q===null)&&(E={message:"Certificate keyUsage or basicConstraints conflict or indicate that the certificate is not a CA. If the certificate is the only one in the chain or isn't the first then the certificate must be a valid CA.",error:we.certificateError.bad_certificate}),E===null&&Q!==null&&!Q.cA&&(E={message:"Certificate basicConstraints indicates the certificate is not a CA.",error:we.certificateError.bad_certificate}),E===null&&X!==null&&"pathLenConstraint"in Q){var Y=M-1;Y>Q.pathLenConstraint&&(E={message:"Certificate basicConstraints pathLenConstraint violated.",error:we.certificateError.bad_certificate})}}var ie=E===null?!0:E.error,oe=d.verify?d.verify(ie,M,_):ie;if(oe===!0)E=null;else throw ie===!0&&(E={message:"The application rejected the certificate.",error:we.certificateError.bad_certificate}),(oe||oe===0)&&(typeof oe=="object"&&!Ge.util.isArray(oe)?(oe.message&&(E.message=oe.message),oe.error&&(E.error=oe.error)):typeof oe=="string"&&(E.error=oe)),E;I=!1,++M}while(f.length>0);return!0};var Pt=ht,te=Pt.asn1,lt=Pt.pki,T0=Pt.pkcs12=Pt.pkcs12||{},q2={name:"ContentInfo",tagClass:te.Class.UNIVERSAL,type:te.Type.SEQUENCE,constructed:!0,value:[{name:"ContentInfo.contentType",tagClass:te.Class.UNIVERSAL,type:te.Type.OID,constructed:!1,capture:"contentType"},{name:"ContentInfo.content",tagClass:te.Class.CONTEXT_SPECIFIC,constructed:!0,captureAsn1:"content"}]},xI={name:"PFX",tagClass:te.Class.UNIVERSAL,type:te.Type.SEQUENCE,constructed:!0,value:[{name:"PFX.version",tagClass:te.Class.UNIVERSAL,type:te.Type.INTEGER,constructed:!1,capture:"version"},q2,{name:"PFX.macData",tagClass:te.Class.UNIVERSAL,type:te.Type.SEQUENCE,constructed:!0,optional:!0,captureAsn1:"mac",value:[{name:"PFX.macData.mac",tagClass:te.Class.UNIVERSAL,type:te.Type.SEQUENCE,constructed:!0,value:[{name:"PFX.macData.mac.digestAlgorithm",tagClass:te.Class.UNIVERSAL,type:te.Type.SEQUENCE,constructed:!0,value:[{name:"PFX.macData.mac.digestAlgorithm.algorithm",tagClass:te.Class.UNIVERSAL,type:te.Type.OID,constructed:!1,capture:"macAlgorithm"},{name:"PFX.macData.mac.digestAlgorithm.parameters",tagClass:te.Class.UNIVERSAL,captureAsn1:"macAlgorithmParameters"}]},{name:"PFX.macData.mac.digest",tagClass:te.Class.UNIVERSAL,type:te.Type.OCTETSTRING,constructed:!1,capture:"macDigest"}]},{name:"PFX.macData.macSalt",tagClass:te.Class.UNIVERSAL,type:te.Type.OCTETSTRING,constructed:!1,capture:"macSalt"},{name:"PFX.macData.iterations",tagClass:te.Class.UNIVERSAL,type:te.Type.INTEGER,constructed:!1,optional:!0,capture:"macIterations"}]}]},_I={name:"SafeBag",tagClass:te.Class.UNIVERSAL,type:te.Type.SEQUENCE,constructed:!0,value:[{name:"SafeBag.bagId",tagClass:te.Class.UNIVERSAL,type:te.Type.OID,constructed:!1,capture:"bagId"},{name:"SafeBag.bagValue",tagClass:te.Class.CONTEXT_SPECIFIC,constructed:!0,captureAsn1:"bagValue"},{name:"SafeBag.bagAttributes",tagClass:te.Class.UNIVERSAL,type:te.Type.SET,constructed:!0,optional:!0,capture:"bagAttributes"}]},EI={name:"Attribute",tagClass:te.Class.UNIVERSAL,type:te.Type.SEQUENCE,constructed:!0,value:[{name:"Attribute.attrId",tagClass:te.Class.UNIVERSAL,type:te.Type.OID,constructed:!1,capture:"oid"},{name:"Attribute.attrValues",tagClass:te.Class.UNIVERSAL,type:te.Type.SET,constructed:!0,capture:"values"}]},SI={name:"CertBag",tagClass:te.Class.UNIVERSAL,type:te.Type.SEQUENCE,constructed:!0,value:[{name:"CertBag.certId",tagClass:te.Class.UNIVERSAL,type:te.Type.OID,constructed:!1,capture:"certId"},{name:"CertBag.certValue",tagClass:te.Class.CONTEXT_SPECIFIC,constructed:!0,value:[{name:"CertBag.certValue[0]",tagClass:te.Class.UNIVERSAL,type:te.Class.OCTETSTRING,constructed:!1,capture:"cert"}]}]};function l0(u,f,d,_){for(var x=[],I=0;I<u.length;I++)for(var E=0;E<u[I].safeBags.length;E++){var M=u[I].safeBags[E];if(!(_!==void 0&&M.type!==_)){if(f===null){x.push(M);continue}M.attributes[f]!==void 0&&M.attributes[f].indexOf(d)>=0&&x.push(M)}}return x}T0.pkcs12FromAsn1=function(u,f,d){typeof f=="string"?(d=f,f=!0):f===void 0&&(f=!0);var _={},x=[];if(!te.validate(u,xI,_,x)){var I=new Error("Cannot read PKCS#12 PFX. ASN.1 object is not an PKCS#12 PFX.");throw I.errors=I,I}var E={version:_.version.charCodeAt(0),safeContents:[],getBags:function(Q){var X={},Y;return"localKeyId"in Q?Y=Q.localKeyId:"localKeyIdHex"in Q&&(Y=Pt.util.hexToBytes(Q.localKeyIdHex)),Y===void 0&&!("friendlyName"in Q)&&"bagType"in Q&&(X[Q.bagType]=l0(E.safeContents,null,null,Q.bagType)),Y!==void 0&&(X.localKeyId=l0(E.safeContents,"localKeyId",Y,Q.bagType)),"friendlyName"in Q&&(X.friendlyName=l0(E.safeContents,"friendlyName",Q.friendlyName,Q.bagType)),X},getBagsByFriendlyName:function(Q,X){return l0(E.safeContents,"friendlyName",Q,X)},getBagsByLocalKeyId:function(Q,X){return l0(E.safeContents,"localKeyId",Q,X)}};if(_.version.charCodeAt(0)!==3){var I=new Error("PKCS#12 PFX of version other than 3 not supported.");throw I.version=_.version.charCodeAt(0),I}if(te.derToOid(_.contentType)!==lt.oids.data){var I=new Error("Only PKCS#12 PFX in password integrity mode supported.");throw I.oid=te.derToOid(_.contentType),I}var M=_.content.value[0];if(M.tagClass!==te.Class.UNIVERSAL||M.type!==te.Type.OCTETSTRING)throw new Error("PKCS#12 authSafe content data is not an OCTET STRING.");if(M=$h(M),_.mac){var S=null,A=0,T=te.derToOid(_.macAlgorithm);switch(T){case lt.oids.sha1:S=Pt.md.sha1.create(),A=20;break;case lt.oids.sha256:S=Pt.md.sha256.create(),A=32;break;case lt.oids.sha384:S=Pt.md.sha384.create(),A=48;break;case lt.oids.sha512:S=Pt.md.sha512.create(),A=64;break;case lt.oids.md5:S=Pt.md.md5.create(),A=16;break}if(S===null)throw new Error("PKCS#12 uses unsupported MAC algorithm: "+T);var D=new Pt.util.ByteBuffer(_.macSalt),O="macIterations"in _?parseInt(Pt.util.bytesToHex(_.macIterations),16):1,j=T0.generateKey(d,D,3,O,A,S),$=Pt.hmac.create();$.start(S,j),$.update(M.value);var W=$.getMac();if(W.getBytes()!==_.macDigest)throw new Error("PKCS#12 MAC could not be verified. Invalid password?")}return wI(E,M.value,f,d),E};function $h(u){if(u.composed||u.constructed){for(var f=Pt.util.createBuffer(),d=0;d<u.value.length;++d)f.putBytes(u.value[d].value);u.composed=u.constructed=!1,u.value=f.getBytes()}return u}function wI(u,f,d,_){if(f=te.fromDer(f,d),f.tagClass!==te.Class.UNIVERSAL||f.type!==te.Type.SEQUENCE||f.constructed!==!0)throw new Error("PKCS#12 AuthenticatedSafe expected to be a SEQUENCE OF ContentInfo");for(var x=0;x<f.value.length;x++){var I=f.value[x],E={},M=[];if(!te.validate(I,q2,E,M)){var S=new Error("Cannot read ContentInfo.");throw S.errors=M,S}var A={encrypted:!1},T=null,D=E.content.value[0];switch(te.derToOid(E.contentType)){case lt.oids.data:if(D.tagClass!==te.Class.UNIVERSAL||D.type!==te.Type.OCTETSTRING)throw new Error("PKCS#12 SafeContents Data is not an OCTET STRING.");T=$h(D).value;break;case lt.oids.encryptedData:T=CI(D,_),A.encrypted=!0;break;default:var S=new Error("Unsupported PKCS#12 contentType.");throw S.contentType=te.derToOid(E.contentType),S}A.safeBags=AI(T,d,_),u.safeContents.push(A)}}function CI(u,f){var d={},_=[];if(!te.validate(u,Pt.pkcs7.asn1.encryptedDataValidator,d,_)){var x=new Error("Cannot read EncryptedContentInfo.");throw x.errors=_,x}var I=te.derToOid(d.contentType);if(I!==lt.oids.data){var x=new Error("PKCS#12 EncryptedContentInfo ContentType is not Data.");throw x.oid=I,x}I=te.derToOid(d.encAlgorithm);var E=lt.pbe.getCipher(I,d.encParameter,f),M=$h(d.encryptedContentAsn1),S=Pt.util.createBuffer(M.value);if(E.update(S),!E.finish())throw new Error("Failed to decrypt PKCS#12 SafeContents.");return E.output.getBytes()}function AI(u,f,d){if(!f&&u.length===0)return[];if(u=te.fromDer(u,f),u.tagClass!==te.Class.UNIVERSAL||u.type!==te.Type.SEQUENCE||u.constructed!==!0)throw new Error("PKCS#12 SafeContents expected to be a SEQUENCE OF SafeBag.");for(var _=[],x=0;x<u.value.length;x++){var I=u.value[x],E={},M=[];if(!te.validate(I,_I,E,M)){var S=new Error("Cannot read SafeBag.");throw S.errors=M,S}var A={type:te.derToOid(E.bagId),attributes:BI(E.bagAttributes)};_.push(A);var T,D,O=E.bagValue.value[0];switch(A.type){case lt.oids.pkcs8ShroudedKeyBag:if(O=lt.decryptPrivateKeyInfo(O,d),O===null)throw new Error("Unable to decrypt PKCS#8 ShroudedKeyBag, wrong password?");case lt.oids.keyBag:try{A.key=lt.privateKeyFromAsn1(O)}catch{A.key=null,A.asn1=O}continue;case lt.oids.certBag:T=SI,D=function(){if(te.derToOid(E.certId)!==lt.oids.x509Certificate){var $=new Error("Unsupported certificate type, only X.509 supported.");throw $.oid=te.derToOid(E.certId),$}var W=te.fromDer(E.cert,f);try{A.cert=lt.certificateFromAsn1(W,!0)}catch{A.cert=null,A.asn1=W}};break;default:var S=new Error("Unsupported PKCS#12 SafeBag type.");throw S.oid=A.type,S}if(T!==void 0&&!te.validate(O,T,E,M)){var S=new Error("Cannot read PKCS#12 "+T.name);throw S.errors=M,S}D()}return _}function BI(u){var f={};if(u!==void 0)for(var d=0;d<u.length;++d){var _={},x=[];if(!te.validate(u[d],EI,_,x)){var I=new Error("Cannot read PKCS#12 BagAttribute.");throw I.errors=x,I}var E=te.derToOid(_.oid);if(lt.oids[E]!==void 0){f[lt.oids[E]]=[];for(var M=0;M<_.values.length;++M)f[lt.oids[E]].push(_.values[M].value)}}return f}T0.toPkcs12Asn1=function(u,f,d,_){_=_||{},_.saltSize=_.saltSize||8,_.count=_.count||2048,_.algorithm=_.algorithm||_.encAlgorithm||"aes128","useMac"in _||(_.useMac=!0),"localKeyId"in _||(_.localKeyId=null),"generateLocalKeyId"in _||(_.generateLocalKeyId=!0);var x=_.localKeyId,I;if(x!==null)x=Pt.util.hexToBytes(x);else if(_.generateLocalKeyId)if(f){var E=Pt.util.isArray(f)?f[0]:f;typeof E=="string"&&(E=lt.certificateFromPem(E));var M=Pt.md.sha1.create();M.update(te.toDer(lt.certificateToAsn1(E)).getBytes()),x=M.digest().getBytes()}else x=Pt.random.getBytes(20);var S=[];x!==null&&S.push(te.create(te.Class.UNIVERSAL,te.Type.SEQUENCE,!0,[te.create(te.Class.UNIVERSAL,te.Type.OID,!1,te.oidToDer(lt.oids.localKeyId).getBytes()),te.create(te.Class.UNIVERSAL,te.Type.SET,!0,[te.create(te.Class.UNIVERSAL,te.Type.OCTETSTRING,!1,x)])])),"friendlyName"in _&&S.push(te.create(te.Class.UNIVERSAL,te.Type.SEQUENCE,!0,[te.create(te.Class.UNIVERSAL,te.Type.OID,!1,te.oidToDer(lt.oids.friendlyName).getBytes()),te.create(te.Class.UNIVERSAL,te.Type.SET,!0,[te.create(te.Class.UNIVERSAL,te.Type.BMPSTRING,!1,_.friendlyName)])])),S.length>0&&(I=te.create(te.Class.UNIVERSAL,te.Type.SET,!0,S));var A=[],T=[];f!==null&&(Pt.util.isArray(f)?T=f:T=[f]);for(var D=[],O=0;O<T.length;++O){f=T[O],typeof f=="string"&&(f=lt.certificateFromPem(f));var j=O===0?I:void 0,$=lt.certificateToAsn1(f),W=te.create(te.Class.UNIVERSAL,te.Type.SEQUENCE,!0,[te.create(te.Class.UNIVERSAL,te.Type.OID,!1,te.oidToDer(lt.oids.certBag).getBytes()),te.create(te.Class.CONTEXT_SPECIFIC,0,!0,[te.create(te.Class.UNIVERSAL,te.Type.SEQUENCE,!0,[te.create(te.Class.UNIVERSAL,te.Type.OID,!1,te.oidToDer(lt.oids.x509Certificate).getBytes()),te.create(te.Class.CONTEXT_SPECIFIC,0,!0,[te.create(te.Class.UNIVERSAL,te.Type.OCTETSTRING,!1,te.toDer($).getBytes())])])]),j]);D.push(W)}if(D.length>0){var Q=te.create(te.Class.UNIVERSAL,te.Type.SEQUENCE,!0,D),X=te.create(te.Class.UNIVERSAL,te.Type.SEQUENCE,!0,[te.create(te.Class.UNIVERSAL,te.Type.OID,!1,te.oidToDer(lt.oids.data).getBytes()),te.create(te.Class.CONTEXT_SPECIFIC,0,!0,[te.create(te.Class.UNIVERSAL,te.Type.OCTETSTRING,!1,te.toDer(Q).getBytes())])]);A.push(X)}var Y=null;if(u!==null){var ie=lt.wrapRsaPrivateKey(lt.privateKeyToAsn1(u));d===null?Y=te.create(te.Class.UNIVERSAL,te.Type.SEQUENCE,!0,[te.create(te.Class.UNIVERSAL,te.Type.OID,!1,te.oidToDer(lt.oids.keyBag).getBytes()),te.create(te.Class.CONTEXT_SPECIFIC,0,!0,[ie]),I]):Y=te.create(te.Class.UNIVERSAL,te.Type.SEQUENCE,!0,[te.create(te.Class.UNIVERSAL,te.Type.OID,!1,te.oidToDer(lt.oids.pkcs8ShroudedKeyBag).getBytes()),te.create(te.Class.CONTEXT_SPECIFIC,0,!0,[lt.encryptPrivateKeyInfo(ie,d,_)]),I]);var oe=te.create(te.Class.UNIVERSAL,te.Type.SEQUENCE,!0,[Y]),ge=te.create(te.Class.UNIVERSAL,te.Type.SEQUENCE,!0,[te.create(te.Class.UNIVERSAL,te.Type.OID,!1,te.oidToDer(lt.oids.data).getBytes()),te.create(te.Class.CONTEXT_SPECIFIC,0,!0,[te.create(te.Class.UNIVERSAL,te.Type.OCTETSTRING,!1,te.toDer(oe).getBytes())])]);A.push(ge)}var be=te.create(te.Class.UNIVERSAL,te.Type.SEQUENCE,!0,A),ze;if(_.useMac){var M=Pt.md.sha1.create(),de=new Pt.util.ByteBuffer(Pt.random.getBytes(_.saltSize)),Ce=_.count,u=T0.generateKey(d,de,3,Ce,20),ke=Pt.hmac.create();ke.start(M,u),ke.update(te.toDer(be).getBytes());var le=ke.getMac();ze=te.create(te.Class.UNIVERSAL,te.Type.SEQUENCE,!0,[te.create(te.Class.UNIVERSAL,te.Type.SEQUENCE,!0,[te.create(te.Class.UNIVERSAL,te.Type.SEQUENCE,!0,[te.create(te.Class.UNIVERSAL,te.Type.OID,!1,te.oidToDer(lt.oids.sha1).getBytes()),te.create(te.Class.UNIVERSAL,te.Type.NULL,!1,"")]),te.create(te.Class.UNIVERSAL,te.Type.OCTETSTRING,!1,le.getBytes())]),te.create(te.Class.UNIVERSAL,te.Type.OCTETSTRING,!1,de.getBytes()),te.create(te.Class.UNIVERSAL,te.Type.INTEGER,!1,te.integerToDer(Ce).getBytes())])}return te.create(te.Class.UNIVERSAL,te.Type.SEQUENCE,!0,[te.create(te.Class.UNIVERSAL,te.Type.INTEGER,!1,te.integerToDer(3).getBytes()),te.create(te.Class.UNIVERSAL,te.Type.SEQUENCE,!0,[te.create(te.Class.UNIVERSAL,te.Type.OID,!1,te.oidToDer(lt.oids.data).getBytes()),te.create(te.Class.CONTEXT_SPECIFIC,0,!0,[te.create(te.Class.UNIVERSAL,te.Type.OCTETSTRING,!1,te.toDer(be).getBytes())])]),ze])};T0.generateKey=Pt.pbe.generatePkcs12Key;var In=ht,Hh=In.asn1,ka=In.pki=In.pki||{};ka.pemToDer=function(u){var f=In.pem.decode(u)[0];if(f.procType&&f.procType.type==="ENCRYPTED")throw new Error("Could not convert PEM to DER; PEM is encrypted.");return In.util.createBuffer(f.body)};ka.privateKeyFromPem=function(u){var f=In.pem.decode(u)[0];if(f.type!=="PRIVATE KEY"&&f.type!=="RSA PRIVATE KEY"){var d=new Error('Could not convert private key from PEM; PEM header type is not "PRIVATE KEY" or "RSA PRIVATE KEY".');throw d.headerType=f.type,d}if(f.procType&&f.procType.type==="ENCRYPTED")throw new Error("Could not convert private key from PEM; PEM is encrypted.");var _=Hh.fromDer(f.body);return ka.privateKeyFromAsn1(_)};ka.privateKeyToPem=function(u,f){var d={type:"RSA PRIVATE KEY",body:Hh.toDer(ka.privateKeyToAsn1(u)).getBytes()};return In.pem.encode(d,{maxline:f})};ka.privateKeyInfoToPem=function(u,f){var d={type:"PRIVATE KEY",body:Hh.toDer(u).getBytes()};return In.pem.encode(d,{maxline:f})};var xe=ht,Kf=function(u,f,d,_){var x=xe.util.createBuffer(),I=u.length>>1,E=I+(u.length&1),M=u.substr(0,E),S=u.substr(I,E),A=xe.util.createBuffer(),T=xe.hmac.create();d=f+d;var D=Math.ceil(_/16),O=Math.ceil(_/20);T.start("MD5",M);var j=xe.util.createBuffer();A.putBytes(d);for(var $=0;$<D;++$)T.start(null,null),T.update(A.getBytes()),A.putBuffer(T.digest()),T.start(null,null),T.update(A.bytes()+d),j.putBuffer(T.digest());T.start("SHA1",S);var W=xe.util.createBuffer();A.clear(),A.putBytes(d);for(var $=0;$<O;++$)T.start(null,null),T.update(A.getBytes()),A.putBuffer(T.digest()),T.start(null,null),T.update(A.bytes()+d),W.putBuffer(T.digest());return x.putBytes(xe.util.xorBytes(j.getBytes(),W.getBytes(),_)),x},II=function(u,f,d){var _=xe.hmac.create();_.start("SHA1",u);var x=xe.util.createBuffer();return x.putInt32(f[0]),x.putInt32(f[1]),x.putByte(d.type),x.putByte(d.version.major),x.putByte(d.version.minor),x.putInt16(d.length),x.putBytes(d.fragment.bytes()),_.update(x.getBytes()),_.digest().getBytes()},TI=function(u,f,d){var _=!1;try{var x=u.deflate(f.fragment.getBytes());f.fragment=xe.util.createBuffer(x),f.length=x.length,_=!0}catch{}return _},MI=function(u,f,d){var _=!1;try{var x=u.inflate(f.fragment.getBytes());f.fragment=xe.util.createBuffer(x),f.length=x.length,_=!0}catch{}return _},Rr=function(u,f){var d=0;switch(f){case 1:d=u.getByte();break;case 2:d=u.getInt16();break;case 3:d=u.getInt24();break;case 4:d=u.getInt32();break}return xe.util.createBuffer(u.getBytes(d))},Fr=function(u,f,d){u.putInt(d.length(),f<<3),u.putBuffer(d)},G={};G.Versions={TLS_1_0:{major:3,minor:1},TLS_1_1:{major:3,minor:2},TLS_1_2:{major:3,minor:3}};G.SupportedVersions=[G.Versions.TLS_1_1,G.Versions.TLS_1_0];G.Version=G.SupportedVersions[0];G.MaxFragment=15360;G.ConnectionEnd={server:0,client:1};G.PRFAlgorithm={tls_prf_sha256:0};G.BulkCipherAlgorithm={none:null,rc4:0,des3:1,aes:2};G.CipherType={stream:0,block:1,aead:2};G.MACAlgorithm={none:null,hmac_md5:0,hmac_sha1:1,hmac_sha256:2,hmac_sha384:3,hmac_sha512:4};G.CompressionMethod={none:0,deflate:1};G.ContentType={change_cipher_spec:20,alert:21,handshake:22,application_data:23,heartbeat:24};G.HandshakeType={hello_request:0,client_hello:1,server_hello:2,certificate:11,server_key_exchange:12,certificate_request:13,server_hello_done:14,certificate_verify:15,client_key_exchange:16,finished:20};G.Alert={};G.Alert.Level={warning:1,fatal:2};G.Alert.Description={close_notify:0,unexpected_message:10,bad_record_mac:20,decryption_failed:21,record_overflow:22,decompression_failure:30,handshake_failure:40,bad_certificate:42,unsupported_certificate:43,certificate_revoked:44,certificate_expired:45,certificate_unknown:46,illegal_parameter:47,unknown_ca:48,access_denied:49,decode_error:50,decrypt_error:51,export_restriction:60,protocol_version:70,insufficient_security:71,internal_error:80,user_canceled:90,no_renegotiation:100};G.HeartbeatMessageType={heartbeat_request:1,heartbeat_response:2};G.CipherSuites={};G.getCipherSuite=function(u){var f=null;for(var d in G.CipherSuites){var _=G.CipherSuites[d];if(_.id[0]===u.charCodeAt(0)&&_.id[1]===u.charCodeAt(1)){f=_;break}}return f};G.handleUnexpected=function(u,f){var d=!u.open&&u.entity===G.ConnectionEnd.client;d||u.error(u,{message:"Unexpected message. Received TLS record out of order.",send:!0,alert:{level:G.Alert.Level.fatal,description:G.Alert.Description.unexpected_message}})};G.handleHelloRequest=function(u,f,d){!u.handshaking&&u.handshakes>0&&(G.queue(u,G.createAlert(u,{level:G.Alert.Level.warning,description:G.Alert.Description.no_renegotiation})),G.flush(u)),u.process()};G.parseHelloMessage=function(u,f,d){var _=null,x=u.entity===G.ConnectionEnd.client;if(d<38)u.error(u,{message:x?"Invalid ServerHello message. Message too short.":"Invalid ClientHello message. Message too short.",send:!0,alert:{level:G.Alert.Level.fatal,description:G.Alert.Description.illegal_parameter}});else{var I=f.fragment,E=I.length();if(_={version:{major:I.getByte(),minor:I.getByte()},random:xe.util.createBuffer(I.getBytes(32)),session_id:Rr(I,1),extensions:[]},x?(_.cipher_suite=I.getBytes(2),_.compression_method=I.getByte()):(_.cipher_suites=Rr(I,2),_.compression_methods=Rr(I,1)),E=d-(E-I.length()),E>0){for(var M=Rr(I,2);M.length()>0;)_.extensions.push({type:[M.getByte(),M.getByte()],data:Rr(M,2)});if(!x)for(var S=0;S<_.extensions.length;++S){var A=_.extensions[S];if(A.type[0]===0&&A.type[1]===0)for(var T=Rr(A.data,2);T.length()>0;){var D=T.getByte();if(D!==0)break;u.session.extensions.server_name.serverNameList.push(Rr(T,2).getBytes())}}}if(u.session.version&&(_.version.major!==u.session.version.major||_.version.minor!==u.session.version.minor))return u.error(u,{message:"TLS version change is disallowed during renegotiation.",send:!0,alert:{level:G.Alert.Level.fatal,description:G.Alert.Description.protocol_version}});if(x)u.session.cipherSuite=G.getCipherSuite(_.cipher_suite);else for(var O=xe.util.createBuffer(_.cipher_suites.bytes());O.length()>0&&(u.session.cipherSuite=G.getCipherSuite(O.getBytes(2)),u.session.cipherSuite===null););if(u.session.cipherSuite===null)return u.error(u,{message:"No cipher suites in common.",send:!0,alert:{level:G.Alert.Level.fatal,description:G.Alert.Description.handshake_failure},cipherSuite:xe.util.bytesToHex(_.cipher_suite)});x?u.session.compressionMethod=_.compression_method:u.session.compressionMethod=G.CompressionMethod.none}return _};G.createSecurityParameters=function(u,f){var d=u.entity===G.ConnectionEnd.client,_=f.random.bytes(),x=d?u.session.sp.client_random:_,I=d?_:G.createRandom().getBytes();u.session.sp={entity:u.entity,prf_algorithm:G.PRFAlgorithm.tls_prf_sha256,bulk_cipher_algorithm:null,cipher_type:null,enc_key_length:null,block_length:null,fixed_iv_length:null,record_iv_length:null,mac_algorithm:null,mac_length:null,mac_key_length:null,compression_algorithm:u.session.compressionMethod,pre_master_secret:null,master_secret:null,client_random:x,server_random:I}};G.handleServerHello=function(u,f,d){var _=G.parseHelloMessage(u,f,d);if(!u.fail){if(_.version.minor<=u.version.minor)u.version.minor=_.version.minor;else return u.error(u,{message:"Incompatible TLS version.",send:!0,alert:{level:G.Alert.Level.fatal,description:G.Alert.Description.protocol_version}});u.session.version=u.version;var x=_.session_id.bytes();x.length>0&&x===u.session.id?(u.expect=V2,u.session.resuming=!0,u.session.sp.server_random=_.random.bytes()):(u.expect=NI,u.session.resuming=!1,G.createSecurityParameters(u,_)),u.session.id=x,u.process()}};G.handleClientHello=function(u,f,d){var _=G.parseHelloMessage(u,f,d);if(!u.fail){var x=_.session_id.bytes(),I=null;if(u.sessionCache&&(I=u.sessionCache.getSession(x),I===null?x="":(I.version.major!==_.version.major||I.version.minor>_.version.minor)&&(I=null,x="")),x.length===0&&(x=xe.random.getBytes(32)),u.session.id=x,u.session.clientHelloVersion=_.version,u.session.sp={},I)u.version=u.session.version=I.version,u.session.sp=I.sp;else{for(var E,M=1;M<G.SupportedVersions.length&&(E=G.SupportedVersions[M],!(E.minor<=_.version.minor));++M);u.version={major:E.major,minor:E.minor},u.session.version=u.version}I!==null?(u.expect=Gh,u.session.resuming=!0,u.session.sp.client_random=_.random.bytes()):(u.expect=u.verifyClient!==!1?FI:Cc,u.session.resuming=!1,G.createSecurityParameters(u,_)),u.open=!0,G.queue(u,G.createRecord(u,{type:G.ContentType.handshake,data:G.createServerHello(u)})),u.session.resuming?(G.queue(u,G.createRecord(u,{type:G.ContentType.change_cipher_spec,data:G.createChangeCipherSpec()})),u.state.pending=G.createConnectionState(u),u.state.current.write=u.state.pending.write,G.queue(u,G.createRecord(u,{type:G.ContentType.handshake,data:G.createFinished(u)}))):(G.queue(u,G.createRecord(u,{type:G.ContentType.handshake,data:G.createCertificate(u)})),u.fail||(G.queue(u,G.createRecord(u,{type:G.ContentType.handshake,data:G.createServerKeyExchange(u)})),u.verifyClient!==!1&&G.queue(u,G.createRecord(u,{type:G.ContentType.handshake,data:G.createCertificateRequest(u)})),G.queue(u,G.createRecord(u,{type:G.ContentType.handshake,data:G.createServerHelloDone(u)})))),G.flush(u),u.process()}};G.handleCertificate=function(u,f,d){if(d<3)return u.error(u,{message:"Invalid Certificate message. Message too short.",send:!0,alert:{level:G.Alert.Level.fatal,description:G.Alert.Description.illegal_parameter}});var _=f.fragment,x={certificate_list:Rr(_,3)},I,E,M=[];try{for(;x.certificate_list.length()>0;)I=Rr(x.certificate_list,3),E=xe.asn1.fromDer(I),I=xe.pki.certificateFromAsn1(E,!0),M.push(I)}catch(A){return u.error(u,{message:"Could not parse certificate list.",cause:A,send:!0,alert:{level:G.Alert.Level.fatal,description:G.Alert.Description.bad_certificate}})}var S=u.entity===G.ConnectionEnd.client;(S||u.verifyClient===!0)&&M.length===0?u.error(u,{message:S?"No server certificate provided.":"No client certificate provided.",send:!0,alert:{level:G.Alert.Level.fatal,description:G.Alert.Description.illegal_parameter}}):M.length===0?u.expect=S?jp:Cc:(S?u.session.serverCertificate=M[0]:u.session.clientCertificate=M[0],G.verifyCertificateChain(u,M)&&(u.expect=S?jp:Cc)),u.process()};G.handleServerKeyExchange=function(u,f,d){if(d>0)return u.error(u,{message:"Invalid key parameters. Only RSA is supported.",send:!0,alert:{level:G.Alert.Level.fatal,description:G.Alert.Description.unsupported_certificate}});u.expect=DI,u.process()};G.handleClientKeyExchange=function(u,f,d){if(d<48)return u.error(u,{message:"Invalid key parameters. Only RSA is supported.",send:!0,alert:{level:G.Alert.Level.fatal,description:G.Alert.Description.unsupported_certificate}});var _=f.fragment,x={enc_pre_master_secret:Rr(_,2).getBytes()},I=null;if(u.getPrivateKey)try{I=u.getPrivateKey(u,u.session.serverCertificate),I=xe.pki.privateKeyFromPem(I)}catch(S){u.error(u,{message:"Could not get private key.",cause:S,send:!0,alert:{level:G.Alert.Level.fatal,description:G.Alert.Description.internal_error}})}if(I===null)return u.error(u,{message:"No private key set.",send:!0,alert:{level:G.Alert.Level.fatal,description:G.Alert.Description.internal_error}});try{var E=u.session.sp;E.pre_master_secret=I.decrypt(x.enc_pre_master_secret);var M=u.session.clientHelloVersion;if(M.major!==E.pre_master_secret.charCodeAt(0)||M.minor!==E.pre_master_secret.charCodeAt(1))throw new Error("TLS version rollback attack detected.")}catch{E.pre_master_secret=xe.random.getBytes(48)}u.expect=Gh,u.session.clientCertificate!==null&&(u.expect=qI),u.process()};G.handleCertificateRequest=function(u,f,d){if(d<3)return u.error(u,{message:"Invalid CertificateRequest. Message too short.",send:!0,alert:{level:G.Alert.Level.fatal,description:G.Alert.Description.illegal_parameter}});var _=f.fragment,x={certificate_types:Rr(_,1),certificate_authorities:Rr(_,2)};u.session.certificateRequest=x,u.expect=OI,u.process()};G.handleCertificateVerify=function(u,f,d){if(d<2)return u.error(u,{message:"Invalid CertificateVerify. Message too short.",send:!0,alert:{level:G.Alert.Level.fatal,description:G.Alert.Description.illegal_parameter}});var _=f.fragment;_.read-=4;var x=_.bytes();_.read+=4;var I={signature:Rr(_,2).getBytes()},E=xe.util.createBuffer();E.putBuffer(u.session.md5.digest()),E.putBuffer(u.session.sha1.digest()),E=E.getBytes();try{var M=u.session.clientCertificate;if(!M.publicKey.verify(E,I.signature,"NONE"))throw new Error("CertificateVerify signature does not match.");u.session.md5.update(x),u.session.sha1.update(x)}catch{return u.error(u,{message:"Bad signature in CertificateVerify.",send:!0,alert:{level:G.Alert.Level.fatal,description:G.Alert.Description.handshake_failure}})}u.expect=Gh,u.process()};G.handleServerHelloDone=function(u,f,d){if(d>0)return u.error(u,{message:"Invalid ServerHelloDone message. Invalid length.",send:!0,alert:{level:G.Alert.Level.fatal,description:G.Alert.Description.record_overflow}});if(u.serverCertificate===null){var _={message:"No server certificate provided. Not enough security.",send:!0,alert:{level:G.Alert.Level.fatal,description:G.Alert.Description.insufficient_security}},x=0,I=u.verify(u,_.alert.description,x,[]);if(I!==!0)return(I||I===0)&&(typeof I=="object"&&!xe.util.isArray(I)?(I.message&&(_.message=I.message),I.alert&&(_.alert.description=I.alert)):typeof I=="number"&&(_.alert.description=I)),u.error(u,_)}u.session.certificateRequest!==null&&(f=G.createRecord(u,{type:G.ContentType.handshake,data:G.createCertificate(u)}),G.queue(u,f)),f=G.createRecord(u,{type:G.ContentType.handshake,data:G.createClientKeyExchange(u)}),G.queue(u,f),u.expect=kI;var E=function(M,S){M.session.certificateRequest!==null&&M.session.clientCertificate!==null&&G.queue(M,G.createRecord(M,{type:G.ContentType.handshake,data:G.createCertificateVerify(M,S)})),G.queue(M,G.createRecord(M,{type:G.ContentType.change_cipher_spec,data:G.createChangeCipherSpec()})),M.state.pending=G.createConnectionState(M),M.state.current.write=M.state.pending.write,G.queue(M,G.createRecord(M,{type:G.ContentType.handshake,data:G.createFinished(M)})),M.expect=V2,G.flush(M),M.process()};if(u.session.certificateRequest===null||u.session.clientCertificate===null)return E(u,null);G.getClientSignature(u,E)};G.handleChangeCipherSpec=function(u,f){if(f.fragment.getByte()!==1)return u.error(u,{message:"Invalid ChangeCipherSpec message received.",send:!0,alert:{level:G.Alert.Level.fatal,description:G.Alert.Description.illegal_parameter}});var d=u.entity===G.ConnectionEnd.client;(u.session.resuming&&d||!u.session.resuming&&!d)&&(u.state.pending=G.createConnectionState(u)),u.state.current.read=u.state.pending.read,(!u.session.resuming&&d||u.session.resuming&&!d)&&(u.state.pending=null),u.expect=d?PI:VI,u.process()};G.handleFinished=function(u,f,d){var _=f.fragment;_.read-=4;var x=_.bytes();_.read+=4;var I=f.fragment.getBytes();_=xe.util.createBuffer(),_.putBuffer(u.session.md5.digest()),_.putBuffer(u.session.sha1.digest());var E=u.entity===G.ConnectionEnd.client,M=E?"server finished":"client finished",S=u.session.sp,A=12,T=Kf;if(_=T(S.master_secret,M,_.getBytes(),A),_.getBytes()!==I)return u.error(u,{message:"Invalid verify_data in Finished message.",send:!0,alert:{level:G.Alert.Level.fatal,description:G.Alert.Description.decrypt_error}});u.session.md5.update(x),u.session.sha1.update(x),(u.session.resuming&&E||!u.session.resuming&&!E)&&(G.queue(u,G.createRecord(u,{type:G.ContentType.change_cipher_spec,data:G.createChangeCipherSpec()})),u.state.current.write=u.state.pending.write,u.state.pending=null,G.queue(u,G.createRecord(u,{type:G.ContentType.handshake,data:G.createFinished(u)}))),u.expect=E?LI:KI,u.handshaking=!1,++u.handshakes,u.peerCertificate=E?u.session.serverCertificate:u.session.clientCertificate,G.flush(u),u.isConnected=!0,u.connected(u),u.process()};G.handleAlert=function(u,f){var d=f.fragment,_={level:d.getByte(),description:d.getByte()},x;switch(_.description){case G.Alert.Description.close_notify:x="Connection closed.";break;case G.Alert.Description.unexpected_message:x="Unexpected message.";break;case G.Alert.Description.bad_record_mac:x="Bad record MAC.";break;case G.Alert.Description.decryption_failed:x="Decryption failed.";break;case G.Alert.Description.record_overflow:x="Record overflow.";break;case G.Alert.Description.decompression_failure:x="Decompression failed.";break;case G.Alert.Description.handshake_failure:x="Handshake failure.";break;case G.Alert.Description.bad_certificate:x="Bad certificate.";break;case G.Alert.Description.unsupported_certificate:x="Unsupported certificate.";break;case G.Alert.Description.certificate_revoked:x="Certificate revoked.";break;case G.Alert.Description.certificate_expired:x="Certificate expired.";break;case G.Alert.Description.certificate_unknown:x="Certificate unknown.";break;case G.Alert.Description.illegal_parameter:x="Illegal parameter.";break;case G.Alert.Description.unknown_ca:x="Unknown certificate authority.";break;case G.Alert.Description.access_denied:x="Access denied.";break;case G.Alert.Description.decode_error:x="Decode error.";break;case G.Alert.Description.decrypt_error:x="Decrypt error.";break;case G.Alert.Description.export_restriction:x="Export restriction.";break;case G.Alert.Description.protocol_version:x="Unsupported protocol version.";break;case G.Alert.Description.insufficient_security:x="Insufficient security.";break;case G.Alert.Description.internal_error:x="Internal error.";break;case G.Alert.Description.user_canceled:x="User canceled.";break;case G.Alert.Description.no_renegotiation:x="Renegotiation not supported.";break;default:x="Unknown error.";break}if(_.description===G.Alert.Description.close_notify)return u.close();u.error(u,{message:x,send:!1,origin:u.entity===G.ConnectionEnd.client?"server":"client",alert:_}),u.process()};G.handleHandshake=function(u,f){var d=f.fragment,_=d.getByte(),x=d.getInt24();if(x>d.length())return u.fragmented=f,f.fragment=xe.util.createBuffer(),d.read-=4,u.process();u.fragmented=null,d.read-=4;var I=d.bytes(x+4);d.read+=4,_ in Vs[u.entity][u.expect]?(u.entity===G.ConnectionEnd.server&&!u.open&&!u.fail&&(u.handshaking=!0,u.session={version:null,extensions:{server_name:{serverNameList:[]}},cipherSuite:null,compressionMethod:null,serverCertificate:null,clientCertificate:null,md5:xe.md.md5.create(),sha1:xe.md.sha1.create()}),_!==G.HandshakeType.hello_request&&_!==G.HandshakeType.certificate_verify&&_!==G.HandshakeType.finished&&(u.session.md5.update(I),u.session.sha1.update(I)),Vs[u.entity][u.expect][_](u,f,x)):G.handleUnexpected(u,f)};G.handleApplicationData=function(u,f){u.data.putBuffer(f.fragment),u.dataReady(u),u.process()};G.handleHeartbeat=function(u,f){var d=f.fragment,_=d.getByte(),x=d.getInt16(),I=d.getBytes(x);if(_===G.HeartbeatMessageType.heartbeat_request){if(u.handshaking||x>I.length)return u.process();G.queue(u,G.createRecord(u,{type:G.ContentType.heartbeat,data:G.createHeartbeat(G.HeartbeatMessageType.heartbeat_response,I)})),G.flush(u)}else if(_===G.HeartbeatMessageType.heartbeat_response){if(I!==u.expectedHeartbeatPayload)return u.process();u.heartbeatReceived&&u.heartbeatReceived(u,xe.util.createBuffer(I))}u.process()};var RI=0,NI=1,jp=2,DI=3,OI=4,V2=5,PI=6,LI=7,kI=8,UI=0,FI=1,Cc=2,qI=3,Gh=4,VI=5,KI=6,K=G.handleUnexpected,K2=G.handleChangeCipherSpec,nr=G.handleAlert,mr$1=G.handleHandshake,$2=G.handleApplicationData,ar=G.handleHeartbeat,zh=[];zh[G.ConnectionEnd.client]=[[K,nr,mr$1,K,ar],[K,nr,mr$1,K,ar],[K,nr,mr$1,K,ar],[K,nr,mr$1,K,ar],[K,nr,mr$1,K,ar],[K2,nr,K,K,ar],[K,nr,mr$1,K,ar],[K,nr,mr$1,$2,ar],[K,nr,mr$1,K,ar]];zh[G.ConnectionEnd.server]=[[K,nr,mr$1,K,ar],[K,nr,mr$1,K,ar],[K,nr,mr$1,K,ar],[K,nr,mr$1,K,ar],[K2,nr,K,K,ar],[K,nr,mr$1,K,ar],[K,nr,mr$1,$2,ar],[K,nr,mr$1,K,ar]];var dn=G.handleHelloRequest,$I=G.handleServerHello,H2=G.handleCertificate,Wp=G.handleServerKeyExchange,qu=G.handleCertificateRequest,ss=G.handleServerHelloDone,G2=G.handleFinished,Vs=[];Vs[G.ConnectionEnd.client]=[[K,K,$I,K,K,K,K,K,K,K,K,K,K,K,K,K,K,K,K,K,K],[dn,K,K,K,K,K,K,K,K,K,K,H2,Wp,qu,ss,K,K,K,K,K,K],[dn,K,K,K,K,K,K,K,K,K,K,K,Wp,qu,ss,K,K,K,K,K,K],[dn,K,K,K,K,K,K,K,K,K,K,K,K,qu,ss,K,K,K,K,K,K],[dn,K,K,K,K,K,K,K,K,K,K,K,K,K,ss,K,K,K,K,K,K],[dn,K,K,K,K,K,K,K,K,K,K,K,K,K,K,K,K,K,K,K,K],[dn,K,K,K,K,K,K,K,K,K,K,K,K,K,K,K,K,K,K,K,G2],[dn,K,K,K,K,K,K,K,K,K,K,K,K,K,K,K,K,K,K,K,K],[dn,K,K,K,K,K,K,K,K,K,K,K,K,K,K,K,K,K,K,K,K]];var HI=G.handleClientHello,GI=G.handleClientKeyExchange,zI=G.handleCertificateVerify;Vs[G.ConnectionEnd.server]=[[K,HI,K,K,K,K,K,K,K,K,K,K,K,K,K,K,K,K,K,K,K],[K,K,K,K,K,K,K,K,K,K,K,H2,K,K,K,K,K,K,K,K,K],[K,K,K,K,K,K,K,K,K,K,K,K,K,K,K,K,GI,K,K,K,K],[K,K,K,K,K,K,K,K,K,K,K,K,K,K,K,zI,K,K,K,K,K],[K,K,K,K,K,K,K,K,K,K,K,K,K,K,K,K,K,K,K,K,K],[K,K,K,K,K,K,K,K,K,K,K,K,K,K,K,K,K,K,K,K,G2],[K,K,K,K,K,K,K,K,K,K,K,K,K,K,K,K,K,K,K,K,K],[K,K,K,K,K,K,K,K,K,K,K,K,K,K,K,K,K,K,K,K,K]];G.generateKeys=function(u,f){var d=Kf,_=f.client_random+f.server_random;u.session.resuming||(f.master_secret=d(f.pre_master_secret,"master secret",_,48).bytes(),f.pre_master_secret=null),_=f.server_random+f.client_random;var x=2*f.mac_key_length+2*f.enc_key_length,I=u.version.major===G.Versions.TLS_1_0.major&&u.version.minor===G.Versions.TLS_1_0.minor;I&&(x+=2*f.fixed_iv_length);var E=d(f.master_secret,"key expansion",_,x),M={client_write_MAC_key:E.getBytes(f.mac_key_length),server_write_MAC_key:E.getBytes(f.mac_key_length),client_write_key:E.getBytes(f.enc_key_length),server_write_key:E.getBytes(f.enc_key_length)};return I&&(M.client_write_IV=E.getBytes(f.fixed_iv_length),M.server_write_IV=E.getBytes(f.fixed_iv_length)),M};G.createConnectionState=function(u){var f=u.entity===G.ConnectionEnd.client,d=function(){var I={sequenceNumber:[0,0],macKey:null,macLength:0,macFunction:null,cipherState:null,cipherFunction:function(E){return!0},compressionState:null,compressFunction:function(E){return!0},updateSequenceNumber:function(){I.sequenceNumber[1]===4294967295?(I.sequenceNumber[1]=0,++I.sequenceNumber[0]):++I.sequenceNumber[1]}};return I},_={read:d(),write:d()};if(_.read.update=function(I,E){return _.read.cipherFunction(E,_.read)?_.read.compressFunction(I,E,_.read)||I.error(I,{message:"Could not decompress record.",send:!0,alert:{level:G.Alert.Level.fatal,description:G.Alert.Description.decompression_failure}}):I.error(I,{message:"Could not decrypt record or bad MAC.",send:!0,alert:{level:G.Alert.Level.fatal,description:G.Alert.Description.bad_record_mac}}),!I.fail},_.write.update=function(I,E){return _.write.compressFunction(I,E,_.write)?_.write.cipherFunction(E,_.write)||I.error(I,{message:"Could not encrypt record.",send:!1,alert:{level:G.Alert.Level.fatal,description:G.Alert.Description.internal_error}}):I.error(I,{message:"Could not compress record.",send:!1,alert:{level:G.Alert.Level.fatal,description:G.Alert.Description.internal_error}}),!I.fail},u.session){var x=u.session.sp;switch(u.session.cipherSuite.initSecurityParameters(x),x.keys=G.generateKeys(u,x),_.read.macKey=f?x.keys.server_write_MAC_key:x.keys.client_write_MAC_key,_.write.macKey=f?x.keys.client_write_MAC_key:x.keys.server_write_MAC_key,u.session.cipherSuite.initConnectionState(_,u,x),x.compression_algorithm){case G.CompressionMethod.none:break;case G.CompressionMethod.deflate:_.read.compressFunction=MI,_.write.compressFunction=TI;break;default:throw new Error("Unsupported compression algorithm.")}}return _};G.createRandom=function(){var u=new Date,f=+u+u.getTimezoneOffset()*6e4,d=xe.util.createBuffer();return d.putInt32(f),d.putBytes(xe.random.getBytes(28)),d};G.createRecord=function(u,f){if(!f.data)return null;var d={type:f.type,version:{major:u.version.major,minor:u.version.minor},length:f.data.length(),fragment:f.data};return d};G.createAlert=function(u,f){var d=xe.util.createBuffer();return d.putByte(f.level),d.putByte(f.description),G.createRecord(u,{type:G.ContentType.alert,data:d})};G.createClientHello=function(u){u.session.clientHelloVersion={major:u.version.major,minor:u.version.minor};for(var f=xe.util.createBuffer(),d=0;d<u.cipherSuites.length;++d){var _=u.cipherSuites[d];f.putByte(_.id[0]),f.putByte(_.id[1])}var x=f.length(),I=xe.util.createBuffer();I.putByte(G.CompressionMethod.none);var E=I.length(),M=xe.util.createBuffer();if(u.virtualHost){var S=xe.util.createBuffer();S.putByte(0),S.putByte(0);var A=xe.util.createBuffer();A.putByte(0),Fr(A,2,xe.util.createBuffer(u.virtualHost));var T=xe.util.createBuffer();Fr(T,2,A),Fr(S,2,T),M.putBuffer(S)}var D=M.length();D>0&&(D+=2);var O=u.session.id,j=O.length+1+2+4+28+2+x+1+E+D,$=xe.util.createBuffer();return $.putByte(G.HandshakeType.client_hello),$.putInt24(j),$.putByte(u.version.major),$.putByte(u.version.minor),$.putBytes(u.session.sp.client_random),Fr($,1,xe.util.createBuffer(O)),Fr($,2,f),Fr($,1,I),D>0&&Fr($,2,M),$};G.createServerHello=function(u){var f=u.session.id,d=f.length+1+2+4+28+2+1,_=xe.util.createBuffer();return _.putByte(G.HandshakeType.server_hello),_.putInt24(d),_.putByte(u.version.major),_.putByte(u.version.minor),_.putBytes(u.session.sp.server_random),Fr(_,1,xe.util.createBuffer(f)),_.putByte(u.session.cipherSuite.id[0]),_.putByte(u.session.cipherSuite.id[1]),_.putByte(u.session.compressionMethod),_};G.createCertificate=function(u){var f=u.entity===G.ConnectionEnd.client,d=null;if(u.getCertificate){var _;f?_=u.session.certificateRequest:_=u.session.extensions.server_name.serverNameList,d=u.getCertificate(u,_)}var x=xe.util.createBuffer();if(d!==null)try{xe.util.isArray(d)||(d=[d]);for(var I=null,E=0;E<d.length;++E){var M=xe.pem.decode(d[E])[0];if(M.type!=="CERTIFICATE"&&M.type!=="X509 CERTIFICATE"&&M.type!=="TRUSTED CERTIFICATE"){var S=new Error('Could not convert certificate from PEM; PEM header type is not "CERTIFICATE", "X509 CERTIFICATE", or "TRUSTED CERTIFICATE".');throw S.headerType=M.type,S}if(M.procType&&M.procType.type==="ENCRYPTED")throw new Error("Could not convert certificate from PEM; PEM is encrypted.");var A=xe.util.createBuffer(M.body);I===null&&(I=xe.asn1.fromDer(A.bytes(),!1));var T=xe.util.createBuffer();Fr(T,3,A),x.putBuffer(T)}d=xe.pki.certificateFromAsn1(I),f?u.session.clientCertificate=d:u.session.serverCertificate=d}catch(j){return u.error(u,{message:"Could not send certificate list.",cause:j,send:!0,alert:{level:G.Alert.Level.fatal,description:G.Alert.Description.bad_certificate}})}var D=3+x.length(),O=xe.util.createBuffer();return O.putByte(G.HandshakeType.certificate),O.putInt24(D),Fr(O,3,x),O};G.createClientKeyExchange=function(u){var f=xe.util.createBuffer();f.putByte(u.session.clientHelloVersion.major),f.putByte(u.session.clientHelloVersion.minor),f.putBytes(xe.random.getBytes(46));var d=u.session.sp;d.pre_master_secret=f.getBytes();var _=u.session.serverCertificate.publicKey;f=_.encrypt(d.pre_master_secret);var x=f.length+2,I=xe.util.createBuffer();return I.putByte(G.HandshakeType.client_key_exchange),I.putInt24(x),I.putInt16(f.length),I.putBytes(f),I};G.createServerKeyExchange=function(u){var f=xe.util.createBuffer();return f};G.getClientSignature=function(u,f){var d=xe.util.createBuffer();d.putBuffer(u.session.md5.digest()),d.putBuffer(u.session.sha1.digest()),d=d.getBytes(),u.getSignature=u.getSignature||function(_,x,I){var E=null;if(_.getPrivateKey)try{E=_.getPrivateKey(_,_.session.clientCertificate),E=xe.pki.privateKeyFromPem(E)}catch(M){_.error(_,{message:"Could not get private key.",cause:M,send:!0,alert:{level:G.Alert.Level.fatal,description:G.Alert.Description.internal_error}})}E===null?_.error(_,{message:"No private key set.",send:!0,alert:{level:G.Alert.Level.fatal,description:G.Alert.Description.internal_error}}):x=E.sign(x,null),I(_,x)},u.getSignature(u,d,f)};G.createCertificateVerify=function(u,f){var d=f.length+2,_=xe.util.createBuffer();return _.putByte(G.HandshakeType.certificate_verify),_.putInt24(d),_.putInt16(f.length),_.putBytes(f),_};G.createCertificateRequest=function(u){var f=xe.util.createBuffer();f.putByte(1);var d=xe.util.createBuffer();for(var _ in u.caStore.certs){var x=u.caStore.certs[_],I=xe.pki.distinguishedNameToAsn1(x.subject),E=xe.asn1.toDer(I);d.putInt16(E.length()),d.putBuffer(E)}var M=1+f.length()+2+d.length(),S=xe.util.createBuffer();return S.putByte(G.HandshakeType.certificate_request),S.putInt24(M),Fr(S,1,f),Fr(S,2,d),S};G.createServerHelloDone=function(u){var f=xe.util.createBuffer();return f.putByte(G.HandshakeType.server_hello_done),f.putInt24(0),f};G.createChangeCipherSpec=function(){var u=xe.util.createBuffer();return u.putByte(1),u};G.createFinished=function(u){var f=xe.util.createBuffer();f.putBuffer(u.session.md5.digest()),f.putBuffer(u.session.sha1.digest());var d=u.entity===G.ConnectionEnd.client,_=u.session.sp,x=12,I=Kf,E=d?"client finished":"server finished";f=I(_.master_secret,E,f.getBytes(),x);var M=xe.util.createBuffer();return M.putByte(G.HandshakeType.finished),M.putInt24(f.length()),M.putBuffer(f),M};G.createHeartbeat=function(u,f,d){typeof d>"u"&&(d=f.length);var _=xe.util.createBuffer();_.putByte(u),_.putInt16(d),_.putBytes(f);var x=_.length(),I=Math.max(16,x-d-3);return _.putBytes(xe.random.getBytes(I)),_};G.queue=function(u,f){if(f&&!(f.fragment.length()===0&&(f.type===G.ContentType.handshake||f.type===G.ContentType.alert||f.type===G.ContentType.change_cipher_spec))){if(f.type===G.ContentType.handshake){var d=f.fragment.bytes();u.session.md5.update(d),u.session.sha1.update(d),d=null}var _;if(f.fragment.length()<=G.MaxFragment)_=[f];else{_=[];for(var x=f.fragment.bytes();x.length>G.MaxFragment;)_.push(G.createRecord(u,{type:f.type,data:xe.util.createBuffer(x.slice(0,G.MaxFragment))})),x=x.slice(G.MaxFragment);x.length>0&&_.push(G.createRecord(u,{type:f.type,data:xe.util.createBuffer(x)}))}for(var I=0;I<_.length&&!u.fail;++I){var E=_[I],M=u.state.current.write;M.update(u,E)&&u.records.push(E)}}};G.flush=function(u){for(var f=0;f<u.records.length;++f){var d=u.records[f];u.tlsData.putByte(d.type),u.tlsData.putByte(d.version.major),u.tlsData.putByte(d.version.minor),u.tlsData.putInt16(d.fragment.length()),u.tlsData.putBuffer(u.records[f].fragment)}return u.records=[],u.tlsDataReady(u)};var Vu=function(u){switch(u){case!0:return!0;case xe.pki.certificateError.bad_certificate:return G.Alert.Description.bad_certificate;case xe.pki.certificateError.unsupported_certificate:return G.Alert.Description.unsupported_certificate;case xe.pki.certificateError.certificate_revoked:return G.Alert.Description.certificate_revoked;case xe.pki.certificateError.certificate_expired:return G.Alert.Description.certificate_expired;case xe.pki.certificateError.certificate_unknown:return G.Alert.Description.certificate_unknown;case xe.pki.certificateError.unknown_ca:return G.Alert.Description.unknown_ca;default:return G.Alert.Description.bad_certificate}},jI=function(u){switch(u){case!0:return!0;case G.Alert.Description.bad_certificate:return xe.pki.certificateError.bad_certificate;case G.Alert.Description.unsupported_certificate:return xe.pki.certificateError.unsupported_certificate;case G.Alert.Description.certificate_revoked:return xe.pki.certificateError.certificate_revoked;case G.Alert.Description.certificate_expired:return xe.pki.certificateError.certificate_expired;case G.Alert.Description.certificate_unknown:return xe.pki.certificateError.certificate_unknown;case G.Alert.Description.unknown_ca:return xe.pki.certificateError.unknown_ca;default:return xe.pki.certificateError.bad_certificate}};G.verifyCertificateChain=function(u,f){try{var d={};for(var _ in u.verifyOptions)d[_]=u.verifyOptions[_];d.verify=function(I,E,M){var S=Vu(I),A=u.verify(u,I,E,M);if(A!==!0){if(typeof A=="object"&&!xe.util.isArray(A)){var T=new Error("The application rejected the certificate.");throw T.send=!0,T.alert={level:G.Alert.Level.fatal,description:G.Alert.Description.bad_certificate},A.message&&(T.message=A.message),A.alert&&(T.alert.description=A.alert),T}A!==I&&(A=jI(A))}return A},xe.pki.verifyCertificateChain(u.caStore,f,d)}catch(I){var x=I;(typeof x!="object"||xe.util.isArray(x))&&(x={send:!0,alert:{level:G.Alert.Level.fatal,description:Vu(I)}}),"send"in x||(x.send=!0),"alert"in x||(x.alert={level:G.Alert.Level.fatal,description:Vu(x.error)}),u.error(u,x)}return!u.fail};G.createSessionCache=function(u,f){var d=null;if(u&&u.getSession&&u.setSession&&u.order)d=u;else{d={},d.cache=u||{},d.capacity=Math.max(f||100,1),d.order=[];for(var _ in u)d.order.length<=f?d.order.push(_):delete u[_];d.getSession=function(x){var I=null,E=null;if(x?E=xe.util.bytesToHex(x):d.order.length>0&&(E=d.order[0]),E!==null&&E in d.cache){I=d.cache[E],delete d.cache[E];for(var M in d.order)if(d.order[M]===E){d.order.splice(M,1);break}}return I},d.setSession=function(x,I){if(d.order.length===d.capacity){var E=d.order.shift();delete d.cache[E]}var E=xe.util.bytesToHex(x);d.order.push(E),d.cache[E]=I}}return d};G.createConnection=function(u){var f=null;u.caStore?xe.util.isArray(u.caStore)?f=xe.pki.createCaStore(u.caStore):f=u.caStore:f=xe.pki.createCaStore();var d=u.cipherSuites||null;if(d===null){d=[];for(var _ in G.CipherSuites)d.push(G.CipherSuites[_])}var x=u.server?G.ConnectionEnd.server:G.ConnectionEnd.client,I=u.sessionCache?G.createSessionCache(u.sessionCache):null,E={version:{major:G.Version.major,minor:G.Version.minor},entity:x,sessionId:u.sessionId,caStore:f,sessionCache:I,cipherSuites:d,connected:u.connected,virtualHost:u.virtualHost||null,verifyClient:u.verifyClient||!1,verify:u.verify||function(T,D,O,j){return D},verifyOptions:u.verifyOptions||{},getCertificate:u.getCertificate||null,getPrivateKey:u.getPrivateKey||null,getSignature:u.getSignature||null,input:xe.util.createBuffer(),tlsData:xe.util.createBuffer(),data:xe.util.createBuffer(),tlsDataReady:u.tlsDataReady,dataReady:u.dataReady,heartbeatReceived:u.heartbeatReceived,closed:u.closed,error:function(T,D){D.origin=D.origin||(T.entity===G.ConnectionEnd.client?"client":"server"),D.send&&(G.queue(T,G.createAlert(T,D.alert)),G.flush(T));var O=D.fatal!==!1;O&&(T.fail=!0),u.error(T,D),O&&T.close(!1)},deflate:u.deflate||null,inflate:u.inflate||null};E.reset=function(T){E.version={major:G.Version.major,minor:G.Version.minor},E.record=null,E.session=null,E.peerCertificate=null,E.state={pending:null,current:null},E.expect=E.entity===G.ConnectionEnd.client?RI:UI,E.fragmented=null,E.records=[],E.open=!1,E.handshakes=0,E.handshaking=!1,E.isConnected=!1,E.fail=!(T||typeof T>"u"),E.input.clear(),E.tlsData.clear(),E.data.clear(),E.state.current=G.createConnectionState(E)},E.reset();var M=function(T,D){var O=D.type-G.ContentType.change_cipher_spec,j=zh[T.entity][T.expect];O in j?j[O](T,D):G.handleUnexpected(T,D)},S=function(T){var D=0,O=T.input,j=O.length();if(j<5)D=5-j;else{T.record={type:O.getByte(),version:{major:O.getByte(),minor:O.getByte()},length:O.getInt16(),fragment:xe.util.createBuffer(),ready:!1};var $=T.record.version.major===T.version.major;$&&T.session&&T.session.version&&($=T.record.version.minor===T.version.minor),$||T.error(T,{message:"Incompatible TLS version.",send:!0,alert:{level:G.Alert.Level.fatal,description:G.Alert.Description.protocol_version}})}return D},A=function(T){var D=0,O=T.input,j=O.length();if(j<T.record.length)D=T.record.length-j;else{T.record.fragment.putBytes(O.getBytes(T.record.length)),O.compact();var $=T.state.current.read;$.update(T,T.record)&&(T.fragmented!==null&&(T.fragmented.type===T.record.type?(T.fragmented.fragment.putBuffer(T.record.fragment),T.record=T.fragmented):T.error(T,{message:"Invalid fragmented record.",send:!0,alert:{level:G.Alert.Level.fatal,description:G.Alert.Description.unexpected_message}})),T.record.ready=!0)}return D};return E.handshake=function(T){if(E.entity!==G.ConnectionEnd.client)E.error(E,{message:"Cannot initiate handshake as a server.",fatal:!1});else if(E.handshaking)E.error(E,{message:"Handshake already in progress.",fatal:!1});else{E.fail&&!E.open&&E.handshakes===0&&(E.fail=!1),E.handshaking=!0,T=T||"";var D=null;T.length>0&&(E.sessionCache&&(D=E.sessionCache.getSession(T)),D===null&&(T="")),T.length===0&&E.sessionCache&&(D=E.sessionCache.getSession(),D!==null&&(T=D.id)),E.session={id:T,version:null,cipherSuite:null,compressionMethod:null,serverCertificate:null,certificateRequest:null,clientCertificate:null,sp:{},md5:xe.md.md5.create(),sha1:xe.md.sha1.create()},D&&(E.version=D.version,E.session.sp=D.sp),E.session.sp.client_random=G.createRandom().getBytes(),E.open=!0,G.queue(E,G.createRecord(E,{type:G.ContentType.handshake,data:G.createClientHello(E)})),G.flush(E)}},E.process=function(T){var D=0;return T&&E.input.putBytes(T),E.fail||(E.record!==null&&E.record.ready&&E.record.fragment.isEmpty()&&(E.record=null),E.record===null&&(D=S(E)),!E.fail&&E.record!==null&&!E.record.ready&&(D=A(E)),!E.fail&&E.record!==null&&E.record.ready&&M(E,E.record)),D},E.prepare=function(T){return G.queue(E,G.createRecord(E,{type:G.ContentType.application_data,data:xe.util.createBuffer(T)})),G.flush(E)},E.prepareHeartbeatRequest=function(T,D){return T instanceof xe.util.ByteBuffer&&(T=T.bytes()),typeof D>"u"&&(D=T.length),E.expectedHeartbeatPayload=T,G.queue(E,G.createRecord(E,{type:G.ContentType.heartbeat,data:G.createHeartbeat(G.HeartbeatMessageType.heartbeat_request,T,D)})),G.flush(E)},E.close=function(T){if(!E.fail&&E.sessionCache&&E.session){var D={id:E.session.id,version:E.session.version,sp:E.session.sp};D.sp.keys=null,E.sessionCache.setSession(D.id,D)}E.open&&(E.open=!1,E.input.clear(),(E.isConnected||E.handshaking)&&(E.isConnected=E.handshaking=!1,G.queue(E,G.createAlert(E,{level:G.Alert.Level.warning,description:G.Alert.Description.close_notify})),G.flush(E)),E.closed(E)),E.reset(T)},E};xe.tls=xe.tls||{};for(var Ku in G)typeof G[Ku]!="function"&&(xe.tls[Ku]=G[Ku]);xe.tls.prf_tls1=Kf;xe.tls.hmac_sha1=II;xe.tls.createSessionCache=G.createSessionCache;xe.tls.createConnection=G.createConnection;var Sn=ht,zr=Sn.tls;zr.CipherSuites.TLS_RSA_WITH_AES_128_CBC_SHA={id:[0,47],name:"TLS_RSA_WITH_AES_128_CBC_SHA",initSecurityParameters:function(u){u.bulk_cipher_algorithm=zr.BulkCipherAlgorithm.aes,u.cipher_type=zr.CipherType.block,u.enc_key_length=16,u.block_length=16,u.fixed_iv_length=16,u.record_iv_length=16,u.mac_algorithm=zr.MACAlgorithm.hmac_sha1,u.mac_length=20,u.mac_key_length=20},initConnectionState:z2};zr.CipherSuites.TLS_RSA_WITH_AES_256_CBC_SHA={id:[0,53],name:"TLS_RSA_WITH_AES_256_CBC_SHA",initSecurityParameters:function(u){u.bulk_cipher_algorithm=zr.BulkCipherAlgorithm.aes,u.cipher_type=zr.CipherType.block,u.enc_key_length=32,u.block_length=16,u.fixed_iv_length=16,u.record_iv_length=16,u.mac_algorithm=zr.MACAlgorithm.hmac_sha1,u.mac_length=20,u.mac_key_length=20},initConnectionState:z2};function z2(u,f,d){var _=f.entity===Sn.tls.ConnectionEnd.client;u.read.cipherState={init:!1,cipher:Sn.cipher.createDecipher("AES-CBC",_?d.keys.server_write_key:d.keys.client_write_key),iv:_?d.keys.server_write_IV:d.keys.client_write_IV},u.write.cipherState={init:!1,cipher:Sn.cipher.createCipher("AES-CBC",_?d.keys.client_write_key:d.keys.server_write_key),iv:_?d.keys.client_write_IV:d.keys.server_write_IV},u.read.cipherFunction=QI,u.write.cipherFunction=WI,u.read.macLength=u.write.macLength=d.mac_length,u.read.macFunction=u.write.macFunction=zr.hmac_sha1}function WI(u,f){var d=!1,_=f.macFunction(f.macKey,f.sequenceNumber,u);u.fragment.putBytes(_),f.updateSequenceNumber();var x;u.version.minor===zr.Versions.TLS_1_0.minor?x=f.cipherState.init?null:f.cipherState.iv:x=Sn.random.getBytesSync(16),f.cipherState.init=!0;var I=f.cipherState.cipher;return I.start({iv:x}),u.version.minor>=zr.Versions.TLS_1_1.minor&&I.output.putBytes(x),I.update(u.fragment),I.finish(YI)&&(u.fragment=I.output,u.length=u.fragment.length(),d=!0),d}function YI(u,f,d){if(!d){var _=u-f.length()%u;f.fillWithByte(_-1,_)}return!0}function XI(u,f,d){var _=!0;if(d){for(var x=f.length(),I=f.last(),E=x-1-I;E<x-1;++E)_=_&&f.at(E)==I;_&&f.truncate(I+1)}return _}function QI(u,f){var d=!1,_;u.version.minor===zr.Versions.TLS_1_0.minor?_=f.cipherState.init?null:f.cipherState.iv:_=u.fragment.getBytes(16),f.cipherState.init=!0;var x=f.cipherState.cipher;x.start({iv:_}),x.update(u.fragment),d=x.finish(XI);var I=f.macLength,E=Sn.random.getBytesSync(I),M=x.output.length();M>=I?(u.fragment=x.output.getBytes(M-I),E=x.output.getBytes(I)):u.fragment=x.output.getBytes(),u.fragment=Sn.util.createBuffer(u.fragment),u.length=u.fragment.length();var S=f.macFunction(f.macKey,f.sequenceNumber,u);return f.updateSequenceNumber(),d=ZI(f.macKey,E,S)&&d,d}function ZI(u,f,d){var _=Sn.hmac.create();return _.start("SHA1",u),_.update(f),f=_.digest().getBytes(),_.start(null,null),_.update(d),d=_.digest().getBytes(),f===d}var Ft=ht,Y0=Ft.sha512=Ft.sha512||{};Ft.md.sha512=Ft.md.algorithms.sha512=Y0;var j2=Ft.sha384=Ft.sha512.sha384=Ft.sha512.sha384||{};j2.create=function(){return Y0.create("SHA-384")};Ft.md.sha384=Ft.md.algorithms.sha384=j2;Ft.sha512.sha256=Ft.sha512.sha256||{create:function(){return Y0.create("SHA-512/256")}};Ft.md["sha512/256"]=Ft.md.algorithms["sha512/256"]=Ft.sha512.sha256;Ft.sha512.sha224=Ft.sha512.sha224||{create:function(){return Y0.create("SHA-512/224")}};Ft.md["sha512/224"]=Ft.md.algorithms["sha512/224"]=Ft.sha512.sha224;Y0.create=function(u){if(W2||JI(),typeof u>"u"&&(u="SHA-512"),!(u in Kn))throw new Error("Invalid SHA-512 algorithm: "+u);for(var f=Kn[u],d=null,_=Ft.util.createBuffer(),x=new Array(80),I=0;I<80;++I)x[I]=new Array(2);var E=64;switch(u){case"SHA-384":E=48;break;case"SHA-512/256":E=32;break;case"SHA-512/224":E=28;break}var M={algorithm:u.replace("-","").toLowerCase(),blockLength:128,digestLength:E,messageLength:0,fullMessageLength:null,messageLengthSize:16};return M.start=function(){M.messageLength=0,M.fullMessageLength=M.messageLength128=[];for(var S=M.messageLengthSize/4,A=0;A<S;++A)M.fullMessageLength.push(0);_=Ft.util.createBuffer(),d=new Array(f.length);for(var A=0;A<f.length;++A)d[A]=f[A].slice(0);return M},M.start(),M.update=function(S,A){A==="utf8"&&(S=Ft.util.encodeUtf8(S));var T=S.length;M.messageLength+=T,T=[T/4294967296>>>0,T>>>0];for(var D=M.fullMessageLength.length-1;D>=0;--D)M.fullMessageLength[D]+=T[1],T[1]=T[0]+(M.fullMessageLength[D]/4294967296>>>0),M.fullMessageLength[D]=M.fullMessageLength[D]>>>0,T[0]=T[1]/4294967296>>>0;return _.putBytes(S),Yp(d,x,_),(_.read>2048||_.length()===0)&&_.compact(),M},M.digest=function(){var S=Ft.util.createBuffer();S.putBytes(_.bytes());var A=M.fullMessageLength[M.fullMessageLength.length-1]+M.messageLengthSize,T=A&M.blockLength-1;S.putBytes(Ac.substr(0,M.blockLength-T));for(var D,O,j=M.fullMessageLength[0]*8,$=0;$<M.fullMessageLength.length-1;++$)D=M.fullMessageLength[$+1]*8,O=D/4294967296>>>0,j+=O,S.putInt32(j>>>0),j=D>>>0;S.putInt32(j);for(var W=new Array(d.length),$=0;$<d.length;++$)W[$]=d[$].slice(0);Yp(W,x,S);var Q=Ft.util.createBuffer(),X;u==="SHA-512"?X=W.length:u==="SHA-384"?X=W.length-2:X=W.length-4;for(var $=0;$<X;++$)Q.putInt32(W[$][0]),($!==X-1||u!=="SHA-512/224")&&Q.putInt32(W[$][1]);return Q},M};var Ac=null,W2=!1,Bc=null,Kn=null;function JI(){Ac="",Ac+=Ft.util.fillString("\0",128),Bc=[[1116352408,3609767458],[1899447441,602891725],[3049323471,3964484399],[3921009573,2173295548],[961987163,4081628472],[1508970993,3053834265],[2453635748,2937671579],[2870763221,3664609560],[3624381080,2734883394],[310598401,1164996542],[607225278,1323610764],[1426881987,3590304994],[1925078388,4068182383],[2162078206,991336113],[2614888103,633803317],[3248222580,3479774868],[3835390401,2666613458],[4022224774,944711139],[264347078,2341262773],[604807628,2007800933],[770255983,1495990901],[1249150122,1856431235],[1555081692,3175218132],[1996064986,2198950837],[2554220882,3999719339],[2821834349,766784016],[2952996808,2566594879],[3210313671,3203337956],[3336571891,1034457026],[3584528711,2466948901],[113926993,3758326383],[338241895,168717936],[666307205,1188179964],[773529912,1546045734],[1294757372,1522805485],[1396182291,2643833823],[1695183700,2343527390],[1986661051,1014477480],[2177026350,1206759142],[2456956037,344077627],[2730485921,1290863460],[2820302411,3158454273],[3259730800,3505952657],[3345764771,106217008],[3516065817,3606008344],[3600352804,1432725776],[4094571909,1467031594],[275423344,851169720],[430227734,3100823752],[506948616,1363258195],[659060556,3750685593],[883997877,3785050280],[958139571,3318307427],[1322822218,3812723403],[1537002063,2003034995],[1747873779,3602036899],[1955562222,1575990012],[2024104815,1125592928],[2227730452,2716904306],[2361852424,442776044],[2428436474,593698344],[2756734187,3733110249],[3204031479,2999351573],[3329325298,3815920427],[3391569614,3928383900],[3515267271,566280711],[3940187606,3454069534],[4118630271,4000239992],[116418474,1914138554],[174292421,2731055270],[289380356,3203993006],[460393269,320620315],[685471733,587496836],[852142971,1086792851],[1017036298,365543100],[1126000580,2618297676],[1288033470,3409855158],[1501505948,4234509866],[1607167915,987167468],[1816402316,1246189591]],Kn={},Kn["SHA-512"]=[[1779033703,4089235720],[3144134277,2227873595],[1013904242,4271175723],[2773480762,1595750129],[1359893119,2917565137],[2600822924,725511199],[528734635,4215389547],[1541459225,327033209]],Kn["SHA-384"]=[[3418070365,3238371032],[1654270250,914150663],[2438529370,812702999],[355462360,4144912697],[1731405415,4290775857],[2394180231,1750603025],[3675008525,1694076839],[1203062813,3204075428]],Kn["SHA-512/256"]=[[573645204,4230739756],[2673172387,3360449730],[596883563,1867755857],[2520282905,1497426621],[2519219938,2827943907],[3193839141,1401305490],[721525244,746961066],[246885852,2177182882]],Kn["SHA-512/224"]=[[2352822216,424955298],[1944164710,2312950998],[502970286,855612546],[1738396948,1479516111],[258812777,2077511080],[2011393907,79989058],[1067287976,1780299464],[286451373,2446758561]],W2=!0}function Yp(u,f,d){for(var _,x,I,E,M,S,A,T,D,O,j,$,W,Q,X,Y,ie,oe,ge,be,ze,de,Ce,ke,le,re,P,k,B,z,ee,H,q,J,U,Z=d.length();Z>=128;){for(B=0;B<16;++B)f[B][0]=d.getInt32()>>>0,f[B][1]=d.getInt32()>>>0;for(;B<80;++B)H=f[B-2],z=H[0],ee=H[1],_=((z>>>19|ee<<13)^(ee>>>29|z<<3)^z>>>6)>>>0,x=((z<<13|ee>>>19)^(ee<<3|z>>>29)^(z<<26|ee>>>6))>>>0,J=f[B-15],z=J[0],ee=J[1],I=((z>>>1|ee<<31)^(z>>>8|ee<<24)^z>>>7)>>>0,E=((z<<31|ee>>>1)^(z<<24|ee>>>8)^(z<<25|ee>>>7))>>>0,q=f[B-7],U=f[B-16],ee=x+q[1]+E+U[1],f[B][0]=_+q[0]+I+U[0]+(ee/4294967296>>>0)>>>0,f[B][1]=ee>>>0;for(W=u[0][0],Q=u[0][1],X=u[1][0],Y=u[1][1],ie=u[2][0],oe=u[2][1],ge=u[3][0],be=u[3][1],ze=u[4][0],de=u[4][1],Ce=u[5][0],ke=u[5][1],le=u[6][0],re=u[6][1],P=u[7][0],k=u[7][1],B=0;B<80;++B)A=((ze>>>14|de<<18)^(ze>>>18|de<<14)^(de>>>9|ze<<23))>>>0,T=((ze<<18|de>>>14)^(ze<<14|de>>>18)^(de<<23|ze>>>9))>>>0,D=(le^ze&(Ce^le))>>>0,O=(re^de&(ke^re))>>>0,M=((W>>>28|Q<<4)^(Q>>>2|W<<30)^(Q>>>7|W<<25))>>>0,S=((W<<4|Q>>>28)^(Q<<30|W>>>2)^(Q<<25|W>>>7))>>>0,j=(W&X|ie&(W^X))>>>0,$=(Q&Y|oe&(Q^Y))>>>0,ee=k+T+O+Bc[B][1]+f[B][1],_=P+A+D+Bc[B][0]+f[B][0]+(ee/4294967296>>>0)>>>0,x=ee>>>0,ee=S+$,I=M+j+(ee/4294967296>>>0)>>>0,E=ee>>>0,P=le,k=re,le=Ce,re=ke,Ce=ze,ke=de,ee=be+x,ze=ge+_+(ee/4294967296>>>0)>>>0,de=ee>>>0,ge=ie,be=oe,ie=X,oe=Y,X=W,Y=Q,ee=x+E,W=_+I+(ee/4294967296>>>0)>>>0,Q=ee>>>0;ee=u[0][1]+Q,u[0][0]=u[0][0]+W+(ee/4294967296>>>0)>>>0,u[0][1]=ee>>>0,ee=u[1][1]+Y,u[1][0]=u[1][0]+X+(ee/4294967296>>>0)>>>0,u[1][1]=ee>>>0,ee=u[2][1]+oe,u[2][0]=u[2][0]+ie+(ee/4294967296>>>0)>>>0,u[2][1]=ee>>>0,ee=u[3][1]+be,u[3][0]=u[3][0]+ge+(ee/4294967296>>>0)>>>0,u[3][1]=ee>>>0,ee=u[4][1]+de,u[4][0]=u[4][0]+ze+(ee/4294967296>>>0)>>>0,u[4][1]=ee>>>0,ee=u[5][1]+ke,u[5][0]=u[5][0]+Ce+(ee/4294967296>>>0)>>>0,u[5][1]=ee>>>0,ee=u[6][1]+re,u[6][0]=u[6][0]+le+(ee/4294967296>>>0)>>>0,u[6][1]=ee>>>0,ee=u[7][1]+k,u[7][0]=u[7][0]+P+(ee/4294967296>>>0)>>>0,u[7][1]=ee>>>0,Z-=128}}var jh={},eT=ht,Xt=eT.asn1;jh.privateKeyValidator={name:"PrivateKeyInfo",tagClass:Xt.Class.UNIVERSAL,type:Xt.Type.SEQUENCE,constructed:!0,value:[{name:"PrivateKeyInfo.version",tagClass:Xt.Class.UNIVERSAL,type:Xt.Type.INTEGER,constructed:!1,capture:"privateKeyVersion"},{name:"PrivateKeyInfo.privateKeyAlgorithm",tagClass:Xt.Class.UNIVERSAL,type:Xt.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:Xt.Class.UNIVERSAL,type:Xt.Type.OID,constructed:!1,capture:"privateKeyOid"}]},{name:"PrivateKeyInfo",tagClass:Xt.Class.UNIVERSAL,type:Xt.Type.OCTETSTRING,constructed:!1,capture:"privateKey"}]};jh.publicKeyValidator={name:"SubjectPublicKeyInfo",tagClass:Xt.Class.UNIVERSAL,type:Xt.Type.SEQUENCE,constructed:!0,captureAsn1:"subjectPublicKeyInfo",value:[{name:"SubjectPublicKeyInfo.AlgorithmIdentifier",tagClass:Xt.Class.UNIVERSAL,type:Xt.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:Xt.Class.UNIVERSAL,type:Xt.Type.OID,constructed:!1,capture:"publicKeyOid"}]},{tagClass:Xt.Class.UNIVERSAL,type:Xt.Type.BITSTRING,constructed:!1,composed:!0,captureBitStringValue:"ed25519PublicKey"}]};var sr=ht,Y2=jh,tT=Y2.publicKeyValidator,rT=Y2.privateKeyValidator;if(typeof iT>"u")var iT=sr.jsbn.BigInteger;var Ic=sr.util.ByteBuffer,Tr=typeof pe.Buffer>"u"?Uint8Array:pe.Buffer;sr.pki=sr.pki||{};sr.pki.ed25519=sr.ed25519=sr.ed25519||{};var dt=sr.ed25519;dt.constants={};dt.constants.PUBLIC_KEY_BYTE_LENGTH=32;dt.constants.PRIVATE_KEY_BYTE_LENGTH=64;dt.constants.SEED_BYTE_LENGTH=32;dt.constants.SIGN_BYTE_LENGTH=64;dt.constants.HASH_BYTE_LENGTH=64;dt.generateKeyPair=function(u){u=u||{};var f=u.seed;if(f===void 0)f=sr.random.getBytesSync(dt.constants.SEED_BYTE_LENGTH);else if(typeof f=="string"){if(f.length!==dt.constants.SEED_BYTE_LENGTH)throw new TypeError('"seed" must be '+dt.constants.SEED_BYTE_LENGTH+" bytes in length.")}else if(!(f instanceof Uint8Array))throw new TypeError('"seed" must be a node.js Buffer, Uint8Array, or a binary string.');f=an({message:f,encoding:"binary"});for(var d=new Tr(dt.constants.PUBLIC_KEY_BYTE_LENGTH),_=new Tr(dt.constants.PRIVATE_KEY_BYTE_LENGTH),x=0;x<32;++x)_[x]=f[x];return fT(d,_),{publicKey:d,privateKey:_}};dt.privateKeyFromAsn1=function(u){var f={},d=[],_=sr.asn1.validate(u,rT,f,d);if(!_){var x=new Error("Invalid Key.");throw x.errors=d,x}var I=sr.asn1.derToOid(f.privateKeyOid),E=sr.oids.EdDSA25519;if(I!==E)throw new Error('Invalid OID "'+I+'"; OID must be "'+E+'".');var M=f.privateKey,S=an({message:sr.asn1.fromDer(M).value,encoding:"binary"});return{privateKeyBytes:S}};dt.publicKeyFromAsn1=function(u){var f={},d=[],_=sr.asn1.validate(u,tT,f,d);if(!_){var x=new Error("Invalid Key.");throw x.errors=d,x}var I=sr.asn1.derToOid(f.publicKeyOid),E=sr.oids.EdDSA25519;if(I!==E)throw new Error('Invalid OID "'+I+'"; OID must be "'+E+'".');var M=f.ed25519PublicKey;if(M.length!==dt.constants.PUBLIC_KEY_BYTE_LENGTH)throw new Error("Key length is invalid.");return an({message:M,encoding:"binary"})};dt.publicKeyFromPrivateKey=function(u){u=u||{};var f=an({message:u.privateKey,encoding:"binary"});if(f.length!==dt.constants.PRIVATE_KEY_BYTE_LENGTH)throw new TypeError('"options.privateKey" must have a byte length of '+dt.constants.PRIVATE_KEY_BYTE_LENGTH);for(var d=new Tr(dt.constants.PUBLIC_KEY_BYTE_LENGTH),_=0;_<d.length;++_)d[_]=f[32+_];return d};dt.sign=function(u){u=u||{};var f=an(u),d=an({message:u.privateKey,encoding:"binary"});if(d.length===dt.constants.SEED_BYTE_LENGTH){var _=dt.generateKeyPair({seed:d});d=_.privateKey}else if(d.length!==dt.constants.PRIVATE_KEY_BYTE_LENGTH)throw new TypeError('"options.privateKey" must have a byte length of '+dt.constants.SEED_BYTE_LENGTH+" or "+dt.constants.PRIVATE_KEY_BYTE_LENGTH);var x=new Tr(dt.constants.SIGN_BYTE_LENGTH+f.length);oT(x,f,f.length,d);for(var I=new Tr(dt.constants.SIGN_BYTE_LENGTH),E=0;E<I.length;++E)I[E]=x[E];return I};dt.verify=function(u){u=u||{};var f=an(u);if(u.signature===void 0)throw new TypeError('"options.signature" must be a node.js Buffer, a Uint8Array, a forge ByteBuffer, or a binary string.');var d=an({message:u.signature,encoding:"binary"});if(d.length!==dt.constants.SIGN_BYTE_LENGTH)throw new TypeError('"options.signature" must have a byte length of '+dt.constants.SIGN_BYTE_LENGTH);var _=an({message:u.publicKey,encoding:"binary"});if(_.length!==dt.constants.PUBLIC_KEY_BYTE_LENGTH)throw new TypeError('"options.publicKey" must have a byte length of '+dt.constants.PUBLIC_KEY_BYTE_LENGTH);var x=new Tr(dt.constants.SIGN_BYTE_LENGTH+f.length),I=new Tr(dt.constants.SIGN_BYTE_LENGTH+f.length),E;for(E=0;E<dt.constants.SIGN_BYTE_LENGTH;++E)x[E]=d[E];for(E=0;E<f.length;++E)x[E+dt.constants.SIGN_BYTE_LENGTH]=f[E];return uT(I,x,x.length,_)>=0};function an(u){var f=u.message;if(f instanceof Uint8Array||f instanceof Tr)return f;var d=u.encoding;if(f===void 0)if(u.md)f=u.md.digest().getBytes(),d="binary";else throw new TypeError('"options.message" or "options.md" not specified.');if(typeof f=="string"&&!d)throw new TypeError('"options.encoding" must be "binary" or "utf8".');if(typeof f=="string"){if(typeof pe.Buffer<"u")return pe.Buffer.from(f,d);f=new Ic(f,d)}else if(!(f instanceof Ic))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 Tr(f.length()),x=0;x<_.length;++x)_[x]=f.at(x);return _}var Tc=We(),Ks=We([1]),nT=We([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),aT=We([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),Xp=We([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),Qp=We([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),$u=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]),sT=We([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function S0(u,f){var d=sr.md.sha512.create(),_=new Ic(u);d.update(_.getBytes(f),"binary");var x=d.digest().getBytes();if(typeof pe.Buffer<"u")return pe.Buffer.from(x,"binary");for(var I=new Tr(dt.constants.HASH_BYTE_LENGTH),E=0;E<64;++E)I[E]=x.charCodeAt(E);return I}function fT(u,f){var d=[We(),We(),We(),We()],_,x=S0(f,32);for(x[0]&=248,x[31]&=127,x[31]|=64,Yh(d,x),Wh(u,d),_=0;_<32;++_)f[_+32]=u[_];return 0}function oT(u,f,d,_){var x,I,E=new Float64Array(64),M=[We(),We(),We(),We()],S=S0(_,32);S[0]&=248,S[31]&=127,S[31]|=64;var A=d+64;for(x=0;x<d;++x)u[64+x]=f[x];for(x=0;x<32;++x)u[32+x]=S[32+x];var T=S0(u.subarray(32),d+32);for(Mc(T),Yh(M,T),Wh(u,M),x=32;x<64;++x)u[x]=_[x];var D=S0(u,d+64);for(Mc(D),x=32;x<64;++x)E[x]=0;for(x=0;x<32;++x)E[x]=T[x];for(x=0;x<32;++x)for(I=0;I<32;I++)E[x+I]+=D[x]*S[I];return X2(u.subarray(32),E),A}function uT(u,f,d,_){var x,I,E=new Tr(32),M=[We(),We(),We(),We()],S=[We(),We(),We(),We()];if(I=-1,d<64||cT(S,_))return-1;for(x=0;x<d;++x)u[x]=f[x];for(x=0;x<32;++x)u[x+32]=_[x];var A=S0(u,d);if(Mc(A),J2(M,S,A),Yh(S,f.subarray(32)),Rc(M,S),Wh(E,M),d-=64,Q2(f,0,E,0)){for(x=0;x<d;++x)u[x]=0;return-1}for(x=0;x<d;++x)u[x]=f[x+64];return I=d,I}function X2(u,f){var d,_,x,I;for(_=63;_>=32;--_){for(d=0,x=_-32,I=_-12;x<I;++x)f[x]+=d-16*f[_]*$u[x-(_-32)],d=f[x]+128>>8,f[x]-=d*256;f[x]+=d,f[_]=0}for(d=0,x=0;x<32;++x)f[x]+=d-(f[31]>>4)*$u[x],d=f[x]>>8,f[x]&=255;for(x=0;x<32;++x)f[x]-=d*$u[x];for(_=0;_<32;++_)f[_+1]+=f[_]>>8,u[_]=f[_]&255}function Mc(u){for(var f=new Float64Array(64),d=0;d<64;++d)f[d]=u[d],u[d]=0;X2(u,f)}function Rc(u,f){var d=We(),_=We(),x=We(),I=We(),E=We(),M=We(),S=We(),A=We(),T=We();ma(d,u[1],u[0]),ma(T,f[1],f[0]),Nt(d,d,T),pa(_,u[0],u[1]),pa(T,f[0],f[1]),Nt(_,_,T),Nt(x,u[3],f[3]),Nt(x,x,aT),Nt(I,u[2],f[2]),pa(I,I,I),ma(E,_,d),ma(M,I,x),pa(S,I,x),pa(A,_,d),Nt(u[0],E,M),Nt(u[1],A,S),Nt(u[2],S,M),Nt(u[3],E,A)}function Zp(u,f,d){for(var _=0;_<4;++_)eg(u[_],f[_],d)}function Wh(u,f){var d=We(),_=We(),x=We();pT(x,f[2]),Nt(d,f[0],x),Nt(_,f[1],x),$s(u,_),u[31]^=Z2(d)<<7}function $s(u,f){var d,_,x,I=We(),E=We();for(d=0;d<16;++d)E[d]=f[d];for(Hu(E),Hu(E),Hu(E),_=0;_<2;++_){for(I[0]=E[0]-65517,d=1;d<15;++d)I[d]=E[d]-65535-(I[d-1]>>16&1),I[d-1]&=65535;I[15]=E[15]-32767-(I[14]>>16&1),x=I[15]>>16&1,I[14]&=65535,eg(E,I,1-x)}for(d=0;d<16;d++)u[2*d]=E[d]&255,u[2*d+1]=E[d]>>8}function cT(u,f){var d=We(),_=We(),x=We(),I=We(),E=We(),M=We(),S=We();return xn(u[2],Ks),hT(u[1],f),$n(x,u[1]),Nt(I,x,nT),ma(x,x,u[2]),pa(I,u[2],I),$n(E,I),$n(M,E),Nt(S,M,E),Nt(d,S,x),Nt(d,d,I),lT(d,d),Nt(d,d,x),Nt(d,d,I),Nt(d,d,I),Nt(u[0],d,I),$n(_,u[0]),Nt(_,_,I),Jp(_,x)&&Nt(u[0],u[0],sT),$n(_,u[0]),Nt(_,_,I),Jp(_,x)?-1:(Z2(u[0])===f[31]>>7&&ma(u[0],Tc,u[0]),Nt(u[3],u[0],u[1]),0)}function hT(u,f){var d;for(d=0;d<16;++d)u[d]=f[2*d]+(f[2*d+1]<<8);u[15]&=32767}function lT(u,f){var d=We(),_;for(_=0;_<16;++_)d[_]=f[_];for(_=250;_>=0;--_)$n(d,d),_!==1&&Nt(d,d,f);for(_=0;_<16;++_)u[_]=d[_]}function Jp(u,f){var d=new Tr(32),_=new Tr(32);return $s(d,u),$s(_,f),Q2(d,0,_,0)}function Q2(u,f,d,_){return dT(u,f,d,_,32)}function dT(u,f,d,_,x){var I,E=0;for(I=0;I<x;++I)E|=u[f+I]^d[_+I];return(1&E-1>>>8)-1}function Z2(u){var f=new Tr(32);return $s(f,u),f[0]&1}function J2(u,f,d){var _,x;for(xn(u[0],Tc),xn(u[1],Ks),xn(u[2],Ks),xn(u[3],Tc),x=255;x>=0;--x)_=d[x/8|0]>>(x&7)&1,Zp(u,f,_),Rc(f,u),Rc(u,u),Zp(u,f,_)}function Yh(u,f){var d=[We(),We(),We(),We()];xn(d[0],Xp),xn(d[1],Qp),xn(d[2],Ks),Nt(d[3],Xp,Qp),J2(u,d,f)}function xn(u,f){var d;for(d=0;d<16;d++)u[d]=f[d]|0}function pT(u,f){var d=We(),_;for(_=0;_<16;++_)d[_]=f[_];for(_=253;_>=0;--_)$n(d,d),_!==2&&_!==4&&Nt(d,d,f);for(_=0;_<16;++_)u[_]=d[_]}function Hu(u){var f,d,_=1;for(f=0;f<16;++f)d=u[f]+_+65535,_=Math.floor(d/65536),u[f]=d-_*65536;u[0]+=_-1+37*(_-1)}function eg(u,f,d){for(var _,x=~(d-1),I=0;I<16;++I)_=x&(u[I]^f[I]),u[I]^=_,f[I]^=_}function We(u){var f,d=new Float64Array(16);if(u)for(f=0;f<u.length;++f)d[f]=u[f];return d}function pa(u,f,d){for(var _=0;_<16;++_)u[_]=f[_]+d[_]}function ma(u,f,d){for(var _=0;_<16;++_)u[_]=f[_]-d[_]}function $n(u,f){Nt(u,f,f)}function Nt(u,f,d){var _,x,I=0,E=0,M=0,S=0,A=0,T=0,D=0,O=0,j=0,$=0,W=0,Q=0,X=0,Y=0,ie=0,oe=0,ge=0,be=0,ze=0,de=0,Ce=0,ke=0,le=0,re=0,P=0,k=0,B=0,z=0,ee=0,H=0,q=0,J=d[0],U=d[1],Z=d[2],ve=d[3],Ye=d[4],rt=d[5],Ue=d[6],Qe=d[7],vt=d[8],ri=d[9],ci=d[10],tt=d[11],et=d[12],$e=d[13],Le=d[14],ot=d[15];_=f[0],I+=_*J,E+=_*U,M+=_*Z,S+=_*ve,A+=_*Ye,T+=_*rt,D+=_*Ue,O+=_*Qe,j+=_*vt,$+=_*ri,W+=_*ci,Q+=_*tt,X+=_*et,Y+=_*$e,ie+=_*Le,oe+=_*ot,_=f[1],E+=_*J,M+=_*U,S+=_*Z,A+=_*ve,T+=_*Ye,D+=_*rt,O+=_*Ue,j+=_*Qe,$+=_*vt,W+=_*ri,Q+=_*ci,X+=_*tt,Y+=_*et,ie+=_*$e,oe+=_*Le,ge+=_*ot,_=f[2],M+=_*J,S+=_*U,A+=_*Z,T+=_*ve,D+=_*Ye,O+=_*rt,j+=_*Ue,$+=_*Qe,W+=_*vt,Q+=_*ri,X+=_*ci,Y+=_*tt,ie+=_*et,oe+=_*$e,ge+=_*Le,be+=_*ot,_=f[3],S+=_*J,A+=_*U,T+=_*Z,D+=_*ve,O+=_*Ye,j+=_*rt,$+=_*Ue,W+=_*Qe,Q+=_*vt,X+=_*ri,Y+=_*ci,ie+=_*tt,oe+=_*et,ge+=_*$e,be+=_*Le,ze+=_*ot,_=f[4],A+=_*J,T+=_*U,D+=_*Z,O+=_*ve,j+=_*Ye,$+=_*rt,W+=_*Ue,Q+=_*Qe,X+=_*vt,Y+=_*ri,ie+=_*ci,oe+=_*tt,ge+=_*et,be+=_*$e,ze+=_*Le,de+=_*ot,_=f[5],T+=_*J,D+=_*U,O+=_*Z,j+=_*ve,$+=_*Ye,W+=_*rt,Q+=_*Ue,X+=_*Qe,Y+=_*vt,ie+=_*ri,oe+=_*ci,ge+=_*tt,be+=_*et,ze+=_*$e,de+=_*Le,Ce+=_*ot,_=f[6],D+=_*J,O+=_*U,j+=_*Z,$+=_*ve,W+=_*Ye,Q+=_*rt,X+=_*Ue,Y+=_*Qe,ie+=_*vt,oe+=_*ri,ge+=_*ci,be+=_*tt,ze+=_*et,de+=_*$e,Ce+=_*Le,ke+=_*ot,_=f[7],O+=_*J,j+=_*U,$+=_*Z,W+=_*ve,Q+=_*Ye,X+=_*rt,Y+=_*Ue,ie+=_*Qe,oe+=_*vt,ge+=_*ri,be+=_*ci,ze+=_*tt,de+=_*et,Ce+=_*$e,ke+=_*Le,le+=_*ot,_=f[8],j+=_*J,$+=_*U,W+=_*Z,Q+=_*ve,X+=_*Ye,Y+=_*rt,ie+=_*Ue,oe+=_*Qe,ge+=_*vt,be+=_*ri,ze+=_*ci,de+=_*tt,Ce+=_*et,ke+=_*$e,le+=_*Le,re+=_*ot,_=f[9],$+=_*J,W+=_*U,Q+=_*Z,X+=_*ve,Y+=_*Ye,ie+=_*rt,oe+=_*Ue,ge+=_*Qe,be+=_*vt,ze+=_*ri,de+=_*ci,Ce+=_*tt,ke+=_*et,le+=_*$e,re+=_*Le,P+=_*ot,_=f[10],W+=_*J,Q+=_*U,X+=_*Z,Y+=_*ve,ie+=_*Ye,oe+=_*rt,ge+=_*Ue,be+=_*Qe,ze+=_*vt,de+=_*ri,Ce+=_*ci,ke+=_*tt,le+=_*et,re+=_*$e,P+=_*Le,k+=_*ot,_=f[11],Q+=_*J,X+=_*U,Y+=_*Z,ie+=_*ve,oe+=_*Ye,ge+=_*rt,be+=_*Ue,ze+=_*Qe,de+=_*vt,Ce+=_*ri,ke+=_*ci,le+=_*tt,re+=_*et,P+=_*$e,k+=_*Le,B+=_*ot,_=f[12],X+=_*J,Y+=_*U,ie+=_*Z,oe+=_*ve,ge+=_*Ye,be+=_*rt,ze+=_*Ue,de+=_*Qe,Ce+=_*vt,ke+=_*ri,le+=_*ci,re+=_*tt,P+=_*et,k+=_*$e,B+=_*Le,z+=_*ot,_=f[13],Y+=_*J,ie+=_*U,oe+=_*Z,ge+=_*ve,be+=_*Ye,ze+=_*rt,de+=_*Ue,Ce+=_*Qe,ke+=_*vt,le+=_*ri,re+=_*ci,P+=_*tt,k+=_*et,B+=_*$e,z+=_*Le,ee+=_*ot,_=f[14],ie+=_*J,oe+=_*U,ge+=_*Z,be+=_*ve,ze+=_*Ye,de+=_*rt,Ce+=_*Ue,ke+=_*Qe,le+=_*vt,re+=_*ri,P+=_*ci,k+=_*tt,B+=_*et,z+=_*$e,ee+=_*Le,H+=_*ot,_=f[15],oe+=_*J,ge+=_*U,be+=_*Z,ze+=_*ve,de+=_*Ye,Ce+=_*rt,ke+=_*Ue,le+=_*Qe,re+=_*vt,P+=_*ri,k+=_*ci,B+=_*tt,z+=_*et,ee+=_*$e,H+=_*Le,q+=_*ot,I+=38*ge,E+=38*be,M+=38*ze,S+=38*de,A+=38*Ce,T+=38*ke,D+=38*le,O+=38*re,j+=38*P,$+=38*k,W+=38*B,Q+=38*z,X+=38*ee,Y+=38*H,ie+=38*q,x=1,_=I+x+65535,x=Math.floor(_/65536),I=_-x*65536,_=E+x+65535,x=Math.floor(_/65536),E=_-x*65536,_=M+x+65535,x=Math.floor(_/65536),M=_-x*65536,_=S+x+65535,x=Math.floor(_/65536),S=_-x*65536,_=A+x+65535,x=Math.floor(_/65536),A=_-x*65536,_=T+x+65535,x=Math.floor(_/65536),T=_-x*65536,_=D+x+65535,x=Math.floor(_/65536),D=_-x*65536,_=O+x+65535,x=Math.floor(_/65536),O=_-x*65536,_=j+x+65535,x=Math.floor(_/65536),j=_-x*65536,_=$+x+65535,x=Math.floor(_/65536),$=_-x*65536,_=W+x+65535,x=Math.floor(_/65536),W=_-x*65536,_=Q+x+65535,x=Math.floor(_/65536),Q=_-x*65536,_=X+x+65535,x=Math.floor(_/65536),X=_-x*65536,_=Y+x+65535,x=Math.floor(_/65536),Y=_-x*65536,_=ie+x+65535,x=Math.floor(_/65536),ie=_-x*65536,_=oe+x+65535,x=Math.floor(_/65536),oe=_-x*65536,I+=x-1+37*(x-1),x=1,_=I+x+65535,x=Math.floor(_/65536),I=_-x*65536,_=E+x+65535,x=Math.floor(_/65536),E=_-x*65536,_=M+x+65535,x=Math.floor(_/65536),M=_-x*65536,_=S+x+65535,x=Math.floor(_/65536),S=_-x*65536,_=A+x+65535,x=Math.floor(_/65536),A=_-x*65536,_=T+x+65535,x=Math.floor(_/65536),T=_-x*65536,_=D+x+65535,x=Math.floor(_/65536),D=_-x*65536,_=O+x+65535,x=Math.floor(_/65536),O=_-x*65536,_=j+x+65535,x=Math.floor(_/65536),j=_-x*65536,_=$+x+65535,x=Math.floor(_/65536),$=_-x*65536,_=W+x+65535,x=Math.floor(_/65536),W=_-x*65536,_=Q+x+65535,x=Math.floor(_/65536),Q=_-x*65536,_=X+x+65535,x=Math.floor(_/65536),X=_-x*65536,_=Y+x+65535,x=Math.floor(_/65536),Y=_-x*65536,_=ie+x+65535,x=Math.floor(_/65536),ie=_-x*65536,_=oe+x+65535,x=Math.floor(_/65536),oe=_-x*65536,I+=x-1+37*(x-1),u[0]=I,u[1]=E,u[2]=M,u[3]=S,u[4]=A,u[5]=T,u[6]=D,u[7]=O,u[8]=j,u[9]=$,u[10]=W,u[11]=Q,u[12]=X,u[13]=Y,u[14]=ie,u[15]=oe}var Nr=ht;Nr.kem=Nr.kem||{};var e1=Nr.jsbn.BigInteger;Nr.kem.rsa={};Nr.kem.rsa.create=function(u,f){f=f||{};var d=f.prng||Nr.random,_={};return _.encrypt=function(x,I){var E=Math.ceil(x.n.bitLength()/8),M;do M=new e1(Nr.util.bytesToHex(d.getBytesSync(E)),16).mod(x.n);while(M.compareTo(e1.ONE)<=0);M=Nr.util.hexToBytes(M.toString(16));var S=E-M.length;S>0&&(M=Nr.util.fillString("\0",S)+M);var A=x.encrypt(M,"NONE"),T=u.generate(M,I);return{encapsulation:A,key:T}},_.decrypt=function(x,I,E){var M=x.decrypt(I,"NONE");return u.generate(M,E)},_};Nr.kem.kdf1=function(u,f){tg(this,u,0,f||u.digestLength)};Nr.kem.kdf2=function(u,f){tg(this,u,1,f||u.digestLength)};function tg(u,f,d,_){u.generate=function(x,I){for(var E=new Nr.util.ByteBuffer,M=Math.ceil(I/_)+d,S=new Nr.util.ByteBuffer,A=d;A<M;++A){S.putInt32(A),f.start(),f.update(x+S.getBytes());var T=f.digest();E.putBytes(T.getBytes(_))}return E.truncate(E.length()-I),E.getBytes()}}var yt=ht;yt.log=yt.log||{};yt.log.levels=["none","error","warning","info","debug","verbose","max"];var Hs={},Nc=[],w0=null;yt.log.LEVEL_LOCKED=2;yt.log.NO_LEVEL_CHECK=4;yt.log.INTERPOLATE=8;for(var _n=0;_n<yt.log.levels.length;++_n){var t1=yt.log.levels[_n];Hs[t1]={index:_n,name:t1.toUpperCase()}}yt.log.logMessage=function(u){for(var f=Hs[u.level].index,d=0;d<Nc.length;++d){var _=Nc[d];if(_.flags&yt.log.NO_LEVEL_CHECK)_.f(u);else{var x=Hs[_.level].index;f<=x&&_.f(_,u)}}};yt.log.prepareStandard=function(u){"standard"in u||(u.standard=Hs[u.level].name+" ["+u.category+"] "+u.message)};yt.log.prepareFull=function(u){if(!("full"in u)){var f=[u.message];f=f.concat([]),u.full=yt.util.format.apply(this,f)}};yt.log.prepareStandardFull=function(u){"standardFull"in u||(yt.log.prepareStandard(u),u.standardFull=u.standard)};for(var r1=["error","warning","info","debug","verbose"],_n=0;_n<r1.length;++_n)(function(f){yt.log[f]=function(d,_){var x=Array.prototype.slice.call(arguments).slice(2),I={timestamp:new Date,level:f,category:d,message:_,arguments:x};yt.log.logMessage(I)}})(r1[_n]);yt.log.makeLogger=function(u){var f={flags:0,f:u};return yt.log.setLevel(f,"none"),f};yt.log.setLevel=function(u,f){var d=!1;if(u&&!(u.flags&yt.log.LEVEL_LOCKED))for(var _=0;_<yt.log.levels.length;++_){var x=yt.log.levels[_];if(f==x){u.level=f,d=!0;break}}return d};yt.log.lock=function(u,f){typeof f>"u"||f?u.flags|=yt.log.LEVEL_LOCKED:u.flags&=~yt.log.LEVEL_LOCKED};yt.log.addLogger=function(u){Nc.push(u)};if(typeof console<"u"&&"log"in console){var d0;if(console.error&&console.warn&&console.info&&console.debug){var vT={error:console.error,warning:console.warn,info:console.info,debug:console.debug,verbose:console.debug},Xh=function(u,f){yt.log.prepareStandard(f);var d=vT[f.level],_=[f.standard];_=_.concat(f.arguments.slice()),d.apply(console,_)};d0=yt.log.makeLogger(Xh)}else{var Xh=function(f,d){yt.log.prepareStandardFull(d),console.log(d.standardFull)};d0=yt.log.makeLogger(Xh)}yt.log.setLevel(d0,"debug"),yt.log.addLogger(d0),w0=d0}else console={log:function(){}};if(w0!==null&&typeof window<"u"&&window.location){var fs=new URL(window.location.href).searchParams;if(fs.has("console.level")&&yt.log.setLevel(w0,fs.get("console.level").slice(-1)[0]),fs.has("console.lock")){var yT=fs.get("console.lock").slice(-1)[0];yT=="true"&&yt.log.lock(w0)}}yt.log.consoleLogger=w0;var Be=ht,ae=Be.asn1,br=Be.pkcs7=Be.pkcs7||{};br.messageFromPem=function(u){var f=Be.pem.decode(u)[0];if(f.type!=="PKCS7"){var d=new Error('Could not convert PKCS#7 message from PEM; PEM header type is not "PKCS#7".');throw d.headerType=f.type,d}if(f.procType&&f.procType.type==="ENCRYPTED")throw new Error("Could not convert PKCS#7 message from PEM; PEM is encrypted.");var _=ae.fromDer(f.body);return br.messageFromAsn1(_)};br.messageToPem=function(u,f){var d={type:"PKCS7",body:ae.toDer(u.toAsn1()).getBytes()};return Be.pem.encode(d,{maxline:f})};br.messageFromAsn1=function(u){var f={},d=[];if(!ae.validate(u,br.asn1.contentInfoValidator,f,d)){var _=new Error("Cannot read PKCS#7 message. ASN.1 object is not an PKCS#7 ContentInfo.");throw _.errors=d,_}var x=ae.derToOid(f.contentType),I;switch(x){case Be.pki.oids.envelopedData:I=br.createEnvelopedData();break;case Be.pki.oids.encryptedData:I=br.createEncryptedData();break;case Be.pki.oids.signedData:I=br.createSignedData();break;default:throw new Error("Cannot read PKCS#7 message. ContentType with OID "+x+" is not (yet) supported.")}return I.fromAsn1(f.content.value[0]),I};br.createSignedData=function(){var u=null;return u={type:Be.pki.oids.signedData,version:1,certificates:[],crls:[],signers:[],digestAlgorithmIdentifiers:[],contentInfo:null,signerInfos:[],fromAsn1:function(_){if(Qh(u,_,br.asn1.signedDataValidator),u.certificates=[],u.crls=[],u.digestAlgorithmIdentifiers=[],u.contentInfo=null,u.signerInfos=[],u.rawCapture.certificates)for(var x=u.rawCapture.certificates.value,I=0;I<x.length;++I)u.certificates.push(Be.pki.certificateFromAsn1(x[I]))},toAsn1:function(){u.contentInfo||u.sign();for(var _=[],x=0;x<u.certificates.length;++x)_.push(Be.pki.certificateToAsn1(u.certificates[x]));var I=[],E=ae.create(ae.Class.CONTEXT_SPECIFIC,0,!0,[ae.create(ae.Class.UNIVERSAL,ae.Type.SEQUENCE,!0,[ae.create(ae.Class.UNIVERSAL,ae.Type.INTEGER,!1,ae.integerToDer(u.version).getBytes()),ae.create(ae.Class.UNIVERSAL,ae.Type.SET,!0,u.digestAlgorithmIdentifiers),u.contentInfo])]);return _.length>0&&E.value[0].value.push(ae.create(ae.Class.CONTEXT_SPECIFIC,0,!0,_)),I.length>0&&E.value[0].value.push(ae.create(ae.Class.CONTEXT_SPECIFIC,1,!0,I)),E.value[0].value.push(ae.create(ae.Class.UNIVERSAL,ae.Type.SET,!0,u.signerInfos)),ae.create(ae.Class.UNIVERSAL,ae.Type.SEQUENCE,!0,[ae.create(ae.Class.UNIVERSAL,ae.Type.OID,!1,ae.oidToDer(u.type).getBytes()),E])},addSigner:function(_){var x=_.issuer,I=_.serialNumber;if(_.certificate){var E=_.certificate;typeof E=="string"&&(E=Be.pki.certificateFromPem(E)),x=E.issuer.attributes,I=E.serialNumber}var M=_.key;if(!M)throw new Error("Could not add PKCS#7 signer; no private key specified.");typeof M=="string"&&(M=Be.pki.privateKeyFromPem(M));var S=_.digestAlgorithm||Be.pki.oids.sha1;switch(S){case Be.pki.oids.sha1:case Be.pki.oids.sha256:case Be.pki.oids.sha384:case Be.pki.oids.sha512:case Be.pki.oids.md5:break;default:throw new Error("Could not add PKCS#7 signer; unknown message digest algorithm: "+S)}var A=_.authenticatedAttributes||[];if(A.length>0){for(var T=!1,D=!1,O=0;O<A.length;++O){var j=A[O];if(!T&&j.type===Be.pki.oids.contentType){if(T=!0,D)break;continue}if(!D&&j.type===Be.pki.oids.messageDigest){if(D=!0,T)break;continue}}if(!T||!D)throw new Error("Invalid signer.authenticatedAttributes. If signer.authenticatedAttributes is specified, then it must contain at least two attributes, PKCS #9 content-type and PKCS #9 message-digest.")}u.signers.push({key:M,version:1,issuer:x,serialNumber:I,digestAlgorithm:S,signatureAlgorithm:Be.pki.oids.rsaEncryption,signature:null,authenticatedAttributes:A,unauthenticatedAttributes:[]})},sign:function(_){if(_=_||{},(typeof u.content!="object"||u.contentInfo===null)&&(u.contentInfo=ae.create(ae.Class.UNIVERSAL,ae.Type.SEQUENCE,!0,[ae.create(ae.Class.UNIVERSAL,ae.Type.OID,!1,ae.oidToDer(Be.pki.oids.data).getBytes())]),"content"in u)){var x;u.content instanceof Be.util.ByteBuffer?x=u.content.bytes():typeof u.content=="string"&&(x=Be.util.encodeUtf8(u.content)),_.detached?u.detachedContent=ae.create(ae.Class.UNIVERSAL,ae.Type.OCTETSTRING,!1,x):u.contentInfo.value.push(ae.create(ae.Class.CONTEXT_SPECIFIC,0,!0,[ae.create(ae.Class.UNIVERSAL,ae.Type.OCTETSTRING,!1,x)]))}if(u.signers.length!==0){var I=f();d(I)}},verify:function(){throw new Error("PKCS#7 signature verification not yet implemented.")},addCertificate:function(_){typeof _=="string"&&(_=Be.pki.certificateFromPem(_)),u.certificates.push(_)},addCertificateRevokationList:function(_){throw new Error("PKCS#7 CRL support not yet implemented.")}},u;function f(){for(var _={},x=0;x<u.signers.length;++x){var I=u.signers[x],E=I.digestAlgorithm;E in _||(_[E]=Be.md[Be.pki.oids[E]].create()),I.authenticatedAttributes.length===0?I.md=_[E]:I.md=Be.md[Be.pki.oids[E]].create()}u.digestAlgorithmIdentifiers=[];for(var E in _)u.digestAlgorithmIdentifiers.push(ae.create(ae.Class.UNIVERSAL,ae.Type.SEQUENCE,!0,[ae.create(ae.Class.UNIVERSAL,ae.Type.OID,!1,ae.oidToDer(E).getBytes()),ae.create(ae.Class.UNIVERSAL,ae.Type.NULL,!1,"")]));return _}function d(_){var x;if(u.detachedContent?x=u.detachedContent:(x=u.contentInfo.value[1],x=x.value[0]),!x)throw new Error("Could not sign PKCS#7 message; there is no content to sign.");var I=ae.derToOid(u.contentInfo.value[0].value),E=ae.toDer(x);E.getByte(),ae.getBerValueLength(E),E=E.getBytes();for(var M in _)_[M].start().update(E);for(var S=new Date,A=0;A<u.signers.length;++A){var T=u.signers[A];if(T.authenticatedAttributes.length===0){if(I!==Be.pki.oids.data)throw new Error("Invalid signer; authenticatedAttributes must be present when the ContentInfo content type is not PKCS#7 Data.")}else{T.authenticatedAttributesAsn1=ae.create(ae.Class.CONTEXT_SPECIFIC,0,!0,[]);for(var D=ae.create(ae.Class.UNIVERSAL,ae.Type.SET,!0,[]),O=0;O<T.authenticatedAttributes.length;++O){var j=T.authenticatedAttributes[O];j.type===Be.pki.oids.messageDigest?j.value=_[T.digestAlgorithm].digest():j.type===Be.pki.oids.signingTime&&(j.value||(j.value=S)),D.value.push(Dc(j)),T.authenticatedAttributesAsn1.value.push(Dc(j))}E=ae.toDer(D).getBytes(),T.md.start().update(E)}T.signature=T.key.sign(T.md,"RSASSA-PKCS1-V1_5")}u.signerInfos=ET(u.signers)}};br.createEncryptedData=function(){var u=null;return u={type:Be.pki.oids.encryptedData,version:0,encryptedContent:{algorithm:Be.pki.oids["aes256-CBC"]},fromAsn1:function(f){Qh(u,f,br.asn1.encryptedDataValidator)},decrypt:function(f){f!==void 0&&(u.encryptedContent.key=f),rg(u)}},u};br.createEnvelopedData=function(){var u=null;return u={type:Be.pki.oids.envelopedData,version:0,recipients:[],encryptedContent:{algorithm:Be.pki.oids["aes256-CBC"]},fromAsn1:function(f){var d=Qh(u,f,br.asn1.envelopedDataValidator);u.recipients=bT(d.recipientInfos.value)},toAsn1:function(){return ae.create(ae.Class.UNIVERSAL,ae.Type.SEQUENCE,!0,[ae.create(ae.Class.UNIVERSAL,ae.Type.OID,!1,ae.oidToDer(u.type).getBytes()),ae.create(ae.Class.CONTEXT_SPECIFIC,0,!0,[ae.create(ae.Class.UNIVERSAL,ae.Type.SEQUENCE,!0,[ae.create(ae.Class.UNIVERSAL,ae.Type.INTEGER,!1,ae.integerToDer(u.version).getBytes()),ae.create(ae.Class.UNIVERSAL,ae.Type.SET,!0,xT(u.recipients)),ae.create(ae.Class.UNIVERSAL,ae.Type.SEQUENCE,!0,ST(u.encryptedContent))])])])},findRecipient:function(f){for(var d=f.issuer.attributes,_=0;_<u.recipients.length;++_){var x=u.recipients[_],I=x.issuer;if(x.serialNumber===f.serialNumber&&I.length===d.length){for(var E=!0,M=0;M<d.length;++M)if(I[M].type!==d[M].type||I[M].value!==d[M].value){E=!1;break}if(E)return x}}return null},decrypt:function(f,d){if(u.encryptedContent.key===void 0&&f!==void 0&&d!==void 0)switch(f.encryptedContent.algorithm){case Be.pki.oids.rsaEncryption:case Be.pki.oids.desCBC:var _=d.decrypt(f.encryptedContent.content);u.encryptedContent.key=Be.util.createBuffer(_);break;default:throw new Error("Unsupported asymmetric cipher, OID "+f.encryptedContent.algorithm)}rg(u)},addRecipient:function(f){u.recipients.push({version:0,issuer:f.issuer.attributes,serialNumber:f.serialNumber,encryptedContent:{algorithm:Be.pki.oids.rsaEncryption,key:f.publicKey}})},encrypt:function(f,d){if(u.encryptedContent.content===void 0){d=d||u.encryptedContent.algorithm,f=f||u.encryptedContent.key;var _,x,I;switch(d){case Be.pki.oids["aes128-CBC"]:_=16,x=16,I=Be.aes.createEncryptionCipher;break;case Be.pki.oids["aes192-CBC"]:_=24,x=16,I=Be.aes.createEncryptionCipher;break;case Be.pki.oids["aes256-CBC"]:_=32,x=16,I=Be.aes.createEncryptionCipher;break;case Be.pki.oids["des-EDE3-CBC"]:_=24,x=8,I=Be.des.createEncryptionCipher;break;default:throw new Error("Unsupported symmetric cipher, OID "+d)}if(f===void 0)f=Be.util.createBuffer(Be.random.getBytes(_));else if(f.length()!=_)throw new Error("Symmetric key has wrong length; got "+f.length()+" bytes, expected "+_+".");u.encryptedContent.algorithm=d,u.encryptedContent.key=f,u.encryptedContent.parameter=Be.util.createBuffer(Be.random.getBytes(x));var E=I(f);if(E.start(u.encryptedContent.parameter.copy()),E.update(u.content),!E.finish())throw new Error("Symmetric encryption failed.");u.encryptedContent.content=E.output}for(var M=0;M<u.recipients.length;++M){var S=u.recipients[M];if(S.encryptedContent.content===void 0)switch(S.encryptedContent.algorithm){case Be.pki.oids.rsaEncryption:S.encryptedContent.content=S.encryptedContent.key.encrypt(u.encryptedContent.key.data);break;default:throw new Error("Unsupported asymmetric cipher, OID "+S.encryptedContent.algorithm)}}}},u};function gT(u){var f={},d=[];if(!ae.validate(u,br.asn1.recipientInfoValidator,f,d)){var _=new Error("Cannot read PKCS#7 RecipientInfo. ASN.1 object is not an PKCS#7 RecipientInfo.");throw _.errors=d,_}return{version:f.version.charCodeAt(0),issuer:Be.pki.RDNAttributesAsArray(f.issuer),serialNumber:Be.util.createBuffer(f.serial).toHex(),encryptedContent:{algorithm:ae.derToOid(f.encAlgorithm),parameter:f.encParameter?f.encParameter.value:void 0,content:f.encKey}}}function mT(u){return ae.create(ae.Class.UNIVERSAL,ae.Type.SEQUENCE,!0,[ae.create(ae.Class.UNIVERSAL,ae.Type.INTEGER,!1,ae.integerToDer(u.version).getBytes()),ae.create(ae.Class.UNIVERSAL,ae.Type.SEQUENCE,!0,[Be.pki.distinguishedNameToAsn1({attributes:u.issuer}),ae.create(ae.Class.UNIVERSAL,ae.Type.INTEGER,!1,Be.util.hexToBytes(u.serialNumber))]),ae.create(ae.Class.UNIVERSAL,ae.Type.SEQUENCE,!0,[ae.create(ae.Class.UNIVERSAL,ae.Type.OID,!1,ae.oidToDer(u.encryptedContent.algorithm).getBytes()),ae.create(ae.Class.UNIVERSAL,ae.Type.NULL,!1,"")]),ae.create(ae.Class.UNIVERSAL,ae.Type.OCTETSTRING,!1,u.encryptedContent.content)])}function bT(u){for(var f=[],d=0;d<u.length;++d)f.push(gT(u[d]));return f}function xT(u){for(var f=[],d=0;d<u.length;++d)f.push(mT(u[d]));return f}function _T(u){var f=ae.create(ae.Class.UNIVERSAL,ae.Type.SEQUENCE,!0,[ae.create(ae.Class.UNIVERSAL,ae.Type.INTEGER,!1,ae.integerToDer(u.version).getBytes()),ae.create(ae.Class.UNIVERSAL,ae.Type.SEQUENCE,!0,[Be.pki.distinguishedNameToAsn1({attributes:u.issuer}),ae.create(ae.Class.UNIVERSAL,ae.Type.INTEGER,!1,Be.util.hexToBytes(u.serialNumber))]),ae.create(ae.Class.UNIVERSAL,ae.Type.SEQUENCE,!0,[ae.create(ae.Class.UNIVERSAL,ae.Type.OID,!1,ae.oidToDer(u.digestAlgorithm).getBytes()),ae.create(ae.Class.UNIVERSAL,ae.Type.NULL,!1,"")])]);if(u.authenticatedAttributesAsn1&&f.value.push(u.authenticatedAttributesAsn1),f.value.push(ae.create(ae.Class.UNIVERSAL,ae.Type.SEQUENCE,!0,[ae.create(ae.Class.UNIVERSAL,ae.Type.OID,!1,ae.oidToDer(u.signatureAlgorithm).getBytes()),ae.create(ae.Class.UNIVERSAL,ae.Type.NULL,!1,"")])),f.value.push(ae.create(ae.Class.UNIVERSAL,ae.Type.OCTETSTRING,!1,u.signature)),u.unauthenticatedAttributes.length>0){for(var d=ae.create(ae.Class.CONTEXT_SPECIFIC,1,!0,[]),_=0;_<u.unauthenticatedAttributes.length;++_){var x=u.unauthenticatedAttributes[_];d.values.push(Dc(x))}f.value.push(d)}return f}function ET(u){for(var f=[],d=0;d<u.length;++d)f.push(_T(u[d]));return f}function Dc(u){var f;if(u.type===Be.pki.oids.contentType)f=ae.create(ae.Class.UNIVERSAL,ae.Type.OID,!1,ae.oidToDer(u.value).getBytes());else if(u.type===Be.pki.oids.messageDigest)f=ae.create(ae.Class.UNIVERSAL,ae.Type.OCTETSTRING,!1,u.value.bytes());else if(u.type===Be.pki.oids.signingTime){var d=new Date("1950-01-01T00:00:00Z"),_=new Date("2050-01-01T00:00:00Z"),x=u.value;if(typeof x=="string"){var I=Date.parse(x);isNaN(I)?x.length===13?x=ae.utcTimeToDate(x):x=ae.generalizedTimeToDate(x):x=new Date(I)}x>=d&&x<_?f=ae.create(ae.Class.UNIVERSAL,ae.Type.UTCTIME,!1,ae.dateToUtcTime(x)):f=ae.create(ae.Class.UNIVERSAL,ae.Type.GENERALIZEDTIME,!1,ae.dateToGeneralizedTime(x))}return ae.create(ae.Class.UNIVERSAL,ae.Type.SEQUENCE,!0,[ae.create(ae.Class.UNIVERSAL,ae.Type.OID,!1,ae.oidToDer(u.type).getBytes()),ae.create(ae.Class.UNIVERSAL,ae.Type.SET,!0,[f])])}function ST(u){return[ae.create(ae.Class.UNIVERSAL,ae.Type.OID,!1,ae.oidToDer(Be.pki.oids.data).getBytes()),ae.create(ae.Class.UNIVERSAL,ae.Type.SEQUENCE,!0,[ae.create(ae.Class.UNIVERSAL,ae.Type.OID,!1,ae.oidToDer(u.algorithm).getBytes()),u.parameter?ae.create(ae.Class.UNIVERSAL,ae.Type.OCTETSTRING,!1,u.parameter.getBytes()):void 0]),ae.create(ae.Class.CONTEXT_SPECIFIC,0,!0,[ae.create(ae.Class.UNIVERSAL,ae.Type.OCTETSTRING,!1,u.content.getBytes())])]}function Qh(u,f,d){var _={},x=[];if(!ae.validate(f,d,_,x)){var I=new Error("Cannot read PKCS#7 message. ASN.1 object is not a supported PKCS#7 message.");throw I.errors=I,I}var E=ae.derToOid(_.contentType);if(E!==Be.pki.oids.data)throw new Error("Unsupported PKCS#7 message. Only wrapped ContentType Data supported.");if(_.encryptedContent){var M="";if(Be.util.isArray(_.encryptedContent))for(var S=0;S<_.encryptedContent.length;++S){if(_.encryptedContent[S].type!==ae.Type.OCTETSTRING)throw new Error("Malformed PKCS#7 message, expecting encrypted content constructed of only OCTET STRING objects.");M+=_.encryptedContent[S].value}else M=_.encryptedContent;u.encryptedContent={algorithm:ae.derToOid(_.encAlgorithm),parameter:Be.util.createBuffer(_.encParameter.value),content:Be.util.createBuffer(M)}}if(_.content){var M="";if(Be.util.isArray(_.content))for(var S=0;S<_.content.length;++S){if(_.content[S].type!==ae.Type.OCTETSTRING)throw new Error("Malformed PKCS#7 message, expecting content constructed of only OCTET STRING objects.");M+=_.content[S].value}else M=_.content;u.content=Be.util.createBuffer(M)}return u.version=_.version.charCodeAt(0),u.rawCapture=_,_}function rg(u){if(u.encryptedContent.key===void 0)throw new Error("Symmetric key not available.");if(u.content===void 0){var f;switch(u.encryptedContent.algorithm){case Be.pki.oids["aes128-CBC"]:case Be.pki.oids["aes192-CBC"]:case Be.pki.oids["aes256-CBC"]:f=Be.aes.createDecryptionCipher(u.encryptedContent.key);break;case Be.pki.oids.desCBC:case Be.pki.oids["des-EDE3-CBC"]:f=Be.des.createDecryptionCipher(u.encryptedContent.key);break;default:throw new Error("Unsupported symmetric cipher, OID "+u.encryptedContent.algorithm)}if(f.start(u.encryptedContent.parameter),f.update(u.encryptedContent.content),!f.finish())throw new Error("Symmetric decryption failed.");u.content=f.output}}var Gt=ht,$f=Gt.ssh=Gt.ssh||{};$f.privateKeyToPutty=function(u,f,d){d=d||"",f=f||"";var _="ssh-rsa",x=f===""?"none":"aes256-cbc",I="PuTTY-User-Key-File-2: "+_+`\r
`;I+="Encryption: "+x+`\r
`,I+="Comment: "+d+`\r
`;var E=Gt.util.createBuffer();ba(E,_),Oi(E,u.e),Oi(E,u.n);var M=Gt.util.encode64(E.bytes(),64),S=Math.floor(M.length/66)+1;I+="Public-Lines: "+S+`\r
`,I+=M;var A=Gt.util.createBuffer();Oi(A,u.d),Oi(A,u.p),Oi(A,u.q),Oi(A,u.qInv);var T;if(!f)T=Gt.util.encode64(A.bytes(),64);else{var D=A.length()+16-1;D-=D%16;var O=os(A.bytes());O.truncate(O.length()-D+A.length()),A.putBuffer(O);var j=Gt.util.createBuffer();j.putBuffer(os("\0\0\0\0",f)),j.putBuffer(os("\0\0\0",f));var $=Gt.aes.createEncryptionCipher(j.truncate(8),"CBC");$.start(Gt.util.createBuffer().fillWithByte(0,16)),$.update(A.copy()),$.finish();var W=$.output;W.truncate(16),T=Gt.util.encode64(W.bytes(),64)}S=Math.floor(T.length/66)+1,I+=`\r
Private-Lines: `+S+`\r
`,I+=T;var Q=os("putty-private-key-file-mac-key",f),X=Gt.util.createBuffer();ba(X,_),ba(X,x),ba(X,d),X.putInt32(E.length()),X.putBuffer(E),X.putInt32(A.length()),X.putBuffer(A);var Y=Gt.hmac.create();return Y.start("sha1",Q),Y.update(X.bytes()),I+=`\r
Private-MAC: `+Y.digest().toHex()+`\r
`,I};$f.publicKeyToOpenSSH=function(u,f){var d="ssh-rsa";f=f||"";var _=Gt.util.createBuffer();return ba(_,d),Oi(_,u.e),Oi(_,u.n),d+" "+Gt.util.encode64(_.bytes())+" "+f};$f.privateKeyToOpenSSH=function(u,f){return f?Gt.pki.encryptRsaPrivateKey(u,f,{legacy:!0,algorithm:"aes128"}):Gt.pki.privateKeyToPem(u)};$f.getPublicKeyFingerprint=function(u,f){f=f||{};var d=f.md||Gt.md.md5.create(),_="ssh-rsa",x=Gt.util.createBuffer();ba(x,_),Oi(x,u.e),Oi(x,u.n),d.start(),d.update(x.getBytes());var I=d.digest();if(f.encoding==="hex"){var E=I.toHex();return f.delimiter?E.match(/.{2}/g).join(f.delimiter):E}else{if(f.encoding==="binary")return I.getBytes();if(f.encoding)throw new Error('Unknown encoding "'+f.encoding+'".')}return I};function Oi(u,f){var d=f.toString(16);d[0]>="8"&&(d="00"+d);var _=Gt.util.hexToBytes(d);u.putInt32(_.length),u.putBytes(_)}function ba(u,f){u.putInt32(f.length),u.putString(f)}function os(){for(var u=Gt.md.sha1.create(),f=arguments.length,d=0;d<f;++d)u.update(arguments[d]);return u.digest()}var wT=ht;const Fn=Gs(wT),CT="LS0tLS1CRUdJTiBSU0EgUFVCTElDIEtFWS0tLS0tCk1JSUJDZ0tDQVFFQXNobjY4alc0REFsQlFnWTd6SDJXQkJvVlU4NUpEZWpwRDluOW44Rm9zWkZZR2U5Yk1KLy8KUkpFLzNnZklEcWI4eitUbTBUb3BLdTFjRUlwQ21zcGtvc1ZldFFFWGFJWHJRQUhvWExOK2FLZjc1MEV5RDhMTQprOXRia21EMnlkWnFWZVFWQUxLNmVaVit4akZqNm4rTXVqTWZadTVldnQ2ekdBY1FyZ2xtaXZEYkc2Y2l6SlF2ClV2WDZ5NXlxVDQvSkhJKzErM0xXT3ZJRnhKSW4vWHRyY2lRUTZZcmZsQWlSZzNWM1lMMTF2Ykc4dnAzZG4xSjEKRk1XOVRDUElwTStvRkRIc3hGcW1hbHltNXl1K2ZGSmRwYnIxLzUxMmRISkJSUW9UNUtLNXhOWVJ0eVQxNWttSgpLNXlWdjJUTDhrQS9QeUZ0SmJHVXVTeml5NmhxeHBtWVd3SURBUUFCCi0tLS0tRU5EIFJTQSBQVUJMSUMgS0VZLS0tLS0K",p0=["IoTrust Root","KR","Seoul","GangNam","IoTrust"],v0=["Wepin","KR","Seoul","GangNam","IoTrust"],ig={...Cr.pad};function AT(u,f,d,_){const x=Cr.enc.Hex.parse(u),I=Cr.enc.Hex.parse(f);return Cr.AES.encrypt(d,x,{iv:I,mode:Cr.mode.CBC,padding:ig[_]}).toString()}function BT(u,f,d,_){const x=Cr.enc.Hex.parse(u),I=Cr.enc.Hex.parse(f);return Cr.AES.decrypt(d,x,{iv:I,mode:Cr.mode.CBC,padding:ig[_]}).toString(Cr.enc.Utf8)}function IT(u){return Cr.lib.WordArray.random(u).toString(Cr.enc.Hex)}function TT(u,f){const d=new kC;return u.includes("BEGIN RSA PUBLIC KEY")?d.importKey(u,"pkcs1-public-pem"):d.importKey(u,"pkcs8-public-pem"),d.encrypt(f,"base64")}function ng(u){const f=MT(u),d=IT(32),_=TT(f,d);return{DEK:d,encryptedDEK:_}}function i1(){return new Error("invalid certificate")}function MT(u){const f=pe.Buffer.from(u,"base64").toString("utf8");if(f.includes("BEGIN RSA PUBLIC KEY"))return f;const d=f.split(/(?=-----BEGIN CERTIFICATE-----)/).filter(A=>A.trim()).map(A=>A.trim()+`
`),_=[];_.push(Fn.pki.certificateFromPem(d[0])),_.push(Fn.pki.certificateFromPem(d[1]));for(let A=d.length-1;A>0;A--)if(!_[A].verify(_[A-1]))throw i1();const x=_[0],I=_[d.length-1],E=Fn.pki.publicKeyFromPem(Fn.util.decode64(CT)),M=Fn.md.sha256.create();M.update(Fn.asn1.toDer(I.tbsCertificate).getBytes());const S=M.digest().getBytes();if(!E.verify(S,I.signature)||JSON.stringify(E)!==JSON.stringify(I.publicKey)||I.subject.attributes[0].value!==p0[0]||I.subject.attributes[1].value!==p0[1]||I.subject.attributes[2].value!==p0[2]||I.subject.attributes[3].value!==p0[3]||I.subject.attributes[4].value!==p0[4]||x.subject.attributes[0].value!==v0[0]||x.subject.attributes[1].value!==v0[1]||x.subject.attributes[2].value!==v0[2]||x.subject.attributes[3].value!==v0[3]||x.subject.attributes[4].value!==v0[4])throw i1();return Fn.pki.publicKeyToPem(x.publicKey)}const ag={pin:"Pkcs7",mnemonic:"Iso97971"},sg="00000000000000000000000000000000";function Hf(u,f,d){return AT(u,sg,f,ag[d])}function RT(u,f){return Hf(u,JSON.stringify(f),"pin")}function NT(u,f){return Hf(u,f,"mnemonic")}function fg(u,f,d){return BT(u,sg,f,ag[d])}function DT(u,f){return fg(u,f,"mnemonic")}async function OT(u,f){const{DEK:d,encryptedDEK:_}=ng(u),x=Hf(d,JSON.stringify(f),"pin");return{b64SKey:_,b64Data:x}}function PT(u){if(!/^\d{6,8}$/.test(u))throw new Error("Invalid UVD. UVD must be 6-8 digits.");return Cr.SHA256(u).toString(Cr.enc.Hex)}function LT(u){let f="";for(let d=0;d<u.length;d++)d===0?f+=u[0]:d===4?f+=u[4]:f+="*";return{version:1,length:pe.Buffer.from(u.length.toString(10),"utf8").toString("base64"),data:pe.Buffer.from(f,"utf8").toString("base64")}}class LoadNonceError extends Error{constructor(){super("Failed to load nonce."),this.name="LoadNonceError"}}const useWalletStore=defineStore("walletStore",()=>{const u=useWalletAPIStore(),f=useAccountAPIStore(),d=useCoinAPIStore(),_=useAccountTokenAPIStore(),x=useNFTAPIStore(),I=useUserAPIStore(),E=useSettingsStore(),M=ref(""),S=ref(),A=ref(),T=ref("");function D(et){M.value=et}function O(){return M.value}const j=et=>et?et.map($e=>WalletFactory.getInstance().makeWallet($e)):[],$=computed(()=>j(u.walletList)),W=et=>et?(d.filterCoinList&&d.filterCoinList.length>0&&(et=et.filter($e=>!d.filterCoinList?.map(Le=>Le.id)?.includes($e.coinId))),et.map($e=>AccountFactory.getInstance().makeAccount($e))):[],Q=computed(()=>W(f.accountList)),X=computed(()=>T.value?A.value?.length?A.value:k(T.value)?.accounts??[]:[]),Y=computed(()=>{if(!T.value)return[];if(S.value?.length)return S.value;const et=[];return k(T.value)?.accounts?.forEach(Le=>{et.push(Le),Le.tokens?.length&&et.push(...Le.tokens)}),et??[]}),ie=et=>{const $e=[];return et?et.map(Le=>AccountTokenFactory.getInstance().makeAccountToken(Le)):$e},oe=computed(()=>ie(_.accountTokenList)),ge=(et,$e)=>{switch(et){case"name":E.accountLayout.group?(A.value=X.value,A.value?.sort((Le,ot)=>Le.label[0].localeCompare(ot.label[0],"en"))):(S.value=Y.value,S.value.sort((Le,ot)=>Le.label[0].localeCompare(ot.label[0],"en")));break;case"balance":E.accountLayout.group?(A.value=X.value,A.value?.sort((Le,ot)=>new BigNumber$1(ot.amount.weiValue).gt(new BigNumber$1(Le.amount.weiValue))?1:new BigNumber$1(ot.amount.weiValue).eq(new BigNumber$1(Le.amount.weiValue))?0:-1)):(S.value=Y.value,S.value.sort((Le,ot)=>new BigNumber$1(ot.amount.weiValue).gt(new BigNumber$1(Le.amount.weiValue))?1:new BigNumber$1(ot.amount.weiValue).eq(new BigNumber$1(Le.amount.weiValue))?0:-1));break;case"recent":E.accountLayout.group?(A.value=X.value,A.value?.sort((Le,ot)=>$e[ot.getKey()][0]>$e[Le.getKey()][0]?1:$e[ot.getKey()][0]<$e[Le.getKey()][0]?-1:0)):(S.value=Y.value,S.value.sort((Le,ot)=>$e[ot.getKey()][0]>$e[Le.getKey()][0]?1:$e[ot.getKey()][0]<$e[Le.getKey()][0]?-1:0))}},be=et=>{const $e=[];return et?et.map(Le=>NftFactory.getInstance().makeNft(Le)):$e},ze=computed(()=>{const et=x.nftList;return be(et)}),de=et=>ze.value.find($e=>$e.id===et),Ce=async(et,$e)=>{const Le=PT(et);if(!Le)throw new Error("invalid pin");const ot=await I.getUserPubKey();if(!ot)throw new Error("No Publick Key");return await OT(ot.pubKey,{UVD:Le,nonce:$e})},ke=async(et,$e)=>{const Le=PT(et);if(!Le)throw new Error("invalid pin");const ot=await I.getUserPubKey();if(!ot)throw new Error("No Publick Key");const{DEK:Oe,encryptedDEK:Ne}=ng(ot.pubKey);return{b64Data:RT(Oe,{UVD:Le,nonce:$e}),b64SKey:Ne,DEK:Oe}},le=async({label:et,pin:$e,mnemonic:Le,account:ot})=>{const Oe=PT($e);if(!Oe)throw new Error("invalid pin");const Ne=await I.getUserPubKey();if(!Ne)throw new Error("No Public Key");const Fe=LT($e),Je=ng(Ne.pubKey);let Dt=Je.DEK;const oi=Je.encryptedDEK,Bt=RT(Dt,{UVD:Oe,nonce:0}),li=$.value.length===0,ii={wallet:{label:et,defaultWallet:li},account:ot,UVD:{b64Data:Bt,b64SKey:oi},hint:Fe};if(Le){if(!Dt)throw new Error("fail to enc Mnemonic ");ii.mnemonic=NT(Dt,Le),Dt=""}return u.createWallet(ii)},re=async(et,$e,Le)=>{const ot=await ri(et);if(typeof ot>"u")throw new LoadNonceError;const Oe=await ke($e,ot);if(!Oe.DEK)throw new Error("fail to make secure channel");const Ne=await u.backupWallet({walletId:et,UVD:{b64Data:Oe.b64Data,b64SKey:Oe.b64SKey},otpCode:Le}),Fe=DT(Oe.DEK,Ne);return Oe.DEK="",Fe},P=async(et,$e,Le,ot)=>{const Oe=PT($e);if(!Oe)throw new Error("invalid pin");const Ne=await I.getUserPubKey();if(!Ne)throw new Error("No Public Key");let Fe=await ri(et);if(Fe===void 0)throw new LoadNonceError;let Je=ng(Ne.pubKey),Dt=Je.DEK,oi=Je.encryptedDEK,Bt=RT(Dt,{UVD:Oe,nonce:Fe}),li={b64Data:Bt,b64SKey:oi};Fe++;let ii=ng(Ne.pubKey);Dt=ii.DEK,oi=ii.encryptedDEK,Bt=RT(Dt,{UVD:Oe,nonce:Fe});let Ot={b64Data:Bt,b64SKey:oi};await u.deleteWallet(et,{verifyUVD:li,deleteUVD:Ot,otpCode:Le},ot),Fe=0,Dt="",oi="",Je={DEK:"",encryptedDEK:""},ii={DEK:"",encryptedDEK:""},li={b64Data:"",b64SKey:""},Ot={b64Data:"",b64SKey:""}},k=et=>$.value?.find($e=>$e.id===et),B=()=>$.value?.find(et=>et.defaultWallet),z=et=>{T.value=et},ee=({walletId:et})=>k(et)?.accounts,H=({accountId:et})=>Q.value.find($e=>$e.id===et),q=({network:et})=>k(T.value)?.accounts.filter($e=>$e.coin?.network===et),J=async({walletId:et})=>{const $e=k(et)?.accounts;if(!$e)return"0";const Le=$e.reduce((ot,Oe)=>Number(ot.addressPath)>Number(Oe.addressPath)?ot:Oe).addressPath;return(Le?Number(Le)+1:0).toString()},U=({accountId:et})=>{const $e=H({accountId:et});if(!$e)throw new Error("Can't find account");return $e.tokens},Z=et=>et.accountTokenId,ve=et=>Z(et)?Ye(et.accountTokenId):rt(et.accountId,et.tokenId),Ye=et=>oe.value.find($e=>$e.id===et),rt=(et,$e)=>H({accountId:et})?.tokens?.find(Le=>Le.tokenId===$e),Ue=ref([]),Qe=et=>{const $e=Ue.value.find(Le=>Le.key===et);return $e?.status!==void 0?$e.status:REFRESH_STATUS_DEFAULT},vt=({walletId:et,status:$e})=>{const Le=Ue.value.find(ot=>ot.key===et);if(Le&&$e===REFRESH_STATUS_DISABLED&&setTimeout(()=>{Le.status=REFRESH_STATUS_DEFAULT},consecusiveReqDelay),Le)return Le.status=$e;Ue.value.push({key:et,status:$e})},ri=async et=>{if(typeof et>"u"||et===null)return 0;const $e=await u.fetchWalletCoreKeyInfo(et);if($e)return $e.nonce};return{walletList:$,accountList:Q,accountTokenList:oe,nftList:ze,selectedWalletId:T,setSelectedWalletId:z,sortAccountList:ge,getWallet:k,getDefaultWallet:B,getAccountList:ee,getAccount:H,getAccountListFilteringByNetwork:q,getNextAddressPath:J,getTokenList:U,getAccountToken:ve,getNonce:ri,createWallet:le,deleteWallet:P,backupWallet:re,encryptPIN:Ce,encryptPINIncluedDEK:ke,fullAccountList:Y,groupAccountList:X,tempFullAccountList:S,tempGroupAccountList:A,setMnemonic:D,getMnemonic:O,refreshStatus:Ue,getRefreshStatus:Qe,setRefresh:vt,getNft:de,reset:()=>{M.value="",S.value=void 0,A.value=void 0,T.value=""},getVerifyPin:async(et,$e)=>{const Le=await ri(et);if(typeof Le>"u")throw new LoadNonceError;const ot=await Ce($e,Le),Oe=await u.verifyPin(et,ot);if(Oe)return Oe}}}),_hoisted_1$2={class:"list-edit"},_hoisted_2$1={class:"list-draggable"},_hoisted_3$1={class:"container"},_hoisted_4={class:"button-group"},_sfc_main$3=defineComponent({__name:"EditList",emits:["close"],setup(u,{emit:f}){const{t:d}=useI18nTypes(),_=f,x=useWalletStore(),I=useAccountAPIStore(),E=ref(x.getWallet(x.selectedWalletId)?.accounts);watch(()=>x.selectedWalletId,()=>{E.value=x.getWallet(x.selectedWalletId)?.accounts});const M=ref(0),S=ref(!1),A=()=>{S.value=!1;const j=document.querySelector(".dashboard-main");j.style.removeProperty("overflow"),j.style.removeProperty("position"),j.style.removeProperty("width"),j.style.removeProperty("top"),window.scrollTo(0,M.value)},T=()=>!0,D=j=>{j.preventDefault(),S.value=!0};onUnmounted(()=>{S.value&&A()});const O=async()=>{await I.updateAccountList({walletId:x.selectedWalletId,updateList:E.value?.map((j,$)=>({accountId:j.id,order:$,defaultAccount:j.defaultAccount??void 0}))??[]}),_("close"),A()};return useKeyDown({confirm:O}),(j,$)=>(openBlock(),createElementBlock("div",_hoisted_1$2,[createVNode(unref(BasicHeader),{title:unref(d)("edit_list.title"),exit:()=>_("close")},null,8,["title","exit"]),createBaseVNode("div",_hoisted_2$1,[createVNode(unref(vuedraggable_umdExports),{modelValue:E.value,"onUpdate:modelValue":$[0]||($[0]=W=>E.value=W),"item-key":"id",handle:".handle","ghost-class":"ghost",animation:"500",move:T,direction:"vertical","scroll-sensitivity":250,"force-fallback":!0,onStart:D},{item:withCtx(({element:W})=>[createBaseVNode("div",_hoisted_3$1,[createVNode(EditListItem,{account:W,"is-token":!1},null,8,["account"])])]),_:1},8,["modelValue"])]),createBaseVNode("div",_hoisted_4,[createVNode(unref(BBB),{onCancel:$[1]||($[1]=()=>_("close")),onConfirm:O})])]))}}),EditList=_export_sfc(_sfc_main$3,[["__scopeId","data-v-d8c1be20"]]),EditList$1=Object.freeze(Object.defineProperty({__proto__:null,default:EditList},Symbol.toStringTag,{value:"Module"})),_hoisted_1$1={class:"popup-body"},createShowSettings=(u,f,d)=>defineComponent(()=>()=>h$1(ShowSettings,{"onSelect-route":u,changeLayout:f,editList:d})),_sfc_main$2=defineComponent({__name:"ShowSettings",props:{changeLayout:{},editList:{}},emits:["select-route","close"],setup(u,{emit:f}){const{breakPointsClass:d}=useBreakPointsClass(defaultBreakPoints),_=f,x=u,{t:I}=useI18nTypes(),E=ref([{type:"item",name:I("show_settings.layout"),element:{name:"GridView",size:"medium",color:colors.currentThemeRef.value.grey_111},button:{type:"element",name:"Right",size:"medium",color:colors.currentThemeRef.value.grey_111},onClick(){_("select-route",x.changeLayout)}},{type:"item",name:I("show_settings.edit_list"),element:{name:"FormatLineSpacing",size:"medium",color:"#000000"},button:{type:"element",name:"Right",size:"medium",color:colors.currentThemeRef.value.grey_111},onClick(){_("select-route",x.editList)}}]),M=()=>{_("close")};return(S,A)=>(openBlock(),createElementBlock("div",{class:normalizeClass(["show-settings",[unref(d)]])},[createVNode(unref(BasicHeader),{title:unref(I)("show_settings.title"),exit:M},null,8,["title"]),createBaseVNode("div",_hoisted_1$1,[createVNode(unref(PopupList),{items:E.value},null,8,["items"])])],2))}}),ShowSettings=_export_sfc(_sfc_main$2,[["__scopeId","data-v-f2eb2734"]]),ShowSettings$1=Object.freeze(Object.defineProperty({__proto__:null,createShowSettings,default:ShowSettings},Symbol.toStringTag,{value:"Module"})),useTransactionStore=defineStore("transaction",()=>{const u=useTransactionAPIStore(),f=computed(()=>Object.values(u.transactionListByAccountId).flat().map(E=>{if(E)return new Transaction(E)}).filter(E=>!!E)),d=computed(()=>Object.values(u.transactionListByAccountTokenId).flat().map(E=>Object.values(E)).flat(2).map(E=>{if(E)return new Transaction(E)}).filter(E=>!!E));return{accountTransactionList:f,accountTokenTransactionList:d,getTransactionList:E=>E.accountTokenId?d.value.filter(M=>M.accountId===E.accountId&&M.accountTokenId===E.accountTokenId):f.value.filter(M=>M.accountId===E.accountId),getTransactionById:E=>E.accountTokenId?d.value.find(M=>M.id===E.txId):f.value.find(M=>M.id===E.txId),getTransactionByTxid:E=>E.accountTokenId?d.value.find(M=>M.txid===E.txId):f.value.find(M=>M.txid===E.txId)}}),_hoisted_1={class:"sort-account"},_hoisted_2={class:"sort-list"},_hoisted_3=["onClick"],_sfc_main$1=defineComponent({__name:"SortAccounts",emits:["close"],setup(u,{emit:f}){const{t:d}=useI18nTypes(),_=f,x=useWalletStore(),I=useSettingsStore(),E=useTransactionStore(),M=computed(()=>!x.groupAccountList.length||!x.fullAccountList.length?[]:I.accountLayout.group?x.groupAccountList:x.fullAccountList);onMounted(async()=>{await Promise.all(M.value.map(O=>O.fetchTransactionList()))});const S=computed(()=>{const O={};return E.accountTransactionList.forEach(j=>{const $="account"+j.accountId;O[$]?O[$].push(j.createDate):O[$]=[j.createDate]}),I.accountLayout.group||E.accountTokenTransactionList.forEach(j=>{if(!(j instanceof Transaction)||!(j.account instanceof Account))return;const $="accountToken"+j.account?.tokens?.find(W=>W.tokenId===parseInt(j.accountTokenId))?.id;O[$]?O[$].push(j.createDate):O[$]=[j.createDate]}),Object.keys(O).forEach(j=>{O[j].sort(($,W)=>W>$?1:W<$?-1:0),O[j]=[O[j][0]]}),M.value.forEach(j=>{const $=j.getKey();O[$]||(O[$]=["0"])}),O}),A=ref(),T=[{id:"name",text:d("sort_account.name")},{id:"balance",text:d("sort_account.balance")},{id:"recent",text:d("sort_account.recent")}],D=O=>{A.value=O,x.sortAccountList(O,S.value)};return(O,j)=>(openBlock(),createElementBlock("div",_hoisted_1,[createVNode(unref(BasicHeader),{title:unref(d)("sort_account.title"),exit:()=>_("close")},null,8,["title","exit"]),createBaseVNode("ul",_hoisted_2,[(openBlock(),createElementBlock(Fragment,null,renderList(T,$=>createBaseVNode("li",{key:$.id,class:normalizeClass(["sort-item",A.value===$.id?"selected":""]),onClick:W=>D($.id)},[createTextVNode(toDisplayString$2($.text)+" ",1),withDirectives(createVNode(unref(Element$1),{name:"Check",color:unref(colors).currentThemeRef.value.main},null,8,["color"]),[[vShow,A.value===$.id]])],10,_hoisted_3)),64))])]))}}),SortAccount=_export_sfc(_sfc_main$1,[["__scopeId","data-v-6c280a52"]]),SortAccounts=Object.freeze(Object.defineProperty({__proto__:null,default:SortAccount},Symbol.toStringTag,{value:"Module"})),showSettingRoutes=[{name:"ShowSettings",component:ShowSettings},{name:"ChangeLayout",component:ChangeLayout},{name:"SortAccounts",component:SortAccount},{name:"EditList",component:EditList}],selectShowSettingRoute=u=>({name:u.name,path:u.path??"setting",component:createShowSettings(u.onSelectRoute,getName("ChangeLayout",u.rootName),getName("EditList",u.rootName)),props:!0}),walletShowSettingRoute=u=>selectShowSettingRoute({name:getName("showSetting",u),rootName:u,onSelectRoute(f){router.replace({name:f})}}),settingViewRoute=u=>showSettingRoutes.map(f=>({name:getName(f.name,u),path:`setting/${f.name}`,component:()=>__variableDynamicImportRuntimeHelper(Object.assign({"../../views/dashboard/show_settings/ChangeLayout.vue":()=>__vitePreload(()=>Promise.resolve().then(()=>ChangeLayout$1),void 0),"../../views/dashboard/show_settings/EditList.vue":()=>__vitePreload(()=>Promise.resolve().then(()=>EditList$1),void 0),"../../views/dashboard/show_settings/EditListItem.vue":()=>__vitePreload(()=>Promise.resolve().then(()=>EditListItem$1),void 0),"../../views/dashboard/show_settings/ShowSettings.vue":()=>__vitePreload(()=>Promise.resolve().then(()=>ShowSettings$1),void 0),"../../views/dashboard/show_settings/SortAccounts.vue":()=>__vitePreload(()=>Promise.resolve().then(()=>SortAccounts),void 0)}),`../../views/dashboard/show_settings/${f.name}.vue`)})),getName=(u,f)=>f?f+"_"+u:u,backupWalletRoutes=[{path:":walletId/backupWalletConfirmCaution",name:"backup_confirm_caution",component:()=>__vitePreload(()=>import("./ConfirmCaution-gAc1ISn7.js"),__vite__mapDeps([78,4,79])),meta:{PageTitle:"wallet_manage.backup_process.title"}},{path:":walletId/backupWalletInputPin",name:"backup_wallet_pin",component:()=>__vitePreload(()=>import("./BackupWalletPin-sxqbnJl9.js"),__vite__mapDeps([80,72,5,6,7,4,3,81])),meta:{PageTitle:"wallet_manage.backup_process.title"}},{path:":walletId/backupWalletViewMnemonic",name:"backup_wallet_view_mnemonic",component:()=>__vitePreload(()=>import("./BackupWalletViewMnemonic-arAOv1LN.js"),__vite__mapDeps([82,4,83])),meta:{PageTitle:"wallet_manage.backup_process.title"}},{path:":walletId/backupWalletSortMnemonic",name:"backup_wallet_sort_mnemonic",component:()=>__vitePreload(()=>import("./BackupWalletSortMnemonic-I-NrgdVc.js"),__vite__mapDeps([84,4,85])),meta:{PageTitle:"wallet_manage.backup_process.title"}},{path:":walletId/backupWalletComplete",name:"backup_wallet_complete",component:()=>__vitePreload(()=>import("./BackupWalletComplete-oGavVjhI.js"),__vite__mapDeps([86,87,88])),meta:{PageTitle:"wallet_manage.backup_process.title"}}],deleteWalletRoutes=[{path:"wallet/:walletId/deleteWalletExec",name:"delete_wallet_Exec",component:()=>__vitePreload(()=>import("./DeleteWalletExec-CeeYesPf.js"),__vite__mapDeps([89,72,5,6,7,4,3,90])),meta:{PageTitle:"wallet_manage.delete_wallet.title"}},{path:"wallet/:walletId/deleteWalletComplete/:label",name:"delete_wallet_complete",component:()=>__vitePreload(()=>import("./DeleteWalletComplete-oOAgRapL.js"),__vite__mapDeps([91,92])),meta:{PageTitle:"wallet_manage.delete_wallet.title"}}],unlockWalletRoute={path:"unlock/pin",name:"unlock_pin_wallet",component:()=>__vitePreload(()=>import("./UnlockWalletPin-jt_44hCr.js"),__vite__mapDeps([93,5,6,7,4,94]))},unlockWalletNFTRoute={path:"unlock/pin",name:"unlock_pin_nft",component:()=>__vitePreload(()=>import("./UnlockWalletPin-jt_44hCr.js"),__vite__mapDeps([93,5,6,7,4,94]))},unlockWalletAccountRoute={path:"unlock/pin",name:"unlock_pin_account",component:()=>__vitePreload(()=>import("./UnlockWalletPin-jt_44hCr.js"),__vite__mapDeps([93,5,6,7,4,94]))},unlockWalletNFTDetailRoute={path:"unlock/pin",name:"unlock_pin_nft_detail",component:()=>__vitePreload(()=>import("./UnlockWalletPin-jt_44hCr.js"),__vite__mapDeps([93,5,6,7,4,94]))},transactionDetailRoutes=[{path:"transactionDetail/:transactionId",name:"transaction_detail",component:()=>__vitePreload(()=>import("./TransactionDetail-VdTggBzZ.js"),__vite__mapDeps([95,96])),props:!0}],sendCoinRoutes=[{path:"wallet/send/coin",name:"send_coin",component:()=>__vitePreload(()=>import("./SendCoinMain-y4vnF3GJ.js"),__vite__mapDeps([97,1,2,98,99])),children:[{path:":walletId/select_account",name:"send_coin_select_account",component:()=>__vitePreload(()=>import("./SelectAccount-lmeA0dzZ.js"),__vite__mapDeps([100,4,101])),meta:{PageTitle:"initial_screen.emphasis"}},{path:"fee_routing",name:"send_coin_fee_routing",component:()=>__vitePreload(()=>import("./FeeRoutingMiddleware-0jNYjZBH.js"),__vite__mapDeps([102,103,104,4,105])),meta:{PageTitle:"my_wallet.send"}},{path:"set_amount",name:"send_coin_set_amount",component:()=>__vitePreload(()=>import("./SetAmount-Ka6Seg-r.js"),__vite__mapDeps([106,103,104,4,107,108])),meta:{PageTitle:"my_wallet.send"}},{path:"confirmation",name:"send_coin_confirmation",component:()=>__vitePreload(()=>import("./ConfirmCoin-ou9u9tD3.js"),__vite__mapDeps([109,103,104,4,107,110])),meta:{PageTitle:"my_wallet.send"}},{path:"input_pin",name:"send_coin_input_pin",component:()=>__vitePreload(()=>import("./SendCoinPin-I4AvMN4Q.js"),__vite__mapDeps([111,103,104,72,5,6,7,4,3,112])),meta:{PageTitle:"my_wallet.send"}}]},{path:"wallet/:walletId/send/coin",name:"wallet_send_coin",component:()=>__vitePreload(()=>import("./SendCoinMain-y4vnF3GJ.js"),__vite__mapDeps([97,1,2,98,99])),children:[{path:"destination-select",name:"send_coin_destination",component:()=>__vitePreload(()=>import("./InputDestination-nXvMJ-KO.js"),__vite__mapDeps([113,103,104,6,4,107,114])),meta:{PageTitle:"my_wallet.send"}}]},{path:"wallet/send/coin/network_fee",name:"send_coin_network_fee",component:()=>__vitePreload(()=>import("./SelectNetworkFee-2K2ldZk_.js"),__vite__mapDeps([115,103,104,4,116])),meta:{PageTitle:"my_wallet.send"}},{path:"wallet/send/coin/custom_fee_evm",name:"send_coin_network_custom_fee_evm",component:()=>__vitePreload(()=>import("./CustomNetworkFee-oXwS4m3E.js"),__vite__mapDeps([117,103,104,4,118])),meta:{PageTitle:"my_wallet.send"}},{path:"wallet/send/coin/complete",name:"send_coin_complete",component:()=>__vitePreload(()=>import("./SendCoinComplete-PI_cyLv1.js"),__vite__mapDeps([119,1,2,103,104,120])),meta:{PageTitle:"my_wallet.send"}}],sendNFTRoutes=[{path:"nft/send/nft",name:"send_nft",component:()=>__vitePreload(()=>import("./SendNFTMain-6dP2dBUi.js"),__vite__mapDeps([121,1,2,98,122])),children:[{path:"destination",name:"send_nft_destination",component:()=>__vitePreload(()=>import("./InputDestination-nXvMJ-KO.js"),__vite__mapDeps([113,103,104,6,4,107,114])),meta:{PageTitle:"nft.nft_send"}},{path:"fee_routing",name:"send_nft_fee_routing",component:()=>__vitePreload(()=>import("./FeeRoutingMiddleware-Q2jgBKn-.js"),__vite__mapDeps([123,103,104,4,124])),meta:{PageTitle:"nft.nft_send"}},{path:"select_network_fee",name:"send_nft_network_fee",component:()=>__vitePreload(()=>import("./SelectNetworkFee-ZvCbaTd7.js"),__vite__mapDeps([125,103,104,4,126])),meta:{PageTitle:"nft.nft_send"}},{path:"custom_fee_evm",name:"send_nft_network_custom_fee_evm",component:()=>__vitePreload(()=>import("./CustomNetworkFee-GnJMK0Qs.js"),__vite__mapDeps([127,103,104,4,128])),meta:{PageTitle:"nft.nft_send"}},{path:"confirmation",name:"send_nft_confirmation",component:()=>__vitePreload(()=>import("./ConfirmNFT-2WgAKdGa.js"),__vite__mapDeps([129,103,104,130,4,107,131])),meta:{PageTitle:"nft.nft_send"}},{path:"input_pin",name:"send_nft_input_pin",component:()=>__vitePreload(()=>import("./SendNFTPin-9iVwhCU0.js"),__vite__mapDeps([132,103,104,72,5,6,7,4,3,133])),meta:{PageTitle:"nft.nft_send"}}]},{path:"nft/:walletId/detail/send/nft",name:"wallet_send_nft",component:()=>__vitePreload(()=>import("./SendNFTMain-6dP2dBUi.js"),__vite__mapDeps([121,1,2,98,122])),children:[{path:"select-nft",name:"send_nft_select",component:()=>__vitePreload(()=>import("./SelectNFT-OEKDr8n0.js"),__vite__mapDeps([134,103,104,130,4,135])),meta:{PageTitle:"nft.nft_send"}}]},{path:"nft/send/nft/complete",name:"send_nft_complete",component:()=>__vitePreload(()=>import("./SendNFTComplete-xRrHBMrw.js"),__vite__mapDeps([136,1,2,103,104,130,137])),meta:{PageTitle:"nft.nft_send"}}],otpSettingRoutes=[{path:"setting/otp",name:"otp_start",component:()=>__vitePreload(()=>import("./OtpSettingStart-NH1q-BpA.js"),__vite__mapDeps([138,24,139])),props:!0,meta:{PageTitle:"dashboard_title.setting_2fa"}},{path:"setting/otp-set-complete",name:"otp_complete",component:()=>__vitePreload(()=>import("./OtpSettingComplete-TIUA7Gyr.js"),__vite__mapDeps([140,24,141])),props:!0,meta:{PageTitle:"dashboard_title.setting_2fa"}},{path:"setting/otp_unset",name:"otp_unset",component:()=>__vitePreload(()=>import("./DisableOtp-WaI10Sua.js"),__vite__mapDeps([142,3,4,143])),props:!0,meta:{PageTitle:"dashboard_title.unsetting_2fa"}},{path:"setting/recovery_code",name:"recovery_code",component:()=>__vitePreload(()=>import("./RecoveryCodeCheck-wBya_-0h.js"),__vite__mapDeps([144,13,3,4,145])),props:!0,meta:{PageTitle:"dashboard_title.check_recoverycode"}},{path:"setting/otp_setting",name:"otp_setting",component:()=>__vitePreload(()=>import("./Setting-iqZdsPbr.js"),__vite__mapDeps([146,147])),children:[{path:"app_install",name:"otp_app_install",component:()=>__vitePreload(()=>import("./AppInstall-BWTkgUMI.js"),__vite__mapDeps([148,149])),meta:{PageTitle:"dashboard_title.regist_otp"}},{path:"verify_qr",name:"otp_verify_qr",component:()=>__vitePreload(()=>import("./VerifyQR-xfR7J1KD.js"),__vite__mapDeps([150,151])),meta:{PageTitle:"dashboard_title.regist_otp"}},{path:"verify_code",name:"otp_verify_code",component:()=>__vitePreload(()=>import("./VerifyCode-mtRZ-WGH.js"),__vite__mapDeps([152,153])),meta:{PageTitle:"dashboard_title.regist_otp"}}],props:!0}],settingRoutes=[{path:"setting",name:"setting",component:()=>__vitePreload(()=>import("./SettingMain-xbtmUfb5.js"),__vite__mapDeps([154,155])),redirect:"/dashboard/setting/profile",children:[{path:"profile",name:"profile_setting",component:()=>__vitePreload(()=>import("./ProfileSetting-FUNqqTHS.js"),__vite__mapDeps([156,4,157])),meta:{PageTitle:"setting.title"}},{path:"service",name:"service_setting",component:()=>__vitePreload(()=>import("./ServiceSetting-HHCfc3sw.js"),__vite__mapDeps([158,4,159])),meta:{PageTitle:"setting.title"}},{path:"security",name:"security_setting",component:()=>__vitePreload(()=>import("./SecuritySetting-f9aXY1_u.js"),__vite__mapDeps([160,161])),meta:{PageTitle:"setting.title"}}]}],router=createRouter({history:createWebHistory("/"),routes:[{path:"/:catchAll(.*)",redirect:"/dashboard"},{path:"/signin",name:"signin",component:()=>__vitePreload(()=>import("./SigninView-kYTiryba.js"),__vite__mapDeps([162,72,24,163,164,55,165]))},{path:"/signin/email",name:"signin_with_email",component:()=>__vitePreload(()=>import("./SigninEmail-WzIpezVH.js"),__vite__mapDeps([166,167,22,168]))},{path:"/signin/password",name:"signin_with_email_set_password",component:()=>__vitePreload(()=>import("./SigninPassword-ZHPLoF00.js"),__vite__mapDeps([169,31,20,18,167,170]))},{path:"/signin/oauth/before-oauth",name:"before_oauth",component:()=>__vitePreload(()=>import("./BeforeOAuth-zf86o8kU.js"),__vite__mapDeps([171,172]))},{path:"/signin/oauth/:provider/redirect",name:"oauth_redirect",component:()=>__vitePreload(()=>import("./RedirectHandler-pfSuqNJa.js"),__vite__mapDeps([173,72])),props:!0},{path:"/signin/oauth_redirect",name:"oauth_redirect",component:()=>__vitePreload(()=>import("./OAuthRedirectHandler-OV7lo4_e.js"),__vite__mapDeps([174,72])),props:!0},{path:"/signup/complete/sdk",name:"signup_complete_sdk",component:()=>__vitePreload(()=>import("./SignupCompleteSdk-d6fzrQc2.js"),__vite__mapDeps([175,176]))},{path:"/reset/email",name:"reset_with_email",component:()=>__vitePreload(()=>import("./ResetEmail-OgaFqkYt.js"),__vite__mapDeps([177,167,22,178]))},{path:"/reset/password",name:"reset_with_password",component:()=>__vitePreload(()=>import("./ResetPassword-GXVAKv4m.js"),__vite__mapDeps([179,31,20,167,22,180]))},{path:"/reset/password/complete",name:"reset_password_complete",component:()=>__vitePreload(()=>import("./ResetComplete-C4Vv74du.js"),__vite__mapDeps([181,167,182]))},{path:"/reset/email/authentication",name:"reset_with_email_authentication",component:()=>__vitePreload(()=>import("./Authentication-Co1Dg0sV.js"),__vite__mapDeps([183,28,167,22,184]))},{path:"/signup/promotion",name:"signup_promotion",component:()=>__vitePreload(()=>import("./LinkSignupView-njymf1xF.js"),__vite__mapDeps([185,18,19,20,14,21,22,186])),children:[{path:"login_select",name:"link_signup_selecter",component:()=>__vitePreload(()=>import("./LinkSignupSelector-SilrgsT1.js"),__vite__mapDeps([187,18,19,20,14,21,22,55,188]))},{path:"login_email",name:"link_signin_email",component:()=>__vitePreload(()=>import("./LinkSigninEmail-p4vFWVws.js"),__vite__mapDeps([189,18,19,20,14,21,22,190]))},{path:"authentication",name:"link_signup_with_email_authentication",component:()=>__vitePreload(()=>import("./LinkSignupAuth-iuUpItj_.js"),__vite__mapDeps([191,18,192,31,28,22,21,193,194]))},{path:"set_password",name:"link_signup_with_email_set_password",component:()=>__vitePreload(()=>import("./LinkSignupSetPassword-cf6JIUI4.js"),__vite__mapDeps([195,58,31,18,21,22,59,19,20,14,196]))},{path:"set_pin",name:"link_signup_with_email_set_pin",component:()=>__vitePreload(()=>import("./LinkSignupSetPin-lNlfBZGh.js"),__vite__mapDeps([197,18,19,20,14,21,22,23,198]))},{path:"create_account",name:"link_signup_create_account",component:()=>__vitePreload(()=>import("./LinkSignupCreateAccount-co6jTM4b.js"),__vite__mapDeps([199,5,6,18,19,20,14,21,22,200]))}]},{path:"/signup/email",name:"signup_with_email",component:()=>__vitePreload(()=>import("./SignupView-vTjIdX2u.js"),__vite__mapDeps([201,163,202])),redirect:"/signup/email/set_email",children:[{path:"set_email",name:"signup_with_email_set_email",component:()=>__vitePreload(()=>import("./SignupEmail-z1hqCo8u.js"),__vite__mapDeps([203,22,204]))},{path:"authentication",name:"signup_with_email_authentication",component:()=>__vitePreload(()=>import("./SignupAuthentication-dgCv3JZm.js"),__vite__mapDeps([192,31,18,28,22,21,193]))},{path:"set_password",name:"signup_with_email_set_password",component:()=>__vitePreload(()=>import("./SignupPassword-zG6Z9uky.js"),__vite__mapDeps([205,58,31,18,21,22,59,206]))}]},{path:"/signup/set_pin",name:"signup_with_email_set_pin",component:()=>__vitePreload(()=>import("./SignupPin-arsMtswa.js"),__vite__mapDeps([207,23,163,208]))},{path:"/error/sign",name:"sign_error",component:()=>__vitePreload(()=>import("./error-zRPt4CTU.js"),__vite__mapDeps([209,167,210]))},{path:"/error/502",name:"error_502",component:()=>__vitePreload(()=>import("./error502-3swobXQ-.js"),__vite__mapDeps([211,167,212]))},{path:"/error/423",name:"error_423",component:()=>__vitePreload(()=>import("./error423-CL_UfgkJ.js"),__vite__mapDeps([213,214,6,215]))},{path:"/coming_soon",name:"coming_soon",component:()=>__vitePreload(()=>import("./ComingSoon-9sBEymYx.js"),__vite__mapDeps([216,214,217]))},{path:"/dashboard",component:()=>__vitePreload(()=>import("./DashBoard-acTPLueb.js"),__vite__mapDeps([218,1,2,72,5,6,219])),redirect:"/dashboard/detail/asset",children:[{path:"detail",name:"detail",redirect:"/dashboard/detail/asset",component:()=>__vitePreload(()=>import("./DashBoardDetailView-og3dRu5c.js"),__vite__mapDeps([220,221,164,222,13,223])),children:[{path:"nft",name:"dashboard_detail_nft_tap",component:()=>__vitePreload(()=>import("./TabNft-2MUJMJ3R.js"),__vite__mapDeps([224,225,226,227,221,164,228,229,230])),props:!1},{path:"asset",name:"dashboard_detail_asset_tap",component:()=>__vitePreload(()=>import("./TabAsset-Tg72wudF.js"),__vite__mapDeps([231,104,5,6,232,233,221,164,228,234])),props:!1,children:[walletShowSettingRoute("detail_asset"),...settingViewRoute("detail_asset")]},{path:"app/:appId?",name:"dashboard_detail_app_tap",component:()=>__vitePreload(()=>import("./TabApp-sQotWt0P.js"),__vite__mapDeps([235,164,104,232,222,225,226,227,229,236])),props:!0}]},{path:"wallet",name:"wallet",component:()=>__vitePreload(()=>import("./WalletView-vhkWoaru.js"),__vite__mapDeps([237,5,6,238,239,13,240])),children:[{path:":walletId",name:"wallet_detail",component:()=>__vitePreload(()=>import("./WalletDetailView-gjyqw7l1.js"),__vite__mapDeps([241,1,2,104,242,5,6,232,233,226,229,243])),children:[walletReceiveSelectAddressRoute,receiveQrViewRoute("wallet_receive_account_qrview","receive/qrview/account"),{path:"CreateWalletTypeSelect",name:"create_wallet_type_select",component:()=>__vitePreload(()=>import("./CreateWalletStarter-jSdFpBvA.js"),__vite__mapDeps([244,245])),props:!1},{path:"RecoverWallet/:label/:isDefault",name:"create_wallet_type_recover",component:()=>__vitePreload(()=>import("./RecoverWallet-RR_ghCzR.js"),__vite__mapDeps([246,247])),props:!1},{path:"RecoverWalletSetLabel",name:"recover_wallet_set_label",component:()=>__vitePreload(()=>import("./RecoverWalletLabelInput-1kyanfzF.js"),__vite__mapDeps([248,249])),props:!1},{path:"RecoverWalletSetPin/:label/:isDefault",name:"recover_wallet_set_pin",component:()=>__vitePreload(()=>import("./RecoverWalletPinInput-7kABy9pS.js"),__vite__mapDeps([250,24,251])),props:!1},{path:"RecoverWalletComplete/:label/:complete",name:"recover_wallet_complete",component:()=>__vitePreload(()=>import("./RecoverWalletComplete-R9k9b4gq.js"),__vite__mapDeps([252,87,253])),props:!1},{path:"delete/deleteWalletStart",name:"delete_wallet_start",component:()=>__vitePreload(()=>import("./DeleteWalletStart-pmC-SJKe.js"),__vite__mapDeps([254,255]))},unlockWalletRoute,walletManageRoute,changeWalletLabelViewRoute("change_wallet_label","manage/change/label"),walletShowSettingRoute(),...settingViewRoute(),walletAddAccountCoinListRoute,walletAddAccountInputLabelRoute,walletAddAccountCreateParentNetworkRoute,walletAddAccountSelectParentAccountRoute,walletAddAccountInputPinRoute({name:"wallet_account_pin"})]}]},{path:"account",name:"accountDetail",component:()=>__vitePreload(()=>import("./AccountDetail-sCGNZjoi.js"),__vite__mapDeps([256,2,104,242,31,5,6,226,227,238,13,257])),children:[accountManageRoute,...accountManageViewRoutes(),...transactionDetailRoutes,unlockWalletAccountRoute,receiveQrViewRoute("account_receive_account_qrview")],props:!0},{path:"nft",name:"nft",component:()=>__vitePreload(()=>import("./NftView-lmKAPkpd.js"),__vite__mapDeps([258,5,6,238,239,13,259])),children:[{path:":walletId",name:"nft_home",component:()=>__vitePreload(()=>import("./NftCollectionView-raKKgoyk.js"),__vite__mapDeps([260,225,226,227,229,261])),children:[nftReceiveSelectAddressRoute,receiveQrViewRoute("nft_receive_account_qrview"),nftAddAccountCoinListRoute,nftAddAccountInputLabelRoute,nftAddAccountCreateParentNetworkRoute,nftAddAccountSelectParentAccountRoute,nftAddAccountInputPinRoute({name:"nft_account_pin"}),unlockWalletNFTRoute],props:!0},{path:":walletId/detail",name:"nft_detail",component:()=>__vitePreload(()=>import("./NftDetailView-_AFaN-nU.js"),__vite__mapDeps([262,1,2,31,5,6,229,263])),children:[unlockWalletNFTDetailRoute],props:!0},{path:"referral/dashboard",name:"referral_dashboard",component:()=>__vitePreload(()=>import("./PromotionReferralDashBoard-zACoxY17.js"),__vite__mapDeps([264,18,229,265])),props:!0}]},{path:"my-project",name:"my-project",component:()=>__vitePreload(()=>import("./ComingSoon-9sBEymYx.js"),__vite__mapDeps([216,214,217]))},{path:"recommended-project",name:"recommended-project",component:()=>__vitePreload(()=>import("./ComingSoon-9sBEymYx.js"),__vite__mapDeps([216,214,217]))},{path:"wallet/backup_wallet",name:"backup_wallet_container",component:()=>__vitePreload(()=>import("./BackupWalletMain-Jyqok7oc.js"),__vite__mapDeps([266,267])),children:[...backupWalletRoutes]},{path:"drops",name:"drops",component:()=>__vitePreload(()=>import("./DropsView-BmBFGqKp.js"),__vite__mapDeps([268,6,12,269]))},...deleteWalletRoutes,...sendCoinRoutes,...sendNFTRoutes,...changePinRoutes,...settingRoutes,...otpSettingRoutes,...droplinkRoutes]},...hublinkRoutes]}),dontScroll=["ChangeLayout","EditList","LockCautionAlert","SortAccounts","accountManage","account_receive_account_qrview","backup_confirm_caution","backup_wallet_pin","backup_wallet_sort_mnemonic","backup_wallet_view_mnemonic","change_wallet_label","delete_wallet_start","nft_receive_select_address","showSetting","detail_account_showSetting","detail_account_ChangeLayout","detail_account_EditList","dashboard_detail_asset_tap","dashboard_detail_nft_tap","dashboard_detail_app_tap","transaction_detail","unlock_pin_account","unlock_pin_nft","unlock_pin_nft_detail","unlock_pin_wallet","wallet_add_account_coinlist","wallet_manage","wallet_receive_select_address"];router.beforeEach((u,f,d)=>{!dontScroll.includes(u.name?u.name.toString():"")&&!dontScroll.includes(f.name?f.name.toString():"")&&window.scrollTo(0,0),(u.name==="wallet_send_coin_amount_set"||u.name==="account_send_coin_amount_set")&&useBackCountStore().addBackCount(-1),d()});var define_import_meta_env_default={VITE_WEPIN_BACKEND_URL:"https://prod-api.wepin.io",VITE_WEPIN_CAPTURE_URL:"https://prod-analytics.wepin.io",VITE_USE_MOCK:"",VITE_DEPLOY_ENV:"production",VITE_WEPIN_CACHE_SERVER_URL:"https://coingecko-cache.wepin.io",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const Pk=class Pk{constructor(){aM(this,"user");aM(this,"wallet");aM(this,"account");aM(this,"accountToken");aM(this,"coin");aM(this,"info");aM(this,"notice");aM(this,"transaction");aM(this,"nft");aM(this,"nftcontract");aM(this,"project");aM(this,"balance");aM(this,"dropLink");const f=new FetchAPI("https://prod-api.wepin.io");this.addFetcherTokenChecker(f);{this.user=new UserAPI(f),this.wallet=new WalletAPI(f),this.account=new AccountAPI(f),this.accountToken=new AccountTokenAPI(f),this.coin=new CoinAPI(f),this.info=new InfoAPI(f),this.notice=new NoticeAPI(f),this.transaction=new TransactionAPI(f),this.nft=new NFTAPI(f),this.nftcontract=new NFTContractAPI(f),this.project=new ProjectAPI(f),this.dropLink=new DroplinkAPI(f);const d=(()=>{if(define_import_meta_env_default.VITE_WEPIN_BALANCE_BACKEND_URL){const _=new FetchAPI(define_import_meta_env_default.VITE_WEPIN_BALANCE_BACKEND_URL);return this.addFetcherTokenChecker(_),_}else return f})();this.balance=new AccountBalanceAPI(d)}}static getInstance(){return Pk.instance||(Pk.instance=new Pk),Pk.instance}addFetcherTokenChecker(f){f.addListener(APIEvents.request,async(d,_)=>{if(_.ignoreCheckToken)return;try{isTokenExpired(d.url,d.method)}catch(I){if(I instanceof TokenExpiredError){if(I.name==="refresh_expired")throw router.push("/signin"),I;I.name==="access_expired"&&await useUserAPIStore().refreshAccessToken()}}const x=getLocalStorage()?.accessToken;x&&(d.headers||(d.headers={}),d.headers.Authorization=`Bearer ${x}`)}),f.addListener(APIEvents.response,async d=>{if(d.status===401)throw router.push("/signin"),new Error("Unauthorized Error")})}};aM(Pk,"instance");let WepinBackendAPI=Pk;const WepinBackendAPI$1=WepinBackendAPI,useAccountAPIStore=defineStore("accountAPI",()=>{const u=useCoinPriceAPIStore(),f=useCoinAPIStore(),d=useInfoAPIStore(),_=ref({}),x=computed(()=>{const $=Object.values(_.value).flat().filter(W=>!!W);{const W=f.filterCoinList?.map(Q=>Q.id);return $?.filter(Q=>W?.indexOf(Q.coinId)===-1)}}),I=async $=>{await T({walletId:$.walletId});const W=await WepinBackendAPI$1.getInstance().account.createAccount($);_.value[$.walletId]||(_.value[$.walletId]=[]);const Q=new Account({account:W.account});return Q.fetchBalance(!0),u.fetchCoinPrice({coinGeckoIds:[Q.coin?.coinGeckoId],currency:d.currentCurrency}),_.value[$.walletId]?.push(W.account),W},E=async($,W)=>{if(!$||!W)return;const Q=await WepinBackendAPI$1.getInstance().account.updateAccount({accountId:$},W);if(Q&&x)for(const[X,Y]of Object.entries(_.value)){if(!Y)continue;Y.find(oe=>oe.id===$)&&(_.value[X]=_.value[X]?.map(oe=>oe.id===$?Q.account:oe))}return Q},M=async $=>{if(!$)return;const W=await WepinBackendAPI$1.getInstance().account.deleteAccount({accountId:$});if(W.result)for(const[Q,X]of Object.entries(_.value)){if(!X)continue;X.find(ie=>ie.id===$)&&(_.value[Q]=_.value[Q]?.filter(ie=>ie.id!==$))}return W},S=20,A=1,T=getExecuteOnce(async($,W=!1,Q=A,X=S)=>{if(W||!_.value[$?.walletId]){Q&&($.page=Q),$.limit=X;const Y=await WepinBackendAPI$1.getInstance().account.getAccountList($);if(!Y)return;_.value[$?.walletId]=arrayPushUnique(Y.accounts,"id",_.value[$?.walletId]),Y.accounts.length>=S&&await T($,W,Q+1,X)}return _.value[$?.walletId]}),D=getExecuteOnce(async $=>{const W=await WepinBackendAPI$1.getInstance().account.updateAccountList($);if(W)return _.value[$?.walletId]=W.accounts,_.value[$?.walletId]}),O=getExecuteOnce(async($,W)=>{const Q=await WepinBackendAPI$1.getInstance().account.getAccount($);if(!Q)return;const X=_.value[W]?.findIndex(Y=>Y.id===$.accountId);return X&&(_.value[W][X]=Q.account),_.value[W][X]});return{accountList:x,accountListByWalletKey:_,createAccount:I,updateAccount:E,deleteAccount:M,fetchAccountList:T,updateAccountList:D,getAccount:O,reset:()=>{_.value={}}}}),useAccountBalanceAPIStore=defineStore("accountBalanceAPI",()=>{const u=ref({}),f=ref({}),d=getExecuteOnce(async({accountId:x,force:I=!1})=>{if(!(!I&&u.value[x]))try{const E=await WepinBackendAPI$1.getInstance().balance.getAccountBalance({accountId:x});u.value[x]=E.balance;for(const M of E.tokens)f.value[x]||(f.value[x]={}),f.value[x][M.tokenId]=M.balance}catch{u.value[x]="0"}});return{accountBalanceList:u,accountTokenBalanceList:f,fetchAccountBalance:d,reset:()=>{u.value={},f.value={}}}}),useAccountTokenAPIStore=defineStore("accountTokenAPI",()=>{const u=useCoinPriceAPIStore(),f=useInfoAPIStore(),d=computed(()=>Object.values(_.value).flat().filter(D=>!!D)),_=ref({}),x=async D=>{if(!D)return;const O=await WepinBackendAPI$1.getInstance().accountToken.addToken(D);if(!O)return;const j=new AccountToken(O.accountToken);j.fetchBalance(),u.fetchCoinPrice({coinGeckoIds:[j.coin?.coinGeckoId],currency:f.currentCurrency}),_.value[D.accountId]||(_.value[D.accountId]=[]),_.value[D.accountId]?.push(O.accountToken)},I=async D=>{if(!D)return;const O=await WepinBackendAPI$1.getInstance().accountToken.deleteToken({id:D});if(O.result)for(const[j,$]of Object.entries(_.value)){if(!$)continue;$.find(Q=>Q.id===D)&&(_.value[j]=_.value[j]?.filter(Q=>Q.id!==D))}return O},E=async(D,O)=>{if(!D)return;const j=await WepinBackendAPI$1.getInstance().accountToken.updateToken({id:D},O);if(j)for(const[$,W]of Object.entries(_.value)){if(!W)continue;const Q=W.findIndex(X=>X.id===D);Q>-1&&(_.value[$]?.splice(Q,1),_.value[$]?.splice(Q,0,j.accountToken))}return j},M=D=>{delete _.value[D]},S=getExecuteOnce(async(D,O=!1)=>{if(O||!_.value[D?.accountIds]){const j=await WepinBackendAPI$1.getInstance().accountToken.getTokenList(D);if(!j)return;_.value[D?.accountIds]||(_.value[D?.accountIds]=[]),M(D?.accountIds),_.value[D?.accountIds]=j.accountTokens}return _.value[D?.accountIds]}),A=getExecuteOnce(async(D,O=!1)=>{if(D)return O?await WepinBackendAPI$1.getInstance().accountToken.getToken({id:D}):d?.value.find(j=>j.accountId===D)});return{accountTokenList:d,accountTokenListByAccountId:_,addToken:x,deleteToken:I,updateToken:E,fetchTokenList:S,getToken:A,reset:()=>{_.value={}}}}),UNIQUEKEY="id",useCoinAPIStore=defineStore("coinAPI",()=>{const u=ref([]),f=ref([]),d=ref({}),_=new OffsetSettingInfoList,x=new OffsetSettingInfoList,I=getExecuteOnce(async({coinIds:j,force:$=!1,needToAddData:W,recursionsParamsData:Q,reset:X=!1,locale:Y})=>{let ie="";const oe={offset:Q??1};if(j&&j.length>0&&(ie=j.filter((ge,be)=>j.indexOf(ge)===be).map(ge=>ge.toString())),X&&(_.removeOffset({coinIds:j,force:$,needToAddData:W}),X=!1),W&&(oe.offset=_.offsetSettingInfo({params:{coinIds:j,force:$,needToAddData:W},offset:oe.offset})),$||f.value?.length===0){const ge=(await WepinBackendAPI$1.getInstance().coin.getCoinInfoList({ids:ie,page:oe.offset,locale:Y})).coins;f.value=arrayPushUnique(ge,UNIQUEKEY,f.value),u.value=arrayPushUnique(f.value?.filter(be=>be.isTestnet===1&&!be.property?.forcedDisplay),UNIQUEKEY,u.value),f.value=f.value?.filter(be=>be.isTestnet!==1||be.property?.forcedDisplay),W&&oe.offset!==0&&_.checkLimit({params:{coinIds:j,force:$,needToAddData:W},offset:oe.offset},ge.length)}return W&&oe.offset!==0&&await I({coinIds:j,force:$,needToAddData:W,recursionsParamsData:oe.offset,reset:X,locale:Y}),f.value}),E=computed(()=>d.value?Object.values(d.value).flat():[]),M=j=>f.value?.find(({id:$})=>$===j),S=getExecuteOnce(async({accountToken:j,force:$=!1,locale:W})=>{const Q=j.account?.coinId;if($||!d.value[Q]){const X=await WepinBackendAPI$1.getInstance().coin.getTokenInfoList({ids:j.tokenId.toString(),locale:W});if(!X)return;d.value[Q]=arrayPushUnique(X.tokens,UNIQUEKEY,d.value[Q])}return d.value[Q]}),A=async({searchValue:j,page:$,gotAllTokens:W,locale:Q})=>{const X=(await WepinBackendAPI$1.getInstance().coin.getTokenInfoList({name:j,symbol:j,contract:j,page:$,locale:Q})).tokens;return X.forEach(Y=>{d.value[Y.coinId]||(d.value[Y.coinId]=[]),d.value[Y.coinId].findIndex(ie=>ie.id===Y.id)===-1&&d.value[Y.coinId].push(Y)}),X.length<15&&(W.value=!0),X.map(Y=>new Token(Y))},T=getExecuteOnce(async({needToAddData:j,force:$=!1,reset:W=!1,locale:Q})=>{const X={offset:0};if($){W&&x.removeOffset({force:$,needToAddData:j}),X.offset=x.offsetSettingInfo({params:{needToAddData:j,force:$},offset:X.offset});const Y=await WepinBackendAPI$1.getInstance().coin.getTokenInfoList({page:X.offset,locale:Q});if(!Y)return;x.checkLimit({params:{needToAddData:j,force:$},offset:X.offset},Y.tokens.length),Y.tokens.forEach(ie=>{d.value[ie.coinId]=arrayPushUnique(Y.tokens,UNIQUEKEY,d.value[ie.coinId])})}return d.value});return{coinList:f,filterCoinList:u,tokenListByCoinId:d,tokenList:E,fetchCoinList:I,fetchTokenList:T,fetchHeldCoinList:S,searchTokenList:A,getCoinInfo:M,getTokenInfo:(j,$)=>{if(j){if($)return d.value[$].find(W=>W.id===j);if(!d.value)return;for(const W in d.value){const Q=d.value[W].find(X=>X.id===j);if(Q)return Q}}},reset:()=>{f.value=[],u.value=[],d.value={}}}});var dist={},Enum={};(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.API_ROUTES=void 0,function(f){f.PING="/ping",f.SEARCH="/search",f.SEARCH_TRENDING="/search/trending",f.COIN="/coins/{id}",f.COIN_LIST="/coins/list",f.COIN_MARKET="/coins/markets",f.COIN_TICKERS="/coins/{id}/tickers",f.COIN_HISTORY="/coins/{id}/history",f.COIN_MARKET_CHART="/coins/{id}/market_chart",f.COIN_MARKET_CHART_RANGE="/coins/{id}/market_chart/range",f.COIN_OHLC="/coins/{id}/ohlc",f.SIMPLE_PRICE="/simple/price",f.SIMPLE_SUPPORTED_CURRENCIES="/simple/supported_vs_currencies",f.SIMPLE_TOKEN_PRICE="/simple/token_price/{id}",f.CONTRACT="/coins/{id}/contract/{contract_address}",f.CONTRACT_MARKET_CHART="/coins/{id}/contract/{contract_address}/market_chart",f.CONTRACT_MARKET_CHART_RANGE="/coins/{id}/contract/{contract_address}/market_chart/range",f.EXCHANGES="/exchanges",f.EXCHANGE_LIST="/exchanges/list",f.EXCHANGE_ID="/exchanges/{id}",f.EXCHANGE_ID_TICKER="/exchanges/{id}/tickers",f.EXCHANGE_ID_VOL_CHART="/exchanges/{id}/volume_chart",f.FINANCE_PLATFORM="/asset_platforms",f.INDEXES="/indexes",f.INDEXES_LIST="/indexes/list",f.INDEXES_MARKET_ID="/indexes/{market_id}/{id}",f.INDEXES_LIST_MARKET_AND_ID="/indexes/list_by_market_and_id/{market_id}/{id}",f.DERIVATIVES="/derivatives",f.DERIVATIVES_EXCHANGES="/derivatives/exchanges",f.DERIVATIVES_EXCHANGES_ID="/derivatives/exchanges/{id}",f.DERIVATIVES_EXCHANGES_LIST="/derivatives/exchanges/list",f.EXCHANGE_RATES="/exchange_rates",f.GLOBAL="/global",f.GLOBAL_DEFI="/global/decentralized_finance_defi"}(u.API_ROUTES||(u.API_ROUTES={}))})(Enum);var Interface={};Object.defineProperty(Interface,"__esModule",{value:!0});var CoinGeckoClient$1={},httpsBrowserify={exports:{}},streamHttp={},request={exports:{}},capability$2={};(function(u){u.fetch=x(commonjsGlobal$1.fetch)&&x(commonjsGlobal$1.ReadableStream),u.writableStream=x(commonjsGlobal$1.WritableStream),u.abortController=x(commonjsGlobal$1.AbortController);var f;function d(){if(f!==void 0)return f;if(commonjsGlobal$1.XMLHttpRequest){f=new commonjsGlobal$1.XMLHttpRequest;try{f.open("GET",commonjsGlobal$1.XDomainRequest?"/":"https://example.com")}catch{f=null}}else f=null;return f}function _(I){var E=d();if(!E)return!1;try{return E.responseType=I,E.responseType===I}catch{}return!1}u.arraybuffer=u.fetch||_("arraybuffer"),u.msstream=!u.fetch&&_("ms-stream"),u.mozchunkedarraybuffer=!u.fetch&&_("moz-chunked-arraybuffer"),u.overrideMimeType=u.fetch||(d()?x(d().overrideMimeType):!1);function x(I){return typeof I=="function"}f=null})(capability$2);var inherits_browser={exports:{}};typeof Object.create=="function"?inherits_browser.exports=function(f,d){d&&(f.super_=d,f.prototype=Object.create(d.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}))}:inherits_browser.exports=function(f,d){if(d){f.super_=d;var _=function(){};_.prototype=d.prototype,f.prototype=new _,f.prototype.constructor=f}};var inherits_browserExports=inherits_browser.exports,response$1={},readableBrowser={exports:{}},events={exports:{}},R=typeof Reflect=="object"?Reflect:null,ReflectApply=R&&typeof R.apply=="function"?R.apply:function u(f,d,_){return Function.prototype.apply.call(f,d,_)},ReflectOwnKeys;R&&typeof R.ownKeys=="function"?ReflectOwnKeys=R.ownKeys:Object.getOwnPropertySymbols?ReflectOwnKeys=function(f){return Object.getOwnPropertyNames(f).concat(Object.getOwnPropertySymbols(f))}:ReflectOwnKeys=function(f){return Object.getOwnPropertyNames(f)};function ProcessEmitWarning(u){console&&console.warn&&console.warn(u)}var NumberIsNaN=Number.isNaN||function u(f){return f!==f};function EventEmitter(){EventEmitter.init.call(this)}events.exports=EventEmitter;events.exports.once=once$2;EventEmitter.EventEmitter=EventEmitter;EventEmitter.prototype._events=void 0;EventEmitter.prototype._eventsCount=0;EventEmitter.prototype._maxListeners=void 0;var defaultMaxListeners=10;function checkListener(u){if(typeof u!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof u)}Object.defineProperty(EventEmitter,"defaultMaxListeners",{enumerable:!0,get:function(){return defaultMaxListeners},set:function(u){if(typeof u!="number"||u<0||NumberIsNaN(u))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+u+".");defaultMaxListeners=u}});EventEmitter.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};EventEmitter.prototype.setMaxListeners=function u(f){if(typeof f!="number"||f<0||NumberIsNaN(f))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+f+".");return this._maxListeners=f,this};function _getMaxListeners(u){return u._maxListeners===void 0?EventEmitter.defaultMaxListeners:u._maxListeners}EventEmitter.prototype.getMaxListeners=function u(){return _getMaxListeners(this)};EventEmitter.prototype.emit=function u(f){for(var d=[],_=1;_<arguments.length;_++)d.push(arguments[_]);var x=f==="error",I=this._events;if(I!==void 0)x=x&&I.error===void 0;else if(!x)return!1;if(x){var E;if(d.length>0&&(E=d[0]),E instanceof Error)throw E;var M=new Error("Unhandled error."+(E?" ("+E.message+")":""));throw M.context=E,M}var S=I[f];if(S===void 0)return!1;if(typeof S=="function")ReflectApply(S,this,d);else for(var A=S.length,T=arrayClone(S,A),_=0;_<A;++_)ReflectApply(T[_],this,d);return!0};function _addListener(u,f,d,_){var x,I,E;if(checkListener(d),I=u._events,I===void 0?(I=u._events=Object.create(null),u._eventsCount=0):(I.newListener!==void 0&&(u.emit("newListener",f,d.listener?d.listener:d),I=u._events),E=I[f]),E===void 0)E=I[f]=d,++u._eventsCount;else if(typeof E=="function"?E=I[f]=_?[d,E]:[E,d]:_?E.unshift(d):E.push(d),x=_getMaxListeners(u),x>0&&E.length>x&&!E.warned){E.warned=!0;var M=new Error("Possible EventEmitter memory leak detected. "+E.length+" "+String(f)+" listeners added. Use emitter.setMaxListeners() to increase limit");M.name="MaxListenersExceededWarning",M.emitter=u,M.type=f,M.count=E.length,ProcessEmitWarning(M)}return u}EventEmitter.prototype.addListener=function u(f,d){return _addListener(this,f,d,!1)};EventEmitter.prototype.on=EventEmitter.prototype.addListener;EventEmitter.prototype.prependListener=function u(f,d){return _addListener(this,f,d,!0)};function onceWrapper(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function _onceWrap(u,f,d){var _={fired:!1,wrapFn:void 0,target:u,type:f,listener:d},x=onceWrapper.bind(_);return x.listener=d,_.wrapFn=x,x}EventEmitter.prototype.once=function u(f,d){return checkListener(d),this.on(f,_onceWrap(this,f,d)),this};EventEmitter.prototype.prependOnceListener=function u(f,d){return checkListener(d),this.prependListener(f,_onceWrap(this,f,d)),this};EventEmitter.prototype.removeListener=function u(f,d){var _,x,I,E,M;if(checkListener(d),x=this._events,x===void 0)return this;if(_=x[f],_===void 0)return this;if(_===d||_.listener===d)--this._eventsCount===0?this._events=Object.create(null):(delete x[f],x.removeListener&&this.emit("removeListener",f,_.listener||d));else if(typeof _!="function"){for(I=-1,E=_.length-1;E>=0;E--)if(_[E]===d||_[E].listener===d){M=_[E].listener,I=E;break}if(I<0)return this;I===0?_.shift():spliceOne(_,I),_.length===1&&(x[f]=_[0]),x.removeListener!==void 0&&this.emit("removeListener",f,M||d)}return this};EventEmitter.prototype.off=EventEmitter.prototype.removeListener;EventEmitter.prototype.removeAllListeners=function u(f){var d,_,x;if(_=this._events,_===void 0)return this;if(_.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):_[f]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete _[f]),this;if(arguments.length===0){var I=Object.keys(_),E;for(x=0;x<I.length;++x)E=I[x],E!=="removeListener"&&this.removeAllListeners(E);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(d=_[f],typeof d=="function")this.removeListener(f,d);else if(d!==void 0)for(x=d.length-1;x>=0;x--)this.removeListener(f,d[x]);return this};function _listeners(u,f,d){var _=u._events;if(_===void 0)return[];var x=_[f];return x===void 0?[]:typeof x=="function"?d?[x.listener||x]:[x]:d?unwrapListeners(x):arrayClone(x,x.length)}EventEmitter.prototype.listeners=function u(f){return _listeners(this,f,!0)};EventEmitter.prototype.rawListeners=function u(f){return _listeners(this,f,!1)};EventEmitter.listenerCount=function(u,f){return typeof u.listenerCount=="function"?u.listenerCount(f):listenerCount.call(u,f)};EventEmitter.prototype.listenerCount=listenerCount;function listenerCount(u){var f=this._events;if(f!==void 0){var d=f[u];if(typeof d=="function")return 1;if(d!==void 0)return d.length}return 0}EventEmitter.prototype.eventNames=function u(){return this._eventsCount>0?ReflectOwnKeys(this._events):[]};function arrayClone(u,f){for(var d=new Array(f),_=0;_<f;++_)d[_]=u[_];return d}function spliceOne(u,f){for(;f+1<u.length;f++)u[f]=u[f+1];u.pop()}function unwrapListeners(u){for(var f=new Array(u.length),d=0;d<f.length;++d)f[d]=u[d].listener||u[d];return f}function once$2(u,f){return new Promise(function(d,_){function x(E){u.removeListener(f,I),_(E)}function I(){typeof u.removeListener=="function"&&u.removeListener("error",x),d([].slice.call(arguments))}eventTargetAgnosticAddListener(u,f,I,{once:!0}),f!=="error"&&addErrorHandlerIfEventEmitter(u,x,{once:!0})})}function addErrorHandlerIfEventEmitter(u,f,d){typeof u.on=="function"&&eventTargetAgnosticAddListener(u,"error",f,d)}function eventTargetAgnosticAddListener(u,f,d,_){if(typeof u.on=="function")_.once?u.once(f,d):u.on(f,d);else if(typeof u.addEventListener=="function")u.addEventListener(f,function x(I){_.once&&u.removeEventListener(f,x),d(I)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof u)}var eventsExports=events.exports,streamBrowser=eventsExports.EventEmitter,util={},types={},shams$1=function u(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var f={},d=Symbol("test"),_=Object(d);if(typeof d=="string"||Object.prototype.toString.call(d)!=="[object Symbol]"||Object.prototype.toString.call(_)!=="[object Symbol]")return!1;var x=42;f[d]=x;for(d in f)return!1;if(typeof Object.keys=="function"&&Object.keys(f).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(f).length!==0)return!1;var I=Object.getOwnPropertySymbols(f);if(I.length!==1||I[0]!==d||!Object.prototype.propertyIsEnumerable.call(f,d))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var E=Object.getOwnPropertyDescriptor(f,d);if(E.value!==x||E.enumerable!==!0)return!1}return!0},hasSymbols$2=shams$1,shams=function u(){return hasSymbols$2()&&!!Symbol.toStringTag},origSymbol=typeof Symbol<"u"&&Symbol,hasSymbolSham=shams$1,hasSymbols$1=function u(){return typeof origSymbol!="function"||typeof Symbol!="function"||typeof origSymbol("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:hasSymbolSham()},test={foo:{}},$Object=Object,hasProto$1=function u(){return{__proto__:test}.foo===test.foo&&!({__proto__:null}instanceof $Object)},ERROR_MESSAGE="Function.prototype.bind called on incompatible ",toStr$3=Object.prototype.toString,max=Math.max,funcType="[object Function]",concatty=function u(f,d){for(var _=[],x=0;x<f.length;x+=1)_[x]=f[x];for(var I=0;I<d.length;I+=1)_[I+f.length]=d[I];return _},slicy=function u(f,d){for(var _=[],x=d||0,I=0;x<f.length;x+=1,I+=1)_[I]=f[x];return _},joiny=function(u,f){for(var d="",_=0;_<u.length;_+=1)d+=u[_],_+1<u.length&&(d+=f);return d},implementation$1=function u(f){var d=this;if(typeof d!="function"||toStr$3.apply(d)!==funcType)throw new TypeError(ERROR_MESSAGE+d);for(var _=slicy(arguments,1),x,I=function(){if(this instanceof x){var T=d.apply(this,concatty(_,arguments));return Object(T)===T?T:this}return d.apply(f,concatty(_,arguments))},E=max(0,d.length-_.length),M=[],S=0;S<E;S++)M[S]="$"+S;if(x=Function("binder","return function ("+joiny(M,",")+"){ return binder.apply(this,arguments); }")(I),d.prototype){var A=function(){};A.prototype=d.prototype,x.prototype=new A,A.prototype=null}return x},implementation=implementation$1,functionBind=Function.prototype.bind||implementation,call$1=Function.prototype.call,$hasOwn=Object.prototype.hasOwnProperty,bind$1=functionBind,hasown=bind$1.call(call$1,$hasOwn),undefined$1,$SyntaxError$1=SyntaxError,$Function=Function,$TypeError$2=TypeError,getEvalledConstructor=function(u){try{return $Function('"use strict"; return ('+u+").constructor;")()}catch{}},$gOPD$1=Object.getOwnPropertyDescriptor;if($gOPD$1)try{$gOPD$1({},"")}catch{$gOPD$1=null}var throwTypeError=function(){throw new $TypeError$2},ThrowTypeError=$gOPD$1?function(){try{return arguments.callee,throwTypeError}catch{try{return $gOPD$1(arguments,"callee").get}catch{return throwTypeError}}}():throwTypeError,hasSymbols=hasSymbols$1(),hasProto=hasProto$1(),getProto$1=Object.getPrototypeOf||(hasProto?function(u){return u.__proto__}:null),needsEval={},TypedArray=typeof Uint8Array>"u"||!getProto$1?undefined$1:getProto$1(Uint8Array),INTRINSICS={"%AggregateError%":typeof AggregateError>"u"?undefined$1:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?undefined$1:ArrayBuffer,"%ArrayIteratorPrototype%":hasSymbols&&getProto$1?getProto$1([][Symbol.iterator]()):undefined$1,"%AsyncFromSyncIteratorPrototype%":undefined$1,"%AsyncFunction%":needsEval,"%AsyncGenerator%":needsEval,"%AsyncGeneratorFunction%":needsEval,"%AsyncIteratorPrototype%":needsEval,"%Atomics%":typeof Atomics>"u"?undefined$1:Atomics,"%BigInt%":typeof BigInt>"u"?undefined$1:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?undefined$1:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?undefined$1:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?undefined$1:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?undefined$1:Float32Array,"%Float64Array%":typeof Float64Array>"u"?undefined$1:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?undefined$1:FinalizationRegistry,"%Function%":$Function,"%GeneratorFunction%":needsEval,"%Int8Array%":typeof Int8Array>"u"?undefined$1:Int8Array,"%Int16Array%":typeof Int16Array>"u"?undefined$1:Int16Array,"%Int32Array%":typeof Int32Array>"u"?undefined$1:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":hasSymbols&&getProto$1?getProto$1(getProto$1([][Symbol.iterator]())):undefined$1,"%JSON%":typeof JSON=="object"?JSON:undefined$1,"%Map%":typeof Map>"u"?undefined$1:Map,"%MapIteratorPrototype%":typeof Map>"u"||!hasSymbols||!getProto$1?undefined$1:getProto$1(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?undefined$1:Promise,"%Proxy%":typeof Proxy>"u"?undefined$1:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?undefined$1:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?undefined$1:Set,"%SetIteratorPrototype%":typeof Set>"u"||!hasSymbols||!getProto$1?undefined$1:getProto$1(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?undefined$1:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":hasSymbols&&getProto$1?getProto$1(""[Symbol.iterator]()):undefined$1,"%Symbol%":hasSymbols?Symbol:undefined$1,"%SyntaxError%":$SyntaxError$1,"%ThrowTypeError%":ThrowTypeError,"%TypedArray%":TypedArray,"%TypeError%":$TypeError$2,"%Uint8Array%":typeof Uint8Array>"u"?undefined$1:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?undefined$1:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?undefined$1:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?undefined$1:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?undefined$1:WeakMap,"%WeakRef%":typeof WeakRef>"u"?undefined$1:WeakRef,"%WeakSet%":typeof WeakSet>"u"?undefined$1:WeakSet};if(getProto$1)try{null.error}catch(u){var errorProto=getProto$1(getProto$1(u));INTRINSICS["%Error.prototype%"]=errorProto}var doEval=function u(f){var d;if(f==="%AsyncFunction%")d=getEvalledConstructor("async function () {}");else if(f==="%GeneratorFunction%")d=getEvalledConstructor("function* () {}");else if(f==="%AsyncGeneratorFunction%")d=getEvalledConstructor("async function* () {}");else if(f==="%AsyncGenerator%"){var _=u("%AsyncGeneratorFunction%");_&&(d=_.prototype)}else if(f==="%AsyncIteratorPrototype%"){var x=u("%AsyncGenerator%");x&&getProto$1&&(d=getProto$1(x.prototype))}return INTRINSICS[f]=d,d},LEGACY_ALIASES={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},bind=functionBind,hasOwn=hasown,$concat=bind.call(Function.call,Array.prototype.concat),$spliceApply=bind.call(Function.apply,Array.prototype.splice),$replace=bind.call(Function.call,String.prototype.replace),$strSlice=bind.call(Function.call,String.prototype.slice),$exec=bind.call(Function.call,RegExp.prototype.exec),rePropName=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,reEscapeChar=/\\(\\)?/g,stringToPath=function u(f){var d=$strSlice(f,0,1),_=$strSlice(f,-1);if(d==="%"&&_!=="%")throw new $SyntaxError$1("invalid intrinsic syntax, expected closing `%`");if(_==="%"&&d!=="%")throw new $SyntaxError$1("invalid intrinsic syntax, expected opening `%`");var x=[];return $replace(f,rePropName,function(I,E,M,S){x[x.length]=M?$replace(S,reEscapeChar,"$1"):E||I}),x},getBaseIntrinsic=function u(f,d){var _=f,x;if(hasOwn(LEGACY_ALIASES,_)&&(x=LEGACY_ALIASES[_],_="%"+x[0]+"%"),hasOwn(INTRINSICS,_)){var I=INTRINSICS[_];if(I===needsEval&&(I=doEval(_)),typeof I>"u"&&!d)throw new $TypeError$2("intrinsic "+f+" exists, but is not available. Please file an issue!");return{alias:x,name:_,value:I}}throw new $SyntaxError$1("intrinsic "+f+" does not exist!")},getIntrinsic=function u(f,d){if(typeof f!="string"||f.length===0)throw new $TypeError$2("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof d!="boolean")throw new $TypeError$2('"allowMissing" argument must be a boolean');if($exec(/^%?[^%]*%?$/,f)===null)throw new $SyntaxError$1("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var _=stringToPath(f),x=_.length>0?_[0]:"",I=getBaseIntrinsic("%"+x+"%",d),E=I.name,M=I.value,S=!1,A=I.alias;A&&(x=A[0],$spliceApply(_,$concat([0,1],A)));for(var T=1,D=!0;T<_.length;T+=1){var O=_[T],j=$strSlice(O,0,1),$=$strSlice(O,-1);if((j==='"'||j==="'"||j==="`"||$==='"'||$==="'"||$==="`")&&j!==$)throw new $SyntaxError$1("property names with quotes must have matching quotes");if((O==="constructor"||!D)&&(S=!0),x+="."+O,E="%"+x+"%",hasOwn(INTRINSICS,E))M=INTRINSICS[E];else if(M!=null){if(!(O in M)){if(!d)throw new $TypeError$2("base intrinsic for "+f+" exists, but the property is not available.");return}if($gOPD$1&&T+1>=_.length){var W=$gOPD$1(M,O);D=!!W,D&&"get"in W&&!("originalValue"in W.get)?M=W.get:M=M[O]}else D=hasOwn(M,O),M=M[O];D&&!S&&(INTRINSICS[E]=M)}}return M},callBind$2={exports:{}},GetIntrinsic$4=getIntrinsic,$defineProperty$1=GetIntrinsic$4("%Object.defineProperty%",!0),hasPropertyDescriptors$1=function u(){if($defineProperty$1)try{return $defineProperty$1({},"a",{value:1}),!0}catch{return!1}return!1};hasPropertyDescriptors$1.hasArrayLengthDefineBug=function u(){if(!hasPropertyDescriptors$1())return null;try{return $defineProperty$1([],"length",{value:1}).length!==1}catch{return!0}};var hasPropertyDescriptors_1=hasPropertyDescriptors$1,GetIntrinsic$3=getIntrinsic,$gOPD=GetIntrinsic$3("%Object.getOwnPropertyDescriptor%",!0);if($gOPD)try{$gOPD([],"length")}catch{$gOPD=null}var gopd$1=$gOPD,hasPropertyDescriptors=hasPropertyDescriptors_1(),GetIntrinsic$2=getIntrinsic,$defineProperty=hasPropertyDescriptors&&GetIntrinsic$2("%Object.defineProperty%",!0);if($defineProperty)try{$defineProperty({},"a",{value:1})}catch{$defineProperty=!1}var $SyntaxError=GetIntrinsic$2("%SyntaxError%"),$TypeError$1=GetIntrinsic$2("%TypeError%"),gopd=gopd$1,defineDataProperty=function u(f,d,_){if(!f||typeof f!="object"&&typeof f!="function")throw new $TypeError$1("`obj` must be an object or a function`");if(typeof d!="string"&&typeof d!="symbol")throw new $TypeError$1("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new $TypeError$1("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new $TypeError$1("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new $TypeError$1("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new $TypeError$1("`loose`, if provided, must be a boolean");var x=arguments.length>3?arguments[3]:null,I=arguments.length>4?arguments[4]:null,E=arguments.length>5?arguments[5]:null,M=arguments.length>6?arguments[6]:!1,S=!!gopd&&gopd(f,d);if($defineProperty)$defineProperty(f,d,{configurable:E===null&&S?S.configurable:!E,enumerable:x===null&&S?S.enumerable:!x,value:_,writable:I===null&&S?S.writable:!I});else if(M||!x&&!I&&!E)f[d]=_;else throw new $SyntaxError("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},GetIntrinsic$1=getIntrinsic,define=defineDataProperty,hasDescriptors=hasPropertyDescriptors_1(),gOPD$1=gopd$1,$TypeError=GetIntrinsic$1("%TypeError%"),$floor=GetIntrinsic$1("%Math.floor%"),setFunctionLength=function u(f,d){if(typeof f!="function")throw new $TypeError("`fn` is not a function");if(typeof d!="number"||d<0||d>4294967295||$floor(d)!==d)throw new $TypeError("`length` must be a positive 32-bit integer");var _=arguments.length>2&&!!arguments[2],x=!0,I=!0;if("length"in f&&gOPD$1){var E=gOPD$1(f,"length");E&&!E.configurable&&(x=!1),E&&!E.writable&&(I=!1)}return(x||I||!_)&&(hasDescriptors?define(f,"length",d,!0,!0):define(f,"length",d)),f};(function(u){var f=functionBind,d=getIntrinsic,_=setFunctionLength,x=d("%TypeError%"),I=d("%Function.prototype.apply%"),E=d("%Function.prototype.call%"),M=d("%Reflect.apply%",!0)||f.call(E,I),S=d("%Object.defineProperty%",!0),A=d("%Math.max%");if(S)try{S({},"a",{value:1})}catch{S=null}u.exports=function(O){if(typeof O!="function")throw new x("a function is required");var j=M(f,E,arguments);return _(j,1+A(0,O.length-(arguments.length-1)),!0)};var T=function(){return M(f,I,arguments)};S?S(u.exports,"apply",{value:T}):u.exports.apply=T})(callBind$2);var callBindExports=callBind$2.exports,GetIntrinsic=getIntrinsic,callBind$1=callBindExports,$indexOf$1=callBind$1(GetIntrinsic("String.prototype.indexOf")),callBound$2=function u(f,d){var _=GetIntrinsic(f,!!d);return typeof _=="function"&&$indexOf$1(f,".prototype.")>-1?callBind$1(_):_},hasToStringTag$3=shams(),callBound$1=callBound$2,$toString$1=callBound$1("Object.prototype.toString"),isStandardArguments=function u(f){return hasToStringTag$3&&f&&typeof f=="object"&&Symbol.toStringTag in f?!1:$toString$1(f)==="[object Arguments]"},isLegacyArguments=function u(f){return isStandardArguments(f)?!0:f!==null&&typeof f=="object"&&typeof f.length=="number"&&f.length>=0&&$toString$1(f)!=="[object Array]"&&$toString$1(f.callee)==="[object Function]"},supportsStandardArguments=function(){return isStandardArguments(arguments)}();isStandardArguments.isLegacyArguments=isLegacyArguments;var isArguments=supportsStandardArguments?isStandardArguments:isLegacyArguments,toStr$2=Object.prototype.toString,fnToStr$1=Function.prototype.toString,isFnRegex=/^\s*(?:function)?\*/,hasToStringTag$2=shams(),getProto=Object.getPrototypeOf,getGeneratorFunc=function(){if(!hasToStringTag$2)return!1;try{return Function("return function*() {}")()}catch{}},GeneratorFunction,isGeneratorFunction=function u(f){if(typeof f!="function")return!1;if(isFnRegex.test(fnToStr$1.call(f)))return!0;if(!hasToStringTag$2){var d=toStr$2.call(f);return d==="[object GeneratorFunction]"}if(!getProto)return!1;if(typeof GeneratorFunction>"u"){var _=getGeneratorFunc();GeneratorFunction=_?getProto(_):!1}return getProto(f)===GeneratorFunction},fnToStr=Function.prototype.toString,reflectApply=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,badArrayLike,isCallableMarker;if(typeof reflectApply=="function"&&typeof Object.defineProperty=="function")try{badArrayLike=Object.defineProperty({},"length",{get:function(){throw isCallableMarker}}),isCallableMarker={},reflectApply(function(){throw 42},null,badArrayLike)}catch(u){u!==isCallableMarker&&(reflectApply=null)}else reflectApply=null;var constructorRegex=/^\s*class\b/,isES6ClassFn=function u(f){try{var d=fnToStr.call(f);return constructorRegex.test(d)}catch{return!1}},tryFunctionObject=function u(f){try{return isES6ClassFn(f)?!1:(fnToStr.call(f),!0)}catch{return!1}},toStr$1=Object.prototype.toString,objectClass="[object Object]",fnClass="[object Function]",genClass="[object GeneratorFunction]",ddaClass="[object HTMLAllCollection]",ddaClass2="[object HTML document.all class]",ddaClass3="[object HTMLCollection]",hasToStringTag$1=typeof Symbol=="function"&&!!Symbol.toStringTag,isIE68=!(0 in[,]),isDDA=function u(){return!1};if(typeof document=="object"){var all=document.all;toStr$1.call(all)===toStr$1.call(document.all)&&(isDDA=function(f){if((isIE68||!f)&&(typeof f>"u"||typeof f=="object"))try{var d=toStr$1.call(f);return(d===ddaClass||d===ddaClass2||d===ddaClass3||d===objectClass)&&f("")==null}catch{}return!1})}var isCallable$1=reflectApply?function u(f){if(isDDA(f))return!0;if(!f||typeof f!="function"&&typeof f!="object")return!1;try{reflectApply(f,null,badArrayLike)}catch(d){if(d!==isCallableMarker)return!1}return!isES6ClassFn(f)&&tryFunctionObject(f)}:function u(f){if(isDDA(f))return!0;if(!f||typeof f!="function"&&typeof f!="object")return!1;if(hasToStringTag$1)return tryFunctionObject(f);if(isES6ClassFn(f))return!1;var d=toStr$1.call(f);return d!==fnClass&&d!==genClass&&!/^\[object HTML/.test(d)?!1:tryFunctionObject(f)},isCallable=isCallable$1,toStr=Object.prototype.toString,hasOwnProperty$2=Object.prototype.hasOwnProperty,forEachArray=function u(f,d,_){for(var x=0,I=f.length;x<I;x++)hasOwnProperty$2.call(f,x)&&(_==null?d(f[x],x,f):d.call(_,f[x],x,f))},forEachString=function u(f,d,_){for(var x=0,I=f.length;x<I;x++)_==null?d(f.charAt(x),x,f):d.call(_,f.charAt(x),x,f)},forEachObject=function u(f,d,_){for(var x in f)hasOwnProperty$2.call(f,x)&&(_==null?d(f[x],x,f):d.call(_,f[x],x,f))},forEach$1=function u(f,d,_){if(!isCallable(d))throw new TypeError("iterator must be a function");var x;arguments.length>=3&&(x=_),toStr.call(f)==="[object Array]"?forEachArray(f,d,x):typeof f=="string"?forEachString(f,d,x):forEachObject(f,d,x)},forEach_1=forEach$1,possibleNames=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],g$1=typeof globalThis>"u"?commonjsGlobal$1:globalThis,availableTypedArrays$1=function u(){for(var f=[],d=0;d<possibleNames.length;d++)typeof g$1[possibleNames[d]]=="function"&&(f[f.length]=possibleNames[d]);return f},forEach=forEach_1,availableTypedArrays=availableTypedArrays$1,callBind=callBindExports,callBound=callBound$2,gOPD=gopd$1,$toString=callBound("Object.prototype.toString"),hasToStringTag=shams(),g=typeof globalThis>"u"?commonjsGlobal$1:globalThis,typedArrays=availableTypedArrays(),$slice=callBound("String.prototype.slice"),getPrototypeOf=Object.getPrototypeOf,$indexOf=callBound("Array.prototype.indexOf",!0)||function u(f,d){for(var _=0;_<f.length;_+=1)if(f[_]===d)return _;return-1},cache={__proto__:null};hasToStringTag&&gOPD&&getPrototypeOf?forEach(typedArrays,function(u){var f=new g[u];if(Symbol.toStringTag in f){var d=getPrototypeOf(f),_=gOPD(d,Symbol.toStringTag);if(!_){var x=getPrototypeOf(d);_=gOPD(x,Symbol.toStringTag)}cache["$"+u]=callBind(_.get)}}):forEach(typedArrays,function(u){var f=new g[u],d=f.slice||f.set;d&&(cache["$"+u]=callBind(d))});var tryTypedArrays=function u(f){var d=!1;return forEach(cache,function(_,x){if(!d)try{"$"+_(f)===x&&(d=$slice(x,1))}catch{}}),d},trySlices=function u(f){var d=!1;return forEach(cache,function(_,x){if(!d)try{_(f),d=$slice(x,1)}catch{}}),d},whichTypedArray$1=function u(f){if(!f||typeof f!="object")return!1;if(!hasToStringTag){var d=$slice($toString(f),8,-1);return $indexOf(typedArrays,d)>-1?d:d!=="Object"?!1:trySlices(f)}return gOPD?tryTypedArrays(f):null},whichTypedArray=whichTypedArray$1,isTypedArray=function u(f){return!!whichTypedArray(f)};(function(u){var f=isArguments,d=isGeneratorFunction,_=whichTypedArray$1,x=isTypedArray;function I(Je){return Je.call.bind(Je)}var E=typeof BigInt<"u",M=typeof Symbol<"u",S=I(Object.prototype.toString),A=I(Number.prototype.valueOf),T=I(String.prototype.valueOf),D=I(Boolean.prototype.valueOf);if(E)var O=I(BigInt.prototype.valueOf);if(M)var j=I(Symbol.prototype.valueOf);function $(Je,Dt){if(typeof Je!="object")return!1;try{return Dt(Je),!0}catch{return!1}}u.isArgumentsObject=f,u.isGeneratorFunction=d,u.isTypedArray=x;function W(Je){return typeof Promise<"u"&&Je instanceof Promise||Je!==null&&typeof Je=="object"&&typeof Je.then=="function"&&typeof Je.catch=="function"}u.isPromise=W;function Q(Je){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(Je):x(Je)||ve(Je)}u.isArrayBufferView=Q;function X(Je){return _(Je)==="Uint8Array"}u.isUint8Array=X;function Y(Je){return _(Je)==="Uint8ClampedArray"}u.isUint8ClampedArray=Y;function ie(Je){return _(Je)==="Uint16Array"}u.isUint16Array=ie;function oe(Je){return _(Je)==="Uint32Array"}u.isUint32Array=oe;function ge(Je){return _(Je)==="Int8Array"}u.isInt8Array=ge;function be(Je){return _(Je)==="Int16Array"}u.isInt16Array=be;function ze(Je){return _(Je)==="Int32Array"}u.isInt32Array=ze;function de(Je){return _(Je)==="Float32Array"}u.isFloat32Array=de;function Ce(Je){return _(Je)==="Float64Array"}u.isFloat64Array=Ce;function ke(Je){return _(Je)==="BigInt64Array"}u.isBigInt64Array=ke;function le(Je){return _(Je)==="BigUint64Array"}u.isBigUint64Array=le;function re(Je){return S(Je)==="[object Map]"}re.working=typeof Map<"u"&&re(new Map);function P(Je){return typeof Map>"u"?!1:re.working?re(Je):Je instanceof Map}u.isMap=P;function k(Je){return S(Je)==="[object Set]"}k.working=typeof Set<"u"&&k(new Set);function B(Je){return typeof Set>"u"?!1:k.working?k(Je):Je instanceof Set}u.isSet=B;function z(Je){return S(Je)==="[object WeakMap]"}z.working=typeof WeakMap<"u"&&z(new WeakMap);function ee(Je){return typeof WeakMap>"u"?!1:z.working?z(Je):Je instanceof WeakMap}u.isWeakMap=ee;function H(Je){return S(Je)==="[object WeakSet]"}H.working=typeof WeakSet<"u"&&H(new WeakSet);function q(Je){return H(Je)}u.isWeakSet=q;function J(Je){return S(Je)==="[object ArrayBuffer]"}J.working=typeof ArrayBuffer<"u"&&J(new ArrayBuffer);function U(Je){return typeof ArrayBuffer>"u"?!1:J.working?J(Je):Je instanceof ArrayBuffer}u.isArrayBuffer=U;function Z(Je){return S(Je)==="[object DataView]"}Z.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&Z(new DataView(new ArrayBuffer(1),0,1));function ve(Je){return typeof DataView>"u"?!1:Z.working?Z(Je):Je instanceof DataView}u.isDataView=ve;var Ye=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function rt(Je){return S(Je)==="[object SharedArrayBuffer]"}function Ue(Je){return typeof Ye>"u"?!1:(typeof rt.working>"u"&&(rt.working=rt(new Ye)),rt.working?rt(Je):Je instanceof Ye)}u.isSharedArrayBuffer=Ue;function Qe(Je){return S(Je)==="[object AsyncFunction]"}u.isAsyncFunction=Qe;function vt(Je){return S(Je)==="[object Map Iterator]"}u.isMapIterator=vt;function ri(Je){return S(Je)==="[object Set Iterator]"}u.isSetIterator=ri;function ci(Je){return S(Je)==="[object Generator]"}u.isGeneratorObject=ci;function tt(Je){return S(Je)==="[object WebAssembly.Module]"}u.isWebAssemblyCompiledModule=tt;function et(Je){return $(Je,A)}u.isNumberObject=et;function $e(Je){return $(Je,T)}u.isStringObject=$e;function Le(Je){return $(Je,D)}u.isBooleanObject=Le;function ot(Je){return E&&$(Je,O)}u.isBigIntObject=ot;function Oe(Je){return M&&$(Je,j)}u.isSymbolObject=Oe;function Ne(Je){return et(Je)||$e(Je)||Le(Je)||ot(Je)||Oe(Je)}u.isBoxedPrimitive=Ne;function Fe(Je){return typeof Uint8Array<"u"&&(U(Je)||Ue(Je))}u.isAnyArrayBuffer=Fe,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(Je){Object.defineProperty(u,Je,{enumerable:!1,value:function(){throw new Error(Je+" is not supported in userland")}})})})(types);var isBufferBrowser=function u(f){return f&&typeof f=="object"&&typeof f.copy=="function"&&typeof f.fill=="function"&&typeof f.readUInt8=="function"};(function(u){var f={},d=Object.getOwnPropertyDescriptors||function(Ye){for(var rt=Object.keys(Ye),Ue={},Qe=0;Qe<rt.length;Qe++)Ue[rt[Qe]]=Object.getOwnPropertyDescriptor(Ye,rt[Qe]);return Ue},_=/%[sdj%]/g;u.format=function(ve){if(!be(ve)){for(var Ye=[],rt=0;rt<arguments.length;rt++)Ye.push(M(arguments[rt]));return Ye.join(" ")}for(var rt=1,Ue=arguments,Qe=Ue.length,vt=String(ve).replace(_,function(ci){if(ci==="%%")return"%";if(rt>=Qe)return ci;switch(ci){case"%s":return String(Ue[rt++]);case"%d":return Number(Ue[rt++]);case"%j":try{return JSON.stringify(Ue[rt++])}catch{return"[Circular]"}default:return ci}}),ri=Ue[rt];rt<Qe;ri=Ue[++rt])ie(ri)||!ke(ri)?vt+=" "+ri:vt+=" "+M(ri);return vt},u.deprecate=function(ve,Ye){if(typeof browserExports<"u"&&browserExports.noDeprecation===!0)return ve;if(typeof browserExports>"u")return function(){return u.deprecate(ve,Ye).apply(this,arguments)};var rt=!1;function Ue(){if(!rt){if(browserExports.throwDeprecation)throw new Error(Ye);browserExports.traceDeprecation?console.trace(Ye):console.error(Ye),rt=!0}return ve.apply(this,arguments)}return Ue};var x={},I=/^$/;if(f.NODE_DEBUG){var E=f.NODE_DEBUG;E=E.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),I=new RegExp("^"+E+"$","i")}u.debuglog=function(ve){if(ve=ve.toUpperCase(),!x[ve])if(I.test(ve)){var Ye=browserExports.pid;x[ve]=function(){var rt=u.format.apply(u,arguments);console.error("%s %d: %s",ve,Ye,rt)}}else x[ve]=function(){};return x[ve]};function M(ve,Ye){var rt={seen:[],stylize:A};return arguments.length>=3&&(rt.depth=arguments[2]),arguments.length>=4&&(rt.colors=arguments[3]),Y(Ye)?rt.showHidden=Ye:Ye&&u._extend(rt,Ye),de(rt.showHidden)&&(rt.showHidden=!1),de(rt.depth)&&(rt.depth=2),de(rt.colors)&&(rt.colors=!1),de(rt.customInspect)&&(rt.customInspect=!0),rt.colors&&(rt.stylize=S),D(rt,ve,rt.depth)}u.inspect=M,M.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},M.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function S(ve,Ye){var rt=M.styles[Ye];return rt?"\x1B["+M.colors[rt][0]+"m"+ve+"\x1B["+M.colors[rt][1]+"m":ve}function A(ve,Ye){return ve}function T(ve){var Ye={};return ve.forEach(function(rt,Ue){Ye[rt]=!0}),Ye}function D(ve,Ye,rt){if(ve.customInspect&&Ye&&P(Ye.inspect)&&Ye.inspect!==u.inspect&&!(Ye.constructor&&Ye.constructor.prototype===Ye)){var Ue=Ye.inspect(rt,ve);return be(Ue)||(Ue=D(ve,Ue,rt)),Ue}var Qe=O(ve,Ye);if(Qe)return Qe;var vt=Object.keys(Ye),ri=T(vt);if(ve.showHidden&&(vt=Object.getOwnPropertyNames(Ye)),re(Ye)&&(vt.indexOf("message")>=0||vt.indexOf("description")>=0))return j(Ye);if(vt.length===0){if(P(Ye)){var ci=Ye.name?": "+Ye.name:"";return ve.stylize("[Function"+ci+"]","special")}if(Ce(Ye))return ve.stylize(RegExp.prototype.toString.call(Ye),"regexp");if(le(Ye))return ve.stylize(Date.prototype.toString.call(Ye),"date");if(re(Ye))return j(Ye)}var tt="",et=!1,$e=["{","}"];if(X(Ye)&&(et=!0,$e=["[","]"]),P(Ye)){var Le=Ye.name?": "+Ye.name:"";tt=" [Function"+Le+"]"}if(Ce(Ye)&&(tt=" "+RegExp.prototype.toString.call(Ye)),le(Ye)&&(tt=" "+Date.prototype.toUTCString.call(Ye)),re(Ye)&&(tt=" "+j(Ye)),vt.length===0&&(!et||Ye.length==0))return $e[0]+tt+$e[1];if(rt<0)return Ce(Ye)?ve.stylize(RegExp.prototype.toString.call(Ye),"regexp"):ve.stylize("[Object]","special");ve.seen.push(Ye);var ot;return et?ot=$(ve,Ye,rt,ri,vt):ot=vt.map(function(Oe){return W(ve,Ye,rt,ri,Oe,et)}),ve.seen.pop(),Q(ot,tt,$e)}function O(ve,Ye){if(de(Ye))return ve.stylize("undefined","undefined");if(be(Ye)){var rt="'"+JSON.stringify(Ye).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return ve.stylize(rt,"string")}if(ge(Ye))return ve.stylize(""+Ye,"number");if(Y(Ye))return ve.stylize(""+Ye,"boolean");if(ie(Ye))return ve.stylize("null","null")}function j(ve){return"["+Error.prototype.toString.call(ve)+"]"}function $(ve,Ye,rt,Ue,Qe){for(var vt=[],ri=0,ci=Ye.length;ri<ci;++ri)q(Ye,String(ri))?vt.push(W(ve,Ye,rt,Ue,String(ri),!0)):vt.push("");return Qe.forEach(function(tt){tt.match(/^\d+$/)||vt.push(W(ve,Ye,rt,Ue,tt,!0))}),vt}function W(ve,Ye,rt,Ue,Qe,vt){var ri,ci,tt;if(tt=Object.getOwnPropertyDescriptor(Ye,Qe)||{value:Ye[Qe]},tt.get?tt.set?ci=ve.stylize("[Getter/Setter]","special"):ci=ve.stylize("[Getter]","special"):tt.set&&(ci=ve.stylize("[Setter]","special")),q(Ue,Qe)||(ri="["+Qe+"]"),ci||(ve.seen.indexOf(tt.value)<0?(ie(rt)?ci=D(ve,tt.value,null):ci=D(ve,tt.value,rt-1),ci.indexOf(`
`)>-1&&(vt?ci=ci.split(`
`).map(function(et){return"  "+et}).join(`
`).slice(2):ci=`
`+ci.split(`
`).map(function(et){return"   "+et}).join(`
`))):ci=ve.stylize("[Circular]","special")),de(ri)){if(vt&&Qe.match(/^\d+$/))return ci;ri=JSON.stringify(""+Qe),ri.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(ri=ri.slice(1,-1),ri=ve.stylize(ri,"name")):(ri=ri.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),ri=ve.stylize(ri,"string"))}return ri+": "+ci}function Q(ve,Ye,rt){var Ue=ve.reduce(function(Qe,vt){return vt.indexOf(`
`)>=0,Qe+vt.replace(/\u001b\[\d\d?m/g,"").length+1},0);return Ue>60?rt[0]+(Ye===""?"":Ye+`
 `)+" "+ve.join(`,
  `)+" "+rt[1]:rt[0]+Ye+" "+ve.join(", ")+" "+rt[1]}u.types=types;function X(ve){return Array.isArray(ve)}u.isArray=X;function Y(ve){return typeof ve=="boolean"}u.isBoolean=Y;function ie(ve){return ve===null}u.isNull=ie;function oe(ve){return ve==null}u.isNullOrUndefined=oe;function ge(ve){return typeof ve=="number"}u.isNumber=ge;function be(ve){return typeof ve=="string"}u.isString=be;function ze(ve){return typeof ve=="symbol"}u.isSymbol=ze;function de(ve){return ve===void 0}u.isUndefined=de;function Ce(ve){return ke(ve)&&B(ve)==="[object RegExp]"}u.isRegExp=Ce,u.types.isRegExp=Ce;function ke(ve){return typeof ve=="object"&&ve!==null}u.isObject=ke;function le(ve){return ke(ve)&&B(ve)==="[object Date]"}u.isDate=le,u.types.isDate=le;function re(ve){return ke(ve)&&(B(ve)==="[object Error]"||ve instanceof Error)}u.isError=re,u.types.isNativeError=re;function P(ve){return typeof ve=="function"}u.isFunction=P;function k(ve){return ve===null||typeof ve=="boolean"||typeof ve=="number"||typeof ve=="string"||typeof ve=="symbol"||typeof ve>"u"}u.isPrimitive=k,u.isBuffer=isBufferBrowser;function B(ve){return Object.prototype.toString.call(ve)}function z(ve){return ve<10?"0"+ve.toString(10):ve.toString(10)}var ee=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function H(){var ve=new Date,Ye=[z(ve.getHours()),z(ve.getMinutes()),z(ve.getSeconds())].join(":");return[ve.getDate(),ee[ve.getMonth()],Ye].join(" ")}u.log=function(){console.log("%s - %s",H(),u.format.apply(u,arguments))},u.inherits=inherits_browserExports,u._extend=function(ve,Ye){if(!Ye||!ke(Ye))return ve;for(var rt=Object.keys(Ye),Ue=rt.length;Ue--;)ve[rt[Ue]]=Ye[rt[Ue]];return ve};function q(ve,Ye){return Object.prototype.hasOwnProperty.call(ve,Ye)}var J=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;u.promisify=function(Ye){if(typeof Ye!="function")throw new TypeError('The "original" argument must be of type Function');if(J&&Ye[J]){var rt=Ye[J];if(typeof rt!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(rt,J,{value:rt,enumerable:!1,writable:!1,configurable:!0}),rt}function rt(){for(var Ue,Qe,vt=new Promise(function(tt,et){Ue=tt,Qe=et}),ri=[],ci=0;ci<arguments.length;ci++)ri.push(arguments[ci]);ri.push(function(tt,et){tt?Qe(tt):Ue(et)});try{Ye.apply(this,ri)}catch(tt){Qe(tt)}return vt}return Object.setPrototypeOf(rt,Object.getPrototypeOf(Ye)),J&&Object.defineProperty(rt,J,{value:rt,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(rt,d(Ye))},u.promisify.custom=J;function U(ve,Ye){if(!ve){var rt=new Error("Promise was rejected with a falsy value");rt.reason=ve,ve=rt}return Ye(ve)}function Z(ve){if(typeof ve!="function")throw new TypeError('The "original" argument must be of type Function');function Ye(){for(var rt=[],Ue=0;Ue<arguments.length;Ue++)rt.push(arguments[Ue]);var Qe=rt.pop();if(typeof Qe!="function")throw new TypeError("The last argument must be of type Function");var vt=this,ri=function(){return Qe.apply(vt,arguments)};ve.apply(this,rt).then(function(ci){browserExports.nextTick(ri.bind(null,null,ci))},function(ci){browserExports.nextTick(U.bind(null,ci,ri))})}return Object.setPrototypeOf(Ye,Object.getPrototypeOf(ve)),Object.defineProperties(Ye,d(ve)),Ye}u.callbackify=Z})(util);var buffer_list,hasRequiredBuffer_list;function requireBuffer_list(){if(hasRequiredBuffer_list)return buffer_list;hasRequiredBuffer_list=1;function u($,W){var Q=Object.keys($);if(Object.getOwnPropertySymbols){var X=Object.getOwnPropertySymbols($);W&&(X=X.filter(function(Y){return Object.getOwnPropertyDescriptor($,Y).enumerable})),Q.push.apply(Q,X)}return Q}function f($){for(var W=1;W<arguments.length;W++){var Q=arguments[W]!=null?arguments[W]:{};W%2?u(Object(Q),!0).forEach(function(X){d($,X,Q[X])}):Object.getOwnPropertyDescriptors?Object.defineProperties($,Object.getOwnPropertyDescriptors(Q)):u(Object(Q)).forEach(function(X){Object.defineProperty($,X,Object.getOwnPropertyDescriptor(Q,X))})}return $}function d($,W,Q){return W=E(W),W in $?Object.defineProperty($,W,{value:Q,enumerable:!0,configurable:!0,writable:!0}):$[W]=Q,$}function _($,W){if(!($ instanceof W))throw new TypeError("Cannot call a class as a function")}function x($,W){for(var Q=0;Q<W.length;Q++){var X=W[Q];X.enumerable=X.enumerable||!1,X.configurable=!0,"value"in X&&(X.writable=!0),Object.defineProperty($,E(X.key),X)}}function I($,W,Q){return W&&x($.prototype,W),Q&&x($,Q),Object.defineProperty($,"prototype",{writable:!1}),$}function E($){var W=M($,"string");return typeof W=="symbol"?W:String(W)}function M($,W){if(typeof $!="object"||$===null)return $;var Q=$[Symbol.toPrimitive];if(Q!==void 0){var X=Q.call($,W||"default");if(typeof X!="object")return X;throw new TypeError("@@toPrimitive must return a primitive value.")}return(W==="string"?String:Number)($)}var S=buffer$2,A=S.Buffer,T=util,D=T.inspect,O=D&&D.custom||"inspect";function j($,W,Q){A.prototype.copy.call($,W,Q)}return buffer_list=function(){function $(){_(this,$),this.head=null,this.tail=null,this.length=0}return I($,[{key:"push",value:function(Q){var X={data:Q,next:null};this.length>0?this.tail.next=X:this.head=X,this.tail=X,++this.length}},{key:"unshift",value:function(Q){var X={data:Q,next:this.head};this.length===0&&(this.tail=X),this.head=X,++this.length}},{key:"shift",value:function(){if(this.length!==0){var Q=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,Q}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(Q){if(this.length===0)return"";for(var X=this.head,Y=""+X.data;X=X.next;)Y+=Q+X.data;return Y}},{key:"concat",value:function(Q){if(this.length===0)return A.alloc(0);for(var X=A.allocUnsafe(Q>>>0),Y=this.head,ie=0;Y;)j(Y.data,X,ie),ie+=Y.data.length,Y=Y.next;return X}},{key:"consume",value:function(Q,X){var Y;return Q<this.head.data.length?(Y=this.head.data.slice(0,Q),this.head.data=this.head.data.slice(Q)):Q===this.head.data.length?Y=this.shift():Y=X?this._getString(Q):this._getBuffer(Q),Y}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(Q){var X=this.head,Y=1,ie=X.data;for(Q-=ie.length;X=X.next;){var oe=X.data,ge=Q>oe.length?oe.length:Q;if(ge===oe.length?ie+=oe:ie+=oe.slice(0,Q),Q-=ge,Q===0){ge===oe.length?(++Y,X.next?this.head=X.next:this.head=this.tail=null):(this.head=X,X.data=oe.slice(ge));break}++Y}return this.length-=Y,ie}},{key:"_getBuffer",value:function(Q){var X=A.allocUnsafe(Q),Y=this.head,ie=1;for(Y.data.copy(X),Q-=Y.data.length;Y=Y.next;){var oe=Y.data,ge=Q>oe.length?oe.length:Q;if(oe.copy(X,X.length-Q,0,ge),Q-=ge,Q===0){ge===oe.length?(++ie,Y.next?this.head=Y.next:this.head=this.tail=null):(this.head=Y,Y.data=oe.slice(ge));break}++ie}return this.length-=ie,X}},{key:O,value:function(Q,X){return D(this,f(f({},X),{},{depth:0,customInspect:!1}))}}]),$}(),buffer_list}function destroy(u,f){var d=this,_=this._readableState&&this._readableState.destroyed,x=this._writableState&&this._writableState.destroyed;return _||x?(f?f(u):u&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,browserExports.nextTick(emitErrorNT,this,u)):browserExports.nextTick(emitErrorNT,this,u)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(u||null,function(I){!f&&I?d._writableState?d._writableState.errorEmitted?browserExports.nextTick(emitCloseNT,d):(d._writableState.errorEmitted=!0,browserExports.nextTick(emitErrorAndCloseNT,d,I)):browserExports.nextTick(emitErrorAndCloseNT,d,I):f?(browserExports.nextTick(emitCloseNT,d),f(I)):browserExports.nextTick(emitCloseNT,d)}),this)}function emitErrorAndCloseNT(u,f){emitErrorNT(u,f),emitCloseNT(u)}function emitCloseNT(u){u._writableState&&!u._writableState.emitClose||u._readableState&&!u._readableState.emitClose||u.emit("close")}function undestroy(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function emitErrorNT(u,f){u.emit("error",f)}function errorOrDestroy(u,f){var d=u._readableState,_=u._writableState;d&&d.autoDestroy||_&&_.autoDestroy?u.destroy(f):u.emit("error",f)}var destroy_1={destroy,undestroy,errorOrDestroy},errorsBrowser={};function _inheritsLoose(u,f){u.prototype=Object.create(f.prototype),u.prototype.constructor=u,u.__proto__=f}var codes={};function createErrorType(u,f,d){d||(d=Error);function _(I,E,M){return typeof f=="string"?f:f(I,E,M)}var x=function(I){_inheritsLoose(E,I);function E(M,S,A){return I.call(this,_(M,S,A))||this}return E}(d);x.prototype.name=d.name,x.prototype.code=u,codes[u]=x}function oneOf(u,f){if(Array.isArray(u)){var d=u.length;return u=u.map(function(_){return String(_)}),d>2?"one of ".concat(f," ").concat(u.slice(0,d-1).join(", "),", or ")+u[d-1]:d===2?"one of ".concat(f," ").concat(u[0]," or ").concat(u[1]):"of ".concat(f," ").concat(u[0])}else return"of ".concat(f," ").concat(String(u))}function startsWith(u,f,d){return u.substr(!d||d<0?0:+d,f.length)===f}function endsWith(u,f,d){return(d===void 0||d>u.length)&&(d=u.length),u.substring(d-f.length,d)===f}function includes(u,f,d){return typeof d!="number"&&(d=0),d+f.length>u.length?!1:u.indexOf(f,d)!==-1}createErrorType("ERR_INVALID_OPT_VALUE",function(u,f){return'The value "'+f+'" is invalid for option "'+u+'"'},TypeError);createErrorType("ERR_INVALID_ARG_TYPE",function(u,f,d){var _;typeof f=="string"&&startsWith(f,"not ")?(_="must not be",f=f.replace(/^not /,"")):_="must be";var x;if(endsWith(u," argument"))x="The ".concat(u," ").concat(_," ").concat(oneOf(f,"type"));else{var I=includes(u,".")?"property":"argument";x='The "'.concat(u,'" ').concat(I," ").concat(_," ").concat(oneOf(f,"type"))}return x+=". Received type ".concat(typeof d),x},TypeError);createErrorType("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");createErrorType("ERR_METHOD_NOT_IMPLEMENTED",function(u){return"The "+u+" method is not implemented"});createErrorType("ERR_STREAM_PREMATURE_CLOSE","Premature close");createErrorType("ERR_STREAM_DESTROYED",function(u){return"Cannot call "+u+" after a stream was destroyed"});createErrorType("ERR_MULTIPLE_CALLBACK","Callback called multiple times");createErrorType("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");createErrorType("ERR_STREAM_WRITE_AFTER_END","write after end");createErrorType("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);createErrorType("ERR_UNKNOWN_ENCODING",function(u){return"Unknown encoding: "+u},TypeError);createErrorType("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");errorsBrowser.codes=codes;var ERR_INVALID_OPT_VALUE=errorsBrowser.codes.ERR_INVALID_OPT_VALUE;function highWaterMarkFrom(u,f,d){return u.highWaterMark!=null?u.highWaterMark:f?u[d]:null}function getHighWaterMark(u,f,d,_){var x=highWaterMarkFrom(f,_,d);if(x!=null){if(!(isFinite(x)&&Math.floor(x)===x)||x<0){var I=_?d:"highWaterMark";throw new ERR_INVALID_OPT_VALUE(I,x)}return Math.floor(x)}return u.objectMode?16:16*1024}var state={getHighWaterMark},browser$d=deprecate;function deprecate(u,f){if(config("noDeprecation"))return u;var d=!1;function _(){if(!d){if(config("throwDeprecation"))throw new Error(f);config("traceDeprecation")?console.trace(f):console.warn(f),d=!0}return u.apply(this,arguments)}return _}function config(u){try{if(!commonjsGlobal$1.localStorage)return!1}catch{return!1}var f=commonjsGlobal$1.localStorage[u];return f==null?!1:String(f).toLowerCase()==="true"}var _stream_writable,hasRequired_stream_writable;function require_stream_writable(){if(hasRequired_stream_writable)return _stream_writable;hasRequired_stream_writable=1,_stream_writable=de;function u(Ue){var Qe=this;this.next=null,this.entry=null,this.finish=function(){rt(Qe,Ue)}}var f;de.WritableState=be;var d={deprecate:browser$d},_=streamBrowser,x=buffer$2.Buffer,I=(typeof commonjsGlobal$1<"u"?commonjsGlobal$1:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function E(Ue){return x.from(Ue)}function M(Ue){return x.isBuffer(Ue)||Ue instanceof I}var S=destroy_1,A=state,T=A.getHighWaterMark,D=errorsBrowser.codes,O=D.ERR_INVALID_ARG_TYPE,j=D.ERR_METHOD_NOT_IMPLEMENTED,$=D.ERR_MULTIPLE_CALLBACK,W=D.ERR_STREAM_CANNOT_PIPE,Q=D.ERR_STREAM_DESTROYED,X=D.ERR_STREAM_NULL_VALUES,Y=D.ERR_STREAM_WRITE_AFTER_END,ie=D.ERR_UNKNOWN_ENCODING,oe=S.errorOrDestroy;inherits_browserExports(de,_);function ge(){}function be(Ue,Qe,vt){f=f||require_stream_duplex(),Ue=Ue||{},typeof vt!="boolean"&&(vt=Qe instanceof f),this.objectMode=!!Ue.objectMode,vt&&(this.objectMode=this.objectMode||!!Ue.writableObjectMode),this.highWaterMark=T(this,Ue,"writableHighWaterMark",vt),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var ri=Ue.decodeStrings===!1;this.decodeStrings=!ri,this.defaultEncoding=Ue.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(ci){z(Qe,ci)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=Ue.emitClose!==!1,this.autoDestroy=!!Ue.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new u(this)}be.prototype.getBuffer=function(){for(var Qe=this.bufferedRequest,vt=[];Qe;)vt.push(Qe),Qe=Qe.next;return vt},function(){try{Object.defineProperty(be.prototype,"buffer",{get:d.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var ze;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(ze=Function.prototype[Symbol.hasInstance],Object.defineProperty(de,Symbol.hasInstance,{value:function(Qe){return ze.call(this,Qe)?!0:this!==de?!1:Qe&&Qe._writableState instanceof be}})):ze=function(Qe){return Qe instanceof this};function de(Ue){f=f||require_stream_duplex();var Qe=this instanceof f;if(!Qe&&!ze.call(de,this))return new de(Ue);this._writableState=new be(Ue,this,Qe),this.writable=!0,Ue&&(typeof Ue.write=="function"&&(this._write=Ue.write),typeof Ue.writev=="function"&&(this._writev=Ue.writev),typeof Ue.destroy=="function"&&(this._destroy=Ue.destroy),typeof Ue.final=="function"&&(this._final=Ue.final)),_.call(this)}de.prototype.pipe=function(){oe(this,new W)};function Ce(Ue,Qe){var vt=new Y;oe(Ue,vt),browserExports.nextTick(Qe,vt)}function ke(Ue,Qe,vt,ri){var ci;return vt===null?ci=new X:typeof vt!="string"&&!Qe.objectMode&&(ci=new O("chunk",["string","Buffer"],vt)),ci?(oe(Ue,ci),browserExports.nextTick(ri,ci),!1):!0}de.prototype.write=function(Ue,Qe,vt){var ri=this._writableState,ci=!1,tt=!ri.objectMode&&M(Ue);return tt&&!x.isBuffer(Ue)&&(Ue=E(Ue)),typeof Qe=="function"&&(vt=Qe,Qe=null),tt?Qe="buffer":Qe||(Qe=ri.defaultEncoding),typeof vt!="function"&&(vt=ge),ri.ending?Ce(this,vt):(tt||ke(this,ri,Ue,vt))&&(ri.pendingcb++,ci=re(this,ri,tt,Ue,Qe,vt)),ci},de.prototype.cork=function(){this._writableState.corked++},de.prototype.uncork=function(){var Ue=this._writableState;Ue.corked&&(Ue.corked--,!Ue.writing&&!Ue.corked&&!Ue.bufferProcessing&&Ue.bufferedRequest&&q(this,Ue))},de.prototype.setDefaultEncoding=function(Qe){if(typeof Qe=="string"&&(Qe=Qe.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Qe+"").toLowerCase())>-1))throw new ie(Qe);return this._writableState.defaultEncoding=Qe,this},Object.defineProperty(de.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function le(Ue,Qe,vt){return!Ue.objectMode&&Ue.decodeStrings!==!1&&typeof Qe=="string"&&(Qe=x.from(Qe,vt)),Qe}Object.defineProperty(de.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function re(Ue,Qe,vt,ri,ci,tt){if(!vt){var et=le(Qe,ri,ci);ri!==et&&(vt=!0,ci="buffer",ri=et)}var $e=Qe.objectMode?1:ri.length;Qe.length+=$e;var Le=Qe.length<Qe.highWaterMark;if(Le||(Qe.needDrain=!0),Qe.writing||Qe.corked){var ot=Qe.lastBufferedRequest;Qe.lastBufferedRequest={chunk:ri,encoding:ci,isBuf:vt,callback:tt,next:null},ot?ot.next=Qe.lastBufferedRequest:Qe.bufferedRequest=Qe.lastBufferedRequest,Qe.bufferedRequestCount+=1}else P(Ue,Qe,!1,$e,ri,ci,tt);return Le}function P(Ue,Qe,vt,ri,ci,tt,et){Qe.writelen=ri,Qe.writecb=et,Qe.writing=!0,Qe.sync=!0,Qe.destroyed?Qe.onwrite(new Q("write")):vt?Ue._writev(ci,Qe.onwrite):Ue._write(ci,tt,Qe.onwrite),Qe.sync=!1}function k(Ue,Qe,vt,ri,ci){--Qe.pendingcb,vt?(browserExports.nextTick(ci,ri),browserExports.nextTick(ve,Ue,Qe),Ue._writableState.errorEmitted=!0,oe(Ue,ri)):(ci(ri),Ue._writableState.errorEmitted=!0,oe(Ue,ri),ve(Ue,Qe))}function B(Ue){Ue.writing=!1,Ue.writecb=null,Ue.length-=Ue.writelen,Ue.writelen=0}function z(Ue,Qe){var vt=Ue._writableState,ri=vt.sync,ci=vt.writecb;if(typeof ci!="function")throw new $;if(B(vt),Qe)k(Ue,vt,ri,Qe,ci);else{var tt=J(vt)||Ue.destroyed;!tt&&!vt.corked&&!vt.bufferProcessing&&vt.bufferedRequest&&q(Ue,vt),ri?browserExports.nextTick(ee,Ue,vt,tt,ci):ee(Ue,vt,tt,ci)}}function ee(Ue,Qe,vt,ri){vt||H(Ue,Qe),Qe.pendingcb--,ri(),ve(Ue,Qe)}function H(Ue,Qe){Qe.length===0&&Qe.needDrain&&(Qe.needDrain=!1,Ue.emit("drain"))}function q(Ue,Qe){Qe.bufferProcessing=!0;var vt=Qe.bufferedRequest;if(Ue._writev&&vt&&vt.next){var ri=Qe.bufferedRequestCount,ci=new Array(ri),tt=Qe.corkedRequestsFree;tt.entry=vt;for(var et=0,$e=!0;vt;)ci[et]=vt,vt.isBuf||($e=!1),vt=vt.next,et+=1;ci.allBuffers=$e,P(Ue,Qe,!0,Qe.length,ci,"",tt.finish),Qe.pendingcb++,Qe.lastBufferedRequest=null,tt.next?(Qe.corkedRequestsFree=tt.next,tt.next=null):Qe.corkedRequestsFree=new u(Qe),Qe.bufferedRequestCount=0}else{for(;vt;){var Le=vt.chunk,ot=vt.encoding,Oe=vt.callback,Ne=Qe.objectMode?1:Le.length;if(P(Ue,Qe,!1,Ne,Le,ot,Oe),vt=vt.next,Qe.bufferedRequestCount--,Qe.writing)break}vt===null&&(Qe.lastBufferedRequest=null)}Qe.bufferedRequest=vt,Qe.bufferProcessing=!1}de.prototype._write=function(Ue,Qe,vt){vt(new j("_write()"))},de.prototype._writev=null,de.prototype.end=function(Ue,Qe,vt){var ri=this._writableState;return typeof Ue=="function"?(vt=Ue,Ue=null,Qe=null):typeof Qe=="function"&&(vt=Qe,Qe=null),Ue!=null&&this.write(Ue,Qe),ri.corked&&(ri.corked=1,this.uncork()),ri.ending||Ye(this,ri,vt),this},Object.defineProperty(de.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function J(Ue){return Ue.ending&&Ue.length===0&&Ue.bufferedRequest===null&&!Ue.finished&&!Ue.writing}function U(Ue,Qe){Ue._final(function(vt){Qe.pendingcb--,vt&&oe(Ue,vt),Qe.prefinished=!0,Ue.emit("prefinish"),ve(Ue,Qe)})}function Z(Ue,Qe){!Qe.prefinished&&!Qe.finalCalled&&(typeof Ue._final=="function"&&!Qe.destroyed?(Qe.pendingcb++,Qe.finalCalled=!0,browserExports.nextTick(U,Ue,Qe)):(Qe.prefinished=!0,Ue.emit("prefinish")))}function ve(Ue,Qe){var vt=J(Qe);if(vt&&(Z(Ue,Qe),Qe.pendingcb===0&&(Qe.finished=!0,Ue.emit("finish"),Qe.autoDestroy))){var ri=Ue._readableState;(!ri||ri.autoDestroy&&ri.endEmitted)&&Ue.destroy()}return vt}function Ye(Ue,Qe,vt){Qe.ending=!0,ve(Ue,Qe),vt&&(Qe.finished?browserExports.nextTick(vt):Ue.once("finish",vt)),Qe.ended=!0,Ue.writable=!1}function rt(Ue,Qe,vt){var ri=Ue.entry;for(Ue.entry=null;ri;){var ci=ri.callback;Qe.pendingcb--,ci(vt),ri=ri.next}Qe.corkedRequestsFree.next=Ue}return Object.defineProperty(de.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(Qe){this._writableState&&(this._writableState.destroyed=Qe)}}),de.prototype.destroy=S.destroy,de.prototype._undestroy=S.undestroy,de.prototype._destroy=function(Ue,Qe){Qe(Ue)},_stream_writable}var _stream_duplex,hasRequired_stream_duplex;function require_stream_duplex(){if(hasRequired_stream_duplex)return _stream_duplex;hasRequired_stream_duplex=1;var u=Object.keys||function(A){var T=[];for(var D in A)T.push(D);return T};_stream_duplex=E;var f=require_stream_readable(),d=require_stream_writable();inherits_browserExports(E,f);for(var _=u(d.prototype),x=0;x<_.length;x++){var I=_[x];E.prototype[I]||(E.prototype[I]=d.prototype[I])}function E(A){if(!(this instanceof E))return new E(A);f.call(this,A),d.call(this,A),this.allowHalfOpen=!0,A&&(A.readable===!1&&(this.readable=!1),A.writable===!1&&(this.writable=!1),A.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",M)))}Object.defineProperty(E.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(E.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(E.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function M(){this._writableState.ended||browserExports.nextTick(S,this)}function S(A){A.end()}return Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(T){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=T,this._writableState.destroyed=T)}}),_stream_duplex}var string_decoder={},safeBuffer={exports:{}},hasRequiredSafeBuffer;function requireSafeBuffer(){return hasRequiredSafeBuffer||(hasRequiredSafeBuffer=1,function(u,f){var d=buffer$2,_=d.Buffer;function x(E,M){for(var S in E)M[S]=E[S]}_.from&&_.alloc&&_.allocUnsafe&&_.allocUnsafeSlow?u.exports=d:(x(d,f),f.Buffer=I);function I(E,M,S){return _(E,M,S)}I.prototype=Object.create(_.prototype),x(_,I),I.from=function(E,M,S){if(typeof E=="number")throw new TypeError("Argument must not be a number");return _(E,M,S)},I.alloc=function(E,M,S){if(typeof E!="number")throw new TypeError("Argument must be a number");var A=_(E);return M!==void 0?typeof S=="string"?A.fill(M,S):A.fill(M):A.fill(0),A},I.allocUnsafe=function(E){if(typeof E!="number")throw new TypeError("Argument must be a number");return _(E)},I.allocUnsafeSlow=function(E){if(typeof E!="number")throw new TypeError("Argument must be a number");return d.SlowBuffer(E)}}(safeBuffer,safeBuffer.exports)),safeBuffer.exports}var hasRequiredString_decoder;function requireString_decoder(){if(hasRequiredString_decoder)return string_decoder;hasRequiredString_decoder=1;var u=requireSafeBuffer().Buffer,f=u.isEncoding||function(X){switch(X=""+X,X&&X.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function d(X){if(!X)return"utf8";for(var Y;;)switch(X){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return X;default:if(Y)return;X=(""+X).toLowerCase(),Y=!0}}function _(X){var Y=d(X);if(typeof Y!="string"&&(u.isEncoding===f||!f(X)))throw new Error("Unknown encoding: "+X);return Y||X}string_decoder.StringDecoder=x;function x(X){this.encoding=_(X);var Y;switch(this.encoding){case"utf16le":this.text=D,this.end=O,Y=4;break;case"utf8":this.fillLast=S,Y=4;break;case"base64":this.text=j,this.end=$,Y=3;break;default:this.write=W,this.end=Q;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=u.allocUnsafe(Y)}x.prototype.write=function(X){if(X.length===0)return"";var Y,ie;if(this.lastNeed){if(Y=this.fillLast(X),Y===void 0)return"";ie=this.lastNeed,this.lastNeed=0}else ie=0;return ie<X.length?Y?Y+this.text(X,ie):this.text(X,ie):Y||""},x.prototype.end=T,x.prototype.text=A,x.prototype.fillLast=function(X){if(this.lastNeed<=X.length)return X.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);X.copy(this.lastChar,this.lastTotal-this.lastNeed,0,X.length),this.lastNeed-=X.length};function I(X){return X<=127?0:X>>5===6?2:X>>4===14?3:X>>3===30?4:X>>6===2?-1:-2}function E(X,Y,ie){var oe=Y.length-1;if(oe<ie)return 0;var ge=I(Y[oe]);return ge>=0?(ge>0&&(X.lastNeed=ge-1),ge):--oe<ie||ge===-2?0:(ge=I(Y[oe]),ge>=0?(ge>0&&(X.lastNeed=ge-2),ge):--oe<ie||ge===-2?0:(ge=I(Y[oe]),ge>=0?(ge>0&&(ge===2?ge=0:X.lastNeed=ge-3),ge):0))}function M(X,Y,ie){if((Y[0]&192)!==128)return X.lastNeed=0,"�";if(X.lastNeed>1&&Y.length>1){if((Y[1]&192)!==128)return X.lastNeed=1,"�";if(X.lastNeed>2&&Y.length>2&&(Y[2]&192)!==128)return X.lastNeed=2,"�"}}function S(X){var Y=this.lastTotal-this.lastNeed,ie=M(this,X);if(ie!==void 0)return ie;if(this.lastNeed<=X.length)return X.copy(this.lastChar,Y,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);X.copy(this.lastChar,Y,0,X.length),this.lastNeed-=X.length}function A(X,Y){var ie=E(this,X,Y);if(!this.lastNeed)return X.toString("utf8",Y);this.lastTotal=ie;var oe=X.length-(ie-this.lastNeed);return X.copy(this.lastChar,0,oe),X.toString("utf8",Y,oe)}function T(X){var Y=X&&X.length?this.write(X):"";return this.lastNeed?Y+"�":Y}function D(X,Y){if((X.length-Y)%2===0){var ie=X.toString("utf16le",Y);if(ie){var oe=ie.charCodeAt(ie.length-1);if(oe>=55296&&oe<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=X[X.length-2],this.lastChar[1]=X[X.length-1],ie.slice(0,-1)}return ie}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=X[X.length-1],X.toString("utf16le",Y,X.length-1)}function O(X){var Y=X&&X.length?this.write(X):"";if(this.lastNeed){var ie=this.lastTotal-this.lastNeed;return Y+this.lastChar.toString("utf16le",0,ie)}return Y}function j(X,Y){var ie=(X.length-Y)%3;return ie===0?X.toString("base64",Y):(this.lastNeed=3-ie,this.lastTotal=3,ie===1?this.lastChar[0]=X[X.length-1]:(this.lastChar[0]=X[X.length-2],this.lastChar[1]=X[X.length-1]),X.toString("base64",Y,X.length-ie))}function $(X){var Y=X&&X.length?this.write(X):"";return this.lastNeed?Y+this.lastChar.toString("base64",0,3-this.lastNeed):Y}function W(X){return X.toString(this.encoding)}function Q(X){return X&&X.length?this.write(X):""}return string_decoder}var ERR_STREAM_PREMATURE_CLOSE=errorsBrowser.codes.ERR_STREAM_PREMATURE_CLOSE;function once$1(u){var f=!1;return function(){if(!f){f=!0;for(var d=arguments.length,_=new Array(d),x=0;x<d;x++)_[x]=arguments[x];u.apply(this,_)}}}function noop$1(){}function isRequest$1(u){return u.setHeader&&typeof u.abort=="function"}function eos$1(u,f,d){if(typeof f=="function")return eos$1(u,null,f);f||(f={}),d=once$1(d||noop$1);var _=f.readable||f.readable!==!1&&u.readable,x=f.writable||f.writable!==!1&&u.writable,I=function(){u.writable||M()},E=u._writableState&&u._writableState.finished,M=function(){x=!1,E=!0,_||d.call(u)},S=u._readableState&&u._readableState.endEmitted,A=function(){_=!1,S=!0,x||d.call(u)},T=function($){d.call(u,$)},D=function(){var $;if(_&&!S)return(!u._readableState||!u._readableState.ended)&&($=new ERR_STREAM_PREMATURE_CLOSE),d.call(u,$);if(x&&!E)return(!u._writableState||!u._writableState.ended)&&($=new ERR_STREAM_PREMATURE_CLOSE),d.call(u,$)},O=function(){u.req.on("finish",M)};return isRequest$1(u)?(u.on("complete",M),u.on("abort",D),u.req?O():u.on("request",O)):x&&!u._writableState&&(u.on("end",I),u.on("close",I)),u.on("end",A),u.on("finish",M),f.error!==!1&&u.on("error",T),u.on("close",D),function(){u.removeListener("complete",M),u.removeListener("abort",D),u.removeListener("request",O),u.req&&u.req.removeListener("finish",M),u.removeListener("end",I),u.removeListener("close",I),u.removeListener("finish",M),u.removeListener("end",A),u.removeListener("error",T),u.removeListener("close",D)}}var endOfStream=eos$1,async_iterator,hasRequiredAsync_iterator;function requireAsync_iterator(){if(hasRequiredAsync_iterator)return async_iterator;hasRequiredAsync_iterator=1;var u;function f(ie,oe,ge){return oe=d(oe),oe in ie?Object.defineProperty(ie,oe,{value:ge,enumerable:!0,configurable:!0,writable:!0}):ie[oe]=ge,ie}function d(ie){var oe=_(ie,"string");return typeof oe=="symbol"?oe:String(oe)}function _(ie,oe){if(typeof ie!="object"||ie===null)return ie;var ge=ie[Symbol.toPrimitive];if(ge!==void 0){var be=ge.call(ie,oe||"default");if(typeof be!="object")return be;throw new TypeError("@@toPrimitive must return a primitive value.")}return(oe==="string"?String:Number)(ie)}var x=endOfStream,I=Symbol("lastResolve"),E=Symbol("lastReject"),M=Symbol("error"),S=Symbol("ended"),A=Symbol("lastPromise"),T=Symbol("handlePromise"),D=Symbol("stream");function O(ie,oe){return{value:ie,done:oe}}function j(ie){var oe=ie[I];if(oe!==null){var ge=ie[D].read();ge!==null&&(ie[A]=null,ie[I]=null,ie[E]=null,oe(O(ge,!1)))}}function $(ie){browserExports.nextTick(j,ie)}function W(ie,oe){return function(ge,be){ie.then(function(){if(oe[S]){ge(O(void 0,!0));return}oe[T](ge,be)},be)}}var Q=Object.getPrototypeOf(function(){}),X=Object.setPrototypeOf((u={get stream(){return this[D]},next:function(){var oe=this,ge=this[M];if(ge!==null)return Promise.reject(ge);if(this[S])return Promise.resolve(O(void 0,!0));if(this[D].destroyed)return new Promise(function(Ce,ke){browserExports.nextTick(function(){oe[M]?ke(oe[M]):Ce(O(void 0,!0))})});var be=this[A],ze;if(be)ze=new Promise(W(be,this));else{var de=this[D].read();if(de!==null)return Promise.resolve(O(de,!1));ze=new Promise(this[T])}return this[A]=ze,ze}},f(u,Symbol.asyncIterator,function(){return this}),f(u,"return",function(){var oe=this;return new Promise(function(ge,be){oe[D].destroy(null,function(ze){if(ze){be(ze);return}ge(O(void 0,!0))})})}),u),Q),Y=function(oe){var ge,be=Object.create(X,(ge={},f(ge,D,{value:oe,writable:!0}),f(ge,I,{value:null,writable:!0}),f(ge,E,{value:null,writable:!0}),f(ge,M,{value:null,writable:!0}),f(ge,S,{value:oe._readableState.endEmitted,writable:!0}),f(ge,T,{value:function(de,Ce){var ke=be[D].read();ke?(be[A]=null,be[I]=null,be[E]=null,de(O(ke,!1))):(be[I]=de,be[E]=Ce)},writable:!0}),ge));return be[A]=null,x(oe,function(ze){if(ze&&ze.code!=="ERR_STREAM_PREMATURE_CLOSE"){var de=be[E];de!==null&&(be[A]=null,be[I]=null,be[E]=null,de(ze)),be[M]=ze;return}var Ce=be[I];Ce!==null&&(be[A]=null,be[I]=null,be[E]=null,Ce(O(void 0,!0))),be[S]=!0}),oe.on("readable",$.bind(null,be)),be};return async_iterator=Y,async_iterator}var fromBrowser,hasRequiredFromBrowser;function requireFromBrowser(){return hasRequiredFromBrowser||(hasRequiredFromBrowser=1,fromBrowser=function(){throw new Error("Readable.from is not available in the browser")}),fromBrowser}var _stream_readable,hasRequired_stream_readable;function require_stream_readable(){if(hasRequired_stream_readable)return _stream_readable;hasRequired_stream_readable=1,_stream_readable=Ce;var u;Ce.ReadableState=de,eventsExports.EventEmitter;var f=function(et,$e){return et.listeners($e).length},d=streamBrowser,_=buffer$2.Buffer,x=(typeof commonjsGlobal$1<"u"?commonjsGlobal$1:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function I(tt){return _.from(tt)}function E(tt){return _.isBuffer(tt)||tt instanceof x}var M=util,S;M&&M.debuglog?S=M.debuglog("stream"):S=function(){};var A=requireBuffer_list(),T=destroy_1,D=state,O=D.getHighWaterMark,j=errorsBrowser.codes,$=j.ERR_INVALID_ARG_TYPE,W=j.ERR_STREAM_PUSH_AFTER_EOF,Q=j.ERR_METHOD_NOT_IMPLEMENTED,X=j.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Y,ie,oe;inherits_browserExports(Ce,d);var ge=T.errorOrDestroy,be=["error","close","destroy","pause","resume"];function ze(tt,et,$e){if(typeof tt.prependListener=="function")return tt.prependListener(et,$e);!tt._events||!tt._events[et]?tt.on(et,$e):Array.isArray(tt._events[et])?tt._events[et].unshift($e):tt._events[et]=[$e,tt._events[et]]}function de(tt,et,$e){u=u||require_stream_duplex(),tt=tt||{},typeof $e!="boolean"&&($e=et instanceof u),this.objectMode=!!tt.objectMode,$e&&(this.objectMode=this.objectMode||!!tt.readableObjectMode),this.highWaterMark=O(this,tt,"readableHighWaterMark",$e),this.buffer=new A,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=tt.emitClose!==!1,this.autoDestroy=!!tt.autoDestroy,this.destroyed=!1,this.defaultEncoding=tt.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,tt.encoding&&(Y||(Y=requireString_decoder().StringDecoder),this.decoder=new Y(tt.encoding),this.encoding=tt.encoding)}function Ce(tt){if(u=u||require_stream_duplex(),!(this instanceof Ce))return new Ce(tt);var et=this instanceof u;this._readableState=new de(tt,this,et),this.readable=!0,tt&&(typeof tt.read=="function"&&(this._read=tt.read),typeof tt.destroy=="function"&&(this._destroy=tt.destroy)),d.call(this)}Object.defineProperty(Ce.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(et){this._readableState&&(this._readableState.destroyed=et)}}),Ce.prototype.destroy=T.destroy,Ce.prototype._undestroy=T.undestroy,Ce.prototype._destroy=function(tt,et){et(tt)},Ce.prototype.push=function(tt,et){var $e=this._readableState,Le;return $e.objectMode?Le=!0:typeof tt=="string"&&(et=et||$e.defaultEncoding,et!==$e.encoding&&(tt=_.from(tt,et),et=""),Le=!0),ke(this,tt,et,!1,Le)},Ce.prototype.unshift=function(tt){return ke(this,tt,null,!0,!1)};function ke(tt,et,$e,Le,ot){S("readableAddChunk",et);var Oe=tt._readableState;if(et===null)Oe.reading=!1,z(tt,Oe);else{var Ne;if(ot||(Ne=re(Oe,et)),Ne)ge(tt,Ne);else if(Oe.objectMode||et&&et.length>0)if(typeof et!="string"&&!Oe.objectMode&&Object.getPrototypeOf(et)!==_.prototype&&(et=I(et)),Le)Oe.endEmitted?ge(tt,new X):le(tt,Oe,et,!0);else if(Oe.ended)ge(tt,new W);else{if(Oe.destroyed)return!1;Oe.reading=!1,Oe.decoder&&!$e?(et=Oe.decoder.write(et),Oe.objectMode||et.length!==0?le(tt,Oe,et,!1):q(tt,Oe)):le(tt,Oe,et,!1)}else Le||(Oe.reading=!1,q(tt,Oe))}return!Oe.ended&&(Oe.length<Oe.highWaterMark||Oe.length===0)}function le(tt,et,$e,Le){et.flowing&&et.length===0&&!et.sync?(et.awaitDrain=0,tt.emit("data",$e)):(et.length+=et.objectMode?1:$e.length,Le?et.buffer.unshift($e):et.buffer.push($e),et.needReadable&&ee(tt)),q(tt,et)}function re(tt,et){var $e;return!E(et)&&typeof et!="string"&&et!==void 0&&!tt.objectMode&&($e=new $("chunk",["string","Buffer","Uint8Array"],et)),$e}Ce.prototype.isPaused=function(){return this._readableState.flowing===!1},Ce.prototype.setEncoding=function(tt){Y||(Y=requireString_decoder().StringDecoder);var et=new Y(tt);this._readableState.decoder=et,this._readableState.encoding=this._readableState.decoder.encoding;for(var $e=this._readableState.buffer.head,Le="";$e!==null;)Le+=et.write($e.data),$e=$e.next;return this._readableState.buffer.clear(),Le!==""&&this._readableState.buffer.push(Le),this._readableState.length=Le.length,this};var P=1073741824;function k(tt){return tt>=P?tt=P:(tt--,tt|=tt>>>1,tt|=tt>>>2,tt|=tt>>>4,tt|=tt>>>8,tt|=tt>>>16,tt++),tt}function B(tt,et){return tt<=0||et.length===0&&et.ended?0:et.objectMode?1:tt!==tt?et.flowing&&et.length?et.buffer.head.data.length:et.length:(tt>et.highWaterMark&&(et.highWaterMark=k(tt)),tt<=et.length?tt:et.ended?et.length:(et.needReadable=!0,0))}Ce.prototype.read=function(tt){S("read",tt),tt=parseInt(tt,10);var et=this._readableState,$e=tt;if(tt!==0&&(et.emittedReadable=!1),tt===0&&et.needReadable&&((et.highWaterMark!==0?et.length>=et.highWaterMark:et.length>0)||et.ended))return S("read: emitReadable",et.length,et.ended),et.length===0&&et.ended?vt(this):ee(this),null;if(tt=B(tt,et),tt===0&&et.ended)return et.length===0&&vt(this),null;var Le=et.needReadable;S("need readable",Le),(et.length===0||et.length-tt<et.highWaterMark)&&(Le=!0,S("length less than watermark",Le)),et.ended||et.reading?(Le=!1,S("reading or ended",Le)):Le&&(S("do read"),et.reading=!0,et.sync=!0,et.length===0&&(et.needReadable=!0),this._read(et.highWaterMark),et.sync=!1,et.reading||(tt=B($e,et)));var ot;return tt>0?ot=Qe(tt,et):ot=null,ot===null?(et.needReadable=et.length<=et.highWaterMark,tt=0):(et.length-=tt,et.awaitDrain=0),et.length===0&&(et.ended||(et.needReadable=!0),$e!==tt&&et.ended&&vt(this)),ot!==null&&this.emit("data",ot),ot};function z(tt,et){if(S("onEofChunk"),!et.ended){if(et.decoder){var $e=et.decoder.end();$e&&$e.length&&(et.buffer.push($e),et.length+=et.objectMode?1:$e.length)}et.ended=!0,et.sync?ee(tt):(et.needReadable=!1,et.emittedReadable||(et.emittedReadable=!0,H(tt)))}}function ee(tt){var et=tt._readableState;S("emitReadable",et.needReadable,et.emittedReadable),et.needReadable=!1,et.emittedReadable||(S("emitReadable",et.flowing),et.emittedReadable=!0,browserExports.nextTick(H,tt))}function H(tt){var et=tt._readableState;S("emitReadable_",et.destroyed,et.length,et.ended),!et.destroyed&&(et.length||et.ended)&&(tt.emit("readable"),et.emittedReadable=!1),et.needReadable=!et.flowing&&!et.ended&&et.length<=et.highWaterMark,Ue(tt)}function q(tt,et){et.readingMore||(et.readingMore=!0,browserExports.nextTick(J,tt,et))}function J(tt,et){for(;!et.reading&&!et.ended&&(et.length<et.highWaterMark||et.flowing&&et.length===0);){var $e=et.length;if(S("maybeReadMore read 0"),tt.read(0),$e===et.length)break}et.readingMore=!1}Ce.prototype._read=function(tt){ge(this,new Q("_read()"))},Ce.prototype.pipe=function(tt,et){var $e=this,Le=this._readableState;switch(Le.pipesCount){case 0:Le.pipes=tt;break;case 1:Le.pipes=[Le.pipes,tt];break;default:Le.pipes.push(tt);break}Le.pipesCount+=1,S("pipe count=%d opts=%j",Le.pipesCount,et);var ot=(!et||et.end!==!1)&&tt!==browserExports.stdout&&tt!==browserExports.stderr,Oe=ot?Fe:St;Le.endEmitted?browserExports.nextTick(Oe):$e.once("end",Oe),tt.on("unpipe",Ne);function Ne(pi,eM){S("onunpipe"),pi===$e&&eM&&eM.hasUnpiped===!1&&(eM.hasUnpiped=!0,oi())}function Fe(){S("onend"),tt.end()}var Je=U($e);tt.on("drain",Je);var Dt=!1;function oi(){S("cleanup"),tt.removeListener("close",ii),tt.removeListener("finish",Ot),tt.removeListener("drain",Je),tt.removeListener("error",li),tt.removeListener("unpipe",Ne),$e.removeListener("end",Fe),$e.removeListener("end",St),$e.removeListener("data",Bt),Dt=!0,Le.awaitDrain&&(!tt._writableState||tt._writableState.needDrain)&&Je()}$e.on("data",Bt);function Bt(pi){S("ondata");var eM=tt.write(pi);S("dest.write",eM),eM===!1&&((Le.pipesCount===1&&Le.pipes===tt||Le.pipesCount>1&&ci(Le.pipes,tt)!==-1)&&!Dt&&(S("false write response, pause",Le.awaitDrain),Le.awaitDrain++),$e.pause())}function li(pi){S("onerror",pi),St(),tt.removeListener("error",li),f(tt,"error")===0&&ge(tt,pi)}ze(tt,"error",li);function ii(){tt.removeListener("finish",Ot),St()}tt.once("close",ii);function Ot(){S("onfinish"),tt.removeListener("close",ii),St()}tt.once("finish",Ot);function St(){S("unpipe"),$e.unpipe(tt)}return tt.emit("pipe",$e),Le.flowing||(S("pipe resume"),$e.resume()),tt};function U(tt){return function(){var $e=tt._readableState;S("pipeOnDrain",$e.awaitDrain),$e.awaitDrain&&$e.awaitDrain--,$e.awaitDrain===0&&f(tt,"data")&&($e.flowing=!0,Ue(tt))}}Ce.prototype.unpipe=function(tt){var et=this._readableState,$e={hasUnpiped:!1};if(et.pipesCount===0)return this;if(et.pipesCount===1)return tt&&tt!==et.pipes?this:(tt||(tt=et.pipes),et.pipes=null,et.pipesCount=0,et.flowing=!1,tt&&tt.emit("unpipe",this,$e),this);if(!tt){var Le=et.pipes,ot=et.pipesCount;et.pipes=null,et.pipesCount=0,et.flowing=!1;for(var Oe=0;Oe<ot;Oe++)Le[Oe].emit("unpipe",this,{hasUnpiped:!1});return this}var Ne=ci(et.pipes,tt);return Ne===-1?this:(et.pipes.splice(Ne,1),et.pipesCount-=1,et.pipesCount===1&&(et.pipes=et.pipes[0]),tt.emit("unpipe",this,$e),this)},Ce.prototype.on=function(tt,et){var $e=d.prototype.on.call(this,tt,et),Le=this._readableState;return tt==="data"?(Le.readableListening=this.listenerCount("readable")>0,Le.flowing!==!1&&this.resume()):tt==="readable"&&!Le.endEmitted&&!Le.readableListening&&(Le.readableListening=Le.needReadable=!0,Le.flowing=!1,Le.emittedReadable=!1,S("on readable",Le.length,Le.reading),Le.length?ee(this):Le.reading||browserExports.nextTick(ve,this)),$e},Ce.prototype.addListener=Ce.prototype.on,Ce.prototype.removeListener=function(tt,et){var $e=d.prototype.removeListener.call(this,tt,et);return tt==="readable"&&browserExports.nextTick(Z,this),$e},Ce.prototype.removeAllListeners=function(tt){var et=d.prototype.removeAllListeners.apply(this,arguments);return(tt==="readable"||tt===void 0)&&browserExports.nextTick(Z,this),et};function Z(tt){var et=tt._readableState;et.readableListening=tt.listenerCount("readable")>0,et.resumeScheduled&&!et.paused?et.flowing=!0:tt.listenerCount("data")>0&&tt.resume()}function ve(tt){S("readable nexttick read 0"),tt.read(0)}Ce.prototype.resume=function(){var tt=this._readableState;return tt.flowing||(S("resume"),tt.flowing=!tt.readableListening,Ye(this,tt)),tt.paused=!1,this};function Ye(tt,et){et.resumeScheduled||(et.resumeScheduled=!0,browserExports.nextTick(rt,tt,et))}function rt(tt,et){S("resume",et.reading),et.reading||tt.read(0),et.resumeScheduled=!1,tt.emit("resume"),Ue(tt),et.flowing&&!et.reading&&tt.read(0)}Ce.prototype.pause=function(){return S("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(S("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Ue(tt){var et=tt._readableState;for(S("flow",et.flowing);et.flowing&&tt.read()!==null;);}Ce.prototype.wrap=function(tt){var et=this,$e=this._readableState,Le=!1;tt.on("end",function(){if(S("wrapped end"),$e.decoder&&!$e.ended){var Ne=$e.decoder.end();Ne&&Ne.length&&et.push(Ne)}et.push(null)}),tt.on("data",function(Ne){if(S("wrapped data"),$e.decoder&&(Ne=$e.decoder.write(Ne)),!($e.objectMode&&Ne==null)&&!(!$e.objectMode&&(!Ne||!Ne.length))){var Fe=et.push(Ne);Fe||(Le=!0,tt.pause())}});for(var ot in tt)this[ot]===void 0&&typeof tt[ot]=="function"&&(this[ot]=function(Fe){return function(){return tt[Fe].apply(tt,arguments)}}(ot));for(var Oe=0;Oe<be.length;Oe++)tt.on(be[Oe],this.emit.bind(this,be[Oe]));return this._read=function(Ne){S("wrapped _read",Ne),Le&&(Le=!1,tt.resume())},this},typeof Symbol=="function"&&(Ce.prototype[Symbol.asyncIterator]=function(){return ie===void 0&&(ie=requireAsync_iterator()),ie(this)}),Object.defineProperty(Ce.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(Ce.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(Ce.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(et){this._readableState&&(this._readableState.flowing=et)}}),Ce._fromList=Qe,Object.defineProperty(Ce.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function Qe(tt,et){if(et.length===0)return null;var $e;return et.objectMode?$e=et.buffer.shift():!tt||tt>=et.length?(et.decoder?$e=et.buffer.join(""):et.buffer.length===1?$e=et.buffer.first():$e=et.buffer.concat(et.length),et.buffer.clear()):$e=et.buffer.consume(tt,et.decoder),$e}function vt(tt){var et=tt._readableState;S("endReadable",et.endEmitted),et.endEmitted||(et.ended=!0,browserExports.nextTick(ri,et,tt))}function ri(tt,et){if(S("endReadableNT",tt.endEmitted,tt.length),!tt.endEmitted&&tt.length===0&&(tt.endEmitted=!0,et.readable=!1,et.emit("end"),tt.autoDestroy)){var $e=et._writableState;(!$e||$e.autoDestroy&&$e.finished)&&et.destroy()}}typeof Symbol=="function"&&(Ce.from=function(tt,et){return oe===void 0&&(oe=requireFromBrowser()),oe(Ce,tt,et)});function ci(tt,et){for(var $e=0,Le=tt.length;$e<Le;$e++)if(tt[$e]===et)return $e;return-1}return _stream_readable}var _stream_transform=Transform$1,_require$codes$1=errorsBrowser.codes,ERR_METHOD_NOT_IMPLEMENTED=_require$codes$1.ERR_METHOD_NOT_IMPLEMENTED,ERR_MULTIPLE_CALLBACK=_require$codes$1.ERR_MULTIPLE_CALLBACK,ERR_TRANSFORM_ALREADY_TRANSFORMING=_require$codes$1.ERR_TRANSFORM_ALREADY_TRANSFORMING,ERR_TRANSFORM_WITH_LENGTH_0=_require$codes$1.ERR_TRANSFORM_WITH_LENGTH_0,Duplex=require_stream_duplex();inherits_browserExports(Transform$1,Duplex);function afterTransform(u,f){var d=this._transformState;d.transforming=!1;var _=d.writecb;if(_===null)return this.emit("error",new ERR_MULTIPLE_CALLBACK);d.writechunk=null,d.writecb=null,f!=null&&this.push(f),_(u);var x=this._readableState;x.reading=!1,(x.needReadable||x.length<x.highWaterMark)&&this._read(x.highWaterMark)}function Transform$1(u){if(!(this instanceof Transform$1))return new Transform$1(u);Duplex.call(this,u),this._transformState={afterTransform:afterTransform.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,u&&(typeof u.transform=="function"&&(this._transform=u.transform),typeof u.flush=="function"&&(this._flush=u.flush)),this.on("prefinish",prefinish)}function prefinish(){var u=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(f,d){done(u,f,d)}):done(this,null,null)}Transform$1.prototype.push=function(u,f){return this._transformState.needTransform=!1,Duplex.prototype.push.call(this,u,f)};Transform$1.prototype._transform=function(u,f,d){d(new ERR_METHOD_NOT_IMPLEMENTED("_transform()"))};Transform$1.prototype._write=function(u,f,d){var _=this._transformState;if(_.writecb=d,_.writechunk=u,_.writeencoding=f,!_.transforming){var x=this._readableState;(_.needTransform||x.needReadable||x.length<x.highWaterMark)&&this._read(x.highWaterMark)}};Transform$1.prototype._read=function(u){var f=this._transformState;f.writechunk!==null&&!f.transforming?(f.transforming=!0,this._transform(f.writechunk,f.writeencoding,f.afterTransform)):f.needTransform=!0};Transform$1.prototype._destroy=function(u,f){Duplex.prototype._destroy.call(this,u,function(d){f(d)})};function done(u,f,d){if(f)return u.emit("error",f);if(d!=null&&u.push(d),u._writableState.length)throw new ERR_TRANSFORM_WITH_LENGTH_0;if(u._transformState.transforming)throw new ERR_TRANSFORM_ALREADY_TRANSFORMING;return u.push(null)}var _stream_passthrough=PassThrough,Transform=_stream_transform;inherits_browserExports(PassThrough,Transform);function PassThrough(u){if(!(this instanceof PassThrough))return new PassThrough(u);Transform.call(this,u)}PassThrough.prototype._transform=function(u,f,d){d(null,u)};var eos;function once(u){var f=!1;return function(){f||(f=!0,u.apply(void 0,arguments))}}var _require$codes=errorsBrowser.codes,ERR_MISSING_ARGS=_require$codes.ERR_MISSING_ARGS,ERR_STREAM_DESTROYED=_require$codes.ERR_STREAM_DESTROYED;function noop(u){if(u)throw u}function isRequest(u){return u.setHeader&&typeof u.abort=="function"}function destroyer(u,f,d,_){_=once(_);var x=!1;u.on("close",function(){x=!0}),eos===void 0&&(eos=endOfStream),eos(u,{readable:f,writable:d},function(E){if(E)return _(E);x=!0,_()});var I=!1;return function(E){if(!x&&!I){if(I=!0,isRequest(u))return u.abort();if(typeof u.destroy=="function")return u.destroy();_(E||new ERR_STREAM_DESTROYED("pipe"))}}}function call(u){u()}function pipe(u,f){return u.pipe(f)}function popCallback(u){return!u.length||typeof u[u.length-1]!="function"?noop:u.pop()}function pipeline(){for(var u=arguments.length,f=new Array(u),d=0;d<u;d++)f[d]=arguments[d];var _=popCallback(f);if(Array.isArray(f[0])&&(f=f[0]),f.length<2)throw new ERR_MISSING_ARGS("streams");var x,I=f.map(function(E,M){var S=M<f.length-1,A=M>0;return destroyer(E,S,A,function(T){x||(x=T),T&&I.forEach(call),!S&&(I.forEach(call),_(x))})});return f.reduce(pipe)}var pipeline_1=pipeline;(function(u,f){f=u.exports=require_stream_readable(),f.Stream=f,f.Readable=f,f.Writable=require_stream_writable(),f.Duplex=require_stream_duplex(),f.Transform=_stream_transform,f.PassThrough=_stream_passthrough,f.finished=endOfStream,f.pipeline=pipeline_1})(readableBrowser,readableBrowser.exports);var readableBrowserExports=readableBrowser.exports,capability$1=capability$2,inherits$1=inherits_browserExports,stream$1=readableBrowserExports,rStates$1=response$1.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},IncomingMessage$1=response$1.IncomingMessage=function(u,f,d,_){var x=this;if(stream$1.Readable.call(x),x._mode=d,x.headers={},x.rawHeaders=[],x.trailers={},x.rawTrailers=[],x.on("end",function(){browserExports.nextTick(function(){x.emit("close")})}),d==="fetch"){let T=function(){E.read().then(function(D){if(!x._destroyed){if(_(D.done),D.done){x.push(null);return}x.push(buffer$2.Buffer.from(D.value)),T()}}).catch(function(D){_(!0),x._destroyed||x.emit("error",D)})};if(x._fetchResponse=f,x.url=f.url,x.statusCode=f.status,x.statusMessage=f.statusText,f.headers.forEach(function(D,O){x.headers[O.toLowerCase()]=D,x.rawHeaders.push(O,D)}),capability$1.writableStream){var I=new WritableStream({write:function(D){return _(!1),new Promise(function(O,j){x._destroyed?j():x.push(buffer$2.Buffer.from(D))?O():x._resumeFetch=O})},close:function(){_(!0),x._destroyed||x.push(null)},abort:function(D){_(!0),x._destroyed||x.emit("error",D)}});try{f.body.pipeTo(I).catch(function(D){_(!0),x._destroyed||x.emit("error",D)});return}catch{}}var E=f.body.getReader();T()}else{x._xhr=u,x._pos=0,x.url=u.responseURL,x.statusCode=u.status,x.statusMessage=u.statusText;var M=u.getAllResponseHeaders().split(/\r?\n/);if(M.forEach(function(T){var D=T.match(/^([^:]+):\s*(.*)/);if(D){var O=D[1].toLowerCase();O==="set-cookie"?(x.headers[O]===void 0&&(x.headers[O]=[]),x.headers[O].push(D[2])):x.headers[O]!==void 0?x.headers[O]+=", "+D[2]:x.headers[O]=D[2],x.rawHeaders.push(D[1],D[2])}}),x._charset="x-user-defined",!capability$1.overrideMimeType){var S=x.rawHeaders["mime-type"];if(S){var A=S.match(/;\s*charset=([^;])(;|$)/);A&&(x._charset=A[1].toLowerCase())}x._charset||(x._charset="utf-8")}}};inherits$1(IncomingMessage$1,stream$1.Readable);IncomingMessage$1.prototype._read=function(){var u=this,f=u._resumeFetch;f&&(u._resumeFetch=null,f())};IncomingMessage$1.prototype._onXHRProgress=function(u){var f=this,d=f._xhr,_=null;switch(f._mode){case"text":if(_=d.responseText,_.length>f._pos){var x=_.substr(f._pos);if(f._charset==="x-user-defined"){for(var I=buffer$2.Buffer.alloc(x.length),E=0;E<x.length;E++)I[E]=x.charCodeAt(E)&255;f.push(I)}else f.push(x,f._charset);f._pos=_.length}break;case"arraybuffer":if(d.readyState!==rStates$1.DONE||!d.response)break;_=d.response,f.push(buffer$2.Buffer.from(new Uint8Array(_)));break;case"moz-chunked-arraybuffer":if(_=d.response,d.readyState!==rStates$1.LOADING||!_)break;f.push(buffer$2.Buffer.from(new Uint8Array(_)));break;case"ms-stream":if(_=d.response,d.readyState!==rStates$1.LOADING)break;var M=new commonjsGlobal$1.MSStreamReader;M.onprogress=function(){M.result.byteLength>f._pos&&(f.push(buffer$2.Buffer.from(new Uint8Array(M.result.slice(f._pos)))),f._pos=M.result.byteLength)},M.onload=function(){u(!0),f.push(null)},M.readAsArrayBuffer(_);break}f._xhr.readyState===rStates$1.DONE&&f._mode!=="ms-stream"&&(u(!0),f.push(null))};var capability=capability$2,inherits=inherits_browserExports,response=response$1,stream=readableBrowserExports,IncomingMessage=response.IncomingMessage,rStates=response.readyStates;function decideMode(u,f){return capability.fetch&&f?"fetch":capability.mozchunkedarraybuffer?"moz-chunked-arraybuffer":capability.msstream?"ms-stream":capability.arraybuffer&&u?"arraybuffer":"text"}var ClientRequest=request.exports=function(u){var f=this;stream.Writable.call(f),f._opts=u,f._body=[],f._headers={},u.auth&&f.setHeader("Authorization","Basic "+buffer$2.Buffer.from(u.auth).toString("base64")),Object.keys(u.headers).forEach(function(x){f.setHeader(x,u.headers[x])});var d,_=!0;if(u.mode==="disable-fetch"||"requestTimeout"in u&&!capability.abortController)_=!1,d=!0;else if(u.mode==="prefer-streaming")d=!1;else if(u.mode==="allow-wrong-content-type")d=!capability.overrideMimeType;else if(!u.mode||u.mode==="default"||u.mode==="prefer-fast")d=!0;else throw new Error("Invalid value for opts.mode");f._mode=decideMode(d,_),f._fetchTimer=null,f._socketTimeout=null,f._socketTimer=null,f.on("finish",function(){f._onFinish()})};inherits(ClientRequest,stream.Writable);ClientRequest.prototype.setHeader=function(u,f){var d=this,_=u.toLowerCase();unsafeHeaders.indexOf(_)===-1&&(d._headers[_]={name:u,value:f})};ClientRequest.prototype.getHeader=function(u){var f=this._headers[u.toLowerCase()];return f?f.value:null};ClientRequest.prototype.removeHeader=function(u){var f=this;delete f._headers[u.toLowerCase()]};ClientRequest.prototype._onFinish=function(){var u=this;if(!u._destroyed){var f=u._opts;"timeout"in f&&f.timeout!==0&&u.setTimeout(f.timeout);var d=u._headers,_=null;f.method!=="GET"&&f.method!=="HEAD"&&(_=new Blob(u._body,{type:(d["content-type"]||{}).value||""}));var x=[];if(Object.keys(d).forEach(function(S){var A=d[S].name,T=d[S].value;Array.isArray(T)?T.forEach(function(D){x.push([A,D])}):x.push([A,T])}),u._mode==="fetch"){var I=null;if(capability.abortController){var E=new AbortController;I=E.signal,u._fetchAbortController=E,"requestTimeout"in f&&f.requestTimeout!==0&&(u._fetchTimer=commonjsGlobal$1.setTimeout(function(){u.emit("requestTimeout"),u._fetchAbortController&&u._fetchAbortController.abort()},f.requestTimeout))}commonjsGlobal$1.fetch(u._opts.url,{method:u._opts.method,headers:x,body:_||void 0,mode:"cors",credentials:f.withCredentials?"include":"same-origin",signal:I}).then(function(S){u._fetchResponse=S,u._resetTimers(!1),u._connect()},function(S){u._resetTimers(!0),u._destroyed||u.emit("error",S)})}else{var M=u._xhr=new commonjsGlobal$1.XMLHttpRequest;try{M.open(u._opts.method,u._opts.url,!0)}catch(S){browserExports.nextTick(function(){u.emit("error",S)});return}"responseType"in M&&(M.responseType=u._mode),"withCredentials"in M&&(M.withCredentials=!!f.withCredentials),u._mode==="text"&&"overrideMimeType"in M&&M.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in f&&(M.timeout=f.requestTimeout,M.ontimeout=function(){u.emit("requestTimeout")}),x.forEach(function(S){M.setRequestHeader(S[0],S[1])}),u._response=null,M.onreadystatechange=function(){switch(M.readyState){case rStates.LOADING:case rStates.DONE:u._onXHRProgress();break}},u._mode==="moz-chunked-arraybuffer"&&(M.onprogress=function(){u._onXHRProgress()}),M.onerror=function(){u._destroyed||(u._resetTimers(!0),u.emit("error",new Error("XHR error")))};try{M.send(_)}catch(S){browserExports.nextTick(function(){u.emit("error",S)});return}}}};function statusValid(u){try{var f=u.status;return f!==null&&f!==0}catch{return!1}}ClientRequest.prototype._onXHRProgress=function(){var u=this;u._resetTimers(!1),!(!statusValid(u._xhr)||u._destroyed)&&(u._response||u._connect(),u._response._onXHRProgress(u._resetTimers.bind(u)))};ClientRequest.prototype._connect=function(){var u=this;u._destroyed||(u._response=new IncomingMessage(u._xhr,u._fetchResponse,u._mode,u._resetTimers.bind(u)),u._response.on("error",function(f){u.emit("error",f)}),u.emit("response",u._response))};ClientRequest.prototype._write=function(u,f,d){var _=this;_._body.push(u),d()};ClientRequest.prototype._resetTimers=function(u){var f=this;commonjsGlobal$1.clearTimeout(f._socketTimer),f._socketTimer=null,u?(commonjsGlobal$1.clearTimeout(f._fetchTimer),f._fetchTimer=null):f._socketTimeout&&(f._socketTimer=commonjsGlobal$1.setTimeout(function(){f.emit("timeout")},f._socketTimeout))};ClientRequest.prototype.abort=ClientRequest.prototype.destroy=function(u){var f=this;f._destroyed=!0,f._resetTimers(!0),f._response&&(f._response._destroyed=!0),f._xhr?f._xhr.abort():f._fetchAbortController&&f._fetchAbortController.abort(),u&&f.emit("error",u)};ClientRequest.prototype.end=function(u,f,d){var _=this;typeof u=="function"&&(d=u,u=void 0),stream.Writable.prototype.end.call(_,u,f,d)};ClientRequest.prototype.setTimeout=function(u,f){var d=this;f&&d.once("timeout",f),d._socketTimeout=u,d._resetTimers(!1)};ClientRequest.prototype.flushHeaders=function(){};ClientRequest.prototype.setNoDelay=function(){};ClientRequest.prototype.setSocketKeepAlive=function(){};var unsafeHeaders=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"],requestExports=request.exports,immutable=extend,hasOwnProperty$1=Object.prototype.hasOwnProperty;function extend(){for(var u={},f=0;f<arguments.length;f++){var d=arguments[f];for(var _ in d)hasOwnProperty$1.call(d,_)&&(u[_]=d[_])}return u}var browser$c={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"},url={exports:{}},punycode={exports:{}};punycode.exports;(function(u,f){(function(d){var _=f&&!f.nodeType&&f,x=u&&!u.nodeType&&u,I=typeof commonjsGlobal$1=="object"&&commonjsGlobal$1;(I.global===I||I.window===I||I.self===I)&&(d=I);var E,M=2147483647,S=36,A=1,T=26,D=38,O=700,j=72,$=128,W="-",Q=/^xn--/,X=/[^\x20-\x7E]/,Y=/[\x2E\u3002\uFF0E\uFF61]/g,ie={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},oe=S-A,ge=Math.floor,be=String.fromCharCode,ze;function de(J){throw new RangeError(ie[J])}function Ce(J,U){for(var Z=J.length,ve=[];Z--;)ve[Z]=U(J[Z]);return ve}function ke(J,U){var Z=J.split("@"),ve="";Z.length>1&&(ve=Z[0]+"@",J=Z[1]),J=J.replace(Y,".");var Ye=J.split("."),rt=Ce(Ye,U).join(".");return ve+rt}function le(J){for(var U=[],Z=0,ve=J.length,Ye,rt;Z<ve;)Ye=J.charCodeAt(Z++),Ye>=55296&&Ye<=56319&&Z<ve?(rt=J.charCodeAt(Z++),(rt&64512)==56320?U.push(((Ye&1023)<<10)+(rt&1023)+65536):(U.push(Ye),Z--)):U.push(Ye);return U}function re(J){return Ce(J,function(U){var Z="";return U>65535&&(U-=65536,Z+=be(U>>>10&1023|55296),U=56320|U&1023),Z+=be(U),Z}).join("")}function P(J){return J-48<10?J-22:J-65<26?J-65:J-97<26?J-97:S}function k(J,U){return J+22+75*(J<26)-((U!=0)<<5)}function B(J,U,Z){var ve=0;for(J=Z?ge(J/O):J>>1,J+=ge(J/U);J>oe*T>>1;ve+=S)J=ge(J/oe);return ge(ve+(oe+1)*J/(J+D))}function z(J){var U=[],Z=J.length,ve,Ye=0,rt=$,Ue=j,Qe,vt,ri,ci,tt,et,$e,Le,ot;for(Qe=J.lastIndexOf(W),Qe<0&&(Qe=0),vt=0;vt<Qe;++vt)J.charCodeAt(vt)>=128&&de("not-basic"),U.push(J.charCodeAt(vt));for(ri=Qe>0?Qe+1:0;ri<Z;){for(ci=Ye,tt=1,et=S;ri>=Z&&de("invalid-input"),$e=P(J.charCodeAt(ri++)),($e>=S||$e>ge((M-Ye)/tt))&&de("overflow"),Ye+=$e*tt,Le=et<=Ue?A:et>=Ue+T?T:et-Ue,!($e<Le);et+=S)ot=S-Le,tt>ge(M/ot)&&de("overflow"),tt*=ot;ve=U.length+1,Ue=B(Ye-ci,ve,ci==0),ge(Ye/ve)>M-rt&&de("overflow"),rt+=ge(Ye/ve),Ye%=ve,U.splice(Ye++,0,rt)}return re(U)}function ee(J){var U,Z,ve,Ye,rt,Ue,Qe,vt,ri,ci,tt,et=[],$e,Le,ot,Oe;for(J=le(J),$e=J.length,U=$,Z=0,rt=j,Ue=0;Ue<$e;++Ue)tt=J[Ue],tt<128&&et.push(be(tt));for(ve=Ye=et.length,Ye&&et.push(W);ve<$e;){for(Qe=M,Ue=0;Ue<$e;++Ue)tt=J[Ue],tt>=U&&tt<Qe&&(Qe=tt);for(Le=ve+1,Qe-U>ge((M-Z)/Le)&&de("overflow"),Z+=(Qe-U)*Le,U=Qe,Ue=0;Ue<$e;++Ue)if(tt=J[Ue],tt<U&&++Z>M&&de("overflow"),tt==U){for(vt=Z,ri=S;ci=ri<=rt?A:ri>=rt+T?T:ri-rt,!(vt<ci);ri+=S)Oe=vt-ci,ot=S-ci,et.push(be(k(ci+Oe%ot,0))),vt=ge(Oe/ot);et.push(be(k(vt,0))),rt=B(Z,Le,ve==Ye),Z=0,++ve}++Z,++U}return et.join("")}function H(J){return ke(J,function(U){return Q.test(U)?z(U.slice(4).toLowerCase()):U})}function q(J){return ke(J,function(U){return X.test(U)?"xn--"+ee(U):U})}if(E={version:"1.4.1",ucs2:{decode:le,encode:re},decode:z,encode:ee,toASCII:q,toUnicode:H},_&&x)if(u.exports==_)x.exports=E;else for(ze in E)E.hasOwnProperty(ze)&&(_[ze]=E[ze]);else d.punycode=E})(commonjsGlobal$1)})(punycode,punycode.exports);var punycodeExports=punycode.exports,querystring={exports:{}},querystringEs3={};function hasOwnProperty(u,f){return Object.prototype.hasOwnProperty.call(u,f)}var decode=function(u,f,d,_){f=f||"&",d=d||"=";var x={};if(typeof u!="string"||u.length===0)return x;var I=/\+/g;u=u.split(f);var E=1e3;_&&typeof _.maxKeys=="number"&&(E=_.maxKeys);var M=u.length;E>0&&M>E&&(M=E);for(var S=0;S<M;++S){var A=u[S].replace(I,"%20"),T=A.indexOf(d),D,O,j,$;T>=0?(D=A.substr(0,T),O=A.substr(T+1)):(D=A,O=""),j=decodeURIComponent(D),$=decodeURIComponent(O),hasOwnProperty(x,j)?isArray$1(x[j])?x[j].push($):x[j]=[x[j],$]:x[j]=$}return x},isArray$1=Array.isArray||function(u){return Object.prototype.toString.call(u)==="[object Array]"},stringifyPrimitive=function(u){switch(typeof u){case"string":return u;case"boolean":return u?"true":"false";case"number":return isFinite(u)?u:"";default:return""}},encode=function(u,f,d,_){return f=f||"&",d=d||"=",u===null&&(u=void 0),typeof u=="object"?map(objectKeys(u),function(x){var I=encodeURIComponent(stringifyPrimitive(x))+d;return isArray(u[x])?map(u[x],function(E){return I+encodeURIComponent(stringifyPrimitive(E))}).join(f):I+encodeURIComponent(stringifyPrimitive(u[x]))}).join(f):_?encodeURIComponent(stringifyPrimitive(_))+d+encodeURIComponent(stringifyPrimitive(u)):""},isArray=Array.isArray||function(u){return Object.prototype.toString.call(u)==="[object Array]"};function map(u,f){if(u.map)return u.map(f);for(var d=[],_=0;_<u.length;_++)d.push(f(u[_],_));return d}var objectKeys=Object.keys||function(u){var f=[];for(var d in u)Object.prototype.hasOwnProperty.call(u,d)&&f.push(d);return f};querystringEs3.decode=querystringEs3.parse=decode;querystringEs3.encode=querystringEs3.stringify=encode;(function(u,f){Object.defineProperty(f,"__esModule",{value:!0});var d=querystringEs3;function _(E){return encodeURIComponent(E)}function x(E){return decodeURIComponent(E)}var I={decode:d.decode,encode:d.encode,parse:d.parse,stringify:d.stringify,escape:_,unescape:x};Object.defineProperty(f,"decode",{enumerable:!0,get:function(){return d.decode}}),Object.defineProperty(f,"encode",{enumerable:!0,get:function(){return d.encode}}),Object.defineProperty(f,"parse",{enumerable:!0,get:function(){return d.parse}}),Object.defineProperty(f,"stringify",{enumerable:!0,get:function(){return d.stringify}}),f.default=I,f.escape=_,f.unescape=x,f=u.exports=I})(querystring,querystring.exports);var querystringExports=querystring.exports;(function(u,f){Object.defineProperty(f,"__esModule",{value:!0});var d=punycodeExports,_=querystringExports;function x(ii){return ii&&typeof ii=="object"&&"default"in ii?ii:{default:ii}}var I=x(d),E=x(_),M={isString:function(ii){return typeof ii=="string"},isObject:function(ii){return typeof ii=="object"&&ii!==null},isNull:function(ii){return ii===null},isNullOrUndefined:function(ii){return ii==null}},S=I.default,A=M,T=B,D=ee,O=H,j=z,$=W;function W(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var Q=/^([a-z0-9.+-]+:)/i,X=/:[0-9]*$/,Y=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,ie=["<",">",'"',"`"," ","\r",`
`,"	"],oe=["{","}","|","\\","^","`"].concat(ie),ge=["'"].concat(oe),be=["%","/","?",";","#"].concat(ge),ze=["/","?","#"],de=255,Ce=/^[+a-z0-9A-Z_-]{0,63}$/,ke=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,le={javascript:!0,"javascript:":!0},re={javascript:!0,"javascript:":!0},P={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},k=E.default;function B(ii,Ot,St){if(ii&&A.isObject(ii)&&ii instanceof W)return ii;var pi=new W;return pi.parse(ii,Ot,St),pi}W.prototype.parse=function(ii,Ot,St){if(!A.isString(ii))throw new TypeError("Parameter 'url' must be a string, not "+typeof ii);var pi=ii.indexOf("?"),eM=pi!==-1&&pi<ii.indexOf("#")?"?":"#",hi=ii.split(eM),mi=/\\/g;hi[0]=hi[0].replace(mi,"/"),ii=hi.join(eM);var Dn=ii;if(Dn=Dn.trim(),!St&&ii.split("#").length===1){var tM=Y.exec(Dn);if(tM)return this.path=Dn,this.href=Dn,this.pathname=tM[1],tM[2]?(this.search=tM[2],Ot?this.query=k.parse(this.search.substr(1)):this.query=this.search.substr(1)):Ot&&(this.search="",this.query={}),this}var oM=Q.exec(Dn);if(oM){oM=oM[0];var vM=oM.toLowerCase();this.protocol=vM,Dn=Dn.substr(oM.length)}if(St||oM||Dn.match(/^\/\/[^@\/]+@[^@\/]+/)){var dM=Dn.substr(0,2)==="//";dM&&!(oM&&re[oM])&&(Dn=Dn.substr(2),this.slashes=!0)}if(!re[oM]&&(dM||oM&&!P[oM])){for(var hM=-1,_M=0;_M<ze.length;_M++){var uM=Dn.indexOf(ze[_M]);uM!==-1&&(hM===-1||uM<hM)&&(hM=uM)}var pM,yM;hM===-1?yM=Dn.lastIndexOf("@"):yM=Dn.lastIndexOf("@",hM),yM!==-1&&(pM=Dn.slice(0,yM),Dn=Dn.slice(yM+1),this.auth=decodeURIComponent(pM)),hM=-1;for(var _M=0;_M<be.length;_M++){var uM=Dn.indexOf(be[_M]);uM!==-1&&(hM===-1||uM<hM)&&(hM=uM)}hM===-1&&(hM=Dn.length),this.host=Dn.slice(0,hM),Dn=Dn.slice(hM),this.parseHost(),this.hostname=this.hostname||"";var gM=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!gM)for(var fM=this.hostname.split(/\./),_M=0,kM=fM.length;_M<kM;_M++){var IM=fM[_M];if(IM&&!IM.match(Ce)){for(var DM="",$M=0,TM=IM.length;$M<TM;$M++)IM.charCodeAt($M)>127?DM+="x":DM+=IM[$M];if(!DM.match(Ce)){var OM=fM.slice(0,_M),UM=fM.slice(_M+1),AM=IM.match(ke);AM&&(OM.push(AM[1]),UM.unshift(AM[2])),UM.length&&(Dn="/"+UM.join(".")+Dn),this.hostname=OM.join(".");break}}}this.hostname.length>de?this.hostname="":this.hostname=this.hostname.toLowerCase(),gM||(this.hostname=S.toASCII(this.hostname));var RM=this.port?":"+this.port:"",FM=this.hostname||"";this.host=FM+RM,this.href+=this.host,gM&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),Dn[0]!=="/"&&(Dn="/"+Dn))}if(!le[vM])for(var _M=0,kM=ge.length;_M<kM;_M++){var xM=ge[_M];if(Dn.indexOf(xM)!==-1){var BM=encodeURIComponent(xM);BM===xM&&(BM=escape(xM)),Dn=Dn.split(xM).join(BM)}}var WM=Dn.indexOf("#");WM!==-1&&(this.hash=Dn.substr(WM),Dn=Dn.slice(0,WM));var SM=Dn.indexOf("?");if(SM!==-1?(this.search=Dn.substr(SM),this.query=Dn.substr(SM+1),Ot&&(this.query=k.parse(this.query)),Dn=Dn.slice(0,SM)):Ot&&(this.search="",this.query={}),Dn&&(this.pathname=Dn),P[vM]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var RM=this.pathname||"",jM=this.search||"";this.path=RM+jM}return this.href=this.format(),this};function z(ii){return A.isString(ii)&&(ii=B(ii)),ii instanceof W?ii.format():W.prototype.format.call(ii)}W.prototype.format=function(){var ii=this.auth||"";ii&&(ii=encodeURIComponent(ii),ii=ii.replace(/%3A/i,":"),ii+="@");var Ot=this.protocol||"",St=this.pathname||"",pi=this.hash||"",eM=!1,hi="";this.host?eM=ii+this.host:this.hostname&&(eM=ii+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(eM+=":"+this.port)),this.query&&A.isObject(this.query)&&Object.keys(this.query).length&&(hi=k.stringify(this.query));var mi=this.search||hi&&"?"+hi||"";return Ot&&Ot.substr(-1)!==":"&&(Ot+=":"),this.slashes||(!Ot||P[Ot])&&eM!==!1?(eM="//"+(eM||""),St&&St.charAt(0)!=="/"&&(St="/"+St)):eM||(eM=""),pi&&pi.charAt(0)!=="#"&&(pi="#"+pi),mi&&mi.charAt(0)!=="?"&&(mi="?"+mi),St=St.replace(/[?#]/g,function(Dn){return encodeURIComponent(Dn)}),mi=mi.replace("#","%23"),Ot+eM+St+mi+pi};function ee(ii,Ot){return B(ii,!1,!0).resolve(Ot)}W.prototype.resolve=function(ii){return this.resolveObject(B(ii,!1,!0)).format()};function H(ii,Ot){return ii?B(ii,!1,!0).resolveObject(Ot):Ot}W.prototype.resolveObject=function(ii){if(A.isString(ii)){var Ot=new W;Ot.parse(ii,!1,!0),ii=Ot}for(var St=new W,pi=Object.keys(this),eM=0;eM<pi.length;eM++){var hi=pi[eM];St[hi]=this[hi]}if(St.hash=ii.hash,ii.href==="")return St.href=St.format(),St;if(ii.slashes&&!ii.protocol){for(var mi=Object.keys(ii),Dn=0;Dn<mi.length;Dn++){var tM=mi[Dn];tM!=="protocol"&&(St[tM]=ii[tM])}return P[St.protocol]&&St.hostname&&!St.pathname&&(St.path=St.pathname="/"),St.href=St.format(),St}if(ii.protocol&&ii.protocol!==St.protocol){if(!P[ii.protocol]){for(var oM=Object.keys(ii),vM=0;vM<oM.length;vM++){var dM=oM[vM];St[dM]=ii[dM]}return St.href=St.format(),St}if(St.protocol=ii.protocol,!ii.host&&!re[ii.protocol]){for(var kM=(ii.pathname||"").split("/");kM.length&&!(ii.host=kM.shift()););ii.host||(ii.host=""),ii.hostname||(ii.hostname=""),kM[0]!==""&&kM.unshift(""),kM.length<2&&kM.unshift(""),St.pathname=kM.join("/")}else St.pathname=ii.pathname;if(St.search=ii.search,St.query=ii.query,St.host=ii.host||"",St.auth=ii.auth,St.hostname=ii.hostname||ii.host,St.port=ii.port,St.pathname||St.search){var hM=St.pathname||"",_M=St.search||"";St.path=hM+_M}return St.slashes=St.slashes||ii.slashes,St.href=St.format(),St}var uM=St.pathname&&St.pathname.charAt(0)==="/",pM=ii.host||ii.pathname&&ii.pathname.charAt(0)==="/",yM=pM||uM||St.host&&ii.pathname,gM=yM,fM=St.pathname&&St.pathname.split("/")||[],kM=ii.pathname&&ii.pathname.split("/")||[],IM=St.protocol&&!P[St.protocol];if(IM&&(St.hostname="",St.port=null,St.host&&(fM[0]===""?fM[0]=St.host:fM.unshift(St.host)),St.host="",ii.protocol&&(ii.hostname=null,ii.port=null,ii.host&&(kM[0]===""?kM[0]=ii.host:kM.unshift(ii.host)),ii.host=null),yM=yM&&(kM[0]===""||fM[0]==="")),pM)St.host=ii.host||ii.host===""?ii.host:St.host,St.hostname=ii.hostname||ii.hostname===""?ii.hostname:St.hostname,St.search=ii.search,St.query=ii.query,fM=kM;else if(kM.length)fM||(fM=[]),fM.pop(),fM=fM.concat(kM),St.search=ii.search,St.query=ii.query;else if(!A.isNullOrUndefined(ii.search)){if(IM){St.hostname=St.host=fM.shift();var DM=St.host&&St.host.indexOf("@")>0?St.host.split("@"):!1;DM&&(St.auth=DM.shift(),St.host=St.hostname=DM.shift())}return St.search=ii.search,St.query=ii.query,(!A.isNull(St.pathname)||!A.isNull(St.search))&&(St.path=(St.pathname?St.pathname:"")+(St.search?St.search:"")),St.href=St.format(),St}if(!fM.length)return St.pathname=null,St.search?St.path="/"+St.search:St.path=null,St.href=St.format(),St;for(var $M=fM.slice(-1)[0],TM=(St.host||ii.host||fM.length>1)&&($M==="."||$M==="..")||$M==="",OM=0,UM=fM.length;UM>=0;UM--)$M=fM[UM],$M==="."?fM.splice(UM,1):$M===".."?(fM.splice(UM,1),OM++):OM&&(fM.splice(UM,1),OM--);if(!yM&&!gM)for(;OM--;OM)fM.unshift("..");yM&&fM[0]!==""&&(!fM[0]||fM[0].charAt(0)!=="/")&&fM.unshift(""),TM&&fM.join("/").substr(-1)!=="/"&&fM.push("");var AM=fM[0]===""||fM[0]&&fM[0].charAt(0)==="/";if(IM){St.hostname=St.host=AM?"":fM.length?fM.shift():"";var DM=St.host&&St.host.indexOf("@")>0?St.host.split("@"):!1;DM&&(St.auth=DM.shift(),St.host=St.hostname=DM.shift())}return yM=yM||St.host&&fM.length,yM&&!AM&&fM.unshift(""),fM.length?St.pathname=fM.join("/"):(St.pathname=null,St.path=null),(!A.isNull(St.pathname)||!A.isNull(St.search))&&(St.path=(St.pathname?St.pathname:"")+(St.search?St.search:"")),St.auth=ii.auth||St.auth,St.slashes=St.slashes||ii.slashes,St.href=St.format(),St},W.prototype.parseHost=function(){var ii=this.host,Ot=X.exec(ii);Ot&&(Ot=Ot[0],Ot!==":"&&(this.port=Ot.substr(1)),ii=ii.substr(0,ii.length-Ot.length)),ii&&(this.hostname=ii)};function q(ii,Ot){for(var St=0,pi=ii.length-1;pi>=0;pi--){var eM=ii[pi];eM==="."?ii.splice(pi,1):eM===".."?(ii.splice(pi,1),St++):St&&(ii.splice(pi,1),St--)}if(Ot)for(;St--;St)ii.unshift("..");return ii}function J(){for(var ii="",Ot=!1,St=arguments.length-1;St>=-1&&!Ot;St--){var pi=St>=0?arguments[St]:"/";if(typeof pi!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!pi)continue;ii=pi+"/"+ii,Ot=pi.charAt(0)==="/"}return ii=q(U(ii.split("/"),function(eM){return!!eM}),!Ot).join("/"),(Ot?"/":"")+ii||"."}function U(ii,Ot){if(ii.filter)return ii.filter(Ot);for(var St=[],pi=0;pi<ii.length;pi++)Ot(ii[pi],pi,ii)&&St.push(ii[pi]);return St}var Z=function(ii){function Ot(){var pi=this||self;return delete ii.prototype.__magic__,pi}if(typeof globalThis=="object")return globalThis;if(this)return Ot();ii.defineProperty(ii.prototype,"__magic__",{configurable:!0,get:Ot});var St=__magic__;return St}(Object),ve=j,Ye=T,rt=D,Ue=$,Qe=Z.URL,vt=Z.URLSearchParams,ri=/%/g,ci=/\\/g,tt=/\n/g,et=/\r/g,$e=/\t/g,Le=47;function ot(ii){var Ot=ii??null;return!!(Ot!==null&&Ot?.href&&Ot?.origin)}function Oe(ii){if(ii.hostname!=="")throw new TypeError('File URL host must be "localhost" or empty on browser');for(var Ot=ii.pathname,St=0;St<Ot.length;St++)if(Ot[St]==="%"){var pi=Ot.codePointAt(St+2)|32;if(Ot[St+1]==="2"&&pi===102)throw new TypeError("File URL path must not include encoded / characters")}return decodeURIComponent(Ot)}function Ne(ii){return ii.includes("%")&&(ii=ii.replace(ri,"%25")),ii.includes("\\")&&(ii=ii.replace(ci,"%5C")),ii.includes(`
`)&&(ii=ii.replace(tt,"%0A")),ii.includes("\r")&&(ii=ii.replace(et,"%0D")),ii.includes("	")&&(ii=ii.replace($e,"%09")),ii}var Fe=function(Ot){if(typeof Ot>"u")throw new TypeError('The "domain" argument must be specified');return new Qe("http://"+Ot).hostname},Je=function(Ot){if(typeof Ot>"u")throw new TypeError('The "domain" argument must be specified');return new Qe("http://"+Ot).hostname},Dt=function(Ot){var St=new Qe("file://"),pi=J(Ot),eM=Ot.charCodeAt(Ot.length-1);return eM===Le&&pi[pi.length-1]!=="/"&&(pi+="/"),St.pathname=Ne(pi),St},oi=function(Ot){if(!ot(Ot)&&typeof Ot!="string")throw new TypeError('The "path" argument must be of type string or an instance of URL. Received type '+typeof Ot+" ("+Ot+")");var St=new Qe(Ot);if(St.protocol!=="file:")throw new TypeError("The URL must be of scheme file");return Oe(St)},Bt=function(Ot,St){var pi,eM,hi;if(St===void 0&&(St={}),!(Ot instanceof Qe))return ve(Ot);if(typeof St!="object"||St===null)throw new TypeError('The "options" argument must be of type object.');var mi=(pi=St.auth)!=null?pi:!0,Dn=(eM=St.fragment)!=null?eM:!0,tM=(hi=St.search)!=null?hi:!0,oM=new Qe(Ot.toString());return mi||(oM.username="",oM.password=""),Dn||(oM.hash=""),tM||(oM.search=""),oM.toString()},li={format:Bt,parse:Ye,resolve:rt,resolveObject:O,Url:Ue,URL:Qe,URLSearchParams:vt,domainToASCII:Fe,domainToUnicode:Je,pathToFileURL:Dt,fileURLToPath:oi};f.URL=Qe,f.URLSearchParams=vt,f.Url=Ue,f.default=li,f.domainToASCII=Fe,f.domainToUnicode=Je,f.fileURLToPath=oi,f.format=Bt,f.parse=Ye,f.pathToFileURL=Dt,f.resolve=rt,f.resolveObject=O,f=u.exports=li})(url,url.exports);var urlExports=url.exports;(function(u){var f=requestExports,d=response$1,_=immutable,x=browser$c,I=urlExports,E=u;E.request=function(M,S){typeof M=="string"?M=I.parse(M):M=_(M);var A=commonjsGlobal$1.location.protocol.search(/^https?:$/)===-1?"http:":"",T=M.protocol||A,D=M.hostname||M.host,O=M.port,j=M.path||"/";D&&D.indexOf(":")!==-1&&(D="["+D+"]"),M.url=(D?T+"//"+D:"")+(O?":"+O:"")+j,M.method=(M.method||"GET").toUpperCase(),M.headers=M.headers||{};var $=new f(M);return S&&$.on("response",S),$},E.get=function(S,A){var T=E.request(S,A);return T.end(),T},E.ClientRequest=f,E.IncomingMessage=d.IncomingMessage,E.Agent=function(){},E.Agent.defaultMaxSockets=4,E.globalAgent=new E.Agent,E.STATUS_CODES=x,E.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]})(streamHttp);(function(u){var f=streamHttp,d=urlExports,_=u.exports;for(var x in f)f.hasOwnProperty(x)&&(_[x]=f[x]);_.request=function(E,M){return E=I(E),f.request.call(this,E,M)},_.get=function(E,M){return E=I(E),f.get.call(this,E,M)};function I(E){if(typeof E=="string"&&(E=d.parse(E)),E.protocol||(E.protocol="https:"),E.protocol!=="https:")throw new Error('Protocol "'+E.protocol+'" not supported. Expected "https:"');return E}})(httpsBrowserify);var httpsBrowserifyExports=httpsBrowserify.exports,__awaiter=commonjsGlobal$1&&commonjsGlobal$1.__awaiter||function(u,f,d,_){function x(I){return I instanceof d?I:new d(function(E){E(I)})}return new(d||(d=Promise))(function(I,E){function M(T){try{A(_.next(T))}catch(D){E(D)}}function S(T){try{A(_.throw(T))}catch(D){E(D)}}function A(T){T.done?I(T.value):x(T.value).then(M,S)}A((_=_.apply(u,f||[])).next())})},__importDefault=commonjsGlobal$1&&commonjsGlobal$1.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(CoinGeckoClient$1,"__esModule",{value:!0});CoinGeckoClient$1.CoinGeckoClient=void 0;const https_1=__importDefault(httpsBrowserifyExports),Enum_1=Enum;class CoinGeckoClient{constructor(f){this.apiV3Url="https://api.coingecko.com/api/v3",this.options={timeout:3e4,autoRetry:!0},this.options=Object.assign(Object.assign({},this.options),f)}withPathParams(f,d={}){let _=f;return Object.entries(d).forEach(([x,I])=>{_=_.replace(`{${x}}`,I)}),_}httpGet(f){return __awaiter(this,void 0,void 0,function*(){const{host:d,pathname:_,search:x}=new URL(f),I={host:d,path:_+x,method:"GET",headers:{"Content-Type":"application/json",Accept:"application/json"},timeout:this.options.timeout},E=M=>{try{return JSON.parse(M)}catch{return M}};return new Promise((M,S)=>{const A=https_1.default.request(I,T=>{T.statusCode&&T.statusCode===429&&M({statusCode:T.statusCode,data:{error:"HTTP 429 - Too many request"},headers:T.headers});const D=[];T.on("data",O=>D.push(O)),T.on("end",()=>{const O=buffer$2.Buffer.concat(D).toString();M({statusCode:T.statusCode,data:E(O),headers:T.headers})})});A.on("error",T=>{S(T)}),A.on("timeout",()=>{A.destroy(),S(new Error(`HTTP Request timeout after ${this.options.timeout}`))}),A.end()})})}makeRequest(f,d={}){return __awaiter(this,void 0,void 0,function*(){const _=Object.entries(d).map(([E,M])=>`${E}=${M}`).join("&"),x=`${this.apiV3Url+this.withPathParams(f,d)}?${_}`,I=yield this.httpGet(x);if(I.statusCode===429&&this.options.autoRetry){const E=+I.headers["retry-after"]*1e3;return yield new Promise(M=>setTimeout(M,E)),yield this.makeRequest(f,d)}return I.data})}ping(){return __awaiter(this,void 0,void 0,function*(){return this.makeRequest(Enum_1.API_ROUTES.PING)})}search(f){return __awaiter(this,void 0,void 0,function*(){return this.makeRequest(Enum_1.API_ROUTES.SEARCH,f)})}trending(){return __awaiter(this,void 0,void 0,function*(){return this.makeRequest(Enum_1.API_ROUTES.SEARCH_TRENDING)})}coinList(f){return __awaiter(this,void 0,void 0,function*(){return this.makeRequest(Enum_1.API_ROUTES.COIN_LIST,f)})}coinMarket(f){return __awaiter(this,void 0,void 0,function*(){return this.makeRequest(Enum_1.API_ROUTES.COIN_MARKET,f)})}coinId(f){return __awaiter(this,void 0,void 0,function*(){return this.makeRequest(Enum_1.API_ROUTES.COIN,f)})}coinIdTickers(f){return __awaiter(this,void 0,void 0,function*(){return this.makeRequest(Enum_1.API_ROUTES.COIN_TICKERS,f)})}coinIdHistory(f){return __awaiter(this,void 0,void 0,function*(){return this.makeRequest(Enum_1.API_ROUTES.COIN_HISTORY,f)})}coinIdMarketChart(f){return __awaiter(this,void 0,void 0,function*(){return this.makeRequest(Enum_1.API_ROUTES.COIN_MARKET_CHART,f)})}coinIdMarketChartRange(f){return __awaiter(this,void 0,void 0,function*(){return this.makeRequest(Enum_1.API_ROUTES.COIN_MARKET_CHART_RANGE,f)})}coinIdOHLC(f){return __awaiter(this,void 0,void 0,function*(){return this.makeRequest(Enum_1.API_ROUTES.COIN_OHLC,f)})}simplePrice(f){return __awaiter(this,void 0,void 0,function*(){return this.makeRequest(Enum_1.API_ROUTES.SIMPLE_PRICE,f)})}simpleTokenPrice(f){return __awaiter(this,void 0,void 0,function*(){return this.makeRequest(Enum_1.API_ROUTES.SIMPLE_TOKEN_PRICE,f)})}simpleSupportedCurrencies(){return __awaiter(this,void 0,void 0,function*(){return this.makeRequest(Enum_1.API_ROUTES.SIMPLE_SUPPORTED_CURRENCIES)})}contract(f){return __awaiter(this,void 0,void 0,function*(){return this.makeRequest(Enum_1.API_ROUTES.CONTRACT,f)})}contractMarketChart(f){return __awaiter(this,void 0,void 0,function*(){return this.makeRequest(Enum_1.API_ROUTES.CONTRACT_MARKET_CHART,f)})}contractMarketChartRange(f){return __awaiter(this,void 0,void 0,function*(){return this.makeRequest(Enum_1.API_ROUTES.CONTRACT_MARKET_CHART_RANGE,f)})}exchanges(f){return __awaiter(this,void 0,void 0,function*(){return this.makeRequest(Enum_1.API_ROUTES.EXCHANGES,f)})}exchangeList(){return __awaiter(this,void 0,void 0,function*(){return this.makeRequest(Enum_1.API_ROUTES.EXCHANGE_LIST)})}exchangeId(f){return __awaiter(this,void 0,void 0,function*(){return this.makeRequest(Enum_1.API_ROUTES.EXCHANGE_ID,{id:f})})}exchangeIdTickers(f){return __awaiter(this,void 0,void 0,function*(){return this.makeRequest(Enum_1.API_ROUTES.EXCHANGE_ID_TICKER,f)})}exchangeIdVolumeChart(f){return __awaiter(this,void 0,void 0,function*(){return this.makeRequest(Enum_1.API_ROUTES.EXCHANGE_ID_VOL_CHART,f)})}financePlatforms(f){return __awaiter(this,void 0,void 0,function*(){return this.makeRequest(Enum_1.API_ROUTES.FINANCE_PLATFORM,f)})}indexes(f){return __awaiter(this,void 0,void 0,function*(){return this.makeRequest(Enum_1.API_ROUTES.INDEXES,f)})}indexesMarketId(f){return __awaiter(this,void 0,void 0,function*(){return this.makeRequest(Enum_1.API_ROUTES.INDEXES_MARKET_ID,f)})}indexesList(){return __awaiter(this,void 0,void 0,function*(){return this.makeRequest(Enum_1.API_ROUTES.INDEXES_LIST)})}derivatives(f){return __awaiter(this,void 0,void 0,function*(){return this.makeRequest(Enum_1.API_ROUTES.DERIVATIVES,f)})}derivativesExchanges(f){return __awaiter(this,void 0,void 0,function*(){return this.makeRequest(Enum_1.API_ROUTES.DERIVATIVES_EXCHANGES,f)})}derivativesExchangesId(f){return __awaiter(this,void 0,void 0,function*(){return this.makeRequest(Enum_1.API_ROUTES.DERIVATIVES_EXCHANGES_ID,f)})}derivativesExchangesList(){return __awaiter(this,void 0,void 0,function*(){return this.makeRequest(Enum_1.API_ROUTES.DERIVATIVES_EXCHANGES_LIST)})}exchangeRates(){return __awaiter(this,void 0,void 0,function*(){return this.makeRequest(Enum_1.API_ROUTES.EXCHANGE_RATES)})}global(){return __awaiter(this,void 0,void 0,function*(){return this.makeRequest(Enum_1.API_ROUTES.GLOBAL)})}globalDefi(){return __awaiter(this,void 0,void 0,function*(){return this.makeRequest(Enum_1.API_ROUTES.GLOBAL_DEFI)})}}CoinGeckoClient$1.CoinGeckoClient=CoinGeckoClient;(function(u){var f=commonjsGlobal$1&&commonjsGlobal$1.__createBinding||(Object.create?function(_,x,I,E){E===void 0&&(E=I);var M=Object.getOwnPropertyDescriptor(x,I);(!M||("get"in M?!x.__esModule:M.writable||M.configurable))&&(M={enumerable:!0,get:function(){return x[I]}}),Object.defineProperty(_,E,M)}:function(_,x,I,E){E===void 0&&(E=I),_[E]=x[I]}),d=commonjsGlobal$1&&commonjsGlobal$1.__exportStar||function(_,x){for(var I in _)I!=="default"&&!Object.prototype.hasOwnProperty.call(x,I)&&f(x,_,I)};Object.defineProperty(u,"__esModule",{value:!0}),d(Enum,u),d(Interface,u),d(CoinGeckoClient$1,u)})(dist);class CoinsAPI{constructor(f){aM(this,"basePath","/coins");this.fetcher=f}async coinMarket(f){const d=new APIRequest({url:this.basePath+"/markets",method:"GET",urlParams:f});return(await this.fetcher.send(d)).data}}class GlobalAPI{constructor(f){aM(this,"basePath","/global");this.fetcher=f}async global(){const f=new APIRequest({url:`${this.basePath}`,method:"GET"});return(await this.fetcher.send(f)).data}}const Dk=class Dk{constructor(){aM(this,"coin");aM(this,"global");const f=new FetchAPI("https://coingecko-cache.wepin.io");this.coin=new CoinsAPI(f),this.global=new GlobalAPI(f)}static getInstance(){return Dk.instance||(Dk.instance=new Dk),Dk.instance}};aM(Dk,"instance");let CoinPriceCacheBackendAPI=Dk;const useCoinPriceAPIStore=defineStore("coinPriceAPI",()=>{const u=new dist.CoinGeckoClient,f=CoinPriceCacheBackendAPI.getInstance(),d=ref([]),_=ref([]),x=D=>{if(D)return d.value.find(O=>O.id===D)},I=D=>{D&&d.value.push(D)},E=getExecuteOnce(async({force:D=!1,coinGeckoIds:O,currency:j})=>{let $=[];if(D?$=[...O]:$=O.filter(W=>!x(W)),!(!D&&$.length===0))try{const[W,Q]=await Promise.all([f.coin.coinMarket({ids:$.join(","),vs_currency:j,sparkline:!0}),f.global.global()]);for(const X of W)I(new CoinGeckoCoinPrice(X,Q))}catch(W){console.error(W)}}),M=D=>_.value.find(O=>O.id===D)?.data,S=(D,O)=>{_.value.push({id:D,data:O})},A=getExecuteOnce(async({force:D=!1,coinGeckoId:O,currency:j})=>{if(D||!M(O)){const $=await u.coinIdMarketChart({id:O,vs_currency:j,days:7});S(O,$)}});return{coinPriceList:d,fetchCoinPrice:E,getCoinPrice:x,addCoinPrice:I,chart7d:_,getChart7d:M,fetchChart7d:A,reset:()=>{d.value=[],_.value=[]}}}),useInfoAPIStore=defineStore("infoAPI",()=>{const u=useUserStore(),f=ref([]),d=ref([]),_=computed(()=>{const S=u.userInfo?.currencyId??3;return f.value.length>0?f.value?.find(A=>A.id===S)?.name??"USD":"USD"}),x=getExecuteOnce(async({force:S=!1})=>{if(S||!f.value){const A=await WepinBackendAPI$1.getInstance().info.getCurrencyList({});f.value=A.currency}}),I=getExecuteOnce(async({force:S=!1})=>{if(S||d.value?.length===0)try{const A=await WepinBackendAPI$1.getInstance().info.getLocaleList({});d.value=A.locale}catch(A){console.error(A)}});return{currencyList:f,localeList:d,currentCurrency:_,fetchCurrencyList:x,fetchLocaleList:I,fetchAllInfo:async()=>Promise.all([x({force:!0}),await I({force:!0})]),reset:()=>{f.value=[],d.value=[]}}}),useNFTAPIStore=defineStore("nftAPI",()=>{const u=ref({}),f=ref(),d=new OffsetSettingInfoList,_=ref([]),x=computed(()=>Object.values(u.value).flat().filter(O=>!!O)),I=getExecuteOnce(async O=>{if(O)try{return(await WepinBackendAPI$1.getInstance().nft.refreshNFTList({accountIds:O})).result}catch{return!1}}),E=getExecuteOnce(async({walletId:O,force:j=!1,needToAddData:$=!0,recursionsParamsData:W})=>{if(!O)return;const Q={offset:W??DEFAULT_OFFSET};if(W||(Q.offset=d.offsetSettingInfo({params:{walletId:O,needToAddData:$},offset:Q.offset})),j||!u.value[O]){const X=await WepinBackendAPI$1.getInstance().nft.getNFTList({walletId:O,page:Q.offset.toString()});if(!X)return;u.value[O]=arrayPushUnique(X.nftTokens,"id",u.value[O]),Q.offset=d.checkLimit({params:{walletId:O,needToAddData:$},offset:Q.offset},X.nftTokens?.length??0)}if(Q.offset!==0)await E({walletId:O,force:!0,needToAddData:$,recursionsParamsData:Q.offset});else return d.removeOffset({walletId:O,needToAddData:$}),_.value.push(O),u.value[O]}),M=getExecuteOnce(async(O,j=!1)=>{if(O){if(j||!u.value){const $=await WepinBackendAPI$1.getInstance().nft.getNFTCount(O);return $?$.count:void 0}return{count:u.value.length}}}),S=getExecuteOnce(async(O,j,$=!1)=>{if(j){if($){const W=await WepinBackendAPI$1.getInstance().nft.getNFTInfo({nftTokenId:j});return W?(u.value[O]=u.value[O]?.map(Q=>Q.id===W.nftToken.id?W.nftToken:Q),W.nftToken):void 0}return u.value[O]?.find(W=>W.id.toString()===j)}}),A=getExecuteOnce(async(O=!1)=>{if(O||!f.value){const j=await WepinBackendAPI$1.getInstance().nft.getSupportedNFTList();if(!j)return;f.value||(f.value=[]),f.value=f.value.concat(j.supportNetworkList)}return f.value});return{nftSupportedList:f,nftListByWalletKey:u,refreshNFTList:I,fetchNFTList:E,fetchNFTCount:M,fetchNFTInfo:S,fetchSupportedNFTList:A,nftList:x,requestFetchHistory:_,deleteNFT:(O,j)=>{u.value[O]=u.value[O]?.filter($=>$.id.toString()!==j)},reset:()=>{u.value={},f.value=void 0,_.value=[]}}}),useNFTContractAPIStore=defineStore("nftContractAPI",()=>{const u=ref(),f=getExecuteOnce(async({ids:I,force:E=!1})=>{if(I){if(E||!u.value){const M=await WepinBackendAPI$1.getInstance().nftcontract.getNFTContractList({ids:I});if(!M)return;u.value||(u.value=[]),u.value.push(...M.nftContracts),u.value=u.value.filter((S,A,T)=>A===T.findIndex(D=>D.id===S.id))}return u.value}}),d=getExecuteOnce(async(I,E=!1)=>{if(I){if(E){const M=await WepinBackendAPI$1.getInstance().nftcontract.getNFTContract({nftContractId:I});return M?(u.value=u.value?.map(S=>S.id===M.nftContract.id?M.nftContract:S),M):void 0}return u.value?.find(M=>M.id.toString()===I)}});return{contractList:u,fetchNFTContractList:f,fetchNFTContract:d,getNFTContract:I=>u.value?.find(E=>E.id===I),reset:()=>{u.value=[]}}}),useNoticeAPIStore=defineStore("noticeAPI",()=>{const u=ref(),f=getExecuteOnce(async(I=!1,E)=>{if(I||!u.value){const M=await WepinBackendAPI$1.getInstance().notice.getNoticeList(E);if(!M)return;u.value||(u.value=[]),u.value=u.value.concat(M.notices)}return u.value}),d=getExecuteOnce(async(I,E=!1)=>{if(I){if(E||!u.value){const M=await WepinBackendAPI$1.getInstance().notice.getNotice({noticeId:I});return M?(u.value=u.value?.map(S=>S.id===I?M.notice:S),M.notice):void 0}return u.value.find(M=>M.id===I)}});return{noticeList:u,fetchNoticeList:f,fetchNotice:d,deleteNotice:async I=>{if(!I)return;const E=await WepinBackendAPI$1.getInstance().notice.deleteNotice({noticeId:I});return E.result&&(u.value=u.value?.filter(M=>M.id!==I)),E},reset:()=>{u.value=[]}}}),useProjectAPIStore=defineStore("projectAPI",()=>{const u=ref(),f=ref(),d=ref(),_=ref(),x=ref(),I=async de=>{if(!de)return;const Ce=await WepinBackendAPI$1.getInstance().project.createProject(de);if(Ce)return u.value||(u.value=[]),u.value=u.value.concat(Ce),Ce},E=async(de,Ce)=>{if(!de)return;const ke=await WepinBackendAPI$1.getInstance().project.modifyProject({projectId:de},Ce);if(ke)return u.value=u.value?.map(le=>le.id===ke.id?ke:le),ke},M=async de=>{if(!de)return;const Ce=await WepinBackendAPI$1.getInstance().project.deleteProject({projectId:de});if(Ce)return Ce.result&&(u.value=u.value?.filter(ke=>ke.id!==de)),Ce},S=async(de,Ce)=>{if(!de||!Ce)return;const ke=await WepinBackendAPI$1.getInstance().project.registerProject({projectId:de},Ce);if(ke)return ke.id},A=async de=>{if(!de)return;const Ce=await WepinBackendAPI$1.getInstance().project.deregisterProject({projectId:de});if(Ce)return Ce},T=getExecuteOnce(async(de,Ce,ke=!1)=>{if(de){if(ke||!u.value){const le=await WepinBackendAPI$1.getInstance().project.getProject({projectId:de},Ce);return le?(u.value=u.value?.map(re=>re.id===de?le:re),le):void 0}return u.value.find(le=>le.id===de)}}),D=getExecuteOnce(async(de,Ce=!1)=>{if(de){if(Ce||!u.value){const ke=await WepinBackendAPI$1.getInstance().project.getProjectList(de);if(!ke)return;u.value||(u.value=[]),u.value=u.value.concat(ke.projects)}return u.value}}),O=getExecuteOnce(async(de,Ce=!1)=>{if(de){if(Ce||!f.value){const ke=await WepinBackendAPI$1.getInstance().project.getPopularProjectList(de);if(!ke)return;f.value||(f.value=[]),f.value=f.value.concat(ke.projects)}return f.value}}),j=getExecuteOnce(async(de,Ce=!1)=>{if(de){if(Ce||!d.value){const ke=await WepinBackendAPI$1.getInstance().project.getNewProjectList(de);if(!ke)return;d.value||(d.value=[]),d.value=d.value.concat(ke.projects)}return d.value}}),$=getExecuteOnce(async de=>{if(!de)return;const Ce=await WepinBackendAPI$1.getInstance().project.getProjectTokenList({projectId:de});if(Ce)return Ce.tokens}),W=getExecuteOnce(async de=>{if(!de)return;const Ce=await WepinBackendAPI$1.getInstance().project.getProjectNFTList({projectId:de});if(Ce)return Ce.nfts}),Q=async de=>{if(!de)return;const Ce=await WepinBackendAPI$1.getInstance().project.setLikeProject({userProjectJoinId:de});if(Ce)return Ce},X=async de=>{if(!de)return;const Ce=await WepinBackendAPI$1.getInstance().project.unsetLikeProject({userProjectJoinId:de});if(Ce)return Ce},Y=async(de,Ce)=>{if(!de||!Ce)return;const ke=await WepinBackendAPI$1.getInstance().project.updateProjectJoinUserInfo({userProjectJoinId:de},Ce);if(ke)return ke},ie=async de=>{if(!de)return;const Ce=await WepinBackendAPI$1.getInstance().project.dropOutUser({userProjectJoinId:de});if(Ce)return Ce},oe=getExecuteOnce(async(de=!1)=>{if(de||!_.value){const Ce=await WepinBackendAPI$1.getInstance().project.getUserProjectList();if(!Ce)return;_.value||(_.value=[]),_.value=_.value.concat(Ce.projectJoinInfo)}return _.value});return{projectList:u,projectPopularList:f,projectNewList:d,projectJoinInfoList:_,appList:x,createProject:I,modifyProject:E,deleteProject:M,registerProject:S,deregisterProject:A,fetchProject:T,fetchProjectList:D,fetchPopularProjectList:O,fetchNewProjectList:j,fetchProjectTokenList:$,fetchProjectNFTList:W,setLikeProject:Q,unsetLikeProject:X,updateProjectJoinUserInfo:Y,dropOutUser:ie,fetchUserProjectList:oe,fecthUserAppDetail:async(de=!1)=>{if(de||x.value){const Ce=await WepinBackendAPI$1.getInstance().project.getUserAppDetail();if(!Ce)return;x.value=Ce}return x.value},getUserAppDetailById:async de=>await WepinBackendAPI$1.getInstance().project.getUserAppDetailByID(de),reset:()=>{u.value=[],f.value=[],d.value=[],_.value=[],x.value=[]}}}),useTransactionAPIStore=defineStore("transactionAPI",()=>{const u=ref({}),f=ref({}),d=ref({}),_=ref({});async function x(A,T){return await WepinBackendAPI$1.getInstance().transaction.checkAddressValidation({coinId:A,address:T})}const I=(A,T,D)=>{const{page:O}=A[D];A[D]={page:O+1,allLoading:T<15}},E=getExecuteOnce(async({accountId:A,force:T=!1,refresh:D=!1})=>{if((!d.value[A]||D)&&(d.value[A]={page:1,allLoading:!1}),!(d.value[A].allLoading||!T&&u.value[A]))if(u.value[A]||(u.value[A]=[]),D){const O=await WepinBackendAPI$1.getInstance().transaction.getAccountTransactionList({accountId:A,page:d.value[A].page});u.value[A]=O.sort((j,$)=>new Date($.createDate).getTime()-new Date(j.createDate).getTime()),I(d.value,O.length,A)}else{const O=await WepinBackendAPI$1.getInstance().transaction.getAccountTransactionList({accountId:A,page:d.value[A].page}),j=u.value[A]?.concat(O);j?.sort(($,W)=>new Date(W.createDate).getTime()-new Date($.createDate).getTime()),u.value[A]=j,I(d.value,O.length,A)}}),M=getExecuteOnce(async({accountId:A,accountTokenId:T,contract:D,force:O=!1,refresh:j=!1})=>{if((!_.value[T]||j)&&(_.value[T]={page:1,allLoading:!1}),!(_.value[T].allLoading||!O&&f.value[A]&&f.value[A][T]))if(f.value[A]||(f.value[A]={},f.value[A][T]=[]),j){const $=await WepinBackendAPI$1.getInstance().transaction.getAccountTransactionList({accountId:A,contract:D,page:_.value[Number(T)].page});f.value[A][T]=$.sort((W,Q)=>new Date(Q.createDate).getTime()-new Date(W.createDate).getTime()),I(_.value,$.length,T)}else{const $=await WepinBackendAPI$1.getInstance().transaction.getAccountTransactionList({accountId:A,contract:D,page:_.value[Number(T)].page}),W=f.value[A][T]?.concat($);W?.sort((Q,X)=>new Date(X.createDate).getTime()-new Date(Q.createDate).getTime()),f.value[A][T]=W,I(_.value,$.length,T)}});return{transactionListByAccountId:u,transactionListByAccountTokenId:f,checkAddressValidation:x,fetchAccountTransactionList:E,fetchAccountTokenTransactionList:M,reset:()=>{u.value={},f.value={},d.value={},_.value={}}}});var name$1="firebase",version$1="9.23.0";/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */registerVersion(name$1,version$1,"app");class FirebaseEmailSigninError extends Error{constructor(f){super(f==="too-many-requests"?"too-many-requests":"wrong-password"),this.name=f}}const useUserAPIStore=defineStore("userAPI",()=>{const u=ref(),f=ref(),d=ref(),_=computed(()=>u.value),x=initializeApp(FirebaseConfig),I=getAuth(x);async function E(){if(!I.currentUser)throw new Error("User is null");return I.currentUser.getIdToken()}async function M(H){const q=await WepinBackendAPI$1.getInstance().user.login({idToken:H});return setLocalStorage({key:WEPIN_TOKEN,value:q.token}),q}async function S(H){return WepinBackendAPI$1.getInstance().user.checkEmailExist({email:H})}async function A(H,q,J,U,Z){return WepinBackendAPI$1.getInstance().user.verify({type:H,email:q,promotionId:J,campaignId:U,referralCode:Z})}function T(){return!(!getLocalStorage()?.refreshToken||isExpiredRefreshToken())}async function D(){return T()?(d.value=await WepinBackendAPI$1.getInstance().user.getInfo(),d.value):null}async function O(){const H=await WepinBackendAPI$1.getInstance().user.logout();return useSetupStoreReset(),setLocalStorage({key:WEPIN_TOKEN,value:{}}),H}async function j(){return await WepinBackendAPI$1.getInstance().user.getPubKey()}async function $(H){const q=await WepinBackendAPI$1.getInstance().user.updateLocale({localeId:H});return d.value&&(d.value.localeId=q.localeId),q}async function W({localeId:H=d.value?.localeId,name:q,currencyId:J,userJoinStage:U}){const Z=await WepinBackendAPI$1.getInstance().user.updateUser({localeId:H,name:q,currencyId:J,userJoinStage:U});return d.value=Z,Z}async function Q(H){const q=await WepinBackendAPI$1.getInstance().user.updateUserProfileImage(H);return d.value&&(d.value.profileImage=q.filePath),q}async function X(){const q={access:(await WepinBackendAPI$1.getInstance().user.refreshAccessToken()).token,refresh:getLocalStorage().refreshToken};setLocalStorage({key:WEPIN_TOKEN,value:q})}async function Y(){return await WepinBackendAPI$1.getInstance().user.updateTermsAccepted({termsAccepted:{termsOfService:!0,privacyPolicy:!0}})}async function ie(){return await WepinBackendAPI$1.getInstance().user.getTermsAccepted()}async function oe(H){return await WepinBackendAPI$1.getInstance().user.getUserPasswordState({email:H})}async function ge(H){return await WepinBackendAPI$1.getInstance().user.updateUserPasswordState({isPasswordResetRequired:H})}async function be(H,q){const J=getOAuthProcessor(I,H);if(!J)throw new Error("Invalid provider");q&&J.setCustomParameters(q);const U=await J.doPopupLogin();return ze(U)}async function ze(H){f.value=o(H);const q=await M(H);return d.value=q.userInfo,q}async function de({oobCode:H,password:q}){try{const J=await fetch(identityURL.resetPassword,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({oobCode:H,newPassword:q})});if(J.status>=400)throw new Error("Expired token");return J}catch(J){throw console.error(J),J}}async function Ce({oobCode:H}){return await fetch(identityURL.updateVerifyEmail,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({oobCode:H})})}async function ke(H){const q=initializeApp(FirebaseConfig),J=getAuth(q);return J.currentUser?await updatePassword(J.currentUser,H).then(async()=>!0).catch(Z=>{throw console.error("UPDATE USER PASSWORD",Z),Z}):void 0}async function le({email:H,password:q}){const J=initializeApp(FirebaseConfig),U=getAuth(J);return await signInWithEmailAndPassword(U,H,q).then(async ve=>{if(!ve.user.emailVerified)throw new Error("require/email-verified");const Ye=await ve.user.getIdToken();f.value=o(Ye);const rt=await M(Ye);return d.value=rt.userInfo,rt}).catch(ve=>{switch(ve.code){case"auth/too-many-requests":throw new FirebaseEmailSigninError("too-many-requests");case"auth/wrong-password":throw new FirebaseEmailSigninError("wrong-password");default:throw{error:ve}}})}return{getFBAccessToken:E,signInOAuth:be,signInWithEmail:le,logout:O,getUserDetail:D,getPubKey:_,userInfo:d,decodedUserToken:f,getUserPubKey:j,updateLocale:$,refreshAccessToken:X,updateTermsAccepted:Y,getTermsAccepted:ie,getUserPasswordState:oe,updateUserPasswordState:ge,loginWepinWithToken:M,userCheckEmailExist:S,userVerify:A,resetPassword:de,confirmEmailVerify:Ce,updateUser:W,updateUserProfileImage:Q,updateUserPassword:ke,reset:()=>{u.value="",f.value=void 0,d.value=void 0},otpVerify:async H=>WepinBackendAPI$1.getInstance().user.verifyOtpCode(H).then(q=>(q.result&&d.value&&d.value.use2FA<User2FAState.AUTHENTICATED&&(d.value.use2FA=User2FAState.AUTHENTICATED),q)),getRecoveryCode:async H=>WepinBackendAPI$1.getInstance().user.getRecoveryCode(H).then(q=>(d.value&&(d.value.use2FA=User2FAState.RECOVERY_CHECKED),q.recoveryCode)),unsetOtp:async H=>WepinBackendAPI$1.getInstance().user.unSetOtp(H).then(({result:q})=>(q&&d.value&&(d.value.use2FA=User2FAState.UNSET),q)),refreshRecoveryCode:async H=>WepinBackendAPI$1.getInstance().user.refreshOtpRecoveryCode(H).then(q=>q.recoveryCode),change2FAState:async H=>WepinBackendAPI$1.getInstance().user.change2FAState(H).then(({result:q})=>(q&&d.value&&(d.value.use2FA=H),q)),isLoginUser:T}}),useWalletAPIStore=defineStore("walletAPI",()=>{const u=useAccountAPIStore(),f=useCoinAPIStore(),d=useCoinPriceAPIStore(),_=useInfoAPIStore(),x=useWalletStore(),I=useUserStore(),E=ref([]),M=async ze=>{typeof E.value>"u"&&(E.value=[]);const de=await WepinBackendAPI$1.getInstance().wallet.createWallet(ze);if(de)return E.value||(E.value=[]),E.value.push(de.wallet),u.accountListByWalletKey[de.wallet.id]||(u.accountListByWalletKey[de.wallet.id]=[]),de.account&&(u.accountListByWalletKey[de.wallet.id]||(u.accountListByWalletKey[de.wallet.id]=[]),u.accountListByWalletKey[de.wallet.id]?.push(de.account)),ze.wallet.defaultWallet&&(E.value=E.value.map(Ce=>(Ce.id!==de.wallet.id&&(Ce.defaultWallet=!1),Ce))),de},S=async ze=>(await WepinBackendAPI$1.getInstance().wallet.backupWallet(ze)).mnemonic,A=async(ze,de)=>{if(!E.value||!ze)return;const Ce=await WepinBackendAPI$1.getInstance().wallet.updateWallet({walletId:ze},de);return Ce&&E.value&&(E.value=E.value.map(ke=>ke.id===Ce.wallet.id?Ce.wallet:ke),Ce.wallet.defaultWallet&&(E.value=E.value.map(ke=>(ke.id!==Ce.wallet.id&&(ke.defaultWallet=!1),ke)))),Ce},T=getExecuteOnce(async(ze,de=!1)=>{if(ze)return de?await WepinBackendAPI$1.getInstance().wallet.getWalletInfo({walletId:ze}):E.value?E.value.find(Ce=>Ce.id===ze):void 0}),D=getExecuteOnce(async(ze,de=!1)=>{if(de||E.value?.length===0)try{const Ce=await WepinBackendAPI$1.getInstance().wallet.getWalletList(ze);if(!Ce)return[];E.value=Ce.wallets}catch(Ce){console.error(Ce)}return E.value}),O=async(ze,de,Ce)=>{if(!ze)return;const ke=await WepinBackendAPI$1.getInstance().wallet.deleteWallet({walletId:ze},de);return(typeof Ce?.deleteInMemory>"u"?!0:Ce?.deleteInMemory)&&ke.result&&E.value&&(E.value=E.value.filter(re=>re.id!==ze)),ke};function j(ze){const de=E.value?.findIndex(Ce=>Ce.id===ze);de&&E.value?.splice(de,1)}const $=async(ze=!1)=>{await Promise.all(x.walletList.map(de=>de.fetchAccounts(ze))),await Promise.all(x.accountList.map(de=>de.fetchAccountTokens(ze))),await Promise.all([x.accountTokenList.map(de=>f.fetchHeldCoinList({accountToken:de,force:ze,locale:I.userInfo?.localeId}))]),await Promise.all([x.accountList.map(de=>{de.fetchBalance()}),x.accountTokenList.map(de=>{de.fetchBalance()})]),useConditionalFetch(()=>{f.fetchCoinList({coinIds:[],force:!0,needToAddData:!0,locale:I.userInfo?.localeId,reset:!0}).then(()=>{d.fetchCoinPrice({coinGeckoIds:Q([...x.accountList,...x.accountTokenList]),currency:_.currentCurrency})})},computed(()=>!!I.userInfo?.localeId))},W=async(ze=!1)=>{const de=x.getWallet(x.selectedWalletId);if(!de)return;await de.fetchAccounts(ze),await Promise.all(de.accounts.map(ke=>ke.fetchAccountTokens(ze)));const Ce=x.accountTokenList.filter(ke=>ke.wallet?.id===de.id);await Promise.all([Ce.map(ke=>f.fetchHeldCoinList({accountToken:ke,force:ze,locale:I.userInfo?.localeId}))]),await Promise.all([de.accounts.map(ke=>{ke.fetchBalance(!0)}),Ce.map(ke=>{ke.fetchBalance(!0)})]),useConditionalFetch(async()=>{await f.fetchCoinList({coinIds:[],force:!0,needToAddData:!0,locale:I.userInfo?.localeId,reset:!0})},computed(()=>!!I.userInfo?.localeId)),useConditionalFetch(()=>d.fetchCoinPrice({coinGeckoIds:Q([...de.accounts,...Ce]),currency:_.currentCurrency}),computed(()=>!de.accounts.some(ke=>ke.coin===void 0)&&!Ce.some(ke=>ke.coin===void 0)))},Q=ze=>ze.map(de=>de.coin?.coinGeckoId).filter(de=>de);return{walletList:E,createWallet:M,backupWallet:S,updateWallet:A,fetchWalletInfo:T,fetchWalletList:D,deleteWallet:O,deleteWalletInMemory:j,fetchAllWalletDetail:$,fetchWalletDetail:W,fetchWalletCoreKeyInfo:async ze=>{if(!ze)return;const de=await WepinBackendAPI$1.getInstance().wallet.getWalletCoreKeyInfo({id:ze});if(de)return de},reset:()=>{E.value=[]},resetPinTryCount:async ze=>{if(!ze)return;const de=await WepinBackendAPI$1.getInstance().wallet.resetPinTryCount({id:ze});if(de)return de},verifyPin:async(ze,de)=>{if(!ze)return;const Ce=await WepinBackendAPI$1.getInstance().wallet.verifyPin({walletId:ze,UVD:de});if(Ce)return Ce},updateWalletState:async ze=>{if(!ze)return;const de=await WepinBackendAPI$1.getInstance().wallet.updateWalletState({walletId:ze});if(de)return de},changePin:async ze=>{if(!ze.walletId)return;const de=await WepinBackendAPI$1.getInstance().wallet.changePin(ze);if(de)return de}}}),useNFTSignTxStore=defineStore("sign/nftTransaction",()=>{const u=useLocaleStore(),f=ref(),d=ref(new Address("")),_=ref("0"),x=ref("0"),I=ref(new CoinAmount({amount:"0",decimal:0})),E=$=>{D(),f.value=$},M=ref({high:new CoinAmount({amount:"0",decimal:0}),medium:new CoinAmount({amount:"0",decimal:0}),low:new CoinAmount({amount:"0",decimal:0})}),S=ref(""),A=computed(()=>I.value.ethValue.multipliedBy(x.value).toFixed()),T=ref("0");function D(){f.value=void 0,d.value=new Address(""),_.value="0"}function O(){return u.localeInfo?.unit}async function j(){if(!f.value)throw new Error("Prospect needed to be set before sign");return f.value.getPrepareData({to:d.value.toString(),amount:_.value})}return{prospect:f,clear:D,setProspect:E,toAddress:d,sendAmount:_,getCurrency:O,prepare:j,gasLimit:x,gasPrice:I,gasOptions:M,gasName:S,fee:A,nonce:T}}),useCoinStore=defineStore("coin",()=>{const u=useCoinAPIStore(),f=computed(()=>u.coinList?.map(_=>new Coin(_))),d=computed(()=>u.tokenList.map(_=>new Token(_)));return{coinList:f,tokenList:d}}),useLoadingsStore=defineStore("loading",()=>{const u=ref(!1),f=ref(!1),d=ref("receive.scan.loading");return{loading:u,localeLoading:f,openSpinner:()=>{u.value=!0},closeSpinner:()=>{d.value="receive.scan.loading",u.value=!1},loadingMsg:d,setLoadingMsg:E=>{d.value=E}}}),useNFTContractStore=defineStore("nftContract",()=>{const u=useNFTContractAPIStore(),f=computed(()=>u.contractList?.map(_=>new NftContract(_)));return{nftContractList:f,getNFTContract:_=>f.value?.find(x=>x.id===_)}});class NotRegisteredRouteError extends Error{constructor(f){super(`Not registered route: ${f}`),this.name="NotRegisteredRouteError"}}class PopupRouter{constructor(f){aM(this,"eventEmitter");aM(this,"history");aM(this,"currentRoute");aM(this,"currentRouteIndex");this.registeredRoutes=f,this.eventEmitter=new eventemitter2Exports,this.history=[],this.currentRouteIndex=-1}forward(f=1){this.go(f)}back(f=1){this.go(-f)}go(f){this.currentRouteIndex+=f,this.currentRouteIndex<0?this.currentRouteIndex=0:this.currentRouteIndex>=this.history.length&&(this.currentRouteIndex=this.history.length-1),this.currentRoute=this.history[this.currentRouteIndex],this.eventEmitter.emit("changeRoute",this.currentRoute)}push(f){const d=this.registeredRoutes.find(x=>x.name===f.name)?.component;if(!d)throw new NotRegisteredRouteError(f.name);this.currentRouteIndex++,f.props&&markRaw(f.props);const _={name:f.name,component:d,props:f.props,events:f.events};this.history.push(_),this.currentRoute=_,this.eventEmitter.emit("changeRoute",this.currentRoute)}close(){this.eventEmitter.emit("close"),this.history.length=0,this.currentRouteIndex=-1,this.currentRoute=void 0}}function getRandomInt(u){return Math.floor(Math.random()*Math.floor(u))}const usePopupStore=defineStore("popup",()=>{const u=ref({});return{popupRouterList:u,createPopupRouter:x=>{const I=new PopupRouter(x),E=getRandomInt(Number.MAX_SAFE_INTEGER);return u.value[E]=I,[E,I]},getPopupRouter:x=>u.value[x],reset:()=>{u.value={}}}}),useSettingsStore=defineStore("settings",()=>{const u=useStorage("accountLayout",{card:!0,list:!1,group:!1}),f=useStorage("assetToggle",{toggle:!1});return{accountLayout:u,assetToggle:f}}),useUserStore=defineStore("user",()=>{const u=ref([]),f=useUserAPIStore(),d=computed(()=>{if(f.userInfo)return new User(f.userInfo)}),_=E=>{const M=u.value.find(S=>S.type===E);return M?.status!==void 0?M.status:REFRESH_STATUS_DEFAULT},x=({type:E,status:M})=>{const S=u.value.find(A=>A.type===E);if(S&&M===REFRESH_STATUS_DISABLED&&setTimeout(()=>{S.status=REFRESH_STATUS_DEFAULT},consecusiveReqDelay),S)return S.status=M;u.value.push({type:E,status:M})},I=computed(()=>d.value?d.value.use2FA>=User2FAState.AUTHENTICATED:0);return{userInfo:d,getRefreshStatus:_,setRefresh:x,isSet2FA:I}}),useBackCountStore=defineStore("backCount",()=>{const u=ref(0),f=I=>{u.value+=I},d=()=>{u.value=0},_=computed(()=>u.value!==0);return{backCount:u,isPossibleBack:_,addBackCount:f,clearBackCount:d,reset:()=>{u.value=0}}}),useLocaleStore=defineStore("locale",()=>{const u=ref(),f=useCoinPriceAPIStore(),d=useWalletStore(),_=useInfoAPIStore(),x=useUserAPIStore(),{account:I}=useAccountQuery();async function E(){if(typeof u.value>"u"){const W=_.localeList?.find(Q=>Q.id===x.userInfo?.localeId);u.value={locale:S(W?.localeGroup),currency:_.currentCurrency,unit:T(_.currentCurrency)}}}async function M(W,Q){u.value&&(u.value={...u.value,locale:S(W),currency:A(Q),unit:T(Q)},f.coinPriceList=[],f.chart7d=[],await f.fetchCoinPrice({force:!0,coinGeckoIds:d.accountList.map(X=>X.coin?.coinGeckoId).filter(X=>X).concat(d.accountTokenList.map(X=>X.coin?.coinGeckoId).filter(X=>X)),currency:u.value.currency}),I.value&&await f.fetchChart7d({force:!0,coinGeckoId:I.value.coin?.coinGeckoId,currency:u.value?.currency}))}function S(W){switch(W){case"US":case"CA":case"GB":case"IE":case"AU":case"NZ":case"MX":case"IL":case"JP":case"TH":case"CN":case"HK":case"TW":return"en-US";case"AR":case"CL":case"CO":case"ES":case"DK":case"DE":case"GR":case"ID":case"IT":case"NL":case"BR":case"TR":return"es-ES";case"FI":case"BE":case"CH":case"FR":case"HU":case"CZ":case"AT":case"ZA":case"NO":case"PL":case"PT":case"RU":case"SK":case"SE":return"fi-FR";case"IN":case"LK":return"hi-IN";default:return"en-US"}}function A(W){switch(W){case"USD":case"EUR":case"RUB":case"IDR":case"KRW":case"CNY":case"TWD":case"JPY":return W.toLowerCase();default:return"usd"}}function T(W){switch(W){case"USD":return"$";case"EUR":return"€";case"RUB":return"₽";case"IDR":return"₹";case"KRW":return"₩";case"CNY":return"¥";case"TWD":return"$";case"JPY":return"¥";default:return"$"}}function D(W,Q){const X=u.value?.locale;let Y="";return Q?.roundingMode?Y=Q?.roundingMode:Y="floor",!W&&W!==0?"":W.toLocaleString(X,{...Q,roundingMode:Y})}function O(W){if(!u.value)return;typeof W=="string"&&(W=Number(W));const Q=new Intl.NumberFormat(u.value?.locale,{style:"currency",currency:u.value?.currency}).format(W),X=/[^\d.,]/g;return X.test(Q[0])?Q.slice(1).trim():X.test(Q[Q.length-1])?Q.slice(0,Q.length-1).trim():Q}function j(W){if(W<1e3)return W;if(W>=1e3&&W<1e6)return(W/1e3).toFixed(1)+"K";if(W>=1e6&&W<1e9)return(W/1e6).toFixed(1)+"M";if(W>=1e9&&W<1e12)return(W/1e9).toFixed(1)+"B";if(W>=1e12&&W<1e15)return(W/1e12).toFixed(1)+"T"}return{localeInfo:u,getLocaleInfo:E,applyDigitRule:D,applyLocaleCurrencyDigitRule:O,formatApplyContractionRule:j,setLocaleInfo:M,reset:()=>{u.value=void 0}}}),useGlobalState=createGlobalState(()=>useStorage(WEPIN_TOKEN,"")),usePinLockStore=defineStore("pinLock",()=>{const u=useWalletAPIStore(),f=ref([]),d=ref([]),_=ref([]),x=ref([]),I=ref([]),E=ref([]),M=ref([]);return{pinTryCountFetchList:M,setPinTryCountFetchList:Y=>{M.value?.indexOf(Y)===-1&&M.value?.push(Y)},getResetPinTryCount:async Y=>typeof Y>"u"||Y===null?0:await u.resetPinTryCount(Y),getKeyInfo:async Y=>typeof Y>"u"||Y===null?0:await u.fetchWalletCoreKeyInfo(Y),isPinLockList:f,isPinUnlockableList:d,isPinRemainTryCount:_,isPinRemainTime:x,isPinUnlockDate:I,isPinIntervalList:E,setLocked:(Y,ie)=>{const oe=f.value.find(ge=>ge.id===Y);if(oe)return oe.boolean=ie;f.value.push({id:Y,boolean:ie})},setUnlockable:(Y,ie)=>{const oe=d.value.find(ge=>ge.id===Y);if(oe)return oe.boolean=ie;d.value.push({id:Y,boolean:ie})},setRemainTryCount:(Y,ie)=>{const oe=_.value.find(ge=>ge.id===Y);if(oe)return oe.data=ie;_.value.push({id:Y,data:ie})},setRemainTime:(Y,ie)=>{const oe=x.value.find(ge=>ge.id===Y);if(oe)return oe.data=ie;x.value.push({id:Y,data:ie})},setUnlockDate:(Y,ie)=>{const oe=I.value.find(ge=>ge.id===Y);if(oe)return oe.data=ie;I.value.push({id:Y,data:ie})},setIntervalList:(Y,ie)=>{const oe=E.value.find(ge=>ge.id===Y);if(oe)return oe.data=ie;E.value.push({id:Y,data:ie})},reset:()=>{f.value=[],d.value=[],M.value=[],_.value=[]}}}),useNftPromotionStore=defineStore("nftPromotion",()=>{const u=useUserAPIStore(),f=ref(),d=ref(!1),_=ref({id:0,contentId:""}),x=ref();async function I(T,D){if(d.value&&!D)return f.value;const O=await WepinBackendAPI$1.getInstance().project.getAppPromotion(T,u.userInfo?.localeId);if(!O.appPromotion)throw new Error("Promotion is not exist");const j=new Date;if(new Date(O.appPromotion.startDate)>j)throw new Error("Promotion is not exist");const W=O.appPromotion.nftContractId.toString(),Q=await WepinBackendAPI$1.getInstance().nftcontract.getNFTContractWithoutSession({nftContractId:W});if(!Q.nftContract)throw new Error("NFT Contract is not exist");const X=await WepinBackendAPI$1.getInstance().coin.getCoinInfoListWithoutSession({ids:String(Q.nftContract.coinId)});if(!X.coins.length)throw new Error("Abnomal coin infomation");const Y={Promotion:O.appPromotion,Contract:Q.nftContract,Coin:X.coins[0]};return f.value=Y,d.value=!0,Y}function E(T){if(!f.value)throw new Error("Promotion is not exist");const D=f.value.Promotion,O=f.value.Contract,j=f.value.Coin;if(!D.appPromotionContent)throw new Error("AppPromotionContent is not exist");const $=D.appPromotionContent?.find(oe=>oe.id===T)||D.appPromotionContent?.find(oe=>oe.isDefault)||D.appPromotionContent[0],W=($?.detail).metadata,Q=($?.detail).thumbnail,X=$.contentType===dist$1.NFTTokenContentType.video&&Q,Y=W.image;let ie="";return W.addtionalUrl&&(ie=W.addtionalUrl[0]?.image),{imageUrl:Y,contractName:O.name,tokenName:W.name,networkName:j.name,contentType:$.contentType,iconUrl:j.iconUrl,desc:W.description,addtionalUrl:ie,thumbnail:Q,useThumbnail:X}}async function M(){const T=await WepinBackendAPI$1.getInstance().project.getReferralAppPromotionList();if(T)return x.value=T.events,T}async function S(T,D){const O=await WepinBackendAPI$1.getInstance().project.getAppPromotionMintContent(T,{email:D});if(O)return O}return{promotion:f,reset:()=>{f.value=void 0,_.value={id:0,contentId:""},x.value=[]},userPromotionSituation:x,fetchPromotionInfo:I,getContentsInfo:E,getReferralAppPromotionList:M,getAppPromotionMintContent:S}}),useToastStore=defineStore("toast",()=>{const u=ref(!1);return{isOpenToast:u,openToast:()=>{u.value=!0},closeToast:()=>{u.value=!1}}}),useAlertStore=defineStore("alert",()=>{const u=ref(!1);return{isOpenAlert:u,openAlert:()=>{u.value=!0},closeAlert:()=>{u.value=!1}}}),useMenuStore=defineStore("menu",()=>{const u=ref(""),f=_=>{_&&(u.value=_)},d=ref("");return{lastSelectedMenuLink:u,setMenuLink:f,dynamicTitle:d}}),useTempParamStore=defineStore("tempParam",()=>{const u=ref([]);return{setRecoveryCode:x=>{x&&(u.value=x)},clearRecoveryCode:()=>{u.value=[]},clearTempParams:()=>{u.value=[]},recoveryCode:u}});function useAccountQuery(){const u=useRouter(),f=useWalletStore();return{account:computed(()=>u.currentRoute.value.query.accountTokenId?f.getAccountToken({accountTokenId:u.currentRoute.value.query.accountTokenId}):u.currentRoute.value.query.accountId?f.getAccount({accountId:u.currentRoute.value.query.accountId}):void 0)}}function useKeyDown({confirm:u,close:f,once:d=!1}){const _=useLoadingsStore();function x(I){const E=I.keyCode||I.which;I.preventDefault(),E===13&&!_.loading?(u?.(),d&&window.removeEventListener("keyup",x)):E===27&&f?.()}useEventListener$1(window,"keyup",x)}function useConditionalFetch(u,f,d){const _=watch(f,async()=>{if(f.value){const x=await u();_(),d&&(d.value=x)}},{immediate:!0})}const useSetupStoreReset=()=>{useAccountAPIStore().reset(),useAccountBalanceAPIStore().reset(),useAccountTokenAPIStore().reset(),useCoinAPIStore().reset(),useCoinPriceAPIStore().reset(),useInfoAPIStore().reset(),useNFTAPIStore().reset(),useNFTContractAPIStore().reset(),useNoticeAPIStore().reset(),useProjectAPIStore().reset(),useTransactionAPIStore().reset(),useUserAPIStore().reset(),useWalletAPIStore().reset(),useBackCountStore().reset(),useLocaleStore().reset(),usePopupStore().reset(),useWalletStore().reset(),usePinLockStore().reset()};function useFetchHandlers(){const u=useWalletAPIStore(),f=useWalletStore(),d=useNFTAPIStore(),_=useNFTContractAPIStore(),x=useInfoAPIStore(),I=useUserAPIStore(),E=useLocaleStore(),M=useLoadingsStore(),{locale:S}=useI18nTypes(),A=async()=>{if(!PUBLIC_URL_REG_EXP.test(window.location.pathname)){if(isExpiredRefreshToken())return await I.logout(),router.push("/signin");if(await Promise.all([u.fetchWalletList(),I.getUserDetail()]),u.walletList.length===0){router.push({name:"signup_with_email_set_pin",query:{email:I.userInfo?.email}});return}try{await d.fetchSupportedNFTList()}catch(j){console.error("FETCH SUPPORTED NFT LIST ERROR:",j)}try{await x.fetchAllInfo(),await Promise.all([u.fetchAllWalletDetail(!0),E.getLocaleInfo()]),S.value=x.localeList?.find(j=>j.id===I.userInfo?.localeId)?.localeGroup}catch(j){console.error("LOGIN HANDLE ERROR:",j)}return""}},T=async()=>{I.isLoginUser()&&await Promise.all([u.fetchWalletList(),I.getUserDetail()])},D=async({force:j=!1,recursion:$=!1})=>{try{j&&await Promise.all(f.walletList.map(Q=>Q.fetchAccounts(j))),await Promise.all(f.walletList.map(Q=>d.fetchNFTList({walletId:Q.id,force:!0})));const W=f.nftList.map(Q=>Q.nftContractId);if(await _.fetchNFTContractList({ids:W,force:!0}),M.closeSpinner(),$)return;await d.refreshNFTList(f.accountList.map(Q=>Q.id)),D({force:!1,recursion:!0})}catch(W){console.error("NFT HANDLEWALLET ERROR:",W)}};return{loginSuccessHandler:A,publicUrlLoginSuccessHandler:T,nftFecthAllHandler:D,nftFecthHandler:async(j=!1)=>{const $=d.requestFetchHistory?.indexOf(f.selectedWalletId);if(!(!j&&$!==-1))try{const W=f.getWallet(f.selectedWalletId);if(!W)return;await d.refreshNFTList(W.accounts.map(Q=>Q.id)),await d.fetchNFTList({walletId:W.id,force:j}),await _.fetchNFTContractList({ids:f.nftList.map(Q=>Q.nftContractId),force:j})}catch(W){console.error("SELECT NFT HANDLEWALLET ERROR:",W)}}}}function useInput(){const u=ref(!1),f=ref(""),d=ref(!1);return{isError:u,inputValue:f,isNotNumber:d,onInputDefault:S=>{const A=S.target;f.value=A.value.trim()},onInputLabel:S=>{const A=S.target,T=!LABEL_REG_EXP.test(A.value)&&A.value.trim()!=="";u.value=T,f.value=A.value},onInputPin:S=>{const A=S.target;if(A.value.length===0)return u.value=!1;const T=!NUMBER_REG_EXP.test(A.value)&&A.value.trim()!=="",D=!PIN_REG_EXP.test(A.value);d.value=T,u.value=D,f.value=A.value},onInputCode:S=>{const A=S.target;A.value=A.value.slice(0,6);const T=!NUMBER_REG_EXP.test(A.value)&&A.value.trim()!=="",D=!CODE_REG_EXP.test(A.value);d.value=T,u.value=D,f.value=A.value},onInputEmail:S=>{const A=S.target,T=!EMAIL_VALID_REG_EXP.test(A.value)&&A.value.trim()!=="";u.value=T,f.value=A.value}}}function commonjsRequire(u){throw new Error('Could not dynamically require "'+u+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var bcrypt={exports:{}},cryptoBrowserify={},browser$b={exports:{}},hasRequiredBrowser$a;function requireBrowser$a(){if(hasRequiredBrowser$a)return browser$b.exports;hasRequiredBrowser$a=1;var u=65536,f=4294967295;function d(){throw new Error(`Secure random number generation is not supported by this browser.
Use Chrome, Firefox or Internet Explorer 11`)}var _=requireSafeBuffer().Buffer,x=commonjsGlobal$1.crypto||commonjsGlobal$1.msCrypto;x&&x.getRandomValues?browser$b.exports=I:browser$b.exports=d;function I(E,M){if(E>f)throw new RangeError("requested too many random bytes");var S=_.allocUnsafe(E);if(E>0)if(E>u)for(var A=0;A<E;A+=u)x.getRandomValues(S.slice(A,A+u));else x.getRandomValues(S);return typeof M=="function"?browserExports.nextTick(function(){M(null,S)}):S}return browser$b.exports}var hashBase,hasRequiredHashBase;function requireHashBase(){if(hasRequiredHashBase)return hashBase;hasRequiredHashBase=1;var u=requireSafeBuffer().Buffer,f=readableBrowserExports.Transform,d=inherits_browserExports;function _(I,E){if(!u.isBuffer(I)&&typeof I!="string")throw new TypeError(E+" must be a string or a buffer")}function x(I){f.call(this),this._block=u.allocUnsafe(I),this._blockSize=I,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}return d(x,f),x.prototype._transform=function(I,E,M){var S=null;try{this.update(I,E)}catch(A){S=A}M(S)},x.prototype._flush=function(I){var E=null;try{this.push(this.digest())}catch(M){E=M}I(E)},x.prototype.update=function(I,E){if(_(I,"Data"),this._finalized)throw new Error("Digest already called");u.isBuffer(I)||(I=u.from(I,E));for(var M=this._block,S=0;this._blockOffset+I.length-S>=this._blockSize;){for(var A=this._blockOffset;A<this._blockSize;)M[A++]=I[S++];this._update(),this._blockOffset=0}for(;S<I.length;)M[this._blockOffset++]=I[S++];for(var T=0,D=I.length*8;D>0;++T)this._length[T]+=D,D=this._length[T]/4294967296|0,D>0&&(this._length[T]-=4294967296*D);return this},x.prototype._update=function(){throw new Error("_update is not implemented")},x.prototype.digest=function(I){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var E=this._digest();I!==void 0&&(E=E.toString(I)),this._block.fill(0),this._blockOffset=0;for(var M=0;M<4;++M)this._length[M]=0;return E},x.prototype._digest=function(){throw new Error("_digest is not implemented")},hashBase=x,hashBase}var md5_js,hasRequiredMd5_js;function requireMd5_js(){if(hasRequiredMd5_js)return md5_js;hasRequiredMd5_js=1;var u=inherits_browserExports,f=requireHashBase(),d=requireSafeBuffer().Buffer,_=new Array(16);function x(){f.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}u(x,f),x.prototype._update=function(){for(var T=_,D=0;D<16;++D)T[D]=this._block.readInt32LE(D*4);var O=this._a,j=this._b,$=this._c,W=this._d;O=E(O,j,$,W,T[0],3614090360,7),W=E(W,O,j,$,T[1],3905402710,12),$=E($,W,O,j,T[2],606105819,17),j=E(j,$,W,O,T[3],3250441966,22),O=E(O,j,$,W,T[4],4118548399,7),W=E(W,O,j,$,T[5],1200080426,12),$=E($,W,O,j,T[6],2821735955,17),j=E(j,$,W,O,T[7],4249261313,22),O=E(O,j,$,W,T[8],1770035416,7),W=E(W,O,j,$,T[9],2336552879,12),$=E($,W,O,j,T[10],4294925233,17),j=E(j,$,W,O,T[11],2304563134,22),O=E(O,j,$,W,T[12],1804603682,7),W=E(W,O,j,$,T[13],4254626195,12),$=E($,W,O,j,T[14],2792965006,17),j=E(j,$,W,O,T[15],1236535329,22),O=M(O,j,$,W,T[1],4129170786,5),W=M(W,O,j,$,T[6],3225465664,9),$=M($,W,O,j,T[11],643717713,14),j=M(j,$,W,O,T[0],3921069994,20),O=M(O,j,$,W,T[5],3593408605,5),W=M(W,O,j,$,T[10],38016083,9),$=M($,W,O,j,T[15],3634488961,14),j=M(j,$,W,O,T[4],3889429448,20),O=M(O,j,$,W,T[9],568446438,5),W=M(W,O,j,$,T[14],3275163606,9),$=M($,W,O,j,T[3],4107603335,14),j=M(j,$,W,O,T[8],1163531501,20),O=M(O,j,$,W,T[13],2850285829,5),W=M(W,O,j,$,T[2],4243563512,9),$=M($,W,O,j,T[7],1735328473,14),j=M(j,$,W,O,T[12],2368359562,20),O=S(O,j,$,W,T[5],4294588738,4),W=S(W,O,j,$,T[8],2272392833,11),$=S($,W,O,j,T[11],1839030562,16),j=S(j,$,W,O,T[14],4259657740,23),O=S(O,j,$,W,T[1],2763975236,4),W=S(W,O,j,$,T[4],1272893353,11),$=S($,W,O,j,T[7],4139469664,16),j=S(j,$,W,O,T[10],3200236656,23),O=S(O,j,$,W,T[13],681279174,4),W=S(W,O,j,$,T[0],3936430074,11),$=S($,W,O,j,T[3],3572445317,16),j=S(j,$,W,O,T[6],76029189,23),O=S(O,j,$,W,T[9],3654602809,4),W=S(W,O,j,$,T[12],3873151461,11),$=S($,W,O,j,T[15],530742520,16),j=S(j,$,W,O,T[2],3299628645,23),O=A(O,j,$,W,T[0],4096336452,6),W=A(W,O,j,$,T[7],1126891415,10),$=A($,W,O,j,T[14],2878612391,15),j=A(j,$,W,O,T[5],4237533241,21),O=A(O,j,$,W,T[12],1700485571,6),W=A(W,O,j,$,T[3],2399980690,10),$=A($,W,O,j,T[10],4293915773,15),j=A(j,$,W,O,T[1],2240044497,21),O=A(O,j,$,W,T[8],1873313359,6),W=A(W,O,j,$,T[15],4264355552,10),$=A($,W,O,j,T[6],2734768916,15),j=A(j,$,W,O,T[13],1309151649,21),O=A(O,j,$,W,T[4],4149444226,6),W=A(W,O,j,$,T[11],3174756917,10),$=A($,W,O,j,T[2],718787259,15),j=A(j,$,W,O,T[9],3951481745,21),this._a=this._a+O|0,this._b=this._b+j|0,this._c=this._c+$|0,this._d=this._d+W|0},x.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var T=d.allocUnsafe(16);return T.writeInt32LE(this._a,0),T.writeInt32LE(this._b,4),T.writeInt32LE(this._c,8),T.writeInt32LE(this._d,12),T};function I(T,D){return T<<D|T>>>32-D}function E(T,D,O,j,$,W,Q){return I(T+(D&O|~D&j)+$+W|0,Q)+D|0}function M(T,D,O,j,$,W,Q){return I(T+(D&j|O&~j)+$+W|0,Q)+D|0}function S(T,D,O,j,$,W,Q){return I(T+(D^O^j)+$+W|0,Q)+D|0}function A(T,D,O,j,$,W,Q){return I(T+(O^(D|~j))+$+W|0,Q)+D|0}return md5_js=x,md5_js}var ripemd160,hasRequiredRipemd160;function requireRipemd160(){if(hasRequiredRipemd160)return ripemd160;hasRequiredRipemd160=1;var u=buffer$2.Buffer,f=inherits_browserExports,d=requireHashBase(),_=new Array(16),x=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],I=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],E=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],M=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],S=[0,1518500249,1859775393,2400959708,2840853838],A=[1352829926,1548603684,1836072691,2053994217,0];function T(){d.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}f(T,d),T.prototype._update=function(){for(var X=_,Y=0;Y<16;++Y)X[Y]=this._block.readInt32LE(Y*4);for(var ie=this._a|0,oe=this._b|0,ge=this._c|0,be=this._d|0,ze=this._e|0,de=this._a|0,Ce=this._b|0,ke=this._c|0,le=this._d|0,re=this._e|0,P=0;P<80;P+=1){var k,B;P<16?(k=O(ie,oe,ge,be,ze,X[x[P]],S[0],E[P]),B=Q(de,Ce,ke,le,re,X[I[P]],A[0],M[P])):P<32?(k=j(ie,oe,ge,be,ze,X[x[P]],S[1],E[P]),B=W(de,Ce,ke,le,re,X[I[P]],A[1],M[P])):P<48?(k=$(ie,oe,ge,be,ze,X[x[P]],S[2],E[P]),B=$(de,Ce,ke,le,re,X[I[P]],A[2],M[P])):P<64?(k=W(ie,oe,ge,be,ze,X[x[P]],S[3],E[P]),B=j(de,Ce,ke,le,re,X[I[P]],A[3],M[P])):(k=Q(ie,oe,ge,be,ze,X[x[P]],S[4],E[P]),B=O(de,Ce,ke,le,re,X[I[P]],A[4],M[P])),ie=ze,ze=be,be=D(ge,10),ge=oe,oe=k,de=re,re=le,le=D(ke,10),ke=Ce,Ce=B}var z=this._b+ge+le|0;this._b=this._c+be+re|0,this._c=this._d+ze+de|0,this._d=this._e+ie+Ce|0,this._e=this._a+oe+ke|0,this._a=z},T.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var X=u.alloc?u.alloc(20):new u(20);return X.writeInt32LE(this._a,0),X.writeInt32LE(this._b,4),X.writeInt32LE(this._c,8),X.writeInt32LE(this._d,12),X.writeInt32LE(this._e,16),X};function D(X,Y){return X<<Y|X>>>32-Y}function O(X,Y,ie,oe,ge,be,ze,de){return D(X+(Y^ie^oe)+be+ze|0,de)+ge|0}function j(X,Y,ie,oe,ge,be,ze,de){return D(X+(Y&ie|~Y&oe)+be+ze|0,de)+ge|0}function $(X,Y,ie,oe,ge,be,ze,de){return D(X+((Y|~ie)^oe)+be+ze|0,de)+ge|0}function W(X,Y,ie,oe,ge,be,ze,de){return D(X+(Y&oe|ie&~oe)+be+ze|0,de)+ge|0}function Q(X,Y,ie,oe,ge,be,ze,de){return D(X+(Y^(ie|~oe))+be+ze|0,de)+ge|0}return ripemd160=T,ripemd160}var sha_js={exports:{}},hash$1,hasRequiredHash$1;function requireHash$1(){if(hasRequiredHash$1)return hash$1;hasRequiredHash$1=1;var u=requireSafeBuffer().Buffer;function f(d,_){this._block=u.alloc(d),this._finalSize=_,this._blockSize=d,this._len=0}return f.prototype.update=function(d,_){typeof d=="string"&&(_=_||"utf8",d=u.from(d,_));for(var x=this._block,I=this._blockSize,E=d.length,M=this._len,S=0;S<E;){for(var A=M%I,T=Math.min(E-S,I-A),D=0;D<T;D++)x[A+D]=d[S+D];M+=T,S+=T,M%I===0&&this._update(x)}return this._len+=E,this},f.prototype.digest=function(d){var _=this._len%this._blockSize;this._block[_]=128,this._block.fill(0,_+1),_>=this._finalSize&&(this._update(this._block),this._block.fill(0));var x=this._len*8;if(x<=4294967295)this._block.writeUInt32BE(x,this._blockSize-4);else{var I=(x&4294967295)>>>0,E=(x-I)/4294967296;this._block.writeUInt32BE(E,this._blockSize-8),this._block.writeUInt32BE(I,this._blockSize-4)}this._update(this._block);var M=this._hash();return d?M.toString(d):M},f.prototype._update=function(){throw new Error("_update must be implemented by subclass")},hash$1=f,hash$1}var sha$1,hasRequiredSha$1;function requireSha$1(){if(hasRequiredSha$1)return sha$1;hasRequiredSha$1=1;var u=inherits_browserExports,f=requireHash$1(),d=requireSafeBuffer().Buffer,_=[1518500249,1859775393,-1894007588,-899497514],x=new Array(80);function I(){this.init(),this._w=x,f.call(this,64,56)}u(I,f),I.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function E(A){return A<<5|A>>>27}function M(A){return A<<30|A>>>2}function S(A,T,D,O){return A===0?T&D|~T&O:A===2?T&D|T&O|D&O:T^D^O}return I.prototype._update=function(A){for(var T=this._w,D=this._a|0,O=this._b|0,j=this._c|0,$=this._d|0,W=this._e|0,Q=0;Q<16;++Q)T[Q]=A.readInt32BE(Q*4);for(;Q<80;++Q)T[Q]=T[Q-3]^T[Q-8]^T[Q-14]^T[Q-16];for(var X=0;X<80;++X){var Y=~~(X/20),ie=E(D)+S(Y,O,j,$)+W+T[X]+_[Y]|0;W=$,$=j,j=M(O),O=D,D=ie}this._a=D+this._a|0,this._b=O+this._b|0,this._c=j+this._c|0,this._d=$+this._d|0,this._e=W+this._e|0},I.prototype._hash=function(){var A=d.allocUnsafe(20);return A.writeInt32BE(this._a|0,0),A.writeInt32BE(this._b|0,4),A.writeInt32BE(this._c|0,8),A.writeInt32BE(this._d|0,12),A.writeInt32BE(this._e|0,16),A},sha$1=I,sha$1}var sha1,hasRequiredSha1;function requireSha1(){if(hasRequiredSha1)return sha1;hasRequiredSha1=1;var u=inherits_browserExports,f=requireHash$1(),d=requireSafeBuffer().Buffer,_=[1518500249,1859775393,-1894007588,-899497514],x=new Array(80);function I(){this.init(),this._w=x,f.call(this,64,56)}u(I,f),I.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function E(T){return T<<1|T>>>31}function M(T){return T<<5|T>>>27}function S(T){return T<<30|T>>>2}function A(T,D,O,j){return T===0?D&O|~D&j:T===2?D&O|D&j|O&j:D^O^j}return I.prototype._update=function(T){for(var D=this._w,O=this._a|0,j=this._b|0,$=this._c|0,W=this._d|0,Q=this._e|0,X=0;X<16;++X)D[X]=T.readInt32BE(X*4);for(;X<80;++X)D[X]=E(D[X-3]^D[X-8]^D[X-14]^D[X-16]);for(var Y=0;Y<80;++Y){var ie=~~(Y/20),oe=M(O)+A(ie,j,$,W)+Q+D[Y]+_[ie]|0;Q=W,W=$,$=S(j),j=O,O=oe}this._a=O+this._a|0,this._b=j+this._b|0,this._c=$+this._c|0,this._d=W+this._d|0,this._e=Q+this._e|0},I.prototype._hash=function(){var T=d.allocUnsafe(20);return T.writeInt32BE(this._a|0,0),T.writeInt32BE(this._b|0,4),T.writeInt32BE(this._c|0,8),T.writeInt32BE(this._d|0,12),T.writeInt32BE(this._e|0,16),T},sha1=I,sha1}var sha256$1,hasRequiredSha256;function requireSha256(){if(hasRequiredSha256)return sha256$1;hasRequiredSha256=1;var u=inherits_browserExports,f=requireHash$1(),d=requireSafeBuffer().Buffer,_=[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],x=new Array(64);function I(){this.init(),this._w=x,f.call(this,64,56)}u(I,f),I.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this};function E(O,j,$){return $^O&(j^$)}function M(O,j,$){return O&j|$&(O|j)}function S(O){return(O>>>2|O<<30)^(O>>>13|O<<19)^(O>>>22|O<<10)}function A(O){return(O>>>6|O<<26)^(O>>>11|O<<21)^(O>>>25|O<<7)}function T(O){return(O>>>7|O<<25)^(O>>>18|O<<14)^O>>>3}function D(O){return(O>>>17|O<<15)^(O>>>19|O<<13)^O>>>10}return I.prototype._update=function(O){for(var j=this._w,$=this._a|0,W=this._b|0,Q=this._c|0,X=this._d|0,Y=this._e|0,ie=this._f|0,oe=this._g|0,ge=this._h|0,be=0;be<16;++be)j[be]=O.readInt32BE(be*4);for(;be<64;++be)j[be]=D(j[be-2])+j[be-7]+T(j[be-15])+j[be-16]|0;for(var ze=0;ze<64;++ze){var de=ge+A(Y)+E(Y,ie,oe)+_[ze]+j[ze]|0,Ce=S($)+M($,W,Q)|0;ge=oe,oe=ie,ie=Y,Y=X+de|0,X=Q,Q=W,W=$,$=de+Ce|0}this._a=$+this._a|0,this._b=W+this._b|0,this._c=Q+this._c|0,this._d=X+this._d|0,this._e=Y+this._e|0,this._f=ie+this._f|0,this._g=oe+this._g|0,this._h=ge+this._h|0},I.prototype._hash=function(){var O=d.allocUnsafe(32);return O.writeInt32BE(this._a,0),O.writeInt32BE(this._b,4),O.writeInt32BE(this._c,8),O.writeInt32BE(this._d,12),O.writeInt32BE(this._e,16),O.writeInt32BE(this._f,20),O.writeInt32BE(this._g,24),O.writeInt32BE(this._h,28),O},sha256$1=I,sha256$1}var sha224$1,hasRequiredSha224;function requireSha224(){if(hasRequiredSha224)return sha224$1;hasRequiredSha224=1;var u=inherits_browserExports,f=requireSha256(),d=requireHash$1(),_=requireSafeBuffer().Buffer,x=new Array(64);function I(){this.init(),this._w=x,d.call(this,64,56)}return u(I,f),I.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},I.prototype._hash=function(){var E=_.allocUnsafe(28);return E.writeInt32BE(this._a,0),E.writeInt32BE(this._b,4),E.writeInt32BE(this._c,8),E.writeInt32BE(this._d,12),E.writeInt32BE(this._e,16),E.writeInt32BE(this._f,20),E.writeInt32BE(this._g,24),E},sha224$1=I,sha224$1}var sha512$1,hasRequiredSha512;function requireSha512(){if(hasRequiredSha512)return sha512$1;hasRequiredSha512=1;var u=inherits_browserExports,f=requireHash$1(),d=requireSafeBuffer().Buffer,_=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],x=new Array(160);function I(){this.init(),this._w=x,f.call(this,128,112)}u(I,f),I.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this};function E(W,Q,X){return X^W&(Q^X)}function M(W,Q,X){return W&Q|X&(W|Q)}function S(W,Q){return(W>>>28|Q<<4)^(Q>>>2|W<<30)^(Q>>>7|W<<25)}function A(W,Q){return(W>>>14|Q<<18)^(W>>>18|Q<<14)^(Q>>>9|W<<23)}function T(W,Q){return(W>>>1|Q<<31)^(W>>>8|Q<<24)^W>>>7}function D(W,Q){return(W>>>1|Q<<31)^(W>>>8|Q<<24)^(W>>>7|Q<<25)}function O(W,Q){return(W>>>19|Q<<13)^(Q>>>29|W<<3)^W>>>6}function j(W,Q){return(W>>>19|Q<<13)^(Q>>>29|W<<3)^(W>>>6|Q<<26)}function $(W,Q){return W>>>0<Q>>>0?1:0}return I.prototype._update=function(W){for(var Q=this._w,X=this._ah|0,Y=this._bh|0,ie=this._ch|0,oe=this._dh|0,ge=this._eh|0,be=this._fh|0,ze=this._gh|0,de=this._hh|0,Ce=this._al|0,ke=this._bl|0,le=this._cl|0,re=this._dl|0,P=this._el|0,k=this._fl|0,B=this._gl|0,z=this._hl|0,ee=0;ee<32;ee+=2)Q[ee]=W.readInt32BE(ee*4),Q[ee+1]=W.readInt32BE(ee*4+4);for(;ee<160;ee+=2){var H=Q[ee-30],q=Q[ee-15*2+1],J=T(H,q),U=D(q,H);H=Q[ee-2*2],q=Q[ee-2*2+1];var Z=O(H,q),ve=j(q,H),Ye=Q[ee-7*2],rt=Q[ee-7*2+1],Ue=Q[ee-16*2],Qe=Q[ee-16*2+1],vt=U+rt|0,ri=J+Ye+$(vt,U)|0;vt=vt+ve|0,ri=ri+Z+$(vt,ve)|0,vt=vt+Qe|0,ri=ri+Ue+$(vt,Qe)|0,Q[ee]=ri,Q[ee+1]=vt}for(var ci=0;ci<160;ci+=2){ri=Q[ci],vt=Q[ci+1];var tt=M(X,Y,ie),et=M(Ce,ke,le),$e=S(X,Ce),Le=S(Ce,X),ot=A(ge,P),Oe=A(P,ge),Ne=_[ci],Fe=_[ci+1],Je=E(ge,be,ze),Dt=E(P,k,B),oi=z+Oe|0,Bt=de+ot+$(oi,z)|0;oi=oi+Dt|0,Bt=Bt+Je+$(oi,Dt)|0,oi=oi+Fe|0,Bt=Bt+Ne+$(oi,Fe)|0,oi=oi+vt|0,Bt=Bt+ri+$(oi,vt)|0;var li=Le+et|0,ii=$e+tt+$(li,Le)|0;de=ze,z=B,ze=be,B=k,be=ge,k=P,P=re+oi|0,ge=oe+Bt+$(P,re)|0,oe=ie,re=le,ie=Y,le=ke,Y=X,ke=Ce,Ce=oi+li|0,X=Bt+ii+$(Ce,oi)|0}this._al=this._al+Ce|0,this._bl=this._bl+ke|0,this._cl=this._cl+le|0,this._dl=this._dl+re|0,this._el=this._el+P|0,this._fl=this._fl+k|0,this._gl=this._gl+B|0,this._hl=this._hl+z|0,this._ah=this._ah+X+$(this._al,Ce)|0,this._bh=this._bh+Y+$(this._bl,ke)|0,this._ch=this._ch+ie+$(this._cl,le)|0,this._dh=this._dh+oe+$(this._dl,re)|0,this._eh=this._eh+ge+$(this._el,P)|0,this._fh=this._fh+be+$(this._fl,k)|0,this._gh=this._gh+ze+$(this._gl,B)|0,this._hh=this._hh+de+$(this._hl,z)|0},I.prototype._hash=function(){var W=d.allocUnsafe(64);function Q(X,Y,ie){W.writeInt32BE(X,ie),W.writeInt32BE(Y,ie+4)}return Q(this._ah,this._al,0),Q(this._bh,this._bl,8),Q(this._ch,this._cl,16),Q(this._dh,this._dl,24),Q(this._eh,this._el,32),Q(this._fh,this._fl,40),Q(this._gh,this._gl,48),Q(this._hh,this._hl,56),W},sha512$1=I,sha512$1}var sha384$1,hasRequiredSha384;function requireSha384(){if(hasRequiredSha384)return sha384$1;hasRequiredSha384=1;var u=inherits_browserExports,f=requireSha512(),d=requireHash$1(),_=requireSafeBuffer().Buffer,x=new Array(160);function I(){this.init(),this._w=x,d.call(this,128,112)}return u(I,f),I.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},I.prototype._hash=function(){var E=_.allocUnsafe(48);function M(S,A,T){E.writeInt32BE(S,T),E.writeInt32BE(A,T+4)}return M(this._ah,this._al,0),M(this._bh,this._bl,8),M(this._ch,this._cl,16),M(this._dh,this._dl,24),M(this._eh,this._el,32),M(this._fh,this._fl,40),E},sha384$1=I,sha384$1}var hasRequiredSha_js;function requireSha_js(){if(hasRequiredSha_js)return sha_js.exports;hasRequiredSha_js=1;var u=sha_js.exports=function(d){d=d.toLowerCase();var _=u[d];if(!_)throw new Error(d+" is not supported (we accept pull requests)");return new _};return u.sha=requireSha$1(),u.sha1=requireSha1(),u.sha224=requireSha224(),u.sha256=requireSha256(),u.sha384=requireSha384(),u.sha512=requireSha512(),sha_js.exports}var streamBrowserify,hasRequiredStreamBrowserify;function requireStreamBrowserify(){if(hasRequiredStreamBrowserify)return streamBrowserify;hasRequiredStreamBrowserify=1,streamBrowserify=d;var u=eventsExports.EventEmitter,f=inherits_browserExports;f(d,u),d.Readable=require_stream_readable(),d.Writable=require_stream_writable(),d.Duplex=require_stream_duplex(),d.Transform=_stream_transform,d.PassThrough=_stream_passthrough,d.finished=endOfStream,d.pipeline=pipeline_1,d.Stream=d;function d(){u.call(this)}return d.prototype.pipe=function(_,x){var I=this;function E(j){_.writable&&_.write(j)===!1&&I.pause&&I.pause()}I.on("data",E);function M(){I.readable&&I.resume&&I.resume()}_.on("drain",M),!_._isStdio&&(!x||x.end!==!1)&&(I.on("end",A),I.on("close",T));var S=!1;function A(){S||(S=!0,_.end())}function T(){S||(S=!0,typeof _.destroy=="function"&&_.destroy())}function D(j){if(O(),u.listenerCount(this,"error")===0)throw j}I.on("error",D),_.on("error",D);function O(){I.removeListener("data",E),_.removeListener("drain",M),I.removeListener("end",A),I.removeListener("close",T),I.removeListener("error",D),_.removeListener("error",D),I.removeListener("end",O),I.removeListener("close",O),_.removeListener("close",O)}return I.on("end",O),I.on("close",O),_.on("close",O),_.emit("pipe",I),_},streamBrowserify}var cipherBase,hasRequiredCipherBase;function requireCipherBase(){if(hasRequiredCipherBase)return cipherBase;hasRequiredCipherBase=1;var u=requireSafeBuffer().Buffer,f=requireStreamBrowserify().Transform,d=requireString_decoder().StringDecoder,_=inherits_browserExports;function x(I){f.call(this),this.hashMode=typeof I=="string",this.hashMode?this[I]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}return _(x,f),x.prototype.update=function(I,E,M){typeof I=="string"&&(I=u.from(I,E));var S=this._update(I);return this.hashMode?this:(M&&(S=this._toString(S,M)),S)},x.prototype.setAutoPadding=function(){},x.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},x.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},x.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},x.prototype._transform=function(I,E,M){var S;try{this.hashMode?this._update(I):this.push(this._update(I))}catch(A){S=A}finally{M(S)}},x.prototype._flush=function(I){var E;try{this.push(this.__final())}catch(M){E=M}I(E)},x.prototype._finalOrDigest=function(I){var E=this.__final()||u.alloc(0);return I&&(E=this._toString(E,I,!0)),E},x.prototype._toString=function(I,E,M){if(this._decoder||(this._decoder=new d(E),this._encoding=E),this._encoding!==E)throw new Error("can't switch encodings");var S=this._decoder.write(I);return M&&(S+=this._decoder.end()),S},cipherBase=x,cipherBase}var browser$a,hasRequiredBrowser$9;function requireBrowser$9(){if(hasRequiredBrowser$9)return browser$a;hasRequiredBrowser$9=1;var u=inherits_browserExports,f=requireMd5_js(),d=requireRipemd160(),_=requireSha_js(),x=requireCipherBase();function I(E){x.call(this,"digest"),this._hash=E}return u(I,x),I.prototype._update=function(E){this._hash.update(E)},I.prototype._final=function(){return this._hash.digest()},browser$a=function(M){return M=M.toLowerCase(),M==="md5"?new f:M==="rmd160"||M==="ripemd160"?new d:new I(_(M))},browser$a}var legacy,hasRequiredLegacy;function requireLegacy(){if(hasRequiredLegacy)return legacy;hasRequiredLegacy=1;var u=inherits_browserExports,f=requireSafeBuffer().Buffer,d=requireCipherBase(),_=f.alloc(128),x=64;function I(E,M){d.call(this,"digest"),typeof M=="string"&&(M=f.from(M)),this._alg=E,this._key=M,M.length>x?M=E(M):M.length<x&&(M=f.concat([M,_],x));for(var S=this._ipad=f.allocUnsafe(x),A=this._opad=f.allocUnsafe(x),T=0;T<x;T++)S[T]=M[T]^54,A[T]=M[T]^92;this._hash=[S]}return u(I,d),I.prototype._update=function(E){this._hash.push(E)},I.prototype._final=function(){var E=this._alg(f.concat(this._hash));return this._alg(f.concat([this._opad,E]))},legacy=I,legacy}var md5,hasRequiredMd5;function requireMd5(){if(hasRequiredMd5)return md5;hasRequiredMd5=1;var u=requireMd5_js();return md5=function(f){return new u().update(f).digest()},md5}var browser$9,hasRequiredBrowser$8;function requireBrowser$8(){if(hasRequiredBrowser$8)return browser$9;hasRequiredBrowser$8=1;var u=inherits_browserExports,f=requireLegacy(),d=requireCipherBase(),_=requireSafeBuffer().Buffer,x=requireMd5(),I=requireRipemd160(),E=requireSha_js(),M=_.alloc(128);function S(A,T){d.call(this,"digest"),typeof T=="string"&&(T=_.from(T));var D=A==="sha512"||A==="sha384"?128:64;if(this._alg=A,this._key=T,T.length>D){var O=A==="rmd160"?new I:E(A);T=O.update(T).digest()}else T.length<D&&(T=_.concat([T,M],D));for(var j=this._ipad=_.allocUnsafe(D),$=this._opad=_.allocUnsafe(D),W=0;W<D;W++)j[W]=T[W]^54,$[W]=T[W]^92;this._hash=A==="rmd160"?new I:E(A),this._hash.update(j)}return u(S,d),S.prototype._update=function(A){this._hash.update(A)},S.prototype._final=function(){var A=this._hash.digest(),T=this._alg==="rmd160"?new I:E(this._alg);return T.update(this._opad).update(A).digest()},browser$9=function(T,D){return T=T.toLowerCase(),T==="rmd160"||T==="ripemd160"?new S("rmd160",D):T==="md5"?new f(x,D):new S(T,D)},browser$9}const sha224WithRSAEncryption={sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption={sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption={sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption={sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},sha256={sign:"ecdsa",hash:"sha256",id:""},sha224={sign:"ecdsa",hash:"sha224",id:""},sha384={sign:"ecdsa",hash:"sha384",id:""},sha512={sign:"ecdsa",hash:"sha512",id:""},DSA={sign:"dsa",hash:"sha1",id:""},ripemd160WithRSA={sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption={sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},require$$6={sha224WithRSAEncryption,"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption,"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption,"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption,"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256,sha224,sha384,sha512,"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA,"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA,"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption,"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}};var algos,hasRequiredAlgos;function requireAlgos(){return hasRequiredAlgos||(hasRequiredAlgos=1,algos=require$$6),algos}var browser$8={},precondition,hasRequiredPrecondition;function requirePrecondition(){if(hasRequiredPrecondition)return precondition;hasRequiredPrecondition=1;var u=Math.pow(2,30)-1;return precondition=function(f,d){if(typeof f!="number")throw new TypeError("Iterations not a number");if(f<0)throw new TypeError("Bad iterations");if(typeof d!="number")throw new TypeError("Key length not a number");if(d<0||d>u||d!==d)throw new TypeError("Bad key length")},precondition}var defaultEncoding_1,hasRequiredDefaultEncoding;function requireDefaultEncoding(){if(hasRequiredDefaultEncoding)return defaultEncoding_1;hasRequiredDefaultEncoding=1;var u;if(commonjsGlobal$1.process&&commonjsGlobal$1.process.browser)u="utf-8";else if(commonjsGlobal$1.process&&commonjsGlobal$1.process.version){var f=parseInt(browserExports.version.split(".")[0].slice(1),10);u=f>=6?"utf-8":"binary"}else u="utf-8";return defaultEncoding_1=u,defaultEncoding_1}var toBuffer,hasRequiredToBuffer;function requireToBuffer(){if(hasRequiredToBuffer)return toBuffer;hasRequiredToBuffer=1;var u=requireSafeBuffer().Buffer;return toBuffer=function(f,d,_){if(u.isBuffer(f))return f;if(typeof f=="string")return u.from(f,d);if(ArrayBuffer.isView(f))return u.from(f.buffer);throw new TypeError(_+" must be a string, a Buffer, a typed array or a DataView")},toBuffer}var syncBrowser,hasRequiredSyncBrowser;function requireSyncBrowser(){if(hasRequiredSyncBrowser)return syncBrowser;hasRequiredSyncBrowser=1;var u=requireMd5(),f=requireRipemd160(),d=requireSha_js(),_=requireSafeBuffer().Buffer,x=requirePrecondition(),I=requireDefaultEncoding(),E=requireToBuffer(),M=_.alloc(128),S={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function A(O,j,$){var W=T(O),Q=O==="sha512"||O==="sha384"?128:64;j.length>Q?j=W(j):j.length<Q&&(j=_.concat([j,M],Q));for(var X=_.allocUnsafe(Q+S[O]),Y=_.allocUnsafe(Q+S[O]),ie=0;ie<Q;ie++)X[ie]=j[ie]^54,Y[ie]=j[ie]^92;var oe=_.allocUnsafe(Q+$+4);X.copy(oe,0,0,Q),this.ipad1=oe,this.ipad2=X,this.opad=Y,this.alg=O,this.blocksize=Q,this.hash=W,this.size=S[O]}A.prototype.run=function(O,j){O.copy(j,this.blocksize);var $=this.hash(j);return $.copy(this.opad,this.blocksize),this.hash(this.opad)};function T(O){function j(W){return d(O).update(W).digest()}function $(W){return new f().update(W).digest()}return O==="rmd160"||O==="ripemd160"?$:O==="md5"?u:j}function D(O,j,$,W,Q){x($,W),O=E(O,I,"Password"),j=E(j,I,"Salt"),Q=Q||"sha1";var X=new A(Q,O,j.length),Y=_.allocUnsafe(W),ie=_.allocUnsafe(j.length+4);j.copy(ie,0,0,j.length);for(var oe=0,ge=S[Q],be=Math.ceil(W/ge),ze=1;ze<=be;ze++){ie.writeUInt32BE(ze,j.length);for(var de=X.run(ie,X.ipad1),Ce=de,ke=1;ke<$;ke++){Ce=X.run(Ce,X.ipad2);for(var le=0;le<ge;le++)de[le]^=Ce[le]}de.copy(Y,oe),oe+=ge}return Y}return syncBrowser=D,syncBrowser}var async,hasRequiredAsync;function requireAsync(){if(hasRequiredAsync)return async;hasRequiredAsync=1;var u=requireSafeBuffer().Buffer,f=requirePrecondition(),d=requireDefaultEncoding(),_=requireSyncBrowser(),x=requireToBuffer(),I,E=commonjsGlobal$1.crypto&&commonjsGlobal$1.crypto.subtle,M={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},S=[];function A($){if(commonjsGlobal$1.process&&!commonjsGlobal$1.process.browser||!E||!E.importKey||!E.deriveBits)return Promise.resolve(!1);if(S[$]!==void 0)return S[$];I=I||u.alloc(8);var W=O(I,I,10,128,$).then(function(){return!0}).catch(function(){return!1});return S[$]=W,W}var T;function D(){return T||(commonjsGlobal$1.process&&commonjsGlobal$1.process.nextTick?T=commonjsGlobal$1.process.nextTick:commonjsGlobal$1.queueMicrotask?T=commonjsGlobal$1.queueMicrotask:commonjsGlobal$1.setImmediate?T=commonjsGlobal$1.setImmediate:T=commonjsGlobal$1.setTimeout,T)}function O($,W,Q,X,Y){return E.importKey("raw",$,{name:"PBKDF2"},!1,["deriveBits"]).then(function(ie){return E.deriveBits({name:"PBKDF2",salt:W,iterations:Q,hash:{name:Y}},ie,X<<3)}).then(function(ie){return u.from(ie)})}function j($,W){$.then(function(Q){D()(function(){W(null,Q)})},function(Q){D()(function(){W(Q)})})}return async=function($,W,Q,X,Y,ie){typeof Y=="function"&&(ie=Y,Y=void 0),Y=Y||"sha1";var oe=M[Y.toLowerCase()];if(!oe||typeof commonjsGlobal$1.Promise!="function"){D()(function(){var ge;try{ge=_($,W,Q,X,Y)}catch(be){return ie(be)}ie(null,ge)});return}if(f(Q,X),$=x($,d,"Password"),W=x(W,d,"Salt"),typeof ie!="function")throw new Error("No callback provided to pbkdf2");j(A(oe).then(function(ge){return ge?O($,W,Q,X,oe):_($,W,Q,X,Y)}),ie)},async}var hasRequiredBrowser$7;function requireBrowser$7(){return hasRequiredBrowser$7||(hasRequiredBrowser$7=1,browser$8.pbkdf2=requireAsync(),browser$8.pbkdf2Sync=requireSyncBrowser()),browser$8}var browser$7={},des$1={},utils$3={},hasRequiredUtils$3;function requireUtils$3(){if(hasRequiredUtils$3)return utils$3;hasRequiredUtils$3=1,utils$3.readUInt32BE=function(x,I){var E=x[0+I]<<24|x[1+I]<<16|x[2+I]<<8|x[3+I];return E>>>0},utils$3.writeUInt32BE=function(x,I,E){x[0+E]=I>>>24,x[1+E]=I>>>16&255,x[2+E]=I>>>8&255,x[3+E]=I&255},utils$3.ip=function(x,I,E,M){for(var S=0,A=0,T=6;T>=0;T-=2){for(var D=0;D<=24;D+=8)S<<=1,S|=I>>>D+T&1;for(var D=0;D<=24;D+=8)S<<=1,S|=x>>>D+T&1}for(var T=6;T>=0;T-=2){for(var D=1;D<=25;D+=8)A<<=1,A|=I>>>D+T&1;for(var D=1;D<=25;D+=8)A<<=1,A|=x>>>D+T&1}E[M+0]=S>>>0,E[M+1]=A>>>0},utils$3.rip=function(x,I,E,M){for(var S=0,A=0,T=0;T<4;T++)for(var D=24;D>=0;D-=8)S<<=1,S|=I>>>D+T&1,S<<=1,S|=x>>>D+T&1;for(var T=4;T<8;T++)for(var D=24;D>=0;D-=8)A<<=1,A|=I>>>D+T&1,A<<=1,A|=x>>>D+T&1;E[M+0]=S>>>0,E[M+1]=A>>>0},utils$3.pc1=function(x,I,E,M){for(var S=0,A=0,T=7;T>=5;T--){for(var D=0;D<=24;D+=8)S<<=1,S|=I>>D+T&1;for(var D=0;D<=24;D+=8)S<<=1,S|=x>>D+T&1}for(var D=0;D<=24;D+=8)S<<=1,S|=I>>D+T&1;for(var T=1;T<=3;T++){for(var D=0;D<=24;D+=8)A<<=1,A|=I>>D+T&1;for(var D=0;D<=24;D+=8)A<<=1,A|=x>>D+T&1}for(var D=0;D<=24;D+=8)A<<=1,A|=x>>D+T&1;E[M+0]=S>>>0,E[M+1]=A>>>0},utils$3.r28shl=function(x,I){return x<<I&268435455|x>>>28-I};var u=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];utils$3.pc2=function(x,I,E,M){for(var S=0,A=0,T=u.length>>>1,D=0;D<T;D++)S<<=1,S|=x>>>u[D]&1;for(var D=T;D<u.length;D++)A<<=1,A|=I>>>u[D]&1;E[M+0]=S>>>0,E[M+1]=A>>>0},utils$3.expand=function(x,I,E){var M=0,S=0;M=(x&1)<<5|x>>>27;for(var A=23;A>=15;A-=4)M<<=6,M|=x>>>A&63;for(var A=11;A>=3;A-=4)S|=x>>>A&63,S<<=6;S|=(x&31)<<1|x>>>31,I[E+0]=M>>>0,I[E+1]=S>>>0};var f=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];utils$3.substitute=function(x,I){for(var E=0,M=0;M<4;M++){var S=x>>>18-M*6&63,A=f[M*64+S];E<<=4,E|=A}for(var M=0;M<4;M++){var S=I>>>18-M*6&63,A=f[4*64+M*64+S];E<<=4,E|=A}return E>>>0};var d=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];return utils$3.permute=function(x){for(var I=0,E=0;E<d.length;E++)I<<=1,I|=x>>>d[E]&1;return I>>>0},utils$3.padSplit=function(x,I,E){for(var M=x.toString(2);M.length<I;)M="0"+M;for(var S=[],A=0;A<I;A+=E)S.push(M.slice(A,A+E));return S.join(" ")},utils$3}var minimalisticAssert,hasRequiredMinimalisticAssert;function requireMinimalisticAssert(){if(hasRequiredMinimalisticAssert)return minimalisticAssert;hasRequiredMinimalisticAssert=1,minimalisticAssert=u;function u(f,d){if(!f)throw new Error(d||"Assertion failed")}return u.equal=function(d,_,x){if(d!=_)throw new Error(x||"Assertion failed: "+d+" != "+_)},minimalisticAssert}var cipher,hasRequiredCipher;function requireCipher(){if(hasRequiredCipher)return cipher;hasRequiredCipher=1;var u=requireMinimalisticAssert();function f(d){this.options=d,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0,this.padding=d.padding!==!1}return cipher=f,f.prototype._init=function(){},f.prototype.update=function(_){return _.length===0?[]:this.type==="decrypt"?this._updateDecrypt(_):this._updateEncrypt(_)},f.prototype._buffer=function(_,x){for(var I=Math.min(this.buffer.length-this.bufferOff,_.length-x),E=0;E<I;E++)this.buffer[this.bufferOff+E]=_[x+E];return this.bufferOff+=I,I},f.prototype._flushBuffer=function(_,x){return this._update(this.buffer,0,_,x),this.bufferOff=0,this.blockSize},f.prototype._updateEncrypt=function(_){var x=0,I=0,E=(this.bufferOff+_.length)/this.blockSize|0,M=new Array(E*this.blockSize);this.bufferOff!==0&&(x+=this._buffer(_,x),this.bufferOff===this.buffer.length&&(I+=this._flushBuffer(M,I)));for(var S=_.length-(_.length-x)%this.blockSize;x<S;x+=this.blockSize)this._update(_,x,M,I),I+=this.blockSize;for(;x<_.length;x++,this.bufferOff++)this.buffer[this.bufferOff]=_[x];return M},f.prototype._updateDecrypt=function(_){for(var x=0,I=0,E=Math.ceil((this.bufferOff+_.length)/this.blockSize)-1,M=new Array(E*this.blockSize);E>0;E--)x+=this._buffer(_,x),I+=this._flushBuffer(M,I);return x+=this._buffer(_,x),M},f.prototype.final=function(_){var x;_&&(x=this.update(_));var I;return this.type==="encrypt"?I=this._finalEncrypt():I=this._finalDecrypt(),x?x.concat(I):I},f.prototype._pad=function(_,x){if(x===0)return!1;for(;x<_.length;)_[x++]=0;return!0},f.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var _=new Array(this.blockSize);return this._update(this.buffer,0,_,0),_},f.prototype._unpad=function(_){return _},f.prototype._finalDecrypt=function(){u.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var _=new Array(this.blockSize);return this._flushBuffer(_,0),this._unpad(_)},cipher}var des,hasRequiredDes$1;function requireDes$1(){if(hasRequiredDes$1)return des;hasRequiredDes$1=1;var u=requireMinimalisticAssert(),f=inherits_browserExports,d=requireUtils$3(),_=requireCipher();function x(){this.tmp=new Array(2),this.keys=null}function I(M){_.call(this,M);var S=new x;this._desState=S,this.deriveKeys(S,M.key)}f(I,_),des=I,I.create=function(S){return new I(S)};var E=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];return I.prototype.deriveKeys=function(S,A){S.keys=new Array(16*2),u.equal(A.length,this.blockSize,"Invalid key length");var T=d.readUInt32BE(A,0),D=d.readUInt32BE(A,4);d.pc1(T,D,S.tmp,0),T=S.tmp[0],D=S.tmp[1];for(var O=0;O<S.keys.length;O+=2){var j=E[O>>>1];T=d.r28shl(T,j),D=d.r28shl(D,j),d.pc2(T,D,S.keys,O)}},I.prototype._update=function(S,A,T,D){var O=this._desState,j=d.readUInt32BE(S,A),$=d.readUInt32BE(S,A+4);d.ip(j,$,O.tmp,0),j=O.tmp[0],$=O.tmp[1],this.type==="encrypt"?this._encrypt(O,j,$,O.tmp,0):this._decrypt(O,j,$,O.tmp,0),j=O.tmp[0],$=O.tmp[1],d.writeUInt32BE(T,j,D),d.writeUInt32BE(T,$,D+4)},I.prototype._pad=function(S,A){if(this.padding===!1)return!1;for(var T=S.length-A,D=A;D<S.length;D++)S[D]=T;return!0},I.prototype._unpad=function(S){if(this.padding===!1)return S;for(var A=S[S.length-1],T=S.length-A;T<S.length;T++)u.equal(S[T],A);return S.slice(0,S.length-A)},I.prototype._encrypt=function(S,A,T,D,O){for(var j=A,$=T,W=0;W<S.keys.length;W+=2){var Q=S.keys[W],X=S.keys[W+1];d.expand($,S.tmp,0),Q^=S.tmp[0],X^=S.tmp[1];var Y=d.substitute(Q,X),ie=d.permute(Y),oe=$;$=(j^ie)>>>0,j=oe}d.rip($,j,D,O)},I.prototype._decrypt=function(S,A,T,D,O){for(var j=T,$=A,W=S.keys.length-2;W>=0;W-=2){var Q=S.keys[W],X=S.keys[W+1];d.expand(j,S.tmp,0),Q^=S.tmp[0],X^=S.tmp[1];var Y=d.substitute(Q,X),ie=d.permute(Y),oe=j;j=($^ie)>>>0,$=oe}d.rip(j,$,D,O)},des}var cbc$1={},hasRequiredCbc$1;function requireCbc$1(){if(hasRequiredCbc$1)return cbc$1;hasRequiredCbc$1=1;var u=requireMinimalisticAssert(),f=inherits_browserExports,d={};function _(I){u.equal(I.length,8,"Invalid IV length"),this.iv=new Array(8);for(var E=0;E<this.iv.length;E++)this.iv[E]=I[E]}function x(I){function E(T){I.call(this,T),this._cbcInit()}f(E,I);for(var M=Object.keys(d),S=0;S<M.length;S++){var A=M[S];E.prototype[A]=d[A]}return E.create=function(D){return new E(D)},E}return cbc$1.instantiate=x,d._cbcInit=function(){var E=new _(this.options.iv);this._cbcState=E},d._update=function(E,M,S,A){var T=this._cbcState,D=this.constructor.super_.prototype,O=T.iv;if(this.type==="encrypt"){for(var j=0;j<this.blockSize;j++)O[j]^=E[M+j];D._update.call(this,O,0,S,A);for(var j=0;j<this.blockSize;j++)O[j]=S[A+j]}else{D._update.call(this,E,M,S,A);for(var j=0;j<this.blockSize;j++)S[A+j]^=O[j];for(var j=0;j<this.blockSize;j++)O[j]=E[M+j]}},cbc$1}var ede,hasRequiredEde;function requireEde(){if(hasRequiredEde)return ede;hasRequiredEde=1;var u=requireMinimalisticAssert(),f=inherits_browserExports,d=requireCipher(),_=requireDes$1();function x(E,M){u.equal(M.length,24,"Invalid key length");var S=M.slice(0,8),A=M.slice(8,16),T=M.slice(16,24);E==="encrypt"?this.ciphers=[_.create({type:"encrypt",key:S}),_.create({type:"decrypt",key:A}),_.create({type:"encrypt",key:T})]:this.ciphers=[_.create({type:"decrypt",key:T}),_.create({type:"encrypt",key:A}),_.create({type:"decrypt",key:S})]}function I(E){d.call(this,E);var M=new x(this.type,this.options.key);this._edeState=M}return f(I,d),ede=I,I.create=function(M){return new I(M)},I.prototype._update=function(M,S,A,T){var D=this._edeState;D.ciphers[0]._update(M,S,A,T),D.ciphers[1]._update(A,T,A,T),D.ciphers[2]._update(A,T,A,T)},I.prototype._pad=_.prototype._pad,I.prototype._unpad=_.prototype._unpad,ede}var hasRequiredDes;function requireDes(){return hasRequiredDes||(hasRequiredDes=1,des$1.utils=requireUtils$3(),des$1.Cipher=requireCipher(),des$1.DES=requireDes$1(),des$1.CBC=requireCbc$1(),des$1.EDE=requireEde()),des$1}var browserifyDes,hasRequiredBrowserifyDes;function requireBrowserifyDes(){if(hasRequiredBrowserifyDes)return browserifyDes;hasRequiredBrowserifyDes=1;var u=requireCipherBase(),f=requireDes(),d=inherits_browserExports,_=requireSafeBuffer().Buffer,x={"des-ede3-cbc":f.CBC.instantiate(f.EDE),"des-ede3":f.EDE,"des-ede-cbc":f.CBC.instantiate(f.EDE),"des-ede":f.EDE,"des-cbc":f.CBC.instantiate(f.DES),"des-ecb":f.DES};x.des=x["des-cbc"],x.des3=x["des-ede3-cbc"],browserifyDes=I,d(I,u);function I(E){u.call(this);var M=E.mode.toLowerCase(),S=x[M],A;E.decrypt?A="decrypt":A="encrypt";var T=E.key;_.isBuffer(T)||(T=_.from(T)),(M==="des-ede"||M==="des-ede-cbc")&&(T=_.concat([T,T.slice(0,8)]));var D=E.iv;_.isBuffer(D)||(D=_.from(D)),this._des=S.create({key:T,iv:D,type:A})}return I.prototype._update=function(E){return _.from(this._des.update(E))},I.prototype._final=function(){return _.from(this._des.final())},browserifyDes}var browser$6={},encrypter={},ecb={},hasRequiredEcb;function requireEcb(){return hasRequiredEcb||(hasRequiredEcb=1,ecb.encrypt=function(u,f){return u._cipher.encryptBlock(f)},ecb.decrypt=function(u,f){return u._cipher.decryptBlock(f)}),ecb}var cbc={},bufferXor,hasRequiredBufferXor;function requireBufferXor(){return hasRequiredBufferXor||(hasRequiredBufferXor=1,bufferXor=function(f,d){for(var _=Math.min(f.length,d.length),x=new buffer$2.Buffer(_),I=0;I<_;++I)x[I]=f[I]^d[I];return x}),bufferXor}var hasRequiredCbc;function requireCbc(){if(hasRequiredCbc)return cbc;hasRequiredCbc=1;var u=requireBufferXor();return cbc.encrypt=function(f,d){var _=u(d,f._prev);return f._prev=f._cipher.encryptBlock(_),f._prev},cbc.decrypt=function(f,d){var _=f._prev;f._prev=d;var x=f._cipher.decryptBlock(d);return u(x,_)},cbc}var cfb={},hasRequiredCfb;function requireCfb(){if(hasRequiredCfb)return cfb;hasRequiredCfb=1;var u=requireSafeBuffer().Buffer,f=requireBufferXor();function d(_,x,I){var E=x.length,M=f(x,_._cache);return _._cache=_._cache.slice(E),_._prev=u.concat([_._prev,I?x:M]),M}return cfb.encrypt=function(_,x,I){for(var E=u.allocUnsafe(0),M;x.length;)if(_._cache.length===0&&(_._cache=_._cipher.encryptBlock(_._prev),_._prev=u.allocUnsafe(0)),_._cache.length<=x.length)M=_._cache.length,E=u.concat([E,d(_,x.slice(0,M),I)]),x=x.slice(M);else{E=u.concat([E,d(_,x,I)]);break}return E},cfb}var cfb8={},hasRequiredCfb8;function requireCfb8(){if(hasRequiredCfb8)return cfb8;hasRequiredCfb8=1;var u=requireSafeBuffer().Buffer;function f(d,_,x){var I=d._cipher.encryptBlock(d._prev),E=I[0]^_;return d._prev=u.concat([d._prev.slice(1),u.from([x?_:E])]),E}return cfb8.encrypt=function(d,_,x){for(var I=_.length,E=u.allocUnsafe(I),M=-1;++M<I;)E[M]=f(d,_[M],x);return E},cfb8}var cfb1={},hasRequiredCfb1;function requireCfb1(){if(hasRequiredCfb1)return cfb1;hasRequiredCfb1=1;var u=requireSafeBuffer().Buffer;function f(_,x,I){for(var E,M=-1,S=8,A=0,T,D;++M<S;)E=_._cipher.encryptBlock(_._prev),T=x&1<<7-M?128:0,D=E[0]^T,A+=(D&128)>>M%8,_._prev=d(_._prev,I?T:D);return A}function d(_,x){var I=_.length,E=-1,M=u.allocUnsafe(_.length);for(_=u.concat([_,u.from([x])]);++E<I;)M[E]=_[E]<<1|_[E+1]>>7;return M}return cfb1.encrypt=function(_,x,I){for(var E=x.length,M=u.allocUnsafe(E),S=-1;++S<E;)M[S]=f(_,x[S],I);return M},cfb1}var ofb={},hasRequiredOfb;function requireOfb(){if(hasRequiredOfb)return ofb;hasRequiredOfb=1;var u=requireBufferXor();function f(d){return d._prev=d._cipher.encryptBlock(d._prev),d._prev}return ofb.encrypt=function(d,_){for(;d._cache.length<_.length;)d._cache=buffer$2.Buffer.concat([d._cache,f(d)]);var x=d._cache.slice(0,_.length);return d._cache=d._cache.slice(_.length),u(_,x)},ofb}var ctr={},incr32_1,hasRequiredIncr32;function requireIncr32(){if(hasRequiredIncr32)return incr32_1;hasRequiredIncr32=1;function u(f){for(var d=f.length,_;d--;)if(_=f.readUInt8(d),_===255)f.writeUInt8(0,d);else{_++,f.writeUInt8(_,d);break}}return incr32_1=u,incr32_1}var hasRequiredCtr;function requireCtr(){if(hasRequiredCtr)return ctr;hasRequiredCtr=1;var u=requireBufferXor(),f=requireSafeBuffer().Buffer,d=requireIncr32();function _(I){var E=I._cipher.encryptBlockRaw(I._prev);return d(I._prev),E}var x=16;return ctr.encrypt=function(I,E){var M=Math.ceil(E.length/x),S=I._cache.length;I._cache=f.concat([I._cache,f.allocUnsafe(M*x)]);for(var A=0;A<M;A++){var T=_(I),D=S+A*x;I._cache.writeUInt32BE(T[0],D+0),I._cache.writeUInt32BE(T[1],D+4),I._cache.writeUInt32BE(T[2],D+8),I._cache.writeUInt32BE(T[3],D+12)}var O=I._cache.slice(0,E.length);return I._cache=I._cache.slice(E.length),u(E,O)},ctr}const aes128={cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192={cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256={cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},require$$2={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128,aes192,aes256,"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}};var modes_1,hasRequiredModes$1;function requireModes$1(){if(hasRequiredModes$1)return modes_1;hasRequiredModes$1=1;var u={ECB:requireEcb(),CBC:requireCbc(),CFB:requireCfb(),CFB8:requireCfb8(),CFB1:requireCfb1(),OFB:requireOfb(),CTR:requireCtr(),GCM:requireCtr()},f=require$$2;for(var d in f)f[d].module=u[f[d].mode];return modes_1=f,modes_1}var aes={},hasRequiredAes;function requireAes(){if(hasRequiredAes)return aes;hasRequiredAes=1;var u=requireSafeBuffer().Buffer;function f(M){u.isBuffer(M)||(M=u.from(M));for(var S=M.length/4|0,A=new Array(S),T=0;T<S;T++)A[T]=M.readUInt32BE(T*4);return A}function d(M){for(var S=0;S<M.length;M++)M[S]=0}function _(M,S,A,T,D){for(var O=A[0],j=A[1],$=A[2],W=A[3],Q=M[0]^S[0],X=M[1]^S[1],Y=M[2]^S[2],ie=M[3]^S[3],oe,ge,be,ze,de=4,Ce=1;Ce<D;Ce++)oe=O[Q>>>24]^j[X>>>16&255]^$[Y>>>8&255]^W[ie&255]^S[de++],ge=O[X>>>24]^j[Y>>>16&255]^$[ie>>>8&255]^W[Q&255]^S[de++],be=O[Y>>>24]^j[ie>>>16&255]^$[Q>>>8&255]^W[X&255]^S[de++],ze=O[ie>>>24]^j[Q>>>16&255]^$[X>>>8&255]^W[Y&255]^S[de++],Q=oe,X=ge,Y=be,ie=ze;return oe=(T[Q>>>24]<<24|T[X>>>16&255]<<16|T[Y>>>8&255]<<8|T[ie&255])^S[de++],ge=(T[X>>>24]<<24|T[Y>>>16&255]<<16|T[ie>>>8&255]<<8|T[Q&255])^S[de++],be=(T[Y>>>24]<<24|T[ie>>>16&255]<<16|T[Q>>>8&255]<<8|T[X&255])^S[de++],ze=(T[ie>>>24]<<24|T[Q>>>16&255]<<16|T[X>>>8&255]<<8|T[Y&255])^S[de++],oe=oe>>>0,ge=ge>>>0,be=be>>>0,ze=ze>>>0,[oe,ge,be,ze]}var x=[0,1,2,4,8,16,32,64,128,27,54],I=function(){for(var M=new Array(256),S=0;S<256;S++)S<128?M[S]=S<<1:M[S]=S<<1^283;for(var A=[],T=[],D=[[],[],[],[]],O=[[],[],[],[]],j=0,$=0,W=0;W<256;++W){var Q=$^$<<1^$<<2^$<<3^$<<4;Q=Q>>>8^Q&255^99,A[j]=Q,T[Q]=j;var X=M[j],Y=M[X],ie=M[Y],oe=M[Q]*257^Q*16843008;D[0][j]=oe<<24|oe>>>8,D[1][j]=oe<<16|oe>>>16,D[2][j]=oe<<8|oe>>>24,D[3][j]=oe,oe=ie*16843009^Y*65537^X*257^j*16843008,O[0][Q]=oe<<24|oe>>>8,O[1][Q]=oe<<16|oe>>>16,O[2][Q]=oe<<8|oe>>>24,O[3][Q]=oe,j===0?j=$=1:(j=X^M[M[M[ie^X]]],$^=M[M[$]])}return{SBOX:A,INV_SBOX:T,SUB_MIX:D,INV_SUB_MIX:O}}();function E(M){this._key=f(M),this._reset()}return E.blockSize=4*4,E.keySize=256/8,E.prototype.blockSize=E.blockSize,E.prototype.keySize=E.keySize,E.prototype._reset=function(){for(var M=this._key,S=M.length,A=S+6,T=(A+1)*4,D=[],O=0;O<S;O++)D[O]=M[O];for(O=S;O<T;O++){var j=D[O-1];O%S===0?(j=j<<8|j>>>24,j=I.SBOX[j>>>24]<<24|I.SBOX[j>>>16&255]<<16|I.SBOX[j>>>8&255]<<8|I.SBOX[j&255],j^=x[O/S|0]<<24):S>6&&O%S===4&&(j=I.SBOX[j>>>24]<<24|I.SBOX[j>>>16&255]<<16|I.SBOX[j>>>8&255]<<8|I.SBOX[j&255]),D[O]=D[O-S]^j}for(var $=[],W=0;W<T;W++){var Q=T-W,X=D[Q-(W%4?0:4)];W<4||Q<=4?$[W]=X:$[W]=I.INV_SUB_MIX[0][I.SBOX[X>>>24]]^I.INV_SUB_MIX[1][I.SBOX[X>>>16&255]]^I.INV_SUB_MIX[2][I.SBOX[X>>>8&255]]^I.INV_SUB_MIX[3][I.SBOX[X&255]]}this._nRounds=A,this._keySchedule=D,this._invKeySchedule=$},E.prototype.encryptBlockRaw=function(M){return M=f(M),_(M,this._keySchedule,I.SUB_MIX,I.SBOX,this._nRounds)},E.prototype.encryptBlock=function(M){var S=this.encryptBlockRaw(M),A=u.allocUnsafe(16);return A.writeUInt32BE(S[0],0),A.writeUInt32BE(S[1],4),A.writeUInt32BE(S[2],8),A.writeUInt32BE(S[3],12),A},E.prototype.decryptBlock=function(M){M=f(M);var S=M[1];M[1]=M[3],M[3]=S;var A=_(M,this._invKeySchedule,I.INV_SUB_MIX,I.INV_SBOX,this._nRounds),T=u.allocUnsafe(16);return T.writeUInt32BE(A[0],0),T.writeUInt32BE(A[3],4),T.writeUInt32BE(A[2],8),T.writeUInt32BE(A[1],12),T},E.prototype.scrub=function(){d(this._keySchedule),d(this._invKeySchedule),d(this._key)},aes.AES=E,aes}var ghash,hasRequiredGhash;function requireGhash(){if(hasRequiredGhash)return ghash;hasRequiredGhash=1;var u=requireSafeBuffer().Buffer,f=u.alloc(16,0);function d(I){return[I.readUInt32BE(0),I.readUInt32BE(4),I.readUInt32BE(8),I.readUInt32BE(12)]}function _(I){var E=u.allocUnsafe(16);return E.writeUInt32BE(I[0]>>>0,0),E.writeUInt32BE(I[1]>>>0,4),E.writeUInt32BE(I[2]>>>0,8),E.writeUInt32BE(I[3]>>>0,12),E}function x(I){this.h=I,this.state=u.alloc(16,0),this.cache=u.allocUnsafe(0)}return x.prototype.ghash=function(I){for(var E=-1;++E<I.length;)this.state[E]^=I[E];this._multiply()},x.prototype._multiply=function(){for(var I=d(this.h),E=[0,0,0,0],M,S,A,T=-1;++T<128;){for(S=(this.state[~~(T/8)]&1<<7-T%8)!==0,S&&(E[0]^=I[0],E[1]^=I[1],E[2]^=I[2],E[3]^=I[3]),A=(I[3]&1)!==0,M=3;M>0;M--)I[M]=I[M]>>>1|(I[M-1]&1)<<31;I[0]=I[0]>>>1,A&&(I[0]=I[0]^225<<24)}this.state=_(E)},x.prototype.update=function(I){this.cache=u.concat([this.cache,I]);for(var E;this.cache.length>=16;)E=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(E)},x.prototype.final=function(I,E){return this.cache.length&&this.ghash(u.concat([this.cache,f],16)),this.ghash(_([0,I,0,E])),this.state},ghash=x,ghash}var authCipher,hasRequiredAuthCipher;function requireAuthCipher(){if(hasRequiredAuthCipher)return authCipher;hasRequiredAuthCipher=1;var u=requireAes(),f=requireSafeBuffer().Buffer,d=requireCipherBase(),_=inherits_browserExports,x=requireGhash(),I=requireBufferXor(),E=requireIncr32();function M(T,D){var O=0;T.length!==D.length&&O++;for(var j=Math.min(T.length,D.length),$=0;$<j;++$)O+=T[$]^D[$];return O}function S(T,D,O){if(D.length===12)return T._finID=f.concat([D,f.from([0,0,0,1])]),f.concat([D,f.from([0,0,0,2])]);var j=new x(O),$=D.length,W=$%16;j.update(D),W&&(W=16-W,j.update(f.alloc(W,0))),j.update(f.alloc(8,0));var Q=$*8,X=f.alloc(8);X.writeUIntBE(Q,0,8),j.update(X),T._finID=j.state;var Y=f.from(T._finID);return E(Y),Y}function A(T,D,O,j){d.call(this);var $=f.alloc(4,0);this._cipher=new u.AES(D);var W=this._cipher.encryptBlock($);this._ghash=new x(W),O=S(this,O,W),this._prev=f.from(O),this._cache=f.allocUnsafe(0),this._secCache=f.allocUnsafe(0),this._decrypt=j,this._alen=0,this._len=0,this._mode=T,this._authTag=null,this._called=!1}return _(A,d),A.prototype._update=function(T){if(!this._called&&this._alen){var D=16-this._alen%16;D<16&&(D=f.alloc(D,0),this._ghash.update(D))}this._called=!0;var O=this._mode.encrypt(this,T);return this._decrypt?this._ghash.update(T):this._ghash.update(O),this._len+=T.length,O},A.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var T=I(this._ghash.final(this._alen*8,this._len*8),this._cipher.encryptBlock(this._finID));if(this._decrypt&&M(T,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=T,this._cipher.scrub()},A.prototype.getAuthTag=function(){if(this._decrypt||!f.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},A.prototype.setAuthTag=function(D){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=D},A.prototype.setAAD=function(D){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(D),this._alen+=D.length},authCipher=A,authCipher}var streamCipher,hasRequiredStreamCipher;function requireStreamCipher(){if(hasRequiredStreamCipher)return streamCipher;hasRequiredStreamCipher=1;var u=requireAes(),f=requireSafeBuffer().Buffer,d=requireCipherBase(),_=inherits_browserExports;function x(I,E,M,S){d.call(this),this._cipher=new u.AES(E),this._prev=f.from(M),this._cache=f.allocUnsafe(0),this._secCache=f.allocUnsafe(0),this._decrypt=S,this._mode=I}return _(x,d),x.prototype._update=function(I){return this._mode.encrypt(this,I,this._decrypt)},x.prototype._final=function(){this._cipher.scrub()},streamCipher=x,streamCipher}var evp_bytestokey,hasRequiredEvp_bytestokey;function requireEvp_bytestokey(){if(hasRequiredEvp_bytestokey)return evp_bytestokey;hasRequiredEvp_bytestokey=1;var u=requireSafeBuffer().Buffer,f=requireMd5_js();function d(_,x,I,E){if(u.isBuffer(_)||(_=u.from(_,"binary")),x&&(u.isBuffer(x)||(x=u.from(x,"binary")),x.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var M=I/8,S=u.alloc(M),A=u.alloc(E||0),T=u.alloc(0);M>0||E>0;){var D=new f;D.update(T),D.update(_),x&&D.update(x),T=D.digest();var O=0;if(M>0){var j=S.length-M;O=Math.min(M,T.length),T.copy(S,j,0,O),M-=O}if(O<T.length&&E>0){var $=A.length-E,W=Math.min(E,T.length-O);T.copy(A,$,O,O+W),E-=W}}return T.fill(0),{key:S,iv:A}}return evp_bytestokey=d,evp_bytestokey}var hasRequiredEncrypter;function requireEncrypter(){if(hasRequiredEncrypter)return encrypter;hasRequiredEncrypter=1;var u=requireModes$1(),f=requireAuthCipher(),d=requireSafeBuffer().Buffer,_=requireStreamCipher(),x=requireCipherBase(),I=requireAes(),E=requireEvp_bytestokey(),M=inherits_browserExports;function S(j,$,W){x.call(this),this._cache=new T,this._cipher=new I.AES($),this._prev=d.from(W),this._mode=j,this._autopadding=!0}M(S,x),S.prototype._update=function(j){this._cache.add(j);for(var $,W,Q=[];$=this._cache.get();)W=this._mode.encrypt(this,$),Q.push(W);return d.concat(Q)};var A=d.alloc(16,16);S.prototype._final=function(){var j=this._cache.flush();if(this._autopadding)return j=this._mode.encrypt(this,j),this._cipher.scrub(),j;if(!j.equals(A))throw this._cipher.scrub(),new Error("data not multiple of block length")},S.prototype.setAutoPadding=function(j){return this._autopadding=!!j,this};function T(){this.cache=d.allocUnsafe(0)}T.prototype.add=function(j){this.cache=d.concat([this.cache,j])},T.prototype.get=function(){if(this.cache.length>15){var j=this.cache.slice(0,16);return this.cache=this.cache.slice(16),j}return null},T.prototype.flush=function(){for(var j=16-this.cache.length,$=d.allocUnsafe(j),W=-1;++W<j;)$.writeUInt8(j,W);return d.concat([this.cache,$])};function D(j,$,W){var Q=u[j.toLowerCase()];if(!Q)throw new TypeError("invalid suite type");if(typeof $=="string"&&($=d.from($)),$.length!==Q.key/8)throw new TypeError("invalid key length "+$.length);if(typeof W=="string"&&(W=d.from(W)),Q.mode!=="GCM"&&W.length!==Q.iv)throw new TypeError("invalid iv length "+W.length);return Q.type==="stream"?new _(Q.module,$,W):Q.type==="auth"?new f(Q.module,$,W):new S(Q.module,$,W)}function O(j,$){var W=u[j.toLowerCase()];if(!W)throw new TypeError("invalid suite type");var Q=E($,!1,W.key,W.iv);return D(j,Q.key,Q.iv)}return encrypter.createCipheriv=D,encrypter.createCipher=O,encrypter}var decrypter={},hasRequiredDecrypter;function requireDecrypter(){if(hasRequiredDecrypter)return decrypter;hasRequiredDecrypter=1;var u=requireAuthCipher(),f=requireSafeBuffer().Buffer,d=requireModes$1(),_=requireStreamCipher(),x=requireCipherBase(),I=requireAes(),E=requireEvp_bytestokey(),M=inherits_browserExports;function S(j,$,W){x.call(this),this._cache=new A,this._last=void 0,this._cipher=new I.AES($),this._prev=f.from(W),this._mode=j,this._autopadding=!0}M(S,x),S.prototype._update=function(j){this._cache.add(j);for(var $,W,Q=[];$=this._cache.get(this._autopadding);)W=this._mode.decrypt(this,$),Q.push(W);return f.concat(Q)},S.prototype._final=function(){var j=this._cache.flush();if(this._autopadding)return T(this._mode.decrypt(this,j));if(j)throw new Error("data not multiple of block length")},S.prototype.setAutoPadding=function(j){return this._autopadding=!!j,this};function A(){this.cache=f.allocUnsafe(0)}A.prototype.add=function(j){this.cache=f.concat([this.cache,j])},A.prototype.get=function(j){var $;if(j){if(this.cache.length>16)return $=this.cache.slice(0,16),this.cache=this.cache.slice(16),$}else if(this.cache.length>=16)return $=this.cache.slice(0,16),this.cache=this.cache.slice(16),$;return null},A.prototype.flush=function(){if(this.cache.length)return this.cache};function T(j){var $=j[15];if($<1||$>16)throw new Error("unable to decrypt data");for(var W=-1;++W<$;)if(j[W+(16-$)]!==$)throw new Error("unable to decrypt data");if($!==16)return j.slice(0,16-$)}function D(j,$,W){var Q=d[j.toLowerCase()];if(!Q)throw new TypeError("invalid suite type");if(typeof W=="string"&&(W=f.from(W)),Q.mode!=="GCM"&&W.length!==Q.iv)throw new TypeError("invalid iv length "+W.length);if(typeof $=="string"&&($=f.from($)),$.length!==Q.key/8)throw new TypeError("invalid key length "+$.length);return Q.type==="stream"?new _(Q.module,$,W,!0):Q.type==="auth"?new u(Q.module,$,W,!0):new S(Q.module,$,W)}function O(j,$){var W=d[j.toLowerCase()];if(!W)throw new TypeError("invalid suite type");var Q=E($,!1,W.key,W.iv);return D(j,Q.key,Q.iv)}return decrypter.createDecipher=O,decrypter.createDecipheriv=D,decrypter}var hasRequiredBrowser$6;function requireBrowser$6(){if(hasRequiredBrowser$6)return browser$6;hasRequiredBrowser$6=1;var u=requireEncrypter(),f=requireDecrypter(),d=require$$2;function _(){return Object.keys(d)}return browser$6.createCipher=browser$6.Cipher=u.createCipher,browser$6.createCipheriv=browser$6.Cipheriv=u.createCipheriv,browser$6.createDecipher=browser$6.Decipher=f.createDecipher,browser$6.createDecipheriv=browser$6.Decipheriv=f.createDecipheriv,browser$6.listCiphers=browser$6.getCiphers=_,browser$6}var modes={},hasRequiredModes;function requireModes(){return hasRequiredModes||(hasRequiredModes=1,function(u){u["des-ecb"]={key:8,iv:0},u["des-cbc"]=u.des={key:8,iv:8},u["des-ede3-cbc"]=u.des3={key:24,iv:8},u["des-ede3"]={key:24,iv:0},u["des-ede-cbc"]={key:16,iv:8},u["des-ede"]={key:16,iv:0}}(modes)),modes}var hasRequiredBrowser$5;function requireBrowser$5(){if(hasRequiredBrowser$5)return browser$7;hasRequiredBrowser$5=1;var u=requireBrowserifyDes(),f=requireBrowser$6(),d=requireModes$1(),_=requireModes(),x=requireEvp_bytestokey();function I(T,D){T=T.toLowerCase();var O,j;if(d[T])O=d[T].key,j=d[T].iv;else if(_[T])O=_[T].key*8,j=_[T].iv;else throw new TypeError("invalid suite type");var $=x(D,!1,O,j);return M(T,$.key,$.iv)}function E(T,D){T=T.toLowerCase();var O,j;if(d[T])O=d[T].key,j=d[T].iv;else if(_[T])O=_[T].key*8,j=_[T].iv;else throw new TypeError("invalid suite type");var $=x(D,!1,O,j);return S(T,$.key,$.iv)}function M(T,D,O){if(T=T.toLowerCase(),d[T])return f.createCipheriv(T,D,O);if(_[T])return new u({key:D,iv:O,mode:T});throw new TypeError("invalid suite type")}function S(T,D,O){if(T=T.toLowerCase(),d[T])return f.createDecipheriv(T,D,O);if(_[T])return new u({key:D,iv:O,mode:T,decrypt:!0});throw new TypeError("invalid suite type")}function A(){return Object.keys(_).concat(f.getCiphers())}return browser$7.createCipher=browser$7.Cipher=I,browser$7.createCipheriv=browser$7.Cipheriv=M,browser$7.createDecipher=browser$7.Decipher=E,browser$7.createDecipheriv=browser$7.Decipheriv=S,browser$7.listCiphers=browser$7.getCiphers=A,browser$7}var browser$5={},bn$2={exports:{}};bn$2.exports;var hasRequiredBn$2;function requireBn$2(){return hasRequiredBn$2||(hasRequiredBn$2=1,function(u){(function(f,d){function _(le,re){if(!le)throw new Error(re||"Assertion failed")}function x(le,re){le.super_=re;var P=function(){};P.prototype=re.prototype,le.prototype=new P,le.prototype.constructor=le}function I(le,re,P){if(I.isBN(le))return le;this.negative=0,this.words=null,this.length=0,this.red=null,le!==null&&((re==="le"||re==="be")&&(P=re,re=10),this._init(le||0,re||10,P||"be"))}typeof f=="object"?f.exports=I:d.BN=I,I.BN=I,I.wordSize=26;var E;try{typeof window<"u"&&typeof window.Buffer<"u"?E=window.Buffer:E=buffer$2.Buffer}catch{}I.isBN=function(re){return re instanceof I?!0:re!==null&&typeof re=="object"&&re.constructor.wordSize===I.wordSize&&Array.isArray(re.words)},I.max=function(re,P){return re.cmp(P)>0?re:P},I.min=function(re,P){return re.cmp(P)<0?re:P},I.prototype._init=function(re,P,k){if(typeof re=="number")return this._initNumber(re,P,k);if(typeof re=="object")return this._initArray(re,P,k);P==="hex"&&(P=16),_(P===(P|0)&&P>=2&&P<=36),re=re.toString().replace(/\s+/g,"");var B=0;re[0]==="-"&&(B++,this.negative=1),B<re.length&&(P===16?this._parseHex(re,B,k):(this._parseBase(re,P,B),k==="le"&&this._initArray(this.toArray(),P,k)))},I.prototype._initNumber=function(re,P,k){re<0&&(this.negative=1,re=-re),re<67108864?(this.words=[re&67108863],this.length=1):re<4503599627370496?(this.words=[re&67108863,re/67108864&67108863],this.length=2):(_(re<9007199254740992),this.words=[re&67108863,re/67108864&67108863,1],this.length=3),k==="le"&&this._initArray(this.toArray(),P,k)},I.prototype._initArray=function(re,P,k){if(_(typeof re.length=="number"),re.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(re.length/3),this.words=new Array(this.length);for(var B=0;B<this.length;B++)this.words[B]=0;var z,ee,H=0;if(k==="be")for(B=re.length-1,z=0;B>=0;B-=3)ee=re[B]|re[B-1]<<8|re[B-2]<<16,this.words[z]|=ee<<H&67108863,this.words[z+1]=ee>>>26-H&67108863,H+=24,H>=26&&(H-=26,z++);else if(k==="le")for(B=0,z=0;B<re.length;B+=3)ee=re[B]|re[B+1]<<8|re[B+2]<<16,this.words[z]|=ee<<H&67108863,this.words[z+1]=ee>>>26-H&67108863,H+=24,H>=26&&(H-=26,z++);return this.strip()};function M(le,re){var P=le.charCodeAt(re);return P>=65&&P<=70?P-55:P>=97&&P<=102?P-87:P-48&15}function S(le,re,P){var k=M(le,P);return P-1>=re&&(k|=M(le,P-1)<<4),k}I.prototype._parseHex=function(re,P,k){this.length=Math.ceil((re.length-P)/6),this.words=new Array(this.length);for(var B=0;B<this.length;B++)this.words[B]=0;var z=0,ee=0,H;if(k==="be")for(B=re.length-1;B>=P;B-=2)H=S(re,P,B)<<z,this.words[ee]|=H&67108863,z>=18?(z-=18,ee+=1,this.words[ee]|=H>>>26):z+=8;else{var q=re.length-P;for(B=q%2===0?P+1:P;B<re.length;B+=2)H=S(re,P,B)<<z,this.words[ee]|=H&67108863,z>=18?(z-=18,ee+=1,this.words[ee]|=H>>>26):z+=8}this.strip()};function A(le,re,P,k){for(var B=0,z=Math.min(le.length,P),ee=re;ee<z;ee++){var H=le.charCodeAt(ee)-48;B*=k,H>=49?B+=H-49+10:H>=17?B+=H-17+10:B+=H}return B}I.prototype._parseBase=function(re,P,k){this.words=[0],this.length=1;for(var B=0,z=1;z<=67108863;z*=P)B++;B--,z=z/P|0;for(var ee=re.length-k,H=ee%B,q=Math.min(ee,ee-H)+k,J=0,U=k;U<q;U+=B)J=A(re,U,U+B,P),this.imuln(z),this.words[0]+J<67108864?this.words[0]+=J:this._iaddn(J);if(H!==0){var Z=1;for(J=A(re,U,re.length,P),U=0;U<H;U++)Z*=P;this.imuln(Z),this.words[0]+J<67108864?this.words[0]+=J:this._iaddn(J)}this.strip()},I.prototype.copy=function(re){re.words=new Array(this.length);for(var P=0;P<this.length;P++)re.words[P]=this.words[P];re.length=this.length,re.negative=this.negative,re.red=this.red},I.prototype.clone=function(){var re=new I(null);return this.copy(re),re},I.prototype._expand=function(re){for(;this.length<re;)this.words[this.length++]=0;return this},I.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},I.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},I.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var T=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],D=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],O=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];I.prototype.toString=function(re,P){re=re||10,P=P|0||1;var k;if(re===16||re==="hex"){k="";for(var B=0,z=0,ee=0;ee<this.length;ee++){var H=this.words[ee],q=((H<<B|z)&16777215).toString(16);z=H>>>24-B&16777215,z!==0||ee!==this.length-1?k=T[6-q.length]+q+k:k=q+k,B+=2,B>=26&&(B-=26,ee--)}for(z!==0&&(k=z.toString(16)+k);k.length%P!==0;)k="0"+k;return this.negative!==0&&(k="-"+k),k}if(re===(re|0)&&re>=2&&re<=36){var J=D[re],U=O[re];k="";var Z=this.clone();for(Z.negative=0;!Z.isZero();){var ve=Z.modn(U).toString(re);Z=Z.idivn(U),Z.isZero()?k=ve+k:k=T[J-ve.length]+ve+k}for(this.isZero()&&(k="0"+k);k.length%P!==0;)k="0"+k;return this.negative!==0&&(k="-"+k),k}_(!1,"Base should be between 2 and 36")},I.prototype.toNumber=function(){var re=this.words[0];return this.length===2?re+=this.words[1]*67108864:this.length===3&&this.words[2]===1?re+=4503599627370496+this.words[1]*67108864:this.length>2&&_(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-re:re},I.prototype.toJSON=function(){return this.toString(16)},I.prototype.toBuffer=function(re,P){return _(typeof E<"u"),this.toArrayLike(E,re,P)},I.prototype.toArray=function(re,P){return this.toArrayLike(Array,re,P)},I.prototype.toArrayLike=function(re,P,k){var B=this.byteLength(),z=k||Math.max(1,B);_(B<=z,"byte array longer than desired length"),_(z>0,"Requested array length <= 0"),this.strip();var ee=P==="le",H=new re(z),q,J,U=this.clone();if(ee){for(J=0;!U.isZero();J++)q=U.andln(255),U.iushrn(8),H[J]=q;for(;J<z;J++)H[J]=0}else{for(J=0;J<z-B;J++)H[J]=0;for(J=0;!U.isZero();J++)q=U.andln(255),U.iushrn(8),H[z-J-1]=q}return H},Math.clz32?I.prototype._countBits=function(re){return 32-Math.clz32(re)}:I.prototype._countBits=function(re){var P=re,k=0;return P>=4096&&(k+=13,P>>>=13),P>=64&&(k+=7,P>>>=7),P>=8&&(k+=4,P>>>=4),P>=2&&(k+=2,P>>>=2),k+P},I.prototype._zeroBits=function(re){if(re===0)return 26;var P=re,k=0;return P&8191||(k+=13,P>>>=13),P&127||(k+=7,P>>>=7),P&15||(k+=4,P>>>=4),P&3||(k+=2,P>>>=2),P&1||k++,k},I.prototype.bitLength=function(){var re=this.words[this.length-1],P=this._countBits(re);return(this.length-1)*26+P};function j(le){for(var re=new Array(le.bitLength()),P=0;P<re.length;P++){var k=P/26|0,B=P%26;re[P]=(le.words[k]&1<<B)>>>B}return re}I.prototype.zeroBits=function(){if(this.isZero())return 0;for(var re=0,P=0;P<this.length;P++){var k=this._zeroBits(this.words[P]);if(re+=k,k!==26)break}return re},I.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},I.prototype.toTwos=function(re){return this.negative!==0?this.abs().inotn(re).iaddn(1):this.clone()},I.prototype.fromTwos=function(re){return this.testn(re-1)?this.notn(re).iaddn(1).ineg():this.clone()},I.prototype.isNeg=function(){return this.negative!==0},I.prototype.neg=function(){return this.clone().ineg()},I.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},I.prototype.iuor=function(re){for(;this.length<re.length;)this.words[this.length++]=0;for(var P=0;P<re.length;P++)this.words[P]=this.words[P]|re.words[P];return this.strip()},I.prototype.ior=function(re){return _((this.negative|re.negative)===0),this.iuor(re)},I.prototype.or=function(re){return this.length>re.length?this.clone().ior(re):re.clone().ior(this)},I.prototype.uor=function(re){return this.length>re.length?this.clone().iuor(re):re.clone().iuor(this)},I.prototype.iuand=function(re){var P;this.length>re.length?P=re:P=this;for(var k=0;k<P.length;k++)this.words[k]=this.words[k]&re.words[k];return this.length=P.length,this.strip()},I.prototype.iand=function(re){return _((this.negative|re.negative)===0),this.iuand(re)},I.prototype.and=function(re){return this.length>re.length?this.clone().iand(re):re.clone().iand(this)},I.prototype.uand=function(re){return this.length>re.length?this.clone().iuand(re):re.clone().iuand(this)},I.prototype.iuxor=function(re){var P,k;this.length>re.length?(P=this,k=re):(P=re,k=this);for(var B=0;B<k.length;B++)this.words[B]=P.words[B]^k.words[B];if(this!==P)for(;B<P.length;B++)this.words[B]=P.words[B];return this.length=P.length,this.strip()},I.prototype.ixor=function(re){return _((this.negative|re.negative)===0),this.iuxor(re)},I.prototype.xor=function(re){return this.length>re.length?this.clone().ixor(re):re.clone().ixor(this)},I.prototype.uxor=function(re){return this.length>re.length?this.clone().iuxor(re):re.clone().iuxor(this)},I.prototype.inotn=function(re){_(typeof re=="number"&&re>=0);var P=Math.ceil(re/26)|0,k=re%26;this._expand(P),k>0&&P--;for(var B=0;B<P;B++)this.words[B]=~this.words[B]&67108863;return k>0&&(this.words[B]=~this.words[B]&67108863>>26-k),this.strip()},I.prototype.notn=function(re){return this.clone().inotn(re)},I.prototype.setn=function(re,P){_(typeof re=="number"&&re>=0);var k=re/26|0,B=re%26;return this._expand(k+1),P?this.words[k]=this.words[k]|1<<B:this.words[k]=this.words[k]&~(1<<B),this.strip()},I.prototype.iadd=function(re){var P;if(this.negative!==0&&re.negative===0)return this.negative=0,P=this.isub(re),this.negative^=1,this._normSign();if(this.negative===0&&re.negative!==0)return re.negative=0,P=this.isub(re),re.negative=1,P._normSign();var k,B;this.length>re.length?(k=this,B=re):(k=re,B=this);for(var z=0,ee=0;ee<B.length;ee++)P=(k.words[ee]|0)+(B.words[ee]|0)+z,this.words[ee]=P&67108863,z=P>>>26;for(;z!==0&&ee<k.length;ee++)P=(k.words[ee]|0)+z,this.words[ee]=P&67108863,z=P>>>26;if(this.length=k.length,z!==0)this.words[this.length]=z,this.length++;else if(k!==this)for(;ee<k.length;ee++)this.words[ee]=k.words[ee];return this},I.prototype.add=function(re){var P;return re.negative!==0&&this.negative===0?(re.negative=0,P=this.sub(re),re.negative^=1,P):re.negative===0&&this.negative!==0?(this.negative=0,P=re.sub(this),this.negative=1,P):this.length>re.length?this.clone().iadd(re):re.clone().iadd(this)},I.prototype.isub=function(re){if(re.negative!==0){re.negative=0;var P=this.iadd(re);return re.negative=1,P._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(re),this.negative=1,this._normSign();var k=this.cmp(re);if(k===0)return this.negative=0,this.length=1,this.words[0]=0,this;var B,z;k>0?(B=this,z=re):(B=re,z=this);for(var ee=0,H=0;H<z.length;H++)P=(B.words[H]|0)-(z.words[H]|0)+ee,ee=P>>26,this.words[H]=P&67108863;for(;ee!==0&&H<B.length;H++)P=(B.words[H]|0)+ee,ee=P>>26,this.words[H]=P&67108863;if(ee===0&&H<B.length&&B!==this)for(;H<B.length;H++)this.words[H]=B.words[H];return this.length=Math.max(this.length,H),B!==this&&(this.negative=1),this.strip()},I.prototype.sub=function(re){return this.clone().isub(re)};function $(le,re,P){P.negative=re.negative^le.negative;var k=le.length+re.length|0;P.length=k,k=k-1|0;var B=le.words[0]|0,z=re.words[0]|0,ee=B*z,H=ee&67108863,q=ee/67108864|0;P.words[0]=H;for(var J=1;J<k;J++){for(var U=q>>>26,Z=q&67108863,ve=Math.min(J,re.length-1),Ye=Math.max(0,J-le.length+1);Ye<=ve;Ye++){var rt=J-Ye|0;B=le.words[rt]|0,z=re.words[Ye]|0,ee=B*z+Z,U+=ee/67108864|0,Z=ee&67108863}P.words[J]=Z|0,q=U|0}return q!==0?P.words[J]=q|0:P.length--,P.strip()}var W=function(re,P,k){var B=re.words,z=P.words,ee=k.words,H=0,q,J,U,Z=B[0]|0,ve=Z&8191,Ye=Z>>>13,rt=B[1]|0,Ue=rt&8191,Qe=rt>>>13,vt=B[2]|0,ri=vt&8191,ci=vt>>>13,tt=B[3]|0,et=tt&8191,$e=tt>>>13,Le=B[4]|0,ot=Le&8191,Oe=Le>>>13,Ne=B[5]|0,Fe=Ne&8191,Je=Ne>>>13,Dt=B[6]|0,oi=Dt&8191,Bt=Dt>>>13,li=B[7]|0,ii=li&8191,Ot=li>>>13,St=B[8]|0,pi=St&8191,eM=St>>>13,hi=B[9]|0,mi=hi&8191,Dn=hi>>>13,tM=z[0]|0,oM=tM&8191,vM=tM>>>13,dM=z[1]|0,hM=dM&8191,_M=dM>>>13,uM=z[2]|0,pM=uM&8191,yM=uM>>>13,gM=z[3]|0,fM=gM&8191,kM=gM>>>13,IM=z[4]|0,DM=IM&8191,$M=IM>>>13,TM=z[5]|0,OM=TM&8191,UM=TM>>>13,AM=z[6]|0,RM=AM&8191,FM=AM>>>13,xM=z[7]|0,BM=xM&8191,WM=xM>>>13,SM=z[8]|0,jM=SM&8191,YM=SM>>>13,PM=z[9]|0,VM=PM&8191,HM=PM>>>13;k.negative=re.negative^P.negative,k.length=19,q=Math.imul(ve,oM),J=Math.imul(ve,vM),J=J+Math.imul(Ye,oM)|0,U=Math.imul(Ye,vM);var zM=(H+q|0)+((J&8191)<<13)|0;H=(U+(J>>>13)|0)+(zM>>>26)|0,zM&=67108863,q=Math.imul(Ue,oM),J=Math.imul(Ue,vM),J=J+Math.imul(Qe,oM)|0,U=Math.imul(Qe,vM),q=q+Math.imul(ve,hM)|0,J=J+Math.imul(ve,_M)|0,J=J+Math.imul(Ye,hM)|0,U=U+Math.imul(Ye,_M)|0;var KM=(H+q|0)+((J&8191)<<13)|0;H=(U+(J>>>13)|0)+(KM>>>26)|0,KM&=67108863,q=Math.imul(ri,oM),J=Math.imul(ri,vM),J=J+Math.imul(ci,oM)|0,U=Math.imul(ci,vM),q=q+Math.imul(Ue,hM)|0,J=J+Math.imul(Ue,_M)|0,J=J+Math.imul(Qe,hM)|0,U=U+Math.imul(Qe,_M)|0,q=q+Math.imul(ve,pM)|0,J=J+Math.imul(ve,yM)|0,J=J+Math.imul(Ye,pM)|0,U=U+Math.imul(Ye,yM)|0;var rN=(H+q|0)+((J&8191)<<13)|0;H=(U+(J>>>13)|0)+(rN>>>26)|0,rN&=67108863,q=Math.imul(et,oM),J=Math.imul(et,vM),J=J+Math.imul($e,oM)|0,U=Math.imul($e,vM),q=q+Math.imul(ri,hM)|0,J=J+Math.imul(ri,_M)|0,J=J+Math.imul(ci,hM)|0,U=U+Math.imul(ci,_M)|0,q=q+Math.imul(Ue,pM)|0,J=J+Math.imul(Ue,yM)|0,J=J+Math.imul(Qe,pM)|0,U=U+Math.imul(Qe,yM)|0,q=q+Math.imul(ve,fM)|0,J=J+Math.imul(ve,kM)|0,J=J+Math.imul(Ye,fM)|0,U=U+Math.imul(Ye,kM)|0;var eN=(H+q|0)+((J&8191)<<13)|0;H=(U+(J>>>13)|0)+(eN>>>26)|0,eN&=67108863,q=Math.imul(ot,oM),J=Math.imul(ot,vM),J=J+Math.imul(Oe,oM)|0,U=Math.imul(Oe,vM),q=q+Math.imul(et,hM)|0,J=J+Math.imul(et,_M)|0,J=J+Math.imul($e,hM)|0,U=U+Math.imul($e,_M)|0,q=q+Math.imul(ri,pM)|0,J=J+Math.imul(ri,yM)|0,J=J+Math.imul(ci,pM)|0,U=U+Math.imul(ci,yM)|0,q=q+Math.imul(Ue,fM)|0,J=J+Math.imul(Ue,kM)|0,J=J+Math.imul(Qe,fM)|0,U=U+Math.imul(Qe,kM)|0,q=q+Math.imul(ve,DM)|0,J=J+Math.imul(ve,$M)|0,J=J+Math.imul(Ye,DM)|0,U=U+Math.imul(Ye,$M)|0;var iN=(H+q|0)+((J&8191)<<13)|0;H=(U+(J>>>13)|0)+(iN>>>26)|0,iN&=67108863,q=Math.imul(Fe,oM),J=Math.imul(Fe,vM),J=J+Math.imul(Je,oM)|0,U=Math.imul(Je,vM),q=q+Math.imul(ot,hM)|0,J=J+Math.imul(ot,_M)|0,J=J+Math.imul(Oe,hM)|0,U=U+Math.imul(Oe,_M)|0,q=q+Math.imul(et,pM)|0,J=J+Math.imul(et,yM)|0,J=J+Math.imul($e,pM)|0,U=U+Math.imul($e,yM)|0,q=q+Math.imul(ri,fM)|0,J=J+Math.imul(ri,kM)|0,J=J+Math.imul(ci,fM)|0,U=U+Math.imul(ci,kM)|0,q=q+Math.imul(Ue,DM)|0,J=J+Math.imul(Ue,$M)|0,J=J+Math.imul(Qe,DM)|0,U=U+Math.imul(Qe,$M)|0,q=q+Math.imul(ve,OM)|0,J=J+Math.imul(ve,UM)|0,J=J+Math.imul(Ye,OM)|0,U=U+Math.imul(Ye,UM)|0;var ai=(H+q|0)+((J&8191)<<13)|0;H=(U+(J>>>13)|0)+(ai>>>26)|0,ai&=67108863,q=Math.imul(oi,oM),J=Math.imul(oi,vM),J=J+Math.imul(Bt,oM)|0,U=Math.imul(Bt,vM),q=q+Math.imul(Fe,hM)|0,J=J+Math.imul(Fe,_M)|0,J=J+Math.imul(Je,hM)|0,U=U+Math.imul(Je,_M)|0,q=q+Math.imul(ot,pM)|0,J=J+Math.imul(ot,yM)|0,J=J+Math.imul(Oe,pM)|0,U=U+Math.imul(Oe,yM)|0,q=q+Math.imul(et,fM)|0,J=J+Math.imul(et,kM)|0,J=J+Math.imul($e,fM)|0,U=U+Math.imul($e,kM)|0,q=q+Math.imul(ri,DM)|0,J=J+Math.imul(ri,$M)|0,J=J+Math.imul(ci,DM)|0,U=U+Math.imul(ci,$M)|0,q=q+Math.imul(Ue,OM)|0,J=J+Math.imul(Ue,UM)|0,J=J+Math.imul(Qe,OM)|0,U=U+Math.imul(Qe,UM)|0,q=q+Math.imul(ve,RM)|0,J=J+Math.imul(ve,FM)|0,J=J+Math.imul(Ye,RM)|0,U=U+Math.imul(Ye,FM)|0;var C=(H+q|0)+((J&8191)<<13)|0;H=(U+(J>>>13)|0)+(C>>>26)|0,C&=67108863,q=Math.imul(ii,oM),J=Math.imul(ii,vM),J=J+Math.imul(Ot,oM)|0,U=Math.imul(Ot,vM),q=q+Math.imul(oi,hM)|0,J=J+Math.imul(oi,_M)|0,J=J+Math.imul(Bt,hM)|0,U=U+Math.imul(Bt,_M)|0,q=q+Math.imul(Fe,pM)|0,J=J+Math.imul(Fe,yM)|0,J=J+Math.imul(Je,pM)|0,U=U+Math.imul(Je,yM)|0,q=q+Math.imul(ot,fM)|0,J=J+Math.imul(ot,kM)|0,J=J+Math.imul(Oe,fM)|0,U=U+Math.imul(Oe,kM)|0,q=q+Math.imul(et,DM)|0,J=J+Math.imul(et,$M)|0,J=J+Math.imul($e,DM)|0,U=U+Math.imul($e,$M)|0,q=q+Math.imul(ri,OM)|0,J=J+Math.imul(ri,UM)|0,J=J+Math.imul(ci,OM)|0,U=U+Math.imul(ci,UM)|0,q=q+Math.imul(Ue,RM)|0,J=J+Math.imul(Ue,FM)|0,J=J+Math.imul(Qe,RM)|0,U=U+Math.imul(Qe,FM)|0,q=q+Math.imul(ve,BM)|0,J=J+Math.imul(ve,WM)|0,J=J+Math.imul(Ye,BM)|0,U=U+Math.imul(Ye,WM)|0;var L=(H+q|0)+((J&8191)<<13)|0;H=(U+(J>>>13)|0)+(L>>>26)|0,L&=67108863,q=Math.imul(pi,oM),J=Math.imul(pi,vM),J=J+Math.imul(eM,oM)|0,U=Math.imul(eM,vM),q=q+Math.imul(ii,hM)|0,J=J+Math.imul(ii,_M)|0,J=J+Math.imul(Ot,hM)|0,U=U+Math.imul(Ot,_M)|0,q=q+Math.imul(oi,pM)|0,J=J+Math.imul(oi,yM)|0,J=J+Math.imul(Bt,pM)|0,U=U+Math.imul(Bt,yM)|0,q=q+Math.imul(Fe,fM)|0,J=J+Math.imul(Fe,kM)|0,J=J+Math.imul(Je,fM)|0,U=U+Math.imul(Je,kM)|0,q=q+Math.imul(ot,DM)|0,J=J+Math.imul(ot,$M)|0,J=J+Math.imul(Oe,DM)|0,U=U+Math.imul(Oe,$M)|0,q=q+Math.imul(et,OM)|0,J=J+Math.imul(et,UM)|0,J=J+Math.imul($e,OM)|0,U=U+Math.imul($e,UM)|0,q=q+Math.imul(ri,RM)|0,J=J+Math.imul(ri,FM)|0,J=J+Math.imul(ci,RM)|0,U=U+Math.imul(ci,FM)|0,q=q+Math.imul(Ue,BM)|0,J=J+Math.imul(Ue,WM)|0,J=J+Math.imul(Qe,BM)|0,U=U+Math.imul(Qe,WM)|0,q=q+Math.imul(ve,jM)|0,J=J+Math.imul(ve,YM)|0,J=J+Math.imul(Ye,jM)|0,U=U+Math.imul(Ye,YM)|0;var F=(H+q|0)+((J&8191)<<13)|0;H=(U+(J>>>13)|0)+(F>>>26)|0,F&=67108863,q=Math.imul(mi,oM),J=Math.imul(mi,vM),J=J+Math.imul(Dn,oM)|0,U=Math.imul(Dn,vM),q=q+Math.imul(pi,hM)|0,J=J+Math.imul(pi,_M)|0,J=J+Math.imul(eM,hM)|0,U=U+Math.imul(eM,_M)|0,q=q+Math.imul(ii,pM)|0,J=J+Math.imul(ii,yM)|0,J=J+Math.imul(Ot,pM)|0,U=U+Math.imul(Ot,yM)|0,q=q+Math.imul(oi,fM)|0,J=J+Math.imul(oi,kM)|0,J=J+Math.imul(Bt,fM)|0,U=U+Math.imul(Bt,kM)|0,q=q+Math.imul(Fe,DM)|0,J=J+Math.imul(Fe,$M)|0,J=J+Math.imul(Je,DM)|0,U=U+Math.imul(Je,$M)|0,q=q+Math.imul(ot,OM)|0,J=J+Math.imul(ot,UM)|0,J=J+Math.imul(Oe,OM)|0,U=U+Math.imul(Oe,UM)|0,q=q+Math.imul(et,RM)|0,J=J+Math.imul(et,FM)|0,J=J+Math.imul($e,RM)|0,U=U+Math.imul($e,FM)|0,q=q+Math.imul(ri,BM)|0,J=J+Math.imul(ri,WM)|0,J=J+Math.imul(ci,BM)|0,U=U+Math.imul(ci,WM)|0,q=q+Math.imul(Ue,jM)|0,J=J+Math.imul(Ue,YM)|0,J=J+Math.imul(Qe,jM)|0,U=U+Math.imul(Qe,YM)|0,q=q+Math.imul(ve,VM)|0,J=J+Math.imul(ve,HM)|0,J=J+Math.imul(Ye,VM)|0,U=U+Math.imul(Ye,HM)|0;var ne=(H+q|0)+((J&8191)<<13)|0;H=(U+(J>>>13)|0)+(ne>>>26)|0,ne&=67108863,q=Math.imul(mi,hM),J=Math.imul(mi,_M),J=J+Math.imul(Dn,hM)|0,U=Math.imul(Dn,_M),q=q+Math.imul(pi,pM)|0,J=J+Math.imul(pi,yM)|0,J=J+Math.imul(eM,pM)|0,U=U+Math.imul(eM,yM)|0,q=q+Math.imul(ii,fM)|0,J=J+Math.imul(ii,kM)|0,J=J+Math.imul(Ot,fM)|0,U=U+Math.imul(Ot,kM)|0,q=q+Math.imul(oi,DM)|0,J=J+Math.imul(oi,$M)|0,J=J+Math.imul(Bt,DM)|0,U=U+Math.imul(Bt,$M)|0,q=q+Math.imul(Fe,OM)|0,J=J+Math.imul(Fe,UM)|0,J=J+Math.imul(Je,OM)|0,U=U+Math.imul(Je,UM)|0,q=q+Math.imul(ot,RM)|0,J=J+Math.imul(ot,FM)|0,J=J+Math.imul(Oe,RM)|0,U=U+Math.imul(Oe,FM)|0,q=q+Math.imul(et,BM)|0,J=J+Math.imul(et,WM)|0,J=J+Math.imul($e,BM)|0,U=U+Math.imul($e,WM)|0,q=q+Math.imul(ri,jM)|0,J=J+Math.imul(ri,YM)|0,J=J+Math.imul(ci,jM)|0,U=U+Math.imul(ci,YM)|0,q=q+Math.imul(Ue,VM)|0,J=J+Math.imul(Ue,HM)|0,J=J+Math.imul(Qe,VM)|0,U=U+Math.imul(Qe,HM)|0;var ue=(H+q|0)+((J&8191)<<13)|0;H=(U+(J>>>13)|0)+(ue>>>26)|0,ue&=67108863,q=Math.imul(mi,pM),J=Math.imul(mi,yM),J=J+Math.imul(Dn,pM)|0,U=Math.imul(Dn,yM),q=q+Math.imul(pi,fM)|0,J=J+Math.imul(pi,kM)|0,J=J+Math.imul(eM,fM)|0,U=U+Math.imul(eM,kM)|0,q=q+Math.imul(ii,DM)|0,J=J+Math.imul(ii,$M)|0,J=J+Math.imul(Ot,DM)|0,U=U+Math.imul(Ot,$M)|0,q=q+Math.imul(oi,OM)|0,J=J+Math.imul(oi,UM)|0,J=J+Math.imul(Bt,OM)|0,U=U+Math.imul(Bt,UM)|0,q=q+Math.imul(Fe,RM)|0,J=J+Math.imul(Fe,FM)|0,J=J+Math.imul(Je,RM)|0,U=U+Math.imul(Je,FM)|0,q=q+Math.imul(ot,BM)|0,J=J+Math.imul(ot,WM)|0,J=J+Math.imul(Oe,BM)|0,U=U+Math.imul(Oe,WM)|0,q=q+Math.imul(et,jM)|0,J=J+Math.imul(et,YM)|0,J=J+Math.imul($e,jM)|0,U=U+Math.imul($e,YM)|0,q=q+Math.imul(ri,VM)|0,J=J+Math.imul(ri,HM)|0,J=J+Math.imul(ci,VM)|0,U=U+Math.imul(ci,HM)|0;var fe=(H+q|0)+((J&8191)<<13)|0;H=(U+(J>>>13)|0)+(fe>>>26)|0,fe&=67108863,q=Math.imul(mi,fM),J=Math.imul(mi,kM),J=J+Math.imul(Dn,fM)|0,U=Math.imul(Dn,kM),q=q+Math.imul(pi,DM)|0,J=J+Math.imul(pi,$M)|0,J=J+Math.imul(eM,DM)|0,U=U+Math.imul(eM,$M)|0,q=q+Math.imul(ii,OM)|0,J=J+Math.imul(ii,UM)|0,J=J+Math.imul(Ot,OM)|0,U=U+Math.imul(Ot,UM)|0,q=q+Math.imul(oi,RM)|0,J=J+Math.imul(oi,FM)|0,J=J+Math.imul(Bt,RM)|0,U=U+Math.imul(Bt,FM)|0,q=q+Math.imul(Fe,BM)|0,J=J+Math.imul(Fe,WM)|0,J=J+Math.imul(Je,BM)|0,U=U+Math.imul(Je,WM)|0,q=q+Math.imul(ot,jM)|0,J=J+Math.imul(ot,YM)|0,J=J+Math.imul(Oe,jM)|0,U=U+Math.imul(Oe,YM)|0,q=q+Math.imul(et,VM)|0,J=J+Math.imul(et,HM)|0,J=J+Math.imul($e,VM)|0,U=U+Math.imul($e,HM)|0;var me=(H+q|0)+((J&8191)<<13)|0;H=(U+(J>>>13)|0)+(me>>>26)|0,me&=67108863,q=Math.imul(mi,DM),J=Math.imul(mi,$M),J=J+Math.imul(Dn,DM)|0,U=Math.imul(Dn,$M),q=q+Math.imul(pi,OM)|0,J=J+Math.imul(pi,UM)|0,J=J+Math.imul(eM,OM)|0,U=U+Math.imul(eM,UM)|0,q=q+Math.imul(ii,RM)|0,J=J+Math.imul(ii,FM)|0,J=J+Math.imul(Ot,RM)|0,U=U+Math.imul(Ot,FM)|0,q=q+Math.imul(oi,BM)|0,J=J+Math.imul(oi,WM)|0,J=J+Math.imul(Bt,BM)|0,U=U+Math.imul(Bt,WM)|0,q=q+Math.imul(Fe,jM)|0,J=J+Math.imul(Fe,YM)|0,J=J+Math.imul(Je,jM)|0,U=U+Math.imul(Je,YM)|0,q=q+Math.imul(ot,VM)|0,J=J+Math.imul(ot,HM)|0,J=J+Math.imul(Oe,VM)|0,U=U+Math.imul(Oe,HM)|0;var Pe=(H+q|0)+((J&8191)<<13)|0;H=(U+(J>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,q=Math.imul(mi,OM),J=Math.imul(mi,UM),J=J+Math.imul(Dn,OM)|0,U=Math.imul(Dn,UM),q=q+Math.imul(pi,RM)|0,J=J+Math.imul(pi,FM)|0,J=J+Math.imul(eM,RM)|0,U=U+Math.imul(eM,FM)|0,q=q+Math.imul(ii,BM)|0,J=J+Math.imul(ii,WM)|0,J=J+Math.imul(Ot,BM)|0,U=U+Math.imul(Ot,WM)|0,q=q+Math.imul(oi,jM)|0,J=J+Math.imul(oi,YM)|0,J=J+Math.imul(Bt,jM)|0,U=U+Math.imul(Bt,YM)|0,q=q+Math.imul(Fe,VM)|0,J=J+Math.imul(Fe,HM)|0,J=J+Math.imul(Je,VM)|0,U=U+Math.imul(Je,HM)|0;var Re=(H+q|0)+((J&8191)<<13)|0;H=(U+(J>>>13)|0)+(Re>>>26)|0,Re&=67108863,q=Math.imul(mi,RM),J=Math.imul(mi,FM),J=J+Math.imul(Dn,RM)|0,U=Math.imul(Dn,FM),q=q+Math.imul(pi,BM)|0,J=J+Math.imul(pi,WM)|0,J=J+Math.imul(eM,BM)|0,U=U+Math.imul(eM,WM)|0,q=q+Math.imul(ii,jM)|0,J=J+Math.imul(ii,YM)|0,J=J+Math.imul(Ot,jM)|0,U=U+Math.imul(Ot,YM)|0,q=q+Math.imul(oi,VM)|0,J=J+Math.imul(oi,HM)|0,J=J+Math.imul(Bt,VM)|0,U=U+Math.imul(Bt,HM)|0;var Xe=(H+q|0)+((J&8191)<<13)|0;H=(U+(J>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,q=Math.imul(mi,BM),J=Math.imul(mi,WM),J=J+Math.imul(Dn,BM)|0,U=Math.imul(Dn,WM),q=q+Math.imul(pi,jM)|0,J=J+Math.imul(pi,YM)|0,J=J+Math.imul(eM,jM)|0,U=U+Math.imul(eM,YM)|0,q=q+Math.imul(ii,VM)|0,J=J+Math.imul(ii,HM)|0,J=J+Math.imul(Ot,VM)|0,U=U+Math.imul(Ot,HM)|0;var qe=(H+q|0)+((J&8191)<<13)|0;H=(U+(J>>>13)|0)+(qe>>>26)|0,qe&=67108863,q=Math.imul(mi,jM),J=Math.imul(mi,YM),J=J+Math.imul(Dn,jM)|0,U=Math.imul(Dn,YM),q=q+Math.imul(pi,VM)|0,J=J+Math.imul(pi,HM)|0,J=J+Math.imul(eM,VM)|0,U=U+Math.imul(eM,HM)|0;var Ke=(H+q|0)+((J&8191)<<13)|0;H=(U+(J>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,q=Math.imul(mi,VM),J=Math.imul(mi,HM),J=J+Math.imul(Dn,VM)|0,U=Math.imul(Dn,HM);var nt=(H+q|0)+((J&8191)<<13)|0;return H=(U+(J>>>13)|0)+(nt>>>26)|0,nt&=67108863,ee[0]=zM,ee[1]=KM,ee[2]=rN,ee[3]=eN,ee[4]=iN,ee[5]=ai,ee[6]=C,ee[7]=L,ee[8]=F,ee[9]=ne,ee[10]=ue,ee[11]=fe,ee[12]=me,ee[13]=Pe,ee[14]=Re,ee[15]=Xe,ee[16]=qe,ee[17]=Ke,ee[18]=nt,H!==0&&(ee[19]=H,k.length++),k};Math.imul||(W=$);function Q(le,re,P){P.negative=re.negative^le.negative,P.length=le.length+re.length;for(var k=0,B=0,z=0;z<P.length-1;z++){var ee=B;B=0;for(var H=k&67108863,q=Math.min(z,re.length-1),J=Math.max(0,z-le.length+1);J<=q;J++){var U=z-J,Z=le.words[U]|0,ve=re.words[J]|0,Ye=Z*ve,rt=Ye&67108863;ee=ee+(Ye/67108864|0)|0,rt=rt+H|0,H=rt&67108863,ee=ee+(rt>>>26)|0,B+=ee>>>26,ee&=67108863}P.words[z]=H,k=ee,ee=B}return k!==0?P.words[z]=k:P.length--,P.strip()}function X(le,re,P){var k=new Y;return k.mulp(le,re,P)}I.prototype.mulTo=function(re,P){var k,B=this.length+re.length;return this.length===10&&re.length===10?k=W(this,re,P):B<63?k=$(this,re,P):B<1024?k=Q(this,re,P):k=X(this,re,P),k};function Y(le,re){this.x=le,this.y=re}Y.prototype.makeRBT=function(re){for(var P=new Array(re),k=I.prototype._countBits(re)-1,B=0;B<re;B++)P[B]=this.revBin(B,k,re);return P},Y.prototype.revBin=function(re,P,k){if(re===0||re===k-1)return re;for(var B=0,z=0;z<P;z++)B|=(re&1)<<P-z-1,re>>=1;return B},Y.prototype.permute=function(re,P,k,B,z,ee){for(var H=0;H<ee;H++)B[H]=P[re[H]],z[H]=k[re[H]]},Y.prototype.transform=function(re,P,k,B,z,ee){this.permute(ee,re,P,k,B,z);for(var H=1;H<z;H<<=1)for(var q=H<<1,J=Math.cos(2*Math.PI/q),U=Math.sin(2*Math.PI/q),Z=0;Z<z;Z+=q)for(var ve=J,Ye=U,rt=0;rt<H;rt++){var Ue=k[Z+rt],Qe=B[Z+rt],vt=k[Z+rt+H],ri=B[Z+rt+H],ci=ve*vt-Ye*ri;ri=ve*ri+Ye*vt,vt=ci,k[Z+rt]=Ue+vt,B[Z+rt]=Qe+ri,k[Z+rt+H]=Ue-vt,B[Z+rt+H]=Qe-ri,rt!==q&&(ci=J*ve-U*Ye,Ye=J*Ye+U*ve,ve=ci)}},Y.prototype.guessLen13b=function(re,P){var k=Math.max(P,re)|1,B=k&1,z=0;for(k=k/2|0;k;k=k>>>1)z++;return 1<<z+1+B},Y.prototype.conjugate=function(re,P,k){if(!(k<=1))for(var B=0;B<k/2;B++){var z=re[B];re[B]=re[k-B-1],re[k-B-1]=z,z=P[B],P[B]=-P[k-B-1],P[k-B-1]=-z}},Y.prototype.normalize13b=function(re,P){for(var k=0,B=0;B<P/2;B++){var z=Math.round(re[2*B+1]/P)*8192+Math.round(re[2*B]/P)+k;re[B]=z&67108863,z<67108864?k=0:k=z/67108864|0}return re},Y.prototype.convert13b=function(re,P,k,B){for(var z=0,ee=0;ee<P;ee++)z=z+(re[ee]|0),k[2*ee]=z&8191,z=z>>>13,k[2*ee+1]=z&8191,z=z>>>13;for(ee=2*P;ee<B;++ee)k[ee]=0;_(z===0),_((z&-8192)===0)},Y.prototype.stub=function(re){for(var P=new Array(re),k=0;k<re;k++)P[k]=0;return P},Y.prototype.mulp=function(re,P,k){var B=2*this.guessLen13b(re.length,P.length),z=this.makeRBT(B),ee=this.stub(B),H=new Array(B),q=new Array(B),J=new Array(B),U=new Array(B),Z=new Array(B),ve=new Array(B),Ye=k.words;Ye.length=B,this.convert13b(re.words,re.length,H,B),this.convert13b(P.words,P.length,U,B),this.transform(H,ee,q,J,B,z),this.transform(U,ee,Z,ve,B,z);for(var rt=0;rt<B;rt++){var Ue=q[rt]*Z[rt]-J[rt]*ve[rt];J[rt]=q[rt]*ve[rt]+J[rt]*Z[rt],q[rt]=Ue}return this.conjugate(q,J,B),this.transform(q,J,Ye,ee,B,z),this.conjugate(Ye,ee,B),this.normalize13b(Ye,B),k.negative=re.negative^P.negative,k.length=re.length+P.length,k.strip()},I.prototype.mul=function(re){var P=new I(null);return P.words=new Array(this.length+re.length),this.mulTo(re,P)},I.prototype.mulf=function(re){var P=new I(null);return P.words=new Array(this.length+re.length),X(this,re,P)},I.prototype.imul=function(re){return this.clone().mulTo(re,this)},I.prototype.imuln=function(re){_(typeof re=="number"),_(re<67108864);for(var P=0,k=0;k<this.length;k++){var B=(this.words[k]|0)*re,z=(B&67108863)+(P&67108863);P>>=26,P+=B/67108864|0,P+=z>>>26,this.words[k]=z&67108863}return P!==0&&(this.words[k]=P,this.length++),this},I.prototype.muln=function(re){return this.clone().imuln(re)},I.prototype.sqr=function(){return this.mul(this)},I.prototype.isqr=function(){return this.imul(this.clone())},I.prototype.pow=function(re){var P=j(re);if(P.length===0)return new I(1);for(var k=this,B=0;B<P.length&&P[B]===0;B++,k=k.sqr());if(++B<P.length)for(var z=k.sqr();B<P.length;B++,z=z.sqr())P[B]!==0&&(k=k.mul(z));return k},I.prototype.iushln=function(re){_(typeof re=="number"&&re>=0);var P=re%26,k=(re-P)/26,B=67108863>>>26-P<<26-P,z;if(P!==0){var ee=0;for(z=0;z<this.length;z++){var H=this.words[z]&B,q=(this.words[z]|0)-H<<P;this.words[z]=q|ee,ee=H>>>26-P}ee&&(this.words[z]=ee,this.length++)}if(k!==0){for(z=this.length-1;z>=0;z--)this.words[z+k]=this.words[z];for(z=0;z<k;z++)this.words[z]=0;this.length+=k}return this.strip()},I.prototype.ishln=function(re){return _(this.negative===0),this.iushln(re)},I.prototype.iushrn=function(re,P,k){_(typeof re=="number"&&re>=0);var B;P?B=(P-P%26)/26:B=0;var z=re%26,ee=Math.min((re-z)/26,this.length),H=67108863^67108863>>>z<<z,q=k;if(B-=ee,B=Math.max(0,B),q){for(var J=0;J<ee;J++)q.words[J]=this.words[J];q.length=ee}if(ee!==0)if(this.length>ee)for(this.length-=ee,J=0;J<this.length;J++)this.words[J]=this.words[J+ee];else this.words[0]=0,this.length=1;var U=0;for(J=this.length-1;J>=0&&(U!==0||J>=B);J--){var Z=this.words[J]|0;this.words[J]=U<<26-z|Z>>>z,U=Z&H}return q&&U!==0&&(q.words[q.length++]=U),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},I.prototype.ishrn=function(re,P,k){return _(this.negative===0),this.iushrn(re,P,k)},I.prototype.shln=function(re){return this.clone().ishln(re)},I.prototype.ushln=function(re){return this.clone().iushln(re)},I.prototype.shrn=function(re){return this.clone().ishrn(re)},I.prototype.ushrn=function(re){return this.clone().iushrn(re)},I.prototype.testn=function(re){_(typeof re=="number"&&re>=0);var P=re%26,k=(re-P)/26,B=1<<P;if(this.length<=k)return!1;var z=this.words[k];return!!(z&B)},I.prototype.imaskn=function(re){_(typeof re=="number"&&re>=0);var P=re%26,k=(re-P)/26;if(_(this.negative===0,"imaskn works only with positive numbers"),this.length<=k)return this;if(P!==0&&k++,this.length=Math.min(k,this.length),P!==0){var B=67108863^67108863>>>P<<P;this.words[this.length-1]&=B}return this.strip()},I.prototype.maskn=function(re){return this.clone().imaskn(re)},I.prototype.iaddn=function(re){return _(typeof re=="number"),_(re<67108864),re<0?this.isubn(-re):this.negative!==0?this.length===1&&(this.words[0]|0)<re?(this.words[0]=re-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(re),this.negative=1,this):this._iaddn(re)},I.prototype._iaddn=function(re){this.words[0]+=re;for(var P=0;P<this.length&&this.words[P]>=67108864;P++)this.words[P]-=67108864,P===this.length-1?this.words[P+1]=1:this.words[P+1]++;return this.length=Math.max(this.length,P+1),this},I.prototype.isubn=function(re){if(_(typeof re=="number"),_(re<67108864),re<0)return this.iaddn(-re);if(this.negative!==0)return this.negative=0,this.iaddn(re),this.negative=1,this;if(this.words[0]-=re,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var P=0;P<this.length&&this.words[P]<0;P++)this.words[P]+=67108864,this.words[P+1]-=1;return this.strip()},I.prototype.addn=function(re){return this.clone().iaddn(re)},I.prototype.subn=function(re){return this.clone().isubn(re)},I.prototype.iabs=function(){return this.negative=0,this},I.prototype.abs=function(){return this.clone().iabs()},I.prototype._ishlnsubmul=function(re,P,k){var B=re.length+k,z;this._expand(B);var ee,H=0;for(z=0;z<re.length;z++){ee=(this.words[z+k]|0)+H;var q=(re.words[z]|0)*P;ee-=q&67108863,H=(ee>>26)-(q/67108864|0),this.words[z+k]=ee&67108863}for(;z<this.length-k;z++)ee=(this.words[z+k]|0)+H,H=ee>>26,this.words[z+k]=ee&67108863;if(H===0)return this.strip();for(_(H===-1),H=0,z=0;z<this.length;z++)ee=-(this.words[z]|0)+H,H=ee>>26,this.words[z]=ee&67108863;return this.negative=1,this.strip()},I.prototype._wordDiv=function(re,P){var k=this.length-re.length,B=this.clone(),z=re,ee=z.words[z.length-1]|0,H=this._countBits(ee);k=26-H,k!==0&&(z=z.ushln(k),B.iushln(k),ee=z.words[z.length-1]|0);var q=B.length-z.length,J;if(P!=="mod"){J=new I(null),J.length=q+1,J.words=new Array(J.length);for(var U=0;U<J.length;U++)J.words[U]=0}var Z=B.clone()._ishlnsubmul(z,1,q);Z.negative===0&&(B=Z,J&&(J.words[q]=1));for(var ve=q-1;ve>=0;ve--){var Ye=(B.words[z.length+ve]|0)*67108864+(B.words[z.length+ve-1]|0);for(Ye=Math.min(Ye/ee|0,67108863),B._ishlnsubmul(z,Ye,ve);B.negative!==0;)Ye--,B.negative=0,B._ishlnsubmul(z,1,ve),B.isZero()||(B.negative^=1);J&&(J.words[ve]=Ye)}return J&&J.strip(),B.strip(),P!=="div"&&k!==0&&B.iushrn(k),{div:J||null,mod:B}},I.prototype.divmod=function(re,P,k){if(_(!re.isZero()),this.isZero())return{div:new I(0),mod:new I(0)};var B,z,ee;return this.negative!==0&&re.negative===0?(ee=this.neg().divmod(re,P),P!=="mod"&&(B=ee.div.neg()),P!=="div"&&(z=ee.mod.neg(),k&&z.negative!==0&&z.iadd(re)),{div:B,mod:z}):this.negative===0&&re.negative!==0?(ee=this.divmod(re.neg(),P),P!=="mod"&&(B=ee.div.neg()),{div:B,mod:ee.mod}):this.negative&re.negative?(ee=this.neg().divmod(re.neg(),P),P!=="div"&&(z=ee.mod.neg(),k&&z.negative!==0&&z.isub(re)),{div:ee.div,mod:z}):re.length>this.length||this.cmp(re)<0?{div:new I(0),mod:this}:re.length===1?P==="div"?{div:this.divn(re.words[0]),mod:null}:P==="mod"?{div:null,mod:new I(this.modn(re.words[0]))}:{div:this.divn(re.words[0]),mod:new I(this.modn(re.words[0]))}:this._wordDiv(re,P)},I.prototype.div=function(re){return this.divmod(re,"div",!1).div},I.prototype.mod=function(re){return this.divmod(re,"mod",!1).mod},I.prototype.umod=function(re){return this.divmod(re,"mod",!0).mod},I.prototype.divRound=function(re){var P=this.divmod(re);if(P.mod.isZero())return P.div;var k=P.div.negative!==0?P.mod.isub(re):P.mod,B=re.ushrn(1),z=re.andln(1),ee=k.cmp(B);return ee<0||z===1&&ee===0?P.div:P.div.negative!==0?P.div.isubn(1):P.div.iaddn(1)},I.prototype.modn=function(re){_(re<=67108863);for(var P=(1<<26)%re,k=0,B=this.length-1;B>=0;B--)k=(P*k+(this.words[B]|0))%re;return k},I.prototype.idivn=function(re){_(re<=67108863);for(var P=0,k=this.length-1;k>=0;k--){var B=(this.words[k]|0)+P*67108864;this.words[k]=B/re|0,P=B%re}return this.strip()},I.prototype.divn=function(re){return this.clone().idivn(re)},I.prototype.egcd=function(re){_(re.negative===0),_(!re.isZero());var P=this,k=re.clone();P.negative!==0?P=P.umod(re):P=P.clone();for(var B=new I(1),z=new I(0),ee=new I(0),H=new I(1),q=0;P.isEven()&&k.isEven();)P.iushrn(1),k.iushrn(1),++q;for(var J=k.clone(),U=P.clone();!P.isZero();){for(var Z=0,ve=1;!(P.words[0]&ve)&&Z<26;++Z,ve<<=1);if(Z>0)for(P.iushrn(Z);Z-- >0;)(B.isOdd()||z.isOdd())&&(B.iadd(J),z.isub(U)),B.iushrn(1),z.iushrn(1);for(var Ye=0,rt=1;!(k.words[0]&rt)&&Ye<26;++Ye,rt<<=1);if(Ye>0)for(k.iushrn(Ye);Ye-- >0;)(ee.isOdd()||H.isOdd())&&(ee.iadd(J),H.isub(U)),ee.iushrn(1),H.iushrn(1);P.cmp(k)>=0?(P.isub(k),B.isub(ee),z.isub(H)):(k.isub(P),ee.isub(B),H.isub(z))}return{a:ee,b:H,gcd:k.iushln(q)}},I.prototype._invmp=function(re){_(re.negative===0),_(!re.isZero());var P=this,k=re.clone();P.negative!==0?P=P.umod(re):P=P.clone();for(var B=new I(1),z=new I(0),ee=k.clone();P.cmpn(1)>0&&k.cmpn(1)>0;){for(var H=0,q=1;!(P.words[0]&q)&&H<26;++H,q<<=1);if(H>0)for(P.iushrn(H);H-- >0;)B.isOdd()&&B.iadd(ee),B.iushrn(1);for(var J=0,U=1;!(k.words[0]&U)&&J<26;++J,U<<=1);if(J>0)for(k.iushrn(J);J-- >0;)z.isOdd()&&z.iadd(ee),z.iushrn(1);P.cmp(k)>=0?(P.isub(k),B.isub(z)):(k.isub(P),z.isub(B))}var Z;return P.cmpn(1)===0?Z=B:Z=z,Z.cmpn(0)<0&&Z.iadd(re),Z},I.prototype.gcd=function(re){if(this.isZero())return re.abs();if(re.isZero())return this.abs();var P=this.clone(),k=re.clone();P.negative=0,k.negative=0;for(var B=0;P.isEven()&&k.isEven();B++)P.iushrn(1),k.iushrn(1);do{for(;P.isEven();)P.iushrn(1);for(;k.isEven();)k.iushrn(1);var z=P.cmp(k);if(z<0){var ee=P;P=k,k=ee}else if(z===0||k.cmpn(1)===0)break;P.isub(k)}while(!0);return k.iushln(B)},I.prototype.invm=function(re){return this.egcd(re).a.umod(re)},I.prototype.isEven=function(){return(this.words[0]&1)===0},I.prototype.isOdd=function(){return(this.words[0]&1)===1},I.prototype.andln=function(re){return this.words[0]&re},I.prototype.bincn=function(re){_(typeof re=="number");var P=re%26,k=(re-P)/26,B=1<<P;if(this.length<=k)return this._expand(k+1),this.words[k]|=B,this;for(var z=B,ee=k;z!==0&&ee<this.length;ee++){var H=this.words[ee]|0;H+=z,z=H>>>26,H&=67108863,this.words[ee]=H}return z!==0&&(this.words[ee]=z,this.length++),this},I.prototype.isZero=function(){return this.length===1&&this.words[0]===0},I.prototype.cmpn=function(re){var P=re<0;if(this.negative!==0&&!P)return-1;if(this.negative===0&&P)return 1;this.strip();var k;if(this.length>1)k=1;else{P&&(re=-re),_(re<=67108863,"Number is too big");var B=this.words[0]|0;k=B===re?0:B<re?-1:1}return this.negative!==0?-k|0:k},I.prototype.cmp=function(re){if(this.negative!==0&&re.negative===0)return-1;if(this.negative===0&&re.negative!==0)return 1;var P=this.ucmp(re);return this.negative!==0?-P|0:P},I.prototype.ucmp=function(re){if(this.length>re.length)return 1;if(this.length<re.length)return-1;for(var P=0,k=this.length-1;k>=0;k--){var B=this.words[k]|0,z=re.words[k]|0;if(B!==z){B<z?P=-1:B>z&&(P=1);break}}return P},I.prototype.gtn=function(re){return this.cmpn(re)===1},I.prototype.gt=function(re){return this.cmp(re)===1},I.prototype.gten=function(re){return this.cmpn(re)>=0},I.prototype.gte=function(re){return this.cmp(re)>=0},I.prototype.ltn=function(re){return this.cmpn(re)===-1},I.prototype.lt=function(re){return this.cmp(re)===-1},I.prototype.lten=function(re){return this.cmpn(re)<=0},I.prototype.lte=function(re){return this.cmp(re)<=0},I.prototype.eqn=function(re){return this.cmpn(re)===0},I.prototype.eq=function(re){return this.cmp(re)===0},I.red=function(re){return new Ce(re)},I.prototype.toRed=function(re){return _(!this.red,"Already a number in reduction context"),_(this.negative===0,"red works only with positives"),re.convertTo(this)._forceRed(re)},I.prototype.fromRed=function(){return _(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},I.prototype._forceRed=function(re){return this.red=re,this},I.prototype.forceRed=function(re){return _(!this.red,"Already a number in reduction context"),this._forceRed(re)},I.prototype.redAdd=function(re){return _(this.red,"redAdd works only with red numbers"),this.red.add(this,re)},I.prototype.redIAdd=function(re){return _(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,re)},I.prototype.redSub=function(re){return _(this.red,"redSub works only with red numbers"),this.red.sub(this,re)},I.prototype.redISub=function(re){return _(this.red,"redISub works only with red numbers"),this.red.isub(this,re)},I.prototype.redShl=function(re){return _(this.red,"redShl works only with red numbers"),this.red.shl(this,re)},I.prototype.redMul=function(re){return _(this.red,"redMul works only with red numbers"),this.red._verify2(this,re),this.red.mul(this,re)},I.prototype.redIMul=function(re){return _(this.red,"redMul works only with red numbers"),this.red._verify2(this,re),this.red.imul(this,re)},I.prototype.redSqr=function(){return _(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},I.prototype.redISqr=function(){return _(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},I.prototype.redSqrt=function(){return _(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},I.prototype.redInvm=function(){return _(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},I.prototype.redNeg=function(){return _(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},I.prototype.redPow=function(re){return _(this.red&&!re.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,re)};var ie={k256:null,p224:null,p192:null,p25519:null};function oe(le,re){this.name=le,this.p=new I(re,16),this.n=this.p.bitLength(),this.k=new I(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}oe.prototype._tmp=function(){var re=new I(null);return re.words=new Array(Math.ceil(this.n/13)),re},oe.prototype.ireduce=function(re){var P=re,k;do this.split(P,this.tmp),P=this.imulK(P),P=P.iadd(this.tmp),k=P.bitLength();while(k>this.n);var B=k<this.n?-1:P.ucmp(this.p);return B===0?(P.words[0]=0,P.length=1):B>0?P.isub(this.p):P.strip!==void 0?P.strip():P._strip(),P},oe.prototype.split=function(re,P){re.iushrn(this.n,0,P)},oe.prototype.imulK=function(re){return re.imul(this.k)};function ge(){oe.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}x(ge,oe),ge.prototype.split=function(re,P){for(var k=4194303,B=Math.min(re.length,9),z=0;z<B;z++)P.words[z]=re.words[z];if(P.length=B,re.length<=9){re.words[0]=0,re.length=1;return}var ee=re.words[9];for(P.words[P.length++]=ee&k,z=10;z<re.length;z++){var H=re.words[z]|0;re.words[z-10]=(H&k)<<4|ee>>>22,ee=H}ee>>>=22,re.words[z-10]=ee,ee===0&&re.length>10?re.length-=10:re.length-=9},ge.prototype.imulK=function(re){re.words[re.length]=0,re.words[re.length+1]=0,re.length+=2;for(var P=0,k=0;k<re.length;k++){var B=re.words[k]|0;P+=B*977,re.words[k]=P&67108863,P=B*64+(P/67108864|0)}return re.words[re.length-1]===0&&(re.length--,re.words[re.length-1]===0&&re.length--),re};function be(){oe.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}x(be,oe);function ze(){oe.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}x(ze,oe);function de(){oe.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}x(de,oe),de.prototype.imulK=function(re){for(var P=0,k=0;k<re.length;k++){var B=(re.words[k]|0)*19+P,z=B&67108863;B>>>=26,re.words[k]=z,P=B}return P!==0&&(re.words[re.length++]=P),re},I._prime=function(re){if(ie[re])return ie[re];var P;if(re==="k256")P=new ge;else if(re==="p224")P=new be;else if(re==="p192")P=new ze;else if(re==="p25519")P=new de;else throw new Error("Unknown prime "+re);return ie[re]=P,P};function Ce(le){if(typeof le=="string"){var re=I._prime(le);this.m=re.p,this.prime=re}else _(le.gtn(1),"modulus must be greater than 1"),this.m=le,this.prime=null}Ce.prototype._verify1=function(re){_(re.negative===0,"red works only with positives"),_(re.red,"red works only with red numbers")},Ce.prototype._verify2=function(re,P){_((re.negative|P.negative)===0,"red works only with positives"),_(re.red&&re.red===P.red,"red works only with red numbers")},Ce.prototype.imod=function(re){return this.prime?this.prime.ireduce(re)._forceRed(this):re.umod(this.m)._forceRed(this)},Ce.prototype.neg=function(re){return re.isZero()?re.clone():this.m.sub(re)._forceRed(this)},Ce.prototype.add=function(re,P){this._verify2(re,P);var k=re.add(P);return k.cmp(this.m)>=0&&k.isub(this.m),k._forceRed(this)},Ce.prototype.iadd=function(re,P){this._verify2(re,P);var k=re.iadd(P);return k.cmp(this.m)>=0&&k.isub(this.m),k},Ce.prototype.sub=function(re,P){this._verify2(re,P);var k=re.sub(P);return k.cmpn(0)<0&&k.iadd(this.m),k._forceRed(this)},Ce.prototype.isub=function(re,P){this._verify2(re,P);var k=re.isub(P);return k.cmpn(0)<0&&k.iadd(this.m),k},Ce.prototype.shl=function(re,P){return this._verify1(re),this.imod(re.ushln(P))},Ce.prototype.imul=function(re,P){return this._verify2(re,P),this.imod(re.imul(P))},Ce.prototype.mul=function(re,P){return this._verify2(re,P),this.imod(re.mul(P))},Ce.prototype.isqr=function(re){return this.imul(re,re.clone())},Ce.prototype.sqr=function(re){return this.mul(re,re)},Ce.prototype.sqrt=function(re){if(re.isZero())return re.clone();var P=this.m.andln(3);if(_(P%2===1),P===3){var k=this.m.add(new I(1)).iushrn(2);return this.pow(re,k)}for(var B=this.m.subn(1),z=0;!B.isZero()&&B.andln(1)===0;)z++,B.iushrn(1);_(!B.isZero());var ee=new I(1).toRed(this),H=ee.redNeg(),q=this.m.subn(1).iushrn(1),J=this.m.bitLength();for(J=new I(2*J*J).toRed(this);this.pow(J,q).cmp(H)!==0;)J.redIAdd(H);for(var U=this.pow(J,B),Z=this.pow(re,B.addn(1).iushrn(1)),ve=this.pow(re,B),Ye=z;ve.cmp(ee)!==0;){for(var rt=ve,Ue=0;rt.cmp(ee)!==0;Ue++)rt=rt.redSqr();_(Ue<Ye);var Qe=this.pow(U,new I(1).iushln(Ye-Ue-1));Z=Z.redMul(Qe),U=Qe.redSqr(),ve=ve.redMul(U),Ye=Ue}return Z},Ce.prototype.invm=function(re){var P=re._invmp(this.m);return P.negative!==0?(P.negative=0,this.imod(P).redNeg()):this.imod(P)},Ce.prototype.pow=function(re,P){if(P.isZero())return new I(1).toRed(this);if(P.cmpn(1)===0)return re.clone();var k=4,B=new Array(1<<k);B[0]=new I(1).toRed(this),B[1]=re;for(var z=2;z<B.length;z++)B[z]=this.mul(B[z-1],re);var ee=B[0],H=0,q=0,J=P.bitLength()%26;for(J===0&&(J=26),z=P.length-1;z>=0;z--){for(var U=P.words[z],Z=J-1;Z>=0;Z--){var ve=U>>Z&1;if(ee!==B[0]&&(ee=this.sqr(ee)),ve===0&&H===0){q=0;continue}H<<=1,H|=ve,q++,!(q!==k&&(z!==0||Z!==0))&&(ee=this.mul(ee,B[H]),q=0,H=0)}J=26}return ee},Ce.prototype.convertTo=function(re){var P=re.umod(this.m);return P===re?P.clone():P},Ce.prototype.convertFrom=function(re){var P=re.clone();return P.red=null,P},I.mont=function(re){return new ke(re)};function ke(le){Ce.call(this,le),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new I(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}x(ke,Ce),ke.prototype.convertTo=function(re){return this.imod(re.ushln(this.shift))},ke.prototype.convertFrom=function(re){var P=this.imod(re.mul(this.rinv));return P.red=null,P},ke.prototype.imul=function(re,P){if(re.isZero()||P.isZero())return re.words[0]=0,re.length=1,re;var k=re.imul(P),B=k.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),z=k.isub(B).iushrn(this.shift),ee=z;return z.cmp(this.m)>=0?ee=z.isub(this.m):z.cmpn(0)<0&&(ee=z.iadd(this.m)),ee._forceRed(this)},ke.prototype.mul=function(re,P){if(re.isZero()||P.isZero())return new I(0)._forceRed(this);var k=re.mul(P),B=k.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),z=k.isub(B).iushrn(this.shift),ee=z;return z.cmp(this.m)>=0?ee=z.isub(this.m):z.cmpn(0)<0&&(ee=z.iadd(this.m)),ee._forceRed(this)},ke.prototype.invm=function(re){var P=this.imod(re._invmp(this.m).mul(this.r2));return P._forceRed(this)}})(u,commonjsGlobal$1)}(bn$2)),bn$2.exports}var brorand={exports:{}},hasRequiredBrorand;function requireBrorand(){if(hasRequiredBrorand)return brorand.exports;hasRequiredBrorand=1;var u;brorand.exports=function(x){return u||(u=new f(null)),u.generate(x)};function f(_){this.rand=_}if(brorand.exports.Rand=f,f.prototype.generate=function(x){return this._rand(x)},f.prototype._rand=function(x){if(this.rand.getBytes)return this.rand.getBytes(x);for(var I=new Uint8Array(x),E=0;E<I.length;E++)I[E]=this.rand.getByte();return I},typeof self=="object")self.crypto&&self.crypto.getRandomValues?f.prototype._rand=function(x){var I=new Uint8Array(x);return self.crypto.getRandomValues(I),I}:self.msCrypto&&self.msCrypto.getRandomValues?f.prototype._rand=function(x){var I=new Uint8Array(x);return self.msCrypto.getRandomValues(I),I}:typeof window=="object"&&(f.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var d=requireCryptoBrowserify();if(typeof d.randomBytes!="function")throw new Error("Not supported");f.prototype._rand=function(x){return d.randomBytes(x)}}catch{}return brorand.exports}var mr,hasRequiredMr;function requireMr(){if(hasRequiredMr)return mr;hasRequiredMr=1;var u=requireBn$2(),f=requireBrorand();function d(_){this.rand=_||new f.Rand}return mr=d,d.create=function(x){return new d(x)},d.prototype._randbelow=function(x){var I=x.bitLength(),E=Math.ceil(I/8);do var M=new u(this.rand.generate(E));while(M.cmp(x)>=0);return M},d.prototype._randrange=function(x,I){var E=I.sub(x);return x.add(this._randbelow(E))},d.prototype.test=function(x,I,E){var M=x.bitLength(),S=u.mont(x),A=new u(1).toRed(S);I||(I=Math.max(1,M/48|0));for(var T=x.subn(1),D=0;!T.testn(D);D++);for(var O=x.shrn(D),j=T.toRed(S),$=!0;I>0;I--){var W=this._randrange(new u(2),T);E&&E(W);var Q=W.toRed(S).redPow(O);if(!(Q.cmp(A)===0||Q.cmp(j)===0)){for(var X=1;X<D;X++){if(Q=Q.redSqr(),Q.cmp(A)===0)return!1;if(Q.cmp(j)===0)break}if(X===D)return!1}}return $},d.prototype.getDivisor=function(x,I){var E=x.bitLength(),M=u.mont(x),S=new u(1).toRed(M);I||(I=Math.max(1,E/48|0));for(var A=x.subn(1),T=0;!A.testn(T);T++);for(var D=x.shrn(T),O=A.toRed(M);I>0;I--){var j=this._randrange(new u(2),A),$=x.gcd(j);if($.cmpn(1)!==0)return $;var W=j.toRed(M).redPow(D);if(!(W.cmp(S)===0||W.cmp(O)===0)){for(var Q=1;Q<T;Q++){if(W=W.redSqr(),W.cmp(S)===0)return W.fromRed().subn(1).gcd(x);if(W.cmp(O)===0)break}if(Q===T)return W=W.redSqr(),W.fromRed().subn(1).gcd(x)}}return!1},mr}var generatePrime,hasRequiredGeneratePrime;function requireGeneratePrime(){if(hasRequiredGeneratePrime)return generatePrime;hasRequiredGeneratePrime=1;var u=requireBrowser$a();generatePrime=Q,Q.simpleSieve=$,Q.fermatTest=W;var f=requireBn$2(),d=new f(24),_=requireMr(),x=new _,I=new f(1),E=new f(2),M=new f(5);new f(16),new f(8);var S=new f(10),A=new f(3);new f(7);var T=new f(11),D=new f(4);new f(12);var O=null;function j(){if(O!==null)return O;var X=1048576,Y=[];Y[0]=2;for(var ie=1,oe=3;oe<X;oe+=2){for(var ge=Math.ceil(Math.sqrt(oe)),be=0;be<ie&&Y[be]<=ge&&oe%Y[be]!==0;be++);ie!==be&&Y[be]<=ge||(Y[ie++]=oe)}return O=Y,Y}function $(X){for(var Y=j(),ie=0;ie<Y.length;ie++)if(X.modn(Y[ie])===0)return X.cmpn(Y[ie])===0;return!0}function W(X){var Y=f.mont(X);return E.toRed(Y).redPow(X.subn(1)).fromRed().cmpn(1)===0}function Q(X,Y){if(X<16)return Y===2||Y===5?new f([140,123]):new f([140,39]);Y=new f(Y);for(var ie,oe;;){for(ie=new f(u(Math.ceil(X/8)));ie.bitLength()>X;)ie.ishrn(1);if(ie.isEven()&&ie.iadd(I),ie.testn(1)||ie.iadd(E),Y.cmp(E)){if(!Y.cmp(M))for(;ie.mod(S).cmp(A);)ie.iadd(D)}else for(;ie.mod(d).cmp(T);)ie.iadd(D);if(oe=ie.shrn(1),$(oe)&&$(ie)&&W(oe)&&W(ie)&&x.test(oe)&&x.test(ie))return ie}}return generatePrime}const modp1={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"},require$$1$1={modp1,modp2,modp5,modp14,modp15,modp16,modp17,modp18};var dh,hasRequiredDh;function requireDh(){if(hasRequiredDh)return dh;hasRequiredDh=1;var u=requireBn$2(),f=requireMr(),d=new f,_=new u(24),x=new u(11),I=new u(10),E=new u(3),M=new u(7),S=requireGeneratePrime(),A=requireBrowser$a();dh=$;function T(Q,X){return X=X||"utf8",buffer$2.Buffer.isBuffer(Q)||(Q=new buffer$2.Buffer(Q,X)),this._pub=new u(Q),this}function D(Q,X){return X=X||"utf8",buffer$2.Buffer.isBuffer(Q)||(Q=new buffer$2.Buffer(Q,X)),this._priv=new u(Q),this}var O={};function j(Q,X){var Y=X.toString("hex"),ie=[Y,Q.toString(16)].join("_");if(ie in O)return O[ie];var oe=0;if(Q.isEven()||!S.simpleSieve||!S.fermatTest(Q)||!d.test(Q))return oe+=1,Y==="02"||Y==="05"?oe+=8:oe+=4,O[ie]=oe,oe;d.test(Q.shrn(1))||(oe+=2);var ge;switch(Y){case"02":Q.mod(_).cmp(x)&&(oe+=8);break;case"05":ge=Q.mod(I),ge.cmp(E)&&ge.cmp(M)&&(oe+=8);break;default:oe+=4}return O[ie]=oe,oe}function $(Q,X,Y){this.setGenerator(X),this.__prime=new u(Q),this._prime=u.mont(this.__prime),this._primeLen=Q.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,Y?(this.setPublicKey=T,this.setPrivateKey=D):this._primeCode=8}Object.defineProperty($.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=j(this.__prime,this.__gen)),this._primeCode}}),$.prototype.generateKeys=function(){return this._priv||(this._priv=new u(A(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},$.prototype.computeSecret=function(Q){Q=new u(Q),Q=Q.toRed(this._prime);var X=Q.redPow(this._priv).fromRed(),Y=new buffer$2.Buffer(X.toArray()),ie=this.getPrime();if(Y.length<ie.length){var oe=new buffer$2.Buffer(ie.length-Y.length);oe.fill(0),Y=buffer$2.Buffer.concat([oe,Y])}return Y},$.prototype.getPublicKey=function(X){return W(this._pub,X)},$.prototype.getPrivateKey=function(X){return W(this._priv,X)},$.prototype.getPrime=function(Q){return W(this.__prime,Q)},$.prototype.getGenerator=function(Q){return W(this._gen,Q)},$.prototype.setGenerator=function(Q,X){return X=X||"utf8",buffer$2.Buffer.isBuffer(Q)||(Q=new buffer$2.Buffer(Q,X)),this.__gen=Q,this._gen=new u(Q),this};function W(Q,X){var Y=new buffer$2.Buffer(Q.toArray());return X?Y.toString(X):Y}return dh}var hasRequiredBrowser$4;function requireBrowser$4(){if(hasRequiredBrowser$4)return browser$5;hasRequiredBrowser$4=1;var u=requireGeneratePrime(),f=require$$1$1,d=requireDh();function _(E){var M=new buffer$2.Buffer(f[E].prime,"hex"),S=new buffer$2.Buffer(f[E].gen,"hex");return new d(M,S)}var x={binary:!0,hex:!0,base64:!0};function I(E,M,S,A){return buffer$2.Buffer.isBuffer(M)||x[M]===void 0?I(E,"binary",M,S):(M=M||"binary",A=A||"binary",S=S||new buffer$2.Buffer([2]),buffer$2.Buffer.isBuffer(S)||(S=new buffer$2.Buffer(S,A)),typeof E=="number"?new d(u(E,S),S,!0):(buffer$2.Buffer.isBuffer(E)||(E=new buffer$2.Buffer(E,M)),new d(E,S,!0)))}return browser$5.DiffieHellmanGroup=browser$5.createDiffieHellmanGroup=browser$5.getDiffieHellman=_,browser$5.createDiffieHellman=browser$5.DiffieHellman=I,browser$5}var sign={exports:{}},bn$1={exports:{}};bn$1.exports;var hasRequiredBn$1;function requireBn$1(){return hasRequiredBn$1||(hasRequiredBn$1=1,function(u){(function(f,d){function _(P,k){if(!P)throw new Error(k||"Assertion failed")}function x(P,k){P.super_=k;var B=function(){};B.prototype=k.prototype,P.prototype=new B,P.prototype.constructor=P}function I(P,k,B){if(I.isBN(P))return P;this.negative=0,this.words=null,this.length=0,this.red=null,P!==null&&((k==="le"||k==="be")&&(B=k,k=10),this._init(P||0,k||10,B||"be"))}typeof f=="object"?f.exports=I:d.BN=I,I.BN=I,I.wordSize=26;var E;try{typeof window<"u"&&typeof window.Buffer<"u"?E=window.Buffer:E=buffer$2.Buffer}catch{}I.isBN=function(k){return k instanceof I?!0:k!==null&&typeof k=="object"&&k.constructor.wordSize===I.wordSize&&Array.isArray(k.words)},I.max=function(k,B){return k.cmp(B)>0?k:B},I.min=function(k,B){return k.cmp(B)<0?k:B},I.prototype._init=function(k,B,z){if(typeof k=="number")return this._initNumber(k,B,z);if(typeof k=="object")return this._initArray(k,B,z);B==="hex"&&(B=16),_(B===(B|0)&&B>=2&&B<=36),k=k.toString().replace(/\s+/g,"");var ee=0;k[0]==="-"&&(ee++,this.negative=1),ee<k.length&&(B===16?this._parseHex(k,ee,z):(this._parseBase(k,B,ee),z==="le"&&this._initArray(this.toArray(),B,z)))},I.prototype._initNumber=function(k,B,z){k<0&&(this.negative=1,k=-k),k<67108864?(this.words=[k&67108863],this.length=1):k<4503599627370496?(this.words=[k&67108863,k/67108864&67108863],this.length=2):(_(k<9007199254740992),this.words=[k&67108863,k/67108864&67108863,1],this.length=3),z==="le"&&this._initArray(this.toArray(),B,z)},I.prototype._initArray=function(k,B,z){if(_(typeof k.length=="number"),k.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(k.length/3),this.words=new Array(this.length);for(var ee=0;ee<this.length;ee++)this.words[ee]=0;var H,q,J=0;if(z==="be")for(ee=k.length-1,H=0;ee>=0;ee-=3)q=k[ee]|k[ee-1]<<8|k[ee-2]<<16,this.words[H]|=q<<J&67108863,this.words[H+1]=q>>>26-J&67108863,J+=24,J>=26&&(J-=26,H++);else if(z==="le")for(ee=0,H=0;ee<k.length;ee+=3)q=k[ee]|k[ee+1]<<8|k[ee+2]<<16,this.words[H]|=q<<J&67108863,this.words[H+1]=q>>>26-J&67108863,J+=24,J>=26&&(J-=26,H++);return this._strip()};function M(P,k){var B=P.charCodeAt(k);if(B>=48&&B<=57)return B-48;if(B>=65&&B<=70)return B-55;if(B>=97&&B<=102)return B-87;_(!1,"Invalid character in "+P)}function S(P,k,B){var z=M(P,B);return B-1>=k&&(z|=M(P,B-1)<<4),z}I.prototype._parseHex=function(k,B,z){this.length=Math.ceil((k.length-B)/6),this.words=new Array(this.length);for(var ee=0;ee<this.length;ee++)this.words[ee]=0;var H=0,q=0,J;if(z==="be")for(ee=k.length-1;ee>=B;ee-=2)J=S(k,B,ee)<<H,this.words[q]|=J&67108863,H>=18?(H-=18,q+=1,this.words[q]|=J>>>26):H+=8;else{var U=k.length-B;for(ee=U%2===0?B+1:B;ee<k.length;ee+=2)J=S(k,B,ee)<<H,this.words[q]|=J&67108863,H>=18?(H-=18,q+=1,this.words[q]|=J>>>26):H+=8}this._strip()};function A(P,k,B,z){for(var ee=0,H=0,q=Math.min(P.length,B),J=k;J<q;J++){var U=P.charCodeAt(J)-48;ee*=z,U>=49?H=U-49+10:U>=17?H=U-17+10:H=U,_(U>=0&&H<z,"Invalid character"),ee+=H}return ee}I.prototype._parseBase=function(k,B,z){this.words=[0],this.length=1;for(var ee=0,H=1;H<=67108863;H*=B)ee++;ee--,H=H/B|0;for(var q=k.length-z,J=q%ee,U=Math.min(q,q-J)+z,Z=0,ve=z;ve<U;ve+=ee)Z=A(k,ve,ve+ee,B),this.imuln(H),this.words[0]+Z<67108864?this.words[0]+=Z:this._iaddn(Z);if(J!==0){var Ye=1;for(Z=A(k,ve,k.length,B),ve=0;ve<J;ve++)Ye*=B;this.imuln(Ye),this.words[0]+Z<67108864?this.words[0]+=Z:this._iaddn(Z)}this._strip()},I.prototype.copy=function(k){k.words=new Array(this.length);for(var B=0;B<this.length;B++)k.words[B]=this.words[B];k.length=this.length,k.negative=this.negative,k.red=this.red};function T(P,k){P.words=k.words,P.length=k.length,P.negative=k.negative,P.red=k.red}if(I.prototype._move=function(k){T(k,this)},I.prototype.clone=function(){var k=new I(null);return this.copy(k),k},I.prototype._expand=function(k){for(;this.length<k;)this.words[this.length++]=0;return this},I.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},I.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{I.prototype[Symbol.for("nodejs.util.inspect.custom")]=D}catch{I.prototype.inspect=D}else I.prototype.inspect=D;function D(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var O=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],j=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],$=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];I.prototype.toString=function(k,B){k=k||10,B=B|0||1;var z;if(k===16||k==="hex"){z="";for(var ee=0,H=0,q=0;q<this.length;q++){var J=this.words[q],U=((J<<ee|H)&16777215).toString(16);H=J>>>24-ee&16777215,ee+=2,ee>=26&&(ee-=26,q--),H!==0||q!==this.length-1?z=O[6-U.length]+U+z:z=U+z}for(H!==0&&(z=H.toString(16)+z);z.length%B!==0;)z="0"+z;return this.negative!==0&&(z="-"+z),z}if(k===(k|0)&&k>=2&&k<=36){var Z=j[k],ve=$[k];z="";var Ye=this.clone();for(Ye.negative=0;!Ye.isZero();){var rt=Ye.modrn(ve).toString(k);Ye=Ye.idivn(ve),Ye.isZero()?z=rt+z:z=O[Z-rt.length]+rt+z}for(this.isZero()&&(z="0"+z);z.length%B!==0;)z="0"+z;return this.negative!==0&&(z="-"+z),z}_(!1,"Base should be between 2 and 36")},I.prototype.toNumber=function(){var k=this.words[0];return this.length===2?k+=this.words[1]*67108864:this.length===3&&this.words[2]===1?k+=4503599627370496+this.words[1]*67108864:this.length>2&&_(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-k:k},I.prototype.toJSON=function(){return this.toString(16,2)},E&&(I.prototype.toBuffer=function(k,B){return this.toArrayLike(E,k,B)}),I.prototype.toArray=function(k,B){return this.toArrayLike(Array,k,B)};var W=function(k,B){return k.allocUnsafe?k.allocUnsafe(B):new k(B)};I.prototype.toArrayLike=function(k,B,z){this._strip();var ee=this.byteLength(),H=z||Math.max(1,ee);_(ee<=H,"byte array longer than desired length"),_(H>0,"Requested array length <= 0");var q=W(k,H),J=B==="le"?"LE":"BE";return this["_toArrayLike"+J](q,ee),q},I.prototype._toArrayLikeLE=function(k,B){for(var z=0,ee=0,H=0,q=0;H<this.length;H++){var J=this.words[H]<<q|ee;k[z++]=J&255,z<k.length&&(k[z++]=J>>8&255),z<k.length&&(k[z++]=J>>16&255),q===6?(z<k.length&&(k[z++]=J>>24&255),ee=0,q=0):(ee=J>>>24,q+=2)}if(z<k.length)for(k[z++]=ee;z<k.length;)k[z++]=0},I.prototype._toArrayLikeBE=function(k,B){for(var z=k.length-1,ee=0,H=0,q=0;H<this.length;H++){var J=this.words[H]<<q|ee;k[z--]=J&255,z>=0&&(k[z--]=J>>8&255),z>=0&&(k[z--]=J>>16&255),q===6?(z>=0&&(k[z--]=J>>24&255),ee=0,q=0):(ee=J>>>24,q+=2)}if(z>=0)for(k[z--]=ee;z>=0;)k[z--]=0},Math.clz32?I.prototype._countBits=function(k){return 32-Math.clz32(k)}:I.prototype._countBits=function(k){var B=k,z=0;return B>=4096&&(z+=13,B>>>=13),B>=64&&(z+=7,B>>>=7),B>=8&&(z+=4,B>>>=4),B>=2&&(z+=2,B>>>=2),z+B},I.prototype._zeroBits=function(k){if(k===0)return 26;var B=k,z=0;return B&8191||(z+=13,B>>>=13),B&127||(z+=7,B>>>=7),B&15||(z+=4,B>>>=4),B&3||(z+=2,B>>>=2),B&1||z++,z},I.prototype.bitLength=function(){var k=this.words[this.length-1],B=this._countBits(k);return(this.length-1)*26+B};function Q(P){for(var k=new Array(P.bitLength()),B=0;B<k.length;B++){var z=B/26|0,ee=B%26;k[B]=P.words[z]>>>ee&1}return k}I.prototype.zeroBits=function(){if(this.isZero())return 0;for(var k=0,B=0;B<this.length;B++){var z=this._zeroBits(this.words[B]);if(k+=z,z!==26)break}return k},I.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},I.prototype.toTwos=function(k){return this.negative!==0?this.abs().inotn(k).iaddn(1):this.clone()},I.prototype.fromTwos=function(k){return this.testn(k-1)?this.notn(k).iaddn(1).ineg():this.clone()},I.prototype.isNeg=function(){return this.negative!==0},I.prototype.neg=function(){return this.clone().ineg()},I.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},I.prototype.iuor=function(k){for(;this.length<k.length;)this.words[this.length++]=0;for(var B=0;B<k.length;B++)this.words[B]=this.words[B]|k.words[B];return this._strip()},I.prototype.ior=function(k){return _((this.negative|k.negative)===0),this.iuor(k)},I.prototype.or=function(k){return this.length>k.length?this.clone().ior(k):k.clone().ior(this)},I.prototype.uor=function(k){return this.length>k.length?this.clone().iuor(k):k.clone().iuor(this)},I.prototype.iuand=function(k){var B;this.length>k.length?B=k:B=this;for(var z=0;z<B.length;z++)this.words[z]=this.words[z]&k.words[z];return this.length=B.length,this._strip()},I.prototype.iand=function(k){return _((this.negative|k.negative)===0),this.iuand(k)},I.prototype.and=function(k){return this.length>k.length?this.clone().iand(k):k.clone().iand(this)},I.prototype.uand=function(k){return this.length>k.length?this.clone().iuand(k):k.clone().iuand(this)},I.prototype.iuxor=function(k){var B,z;this.length>k.length?(B=this,z=k):(B=k,z=this);for(var ee=0;ee<z.length;ee++)this.words[ee]=B.words[ee]^z.words[ee];if(this!==B)for(;ee<B.length;ee++)this.words[ee]=B.words[ee];return this.length=B.length,this._strip()},I.prototype.ixor=function(k){return _((this.negative|k.negative)===0),this.iuxor(k)},I.prototype.xor=function(k){return this.length>k.length?this.clone().ixor(k):k.clone().ixor(this)},I.prototype.uxor=function(k){return this.length>k.length?this.clone().iuxor(k):k.clone().iuxor(this)},I.prototype.inotn=function(k){_(typeof k=="number"&&k>=0);var B=Math.ceil(k/26)|0,z=k%26;this._expand(B),z>0&&B--;for(var ee=0;ee<B;ee++)this.words[ee]=~this.words[ee]&67108863;return z>0&&(this.words[ee]=~this.words[ee]&67108863>>26-z),this._strip()},I.prototype.notn=function(k){return this.clone().inotn(k)},I.prototype.setn=function(k,B){_(typeof k=="number"&&k>=0);var z=k/26|0,ee=k%26;return this._expand(z+1),B?this.words[z]=this.words[z]|1<<ee:this.words[z]=this.words[z]&~(1<<ee),this._strip()},I.prototype.iadd=function(k){var B;if(this.negative!==0&&k.negative===0)return this.negative=0,B=this.isub(k),this.negative^=1,this._normSign();if(this.negative===0&&k.negative!==0)return k.negative=0,B=this.isub(k),k.negative=1,B._normSign();var z,ee;this.length>k.length?(z=this,ee=k):(z=k,ee=this);for(var H=0,q=0;q<ee.length;q++)B=(z.words[q]|0)+(ee.words[q]|0)+H,this.words[q]=B&67108863,H=B>>>26;for(;H!==0&&q<z.length;q++)B=(z.words[q]|0)+H,this.words[q]=B&67108863,H=B>>>26;if(this.length=z.length,H!==0)this.words[this.length]=H,this.length++;else if(z!==this)for(;q<z.length;q++)this.words[q]=z.words[q];return this},I.prototype.add=function(k){var B;return k.negative!==0&&this.negative===0?(k.negative=0,B=this.sub(k),k.negative^=1,B):k.negative===0&&this.negative!==0?(this.negative=0,B=k.sub(this),this.negative=1,B):this.length>k.length?this.clone().iadd(k):k.clone().iadd(this)},I.prototype.isub=function(k){if(k.negative!==0){k.negative=0;var B=this.iadd(k);return k.negative=1,B._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(k),this.negative=1,this._normSign();var z=this.cmp(k);if(z===0)return this.negative=0,this.length=1,this.words[0]=0,this;var ee,H;z>0?(ee=this,H=k):(ee=k,H=this);for(var q=0,J=0;J<H.length;J++)B=(ee.words[J]|0)-(H.words[J]|0)+q,q=B>>26,this.words[J]=B&67108863;for(;q!==0&&J<ee.length;J++)B=(ee.words[J]|0)+q,q=B>>26,this.words[J]=B&67108863;if(q===0&&J<ee.length&&ee!==this)for(;J<ee.length;J++)this.words[J]=ee.words[J];return this.length=Math.max(this.length,J),ee!==this&&(this.negative=1),this._strip()},I.prototype.sub=function(k){return this.clone().isub(k)};function X(P,k,B){B.negative=k.negative^P.negative;var z=P.length+k.length|0;B.length=z,z=z-1|0;var ee=P.words[0]|0,H=k.words[0]|0,q=ee*H,J=q&67108863,U=q/67108864|0;B.words[0]=J;for(var Z=1;Z<z;Z++){for(var ve=U>>>26,Ye=U&67108863,rt=Math.min(Z,k.length-1),Ue=Math.max(0,Z-P.length+1);Ue<=rt;Ue++){var Qe=Z-Ue|0;ee=P.words[Qe]|0,H=k.words[Ue]|0,q=ee*H+Ye,ve+=q/67108864|0,Ye=q&67108863}B.words[Z]=Ye|0,U=ve|0}return U!==0?B.words[Z]=U|0:B.length--,B._strip()}var Y=function(k,B,z){var ee=k.words,H=B.words,q=z.words,J=0,U,Z,ve,Ye=ee[0]|0,rt=Ye&8191,Ue=Ye>>>13,Qe=ee[1]|0,vt=Qe&8191,ri=Qe>>>13,ci=ee[2]|0,tt=ci&8191,et=ci>>>13,$e=ee[3]|0,Le=$e&8191,ot=$e>>>13,Oe=ee[4]|0,Ne=Oe&8191,Fe=Oe>>>13,Je=ee[5]|0,Dt=Je&8191,oi=Je>>>13,Bt=ee[6]|0,li=Bt&8191,ii=Bt>>>13,Ot=ee[7]|0,St=Ot&8191,pi=Ot>>>13,eM=ee[8]|0,hi=eM&8191,mi=eM>>>13,Dn=ee[9]|0,tM=Dn&8191,oM=Dn>>>13,vM=H[0]|0,dM=vM&8191,hM=vM>>>13,_M=H[1]|0,uM=_M&8191,pM=_M>>>13,yM=H[2]|0,gM=yM&8191,fM=yM>>>13,kM=H[3]|0,IM=kM&8191,DM=kM>>>13,$M=H[4]|0,TM=$M&8191,OM=$M>>>13,UM=H[5]|0,AM=UM&8191,RM=UM>>>13,FM=H[6]|0,xM=FM&8191,BM=FM>>>13,WM=H[7]|0,SM=WM&8191,jM=WM>>>13,YM=H[8]|0,PM=YM&8191,VM=YM>>>13,HM=H[9]|0,zM=HM&8191,KM=HM>>>13;z.negative=k.negative^B.negative,z.length=19,U=Math.imul(rt,dM),Z=Math.imul(rt,hM),Z=Z+Math.imul(Ue,dM)|0,ve=Math.imul(Ue,hM);var rN=(J+U|0)+((Z&8191)<<13)|0;J=(ve+(Z>>>13)|0)+(rN>>>26)|0,rN&=67108863,U=Math.imul(vt,dM),Z=Math.imul(vt,hM),Z=Z+Math.imul(ri,dM)|0,ve=Math.imul(ri,hM),U=U+Math.imul(rt,uM)|0,Z=Z+Math.imul(rt,pM)|0,Z=Z+Math.imul(Ue,uM)|0,ve=ve+Math.imul(Ue,pM)|0;var eN=(J+U|0)+((Z&8191)<<13)|0;J=(ve+(Z>>>13)|0)+(eN>>>26)|0,eN&=67108863,U=Math.imul(tt,dM),Z=Math.imul(tt,hM),Z=Z+Math.imul(et,dM)|0,ve=Math.imul(et,hM),U=U+Math.imul(vt,uM)|0,Z=Z+Math.imul(vt,pM)|0,Z=Z+Math.imul(ri,uM)|0,ve=ve+Math.imul(ri,pM)|0,U=U+Math.imul(rt,gM)|0,Z=Z+Math.imul(rt,fM)|0,Z=Z+Math.imul(Ue,gM)|0,ve=ve+Math.imul(Ue,fM)|0;var iN=(J+U|0)+((Z&8191)<<13)|0;J=(ve+(Z>>>13)|0)+(iN>>>26)|0,iN&=67108863,U=Math.imul(Le,dM),Z=Math.imul(Le,hM),Z=Z+Math.imul(ot,dM)|0,ve=Math.imul(ot,hM),U=U+Math.imul(tt,uM)|0,Z=Z+Math.imul(tt,pM)|0,Z=Z+Math.imul(et,uM)|0,ve=ve+Math.imul(et,pM)|0,U=U+Math.imul(vt,gM)|0,Z=Z+Math.imul(vt,fM)|0,Z=Z+Math.imul(ri,gM)|0,ve=ve+Math.imul(ri,fM)|0,U=U+Math.imul(rt,IM)|0,Z=Z+Math.imul(rt,DM)|0,Z=Z+Math.imul(Ue,IM)|0,ve=ve+Math.imul(Ue,DM)|0;var ai=(J+U|0)+((Z&8191)<<13)|0;J=(ve+(Z>>>13)|0)+(ai>>>26)|0,ai&=67108863,U=Math.imul(Ne,dM),Z=Math.imul(Ne,hM),Z=Z+Math.imul(Fe,dM)|0,ve=Math.imul(Fe,hM),U=U+Math.imul(Le,uM)|0,Z=Z+Math.imul(Le,pM)|0,Z=Z+Math.imul(ot,uM)|0,ve=ve+Math.imul(ot,pM)|0,U=U+Math.imul(tt,gM)|0,Z=Z+Math.imul(tt,fM)|0,Z=Z+Math.imul(et,gM)|0,ve=ve+Math.imul(et,fM)|0,U=U+Math.imul(vt,IM)|0,Z=Z+Math.imul(vt,DM)|0,Z=Z+Math.imul(ri,IM)|0,ve=ve+Math.imul(ri,DM)|0,U=U+Math.imul(rt,TM)|0,Z=Z+Math.imul(rt,OM)|0,Z=Z+Math.imul(Ue,TM)|0,ve=ve+Math.imul(Ue,OM)|0;var C=(J+U|0)+((Z&8191)<<13)|0;J=(ve+(Z>>>13)|0)+(C>>>26)|0,C&=67108863,U=Math.imul(Dt,dM),Z=Math.imul(Dt,hM),Z=Z+Math.imul(oi,dM)|0,ve=Math.imul(oi,hM),U=U+Math.imul(Ne,uM)|0,Z=Z+Math.imul(Ne,pM)|0,Z=Z+Math.imul(Fe,uM)|0,ve=ve+Math.imul(Fe,pM)|0,U=U+Math.imul(Le,gM)|0,Z=Z+Math.imul(Le,fM)|0,Z=Z+Math.imul(ot,gM)|0,ve=ve+Math.imul(ot,fM)|0,U=U+Math.imul(tt,IM)|0,Z=Z+Math.imul(tt,DM)|0,Z=Z+Math.imul(et,IM)|0,ve=ve+Math.imul(et,DM)|0,U=U+Math.imul(vt,TM)|0,Z=Z+Math.imul(vt,OM)|0,Z=Z+Math.imul(ri,TM)|0,ve=ve+Math.imul(ri,OM)|0,U=U+Math.imul(rt,AM)|0,Z=Z+Math.imul(rt,RM)|0,Z=Z+Math.imul(Ue,AM)|0,ve=ve+Math.imul(Ue,RM)|0;var L=(J+U|0)+((Z&8191)<<13)|0;J=(ve+(Z>>>13)|0)+(L>>>26)|0,L&=67108863,U=Math.imul(li,dM),Z=Math.imul(li,hM),Z=Z+Math.imul(ii,dM)|0,ve=Math.imul(ii,hM),U=U+Math.imul(Dt,uM)|0,Z=Z+Math.imul(Dt,pM)|0,Z=Z+Math.imul(oi,uM)|0,ve=ve+Math.imul(oi,pM)|0,U=U+Math.imul(Ne,gM)|0,Z=Z+Math.imul(Ne,fM)|0,Z=Z+Math.imul(Fe,gM)|0,ve=ve+Math.imul(Fe,fM)|0,U=U+Math.imul(Le,IM)|0,Z=Z+Math.imul(Le,DM)|0,Z=Z+Math.imul(ot,IM)|0,ve=ve+Math.imul(ot,DM)|0,U=U+Math.imul(tt,TM)|0,Z=Z+Math.imul(tt,OM)|0,Z=Z+Math.imul(et,TM)|0,ve=ve+Math.imul(et,OM)|0,U=U+Math.imul(vt,AM)|0,Z=Z+Math.imul(vt,RM)|0,Z=Z+Math.imul(ri,AM)|0,ve=ve+Math.imul(ri,RM)|0,U=U+Math.imul(rt,xM)|0,Z=Z+Math.imul(rt,BM)|0,Z=Z+Math.imul(Ue,xM)|0,ve=ve+Math.imul(Ue,BM)|0;var F=(J+U|0)+((Z&8191)<<13)|0;J=(ve+(Z>>>13)|0)+(F>>>26)|0,F&=67108863,U=Math.imul(St,dM),Z=Math.imul(St,hM),Z=Z+Math.imul(pi,dM)|0,ve=Math.imul(pi,hM),U=U+Math.imul(li,uM)|0,Z=Z+Math.imul(li,pM)|0,Z=Z+Math.imul(ii,uM)|0,ve=ve+Math.imul(ii,pM)|0,U=U+Math.imul(Dt,gM)|0,Z=Z+Math.imul(Dt,fM)|0,Z=Z+Math.imul(oi,gM)|0,ve=ve+Math.imul(oi,fM)|0,U=U+Math.imul(Ne,IM)|0,Z=Z+Math.imul(Ne,DM)|0,Z=Z+Math.imul(Fe,IM)|0,ve=ve+Math.imul(Fe,DM)|0,U=U+Math.imul(Le,TM)|0,Z=Z+Math.imul(Le,OM)|0,Z=Z+Math.imul(ot,TM)|0,ve=ve+Math.imul(ot,OM)|0,U=U+Math.imul(tt,AM)|0,Z=Z+Math.imul(tt,RM)|0,Z=Z+Math.imul(et,AM)|0,ve=ve+Math.imul(et,RM)|0,U=U+Math.imul(vt,xM)|0,Z=Z+Math.imul(vt,BM)|0,Z=Z+Math.imul(ri,xM)|0,ve=ve+Math.imul(ri,BM)|0,U=U+Math.imul(rt,SM)|0,Z=Z+Math.imul(rt,jM)|0,Z=Z+Math.imul(Ue,SM)|0,ve=ve+Math.imul(Ue,jM)|0;var ne=(J+U|0)+((Z&8191)<<13)|0;J=(ve+(Z>>>13)|0)+(ne>>>26)|0,ne&=67108863,U=Math.imul(hi,dM),Z=Math.imul(hi,hM),Z=Z+Math.imul(mi,dM)|0,ve=Math.imul(mi,hM),U=U+Math.imul(St,uM)|0,Z=Z+Math.imul(St,pM)|0,Z=Z+Math.imul(pi,uM)|0,ve=ve+Math.imul(pi,pM)|0,U=U+Math.imul(li,gM)|0,Z=Z+Math.imul(li,fM)|0,Z=Z+Math.imul(ii,gM)|0,ve=ve+Math.imul(ii,fM)|0,U=U+Math.imul(Dt,IM)|0,Z=Z+Math.imul(Dt,DM)|0,Z=Z+Math.imul(oi,IM)|0,ve=ve+Math.imul(oi,DM)|0,U=U+Math.imul(Ne,TM)|0,Z=Z+Math.imul(Ne,OM)|0,Z=Z+Math.imul(Fe,TM)|0,ve=ve+Math.imul(Fe,OM)|0,U=U+Math.imul(Le,AM)|0,Z=Z+Math.imul(Le,RM)|0,Z=Z+Math.imul(ot,AM)|0,ve=ve+Math.imul(ot,RM)|0,U=U+Math.imul(tt,xM)|0,Z=Z+Math.imul(tt,BM)|0,Z=Z+Math.imul(et,xM)|0,ve=ve+Math.imul(et,BM)|0,U=U+Math.imul(vt,SM)|0,Z=Z+Math.imul(vt,jM)|0,Z=Z+Math.imul(ri,SM)|0,ve=ve+Math.imul(ri,jM)|0,U=U+Math.imul(rt,PM)|0,Z=Z+Math.imul(rt,VM)|0,Z=Z+Math.imul(Ue,PM)|0,ve=ve+Math.imul(Ue,VM)|0;var ue=(J+U|0)+((Z&8191)<<13)|0;J=(ve+(Z>>>13)|0)+(ue>>>26)|0,ue&=67108863,U=Math.imul(tM,dM),Z=Math.imul(tM,hM),Z=Z+Math.imul(oM,dM)|0,ve=Math.imul(oM,hM),U=U+Math.imul(hi,uM)|0,Z=Z+Math.imul(hi,pM)|0,Z=Z+Math.imul(mi,uM)|0,ve=ve+Math.imul(mi,pM)|0,U=U+Math.imul(St,gM)|0,Z=Z+Math.imul(St,fM)|0,Z=Z+Math.imul(pi,gM)|0,ve=ve+Math.imul(pi,fM)|0,U=U+Math.imul(li,IM)|0,Z=Z+Math.imul(li,DM)|0,Z=Z+Math.imul(ii,IM)|0,ve=ve+Math.imul(ii,DM)|0,U=U+Math.imul(Dt,TM)|0,Z=Z+Math.imul(Dt,OM)|0,Z=Z+Math.imul(oi,TM)|0,ve=ve+Math.imul(oi,OM)|0,U=U+Math.imul(Ne,AM)|0,Z=Z+Math.imul(Ne,RM)|0,Z=Z+Math.imul(Fe,AM)|0,ve=ve+Math.imul(Fe,RM)|0,U=U+Math.imul(Le,xM)|0,Z=Z+Math.imul(Le,BM)|0,Z=Z+Math.imul(ot,xM)|0,ve=ve+Math.imul(ot,BM)|0,U=U+Math.imul(tt,SM)|0,Z=Z+Math.imul(tt,jM)|0,Z=Z+Math.imul(et,SM)|0,ve=ve+Math.imul(et,jM)|0,U=U+Math.imul(vt,PM)|0,Z=Z+Math.imul(vt,VM)|0,Z=Z+Math.imul(ri,PM)|0,ve=ve+Math.imul(ri,VM)|0,U=U+Math.imul(rt,zM)|0,Z=Z+Math.imul(rt,KM)|0,Z=Z+Math.imul(Ue,zM)|0,ve=ve+Math.imul(Ue,KM)|0;var fe=(J+U|0)+((Z&8191)<<13)|0;J=(ve+(Z>>>13)|0)+(fe>>>26)|0,fe&=67108863,U=Math.imul(tM,uM),Z=Math.imul(tM,pM),Z=Z+Math.imul(oM,uM)|0,ve=Math.imul(oM,pM),U=U+Math.imul(hi,gM)|0,Z=Z+Math.imul(hi,fM)|0,Z=Z+Math.imul(mi,gM)|0,ve=ve+Math.imul(mi,fM)|0,U=U+Math.imul(St,IM)|0,Z=Z+Math.imul(St,DM)|0,Z=Z+Math.imul(pi,IM)|0,ve=ve+Math.imul(pi,DM)|0,U=U+Math.imul(li,TM)|0,Z=Z+Math.imul(li,OM)|0,Z=Z+Math.imul(ii,TM)|0,ve=ve+Math.imul(ii,OM)|0,U=U+Math.imul(Dt,AM)|0,Z=Z+Math.imul(Dt,RM)|0,Z=Z+Math.imul(oi,AM)|0,ve=ve+Math.imul(oi,RM)|0,U=U+Math.imul(Ne,xM)|0,Z=Z+Math.imul(Ne,BM)|0,Z=Z+Math.imul(Fe,xM)|0,ve=ve+Math.imul(Fe,BM)|0,U=U+Math.imul(Le,SM)|0,Z=Z+Math.imul(Le,jM)|0,Z=Z+Math.imul(ot,SM)|0,ve=ve+Math.imul(ot,jM)|0,U=U+Math.imul(tt,PM)|0,Z=Z+Math.imul(tt,VM)|0,Z=Z+Math.imul(et,PM)|0,ve=ve+Math.imul(et,VM)|0,U=U+Math.imul(vt,zM)|0,Z=Z+Math.imul(vt,KM)|0,Z=Z+Math.imul(ri,zM)|0,ve=ve+Math.imul(ri,KM)|0;var me=(J+U|0)+((Z&8191)<<13)|0;J=(ve+(Z>>>13)|0)+(me>>>26)|0,me&=67108863,U=Math.imul(tM,gM),Z=Math.imul(tM,fM),Z=Z+Math.imul(oM,gM)|0,ve=Math.imul(oM,fM),U=U+Math.imul(hi,IM)|0,Z=Z+Math.imul(hi,DM)|0,Z=Z+Math.imul(mi,IM)|0,ve=ve+Math.imul(mi,DM)|0,U=U+Math.imul(St,TM)|0,Z=Z+Math.imul(St,OM)|0,Z=Z+Math.imul(pi,TM)|0,ve=ve+Math.imul(pi,OM)|0,U=U+Math.imul(li,AM)|0,Z=Z+Math.imul(li,RM)|0,Z=Z+Math.imul(ii,AM)|0,ve=ve+Math.imul(ii,RM)|0,U=U+Math.imul(Dt,xM)|0,Z=Z+Math.imul(Dt,BM)|0,Z=Z+Math.imul(oi,xM)|0,ve=ve+Math.imul(oi,BM)|0,U=U+Math.imul(Ne,SM)|0,Z=Z+Math.imul(Ne,jM)|0,Z=Z+Math.imul(Fe,SM)|0,ve=ve+Math.imul(Fe,jM)|0,U=U+Math.imul(Le,PM)|0,Z=Z+Math.imul(Le,VM)|0,Z=Z+Math.imul(ot,PM)|0,ve=ve+Math.imul(ot,VM)|0,U=U+Math.imul(tt,zM)|0,Z=Z+Math.imul(tt,KM)|0,Z=Z+Math.imul(et,zM)|0,ve=ve+Math.imul(et,KM)|0;var Pe=(J+U|0)+((Z&8191)<<13)|0;J=(ve+(Z>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,U=Math.imul(tM,IM),Z=Math.imul(tM,DM),Z=Z+Math.imul(oM,IM)|0,ve=Math.imul(oM,DM),U=U+Math.imul(hi,TM)|0,Z=Z+Math.imul(hi,OM)|0,Z=Z+Math.imul(mi,TM)|0,ve=ve+Math.imul(mi,OM)|0,U=U+Math.imul(St,AM)|0,Z=Z+Math.imul(St,RM)|0,Z=Z+Math.imul(pi,AM)|0,ve=ve+Math.imul(pi,RM)|0,U=U+Math.imul(li,xM)|0,Z=Z+Math.imul(li,BM)|0,Z=Z+Math.imul(ii,xM)|0,ve=ve+Math.imul(ii,BM)|0,U=U+Math.imul(Dt,SM)|0,Z=Z+Math.imul(Dt,jM)|0,Z=Z+Math.imul(oi,SM)|0,ve=ve+Math.imul(oi,jM)|0,U=U+Math.imul(Ne,PM)|0,Z=Z+Math.imul(Ne,VM)|0,Z=Z+Math.imul(Fe,PM)|0,ve=ve+Math.imul(Fe,VM)|0,U=U+Math.imul(Le,zM)|0,Z=Z+Math.imul(Le,KM)|0,Z=Z+Math.imul(ot,zM)|0,ve=ve+Math.imul(ot,KM)|0;var Re=(J+U|0)+((Z&8191)<<13)|0;J=(ve+(Z>>>13)|0)+(Re>>>26)|0,Re&=67108863,U=Math.imul(tM,TM),Z=Math.imul(tM,OM),Z=Z+Math.imul(oM,TM)|0,ve=Math.imul(oM,OM),U=U+Math.imul(hi,AM)|0,Z=Z+Math.imul(hi,RM)|0,Z=Z+Math.imul(mi,AM)|0,ve=ve+Math.imul(mi,RM)|0,U=U+Math.imul(St,xM)|0,Z=Z+Math.imul(St,BM)|0,Z=Z+Math.imul(pi,xM)|0,ve=ve+Math.imul(pi,BM)|0,U=U+Math.imul(li,SM)|0,Z=Z+Math.imul(li,jM)|0,Z=Z+Math.imul(ii,SM)|0,ve=ve+Math.imul(ii,jM)|0,U=U+Math.imul(Dt,PM)|0,Z=Z+Math.imul(Dt,VM)|0,Z=Z+Math.imul(oi,PM)|0,ve=ve+Math.imul(oi,VM)|0,U=U+Math.imul(Ne,zM)|0,Z=Z+Math.imul(Ne,KM)|0,Z=Z+Math.imul(Fe,zM)|0,ve=ve+Math.imul(Fe,KM)|0;var Xe=(J+U|0)+((Z&8191)<<13)|0;J=(ve+(Z>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,U=Math.imul(tM,AM),Z=Math.imul(tM,RM),Z=Z+Math.imul(oM,AM)|0,ve=Math.imul(oM,RM),U=U+Math.imul(hi,xM)|0,Z=Z+Math.imul(hi,BM)|0,Z=Z+Math.imul(mi,xM)|0,ve=ve+Math.imul(mi,BM)|0,U=U+Math.imul(St,SM)|0,Z=Z+Math.imul(St,jM)|0,Z=Z+Math.imul(pi,SM)|0,ve=ve+Math.imul(pi,jM)|0,U=U+Math.imul(li,PM)|0,Z=Z+Math.imul(li,VM)|0,Z=Z+Math.imul(ii,PM)|0,ve=ve+Math.imul(ii,VM)|0,U=U+Math.imul(Dt,zM)|0,Z=Z+Math.imul(Dt,KM)|0,Z=Z+Math.imul(oi,zM)|0,ve=ve+Math.imul(oi,KM)|0;var qe=(J+U|0)+((Z&8191)<<13)|0;J=(ve+(Z>>>13)|0)+(qe>>>26)|0,qe&=67108863,U=Math.imul(tM,xM),Z=Math.imul(tM,BM),Z=Z+Math.imul(oM,xM)|0,ve=Math.imul(oM,BM),U=U+Math.imul(hi,SM)|0,Z=Z+Math.imul(hi,jM)|0,Z=Z+Math.imul(mi,SM)|0,ve=ve+Math.imul(mi,jM)|0,U=U+Math.imul(St,PM)|0,Z=Z+Math.imul(St,VM)|0,Z=Z+Math.imul(pi,PM)|0,ve=ve+Math.imul(pi,VM)|0,U=U+Math.imul(li,zM)|0,Z=Z+Math.imul(li,KM)|0,Z=Z+Math.imul(ii,zM)|0,ve=ve+Math.imul(ii,KM)|0;var Ke=(J+U|0)+((Z&8191)<<13)|0;J=(ve+(Z>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,U=Math.imul(tM,SM),Z=Math.imul(tM,jM),Z=Z+Math.imul(oM,SM)|0,ve=Math.imul(oM,jM),U=U+Math.imul(hi,PM)|0,Z=Z+Math.imul(hi,VM)|0,Z=Z+Math.imul(mi,PM)|0,ve=ve+Math.imul(mi,VM)|0,U=U+Math.imul(St,zM)|0,Z=Z+Math.imul(St,KM)|0,Z=Z+Math.imul(pi,zM)|0,ve=ve+Math.imul(pi,KM)|0;var nt=(J+U|0)+((Z&8191)<<13)|0;J=(ve+(Z>>>13)|0)+(nt>>>26)|0,nt&=67108863,U=Math.imul(tM,PM),Z=Math.imul(tM,VM),Z=Z+Math.imul(oM,PM)|0,ve=Math.imul(oM,VM),U=U+Math.imul(hi,zM)|0,Z=Z+Math.imul(hi,KM)|0,Z=Z+Math.imul(mi,zM)|0,ve=ve+Math.imul(mi,KM)|0;var It=(J+U|0)+((Z&8191)<<13)|0;J=(ve+(Z>>>13)|0)+(It>>>26)|0,It&=67108863,U=Math.imul(tM,zM),Z=Math.imul(tM,KM),Z=Z+Math.imul(oM,zM)|0,ve=Math.imul(oM,KM);var Tt=(J+U|0)+((Z&8191)<<13)|0;return J=(ve+(Z>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,q[0]=rN,q[1]=eN,q[2]=iN,q[3]=ai,q[4]=C,q[5]=L,q[6]=F,q[7]=ne,q[8]=ue,q[9]=fe,q[10]=me,q[11]=Pe,q[12]=Re,q[13]=Xe,q[14]=qe,q[15]=Ke,q[16]=nt,q[17]=It,q[18]=Tt,J!==0&&(q[19]=J,z.length++),z};Math.imul||(Y=X);function ie(P,k,B){B.negative=k.negative^P.negative,B.length=P.length+k.length;for(var z=0,ee=0,H=0;H<B.length-1;H++){var q=ee;ee=0;for(var J=z&67108863,U=Math.min(H,k.length-1),Z=Math.max(0,H-P.length+1);Z<=U;Z++){var ve=H-Z,Ye=P.words[ve]|0,rt=k.words[Z]|0,Ue=Ye*rt,Qe=Ue&67108863;q=q+(Ue/67108864|0)|0,Qe=Qe+J|0,J=Qe&67108863,q=q+(Qe>>>26)|0,ee+=q>>>26,q&=67108863}B.words[H]=J,z=q,q=ee}return z!==0?B.words[H]=z:B.length--,B._strip()}function oe(P,k,B){return ie(P,k,B)}I.prototype.mulTo=function(k,B){var z,ee=this.length+k.length;return this.length===10&&k.length===10?z=Y(this,k,B):ee<63?z=X(this,k,B):ee<1024?z=ie(this,k,B):z=oe(this,k,B),z},I.prototype.mul=function(k){var B=new I(null);return B.words=new Array(this.length+k.length),this.mulTo(k,B)},I.prototype.mulf=function(k){var B=new I(null);return B.words=new Array(this.length+k.length),oe(this,k,B)},I.prototype.imul=function(k){return this.clone().mulTo(k,this)},I.prototype.imuln=function(k){var B=k<0;B&&(k=-k),_(typeof k=="number"),_(k<67108864);for(var z=0,ee=0;ee<this.length;ee++){var H=(this.words[ee]|0)*k,q=(H&67108863)+(z&67108863);z>>=26,z+=H/67108864|0,z+=q>>>26,this.words[ee]=q&67108863}return z!==0&&(this.words[ee]=z,this.length++),B?this.ineg():this},I.prototype.muln=function(k){return this.clone().imuln(k)},I.prototype.sqr=function(){return this.mul(this)},I.prototype.isqr=function(){return this.imul(this.clone())},I.prototype.pow=function(k){var B=Q(k);if(B.length===0)return new I(1);for(var z=this,ee=0;ee<B.length&&B[ee]===0;ee++,z=z.sqr());if(++ee<B.length)for(var H=z.sqr();ee<B.length;ee++,H=H.sqr())B[ee]!==0&&(z=z.mul(H));return z},I.prototype.iushln=function(k){_(typeof k=="number"&&k>=0);var B=k%26,z=(k-B)/26,ee=67108863>>>26-B<<26-B,H;if(B!==0){var q=0;for(H=0;H<this.length;H++){var J=this.words[H]&ee,U=(this.words[H]|0)-J<<B;this.words[H]=U|q,q=J>>>26-B}q&&(this.words[H]=q,this.length++)}if(z!==0){for(H=this.length-1;H>=0;H--)this.words[H+z]=this.words[H];for(H=0;H<z;H++)this.words[H]=0;this.length+=z}return this._strip()},I.prototype.ishln=function(k){return _(this.negative===0),this.iushln(k)},I.prototype.iushrn=function(k,B,z){_(typeof k=="number"&&k>=0);var ee;B?ee=(B-B%26)/26:ee=0;var H=k%26,q=Math.min((k-H)/26,this.length),J=67108863^67108863>>>H<<H,U=z;if(ee-=q,ee=Math.max(0,ee),U){for(var Z=0;Z<q;Z++)U.words[Z]=this.words[Z];U.length=q}if(q!==0)if(this.length>q)for(this.length-=q,Z=0;Z<this.length;Z++)this.words[Z]=this.words[Z+q];else this.words[0]=0,this.length=1;var ve=0;for(Z=this.length-1;Z>=0&&(ve!==0||Z>=ee);Z--){var Ye=this.words[Z]|0;this.words[Z]=ve<<26-H|Ye>>>H,ve=Ye&J}return U&&ve!==0&&(U.words[U.length++]=ve),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},I.prototype.ishrn=function(k,B,z){return _(this.negative===0),this.iushrn(k,B,z)},I.prototype.shln=function(k){return this.clone().ishln(k)},I.prototype.ushln=function(k){return this.clone().iushln(k)},I.prototype.shrn=function(k){return this.clone().ishrn(k)},I.prototype.ushrn=function(k){return this.clone().iushrn(k)},I.prototype.testn=function(k){_(typeof k=="number"&&k>=0);var B=k%26,z=(k-B)/26,ee=1<<B;if(this.length<=z)return!1;var H=this.words[z];return!!(H&ee)},I.prototype.imaskn=function(k){_(typeof k=="number"&&k>=0);var B=k%26,z=(k-B)/26;if(_(this.negative===0,"imaskn works only with positive numbers"),this.length<=z)return this;if(B!==0&&z++,this.length=Math.min(z,this.length),B!==0){var ee=67108863^67108863>>>B<<B;this.words[this.length-1]&=ee}return this._strip()},I.prototype.maskn=function(k){return this.clone().imaskn(k)},I.prototype.iaddn=function(k){return _(typeof k=="number"),_(k<67108864),k<0?this.isubn(-k):this.negative!==0?this.length===1&&(this.words[0]|0)<=k?(this.words[0]=k-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(k),this.negative=1,this):this._iaddn(k)},I.prototype._iaddn=function(k){this.words[0]+=k;for(var B=0;B<this.length&&this.words[B]>=67108864;B++)this.words[B]-=67108864,B===this.length-1?this.words[B+1]=1:this.words[B+1]++;return this.length=Math.max(this.length,B+1),this},I.prototype.isubn=function(k){if(_(typeof k=="number"),_(k<67108864),k<0)return this.iaddn(-k);if(this.negative!==0)return this.negative=0,this.iaddn(k),this.negative=1,this;if(this.words[0]-=k,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var B=0;B<this.length&&this.words[B]<0;B++)this.words[B]+=67108864,this.words[B+1]-=1;return this._strip()},I.prototype.addn=function(k){return this.clone().iaddn(k)},I.prototype.subn=function(k){return this.clone().isubn(k)},I.prototype.iabs=function(){return this.negative=0,this},I.prototype.abs=function(){return this.clone().iabs()},I.prototype._ishlnsubmul=function(k,B,z){var ee=k.length+z,H;this._expand(ee);var q,J=0;for(H=0;H<k.length;H++){q=(this.words[H+z]|0)+J;var U=(k.words[H]|0)*B;q-=U&67108863,J=(q>>26)-(U/67108864|0),this.words[H+z]=q&67108863}for(;H<this.length-z;H++)q=(this.words[H+z]|0)+J,J=q>>26,this.words[H+z]=q&67108863;if(J===0)return this._strip();for(_(J===-1),J=0,H=0;H<this.length;H++)q=-(this.words[H]|0)+J,J=q>>26,this.words[H]=q&67108863;return this.negative=1,this._strip()},I.prototype._wordDiv=function(k,B){var z=this.length-k.length,ee=this.clone(),H=k,q=H.words[H.length-1]|0,J=this._countBits(q);z=26-J,z!==0&&(H=H.ushln(z),ee.iushln(z),q=H.words[H.length-1]|0);var U=ee.length-H.length,Z;if(B!=="mod"){Z=new I(null),Z.length=U+1,Z.words=new Array(Z.length);for(var ve=0;ve<Z.length;ve++)Z.words[ve]=0}var Ye=ee.clone()._ishlnsubmul(H,1,U);Ye.negative===0&&(ee=Ye,Z&&(Z.words[U]=1));for(var rt=U-1;rt>=0;rt--){var Ue=(ee.words[H.length+rt]|0)*67108864+(ee.words[H.length+rt-1]|0);for(Ue=Math.min(Ue/q|0,67108863),ee._ishlnsubmul(H,Ue,rt);ee.negative!==0;)Ue--,ee.negative=0,ee._ishlnsubmul(H,1,rt),ee.isZero()||(ee.negative^=1);Z&&(Z.words[rt]=Ue)}return Z&&Z._strip(),ee._strip(),B!=="div"&&z!==0&&ee.iushrn(z),{div:Z||null,mod:ee}},I.prototype.divmod=function(k,B,z){if(_(!k.isZero()),this.isZero())return{div:new I(0),mod:new I(0)};var ee,H,q;return this.negative!==0&&k.negative===0?(q=this.neg().divmod(k,B),B!=="mod"&&(ee=q.div.neg()),B!=="div"&&(H=q.mod.neg(),z&&H.negative!==0&&H.iadd(k)),{div:ee,mod:H}):this.negative===0&&k.negative!==0?(q=this.divmod(k.neg(),B),B!=="mod"&&(ee=q.div.neg()),{div:ee,mod:q.mod}):this.negative&k.negative?(q=this.neg().divmod(k.neg(),B),B!=="div"&&(H=q.mod.neg(),z&&H.negative!==0&&H.isub(k)),{div:q.div,mod:H}):k.length>this.length||this.cmp(k)<0?{div:new I(0),mod:this}:k.length===1?B==="div"?{div:this.divn(k.words[0]),mod:null}:B==="mod"?{div:null,mod:new I(this.modrn(k.words[0]))}:{div:this.divn(k.words[0]),mod:new I(this.modrn(k.words[0]))}:this._wordDiv(k,B)},I.prototype.div=function(k){return this.divmod(k,"div",!1).div},I.prototype.mod=function(k){return this.divmod(k,"mod",!1).mod},I.prototype.umod=function(k){return this.divmod(k,"mod",!0).mod},I.prototype.divRound=function(k){var B=this.divmod(k);if(B.mod.isZero())return B.div;var z=B.div.negative!==0?B.mod.isub(k):B.mod,ee=k.ushrn(1),H=k.andln(1),q=z.cmp(ee);return q<0||H===1&&q===0?B.div:B.div.negative!==0?B.div.isubn(1):B.div.iaddn(1)},I.prototype.modrn=function(k){var B=k<0;B&&(k=-k),_(k<=67108863);for(var z=(1<<26)%k,ee=0,H=this.length-1;H>=0;H--)ee=(z*ee+(this.words[H]|0))%k;return B?-ee:ee},I.prototype.modn=function(k){return this.modrn(k)},I.prototype.idivn=function(k){var B=k<0;B&&(k=-k),_(k<=67108863);for(var z=0,ee=this.length-1;ee>=0;ee--){var H=(this.words[ee]|0)+z*67108864;this.words[ee]=H/k|0,z=H%k}return this._strip(),B?this.ineg():this},I.prototype.divn=function(k){return this.clone().idivn(k)},I.prototype.egcd=function(k){_(k.negative===0),_(!k.isZero());var B=this,z=k.clone();B.negative!==0?B=B.umod(k):B=B.clone();for(var ee=new I(1),H=new I(0),q=new I(0),J=new I(1),U=0;B.isEven()&&z.isEven();)B.iushrn(1),z.iushrn(1),++U;for(var Z=z.clone(),ve=B.clone();!B.isZero();){for(var Ye=0,rt=1;!(B.words[0]&rt)&&Ye<26;++Ye,rt<<=1);if(Ye>0)for(B.iushrn(Ye);Ye-- >0;)(ee.isOdd()||H.isOdd())&&(ee.iadd(Z),H.isub(ve)),ee.iushrn(1),H.iushrn(1);for(var Ue=0,Qe=1;!(z.words[0]&Qe)&&Ue<26;++Ue,Qe<<=1);if(Ue>0)for(z.iushrn(Ue);Ue-- >0;)(q.isOdd()||J.isOdd())&&(q.iadd(Z),J.isub(ve)),q.iushrn(1),J.iushrn(1);B.cmp(z)>=0?(B.isub(z),ee.isub(q),H.isub(J)):(z.isub(B),q.isub(ee),J.isub(H))}return{a:q,b:J,gcd:z.iushln(U)}},I.prototype._invmp=function(k){_(k.negative===0),_(!k.isZero());var B=this,z=k.clone();B.negative!==0?B=B.umod(k):B=B.clone();for(var ee=new I(1),H=new I(0),q=z.clone();B.cmpn(1)>0&&z.cmpn(1)>0;){for(var J=0,U=1;!(B.words[0]&U)&&J<26;++J,U<<=1);if(J>0)for(B.iushrn(J);J-- >0;)ee.isOdd()&&ee.iadd(q),ee.iushrn(1);for(var Z=0,ve=1;!(z.words[0]&ve)&&Z<26;++Z,ve<<=1);if(Z>0)for(z.iushrn(Z);Z-- >0;)H.isOdd()&&H.iadd(q),H.iushrn(1);B.cmp(z)>=0?(B.isub(z),ee.isub(H)):(z.isub(B),H.isub(ee))}var Ye;return B.cmpn(1)===0?Ye=ee:Ye=H,Ye.cmpn(0)<0&&Ye.iadd(k),Ye},I.prototype.gcd=function(k){if(this.isZero())return k.abs();if(k.isZero())return this.abs();var B=this.clone(),z=k.clone();B.negative=0,z.negative=0;for(var ee=0;B.isEven()&&z.isEven();ee++)B.iushrn(1),z.iushrn(1);do{for(;B.isEven();)B.iushrn(1);for(;z.isEven();)z.iushrn(1);var H=B.cmp(z);if(H<0){var q=B;B=z,z=q}else if(H===0||z.cmpn(1)===0)break;B.isub(z)}while(!0);return z.iushln(ee)},I.prototype.invm=function(k){return this.egcd(k).a.umod(k)},I.prototype.isEven=function(){return(this.words[0]&1)===0},I.prototype.isOdd=function(){return(this.words[0]&1)===1},I.prototype.andln=function(k){return this.words[0]&k},I.prototype.bincn=function(k){_(typeof k=="number");var B=k%26,z=(k-B)/26,ee=1<<B;if(this.length<=z)return this._expand(z+1),this.words[z]|=ee,this;for(var H=ee,q=z;H!==0&&q<this.length;q++){var J=this.words[q]|0;J+=H,H=J>>>26,J&=67108863,this.words[q]=J}return H!==0&&(this.words[q]=H,this.length++),this},I.prototype.isZero=function(){return this.length===1&&this.words[0]===0},I.prototype.cmpn=function(k){var B=k<0;if(this.negative!==0&&!B)return-1;if(this.negative===0&&B)return 1;this._strip();var z;if(this.length>1)z=1;else{B&&(k=-k),_(k<=67108863,"Number is too big");var ee=this.words[0]|0;z=ee===k?0:ee<k?-1:1}return this.negative!==0?-z|0:z},I.prototype.cmp=function(k){if(this.negative!==0&&k.negative===0)return-1;if(this.negative===0&&k.negative!==0)return 1;var B=this.ucmp(k);return this.negative!==0?-B|0:B},I.prototype.ucmp=function(k){if(this.length>k.length)return 1;if(this.length<k.length)return-1;for(var B=0,z=this.length-1;z>=0;z--){var ee=this.words[z]|0,H=k.words[z]|0;if(ee!==H){ee<H?B=-1:ee>H&&(B=1);break}}return B},I.prototype.gtn=function(k){return this.cmpn(k)===1},I.prototype.gt=function(k){return this.cmp(k)===1},I.prototype.gten=function(k){return this.cmpn(k)>=0},I.prototype.gte=function(k){return this.cmp(k)>=0},I.prototype.ltn=function(k){return this.cmpn(k)===-1},I.prototype.lt=function(k){return this.cmp(k)===-1},I.prototype.lten=function(k){return this.cmpn(k)<=0},I.prototype.lte=function(k){return this.cmp(k)<=0},I.prototype.eqn=function(k){return this.cmpn(k)===0},I.prototype.eq=function(k){return this.cmp(k)===0},I.red=function(k){return new le(k)},I.prototype.toRed=function(k){return _(!this.red,"Already a number in reduction context"),_(this.negative===0,"red works only with positives"),k.convertTo(this)._forceRed(k)},I.prototype.fromRed=function(){return _(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},I.prototype._forceRed=function(k){return this.red=k,this},I.prototype.forceRed=function(k){return _(!this.red,"Already a number in reduction context"),this._forceRed(k)},I.prototype.redAdd=function(k){return _(this.red,"redAdd works only with red numbers"),this.red.add(this,k)},I.prototype.redIAdd=function(k){return _(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,k)},I.prototype.redSub=function(k){return _(this.red,"redSub works only with red numbers"),this.red.sub(this,k)},I.prototype.redISub=function(k){return _(this.red,"redISub works only with red numbers"),this.red.isub(this,k)},I.prototype.redShl=function(k){return _(this.red,"redShl works only with red numbers"),this.red.shl(this,k)},I.prototype.redMul=function(k){return _(this.red,"redMul works only with red numbers"),this.red._verify2(this,k),this.red.mul(this,k)},I.prototype.redIMul=function(k){return _(this.red,"redMul works only with red numbers"),this.red._verify2(this,k),this.red.imul(this,k)},I.prototype.redSqr=function(){return _(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},I.prototype.redISqr=function(){return _(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},I.prototype.redSqrt=function(){return _(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},I.prototype.redInvm=function(){return _(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},I.prototype.redNeg=function(){return _(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},I.prototype.redPow=function(k){return _(this.red&&!k.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,k)};var ge={k256:null,p224:null,p192:null,p25519:null};function be(P,k){this.name=P,this.p=new I(k,16),this.n=this.p.bitLength(),this.k=new I(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}be.prototype._tmp=function(){var k=new I(null);return k.words=new Array(Math.ceil(this.n/13)),k},be.prototype.ireduce=function(k){var B=k,z;do this.split(B,this.tmp),B=this.imulK(B),B=B.iadd(this.tmp),z=B.bitLength();while(z>this.n);var ee=z<this.n?-1:B.ucmp(this.p);return ee===0?(B.words[0]=0,B.length=1):ee>0?B.isub(this.p):B.strip!==void 0?B.strip():B._strip(),B},be.prototype.split=function(k,B){k.iushrn(this.n,0,B)},be.prototype.imulK=function(k){return k.imul(this.k)};function ze(){be.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}x(ze,be),ze.prototype.split=function(k,B){for(var z=4194303,ee=Math.min(k.length,9),H=0;H<ee;H++)B.words[H]=k.words[H];if(B.length=ee,k.length<=9){k.words[0]=0,k.length=1;return}var q=k.words[9];for(B.words[B.length++]=q&z,H=10;H<k.length;H++){var J=k.words[H]|0;k.words[H-10]=(J&z)<<4|q>>>22,q=J}q>>>=22,k.words[H-10]=q,q===0&&k.length>10?k.length-=10:k.length-=9},ze.prototype.imulK=function(k){k.words[k.length]=0,k.words[k.length+1]=0,k.length+=2;for(var B=0,z=0;z<k.length;z++){var ee=k.words[z]|0;B+=ee*977,k.words[z]=B&67108863,B=ee*64+(B/67108864|0)}return k.words[k.length-1]===0&&(k.length--,k.words[k.length-1]===0&&k.length--),k};function de(){be.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}x(de,be);function Ce(){be.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}x(Ce,be);function ke(){be.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}x(ke,be),ke.prototype.imulK=function(k){for(var B=0,z=0;z<k.length;z++){var ee=(k.words[z]|0)*19+B,H=ee&67108863;ee>>>=26,k.words[z]=H,B=ee}return B!==0&&(k.words[k.length++]=B),k},I._prime=function(k){if(ge[k])return ge[k];var B;if(k==="k256")B=new ze;else if(k==="p224")B=new de;else if(k==="p192")B=new Ce;else if(k==="p25519")B=new ke;else throw new Error("Unknown prime "+k);return ge[k]=B,B};function le(P){if(typeof P=="string"){var k=I._prime(P);this.m=k.p,this.prime=k}else _(P.gtn(1),"modulus must be greater than 1"),this.m=P,this.prime=null}le.prototype._verify1=function(k){_(k.negative===0,"red works only with positives"),_(k.red,"red works only with red numbers")},le.prototype._verify2=function(k,B){_((k.negative|B.negative)===0,"red works only with positives"),_(k.red&&k.red===B.red,"red works only with red numbers")},le.prototype.imod=function(k){return this.prime?this.prime.ireduce(k)._forceRed(this):(T(k,k.umod(this.m)._forceRed(this)),k)},le.prototype.neg=function(k){return k.isZero()?k.clone():this.m.sub(k)._forceRed(this)},le.prototype.add=function(k,B){this._verify2(k,B);var z=k.add(B);return z.cmp(this.m)>=0&&z.isub(this.m),z._forceRed(this)},le.prototype.iadd=function(k,B){this._verify2(k,B);var z=k.iadd(B);return z.cmp(this.m)>=0&&z.isub(this.m),z},le.prototype.sub=function(k,B){this._verify2(k,B);var z=k.sub(B);return z.cmpn(0)<0&&z.iadd(this.m),z._forceRed(this)},le.prototype.isub=function(k,B){this._verify2(k,B);var z=k.isub(B);return z.cmpn(0)<0&&z.iadd(this.m),z},le.prototype.shl=function(k,B){return this._verify1(k),this.imod(k.ushln(B))},le.prototype.imul=function(k,B){return this._verify2(k,B),this.imod(k.imul(B))},le.prototype.mul=function(k,B){return this._verify2(k,B),this.imod(k.mul(B))},le.prototype.isqr=function(k){return this.imul(k,k.clone())},le.prototype.sqr=function(k){return this.mul(k,k)},le.prototype.sqrt=function(k){if(k.isZero())return k.clone();var B=this.m.andln(3);if(_(B%2===1),B===3){var z=this.m.add(new I(1)).iushrn(2);return this.pow(k,z)}for(var ee=this.m.subn(1),H=0;!ee.isZero()&&ee.andln(1)===0;)H++,ee.iushrn(1);_(!ee.isZero());var q=new I(1).toRed(this),J=q.redNeg(),U=this.m.subn(1).iushrn(1),Z=this.m.bitLength();for(Z=new I(2*Z*Z).toRed(this);this.pow(Z,U).cmp(J)!==0;)Z.redIAdd(J);for(var ve=this.pow(Z,ee),Ye=this.pow(k,ee.addn(1).iushrn(1)),rt=this.pow(k,ee),Ue=H;rt.cmp(q)!==0;){for(var Qe=rt,vt=0;Qe.cmp(q)!==0;vt++)Qe=Qe.redSqr();_(vt<Ue);var ri=this.pow(ve,new I(1).iushln(Ue-vt-1));Ye=Ye.redMul(ri),ve=ri.redSqr(),rt=rt.redMul(ve),Ue=vt}return Ye},le.prototype.invm=function(k){var B=k._invmp(this.m);return B.negative!==0?(B.negative=0,this.imod(B).redNeg()):this.imod(B)},le.prototype.pow=function(k,B){if(B.isZero())return new I(1).toRed(this);if(B.cmpn(1)===0)return k.clone();var z=4,ee=new Array(1<<z);ee[0]=new I(1).toRed(this),ee[1]=k;for(var H=2;H<ee.length;H++)ee[H]=this.mul(ee[H-1],k);var q=ee[0],J=0,U=0,Z=B.bitLength()%26;for(Z===0&&(Z=26),H=B.length-1;H>=0;H--){for(var ve=B.words[H],Ye=Z-1;Ye>=0;Ye--){var rt=ve>>Ye&1;if(q!==ee[0]&&(q=this.sqr(q)),rt===0&&J===0){U=0;continue}J<<=1,J|=rt,U++,!(U!==z&&(H!==0||Ye!==0))&&(q=this.mul(q,ee[J]),U=0,J=0)}Z=26}return q},le.prototype.convertTo=function(k){var B=k.umod(this.m);return B===k?B.clone():B},le.prototype.convertFrom=function(k){var B=k.clone();return B.red=null,B},I.mont=function(k){return new re(k)};function re(P){le.call(this,P),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new I(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}x(re,le),re.prototype.convertTo=function(k){return this.imod(k.ushln(this.shift))},re.prototype.convertFrom=function(k){var B=this.imod(k.mul(this.rinv));return B.red=null,B},re.prototype.imul=function(k,B){if(k.isZero()||B.isZero())return k.words[0]=0,k.length=1,k;var z=k.imul(B),ee=z.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),H=z.isub(ee).iushrn(this.shift),q=H;return H.cmp(this.m)>=0?q=H.isub(this.m):H.cmpn(0)<0&&(q=H.iadd(this.m)),q._forceRed(this)},re.prototype.mul=function(k,B){if(k.isZero()||B.isZero())return new I(0)._forceRed(this);var z=k.mul(B),ee=z.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),H=z.isub(ee).iushrn(this.shift),q=H;return H.cmp(this.m)>=0?q=H.isub(this.m):H.cmpn(0)<0&&(q=H.iadd(this.m)),q._forceRed(this)},re.prototype.invm=function(k){var B=this.imod(k._invmp(this.m).mul(this.r2));return B._forceRed(this)}})(u,commonjsGlobal$1)}(bn$1)),bn$1.exports}var browserifyRsa,hasRequiredBrowserifyRsa;function requireBrowserifyRsa(){if(hasRequiredBrowserifyRsa)return browserifyRsa;hasRequiredBrowserifyRsa=1;var u=requireBn$1(),f=requireBrowser$a();function d(I){var E=_(I),M=E.toRed(u.mont(I.modulus)).redPow(new u(I.publicExponent)).fromRed();return{blinder:M,unblinder:E.invm(I.modulus)}}function _(I){var E=I.modulus.byteLength(),M;do M=new u(f(E));while(M.cmp(I.modulus)>=0||!M.umod(I.prime1)||!M.umod(I.prime2));return M}function x(I,E){var M=d(E),S=E.modulus.byteLength(),A=new u(I).mul(M.blinder).umod(E.modulus),T=A.toRed(u.mont(E.prime1)),D=A.toRed(u.mont(E.prime2)),O=E.coefficient,j=E.prime1,$=E.prime2,W=T.redPow(E.exponent1).fromRed(),Q=D.redPow(E.exponent2).fromRed(),X=W.isub(Q).imul(O).umod(j).imul($);return Q.iadd(X).imul(M.unblinder).umod(E.modulus).toArrayLike(buffer$2.Buffer,"be",S)}return x.getr=_,browserifyRsa=x,browserifyRsa}var elliptic={};const name="elliptic",version="6.5.4",description="EC cryptography",main="lib/elliptic.js",files=["lib"],scripts={lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository={type:"git",url:"git@github.com:indutny/elliptic"},keywords=["EC","Elliptic","curve","Cryptography"],author="Fedor Indutny <fedor@indutny.com>",license="MIT",bugs={url:"https://github.com/indutny/elliptic/issues"},homepage="https://github.com/indutny/elliptic",devDependencies={brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},dependencies={"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"},require$$0={name,version,description,main,files,scripts,repository,keywords,author,license,bugs,homepage,devDependencies,dependencies};var utils$2={},utils$1={},hasRequiredUtils$2;function requireUtils$2(){return hasRequiredUtils$2||(hasRequiredUtils$2=1,function(u){var f=u;function d(I,E){if(Array.isArray(I))return I.slice();if(!I)return[];var M=[];if(typeof I!="string"){for(var S=0;S<I.length;S++)M[S]=I[S]|0;return M}if(E==="hex"){I=I.replace(/[^a-z0-9]+/ig,""),I.length%2!==0&&(I="0"+I);for(var S=0;S<I.length;S+=2)M.push(parseInt(I[S]+I[S+1],16))}else for(var S=0;S<I.length;S++){var A=I.charCodeAt(S),T=A>>8,D=A&255;T?M.push(T,D):M.push(D)}return M}f.toArray=d;function _(I){return I.length===1?"0"+I:I}f.zero2=_;function x(I){for(var E="",M=0;M<I.length;M++)E+=_(I[M].toString(16));return E}f.toHex=x,f.encode=function(E,M){return M==="hex"?x(E):E}}(utils$1)),utils$1}var hasRequiredUtils$1;function requireUtils$1(){return hasRequiredUtils$1||(hasRequiredUtils$1=1,function(u){var f=u,d=requireBn$2(),_=requireMinimalisticAssert(),x=requireUtils$2();f.assert=_,f.toArray=x.toArray,f.zero2=x.zero2,f.toHex=x.toHex,f.encode=x.encode;function I(T,D,O){var j=new Array(Math.max(T.bitLength(),O)+1);j.fill(0);for(var $=1<<D+1,W=T.clone(),Q=0;Q<j.length;Q++){var X,Y=W.andln($-1);W.isOdd()?(Y>($>>1)-1?X=($>>1)-Y:X=Y,W.isubn(X)):X=0,j[Q]=X,W.iushrn(1)}return j}f.getNAF=I;function E(T,D){var O=[[],[]];T=T.clone(),D=D.clone();for(var j=0,$=0,W;T.cmpn(-j)>0||D.cmpn(-$)>0;){var Q=T.andln(3)+j&3,X=D.andln(3)+$&3;Q===3&&(Q=-1),X===3&&(X=-1);var Y;Q&1?(W=T.andln(7)+j&7,(W===3||W===5)&&X===2?Y=-Q:Y=Q):Y=0,O[0].push(Y);var ie;X&1?(W=D.andln(7)+$&7,(W===3||W===5)&&Q===2?ie=-X:ie=X):ie=0,O[1].push(ie),2*j===Y+1&&(j=1-j),2*$===ie+1&&($=1-$),T.iushrn(1),D.iushrn(1)}return O}f.getJSF=E;function M(T,D,O){var j="_"+D;T.prototype[D]=function(){return this[j]!==void 0?this[j]:this[j]=O.call(this)}}f.cachedProperty=M;function S(T){return typeof T=="string"?f.toArray(T,"hex"):T}f.parseBytes=S;function A(T){return new d(T,"hex","le")}f.intFromLE=A}(utils$2)),utils$2}var curve={},base$1,hasRequiredBase$1;function requireBase$1(){if(hasRequiredBase$1)return base$1;hasRequiredBase$1=1;var u=requireBn$2(),f=requireUtils$1(),d=f.getNAF,_=f.getJSF,x=f.assert;function I(M,S){this.type=M,this.p=new u(S.p,16),this.red=S.prime?u.red(S.prime):u.mont(this.p),this.zero=new u(0).toRed(this.red),this.one=new u(1).toRed(this.red),this.two=new u(2).toRed(this.red),this.n=S.n&&new u(S.n,16),this.g=S.g&&this.pointFromJSON(S.g,S.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var A=this.n&&this.p.div(this.n);!A||A.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}base$1=I,I.prototype.point=function(){throw new Error("Not implemented")},I.prototype.validate=function(){throw new Error("Not implemented")},I.prototype._fixedNafMul=function(S,A){x(S.precomputed);var T=S._getDoubles(),D=d(A,1,this._bitLength),O=(1<<T.step+1)-(T.step%2===0?2:1);O/=3;var j=[],$,W;for($=0;$<D.length;$+=T.step){W=0;for(var Q=$+T.step-1;Q>=$;Q--)W=(W<<1)+D[Q];j.push(W)}for(var X=this.jpoint(null,null,null),Y=this.jpoint(null,null,null),ie=O;ie>0;ie--){for($=0;$<j.length;$++)W=j[$],W===ie?Y=Y.mixedAdd(T.points[$]):W===-ie&&(Y=Y.mixedAdd(T.points[$].neg()));X=X.add(Y)}return X.toP()},I.prototype._wnafMul=function(S,A){var T=4,D=S._getNAFPoints(T);T=D.wnd;for(var O=D.points,j=d(A,T,this._bitLength),$=this.jpoint(null,null,null),W=j.length-1;W>=0;W--){for(var Q=0;W>=0&&j[W]===0;W--)Q++;if(W>=0&&Q++,$=$.dblp(Q),W<0)break;var X=j[W];x(X!==0),S.type==="affine"?X>0?$=$.mixedAdd(O[X-1>>1]):$=$.mixedAdd(O[-X-1>>1].neg()):X>0?$=$.add(O[X-1>>1]):$=$.add(O[-X-1>>1].neg())}return S.type==="affine"?$.toP():$},I.prototype._wnafMulAdd=function(S,A,T,D,O){var j=this._wnafT1,$=this._wnafT2,W=this._wnafT3,Q=0,X,Y,ie;for(X=0;X<D;X++){ie=A[X];var oe=ie._getNAFPoints(S);j[X]=oe.wnd,$[X]=oe.points}for(X=D-1;X>=1;X-=2){var ge=X-1,be=X;if(j[ge]!==1||j[be]!==1){W[ge]=d(T[ge],j[ge],this._bitLength),W[be]=d(T[be],j[be],this._bitLength),Q=Math.max(W[ge].length,Q),Q=Math.max(W[be].length,Q);continue}var ze=[A[ge],null,null,A[be]];A[ge].y.cmp(A[be].y)===0?(ze[1]=A[ge].add(A[be]),ze[2]=A[ge].toJ().mixedAdd(A[be].neg())):A[ge].y.cmp(A[be].y.redNeg())===0?(ze[1]=A[ge].toJ().mixedAdd(A[be]),ze[2]=A[ge].add(A[be].neg())):(ze[1]=A[ge].toJ().mixedAdd(A[be]),ze[2]=A[ge].toJ().mixedAdd(A[be].neg()));var de=[-3,-1,-5,-7,0,7,5,1,3],Ce=_(T[ge],T[be]);for(Q=Math.max(Ce[0].length,Q),W[ge]=new Array(Q),W[be]=new Array(Q),Y=0;Y<Q;Y++){var ke=Ce[0][Y]|0,le=Ce[1][Y]|0;W[ge][Y]=de[(ke+1)*3+(le+1)],W[be][Y]=0,$[ge]=ze}}var re=this.jpoint(null,null,null),P=this._wnafT4;for(X=Q;X>=0;X--){for(var k=0;X>=0;){var B=!0;for(Y=0;Y<D;Y++)P[Y]=W[Y][X]|0,P[Y]!==0&&(B=!1);if(!B)break;k++,X--}if(X>=0&&k++,re=re.dblp(k),X<0)break;for(Y=0;Y<D;Y++){var z=P[Y];z!==0&&(z>0?ie=$[Y][z-1>>1]:z<0&&(ie=$[Y][-z-1>>1].neg()),ie.type==="affine"?re=re.mixedAdd(ie):re=re.add(ie))}}for(X=0;X<D;X++)$[X]=null;return O?re:re.toP()};function E(M,S){this.curve=M,this.type=S,this.precomputed=null}return I.BasePoint=E,E.prototype.eq=function(){throw new Error("Not implemented")},E.prototype.validate=function(){return this.curve.validate(this)},I.prototype.decodePoint=function(S,A){S=f.toArray(S,A);var T=this.p.byteLength();if((S[0]===4||S[0]===6||S[0]===7)&&S.length-1===2*T){S[0]===6?x(S[S.length-1]%2===0):S[0]===7&&x(S[S.length-1]%2===1);var D=this.point(S.slice(1,1+T),S.slice(1+T,1+2*T));return D}else if((S[0]===2||S[0]===3)&&S.length-1===T)return this.pointFromX(S.slice(1,1+T),S[0]===3);throw new Error("Unknown point format")},E.prototype.encodeCompressed=function(S){return this.encode(S,!0)},E.prototype._encode=function(S){var A=this.curve.p.byteLength(),T=this.getX().toArray("be",A);return S?[this.getY().isEven()?2:3].concat(T):[4].concat(T,this.getY().toArray("be",A))},E.prototype.encode=function(S,A){return f.encode(this._encode(A),S)},E.prototype.precompute=function(S){if(this.precomputed)return this;var A={doubles:null,naf:null,beta:null};return A.naf=this._getNAFPoints(8),A.doubles=this._getDoubles(4,S),A.beta=this._getBeta(),this.precomputed=A,this},E.prototype._hasDoubles=function(S){if(!this.precomputed)return!1;var A=this.precomputed.doubles;return A?A.points.length>=Math.ceil((S.bitLength()+1)/A.step):!1},E.prototype._getDoubles=function(S,A){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var T=[this],D=this,O=0;O<A;O+=S){for(var j=0;j<S;j++)D=D.dbl();T.push(D)}return{step:S,points:T}},E.prototype._getNAFPoints=function(S){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var A=[this],T=(1<<S)-1,D=T===1?null:this.dbl(),O=1;O<T;O++)A[O]=A[O-1].add(D);return{wnd:S,points:A}},E.prototype._getBeta=function(){return null},E.prototype.dblp=function(S){for(var A=this,T=0;T<S;T++)A=A.dbl();return A},base$1}var short,hasRequiredShort;function requireShort(){if(hasRequiredShort)return short;hasRequiredShort=1;var u=requireUtils$1(),f=requireBn$2(),d=inherits_browserExports,_=requireBase$1(),x=u.assert;function I(S){_.call(this,"short",S),this.a=new f(S.a,16).toRed(this.red),this.b=new f(S.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=this.a.fromRed().cmpn(0)===0,this.threeA=this.a.fromRed().sub(this.p).cmpn(-3)===0,this.endo=this._getEndomorphism(S),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}d(I,_),short=I,I.prototype._getEndomorphism=function(A){if(!(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)){var T,D;if(A.beta)T=new f(A.beta,16).toRed(this.red);else{var O=this._getEndoRoots(this.p);T=O[0].cmp(O[1])<0?O[0]:O[1],T=T.toRed(this.red)}if(A.lambda)D=new f(A.lambda,16);else{var j=this._getEndoRoots(this.n);this.g.mul(j[0]).x.cmp(this.g.x.redMul(T))===0?D=j[0]:(D=j[1],x(this.g.mul(D).x.cmp(this.g.x.redMul(T))===0))}var $;return A.basis?$=A.basis.map(function(W){return{a:new f(W.a,16),b:new f(W.b,16)}}):$=this._getEndoBasis(D),{beta:T,lambda:D,basis:$}}},I.prototype._getEndoRoots=function(A){var T=A===this.p?this.red:f.mont(A),D=new f(2).toRed(T).redInvm(),O=D.redNeg(),j=new f(3).toRed(T).redNeg().redSqrt().redMul(D),$=O.redAdd(j).fromRed(),W=O.redSub(j).fromRed();return[$,W]},I.prototype._getEndoBasis=function(A){for(var T=this.n.ushrn(Math.floor(this.n.bitLength()/2)),D=A,O=this.n.clone(),j=new f(1),$=new f(0),W=new f(0),Q=new f(1),X,Y,ie,oe,ge,be,ze,de=0,Ce,ke;D.cmpn(0)!==0;){var le=O.div(D);Ce=O.sub(le.mul(D)),ke=W.sub(le.mul(j));var re=Q.sub(le.mul($));if(!ie&&Ce.cmp(T)<0)X=ze.neg(),Y=j,ie=Ce.neg(),oe=ke;else if(ie&&++de===2)break;ze=Ce,O=D,D=Ce,W=j,j=ke,Q=$,$=re}ge=Ce.neg(),be=ke;var P=ie.sqr().add(oe.sqr()),k=ge.sqr().add(be.sqr());return k.cmp(P)>=0&&(ge=X,be=Y),ie.negative&&(ie=ie.neg(),oe=oe.neg()),ge.negative&&(ge=ge.neg(),be=be.neg()),[{a:ie,b:oe},{a:ge,b:be}]},I.prototype._endoSplit=function(A){var T=this.endo.basis,D=T[0],O=T[1],j=O.b.mul(A).divRound(this.n),$=D.b.neg().mul(A).divRound(this.n),W=j.mul(D.a),Q=$.mul(O.a),X=j.mul(D.b),Y=$.mul(O.b),ie=A.sub(W).sub(Q),oe=X.add(Y).neg();return{k1:ie,k2:oe}},I.prototype.pointFromX=function(A,T){A=new f(A,16),A.red||(A=A.toRed(this.red));var D=A.redSqr().redMul(A).redIAdd(A.redMul(this.a)).redIAdd(this.b),O=D.redSqrt();if(O.redSqr().redSub(D).cmp(this.zero)!==0)throw new Error("invalid point");var j=O.fromRed().isOdd();return(T&&!j||!T&&j)&&(O=O.redNeg()),this.point(A,O)},I.prototype.validate=function(A){if(A.inf)return!0;var T=A.x,D=A.y,O=this.a.redMul(T),j=T.redSqr().redMul(T).redIAdd(O).redIAdd(this.b);return D.redSqr().redISub(j).cmpn(0)===0},I.prototype._endoWnafMulAdd=function(A,T,D){for(var O=this._endoWnafT1,j=this._endoWnafT2,$=0;$<A.length;$++){var W=this._endoSplit(T[$]),Q=A[$],X=Q._getBeta();W.k1.negative&&(W.k1.ineg(),Q=Q.neg(!0)),W.k2.negative&&(W.k2.ineg(),X=X.neg(!0)),O[$*2]=Q,O[$*2+1]=X,j[$*2]=W.k1,j[$*2+1]=W.k2}for(var Y=this._wnafMulAdd(1,O,j,$*2,D),ie=0;ie<$*2;ie++)O[ie]=null,j[ie]=null;return Y};function E(S,A,T,D){_.BasePoint.call(this,S,"affine"),A===null&&T===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new f(A,16),this.y=new f(T,16),D&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}d(E,_.BasePoint),I.prototype.point=function(A,T,D){return new E(this,A,T,D)},I.prototype.pointFromJSON=function(A,T){return E.fromJSON(this,A,T)},E.prototype._getBeta=function(){if(this.curve.endo){var A=this.precomputed;if(A&&A.beta)return A.beta;var T=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(A){var D=this.curve,O=function(j){return D.point(j.x.redMul(D.endo.beta),j.y)};A.beta=T,T.precomputed={beta:null,naf:A.naf&&{wnd:A.naf.wnd,points:A.naf.points.map(O)},doubles:A.doubles&&{step:A.doubles.step,points:A.doubles.points.map(O)}}}return T}},E.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},E.fromJSON=function(A,T,D){typeof T=="string"&&(T=JSON.parse(T));var O=A.point(T[0],T[1],D);if(!T[2])return O;function j(W){return A.point(W[0],W[1],D)}var $=T[2];return O.precomputed={beta:null,doubles:$.doubles&&{step:$.doubles.step,points:[O].concat($.doubles.points.map(j))},naf:$.naf&&{wnd:$.naf.wnd,points:[O].concat($.naf.points.map(j))}},O},E.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},E.prototype.isInfinity=function(){return this.inf},E.prototype.add=function(A){if(this.inf)return A;if(A.inf)return this;if(this.eq(A))return this.dbl();if(this.neg().eq(A))return this.curve.point(null,null);if(this.x.cmp(A.x)===0)return this.curve.point(null,null);var T=this.y.redSub(A.y);T.cmpn(0)!==0&&(T=T.redMul(this.x.redSub(A.x).redInvm()));var D=T.redSqr().redISub(this.x).redISub(A.x),O=T.redMul(this.x.redSub(D)).redISub(this.y);return this.curve.point(D,O)},E.prototype.dbl=function(){if(this.inf)return this;var A=this.y.redAdd(this.y);if(A.cmpn(0)===0)return this.curve.point(null,null);var T=this.curve.a,D=this.x.redSqr(),O=A.redInvm(),j=D.redAdd(D).redIAdd(D).redIAdd(T).redMul(O),$=j.redSqr().redISub(this.x.redAdd(this.x)),W=j.redMul(this.x.redSub($)).redISub(this.y);return this.curve.point($,W)},E.prototype.getX=function(){return this.x.fromRed()},E.prototype.getY=function(){return this.y.fromRed()},E.prototype.mul=function(A){return A=new f(A,16),this.isInfinity()?this:this._hasDoubles(A)?this.curve._fixedNafMul(this,A):this.curve.endo?this.curve._endoWnafMulAdd([this],[A]):this.curve._wnafMul(this,A)},E.prototype.mulAdd=function(A,T,D){var O=[this,T],j=[A,D];return this.curve.endo?this.curve._endoWnafMulAdd(O,j):this.curve._wnafMulAdd(1,O,j,2)},E.prototype.jmulAdd=function(A,T,D){var O=[this,T],j=[A,D];return this.curve.endo?this.curve._endoWnafMulAdd(O,j,!0):this.curve._wnafMulAdd(1,O,j,2,!0)},E.prototype.eq=function(A){return this===A||this.inf===A.inf&&(this.inf||this.x.cmp(A.x)===0&&this.y.cmp(A.y)===0)},E.prototype.neg=function(A){if(this.inf)return this;var T=this.curve.point(this.x,this.y.redNeg());if(A&&this.precomputed){var D=this.precomputed,O=function(j){return j.neg()};T.precomputed={naf:D.naf&&{wnd:D.naf.wnd,points:D.naf.points.map(O)},doubles:D.doubles&&{step:D.doubles.step,points:D.doubles.points.map(O)}}}return T},E.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var A=this.curve.jpoint(this.x,this.y,this.curve.one);return A};function M(S,A,T,D){_.BasePoint.call(this,S,"jacobian"),A===null&&T===null&&D===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new f(0)):(this.x=new f(A,16),this.y=new f(T,16),this.z=new f(D,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}return d(M,_.BasePoint),I.prototype.jpoint=function(A,T,D){return new M(this,A,T,D)},M.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var A=this.z.redInvm(),T=A.redSqr(),D=this.x.redMul(T),O=this.y.redMul(T).redMul(A);return this.curve.point(D,O)},M.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},M.prototype.add=function(A){if(this.isInfinity())return A;if(A.isInfinity())return this;var T=A.z.redSqr(),D=this.z.redSqr(),O=this.x.redMul(T),j=A.x.redMul(D),$=this.y.redMul(T.redMul(A.z)),W=A.y.redMul(D.redMul(this.z)),Q=O.redSub(j),X=$.redSub(W);if(Q.cmpn(0)===0)return X.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var Y=Q.redSqr(),ie=Y.redMul(Q),oe=O.redMul(Y),ge=X.redSqr().redIAdd(ie).redISub(oe).redISub(oe),be=X.redMul(oe.redISub(ge)).redISub($.redMul(ie)),ze=this.z.redMul(A.z).redMul(Q);return this.curve.jpoint(ge,be,ze)},M.prototype.mixedAdd=function(A){if(this.isInfinity())return A.toJ();if(A.isInfinity())return this;var T=this.z.redSqr(),D=this.x,O=A.x.redMul(T),j=this.y,$=A.y.redMul(T).redMul(this.z),W=D.redSub(O),Q=j.redSub($);if(W.cmpn(0)===0)return Q.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var X=W.redSqr(),Y=X.redMul(W),ie=D.redMul(X),oe=Q.redSqr().redIAdd(Y).redISub(ie).redISub(ie),ge=Q.redMul(ie.redISub(oe)).redISub(j.redMul(Y)),be=this.z.redMul(W);return this.curve.jpoint(oe,ge,be)},M.prototype.dblp=function(A){if(A===0)return this;if(this.isInfinity())return this;if(!A)return this.dbl();var T;if(this.curve.zeroA||this.curve.threeA){var D=this;for(T=0;T<A;T++)D=D.dbl();return D}var O=this.curve.a,j=this.curve.tinv,$=this.x,W=this.y,Q=this.z,X=Q.redSqr().redSqr(),Y=W.redAdd(W);for(T=0;T<A;T++){var ie=$.redSqr(),oe=Y.redSqr(),ge=oe.redSqr(),be=ie.redAdd(ie).redIAdd(ie).redIAdd(O.redMul(X)),ze=$.redMul(oe),de=be.redSqr().redISub(ze.redAdd(ze)),Ce=ze.redISub(de),ke=be.redMul(Ce);ke=ke.redIAdd(ke).redISub(ge);var le=Y.redMul(Q);T+1<A&&(X=X.redMul(ge)),$=de,Q=le,Y=ke}return this.curve.jpoint($,Y.redMul(j),Q)},M.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},M.prototype._zeroDbl=function(){var A,T,D;if(this.zOne){var O=this.x.redSqr(),j=this.y.redSqr(),$=j.redSqr(),W=this.x.redAdd(j).redSqr().redISub(O).redISub($);W=W.redIAdd(W);var Q=O.redAdd(O).redIAdd(O),X=Q.redSqr().redISub(W).redISub(W),Y=$.redIAdd($);Y=Y.redIAdd(Y),Y=Y.redIAdd(Y),A=X,T=Q.redMul(W.redISub(X)).redISub(Y),D=this.y.redAdd(this.y)}else{var ie=this.x.redSqr(),oe=this.y.redSqr(),ge=oe.redSqr(),be=this.x.redAdd(oe).redSqr().redISub(ie).redISub(ge);be=be.redIAdd(be);var ze=ie.redAdd(ie).redIAdd(ie),de=ze.redSqr(),Ce=ge.redIAdd(ge);Ce=Ce.redIAdd(Ce),Ce=Ce.redIAdd(Ce),A=de.redISub(be).redISub(be),T=ze.redMul(be.redISub(A)).redISub(Ce),D=this.y.redMul(this.z),D=D.redIAdd(D)}return this.curve.jpoint(A,T,D)},M.prototype._threeDbl=function(){var A,T,D;if(this.zOne){var O=this.x.redSqr(),j=this.y.redSqr(),$=j.redSqr(),W=this.x.redAdd(j).redSqr().redISub(O).redISub($);W=W.redIAdd(W);var Q=O.redAdd(O).redIAdd(O).redIAdd(this.curve.a),X=Q.redSqr().redISub(W).redISub(W);A=X;var Y=$.redIAdd($);Y=Y.redIAdd(Y),Y=Y.redIAdd(Y),T=Q.redMul(W.redISub(X)).redISub(Y),D=this.y.redAdd(this.y)}else{var ie=this.z.redSqr(),oe=this.y.redSqr(),ge=this.x.redMul(oe),be=this.x.redSub(ie).redMul(this.x.redAdd(ie));be=be.redAdd(be).redIAdd(be);var ze=ge.redIAdd(ge);ze=ze.redIAdd(ze);var de=ze.redAdd(ze);A=be.redSqr().redISub(de),D=this.y.redAdd(this.z).redSqr().redISub(oe).redISub(ie);var Ce=oe.redSqr();Ce=Ce.redIAdd(Ce),Ce=Ce.redIAdd(Ce),Ce=Ce.redIAdd(Ce),T=be.redMul(ze.redISub(A)).redISub(Ce)}return this.curve.jpoint(A,T,D)},M.prototype._dbl=function(){var A=this.curve.a,T=this.x,D=this.y,O=this.z,j=O.redSqr().redSqr(),$=T.redSqr(),W=D.redSqr(),Q=$.redAdd($).redIAdd($).redIAdd(A.redMul(j)),X=T.redAdd(T);X=X.redIAdd(X);var Y=X.redMul(W),ie=Q.redSqr().redISub(Y.redAdd(Y)),oe=Y.redISub(ie),ge=W.redSqr();ge=ge.redIAdd(ge),ge=ge.redIAdd(ge),ge=ge.redIAdd(ge);var be=Q.redMul(oe).redISub(ge),ze=D.redAdd(D).redMul(O);return this.curve.jpoint(ie,be,ze)},M.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var A=this.x.redSqr(),T=this.y.redSqr(),D=this.z.redSqr(),O=T.redSqr(),j=A.redAdd(A).redIAdd(A),$=j.redSqr(),W=this.x.redAdd(T).redSqr().redISub(A).redISub(O);W=W.redIAdd(W),W=W.redAdd(W).redIAdd(W),W=W.redISub($);var Q=W.redSqr(),X=O.redIAdd(O);X=X.redIAdd(X),X=X.redIAdd(X),X=X.redIAdd(X);var Y=j.redIAdd(W).redSqr().redISub($).redISub(Q).redISub(X),ie=T.redMul(Y);ie=ie.redIAdd(ie),ie=ie.redIAdd(ie);var oe=this.x.redMul(Q).redISub(ie);oe=oe.redIAdd(oe),oe=oe.redIAdd(oe);var ge=this.y.redMul(Y.redMul(X.redISub(Y)).redISub(W.redMul(Q)));ge=ge.redIAdd(ge),ge=ge.redIAdd(ge),ge=ge.redIAdd(ge);var be=this.z.redAdd(W).redSqr().redISub(D).redISub(Q);return this.curve.jpoint(oe,ge,be)},M.prototype.mul=function(A,T){return A=new f(A,T),this.curve._wnafMul(this,A)},M.prototype.eq=function(A){if(A.type==="affine")return this.eq(A.toJ());if(this===A)return!0;var T=this.z.redSqr(),D=A.z.redSqr();if(this.x.redMul(D).redISub(A.x.redMul(T)).cmpn(0)!==0)return!1;var O=T.redMul(this.z),j=D.redMul(A.z);return this.y.redMul(j).redISub(A.y.redMul(O)).cmpn(0)===0},M.prototype.eqXToP=function(A){var T=this.z.redSqr(),D=A.toRed(this.curve.red).redMul(T);if(this.x.cmp(D)===0)return!0;for(var O=A.clone(),j=this.curve.redN.redMul(T);;){if(O.iadd(this.curve.n),O.cmp(this.curve.p)>=0)return!1;if(D.redIAdd(j),this.x.cmp(D)===0)return!0}},M.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},M.prototype.isInfinity=function(){return this.z.cmpn(0)===0},short}var mont,hasRequiredMont;function requireMont(){if(hasRequiredMont)return mont;hasRequiredMont=1;var u=requireBn$2(),f=inherits_browserExports,d=requireBase$1(),_=requireUtils$1();function x(E){d.call(this,"mont",E),this.a=new u(E.a,16).toRed(this.red),this.b=new u(E.b,16).toRed(this.red),this.i4=new u(4).toRed(this.red).redInvm(),this.two=new u(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}f(x,d),mont=x,x.prototype.validate=function(M){var S=M.normalize().x,A=S.redSqr(),T=A.redMul(S).redAdd(A.redMul(this.a)).redAdd(S),D=T.redSqrt();return D.redSqr().cmp(T)===0};function I(E,M,S){d.BasePoint.call(this,E,"projective"),M===null&&S===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new u(M,16),this.z=new u(S,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}return f(I,d.BasePoint),x.prototype.decodePoint=function(M,S){return this.point(_.toArray(M,S),1)},x.prototype.point=function(M,S){return new I(this,M,S)},x.prototype.pointFromJSON=function(M){return I.fromJSON(this,M)},I.prototype.precompute=function(){},I.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},I.fromJSON=function(M,S){return new I(M,S[0],S[1]||M.one)},I.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},I.prototype.isInfinity=function(){return this.z.cmpn(0)===0},I.prototype.dbl=function(){var M=this.x.redAdd(this.z),S=M.redSqr(),A=this.x.redSub(this.z),T=A.redSqr(),D=S.redSub(T),O=S.redMul(T),j=D.redMul(T.redAdd(this.curve.a24.redMul(D)));return this.curve.point(O,j)},I.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},I.prototype.diffAdd=function(M,S){var A=this.x.redAdd(this.z),T=this.x.redSub(this.z),D=M.x.redAdd(M.z),O=M.x.redSub(M.z),j=O.redMul(A),$=D.redMul(T),W=S.z.redMul(j.redAdd($).redSqr()),Q=S.x.redMul(j.redISub($).redSqr());return this.curve.point(W,Q)},I.prototype.mul=function(M){for(var S=M.clone(),A=this,T=this.curve.point(null,null),D=this,O=[];S.cmpn(0)!==0;S.iushrn(1))O.push(S.andln(1));for(var j=O.length-1;j>=0;j--)O[j]===0?(A=A.diffAdd(T,D),T=T.dbl()):(T=A.diffAdd(T,D),A=A.dbl());return T},I.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},I.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},I.prototype.eq=function(M){return this.getX().cmp(M.getX())===0},I.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},I.prototype.getX=function(){return this.normalize(),this.x.fromRed()},mont}var edwards,hasRequiredEdwards;function requireEdwards(){if(hasRequiredEdwards)return edwards;hasRequiredEdwards=1;var u=requireUtils$1(),f=requireBn$2(),d=inherits_browserExports,_=requireBase$1(),x=u.assert;function I(M){this.twisted=(M.a|0)!==1,this.mOneA=this.twisted&&(M.a|0)===-1,this.extended=this.mOneA,_.call(this,"edwards",M),this.a=new f(M.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new f(M.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new f(M.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),x(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(M.c|0)===1}d(I,_),edwards=I,I.prototype._mulA=function(S){return this.mOneA?S.redNeg():this.a.redMul(S)},I.prototype._mulC=function(S){return this.oneC?S:this.c.redMul(S)},I.prototype.jpoint=function(S,A,T,D){return this.point(S,A,T,D)},I.prototype.pointFromX=function(S,A){S=new f(S,16),S.red||(S=S.toRed(this.red));var T=S.redSqr(),D=this.c2.redSub(this.a.redMul(T)),O=this.one.redSub(this.c2.redMul(this.d).redMul(T)),j=D.redMul(O.redInvm()),$=j.redSqrt();if($.redSqr().redSub(j).cmp(this.zero)!==0)throw new Error("invalid point");var W=$.fromRed().isOdd();return(A&&!W||!A&&W)&&($=$.redNeg()),this.point(S,$)},I.prototype.pointFromY=function(S,A){S=new f(S,16),S.red||(S=S.toRed(this.red));var T=S.redSqr(),D=T.redSub(this.c2),O=T.redMul(this.d).redMul(this.c2).redSub(this.a),j=D.redMul(O.redInvm());if(j.cmp(this.zero)===0){if(A)throw new Error("invalid point");return this.point(this.zero,S)}var $=j.redSqrt();if($.redSqr().redSub(j).cmp(this.zero)!==0)throw new Error("invalid point");return $.fromRed().isOdd()!==A&&($=$.redNeg()),this.point($,S)},I.prototype.validate=function(S){if(S.isInfinity())return!0;S.normalize();var A=S.x.redSqr(),T=S.y.redSqr(),D=A.redMul(this.a).redAdd(T),O=this.c2.redMul(this.one.redAdd(this.d.redMul(A).redMul(T)));return D.cmp(O)===0};function E(M,S,A,T,D){_.BasePoint.call(this,M,"projective"),S===null&&A===null&&T===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new f(S,16),this.y=new f(A,16),this.z=T?new f(T,16):this.curve.one,this.t=D&&new f(D,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}return d(E,_.BasePoint),I.prototype.pointFromJSON=function(S){return E.fromJSON(this,S)},I.prototype.point=function(S,A,T,D){return new E(this,S,A,T,D)},E.fromJSON=function(S,A){return new E(S,A[0],A[1],A[2])},E.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},E.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)},E.prototype._extDbl=function(){var S=this.x.redSqr(),A=this.y.redSqr(),T=this.z.redSqr();T=T.redIAdd(T);var D=this.curve._mulA(S),O=this.x.redAdd(this.y).redSqr().redISub(S).redISub(A),j=D.redAdd(A),$=j.redSub(T),W=D.redSub(A),Q=O.redMul($),X=j.redMul(W),Y=O.redMul(W),ie=$.redMul(j);return this.curve.point(Q,X,ie,Y)},E.prototype._projDbl=function(){var S=this.x.redAdd(this.y).redSqr(),A=this.x.redSqr(),T=this.y.redSqr(),D,O,j,$,W,Q;if(this.curve.twisted){$=this.curve._mulA(A);var X=$.redAdd(T);this.zOne?(D=S.redSub(A).redSub(T).redMul(X.redSub(this.curve.two)),O=X.redMul($.redSub(T)),j=X.redSqr().redSub(X).redSub(X)):(W=this.z.redSqr(),Q=X.redSub(W).redISub(W),D=S.redSub(A).redISub(T).redMul(Q),O=X.redMul($.redSub(T)),j=X.redMul(Q))}else $=A.redAdd(T),W=this.curve._mulC(this.z).redSqr(),Q=$.redSub(W).redSub(W),D=this.curve._mulC(S.redISub($)).redMul(Q),O=this.curve._mulC($).redMul(A.redISub(T)),j=$.redMul(Q);return this.curve.point(D,O,j)},E.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},E.prototype._extAdd=function(S){var A=this.y.redSub(this.x).redMul(S.y.redSub(S.x)),T=this.y.redAdd(this.x).redMul(S.y.redAdd(S.x)),D=this.t.redMul(this.curve.dd).redMul(S.t),O=this.z.redMul(S.z.redAdd(S.z)),j=T.redSub(A),$=O.redSub(D),W=O.redAdd(D),Q=T.redAdd(A),X=j.redMul($),Y=W.redMul(Q),ie=j.redMul(Q),oe=$.redMul(W);return this.curve.point(X,Y,oe,ie)},E.prototype._projAdd=function(S){var A=this.z.redMul(S.z),T=A.redSqr(),D=this.x.redMul(S.x),O=this.y.redMul(S.y),j=this.curve.d.redMul(D).redMul(O),$=T.redSub(j),W=T.redAdd(j),Q=this.x.redAdd(this.y).redMul(S.x.redAdd(S.y)).redISub(D).redISub(O),X=A.redMul($).redMul(Q),Y,ie;return this.curve.twisted?(Y=A.redMul(W).redMul(O.redSub(this.curve._mulA(D))),ie=$.redMul(W)):(Y=A.redMul(W).redMul(O.redSub(D)),ie=this.curve._mulC($).redMul(W)),this.curve.point(X,Y,ie)},E.prototype.add=function(S){return this.isInfinity()?S:S.isInfinity()?this:this.curve.extended?this._extAdd(S):this._projAdd(S)},E.prototype.mul=function(S){return this._hasDoubles(S)?this.curve._fixedNafMul(this,S):this.curve._wnafMul(this,S)},E.prototype.mulAdd=function(S,A,T){return this.curve._wnafMulAdd(1,[this,A],[S,T],2,!1)},E.prototype.jmulAdd=function(S,A,T){return this.curve._wnafMulAdd(1,[this,A],[S,T],2,!0)},E.prototype.normalize=function(){if(this.zOne)return this;var S=this.z.redInvm();return this.x=this.x.redMul(S),this.y=this.y.redMul(S),this.t&&(this.t=this.t.redMul(S)),this.z=this.curve.one,this.zOne=!0,this},E.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},E.prototype.getX=function(){return this.normalize(),this.x.fromRed()},E.prototype.getY=function(){return this.normalize(),this.y.fromRed()},E.prototype.eq=function(S){return this===S||this.getX().cmp(S.getX())===0&&this.getY().cmp(S.getY())===0},E.prototype.eqXToP=function(S){var A=S.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(A)===0)return!0;for(var T=S.clone(),D=this.curve.redN.redMul(this.z);;){if(T.iadd(this.curve.n),T.cmp(this.curve.p)>=0)return!1;if(A.redIAdd(D),this.x.cmp(A)===0)return!0}},E.prototype.toP=E.prototype.normalize,E.prototype.mixedAdd=E.prototype.add,edwards}var hasRequiredCurve;function requireCurve(){return hasRequiredCurve||(hasRequiredCurve=1,function(u){var f=u;f.base=requireBase$1(),f.short=requireShort(),f.mont=requireMont(),f.edwards=requireEdwards()}(curve)),curve}var curves={},hash={},utils={},hasRequiredUtils;function requireUtils(){if(hasRequiredUtils)return utils;hasRequiredUtils=1;var u=requireMinimalisticAssert(),f=inherits_browserExports;utils.inherits=f;function d(re,P){return(re.charCodeAt(P)&64512)!==55296||P<0||P+1>=re.length?!1:(re.charCodeAt(P+1)&64512)===56320}function _(re,P){if(Array.isArray(re))return re.slice();if(!re)return[];var k=[];if(typeof re=="string")if(P){if(P==="hex")for(re=re.replace(/[^a-z0-9]+/ig,""),re.length%2!==0&&(re="0"+re),z=0;z<re.length;z+=2)k.push(parseInt(re[z]+re[z+1],16))}else for(var B=0,z=0;z<re.length;z++){var ee=re.charCodeAt(z);ee<128?k[B++]=ee:ee<2048?(k[B++]=ee>>6|192,k[B++]=ee&63|128):d(re,z)?(ee=65536+((ee&1023)<<10)+(re.charCodeAt(++z)&1023),k[B++]=ee>>18|240,k[B++]=ee>>12&63|128,k[B++]=ee>>6&63|128,k[B++]=ee&63|128):(k[B++]=ee>>12|224,k[B++]=ee>>6&63|128,k[B++]=ee&63|128)}else for(z=0;z<re.length;z++)k[z]=re[z]|0;return k}utils.toArray=_;function x(re){for(var P="",k=0;k<re.length;k++)P+=M(re[k].toString(16));return P}utils.toHex=x;function I(re){var P=re>>>24|re>>>8&65280|re<<8&16711680|(re&255)<<24;return P>>>0}utils.htonl=I;function E(re,P){for(var k="",B=0;B<re.length;B++){var z=re[B];P==="little"&&(z=I(z)),k+=S(z.toString(16))}return k}utils.toHex32=E;function M(re){return re.length===1?"0"+re:re}utils.zero2=M;function S(re){return re.length===7?"0"+re:re.length===6?"00"+re:re.length===5?"000"+re:re.length===4?"0000"+re:re.length===3?"00000"+re:re.length===2?"000000"+re:re.length===1?"0000000"+re:re}utils.zero8=S;function A(re,P,k,B){var z=k-P;u(z%4===0);for(var ee=new Array(z/4),H=0,q=P;H<ee.length;H++,q+=4){var J;B==="big"?J=re[q]<<24|re[q+1]<<16|re[q+2]<<8|re[q+3]:J=re[q+3]<<24|re[q+2]<<16|re[q+1]<<8|re[q],ee[H]=J>>>0}return ee}utils.join32=A;function T(re,P){for(var k=new Array(re.length*4),B=0,z=0;B<re.length;B++,z+=4){var ee=re[B];P==="big"?(k[z]=ee>>>24,k[z+1]=ee>>>16&255,k[z+2]=ee>>>8&255,k[z+3]=ee&255):(k[z+3]=ee>>>24,k[z+2]=ee>>>16&255,k[z+1]=ee>>>8&255,k[z]=ee&255)}return k}utils.split32=T;function D(re,P){return re>>>P|re<<32-P}utils.rotr32=D;function O(re,P){return re<<P|re>>>32-P}utils.rotl32=O;function j(re,P){return re+P>>>0}utils.sum32=j;function $(re,P,k){return re+P+k>>>0}utils.sum32_3=$;function W(re,P,k,B){return re+P+k+B>>>0}utils.sum32_4=W;function Q(re,P,k,B,z){return re+P+k+B+z>>>0}utils.sum32_5=Q;function X(re,P,k,B){var z=re[P],ee=re[P+1],H=B+ee>>>0,q=(H<B?1:0)+k+z;re[P]=q>>>0,re[P+1]=H}utils.sum64=X;function Y(re,P,k,B){var z=P+B>>>0,ee=(z<P?1:0)+re+k;return ee>>>0}utils.sum64_hi=Y;function ie(re,P,k,B){var z=P+B;return z>>>0}utils.sum64_lo=ie;function oe(re,P,k,B,z,ee,H,q){var J=0,U=P;U=U+B>>>0,J+=U<P?1:0,U=U+ee>>>0,J+=U<ee?1:0,U=U+q>>>0,J+=U<q?1:0;var Z=re+k+z+H+J;return Z>>>0}utils.sum64_4_hi=oe;function ge(re,P,k,B,z,ee,H,q){var J=P+B+ee+q;return J>>>0}utils.sum64_4_lo=ge;function be(re,P,k,B,z,ee,H,q,J,U){var Z=0,ve=P;ve=ve+B>>>0,Z+=ve<P?1:0,ve=ve+ee>>>0,Z+=ve<ee?1:0,ve=ve+q>>>0,Z+=ve<q?1:0,ve=ve+U>>>0,Z+=ve<U?1:0;var Ye=re+k+z+H+J+Z;return Ye>>>0}utils.sum64_5_hi=be;function ze(re,P,k,B,z,ee,H,q,J,U){var Z=P+B+ee+q+U;return Z>>>0}utils.sum64_5_lo=ze;function de(re,P,k){var B=P<<32-k|re>>>k;return B>>>0}utils.rotr64_hi=de;function Ce(re,P,k){var B=re<<32-k|P>>>k;return B>>>0}utils.rotr64_lo=Ce;function ke(re,P,k){return re>>>k}utils.shr64_hi=ke;function le(re,P,k){var B=re<<32-k|P>>>k;return B>>>0}return utils.shr64_lo=le,utils}var common$1={},hasRequiredCommon$1;function requireCommon$1(){if(hasRequiredCommon$1)return common$1;hasRequiredCommon$1=1;var u=requireUtils(),f=requireMinimalisticAssert();function d(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}return common$1.BlockHash=d,d.prototype.update=function(x,I){if(x=u.toArray(x,I),this.pending?this.pending=this.pending.concat(x):this.pending=x,this.pendingTotal+=x.length,this.pending.length>=this._delta8){x=this.pending;var E=x.length%this._delta8;this.pending=x.slice(x.length-E,x.length),this.pending.length===0&&(this.pending=null),x=u.join32(x,0,x.length-E,this.endian);for(var M=0;M<x.length;M+=this._delta32)this._update(x,M,M+this._delta32)}return this},d.prototype.digest=function(x){return this.update(this._pad()),f(this.pending===null),this._digest(x)},d.prototype._pad=function(){var x=this.pendingTotal,I=this._delta8,E=I-(x+this.padLength)%I,M=new Array(E+this.padLength);M[0]=128;for(var S=1;S<E;S++)M[S]=0;if(x<<=3,this.endian==="big"){for(var A=8;A<this.padLength;A++)M[S++]=0;M[S++]=0,M[S++]=0,M[S++]=0,M[S++]=0,M[S++]=x>>>24&255,M[S++]=x>>>16&255,M[S++]=x>>>8&255,M[S++]=x&255}else for(M[S++]=x&255,M[S++]=x>>>8&255,M[S++]=x>>>16&255,M[S++]=x>>>24&255,M[S++]=0,M[S++]=0,M[S++]=0,M[S++]=0,A=8;A<this.padLength;A++)M[S++]=0;return M},common$1}var sha={},common={},hasRequiredCommon;function requireCommon(){if(hasRequiredCommon)return common;hasRequiredCommon=1;var u=requireUtils(),f=u.rotr32;function d(T,D,O,j){if(T===0)return _(D,O,j);if(T===1||T===3)return I(D,O,j);if(T===2)return x(D,O,j)}common.ft_1=d;function _(T,D,O){return T&D^~T&O}common.ch32=_;function x(T,D,O){return T&D^T&O^D&O}common.maj32=x;function I(T,D,O){return T^D^O}common.p32=I;function E(T){return f(T,2)^f(T,13)^f(T,22)}common.s0_256=E;function M(T){return f(T,6)^f(T,11)^f(T,25)}common.s1_256=M;function S(T){return f(T,7)^f(T,18)^T>>>3}common.g0_256=S;function A(T){return f(T,17)^f(T,19)^T>>>10}return common.g1_256=A,common}var _1,hasRequired_1;function require_1(){if(hasRequired_1)return _1;hasRequired_1=1;var u=requireUtils(),f=requireCommon$1(),d=requireCommon(),_=u.rotl32,x=u.sum32,I=u.sum32_5,E=d.ft_1,M=f.BlockHash,S=[1518500249,1859775393,2400959708,3395469782];function A(){if(!(this instanceof A))return new A;M.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}return u.inherits(A,M),_1=A,A.blockSize=512,A.outSize=160,A.hmacStrength=80,A.padLength=64,A.prototype._update=function(D,O){for(var j=this.W,$=0;$<16;$++)j[$]=D[O+$];for(;$<j.length;$++)j[$]=_(j[$-3]^j[$-8]^j[$-14]^j[$-16],1);var W=this.h[0],Q=this.h[1],X=this.h[2],Y=this.h[3],ie=this.h[4];for($=0;$<j.length;$++){var oe=~~($/20),ge=I(_(W,5),E(oe,Q,X,Y),ie,j[$],S[oe]);ie=Y,Y=X,X=_(Q,30),Q=W,W=ge}this.h[0]=x(this.h[0],W),this.h[1]=x(this.h[1],Q),this.h[2]=x(this.h[2],X),this.h[3]=x(this.h[3],Y),this.h[4]=x(this.h[4],ie)},A.prototype._digest=function(D){return D==="hex"?u.toHex32(this.h,"big"):u.split32(this.h,"big")},_1}var _256,hasRequired_256;function require_256(){if(hasRequired_256)return _256;hasRequired_256=1;var u=requireUtils(),f=requireCommon$1(),d=requireCommon(),_=requireMinimalisticAssert(),x=u.sum32,I=u.sum32_4,E=u.sum32_5,M=d.ch32,S=d.maj32,A=d.s0_256,T=d.s1_256,D=d.g0_256,O=d.g1_256,j=f.BlockHash,$=[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];function W(){if(!(this instanceof W))return new W;j.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=$,this.W=new Array(64)}return u.inherits(W,j),_256=W,W.blockSize=512,W.outSize=256,W.hmacStrength=192,W.padLength=64,W.prototype._update=function(X,Y){for(var ie=this.W,oe=0;oe<16;oe++)ie[oe]=X[Y+oe];for(;oe<ie.length;oe++)ie[oe]=I(O(ie[oe-2]),ie[oe-7],D(ie[oe-15]),ie[oe-16]);var ge=this.h[0],be=this.h[1],ze=this.h[2],de=this.h[3],Ce=this.h[4],ke=this.h[5],le=this.h[6],re=this.h[7];for(_(this.k.length===ie.length),oe=0;oe<ie.length;oe++){var P=E(re,T(Ce),M(Ce,ke,le),this.k[oe],ie[oe]),k=x(A(ge),S(ge,be,ze));re=le,le=ke,ke=Ce,Ce=x(de,P),de=ze,ze=be,be=ge,ge=x(P,k)}this.h[0]=x(this.h[0],ge),this.h[1]=x(this.h[1],be),this.h[2]=x(this.h[2],ze),this.h[3]=x(this.h[3],de),this.h[4]=x(this.h[4],Ce),this.h[5]=x(this.h[5],ke),this.h[6]=x(this.h[6],le),this.h[7]=x(this.h[7],re)},W.prototype._digest=function(X){return X==="hex"?u.toHex32(this.h,"big"):u.split32(this.h,"big")},_256}var _224,hasRequired_224;function require_224(){if(hasRequired_224)return _224;hasRequired_224=1;var u=requireUtils(),f=require_256();function d(){if(!(this instanceof d))return new d;f.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}return u.inherits(d,f),_224=d,d.blockSize=512,d.outSize=224,d.hmacStrength=192,d.padLength=64,d.prototype._digest=function(x){return x==="hex"?u.toHex32(this.h.slice(0,7),"big"):u.split32(this.h.slice(0,7),"big")},_224}var _512,hasRequired_512;function require_512(){if(hasRequired_512)return _512;hasRequired_512=1;var u=requireUtils(),f=requireCommon$1(),d=requireMinimalisticAssert(),_=u.rotr64_hi,x=u.rotr64_lo,I=u.shr64_hi,E=u.shr64_lo,M=u.sum64,S=u.sum64_hi,A=u.sum64_lo,T=u.sum64_4_hi,D=u.sum64_4_lo,O=u.sum64_5_hi,j=u.sum64_5_lo,$=f.BlockHash,W=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function Q(){if(!(this instanceof Q))return new Q;$.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=W,this.W=new Array(160)}u.inherits(Q,$),_512=Q,Q.blockSize=1024,Q.outSize=512,Q.hmacStrength=192,Q.padLength=128,Q.prototype._prepareBlock=function(k,B){for(var z=this.W,ee=0;ee<32;ee++)z[ee]=k[B+ee];for(;ee<z.length;ee+=2){var H=le(z[ee-4],z[ee-3]),q=re(z[ee-4],z[ee-3]),J=z[ee-14],U=z[ee-13],Z=Ce(z[ee-30],z[ee-29]),ve=ke(z[ee-30],z[ee-29]),Ye=z[ee-32],rt=z[ee-31];z[ee]=T(H,q,J,U,Z,ve,Ye,rt),z[ee+1]=D(H,q,J,U,Z,ve,Ye,rt)}},Q.prototype._update=function(k,B){this._prepareBlock(k,B);var z=this.W,ee=this.h[0],H=this.h[1],q=this.h[2],J=this.h[3],U=this.h[4],Z=this.h[5],ve=this.h[6],Ye=this.h[7],rt=this.h[8],Ue=this.h[9],Qe=this.h[10],vt=this.h[11],ri=this.h[12],ci=this.h[13],tt=this.h[14],et=this.h[15];d(this.k.length===z.length);for(var $e=0;$e<z.length;$e+=2){var Le=tt,ot=et,Oe=ze(rt,Ue),Ne=de(rt,Ue),Fe=X(rt,Ue,Qe,vt,ri),Je=Y(rt,Ue,Qe,vt,ri,ci),Dt=this.k[$e],oi=this.k[$e+1],Bt=z[$e],li=z[$e+1],ii=O(Le,ot,Oe,Ne,Fe,Je,Dt,oi,Bt,li),Ot=j(Le,ot,Oe,Ne,Fe,Je,Dt,oi,Bt,li);Le=ge(ee,H),ot=be(ee,H),Oe=ie(ee,H,q,J,U),Ne=oe(ee,H,q,J,U,Z);var St=S(Le,ot,Oe,Ne),pi=A(Le,ot,Oe,Ne);tt=ri,et=ci,ri=Qe,ci=vt,Qe=rt,vt=Ue,rt=S(ve,Ye,ii,Ot),Ue=A(Ye,Ye,ii,Ot),ve=U,Ye=Z,U=q,Z=J,q=ee,J=H,ee=S(ii,Ot,St,pi),H=A(ii,Ot,St,pi)}M(this.h,0,ee,H),M(this.h,2,q,J),M(this.h,4,U,Z),M(this.h,6,ve,Ye),M(this.h,8,rt,Ue),M(this.h,10,Qe,vt),M(this.h,12,ri,ci),M(this.h,14,tt,et)},Q.prototype._digest=function(k){return k==="hex"?u.toHex32(this.h,"big"):u.split32(this.h,"big")};function X(P,k,B,z,ee){var H=P&B^~P&ee;return H<0&&(H+=4294967296),H}function Y(P,k,B,z,ee,H){var q=k&z^~k&H;return q<0&&(q+=4294967296),q}function ie(P,k,B,z,ee){var H=P&B^P&ee^B&ee;return H<0&&(H+=4294967296),H}function oe(P,k,B,z,ee,H){var q=k&z^k&H^z&H;return q<0&&(q+=4294967296),q}function ge(P,k){var B=_(P,k,28),z=_(k,P,2),ee=_(k,P,7),H=B^z^ee;return H<0&&(H+=4294967296),H}function be(P,k){var B=x(P,k,28),z=x(k,P,2),ee=x(k,P,7),H=B^z^ee;return H<0&&(H+=4294967296),H}function ze(P,k){var B=_(P,k,14),z=_(P,k,18),ee=_(k,P,9),H=B^z^ee;return H<0&&(H+=4294967296),H}function de(P,k){var B=x(P,k,14),z=x(P,k,18),ee=x(k,P,9),H=B^z^ee;return H<0&&(H+=4294967296),H}function Ce(P,k){var B=_(P,k,1),z=_(P,k,8),ee=I(P,k,7),H=B^z^ee;return H<0&&(H+=4294967296),H}function ke(P,k){var B=x(P,k,1),z=x(P,k,8),ee=E(P,k,7),H=B^z^ee;return H<0&&(H+=4294967296),H}function le(P,k){var B=_(P,k,19),z=_(k,P,29),ee=I(P,k,6),H=B^z^ee;return H<0&&(H+=4294967296),H}function re(P,k){var B=x(P,k,19),z=x(k,P,29),ee=E(P,k,6),H=B^z^ee;return H<0&&(H+=4294967296),H}return _512}var _384,hasRequired_384;function require_384(){if(hasRequired_384)return _384;hasRequired_384=1;var u=requireUtils(),f=require_512();function d(){if(!(this instanceof d))return new d;f.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}return u.inherits(d,f),_384=d,d.blockSize=1024,d.outSize=384,d.hmacStrength=192,d.padLength=128,d.prototype._digest=function(x){return x==="hex"?u.toHex32(this.h.slice(0,12),"big"):u.split32(this.h.slice(0,12),"big")},_384}var hasRequiredSha;function requireSha(){return hasRequiredSha||(hasRequiredSha=1,sha.sha1=require_1(),sha.sha224=require_224(),sha.sha256=require_256(),sha.sha384=require_384(),sha.sha512=require_512()),sha}var ripemd={},hasRequiredRipemd;function requireRipemd(){if(hasRequiredRipemd)return ripemd;hasRequiredRipemd=1;var u=requireUtils(),f=requireCommon$1(),d=u.rotl32,_=u.sum32,x=u.sum32_3,I=u.sum32_4,E=f.BlockHash;function M(){if(!(this instanceof M))return new M;E.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}u.inherits(M,E),ripemd.ripemd160=M,M.blockSize=512,M.outSize=160,M.hmacStrength=192,M.padLength=64,M.prototype._update=function(Q,X){for(var Y=this.h[0],ie=this.h[1],oe=this.h[2],ge=this.h[3],be=this.h[4],ze=Y,de=ie,Ce=oe,ke=ge,le=be,re=0;re<80;re++){var P=_(d(I(Y,S(re,ie,oe,ge),Q[D[re]+X],A(re)),j[re]),be);Y=be,be=ge,ge=d(oe,10),oe=ie,ie=P,P=_(d(I(ze,S(79-re,de,Ce,ke),Q[O[re]+X],T(re)),$[re]),le),ze=le,le=ke,ke=d(Ce,10),Ce=de,de=P}P=x(this.h[1],oe,ke),this.h[1]=x(this.h[2],ge,le),this.h[2]=x(this.h[3],be,ze),this.h[3]=x(this.h[4],Y,de),this.h[4]=x(this.h[0],ie,Ce),this.h[0]=P},M.prototype._digest=function(Q){return Q==="hex"?u.toHex32(this.h,"little"):u.split32(this.h,"little")};function S(W,Q,X,Y){return W<=15?Q^X^Y:W<=31?Q&X|~Q&Y:W<=47?(Q|~X)^Y:W<=63?Q&Y|X&~Y:Q^(X|~Y)}function A(W){return W<=15?0:W<=31?1518500249:W<=47?1859775393:W<=63?2400959708:2840853838}function T(W){return W<=15?1352829926:W<=31?1548603684:W<=47?1836072691:W<=63?2053994217:0}var D=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],O=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],j=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],$=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11];return ripemd}var hmac,hasRequiredHmac;function requireHmac(){if(hasRequiredHmac)return hmac;hasRequiredHmac=1;var u=requireUtils(),f=requireMinimalisticAssert();function d(_,x,I){if(!(this instanceof d))return new d(_,x,I);this.Hash=_,this.blockSize=_.blockSize/8,this.outSize=_.outSize/8,this.inner=null,this.outer=null,this._init(u.toArray(x,I))}return hmac=d,d.prototype._init=function(x){x.length>this.blockSize&&(x=new this.Hash().update(x).digest()),f(x.length<=this.blockSize);for(var I=x.length;I<this.blockSize;I++)x.push(0);for(I=0;I<x.length;I++)x[I]^=54;for(this.inner=new this.Hash().update(x),I=0;I<x.length;I++)x[I]^=106;this.outer=new this.Hash().update(x)},d.prototype.update=function(x,I){return this.inner.update(x,I),this},d.prototype.digest=function(x){return this.outer.update(this.inner.digest()),this.outer.digest(x)},hmac}var hasRequiredHash;function requireHash(){return hasRequiredHash||(hasRequiredHash=1,function(u){var f=u;f.utils=requireUtils(),f.common=requireCommon$1(),f.sha=requireSha(),f.ripemd=requireRipemd(),f.hmac=requireHmac(),f.sha1=f.sha.sha1,f.sha256=f.sha.sha256,f.sha224=f.sha.sha224,f.sha384=f.sha.sha384,f.sha512=f.sha.sha512,f.ripemd160=f.ripemd.ripemd160}(hash)),hash}var secp256k1,hasRequiredSecp256k1;function requireSecp256k1(){return hasRequiredSecp256k1||(hasRequiredSecp256k1=1,secp256k1={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}),secp256k1}var hasRequiredCurves;function requireCurves(){return hasRequiredCurves||(hasRequiredCurves=1,function(u){var f=u,d=requireHash(),_=requireCurve(),x=requireUtils$1(),I=x.assert;function E(A){A.type==="short"?this.curve=new _.short(A):A.type==="edwards"?this.curve=new _.edwards(A):this.curve=new _.mont(A),this.g=this.curve.g,this.n=this.curve.n,this.hash=A.hash,I(this.g.validate(),"Invalid curve"),I(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}f.PresetCurve=E;function M(A,T){Object.defineProperty(f,A,{configurable:!0,enumerable:!0,get:function(){var D=new E(T);return Object.defineProperty(f,A,{configurable:!0,enumerable:!0,value:D}),D}})}M("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:d.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),M("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:d.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),M("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:d.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),M("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:d.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),M("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:d.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),M("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:d.sha256,gRed:!1,g:["9"]}),M("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:d.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var S;try{S=requireSecp256k1()}catch{S=void 0}M("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:d.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",S]})}(curves)),curves}var hmacDrbg,hasRequiredHmacDrbg;function requireHmacDrbg(){if(hasRequiredHmacDrbg)return hmacDrbg;hasRequiredHmacDrbg=1;var u=requireHash(),f=requireUtils$2(),d=requireMinimalisticAssert();function _(x){if(!(this instanceof _))return new _(x);this.hash=x.hash,this.predResist=!!x.predResist,this.outLen=this.hash.outSize,this.minEntropy=x.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var I=f.toArray(x.entropy,x.entropyEnc||"hex"),E=f.toArray(x.nonce,x.nonceEnc||"hex"),M=f.toArray(x.pers,x.persEnc||"hex");d(I.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(I,E,M)}return hmacDrbg=_,_.prototype._init=function(I,E,M){var S=I.concat(E).concat(M);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var A=0;A<this.V.length;A++)this.K[A]=0,this.V[A]=1;this._update(S),this._reseed=1,this.reseedInterval=281474976710656},_.prototype._hmac=function(){return new u.hmac(this.hash,this.K)},_.prototype._update=function(I){var E=this._hmac().update(this.V).update([0]);I&&(E=E.update(I)),this.K=E.digest(),this.V=this._hmac().update(this.V).digest(),I&&(this.K=this._hmac().update(this.V).update([1]).update(I).digest(),this.V=this._hmac().update(this.V).digest())},_.prototype.reseed=function(I,E,M,S){typeof E!="string"&&(S=M,M=E,E=null),I=f.toArray(I,E),M=f.toArray(M,S),d(I.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(I.concat(M||[])),this._reseed=1},_.prototype.generate=function(I,E,M,S){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof E!="string"&&(S=M,M=E,E=null),M&&(M=f.toArray(M,S||"hex"),this._update(M));for(var A=[];A.length<I;)this.V=this._hmac().update(this.V).digest(),A=A.concat(this.V);var T=A.slice(0,I);return this._update(M),this._reseed++,f.encode(T,E)},hmacDrbg}var key$1,hasRequiredKey$1;function requireKey$1(){if(hasRequiredKey$1)return key$1;hasRequiredKey$1=1;var u=requireBn$2(),f=requireUtils$1(),d=f.assert;function _(x,I){this.ec=x,this.priv=null,this.pub=null,I.priv&&this._importPrivate(I.priv,I.privEnc),I.pub&&this._importPublic(I.pub,I.pubEnc)}return key$1=_,_.fromPublic=function(I,E,M){return E instanceof _?E:new _(I,{pub:E,pubEnc:M})},_.fromPrivate=function(I,E,M){return E instanceof _?E:new _(I,{priv:E,privEnc:M})},_.prototype.validate=function(){var I=this.getPublic();return I.isInfinity()?{result:!1,reason:"Invalid public key"}:I.validate()?I.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},_.prototype.getPublic=function(I,E){return typeof I=="string"&&(E=I,I=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),E?this.pub.encode(E,I):this.pub},_.prototype.getPrivate=function(I){return I==="hex"?this.priv.toString(16,2):this.priv},_.prototype._importPrivate=function(I,E){this.priv=new u(I,E||16),this.priv=this.priv.umod(this.ec.curve.n)},_.prototype._importPublic=function(I,E){if(I.x||I.y){this.ec.curve.type==="mont"?d(I.x,"Need x coordinate"):(this.ec.curve.type==="short"||this.ec.curve.type==="edwards")&&d(I.x&&I.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(I.x,I.y);return}this.pub=this.ec.curve.decodePoint(I,E)},_.prototype.derive=function(I){return I.validate()||d(I.validate(),"public point not validated"),I.mul(this.priv).getX()},_.prototype.sign=function(I,E,M){return this.ec.sign(I,this,E,M)},_.prototype.verify=function(I,E){return this.ec.verify(I,E,this)},_.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"},key$1}var signature$1,hasRequiredSignature$1;function requireSignature$1(){if(hasRequiredSignature$1)return signature$1;hasRequiredSignature$1=1;var u=requireBn$2(),f=requireUtils$1(),d=f.assert;function _(S,A){if(S instanceof _)return S;this._importDER(S,A)||(d(S.r&&S.s,"Signature without r or s"),this.r=new u(S.r,16),this.s=new u(S.s,16),S.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=S.recoveryParam)}signature$1=_;function x(){this.place=0}function I(S,A){var T=S[A.place++];if(!(T&128))return T;var D=T&15;if(D===0||D>4)return!1;for(var O=0,j=0,$=A.place;j<D;j++,$++)O<<=8,O|=S[$],O>>>=0;return O<=127?!1:(A.place=$,O)}function E(S){for(var A=0,T=S.length-1;!S[A]&&!(S[A+1]&128)&&A<T;)A++;return A===0?S:S.slice(A)}_.prototype._importDER=function(A,T){A=f.toArray(A,T);var D=new x;if(A[D.place++]!==48)return!1;var O=I(A,D);if(O===!1||O+D.place!==A.length||A[D.place++]!==2)return!1;var j=I(A,D);if(j===!1)return!1;var $=A.slice(D.place,j+D.place);if(D.place+=j,A[D.place++]!==2)return!1;var W=I(A,D);if(W===!1||A.length!==W+D.place)return!1;var Q=A.slice(D.place,W+D.place);if($[0]===0)if($[1]&128)$=$.slice(1);else return!1;if(Q[0]===0)if(Q[1]&128)Q=Q.slice(1);else return!1;return this.r=new u($),this.s=new u(Q),this.recoveryParam=null,!0};function M(S,A){if(A<128){S.push(A);return}var T=1+(Math.log(A)/Math.LN2>>>3);for(S.push(T|128);--T;)S.push(A>>>(T<<3)&255);S.push(A)}return _.prototype.toDER=function(A){var T=this.r.toArray(),D=this.s.toArray();for(T[0]&128&&(T=[0].concat(T)),D[0]&128&&(D=[0].concat(D)),T=E(T),D=E(D);!D[0]&&!(D[1]&128);)D=D.slice(1);var O=[2];M(O,T.length),O=O.concat(T),O.push(2),M(O,D.length);var j=O.concat(D),$=[48];return M($,j.length),$=$.concat(j),f.encode($,A)},signature$1}var ec,hasRequiredEc;function requireEc(){if(hasRequiredEc)return ec;hasRequiredEc=1;var u=requireBn$2(),f=requireHmacDrbg(),d=requireUtils$1(),_=requireCurves(),x=requireBrorand(),I=d.assert,E=requireKey$1(),M=requireSignature$1();function S(A){if(!(this instanceof S))return new S(A);typeof A=="string"&&(I(Object.prototype.hasOwnProperty.call(_,A),"Unknown curve "+A),A=_[A]),A instanceof _.PresetCurve&&(A={curve:A}),this.curve=A.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=A.curve.g,this.g.precompute(A.curve.n.bitLength()+1),this.hash=A.hash||A.curve.hash}return ec=S,S.prototype.keyPair=function(T){return new E(this,T)},S.prototype.keyFromPrivate=function(T,D){return E.fromPrivate(this,T,D)},S.prototype.keyFromPublic=function(T,D){return E.fromPublic(this,T,D)},S.prototype.genKeyPair=function(T){T||(T={});for(var D=new f({hash:this.hash,pers:T.pers,persEnc:T.persEnc||"utf8",entropy:T.entropy||x(this.hash.hmacStrength),entropyEnc:T.entropy&&T.entropyEnc||"utf8",nonce:this.n.toArray()}),O=this.n.byteLength(),j=this.n.sub(new u(2));;){var $=new u(D.generate(O));if(!($.cmp(j)>0))return $.iaddn(1),this.keyFromPrivate($)}},S.prototype._truncateToN=function(T,D){var O=T.byteLength()*8-this.n.bitLength();return O>0&&(T=T.ushrn(O)),!D&&T.cmp(this.n)>=0?T.sub(this.n):T},S.prototype.sign=function(T,D,O,j){typeof O=="object"&&(j=O,O=null),j||(j={}),D=this.keyFromPrivate(D,O),T=this._truncateToN(new u(T,16));for(var $=this.n.byteLength(),W=D.getPrivate().toArray("be",$),Q=T.toArray("be",$),X=new f({hash:this.hash,entropy:W,nonce:Q,pers:j.pers,persEnc:j.persEnc||"utf8"}),Y=this.n.sub(new u(1)),ie=0;;ie++){var oe=j.k?j.k(ie):new u(X.generate(this.n.byteLength()));if(oe=this._truncateToN(oe,!0),!(oe.cmpn(1)<=0||oe.cmp(Y)>=0)){var ge=this.g.mul(oe);if(!ge.isInfinity()){var be=ge.getX(),ze=be.umod(this.n);if(ze.cmpn(0)!==0){var de=oe.invm(this.n).mul(ze.mul(D.getPrivate()).iadd(T));if(de=de.umod(this.n),de.cmpn(0)!==0){var Ce=(ge.getY().isOdd()?1:0)|(be.cmp(ze)!==0?2:0);return j.canonical&&de.cmp(this.nh)>0&&(de=this.n.sub(de),Ce^=1),new M({r:ze,s:de,recoveryParam:Ce})}}}}}},S.prototype.verify=function(T,D,O,j){T=this._truncateToN(new u(T,16)),O=this.keyFromPublic(O,j),D=new M(D,"hex");var $=D.r,W=D.s;if($.cmpn(1)<0||$.cmp(this.n)>=0||W.cmpn(1)<0||W.cmp(this.n)>=0)return!1;var Q=W.invm(this.n),X=Q.mul(T).umod(this.n),Y=Q.mul($).umod(this.n),ie;return this.curve._maxwellTrick?(ie=this.g.jmulAdd(X,O.getPublic(),Y),ie.isInfinity()?!1:ie.eqXToP($)):(ie=this.g.mulAdd(X,O.getPublic(),Y),ie.isInfinity()?!1:ie.getX().umod(this.n).cmp($)===0)},S.prototype.recoverPubKey=function(A,T,D,O){I((3&D)===D,"The recovery param is more than two bits"),T=new M(T,O);var j=this.n,$=new u(A),W=T.r,Q=T.s,X=D&1,Y=D>>1;if(W.cmp(this.curve.p.umod(this.curve.n))>=0&&Y)throw new Error("Unable to find sencond key candinate");Y?W=this.curve.pointFromX(W.add(this.curve.n),X):W=this.curve.pointFromX(W,X);var ie=T.r.invm(j),oe=j.sub($).mul(ie).umod(j),ge=Q.mul(ie).umod(j);return this.g.mulAdd(oe,W,ge)},S.prototype.getKeyRecoveryParam=function(A,T,D,O){if(T=new M(T,O),T.recoveryParam!==null)return T.recoveryParam;for(var j=0;j<4;j++){var $;try{$=this.recoverPubKey(A,T,j)}catch{continue}if($.eq(D))return j}throw new Error("Unable to find valid recovery factor")},ec}var key,hasRequiredKey;function requireKey(){if(hasRequiredKey)return key;hasRequiredKey=1;var u=requireUtils$1(),f=u.assert,d=u.parseBytes,_=u.cachedProperty;function x(I,E){this.eddsa=I,this._secret=d(E.secret),I.isPoint(E.pub)?this._pub=E.pub:this._pubBytes=d(E.pub)}return x.fromPublic=function(E,M){return M instanceof x?M:new x(E,{pub:M})},x.fromSecret=function(E,M){return M instanceof x?M:new x(E,{secret:M})},x.prototype.secret=function(){return this._secret},_(x,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),_(x,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),_(x,"privBytes",function(){var E=this.eddsa,M=this.hash(),S=E.encodingLength-1,A=M.slice(0,E.encodingLength);return A[0]&=248,A[S]&=127,A[S]|=64,A}),_(x,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),_(x,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),_(x,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),x.prototype.sign=function(E){return f(this._secret,"KeyPair can only verify"),this.eddsa.sign(E,this)},x.prototype.verify=function(E,M){return this.eddsa.verify(E,M,this)},x.prototype.getSecret=function(E){return f(this._secret,"KeyPair is public only"),u.encode(this.secret(),E)},x.prototype.getPublic=function(E){return u.encode(this.pubBytes(),E)},key=x,key}var signature,hasRequiredSignature;function requireSignature(){if(hasRequiredSignature)return signature;hasRequiredSignature=1;var u=requireBn$2(),f=requireUtils$1(),d=f.assert,_=f.cachedProperty,x=f.parseBytes;function I(E,M){this.eddsa=E,typeof M!="object"&&(M=x(M)),Array.isArray(M)&&(M={R:M.slice(0,E.encodingLength),S:M.slice(E.encodingLength)}),d(M.R&&M.S,"Signature without R or S"),E.isPoint(M.R)&&(this._R=M.R),M.S instanceof u&&(this._S=M.S),this._Rencoded=Array.isArray(M.R)?M.R:M.Rencoded,this._Sencoded=Array.isArray(M.S)?M.S:M.Sencoded}return _(I,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),_(I,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),_(I,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),_(I,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),I.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},I.prototype.toHex=function(){return f.encode(this.toBytes(),"hex").toUpperCase()},signature=I,signature}var eddsa,hasRequiredEddsa;function requireEddsa(){if(hasRequiredEddsa)return eddsa;hasRequiredEddsa=1;var u=requireHash(),f=requireCurves(),d=requireUtils$1(),_=d.assert,x=d.parseBytes,I=requireKey(),E=requireSignature();function M(S){if(_(S==="ed25519","only tested with ed25519 so far"),!(this instanceof M))return new M(S);S=f[S].curve,this.curve=S,this.g=S.g,this.g.precompute(S.n.bitLength()+1),this.pointClass=S.point().constructor,this.encodingLength=Math.ceil(S.n.bitLength()/8),this.hash=u.sha512}return eddsa=M,M.prototype.sign=function(A,T){A=x(A);var D=this.keyFromSecret(T),O=this.hashInt(D.messagePrefix(),A),j=this.g.mul(O),$=this.encodePoint(j),W=this.hashInt($,D.pubBytes(),A).mul(D.priv()),Q=O.add(W).umod(this.curve.n);return this.makeSignature({R:j,S:Q,Rencoded:$})},M.prototype.verify=function(A,T,D){A=x(A),T=this.makeSignature(T);var O=this.keyFromPublic(D),j=this.hashInt(T.Rencoded(),O.pubBytes(),A),$=this.g.mul(T.S()),W=T.R().add(O.pub().mul(j));return W.eq($)},M.prototype.hashInt=function(){for(var A=this.hash(),T=0;T<arguments.length;T++)A.update(arguments[T]);return d.intFromLE(A.digest()).umod(this.curve.n)},M.prototype.keyFromPublic=function(A){return I.fromPublic(this,A)},M.prototype.keyFromSecret=function(A){return I.fromSecret(this,A)},M.prototype.makeSignature=function(A){return A instanceof E?A:new E(this,A)},M.prototype.encodePoint=function(A){var T=A.getY().toArray("le",this.encodingLength);return T[this.encodingLength-1]|=A.getX().isOdd()?128:0,T},M.prototype.decodePoint=function(A){A=d.parseBytes(A);var T=A.length-1,D=A.slice(0,T).concat(A[T]&-129),O=(A[T]&128)!==0,j=d.intFromLE(D);return this.curve.pointFromY(j,O)},M.prototype.encodeInt=function(A){return A.toArray("le",this.encodingLength)},M.prototype.decodeInt=function(A){return d.intFromLE(A)},M.prototype.isPoint=function(A){return A instanceof this.pointClass},eddsa}var hasRequiredElliptic;function requireElliptic(){return hasRequiredElliptic||(hasRequiredElliptic=1,function(u){var f=u;f.version=require$$0.version,f.utils=requireUtils$1(),f.rand=requireBrorand(),f.curve=requireCurve(),f.curves=requireCurves(),f.ec=requireEc(),f.eddsa=requireEddsa()}(elliptic)),elliptic}var bn={exports:{}};bn.exports;var hasRequiredBn;function requireBn(){return hasRequiredBn||(hasRequiredBn=1,function(u){(function(f,d){function _(P,k){if(!P)throw new Error(k||"Assertion failed")}function x(P,k){P.super_=k;var B=function(){};B.prototype=k.prototype,P.prototype=new B,P.prototype.constructor=P}function I(P,k,B){if(I.isBN(P))return P;this.negative=0,this.words=null,this.length=0,this.red=null,P!==null&&((k==="le"||k==="be")&&(B=k,k=10),this._init(P||0,k||10,B||"be"))}typeof f=="object"?f.exports=I:d.BN=I,I.BN=I,I.wordSize=26;var E;try{typeof window<"u"&&typeof window.Buffer<"u"?E=window.Buffer:E=buffer$2.Buffer}catch{}I.isBN=function(k){return k instanceof I?!0:k!==null&&typeof k=="object"&&k.constructor.wordSize===I.wordSize&&Array.isArray(k.words)},I.max=function(k,B){return k.cmp(B)>0?k:B},I.min=function(k,B){return k.cmp(B)<0?k:B},I.prototype._init=function(k,B,z){if(typeof k=="number")return this._initNumber(k,B,z);if(typeof k=="object")return this._initArray(k,B,z);B==="hex"&&(B=16),_(B===(B|0)&&B>=2&&B<=36),k=k.toString().replace(/\s+/g,"");var ee=0;k[0]==="-"&&(ee++,this.negative=1),ee<k.length&&(B===16?this._parseHex(k,ee,z):(this._parseBase(k,B,ee),z==="le"&&this._initArray(this.toArray(),B,z)))},I.prototype._initNumber=function(k,B,z){k<0&&(this.negative=1,k=-k),k<67108864?(this.words=[k&67108863],this.length=1):k<4503599627370496?(this.words=[k&67108863,k/67108864&67108863],this.length=2):(_(k<9007199254740992),this.words=[k&67108863,k/67108864&67108863,1],this.length=3),z==="le"&&this._initArray(this.toArray(),B,z)},I.prototype._initArray=function(k,B,z){if(_(typeof k.length=="number"),k.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(k.length/3),this.words=new Array(this.length);for(var ee=0;ee<this.length;ee++)this.words[ee]=0;var H,q,J=0;if(z==="be")for(ee=k.length-1,H=0;ee>=0;ee-=3)q=k[ee]|k[ee-1]<<8|k[ee-2]<<16,this.words[H]|=q<<J&67108863,this.words[H+1]=q>>>26-J&67108863,J+=24,J>=26&&(J-=26,H++);else if(z==="le")for(ee=0,H=0;ee<k.length;ee+=3)q=k[ee]|k[ee+1]<<8|k[ee+2]<<16,this.words[H]|=q<<J&67108863,this.words[H+1]=q>>>26-J&67108863,J+=24,J>=26&&(J-=26,H++);return this._strip()};function M(P,k){var B=P.charCodeAt(k);if(B>=48&&B<=57)return B-48;if(B>=65&&B<=70)return B-55;if(B>=97&&B<=102)return B-87;_(!1,"Invalid character in "+P)}function S(P,k,B){var z=M(P,B);return B-1>=k&&(z|=M(P,B-1)<<4),z}I.prototype._parseHex=function(k,B,z){this.length=Math.ceil((k.length-B)/6),this.words=new Array(this.length);for(var ee=0;ee<this.length;ee++)this.words[ee]=0;var H=0,q=0,J;if(z==="be")for(ee=k.length-1;ee>=B;ee-=2)J=S(k,B,ee)<<H,this.words[q]|=J&67108863,H>=18?(H-=18,q+=1,this.words[q]|=J>>>26):H+=8;else{var U=k.length-B;for(ee=U%2===0?B+1:B;ee<k.length;ee+=2)J=S(k,B,ee)<<H,this.words[q]|=J&67108863,H>=18?(H-=18,q+=1,this.words[q]|=J>>>26):H+=8}this._strip()};function A(P,k,B,z){for(var ee=0,H=0,q=Math.min(P.length,B),J=k;J<q;J++){var U=P.charCodeAt(J)-48;ee*=z,U>=49?H=U-49+10:U>=17?H=U-17+10:H=U,_(U>=0&&H<z,"Invalid character"),ee+=H}return ee}I.prototype._parseBase=function(k,B,z){this.words=[0],this.length=1;for(var ee=0,H=1;H<=67108863;H*=B)ee++;ee--,H=H/B|0;for(var q=k.length-z,J=q%ee,U=Math.min(q,q-J)+z,Z=0,ve=z;ve<U;ve+=ee)Z=A(k,ve,ve+ee,B),this.imuln(H),this.words[0]+Z<67108864?this.words[0]+=Z:this._iaddn(Z);if(J!==0){var Ye=1;for(Z=A(k,ve,k.length,B),ve=0;ve<J;ve++)Ye*=B;this.imuln(Ye),this.words[0]+Z<67108864?this.words[0]+=Z:this._iaddn(Z)}this._strip()},I.prototype.copy=function(k){k.words=new Array(this.length);for(var B=0;B<this.length;B++)k.words[B]=this.words[B];k.length=this.length,k.negative=this.negative,k.red=this.red};function T(P,k){P.words=k.words,P.length=k.length,P.negative=k.negative,P.red=k.red}if(I.prototype._move=function(k){T(k,this)},I.prototype.clone=function(){var k=new I(null);return this.copy(k),k},I.prototype._expand=function(k){for(;this.length<k;)this.words[this.length++]=0;return this},I.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},I.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{I.prototype[Symbol.for("nodejs.util.inspect.custom")]=D}catch{I.prototype.inspect=D}else I.prototype.inspect=D;function D(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var O=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],j=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],$=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];I.prototype.toString=function(k,B){k=k||10,B=B|0||1;var z;if(k===16||k==="hex"){z="";for(var ee=0,H=0,q=0;q<this.length;q++){var J=this.words[q],U=((J<<ee|H)&16777215).toString(16);H=J>>>24-ee&16777215,ee+=2,ee>=26&&(ee-=26,q--),H!==0||q!==this.length-1?z=O[6-U.length]+U+z:z=U+z}for(H!==0&&(z=H.toString(16)+z);z.length%B!==0;)z="0"+z;return this.negative!==0&&(z="-"+z),z}if(k===(k|0)&&k>=2&&k<=36){var Z=j[k],ve=$[k];z="";var Ye=this.clone();for(Ye.negative=0;!Ye.isZero();){var rt=Ye.modrn(ve).toString(k);Ye=Ye.idivn(ve),Ye.isZero()?z=rt+z:z=O[Z-rt.length]+rt+z}for(this.isZero()&&(z="0"+z);z.length%B!==0;)z="0"+z;return this.negative!==0&&(z="-"+z),z}_(!1,"Base should be between 2 and 36")},I.prototype.toNumber=function(){var k=this.words[0];return this.length===2?k+=this.words[1]*67108864:this.length===3&&this.words[2]===1?k+=4503599627370496+this.words[1]*67108864:this.length>2&&_(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-k:k},I.prototype.toJSON=function(){return this.toString(16,2)},E&&(I.prototype.toBuffer=function(k,B){return this.toArrayLike(E,k,B)}),I.prototype.toArray=function(k,B){return this.toArrayLike(Array,k,B)};var W=function(k,B){return k.allocUnsafe?k.allocUnsafe(B):new k(B)};I.prototype.toArrayLike=function(k,B,z){this._strip();var ee=this.byteLength(),H=z||Math.max(1,ee);_(ee<=H,"byte array longer than desired length"),_(H>0,"Requested array length <= 0");var q=W(k,H),J=B==="le"?"LE":"BE";return this["_toArrayLike"+J](q,ee),q},I.prototype._toArrayLikeLE=function(k,B){for(var z=0,ee=0,H=0,q=0;H<this.length;H++){var J=this.words[H]<<q|ee;k[z++]=J&255,z<k.length&&(k[z++]=J>>8&255),z<k.length&&(k[z++]=J>>16&255),q===6?(z<k.length&&(k[z++]=J>>24&255),ee=0,q=0):(ee=J>>>24,q+=2)}if(z<k.length)for(k[z++]=ee;z<k.length;)k[z++]=0},I.prototype._toArrayLikeBE=function(k,B){for(var z=k.length-1,ee=0,H=0,q=0;H<this.length;H++){var J=this.words[H]<<q|ee;k[z--]=J&255,z>=0&&(k[z--]=J>>8&255),z>=0&&(k[z--]=J>>16&255),q===6?(z>=0&&(k[z--]=J>>24&255),ee=0,q=0):(ee=J>>>24,q+=2)}if(z>=0)for(k[z--]=ee;z>=0;)k[z--]=0},Math.clz32?I.prototype._countBits=function(k){return 32-Math.clz32(k)}:I.prototype._countBits=function(k){var B=k,z=0;return B>=4096&&(z+=13,B>>>=13),B>=64&&(z+=7,B>>>=7),B>=8&&(z+=4,B>>>=4),B>=2&&(z+=2,B>>>=2),z+B},I.prototype._zeroBits=function(k){if(k===0)return 26;var B=k,z=0;return B&8191||(z+=13,B>>>=13),B&127||(z+=7,B>>>=7),B&15||(z+=4,B>>>=4),B&3||(z+=2,B>>>=2),B&1||z++,z},I.prototype.bitLength=function(){var k=this.words[this.length-1],B=this._countBits(k);return(this.length-1)*26+B};function Q(P){for(var k=new Array(P.bitLength()),B=0;B<k.length;B++){var z=B/26|0,ee=B%26;k[B]=P.words[z]>>>ee&1}return k}I.prototype.zeroBits=function(){if(this.isZero())return 0;for(var k=0,B=0;B<this.length;B++){var z=this._zeroBits(this.words[B]);if(k+=z,z!==26)break}return k},I.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},I.prototype.toTwos=function(k){return this.negative!==0?this.abs().inotn(k).iaddn(1):this.clone()},I.prototype.fromTwos=function(k){return this.testn(k-1)?this.notn(k).iaddn(1).ineg():this.clone()},I.prototype.isNeg=function(){return this.negative!==0},I.prototype.neg=function(){return this.clone().ineg()},I.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},I.prototype.iuor=function(k){for(;this.length<k.length;)this.words[this.length++]=0;for(var B=0;B<k.length;B++)this.words[B]=this.words[B]|k.words[B];return this._strip()},I.prototype.ior=function(k){return _((this.negative|k.negative)===0),this.iuor(k)},I.prototype.or=function(k){return this.length>k.length?this.clone().ior(k):k.clone().ior(this)},I.prototype.uor=function(k){return this.length>k.length?this.clone().iuor(k):k.clone().iuor(this)},I.prototype.iuand=function(k){var B;this.length>k.length?B=k:B=this;for(var z=0;z<B.length;z++)this.words[z]=this.words[z]&k.words[z];return this.length=B.length,this._strip()},I.prototype.iand=function(k){return _((this.negative|k.negative)===0),this.iuand(k)},I.prototype.and=function(k){return this.length>k.length?this.clone().iand(k):k.clone().iand(this)},I.prototype.uand=function(k){return this.length>k.length?this.clone().iuand(k):k.clone().iuand(this)},I.prototype.iuxor=function(k){var B,z;this.length>k.length?(B=this,z=k):(B=k,z=this);for(var ee=0;ee<z.length;ee++)this.words[ee]=B.words[ee]^z.words[ee];if(this!==B)for(;ee<B.length;ee++)this.words[ee]=B.words[ee];return this.length=B.length,this._strip()},I.prototype.ixor=function(k){return _((this.negative|k.negative)===0),this.iuxor(k)},I.prototype.xor=function(k){return this.length>k.length?this.clone().ixor(k):k.clone().ixor(this)},I.prototype.uxor=function(k){return this.length>k.length?this.clone().iuxor(k):k.clone().iuxor(this)},I.prototype.inotn=function(k){_(typeof k=="number"&&k>=0);var B=Math.ceil(k/26)|0,z=k%26;this._expand(B),z>0&&B--;for(var ee=0;ee<B;ee++)this.words[ee]=~this.words[ee]&67108863;return z>0&&(this.words[ee]=~this.words[ee]&67108863>>26-z),this._strip()},I.prototype.notn=function(k){return this.clone().inotn(k)},I.prototype.setn=function(k,B){_(typeof k=="number"&&k>=0);var z=k/26|0,ee=k%26;return this._expand(z+1),B?this.words[z]=this.words[z]|1<<ee:this.words[z]=this.words[z]&~(1<<ee),this._strip()},I.prototype.iadd=function(k){var B;if(this.negative!==0&&k.negative===0)return this.negative=0,B=this.isub(k),this.negative^=1,this._normSign();if(this.negative===0&&k.negative!==0)return k.negative=0,B=this.isub(k),k.negative=1,B._normSign();var z,ee;this.length>k.length?(z=this,ee=k):(z=k,ee=this);for(var H=0,q=0;q<ee.length;q++)B=(z.words[q]|0)+(ee.words[q]|0)+H,this.words[q]=B&67108863,H=B>>>26;for(;H!==0&&q<z.length;q++)B=(z.words[q]|0)+H,this.words[q]=B&67108863,H=B>>>26;if(this.length=z.length,H!==0)this.words[this.length]=H,this.length++;else if(z!==this)for(;q<z.length;q++)this.words[q]=z.words[q];return this},I.prototype.add=function(k){var B;return k.negative!==0&&this.negative===0?(k.negative=0,B=this.sub(k),k.negative^=1,B):k.negative===0&&this.negative!==0?(this.negative=0,B=k.sub(this),this.negative=1,B):this.length>k.length?this.clone().iadd(k):k.clone().iadd(this)},I.prototype.isub=function(k){if(k.negative!==0){k.negative=0;var B=this.iadd(k);return k.negative=1,B._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(k),this.negative=1,this._normSign();var z=this.cmp(k);if(z===0)return this.negative=0,this.length=1,this.words[0]=0,this;var ee,H;z>0?(ee=this,H=k):(ee=k,H=this);for(var q=0,J=0;J<H.length;J++)B=(ee.words[J]|0)-(H.words[J]|0)+q,q=B>>26,this.words[J]=B&67108863;for(;q!==0&&J<ee.length;J++)B=(ee.words[J]|0)+q,q=B>>26,this.words[J]=B&67108863;if(q===0&&J<ee.length&&ee!==this)for(;J<ee.length;J++)this.words[J]=ee.words[J];return this.length=Math.max(this.length,J),ee!==this&&(this.negative=1),this._strip()},I.prototype.sub=function(k){return this.clone().isub(k)};function X(P,k,B){B.negative=k.negative^P.negative;var z=P.length+k.length|0;B.length=z,z=z-1|0;var ee=P.words[0]|0,H=k.words[0]|0,q=ee*H,J=q&67108863,U=q/67108864|0;B.words[0]=J;for(var Z=1;Z<z;Z++){for(var ve=U>>>26,Ye=U&67108863,rt=Math.min(Z,k.length-1),Ue=Math.max(0,Z-P.length+1);Ue<=rt;Ue++){var Qe=Z-Ue|0;ee=P.words[Qe]|0,H=k.words[Ue]|0,q=ee*H+Ye,ve+=q/67108864|0,Ye=q&67108863}B.words[Z]=Ye|0,U=ve|0}return U!==0?B.words[Z]=U|0:B.length--,B._strip()}var Y=function(k,B,z){var ee=k.words,H=B.words,q=z.words,J=0,U,Z,ve,Ye=ee[0]|0,rt=Ye&8191,Ue=Ye>>>13,Qe=ee[1]|0,vt=Qe&8191,ri=Qe>>>13,ci=ee[2]|0,tt=ci&8191,et=ci>>>13,$e=ee[3]|0,Le=$e&8191,ot=$e>>>13,Oe=ee[4]|0,Ne=Oe&8191,Fe=Oe>>>13,Je=ee[5]|0,Dt=Je&8191,oi=Je>>>13,Bt=ee[6]|0,li=Bt&8191,ii=Bt>>>13,Ot=ee[7]|0,St=Ot&8191,pi=Ot>>>13,eM=ee[8]|0,hi=eM&8191,mi=eM>>>13,Dn=ee[9]|0,tM=Dn&8191,oM=Dn>>>13,vM=H[0]|0,dM=vM&8191,hM=vM>>>13,_M=H[1]|0,uM=_M&8191,pM=_M>>>13,yM=H[2]|0,gM=yM&8191,fM=yM>>>13,kM=H[3]|0,IM=kM&8191,DM=kM>>>13,$M=H[4]|0,TM=$M&8191,OM=$M>>>13,UM=H[5]|0,AM=UM&8191,RM=UM>>>13,FM=H[6]|0,xM=FM&8191,BM=FM>>>13,WM=H[7]|0,SM=WM&8191,jM=WM>>>13,YM=H[8]|0,PM=YM&8191,VM=YM>>>13,HM=H[9]|0,zM=HM&8191,KM=HM>>>13;z.negative=k.negative^B.negative,z.length=19,U=Math.imul(rt,dM),Z=Math.imul(rt,hM),Z=Z+Math.imul(Ue,dM)|0,ve=Math.imul(Ue,hM);var rN=(J+U|0)+((Z&8191)<<13)|0;J=(ve+(Z>>>13)|0)+(rN>>>26)|0,rN&=67108863,U=Math.imul(vt,dM),Z=Math.imul(vt,hM),Z=Z+Math.imul(ri,dM)|0,ve=Math.imul(ri,hM),U=U+Math.imul(rt,uM)|0,Z=Z+Math.imul(rt,pM)|0,Z=Z+Math.imul(Ue,uM)|0,ve=ve+Math.imul(Ue,pM)|0;var eN=(J+U|0)+((Z&8191)<<13)|0;J=(ve+(Z>>>13)|0)+(eN>>>26)|0,eN&=67108863,U=Math.imul(tt,dM),Z=Math.imul(tt,hM),Z=Z+Math.imul(et,dM)|0,ve=Math.imul(et,hM),U=U+Math.imul(vt,uM)|0,Z=Z+Math.imul(vt,pM)|0,Z=Z+Math.imul(ri,uM)|0,ve=ve+Math.imul(ri,pM)|0,U=U+Math.imul(rt,gM)|0,Z=Z+Math.imul(rt,fM)|0,Z=Z+Math.imul(Ue,gM)|0,ve=ve+Math.imul(Ue,fM)|0;var iN=(J+U|0)+((Z&8191)<<13)|0;J=(ve+(Z>>>13)|0)+(iN>>>26)|0,iN&=67108863,U=Math.imul(Le,dM),Z=Math.imul(Le,hM),Z=Z+Math.imul(ot,dM)|0,ve=Math.imul(ot,hM),U=U+Math.imul(tt,uM)|0,Z=Z+Math.imul(tt,pM)|0,Z=Z+Math.imul(et,uM)|0,ve=ve+Math.imul(et,pM)|0,U=U+Math.imul(vt,gM)|0,Z=Z+Math.imul(vt,fM)|0,Z=Z+Math.imul(ri,gM)|0,ve=ve+Math.imul(ri,fM)|0,U=U+Math.imul(rt,IM)|0,Z=Z+Math.imul(rt,DM)|0,Z=Z+Math.imul(Ue,IM)|0,ve=ve+Math.imul(Ue,DM)|0;var ai=(J+U|0)+((Z&8191)<<13)|0;J=(ve+(Z>>>13)|0)+(ai>>>26)|0,ai&=67108863,U=Math.imul(Ne,dM),Z=Math.imul(Ne,hM),Z=Z+Math.imul(Fe,dM)|0,ve=Math.imul(Fe,hM),U=U+Math.imul(Le,uM)|0,Z=Z+Math.imul(Le,pM)|0,Z=Z+Math.imul(ot,uM)|0,ve=ve+Math.imul(ot,pM)|0,U=U+Math.imul(tt,gM)|0,Z=Z+Math.imul(tt,fM)|0,Z=Z+Math.imul(et,gM)|0,ve=ve+Math.imul(et,fM)|0,U=U+Math.imul(vt,IM)|0,Z=Z+Math.imul(vt,DM)|0,Z=Z+Math.imul(ri,IM)|0,ve=ve+Math.imul(ri,DM)|0,U=U+Math.imul(rt,TM)|0,Z=Z+Math.imul(rt,OM)|0,Z=Z+Math.imul(Ue,TM)|0,ve=ve+Math.imul(Ue,OM)|0;var C=(J+U|0)+((Z&8191)<<13)|0;J=(ve+(Z>>>13)|0)+(C>>>26)|0,C&=67108863,U=Math.imul(Dt,dM),Z=Math.imul(Dt,hM),Z=Z+Math.imul(oi,dM)|0,ve=Math.imul(oi,hM),U=U+Math.imul(Ne,uM)|0,Z=Z+Math.imul(Ne,pM)|0,Z=Z+Math.imul(Fe,uM)|0,ve=ve+Math.imul(Fe,pM)|0,U=U+Math.imul(Le,gM)|0,Z=Z+Math.imul(Le,fM)|0,Z=Z+Math.imul(ot,gM)|0,ve=ve+Math.imul(ot,fM)|0,U=U+Math.imul(tt,IM)|0,Z=Z+Math.imul(tt,DM)|0,Z=Z+Math.imul(et,IM)|0,ve=ve+Math.imul(et,DM)|0,U=U+Math.imul(vt,TM)|0,Z=Z+Math.imul(vt,OM)|0,Z=Z+Math.imul(ri,TM)|0,ve=ve+Math.imul(ri,OM)|0,U=U+Math.imul(rt,AM)|0,Z=Z+Math.imul(rt,RM)|0,Z=Z+Math.imul(Ue,AM)|0,ve=ve+Math.imul(Ue,RM)|0;var L=(J+U|0)+((Z&8191)<<13)|0;J=(ve+(Z>>>13)|0)+(L>>>26)|0,L&=67108863,U=Math.imul(li,dM),Z=Math.imul(li,hM),Z=Z+Math.imul(ii,dM)|0,ve=Math.imul(ii,hM),U=U+Math.imul(Dt,uM)|0,Z=Z+Math.imul(Dt,pM)|0,Z=Z+Math.imul(oi,uM)|0,ve=ve+Math.imul(oi,pM)|0,U=U+Math.imul(Ne,gM)|0,Z=Z+Math.imul(Ne,fM)|0,Z=Z+Math.imul(Fe,gM)|0,ve=ve+Math.imul(Fe,fM)|0,U=U+Math.imul(Le,IM)|0,Z=Z+Math.imul(Le,DM)|0,Z=Z+Math.imul(ot,IM)|0,ve=ve+Math.imul(ot,DM)|0,U=U+Math.imul(tt,TM)|0,Z=Z+Math.imul(tt,OM)|0,Z=Z+Math.imul(et,TM)|0,ve=ve+Math.imul(et,OM)|0,U=U+Math.imul(vt,AM)|0,Z=Z+Math.imul(vt,RM)|0,Z=Z+Math.imul(ri,AM)|0,ve=ve+Math.imul(ri,RM)|0,U=U+Math.imul(rt,xM)|0,Z=Z+Math.imul(rt,BM)|0,Z=Z+Math.imul(Ue,xM)|0,ve=ve+Math.imul(Ue,BM)|0;var F=(J+U|0)+((Z&8191)<<13)|0;J=(ve+(Z>>>13)|0)+(F>>>26)|0,F&=67108863,U=Math.imul(St,dM),Z=Math.imul(St,hM),Z=Z+Math.imul(pi,dM)|0,ve=Math.imul(pi,hM),U=U+Math.imul(li,uM)|0,Z=Z+Math.imul(li,pM)|0,Z=Z+Math.imul(ii,uM)|0,ve=ve+Math.imul(ii,pM)|0,U=U+Math.imul(Dt,gM)|0,Z=Z+Math.imul(Dt,fM)|0,Z=Z+Math.imul(oi,gM)|0,ve=ve+Math.imul(oi,fM)|0,U=U+Math.imul(Ne,IM)|0,Z=Z+Math.imul(Ne,DM)|0,Z=Z+Math.imul(Fe,IM)|0,ve=ve+Math.imul(Fe,DM)|0,U=U+Math.imul(Le,TM)|0,Z=Z+Math.imul(Le,OM)|0,Z=Z+Math.imul(ot,TM)|0,ve=ve+Math.imul(ot,OM)|0,U=U+Math.imul(tt,AM)|0,Z=Z+Math.imul(tt,RM)|0,Z=Z+Math.imul(et,AM)|0,ve=ve+Math.imul(et,RM)|0,U=U+Math.imul(vt,xM)|0,Z=Z+Math.imul(vt,BM)|0,Z=Z+Math.imul(ri,xM)|0,ve=ve+Math.imul(ri,BM)|0,U=U+Math.imul(rt,SM)|0,Z=Z+Math.imul(rt,jM)|0,Z=Z+Math.imul(Ue,SM)|0,ve=ve+Math.imul(Ue,jM)|0;var ne=(J+U|0)+((Z&8191)<<13)|0;J=(ve+(Z>>>13)|0)+(ne>>>26)|0,ne&=67108863,U=Math.imul(hi,dM),Z=Math.imul(hi,hM),Z=Z+Math.imul(mi,dM)|0,ve=Math.imul(mi,hM),U=U+Math.imul(St,uM)|0,Z=Z+Math.imul(St,pM)|0,Z=Z+Math.imul(pi,uM)|0,ve=ve+Math.imul(pi,pM)|0,U=U+Math.imul(li,gM)|0,Z=Z+Math.imul(li,fM)|0,Z=Z+Math.imul(ii,gM)|0,ve=ve+Math.imul(ii,fM)|0,U=U+Math.imul(Dt,IM)|0,Z=Z+Math.imul(Dt,DM)|0,Z=Z+Math.imul(oi,IM)|0,ve=ve+Math.imul(oi,DM)|0,U=U+Math.imul(Ne,TM)|0,Z=Z+Math.imul(Ne,OM)|0,Z=Z+Math.imul(Fe,TM)|0,ve=ve+Math.imul(Fe,OM)|0,U=U+Math.imul(Le,AM)|0,Z=Z+Math.imul(Le,RM)|0,Z=Z+Math.imul(ot,AM)|0,ve=ve+Math.imul(ot,RM)|0,U=U+Math.imul(tt,xM)|0,Z=Z+Math.imul(tt,BM)|0,Z=Z+Math.imul(et,xM)|0,ve=ve+Math.imul(et,BM)|0,U=U+Math.imul(vt,SM)|0,Z=Z+Math.imul(vt,jM)|0,Z=Z+Math.imul(ri,SM)|0,ve=ve+Math.imul(ri,jM)|0,U=U+Math.imul(rt,PM)|0,Z=Z+Math.imul(rt,VM)|0,Z=Z+Math.imul(Ue,PM)|0,ve=ve+Math.imul(Ue,VM)|0;var ue=(J+U|0)+((Z&8191)<<13)|0;J=(ve+(Z>>>13)|0)+(ue>>>26)|0,ue&=67108863,U=Math.imul(tM,dM),Z=Math.imul(tM,hM),Z=Z+Math.imul(oM,dM)|0,ve=Math.imul(oM,hM),U=U+Math.imul(hi,uM)|0,Z=Z+Math.imul(hi,pM)|0,Z=Z+Math.imul(mi,uM)|0,ve=ve+Math.imul(mi,pM)|0,U=U+Math.imul(St,gM)|0,Z=Z+Math.imul(St,fM)|0,Z=Z+Math.imul(pi,gM)|0,ve=ve+Math.imul(pi,fM)|0,U=U+Math.imul(li,IM)|0,Z=Z+Math.imul(li,DM)|0,Z=Z+Math.imul(ii,IM)|0,ve=ve+Math.imul(ii,DM)|0,U=U+Math.imul(Dt,TM)|0,Z=Z+Math.imul(Dt,OM)|0,Z=Z+Math.imul(oi,TM)|0,ve=ve+Math.imul(oi,OM)|0,U=U+Math.imul(Ne,AM)|0,Z=Z+Math.imul(Ne,RM)|0,Z=Z+Math.imul(Fe,AM)|0,ve=ve+Math.imul(Fe,RM)|0,U=U+Math.imul(Le,xM)|0,Z=Z+Math.imul(Le,BM)|0,Z=Z+Math.imul(ot,xM)|0,ve=ve+Math.imul(ot,BM)|0,U=U+Math.imul(tt,SM)|0,Z=Z+Math.imul(tt,jM)|0,Z=Z+Math.imul(et,SM)|0,ve=ve+Math.imul(et,jM)|0,U=U+Math.imul(vt,PM)|0,Z=Z+Math.imul(vt,VM)|0,Z=Z+Math.imul(ri,PM)|0,ve=ve+Math.imul(ri,VM)|0,U=U+Math.imul(rt,zM)|0,Z=Z+Math.imul(rt,KM)|0,Z=Z+Math.imul(Ue,zM)|0,ve=ve+Math.imul(Ue,KM)|0;var fe=(J+U|0)+((Z&8191)<<13)|0;J=(ve+(Z>>>13)|0)+(fe>>>26)|0,fe&=67108863,U=Math.imul(tM,uM),Z=Math.imul(tM,pM),Z=Z+Math.imul(oM,uM)|0,ve=Math.imul(oM,pM),U=U+Math.imul(hi,gM)|0,Z=Z+Math.imul(hi,fM)|0,Z=Z+Math.imul(mi,gM)|0,ve=ve+Math.imul(mi,fM)|0,U=U+Math.imul(St,IM)|0,Z=Z+Math.imul(St,DM)|0,Z=Z+Math.imul(pi,IM)|0,ve=ve+Math.imul(pi,DM)|0,U=U+Math.imul(li,TM)|0,Z=Z+Math.imul(li,OM)|0,Z=Z+Math.imul(ii,TM)|0,ve=ve+Math.imul(ii,OM)|0,U=U+Math.imul(Dt,AM)|0,Z=Z+Math.imul(Dt,RM)|0,Z=Z+Math.imul(oi,AM)|0,ve=ve+Math.imul(oi,RM)|0,U=U+Math.imul(Ne,xM)|0,Z=Z+Math.imul(Ne,BM)|0,Z=Z+Math.imul(Fe,xM)|0,ve=ve+Math.imul(Fe,BM)|0,U=U+Math.imul(Le,SM)|0,Z=Z+Math.imul(Le,jM)|0,Z=Z+Math.imul(ot,SM)|0,ve=ve+Math.imul(ot,jM)|0,U=U+Math.imul(tt,PM)|0,Z=Z+Math.imul(tt,VM)|0,Z=Z+Math.imul(et,PM)|0,ve=ve+Math.imul(et,VM)|0,U=U+Math.imul(vt,zM)|0,Z=Z+Math.imul(vt,KM)|0,Z=Z+Math.imul(ri,zM)|0,ve=ve+Math.imul(ri,KM)|0;var me=(J+U|0)+((Z&8191)<<13)|0;J=(ve+(Z>>>13)|0)+(me>>>26)|0,me&=67108863,U=Math.imul(tM,gM),Z=Math.imul(tM,fM),Z=Z+Math.imul(oM,gM)|0,ve=Math.imul(oM,fM),U=U+Math.imul(hi,IM)|0,Z=Z+Math.imul(hi,DM)|0,Z=Z+Math.imul(mi,IM)|0,ve=ve+Math.imul(mi,DM)|0,U=U+Math.imul(St,TM)|0,Z=Z+Math.imul(St,OM)|0,Z=Z+Math.imul(pi,TM)|0,ve=ve+Math.imul(pi,OM)|0,U=U+Math.imul(li,AM)|0,Z=Z+Math.imul(li,RM)|0,Z=Z+Math.imul(ii,AM)|0,ve=ve+Math.imul(ii,RM)|0,U=U+Math.imul(Dt,xM)|0,Z=Z+Math.imul(Dt,BM)|0,Z=Z+Math.imul(oi,xM)|0,ve=ve+Math.imul(oi,BM)|0,U=U+Math.imul(Ne,SM)|0,Z=Z+Math.imul(Ne,jM)|0,Z=Z+Math.imul(Fe,SM)|0,ve=ve+Math.imul(Fe,jM)|0,U=U+Math.imul(Le,PM)|0,Z=Z+Math.imul(Le,VM)|0,Z=Z+Math.imul(ot,PM)|0,ve=ve+Math.imul(ot,VM)|0,U=U+Math.imul(tt,zM)|0,Z=Z+Math.imul(tt,KM)|0,Z=Z+Math.imul(et,zM)|0,ve=ve+Math.imul(et,KM)|0;var Pe=(J+U|0)+((Z&8191)<<13)|0;J=(ve+(Z>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,U=Math.imul(tM,IM),Z=Math.imul(tM,DM),Z=Z+Math.imul(oM,IM)|0,ve=Math.imul(oM,DM),U=U+Math.imul(hi,TM)|0,Z=Z+Math.imul(hi,OM)|0,Z=Z+Math.imul(mi,TM)|0,ve=ve+Math.imul(mi,OM)|0,U=U+Math.imul(St,AM)|0,Z=Z+Math.imul(St,RM)|0,Z=Z+Math.imul(pi,AM)|0,ve=ve+Math.imul(pi,RM)|0,U=U+Math.imul(li,xM)|0,Z=Z+Math.imul(li,BM)|0,Z=Z+Math.imul(ii,xM)|0,ve=ve+Math.imul(ii,BM)|0,U=U+Math.imul(Dt,SM)|0,Z=Z+Math.imul(Dt,jM)|0,Z=Z+Math.imul(oi,SM)|0,ve=ve+Math.imul(oi,jM)|0,U=U+Math.imul(Ne,PM)|0,Z=Z+Math.imul(Ne,VM)|0,Z=Z+Math.imul(Fe,PM)|0,ve=ve+Math.imul(Fe,VM)|0,U=U+Math.imul(Le,zM)|0,Z=Z+Math.imul(Le,KM)|0,Z=Z+Math.imul(ot,zM)|0,ve=ve+Math.imul(ot,KM)|0;var Re=(J+U|0)+((Z&8191)<<13)|0;J=(ve+(Z>>>13)|0)+(Re>>>26)|0,Re&=67108863,U=Math.imul(tM,TM),Z=Math.imul(tM,OM),Z=Z+Math.imul(oM,TM)|0,ve=Math.imul(oM,OM),U=U+Math.imul(hi,AM)|0,Z=Z+Math.imul(hi,RM)|0,Z=Z+Math.imul(mi,AM)|0,ve=ve+Math.imul(mi,RM)|0,U=U+Math.imul(St,xM)|0,Z=Z+Math.imul(St,BM)|0,Z=Z+Math.imul(pi,xM)|0,ve=ve+Math.imul(pi,BM)|0,U=U+Math.imul(li,SM)|0,Z=Z+Math.imul(li,jM)|0,Z=Z+Math.imul(ii,SM)|0,ve=ve+Math.imul(ii,jM)|0,U=U+Math.imul(Dt,PM)|0,Z=Z+Math.imul(Dt,VM)|0,Z=Z+Math.imul(oi,PM)|0,ve=ve+Math.imul(oi,VM)|0,U=U+Math.imul(Ne,zM)|0,Z=Z+Math.imul(Ne,KM)|0,Z=Z+Math.imul(Fe,zM)|0,ve=ve+Math.imul(Fe,KM)|0;var Xe=(J+U|0)+((Z&8191)<<13)|0;J=(ve+(Z>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,U=Math.imul(tM,AM),Z=Math.imul(tM,RM),Z=Z+Math.imul(oM,AM)|0,ve=Math.imul(oM,RM),U=U+Math.imul(hi,xM)|0,Z=Z+Math.imul(hi,BM)|0,Z=Z+Math.imul(mi,xM)|0,ve=ve+Math.imul(mi,BM)|0,U=U+Math.imul(St,SM)|0,Z=Z+Math.imul(St,jM)|0,Z=Z+Math.imul(pi,SM)|0,ve=ve+Math.imul(pi,jM)|0,U=U+Math.imul(li,PM)|0,Z=Z+Math.imul(li,VM)|0,Z=Z+Math.imul(ii,PM)|0,ve=ve+Math.imul(ii,VM)|0,U=U+Math.imul(Dt,zM)|0,Z=Z+Math.imul(Dt,KM)|0,Z=Z+Math.imul(oi,zM)|0,ve=ve+Math.imul(oi,KM)|0;var qe=(J+U|0)+((Z&8191)<<13)|0;J=(ve+(Z>>>13)|0)+(qe>>>26)|0,qe&=67108863,U=Math.imul(tM,xM),Z=Math.imul(tM,BM),Z=Z+Math.imul(oM,xM)|0,ve=Math.imul(oM,BM),U=U+Math.imul(hi,SM)|0,Z=Z+Math.imul(hi,jM)|0,Z=Z+Math.imul(mi,SM)|0,ve=ve+Math.imul(mi,jM)|0,U=U+Math.imul(St,PM)|0,Z=Z+Math.imul(St,VM)|0,Z=Z+Math.imul(pi,PM)|0,ve=ve+Math.imul(pi,VM)|0,U=U+Math.imul(li,zM)|0,Z=Z+Math.imul(li,KM)|0,Z=Z+Math.imul(ii,zM)|0,ve=ve+Math.imul(ii,KM)|0;var Ke=(J+U|0)+((Z&8191)<<13)|0;J=(ve+(Z>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,U=Math.imul(tM,SM),Z=Math.imul(tM,jM),Z=Z+Math.imul(oM,SM)|0,ve=Math.imul(oM,jM),U=U+Math.imul(hi,PM)|0,Z=Z+Math.imul(hi,VM)|0,Z=Z+Math.imul(mi,PM)|0,ve=ve+Math.imul(mi,VM)|0,U=U+Math.imul(St,zM)|0,Z=Z+Math.imul(St,KM)|0,Z=Z+Math.imul(pi,zM)|0,ve=ve+Math.imul(pi,KM)|0;var nt=(J+U|0)+((Z&8191)<<13)|0;J=(ve+(Z>>>13)|0)+(nt>>>26)|0,nt&=67108863,U=Math.imul(tM,PM),Z=Math.imul(tM,VM),Z=Z+Math.imul(oM,PM)|0,ve=Math.imul(oM,VM),U=U+Math.imul(hi,zM)|0,Z=Z+Math.imul(hi,KM)|0,Z=Z+Math.imul(mi,zM)|0,ve=ve+Math.imul(mi,KM)|0;var It=(J+U|0)+((Z&8191)<<13)|0;J=(ve+(Z>>>13)|0)+(It>>>26)|0,It&=67108863,U=Math.imul(tM,zM),Z=Math.imul(tM,KM),Z=Z+Math.imul(oM,zM)|0,ve=Math.imul(oM,KM);var Tt=(J+U|0)+((Z&8191)<<13)|0;return J=(ve+(Z>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,q[0]=rN,q[1]=eN,q[2]=iN,q[3]=ai,q[4]=C,q[5]=L,q[6]=F,q[7]=ne,q[8]=ue,q[9]=fe,q[10]=me,q[11]=Pe,q[12]=Re,q[13]=Xe,q[14]=qe,q[15]=Ke,q[16]=nt,q[17]=It,q[18]=Tt,J!==0&&(q[19]=J,z.length++),z};Math.imul||(Y=X);function ie(P,k,B){B.negative=k.negative^P.negative,B.length=P.length+k.length;for(var z=0,ee=0,H=0;H<B.length-1;H++){var q=ee;ee=0;for(var J=z&67108863,U=Math.min(H,k.length-1),Z=Math.max(0,H-P.length+1);Z<=U;Z++){var ve=H-Z,Ye=P.words[ve]|0,rt=k.words[Z]|0,Ue=Ye*rt,Qe=Ue&67108863;q=q+(Ue/67108864|0)|0,Qe=Qe+J|0,J=Qe&67108863,q=q+(Qe>>>26)|0,ee+=q>>>26,q&=67108863}B.words[H]=J,z=q,q=ee}return z!==0?B.words[H]=z:B.length--,B._strip()}function oe(P,k,B){return ie(P,k,B)}I.prototype.mulTo=function(k,B){var z,ee=this.length+k.length;return this.length===10&&k.length===10?z=Y(this,k,B):ee<63?z=X(this,k,B):ee<1024?z=ie(this,k,B):z=oe(this,k,B),z},I.prototype.mul=function(k){var B=new I(null);return B.words=new Array(this.length+k.length),this.mulTo(k,B)},I.prototype.mulf=function(k){var B=new I(null);return B.words=new Array(this.length+k.length),oe(this,k,B)},I.prototype.imul=function(k){return this.clone().mulTo(k,this)},I.prototype.imuln=function(k){var B=k<0;B&&(k=-k),_(typeof k=="number"),_(k<67108864);for(var z=0,ee=0;ee<this.length;ee++){var H=(this.words[ee]|0)*k,q=(H&67108863)+(z&67108863);z>>=26,z+=H/67108864|0,z+=q>>>26,this.words[ee]=q&67108863}return z!==0&&(this.words[ee]=z,this.length++),B?this.ineg():this},I.prototype.muln=function(k){return this.clone().imuln(k)},I.prototype.sqr=function(){return this.mul(this)},I.prototype.isqr=function(){return this.imul(this.clone())},I.prototype.pow=function(k){var B=Q(k);if(B.length===0)return new I(1);for(var z=this,ee=0;ee<B.length&&B[ee]===0;ee++,z=z.sqr());if(++ee<B.length)for(var H=z.sqr();ee<B.length;ee++,H=H.sqr())B[ee]!==0&&(z=z.mul(H));return z},I.prototype.iushln=function(k){_(typeof k=="number"&&k>=0);var B=k%26,z=(k-B)/26,ee=67108863>>>26-B<<26-B,H;if(B!==0){var q=0;for(H=0;H<this.length;H++){var J=this.words[H]&ee,U=(this.words[H]|0)-J<<B;this.words[H]=U|q,q=J>>>26-B}q&&(this.words[H]=q,this.length++)}if(z!==0){for(H=this.length-1;H>=0;H--)this.words[H+z]=this.words[H];for(H=0;H<z;H++)this.words[H]=0;this.length+=z}return this._strip()},I.prototype.ishln=function(k){return _(this.negative===0),this.iushln(k)},I.prototype.iushrn=function(k,B,z){_(typeof k=="number"&&k>=0);var ee;B?ee=(B-B%26)/26:ee=0;var H=k%26,q=Math.min((k-H)/26,this.length),J=67108863^67108863>>>H<<H,U=z;if(ee-=q,ee=Math.max(0,ee),U){for(var Z=0;Z<q;Z++)U.words[Z]=this.words[Z];U.length=q}if(q!==0)if(this.length>q)for(this.length-=q,Z=0;Z<this.length;Z++)this.words[Z]=this.words[Z+q];else this.words[0]=0,this.length=1;var ve=0;for(Z=this.length-1;Z>=0&&(ve!==0||Z>=ee);Z--){var Ye=this.words[Z]|0;this.words[Z]=ve<<26-H|Ye>>>H,ve=Ye&J}return U&&ve!==0&&(U.words[U.length++]=ve),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},I.prototype.ishrn=function(k,B,z){return _(this.negative===0),this.iushrn(k,B,z)},I.prototype.shln=function(k){return this.clone().ishln(k)},I.prototype.ushln=function(k){return this.clone().iushln(k)},I.prototype.shrn=function(k){return this.clone().ishrn(k)},I.prototype.ushrn=function(k){return this.clone().iushrn(k)},I.prototype.testn=function(k){_(typeof k=="number"&&k>=0);var B=k%26,z=(k-B)/26,ee=1<<B;if(this.length<=z)return!1;var H=this.words[z];return!!(H&ee)},I.prototype.imaskn=function(k){_(typeof k=="number"&&k>=0);var B=k%26,z=(k-B)/26;if(_(this.negative===0,"imaskn works only with positive numbers"),this.length<=z)return this;if(B!==0&&z++,this.length=Math.min(z,this.length),B!==0){var ee=67108863^67108863>>>B<<B;this.words[this.length-1]&=ee}return this._strip()},I.prototype.maskn=function(k){return this.clone().imaskn(k)},I.prototype.iaddn=function(k){return _(typeof k=="number"),_(k<67108864),k<0?this.isubn(-k):this.negative!==0?this.length===1&&(this.words[0]|0)<=k?(this.words[0]=k-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(k),this.negative=1,this):this._iaddn(k)},I.prototype._iaddn=function(k){this.words[0]+=k;for(var B=0;B<this.length&&this.words[B]>=67108864;B++)this.words[B]-=67108864,B===this.length-1?this.words[B+1]=1:this.words[B+1]++;return this.length=Math.max(this.length,B+1),this},I.prototype.isubn=function(k){if(_(typeof k=="number"),_(k<67108864),k<0)return this.iaddn(-k);if(this.negative!==0)return this.negative=0,this.iaddn(k),this.negative=1,this;if(this.words[0]-=k,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var B=0;B<this.length&&this.words[B]<0;B++)this.words[B]+=67108864,this.words[B+1]-=1;return this._strip()},I.prototype.addn=function(k){return this.clone().iaddn(k)},I.prototype.subn=function(k){return this.clone().isubn(k)},I.prototype.iabs=function(){return this.negative=0,this},I.prototype.abs=function(){return this.clone().iabs()},I.prototype._ishlnsubmul=function(k,B,z){var ee=k.length+z,H;this._expand(ee);var q,J=0;for(H=0;H<k.length;H++){q=(this.words[H+z]|0)+J;var U=(k.words[H]|0)*B;q-=U&67108863,J=(q>>26)-(U/67108864|0),this.words[H+z]=q&67108863}for(;H<this.length-z;H++)q=(this.words[H+z]|0)+J,J=q>>26,this.words[H+z]=q&67108863;if(J===0)return this._strip();for(_(J===-1),J=0,H=0;H<this.length;H++)q=-(this.words[H]|0)+J,J=q>>26,this.words[H]=q&67108863;return this.negative=1,this._strip()},I.prototype._wordDiv=function(k,B){var z=this.length-k.length,ee=this.clone(),H=k,q=H.words[H.length-1]|0,J=this._countBits(q);z=26-J,z!==0&&(H=H.ushln(z),ee.iushln(z),q=H.words[H.length-1]|0);var U=ee.length-H.length,Z;if(B!=="mod"){Z=new I(null),Z.length=U+1,Z.words=new Array(Z.length);for(var ve=0;ve<Z.length;ve++)Z.words[ve]=0}var Ye=ee.clone()._ishlnsubmul(H,1,U);Ye.negative===0&&(ee=Ye,Z&&(Z.words[U]=1));for(var rt=U-1;rt>=0;rt--){var Ue=(ee.words[H.length+rt]|0)*67108864+(ee.words[H.length+rt-1]|0);for(Ue=Math.min(Ue/q|0,67108863),ee._ishlnsubmul(H,Ue,rt);ee.negative!==0;)Ue--,ee.negative=0,ee._ishlnsubmul(H,1,rt),ee.isZero()||(ee.negative^=1);Z&&(Z.words[rt]=Ue)}return Z&&Z._strip(),ee._strip(),B!=="div"&&z!==0&&ee.iushrn(z),{div:Z||null,mod:ee}},I.prototype.divmod=function(k,B,z){if(_(!k.isZero()),this.isZero())return{div:new I(0),mod:new I(0)};var ee,H,q;return this.negative!==0&&k.negative===0?(q=this.neg().divmod(k,B),B!=="mod"&&(ee=q.div.neg()),B!=="div"&&(H=q.mod.neg(),z&&H.negative!==0&&H.iadd(k)),{div:ee,mod:H}):this.negative===0&&k.negative!==0?(q=this.divmod(k.neg(),B),B!=="mod"&&(ee=q.div.neg()),{div:ee,mod:q.mod}):this.negative&k.negative?(q=this.neg().divmod(k.neg(),B),B!=="div"&&(H=q.mod.neg(),z&&H.negative!==0&&H.isub(k)),{div:q.div,mod:H}):k.length>this.length||this.cmp(k)<0?{div:new I(0),mod:this}:k.length===1?B==="div"?{div:this.divn(k.words[0]),mod:null}:B==="mod"?{div:null,mod:new I(this.modrn(k.words[0]))}:{div:this.divn(k.words[0]),mod:new I(this.modrn(k.words[0]))}:this._wordDiv(k,B)},I.prototype.div=function(k){return this.divmod(k,"div",!1).div},I.prototype.mod=function(k){return this.divmod(k,"mod",!1).mod},I.prototype.umod=function(k){return this.divmod(k,"mod",!0).mod},I.prototype.divRound=function(k){var B=this.divmod(k);if(B.mod.isZero())return B.div;var z=B.div.negative!==0?B.mod.isub(k):B.mod,ee=k.ushrn(1),H=k.andln(1),q=z.cmp(ee);return q<0||H===1&&q===0?B.div:B.div.negative!==0?B.div.isubn(1):B.div.iaddn(1)},I.prototype.modrn=function(k){var B=k<0;B&&(k=-k),_(k<=67108863);for(var z=(1<<26)%k,ee=0,H=this.length-1;H>=0;H--)ee=(z*ee+(this.words[H]|0))%k;return B?-ee:ee},I.prototype.modn=function(k){return this.modrn(k)},I.prototype.idivn=function(k){var B=k<0;B&&(k=-k),_(k<=67108863);for(var z=0,ee=this.length-1;ee>=0;ee--){var H=(this.words[ee]|0)+z*67108864;this.words[ee]=H/k|0,z=H%k}return this._strip(),B?this.ineg():this},I.prototype.divn=function(k){return this.clone().idivn(k)},I.prototype.egcd=function(k){_(k.negative===0),_(!k.isZero());var B=this,z=k.clone();B.negative!==0?B=B.umod(k):B=B.clone();for(var ee=new I(1),H=new I(0),q=new I(0),J=new I(1),U=0;B.isEven()&&z.isEven();)B.iushrn(1),z.iushrn(1),++U;for(var Z=z.clone(),ve=B.clone();!B.isZero();){for(var Ye=0,rt=1;!(B.words[0]&rt)&&Ye<26;++Ye,rt<<=1);if(Ye>0)for(B.iushrn(Ye);Ye-- >0;)(ee.isOdd()||H.isOdd())&&(ee.iadd(Z),H.isub(ve)),ee.iushrn(1),H.iushrn(1);for(var Ue=0,Qe=1;!(z.words[0]&Qe)&&Ue<26;++Ue,Qe<<=1);if(Ue>0)for(z.iushrn(Ue);Ue-- >0;)(q.isOdd()||J.isOdd())&&(q.iadd(Z),J.isub(ve)),q.iushrn(1),J.iushrn(1);B.cmp(z)>=0?(B.isub(z),ee.isub(q),H.isub(J)):(z.isub(B),q.isub(ee),J.isub(H))}return{a:q,b:J,gcd:z.iushln(U)}},I.prototype._invmp=function(k){_(k.negative===0),_(!k.isZero());var B=this,z=k.clone();B.negative!==0?B=B.umod(k):B=B.clone();for(var ee=new I(1),H=new I(0),q=z.clone();B.cmpn(1)>0&&z.cmpn(1)>0;){for(var J=0,U=1;!(B.words[0]&U)&&J<26;++J,U<<=1);if(J>0)for(B.iushrn(J);J-- >0;)ee.isOdd()&&ee.iadd(q),ee.iushrn(1);for(var Z=0,ve=1;!(z.words[0]&ve)&&Z<26;++Z,ve<<=1);if(Z>0)for(z.iushrn(Z);Z-- >0;)H.isOdd()&&H.iadd(q),H.iushrn(1);B.cmp(z)>=0?(B.isub(z),ee.isub(H)):(z.isub(B),H.isub(ee))}var Ye;return B.cmpn(1)===0?Ye=ee:Ye=H,Ye.cmpn(0)<0&&Ye.iadd(k),Ye},I.prototype.gcd=function(k){if(this.isZero())return k.abs();if(k.isZero())return this.abs();var B=this.clone(),z=k.clone();B.negative=0,z.negative=0;for(var ee=0;B.isEven()&&z.isEven();ee++)B.iushrn(1),z.iushrn(1);do{for(;B.isEven();)B.iushrn(1);for(;z.isEven();)z.iushrn(1);var H=B.cmp(z);if(H<0){var q=B;B=z,z=q}else if(H===0||z.cmpn(1)===0)break;B.isub(z)}while(!0);return z.iushln(ee)},I.prototype.invm=function(k){return this.egcd(k).a.umod(k)},I.prototype.isEven=function(){return(this.words[0]&1)===0},I.prototype.isOdd=function(){return(this.words[0]&1)===1},I.prototype.andln=function(k){return this.words[0]&k},I.prototype.bincn=function(k){_(typeof k=="number");var B=k%26,z=(k-B)/26,ee=1<<B;if(this.length<=z)return this._expand(z+1),this.words[z]|=ee,this;for(var H=ee,q=z;H!==0&&q<this.length;q++){var J=this.words[q]|0;J+=H,H=J>>>26,J&=67108863,this.words[q]=J}return H!==0&&(this.words[q]=H,this.length++),this},I.prototype.isZero=function(){return this.length===1&&this.words[0]===0},I.prototype.cmpn=function(k){var B=k<0;if(this.negative!==0&&!B)return-1;if(this.negative===0&&B)return 1;this._strip();var z;if(this.length>1)z=1;else{B&&(k=-k),_(k<=67108863,"Number is too big");var ee=this.words[0]|0;z=ee===k?0:ee<k?-1:1}return this.negative!==0?-z|0:z},I.prototype.cmp=function(k){if(this.negative!==0&&k.negative===0)return-1;if(this.negative===0&&k.negative!==0)return 1;var B=this.ucmp(k);return this.negative!==0?-B|0:B},I.prototype.ucmp=function(k){if(this.length>k.length)return 1;if(this.length<k.length)return-1;for(var B=0,z=this.length-1;z>=0;z--){var ee=this.words[z]|0,H=k.words[z]|0;if(ee!==H){ee<H?B=-1:ee>H&&(B=1);break}}return B},I.prototype.gtn=function(k){return this.cmpn(k)===1},I.prototype.gt=function(k){return this.cmp(k)===1},I.prototype.gten=function(k){return this.cmpn(k)>=0},I.prototype.gte=function(k){return this.cmp(k)>=0},I.prototype.ltn=function(k){return this.cmpn(k)===-1},I.prototype.lt=function(k){return this.cmp(k)===-1},I.prototype.lten=function(k){return this.cmpn(k)<=0},I.prototype.lte=function(k){return this.cmp(k)<=0},I.prototype.eqn=function(k){return this.cmpn(k)===0},I.prototype.eq=function(k){return this.cmp(k)===0},I.red=function(k){return new le(k)},I.prototype.toRed=function(k){return _(!this.red,"Already a number in reduction context"),_(this.negative===0,"red works only with positives"),k.convertTo(this)._forceRed(k)},I.prototype.fromRed=function(){return _(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},I.prototype._forceRed=function(k){return this.red=k,this},I.prototype.forceRed=function(k){return _(!this.red,"Already a number in reduction context"),this._forceRed(k)},I.prototype.redAdd=function(k){return _(this.red,"redAdd works only with red numbers"),this.red.add(this,k)},I.prototype.redIAdd=function(k){return _(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,k)},I.prototype.redSub=function(k){return _(this.red,"redSub works only with red numbers"),this.red.sub(this,k)},I.prototype.redISub=function(k){return _(this.red,"redISub works only with red numbers"),this.red.isub(this,k)},I.prototype.redShl=function(k){return _(this.red,"redShl works only with red numbers"),this.red.shl(this,k)},I.prototype.redMul=function(k){return _(this.red,"redMul works only with red numbers"),this.red._verify2(this,k),this.red.mul(this,k)},I.prototype.redIMul=function(k){return _(this.red,"redMul works only with red numbers"),this.red._verify2(this,k),this.red.imul(this,k)},I.prototype.redSqr=function(){return _(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},I.prototype.redISqr=function(){return _(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},I.prototype.redSqrt=function(){return _(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},I.prototype.redInvm=function(){return _(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},I.prototype.redNeg=function(){return _(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},I.prototype.redPow=function(k){return _(this.red&&!k.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,k)};var ge={k256:null,p224:null,p192:null,p25519:null};function be(P,k){this.name=P,this.p=new I(k,16),this.n=this.p.bitLength(),this.k=new I(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}be.prototype._tmp=function(){var k=new I(null);return k.words=new Array(Math.ceil(this.n/13)),k},be.prototype.ireduce=function(k){var B=k,z;do this.split(B,this.tmp),B=this.imulK(B),B=B.iadd(this.tmp),z=B.bitLength();while(z>this.n);var ee=z<this.n?-1:B.ucmp(this.p);return ee===0?(B.words[0]=0,B.length=1):ee>0?B.isub(this.p):B.strip!==void 0?B.strip():B._strip(),B},be.prototype.split=function(k,B){k.iushrn(this.n,0,B)},be.prototype.imulK=function(k){return k.imul(this.k)};function ze(){be.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}x(ze,be),ze.prototype.split=function(k,B){for(var z=4194303,ee=Math.min(k.length,9),H=0;H<ee;H++)B.words[H]=k.words[H];if(B.length=ee,k.length<=9){k.words[0]=0,k.length=1;return}var q=k.words[9];for(B.words[B.length++]=q&z,H=10;H<k.length;H++){var J=k.words[H]|0;k.words[H-10]=(J&z)<<4|q>>>22,q=J}q>>>=22,k.words[H-10]=q,q===0&&k.length>10?k.length-=10:k.length-=9},ze.prototype.imulK=function(k){k.words[k.length]=0,k.words[k.length+1]=0,k.length+=2;for(var B=0,z=0;z<k.length;z++){var ee=k.words[z]|0;B+=ee*977,k.words[z]=B&67108863,B=ee*64+(B/67108864|0)}return k.words[k.length-1]===0&&(k.length--,k.words[k.length-1]===0&&k.length--),k};function de(){be.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}x(de,be);function Ce(){be.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}x(Ce,be);function ke(){be.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}x(ke,be),ke.prototype.imulK=function(k){for(var B=0,z=0;z<k.length;z++){var ee=(k.words[z]|0)*19+B,H=ee&67108863;ee>>>=26,k.words[z]=H,B=ee}return B!==0&&(k.words[k.length++]=B),k},I._prime=function(k){if(ge[k])return ge[k];var B;if(k==="k256")B=new ze;else if(k==="p224")B=new de;else if(k==="p192")B=new Ce;else if(k==="p25519")B=new ke;else throw new Error("Unknown prime "+k);return ge[k]=B,B};function le(P){if(typeof P=="string"){var k=I._prime(P);this.m=k.p,this.prime=k}else _(P.gtn(1),"modulus must be greater than 1"),this.m=P,this.prime=null}le.prototype._verify1=function(k){_(k.negative===0,"red works only with positives"),_(k.red,"red works only with red numbers")},le.prototype._verify2=function(k,B){_((k.negative|B.negative)===0,"red works only with positives"),_(k.red&&k.red===B.red,"red works only with red numbers")},le.prototype.imod=function(k){return this.prime?this.prime.ireduce(k)._forceRed(this):(T(k,k.umod(this.m)._forceRed(this)),k)},le.prototype.neg=function(k){return k.isZero()?k.clone():this.m.sub(k)._forceRed(this)},le.prototype.add=function(k,B){this._verify2(k,B);var z=k.add(B);return z.cmp(this.m)>=0&&z.isub(this.m),z._forceRed(this)},le.prototype.iadd=function(k,B){this._verify2(k,B);var z=k.iadd(B);return z.cmp(this.m)>=0&&z.isub(this.m),z},le.prototype.sub=function(k,B){this._verify2(k,B);var z=k.sub(B);return z.cmpn(0)<0&&z.iadd(this.m),z._forceRed(this)},le.prototype.isub=function(k,B){this._verify2(k,B);var z=k.isub(B);return z.cmpn(0)<0&&z.iadd(this.m),z},le.prototype.shl=function(k,B){return this._verify1(k),this.imod(k.ushln(B))},le.prototype.imul=function(k,B){return this._verify2(k,B),this.imod(k.imul(B))},le.prototype.mul=function(k,B){return this._verify2(k,B),this.imod(k.mul(B))},le.prototype.isqr=function(k){return this.imul(k,k.clone())},le.prototype.sqr=function(k){return this.mul(k,k)},le.prototype.sqrt=function(k){if(k.isZero())return k.clone();var B=this.m.andln(3);if(_(B%2===1),B===3){var z=this.m.add(new I(1)).iushrn(2);return this.pow(k,z)}for(var ee=this.m.subn(1),H=0;!ee.isZero()&&ee.andln(1)===0;)H++,ee.iushrn(1);_(!ee.isZero());var q=new I(1).toRed(this),J=q.redNeg(),U=this.m.subn(1).iushrn(1),Z=this.m.bitLength();for(Z=new I(2*Z*Z).toRed(this);this.pow(Z,U).cmp(J)!==0;)Z.redIAdd(J);for(var ve=this.pow(Z,ee),Ye=this.pow(k,ee.addn(1).iushrn(1)),rt=this.pow(k,ee),Ue=H;rt.cmp(q)!==0;){for(var Qe=rt,vt=0;Qe.cmp(q)!==0;vt++)Qe=Qe.redSqr();_(vt<Ue);var ri=this.pow(ve,new I(1).iushln(Ue-vt-1));Ye=Ye.redMul(ri),ve=ri.redSqr(),rt=rt.redMul(ve),Ue=vt}return Ye},le.prototype.invm=function(k){var B=k._invmp(this.m);return B.negative!==0?(B.negative=0,this.imod(B).redNeg()):this.imod(B)},le.prototype.pow=function(k,B){if(B.isZero())return new I(1).toRed(this);if(B.cmpn(1)===0)return k.clone();var z=4,ee=new Array(1<<z);ee[0]=new I(1).toRed(this),ee[1]=k;for(var H=2;H<ee.length;H++)ee[H]=this.mul(ee[H-1],k);var q=ee[0],J=0,U=0,Z=B.bitLength()%26;for(Z===0&&(Z=26),H=B.length-1;H>=0;H--){for(var ve=B.words[H],Ye=Z-1;Ye>=0;Ye--){var rt=ve>>Ye&1;if(q!==ee[0]&&(q=this.sqr(q)),rt===0&&J===0){U=0;continue}J<<=1,J|=rt,U++,!(U!==z&&(H!==0||Ye!==0))&&(q=this.mul(q,ee[J]),U=0,J=0)}Z=26}return q},le.prototype.convertTo=function(k){var B=k.umod(this.m);return B===k?B.clone():B},le.prototype.convertFrom=function(k){var B=k.clone();return B.red=null,B},I.mont=function(k){return new re(k)};function re(P){le.call(this,P),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new I(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}x(re,le),re.prototype.convertTo=function(k){return this.imod(k.ushln(this.shift))},re.prototype.convertFrom=function(k){var B=this.imod(k.mul(this.rinv));return B.red=null,B},re.prototype.imul=function(k,B){if(k.isZero()||B.isZero())return k.words[0]=0,k.length=1,k;var z=k.imul(B),ee=z.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),H=z.isub(ee).iushrn(this.shift),q=H;return H.cmp(this.m)>=0?q=H.isub(this.m):H.cmpn(0)<0&&(q=H.iadd(this.m)),q._forceRed(this)},re.prototype.mul=function(k,B){if(k.isZero()||B.isZero())return new I(0)._forceRed(this);var z=k.mul(B),ee=z.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),H=z.isub(ee).iushrn(this.shift),q=H;return H.cmp(this.m)>=0?q=H.isub(this.m):H.cmpn(0)<0&&(q=H.iadd(this.m)),q._forceRed(this)},re.prototype.invm=function(k){var B=this.imod(k._invmp(this.m).mul(this.r2));return B._forceRed(this)}})(u,commonjsGlobal$1)}(bn)),bn.exports}var asn1$1={},asn1={},api={},encoders={},safer_1,hasRequiredSafer;function requireSafer(){if(hasRequiredSafer)return safer_1;hasRequiredSafer=1;var u=buffer$2,f=u.Buffer,d={},_;for(_ in u)u.hasOwnProperty(_)&&(_==="SlowBuffer"||_==="Buffer"||(d[_]=u[_]));var x=d.Buffer={};for(_ in f)f.hasOwnProperty(_)&&(_==="allocUnsafe"||_==="allocUnsafeSlow"||(x[_]=f[_]));if(d.Buffer.prototype=f.prototype,(!x.from||x.from===Uint8Array.from)&&(x.from=function(I,E,M){if(typeof I=="number")throw new TypeError('The "value" argument must not be of type number. Received type '+typeof I);if(I&&typeof I.length>"u")throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof I);return f(I,E,M)}),x.alloc||(x.alloc=function(I,E,M){if(typeof I!="number")throw new TypeError('The "size" argument must be of type number. Received type '+typeof I);if(I<0||I>=2*(1<<30))throw new RangeError('The value "'+I+'" is invalid for option "size"');var S=f(I);return!E||E.length===0?S.fill(0):typeof M=="string"?S.fill(E,M):S.fill(E),S}),!d.kStringMaxLength)try{d.kStringMaxLength=browserExports.binding("buffer").kStringMaxLength}catch{}return d.constants||(d.constants={MAX_LENGTH:d.kMaxLength},d.kStringMaxLength&&(d.constants.MAX_STRING_LENGTH=d.kStringMaxLength)),safer_1=d,safer_1}var reporter={},hasRequiredReporter;function requireReporter(){if(hasRequiredReporter)return reporter;hasRequiredReporter=1;const u=inherits_browserExports;function f(_){this._reporterState={obj:null,path:[],options:_||{},errors:[]}}reporter.Reporter=f,f.prototype.isError=function(x){return x instanceof d},f.prototype.save=function(){const x=this._reporterState;return{obj:x.obj,pathLen:x.path.length}},f.prototype.restore=function(x){const I=this._reporterState;I.obj=x.obj,I.path=I.path.slice(0,x.pathLen)},f.prototype.enterKey=function(x){return this._reporterState.path.push(x)},f.prototype.exitKey=function(x){const I=this._reporterState;I.path=I.path.slice(0,x-1)},f.prototype.leaveKey=function(x,I,E){const M=this._reporterState;this.exitKey(x),M.obj!==null&&(M.obj[I]=E)},f.prototype.path=function(){return this._reporterState.path.join("/")},f.prototype.enterObject=function(){const x=this._reporterState,I=x.obj;return x.obj={},I},f.prototype.leaveObject=function(x){const I=this._reporterState,E=I.obj;return I.obj=x,E},f.prototype.error=function(x){let I;const E=this._reporterState,M=x instanceof d;if(M?I=x:I=new d(E.path.map(function(S){return"["+JSON.stringify(S)+"]"}).join(""),x.message||x,x.stack),!E.options.partial)throw I;return M||E.errors.push(I),I},f.prototype.wrapResult=function(x){const I=this._reporterState;return I.options.partial?{result:this.isError(x)?null:x,errors:I.errors}:x};function d(_,x){this.path=_,this.rethrow(x)}return u(d,Error),d.prototype.rethrow=function(x){if(this.message=x+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,d),!this.stack)try{throw new Error(this.message)}catch(I){this.stack=I.stack}return this},reporter}var buffer={},hasRequiredBuffer;function requireBuffer(){if(hasRequiredBuffer)return buffer;hasRequiredBuffer=1;const u=inherits_browserExports,f=requireReporter().Reporter,d=requireSafer().Buffer;function _(I,E){if(f.call(this,E),!d.isBuffer(I)){this.error("Input not Buffer");return}this.base=I,this.offset=0,this.length=I.length}u(_,f),buffer.DecoderBuffer=_,_.isDecoderBuffer=function(E){return E instanceof _?!0:typeof E=="object"&&d.isBuffer(E.base)&&E.constructor.name==="DecoderBuffer"&&typeof E.offset=="number"&&typeof E.length=="number"&&typeof E.save=="function"&&typeof E.restore=="function"&&typeof E.isEmpty=="function"&&typeof E.readUInt8=="function"&&typeof E.skip=="function"&&typeof E.raw=="function"},_.prototype.save=function(){return{offset:this.offset,reporter:f.prototype.save.call(this)}},_.prototype.restore=function(E){const M=new _(this.base);return M.offset=E.offset,M.length=this.offset,this.offset=E.offset,f.prototype.restore.call(this,E.reporter),M},_.prototype.isEmpty=function(){return this.offset===this.length},_.prototype.readUInt8=function(E){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(E||"DecoderBuffer overrun")},_.prototype.skip=function(E,M){if(!(this.offset+E<=this.length))return this.error(M||"DecoderBuffer overrun");const S=new _(this.base);return S._reporterState=this._reporterState,S.offset=this.offset,S.length=this.offset+E,this.offset+=E,S},_.prototype.raw=function(E){return this.base.slice(E?E.offset:this.offset,this.length)};function x(I,E){if(Array.isArray(I))this.length=0,this.value=I.map(function(M){return x.isEncoderBuffer(M)||(M=new x(M,E)),this.length+=M.length,M},this);else if(typeof I=="number"){if(!(0<=I&&I<=255))return E.error("non-byte EncoderBuffer value");this.value=I,this.length=1}else if(typeof I=="string")this.value=I,this.length=d.byteLength(I);else if(d.isBuffer(I))this.value=I,this.length=I.length;else return E.error("Unsupported type: "+typeof I)}return buffer.EncoderBuffer=x,x.isEncoderBuffer=function(E){return E instanceof x?!0:typeof E=="object"&&E.constructor.name==="EncoderBuffer"&&typeof E.length=="number"&&typeof E.join=="function"},x.prototype.join=function(E,M){return E||(E=d.alloc(this.length)),M||(M=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(S){S.join(E,M),M+=S.length}):(typeof this.value=="number"?E[M]=this.value:typeof this.value=="string"?E.write(this.value,M):d.isBuffer(this.value)&&this.value.copy(E,M),M+=this.length)),E},buffer}var node,hasRequiredNode;function requireNode(){if(hasRequiredNode)return node;hasRequiredNode=1;const u=requireReporter().Reporter,f=requireBuffer().EncoderBuffer,d=requireBuffer().DecoderBuffer,_=requireMinimalisticAssert(),x=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],I=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(x),E=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function M(A,T,D){const O={};this._baseState=O,O.name=D,O.enc=A,O.parent=T||null,O.children=null,O.tag=null,O.args=null,O.reverseArgs=null,O.choice=null,O.optional=!1,O.any=!1,O.obj=!1,O.use=null,O.useDecoder=null,O.key=null,O.default=null,O.explicit=null,O.implicit=null,O.contains=null,O.parent||(O.children=[],this._wrap())}node=M;const S=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];return M.prototype.clone=function(){const T=this._baseState,D={};S.forEach(function(j){D[j]=T[j]});const O=new this.constructor(D.parent);return O._baseState=D,O},M.prototype._wrap=function(){const T=this._baseState;I.forEach(function(D){this[D]=function(){const j=new this.constructor(this);return T.children.push(j),j[D].apply(j,arguments)}},this)},M.prototype._init=function(T){const D=this._baseState;_(D.parent===null),T.call(this),D.children=D.children.filter(function(O){return O._baseState.parent===this},this),_.equal(D.children.length,1,"Root node can have only one child")},M.prototype._useArgs=function(T){const D=this._baseState,O=T.filter(function(j){return j instanceof this.constructor},this);T=T.filter(function(j){return!(j instanceof this.constructor)},this),O.length!==0&&(_(D.children===null),D.children=O,O.forEach(function(j){j._baseState.parent=this},this)),T.length!==0&&(_(D.args===null),D.args=T,D.reverseArgs=T.map(function(j){if(typeof j!="object"||j.constructor!==Object)return j;const $={};return Object.keys(j).forEach(function(W){W==(W|0)&&(W|=0);const Q=j[W];$[Q]=W}),$}))},E.forEach(function(A){M.prototype[A]=function(){const D=this._baseState;throw new Error(A+" not implemented for encoding: "+D.enc)}}),x.forEach(function(A){M.prototype[A]=function(){const D=this._baseState,O=Array.prototype.slice.call(arguments);return _(D.tag===null),D.tag=A,this._useArgs(O),this}}),M.prototype.use=function(T){_(T);const D=this._baseState;return _(D.use===null),D.use=T,this},M.prototype.optional=function(){const T=this._baseState;return T.optional=!0,this},M.prototype.def=function(T){const D=this._baseState;return _(D.default===null),D.default=T,D.optional=!0,this},M.prototype.explicit=function(T){const D=this._baseState;return _(D.explicit===null&&D.implicit===null),D.explicit=T,this},M.prototype.implicit=function(T){const D=this._baseState;return _(D.explicit===null&&D.implicit===null),D.implicit=T,this},M.prototype.obj=function(){const T=this._baseState,D=Array.prototype.slice.call(arguments);return T.obj=!0,D.length!==0&&this._useArgs(D),this},M.prototype.key=function(T){const D=this._baseState;return _(D.key===null),D.key=T,this},M.prototype.any=function(){const T=this._baseState;return T.any=!0,this},M.prototype.choice=function(T){const D=this._baseState;return _(D.choice===null),D.choice=T,this._useArgs(Object.keys(T).map(function(O){return T[O]})),this},M.prototype.contains=function(T){const D=this._baseState;return _(D.use===null),D.contains=T,this},M.prototype._decode=function(T,D){const O=this._baseState;if(O.parent===null)return T.wrapResult(O.children[0]._decode(T,D));let j=O.default,$=!0,W=null;if(O.key!==null&&(W=T.enterKey(O.key)),O.optional){let X=null;if(O.explicit!==null?X=O.explicit:O.implicit!==null?X=O.implicit:O.tag!==null&&(X=O.tag),X===null&&!O.any){const Y=T.save();try{O.choice===null?this._decodeGeneric(O.tag,T,D):this._decodeChoice(T,D),$=!0}catch{$=!1}T.restore(Y)}else if($=this._peekTag(T,X,O.any),T.isError($))return $}let Q;if(O.obj&&$&&(Q=T.enterObject()),$){if(O.explicit!==null){const Y=this._decodeTag(T,O.explicit);if(T.isError(Y))return Y;T=Y}const X=T.offset;if(O.use===null&&O.choice===null){let Y;O.any&&(Y=T.save());const ie=this._decodeTag(T,O.implicit!==null?O.implicit:O.tag,O.any);if(T.isError(ie))return ie;O.any?j=T.raw(Y):T=ie}if(D&&D.track&&O.tag!==null&&D.track(T.path(),X,T.length,"tagged"),D&&D.track&&O.tag!==null&&D.track(T.path(),T.offset,T.length,"content"),O.any||(O.choice===null?j=this._decodeGeneric(O.tag,T,D):j=this._decodeChoice(T,D)),T.isError(j))return j;if(!O.any&&O.choice===null&&O.children!==null&&O.children.forEach(function(ie){ie._decode(T,D)}),O.contains&&(O.tag==="octstr"||O.tag==="bitstr")){const Y=new d(j);j=this._getUse(O.contains,T._reporterState.obj)._decode(Y,D)}}return O.obj&&$&&(j=T.leaveObject(Q)),O.key!==null&&(j!==null||$===!0)?T.leaveKey(W,O.key,j):W!==null&&T.exitKey(W),j},M.prototype._decodeGeneric=function(T,D,O){const j=this._baseState;return T==="seq"||T==="set"?null:T==="seqof"||T==="setof"?this._decodeList(D,T,j.args[0],O):/str$/.test(T)?this._decodeStr(D,T,O):T==="objid"&&j.args?this._decodeObjid(D,j.args[0],j.args[1],O):T==="objid"?this._decodeObjid(D,null,null,O):T==="gentime"||T==="utctime"?this._decodeTime(D,T,O):T==="null_"?this._decodeNull(D,O):T==="bool"?this._decodeBool(D,O):T==="objDesc"?this._decodeStr(D,T,O):T==="int"||T==="enum"?this._decodeInt(D,j.args&&j.args[0],O):j.use!==null?this._getUse(j.use,D._reporterState.obj)._decode(D,O):D.error("unknown tag: "+T)},M.prototype._getUse=function(T,D){const O=this._baseState;return O.useDecoder=this._use(T,D),_(O.useDecoder._baseState.parent===null),O.useDecoder=O.useDecoder._baseState.children[0],O.implicit!==O.useDecoder._baseState.implicit&&(O.useDecoder=O.useDecoder.clone(),O.useDecoder._baseState.implicit=O.implicit),O.useDecoder},M.prototype._decodeChoice=function(T,D){const O=this._baseState;let j=null,$=!1;return Object.keys(O.choice).some(function(W){const Q=T.save(),X=O.choice[W];try{const Y=X._decode(T,D);if(T.isError(Y))return!1;j={type:W,value:Y},$=!0}catch{return T.restore(Q),!1}return!0},this),$?j:T.error("Choice not matched")},M.prototype._createEncoderBuffer=function(T){return new f(T,this.reporter)},M.prototype._encode=function(T,D,O){const j=this._baseState;if(j.default!==null&&j.default===T)return;const $=this._encodeValue(T,D,O);if($!==void 0&&!this._skipDefault($,D,O))return $},M.prototype._encodeValue=function(T,D,O){const j=this._baseState;if(j.parent===null)return j.children[0]._encode(T,D||new u);let $=null;if(this.reporter=D,j.optional&&T===void 0)if(j.default!==null)T=j.default;else return;let W=null,Q=!1;if(j.any)$=this._createEncoderBuffer(T);else if(j.choice)$=this._encodeChoice(T,D);else if(j.contains)W=this._getUse(j.contains,O)._encode(T,D),Q=!0;else if(j.children)W=j.children.map(function(X){if(X._baseState.tag==="null_")return X._encode(null,D,T);if(X._baseState.key===null)return D.error("Child should have a key");const Y=D.enterKey(X._baseState.key);if(typeof T!="object")return D.error("Child expected, but input is not object");const ie=X._encode(T[X._baseState.key],D,T);return D.leaveKey(Y),ie},this).filter(function(X){return X}),W=this._createEncoderBuffer(W);else if(j.tag==="seqof"||j.tag==="setof"){if(!(j.args&&j.args.length===1))return D.error("Too many args for : "+j.tag);if(!Array.isArray(T))return D.error("seqof/setof, but data is not Array");const X=this.clone();X._baseState.implicit=null,W=this._createEncoderBuffer(T.map(function(Y){const ie=this._baseState;return this._getUse(ie.args[0],T)._encode(Y,D)},X))}else j.use!==null?$=this._getUse(j.use,O)._encode(T,D):(W=this._encodePrimitive(j.tag,T),Q=!0);if(!j.any&&j.choice===null){const X=j.implicit!==null?j.implicit:j.tag,Y=j.implicit===null?"universal":"context";X===null?j.use===null&&D.error("Tag could be omitted only for .use()"):j.use===null&&($=this._encodeComposite(X,Q,Y,W))}return j.explicit!==null&&($=this._encodeComposite(j.explicit,!1,"context",$)),$},M.prototype._encodeChoice=function(T,D){const O=this._baseState,j=O.choice[T.type];return j||_(!1,T.type+" not found in "+JSON.stringify(Object.keys(O.choice))),j._encode(T.value,D)},M.prototype._encodePrimitive=function(T,D){const O=this._baseState;if(/str$/.test(T))return this._encodeStr(D,T);if(T==="objid"&&O.args)return this._encodeObjid(D,O.reverseArgs[0],O.args[1]);if(T==="objid")return this._encodeObjid(D,null,null);if(T==="gentime"||T==="utctime")return this._encodeTime(D,T);if(T==="null_")return this._encodeNull();if(T==="int"||T==="enum")return this._encodeInt(D,O.args&&O.reverseArgs[0]);if(T==="bool")return this._encodeBool(D);if(T==="objDesc")return this._encodeStr(D,T);throw new Error("Unsupported tag: "+T)},M.prototype._isNumstr=function(T){return/^[0-9 ]*$/.test(T)},M.prototype._isPrintstr=function(T){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(T)},node}var der={},hasRequiredDer$2;function requireDer$2(){return hasRequiredDer$2||(hasRequiredDer$2=1,function(u){function f(d){const _={};return Object.keys(d).forEach(function(x){(x|0)==x&&(x=x|0);const I=d[x];_[I]=x}),_}u.tagClass={0:"universal",1:"application",2:"context",3:"private"},u.tagClassByName=f(u.tagClass),u.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},u.tagByName=f(u.tag)}(der)),der}var der_1$1,hasRequiredDer$1;function requireDer$1(){if(hasRequiredDer$1)return der_1$1;hasRequiredDer$1=1;const u=inherits_browserExports,f=requireSafer().Buffer,d=requireNode(),_=requireDer$2();function x(S){this.enc="der",this.name=S.name,this.entity=S,this.tree=new I,this.tree._init(S.body)}der_1$1=x,x.prototype.encode=function(A,T){return this.tree._encode(A,T).join()};function I(S){d.call(this,"der",S)}u(I,d),I.prototype._encodeComposite=function(A,T,D,O){const j=M(A,T,D,this.reporter);if(O.length<128){const Q=f.alloc(2);return Q[0]=j,Q[1]=O.length,this._createEncoderBuffer([Q,O])}let $=1;for(let Q=O.length;Q>=256;Q>>=8)$++;const W=f.alloc(2+$);W[0]=j,W[1]=128|$;for(let Q=1+$,X=O.length;X>0;Q--,X>>=8)W[Q]=X&255;return this._createEncoderBuffer([W,O])},I.prototype._encodeStr=function(A,T){if(T==="bitstr")return this._createEncoderBuffer([A.unused|0,A.data]);if(T==="bmpstr"){const D=f.alloc(A.length*2);for(let O=0;O<A.length;O++)D.writeUInt16BE(A.charCodeAt(O),O*2);return this._createEncoderBuffer(D)}else return T==="numstr"?this._isNumstr(A)?this._createEncoderBuffer(A):this.reporter.error("Encoding of string type: numstr supports only digits and space"):T==="printstr"?this._isPrintstr(A)?this._createEncoderBuffer(A):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(T)?this._createEncoderBuffer(A):T==="objDesc"?this._createEncoderBuffer(A):this.reporter.error("Encoding of string type: "+T+" unsupported")},I.prototype._encodeObjid=function(A,T,D){if(typeof A=="string"){if(!T)return this.reporter.error("string objid given, but no values map found");if(!T.hasOwnProperty(A))return this.reporter.error("objid not found in values map");A=T[A].split(/[\s.]+/g);for(let W=0;W<A.length;W++)A[W]|=0}else if(Array.isArray(A)){A=A.slice();for(let W=0;W<A.length;W++)A[W]|=0}if(!Array.isArray(A))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(A));if(!D){if(A[1]>=40)return this.reporter.error("Second objid identifier OOB");A.splice(0,2,A[0]*40+A[1])}let O=0;for(let W=0;W<A.length;W++){let Q=A[W];for(O++;Q>=128;Q>>=7)O++}const j=f.alloc(O);let $=j.length-1;for(let W=A.length-1;W>=0;W--){let Q=A[W];for(j[$--]=Q&127;(Q>>=7)>0;)j[$--]=128|Q&127}return this._createEncoderBuffer(j)};function E(S){return S<10?"0"+S:S}I.prototype._encodeTime=function(A,T){let D;const O=new Date(A);return T==="gentime"?D=[E(O.getUTCFullYear()),E(O.getUTCMonth()+1),E(O.getUTCDate()),E(O.getUTCHours()),E(O.getUTCMinutes()),E(O.getUTCSeconds()),"Z"].join(""):T==="utctime"?D=[E(O.getUTCFullYear()%100),E(O.getUTCMonth()+1),E(O.getUTCDate()),E(O.getUTCHours()),E(O.getUTCMinutes()),E(O.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+T+" time is not supported yet"),this._encodeStr(D,"octstr")},I.prototype._encodeNull=function(){return this._createEncoderBuffer("")},I.prototype._encodeInt=function(A,T){if(typeof A=="string"){if(!T)return this.reporter.error("String int or enum given, but no values map");if(!T.hasOwnProperty(A))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(A));A=T[A]}if(typeof A!="number"&&!f.isBuffer(A)){const j=A.toArray();!A.sign&&j[0]&128&&j.unshift(0),A=f.from(j)}if(f.isBuffer(A)){let j=A.length;A.length===0&&j++;const $=f.alloc(j);return A.copy($),A.length===0&&($[0]=0),this._createEncoderBuffer($)}if(A<128)return this._createEncoderBuffer(A);if(A<256)return this._createEncoderBuffer([0,A]);let D=1;for(let j=A;j>=256;j>>=8)D++;const O=new Array(D);for(let j=O.length-1;j>=0;j--)O[j]=A&255,A>>=8;return O[0]&128&&O.unshift(0),this._createEncoderBuffer(f.from(O))},I.prototype._encodeBool=function(A){return this._createEncoderBuffer(A?255:0)},I.prototype._use=function(A,T){return typeof A=="function"&&(A=A(T)),A._getEncoder("der").tree},I.prototype._skipDefault=function(A,T,D){const O=this._baseState;let j;if(O.default===null)return!1;const $=A.join();if(O.defaultBuffer===void 0&&(O.defaultBuffer=this._encodeValue(O.default,T,D).join()),$.length!==O.defaultBuffer.length)return!1;for(j=0;j<$.length;j++)if($[j]!==O.defaultBuffer[j])return!1;return!0};function M(S,A,T,D){let O;if(S==="seqof"?S="seq":S==="setof"&&(S="set"),_.tagByName.hasOwnProperty(S))O=_.tagByName[S];else if(typeof S=="number"&&(S|0)===S)O=S;else return D.error("Unknown tag: "+S);return O>=31?D.error("Multi-octet tag encoding unsupported"):(A||(O|=32),O|=_.tagClassByName[T||"universal"]<<6,O)}return der_1$1}var pem$1,hasRequiredPem$1;function requirePem$1(){if(hasRequiredPem$1)return pem$1;hasRequiredPem$1=1;const u=inherits_browserExports,f=requireDer$1();function d(_){f.call(this,_),this.enc="pem"}return u(d,f),pem$1=d,d.prototype.encode=function(x,I){const M=f.prototype.encode.call(this,x).toString("base64"),S=["-----BEGIN "+I.label+"-----"];for(let A=0;A<M.length;A+=64)S.push(M.slice(A,A+64));return S.push("-----END "+I.label+"-----"),S.join(`
`)},pem$1}var hasRequiredEncoders;function requireEncoders(){return hasRequiredEncoders||(hasRequiredEncoders=1,function(u){const f=u;f.der=requireDer$1(),f.pem=requirePem$1()}(encoders)),encoders}var decoders={},der_1,hasRequiredDer;function requireDer(){if(hasRequiredDer)return der_1;hasRequiredDer=1;const u=inherits_browserExports,f=requireBn$2(),d=requireBuffer().DecoderBuffer,_=requireNode(),x=requireDer$2();function I(A){this.enc="der",this.name=A.name,this.entity=A,this.tree=new E,this.tree._init(A.body)}der_1=I,I.prototype.decode=function(T,D){return d.isDecoderBuffer(T)||(T=new d(T,D)),this.tree._decode(T,D)};function E(A){_.call(this,"der",A)}u(E,_),E.prototype._peekTag=function(T,D,O){if(T.isEmpty())return!1;const j=T.save(),$=M(T,'Failed to peek tag: "'+D+'"');return T.isError($)?$:(T.restore(j),$.tag===D||$.tagStr===D||$.tagStr+"of"===D||O)},E.prototype._decodeTag=function(T,D,O){const j=M(T,'Failed to decode tag of "'+D+'"');if(T.isError(j))return j;let $=S(T,j.primitive,'Failed to get length of "'+D+'"');if(T.isError($))return $;if(!O&&j.tag!==D&&j.tagStr!==D&&j.tagStr+"of"!==D)return T.error('Failed to match tag: "'+D+'"');if(j.primitive||$!==null)return T.skip($,'Failed to match body of: "'+D+'"');const W=T.save(),Q=this._skipUntilEnd(T,'Failed to skip indefinite length body: "'+this.tag+'"');return T.isError(Q)?Q:($=T.offset-W.offset,T.restore(W),T.skip($,'Failed to match body of: "'+D+'"'))},E.prototype._skipUntilEnd=function(T,D){for(;;){const O=M(T,D);if(T.isError(O))return O;const j=S(T,O.primitive,D);if(T.isError(j))return j;let $;if(O.primitive||j!==null?$=T.skip(j):$=this._skipUntilEnd(T,D),T.isError($))return $;if(O.tagStr==="end")break}},E.prototype._decodeList=function(T,D,O,j){const $=[];for(;!T.isEmpty();){const W=this._peekTag(T,"end");if(T.isError(W))return W;const Q=O.decode(T,"der",j);if(T.isError(Q)&&W)break;$.push(Q)}return $},E.prototype._decodeStr=function(T,D){if(D==="bitstr"){const O=T.readUInt8();return T.isError(O)?O:{unused:O,data:T.raw()}}else if(D==="bmpstr"){const O=T.raw();if(O.length%2===1)return T.error("Decoding of string type: bmpstr length mismatch");let j="";for(let $=0;$<O.length/2;$++)j+=String.fromCharCode(O.readUInt16BE($*2));return j}else if(D==="numstr"){const O=T.raw().toString("ascii");return this._isNumstr(O)?O:T.error("Decoding of string type: numstr unsupported characters")}else{if(D==="octstr")return T.raw();if(D==="objDesc")return T.raw();if(D==="printstr"){const O=T.raw().toString("ascii");return this._isPrintstr(O)?O:T.error("Decoding of string type: printstr unsupported characters")}else return/str$/.test(D)?T.raw().toString():T.error("Decoding of string type: "+D+" unsupported")}},E.prototype._decodeObjid=function(T,D,O){let j;const $=[];let W=0,Q=0;for(;!T.isEmpty();)Q=T.readUInt8(),W<<=7,W|=Q&127,Q&128||($.push(W),W=0);Q&128&&$.push(W);const X=$[0]/40|0,Y=$[0]%40;if(O?j=$:j=[X,Y].concat($.slice(1)),D){let ie=D[j.join(" ")];ie===void 0&&(ie=D[j.join(".")]),ie!==void 0&&(j=ie)}return j},E.prototype._decodeTime=function(T,D){const O=T.raw().toString();let j,$,W,Q,X,Y;if(D==="gentime")j=O.slice(0,4)|0,$=O.slice(4,6)|0,W=O.slice(6,8)|0,Q=O.slice(8,10)|0,X=O.slice(10,12)|0,Y=O.slice(12,14)|0;else if(D==="utctime")j=O.slice(0,2)|0,$=O.slice(2,4)|0,W=O.slice(4,6)|0,Q=O.slice(6,8)|0,X=O.slice(8,10)|0,Y=O.slice(10,12)|0,j<70?j=2e3+j:j=1900+j;else return T.error("Decoding "+D+" time is not supported yet");return Date.UTC(j,$-1,W,Q,X,Y,0)},E.prototype._decodeNull=function(){return null},E.prototype._decodeBool=function(T){const D=T.readUInt8();return T.isError(D)?D:D!==0},E.prototype._decodeInt=function(T,D){const O=T.raw();let j=new f(O);return D&&(j=D[j.toString(10)]||j),j},E.prototype._use=function(T,D){return typeof T=="function"&&(T=T(D)),T._getDecoder("der").tree};function M(A,T){let D=A.readUInt8(T);if(A.isError(D))return D;const O=x.tagClass[D>>6],j=(D&32)===0;if((D&31)===31){let W=D;for(D=0;(W&128)===128;){if(W=A.readUInt8(T),A.isError(W))return W;D<<=7,D|=W&127}}else D&=31;const $=x.tag[D];return{cls:O,primitive:j,tag:D,tagStr:$}}function S(A,T,D){let O=A.readUInt8(D);if(A.isError(O))return O;if(!T&&O===128)return null;if(!(O&128))return O;const j=O&127;if(j>4)return A.error("length octect is too long");O=0;for(let $=0;$<j;$++){O<<=8;const W=A.readUInt8(D);if(A.isError(W))return W;O|=W}return O}return der_1}var pem,hasRequiredPem;function requirePem(){if(hasRequiredPem)return pem;hasRequiredPem=1;const u=inherits_browserExports,f=requireSafer().Buffer,d=requireDer();function _(x){d.call(this,x),this.enc="pem"}return u(_,d),pem=_,_.prototype.decode=function(I,E){const M=I.toString().split(/[\r\n]+/g),S=E.label.toUpperCase(),A=/^-----(BEGIN|END) ([^-]+)-----$/;let T=-1,D=-1;for(let $=0;$<M.length;$++){const W=M[$].match(A);if(W!==null&&W[2]===S)if(T===-1){if(W[1]!=="BEGIN")break;T=$}else{if(W[1]!=="END")break;D=$;break}}if(T===-1||D===-1)throw new Error("PEM section not found for: "+S);const O=M.slice(T+1,D).join("");O.replace(/[^a-z0-9+/=]+/gi,"");const j=f.from(O,"base64");return d.prototype.decode.call(this,j,E)},pem}var hasRequiredDecoders;function requireDecoders(){return hasRequiredDecoders||(hasRequiredDecoders=1,function(u){const f=u;f.der=requireDer(),f.pem=requirePem()}(decoders)),decoders}var hasRequiredApi;function requireApi(){return hasRequiredApi||(hasRequiredApi=1,function(u){const f=requireEncoders(),d=requireDecoders(),_=inherits_browserExports,x=u;x.define=function(M,S){return new I(M,S)};function I(E,M){this.name=E,this.body=M,this.decoders={},this.encoders={}}I.prototype._createNamed=function(M){const S=this.name;function A(T){this._initNamed(T,S)}return _(A,M),A.prototype._initNamed=function(D,O){M.call(this,D,O)},new A(this)},I.prototype._getDecoder=function(M){return M=M||"der",this.decoders.hasOwnProperty(M)||(this.decoders[M]=this._createNamed(d[M])),this.decoders[M]},I.prototype.decode=function(M,S,A){return this._getDecoder(S).decode(M,A)},I.prototype._getEncoder=function(M){return M=M||"der",this.encoders.hasOwnProperty(M)||(this.encoders[M]=this._createNamed(f[M])),this.encoders[M]},I.prototype.encode=function(M,S,A){return this._getEncoder(S).encode(M,A)}}(api)),api}var base={},hasRequiredBase;function requireBase(){return hasRequiredBase||(hasRequiredBase=1,function(u){const f=u;f.Reporter=requireReporter().Reporter,f.DecoderBuffer=requireBuffer().DecoderBuffer,f.EncoderBuffer=requireBuffer().EncoderBuffer,f.Node=requireNode()}(base)),base}var constants={},hasRequiredConstants;function requireConstants(){return hasRequiredConstants||(hasRequiredConstants=1,function(u){const f=u;f._reverse=function(_){const x={};return Object.keys(_).forEach(function(I){(I|0)==I&&(I=I|0);const E=_[I];x[E]=I}),x},f.der=requireDer$2()}(constants)),constants}var hasRequiredAsn1$1;function requireAsn1$1(){return hasRequiredAsn1$1||(hasRequiredAsn1$1=1,function(u){const f=u;f.bignum=requireBn$2(),f.define=requireApi().define,f.base=requireBase(),f.constants=requireConstants(),f.decoders=requireDecoders(),f.encoders=requireEncoders()}(asn1)),asn1}var certificate,hasRequiredCertificate;function requireCertificate(){if(hasRequiredCertificate)return certificate;hasRequiredCertificate=1;var u=requireAsn1$1(),f=u.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),d=u.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),_=u.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),x=u.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(_),this.key("subjectPublicKey").bitstr())}),I=u.define("RelativeDistinguishedName",function(){this.setof(d)}),E=u.define("RDNSequence",function(){this.seqof(I)}),M=u.define("Name",function(){this.choice({rdnSequence:this.use(E)})}),S=u.define("Validity",function(){this.seq().obj(this.key("notBefore").use(f),this.key("notAfter").use(f))}),A=u.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),T=u.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(_),this.key("issuer").use(M),this.key("validity").use(S),this.key("subject").use(M),this.key("subjectPublicKeyInfo").use(x),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(A).optional())}),D=u.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(T),this.key("signatureAlgorithm").use(_),this.key("signatureValue").bitstr())});return certificate=D,certificate}var hasRequiredAsn1;function requireAsn1(){if(hasRequiredAsn1)return asn1$1;hasRequiredAsn1=1;var u=requireAsn1$1();asn1$1.certificate=requireCertificate();var f=u.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});asn1$1.RSAPrivateKey=f;var d=u.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});asn1$1.RSAPublicKey=d;var _=u.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(x),this.key("subjectPublicKey").bitstr())});asn1$1.PublicKey=_;var x=u.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),I=u.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(x),this.key("subjectPrivateKey").octstr())});asn1$1.PrivateKey=I;var E=u.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});asn1$1.EncryptedPrivateKey=E;var M=u.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});asn1$1.DSAPrivateKey=M,asn1$1.DSAparam=u.define("DSAparam",function(){this.int()});var S=u.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(A),this.key("publicKey").optional().explicit(1).bitstr())});asn1$1.ECPrivateKey=S;var A=u.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});return asn1$1.signature=u.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())}),asn1$1}const require$$1={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"};var fixProc,hasRequiredFixProc;function requireFixProc(){if(hasRequiredFixProc)return fixProc;hasRequiredFixProc=1;var u=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,f=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,d=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,_=requireEvp_bytestokey(),x=requireBrowser$6(),I=requireSafeBuffer().Buffer;return fixProc=function(E,M){var S=E.toString(),A=S.match(u),T;if(A){var O="aes"+A[1],j=I.from(A[2],"hex"),$=I.from(A[3].replace(/[\r\n]/g,""),"base64"),W=_(M,j.slice(0,8),parseInt(A[1],10)).key,Q=[],X=x.createDecipheriv(O,W,j);Q.push(X.update($)),Q.push(X.final()),T=I.concat(Q)}else{var D=S.match(d);T=I.from(D[2].replace(/[\r\n]/g,""),"base64")}var Y=S.match(f)[1];return{tag:Y,data:T}},fixProc}var parseAsn1,hasRequiredParseAsn1;function requireParseAsn1(){if(hasRequiredParseAsn1)return parseAsn1;hasRequiredParseAsn1=1;var u=requireAsn1(),f=require$$1,d=requireFixProc(),_=requireBrowser$6(),x=requireBrowser$7(),I=requireSafeBuffer().Buffer;parseAsn1=E;function E(S){var A;typeof S=="object"&&!I.isBuffer(S)&&(A=S.passphrase,S=S.key),typeof S=="string"&&(S=I.from(S));var T=d(S,A),D=T.tag,O=T.data,j,$;switch(D){case"CERTIFICATE":$=u.certificate.decode(O,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch($||($=u.PublicKey.decode(O,"der")),j=$.algorithm.algorithm.join("."),j){case"1.2.840.113549.1.1.1":return u.RSAPublicKey.decode($.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return $.subjectPrivateKey=$.subjectPublicKey,{type:"ec",data:$};case"1.2.840.10040.4.1":return $.algorithm.params.pub_key=u.DSAparam.decode($.subjectPublicKey.data,"der"),{type:"dsa",data:$.algorithm.params};default:throw new Error("unknown key id "+j)}case"ENCRYPTED PRIVATE KEY":O=u.EncryptedPrivateKey.decode(O,"der"),O=M(O,A);case"PRIVATE KEY":switch($=u.PrivateKey.decode(O,"der"),j=$.algorithm.algorithm.join("."),j){case"1.2.840.113549.1.1.1":return u.RSAPrivateKey.decode($.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:$.algorithm.curve,privateKey:u.ECPrivateKey.decode($.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return $.algorithm.params.priv_key=u.DSAparam.decode($.subjectPrivateKey,"der"),{type:"dsa",params:$.algorithm.params};default:throw new Error("unknown key id "+j)}case"RSA PUBLIC KEY":return u.RSAPublicKey.decode(O,"der");case"RSA PRIVATE KEY":return u.RSAPrivateKey.decode(O,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:u.DSAPrivateKey.decode(O,"der")};case"EC PRIVATE KEY":return O=u.ECPrivateKey.decode(O,"der"),{curve:O.parameters.value,privateKey:O.privateKey};default:throw new Error("unknown key type "+D)}}E.signature=u.signature;function M(S,A){var T=S.algorithm.decrypt.kde.kdeparams.salt,D=parseInt(S.algorithm.decrypt.kde.kdeparams.iters.toString(),10),O=f[S.algorithm.decrypt.cipher.algo.join(".")],j=S.algorithm.decrypt.cipher.iv,$=S.subjectPrivateKey,W=parseInt(O.split("-")[1],10)/8,Q=x.pbkdf2Sync(A,T,D,W,"sha1"),X=_.createDecipheriv(O,Q,j),Y=[];return Y.push(X.update($)),Y.push(X.final()),I.concat(Y)}return parseAsn1}const require$$4={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"};var hasRequiredSign;function requireSign(){if(hasRequiredSign)return sign.exports;hasRequiredSign=1;var u=requireSafeBuffer().Buffer,f=requireBrowser$8(),d=requireBrowserifyRsa(),_=requireElliptic().ec,x=requireBn(),I=requireParseAsn1(),E=require$$4,M=1;function S(X,Y,ie,oe,ge){var be=I(Y);if(be.curve){if(oe!=="ecdsa"&&oe!=="ecdsa/rsa")throw new Error("wrong private key type");return A(X,be)}else if(be.type==="dsa"){if(oe!=="dsa")throw new Error("wrong private key type");return T(X,be,ie)}if(oe!=="rsa"&&oe!=="ecdsa/rsa")throw new Error("wrong private key type");if(Y.padding!==void 0&&Y.padding!==M)throw new Error("illegal or unsupported padding mode");X=u.concat([ge,X]);for(var ze=be.modulus.byteLength(),de=[0,1];X.length+de.length+1<ze;)de.push(255);de.push(0);for(var Ce=-1;++Ce<X.length;)de.push(X[Ce]);var ke=d(de,be);return ke}function A(X,Y){var ie=E[Y.curve.join(".")];if(!ie)throw new Error("unknown curve "+Y.curve.join("."));var oe=new _(ie),ge=oe.keyFromPrivate(Y.privateKey),be=ge.sign(X);return u.from(be.toDER())}function T(X,Y,ie){for(var oe=Y.params.priv_key,ge=Y.params.p,be=Y.params.q,ze=Y.params.g,de=new x(0),Ce,ke=j(X,be).mod(be),le=!1,re=O(oe,be,X,ie);le===!1;)Ce=W(be,re,ie),de=Q(ze,Ce,ge,be),le=Ce.invm(be).imul(ke.add(oe.mul(de))).mod(be),le.cmpn(0)===0&&(le=!1,de=new x(0));return D(de,le)}function D(X,Y){X=X.toArray(),Y=Y.toArray(),X[0]&128&&(X=[0].concat(X)),Y[0]&128&&(Y=[0].concat(Y));var ie=X.length+Y.length+4,oe=[48,ie,2,X.length];return oe=oe.concat(X,[2,Y.length],Y),u.from(oe)}function O(X,Y,ie,oe){if(X=u.from(X.toArray()),X.length<Y.byteLength()){var ge=u.alloc(Y.byteLength()-X.length);X=u.concat([ge,X])}var be=ie.length,ze=$(ie,Y),de=u.alloc(be);de.fill(1);var Ce=u.alloc(be);return Ce=f(oe,Ce).update(de).update(u.from([0])).update(X).update(ze).digest(),de=f(oe,Ce).update(de).digest(),Ce=f(oe,Ce).update(de).update(u.from([1])).update(X).update(ze).digest(),de=f(oe,Ce).update(de).digest(),{k:Ce,v:de}}function j(X,Y){var ie=new x(X),oe=(X.length<<3)-Y.bitLength();return oe>0&&ie.ishrn(oe),ie}function $(X,Y){X=j(X,Y),X=X.mod(Y);var ie=u.from(X.toArray());if(ie.length<Y.byteLength()){var oe=u.alloc(Y.byteLength()-ie.length);ie=u.concat([oe,ie])}return ie}function W(X,Y,ie){var oe,ge;do{for(oe=u.alloc(0);oe.length*8<X.bitLength();)Y.v=f(ie,Y.k).update(Y.v).digest(),oe=u.concat([oe,Y.v]);ge=j(oe,X),Y.k=f(ie,Y.k).update(Y.v).update(u.from([0])).digest(),Y.v=f(ie,Y.k).update(Y.v).digest()}while(ge.cmp(X)!==-1);return ge}function Q(X,Y,ie,oe){return X.toRed(x.mont(ie)).redPow(Y).fromRed().mod(oe)}return sign.exports=S,sign.exports.getKey=O,sign.exports.makeKey=W,sign.exports}var verify_1,hasRequiredVerify;function requireVerify(){if(hasRequiredVerify)return verify_1;hasRequiredVerify=1;var u=requireSafeBuffer().Buffer,f=requireBn(),d=requireElliptic().ec,_=requireParseAsn1(),x=require$$4;function I(A,T,D,O,j){var $=_(D);if($.type==="ec"){if(O!=="ecdsa"&&O!=="ecdsa/rsa")throw new Error("wrong public key type");return E(A,T,$)}else if($.type==="dsa"){if(O!=="dsa")throw new Error("wrong public key type");return M(A,T,$)}if(O!=="rsa"&&O!=="ecdsa/rsa")throw new Error("wrong public key type");T=u.concat([j,T]);for(var W=$.modulus.byteLength(),Q=[1],X=0;T.length+Q.length+2<W;)Q.push(255),X+=1;Q.push(0);for(var Y=-1;++Y<T.length;)Q.push(T[Y]);Q=u.from(Q);var ie=f.mont($.modulus);A=new f(A).toRed(ie),A=A.redPow(new f($.publicExponent)),A=u.from(A.fromRed().toArray());var oe=X<8?1:0;for(W=Math.min(A.length,Q.length),A.length!==Q.length&&(oe=1),Y=-1;++Y<W;)oe|=A[Y]^Q[Y];return oe===0}function E(A,T,D){var O=x[D.data.algorithm.curve.join(".")];if(!O)throw new Error("unknown curve "+D.data.algorithm.curve.join("."));var j=new d(O),$=D.data.subjectPrivateKey.data;return j.verify(T,A,$)}function M(A,T,D){var O=D.data.p,j=D.data.q,$=D.data.g,W=D.data.pub_key,Q=_.signature.decode(A,"der"),X=Q.s,Y=Q.r;S(X,j),S(Y,j);var ie=f.mont(O),oe=X.invm(j),ge=$.toRed(ie).redPow(new f(T).mul(oe).mod(j)).fromRed().mul(W.toRed(ie).redPow(Y.mul(oe).mod(j)).fromRed()).mod(O).mod(j);return ge.cmp(Y)===0}function S(A,T){if(A.cmpn(0)<=0)throw new Error("invalid sig");if(A.cmp(T)>=0)throw new Error("invalid sig")}return verify_1=I,verify_1}var browser$4,hasRequiredBrowser$3;function requireBrowser$3(){if(hasRequiredBrowser$3)return browser$4;hasRequiredBrowser$3=1;var u=requireSafeBuffer().Buffer,f=requireBrowser$9(),d=readableBrowserExports,_=inherits_browserExports,x=requireSign(),I=requireVerify(),E=require$$6;Object.keys(E).forEach(function(D){E[D].id=u.from(E[D].id,"hex"),E[D.toLowerCase()]=E[D]});function M(D){d.Writable.call(this);var O=E[D];if(!O)throw new Error("Unknown message digest");this._hashType=O.hash,this._hash=f(O.hash),this._tag=O.id,this._signType=O.sign}_(M,d.Writable),M.prototype._write=function(O,j,$){this._hash.update(O),$()},M.prototype.update=function(O,j){return this._hash.update(typeof O=="string"?u.from(O,j):O),this},M.prototype.sign=function(O,j){this.end();var $=this._hash.digest(),W=x($,O,this._hashType,this._signType,this._tag);return j?W.toString(j):W};function S(D){d.Writable.call(this);var O=E[D];if(!O)throw new Error("Unknown message digest");this._hash=f(O.hash),this._tag=O.id,this._signType=O.sign}_(S,d.Writable),S.prototype._write=function(O,j,$){this._hash.update(O),$()},S.prototype.update=function(O,j){return this._hash.update(typeof O=="string"?u.from(O,j):O),this},S.prototype.verify=function(O,j,$){var W=typeof j=="string"?u.from(j,$):j;this.end();var Q=this._hash.digest();return I(W,Q,O,this._signType,this._tag)};function A(D){return new M(D)}function T(D){return new S(D)}return browser$4={Sign:A,Verify:T,createSign:A,createVerify:T},browser$4}var browser$3,hasRequiredBrowser$2;function requireBrowser$2(){if(hasRequiredBrowser$2)return browser$3;hasRequiredBrowser$2=1;var u=requireElliptic(),f=requireBn$2();browser$3=function(E){return new _(E)};var d={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};d.p224=d.secp224r1,d.p256=d.secp256r1=d.prime256v1,d.p192=d.secp192r1=d.prime192v1,d.p384=d.secp384r1,d.p521=d.secp521r1;function _(I){this.curveType=d[I],this.curveType||(this.curveType={name:I}),this.curve=new u.ec(this.curveType.name),this.keys=void 0}_.prototype.generateKeys=function(I,E){return this.keys=this.curve.genKeyPair(),this.getPublicKey(I,E)},_.prototype.computeSecret=function(I,E,M){E=E||"utf8",buffer$2.Buffer.isBuffer(I)||(I=new buffer$2.Buffer(I,E));var S=this.curve.keyFromPublic(I).getPublic(),A=S.mul(this.keys.getPrivate()).getX();return x(A,M,this.curveType.byteLength)},_.prototype.getPublicKey=function(I,E){var M=this.keys.getPublic(E==="compressed",!0);return E==="hybrid"&&(M[M.length-1]%2?M[0]=7:M[0]=6),x(M,I)},_.prototype.getPrivateKey=function(I){return x(this.keys.getPrivate(),I)},_.prototype.setPublicKey=function(I,E){return E=E||"utf8",buffer$2.Buffer.isBuffer(I)||(I=new buffer$2.Buffer(I,E)),this.keys._importPublic(I),this},_.prototype.setPrivateKey=function(I,E){E=E||"utf8",buffer$2.Buffer.isBuffer(I)||(I=new buffer$2.Buffer(I,E));var M=new f(I);return M=M.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(M),this};function x(I,E,M){Array.isArray(I)||(I=I.toArray());var S=new buffer$2.Buffer(I);if(M&&S.length<M){var A=new buffer$2.Buffer(M-S.length);A.fill(0),S=buffer$2.Buffer.concat([A,S])}return E?S.toString(E):S}return browser$3}var browser$2={},mgf,hasRequiredMgf;function requireMgf(){if(hasRequiredMgf)return mgf;hasRequiredMgf=1;var u=requireBrowser$9(),f=requireSafeBuffer().Buffer;mgf=function(_,x){for(var I=f.alloc(0),E=0,M;I.length<x;)M=d(E++),I=f.concat([I,u("sha1").update(_).update(M).digest()]);return I.slice(0,x)};function d(_){var x=f.allocUnsafe(4);return x.writeUInt32BE(_,0),x}return mgf}var xor,hasRequiredXor;function requireXor(){return hasRequiredXor||(hasRequiredXor=1,xor=function(f,d){for(var _=f.length,x=-1;++x<_;)f[x]^=d[x];return f}),xor}var withPublic_1,hasRequiredWithPublic;function requireWithPublic(){if(hasRequiredWithPublic)return withPublic_1;hasRequiredWithPublic=1;var u=requireBn$2(),f=requireSafeBuffer().Buffer;function d(_,x){return f.from(_.toRed(u.mont(x.modulus)).redPow(new u(x.publicExponent)).fromRed().toArray())}return withPublic_1=d,withPublic_1}var publicEncrypt,hasRequiredPublicEncrypt;function requirePublicEncrypt(){if(hasRequiredPublicEncrypt)return publicEncrypt;hasRequiredPublicEncrypt=1;var u=requireParseAsn1(),f=requireBrowser$a(),d=requireBrowser$9(),_=requireMgf(),x=requireXor(),I=requireBn$2(),E=requireWithPublic(),M=requireBrowserifyRsa(),S=requireSafeBuffer().Buffer;publicEncrypt=function(j,$,W){var Q;j.padding?Q=j.padding:W?Q=1:Q=4;var X=u(j),Y;if(Q===4)Y=A(X,$);else if(Q===1)Y=T(X,$,W);else if(Q===3){if(Y=new I($),Y.cmp(X.modulus)>=0)throw new Error("data too long for modulus")}else throw new Error("unknown padding");return W?M(Y,X):E(Y,X)};function A(O,j){var $=O.modulus.byteLength(),W=j.length,Q=d("sha1").update(S.alloc(0)).digest(),X=Q.length,Y=2*X;if(W>$-Y-2)throw new Error("message too long");var ie=S.alloc($-W-Y-2),oe=$-X-1,ge=f(X),be=x(S.concat([Q,ie,S.alloc(1,1),j],oe),_(ge,oe)),ze=x(ge,_(be,X));return new I(S.concat([S.alloc(1),ze,be],$))}function T(O,j,$){var W=j.length,Q=O.modulus.byteLength();if(W>Q-11)throw new Error("message too long");var X;return $?X=S.alloc(Q-W-3,255):X=D(Q-W-3),new I(S.concat([S.from([0,$?1:2]),X,S.alloc(1),j],Q))}function D(O){for(var j=S.allocUnsafe(O),$=0,W=f(O*2),Q=0,X;$<O;)Q===W.length&&(W=f(O*2),Q=0),X=W[Q++],X&&(j[$++]=X);return j}return publicEncrypt}var privateDecrypt,hasRequiredPrivateDecrypt;function requirePrivateDecrypt(){if(hasRequiredPrivateDecrypt)return privateDecrypt;hasRequiredPrivateDecrypt=1;var u=requireParseAsn1(),f=requireMgf(),d=requireXor(),_=requireBn$2(),x=requireBrowserifyRsa(),I=requireBrowser$9(),E=requireWithPublic(),M=requireSafeBuffer().Buffer;privateDecrypt=function(O,j,$){var W;O.padding?W=O.padding:$?W=1:W=4;var Q=u(O),X=Q.modulus.byteLength();if(j.length>X||new _(j).cmp(Q.modulus)>=0)throw new Error("decryption error");var Y;$?Y=E(new _(j),Q):Y=x(j,Q);var ie=M.alloc(X-Y.length);if(Y=M.concat([ie,Y],X),W===4)return S(Q,Y);if(W===1)return A(Q,Y,$);if(W===3)return Y;throw new Error("unknown padding")};function S(D,O){var j=D.modulus.byteLength(),$=I("sha1").update(M.alloc(0)).digest(),W=$.length;if(O[0]!==0)throw new Error("decryption error");var Q=O.slice(1,W+1),X=O.slice(W+1),Y=d(Q,f(X,W)),ie=d(X,f(Y,j-W-1));if(T($,ie.slice(0,W)))throw new Error("decryption error");for(var oe=W;ie[oe]===0;)oe++;if(ie[oe++]!==1)throw new Error("decryption error");return ie.slice(oe)}function A(D,O,j){for(var $=O.slice(0,2),W=2,Q=0;O[W++]!==0;)if(W>=O.length){Q++;break}var X=O.slice(2,W-1);if(($.toString("hex")!=="0002"&&!j||$.toString("hex")!=="0001"&&j)&&Q++,X.length<8&&Q++,Q)throw new Error("decryption error");return O.slice(W)}function T(D,O){D=M.from(D),O=M.from(O);var j=0,$=D.length;D.length!==O.length&&(j++,$=Math.min(D.length,O.length));for(var W=-1;++W<$;)j+=D[W]^O[W];return j}return privateDecrypt}var hasRequiredBrowser$1;function requireBrowser$1(){return hasRequiredBrowser$1||(hasRequiredBrowser$1=1,function(u){u.publicEncrypt=requirePublicEncrypt(),u.privateDecrypt=requirePrivateDecrypt(),u.privateEncrypt=function(d,_){return u.publicEncrypt(d,_,!0)},u.publicDecrypt=function(d,_){return u.privateDecrypt(d,_,!0)}}(browser$2)),browser$2}var browser$1={},hasRequiredBrowser;function requireBrowser(){if(hasRequiredBrowser)return browser$1;hasRequiredBrowser=1;function u(){throw new Error(`secure random number generation not supported by this browser
use chrome, FireFox or Internet Explorer 11`)}var f=requireSafeBuffer(),d=requireBrowser$a(),_=f.Buffer,x=f.kMaxLength,I=commonjsGlobal$1.crypto||commonjsGlobal$1.msCrypto,E=Math.pow(2,32)-1;function M(O,j){if(typeof O!="number"||O!==O)throw new TypeError("offset must be a number");if(O>E||O<0)throw new TypeError("offset must be a uint32");if(O>x||O>j)throw new RangeError("offset out of range")}function S(O,j,$){if(typeof O!="number"||O!==O)throw new TypeError("size must be a number");if(O>E||O<0)throw new TypeError("size must be a uint32");if(O+j>$||O>x)throw new RangeError("buffer too small")}I&&I.getRandomValues||!browserExports.browser?(browser$1.randomFill=A,browser$1.randomFillSync=D):(browser$1.randomFill=u,browser$1.randomFillSync=u);function A(O,j,$,W){if(!_.isBuffer(O)&&!(O instanceof commonjsGlobal$1.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof j=="function")W=j,j=0,$=O.length;else if(typeof $=="function")W=$,$=O.length-j;else if(typeof W!="function")throw new TypeError('"cb" argument must be a function');return M(j,O.length),S($,j,O.length),T(O,j,$,W)}function T(O,j,$,W){if(browserExports.browser){var Q=O.buffer,X=new Uint8Array(Q,j,$);if(I.getRandomValues(X),W){browserExports.nextTick(function(){W(null,O)});return}return O}if(W){d($,function(ie,oe){if(ie)return W(ie);oe.copy(O,j),W(null,O)});return}var Y=d($);return Y.copy(O,j),O}function D(O,j,$){if(typeof j>"u"&&(j=0),!_.isBuffer(O)&&!(O instanceof commonjsGlobal$1.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return M(j,O.length),$===void 0&&($=O.length-j),S($,j,O.length),T(O,j,$)}return browser$1}var hasRequiredCryptoBrowserify;function requireCryptoBrowserify(){if(hasRequiredCryptoBrowserify)return cryptoBrowserify;hasRequiredCryptoBrowserify=1,cryptoBrowserify.randomBytes=cryptoBrowserify.rng=cryptoBrowserify.pseudoRandomBytes=cryptoBrowserify.prng=requireBrowser$a(),cryptoBrowserify.createHash=cryptoBrowserify.Hash=requireBrowser$9(),cryptoBrowserify.createHmac=cryptoBrowserify.Hmac=requireBrowser$8();var u=requireAlgos(),f=Object.keys(u),d=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(f);cryptoBrowserify.getHashes=function(){return d};var _=requireBrowser$7();cryptoBrowserify.pbkdf2=_.pbkdf2,cryptoBrowserify.pbkdf2Sync=_.pbkdf2Sync;var x=requireBrowser$5();cryptoBrowserify.Cipher=x.Cipher,cryptoBrowserify.createCipher=x.createCipher,cryptoBrowserify.Cipheriv=x.Cipheriv,cryptoBrowserify.createCipheriv=x.createCipheriv,cryptoBrowserify.Decipher=x.Decipher,cryptoBrowserify.createDecipher=x.createDecipher,cryptoBrowserify.Decipheriv=x.Decipheriv,cryptoBrowserify.createDecipheriv=x.createDecipheriv,cryptoBrowserify.getCiphers=x.getCiphers,cryptoBrowserify.listCiphers=x.listCiphers;var I=requireBrowser$4();cryptoBrowserify.DiffieHellmanGroup=I.DiffieHellmanGroup,cryptoBrowserify.createDiffieHellmanGroup=I.createDiffieHellmanGroup,cryptoBrowserify.getDiffieHellman=I.getDiffieHellman,cryptoBrowserify.createDiffieHellman=I.createDiffieHellman,cryptoBrowserify.DiffieHellman=I.DiffieHellman;var E=requireBrowser$3();cryptoBrowserify.createSign=E.createSign,cryptoBrowserify.Sign=E.Sign,cryptoBrowserify.createVerify=E.createVerify,cryptoBrowserify.Verify=E.Verify,cryptoBrowserify.createECDH=requireBrowser$2();var M=requireBrowser$1();cryptoBrowserify.publicEncrypt=M.publicEncrypt,cryptoBrowserify.privateEncrypt=M.privateEncrypt,cryptoBrowserify.publicDecrypt=M.publicDecrypt,cryptoBrowserify.privateDecrypt=M.privateDecrypt;var S=requireBrowser();return cryptoBrowserify.randomFill=S.randomFill,cryptoBrowserify.randomFillSync=S.randomFillSync,cryptoBrowserify.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join(`
`))},cryptoBrowserify.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6},cryptoBrowserify}(function(u){/**
 * @license bcrypt.js (c) 2013 Daniel Wirtz <dcode@dcode.io>
 * Released under the Apache License, Version 2.0
 * see: https://github.com/dcodeIO/bcrypt.js for details
 */(function(f,d){typeof commonjsRequire=="function"&&u&&u.exports?u.exports=d():(f.dcodeIO=f.dcodeIO||{}).bcrypt=d()})(commonjsGlobal$1,function(){var f={},d=null;function _(le){if(u&&u.exports)try{return requireCryptoBrowserify().randomBytes(le)}catch{}try{var re;return(self.crypto||self.msCrypto).getRandomValues(re=new Uint32Array(le)),Array.prototype.slice.call(re)}catch{}if(!d)throw Error("Neither WebCryptoAPI nor a crypto module is available. Use bcrypt.setRandomFallback to set an alternative");return d(le)}var x=!1;try{_(1),x=!0}catch{}d=null,f.setRandomFallback=function(le){d=le},f.genSaltSync=function(le,re){if(le=le||W,typeof le!="number")throw Error("Illegal arguments: "+typeof le+", "+typeof re);le<4?le=4:le>31&&(le=31);var P=[];return P.push("$2a$"),le<10&&P.push("0"),P.push(le.toString()),P.push("$"),P.push(D(_($),$)),P.join("")},f.genSalt=function(le,re,P){if(typeof re=="function"&&(P=re,re=void 0),typeof le=="function"&&(P=le,le=void 0),typeof le>"u")le=W;else if(typeof le!="number")throw Error("illegal arguments: "+typeof le);function k(B){E(function(){try{B(null,f.genSaltSync(le))}catch(z){B(z)}})}if(P){if(typeof P!="function")throw Error("Illegal callback: "+typeof P);k(P)}else return new Promise(function(B,z){k(function(ee,H){if(ee){z(ee);return}B(H)})})},f.hashSync=function(le,re){if(typeof re>"u"&&(re=W),typeof re=="number"&&(re=f.genSaltSync(re)),typeof le!="string"||typeof re!="string")throw Error("Illegal arguments: "+typeof le+", "+typeof re);return ke(le,re)},f.hash=function(le,re,P,k){function B(z){typeof le=="string"&&typeof re=="number"?f.genSalt(re,function(ee,H){ke(le,H,z,k)}):typeof le=="string"&&typeof re=="string"?ke(le,re,z,k):E(z.bind(this,Error("Illegal arguments: "+typeof le+", "+typeof re)))}if(P){if(typeof P!="function")throw Error("Illegal callback: "+typeof P);B(P)}else return new Promise(function(z,ee){B(function(H,q){if(H){ee(H);return}z(q)})})};function I(le,re){for(var P=0,k=0,B=0,z=le.length;B<z;++B)le.charCodeAt(B)===re.charCodeAt(B)?++P:++k;return P<0?!1:k===0}f.compareSync=function(le,re){if(typeof le!="string"||typeof re!="string")throw Error("Illegal arguments: "+typeof le+", "+typeof re);return re.length!==60?!1:I(f.hashSync(le,re.substr(0,re.length-31)),re)},f.compare=function(le,re,P,k){function B(z){if(typeof le!="string"||typeof re!="string"){E(z.bind(this,Error("Illegal arguments: "+typeof le+", "+typeof re)));return}if(re.length!==60){E(z.bind(this,null,!1));return}f.hash(le,re.substr(0,29),function(ee,H){ee?z(ee):z(null,I(H,re))},k)}if(P){if(typeof P!="function")throw Error("Illegal callback: "+typeof P);B(P)}else return new Promise(function(z,ee){B(function(H,q){if(H){ee(H);return}z(q)})})},f.getRounds=function(le){if(typeof le!="string")throw Error("Illegal arguments: "+typeof le);return parseInt(le.split("$")[2],10)},f.getSalt=function(le){if(typeof le!="string")throw Error("Illegal arguments: "+typeof le);if(le.length!==60)throw Error("Illegal hash length: "+le.length+" != 60");return le.substring(0,29)};var E=typeof browserExports<"u"&&browserExports&&typeof browserExports.nextTick=="function"?typeof setImmediate=="function"?setImmediate:browserExports.nextTick:setTimeout;function M(le){var re=[],P=0;return j.encodeUTF16toUTF8(function(){return P>=le.length?null:le.charCodeAt(P++)},function(k){re.push(k)}),re}var S="./ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),A=[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,0,1,54,55,56,57,58,59,60,61,62,63,-1,-1,-1,-1,-1,-1,-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,26,27,-1,-1,-1,-1,-1,-1,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,-1,-1,-1,-1,-1],T=String.fromCharCode;function D(le,re){var P=0,k=[],B,z;if(re<=0||re>le.length)throw Error("Illegal len: "+re);for(;P<re;){if(B=le[P++]&255,k.push(S[B>>2&63]),B=(B&3)<<4,P>=re){k.push(S[B&63]);break}if(z=le[P++]&255,B|=z>>4&15,k.push(S[B&63]),B=(z&15)<<2,P>=re){k.push(S[B&63]);break}z=le[P++]&255,B|=z>>6&3,k.push(S[B&63]),k.push(S[z&63])}return k.join("")}function O(le,re){var P=0,k=le.length,B=0,z=[],ee,H,q,J,U,Z;if(re<=0)throw Error("Illegal len: "+re);for(;P<k-1&&B<re&&(Z=le.charCodeAt(P++),ee=Z<A.length?A[Z]:-1,Z=le.charCodeAt(P++),H=Z<A.length?A[Z]:-1,!(ee==-1||H==-1||(U=ee<<2>>>0,U|=(H&48)>>4,z.push(T(U)),++B>=re||P>=k)||(Z=le.charCodeAt(P++),q=Z<A.length?A[Z]:-1,q==-1)||(U=(H&15)<<4>>>0,U|=(q&60)>>2,z.push(T(U)),++B>=re||P>=k)));)Z=le.charCodeAt(P++),J=Z<A.length?A[Z]:-1,U=(q&3)<<6>>>0,U|=J,z.push(T(U)),++B;var ve=[];for(P=0;P<B;P++)ve.push(z[P].charCodeAt(0));return ve}var j=function(){var le={};return le.MAX_CODEPOINT=1114111,le.encodeUTF8=function(re,P){var k=null;for(typeof re=="number"&&(k=re,re=function(){return null});k!==null||(k=re())!==null;)k<128?P(k&127):k<2048?(P(k>>6&31|192),P(k&63|128)):k<65536?(P(k>>12&15|224),P(k>>6&63|128),P(k&63|128)):(P(k>>18&7|240),P(k>>12&63|128),P(k>>6&63|128),P(k&63|128)),k=null},le.decodeUTF8=function(re,P){for(var k,B,z,ee,H=function(q){q=q.slice(0,q.indexOf(null));var J=Error(q.toString());throw J.name="TruncatedError",J.bytes=q,J};(k=re())!==null;)if(!(k&128))P(k);else if((k&224)===192)(B=re())===null&&H([k,B]),P((k&31)<<6|B&63);else if((k&240)===224)((B=re())===null||(z=re())===null)&&H([k,B,z]),P((k&15)<<12|(B&63)<<6|z&63);else if((k&248)===240)((B=re())===null||(z=re())===null||(ee=re())===null)&&H([k,B,z,ee]),P((k&7)<<18|(B&63)<<12|(z&63)<<6|ee&63);else throw RangeError("Illegal starting byte: "+k)},le.UTF16toUTF8=function(re,P){for(var k,B=null;(k=B!==null?B:re())!==null;){if(k>=55296&&k<=57343&&(B=re())!==null&&B>=56320&&B<=57343){P((k-55296)*1024+B-56320+65536),B=null;continue}P(k)}B!==null&&P(B)},le.UTF8toUTF16=function(re,P){var k=null;for(typeof re=="number"&&(k=re,re=function(){return null});k!==null||(k=re())!==null;)k<=65535?P(k):(k-=65536,P((k>>10)+55296),P(k%1024+56320)),k=null},le.encodeUTF16toUTF8=function(re,P){le.UTF16toUTF8(re,function(k){le.encodeUTF8(k,P)})},le.decodeUTF8toUTF16=function(re,P){le.decodeUTF8(re,function(k){le.UTF8toUTF16(k,P)})},le.calculateCodePoint=function(re){return re<128?1:re<2048?2:re<65536?3:4},le.calculateUTF8=function(re){for(var P,k=0;(P=re())!==null;)k+=le.calculateCodePoint(P);return k},le.calculateUTF16asUTF8=function(re){var P=0,k=0;return le.UTF16toUTF8(re,function(B){++P,k+=le.calculateCodePoint(B)}),[P,k]},le}();Date.now=Date.now||function(){return+new Date};var $=16,W=10,Q=16,X=100,Y=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],ie=[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946,1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055,3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504,976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462],oe=[1332899944,1700884034,1701343084,1684370003,1668446532,1869963892];function ge(le,re,P,k){var B,z=le[re],ee=le[re+1];return z^=P[0],B=k[z>>>24],B+=k[256|z>>16&255],B^=k[512|z>>8&255],B+=k[768|z&255],ee^=B^P[1],B=k[ee>>>24],B+=k[256|ee>>16&255],B^=k[512|ee>>8&255],B+=k[768|ee&255],z^=B^P[2],B=k[z>>>24],B+=k[256|z>>16&255],B^=k[512|z>>8&255],B+=k[768|z&255],ee^=B^P[3],B=k[ee>>>24],B+=k[256|ee>>16&255],B^=k[512|ee>>8&255],B+=k[768|ee&255],z^=B^P[4],B=k[z>>>24],B+=k[256|z>>16&255],B^=k[512|z>>8&255],B+=k[768|z&255],ee^=B^P[5],B=k[ee>>>24],B+=k[256|ee>>16&255],B^=k[512|ee>>8&255],B+=k[768|ee&255],z^=B^P[6],B=k[z>>>24],B+=k[256|z>>16&255],B^=k[512|z>>8&255],B+=k[768|z&255],ee^=B^P[7],B=k[ee>>>24],B+=k[256|ee>>16&255],B^=k[512|ee>>8&255],B+=k[768|ee&255],z^=B^P[8],B=k[z>>>24],B+=k[256|z>>16&255],B^=k[512|z>>8&255],B+=k[768|z&255],ee^=B^P[9],B=k[ee>>>24],B+=k[256|ee>>16&255],B^=k[512|ee>>8&255],B+=k[768|ee&255],z^=B^P[10],B=k[z>>>24],B+=k[256|z>>16&255],B^=k[512|z>>8&255],B+=k[768|z&255],ee^=B^P[11],B=k[ee>>>24],B+=k[256|ee>>16&255],B^=k[512|ee>>8&255],B+=k[768|ee&255],z^=B^P[12],B=k[z>>>24],B+=k[256|z>>16&255],B^=k[512|z>>8&255],B+=k[768|z&255],ee^=B^P[13],B=k[ee>>>24],B+=k[256|ee>>16&255],B^=k[512|ee>>8&255],B+=k[768|ee&255],z^=B^P[14],B=k[z>>>24],B+=k[256|z>>16&255],B^=k[512|z>>8&255],B+=k[768|z&255],ee^=B^P[15],B=k[ee>>>24],B+=k[256|ee>>16&255],B^=k[512|ee>>8&255],B+=k[768|ee&255],z^=B^P[16],le[re]=ee^P[Q+1],le[re+1]=z,le}function be(le,re){for(var P=0,k=0;P<4;++P)k=k<<8|le[re]&255,re=(re+1)%le.length;return{key:k,offp:re}}function ze(le,re,P){for(var k=0,B=[0,0],z=re.length,ee=P.length,H,q=0;q<z;q++)H=be(le,k),k=H.offp,re[q]=re[q]^H.key;for(q=0;q<z;q+=2)B=ge(B,0,re,P),re[q]=B[0],re[q+1]=B[1];for(q=0;q<ee;q+=2)B=ge(B,0,re,P),P[q]=B[0],P[q+1]=B[1]}function de(le,re,P,k){for(var B=0,z=[0,0],ee=P.length,H=k.length,q,J=0;J<ee;J++)q=be(re,B),B=q.offp,P[J]=P[J]^q.key;for(B=0,J=0;J<ee;J+=2)q=be(le,B),B=q.offp,z[0]^=q.key,q=be(le,B),B=q.offp,z[1]^=q.key,z=ge(z,0,P,k),P[J]=z[0],P[J+1]=z[1];for(J=0;J<H;J+=2)q=be(le,B),B=q.offp,z[0]^=q.key,q=be(le,B),B=q.offp,z[1]^=q.key,z=ge(z,0,P,k),k[J]=z[0],k[J+1]=z[1]}function Ce(le,re,P,k,B){var z=oe.slice(),ee=z.length,H;if(P<4||P>31)if(H=Error("Illegal number of rounds (4-31): "+P),k){E(k.bind(this,H));return}else throw H;if(re.length!==$)if(H=Error("Illegal salt length: "+re.length+" != "+$),k){E(k.bind(this,H));return}else throw H;P=1<<P>>>0;var q,J,U=0,Z;Int32Array?(q=new Int32Array(Y),J=new Int32Array(ie)):(q=Y.slice(),J=ie.slice()),de(re,le,q,J);function ve(){if(B&&B(U/P),U<P)for(var rt=Date.now();U<P&&(U=U+1,ze(le,q,J),ze(re,q,J),!(Date.now()-rt>X)););else{for(U=0;U<64;U++)for(Z=0;Z<ee>>1;Z++)ge(z,Z<<1,q,J);var Ue=[];for(U=0;U<ee;U++)Ue.push((z[U]>>24&255)>>>0),Ue.push((z[U]>>16&255)>>>0),Ue.push((z[U]>>8&255)>>>0),Ue.push((z[U]&255)>>>0);if(k){k(null,Ue);return}else return Ue}k&&E(ve)}if(typeof k<"u")ve();else for(var Ye;;)if(typeof(Ye=ve())<"u")return Ye||[]}function ke(le,re,P,k){var B;if(typeof le!="string"||typeof re!="string")if(B=Error("Invalid string / salt: Not a string"),P){E(P.bind(this,B));return}else throw B;var z,ee;if(re.charAt(0)!=="$"||re.charAt(1)!=="2")if(B=Error("Invalid salt version: "+re.substring(0,2)),P){E(P.bind(this,B));return}else throw B;if(re.charAt(2)==="$")z="\0",ee=3;else{if(z=re.charAt(2),z!=="a"&&z!=="b"&&z!=="y"||re.charAt(3)!=="$")if(B=Error("Invalid salt revision: "+re.substring(2,4)),P){E(P.bind(this,B));return}else throw B;ee=4}if(re.charAt(ee+2)>"$")if(B=Error("Missing salt rounds"),P){E(P.bind(this,B));return}else throw B;var H=parseInt(re.substring(ee,ee+1),10)*10,q=parseInt(re.substring(ee+1,ee+2),10),J=H+q,U=re.substring(ee+3,ee+25);le+=z>="a"?"\0":"";var Z=M(le),ve=O(U,$);function Ye(rt){var Ue=[];return Ue.push("$2"),z>="a"&&Ue.push(z),Ue.push("$"),J<10&&Ue.push("0"),Ue.push(J.toString()),Ue.push("$"),Ue.push(D(ve,ve.length)),Ue.push(D(rt,oe.length*4-1)),Ue.join("")}if(typeof P>"u")return Ye(Ce(Z,ve,J));Ce(Z,ve,J,function(rt,Ue){rt?P(rt,null):P(null,Ye(Ue))},k)}return f.encodeBase64=D,f.decodeBase64=O,f})})(bcrypt);var bcryptExports=bcrypt.exports;const _sfc_main=defineComponent({__name:"App",setup(u){const{t:f}=useI18nTypes(),d=useLoadingsStore(),_=useUserAPIStore(),{loginSuccessHandler:x}=useFetchHandlers(),I=ref(!1);return(async()=>{await loginUserQueryToken(),_.isLoginUser()&&await x()})().then(()=>{I.value=!0}),(M,S)=>(openBlock(),createElementBlock(Fragment,null,[I.value?(openBlock(),createBlock(unref(RouterView),{key:0})):createCommentVNode("",!0),(openBlock(),createBlock(Teleport,{to:"body"},[createVNode(unref(Spinner),{"is-loading":unref(d).loading,text:unref(f)(unref(d).loadingMsg),version:"v2"},null,8,["is-loading","text"])]))],64))}}),login$2={title:"Sign-In",button:"Continue with {provider}",message1:"Securely manage your crypto{line_break} assets and NFTs across multiple blockchains",message2:"Use Web3 Wallet conveniently{line_break} with social login.",message3:"Experience a secure wallet service{line_break} created by a group of security experts.",signup_button:"Not a wepin member yet? {signup}",signup:"Sign up"},signup$2={title:"Sign-Up",change:"Change",pin_set:{title:"Set PIN Number",description_1:"A default wallet is created upon registration, and you can use it with the PIN you are setting now.",description_2:"Please be cautious as the PIN is used for asset transactions within the service and should not be lost."},pin_number:"PIN Number",pin_number_placeholder:"Please enter the PIN number. (6 to 8 digits) ",pin_confirm:"Confirm PIN number",pin_confirm_placeholder:"Please enter the PIN number again.",btn_confirm:"Confirm"},signup_with_email$2={card:{title:"Login",find_password:"Change Password ",signup:"Sign Up",return_intro:"Go back to the {app_name} app and continue managing your assets!"},set_email:{step:"Enter email address.",message:"Please enter an email address that can be used for email verification."},authentication_email:{step:"Email verification",message:"A verification email has been sent to the address you entered, {email}. Please complete the verification in the email.",desc:"If email verification is completed, you will be redirected to the password setup page. If you don't receive the verification email, please select resend.",button:"Resend verification email",button_timer:"Resend is possible after {time} seconds",widget:{message:"A verification email has been sent to the address, {email}. Please complete the verification in the email."}},set_password:{step:"Enter password.",setting_signup_password:"Set login password",setting_password:"Set password",confirm_password:"Confirm password",password_placeholder:"Please enter a password of at least 8 characters, consisting of letters, numbers and special characters.",confirm_placeholder:"Please enter the password again.",error_verification:"Please enter a password of at least 8 characters, consisting of letters, numbers and special characters.",error_confirm:"The password you entered does not match.",email_require:"The email verification validity time (60 minutes) has expired, please try email verification again. {email_authentication}",email_authentication:"Reauthenticate email"},set_pin:{step:"Set PIN Number",step_sub:"Before using Wepin, please set up a PIN number.",step_create:"{accent} creation is required for the airdrop. Please set up a PIN number",create_wallet:"Create Wallet",message:"The PIN number is a personal identification number consisting of 6 to 8 digits.{line_break} It is used to confirm the transfer of assets within the service, so please keep it safe.",emphasis_title:"Remember",emphasis_message_1:"The password you use to unlock your account or send or receive assets, and should only be known to you.",emphasis_message_2:"If you get it wrong more than 10 times, your PIN will be locked for 24 hours, and you'll need to consult your hint email* to retrieve your PIN number.",emphasis_message_3:"*What is a hint email? This is an email you receive when you create a wallet that contains a guess for your PIN number.",setting_pin:"PIN number",confirm_placeholder:"Please enter your PIN number again.",error_confirm:"The entered number does not match.",change_pin_message:"Do you want to change your PIN number?",forgot_pin_message:"Forgot your PIN number?",change_pin:"Reset PIN",change_pin_title:"Reset PIN",change_pin_alert:"We will send the reset PIN to the email address you provided during registration. After selecting reset, please check your email.{line_break}Would you like to reset your PIN?"},email_address:"Email Address ",password:"Password ",placeholder:{email:"Email",password:"Password"},error:{formatted_email:"Please enter a valid email address format (e.g., sample{'@'}wepin.com)",have_existing_email:"The email address is already registered. Please enter a different email address.",have_existing:"The email address is already registered. {button}",not_found_email:"This email is not registered.",invalid_password:"Passwords do not match.",invalid_password_text_link:"Find Password",button:"Return to Home."},error_page:{title:"Login Error Notification",message:"An issue occurred during the login process. We apologize for any inconvenience in using our service.",prev:"Previous Page"}},signup_email_verify_complete_sdk$2={email_auth_title:"Email verification complete",email_auth_desc:`Please return to the app
to finalise your email verification to use the service.`},signin_with_email$2={reg_email:"Incorrect email address format. ",require_signup:"This email is not registered. {signin_link}",signin_link:"Sign Up"},signin_with_password$2={email_require:"Email verification is required. {email_authentication}",error_too_many_requests:"Please try again later.",email_authentication:"Verify email"},reset_email$2={header:"Reset Password ",sub:"Please enter the email address you used to sign up.",reset_done:"Reset Password completed."},reset_authentication$2={message:"A link for resetting the password has been sent to the provided {email}. Please check your email to complete the password reset.",sub_message:"Clicking the link in the email will take you to the password reset page. If you don't receive the email, please choose to resend.",widget:{message:"A link for resetting the password has been sent to the provided {email}. Please check your email to complete the password reset."}},reset_password$2={new_password:"New Password",confirm_new_password:"Confirm New Password"},reset_password_comfirm$2={message:"The password reset is complete.{line_break} Please log in with your new password.",sub_message:"If you have any further questions about your login, please contact us.{line_break} {link}",link:"Contact Us"},user_settings$2={languages:"Language",currency:"Currency",logout:"Logout"},coming_soon$2={title:{desktop:"COMING SOON",tablet:"COMING SOON",mobile:"COMING{line_break}SOON"},description:"We are preparing Wepin service step by step {line_break} so that you can use it conveniently.{line_break} Please wait a little bit."},reset_pin$2={title:"Change PIN Number",sub_title:"Change PIN",description:"You can manage and change the PIN number for each wallet. The PIN number is crucial as it is used to encrypt the private key managed by the wallet. Please be cautious, as it is used for asset transactions within the service.",current_pin:"Current PIN",new_pin:"New PIN",check_pin:"Confirm PIN",current_pin_placeholder:"Enter your current PIN. (6 to 8 digits)",new_pin_placeholder:"Enter your new PIN. (6 to 8 digits)",check_pin_placeholder:"Enter your new PIN again.",complete:"PIN change completed."},security$2={setting:{title:"Security Settings",otp_setting_title:"OTP Settings",otp_setting_desc:"For secure asset protection, we recommend setting up OTP (One-Time Password) authentication. By configuring OTP authentication, you can safely protect your assets in case someone attempts to backup your wallet or engage in hacking activities.",otp_toggle:"Two-Factor Authentication Security Settings",recovery_code_check:"Viewed",recovery_code_uncheck:"Unviewed",recovery_code_desc:"If you are unable to access the device and cannot receive the two-factor authentication code, you can use the recovery code to access your account."},set_otp:{header:"OTP Registration",phrase:{install_app:"Install app",verify_qr:"Scan QR",verify_code:"Verification"},start_title:"Would you like to activate two-factor authentication(OTP)?",start_desc:"When you set up Two-Factor Authentication, unauthorized transfers from an unauthenticated device will be prevented without OTP authentication. This enhances the security of your account, ensuring that transactions cannot proceed without OTP authentication.",alert_desc:"To enhance security during asset transfers, you can use Two-Factor Authentication.",not_today:"Do not show for today",btn_after:"Next time",btn_set_2fa:"Enable",btn_start:"Start Two-Factor Authentication Setup",complete_title:"Two-factor authentication(OTP) activation is complete.",complete_desc_title:"To securely protect your account, Two-Factor Authentication will be performed during asset transfers.",complete_desc_1:"You can reset your registered OTP in Settings > Security > OTP Settings.",complete_desc_2:"If you want to use a new device, you need to set up OTP again on the new device.",complete_desc_3:"If you lose access to Google OTP due to device loss or app deletion, there may be restrictions on usage.",recovery_desc:"If you are unable to access the device and cannot receive the two-factor authentication code, you can use the recovery code to access your account.",btn_recovery:"View",btn_ok:"Confirm"},install_guide:{header:"App Installation Guide",title_1:"1. Install App",desc_1:"Please install Google Authenticator on your mobile phone from Google Play (Android) or the App Store (iOS).",title_2:"2. Return to Wepin",desc_2:"After completing the installation, please return to Wepin and follow the instructions on the next page.",btn_complete:"I've viewed the Guide"},install_app:{title:"Install Two-Factor Authentication App on Mobile",go_guide:"View Guide",auth_desc:"After downloading and installing the Two-Factor Authentication app on your mobile through the App Store, please return to this page.",click_desc:"By clicking the 'Go to Install' button below, you can install the Google Authenticator App.",btn_next:"Next",btn_install:"Go to Install"},verify_qr:{title:"Scan QR",desc:"Please scan the QR code or copy and paste the code below into the OTP authentication App.",install_app:"After installing, please scan using Google Authenticator.",next:"Next"},verify_code:{desc:"Please copy the authentication code from the OTP app and paste it below.",desc_web:"After checking the authentication code in the OTP app, please enter it.",input_msg:"Enter the 6-digit authentication code generated by Google OTP.",info:"After registering the QR code, please enter the OTP authentication code for Wepin services.",btn_auth:"Authenticate",fail:"The authentication has failed."},otp_auth:{title:"Authenticate with OTP",desc:"After checking the authentication code in the OTP app, please enter it.",input_msg:"Please enter.",problem:"Having trouble?",link:"Use Recovery Code",invalid_otp:"The authentication code is incorrect. Please try again."},recovery_auth:{title:"Use Recovery Code",desc:"If you can't access your device, enter one of the recovery codes for authentication. The recovery code that has been used cannot be reused",input_msg:"Enter a valid code.",auth_info:"To use Two-Factor Authentication on a new device, deactivate Two-Factor Authentication and then reset it.",problem:"Have you forgotten your recovery code?",link:"Contact us",invalid_otp:"Invalid authentication code. Please try again."},recovery_code_check:{header:"View Recovery Code",title:"Recovery Code",desc:"If you are unable to access the device and cannot receive the Two-Factor Authentication code, you can recover using the recovery code.",new_info:"The new code has replaced the existing one.",info:"Please keep the recovery code in a secure place.",info_desc:"This code is the only means of recovery in situations where you cannot receive the Two-Factor Authentication code. If you lose this code, recovery will be impossible, so please keep it secure.",btn_download:"Download",btn_print:"Print",btn_copy:"Copy",new_code:"Generate Code",new_code_info:"When generating a new recovery code, download or print the new code. The previous code will no longer be valid.",print_title:"This is the Wepin Two-Factor Authentication recovery code.",save_code_android:"A screenshot of the backup code has been saved in the gallery.",save_code_ios:"Saved to camera roll."},otp_disable:{header:"Disable Two-Factor Authentication Security",alert:{title:"Confirm Disable Two-Factor Authentication Security",desc:"If you disable Two-Factor Authentication security, you will need to restart the authentication process. Are you sure you want to disable it?",btn_cancel:"Cancel",btn_disable:"Disable"}}},my_wallet$2={title:"My Wallet",total_assets:"Total assets",send:"Send",receive:"Receive",default:"Default Wallet",create:"Add Wallet",search:"Search",show_settings:"View Settings",add_account:"Add Account",no_account:{description:"In Wepin, we support multi-wallets.{line_break}Please add coins.",goto_service_guide:"Go to Service Guide"},provider_info:"Powered by CoinGecko",create_option:{new:"Create a New Wallet",other:"Add Another Wallet",recover:"Recover Wallet"},recover_wallet:{input_mnemonic:"Please enter the mnemonic code.",input_label:"Please set a wallet name.",guide:"Please enter 24 words.",btnCopy:"Paste",btnClear:"Reset",complete:"Wallet recovery completed.",complete_err:"Error occurred during wallet recovery.",error:{mnemonic:"Mnemonic code entered incorrectly. Please check again."}}},wallet_manage$2={title:"Manage Wallet",default_wallet:"Set as Default Wallet",label_modify:"Edit Name",modify_info:"Please enter a name within 10 characters.",modify_info_placeholder:"Please enter a wallet name.",backup:"Backup",is_backuped:"Already backed up.",delete:"Delete",delete_disabled:"Default wallet cannot be deleted.",delete_disabled_account:"Please delete the account first.",change_pin:{title:"Change PIN Number",sub_title:"Change PIN",info:"You can change your PIN number after entering your current PIN number.",description:"You can manage and change the PIN number for each wallet. The PIN number is crucial as it is used to encrypt the private key managed by the wallet. Please be cautious, as it is used for asset transactions within the service.",current_pin:"Current PIN",new_pin:"New PIN",check_pin:"Confirm PIN",current_pin_placeholder:"Enter your current PIN. (6 to 8 digits)",new_pin_placeholder:"Enter your new PIN. (6 to 8 digits)",check_pin_placeholder:"Enter your new PIN again.",new_pin_error:"Please enter a number consisting of 6 to 8 digits.",check_pin_error:"The entered number does not match.",complete:"PIN change completed."},backup_process:{phrase:{notice:"Caution",input_pin:"Enter PIN",verify_otp:"Verify OTP",check_secret:"Secret Phrase",verify_secret:"Verify"},title:"Backup Wallet",title_verify:"Verify Wallet",info:"In Wepin, even without a separate backup, your assets are securely stored.",notice:"Wallet backup involves exporting and storing the wallet's private key as an encrypted secret phrase (mnemonic code)",caution:"Do not show or send this screen to others.",caution_detail:"If the secret phrase is exposed, the assets in your wallet account could be compromised, keep the secret phrase safe.",caution_custody:"If you lose the secret phrase, you cannot recover the wallet's assets.",notice_custody:"Write down the secret phrase on paper and keep it in a safe place.",check_confirm:"I have read and agree to the precautions.",check_mnemonic:"Verify Secret Phrase (Mnemonic Code)",mnemonic_desc:"Store the contents and order of the 24 words in a safe place. Be careful not to show or send them to others.",set_otp:"Set up OTP",btnCopy:"Copy",mnemonic_guide:"The secret phrase can only be viewed on this screen. For security reasons, the copied content will disappear once you leave this page",verify_mnemonic:"Verify Secret Phrase (Mnemonic Code)",verify_desc:"Drag and drop the 24 words in the correct order.",drag_notice:"The sequence of the mnemonic code is incorrect. Please reorder and confirm.",cancel_msg:"Cancel Wallet Backup?",cancel_warn:"If you stop the wallet backup, you'll need to start over from the beginning when you want to back up again.",btn_back:"Go Back",btn_cancel:"Cancel",complete_desc:"Secret phrase is crucial when recovering your wallet,{line_break}it's vital information for accessing your account and assets.{line_break}If lost, you won't be able to recover your assets, so store it securely.",complete_add_desc:"Please proceed with wallet deletion.",complete_message:"You have completed the wallet backup.",btn_complete_after:"Proceed to delete the wallet"},delete_wallet:{title:"Delete Wallet",sub_title:"Wallet deletion is possible after backing up the wallet.",desc:"Wallet backup is the process of exporting and storing the wallet's private key as a 24-word secret phrase (mnemonic code), which can be used for wallet restoration later.",desc_verify:"You have completed some of the wallet backup steps. Please complete the verification step for the secret phrase (mnemonic code) to back up your wallet.",exec_delete:"Wallet backup is complete, proceeding with deletion.",caution:"When you delete the wallet, all account information and assets associated with the wallet will be permanently deleted and cannot be recovered through WEPIN. Deleting the wallet will be completed after entering your PIN.",confirm_1:"I have reviewed the wallet deletion guidelines.",confirm_2:"I agree that once my wallet is deleted, it is not recoverable.",complete:"Wallet deletion is complete.",complete_err:"An error occurred during wallet deletion.",confirm_backup:"Backup Wallet",confirm_verify:"Proceed to Verification"}},show_settings$2={title:"View Settings",layout:"Layout",sort:"Sorting",edit_list:"Edit list",hide_little:"Hide Small Balances"},change_layout$2={title:"Layout",card:"Card View",list:"List View",group_mainnet:"Link to Mainnet"},sort_account$2={title:"Sorting",name:"Sort by Name",balance:"Balance",recent:"Recent Transactions"},edit_list$2={title:"Edit List"},send$2={phrase:{select_account:"Select Account",input_address:"Enter Address",input_amount:"Enter Amount",check_quote:"Review",input_pin:"Enter PIN",verify_otp:"Verify OTP"},choose_account:"Please select the sending account.",search:"Search",network:"Network",my_account:"My Account",which_account_to:"From which account would you like to send?",where_to:"Where would you like to send it?",address_to:"Send To",paste:"Paste",check_address:"Check the entered address",check_address_info:"Please verify if it has been entered correctly.",default_address_format:"Default Address Format (Ethereum-based)",default_address_format_info:"Address identical to {network} address",insufficient_balance:"{network} You can't proceed with sending because you don't have enough money, please replenish your balance and try again.",address_input_placeholder:{default:"Enter an address.",ethereum:"Ethereum Address Guide: Start with 0x....",bitcoin:"Bitcoin Address Guide: Start with 0x....",xrp:"Xrp Address Guide"},invalid_address:"Invalid address. Please check and try again.",caution:"Incorrect or incompatible addresses may result in asset loss. Please be cautious.",from_my_wallet:"Select from My Accounts",how_much_to_send:"How much would you like to send?",send_all:"Send all ‧ Enter {amount} {symbol}",network_fee:"Network fee",network_fee_sub:"Wepin suggests optimized fees.",alert:{too_much:"The amount you want to send is greater than your balance. {line_break}Please check your balance.",is_not_a_number:"The format of the entered amount is incorrect.",not_zero:"Please enter an amount greater than 0"},select_network_fee:"Select Network Fee",setting_network_fee:"Set Network Fee Directly",network_fee_content:"Fees are charged on the {network} network and can vary based on network traffic. Wepin does not profit from these fees.",delay_sub:"Please note that the time is an estimate.",network_fee_options:{name:{low:"Regular",medium:"Fast",high:"Fastest",custom:"Set Manually"},delay:{"45sec":"More than 45 seconds","30sec":"Less than 30 seconds","15sec":"Less than 15 seconds"}},setting:"Set",custom_sub:"Please set only if you know the procedure. Incorrect information can lead to failed or interrupted transactions.",gas_limit:"Gas Limit (Typically 21,000 ~ 500,000)",gas_price:"Gas fee",please_confirm:"Please check.",send_amount:"Sending Amount",receive_address:"Receiving Address",total:"Total",pin_need:"Enter your PIN",pin_need_sub:"Enter your PIN number.",pin_caution:"Enter your 6-8 digit PIN number.",pin_caution_alert:"The PIN number is a personal identification number consisting of 6 to 8 digits.",requested:"The transfer has been requested.",requested_sub:"Depending on the network traffic and fee settings,{line_break}it may take time for the transaction to be confirmed",request_failed:"The transfer has failed.",request_pin_error:"The entered number does not match.",request_failed_sub:"The transfer has failed due to delayed time.",request_pin_error_sub:"{remainPinTryCnt} remaining attempts",locked_message:"This wallet has been locked due to 10 incorrect PIN attempts. You can retry after 24 hours.",locked_message_sub:"{remain_time} remaining",locked_message_sub_unlock:"Unlock",locked_placeholder:"Locked.",retry:"Resend",retry_pin:"Try Again",tag:"Destination Tag",tag_sub:"Option (required for exchange transfer)",send_transaction:"Send NFT",send_coin_transaction:"Send {symbol}",transaction_detail:"View Transaction Details",transfer_history:"Transfer History",tx_id:"TXID",total_amount:"Total Amount",more:"More",hide:"Hide",go_back_wallet:"Go back to your wallet and continue managing your assets!"},initial_screen$2={emphasis:"sending",contents:"Would you like to cancel {emphasis} and return to the wallet screen?",cancel:"No",confirm:"Yes"},nft$2={phrase:{select_nft:"Select NFT",input_address:"Enter Address",select_fee:"Select Fee",confirm:"Final Confirmation",input_pin:"Enter PIN",verify_otp:"Verify OTP"},title:"My NFT",select_wallet:"Select Wallet",total_nft:"All NFTs {nftTotalLength}",latest_order:"Recent order",name_order:"Sort by Name",add_direct:"Add directly",contracnt_address:"Contract address",token_ID:"Token ID",token_type:"Token Standard",nft_send:"Send NFT",nft_hide:"Hide NFT",collection_change:"Change Collection",collection_name:"Collection Name",filter:"Filtering",selected_mainnet:"Please select the mainnet you have.",history_none:"You don't have any NFTs yet.",cant_load:"We couldn't load the content.",img_load_error:"이미지를 불러올 수{line_break}없습니다.",send:{selected_count_message:"Send the selected {count} NFTs.",selected_message:"Send the selected NFT.",memo:"Memo",please_enter_it:"Please enter.",count:"unit",sendNft:"NFTs to send"},send_complete:{title:"NFT transfer requested.",description:"Depending on the network traffic and fee settings, it may take some time for the transaction to be confirmed.{line_break}Transaction results can be checked in the transaction history."},refresh:"Refresh",loading:"Loading",disabled:"Refreshed",pending:"Pending"},receive$2={title:"Receive",qr_title:"Receive {coin}",select_account:"Select receive account.",info_support_nft:"For networks that do not support NFTs, this label will be displayed.",network:"Network",copy:"Copy address",activate_account:"Activate Account",doneCopy:"Copy completed.",footer_notice:"If receiving a coin other than {coin}, errors and losses may occur, and recovery is not possible.",cant_receive:"You cannot receive NFT items from the {network} network.",can_receive:"You can receive NFT items from the {network} network.",scan:{qr_title:"Scan Code",upload_title:"Image Upload",qr_info:"Try scanning the QR code or uploading a QR image.",file_drag:"Try dragging an image here or {file_upload}",file_upload:"upload a QR image.",loading:"Loading."}},create_account$2={add_account:"Add account",choose_account:"Please select an account.",add_token:"Add User Token",input_name_title:"Enter Name",input_name_sub:"You can register multiple identical accounts in one wallet. Please enter a name to identify it.",network_for_tokens_title:"There is no mainnet account.{line_break}Add a mainnet account to add tokens.",network_for_tokens_sub:"You can register multiple identical accounts in one wallet.{line_break}Please enter a name to identify it.",name_placeholder:"Please enter a name.",input_name_caution:"Account names must be within 14 characters and consist of alphanumeric characters and special symbols. The first character must be alphabetic.",selected_network_title:"Select Network",selected_network_sub:"Select the token's network for fee payment.",testnet:"Testnet"},account_detail$2={send:"Send",receive:"Receive",stat:{title:"{symbol} Price Statistics",contract:"Contract",info:"{symbol} Information",market_price:"Market Price","24h_low_high":"24h Low / 24h High","7d_low_high":"7d Low / 7d High",trading_vol:"Trading Volume",market_cap_rank:"Market Capitalization Rank",market_cap:"Market Capitalization",market_cap_domi:"Market Capitalization Share",turnover_ratio_of_market_value:"Trading Volume{line_break}/ Market Capitalization",all_time_high:"All-Time High",all_time_low:"All-Time low"},history:{title:"Transaction History",send_title:"Sent {coin}",receive_title:"Received {coin}",none:"No transaction history yet.  Send and receive assets on Wepin."}},transaction_detail$2={header:"Received {coin}",transaction_status:"Transaction status",status:{confirm:"Confirmed",pending:"Pending",failed:"Failed"},request_date:"Transaction Request Time",amount:"Transaction Amount",fee:"Fee",network:"Network",sender:"Sender",receiver:"Receiver",show_in_scan:"Find in block explorer",TXID:"TXID"},account_manage$2={change_label:"Edit name",delete:"Delete"},change_label$2={title:"Edit Name"},hide_account$2={title:"Delete Account",description:{delete_available:"Deleting the account will remove it from the wallet list, and you won't be able to view this account anymore. Are you sure you want to delete it?",has_token_account:"There are <b>sub-token accounts</b>remaining in this account. Are you sure you want to delete your account?",has_nft:"There are <b>{count} NFTs</b> in this account. Are you sure you want to delete your account?",has_token_account_and_nft:"There are <b>{count} sub-token accounts and NFTs</b> in this account. Are you sure you want to delete your account?",has_balance:"This account has balance of <b>{balance} {symbol}</b>. Are you sure you want to delete your account?"},notice:"You can always check and re-add the account from the list even if you delete it. The assets of the added account will be restored the same as before."},list_header$2={name:"Name",market_price:"Current Price / Change Rate (Last 24 Hours)",current_price:"Current Price",change_rate:"Change Rate",assets_with_a_quantity:"assets with a quantity",conversion_amount:"Converted Amount"},pin_alert$2={locked_message:"The wallet is locked due to 10 incorrect PIN attempts.",locked_remain:"{remain_time} remaining",locked_block:"The wallet will be unlocked after 24 hours with PIN verification.",locked_info:"Transactions are available after PIN verification.",unlock:"Unlock"},unlock_wallet$2={title:"Unlock Wallet",sub_title:"Functionality is Locked",description:"Unlocking the wallet allows you to use this feature.",pin_description:"Once PIN authentication is complete, the wallet will be unlocked.",complete:"Wallet unlocked successfully.",unlock_pin_verify:"Unlock with PIN authentication"},setting$2={title:"Settings",profile:{title:"Profile",nickname:"Nickname",placeholder:"Please enter your nickname.",email:"E-mail",auth_info:"You signed up through your {auth} account."},service:{title:"Service",set_alarm:"Notification Settings",email_alarm:"Set up notifications by email"},security:{title:"Security"},history:{title:"Transaction History"}},global$3={cancel:"Cancel",confirm:"Confirm",delete:"Delete",none:"None",hours:"{hours} hours",minutes:"{minutes} minutes",less_minutes:"Less than 1 minute"},dashboard_detail$2={title:"Dashboard",connected_apps:"Connected Apps",read_more:"View in Detail",hide:"Hide",tab_nft:{title:"NFT",status:"My NFT Status",sub_status:"View the status of the NFTs I own"},tab_asset:{title:"Asset",status:"My Asset Status",sub_status:"View the status of the assets I own",toggle:"Hide 0 quantity assets",toggle_popper:"You can hide assets with 0 quantity."},tab_app:{title:"App",status:"Status by App",sub_status:"View the status of the assets I own by app",my_nft:"My NFT {count}",my_asset:"My Assets",no_connected_app:"No connected apps.{line_break} Connect various apps on WEPIN to manage your assets."},tab_select:{total:"Total"},chart:{total_assets:"Total Asset Composition",mainnet_config:"Mainnet Configuration",mainnet:"Category",amount:"Amount",count:"Quantity",weight:"Percentage",more:"More",mobile_info:"Press the graph for 1 second or more to see detailed proportions.",no_nfts:"There are no NFTs to display yet.",no_assets:"There are no assets to display yet.",no_assets_sub:"Add an account and manage your assets."},profile_type_error:"The file is not an image file. Please upload an image file (JPG, JPEG, GIF, PNG)."},error$2={"502_title":"CODE:502","502_message":"An unknown error occurred.",network_err_title:"Network Error",network_err_message:"An error occurred while connecting to the server."},promotion$2={apply:{join:"Join",finished:"Event has ended",period:"Ends {to}",event_finished:"[{customerName}] The NFT minting event has ended. Please join us again next time.",no_contents:"Contents could not be loaded",remain_time:"{d} days {h} hours {m} minutes {s} seconds",end_time:"ends in",end_notice:"End Notice",end_airdrop:"The airdrop event has ended.",next_time:"Please participate next time.",how_to_join:"How to Participate",finish_desc_pre:"This event has ended",finish_desc_post:".",email_desc:"Please enter the email address to receive the NFT.",inquiry:"Contact us",nft_promotion_q:"Want to host your own NFT event?",event:" Giveaway Event",event_finish:"Event Closed Notice",mission_airdrop:"Complete the following missions to receive the airdrop.",new_tab:"A new window will open when you click the button.",progress_info:"{progress} completed",twitter:"Twitter",twitterX:"X(Twitter)",follow:"Follow",signup:"Sign up",placeholder:"Please enter your account",close_box:"Collapse {provider} account input",open_box:"If already followed, click here.",app_join_open_box:"Please sign up with the email you entered on the previous screen.",follow_complete:"Enter the {provider} account you followed.",quest_complete:"Congratulations on completing the quest!",get_reward:"Receive {symbol}.",receive_reward:"Receive Reward",share_reward_title:"Share and receive {symbol} from airdrop!",share_reward_description:"We will provide additional rewards to those who share a lot.",share_button:"Share with friends",later_button:"Next time",congratulations:"Congratulations!",received_from_creator:"You've received {symbol} from {creator}.",receive_coin:"Received Coin Amount",available_after_event_end:"Available after the event ends.",check_my_rank:"Check My Ranking",create_account:"Create a {symbol} account on My Wallet to receive the airdrop. "},invalid_quantity:{label:"End of Issuance",title:"All of the NFTs have been minted",message:"Unfortunately, all of the NFTs have already been issued. Try receiving a different NFT."},nft_event_minted:{title:"[{promotionName}] NFT minting completed",message:"NFT was already minted by this email address. Only one NFT can be minted per ID. Please log in with {email} and check your NFT."},nft_event_attended:{title:"[{promotionName}] Request for NFT minting has been submitted",message:"A link to proceed with NFT minting has been sent to the {email} you provided.{line_break}Please check your email to continue with the NFT minting.",desc:"Clicking the link in the email will redirect you to the Wepin login/signup page. If you haven't received the email, please choose the option to resend it."},nft_event_duplicate:{title:"Email confirmation request information",message:"This {email} has already been used to apply. Please check your email to proceed with NFT minting."},nft_event_completed:{header:"congratulations! You've received {tokenName} from {customerName}.",info:"NFT information",issuer:"issuer",receiver:"receiver address",token_desc:"description"},event_login:{member_join:{tab_title:"Simply use the existing email to receive NFT. (1/3)",tab_title_airdrop:"Receive the airdrop with your existing email.",tab_title_member:"Log in with your existing account, and then proceed to receive the NFT.",tab_title_member_airdrop:"Log in with your existing account and receive the airdrop.",nfc_title:"Receive the NFT below after logging in or signing up.",main_title:"Sign up",auth_mail_desc:"To proceed with the signup, a verification email will be sent to {email}.",simple_join_title:"Social login",sso_desc_colored:"To receive the NFT, ",sso_desc_normal:"To receive the specific NFT, please log in with {accent} using simple login.",sso_desc_normal_airdrop:"To continue the airdrop, please log in with {accent}.",btn:"Send verification email",simple_login_title:"Continue with Social Login",separate_title:"Or",continue_email:"Continue with email"},set_password:{tab_title:"Just a few more steps left! (2/3)",tab_title_default:"Just a few more steps left!"},set_pin:{tab_title:"The final step! (3/3)",tab_title_default:"The final step!",desc:"To receive the NFT, you'll need an {networkName} account. {line_break} Please enter your default wallet PIN number to add the account.",desc_airdrop:"To receive the airdrop, you'll need a {networkName} account. Please enter your PIN number to add the account.",remember:"IMPORTANT",remember_desc_1:"PIN is a password, which is used to unlock the account or to perform asset transactions. It must be kept secret and known only to yourself.",remember_desc_2:"If the PIN is entered incorrectly for more than 10 times, your Wallet will be locked for 24 hours. To remind yourself of your PIN number, refer to the hint email*.",remember_desc_3:"*What is a hint email? It's an email you've received when you created your wallet. It contains information that could help you guess your PIN number."},referral:{popup:{close:"Join the following"}}},loading:{search_wallet:"Searching for the wallet...",mint_nft:"Minting NFTs..."},btn:{go_wepin:"Check it out on Wepin",resend_email:"Resend email",go_nft:"Check my NFT on Wepin"},error:{expired:"The issuance expiration date has passed.",busy:"Many users are currently active. Please try again.",exceed:"All prepared NFTs have been exhausted.",finished:"The event period has ended.",pin_caution:"PIN number will be locked for 24 hours if the wrong PIN number is entered 10 times."},contact:{type_form:"https://wepinwallet.typeform.com/NFT-HUB-LINK-en"}},nfthublink$2={maintenance:{title:"Service Maintenance Notice",desc:"We are undergoing maintenance for a more stable service.{line_break}We apologize for any inconvenience.",date:"[Maintenance Time] {startDate} - {endDate}"},token_expired:"The token has expired.",invalid_path:"Invalid access path."},dashboard_title$2={setting_security:"Security Settings",setting_2fa:"Two-Factor Authentication Settings",unsetting_2fa:"Disable Two-Factor Authentication Security",check_recoverycode:"View Recovery Code",regist_otp:"OTP Registration",setting_service:"Service Settings"},drops$2={title:"Drops",live_event:"Ongoing Events",end_event:"Closed Events",joined:"Attended {unicode}",hot:"Popular {unicode}",prize_exhausted:"Prize Exhausted",period_expired:"Ended {unicode}",remain_reward:"Remaining Tokens {remain}/{total} {symbol}",join_count:"{count}",empty_event:"There are no ongoing events.",empty_description:"Please wait until a new event is posted."},drops_detail$2={view_detail:"View Details",event_end:"The event has ended.",amount_receive:"Amount received",received_coin:"Received Coin Amount",shared_end:"The event has ended after being shared {count} times with friends.",shared_friends:"Shared with friends",after_end_event:"You can receive it after {end_date}",ongoing_event:"Ongoing events",view_all_event:"View all events",event_count:"{count} events",receive_history:"Received History",bonus_mission:"Bonus Missions",bonus_mission_trophie:"Bonus reward mission",clear_bonus_mission:"You have completed the bonus mission.",share_friends:"Share with Friends!",share_friends_trophie:"Boost your ranking!",bonus_reward:"Receive bonus coins by sharing with {count} people.",bonus_reward_trophie:"Generous rewards await frequent sharers",celebrate_mission:"You are in 1st place for sharing the link.",celebrate_mission_sub:"You've received an additional {count} {symbol} as a bonus mission reward",shared_with_total:"Shared with a total of {count} people!",please_share:"Please share with your friends",mission_end:"Ending a mission",share_get_bonus:"Share and get bonus rewards",share_get_bonus_clears:"You've received the mission reward",bonus_end:"Sharing mission ends on {end_date}.",mission_end_when:"The mission ended on {end_date}.",claim_end:"{end_date}까지 받을 수 있습니다.",clears_missin_end:"Ends in {end_date}",clears_missin_end2:"Claims can be made after {end_date}.",raise_ranking:"Share more to boost your ranking",others_ranking:"View other users' rankings.",ranking:"Ranking",my_records:"My Records",empty_record:"No sharing history found.",event_list:"Event List",receive_coin:"Receive Tokens",receive_total:"Received {quantity} {symbol}!",show_reward_history:"View",show_reward_history_quest:"Quests",show_reward_history_stamp:"Invite Stamp",show_reward_history_rank:"Friends invite: #{rank}"},agree_terms$2="I have read and agree to the {term} of use.",personal_terms$2="Privacy Policy",term$2="Terms of Service",term2$2="Terms of Service",term_link$2="https://www.notion.so/iotrust/Terms-of-Service-e1e527fa5efa4d7bad5e9b820d267b83?pvs=4",copyright$2="© 2024. IoTrust All rights reserved.",service_terms_url$2="https://delivery.wepin.io/service/terms/untitled-en.html",personal_terms_url$2="https://delivery.wepin.io/service/privacy/untitled-en.html",nft_hub_link_url$2="https://delivery.wepin.io/service/privacy/nfthub-link/en.html",droplink_url$2="https://delivery.wepin.io/service/privacy/droplink/en.html",hublink_share_promo$2={btn_share:"Share",notice_title:"Notice",notice_txt_1:"The number of shares will be based on the number of NFT issuances completed.",notice_txt_2:"Event Period: {startDate} to {endDate}",notice_txt_3:"Ranking updates every 24 hours.",notice_txt_4:"Event participation and winnings may be canceled if you participate or win through illegal or irregular means.",notice_txt_5:"Event winnings may be canceled if you cannot be contacted via the email registered during NFT issuance, or if you do not consent to the disclosure of personal information or do not express your intention to receive the prize.",notice_txt_6:"Starbucks gift certificates can only be delivered to domestic mobile phone numbers.",notice_txt_7:"The prize for the NFT sharing event is the amount after paying other income tax according to the Income Tax Act.",notice_txt_8:"Prizes will be delivered after the winner announcement and personal information collection period ends.",event_subtitle:"How to participate",event_desc_1:"Click on Share to send New Year's card",event_desc_2:"Ranking will be reflected when a friend completes the New Year's card NFT issuance through the link",rank:"#{number}",count:"{number} trial(s)",banner_btn_txt:"View",ranking_title:"TOP {number}",banner_label:"Participating Event",bonus_mission:"Bonus Mission {number}",reward_airdrop:"Airdrop Reward",input_email:"Please enter the email address to receive the airdrop.",live_event:"Event in Progress",live_share:"Real-time share ranking",already_join:"Already received the airdrop?",check_reward:"View received amount.",toast_check_reward:"You have not joined the event. Please participate.",contact_airdrop:"Want to host an airdrop event?",caution_title:"Event Notice",caution_1:"The event period is from {startTime} to {endTime}.",caution_2:"Rankings are updated every 24 hours.",event_title:"EVENT",info_message_count:"{count}. {message}",event_message:"{prize} ({numberOfWinner} person)",diff_days:"Day {date}",done_copy:"link copied",ad_info:"Receive promotional content, affiliate content, and other advertising information",ad_info_title:"Consent to Receive Promotional Information"},droplink$2={check_email_title:"Please check your email",check_email_content:"A sign-up email has been sent to {email}. Please continue to receive the airdrop.",check_email_detail:"Clicking the link in the email will redirect you to the Wepin login/signup page. If you haven't received the email, please choose the option to resend it.",check_set_pin_title:"Please complete the airdrop application",check_set_pin_content:"You already have a record of application. Log in with your {email} and set your PIN to complete the application.",check_set_pin_button:"Set PIN",already_rewarded_title:"You have already received the airdrop",already_rewarded_content:"You already have a record of application. Only one airdrop can be issued per ID. Please log in with your {email} to check your airdrop history.",already_rewarded_button:"Check received history",progress_event:"Ongoing events",end_event:"Ended events",mismatch_email_title:"Please check the email address you had used.",mismatch_email_content:"Please log in again with the {email} you used to receive the airdrop.",back:"Back"},en={login:login$2,signup:signup$2,signup_with_email:signup_with_email$2,signup_email_verify_complete_sdk:signup_email_verify_complete_sdk$2,signin_with_email:signin_with_email$2,signin_with_password:signin_with_password$2,reset_email:reset_email$2,reset_authentication:reset_authentication$2,reset_password:reset_password$2,reset_password_comfirm:reset_password_comfirm$2,user_settings:user_settings$2,coming_soon:coming_soon$2,reset_pin:reset_pin$2,security:security$2,my_wallet:my_wallet$2,wallet_manage:wallet_manage$2,show_settings:show_settings$2,change_layout:change_layout$2,sort_account:sort_account$2,edit_list:edit_list$2,send:send$2,initial_screen:initial_screen$2,nft:nft$2,receive:receive$2,create_account:create_account$2,account_detail:account_detail$2,transaction_detail:transaction_detail$2,account_manage:account_manage$2,change_label:change_label$2,hide_account:hide_account$2,list_header:list_header$2,pin_alert:pin_alert$2,unlock_wallet:unlock_wallet$2,setting:setting$2,global:global$3,dashboard_detail:dashboard_detail$2,error:error$2,promotion:promotion$2,nfthublink:nfthublink$2,dashboard_title:dashboard_title$2,drops:drops$2,drops_detail:drops_detail$2,agree_terms:agree_terms$2,personal_terms:personal_terms$2,term:term$2,term2:term2$2,term_link:term_link$2,copyright:copyright$2,service_terms_url:service_terms_url$2,personal_terms_url:personal_terms_url$2,nft_hub_link_url:nft_hub_link_url$2,droplink_url:droplink_url$2,hublink_share_promo:hublink_share_promo$2,droplink:droplink$2},login$1={title:"サインイン",button:"{provider}で続行",message1:"複数のブロックチェーン間で暗号資産やNFTを安全に管理",message2:"ソーシャルログインでWeb3ウォレットを便利に利用",message3:"セキュリティ専門家によって作成された安全なウォレットサービスを体験",signup_button:"Wepinのメンバーではありませんか？ {signup}",signup:"サインアップ"},signup$1={title:"サインアップ",change:"変更",pin_set:{title:"PIN番号を設定",description_1:"登録時にデフォルトウォレットが作成され、現在設定しているPINで使用できます。",description_2:"PINはサービス内での資産取引に使用されるため、紛失しないように注意してください。"},pin_number:"PIN番号",pin_number_placeholder:"PIN番号を入力してください（6〜8桁）",pin_confirm:"PIN番号を確認",pin_confirm_placeholder:"もう一度PIN番号を入力してください。",btn_confirm:"確認"},signup_with_email$1={card:{title:"ログイン",find_password:"パスワードを変更",signup:"サインアップ",return_intro:"{app_name}アプリに戻り資産管理を続けてください！"},set_email:{step:"メールアドレスを入力してください。",message:"メール確認に使用できるメールアドレスを入力してください。"},authentication_email:{step:"メール確認",message:"入力したアドレス（{email}）に確認メールが送信されました。メール内の確認を完了してください。",desc:"メール確認が完了すると、パスワード設定ページにリダイレクトされます。確認メールが届かない場合は、再送信を選択してください。",button:"確認メールを再送信",button_timer:"{time}秒後に再送信可能",widget:{message:"アドレス（{email}）に確認メールが送信されました。メール内の確認を完了してください。"}},set_password:{step:"パスワードを入力してください。",setting_signup_password:"ログインパスワードを設定",setting_password:"パスワードを設定",confirm_password:"パスワードを確認",password_placeholder:"文字、数字、特殊文字を含む8文字以上のパスワードを入力してください。",confirm_placeholder:"もう一度パスワードを入力してください。",error_verification:"文字、数字、特殊文字を含む8文字以上のパスワードを入力してください。",error_confirm:"入力したパスワードが一致しません。",email_require:"メール確認の有効期限（60分）が切れました。メール確認をもう一度行ってください。{email_authentication}",email_authentication:"メールを再確認"},set_pin:{step:"PIN番号を設定",step_sub:"Wepinを使用する前にPIN番号を設定してください。",step_create:"AirDrop機能をご利用いただくために{accent}を作成する必要があります。パスコードを設定してください。",create_wallet:"ウォレット作成",message:"PIN番号は6〜8桁の個人識別番号です。サービス内での資産転送を確認するために使用されますので、安全に保管してください。",emphasis_title:"注意",emphasis_message_1:"アカウントのロック解除や資産の送受信に使用するパスワードは、あなただけが知っている必要があります。",emphasis_message_2:"10回以上間違えると、PINが24時間ロックされ、ヒントメール*を使用してPIN番号を取得する必要があります。",emphasis_message_3:"*ヒントメールとは何ですか？これはウォレット作成時にあなたのPIN番号の推測を含むメールです。",setting_pin:"PIN番号",confirm_placeholder:"もう一度PIN番号を入力してください。",error_confirm:"入力した番号が一致しません。",change_pin_message:"PIN番号を変更しますか？",forgot_pin_message:"PIN番号を忘れましたか？",change_pin:"PINをリセット",change_pin_title:"PINをリセット",change_pin_alert:"登録時に提供したメールアドレスにリセットPINを送信します。リセットを選択した後、メールを確認してください。PINをリセットしますか？"},email_address:"メールアドレス",password:"パスワード",placeholder:{email:"メールアドレス",password:"パスワード"},error:{formatted_email:"有効なメールアドレス形式で入力してください（例：sample{'@'}wepin.com）",have_existing_email:"このメールアドレスは既に登録されています。別のメールアドレスを入力してください。",have_existing:"このメールアドレスは既に登録されています。{button}",not_found_email:"このメールアドレスは登録されていません。",invalid_password:"パスワードが一致しません。",invalid_password_text_link:"パスワードを見つける",button:"ホームに戻る"},error_page:{title:"ログインエラーの通知",message:"ログインプロセス中に問題が発生しました。ご利用の際のご不便をお詫び申し上げます。",prev:"前のページ"}},signup_email_verify_complete_sdk$1={email_auth_title:"メール認証完了",email_auth_desc:`サービス利用のため、
アプリに戻ってメール認証を完了してください。`},signin_with_email$1={reg_email:"正しいメールアドレス形式ではありません。",require_signup:"このメールアドレスは登録されていません。{signin_link}",signin_link:"サインアップ"},signin_with_password$1={email_require:"メール確認が必要です。{email_authentication}",error_too_many_requests:"後でもう一度お試しください。",email_authentication:"メールを確認"},reset_email$1={header:"パスワードをリセット",sub:"登録時に使用したメールアドレスを入力してください。",reset_done:"パスワードのリセットが完了しました。"},reset_authentication$1={message:"{email}にパスワードリセット用のリンクが送信されました。メールをご確認の上、パスワードリセットを完了してください。",sub_message:"メール内のリンクをクリックするとパスワードリセットページに移動します。メールが届かない場合は、再送信を選択してください。",widget:{message:"{email}にパスワードリセット用のリンクが送信されました。メールをご確認の上、パスワードリセットを完了してください。"}},reset_password$1={new_password:"新しいパスワード",confirm_new_password:"新しいパスワードを確認"},reset_password_comfirm$1={message:"パスワードのリセットが完了しました。{line_break}新しいパスワードでログインしてください。",sub_message:"ログインに関するその他の質問がある場合は、お問い合わせください。{line_break}{link}",link:"お問い合わせ"},user_settings$1={languages:"言語",currency:"通貨",logout:"ログアウト"},coming_soon$1={title:{desktop:"近日公開",tablet:"近日公開",mobile:"近日{line_break}公開"},description:"Wepinサービスを段階的に準備中です。{line_break}ご利用の際に便利にご利用いただけるよう努めています。{line_break}少々お待ちください。"},reset_pin$1={title:"PIN番号変更",sub_title:"PIN番号変更",description:"各ウォレットのPIN番号を管理および変更できます。PIN番号はウォレットが管理するプライベートキーを暗号化するために重要です。サービス内での資産取引に使用されるため、慎重に扱ってください。",current_pin:"現在のPIN番号",new_pin:"新しいPIN番号",check_pin:"PIN番号を確認",current_pin_placeholder:"現在のPIN番号を入力してください（6〜8桁）",new_pin_placeholder:"新しいPIN番号を入力してください（6〜8桁）",check_pin_placeholder:"新しいPIN番号をもう一度入力してください。",complete:"PIN番号の変更が完了しました。"},security$1={setting:{title:"セキュリティ設定",otp_setting_title:"OTP設定",otp_setting_desc:"資産を安全に保護するために、OTP（ワンタイムパスワード）認証の設定をお勧めします。OTP認証を設定すると、ウォレットのバックアップやハッキング行為に対して安全に資産を保護できます。",otp_toggle:"二要素認証セキュリティ設定",recovery_code_check:"確認済み",recovery_code_uncheck:"未確認",recovery_code_desc:"デバイスにアクセスできず、二要素認証コードを受信できない場合は、リカバリーコードを使用してアカウントにアクセスできます。"},set_otp:{header:"OTP登録",phrase:{install_app:"アプリをインストール",verify_qr:"QRコードをスキャン",verify_code:"認証"},start_title:"二要素認証（OTP）を有効化しますか？",start_desc:"二要素認証を設定すると、未認証のデバイスからの不正な送金がOTP認証なしではできなくなります。これにより、取引がOTP認証なしでは実行できなくなり、アカウントのセキュリティが向上します。",alert_desc:"資産転送中のセキュリティを強化するため、二要素認証を使用できます。",not_today:"今日は表示しない",btn_after:"後で",btn_set_2fa:"有効にする",btn_start:"二要素認証の設定を開始",complete_title:"二要素認証（OTP）の有効化が完了しました。",complete_desc_title:"アカウントを安全に保護するために、資産転送時には二要素認証が実行されます。",complete_desc_1:"設定 ＞ セキュリティ ＞ OTP設定から登録済みのOTPをリセットできます。",complete_desc_2:"新しいデバイスを使用する場合は、新しいデバイスで再度OTPを設定する必要があります。",complete_desc_3:"デバイスの紛失やアプリの削除によりGoogle OTPにアクセスできなくなった場合、使用制限が発生する場合があります。",recovery_desc:"デバイスにアクセスできず、二要素認証コードを受信できない場合は、リカバリーコードを使用してアカウントにアクセスできます。",btn_recovery:"表示",btn_ok:"確認"},install_guide:{header:"アプリのインストールガイド",title_1:"1. アプリをインストール",desc_1:"Google Play（Android）またはApp Store（iOS）から携帯電話にGoogle Authenticatorをインストールしてください。",title_2:"2. Wepinに戻る",desc_2:"インストールが完了したら、Wepinに戻って次の手順に従ってください。",btn_complete:"ガイドを見ました"},install_app:{title:"モバイルで二要素認証アプリをインストール",go_guide:"ガイドを見る",auth_desc:"App Storeからモバイルに二要素認証アプリをダウンロードおよびインストールした後、このページに戻ってください。",click_desc:"以下の「インストールに移動」ボタンをクリックすることで、Google Authenticatorアプリをインストールできます。",btn_next:"次へ",btn_install:"インストールに移動"},verify_qr:{title:"QRコードをスキャン",desc:"QRコードをスキャンするか、下記のコードをOTP認証アプリにコピー＆ペーストしてください。",install_app:"インストール後、Google Authenticatorでスキャンしてください。",next:"次へ"},verify_code:{desc:"OTPアプリから認証コードをコピーし、以下に貼り付けてください。",desc_web:"OTPアプリで認証コードを確認した後、入力してください。",input_msg:"Google OTPで生成された6桁の認証コードを入力してください。",info:"QRコードの登録後、WepinサービスのOTP認証コードを入力してください。",btn_auth:"認証",fail:"認証に失敗しました。"},otp_auth:{title:"OTPで認証",desc:"OTPアプリで認証コードを確認した後、入力してください。",input_msg:"入力してください。",problem:"問題が発生しましたか？",link:"リカバリーコードを使用",invalid_otp:"認証コードが間違っています。もう一度お試しください。"},recovery_auth:{title:"リカバリーコードを使用",desc:"デバイスにアクセスできない場合は、リカバリーコードのいずれかを入力して認証してください。使用済みのリカバリーコードは再利用できません。",input_msg:"有効なコードを入力してください。",auth_info:"新しいデバイスで二要素認証を使用するには、二要素認証を無効にしてから再度設定する必要があります。",problem:"リカバリーコードを忘れましたか？",link:"お問い合わせ",invalid_otp:"無効な認証コードです。もう一度お試しください。"},recovery_code_check:{header:"リカバリーコードを表示",title:"リカバリーコード",desc:"デバイスにアクセスできず、二要素認証コードを受信できない場合は、リカバリーコードを使用して復旧できます。",new_info:"新しいコードが既存のコードに置き換わりました。",info:"リカバリーコードは安全な場所に保管してください。",info_desc:"このコードは、二要素認証コードを受信できない状況での唯一の復旧手段です。このコードを失うと、復旧が不可能になるため、安全に保管してください。",btn_download:"ダウンロード",btn_print:"印刷",btn_copy:"コピー",new_code:"コードを生成",new_code_info:"新しいリカバリーコードを生成する際は、新しいコードをダウンロードまたは印刷してください。以前のコードは無効になります。",print_title:"これがWepin二要素認証のリカバリーコードです。",save_code_android:"バックアップコードのスクリーンショットがギャラリーに保存されました。",save_code_ios:"カメラロールに保存されました。"},otp_disable:{header:"二要素認証セキュリティを無効にする",alert:{title:"二要素認証セキュリティの無効化を確認",desc:"二要素認証セキュリティを無効にすると、認証プロセスを再開する必要があります。本当に無効にしますか？",btn_cancel:"キャンセル",btn_disable:"無効にする"}}},my_wallet$1={title:"マイウォレット",total_assets:"総資産",send:"送金",receive:"受け取り",default:"デフォルトウォレット",create:"ウォレットを追加",search:"検索",show_settings:"設定を表示",add_account:"アカウントを追加",no_account:{description:"Wepinではマルチウォレットをサポートしています。{line_break}コインを追加してください。",goto_service_guide:"サービスガイドに移動"},provider_info:"CoinGecko提供",create_option:{new:"新しいウォレットを作成",other:"別のウォレットを追加",recover:"ウォレットを復元"},recover_wallet:{input_mnemonic:"ニーモニックコードを入力してください。",input_label:"ウォレット名を設定してください。",guide:"24語を入力してください。",btnCopy:"貼り付け",btnClear:"リセット",complete:"ウォレットの復元が完了しました。",complete_err:"ウォレットの復元中にエラーが発生しました。",error:{mnemonic:"入力されたニーモニックコードが正しくありません。もう一度確認してください。"}}},wallet_manage$1={title:"ウォレットの管理",default_wallet:"デフォルトウォレットに設定",label_modify:"名前を編集",modify_info:"10文字以内で名前を入力してください。",modify_info_placeholder:"ウォレット名を入力してください。",backup:"バックアップ",is_backuped:"すでにバックアップされています。",delete:"削除",delete_disabled:"デフォルトウォレットは削除できません。",delete_disabled_account:"まずアカウントを削除してください。",change_pin:{title:"PIN番号を変更",sub_title:"PINを変更",info:"現在のPIN番号を入力した後にPIN番号を変更できます。",description:"各ウォレットのPIN番号を管理および変更できます。PIN番号は、ウォレットが管理する秘密鍵を暗号化するために重要です。サービス内での資産取引に使用されるため、注意して扱ってください。",current_pin:"現在のPIN",new_pin:"新しいPIN",check_pin:"PINを確認",current_pin_placeholder:"現在のPINを入力してください。（6〜8桁）",new_pin_placeholder:"新しいPINを入力してください。（6〜8桁）",check_pin_placeholder:"新しいPINをもう一度入力してください。",new_pin_error:"6〜8桁の数字を入力してください。",check_pin_error:"入力された番号が一致しません。",complete:"PINの変更が完了しました。"},backup_process:{phrase:{notice:"注意",input_pin:"PINを入力",verify_otp:"OTPを確認",check_secret:"シークレットフレーズ",verify_secret:"確認"},title:"ウォレットのバックアップ",title_verify:"ウォレットの確認",info:"Wepinでは、別途バックアップを行わなくても資産は安全に保管されています。",notice:"ウォレットのバックアップとは、復号化されたウォレット上の個人鍵のデータを特殊なシークレットワード(以下、ニーモニックコード)で保存されるプロセスを意味します。",caution:"この画面を他人に表示したり送信しないでください。",caution_detail:"ニーモニックコードを他人に知られてしまうと大切な暗号資産に何らかの被害がおよぶリスクが高まりますので、取り扱いの際には十分お気をつけください。",caution_custody:"もしニーモニックコードを紛失してしまうとウォレット上の暗号資産のリカバリができなくなります。",notice_custody:"万が一の場合に備え、メモなどに控えを取り安全な場所にて大切に保管してください。",check_confirm:"注意事項を読み、同意します。",check_mnemonic:"ニーモニックコードの確認",mnemonic_desc:"24語のコードの内容と順序を安全な場所に保管してください。{line_break} 他人に表示したり送信しないように注意してください。",set_otp:"OTP(ワンタイムパスワード)の設定",btnCopy:"コピー",mnemonic_guide:"ニーモニックコードはこの画面上のみ確認することができます。他のページに画面が切り換わると情報保護のため自動的に情報が削除されますのでご注意ください。",verify_mnemonic:"ニーモニックコードの検証",verify_desc:"24語を正しい順序でドラッグアンドドロップしてください。",drag_notice:"ニーモニックコードの順序が間違っています。順序を再度確認してください。",cancel_msg:"ウォレットのバックアップをキャンセルしますか？",cancel_warn:"ウォレットのバックアップを中止すると、再度バックアップを開始する際に最初からやり直す必要があります。",btn_back:"戻る",btn_cancel:"キャンセル",complete_desc:"ウォレットの回復時にシークレットフレーズは重要です。アカウントと資産にアクセスするための重要な情報です。紛失すると資産を回復できなくなるため、安全に保管してください。",complete_add_desc:"ウォレットの削除を続行してください。",complete_message:"ウォレットのバックアップが完了しました。",btn_complete_after:"ウォレットの削除に進む"},delete_wallet:{title:"ウォレットの削除",sub_title:"ウォレットのバックアップ後に削除可能です。",desc:"ウォレットのバックアップとは、ウォレットの秘密鍵を24語のシークレットフレーズ（ニーモニックコード）としてエクスポートして保存するプロセスです。後でウォレットを復元するために使用できます。",desc_verify:"ウォレットのバックアップ手順の一部が完了しました。シークレットフレーズ（ニーモニックコード）の検証手順を完了してください。",exec_delete:"ウォレットのバックアップが完了し、削除が進行中です。",caution:"ウォレットを削除すると、ウォレットに関連付けられたすべてのアカウント情報と資産が永久に削除され、WEPINでは回復できません。ウォレットの削除は、PINを入力した後に完了します。",confirm_1:"ウォレット削除ガイドラインを確認しました。",confirm_2:"ウォレットが削除された後は回復できませんことに同意します。",complete:"ウォレットの削除が完了しました。",complete_err:"ウォレットの削除中にエラーが発生しました。",confirm_backup:"ウォレットのバックアップ",confirm_verify:"検証を進行"}},show_settings$1={title:"設定を表示",layout:"レイアウト",sort:"並べ替え",edit_list:"リストを編集",hide_little:"少額を非表示"},change_layout$1={title:"レイアウト",card:"カードビュー",list:"リストビュー",group_mainnet:"メインネットへのリンク"},sort_account$1={title:"並べ替え",name:"名前順",balance:"残高",recent:"最近の取引"},edit_list$1={title:"リストを編集"},send$1={phrase:{select_account:"アカウントを選択してください",input_address:"アドレスを入力",input_amount:"金額を入力",check_quote:"確認",input_pin:"PINを入力",verify_otp:"OTPを確認"},choose_account:"送信元のアカウントを選択してください。",search:"検索",network:"ネットワーク",my_account:"マイアカウント",which_account_to:"どのアカウントから送金しますか？",where_to:"送金先はどこですか？",address_to:"送金先",paste:"貼り付け",check_address:"入力されたアドレスを確認してください",check_address_info:"正しく入力されているかどうかを確認してください。",default_address_format:"デフォルトアドレスフォーマット（Ethereumベース）",default_address_format_info:"{network}アドレスと同じアドレス",insufficient_balance:"{network}残高が不足しているため、送金できません。残高を補充してからもう一度お試しください。",address_input_placeholder:{default:"アドレスを入力してください。",ethereum:"Ethereumアドレスガイド：0x....から始める",bitcoin:"Bitcoinアドレスガイド：0x....から始める",xrp:"Xrpアドレスガイド"},invalid_address:"無効なアドレスです。もう一度確認してください。",caution:"間違ったアドレスや互換性のないアドレスは資産の損失につながる場合があります。ご注意ください。",from_my_wallet:"マイアカウントから選択",how_much_to_send:"いくら送金しますか？",send_all:"すべて送信 ‧ {amount} {symbol}を入力",network_fee:"ネットワーク手数料",network_fee_sub:"Wepinは最適化された手数料を提案します。",alert:{too_much:"送金したい金額が残高を超えています。残高を確認してください。",is_not_a_number:"入力された金額の形式が正しくありません。",not_zero:"0より大きい金額を入力してください"},select_network_fee:"ネットワーク手数料を選択",setting_network_fee:"手数料を直接設定",network_fee_content:"手数料は{network}ネットワークで発生し、ネットワークトラフィックに基づいて変動する場合があります。Wepinはこれらの手数料から利益を得ません。",delay_sub:"時間は推定値です。",network_fee_options:{name:{low:"通常",medium:"高速",high:"最速",custom:"手動設定"},delay:{"45sec":"45秒以上","30sec":"30秒未満","15sec":"15秒未満"}},setting:"設定",custom_sub:"手順を知っている場合にのみ設定してください。不正確な情報は失敗したり中断したりする可能性があります。",gas_limit:"ガスリミット（通常21,000〜500,000）",gas_price:"ガス手数料",please_confirm:"確認してください。",send_amount:"送金金額",receive_address:"受信アドレス",total:"合計",pin_need:"PINを入力してください",pin_need_sub:"PIN番号を入力してください。",pin_caution:"6〜8桁のPIN番号を入力してください。",pin_caution_alert:"PIN番号は6〜8桁の個人識別番号です。",requested:"送金リクエストが送信されました。",requested_sub:"ネットワークトラフィックと手数料設定に応じて、取引の確認に時間がかかる場合があります。",request_failed:"送金に失敗しました。",request_pin_error:"入力された番号が一致しません。",request_failed_sub:"遅れた時間のため、送金に失敗しました。",request_pin_error_sub:"残り{remainPinTryCnt}回の試行",locked_message:"このウォレットは10回の不正なPIN試行によりロックされました。24時間後にリトライできます。",locked_message_sub:"残り時間{remain_time}",locked_message_sub_unlock:"ロック解除",locked_placeholder:"ロックされています。",retry:"再送信",retry_pin:"もう一度試す",tag:"宛先タグ",tag_sub:"オプション（取引所送金の場合必須）",send_transaction:"NFTを送信",send_coin_transaction:"{symbol}を送信",transaction_detail:"取引詳細を表示",transfer_history:"送金履歴",tx_id:"TXID",total_amount:"合計金額",more:"その他",hide:"非表示",go_back_wallet:"ウォレットに戻って資産を管理を続けてください！"},initial_screen$1={emphasis:"送金",contents:"{emphasis}をキャンセルしてウォレット画面に戻りますか？",cancel:"いいえ",confirm:"はい"},nft$1={phrase:{select_nft:"NFTを選択",input_address:"アドレスを入力",select_fee:"手数料を選択",confirm:"最終確認",input_pin:"PINを入力",verify_otp:"OTPを確認"},title:"私のNFT",select_wallet:"ウォレットを選択",total_nft:"すべてのNFT {nftTotalLength}",latest_order:"最新の注文",name_order:"名前で並べ替え",add_direct:"直接追加",contracnt_address:"契約アドレス",token_ID:"トークンID",token_type:"トークン規格",nft_send:"NFTを送信",nft_hide:"NFTを非表示",collection_change:"コレクションを変更",collection_name:"コレクション名",filter:"フィルタリング",selected_mainnet:"お持ちのメインネットワークを選択してください。",history_none:"まだNFTがありません。",cant_load:"コンテンツを読み込めませんでした。",img_load_error:"画像を読み込めません。",send:{selected_count_message:"選択した{count}個のNFTを送信します。",selected_message:"選択したNFTを送信します。",memo:"メモ",please_enter_it:"入力してください。",count:"単位",sendNft:"送信するNFT"},send_complete:{title:"NFTの送信リクエストが送信されました。",description:"ネットワークトラフィックと手数料設定に応じて、取引が確認されるまでに時間がかかる場合があります。{line_break}取引結果は取引履歴で確認できます。"},refresh:"更新",loading:"読み込み中",disabled:"無効",pending:"保留中"},receive$1={title:"受け取る",qr_title:"{coin}を受け取る",select_account:"受け取るアカウントを選択してください。",info_support_nft:"NFTをサポートしていないネットワークの場合、このラベルが表示されます。",network:"ネットワーク",copy:"アドレスをコピー",activate_account:"アカウントをアクティブにする",doneCopy:"コピーが完了しました。",footer_notice:"{coin}以外のコインを受け取る場合、エラーや損失が発生する可能性があり、復旧はできません。",cant_receive:"{network}ネットワークからNFTアイテムを受け取ることはできません。",can_receive:"{network}ネットワークからNFTアイテムを受け取ることができます。",scan:{qr_title:"コードをスキャン",upload_title:"画像をアップロード",qr_info:"QRコードをスキャンするか、QR画像をアップロードしてみてください。",file_drag:"ここに画像をドラッグするか、{file_upload}します。",file_upload:"QR画像をアップロードします。",loading:"読み込み中。"}},create_account$1={add_account:"アカウントを追加",choose_account:"アカウントを選択してください。",add_token:"ユーザートークンを追加",input_name_title:"名前を入力",input_name_sub:"1つのウォレットに複数の同じアカウントを登録できます。識別するために名前を入力してください。",network_for_tokens_title:"メインネットワークのアカウントがありません。{line_break}トークンを追加するにはメインネットワークのアカウントを追加してください。",network_for_tokens_sub:"1つのウォレットに複数の同じアカウントを登録できます。{line_break}識別するために名前を入力してください。",name_placeholder:"名前を入力してください。",input_name_caution:"アカウント名は14文字以内で、英数字と特殊記号で構成されている必要があります。最初の文字はアルファベットである必要があります。",selected_network_title:"ネットワークを選択",selected_network_sub:"手数料支払いのためのトークンのネットワークを選択してください。",testnet:"テストネット"},account_detail$1={send:"送信",receive:"受信",stat:{title:"{symbol}価格統計",contract:"契約",info:"{symbol}情報",market_price:"市場価格","24h_low_high":"24時間の最低/最高","7d_low_high":"7日間の最低/最高",trading_vol:"取引量",market_cap_rank:"時価総額ランク",market_cap:"時価総額",market_cap_domi:"時価総額シェア",turnover_ratio_of_market_value:"取引量{line_break}/ 時価総額",all_time_high:"過去最高値",all_time_low:"過去最安値"},history:{title:"取引履歴",send_title:"{coin}を送信",receive_title:"{coin}を受信",none:"まだ取引履歴はありません。Wepinで資産を送受信してください。"}},transaction_detail$1={header:"{coin}を受信しました",transaction_status:"取引状況",status:{confirm:"確認済み",pending:"保留中",failed:"失敗"},request_date:"取引リクエスト時刻",amount:"取引金額",fee:"手数料",network:"ネットワーク",sender:"送信元",receiver:"受信元",show_in_scan:"ブロックエクスプローラーで確認",TXID:"TXID"},account_manage$1={change_label:"名前を編集",delete:"削除"},change_label$1={title:"名前を編集"},hide_account$1={title:"アカウントを削除",description:{delete_available:"アカウントを削除すると、ウォレットリストから削除され、このアカウントを表示できなくなります。本当に削除しますか？",has_token_account:"このアカウントには残りの<b>サブトークンアカウント</b>があります。本当にアカウントを削除しますか？",has_nft:"このアカウントには<b>{count}個のNFT</b>があります。本当にアカウントを削除しますか？",has_token_account_and_nft:"このアカウントには<b>{count}個のサブトークンアカウントとNFT</b>があります。本当にアカウントを削除しますか？",has_balance:"このアカウントには<b>{balance} {symbol}</b>の残高があります。本当にアカウントを削除しますか？"},notice:"アカウントは削除しても、リストからいつでも確認および再追加できます。追加されたアカウントの資産は以前と同じように復元されます。"},list_header$1={name:"名前",market_price:"現在価格 / 変動率（過去24時間）",current_price:"現在価格",change_rate:"変動率",assets_with_a_quantity:"数量のある資産",conversion_amount:"換算金額"},pin_alert$1={locked_message:"ウォレットはPINを10回間違えたためロックされています。",locked_remain:"残り時間: {remain_time}",locked_block:"ウォレットはPINの確認後、24時間後に解除されます。",locked_info:"取引はPINの確認後に可能です。",unlock:"ロック解除"},unlock_wallet$1={title:"ウォレットのロック解除",sub_title:"機能がロックされています",description:"ウォレットのロック解除を行うと、この機能を使用できるようになります。",pin_description:"PIN認証が完了すると、ウォレットがロック解除されます。",complete:"ウォレットが正常にロック解除されました。",unlock_pin_verify:"PIN認証でロック解除"},setting$1={title:"設定",profile:{title:"プロフィール",nickname:"ニックネーム",placeholder:"ニックネームを入力してください。",email:"Eメール",auth_info:"{auth}アカウントを使用して登録しました。"},service:{title:"サービス",set_alarm:"通知設定",email_alarm:"Eメール通知の設定"},security:{title:"セキュリティ"},history:{title:"取引履歴"}},global$2={cancel:"キャンセル",confirm:"確認",delete:"削除",none:"なし",hours:"{hours}時間",minutes:"{minutes}分",less_minutes:"1分未満"},dashboard_detail$1={title:"ダッシュボード",connected_apps:"接続されたアプリ",read_more:"詳細を見る",hide:"非表示",tab_nft:{title:"NFT",status:"私のNFTステータス",sub_status:"所有するNFTのステータスを表示"},tab_asset:{title:"資産",status:"私の資産ステータス",sub_status:"所有する資産のステータスを表示",toggle:"数量が0の資産を非表示にする",toggle_popper:"数量が0の資産を非表示にすることができます。"},tab_app:{title:"アプリ",status:"アプリごとのステータス",sub_status:"アプリごとに所有する資産のステータスを表示",my_nft:"私のNFT {count}",my_asset:"私の資産",no_connected_app:"接続されたアプリはありません。{line_break}さまざまなアプリをWEPINで接続して資産を管理してください。"},tab_select:{total:"合計"},chart:{total_assets:"総資産構成",mainnet_config:"メインネット構成",mainnet:"カテゴリー",amount:"金額",count:"数量",weight:"割合",more:"詳細",mobile_info:"グラフを1秒以上押すと詳細な割合が表示されます。",no_nfts:"まだ表示するNFTはありません。",no_assets:"まだ表示する資産はありません。",no_assets_sub:"アカウントを追加して資産を管理してください。"},profile_type_error:"ファイルは画像ファイルではありません。画像ファイル（JPG、JPEG、GIF、PNG）をアップロードしてください。"},error$1={"502_title":"CODE:502","502_message":"未知のエラーが発生しました。",network_err_title:"ネットワークエラー",network_err_message:"サーバーへの接続中にエラーが発生しました。"},promotion$1={apply:{join:"参加する",finished:"イベントは終了しました",period:"終了日: {to}",event_finished:"[{customerName}] NFT発行イベントは終了しました。次回もご参加ください。",no_contents:"コンテンツを読み込めませんでした",remain_time:"{d}日 {h}時間 {m}分 {s}秒で終了します。",end_time:"終了まであと、",end_notice:"お知らせ",end_airdrop:"AirDrop イベントは終了となりました。",next_time:"次回ご参加をお待ちしております。",how_to_join:"参加方法",finish_desc_pre:"このイベントは終了しました",finish_desc_post:"。",email_desc:"NFTを受け取るためのメールアドレスを入力してください。",inquiry:"お問い合わせ",nft_promotion_q:"独自のNFTイベントを開催したいですか？",event:" ギブアウェイイベント",event_finish:"イベント終了のお知らせ",mission_airdrop:"以下のミッションをクリアして、AirDropをお受け取りください。",new_tab:"ボタンをタップすると、新しいウィンドウが開きます。",progress_info:"{progress} クリア",twitter:"Twitter",twitterX:"X(旧Twitter)",follow:"フォロー",signup:"会員登録",placeholder:"アカウントをご入力ください",close_box:"{provider}用アカウント入力を非表示",open_box:"すでにフォロー済みの場合は、ここをタップ！",app_join_open_box:"会員登録には、前の画面で記入いただいたEメールアドレスをお使いください。",follow_complete:"フォロー時に使用したあなたの{provider}のアカウント名をご記入ください。",quest_complete:"★クエストクリア★",get_reward:"{symbol}をお受け取りください。",receive_reward:"リワード獲得",share_reward_title:"AirDropを共有して{symbol}をゲットしよう！",share_reward_description:"フレンドと共有した数に応じて追加リワードが漏れなく当たります！",share_button:"フレンドと共有",later_button:"今度にする",congratulations:"おめでとうございます！",received_from_creator:"{creator}から{symbol}が届きました！",receive_coin:"受け取ったコイン数",available_after_event_end:"イベント終了後に受け取ることができます。",check_my_rank:"マイランキングを確認",create_account:"{symbol}のアカウントが必要です。私のウォレットに追加してください。"},invalid_quantity:{label:"発行終了",title:"全てのNFTが発行されました",message:"申し訳ありませんが、全てのNFTが既に発行されています。別のNFTを受け取ってください。"},nft_event_minted:{title:"[{promotionName}] NFTの発行が完了しました",message:"このメールアドレスでNFTは既に発行されています。1つのIDにつき1つのNFTしか発行できません。{email}でログインしてNFTを確認してください。"},nft_event_attended:{title:"[{promotionName}] NFT発行リクエストが送信されました",message:"NFTの発行手続きを続行するためのリンクが、提供された{email}に送信されました。{line_break}続行するにはメールを確認してください。",desc:"メール内のリンクをクリックすると、Wepinのログイン/サインアップページにリダイレクトされます。メールが届かない場合は、再送信オプションを選択してください。"},nft_event_duplicate:{title:"メール確認要求情報",message:"この{email}はすでに申し込みに使用されています。NFTの発行手続きを続行するにはメールを確認してください。"},nft_event_completed:{header:"おめでとうございます！ {customerName}から{tokenName}を受け取りました。",info:"NFT情報",issuer:"発行者",receiver:"受信者アドレス",token_desc:"説明"},event_login:{member_join:{tab_title:"既存のメールアドレスを使用してNFTを受け取るだけです。 (1/3)",tab_title_airdrop:"普段お使いのEメールアドレスをそのまま入力するだけで、AirDropが簡単に受け取れます！",tab_title_member:"既存のアカウントでログインし、NFTの受け取りを続行してください。",tab_title_member_airdrop:"ログイン後にAirDrop が受け取ります。",nfc_title:"ログイン後、以下のNFTを受け取ってください。",main_title:"サインアップ",auth_mail_desc:"サインアップを続行するために、確認メールが{email}に送信されます。",simple_join_title:"ソーシャルログイン",sso_desc_colored:"特定のNFTを受け取るためには、",sso_desc_normal:"{accent}を使用して簡単にログインしてNFTを受け取ってください。",sso_desc_normal_airdrop:"AirDrop 機能の利用には、{accent}を使ってログインする必要があります。",btn:"確認メールを送信",simple_login_title:"ソーシャルログインで続行",separate_title:"または",continue_email:"メールアドレスで続行"},set_password:{tab_title:"残りわずかなステップです！ (2/3)",tab_title_default:"完了までもう少しです！"},set_pin:{tab_title:"最終ステップです！ (3/3)",tab_title_default:"完了まであと僅かです！",desc:"NFTを受け取るには、{networkName}アカウントが必要です。{line_break}デフォルトのウォレットPINを入力してアカウントを追加してください。",desc_airdrop:"AirDrop 受信用の{networkName}アカウントが必要です。アカウントを作成するためにパスコードをご入力ください。",remember:"重要",remember_desc_1:"PINは口座のロック解除や資産取引に使用されるパスワードです。必ず秘密にして自分だけが知っているようにしてください。",remember_desc_2:"PINを10回以上間違えると、ウォレットが24時間ロックされます。PIN番号を思い出すためには、ヒントメールを参照してください*。",remember_desc_3:"*ヒントメールとは何ですか？それはウォレット作成時に受け取ったメールです。PIN番号を推測するのに役立つ情報が含まれています。"},referral:{popup:{close:"以下に参加"}}},loading:{search_wallet:"ウォレットを検索中...",mint_nft:"NFTの発行中..."},btn:{go_wepin:"Wepinで確認",resend_email:"メールを再送信",go_nft:"Wepinで私のNFTを確認"},error:{expired:"発行有効期限が切れています。",busy:"多くのユーザーがアクティブです。もう一度お試しください。",exceed:"準備されたすべてのNFTが枯渇しました。",finished:"イベント期間が終了しました。",pin_caution:"PIN番号を10回間違えると、ウォレットが24時間ロックされます。"},contact:{type_form:"https://wepinwallet.typeform.com/NFT-HUB-LINK-en"}},nfthublink$1={maintenance:{title:"サービスメンテナンスのお知らせ",desc:"より安定したサービス提供のため、メンテナンス中です。{line_break}ご迷惑をおかけして申し訳ありません。",date:"[メンテナンス時間] {startDate} - {endDate}"},token_expired:"トークンの有効期限が切れています。",invalid_path:"不正なアクセスパスです。"},dashboard_title$1={setting_security:"セキュリティ設定",setting_2fa:"二段階認証設定",unsetting_2fa:"二段階認証セキュリティを解除",check_recoverycode:"リカバリーコードを表示",regist_otp:"OTP 登録",setting_service:"サービス設定"},drops$1={title:"Drops",live_event:"現在開催中のイベント",end_event:"終了済みイベント",joined:"参加完了 {unicode}",hot:"人気イベント{unicode}",prize_exhausted:"残りの報酬なし",period_expired:"期間終了{unicode}",remain_reward:"残ったトークン{remain}/{total} {symbol}",join_count:"現在参加済み人数{count}人",empty_event:"現在開催中のイベントがありません。",empty_description:"次回のイベントをお楽しみください。"},drops_detail$1={view_detail:"詳細を表示",event_end:"イベントは終了となりました。",amount_receive:"今まで受け取った数",received_coin:"受け取ったコイン数",shared_end:"フレンドと{count}回共有済み",shared_friends:"フレンドとの共有数",after_end_event:"{end_date}イベント終了後に受け取ることができます。",ongoing_event:"現在開催中のイベント",view_all_event:"全てのイベントを表示",event_count:"{count}個",receive_history:"受け取り履歴",bonus_mission:"追加ミッション",bonus_mission_trophie:"追加リワードミッション",clear_bonus_mission:"追加ミッションをクリアしました",share_friends:"フレンドと共有!",share_friends_trophie:"ランク上げ！",bonus_reward:"{count}人のフレンドの方と共有することで追加コインがゲットできます",bonus_reward_trophie:"共有数の多い方には、たくさんの追加リワードが漏れなく当たります！",celebrate_mission:"「フレンドに共有」でランク1位となりました！",celebrate_mission_sub:"追加ミッションの報酬として{count} {symbol}を更に獲得しました！",shared_with_total:"合計{count}人と共有成功！",please_share:"フレンドと共有してください",mission_end:"ミッション終了",share_get_bonus:"フレンドと共有して追加リワードをゲット",share_get_bonus_clears:"スタンプミッションのリワードを獲得しました",bonus_end:"共有ミッションは、{end_date}までとなっています。",mission_end_when:"ミッションは、{end_date}をもって終了となりました。",claim_end:"{end_date}まで受け取ることができます。",clears_missin_end:"終了まであと、{end_date}",clears_missin_end2:"{end_date}以降配順次布予定です。",raise_ranking:"もっと共有してさらにランクUP",others_ranking:"他ユーザーのランキングを表示",ranking:"ランキング",my_records:"マイレコード",empty_record:"以前共有したことがないようです。",event_list:"イベントリスト",receive_coin:"コイン受け取り",receive_total:"{quantity}から{symbol}が届きました！",show_reward_history:"累積詳細を表示",show_reward_history_quest:"クエスト",show_reward_history_stamp:"フレンド招待用スタンプ",show_reward_history_rank:"フレンド招待ランク{rank}位"},agree_terms$1="{term}をよく読み、当該の内容に同意します。",personal_terms$1="プライバシーポリシー",term$1="サービス利用規約",term2$1="利用規約",term_link$1="https://www.notion.so/iotrust/Terms-of-Service-e1e527fa5efa4d7bad5e9b820d267b83?pvs=4",copyright$1="© 2024. IoTrust All rights reserved",service_terms_url$1="https://delivery.wepin.io/service/terms/untitled-en.html",personal_terms_url$1="https://delivery.wepin.io/service/privacy/untitled-en.html",nft_hub_link_url$1="https://delivery.wepin.io/service/privacy/nfthub-link/en.html",droplink_url$1="https://delivery.wepin.io/service/privacy/droplink/en.html",hublink_share_promo$1={btn_share:"共有",notice_title:"お知らせ",notice_txt_1:"共有数はNFTの発行完了数に基づきます。",notice_txt_2:"イベント期間：{startDate} ～ {endDate}",notice_txt_3:"ランキングは24時間ごとに更新されます。",notice_txt_4:"不正行為で参加または優勝した場合、イベント参加や受賞が取り消されることがあります。",notice_txt_5:"NFT発行時に登録したメールで連絡が取れない場合や個人情報開示に同意しない場合、または賞品受取の意思を示さない場合、イベントの受賞が取り消されることがあります。",notice_txt_6:"スターバックスギフト券は国内携帯電話番号にのみ配布可能です。",notice_txt_7:"NFT共有イベントの賞品は所得税法に従い、他の所得税を支払った後の金額です。",notice_txt_8:"賞品は受賞者発表と個人情報収集期間終了後に配布されます。",event_subtitle:"参加方法",event_desc_1:"共有をクリックして新年のカードを送信",event_desc_2:"友達がリンクを通じて新年のカードNFTの発行を完了するとランキングが反映されます",rank:"{number}位",count:"{number}回",banner_btn_txt:"表示",ranking_title:"TOP {number}",banner_label:"参加イベント",bonus_mission:"追加ミッション {number}",reward_airdrop:"AirDrop リワード",input_email:"AirDrop用のEメールアドレスをご入力ください。",live_event:"現在イベント開催中",live_share:"共有数リアルタイムランキング",already_join:"AirDropによるリワードは受け取りましたか?",check_reward:"受け取ったリワード内容を確認",toast_check_reward:"現在参加中のイベント情報が見つかりませんでした。イベントにご参加ください",contact_airdrop:"自分がホストとなってAirDrop イベントを開催してみませんか?",caution_title:"イベント参加時における注意事項",caution_1:"イベント期間は、{startTime}から{endTime}までとなっています。",caution_2:"ランキング情報は、24時間ごとに更新されます。",event_title:"イベント",info_message_count:"{count}. {message}",event_message:"{prize}（当選者{numberOfWinner}人）",diff_days:"{date}日目",done_copy:"リンクがコピーされました",ad_info:"広告情報の受信",ad_info_title:"広告情報の受信に同意しますか"},droplink$1={check_email_title:"Eメールをご確認ください。",check_email_content:"{email}アドレス宛てにEメールが送信されました。メール本文を確認して、AirDropのリクエストを完了してください",check_email_detail:"Eメール本文中にあるリンク先からは、WEPINのログイン/会員登録が行えます。もし受信箱にEメールが届かない場合は、メールフィルタリングをご確認の上「Eメール再送信」をお試しください。",check_set_pin_title:"AirDropのリクエストがまだ完了していません。",check_set_pin_content:"以前申し込んだ履歴が残っています。ご登録の際にご記入いただいた{email}を使ってログインしたあと、新しいパスコードを設定することで完了となります。",check_set_pin_button:"パスコード設定",already_rewarded_title:"AirDropはすでにお受け取り済みのようです。",already_rewarded_content:"以前申し込んだ履歴が残っています。 AirDropの発行は、1つのアカウントにつき1回までとなっています。ご登録の際にご記入いただいた{user_email}を使ってログインした後、AirDropの過去履歴をご確認ください。",already_rewarded_button:"受信履歴の確認",progress_event:"現在開催中のイベント",end_event:"終了済みイベント",mismatch_email_title:"リクエストの際にご記入いただいたEメールアドレスをおつかいください。",mismatch_email_content:"AirDrop リクエストの際にご入力いただいたEメールアドレス{email}を使ってログインしてください。",back:"戻る"},ja={login:login$1,signup:signup$1,signup_with_email:signup_with_email$1,signup_email_verify_complete_sdk:signup_email_verify_complete_sdk$1,signin_with_email:signin_with_email$1,signin_with_password:signin_with_password$1,reset_email:reset_email$1,reset_authentication:reset_authentication$1,reset_password:reset_password$1,reset_password_comfirm:reset_password_comfirm$1,user_settings:user_settings$1,coming_soon:coming_soon$1,reset_pin:reset_pin$1,security:security$1,my_wallet:my_wallet$1,wallet_manage:wallet_manage$1,show_settings:show_settings$1,change_layout:change_layout$1,sort_account:sort_account$1,edit_list:edit_list$1,send:send$1,initial_screen:initial_screen$1,nft:nft$1,receive:receive$1,create_account:create_account$1,account_detail:account_detail$1,transaction_detail:transaction_detail$1,account_manage:account_manage$1,change_label:change_label$1,hide_account:hide_account$1,list_header:list_header$1,pin_alert:pin_alert$1,unlock_wallet:unlock_wallet$1,setting:setting$1,global:global$2,dashboard_detail:dashboard_detail$1,error:error$1,promotion:promotion$1,nfthublink:nfthublink$1,dashboard_title:dashboard_title$1,drops:drops$1,drops_detail:drops_detail$1,agree_terms:agree_terms$1,personal_terms:personal_terms$1,term:term$1,term2:term2$1,term_link:term_link$1,copyright:copyright$1,service_terms_url:service_terms_url$1,personal_terms_url:personal_terms_url$1,nft_hub_link_url:nft_hub_link_url$1,droplink_url:droplink_url$1,hublink_share_promo:hublink_share_promo$1,droplink:droplink$1},login={title:"로그인",button:"{provider}로 계속하기",message1:"멀티체인에서 암호화폐와{line_break} NFT를 안전하게 관리하세요.",message2:"간편로그인으로 웹3 지갑을{line_break} 편리하게 사용하세요.",message3:"안정적인 시스템으로{line_break} 최고의 보안을 경험하세요.",signup_button:"아직 wepin 회원이 아니신가요? {signup}",signup:"회원가입"},signup={title:"회원가입",change:"변경",pin_set:{title:"기본 지갑 PIN 번호 설정",description_1:"회원가입과 동시에 기본지갑이 만들어지며, 지금 설정하는 PIN 번호로 기본지갑을 사용하실 수 있습니다.",description_2:"PIN 번호는 서비스 내 자산 거래 시 사용되므로 분실하지 않도록 유의해주세요."},pin_number:"PIN 번호",pin_number_placeholder:"PIN 번호를 입력하세요. (숫자 6~8자리)",pin_confirm:"PIN 번호 확인",pin_confirm_placeholder:"PIN 번호를 한번 더 입력해주세요.",btn_confirm:"확인"},signup_with_email={card:{title:"로그인",find_password:"비밀번호 변경",signup:"회원가입 하기",return_intro:"{app_name} 앱으로 돌아가서 내 자산을 계속해서 관리해 보세요!"},set_email:{step:"이메일주소 입력",message:"이메일 인증을 위해 확인 가능한 이메일을 입력해주세요."},authentication_email:{step:"이메일 인증",message:"입력하신 {email}로 인증 메일이 전송되었습니다. 이메일에서 인증을 완료해주세요.",desc:"이메일 인증이 완료된 경우 비밀번호 설정페이지로 이동합니다. 인증 메일이 오지 않는 경우 재발송을 선택해주세요.",button:"인증메일 재전송",button_timer:"{time}초 후 재전송 가능",widget:{message:"{email}로 인증 메일이 전송되었습니다. 이메일에서 인증을 완료해주세요."}},set_password:{step:"비밀번호 입력",setting_signup_password:"로그인 비밀번호 설정",setting_password:"비밀번호 설정",confirm_password:"비밀번호 확인",password_placeholder:"비밀번호를 입력하세요. (영문, 숫자, 특수문자 조합 8자리 이상)",confirm_placeholder:"비밀번호를 한번 더 입력해주세요.",error_verification:"영문, 숫자, 특수문자 조합 8자리 이상의 비밀번호를 입력하세요.",error_confirm:"입력하신 비밀번호와 일치하지 않습니다.",email_require:"이메일 인증 유효시간(60분)이 만료되었습니다. 이메일 인증을 다시 시도해주세요. {email_authentication}",email_authentication:"이메일 재인증 하기"},set_pin:{step:"PIN 번호 설정",step_sub:"위핀을 사용하기 전에, PIN 번호를 설정해주세요.",step_create:"에어드롭을 위해 {accent}이 필요합니다. PIN 번호를 설정해주세요.",create_wallet:"지갑 생성",message:"PIN 번호는 숫자 6~8자리로 이루어진 개인식별번호입니다.{line_break} 서비스 내 자산 거래 시 사용되므로 분실하지 않도록 유의해주세요.",emphasis_title:"기억하세요",emphasis_message_1:"계정 잠금을 해제하거나 자산을 주고받을 때 사용하는 비밀번호로, 반드시 본인만 알고 있어야 합니다.",emphasis_message_2:"10회 이상 틀릴 경우 24시간 동안 PIN이 잠기며, PIN 번호를 찾기 위해서는 힌트 메일*을 참고해야 합니다.",emphasis_message_3:"*힌트 메일이란? 지갑을 만들면 받게 되는 메일로, PIN 번호를 추측할 수 있는 내용이 포함되어 있어요.",setting_pin:"PIN 번호",confirm_placeholder:"PIN번호를 한번 더 입력해주세요.",error_confirm:"입력된 번호가 일치하지 않습니다.",change_pin_message:"PIN 번호를 바꾸고 싶으신가요?",forgot_pin_message:"PIN 번호를 잊으셨나요?",change_pin:"PIN번호 재설정",change_pin_title:"PIN번호를 재설정",change_pin_alert:"가입 시 입력하신 이메일주소로 재설정된 PIN번호를 전송합니다. 재설정 선택 후 이메일을 확인해주세요.{line_break}PIN 번호를 재설정 하시겠습니까?"},email_address:"이메일 주소",password:"비밀번호",placeholder:{email:"Email",password:"Password"},error:{formatted_email:"형식에 맞는 이메일 주소를 입력해주세요(예. sample{'@'}wepin.com)",have_existing_email:"이미 가입된 이메일 주소입니다. 다른 이메일을 입력해주세요.",have_existing:"이미 가입된 이메일 주소입니다. {button}",not_found_email:"가입되어 있지 않은 이메일입니다.",invalid_password:"비밀번호가 일치하지 않습니다.",invalid_password_text_link:"비밀번호 찾기",button:"홈으로 가기"},error_page:{title:"로그인 오류 안내",message:"로그인 과정 중 문제가 발생했습니다. 서비스 이용에 불편을 드려 죄송합니다.",prev:"이전 페이지"}},signup_email_verify_complete_sdk={email_auth_title:"이메일 인증 완료",email_auth_desc:`서비스 이용을 위해 앱으로 돌아가
이메일 인증을 마무리 해주세요.`},signin_with_email={reg_email:"이메일 주소의 형식이 올바르지 않습니다.",require_signup:"가입되어 있지 않은 이메일입니다. {signin_link}",signin_link:"회원가입 하기"},signin_with_password={email_require:"이메일 인증이 필요합니다, {email_authentication}",error_too_many_requests:"잠시 후 다시 시도해주세요",email_authentication:"이메일 인증 하기"},reset_email={header:"비밀번호 재설정",sub:"가입했던 이메일 주소를 입력해 주세요.",reset_done:"비밀번호 재설정이 완료되었습니다."},reset_authentication={message:"입력하신 {email}로 비밀번호 재설정을 위한 링크가 전송되었습니다. 이메일을 확인하여 비밀번호 재설정을 완료해주세요.",sub_message:"이메일에서 링크 클릭 시 비밀번호 재설정 페이지로 이동합니다. 메일이 오지 않는 경우 재발송을 선택해주세요.",widget:{message:"{email}로 비밀번호 재설정을 위한 링크가 전송되었습니다. 이메일을 확인하여 비밀번호 재설정을 완료해주세요."}},reset_password={new_password:"새로운 비밀번호",confirm_new_password:"새로운 비밀번호 확인"},reset_password_comfirm={message:"비밀번호 재설정이 완료되었습니다.{line_break} 새로운 비밀번호로 로그인해주세요.",sub_message:"로그인 관련 추가적인 문의는 고객센터로 문의 해주세요.{line_break} {link}",link:"문의하기"},user_settings={languages:"언어",currency:"통화",logout:"로그아웃"},coming_soon={title:{desktop:"COMING SOON",tablet:"COMING SOON",mobile:"COMING{line_break}SOON"},description:"편리하게 이용하실 수 있도록{line_break}위핀 서비스를 차근차근 준비중입니다.{line_break}조금만 기다려주세요{'!'}"},reset_pin={title:"PIN 번호 변경하기",sub_title:"PIN 번호 변경",description:"지갑 별 PIN 번호를 변경 관리할 수 있습니다. PIN 번호는 지갑에서 관리하는 개인키를 암호화 하는데 사용되는 중요한 정보입니다. 서비스 내 자산 거래 시 사용되므로 분실하지 않도록 유의해주세요.",current_pin:"현재 PIN 번호",new_pin:"새 PIN 번호",check_pin:"PIN 번호 확인",current_pin_placeholder:"현재 PIN 번호를 입력해주세요. (숫자 6~8자리)",new_pin_placeholder:"새 PIN 번호를 입력해주세요. (숫자 6~8자리)",check_pin_placeholder:"새 PIN 번호 한번 더 입력해주세요.",complete:"PIN 번호 변경이 완료되었습니다."},security={setting:{title:"보안 설정",otp_setting_title:"OTP 설정",otp_setting_desc:"안전한 자산 보호를 위해 OTP 설정을 권장합니다. OTP 인증 설정 시 타인이 지갑 백업을 시도하거나 해킹을 시도할 경우 내 자산을 안전하게 보호할 수 있습니다.",otp_toggle:"2차인증 보안 설정",recovery_code_check:"확인 완료",recovery_code_uncheck:"미확인",recovery_code_desc:"장치에 접근할 수 없어 2차인증 코드를 받을 수 없는 경우 복구 코드를 사용하여 계정에 접근할 수 있습니다."},set_otp:{header:"OTP 등록",phrase:{install_app:"앱 설치",verify_qr:"QR 스캔",verify_code:"OTP인증"},start_title:"2차 인증(OTP) 사용을 활성화 하시겠습니까?",start_desc:"2단계 인증을 설정하시면, 인증되지 않은 기기에서 누군가 자산 전송을 시도할 때 OTP 인증이 없으면 진행되지 않으므로 계정을 더욱 안전하게 보호하실 수 있습니다.",alert_desc:"자산 전송시 보안을 강화하기 위해 2차 인증을 이용하실 수 있습니다.",not_today:"오늘 하루 보지 않기",btn_after:"다음에",btn_set_2fa:"2차인증 설정",btn_start:"2차인증 설정 시작",complete_title:"2차 인증(OTP) 활성화가 완료되었습니다",complete_desc_title:"사용자님의 계정을 안전하게 보호하기 위해, 자산 전송시에 2단계 인증이 수행됩니다.",complete_desc_1:"등록된 OTP는 설정 > 보안 설정 > OTP 설정에서 초기화할 수 있습니다.",complete_desc_2:"새로운 디바이스를 사용하려는 경우 새로운 디바이스에서 OTP 설정을 다시 해야합니다.",complete_desc_3:"구글 OTP는 기기 분실이나 앱 삭제로 인해 접근할 수 없는 경우 이용에 제한이 있을 수 있습니다.",recovery_desc:"장치에 접근할 수 없어 2차인증 코드를 받을 수 없는 경우 복구 코드를 사용하여 복구하실 수 있습니다.",btn_recovery:"복구 코드 확인",btn_ok:"확인"},install_guide:{header:"2차 인증앱 설치 가이드",title_1:"1. 앱 설치하기",desc_1:"휴대폰에 구글플레이(안드로이드), 앱스토어(iOS)에서 Google Authenticator를 설치해주세요.",title_2:"2. 위핀으로 돌아오기",desc_2:"설치를 완료하고 위핀으로 돌아오신 뒤 다음 페이지의 가이드에 따라 진행해주세요.",btn_complete:"가이드 확인 완료"},install_app:{title:"모바일에 2차 인증앱 설치하기",go_guide:"가이드 보기",auth_desc:"앱스토어를 통해 모바일에 2차 인증 앱을 다운받고 설치하신 후에 현재 페이지로 돌아와 주세요",click_desc:"아래 설치하러 가기 버튼을 클릭하면 Google Authenticator 앱을 설치하실 수 있습니다.",btn_next:"다음",btn_install:"설치하러 가기"},verify_qr:{title:"QR 스캔",desc:"OTP 인증 프로그램에서 QR코드를 스캔하거나 아래의 코드를 복사하여 입력해주세요.",install_app:"Google Authenticator 설치 후 사용해 주세요.",next:"다음"},verify_code:{desc:"OTP 앱에서 인증번호를 복사해서 입력해주세요.",desc_web:"OTP 앱에서 인증번호 확인 후 입력해주세요.",input_msg:"구글 OTP에서 생성된 인증번호 6자리 입력",info:"QR코드를 등록한 뒤 위핀 서비스의 OTP 인증번호를 입력해주세요.",btn_auth:"인증하기",fail:"인증에 실패하였습니다."},otp_auth:{title:"OTP 인증하기",desc:"OTP 앱에서 인증번호 확인 후 입력해주세요.",input_msg:"입력해주세요.",problem:"문제가 생겼나요?",link:"복구 코드 사용",invalid_otp:"잘못된 인증 번호입니다. 다시 시도해보세요."},recovery_auth:{title:"복구 코드 사용",desc:"장치에 접근할 수 없는 경우, 인증을 위해 복구 코드 중 하나를 입력하세요. 한 번 사용하신 복구코드는 다시 사용할 수 없습니다.",input_msg:"유효한 코드를 입력해주세요.",auth_info:"새로운 기기에서 2차 인증을 사용하려면 2차 인증을 해제한 뒤 재설정 하세요.",problem:"복구코드를 잊어버리셨나요?",link:"문의하기",invalid_otp:"잘못된 인증 번호입니다. 다시 시도해보세요."},recovery_code_check:{header:"복구 코드 확인",title:"복구 코드",desc:"장치에 접근할 수 없어 2차인증 코드를 받을 수 없는 경우 복구 코드를 사용하여 복구하실 수 있습니다.",new_info:"새로운 코드가 기존 코드를 대체했습니다.",info:"복구 코드를 안전한 곳에 보관하세요.",info_desc:"이 코드는 2차인증 코드를 받을 수 없는 상황이 되었을 때 복구할 수 있는 유일한 수단입니다. 해당 코드를 찾을 수 없으면 복구할 수 없으므로 유의해주세요",btn_download:"다운로드",btn_print:"인쇄",btn_copy:"복사",new_code:"새 복구 코드 생성",new_code_info:"새 복구 코드를 생성하는 경우 새로운 코드를 다운로드하거나 인쇄하세요. 이전 코드는 더 이상 작동하지 않습니다.",print_title:"위핀 2차 인증 복구 코드 입니다.",save_code_android:"백업코드의 스크린 샷이 갤러리에 저장되었습니다.",save_code_ios:"카메라 롤에 저장됨"},otp_disable:{header:"2차인증 보안 설정 해제",alert:{title:"2차인증 보안 설정 해제 확인",desc:"2차인증 보안 설정을 해제하면 인증절차를 다시 시작해야 합니다. 해제하시겠습니까?",btn_cancel:"취소",btn_disable:"해제"}}},my_wallet={title:"내 지갑",total_assets:"총 자산",send:"보내기",receive:"받기",default:"기본지갑",create:"지갑 추가하기",search:"검색하기",show_settings:"보기설정",add_account:"계정 추가",no_account:{description:"위핀에서는 멀티월렛을 지원하고 있습니다.{line_break}코인을 추가해주세요.",goto_service_guide:"서비스 가이드 보러가기"},provider_info:"Powered by CoinGecko",create_option:{new:"새로운 지갑 만들기",other:"다른 지갑 추가하기",recover:"지갑 복구하기"},recover_wallet:{input_mnemonic:"니모닉코드를 입력해 주세요.",input_label:"지갑 이름을 설정해 주세요.",guide:"24개 단어를 입력해 주세요",btnCopy:"붙여넣기",btnClear:"초기화하기",complete:"지갑 복구가 완료되었습니다.",complete_err:"지갑 복구중 에러가 발생했습니다.",error:{mnemonic:"니모닉 코드가 잘못 입력되었습니다. 다시 확인해주세요."}}},wallet_manage={title:"지갑 관리하기",default_wallet:"기본지갑으로 설정",label_modify:"이름 수정하기",modify_info:"이름은 10자 이내로 입력해주세요.",modify_info_placeholder:"지갑 이름을 입력해주세요.",backup:"백업하기",is_backuped:"백업 되어있습니다.",delete:"삭제하기",delete_disabled:"기본 지갑은 삭제할 수 없습니다.",delete_disabled_account:"계정을 먼저 삭제해 주세요.",change_pin:{title:"PIN 번호 변경하기",sub_title:"PIN 번호 변경",info:"현재 PIN 번호를 입력한 후 PIN 번호를 변경할 수 있습니다.",description:"지갑 별 PIN 번호를 변경 관리할 수 있습니다. PIN 번호는 지갑에서 관리하는 개인키를 암호화 하는데 사용되는 중요한 정보입니다. 서비스 내 자산 거래 시 사용되므로 분실하지 않도록 유의해주세요.",current_pin:"현재 PIN 번호",new_pin:"새 PIN 번호",check_pin:"PIN 번호 확인",current_pin_placeholder:"현재 PIN 번호를 입력해주세요. (숫자 6~8자리)",new_pin_placeholder:"새 PIN 번호를 입력해주세요. (숫자 6~8자리)",check_pin_placeholder:"새 PIN 번호 한번 더 입력해주세요.",new_pin_error:"숫자 6~8자리로 이루어진 번호를 입력하세요.",check_pin_error:"입력된 번호가 일치하지 않습니다.",complete:"PIN 번호 변경이 완료되었습니다."},backup_process:{phrase:{notice:"유의사항",input_pin:"PIN 입력",verify_otp:"OTP 인증",check_secret:"비밀구문 확인",verify_secret:"비밀구문 검증"},title:"지갑 백업하기",title_verify:"지갑 검증하기",info:"위핀에서는 소셜로그인 기반으로 별도 백업을 하지 않더라도 자산이 안전하게 보관되고 있습니다.",notice:"지갑 백업은 지갑의 개인키를 암호화된 비밀 구문(니모닉코드)으로 내보내서 저장하는 과정입니다.",caution:"타인에게 화면을 보여주거나 전송하지 마세요.",caution_detail:"비밀 구문이 노출되면 지갑 내 계정의 자산을 침해받을 수 있으니, 보관에 주의해 주세요.",caution_custody:"비밀 구문 분실 시 지갑의 자산 복구는 불가능합니다.",notice_custody:"지갑의 비밀 구문을 종이 등에 적어 안전한 곳에 보관해주세요.",check_confirm:"유의사항을 읽고 이에 동의합니다.",check_mnemonic:"비밀 구문(니모닉코드) 확인하기",mnemonic_desc:"24개 문자의 내용과 순서를 안전한 장소에 보관하세요. 타인에게 보여주거나 전송하지 않도록 주의하세요.",set_otp:"OTP 설정하기",btnCopy:"복사하기",mnemonic_guide:"비밀 구문은 이 화면에서만 확인 가능하며, 보안을 위해 해당 페이지를 벗어나면 복사된 내용이 사라지므로 유의하시기 바랍니다.",verify_mnemonic:"비밀 구문(니모닉코드) 검증하기",verify_desc:"24개 단어를 드래그앤 드랍으로 순서대로 정렬해주세요.",drag_notice:"니모닉 코드의 순서가 맞지 않습니다. 다시 배열후 확인해주세요.",cancel_msg:"지갑 백업을 취소하시겠습니까?",cancel_warn:"지갑 백업을 중단하면 추후 백업 할 때 처음부터 다시 시작해야 합니다.",btn_back:"돌아가기",btn_cancel:"취소하기",complete_desc:"비밀 구문은 지갑을 복구할 때 꼭 필요하며,{line_break}계정 및 자산에 접근할 수 있는 중요한 정보입니다.{line_break}분실할 경우 자산을 찾을 수 없으니 안전하게 보관해주세요.",complete_add_desc:"지갑 삭제를 이어서 시작해주세요.",complete_message:"지갑 백업을 완료했습니다.",btn_complete_after:"계속해서 지갑 삭제하기"},delete_wallet:{title:"지갑 삭제하기",sub_title:"지갑 삭제는 지갑 백업 후 가능합니다.",desc:"지갑 백업은 지갑의 개인키를 24개의 단어로 표현한 비밀 구문(니모닉코드)으로 내보내서 저장하는 과정으로, 이후 지갑 복원 시 사용할 수 있습니다.",desc_verify:"지갑 백업 단계를 일부 진행하셨습니다. 지갑 백업을 위해 비밀 구문(니모닉코드) 검증 단계를 완료해주세요. ",exec_delete:"지갑 백업이 완료되어 삭제를 진행합니다.",caution:"지갑 삭제 시 지갑의 계정정보와 자산이 모두 삭제되어 위핀에서 복구가 불가능합니다. PIN을 입력하시면 삭제가 완료됩니다.",confirm_1:"지갑 삭제 안내사항을 확인하였습니다.",confirm_2:"지갑 삭제 시 복구 불가에 동의합니다.",complete:"지갑 삭제가 완료되었습니다.",complete_err:"지갑 삭제중 에러가 발생했습니다.",confirm_backup:"지갑 백업하기",confirm_verify:"검증 완료하러 가기"}},show_settings={title:"보기설정",layout:"레이아웃",sort:"정렬",edit_list:"목록편집",hide_little:"소액 계정 숨기기"},change_layout={title:"레이아웃",card:"카드형",list:"리스트형",group_mainnet:"메인넷으로 묶어보기"},sort_account={title:"정렬",name:"이름 순",balance:"잔액 순",recent:"최근 거래 순"},edit_list={title:"목록 편집하기"},send={phrase:{select_account:"계정 선택",input_address:"주소 입력",input_amount:"보낼 금액 입력",check_quote:"견적 확인",input_pin:"PIN 입력",verify_otp:"OTP 인증"},choose_account:"보낼 계정을 선택해주세요.",search:"검색하기",network:"네트워크",my_account:"내 계정",which_account_to:"어느 계정에서 보낼까요?",where_to:"어느 주소로 보낼까요?",address_to:"보내는 곳",paste:"붙여넣기",check_address:"입력하신 주소 확인",check_address_info:"맞게 입력하셨는지 확인해주세요.",default_address_format:"일반 주소 형식(이더리움 기반)",default_address_format_info:"{network} 주소와 동일한 주소",insufficient_balance:"{network} 잔액이 없어 보내기를 진행할 수 없습니다. 잔액을 채우고 다시 시도해주세요.",address_input_placeholder:{default:"주소를 입력하세요",ethereum:"Ethereum 주소 가이드: 0x...로 시작합니다.",bitcoin:"Bitcoin 주소 가이드: 0x...로 시작합니다.",xrp:"Xrp 주소 가이드"},invalid_address:"잘못된 주소입니다. 확인 후 다시 입력해보세요.",caution:"잘못된 주소 또는 호환되지 않는 주소 간 전송으로 손실된 자산의 복구가 불가능하니 주의해주세요.",from_my_wallet:"내 계정에서 선택하기",how_much_to_send:"얼마를 보낼까요?",send_all:"전액 ‧ {amount} {symbol} 입력하기",network_fee:"네트워크 수수료",network_fee_sub:"위핀에서 최적화된 수수료를 제안합니다.",alert:{too_much:"보유한 금액보다 보내려는 금액이 많습니다. {line_break}잔액을 확인해주세요.",is_not_a_number:"입력하신 금액의 형식이 올바르지 않습니다.",not_zero:"0보다 큰 금액을 입력해주세요."},select_network_fee:"네트워크 수수료 선택하기",setting_network_fee:"네트워크 수수료 직접 설정하기",network_fee_content:"수수료는 {network} 네트워크에서 부과되는 금액으로 네트워크 트래픽에 따라 변동됩니다. 위핀은 이 수수료로 이익을 얻지 않습니다.",delay_sub:"시간은 추정치로 참고만 해주세요.",network_fee_options:{name:{low:"보통",medium:"빠르게",high:"가장 빠르게",custom:"직접 설정하기"},delay:{"45sec":"45초 이상","30sec":"30초 미만","15sec":"15초 미만"}},setting:"설정하기",custom_sub:"작업 방법을 알고 있는 경우에만 설정해주세요. 잘못된 정보를 입력 시 보내기가 실패하거나 중단될 수 있습니다.",gas_limit:"가스 제한 (보통 21,000 ~ 500,000)",gas_price:"가스비",please_confirm:"확인해주세요",send_amount:"보내는 금액",receive_address:"받는 주소",total:"합계",pin_need:"PIN 입력하기",pin_need_sub:"PIN 번호를 입력해주세요.",pin_caution:"6~8자리의 PIN번호를 입력해주세요.",pin_caution_alert:"PIN번호는 6~8자리의 숫자로 이루어진 개인식별번호입니다.",requested:"전송이 요청되었습니다.",requested_sub:"네트워크의 혼잡 정도와 수수료 설정값에 따라 거래가 확정되기까지 시간이 걸릴 수 있습니다.",request_failed:"전송이 실패하였습니다.",request_pin_error:"입력된 번호가 일치하지 않습니다.",request_failed_sub:"시간이 지연되어 전송이 실패하였습니다.",request_pin_error_sub:"{remainPinTryCnt}회 남음",locked_message:"PIN 번호 10회 입력 오류로 잠금처리된 지갑입니다. 24시간이 지난 뒤에 다시 시도 가능합니다.",locked_message_sub:"{remain_time} 남음",locked_message_sub_unlock:"잠금 해제",locked_placeholder:"잠금 처리 되었습니다.",retry:"다시 보내기",retry_pin:"다시 입력",tag:"Destination Tag",tag_sub:"선택사항 (거래소 송금시 필수입니다)",send_transaction:"NFT 보내기",send_coin_transaction:"{symbol} 보내기",transaction_detail:"거래 상세내역 확인하기",transfer_history:"전송 내역",tx_id:"TXID",total_amount:"합계 금액",more:"더보기",hide:"숨기기",go_back_wallet:"지갑으로 돌아가서 내 자산을 계속해서 관리해 보세요!"},initial_screen={emphasis:"보내기",contents:"{emphasis}를 중단하고 지갑 화면으로 돌아갈까요?",cancel:"아니요",confirm:"돌아갈게요"},nft={phrase:{select_nft:"NFT 선택",input_address:"주소 입력",select_fee:"수수료 선택",confirm:"최종 확인",input_pin:"PIN 입력",verify_otp:"OTP 인증"},title:"내 NFT",select_wallet:"지갑 선택",total_nft:"전체 NFT {nftTotalLength}",latest_order:"최근 순",name_order:"이름 순",add_direct:"직접 추가",contracnt_address:"컨트랙트 주소",token_ID:"토큰 ID",token_type:"토큰 규격",nft_send:"NFT 보내기",nft_hide:"NFT 숨기기",collection_change:"콜렉션 변경",collection_name:"콜렉션명",filter:"필터링",selected_mainnet:"보유중인 메인넷을 선택해주세요.",history_none:"아직 NFT가 없어요",cant_load:"콘텐츠를 불러올 수 없습니다.",img_load_error:"이미지를 불러올 수{line_break}없습니다.",send:{selected_count_message:"선택된 {count}개의 NFT를 보냅니다.",selected_message:"선택된 NFT를 보냅니다.",memo:"메모",please_enter_it:"입력해주세요.",count:"개",sendNft:"보내는 NFT"},send_complete:{title:"NFT 전송이 요청되었습니다.",description:"네트워크의 혼잡 정도와 수수료 설정값에 따라{line_break}거래가 확정되기까지 시간이 걸릴 수 있습니다.{line_break}거래 결과는 거래 내역에서 확인 가능합니다."},refresh:"새로고침",loading:"불러오는 중",disabled:"방금 전",pending:"진행 중"},receive={title:"받기",qr_title:"{coin} 받기",select_account:"받을 계정을 선택해주세요.",info_support_nft:"NFT 미지원 네트워크의 경우 해당 라벨이 표시됩니다.",network:"네트워크",copy:"주소복사",activate_account:"계정 활성화하기",doneCopy:"복사가 완료되었습니다.",footer_notice:"{coin}{postposition} 아닌 다른 코인을 받을 경우에 발생하는 오류 및 손실은 복구가 불가능합니다.",cant_receive:"{network} 네트워크의 NFT아이템을 받을 수 없습니다.",can_receive:"{network} 네트워크의 NFT아이템을 받을 수 있습니다.",scan:{qr_title:"코드 스캔",upload_title:"이미지 업로드",qr_info:"QR코드를 스캔하거나 QR 이미지를 업로드 해보세요.",file_drag:"여기로 이미지를 드래그하거나 {file_upload} 해보세요.",file_upload:"QR 이미지를 업로드",loading:"로딩 중입니다."}},create_account={add_account:"계정 추가하기",choose_account:"계정을 선택해주세요.",add_token:"사용자 토큰 추가",input_name_title:"이름 입력하기",input_name_sub:"하나의 지갑에 여러개의 동일한 계정을 등록할 수 있습니다. 구분할 수 있도록 이름을 입력해주세요.",network_for_tokens_title:"메인 계정이 없습니다.{line_break} 토큰 추가를 위한 메인 계정을 추가합니다.",network_for_tokens_sub:"하나의 지갑에 여러개의 동일한 계정을 등록할 수 있습니다.{line_break}구분할 수 있도록 이름을 입력해주세요.",name_placeholder:"이름을 입력해주세요.",input_name_caution:"계정이름은 14자 이내의 영문/숫자/특수문자로 입력해주세요. 첫번째 글자는 영문이여야합니다.",selected_network_title:"네트워크 선택",selected_network_sub:"수수료 결제를 위해 선택한 토큰의 네트워크를 선택해주세요.",testnet:"테스트넷"},account_detail={send:"보내기",receive:"받기",stat:{title:"{symbol} 가격 통계",contract:"컨트랙트",info:"{symbol} 정보",market_price:"시세","24h_low_high":"24시간 저가{line_break}/24시간 고가","7d_low_high":"7일 저가{line_break}/7일 고가",trading_vol:"거래대금",market_cap_rank:"시가총액 순위",market_cap:"시가총액",market_cap_domi:"시가총액 점유율",turnover_ratio_of_market_value:"거래대금{line_break}/시가총액",all_time_high:"역대 최고가",all_time_low:"역대 최저가"},history:{title:"거래 내역",send_title:"보낸 {coin}",receive_title:"받은 {coin}",none:"아직 거래 내역이 없습니다.  위핀에서 자산을 주고 받아 보세요."}},transaction_detail={header:"받은 {coin}",transaction_status:"거래상태",status:{confirm:"완료",pending:"진행중",failed:"실패"},request_date:"거래요청 시간",amount:"거래 금액",fee:"수수료",network:"네트워크",sender:"보낸 계정",receiver:"받는 계정",show_in_scan:"블록 탐색기에서 보기",TXID:"TXID"},account_manage={change_label:"이름 수정하기",delete:"삭제하기"},change_label={title:"이름 수정하기"},hide_account={title:"계정 삭제하기",description:{delete_available:"계정을 삭제하면 지갑 목록에서 해당 계정을 확인할 수 없습니다. 계정을 삭제하시겠습니까?",has_token_account:"해당 계정에 <b>하위 토큰 계정</b>이 남아 있습니다. 정말 계정을 삭제하시겠습니까?",has_nft:"해당 계정에 <b>NFT</b>가 <b>{count}</b>개 있습니다. 정말 계정을 삭제하시겠습니까?",has_token_account_and_nft:"해당 계정에 <b>하위 토큰 계정</b>과 <b>NFT</b>가 <b>{count}개</b> 있습니다. 정말 계정을 삭제하시겠습니까?",has_balance:"해당 계정에 잔액 <b>{balance} {symbol}가</b> 있습니다. 정말 계정을 삭제하시겠습니까?"},notice:"계정을 삭제하더라도 언제든 목록에서 확인하여 다시 추가할 수 있습니다. 추가된 계정의 자산은 이전과 동일하게 복귀됩니다."},list_header={name:"이름",market_price:"시세 / 등락률 (지난 24시간)",current_price:"시세",change_rate:"등락률",assets_with_a_quantity:"보유수량",conversion_amount:"환산 금액"},pin_alert={locked_message:"PIN 번호 10회 입력 오류로 잠금처리된 지갑입니다.",locked_remain:"{remain_time} 남음",locked_block:"24시간이 지난 후에 핀 인증을 하시면 잠금해제 됩니다.",locked_info:"핀 인증 후 거래 가능합니다.",unlock:"잠금 해제"},unlock_wallet={title:"잠금 해제하기",sub_title:"기능이 잠긴 상태입니다",description:"잠금을 해제하면 해당 기능을 사용하실 수 있습니다.",pin_description:"PIN 인증이 완료되면 해당 지갑의 잠금이 해제됩니다.",complete:"잠금 해제가 완료되었습니다.",unlock_pin_verify:"PIN 인증으로 잠금 해제"},setting={title:"설정",profile:{title:"프로필",nickname:"닉네임",placeholder:"닉네임을 입력해 주세요",email:"이메일",auth_info:"{auth} 계정을 통해 가입하였습니다."},service:{title:"서비스",set_alarm:"알림설정",email_alarm:"이메일로 알람받기 설정"},security:{title:"보안"},history:{title:"거래내역"}},global$1={cancel:"취소",confirm:"확인",delete:"삭제",none:"없음",hours:"{hours}시간",minutes:"{minutes}분",less_minutes:"1분 미만"},dashboard_detail={title:"대시보드",connected_apps:"연결된 앱",read_more:"자세히 보기",hide:"숨기기",tab_nft:{title:"NFT",status:"내 NFT 현황",sub_status:"내가 가진 NFT의 현황 보기"},tab_asset:{title:"자산",status:"내 자산 현황",sub_status:"내가 가진 자산의 현황 보기",toggle:"보유수량 0개 숨기기",toggle_popper:"보유수량 0개인 자산을 숨길 수 있습니다."},tab_app:{title:"앱",status:"앱 별 현황",sub_status:"앱 별 내가 가진 자산의 현황 보기",my_nft:"나의 NFT {count}",my_asset:"나의 자산",no_connected_app:"연결된 앱이 없어요.{line_break} 위핀에서 다양한 앱을 연결하여 자산을 관리해 보세요."},tab_select:{total:"총 개수"},chart:{total_assets:"총 자산 구성",mainnet_config:"메인넷 구성",mainnet:"구분",amount:"금액",count:"개수",weight:"비중",more:"더보기",mobile_info:"그래프를 1초 이상 누르시면 상세 비율을 알 수 있어요.",no_nfts:"아직 현황을 보여줄 수 있는 NFT가 없어요.",no_assets:"아직 현황을 보여줄 수 있는 자산이 없어요.",no_assets_sub:"계정을 추가하고 자산을 관리해 보세요."},profile_type_error:"해당 파일은 이미지 파일이 아닙니다.이미지(JPG,JPEG,GIF,PNG) 파일을 업로드 해주세요."},error={"502_title":"CODE:502","502_message":"알 수 없는 오류가 발생했습니다.",network_err_title:"네트워크 오류",network_err_message:"서버와 통신 중 오류가 발생했습니다."},promotion={apply:{join:"참여하기",finished:"행사 종료",period:"{to}까지 증정",event_finished:"[{customerName}] NFT 발급이벤트가 종료되었어요. 다음에 다시 참여해주세요.",no_contents:"콘텐츠를 불러올 수 없습니다.",remain_time:"{d}일 {h}시간 {m}분 {s}초",end_time:"뒤에 종료됩니다.",end_notice:"종료 안내",end_airdrop:"에어드롭 이벤트가 종료되었어요.",next_time:"다음에 참여해주세요.",how_to_join:"참여 방법",finish_desc_pre:"이벤트가 종료",finish_desc_post:"되었습니다.",email_desc:"NFT를 받을 이메일 주소를 입력해 주세요.",inquiry:"문의하기",nft_promotion_q:"NFT 이벤트를 진행하고 싶다면?",event:" 증정 이벤트",event_finish:"이벤트 종료 안내",mission_airdrop:"아래 미션을 완료하고 에어드롭 받아요.",new_tab:"버튼을 누르면 다른 창이 열려요.",progress_info:"{progress} 완료했어요",twitter:"트위터",twitterX:"X(트위터)",follow:"팔로우",signup:"가입하기",placeholder:"계정을 입력해주세요.",close_box:"{provider} 계정 입력 접기",open_box:"이미 팔로우 하셨다면 클릭해주세요",app_join_open_box:"이전 화면에서 입력하셨던 이메일로 가입해 주세요.",follow_complete:"팔로우한 {provider} 계정을 입력하세요.",quest_complete:"퀘스트를 완료했어요!",get_reward:"{symbol}을 받아주세요.",receive_reward:"리워드 받기",share_reward_title:"에어드롭 공유하고 {symbol} 받자!",share_reward_description:"많이 공유한 분들께 추가 보상을 드려요.",share_button:"친구에게 공유하기",later_button:"다음에 참여하기",congratulations:"축하합니다!",received_from_creator:"{creator}에서 {symbol}을 받았어요.",receive_coin:"받은 코인 수량",available_after_event_end:"이벤트 종료 이후 받으실 수 있습니다.",check_my_rank:"내 순위 확인하기",create_account:"{symbol} 계정이 필요합니다. 내 지갑에서 추가해 주세요."},invalid_quantity:{label:"발급 종료",title:"해당 NFT가 모두 발급되었어요",message:"아쉽게도 해당 NFT는 이미 모두 발급되었어요. 다른 NFT를 받아보세요."},nft_event_minted:{title:"[{promotionName}] NFT 발급 완료",message:"동일한 이메일로 이미 발급받으셨어요. 아이디 당 한 번씩만 발급이 가능합니다. 입력하신 {email}로 로그인 하여 발급받은 NFT를 확인하여 주세요."},nft_event_attended:{title:"[{promotionName}] NFT 발급 신청 완료",message:"입력하신 {email}로{line_break} NFT 발급을 진행하기 위한 링크가 전송되었습니다.{line_break}이메일을 확인하여 NFT 발급을 계속해주세요.",desc:"이메일에서 링크 클릭 시 위핀 로그인/회원가입 페이지로 이동합니다. 메일이 오지 않는 경우 재발송을 선택해주세요."},nft_event_duplicate:{title:"이메일 확인 요청 안내",message:"{email}은 이미 신청 완료한 이메일이에요. 이메일을 확인하여 NFT 발급을 계속 진행해주세요."},nft_event_completed:{header:"축하합니다! {customerName}에서 {tokenName}을(를) 받았어요.",info:"NFT 정보",issuer:"발행기관",receiver:"받은 주소",token_desc:"토큰 설명"},event_login:{member_join:{tab_title:"쓰던 이메일로 간단하게 NFT 받으세요. (1/3)",tab_title_airdrop:"쓰던 이메일로 간단하게 에어드롭 받으세요.",tab_title_member:"기존 계정으로 로그인 후 아래 NFT를 발급 받으세요.",tab_title_member_airdrop:"기존 계정으로 로그인 후 에어드롭 받으세요.",nfc_title:"로그인 또는 회원가입 후 아래 NFT를 받으세요.",main_title:"회원 가입",auth_mail_desc:"입력하신 {email}로 인증 메일을 전송해 가입을 진행해주세요.",simple_join_title:"간편가입",sso_desc_colored:"최초에 신청했던 이메일과 동일한 주소",sso_desc_normal:"{accent}로 소셜로그인 하셔야 해당 NFT를 받을 수 있습니다.",sso_desc_normal_airdrop:"{accent}으로 간편로그인 하셔야 에어드롭을 이어 할 수 있습니다.",btn:"인증메일 전송",simple_login_title:"간편 로그인으로 계속하기",separate_title:"또는",continue_email:"이메일로 계속하기"},set_password:{tab_title:"절차가 얼마 남지 않았어요! (2/3)",tab_title_default:"절차가 얼마 남지 않았어요!"},set_pin:{tab_title:"다 왔어요, 마지막 절차예요! (3/3)",tab_title_default:"다 왔어요, 마지막 절차예요!",desc:"NFT 수령을 위해 {networkName} 계정이 필요합니다. {line_break} 기본지갑에 계정을 추가하기 위해 PIN 번호를 입력해 주세요.",desc_airdrop:"에어드롭 받기 위해 {networkName} 계정이 필요합니다. 계정을 추가하기 위해 PIN 번호를 입력해 주세요.",remember:"기억 하세요",remember_desc_1:"계정 잠금을 해제하거나 자산을 주고받을 때 사용하는 비밀번호로, 반드시 본인만 알고 있어야 합니다.",remember_desc_2:"10회 이상 틀릴 경우 24시간 동안 PIN이 잠기며, PIN 번호를 찾기 위해서는 힌트 메일*을 참고해야 합니다.",remember_desc_3:"*힌트 메일이란? 지갑을 만들면 받게 되는 메일로, PIN 번호를 추측할 수 있는 내용이 포함되어 있어요."},referral:{popup:{close:"다음에 참여하기"}}},loading:{search_wallet:"지갑 찾는 중...",mint_nft:"NFT 발급 중..."},btn:{go_wepin:"위핀에서 확인하기",resend_email:"메일 재전송",go_nft:"위핀에서 내 NFT 확인하기"},error:{expired:"발급 유효기한이 지났습니다.",busy:"사용자가 많습니다. 다시 시도해 주세요.",exceed:"준비한 NFT가 모두 소진되었습니다.",finished:"이벤트 기간이 끝났습니다.",pin_caution:"PIN 번호는 하루에 10번까지 시도할 수 있으며, 10번 이상 시도할 경우 24시간동안 잠김상태가 됩니다."},contact:{type_form:"https://wepinwallet.typeform.com/NFT-HUB-LINK"}},nfthublink={maintenance:{title:"서비스 점검 안내",desc:"보다 안정적인 서비스 이용을 위해 점검 중입니다.{line_break}불편을 드려 죄송합니다.",date:"[점검 시간]"},token_expired:"토큰이 만료되었습니다.",invalid_path:"잘못된 접근 경로입니다."},dashboard_title={setting_security:"보안 설정",setting_2fa:"2차 인증 설정",unsetting_2fa:"2차인증 보안 설정 해제",check_recoverycode:"복구 코드 확인",regist_otp:"OTP 등록",setting_service:"서비스 설정"},drops={title:"드롭스",live_event:"진행중 이벤트",end_event:"종료된 이벤트",joined:"참여 완료 {unicode}",hot:"인기 이벤트{unicode}",prize_exhausted:"상금 소진",period_expired:"기간 종료{unicode}",remain_reward:"남은 토큰{remain}/{total} {symbol}",join_count:"{count}명 참가",empty_event:"현재 진행중인 이벤트가 없습니다.",empty_description:"새로운 이벤트가 올라올 때까지 기다려주세요."},drops_detail={view_detail:"자세히 보기",event_end:"이벤트가 종료되었습니다.",amount_receive:"지금까지 이만큼 받았어요",received_coin:"받은 코인 수량",shared_end:"친구에게 {count}회 공유한 뒤 종료되었어요",shared_friends:"친구에게 공유한 횟수",after_end_event:"{end_date} 이벤트 종료 이후 받으실 수 있습니다.",ongoing_event:"현재 진행중인 이벤트",view_all_event:"모든 이벤트 보기",event_count:"{count}개",receive_history:"받은 내역",bonus_mission:"추가 미션",bonus_mission_trophie:"추가 리워드 미션",clear_bonus_mission:"추가 미션을 완료했어요",share_friends:"친구에게 공유하기!",share_friends_trophie:"랭킹 올리기!",bonus_reward:"{count}명에게 공유하면 추가로 코인을 받아요",bonus_reward_trophie:"더 많이 공유한 분께는 푸짐한 추가 리워드가 있어요.",celebrate_mission:"친구 공유하기 1위를 하셨습니다.",celebrate_mission_sub:"추가 미션 보상으로 {count} {symbol} 을 더 받았어요",shared_with_total:"총 {count}명에게 공유했어요!",please_share:"친구에게 공유해주세요",mission_end:"미션 종료",share_get_bonus:"공유하고 추가 리워드 받기",share_get_bonus_clears:"스탬프 미션 리워드를 받았어요",bonus_end:"{end_date}까지 공유 미션이 종료됩니다.",mission_end_when:"{end_date}로 미션이 종료되었습니다.",claim_end:"{end_date}You can get up to ",clears_missin_end:"{end_date}에 종료됩니다.",clears_missin_end2:"{end_date}이후 지급 예정입니다.",raise_ranking:"추가 공유하고 랭킹 올리기",others_ranking:"다른 사용자들의 랭킹을 볼 수 있습니다.",ranking:"랭킹",my_records:"내 기록",empty_record:"공유한 기록이 없어요.",event_list:"이벤트 목록",receive_coin:"코인 받기",receive_total:"{quantity} {symbol}를 받았어요!",show_reward_history:"적립 내역 보기",show_reward_history_quest:"퀘스트",show_reward_history_stamp:"친구 초대 스탬프",show_reward_history_rank:"친구 초대 {rank}위"},agree_terms="{term}의 내용을 읽고 이에 동의합니다.",personal_terms="개인정보 처리방침",term="서비스 이용 약관",term2="이용 약관",term_link="https://www.notion.so/iotrust/9ca3e434b0aa43e3b8b96311b17a48d8?pvs=4",copyright="© 2024. IoTrust All rights reserved.",service_terms_url="https://delivery.wepin.io/service/terms/untitled-ko.html",personal_terms_url="https://delivery.wepin.io/service/privacy/untitled-ko.html",nft_hub_link_url="https://delivery.wepin.io/service/privacy/nfthub-link/ko.html",droplink_url="https://delivery.wepin.io/service/privacy/droplink/ko.html",hublink_share_promo={btn_share:"친구에게 공유하기",notice_title:"안내사항",notice_txt_1:"공유 횟수는 NFT 발급 완료 횟수를 기준으로 합니다.",notice_txt_2:"이벤트 기간은 {startDate}부터 {endDate}까지 진행됩니다.",notice_txt_3:"24시간 기준으로 공유 증가 횟수가 업데이트 됩니다.",notice_txt_4:"불법적, 비정상적인 경로로 이벤트에 참여 및 당첨된 경우 이벤트 당첨이 취소될 수 있습니다.",notice_txt_5:"NFT 발행 시 등록하신 이메일을 통해 연락이 되지 않는 경우 혹은 경품 수령을 위한 개인정보 공개에 동의하지 않거나 수령 의사를 밝히지 않는 경우 이벤트 당첨이 취소될 수 있습니다.",notice_txt_6:"스타벅스 기프티콘의 경우 국내 휴대폰 번호로만 전달이 가능합니다.",notice_txt_7:"NFT 공유 이벤트 우승 경품은 소득세법에 따른 기타소득세 납부 이후의 금액입니다.",notice_txt_8:"경품 전달은 당첨자 발표 후 개인정보 취합 기간이 종료되면 전달됩니다.",event_subtitle:"이벤트 참여 방법",event_desc_1:"1. 친구에게 공유하기 눌러서 연하장 전달하기",event_desc_2:"2. 내 링크에서 연하장 NFT 발급 완료하면 순위에 반영",rank:"{number}위",count:"{number}회",banner_btn_txt:"순위 보기",ranking_title:"TOP {number}",banner_label:"참여 중인 이벤트",bonus_mission:"보너스 미션 {number}",reward_airdrop:"에어드롭 리워드",input_email:"에어드롭 받을 이메일 주소를 입력해주세요.",live_event:"이벤트 진행 중",live_share:"실시간 공유 랭킹",already_join:"이미 에어드롭 받으셨나요?",check_reward:"받은 금액 보기",toast_check_reward:"이벤트에 참여하지 않았습니다. 이벤트를 참여해주세요",contact_airdrop:"에어드롭 이벤트를 진행하고 싶다면?",caution_title:"이벤트 유의사항",caution_1:"이벤트 기간은 {startTime}부터 {endTime}까지 입니다.",caution_2:"24시간 기준으로 순위가 업데이트 됩니다.",event_title:"EVENT",info_message_count:"{count}. {message}",event_message:"{prize} ({numberOfWinner}명)",diff_days:"{date}일차",done_copy:"클립보드에 공유 링크가 복사되었습니다.",ad_info:"제휴 콘텐츠, 프로모션 등 광고성 정보 수신",ad_info_title:"광고성 정보 수신 동의서"},droplink={check_email_title:"이메일을 확인해주세요",check_email_content:"{email}으로 메일을 보냈습니다. 에어드롭 신청을 계속 진행해주세요.",check_email_detail:"이메일에서 링크 클릭 시 위핀 로그인/회원가입 페이지로 이동합니다. 메일이 오지 않은 경우 재발송을 선택해주세요.",check_set_pin_title:"에어드롭 신청을 완료해주세요",check_set_pin_content:"이미 신청한 이력이 있습니다. 입력하신 {email}로 로그인하고 PIN 설정하시면 신청이 완료됩니다.",check_set_pin_button:"PIN 설정하기",already_rewarded_title:"이미 에어드롭을 받았습니다",already_rewarded_content:"이미 신청한 이력이 있습니다. 아이디 당 한 번씩만 발급이 가능합니다. 입력하신 {email}로 로그인 하여 에어드롭 내역을 확인하여 주세요.",already_rewarded_button:"받은 내역 확인하기",progress_event:"진행중인 이벤트",end_event:"종료된 이벤트",mismatch_email_title:"신청한 이메일 주소를 확인해주세요",mismatch_email_content:"에어드롭을 신청할 때 입력하신 {email}로 다시 로그인 해주세요.",back:"뒤로가기"},ko={login,signup,signup_with_email,signup_email_verify_complete_sdk,signin_with_email,signin_with_password,reset_email,reset_authentication,reset_password,reset_password_comfirm,user_settings,coming_soon,reset_pin,security,my_wallet,wallet_manage,show_settings,change_layout,sort_account,edit_list,send,initial_screen,nft,receive,create_account,account_detail,transaction_detail,account_manage,change_label,hide_account,list_header,pin_alert,unlock_wallet,setting,global:global$1,dashboard_detail,error,promotion,nfthublink,dashboard_title,drops,drops_detail,agree_terms,personal_terms,term,term2,term_link,copyright,service_terms_url,personal_terms_url,nft_hub_link_url,droplink_url,hublink_share_promo,droplink},messages={ko,"ko-KR":ko,en,"en-US":en,ja,"ja-JP":ja},i18n=createI18n({locale:navigator.language,fallbackLocale:"en",fallbackWarn:!1,messages,legacy:!1});dist.CoinGeckoClient.prototype.httpGet=async function(u){try{const f=await fetch(u),d={};return f.headers.forEach((_,x)=>{d[x]=_}),{data:await f.json(),statusCode:f.status,headers:d}}catch(f){return console.error(f),{data:null,statusCode:500,headers:{}}}};window.Buffer=buffer$2.Buffer;globalThis.Buffer=buffer$2.Buffer;BigNumber$1.config({DECIMAL_PLACES:BIG_NUMBER_DECIMAL});const app=createApp(_sfc_main),pinia=createPinia(),capture=createCapture({apiUrl:"https://prod-analytics.wepin.io"});app.use(i18n);app.use(pinia);app.use(router);app.use(MotionPlugin);app.use(capture);app.mount("#app");app.use(N({id:"GTM-5KCVSHJ",vueRouter:router}));export{LogoContainer as $,withModifiers as A,ref as B,watch as C,useKeyDown as D,Element$1 as E,EMAIL_VALID_REG_EXP as F,_sfc_main$l as G,createTextVNode as H,InputBox as I,BasicButton as J,useWalletStore as K,LockAnimation as L,dist$1 as M,WepinBackendAPI$1 as N,FirebaseEmailSigninError as O,useProjectAPIStore as P,_sfc_main$2v as Q,withDirectives as R,SquareAnimation as S,vShow as T,router as U,PASSWORD_REG_EXP as V,WalletAnimation as W,useNftPromotionStore as X,useFetchHandlers as Y,NetworkFetchError as Z,_export_sfc as _,createBaseVNode as a,defaults$1 as a$,BarProgress as a0,PopupProgressHeader as a1,BasicHeader as a2,NFTHubLinkCard as a3,useInput as a4,useCapture as a5,createSlots as a6,Fragment as a7,onMounted as a8,isRef as a9,useMediaQuery as aA,useGlobalState as aB,onUnmounted as aC,useLocalStorage as aD,useBreakpoints as aE,RefreshButton as aF,SearchBox as aG,SelectBox as aH,CollectionCard as aI,REFRESH_STATUS_LOADING as aJ,REFRESH_STATUS_DISABLED as aK,REFRESH_STATUS_DEFAULT as aL,consecusiveReqDelay as aM,useCoinStore as aN,useSettingsStore as aO,entry_esm as aP,ToggleButton as aQ,Account as aR,AccountToken as aS,apexcharts_commonExports as aT,lodashExports as aU,formatDecimal as aV,elementChildren as aW,createElement as aX,elementOuterSize as aY,elementIndex as aZ,elementParents as a_,BasicPopup as aa,Teleport as ab,useAccountAPIStore as ac,LoadNonceError as ad,renderList as ae,watchEffect as af,PIN_REG_EXP as ag,useCssVars as ah,renderSlot as ai,useI18n as aj,useAlertStore as ak,useMenuStore as al,useInfoAPIStore as am,_sfc_main$1v as an,NavigationBar as ao,normalizeStyle as ap,useUserStore as aq,useLocaleStore as ar,useWindowSize as as,UserProfileForm as at,vModelText as au,withKeys as av,DotLoading as aw,RouterView as ax,useNFTAPIStore as ay,useNFTSignTxStore as az,createCommentVNode as b,mergeProps as b$,Swiper as b0,onUpdated as b1,provide as b2,nextTick$2 as b3,onBeforeUnmount as b4,h$1 as b5,onBeforeUpdate as b6,bcryptExports as b7,OOB_CODE_REFRESH_TIME as b8,useAccountTokenAPIStore as b9,AddressCopyViewer as bA,DoneCopyModal as bB,useClipboard as bC,LabelChip as bD,ProgressBar as bE,AlertPopup as bF,_sfc_main$23 as bG,WorkspaceTab as bH,createStaticVNode as bI,User2FAState as bJ,LT as bK,RECOVERY_CODE_REG_EXP as bL,RouterLink as bM,NetworkIcon as bN,SharedRank as bO,DashboardIcon as bP,HubLinkShareCard as bQ,commonjsGlobal$1 as bR,_global$2 as bS,useIntersectionObserver as bT,BonusMissionCard as bU,useMotions as bV,resolveDirective as bW,Overlay as bX,IconQrcode as bY,onDeactivated as bZ,IconButton as b_,CheckBox as ba,usePinLockStore as bb,defaultCoinIcon as bc,Transition as bd,_sfc_main$s as be,Wowerlay as bf,useCoinPriceAPIStore as bg,useResizeObserver as bh,_sfc_main$r as bi,CoinIconNameCard as bj,useToastStore as bk,WalletOption as bl,useRoute as bm,TotalAssets as bn,BottomSheet as bo,BBB as bp,NoticeText as bq,WalletStateExported as br,useInfiniteScroll as bs,script$2 as bt,TransactionStatusIcon as bu,useTransactionStore as bv,useAccountQuery as bw,useConditionalFetch as bx,REFRESH_TYPE_KEY as by,Skeleton as bz,createElementBlock as c,vuedraggable_umdExports as c0,WalletStateVerified as c1,Phrase as c2,getParentPath as c3,CoinAmount as c4,Address as c5,reactive as c6,BigNumber$1 as c7,LabelToggle as c8,AddressLabel as c9,browserExports as ca,Spinner as cb,useTransactionAPIStore as cc,IconInput as cd,AddressChunks as ce,useTempParamStore as cf,refDebounced as cg,useCoinAPIStore as ch,defineComponent as d,createVNode as e,colors as f,getDocument as g,useBreakPointsClass as h,computed as i,createBlock as j,defaultBreakPoints as k,popScopeId as l,useI18nTypes as m,normalizeClass as n,openBlock as o,pushScopeId as p,useLoadingsStore as q,resolveComponent as r,useUserAPIStore as s,toDisplayString$2 as t,unref as u,useWalletAPIStore as v,withCtx as w,useRouter as x,onBeforeMount as y,useSetupStoreReset as z};
function __vite__mapDeps(indexes) {
  if (!__vite__mapDeps.viteFileDeps) {
    __vite__mapDeps.viteFileDeps = ["assets/1.14.42/ChangePinMain-7rGLeCCx.js","assets/1.14.42/useGoToInitialScreen-fJ3lYVHp.js","assets/1.14.42/useRedirectQuery-qrwl9I5H.js","assets/1.14.42/OtpAuthenticator-KZTRndv5.js","assets/1.14.42/BasicButtons-_qsVGyWH.js","assets/1.14.42/usePinTryCount-gcTUE2ZC.js","assets/1.14.42/formatData-BOW_BhWj.js","assets/1.14.42/PinInput-pfxnsKa8.js","assets/1.14.42/ChangePinMain-N_9FWO2X.css","assets/1.14.42/ChangePinComplete-4xLrV9sE.js","assets/1.14.42/ChangePinComplete-ZlEulNf1.css","assets/1.14.42/CampaignDetailView-MKt1QN0T.js","assets/1.14.42/droplinkConfig-Zy2FG01D.js","assets/1.14.42/ToastAlert-O44XWkLj.js","assets/1.14.42/localeConfig-F74Y--MA.js","assets/1.14.42/CampaignDetailView-b5NDyOlI.css","assets/1.14.42/PromotionParticipate-6AoMpEUT.js","assets/1.14.42/timer-AqYmW8FY.js","assets/1.14.42/usePromotionQuery--u49OHJu.js","assets/1.14.42/usePromotionAuth-hG7Htgj0.js","assets/1.14.42/usePasswordEncryptionCheck-feGr892e.js","assets/1.14.42/captureConfig-Nj-HfmMv.js","assets/1.14.42/userInFirebaseConfig-yirL8Fq8.js","assets/1.14.42/AgreeCheck-c-4-mARh.js","assets/1.14.42/FixedCopyright-A1GfIRVV.js","assets/1.14.42/PromotionParticipate-WIU2yl6-.css","assets/1.14.42/PromotionMiddleware-ucXWTom9.js","assets/1.14.42/PromotionDupAttend-syx7OGxR.js","assets/1.14.42/TimeoutButton-G8fcg3tT.js","assets/1.14.42/PromotionDupAttend-iJKwiJPk.css","assets/1.14.42/PromotionInvalidQuantity-psIZUUIl.js","assets/1.14.42/useQueryCheck-BSykmqGu.js","assets/1.14.42/PromotionInvalidQuantity-CpoSfuCv.css","assets/1.14.42/PromotionAttendComplete-l4HB4UMQ.js","assets/1.14.42/PromotionAttendComplete-NE2ERKcE.css","assets/1.14.42/PromotionAlreadyMinted-TSkS98sT.js","assets/1.14.42/PromotionAlreadyMinted-JAn3OwNp.css","assets/1.14.42/PromotionMintComplete-vDBSIbtQ.js","assets/1.14.42/vue3-lottie.es-PqbJo97V.js","assets/1.14.42/PromotionMintComplete-CbXmax5O.css","assets/1.14.42/CampaignLandingView-XdHP8tBD.js","assets/1.14.42/airdrop-ov_PnlEo.js","assets/1.14.42/CampaignLandingView-1udTCRbK.css","assets/1.14.42/CampaignQuestMain-DR4YoIw2.js","assets/1.14.42/CampaignQuestMain-YpjrgEv4.css","assets/1.14.42/CampaignQuestAttend-xTMcaxAE.js","assets/1.14.42/CampaignQuestAttend-s5eeNJuZ.css","assets/1.14.42/CampaignQuestComplete-Cf4qvRid.js","assets/1.14.42/CampaignQuestComplete-hJ6GEVxO.css","assets/1.14.42/CampaignReward-Oz6RXGIF.js","assets/1.14.42/box-EEY7MdH3.js","assets/1.14.42/CampaignReward-of9cx_g4.css","assets/1.14.42/CampaignSignupMain-ek4om3w1.js","assets/1.14.42/CampaignSignupMain-Ii3RbIGH.css","assets/1.14.42/CampaignSignupSelector-xZuQ8roE.js","assets/1.14.42/SimpleLoginCard-KuOjeQHe.js","assets/1.14.42/CampaignSignupSelector-mcNEZXee.css","assets/1.14.42/CampaignSignupSetPassword-WFQXl-yf.js","assets/1.14.42/SignupPasswordForm-N6XGdHx5.js","assets/1.14.42/SignupPasswordForm-PPiatAmR.css","assets/1.14.42/CampaignSignupSetPassword-3j4HEXye.css","assets/1.14.42/CampaignSignupSetPin-N_KjnIHX.js","assets/1.14.42/CampaignSignupSetPin-TfW_zNgE.css","assets/1.14.42/CampaignSignupCreateAccount-HhjzmpqT.js","assets/1.14.42/CampaignSignupCreateAccount-aJ482HdI.css","assets/1.14.42/CampaignCheckEmail-jL4WrEzw.js","assets/1.14.42/CampaignCheckEmail-QAnl8lx6.css","assets/1.14.42/CampaignCheckSetPin-TWwkq8KN.js","assets/1.14.42/CampaignCheckSetPin-4JW684ZD.css","assets/1.14.42/CampaignAlreadyRewarded-QG0AiQgl.js","assets/1.14.42/CampaignAlreadyRewarded-wuOXwgNb.css","assets/1.14.42/AddAccountPin-qBUFcnng.js","assets/1.14.42/useLoading-JDFecgrP.js","assets/1.14.42/AddAccountPin-p6zmHtIi.css","assets/1.14.42/ChangeWalletLabel-UEKFpB0p.js","assets/1.14.42/ChangeWalletLabel-Tibb6WZV.css","assets/1.14.42/QRViewer-z2-dlTWc.js","assets/1.14.42/QRViewer-V_P-OuTq.css","assets/1.14.42/ConfirmCaution-gAc1ISn7.js","assets/1.14.42/ConfirmCaution-OGTnkvUq.css","assets/1.14.42/BackupWalletPin-sxqbnJl9.js","assets/1.14.42/BackupWalletPin-Qcmf2gJ7.css","assets/1.14.42/BackupWalletViewMnemonic-arAOv1LN.js","assets/1.14.42/BackupWalletViewMnemonic-V0l6LcKz.css","assets/1.14.42/BackupWalletSortMnemonic-I-NrgdVc.js","assets/1.14.42/BackupWalletSortMnemonic-bgPUOJo_.css","assets/1.14.42/BackupWalletComplete-oGavVjhI.js","assets/1.14.42/secure_wallet-x8qGQKHC.js","assets/1.14.42/BackupWalletComplete-aLCNXakL.css","assets/1.14.42/DeleteWalletExec-CeeYesPf.js","assets/1.14.42/DeleteWalletExec-lhnBpi7e.css","assets/1.14.42/DeleteWalletComplete-oOAgRapL.js","assets/1.14.42/DeleteWalletComplete-zpX7Jly_.css","assets/1.14.42/UnlockWalletPin-jt_44hCr.js","assets/1.14.42/UnlockWalletPin-PfcB8Tp4.css","assets/1.14.42/TransactionDetail-VdTggBzZ.js","assets/1.14.42/TransactionDetail-KoUKTD05.css","assets/1.14.42/SendCoinMain-y4vnF3GJ.js","assets/1.14.42/cookieSetting-Pq-p8lhU.js","assets/1.14.42/SendCoinMain-Ggl5uiCv.css","assets/1.14.42/SelectAccount-lmeA0dzZ.js","assets/1.14.42/SelectAccount-Cwp8L-CJ.css","assets/1.14.42/FeeRoutingMiddleware-0jNYjZBH.js","assets/1.14.42/useSendQuery-UjbNcAww.js","assets/1.14.42/NotImplementError--LGlL3ux.js","assets/1.14.42/FeeRoutingMiddleware-qP07-7DR.css","assets/1.14.42/SetAmount-Ka6Seg-r.js","assets/1.14.42/NetworkInfoCard-_oZ4t3pg.js","assets/1.14.42/SetAmount-Kb1xOJa2.css","assets/1.14.42/ConfirmCoin-ou9u9tD3.js","assets/1.14.42/ConfirmCoin-1m2h816N.css","assets/1.14.42/SendCoinPin-I4AvMN4Q.js","assets/1.14.42/SendCoinPin-a6qdbVHW.css","assets/1.14.42/InputDestination-nXvMJ-KO.js","assets/1.14.42/InputDestination-dXbvyNx0.css","assets/1.14.42/SelectNetworkFee-2K2ldZk_.js","assets/1.14.42/SelectNetworkFee-zlR6ik-M.css","assets/1.14.42/CustomNetworkFee-oXwS4m3E.js","assets/1.14.42/CustomNetworkFee-SVHc3esD.css","assets/1.14.42/SendCoinComplete-PI_cyLv1.js","assets/1.14.42/SendCoinComplete-RWja6kSy.css","assets/1.14.42/SendNFTMain-6dP2dBUi.js","assets/1.14.42/SendNFTMain-ptZgrmDu.css","assets/1.14.42/FeeRoutingMiddleware-Q2jgBKn-.js","assets/1.14.42/FeeRoutingMiddleware-aFG93Mnc.css","assets/1.14.42/SelectNetworkFee-ZvCbaTd7.js","assets/1.14.42/SelectNetworkFee-N86uDwmE.css","assets/1.14.42/CustomNetworkFee-GnJMK0Qs.js","assets/1.14.42/CustomNetworkFee-FqgNg6qj.css","assets/1.14.42/ConfirmNFT-2WgAKdGa.js","assets/1.14.42/NftCountCard-BglVu2zs.js","assets/1.14.42/ConfirmNFT-C-I0Y_He.css","assets/1.14.42/SendNFTPin-9iVwhCU0.js","assets/1.14.42/SendNFTPin-zIs0mnkJ.css","assets/1.14.42/SelectNFT-OEKDr8n0.js","assets/1.14.42/SelectNFT-Ek7g81Y7.css","assets/1.14.42/SendNFTComplete-xRrHBMrw.js","assets/1.14.42/SendNFTComplete-bcdyNlh5.css","assets/1.14.42/OtpSettingStart-NH1q-BpA.js","assets/1.14.42/OtpSettingStart-ptqUBLwr.css","assets/1.14.42/OtpSettingComplete-TIUA7Gyr.js","assets/1.14.42/OtpSettingComplete-Xwi6PhmL.css","assets/1.14.42/DisableOtp-WaI10Sua.js","assets/1.14.42/DisableOtp-DiOy2nZr.css","assets/1.14.42/RecoveryCodeCheck-wBya_-0h.js","assets/1.14.42/RecoveryCodeCheck-Ocbnr6Oj.css","assets/1.14.42/Setting-iqZdsPbr.js","assets/1.14.42/Setting-nXx70PBB.css","assets/1.14.42/AppInstall-BWTkgUMI.js","assets/1.14.42/AppInstall-w568CWdP.css","assets/1.14.42/VerifyQR-xfR7J1KD.js","assets/1.14.42/VerifyQR-nr5yWqHb.css","assets/1.14.42/VerifyCode-mtRZ-WGH.js","assets/1.14.42/VerifyCode-afRrMojj.css","assets/1.14.42/SettingMain-xbtmUfb5.js","assets/1.14.42/SettingMain-X7ixRzPQ.css","assets/1.14.42/ProfileSetting-FUNqqTHS.js","assets/1.14.42/ProfileSetting-0Se7rroy.css","assets/1.14.42/ServiceSetting-HHCfc3sw.js","assets/1.14.42/ServiceSetting-uppSd4oa.css","assets/1.14.42/SecuritySetting-f9aXY1_u.js","assets/1.14.42/SecuritySetting-U3INO3j7.css","assets/1.14.42/SigninView-kYTiryba.js","assets/1.14.42/FixedLogo-C1gqCrzT.js","assets/1.14.42/swiper-vue-9MrRhnOT.js","assets/1.14.42/SigninView-utsE2Tzk.css","assets/1.14.42/SigninEmail-WzIpezVH.js","assets/1.14.42/SignCard-5poTBBAK.js","assets/1.14.42/SigninEmail-HCyFS0uL.css","assets/1.14.42/SigninPassword-ZHPLoF00.js","assets/1.14.42/SigninPassword-93opXPcj.css","assets/1.14.42/BeforeOAuth-zf86o8kU.js","assets/1.14.42/BeforeOAuth-rSJsmLBY.css","assets/1.14.42/RedirectHandler-pfSuqNJa.js","assets/1.14.42/OAuthRedirectHandler-OV7lo4_e.js","assets/1.14.42/SignupCompleteSdk-d6fzrQc2.js","assets/1.14.42/SignupCompleteSdk-qLUM0O1E.css","assets/1.14.42/ResetEmail-OgaFqkYt.js","assets/1.14.42/ResetEmail-vE1Kn8zB.css","assets/1.14.42/ResetPassword-GXVAKv4m.js","assets/1.14.42/ResetPassword-JRzg8r1L.css","assets/1.14.42/ResetComplete-C4Vv74du.js","assets/1.14.42/ResetComplete-0Rj_eGlx.css","assets/1.14.42/Authentication-Co1Dg0sV.js","assets/1.14.42/Authentication-XS7cvPZv.css","assets/1.14.42/LinkSignupView-njymf1xF.js","assets/1.14.42/LinkSignupView-rsaBJ3yX.css","assets/1.14.42/LinkSignupSelector-SilrgsT1.js","assets/1.14.42/LinkSignupSelector-iPHyqIul.css","assets/1.14.42/LinkSigninEmail-p4vFWVws.js","assets/1.14.42/LinkSigninEmail-BGgfs2XW.css","assets/1.14.42/LinkSignupAuth-iuUpItj_.js","assets/1.14.42/SignupAuthentication-dgCv3JZm.js","assets/1.14.42/SignupAuthentication-J1-jkRqv.css","assets/1.14.42/LinkSignupAuth-W_TkWrFo.css","assets/1.14.42/LinkSignupSetPassword-cf6JIUI4.js","assets/1.14.42/LinkSignupSetPassword--6VCqczU.css","assets/1.14.42/LinkSignupSetPin-lNlfBZGh.js","assets/1.14.42/LinkSignupSetPin-rKkHfQjL.css","assets/1.14.42/LinkSignupCreateAccount-co6jTM4b.js","assets/1.14.42/LinkSignupCreateAccount-f1c3rTbT.css","assets/1.14.42/SignupView-vTjIdX2u.js","assets/1.14.42/SignupView-zqSnHG0F.css","assets/1.14.42/SignupEmail-z1hqCo8u.js","assets/1.14.42/SignupEmail-osnKNidT.css","assets/1.14.42/SignupPassword-zG6Z9uky.js","assets/1.14.42/SignupPassword-3dSkHYHV.css","assets/1.14.42/SignupPin-arsMtswa.js","assets/1.14.42/SignupPin-2BHeBil0.css","assets/1.14.42/error-zRPt4CTU.js","assets/1.14.42/error-KuR3nZPk.css","assets/1.14.42/error502-3swobXQ-.js","assets/1.14.42/error502-W-ssZueN.css","assets/1.14.42/error423-CL_UfgkJ.js","assets/1.14.42/coming_soon-QMWO-Jjz.js","assets/1.14.42/error423-NNUxHbkX.css","assets/1.14.42/ComingSoon-9sBEymYx.js","assets/1.14.42/ComingSoon-yzEJjnOa.css","assets/1.14.42/DashBoard-acTPLueb.js","assets/1.14.42/DashBoard-zYZmkZII.css","assets/1.14.42/DashBoardDetailView-og3dRu5c.js","assets/1.14.42/TabSelector-aQL62GUx.js","assets/1.14.42/IconButton-ok06A7RR.js","assets/1.14.42/DashBoardDetailView-gRa5ymWM.css","assets/1.14.42/TabNft-2MUJMJ3R.js","assets/1.14.42/FilterPopover-CeRnvqz1.js","assets/1.14.42/PopoverViewer.vue_vue_type_script_setup_true_lang-aE6Hhu_D.js","assets/1.14.42/TransactionNone-LslSGceu.js","assets/1.14.42/ChartTable-u4_L1IdI.js","assets/1.14.42/timeout-dhSHPcv3.js","assets/1.14.42/TabNft-CzI0PDBF.css","assets/1.14.42/TabAsset-Tg72wudF.js","assets/1.14.42/AccountsCardList-1lxHEJwK.js","assets/1.14.42/WrappedCoinIconNameCard.vue_vue_type_script_setup_true_lang-bZTaC9D5.js","assets/1.14.42/TabAsset-sO0Hwpf3.css","assets/1.14.42/TabApp-sQotWt0P.js","assets/1.14.42/TabApp-QCThOXML.css","assets/1.14.42/WalletView-vhkWoaru.js","assets/1.14.42/PinAlert-yxYBjAHr.js","assets/1.14.42/WalletSelector-YRtr7QMj.js","assets/1.14.42/WalletView-LE5IxIOH.css","assets/1.14.42/WalletDetailView-gjyqw7l1.js","assets/1.14.42/useWowerlay-TyOv4mz8.js","assets/1.14.42/WalletDetailView-IoEu2wqG.css","assets/1.14.42/CreateWalletStarter-jSdFpBvA.js","assets/1.14.42/CreateWalletStarter-yQA97SNY.css","assets/1.14.42/RecoverWallet-RR_ghCzR.js","assets/1.14.42/RecoverWallet-hRg9VKbN.css","assets/1.14.42/RecoverWalletLabelInput-1kyanfzF.js","assets/1.14.42/RecoverWalletLabelInput-ip6zvs5M.css","assets/1.14.42/RecoverWalletPinInput-7kABy9pS.js","assets/1.14.42/RecoverWalletPinInput-GEPVW5dK.css","assets/1.14.42/RecoverWalletComplete-R9k9b4gq.js","assets/1.14.42/RecoverWalletComplete-jiR6KJcK.css","assets/1.14.42/DeleteWalletStart-pmC-SJKe.js","assets/1.14.42/DeleteWalletStart-wF-kukBy.css","assets/1.14.42/AccountDetail-sCGNZjoi.js","assets/1.14.42/AccountDetail-CxjgoPlB.css","assets/1.14.42/NftView-lmKAPkpd.js","assets/1.14.42/NftView-azG_keUc.css","assets/1.14.42/NftCollectionView-raKKgoyk.js","assets/1.14.42/NftCollectionView-xXEfH_Yg.css","assets/1.14.42/NftDetailView-_AFaN-nU.js","assets/1.14.42/NftDetailView-mxrcZYL0.css","assets/1.14.42/PromotionReferralDashBoard-zACoxY17.js","assets/1.14.42/PromotionReferralDashBoard-ud1xMMGS.css","assets/1.14.42/BackupWalletMain-Jyqok7oc.js","assets/1.14.42/BackupWalletMain-aI_bzTCp.css","assets/1.14.42/DropsView-BmBFGqKp.js","assets/1.14.42/DropsView-WXjNj5LM.css"]
  }
  return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
}
