@nine-lab/nine-ux 0.1.182 → 0.1.183

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- (function(vr,zr){typeof exports=="object"&&typeof module<"u"?zr(require("@nine-lab/nine-util")):typeof define=="function"&&define.amd?define(["@nine-lab/nine-util"],zr):(vr=typeof globalThis<"u"?globalThis:vr||self,zr(vr.nine))})(this,function(vr){"use strict";var eee=Object.defineProperty;var CI=vr=>{throw TypeError(vr)};var tee=(vr,zr,xn)=>zr in vr?eee(vr,zr,{enumerable:!0,configurable:!0,writable:!0,value:xn}):vr[zr]=xn;var de=(vr,zr,xn)=>tee(vr,typeof zr!="symbol"?zr+"":zr,xn),$3=(vr,zr,xn)=>zr.has(vr)||CI("Cannot "+xn);var y=(vr,zr,xn)=>($3(vr,zr,"read from private field"),xn?xn.call(vr):zr.get(vr)),Q=(vr,zr,xn)=>zr.has(vr)?CI("Cannot add the same private member more than once"):zr instanceof WeakSet?zr.add(vr):zr.set(vr,xn),oe=(vr,zr,xn,rl)=>($3(vr,zr,"write to private field"),rl?rl.call(vr,xn):zr.set(vr,xn),xn),It=(vr,zr,xn)=>($3(vr,zr,"access private method"),xn);var TI=(vr,zr,xn,rl)=>({set _(Ex){oe(vr,zr,Ex,xn)},get _(){return y(vr,zr,rl)}});var Xp,Yp,L3,Jp,cu,Zp,_i,sy,j3,D3,Qp,Mv,bI,ei,em,tm,xi,U3,RI,OI,MI,II,Bd,Fd,ga,NI,ay,PI,Iv,zd,$I,LI,Nv,Ue,rm,nm,sm,Lo,Pv,Fl,In,$v,Lv,jv,Dv,$t,Bv,Hd,zl,Hl,qd,ql,Ud,im,Vd,Wd,xs,jI,DI,ree,BI,FI,zI,nee,HI,uu,Gd,am,om,lm,cm,Xe,Si,Kd,Fv,um,ot,jo,dm,hm,fm,Ki,pm,mm,Ds,gm,zv,Hv,qv,Uv,Vv,Wv,bm,ym,wm,vm,Gv,Kv,Xd,_m,Yd,Jd,Zd,xm,Qd,eh,du,ba,Sm,th,km,Xv,$r,Xi,ya,Em,ki,rh,wa,Cm,f3,Tm,p3,Am,Rm,nh,sh,Om,Qr,Ei,Ci,Ul,Vl,va,Ti,Wl,Gl,Mm,Im,Nm,m3,Pm,Yv,$m,ih,ah,oh,hu,lh,Jv,yr,fu,Yi,ch,Lm,Zv,Qv,uh,un,hs,jm,Kl,pu,dh,e1,t1,r1,n1,g3,Dm,dn,Xl,mu,hh,s1,Bm,i1,Fm,fh,b3,a1,o1,ph,zm,mh,gu,gh,Wa,l1,Hm,c1,qm,u1,_a,Um,d1,h1,f1,Ga,Vm,Do,kn,kt,cn,Ai,bu,Yl,bh,Wm,yh,Gm,Km,p1,Xm,Ym,wh,vh,Jm,Zm,Qm,en,eg,_h,Bo,yu,xh,tg,y3,w3,m1,rg,Ss,ng,g1,b1,Sh,Fo,xa,zo,y1,sg,kh,w1,Jl,Eh,v1,_1,x1,S1,k1,E1,ig,Ch,C1,ag,Ka,T1,Xa,wu,A1,Hn,Ho,Sa,Zl,Th,Ya,R1,nn,vu,Ah,Rh,Oh,_u,Ja,Za,ft,og,O1,mn,lg,cg,Ri,ug,En,Zn,Ql,M1,Mh,I1,xu,dg,ec,Ji,tc,Su,N1,P1,Ih,$1,Qn,ks,ku,L1,wn,hg,fg,pg,qo,mg,gg,bg,yg,fs,ti,Eu,j1,D1,wg,vg,B1,Bs,Qa,_g,ri,rc,Cu,v3,eo,F1,z1,H1,xg,Sg,kg,q1,U1,sn,Fs,Mt,to,Ar,ni,si,Ph,V1,W1,Eg,G1,Cg,Tg,$h,nc,qn,Uo,cr,ka,Ea,sc,K1,Ag,X1,Rg,Y1,Og,Mg,Lh,Cn,ro,Ig,Ng,Pg,J1,Z1,zt,Q1,$g,Lg,Vo,jg,Dg,Bg,Fg,zg,Hg,qg,Tu,oy,e_,t_,r_,n_,_3,Ug,Vg,s_,i_,a_,De,Nn,ii,Au,Ru,Wg,Gg,Kg,Xg,Yg,o_,l_,c_,jh,ic,ac,Un,oc,u_,Jg,Dh,Zg,Oi,Qg,eb,d_,h_,f_,p_,tb,Ou,rb,Bh,no,nb,sb,m_,Wo,g_,ib,b_,so,y_,ab,w_,ob,lc,cc,Go,v_,lb,Fh,cb,ub,zh,db,hb,uc,fb,Hh,Ko,Mu,qh,__,Uh,Vh,x_,pb,mb,Wh,Gh,gb,bb,yb,S_,Iu,k_,E_,qI,Kh,C_,T_,UI,A_,R_,wb,Xh,vb,O_,_b,Yh,xb,Jh,Xo,Nu,M_,Es,Sb,I_,Zh,VI,WI,N_,Zi,P_,$_,L_,kb,x3,j_,Mi,Eb,Cb,Tb,Ab,D_,Rb,Pu,Ob,Ii,ly,V3,W3,Mb,B_,Ib,F_,Qh,Nb,G3,ef,dc,K3,X3,z_,H_,q_,Yo,U_,Pb,tf,$b,Lb,rf,jb,ai,Db,Bb,Ni,Y3,JI,ZI,QI,eN,V_,hc,$u,Lu,W_,fc,G_,io,pc,Jo,oi,J3,tN,Z3,rN,nN,K_,Pi,nf,mc,Fb,X_,zb,Y_,J_,Z_,Q_,sf,ex,Hb,tx,rx,qb,Ub,nx,sx,Vb,ix,af,ax,ox,lx,cx,ux,Wb,of,lf,ju,dx,Gb,Kb,Xb,hx,Du,fx,px,sN,mx,gx,bx,iN,yx,wx,Yb,Bu,Jb,vx;const zr=typeof window<"u"&&window.nine?window.nine:vr.nine;class xn{constructor(){Q(this,Yp);Q(this,Xp,"")}get cssPath(){var t;return((t=zr.config.ux)==null?void 0:t.cssPath)||y(this,Xp)}set cssPath(t){oe(this,Xp,t)}alert(t,e="Alert"){return It(this,Yp,L3).call(this,"alert",t,e,"classic")}confirm(t,e="Confirm"){return It(this,Yp,L3).call(this,"confirm",t,e,"classic")}getComponentCssPath(t){const e=this.cssPath;return e?`${e.endsWith("/")?e:e+"/"}${t}`:null}}Xp=new WeakMap,Yp=new WeakSet,L3=function(t,e,r,s){const i={class:s,animation:"fade-in"},a=t==="alert"?vr.nineAlertPopup:vr.nineConfirmPopup;let o=!1;const l={rgb:()=>(i.class="rgb",l),classic:()=>(i.class="classic",l),fade:()=>(i.animation="fade",l),zoom:()=>(i.animation="zoom",l),up:()=>(i.animation="moveUp",l),down:()=>(i.animation="moveDown",l),left:()=>(i.animation="moveLeft",l),right:()=>(i.animation="moveRight",l),shake:()=>(i.animation="shake",l),run:()=>(i.animation="roadRunner",l),then:(c,u)=>(o=!0,a[t](e,r,i).then(c,u))};return Promise.resolve().then(()=>{o||(o=!0,a[t](e,r,i))}),l};const rl=new xn;let Ex=(bI=class extends HTMLElement{constructor(){super();Q(this,_i);de(this,"originContents");Q(this,Jp,!1);Q(this,cu);Q(this,Zp,!1);de(this,"getData",()=>{const e={};return It(this,_i,sy).call(this).forEach(r=>{const s=r.name;if(!s)return;let i;if(r.tagName==="INPUT"&&r.type==="checkbox"){let a=r.getAttribute("true-value")||"Y",o=r.getAttribute("false-value")||"N";i=r.checked?a:o}else r.tagName==="INPUT"&&r.type,i=r.value;e[s]?(Array.isArray(e[s])||(e[s]=[e[s]]),e[s].push(i)):e[s]=i}),e});de(this,"clearData",(e={})=>{It(this,_i,D3).call(this),It(this,_i,sy).call(this).forEach(r=>{const s=r.name;if(!s)return;const i=e&&e[s]!==void 0?e[s]:"";It(this,_i,j3).call(this,r,i)}),this.changed=!1});de(this,"setData",e=>{if(!e||typeof e!="object")return;It(this,_i,D3).call(this);let r=!1;It(this,_i,sy).call(this).forEach(s=>{const i=s.name;!i||!e.hasOwnProperty(i)||It(this,_i,j3).call(this,s,e[i])&&(r=!0)}),r&&(this.changed=!0)});de(this,"initData",e=>{this.clearData(e),this.changed=!1});Q(this,Qp,e=>{this.changed=!0});Q(this,Mv,()=>{for(const e of this.attributes)e.name.startsWith("css-")&&this.style.setProperty(e.name.substring(4),e.value);this.originContents=this.innerHTML.trim(),this.innerHTML="",this.shadowRoot&&this.tagName.toLowerCase()==="nx-div"&&(this.shadowRoot.innerHTML=this.originContents)})}connectedCallback(){return y(this,Jp)?!1:(this.getAttribute("use-shadow")!=="false"&&!this.shadowRoot?(this.attachShadow({mode:"open"}),oe(this,cu,this.shadowRoot)):oe(this,cu,this),y(this,Mv).call(this),oe(this,Jp,!0),!0)}get changed(){return y(this,Zp)}set changed(e){const r=!!e;oe(this,Zp,r);const s=this.closest(".detail-wrapper");if(s){const i=s.querySelector("nx-title2");i&&(i.changed=r)}}get root(){return y(this,cu)||this}},Jp=new WeakMap,cu=new WeakMap,Zp=new WeakMap,_i=new WeakSet,sy=function(){return ninegrid.querySelectorAll("input[name], textarea[name], select[name], nx-editor[name]",y(this,cu))},j3=function(e,r){const s=e.tagName.toUpperCase(),i=e.type;let a=!1;if(["INPUT","TEXTAREA","SELECT","NX-EDITOR"].includes(s))if(i==="checkbox"){const o=e.getAttribute("true-value")||"Y",l=String(o)===String(r);e.checked!==l&&(a=!0),e.checked=l}else if(i==="radio"){const o=String(e.value)===String(r);e.checked!==o&&(a=!0),e.checked=o}else e.value!==r&&(a=!0),e.value=r;else e.textContent!==r&&(a=!0),e.textContent=r;return a},D3=function(){It(this,_i,sy).call(this).forEach(e=>{e.removeEventListener("input",y(this,Qp)),e.addEventListener("input",y(this,Qp))})},Qp=new WeakMap,Mv=new WeakMap,bI);function es(n){this.content=n}es.prototype={constructor:es,find:function(n){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===n)return t;return-1},get:function(n){var t=this.find(n);return t==-1?void 0:this.content[t+1]},update:function(n,t,e){var r=e&&e!=n?this.remove(e):this,s=r.find(n),i=r.content.slice();return s==-1?i.push(e||n,t):(i[s+1]=t,e&&(i[s]=e)),new es(i)},remove:function(n){var t=this.find(n);if(t==-1)return this;var e=this.content.slice();return e.splice(t,2),new es(e)},addToStart:function(n,t){return new es([n,t].concat(this.remove(n).content))},addToEnd:function(n,t){var e=this.remove(n).content.slice();return e.push(n,t),new es(e)},addBefore:function(n,t,e){var r=this.remove(t),s=r.content.slice(),i=r.find(n);return s.splice(i==-1?s.length:i,0,t,e),new es(s)},forEach:function(n){for(var t=0;t<this.content.length;t+=2)n(this.content[t],this.content[t+1])},prepend:function(n){return n=es.from(n),n.size?new es(n.content.concat(this.subtract(n).content)):this},append:function(n){return n=es.from(n),n.size?new es(this.subtract(n).content.concat(n.content)):this},subtract:function(n){var t=this;n=es.from(n);for(var e=0;e<n.content.length;e+=2)t=t.remove(n.content[e]);return t},toObject:function(){var n={};return this.forEach(function(t,e){n[t]=e}),n},get size(){return this.content.length>>1}},es.from=function(n){if(n instanceof es)return n;var t=[];if(n)for(var e in n)t.push(e,n[e]);return new es(t)};function Q3(n,t,e){for(let r=0;;r++){if(r==n.childCount||r==t.childCount)return n.childCount==t.childCount?null:e;let s=n.child(r),i=t.child(r);if(s==i){e+=s.nodeSize;continue}if(!s.sameMarkup(i))return e;if(s.isText&&s.text!=i.text){for(let a=0;s.text[a]==i.text[a];a++)e++;return e}if(s.content.size||i.content.size){let a=Q3(s.content,i.content,e+1);if(a!=null)return a}e+=s.nodeSize}}function eC(n,t,e,r){for(let s=n.childCount,i=t.childCount;;){if(s==0||i==0)return s==i?null:{a:e,b:r};let a=n.child(--s),o=t.child(--i),l=a.nodeSize;if(a==o){e-=l,r-=l;continue}if(!a.sameMarkup(o))return{a:e,b:r};if(a.isText&&a.text!=o.text){let c=0,u=Math.min(a.text.length,o.text.length);for(;c<u&&a.text[a.text.length-c-1]==o.text[o.text.length-c-1];)c++,e--,r--;return{a:e,b:r}}if(a.content.size||o.content.size){let c=eC(a.content,o.content,e-1,r-1);if(c)return c}e-=l,r-=l}}class He{constructor(t,e){if(this.content=t,this.size=e||0,e==null)for(let r=0;r<t.length;r++)this.size+=t[r].nodeSize}nodesBetween(t,e,r,s=0,i){for(let a=0,o=0;o<e;a++){let l=this.content[a],c=o+l.nodeSize;if(c>t&&r(l,s+o,i||null,a)!==!1&&l.content.size){let u=o+1;l.nodesBetween(Math.max(0,t-u),Math.min(l.content.size,e-u),r,s+u)}o=c}}descendants(t){this.nodesBetween(0,this.size,t)}textBetween(t,e,r,s){let i="",a=!0;return this.nodesBetween(t,e,(o,l)=>{let c=o.isText?o.text.slice(Math.max(t,l)-l,e-l):o.isLeaf?s?typeof s=="function"?s(o):s:o.type.spec.leafText?o.type.spec.leafText(o):"":"";o.isBlock&&(o.isLeaf&&c||o.isTextblock)&&r&&(a?a=!1:i+=r),i+=c},0),i}append(t){if(!t.size)return this;if(!this.size)return t;let e=this.lastChild,r=t.firstChild,s=this.content.slice(),i=0;for(e.isText&&e.sameMarkup(r)&&(s[s.length-1]=e.withText(e.text+r.text),i=1);i<t.content.length;i++)s.push(t.content[i]);return new He(s,this.size+t.size)}cut(t,e=this.size){if(t==0&&e==this.size)return this;let r=[],s=0;if(e>t)for(let i=0,a=0;a<e;i++){let o=this.content[i],l=a+o.nodeSize;l>t&&((a<t||l>e)&&(o.isText?o=o.cut(Math.max(0,t-a),Math.min(o.text.length,e-a)):o=o.cut(Math.max(0,t-a-1),Math.min(o.content.size,e-a-1))),r.push(o),s+=o.nodeSize),a=l}return new He(r,s)}cutByIndex(t,e){return t==e?He.empty:t==0&&e==this.content.length?this:new He(this.content.slice(t,e))}replaceChild(t,e){let r=this.content[t];if(r==e)return this;let s=this.content.slice(),i=this.size+e.nodeSize-r.nodeSize;return s[t]=e,new He(s,i)}addToStart(t){return new He([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new He(this.content.concat(t),this.size+t.nodeSize)}eq(t){if(this.content.length!=t.content.length)return!1;for(let e=0;e<this.content.length;e++)if(!this.content[e].eq(t.content[e]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(t){let e=this.content[t];if(!e)throw new RangeError("Index "+t+" out of range for "+this);return e}maybeChild(t){return this.content[t]||null}forEach(t){for(let e=0,r=0;e<this.content.length;e++){let s=this.content[e];t(s,r,e),r+=s.nodeSize}}findDiffStart(t,e=0){return Q3(this,t,e)}findDiffEnd(t,e=this.size,r=t.size){return eC(this,t,e,r)}findIndex(t){if(t==0)return uy(0,t);if(t==this.size)return uy(this.content.length,t);if(t>this.size||t<0)throw new RangeError(`Position ${t} outside of fragment (${this})`);for(let e=0,r=0;;e++){let s=this.child(e),i=r+s.nodeSize;if(i>=t)return i==t?uy(e+1,i):uy(e,r);r=i}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(t=>t.toJSON()):null}static fromJSON(t,e){if(!e)return He.empty;if(!Array.isArray(e))throw new RangeError("Invalid input for Fragment.fromJSON");return new He(e.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return He.empty;let e,r=0;for(let s=0;s<t.length;s++){let i=t[s];r+=i.nodeSize,s&&i.isText&&t[s-1].sameMarkup(i)?(e||(e=t.slice(0,s)),e[e.length-1]=i.withText(e[e.length-1].text+i.text)):e&&e.push(i)}return new He(e||t,r)}static from(t){if(!t)return He.empty;if(t instanceof He)return t;if(Array.isArray(t))return this.fromArray(t);if(t.attrs)return new He([t],t.nodeSize);throw new RangeError("Can not convert "+t+" to a Fragment"+(t.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}He.empty=new He([],0);const Cx={index:0,offset:0};function uy(n,t){return Cx.index=n,Cx.offset=t,Cx}function dy(n,t){if(n===t)return!0;if(!(n&&typeof n=="object")||!(t&&typeof t=="object"))return!1;let e=Array.isArray(n);if(Array.isArray(t)!=e)return!1;if(e){if(n.length!=t.length)return!1;for(let r=0;r<n.length;r++)if(!dy(n[r],t[r]))return!1}else{for(let r in n)if(!(r in t)||!dy(n[r],t[r]))return!1;for(let r in t)if(!(r in n))return!1}return!0}let tn=class B3{constructor(t,e){this.type=t,this.attrs=e}addToSet(t){let e,r=!1;for(let s=0;s<t.length;s++){let i=t[s];if(this.eq(i))return t;if(this.type.excludes(i.type))e||(e=t.slice(0,s));else{if(i.type.excludes(this.type))return t;!r&&i.type.rank>this.type.rank&&(e||(e=t.slice(0,s)),e.push(this),r=!0),e&&e.push(i)}}return e||(e=t.slice()),r||e.push(this),e}removeFromSet(t){for(let e=0;e<t.length;e++)if(this.eq(t[e]))return t.slice(0,e).concat(t.slice(e+1));return t}isInSet(t){for(let e=0;e<t.length;e++)if(this.eq(t[e]))return!0;return!1}eq(t){return this==t||this.type==t.type&&dy(this.attrs,t.attrs)}toJSON(){let t={type:this.type.name};for(let e in this.attrs){t.attrs=this.attrs;break}return t}static fromJSON(t,e){if(!e)throw new RangeError("Invalid input for Mark.fromJSON");let r=t.marks[e.type];if(!r)throw new RangeError(`There is no mark type ${e.type} in this schema`);let s=r.create(e.attrs);return r.checkAttrs(s.attrs),s}static sameSet(t,e){if(t==e)return!0;if(t.length!=e.length)return!1;for(let r=0;r<t.length;r++)if(!t[r].eq(e[r]))return!1;return!0}static setFrom(t){if(!t||Array.isArray(t)&&t.length==0)return B3.none;if(t instanceof B3)return[t];let e=t.slice();return e.sort((r,s)=>r.type.rank-s.type.rank),e}};tn.none=[];class hy extends Error{}class lt{constructor(t,e,r){this.content=t,this.openStart=e,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(t,e){let r=rC(this.content,t+this.openStart,e);return r&&new lt(r,this.openStart,this.openEnd)}removeBetween(t,e){return new lt(tC(this.content,t+this.openStart,e+this.openStart),this.openStart,this.openEnd)}eq(t){return this.content.eq(t.content)&&this.openStart==t.openStart&&this.openEnd==t.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let t={content:this.content.toJSON()};return this.openStart>0&&(t.openStart=this.openStart),this.openEnd>0&&(t.openEnd=this.openEnd),t}static fromJSON(t,e){if(!e)return lt.empty;let r=e.openStart||0,s=e.openEnd||0;if(typeof r!="number"||typeof s!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new lt(He.fromJSON(t,e.content),r,s)}static maxOpen(t,e=!0){let r=0,s=0;for(let i=t.firstChild;i&&!i.isLeaf&&(e||!i.type.spec.isolating);i=i.firstChild)r++;for(let i=t.lastChild;i&&!i.isLeaf&&(e||!i.type.spec.isolating);i=i.lastChild)s++;return new lt(t,r,s)}}lt.empty=new lt(He.empty,0,0);function tC(n,t,e){let{index:r,offset:s}=n.findIndex(t),i=n.maybeChild(r),{index:a,offset:o}=n.findIndex(e);if(s==t||i.isText){if(o!=e&&!n.child(a).isText)throw new RangeError("Removing non-flat range");return n.cut(0,t).append(n.cut(e))}if(r!=a)throw new RangeError("Removing non-flat range");return n.replaceChild(r,i.copy(tC(i.content,t-s-1,e-s-1)))}function rC(n,t,e,r){let{index:s,offset:i}=n.findIndex(t),a=n.maybeChild(s);if(i==t||a.isText)return r&&!r.canReplace(s,s,e)?null:n.cut(0,t).append(e).append(n.cut(t));let o=rC(a.content,t-i-1,e,a);return o&&n.replaceChild(s,a.copy(o))}function aN(n,t,e){if(e.openStart>n.depth)throw new hy("Inserted content deeper than insertion position");if(n.depth-e.openStart!=t.depth-e.openEnd)throw new hy("Inconsistent open depths");return nC(n,t,e,0)}function nC(n,t,e,r){let s=n.index(r),i=n.node(r);if(s==t.index(r)&&r<n.depth-e.openStart){let a=nC(n,t,e,r+1);return i.copy(i.content.replaceChild(s,a))}else if(e.content.size)if(!e.openStart&&!e.openEnd&&n.depth==r&&t.depth==r){let a=n.parent,o=a.content;return Sc(a,o.cut(0,n.parentOffset).append(e.content).append(o.cut(t.parentOffset)))}else{let{start:a,end:o}=oN(e,n);return Sc(i,iC(n,a,o,t,r))}else return Sc(i,fy(n,t,r))}function sC(n,t){if(!t.type.compatibleContent(n.type))throw new hy("Cannot join "+t.type.name+" onto "+n.type.name)}function Tx(n,t,e){let r=n.node(e);return sC(r,t.node(e)),r}function xc(n,t){let e=t.length-1;e>=0&&n.isText&&n.sameMarkup(t[e])?t[e]=n.withText(t[e].text+n.text):t.push(n)}function gf(n,t,e,r){let s=(t||n).node(e),i=0,a=t?t.index(e):s.childCount;n&&(i=n.index(e),n.depth>e?i++:n.textOffset&&(xc(n.nodeAfter,r),i++));for(let o=i;o<a;o++)xc(s.child(o),r);t&&t.depth==e&&t.textOffset&&xc(t.nodeBefore,r)}function Sc(n,t){return n.type.checkContent(t),n.copy(t)}function iC(n,t,e,r,s){let i=n.depth>s&&Tx(n,t,s+1),a=r.depth>s&&Tx(e,r,s+1),o=[];return gf(null,n,s,o),i&&a&&t.index(s)==e.index(s)?(sC(i,a),xc(Sc(i,iC(n,t,e,r,s+1)),o)):(i&&xc(Sc(i,fy(n,t,s+1)),o),gf(t,e,s,o),a&&xc(Sc(a,fy(e,r,s+1)),o)),gf(r,null,s,o),new He(o)}function fy(n,t,e){let r=[];if(gf(null,n,e,r),n.depth>e){let s=Tx(n,t,e+1);xc(Sc(s,fy(n,t,e+1)),r)}return gf(t,null,e,r),new He(r)}function oN(n,t){let e=t.depth-n.openStart,s=t.node(e).copy(n.content);for(let i=e-1;i>=0;i--)s=t.node(i).copy(He.from(s));return{start:s.resolveNoCache(n.openStart+e),end:s.resolveNoCache(s.content.size-n.openEnd-e)}}class bf{constructor(t,e,r){this.pos=t,this.path=e,this.parentOffset=r,this.depth=e.length/3-1}resolveDepth(t){return t==null?this.depth:t<0?this.depth+t:t}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(t){return this.path[this.resolveDepth(t)*3]}index(t){return this.path[this.resolveDepth(t)*3+1]}indexAfter(t){return t=this.resolveDepth(t),this.index(t)+(t==this.depth&&!this.textOffset?0:1)}start(t){return t=this.resolveDepth(t),t==0?0:this.path[t*3-1]+1}end(t){return t=this.resolveDepth(t),this.start(t)+this.node(t).content.size}before(t){if(t=this.resolveDepth(t),!t)throw new RangeError("There is no position before the top-level node");return t==this.depth+1?this.pos:this.path[t*3-1]}after(t){if(t=this.resolveDepth(t),!t)throw new RangeError("There is no position after the top-level node");return t==this.depth+1?this.pos:this.path[t*3-1]+this.path[t*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let t=this.parent,e=this.index(this.depth);if(e==t.childCount)return null;let r=this.pos-this.path[this.path.length-1],s=t.child(e);return r?t.child(e).cut(r):s}get nodeBefore(){let t=this.index(this.depth),e=this.pos-this.path[this.path.length-1];return e?this.parent.child(t).cut(0,e):t==0?null:this.parent.child(t-1)}posAtIndex(t,e){e=this.resolveDepth(e);let r=this.path[e*3],s=e==0?0:this.path[e*3-1]+1;for(let i=0;i<t;i++)s+=r.child(i).nodeSize;return s}marks(){let t=this.parent,e=this.index();if(t.content.size==0)return tn.none;if(this.textOffset)return t.child(e).marks;let r=t.maybeChild(e-1),s=t.maybeChild(e);if(!r){let o=r;r=s,s=o}let i=r.marks;for(var a=0;a<i.length;a++)i[a].type.spec.inclusive===!1&&(!s||!i[a].isInSet(s.marks))&&(i=i[a--].removeFromSet(i));return i}marksAcross(t){let e=this.parent.maybeChild(this.index());if(!e||!e.isInline)return null;let r=e.marks,s=t.parent.maybeChild(t.index());for(var i=0;i<r.length;i++)r[i].type.spec.inclusive===!1&&(!s||!r[i].isInSet(s.marks))&&(r=r[i--].removeFromSet(r));return r}sharedDepth(t){for(let e=this.depth;e>0;e--)if(this.start(e)<=t&&this.end(e)>=t)return e;return 0}blockRange(t=this,e){if(t.pos<this.pos)return t.blockRange(this);for(let r=this.depth-(this.parent.inlineContent||this.pos==t.pos?1:0);r>=0;r--)if(t.pos<=this.end(r)&&(!e||e(this.node(r))))return new py(this,t,r);return null}sameParent(t){return this.pos-this.parentOffset==t.pos-t.parentOffset}max(t){return t.pos>this.pos?t:this}min(t){return t.pos<this.pos?t:this}toString(){let t="";for(let e=1;e<=this.depth;e++)t+=(t?"/":"")+this.node(e).type.name+"_"+this.index(e-1);return t+":"+this.parentOffset}static resolve(t,e){if(!(e>=0&&e<=t.content.size))throw new RangeError("Position "+e+" out of range");let r=[],s=0,i=e;for(let a=t;;){let{index:o,offset:l}=a.content.findIndex(i),c=i-l;if(r.push(a,o,s+l),!c||(a=a.child(o),a.isText))break;i=c-1,s+=l+1}return new bf(e,r,i)}static resolveCached(t,e){let r=aC.get(t);if(r)for(let i=0;i<r.elts.length;i++){let a=r.elts[i];if(a.pos==e)return a}else aC.set(t,r=new lN);let s=r.elts[r.i]=bf.resolve(t,e);return r.i=(r.i+1)%cN,s}}class lN{constructor(){this.elts=[],this.i=0}}const cN=12,aC=new WeakMap;class py{constructor(t,e,r){this.$from=t,this.$to=e,this.depth=r}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const uN=Object.create(null);let mo=class F3{constructor(t,e,r,s=tn.none){this.type=t,this.attrs=e,this.marks=s,this.content=r||He.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(t){return this.content.child(t)}maybeChild(t){return this.content.maybeChild(t)}forEach(t){this.content.forEach(t)}nodesBetween(t,e,r,s=0){this.content.nodesBetween(t,e,r,s,this)}descendants(t){this.nodesBetween(0,this.content.size,t)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(t,e,r,s){return this.content.textBetween(t,e,r,s)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(t){return this==t||this.sameMarkup(t)&&this.content.eq(t.content)}sameMarkup(t){return this.hasMarkup(t.type,t.attrs,t.marks)}hasMarkup(t,e,r){return this.type==t&&dy(this.attrs,e||t.defaultAttrs||uN)&&tn.sameSet(this.marks,r||tn.none)}copy(t=null){return t==this.content?this:new F3(this.type,this.attrs,t,this.marks)}mark(t){return t==this.marks?this:new F3(this.type,this.attrs,this.content,t)}cut(t,e=this.content.size){return t==0&&e==this.content.size?this:this.copy(this.content.cut(t,e))}slice(t,e=this.content.size,r=!1){if(t==e)return lt.empty;let s=this.resolve(t),i=this.resolve(e),a=r?0:s.sharedDepth(e),o=s.start(a),c=s.node(a).content.cut(s.pos-o,i.pos-o);return new lt(c,s.depth-a,i.depth-a)}replace(t,e,r){return aN(this.resolve(t),this.resolve(e),r)}nodeAt(t){for(let e=this;;){let{index:r,offset:s}=e.content.findIndex(t);if(e=e.maybeChild(r),!e)return null;if(s==t||e.isText)return e;t-=s+1}}childAfter(t){let{index:e,offset:r}=this.content.findIndex(t);return{node:this.content.maybeChild(e),index:e,offset:r}}childBefore(t){if(t==0)return{node:null,index:0,offset:0};let{index:e,offset:r}=this.content.findIndex(t);if(r<t)return{node:this.content.child(e),index:e,offset:r};let s=this.content.child(e-1);return{node:s,index:e-1,offset:r-s.nodeSize}}resolve(t){return bf.resolveCached(this,t)}resolveNoCache(t){return bf.resolve(this,t)}rangeHasMark(t,e,r){let s=!1;return e>t&&this.nodesBetween(t,e,i=>(r.isInSet(i.marks)&&(s=!0),!s)),s}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let t=this.type.name;return this.content.size&&(t+="("+this.content.toStringInner()+")"),oC(this.marks,t)}contentMatchAt(t){let e=this.type.contentMatch.matchFragment(this.content,0,t);if(!e)throw new Error("Called contentMatchAt on a node with invalid content");return e}canReplace(t,e,r=He.empty,s=0,i=r.childCount){let a=this.contentMatchAt(t).matchFragment(r,s,i),o=a&&a.matchFragment(this.content,e);if(!o||!o.validEnd)return!1;for(let l=s;l<i;l++)if(!this.type.allowsMarks(r.child(l).marks))return!1;return!0}canReplaceWith(t,e,r,s){if(s&&!this.type.allowsMarks(s))return!1;let i=this.contentMatchAt(t).matchType(r),a=i&&i.matchFragment(this.content,e);return a?a.validEnd:!1}canAppend(t){return t.content.size?this.canReplace(this.childCount,this.childCount,t.content):this.type.compatibleContent(t.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let t=tn.none;for(let e=0;e<this.marks.length;e++){let r=this.marks[e];r.type.checkAttrs(r.attrs),t=r.addToSet(t)}if(!tn.sameSet(t,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(e=>e.type.name)}`);this.content.forEach(e=>e.check())}toJSON(){let t={type:this.type.name};for(let e in this.attrs){t.attrs=this.attrs;break}return this.content.size&&(t.content=this.content.toJSON()),this.marks.length&&(t.marks=this.marks.map(e=>e.toJSON())),t}static fromJSON(t,e){if(!e)throw new RangeError("Invalid input for Node.fromJSON");let r;if(e.marks){if(!Array.isArray(e.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=e.marks.map(t.markFromJSON)}if(e.type=="text"){if(typeof e.text!="string")throw new RangeError("Invalid text node in JSON");return t.text(e.text,r)}let s=He.fromJSON(t,e.content),i=t.nodeType(e.type).create(e.attrs,s,r);return i.type.checkAttrs(i.attrs),i}};mo.prototype.text=void 0;class my extends mo{constructor(t,e,r,s){if(super(t,e,null,s),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):oC(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(t,e){return this.text.slice(t,e)}get nodeSize(){return this.text.length}mark(t){return t==this.marks?this:new my(this.type,this.attrs,this.text,t)}withText(t){return t==this.text?this:new my(this.type,this.attrs,t,this.marks)}cut(t=0,e=this.text.length){return t==0&&e==this.text.length?this:this.withText(this.text.slice(t,e))}eq(t){return this.sameMarkup(t)&&this.text==t.text}toJSON(){let t=super.toJSON();return t.text=this.text,t}}function oC(n,t){for(let e=n.length-1;e>=0;e--)t=n[e].type.name+"("+t+")";return t}class kc{constructor(t){this.validEnd=t,this.next=[],this.wrapCache=[]}static parse(t,e){let r=new dN(t,e);if(r.next==null)return kc.empty;let s=lC(r);r.next&&r.err("Unexpected trailing text");let i=yN(bN(s));return wN(i,r),i}matchType(t){for(let e=0;e<this.next.length;e++)if(this.next[e].type==t)return this.next[e].next;return null}matchFragment(t,e=0,r=t.childCount){let s=this;for(let i=e;s&&i<r;i++)s=s.matchType(t.child(i).type);return s}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let t=0;t<this.next.length;t++){let{type:e}=this.next[t];if(!(e.isText||e.hasRequiredAttrs()))return e}return null}compatible(t){for(let e=0;e<this.next.length;e++)for(let r=0;r<t.next.length;r++)if(this.next[e].type==t.next[r].type)return!0;return!1}fillBefore(t,e=!1,r=0){let s=[this];function i(a,o){let l=a.matchFragment(t,r);if(l&&(!e||l.validEnd))return He.from(o.map(c=>c.createAndFill()));for(let c=0;c<a.next.length;c++){let{type:u,next:h}=a.next[c];if(!(u.isText||u.hasRequiredAttrs())&&s.indexOf(h)==-1){s.push(h);let d=i(h,o.concat(u));if(d)return d}}return null}return i(this,[])}findWrapping(t){for(let r=0;r<this.wrapCache.length;r+=2)if(this.wrapCache[r]==t)return this.wrapCache[r+1];let e=this.computeWrapping(t);return this.wrapCache.push(t,e),e}computeWrapping(t){let e=Object.create(null),r=[{match:this,type:null,via:null}];for(;r.length;){let s=r.shift(),i=s.match;if(i.matchType(t)){let a=[];for(let o=s;o.type;o=o.via)a.push(o.type);return a.reverse()}for(let a=0;a<i.next.length;a++){let{type:o,next:l}=i.next[a];!o.isLeaf&&!o.hasRequiredAttrs()&&!(o.name in e)&&(!s.type||l.validEnd)&&(r.push({match:o.contentMatch,type:o,via:s}),e[o.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(t){if(t>=this.next.length)throw new RangeError(`There's no ${t}th edge in this content match`);return this.next[t]}toString(){let t=[];function e(r){t.push(r);for(let s=0;s<r.next.length;s++)t.indexOf(r.next[s].next)==-1&&e(r.next[s].next)}return e(this),t.map((r,s)=>{let i=s+(r.validEnd?"*":" ")+" ";for(let a=0;a<r.next.length;a++)i+=(a?", ":"")+r.next[a].type.name+"->"+t.indexOf(r.next[a].next);return i}).join(`
1
+ (function(br,zr){typeof exports=="object"&&typeof module<"u"?zr(require("@nine-lab/nine-util")):typeof define=="function"&&define.amd?define(["@nine-lab/nine-util"],zr):(br=typeof globalThis<"u"?globalThis:br||self,zr(br.nine))})(this,function(br){"use strict";var eee=Object.defineProperty;var CI=br=>{throw TypeError(br)};var tee=(br,zr,xn)=>zr in br?eee(br,zr,{enumerable:!0,configurable:!0,writable:!0,value:xn}):br[zr]=xn;var de=(br,zr,xn)=>tee(br,typeof zr!="symbol"?zr+"":zr,xn),$3=(br,zr,xn)=>zr.has(br)||CI("Cannot "+xn);var y=(br,zr,xn)=>($3(br,zr,"read from private field"),xn?xn.call(br):zr.get(br)),Q=(br,zr,xn)=>zr.has(br)?CI("Cannot add the same private member more than once"):zr instanceof WeakSet?zr.add(br):zr.set(br,xn),oe=(br,zr,xn,rl)=>($3(br,zr,"write to private field"),rl?rl.call(br,xn):zr.set(br,xn),xn),It=(br,zr,xn)=>($3(br,zr,"access private method"),xn);var TI=(br,zr,xn,rl)=>({set _(Ex){oe(br,zr,Ex,xn)},get _(){return y(br,zr,rl)}});var Xp,Yp,L3,Jp,cu,Zp,_i,sy,j3,D3,Qp,Mv,bI,ei,em,tm,xi,U3,RI,OI,MI,II,Bd,Fd,ga,NI,ay,PI,Iv,zd,$I,LI,Nv,Ue,rm,nm,sm,Lo,Pv,Fl,In,$v,Lv,jv,Dv,$t,Bv,Hd,zl,Hl,qd,ql,Ud,im,Vd,Wd,xs,jI,DI,ree,BI,FI,zI,nee,HI,uu,Gd,am,om,lm,cm,Xe,Si,Kd,Fv,um,ot,jo,dm,hm,fm,Ki,pm,mm,Ds,gm,zv,Hv,qv,Uv,Vv,Wv,bm,ym,wm,vm,Gv,Kv,Xd,_m,Yd,Jd,Zd,xm,Qd,eh,du,ba,Sm,th,km,Xv,$r,Xi,ya,Em,ki,rh,wa,Cm,f3,Tm,p3,Am,Rm,nh,sh,Om,Qr,Ei,Ci,Ul,Vl,va,Ti,Wl,Gl,Mm,Im,Nm,m3,Pm,Yv,$m,ih,ah,oh,hu,lh,Jv,wr,fu,Yi,ch,Lm,Zv,Qv,uh,un,hs,jm,Kl,pu,dh,e1,t1,r1,n1,g3,Dm,dn,Xl,mu,hh,s1,Bm,i1,Fm,fh,b3,a1,o1,ph,zm,mh,gu,gh,Wa,l1,Hm,c1,qm,u1,_a,Um,d1,h1,f1,Ga,Vm,Do,kn,kt,cn,Ai,bu,Yl,bh,Wm,yh,Gm,Km,p1,Xm,Ym,wh,vh,Jm,Zm,Qm,en,eg,_h,Bo,yu,xh,tg,y3,w3,m1,rg,Ss,ng,g1,b1,Sh,Fo,xa,zo,y1,sg,kh,w1,Jl,Eh,v1,_1,x1,S1,k1,E1,ig,Ch,C1,ag,Ka,T1,Xa,wu,A1,Hn,Ho,Sa,Zl,Th,Ya,R1,nn,vu,Ah,Rh,Oh,_u,Ja,Za,ft,og,O1,mn,lg,cg,Ri,ug,En,Zn,Ql,M1,Mh,I1,xu,dg,ec,Ji,tc,Su,N1,P1,Ih,$1,Qn,ks,ku,L1,wn,hg,fg,pg,qo,mg,gg,bg,yg,fs,ti,Eu,j1,D1,wg,vg,B1,Bs,Qa,_g,ri,rc,Cu,v3,eo,F1,z1,H1,xg,Sg,kg,q1,U1,sn,Fs,Mt,to,Ar,ni,si,Ph,V1,W1,Eg,G1,Cg,Tg,$h,nc,qn,Uo,cr,ka,Ea,sc,K1,Ag,X1,Rg,Y1,Og,Mg,Lh,Cn,ro,Ig,Ng,Pg,J1,Z1,zt,Q1,$g,Lg,Vo,jg,Dg,Bg,Fg,zg,Hg,qg,Tu,oy,e_,t_,r_,n_,_3,Ug,Vg,s_,i_,a_,De,Nn,ii,Au,Ru,Wg,Gg,Kg,Xg,Yg,o_,l_,c_,jh,ic,ac,Un,oc,u_,Jg,Dh,Zg,Oi,Qg,eb,d_,h_,f_,p_,tb,Ou,rb,Bh,no,nb,sb,m_,Wo,g_,ib,b_,so,y_,ab,w_,ob,lc,cc,Go,v_,lb,Fh,cb,ub,zh,db,hb,uc,fb,Hh,Ko,Mu,qh,__,Uh,Vh,x_,pb,mb,Wh,Gh,gb,bb,yb,S_,Iu,k_,E_,qI,Kh,C_,T_,UI,A_,R_,wb,Xh,vb,O_,_b,Yh,xb,Jh,Xo,Nu,M_,Es,Sb,I_,Zh,VI,WI,N_,Zi,P_,$_,L_,kb,x3,j_,Mi,Eb,Cb,Tb,Ab,D_,Rb,Pu,Ob,Ii,ly,V3,W3,Mb,B_,Ib,F_,Qh,Nb,G3,ef,dc,K3,X3,z_,H_,q_,Yo,U_,Pb,tf,$b,Lb,rf,jb,ai,Db,Bb,Ni,Y3,JI,ZI,QI,eN,V_,hc,$u,Lu,W_,fc,G_,io,pc,Jo,oi,J3,tN,Z3,rN,nN,K_,Pi,nf,mc,Fb,X_,zb,Y_,J_,Z_,Q_,sf,ex,Hb,tx,rx,qb,Ub,nx,sx,Vb,ix,af,ax,ox,lx,cx,ux,Wb,of,lf,ju,dx,Gb,Kb,Xb,hx,Du,fx,px,sN,mx,gx,bx,iN,yx,wx,Yb,Bu,Jb,vx;const zr=typeof window<"u"&&window.nine?window.nine:br.nine;class xn{constructor(){Q(this,Yp);Q(this,Xp,"")}get cssPath(){var t;return((t=zr.config.ux)==null?void 0:t.cssPath)||y(this,Xp)}set cssPath(t){oe(this,Xp,t)}alert(t,e="Alert"){return It(this,Yp,L3).call(this,"alert",t,e,"classic")}confirm(t,e="Confirm"){return It(this,Yp,L3).call(this,"confirm",t,e,"classic")}getComponentCssPath(t){const e=this.cssPath;return e?`${e.endsWith("/")?e:e+"/"}${t}`:null}}Xp=new WeakMap,Yp=new WeakSet,L3=function(t,e,r,s){const i={class:s,animation:"fade-in"},a=t==="alert"?br.nineAlertPopup:br.nineConfirmPopup;let o=!1;const l={rgb:()=>(i.class="rgb",l),classic:()=>(i.class="classic",l),fade:()=>(i.animation="fade",l),zoom:()=>(i.animation="zoom",l),up:()=>(i.animation="moveUp",l),down:()=>(i.animation="moveDown",l),left:()=>(i.animation="moveLeft",l),right:()=>(i.animation="moveRight",l),shake:()=>(i.animation="shake",l),run:()=>(i.animation="roadRunner",l),then:(c,u)=>(o=!0,a[t](e,r,i).then(c,u))};return Promise.resolve().then(()=>{o||(o=!0,a[t](e,r,i))}),l};const rl=new xn;let Ex=(bI=class extends HTMLElement{constructor(){super();Q(this,_i);de(this,"originContents");Q(this,Jp,!1);Q(this,cu);Q(this,Zp,!1);de(this,"getData",()=>{const e={};return It(this,_i,sy).call(this).forEach(r=>{const s=r.name;if(!s)return;let i;if(r.tagName==="INPUT"&&r.type==="checkbox"){let a=r.getAttribute("true-value")||"Y",o=r.getAttribute("false-value")||"N";i=r.checked?a:o}else r.tagName==="INPUT"&&r.type,i=r.value;e[s]?(Array.isArray(e[s])||(e[s]=[e[s]]),e[s].push(i)):e[s]=i}),e});de(this,"clearData",(e={})=>{It(this,_i,D3).call(this),It(this,_i,sy).call(this).forEach(r=>{const s=r.name;if(!s)return;const i=e&&e[s]!==void 0?e[s]:"";It(this,_i,j3).call(this,r,i)}),this.changed=!1});de(this,"setData",e=>{if(!e||typeof e!="object")return;It(this,_i,D3).call(this);let r=!1;It(this,_i,sy).call(this).forEach(s=>{const i=s.name;!i||!e.hasOwnProperty(i)||It(this,_i,j3).call(this,s,e[i])&&(r=!0)}),r&&(this.changed=!0)});de(this,"initData",e=>{this.clearData(e),this.changed=!1});Q(this,Qp,e=>{this.changed=!0});Q(this,Mv,()=>{for(const e of this.attributes)e.name.startsWith("css-")&&this.style.setProperty(e.name.substring(4),e.value);this.originContents=this.innerHTML.trim(),this.innerHTML="",this.shadowRoot&&this.tagName.toLowerCase()==="nx-div"&&(this.shadowRoot.innerHTML=this.originContents)})}connectedCallback(){return y(this,Jp)?!1:(this.getAttribute("use-shadow")!=="false"&&!this.shadowRoot?(this.attachShadow({mode:"open"}),oe(this,cu,this.shadowRoot)):oe(this,cu,this),y(this,Mv).call(this),oe(this,Jp,!0),!0)}get changed(){return y(this,Zp)}set changed(e){const r=!!e;oe(this,Zp,r);const s=this.closest(".detail-wrapper");if(s){const i=s.querySelector("nx-title2");i&&(i.changed=r)}}get root(){return y(this,cu)||this}},Jp=new WeakMap,cu=new WeakMap,Zp=new WeakMap,_i=new WeakSet,sy=function(){return ninegrid.querySelectorAll("input[name], textarea[name], select[name], nx-editor[name]",y(this,cu))},j3=function(e,r){const s=e.tagName.toUpperCase(),i=e.type;let a=!1;if(["INPUT","TEXTAREA","SELECT","NX-EDITOR"].includes(s))if(i==="checkbox"){const o=e.getAttribute("true-value")||"Y",l=String(o)===String(r);e.checked!==l&&(a=!0),e.checked=l}else if(i==="radio"){const o=String(e.value)===String(r);e.checked!==o&&(a=!0),e.checked=o}else e.value!==r&&(a=!0),e.value=r;else e.textContent!==r&&(a=!0),e.textContent=r;return a},D3=function(){It(this,_i,sy).call(this).forEach(e=>{e.removeEventListener("input",y(this,Qp)),e.addEventListener("input",y(this,Qp))})},Qp=new WeakMap,Mv=new WeakMap,bI);function es(n){this.content=n}es.prototype={constructor:es,find:function(n){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===n)return t;return-1},get:function(n){var t=this.find(n);return t==-1?void 0:this.content[t+1]},update:function(n,t,e){var r=e&&e!=n?this.remove(e):this,s=r.find(n),i=r.content.slice();return s==-1?i.push(e||n,t):(i[s+1]=t,e&&(i[s]=e)),new es(i)},remove:function(n){var t=this.find(n);if(t==-1)return this;var e=this.content.slice();return e.splice(t,2),new es(e)},addToStart:function(n,t){return new es([n,t].concat(this.remove(n).content))},addToEnd:function(n,t){var e=this.remove(n).content.slice();return e.push(n,t),new es(e)},addBefore:function(n,t,e){var r=this.remove(t),s=r.content.slice(),i=r.find(n);return s.splice(i==-1?s.length:i,0,t,e),new es(s)},forEach:function(n){for(var t=0;t<this.content.length;t+=2)n(this.content[t],this.content[t+1])},prepend:function(n){return n=es.from(n),n.size?new es(n.content.concat(this.subtract(n).content)):this},append:function(n){return n=es.from(n),n.size?new es(this.subtract(n).content.concat(n.content)):this},subtract:function(n){var t=this;n=es.from(n);for(var e=0;e<n.content.length;e+=2)t=t.remove(n.content[e]);return t},toObject:function(){var n={};return this.forEach(function(t,e){n[t]=e}),n},get size(){return this.content.length>>1}},es.from=function(n){if(n instanceof es)return n;var t=[];if(n)for(var e in n)t.push(e,n[e]);return new es(t)};function Q3(n,t,e){for(let r=0;;r++){if(r==n.childCount||r==t.childCount)return n.childCount==t.childCount?null:e;let s=n.child(r),i=t.child(r);if(s==i){e+=s.nodeSize;continue}if(!s.sameMarkup(i))return e;if(s.isText&&s.text!=i.text){for(let a=0;s.text[a]==i.text[a];a++)e++;return e}if(s.content.size||i.content.size){let a=Q3(s.content,i.content,e+1);if(a!=null)return a}e+=s.nodeSize}}function eC(n,t,e,r){for(let s=n.childCount,i=t.childCount;;){if(s==0||i==0)return s==i?null:{a:e,b:r};let a=n.child(--s),o=t.child(--i),l=a.nodeSize;if(a==o){e-=l,r-=l;continue}if(!a.sameMarkup(o))return{a:e,b:r};if(a.isText&&a.text!=o.text){let c=0,u=Math.min(a.text.length,o.text.length);for(;c<u&&a.text[a.text.length-c-1]==o.text[o.text.length-c-1];)c++,e--,r--;return{a:e,b:r}}if(a.content.size||o.content.size){let c=eC(a.content,o.content,e-1,r-1);if(c)return c}e-=l,r-=l}}class He{constructor(t,e){if(this.content=t,this.size=e||0,e==null)for(let r=0;r<t.length;r++)this.size+=t[r].nodeSize}nodesBetween(t,e,r,s=0,i){for(let a=0,o=0;o<e;a++){let l=this.content[a],c=o+l.nodeSize;if(c>t&&r(l,s+o,i||null,a)!==!1&&l.content.size){let u=o+1;l.nodesBetween(Math.max(0,t-u),Math.min(l.content.size,e-u),r,s+u)}o=c}}descendants(t){this.nodesBetween(0,this.size,t)}textBetween(t,e,r,s){let i="",a=!0;return this.nodesBetween(t,e,(o,l)=>{let c=o.isText?o.text.slice(Math.max(t,l)-l,e-l):o.isLeaf?s?typeof s=="function"?s(o):s:o.type.spec.leafText?o.type.spec.leafText(o):"":"";o.isBlock&&(o.isLeaf&&c||o.isTextblock)&&r&&(a?a=!1:i+=r),i+=c},0),i}append(t){if(!t.size)return this;if(!this.size)return t;let e=this.lastChild,r=t.firstChild,s=this.content.slice(),i=0;for(e.isText&&e.sameMarkup(r)&&(s[s.length-1]=e.withText(e.text+r.text),i=1);i<t.content.length;i++)s.push(t.content[i]);return new He(s,this.size+t.size)}cut(t,e=this.size){if(t==0&&e==this.size)return this;let r=[],s=0;if(e>t)for(let i=0,a=0;a<e;i++){let o=this.content[i],l=a+o.nodeSize;l>t&&((a<t||l>e)&&(o.isText?o=o.cut(Math.max(0,t-a),Math.min(o.text.length,e-a)):o=o.cut(Math.max(0,t-a-1),Math.min(o.content.size,e-a-1))),r.push(o),s+=o.nodeSize),a=l}return new He(r,s)}cutByIndex(t,e){return t==e?He.empty:t==0&&e==this.content.length?this:new He(this.content.slice(t,e))}replaceChild(t,e){let r=this.content[t];if(r==e)return this;let s=this.content.slice(),i=this.size+e.nodeSize-r.nodeSize;return s[t]=e,new He(s,i)}addToStart(t){return new He([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new He(this.content.concat(t),this.size+t.nodeSize)}eq(t){if(this.content.length!=t.content.length)return!1;for(let e=0;e<this.content.length;e++)if(!this.content[e].eq(t.content[e]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(t){let e=this.content[t];if(!e)throw new RangeError("Index "+t+" out of range for "+this);return e}maybeChild(t){return this.content[t]||null}forEach(t){for(let e=0,r=0;e<this.content.length;e++){let s=this.content[e];t(s,r,e),r+=s.nodeSize}}findDiffStart(t,e=0){return Q3(this,t,e)}findDiffEnd(t,e=this.size,r=t.size){return eC(this,t,e,r)}findIndex(t){if(t==0)return uy(0,t);if(t==this.size)return uy(this.content.length,t);if(t>this.size||t<0)throw new RangeError(`Position ${t} outside of fragment (${this})`);for(let e=0,r=0;;e++){let s=this.child(e),i=r+s.nodeSize;if(i>=t)return i==t?uy(e+1,i):uy(e,r);r=i}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(t=>t.toJSON()):null}static fromJSON(t,e){if(!e)return He.empty;if(!Array.isArray(e))throw new RangeError("Invalid input for Fragment.fromJSON");return new He(e.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return He.empty;let e,r=0;for(let s=0;s<t.length;s++){let i=t[s];r+=i.nodeSize,s&&i.isText&&t[s-1].sameMarkup(i)?(e||(e=t.slice(0,s)),e[e.length-1]=i.withText(e[e.length-1].text+i.text)):e&&e.push(i)}return new He(e||t,r)}static from(t){if(!t)return He.empty;if(t instanceof He)return t;if(Array.isArray(t))return this.fromArray(t);if(t.attrs)return new He([t],t.nodeSize);throw new RangeError("Can not convert "+t+" to a Fragment"+(t.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}He.empty=new He([],0);const Cx={index:0,offset:0};function uy(n,t){return Cx.index=n,Cx.offset=t,Cx}function dy(n,t){if(n===t)return!0;if(!(n&&typeof n=="object")||!(t&&typeof t=="object"))return!1;let e=Array.isArray(n);if(Array.isArray(t)!=e)return!1;if(e){if(n.length!=t.length)return!1;for(let r=0;r<n.length;r++)if(!dy(n[r],t[r]))return!1}else{for(let r in n)if(!(r in t)||!dy(n[r],t[r]))return!1;for(let r in t)if(!(r in n))return!1}return!0}let tn=class B3{constructor(t,e){this.type=t,this.attrs=e}addToSet(t){let e,r=!1;for(let s=0;s<t.length;s++){let i=t[s];if(this.eq(i))return t;if(this.type.excludes(i.type))e||(e=t.slice(0,s));else{if(i.type.excludes(this.type))return t;!r&&i.type.rank>this.type.rank&&(e||(e=t.slice(0,s)),e.push(this),r=!0),e&&e.push(i)}}return e||(e=t.slice()),r||e.push(this),e}removeFromSet(t){for(let e=0;e<t.length;e++)if(this.eq(t[e]))return t.slice(0,e).concat(t.slice(e+1));return t}isInSet(t){for(let e=0;e<t.length;e++)if(this.eq(t[e]))return!0;return!1}eq(t){return this==t||this.type==t.type&&dy(this.attrs,t.attrs)}toJSON(){let t={type:this.type.name};for(let e in this.attrs){t.attrs=this.attrs;break}return t}static fromJSON(t,e){if(!e)throw new RangeError("Invalid input for Mark.fromJSON");let r=t.marks[e.type];if(!r)throw new RangeError(`There is no mark type ${e.type} in this schema`);let s=r.create(e.attrs);return r.checkAttrs(s.attrs),s}static sameSet(t,e){if(t==e)return!0;if(t.length!=e.length)return!1;for(let r=0;r<t.length;r++)if(!t[r].eq(e[r]))return!1;return!0}static setFrom(t){if(!t||Array.isArray(t)&&t.length==0)return B3.none;if(t instanceof B3)return[t];let e=t.slice();return e.sort((r,s)=>r.type.rank-s.type.rank),e}};tn.none=[];class hy extends Error{}class lt{constructor(t,e,r){this.content=t,this.openStart=e,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(t,e){let r=rC(this.content,t+this.openStart,e);return r&&new lt(r,this.openStart,this.openEnd)}removeBetween(t,e){return new lt(tC(this.content,t+this.openStart,e+this.openStart),this.openStart,this.openEnd)}eq(t){return this.content.eq(t.content)&&this.openStart==t.openStart&&this.openEnd==t.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let t={content:this.content.toJSON()};return this.openStart>0&&(t.openStart=this.openStart),this.openEnd>0&&(t.openEnd=this.openEnd),t}static fromJSON(t,e){if(!e)return lt.empty;let r=e.openStart||0,s=e.openEnd||0;if(typeof r!="number"||typeof s!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new lt(He.fromJSON(t,e.content),r,s)}static maxOpen(t,e=!0){let r=0,s=0;for(let i=t.firstChild;i&&!i.isLeaf&&(e||!i.type.spec.isolating);i=i.firstChild)r++;for(let i=t.lastChild;i&&!i.isLeaf&&(e||!i.type.spec.isolating);i=i.lastChild)s++;return new lt(t,r,s)}}lt.empty=new lt(He.empty,0,0);function tC(n,t,e){let{index:r,offset:s}=n.findIndex(t),i=n.maybeChild(r),{index:a,offset:o}=n.findIndex(e);if(s==t||i.isText){if(o!=e&&!n.child(a).isText)throw new RangeError("Removing non-flat range");return n.cut(0,t).append(n.cut(e))}if(r!=a)throw new RangeError("Removing non-flat range");return n.replaceChild(r,i.copy(tC(i.content,t-s-1,e-s-1)))}function rC(n,t,e,r){let{index:s,offset:i}=n.findIndex(t),a=n.maybeChild(s);if(i==t||a.isText)return r&&!r.canReplace(s,s,e)?null:n.cut(0,t).append(e).append(n.cut(t));let o=rC(a.content,t-i-1,e,a);return o&&n.replaceChild(s,a.copy(o))}function aN(n,t,e){if(e.openStart>n.depth)throw new hy("Inserted content deeper than insertion position");if(n.depth-e.openStart!=t.depth-e.openEnd)throw new hy("Inconsistent open depths");return nC(n,t,e,0)}function nC(n,t,e,r){let s=n.index(r),i=n.node(r);if(s==t.index(r)&&r<n.depth-e.openStart){let a=nC(n,t,e,r+1);return i.copy(i.content.replaceChild(s,a))}else if(e.content.size)if(!e.openStart&&!e.openEnd&&n.depth==r&&t.depth==r){let a=n.parent,o=a.content;return Sc(a,o.cut(0,n.parentOffset).append(e.content).append(o.cut(t.parentOffset)))}else{let{start:a,end:o}=oN(e,n);return Sc(i,iC(n,a,o,t,r))}else return Sc(i,fy(n,t,r))}function sC(n,t){if(!t.type.compatibleContent(n.type))throw new hy("Cannot join "+t.type.name+" onto "+n.type.name)}function Tx(n,t,e){let r=n.node(e);return sC(r,t.node(e)),r}function xc(n,t){let e=t.length-1;e>=0&&n.isText&&n.sameMarkup(t[e])?t[e]=n.withText(t[e].text+n.text):t.push(n)}function gf(n,t,e,r){let s=(t||n).node(e),i=0,a=t?t.index(e):s.childCount;n&&(i=n.index(e),n.depth>e?i++:n.textOffset&&(xc(n.nodeAfter,r),i++));for(let o=i;o<a;o++)xc(s.child(o),r);t&&t.depth==e&&t.textOffset&&xc(t.nodeBefore,r)}function Sc(n,t){return n.type.checkContent(t),n.copy(t)}function iC(n,t,e,r,s){let i=n.depth>s&&Tx(n,t,s+1),a=r.depth>s&&Tx(e,r,s+1),o=[];return gf(null,n,s,o),i&&a&&t.index(s)==e.index(s)?(sC(i,a),xc(Sc(i,iC(n,t,e,r,s+1)),o)):(i&&xc(Sc(i,fy(n,t,s+1)),o),gf(t,e,s,o),a&&xc(Sc(a,fy(e,r,s+1)),o)),gf(r,null,s,o),new He(o)}function fy(n,t,e){let r=[];if(gf(null,n,e,r),n.depth>e){let s=Tx(n,t,e+1);xc(Sc(s,fy(n,t,e+1)),r)}return gf(t,null,e,r),new He(r)}function oN(n,t){let e=t.depth-n.openStart,s=t.node(e).copy(n.content);for(let i=e-1;i>=0;i--)s=t.node(i).copy(He.from(s));return{start:s.resolveNoCache(n.openStart+e),end:s.resolveNoCache(s.content.size-n.openEnd-e)}}class bf{constructor(t,e,r){this.pos=t,this.path=e,this.parentOffset=r,this.depth=e.length/3-1}resolveDepth(t){return t==null?this.depth:t<0?this.depth+t:t}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(t){return this.path[this.resolveDepth(t)*3]}index(t){return this.path[this.resolveDepth(t)*3+1]}indexAfter(t){return t=this.resolveDepth(t),this.index(t)+(t==this.depth&&!this.textOffset?0:1)}start(t){return t=this.resolveDepth(t),t==0?0:this.path[t*3-1]+1}end(t){return t=this.resolveDepth(t),this.start(t)+this.node(t).content.size}before(t){if(t=this.resolveDepth(t),!t)throw new RangeError("There is no position before the top-level node");return t==this.depth+1?this.pos:this.path[t*3-1]}after(t){if(t=this.resolveDepth(t),!t)throw new RangeError("There is no position after the top-level node");return t==this.depth+1?this.pos:this.path[t*3-1]+this.path[t*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let t=this.parent,e=this.index(this.depth);if(e==t.childCount)return null;let r=this.pos-this.path[this.path.length-1],s=t.child(e);return r?t.child(e).cut(r):s}get nodeBefore(){let t=this.index(this.depth),e=this.pos-this.path[this.path.length-1];return e?this.parent.child(t).cut(0,e):t==0?null:this.parent.child(t-1)}posAtIndex(t,e){e=this.resolveDepth(e);let r=this.path[e*3],s=e==0?0:this.path[e*3-1]+1;for(let i=0;i<t;i++)s+=r.child(i).nodeSize;return s}marks(){let t=this.parent,e=this.index();if(t.content.size==0)return tn.none;if(this.textOffset)return t.child(e).marks;let r=t.maybeChild(e-1),s=t.maybeChild(e);if(!r){let o=r;r=s,s=o}let i=r.marks;for(var a=0;a<i.length;a++)i[a].type.spec.inclusive===!1&&(!s||!i[a].isInSet(s.marks))&&(i=i[a--].removeFromSet(i));return i}marksAcross(t){let e=this.parent.maybeChild(this.index());if(!e||!e.isInline)return null;let r=e.marks,s=t.parent.maybeChild(t.index());for(var i=0;i<r.length;i++)r[i].type.spec.inclusive===!1&&(!s||!r[i].isInSet(s.marks))&&(r=r[i--].removeFromSet(r));return r}sharedDepth(t){for(let e=this.depth;e>0;e--)if(this.start(e)<=t&&this.end(e)>=t)return e;return 0}blockRange(t=this,e){if(t.pos<this.pos)return t.blockRange(this);for(let r=this.depth-(this.parent.inlineContent||this.pos==t.pos?1:0);r>=0;r--)if(t.pos<=this.end(r)&&(!e||e(this.node(r))))return new py(this,t,r);return null}sameParent(t){return this.pos-this.parentOffset==t.pos-t.parentOffset}max(t){return t.pos>this.pos?t:this}min(t){return t.pos<this.pos?t:this}toString(){let t="";for(let e=1;e<=this.depth;e++)t+=(t?"/":"")+this.node(e).type.name+"_"+this.index(e-1);return t+":"+this.parentOffset}static resolve(t,e){if(!(e>=0&&e<=t.content.size))throw new RangeError("Position "+e+" out of range");let r=[],s=0,i=e;for(let a=t;;){let{index:o,offset:l}=a.content.findIndex(i),c=i-l;if(r.push(a,o,s+l),!c||(a=a.child(o),a.isText))break;i=c-1,s+=l+1}return new bf(e,r,i)}static resolveCached(t,e){let r=aC.get(t);if(r)for(let i=0;i<r.elts.length;i++){let a=r.elts[i];if(a.pos==e)return a}else aC.set(t,r=new lN);let s=r.elts[r.i]=bf.resolve(t,e);return r.i=(r.i+1)%cN,s}}class lN{constructor(){this.elts=[],this.i=0}}const cN=12,aC=new WeakMap;class py{constructor(t,e,r){this.$from=t,this.$to=e,this.depth=r}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const uN=Object.create(null);let mo=class F3{constructor(t,e,r,s=tn.none){this.type=t,this.attrs=e,this.marks=s,this.content=r||He.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(t){return this.content.child(t)}maybeChild(t){return this.content.maybeChild(t)}forEach(t){this.content.forEach(t)}nodesBetween(t,e,r,s=0){this.content.nodesBetween(t,e,r,s,this)}descendants(t){this.nodesBetween(0,this.content.size,t)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(t,e,r,s){return this.content.textBetween(t,e,r,s)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(t){return this==t||this.sameMarkup(t)&&this.content.eq(t.content)}sameMarkup(t){return this.hasMarkup(t.type,t.attrs,t.marks)}hasMarkup(t,e,r){return this.type==t&&dy(this.attrs,e||t.defaultAttrs||uN)&&tn.sameSet(this.marks,r||tn.none)}copy(t=null){return t==this.content?this:new F3(this.type,this.attrs,t,this.marks)}mark(t){return t==this.marks?this:new F3(this.type,this.attrs,this.content,t)}cut(t,e=this.content.size){return t==0&&e==this.content.size?this:this.copy(this.content.cut(t,e))}slice(t,e=this.content.size,r=!1){if(t==e)return lt.empty;let s=this.resolve(t),i=this.resolve(e),a=r?0:s.sharedDepth(e),o=s.start(a),c=s.node(a).content.cut(s.pos-o,i.pos-o);return new lt(c,s.depth-a,i.depth-a)}replace(t,e,r){return aN(this.resolve(t),this.resolve(e),r)}nodeAt(t){for(let e=this;;){let{index:r,offset:s}=e.content.findIndex(t);if(e=e.maybeChild(r),!e)return null;if(s==t||e.isText)return e;t-=s+1}}childAfter(t){let{index:e,offset:r}=this.content.findIndex(t);return{node:this.content.maybeChild(e),index:e,offset:r}}childBefore(t){if(t==0)return{node:null,index:0,offset:0};let{index:e,offset:r}=this.content.findIndex(t);if(r<t)return{node:this.content.child(e),index:e,offset:r};let s=this.content.child(e-1);return{node:s,index:e-1,offset:r-s.nodeSize}}resolve(t){return bf.resolveCached(this,t)}resolveNoCache(t){return bf.resolve(this,t)}rangeHasMark(t,e,r){let s=!1;return e>t&&this.nodesBetween(t,e,i=>(r.isInSet(i.marks)&&(s=!0),!s)),s}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let t=this.type.name;return this.content.size&&(t+="("+this.content.toStringInner()+")"),oC(this.marks,t)}contentMatchAt(t){let e=this.type.contentMatch.matchFragment(this.content,0,t);if(!e)throw new Error("Called contentMatchAt on a node with invalid content");return e}canReplace(t,e,r=He.empty,s=0,i=r.childCount){let a=this.contentMatchAt(t).matchFragment(r,s,i),o=a&&a.matchFragment(this.content,e);if(!o||!o.validEnd)return!1;for(let l=s;l<i;l++)if(!this.type.allowsMarks(r.child(l).marks))return!1;return!0}canReplaceWith(t,e,r,s){if(s&&!this.type.allowsMarks(s))return!1;let i=this.contentMatchAt(t).matchType(r),a=i&&i.matchFragment(this.content,e);return a?a.validEnd:!1}canAppend(t){return t.content.size?this.canReplace(this.childCount,this.childCount,t.content):this.type.compatibleContent(t.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let t=tn.none;for(let e=0;e<this.marks.length;e++){let r=this.marks[e];r.type.checkAttrs(r.attrs),t=r.addToSet(t)}if(!tn.sameSet(t,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(e=>e.type.name)}`);this.content.forEach(e=>e.check())}toJSON(){let t={type:this.type.name};for(let e in this.attrs){t.attrs=this.attrs;break}return this.content.size&&(t.content=this.content.toJSON()),this.marks.length&&(t.marks=this.marks.map(e=>e.toJSON())),t}static fromJSON(t,e){if(!e)throw new RangeError("Invalid input for Node.fromJSON");let r;if(e.marks){if(!Array.isArray(e.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=e.marks.map(t.markFromJSON)}if(e.type=="text"){if(typeof e.text!="string")throw new RangeError("Invalid text node in JSON");return t.text(e.text,r)}let s=He.fromJSON(t,e.content),i=t.nodeType(e.type).create(e.attrs,s,r);return i.type.checkAttrs(i.attrs),i}};mo.prototype.text=void 0;class my extends mo{constructor(t,e,r,s){if(super(t,e,null,s),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):oC(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(t,e){return this.text.slice(t,e)}get nodeSize(){return this.text.length}mark(t){return t==this.marks?this:new my(this.type,this.attrs,this.text,t)}withText(t){return t==this.text?this:new my(this.type,this.attrs,t,this.marks)}cut(t=0,e=this.text.length){return t==0&&e==this.text.length?this:this.withText(this.text.slice(t,e))}eq(t){return this.sameMarkup(t)&&this.text==t.text}toJSON(){let t=super.toJSON();return t.text=this.text,t}}function oC(n,t){for(let e=n.length-1;e>=0;e--)t=n[e].type.name+"("+t+")";return t}class kc{constructor(t){this.validEnd=t,this.next=[],this.wrapCache=[]}static parse(t,e){let r=new dN(t,e);if(r.next==null)return kc.empty;let s=lC(r);r.next&&r.err("Unexpected trailing text");let i=yN(bN(s));return wN(i,r),i}matchType(t){for(let e=0;e<this.next.length;e++)if(this.next[e].type==t)return this.next[e].next;return null}matchFragment(t,e=0,r=t.childCount){let s=this;for(let i=e;s&&i<r;i++)s=s.matchType(t.child(i).type);return s}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let t=0;t<this.next.length;t++){let{type:e}=this.next[t];if(!(e.isText||e.hasRequiredAttrs()))return e}return null}compatible(t){for(let e=0;e<this.next.length;e++)for(let r=0;r<t.next.length;r++)if(this.next[e].type==t.next[r].type)return!0;return!1}fillBefore(t,e=!1,r=0){let s=[this];function i(a,o){let l=a.matchFragment(t,r);if(l&&(!e||l.validEnd))return He.from(o.map(c=>c.createAndFill()));for(let c=0;c<a.next.length;c++){let{type:u,next:h}=a.next[c];if(!(u.isText||u.hasRequiredAttrs())&&s.indexOf(h)==-1){s.push(h);let d=i(h,o.concat(u));if(d)return d}}return null}return i(this,[])}findWrapping(t){for(let r=0;r<this.wrapCache.length;r+=2)if(this.wrapCache[r]==t)return this.wrapCache[r+1];let e=this.computeWrapping(t);return this.wrapCache.push(t,e),e}computeWrapping(t){let e=Object.create(null),r=[{match:this,type:null,via:null}];for(;r.length;){let s=r.shift(),i=s.match;if(i.matchType(t)){let a=[];for(let o=s;o.type;o=o.via)a.push(o.type);return a.reverse()}for(let a=0;a<i.next.length;a++){let{type:o,next:l}=i.next[a];!o.isLeaf&&!o.hasRequiredAttrs()&&!(o.name in e)&&(!s.type||l.validEnd)&&(r.push({match:o.contentMatch,type:o,via:s}),e[o.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(t){if(t>=this.next.length)throw new RangeError(`There's no ${t}th edge in this content match`);return this.next[t]}toString(){let t=[];function e(r){t.push(r);for(let s=0;s<r.next.length;s++)t.indexOf(r.next[s].next)==-1&&e(r.next[s].next)}return e(this),t.map((r,s)=>{let i=s+(r.validEnd?"*":" ")+" ";for(let a=0;a<r.next.length;a++)i+=(a?", ":"")+r.next[a].type.name+"->"+t.indexOf(r.next[a].next);return i}).join(`
2
2
  `)}}kc.empty=new kc(!0);class dN{constructor(t,e){this.string=t,this.nodeTypes=e,this.inline=null,this.pos=0,this.tokens=t.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(t){return this.next==t&&(this.pos++||!0)}err(t){throw new SyntaxError(t+" (in content expression '"+this.string+"')")}}function lC(n){let t=[];do t.push(hN(n));while(n.eat("|"));return t.length==1?t[0]:{type:"choice",exprs:t}}function hN(n){let t=[];do t.push(fN(n));while(n.next&&n.next!=")"&&n.next!="|");return t.length==1?t[0]:{type:"seq",exprs:t}}function fN(n){let t=gN(n);for(;;)if(n.eat("+"))t={type:"plus",expr:t};else if(n.eat("*"))t={type:"star",expr:t};else if(n.eat("?"))t={type:"opt",expr:t};else if(n.eat("{"))t=pN(n,t);else break;return t}function cC(n){/\D/.test(n.next)&&n.err("Expected number, got '"+n.next+"'");let t=Number(n.next);return n.pos++,t}function pN(n,t){let e=cC(n),r=e;return n.eat(",")&&(n.next!="}"?r=cC(n):r=-1),n.eat("}")||n.err("Unclosed braced range"),{type:"range",min:e,max:r,expr:t}}function mN(n,t){let e=n.nodeTypes,r=e[t];if(r)return[r];let s=[];for(let i in e){let a=e[i];a.isInGroup(t)&&s.push(a)}return s.length==0&&n.err("No node type or group '"+t+"' found"),s}function gN(n){if(n.eat("(")){let t=lC(n);return n.eat(")")||n.err("Missing closing paren"),t}else if(/\W/.test(n.next))n.err("Unexpected token '"+n.next+"'");else{let t=mN(n,n.next).map(e=>(n.inline==null?n.inline=e.isInline:n.inline!=e.isInline&&n.err("Mixing inline and block content"),{type:"name",value:e}));return n.pos++,t.length==1?t[0]:{type:"choice",exprs:t}}}function bN(n){let t=[[]];return s(i(n,0),e()),t;function e(){return t.push([])-1}function r(a,o,l){let c={term:l,to:o};return t[a].push(c),c}function s(a,o){a.forEach(l=>l.to=o)}function i(a,o){if(a.type=="choice")return a.exprs.reduce((l,c)=>l.concat(i(c,o)),[]);if(a.type=="seq")for(let l=0;;l++){let c=i(a.exprs[l],o);if(l==a.exprs.length-1)return c;s(c,o=e())}else if(a.type=="star"){let l=e();return r(o,l),s(i(a.expr,l),l),[r(l)]}else if(a.type=="plus"){let l=e();return s(i(a.expr,o),l),s(i(a.expr,l),l),[r(l)]}else{if(a.type=="opt")return[r(o)].concat(i(a.expr,o));if(a.type=="range"){let l=o;for(let c=0;c<a.min;c++){let u=e();s(i(a.expr,l),u),l=u}if(a.max==-1)s(i(a.expr,l),l);else for(let c=a.min;c<a.max;c++){let u=e();r(l,u),s(i(a.expr,l),u),l=u}return[r(l)]}else{if(a.type=="name")return[r(o,void 0,a.value)];throw new Error("Unknown expr type")}}}}function uC(n,t){return t-n}function dC(n,t){let e=[];return r(t),e.sort(uC);function r(s){let i=n[s];if(i.length==1&&!i[0].term)return r(i[0].to);e.push(s);for(let a=0;a<i.length;a++){let{term:o,to:l}=i[a];!o&&e.indexOf(l)==-1&&r(l)}}}function yN(n){let t=Object.create(null);return e(dC(n,0));function e(r){let s=[];r.forEach(a=>{n[a].forEach(({term:o,to:l})=>{if(!o)return;let c;for(let u=0;u<s.length;u++)s[u][0]==o&&(c=s[u][1]);dC(n,l).forEach(u=>{c||s.push([o,c=[]]),c.indexOf(u)==-1&&c.push(u)})})});let i=t[r.join(",")]=new kc(r.indexOf(n.length-1)>-1);for(let a=0;a<s.length;a++){let o=s[a][1].sort(uC);i.next.push({type:s[a][0],next:t[o.join(",")]||e(o)})}return i}}function wN(n,t){for(let e=0,r=[n];e<r.length;e++){let s=r[e],i=!s.validEnd,a=[];for(let o=0;o<s.next.length;o++){let{type:l,next:c}=s.next[o];a.push(l.name),i&&!(l.isText||l.hasRequiredAttrs())&&(i=!1),r.indexOf(c)==-1&&r.push(c)}i&&t.err("Only non-generatable nodes ("+a.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function hC(n){let t=Object.create(null);for(let e in n){let r=n[e];if(!r.hasDefault)return null;t[e]=r.default}return t}function fC(n,t){let e=Object.create(null);for(let r in n){let s=t&&t[r];if(s===void 0){let i=n[r];if(i.hasDefault)s=i.default;else throw new RangeError("No value supplied for attribute "+r)}e[r]=s}return e}function pC(n,t,e,r){for(let s in t)if(!(s in n))throw new RangeError(`Unsupported attribute ${s} for ${e} of type ${s}`);for(let s in n){let i=n[s];i.validate&&i.validate(t[s])}}function mC(n,t){let e=Object.create(null);if(t)for(let r in t)e[r]=new _N(n,r,t[r]);return e}let gC=class AI{constructor(t,e,r){this.name=t,this.schema=e,this.spec=r,this.markSet=null,this.groups=r.group?r.group.split(" "):[],this.attrs=mC(t,r.attrs),this.defaultAttrs=hC(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(r.inline||t=="text"),this.isText=t=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==kc.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(t){return this.groups.indexOf(t)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let t in this.attrs)if(this.attrs[t].isRequired)return!0;return!1}compatibleContent(t){return this==t||this.contentMatch.compatible(t.contentMatch)}computeAttrs(t){return!t&&this.defaultAttrs?this.defaultAttrs:fC(this.attrs,t)}create(t=null,e,r){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new mo(this,this.computeAttrs(t),He.from(e),tn.setFrom(r))}createChecked(t=null,e,r){return e=He.from(e),this.checkContent(e),new mo(this,this.computeAttrs(t),e,tn.setFrom(r))}createAndFill(t=null,e,r){if(t=this.computeAttrs(t),e=He.from(e),e.size){let a=this.contentMatch.fillBefore(e);if(!a)return null;e=a.append(e)}let s=this.contentMatch.matchFragment(e),i=s&&s.fillBefore(He.empty,!0);return i?new mo(this,t,e.append(i),tn.setFrom(r)):null}validContent(t){let e=this.contentMatch.matchFragment(t);if(!e||!e.validEnd)return!1;for(let r=0;r<t.childCount;r++)if(!this.allowsMarks(t.child(r).marks))return!1;return!0}checkContent(t){if(!this.validContent(t))throw new RangeError(`Invalid content for node ${this.name}: ${t.toString().slice(0,50)}`)}checkAttrs(t){pC(this.attrs,t,"node",this.name)}allowsMarkType(t){return this.markSet==null||this.markSet.indexOf(t)>-1}allowsMarks(t){if(this.markSet==null)return!0;for(let e=0;e<t.length;e++)if(!this.allowsMarkType(t[e].type))return!1;return!0}allowedMarks(t){if(this.markSet==null)return t;let e;for(let r=0;r<t.length;r++)this.allowsMarkType(t[r].type)?e&&e.push(t[r]):e||(e=t.slice(0,r));return e?e.length?e:tn.none:t}static compile(t,e){let r=Object.create(null);t.forEach((i,a)=>r[i]=new AI(i,e,a));let s=e.spec.topNode||"doc";if(!r[s])throw new RangeError("Schema is missing its top node type ('"+s+"')");if(!r.text)throw new RangeError("Every schema needs a 'text' type");for(let i in r.text.attrs)throw new RangeError("The text node type should not have attributes");return r}};function vN(n,t,e){let r=e.split("|");return s=>{let i=s===null?"null":typeof s;if(r.indexOf(i)<0)throw new RangeError(`Expected value of type ${r} for attribute ${t} on type ${n}, got ${i}`)}}class _N{constructor(t,e,r){this.hasDefault=Object.prototype.hasOwnProperty.call(r,"default"),this.default=r.default,this.validate=typeof r.validate=="string"?vN(t,e,r.validate):r.validate}get isRequired(){return!this.hasDefault}}class gy{constructor(t,e,r,s){this.name=t,this.rank=e,this.schema=r,this.spec=s,this.attrs=mC(t,s.attrs),this.excluded=null;let i=hC(this.attrs);this.instance=i?new tn(this,i):null}create(t=null){return!t&&this.instance?this.instance:new tn(this,fC(this.attrs,t))}static compile(t,e){let r=Object.create(null),s=0;return t.forEach((i,a)=>r[i]=new gy(i,s++,e,a)),r}removeFromSet(t){for(var e=0;e<t.length;e++)t[e].type==this&&(t=t.slice(0,e).concat(t.slice(e+1)),e--);return t}isInSet(t){for(let e=0;e<t.length;e++)if(t[e].type==this)return t[e]}checkAttrs(t){pC(this.attrs,t,"mark",this.name)}excludes(t){return this.excluded.indexOf(t)>-1}}class by{constructor(t){this.linebreakReplacement=null,this.cached=Object.create(null);let e=this.spec={};for(let s in t)e[s]=t[s];e.nodes=es.from(t.nodes),e.marks=es.from(t.marks||{}),this.nodes=gC.compile(this.spec.nodes,this),this.marks=gy.compile(this.spec.marks,this);let r=Object.create(null);for(let s in this.nodes){if(s in this.marks)throw new RangeError(s+" can not be both a node and a mark");let i=this.nodes[s],a=i.spec.content||"",o=i.spec.marks;if(i.contentMatch=r[a]||(r[a]=kc.parse(a,this.nodes)),i.inlineContent=i.contentMatch.inlineContent,i.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!i.isInline||!i.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=i}i.markSet=o=="_"?null:o?bC(this,o.split(" ")):o==""||!i.inlineContent?[]:null}for(let s in this.marks){let i=this.marks[s],a=i.spec.excludes;i.excluded=a==null?[i]:a==""?[]:bC(this,a.split(" "))}this.nodeFromJSON=s=>mo.fromJSON(this,s),this.markFromJSON=s=>tn.fromJSON(this,s),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(t,e=null,r,s){if(typeof t=="string")t=this.nodeType(t);else if(t instanceof gC){if(t.schema!=this)throw new RangeError("Node type from different schema used ("+t.name+")")}else throw new RangeError("Invalid node type: "+t);return t.createChecked(e,r,s)}text(t,e){let r=this.nodes.text;return new my(r,r.defaultAttrs,t,tn.setFrom(e))}mark(t,e){return typeof t=="string"&&(t=this.marks[t]),t.create(e)}nodeType(t){let e=this.nodes[t];if(!e)throw new RangeError("Unknown node type: "+t);return e}}function bC(n,t){let e=[];for(let r=0;r<t.length;r++){let s=t[r],i=n.marks[s],a=i;if(i)e.push(i);else for(let o in n.marks){let l=n.marks[o];(s=="_"||l.spec.group&&l.spec.group.split(" ").indexOf(s)>-1)&&e.push(a=l)}if(!a)throw new SyntaxError("Unknown mark type: '"+t[r]+"'")}return e}function xN(n){return n.tag!=null}function SN(n){return n.style!=null}class ta{constructor(t,e){this.schema=t,this.rules=e,this.tags=[],this.styles=[];let r=this.matchedStyles=[];e.forEach(s=>{if(xN(s))this.tags.push(s);else if(SN(s)){let i=/[^=]*/.exec(s.style)[0];r.indexOf(i)<0&&r.push(i),this.styles.push(s)}}),this.normalizeLists=!this.tags.some(s=>{if(!/^(ul|ol)\b/.test(s.tag)||!s.node)return!1;let i=t.nodes[s.node];return i.contentMatch.matchType(i)})}parse(t,e={}){let r=new _C(this,e,!1);return r.addAll(t,tn.none,e.from,e.to),r.finish()}parseSlice(t,e={}){let r=new _C(this,e,!0);return r.addAll(t,tn.none,e.from,e.to),lt.maxOpen(r.finish())}matchTag(t,e,r){for(let s=r?this.tags.indexOf(r)+1:0;s<this.tags.length;s++){let i=this.tags[s];if(CN(t,i.tag)&&(i.namespace===void 0||t.namespaceURI==i.namespace)&&(!i.context||e.matchesContext(i.context))){if(i.getAttrs){let a=i.getAttrs(t);if(a===!1)continue;i.attrs=a||void 0}return i}}}matchStyle(t,e,r,s){for(let i=s?this.styles.indexOf(s)+1:0;i<this.styles.length;i++){let a=this.styles[i],o=a.style;if(!(o.indexOf(t)!=0||a.context&&!r.matchesContext(a.context)||o.length>t.length&&(o.charCodeAt(t.length)!=61||o.slice(t.length+1)!=e))){if(a.getAttrs){let l=a.getAttrs(e);if(l===!1)continue;a.attrs=l||void 0}return a}}}static schemaRules(t){let e=[];function r(s){let i=s.priority==null?50:s.priority,a=0;for(;a<e.length;a++){let o=e[a];if((o.priority==null?50:o.priority)<i)break}e.splice(a,0,s)}for(let s in t.marks){let i=t.marks[s].spec.parseDOM;i&&i.forEach(a=>{r(a=xC(a)),a.mark||a.ignore||a.clearMark||(a.mark=s)})}for(let s in t.nodes){let i=t.nodes[s].spec.parseDOM;i&&i.forEach(a=>{r(a=xC(a)),a.node||a.ignore||a.mark||(a.node=s)})}return e}static fromSchema(t){return t.cached.domParser||(t.cached.domParser=new ta(t,ta.schemaRules(t)))}}const yC={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},kN={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},wC={ol:!0,ul:!0},yf=1,Ax=2,wf=4;function vC(n,t,e){return t!=null?(t?yf:0)|(t==="full"?Ax:0):n&&n.whitespace=="pre"?yf|Ax:e&~wf}class yy{constructor(t,e,r,s,i,a){this.type=t,this.attrs=e,this.marks=r,this.solid=s,this.options=a,this.content=[],this.activeMarks=tn.none,this.match=i||(a&wf?null:t.contentMatch)}findWrapping(t){if(!this.match){if(!this.type)return[];let e=this.type.contentMatch.fillBefore(He.from(t));if(e)this.match=this.type.contentMatch.matchFragment(e);else{let r=this.type.contentMatch,s;return(s=r.findWrapping(t.type))?(this.match=r,s):null}}return this.match.findWrapping(t.type)}finish(t){if(!(this.options&yf)){let r=this.content[this.content.length-1],s;if(r&&r.isText&&(s=/[ \t\r\n\u000c]+$/.exec(r.text))){let i=r;r.text.length==s[0].length?this.content.pop():this.content[this.content.length-1]=i.withText(i.text.slice(0,i.text.length-s[0].length))}}let e=He.from(this.content);return!t&&this.match&&(e=e.append(this.match.fillBefore(He.empty,!0))),this.type?this.type.create(this.attrs,e,this.marks):e}inlineContext(t){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:t.parentNode&&!yC.hasOwnProperty(t.parentNode.nodeName.toLowerCase())}}class _C{constructor(t,e,r){this.parser=t,this.options=e,this.isOpen=r,this.open=0,this.localPreserveWS=!1;let s=e.topNode,i,a=vC(null,e.preserveWhitespace,0)|(r?wf:0);s?i=new yy(s.type,s.attrs,tn.none,!0,e.topMatch||s.type.contentMatch,a):r?i=new yy(null,null,tn.none,!0,null,a):i=new yy(t.schema.topNodeType,null,tn.none,!0,null,a),this.nodes=[i],this.find=e.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(t,e){t.nodeType==3?this.addTextNode(t,e):t.nodeType==1&&this.addElement(t,e)}addTextNode(t,e){let r=t.nodeValue,s=this.top,i=s.options&Ax?"full":this.localPreserveWS||(s.options&yf)>0,{schema:a}=this.parser;if(i==="full"||s.inlineContext(t)||/[^ \t\r\n\u000c]/.test(r)){if(i)if(i==="full")r=r.replace(/\r\n?/g,`
3
3
  `);else if(a.linebreakReplacement&&/[\r\n]/.test(r)&&this.top.findWrapping(a.linebreakReplacement.create())){let o=r.split(/\r?\n|\r/);for(let l=0;l<o.length;l++)l&&this.insertNode(a.linebreakReplacement.create(),e,!0),o[l]&&this.insertNode(a.text(o[l]),e,!/\S/.test(o[l]));r=""}else r=r.replace(/\r?\n|\r/g," ");else if(r=r.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(r)&&this.open==this.nodes.length-1){let o=s.content[s.content.length-1],l=t.previousSibling;(!o||l&&l.nodeName=="BR"||o.isText&&/[ \t\r\n\u000c]$/.test(o.text))&&(r=r.slice(1))}r&&this.insertNode(a.text(r),e,!/\S/.test(r)),this.findInText(t)}else this.findInside(t)}addElement(t,e,r){let s=this.localPreserveWS,i=this.top;(t.tagName=="PRE"||/pre/.test(t.style&&t.style.whiteSpace))&&(this.localPreserveWS=!0);let a=t.nodeName.toLowerCase(),o;wC.hasOwnProperty(a)&&this.parser.normalizeLists&&EN(t);let l=this.options.ruleFromNode&&this.options.ruleFromNode(t)||(o=this.parser.matchTag(t,this,r));e:if(l?l.ignore:kN.hasOwnProperty(a))this.findInside(t),this.ignoreFallback(t,e);else if(!l||l.skip||l.closeParent){l&&l.closeParent?this.open=Math.max(0,this.open-1):l&&l.skip.nodeType&&(t=l.skip);let c,u=this.needsBlock;if(yC.hasOwnProperty(a))i.content.length&&i.content[0].isInline&&this.open&&(this.open--,i=this.top),c=!0,i.type||(this.needsBlock=!0);else if(!t.firstChild){this.leafFallback(t,e);break e}let h=l&&l.skip?e:this.readStyles(t,e);h&&this.addAll(t,h),c&&this.sync(i),this.needsBlock=u}else{let c=this.readStyles(t,e);c&&this.addElementByRule(t,l,c,l.consuming===!1?o:void 0)}this.localPreserveWS=s}leafFallback(t,e){t.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(t.ownerDocument.createTextNode(`
4
4
  `),e)}ignoreFallback(t,e){t.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"),e,!0)}readStyles(t,e){let r=t.style;if(r&&r.length)for(let s=0;s<this.parser.matchedStyles.length;s++){let i=this.parser.matchedStyles[s],a=r.getPropertyValue(i);if(a)for(let o=void 0;;){let l=this.parser.matchStyle(i,a,this,o);if(!l)break;if(l.ignore)return null;if(l.clearMark?e=e.filter(c=>!l.clearMark(c)):e=e.concat(this.parser.schema.marks[l.mark].create(l.attrs)),l.consuming===!1)o=l;else break}}return e}addElementByRule(t,e,r,s){let i,a;if(e.node)if(a=this.parser.schema.nodes[e.node],a.isLeaf)this.insertNode(a.create(e.attrs),r,t.nodeName=="BR")||this.leafFallback(t,r);else{let l=this.enter(a,e.attrs||null,r,e.preserveWhitespace);l&&(i=!0,r=l)}else{let l=this.parser.schema.marks[e.mark];r=r.concat(l.create(e.attrs))}let o=this.top;if(a&&a.isLeaf)this.findInside(t);else if(s)this.addElement(t,r,s);else if(e.getContent)this.findInside(t),e.getContent(t,this.parser.schema).forEach(l=>this.insertNode(l,r,!1));else{let l=t;typeof e.contentElement=="string"?l=t.querySelector(e.contentElement):typeof e.contentElement=="function"?l=e.contentElement(t):e.contentElement&&(l=e.contentElement),this.findAround(t,l,!0),this.addAll(l,r),this.findAround(t,l,!1)}i&&this.sync(o)&&this.open--}addAll(t,e,r,s){let i=r||0;for(let a=r?t.childNodes[r]:t.firstChild,o=s==null?null:t.childNodes[s];a!=o;a=a.nextSibling,++i)this.findAtPoint(t,i),this.addDOM(a,e);this.findAtPoint(t,i)}findPlace(t,e,r){let s,i;for(let a=this.open,o=0;a>=0;a--){let l=this.nodes[a],c=l.findWrapping(t);if(c&&(!s||s.length>c.length+o)&&(s=c,i=l,!c.length))break;if(l.solid){if(r)break;o+=2}}if(!s)return null;this.sync(i);for(let a=0;a<s.length;a++)e=this.enterInner(s[a],null,e,!1);return e}insertNode(t,e,r){if(t.isInline&&this.needsBlock&&!this.top.type){let i=this.textblockFromContext();i&&(e=this.enterInner(i,null,e))}let s=this.findPlace(t,e,r);if(s){this.closeExtra();let i=this.top;i.match&&(i.match=i.match.matchType(t.type));let a=tn.none;for(let o of s.concat(t.marks))(i.type?i.type.allowsMarkType(o.type):SC(o.type,t.type))&&(a=o.addToSet(a));return i.content.push(t.mark(a)),!0}return!1}enter(t,e,r,s){let i=this.findPlace(t.create(e),r,!1);return i&&(i=this.enterInner(t,e,r,!0,s)),i}enterInner(t,e,r,s=!1,i){this.closeExtra();let a=this.top;a.match=a.match&&a.match.matchType(t);let o=vC(t,i,a.options);a.options&wf&&a.content.length==0&&(o|=wf);let l=tn.none;return r=r.filter(c=>(a.type?a.type.allowsMarkType(c.type):SC(c.type,t))?(l=c.addToSet(l),!1):!0),this.nodes.push(new yy(t,e,l,s,null,o)),this.open++,r}closeExtra(t=!1){let e=this.nodes.length-1;if(e>this.open){for(;e>this.open;e--)this.nodes[e-1].content.push(this.nodes[e].finish(t));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(t){for(let e=this.open;e>=0;e--){if(this.nodes[e]==t)return this.open=e,!0;this.localPreserveWS&&(this.nodes[e].options|=yf)}return!1}get currentPos(){this.closeExtra();let t=0;for(let e=this.open;e>=0;e--){let r=this.nodes[e].content;for(let s=r.length-1;s>=0;s--)t+=r[s].nodeSize;e&&t++}return t}findAtPoint(t,e){if(this.find)for(let r=0;r<this.find.length;r++)this.find[r].node==t&&this.find[r].offset==e&&(this.find[r].pos=this.currentPos)}findInside(t){if(this.find)for(let e=0;e<this.find.length;e++)this.find[e].pos==null&&t.nodeType==1&&t.contains(this.find[e].node)&&(this.find[e].pos=this.currentPos)}findAround(t,e,r){if(t!=e&&this.find)for(let s=0;s<this.find.length;s++)this.find[s].pos==null&&t.nodeType==1&&t.contains(this.find[s].node)&&e.compareDocumentPosition(this.find[s].node)&(r?2:4)&&(this.find[s].pos=this.currentPos)}findInText(t){if(this.find)for(let e=0;e<this.find.length;e++)this.find[e].node==t&&(this.find[e].pos=this.currentPos-(t.nodeValue.length-this.find[e].offset))}matchesContext(t){if(t.indexOf("|")>-1)return t.split(/\s*\|\s*/).some(this.matchesContext,this);let e=t.split("/"),r=this.options.context,s=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),i=-(r?r.depth+1:0)+(s?0:1),a=(o,l)=>{for(;o>=0;o--){let c=e[o];if(c==""){if(o==e.length-1||o==0)continue;for(;l>=i;l--)if(a(o-1,l))return!0;return!1}else{let u=l>0||l==0&&s?this.nodes[l].type:r&&l>=i?r.node(l-i).type:null;if(!u||u.name!=c&&!u.isInGroup(c))return!1;l--}}return!0};return a(e.length-1,this.open)}textblockFromContext(){let t=this.options.context;if(t)for(let e=t.depth;e>=0;e--){let r=t.node(e).contentMatchAt(t.indexAfter(e)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let e in this.parser.schema.nodes){let r=this.parser.schema.nodes[e];if(r.isTextblock&&r.defaultAttrs)return r}}}function EN(n){for(let t=n.firstChild,e=null;t;t=t.nextSibling){let r=t.nodeType==1?t.nodeName.toLowerCase():null;r&&wC.hasOwnProperty(r)&&e?(e.appendChild(t),t=e):r=="li"?e=t:r&&(e=null)}}function CN(n,t){return(n.matches||n.msMatchesSelector||n.webkitMatchesSelector||n.mozMatchesSelector).call(n,t)}function xC(n){let t={};for(let e in n)t[e]=n[e];return t}function SC(n,t){let e=t.schema.nodes;for(let r in e){let s=e[r];if(!s.allowsMarkType(n))continue;let i=[],a=o=>{i.push(o);for(let l=0;l<o.edgeCount;l++){let{type:c,next:u}=o.edge(l);if(c==t||i.indexOf(u)<0&&a(u))return!0}};if(a(s.contentMatch))return!0}}class nl{constructor(t,e){this.nodes=t,this.marks=e}serializeFragment(t,e={},r){r||(r=Rx(e).createDocumentFragment());let s=r,i=[];return t.forEach(a=>{if(i.length||a.marks.length){let o=0,l=0;for(;o<i.length&&l<a.marks.length;){let c=a.marks[l];if(!this.marks[c.type.name]){l++;continue}if(!c.eq(i[o][0])||c.type.spec.spanning===!1)break;o++,l++}for(;o<i.length;)s=i.pop()[1];for(;l<a.marks.length;){let c=a.marks[l++],u=this.serializeMark(c,a.isInline,e);u&&(i.push([c,s]),s.appendChild(u.dom),s=u.contentDOM||u.dom)}}s.appendChild(this.serializeNodeInner(a,e))}),r}serializeNodeInner(t,e){let{dom:r,contentDOM:s}=wy(Rx(e),this.nodes[t.type.name](t),null,t.attrs);if(s){if(t.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(t.content,e,s)}return r}serializeNode(t,e={}){let r=this.serializeNodeInner(t,e);for(let s=t.marks.length-1;s>=0;s--){let i=this.serializeMark(t.marks[s],t.isInline,e);i&&((i.contentDOM||i.dom).appendChild(r),r=i.dom)}return r}serializeMark(t,e,r={}){let s=this.marks[t.type.name];return s&&wy(Rx(r),s(t,e),null,t.attrs)}static renderSpec(t,e,r=null,s){return wy(t,e,r,s)}static fromSchema(t){return t.cached.domSerializer||(t.cached.domSerializer=new nl(this.nodesFromSchema(t),this.marksFromSchema(t)))}static nodesFromSchema(t){let e=kC(t.nodes);return e.text||(e.text=r=>r.text),e}static marksFromSchema(t){return kC(t.marks)}}function kC(n){let t={};for(let e in n){let r=n[e].spec.toDOM;r&&(t[e]=r)}return t}function Rx(n){return n.document||window.document}const EC=new WeakMap;function TN(n){let t=EC.get(n);return t===void 0&&EC.set(n,t=AN(n)),t}function AN(n){let t=null;function e(r){if(r&&typeof r=="object")if(Array.isArray(r))if(typeof r[0]=="string")t||(t=[]),t.push(r);else for(let s=0;s<r.length;s++)e(r[s]);else for(let s in r)e(r[s])}return e(n),t}function wy(n,t,e,r){if(typeof t=="string")return{dom:n.createTextNode(t)};if(t.nodeType!=null)return{dom:t};if(t.dom&&t.dom.nodeType!=null)return t;let s=t[0],i;if(typeof s!="string")throw new RangeError("Invalid array passed to renderSpec");if(r&&(i=TN(r))&&i.indexOf(t)>-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let a=s.indexOf(" ");a>0&&(e=s.slice(0,a),s=s.slice(a+1));let o,l=e?n.createElementNS(e,s):n.createElement(s),c=t[1],u=1;if(c&&typeof c=="object"&&c.nodeType==null&&!Array.isArray(c)){u=2;for(let h in c)if(c[h]!=null){let d=h.indexOf(" ");d>0?l.setAttributeNS(h.slice(0,d),h.slice(d+1),c[h]):h=="style"&&l.style?l.style.cssText=c[h]:l.setAttribute(h,c[h])}}for(let h=u;h<t.length;h++){let d=t[h];if(d===0){if(h<t.length-1||h>u)throw new RangeError("Content hole must be the only child of its parent node");return{dom:l,contentDOM:l}}else{let{dom:f,contentDOM:p}=wy(n,d,e,r);if(l.appendChild(f),p){if(o)throw new RangeError("Multiple content holes");o=p}}}return{dom:l,contentDOM:o}}const CC=65535,TC=Math.pow(2,16);function RN(n,t){return n+t*TC}function AC(n){return n&CC}function ON(n){return(n-(n&CC))/TC}const RC=1,OC=2,vy=4,MC=8;class Ox{constructor(t,e,r){this.pos=t,this.delInfo=e,this.recover=r}get deleted(){return(this.delInfo&MC)>0}get deletedBefore(){return(this.delInfo&(RC|vy))>0}get deletedAfter(){return(this.delInfo&(OC|vy))>0}get deletedAcross(){return(this.delInfo&vy)>0}}class ui{constructor(t,e=!1){if(this.ranges=t,this.inverted=e,!t.length&&ui.empty)return ui.empty}recover(t){let e=0,r=AC(t);if(!this.inverted)for(let s=0;s<r;s++)e+=this.ranges[s*3+2]-this.ranges[s*3+1];return this.ranges[r*3]+e+ON(t)}mapResult(t,e=1){return this._map(t,e,!1)}map(t,e=1){return this._map(t,e,!0)}_map(t,e,r){let s=0,i=this.inverted?2:1,a=this.inverted?1:2;for(let o=0;o<this.ranges.length;o+=3){let l=this.ranges[o]-(this.inverted?s:0);if(l>t)break;let c=this.ranges[o+i],u=this.ranges[o+a],h=l+c;if(t<=h){let d=c?t==l?-1:t==h?1:e:e,f=l+s+(d<0?0:u);if(r)return f;let p=t==(e<0?l:h)?null:RN(o/3,t-l),g=t==l?OC:t==h?RC:vy;return(e<0?t!=l:t!=h)&&(g|=MC),new Ox(f,g,p)}s+=u-c}return r?t+s:new Ox(t+s,0,null)}touches(t,e){let r=0,s=AC(e),i=this.inverted?2:1,a=this.inverted?1:2;for(let o=0;o<this.ranges.length;o+=3){let l=this.ranges[o]-(this.inverted?r:0);if(l>t)break;let c=this.ranges[o+i],u=l+c;if(t<=u&&o==s*3)return!0;r+=this.ranges[o+a]-c}return!1}forEach(t){let e=this.inverted?2:1,r=this.inverted?1:2;for(let s=0,i=0;s<this.ranges.length;s+=3){let a=this.ranges[s],o=a-(this.inverted?i:0),l=a+(this.inverted?0:i),c=this.ranges[s+e],u=this.ranges[s+r];t(o,o+c,l,l+u),i+=u-c}}invert(){return new ui(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(t){return t==0?ui.empty:new ui(t<0?[0,-t,0]:[0,0,t])}}ui.empty=new ui([]);class vf{constructor(t,e,r=0,s=t?t.length:0){this.mirror=e,this.from=r,this.to=s,this._maps=t||[],this.ownData=!(t||e)}get maps(){return this._maps}slice(t=0,e=this.maps.length){return new vf(this._maps,this.mirror,t,e)}appendMap(t,e){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(t),e!=null&&this.setMirror(this._maps.length-1,e)}appendMapping(t){for(let e=0,r=this._maps.length;e<t._maps.length;e++){let s=t.getMirror(e);this.appendMap(t._maps[e],s!=null&&s<e?r+s:void 0)}}getMirror(t){if(this.mirror){for(let e=0;e<this.mirror.length;e++)if(this.mirror[e]==t)return this.mirror[e+(e%2?-1:1)]}}setMirror(t,e){this.mirror||(this.mirror=[]),this.mirror.push(t,e)}appendMappingInverted(t){for(let e=t.maps.length-1,r=this._maps.length+t._maps.length;e>=0;e--){let s=t.getMirror(e);this.appendMap(t._maps[e].invert(),s!=null&&s>e?r-s-1:void 0)}}invert(){let t=new vf;return t.appendMappingInverted(this),t}map(t,e=1){if(this.mirror)return this._map(t,e,!0);for(let r=this.from;r<this.to;r++)t=this._maps[r].map(t,e);return t}mapResult(t,e=1){return this._map(t,e,!1)}_map(t,e,r){let s=0;for(let i=this.from;i<this.to;i++){let a=this._maps[i],o=a.mapResult(t,e);if(o.recover!=null){let l=this.getMirror(i);if(l!=null&&l>i&&l<this.to){i=l,t=this._maps[l].recover(o.recover);continue}}s|=o.delInfo,t=o.pos}return r?t:new Ox(t,s,null)}}const Mx=Object.create(null);class gs{getMap(){return ui.empty}merge(t){return null}static fromJSON(t,e){if(!e||!e.stepType)throw new RangeError("Invalid input for Step.fromJSON");let r=Mx[e.stepType];if(!r)throw new RangeError(`No step type ${e.stepType} defined`);return r.fromJSON(t,e)}static jsonID(t,e){if(t in Mx)throw new RangeError("Duplicate use of step JSON ID "+t);return Mx[t]=e,e.prototype.jsonID=t,e}}class Tn{constructor(t,e){this.doc=t,this.failed=e}static ok(t){return new Tn(t,null)}static fail(t){return new Tn(null,t)}static fromReplace(t,e,r,s){try{return Tn.ok(t.replace(e,r,s))}catch(i){if(i instanceof hy)return Tn.fail(i.message);throw i}}}function Ix(n,t,e){let r=[];for(let s=0;s<n.childCount;s++){let i=n.child(s);i.content.size&&(i=i.copy(Ix(i.content,t,i))),i.isInline&&(i=t(i,e,s)),r.push(i)}return He.fromArray(r)}class sl extends gs{constructor(t,e,r){super(),this.from=t,this.to=e,this.mark=r}apply(t){let e=t.slice(this.from,this.to),r=t.resolve(this.from),s=r.node(r.sharedDepth(this.to)),i=new lt(Ix(e.content,(a,o)=>!a.isAtom||!o.type.allowsMarkType(this.mark.type)?a:a.mark(this.mark.addToSet(a.marks)),s),e.openStart,e.openEnd);return Tn.fromReplace(t,this.from,this.to,i)}invert(){return new ra(this.from,this.to,this.mark)}map(t){let e=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return e.deleted&&r.deleted||e.pos>=r.pos?null:new sl(e.pos,r.pos,this.mark)}merge(t){return t instanceof sl&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new sl(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,e){if(typeof e.from!="number"||typeof e.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new sl(e.from,e.to,t.markFromJSON(e.mark))}}gs.jsonID("addMark",sl);class ra extends gs{constructor(t,e,r){super(),this.from=t,this.to=e,this.mark=r}apply(t){let e=t.slice(this.from,this.to),r=new lt(Ix(e.content,s=>s.mark(this.mark.removeFromSet(s.marks)),t),e.openStart,e.openEnd);return Tn.fromReplace(t,this.from,this.to,r)}invert(){return new sl(this.from,this.to,this.mark)}map(t){let e=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return e.deleted&&r.deleted||e.pos>=r.pos?null:new ra(e.pos,r.pos,this.mark)}merge(t){return t instanceof ra&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new ra(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,e){if(typeof e.from!="number"||typeof e.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new ra(e.from,e.to,t.markFromJSON(e.mark))}}gs.jsonID("removeMark",ra);class il extends gs{constructor(t,e){super(),this.pos=t,this.mark=e}apply(t){let e=t.nodeAt(this.pos);if(!e)return Tn.fail("No node at mark step's position");let r=e.type.create(e.attrs,null,this.mark.addToSet(e.marks));return Tn.fromReplace(t,this.pos,this.pos+1,new lt(He.from(r),0,e.isLeaf?0:1))}invert(t){let e=t.nodeAt(this.pos);if(e){let r=this.mark.addToSet(e.marks);if(r.length==e.marks.length){for(let s=0;s<e.marks.length;s++)if(!e.marks[s].isInSet(r))return new il(this.pos,e.marks[s]);return new il(this.pos,this.mark)}}return new Ec(this.pos,this.mark)}map(t){let e=t.mapResult(this.pos,1);return e.deletedAfter?null:new il(e.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,e){if(typeof e.pos!="number")throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new il(e.pos,t.markFromJSON(e.mark))}}gs.jsonID("addNodeMark",il);class Ec extends gs{constructor(t,e){super(),this.pos=t,this.mark=e}apply(t){let e=t.nodeAt(this.pos);if(!e)return Tn.fail("No node at mark step's position");let r=e.type.create(e.attrs,null,this.mark.removeFromSet(e.marks));return Tn.fromReplace(t,this.pos,this.pos+1,new lt(He.from(r),0,e.isLeaf?0:1))}invert(t){let e=t.nodeAt(this.pos);return!e||!this.mark.isInSet(e.marks)?this:new il(this.pos,this.mark)}map(t){let e=t.mapResult(this.pos,1);return e.deletedAfter?null:new Ec(e.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,e){if(typeof e.pos!="number")throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new Ec(e.pos,t.markFromJSON(e.mark))}}gs.jsonID("removeNodeMark",Ec);class Sn extends gs{constructor(t,e,r,s=!1){super(),this.from=t,this.to=e,this.slice=r,this.structure=s}apply(t){return this.structure&&Nx(t,this.from,this.to)?Tn.fail("Structure replace would overwrite content"):Tn.fromReplace(t,this.from,this.to,this.slice)}getMap(){return new ui([this.from,this.to-this.from,this.slice.size])}invert(t){return new Sn(this.from,this.from+this.slice.size,t.slice(this.from,this.to))}map(t){let e=t.mapResult(this.to,-1),r=this.from==this.to&&Sn.MAP_BIAS<0?e:t.mapResult(this.from,1);return r.deletedAcross&&e.deletedAcross?null:new Sn(r.pos,Math.max(r.pos,e.pos),this.slice,this.structure)}merge(t){if(!(t instanceof Sn)||t.structure||this.structure)return null;if(this.from+this.slice.size==t.from&&!this.slice.openEnd&&!t.slice.openStart){let e=this.slice.size+t.slice.size==0?lt.empty:new lt(this.slice.content.append(t.slice.content),this.slice.openStart,t.slice.openEnd);return new Sn(this.from,this.to+(t.to-t.from),e,this.structure)}else if(t.to==this.from&&!this.slice.openStart&&!t.slice.openEnd){let e=this.slice.size+t.slice.size==0?lt.empty:new lt(t.slice.content.append(this.slice.content),t.slice.openStart,this.slice.openEnd);return new Sn(t.from,this.to,e,this.structure)}else return null}toJSON(){let t={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(t.slice=this.slice.toJSON()),this.structure&&(t.structure=!0),t}static fromJSON(t,e){if(typeof e.from!="number"||typeof e.to!="number")throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new Sn(e.from,e.to,lt.fromJSON(t,e.slice),!!e.structure)}}Sn.MAP_BIAS=1,gs.jsonID("replace",Sn);class $n extends gs{constructor(t,e,r,s,i,a,o=!1){super(),this.from=t,this.to=e,this.gapFrom=r,this.gapTo=s,this.slice=i,this.insert=a,this.structure=o}apply(t){if(this.structure&&(Nx(t,this.from,this.gapFrom)||Nx(t,this.gapTo,this.to)))return Tn.fail("Structure gap-replace would overwrite content");let e=t.slice(this.gapFrom,this.gapTo);if(e.openStart||e.openEnd)return Tn.fail("Gap is not a flat range");let r=this.slice.insertAt(this.insert,e.content);return r?Tn.fromReplace(t,this.from,this.to,r):Tn.fail("Content does not fit in gap")}getMap(){return new ui([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(t){let e=this.gapTo-this.gapFrom;return new $n(this.from,this.from+this.slice.size+e,this.from+this.insert,this.from+this.insert+e,t.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(t){let e=t.mapResult(this.from,1),r=t.mapResult(this.to,-1),s=this.from==this.gapFrom?e.pos:t.map(this.gapFrom,-1),i=this.to==this.gapTo?r.pos:t.map(this.gapTo,1);return e.deletedAcross&&r.deletedAcross||s<e.pos||i>r.pos?null:new $n(e.pos,r.pos,s,i,this.slice,this.insert,this.structure)}toJSON(){let t={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(t.slice=this.slice.toJSON()),this.structure&&(t.structure=!0),t}static fromJSON(t,e){if(typeof e.from!="number"||typeof e.to!="number"||typeof e.gapFrom!="number"||typeof e.gapTo!="number"||typeof e.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new $n(e.from,e.to,e.gapFrom,e.gapTo,lt.fromJSON(t,e.slice),e.insert,!!e.structure)}}gs.jsonID("replaceAround",$n);function Nx(n,t,e){let r=n.resolve(t),s=e-t,i=r.depth;for(;s>0&&i>0&&r.indexAfter(i)==r.node(i).childCount;)i--,s--;if(s>0){let a=r.node(i).maybeChild(r.indexAfter(i));for(;s>0;){if(!a||a.isLeaf)return!0;a=a.firstChild,s--}}return!1}function MN(n,t,e,r){let s=[],i=[],a,o;n.doc.nodesBetween(t,e,(l,c,u)=>{if(!l.isInline)return;let h=l.marks;if(!r.isInSet(h)&&u.type.allowsMarkType(r.type)){let d=Math.max(c,t),f=Math.min(c+l.nodeSize,e),p=r.addToSet(h);for(let g=0;g<h.length;g++)h[g].isInSet(p)||(a&&a.to==d&&a.mark.eq(h[g])?a.to=f:s.push(a=new ra(d,f,h[g])));o&&o.to==d?o.to=f:i.push(o=new sl(d,f,r))}}),s.forEach(l=>n.step(l)),i.forEach(l=>n.step(l))}function IN(n,t,e,r){let s=[],i=0;n.doc.nodesBetween(t,e,(a,o)=>{if(!a.isInline)return;i++;let l=null;if(r instanceof gy){let c=a.marks,u;for(;u=r.isInSet(c);)(l||(l=[])).push(u),c=u.removeFromSet(c)}else r?r.isInSet(a.marks)&&(l=[r]):l=a.marks;if(l&&l.length){let c=Math.min(o+a.nodeSize,e);for(let u=0;u<l.length;u++){let h=l[u],d;for(let f=0;f<s.length;f++){let p=s[f];p.step==i-1&&h.eq(s[f].style)&&(d=p)}d?(d.to=c,d.step=i):s.push({style:h,from:Math.max(o,t),to:c,step:i})}}}),s.forEach(a=>n.step(new ra(a.from,a.to,a.style)))}function Px(n,t,e,r=e.contentMatch,s=!0){let i=n.doc.nodeAt(t),a=[],o=t+1;for(let l=0;l<i.childCount;l++){let c=i.child(l),u=o+c.nodeSize,h=r.matchType(c.type);if(!h)a.push(new Sn(o,u,lt.empty));else{r=h;for(let d=0;d<c.marks.length;d++)e.allowsMarkType(c.marks[d].type)||n.step(new ra(o,u,c.marks[d]));if(s&&c.isText&&e.whitespace!="pre"){let d,f=/\r?\n|\r/g,p;for(;d=f.exec(c.text);)p||(p=new lt(He.from(e.schema.text(" ",e.allowedMarks(c.marks))),0,0)),a.push(new Sn(o+d.index,o+d.index+d[0].length,p))}}o=u}if(!r.validEnd){let l=r.fillBefore(He.empty,!0);n.replace(o,o,new lt(l,0,0))}for(let l=a.length-1;l>=0;l--)n.step(a[l])}function NN(n,t,e){return(t==0||n.canReplace(t,n.childCount))&&(e==n.childCount||n.canReplace(0,e))}function Cc(n){let e=n.parent.content.cutByIndex(n.startIndex,n.endIndex);for(let r=n.depth,s=0,i=0;;--r){let a=n.$from.node(r),o=n.$from.index(r)+s,l=n.$to.indexAfter(r)-i;if(r<n.depth&&a.canReplace(o,l,e))return r;if(r==0||a.type.spec.isolating||!NN(a,o,l))break;o&&(s=1),l<a.childCount&&(i=1)}return null}function PN(n,t,e){let{$from:r,$to:s,depth:i}=t,a=r.before(i+1),o=s.after(i+1),l=a,c=o,u=He.empty,h=0;for(let p=i,g=!1;p>e;p--)g||r.index(p)>0?(g=!0,u=He.from(r.node(p).copy(u)),h++):l--;let d=He.empty,f=0;for(let p=i,g=!1;p>e;p--)g||s.after(p+1)<s.end(p)?(g=!0,d=He.from(s.node(p).copy(d)),f++):c++;n.step(new $n(l,c,a,o,new lt(u.append(d),h,f),u.size-h,!0))}function _y(n,t,e=null,r=n){let s=$N(n,t),i=s&&LN(r,t);return i?s.map(IC).concat({type:t,attrs:e}).concat(i.map(IC)):null}function IC(n){return{type:n,attrs:null}}function $N(n,t){let{parent:e,startIndex:r,endIndex:s}=n,i=e.contentMatchAt(r).findWrapping(t);if(!i)return null;let a=i.length?i[0]:t;return e.canReplaceWith(r,s,a)?i:null}function LN(n,t){let{parent:e,startIndex:r,endIndex:s}=n,i=e.child(r),a=t.contentMatch.findWrapping(i.type);if(!a)return null;let l=(a.length?a[a.length-1]:t).contentMatch;for(let c=r;l&&c<s;c++)l=l.matchType(e.child(c).type);return!l||!l.validEnd?null:a}function jN(n,t,e){let r=He.empty;for(let a=e.length-1;a>=0;a--){if(r.size){let o=e[a].type.contentMatch.matchFragment(r);if(!o||!o.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}r=He.from(e[a].type.create(e[a].attrs,r))}let s=t.start,i=t.end;n.step(new $n(s,i,s,i,new lt(r,0,0),e.length,!0))}function DN(n,t,e,r,s){if(!r.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let i=n.steps.length;n.doc.nodesBetween(t,e,(a,o)=>{let l=typeof s=="function"?s(a):s;if(a.isTextblock&&!a.hasMarkup(r,l)&&BN(n.doc,n.mapping.slice(i).map(o),r)){let c=null;if(r.schema.linebreakReplacement){let f=r.whitespace=="pre",p=!!r.contentMatch.matchType(r.schema.linebreakReplacement);f&&!p?c=!1:!f&&p&&(c=!0)}c===!1&&PC(n,a,o,i),Px(n,n.mapping.slice(i).map(o,1),r,void 0,c===null);let u=n.mapping.slice(i),h=u.map(o,1),d=u.map(o+a.nodeSize,1);return n.step(new $n(h,d,h+1,d-1,new lt(He.from(r.create(l,null,a.marks)),0,0),1,!0)),c===!0&&NC(n,a,o,i),!1}})}function NC(n,t,e,r){t.forEach((s,i)=>{if(s.isText){let a,o=/\r?\n|\r/g;for(;a=o.exec(s.text);){let l=n.mapping.slice(r).map(e+1+i+a.index);n.replaceWith(l,l+1,t.type.schema.linebreakReplacement.create())}}})}function PC(n,t,e,r){t.forEach((s,i)=>{if(s.type==s.type.schema.linebreakReplacement){let a=n.mapping.slice(r).map(e+1+i);n.replaceWith(a,a+1,t.type.schema.text(`
@@ -93,7 +93,7 @@ img.ProseMirror-separator {
93
93
  `},addCommands(){return{setHardBreak:()=>({commands:n,chain:t,state:e,editor:r})=>n.first([()=>n.exitCode(),()=>n.command(()=>{const{selection:s,storedMarks:i}=e;if(s.$from.parent.type.spec.isolating)return!1;const{keepMarks:a}=this.options,{splittableMarks:o}=r.extensionManager,l=i||s.$to.parentOffset&&s.$from.marks();return t().insertContent({type:this.name}).command(({tr:c,dispatch:u})=>{if(u&&l&&a){const h=l.filter(d=>o.includes(d.type.name));c.ensureMarks(h)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),aL=zi.create({name:"heading",addOptions(){return{levels:[1,2,3,4,5,6],HTMLAttributes:{}}},content:"inline*",group:"block",defining:!0,addAttributes(){return{level:{default:1,rendered:!1}}},parseHTML(){return this.options.levels.map(n=>({tag:`h${n}`,attrs:{level:n}}))},renderHTML({node:n,HTMLAttributes:t}){return[`h${this.options.levels.includes(n.attrs.level)?n.attrs.level:this.options.levels[0]}`,Gn(this.options.HTMLAttributes,t),0]},addCommands(){return{setHeading:n=>({commands:t})=>this.options.levels.includes(n.level)?t.setNode(this.name,n):!1,toggleHeading:n=>({commands:t})=>this.options.levels.includes(n.level)?t.toggleNode(this.name,"paragraph",n):!1}},addKeyboardShortcuts(){return this.options.levels.reduce((n,t)=>({...n,[`Mod-Alt-${t}`]:()=>this.editor.commands.toggleHeading({level:t})}),{})},addInputRules(){return this.options.levels.map(n=>L2({find:new RegExp(`^(#{${Math.min(...this.options.levels)},${n}})\\s$`),type:this.type,getAttributes:{level:n}}))}});var Yy=200,Kn=function(){};Kn.prototype.append=function(t){return t.length?(t=Kn.from(t),!this.length&&t||t.length<Yy&&this.leafAppend(t)||this.length<Yy&&t.leafPrepend(this)||this.appendInner(t)):this},Kn.prototype.prepend=function(t){return t.length?Kn.from(t).append(this):this},Kn.prototype.appendInner=function(t){return new oL(this,t)},Kn.prototype.slice=function(t,e){return t===void 0&&(t=0),e===void 0&&(e=this.length),t>=e?Kn.empty:this.sliceInner(Math.max(0,t),Math.min(this.length,e))},Kn.prototype.get=function(t){if(!(t<0||t>=this.length))return this.getInner(t)},Kn.prototype.forEach=function(t,e,r){e===void 0&&(e=0),r===void 0&&(r=this.length),e<=r?this.forEachInner(t,e,r,0):this.forEachInvertedInner(t,e,r,0)},Kn.prototype.map=function(t,e,r){e===void 0&&(e=0),r===void 0&&(r=this.length);var s=[];return this.forEach(function(i,a){return s.push(t(i,a))},e,r),s},Kn.from=function(t){return t instanceof Kn?t:t&&t.length?new eA(t):Kn.empty};var eA=function(n){function t(r){n.call(this),this.values=r}n&&(t.__proto__=n),t.prototype=Object.create(n&&n.prototype),t.prototype.constructor=t;var e={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(s,i){return s==0&&i==this.length?this:new t(this.values.slice(s,i))},t.prototype.getInner=function(s){return this.values[s]},t.prototype.forEachInner=function(s,i,a,o){for(var l=i;l<a;l++)if(s(this.values[l],o+l)===!1)return!1},t.prototype.forEachInvertedInner=function(s,i,a,o){for(var l=i-1;l>=a;l--)if(s(this.values[l],o+l)===!1)return!1},t.prototype.leafAppend=function(s){if(this.length+s.length<=Yy)return new t(this.values.concat(s.flatten()))},t.prototype.leafPrepend=function(s){if(this.length+s.length<=Yy)return new t(s.flatten().concat(this.values))},e.length.get=function(){return this.values.length},e.depth.get=function(){return 0},Object.defineProperties(t.prototype,e),t}(Kn);Kn.empty=new eA([]);var oL=function(n){function t(e,r){n.call(this),this.left=e,this.right=r,this.length=e.length+r.length,this.depth=Math.max(e.depth,r.depth)+1}return n&&(t.__proto__=n),t.prototype=Object.create(n&&n.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(r){return r<this.left.length?this.left.get(r):this.right.get(r-this.left.length)},t.prototype.forEachInner=function(r,s,i,a){var o=this.left.length;if(s<o&&this.left.forEachInner(r,s,Math.min(i,o),a)===!1||i>o&&this.right.forEachInner(r,Math.max(s-o,0),Math.min(this.length,i)-o,a+o)===!1)return!1},t.prototype.forEachInvertedInner=function(r,s,i,a){var o=this.left.length;if(s>o&&this.right.forEachInvertedInner(r,s-o,Math.max(i,o)-o,a+o)===!1||i<o&&this.left.forEachInvertedInner(r,Math.min(s,o),i,a)===!1)return!1},t.prototype.sliceInner=function(r,s){if(r==0&&s==this.length)return this;var i=this.left.length;return s<=i?this.left.slice(r,s):r>=i?this.right.slice(r-i,s-i):this.left.slice(r,i).append(this.right.slice(0,s-i))},t.prototype.leafAppend=function(r){var s=this.right.leafAppend(r);if(s)return new t(this.left,s)},t.prototype.leafPrepend=function(r){var s=this.left.leafPrepend(r);if(s)return new t(s,this.right)},t.prototype.appendInner=function(r){return this.left.depth>=Math.max(this.right.depth,r.depth)+1?new t(this.left,new t(this.right,r)):new t(this,r)},t}(Kn);const lL=500;class sa{constructor(t,e){this.items=t,this.eventCount=e}popEvent(t,e){if(this.eventCount==0)return null;let r=this.items.length;for(;;r--)if(this.items.get(r-1).selection){--r;break}let s,i;e&&(s=this.remapping(r,this.items.length),i=s.maps.length);let a=t.tr,o,l,c=[],u=[];return this.items.forEach((h,d)=>{if(!h.step){s||(s=this.remapping(r,d+1),i=s.maps.length),i--,u.push(h);return}if(s){u.push(new Ia(h.map));let f=h.step.map(s.slice(i)),p;f&&a.maybeStep(f).doc&&(p=a.mapping.maps[a.mapping.maps.length-1],c.push(new Ia(p,void 0,void 0,c.length+u.length))),i--,p&&s.appendMap(p,i)}else a.maybeStep(h.step);if(h.selection)return o=s?h.selection.map(s.slice(i)):h.selection,l=new sa(this.items.slice(0,r).append(u.reverse().concat(c)),this.eventCount-1),!1},this.items.length,0),{remaining:l,transform:a,selection:o}}addTransform(t,e,r,s){let i=[],a=this.eventCount,o=this.items,l=!s&&o.length?o.get(o.length-1):null;for(let u=0;u<t.steps.length;u++){let h=t.steps[u].invert(t.docs[u]),d=new Ia(t.mapping.maps[u],h,e),f;(f=l&&l.merge(d))&&(d=f,u?i.pop():o=o.slice(0,o.length-1)),i.push(d),e&&(a++,e=void 0),s||(l=d)}let c=a-r.depth;return c>uL&&(o=cL(o,c),a-=c),new sa(o.append(i),a)}remapping(t,e){let r=new vf;return this.items.forEach((s,i)=>{let a=s.mirrorOffset!=null&&i-s.mirrorOffset>=t?r.maps.length-s.mirrorOffset:void 0;r.appendMap(s.map,a)},t,e),r}addMaps(t){return this.eventCount==0?this:new sa(this.items.append(t.map(e=>new Ia(e))),this.eventCount)}rebased(t,e){if(!this.eventCount)return this;let r=[],s=Math.max(0,this.items.length-e),i=t.mapping,a=t.steps.length,o=this.eventCount;this.items.forEach(d=>{d.selection&&o--},s);let l=e;this.items.forEach(d=>{let f=i.getMirror(--l);if(f==null)return;a=Math.min(a,f);let p=i.maps[f];if(d.step){let g=t.steps[f].invert(t.docs[f]),m=d.selection&&d.selection.map(i.slice(l+1,f));m&&o++,r.push(new Ia(p,g,m))}else r.push(new Ia(p))},s);let c=[];for(let d=e;d<a;d++)c.push(new Ia(i.maps[d]));let u=this.items.slice(0,s).append(c).append(r),h=new sa(u,o);return h.emptyItemCount()>lL&&(h=h.compress(this.items.length-r.length)),h}emptyItemCount(){let t=0;return this.items.forEach(e=>{e.step||t++}),t}compress(t=this.items.length){let e=this.remapping(0,t),r=e.maps.length,s=[],i=0;return this.items.forEach((a,o)=>{if(o>=t)s.push(a),a.selection&&i++;else if(a.step){let l=a.step.map(e.slice(r)),c=l&&l.getMap();if(r--,c&&e.appendMap(c,r),l){let u=a.selection&&a.selection.map(e.slice(r));u&&i++;let h=new Ia(c.invert(),l,u),d,f=s.length-1;(d=s.length&&s[f].merge(h))?s[f]=d:s.push(h)}}else a.map&&r--},this.items.length,0),new sa(Kn.from(s.reverse()),i)}}sa.empty=new sa(Kn.empty,0);function cL(n,t){let e;return n.forEach((r,s)=>{if(r.selection&&t--==0)return e=s,!1}),n.slice(e)}class Ia{constructor(t,e,r,s){this.map=t,this.step=e,this.selection=r,this.mirrorOffset=s}merge(t){if(this.step&&t.step&&!t.selection){let e=t.step.merge(this.step);if(e)return new Ia(e.getMap().invert(),e,this.selection)}}}class gl{constructor(t,e,r,s,i){this.done=t,this.undone=e,this.prevRanges=r,this.prevTime=s,this.prevComposition=i}}const uL=20;function dL(n,t,e,r){let s=e.getMeta(Bc),i;if(s)return s.historyState;e.getMeta(pL)&&(n=new gl(n.done,n.undone,null,0,-1));let a=e.getMeta("appendedTransaction");if(e.steps.length==0)return n;if(a&&a.getMeta(Bc))return a.getMeta(Bc).redo?new gl(n.done.addTransform(e,void 0,r,Jy(t)),n.undone,tA(e.mapping.maps),n.prevTime,n.prevComposition):new gl(n.done,n.undone.addTransform(e,void 0,r,Jy(t)),null,n.prevTime,n.prevComposition);if(e.getMeta("addToHistory")!==!1&&!(a&&a.getMeta("addToHistory")===!1)){let o=e.getMeta("composition"),l=n.prevTime==0||!a&&n.prevComposition!=o&&(n.prevTime<(e.time||0)-r.newGroupDelay||!hL(e,n.prevRanges)),c=a?D2(n.prevRanges,e.mapping):tA(e.mapping.maps);return new gl(n.done.addTransform(e,l?t.selection.getBookmark():void 0,r,Jy(t)),sa.empty,c,e.time,o??n.prevComposition)}else return(i=e.getMeta("rebased"))?new gl(n.done.rebased(e,i),n.undone.rebased(e,i),D2(n.prevRanges,e.mapping),n.prevTime,n.prevComposition):new gl(n.done.addMaps(e.mapping.maps),n.undone.addMaps(e.mapping.maps),D2(n.prevRanges,e.mapping),n.prevTime,n.prevComposition)}function hL(n,t){if(!t)return!1;if(!n.docChanged)return!0;let e=!1;return n.mapping.maps[0].forEach((r,s)=>{for(let i=0;i<t.length;i+=2)r<=t[i+1]&&s>=t[i]&&(e=!0)}),e}function tA(n){let t=[];for(let e=n.length-1;e>=0&&t.length==0;e--)n[e].forEach((r,s,i,a)=>t.push(i,a));return t}function D2(n,t){if(!n)return null;let e=[];for(let r=0;r<n.length;r+=2){let s=t.map(n[r],1),i=t.map(n[r+1],-1);s<=i&&e.push(s,i)}return e}function fL(n,t,e){let r=Jy(t),s=Bc.get(t).spec.config,i=(e?n.undone:n.done).popEvent(t,r);if(!i)return null;let a=i.selection.resolve(i.transform.doc),o=(e?n.done:n.undone).addTransform(i.transform,t.selection.getBookmark(),s,r),l=new gl(e?o:i.remaining,e?i.remaining:o,null,0,-1);return i.transform.setSelection(a).setMeta(Bc,{redo:e,historyState:l})}let B2=!1,rA=null;function Jy(n){let t=n.plugins;if(rA!=t){B2=!1,rA=t;for(let e=0;e<t.length;e++)if(t[e].spec.historyPreserveItems){B2=!0;break}}return B2}const Bc=new rn("history"),pL=new rn("closeHistory");function nA(n={}){return n={depth:n.depth||100,newGroupDelay:n.newGroupDelay||500},new Nr({key:Bc,state:{init(){return new gl(sa.empty,sa.empty,null,0,-1)},apply(t,e,r){return dL(e,r,t,n)}},config:n,props:{handleDOMEvents:{beforeinput(t,e){let r=e.inputType,s=r=="historyUndo"?F2:r=="historyRedo"?z2:null;return!s||!t.editable?!1:(e.preventDefault(),s(t.state,t.dispatch))}}}})}function sA(n,t){return(e,r)=>{let s=Bc.getState(e);if(!s||(n?s.undone:s.done).eventCount==0)return!1;if(r){let i=fL(s,e,n);i&&r(t?i.scrollIntoView():i)}return!0}}const F2=sA(!1,!0),z2=sA(!0,!0),mL=Vs.create({name:"history",addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:n,dispatch:t})=>F2(n,t),redo:()=>({state:n,dispatch:t})=>z2(n,t)}},addProseMirrorPlugins(){return[nA(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}}),gL=zi.create({name:"horizontalRule",addOptions(){return{HTMLAttributes:{}}},group:"block",parseHTML(){return[{tag:"hr"}]},renderHTML({HTMLAttributes:n}){return["hr",Gn(this.options.HTMLAttributes,n)]},addCommands(){return{setHorizontalRule:()=>({chain:n,state:t})=>{if(!N$(t,t.schema.nodes[this.name]))return!1;const{selection:e}=t,{$from:r,$to:s}=e,i=n();return r.parentOffset===0?i.insertContentAt({from:Math.max(r.pos-1,0),to:s.pos},{type:this.name}):u$(e)?i.insertContentAt(s.pos,{type:this.name}):i.insertContent({type:this.name}),i.command(({tr:a,dispatch:o})=>{var l;if(o){const{$to:c}=a.selection,u=c.end();if(c.nodeAfter)c.nodeAfter.isTextblock?a.setSelection(vt.create(a.doc,c.pos+1)):c.nodeAfter.isBlock?a.setSelection(Tt.create(a.doc,c.pos)):a.setSelection(vt.create(a.doc,c.pos));else{const h=(l=c.parent.type.contentMatch.defaultType)===null||l===void 0?void 0:l.create();h&&(a.insert(u,h),a.setSelection(vt.create(a.doc,u+1)))}a.scrollIntoView()}return!0}).run()}}},addInputRules(){return[K4({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type})]}}),bL=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,yL=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,wL=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,vL=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,_L=$c.create({name:"italic",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:n=>n.style.fontStyle!=="normal"&&null},{style:"font-style=normal",clearMark:n=>n.type.name===this.name},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:n}){return["em",Gn(this.options.HTMLAttributes,n),0]},addCommands(){return{setItalic:()=>({commands:n})=>n.setMark(this.name),toggleItalic:()=>({commands:n})=>n.toggleMark(this.name),unsetItalic:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[jc({find:bL,type:this.type}),jc({find:wL,type:this.type})]},addPasteRules(){return[Dc({find:yL,type:this.type}),Dc({find:vL,type:this.type})]}}),xL=zi.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:n}){return["li",Gn(this.options.HTMLAttributes,n),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),SL="listItem",iA="textStyle",aA=/^(\d+)\.\s$/,kL=zi.create({name:"orderedList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes(){return{start:{default:1,parseHTML:n=>n.hasAttribute("start")?parseInt(n.getAttribute("start")||"",10):1},type:{default:null,parseHTML:n=>n.getAttribute("type")}}},parseHTML(){return[{tag:"ol"}]},renderHTML({HTMLAttributes:n}){const{start:t,...e}=n;return t===1?["ol",Gn(this.options.HTMLAttributes,e),0]:["ol",Gn(this.options.HTMLAttributes,n),0]},addCommands(){return{toggleOrderedList:()=>({commands:n,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(SL,this.editor.getAttributes(iA)).run():n.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let n=Lf({find:aA,type:this.type,getAttributes:t=>({start:+t[1]}),joinPredicate:(t,e)=>e.childCount+e.attrs.start===+t[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(n=Lf({find:aA,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:t=>({start:+t[1],...this.editor.getAttributes(iA)}),joinPredicate:(t,e)=>e.childCount+e.attrs.start===+t[1],editor:this.editor})),[n]}}),EL=zi.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:n}){return["p",Gn(this.options.HTMLAttributes,n),0]},addCommands(){return{setParagraph:()=>({commands:n})=>n.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),CL=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,TL=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,AL=$c.create({name:"strike",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:n=>n.includes("line-through")?{}:!1}]},renderHTML({HTMLAttributes:n}){return["s",Gn(this.options.HTMLAttributes,n),0]},addCommands(){return{setStrike:()=>({commands:n})=>n.setMark(this.name),toggleStrike:()=>({commands:n})=>n.toggleMark(this.name),unsetStrike:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[jc({find:CL,type:this.type})]},addPasteRules(){return[Dc({find:TL,type:this.type})]}}),RL=zi.create({name:"text",group:"inline"}),OL=Vs.create({name:"starterKit",addExtensions(){const n=[];return this.options.bold!==!1&&n.push(F$.configure(this.options.bold)),this.options.blockquote!==!1&&n.push($$.configure(this.options.blockquote)),this.options.bulletList!==!1&&n.push(H$.configure(this.options.bulletList)),this.options.code!==!1&&n.push(V$.configure(this.options.code)),this.options.codeBlock!==!1&&n.push(K$.configure(this.options.codeBlock)),this.options.document!==!1&&n.push(X$.configure(this.options.document)),this.options.dropcursor!==!1&&n.push(J$.configure(this.options.dropcursor)),this.options.gapcursor!==!1&&n.push(sL.configure(this.options.gapcursor)),this.options.hardBreak!==!1&&n.push(iL.configure(this.options.hardBreak)),this.options.heading!==!1&&n.push(aL.configure(this.options.heading)),this.options.history!==!1&&n.push(mL.configure(this.options.history)),this.options.horizontalRule!==!1&&n.push(gL.configure(this.options.horizontalRule)),this.options.italic!==!1&&n.push(_L.configure(this.options.italic)),this.options.listItem!==!1&&n.push(xL.configure(this.options.listItem)),this.options.orderedList!==!1&&n.push(kL.configure(this.options.orderedList)),this.options.paragraph!==!1&&n.push(EL.configure(this.options.paragraph)),this.options.strike!==!1&&n.push(AL.configure(this.options.strike)),this.options.text!==!1&&n.push(RL.configure(this.options.text)),n}}),ML=n=>{if(!n.children.length)return;const t=n.querySelectorAll("span");t&&t.forEach(e=>{var r,s;const i=e.getAttribute("style"),a=(s=(r=e.parentElement)===null||r===void 0?void 0:r.closest("span"))===null||s===void 0?void 0:s.getAttribute("style");e.setAttribute("style",`${a};${i}`)})},IL=$c.create({name:"textStyle",priority:101,addOptions(){return{HTMLAttributes:{},mergeNestedSpanStyles:!1}},parseHTML(){return[{tag:"span",getAttrs:n=>n.hasAttribute("style")?(this.options.mergeNestedSpanStyles&&ML(n),{}):!1}]},renderHTML({HTMLAttributes:n}){return["span",Gn(this.options.HTMLAttributes,n),0]},addCommands(){return{removeEmptyTextStyle:()=>({tr:n})=>{const{selection:t}=n;return n.doc.nodesBetween(t.from,t.to,(e,r)=>{if(e.isTextblock)return!0;e.marks.filter(s=>s.type===this.type).some(s=>Object.values(s.attrs).some(i=>!!i))||n.removeMark(r,r+e.nodeSize,this.type)}),!0}}}}),NL=Vs.create({name:"color",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{color:{default:null,parseHTML:n=>{var t;return(t=n.style.color)===null||t===void 0?void 0:t.replace(/['"]+/g,"")},renderHTML:n=>n.color?{style:`color: ${n.color}`}:{}}}}]},addCommands(){return{setColor:n=>({chain:t})=>t().setMark("textStyle",{color:n}).run(),unsetColor:()=>({chain:n})=>n().setMark("textStyle",{color:null}).removeEmptyTextStyle().run()}}}),PL=/(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))$/,$L=/(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))/g,LL=$c.create({name:"highlight",addOptions(){return{multicolor:!1,HTMLAttributes:{}}},addAttributes(){return this.options.multicolor?{color:{default:null,parseHTML:n=>n.getAttribute("data-color")||n.style.backgroundColor,renderHTML:n=>n.color?{"data-color":n.color,style:`background-color: ${n.color}; color: inherit`}:{}}}:{}},parseHTML(){return[{tag:"mark"}]},renderHTML({HTMLAttributes:n}){return["mark",Gn(this.options.HTMLAttributes,n),0]},addCommands(){return{setHighlight:n=>({commands:t})=>t.setMark(this.name,n),toggleHighlight:n=>({commands:t})=>t.toggleMark(this.name,n),unsetHighlight:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-h":()=>this.editor.commands.toggleHighlight()}},addInputRules(){return[jc({find:PL,type:this.type})]},addPasteRules(){return[Dc({find:$L,type:this.type})]}}),jL=Vs.create({name:"textAlign",addOptions(){return{types:[],alignments:["left","center","right","justify"],defaultAlignment:null}},addGlobalAttributes(){return[{types:this.options.types,attributes:{textAlign:{default:this.options.defaultAlignment,parseHTML:n=>{const t=n.style.textAlign;return this.options.alignments.includes(t)?t:this.options.defaultAlignment},renderHTML:n=>n.textAlign?{style:`text-align: ${n.textAlign}`}:{}}}}]},addCommands(){return{setTextAlign:n=>({commands:t})=>this.options.alignments.includes(n)?this.options.types.map(e=>t.updateAttributes(e,{textAlign:n})).every(e=>e):!1,unsetTextAlign:()=>({commands:n})=>this.options.types.map(t=>n.resetAttributes(t,"textAlign")).every(t=>t),toggleTextAlign:n=>({editor:t,commands:e})=>this.options.alignments.includes(n)?t.isActive({textAlign:n})?e.unsetTextAlign():e.setTextAlign(n):!1}},addKeyboardShortcuts(){return{"Mod-Shift-l":()=>this.editor.commands.setTextAlign("left"),"Mod-Shift-e":()=>this.editor.commands.setTextAlign("center"),"Mod-Shift-r":()=>this.editor.commands.setTextAlign("right"),"Mod-Shift-j":()=>this.editor.commands.setTextAlign("justify")}}}),DL=/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/,BL=zi.create({name:"image",addOptions(){return{inline:!1,allowBase64:!1,HTMLAttributes:{}}},inline(){return this.options.inline},group(){return this.options.inline?"inline":"block"},draggable:!0,addAttributes(){return{src:{default:null},alt:{default:null},title:{default:null}}},parseHTML(){return[{tag:this.options.allowBase64?"img[src]":'img[src]:not([src^="data:"])'}]},renderHTML({HTMLAttributes:n}){return["img",Gn(this.options.HTMLAttributes,n)]},addCommands(){return{setImage:n=>({commands:t})=>t.insertContent({type:this.name,attrs:n})}},addInputRules(){return[K4({find:DL,type:this.type,getAttributes:n=>{const[,,t,e,r]=n;return{src:e,alt:t,title:r}}})]}});class FL extends Ex{constructor(){super();Q(this,xi);Q(this,ei,null);Q(this,em,null);Q(this,tm,null)}connectedCallback(){super.connectedCallback()&&(It(this,xi,RI).call(this),It(this,xi,OI).call(this),It(this,xi,U3).call(this))}get value(){return y(this,ei).getHTML()}set value(e){let r=e||"";r&&!/<\/?[a-z][^>]*>/i.test(r)&&(r=r.split(`
94
94
  `).map(s=>`<p>${s}</p>`).join("")),y(this,ei)?y(this,ei).commands.setContent(r,!1):oe(this,tm,r)}get id(){return this.getAttribute("id")}set id(e){this.setAttribute("id",e)}get name(){return this.getAttribute("name")}set name(e){this.setAttribute("name",e)}get readonly(){return this.hasAttribute("readonly")}set readonly(e){e?this.setAttribute("readonly",""):this.removeAttribute("readonly"),It(this,xi,U3).call(this)}disconnectedCallback(){y(this,ei)&&(y(this,ei).destroy(),oe(this,ei,null))}}ei=new WeakMap,em=new WeakMap,tm=new WeakMap,xi=new WeakSet,U3=function(){if(y(this,ei)){const e=this.readonly;y(this,ei).setEditable(!e);const r=this.shadowRoot.querySelector(".menu-bar");r&&(r.style.display=e?"none":"flex")}},RI=function(){const e=rl.getComponentCssPath("nineEditor.css"),r=e?`@import "${e}";`:"";this.shadowRoot.innerHTML=`
95
95
  <style>
96
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-ux@0.1.182/dist/css/nineEditor.css";
96
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-ux@0.1.183/dist/css/nineEditor.css";
97
97
  ${r}
98
98
  </style>
99
99
 
@@ -128,9 +128,9 @@ img.ProseMirror-separator {
128
128
  <button type="button" data-cmd="redo" title="다시 실행(Ctrl+Y)"><i class="icon-redo"></i></button>
129
129
  </div>
130
130
  <div id="editor-container"></div>
131
- `,oe(this,em,this.shadowRoot.querySelector("#editor-container")),this.shadowRoot.querySelector("#font-size").onchange=s=>{const i=s.target.value;console.log(s.target,i),y(this,ei).chain().focus().setMark("textStyle",{fontSize:i}).run()}},OI=function(){oe(this,ei,new I$({element:y(this,em),editable:!this.readonly,extensions:[OL,NL,LL.configure({multicolor:!0}),jL.configure({types:["heading","paragraph"]}),BL.configure({inline:!0,allowBase64:!0}),IL.extend({addAttributes(){return{fontSize:{default:null,parseHTML:e=>e.style.fontSize,renderHTML:e=>e.fontSize?{style:`font-size: ${e.fontSize}`}:{}}}}})],content:y(this,tm)||this.originContents||"",onUpdate:({editor:e})=>{this.dispatchEvent(new CustomEvent("change",{detail:e.getHTML()}))},onSelectionUpdate:({editor:e})=>{this.readonly||It(this,xi,MI).call(this,e)}})),It(this,xi,II).call(this)},MI=function(e){this.shadowRoot.querySelectorAll("[data-cmd]").forEach(a=>{e.isActive(a.dataset.cmd)?a.classList.add("is-active"):a.classList.remove("is-active")}),this.shadowRoot.querySelectorAll("[data-align]").forEach(a=>{e.isActive({textAlign:a.dataset.align})?a.classList.add("is-active"):a.classList.remove("is-active")});const r=e.getAttributes("textStyle"),s=this.shadowRoot.querySelector("#font-size");s&&(s.value=r.fontSize||"14px");const i=this.shadowRoot.querySelector("#color-picker");i&&(i.value=r.color||"#000000")},II=function(){const e=y(this,ei);this.shadowRoot.querySelectorAll("[data-cmd]").forEach(r=>{r.onclick=()=>{const s=r.dataset.cmd;s==="bold"&&e.chain().focus().toggleBold().run(),s==="italic"&&e.chain().focus().toggleItalic().run(),s==="underline"&&e.chain().focus().toggleUnderline().run(),s==="strike"&&e.chain().focus().toggleStrike().run(),s==="highlight"&&e.chain().focus().toggleHighlight().run(),s==="bulletList"&&e.chain().focus().toggleBulletList().run(),s==="orderedList"&&e.chain().focus().toggleOrderedList().run(),s==="undo"&&e.chain().focus().undo().run(),s==="redo"&&e.chain().focus().redo().run()}}),this.shadowRoot.querySelector("#color-picker").oninput=r=>{e.chain().focus().setColor(r.target.value).run()},this.shadowRoot.querySelectorAll("[data-align]").forEach(r=>{r.onclick=()=>e.chain().focus().setTextAlign(r.dataset.align).run()}),this.shadowRoot.querySelector("#img-btn").onclick=()=>{const r=window.prompt("Image URL");r&&e.chain().focus().setImage({src:r}).run()}};const vo=typeof window<"u"&&window.nine?window.nine:vr.nine,oA={alert:window.alert,confirm:window.confirm},lA=()=>{var e;console.log(vo,window.nine);const{nativeOverride:n}=((e=vo==null?void 0:vo.config)==null?void 0:e.ux)||{},t=Array.isArray(n)?n:n===!0?["alert","confirm"]:[];console.log(vo,t),window.alert=t.includes("alert")?r=>rl.alert(r):oA.alert,window.confirm=t.includes("confirm")?async r=>await rl.confirm(r):oA.confirm,vo.config.debug&&t.length>0&&console.log(`[nine-ux] Native API Overridden: ${t.join(", ")}`)};(()=>{lA(),vo==null||vo.subscribeConfig(n=>{(n==="ux"||n==="config")&&lA()})})();class zL extends HTMLElement{constructor(){super();Q(this,ga);Q(this,Bd,!1);Q(this,Fd);oe(this,Fd,this.attachShadow({mode:"open"}))}static get observedAttributes(){return["lang","code"]}connectedCallback(){!this.getAttribute("code")&&this.textContent.trim()&&this.setAttribute("code",this.textContent.trim()),It(this,ga,ay).call(this)}attributeChangedCallback(){It(this,ga,ay).call(this)}}Bd=new WeakMap,Fd=new WeakMap,ga=new WeakSet,NI=async function(){const e=this.getAttribute("code")||"";try{await navigator.clipboard.writeText(e),oe(this,Bd,!0),It(this,ga,ay).call(this),setTimeout(()=>{oe(this,Bd,!1),It(this,ga,ay).call(this)},2e3)}catch(r){console.error("Code copy failed:",r)}},ay=function(){const e=this.getAttribute("lang")||"Bash",r=this.getAttribute("code")||this.textContent.trim()||"",s=this.getAttribute("css-path");y(this,Fd).innerHTML=`
131
+ `,oe(this,em,this.shadowRoot.querySelector("#editor-container")),this.shadowRoot.querySelector("#font-size").onchange=s=>{const i=s.target.value;console.log(s.target,i),y(this,ei).chain().focus().setMark("textStyle",{fontSize:i}).run()}},OI=function(){oe(this,ei,new I$({element:y(this,em),editable:!this.readonly,extensions:[OL,NL,LL.configure({multicolor:!0}),jL.configure({types:["heading","paragraph"]}),BL.configure({inline:!0,allowBase64:!0}),IL.extend({addAttributes(){return{fontSize:{default:null,parseHTML:e=>e.style.fontSize,renderHTML:e=>e.fontSize?{style:`font-size: ${e.fontSize}`}:{}}}}})],content:y(this,tm)||this.originContents||"",onUpdate:({editor:e})=>{this.dispatchEvent(new CustomEvent("change",{detail:e.getHTML()}))},onSelectionUpdate:({editor:e})=>{this.readonly||It(this,xi,MI).call(this,e)}})),It(this,xi,II).call(this)},MI=function(e){this.shadowRoot.querySelectorAll("[data-cmd]").forEach(a=>{e.isActive(a.dataset.cmd)?a.classList.add("is-active"):a.classList.remove("is-active")}),this.shadowRoot.querySelectorAll("[data-align]").forEach(a=>{e.isActive({textAlign:a.dataset.align})?a.classList.add("is-active"):a.classList.remove("is-active")});const r=e.getAttributes("textStyle"),s=this.shadowRoot.querySelector("#font-size");s&&(s.value=r.fontSize||"14px");const i=this.shadowRoot.querySelector("#color-picker");i&&(i.value=r.color||"#000000")},II=function(){const e=y(this,ei);this.shadowRoot.querySelectorAll("[data-cmd]").forEach(r=>{r.onclick=()=>{const s=r.dataset.cmd;s==="bold"&&e.chain().focus().toggleBold().run(),s==="italic"&&e.chain().focus().toggleItalic().run(),s==="underline"&&e.chain().focus().toggleUnderline().run(),s==="strike"&&e.chain().focus().toggleStrike().run(),s==="highlight"&&e.chain().focus().toggleHighlight().run(),s==="bulletList"&&e.chain().focus().toggleBulletList().run(),s==="orderedList"&&e.chain().focus().toggleOrderedList().run(),s==="undo"&&e.chain().focus().undo().run(),s==="redo"&&e.chain().focus().redo().run()}}),this.shadowRoot.querySelector("#color-picker").oninput=r=>{e.chain().focus().setColor(r.target.value).run()},this.shadowRoot.querySelectorAll("[data-align]").forEach(r=>{r.onclick=()=>e.chain().focus().setTextAlign(r.dataset.align).run()}),this.shadowRoot.querySelector("#img-btn").onclick=()=>{const r=window.prompt("Image URL");r&&e.chain().focus().setImage({src:r}).run()}};const vo=typeof window<"u"&&window.nine?window.nine:br.nine,oA={alert:window.alert,confirm:window.confirm},lA=()=>{var e;console.log(vo,window.nine);const{nativeOverride:n}=((e=vo==null?void 0:vo.config)==null?void 0:e.ux)||{},t=Array.isArray(n)?n:n===!0?["alert","confirm"]:[];console.log(vo,t),window.alert=t.includes("alert")?r=>rl.alert(r):oA.alert,window.confirm=t.includes("confirm")?async r=>await rl.confirm(r):oA.confirm,vo.config.debug&&t.length>0&&console.log(`[nine-ux] Native API Overridden: ${t.join(", ")}`)};(()=>{lA(),vo==null||vo.subscribeConfig(n=>{(n==="ux"||n==="config")&&lA()})})();class zL extends HTMLElement{constructor(){super();Q(this,ga);Q(this,Bd,!1);Q(this,Fd);oe(this,Fd,this.attachShadow({mode:"open"}))}static get observedAttributes(){return["lang","code"]}connectedCallback(){!this.getAttribute("code")&&this.textContent.trim()&&this.setAttribute("code",this.textContent.trim()),It(this,ga,ay).call(this)}attributeChangedCallback(){It(this,ga,ay).call(this)}}Bd=new WeakMap,Fd=new WeakMap,ga=new WeakSet,NI=async function(){const e=this.getAttribute("code")||"";try{await navigator.clipboard.writeText(e),oe(this,Bd,!0),It(this,ga,ay).call(this),setTimeout(()=>{oe(this,Bd,!1),It(this,ga,ay).call(this)},2e3)}catch(r){console.error("Code copy failed:",r)}},ay=function(){const e=this.getAttribute("lang")||"Bash",r=this.getAttribute("code")||this.textContent.trim()||"",s=this.getAttribute("css-path");y(this,Fd).innerHTML=`
132
132
  <style>
133
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-ux@0.1.182/dist/css/nine-code-block.css";
133
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-ux@0.1.183/dist/css/nine-code-block.css";
134
134
  ${s?`@import "${s}";`:""}
135
135
  </style>
136
136
 
@@ -148,10 +148,10 @@ img.ProseMirror-separator {
148
148
  <pre><code>${It(this,ga,PI).call(this,r)}</code></pre>
149
149
  </div>
150
150
  </div>
151
- `,y(this,Fd).querySelector(".copy-btn").onclick=()=>It(this,ga,NI).call(this)},PI=function(e){const r=document.createElement("div");return r.textContent=e,r.innerHTML},typeof window<"u"&&(customElements.get("nine-code-block")||customElements.define("nine-code-block",zL));class HL extends vr.trace.constructor{constructor(){super(),this.init("nine-ux","blueviolet")}}const cA=new HL;class qL extends HTMLElement{constructor(){super();Q(this,zd);Q(this,Iv,()=>{cA.log(vr.nine);const e=this.getAttribute("css-path"),r=e?`@import "${e}";`:"";this.shadowRoot.innerHTML=`
151
+ `,y(this,Fd).querySelector(".copy-btn").onclick=()=>It(this,ga,NI).call(this)},PI=function(e){const r=document.createElement("div");return r.textContent=e,r.innerHTML},typeof window<"u"&&(customElements.get("nine-code-block")||customElements.define("nine-code-block",zL));class HL extends br.trace.constructor{constructor(){super(),this.init("nine-ux","blueviolet")}}const cA=new HL;class qL extends HTMLElement{constructor(){super();Q(this,zd);Q(this,Iv,()=>{const e=br.nine.cssPath?`@import "${br.nine.cssPath}/nineTab.css";`:"";cA.log(e),this.shadowRoot.innerHTML=`
152
152
  <style>
153
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-ux@0.1.182/dist/css/nineTab.css";
154
- ${r}
153
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-ux@0.1.183/dist/css/nineTab.css";
154
+ ${e}
155
155
  </style>
156
156
 
157
157
  <div class="tabs"></div>
@@ -165,7 +165,7 @@ img.ProseMirror-separator {
165
165
  * https://jquery.org/license
166
166
  *
167
167
  * Date: 2023-08-28T13:37Z
168
- */(function(n){(function(t,e){n.exports=t.document?e(t,!0):function(r){if(!r.document)throw new Error("jQuery requires a window with a document");return e(r)}})(typeof window<"u"?window:_r,function(t,e){var r=[],s=Object.getPrototypeOf,i=r.slice,a=r.flat?function(R){return r.flat.call(R)}:function(R){return r.concat.apply([],R)},o=r.push,l=r.indexOf,c={},u=c.toString,h=c.hasOwnProperty,d=h.toString,f=d.call(Object),p={},g=function(z){return typeof z=="function"&&typeof z.nodeType!="number"&&typeof z.item!="function"},m=function(z){return z!=null&&z===z.window},b=t.document,w={type:!0,src:!0,nonce:!0,noModule:!0};function _(R,z,K){K=K||b;var Z,te,re=K.createElement("script");if(re.text=R,z)for(Z in w)te=z[Z]||z.getAttribute&&z.getAttribute(Z),te&&re.setAttribute(Z,te);K.head.appendChild(re).parentNode.removeChild(re)}function T(R){return R==null?R+"":typeof R=="object"||typeof R=="function"?c[u.call(R)]||"object":typeof R}var M="3.7.1",j=/HTML$/i,A=function(R,z){return new A.fn.init(R,z)};A.fn=A.prototype={jquery:M,constructor:A,length:0,toArray:function(){return i.call(this)},get:function(R){return R==null?i.call(this):R<0?this[R+this.length]:this[R]},pushStack:function(R){var z=A.merge(this.constructor(),R);return z.prevObject=this,z},each:function(R){return A.each(this,R)},map:function(R){return this.pushStack(A.map(this,function(z,K){return R.call(z,K,z)}))},slice:function(){return this.pushStack(i.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(A.grep(this,function(R,z){return(z+1)%2}))},odd:function(){return this.pushStack(A.grep(this,function(R,z){return z%2}))},eq:function(R){var z=this.length,K=+R+(R<0?z:0);return this.pushStack(K>=0&&K<z?[this[K]]:[])},end:function(){return this.prevObject||this.constructor()},push:o,sort:r.sort,splice:r.splice},A.extend=A.fn.extend=function(){var R,z,K,Z,te,re,ae=arguments[0]||{},be=1,pe=arguments.length,Se=!1;for(typeof ae=="boolean"&&(Se=ae,ae=arguments[be]||{},be++),typeof ae!="object"&&!g(ae)&&(ae={}),be===pe&&(ae=this,be--);be<pe;be++)if((R=arguments[be])!=null)for(z in R)Z=R[z],!(z==="__proto__"||ae===Z)&&(Se&&Z&&(A.isPlainObject(Z)||(te=Array.isArray(Z)))?(K=ae[z],te&&!Array.isArray(K)?re=[]:!te&&!A.isPlainObject(K)?re={}:re=K,te=!1,ae[z]=A.extend(Se,re,Z)):Z!==void 0&&(ae[z]=Z));return ae},A.extend({expando:"jQuery"+(M+Math.random()).replace(/\D/g,""),isReady:!0,error:function(R){throw new Error(R)},noop:function(){},isPlainObject:function(R){var z,K;return!R||u.call(R)!=="[object Object]"?!1:(z=s(R),z?(K=h.call(z,"constructor")&&z.constructor,typeof K=="function"&&d.call(K)===f):!0)},isEmptyObject:function(R){var z;for(z in R)return!1;return!0},globalEval:function(R,z,K){_(R,{nonce:z&&z.nonce},K)},each:function(R,z){var K,Z=0;if(B(R))for(K=R.length;Z<K&&z.call(R[Z],Z,R[Z])!==!1;Z++);else for(Z in R)if(z.call(R[Z],Z,R[Z])===!1)break;return R},text:function(R){var z,K="",Z=0,te=R.nodeType;if(!te)for(;z=R[Z++];)K+=A.text(z);return te===1||te===11?R.textContent:te===9?R.documentElement.textContent:te===3||te===4?R.nodeValue:K},makeArray:function(R,z){var K=z||[];return R!=null&&(B(Object(R))?A.merge(K,typeof R=="string"?[R]:R):o.call(K,R)),K},inArray:function(R,z,K){return z==null?-1:l.call(z,R,K)},isXMLDoc:function(R){var z=R&&R.namespaceURI,K=R&&(R.ownerDocument||R).documentElement;return!j.test(z||K&&K.nodeName||"HTML")},merge:function(R,z){for(var K=+z.length,Z=0,te=R.length;Z<K;Z++)R[te++]=z[Z];return R.length=te,R},grep:function(R,z,K){for(var Z,te=[],re=0,ae=R.length,be=!K;re<ae;re++)Z=!z(R[re],re),Z!==be&&te.push(R[re]);return te},map:function(R,z,K){var Z,te,re=0,ae=[];if(B(R))for(Z=R.length;re<Z;re++)te=z(R[re],re,K),te!=null&&ae.push(te);else for(re in R)te=z(R[re],re,K),te!=null&&ae.push(te);return a(ae)},guid:1,support:p}),typeof Symbol=="function"&&(A.fn[Symbol.iterator]=r[Symbol.iterator]),A.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(R,z){c["[object "+z+"]"]=z.toLowerCase()});function B(R){var z=!!R&&"length"in R&&R.length,K=T(R);return g(R)||m(R)?!1:K==="array"||z===0||typeof z=="number"&&z>0&&z-1 in R}function H(R,z){return R.nodeName&&R.nodeName.toLowerCase()===z.toLowerCase()}var U=r.pop,X=r.sort,V=r.splice,O="[\\x20\\t\\r\\n\\f]",N=new RegExp("^"+O+"+|((?:^|[^\\\\])(?:\\\\.)*)"+O+"+$","g");A.contains=function(R,z){var K=z&&z.parentNode;return R===K||!!(K&&K.nodeType===1&&(R.contains?R.contains(K):R.compareDocumentPosition&&R.compareDocumentPosition(K)&16))};var C=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function x(R,z){return z?R==="\0"?"�":R.slice(0,-1)+"\\"+R.charCodeAt(R.length-1).toString(16)+" ":"\\"+R}A.escapeSelector=function(R){return(R+"").replace(C,x)};var S=b,k=o;(function(){var R,z,K,Z,te,re=k,ae,be,pe,Se,$e,Fe=A.expando,Me=0,We=0,er=_x(),Ir=_x(),fr=_x(),ms=_x(),Vn=function(fe,_e){return fe===_e&&(te=!0),0},lo="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",co="(?:\\\\[\\da-fA-F]{1,6}"+O+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",Tr="\\["+O+"*("+co+")(?:"+O+"*([*^$|!~]?=)"+O+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+co+"))|)"+O+"*\\]",zu=":("+co+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+Tr+")*)|.*)\\)|)",jr=new RegExp(O+"+","g"),_n=new RegExp("^"+O+"*,"+O+"*"),ty=new RegExp("^"+O+"*([>+~]|"+O+")"+O+"*"),A3=new RegExp(O+"|>"),uo=new RegExp(zu),ry=new RegExp("^"+co+"$"),ho={ID:new RegExp("^#("+co+")"),CLASS:new RegExp("^\\.("+co+")"),TAG:new RegExp("^("+co+"|[*])"),ATTR:new RegExp("^"+Tr),PSEUDO:new RegExp("^"+zu),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+O+"*(even|odd|(([+-]|)(\\d*)n|)"+O+"*(?:([+-]|)"+O+"*(\\d+)|))"+O+"*\\)|)","i"),bool:new RegExp("^(?:"+lo+")$","i"),needsContext:new RegExp("^"+O+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+O+"*((?:-\\d)?\\d*)"+O+"*\\)|)(?=[^-]|$)","i")},wc=/^(?:input|select|textarea|button)$/i,vc=/^h\d$/i,Qi=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,R3=/[+~]/,el=new RegExp("\\\\[\\da-fA-F]{1,6}"+O+"?|\\\\([^\\r\\n\\f])","g"),tl=function(fe,_e){var Re="0x"+fe.slice(1)-65536;return _e||(Re<0?String.fromCharCode(Re+65536):String.fromCharCode(Re>>10|55296,Re&1023|56320))},GQ=function(){_c()},KQ=Sx(function(fe){return fe.disabled===!0&&H(fe,"fieldset")},{dir:"parentNode",next:"legend"});function XQ(){try{return ae.activeElement}catch{}}try{re.apply(r=i.call(S.childNodes),S.childNodes),r[S.childNodes.length].nodeType}catch{re={apply:function(_e,Re){k.apply(_e,i.call(Re))},call:function(_e){k.apply(_e,i.call(arguments,1))}}}function Jr(fe,_e,Re,Ne){var Be,nt,ut,Ct,dt,Sr,Yt,tr=_e&&_e.ownerDocument,kr=_e?_e.nodeType:9;if(Re=Re||[],typeof fe!="string"||!fe||kr!==1&&kr!==9&&kr!==11)return Re;if(!Ne&&(_c(_e),_e=_e||ae,pe)){if(kr!==11&&(dt=Qi.exec(fe)))if(Be=dt[1]){if(kr===9)if(ut=_e.getElementById(Be)){if(ut.id===Be)return re.call(Re,ut),Re}else return Re;else if(tr&&(ut=tr.getElementById(Be))&&Jr.contains(_e,ut)&&ut.id===Be)return re.call(Re,ut),Re}else{if(dt[2])return re.apply(Re,_e.getElementsByTagName(fe)),Re;if((Be=dt[3])&&_e.getElementsByClassName)return re.apply(Re,_e.getElementsByClassName(Be)),Re}if(!ms[fe+" "]&&(!Se||!Se.test(fe))){if(Yt=fe,tr=_e,kr===1&&(A3.test(fe)||ty.test(fe))){for(tr=R3.test(fe)&&O3(_e.parentNode)||_e,(tr!=_e||!p.scope)&&((Ct=_e.getAttribute("id"))?Ct=A.escapeSelector(Ct):_e.setAttribute("id",Ct=Fe)),Sr=ny(fe),nt=Sr.length;nt--;)Sr[nt]=(Ct?"#"+Ct:":scope")+" "+xx(Sr[nt]);Yt=Sr.join(",")}try{return re.apply(Re,tr.querySelectorAll(Yt)),Re}catch{ms(fe,!0)}finally{Ct===Fe&&_e.removeAttribute("id")}}}return EI(fe.replace(N,"$1"),_e,Re,Ne)}function _x(){var fe=[];function _e(Re,Ne){return fe.push(Re+" ")>z.cacheLength&&delete _e[fe.shift()],_e[Re+" "]=Ne}return _e}function Ra(fe){return fe[Fe]=!0,fe}function ff(fe){var _e=ae.createElement("fieldset");try{return!!fe(_e)}catch{return!1}finally{_e.parentNode&&_e.parentNode.removeChild(_e),_e=null}}function YQ(fe){return function(_e){return H(_e,"input")&&_e.type===fe}}function JQ(fe){return function(_e){return(H(_e,"input")||H(_e,"button"))&&_e.type===fe}}function SI(fe){return function(_e){return"form"in _e?_e.parentNode&&_e.disabled===!1?"label"in _e?"label"in _e.parentNode?_e.parentNode.disabled===fe:_e.disabled===fe:_e.isDisabled===fe||_e.isDisabled!==!fe&&KQ(_e)===fe:_e.disabled===fe:"label"in _e?_e.disabled===fe:!1}}function Hu(fe){return Ra(function(_e){return _e=+_e,Ra(function(Re,Ne){for(var Be,nt=fe([],Re.length,_e),ut=nt.length;ut--;)Re[Be=nt[ut]]&&(Re[Be]=!(Ne[Be]=Re[Be]))})})}function O3(fe){return fe&&typeof fe.getElementsByTagName<"u"&&fe}function _c(fe){var _e,Re=fe?fe.ownerDocument||fe:S;return Re==ae||Re.nodeType!==9||!Re.documentElement||(ae=Re,be=ae.documentElement,pe=!A.isXMLDoc(ae),$e=be.matches||be.webkitMatchesSelector||be.msMatchesSelector,be.msMatchesSelector&&S!=ae&&(_e=ae.defaultView)&&_e.top!==_e&&_e.addEventListener("unload",GQ),p.getById=ff(function(Ne){return be.appendChild(Ne).id=A.expando,!ae.getElementsByName||!ae.getElementsByName(A.expando).length}),p.disconnectedMatch=ff(function(Ne){return $e.call(Ne,"*")}),p.scope=ff(function(){return ae.querySelectorAll(":scope")}),p.cssHas=ff(function(){try{return ae.querySelector(":has(*,:jqfake)"),!1}catch{return!0}}),p.getById?(z.filter.ID=function(Ne){var Be=Ne.replace(el,tl);return function(nt){return nt.getAttribute("id")===Be}},z.find.ID=function(Ne,Be){if(typeof Be.getElementById<"u"&&pe){var nt=Be.getElementById(Ne);return nt?[nt]:[]}}):(z.filter.ID=function(Ne){var Be=Ne.replace(el,tl);return function(nt){var ut=typeof nt.getAttributeNode<"u"&&nt.getAttributeNode("id");return ut&&ut.value===Be}},z.find.ID=function(Ne,Be){if(typeof Be.getElementById<"u"&&pe){var nt,ut,Ct,dt=Be.getElementById(Ne);if(dt){if(nt=dt.getAttributeNode("id"),nt&&nt.value===Ne)return[dt];for(Ct=Be.getElementsByName(Ne),ut=0;dt=Ct[ut++];)if(nt=dt.getAttributeNode("id"),nt&&nt.value===Ne)return[dt]}return[]}}),z.find.TAG=function(Ne,Be){return typeof Be.getElementsByTagName<"u"?Be.getElementsByTagName(Ne):Be.querySelectorAll(Ne)},z.find.CLASS=function(Ne,Be){if(typeof Be.getElementsByClassName<"u"&&pe)return Be.getElementsByClassName(Ne)},Se=[],ff(function(Ne){var Be;be.appendChild(Ne).innerHTML="<a id='"+Fe+"' href='' disabled='disabled'></a><select id='"+Fe+"-\r\\' disabled='disabled'><option selected=''></option></select>",Ne.querySelectorAll("[selected]").length||Se.push("\\["+O+"*(?:value|"+lo+")"),Ne.querySelectorAll("[id~="+Fe+"-]").length||Se.push("~="),Ne.querySelectorAll("a#"+Fe+"+*").length||Se.push(".#.+[+~]"),Ne.querySelectorAll(":checked").length||Se.push(":checked"),Be=ae.createElement("input"),Be.setAttribute("type","hidden"),Ne.appendChild(Be).setAttribute("name","D"),be.appendChild(Ne).disabled=!0,Ne.querySelectorAll(":disabled").length!==2&&Se.push(":enabled",":disabled"),Be=ae.createElement("input"),Be.setAttribute("name",""),Ne.appendChild(Be),Ne.querySelectorAll("[name='']").length||Se.push("\\["+O+"*name"+O+"*="+O+`*(?:''|"")`)}),p.cssHas||Se.push(":has"),Se=Se.length&&new RegExp(Se.join("|")),Vn=function(Ne,Be){if(Ne===Be)return te=!0,0;var nt=!Ne.compareDocumentPosition-!Be.compareDocumentPosition;return nt||(nt=(Ne.ownerDocument||Ne)==(Be.ownerDocument||Be)?Ne.compareDocumentPosition(Be):1,nt&1||!p.sortDetached&&Be.compareDocumentPosition(Ne)===nt?Ne===ae||Ne.ownerDocument==S&&Jr.contains(S,Ne)?-1:Be===ae||Be.ownerDocument==S&&Jr.contains(S,Be)?1:Z?l.call(Z,Ne)-l.call(Z,Be):0:nt&4?-1:1)}),ae}Jr.matches=function(fe,_e){return Jr(fe,null,null,_e)},Jr.matchesSelector=function(fe,_e){if(_c(fe),pe&&!ms[_e+" "]&&(!Se||!Se.test(_e)))try{var Re=$e.call(fe,_e);if(Re||p.disconnectedMatch||fe.document&&fe.document.nodeType!==11)return Re}catch{ms(_e,!0)}return Jr(_e,ae,null,[fe]).length>0},Jr.contains=function(fe,_e){return(fe.ownerDocument||fe)!=ae&&_c(fe),A.contains(fe,_e)},Jr.attr=function(fe,_e){(fe.ownerDocument||fe)!=ae&&_c(fe);var Re=z.attrHandle[_e.toLowerCase()],Ne=Re&&h.call(z.attrHandle,_e.toLowerCase())?Re(fe,_e,!pe):void 0;return Ne!==void 0?Ne:fe.getAttribute(_e)},Jr.error=function(fe){throw new Error("Syntax error, unrecognized expression: "+fe)},A.uniqueSort=function(fe){var _e,Re=[],Ne=0,Be=0;if(te=!p.sortStable,Z=!p.sortStable&&i.call(fe,0),X.call(fe,Vn),te){for(;_e=fe[Be++];)_e===fe[Be]&&(Ne=Re.push(Be));for(;Ne--;)V.call(fe,Re[Ne],1)}return Z=null,fe},A.fn.uniqueSort=function(){return this.pushStack(A.uniqueSort(i.apply(this)))},z=A.expr={cacheLength:50,createPseudo:Ra,match:ho,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(fe){return fe[1]=fe[1].replace(el,tl),fe[3]=(fe[3]||fe[4]||fe[5]||"").replace(el,tl),fe[2]==="~="&&(fe[3]=" "+fe[3]+" "),fe.slice(0,4)},CHILD:function(fe){return fe[1]=fe[1].toLowerCase(),fe[1].slice(0,3)==="nth"?(fe[3]||Jr.error(fe[0]),fe[4]=+(fe[4]?fe[5]+(fe[6]||1):2*(fe[3]==="even"||fe[3]==="odd")),fe[5]=+(fe[7]+fe[8]||fe[3]==="odd")):fe[3]&&Jr.error(fe[0]),fe},PSEUDO:function(fe){var _e,Re=!fe[6]&&fe[2];return ho.CHILD.test(fe[0])?null:(fe[3]?fe[2]=fe[4]||fe[5]||"":Re&&uo.test(Re)&&(_e=ny(Re,!0))&&(_e=Re.indexOf(")",Re.length-_e)-Re.length)&&(fe[0]=fe[0].slice(0,_e),fe[2]=Re.slice(0,_e)),fe.slice(0,3))}},filter:{TAG:function(fe){var _e=fe.replace(el,tl).toLowerCase();return fe==="*"?function(){return!0}:function(Re){return H(Re,_e)}},CLASS:function(fe){var _e=er[fe+" "];return _e||(_e=new RegExp("(^|"+O+")"+fe+"("+O+"|$)"))&&er(fe,function(Re){return _e.test(typeof Re.className=="string"&&Re.className||typeof Re.getAttribute<"u"&&Re.getAttribute("class")||"")})},ATTR:function(fe,_e,Re){return function(Ne){var Be=Jr.attr(Ne,fe);return Be==null?_e==="!=":_e?(Be+="",_e==="="?Be===Re:_e==="!="?Be!==Re:_e==="^="?Re&&Be.indexOf(Re)===0:_e==="*="?Re&&Be.indexOf(Re)>-1:_e==="$="?Re&&Be.slice(-Re.length)===Re:_e==="~="?(" "+Be.replace(jr," ")+" ").indexOf(Re)>-1:_e==="|="?Be===Re||Be.slice(0,Re.length+1)===Re+"-":!1):!0}},CHILD:function(fe,_e,Re,Ne,Be){var nt=fe.slice(0,3)!=="nth",ut=fe.slice(-4)!=="last",Ct=_e==="of-type";return Ne===1&&Be===0?function(dt){return!!dt.parentNode}:function(dt,Sr,Yt){var tr,kr,Ut,on,ci,As=nt!==ut?"nextSibling":"previousSibling",ea=dt.parentNode,fo=Ct&&dt.nodeName.toLowerCase(),pf=!Yt&&!Ct,Hs=!1;if(ea){if(nt){for(;As;){for(Ut=dt;Ut=Ut[As];)if(Ct?H(Ut,fo):Ut.nodeType===1)return!1;ci=As=fe==="only"&&!ci&&"nextSibling"}return!0}if(ci=[ut?ea.firstChild:ea.lastChild],ut&&pf){for(kr=ea[Fe]||(ea[Fe]={}),tr=kr[fe]||[],on=tr[0]===Me&&tr[1],Hs=on&&tr[2],Ut=on&&ea.childNodes[on];Ut=++on&&Ut&&Ut[As]||(Hs=on=0)||ci.pop();)if(Ut.nodeType===1&&++Hs&&Ut===dt){kr[fe]=[Me,on,Hs];break}}else if(pf&&(kr=dt[Fe]||(dt[Fe]={}),tr=kr[fe]||[],on=tr[0]===Me&&tr[1],Hs=on),Hs===!1)for(;(Ut=++on&&Ut&&Ut[As]||(Hs=on=0)||ci.pop())&&!((Ct?H(Ut,fo):Ut.nodeType===1)&&++Hs&&(pf&&(kr=Ut[Fe]||(Ut[Fe]={}),kr[fe]=[Me,Hs]),Ut===dt)););return Hs-=Be,Hs===Ne||Hs%Ne===0&&Hs/Ne>=0}}},PSEUDO:function(fe,_e){var Re,Ne=z.pseudos[fe]||z.setFilters[fe.toLowerCase()]||Jr.error("unsupported pseudo: "+fe);return Ne[Fe]?Ne(_e):Ne.length>1?(Re=[fe,fe,"",_e],z.setFilters.hasOwnProperty(fe.toLowerCase())?Ra(function(Be,nt){for(var ut,Ct=Ne(Be,_e),dt=Ct.length;dt--;)ut=l.call(Be,Ct[dt]),Be[ut]=!(nt[ut]=Ct[dt])}):function(Be){return Ne(Be,0,Re)}):Ne}},pseudos:{not:Ra(function(fe){var _e=[],Re=[],Ne=P3(fe.replace(N,"$1"));return Ne[Fe]?Ra(function(Be,nt,ut,Ct){for(var dt,Sr=Ne(Be,null,Ct,[]),Yt=Be.length;Yt--;)(dt=Sr[Yt])&&(Be[Yt]=!(nt[Yt]=dt))}):function(Be,nt,ut){return _e[0]=Be,Ne(_e,null,ut,Re),_e[0]=null,!Re.pop()}}),has:Ra(function(fe){return function(_e){return Jr(fe,_e).length>0}}),contains:Ra(function(fe){return fe=fe.replace(el,tl),function(_e){return(_e.textContent||A.text(_e)).indexOf(fe)>-1}}),lang:Ra(function(fe){return ry.test(fe||"")||Jr.error("unsupported lang: "+fe),fe=fe.replace(el,tl).toLowerCase(),function(_e){var Re;do if(Re=pe?_e.lang:_e.getAttribute("xml:lang")||_e.getAttribute("lang"))return Re=Re.toLowerCase(),Re===fe||Re.indexOf(fe+"-")===0;while((_e=_e.parentNode)&&_e.nodeType===1);return!1}}),target:function(fe){var _e=t.location&&t.location.hash;return _e&&_e.slice(1)===fe.id},root:function(fe){return fe===be},focus:function(fe){return fe===XQ()&&ae.hasFocus()&&!!(fe.type||fe.href||~fe.tabIndex)},enabled:SI(!1),disabled:SI(!0),checked:function(fe){return H(fe,"input")&&!!fe.checked||H(fe,"option")&&!!fe.selected},selected:function(fe){return fe.parentNode&&fe.parentNode.selectedIndex,fe.selected===!0},empty:function(fe){for(fe=fe.firstChild;fe;fe=fe.nextSibling)if(fe.nodeType<6)return!1;return!0},parent:function(fe){return!z.pseudos.empty(fe)},header:function(fe){return vc.test(fe.nodeName)},input:function(fe){return wc.test(fe.nodeName)},button:function(fe){return H(fe,"input")&&fe.type==="button"||H(fe,"button")},text:function(fe){var _e;return H(fe,"input")&&fe.type==="text"&&((_e=fe.getAttribute("type"))==null||_e.toLowerCase()==="text")},first:Hu(function(){return[0]}),last:Hu(function(fe,_e){return[_e-1]}),eq:Hu(function(fe,_e,Re){return[Re<0?Re+_e:Re]}),even:Hu(function(fe,_e){for(var Re=0;Re<_e;Re+=2)fe.push(Re);return fe}),odd:Hu(function(fe,_e){for(var Re=1;Re<_e;Re+=2)fe.push(Re);return fe}),lt:Hu(function(fe,_e,Re){var Ne;for(Re<0?Ne=Re+_e:Re>_e?Ne=_e:Ne=Re;--Ne>=0;)fe.push(Ne);return fe}),gt:Hu(function(fe,_e,Re){for(var Ne=Re<0?Re+_e:Re;++Ne<_e;)fe.push(Ne);return fe})}},z.pseudos.nth=z.pseudos.eq;for(R in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})z.pseudos[R]=YQ(R);for(R in{submit:!0,reset:!0})z.pseudos[R]=JQ(R);function kI(){}kI.prototype=z.filters=z.pseudos,z.setFilters=new kI;function ny(fe,_e){var Re,Ne,Be,nt,ut,Ct,dt,Sr=Ir[fe+" "];if(Sr)return _e?0:Sr.slice(0);for(ut=fe,Ct=[],dt=z.preFilter;ut;){(!Re||(Ne=_n.exec(ut)))&&(Ne&&(ut=ut.slice(Ne[0].length)||ut),Ct.push(Be=[])),Re=!1,(Ne=ty.exec(ut))&&(Re=Ne.shift(),Be.push({value:Re,type:Ne[0].replace(N," ")}),ut=ut.slice(Re.length));for(nt in z.filter)(Ne=ho[nt].exec(ut))&&(!dt[nt]||(Ne=dt[nt](Ne)))&&(Re=Ne.shift(),Be.push({value:Re,type:nt,matches:Ne}),ut=ut.slice(Re.length));if(!Re)break}return _e?ut.length:ut?Jr.error(fe):Ir(fe,Ct).slice(0)}function xx(fe){for(var _e=0,Re=fe.length,Ne="";_e<Re;_e++)Ne+=fe[_e].value;return Ne}function Sx(fe,_e,Re){var Ne=_e.dir,Be=_e.next,nt=Be||Ne,ut=Re&&nt==="parentNode",Ct=We++;return _e.first?function(dt,Sr,Yt){for(;dt=dt[Ne];)if(dt.nodeType===1||ut)return fe(dt,Sr,Yt);return!1}:function(dt,Sr,Yt){var tr,kr,Ut=[Me,Ct];if(Yt){for(;dt=dt[Ne];)if((dt.nodeType===1||ut)&&fe(dt,Sr,Yt))return!0}else for(;dt=dt[Ne];)if(dt.nodeType===1||ut)if(kr=dt[Fe]||(dt[Fe]={}),Be&&H(dt,Be))dt=dt[Ne]||dt;else{if((tr=kr[nt])&&tr[0]===Me&&tr[1]===Ct)return Ut[2]=tr[2];if(kr[nt]=Ut,Ut[2]=fe(dt,Sr,Yt))return!0}return!1}}function M3(fe){return fe.length>1?function(_e,Re,Ne){for(var Be=fe.length;Be--;)if(!fe[Be](_e,Re,Ne))return!1;return!0}:fe[0]}function ZQ(fe,_e,Re){for(var Ne=0,Be=_e.length;Ne<Be;Ne++)Jr(fe,_e[Ne],Re);return Re}function kx(fe,_e,Re,Ne,Be){for(var nt,ut=[],Ct=0,dt=fe.length,Sr=_e!=null;Ct<dt;Ct++)(nt=fe[Ct])&&(!Re||Re(nt,Ne,Be))&&(ut.push(nt),Sr&&_e.push(Ct));return ut}function I3(fe,_e,Re,Ne,Be,nt){return Ne&&!Ne[Fe]&&(Ne=I3(Ne)),Be&&!Be[Fe]&&(Be=I3(Be,nt)),Ra(function(ut,Ct,dt,Sr){var Yt,tr,kr,Ut,on=[],ci=[],As=Ct.length,ea=ut||ZQ(_e||"*",dt.nodeType?[dt]:dt,[]),fo=fe&&(ut||!_e)?kx(ea,on,fe,dt,Sr):ea;if(Re?(Ut=Be||(ut?fe:As||Ne)?[]:Ct,Re(fo,Ut,dt,Sr)):Ut=fo,Ne)for(Yt=kx(Ut,ci),Ne(Yt,[],dt,Sr),tr=Yt.length;tr--;)(kr=Yt[tr])&&(Ut[ci[tr]]=!(fo[ci[tr]]=kr));if(ut){if(Be||fe){if(Be){for(Yt=[],tr=Ut.length;tr--;)(kr=Ut[tr])&&Yt.push(fo[tr]=kr);Be(null,Ut=[],Yt,Sr)}for(tr=Ut.length;tr--;)(kr=Ut[tr])&&(Yt=Be?l.call(ut,kr):on[tr])>-1&&(ut[Yt]=!(Ct[Yt]=kr))}}else Ut=kx(Ut===Ct?Ut.splice(As,Ut.length):Ut),Be?Be(null,Ct,Ut,Sr):re.apply(Ct,Ut)})}function N3(fe){for(var _e,Re,Ne,Be=fe.length,nt=z.relative[fe[0].type],ut=nt||z.relative[" "],Ct=nt?1:0,dt=Sx(function(tr){return tr===_e},ut,!0),Sr=Sx(function(tr){return l.call(_e,tr)>-1},ut,!0),Yt=[function(tr,kr,Ut){var on=!nt&&(Ut||kr!=K)||((_e=kr).nodeType?dt(tr,kr,Ut):Sr(tr,kr,Ut));return _e=null,on}];Ct<Be;Ct++)if(Re=z.relative[fe[Ct].type])Yt=[Sx(M3(Yt),Re)];else{if(Re=z.filter[fe[Ct].type].apply(null,fe[Ct].matches),Re[Fe]){for(Ne=++Ct;Ne<Be&&!z.relative[fe[Ne].type];Ne++);return I3(Ct>1&&M3(Yt),Ct>1&&xx(fe.slice(0,Ct-1).concat({value:fe[Ct-2].type===" "?"*":""})).replace(N,"$1"),Re,Ct<Ne&&N3(fe.slice(Ct,Ne)),Ne<Be&&N3(fe=fe.slice(Ne)),Ne<Be&&xx(fe))}Yt.push(Re)}return M3(Yt)}function QQ(fe,_e){var Re=_e.length>0,Ne=fe.length>0,Be=function(nt,ut,Ct,dt,Sr){var Yt,tr,kr,Ut=0,on="0",ci=nt&&[],As=[],ea=K,fo=nt||Ne&&z.find.TAG("*",Sr),pf=Me+=ea==null?1:Math.random()||.1,Hs=fo.length;for(Sr&&(K=ut==ae||ut||Sr);on!==Hs&&(Yt=fo[on])!=null;on++){if(Ne&&Yt){for(tr=0,!ut&&Yt.ownerDocument!=ae&&(_c(Yt),Ct=!pe);kr=fe[tr++];)if(kr(Yt,ut||ae,Ct)){re.call(dt,Yt);break}Sr&&(Me=pf)}Re&&((Yt=!kr&&Yt)&&Ut--,nt&&ci.push(Yt))}if(Ut+=on,Re&&on!==Ut){for(tr=0;kr=_e[tr++];)kr(ci,As,ut,Ct);if(nt){if(Ut>0)for(;on--;)ci[on]||As[on]||(As[on]=U.call(dt));As=kx(As)}re.apply(dt,As),Sr&&!nt&&As.length>0&&Ut+_e.length>1&&A.uniqueSort(dt)}return Sr&&(Me=pf,K=ea),ci};return Re?Ra(Be):Be}function P3(fe,_e){var Re,Ne=[],Be=[],nt=fr[fe+" "];if(!nt){for(_e||(_e=ny(fe)),Re=_e.length;Re--;)nt=N3(_e[Re]),nt[Fe]?Ne.push(nt):Be.push(nt);nt=fr(fe,QQ(Be,Ne)),nt.selector=fe}return nt}function EI(fe,_e,Re,Ne){var Be,nt,ut,Ct,dt,Sr=typeof fe=="function"&&fe,Yt=!Ne&&ny(fe=Sr.selector||fe);if(Re=Re||[],Yt.length===1){if(nt=Yt[0]=Yt[0].slice(0),nt.length>2&&(ut=nt[0]).type==="ID"&&_e.nodeType===9&&pe&&z.relative[nt[1].type]){if(_e=(z.find.ID(ut.matches[0].replace(el,tl),_e)||[])[0],_e)Sr&&(_e=_e.parentNode);else return Re;fe=fe.slice(nt.shift().value.length)}for(Be=ho.needsContext.test(fe)?0:nt.length;Be--&&(ut=nt[Be],!z.relative[Ct=ut.type]);)if((dt=z.find[Ct])&&(Ne=dt(ut.matches[0].replace(el,tl),R3.test(nt[0].type)&&O3(_e.parentNode)||_e))){if(nt.splice(Be,1),fe=Ne.length&&xx(nt),!fe)return re.apply(Re,Ne),Re;break}}return(Sr||P3(fe,Yt))(Ne,_e,!pe,Re,!_e||R3.test(fe)&&O3(_e.parentNode)||_e),Re}p.sortStable=Fe.split("").sort(Vn).join("")===Fe,_c(),p.sortDetached=ff(function(fe){return fe.compareDocumentPosition(ae.createElement("fieldset"))&1}),A.find=Jr,A.expr[":"]=A.expr.pseudos,A.unique=A.uniqueSort,Jr.compile=P3,Jr.select=EI,Jr.setDocument=_c,Jr.tokenize=ny,Jr.escape=A.escapeSelector,Jr.getText=A.text,Jr.isXML=A.isXMLDoc,Jr.selectors=A.expr,Jr.support=A.support,Jr.uniqueSort=A.uniqueSort})();var E=function(R,z,K){for(var Z=[],te=K!==void 0;(R=R[z])&&R.nodeType!==9;)if(R.nodeType===1){if(te&&A(R).is(K))break;Z.push(R)}return Z},I=function(R,z){for(var K=[];R;R=R.nextSibling)R.nodeType===1&&R!==z&&K.push(R);return K},D=A.expr.match.needsContext,F=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function Y(R,z,K){return g(z)?A.grep(R,function(Z,te){return!!z.call(Z,te,Z)!==K}):z.nodeType?A.grep(R,function(Z){return Z===z!==K}):typeof z!="string"?A.grep(R,function(Z){return l.call(z,Z)>-1!==K}):A.filter(z,R,K)}A.filter=function(R,z,K){var Z=z[0];return K&&(R=":not("+R+")"),z.length===1&&Z.nodeType===1?A.find.matchesSelector(Z,R)?[Z]:[]:A.find.matches(R,A.grep(z,function(te){return te.nodeType===1}))},A.fn.extend({find:function(R){var z,K,Z=this.length,te=this;if(typeof R!="string")return this.pushStack(A(R).filter(function(){for(z=0;z<Z;z++)if(A.contains(te[z],this))return!0}));for(K=this.pushStack([]),z=0;z<Z;z++)A.find(R,te[z],K);return Z>1?A.uniqueSort(K):K},filter:function(R){return this.pushStack(Y(this,R||[],!1))},not:function(R){return this.pushStack(Y(this,R||[],!0))},is:function(R){return!!Y(this,typeof R=="string"&&D.test(R)?A(R):R||[],!1).length}});var J,se=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,q=A.fn.init=function(R,z,K){var Z,te;if(!R)return this;if(K=K||J,typeof R=="string")if(R[0]==="<"&&R[R.length-1]===">"&&R.length>=3?Z=[null,R,null]:Z=se.exec(R),Z&&(Z[1]||!z))if(Z[1]){if(z=z instanceof A?z[0]:z,A.merge(this,A.parseHTML(Z[1],z&&z.nodeType?z.ownerDocument||z:b,!0)),F.test(Z[1])&&A.isPlainObject(z))for(Z in z)g(this[Z])?this[Z](z[Z]):this.attr(Z,z[Z]);return this}else return te=b.getElementById(Z[2]),te&&(this[0]=te,this.length=1),this;else return!z||z.jquery?(z||K).find(R):this.constructor(z).find(R);else{if(R.nodeType)return this[0]=R,this.length=1,this;if(g(R))return K.ready!==void 0?K.ready(R):R(A)}return A.makeArray(R,this)};q.prototype=A.fn,J=A(b);var ee=/^(?:parents|prev(?:Until|All))/,L={children:!0,contents:!0,next:!0,prev:!0};A.fn.extend({has:function(R){var z=A(R,this),K=z.length;return this.filter(function(){for(var Z=0;Z<K;Z++)if(A.contains(this,z[Z]))return!0})},closest:function(R,z){var K,Z=0,te=this.length,re=[],ae=typeof R!="string"&&A(R);if(!D.test(R)){for(;Z<te;Z++)for(K=this[Z];K&&K!==z;K=K.parentNode)if(K.nodeType<11&&(ae?ae.index(K)>-1:K.nodeType===1&&A.find.matchesSelector(K,R))){re.push(K);break}}return this.pushStack(re.length>1?A.uniqueSort(re):re)},index:function(R){return R?typeof R=="string"?l.call(A(R),this[0]):l.call(this,R.jquery?R[0]:R):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(R,z){return this.pushStack(A.uniqueSort(A.merge(this.get(),A(R,z))))},addBack:function(R){return this.add(R==null?this.prevObject:this.prevObject.filter(R))}});function P(R,z){for(;(R=R[z])&&R.nodeType!==1;);return R}A.each({parent:function(R){var z=R.parentNode;return z&&z.nodeType!==11?z:null},parents:function(R){return E(R,"parentNode")},parentsUntil:function(R,z,K){return E(R,"parentNode",K)},next:function(R){return P(R,"nextSibling")},prev:function(R){return P(R,"previousSibling")},nextAll:function(R){return E(R,"nextSibling")},prevAll:function(R){return E(R,"previousSibling")},nextUntil:function(R,z,K){return E(R,"nextSibling",K)},prevUntil:function(R,z,K){return E(R,"previousSibling",K)},siblings:function(R){return I((R.parentNode||{}).firstChild,R)},children:function(R){return I(R.firstChild)},contents:function(R){return R.contentDocument!=null&&s(R.contentDocument)?R.contentDocument:(H(R,"template")&&(R=R.content||R),A.merge([],R.childNodes))}},function(R,z){A.fn[R]=function(K,Z){var te=A.map(this,z,K);return R.slice(-5)!=="Until"&&(Z=K),Z&&typeof Z=="string"&&(te=A.filter(Z,te)),this.length>1&&(L[R]||A.uniqueSort(te),ee.test(R)&&te.reverse()),this.pushStack(te)}});var G=/[^\x20\t\r\n\f]+/g;function ne(R){var z={};return A.each(R.match(G)||[],function(K,Z){z[Z]=!0}),z}A.Callbacks=function(R){R=typeof R=="string"?ne(R):A.extend({},R);var z,K,Z,te,re=[],ae=[],be=-1,pe=function(){for(te=te||R.once,Z=z=!0;ae.length;be=-1)for(K=ae.shift();++be<re.length;)re[be].apply(K[0],K[1])===!1&&R.stopOnFalse&&(be=re.length,K=!1);R.memory||(K=!1),z=!1,te&&(K?re=[]:re="")},Se={add:function(){return re&&(K&&!z&&(be=re.length-1,ae.push(K)),function $e(Fe){A.each(Fe,function(Me,We){g(We)?(!R.unique||!Se.has(We))&&re.push(We):We&&We.length&&T(We)!=="string"&&$e(We)})}(arguments),K&&!z&&pe()),this},remove:function(){return A.each(arguments,function($e,Fe){for(var Me;(Me=A.inArray(Fe,re,Me))>-1;)re.splice(Me,1),Me<=be&&be--}),this},has:function($e){return $e?A.inArray($e,re)>-1:re.length>0},empty:function(){return re&&(re=[]),this},disable:function(){return te=ae=[],re=K="",this},disabled:function(){return!re},lock:function(){return te=ae=[],!K&&!z&&(re=K=""),this},locked:function(){return!!te},fireWith:function($e,Fe){return te||(Fe=Fe||[],Fe=[$e,Fe.slice?Fe.slice():Fe],ae.push(Fe),z||pe()),this},fire:function(){return Se.fireWith(this,arguments),this},fired:function(){return!!Z}};return Se};function ce(R){return R}function ie(R){throw R}function ue(R,z,K,Z){var te;try{R&&g(te=R.promise)?te.call(R).done(z).fail(K):R&&g(te=R.then)?te.call(R,z,K):z.apply(void 0,[R].slice(Z))}catch(re){K.apply(void 0,[re])}}A.extend({Deferred:function(R){var z=[["notify","progress",A.Callbacks("memory"),A.Callbacks("memory"),2],["resolve","done",A.Callbacks("once memory"),A.Callbacks("once memory"),0,"resolved"],["reject","fail",A.Callbacks("once memory"),A.Callbacks("once memory"),1,"rejected"]],K="pending",Z={state:function(){return K},always:function(){return te.done(arguments).fail(arguments),this},catch:function(re){return Z.then(null,re)},pipe:function(){var re=arguments;return A.Deferred(function(ae){A.each(z,function(be,pe){var Se=g(re[pe[4]])&&re[pe[4]];te[pe[1]](function(){var $e=Se&&Se.apply(this,arguments);$e&&g($e.promise)?$e.promise().progress(ae.notify).done(ae.resolve).fail(ae.reject):ae[pe[0]+"With"](this,Se?[$e]:arguments)})}),re=null}).promise()},then:function(re,ae,be){var pe=0;function Se($e,Fe,Me,We){return function(){var er=this,Ir=arguments,fr=function(){var Vn,lo;if(!($e<pe)){if(Vn=Me.apply(er,Ir),Vn===Fe.promise())throw new TypeError("Thenable self-resolution");lo=Vn&&(typeof Vn=="object"||typeof Vn=="function")&&Vn.then,g(lo)?We?lo.call(Vn,Se(pe,Fe,ce,We),Se(pe,Fe,ie,We)):(pe++,lo.call(Vn,Se(pe,Fe,ce,We),Se(pe,Fe,ie,We),Se(pe,Fe,ce,Fe.notifyWith))):(Me!==ce&&(er=void 0,Ir=[Vn]),(We||Fe.resolveWith)(er,Ir))}},ms=We?fr:function(){try{fr()}catch(Vn){A.Deferred.exceptionHook&&A.Deferred.exceptionHook(Vn,ms.error),$e+1>=pe&&(Me!==ie&&(er=void 0,Ir=[Vn]),Fe.rejectWith(er,Ir))}};$e?ms():(A.Deferred.getErrorHook?ms.error=A.Deferred.getErrorHook():A.Deferred.getStackHook&&(ms.error=A.Deferred.getStackHook()),t.setTimeout(ms))}}return A.Deferred(function($e){z[0][3].add(Se(0,$e,g(be)?be:ce,$e.notifyWith)),z[1][3].add(Se(0,$e,g(re)?re:ce)),z[2][3].add(Se(0,$e,g(ae)?ae:ie))}).promise()},promise:function(re){return re!=null?A.extend(re,Z):Z}},te={};return A.each(z,function(re,ae){var be=ae[2],pe=ae[5];Z[ae[1]]=be.add,pe&&be.add(function(){K=pe},z[3-re][2].disable,z[3-re][3].disable,z[0][2].lock,z[0][3].lock),be.add(ae[3].fire),te[ae[0]]=function(){return te[ae[0]+"With"](this===te?void 0:this,arguments),this},te[ae[0]+"With"]=be.fireWith}),Z.promise(te),R&&R.call(te,te),te},when:function(R){var z=arguments.length,K=z,Z=Array(K),te=i.call(arguments),re=A.Deferred(),ae=function(be){return function(pe){Z[be]=this,te[be]=arguments.length>1?i.call(arguments):pe,--z||re.resolveWith(Z,te)}};if(z<=1&&(ue(R,re.done(ae(K)).resolve,re.reject,!z),re.state()==="pending"||g(te[K]&&te[K].then)))return re.then();for(;K--;)ue(te[K],ae(K),re.reject);return re.promise()}});var ve=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;A.Deferred.exceptionHook=function(R,z){t.console&&t.console.warn&&R&&ve.test(R.name)&&t.console.warn("jQuery.Deferred exception: "+R.message,R.stack,z)},A.readyException=function(R){t.setTimeout(function(){throw R})};var we=A.Deferred();A.fn.ready=function(R){return we.then(R).catch(function(z){A.readyException(z)}),this},A.extend({isReady:!1,readyWait:1,ready:function(R){(R===!0?--A.readyWait:A.isReady)||(A.isReady=!0,!(R!==!0&&--A.readyWait>0)&&we.resolveWith(b,[A]))}}),A.ready.then=we.then;function le(){b.removeEventListener("DOMContentLoaded",le),t.removeEventListener("load",le),A.ready()}b.readyState==="complete"||b.readyState!=="loading"&&!b.documentElement.doScroll?t.setTimeout(A.ready):(b.addEventListener("DOMContentLoaded",le),t.addEventListener("load",le));var me=function(R,z,K,Z,te,re,ae){var be=0,pe=R.length,Se=K==null;if(T(K)==="object"){te=!0;for(be in K)me(R,z,be,K[be],!0,re,ae)}else if(Z!==void 0&&(te=!0,g(Z)||(ae=!0),Se&&(ae?(z.call(R,Z),z=null):(Se=z,z=function($e,Fe,Me){return Se.call(A($e),Me)})),z))for(;be<pe;be++)z(R[be],K,ae?Z:Z.call(R[be],be,z(R[be],K)));return te?R:Se?z.call(R):pe?z(R[0],K):re},ge=/^-ms-/,ke=/-([a-z])/g;function xe(R,z){return z.toUpperCase()}function Ee(R){return R.replace(ge,"ms-").replace(ke,xe)}var Ie=function(R){return R.nodeType===1||R.nodeType===9||!+R.nodeType};function Pe(){this.expando=A.expando+Pe.uid++}Pe.uid=1,Pe.prototype={cache:function(R){var z=R[this.expando];return z||(z={},Ie(R)&&(R.nodeType?R[this.expando]=z:Object.defineProperty(R,this.expando,{value:z,configurable:!0}))),z},set:function(R,z,K){var Z,te=this.cache(R);if(typeof z=="string")te[Ee(z)]=K;else for(Z in z)te[Ee(Z)]=z[Z];return te},get:function(R,z){return z===void 0?this.cache(R):R[this.expando]&&R[this.expando][Ee(z)]},access:function(R,z,K){return z===void 0||z&&typeof z=="string"&&K===void 0?this.get(R,z):(this.set(R,z,K),K!==void 0?K:z)},remove:function(R,z){var K,Z=R[this.expando];if(Z!==void 0){if(z!==void 0)for(Array.isArray(z)?z=z.map(Ee):(z=Ee(z),z=z in Z?[z]:z.match(G)||[]),K=z.length;K--;)delete Z[z[K]];(z===void 0||A.isEmptyObject(Z))&&(R.nodeType?R[this.expando]=void 0:delete R[this.expando])}},hasData:function(R){var z=R[this.expando];return z!==void 0&&!A.isEmptyObject(z)}};var Ae=new Pe,Ge=new Pe,st=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,et=/[A-Z]/g;function Rt(R){return R==="true"?!0:R==="false"?!1:R==="null"?null:R===+R+""?+R:st.test(R)?JSON.parse(R):R}function _t(R,z,K){var Z;if(K===void 0&&R.nodeType===1)if(Z="data-"+z.replace(et,"-$&").toLowerCase(),K=R.getAttribute(Z),typeof K=="string"){try{K=Rt(K)}catch{}Ge.set(R,z,K)}else K=void 0;return K}A.extend({hasData:function(R){return Ge.hasData(R)||Ae.hasData(R)},data:function(R,z,K){return Ge.access(R,z,K)},removeData:function(R,z){Ge.remove(R,z)},_data:function(R,z,K){return Ae.access(R,z,K)},_removeData:function(R,z){Ae.remove(R,z)}}),A.fn.extend({data:function(R,z){var K,Z,te,re=this[0],ae=re&&re.attributes;if(R===void 0){if(this.length&&(te=Ge.get(re),re.nodeType===1&&!Ae.get(re,"hasDataAttrs"))){for(K=ae.length;K--;)ae[K]&&(Z=ae[K].name,Z.indexOf("data-")===0&&(Z=Ee(Z.slice(5)),_t(re,Z,te[Z])));Ae.set(re,"hasDataAttrs",!0)}return te}return typeof R=="object"?this.each(function(){Ge.set(this,R)}):me(this,function(be){var pe;if(re&&be===void 0)return pe=Ge.get(re,R),pe!==void 0||(pe=_t(re,R),pe!==void 0)?pe:void 0;this.each(function(){Ge.set(this,R,be)})},null,z,arguments.length>1,null,!0)},removeData:function(R){return this.each(function(){Ge.remove(this,R)})}}),A.extend({queue:function(R,z,K){var Z;if(R)return z=(z||"fx")+"queue",Z=Ae.get(R,z),K&&(!Z||Array.isArray(K)?Z=Ae.access(R,z,A.makeArray(K)):Z.push(K)),Z||[]},dequeue:function(R,z){z=z||"fx";var K=A.queue(R,z),Z=K.length,te=K.shift(),re=A._queueHooks(R,z),ae=function(){A.dequeue(R,z)};te==="inprogress"&&(te=K.shift(),Z--),te&&(z==="fx"&&K.unshift("inprogress"),delete re.stop,te.call(R,ae,re)),!Z&&re&&re.empty.fire()},_queueHooks:function(R,z){var K=z+"queueHooks";return Ae.get(R,K)||Ae.access(R,K,{empty:A.Callbacks("once memory").add(function(){Ae.remove(R,[z+"queue",K])})})}}),A.fn.extend({queue:function(R,z){var K=2;return typeof R!="string"&&(z=R,R="fx",K--),arguments.length<K?A.queue(this[0],R):z===void 0?this:this.each(function(){var Z=A.queue(this,R,z);A._queueHooks(this,R),R==="fx"&&Z[0]!=="inprogress"&&A.dequeue(this,R)})},dequeue:function(R){return this.each(function(){A.dequeue(this,R)})},clearQueue:function(R){return this.queue(R||"fx",[])},promise:function(R,z){var K,Z=1,te=A.Deferred(),re=this,ae=this.length,be=function(){--Z||te.resolveWith(re,[re])};for(typeof R!="string"&&(z=R,R=void 0),R=R||"fx";ae--;)K=Ae.get(re[ae],R+"queueHooks"),K&&K.empty&&(Z++,K.empty.add(be));return be(),te.promise(z)}});var xt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,yt=new RegExp("^(?:([+-])=|)("+xt+")([a-z%]*)$","i"),Qe=["Top","Right","Bottom","Left"],Ve=b.documentElement,it=function(R){return A.contains(R.ownerDocument,R)},wt={composed:!0};Ve.getRootNode&&(it=function(R){return A.contains(R.ownerDocument,R)||R.getRootNode(wt)===R.ownerDocument});var ct=function(R,z){return R=z||R,R.style.display==="none"||R.style.display===""&&it(R)&&A.css(R,"display")==="none"};function dr(R,z,K,Z){var te,re,ae=20,be=Z?function(){return Z.cur()}:function(){return A.css(R,z,"")},pe=be(),Se=K&&K[3]||(A.cssNumber[z]?"":"px"),$e=R.nodeType&&(A.cssNumber[z]||Se!=="px"&&+pe)&&yt.exec(A.css(R,z));if($e&&$e[3]!==Se){for(pe=pe/2,Se=Se||$e[3],$e=+pe||1;ae--;)A.style(R,z,$e+Se),(1-re)*(1-(re=be()/pe||.5))<=0&&(ae=0),$e=$e/re;$e=$e*2,A.style(R,z,$e+Se),K=K||[]}return K&&($e=+$e||+pe||0,te=K[1]?$e+(K[1]+1)*K[2]:+K[2],Z&&(Z.unit=Se,Z.start=$e,Z.end=te)),te}var Or={};function Pt(R){var z,K=R.ownerDocument,Z=R.nodeName,te=Or[Z];return te||(z=K.body.appendChild(K.createElement(Z)),te=A.css(z,"display"),z.parentNode.removeChild(z),te==="none"&&(te="block"),Or[Z]=te,te)}function hr(R,z){for(var K,Z,te=[],re=0,ae=R.length;re<ae;re++)Z=R[re],Z.style&&(K=Z.style.display,z?(K==="none"&&(te[re]=Ae.get(Z,"display")||null,te[re]||(Z.style.display="")),Z.style.display===""&&ct(Z)&&(te[re]=Pt(Z))):K!=="none"&&(te[re]="none",Ae.set(Z,"display",K)));for(re=0;re<ae;re++)te[re]!=null&&(R[re].style.display=te[re]);return R}A.fn.extend({show:function(){return hr(this,!0)},hide:function(){return hr(this)},toggle:function(R){return typeof R=="boolean"?R?this.show():this.hide():this.each(function(){ct(this)?A(this).show():A(this).hide()})}});var sr=/^(?:checkbox|radio)$/i,Wt=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Hr=/^$|^module$|\/(?:java|ecma)script/i;(function(){var R=b.createDocumentFragment(),z=R.appendChild(b.createElement("div")),K=b.createElement("input");K.setAttribute("type","radio"),K.setAttribute("checked","checked"),K.setAttribute("name","t"),z.appendChild(K),p.checkClone=z.cloneNode(!0).cloneNode(!0).lastChild.checked,z.innerHTML="<textarea>x</textarea>",p.noCloneChecked=!!z.cloneNode(!0).lastChild.defaultValue,z.innerHTML="<option></option>",p.option=!!z.lastChild})();var Qt={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};Qt.tbody=Qt.tfoot=Qt.colgroup=Qt.caption=Qt.thead,Qt.th=Qt.td,p.option||(Qt.optgroup=Qt.option=[1,"<select multiple='multiple'>","</select>"]);function pt(R,z){var K;return typeof R.getElementsByTagName<"u"?K=R.getElementsByTagName(z||"*"):typeof R.querySelectorAll<"u"?K=R.querySelectorAll(z||"*"):K=[],z===void 0||z&&H(R,z)?A.merge([R],K):K}function gr(R,z){for(var K=0,Z=R.length;K<Z;K++)Ae.set(R[K],"globalEval",!z||Ae.get(z[K],"globalEval"))}var qr=/<|&#?\w+;/;function Ht(R,z,K,Z,te){for(var re,ae,be,pe,Se,$e,Fe=z.createDocumentFragment(),Me=[],We=0,er=R.length;We<er;We++)if(re=R[We],re||re===0)if(T(re)==="object")A.merge(Me,re.nodeType?[re]:re);else if(!qr.test(re))Me.push(z.createTextNode(re));else{for(ae=ae||Fe.appendChild(z.createElement("div")),be=(Wt.exec(re)||["",""])[1].toLowerCase(),pe=Qt[be]||Qt._default,ae.innerHTML=pe[1]+A.htmlPrefilter(re)+pe[2],$e=pe[0];$e--;)ae=ae.lastChild;A.merge(Me,ae.childNodes),ae=Fe.firstChild,ae.textContent=""}for(Fe.textContent="",We=0;re=Me[We++];){if(Z&&A.inArray(re,Z)>-1){te&&te.push(re);continue}if(Se=it(re),ae=pt(Fe.appendChild(re),"script"),Se&&gr(ae),K)for($e=0;re=ae[$e++];)Hr.test(re.type||"")&&K.push(re)}return Fe}var Rr=/^([^.]*)(?:\.(.+)|)/;function Er(){return!0}function qt(){return!1}function ye(R,z,K,Z,te,re){var ae,be;if(typeof z=="object"){typeof K!="string"&&(Z=Z||K,K=void 0);for(be in z)ye(R,be,K,Z,z[be],re);return R}if(Z==null&&te==null?(te=K,Z=K=void 0):te==null&&(typeof K=="string"?(te=Z,Z=void 0):(te=Z,Z=K,K=void 0)),te===!1)te=qt;else if(!te)return R;return re===1&&(ae=te,te=function(pe){return A().off(pe),ae.apply(this,arguments)},te.guid=ae.guid||(ae.guid=A.guid++)),R.each(function(){A.event.add(this,z,te,Z,K)})}A.event={global:{},add:function(R,z,K,Z,te){var re,ae,be,pe,Se,$e,Fe,Me,We,er,Ir,fr=Ae.get(R);if(Ie(R))for(K.handler&&(re=K,K=re.handler,te=re.selector),te&&A.find.matchesSelector(Ve,te),K.guid||(K.guid=A.guid++),(pe=fr.events)||(pe=fr.events=Object.create(null)),(ae=fr.handle)||(ae=fr.handle=function(ms){return typeof A<"u"&&A.event.triggered!==ms.type?A.event.dispatch.apply(R,arguments):void 0}),z=(z||"").match(G)||[""],Se=z.length;Se--;)be=Rr.exec(z[Se])||[],We=Ir=be[1],er=(be[2]||"").split(".").sort(),We&&(Fe=A.event.special[We]||{},We=(te?Fe.delegateType:Fe.bindType)||We,Fe=A.event.special[We]||{},$e=A.extend({type:We,origType:Ir,data:Z,handler:K,guid:K.guid,selector:te,needsContext:te&&A.expr.match.needsContext.test(te),namespace:er.join(".")},re),(Me=pe[We])||(Me=pe[We]=[],Me.delegateCount=0,(!Fe.setup||Fe.setup.call(R,Z,er,ae)===!1)&&R.addEventListener&&R.addEventListener(We,ae)),Fe.add&&(Fe.add.call(R,$e),$e.handler.guid||($e.handler.guid=K.guid)),te?Me.splice(Me.delegateCount++,0,$e):Me.push($e),A.event.global[We]=!0)},remove:function(R,z,K,Z,te){var re,ae,be,pe,Se,$e,Fe,Me,We,er,Ir,fr=Ae.hasData(R)&&Ae.get(R);if(!(!fr||!(pe=fr.events))){for(z=(z||"").match(G)||[""],Se=z.length;Se--;){if(be=Rr.exec(z[Se])||[],We=Ir=be[1],er=(be[2]||"").split(".").sort(),!We){for(We in pe)A.event.remove(R,We+z[Se],K,Z,!0);continue}for(Fe=A.event.special[We]||{},We=(Z?Fe.delegateType:Fe.bindType)||We,Me=pe[We]||[],be=be[2]&&new RegExp("(^|\\.)"+er.join("\\.(?:.*\\.|)")+"(\\.|$)"),ae=re=Me.length;re--;)$e=Me[re],(te||Ir===$e.origType)&&(!K||K.guid===$e.guid)&&(!be||be.test($e.namespace))&&(!Z||Z===$e.selector||Z==="**"&&$e.selector)&&(Me.splice(re,1),$e.selector&&Me.delegateCount--,Fe.remove&&Fe.remove.call(R,$e));ae&&!Me.length&&((!Fe.teardown||Fe.teardown.call(R,er,fr.handle)===!1)&&A.removeEvent(R,We,fr.handle),delete pe[We])}A.isEmptyObject(pe)&&Ae.remove(R,"handle events")}},dispatch:function(R){var z,K,Z,te,re,ae,be=new Array(arguments.length),pe=A.event.fix(R),Se=(Ae.get(this,"events")||Object.create(null))[pe.type]||[],$e=A.event.special[pe.type]||{};for(be[0]=pe,z=1;z<arguments.length;z++)be[z]=arguments[z];if(pe.delegateTarget=this,!($e.preDispatch&&$e.preDispatch.call(this,pe)===!1)){for(ae=A.event.handlers.call(this,pe,Se),z=0;(te=ae[z++])&&!pe.isPropagationStopped();)for(pe.currentTarget=te.elem,K=0;(re=te.handlers[K++])&&!pe.isImmediatePropagationStopped();)(!pe.rnamespace||re.namespace===!1||pe.rnamespace.test(re.namespace))&&(pe.handleObj=re,pe.data=re.data,Z=((A.event.special[re.origType]||{}).handle||re.handler).apply(te.elem,be),Z!==void 0&&(pe.result=Z)===!1&&(pe.preventDefault(),pe.stopPropagation()));return $e.postDispatch&&$e.postDispatch.call(this,pe),pe.result}},handlers:function(R,z){var K,Z,te,re,ae,be=[],pe=z.delegateCount,Se=R.target;if(pe&&Se.nodeType&&!(R.type==="click"&&R.button>=1)){for(;Se!==this;Se=Se.parentNode||this)if(Se.nodeType===1&&!(R.type==="click"&&Se.disabled===!0)){for(re=[],ae={},K=0;K<pe;K++)Z=z[K],te=Z.selector+" ",ae[te]===void 0&&(ae[te]=Z.needsContext?A(te,this).index(Se)>-1:A.find(te,this,null,[Se]).length),ae[te]&&re.push(Z);re.length&&be.push({elem:Se,handlers:re})}}return Se=this,pe<z.length&&be.push({elem:Se,handlers:z.slice(pe)}),be},addProp:function(R,z){Object.defineProperty(A.Event.prototype,R,{enumerable:!0,configurable:!0,get:g(z)?function(){if(this.originalEvent)return z(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[R]},set:function(K){Object.defineProperty(this,R,{enumerable:!0,configurable:!0,writable:!0,value:K})}})},fix:function(R){return R[A.expando]?R:new A.Event(R)},special:{load:{noBubble:!0},click:{setup:function(R){var z=this||R;return sr.test(z.type)&&z.click&&H(z,"input")&&Ce(z,"click",!0),!1},trigger:function(R){var z=this||R;return sr.test(z.type)&&z.click&&H(z,"input")&&Ce(z,"click"),!0},_default:function(R){var z=R.target;return sr.test(z.type)&&z.click&&H(z,"input")&&Ae.get(z,"click")||H(z,"a")}},beforeunload:{postDispatch:function(R){R.result!==void 0&&R.originalEvent&&(R.originalEvent.returnValue=R.result)}}}};function Ce(R,z,K){if(!K){Ae.get(R,z)===void 0&&A.event.add(R,z,Er);return}Ae.set(R,z,!1),A.event.add(R,z,{namespace:!1,handler:function(Z){var te,re=Ae.get(this,z);if(Z.isTrigger&1&&this[z]){if(re)(A.event.special[z]||{}).delegateType&&Z.stopPropagation();else if(re=i.call(arguments),Ae.set(this,z,re),this[z](),te=Ae.get(this,z),Ae.set(this,z,!1),re!==te)return Z.stopImmediatePropagation(),Z.preventDefault(),te}else re&&(Ae.set(this,z,A.event.trigger(re[0],re.slice(1),this)),Z.stopPropagation(),Z.isImmediatePropagationStopped=Er)}})}A.removeEvent=function(R,z,K){R.removeEventListener&&R.removeEventListener(z,K)},A.Event=function(R,z){if(!(this instanceof A.Event))return new A.Event(R,z);R&&R.type?(this.originalEvent=R,this.type=R.type,this.isDefaultPrevented=R.defaultPrevented||R.defaultPrevented===void 0&&R.returnValue===!1?Er:qt,this.target=R.target&&R.target.nodeType===3?R.target.parentNode:R.target,this.currentTarget=R.currentTarget,this.relatedTarget=R.relatedTarget):this.type=R,z&&A.extend(this,z),this.timeStamp=R&&R.timeStamp||Date.now(),this[A.expando]=!0},A.Event.prototype={constructor:A.Event,isDefaultPrevented:qt,isPropagationStopped:qt,isImmediatePropagationStopped:qt,isSimulated:!1,preventDefault:function(){var R=this.originalEvent;this.isDefaultPrevented=Er,R&&!this.isSimulated&&R.preventDefault()},stopPropagation:function(){var R=this.originalEvent;this.isPropagationStopped=Er,R&&!this.isSimulated&&R.stopPropagation()},stopImmediatePropagation:function(){var R=this.originalEvent;this.isImmediatePropagationStopped=Er,R&&!this.isSimulated&&R.stopImmediatePropagation(),this.stopPropagation()}},A.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},A.event.addProp),A.each({focus:"focusin",blur:"focusout"},function(R,z){function K(Z){if(b.documentMode){var te=Ae.get(this,"handle"),re=A.event.fix(Z);re.type=Z.type==="focusin"?"focus":"blur",re.isSimulated=!0,te(Z),re.target===re.currentTarget&&te(re)}else A.event.simulate(z,Z.target,A.event.fix(Z))}A.event.special[R]={setup:function(){var Z;if(Ce(this,R,!0),b.documentMode)Z=Ae.get(this,z),Z||this.addEventListener(z,K),Ae.set(this,z,(Z||0)+1);else return!1},trigger:function(){return Ce(this,R),!0},teardown:function(){var Z;if(b.documentMode)Z=Ae.get(this,z)-1,Z?Ae.set(this,z,Z):(this.removeEventListener(z,K),Ae.remove(this,z));else return!1},_default:function(Z){return Ae.get(Z.target,R)},delegateType:z},A.event.special[z]={setup:function(){var Z=this.ownerDocument||this.document||this,te=b.documentMode?this:Z,re=Ae.get(te,z);re||(b.documentMode?this.addEventListener(z,K):Z.addEventListener(R,K,!0)),Ae.set(te,z,(re||0)+1)},teardown:function(){var Z=this.ownerDocument||this.document||this,te=b.documentMode?this:Z,re=Ae.get(te,z)-1;re?Ae.set(te,z,re):(b.documentMode?this.removeEventListener(z,K):Z.removeEventListener(R,K,!0),Ae.remove(te,z))}}}),A.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(R,z){A.event.special[R]={delegateType:z,bindType:z,handle:function(K){var Z,te=this,re=K.relatedTarget,ae=K.handleObj;return(!re||re!==te&&!A.contains(te,re))&&(K.type=ae.origType,Z=ae.handler.apply(this,arguments),K.type=z),Z}}}),A.fn.extend({on:function(R,z,K,Z){return ye(this,R,z,K,Z)},one:function(R,z,K,Z){return ye(this,R,z,K,Z,1)},off:function(R,z,K){var Z,te;if(R&&R.preventDefault&&R.handleObj)return Z=R.handleObj,A(R.delegateTarget).off(Z.namespace?Z.origType+"."+Z.namespace:Z.origType,Z.selector,Z.handler),this;if(typeof R=="object"){for(te in R)this.off(te,z,R[te]);return this}return(z===!1||typeof z=="function")&&(K=z,z=void 0),K===!1&&(K=qt),this.each(function(){A.event.remove(this,R,K,z)})}});var Le=/<script|<style|<link/i,tt=/checked\s*(?:[^=]|=\s*.checked.)/i,jt=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function rt(R,z){return H(R,"table")&&H(z.nodeType!==11?z:z.firstChild,"tr")&&A(R).children("tbody")[0]||R}function Vt(R){return R.type=(R.getAttribute("type")!==null)+"/"+R.type,R}function Dt(R){return(R.type||"").slice(0,5)==="true/"?R.type=R.type.slice(5):R.removeAttribute("type"),R}function Et(R,z){var K,Z,te,re,ae,be,pe;if(z.nodeType===1){if(Ae.hasData(R)&&(re=Ae.get(R),pe=re.events,pe)){Ae.remove(z,"handle events");for(te in pe)for(K=0,Z=pe[te].length;K<Z;K++)A.event.add(z,te,pe[te][K])}Ge.hasData(R)&&(ae=Ge.access(R),be=A.extend({},ae),Ge.set(z,be))}}function Xt(R,z){var K=z.nodeName.toLowerCase();K==="input"&&sr.test(R.type)?z.checked=R.checked:(K==="input"||K==="textarea")&&(z.defaultValue=R.defaultValue)}function Bt(R,z,K,Z){z=a(z);var te,re,ae,be,pe,Se,$e=0,Fe=R.length,Me=Fe-1,We=z[0],er=g(We);if(er||Fe>1&&typeof We=="string"&&!p.checkClone&&tt.test(We))return R.each(function(Ir){var fr=R.eq(Ir);er&&(z[0]=We.call(this,Ir,fr.html())),Bt(fr,z,K,Z)});if(Fe&&(te=Ht(z,R[0].ownerDocument,!1,R,Z),re=te.firstChild,te.childNodes.length===1&&(te=re),re||Z)){for(ae=A.map(pt(te,"script"),Vt),be=ae.length;$e<Fe;$e++)pe=te,$e!==Me&&(pe=A.clone(pe,!0,!0),be&&A.merge(ae,pt(pe,"script"))),K.call(R[$e],pe,$e);if(be)for(Se=ae[ae.length-1].ownerDocument,A.map(ae,Dt),$e=0;$e<be;$e++)pe=ae[$e],Hr.test(pe.type||"")&&!Ae.access(pe,"globalEval")&&A.contains(Se,pe)&&(pe.src&&(pe.type||"").toLowerCase()!=="module"?A._evalUrl&&!pe.noModule&&A._evalUrl(pe.src,{nonce:pe.nonce||pe.getAttribute("nonce")},Se):_(pe.textContent.replace(jt,""),pe,Se))}return R}function or(R,z,K){for(var Z,te=z?A.filter(z,R):R,re=0;(Z=te[re])!=null;re++)!K&&Z.nodeType===1&&A.cleanData(pt(Z)),Z.parentNode&&(K&&it(Z)&&gr(pt(Z,"script")),Z.parentNode.removeChild(Z));return R}A.extend({htmlPrefilter:function(R){return R},clone:function(R,z,K){var Z,te,re,ae,be=R.cloneNode(!0),pe=it(R);if(!p.noCloneChecked&&(R.nodeType===1||R.nodeType===11)&&!A.isXMLDoc(R))for(ae=pt(be),re=pt(R),Z=0,te=re.length;Z<te;Z++)Xt(re[Z],ae[Z]);if(z)if(K)for(re=re||pt(R),ae=ae||pt(be),Z=0,te=re.length;Z<te;Z++)Et(re[Z],ae[Z]);else Et(R,be);return ae=pt(be,"script"),ae.length>0&&gr(ae,!pe&&pt(R,"script")),be},cleanData:function(R){for(var z,K,Z,te=A.event.special,re=0;(K=R[re])!==void 0;re++)if(Ie(K)){if(z=K[Ae.expando]){if(z.events)for(Z in z.events)te[Z]?A.event.remove(K,Z):A.removeEvent(K,Z,z.handle);K[Ae.expando]=void 0}K[Ge.expando]&&(K[Ge.expando]=void 0)}}}),A.fn.extend({detach:function(R){return or(this,R,!0)},remove:function(R){return or(this,R)},text:function(R){return me(this,function(z){return z===void 0?A.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=z)})},null,R,arguments.length)},append:function(){return Bt(this,arguments,function(R){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var z=rt(this,R);z.appendChild(R)}})},prepend:function(){return Bt(this,arguments,function(R){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var z=rt(this,R);z.insertBefore(R,z.firstChild)}})},before:function(){return Bt(this,arguments,function(R){this.parentNode&&this.parentNode.insertBefore(R,this)})},after:function(){return Bt(this,arguments,function(R){this.parentNode&&this.parentNode.insertBefore(R,this.nextSibling)})},empty:function(){for(var R,z=0;(R=this[z])!=null;z++)R.nodeType===1&&(A.cleanData(pt(R,!1)),R.textContent="");return this},clone:function(R,z){return R=R??!1,z=z??R,this.map(function(){return A.clone(this,R,z)})},html:function(R){return me(this,function(z){var K=this[0]||{},Z=0,te=this.length;if(z===void 0&&K.nodeType===1)return K.innerHTML;if(typeof z=="string"&&!Le.test(z)&&!Qt[(Wt.exec(z)||["",""])[1].toLowerCase()]){z=A.htmlPrefilter(z);try{for(;Z<te;Z++)K=this[Z]||{},K.nodeType===1&&(A.cleanData(pt(K,!1)),K.innerHTML=z);K=0}catch{}}K&&this.empty().append(z)},null,R,arguments.length)},replaceWith:function(){var R=[];return Bt(this,arguments,function(z){var K=this.parentNode;A.inArray(this,R)<0&&(A.cleanData(pt(this)),K&&K.replaceChild(z,this))},R)}}),A.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(R,z){A.fn[R]=function(K){for(var Z,te=[],re=A(K),ae=re.length-1,be=0;be<=ae;be++)Z=be===ae?this:this.clone(!0),A(re[be])[z](Z),o.apply(te,Z.get());return this.pushStack(te)}});var an=new RegExp("^("+xt+")(?!px)[a-z%]+$","i"),Ur=/^--/,hn=function(R){var z=R.ownerDocument.defaultView;return(!z||!z.opener)&&(z=t),z.getComputedStyle(R)},vn=function(R,z,K){var Z,te,re={};for(te in z)re[te]=R.style[te],R.style[te]=z[te];Z=K.call(R);for(te in z)R.style[te]=re[te];return Z},Cs=new RegExp(Qe.join("|"),"i");(function(){function R(){if(Se){pe.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",Se.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",Ve.appendChild(pe).appendChild(Se);var $e=t.getComputedStyle(Se);K=$e.top!=="1%",be=z($e.marginLeft)===12,Se.style.right="60%",re=z($e.right)===36,Z=z($e.width)===36,Se.style.position="absolute",te=z(Se.offsetWidth/3)===12,Ve.removeChild(pe),Se=null}}function z($e){return Math.round(parseFloat($e))}var K,Z,te,re,ae,be,pe=b.createElement("div"),Se=b.createElement("div");Se.style&&(Se.style.backgroundClip="content-box",Se.cloneNode(!0).style.backgroundClip="",p.clearCloneStyle=Se.style.backgroundClip==="content-box",A.extend(p,{boxSizingReliable:function(){return R(),Z},pixelBoxStyles:function(){return R(),re},pixelPosition:function(){return R(),K},reliableMarginLeft:function(){return R(),be},scrollboxSize:function(){return R(),te},reliableTrDimensions:function(){var $e,Fe,Me,We;return ae==null&&($e=b.createElement("table"),Fe=b.createElement("tr"),Me=b.createElement("div"),$e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",Fe.style.cssText="box-sizing:content-box;border:1px solid",Fe.style.height="1px",Me.style.height="9px",Me.style.display="block",Ve.appendChild($e).appendChild(Fe).appendChild(Me),We=t.getComputedStyle(Fe),ae=parseInt(We.height,10)+parseInt(We.borderTopWidth,10)+parseInt(We.borderBottomWidth,10)===Fe.offsetHeight,Ve.removeChild($e)),ae}}))})();function he(R,z,K){var Z,te,re,ae,be=Ur.test(z),pe=R.style;return K=K||hn(R),K&&(ae=K.getPropertyValue(z)||K[z],be&&ae&&(ae=ae.replace(N,"$1")||void 0),ae===""&&!it(R)&&(ae=A.style(R,z)),!p.pixelBoxStyles()&&an.test(ae)&&Cs.test(z)&&(Z=pe.width,te=pe.minWidth,re=pe.maxWidth,pe.minWidth=pe.maxWidth=pe.width=ae,ae=K.width,pe.width=Z,pe.minWidth=te,pe.maxWidth=re)),ae!==void 0?ae+"":ae}function Te(R,z){return{get:function(){if(R()){delete this.get;return}return(this.get=z).apply(this,arguments)}}}var ze=["Webkit","Moz","ms"],qe=b.createElement("div").style,mt={};function Ye(R){for(var z=R[0].toUpperCase()+R.slice(1),K=ze.length;K--;)if(R=ze[K]+z,R in qe)return R}function Ze(R){var z=A.cssProps[R]||mt[R];return z||(R in qe?R:mt[R]=Ye(R)||R)}var wr=/^(none|table(?!-c[ea]).+)/,ir={position:"absolute",visibility:"hidden",display:"block"},lr={letterSpacing:"0",fontWeight:"400"};function Lt(R,z,K){var Z=yt.exec(z);return Z?Math.max(0,Z[2]-(K||0))+(Z[3]||"px"):z}function Mr(R,z,K,Z,te,re){var ae=z==="width"?1:0,be=0,pe=0,Se=0;if(K===(Z?"border":"content"))return 0;for(;ae<4;ae+=2)K==="margin"&&(Se+=A.css(R,K+Qe[ae],!0,te)),Z?(K==="content"&&(pe-=A.css(R,"padding"+Qe[ae],!0,te)),K!=="margin"&&(pe-=A.css(R,"border"+Qe[ae]+"Width",!0,te))):(pe+=A.css(R,"padding"+Qe[ae],!0,te),K!=="padding"?pe+=A.css(R,"border"+Qe[ae]+"Width",!0,te):be+=A.css(R,"border"+Qe[ae]+"Width",!0,te));return!Z&&re>=0&&(pe+=Math.max(0,Math.ceil(R["offset"+z[0].toUpperCase()+z.slice(1)]-re-pe-be-.5))||0),pe+Se}function Lr(R,z,K){var Z=hn(R),te=!p.boxSizingReliable()||K,re=te&&A.css(R,"boxSizing",!1,Z)==="border-box",ae=re,be=he(R,z,Z),pe="offset"+z[0].toUpperCase()+z.slice(1);if(an.test(be)){if(!K)return be;be="auto"}return(!p.boxSizingReliable()&&re||!p.reliableTrDimensions()&&H(R,"tr")||be==="auto"||!parseFloat(be)&&A.css(R,"display",!1,Z)==="inline")&&R.getClientRects().length&&(re=A.css(R,"boxSizing",!1,Z)==="border-box",ae=pe in R,ae&&(be=R[pe])),be=parseFloat(be)||0,be+Mr(R,z,K||(re?"border":"content"),ae,Z,be)+"px"}A.extend({cssHooks:{opacity:{get:function(R,z){if(z){var K=he(R,"opacity");return K===""?"1":K}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(R,z,K,Z){if(!(!R||R.nodeType===3||R.nodeType===8||!R.style)){var te,re,ae,be=Ee(z),pe=Ur.test(z),Se=R.style;if(pe||(z=Ze(be)),ae=A.cssHooks[z]||A.cssHooks[be],K!==void 0){if(re=typeof K,re==="string"&&(te=yt.exec(K))&&te[1]&&(K=dr(R,z,te),re="number"),K==null||K!==K)return;re==="number"&&!pe&&(K+=te&&te[3]||(A.cssNumber[be]?"":"px")),!p.clearCloneStyle&&K===""&&z.indexOf("background")===0&&(Se[z]="inherit"),(!ae||!("set"in ae)||(K=ae.set(R,K,Z))!==void 0)&&(pe?Se.setProperty(z,K):Se[z]=K)}else return ae&&"get"in ae&&(te=ae.get(R,!1,Z))!==void 0?te:Se[z]}},css:function(R,z,K,Z){var te,re,ae,be=Ee(z),pe=Ur.test(z);return pe||(z=Ze(be)),ae=A.cssHooks[z]||A.cssHooks[be],ae&&"get"in ae&&(te=ae.get(R,!0,K)),te===void 0&&(te=he(R,z,Z)),te==="normal"&&z in lr&&(te=lr[z]),K===""||K?(re=parseFloat(te),K===!0||isFinite(re)?re||0:te):te}}),A.each(["height","width"],function(R,z){A.cssHooks[z]={get:function(K,Z,te){if(Z)return wr.test(A.css(K,"display"))&&(!K.getClientRects().length||!K.getBoundingClientRect().width)?vn(K,ir,function(){return Lr(K,z,te)}):Lr(K,z,te)},set:function(K,Z,te){var re,ae=hn(K),be=!p.scrollboxSize()&&ae.position==="absolute",pe=be||te,Se=pe&&A.css(K,"boxSizing",!1,ae)==="border-box",$e=te?Mr(K,z,te,Se,ae):0;return Se&&be&&($e-=Math.ceil(K["offset"+z[0].toUpperCase()+z.slice(1)]-parseFloat(ae[z])-Mr(K,z,"border",!1,ae)-.5)),$e&&(re=yt.exec(Z))&&(re[3]||"px")!=="px"&&(K.style[z]=Z,Z=A.css(K,z)),Lt(K,Z,$e)}}}),A.cssHooks.marginLeft=Te(p.reliableMarginLeft,function(R,z){if(z)return(parseFloat(he(R,"marginLeft"))||R.getBoundingClientRect().left-vn(R,{marginLeft:0},function(){return R.getBoundingClientRect().left}))+"px"}),A.each({margin:"",padding:"",border:"Width"},function(R,z){A.cssHooks[R+z]={expand:function(K){for(var Z=0,te={},re=typeof K=="string"?K.split(" "):[K];Z<4;Z++)te[R+Qe[Z]+z]=re[Z]||re[Z-2]||re[0];return te}},R!=="margin"&&(A.cssHooks[R+z].set=Lt)}),A.fn.extend({css:function(R,z){return me(this,function(K,Z,te){var re,ae,be={},pe=0;if(Array.isArray(Z)){for(re=hn(K),ae=Z.length;pe<ae;pe++)be[Z[pe]]=A.css(K,Z[pe],!1,re);return be}return te!==void 0?A.style(K,Z,te):A.css(K,Z)},R,z,arguments.length>1)}});function ar(R,z,K,Z,te){return new ar.prototype.init(R,z,K,Z,te)}A.Tween=ar,ar.prototype={constructor:ar,init:function(R,z,K,Z,te,re){this.elem=R,this.prop=K,this.easing=te||A.easing._default,this.options=z,this.start=this.now=this.cur(),this.end=Z,this.unit=re||(A.cssNumber[K]?"":"px")},cur:function(){var R=ar.propHooks[this.prop];return R&&R.get?R.get(this):ar.propHooks._default.get(this)},run:function(R){var z,K=ar.propHooks[this.prop];return this.options.duration?this.pos=z=A.easing[this.easing](R,this.options.duration*R,0,1,this.options.duration):this.pos=z=R,this.now=(this.end-this.start)*z+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),K&&K.set?K.set(this):ar.propHooks._default.set(this),this}},ar.prototype.init.prototype=ar.prototype,ar.propHooks={_default:{get:function(R){var z;return R.elem.nodeType!==1||R.elem[R.prop]!=null&&R.elem.style[R.prop]==null?R.elem[R.prop]:(z=A.css(R.elem,R.prop,""),!z||z==="auto"?0:z)},set:function(R){A.fx.step[R.prop]?A.fx.step[R.prop](R):R.elem.nodeType===1&&(A.cssHooks[R.prop]||R.elem.style[Ze(R.prop)]!=null)?A.style(R.elem,R.prop,R.now+R.unit):R.elem[R.prop]=R.now}}},ar.propHooks.scrollTop=ar.propHooks.scrollLeft={set:function(R){R.elem.nodeType&&R.elem.parentNode&&(R.elem[R.prop]=R.now)}},A.easing={linear:function(R){return R},swing:function(R){return .5-Math.cos(R*Math.PI)/2},_default:"swing"},A.fx=ar.prototype.init,A.fx.step={};var Gr,gn,ps=/^(?:toggle|show|hide)$/,$i=/queueHooks$/;function Ca(){gn&&(b.hidden===!1&&t.requestAnimationFrame?t.requestAnimationFrame(Ca):t.setTimeout(Ca,A.fx.interval),A.fx.tick())}function Zo(){return t.setTimeout(function(){Gr=void 0}),Gr=Date.now()}function Ta(R,z){var K,Z=0,te={height:R};for(z=z?1:0;Z<4;Z+=2-z)K=Qe[Z],te["margin"+K]=te["padding"+K]=R;return z&&(te.opacity=te.width=R),te}function Qo(R,z,K){for(var Z,te=(Pn.tweeners[z]||[]).concat(Pn.tweeners["*"]),re=0,ae=te.length;re<ae;re++)if(Z=te[re].call(K,z,R))return Z}function Fr(R,z,K){var Z,te,re,ae,be,pe,Se,$e,Fe="width"in z||"height"in z,Me=this,We={},er=R.style,Ir=R.nodeType&&ct(R),fr=Ae.get(R,"fxshow");K.queue||(ae=A._queueHooks(R,"fx"),ae.unqueued==null&&(ae.unqueued=0,be=ae.empty.fire,ae.empty.fire=function(){ae.unqueued||be()}),ae.unqueued++,Me.always(function(){Me.always(function(){ae.unqueued--,A.queue(R,"fx").length||ae.empty.fire()})}));for(Z in z)if(te=z[Z],ps.test(te)){if(delete z[Z],re=re||te==="toggle",te===(Ir?"hide":"show"))if(te==="show"&&fr&&fr[Z]!==void 0)Ir=!0;else continue;We[Z]=fr&&fr[Z]||A.style(R,Z)}if(pe=!A.isEmptyObject(z),!(!pe&&A.isEmptyObject(We))){Fe&&R.nodeType===1&&(K.overflow=[er.overflow,er.overflowX,er.overflowY],Se=fr&&fr.display,Se==null&&(Se=Ae.get(R,"display")),$e=A.css(R,"display"),$e==="none"&&(Se?$e=Se:(hr([R],!0),Se=R.style.display||Se,$e=A.css(R,"display"),hr([R]))),($e==="inline"||$e==="inline-block"&&Se!=null)&&A.css(R,"float")==="none"&&(pe||(Me.done(function(){er.display=Se}),Se==null&&($e=er.display,Se=$e==="none"?"":$e)),er.display="inline-block")),K.overflow&&(er.overflow="hidden",Me.always(function(){er.overflow=K.overflow[0],er.overflowX=K.overflow[1],er.overflowY=K.overflow[2]})),pe=!1;for(Z in We)pe||(fr?"hidden"in fr&&(Ir=fr.hidden):fr=Ae.access(R,"fxshow",{display:Se}),re&&(fr.hidden=!Ir),Ir&&hr([R],!0),Me.done(function(){Ir||hr([R]),Ae.remove(R,"fxshow");for(Z in We)A.style(R,Z,We[Z])})),pe=Qo(Ir?fr[Z]:0,Z,Me),Z in fr||(fr[Z]=pe.start,Ir&&(pe.end=pe.start,pe.start=0))}}function Cr(R,z){var K,Z,te,re,ae;for(K in R)if(Z=Ee(K),te=z[Z],re=R[K],Array.isArray(re)&&(te=re[1],re=R[K]=re[0]),K!==Z&&(R[Z]=re,delete R[K]),ae=A.cssHooks[Z],ae&&"expand"in ae){re=ae.expand(re),delete R[Z];for(K in re)K in R||(R[K]=re[K],z[K]=te)}else z[Z]=te}function Pn(R,z,K){var Z,te,re=0,ae=Pn.prefilters.length,be=A.Deferred().always(function(){delete pe.elem}),pe=function(){if(te)return!1;for(var Fe=Gr||Zo(),Me=Math.max(0,Se.startTime+Se.duration-Fe),We=Me/Se.duration||0,er=1-We,Ir=0,fr=Se.tweens.length;Ir<fr;Ir++)Se.tweens[Ir].run(er);return be.notifyWith(R,[Se,er,Me]),er<1&&fr?Me:(fr||be.notifyWith(R,[Se,1,0]),be.resolveWith(R,[Se]),!1)},Se=be.promise({elem:R,props:A.extend({},z),opts:A.extend(!0,{specialEasing:{},easing:A.easing._default},K),originalProperties:z,originalOptions:K,startTime:Gr||Zo(),duration:K.duration,tweens:[],createTween:function(Fe,Me){var We=A.Tween(R,Se.opts,Fe,Me,Se.opts.specialEasing[Fe]||Se.opts.easing);return Se.tweens.push(We),We},stop:function(Fe){var Me=0,We=Fe?Se.tweens.length:0;if(te)return this;for(te=!0;Me<We;Me++)Se.tweens[Me].run(1);return Fe?(be.notifyWith(R,[Se,1,0]),be.resolveWith(R,[Se,Fe])):be.rejectWith(R,[Se,Fe]),this}}),$e=Se.props;for(Cr($e,Se.opts.specialEasing);re<ae;re++)if(Z=Pn.prefilters[re].call(Se,R,$e,Se.opts),Z)return g(Z.stop)&&(A._queueHooks(Se.elem,Se.opts.queue).stop=Z.stop.bind(Z)),Z;return A.map($e,Qo,Se),g(Se.opts.start)&&Se.opts.start.call(R,Se),Se.progress(Se.opts.progress).done(Se.opts.done,Se.opts.complete).fail(Se.opts.fail).always(Se.opts.always),A.fx.timer(A.extend(pe,{elem:R,anim:Se,queue:Se.opts.queue})),Se}A.Animation=A.extend(Pn,{tweeners:{"*":[function(R,z){var K=this.createTween(R,z);return dr(K.elem,R,yt.exec(z),K),K}]},tweener:function(R,z){g(R)?(z=R,R=["*"]):R=R.match(G);for(var K,Z=0,te=R.length;Z<te;Z++)K=R[Z],Pn.tweeners[K]=Pn.tweeners[K]||[],Pn.tweeners[K].unshift(z)},prefilters:[Fr],prefilter:function(R,z){z?Pn.prefilters.unshift(R):Pn.prefilters.push(R)}}),A.speed=function(R,z,K){var Z=R&&typeof R=="object"?A.extend({},R):{complete:K||!K&&z||g(R)&&R,duration:R,easing:K&&z||z&&!g(z)&&z};return A.fx.off?Z.duration=0:typeof Z.duration!="number"&&(Z.duration in A.fx.speeds?Z.duration=A.fx.speeds[Z.duration]:Z.duration=A.fx.speeds._default),(Z.queue==null||Z.queue===!0)&&(Z.queue="fx"),Z.old=Z.complete,Z.complete=function(){g(Z.old)&&Z.old.call(this),Z.queue&&A.dequeue(this,Z.queue)},Z},A.fn.extend({fadeTo:function(R,z,K,Z){return this.filter(ct).css("opacity",0).show().end().animate({opacity:z},R,K,Z)},animate:function(R,z,K,Z){var te=A.isEmptyObject(R),re=A.speed(z,K,Z),ae=function(){var be=Pn(this,A.extend({},R),re);(te||Ae.get(this,"finish"))&&be.stop(!0)};return ae.finish=ae,te||re.queue===!1?this.each(ae):this.queue(re.queue,ae)},stop:function(R,z,K){var Z=function(te){var re=te.stop;delete te.stop,re(K)};return typeof R!="string"&&(K=z,z=R,R=void 0),z&&this.queue(R||"fx",[]),this.each(function(){var te=!0,re=R!=null&&R+"queueHooks",ae=A.timers,be=Ae.get(this);if(re)be[re]&&be[re].stop&&Z(be[re]);else for(re in be)be[re]&&be[re].stop&&$i.test(re)&&Z(be[re]);for(re=ae.length;re--;)ae[re].elem===this&&(R==null||ae[re].queue===R)&&(ae[re].anim.stop(K),te=!1,ae.splice(re,1));(te||!K)&&A.dequeue(this,R)})},finish:function(R){return R!==!1&&(R=R||"fx"),this.each(function(){var z,K=Ae.get(this),Z=K[R+"queue"],te=K[R+"queueHooks"],re=A.timers,ae=Z?Z.length:0;for(K.finish=!0,A.queue(this,R,[]),te&&te.stop&&te.stop.call(this,!0),z=re.length;z--;)re[z].elem===this&&re[z].queue===R&&(re[z].anim.stop(!0),re.splice(z,1));for(z=0;z<ae;z++)Z[z]&&Z[z].finish&&Z[z].finish.call(this);delete K.finish})}}),A.each(["toggle","show","hide"],function(R,z){var K=A.fn[z];A.fn[z]=function(Z,te,re){return Z==null||typeof Z=="boolean"?K.apply(this,arguments):this.animate(Ta(z,!0),Z,te,re)}}),A.each({slideDown:Ta("show"),slideUp:Ta("hide"),slideToggle:Ta("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(R,z){A.fn[R]=function(K,Z,te){return this.animate(z,K,Z,te)}}),A.timers=[],A.fx.tick=function(){var R,z=0,K=A.timers;for(Gr=Date.now();z<K.length;z++)R=K[z],!R()&&K[z]===R&&K.splice(z--,1);K.length||A.fx.stop(),Gr=void 0},A.fx.timer=function(R){A.timers.push(R),A.fx.start()},A.fx.interval=13,A.fx.start=function(){gn||(gn=!0,Ca())},A.fx.stop=function(){gn=null},A.fx.speeds={slow:600,fast:200,_default:400},A.fn.delay=function(R,z){return R=A.fx&&A.fx.speeds[R]||R,z=z||"fx",this.queue(z,function(K,Z){var te=t.setTimeout(K,R);Z.stop=function(){t.clearTimeout(te)}})},function(){var R=b.createElement("input"),z=b.createElement("select"),K=z.appendChild(b.createElement("option"));R.type="checkbox",p.checkOn=R.value!=="",p.optSelected=K.selected,R=b.createElement("input"),R.value="t",R.type="radio",p.radioValue=R.value==="t"}();var ao,oo=A.expr.attrHandle;A.fn.extend({attr:function(R,z){return me(this,A.attr,R,z,arguments.length>1)},removeAttr:function(R){return this.each(function(){A.removeAttr(this,R)})}}),A.extend({attr:function(R,z,K){var Z,te,re=R.nodeType;if(!(re===3||re===8||re===2)){if(typeof R.getAttribute>"u")return A.prop(R,z,K);if((re!==1||!A.isXMLDoc(R))&&(te=A.attrHooks[z.toLowerCase()]||(A.expr.match.bool.test(z)?ao:void 0)),K!==void 0){if(K===null){A.removeAttr(R,z);return}return te&&"set"in te&&(Z=te.set(R,K,z))!==void 0?Z:(R.setAttribute(z,K+""),K)}return te&&"get"in te&&(Z=te.get(R,z))!==null?Z:(Z=A.find.attr(R,z),Z??void 0)}},attrHooks:{type:{set:function(R,z){if(!p.radioValue&&z==="radio"&&H(R,"input")){var K=R.value;return R.setAttribute("type",z),K&&(R.value=K),z}}}},removeAttr:function(R,z){var K,Z=0,te=z&&z.match(G);if(te&&R.nodeType===1)for(;K=te[Z++];)R.removeAttribute(K)}}),ao={set:function(R,z,K){return z===!1?A.removeAttr(R,K):R.setAttribute(K,K),K}},A.each(A.expr.match.bool.source.match(/\w+/g),function(R,z){var K=oo[z]||A.find.attr;oo[z]=function(Z,te,re){var ae,be,pe=te.toLowerCase();return re||(be=oo[pe],oo[pe]=ae,ae=K(Z,te,re)!=null?pe:null,oo[pe]=be),ae}});var zs=/^(?:input|select|textarea|button)$/i,Aa=/^(?:a|area)$/i;A.fn.extend({prop:function(R,z){return me(this,A.prop,R,z,arguments.length>1)},removeProp:function(R){return this.each(function(){delete this[A.propFix[R]||R]})}}),A.extend({prop:function(R,z,K){var Z,te,re=R.nodeType;if(!(re===3||re===8||re===2))return(re!==1||!A.isXMLDoc(R))&&(z=A.propFix[z]||z,te=A.propHooks[z]),K!==void 0?te&&"set"in te&&(Z=te.set(R,K,z))!==void 0?Z:R[z]=K:te&&"get"in te&&(Z=te.get(R,z))!==null?Z:R[z]},propHooks:{tabIndex:{get:function(R){var z=A.find.attr(R,"tabindex");return z?parseInt(z,10):zs.test(R.nodeName)||Aa.test(R.nodeName)&&R.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),p.optSelected||(A.propHooks.selected={get:function(R){var z=R.parentNode;return z&&z.parentNode&&z.parentNode.selectedIndex,null},set:function(R){var z=R.parentNode;z&&(z.selectedIndex,z.parentNode&&z.parentNode.selectedIndex)}}),A.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){A.propFix[this.toLowerCase()]=this});function Ts(R){var z=R.match(G)||[];return z.join(" ")}function Li(R){return R.getAttribute&&R.getAttribute("class")||""}function gc(R){return Array.isArray(R)?R:typeof R=="string"?R.match(G)||[]:[]}A.fn.extend({addClass:function(R){var z,K,Z,te,re,ae;return g(R)?this.each(function(be){A(this).addClass(R.call(this,be,Li(this)))}):(z=gc(R),z.length?this.each(function(){if(Z=Li(this),K=this.nodeType===1&&" "+Ts(Z)+" ",K){for(re=0;re<z.length;re++)te=z[re],K.indexOf(" "+te+" ")<0&&(K+=te+" ");ae=Ts(K),Z!==ae&&this.setAttribute("class",ae)}}):this)},removeClass:function(R){var z,K,Z,te,re,ae;return g(R)?this.each(function(be){A(this).removeClass(R.call(this,be,Li(this)))}):arguments.length?(z=gc(R),z.length?this.each(function(){if(Z=Li(this),K=this.nodeType===1&&" "+Ts(Z)+" ",K){for(re=0;re<z.length;re++)for(te=z[re];K.indexOf(" "+te+" ")>-1;)K=K.replace(" "+te+" "," ");ae=Ts(K),Z!==ae&&this.setAttribute("class",ae)}}):this):this.attr("class","")},toggleClass:function(R,z){var K,Z,te,re,ae=typeof R,be=ae==="string"||Array.isArray(R);return g(R)?this.each(function(pe){A(this).toggleClass(R.call(this,pe,Li(this),z),z)}):typeof z=="boolean"&&be?z?this.addClass(R):this.removeClass(R):(K=gc(R),this.each(function(){if(be)for(re=A(this),te=0;te<K.length;te++)Z=K[te],re.hasClass(Z)?re.removeClass(Z):re.addClass(Z);else(R===void 0||ae==="boolean")&&(Z=Li(this),Z&&Ae.set(this,"__className__",Z),this.setAttribute&&this.setAttribute("class",Z||R===!1?"":Ae.get(this,"__className__")||""))}))},hasClass:function(R){var z,K,Z=0;for(z=" "+R+" ";K=this[Z++];)if(K.nodeType===1&&(" "+Ts(Li(K))+" ").indexOf(z)>-1)return!0;return!1}});var bc=/\r/g;A.fn.extend({val:function(R){var z,K,Z,te=this[0];return arguments.length?(Z=g(R),this.each(function(re){var ae;this.nodeType===1&&(Z?ae=R.call(this,re,A(this).val()):ae=R,ae==null?ae="":typeof ae=="number"?ae+="":Array.isArray(ae)&&(ae=A.map(ae,function(be){return be==null?"":be+""})),z=A.valHooks[this.type]||A.valHooks[this.nodeName.toLowerCase()],(!z||!("set"in z)||z.set(this,ae,"value")===void 0)&&(this.value=ae))})):te?(z=A.valHooks[te.type]||A.valHooks[te.nodeName.toLowerCase()],z&&"get"in z&&(K=z.get(te,"value"))!==void 0?K:(K=te.value,typeof K=="string"?K.replace(bc,""):K??"")):void 0}}),A.extend({valHooks:{option:{get:function(R){var z=A.find.attr(R,"value");return z??Ts(A.text(R))}},select:{get:function(R){var z,K,Z,te=R.options,re=R.selectedIndex,ae=R.type==="select-one",be=ae?null:[],pe=ae?re+1:te.length;for(re<0?Z=pe:Z=ae?re:0;Z<pe;Z++)if(K=te[Z],(K.selected||Z===re)&&!K.disabled&&(!K.parentNode.disabled||!H(K.parentNode,"optgroup"))){if(z=A(K).val(),ae)return z;be.push(z)}return be},set:function(R,z){for(var K,Z,te=R.options,re=A.makeArray(z),ae=te.length;ae--;)Z=te[ae],(Z.selected=A.inArray(A.valHooks.option.get(Z),re)>-1)&&(K=!0);return K||(R.selectedIndex=-1),re}}}}),A.each(["radio","checkbox"],function(){A.valHooks[this]={set:function(R,z){if(Array.isArray(z))return R.checked=A.inArray(A(R).val(),z)>-1}},p.checkOn||(A.valHooks[this].get=function(R){return R.getAttribute("value")===null?"on":R.value})});var li=t.location,Zb={guid:Date.now()},yc=/\?/;A.parseXML=function(R){var z,K;if(!R||typeof R!="string")return null;try{z=new t.DOMParser().parseFromString(R,"text/xml")}catch{}return K=z&&z.getElementsByTagName("parsererror")[0],(!z||K)&&A.error("Invalid XML: "+(K?A.map(K.childNodes,function(Z){return Z.textContent}).join(`
168
+ */(function(n){(function(t,e){n.exports=t.document?e(t,!0):function(r){if(!r.document)throw new Error("jQuery requires a window with a document");return e(r)}})(typeof window<"u"?window:_r,function(t,e){var r=[],s=Object.getPrototypeOf,i=r.slice,a=r.flat?function(R){return r.flat.call(R)}:function(R){return r.concat.apply([],R)},o=r.push,l=r.indexOf,c={},u=c.toString,h=c.hasOwnProperty,d=h.toString,f=d.call(Object),p={},g=function(z){return typeof z=="function"&&typeof z.nodeType!="number"&&typeof z.item!="function"},m=function(z){return z!=null&&z===z.window},b=t.document,w={type:!0,src:!0,nonce:!0,noModule:!0};function _(R,z,K){K=K||b;var Z,te,re=K.createElement("script");if(re.text=R,z)for(Z in w)te=z[Z]||z.getAttribute&&z.getAttribute(Z),te&&re.setAttribute(Z,te);K.head.appendChild(re).parentNode.removeChild(re)}function T(R){return R==null?R+"":typeof R=="object"||typeof R=="function"?c[u.call(R)]||"object":typeof R}var M="3.7.1",j=/HTML$/i,A=function(R,z){return new A.fn.init(R,z)};A.fn=A.prototype={jquery:M,constructor:A,length:0,toArray:function(){return i.call(this)},get:function(R){return R==null?i.call(this):R<0?this[R+this.length]:this[R]},pushStack:function(R){var z=A.merge(this.constructor(),R);return z.prevObject=this,z},each:function(R){return A.each(this,R)},map:function(R){return this.pushStack(A.map(this,function(z,K){return R.call(z,K,z)}))},slice:function(){return this.pushStack(i.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(A.grep(this,function(R,z){return(z+1)%2}))},odd:function(){return this.pushStack(A.grep(this,function(R,z){return z%2}))},eq:function(R){var z=this.length,K=+R+(R<0?z:0);return this.pushStack(K>=0&&K<z?[this[K]]:[])},end:function(){return this.prevObject||this.constructor()},push:o,sort:r.sort,splice:r.splice},A.extend=A.fn.extend=function(){var R,z,K,Z,te,re,ae=arguments[0]||{},be=1,pe=arguments.length,Se=!1;for(typeof ae=="boolean"&&(Se=ae,ae=arguments[be]||{},be++),typeof ae!="object"&&!g(ae)&&(ae={}),be===pe&&(ae=this,be--);be<pe;be++)if((R=arguments[be])!=null)for(z in R)Z=R[z],!(z==="__proto__"||ae===Z)&&(Se&&Z&&(A.isPlainObject(Z)||(te=Array.isArray(Z)))?(K=ae[z],te&&!Array.isArray(K)?re=[]:!te&&!A.isPlainObject(K)?re={}:re=K,te=!1,ae[z]=A.extend(Se,re,Z)):Z!==void 0&&(ae[z]=Z));return ae},A.extend({expando:"jQuery"+(M+Math.random()).replace(/\D/g,""),isReady:!0,error:function(R){throw new Error(R)},noop:function(){},isPlainObject:function(R){var z,K;return!R||u.call(R)!=="[object Object]"?!1:(z=s(R),z?(K=h.call(z,"constructor")&&z.constructor,typeof K=="function"&&d.call(K)===f):!0)},isEmptyObject:function(R){var z;for(z in R)return!1;return!0},globalEval:function(R,z,K){_(R,{nonce:z&&z.nonce},K)},each:function(R,z){var K,Z=0;if(B(R))for(K=R.length;Z<K&&z.call(R[Z],Z,R[Z])!==!1;Z++);else for(Z in R)if(z.call(R[Z],Z,R[Z])===!1)break;return R},text:function(R){var z,K="",Z=0,te=R.nodeType;if(!te)for(;z=R[Z++];)K+=A.text(z);return te===1||te===11?R.textContent:te===9?R.documentElement.textContent:te===3||te===4?R.nodeValue:K},makeArray:function(R,z){var K=z||[];return R!=null&&(B(Object(R))?A.merge(K,typeof R=="string"?[R]:R):o.call(K,R)),K},inArray:function(R,z,K){return z==null?-1:l.call(z,R,K)},isXMLDoc:function(R){var z=R&&R.namespaceURI,K=R&&(R.ownerDocument||R).documentElement;return!j.test(z||K&&K.nodeName||"HTML")},merge:function(R,z){for(var K=+z.length,Z=0,te=R.length;Z<K;Z++)R[te++]=z[Z];return R.length=te,R},grep:function(R,z,K){for(var Z,te=[],re=0,ae=R.length,be=!K;re<ae;re++)Z=!z(R[re],re),Z!==be&&te.push(R[re]);return te},map:function(R,z,K){var Z,te,re=0,ae=[];if(B(R))for(Z=R.length;re<Z;re++)te=z(R[re],re,K),te!=null&&ae.push(te);else for(re in R)te=z(R[re],re,K),te!=null&&ae.push(te);return a(ae)},guid:1,support:p}),typeof Symbol=="function"&&(A.fn[Symbol.iterator]=r[Symbol.iterator]),A.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(R,z){c["[object "+z+"]"]=z.toLowerCase()});function B(R){var z=!!R&&"length"in R&&R.length,K=T(R);return g(R)||m(R)?!1:K==="array"||z===0||typeof z=="number"&&z>0&&z-1 in R}function H(R,z){return R.nodeName&&R.nodeName.toLowerCase()===z.toLowerCase()}var U=r.pop,X=r.sort,V=r.splice,O="[\\x20\\t\\r\\n\\f]",N=new RegExp("^"+O+"+|((?:^|[^\\\\])(?:\\\\.)*)"+O+"+$","g");A.contains=function(R,z){var K=z&&z.parentNode;return R===K||!!(K&&K.nodeType===1&&(R.contains?R.contains(K):R.compareDocumentPosition&&R.compareDocumentPosition(K)&16))};var C=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function x(R,z){return z?R==="\0"?"�":R.slice(0,-1)+"\\"+R.charCodeAt(R.length-1).toString(16)+" ":"\\"+R}A.escapeSelector=function(R){return(R+"").replace(C,x)};var S=b,k=o;(function(){var R,z,K,Z,te,re=k,ae,be,pe,Se,$e,Fe=A.expando,Me=0,We=0,er=_x(),Ir=_x(),fr=_x(),ms=_x(),Vn=function(fe,_e){return fe===_e&&(te=!0),0},lo="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",co="(?:\\\\[\\da-fA-F]{1,6}"+O+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",Tr="\\["+O+"*("+co+")(?:"+O+"*([*^$|!~]?=)"+O+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+co+"))|)"+O+"*\\]",zu=":("+co+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+Tr+")*)|.*)\\)|)",jr=new RegExp(O+"+","g"),_n=new RegExp("^"+O+"*,"+O+"*"),ty=new RegExp("^"+O+"*([>+~]|"+O+")"+O+"*"),A3=new RegExp(O+"|>"),uo=new RegExp(zu),ry=new RegExp("^"+co+"$"),ho={ID:new RegExp("^#("+co+")"),CLASS:new RegExp("^\\.("+co+")"),TAG:new RegExp("^("+co+"|[*])"),ATTR:new RegExp("^"+Tr),PSEUDO:new RegExp("^"+zu),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+O+"*(even|odd|(([+-]|)(\\d*)n|)"+O+"*(?:([+-]|)"+O+"*(\\d+)|))"+O+"*\\)|)","i"),bool:new RegExp("^(?:"+lo+")$","i"),needsContext:new RegExp("^"+O+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+O+"*((?:-\\d)?\\d*)"+O+"*\\)|)(?=[^-]|$)","i")},wc=/^(?:input|select|textarea|button)$/i,vc=/^h\d$/i,Qi=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,R3=/[+~]/,el=new RegExp("\\\\[\\da-fA-F]{1,6}"+O+"?|\\\\([^\\r\\n\\f])","g"),tl=function(fe,_e){var Re="0x"+fe.slice(1)-65536;return _e||(Re<0?String.fromCharCode(Re+65536):String.fromCharCode(Re>>10|55296,Re&1023|56320))},GQ=function(){_c()},KQ=Sx(function(fe){return fe.disabled===!0&&H(fe,"fieldset")},{dir:"parentNode",next:"legend"});function XQ(){try{return ae.activeElement}catch{}}try{re.apply(r=i.call(S.childNodes),S.childNodes),r[S.childNodes.length].nodeType}catch{re={apply:function(_e,Re){k.apply(_e,i.call(Re))},call:function(_e){k.apply(_e,i.call(arguments,1))}}}function Jr(fe,_e,Re,Ne){var Be,nt,ut,Ct,dt,Sr,Yt,tr=_e&&_e.ownerDocument,kr=_e?_e.nodeType:9;if(Re=Re||[],typeof fe!="string"||!fe||kr!==1&&kr!==9&&kr!==11)return Re;if(!Ne&&(_c(_e),_e=_e||ae,pe)){if(kr!==11&&(dt=Qi.exec(fe)))if(Be=dt[1]){if(kr===9)if(ut=_e.getElementById(Be)){if(ut.id===Be)return re.call(Re,ut),Re}else return Re;else if(tr&&(ut=tr.getElementById(Be))&&Jr.contains(_e,ut)&&ut.id===Be)return re.call(Re,ut),Re}else{if(dt[2])return re.apply(Re,_e.getElementsByTagName(fe)),Re;if((Be=dt[3])&&_e.getElementsByClassName)return re.apply(Re,_e.getElementsByClassName(Be)),Re}if(!ms[fe+" "]&&(!Se||!Se.test(fe))){if(Yt=fe,tr=_e,kr===1&&(A3.test(fe)||ty.test(fe))){for(tr=R3.test(fe)&&O3(_e.parentNode)||_e,(tr!=_e||!p.scope)&&((Ct=_e.getAttribute("id"))?Ct=A.escapeSelector(Ct):_e.setAttribute("id",Ct=Fe)),Sr=ny(fe),nt=Sr.length;nt--;)Sr[nt]=(Ct?"#"+Ct:":scope")+" "+xx(Sr[nt]);Yt=Sr.join(",")}try{return re.apply(Re,tr.querySelectorAll(Yt)),Re}catch{ms(fe,!0)}finally{Ct===Fe&&_e.removeAttribute("id")}}}return EI(fe.replace(N,"$1"),_e,Re,Ne)}function _x(){var fe=[];function _e(Re,Ne){return fe.push(Re+" ")>z.cacheLength&&delete _e[fe.shift()],_e[Re+" "]=Ne}return _e}function Ra(fe){return fe[Fe]=!0,fe}function ff(fe){var _e=ae.createElement("fieldset");try{return!!fe(_e)}catch{return!1}finally{_e.parentNode&&_e.parentNode.removeChild(_e),_e=null}}function YQ(fe){return function(_e){return H(_e,"input")&&_e.type===fe}}function JQ(fe){return function(_e){return(H(_e,"input")||H(_e,"button"))&&_e.type===fe}}function SI(fe){return function(_e){return"form"in _e?_e.parentNode&&_e.disabled===!1?"label"in _e?"label"in _e.parentNode?_e.parentNode.disabled===fe:_e.disabled===fe:_e.isDisabled===fe||_e.isDisabled!==!fe&&KQ(_e)===fe:_e.disabled===fe:"label"in _e?_e.disabled===fe:!1}}function Hu(fe){return Ra(function(_e){return _e=+_e,Ra(function(Re,Ne){for(var Be,nt=fe([],Re.length,_e),ut=nt.length;ut--;)Re[Be=nt[ut]]&&(Re[Be]=!(Ne[Be]=Re[Be]))})})}function O3(fe){return fe&&typeof fe.getElementsByTagName<"u"&&fe}function _c(fe){var _e,Re=fe?fe.ownerDocument||fe:S;return Re==ae||Re.nodeType!==9||!Re.documentElement||(ae=Re,be=ae.documentElement,pe=!A.isXMLDoc(ae),$e=be.matches||be.webkitMatchesSelector||be.msMatchesSelector,be.msMatchesSelector&&S!=ae&&(_e=ae.defaultView)&&_e.top!==_e&&_e.addEventListener("unload",GQ),p.getById=ff(function(Ne){return be.appendChild(Ne).id=A.expando,!ae.getElementsByName||!ae.getElementsByName(A.expando).length}),p.disconnectedMatch=ff(function(Ne){return $e.call(Ne,"*")}),p.scope=ff(function(){return ae.querySelectorAll(":scope")}),p.cssHas=ff(function(){try{return ae.querySelector(":has(*,:jqfake)"),!1}catch{return!0}}),p.getById?(z.filter.ID=function(Ne){var Be=Ne.replace(el,tl);return function(nt){return nt.getAttribute("id")===Be}},z.find.ID=function(Ne,Be){if(typeof Be.getElementById<"u"&&pe){var nt=Be.getElementById(Ne);return nt?[nt]:[]}}):(z.filter.ID=function(Ne){var Be=Ne.replace(el,tl);return function(nt){var ut=typeof nt.getAttributeNode<"u"&&nt.getAttributeNode("id");return ut&&ut.value===Be}},z.find.ID=function(Ne,Be){if(typeof Be.getElementById<"u"&&pe){var nt,ut,Ct,dt=Be.getElementById(Ne);if(dt){if(nt=dt.getAttributeNode("id"),nt&&nt.value===Ne)return[dt];for(Ct=Be.getElementsByName(Ne),ut=0;dt=Ct[ut++];)if(nt=dt.getAttributeNode("id"),nt&&nt.value===Ne)return[dt]}return[]}}),z.find.TAG=function(Ne,Be){return typeof Be.getElementsByTagName<"u"?Be.getElementsByTagName(Ne):Be.querySelectorAll(Ne)},z.find.CLASS=function(Ne,Be){if(typeof Be.getElementsByClassName<"u"&&pe)return Be.getElementsByClassName(Ne)},Se=[],ff(function(Ne){var Be;be.appendChild(Ne).innerHTML="<a id='"+Fe+"' href='' disabled='disabled'></a><select id='"+Fe+"-\r\\' disabled='disabled'><option selected=''></option></select>",Ne.querySelectorAll("[selected]").length||Se.push("\\["+O+"*(?:value|"+lo+")"),Ne.querySelectorAll("[id~="+Fe+"-]").length||Se.push("~="),Ne.querySelectorAll("a#"+Fe+"+*").length||Se.push(".#.+[+~]"),Ne.querySelectorAll(":checked").length||Se.push(":checked"),Be=ae.createElement("input"),Be.setAttribute("type","hidden"),Ne.appendChild(Be).setAttribute("name","D"),be.appendChild(Ne).disabled=!0,Ne.querySelectorAll(":disabled").length!==2&&Se.push(":enabled",":disabled"),Be=ae.createElement("input"),Be.setAttribute("name",""),Ne.appendChild(Be),Ne.querySelectorAll("[name='']").length||Se.push("\\["+O+"*name"+O+"*="+O+`*(?:''|"")`)}),p.cssHas||Se.push(":has"),Se=Se.length&&new RegExp(Se.join("|")),Vn=function(Ne,Be){if(Ne===Be)return te=!0,0;var nt=!Ne.compareDocumentPosition-!Be.compareDocumentPosition;return nt||(nt=(Ne.ownerDocument||Ne)==(Be.ownerDocument||Be)?Ne.compareDocumentPosition(Be):1,nt&1||!p.sortDetached&&Be.compareDocumentPosition(Ne)===nt?Ne===ae||Ne.ownerDocument==S&&Jr.contains(S,Ne)?-1:Be===ae||Be.ownerDocument==S&&Jr.contains(S,Be)?1:Z?l.call(Z,Ne)-l.call(Z,Be):0:nt&4?-1:1)}),ae}Jr.matches=function(fe,_e){return Jr(fe,null,null,_e)},Jr.matchesSelector=function(fe,_e){if(_c(fe),pe&&!ms[_e+" "]&&(!Se||!Se.test(_e)))try{var Re=$e.call(fe,_e);if(Re||p.disconnectedMatch||fe.document&&fe.document.nodeType!==11)return Re}catch{ms(_e,!0)}return Jr(_e,ae,null,[fe]).length>0},Jr.contains=function(fe,_e){return(fe.ownerDocument||fe)!=ae&&_c(fe),A.contains(fe,_e)},Jr.attr=function(fe,_e){(fe.ownerDocument||fe)!=ae&&_c(fe);var Re=z.attrHandle[_e.toLowerCase()],Ne=Re&&h.call(z.attrHandle,_e.toLowerCase())?Re(fe,_e,!pe):void 0;return Ne!==void 0?Ne:fe.getAttribute(_e)},Jr.error=function(fe){throw new Error("Syntax error, unrecognized expression: "+fe)},A.uniqueSort=function(fe){var _e,Re=[],Ne=0,Be=0;if(te=!p.sortStable,Z=!p.sortStable&&i.call(fe,0),X.call(fe,Vn),te){for(;_e=fe[Be++];)_e===fe[Be]&&(Ne=Re.push(Be));for(;Ne--;)V.call(fe,Re[Ne],1)}return Z=null,fe},A.fn.uniqueSort=function(){return this.pushStack(A.uniqueSort(i.apply(this)))},z=A.expr={cacheLength:50,createPseudo:Ra,match:ho,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(fe){return fe[1]=fe[1].replace(el,tl),fe[3]=(fe[3]||fe[4]||fe[5]||"").replace(el,tl),fe[2]==="~="&&(fe[3]=" "+fe[3]+" "),fe.slice(0,4)},CHILD:function(fe){return fe[1]=fe[1].toLowerCase(),fe[1].slice(0,3)==="nth"?(fe[3]||Jr.error(fe[0]),fe[4]=+(fe[4]?fe[5]+(fe[6]||1):2*(fe[3]==="even"||fe[3]==="odd")),fe[5]=+(fe[7]+fe[8]||fe[3]==="odd")):fe[3]&&Jr.error(fe[0]),fe},PSEUDO:function(fe){var _e,Re=!fe[6]&&fe[2];return ho.CHILD.test(fe[0])?null:(fe[3]?fe[2]=fe[4]||fe[5]||"":Re&&uo.test(Re)&&(_e=ny(Re,!0))&&(_e=Re.indexOf(")",Re.length-_e)-Re.length)&&(fe[0]=fe[0].slice(0,_e),fe[2]=Re.slice(0,_e)),fe.slice(0,3))}},filter:{TAG:function(fe){var _e=fe.replace(el,tl).toLowerCase();return fe==="*"?function(){return!0}:function(Re){return H(Re,_e)}},CLASS:function(fe){var _e=er[fe+" "];return _e||(_e=new RegExp("(^|"+O+")"+fe+"("+O+"|$)"))&&er(fe,function(Re){return _e.test(typeof Re.className=="string"&&Re.className||typeof Re.getAttribute<"u"&&Re.getAttribute("class")||"")})},ATTR:function(fe,_e,Re){return function(Ne){var Be=Jr.attr(Ne,fe);return Be==null?_e==="!=":_e?(Be+="",_e==="="?Be===Re:_e==="!="?Be!==Re:_e==="^="?Re&&Be.indexOf(Re)===0:_e==="*="?Re&&Be.indexOf(Re)>-1:_e==="$="?Re&&Be.slice(-Re.length)===Re:_e==="~="?(" "+Be.replace(jr," ")+" ").indexOf(Re)>-1:_e==="|="?Be===Re||Be.slice(0,Re.length+1)===Re+"-":!1):!0}},CHILD:function(fe,_e,Re,Ne,Be){var nt=fe.slice(0,3)!=="nth",ut=fe.slice(-4)!=="last",Ct=_e==="of-type";return Ne===1&&Be===0?function(dt){return!!dt.parentNode}:function(dt,Sr,Yt){var tr,kr,Ut,on,ci,As=nt!==ut?"nextSibling":"previousSibling",ea=dt.parentNode,fo=Ct&&dt.nodeName.toLowerCase(),pf=!Yt&&!Ct,Hs=!1;if(ea){if(nt){for(;As;){for(Ut=dt;Ut=Ut[As];)if(Ct?H(Ut,fo):Ut.nodeType===1)return!1;ci=As=fe==="only"&&!ci&&"nextSibling"}return!0}if(ci=[ut?ea.firstChild:ea.lastChild],ut&&pf){for(kr=ea[Fe]||(ea[Fe]={}),tr=kr[fe]||[],on=tr[0]===Me&&tr[1],Hs=on&&tr[2],Ut=on&&ea.childNodes[on];Ut=++on&&Ut&&Ut[As]||(Hs=on=0)||ci.pop();)if(Ut.nodeType===1&&++Hs&&Ut===dt){kr[fe]=[Me,on,Hs];break}}else if(pf&&(kr=dt[Fe]||(dt[Fe]={}),tr=kr[fe]||[],on=tr[0]===Me&&tr[1],Hs=on),Hs===!1)for(;(Ut=++on&&Ut&&Ut[As]||(Hs=on=0)||ci.pop())&&!((Ct?H(Ut,fo):Ut.nodeType===1)&&++Hs&&(pf&&(kr=Ut[Fe]||(Ut[Fe]={}),kr[fe]=[Me,Hs]),Ut===dt)););return Hs-=Be,Hs===Ne||Hs%Ne===0&&Hs/Ne>=0}}},PSEUDO:function(fe,_e){var Re,Ne=z.pseudos[fe]||z.setFilters[fe.toLowerCase()]||Jr.error("unsupported pseudo: "+fe);return Ne[Fe]?Ne(_e):Ne.length>1?(Re=[fe,fe,"",_e],z.setFilters.hasOwnProperty(fe.toLowerCase())?Ra(function(Be,nt){for(var ut,Ct=Ne(Be,_e),dt=Ct.length;dt--;)ut=l.call(Be,Ct[dt]),Be[ut]=!(nt[ut]=Ct[dt])}):function(Be){return Ne(Be,0,Re)}):Ne}},pseudos:{not:Ra(function(fe){var _e=[],Re=[],Ne=P3(fe.replace(N,"$1"));return Ne[Fe]?Ra(function(Be,nt,ut,Ct){for(var dt,Sr=Ne(Be,null,Ct,[]),Yt=Be.length;Yt--;)(dt=Sr[Yt])&&(Be[Yt]=!(nt[Yt]=dt))}):function(Be,nt,ut){return _e[0]=Be,Ne(_e,null,ut,Re),_e[0]=null,!Re.pop()}}),has:Ra(function(fe){return function(_e){return Jr(fe,_e).length>0}}),contains:Ra(function(fe){return fe=fe.replace(el,tl),function(_e){return(_e.textContent||A.text(_e)).indexOf(fe)>-1}}),lang:Ra(function(fe){return ry.test(fe||"")||Jr.error("unsupported lang: "+fe),fe=fe.replace(el,tl).toLowerCase(),function(_e){var Re;do if(Re=pe?_e.lang:_e.getAttribute("xml:lang")||_e.getAttribute("lang"))return Re=Re.toLowerCase(),Re===fe||Re.indexOf(fe+"-")===0;while((_e=_e.parentNode)&&_e.nodeType===1);return!1}}),target:function(fe){var _e=t.location&&t.location.hash;return _e&&_e.slice(1)===fe.id},root:function(fe){return fe===be},focus:function(fe){return fe===XQ()&&ae.hasFocus()&&!!(fe.type||fe.href||~fe.tabIndex)},enabled:SI(!1),disabled:SI(!0),checked:function(fe){return H(fe,"input")&&!!fe.checked||H(fe,"option")&&!!fe.selected},selected:function(fe){return fe.parentNode&&fe.parentNode.selectedIndex,fe.selected===!0},empty:function(fe){for(fe=fe.firstChild;fe;fe=fe.nextSibling)if(fe.nodeType<6)return!1;return!0},parent:function(fe){return!z.pseudos.empty(fe)},header:function(fe){return vc.test(fe.nodeName)},input:function(fe){return wc.test(fe.nodeName)},button:function(fe){return H(fe,"input")&&fe.type==="button"||H(fe,"button")},text:function(fe){var _e;return H(fe,"input")&&fe.type==="text"&&((_e=fe.getAttribute("type"))==null||_e.toLowerCase()==="text")},first:Hu(function(){return[0]}),last:Hu(function(fe,_e){return[_e-1]}),eq:Hu(function(fe,_e,Re){return[Re<0?Re+_e:Re]}),even:Hu(function(fe,_e){for(var Re=0;Re<_e;Re+=2)fe.push(Re);return fe}),odd:Hu(function(fe,_e){for(var Re=1;Re<_e;Re+=2)fe.push(Re);return fe}),lt:Hu(function(fe,_e,Re){var Ne;for(Re<0?Ne=Re+_e:Re>_e?Ne=_e:Ne=Re;--Ne>=0;)fe.push(Ne);return fe}),gt:Hu(function(fe,_e,Re){for(var Ne=Re<0?Re+_e:Re;++Ne<_e;)fe.push(Ne);return fe})}},z.pseudos.nth=z.pseudos.eq;for(R in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})z.pseudos[R]=YQ(R);for(R in{submit:!0,reset:!0})z.pseudos[R]=JQ(R);function kI(){}kI.prototype=z.filters=z.pseudos,z.setFilters=new kI;function ny(fe,_e){var Re,Ne,Be,nt,ut,Ct,dt,Sr=Ir[fe+" "];if(Sr)return _e?0:Sr.slice(0);for(ut=fe,Ct=[],dt=z.preFilter;ut;){(!Re||(Ne=_n.exec(ut)))&&(Ne&&(ut=ut.slice(Ne[0].length)||ut),Ct.push(Be=[])),Re=!1,(Ne=ty.exec(ut))&&(Re=Ne.shift(),Be.push({value:Re,type:Ne[0].replace(N," ")}),ut=ut.slice(Re.length));for(nt in z.filter)(Ne=ho[nt].exec(ut))&&(!dt[nt]||(Ne=dt[nt](Ne)))&&(Re=Ne.shift(),Be.push({value:Re,type:nt,matches:Ne}),ut=ut.slice(Re.length));if(!Re)break}return _e?ut.length:ut?Jr.error(fe):Ir(fe,Ct).slice(0)}function xx(fe){for(var _e=0,Re=fe.length,Ne="";_e<Re;_e++)Ne+=fe[_e].value;return Ne}function Sx(fe,_e,Re){var Ne=_e.dir,Be=_e.next,nt=Be||Ne,ut=Re&&nt==="parentNode",Ct=We++;return _e.first?function(dt,Sr,Yt){for(;dt=dt[Ne];)if(dt.nodeType===1||ut)return fe(dt,Sr,Yt);return!1}:function(dt,Sr,Yt){var tr,kr,Ut=[Me,Ct];if(Yt){for(;dt=dt[Ne];)if((dt.nodeType===1||ut)&&fe(dt,Sr,Yt))return!0}else for(;dt=dt[Ne];)if(dt.nodeType===1||ut)if(kr=dt[Fe]||(dt[Fe]={}),Be&&H(dt,Be))dt=dt[Ne]||dt;else{if((tr=kr[nt])&&tr[0]===Me&&tr[1]===Ct)return Ut[2]=tr[2];if(kr[nt]=Ut,Ut[2]=fe(dt,Sr,Yt))return!0}return!1}}function M3(fe){return fe.length>1?function(_e,Re,Ne){for(var Be=fe.length;Be--;)if(!fe[Be](_e,Re,Ne))return!1;return!0}:fe[0]}function ZQ(fe,_e,Re){for(var Ne=0,Be=_e.length;Ne<Be;Ne++)Jr(fe,_e[Ne],Re);return Re}function kx(fe,_e,Re,Ne,Be){for(var nt,ut=[],Ct=0,dt=fe.length,Sr=_e!=null;Ct<dt;Ct++)(nt=fe[Ct])&&(!Re||Re(nt,Ne,Be))&&(ut.push(nt),Sr&&_e.push(Ct));return ut}function I3(fe,_e,Re,Ne,Be,nt){return Ne&&!Ne[Fe]&&(Ne=I3(Ne)),Be&&!Be[Fe]&&(Be=I3(Be,nt)),Ra(function(ut,Ct,dt,Sr){var Yt,tr,kr,Ut,on=[],ci=[],As=Ct.length,ea=ut||ZQ(_e||"*",dt.nodeType?[dt]:dt,[]),fo=fe&&(ut||!_e)?kx(ea,on,fe,dt,Sr):ea;if(Re?(Ut=Be||(ut?fe:As||Ne)?[]:Ct,Re(fo,Ut,dt,Sr)):Ut=fo,Ne)for(Yt=kx(Ut,ci),Ne(Yt,[],dt,Sr),tr=Yt.length;tr--;)(kr=Yt[tr])&&(Ut[ci[tr]]=!(fo[ci[tr]]=kr));if(ut){if(Be||fe){if(Be){for(Yt=[],tr=Ut.length;tr--;)(kr=Ut[tr])&&Yt.push(fo[tr]=kr);Be(null,Ut=[],Yt,Sr)}for(tr=Ut.length;tr--;)(kr=Ut[tr])&&(Yt=Be?l.call(ut,kr):on[tr])>-1&&(ut[Yt]=!(Ct[Yt]=kr))}}else Ut=kx(Ut===Ct?Ut.splice(As,Ut.length):Ut),Be?Be(null,Ct,Ut,Sr):re.apply(Ct,Ut)})}function N3(fe){for(var _e,Re,Ne,Be=fe.length,nt=z.relative[fe[0].type],ut=nt||z.relative[" "],Ct=nt?1:0,dt=Sx(function(tr){return tr===_e},ut,!0),Sr=Sx(function(tr){return l.call(_e,tr)>-1},ut,!0),Yt=[function(tr,kr,Ut){var on=!nt&&(Ut||kr!=K)||((_e=kr).nodeType?dt(tr,kr,Ut):Sr(tr,kr,Ut));return _e=null,on}];Ct<Be;Ct++)if(Re=z.relative[fe[Ct].type])Yt=[Sx(M3(Yt),Re)];else{if(Re=z.filter[fe[Ct].type].apply(null,fe[Ct].matches),Re[Fe]){for(Ne=++Ct;Ne<Be&&!z.relative[fe[Ne].type];Ne++);return I3(Ct>1&&M3(Yt),Ct>1&&xx(fe.slice(0,Ct-1).concat({value:fe[Ct-2].type===" "?"*":""})).replace(N,"$1"),Re,Ct<Ne&&N3(fe.slice(Ct,Ne)),Ne<Be&&N3(fe=fe.slice(Ne)),Ne<Be&&xx(fe))}Yt.push(Re)}return M3(Yt)}function QQ(fe,_e){var Re=_e.length>0,Ne=fe.length>0,Be=function(nt,ut,Ct,dt,Sr){var Yt,tr,kr,Ut=0,on="0",ci=nt&&[],As=[],ea=K,fo=nt||Ne&&z.find.TAG("*",Sr),pf=Me+=ea==null?1:Math.random()||.1,Hs=fo.length;for(Sr&&(K=ut==ae||ut||Sr);on!==Hs&&(Yt=fo[on])!=null;on++){if(Ne&&Yt){for(tr=0,!ut&&Yt.ownerDocument!=ae&&(_c(Yt),Ct=!pe);kr=fe[tr++];)if(kr(Yt,ut||ae,Ct)){re.call(dt,Yt);break}Sr&&(Me=pf)}Re&&((Yt=!kr&&Yt)&&Ut--,nt&&ci.push(Yt))}if(Ut+=on,Re&&on!==Ut){for(tr=0;kr=_e[tr++];)kr(ci,As,ut,Ct);if(nt){if(Ut>0)for(;on--;)ci[on]||As[on]||(As[on]=U.call(dt));As=kx(As)}re.apply(dt,As),Sr&&!nt&&As.length>0&&Ut+_e.length>1&&A.uniqueSort(dt)}return Sr&&(Me=pf,K=ea),ci};return Re?Ra(Be):Be}function P3(fe,_e){var Re,Ne=[],Be=[],nt=fr[fe+" "];if(!nt){for(_e||(_e=ny(fe)),Re=_e.length;Re--;)nt=N3(_e[Re]),nt[Fe]?Ne.push(nt):Be.push(nt);nt=fr(fe,QQ(Be,Ne)),nt.selector=fe}return nt}function EI(fe,_e,Re,Ne){var Be,nt,ut,Ct,dt,Sr=typeof fe=="function"&&fe,Yt=!Ne&&ny(fe=Sr.selector||fe);if(Re=Re||[],Yt.length===1){if(nt=Yt[0]=Yt[0].slice(0),nt.length>2&&(ut=nt[0]).type==="ID"&&_e.nodeType===9&&pe&&z.relative[nt[1].type]){if(_e=(z.find.ID(ut.matches[0].replace(el,tl),_e)||[])[0],_e)Sr&&(_e=_e.parentNode);else return Re;fe=fe.slice(nt.shift().value.length)}for(Be=ho.needsContext.test(fe)?0:nt.length;Be--&&(ut=nt[Be],!z.relative[Ct=ut.type]);)if((dt=z.find[Ct])&&(Ne=dt(ut.matches[0].replace(el,tl),R3.test(nt[0].type)&&O3(_e.parentNode)||_e))){if(nt.splice(Be,1),fe=Ne.length&&xx(nt),!fe)return re.apply(Re,Ne),Re;break}}return(Sr||P3(fe,Yt))(Ne,_e,!pe,Re,!_e||R3.test(fe)&&O3(_e.parentNode)||_e),Re}p.sortStable=Fe.split("").sort(Vn).join("")===Fe,_c(),p.sortDetached=ff(function(fe){return fe.compareDocumentPosition(ae.createElement("fieldset"))&1}),A.find=Jr,A.expr[":"]=A.expr.pseudos,A.unique=A.uniqueSort,Jr.compile=P3,Jr.select=EI,Jr.setDocument=_c,Jr.tokenize=ny,Jr.escape=A.escapeSelector,Jr.getText=A.text,Jr.isXML=A.isXMLDoc,Jr.selectors=A.expr,Jr.support=A.support,Jr.uniqueSort=A.uniqueSort})();var E=function(R,z,K){for(var Z=[],te=K!==void 0;(R=R[z])&&R.nodeType!==9;)if(R.nodeType===1){if(te&&A(R).is(K))break;Z.push(R)}return Z},I=function(R,z){for(var K=[];R;R=R.nextSibling)R.nodeType===1&&R!==z&&K.push(R);return K},D=A.expr.match.needsContext,F=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function Y(R,z,K){return g(z)?A.grep(R,function(Z,te){return!!z.call(Z,te,Z)!==K}):z.nodeType?A.grep(R,function(Z){return Z===z!==K}):typeof z!="string"?A.grep(R,function(Z){return l.call(z,Z)>-1!==K}):A.filter(z,R,K)}A.filter=function(R,z,K){var Z=z[0];return K&&(R=":not("+R+")"),z.length===1&&Z.nodeType===1?A.find.matchesSelector(Z,R)?[Z]:[]:A.find.matches(R,A.grep(z,function(te){return te.nodeType===1}))},A.fn.extend({find:function(R){var z,K,Z=this.length,te=this;if(typeof R!="string")return this.pushStack(A(R).filter(function(){for(z=0;z<Z;z++)if(A.contains(te[z],this))return!0}));for(K=this.pushStack([]),z=0;z<Z;z++)A.find(R,te[z],K);return Z>1?A.uniqueSort(K):K},filter:function(R){return this.pushStack(Y(this,R||[],!1))},not:function(R){return this.pushStack(Y(this,R||[],!0))},is:function(R){return!!Y(this,typeof R=="string"&&D.test(R)?A(R):R||[],!1).length}});var J,se=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,q=A.fn.init=function(R,z,K){var Z,te;if(!R)return this;if(K=K||J,typeof R=="string")if(R[0]==="<"&&R[R.length-1]===">"&&R.length>=3?Z=[null,R,null]:Z=se.exec(R),Z&&(Z[1]||!z))if(Z[1]){if(z=z instanceof A?z[0]:z,A.merge(this,A.parseHTML(Z[1],z&&z.nodeType?z.ownerDocument||z:b,!0)),F.test(Z[1])&&A.isPlainObject(z))for(Z in z)g(this[Z])?this[Z](z[Z]):this.attr(Z,z[Z]);return this}else return te=b.getElementById(Z[2]),te&&(this[0]=te,this.length=1),this;else return!z||z.jquery?(z||K).find(R):this.constructor(z).find(R);else{if(R.nodeType)return this[0]=R,this.length=1,this;if(g(R))return K.ready!==void 0?K.ready(R):R(A)}return A.makeArray(R,this)};q.prototype=A.fn,J=A(b);var ee=/^(?:parents|prev(?:Until|All))/,L={children:!0,contents:!0,next:!0,prev:!0};A.fn.extend({has:function(R){var z=A(R,this),K=z.length;return this.filter(function(){for(var Z=0;Z<K;Z++)if(A.contains(this,z[Z]))return!0})},closest:function(R,z){var K,Z=0,te=this.length,re=[],ae=typeof R!="string"&&A(R);if(!D.test(R)){for(;Z<te;Z++)for(K=this[Z];K&&K!==z;K=K.parentNode)if(K.nodeType<11&&(ae?ae.index(K)>-1:K.nodeType===1&&A.find.matchesSelector(K,R))){re.push(K);break}}return this.pushStack(re.length>1?A.uniqueSort(re):re)},index:function(R){return R?typeof R=="string"?l.call(A(R),this[0]):l.call(this,R.jquery?R[0]:R):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(R,z){return this.pushStack(A.uniqueSort(A.merge(this.get(),A(R,z))))},addBack:function(R){return this.add(R==null?this.prevObject:this.prevObject.filter(R))}});function P(R,z){for(;(R=R[z])&&R.nodeType!==1;);return R}A.each({parent:function(R){var z=R.parentNode;return z&&z.nodeType!==11?z:null},parents:function(R){return E(R,"parentNode")},parentsUntil:function(R,z,K){return E(R,"parentNode",K)},next:function(R){return P(R,"nextSibling")},prev:function(R){return P(R,"previousSibling")},nextAll:function(R){return E(R,"nextSibling")},prevAll:function(R){return E(R,"previousSibling")},nextUntil:function(R,z,K){return E(R,"nextSibling",K)},prevUntil:function(R,z,K){return E(R,"previousSibling",K)},siblings:function(R){return I((R.parentNode||{}).firstChild,R)},children:function(R){return I(R.firstChild)},contents:function(R){return R.contentDocument!=null&&s(R.contentDocument)?R.contentDocument:(H(R,"template")&&(R=R.content||R),A.merge([],R.childNodes))}},function(R,z){A.fn[R]=function(K,Z){var te=A.map(this,z,K);return R.slice(-5)!=="Until"&&(Z=K),Z&&typeof Z=="string"&&(te=A.filter(Z,te)),this.length>1&&(L[R]||A.uniqueSort(te),ee.test(R)&&te.reverse()),this.pushStack(te)}});var G=/[^\x20\t\r\n\f]+/g;function ne(R){var z={};return A.each(R.match(G)||[],function(K,Z){z[Z]=!0}),z}A.Callbacks=function(R){R=typeof R=="string"?ne(R):A.extend({},R);var z,K,Z,te,re=[],ae=[],be=-1,pe=function(){for(te=te||R.once,Z=z=!0;ae.length;be=-1)for(K=ae.shift();++be<re.length;)re[be].apply(K[0],K[1])===!1&&R.stopOnFalse&&(be=re.length,K=!1);R.memory||(K=!1),z=!1,te&&(K?re=[]:re="")},Se={add:function(){return re&&(K&&!z&&(be=re.length-1,ae.push(K)),function $e(Fe){A.each(Fe,function(Me,We){g(We)?(!R.unique||!Se.has(We))&&re.push(We):We&&We.length&&T(We)!=="string"&&$e(We)})}(arguments),K&&!z&&pe()),this},remove:function(){return A.each(arguments,function($e,Fe){for(var Me;(Me=A.inArray(Fe,re,Me))>-1;)re.splice(Me,1),Me<=be&&be--}),this},has:function($e){return $e?A.inArray($e,re)>-1:re.length>0},empty:function(){return re&&(re=[]),this},disable:function(){return te=ae=[],re=K="",this},disabled:function(){return!re},lock:function(){return te=ae=[],!K&&!z&&(re=K=""),this},locked:function(){return!!te},fireWith:function($e,Fe){return te||(Fe=Fe||[],Fe=[$e,Fe.slice?Fe.slice():Fe],ae.push(Fe),z||pe()),this},fire:function(){return Se.fireWith(this,arguments),this},fired:function(){return!!Z}};return Se};function ce(R){return R}function ie(R){throw R}function ue(R,z,K,Z){var te;try{R&&g(te=R.promise)?te.call(R).done(z).fail(K):R&&g(te=R.then)?te.call(R,z,K):z.apply(void 0,[R].slice(Z))}catch(re){K.apply(void 0,[re])}}A.extend({Deferred:function(R){var z=[["notify","progress",A.Callbacks("memory"),A.Callbacks("memory"),2],["resolve","done",A.Callbacks("once memory"),A.Callbacks("once memory"),0,"resolved"],["reject","fail",A.Callbacks("once memory"),A.Callbacks("once memory"),1,"rejected"]],K="pending",Z={state:function(){return K},always:function(){return te.done(arguments).fail(arguments),this},catch:function(re){return Z.then(null,re)},pipe:function(){var re=arguments;return A.Deferred(function(ae){A.each(z,function(be,pe){var Se=g(re[pe[4]])&&re[pe[4]];te[pe[1]](function(){var $e=Se&&Se.apply(this,arguments);$e&&g($e.promise)?$e.promise().progress(ae.notify).done(ae.resolve).fail(ae.reject):ae[pe[0]+"With"](this,Se?[$e]:arguments)})}),re=null}).promise()},then:function(re,ae,be){var pe=0;function Se($e,Fe,Me,We){return function(){var er=this,Ir=arguments,fr=function(){var Vn,lo;if(!($e<pe)){if(Vn=Me.apply(er,Ir),Vn===Fe.promise())throw new TypeError("Thenable self-resolution");lo=Vn&&(typeof Vn=="object"||typeof Vn=="function")&&Vn.then,g(lo)?We?lo.call(Vn,Se(pe,Fe,ce,We),Se(pe,Fe,ie,We)):(pe++,lo.call(Vn,Se(pe,Fe,ce,We),Se(pe,Fe,ie,We),Se(pe,Fe,ce,Fe.notifyWith))):(Me!==ce&&(er=void 0,Ir=[Vn]),(We||Fe.resolveWith)(er,Ir))}},ms=We?fr:function(){try{fr()}catch(Vn){A.Deferred.exceptionHook&&A.Deferred.exceptionHook(Vn,ms.error),$e+1>=pe&&(Me!==ie&&(er=void 0,Ir=[Vn]),Fe.rejectWith(er,Ir))}};$e?ms():(A.Deferred.getErrorHook?ms.error=A.Deferred.getErrorHook():A.Deferred.getStackHook&&(ms.error=A.Deferred.getStackHook()),t.setTimeout(ms))}}return A.Deferred(function($e){z[0][3].add(Se(0,$e,g(be)?be:ce,$e.notifyWith)),z[1][3].add(Se(0,$e,g(re)?re:ce)),z[2][3].add(Se(0,$e,g(ae)?ae:ie))}).promise()},promise:function(re){return re!=null?A.extend(re,Z):Z}},te={};return A.each(z,function(re,ae){var be=ae[2],pe=ae[5];Z[ae[1]]=be.add,pe&&be.add(function(){K=pe},z[3-re][2].disable,z[3-re][3].disable,z[0][2].lock,z[0][3].lock),be.add(ae[3].fire),te[ae[0]]=function(){return te[ae[0]+"With"](this===te?void 0:this,arguments),this},te[ae[0]+"With"]=be.fireWith}),Z.promise(te),R&&R.call(te,te),te},when:function(R){var z=arguments.length,K=z,Z=Array(K),te=i.call(arguments),re=A.Deferred(),ae=function(be){return function(pe){Z[be]=this,te[be]=arguments.length>1?i.call(arguments):pe,--z||re.resolveWith(Z,te)}};if(z<=1&&(ue(R,re.done(ae(K)).resolve,re.reject,!z),re.state()==="pending"||g(te[K]&&te[K].then)))return re.then();for(;K--;)ue(te[K],ae(K),re.reject);return re.promise()}});var ve=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;A.Deferred.exceptionHook=function(R,z){t.console&&t.console.warn&&R&&ve.test(R.name)&&t.console.warn("jQuery.Deferred exception: "+R.message,R.stack,z)},A.readyException=function(R){t.setTimeout(function(){throw R})};var we=A.Deferred();A.fn.ready=function(R){return we.then(R).catch(function(z){A.readyException(z)}),this},A.extend({isReady:!1,readyWait:1,ready:function(R){(R===!0?--A.readyWait:A.isReady)||(A.isReady=!0,!(R!==!0&&--A.readyWait>0)&&we.resolveWith(b,[A]))}}),A.ready.then=we.then;function le(){b.removeEventListener("DOMContentLoaded",le),t.removeEventListener("load",le),A.ready()}b.readyState==="complete"||b.readyState!=="loading"&&!b.documentElement.doScroll?t.setTimeout(A.ready):(b.addEventListener("DOMContentLoaded",le),t.addEventListener("load",le));var me=function(R,z,K,Z,te,re,ae){var be=0,pe=R.length,Se=K==null;if(T(K)==="object"){te=!0;for(be in K)me(R,z,be,K[be],!0,re,ae)}else if(Z!==void 0&&(te=!0,g(Z)||(ae=!0),Se&&(ae?(z.call(R,Z),z=null):(Se=z,z=function($e,Fe,Me){return Se.call(A($e),Me)})),z))for(;be<pe;be++)z(R[be],K,ae?Z:Z.call(R[be],be,z(R[be],K)));return te?R:Se?z.call(R):pe?z(R[0],K):re},ge=/^-ms-/,ke=/-([a-z])/g;function xe(R,z){return z.toUpperCase()}function Ee(R){return R.replace(ge,"ms-").replace(ke,xe)}var Ie=function(R){return R.nodeType===1||R.nodeType===9||!+R.nodeType};function Pe(){this.expando=A.expando+Pe.uid++}Pe.uid=1,Pe.prototype={cache:function(R){var z=R[this.expando];return z||(z={},Ie(R)&&(R.nodeType?R[this.expando]=z:Object.defineProperty(R,this.expando,{value:z,configurable:!0}))),z},set:function(R,z,K){var Z,te=this.cache(R);if(typeof z=="string")te[Ee(z)]=K;else for(Z in z)te[Ee(Z)]=z[Z];return te},get:function(R,z){return z===void 0?this.cache(R):R[this.expando]&&R[this.expando][Ee(z)]},access:function(R,z,K){return z===void 0||z&&typeof z=="string"&&K===void 0?this.get(R,z):(this.set(R,z,K),K!==void 0?K:z)},remove:function(R,z){var K,Z=R[this.expando];if(Z!==void 0){if(z!==void 0)for(Array.isArray(z)?z=z.map(Ee):(z=Ee(z),z=z in Z?[z]:z.match(G)||[]),K=z.length;K--;)delete Z[z[K]];(z===void 0||A.isEmptyObject(Z))&&(R.nodeType?R[this.expando]=void 0:delete R[this.expando])}},hasData:function(R){var z=R[this.expando];return z!==void 0&&!A.isEmptyObject(z)}};var Ae=new Pe,Ge=new Pe,st=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,et=/[A-Z]/g;function Rt(R){return R==="true"?!0:R==="false"?!1:R==="null"?null:R===+R+""?+R:st.test(R)?JSON.parse(R):R}function _t(R,z,K){var Z;if(K===void 0&&R.nodeType===1)if(Z="data-"+z.replace(et,"-$&").toLowerCase(),K=R.getAttribute(Z),typeof K=="string"){try{K=Rt(K)}catch{}Ge.set(R,z,K)}else K=void 0;return K}A.extend({hasData:function(R){return Ge.hasData(R)||Ae.hasData(R)},data:function(R,z,K){return Ge.access(R,z,K)},removeData:function(R,z){Ge.remove(R,z)},_data:function(R,z,K){return Ae.access(R,z,K)},_removeData:function(R,z){Ae.remove(R,z)}}),A.fn.extend({data:function(R,z){var K,Z,te,re=this[0],ae=re&&re.attributes;if(R===void 0){if(this.length&&(te=Ge.get(re),re.nodeType===1&&!Ae.get(re,"hasDataAttrs"))){for(K=ae.length;K--;)ae[K]&&(Z=ae[K].name,Z.indexOf("data-")===0&&(Z=Ee(Z.slice(5)),_t(re,Z,te[Z])));Ae.set(re,"hasDataAttrs",!0)}return te}return typeof R=="object"?this.each(function(){Ge.set(this,R)}):me(this,function(be){var pe;if(re&&be===void 0)return pe=Ge.get(re,R),pe!==void 0||(pe=_t(re,R),pe!==void 0)?pe:void 0;this.each(function(){Ge.set(this,R,be)})},null,z,arguments.length>1,null,!0)},removeData:function(R){return this.each(function(){Ge.remove(this,R)})}}),A.extend({queue:function(R,z,K){var Z;if(R)return z=(z||"fx")+"queue",Z=Ae.get(R,z),K&&(!Z||Array.isArray(K)?Z=Ae.access(R,z,A.makeArray(K)):Z.push(K)),Z||[]},dequeue:function(R,z){z=z||"fx";var K=A.queue(R,z),Z=K.length,te=K.shift(),re=A._queueHooks(R,z),ae=function(){A.dequeue(R,z)};te==="inprogress"&&(te=K.shift(),Z--),te&&(z==="fx"&&K.unshift("inprogress"),delete re.stop,te.call(R,ae,re)),!Z&&re&&re.empty.fire()},_queueHooks:function(R,z){var K=z+"queueHooks";return Ae.get(R,K)||Ae.access(R,K,{empty:A.Callbacks("once memory").add(function(){Ae.remove(R,[z+"queue",K])})})}}),A.fn.extend({queue:function(R,z){var K=2;return typeof R!="string"&&(z=R,R="fx",K--),arguments.length<K?A.queue(this[0],R):z===void 0?this:this.each(function(){var Z=A.queue(this,R,z);A._queueHooks(this,R),R==="fx"&&Z[0]!=="inprogress"&&A.dequeue(this,R)})},dequeue:function(R){return this.each(function(){A.dequeue(this,R)})},clearQueue:function(R){return this.queue(R||"fx",[])},promise:function(R,z){var K,Z=1,te=A.Deferred(),re=this,ae=this.length,be=function(){--Z||te.resolveWith(re,[re])};for(typeof R!="string"&&(z=R,R=void 0),R=R||"fx";ae--;)K=Ae.get(re[ae],R+"queueHooks"),K&&K.empty&&(Z++,K.empty.add(be));return be(),te.promise(z)}});var xt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,yt=new RegExp("^(?:([+-])=|)("+xt+")([a-z%]*)$","i"),Qe=["Top","Right","Bottom","Left"],Ve=b.documentElement,it=function(R){return A.contains(R.ownerDocument,R)},wt={composed:!0};Ve.getRootNode&&(it=function(R){return A.contains(R.ownerDocument,R)||R.getRootNode(wt)===R.ownerDocument});var ct=function(R,z){return R=z||R,R.style.display==="none"||R.style.display===""&&it(R)&&A.css(R,"display")==="none"};function dr(R,z,K,Z){var te,re,ae=20,be=Z?function(){return Z.cur()}:function(){return A.css(R,z,"")},pe=be(),Se=K&&K[3]||(A.cssNumber[z]?"":"px"),$e=R.nodeType&&(A.cssNumber[z]||Se!=="px"&&+pe)&&yt.exec(A.css(R,z));if($e&&$e[3]!==Se){for(pe=pe/2,Se=Se||$e[3],$e=+pe||1;ae--;)A.style(R,z,$e+Se),(1-re)*(1-(re=be()/pe||.5))<=0&&(ae=0),$e=$e/re;$e=$e*2,A.style(R,z,$e+Se),K=K||[]}return K&&($e=+$e||+pe||0,te=K[1]?$e+(K[1]+1)*K[2]:+K[2],Z&&(Z.unit=Se,Z.start=$e,Z.end=te)),te}var Or={};function Pt(R){var z,K=R.ownerDocument,Z=R.nodeName,te=Or[Z];return te||(z=K.body.appendChild(K.createElement(Z)),te=A.css(z,"display"),z.parentNode.removeChild(z),te==="none"&&(te="block"),Or[Z]=te,te)}function hr(R,z){for(var K,Z,te=[],re=0,ae=R.length;re<ae;re++)Z=R[re],Z.style&&(K=Z.style.display,z?(K==="none"&&(te[re]=Ae.get(Z,"display")||null,te[re]||(Z.style.display="")),Z.style.display===""&&ct(Z)&&(te[re]=Pt(Z))):K!=="none"&&(te[re]="none",Ae.set(Z,"display",K)));for(re=0;re<ae;re++)te[re]!=null&&(R[re].style.display=te[re]);return R}A.fn.extend({show:function(){return hr(this,!0)},hide:function(){return hr(this)},toggle:function(R){return typeof R=="boolean"?R?this.show():this.hide():this.each(function(){ct(this)?A(this).show():A(this).hide()})}});var sr=/^(?:checkbox|radio)$/i,Wt=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Hr=/^$|^module$|\/(?:java|ecma)script/i;(function(){var R=b.createDocumentFragment(),z=R.appendChild(b.createElement("div")),K=b.createElement("input");K.setAttribute("type","radio"),K.setAttribute("checked","checked"),K.setAttribute("name","t"),z.appendChild(K),p.checkClone=z.cloneNode(!0).cloneNode(!0).lastChild.checked,z.innerHTML="<textarea>x</textarea>",p.noCloneChecked=!!z.cloneNode(!0).lastChild.defaultValue,z.innerHTML="<option></option>",p.option=!!z.lastChild})();var Qt={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};Qt.tbody=Qt.tfoot=Qt.colgroup=Qt.caption=Qt.thead,Qt.th=Qt.td,p.option||(Qt.optgroup=Qt.option=[1,"<select multiple='multiple'>","</select>"]);function pt(R,z){var K;return typeof R.getElementsByTagName<"u"?K=R.getElementsByTagName(z||"*"):typeof R.querySelectorAll<"u"?K=R.querySelectorAll(z||"*"):K=[],z===void 0||z&&H(R,z)?A.merge([R],K):K}function gr(R,z){for(var K=0,Z=R.length;K<Z;K++)Ae.set(R[K],"globalEval",!z||Ae.get(z[K],"globalEval"))}var qr=/<|&#?\w+;/;function Ht(R,z,K,Z,te){for(var re,ae,be,pe,Se,$e,Fe=z.createDocumentFragment(),Me=[],We=0,er=R.length;We<er;We++)if(re=R[We],re||re===0)if(T(re)==="object")A.merge(Me,re.nodeType?[re]:re);else if(!qr.test(re))Me.push(z.createTextNode(re));else{for(ae=ae||Fe.appendChild(z.createElement("div")),be=(Wt.exec(re)||["",""])[1].toLowerCase(),pe=Qt[be]||Qt._default,ae.innerHTML=pe[1]+A.htmlPrefilter(re)+pe[2],$e=pe[0];$e--;)ae=ae.lastChild;A.merge(Me,ae.childNodes),ae=Fe.firstChild,ae.textContent=""}for(Fe.textContent="",We=0;re=Me[We++];){if(Z&&A.inArray(re,Z)>-1){te&&te.push(re);continue}if(Se=it(re),ae=pt(Fe.appendChild(re),"script"),Se&&gr(ae),K)for($e=0;re=ae[$e++];)Hr.test(re.type||"")&&K.push(re)}return Fe}var Rr=/^([^.]*)(?:\.(.+)|)/;function Er(){return!0}function qt(){return!1}function ye(R,z,K,Z,te,re){var ae,be;if(typeof z=="object"){typeof K!="string"&&(Z=Z||K,K=void 0);for(be in z)ye(R,be,K,Z,z[be],re);return R}if(Z==null&&te==null?(te=K,Z=K=void 0):te==null&&(typeof K=="string"?(te=Z,Z=void 0):(te=Z,Z=K,K=void 0)),te===!1)te=qt;else if(!te)return R;return re===1&&(ae=te,te=function(pe){return A().off(pe),ae.apply(this,arguments)},te.guid=ae.guid||(ae.guid=A.guid++)),R.each(function(){A.event.add(this,z,te,Z,K)})}A.event={global:{},add:function(R,z,K,Z,te){var re,ae,be,pe,Se,$e,Fe,Me,We,er,Ir,fr=Ae.get(R);if(Ie(R))for(K.handler&&(re=K,K=re.handler,te=re.selector),te&&A.find.matchesSelector(Ve,te),K.guid||(K.guid=A.guid++),(pe=fr.events)||(pe=fr.events=Object.create(null)),(ae=fr.handle)||(ae=fr.handle=function(ms){return typeof A<"u"&&A.event.triggered!==ms.type?A.event.dispatch.apply(R,arguments):void 0}),z=(z||"").match(G)||[""],Se=z.length;Se--;)be=Rr.exec(z[Se])||[],We=Ir=be[1],er=(be[2]||"").split(".").sort(),We&&(Fe=A.event.special[We]||{},We=(te?Fe.delegateType:Fe.bindType)||We,Fe=A.event.special[We]||{},$e=A.extend({type:We,origType:Ir,data:Z,handler:K,guid:K.guid,selector:te,needsContext:te&&A.expr.match.needsContext.test(te),namespace:er.join(".")},re),(Me=pe[We])||(Me=pe[We]=[],Me.delegateCount=0,(!Fe.setup||Fe.setup.call(R,Z,er,ae)===!1)&&R.addEventListener&&R.addEventListener(We,ae)),Fe.add&&(Fe.add.call(R,$e),$e.handler.guid||($e.handler.guid=K.guid)),te?Me.splice(Me.delegateCount++,0,$e):Me.push($e),A.event.global[We]=!0)},remove:function(R,z,K,Z,te){var re,ae,be,pe,Se,$e,Fe,Me,We,er,Ir,fr=Ae.hasData(R)&&Ae.get(R);if(!(!fr||!(pe=fr.events))){for(z=(z||"").match(G)||[""],Se=z.length;Se--;){if(be=Rr.exec(z[Se])||[],We=Ir=be[1],er=(be[2]||"").split(".").sort(),!We){for(We in pe)A.event.remove(R,We+z[Se],K,Z,!0);continue}for(Fe=A.event.special[We]||{},We=(Z?Fe.delegateType:Fe.bindType)||We,Me=pe[We]||[],be=be[2]&&new RegExp("(^|\\.)"+er.join("\\.(?:.*\\.|)")+"(\\.|$)"),ae=re=Me.length;re--;)$e=Me[re],(te||Ir===$e.origType)&&(!K||K.guid===$e.guid)&&(!be||be.test($e.namespace))&&(!Z||Z===$e.selector||Z==="**"&&$e.selector)&&(Me.splice(re,1),$e.selector&&Me.delegateCount--,Fe.remove&&Fe.remove.call(R,$e));ae&&!Me.length&&((!Fe.teardown||Fe.teardown.call(R,er,fr.handle)===!1)&&A.removeEvent(R,We,fr.handle),delete pe[We])}A.isEmptyObject(pe)&&Ae.remove(R,"handle events")}},dispatch:function(R){var z,K,Z,te,re,ae,be=new Array(arguments.length),pe=A.event.fix(R),Se=(Ae.get(this,"events")||Object.create(null))[pe.type]||[],$e=A.event.special[pe.type]||{};for(be[0]=pe,z=1;z<arguments.length;z++)be[z]=arguments[z];if(pe.delegateTarget=this,!($e.preDispatch&&$e.preDispatch.call(this,pe)===!1)){for(ae=A.event.handlers.call(this,pe,Se),z=0;(te=ae[z++])&&!pe.isPropagationStopped();)for(pe.currentTarget=te.elem,K=0;(re=te.handlers[K++])&&!pe.isImmediatePropagationStopped();)(!pe.rnamespace||re.namespace===!1||pe.rnamespace.test(re.namespace))&&(pe.handleObj=re,pe.data=re.data,Z=((A.event.special[re.origType]||{}).handle||re.handler).apply(te.elem,be),Z!==void 0&&(pe.result=Z)===!1&&(pe.preventDefault(),pe.stopPropagation()));return $e.postDispatch&&$e.postDispatch.call(this,pe),pe.result}},handlers:function(R,z){var K,Z,te,re,ae,be=[],pe=z.delegateCount,Se=R.target;if(pe&&Se.nodeType&&!(R.type==="click"&&R.button>=1)){for(;Se!==this;Se=Se.parentNode||this)if(Se.nodeType===1&&!(R.type==="click"&&Se.disabled===!0)){for(re=[],ae={},K=0;K<pe;K++)Z=z[K],te=Z.selector+" ",ae[te]===void 0&&(ae[te]=Z.needsContext?A(te,this).index(Se)>-1:A.find(te,this,null,[Se]).length),ae[te]&&re.push(Z);re.length&&be.push({elem:Se,handlers:re})}}return Se=this,pe<z.length&&be.push({elem:Se,handlers:z.slice(pe)}),be},addProp:function(R,z){Object.defineProperty(A.Event.prototype,R,{enumerable:!0,configurable:!0,get:g(z)?function(){if(this.originalEvent)return z(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[R]},set:function(K){Object.defineProperty(this,R,{enumerable:!0,configurable:!0,writable:!0,value:K})}})},fix:function(R){return R[A.expando]?R:new A.Event(R)},special:{load:{noBubble:!0},click:{setup:function(R){var z=this||R;return sr.test(z.type)&&z.click&&H(z,"input")&&Ce(z,"click",!0),!1},trigger:function(R){var z=this||R;return sr.test(z.type)&&z.click&&H(z,"input")&&Ce(z,"click"),!0},_default:function(R){var z=R.target;return sr.test(z.type)&&z.click&&H(z,"input")&&Ae.get(z,"click")||H(z,"a")}},beforeunload:{postDispatch:function(R){R.result!==void 0&&R.originalEvent&&(R.originalEvent.returnValue=R.result)}}}};function Ce(R,z,K){if(!K){Ae.get(R,z)===void 0&&A.event.add(R,z,Er);return}Ae.set(R,z,!1),A.event.add(R,z,{namespace:!1,handler:function(Z){var te,re=Ae.get(this,z);if(Z.isTrigger&1&&this[z]){if(re)(A.event.special[z]||{}).delegateType&&Z.stopPropagation();else if(re=i.call(arguments),Ae.set(this,z,re),this[z](),te=Ae.get(this,z),Ae.set(this,z,!1),re!==te)return Z.stopImmediatePropagation(),Z.preventDefault(),te}else re&&(Ae.set(this,z,A.event.trigger(re[0],re.slice(1),this)),Z.stopPropagation(),Z.isImmediatePropagationStopped=Er)}})}A.removeEvent=function(R,z,K){R.removeEventListener&&R.removeEventListener(z,K)},A.Event=function(R,z){if(!(this instanceof A.Event))return new A.Event(R,z);R&&R.type?(this.originalEvent=R,this.type=R.type,this.isDefaultPrevented=R.defaultPrevented||R.defaultPrevented===void 0&&R.returnValue===!1?Er:qt,this.target=R.target&&R.target.nodeType===3?R.target.parentNode:R.target,this.currentTarget=R.currentTarget,this.relatedTarget=R.relatedTarget):this.type=R,z&&A.extend(this,z),this.timeStamp=R&&R.timeStamp||Date.now(),this[A.expando]=!0},A.Event.prototype={constructor:A.Event,isDefaultPrevented:qt,isPropagationStopped:qt,isImmediatePropagationStopped:qt,isSimulated:!1,preventDefault:function(){var R=this.originalEvent;this.isDefaultPrevented=Er,R&&!this.isSimulated&&R.preventDefault()},stopPropagation:function(){var R=this.originalEvent;this.isPropagationStopped=Er,R&&!this.isSimulated&&R.stopPropagation()},stopImmediatePropagation:function(){var R=this.originalEvent;this.isImmediatePropagationStopped=Er,R&&!this.isSimulated&&R.stopImmediatePropagation(),this.stopPropagation()}},A.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},A.event.addProp),A.each({focus:"focusin",blur:"focusout"},function(R,z){function K(Z){if(b.documentMode){var te=Ae.get(this,"handle"),re=A.event.fix(Z);re.type=Z.type==="focusin"?"focus":"blur",re.isSimulated=!0,te(Z),re.target===re.currentTarget&&te(re)}else A.event.simulate(z,Z.target,A.event.fix(Z))}A.event.special[R]={setup:function(){var Z;if(Ce(this,R,!0),b.documentMode)Z=Ae.get(this,z),Z||this.addEventListener(z,K),Ae.set(this,z,(Z||0)+1);else return!1},trigger:function(){return Ce(this,R),!0},teardown:function(){var Z;if(b.documentMode)Z=Ae.get(this,z)-1,Z?Ae.set(this,z,Z):(this.removeEventListener(z,K),Ae.remove(this,z));else return!1},_default:function(Z){return Ae.get(Z.target,R)},delegateType:z},A.event.special[z]={setup:function(){var Z=this.ownerDocument||this.document||this,te=b.documentMode?this:Z,re=Ae.get(te,z);re||(b.documentMode?this.addEventListener(z,K):Z.addEventListener(R,K,!0)),Ae.set(te,z,(re||0)+1)},teardown:function(){var Z=this.ownerDocument||this.document||this,te=b.documentMode?this:Z,re=Ae.get(te,z)-1;re?Ae.set(te,z,re):(b.documentMode?this.removeEventListener(z,K):Z.removeEventListener(R,K,!0),Ae.remove(te,z))}}}),A.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(R,z){A.event.special[R]={delegateType:z,bindType:z,handle:function(K){var Z,te=this,re=K.relatedTarget,ae=K.handleObj;return(!re||re!==te&&!A.contains(te,re))&&(K.type=ae.origType,Z=ae.handler.apply(this,arguments),K.type=z),Z}}}),A.fn.extend({on:function(R,z,K,Z){return ye(this,R,z,K,Z)},one:function(R,z,K,Z){return ye(this,R,z,K,Z,1)},off:function(R,z,K){var Z,te;if(R&&R.preventDefault&&R.handleObj)return Z=R.handleObj,A(R.delegateTarget).off(Z.namespace?Z.origType+"."+Z.namespace:Z.origType,Z.selector,Z.handler),this;if(typeof R=="object"){for(te in R)this.off(te,z,R[te]);return this}return(z===!1||typeof z=="function")&&(K=z,z=void 0),K===!1&&(K=qt),this.each(function(){A.event.remove(this,R,K,z)})}});var Le=/<script|<style|<link/i,tt=/checked\s*(?:[^=]|=\s*.checked.)/i,jt=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function rt(R,z){return H(R,"table")&&H(z.nodeType!==11?z:z.firstChild,"tr")&&A(R).children("tbody")[0]||R}function Vt(R){return R.type=(R.getAttribute("type")!==null)+"/"+R.type,R}function Dt(R){return(R.type||"").slice(0,5)==="true/"?R.type=R.type.slice(5):R.removeAttribute("type"),R}function Et(R,z){var K,Z,te,re,ae,be,pe;if(z.nodeType===1){if(Ae.hasData(R)&&(re=Ae.get(R),pe=re.events,pe)){Ae.remove(z,"handle events");for(te in pe)for(K=0,Z=pe[te].length;K<Z;K++)A.event.add(z,te,pe[te][K])}Ge.hasData(R)&&(ae=Ge.access(R),be=A.extend({},ae),Ge.set(z,be))}}function Xt(R,z){var K=z.nodeName.toLowerCase();K==="input"&&sr.test(R.type)?z.checked=R.checked:(K==="input"||K==="textarea")&&(z.defaultValue=R.defaultValue)}function Bt(R,z,K,Z){z=a(z);var te,re,ae,be,pe,Se,$e=0,Fe=R.length,Me=Fe-1,We=z[0],er=g(We);if(er||Fe>1&&typeof We=="string"&&!p.checkClone&&tt.test(We))return R.each(function(Ir){var fr=R.eq(Ir);er&&(z[0]=We.call(this,Ir,fr.html())),Bt(fr,z,K,Z)});if(Fe&&(te=Ht(z,R[0].ownerDocument,!1,R,Z),re=te.firstChild,te.childNodes.length===1&&(te=re),re||Z)){for(ae=A.map(pt(te,"script"),Vt),be=ae.length;$e<Fe;$e++)pe=te,$e!==Me&&(pe=A.clone(pe,!0,!0),be&&A.merge(ae,pt(pe,"script"))),K.call(R[$e],pe,$e);if(be)for(Se=ae[ae.length-1].ownerDocument,A.map(ae,Dt),$e=0;$e<be;$e++)pe=ae[$e],Hr.test(pe.type||"")&&!Ae.access(pe,"globalEval")&&A.contains(Se,pe)&&(pe.src&&(pe.type||"").toLowerCase()!=="module"?A._evalUrl&&!pe.noModule&&A._evalUrl(pe.src,{nonce:pe.nonce||pe.getAttribute("nonce")},Se):_(pe.textContent.replace(jt,""),pe,Se))}return R}function or(R,z,K){for(var Z,te=z?A.filter(z,R):R,re=0;(Z=te[re])!=null;re++)!K&&Z.nodeType===1&&A.cleanData(pt(Z)),Z.parentNode&&(K&&it(Z)&&gr(pt(Z,"script")),Z.parentNode.removeChild(Z));return R}A.extend({htmlPrefilter:function(R){return R},clone:function(R,z,K){var Z,te,re,ae,be=R.cloneNode(!0),pe=it(R);if(!p.noCloneChecked&&(R.nodeType===1||R.nodeType===11)&&!A.isXMLDoc(R))for(ae=pt(be),re=pt(R),Z=0,te=re.length;Z<te;Z++)Xt(re[Z],ae[Z]);if(z)if(K)for(re=re||pt(R),ae=ae||pt(be),Z=0,te=re.length;Z<te;Z++)Et(re[Z],ae[Z]);else Et(R,be);return ae=pt(be,"script"),ae.length>0&&gr(ae,!pe&&pt(R,"script")),be},cleanData:function(R){for(var z,K,Z,te=A.event.special,re=0;(K=R[re])!==void 0;re++)if(Ie(K)){if(z=K[Ae.expando]){if(z.events)for(Z in z.events)te[Z]?A.event.remove(K,Z):A.removeEvent(K,Z,z.handle);K[Ae.expando]=void 0}K[Ge.expando]&&(K[Ge.expando]=void 0)}}}),A.fn.extend({detach:function(R){return or(this,R,!0)},remove:function(R){return or(this,R)},text:function(R){return me(this,function(z){return z===void 0?A.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=z)})},null,R,arguments.length)},append:function(){return Bt(this,arguments,function(R){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var z=rt(this,R);z.appendChild(R)}})},prepend:function(){return Bt(this,arguments,function(R){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var z=rt(this,R);z.insertBefore(R,z.firstChild)}})},before:function(){return Bt(this,arguments,function(R){this.parentNode&&this.parentNode.insertBefore(R,this)})},after:function(){return Bt(this,arguments,function(R){this.parentNode&&this.parentNode.insertBefore(R,this.nextSibling)})},empty:function(){for(var R,z=0;(R=this[z])!=null;z++)R.nodeType===1&&(A.cleanData(pt(R,!1)),R.textContent="");return this},clone:function(R,z){return R=R??!1,z=z??R,this.map(function(){return A.clone(this,R,z)})},html:function(R){return me(this,function(z){var K=this[0]||{},Z=0,te=this.length;if(z===void 0&&K.nodeType===1)return K.innerHTML;if(typeof z=="string"&&!Le.test(z)&&!Qt[(Wt.exec(z)||["",""])[1].toLowerCase()]){z=A.htmlPrefilter(z);try{for(;Z<te;Z++)K=this[Z]||{},K.nodeType===1&&(A.cleanData(pt(K,!1)),K.innerHTML=z);K=0}catch{}}K&&this.empty().append(z)},null,R,arguments.length)},replaceWith:function(){var R=[];return Bt(this,arguments,function(z){var K=this.parentNode;A.inArray(this,R)<0&&(A.cleanData(pt(this)),K&&K.replaceChild(z,this))},R)}}),A.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(R,z){A.fn[R]=function(K){for(var Z,te=[],re=A(K),ae=re.length-1,be=0;be<=ae;be++)Z=be===ae?this:this.clone(!0),A(re[be])[z](Z),o.apply(te,Z.get());return this.pushStack(te)}});var an=new RegExp("^("+xt+")(?!px)[a-z%]+$","i"),Ur=/^--/,hn=function(R){var z=R.ownerDocument.defaultView;return(!z||!z.opener)&&(z=t),z.getComputedStyle(R)},vn=function(R,z,K){var Z,te,re={};for(te in z)re[te]=R.style[te],R.style[te]=z[te];Z=K.call(R);for(te in z)R.style[te]=re[te];return Z},Cs=new RegExp(Qe.join("|"),"i");(function(){function R(){if(Se){pe.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",Se.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",Ve.appendChild(pe).appendChild(Se);var $e=t.getComputedStyle(Se);K=$e.top!=="1%",be=z($e.marginLeft)===12,Se.style.right="60%",re=z($e.right)===36,Z=z($e.width)===36,Se.style.position="absolute",te=z(Se.offsetWidth/3)===12,Ve.removeChild(pe),Se=null}}function z($e){return Math.round(parseFloat($e))}var K,Z,te,re,ae,be,pe=b.createElement("div"),Se=b.createElement("div");Se.style&&(Se.style.backgroundClip="content-box",Se.cloneNode(!0).style.backgroundClip="",p.clearCloneStyle=Se.style.backgroundClip==="content-box",A.extend(p,{boxSizingReliable:function(){return R(),Z},pixelBoxStyles:function(){return R(),re},pixelPosition:function(){return R(),K},reliableMarginLeft:function(){return R(),be},scrollboxSize:function(){return R(),te},reliableTrDimensions:function(){var $e,Fe,Me,We;return ae==null&&($e=b.createElement("table"),Fe=b.createElement("tr"),Me=b.createElement("div"),$e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",Fe.style.cssText="box-sizing:content-box;border:1px solid",Fe.style.height="1px",Me.style.height="9px",Me.style.display="block",Ve.appendChild($e).appendChild(Fe).appendChild(Me),We=t.getComputedStyle(Fe),ae=parseInt(We.height,10)+parseInt(We.borderTopWidth,10)+parseInt(We.borderBottomWidth,10)===Fe.offsetHeight,Ve.removeChild($e)),ae}}))})();function he(R,z,K){var Z,te,re,ae,be=Ur.test(z),pe=R.style;return K=K||hn(R),K&&(ae=K.getPropertyValue(z)||K[z],be&&ae&&(ae=ae.replace(N,"$1")||void 0),ae===""&&!it(R)&&(ae=A.style(R,z)),!p.pixelBoxStyles()&&an.test(ae)&&Cs.test(z)&&(Z=pe.width,te=pe.minWidth,re=pe.maxWidth,pe.minWidth=pe.maxWidth=pe.width=ae,ae=K.width,pe.width=Z,pe.minWidth=te,pe.maxWidth=re)),ae!==void 0?ae+"":ae}function Te(R,z){return{get:function(){if(R()){delete this.get;return}return(this.get=z).apply(this,arguments)}}}var ze=["Webkit","Moz","ms"],qe=b.createElement("div").style,mt={};function Ye(R){for(var z=R[0].toUpperCase()+R.slice(1),K=ze.length;K--;)if(R=ze[K]+z,R in qe)return R}function Ze(R){var z=A.cssProps[R]||mt[R];return z||(R in qe?R:mt[R]=Ye(R)||R)}var vr=/^(none|table(?!-c[ea]).+)/,ir={position:"absolute",visibility:"hidden",display:"block"},lr={letterSpacing:"0",fontWeight:"400"};function Lt(R,z,K){var Z=yt.exec(z);return Z?Math.max(0,Z[2]-(K||0))+(Z[3]||"px"):z}function Mr(R,z,K,Z,te,re){var ae=z==="width"?1:0,be=0,pe=0,Se=0;if(K===(Z?"border":"content"))return 0;for(;ae<4;ae+=2)K==="margin"&&(Se+=A.css(R,K+Qe[ae],!0,te)),Z?(K==="content"&&(pe-=A.css(R,"padding"+Qe[ae],!0,te)),K!=="margin"&&(pe-=A.css(R,"border"+Qe[ae]+"Width",!0,te))):(pe+=A.css(R,"padding"+Qe[ae],!0,te),K!=="padding"?pe+=A.css(R,"border"+Qe[ae]+"Width",!0,te):be+=A.css(R,"border"+Qe[ae]+"Width",!0,te));return!Z&&re>=0&&(pe+=Math.max(0,Math.ceil(R["offset"+z[0].toUpperCase()+z.slice(1)]-re-pe-be-.5))||0),pe+Se}function Lr(R,z,K){var Z=hn(R),te=!p.boxSizingReliable()||K,re=te&&A.css(R,"boxSizing",!1,Z)==="border-box",ae=re,be=he(R,z,Z),pe="offset"+z[0].toUpperCase()+z.slice(1);if(an.test(be)){if(!K)return be;be="auto"}return(!p.boxSizingReliable()&&re||!p.reliableTrDimensions()&&H(R,"tr")||be==="auto"||!parseFloat(be)&&A.css(R,"display",!1,Z)==="inline")&&R.getClientRects().length&&(re=A.css(R,"boxSizing",!1,Z)==="border-box",ae=pe in R,ae&&(be=R[pe])),be=parseFloat(be)||0,be+Mr(R,z,K||(re?"border":"content"),ae,Z,be)+"px"}A.extend({cssHooks:{opacity:{get:function(R,z){if(z){var K=he(R,"opacity");return K===""?"1":K}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(R,z,K,Z){if(!(!R||R.nodeType===3||R.nodeType===8||!R.style)){var te,re,ae,be=Ee(z),pe=Ur.test(z),Se=R.style;if(pe||(z=Ze(be)),ae=A.cssHooks[z]||A.cssHooks[be],K!==void 0){if(re=typeof K,re==="string"&&(te=yt.exec(K))&&te[1]&&(K=dr(R,z,te),re="number"),K==null||K!==K)return;re==="number"&&!pe&&(K+=te&&te[3]||(A.cssNumber[be]?"":"px")),!p.clearCloneStyle&&K===""&&z.indexOf("background")===0&&(Se[z]="inherit"),(!ae||!("set"in ae)||(K=ae.set(R,K,Z))!==void 0)&&(pe?Se.setProperty(z,K):Se[z]=K)}else return ae&&"get"in ae&&(te=ae.get(R,!1,Z))!==void 0?te:Se[z]}},css:function(R,z,K,Z){var te,re,ae,be=Ee(z),pe=Ur.test(z);return pe||(z=Ze(be)),ae=A.cssHooks[z]||A.cssHooks[be],ae&&"get"in ae&&(te=ae.get(R,!0,K)),te===void 0&&(te=he(R,z,Z)),te==="normal"&&z in lr&&(te=lr[z]),K===""||K?(re=parseFloat(te),K===!0||isFinite(re)?re||0:te):te}}),A.each(["height","width"],function(R,z){A.cssHooks[z]={get:function(K,Z,te){if(Z)return vr.test(A.css(K,"display"))&&(!K.getClientRects().length||!K.getBoundingClientRect().width)?vn(K,ir,function(){return Lr(K,z,te)}):Lr(K,z,te)},set:function(K,Z,te){var re,ae=hn(K),be=!p.scrollboxSize()&&ae.position==="absolute",pe=be||te,Se=pe&&A.css(K,"boxSizing",!1,ae)==="border-box",$e=te?Mr(K,z,te,Se,ae):0;return Se&&be&&($e-=Math.ceil(K["offset"+z[0].toUpperCase()+z.slice(1)]-parseFloat(ae[z])-Mr(K,z,"border",!1,ae)-.5)),$e&&(re=yt.exec(Z))&&(re[3]||"px")!=="px"&&(K.style[z]=Z,Z=A.css(K,z)),Lt(K,Z,$e)}}}),A.cssHooks.marginLeft=Te(p.reliableMarginLeft,function(R,z){if(z)return(parseFloat(he(R,"marginLeft"))||R.getBoundingClientRect().left-vn(R,{marginLeft:0},function(){return R.getBoundingClientRect().left}))+"px"}),A.each({margin:"",padding:"",border:"Width"},function(R,z){A.cssHooks[R+z]={expand:function(K){for(var Z=0,te={},re=typeof K=="string"?K.split(" "):[K];Z<4;Z++)te[R+Qe[Z]+z]=re[Z]||re[Z-2]||re[0];return te}},R!=="margin"&&(A.cssHooks[R+z].set=Lt)}),A.fn.extend({css:function(R,z){return me(this,function(K,Z,te){var re,ae,be={},pe=0;if(Array.isArray(Z)){for(re=hn(K),ae=Z.length;pe<ae;pe++)be[Z[pe]]=A.css(K,Z[pe],!1,re);return be}return te!==void 0?A.style(K,Z,te):A.css(K,Z)},R,z,arguments.length>1)}});function ar(R,z,K,Z,te){return new ar.prototype.init(R,z,K,Z,te)}A.Tween=ar,ar.prototype={constructor:ar,init:function(R,z,K,Z,te,re){this.elem=R,this.prop=K,this.easing=te||A.easing._default,this.options=z,this.start=this.now=this.cur(),this.end=Z,this.unit=re||(A.cssNumber[K]?"":"px")},cur:function(){var R=ar.propHooks[this.prop];return R&&R.get?R.get(this):ar.propHooks._default.get(this)},run:function(R){var z,K=ar.propHooks[this.prop];return this.options.duration?this.pos=z=A.easing[this.easing](R,this.options.duration*R,0,1,this.options.duration):this.pos=z=R,this.now=(this.end-this.start)*z+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),K&&K.set?K.set(this):ar.propHooks._default.set(this),this}},ar.prototype.init.prototype=ar.prototype,ar.propHooks={_default:{get:function(R){var z;return R.elem.nodeType!==1||R.elem[R.prop]!=null&&R.elem.style[R.prop]==null?R.elem[R.prop]:(z=A.css(R.elem,R.prop,""),!z||z==="auto"?0:z)},set:function(R){A.fx.step[R.prop]?A.fx.step[R.prop](R):R.elem.nodeType===1&&(A.cssHooks[R.prop]||R.elem.style[Ze(R.prop)]!=null)?A.style(R.elem,R.prop,R.now+R.unit):R.elem[R.prop]=R.now}}},ar.propHooks.scrollTop=ar.propHooks.scrollLeft={set:function(R){R.elem.nodeType&&R.elem.parentNode&&(R.elem[R.prop]=R.now)}},A.easing={linear:function(R){return R},swing:function(R){return .5-Math.cos(R*Math.PI)/2},_default:"swing"},A.fx=ar.prototype.init,A.fx.step={};var Gr,gn,ps=/^(?:toggle|show|hide)$/,$i=/queueHooks$/;function Ca(){gn&&(b.hidden===!1&&t.requestAnimationFrame?t.requestAnimationFrame(Ca):t.setTimeout(Ca,A.fx.interval),A.fx.tick())}function Zo(){return t.setTimeout(function(){Gr=void 0}),Gr=Date.now()}function Ta(R,z){var K,Z=0,te={height:R};for(z=z?1:0;Z<4;Z+=2-z)K=Qe[Z],te["margin"+K]=te["padding"+K]=R;return z&&(te.opacity=te.width=R),te}function Qo(R,z,K){for(var Z,te=(Pn.tweeners[z]||[]).concat(Pn.tweeners["*"]),re=0,ae=te.length;re<ae;re++)if(Z=te[re].call(K,z,R))return Z}function Fr(R,z,K){var Z,te,re,ae,be,pe,Se,$e,Fe="width"in z||"height"in z,Me=this,We={},er=R.style,Ir=R.nodeType&&ct(R),fr=Ae.get(R,"fxshow");K.queue||(ae=A._queueHooks(R,"fx"),ae.unqueued==null&&(ae.unqueued=0,be=ae.empty.fire,ae.empty.fire=function(){ae.unqueued||be()}),ae.unqueued++,Me.always(function(){Me.always(function(){ae.unqueued--,A.queue(R,"fx").length||ae.empty.fire()})}));for(Z in z)if(te=z[Z],ps.test(te)){if(delete z[Z],re=re||te==="toggle",te===(Ir?"hide":"show"))if(te==="show"&&fr&&fr[Z]!==void 0)Ir=!0;else continue;We[Z]=fr&&fr[Z]||A.style(R,Z)}if(pe=!A.isEmptyObject(z),!(!pe&&A.isEmptyObject(We))){Fe&&R.nodeType===1&&(K.overflow=[er.overflow,er.overflowX,er.overflowY],Se=fr&&fr.display,Se==null&&(Se=Ae.get(R,"display")),$e=A.css(R,"display"),$e==="none"&&(Se?$e=Se:(hr([R],!0),Se=R.style.display||Se,$e=A.css(R,"display"),hr([R]))),($e==="inline"||$e==="inline-block"&&Se!=null)&&A.css(R,"float")==="none"&&(pe||(Me.done(function(){er.display=Se}),Se==null&&($e=er.display,Se=$e==="none"?"":$e)),er.display="inline-block")),K.overflow&&(er.overflow="hidden",Me.always(function(){er.overflow=K.overflow[0],er.overflowX=K.overflow[1],er.overflowY=K.overflow[2]})),pe=!1;for(Z in We)pe||(fr?"hidden"in fr&&(Ir=fr.hidden):fr=Ae.access(R,"fxshow",{display:Se}),re&&(fr.hidden=!Ir),Ir&&hr([R],!0),Me.done(function(){Ir||hr([R]),Ae.remove(R,"fxshow");for(Z in We)A.style(R,Z,We[Z])})),pe=Qo(Ir?fr[Z]:0,Z,Me),Z in fr||(fr[Z]=pe.start,Ir&&(pe.end=pe.start,pe.start=0))}}function Cr(R,z){var K,Z,te,re,ae;for(K in R)if(Z=Ee(K),te=z[Z],re=R[K],Array.isArray(re)&&(te=re[1],re=R[K]=re[0]),K!==Z&&(R[Z]=re,delete R[K]),ae=A.cssHooks[Z],ae&&"expand"in ae){re=ae.expand(re),delete R[Z];for(K in re)K in R||(R[K]=re[K],z[K]=te)}else z[Z]=te}function Pn(R,z,K){var Z,te,re=0,ae=Pn.prefilters.length,be=A.Deferred().always(function(){delete pe.elem}),pe=function(){if(te)return!1;for(var Fe=Gr||Zo(),Me=Math.max(0,Se.startTime+Se.duration-Fe),We=Me/Se.duration||0,er=1-We,Ir=0,fr=Se.tweens.length;Ir<fr;Ir++)Se.tweens[Ir].run(er);return be.notifyWith(R,[Se,er,Me]),er<1&&fr?Me:(fr||be.notifyWith(R,[Se,1,0]),be.resolveWith(R,[Se]),!1)},Se=be.promise({elem:R,props:A.extend({},z),opts:A.extend(!0,{specialEasing:{},easing:A.easing._default},K),originalProperties:z,originalOptions:K,startTime:Gr||Zo(),duration:K.duration,tweens:[],createTween:function(Fe,Me){var We=A.Tween(R,Se.opts,Fe,Me,Se.opts.specialEasing[Fe]||Se.opts.easing);return Se.tweens.push(We),We},stop:function(Fe){var Me=0,We=Fe?Se.tweens.length:0;if(te)return this;for(te=!0;Me<We;Me++)Se.tweens[Me].run(1);return Fe?(be.notifyWith(R,[Se,1,0]),be.resolveWith(R,[Se,Fe])):be.rejectWith(R,[Se,Fe]),this}}),$e=Se.props;for(Cr($e,Se.opts.specialEasing);re<ae;re++)if(Z=Pn.prefilters[re].call(Se,R,$e,Se.opts),Z)return g(Z.stop)&&(A._queueHooks(Se.elem,Se.opts.queue).stop=Z.stop.bind(Z)),Z;return A.map($e,Qo,Se),g(Se.opts.start)&&Se.opts.start.call(R,Se),Se.progress(Se.opts.progress).done(Se.opts.done,Se.opts.complete).fail(Se.opts.fail).always(Se.opts.always),A.fx.timer(A.extend(pe,{elem:R,anim:Se,queue:Se.opts.queue})),Se}A.Animation=A.extend(Pn,{tweeners:{"*":[function(R,z){var K=this.createTween(R,z);return dr(K.elem,R,yt.exec(z),K),K}]},tweener:function(R,z){g(R)?(z=R,R=["*"]):R=R.match(G);for(var K,Z=0,te=R.length;Z<te;Z++)K=R[Z],Pn.tweeners[K]=Pn.tweeners[K]||[],Pn.tweeners[K].unshift(z)},prefilters:[Fr],prefilter:function(R,z){z?Pn.prefilters.unshift(R):Pn.prefilters.push(R)}}),A.speed=function(R,z,K){var Z=R&&typeof R=="object"?A.extend({},R):{complete:K||!K&&z||g(R)&&R,duration:R,easing:K&&z||z&&!g(z)&&z};return A.fx.off?Z.duration=0:typeof Z.duration!="number"&&(Z.duration in A.fx.speeds?Z.duration=A.fx.speeds[Z.duration]:Z.duration=A.fx.speeds._default),(Z.queue==null||Z.queue===!0)&&(Z.queue="fx"),Z.old=Z.complete,Z.complete=function(){g(Z.old)&&Z.old.call(this),Z.queue&&A.dequeue(this,Z.queue)},Z},A.fn.extend({fadeTo:function(R,z,K,Z){return this.filter(ct).css("opacity",0).show().end().animate({opacity:z},R,K,Z)},animate:function(R,z,K,Z){var te=A.isEmptyObject(R),re=A.speed(z,K,Z),ae=function(){var be=Pn(this,A.extend({},R),re);(te||Ae.get(this,"finish"))&&be.stop(!0)};return ae.finish=ae,te||re.queue===!1?this.each(ae):this.queue(re.queue,ae)},stop:function(R,z,K){var Z=function(te){var re=te.stop;delete te.stop,re(K)};return typeof R!="string"&&(K=z,z=R,R=void 0),z&&this.queue(R||"fx",[]),this.each(function(){var te=!0,re=R!=null&&R+"queueHooks",ae=A.timers,be=Ae.get(this);if(re)be[re]&&be[re].stop&&Z(be[re]);else for(re in be)be[re]&&be[re].stop&&$i.test(re)&&Z(be[re]);for(re=ae.length;re--;)ae[re].elem===this&&(R==null||ae[re].queue===R)&&(ae[re].anim.stop(K),te=!1,ae.splice(re,1));(te||!K)&&A.dequeue(this,R)})},finish:function(R){return R!==!1&&(R=R||"fx"),this.each(function(){var z,K=Ae.get(this),Z=K[R+"queue"],te=K[R+"queueHooks"],re=A.timers,ae=Z?Z.length:0;for(K.finish=!0,A.queue(this,R,[]),te&&te.stop&&te.stop.call(this,!0),z=re.length;z--;)re[z].elem===this&&re[z].queue===R&&(re[z].anim.stop(!0),re.splice(z,1));for(z=0;z<ae;z++)Z[z]&&Z[z].finish&&Z[z].finish.call(this);delete K.finish})}}),A.each(["toggle","show","hide"],function(R,z){var K=A.fn[z];A.fn[z]=function(Z,te,re){return Z==null||typeof Z=="boolean"?K.apply(this,arguments):this.animate(Ta(z,!0),Z,te,re)}}),A.each({slideDown:Ta("show"),slideUp:Ta("hide"),slideToggle:Ta("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(R,z){A.fn[R]=function(K,Z,te){return this.animate(z,K,Z,te)}}),A.timers=[],A.fx.tick=function(){var R,z=0,K=A.timers;for(Gr=Date.now();z<K.length;z++)R=K[z],!R()&&K[z]===R&&K.splice(z--,1);K.length||A.fx.stop(),Gr=void 0},A.fx.timer=function(R){A.timers.push(R),A.fx.start()},A.fx.interval=13,A.fx.start=function(){gn||(gn=!0,Ca())},A.fx.stop=function(){gn=null},A.fx.speeds={slow:600,fast:200,_default:400},A.fn.delay=function(R,z){return R=A.fx&&A.fx.speeds[R]||R,z=z||"fx",this.queue(z,function(K,Z){var te=t.setTimeout(K,R);Z.stop=function(){t.clearTimeout(te)}})},function(){var R=b.createElement("input"),z=b.createElement("select"),K=z.appendChild(b.createElement("option"));R.type="checkbox",p.checkOn=R.value!=="",p.optSelected=K.selected,R=b.createElement("input"),R.value="t",R.type="radio",p.radioValue=R.value==="t"}();var ao,oo=A.expr.attrHandle;A.fn.extend({attr:function(R,z){return me(this,A.attr,R,z,arguments.length>1)},removeAttr:function(R){return this.each(function(){A.removeAttr(this,R)})}}),A.extend({attr:function(R,z,K){var Z,te,re=R.nodeType;if(!(re===3||re===8||re===2)){if(typeof R.getAttribute>"u")return A.prop(R,z,K);if((re!==1||!A.isXMLDoc(R))&&(te=A.attrHooks[z.toLowerCase()]||(A.expr.match.bool.test(z)?ao:void 0)),K!==void 0){if(K===null){A.removeAttr(R,z);return}return te&&"set"in te&&(Z=te.set(R,K,z))!==void 0?Z:(R.setAttribute(z,K+""),K)}return te&&"get"in te&&(Z=te.get(R,z))!==null?Z:(Z=A.find.attr(R,z),Z??void 0)}},attrHooks:{type:{set:function(R,z){if(!p.radioValue&&z==="radio"&&H(R,"input")){var K=R.value;return R.setAttribute("type",z),K&&(R.value=K),z}}}},removeAttr:function(R,z){var K,Z=0,te=z&&z.match(G);if(te&&R.nodeType===1)for(;K=te[Z++];)R.removeAttribute(K)}}),ao={set:function(R,z,K){return z===!1?A.removeAttr(R,K):R.setAttribute(K,K),K}},A.each(A.expr.match.bool.source.match(/\w+/g),function(R,z){var K=oo[z]||A.find.attr;oo[z]=function(Z,te,re){var ae,be,pe=te.toLowerCase();return re||(be=oo[pe],oo[pe]=ae,ae=K(Z,te,re)!=null?pe:null,oo[pe]=be),ae}});var zs=/^(?:input|select|textarea|button)$/i,Aa=/^(?:a|area)$/i;A.fn.extend({prop:function(R,z){return me(this,A.prop,R,z,arguments.length>1)},removeProp:function(R){return this.each(function(){delete this[A.propFix[R]||R]})}}),A.extend({prop:function(R,z,K){var Z,te,re=R.nodeType;if(!(re===3||re===8||re===2))return(re!==1||!A.isXMLDoc(R))&&(z=A.propFix[z]||z,te=A.propHooks[z]),K!==void 0?te&&"set"in te&&(Z=te.set(R,K,z))!==void 0?Z:R[z]=K:te&&"get"in te&&(Z=te.get(R,z))!==null?Z:R[z]},propHooks:{tabIndex:{get:function(R){var z=A.find.attr(R,"tabindex");return z?parseInt(z,10):zs.test(R.nodeName)||Aa.test(R.nodeName)&&R.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),p.optSelected||(A.propHooks.selected={get:function(R){var z=R.parentNode;return z&&z.parentNode&&z.parentNode.selectedIndex,null},set:function(R){var z=R.parentNode;z&&(z.selectedIndex,z.parentNode&&z.parentNode.selectedIndex)}}),A.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){A.propFix[this.toLowerCase()]=this});function Ts(R){var z=R.match(G)||[];return z.join(" ")}function Li(R){return R.getAttribute&&R.getAttribute("class")||""}function gc(R){return Array.isArray(R)?R:typeof R=="string"?R.match(G)||[]:[]}A.fn.extend({addClass:function(R){var z,K,Z,te,re,ae;return g(R)?this.each(function(be){A(this).addClass(R.call(this,be,Li(this)))}):(z=gc(R),z.length?this.each(function(){if(Z=Li(this),K=this.nodeType===1&&" "+Ts(Z)+" ",K){for(re=0;re<z.length;re++)te=z[re],K.indexOf(" "+te+" ")<0&&(K+=te+" ");ae=Ts(K),Z!==ae&&this.setAttribute("class",ae)}}):this)},removeClass:function(R){var z,K,Z,te,re,ae;return g(R)?this.each(function(be){A(this).removeClass(R.call(this,be,Li(this)))}):arguments.length?(z=gc(R),z.length?this.each(function(){if(Z=Li(this),K=this.nodeType===1&&" "+Ts(Z)+" ",K){for(re=0;re<z.length;re++)for(te=z[re];K.indexOf(" "+te+" ")>-1;)K=K.replace(" "+te+" "," ");ae=Ts(K),Z!==ae&&this.setAttribute("class",ae)}}):this):this.attr("class","")},toggleClass:function(R,z){var K,Z,te,re,ae=typeof R,be=ae==="string"||Array.isArray(R);return g(R)?this.each(function(pe){A(this).toggleClass(R.call(this,pe,Li(this),z),z)}):typeof z=="boolean"&&be?z?this.addClass(R):this.removeClass(R):(K=gc(R),this.each(function(){if(be)for(re=A(this),te=0;te<K.length;te++)Z=K[te],re.hasClass(Z)?re.removeClass(Z):re.addClass(Z);else(R===void 0||ae==="boolean")&&(Z=Li(this),Z&&Ae.set(this,"__className__",Z),this.setAttribute&&this.setAttribute("class",Z||R===!1?"":Ae.get(this,"__className__")||""))}))},hasClass:function(R){var z,K,Z=0;for(z=" "+R+" ";K=this[Z++];)if(K.nodeType===1&&(" "+Ts(Li(K))+" ").indexOf(z)>-1)return!0;return!1}});var bc=/\r/g;A.fn.extend({val:function(R){var z,K,Z,te=this[0];return arguments.length?(Z=g(R),this.each(function(re){var ae;this.nodeType===1&&(Z?ae=R.call(this,re,A(this).val()):ae=R,ae==null?ae="":typeof ae=="number"?ae+="":Array.isArray(ae)&&(ae=A.map(ae,function(be){return be==null?"":be+""})),z=A.valHooks[this.type]||A.valHooks[this.nodeName.toLowerCase()],(!z||!("set"in z)||z.set(this,ae,"value")===void 0)&&(this.value=ae))})):te?(z=A.valHooks[te.type]||A.valHooks[te.nodeName.toLowerCase()],z&&"get"in z&&(K=z.get(te,"value"))!==void 0?K:(K=te.value,typeof K=="string"?K.replace(bc,""):K??"")):void 0}}),A.extend({valHooks:{option:{get:function(R){var z=A.find.attr(R,"value");return z??Ts(A.text(R))}},select:{get:function(R){var z,K,Z,te=R.options,re=R.selectedIndex,ae=R.type==="select-one",be=ae?null:[],pe=ae?re+1:te.length;for(re<0?Z=pe:Z=ae?re:0;Z<pe;Z++)if(K=te[Z],(K.selected||Z===re)&&!K.disabled&&(!K.parentNode.disabled||!H(K.parentNode,"optgroup"))){if(z=A(K).val(),ae)return z;be.push(z)}return be},set:function(R,z){for(var K,Z,te=R.options,re=A.makeArray(z),ae=te.length;ae--;)Z=te[ae],(Z.selected=A.inArray(A.valHooks.option.get(Z),re)>-1)&&(K=!0);return K||(R.selectedIndex=-1),re}}}}),A.each(["radio","checkbox"],function(){A.valHooks[this]={set:function(R,z){if(Array.isArray(z))return R.checked=A.inArray(A(R).val(),z)>-1}},p.checkOn||(A.valHooks[this].get=function(R){return R.getAttribute("value")===null?"on":R.value})});var li=t.location,Zb={guid:Date.now()},yc=/\?/;A.parseXML=function(R){var z,K;if(!R||typeof R!="string")return null;try{z=new t.DOMParser().parseFromString(R,"text/xml")}catch{}return K=z&&z.getElementsByTagName("parsererror")[0],(!z||K)&&A.error("Invalid XML: "+(K?A.map(K.childNodes,function(Z){return Z.textContent}).join(`
169
169
  `):R)),z};var cf=/^(?:focusinfocus|focusoutblur)$/,Fu=function(R){R.stopPropagation()};A.extend(A.event,{trigger:function(R,z,K,Z){var te,re,ae,be,pe,Se,$e,Fe,Me=[K||b],We=h.call(R,"type")?R.type:R,er=h.call(R,"namespace")?R.namespace.split("."):[];if(re=Fe=ae=K=K||b,!(K.nodeType===3||K.nodeType===8)&&!cf.test(We+A.event.triggered)&&(We.indexOf(".")>-1&&(er=We.split("."),We=er.shift(),er.sort()),pe=We.indexOf(":")<0&&"on"+We,R=R[A.expando]?R:new A.Event(We,typeof R=="object"&&R),R.isTrigger=Z?2:3,R.namespace=er.join("."),R.rnamespace=R.namespace?new RegExp("(^|\\.)"+er.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,R.result=void 0,R.target||(R.target=K),z=z==null?[R]:A.makeArray(z,[R]),$e=A.event.special[We]||{},!(!Z&&$e.trigger&&$e.trigger.apply(K,z)===!1))){if(!Z&&!$e.noBubble&&!m(K)){for(be=$e.delegateType||We,cf.test(be+We)||(re=re.parentNode);re;re=re.parentNode)Me.push(re),ae=re;ae===(K.ownerDocument||b)&&Me.push(ae.defaultView||ae.parentWindow||t)}for(te=0;(re=Me[te++])&&!R.isPropagationStopped();)Fe=re,R.type=te>1?be:$e.bindType||We,Se=(Ae.get(re,"events")||Object.create(null))[R.type]&&Ae.get(re,"handle"),Se&&Se.apply(re,z),Se=pe&&re[pe],Se&&Se.apply&&Ie(re)&&(R.result=Se.apply(re,z),R.result===!1&&R.preventDefault());return R.type=We,!Z&&!R.isDefaultPrevented()&&(!$e._default||$e._default.apply(Me.pop(),z)===!1)&&Ie(K)&&pe&&g(K[We])&&!m(K)&&(ae=K[pe],ae&&(K[pe]=null),A.event.triggered=We,R.isPropagationStopped()&&Fe.addEventListener(We,Fu),K[We](),R.isPropagationStopped()&&Fe.removeEventListener(We,Fu),A.event.triggered=void 0,ae&&(K[pe]=ae)),R.result}},simulate:function(R,z,K){var Z=A.extend(new A.Event,K,{type:R,isSimulated:!0});A.event.trigger(Z,null,z)}}),A.fn.extend({trigger:function(R,z){return this.each(function(){A.event.trigger(R,z,this)})},triggerHandler:function(R,z){var K=this[0];if(K)return A.event.trigger(R,z,K,!0)}});var uf=/\[\]$/,Qb=/\r?\n/g,df=/^(?:submit|button|image|reset|file)$/i,hf=/^(?:input|select|textarea|keygen)/i;function S3(R,z,K,Z){var te;if(Array.isArray(z))A.each(z,function(re,ae){K||uf.test(R)?Z(R,ae):S3(R+"["+(typeof ae=="object"&&ae!=null?re:"")+"]",ae,K,Z)});else if(!K&&T(z)==="object")for(te in z)S3(R+"["+te+"]",z[te],K,Z);else Z(R,z)}A.param=function(R,z){var K,Z=[],te=function(re,ae){var be=g(ae)?ae():ae;Z[Z.length]=encodeURIComponent(re)+"="+encodeURIComponent(be??"")};if(R==null)return"";if(Array.isArray(R)||R.jquery&&!A.isPlainObject(R))A.each(R,function(){te(this.name,this.value)});else for(K in R)S3(K,R[K],z,te);return Z.join("&")},A.fn.extend({serialize:function(){return A.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var R=A.prop(this,"elements");return R?A.makeArray(R):this}).filter(function(){var R=this.type;return this.name&&!A(this).is(":disabled")&&hf.test(this.nodeName)&&!df.test(R)&&(this.checked||!sr.test(R))}).map(function(R,z){var K=A(this).val();return K==null?null:Array.isArray(K)?A.map(K,function(Z){return{name:z.name,value:Z.replace(Qb,`\r
170
170
  `)}}):{name:z.name,value:K.replace(Qb,`\r
171
171
  `)}}).get()}});var PQ=/%20/g,$Q=/#.*$/,LQ=/([?&])_=[^&]*/,jQ=/^(.*?):[ \t]*([^\r\n]*)$/mg,DQ=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,BQ=/^(?:GET|HEAD)$/,FQ=/^\/\//,yI={},k3={},wI="*/".concat("*"),E3=b.createElement("a");E3.href=li.href;function vI(R){return function(z,K){typeof z!="string"&&(K=z,z="*");var Z,te=0,re=z.toLowerCase().match(G)||[];if(g(K))for(;Z=re[te++];)Z[0]==="+"?(Z=Z.slice(1)||"*",(R[Z]=R[Z]||[]).unshift(K)):(R[Z]=R[Z]||[]).push(K)}}function _I(R,z,K,Z){var te={},re=R===k3;function ae(be){var pe;return te[be]=!0,A.each(R[be]||[],function(Se,$e){var Fe=$e(z,K,Z);if(typeof Fe=="string"&&!re&&!te[Fe])return z.dataTypes.unshift(Fe),ae(Fe),!1;if(re)return!(pe=Fe)}),pe}return ae(z.dataTypes[0])||!te["*"]&&ae("*")}function C3(R,z){var K,Z,te=A.ajaxSettings.flatOptions||{};for(K in z)z[K]!==void 0&&((te[K]?R:Z||(Z={}))[K]=z[K]);return Z&&A.extend(!0,R,Z),R}function zQ(R,z,K){for(var Z,te,re,ae,be=R.contents,pe=R.dataTypes;pe[0]==="*";)pe.shift(),Z===void 0&&(Z=R.mimeType||z.getResponseHeader("Content-Type"));if(Z){for(te in be)if(be[te]&&be[te].test(Z)){pe.unshift(te);break}}if(pe[0]in K)re=pe[0];else{for(te in K){if(!pe[0]||R.converters[te+" "+pe[0]]){re=te;break}ae||(ae=te)}re=re||ae}if(re)return re!==pe[0]&&pe.unshift(re),K[re]}function HQ(R,z,K,Z){var te,re,ae,be,pe,Se={},$e=R.dataTypes.slice();if($e[1])for(ae in R.converters)Se[ae.toLowerCase()]=R.converters[ae];for(re=$e.shift();re;)if(R.responseFields[re]&&(K[R.responseFields[re]]=z),!pe&&Z&&R.dataFilter&&(z=R.dataFilter(z,R.dataType)),pe=re,re=$e.shift(),re){if(re==="*")re=pe;else if(pe!=="*"&&pe!==re){if(ae=Se[pe+" "+re]||Se["* "+re],!ae){for(te in Se)if(be=te.split(" "),be[1]===re&&(ae=Se[pe+" "+be[0]]||Se["* "+be[0]],ae)){ae===!0?ae=Se[te]:Se[te]!==!0&&(re=be[0],$e.unshift(be[1]));break}}if(ae!==!0)if(ae&&R.throws)z=ae(z);else try{z=ae(z)}catch(Fe){return{state:"parsererror",error:ae?Fe:"No conversion from "+pe+" to "+re}}}}return{state:"success",data:z}}A.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:li.href,type:"GET",isLocal:DQ.test(li.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":wI,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":A.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(R,z){return z?C3(C3(R,A.ajaxSettings),z):C3(A.ajaxSettings,R)},ajaxPrefilter:vI(yI),ajaxTransport:vI(k3),ajax:function(R,z){typeof R=="object"&&(z=R,R=void 0),z=z||{};var K,Z,te,re,ae,be,pe,Se,$e,Fe,Me=A.ajaxSetup({},z),We=Me.context||Me,er=Me.context&&(We.nodeType||We.jquery)?A(We):A.event,Ir=A.Deferred(),fr=A.Callbacks("once memory"),ms=Me.statusCode||{},Vn={},lo={},co="canceled",Tr={readyState:0,getResponseHeader:function(jr){var _n;if(pe){if(!re)for(re={};_n=jQ.exec(te);)re[_n[1].toLowerCase()+" "]=(re[_n[1].toLowerCase()+" "]||[]).concat(_n[2]);_n=re[jr.toLowerCase()+" "]}return _n==null?null:_n.join(", ")},getAllResponseHeaders:function(){return pe?te:null},setRequestHeader:function(jr,_n){return pe==null&&(jr=lo[jr.toLowerCase()]=lo[jr.toLowerCase()]||jr,Vn[jr]=_n),this},overrideMimeType:function(jr){return pe==null&&(Me.mimeType=jr),this},statusCode:function(jr){var _n;if(jr)if(pe)Tr.always(jr[Tr.status]);else for(_n in jr)ms[_n]=[ms[_n],jr[_n]];return this},abort:function(jr){var _n=jr||co;return K&&K.abort(_n),zu(0,_n),this}};if(Ir.promise(Tr),Me.url=((R||Me.url||li.href)+"").replace(FQ,li.protocol+"//"),Me.type=z.method||z.type||Me.method||Me.type,Me.dataTypes=(Me.dataType||"*").toLowerCase().match(G)||[""],Me.crossDomain==null){be=b.createElement("a");try{be.href=Me.url,be.href=be.href,Me.crossDomain=E3.protocol+"//"+E3.host!=be.protocol+"//"+be.host}catch{Me.crossDomain=!0}}if(Me.data&&Me.processData&&typeof Me.data!="string"&&(Me.data=A.param(Me.data,Me.traditional)),_I(yI,Me,z,Tr),pe)return Tr;Se=A.event&&Me.global,Se&&A.active++===0&&A.event.trigger("ajaxStart"),Me.type=Me.type.toUpperCase(),Me.hasContent=!BQ.test(Me.type),Z=Me.url.replace($Q,""),Me.hasContent?Me.data&&Me.processData&&(Me.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(Me.data=Me.data.replace(PQ,"+")):(Fe=Me.url.slice(Z.length),Me.data&&(Me.processData||typeof Me.data=="string")&&(Z+=(yc.test(Z)?"&":"?")+Me.data,delete Me.data),Me.cache===!1&&(Z=Z.replace(LQ,"$1"),Fe=(yc.test(Z)?"&":"?")+"_="+Zb.guid+++Fe),Me.url=Z+Fe),Me.ifModified&&(A.lastModified[Z]&&Tr.setRequestHeader("If-Modified-Since",A.lastModified[Z]),A.etag[Z]&&Tr.setRequestHeader("If-None-Match",A.etag[Z])),(Me.data&&Me.hasContent&&Me.contentType!==!1||z.contentType)&&Tr.setRequestHeader("Content-Type",Me.contentType),Tr.setRequestHeader("Accept",Me.dataTypes[0]&&Me.accepts[Me.dataTypes[0]]?Me.accepts[Me.dataTypes[0]]+(Me.dataTypes[0]!=="*"?", "+wI+"; q=0.01":""):Me.accepts["*"]);for($e in Me.headers)Tr.setRequestHeader($e,Me.headers[$e]);if(Me.beforeSend&&(Me.beforeSend.call(We,Tr,Me)===!1||pe))return Tr.abort();if(co="abort",fr.add(Me.complete),Tr.done(Me.success),Tr.fail(Me.error),K=_I(k3,Me,z,Tr),!K)zu(-1,"No Transport");else{if(Tr.readyState=1,Se&&er.trigger("ajaxSend",[Tr,Me]),pe)return Tr;Me.async&&Me.timeout>0&&(ae=t.setTimeout(function(){Tr.abort("timeout")},Me.timeout));try{pe=!1,K.send(Vn,zu)}catch(jr){if(pe)throw jr;zu(-1,jr)}}function zu(jr,_n,ty,A3){var uo,ry,ho,wc,vc,Qi=_n;pe||(pe=!0,ae&&t.clearTimeout(ae),K=void 0,te=A3||"",Tr.readyState=jr>0?4:0,uo=jr>=200&&jr<300||jr===304,ty&&(wc=zQ(Me,Tr,ty)),!uo&&A.inArray("script",Me.dataTypes)>-1&&A.inArray("json",Me.dataTypes)<0&&(Me.converters["text script"]=function(){}),wc=HQ(Me,wc,Tr,uo),uo?(Me.ifModified&&(vc=Tr.getResponseHeader("Last-Modified"),vc&&(A.lastModified[Z]=vc),vc=Tr.getResponseHeader("etag"),vc&&(A.etag[Z]=vc)),jr===204||Me.type==="HEAD"?Qi="nocontent":jr===304?Qi="notmodified":(Qi=wc.state,ry=wc.data,ho=wc.error,uo=!ho)):(ho=Qi,(jr||!Qi)&&(Qi="error",jr<0&&(jr=0))),Tr.status=jr,Tr.statusText=(_n||Qi)+"",uo?Ir.resolveWith(We,[ry,Qi,Tr]):Ir.rejectWith(We,[Tr,Qi,ho]),Tr.statusCode(ms),ms=void 0,Se&&er.trigger(uo?"ajaxSuccess":"ajaxError",[Tr,Me,uo?ry:ho]),fr.fireWith(We,[Tr,Qi]),Se&&(er.trigger("ajaxComplete",[Tr,Me]),--A.active||A.event.trigger("ajaxStop")))}return Tr},getJSON:function(R,z,K){return A.get(R,z,K,"json")},getScript:function(R,z){return A.get(R,void 0,z,"script")}}),A.each(["get","post"],function(R,z){A[z]=function(K,Z,te,re){return g(Z)&&(re=re||te,te=Z,Z=void 0),A.ajax(A.extend({url:K,type:z,dataType:re,data:Z,success:te},A.isPlainObject(K)&&K))}}),A.ajaxPrefilter(function(R){var z;for(z in R.headers)z.toLowerCase()==="content-type"&&(R.contentType=R.headers[z]||"")}),A._evalUrl=function(R,z,K){return A.ajax({url:R,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(Z){A.globalEval(Z,z,K)}})},A.fn.extend({wrapAll:function(R){var z;return this[0]&&(g(R)&&(R=R.call(this[0])),z=A(R,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&z.insertBefore(this[0]),z.map(function(){for(var K=this;K.firstElementChild;)K=K.firstElementChild;return K}).append(this)),this},wrapInner:function(R){return g(R)?this.each(function(z){A(this).wrapInner(R.call(this,z))}):this.each(function(){var z=A(this),K=z.contents();K.length?K.wrapAll(R):z.append(R)})},wrap:function(R){var z=g(R);return this.each(function(K){A(this).wrapAll(z?R.call(this,K):R)})},unwrap:function(R){return this.parent(R).not("body").each(function(){A(this).replaceWith(this.childNodes)}),this}}),A.expr.pseudos.hidden=function(R){return!A.expr.pseudos.visible(R)},A.expr.pseudos.visible=function(R){return!!(R.offsetWidth||R.offsetHeight||R.getClientRects().length)},A.ajaxSettings.xhr=function(){try{return new t.XMLHttpRequest}catch{}};var qQ={0:200,1223:204},ey=A.ajaxSettings.xhr();p.cors=!!ey&&"withCredentials"in ey,p.ajax=ey=!!ey,A.ajaxTransport(function(R){var z,K;if(p.cors||ey&&!R.crossDomain)return{send:function(Z,te){var re,ae=R.xhr();if(ae.open(R.type,R.url,R.async,R.username,R.password),R.xhrFields)for(re in R.xhrFields)ae[re]=R.xhrFields[re];R.mimeType&&ae.overrideMimeType&&ae.overrideMimeType(R.mimeType),!R.crossDomain&&!Z["X-Requested-With"]&&(Z["X-Requested-With"]="XMLHttpRequest");for(re in Z)ae.setRequestHeader(re,Z[re]);z=function(be){return function(){z&&(z=K=ae.onload=ae.onerror=ae.onabort=ae.ontimeout=ae.onreadystatechange=null,be==="abort"?ae.abort():be==="error"?typeof ae.status!="number"?te(0,"error"):te(ae.status,ae.statusText):te(qQ[ae.status]||ae.status,ae.statusText,(ae.responseType||"text")!=="text"||typeof ae.responseText!="string"?{binary:ae.response}:{text:ae.responseText},ae.getAllResponseHeaders()))}},ae.onload=z(),K=ae.onerror=ae.ontimeout=z("error"),ae.onabort!==void 0?ae.onabort=K:ae.onreadystatechange=function(){ae.readyState===4&&t.setTimeout(function(){z&&K()})},z=z("abort");try{ae.send(R.hasContent&&R.data||null)}catch(be){if(z)throw be}},abort:function(){z&&z()}}}),A.ajaxPrefilter(function(R){R.crossDomain&&(R.contents.script=!1)}),A.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(R){return A.globalEval(R),R}}}),A.ajaxPrefilter("script",function(R){R.cache===void 0&&(R.cache=!1),R.crossDomain&&(R.type="GET")}),A.ajaxTransport("script",function(R){if(R.crossDomain||R.scriptAttrs){var z,K;return{send:function(Z,te){z=A("<script>").attr(R.scriptAttrs||{}).prop({charset:R.scriptCharset,src:R.url}).on("load error",K=function(re){z.remove(),K=null,re&&te(re.type==="error"?404:200,re.type)}),b.head.appendChild(z[0])},abort:function(){K&&K()}}}});var xI=[],T3=/(=)\?(?=&|$)|\?\?/;A.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var R=xI.pop()||A.expando+"_"+Zb.guid++;return this[R]=!0,R}}),A.ajaxPrefilter("json jsonp",function(R,z,K){var Z,te,re,ae=R.jsonp!==!1&&(T3.test(R.url)?"url":typeof R.data=="string"&&(R.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&T3.test(R.data)&&"data");if(ae||R.dataTypes[0]==="jsonp")return Z=R.jsonpCallback=g(R.jsonpCallback)?R.jsonpCallback():R.jsonpCallback,ae?R[ae]=R[ae].replace(T3,"$1"+Z):R.jsonp!==!1&&(R.url+=(yc.test(R.url)?"&":"?")+R.jsonp+"="+Z),R.converters["script json"]=function(){return re||A.error(Z+" was not called"),re[0]},R.dataTypes[0]="json",te=t[Z],t[Z]=function(){re=arguments},K.always(function(){te===void 0?A(t).removeProp(Z):t[Z]=te,R[Z]&&(R.jsonpCallback=z.jsonpCallback,xI.push(Z)),re&&g(te)&&te(re[0]),re=te=void 0}),"script"}),p.createHTMLDocument=function(){var R=b.implementation.createHTMLDocument("").body;return R.innerHTML="<form></form><form></form>",R.childNodes.length===2}(),A.parseHTML=function(R,z,K){if(typeof R!="string")return[];typeof z=="boolean"&&(K=z,z=!1);var Z,te,re;return z||(p.createHTMLDocument?(z=b.implementation.createHTMLDocument(""),Z=z.createElement("base"),Z.href=b.location.href,z.head.appendChild(Z)):z=b),te=F.exec(R),re=!K&&[],te?[z.createElement(te[1])]:(te=Ht([R],z,re),re&&re.length&&A(re).remove(),A.merge([],te.childNodes))},A.fn.load=function(R,z,K){var Z,te,re,ae=this,be=R.indexOf(" ");return be>-1&&(Z=Ts(R.slice(be)),R=R.slice(0,be)),g(z)?(K=z,z=void 0):z&&typeof z=="object"&&(te="POST"),ae.length>0&&A.ajax({url:R,type:te||"GET",dataType:"html",data:z}).done(function(pe){re=arguments,ae.html(Z?A("<div>").append(A.parseHTML(pe)).find(Z):pe)}).always(K&&function(pe,Se){ae.each(function(){K.apply(this,re||[pe.responseText,Se,pe])})}),this},A.expr.pseudos.animated=function(R){return A.grep(A.timers,function(z){return R===z.elem}).length},A.offset={setOffset:function(R,z,K){var Z,te,re,ae,be,pe,Se,$e=A.css(R,"position"),Fe=A(R),Me={};$e==="static"&&(R.style.position="relative"),be=Fe.offset(),re=A.css(R,"top"),pe=A.css(R,"left"),Se=($e==="absolute"||$e==="fixed")&&(re+pe).indexOf("auto")>-1,Se?(Z=Fe.position(),ae=Z.top,te=Z.left):(ae=parseFloat(re)||0,te=parseFloat(pe)||0),g(z)&&(z=z.call(R,K,A.extend({},be))),z.top!=null&&(Me.top=z.top-be.top+ae),z.left!=null&&(Me.left=z.left-be.left+te),"using"in z?z.using.call(R,Me):Fe.css(Me)}},A.fn.extend({offset:function(R){if(arguments.length)return R===void 0?this:this.each(function(te){A.offset.setOffset(this,R,te)});var z,K,Z=this[0];if(Z)return Z.getClientRects().length?(z=Z.getBoundingClientRect(),K=Z.ownerDocument.defaultView,{top:z.top+K.pageYOffset,left:z.left+K.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var R,z,K,Z=this[0],te={top:0,left:0};if(A.css(Z,"position")==="fixed")z=Z.getBoundingClientRect();else{for(z=this.offset(),K=Z.ownerDocument,R=Z.offsetParent||K.documentElement;R&&(R===K.body||R===K.documentElement)&&A.css(R,"position")==="static";)R=R.parentNode;R&&R!==Z&&R.nodeType===1&&(te=A(R).offset(),te.top+=A.css(R,"borderTopWidth",!0),te.left+=A.css(R,"borderLeftWidth",!0))}return{top:z.top-te.top-A.css(Z,"marginTop",!0),left:z.left-te.left-A.css(Z,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var R=this.offsetParent;R&&A.css(R,"position")==="static";)R=R.offsetParent;return R||Ve})}}),A.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(R,z){var K=z==="pageYOffset";A.fn[R]=function(Z){return me(this,function(te,re,ae){var be;if(m(te)?be=te:te.nodeType===9&&(be=te.defaultView),ae===void 0)return be?be[z]:te[re];be?be.scrollTo(K?be.pageXOffset:ae,K?ae:be.pageYOffset):te[re]=ae},R,Z,arguments.length)}}),A.each(["top","left"],function(R,z){A.cssHooks[z]=Te(p.pixelPosition,function(K,Z){if(Z)return Z=he(K,z),an.test(Z)?A(K).position()[z]+"px":Z})}),A.each({Height:"height",Width:"width"},function(R,z){A.each({padding:"inner"+R,content:z,"":"outer"+R},function(K,Z){A.fn[Z]=function(te,re){var ae=arguments.length&&(K||typeof te!="boolean"),be=K||(te===!0||re===!0?"margin":"border");return me(this,function(pe,Se,$e){var Fe;return m(pe)?Z.indexOf("outer")===0?pe["inner"+R]:pe.document.documentElement["client"+R]:pe.nodeType===9?(Fe=pe.documentElement,Math.max(pe.body["scroll"+R],Fe["scroll"+R],pe.body["offset"+R],Fe["offset"+R],Fe["client"+R])):$e===void 0?A.css(pe,Se,be):A.style(pe,Se,$e,be)},z,ae?te:void 0,ae)}})}),A.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(R,z){A.fn[z]=function(K){return this.on(z,K)}}),A.fn.extend({bind:function(R,z,K){return this.on(R,null,z,K)},unbind:function(R,z){return this.off(R,null,z)},delegate:function(R,z,K,Z){return this.on(z,R,K,Z)},undelegate:function(R,z,K){return arguments.length===1?this.off(R,"**"):this.off(z,R||"**",K)},hover:function(R,z){return this.on("mouseenter",R).on("mouseleave",z||R)}}),A.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(R,z){A.fn[z]=function(K,Z){return arguments.length>0?this.on(z,null,K,Z):this.trigger(z)}});var UQ=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;A.proxy=function(R,z){var K,Z,te;if(typeof z=="string"&&(K=R[z],z=R,R=K),!!g(R))return Z=i.call(arguments,2),te=function(){return R.apply(z||this,Z.concat(i.call(arguments)))},te.guid=R.guid=R.guid||A.guid++,te},A.holdReady=function(R){R?A.readyWait++:A.ready(!0)},A.isArray=Array.isArray,A.parseJSON=JSON.parse,A.nodeName=H,A.isFunction=g,A.isWindow=m,A.camelCase=Ee,A.type=T,A.now=Date.now,A.isNumeric=function(R){var z=A.type(R);return(z==="number"||z==="string")&&!isNaN(R-parseFloat(R))},A.trim=function(R){return R==null?"":(R+"").replace(UQ,"$1")};var VQ=t.jQuery,WQ=t.$;return A.noConflict=function(R){return t.$===A&&(t.$=WQ),R&&t.jQuery===A&&(t.jQuery=VQ),A},typeof e>"u"&&(t.jQuery=t.$=A),A})})(uA);var VL=uA.exports;const WL=jf(VL);class H2 extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){this.shadowRoot.innerHTML=`
@@ -327,7 +327,7 @@ img.ProseMirror-separator {
327
327
  </style>
328
328
 
329
329
  <div></div>
330
- `}}customElements.get("ng-col-mover-grip")||customElements.define("ng-col-mover-grip",sj),customElements.get("ng-col-mover-indi")||customElements.define("ng-col-mover-indi",ij);class aj{constructor(t){Q(this,$r);Q(this,Xi);Q(this,ya);Q(this,Em);Q(this,ki);Q(this,rh);Q(this,wa);de(this,"resetEvent",()=>{$(document).off("mouseup",y(this,nh)),$(".ng-table thead",y(this,$r).body).off("mousedown",y(this,Am)),y(this,$r).body.querySelectorAll(".ng-table thead").forEach(t=>{t.removeEventListener("click",y(this,Cm))}),$(document).on("mouseup",y(this,nh)),$(".ng-table thead",y(this,$r).body).on("mousedown",y(this,Am)),y(this,$r).body.querySelectorAll(".ng-table thead").forEach(t=>{t.addEventListener("click",y(this,Cm))})});Q(this,Cm,t=>{if(t.target.closest("ng-filter-button"))return;const e=t.currentTarget||t.target,r=getComputedStyle(e,":before"),s=getComputedStyle(e,":after");if(!(!r&&!s)){if(r){const u=Number(r.getPropertyValue("top").slice(0,-2)),h=6,d=Number(r.getPropertyValue("left").slice(0,-2));if(t.layerX>=d&&t.layerX<=d+6&&t.layerY>=u&&t.layerY<=u+h){var i=t.target.closest(".ng-container-left")||t.target.closest(".ng-container-body");if(i){var a=i.querySelectorAll("thead tr:nth-child(2) th:not(.dummy),thead tr:nth-child(2) td:not(.dummy)"),o=t.target.closest(".ng-container-left")?y(this,$r).body.querySelector(".ng-container-body"):y(this,$r).body.querySelector(".ng-container-right"),l=o.querySelector("thead tr:nth-child(2) th:first-child,thead tr:nth-child(2) td:first-child");const p=parseInt(a[a.length-1].dataset.col),g=a[a.length-1].colSpan;for(var c=0;c<g;c++)y(this,$r).body.querySelectorAll(`[data-col="${p+c}"] ng-col-expand:not(.expand)`).forEach(m=>{m.expand()});t.target.closest(".ng-container-body")?y(this,$r).body.querySelectorAll(".ng-container-right colgroup col:not(.dummy)").length==0?y(this,$r).columns.moveColumn(a[a.length-1],l):(y(this,$r).columns.moveColumn(a[a.length-1],l),y(this,$r).columns.moveColumn(a[a.length-1],l)):(y(this,$r).columns.moveColumn(a[a.length-1],l),y(this,$r).columns.moveColumn(a[a.length-1],l))}}}if(s){const u=Number(s.getPropertyValue("top").slice(0,-2)),h=6,d=Number(s.getPropertyValue("left").slice(0,-2));if(t.layerX>=d&&t.layerX<=d+6&&t.layerY>=u&&t.layerY<=u+h){var i=t.target.closest(".ng-container-body")||t.target.closest(".ng-container-right");if(i){var a=i.querySelector("thead tr:nth-child(2) th:first-child,thead tr:nth-child(2) td:first-child"),o=t.target.closest(".ng-container-body")?y(this,$r).body.querySelector(".ng-container-left"):y(this,$r).body.querySelector(".ng-container-body"),l=o.querySelectorAll("thead tr:nth-child(2) th:not(.dummy),thead tr:nth-child(2) td:not(.dummy)");const w=parseInt(a.dataset.col),_=a.colSpan;for(var c=0;c<_;c++)y(this,$r).body.querySelectorAll(`[data-col="${w+c}"] ng-col-expand:not(.expand)`).forEach(M=>{M.expand()});t.target.closest(".ng-container-right")?(y(this,$r).columns.moveColumn(a,l[l.length-1]),y(this,$r).columns.moveColumn(l[l.length-1],a)):(y(this,$r).columns.moveColumn(a,l[l.length-1]),y(this,$r).columns.moveColumn(a,l[l.length-1]))}}}}});Q(this,f3,t=>{if(!["INPUT"].includes(t.target.tagName)){var e=t.target.getBoundingClientRect();t.offsetX=t.targetTouches[0].pageX-e.left,t.pageX=t.changedTouches[0].pageX,t.pageY=t.changedTouches[0].pageY,t.buttons=1,y(this,Rm).call(this,t),$(document).on("touchmove",r=>y(this,Tm).call(this,r))}});Q(this,Tm,t=>{var e=t.target.getBoundingClientRect();t.offsetX=t.targetTouches[0].pageX-e.left,t.pageX=t.changedTouches[0].pageX,t.pageY=t.changedTouches[0].pageY,t.clientX=t.changedTouches[0].clientX,y(this,sh).call(this,t)});Q(this,p3,t=>{t.clientX=t.changedTouches[0].clientX,y(this,nh).call(this,t)});Q(this,Am,t=>{W.j.querySelectorAll(y(this,$r)).attr("col-movable")=="true"&&t.target.tagName!="NG-FILTER-BUTTON"&&(oe(this,rh,!0),setTimeout(()=>{y(this,rh)&&y(this,Rm).call(this,t)},500))});Q(this,Rm,t=>{if(t.buttons!=1||t.altKey||t.ctrlKey||t.shiftkey||["INPUT"].includes(t.target.tagName))return;var e=t.pageX-$(t.target).offset().left;if(e<=3||$(t.target).width()-e<=3)return;t.target.closest(".ng-container-right")&&y(this,$r).body.querySelector("ng-hscrollbar").scrollToEnd();var r=t.target.closest("th,td");oe(this,ki,{col:parseInt(r.dataset.col),row:t.target.closest("tr").sectionRowIndex,target:r}),oe(this,Em,e+y(this,Xi)[0].getBoundingClientRect().x);const s=y(this,Xi)[0].shadowRoot.querySelector("span");s.innerHTML=$(t.target).html(),$(s).css({font:$(r).css("font")}),y(this,Xi).show(),y(this,Xi).width($(r).width()),y(this,Xi).height($(r).height()),y(this,Xi).offset({top:$(r).offset().top-1}),$(document).on("mousemove",y(this,sh)),y(this,Om).call(this,t.pageX);const i=y(this,$r).tableUtils.getElement("thead",y(this,ki).row,t.clientX);y(this,ya).height($(i).height())});Q(this,nh,t=>{if(oe(this,rh,!1),$(document).off("mousemove",y(this,sh)),$(document).off("touchmove",y(this,Tm)),y(this,wa)&&$(y(this,wa).target).css({cursor:y(this,wa).cursor}),y(this,ki)){var e=y(this,$r).tableUtils.getElement("thead",y(this,ki).row,t.clientX);y(this,$r).columns.moveColumn(y(this,ki).target,e)}oe(this,wa,null),oe(this,ki,null),y(this,Xi).hide(),y(this,ya).hide()});Q(this,sh,t=>{if(y(this,ki)!=null){y(this,wa)&&$(y(this,wa).target).css({cursor:y(this,wa).cursor}),oe(this,wa,{target:t.target,cursor:$(t.target).css("cursor")}),$(t.target).css({cursor:t.target.closest("thead")||t.target.tagName=="ng-col-mover-grip"?"move":"not-allowed"});var e=y(this,$r).tableUtils.getElement("thead",y(this,ki).row,t.clientX);if(e)if(y(this,ki).col>parseInt(e.dataset.col)){var r=$(e).offset();y(this,ya).show(),y(this,ya).offset({left:parseInt(r.left-1),top:r.top})}else if(y(this,ki).col<parseInt(e.dataset.col)){var r=$(e).offset();y(this,ya).show(),y(this,ya).offset({left:parseInt(r.left+$(e).width()-1),top:r.top})}else y(this,ya).hide();y(this,Om).call(this,t.pageX)}});Q(this,Om,t=>{y(this,Xi).offset({left:t-y(this,Em)})});oe(this,$r,t),$(".ng-container",y(this,$r).body).append($("<ng-col-mover-grip></ng-col-mover-grip>").hide()).append($("<ng-col-mover-indi></ng-col-mover-indi>").hide()),oe(this,Xi,$("ng-col-mover-grip",y(this,$r).body)),oe(this,ya,$("ng-col-mover-indi",y(this,$r).body)),this.resetEvent()}}$r=new WeakMap,Xi=new WeakMap,ya=new WeakMap,Em=new WeakMap,ki=new WeakMap,rh=new WeakMap,wa=new WeakMap,Cm=new WeakMap,f3=new WeakMap,Tm=new WeakMap,p3=new WeakMap,Am=new WeakMap,Rm=new WeakMap,nh=new WeakMap,sh=new WeakMap,Om=new WeakMap;class oj{constructor(t){Q(this,Qr);Q(this,Ei);Q(this,Ci);Q(this,Ul);Q(this,Vl);Q(this,va);Q(this,Ti);Q(this,Wl);Q(this,Gl,[]);de(this,"resetEvent",()=>{$(".ng-table > thead",y(this,Qr).body).off("mousemove",y(this,Nm)).off("mousedown",y(this,Pm)).off("dblclick",y(this,Mm)),$(document).off("mouseup",y(this,Im)),$(".ng-table > thead",y(this,Qr).body).on("mousemove",y(this,Nm)).on("mousedown",y(this,Pm)).on("dblclick",y(this,Mm)),$(document).on("mouseup",y(this,Im))});de(this,"autoFit",t=>{if(y(this,Qr).body)if(t){y(this,Qr).body.querySelector("ng-hscrollbar").scrollToHome(),oe(this,Gl,[]);var e=0;$(".ng-container-body col",y(this,Qr).body).each((s,i)=>{y(this,Gl).push({col:i,width:parseInt(i.getAttribute("width"))})}),y(this,Gl).forEach(s=>{e+=s.width}),$(".ng-container-body > table",y(this,Qr).body).css({width:"100%","min-width":"100%"});var r=$(".ng-container-body",y(this,Qr).body).width();r!=0&&y(this,Gl).forEach(s=>{var i=s.width*r/e;s.col.setAttribute("width",i)})}else $(".ng-container-body > table",y(this,Qr).body).css({width:"0","min-width":"0"}),y(this,Gl).forEach(s=>{s.col.setAttribute("width",s.width)})});Q(this,Mm,t=>{t.target.style.cursor=="col-resize"&&y(this,Jv).call(this,t)});Q(this,Im,t=>{oe(this,Vl,!1)});Q(this,Nm,t=>{if(!t.target.closest("ng-info")&&(t.target=t.target.closest("th,td"),!!t.target&&y(this,Qr).getAttribute("col-resizable")=="true"&&!(t.altKey||t.ctrlKey||t.shiftkey)))if(t.preventDefault(),t.offsetX<=2||t.offsetX>=t.target.offsetWidth-2){if(t.offsetX<=2&&y(this,Qr).tableUtils.isFirst(t.target)||t.offsetX>=t.target.offsetWidth-2&&y(this,Qr).tableUtils.isLast(t.target))return;t.target.style.cursor="col-resize"}else t.target.style.cursor="auto"});Q(this,m3,t=>{oe(this,Vl,!0),setTimeout(()=>{y(this,Vl)&&y(this,Yv).call(this,t)},500)});Q(this,Pm,t=>{const e=t.target.closest("th,td");!e||e.style.cursor!="col-resize"||(oe(this,Vl,!0),setTimeout(()=>{y(this,Vl)&&y(this,$m).call(this,t)},500))});Q(this,Yv,t=>{t.target=t.target.closest("th,td");var e=t.target.getBoundingClientRect();t.offsetX=t.targetTouches[0].pageX-e.left,t.pageX=t.changedTouches[0].pageX,t.buttons=1,y(this,$m).call(this,t),y(this,Ei).is(":visible")?($(t.target).on("touchmove",r=>y(this,ih).call(this,r)),$(t.target).on("touchend",r=>y(this,oh).call(this,r))):($(t.target).off("touchmove",r=>y(this,ih).call(this,r)),$(t.target).off("touchend",r=>y(this,oh).call(this,r)))});Q(this,$m,t=>{if(t.target=t.target.closest("th,td"),!(t.buttons!=1||t.altKey||t.ctrlKey||t.shiftkey)){if(oe(this,Wl,!!t.target.closest(".ng-container-right")),t.pageX-$(t.target).offset().left<=3){var e=$(`.col-indicator[data-col=${t.target.dataset.col}]`,y(this,Qr).body).not(".dummy")[0];oe(this,va,y(this,Qr).tableUtils.prev(e)),oe(this,Ti,$(e))}else{if($(t.target).width()-t.offsetX>2)return;var r=parseInt(t.target.dataset.col)+t.target.colSpan-1,e=$(`.col-indicator[data-col=${r}]`,y(this,Qr).body).not(".dummy")[0];oe(this,va,$(e)),oe(this,Ti,y(this,Qr).tableUtils.next(e))}y(this,Ei).show(),y(this,Ci).offset({top:$(".ng-container-body",y(this,Qr).body).offset().top,left:y(this,Ti).offset().left-1}),y(this,Ci).height(y(this,Qr).body.querySelector(".ng-container-body").offsetHeight),y(this,Ul).offset({top:$(".ng-container-body",y(this,Qr).body).offset().top}),y(this,lh).call(this,t.pageX),$(y(this,Ei)).off("mousemove",y(this,ah)).off("mouseup",y(this,hu)).on("mousemove",y(this,ah)).on("mouseup",y(this,hu))}});Q(this,ih,t=>{y(this,lh).call(this,t.changedTouches[0].pageX)});Q(this,ah,t=>{y(this,lh).call(this,t.pageX)});Q(this,oh,t=>{$(t.target).off("touchmove",e=>y(this,ih).call(this,e)),$(t.target).off("touchend",e=>y(this,oh).call(this,e)),y(this,hu).call(this,t)});Q(this,hu,t=>{if(!y(this,Ci).is(":visible"))return;var e;y(this,Wl)?e=y(this,Ti).offset().left-y(this,Ci).offset().left+y(this,Ti).width():e=y(this,Ci).offset().left-y(this,va).offset().left+1,e<=1&&(e=0);const r=y(this,Wl)?y(this,Ti)[0].dataset.col:y(this,va)[0].dataset.col;y(this,Qr).columns.width(r,e),$(y(this,Ei)).off("mousemove",y(this,ah)),$(y(this,Ei)).off("mouseup",y(this,hu)),y(this,Ei).hide()});Q(this,lh,t=>{!y(this,Wl)&&t<y(this,va).offset().left&&(t=y(this,va).offset().left),y(this,Ci).offset({left:t});var e=parseInt(y(this,Ci).offset().left),r,s,i;y(this,Wl)?(s=y(this,Ti).width()+y(this,Ti).offset().left-y(this,Ci).offset().left,i=s<10?10:s-1,r=parseInt(y(this,Ti).width()+y(this,Ti).offset().left-y(this,Ci).offset().left)):(s=parseInt(e-y(this,va).offset().left),i=s,r=parseInt(e-y(this,va).offset().left+1),e=e-i),r<=1&&(r=0),y(this,Ul).offset({left:e}),y(this,Ul).width(i),y(this,Ul).find("span").text(r)});Q(this,Jv,t=>{var e=t.target.closest("th,td"),r=y(this,Qr).tableUtils.prev(e),s=y(this,Qr).tableUtils.next(e),i=y(this,Qr).getBand(e.dataset.col)==W.BAND.RIGHT?t.offsetX<=2?$(e):s:t.offsetX<=2?r:$(e);y(this,Qr).setColumnWidthFit(i[0].dataset.col)});oe(this,Qr,t),oe(this,Ei,$('<div class="resizer-col-panel"><div class="grip"></div><div class="tooltip"><div></div><span></span><div></div></div></div>').hide()),$(y(this,Qr).body).append(y(this,Ei)),oe(this,Ci,y(this,Ei).find(".grip")),oe(this,Ul,y(this,Ei).find(".tooltip")),this.resetEvent()}}Qr=new WeakMap,Ei=new WeakMap,Ci=new WeakMap,Ul=new WeakMap,Vl=new WeakMap,va=new WeakMap,Ti=new WeakMap,Wl=new WeakMap,Gl=new WeakMap,Mm=new WeakMap,Im=new WeakMap,Nm=new WeakMap,m3=new WeakMap,Pm=new WeakMap,Yv=new WeakMap,$m=new WeakMap,ih=new WeakMap,ah=new WeakMap,oh=new WeakMap,hu=new WeakMap,lh=new WeakMap,Jv=new WeakMap;class lj{constructor(t){Q(this,yr);de(this,"count",()=>y(this,yr).activeTmpl.querySelectorAll("[data-bind]").length);de(this,"info",t=>{const e=r=>{if(!r)return null;const s=y(this,yr).body.querySelectorAll(`thead [data-col="${r.dataset.col}"]`);return{name:r.dataset.bind,type:(r.dataset.type||"string").toLocaleLowerCase(),desc:s.length>0?s[s.length-1].getAttribute("title"):null}};return t?e(y(this,yr).activeTmpl.querySelector(`[data-bind="${t}"]`)):Array.from(y(this,yr).activeTmpl.querySelectorAll("[data-bind]")).filter(r=>r.dataset.bind!=="rowState").map(r=>e(r))});Q(this,fu,(t,e)=>{var r=Array.from(t.querySelectorAll("col"));return r[e]});Q(this,Yi,(t,e,r)=>{var s=[];if(!t)return s;for(var i=e;i<=r;i++)s=s.concat(Array.from(t.querySelectorAll(`[data-col="${i}"]:not(.dummy)`)));return s});Q(this,ch,(t,e,r)=>{const s=(a,o)=>{const l=parseInt(o.dataset.col);return a.closest("thead,tbody,tfoot"),a.querySelector(`[data-col="${l}"]`)},i=(a,o)=>{const l=parseInt(o.dataset.col),c=o.colSpan||1,u=!a.closest("thead,tbody,tfoot");var h=a.querySelectorAll("th:not(.tmp),td:not(.tmp)");for(var d of h)if(parseInt(d.dataset.col)>l+c-1)return d};return parseInt(e.dataset.col)>parseInt(r.dataset.col)?s(t,r):i(t,r)});Q(this,Lm,t=>{const e={org:{thead:{cells:[]},tfoot:{cells:[]},tbody:{cells:[]},fixed:{cells:[]},cols:[]},thead:{cells:[]},tfoot:{cells:[]},tbody:{cells:[]},fixed:{cells:[]},template:{cells:[]},cols:[]},r=t.colSpan||1,s=t.closest("table"),i=parseInt(t.dataset.col),a=t.closest("tr").sectionRowIndex;$("thead tr",s).each((c,u)=>{if(u.sectionRowIndex<a&&u.sectionRowIndex!=0)return!0;e.thead.cells=e.thead.cells.concat(y(this,Yi).call(this,u,i,i+r-1))}),e.tfoot.cells=y(this,Yi).call(this,s.querySelector("tfoot"),i,i+r-1),e.tbody.cells=y(this,Yi).call(this,s.querySelector("tbody.bindable"),i,i+r-1),e.fixed.cells=y(this,Yi).call(this,s.querySelector("tbody.fixed"),i,i+r-1);const o=y(this,yr).shadowRoot.querySelector("ng-foot").shadowRoot.querySelector("ng-layout");e.org.thead.cells=y(this,Yi).call(this,o.currentTable.querySelector("thead"),i,i+r-1),e.org.tfoot.cells=y(this,Yi).call(this,o.currentTable.querySelector("tfoot"),i,i+r-1),e.org.tbody.cells=y(this,Yi).call(this,o.currentTable.querySelector("tbody.bindable"),i,i+r-1),e.org.fixed.cells=y(this,Yi).call(this,o.currentTable.querySelector("tbody.fixed"),i,i+r-1),y(this,yr).template.each((c,u)=>{e.template.cells=e.template.cells.concat(y(this,Yi).call(this,u,i,i+r-1))});for(var l=i;l<=i+r-1;l++)e.cols.push(y(this,fu).call(this,y(this,yr).body,l));for(var l=i;l<=i+r-1;l++)e.org.cols.push(y(this,fu).call(this,o.currentTable,l));return e});Q(this,Zv,(t,e,r,s)=>{if(t.closest("tr").rowIndex!=e.closest("tr").rowIndex)return!1;const i=parseInt(t.dataset.col),a=t.colSpan;parseInt(e.dataset.col),e.colSpan;for(var o of[r.thead.cells,r.tfoot.cells,r.tbody.cells,r.fixed.cells,r.template.cells])for(var l of o){const c=parseInt(l.dataset.col),u=l.colSpan;if(c<i||c+u-1>i+a-1)return!1}return!0});de(this,"moveColumn",(t,e)=>{if(!t||!e)return!1;const r=y(this,yr).shadowRoot.querySelector("ng-foot").shadowRoot.querySelector("ng-layout"),s=y(this,Lm).call(this,t),i=y(this,Lm).call(this,e),a=e.closest("table"),o=!!(t.closest(".ng-container-left")||e.closest(".ng-container-left")),l=!!(t.closest(".ng-container-right")||e.closest(".ng-container-right"));if(!y(this,Zv).call(this,t,e,s,i))return!1;for(var c of[s.thead.cells,s.tfoot.cells,s.tbody.cells,s.fixed.cells])for(var u of c){W.j.querySelectorAll(u).addClass("tmp");const b=u.closest("tr").rowIndex,w=a.querySelectorAll("tr")[b];var h=y(this,ch).call(this,w,t,e);h?w.insertBefore(u,h):w.appendChild(u)}for(var c of[s.org.thead.cells,s.org.tfoot.cells,s.org.tbody.cells,s.org.fixed.cells])for(var u of c){W.j.querySelectorAll(u).addClass("tmp");const _=u.closest("table"),T=u.closest("tr").rowIndex,M=_.querySelectorAll("tr")[T];var h=y(this,ch).call(this,M,t,e);h?M.insertBefore(u,h):M.appendChild(u)}for(var u of s.template.cells){W.j.querySelectorAll(u).addClass("tmp");const w=u.closest("tr");var h=y(this,ch).call(this,w,t,e);h?w.insertBefore(u,h):w.appendChild(u)}var d;parseInt(t.dataset.col)>parseInt(e.dataset.col)?d=parseInt(e.dataset.col):d=parseInt(e.dataset.col)+(e.colSpan||1)-1+(parseInt(t.dataset.col)>parseInt(e.dataset.col)?0:1);let f=y(this,fu).call(this,y(this,yr).body,d);const p=e.closest("table")==f.closest("table");for(var g of s.cols)g&&(p?e.closest("table").querySelector("colgroup").insertBefore(g,f):e.closest("table").querySelector("colgroup").appendChild(g));for(var g of s.org.cols)f=y(this,fu).call(this,r.currentTable,d),g&&g.closest("colgroup").insertBefore(g,f);for(var c of[s.thead.cells,s.tfoot.cells,s.tbody.cells,s.fixed.cells])for(var u of c)W.j.querySelectorAll(u).removeClass("tmp");for(var c of[s.org.thead.cells,s.org.tfoot.cells,s.org.tbody.cells,s.org.fixed.cells])for(var u of c)W.j.querySelectorAll(u).removeClass("tmp");for(var u of s.template.cells)W.j.querySelectorAll(u).removeClass("tmp");if(y(this,yr).body.querySelectorAll(".ng-container-left col").forEach(b=>{b.setAttribute("fixed","left")}),y(this,yr).body.querySelectorAll(".ng-container-left .col-indicator").forEach(b=>{b.setAttribute("fixed","left")}),y(this,yr).body.querySelectorAll(".ng-container-right col").forEach(b=>{b.setAttribute("fixed","right")}),y(this,yr).body.querySelectorAll(".ng-container-right .col-indicator").forEach(b=>{b.setAttribute("fixed","right")}),y(this,yr).body.querySelectorAll(".ng-container-body col").forEach(b=>{b.removeAttribute("fixed")}),y(this,yr).body.querySelectorAll(".ng-container-right .col-indicator").forEach(b=>{b.removeAttribute("fixed")}),r.currentTable.querySelectorAll("colgroup col").forEach(b=>{b.removeAttribute("fixed")}),$("th,td",y(this,yr).template).each((b,w)=>{w.removeAttribute("fixed")}),$("th,td",r.currentTable).each((b,w)=>{w.removeAttribute("fixed")}),y(this,yr).body.querySelectorAll(".ng-container-left .col-indicator").forEach(b=>{$(`[data-col="${b.dataset.col}"]`,y(this,yr).template).each((w,_)=>{_.setAttribute("fixed","left")}),$(`[data-col="${b.dataset.col}"]`,r.currentTable).each((w,_)=>{_.setAttribute("fixed","left")}),$("colgroup col",r.currentTable).each((w,_)=>{w<=parseInt(b.dataset.col)&&_.setAttribute("fixed","left")})}),y(this,yr).body.querySelectorAll(".ng-container-right .col-indicator").forEach(b=>{$(`[data-col="${b.dataset.col}"]`,y(this,yr).template).each((w,_)=>{_.setAttribute("fixed","right")}),$(`[data-col="${b.dataset.col}"]`,r.currentTable).each((w,_)=>{_.setAttribute("fixed","right")})}),y(this,yr).resetTemplate(),y(this,yr).body.querySelectorAll(".ng-container-right .col-indicator").forEach(b=>{$("colgroup col",r.currentTable).each((w,_)=>{w>=parseInt(b.dataset.col)&&_.setAttribute("fixed","right")})}),o){var m=e.closest(".ng-container-body")?-t.offsetWidth:0;$(".ng-container-left .col-indicator",y(this,yr).body).each((b,w)=>{m+=w.offsetWidth}),$(".ng-container-left",y(this,yr).body).css({width:m,"min-width":m})}if(l){var m=e.closest(".ng-container-body")?-t.offsetWidth:0;$(".ng-container-right .col-indicator",y(this,yr).body).each((w,_)=>{m+=_.offsetWidth}),$(".ng-container-right",y(this,yr).body).css({width:m,"min-width":m})}y(this,yr).refreshData()});de(this,"width",(t,e)=>{e=parseFloat(e);const r=y(this,yr).body.querySelector(`colgroup col[data-col="${t}"]`),s=!!r.closest(".ng-container-left"),i=!!r.closest(".ng-container-right"),a=!!r.closest(".ng-container-body"),o=s?"left":i?"right":"body";if(a)if(y(this,yr).getAttribute("auto-fit-col")=="true"){var l=0;$(".ng-container-body .col-indicator",y(this,yr).body).not(`[data-col=${t}]`).each((h,d)=>{l+=d.offsetWidth});const u=$(".ng-container-body",y(this,yr).body).width();$(".ng-container-body col",y(this,yr).body).each((h,d)=>{var f=parseInt(t==d.dataset.col?e:d.getAttribute("width"))*u/l;d.setAttribute("width",f)})}else r.setAttribute("width",e);else{var c=0;$(`.ng-container-${o} .col-indicator`,y(this,yr).body).not(`[data-col=${t}]`).each((u,h)=>{c+=parseInt(h.offsetWidth)}),$(`.ng-container-${o}`,y(this,yr).body).css({width:parseInt(c+e),"min-width":parseInt(c+e)}),r.setAttribute("width",e)}});oe(this,yr,t)}}yr=new WeakMap,fu=new WeakMap,Yi=new WeakMap,ch=new WeakMap,Lm=new WeakMap,Zv=new WeakMap;class cj extends Fc{constructor(){super();Q(this,Qv,10);Q(this,uh);Q(this,un);Q(this,hs);Q(this,jm);Q(this,Kl);Q(this,pu);Q(this,dh);de(this,"dataRefresh",e=>{y(this,hs)&&(y(this,e1).call(this)?W.j.querySelectorAll(this).removeClass("invalid"):W.j.querySelectorAll(this).addClass("invalid")),y(this,uh).innerHTML=this.getDisplayText()||"Select",e||this.reset()});Q(this,e1,()=>{if(W.isNull(this.value))return!0;var e=this.multi?this.value.split(this.multiSeparator):[this.value];for(var r of e){var s=y(this,hs).findIndex(i=>r==i[y(this,Kl)]);if(s<0)return!1}return!0});Q(this,t1,()=>{if(this.owner){if(oe(this,un,this.owner.shadowRoot.querySelector("ng-combo-panel")),this.owner.shadowRoot.querySelectorAll("ng-combo-panel").length>1)throw"too many ng-combo-panel";var e=this.getAttribute("data-source");e&&this.owner&&this.owner.exprFunction}});Q(this,r1,e=>{if(console.log(y(this,hs)),!!y(this,hs)){console.log(y(this,hs)),y(this,un).col=this.cell.dataset.col,y(this,un).row=this.cell.closest("tr").sectionRowIndex,y(this,hs).length>y(this,Qv)?W.j.querySelectorAll(y(this,un)).addClass("expand"):W.j.querySelectorAll(y(this,un)).removeClass("expand"),this.multi?W.j.querySelectorAll(y(this,un)).addClass("multi"):W.j.querySelectorAll(y(this,un)).removeClass("multi"),y(this,un).refresh(this,y(this,hs),y(this,Kl),y(this,dh));var r=$(".btn1",this.shadowRoot).offset().left-$(this.owner).offset().left;r+$(y(this,un)).width()>$(this.owner).width()&&(r=$(".btn2",this.shadowRoot).offset().left-$(this.owner).offset().left-$(y(this,un)).width()+8),r<0&&(r=0);var s=Math.min(y(this,hs).length,y(this,jm))*26;this.multi?(W.j.querySelectorAll(y(this,un)).hasClass("expand")&&(s+=12,s+=3,s+=24),s+=2,s+=3,s+=25):(W.j.querySelectorAll(y(this,un)).hasClass("expand")&&(s+=12,s+=3,s+=24),s+=3);var i=$(".btn1",this.shadowRoot).offset().top+$(".btn1",this.shadowRoot).height()-$(this.owner).offset().top+3;i+s>$(this.owner).height()&&(i-=s+$(".btn1",this.shadowRoot).height()+6);var a=this.getAttribute("template");a&&console.error("logic error !!!!"),$(y(this,un)).css({left:r,top:i,height:s,"min-height":s}).show(),W.j.querySelectorAll(y(this,un)).hasClass("expand")&&$("div",y(this,un)).eq(0).find("input").focus().val("")}});Q(this,n1,e=>{e.target.closest("ng-combo-panel")||(y(this,un).row=y(this,un).col=-1,$(y(this,un)).hide())});Q(this,g3,()=>"a")}connectedCallback(){this.multi=this.getAttribute("multi")=="true",this.multiSeparator=this.getAttribute("multi-separator")||",",oe(this,jm,this.getAttribute("rows")||5),oe(this,Kl,this.getAttribute("code")||"code"),oe(this,pu,this.getAttribute("codename")||"codename"),oe(this,dh,(this.getAttribute("items")||y(this,pu)||"").split(",")),y(this,dh).unshift("CHK");var e=this.querySelector("datalist");e&&(oe(this,hs,[]),e.querySelectorAll("option").forEach(o=>{const l=o.getAttribute(y(this,Kl)),c=o.getAttribute(y(this,pu));l&&c&&y(this,hs).push({[y(this,Kl)]:l,[y(this,pu)]:c})})),this.shadowRoot.innerHTML=`
330
+ `}}customElements.get("ng-col-mover-grip")||customElements.define("ng-col-mover-grip",sj),customElements.get("ng-col-mover-indi")||customElements.define("ng-col-mover-indi",ij);class aj{constructor(t){Q(this,$r);Q(this,Xi);Q(this,ya);Q(this,Em);Q(this,ki);Q(this,rh);Q(this,wa);de(this,"resetEvent",()=>{$(document).off("mouseup",y(this,nh)),$(".ng-table thead",y(this,$r).body).off("mousedown",y(this,Am)),y(this,$r).body.querySelectorAll(".ng-table thead").forEach(t=>{t.removeEventListener("click",y(this,Cm))}),$(document).on("mouseup",y(this,nh)),$(".ng-table thead",y(this,$r).body).on("mousedown",y(this,Am)),y(this,$r).body.querySelectorAll(".ng-table thead").forEach(t=>{t.addEventListener("click",y(this,Cm))})});Q(this,Cm,t=>{if(t.target.closest("ng-filter-button"))return;const e=t.currentTarget||t.target,r=getComputedStyle(e,":before"),s=getComputedStyle(e,":after");if(!(!r&&!s)){if(r){const u=Number(r.getPropertyValue("top").slice(0,-2)),h=6,d=Number(r.getPropertyValue("left").slice(0,-2));if(t.layerX>=d&&t.layerX<=d+6&&t.layerY>=u&&t.layerY<=u+h){var i=t.target.closest(".ng-container-left")||t.target.closest(".ng-container-body");if(i){var a=i.querySelectorAll("thead tr:nth-child(2) th:not(.dummy),thead tr:nth-child(2) td:not(.dummy)"),o=t.target.closest(".ng-container-left")?y(this,$r).body.querySelector(".ng-container-body"):y(this,$r).body.querySelector(".ng-container-right"),l=o.querySelector("thead tr:nth-child(2) th:first-child,thead tr:nth-child(2) td:first-child");const p=parseInt(a[a.length-1].dataset.col),g=a[a.length-1].colSpan;for(var c=0;c<g;c++)y(this,$r).body.querySelectorAll(`[data-col="${p+c}"] ng-col-expand:not(.expand)`).forEach(m=>{m.expand()});t.target.closest(".ng-container-body")?y(this,$r).body.querySelectorAll(".ng-container-right colgroup col:not(.dummy)").length==0?y(this,$r).columns.moveColumn(a[a.length-1],l):(y(this,$r).columns.moveColumn(a[a.length-1],l),y(this,$r).columns.moveColumn(a[a.length-1],l)):(y(this,$r).columns.moveColumn(a[a.length-1],l),y(this,$r).columns.moveColumn(a[a.length-1],l))}}}if(s){const u=Number(s.getPropertyValue("top").slice(0,-2)),h=6,d=Number(s.getPropertyValue("left").slice(0,-2));if(t.layerX>=d&&t.layerX<=d+6&&t.layerY>=u&&t.layerY<=u+h){var i=t.target.closest(".ng-container-body")||t.target.closest(".ng-container-right");if(i){var a=i.querySelector("thead tr:nth-child(2) th:first-child,thead tr:nth-child(2) td:first-child"),o=t.target.closest(".ng-container-body")?y(this,$r).body.querySelector(".ng-container-left"):y(this,$r).body.querySelector(".ng-container-body"),l=o.querySelectorAll("thead tr:nth-child(2) th:not(.dummy),thead tr:nth-child(2) td:not(.dummy)");const w=parseInt(a.dataset.col),_=a.colSpan;for(var c=0;c<_;c++)y(this,$r).body.querySelectorAll(`[data-col="${w+c}"] ng-col-expand:not(.expand)`).forEach(M=>{M.expand()});t.target.closest(".ng-container-right")?(y(this,$r).columns.moveColumn(a,l[l.length-1]),y(this,$r).columns.moveColumn(l[l.length-1],a)):(y(this,$r).columns.moveColumn(a,l[l.length-1]),y(this,$r).columns.moveColumn(a,l[l.length-1]))}}}}});Q(this,f3,t=>{if(!["INPUT"].includes(t.target.tagName)){var e=t.target.getBoundingClientRect();t.offsetX=t.targetTouches[0].pageX-e.left,t.pageX=t.changedTouches[0].pageX,t.pageY=t.changedTouches[0].pageY,t.buttons=1,y(this,Rm).call(this,t),$(document).on("touchmove",r=>y(this,Tm).call(this,r))}});Q(this,Tm,t=>{var e=t.target.getBoundingClientRect();t.offsetX=t.targetTouches[0].pageX-e.left,t.pageX=t.changedTouches[0].pageX,t.pageY=t.changedTouches[0].pageY,t.clientX=t.changedTouches[0].clientX,y(this,sh).call(this,t)});Q(this,p3,t=>{t.clientX=t.changedTouches[0].clientX,y(this,nh).call(this,t)});Q(this,Am,t=>{W.j.querySelectorAll(y(this,$r)).attr("col-movable")=="true"&&t.target.tagName!="NG-FILTER-BUTTON"&&(oe(this,rh,!0),setTimeout(()=>{y(this,rh)&&y(this,Rm).call(this,t)},500))});Q(this,Rm,t=>{if(t.buttons!=1||t.altKey||t.ctrlKey||t.shiftkey||["INPUT"].includes(t.target.tagName))return;var e=t.pageX-$(t.target).offset().left;if(e<=3||$(t.target).width()-e<=3)return;t.target.closest(".ng-container-right")&&y(this,$r).body.querySelector("ng-hscrollbar").scrollToEnd();var r=t.target.closest("th,td");oe(this,ki,{col:parseInt(r.dataset.col),row:t.target.closest("tr").sectionRowIndex,target:r}),oe(this,Em,e+y(this,Xi)[0].getBoundingClientRect().x);const s=y(this,Xi)[0].shadowRoot.querySelector("span");s.innerHTML=$(t.target).html(),$(s).css({font:$(r).css("font")}),y(this,Xi).show(),y(this,Xi).width($(r).width()),y(this,Xi).height($(r).height()),y(this,Xi).offset({top:$(r).offset().top-1}),$(document).on("mousemove",y(this,sh)),y(this,Om).call(this,t.pageX);const i=y(this,$r).tableUtils.getElement("thead",y(this,ki).row,t.clientX);y(this,ya).height($(i).height())});Q(this,nh,t=>{if(oe(this,rh,!1),$(document).off("mousemove",y(this,sh)),$(document).off("touchmove",y(this,Tm)),y(this,wa)&&$(y(this,wa).target).css({cursor:y(this,wa).cursor}),y(this,ki)){var e=y(this,$r).tableUtils.getElement("thead",y(this,ki).row,t.clientX);y(this,$r).columns.moveColumn(y(this,ki).target,e)}oe(this,wa,null),oe(this,ki,null),y(this,Xi).hide(),y(this,ya).hide()});Q(this,sh,t=>{if(y(this,ki)!=null){y(this,wa)&&$(y(this,wa).target).css({cursor:y(this,wa).cursor}),oe(this,wa,{target:t.target,cursor:$(t.target).css("cursor")}),$(t.target).css({cursor:t.target.closest("thead")||t.target.tagName=="ng-col-mover-grip"?"move":"not-allowed"});var e=y(this,$r).tableUtils.getElement("thead",y(this,ki).row,t.clientX);if(e)if(y(this,ki).col>parseInt(e.dataset.col)){var r=$(e).offset();y(this,ya).show(),y(this,ya).offset({left:parseInt(r.left-1),top:r.top})}else if(y(this,ki).col<parseInt(e.dataset.col)){var r=$(e).offset();y(this,ya).show(),y(this,ya).offset({left:parseInt(r.left+$(e).width()-1),top:r.top})}else y(this,ya).hide();y(this,Om).call(this,t.pageX)}});Q(this,Om,t=>{y(this,Xi).offset({left:t-y(this,Em)})});oe(this,$r,t),$(".ng-container",y(this,$r).body).append($("<ng-col-mover-grip></ng-col-mover-grip>").hide()).append($("<ng-col-mover-indi></ng-col-mover-indi>").hide()),oe(this,Xi,$("ng-col-mover-grip",y(this,$r).body)),oe(this,ya,$("ng-col-mover-indi",y(this,$r).body)),this.resetEvent()}}$r=new WeakMap,Xi=new WeakMap,ya=new WeakMap,Em=new WeakMap,ki=new WeakMap,rh=new WeakMap,wa=new WeakMap,Cm=new WeakMap,f3=new WeakMap,Tm=new WeakMap,p3=new WeakMap,Am=new WeakMap,Rm=new WeakMap,nh=new WeakMap,sh=new WeakMap,Om=new WeakMap;class oj{constructor(t){Q(this,Qr);Q(this,Ei);Q(this,Ci);Q(this,Ul);Q(this,Vl);Q(this,va);Q(this,Ti);Q(this,Wl);Q(this,Gl,[]);de(this,"resetEvent",()=>{$(".ng-table > thead",y(this,Qr).body).off("mousemove",y(this,Nm)).off("mousedown",y(this,Pm)).off("dblclick",y(this,Mm)),$(document).off("mouseup",y(this,Im)),$(".ng-table > thead",y(this,Qr).body).on("mousemove",y(this,Nm)).on("mousedown",y(this,Pm)).on("dblclick",y(this,Mm)),$(document).on("mouseup",y(this,Im))});de(this,"autoFit",t=>{if(y(this,Qr).body)if(t){y(this,Qr).body.querySelector("ng-hscrollbar").scrollToHome(),oe(this,Gl,[]);var e=0;$(".ng-container-body col",y(this,Qr).body).each((s,i)=>{y(this,Gl).push({col:i,width:parseInt(i.getAttribute("width"))})}),y(this,Gl).forEach(s=>{e+=s.width}),$(".ng-container-body > table",y(this,Qr).body).css({width:"100%","min-width":"100%"});var r=$(".ng-container-body",y(this,Qr).body).width();r!=0&&y(this,Gl).forEach(s=>{var i=s.width*r/e;s.col.setAttribute("width",i)})}else $(".ng-container-body > table",y(this,Qr).body).css({width:"0","min-width":"0"}),y(this,Gl).forEach(s=>{s.col.setAttribute("width",s.width)})});Q(this,Mm,t=>{t.target.style.cursor=="col-resize"&&y(this,Jv).call(this,t)});Q(this,Im,t=>{oe(this,Vl,!1)});Q(this,Nm,t=>{if(!t.target.closest("ng-info")&&(t.target=t.target.closest("th,td"),!!t.target&&y(this,Qr).getAttribute("col-resizable")=="true"&&!(t.altKey||t.ctrlKey||t.shiftkey)))if(t.preventDefault(),t.offsetX<=2||t.offsetX>=t.target.offsetWidth-2){if(t.offsetX<=2&&y(this,Qr).tableUtils.isFirst(t.target)||t.offsetX>=t.target.offsetWidth-2&&y(this,Qr).tableUtils.isLast(t.target))return;t.target.style.cursor="col-resize"}else t.target.style.cursor="auto"});Q(this,m3,t=>{oe(this,Vl,!0),setTimeout(()=>{y(this,Vl)&&y(this,Yv).call(this,t)},500)});Q(this,Pm,t=>{const e=t.target.closest("th,td");!e||e.style.cursor!="col-resize"||(oe(this,Vl,!0),setTimeout(()=>{y(this,Vl)&&y(this,$m).call(this,t)},500))});Q(this,Yv,t=>{t.target=t.target.closest("th,td");var e=t.target.getBoundingClientRect();t.offsetX=t.targetTouches[0].pageX-e.left,t.pageX=t.changedTouches[0].pageX,t.buttons=1,y(this,$m).call(this,t),y(this,Ei).is(":visible")?($(t.target).on("touchmove",r=>y(this,ih).call(this,r)),$(t.target).on("touchend",r=>y(this,oh).call(this,r))):($(t.target).off("touchmove",r=>y(this,ih).call(this,r)),$(t.target).off("touchend",r=>y(this,oh).call(this,r)))});Q(this,$m,t=>{if(t.target=t.target.closest("th,td"),!(t.buttons!=1||t.altKey||t.ctrlKey||t.shiftkey)){if(oe(this,Wl,!!t.target.closest(".ng-container-right")),t.pageX-$(t.target).offset().left<=3){var e=$(`.col-indicator[data-col=${t.target.dataset.col}]`,y(this,Qr).body).not(".dummy")[0];oe(this,va,y(this,Qr).tableUtils.prev(e)),oe(this,Ti,$(e))}else{if($(t.target).width()-t.offsetX>2)return;var r=parseInt(t.target.dataset.col)+t.target.colSpan-1,e=$(`.col-indicator[data-col=${r}]`,y(this,Qr).body).not(".dummy")[0];oe(this,va,$(e)),oe(this,Ti,y(this,Qr).tableUtils.next(e))}y(this,Ei).show(),y(this,Ci).offset({top:$(".ng-container-body",y(this,Qr).body).offset().top,left:y(this,Ti).offset().left-1}),y(this,Ci).height(y(this,Qr).body.querySelector(".ng-container-body").offsetHeight),y(this,Ul).offset({top:$(".ng-container-body",y(this,Qr).body).offset().top}),y(this,lh).call(this,t.pageX),$(y(this,Ei)).off("mousemove",y(this,ah)).off("mouseup",y(this,hu)).on("mousemove",y(this,ah)).on("mouseup",y(this,hu))}});Q(this,ih,t=>{y(this,lh).call(this,t.changedTouches[0].pageX)});Q(this,ah,t=>{y(this,lh).call(this,t.pageX)});Q(this,oh,t=>{$(t.target).off("touchmove",e=>y(this,ih).call(this,e)),$(t.target).off("touchend",e=>y(this,oh).call(this,e)),y(this,hu).call(this,t)});Q(this,hu,t=>{if(!y(this,Ci).is(":visible"))return;var e;y(this,Wl)?e=y(this,Ti).offset().left-y(this,Ci).offset().left+y(this,Ti).width():e=y(this,Ci).offset().left-y(this,va).offset().left+1,e<=1&&(e=0);const r=y(this,Wl)?y(this,Ti)[0].dataset.col:y(this,va)[0].dataset.col;y(this,Qr).columns.width(r,e),$(y(this,Ei)).off("mousemove",y(this,ah)),$(y(this,Ei)).off("mouseup",y(this,hu)),y(this,Ei).hide()});Q(this,lh,t=>{!y(this,Wl)&&t<y(this,va).offset().left&&(t=y(this,va).offset().left),y(this,Ci).offset({left:t});var e=parseInt(y(this,Ci).offset().left),r,s,i;y(this,Wl)?(s=y(this,Ti).width()+y(this,Ti).offset().left-y(this,Ci).offset().left,i=s<10?10:s-1,r=parseInt(y(this,Ti).width()+y(this,Ti).offset().left-y(this,Ci).offset().left)):(s=parseInt(e-y(this,va).offset().left),i=s,r=parseInt(e-y(this,va).offset().left+1),e=e-i),r<=1&&(r=0),y(this,Ul).offset({left:e}),y(this,Ul).width(i),y(this,Ul).find("span").text(r)});Q(this,Jv,t=>{var e=t.target.closest("th,td"),r=y(this,Qr).tableUtils.prev(e),s=y(this,Qr).tableUtils.next(e),i=y(this,Qr).getBand(e.dataset.col)==W.BAND.RIGHT?t.offsetX<=2?$(e):s:t.offsetX<=2?r:$(e);y(this,Qr).setColumnWidthFit(i[0].dataset.col)});oe(this,Qr,t),oe(this,Ei,$('<div class="resizer-col-panel"><div class="grip"></div><div class="tooltip"><div></div><span></span><div></div></div></div>').hide()),$(y(this,Qr).body).append(y(this,Ei)),oe(this,Ci,y(this,Ei).find(".grip")),oe(this,Ul,y(this,Ei).find(".tooltip")),this.resetEvent()}}Qr=new WeakMap,Ei=new WeakMap,Ci=new WeakMap,Ul=new WeakMap,Vl=new WeakMap,va=new WeakMap,Ti=new WeakMap,Wl=new WeakMap,Gl=new WeakMap,Mm=new WeakMap,Im=new WeakMap,Nm=new WeakMap,m3=new WeakMap,Pm=new WeakMap,Yv=new WeakMap,$m=new WeakMap,ih=new WeakMap,ah=new WeakMap,oh=new WeakMap,hu=new WeakMap,lh=new WeakMap,Jv=new WeakMap;class lj{constructor(t){Q(this,wr);de(this,"count",()=>y(this,wr).activeTmpl.querySelectorAll("[data-bind]").length);de(this,"info",t=>{const e=r=>{if(!r)return null;const s=y(this,wr).body.querySelectorAll(`thead [data-col="${r.dataset.col}"]`);return{name:r.dataset.bind,type:(r.dataset.type||"string").toLocaleLowerCase(),desc:s.length>0?s[s.length-1].getAttribute("title"):null}};return t?e(y(this,wr).activeTmpl.querySelector(`[data-bind="${t}"]`)):Array.from(y(this,wr).activeTmpl.querySelectorAll("[data-bind]")).filter(r=>r.dataset.bind!=="rowState").map(r=>e(r))});Q(this,fu,(t,e)=>{var r=Array.from(t.querySelectorAll("col"));return r[e]});Q(this,Yi,(t,e,r)=>{var s=[];if(!t)return s;for(var i=e;i<=r;i++)s=s.concat(Array.from(t.querySelectorAll(`[data-col="${i}"]:not(.dummy)`)));return s});Q(this,ch,(t,e,r)=>{const s=(a,o)=>{const l=parseInt(o.dataset.col);return a.closest("thead,tbody,tfoot"),a.querySelector(`[data-col="${l}"]`)},i=(a,o)=>{const l=parseInt(o.dataset.col),c=o.colSpan||1,u=!a.closest("thead,tbody,tfoot");var h=a.querySelectorAll("th:not(.tmp),td:not(.tmp)");for(var d of h)if(parseInt(d.dataset.col)>l+c-1)return d};return parseInt(e.dataset.col)>parseInt(r.dataset.col)?s(t,r):i(t,r)});Q(this,Lm,t=>{const e={org:{thead:{cells:[]},tfoot:{cells:[]},tbody:{cells:[]},fixed:{cells:[]},cols:[]},thead:{cells:[]},tfoot:{cells:[]},tbody:{cells:[]},fixed:{cells:[]},template:{cells:[]},cols:[]},r=t.colSpan||1,s=t.closest("table"),i=parseInt(t.dataset.col),a=t.closest("tr").sectionRowIndex;$("thead tr",s).each((c,u)=>{if(u.sectionRowIndex<a&&u.sectionRowIndex!=0)return!0;e.thead.cells=e.thead.cells.concat(y(this,Yi).call(this,u,i,i+r-1))}),e.tfoot.cells=y(this,Yi).call(this,s.querySelector("tfoot"),i,i+r-1),e.tbody.cells=y(this,Yi).call(this,s.querySelector("tbody.bindable"),i,i+r-1),e.fixed.cells=y(this,Yi).call(this,s.querySelector("tbody.fixed"),i,i+r-1);const o=y(this,wr).shadowRoot.querySelector("ng-foot").shadowRoot.querySelector("ng-layout");e.org.thead.cells=y(this,Yi).call(this,o.currentTable.querySelector("thead"),i,i+r-1),e.org.tfoot.cells=y(this,Yi).call(this,o.currentTable.querySelector("tfoot"),i,i+r-1),e.org.tbody.cells=y(this,Yi).call(this,o.currentTable.querySelector("tbody.bindable"),i,i+r-1),e.org.fixed.cells=y(this,Yi).call(this,o.currentTable.querySelector("tbody.fixed"),i,i+r-1),y(this,wr).template.each((c,u)=>{e.template.cells=e.template.cells.concat(y(this,Yi).call(this,u,i,i+r-1))});for(var l=i;l<=i+r-1;l++)e.cols.push(y(this,fu).call(this,y(this,wr).body,l));for(var l=i;l<=i+r-1;l++)e.org.cols.push(y(this,fu).call(this,o.currentTable,l));return e});Q(this,Zv,(t,e,r,s)=>{if(t.closest("tr").rowIndex!=e.closest("tr").rowIndex)return!1;const i=parseInt(t.dataset.col),a=t.colSpan;parseInt(e.dataset.col),e.colSpan;for(var o of[r.thead.cells,r.tfoot.cells,r.tbody.cells,r.fixed.cells,r.template.cells])for(var l of o){const c=parseInt(l.dataset.col),u=l.colSpan;if(c<i||c+u-1>i+a-1)return!1}return!0});de(this,"moveColumn",(t,e)=>{if(!t||!e)return!1;const r=y(this,wr).shadowRoot.querySelector("ng-foot").shadowRoot.querySelector("ng-layout"),s=y(this,Lm).call(this,t),i=y(this,Lm).call(this,e),a=e.closest("table"),o=!!(t.closest(".ng-container-left")||e.closest(".ng-container-left")),l=!!(t.closest(".ng-container-right")||e.closest(".ng-container-right"));if(!y(this,Zv).call(this,t,e,s,i))return!1;for(var c of[s.thead.cells,s.tfoot.cells,s.tbody.cells,s.fixed.cells])for(var u of c){W.j.querySelectorAll(u).addClass("tmp");const b=u.closest("tr").rowIndex,w=a.querySelectorAll("tr")[b];var h=y(this,ch).call(this,w,t,e);h?w.insertBefore(u,h):w.appendChild(u)}for(var c of[s.org.thead.cells,s.org.tfoot.cells,s.org.tbody.cells,s.org.fixed.cells])for(var u of c){W.j.querySelectorAll(u).addClass("tmp");const _=u.closest("table"),T=u.closest("tr").rowIndex,M=_.querySelectorAll("tr")[T];var h=y(this,ch).call(this,M,t,e);h?M.insertBefore(u,h):M.appendChild(u)}for(var u of s.template.cells){W.j.querySelectorAll(u).addClass("tmp");const w=u.closest("tr");var h=y(this,ch).call(this,w,t,e);h?w.insertBefore(u,h):w.appendChild(u)}var d;parseInt(t.dataset.col)>parseInt(e.dataset.col)?d=parseInt(e.dataset.col):d=parseInt(e.dataset.col)+(e.colSpan||1)-1+(parseInt(t.dataset.col)>parseInt(e.dataset.col)?0:1);let f=y(this,fu).call(this,y(this,wr).body,d);const p=e.closest("table")==f.closest("table");for(var g of s.cols)g&&(p?e.closest("table").querySelector("colgroup").insertBefore(g,f):e.closest("table").querySelector("colgroup").appendChild(g));for(var g of s.org.cols)f=y(this,fu).call(this,r.currentTable,d),g&&g.closest("colgroup").insertBefore(g,f);for(var c of[s.thead.cells,s.tfoot.cells,s.tbody.cells,s.fixed.cells])for(var u of c)W.j.querySelectorAll(u).removeClass("tmp");for(var c of[s.org.thead.cells,s.org.tfoot.cells,s.org.tbody.cells,s.org.fixed.cells])for(var u of c)W.j.querySelectorAll(u).removeClass("tmp");for(var u of s.template.cells)W.j.querySelectorAll(u).removeClass("tmp");if(y(this,wr).body.querySelectorAll(".ng-container-left col").forEach(b=>{b.setAttribute("fixed","left")}),y(this,wr).body.querySelectorAll(".ng-container-left .col-indicator").forEach(b=>{b.setAttribute("fixed","left")}),y(this,wr).body.querySelectorAll(".ng-container-right col").forEach(b=>{b.setAttribute("fixed","right")}),y(this,wr).body.querySelectorAll(".ng-container-right .col-indicator").forEach(b=>{b.setAttribute("fixed","right")}),y(this,wr).body.querySelectorAll(".ng-container-body col").forEach(b=>{b.removeAttribute("fixed")}),y(this,wr).body.querySelectorAll(".ng-container-right .col-indicator").forEach(b=>{b.removeAttribute("fixed")}),r.currentTable.querySelectorAll("colgroup col").forEach(b=>{b.removeAttribute("fixed")}),$("th,td",y(this,wr).template).each((b,w)=>{w.removeAttribute("fixed")}),$("th,td",r.currentTable).each((b,w)=>{w.removeAttribute("fixed")}),y(this,wr).body.querySelectorAll(".ng-container-left .col-indicator").forEach(b=>{$(`[data-col="${b.dataset.col}"]`,y(this,wr).template).each((w,_)=>{_.setAttribute("fixed","left")}),$(`[data-col="${b.dataset.col}"]`,r.currentTable).each((w,_)=>{_.setAttribute("fixed","left")}),$("colgroup col",r.currentTable).each((w,_)=>{w<=parseInt(b.dataset.col)&&_.setAttribute("fixed","left")})}),y(this,wr).body.querySelectorAll(".ng-container-right .col-indicator").forEach(b=>{$(`[data-col="${b.dataset.col}"]`,y(this,wr).template).each((w,_)=>{_.setAttribute("fixed","right")}),$(`[data-col="${b.dataset.col}"]`,r.currentTable).each((w,_)=>{_.setAttribute("fixed","right")})}),y(this,wr).resetTemplate(),y(this,wr).body.querySelectorAll(".ng-container-right .col-indicator").forEach(b=>{$("colgroup col",r.currentTable).each((w,_)=>{w>=parseInt(b.dataset.col)&&_.setAttribute("fixed","right")})}),o){var m=e.closest(".ng-container-body")?-t.offsetWidth:0;$(".ng-container-left .col-indicator",y(this,wr).body).each((b,w)=>{m+=w.offsetWidth}),$(".ng-container-left",y(this,wr).body).css({width:m,"min-width":m})}if(l){var m=e.closest(".ng-container-body")?-t.offsetWidth:0;$(".ng-container-right .col-indicator",y(this,wr).body).each((w,_)=>{m+=_.offsetWidth}),$(".ng-container-right",y(this,wr).body).css({width:m,"min-width":m})}y(this,wr).refreshData()});de(this,"width",(t,e)=>{e=parseFloat(e);const r=y(this,wr).body.querySelector(`colgroup col[data-col="${t}"]`),s=!!r.closest(".ng-container-left"),i=!!r.closest(".ng-container-right"),a=!!r.closest(".ng-container-body"),o=s?"left":i?"right":"body";if(a)if(y(this,wr).getAttribute("auto-fit-col")=="true"){var l=0;$(".ng-container-body .col-indicator",y(this,wr).body).not(`[data-col=${t}]`).each((h,d)=>{l+=d.offsetWidth});const u=$(".ng-container-body",y(this,wr).body).width();$(".ng-container-body col",y(this,wr).body).each((h,d)=>{var f=parseInt(t==d.dataset.col?e:d.getAttribute("width"))*u/l;d.setAttribute("width",f)})}else r.setAttribute("width",e);else{var c=0;$(`.ng-container-${o} .col-indicator`,y(this,wr).body).not(`[data-col=${t}]`).each((u,h)=>{c+=parseInt(h.offsetWidth)}),$(`.ng-container-${o}`,y(this,wr).body).css({width:parseInt(c+e),"min-width":parseInt(c+e)}),r.setAttribute("width",e)}});oe(this,wr,t)}}wr=new WeakMap,fu=new WeakMap,Yi=new WeakMap,ch=new WeakMap,Lm=new WeakMap,Zv=new WeakMap;class cj extends Fc{constructor(){super();Q(this,Qv,10);Q(this,uh);Q(this,un);Q(this,hs);Q(this,jm);Q(this,Kl);Q(this,pu);Q(this,dh);de(this,"dataRefresh",e=>{y(this,hs)&&(y(this,e1).call(this)?W.j.querySelectorAll(this).removeClass("invalid"):W.j.querySelectorAll(this).addClass("invalid")),y(this,uh).innerHTML=this.getDisplayText()||"Select",e||this.reset()});Q(this,e1,()=>{if(W.isNull(this.value))return!0;var e=this.multi?this.value.split(this.multiSeparator):[this.value];for(var r of e){var s=y(this,hs).findIndex(i=>r==i[y(this,Kl)]);if(s<0)return!1}return!0});Q(this,t1,()=>{if(this.owner){if(oe(this,un,this.owner.shadowRoot.querySelector("ng-combo-panel")),this.owner.shadowRoot.querySelectorAll("ng-combo-panel").length>1)throw"too many ng-combo-panel";var e=this.getAttribute("data-source");e&&this.owner&&this.owner.exprFunction}});Q(this,r1,e=>{if(console.log(y(this,hs)),!!y(this,hs)){console.log(y(this,hs)),y(this,un).col=this.cell.dataset.col,y(this,un).row=this.cell.closest("tr").sectionRowIndex,y(this,hs).length>y(this,Qv)?W.j.querySelectorAll(y(this,un)).addClass("expand"):W.j.querySelectorAll(y(this,un)).removeClass("expand"),this.multi?W.j.querySelectorAll(y(this,un)).addClass("multi"):W.j.querySelectorAll(y(this,un)).removeClass("multi"),y(this,un).refresh(this,y(this,hs),y(this,Kl),y(this,dh));var r=$(".btn1",this.shadowRoot).offset().left-$(this.owner).offset().left;r+$(y(this,un)).width()>$(this.owner).width()&&(r=$(".btn2",this.shadowRoot).offset().left-$(this.owner).offset().left-$(y(this,un)).width()+8),r<0&&(r=0);var s=Math.min(y(this,hs).length,y(this,jm))*26;this.multi?(W.j.querySelectorAll(y(this,un)).hasClass("expand")&&(s+=12,s+=3,s+=24),s+=2,s+=3,s+=25):(W.j.querySelectorAll(y(this,un)).hasClass("expand")&&(s+=12,s+=3,s+=24),s+=3);var i=$(".btn1",this.shadowRoot).offset().top+$(".btn1",this.shadowRoot).height()-$(this.owner).offset().top+3;i+s>$(this.owner).height()&&(i-=s+$(".btn1",this.shadowRoot).height()+6);var a=this.getAttribute("template");a&&console.error("logic error !!!!"),$(y(this,un)).css({left:r,top:i,height:s,"min-height":s}).show(),W.j.querySelectorAll(y(this,un)).hasClass("expand")&&$("div",y(this,un)).eq(0).find("input").focus().val("")}});Q(this,n1,e=>{e.target.closest("ng-combo-panel")||(y(this,un).row=y(this,un).col=-1,$(y(this,un)).hide())});Q(this,g3,()=>"a")}connectedCallback(){this.multi=this.getAttribute("multi")=="true",this.multiSeparator=this.getAttribute("multi-separator")||",",oe(this,jm,this.getAttribute("rows")||5),oe(this,Kl,this.getAttribute("code")||"code"),oe(this,pu,this.getAttribute("codename")||"codename"),oe(this,dh,(this.getAttribute("items")||y(this,pu)||"").split(",")),y(this,dh).unshift("CHK");var e=this.querySelector("datalist");e&&(oe(this,hs,[]),e.querySelectorAll("option").forEach(o=>{const l=o.getAttribute(y(this,Kl)),c=o.getAttribute(y(this,pu));l&&c&&y(this,hs).push({[y(this,Kl)]:l,[y(this,pu)]:c})})),this.shadowRoot.innerHTML=`
331
331
  <style>
332
332
  @import "https://cdn.jsdelivr.net/npm/ninegrid2@${W.version}/dist/css/ngCombo.css";
333
333
  ${W.getCustomPath(this,"ngCombo.css")}
@@ -430,7 +430,7 @@ img.ProseMirror-separator {
430
430
  ]`;this.ESCAPE_REGEXP=new RegExp(u)}set headers(c){this._headers=c}shouldQuote(c,u){const h=u?this.formatterOptions.quoteHeaders:this.formatterOptions.quoteColumns;return a.default(h)?h:Array.isArray(h)?h[c]:this._headers!==null&&h[this._headers[c]]}format(c,u,h){const d=(""+(o.default(c)?"":c)).replace(/\0/g,""),{formatterOptions:f}=this;return f.quote!==""&&d.indexOf(f.quote)!==-1?this.quoteField(d.replace(this.REPLACE_REGEXP,f.escapedQuote)):d.search(this.ESCAPE_REGEXP)!==-1||this.shouldQuote(u,h)?this.quoteField(d):d}quoteField(c){const{quote:u}=this.formatterOptions;return`${u}${c}${u}`}}},{"lodash.escaperegexp":442,"lodash.isboolean":444,"lodash.isnil":447}],149:[function(e,r,s){var i=function(h){return h&&h.__esModule?h:{default:h}};Object.defineProperty(s,"__esModule",{value:!0}),s.RowFormatter=void 0;const a=i(e("lodash.isfunction")),o=i(e("lodash.isequal")),l=e("./FieldFormatter"),c=e("../types");class u{constructor(d){this.rowCount=0,this.formatterOptions=d,this.fieldFormatter=new l.FieldFormatter(d),this.headers=d.headers,this.shouldWriteHeaders=d.shouldWriteHeaders,this.hasWrittenHeaders=!1,this.headers!==null&&(this.fieldFormatter.headers=this.headers),d.transform&&(this.rowTransform=d.transform)}static isRowHashArray(d){return!!Array.isArray(d)&&Array.isArray(d[0])&&d[0].length===2}static isRowArray(d){return Array.isArray(d)&&!this.isRowHashArray(d)}static gatherHeaders(d){return u.isRowHashArray(d)?d.map(f=>f[0]):Array.isArray(d)?d:Object.keys(d)}static createTransform(d){return c.isSyncTransform(d)?(f,p)=>{let g=null;try{g=d(f)}catch(m){return p(m)}return p(null,g)}:(f,p)=>{d(f,p)}}set rowTransform(d){if(!a.default(d))throw new TypeError("The transform should be a function");this._rowTransform=u.createTransform(d)}format(d,f){this.callTransformer(d,(p,g)=>{if(p)return f(p);if(!d)return f(null);const m=[];if(g){const{shouldFormatColumns:b,headers:w}=this.checkHeaders(g);if(this.shouldWriteHeaders&&w&&!this.hasWrittenHeaders&&(m.push(this.formatColumns(w,!0)),this.hasWrittenHeaders=!0),b){const _=this.gatherColumns(g);m.push(this.formatColumns(_,!1))}}return f(null,m)})}finish(d){const f=[];if(this.formatterOptions.alwaysWriteHeaders&&this.rowCount===0){if(!this.headers)return d(new Error("`alwaysWriteHeaders` option is set to true but `headers` option not provided."));f.push(this.formatColumns(this.headers,!0))}return this.formatterOptions.includeEndRowDelimiter&&f.push(this.formatterOptions.rowDelimiter),d(null,f)}checkHeaders(d){if(this.headers)return{shouldFormatColumns:!0,headers:this.headers};const f=u.gatherHeaders(d);return this.headers=f,this.fieldFormatter.headers=f,this.shouldWriteHeaders?{shouldFormatColumns:!o.default(f,d),headers:f}:{shouldFormatColumns:!0,headers:null}}gatherColumns(d){if(this.headers===null)throw new Error("Headers is currently null");return Array.isArray(d)?u.isRowHashArray(d)?this.headers.map((f,p)=>{const g=d[p];return g?g[1]:""}):u.isRowArray(d)&&!this.shouldWriteHeaders?d:this.headers.map((f,p)=>d[p]):this.headers.map(f=>d[f])}callTransformer(d,f){return this._rowTransform?this._rowTransform(d,f):f(null,d)}formatColumns(d,f){const p=d.map((m,b)=>this.fieldFormatter.format(m,b,f)).join(this.formatterOptions.delimiter),{rowCount:g}=this;return this.rowCount+=1,g?[this.formatterOptions.rowDelimiter,p].join(""):p}}s.RowFormatter=u},{"../types":152,"./FieldFormatter":148,"lodash.isequal":445,"lodash.isfunction":446}],150:[function(e,r,s){Object.defineProperty(s,"__esModule",{value:!0}),s.FieldFormatter=s.RowFormatter=void 0;var i=e("./RowFormatter");Object.defineProperty(s,"RowFormatter",{enumerable:!0,get:function(){return i.RowFormatter}});var a=e("./FieldFormatter");Object.defineProperty(s,"FieldFormatter",{enumerable:!0,get:function(){return a.FieldFormatter}})},{"./FieldFormatter":148,"./RowFormatter":149}],151:[function(e,r,s){(function(i){(function(){var a=Object.create?function(b,w,_,T){T===void 0&&(T=_),Object.defineProperty(b,T,{enumerable:!0,get:function(){return w[_]}})}:function(b,w,_,T){T===void 0&&(T=_),b[T]=w[_]},o=Object.create?function(b,w){Object.defineProperty(b,"default",{enumerable:!0,value:w})}:function(b,w){b.default=w},l=function(b){if(b&&b.__esModule)return b;var w={};if(b!=null)for(var _ in b)_!=="default"&&Object.prototype.hasOwnProperty.call(b,_)&&a(w,b,_);return o(w,b),w},c=function(b,w){for(var _ in b)_==="default"||Object.prototype.hasOwnProperty.call(w,_)||a(w,b,_)};Object.defineProperty(s,"__esModule",{value:!0}),s.writeToPath=s.writeToString=s.writeToBuffer=s.writeToStream=s.write=s.format=s.FormatterOptions=s.CsvFormatterStream=void 0;const u=e("util"),h=e("stream"),d=l(e("fs")),f=e("./FormatterOptions"),p=e("./CsvFormatterStream");c(e("./types"),s);var g=e("./CsvFormatterStream");Object.defineProperty(s,"CsvFormatterStream",{enumerable:!0,get:function(){return g.CsvFormatterStream}});var m=e("./FormatterOptions");Object.defineProperty(s,"FormatterOptions",{enumerable:!0,get:function(){return m.FormatterOptions}}),s.format=b=>new p.CsvFormatterStream(new f.FormatterOptions(b)),s.write=(b,w)=>{const _=s.format(w),T=u.promisify((M,j)=>{_.write(M,void 0,j)});return b.reduce((M,j)=>M.then(()=>T(j)),Promise.resolve()).then(()=>_.end()).catch(M=>{_.emit("error",M)}),_},s.writeToStream=(b,w,_)=>s.write(w,_).pipe(b),s.writeToBuffer=function(b){let w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const _=[],T=new h.Writable({write(M,j,A){_.push(M),A()}});return new Promise((M,j)=>{T.on("error",j).on("finish",()=>M(i.concat(_))),s.write(b,w).pipe(T)})},s.writeToString=(b,w)=>s.writeToBuffer(b,w).then(_=>_.toString()),s.writeToPath=(b,w,_)=>{const T=d.createWriteStream(b,{encoding:"utf8"});return s.write(w,_).pipe(T)}}).call(this)}).call(this,e("buffer").Buffer)},{"./CsvFormatterStream":146,"./FormatterOptions":147,"./types":152,buffer:220,fs:216,stream:505,util:527}],152:[function(e,r,s){Object.defineProperty(s,"__esModule",{value:!0}),s.isSyncTransform=void 0,s.isSyncTransform=i=>i.length===1},{}],153:[function(e,r,s){(function(i){(function(){Object.defineProperty(s,"__esModule",{value:!0}),s.CsvParserStream=void 0;const a=e("string_decoder"),o=e("stream"),l=e("./transforms"),c=e("./parser");class u extends o.Transform{constructor(d){super({objectMode:d.objectMode}),this.lines="",this.rowCount=0,this.parsedRowCount=0,this.parsedLineCount=0,this.endEmitted=!1,this.headersEmitted=!1,this.parserOptions=d,this.parser=new c.Parser(d),this.headerTransformer=new l.HeaderTransformer(d),this.decoder=new a.StringDecoder(d.encoding),this.rowTransformerValidator=new l.RowTransformerValidator}get hasHitRowLimit(){return this.parserOptions.limitRows&&this.rowCount>=this.parserOptions.maxRows}get shouldEmitRows(){return this.parsedRowCount>this.parserOptions.skipRows}get shouldSkipLine(){return this.parsedLineCount<=this.parserOptions.skipLines}transform(d){return this.rowTransformerValidator.rowTransform=d,this}validate(d){return this.rowTransformerValidator.rowValidator=d,this}emit(d){if(d==="end")return this.endEmitted||(this.endEmitted=!0,super.emit("end",this.rowCount)),!1;for(var f=arguments.length,p=new Array(f>1?f-1:0),g=1;g<f;g++)p[g-1]=arguments[g];return super.emit(d,...p)}_transform(d,f,p){if(this.hasHitRowLimit)return p();const g=u.wrapDoneCallback(p);try{const{lines:m}=this,b=m+this.decoder.write(d),w=this.parse(b,!0);return this.processRows(w,g)}catch(m){return g(m)}}_flush(d){const f=u.wrapDoneCallback(d);if(this.hasHitRowLimit)return f();try{const p=this.lines+this.decoder.end(),g=this.parse(p,!1);return this.processRows(g,f)}catch(p){return f(p)}}parse(d,f){if(!d)return[];const{line:p,rows:g}=this.parser.parse(d,f);return this.lines=p,g}processRows(d,f){const p=d.length,g=m=>{const b=T=>T?f(T):m%100!=0?g(m+1):void i(()=>g(m+1));if(this.checkAndEmitHeaders(),m>=p||this.hasHitRowLimit)return f();if(this.parsedLineCount+=1,this.shouldSkipLine)return b();const w=d[m];this.rowCount+=1,this.parsedRowCount+=1;const _=this.rowCount;return this.transformRow(w,(T,M)=>{if(T)return this.rowCount-=1,b(T);if(!M)return b(new Error("expected transform result"));if(M.isValid){if(M.row)return this.pushRow(M.row,b)}else this.emit("data-invalid",M.row,_,M.reason);return b()})};g(0)}transformRow(d,f){try{this.headerTransformer.transform(d,(p,g)=>p?f(p):g?g.isValid?g.row?this.shouldEmitRows?this.rowTransformerValidator.transformAndValidate(g.row,f):this.skipRow(f):(this.rowCount-=1,this.parsedRowCount-=1,f(null,{row:null,isValid:!0})):this.shouldEmitRows?f(null,{isValid:!1,row:d}):this.skipRow(f):f(new Error("Expected result from header transform")))}catch(p){f(p)}}checkAndEmitHeaders(){!this.headersEmitted&&this.headerTransformer.headers&&(this.headersEmitted=!0,this.emit("headers",this.headerTransformer.headers))}skipRow(d){return this.rowCount-=1,d(null,{row:null,isValid:!0})}pushRow(d,f){try{this.parserOptions.objectMode?this.push(d):this.push(JSON.stringify(d)),f()}catch(p){f(p)}}static wrapDoneCallback(d){let f=!1;return function(p){if(p){if(f)throw p;return f=!0,void d(p)}for(var g=arguments.length,m=new Array(g>1?g-1:0),b=1;b<g;b++)m[b-1]=arguments[b];d(...m)}}}s.CsvParserStream=u}).call(this)}).call(this,e("timers").setImmediate)},{"./parser":165,"./transforms":168,stream:505,string_decoder:218,timers:523}],154:[function(e,r,s){var i=function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(s,"__esModule",{value:!0}),s.ParserOptions=void 0;const a=i(e("lodash.escaperegexp")),o=i(e("lodash.isnil"));s.ParserOptions=class{constructor(l){var c;if(this.objectMode=!0,this.delimiter=",",this.ignoreEmpty=!1,this.quote='"',this.escape=null,this.escapeChar=this.quote,this.comment=null,this.supportsComments=!1,this.ltrim=!1,this.rtrim=!1,this.trim=!1,this.headers=null,this.renameHeaders=!1,this.strictColumnHandling=!1,this.discardUnmappedColumns=!1,this.carriageReturn="\r",this.encoding="utf8",this.limitRows=!1,this.maxRows=0,this.skipLines=0,this.skipRows=0,Object.assign(this,l||{}),this.delimiter.length>1)throw new Error("delimiter option must be one character long");this.escapedDelimiter=a.default(this.delimiter),this.escapeChar=(c=this.escape)!==null&&c!==void 0?c:this.quote,this.supportsComments=!o.default(this.comment),this.NEXT_TOKEN_REGEXP=new RegExp(`([^\\s]|\\r\\n|\\n|\\r|${this.escapedDelimiter})`),this.maxRows>0&&(this.limitRows=!0)}}},{"lodash.escaperegexp":442,"lodash.isnil":447}],155:[function(e,r,s){var i=Object.create?function(g,m,b,w){w===void 0&&(w=b),Object.defineProperty(g,w,{enumerable:!0,get:function(){return m[b]}})}:function(g,m,b,w){w===void 0&&(w=b),g[w]=m[b]},a=Object.create?function(g,m){Object.defineProperty(g,"default",{enumerable:!0,value:m})}:function(g,m){g.default=m},o=function(g){if(g&&g.__esModule)return g;var m={};if(g!=null)for(var b in g)b!=="default"&&Object.prototype.hasOwnProperty.call(g,b)&&i(m,g,b);return a(m,g),m},l=function(g,m){for(var b in g)b==="default"||Object.prototype.hasOwnProperty.call(m,b)||i(m,g,b)};Object.defineProperty(s,"__esModule",{value:!0}),s.parseString=s.parseFile=s.parseStream=s.parse=s.ParserOptions=s.CsvParserStream=void 0;const c=o(e("fs")),u=e("stream"),h=e("./ParserOptions"),d=e("./CsvParserStream");l(e("./types"),s);var f=e("./CsvParserStream");Object.defineProperty(s,"CsvParserStream",{enumerable:!0,get:function(){return f.CsvParserStream}});var p=e("./ParserOptions");Object.defineProperty(s,"ParserOptions",{enumerable:!0,get:function(){return p.ParserOptions}}),s.parse=g=>new d.CsvParserStream(new h.ParserOptions(g)),s.parseStream=(g,m)=>g.pipe(new d.CsvParserStream(new h.ParserOptions(m))),s.parseFile=function(g){let m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return c.createReadStream(g).pipe(new d.CsvParserStream(new h.ParserOptions(m)))},s.parseString=(g,m)=>{const b=new u.Readable;return b.push(g),b.push(null),b.pipe(new d.CsvParserStream(new h.ParserOptions(m)))}},{"./CsvParserStream":153,"./ParserOptions":154,"./types":169,fs:216,stream:505}],156:[function(e,r,s){Object.defineProperty(s,"__esModule",{value:!0}),s.Parser=void 0;const i=e("./Scanner"),a=e("./RowParser"),o=e("./Token");class l{constructor(u){this.parserOptions=u,this.rowParser=new a.RowParser(this.parserOptions)}static removeBOM(u){return u&&u.charCodeAt(0)===65279?u.slice(1):u}parse(u,h){const d=new i.Scanner({line:l.removeBOM(u),parserOptions:this.parserOptions,hasMoreData:h});return this.parserOptions.supportsComments?this.parseWithComments(d):this.parseWithoutComments(d)}parseWithoutComments(u){const h=[];let d=!0;for(;d;)d=this.parseRow(u,h);return{line:u.line,rows:h}}parseWithComments(u){const{parserOptions:h}=this,d=[];for(let f=u.nextCharacterToken;f!==null;f=u.nextCharacterToken)if(o.Token.isTokenComment(f,h)){if(u.advancePastLine()===null)return{line:u.lineFromCursor,rows:d};if(!u.hasMoreCharacters)return{line:u.lineFromCursor,rows:d};u.truncateToCursor()}else if(!this.parseRow(u,d))break;return{line:u.line,rows:d}}parseRow(u,h){if(!u.nextNonSpaceToken)return!1;const d=this.rowParser.parse(u);return d!==null&&(this.parserOptions.ignoreEmpty&&a.RowParser.isEmptyRow(d)||h.push(d),!0)}}s.Parser=l},{"./RowParser":157,"./Scanner":158,"./Token":159}],157:[function(e,r,s){Object.defineProperty(s,"__esModule",{value:!0}),s.RowParser=void 0;const i=e("./column"),a=e("./Token");s.RowParser=class{constructor(o){this.parserOptions=o,this.columnParser=new i.ColumnParser(o)}static isEmptyRow(o){return o.join("").replace(/\s+/g,"")===""}parse(o){const{parserOptions:l}=this,{hasMoreData:c}=o,u=o,h=[];let d=this.getStartToken(u,h);for(;d;){if(a.Token.isTokenRowDelimiter(d))return u.advancePastToken(d),!u.hasMoreCharacters&&a.Token.isTokenCarriageReturn(d,l)&&c?null:(u.truncateToCursor(),h);if(!this.shouldSkipColumnParse(u,d,h)){const f=this.columnParser.parse(u);if(f===null)return null;h.push(f)}d=u.nextNonSpaceToken}return c?null:(u.truncateToCursor(),h)}getStartToken(o,l){const c=o.nextNonSpaceToken;return c!==null&&a.Token.isTokenDelimiter(c,this.parserOptions)?(l.push(""),o.nextNonSpaceToken):c}shouldSkipColumnParse(o,l,c){const{parserOptions:u}=this;if(a.Token.isTokenDelimiter(l,u)){o.advancePastToken(l);const h=o.nextCharacterToken;if(!o.hasMoreCharacters||h!==null&&a.Token.isTokenRowDelimiter(h)||h!==null&&a.Token.isTokenDelimiter(h,u))return c.push(""),!0}return!1}}},{"./Token":159,"./column":164}],158:[function(e,r,s){Object.defineProperty(s,"__esModule",{value:!0}),s.Scanner=void 0;const i=e("./Token"),a=/((?:\r\n)|\n|\r)/;s.Scanner=class{constructor(o){this.cursor=0,this.line=o.line,this.lineLength=this.line.length,this.parserOptions=o.parserOptions,this.hasMoreData=o.hasMoreData,this.cursor=o.cursor||0}get hasMoreCharacters(){return this.lineLength>this.cursor}get nextNonSpaceToken(){const{lineFromCursor:o}=this,l=this.parserOptions.NEXT_TOKEN_REGEXP;if(o.search(l)===-1)return null;const c=l.exec(o);if(c==null)return null;const u=c[1],h=this.cursor+(c.index||0);return new i.Token({token:u,startCursor:h,endCursor:h+u.length-1})}get nextCharacterToken(){const{cursor:o,lineLength:l}=this;return l<=o?null:new i.Token({token:this.line[o],startCursor:o,endCursor:o})}get lineFromCursor(){return this.line.substr(this.cursor)}advancePastLine(){const o=a.exec(this.lineFromCursor);return o?(this.cursor+=(o.index||0)+o[0].length,this):this.hasMoreData?null:(this.cursor=this.lineLength,this)}advanceTo(o){return this.cursor=o,this}advanceToToken(o){return this.cursor=o.startCursor,this}advancePastToken(o){return this.cursor=o.endCursor+1,this}truncateToCursor(){return this.line=this.lineFromCursor,this.lineLength=this.line.length,this.cursor=0,this}}},{"./Token":159}],159:[function(e,r,s){Object.defineProperty(s,"__esModule",{value:!0}),s.Token=void 0,s.Token=class{constructor(i){this.token=i.token,this.startCursor=i.startCursor,this.endCursor=i.endCursor}static isTokenRowDelimiter(i){const a=i.token;return a==="\r"||a===`
431
431
  `||a===`\r
432
432
  `}static isTokenCarriageReturn(i,a){return i.token===a.carriageReturn}static isTokenComment(i,a){return a.supportsComments&&!!i&&i.token===a.comment}static isTokenEscapeCharacter(i,a){return i.token===a.escapeChar}static isTokenQuote(i,a){return i.token===a.quote}static isTokenDelimiter(i,a){return i.token===a.delimiter}}},{}],160:[function(e,r,s){Object.defineProperty(s,"__esModule",{value:!0}),s.ColumnFormatter=void 0,s.ColumnFormatter=class{constructor(i){i.trim?this.format=a=>a.trim():i.ltrim?this.format=a=>a.trimLeft():i.rtrim?this.format=a=>a.trimRight():this.format=a=>a}}},{}],161:[function(e,r,s){Object.defineProperty(s,"__esModule",{value:!0}),s.ColumnParser=void 0;const i=e("./NonQuotedColumnParser"),a=e("./QuotedColumnParser"),o=e("../Token");s.ColumnParser=class{constructor(l){this.parserOptions=l,this.quotedColumnParser=new a.QuotedColumnParser(l),this.nonQuotedColumnParser=new i.NonQuotedColumnParser(l)}parse(l){const{nextNonSpaceToken:c}=l;return c!==null&&o.Token.isTokenQuote(c,this.parserOptions)?(l.advanceToToken(c),this.quotedColumnParser.parse(l)):this.nonQuotedColumnParser.parse(l)}}},{"../Token":159,"./NonQuotedColumnParser":162,"./QuotedColumnParser":163}],162:[function(e,r,s){Object.defineProperty(s,"__esModule",{value:!0}),s.NonQuotedColumnParser=void 0;const i=e("./ColumnFormatter"),a=e("../Token");s.NonQuotedColumnParser=class{constructor(o){this.parserOptions=o,this.columnFormatter=new i.ColumnFormatter(o)}parse(o){if(!o.hasMoreCharacters)return null;const{parserOptions:l}=this,c=[];let u=o.nextCharacterToken;for(;u&&!a.Token.isTokenDelimiter(u,l)&&!a.Token.isTokenRowDelimiter(u);u=o.nextCharacterToken)c.push(u.token),o.advancePastToken(u);return this.columnFormatter.format(c.join(""))}}},{"../Token":159,"./ColumnFormatter":160}],163:[function(e,r,s){Object.defineProperty(s,"__esModule",{value:!0}),s.QuotedColumnParser=void 0;const i=e("./ColumnFormatter"),a=e("../Token");s.QuotedColumnParser=class{constructor(o){this.parserOptions=o,this.columnFormatter=new i.ColumnFormatter(o)}parse(o){if(!o.hasMoreCharacters)return null;const l=o.cursor,{foundClosingQuote:c,col:u}=this.gatherDataBetweenQuotes(o);if(!c){if(o.advanceTo(l),!o.hasMoreData)throw new Error(`Parse Error: missing closing: '${this.parserOptions.quote||""}' in line: at '${o.lineFromCursor.replace(/[\r\n]/g,"\\n'")}'`);return null}return this.checkForMalformedColumn(o),u}gatherDataBetweenQuotes(o){const{parserOptions:l}=this;let c=!1,u=!1;const h=[];let d=o.nextCharacterToken;for(;!u&&d!==null;d=o.nextCharacterToken){const f=a.Token.isTokenQuote(d,l);if(!c&&f)c=!0;else if(c)if(a.Token.isTokenEscapeCharacter(d,l)){o.advancePastToken(d);const p=o.nextCharacterToken;p!==null&&(a.Token.isTokenQuote(p,l)||a.Token.isTokenEscapeCharacter(p,l))?(h.push(p.token),d=p):f?u=!0:h.push(d.token)}else f?u=!0:h.push(d.token);o.advancePastToken(d)}return{col:this.columnFormatter.format(h.join("")),foundClosingQuote:u}}checkForMalformedColumn(o){const{parserOptions:l}=this,{nextNonSpaceToken:c}=o;if(c){const u=a.Token.isTokenDelimiter(c,l),h=a.Token.isTokenRowDelimiter(c);if(!u&&!h){const d=o.lineFromCursor.substr(0,10).replace(/[\r\n]/g,"\\n'");throw new Error(`Parse Error: expected: '${l.escapedDelimiter}' OR new line got: '${c.token}'. at '${d}`)}o.advanceToToken(c)}else o.hasMoreData||o.advancePastLine()}}},{"../Token":159,"./ColumnFormatter":160}],164:[function(e,r,s){Object.defineProperty(s,"__esModule",{value:!0}),s.ColumnFormatter=s.QuotedColumnParser=s.NonQuotedColumnParser=s.ColumnParser=void 0;var i=e("./ColumnParser");Object.defineProperty(s,"ColumnParser",{enumerable:!0,get:function(){return i.ColumnParser}});var a=e("./NonQuotedColumnParser");Object.defineProperty(s,"NonQuotedColumnParser",{enumerable:!0,get:function(){return a.NonQuotedColumnParser}});var o=e("./QuotedColumnParser");Object.defineProperty(s,"QuotedColumnParser",{enumerable:!0,get:function(){return o.QuotedColumnParser}});var l=e("./ColumnFormatter");Object.defineProperty(s,"ColumnFormatter",{enumerable:!0,get:function(){return l.ColumnFormatter}})},{"./ColumnFormatter":160,"./ColumnParser":161,"./NonQuotedColumnParser":162,"./QuotedColumnParser":163}],165:[function(e,r,s){Object.defineProperty(s,"__esModule",{value:!0}),s.QuotedColumnParser=s.NonQuotedColumnParser=s.ColumnParser=s.Token=s.Scanner=s.RowParser=s.Parser=void 0;var i=e("./Parser");Object.defineProperty(s,"Parser",{enumerable:!0,get:function(){return i.Parser}});var a=e("./RowParser");Object.defineProperty(s,"RowParser",{enumerable:!0,get:function(){return a.RowParser}});var o=e("./Scanner");Object.defineProperty(s,"Scanner",{enumerable:!0,get:function(){return o.Scanner}});var l=e("./Token");Object.defineProperty(s,"Token",{enumerable:!0,get:function(){return l.Token}});var c=e("./column");Object.defineProperty(s,"ColumnParser",{enumerable:!0,get:function(){return c.ColumnParser}}),Object.defineProperty(s,"NonQuotedColumnParser",{enumerable:!0,get:function(){return c.NonQuotedColumnParser}}),Object.defineProperty(s,"QuotedColumnParser",{enumerable:!0,get:function(){return c.QuotedColumnParser}})},{"./Parser":156,"./RowParser":157,"./Scanner":158,"./Token":159,"./column":164}],166:[function(e,r,s){var i=function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(s,"__esModule",{value:!0}),s.HeaderTransformer=void 0;const a=i(e("lodash.isundefined")),o=i(e("lodash.isfunction")),l=i(e("lodash.uniq")),c=i(e("lodash.groupby"));s.HeaderTransformer=class{constructor(u){this.headers=null,this.receivedHeaders=!1,this.shouldUseFirstRow=!1,this.processedFirstRow=!1,this.headersLength=0,this.parserOptions=u,u.headers===!0?this.shouldUseFirstRow=!0:Array.isArray(u.headers)?this.setHeaders(u.headers):o.default(u.headers)&&(this.headersTransform=u.headers)}transform(u,h){return this.shouldMapRow(u)?h(null,this.processRow(u)):h(null,{row:null,isValid:!0})}shouldMapRow(u){const{parserOptions:h}=this;if(!this.headersTransform&&h.renameHeaders&&!this.processedFirstRow){if(!this.receivedHeaders)throw new Error("Error renaming headers: new headers must be provided in an array");return this.processedFirstRow=!0,!1}if(!this.receivedHeaders&&Array.isArray(u)){if(this.headersTransform)this.setHeaders(this.headersTransform(u));else{if(!this.shouldUseFirstRow)return!0;this.setHeaders(u)}return!1}return!0}processRow(u){if(!this.headers)return{row:u,isValid:!0};const{parserOptions:h}=this;if(!h.discardUnmappedColumns&&u.length>this.headersLength){if(!h.strictColumnHandling)throw new Error(`Unexpected Error: column header mismatch expected: ${this.headersLength} columns got: ${u.length}`);return{row:u,isValid:!1,reason:`Column header mismatch expected: ${this.headersLength} columns got: ${u.length}`}}return h.strictColumnHandling&&u.length<this.headersLength?{row:u,isValid:!1,reason:`Column header mismatch expected: ${this.headersLength} columns got: ${u.length}`}:{row:this.mapHeaders(u),isValid:!0}}mapHeaders(u){const h={},{headers:d,headersLength:f}=this;for(let p=0;p<f;p+=1){const g=d[p];if(!a.default(g)){const m=u[p];a.default(m)?h[g]="":h[g]=m}}return h}setHeaders(u){var h;const d=u.filter(f=>!!f);if(l.default(d).length!==d.length){const f=c.default(d),p=Object.keys(f).filter(g=>f[g].length>1);throw new Error("Duplicate headers found "+JSON.stringify(p))}this.headers=u,this.receivedHeaders=!0,this.headersLength=((h=this.headers)===null||h===void 0?void 0:h.length)||0}}},{"lodash.groupby":443,"lodash.isfunction":446,"lodash.isundefined":448,"lodash.uniq":449}],167:[function(e,r,s){var i=function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(s,"__esModule",{value:!0}),s.RowTransformerValidator=void 0;const a=i(e("lodash.isfunction")),o=e("../types");class l{constructor(){this._rowTransform=null,this._rowValidator=null}static createTransform(u){return o.isSyncTransform(u)?(h,d)=>{let f=null;try{f=u(h)}catch(p){return d(p)}return d(null,f)}:u}static createValidator(u){return o.isSyncValidate(u)?(h,d)=>{d(null,{row:h,isValid:u(h)})}:(h,d)=>{u(h,(f,p,g)=>f?d(f):d(null,p?{row:h,isValid:p,reason:g}:{row:h,isValid:!1,reason:g}))}}set rowTransform(u){if(!a.default(u))throw new TypeError("The transform should be a function");this._rowTransform=l.createTransform(u)}set rowValidator(u){if(!a.default(u))throw new TypeError("The validate should be a function");this._rowValidator=l.createValidator(u)}transformAndValidate(u,h){return this.callTransformer(u,(d,f)=>d?h(d):f?this.callValidator(f,(p,g)=>p?h(p):g&&!g.isValid?h(null,{row:f,isValid:!1,reason:g.reason}):h(null,{row:f,isValid:!0})):h(null,{row:null,isValid:!0}))}callTransformer(u,h){return this._rowTransform?this._rowTransform(u,h):h(null,u)}callValidator(u,h){return this._rowValidator?this._rowValidator(u,h):h(null,{row:u,isValid:!0})}}s.RowTransformerValidator=l},{"../types":169,"lodash.isfunction":446}],168:[function(e,r,s){Object.defineProperty(s,"__esModule",{value:!0}),s.HeaderTransformer=s.RowTransformerValidator=void 0;var i=e("./RowTransformerValidator");Object.defineProperty(s,"RowTransformerValidator",{enumerable:!0,get:function(){return i.RowTransformerValidator}});var a=e("./HeaderTransformer");Object.defineProperty(s,"HeaderTransformer",{enumerable:!0,get:function(){return a.HeaderTransformer}})},{"./HeaderTransformer":166,"./RowTransformerValidator":167}],169:[function(e,r,s){Object.defineProperty(s,"__esModule",{value:!0}),s.isSyncValidate=s.isSyncTransform=void 0,s.isSyncTransform=i=>i.length===1,s.isSyncValidate=i=>i.length===1},{}],170:[function(e,r,s){const i=s;i.bignum=e("bn.js"),i.define=e("./asn1/api").define,i.base=e("./asn1/base"),i.constants=e("./asn1/constants"),i.decoders=e("./asn1/decoders"),i.encoders=e("./asn1/encoders")},{"./asn1/api":171,"./asn1/base":173,"./asn1/constants":177,"./asn1/decoders":179,"./asn1/encoders":182,"bn.js":184}],171:[function(e,r,s){const i=e("./encoders"),a=e("./decoders"),o=e("inherits");function l(c,u){this.name=c,this.body=u,this.decoders={},this.encoders={}}s.define=function(c,u){return new l(c,u)},l.prototype._createNamed=function(c){const u=this.name;function h(d){this._initNamed(d,u)}return o(h,c),h.prototype._initNamed=function(d,f){c.call(this,d,f)},new h(this)},l.prototype._getDecoder=function(c){return c=c||"der",this.decoders.hasOwnProperty(c)||(this.decoders[c]=this._createNamed(a[c])),this.decoders[c]},l.prototype.decode=function(c,u,h){return this._getDecoder(u).decode(c,h)},l.prototype._getEncoder=function(c){return c=c||"der",this.encoders.hasOwnProperty(c)||(this.encoders[c]=this._createNamed(i[c])),this.encoders[c]},l.prototype.encode=function(c,u,h){return this._getEncoder(u).encode(c,h)}},{"./decoders":179,"./encoders":182,inherits:440}],172:[function(e,r,s){const i=e("inherits"),a=e("../base/reporter").Reporter,o=e("safer-buffer").Buffer;function l(u,h){a.call(this,h),o.isBuffer(u)?(this.base=u,this.offset=0,this.length=u.length):this.error("Input not Buffer")}function c(u,h){if(Array.isArray(u))this.length=0,this.value=u.map(function(d){return c.isEncoderBuffer(d)||(d=new c(d,h)),this.length+=d.length,d},this);else if(typeof u=="number"){if(!(0<=u&&u<=255))return h.error("non-byte EncoderBuffer value");this.value=u,this.length=1}else if(typeof u=="string")this.value=u,this.length=o.byteLength(u);else{if(!o.isBuffer(u))return h.error("Unsupported type: "+typeof u);this.value=u,this.length=u.length}}i(l,a),s.DecoderBuffer=l,l.isDecoderBuffer=function(u){return u instanceof l?!0:typeof u=="object"&&o.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"},l.prototype.save=function(){return{offset:this.offset,reporter:a.prototype.save.call(this)}},l.prototype.restore=function(u){const h=new l(this.base);return h.offset=u.offset,h.length=this.offset,this.offset=u.offset,a.prototype.restore.call(this,u.reporter),h},l.prototype.isEmpty=function(){return this.offset===this.length},l.prototype.readUInt8=function(u){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(u||"DecoderBuffer overrun")},l.prototype.skip=function(u,h){if(!(this.offset+u<=this.length))return this.error(h||"DecoderBuffer overrun");const d=new l(this.base);return d._reporterState=this._reporterState,d.offset=this.offset,d.length=this.offset+u,this.offset+=u,d},l.prototype.raw=function(u){return this.base.slice(u?u.offset:this.offset,this.length)},s.EncoderBuffer=c,c.isEncoderBuffer=function(u){return u instanceof c?!0:typeof u=="object"&&u.constructor.name==="EncoderBuffer"&&typeof u.length=="number"&&typeof u.join=="function"},c.prototype.join=function(u,h){return u||(u=o.alloc(this.length)),h||(h=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(d){d.join(u,h),h+=d.length}):(typeof this.value=="number"?u[h]=this.value:typeof this.value=="string"?u.write(this.value,h):o.isBuffer(this.value)&&this.value.copy(u,h),h+=this.length)),u}},{"../base/reporter":175,inherits:440,"safer-buffer":495}],173:[function(e,r,s){const i=s;i.Reporter=e("./reporter").Reporter,i.DecoderBuffer=e("./buffer").DecoderBuffer,i.EncoderBuffer=e("./buffer").EncoderBuffer,i.Node=e("./node")},{"./buffer":172,"./node":174,"./reporter":175}],174:[function(e,r,s){const i=e("../base/reporter").Reporter,a=e("../base/buffer").EncoderBuffer,o=e("../base/buffer").DecoderBuffer,l=e("minimalistic-assert"),c=["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"],u=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(c);function h(f,p,g){const m={};this._baseState=m,m.name=g,m.enc=f,m.parent=p||null,m.children=null,m.tag=null,m.args=null,m.reverseArgs=null,m.choice=null,m.optional=!1,m.any=!1,m.obj=!1,m.use=null,m.useDecoder=null,m.key=null,m.default=null,m.explicit=null,m.implicit=null,m.contains=null,m.parent||(m.children=[],this._wrap())}r.exports=h;const d=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];h.prototype.clone=function(){const f=this._baseState,p={};d.forEach(function(m){p[m]=f[m]});const g=new this.constructor(p.parent);return g._baseState=p,g},h.prototype._wrap=function(){const f=this._baseState;u.forEach(function(p){this[p]=function(){const g=new this.constructor(this);return f.children.push(g),g[p].apply(g,arguments)}},this)},h.prototype._init=function(f){const p=this._baseState;l(p.parent===null),f.call(this),p.children=p.children.filter(function(g){return g._baseState.parent===this},this),l.equal(p.children.length,1,"Root node can have only one child")},h.prototype._useArgs=function(f){const p=this._baseState,g=f.filter(function(m){return m instanceof this.constructor},this);f=f.filter(function(m){return!(m instanceof this.constructor)},this),g.length!==0&&(l(p.children===null),p.children=g,g.forEach(function(m){m._baseState.parent=this},this)),f.length!==0&&(l(p.args===null),p.args=f,p.reverseArgs=f.map(function(m){if(typeof m!="object"||m.constructor!==Object)return m;const b={};return Object.keys(m).forEach(function(w){w==(0|w)&&(w|=0);const _=m[w];b[_]=w}),b}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(f){h.prototype[f]=function(){const p=this._baseState;throw new Error(f+" not implemented for encoding: "+p.enc)}}),c.forEach(function(f){h.prototype[f]=function(){const p=this._baseState,g=Array.prototype.slice.call(arguments);return l(p.tag===null),p.tag=f,this._useArgs(g),this}}),h.prototype.use=function(f){l(f);const p=this._baseState;return l(p.use===null),p.use=f,this},h.prototype.optional=function(){return this._baseState.optional=!0,this},h.prototype.def=function(f){const p=this._baseState;return l(p.default===null),p.default=f,p.optional=!0,this},h.prototype.explicit=function(f){const p=this._baseState;return l(p.explicit===null&&p.implicit===null),p.explicit=f,this},h.prototype.implicit=function(f){const p=this._baseState;return l(p.explicit===null&&p.implicit===null),p.implicit=f,this},h.prototype.obj=function(){const f=this._baseState,p=Array.prototype.slice.call(arguments);return f.obj=!0,p.length!==0&&this._useArgs(p),this},h.prototype.key=function(f){const p=this._baseState;return l(p.key===null),p.key=f,this},h.prototype.any=function(){return this._baseState.any=!0,this},h.prototype.choice=function(f){const p=this._baseState;return l(p.choice===null),p.choice=f,this._useArgs(Object.keys(f).map(function(g){return f[g]})),this},h.prototype.contains=function(f){const p=this._baseState;return l(p.use===null),p.contains=f,this},h.prototype._decode=function(f,p){const g=this._baseState;if(g.parent===null)return f.wrapResult(g.children[0]._decode(f,p));let m,b=g.default,w=!0,_=null;if(g.key!==null&&(_=f.enterKey(g.key)),g.optional){let T=null;if(g.explicit!==null?T=g.explicit:g.implicit!==null?T=g.implicit:g.tag!==null&&(T=g.tag),T!==null||g.any){if(w=this._peekTag(f,T,g.any),f.isError(w))return w}else{const M=f.save();try{g.choice===null?this._decodeGeneric(g.tag,f,p):this._decodeChoice(f,p),w=!0}catch{w=!1}f.restore(M)}}if(g.obj&&w&&(m=f.enterObject()),w){if(g.explicit!==null){const M=this._decodeTag(f,g.explicit);if(f.isError(M))return M;f=M}const T=f.offset;if(g.use===null&&g.choice===null){let M;g.any&&(M=f.save());const j=this._decodeTag(f,g.implicit!==null?g.implicit:g.tag,g.any);if(f.isError(j))return j;g.any?b=f.raw(M):f=j}if(p&&p.track&&g.tag!==null&&p.track(f.path(),T,f.length,"tagged"),p&&p.track&&g.tag!==null&&p.track(f.path(),f.offset,f.length,"content"),g.any||(b=g.choice===null?this._decodeGeneric(g.tag,f,p):this._decodeChoice(f,p)),f.isError(b))return b;if(g.any||g.choice!==null||g.children===null||g.children.forEach(function(M){M._decode(f,p)}),g.contains&&(g.tag==="octstr"||g.tag==="bitstr")){const M=new o(b);b=this._getUse(g.contains,f._reporterState.obj)._decode(M,p)}}return g.obj&&w&&(b=f.leaveObject(m)),g.key===null||b===null&&w!==!0?_!==null&&f.exitKey(_):f.leaveKey(_,g.key,b),b},h.prototype._decodeGeneric=function(f,p,g){const m=this._baseState;return f==="seq"||f==="set"?null:f==="seqof"||f==="setof"?this._decodeList(p,f,m.args[0],g):/str$/.test(f)?this._decodeStr(p,f,g):f==="objid"&&m.args?this._decodeObjid(p,m.args[0],m.args[1],g):f==="objid"?this._decodeObjid(p,null,null,g):f==="gentime"||f==="utctime"?this._decodeTime(p,f,g):f==="null_"?this._decodeNull(p,g):f==="bool"?this._decodeBool(p,g):f==="objDesc"?this._decodeStr(p,f,g):f==="int"||f==="enum"?this._decodeInt(p,m.args&&m.args[0],g):m.use!==null?this._getUse(m.use,p._reporterState.obj)._decode(p,g):p.error("unknown tag: "+f)},h.prototype._getUse=function(f,p){const g=this._baseState;return g.useDecoder=this._use(f,p),l(g.useDecoder._baseState.parent===null),g.useDecoder=g.useDecoder._baseState.children[0],g.implicit!==g.useDecoder._baseState.implicit&&(g.useDecoder=g.useDecoder.clone(),g.useDecoder._baseState.implicit=g.implicit),g.useDecoder},h.prototype._decodeChoice=function(f,p){const g=this._baseState;let m=null,b=!1;return Object.keys(g.choice).some(function(w){const _=f.save(),T=g.choice[w];try{const M=T._decode(f,p);if(f.isError(M))return!1;m={type:w,value:M},b=!0}catch{return f.restore(_),!1}return!0},this),b?m:f.error("Choice not matched")},h.prototype._createEncoderBuffer=function(f){return new a(f,this.reporter)},h.prototype._encode=function(f,p,g){const m=this._baseState;if(m.default!==null&&m.default===f)return;const b=this._encodeValue(f,p,g);return b===void 0||this._skipDefault(b,p,g)?void 0:b},h.prototype._encodeValue=function(f,p,g){const m=this._baseState;if(m.parent===null)return m.children[0]._encode(f,p||new i);let b=null;if(this.reporter=p,m.optional&&f===void 0){if(m.default===null)return;f=m.default}let w=null,_=!1;if(m.any)b=this._createEncoderBuffer(f);else if(m.choice)b=this._encodeChoice(f,p);else if(m.contains)w=this._getUse(m.contains,g)._encode(f,p),_=!0;else if(m.children)w=m.children.map(function(T){if(T._baseState.tag==="null_")return T._encode(null,p,f);if(T._baseState.key===null)return p.error("Child should have a key");const M=p.enterKey(T._baseState.key);if(typeof f!="object")return p.error("Child expected, but input is not object");const j=T._encode(f[T._baseState.key],p,f);return p.leaveKey(M),j},this).filter(function(T){return T}),w=this._createEncoderBuffer(w);else if(m.tag==="seqof"||m.tag==="setof"){if(!m.args||m.args.length!==1)return p.error("Too many args for : "+m.tag);if(!Array.isArray(f))return p.error("seqof/setof, but data is not Array");const T=this.clone();T._baseState.implicit=null,w=this._createEncoderBuffer(f.map(function(M){const j=this._baseState;return this._getUse(j.args[0],f)._encode(M,p)},T))}else m.use!==null?b=this._getUse(m.use,g)._encode(f,p):(w=this._encodePrimitive(m.tag,f),_=!0);if(!m.any&&m.choice===null){const T=m.implicit!==null?m.implicit:m.tag,M=m.implicit===null?"universal":"context";T===null?m.use===null&&p.error("Tag could be omitted only for .use()"):m.use===null&&(b=this._encodeComposite(T,_,M,w))}return m.explicit!==null&&(b=this._encodeComposite(m.explicit,!1,"context",b)),b},h.prototype._encodeChoice=function(f,p){const g=this._baseState,m=g.choice[f.type];return m||l(!1,f.type+" not found in "+JSON.stringify(Object.keys(g.choice))),m._encode(f.value,p)},h.prototype._encodePrimitive=function(f,p){const g=this._baseState;if(/str$/.test(f))return this._encodeStr(p,f);if(f==="objid"&&g.args)return this._encodeObjid(p,g.reverseArgs[0],g.args[1]);if(f==="objid")return this._encodeObjid(p,null,null);if(f==="gentime"||f==="utctime")return this._encodeTime(p,f);if(f==="null_")return this._encodeNull();if(f==="int"||f==="enum")return this._encodeInt(p,g.args&&g.reverseArgs[0]);if(f==="bool")return this._encodeBool(p);if(f==="objDesc")return this._encodeStr(p,f);throw new Error("Unsupported tag: "+f)},h.prototype._isNumstr=function(f){return/^[0-9 ]*$/.test(f)},h.prototype._isPrintstr=function(f){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(f)}},{"../base/buffer":172,"../base/reporter":175,"minimalistic-assert":453}],175:[function(e,r,s){const i=e("inherits");function a(l){this._reporterState={obj:null,path:[],options:l||{},errors:[]}}function o(l,c){this.path=l,this.rethrow(c)}s.Reporter=a,a.prototype.isError=function(l){return l instanceof o},a.prototype.save=function(){const l=this._reporterState;return{obj:l.obj,pathLen:l.path.length}},a.prototype.restore=function(l){const c=this._reporterState;c.obj=l.obj,c.path=c.path.slice(0,l.pathLen)},a.prototype.enterKey=function(l){return this._reporterState.path.push(l)},a.prototype.exitKey=function(l){const c=this._reporterState;c.path=c.path.slice(0,l-1)},a.prototype.leaveKey=function(l,c,u){const h=this._reporterState;this.exitKey(l),h.obj!==null&&(h.obj[c]=u)},a.prototype.path=function(){return this._reporterState.path.join("/")},a.prototype.enterObject=function(){const l=this._reporterState,c=l.obj;return l.obj={},c},a.prototype.leaveObject=function(l){const c=this._reporterState,u=c.obj;return c.obj=l,u},a.prototype.error=function(l){let c;const u=this._reporterState,h=l instanceof o;if(c=h?l:new o(u.path.map(function(d){return"["+JSON.stringify(d)+"]"}).join(""),l.message||l,l.stack),!u.options.partial)throw c;return h||u.errors.push(c),c},a.prototype.wrapResult=function(l){const c=this._reporterState;return c.options.partial?{result:this.isError(l)?null:l,errors:c.errors}:l},i(o,Error),o.prototype.rethrow=function(l){if(this.message=l+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,o),!this.stack)try{throw new Error(this.message)}catch(c){this.stack=c.stack}return this}},{inherits:440}],176:[function(e,r,s){function i(a){const o={};return Object.keys(a).forEach(function(l){(0|l)==l&&(l|=0);const c=a[l];o[c]=l}),o}s.tagClass={0:"universal",1:"application",2:"context",3:"private"},s.tagClassByName=i(s.tagClass),s.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"},s.tagByName=i(s.tag)},{}],177:[function(e,r,s){const i=s;i._reverse=function(a){const o={};return Object.keys(a).forEach(function(l){(0|l)==l&&(l|=0);const c=a[l];o[c]=l}),o},i.der=e("./der")},{"./der":176}],178:[function(e,r,s){const i=e("inherits"),a=e("bn.js"),o=e("../base/buffer").DecoderBuffer,l=e("../base/node"),c=e("../constants/der");function u(p){this.enc="der",this.name=p.name,this.entity=p,this.tree=new h,this.tree._init(p.body)}function h(p){l.call(this,"der",p)}function d(p,g){let m=p.readUInt8(g);if(p.isError(m))return m;const b=c.tagClass[m>>6],w=(32&m)==0;if((31&m)==31){let _=m;for(m=0;(128&_)==128;){if(_=p.readUInt8(g),p.isError(_))return _;m<<=7,m|=127&_}}else m&=31;return{cls:b,primitive:w,tag:m,tagStr:c.tag[m]}}function f(p,g,m){let b=p.readUInt8(m);if(p.isError(b))return b;if(!g&&b===128)return null;if(!(128&b))return b;const w=127&b;if(w>4)return p.error("length octect is too long");b=0;for(let _=0;_<w;_++){b<<=8;const T=p.readUInt8(m);if(p.isError(T))return T;b|=T}return b}r.exports=u,u.prototype.decode=function(p,g){return o.isDecoderBuffer(p)||(p=new o(p,g)),this.tree._decode(p,g)},i(h,l),h.prototype._peekTag=function(p,g,m){if(p.isEmpty())return!1;const b=p.save(),w=d(p,'Failed to peek tag: "'+g+'"');return p.isError(w)?w:(p.restore(b),w.tag===g||w.tagStr===g||w.tagStr+"of"===g||m)},h.prototype._decodeTag=function(p,g,m){const b=d(p,'Failed to decode tag of "'+g+'"');if(p.isError(b))return b;let w=f(p,b.primitive,'Failed to get length of "'+g+'"');if(p.isError(w))return w;if(!m&&b.tag!==g&&b.tagStr!==g&&b.tagStr+"of"!==g)return p.error('Failed to match tag: "'+g+'"');if(b.primitive||w!==null)return p.skip(w,'Failed to match body of: "'+g+'"');const _=p.save(),T=this._skipUntilEnd(p,'Failed to skip indefinite length body: "'+this.tag+'"');return p.isError(T)?T:(w=p.offset-_.offset,p.restore(_),p.skip(w,'Failed to match body of: "'+g+'"'))},h.prototype._skipUntilEnd=function(p,g){for(;;){const m=d(p,g);if(p.isError(m))return m;const b=f(p,m.primitive,g);if(p.isError(b))return b;let w;if(w=m.primitive||b!==null?p.skip(b):this._skipUntilEnd(p,g),p.isError(w))return w;if(m.tagStr==="end")break}},h.prototype._decodeList=function(p,g,m,b){const w=[];for(;!p.isEmpty();){const _=this._peekTag(p,"end");if(p.isError(_))return _;const T=m.decode(p,"der",b);if(p.isError(T)&&_)break;w.push(T)}return w},h.prototype._decodeStr=function(p,g){if(g==="bitstr"){const m=p.readUInt8();return p.isError(m)?m:{unused:m,data:p.raw()}}if(g==="bmpstr"){const m=p.raw();if(m.length%2==1)return p.error("Decoding of string type: bmpstr length mismatch");let b="";for(let w=0;w<m.length/2;w++)b+=String.fromCharCode(m.readUInt16BE(2*w));return b}if(g==="numstr"){const m=p.raw().toString("ascii");return this._isNumstr(m)?m:p.error("Decoding of string type: numstr unsupported characters")}if(g==="octstr"||g==="objDesc")return p.raw();if(g==="printstr"){const m=p.raw().toString("ascii");return this._isPrintstr(m)?m:p.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(g)?p.raw().toString():p.error("Decoding of string type: "+g+" unsupported")},h.prototype._decodeObjid=function(p,g,m){let b;const w=[];let _=0,T=0;for(;!p.isEmpty();)T=p.readUInt8(),_<<=7,_|=127&T,!(128&T)&&(w.push(_),_=0);128&T&&w.push(_);const M=w[0]/40|0,j=w[0]%40;if(b=m?w:[M,j].concat(w.slice(1)),g){let A=g[b.join(" ")];A===void 0&&(A=g[b.join(".")]),A!==void 0&&(b=A)}return b},h.prototype._decodeTime=function(p,g){const m=p.raw().toString();let b,w,_,T,M,j;if(g==="gentime")b=0|m.slice(0,4),w=0|m.slice(4,6),_=0|m.slice(6,8),T=0|m.slice(8,10),M=0|m.slice(10,12),j=0|m.slice(12,14);else{if(g!=="utctime")return p.error("Decoding "+g+" time is not supported yet");b=0|m.slice(0,2),w=0|m.slice(2,4),_=0|m.slice(4,6),T=0|m.slice(6,8),M=0|m.slice(8,10),j=0|m.slice(10,12),b=b<70?2e3+b:1900+b}return Date.UTC(b,w-1,_,T,M,j,0)},h.prototype._decodeNull=function(){return null},h.prototype._decodeBool=function(p){const g=p.readUInt8();return p.isError(g)?g:g!==0},h.prototype._decodeInt=function(p,g){const m=p.raw();let b=new a(m);return g&&(b=g[b.toString(10)]||b),b},h.prototype._use=function(p,g){return typeof p=="function"&&(p=p(g)),p._getDecoder("der").tree}},{"../base/buffer":172,"../base/node":174,"../constants/der":176,"bn.js":184,inherits:440}],179:[function(e,r,s){const i=s;i.der=e("./der"),i.pem=e("./pem")},{"./der":178,"./pem":180}],180:[function(e,r,s){const i=e("inherits"),a=e("safer-buffer").Buffer,o=e("./der");function l(c){o.call(this,c),this.enc="pem"}i(l,o),r.exports=l,l.prototype.decode=function(c,u){const h=c.toString().split(/[\r\n]+/g),d=u.label.toUpperCase(),f=/^-----(BEGIN|END) ([^-]+)-----$/;let p=-1,g=-1;for(let w=0;w<h.length;w++){const _=h[w].match(f);if(_!==null&&_[2]===d){if(p!==-1){if(_[1]!=="END")break;g=w;break}if(_[1]!=="BEGIN")break;p=w}}if(p===-1||g===-1)throw new Error("PEM section not found for: "+d);const m=h.slice(p+1,g).join("");m.replace(/[^a-z0-9+/=]+/gi,"");const b=a.from(m,"base64");return o.prototype.decode.call(this,b,u)}},{"./der":178,inherits:440,"safer-buffer":495}],181:[function(e,r,s){const i=e("inherits"),a=e("safer-buffer").Buffer,o=e("../base/node"),l=e("../constants/der");function c(d){this.enc="der",this.name=d.name,this.entity=d,this.tree=new u,this.tree._init(d.body)}function u(d){o.call(this,"der",d)}function h(d){return d<10?"0"+d:d}r.exports=c,c.prototype.encode=function(d,f){return this.tree._encode(d,f).join()},i(u,o),u.prototype._encodeComposite=function(d,f,p,g){const m=function(_,T,M,j){let A;if(_==="seqof"?_="seq":_==="setof"&&(_="set"),l.tagByName.hasOwnProperty(_))A=l.tagByName[_];else{if(typeof _!="number"||(0|_)!==_)return j.error("Unknown tag: "+_);A=_}return A>=31?j.error("Multi-octet tag encoding unsupported"):(T||(A|=32),A|=l.tagClassByName[M||"universal"]<<6,A)}(d,f,p,this.reporter);if(g.length<128){const _=a.alloc(2);return _[0]=m,_[1]=g.length,this._createEncoderBuffer([_,g])}let b=1;for(let _=g.length;_>=256;_>>=8)b++;const w=a.alloc(2+b);w[0]=m,w[1]=128|b;for(let _=1+b,T=g.length;T>0;_--,T>>=8)w[_]=255&T;return this._createEncoderBuffer([w,g])},u.prototype._encodeStr=function(d,f){if(f==="bitstr")return this._createEncoderBuffer([0|d.unused,d.data]);if(f==="bmpstr"){const p=a.alloc(2*d.length);for(let g=0;g<d.length;g++)p.writeUInt16BE(d.charCodeAt(g),2*g);return this._createEncoderBuffer(p)}return f==="numstr"?this._isNumstr(d)?this._createEncoderBuffer(d):this.reporter.error("Encoding of string type: numstr supports only digits and space"):f==="printstr"?this._isPrintstr(d)?this._createEncoderBuffer(d):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)||f==="objDesc"?this._createEncoderBuffer(d):this.reporter.error("Encoding of string type: "+f+" unsupported")},u.prototype._encodeObjid=function(d,f,p){if(typeof d=="string"){if(!f)return this.reporter.error("string objid given, but no values map found");if(!f.hasOwnProperty(d))return this.reporter.error("objid not found in values map");d=f[d].split(/[\s.]+/g);for(let w=0;w<d.length;w++)d[w]|=0}else if(Array.isArray(d)){d=d.slice();for(let w=0;w<d.length;w++)d[w]|=0}if(!Array.isArray(d))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(d));if(!p){if(d[1]>=40)return this.reporter.error("Second objid identifier OOB");d.splice(0,2,40*d[0]+d[1])}let g=0;for(let w=0;w<d.length;w++){let _=d[w];for(g++;_>=128;_>>=7)g++}const m=a.alloc(g);let b=m.length-1;for(let w=d.length-1;w>=0;w--){let _=d[w];for(m[b--]=127&_;(_>>=7)>0;)m[b--]=128|127&_}return this._createEncoderBuffer(m)},u.prototype._encodeTime=function(d,f){let p;const g=new Date(d);return f==="gentime"?p=[h(g.getUTCFullYear()),h(g.getUTCMonth()+1),h(g.getUTCDate()),h(g.getUTCHours()),h(g.getUTCMinutes()),h(g.getUTCSeconds()),"Z"].join(""):f==="utctime"?p=[h(g.getUTCFullYear()%100),h(g.getUTCMonth()+1),h(g.getUTCDate()),h(g.getUTCHours()),h(g.getUTCMinutes()),h(g.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+f+" time is not supported yet"),this._encodeStr(p,"octstr")},u.prototype._encodeNull=function(){return this._createEncoderBuffer("")},u.prototype._encodeInt=function(d,f){if(typeof d=="string"){if(!f)return this.reporter.error("String int or enum given, but no values map");if(!f.hasOwnProperty(d))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(d));d=f[d]}if(typeof d!="number"&&!a.isBuffer(d)){const m=d.toArray();!d.sign&&128&m[0]&&m.unshift(0),d=a.from(m)}if(a.isBuffer(d)){let m=d.length;d.length===0&&m++;const b=a.alloc(m);return d.copy(b),d.length===0&&(b[0]=0),this._createEncoderBuffer(b)}if(d<128)return this._createEncoderBuffer(d);if(d<256)return this._createEncoderBuffer([0,d]);let p=1;for(let m=d;m>=256;m>>=8)p++;const g=new Array(p);for(let m=g.length-1;m>=0;m--)g[m]=255&d,d>>=8;return 128&g[0]&&g.unshift(0),this._createEncoderBuffer(a.from(g))},u.prototype._encodeBool=function(d){return this._createEncoderBuffer(d?255:0)},u.prototype._use=function(d,f){return typeof d=="function"&&(d=d(f)),d._getEncoder("der").tree},u.prototype._skipDefault=function(d,f,p){const g=this._baseState;let m;if(g.default===null)return!1;const b=d.join();if(g.defaultBuffer===void 0&&(g.defaultBuffer=this._encodeValue(g.default,f,p).join()),b.length!==g.defaultBuffer.length)return!1;for(m=0;m<b.length;m++)if(b[m]!==g.defaultBuffer[m])return!1;return!0}},{"../base/node":174,"../constants/der":176,inherits:440,"safer-buffer":495}],182:[function(e,r,s){const i=s;i.der=e("./der"),i.pem=e("./pem")},{"./der":181,"./pem":183}],183:[function(e,r,s){const i=e("inherits"),a=e("./der");function o(l){a.call(this,l),this.enc="pem"}i(o,a),r.exports=o,o.prototype.encode=function(l,c){const u=a.prototype.encode.call(this,l).toString("base64"),h=["-----BEGIN "+c.label+"-----"];for(let d=0;d<u.length;d+=64)h.push(u.slice(d,d+64));return h.push("-----END "+c.label+"-----"),h.join(`
433
- `)}},{"./der":181,inherits:440}],184:[function(e,r,s){(function(i,a){function o(O,N){if(!O)throw new Error(N||"Assertion failed")}function l(O,N){O.super_=N;var C=function(){};C.prototype=N.prototype,O.prototype=new C,O.prototype.constructor=O}function c(O,N,C){if(c.isBN(O))return O;this.negative=0,this.words=null,this.length=0,this.red=null,O!==null&&(N!=="le"&&N!=="be"||(C=N,N=10),this._init(O||0,N||10,C||"be"))}var u;typeof i=="object"?i.exports=c:(void 0).BN=c,c.BN=c,c.wordSize=26;try{u=typeof window<"u"&&window.Buffer!==void 0?window.Buffer:e("buffer").Buffer}catch{}function h(O,N){var C=O.charCodeAt(N);return C>=65&&C<=70?C-55:C>=97&&C<=102?C-87:C-48&15}function d(O,N,C){var x=h(O,C);return C-1>=N&&(x|=h(O,C-1)<<4),x}function f(O,N,C,x){for(var S=0,k=Math.min(O.length,C),E=N;E<k;E++){var I=O.charCodeAt(E)-48;S*=x,S+=I>=49?I-49+10:I>=17?I-17+10:I}return S}c.isBN=function(O){return O instanceof c||O!==null&&typeof O=="object"&&O.constructor.wordSize===c.wordSize&&Array.isArray(O.words)},c.max=function(O,N){return O.cmp(N)>0?O:N},c.min=function(O,N){return O.cmp(N)<0?O:N},c.prototype._init=function(O,N,C){if(typeof O=="number")return this._initNumber(O,N,C);if(typeof O=="object")return this._initArray(O,N,C);N==="hex"&&(N=16),o(N===(0|N)&&N>=2&&N<=36);var x=0;(O=O.toString().replace(/\s+/g,""))[0]==="-"&&(x++,this.negative=1),x<O.length&&(N===16?this._parseHex(O,x,C):(this._parseBase(O,N,x),C==="le"&&this._initArray(this.toArray(),N,C)))},c.prototype._initNumber=function(O,N,C){O<0&&(this.negative=1,O=-O),O<67108864?(this.words=[67108863&O],this.length=1):O<4503599627370496?(this.words=[67108863&O,O/67108864&67108863],this.length=2):(o(O<9007199254740992),this.words=[67108863&O,O/67108864&67108863,1],this.length=3),C==="le"&&this._initArray(this.toArray(),N,C)},c.prototype._initArray=function(O,N,C){if(o(typeof O.length=="number"),O.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(O.length/3),this.words=new Array(this.length);for(var x=0;x<this.length;x++)this.words[x]=0;var S,k,E=0;if(C==="be")for(x=O.length-1,S=0;x>=0;x-=3)k=O[x]|O[x-1]<<8|O[x-2]<<16,this.words[S]|=k<<E&67108863,this.words[S+1]=k>>>26-E&67108863,(E+=24)>=26&&(E-=26,S++);else if(C==="le")for(x=0,S=0;x<O.length;x+=3)k=O[x]|O[x+1]<<8|O[x+2]<<16,this.words[S]|=k<<E&67108863,this.words[S+1]=k>>>26-E&67108863,(E+=24)>=26&&(E-=26,S++);return this.strip()},c.prototype._parseHex=function(O,N,C){this.length=Math.ceil((O.length-N)/6),this.words=new Array(this.length);for(var x=0;x<this.length;x++)this.words[x]=0;var S,k=0,E=0;if(C==="be")for(x=O.length-1;x>=N;x-=2)S=d(O,N,x)<<k,this.words[E]|=67108863&S,k>=18?(k-=18,E+=1,this.words[E]|=S>>>26):k+=8;else for(x=(O.length-N)%2==0?N+1:N;x<O.length;x+=2)S=d(O,N,x)<<k,this.words[E]|=67108863&S,k>=18?(k-=18,E+=1,this.words[E]|=S>>>26):k+=8;this.strip()},c.prototype._parseBase=function(O,N,C){this.words=[0],this.length=1;for(var x=0,S=1;S<=67108863;S*=N)x++;x--,S=S/N|0;for(var k=O.length-C,E=k%x,I=Math.min(k,k-E)+C,D=0,F=C;F<I;F+=x)D=f(O,F,F+x,N),this.imuln(S),this.words[0]+D<67108864?this.words[0]+=D:this._iaddn(D);if(E!==0){var Y=1;for(D=f(O,F,O.length,N),F=0;F<E;F++)Y*=N;this.imuln(Y),this.words[0]+D<67108864?this.words[0]+=D:this._iaddn(D)}this.strip()},c.prototype.copy=function(O){O.words=new Array(this.length);for(var N=0;N<this.length;N++)O.words[N]=this.words[N];O.length=this.length,O.negative=this.negative,O.red=this.red},c.prototype.clone=function(){var O=new c(null);return this.copy(O),O},c.prototype._expand=function(O){for(;this.length<O;)this.words[this.length++]=0;return this},c.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},c.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},c.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var p=["","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"],g=[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],m=[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];function b(O,N,C){C.negative=N.negative^O.negative;var x=O.length+N.length|0;C.length=x,x=x-1|0;var S=0|O.words[0],k=0|N.words[0],E=S*k,I=67108863&E,D=E/67108864|0;C.words[0]=I;for(var F=1;F<x;F++){for(var Y=D>>>26,J=67108863&D,se=Math.min(F,N.length-1),q=Math.max(0,F-O.length+1);q<=se;q++){var ee=F-q|0;Y+=(E=(S=0|O.words[ee])*(k=0|N.words[q])+J)/67108864|0,J=67108863&E}C.words[F]=0|J,D=0|Y}return D!==0?C.words[F]=0|D:C.length--,C.strip()}c.prototype.toString=function(O,N){var C;if(N=0|N||1,(O=O||10)===16||O==="hex"){C="";for(var x=0,S=0,k=0;k<this.length;k++){var E=this.words[k],I=(16777215&(E<<x|S)).toString(16);C=(S=E>>>24-x&16777215)!==0||k!==this.length-1?p[6-I.length]+I+C:I+C,(x+=2)>=26&&(x-=26,k--)}for(S!==0&&(C=S.toString(16)+C);C.length%N!=0;)C="0"+C;return this.negative!==0&&(C="-"+C),C}if(O===(0|O)&&O>=2&&O<=36){var D=g[O],F=m[O];C="";var Y=this.clone();for(Y.negative=0;!Y.isZero();){var J=Y.modn(F).toString(O);C=(Y=Y.idivn(F)).isZero()?J+C:p[D-J.length]+J+C}for(this.isZero()&&(C="0"+C);C.length%N!=0;)C="0"+C;return this.negative!==0&&(C="-"+C),C}o(!1,"Base should be between 2 and 36")},c.prototype.toNumber=function(){var O=this.words[0];return this.length===2?O+=67108864*this.words[1]:this.length===3&&this.words[2]===1?O+=4503599627370496+67108864*this.words[1]:this.length>2&&o(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-O:O},c.prototype.toJSON=function(){return this.toString(16)},c.prototype.toBuffer=function(O,N){return o(u!==void 0),this.toArrayLike(u,O,N)},c.prototype.toArray=function(O,N){return this.toArrayLike(Array,O,N)},c.prototype.toArrayLike=function(O,N,C){var x=this.byteLength(),S=C||Math.max(1,x);o(x<=S,"byte array longer than desired length"),o(S>0,"Requested array length <= 0"),this.strip();var k,E,I=N==="le",D=new O(S),F=this.clone();if(I){for(E=0;!F.isZero();E++)k=F.andln(255),F.iushrn(8),D[E]=k;for(;E<S;E++)D[E]=0}else{for(E=0;E<S-x;E++)D[E]=0;for(E=0;!F.isZero();E++)k=F.andln(255),F.iushrn(8),D[S-E-1]=k}return D},Math.clz32?c.prototype._countBits=function(O){return 32-Math.clz32(O)}:c.prototype._countBits=function(O){var N=O,C=0;return N>=4096&&(C+=13,N>>>=13),N>=64&&(C+=7,N>>>=7),N>=8&&(C+=4,N>>>=4),N>=2&&(C+=2,N>>>=2),C+N},c.prototype._zeroBits=function(O){if(O===0)return 26;var N=O,C=0;return!(8191&N)&&(C+=13,N>>>=13),!(127&N)&&(C+=7,N>>>=7),!(15&N)&&(C+=4,N>>>=4),!(3&N)&&(C+=2,N>>>=2),!(1&N)&&C++,C},c.prototype.bitLength=function(){var O=this.words[this.length-1],N=this._countBits(O);return 26*(this.length-1)+N},c.prototype.zeroBits=function(){if(this.isZero())return 0;for(var O=0,N=0;N<this.length;N++){var C=this._zeroBits(this.words[N]);if(O+=C,C!==26)break}return O},c.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},c.prototype.toTwos=function(O){return this.negative!==0?this.abs().inotn(O).iaddn(1):this.clone()},c.prototype.fromTwos=function(O){return this.testn(O-1)?this.notn(O).iaddn(1).ineg():this.clone()},c.prototype.isNeg=function(){return this.negative!==0},c.prototype.neg=function(){return this.clone().ineg()},c.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},c.prototype.iuor=function(O){for(;this.length<O.length;)this.words[this.length++]=0;for(var N=0;N<O.length;N++)this.words[N]=this.words[N]|O.words[N];return this.strip()},c.prototype.ior=function(O){return o((this.negative|O.negative)==0),this.iuor(O)},c.prototype.or=function(O){return this.length>O.length?this.clone().ior(O):O.clone().ior(this)},c.prototype.uor=function(O){return this.length>O.length?this.clone().iuor(O):O.clone().iuor(this)},c.prototype.iuand=function(O){var N;N=this.length>O.length?O:this;for(var C=0;C<N.length;C++)this.words[C]=this.words[C]&O.words[C];return this.length=N.length,this.strip()},c.prototype.iand=function(O){return o((this.negative|O.negative)==0),this.iuand(O)},c.prototype.and=function(O){return this.length>O.length?this.clone().iand(O):O.clone().iand(this)},c.prototype.uand=function(O){return this.length>O.length?this.clone().iuand(O):O.clone().iuand(this)},c.prototype.iuxor=function(O){var N,C;this.length>O.length?(N=this,C=O):(N=O,C=this);for(var x=0;x<C.length;x++)this.words[x]=N.words[x]^C.words[x];if(this!==N)for(;x<N.length;x++)this.words[x]=N.words[x];return this.length=N.length,this.strip()},c.prototype.ixor=function(O){return o((this.negative|O.negative)==0),this.iuxor(O)},c.prototype.xor=function(O){return this.length>O.length?this.clone().ixor(O):O.clone().ixor(this)},c.prototype.uxor=function(O){return this.length>O.length?this.clone().iuxor(O):O.clone().iuxor(this)},c.prototype.inotn=function(O){o(typeof O=="number"&&O>=0);var N=0|Math.ceil(O/26),C=O%26;this._expand(N),C>0&&N--;for(var x=0;x<N;x++)this.words[x]=67108863&~this.words[x];return C>0&&(this.words[x]=~this.words[x]&67108863>>26-C),this.strip()},c.prototype.notn=function(O){return this.clone().inotn(O)},c.prototype.setn=function(O,N){o(typeof O=="number"&&O>=0);var C=O/26|0,x=O%26;return this._expand(C+1),this.words[C]=N?this.words[C]|1<<x:this.words[C]&~(1<<x),this.strip()},c.prototype.iadd=function(O){var N,C,x;if(this.negative!==0&&O.negative===0)return this.negative=0,N=this.isub(O),this.negative^=1,this._normSign();if(this.negative===0&&O.negative!==0)return O.negative=0,N=this.isub(O),O.negative=1,N._normSign();this.length>O.length?(C=this,x=O):(C=O,x=this);for(var S=0,k=0;k<x.length;k++)N=(0|C.words[k])+(0|x.words[k])+S,this.words[k]=67108863&N,S=N>>>26;for(;S!==0&&k<C.length;k++)N=(0|C.words[k])+S,this.words[k]=67108863&N,S=N>>>26;if(this.length=C.length,S!==0)this.words[this.length]=S,this.length++;else if(C!==this)for(;k<C.length;k++)this.words[k]=C.words[k];return this},c.prototype.add=function(O){var N;return O.negative!==0&&this.negative===0?(O.negative=0,N=this.sub(O),O.negative^=1,N):O.negative===0&&this.negative!==0?(this.negative=0,N=O.sub(this),this.negative=1,N):this.length>O.length?this.clone().iadd(O):O.clone().iadd(this)},c.prototype.isub=function(O){if(O.negative!==0){O.negative=0;var N=this.iadd(O);return O.negative=1,N._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(O),this.negative=1,this._normSign();var C,x,S=this.cmp(O);if(S===0)return this.negative=0,this.length=1,this.words[0]=0,this;S>0?(C=this,x=O):(C=O,x=this);for(var k=0,E=0;E<x.length;E++)k=(N=(0|C.words[E])-(0|x.words[E])+k)>>26,this.words[E]=67108863&N;for(;k!==0&&E<C.length;E++)k=(N=(0|C.words[E])+k)>>26,this.words[E]=67108863&N;if(k===0&&E<C.length&&C!==this)for(;E<C.length;E++)this.words[E]=C.words[E];return this.length=Math.max(this.length,E),C!==this&&(this.negative=1),this.strip()},c.prototype.sub=function(O){return this.clone().isub(O)};var w=function(O,N,C){var x,S,k,E=O.words,I=N.words,D=C.words,F=0,Y=0|E[0],J=8191&Y,se=Y>>>13,q=0|E[1],ee=8191&q,L=q>>>13,P=0|E[2],G=8191&P,ne=P>>>13,ce=0|E[3],ie=8191&ce,ue=ce>>>13,ve=0|E[4],we=8191&ve,le=ve>>>13,me=0|E[5],ge=8191&me,ke=me>>>13,xe=0|E[6],Ee=8191&xe,Ie=xe>>>13,Pe=0|E[7],Ae=8191&Pe,Ge=Pe>>>13,st=0|E[8],et=8191&st,Rt=st>>>13,_t=0|E[9],xt=8191&_t,yt=_t>>>13,Qe=0|I[0],Ve=8191&Qe,it=Qe>>>13,wt=0|I[1],ct=8191&wt,dr=wt>>>13,Or=0|I[2],Pt=8191&Or,hr=Or>>>13,sr=0|I[3],Wt=8191&sr,Hr=sr>>>13,Qt=0|I[4],pt=8191&Qt,gr=Qt>>>13,qr=0|I[5],Ht=8191&qr,Rr=qr>>>13,Er=0|I[6],qt=8191&Er,ye=Er>>>13,Ce=0|I[7],Le=8191&Ce,tt=Ce>>>13,jt=0|I[8],rt=8191&jt,Vt=jt>>>13,Dt=0|I[9],Et=8191&Dt,Xt=Dt>>>13;C.negative=O.negative^N.negative,C.length=19;var Bt=(F+(x=Math.imul(J,Ve))|0)+((8191&(S=(S=Math.imul(J,it))+Math.imul(se,Ve)|0))<<13)|0;F=((k=Math.imul(se,it))+(S>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,x=Math.imul(ee,Ve),S=(S=Math.imul(ee,it))+Math.imul(L,Ve)|0,k=Math.imul(L,it);var or=(F+(x=x+Math.imul(J,ct)|0)|0)+((8191&(S=(S=S+Math.imul(J,dr)|0)+Math.imul(se,ct)|0))<<13)|0;F=((k=k+Math.imul(se,dr)|0)+(S>>>13)|0)+(or>>>26)|0,or&=67108863,x=Math.imul(G,Ve),S=(S=Math.imul(G,it))+Math.imul(ne,Ve)|0,k=Math.imul(ne,it),x=x+Math.imul(ee,ct)|0,S=(S=S+Math.imul(ee,dr)|0)+Math.imul(L,ct)|0,k=k+Math.imul(L,dr)|0;var an=(F+(x=x+Math.imul(J,Pt)|0)|0)+((8191&(S=(S=S+Math.imul(J,hr)|0)+Math.imul(se,Pt)|0))<<13)|0;F=((k=k+Math.imul(se,hr)|0)+(S>>>13)|0)+(an>>>26)|0,an&=67108863,x=Math.imul(ie,Ve),S=(S=Math.imul(ie,it))+Math.imul(ue,Ve)|0,k=Math.imul(ue,it),x=x+Math.imul(G,ct)|0,S=(S=S+Math.imul(G,dr)|0)+Math.imul(ne,ct)|0,k=k+Math.imul(ne,dr)|0,x=x+Math.imul(ee,Pt)|0,S=(S=S+Math.imul(ee,hr)|0)+Math.imul(L,Pt)|0,k=k+Math.imul(L,hr)|0;var Ur=(F+(x=x+Math.imul(J,Wt)|0)|0)+((8191&(S=(S=S+Math.imul(J,Hr)|0)+Math.imul(se,Wt)|0))<<13)|0;F=((k=k+Math.imul(se,Hr)|0)+(S>>>13)|0)+(Ur>>>26)|0,Ur&=67108863,x=Math.imul(we,Ve),S=(S=Math.imul(we,it))+Math.imul(le,Ve)|0,k=Math.imul(le,it),x=x+Math.imul(ie,ct)|0,S=(S=S+Math.imul(ie,dr)|0)+Math.imul(ue,ct)|0,k=k+Math.imul(ue,dr)|0,x=x+Math.imul(G,Pt)|0,S=(S=S+Math.imul(G,hr)|0)+Math.imul(ne,Pt)|0,k=k+Math.imul(ne,hr)|0,x=x+Math.imul(ee,Wt)|0,S=(S=S+Math.imul(ee,Hr)|0)+Math.imul(L,Wt)|0,k=k+Math.imul(L,Hr)|0;var hn=(F+(x=x+Math.imul(J,pt)|0)|0)+((8191&(S=(S=S+Math.imul(J,gr)|0)+Math.imul(se,pt)|0))<<13)|0;F=((k=k+Math.imul(se,gr)|0)+(S>>>13)|0)+(hn>>>26)|0,hn&=67108863,x=Math.imul(ge,Ve),S=(S=Math.imul(ge,it))+Math.imul(ke,Ve)|0,k=Math.imul(ke,it),x=x+Math.imul(we,ct)|0,S=(S=S+Math.imul(we,dr)|0)+Math.imul(le,ct)|0,k=k+Math.imul(le,dr)|0,x=x+Math.imul(ie,Pt)|0,S=(S=S+Math.imul(ie,hr)|0)+Math.imul(ue,Pt)|0,k=k+Math.imul(ue,hr)|0,x=x+Math.imul(G,Wt)|0,S=(S=S+Math.imul(G,Hr)|0)+Math.imul(ne,Wt)|0,k=k+Math.imul(ne,Hr)|0,x=x+Math.imul(ee,pt)|0,S=(S=S+Math.imul(ee,gr)|0)+Math.imul(L,pt)|0,k=k+Math.imul(L,gr)|0;var vn=(F+(x=x+Math.imul(J,Ht)|0)|0)+((8191&(S=(S=S+Math.imul(J,Rr)|0)+Math.imul(se,Ht)|0))<<13)|0;F=((k=k+Math.imul(se,Rr)|0)+(S>>>13)|0)+(vn>>>26)|0,vn&=67108863,x=Math.imul(Ee,Ve),S=(S=Math.imul(Ee,it))+Math.imul(Ie,Ve)|0,k=Math.imul(Ie,it),x=x+Math.imul(ge,ct)|0,S=(S=S+Math.imul(ge,dr)|0)+Math.imul(ke,ct)|0,k=k+Math.imul(ke,dr)|0,x=x+Math.imul(we,Pt)|0,S=(S=S+Math.imul(we,hr)|0)+Math.imul(le,Pt)|0,k=k+Math.imul(le,hr)|0,x=x+Math.imul(ie,Wt)|0,S=(S=S+Math.imul(ie,Hr)|0)+Math.imul(ue,Wt)|0,k=k+Math.imul(ue,Hr)|0,x=x+Math.imul(G,pt)|0,S=(S=S+Math.imul(G,gr)|0)+Math.imul(ne,pt)|0,k=k+Math.imul(ne,gr)|0,x=x+Math.imul(ee,Ht)|0,S=(S=S+Math.imul(ee,Rr)|0)+Math.imul(L,Ht)|0,k=k+Math.imul(L,Rr)|0;var Cs=(F+(x=x+Math.imul(J,qt)|0)|0)+((8191&(S=(S=S+Math.imul(J,ye)|0)+Math.imul(se,qt)|0))<<13)|0;F=((k=k+Math.imul(se,ye)|0)+(S>>>13)|0)+(Cs>>>26)|0,Cs&=67108863,x=Math.imul(Ae,Ve),S=(S=Math.imul(Ae,it))+Math.imul(Ge,Ve)|0,k=Math.imul(Ge,it),x=x+Math.imul(Ee,ct)|0,S=(S=S+Math.imul(Ee,dr)|0)+Math.imul(Ie,ct)|0,k=k+Math.imul(Ie,dr)|0,x=x+Math.imul(ge,Pt)|0,S=(S=S+Math.imul(ge,hr)|0)+Math.imul(ke,Pt)|0,k=k+Math.imul(ke,hr)|0,x=x+Math.imul(we,Wt)|0,S=(S=S+Math.imul(we,Hr)|0)+Math.imul(le,Wt)|0,k=k+Math.imul(le,Hr)|0,x=x+Math.imul(ie,pt)|0,S=(S=S+Math.imul(ie,gr)|0)+Math.imul(ue,pt)|0,k=k+Math.imul(ue,gr)|0,x=x+Math.imul(G,Ht)|0,S=(S=S+Math.imul(G,Rr)|0)+Math.imul(ne,Ht)|0,k=k+Math.imul(ne,Rr)|0,x=x+Math.imul(ee,qt)|0,S=(S=S+Math.imul(ee,ye)|0)+Math.imul(L,qt)|0,k=k+Math.imul(L,ye)|0;var he=(F+(x=x+Math.imul(J,Le)|0)|0)+((8191&(S=(S=S+Math.imul(J,tt)|0)+Math.imul(se,Le)|0))<<13)|0;F=((k=k+Math.imul(se,tt)|0)+(S>>>13)|0)+(he>>>26)|0,he&=67108863,x=Math.imul(et,Ve),S=(S=Math.imul(et,it))+Math.imul(Rt,Ve)|0,k=Math.imul(Rt,it),x=x+Math.imul(Ae,ct)|0,S=(S=S+Math.imul(Ae,dr)|0)+Math.imul(Ge,ct)|0,k=k+Math.imul(Ge,dr)|0,x=x+Math.imul(Ee,Pt)|0,S=(S=S+Math.imul(Ee,hr)|0)+Math.imul(Ie,Pt)|0,k=k+Math.imul(Ie,hr)|0,x=x+Math.imul(ge,Wt)|0,S=(S=S+Math.imul(ge,Hr)|0)+Math.imul(ke,Wt)|0,k=k+Math.imul(ke,Hr)|0,x=x+Math.imul(we,pt)|0,S=(S=S+Math.imul(we,gr)|0)+Math.imul(le,pt)|0,k=k+Math.imul(le,gr)|0,x=x+Math.imul(ie,Ht)|0,S=(S=S+Math.imul(ie,Rr)|0)+Math.imul(ue,Ht)|0,k=k+Math.imul(ue,Rr)|0,x=x+Math.imul(G,qt)|0,S=(S=S+Math.imul(G,ye)|0)+Math.imul(ne,qt)|0,k=k+Math.imul(ne,ye)|0,x=x+Math.imul(ee,Le)|0,S=(S=S+Math.imul(ee,tt)|0)+Math.imul(L,Le)|0,k=k+Math.imul(L,tt)|0;var Te=(F+(x=x+Math.imul(J,rt)|0)|0)+((8191&(S=(S=S+Math.imul(J,Vt)|0)+Math.imul(se,rt)|0))<<13)|0;F=((k=k+Math.imul(se,Vt)|0)+(S>>>13)|0)+(Te>>>26)|0,Te&=67108863,x=Math.imul(xt,Ve),S=(S=Math.imul(xt,it))+Math.imul(yt,Ve)|0,k=Math.imul(yt,it),x=x+Math.imul(et,ct)|0,S=(S=S+Math.imul(et,dr)|0)+Math.imul(Rt,ct)|0,k=k+Math.imul(Rt,dr)|0,x=x+Math.imul(Ae,Pt)|0,S=(S=S+Math.imul(Ae,hr)|0)+Math.imul(Ge,Pt)|0,k=k+Math.imul(Ge,hr)|0,x=x+Math.imul(Ee,Wt)|0,S=(S=S+Math.imul(Ee,Hr)|0)+Math.imul(Ie,Wt)|0,k=k+Math.imul(Ie,Hr)|0,x=x+Math.imul(ge,pt)|0,S=(S=S+Math.imul(ge,gr)|0)+Math.imul(ke,pt)|0,k=k+Math.imul(ke,gr)|0,x=x+Math.imul(we,Ht)|0,S=(S=S+Math.imul(we,Rr)|0)+Math.imul(le,Ht)|0,k=k+Math.imul(le,Rr)|0,x=x+Math.imul(ie,qt)|0,S=(S=S+Math.imul(ie,ye)|0)+Math.imul(ue,qt)|0,k=k+Math.imul(ue,ye)|0,x=x+Math.imul(G,Le)|0,S=(S=S+Math.imul(G,tt)|0)+Math.imul(ne,Le)|0,k=k+Math.imul(ne,tt)|0,x=x+Math.imul(ee,rt)|0,S=(S=S+Math.imul(ee,Vt)|0)+Math.imul(L,rt)|0,k=k+Math.imul(L,Vt)|0;var ze=(F+(x=x+Math.imul(J,Et)|0)|0)+((8191&(S=(S=S+Math.imul(J,Xt)|0)+Math.imul(se,Et)|0))<<13)|0;F=((k=k+Math.imul(se,Xt)|0)+(S>>>13)|0)+(ze>>>26)|0,ze&=67108863,x=Math.imul(xt,ct),S=(S=Math.imul(xt,dr))+Math.imul(yt,ct)|0,k=Math.imul(yt,dr),x=x+Math.imul(et,Pt)|0,S=(S=S+Math.imul(et,hr)|0)+Math.imul(Rt,Pt)|0,k=k+Math.imul(Rt,hr)|0,x=x+Math.imul(Ae,Wt)|0,S=(S=S+Math.imul(Ae,Hr)|0)+Math.imul(Ge,Wt)|0,k=k+Math.imul(Ge,Hr)|0,x=x+Math.imul(Ee,pt)|0,S=(S=S+Math.imul(Ee,gr)|0)+Math.imul(Ie,pt)|0,k=k+Math.imul(Ie,gr)|0,x=x+Math.imul(ge,Ht)|0,S=(S=S+Math.imul(ge,Rr)|0)+Math.imul(ke,Ht)|0,k=k+Math.imul(ke,Rr)|0,x=x+Math.imul(we,qt)|0,S=(S=S+Math.imul(we,ye)|0)+Math.imul(le,qt)|0,k=k+Math.imul(le,ye)|0,x=x+Math.imul(ie,Le)|0,S=(S=S+Math.imul(ie,tt)|0)+Math.imul(ue,Le)|0,k=k+Math.imul(ue,tt)|0,x=x+Math.imul(G,rt)|0,S=(S=S+Math.imul(G,Vt)|0)+Math.imul(ne,rt)|0,k=k+Math.imul(ne,Vt)|0;var qe=(F+(x=x+Math.imul(ee,Et)|0)|0)+((8191&(S=(S=S+Math.imul(ee,Xt)|0)+Math.imul(L,Et)|0))<<13)|0;F=((k=k+Math.imul(L,Xt)|0)+(S>>>13)|0)+(qe>>>26)|0,qe&=67108863,x=Math.imul(xt,Pt),S=(S=Math.imul(xt,hr))+Math.imul(yt,Pt)|0,k=Math.imul(yt,hr),x=x+Math.imul(et,Wt)|0,S=(S=S+Math.imul(et,Hr)|0)+Math.imul(Rt,Wt)|0,k=k+Math.imul(Rt,Hr)|0,x=x+Math.imul(Ae,pt)|0,S=(S=S+Math.imul(Ae,gr)|0)+Math.imul(Ge,pt)|0,k=k+Math.imul(Ge,gr)|0,x=x+Math.imul(Ee,Ht)|0,S=(S=S+Math.imul(Ee,Rr)|0)+Math.imul(Ie,Ht)|0,k=k+Math.imul(Ie,Rr)|0,x=x+Math.imul(ge,qt)|0,S=(S=S+Math.imul(ge,ye)|0)+Math.imul(ke,qt)|0,k=k+Math.imul(ke,ye)|0,x=x+Math.imul(we,Le)|0,S=(S=S+Math.imul(we,tt)|0)+Math.imul(le,Le)|0,k=k+Math.imul(le,tt)|0,x=x+Math.imul(ie,rt)|0,S=(S=S+Math.imul(ie,Vt)|0)+Math.imul(ue,rt)|0,k=k+Math.imul(ue,Vt)|0;var mt=(F+(x=x+Math.imul(G,Et)|0)|0)+((8191&(S=(S=S+Math.imul(G,Xt)|0)+Math.imul(ne,Et)|0))<<13)|0;F=((k=k+Math.imul(ne,Xt)|0)+(S>>>13)|0)+(mt>>>26)|0,mt&=67108863,x=Math.imul(xt,Wt),S=(S=Math.imul(xt,Hr))+Math.imul(yt,Wt)|0,k=Math.imul(yt,Hr),x=x+Math.imul(et,pt)|0,S=(S=S+Math.imul(et,gr)|0)+Math.imul(Rt,pt)|0,k=k+Math.imul(Rt,gr)|0,x=x+Math.imul(Ae,Ht)|0,S=(S=S+Math.imul(Ae,Rr)|0)+Math.imul(Ge,Ht)|0,k=k+Math.imul(Ge,Rr)|0,x=x+Math.imul(Ee,qt)|0,S=(S=S+Math.imul(Ee,ye)|0)+Math.imul(Ie,qt)|0,k=k+Math.imul(Ie,ye)|0,x=x+Math.imul(ge,Le)|0,S=(S=S+Math.imul(ge,tt)|0)+Math.imul(ke,Le)|0,k=k+Math.imul(ke,tt)|0,x=x+Math.imul(we,rt)|0,S=(S=S+Math.imul(we,Vt)|0)+Math.imul(le,rt)|0,k=k+Math.imul(le,Vt)|0;var Ye=(F+(x=x+Math.imul(ie,Et)|0)|0)+((8191&(S=(S=S+Math.imul(ie,Xt)|0)+Math.imul(ue,Et)|0))<<13)|0;F=((k=k+Math.imul(ue,Xt)|0)+(S>>>13)|0)+(Ye>>>26)|0,Ye&=67108863,x=Math.imul(xt,pt),S=(S=Math.imul(xt,gr))+Math.imul(yt,pt)|0,k=Math.imul(yt,gr),x=x+Math.imul(et,Ht)|0,S=(S=S+Math.imul(et,Rr)|0)+Math.imul(Rt,Ht)|0,k=k+Math.imul(Rt,Rr)|0,x=x+Math.imul(Ae,qt)|0,S=(S=S+Math.imul(Ae,ye)|0)+Math.imul(Ge,qt)|0,k=k+Math.imul(Ge,ye)|0,x=x+Math.imul(Ee,Le)|0,S=(S=S+Math.imul(Ee,tt)|0)+Math.imul(Ie,Le)|0,k=k+Math.imul(Ie,tt)|0,x=x+Math.imul(ge,rt)|0,S=(S=S+Math.imul(ge,Vt)|0)+Math.imul(ke,rt)|0,k=k+Math.imul(ke,Vt)|0;var Ze=(F+(x=x+Math.imul(we,Et)|0)|0)+((8191&(S=(S=S+Math.imul(we,Xt)|0)+Math.imul(le,Et)|0))<<13)|0;F=((k=k+Math.imul(le,Xt)|0)+(S>>>13)|0)+(Ze>>>26)|0,Ze&=67108863,x=Math.imul(xt,Ht),S=(S=Math.imul(xt,Rr))+Math.imul(yt,Ht)|0,k=Math.imul(yt,Rr),x=x+Math.imul(et,qt)|0,S=(S=S+Math.imul(et,ye)|0)+Math.imul(Rt,qt)|0,k=k+Math.imul(Rt,ye)|0,x=x+Math.imul(Ae,Le)|0,S=(S=S+Math.imul(Ae,tt)|0)+Math.imul(Ge,Le)|0,k=k+Math.imul(Ge,tt)|0,x=x+Math.imul(Ee,rt)|0,S=(S=S+Math.imul(Ee,Vt)|0)+Math.imul(Ie,rt)|0,k=k+Math.imul(Ie,Vt)|0;var wr=(F+(x=x+Math.imul(ge,Et)|0)|0)+((8191&(S=(S=S+Math.imul(ge,Xt)|0)+Math.imul(ke,Et)|0))<<13)|0;F=((k=k+Math.imul(ke,Xt)|0)+(S>>>13)|0)+(wr>>>26)|0,wr&=67108863,x=Math.imul(xt,qt),S=(S=Math.imul(xt,ye))+Math.imul(yt,qt)|0,k=Math.imul(yt,ye),x=x+Math.imul(et,Le)|0,S=(S=S+Math.imul(et,tt)|0)+Math.imul(Rt,Le)|0,k=k+Math.imul(Rt,tt)|0,x=x+Math.imul(Ae,rt)|0,S=(S=S+Math.imul(Ae,Vt)|0)+Math.imul(Ge,rt)|0,k=k+Math.imul(Ge,Vt)|0;var ir=(F+(x=x+Math.imul(Ee,Et)|0)|0)+((8191&(S=(S=S+Math.imul(Ee,Xt)|0)+Math.imul(Ie,Et)|0))<<13)|0;F=((k=k+Math.imul(Ie,Xt)|0)+(S>>>13)|0)+(ir>>>26)|0,ir&=67108863,x=Math.imul(xt,Le),S=(S=Math.imul(xt,tt))+Math.imul(yt,Le)|0,k=Math.imul(yt,tt),x=x+Math.imul(et,rt)|0,S=(S=S+Math.imul(et,Vt)|0)+Math.imul(Rt,rt)|0,k=k+Math.imul(Rt,Vt)|0;var lr=(F+(x=x+Math.imul(Ae,Et)|0)|0)+((8191&(S=(S=S+Math.imul(Ae,Xt)|0)+Math.imul(Ge,Et)|0))<<13)|0;F=((k=k+Math.imul(Ge,Xt)|0)+(S>>>13)|0)+(lr>>>26)|0,lr&=67108863,x=Math.imul(xt,rt),S=(S=Math.imul(xt,Vt))+Math.imul(yt,rt)|0,k=Math.imul(yt,Vt);var Lt=(F+(x=x+Math.imul(et,Et)|0)|0)+((8191&(S=(S=S+Math.imul(et,Xt)|0)+Math.imul(Rt,Et)|0))<<13)|0;F=((k=k+Math.imul(Rt,Xt)|0)+(S>>>13)|0)+(Lt>>>26)|0,Lt&=67108863;var Mr=(F+(x=Math.imul(xt,Et))|0)+((8191&(S=(S=Math.imul(xt,Xt))+Math.imul(yt,Et)|0))<<13)|0;return F=((k=Math.imul(yt,Xt))+(S>>>13)|0)+(Mr>>>26)|0,Mr&=67108863,D[0]=Bt,D[1]=or,D[2]=an,D[3]=Ur,D[4]=hn,D[5]=vn,D[6]=Cs,D[7]=he,D[8]=Te,D[9]=ze,D[10]=qe,D[11]=mt,D[12]=Ye,D[13]=Ze,D[14]=wr,D[15]=ir,D[16]=lr,D[17]=Lt,D[18]=Mr,F!==0&&(D[19]=F,C.length++),C};function _(O,N,C){return new T().mulp(O,N,C)}function T(O,N){this.x=O,this.y=N}Math.imul||(w=b),c.prototype.mulTo=function(O,N){var C=this.length+O.length;return this.length===10&&O.length===10?w(this,O,N):C<63?b(this,O,N):C<1024?function(x,S,k){k.negative=S.negative^x.negative,k.length=x.length+S.length;for(var E=0,I=0,D=0;D<k.length-1;D++){var F=I;I=0;for(var Y=67108863&E,J=Math.min(D,S.length-1),se=Math.max(0,D-x.length+1);se<=J;se++){var q=D-se,ee=(0|x.words[q])*(0|S.words[se]),L=67108863&ee;Y=67108863&(L=L+Y|0),I+=(F=(F=F+(ee/67108864|0)|0)+(L>>>26)|0)>>>26,F&=67108863}k.words[D]=Y,E=F,F=I}return E!==0?k.words[D]=E:k.length--,k.strip()}(this,O,N):_(this,O,N)},T.prototype.makeRBT=function(O){for(var N=new Array(O),C=c.prototype._countBits(O)-1,x=0;x<O;x++)N[x]=this.revBin(x,C,O);return N},T.prototype.revBin=function(O,N,C){if(O===0||O===C-1)return O;for(var x=0,S=0;S<N;S++)x|=(1&O)<<N-S-1,O>>=1;return x},T.prototype.permute=function(O,N,C,x,S,k){for(var E=0;E<k;E++)x[E]=N[O[E]],S[E]=C[O[E]]},T.prototype.transform=function(O,N,C,x,S,k){this.permute(k,O,N,C,x,S);for(var E=1;E<S;E<<=1)for(var I=E<<1,D=Math.cos(2*Math.PI/I),F=Math.sin(2*Math.PI/I),Y=0;Y<S;Y+=I)for(var J=D,se=F,q=0;q<E;q++){var ee=C[Y+q],L=x[Y+q],P=C[Y+q+E],G=x[Y+q+E],ne=J*P-se*G;G=J*G+se*P,P=ne,C[Y+q]=ee+P,x[Y+q]=L+G,C[Y+q+E]=ee-P,x[Y+q+E]=L-G,q!==I&&(ne=D*J-F*se,se=D*se+F*J,J=ne)}},T.prototype.guessLen13b=function(O,N){var C=1|Math.max(N,O),x=1&C,S=0;for(C=C/2|0;C;C>>>=1)S++;return 1<<S+1+x},T.prototype.conjugate=function(O,N,C){if(!(C<=1))for(var x=0;x<C/2;x++){var S=O[x];O[x]=O[C-x-1],O[C-x-1]=S,S=N[x],N[x]=-N[C-x-1],N[C-x-1]=-S}},T.prototype.normalize13b=function(O,N){for(var C=0,x=0;x<N/2;x++){var S=8192*Math.round(O[2*x+1]/N)+Math.round(O[2*x]/N)+C;O[x]=67108863&S,C=S<67108864?0:S/67108864|0}return O},T.prototype.convert13b=function(O,N,C,x){for(var S=0,k=0;k<N;k++)S+=0|O[k],C[2*k]=8191&S,S>>>=13,C[2*k+1]=8191&S,S>>>=13;for(k=2*N;k<x;++k)C[k]=0;o(S===0),o((-8192&S)==0)},T.prototype.stub=function(O){for(var N=new Array(O),C=0;C<O;C++)N[C]=0;return N},T.prototype.mulp=function(O,N,C){var x=2*this.guessLen13b(O.length,N.length),S=this.makeRBT(x),k=this.stub(x),E=new Array(x),I=new Array(x),D=new Array(x),F=new Array(x),Y=new Array(x),J=new Array(x),se=C.words;se.length=x,this.convert13b(O.words,O.length,E,x),this.convert13b(N.words,N.length,F,x),this.transform(E,k,I,D,x,S),this.transform(F,k,Y,J,x,S);for(var q=0;q<x;q++){var ee=I[q]*Y[q]-D[q]*J[q];D[q]=I[q]*J[q]+D[q]*Y[q],I[q]=ee}return this.conjugate(I,D,x),this.transform(I,D,se,k,x,S),this.conjugate(se,k,x),this.normalize13b(se,x),C.negative=O.negative^N.negative,C.length=O.length+N.length,C.strip()},c.prototype.mul=function(O){var N=new c(null);return N.words=new Array(this.length+O.length),this.mulTo(O,N)},c.prototype.mulf=function(O){var N=new c(null);return N.words=new Array(this.length+O.length),_(this,O,N)},c.prototype.imul=function(O){return this.clone().mulTo(O,this)},c.prototype.imuln=function(O){o(typeof O=="number"),o(O<67108864);for(var N=0,C=0;C<this.length;C++){var x=(0|this.words[C])*O,S=(67108863&x)+(67108863&N);N>>=26,N+=x/67108864|0,N+=S>>>26,this.words[C]=67108863&S}return N!==0&&(this.words[C]=N,this.length++),this},c.prototype.muln=function(O){return this.clone().imuln(O)},c.prototype.sqr=function(){return this.mul(this)},c.prototype.isqr=function(){return this.imul(this.clone())},c.prototype.pow=function(O){var N=function(k){for(var E=new Array(k.bitLength()),I=0;I<E.length;I++){var D=I/26|0,F=I%26;E[I]=(k.words[D]&1<<F)>>>F}return E}(O);if(N.length===0)return new c(1);for(var C=this,x=0;x<N.length&&N[x]===0;x++,C=C.sqr());if(++x<N.length)for(var S=C.sqr();x<N.length;x++,S=S.sqr())N[x]!==0&&(C=C.mul(S));return C},c.prototype.iushln=function(O){o(typeof O=="number"&&O>=0);var N,C=O%26,x=(O-C)/26,S=67108863>>>26-C<<26-C;if(C!==0){var k=0;for(N=0;N<this.length;N++){var E=this.words[N]&S,I=(0|this.words[N])-E<<C;this.words[N]=I|k,k=E>>>26-C}k&&(this.words[N]=k,this.length++)}if(x!==0){for(N=this.length-1;N>=0;N--)this.words[N+x]=this.words[N];for(N=0;N<x;N++)this.words[N]=0;this.length+=x}return this.strip()},c.prototype.ishln=function(O){return o(this.negative===0),this.iushln(O)},c.prototype.iushrn=function(O,N,C){var x;o(typeof O=="number"&&O>=0),x=N?(N-N%26)/26:0;var S=O%26,k=Math.min((O-S)/26,this.length),E=67108863^67108863>>>S<<S,I=C;if(x-=k,x=Math.max(0,x),I){for(var D=0;D<k;D++)I.words[D]=this.words[D];I.length=k}if(k!==0)if(this.length>k)for(this.length-=k,D=0;D<this.length;D++)this.words[D]=this.words[D+k];else this.words[0]=0,this.length=1;var F=0;for(D=this.length-1;D>=0&&(F!==0||D>=x);D--){var Y=0|this.words[D];this.words[D]=F<<26-S|Y>>>S,F=Y&E}return I&&F!==0&&(I.words[I.length++]=F),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},c.prototype.ishrn=function(O,N,C){return o(this.negative===0),this.iushrn(O,N,C)},c.prototype.shln=function(O){return this.clone().ishln(O)},c.prototype.ushln=function(O){return this.clone().iushln(O)},c.prototype.shrn=function(O){return this.clone().ishrn(O)},c.prototype.ushrn=function(O){return this.clone().iushrn(O)},c.prototype.testn=function(O){o(typeof O=="number"&&O>=0);var N=O%26,C=(O-N)/26,x=1<<N;return!(this.length<=C)&&!!(this.words[C]&x)},c.prototype.imaskn=function(O){o(typeof O=="number"&&O>=0);var N=O%26,C=(O-N)/26;if(o(this.negative===0,"imaskn works only with positive numbers"),this.length<=C)return this;if(N!==0&&C++,this.length=Math.min(C,this.length),N!==0){var x=67108863^67108863>>>N<<N;this.words[this.length-1]&=x}return this.strip()},c.prototype.maskn=function(O){return this.clone().imaskn(O)},c.prototype.iaddn=function(O){return o(typeof O=="number"),o(O<67108864),O<0?this.isubn(-O):this.negative!==0?this.length===1&&(0|this.words[0])<O?(this.words[0]=O-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(O),this.negative=1,this):this._iaddn(O)},c.prototype._iaddn=function(O){this.words[0]+=O;for(var N=0;N<this.length&&this.words[N]>=67108864;N++)this.words[N]-=67108864,N===this.length-1?this.words[N+1]=1:this.words[N+1]++;return this.length=Math.max(this.length,N+1),this},c.prototype.isubn=function(O){if(o(typeof O=="number"),o(O<67108864),O<0)return this.iaddn(-O);if(this.negative!==0)return this.negative=0,this.iaddn(O),this.negative=1,this;if(this.words[0]-=O,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var N=0;N<this.length&&this.words[N]<0;N++)this.words[N]+=67108864,this.words[N+1]-=1;return this.strip()},c.prototype.addn=function(O){return this.clone().iaddn(O)},c.prototype.subn=function(O){return this.clone().isubn(O)},c.prototype.iabs=function(){return this.negative=0,this},c.prototype.abs=function(){return this.clone().iabs()},c.prototype._ishlnsubmul=function(O,N,C){var x,S,k=O.length+C;this._expand(k);var E=0;for(x=0;x<O.length;x++){S=(0|this.words[x+C])+E;var I=(0|O.words[x])*N;E=((S-=67108863&I)>>26)-(I/67108864|0),this.words[x+C]=67108863&S}for(;x<this.length-C;x++)E=(S=(0|this.words[x+C])+E)>>26,this.words[x+C]=67108863&S;if(E===0)return this.strip();for(o(E===-1),E=0,x=0;x<this.length;x++)E=(S=-(0|this.words[x])+E)>>26,this.words[x]=67108863&S;return this.negative=1,this.strip()},c.prototype._wordDiv=function(O,N){var C=(this.length,O.length),x=this.clone(),S=O,k=0|S.words[S.length-1];(C=26-this._countBits(k))!==0&&(S=S.ushln(C),x.iushln(C),k=0|S.words[S.length-1]);var E,I=x.length-S.length;if(N!=="mod"){(E=new c(null)).length=I+1,E.words=new Array(E.length);for(var D=0;D<E.length;D++)E.words[D]=0}var F=x.clone()._ishlnsubmul(S,1,I);F.negative===0&&(x=F,E&&(E.words[I]=1));for(var Y=I-1;Y>=0;Y--){var J=67108864*(0|x.words[S.length+Y])+(0|x.words[S.length+Y-1]);for(J=Math.min(J/k|0,67108863),x._ishlnsubmul(S,J,Y);x.negative!==0;)J--,x.negative=0,x._ishlnsubmul(S,1,Y),x.isZero()||(x.negative^=1);E&&(E.words[Y]=J)}return E&&E.strip(),x.strip(),N!=="div"&&C!==0&&x.iushrn(C),{div:E||null,mod:x}},c.prototype.divmod=function(O,N,C){return o(!O.isZero()),this.isZero()?{div:new c(0),mod:new c(0)}:this.negative!==0&&O.negative===0?(k=this.neg().divmod(O,N),N!=="mod"&&(x=k.div.neg()),N!=="div"&&(S=k.mod.neg(),C&&S.negative!==0&&S.iadd(O)),{div:x,mod:S}):this.negative===0&&O.negative!==0?(k=this.divmod(O.neg(),N),N!=="mod"&&(x=k.div.neg()),{div:x,mod:k.mod}):this.negative&O.negative?(k=this.neg().divmod(O.neg(),N),N!=="div"&&(S=k.mod.neg(),C&&S.negative!==0&&S.isub(O)),{div:k.div,mod:S}):O.length>this.length||this.cmp(O)<0?{div:new c(0),mod:this}:O.length===1?N==="div"?{div:this.divn(O.words[0]),mod:null}:N==="mod"?{div:null,mod:new c(this.modn(O.words[0]))}:{div:this.divn(O.words[0]),mod:new c(this.modn(O.words[0]))}:this._wordDiv(O,N);var x,S,k},c.prototype.div=function(O){return this.divmod(O,"div",!1).div},c.prototype.mod=function(O){return this.divmod(O,"mod",!1).mod},c.prototype.umod=function(O){return this.divmod(O,"mod",!0).mod},c.prototype.divRound=function(O){var N=this.divmod(O);if(N.mod.isZero())return N.div;var C=N.div.negative!==0?N.mod.isub(O):N.mod,x=O.ushrn(1),S=O.andln(1),k=C.cmp(x);return k<0||S===1&&k===0?N.div:N.div.negative!==0?N.div.isubn(1):N.div.iaddn(1)},c.prototype.modn=function(O){o(O<=67108863);for(var N=(1<<26)%O,C=0,x=this.length-1;x>=0;x--)C=(N*C+(0|this.words[x]))%O;return C},c.prototype.idivn=function(O){o(O<=67108863);for(var N=0,C=this.length-1;C>=0;C--){var x=(0|this.words[C])+67108864*N;this.words[C]=x/O|0,N=x%O}return this.strip()},c.prototype.divn=function(O){return this.clone().idivn(O)},c.prototype.egcd=function(O){o(O.negative===0),o(!O.isZero());var N=this,C=O.clone();N=N.negative!==0?N.umod(O):N.clone();for(var x=new c(1),S=new c(0),k=new c(0),E=new c(1),I=0;N.isEven()&&C.isEven();)N.iushrn(1),C.iushrn(1),++I;for(var D=C.clone(),F=N.clone();!N.isZero();){for(var Y=0,J=1;!(N.words[0]&J)&&Y<26;++Y,J<<=1);if(Y>0)for(N.iushrn(Y);Y-- >0;)(x.isOdd()||S.isOdd())&&(x.iadd(D),S.isub(F)),x.iushrn(1),S.iushrn(1);for(var se=0,q=1;!(C.words[0]&q)&&se<26;++se,q<<=1);if(se>0)for(C.iushrn(se);se-- >0;)(k.isOdd()||E.isOdd())&&(k.iadd(D),E.isub(F)),k.iushrn(1),E.iushrn(1);N.cmp(C)>=0?(N.isub(C),x.isub(k),S.isub(E)):(C.isub(N),k.isub(x),E.isub(S))}return{a:k,b:E,gcd:C.iushln(I)}},c.prototype._invmp=function(O){o(O.negative===0),o(!O.isZero());var N=this,C=O.clone();N=N.negative!==0?N.umod(O):N.clone();for(var x,S=new c(1),k=new c(0),E=C.clone();N.cmpn(1)>0&&C.cmpn(1)>0;){for(var I=0,D=1;!(N.words[0]&D)&&I<26;++I,D<<=1);if(I>0)for(N.iushrn(I);I-- >0;)S.isOdd()&&S.iadd(E),S.iushrn(1);for(var F=0,Y=1;!(C.words[0]&Y)&&F<26;++F,Y<<=1);if(F>0)for(C.iushrn(F);F-- >0;)k.isOdd()&&k.iadd(E),k.iushrn(1);N.cmp(C)>=0?(N.isub(C),S.isub(k)):(C.isub(N),k.isub(S))}return(x=N.cmpn(1)===0?S:k).cmpn(0)<0&&x.iadd(O),x},c.prototype.gcd=function(O){if(this.isZero())return O.abs();if(O.isZero())return this.abs();var N=this.clone(),C=O.clone();N.negative=0,C.negative=0;for(var x=0;N.isEven()&&C.isEven();x++)N.iushrn(1),C.iushrn(1);for(;;){for(;N.isEven();)N.iushrn(1);for(;C.isEven();)C.iushrn(1);var S=N.cmp(C);if(S<0){var k=N;N=C,C=k}else if(S===0||C.cmpn(1)===0)break;N.isub(C)}return C.iushln(x)},c.prototype.invm=function(O){return this.egcd(O).a.umod(O)},c.prototype.isEven=function(){return(1&this.words[0])==0},c.prototype.isOdd=function(){return(1&this.words[0])==1},c.prototype.andln=function(O){return this.words[0]&O},c.prototype.bincn=function(O){o(typeof O=="number");var N=O%26,C=(O-N)/26,x=1<<N;if(this.length<=C)return this._expand(C+1),this.words[C]|=x,this;for(var S=x,k=C;S!==0&&k<this.length;k++){var E=0|this.words[k];S=(E+=S)>>>26,E&=67108863,this.words[k]=E}return S!==0&&(this.words[k]=S,this.length++),this},c.prototype.isZero=function(){return this.length===1&&this.words[0]===0},c.prototype.cmpn=function(O){var N,C=O<0;if(this.negative!==0&&!C)return-1;if(this.negative===0&&C)return 1;if(this.strip(),this.length>1)N=1;else{C&&(O=-O),o(O<=67108863,"Number is too big");var x=0|this.words[0];N=x===O?0:x<O?-1:1}return this.negative!==0?0|-N:N},c.prototype.cmp=function(O){if(this.negative!==0&&O.negative===0)return-1;if(this.negative===0&&O.negative!==0)return 1;var N=this.ucmp(O);return this.negative!==0?0|-N:N},c.prototype.ucmp=function(O){if(this.length>O.length)return 1;if(this.length<O.length)return-1;for(var N=0,C=this.length-1;C>=0;C--){var x=0|this.words[C],S=0|O.words[C];if(x!==S){x<S?N=-1:x>S&&(N=1);break}}return N},c.prototype.gtn=function(O){return this.cmpn(O)===1},c.prototype.gt=function(O){return this.cmp(O)===1},c.prototype.gten=function(O){return this.cmpn(O)>=0},c.prototype.gte=function(O){return this.cmp(O)>=0},c.prototype.ltn=function(O){return this.cmpn(O)===-1},c.prototype.lt=function(O){return this.cmp(O)===-1},c.prototype.lten=function(O){return this.cmpn(O)<=0},c.prototype.lte=function(O){return this.cmp(O)<=0},c.prototype.eqn=function(O){return this.cmpn(O)===0},c.prototype.eq=function(O){return this.cmp(O)===0},c.red=function(O){return new X(O)},c.prototype.toRed=function(O){return o(!this.red,"Already a number in reduction context"),o(this.negative===0,"red works only with positives"),O.convertTo(this)._forceRed(O)},c.prototype.fromRed=function(){return o(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},c.prototype._forceRed=function(O){return this.red=O,this},c.prototype.forceRed=function(O){return o(!this.red,"Already a number in reduction context"),this._forceRed(O)},c.prototype.redAdd=function(O){return o(this.red,"redAdd works only with red numbers"),this.red.add(this,O)},c.prototype.redIAdd=function(O){return o(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,O)},c.prototype.redSub=function(O){return o(this.red,"redSub works only with red numbers"),this.red.sub(this,O)},c.prototype.redISub=function(O){return o(this.red,"redISub works only with red numbers"),this.red.isub(this,O)},c.prototype.redShl=function(O){return o(this.red,"redShl works only with red numbers"),this.red.shl(this,O)},c.prototype.redMul=function(O){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,O),this.red.mul(this,O)},c.prototype.redIMul=function(O){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,O),this.red.imul(this,O)},c.prototype.redSqr=function(){return o(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},c.prototype.redISqr=function(){return o(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},c.prototype.redSqrt=function(){return o(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},c.prototype.redInvm=function(){return o(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},c.prototype.redNeg=function(){return o(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},c.prototype.redPow=function(O){return o(this.red&&!O.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,O)};var M={k256:null,p224:null,p192:null,p25519:null};function j(O,N){this.name=O,this.p=new c(N,16),this.n=this.p.bitLength(),this.k=new c(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function A(){j.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function B(){j.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function H(){j.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function U(){j.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function X(O){if(typeof O=="string"){var N=c._prime(O);this.m=N.p,this.prime=N}else o(O.gtn(1),"modulus must be greater than 1"),this.m=O,this.prime=null}function V(O){X.call(this,O),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new c(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)}j.prototype._tmp=function(){var O=new c(null);return O.words=new Array(Math.ceil(this.n/13)),O},j.prototype.ireduce=function(O){var N,C=O;do this.split(C,this.tmp),N=(C=(C=this.imulK(C)).iadd(this.tmp)).bitLength();while(N>this.n);var x=N<this.n?-1:C.ucmp(this.p);return x===0?(C.words[0]=0,C.length=1):x>0?C.isub(this.p):C.strip!==void 0?C.strip():C._strip(),C},j.prototype.split=function(O,N){O.iushrn(this.n,0,N)},j.prototype.imulK=function(O){return O.imul(this.k)},l(A,j),A.prototype.split=function(O,N){for(var C=Math.min(O.length,9),x=0;x<C;x++)N.words[x]=O.words[x];if(N.length=C,O.length<=9)return O.words[0]=0,void(O.length=1);var S=O.words[9];for(N.words[N.length++]=4194303&S,x=10;x<O.length;x++){var k=0|O.words[x];O.words[x-10]=(4194303&k)<<4|S>>>22,S=k}S>>>=22,O.words[x-10]=S,S===0&&O.length>10?O.length-=10:O.length-=9},A.prototype.imulK=function(O){O.words[O.length]=0,O.words[O.length+1]=0,O.length+=2;for(var N=0,C=0;C<O.length;C++){var x=0|O.words[C];N+=977*x,O.words[C]=67108863&N,N=64*x+(N/67108864|0)}return O.words[O.length-1]===0&&(O.length--,O.words[O.length-1]===0&&O.length--),O},l(B,j),l(H,j),l(U,j),U.prototype.imulK=function(O){for(var N=0,C=0;C<O.length;C++){var x=19*(0|O.words[C])+N,S=67108863&x;x>>>=26,O.words[C]=S,N=x}return N!==0&&(O.words[O.length++]=N),O},c._prime=function(O){if(M[O])return M[O];var N;if(O==="k256")N=new A;else if(O==="p224")N=new B;else if(O==="p192")N=new H;else{if(O!=="p25519")throw new Error("Unknown prime "+O);N=new U}return M[O]=N,N},X.prototype._verify1=function(O){o(O.negative===0,"red works only with positives"),o(O.red,"red works only with red numbers")},X.prototype._verify2=function(O,N){o((O.negative|N.negative)==0,"red works only with positives"),o(O.red&&O.red===N.red,"red works only with red numbers")},X.prototype.imod=function(O){return this.prime?this.prime.ireduce(O)._forceRed(this):O.umod(this.m)._forceRed(this)},X.prototype.neg=function(O){return O.isZero()?O.clone():this.m.sub(O)._forceRed(this)},X.prototype.add=function(O,N){this._verify2(O,N);var C=O.add(N);return C.cmp(this.m)>=0&&C.isub(this.m),C._forceRed(this)},X.prototype.iadd=function(O,N){this._verify2(O,N);var C=O.iadd(N);return C.cmp(this.m)>=0&&C.isub(this.m),C},X.prototype.sub=function(O,N){this._verify2(O,N);var C=O.sub(N);return C.cmpn(0)<0&&C.iadd(this.m),C._forceRed(this)},X.prototype.isub=function(O,N){this._verify2(O,N);var C=O.isub(N);return C.cmpn(0)<0&&C.iadd(this.m),C},X.prototype.shl=function(O,N){return this._verify1(O),this.imod(O.ushln(N))},X.prototype.imul=function(O,N){return this._verify2(O,N),this.imod(O.imul(N))},X.prototype.mul=function(O,N){return this._verify2(O,N),this.imod(O.mul(N))},X.prototype.isqr=function(O){return this.imul(O,O.clone())},X.prototype.sqr=function(O){return this.mul(O,O)},X.prototype.sqrt=function(O){if(O.isZero())return O.clone();var N=this.m.andln(3);if(o(N%2==1),N===3){var C=this.m.add(new c(1)).iushrn(2);return this.pow(O,C)}for(var x=this.m.subn(1),S=0;!x.isZero()&&x.andln(1)===0;)S++,x.iushrn(1);o(!x.isZero());var k=new c(1).toRed(this),E=k.redNeg(),I=this.m.subn(1).iushrn(1),D=this.m.bitLength();for(D=new c(2*D*D).toRed(this);this.pow(D,I).cmp(E)!==0;)D.redIAdd(E);for(var F=this.pow(D,x),Y=this.pow(O,x.addn(1).iushrn(1)),J=this.pow(O,x),se=S;J.cmp(k)!==0;){for(var q=J,ee=0;q.cmp(k)!==0;ee++)q=q.redSqr();o(ee<se);var L=this.pow(F,new c(1).iushln(se-ee-1));Y=Y.redMul(L),F=L.redSqr(),J=J.redMul(F),se=ee}return Y},X.prototype.invm=function(O){var N=O._invmp(this.m);return N.negative!==0?(N.negative=0,this.imod(N).redNeg()):this.imod(N)},X.prototype.pow=function(O,N){if(N.isZero())return new c(1).toRed(this);if(N.cmpn(1)===0)return O.clone();var C=new Array(16);C[0]=new c(1).toRed(this),C[1]=O;for(var x=2;x<C.length;x++)C[x]=this.mul(C[x-1],O);var S=C[0],k=0,E=0,I=N.bitLength()%26;for(I===0&&(I=26),x=N.length-1;x>=0;x--){for(var D=N.words[x],F=I-1;F>=0;F--){var Y=D>>F&1;S!==C[0]&&(S=this.sqr(S)),Y!==0||k!==0?(k<<=1,k|=Y,(++E===4||x===0&&F===0)&&(S=this.mul(S,C[k]),E=0,k=0)):E=0}I=26}return S},X.prototype.convertTo=function(O){var N=O.umod(this.m);return N===O?N.clone():N},X.prototype.convertFrom=function(O){var N=O.clone();return N.red=null,N},c.mont=function(O){return new V(O)},l(V,X),V.prototype.convertTo=function(O){return this.imod(O.ushln(this.shift))},V.prototype.convertFrom=function(O){var N=this.imod(O.mul(this.rinv));return N.red=null,N},V.prototype.imul=function(O,N){if(O.isZero()||N.isZero())return O.words[0]=0,O.length=1,O;var C=O.imul(N),x=C.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),S=C.isub(x).iushrn(this.shift),k=S;return S.cmp(this.m)>=0?k=S.isub(this.m):S.cmpn(0)<0&&(k=S.iadd(this.m)),k._forceRed(this)},V.prototype.mul=function(O,N){if(O.isZero()||N.isZero())return new c(0)._forceRed(this);var C=O.mul(N),x=C.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),S=C.isub(x).iushrn(this.shift),k=S;return S.cmp(this.m)>=0?k=S.isub(this.m):S.cmpn(0)<0&&(k=S.iadd(this.m)),k._forceRed(this)},V.prototype.invm=function(O){return this.imod(O._invmp(this.m).mul(this.r2))._forceRed(this)}})(r===void 0||r)},{buffer:188}],185:[function(e,r,s){s.byteLength=function(f){var p=h(f),g=p[0],m=p[1];return 3*(g+m)/4-m},s.toByteArray=function(f){var p,g,m=h(f),b=m[0],w=m[1],_=new o(function(j,A,B){return 3*(A+B)/4-B}(0,b,w)),T=0,M=w>0?b-4:b;for(g=0;g<M;g+=4)p=a[f.charCodeAt(g)]<<18|a[f.charCodeAt(g+1)]<<12|a[f.charCodeAt(g+2)]<<6|a[f.charCodeAt(g+3)],_[T++]=p>>16&255,_[T++]=p>>8&255,_[T++]=255&p;return w===2&&(p=a[f.charCodeAt(g)]<<2|a[f.charCodeAt(g+1)]>>4,_[T++]=255&p),w===1&&(p=a[f.charCodeAt(g)]<<10|a[f.charCodeAt(g+1)]<<4|a[f.charCodeAt(g+2)]>>2,_[T++]=p>>8&255,_[T++]=255&p),_},s.fromByteArray=function(f){for(var p,g=f.length,m=g%3,b=[],w=0,_=g-m;w<_;w+=16383)b.push(d(f,w,w+16383>_?_:w+16383));return m===1?(p=f[g-1],b.push(i[p>>2]+i[p<<4&63]+"==")):m===2&&(p=(f[g-2]<<8)+f[g-1],b.push(i[p>>10]+i[p>>4&63]+i[p<<2&63]+"=")),b.join("")};for(var i=[],a=[],o=typeof Uint8Array<"u"?Uint8Array:Array,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=0,u=l.length;c<u;++c)i[c]=l[c],a[l.charCodeAt(c)]=c;function h(f){var p=f.length;if(p%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var g=f.indexOf("=");return g===-1&&(g=p),[g,g===p?0:4-g%4]}function d(f,p,g){for(var m,b,w=[],_=p;_<g;_+=3)m=(f[_]<<16&16711680)+(f[_+1]<<8&65280)+(255&f[_+2]),w.push(i[(b=m)>>18&63]+i[b>>12&63]+i[b>>6&63]+i[63&b]);return w.join("")}a[45]=62,a[95]=63},{}],186:[function(e,r,s){(function(i,a){function o(C,x){if(!C)throw new Error(x||"Assertion failed")}function l(C,x){C.super_=x;var S=function(){};S.prototype=x.prototype,C.prototype=new S,C.prototype.constructor=C}function c(C,x,S){if(c.isBN(C))return C;this.negative=0,this.words=null,this.length=0,this.red=null,C!==null&&(x!=="le"&&x!=="be"||(S=x,x=10),this._init(C||0,x||10,S||"be"))}var u;typeof i=="object"?i.exports=c:(void 0).BN=c,c.BN=c,c.wordSize=26;try{u=typeof window<"u"&&window.Buffer!==void 0?window.Buffer:e("buffer").Buffer}catch{}function h(C,x){var S=C.charCodeAt(x);return S>=48&&S<=57?S-48:S>=65&&S<=70?S-55:S>=97&&S<=102?S-87:void o(!1,"Invalid character in "+C)}function d(C,x,S){var k=h(C,S);return S-1>=x&&(k|=h(C,S-1)<<4),k}function f(C,x,S,k){for(var E=0,I=0,D=Math.min(C.length,S),F=x;F<D;F++){var Y=C.charCodeAt(F)-48;E*=k,I=Y>=49?Y-49+10:Y>=17?Y-17+10:Y,o(Y>=0&&I<k,"Invalid character"),E+=I}return E}function p(C,x){C.words=x.words,C.length=x.length,C.negative=x.negative,C.red=x.red}if(c.isBN=function(C){return C instanceof c||C!==null&&typeof C=="object"&&C.constructor.wordSize===c.wordSize&&Array.isArray(C.words)},c.max=function(C,x){return C.cmp(x)>0?C:x},c.min=function(C,x){return C.cmp(x)<0?C:x},c.prototype._init=function(C,x,S){if(typeof C=="number")return this._initNumber(C,x,S);if(typeof C=="object")return this._initArray(C,x,S);x==="hex"&&(x=16),o(x===(0|x)&&x>=2&&x<=36);var k=0;(C=C.toString().replace(/\s+/g,""))[0]==="-"&&(k++,this.negative=1),k<C.length&&(x===16?this._parseHex(C,k,S):(this._parseBase(C,x,k),S==="le"&&this._initArray(this.toArray(),x,S)))},c.prototype._initNumber=function(C,x,S){C<0&&(this.negative=1,C=-C),C<67108864?(this.words=[67108863&C],this.length=1):C<4503599627370496?(this.words=[67108863&C,C/67108864&67108863],this.length=2):(o(C<9007199254740992),this.words=[67108863&C,C/67108864&67108863,1],this.length=3),S==="le"&&this._initArray(this.toArray(),x,S)},c.prototype._initArray=function(C,x,S){if(o(typeof C.length=="number"),C.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(C.length/3),this.words=new Array(this.length);for(var k=0;k<this.length;k++)this.words[k]=0;var E,I,D=0;if(S==="be")for(k=C.length-1,E=0;k>=0;k-=3)I=C[k]|C[k-1]<<8|C[k-2]<<16,this.words[E]|=I<<D&67108863,this.words[E+1]=I>>>26-D&67108863,(D+=24)>=26&&(D-=26,E++);else if(S==="le")for(k=0,E=0;k<C.length;k+=3)I=C[k]|C[k+1]<<8|C[k+2]<<16,this.words[E]|=I<<D&67108863,this.words[E+1]=I>>>26-D&67108863,(D+=24)>=26&&(D-=26,E++);return this._strip()},c.prototype._parseHex=function(C,x,S){this.length=Math.ceil((C.length-x)/6),this.words=new Array(this.length);for(var k=0;k<this.length;k++)this.words[k]=0;var E,I=0,D=0;if(S==="be")for(k=C.length-1;k>=x;k-=2)E=d(C,x,k)<<I,this.words[D]|=67108863&E,I>=18?(I-=18,D+=1,this.words[D]|=E>>>26):I+=8;else for(k=(C.length-x)%2==0?x+1:x;k<C.length;k+=2)E=d(C,x,k)<<I,this.words[D]|=67108863&E,I>=18?(I-=18,D+=1,this.words[D]|=E>>>26):I+=8;this._strip()},c.prototype._parseBase=function(C,x,S){this.words=[0],this.length=1;for(var k=0,E=1;E<=67108863;E*=x)k++;k--,E=E/x|0;for(var I=C.length-S,D=I%k,F=Math.min(I,I-D)+S,Y=0,J=S;J<F;J+=k)Y=f(C,J,J+k,x),this.imuln(E),this.words[0]+Y<67108864?this.words[0]+=Y:this._iaddn(Y);if(D!==0){var se=1;for(Y=f(C,J,C.length,x),J=0;J<D;J++)se*=x;this.imuln(se),this.words[0]+Y<67108864?this.words[0]+=Y:this._iaddn(Y)}this._strip()},c.prototype.copy=function(C){C.words=new Array(this.length);for(var x=0;x<this.length;x++)C.words[x]=this.words[x];C.length=this.length,C.negative=this.negative,C.red=this.red},c.prototype._move=function(C){p(C,this)},c.prototype.clone=function(){var C=new c(null);return this.copy(C),C},c.prototype._expand=function(C){for(;this.length<C;)this.words[this.length++]=0;return this},c.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},c.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{c.prototype[Symbol.for("nodejs.util.inspect.custom")]=g}catch{c.prototype.inspect=g}else c.prototype.inspect=g;function g(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var m=["","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"],b=[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],w=[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];c.prototype.toString=function(C,x){var S;if(x=0|x||1,(C=C||10)===16||C==="hex"){S="";for(var k=0,E=0,I=0;I<this.length;I++){var D=this.words[I],F=(16777215&(D<<k|E)).toString(16);E=D>>>24-k&16777215,(k+=2)>=26&&(k-=26,I--),S=E!==0||I!==this.length-1?m[6-F.length]+F+S:F+S}for(E!==0&&(S=E.toString(16)+S);S.length%x!=0;)S="0"+S;return this.negative!==0&&(S="-"+S),S}if(C===(0|C)&&C>=2&&C<=36){var Y=b[C],J=w[C];S="";var se=this.clone();for(se.negative=0;!se.isZero();){var q=se.modrn(J).toString(C);S=(se=se.idivn(J)).isZero()?q+S:m[Y-q.length]+q+S}for(this.isZero()&&(S="0"+S);S.length%x!=0;)S="0"+S;return this.negative!==0&&(S="-"+S),S}o(!1,"Base should be between 2 and 36")},c.prototype.toNumber=function(){var C=this.words[0];return this.length===2?C+=67108864*this.words[1]:this.length===3&&this.words[2]===1?C+=4503599627370496+67108864*this.words[1]:this.length>2&&o(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-C:C},c.prototype.toJSON=function(){return this.toString(16,2)},u&&(c.prototype.toBuffer=function(C,x){return this.toArrayLike(u,C,x)}),c.prototype.toArray=function(C,x){return this.toArrayLike(Array,C,x)};function _(C,x,S){S.negative=x.negative^C.negative;var k=C.length+x.length|0;S.length=k,k=k-1|0;var E=0|C.words[0],I=0|x.words[0],D=E*I,F=67108863&D,Y=D/67108864|0;S.words[0]=F;for(var J=1;J<k;J++){for(var se=Y>>>26,q=67108863&Y,ee=Math.min(J,x.length-1),L=Math.max(0,J-C.length+1);L<=ee;L++){var P=J-L|0;se+=(D=(E=0|C.words[P])*(I=0|x.words[L])+q)/67108864|0,q=67108863&D}S.words[J]=0|q,Y=0|se}return Y!==0?S.words[J]=0|Y:S.length--,S._strip()}c.prototype.toArrayLike=function(C,x,S){this._strip();var k=this.byteLength(),E=S||Math.max(1,k);o(k<=E,"byte array longer than desired length"),o(E>0,"Requested array length <= 0");var I=function(D,F){return D.allocUnsafe?D.allocUnsafe(F):new D(F)}(C,E);return this["_toArrayLike"+(x==="le"?"LE":"BE")](I,k),I},c.prototype._toArrayLikeLE=function(C,x){for(var S=0,k=0,E=0,I=0;E<this.length;E++){var D=this.words[E]<<I|k;C[S++]=255&D,S<C.length&&(C[S++]=D>>8&255),S<C.length&&(C[S++]=D>>16&255),I===6?(S<C.length&&(C[S++]=D>>24&255),k=0,I=0):(k=D>>>24,I+=2)}if(S<C.length)for(C[S++]=k;S<C.length;)C[S++]=0},c.prototype._toArrayLikeBE=function(C,x){for(var S=C.length-1,k=0,E=0,I=0;E<this.length;E++){var D=this.words[E]<<I|k;C[S--]=255&D,S>=0&&(C[S--]=D>>8&255),S>=0&&(C[S--]=D>>16&255),I===6?(S>=0&&(C[S--]=D>>24&255),k=0,I=0):(k=D>>>24,I+=2)}if(S>=0)for(C[S--]=k;S>=0;)C[S--]=0},Math.clz32?c.prototype._countBits=function(C){return 32-Math.clz32(C)}:c.prototype._countBits=function(C){var x=C,S=0;return x>=4096&&(S+=13,x>>>=13),x>=64&&(S+=7,x>>>=7),x>=8&&(S+=4,x>>>=4),x>=2&&(S+=2,x>>>=2),S+x},c.prototype._zeroBits=function(C){if(C===0)return 26;var x=C,S=0;return!(8191&x)&&(S+=13,x>>>=13),!(127&x)&&(S+=7,x>>>=7),!(15&x)&&(S+=4,x>>>=4),!(3&x)&&(S+=2,x>>>=2),!(1&x)&&S++,S},c.prototype.bitLength=function(){var C=this.words[this.length-1],x=this._countBits(C);return 26*(this.length-1)+x},c.prototype.zeroBits=function(){if(this.isZero())return 0;for(var C=0,x=0;x<this.length;x++){var S=this._zeroBits(this.words[x]);if(C+=S,S!==26)break}return C},c.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},c.prototype.toTwos=function(C){return this.negative!==0?this.abs().inotn(C).iaddn(1):this.clone()},c.prototype.fromTwos=function(C){return this.testn(C-1)?this.notn(C).iaddn(1).ineg():this.clone()},c.prototype.isNeg=function(){return this.negative!==0},c.prototype.neg=function(){return this.clone().ineg()},c.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},c.prototype.iuor=function(C){for(;this.length<C.length;)this.words[this.length++]=0;for(var x=0;x<C.length;x++)this.words[x]=this.words[x]|C.words[x];return this._strip()},c.prototype.ior=function(C){return o((this.negative|C.negative)==0),this.iuor(C)},c.prototype.or=function(C){return this.length>C.length?this.clone().ior(C):C.clone().ior(this)},c.prototype.uor=function(C){return this.length>C.length?this.clone().iuor(C):C.clone().iuor(this)},c.prototype.iuand=function(C){var x;x=this.length>C.length?C:this;for(var S=0;S<x.length;S++)this.words[S]=this.words[S]&C.words[S];return this.length=x.length,this._strip()},c.prototype.iand=function(C){return o((this.negative|C.negative)==0),this.iuand(C)},c.prototype.and=function(C){return this.length>C.length?this.clone().iand(C):C.clone().iand(this)},c.prototype.uand=function(C){return this.length>C.length?this.clone().iuand(C):C.clone().iuand(this)},c.prototype.iuxor=function(C){var x,S;this.length>C.length?(x=this,S=C):(x=C,S=this);for(var k=0;k<S.length;k++)this.words[k]=x.words[k]^S.words[k];if(this!==x)for(;k<x.length;k++)this.words[k]=x.words[k];return this.length=x.length,this._strip()},c.prototype.ixor=function(C){return o((this.negative|C.negative)==0),this.iuxor(C)},c.prototype.xor=function(C){return this.length>C.length?this.clone().ixor(C):C.clone().ixor(this)},c.prototype.uxor=function(C){return this.length>C.length?this.clone().iuxor(C):C.clone().iuxor(this)},c.prototype.inotn=function(C){o(typeof C=="number"&&C>=0);var x=0|Math.ceil(C/26),S=C%26;this._expand(x),S>0&&x--;for(var k=0;k<x;k++)this.words[k]=67108863&~this.words[k];return S>0&&(this.words[k]=~this.words[k]&67108863>>26-S),this._strip()},c.prototype.notn=function(C){return this.clone().inotn(C)},c.prototype.setn=function(C,x){o(typeof C=="number"&&C>=0);var S=C/26|0,k=C%26;return this._expand(S+1),this.words[S]=x?this.words[S]|1<<k:this.words[S]&~(1<<k),this._strip()},c.prototype.iadd=function(C){var x,S,k;if(this.negative!==0&&C.negative===0)return this.negative=0,x=this.isub(C),this.negative^=1,this._normSign();if(this.negative===0&&C.negative!==0)return C.negative=0,x=this.isub(C),C.negative=1,x._normSign();this.length>C.length?(S=this,k=C):(S=C,k=this);for(var E=0,I=0;I<k.length;I++)x=(0|S.words[I])+(0|k.words[I])+E,this.words[I]=67108863&x,E=x>>>26;for(;E!==0&&I<S.length;I++)x=(0|S.words[I])+E,this.words[I]=67108863&x,E=x>>>26;if(this.length=S.length,E!==0)this.words[this.length]=E,this.length++;else if(S!==this)for(;I<S.length;I++)this.words[I]=S.words[I];return this},c.prototype.add=function(C){var x;return C.negative!==0&&this.negative===0?(C.negative=0,x=this.sub(C),C.negative^=1,x):C.negative===0&&this.negative!==0?(this.negative=0,x=C.sub(this),this.negative=1,x):this.length>C.length?this.clone().iadd(C):C.clone().iadd(this)},c.prototype.isub=function(C){if(C.negative!==0){C.negative=0;var x=this.iadd(C);return C.negative=1,x._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(C),this.negative=1,this._normSign();var S,k,E=this.cmp(C);if(E===0)return this.negative=0,this.length=1,this.words[0]=0,this;E>0?(S=this,k=C):(S=C,k=this);for(var I=0,D=0;D<k.length;D++)I=(x=(0|S.words[D])-(0|k.words[D])+I)>>26,this.words[D]=67108863&x;for(;I!==0&&D<S.length;D++)I=(x=(0|S.words[D])+I)>>26,this.words[D]=67108863&x;if(I===0&&D<S.length&&S!==this)for(;D<S.length;D++)this.words[D]=S.words[D];return this.length=Math.max(this.length,D),S!==this&&(this.negative=1),this._strip()},c.prototype.sub=function(C){return this.clone().isub(C)};var T=function(C,x,S){var k,E,I,D=C.words,F=x.words,Y=S.words,J=0,se=0|D[0],q=8191&se,ee=se>>>13,L=0|D[1],P=8191&L,G=L>>>13,ne=0|D[2],ce=8191&ne,ie=ne>>>13,ue=0|D[3],ve=8191&ue,we=ue>>>13,le=0|D[4],me=8191&le,ge=le>>>13,ke=0|D[5],xe=8191&ke,Ee=ke>>>13,Ie=0|D[6],Pe=8191&Ie,Ae=Ie>>>13,Ge=0|D[7],st=8191&Ge,et=Ge>>>13,Rt=0|D[8],_t=8191&Rt,xt=Rt>>>13,yt=0|D[9],Qe=8191&yt,Ve=yt>>>13,it=0|F[0],wt=8191&it,ct=it>>>13,dr=0|F[1],Or=8191&dr,Pt=dr>>>13,hr=0|F[2],sr=8191&hr,Wt=hr>>>13,Hr=0|F[3],Qt=8191&Hr,pt=Hr>>>13,gr=0|F[4],qr=8191&gr,Ht=gr>>>13,Rr=0|F[5],Er=8191&Rr,qt=Rr>>>13,ye=0|F[6],Ce=8191&ye,Le=ye>>>13,tt=0|F[7],jt=8191&tt,rt=tt>>>13,Vt=0|F[8],Dt=8191&Vt,Et=Vt>>>13,Xt=0|F[9],Bt=8191&Xt,or=Xt>>>13;S.negative=C.negative^x.negative,S.length=19;var an=(J+(k=Math.imul(q,wt))|0)+((8191&(E=(E=Math.imul(q,ct))+Math.imul(ee,wt)|0))<<13)|0;J=((I=Math.imul(ee,ct))+(E>>>13)|0)+(an>>>26)|0,an&=67108863,k=Math.imul(P,wt),E=(E=Math.imul(P,ct))+Math.imul(G,wt)|0,I=Math.imul(G,ct);var Ur=(J+(k=k+Math.imul(q,Or)|0)|0)+((8191&(E=(E=E+Math.imul(q,Pt)|0)+Math.imul(ee,Or)|0))<<13)|0;J=((I=I+Math.imul(ee,Pt)|0)+(E>>>13)|0)+(Ur>>>26)|0,Ur&=67108863,k=Math.imul(ce,wt),E=(E=Math.imul(ce,ct))+Math.imul(ie,wt)|0,I=Math.imul(ie,ct),k=k+Math.imul(P,Or)|0,E=(E=E+Math.imul(P,Pt)|0)+Math.imul(G,Or)|0,I=I+Math.imul(G,Pt)|0;var hn=(J+(k=k+Math.imul(q,sr)|0)|0)+((8191&(E=(E=E+Math.imul(q,Wt)|0)+Math.imul(ee,sr)|0))<<13)|0;J=((I=I+Math.imul(ee,Wt)|0)+(E>>>13)|0)+(hn>>>26)|0,hn&=67108863,k=Math.imul(ve,wt),E=(E=Math.imul(ve,ct))+Math.imul(we,wt)|0,I=Math.imul(we,ct),k=k+Math.imul(ce,Or)|0,E=(E=E+Math.imul(ce,Pt)|0)+Math.imul(ie,Or)|0,I=I+Math.imul(ie,Pt)|0,k=k+Math.imul(P,sr)|0,E=(E=E+Math.imul(P,Wt)|0)+Math.imul(G,sr)|0,I=I+Math.imul(G,Wt)|0;var vn=(J+(k=k+Math.imul(q,Qt)|0)|0)+((8191&(E=(E=E+Math.imul(q,pt)|0)+Math.imul(ee,Qt)|0))<<13)|0;J=((I=I+Math.imul(ee,pt)|0)+(E>>>13)|0)+(vn>>>26)|0,vn&=67108863,k=Math.imul(me,wt),E=(E=Math.imul(me,ct))+Math.imul(ge,wt)|0,I=Math.imul(ge,ct),k=k+Math.imul(ve,Or)|0,E=(E=E+Math.imul(ve,Pt)|0)+Math.imul(we,Or)|0,I=I+Math.imul(we,Pt)|0,k=k+Math.imul(ce,sr)|0,E=(E=E+Math.imul(ce,Wt)|0)+Math.imul(ie,sr)|0,I=I+Math.imul(ie,Wt)|0,k=k+Math.imul(P,Qt)|0,E=(E=E+Math.imul(P,pt)|0)+Math.imul(G,Qt)|0,I=I+Math.imul(G,pt)|0;var Cs=(J+(k=k+Math.imul(q,qr)|0)|0)+((8191&(E=(E=E+Math.imul(q,Ht)|0)+Math.imul(ee,qr)|0))<<13)|0;J=((I=I+Math.imul(ee,Ht)|0)+(E>>>13)|0)+(Cs>>>26)|0,Cs&=67108863,k=Math.imul(xe,wt),E=(E=Math.imul(xe,ct))+Math.imul(Ee,wt)|0,I=Math.imul(Ee,ct),k=k+Math.imul(me,Or)|0,E=(E=E+Math.imul(me,Pt)|0)+Math.imul(ge,Or)|0,I=I+Math.imul(ge,Pt)|0,k=k+Math.imul(ve,sr)|0,E=(E=E+Math.imul(ve,Wt)|0)+Math.imul(we,sr)|0,I=I+Math.imul(we,Wt)|0,k=k+Math.imul(ce,Qt)|0,E=(E=E+Math.imul(ce,pt)|0)+Math.imul(ie,Qt)|0,I=I+Math.imul(ie,pt)|0,k=k+Math.imul(P,qr)|0,E=(E=E+Math.imul(P,Ht)|0)+Math.imul(G,qr)|0,I=I+Math.imul(G,Ht)|0;var he=(J+(k=k+Math.imul(q,Er)|0)|0)+((8191&(E=(E=E+Math.imul(q,qt)|0)+Math.imul(ee,Er)|0))<<13)|0;J=((I=I+Math.imul(ee,qt)|0)+(E>>>13)|0)+(he>>>26)|0,he&=67108863,k=Math.imul(Pe,wt),E=(E=Math.imul(Pe,ct))+Math.imul(Ae,wt)|0,I=Math.imul(Ae,ct),k=k+Math.imul(xe,Or)|0,E=(E=E+Math.imul(xe,Pt)|0)+Math.imul(Ee,Or)|0,I=I+Math.imul(Ee,Pt)|0,k=k+Math.imul(me,sr)|0,E=(E=E+Math.imul(me,Wt)|0)+Math.imul(ge,sr)|0,I=I+Math.imul(ge,Wt)|0,k=k+Math.imul(ve,Qt)|0,E=(E=E+Math.imul(ve,pt)|0)+Math.imul(we,Qt)|0,I=I+Math.imul(we,pt)|0,k=k+Math.imul(ce,qr)|0,E=(E=E+Math.imul(ce,Ht)|0)+Math.imul(ie,qr)|0,I=I+Math.imul(ie,Ht)|0,k=k+Math.imul(P,Er)|0,E=(E=E+Math.imul(P,qt)|0)+Math.imul(G,Er)|0,I=I+Math.imul(G,qt)|0;var Te=(J+(k=k+Math.imul(q,Ce)|0)|0)+((8191&(E=(E=E+Math.imul(q,Le)|0)+Math.imul(ee,Ce)|0))<<13)|0;J=((I=I+Math.imul(ee,Le)|0)+(E>>>13)|0)+(Te>>>26)|0,Te&=67108863,k=Math.imul(st,wt),E=(E=Math.imul(st,ct))+Math.imul(et,wt)|0,I=Math.imul(et,ct),k=k+Math.imul(Pe,Or)|0,E=(E=E+Math.imul(Pe,Pt)|0)+Math.imul(Ae,Or)|0,I=I+Math.imul(Ae,Pt)|0,k=k+Math.imul(xe,sr)|0,E=(E=E+Math.imul(xe,Wt)|0)+Math.imul(Ee,sr)|0,I=I+Math.imul(Ee,Wt)|0,k=k+Math.imul(me,Qt)|0,E=(E=E+Math.imul(me,pt)|0)+Math.imul(ge,Qt)|0,I=I+Math.imul(ge,pt)|0,k=k+Math.imul(ve,qr)|0,E=(E=E+Math.imul(ve,Ht)|0)+Math.imul(we,qr)|0,I=I+Math.imul(we,Ht)|0,k=k+Math.imul(ce,Er)|0,E=(E=E+Math.imul(ce,qt)|0)+Math.imul(ie,Er)|0,I=I+Math.imul(ie,qt)|0,k=k+Math.imul(P,Ce)|0,E=(E=E+Math.imul(P,Le)|0)+Math.imul(G,Ce)|0,I=I+Math.imul(G,Le)|0;var ze=(J+(k=k+Math.imul(q,jt)|0)|0)+((8191&(E=(E=E+Math.imul(q,rt)|0)+Math.imul(ee,jt)|0))<<13)|0;J=((I=I+Math.imul(ee,rt)|0)+(E>>>13)|0)+(ze>>>26)|0,ze&=67108863,k=Math.imul(_t,wt),E=(E=Math.imul(_t,ct))+Math.imul(xt,wt)|0,I=Math.imul(xt,ct),k=k+Math.imul(st,Or)|0,E=(E=E+Math.imul(st,Pt)|0)+Math.imul(et,Or)|0,I=I+Math.imul(et,Pt)|0,k=k+Math.imul(Pe,sr)|0,E=(E=E+Math.imul(Pe,Wt)|0)+Math.imul(Ae,sr)|0,I=I+Math.imul(Ae,Wt)|0,k=k+Math.imul(xe,Qt)|0,E=(E=E+Math.imul(xe,pt)|0)+Math.imul(Ee,Qt)|0,I=I+Math.imul(Ee,pt)|0,k=k+Math.imul(me,qr)|0,E=(E=E+Math.imul(me,Ht)|0)+Math.imul(ge,qr)|0,I=I+Math.imul(ge,Ht)|0,k=k+Math.imul(ve,Er)|0,E=(E=E+Math.imul(ve,qt)|0)+Math.imul(we,Er)|0,I=I+Math.imul(we,qt)|0,k=k+Math.imul(ce,Ce)|0,E=(E=E+Math.imul(ce,Le)|0)+Math.imul(ie,Ce)|0,I=I+Math.imul(ie,Le)|0,k=k+Math.imul(P,jt)|0,E=(E=E+Math.imul(P,rt)|0)+Math.imul(G,jt)|0,I=I+Math.imul(G,rt)|0;var qe=(J+(k=k+Math.imul(q,Dt)|0)|0)+((8191&(E=(E=E+Math.imul(q,Et)|0)+Math.imul(ee,Dt)|0))<<13)|0;J=((I=I+Math.imul(ee,Et)|0)+(E>>>13)|0)+(qe>>>26)|0,qe&=67108863,k=Math.imul(Qe,wt),E=(E=Math.imul(Qe,ct))+Math.imul(Ve,wt)|0,I=Math.imul(Ve,ct),k=k+Math.imul(_t,Or)|0,E=(E=E+Math.imul(_t,Pt)|0)+Math.imul(xt,Or)|0,I=I+Math.imul(xt,Pt)|0,k=k+Math.imul(st,sr)|0,E=(E=E+Math.imul(st,Wt)|0)+Math.imul(et,sr)|0,I=I+Math.imul(et,Wt)|0,k=k+Math.imul(Pe,Qt)|0,E=(E=E+Math.imul(Pe,pt)|0)+Math.imul(Ae,Qt)|0,I=I+Math.imul(Ae,pt)|0,k=k+Math.imul(xe,qr)|0,E=(E=E+Math.imul(xe,Ht)|0)+Math.imul(Ee,qr)|0,I=I+Math.imul(Ee,Ht)|0,k=k+Math.imul(me,Er)|0,E=(E=E+Math.imul(me,qt)|0)+Math.imul(ge,Er)|0,I=I+Math.imul(ge,qt)|0,k=k+Math.imul(ve,Ce)|0,E=(E=E+Math.imul(ve,Le)|0)+Math.imul(we,Ce)|0,I=I+Math.imul(we,Le)|0,k=k+Math.imul(ce,jt)|0,E=(E=E+Math.imul(ce,rt)|0)+Math.imul(ie,jt)|0,I=I+Math.imul(ie,rt)|0,k=k+Math.imul(P,Dt)|0,E=(E=E+Math.imul(P,Et)|0)+Math.imul(G,Dt)|0,I=I+Math.imul(G,Et)|0;var mt=(J+(k=k+Math.imul(q,Bt)|0)|0)+((8191&(E=(E=E+Math.imul(q,or)|0)+Math.imul(ee,Bt)|0))<<13)|0;J=((I=I+Math.imul(ee,or)|0)+(E>>>13)|0)+(mt>>>26)|0,mt&=67108863,k=Math.imul(Qe,Or),E=(E=Math.imul(Qe,Pt))+Math.imul(Ve,Or)|0,I=Math.imul(Ve,Pt),k=k+Math.imul(_t,sr)|0,E=(E=E+Math.imul(_t,Wt)|0)+Math.imul(xt,sr)|0,I=I+Math.imul(xt,Wt)|0,k=k+Math.imul(st,Qt)|0,E=(E=E+Math.imul(st,pt)|0)+Math.imul(et,Qt)|0,I=I+Math.imul(et,pt)|0,k=k+Math.imul(Pe,qr)|0,E=(E=E+Math.imul(Pe,Ht)|0)+Math.imul(Ae,qr)|0,I=I+Math.imul(Ae,Ht)|0,k=k+Math.imul(xe,Er)|0,E=(E=E+Math.imul(xe,qt)|0)+Math.imul(Ee,Er)|0,I=I+Math.imul(Ee,qt)|0,k=k+Math.imul(me,Ce)|0,E=(E=E+Math.imul(me,Le)|0)+Math.imul(ge,Ce)|0,I=I+Math.imul(ge,Le)|0,k=k+Math.imul(ve,jt)|0,E=(E=E+Math.imul(ve,rt)|0)+Math.imul(we,jt)|0,I=I+Math.imul(we,rt)|0,k=k+Math.imul(ce,Dt)|0,E=(E=E+Math.imul(ce,Et)|0)+Math.imul(ie,Dt)|0,I=I+Math.imul(ie,Et)|0;var Ye=(J+(k=k+Math.imul(P,Bt)|0)|0)+((8191&(E=(E=E+Math.imul(P,or)|0)+Math.imul(G,Bt)|0))<<13)|0;J=((I=I+Math.imul(G,or)|0)+(E>>>13)|0)+(Ye>>>26)|0,Ye&=67108863,k=Math.imul(Qe,sr),E=(E=Math.imul(Qe,Wt))+Math.imul(Ve,sr)|0,I=Math.imul(Ve,Wt),k=k+Math.imul(_t,Qt)|0,E=(E=E+Math.imul(_t,pt)|0)+Math.imul(xt,Qt)|0,I=I+Math.imul(xt,pt)|0,k=k+Math.imul(st,qr)|0,E=(E=E+Math.imul(st,Ht)|0)+Math.imul(et,qr)|0,I=I+Math.imul(et,Ht)|0,k=k+Math.imul(Pe,Er)|0,E=(E=E+Math.imul(Pe,qt)|0)+Math.imul(Ae,Er)|0,I=I+Math.imul(Ae,qt)|0,k=k+Math.imul(xe,Ce)|0,E=(E=E+Math.imul(xe,Le)|0)+Math.imul(Ee,Ce)|0,I=I+Math.imul(Ee,Le)|0,k=k+Math.imul(me,jt)|0,E=(E=E+Math.imul(me,rt)|0)+Math.imul(ge,jt)|0,I=I+Math.imul(ge,rt)|0,k=k+Math.imul(ve,Dt)|0,E=(E=E+Math.imul(ve,Et)|0)+Math.imul(we,Dt)|0,I=I+Math.imul(we,Et)|0;var Ze=(J+(k=k+Math.imul(ce,Bt)|0)|0)+((8191&(E=(E=E+Math.imul(ce,or)|0)+Math.imul(ie,Bt)|0))<<13)|0;J=((I=I+Math.imul(ie,or)|0)+(E>>>13)|0)+(Ze>>>26)|0,Ze&=67108863,k=Math.imul(Qe,Qt),E=(E=Math.imul(Qe,pt))+Math.imul(Ve,Qt)|0,I=Math.imul(Ve,pt),k=k+Math.imul(_t,qr)|0,E=(E=E+Math.imul(_t,Ht)|0)+Math.imul(xt,qr)|0,I=I+Math.imul(xt,Ht)|0,k=k+Math.imul(st,Er)|0,E=(E=E+Math.imul(st,qt)|0)+Math.imul(et,Er)|0,I=I+Math.imul(et,qt)|0,k=k+Math.imul(Pe,Ce)|0,E=(E=E+Math.imul(Pe,Le)|0)+Math.imul(Ae,Ce)|0,I=I+Math.imul(Ae,Le)|0,k=k+Math.imul(xe,jt)|0,E=(E=E+Math.imul(xe,rt)|0)+Math.imul(Ee,jt)|0,I=I+Math.imul(Ee,rt)|0,k=k+Math.imul(me,Dt)|0,E=(E=E+Math.imul(me,Et)|0)+Math.imul(ge,Dt)|0,I=I+Math.imul(ge,Et)|0;var wr=(J+(k=k+Math.imul(ve,Bt)|0)|0)+((8191&(E=(E=E+Math.imul(ve,or)|0)+Math.imul(we,Bt)|0))<<13)|0;J=((I=I+Math.imul(we,or)|0)+(E>>>13)|0)+(wr>>>26)|0,wr&=67108863,k=Math.imul(Qe,qr),E=(E=Math.imul(Qe,Ht))+Math.imul(Ve,qr)|0,I=Math.imul(Ve,Ht),k=k+Math.imul(_t,Er)|0,E=(E=E+Math.imul(_t,qt)|0)+Math.imul(xt,Er)|0,I=I+Math.imul(xt,qt)|0,k=k+Math.imul(st,Ce)|0,E=(E=E+Math.imul(st,Le)|0)+Math.imul(et,Ce)|0,I=I+Math.imul(et,Le)|0,k=k+Math.imul(Pe,jt)|0,E=(E=E+Math.imul(Pe,rt)|0)+Math.imul(Ae,jt)|0,I=I+Math.imul(Ae,rt)|0,k=k+Math.imul(xe,Dt)|0,E=(E=E+Math.imul(xe,Et)|0)+Math.imul(Ee,Dt)|0,I=I+Math.imul(Ee,Et)|0;var ir=(J+(k=k+Math.imul(me,Bt)|0)|0)+((8191&(E=(E=E+Math.imul(me,or)|0)+Math.imul(ge,Bt)|0))<<13)|0;J=((I=I+Math.imul(ge,or)|0)+(E>>>13)|0)+(ir>>>26)|0,ir&=67108863,k=Math.imul(Qe,Er),E=(E=Math.imul(Qe,qt))+Math.imul(Ve,Er)|0,I=Math.imul(Ve,qt),k=k+Math.imul(_t,Ce)|0,E=(E=E+Math.imul(_t,Le)|0)+Math.imul(xt,Ce)|0,I=I+Math.imul(xt,Le)|0,k=k+Math.imul(st,jt)|0,E=(E=E+Math.imul(st,rt)|0)+Math.imul(et,jt)|0,I=I+Math.imul(et,rt)|0,k=k+Math.imul(Pe,Dt)|0,E=(E=E+Math.imul(Pe,Et)|0)+Math.imul(Ae,Dt)|0,I=I+Math.imul(Ae,Et)|0;var lr=(J+(k=k+Math.imul(xe,Bt)|0)|0)+((8191&(E=(E=E+Math.imul(xe,or)|0)+Math.imul(Ee,Bt)|0))<<13)|0;J=((I=I+Math.imul(Ee,or)|0)+(E>>>13)|0)+(lr>>>26)|0,lr&=67108863,k=Math.imul(Qe,Ce),E=(E=Math.imul(Qe,Le))+Math.imul(Ve,Ce)|0,I=Math.imul(Ve,Le),k=k+Math.imul(_t,jt)|0,E=(E=E+Math.imul(_t,rt)|0)+Math.imul(xt,jt)|0,I=I+Math.imul(xt,rt)|0,k=k+Math.imul(st,Dt)|0,E=(E=E+Math.imul(st,Et)|0)+Math.imul(et,Dt)|0,I=I+Math.imul(et,Et)|0;var Lt=(J+(k=k+Math.imul(Pe,Bt)|0)|0)+((8191&(E=(E=E+Math.imul(Pe,or)|0)+Math.imul(Ae,Bt)|0))<<13)|0;J=((I=I+Math.imul(Ae,or)|0)+(E>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,k=Math.imul(Qe,jt),E=(E=Math.imul(Qe,rt))+Math.imul(Ve,jt)|0,I=Math.imul(Ve,rt),k=k+Math.imul(_t,Dt)|0,E=(E=E+Math.imul(_t,Et)|0)+Math.imul(xt,Dt)|0,I=I+Math.imul(xt,Et)|0;var Mr=(J+(k=k+Math.imul(st,Bt)|0)|0)+((8191&(E=(E=E+Math.imul(st,or)|0)+Math.imul(et,Bt)|0))<<13)|0;J=((I=I+Math.imul(et,or)|0)+(E>>>13)|0)+(Mr>>>26)|0,Mr&=67108863,k=Math.imul(Qe,Dt),E=(E=Math.imul(Qe,Et))+Math.imul(Ve,Dt)|0,I=Math.imul(Ve,Et);var Lr=(J+(k=k+Math.imul(_t,Bt)|0)|0)+((8191&(E=(E=E+Math.imul(_t,or)|0)+Math.imul(xt,Bt)|0))<<13)|0;J=((I=I+Math.imul(xt,or)|0)+(E>>>13)|0)+(Lr>>>26)|0,Lr&=67108863;var ar=(J+(k=Math.imul(Qe,Bt))|0)+((8191&(E=(E=Math.imul(Qe,or))+Math.imul(Ve,Bt)|0))<<13)|0;return J=((I=Math.imul(Ve,or))+(E>>>13)|0)+(ar>>>26)|0,ar&=67108863,Y[0]=an,Y[1]=Ur,Y[2]=hn,Y[3]=vn,Y[4]=Cs,Y[5]=he,Y[6]=Te,Y[7]=ze,Y[8]=qe,Y[9]=mt,Y[10]=Ye,Y[11]=Ze,Y[12]=wr,Y[13]=ir,Y[14]=lr,Y[15]=Lt,Y[16]=Mr,Y[17]=Lr,Y[18]=ar,J!==0&&(Y[19]=J,S.length++),S};function M(C,x,S){S.negative=x.negative^C.negative,S.length=C.length+x.length;for(var k=0,E=0,I=0;I<S.length-1;I++){var D=E;E=0;for(var F=67108863&k,Y=Math.min(I,x.length-1),J=Math.max(0,I-C.length+1);J<=Y;J++){var se=I-J,q=(0|C.words[se])*(0|x.words[J]),ee=67108863&q;F=67108863&(ee=ee+F|0),E+=(D=(D=D+(q/67108864|0)|0)+(ee>>>26)|0)>>>26,D&=67108863}S.words[I]=F,k=D,D=E}return k!==0?S.words[I]=k:S.length--,S._strip()}function j(C,x,S){return M(C,x,S)}Math.imul||(T=_),c.prototype.mulTo=function(C,x){var S=this.length+C.length;return this.length===10&&C.length===10?T(this,C,x):S<63?_(this,C,x):S<1024?M(this,C,x):j(this,C,x)},c.prototype.mul=function(C){var x=new c(null);return x.words=new Array(this.length+C.length),this.mulTo(C,x)},c.prototype.mulf=function(C){var x=new c(null);return x.words=new Array(this.length+C.length),j(this,C,x)},c.prototype.imul=function(C){return this.clone().mulTo(C,this)},c.prototype.imuln=function(C){var x=C<0;x&&(C=-C),o(typeof C=="number"),o(C<67108864);for(var S=0,k=0;k<this.length;k++){var E=(0|this.words[k])*C,I=(67108863&E)+(67108863&S);S>>=26,S+=E/67108864|0,S+=I>>>26,this.words[k]=67108863&I}return S!==0&&(this.words[k]=S,this.length++),x?this.ineg():this},c.prototype.muln=function(C){return this.clone().imuln(C)},c.prototype.sqr=function(){return this.mul(this)},c.prototype.isqr=function(){return this.imul(this.clone())},c.prototype.pow=function(C){var x=function(I){for(var D=new Array(I.bitLength()),F=0;F<D.length;F++){var Y=F/26|0,J=F%26;D[F]=I.words[Y]>>>J&1}return D}(C);if(x.length===0)return new c(1);for(var S=this,k=0;k<x.length&&x[k]===0;k++,S=S.sqr());if(++k<x.length)for(var E=S.sqr();k<x.length;k++,E=E.sqr())x[k]!==0&&(S=S.mul(E));return S},c.prototype.iushln=function(C){o(typeof C=="number"&&C>=0);var x,S=C%26,k=(C-S)/26,E=67108863>>>26-S<<26-S;if(S!==0){var I=0;for(x=0;x<this.length;x++){var D=this.words[x]&E,F=(0|this.words[x])-D<<S;this.words[x]=F|I,I=D>>>26-S}I&&(this.words[x]=I,this.length++)}if(k!==0){for(x=this.length-1;x>=0;x--)this.words[x+k]=this.words[x];for(x=0;x<k;x++)this.words[x]=0;this.length+=k}return this._strip()},c.prototype.ishln=function(C){return o(this.negative===0),this.iushln(C)},c.prototype.iushrn=function(C,x,S){var k;o(typeof C=="number"&&C>=0),k=x?(x-x%26)/26:0;var E=C%26,I=Math.min((C-E)/26,this.length),D=67108863^67108863>>>E<<E,F=S;if(k-=I,k=Math.max(0,k),F){for(var Y=0;Y<I;Y++)F.words[Y]=this.words[Y];F.length=I}if(I!==0)if(this.length>I)for(this.length-=I,Y=0;Y<this.length;Y++)this.words[Y]=this.words[Y+I];else this.words[0]=0,this.length=1;var J=0;for(Y=this.length-1;Y>=0&&(J!==0||Y>=k);Y--){var se=0|this.words[Y];this.words[Y]=J<<26-E|se>>>E,J=se&D}return F&&J!==0&&(F.words[F.length++]=J),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},c.prototype.ishrn=function(C,x,S){return o(this.negative===0),this.iushrn(C,x,S)},c.prototype.shln=function(C){return this.clone().ishln(C)},c.prototype.ushln=function(C){return this.clone().iushln(C)},c.prototype.shrn=function(C){return this.clone().ishrn(C)},c.prototype.ushrn=function(C){return this.clone().iushrn(C)},c.prototype.testn=function(C){o(typeof C=="number"&&C>=0);var x=C%26,S=(C-x)/26,k=1<<x;return!(this.length<=S)&&!!(this.words[S]&k)},c.prototype.imaskn=function(C){o(typeof C=="number"&&C>=0);var x=C%26,S=(C-x)/26;if(o(this.negative===0,"imaskn works only with positive numbers"),this.length<=S)return this;if(x!==0&&S++,this.length=Math.min(S,this.length),x!==0){var k=67108863^67108863>>>x<<x;this.words[this.length-1]&=k}return this._strip()},c.prototype.maskn=function(C){return this.clone().imaskn(C)},c.prototype.iaddn=function(C){return o(typeof C=="number"),o(C<67108864),C<0?this.isubn(-C):this.negative!==0?this.length===1&&(0|this.words[0])<=C?(this.words[0]=C-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(C),this.negative=1,this):this._iaddn(C)},c.prototype._iaddn=function(C){this.words[0]+=C;for(var x=0;x<this.length&&this.words[x]>=67108864;x++)this.words[x]-=67108864,x===this.length-1?this.words[x+1]=1:this.words[x+1]++;return this.length=Math.max(this.length,x+1),this},c.prototype.isubn=function(C){if(o(typeof C=="number"),o(C<67108864),C<0)return this.iaddn(-C);if(this.negative!==0)return this.negative=0,this.iaddn(C),this.negative=1,this;if(this.words[0]-=C,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var x=0;x<this.length&&this.words[x]<0;x++)this.words[x]+=67108864,this.words[x+1]-=1;return this._strip()},c.prototype.addn=function(C){return this.clone().iaddn(C)},c.prototype.subn=function(C){return this.clone().isubn(C)},c.prototype.iabs=function(){return this.negative=0,this},c.prototype.abs=function(){return this.clone().iabs()},c.prototype._ishlnsubmul=function(C,x,S){var k,E,I=C.length+S;this._expand(I);var D=0;for(k=0;k<C.length;k++){E=(0|this.words[k+S])+D;var F=(0|C.words[k])*x;D=((E-=67108863&F)>>26)-(F/67108864|0),this.words[k+S]=67108863&E}for(;k<this.length-S;k++)D=(E=(0|this.words[k+S])+D)>>26,this.words[k+S]=67108863&E;if(D===0)return this._strip();for(o(D===-1),D=0,k=0;k<this.length;k++)D=(E=-(0|this.words[k])+D)>>26,this.words[k]=67108863&E;return this.negative=1,this._strip()},c.prototype._wordDiv=function(C,x){var S=(this.length,C.length),k=this.clone(),E=C,I=0|E.words[E.length-1];(S=26-this._countBits(I))!==0&&(E=E.ushln(S),k.iushln(S),I=0|E.words[E.length-1]);var D,F=k.length-E.length;if(x!=="mod"){(D=new c(null)).length=F+1,D.words=new Array(D.length);for(var Y=0;Y<D.length;Y++)D.words[Y]=0}var J=k.clone()._ishlnsubmul(E,1,F);J.negative===0&&(k=J,D&&(D.words[F]=1));for(var se=F-1;se>=0;se--){var q=67108864*(0|k.words[E.length+se])+(0|k.words[E.length+se-1]);for(q=Math.min(q/I|0,67108863),k._ishlnsubmul(E,q,se);k.negative!==0;)q--,k.negative=0,k._ishlnsubmul(E,1,se),k.isZero()||(k.negative^=1);D&&(D.words[se]=q)}return D&&D._strip(),k._strip(),x!=="div"&&S!==0&&k.iushrn(S),{div:D||null,mod:k}},c.prototype.divmod=function(C,x,S){return o(!C.isZero()),this.isZero()?{div:new c(0),mod:new c(0)}:this.negative!==0&&C.negative===0?(I=this.neg().divmod(C,x),x!=="mod"&&(k=I.div.neg()),x!=="div"&&(E=I.mod.neg(),S&&E.negative!==0&&E.iadd(C)),{div:k,mod:E}):this.negative===0&&C.negative!==0?(I=this.divmod(C.neg(),x),x!=="mod"&&(k=I.div.neg()),{div:k,mod:I.mod}):this.negative&C.negative?(I=this.neg().divmod(C.neg(),x),x!=="div"&&(E=I.mod.neg(),S&&E.negative!==0&&E.isub(C)),{div:I.div,mod:E}):C.length>this.length||this.cmp(C)<0?{div:new c(0),mod:this}:C.length===1?x==="div"?{div:this.divn(C.words[0]),mod:null}:x==="mod"?{div:null,mod:new c(this.modrn(C.words[0]))}:{div:this.divn(C.words[0]),mod:new c(this.modrn(C.words[0]))}:this._wordDiv(C,x);var k,E,I},c.prototype.div=function(C){return this.divmod(C,"div",!1).div},c.prototype.mod=function(C){return this.divmod(C,"mod",!1).mod},c.prototype.umod=function(C){return this.divmod(C,"mod",!0).mod},c.prototype.divRound=function(C){var x=this.divmod(C);if(x.mod.isZero())return x.div;var S=x.div.negative!==0?x.mod.isub(C):x.mod,k=C.ushrn(1),E=C.andln(1),I=S.cmp(k);return I<0||E===1&&I===0?x.div:x.div.negative!==0?x.div.isubn(1):x.div.iaddn(1)},c.prototype.modrn=function(C){var x=C<0;x&&(C=-C),o(C<=67108863);for(var S=(1<<26)%C,k=0,E=this.length-1;E>=0;E--)k=(S*k+(0|this.words[E]))%C;return x?-k:k},c.prototype.modn=function(C){return this.modrn(C)},c.prototype.idivn=function(C){var x=C<0;x&&(C=-C),o(C<=67108863);for(var S=0,k=this.length-1;k>=0;k--){var E=(0|this.words[k])+67108864*S;this.words[k]=E/C|0,S=E%C}return this._strip(),x?this.ineg():this},c.prototype.divn=function(C){return this.clone().idivn(C)},c.prototype.egcd=function(C){o(C.negative===0),o(!C.isZero());var x=this,S=C.clone();x=x.negative!==0?x.umod(C):x.clone();for(var k=new c(1),E=new c(0),I=new c(0),D=new c(1),F=0;x.isEven()&&S.isEven();)x.iushrn(1),S.iushrn(1),++F;for(var Y=S.clone(),J=x.clone();!x.isZero();){for(var se=0,q=1;!(x.words[0]&q)&&se<26;++se,q<<=1);if(se>0)for(x.iushrn(se);se-- >0;)(k.isOdd()||E.isOdd())&&(k.iadd(Y),E.isub(J)),k.iushrn(1),E.iushrn(1);for(var ee=0,L=1;!(S.words[0]&L)&&ee<26;++ee,L<<=1);if(ee>0)for(S.iushrn(ee);ee-- >0;)(I.isOdd()||D.isOdd())&&(I.iadd(Y),D.isub(J)),I.iushrn(1),D.iushrn(1);x.cmp(S)>=0?(x.isub(S),k.isub(I),E.isub(D)):(S.isub(x),I.isub(k),D.isub(E))}return{a:I,b:D,gcd:S.iushln(F)}},c.prototype._invmp=function(C){o(C.negative===0),o(!C.isZero());var x=this,S=C.clone();x=x.negative!==0?x.umod(C):x.clone();for(var k,E=new c(1),I=new c(0),D=S.clone();x.cmpn(1)>0&&S.cmpn(1)>0;){for(var F=0,Y=1;!(x.words[0]&Y)&&F<26;++F,Y<<=1);if(F>0)for(x.iushrn(F);F-- >0;)E.isOdd()&&E.iadd(D),E.iushrn(1);for(var J=0,se=1;!(S.words[0]&se)&&J<26;++J,se<<=1);if(J>0)for(S.iushrn(J);J-- >0;)I.isOdd()&&I.iadd(D),I.iushrn(1);x.cmp(S)>=0?(x.isub(S),E.isub(I)):(S.isub(x),I.isub(E))}return(k=x.cmpn(1)===0?E:I).cmpn(0)<0&&k.iadd(C),k},c.prototype.gcd=function(C){if(this.isZero())return C.abs();if(C.isZero())return this.abs();var x=this.clone(),S=C.clone();x.negative=0,S.negative=0;for(var k=0;x.isEven()&&S.isEven();k++)x.iushrn(1),S.iushrn(1);for(;;){for(;x.isEven();)x.iushrn(1);for(;S.isEven();)S.iushrn(1);var E=x.cmp(S);if(E<0){var I=x;x=S,S=I}else if(E===0||S.cmpn(1)===0)break;x.isub(S)}return S.iushln(k)},c.prototype.invm=function(C){return this.egcd(C).a.umod(C)},c.prototype.isEven=function(){return(1&this.words[0])==0},c.prototype.isOdd=function(){return(1&this.words[0])==1},c.prototype.andln=function(C){return this.words[0]&C},c.prototype.bincn=function(C){o(typeof C=="number");var x=C%26,S=(C-x)/26,k=1<<x;if(this.length<=S)return this._expand(S+1),this.words[S]|=k,this;for(var E=k,I=S;E!==0&&I<this.length;I++){var D=0|this.words[I];E=(D+=E)>>>26,D&=67108863,this.words[I]=D}return E!==0&&(this.words[I]=E,this.length++),this},c.prototype.isZero=function(){return this.length===1&&this.words[0]===0},c.prototype.cmpn=function(C){var x,S=C<0;if(this.negative!==0&&!S)return-1;if(this.negative===0&&S)return 1;if(this._strip(),this.length>1)x=1;else{S&&(C=-C),o(C<=67108863,"Number is too big");var k=0|this.words[0];x=k===C?0:k<C?-1:1}return this.negative!==0?0|-x:x},c.prototype.cmp=function(C){if(this.negative!==0&&C.negative===0)return-1;if(this.negative===0&&C.negative!==0)return 1;var x=this.ucmp(C);return this.negative!==0?0|-x:x},c.prototype.ucmp=function(C){if(this.length>C.length)return 1;if(this.length<C.length)return-1;for(var x=0,S=this.length-1;S>=0;S--){var k=0|this.words[S],E=0|C.words[S];if(k!==E){k<E?x=-1:k>E&&(x=1);break}}return x},c.prototype.gtn=function(C){return this.cmpn(C)===1},c.prototype.gt=function(C){return this.cmp(C)===1},c.prototype.gten=function(C){return this.cmpn(C)>=0},c.prototype.gte=function(C){return this.cmp(C)>=0},c.prototype.ltn=function(C){return this.cmpn(C)===-1},c.prototype.lt=function(C){return this.cmp(C)===-1},c.prototype.lten=function(C){return this.cmpn(C)<=0},c.prototype.lte=function(C){return this.cmp(C)<=0},c.prototype.eqn=function(C){return this.cmpn(C)===0},c.prototype.eq=function(C){return this.cmp(C)===0},c.red=function(C){return new O(C)},c.prototype.toRed=function(C){return o(!this.red,"Already a number in reduction context"),o(this.negative===0,"red works only with positives"),C.convertTo(this)._forceRed(C)},c.prototype.fromRed=function(){return o(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},c.prototype._forceRed=function(C){return this.red=C,this},c.prototype.forceRed=function(C){return o(!this.red,"Already a number in reduction context"),this._forceRed(C)},c.prototype.redAdd=function(C){return o(this.red,"redAdd works only with red numbers"),this.red.add(this,C)},c.prototype.redIAdd=function(C){return o(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,C)},c.prototype.redSub=function(C){return o(this.red,"redSub works only with red numbers"),this.red.sub(this,C)},c.prototype.redISub=function(C){return o(this.red,"redISub works only with red numbers"),this.red.isub(this,C)},c.prototype.redShl=function(C){return o(this.red,"redShl works only with red numbers"),this.red.shl(this,C)},c.prototype.redMul=function(C){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,C),this.red.mul(this,C)},c.prototype.redIMul=function(C){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,C),this.red.imul(this,C)},c.prototype.redSqr=function(){return o(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},c.prototype.redISqr=function(){return o(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},c.prototype.redSqrt=function(){return o(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},c.prototype.redInvm=function(){return o(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},c.prototype.redNeg=function(){return o(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},c.prototype.redPow=function(C){return o(this.red&&!C.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,C)};var A={k256:null,p224:null,p192:null,p25519:null};function B(C,x){this.name=C,this.p=new c(x,16),this.n=this.p.bitLength(),this.k=new c(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function H(){B.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function U(){B.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function X(){B.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function V(){B.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function O(C){if(typeof C=="string"){var x=c._prime(C);this.m=x.p,this.prime=x}else o(C.gtn(1),"modulus must be greater than 1"),this.m=C,this.prime=null}function N(C){O.call(this,C),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new c(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)}B.prototype._tmp=function(){var C=new c(null);return C.words=new Array(Math.ceil(this.n/13)),C},B.prototype.ireduce=function(C){var x,S=C;do this.split(S,this.tmp),x=(S=(S=this.imulK(S)).iadd(this.tmp)).bitLength();while(x>this.n);var k=x<this.n?-1:S.ucmp(this.p);return k===0?(S.words[0]=0,S.length=1):k>0?S.isub(this.p):S.strip!==void 0?S.strip():S._strip(),S},B.prototype.split=function(C,x){C.iushrn(this.n,0,x)},B.prototype.imulK=function(C){return C.imul(this.k)},l(H,B),H.prototype.split=function(C,x){for(var S=Math.min(C.length,9),k=0;k<S;k++)x.words[k]=C.words[k];if(x.length=S,C.length<=9)return C.words[0]=0,void(C.length=1);var E=C.words[9];for(x.words[x.length++]=4194303&E,k=10;k<C.length;k++){var I=0|C.words[k];C.words[k-10]=(4194303&I)<<4|E>>>22,E=I}E>>>=22,C.words[k-10]=E,E===0&&C.length>10?C.length-=10:C.length-=9},H.prototype.imulK=function(C){C.words[C.length]=0,C.words[C.length+1]=0,C.length+=2;for(var x=0,S=0;S<C.length;S++){var k=0|C.words[S];x+=977*k,C.words[S]=67108863&x,x=64*k+(x/67108864|0)}return C.words[C.length-1]===0&&(C.length--,C.words[C.length-1]===0&&C.length--),C},l(U,B),l(X,B),l(V,B),V.prototype.imulK=function(C){for(var x=0,S=0;S<C.length;S++){var k=19*(0|C.words[S])+x,E=67108863&k;k>>>=26,C.words[S]=E,x=k}return x!==0&&(C.words[C.length++]=x),C},c._prime=function(C){if(A[C])return A[C];var x;if(C==="k256")x=new H;else if(C==="p224")x=new U;else if(C==="p192")x=new X;else{if(C!=="p25519")throw new Error("Unknown prime "+C);x=new V}return A[C]=x,x},O.prototype._verify1=function(C){o(C.negative===0,"red works only with positives"),o(C.red,"red works only with red numbers")},O.prototype._verify2=function(C,x){o((C.negative|x.negative)==0,"red works only with positives"),o(C.red&&C.red===x.red,"red works only with red numbers")},O.prototype.imod=function(C){return this.prime?this.prime.ireduce(C)._forceRed(this):(p(C,C.umod(this.m)._forceRed(this)),C)},O.prototype.neg=function(C){return C.isZero()?C.clone():this.m.sub(C)._forceRed(this)},O.prototype.add=function(C,x){this._verify2(C,x);var S=C.add(x);return S.cmp(this.m)>=0&&S.isub(this.m),S._forceRed(this)},O.prototype.iadd=function(C,x){this._verify2(C,x);var S=C.iadd(x);return S.cmp(this.m)>=0&&S.isub(this.m),S},O.prototype.sub=function(C,x){this._verify2(C,x);var S=C.sub(x);return S.cmpn(0)<0&&S.iadd(this.m),S._forceRed(this)},O.prototype.isub=function(C,x){this._verify2(C,x);var S=C.isub(x);return S.cmpn(0)<0&&S.iadd(this.m),S},O.prototype.shl=function(C,x){return this._verify1(C),this.imod(C.ushln(x))},O.prototype.imul=function(C,x){return this._verify2(C,x),this.imod(C.imul(x))},O.prototype.mul=function(C,x){return this._verify2(C,x),this.imod(C.mul(x))},O.prototype.isqr=function(C){return this.imul(C,C.clone())},O.prototype.sqr=function(C){return this.mul(C,C)},O.prototype.sqrt=function(C){if(C.isZero())return C.clone();var x=this.m.andln(3);if(o(x%2==1),x===3){var S=this.m.add(new c(1)).iushrn(2);return this.pow(C,S)}for(var k=this.m.subn(1),E=0;!k.isZero()&&k.andln(1)===0;)E++,k.iushrn(1);o(!k.isZero());var I=new c(1).toRed(this),D=I.redNeg(),F=this.m.subn(1).iushrn(1),Y=this.m.bitLength();for(Y=new c(2*Y*Y).toRed(this);this.pow(Y,F).cmp(D)!==0;)Y.redIAdd(D);for(var J=this.pow(Y,k),se=this.pow(C,k.addn(1).iushrn(1)),q=this.pow(C,k),ee=E;q.cmp(I)!==0;){for(var L=q,P=0;L.cmp(I)!==0;P++)L=L.redSqr();o(P<ee);var G=this.pow(J,new c(1).iushln(ee-P-1));se=se.redMul(G),J=G.redSqr(),q=q.redMul(J),ee=P}return se},O.prototype.invm=function(C){var x=C._invmp(this.m);return x.negative!==0?(x.negative=0,this.imod(x).redNeg()):this.imod(x)},O.prototype.pow=function(C,x){if(x.isZero())return new c(1).toRed(this);if(x.cmpn(1)===0)return C.clone();var S=new Array(16);S[0]=new c(1).toRed(this),S[1]=C;for(var k=2;k<S.length;k++)S[k]=this.mul(S[k-1],C);var E=S[0],I=0,D=0,F=x.bitLength()%26;for(F===0&&(F=26),k=x.length-1;k>=0;k--){for(var Y=x.words[k],J=F-1;J>=0;J--){var se=Y>>J&1;E!==S[0]&&(E=this.sqr(E)),se!==0||I!==0?(I<<=1,I|=se,(++D===4||k===0&&J===0)&&(E=this.mul(E,S[I]),D=0,I=0)):D=0}F=26}return E},O.prototype.convertTo=function(C){var x=C.umod(this.m);return x===C?x.clone():x},O.prototype.convertFrom=function(C){var x=C.clone();return x.red=null,x},c.mont=function(C){return new N(C)},l(N,O),N.prototype.convertTo=function(C){return this.imod(C.ushln(this.shift))},N.prototype.convertFrom=function(C){var x=this.imod(C.mul(this.rinv));return x.red=null,x},N.prototype.imul=function(C,x){if(C.isZero()||x.isZero())return C.words[0]=0,C.length=1,C;var S=C.imul(x),k=S.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),E=S.isub(k).iushrn(this.shift),I=E;return E.cmp(this.m)>=0?I=E.isub(this.m):E.cmpn(0)<0&&(I=E.iadd(this.m)),I._forceRed(this)},N.prototype.mul=function(C,x){if(C.isZero()||x.isZero())return new c(0)._forceRed(this);var S=C.mul(x),k=S.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),E=S.isub(k).iushrn(this.shift),I=E;return E.cmp(this.m)>=0?I=E.isub(this.m):E.cmpn(0)<0&&(I=E.iadd(this.m)),I._forceRed(this)},N.prototype.invm=function(C){return this.imod(C._invmp(this.m).mul(this.r2))._forceRed(this)}})(r===void 0||r)},{buffer:188}],187:[function(e,r,s){var i;function a(l){this.rand=l}if(r.exports=function(l){return i||(i=new a(null)),i.generate(l)},r.exports.Rand=a,a.prototype.generate=function(l){return this._rand(l)},a.prototype._rand=function(l){if(this.rand.getBytes)return this.rand.getBytes(l);for(var c=new Uint8Array(l),u=0;u<c.length;u++)c[u]=this.rand.getByte();return c},typeof self=="object")self.crypto&&self.crypto.getRandomValues?a.prototype._rand=function(l){var c=new Uint8Array(l);return self.crypto.getRandomValues(c),c}:self.msCrypto&&self.msCrypto.getRandomValues?a.prototype._rand=function(l){var c=new Uint8Array(l);return self.msCrypto.getRandomValues(c),c}:typeof window=="object"&&(a.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var o=e("crypto");if(typeof o.randomBytes!="function")throw new Error("Not supported");a.prototype._rand=function(l){return o.randomBytes(l)}}catch{}},{crypto:188}],188:[function(e,r,s){},{}],189:[function(e,r,s){var i=e("safe-buffer").Buffer;function a(d){i.isBuffer(d)||(d=i.from(d));for(var f=d.length/4|0,p=new Array(f),g=0;g<f;g++)p[g]=d.readUInt32BE(4*g);return p}function o(d){for(;0<d.length;d++)d[0]=0}function l(d,f,p,g,m){for(var b,w,_,T,M=p[0],j=p[1],A=p[2],B=p[3],H=d[0]^f[0],U=d[1]^f[1],X=d[2]^f[2],V=d[3]^f[3],O=4,N=1;N<m;N++)b=M[H>>>24]^j[U>>>16&255]^A[X>>>8&255]^B[255&V]^f[O++],w=M[U>>>24]^j[X>>>16&255]^A[V>>>8&255]^B[255&H]^f[O++],_=M[X>>>24]^j[V>>>16&255]^A[H>>>8&255]^B[255&U]^f[O++],T=M[V>>>24]^j[H>>>16&255]^A[U>>>8&255]^B[255&X]^f[O++],H=b,U=w,X=_,V=T;return b=(g[H>>>24]<<24|g[U>>>16&255]<<16|g[X>>>8&255]<<8|g[255&V])^f[O++],w=(g[U>>>24]<<24|g[X>>>16&255]<<16|g[V>>>8&255]<<8|g[255&H])^f[O++],_=(g[X>>>24]<<24|g[V>>>16&255]<<16|g[H>>>8&255]<<8|g[255&U])^f[O++],T=(g[V>>>24]<<24|g[H>>>16&255]<<16|g[U>>>8&255]<<8|g[255&X])^f[O++],[b>>>=0,w>>>=0,_>>>=0,T>>>=0]}var c=[0,1,2,4,8,16,32,64,128,27,54],u=function(){for(var d=new Array(256),f=0;f<256;f++)d[f]=f<128?f<<1:f<<1^283;for(var p=[],g=[],m=[[],[],[],[]],b=[[],[],[],[]],w=0,_=0,T=0;T<256;++T){var M=_^_<<1^_<<2^_<<3^_<<4;M=M>>>8^255&M^99,p[w]=M,g[M]=w;var j=d[w],A=d[j],B=d[A],H=257*d[M]^16843008*M;m[0][w]=H<<24|H>>>8,m[1][w]=H<<16|H>>>16,m[2][w]=H<<8|H>>>24,m[3][w]=H,H=16843009*B^65537*A^257*j^16843008*w,b[0][M]=H<<24|H>>>8,b[1][M]=H<<16|H>>>16,b[2][M]=H<<8|H>>>24,b[3][M]=H,w===0?w=_=1:(w=j^d[d[d[B^j]]],_^=d[d[_]])}return{SBOX:p,INV_SBOX:g,SUB_MIX:m,INV_SUB_MIX:b}}();function h(d){this._key=a(d),this._reset()}h.blockSize=16,h.keySize=32,h.prototype.blockSize=h.blockSize,h.prototype.keySize=h.keySize,h.prototype._reset=function(){for(var d=this._key,f=d.length,p=f+6,g=4*(p+1),m=[],b=0;b<f;b++)m[b]=d[b];for(b=f;b<g;b++){var w=m[b-1];b%f==0?(w=w<<8|w>>>24,w=u.SBOX[w>>>24]<<24|u.SBOX[w>>>16&255]<<16|u.SBOX[w>>>8&255]<<8|u.SBOX[255&w],w^=c[b/f|0]<<24):f>6&&b%f==4&&(w=u.SBOX[w>>>24]<<24|u.SBOX[w>>>16&255]<<16|u.SBOX[w>>>8&255]<<8|u.SBOX[255&w]),m[b]=m[b-f]^w}for(var _=[],T=0;T<g;T++){var M=g-T,j=m[M-(T%4?0:4)];_[T]=T<4||M<=4?j:u.INV_SUB_MIX[0][u.SBOX[j>>>24]]^u.INV_SUB_MIX[1][u.SBOX[j>>>16&255]]^u.INV_SUB_MIX[2][u.SBOX[j>>>8&255]]^u.INV_SUB_MIX[3][u.SBOX[255&j]]}this._nRounds=p,this._keySchedule=m,this._invKeySchedule=_},h.prototype.encryptBlockRaw=function(d){return l(d=a(d),this._keySchedule,u.SUB_MIX,u.SBOX,this._nRounds)},h.prototype.encryptBlock=function(d){var f=this.encryptBlockRaw(d),p=i.allocUnsafe(16);return p.writeUInt32BE(f[0],0),p.writeUInt32BE(f[1],4),p.writeUInt32BE(f[2],8),p.writeUInt32BE(f[3],12),p},h.prototype.decryptBlock=function(d){var f=(d=a(d))[1];d[1]=d[3],d[3]=f;var p=l(d,this._invKeySchedule,u.INV_SUB_MIX,u.INV_SBOX,this._nRounds),g=i.allocUnsafe(16);return g.writeUInt32BE(p[0],0),g.writeUInt32BE(p[3],4),g.writeUInt32BE(p[2],8),g.writeUInt32BE(p[1],12),g},h.prototype.scrub=function(){o(this._keySchedule),o(this._invKeySchedule),o(this._key)},r.exports.AES=h},{"safe-buffer":494}],190:[function(e,r,s){var i=e("./aes"),a=e("safe-buffer").Buffer,o=e("cipher-base"),l=e("inherits"),c=e("./ghash"),u=e("buffer-xor"),h=e("./incr32");function d(f,p,g,m){o.call(this);var b=a.alloc(4,0);this._cipher=new i.AES(p);var w=this._cipher.encryptBlock(b);this._ghash=new c(w),g=function(_,T,M){if(T.length===12)return _._finID=a.concat([T,a.from([0,0,0,1])]),a.concat([T,a.from([0,0,0,2])]);var j=new c(M),A=T.length,B=A%16;j.update(T),B&&(B=16-B,j.update(a.alloc(B,0))),j.update(a.alloc(8,0));var H=8*A,U=a.alloc(8);U.writeUIntBE(H,0,8),j.update(U),_._finID=j.state;var X=a.from(_._finID);return h(X),X}(this,g,w),this._prev=a.from(g),this._cache=a.allocUnsafe(0),this._secCache=a.allocUnsafe(0),this._decrypt=m,this._alen=0,this._len=0,this._mode=f,this._authTag=null,this._called=!1}l(d,o),d.prototype._update=function(f){if(!this._called&&this._alen){var p=16-this._alen%16;p<16&&(p=a.alloc(p,0),this._ghash.update(p))}this._called=!0;var g=this._mode.encrypt(this,f);return this._decrypt?this._ghash.update(f):this._ghash.update(g),this._len+=f.length,g},d.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var f=u(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(p,g){var m=0;p.length!==g.length&&m++;for(var b=Math.min(p.length,g.length),w=0;w<b;++w)m+=p[w]^g[w];return m}(f,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=f,this._cipher.scrub()},d.prototype.getAuthTag=function(){if(this._decrypt||!a.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},d.prototype.setAuthTag=function(f){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=f},d.prototype.setAAD=function(f){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(f),this._alen+=f.length},r.exports=d},{"./aes":189,"./ghash":194,"./incr32":195,"buffer-xor":219,"cipher-base":221,inherits:440,"safe-buffer":494}],191:[function(e,r,s){var i=e("./encrypter"),a=e("./decrypter"),o=e("./modes/list.json");s.createCipher=s.Cipher=i.createCipher,s.createCipheriv=s.Cipheriv=i.createCipheriv,s.createDecipher=s.Decipher=a.createDecipher,s.createDecipheriv=s.Decipheriv=a.createDecipheriv,s.listCiphers=s.getCiphers=function(){return Object.keys(o)}},{"./decrypter":192,"./encrypter":193,"./modes/list.json":203}],192:[function(e,r,s){var i=e("./authCipher"),a=e("safe-buffer").Buffer,o=e("./modes"),l=e("./streamCipher"),c=e("cipher-base"),u=e("./aes"),h=e("evp_bytestokey");function d(g,m,b){c.call(this),this._cache=new f,this._last=void 0,this._cipher=new u.AES(m),this._prev=a.from(b),this._mode=g,this._autopadding=!0}function f(){this.cache=a.allocUnsafe(0)}function p(g,m,b){var w=o[g.toLowerCase()];if(!w)throw new TypeError("invalid suite type");if(typeof b=="string"&&(b=a.from(b)),w.mode!=="GCM"&&b.length!==w.iv)throw new TypeError("invalid iv length "+b.length);if(typeof m=="string"&&(m=a.from(m)),m.length!==w.key/8)throw new TypeError("invalid key length "+m.length);return w.type==="stream"?new l(w.module,m,b,!0):w.type==="auth"?new i(w.module,m,b,!0):new d(w.module,m,b)}e("inherits")(d,c),d.prototype._update=function(g){var m,b;this._cache.add(g);for(var w=[];m=this._cache.get(this._autopadding);)b=this._mode.decrypt(this,m),w.push(b);return a.concat(w)},d.prototype._final=function(){var g=this._cache.flush();if(this._autopadding)return function(m){var b=m[15];if(b<1||b>16)throw new Error("unable to decrypt data");for(var w=-1;++w<b;)if(m[w+(16-b)]!==b)throw new Error("unable to decrypt data");if(b!==16)return m.slice(0,16-b)}(this._mode.decrypt(this,g));if(g)throw new Error("data not multiple of block length")},d.prototype.setAutoPadding=function(g){return this._autopadding=!!g,this},f.prototype.add=function(g){this.cache=a.concat([this.cache,g])},f.prototype.get=function(g){var m;if(g){if(this.cache.length>16)return m=this.cache.slice(0,16),this.cache=this.cache.slice(16),m}else if(this.cache.length>=16)return m=this.cache.slice(0,16),this.cache=this.cache.slice(16),m;return null},f.prototype.flush=function(){if(this.cache.length)return this.cache},s.createDecipher=function(g,m){var b=o[g.toLowerCase()];if(!b)throw new TypeError("invalid suite type");var w=h(m,!1,b.key,b.iv);return p(g,w.key,w.iv)},s.createDecipheriv=p},{"./aes":189,"./authCipher":190,"./modes":202,"./streamCipher":205,"cipher-base":221,evp_bytestokey:423,inherits:440,"safe-buffer":494}],193:[function(e,r,s){var i=e("./modes"),a=e("./authCipher"),o=e("safe-buffer").Buffer,l=e("./streamCipher"),c=e("cipher-base"),u=e("./aes"),h=e("evp_bytestokey");function d(m,b,w){c.call(this),this._cache=new p,this._cipher=new u.AES(b),this._prev=o.from(w),this._mode=m,this._autopadding=!0}e("inherits")(d,c),d.prototype._update=function(m){var b,w;this._cache.add(m);for(var _=[];b=this._cache.get();)w=this._mode.encrypt(this,b),_.push(w);return o.concat(_)};var f=o.alloc(16,16);function p(){this.cache=o.allocUnsafe(0)}function g(m,b,w){var _=i[m.toLowerCase()];if(!_)throw new TypeError("invalid suite type");if(typeof b=="string"&&(b=o.from(b)),b.length!==_.key/8)throw new TypeError("invalid key length "+b.length);if(typeof w=="string"&&(w=o.from(w)),_.mode!=="GCM"&&w.length!==_.iv)throw new TypeError("invalid iv length "+w.length);return _.type==="stream"?new l(_.module,b,w):_.type==="auth"?new a(_.module,b,w):new d(_.module,b,w)}d.prototype._final=function(){var m=this._cache.flush();if(this._autopadding)return m=this._mode.encrypt(this,m),this._cipher.scrub(),m;if(!m.equals(f))throw this._cipher.scrub(),new Error("data not multiple of block length")},d.prototype.setAutoPadding=function(m){return this._autopadding=!!m,this},p.prototype.add=function(m){this.cache=o.concat([this.cache,m])},p.prototype.get=function(){if(this.cache.length>15){var m=this.cache.slice(0,16);return this.cache=this.cache.slice(16),m}return null},p.prototype.flush=function(){for(var m=16-this.cache.length,b=o.allocUnsafe(m),w=-1;++w<m;)b.writeUInt8(m,w);return o.concat([this.cache,b])},s.createCipheriv=g,s.createCipher=function(m,b){var w=i[m.toLowerCase()];if(!w)throw new TypeError("invalid suite type");var _=h(b,!1,w.key,w.iv);return g(m,_.key,_.iv)}},{"./aes":189,"./authCipher":190,"./modes":202,"./streamCipher":205,"cipher-base":221,evp_bytestokey:423,inherits:440,"safe-buffer":494}],194:[function(e,r,s){var i=e("safe-buffer").Buffer,a=i.alloc(16,0);function o(c){var u=i.allocUnsafe(16);return u.writeUInt32BE(c[0]>>>0,0),u.writeUInt32BE(c[1]>>>0,4),u.writeUInt32BE(c[2]>>>0,8),u.writeUInt32BE(c[3]>>>0,12),u}function l(c){this.h=c,this.state=i.alloc(16,0),this.cache=i.allocUnsafe(0)}l.prototype.ghash=function(c){for(var u=-1;++u<c.length;)this.state[u]^=c[u];this._multiply()},l.prototype._multiply=function(){for(var c,u,h,d=[(c=this.h).readUInt32BE(0),c.readUInt32BE(4),c.readUInt32BE(8),c.readUInt32BE(12)],f=[0,0,0,0],p=-1;++p<128;){for(this.state[~~(p/8)]&1<<7-p%8&&(f[0]^=d[0],f[1]^=d[1],f[2]^=d[2],f[3]^=d[3]),h=(1&d[3])!=0,u=3;u>0;u--)d[u]=d[u]>>>1|(1&d[u-1])<<31;d[0]=d[0]>>>1,h&&(d[0]=d[0]^225<<24)}this.state=o(f)},l.prototype.update=function(c){var u;for(this.cache=i.concat([this.cache,c]);this.cache.length>=16;)u=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(u)},l.prototype.final=function(c,u){return this.cache.length&&this.ghash(i.concat([this.cache,a],16)),this.ghash(o([0,c,0,u])),this.state},r.exports=l},{"safe-buffer":494}],195:[function(e,r,s){r.exports=function(i){for(var a,o=i.length;o--;){if((a=i.readUInt8(o))!==255){a++,i.writeUInt8(a,o);break}i.writeUInt8(0,o)}}},{}],196:[function(e,r,s){var i=e("buffer-xor");s.encrypt=function(a,o){var l=i(o,a._prev);return a._prev=a._cipher.encryptBlock(l),a._prev},s.decrypt=function(a,o){var l=a._prev;a._prev=o;var c=a._cipher.decryptBlock(o);return i(c,l)}},{"buffer-xor":219}],197:[function(e,r,s){var i=e("safe-buffer").Buffer,a=e("buffer-xor");function o(l,c,u){var h=c.length,d=a(c,l._cache);return l._cache=l._cache.slice(h),l._prev=i.concat([l._prev,u?c:d]),d}s.encrypt=function(l,c,u){for(var h,d=i.allocUnsafe(0);c.length;){if(l._cache.length===0&&(l._cache=l._cipher.encryptBlock(l._prev),l._prev=i.allocUnsafe(0)),!(l._cache.length<=c.length)){d=i.concat([d,o(l,c,u)]);break}h=l._cache.length,d=i.concat([d,o(l,c.slice(0,h),u)]),c=c.slice(h)}return d}},{"buffer-xor":219,"safe-buffer":494}],198:[function(e,r,s){var i=e("safe-buffer").Buffer;function a(l,c,u){for(var h,d,f=-1,p=0;++f<8;)h=c&1<<7-f?128:0,p+=(128&(d=l._cipher.encryptBlock(l._prev)[0]^h))>>f%8,l._prev=o(l._prev,u?h:d);return p}function o(l,c){var u=l.length,h=-1,d=i.allocUnsafe(l.length);for(l=i.concat([l,i.from([c])]);++h<u;)d[h]=l[h]<<1|l[h+1]>>7;return d}s.encrypt=function(l,c,u){for(var h=c.length,d=i.allocUnsafe(h),f=-1;++f<h;)d[f]=a(l,c[f],u);return d}},{"safe-buffer":494}],199:[function(e,r,s){var i=e("safe-buffer").Buffer;function a(o,l,c){var u=o._cipher.encryptBlock(o._prev)[0]^l;return o._prev=i.concat([o._prev.slice(1),i.from([c?l:u])]),u}s.encrypt=function(o,l,c){for(var u=l.length,h=i.allocUnsafe(u),d=-1;++d<u;)h[d]=a(o,l[d],c);return h}},{"safe-buffer":494}],200:[function(e,r,s){var i=e("buffer-xor"),a=e("safe-buffer").Buffer,o=e("../incr32");function l(c){var u=c._cipher.encryptBlockRaw(c._prev);return o(c._prev),u}s.encrypt=function(c,u){var h=Math.ceil(u.length/16),d=c._cache.length;c._cache=a.concat([c._cache,a.allocUnsafe(16*h)]);for(var f=0;f<h;f++){var p=l(c),g=d+16*f;c._cache.writeUInt32BE(p[0],g+0),c._cache.writeUInt32BE(p[1],g+4),c._cache.writeUInt32BE(p[2],g+8),c._cache.writeUInt32BE(p[3],g+12)}var m=c._cache.slice(0,u.length);return c._cache=c._cache.slice(u.length),i(u,m)}},{"../incr32":195,"buffer-xor":219,"safe-buffer":494}],201:[function(e,r,s){s.encrypt=function(i,a){return i._cipher.encryptBlock(a)},s.decrypt=function(i,a){return i._cipher.decryptBlock(a)}},{}],202:[function(e,r,s){var i={ECB:e("./ecb"),CBC:e("./cbc"),CFB:e("./cfb"),CFB8:e("./cfb8"),CFB1:e("./cfb1"),OFB:e("./ofb"),CTR:e("./ctr"),GCM:e("./ctr")},a=e("./list.json");for(var o in a)a[o].module=i[a[o].mode];r.exports=a},{"./cbc":196,"./cfb":197,"./cfb1":198,"./cfb8":199,"./ctr":200,"./ecb":201,"./list.json":203,"./ofb":204}],203:[function(e,r,s){r.exports={"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:{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"},"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"}}},{}],204:[function(e,r,s){(function(i){(function(){var a=e("buffer-xor");function o(l){return l._prev=l._cipher.encryptBlock(l._prev),l._prev}s.encrypt=function(l,c){for(;l._cache.length<c.length;)l._cache=i.concat([l._cache,o(l)]);var u=l._cache.slice(0,c.length);return l._cache=l._cache.slice(c.length),a(c,u)}}).call(this)}).call(this,e("buffer").Buffer)},{buffer:220,"buffer-xor":219}],205:[function(e,r,s){var i=e("./aes"),a=e("safe-buffer").Buffer,o=e("cipher-base");function l(c,u,h,d){o.call(this),this._cipher=new i.AES(u),this._prev=a.from(h),this._cache=a.allocUnsafe(0),this._secCache=a.allocUnsafe(0),this._decrypt=d,this._mode=c}e("inherits")(l,o),l.prototype._update=function(c){return this._mode.encrypt(this,c,this._decrypt)},l.prototype._final=function(){this._cipher.scrub()},r.exports=l},{"./aes":189,"cipher-base":221,inherits:440,"safe-buffer":494}],206:[function(e,r,s){var i=e("browserify-des"),a=e("browserify-aes/browser"),o=e("browserify-aes/modes"),l=e("browserify-des/modes"),c=e("evp_bytestokey");function u(d,f,p){if(d=d.toLowerCase(),o[d])return a.createCipheriv(d,f,p);if(l[d])return new i({key:f,iv:p,mode:d});throw new TypeError("invalid suite type")}function h(d,f,p){if(d=d.toLowerCase(),o[d])return a.createDecipheriv(d,f,p);if(l[d])return new i({key:f,iv:p,mode:d,decrypt:!0});throw new TypeError("invalid suite type")}s.createCipher=s.Cipher=function(d,f){var p,g;if(d=d.toLowerCase(),o[d])p=o[d].key,g=o[d].iv;else{if(!l[d])throw new TypeError("invalid suite type");p=8*l[d].key,g=l[d].iv}var m=c(f,!1,p,g);return u(d,m.key,m.iv)},s.createCipheriv=s.Cipheriv=u,s.createDecipher=s.Decipher=function(d,f){var p,g;if(d=d.toLowerCase(),o[d])p=o[d].key,g=o[d].iv;else{if(!l[d])throw new TypeError("invalid suite type");p=8*l[d].key,g=l[d].iv}var m=c(f,!1,p,g);return h(d,m.key,m.iv)},s.createDecipheriv=s.Decipheriv=h,s.listCiphers=s.getCiphers=function(){return Object.keys(l).concat(a.getCiphers())}},{"browserify-aes/browser":191,"browserify-aes/modes":202,"browserify-des":207,"browserify-des/modes":208,evp_bytestokey:423}],207:[function(e,r,s){var i=e("cipher-base"),a=e("des.js"),o=e("inherits"),l=e("safe-buffer").Buffer,c={"des-ede3-cbc":a.CBC.instantiate(a.EDE),"des-ede3":a.EDE,"des-ede-cbc":a.CBC.instantiate(a.EDE),"des-ede":a.EDE,"des-cbc":a.CBC.instantiate(a.DES),"des-ecb":a.DES};function u(h){i.call(this);var d,f=h.mode.toLowerCase(),p=c[f];d=h.decrypt?"decrypt":"encrypt";var g=h.key;l.isBuffer(g)||(g=l.from(g)),f!=="des-ede"&&f!=="des-ede-cbc"||(g=l.concat([g,g.slice(0,8)]));var m=h.iv;l.isBuffer(m)||(m=l.from(m)),this._des=p.create({key:g,iv:m,type:d})}c.des=c["des-cbc"],c.des3=c["des-ede3-cbc"],r.exports=u,o(u,i),u.prototype._update=function(h){return l.from(this._des.update(h))},u.prototype._final=function(){return l.from(this._des.final())}},{"cipher-base":221,"des.js":394,inherits:440,"safe-buffer":494}],208:[function(e,r,s){s["des-ecb"]={key:8,iv:0},s["des-cbc"]=s.des={key:8,iv:8},s["des-ede3-cbc"]=s.des3={key:24,iv:8},s["des-ede3"]={key:24,iv:0},s["des-ede-cbc"]={key:16,iv:8},s["des-ede"]={key:16,iv:0}},{}],209:[function(e,r,s){(function(i){(function(){var a=e("bn.js"),o=e("randombytes");function l(u){var h,d=u.modulus.byteLength();do h=new a(o(d));while(h.cmp(u.modulus)>=0||!h.umod(u.prime1)||!h.umod(u.prime2));return h}function c(u,h){var d=function(A){var B=l(A);return{blinder:B.toRed(a.mont(A.modulus)).redPow(new a(A.publicExponent)).fromRed(),unblinder:B.invm(A.modulus)}}(h),f=h.modulus.byteLength(),p=new a(u).mul(d.blinder).umod(h.modulus),g=p.toRed(a.mont(h.prime1)),m=p.toRed(a.mont(h.prime2)),b=h.coefficient,w=h.prime1,_=h.prime2,T=g.redPow(h.exponent1).fromRed(),M=m.redPow(h.exponent2).fromRed(),j=T.isub(M).imul(b).umod(w).imul(_);return M.iadd(j).imul(d.unblinder).umod(h.modulus).toArrayLike(i,"be",f)}c.getr=l,r.exports=c}).call(this)}).call(this,e("buffer").Buffer)},{"bn.js":186,buffer:220,randombytes:475}],210:[function(e,r,s){r.exports=e("./browser/algorithms.json")},{"./browser/algorithms.json":211}],211:[function(e,r,s){r.exports={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"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:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:{sign:"dsa",hash:"sha1",id:""},"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:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}}},{}],212:[function(e,r,s){r.exports={"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"}},{}],213:[function(e,r,s){var i=e("safe-buffer").Buffer,a=e("create-hash"),o=e("readable-stream"),l=e("inherits"),c=e("./sign"),u=e("./verify"),h=e("./algorithms.json");function d(m){o.Writable.call(this);var b=h[m];if(!b)throw new Error("Unknown message digest");this._hashType=b.hash,this._hash=a(b.hash),this._tag=b.id,this._signType=b.sign}function f(m){o.Writable.call(this);var b=h[m];if(!b)throw new Error("Unknown message digest");this._hash=a(b.hash),this._tag=b.id,this._signType=b.sign}function p(m){return new d(m)}function g(m){return new f(m)}Object.keys(h).forEach(function(m){h[m].id=i.from(h[m].id,"hex"),h[m.toLowerCase()]=h[m]}),l(d,o.Writable),d.prototype._write=function(m,b,w){this._hash.update(m),w()},d.prototype.update=function(m,b){return typeof m=="string"&&(m=i.from(m,b)),this._hash.update(m),this},d.prototype.sign=function(m,b){this.end();var w=this._hash.digest(),_=c(w,m,this._hashType,this._signType,this._tag);return b?_.toString(b):_},l(f,o.Writable),f.prototype._write=function(m,b,w){this._hash.update(m),w()},f.prototype.update=function(m,b){return typeof m=="string"&&(m=i.from(m,b)),this._hash.update(m),this},f.prototype.verify=function(m,b,w){typeof b=="string"&&(b=i.from(b,w)),this.end();var _=this._hash.digest();return u(b,_,m,this._signType,this._tag)},r.exports={Sign:p,Verify:g,createSign:p,createVerify:g}},{"./algorithms.json":211,"./sign":214,"./verify":215,"create-hash":386,inherits:440,"readable-stream":491,"safe-buffer":494}],214:[function(e,r,s){var i=e("safe-buffer").Buffer,a=e("create-hmac"),o=e("browserify-rsa"),l=e("elliptic").ec,c=e("bn.js"),u=e("parse-asn1"),h=e("./curves.json");function d(m,b,w,_){if((m=i.from(m.toArray())).length<b.byteLength()){var T=i.alloc(b.byteLength()-m.length);m=i.concat([T,m])}var M=w.length,j=function(H,U){H=(H=f(H,U)).mod(U);var X=i.from(H.toArray());if(X.length<U.byteLength()){var V=i.alloc(U.byteLength()-X.length);X=i.concat([V,X])}return X}(w,b),A=i.alloc(M);A.fill(1);var B=i.alloc(M);return B=a(_,B).update(A).update(i.from([0])).update(m).update(j).digest(),A=a(_,B).update(A).digest(),{k:B=a(_,B).update(A).update(i.from([1])).update(m).update(j).digest(),v:A=a(_,B).update(A).digest()}}function f(m,b){var w=new c(m),_=(m.length<<3)-b.bitLength();return _>0&&w.ishrn(_),w}function p(m,b,w){var _,T;do{for(_=i.alloc(0);8*_.length<m.bitLength();)b.v=a(w,b.k).update(b.v).digest(),_=i.concat([_,b.v]);T=f(_,m),b.k=a(w,b.k).update(b.v).update(i.from([0])).digest(),b.v=a(w,b.k).update(b.v).digest()}while(T.cmp(m)!==-1);return T}function g(m,b,w,_){return m.toRed(c.mont(w)).redPow(b).fromRed().mod(_)}r.exports=function(m,b,w,_,T){var M=u(b);if(M.curve){if(_!=="ecdsa"&&_!=="ecdsa/rsa")throw new Error("wrong private key type");return function(H,U){var X=h[U.curve.join(".")];if(!X)throw new Error("unknown curve "+U.curve.join("."));var V=new l(X).keyFromPrivate(U.privateKey).sign(H);return i.from(V.toDER())}(m,M)}if(M.type==="dsa"){if(_!=="dsa")throw new Error("wrong private key type");return function(H,U,X){for(var V,O=U.params.priv_key,N=U.params.p,C=U.params.q,x=U.params.g,S=new c(0),k=f(H,C).mod(C),E=!1,I=d(O,C,H,X);E===!1;)V=p(C,I,X),S=g(x,V,N,C),(E=V.invm(C).imul(k.add(O.mul(S))).mod(C)).cmpn(0)===0&&(E=!1,S=new c(0));return function(D,F){D=D.toArray(),F=F.toArray(),128&D[0]&&(D=[0].concat(D)),128&F[0]&&(F=[0].concat(F));var Y=[48,D.length+F.length+4,2,D.length];return Y=Y.concat(D,[2,F.length],F),i.from(Y)}(S,E)}(m,M,w)}if(_!=="rsa"&&_!=="ecdsa/rsa")throw new Error("wrong private key type");m=i.concat([T,m]);for(var j=M.modulus.byteLength(),A=[0,1];m.length+A.length+1<j;)A.push(255);A.push(0);for(var B=-1;++B<m.length;)A.push(m[B]);return o(A,M)},r.exports.getKey=d,r.exports.makeKey=p},{"./curves.json":212,"bn.js":186,"browserify-rsa":209,"create-hmac":388,elliptic:405,"parse-asn1":459,"safe-buffer":494}],215:[function(e,r,s){var i=e("safe-buffer").Buffer,a=e("bn.js"),o=e("elliptic").ec,l=e("parse-asn1"),c=e("./curves.json");function u(h,d){if(h.cmpn(0)<=0)throw new Error("invalid sig");if(h.cmp(d)>=d)throw new Error("invalid sig")}r.exports=function(h,d,f,p,g){var m=l(f);if(m.type==="ec"){if(p!=="ecdsa"&&p!=="ecdsa/rsa")throw new Error("wrong public key type");return function(A,B,H){var U=c[H.data.algorithm.curve.join(".")];if(!U)throw new Error("unknown curve "+H.data.algorithm.curve.join("."));var X=new o(U),V=H.data.subjectPrivateKey.data;return X.verify(B,A,V)}(h,d,m)}if(m.type==="dsa"){if(p!=="dsa")throw new Error("wrong public key type");return function(A,B,H){var U=H.data.p,X=H.data.q,V=H.data.g,O=H.data.pub_key,N=l.signature.decode(A,"der"),C=N.s,x=N.r;u(C,X),u(x,X);var S=a.mont(U),k=C.invm(X);return V.toRed(S).redPow(new a(B).mul(k).mod(X)).fromRed().mul(O.toRed(S).redPow(x.mul(k).mod(X)).fromRed()).mod(U).mod(X).cmp(x)===0}(h,d,m)}if(p!=="rsa"&&p!=="ecdsa/rsa")throw new Error("wrong public key type");d=i.concat([g,d]);for(var b=m.modulus.byteLength(),w=[1],_=0;d.length+w.length+2<b;)w.push(255),_++;w.push(0);for(var T=-1;++T<d.length;)w.push(d[T]);w=i.from(w);var M=a.mont(m.modulus);h=(h=new a(h).toRed(M)).redPow(new a(m.publicExponent)),h=i.from(h.fromRed().toArray());var j=_<8?1:0;for(b=Math.min(h.length,w.length),h.length!==w.length&&(j=1),T=-1;++T<b;)j|=h[T]^w[T];return j===0}},{"./curves.json":212,"bn.js":186,elliptic:405,"parse-asn1":459,"safe-buffer":494}],216:[function(e,r,s){},{}],217:[function(e,r,s){var i=e("buffer"),a=i.Buffer;function o(c,u){for(var h in c)u[h]=c[h]}function l(c,u,h){return a(c,u,h)}a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?r.exports=i:(o(i,s),s.Buffer=l),o(a,l),l.from=function(c,u,h){if(typeof c=="number")throw new TypeError("Argument must not be a number");return a(c,u,h)},l.alloc=function(c,u,h){if(typeof c!="number")throw new TypeError("Argument must be a number");var d=a(c);return u!==void 0?typeof h=="string"?d.fill(u,h):d.fill(u):d.fill(0),d},l.allocUnsafe=function(c){if(typeof c!="number")throw new TypeError("Argument must be a number");return a(c)},l.allocUnsafeSlow=function(c){if(typeof c!="number")throw new TypeError("Argument must be a number");return i.SlowBuffer(c)}},{buffer:220}],218:[function(e,r,s){var i=e("safe-buffer").Buffer,a=i.isEncoding||function(m){switch((m=""+m)&&m.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 o(m){var b;switch(this.encoding=function(w){var _=function(T){if(!T)return"utf8";for(var M;;)switch(T){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 T;default:if(M)return;T=(""+T).toLowerCase(),M=!0}}(w);if(typeof _!="string"&&(i.isEncoding===a||!a(w)))throw new Error("Unknown encoding: "+w);return _||w}(m),this.encoding){case"utf16le":this.text=u,this.end=h,b=4;break;case"utf8":this.fillLast=c,b=4;break;case"base64":this.text=d,this.end=f,b=3;break;default:return this.write=p,void(this.end=g)}this.lastNeed=0,this.lastTotal=0,this.lastChar=i.allocUnsafe(b)}function l(m){return m<=127?0:m>>5==6?2:m>>4==14?3:m>>3==30?4:m>>6==2?-1:-2}function c(m){var b=this.lastTotal-this.lastNeed,w=function(_,T,M){if((192&T[0])!=128)return _.lastNeed=0,"�";if(_.lastNeed>1&&T.length>1){if((192&T[1])!=128)return _.lastNeed=1,"�";if(_.lastNeed>2&&T.length>2&&(192&T[2])!=128)return _.lastNeed=2,"�"}}(this,m);return w!==void 0?w:this.lastNeed<=m.length?(m.copy(this.lastChar,b,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(m.copy(this.lastChar,b,0,m.length),void(this.lastNeed-=m.length))}function u(m,b){if((m.length-b)%2==0){var w=m.toString("utf16le",b);if(w){var _=w.charCodeAt(w.length-1);if(_>=55296&&_<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=m[m.length-2],this.lastChar[1]=m[m.length-1],w.slice(0,-1)}return w}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=m[m.length-1],m.toString("utf16le",b,m.length-1)}function h(m){var b=m&&m.length?this.write(m):"";if(this.lastNeed){var w=this.lastTotal-this.lastNeed;return b+this.lastChar.toString("utf16le",0,w)}return b}function d(m,b){var w=(m.length-b)%3;return w===0?m.toString("base64",b):(this.lastNeed=3-w,this.lastTotal=3,w===1?this.lastChar[0]=m[m.length-1]:(this.lastChar[0]=m[m.length-2],this.lastChar[1]=m[m.length-1]),m.toString("base64",b,m.length-w))}function f(m){var b=m&&m.length?this.write(m):"";return this.lastNeed?b+this.lastChar.toString("base64",0,3-this.lastNeed):b}function p(m){return m.toString(this.encoding)}function g(m){return m&&m.length?this.write(m):""}s.StringDecoder=o,o.prototype.write=function(m){if(m.length===0)return"";var b,w;if(this.lastNeed){if((b=this.fillLast(m))===void 0)return"";w=this.lastNeed,this.lastNeed=0}else w=0;return w<m.length?b?b+this.text(m,w):this.text(m,w):b||""},o.prototype.end=function(m){var b=m&&m.length?this.write(m):"";return this.lastNeed?b+"�":b},o.prototype.text=function(m,b){var w=function(T,M,j){var A=M.length-1;if(A<j)return 0;var B=l(M[A]);return B>=0?(B>0&&(T.lastNeed=B-1),B):--A<j||B===-2?0:(B=l(M[A]))>=0?(B>0&&(T.lastNeed=B-2),B):--A<j||B===-2?0:(B=l(M[A]))>=0?(B>0&&(B===2?B=0:T.lastNeed=B-3),B):0}(this,m,b);if(!this.lastNeed)return m.toString("utf8",b);this.lastTotal=w;var _=m.length-(w-this.lastNeed);return m.copy(this.lastChar,0,_),m.toString("utf8",b,_)},o.prototype.fillLast=function(m){if(this.lastNeed<=m.length)return m.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);m.copy(this.lastChar,this.lastTotal-this.lastNeed,0,m.length),this.lastNeed-=m.length}},{"safe-buffer":217}],219:[function(e,r,s){(function(i){(function(){r.exports=function(a,o){for(var l=Math.min(a.length,o.length),c=new i(l),u=0;u<l;++u)c[u]=a[u]^o[u];return c}}).call(this)}).call(this,e("buffer").Buffer)},{buffer:220}],220:[function(e,r,s){(function(i){(function(){var a=e("base64-js"),o=e("ieee754");s.Buffer=c,s.SlowBuffer=function(L){return+L!=L&&(L=0),c.alloc(+L)},s.INSPECT_MAX_BYTES=50;function l(L){if(L>2147483647)throw new RangeError('The value "'+L+'" is invalid for option "size"');var P=new Uint8Array(L);return P.__proto__=c.prototype,P}function c(L,P,G){if(typeof L=="number"){if(typeof P=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return d(L)}return u(L,P,G)}function u(L,P,G){if(typeof L=="string")return function(ie,ue){if(typeof ue=="string"&&ue!==""||(ue="utf8"),!c.isEncoding(ue))throw new TypeError("Unknown encoding: "+ue);var ve=0|g(ie,ue),we=l(ve),le=we.write(ie,ue);return le!==ve&&(we=we.slice(0,le)),we}(L,P);if(ArrayBuffer.isView(L))return f(L);if(L==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof L);if(q(L,ArrayBuffer)||L&&q(L.buffer,ArrayBuffer))return function(ie,ue,ve){if(ue<0||ie.byteLength<ue)throw new RangeError('"offset" is outside of buffer bounds');if(ie.byteLength<ue+(ve||0))throw new RangeError('"length" is outside of buffer bounds');var we;return we=ue===void 0&&ve===void 0?new Uint8Array(ie):ve===void 0?new Uint8Array(ie,ue):new Uint8Array(ie,ue,ve),we.__proto__=c.prototype,we}(L,P,G);if(typeof L=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var ne=L.valueOf&&L.valueOf();if(ne!=null&&ne!==L)return c.from(ne,P,G);var ce=function(ie){if(c.isBuffer(ie)){var ue=0|p(ie.length),ve=l(ue);return ve.length===0||ie.copy(ve,0,0,ue),ve}if(ie.length!==void 0)return typeof ie.length!="number"||ee(ie.length)?l(0):f(ie);if(ie.type==="Buffer"&&Array.isArray(ie.data))return f(ie.data)}(L);if(ce)return ce;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof L[Symbol.toPrimitive]=="function")return c.from(L[Symbol.toPrimitive]("string"),P,G);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof L)}function h(L){if(typeof L!="number")throw new TypeError('"size" argument must be of type number');if(L<0)throw new RangeError('The value "'+L+'" is invalid for option "size"')}function d(L){return h(L),l(L<0?0:0|p(L))}function f(L){for(var P=L.length<0?0:0|p(L.length),G=l(P),ne=0;ne<P;ne+=1)G[ne]=255&L[ne];return G}function p(L){if(L>=2147483647)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|L}function g(L,P){if(c.isBuffer(L))return L.length;if(ArrayBuffer.isView(L)||q(L,ArrayBuffer))return L.byteLength;if(typeof L!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof L);var G=L.length,ne=arguments.length>2&&arguments[2]===!0;if(!ne&&G===0)return 0;for(var ce=!1;;)switch(P){case"ascii":case"latin1":case"binary":return G;case"utf8":case"utf-8":return Y(L).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*G;case"hex":return G>>>1;case"base64":return J(L).length;default:if(ce)return ne?-1:Y(L).length;P=(""+P).toLowerCase(),ce=!0}}function m(L,P,G){var ne=!1;if((P===void 0||P<0)&&(P=0),P>this.length||((G===void 0||G>this.length)&&(G=this.length),G<=0)||(G>>>=0)<=(P>>>=0))return"";for(L||(L="utf8");;)switch(L){case"hex":return N(this,P,G);case"utf8":case"utf-8":return X(this,P,G);case"ascii":return V(this,P,G);case"latin1":case"binary":return O(this,P,G);case"base64":return U(this,P,G);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,P,G);default:if(ne)throw new TypeError("Unknown encoding: "+L);L=(L+"").toLowerCase(),ne=!0}}function b(L,P,G){var ne=L[P];L[P]=L[G],L[G]=ne}function w(L,P,G,ne,ce){if(L.length===0)return-1;if(typeof G=="string"?(ne=G,G=0):G>2147483647?G=2147483647:G<-2147483648&&(G=-2147483648),ee(G=+G)&&(G=ce?0:L.length-1),G<0&&(G=L.length+G),G>=L.length){if(ce)return-1;G=L.length-1}else if(G<0){if(!ce)return-1;G=0}if(typeof P=="string"&&(P=c.from(P,ne)),c.isBuffer(P))return P.length===0?-1:_(L,P,G,ne,ce);if(typeof P=="number")return P&=255,typeof Uint8Array.prototype.indexOf=="function"?ce?Uint8Array.prototype.indexOf.call(L,P,G):Uint8Array.prototype.lastIndexOf.call(L,P,G):_(L,[P],G,ne,ce);throw new TypeError("val must be string, number or Buffer")}function _(L,P,G,ne,ce){var ie,ue=1,ve=L.length,we=P.length;if(ne!==void 0&&((ne=String(ne).toLowerCase())==="ucs2"||ne==="ucs-2"||ne==="utf16le"||ne==="utf-16le")){if(L.length<2||P.length<2)return-1;ue=2,ve/=2,we/=2,G/=2}function le(xe,Ee){return ue===1?xe[Ee]:xe.readUInt16BE(Ee*ue)}if(ce){var me=-1;for(ie=G;ie<ve;ie++)if(le(L,ie)===le(P,me===-1?0:ie-me)){if(me===-1&&(me=ie),ie-me+1===we)return me*ue}else me!==-1&&(ie-=ie-me),me=-1}else for(G+we>ve&&(G=ve-we),ie=G;ie>=0;ie--){for(var ge=!0,ke=0;ke<we;ke++)if(le(L,ie+ke)!==le(P,ke)){ge=!1;break}if(ge)return ie}return-1}function T(L,P,G,ne){G=Number(G)||0;var ce=L.length-G;ne?(ne=Number(ne))>ce&&(ne=ce):ne=ce;var ie=P.length;ne>ie/2&&(ne=ie/2);for(var ue=0;ue<ne;++ue){var ve=parseInt(P.substr(2*ue,2),16);if(ee(ve))return ue;L[G+ue]=ve}return ue}function M(L,P,G,ne){return se(Y(P,L.length-G),L,G,ne)}function j(L,P,G,ne){return se(function(ce){for(var ie=[],ue=0;ue<ce.length;++ue)ie.push(255&ce.charCodeAt(ue));return ie}(P),L,G,ne)}function A(L,P,G,ne){return j(L,P,G,ne)}function B(L,P,G,ne){return se(J(P),L,G,ne)}function H(L,P,G,ne){return se(function(ce,ie){for(var ue,ve,we,le=[],me=0;me<ce.length&&!((ie-=2)<0);++me)ue=ce.charCodeAt(me),ve=ue>>8,we=ue%256,le.push(we),le.push(ve);return le}(P,L.length-G),L,G,ne)}function U(L,P,G){return P===0&&G===L.length?a.fromByteArray(L):a.fromByteArray(L.slice(P,G))}function X(L,P,G){G=Math.min(L.length,G);for(var ne=[],ce=P;ce<G;){var ie,ue,ve,we,le=L[ce],me=null,ge=le>239?4:le>223?3:le>191?2:1;if(ce+ge<=G)switch(ge){case 1:le<128&&(me=le);break;case 2:(192&(ie=L[ce+1]))==128&&(we=(31&le)<<6|63&ie)>127&&(me=we);break;case 3:ie=L[ce+1],ue=L[ce+2],(192&ie)==128&&(192&ue)==128&&(we=(15&le)<<12|(63&ie)<<6|63&ue)>2047&&(we<55296||we>57343)&&(me=we);break;case 4:ie=L[ce+1],ue=L[ce+2],ve=L[ce+3],(192&ie)==128&&(192&ue)==128&&(192&ve)==128&&(we=(15&le)<<18|(63&ie)<<12|(63&ue)<<6|63&ve)>65535&&we<1114112&&(me=we)}me===null?(me=65533,ge=1):me>65535&&(me-=65536,ne.push(me>>>10&1023|55296),me=56320|1023&me),ne.push(me),ce+=ge}return function(ke){var xe=ke.length;if(xe<=4096)return String.fromCharCode.apply(String,ke);for(var Ee="",Ie=0;Ie<xe;)Ee+=String.fromCharCode.apply(String,ke.slice(Ie,Ie+=4096));return Ee}(ne)}s.kMaxLength=2147483647,c.TYPED_ARRAY_SUPPORT=function(){try{var L=new Uint8Array(1);return L.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},L.foo()===42}catch{return!1}}(),c.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."),Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),typeof Symbol<"u"&&Symbol.species!=null&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),c.poolSize=8192,c.from=function(L,P,G){return u(L,P,G)},c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,c.alloc=function(L,P,G){return function(ne,ce,ie){return h(ne),ne<=0?l(ne):ce!==void 0?typeof ie=="string"?l(ne).fill(ce,ie):l(ne).fill(ce):l(ne)}(L,P,G)},c.allocUnsafe=function(L){return d(L)},c.allocUnsafeSlow=function(L){return d(L)},c.isBuffer=function(L){return L!=null&&L._isBuffer===!0&&L!==c.prototype},c.compare=function(L,P){if(q(L,Uint8Array)&&(L=c.from(L,L.offset,L.byteLength)),q(P,Uint8Array)&&(P=c.from(P,P.offset,P.byteLength)),!c.isBuffer(L)||!c.isBuffer(P))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(L===P)return 0;for(var G=L.length,ne=P.length,ce=0,ie=Math.min(G,ne);ce<ie;++ce)if(L[ce]!==P[ce]){G=L[ce],ne=P[ce];break}return G<ne?-1:ne<G?1:0},c.isEncoding=function(L){switch(String(L).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}},c.concat=function(L,P){if(!Array.isArray(L))throw new TypeError('"list" argument must be an Array of Buffers');if(L.length===0)return c.alloc(0);var G;if(P===void 0)for(P=0,G=0;G<L.length;++G)P+=L[G].length;var ne=c.allocUnsafe(P),ce=0;for(G=0;G<L.length;++G){var ie=L[G];if(q(ie,Uint8Array)&&(ie=c.from(ie)),!c.isBuffer(ie))throw new TypeError('"list" argument must be an Array of Buffers');ie.copy(ne,ce),ce+=ie.length}return ne},c.byteLength=g,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var L=this.length;if(L%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var P=0;P<L;P+=2)b(this,P,P+1);return this},c.prototype.swap32=function(){var L=this.length;if(L%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var P=0;P<L;P+=4)b(this,P,P+3),b(this,P+1,P+2);return this},c.prototype.swap64=function(){var L=this.length;if(L%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var P=0;P<L;P+=8)b(this,P,P+7),b(this,P+1,P+6),b(this,P+2,P+5),b(this,P+3,P+4);return this},c.prototype.toString=function(){var L=this.length;return L===0?"":arguments.length===0?X(this,0,L):m.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(L){if(!c.isBuffer(L))throw new TypeError("Argument must be a Buffer");return this===L||c.compare(this,L)===0},c.prototype.inspect=function(){var L="",P=s.INSPECT_MAX_BYTES;return L=this.toString("hex",0,P).replace(/(.{2})/g,"$1 ").trim(),this.length>P&&(L+=" ... "),"<Buffer "+L+">"},c.prototype.compare=function(L,P,G,ne,ce){if(q(L,Uint8Array)&&(L=c.from(L,L.offset,L.byteLength)),!c.isBuffer(L))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof L);if(P===void 0&&(P=0),G===void 0&&(G=L?L.length:0),ne===void 0&&(ne=0),ce===void 0&&(ce=this.length),P<0||G>L.length||ne<0||ce>this.length)throw new RangeError("out of range index");if(ne>=ce&&P>=G)return 0;if(ne>=ce)return-1;if(P>=G)return 1;if(this===L)return 0;for(var ie=(ce>>>=0)-(ne>>>=0),ue=(G>>>=0)-(P>>>=0),ve=Math.min(ie,ue),we=this.slice(ne,ce),le=L.slice(P,G),me=0;me<ve;++me)if(we[me]!==le[me]){ie=we[me],ue=le[me];break}return ie<ue?-1:ue<ie?1:0},c.prototype.includes=function(L,P,G){return this.indexOf(L,P,G)!==-1},c.prototype.indexOf=function(L,P,G){return w(this,L,P,G,!0)},c.prototype.lastIndexOf=function(L,P,G){return w(this,L,P,G,!1)},c.prototype.write=function(L,P,G,ne){if(P===void 0)ne="utf8",G=this.length,P=0;else if(G===void 0&&typeof P=="string")ne=P,G=this.length,P=0;else{if(!isFinite(P))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");P>>>=0,isFinite(G)?(G>>>=0,ne===void 0&&(ne="utf8")):(ne=G,G=void 0)}var ce=this.length-P;if((G===void 0||G>ce)&&(G=ce),L.length>0&&(G<0||P<0)||P>this.length)throw new RangeError("Attempt to write outside buffer bounds");ne||(ne="utf8");for(var ie=!1;;)switch(ne){case"hex":return T(this,L,P,G);case"utf8":case"utf-8":return M(this,L,P,G);case"ascii":return j(this,L,P,G);case"latin1":case"binary":return A(this,L,P,G);case"base64":return B(this,L,P,G);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return H(this,L,P,G);default:if(ie)throw new TypeError("Unknown encoding: "+ne);ne=(""+ne).toLowerCase(),ie=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function V(L,P,G){var ne="";G=Math.min(L.length,G);for(var ce=P;ce<G;++ce)ne+=String.fromCharCode(127&L[ce]);return ne}function O(L,P,G){var ne="";G=Math.min(L.length,G);for(var ce=P;ce<G;++ce)ne+=String.fromCharCode(L[ce]);return ne}function N(L,P,G){var ne=L.length;(!P||P<0)&&(P=0),(!G||G<0||G>ne)&&(G=ne);for(var ce="",ie=P;ie<G;++ie)ce+=F(L[ie]);return ce}function C(L,P,G){for(var ne=L.slice(P,G),ce="",ie=0;ie<ne.length;ie+=2)ce+=String.fromCharCode(ne[ie]+256*ne[ie+1]);return ce}function x(L,P,G){if(L%1!=0||L<0)throw new RangeError("offset is not uint");if(L+P>G)throw new RangeError("Trying to access beyond buffer length")}function S(L,P,G,ne,ce,ie){if(!c.isBuffer(L))throw new TypeError('"buffer" argument must be a Buffer instance');if(P>ce||P<ie)throw new RangeError('"value" argument is out of bounds');if(G+ne>L.length)throw new RangeError("Index out of range")}function k(L,P,G,ne,ce,ie){if(G+ne>L.length)throw new RangeError("Index out of range");if(G<0)throw new RangeError("Index out of range")}function E(L,P,G,ne,ce){return P=+P,G>>>=0,ce||k(L,0,G,4),o.write(L,P,G,ne,23,4),G+4}function I(L,P,G,ne,ce){return P=+P,G>>>=0,ce||k(L,0,G,8),o.write(L,P,G,ne,52,8),G+8}c.prototype.slice=function(L,P){var G=this.length;(L=~~L)<0?(L+=G)<0&&(L=0):L>G&&(L=G),(P=P===void 0?G:~~P)<0?(P+=G)<0&&(P=0):P>G&&(P=G),P<L&&(P=L);var ne=this.subarray(L,P);return ne.__proto__=c.prototype,ne},c.prototype.readUIntLE=function(L,P,G){L>>>=0,P>>>=0,G||x(L,P,this.length);for(var ne=this[L],ce=1,ie=0;++ie<P&&(ce*=256);)ne+=this[L+ie]*ce;return ne},c.prototype.readUIntBE=function(L,P,G){L>>>=0,P>>>=0,G||x(L,P,this.length);for(var ne=this[L+--P],ce=1;P>0&&(ce*=256);)ne+=this[L+--P]*ce;return ne},c.prototype.readUInt8=function(L,P){return L>>>=0,P||x(L,1,this.length),this[L]},c.prototype.readUInt16LE=function(L,P){return L>>>=0,P||x(L,2,this.length),this[L]|this[L+1]<<8},c.prototype.readUInt16BE=function(L,P){return L>>>=0,P||x(L,2,this.length),this[L]<<8|this[L+1]},c.prototype.readUInt32LE=function(L,P){return L>>>=0,P||x(L,4,this.length),(this[L]|this[L+1]<<8|this[L+2]<<16)+16777216*this[L+3]},c.prototype.readUInt32BE=function(L,P){return L>>>=0,P||x(L,4,this.length),16777216*this[L]+(this[L+1]<<16|this[L+2]<<8|this[L+3])},c.prototype.readIntLE=function(L,P,G){L>>>=0,P>>>=0,G||x(L,P,this.length);for(var ne=this[L],ce=1,ie=0;++ie<P&&(ce*=256);)ne+=this[L+ie]*ce;return ne>=(ce*=128)&&(ne-=Math.pow(2,8*P)),ne},c.prototype.readIntBE=function(L,P,G){L>>>=0,P>>>=0,G||x(L,P,this.length);for(var ne=P,ce=1,ie=this[L+--ne];ne>0&&(ce*=256);)ie+=this[L+--ne]*ce;return ie>=(ce*=128)&&(ie-=Math.pow(2,8*P)),ie},c.prototype.readInt8=function(L,P){return L>>>=0,P||x(L,1,this.length),128&this[L]?-1*(255-this[L]+1):this[L]},c.prototype.readInt16LE=function(L,P){L>>>=0,P||x(L,2,this.length);var G=this[L]|this[L+1]<<8;return 32768&G?4294901760|G:G},c.prototype.readInt16BE=function(L,P){L>>>=0,P||x(L,2,this.length);var G=this[L+1]|this[L]<<8;return 32768&G?4294901760|G:G},c.prototype.readInt32LE=function(L,P){return L>>>=0,P||x(L,4,this.length),this[L]|this[L+1]<<8|this[L+2]<<16|this[L+3]<<24},c.prototype.readInt32BE=function(L,P){return L>>>=0,P||x(L,4,this.length),this[L]<<24|this[L+1]<<16|this[L+2]<<8|this[L+3]},c.prototype.readFloatLE=function(L,P){return L>>>=0,P||x(L,4,this.length),o.read(this,L,!0,23,4)},c.prototype.readFloatBE=function(L,P){return L>>>=0,P||x(L,4,this.length),o.read(this,L,!1,23,4)},c.prototype.readDoubleLE=function(L,P){return L>>>=0,P||x(L,8,this.length),o.read(this,L,!0,52,8)},c.prototype.readDoubleBE=function(L,P){return L>>>=0,P||x(L,8,this.length),o.read(this,L,!1,52,8)},c.prototype.writeUIntLE=function(L,P,G,ne){L=+L,P>>>=0,G>>>=0,ne||S(this,L,P,G,Math.pow(2,8*G)-1,0);var ce=1,ie=0;for(this[P]=255&L;++ie<G&&(ce*=256);)this[P+ie]=L/ce&255;return P+G},c.prototype.writeUIntBE=function(L,P,G,ne){L=+L,P>>>=0,G>>>=0,ne||S(this,L,P,G,Math.pow(2,8*G)-1,0);var ce=G-1,ie=1;for(this[P+ce]=255&L;--ce>=0&&(ie*=256);)this[P+ce]=L/ie&255;return P+G},c.prototype.writeUInt8=function(L,P,G){return L=+L,P>>>=0,G||S(this,L,P,1,255,0),this[P]=255&L,P+1},c.prototype.writeUInt16LE=function(L,P,G){return L=+L,P>>>=0,G||S(this,L,P,2,65535,0),this[P]=255&L,this[P+1]=L>>>8,P+2},c.prototype.writeUInt16BE=function(L,P,G){return L=+L,P>>>=0,G||S(this,L,P,2,65535,0),this[P]=L>>>8,this[P+1]=255&L,P+2},c.prototype.writeUInt32LE=function(L,P,G){return L=+L,P>>>=0,G||S(this,L,P,4,4294967295,0),this[P+3]=L>>>24,this[P+2]=L>>>16,this[P+1]=L>>>8,this[P]=255&L,P+4},c.prototype.writeUInt32BE=function(L,P,G){return L=+L,P>>>=0,G||S(this,L,P,4,4294967295,0),this[P]=L>>>24,this[P+1]=L>>>16,this[P+2]=L>>>8,this[P+3]=255&L,P+4},c.prototype.writeIntLE=function(L,P,G,ne){if(L=+L,P>>>=0,!ne){var ce=Math.pow(2,8*G-1);S(this,L,P,G,ce-1,-ce)}var ie=0,ue=1,ve=0;for(this[P]=255&L;++ie<G&&(ue*=256);)L<0&&ve===0&&this[P+ie-1]!==0&&(ve=1),this[P+ie]=(L/ue>>0)-ve&255;return P+G},c.prototype.writeIntBE=function(L,P,G,ne){if(L=+L,P>>>=0,!ne){var ce=Math.pow(2,8*G-1);S(this,L,P,G,ce-1,-ce)}var ie=G-1,ue=1,ve=0;for(this[P+ie]=255&L;--ie>=0&&(ue*=256);)L<0&&ve===0&&this[P+ie+1]!==0&&(ve=1),this[P+ie]=(L/ue>>0)-ve&255;return P+G},c.prototype.writeInt8=function(L,P,G){return L=+L,P>>>=0,G||S(this,L,P,1,127,-128),L<0&&(L=255+L+1),this[P]=255&L,P+1},c.prototype.writeInt16LE=function(L,P,G){return L=+L,P>>>=0,G||S(this,L,P,2,32767,-32768),this[P]=255&L,this[P+1]=L>>>8,P+2},c.prototype.writeInt16BE=function(L,P,G){return L=+L,P>>>=0,G||S(this,L,P,2,32767,-32768),this[P]=L>>>8,this[P+1]=255&L,P+2},c.prototype.writeInt32LE=function(L,P,G){return L=+L,P>>>=0,G||S(this,L,P,4,2147483647,-2147483648),this[P]=255&L,this[P+1]=L>>>8,this[P+2]=L>>>16,this[P+3]=L>>>24,P+4},c.prototype.writeInt32BE=function(L,P,G){return L=+L,P>>>=0,G||S(this,L,P,4,2147483647,-2147483648),L<0&&(L=4294967295+L+1),this[P]=L>>>24,this[P+1]=L>>>16,this[P+2]=L>>>8,this[P+3]=255&L,P+4},c.prototype.writeFloatLE=function(L,P,G){return E(this,L,P,!0,G)},c.prototype.writeFloatBE=function(L,P,G){return E(this,L,P,!1,G)},c.prototype.writeDoubleLE=function(L,P,G){return I(this,L,P,!0,G)},c.prototype.writeDoubleBE=function(L,P,G){return I(this,L,P,!1,G)},c.prototype.copy=function(L,P,G,ne){if(!c.isBuffer(L))throw new TypeError("argument should be a Buffer");if(G||(G=0),ne||ne===0||(ne=this.length),P>=L.length&&(P=L.length),P||(P=0),ne>0&&ne<G&&(ne=G),ne===G||L.length===0||this.length===0)return 0;if(P<0)throw new RangeError("targetStart out of bounds");if(G<0||G>=this.length)throw new RangeError("Index out of range");if(ne<0)throw new RangeError("sourceEnd out of bounds");ne>this.length&&(ne=this.length),L.length-P<ne-G&&(ne=L.length-P+G);var ce=ne-G;if(this===L&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin(P,G,ne);else if(this===L&&G<P&&P<ne)for(var ie=ce-1;ie>=0;--ie)L[ie+P]=this[ie+G];else Uint8Array.prototype.set.call(L,this.subarray(G,ne),P);return ce},c.prototype.fill=function(L,P,G,ne){if(typeof L=="string"){if(typeof P=="string"?(ne=P,P=0,G=this.length):typeof G=="string"&&(ne=G,G=this.length),ne!==void 0&&typeof ne!="string")throw new TypeError("encoding must be a string");if(typeof ne=="string"&&!c.isEncoding(ne))throw new TypeError("Unknown encoding: "+ne);if(L.length===1){var ce=L.charCodeAt(0);(ne==="utf8"&&ce<128||ne==="latin1")&&(L=ce)}}else typeof L=="number"&&(L&=255);if(P<0||this.length<P||this.length<G)throw new RangeError("Out of range index");if(G<=P)return this;var ie;if(P>>>=0,G=G===void 0?this.length:G>>>0,L||(L=0),typeof L=="number")for(ie=P;ie<G;++ie)this[ie]=L;else{var ue=c.isBuffer(L)?L:c.from(L,ne),ve=ue.length;if(ve===0)throw new TypeError('The value "'+L+'" is invalid for argument "value"');for(ie=0;ie<G-P;++ie)this[ie+P]=ue[ie%ve]}return this};var D=/[^+/0-9A-Za-z-_]/g;function F(L){return L<16?"0"+L.toString(16):L.toString(16)}function Y(L,P){var G;P=P||1/0;for(var ne=L.length,ce=null,ie=[],ue=0;ue<ne;++ue){if((G=L.charCodeAt(ue))>55295&&G<57344){if(!ce){if(G>56319){(P-=3)>-1&&ie.push(239,191,189);continue}if(ue+1===ne){(P-=3)>-1&&ie.push(239,191,189);continue}ce=G;continue}if(G<56320){(P-=3)>-1&&ie.push(239,191,189),ce=G;continue}G=65536+(ce-55296<<10|G-56320)}else ce&&(P-=3)>-1&&ie.push(239,191,189);if(ce=null,G<128){if((P-=1)<0)break;ie.push(G)}else if(G<2048){if((P-=2)<0)break;ie.push(G>>6|192,63&G|128)}else if(G<65536){if((P-=3)<0)break;ie.push(G>>12|224,G>>6&63|128,63&G|128)}else{if(!(G<1114112))throw new Error("Invalid code point");if((P-=4)<0)break;ie.push(G>>18|240,G>>12&63|128,G>>6&63|128,63&G|128)}}return ie}function J(L){return a.toByteArray(function(P){if((P=(P=P.split("=")[0]).trim().replace(D,"")).length<2)return"";for(;P.length%4!=0;)P+="=";return P}(L))}function se(L,P,G,ne){for(var ce=0;ce<ne&&!(ce+G>=P.length||ce>=L.length);++ce)P[ce+G]=L[ce];return ce}function q(L,P){return L instanceof P||L!=null&&L.constructor!=null&&L.constructor.name!=null&&L.constructor.name===P.name}function ee(L){return L!=L}}).call(this)}).call(this,e("buffer").Buffer)},{"base64-js":185,buffer:220,ieee754:439}],221:[function(e,r,s){var i=e("safe-buffer").Buffer,a=e("stream").Transform,o=e("string_decoder").StringDecoder;function l(c){a.call(this),this.hashMode=typeof c=="string",this.hashMode?this[c]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}e("inherits")(l,a),l.prototype.update=function(c,u,h){typeof c=="string"&&(c=i.from(c,u));var d=this._update(c);return this.hashMode?this:(h&&(d=this._toString(d,h)),d)},l.prototype.setAutoPadding=function(){},l.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},l.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},l.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},l.prototype._transform=function(c,u,h){var d;try{this.hashMode?this._update(c):this.push(this._update(c))}catch(f){d=f}finally{h(d)}},l.prototype._flush=function(c){var u;try{this.push(this.__final())}catch(h){u=h}c(u)},l.prototype._finalOrDigest=function(c){var u=this.__final()||i.alloc(0);return c&&(u=this._toString(u,c,!0)),u},l.prototype._toString=function(c,u,h){if(this._decoder||(this._decoder=new o(u),this._encoding=u),this._encoding!==u)throw new Error("can't switch encodings");var d=this._decoder.write(c);return h&&(d+=this._decoder.end()),d},r.exports=l},{inherits:440,"safe-buffer":494,stream:505,string_decoder:218}],222:[function(e,r,s){var i=e("../internals/is-callable"),a=e("../internals/try-to-string"),o=TypeError;r.exports=function(l){if(i(l))return l;throw new o(a(l)+" is not a function")}},{"../internals/is-callable":285,"../internals/try-to-string":349}],223:[function(e,r,s){var i=e("../internals/is-constructor"),a=e("../internals/try-to-string"),o=TypeError;r.exports=function(l){if(i(l))return l;throw new o(a(l)+" is not a constructor")}},{"../internals/is-constructor":286,"../internals/try-to-string":349}],224:[function(e,r,s){var i=e("../internals/is-callable"),a=String,o=TypeError;r.exports=function(l){if(typeof l=="object"||i(l))return l;throw new o("Can't set "+a(l)+" as a prototype")}},{"../internals/is-callable":285}],225:[function(e,r,s){var i=e("../internals/well-known-symbol"),a=e("../internals/object-create"),o=e("../internals/object-define-property").f,l=i("unscopables"),c=Array.prototype;c[l]===void 0&&o(c,l,{configurable:!0,value:a(null)}),r.exports=function(u){c[l][u]=!0}},{"../internals/object-create":306,"../internals/object-define-property":308,"../internals/well-known-symbol":357}],226:[function(e,r,s){var i=e("../internals/object-is-prototype-of"),a=TypeError;r.exports=function(o,l){if(i(l,o))return o;throw new a("Incorrect invocation")}},{"../internals/object-is-prototype-of":314}],227:[function(e,r,s){var i=e("../internals/is-object"),a=String,o=TypeError;r.exports=function(l){if(i(l))return l;throw new o(a(l)+" is not an object")}},{"../internals/is-object":289}],228:[function(e,r,s){var i=e("../internals/to-indexed-object"),a=e("../internals/to-absolute-index"),o=e("../internals/length-of-array-like"),l=function(c){return function(u,h,d){var f,p=i(u),g=o(p),m=a(d,g);if(c&&h!=h){for(;g>m;)if((f=p[m++])!=f)return!0}else for(;g>m;m++)if((c||m in p)&&p[m]===h)return c||m||0;return!c&&-1}};r.exports={includes:l(!0),indexOf:l(!1)}},{"../internals/length-of-array-like":299,"../internals/to-absolute-index":340,"../internals/to-indexed-object":341}],229:[function(e,r,s){var i=e("../internals/function-bind-context"),a=e("../internals/function-uncurry-this"),o=e("../internals/indexed-object"),l=e("../internals/to-object"),c=e("../internals/length-of-array-like"),u=e("../internals/array-species-create"),h=a([].push),d=function(f){var p=f===1,g=f===2,m=f===3,b=f===4,w=f===6,_=f===7,T=f===5||w;return function(M,j,A,B){for(var H,U,X=l(M),V=o(X),O=i(j,A),N=c(V),C=0,x=B||u,S=p?x(M,N):g||_?x(M,0):void 0;N>C;C++)if((T||C in V)&&(U=O(H=V[C],C,X),f))if(p)S[C]=U;else if(U)switch(f){case 3:return!0;case 5:return H;case 6:return C;case 2:h(S,H)}else switch(f){case 4:return!1;case 7:h(S,H)}return w?-1:m||b?b:S}};r.exports={forEach:d(0),map:d(1),filter:d(2),some:d(3),every:d(4),find:d(5),findIndex:d(6),filterReject:d(7)}},{"../internals/array-species-create":233,"../internals/function-bind-context":262,"../internals/function-uncurry-this":268,"../internals/indexed-object":280,"../internals/length-of-array-like":299,"../internals/to-object":344}],230:[function(e,r,s){var i=e("../internals/to-absolute-index"),a=e("../internals/length-of-array-like"),o=e("../internals/create-property"),l=Array,c=Math.max;r.exports=function(u,h,d){for(var f=a(u),p=i(h,f),g=i(d===void 0?f:d,f),m=l(c(g-p,0)),b=0;p<g;p++,b++)o(m,b,u[p]);return m.length=b,m}},{"../internals/create-property":243,"../internals/length-of-array-like":299,"../internals/to-absolute-index":340}],231:[function(e,r,s){var i=e("../internals/function-uncurry-this");r.exports=i([].slice)},{"../internals/function-uncurry-this":268}],232:[function(e,r,s){var i=e("../internals/is-array"),a=e("../internals/is-constructor"),o=e("../internals/is-object"),l=e("../internals/well-known-symbol")("species"),c=Array;r.exports=function(u){var h;return i(u)&&(h=u.constructor,(a(h)&&(h===c||i(h.prototype))||o(h)&&(h=h[l])===null)&&(h=void 0)),h===void 0?c:h}},{"../internals/is-array":284,"../internals/is-constructor":286,"../internals/is-object":289,"../internals/well-known-symbol":357}],233:[function(e,r,s){var i=e("../internals/array-species-constructor");r.exports=function(a,o){return new(i(a))(o===0?0:o)}},{"../internals/array-species-constructor":232}],234:[function(e,r,s){var i=e("../internals/well-known-symbol")("iterator"),a=!1;try{var o=0,l={next:function(){return{done:!!o++}},return:function(){a=!0}};l[i]=function(){return this},Array.from(l,function(){throw 2})}catch{}r.exports=function(c,u){try{if(!u&&!a)return!1}catch{return!1}var h=!1;try{var d={};d[i]=function(){return{next:function(){return{done:h=!0}}}},c(d)}catch{}return h}},{"../internals/well-known-symbol":357}],235:[function(e,r,s){var i=e("../internals/function-uncurry-this"),a=i({}.toString),o=i("".slice);r.exports=function(l){return o(a(l),8,-1)}},{"../internals/function-uncurry-this":268}],236:[function(e,r,s){var i=e("../internals/to-string-tag-support"),a=e("../internals/is-callable"),o=e("../internals/classof-raw"),l=e("../internals/well-known-symbol")("toStringTag"),c=Object,u=o(function(){return arguments}())==="Arguments";r.exports=i?o:function(h){var d,f,p;return h===void 0?"Undefined":h===null?"Null":typeof(f=function(g,m){try{return g[m]}catch{}}(d=c(h),l))=="string"?f:u?o(d):(p=o(d))==="Object"&&a(d.callee)?"Arguments":p}},{"../internals/classof-raw":235,"../internals/is-callable":285,"../internals/to-string-tag-support":347,"../internals/well-known-symbol":357}],237:[function(e,r,s){var i=e("../internals/has-own-property"),a=e("../internals/own-keys"),o=e("../internals/object-get-own-property-descriptor"),l=e("../internals/object-define-property");r.exports=function(c,u,h){for(var d=a(u),f=l.f,p=o.f,g=0;g<d.length;g++){var m=d[g];i(c,m)||h&&i(h,m)||f(c,m,p(u,m))}}},{"../internals/has-own-property":275,"../internals/object-define-property":308,"../internals/object-get-own-property-descriptor":309,"../internals/own-keys":321}],238:[function(e,r,s){var i=e("../internals/well-known-symbol")("match");r.exports=function(a){var o=/./;try{"/./"[a](o)}catch{try{return o[i]=!1,"/./"[a](o)}catch{}}return!1}},{"../internals/well-known-symbol":357}],239:[function(e,r,s){var i=e("../internals/fails");r.exports=!i(function(){function a(){}return a.prototype.constructor=null,Object.getPrototypeOf(new a)!==a.prototype})},{"../internals/fails":260}],240:[function(e,r,s){r.exports=function(i,a){return{value:i,done:a}}},{}],241:[function(e,r,s){var i=e("../internals/descriptors"),a=e("../internals/object-define-property"),o=e("../internals/create-property-descriptor");r.exports=i?function(l,c,u){return a.f(l,c,o(1,u))}:function(l,c,u){return l[c]=u,l}},{"../internals/create-property-descriptor":242,"../internals/descriptors":247,"../internals/object-define-property":308}],242:[function(e,r,s){r.exports=function(i,a){return{enumerable:!(1&i),configurable:!(2&i),writable:!(4&i),value:a}}},{}],243:[function(e,r,s){var i=e("../internals/to-property-key"),a=e("../internals/object-define-property"),o=e("../internals/create-property-descriptor");r.exports=function(l,c,u){var h=i(c);h in l?a.f(l,h,o(0,u)):l[h]=u}},{"../internals/create-property-descriptor":242,"../internals/object-define-property":308,"../internals/to-property-key":346}],244:[function(e,r,s){var i=e("../internals/make-built-in"),a=e("../internals/object-define-property");r.exports=function(o,l,c){return c.get&&i(c.get,l,{getter:!0}),c.set&&i(c.set,l,{setter:!0}),a.f(o,l,c)}},{"../internals/make-built-in":300,"../internals/object-define-property":308}],245:[function(e,r,s){var i=e("../internals/is-callable"),a=e("../internals/object-define-property"),o=e("../internals/make-built-in"),l=e("../internals/define-global-property");r.exports=function(c,u,h,d){d||(d={});var f=d.enumerable,p=d.name!==void 0?d.name:u;if(i(h)&&o(h,p,d),d.global)f?c[u]=h:l(u,h);else{try{d.unsafe?c[u]&&(f=!0):delete c[u]}catch{}f?c[u]=h:a.f(c,u,{value:h,enumerable:!1,configurable:!d.nonConfigurable,writable:!d.nonWritable})}return c}},{"../internals/define-global-property":246,"../internals/is-callable":285,"../internals/make-built-in":300,"../internals/object-define-property":308}],246:[function(e,r,s){var i=e("../internals/global"),a=Object.defineProperty;r.exports=function(o,l){try{a(i,o,{value:l,configurable:!0,writable:!0})}catch{i[o]=l}return l}},{"../internals/global":274}],247:[function(e,r,s){var i=e("../internals/fails");r.exports=!i(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})},{"../internals/fails":260}],248:[function(e,r,s){var i=typeof document=="object"&&document.all,a=i===void 0&&i!==void 0;r.exports={all:i,IS_HTMLDDA:a}},{}],249:[function(e,r,s){var i=e("../internals/global"),a=e("../internals/is-object"),o=i.document,l=a(o)&&a(o.createElement);r.exports=function(c){return l?o.createElement(c):{}}},{"../internals/global":274,"../internals/is-object":289}],250:[function(e,r,s){var i=e("../internals/engine-is-deno"),a=e("../internals/engine-is-node");r.exports=!i&&!a&&typeof window=="object"&&typeof document=="object"},{"../internals/engine-is-deno":251,"../internals/engine-is-node":254}],251:[function(e,r,s){r.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},{}],252:[function(e,r,s){var i=e("../internals/engine-user-agent");r.exports=/ipad|iphone|ipod/i.test(i)&&typeof Pebble<"u"},{"../internals/engine-user-agent":256}],253:[function(e,r,s){var i=e("../internals/engine-user-agent");r.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(i)},{"../internals/engine-user-agent":256}],254:[function(e,r,s){var i=e("../internals/global"),a=e("../internals/classof-raw");r.exports=a(i.process)==="process"},{"../internals/classof-raw":235,"../internals/global":274}],255:[function(e,r,s){var i=e("../internals/engine-user-agent");r.exports=/web0s(?!.*chrome)/i.test(i)},{"../internals/engine-user-agent":256}],256:[function(e,r,s){r.exports=typeof navigator<"u"&&String(navigator.userAgent)||""},{}],257:[function(e,r,s){var i,a,o=e("../internals/global"),l=e("../internals/engine-user-agent"),c=o.process,u=o.Deno,h=c&&c.versions||u&&u.version,d=h&&h.v8;d&&(a=(i=d.split("."))[0]>0&&i[0]<4?1:+(i[0]+i[1])),!a&&l&&(!(i=l.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=l.match(/Chrome\/(\d+)/))&&(a=+i[1]),r.exports=a},{"../internals/engine-user-agent":256,"../internals/global":274}],258:[function(e,r,s){r.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],259:[function(e,r,s){var i=e("../internals/global"),a=e("../internals/object-get-own-property-descriptor").f,o=e("../internals/create-non-enumerable-property"),l=e("../internals/define-built-in"),c=e("../internals/define-global-property"),u=e("../internals/copy-constructor-properties"),h=e("../internals/is-forced");r.exports=function(d,f){var p,g,m,b,w,_=d.target,T=d.global,M=d.stat;if(p=T?i:M?i[_]||c(_,{}):(i[_]||{}).prototype)for(g in f){if(b=f[g],m=d.dontCallGetSet?(w=a(p,g))&&w.value:p[g],!h(T?g:_+(M?".":"#")+g,d.forced)&&m!==void 0){if(typeof b==typeof m)continue;u(b,m)}(d.sham||m&&m.sham)&&o(b,"sham",!0),l(p,g,b,d)}}},{"../internals/copy-constructor-properties":237,"../internals/create-non-enumerable-property":241,"../internals/define-built-in":245,"../internals/define-global-property":246,"../internals/global":274,"../internals/is-forced":287,"../internals/object-get-own-property-descriptor":309}],260:[function(e,r,s){r.exports=function(i){try{return!!i()}catch{return!0}}},{}],261:[function(e,r,s){var i=e("../internals/function-bind-native"),a=Function.prototype,o=a.apply,l=a.call;r.exports=typeof Reflect=="object"&&Reflect.apply||(i?l.bind(o):function(){return l.apply(o,arguments)})},{"../internals/function-bind-native":263}],262:[function(e,r,s){var i=e("../internals/function-uncurry-this-clause"),a=e("../internals/a-callable"),o=e("../internals/function-bind-native"),l=i(i.bind);r.exports=function(c,u){return a(c),u===void 0?c:o?l(c,u):function(){return c.apply(u,arguments)}}},{"../internals/a-callable":222,"../internals/function-bind-native":263,"../internals/function-uncurry-this-clause":267}],263:[function(e,r,s){var i=e("../internals/fails");r.exports=!i(function(){var a=(function(){}).bind();return typeof a!="function"||a.hasOwnProperty("prototype")})},{"../internals/fails":260}],264:[function(e,r,s){var i=e("../internals/function-bind-native"),a=Function.prototype.call;r.exports=i?a.bind(a):function(){return a.apply(a,arguments)}},{"../internals/function-bind-native":263}],265:[function(e,r,s){var i=e("../internals/descriptors"),a=e("../internals/has-own-property"),o=Function.prototype,l=i&&Object.getOwnPropertyDescriptor,c=a(o,"name"),u=c&&(function(){}).name==="something",h=c&&(!i||i&&l(o,"name").configurable);r.exports={EXISTS:c,PROPER:u,CONFIGURABLE:h}},{"../internals/descriptors":247,"../internals/has-own-property":275}],266:[function(e,r,s){var i=e("../internals/function-uncurry-this"),a=e("../internals/a-callable");r.exports=function(o,l,c){try{return i(a(Object.getOwnPropertyDescriptor(o,l)[c]))}catch{}}},{"../internals/a-callable":222,"../internals/function-uncurry-this":268}],267:[function(e,r,s){var i=e("../internals/classof-raw"),a=e("../internals/function-uncurry-this");r.exports=function(o){if(i(o)==="Function")return a(o)}},{"../internals/classof-raw":235,"../internals/function-uncurry-this":268}],268:[function(e,r,s){var i=e("../internals/function-bind-native"),a=Function.prototype,o=a.call,l=i&&a.bind.bind(o,o);r.exports=i?l:function(c){return function(){return o.apply(c,arguments)}}},{"../internals/function-bind-native":263}],269:[function(e,r,s){var i=e("../internals/global"),a=e("../internals/is-callable"),o=function(l){return a(l)?l:void 0};r.exports=function(l,c){return arguments.length<2?o(i[l]):i[l]&&i[l][c]}},{"../internals/global":274,"../internals/is-callable":285}],270:[function(e,r,s){var i=e("../internals/classof"),a=e("../internals/get-method"),o=e("../internals/is-null-or-undefined"),l=e("../internals/iterators"),c=e("../internals/well-known-symbol")("iterator");r.exports=function(u){if(!o(u))return a(u,c)||a(u,"@@iterator")||l[i(u)]}},{"../internals/classof":236,"../internals/get-method":273,"../internals/is-null-or-undefined":288,"../internals/iterators":298,"../internals/well-known-symbol":357}],271:[function(e,r,s){var i=e("../internals/function-call"),a=e("../internals/a-callable"),o=e("../internals/an-object"),l=e("../internals/try-to-string"),c=e("../internals/get-iterator-method"),u=TypeError;r.exports=function(h,d){var f=arguments.length<2?c(h):d;if(a(f))return o(i(f,h));throw new u(l(h)+" is not iterable")}},{"../internals/a-callable":222,"../internals/an-object":227,"../internals/function-call":264,"../internals/get-iterator-method":270,"../internals/try-to-string":349}],272:[function(e,r,s){var i=e("../internals/function-uncurry-this"),a=e("../internals/is-array"),o=e("../internals/is-callable"),l=e("../internals/classof-raw"),c=e("../internals/to-string"),u=i([].push);r.exports=function(h){if(o(h))return h;if(a(h)){for(var d=h.length,f=[],p=0;p<d;p++){var g=h[p];typeof g=="string"?u(f,g):typeof g!="number"&&l(g)!=="Number"&&l(g)!=="String"||u(f,c(g))}var m=f.length,b=!0;return function(w,_){if(b)return b=!1,_;if(a(this))return _;for(var T=0;T<m;T++)if(f[T]===w)return _}}}},{"../internals/classof-raw":235,"../internals/function-uncurry-this":268,"../internals/is-array":284,"../internals/is-callable":285,"../internals/to-string":348}],273:[function(e,r,s){var i=e("../internals/a-callable"),a=e("../internals/is-null-or-undefined");r.exports=function(o,l){var c=o[l];return a(c)?void 0:i(c)}},{"../internals/a-callable":222,"../internals/is-null-or-undefined":288}],274:[function(e,r,s){(function(i){(function(){var a=function(o){return o&&o.Math===Math&&o};r.exports=a(typeof globalThis=="object"&&globalThis)||a(typeof window=="object"&&window)||a(typeof self=="object"&&self)||a(typeof i=="object"&&i)||function(){return this}()||this||Function("return this")()}).call(this)}).call(this,typeof _r<"u"?_r:typeof self<"u"?self:typeof window<"u"?window:{})},{}],275:[function(e,r,s){var i=e("../internals/function-uncurry-this"),a=e("../internals/to-object"),o=i({}.hasOwnProperty);r.exports=Object.hasOwn||function(l,c){return o(a(l),c)}},{"../internals/function-uncurry-this":268,"../internals/to-object":344}],276:[function(e,r,s){r.exports={}},{}],277:[function(e,r,s){r.exports=function(i,a){try{arguments.length===1?console.error(i):console.error(i,a)}catch{}}},{}],278:[function(e,r,s){var i=e("../internals/get-built-in");r.exports=i("document","documentElement")},{"../internals/get-built-in":269}],279:[function(e,r,s){var i=e("../internals/descriptors"),a=e("../internals/fails"),o=e("../internals/document-create-element");r.exports=!i&&!a(function(){return Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a!==7})},{"../internals/descriptors":247,"../internals/document-create-element":249,"../internals/fails":260}],280:[function(e,r,s){var i=e("../internals/function-uncurry-this"),a=e("../internals/fails"),o=e("../internals/classof-raw"),l=Object,c=i("".split);r.exports=a(function(){return!l("z").propertyIsEnumerable(0)})?function(u){return o(u)==="String"?c(u,""):l(u)}:l},{"../internals/classof-raw":235,"../internals/fails":260,"../internals/function-uncurry-this":268}],281:[function(e,r,s){var i=e("../internals/function-uncurry-this"),a=e("../internals/is-callable"),o=e("../internals/shared-store"),l=i(Function.toString);a(o.inspectSource)||(o.inspectSource=function(c){return l(c)}),r.exports=o.inspectSource},{"../internals/function-uncurry-this":268,"../internals/is-callable":285,"../internals/shared-store":333}],282:[function(e,r,s){var i,a,o,l=e("../internals/weak-map-basic-detection"),c=e("../internals/global"),u=e("../internals/is-object"),h=e("../internals/create-non-enumerable-property"),d=e("../internals/has-own-property"),f=e("../internals/shared-store"),p=e("../internals/shared-key"),g=e("../internals/hidden-keys"),m=c.TypeError,b=c.WeakMap;if(l||f.state){var w=f.state||(f.state=new b);w.get=w.get,w.has=w.has,w.set=w.set,i=function(T,M){if(w.has(T))throw new m("Object already initialized");return M.facade=T,w.set(T,M),M},a=function(T){return w.get(T)||{}},o=function(T){return w.has(T)}}else{var _=p("state");g[_]=!0,i=function(T,M){if(d(T,_))throw new m("Object already initialized");return M.facade=T,h(T,_,M),M},a=function(T){return d(T,_)?T[_]:{}},o=function(T){return d(T,_)}}r.exports={set:i,get:a,has:o,enforce:function(T){return o(T)?a(T):i(T,{})},getterFor:function(T){return function(M){var j;if(!u(M)||(j=a(M)).type!==T)throw new m("Incompatible receiver, "+T+" required");return j}}}},{"../internals/create-non-enumerable-property":241,"../internals/global":274,"../internals/has-own-property":275,"../internals/hidden-keys":276,"../internals/is-object":289,"../internals/shared-key":332,"../internals/shared-store":333,"../internals/weak-map-basic-detection":354}],283:[function(e,r,s){var i=e("../internals/well-known-symbol"),a=e("../internals/iterators"),o=i("iterator"),l=Array.prototype;r.exports=function(c){return c!==void 0&&(a.Array===c||l[o]===c)}},{"../internals/iterators":298,"../internals/well-known-symbol":357}],284:[function(e,r,s){var i=e("../internals/classof-raw");r.exports=Array.isArray||function(a){return i(a)==="Array"}},{"../internals/classof-raw":235}],285:[function(e,r,s){var i=e("../internals/document-all"),a=i.all;r.exports=i.IS_HTMLDDA?function(o){return typeof o=="function"||o===a}:function(o){return typeof o=="function"}},{"../internals/document-all":248}],286:[function(e,r,s){var i=e("../internals/function-uncurry-this"),a=e("../internals/fails"),o=e("../internals/is-callable"),l=e("../internals/classof"),c=e("../internals/get-built-in"),u=e("../internals/inspect-source"),h=function(){},d=[],f=c("Reflect","construct"),p=/^\s*(?:class|function)\b/,g=i(p.exec),m=!p.test(h),b=function(_){if(!o(_))return!1;try{return f(h,d,_),!0}catch{return!1}},w=function(_){if(!o(_))return!1;switch(l(_)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return m||!!g(p,u(_))}catch{return!0}};w.sham=!0,r.exports=!f||a(function(){var _;return b(b.call)||!b(Object)||!b(function(){_=!0})||_})?w:b},{"../internals/classof":236,"../internals/fails":260,"../internals/function-uncurry-this":268,"../internals/get-built-in":269,"../internals/inspect-source":281,"../internals/is-callable":285}],287:[function(e,r,s){var i=e("../internals/fails"),a=e("../internals/is-callable"),o=/#|\.prototype\./,l=function(f,p){var g=u[c(f)];return g===d||g!==h&&(a(p)?i(p):!!p)},c=l.normalize=function(f){return String(f).replace(o,".").toLowerCase()},u=l.data={},h=l.NATIVE="N",d=l.POLYFILL="P";r.exports=l},{"../internals/fails":260,"../internals/is-callable":285}],288:[function(e,r,s){r.exports=function(i){return i==null}},{}],289:[function(e,r,s){var i=e("../internals/is-callable"),a=e("../internals/document-all"),o=a.all;r.exports=a.IS_HTMLDDA?function(l){return typeof l=="object"?l!==null:i(l)||l===o}:function(l){return typeof l=="object"?l!==null:i(l)}},{"../internals/document-all":248,"../internals/is-callable":285}],290:[function(e,r,s){r.exports=!1},{}],291:[function(e,r,s){var i=e("../internals/is-object"),a=e("../internals/classof-raw"),o=e("../internals/well-known-symbol")("match");r.exports=function(l){var c;return i(l)&&((c=l[o])!==void 0?!!c:a(l)==="RegExp")}},{"../internals/classof-raw":235,"../internals/is-object":289,"../internals/well-known-symbol":357}],292:[function(e,r,s){var i=e("../internals/get-built-in"),a=e("../internals/is-callable"),o=e("../internals/object-is-prototype-of"),l=e("../internals/use-symbol-as-uid"),c=Object;r.exports=l?function(u){return typeof u=="symbol"}:function(u){var h=i("Symbol");return a(h)&&o(h.prototype,c(u))}},{"../internals/get-built-in":269,"../internals/is-callable":285,"../internals/object-is-prototype-of":314,"../internals/use-symbol-as-uid":351}],293:[function(e,r,s){var i=e("../internals/function-bind-context"),a=e("../internals/function-call"),o=e("../internals/an-object"),l=e("../internals/try-to-string"),c=e("../internals/is-array-iterator-method"),u=e("../internals/length-of-array-like"),h=e("../internals/object-is-prototype-of"),d=e("../internals/get-iterator"),f=e("../internals/get-iterator-method"),p=e("../internals/iterator-close"),g=TypeError,m=function(w,_){this.stopped=w,this.result=_},b=m.prototype;r.exports=function(w,_,T){var M,j,A,B,H,U,X,V=T&&T.that,O=!(!T||!T.AS_ENTRIES),N=!(!T||!T.IS_RECORD),C=!(!T||!T.IS_ITERATOR),x=!(!T||!T.INTERRUPTED),S=i(_,V),k=function(I){return M&&p(M,"normal",I),new m(!0,I)},E=function(I){return O?(o(I),x?S(I[0],I[1],k):S(I[0],I[1])):x?S(I,k):S(I)};if(N)M=w.iterator;else if(C)M=w;else{if(!(j=f(w)))throw new g(l(w)+" is not iterable");if(c(j)){for(A=0,B=u(w);B>A;A++)if((H=E(w[A]))&&h(b,H))return H;return new m(!1)}M=d(w,j)}for(U=N?w.next:M.next;!(X=a(U,M)).done;){try{H=E(X.value)}catch(I){p(M,"throw",I)}if(typeof H=="object"&&H&&h(b,H))return H}return new m(!1)}},{"../internals/an-object":227,"../internals/function-bind-context":262,"../internals/function-call":264,"../internals/get-iterator":271,"../internals/get-iterator-method":270,"../internals/is-array-iterator-method":283,"../internals/iterator-close":294,"../internals/length-of-array-like":299,"../internals/object-is-prototype-of":314,"../internals/try-to-string":349}],294:[function(e,r,s){var i=e("../internals/function-call"),a=e("../internals/an-object"),o=e("../internals/get-method");r.exports=function(l,c,u){var h,d;a(l);try{if(!(h=o(l,"return"))){if(c==="throw")throw u;return u}h=i(h,l)}catch(f){d=!0,h=f}if(c==="throw")throw u;if(d)throw h;return a(h),u}},{"../internals/an-object":227,"../internals/function-call":264,"../internals/get-method":273}],295:[function(e,r,s){var i=e("../internals/iterators-core").IteratorPrototype,a=e("../internals/object-create"),o=e("../internals/create-property-descriptor"),l=e("../internals/set-to-string-tag"),c=e("../internals/iterators"),u=function(){return this};r.exports=function(h,d,f,p){var g=d+" Iterator";return h.prototype=a(i,{next:o(+!p,f)}),l(h,g,!1,!0),c[g]=u,h}},{"../internals/create-property-descriptor":242,"../internals/iterators":298,"../internals/iterators-core":297,"../internals/object-create":306,"../internals/set-to-string-tag":331}],296:[function(e,r,s){var i=e("../internals/export"),a=e("../internals/function-call"),o=e("../internals/is-pure"),l=e("../internals/function-name"),c=e("../internals/is-callable"),u=e("../internals/iterator-create-constructor"),h=e("../internals/object-get-prototype-of"),d=e("../internals/object-set-prototype-of"),f=e("../internals/set-to-string-tag"),p=e("../internals/create-non-enumerable-property"),g=e("../internals/define-built-in"),m=e("../internals/well-known-symbol"),b=e("../internals/iterators"),w=e("../internals/iterators-core"),_=l.PROPER,T=l.CONFIGURABLE,M=w.IteratorPrototype,j=w.BUGGY_SAFARI_ITERATORS,A=m("iterator"),B=function(){return this};r.exports=function(H,U,X,V,O,N,C){u(X,U,V);var x,S,k,E=function(q){if(q===O&&J)return J;if(!j&&q&&q in F)return F[q];switch(q){case"keys":case"values":case"entries":return function(){return new X(this,q)}}return function(){return new X(this)}},I=U+" Iterator",D=!1,F=H.prototype,Y=F[A]||F["@@iterator"]||O&&F[O],J=!j&&Y||E(O),se=U==="Array"&&F.entries||Y;if(se&&(x=h(se.call(new H)))!==Object.prototype&&x.next&&(o||h(x)===M||(d?d(x,M):c(x[A])||g(x,A,B)),f(x,I,!0,!0),o&&(b[I]=B)),_&&O==="values"&&Y&&Y.name!=="values"&&(!o&&T?p(F,"name","values"):(D=!0,J=function(){return a(Y,this)})),O)if(S={values:E("values"),keys:N?J:E("keys"),entries:E("entries")},C)for(k in S)(j||D||!(k in F))&&g(F,k,S[k]);else i({target:U,proto:!0,forced:j||D},S);return o&&!C||F[A]===J||g(F,A,J,{name:O}),b[U]=J,S}},{"../internals/create-non-enumerable-property":241,"../internals/define-built-in":245,"../internals/export":259,"../internals/function-call":264,"../internals/function-name":265,"../internals/is-callable":285,"../internals/is-pure":290,"../internals/iterator-create-constructor":295,"../internals/iterators":298,"../internals/iterators-core":297,"../internals/object-get-prototype-of":313,"../internals/object-set-prototype-of":318,"../internals/set-to-string-tag":331,"../internals/well-known-symbol":357}],297:[function(e,r,s){var i,a,o,l=e("../internals/fails"),c=e("../internals/is-callable"),u=e("../internals/is-object"),h=e("../internals/object-create"),d=e("../internals/object-get-prototype-of"),f=e("../internals/define-built-in"),p=e("../internals/well-known-symbol"),g=e("../internals/is-pure"),m=p("iterator"),b=!1;[].keys&&("next"in(o=[].keys())?(a=d(d(o)))!==Object.prototype&&(i=a):b=!0),!u(i)||l(function(){var w={};return i[m].call(w)!==w})?i={}:g&&(i=h(i)),c(i[m])||f(i,m,function(){return this}),r.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:b}},{"../internals/define-built-in":245,"../internals/fails":260,"../internals/is-callable":285,"../internals/is-object":289,"../internals/is-pure":290,"../internals/object-create":306,"../internals/object-get-prototype-of":313,"../internals/well-known-symbol":357}],298:[function(e,r,s){arguments[4][276][0].apply(s,arguments)},{dup:276}],299:[function(e,r,s){var i=e("../internals/to-length");r.exports=function(a){return i(a.length)}},{"../internals/to-length":343}],300:[function(e,r,s){var i=e("../internals/function-uncurry-this"),a=e("../internals/fails"),o=e("../internals/is-callable"),l=e("../internals/has-own-property"),c=e("../internals/descriptors"),u=e("../internals/function-name").CONFIGURABLE,h=e("../internals/inspect-source"),d=e("../internals/internal-state"),f=d.enforce,p=d.get,g=String,m=Object.defineProperty,b=i("".slice),w=i("".replace),_=i([].join),T=c&&!a(function(){return m(function(){},"length",{value:8}).length!==8}),M=String(String).split("String"),j=r.exports=function(A,B,H){b(g(B),0,7)==="Symbol("&&(B="["+w(g(B),/^Symbol\(([^)]*)\)/,"$1")+"]"),H&&H.getter&&(B="get "+B),H&&H.setter&&(B="set "+B),(!l(A,"name")||u&&A.name!==B)&&(c?m(A,"name",{value:B,configurable:!0}):A.name=B),T&&H&&l(H,"arity")&&A.length!==H.arity&&m(A,"length",{value:H.arity});try{H&&l(H,"constructor")&&H.constructor?c&&m(A,"prototype",{writable:!1}):A.prototype&&(A.prototype=void 0)}catch{}var U=f(A);return l(U,"source")||(U.source=_(M,typeof B=="string"?B:"")),A};Function.prototype.toString=j(function(){return o(this)&&p(this).source||h(this)},"toString")},{"../internals/descriptors":247,"../internals/fails":260,"../internals/function-name":265,"../internals/function-uncurry-this":268,"../internals/has-own-property":275,"../internals/inspect-source":281,"../internals/internal-state":282,"../internals/is-callable":285}],301:[function(e,r,s){var i=Math.ceil,a=Math.floor;r.exports=Math.trunc||function(o){var l=+o;return(l>0?a:i)(l)}},{}],302:[function(e,r,s){var i,a,o,l,c,u=e("../internals/global"),h=e("../internals/function-bind-context"),d=e("../internals/object-get-own-property-descriptor").f,f=e("../internals/task").set,p=e("../internals/queue"),g=e("../internals/engine-is-ios"),m=e("../internals/engine-is-ios-pebble"),b=e("../internals/engine-is-webos-webkit"),w=e("../internals/engine-is-node"),_=u.MutationObserver||u.WebKitMutationObserver,T=u.document,M=u.process,j=u.Promise,A=d(u,"queueMicrotask"),B=A&&A.value;if(!B){var H=new p,U=function(){var X,V;for(w&&(X=M.domain)&&X.exit();V=H.get();)try{V()}catch(O){throw H.head&&i(),O}X&&X.enter()};g||w||b||!_||!T?!m&&j&&j.resolve?((l=j.resolve(void 0)).constructor=j,c=h(l.then,l),i=function(){c(U)}):w?i=function(){M.nextTick(U)}:(f=h(f,u),i=function(){f(U)}):(a=!0,o=T.createTextNode(""),new _(U).observe(o,{characterData:!0}),i=function(){o.data=a=!a}),B=function(X){H.head||i(),H.add(X)}}r.exports=B},{"../internals/engine-is-ios":253,"../internals/engine-is-ios-pebble":252,"../internals/engine-is-node":254,"../internals/engine-is-webos-webkit":255,"../internals/function-bind-context":262,"../internals/global":274,"../internals/object-get-own-property-descriptor":309,"../internals/queue":328,"../internals/task":339}],303:[function(e,r,s){var i=e("../internals/a-callable"),a=TypeError,o=function(l){var c,u;this.promise=new l(function(h,d){if(c!==void 0||u!==void 0)throw new a("Bad Promise constructor");c=h,u=d}),this.resolve=i(c),this.reject=i(u)};r.exports.f=function(l){return new o(l)}},{"../internals/a-callable":222}],304:[function(e,r,s){var i=e("../internals/is-regexp"),a=TypeError;r.exports=function(o){if(i(o))throw new a("The method doesn't accept regular expressions");return o}},{"../internals/is-regexp":291}],305:[function(e,r,s){var i=e("../internals/descriptors"),a=e("../internals/function-uncurry-this"),o=e("../internals/function-call"),l=e("../internals/fails"),c=e("../internals/object-keys"),u=e("../internals/object-get-own-property-symbols"),h=e("../internals/object-property-is-enumerable"),d=e("../internals/to-object"),f=e("../internals/indexed-object"),p=Object.assign,g=Object.defineProperty,m=a([].concat);r.exports=!p||l(function(){if(i&&p({b:1},p(g({},"a",{enumerable:!0,get:function(){g(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var b={},w={},_=Symbol("assign detection");return b[_]=7,"abcdefghijklmnopqrst".split("").forEach(function(T){w[T]=T}),p({},b)[_]!==7||c(p({},w)).join("")!=="abcdefghijklmnopqrst"})?function(b,w){for(var _=d(b),T=arguments.length,M=1,j=u.f,A=h.f;T>M;)for(var B,H=f(arguments[M++]),U=j?m(c(H),j(H)):c(H),X=U.length,V=0;X>V;)B=U[V++],i&&!o(A,H,B)||(_[B]=H[B]);return _}:p},{"../internals/descriptors":247,"../internals/fails":260,"../internals/function-call":264,"../internals/function-uncurry-this":268,"../internals/indexed-object":280,"../internals/object-get-own-property-symbols":312,"../internals/object-keys":316,"../internals/object-property-is-enumerable":317,"../internals/to-object":344}],306:[function(e,r,s){var i,a=e("../internals/an-object"),o=e("../internals/object-define-properties"),l=e("../internals/enum-bug-keys"),c=e("../internals/hidden-keys"),u=e("../internals/html"),h=e("../internals/document-create-element"),d=e("../internals/shared-key"),f=d("IE_PROTO"),p=function(){},g=function(w){return"<script>"+w+"<\/script>"},m=function(w){w.write(g("")),w.close();var _=w.parentWindow.Object;return w=null,_},b=function(){try{i=new ActiveXObject("htmlfile")}catch{}var w,_;b=typeof document<"u"?document.domain&&i?m(i):((_=h("iframe")).style.display="none",u.appendChild(_),_.src="javascript:",(w=_.contentWindow.document).open(),w.write(g("document.F=Object")),w.close(),w.F):m(i);for(var T=l.length;T--;)delete b.prototype[l[T]];return b()};c[f]=!0,r.exports=Object.create||function(w,_){var T;return w!==null?(p.prototype=a(w),T=new p,p.prototype=null,T[f]=w):T=b(),_===void 0?T:o.f(T,_)}},{"../internals/an-object":227,"../internals/document-create-element":249,"../internals/enum-bug-keys":258,"../internals/hidden-keys":276,"../internals/html":278,"../internals/object-define-properties":307,"../internals/shared-key":332}],307:[function(e,r,s){var i=e("../internals/descriptors"),a=e("../internals/v8-prototype-define-bug"),o=e("../internals/object-define-property"),l=e("../internals/an-object"),c=e("../internals/to-indexed-object"),u=e("../internals/object-keys");s.f=i&&!a?Object.defineProperties:function(h,d){l(h);for(var f,p=c(d),g=u(d),m=g.length,b=0;m>b;)o.f(h,f=g[b++],p[f]);return h}},{"../internals/an-object":227,"../internals/descriptors":247,"../internals/object-define-property":308,"../internals/object-keys":316,"../internals/to-indexed-object":341,"../internals/v8-prototype-define-bug":352}],308:[function(e,r,s){var i=e("../internals/descriptors"),a=e("../internals/ie8-dom-define"),o=e("../internals/v8-prototype-define-bug"),l=e("../internals/an-object"),c=e("../internals/to-property-key"),u=TypeError,h=Object.defineProperty,d=Object.getOwnPropertyDescriptor;s.f=i?o?function(f,p,g){if(l(f),p=c(p),l(g),typeof f=="function"&&p==="prototype"&&"value"in g&&"writable"in g&&!g.writable){var m=d(f,p);m&&m.writable&&(f[p]=g.value,g={configurable:"configurable"in g?g.configurable:m.configurable,enumerable:"enumerable"in g?g.enumerable:m.enumerable,writable:!1})}return h(f,p,g)}:h:function(f,p,g){if(l(f),p=c(p),l(g),a)try{return h(f,p,g)}catch{}if("get"in g||"set"in g)throw new u("Accessors not supported");return"value"in g&&(f[p]=g.value),f}},{"../internals/an-object":227,"../internals/descriptors":247,"../internals/ie8-dom-define":279,"../internals/to-property-key":346,"../internals/v8-prototype-define-bug":352}],309:[function(e,r,s){var i=e("../internals/descriptors"),a=e("../internals/function-call"),o=e("../internals/object-property-is-enumerable"),l=e("../internals/create-property-descriptor"),c=e("../internals/to-indexed-object"),u=e("../internals/to-property-key"),h=e("../internals/has-own-property"),d=e("../internals/ie8-dom-define"),f=Object.getOwnPropertyDescriptor;s.f=i?f:function(p,g){if(p=c(p),g=u(g),d)try{return f(p,g)}catch{}if(h(p,g))return l(!a(o.f,p,g),p[g])}},{"../internals/create-property-descriptor":242,"../internals/descriptors":247,"../internals/function-call":264,"../internals/has-own-property":275,"../internals/ie8-dom-define":279,"../internals/object-property-is-enumerable":317,"../internals/to-indexed-object":341,"../internals/to-property-key":346}],310:[function(e,r,s){var i=e("../internals/classof-raw"),a=e("../internals/to-indexed-object"),o=e("../internals/object-get-own-property-names").f,l=e("../internals/array-slice-simple"),c=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];r.exports.f=function(u){return c&&i(u)==="Window"?function(h){try{return o(h)}catch{return l(c)}}(u):o(a(u))}},{"../internals/array-slice-simple":230,"../internals/classof-raw":235,"../internals/object-get-own-property-names":311,"../internals/to-indexed-object":341}],311:[function(e,r,s){var i=e("../internals/object-keys-internal"),a=e("../internals/enum-bug-keys").concat("length","prototype");s.f=Object.getOwnPropertyNames||function(o){return i(o,a)}},{"../internals/enum-bug-keys":258,"../internals/object-keys-internal":315}],312:[function(e,r,s){s.f=Object.getOwnPropertySymbols},{}],313:[function(e,r,s){var i=e("../internals/has-own-property"),a=e("../internals/is-callable"),o=e("../internals/to-object"),l=e("../internals/shared-key"),c=e("../internals/correct-prototype-getter"),u=l("IE_PROTO"),h=Object,d=h.prototype;r.exports=c?h.getPrototypeOf:function(f){var p=o(f);if(i(p,u))return p[u];var g=p.constructor;return a(g)&&p instanceof g?g.prototype:p instanceof h?d:null}},{"../internals/correct-prototype-getter":239,"../internals/has-own-property":275,"../internals/is-callable":285,"../internals/shared-key":332,"../internals/to-object":344}],314:[function(e,r,s){var i=e("../internals/function-uncurry-this");r.exports=i({}.isPrototypeOf)},{"../internals/function-uncurry-this":268}],315:[function(e,r,s){var i=e("../internals/function-uncurry-this"),a=e("../internals/has-own-property"),o=e("../internals/to-indexed-object"),l=e("../internals/array-includes").indexOf,c=e("../internals/hidden-keys"),u=i([].push);r.exports=function(h,d){var f,p=o(h),g=0,m=[];for(f in p)!a(c,f)&&a(p,f)&&u(m,f);for(;d.length>g;)a(p,f=d[g++])&&(~l(m,f)||u(m,f));return m}},{"../internals/array-includes":228,"../internals/function-uncurry-this":268,"../internals/has-own-property":275,"../internals/hidden-keys":276,"../internals/to-indexed-object":341}],316:[function(e,r,s){var i=e("../internals/object-keys-internal"),a=e("../internals/enum-bug-keys");r.exports=Object.keys||function(o){return i(o,a)}},{"../internals/enum-bug-keys":258,"../internals/object-keys-internal":315}],317:[function(e,r,s){var i={}.propertyIsEnumerable,a=Object.getOwnPropertyDescriptor,o=a&&!i.call({1:2},1);s.f=o?function(l){var c=a(this,l);return!!c&&c.enumerable}:i},{}],318:[function(e,r,s){var i=e("../internals/function-uncurry-this-accessor"),a=e("../internals/an-object"),o=e("../internals/a-possible-prototype");r.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var l,c=!1,u={};try{(l=i(Object.prototype,"__proto__","set"))(u,[]),c=u instanceof Array}catch{}return function(h,d){return a(h),o(d),c?l(h,d):h.__proto__=d,h}}():void 0)},{"../internals/a-possible-prototype":224,"../internals/an-object":227,"../internals/function-uncurry-this-accessor":266}],319:[function(e,r,s){var i=e("../internals/descriptors"),a=e("../internals/fails"),o=e("../internals/function-uncurry-this"),l=e("../internals/object-get-prototype-of"),c=e("../internals/object-keys"),u=e("../internals/to-indexed-object"),h=o(e("../internals/object-property-is-enumerable").f),d=o([].push),f=i&&a(function(){var g=Object.create(null);return g[2]=2,!h(g,2)}),p=function(g){return function(m){for(var b,w=u(m),_=c(w),T=f&&l(w)===null,M=_.length,j=0,A=[];M>j;)b=_[j++],i&&!(T?b in w:h(w,b))||d(A,g?[b,w[b]]:w[b]);return A}};r.exports={entries:p(!0),values:p(!1)}},{"../internals/descriptors":247,"../internals/fails":260,"../internals/function-uncurry-this":268,"../internals/object-get-prototype-of":313,"../internals/object-keys":316,"../internals/object-property-is-enumerable":317,"../internals/to-indexed-object":341}],320:[function(e,r,s){var i=e("../internals/function-call"),a=e("../internals/is-callable"),o=e("../internals/is-object"),l=TypeError;r.exports=function(c,u){var h,d;if(u==="string"&&a(h=c.toString)&&!o(d=i(h,c))||a(h=c.valueOf)&&!o(d=i(h,c))||u!=="string"&&a(h=c.toString)&&!o(d=i(h,c)))return d;throw new l("Can't convert object to primitive value")}},{"../internals/function-call":264,"../internals/is-callable":285,"../internals/is-object":289}],321:[function(e,r,s){var i=e("../internals/get-built-in"),a=e("../internals/function-uncurry-this"),o=e("../internals/object-get-own-property-names"),l=e("../internals/object-get-own-property-symbols"),c=e("../internals/an-object"),u=a([].concat);r.exports=i("Reflect","ownKeys")||function(h){var d=o.f(c(h)),f=l.f;return f?u(d,f(h)):d}},{"../internals/an-object":227,"../internals/function-uncurry-this":268,"../internals/get-built-in":269,"../internals/object-get-own-property-names":311,"../internals/object-get-own-property-symbols":312}],322:[function(e,r,s){var i=e("../internals/global");r.exports=i},{"../internals/global":274}],323:[function(e,r,s){r.exports=function(i){try{return{error:!1,value:i()}}catch(a){return{error:!0,value:a}}}},{}],324:[function(e,r,s){var i=e("../internals/global"),a=e("../internals/promise-native-constructor"),o=e("../internals/is-callable"),l=e("../internals/is-forced"),c=e("../internals/inspect-source"),u=e("../internals/well-known-symbol"),h=e("../internals/engine-is-browser"),d=e("../internals/engine-is-deno"),f=e("../internals/is-pure"),p=e("../internals/engine-v8-version"),g=a&&a.prototype,m=u("species"),b=!1,w=o(i.PromiseRejectionEvent),_=l("Promise",function(){var T=c(a),M=T!==String(a);if(!M&&p===66||f&&(!g.catch||!g.finally))return!0;if(!p||p<51||!/native code/.test(T)){var j=new a(function(B){B(1)}),A=function(B){B(function(){},function(){})};if((j.constructor={})[m]=A,!(b=j.then(function(){})instanceof A))return!0}return!M&&(h||d)&&!w});r.exports={CONSTRUCTOR:_,REJECTION_EVENT:w,SUBCLASSING:b}},{"../internals/engine-is-browser":250,"../internals/engine-is-deno":251,"../internals/engine-v8-version":257,"../internals/global":274,"../internals/inspect-source":281,"../internals/is-callable":285,"../internals/is-forced":287,"../internals/is-pure":290,"../internals/promise-native-constructor":325,"../internals/well-known-symbol":357}],325:[function(e,r,s){var i=e("../internals/global");r.exports=i.Promise},{"../internals/global":274}],326:[function(e,r,s){var i=e("../internals/an-object"),a=e("../internals/is-object"),o=e("../internals/new-promise-capability");r.exports=function(l,c){if(i(l),a(c)&&c.constructor===l)return c;var u=o.f(l);return(0,u.resolve)(c),u.promise}},{"../internals/an-object":227,"../internals/is-object":289,"../internals/new-promise-capability":303}],327:[function(e,r,s){var i=e("../internals/promise-native-constructor"),a=e("../internals/check-correctness-of-iteration"),o=e("../internals/promise-constructor-detection").CONSTRUCTOR;r.exports=o||!a(function(l){i.all(l).then(void 0,function(){})})},{"../internals/check-correctness-of-iteration":234,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325}],328:[function(e,r,s){var i=function(){this.head=null,this.tail=null};i.prototype={add:function(a){var o={item:a,next:null},l=this.tail;l?l.next=o:this.head=o,this.tail=o},get:function(){var a=this.head;if(a)return(this.head=a.next)===null&&(this.tail=null),a.item}},r.exports=i},{}],329:[function(e,r,s){var i=e("../internals/is-null-or-undefined"),a=TypeError;r.exports=function(o){if(i(o))throw new a("Can't call method on "+o);return o}},{"../internals/is-null-or-undefined":288}],330:[function(e,r,s){var i=e("../internals/get-built-in"),a=e("../internals/define-built-in-accessor"),o=e("../internals/well-known-symbol"),l=e("../internals/descriptors"),c=o("species");r.exports=function(u){var h=i(u);l&&h&&!h[c]&&a(h,c,{configurable:!0,get:function(){return this}})}},{"../internals/define-built-in-accessor":244,"../internals/descriptors":247,"../internals/get-built-in":269,"../internals/well-known-symbol":357}],331:[function(e,r,s){var i=e("../internals/object-define-property").f,a=e("../internals/has-own-property"),o=e("../internals/well-known-symbol")("toStringTag");r.exports=function(l,c,u){l&&!u&&(l=l.prototype),l&&!a(l,o)&&i(l,o,{configurable:!0,value:c})}},{"../internals/has-own-property":275,"../internals/object-define-property":308,"../internals/well-known-symbol":357}],332:[function(e,r,s){var i=e("../internals/shared"),a=e("../internals/uid"),o=i("keys");r.exports=function(l){return o[l]||(o[l]=a(l))}},{"../internals/shared":334,"../internals/uid":350}],333:[function(e,r,s){var i=e("../internals/global"),a=e("../internals/define-global-property"),o=i["__core-js_shared__"]||a("__core-js_shared__",{});r.exports=o},{"../internals/define-global-property":246,"../internals/global":274}],334:[function(e,r,s){var i=e("../internals/is-pure"),a=e("../internals/shared-store");(r.exports=function(o,l){return a[o]||(a[o]=l!==void 0?l:{})})("versions",[]).push({version:"3.33.0",mode:i?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE",source:"https://github.com/zloirock/core-js"})},{"../internals/is-pure":290,"../internals/shared-store":333}],335:[function(e,r,s){var i=e("../internals/an-object"),a=e("../internals/a-constructor"),o=e("../internals/is-null-or-undefined"),l=e("../internals/well-known-symbol")("species");r.exports=function(c,u){var h,d=i(c).constructor;return d===void 0||o(h=i(d)[l])?u:a(h)}},{"../internals/a-constructor":223,"../internals/an-object":227,"../internals/is-null-or-undefined":288,"../internals/well-known-symbol":357}],336:[function(e,r,s){var i=e("../internals/engine-v8-version"),a=e("../internals/fails"),o=e("../internals/global").String;r.exports=!!Object.getOwnPropertySymbols&&!a(function(){var l=Symbol("symbol detection");return!o(l)||!(Object(l)instanceof Symbol)||!Symbol.sham&&i&&i<41})},{"../internals/engine-v8-version":257,"../internals/fails":260,"../internals/global":274}],337:[function(e,r,s){var i=e("../internals/function-call"),a=e("../internals/get-built-in"),o=e("../internals/well-known-symbol"),l=e("../internals/define-built-in");r.exports=function(){var c=a("Symbol"),u=c&&c.prototype,h=u&&u.valueOf,d=o("toPrimitive");u&&!u[d]&&l(u,d,function(f){return i(h,this)},{arity:1})}},{"../internals/define-built-in":245,"../internals/function-call":264,"../internals/get-built-in":269,"../internals/well-known-symbol":357}],338:[function(e,r,s){var i=e("../internals/symbol-constructor-detection");r.exports=i&&!!Symbol.for&&!!Symbol.keyFor},{"../internals/symbol-constructor-detection":336}],339:[function(e,r,s){var i,a,o,l,c=e("../internals/global"),u=e("../internals/function-apply"),h=e("../internals/function-bind-context"),d=e("../internals/is-callable"),f=e("../internals/has-own-property"),p=e("../internals/fails"),g=e("../internals/html"),m=e("../internals/array-slice"),b=e("../internals/document-create-element"),w=e("../internals/validate-arguments-length"),_=e("../internals/engine-is-ios"),T=e("../internals/engine-is-node"),M=c.setImmediate,j=c.clearImmediate,A=c.process,B=c.Dispatch,H=c.Function,U=c.MessageChannel,X=c.String,V=0,O={};p(function(){i=c.location});var N=function(k){if(f(O,k)){var E=O[k];delete O[k],E()}},C=function(k){return function(){N(k)}},x=function(k){N(k.data)},S=function(k){c.postMessage(X(k),i.protocol+"//"+i.host)};M&&j||(M=function(k){w(arguments.length,1);var E=d(k)?k:H(k),I=m(arguments,1);return O[++V]=function(){u(E,void 0,I)},a(V),V},j=function(k){delete O[k]},T?a=function(k){A.nextTick(C(k))}:B&&B.now?a=function(k){B.now(C(k))}:U&&!_?(l=(o=new U).port2,o.port1.onmessage=x,a=h(l.postMessage,l)):c.addEventListener&&d(c.postMessage)&&!c.importScripts&&i&&i.protocol!=="file:"&&!p(S)?(a=S,c.addEventListener("message",x,!1)):a="onreadystatechange"in b("script")?function(k){g.appendChild(b("script")).onreadystatechange=function(){g.removeChild(this),N(k)}}:function(k){setTimeout(C(k),0)}),r.exports={set:M,clear:j}},{"../internals/array-slice":231,"../internals/document-create-element":249,"../internals/engine-is-ios":253,"../internals/engine-is-node":254,"../internals/fails":260,"../internals/function-apply":261,"../internals/function-bind-context":262,"../internals/global":274,"../internals/has-own-property":275,"../internals/html":278,"../internals/is-callable":285,"../internals/validate-arguments-length":353}],340:[function(e,r,s){var i=e("../internals/to-integer-or-infinity"),a=Math.max,o=Math.min;r.exports=function(l,c){var u=i(l);return u<0?a(u+c,0):o(u,c)}},{"../internals/to-integer-or-infinity":342}],341:[function(e,r,s){var i=e("../internals/indexed-object"),a=e("../internals/require-object-coercible");r.exports=function(o){return i(a(o))}},{"../internals/indexed-object":280,"../internals/require-object-coercible":329}],342:[function(e,r,s){var i=e("../internals/math-trunc");r.exports=function(a){var o=+a;return o!=o||o===0?0:i(o)}},{"../internals/math-trunc":301}],343:[function(e,r,s){var i=e("../internals/to-integer-or-infinity"),a=Math.min;r.exports=function(o){return o>0?a(i(o),9007199254740991):0}},{"../internals/to-integer-or-infinity":342}],344:[function(e,r,s){var i=e("../internals/require-object-coercible"),a=Object;r.exports=function(o){return a(i(o))}},{"../internals/require-object-coercible":329}],345:[function(e,r,s){var i=e("../internals/function-call"),a=e("../internals/is-object"),o=e("../internals/is-symbol"),l=e("../internals/get-method"),c=e("../internals/ordinary-to-primitive"),u=e("../internals/well-known-symbol"),h=TypeError,d=u("toPrimitive");r.exports=function(f,p){if(!a(f)||o(f))return f;var g,m=l(f,d);if(m){if(p===void 0&&(p="default"),g=i(m,f,p),!a(g)||o(g))return g;throw new h("Can't convert object to primitive value")}return p===void 0&&(p="number"),c(f,p)}},{"../internals/function-call":264,"../internals/get-method":273,"../internals/is-object":289,"../internals/is-symbol":292,"../internals/ordinary-to-primitive":320,"../internals/well-known-symbol":357}],346:[function(e,r,s){var i=e("../internals/to-primitive"),a=e("../internals/is-symbol");r.exports=function(o){var l=i(o,"string");return a(l)?l:l+""}},{"../internals/is-symbol":292,"../internals/to-primitive":345}],347:[function(e,r,s){var i={};i[e("../internals/well-known-symbol")("toStringTag")]="z",r.exports=String(i)==="[object z]"},{"../internals/well-known-symbol":357}],348:[function(e,r,s){var i=e("../internals/classof"),a=String;r.exports=function(o){if(i(o)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return a(o)}},{"../internals/classof":236}],349:[function(e,r,s){var i=String;r.exports=function(a){try{return i(a)}catch{return"Object"}}},{}],350:[function(e,r,s){var i=e("../internals/function-uncurry-this"),a=0,o=Math.random(),l=i(1 .toString);r.exports=function(c){return"Symbol("+(c===void 0?"":c)+")_"+l(++a+o,36)}},{"../internals/function-uncurry-this":268}],351:[function(e,r,s){var i=e("../internals/symbol-constructor-detection");r.exports=i&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},{"../internals/symbol-constructor-detection":336}],352:[function(e,r,s){var i=e("../internals/descriptors"),a=e("../internals/fails");r.exports=i&&a(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})},{"../internals/descriptors":247,"../internals/fails":260}],353:[function(e,r,s){var i=TypeError;r.exports=function(a,o){if(a<o)throw new i("Not enough arguments");return a}},{}],354:[function(e,r,s){var i=e("../internals/global"),a=e("../internals/is-callable"),o=i.WeakMap;r.exports=a(o)&&/native code/.test(String(o))},{"../internals/global":274,"../internals/is-callable":285}],355:[function(e,r,s){var i=e("../internals/path"),a=e("../internals/has-own-property"),o=e("../internals/well-known-symbol-wrapped"),l=e("../internals/object-define-property").f;r.exports=function(c){var u=i.Symbol||(i.Symbol={});a(u,c)||l(u,c,{value:o.f(c)})}},{"../internals/has-own-property":275,"../internals/object-define-property":308,"../internals/path":322,"../internals/well-known-symbol-wrapped":356}],356:[function(e,r,s){var i=e("../internals/well-known-symbol");s.f=i},{"../internals/well-known-symbol":357}],357:[function(e,r,s){var i=e("../internals/global"),a=e("../internals/shared"),o=e("../internals/has-own-property"),l=e("../internals/uid"),c=e("../internals/symbol-constructor-detection"),u=e("../internals/use-symbol-as-uid"),h=i.Symbol,d=a("wks"),f=u?h.for||h:h&&h.withoutSetter||l;r.exports=function(p){return o(d,p)||(d[p]=c&&o(h,p)?h[p]:f("Symbol."+p)),d[p]}},{"../internals/global":274,"../internals/has-own-property":275,"../internals/shared":334,"../internals/symbol-constructor-detection":336,"../internals/uid":350,"../internals/use-symbol-as-uid":351}],358:[function(e,r,s){var i=e("../internals/export"),a=e("../internals/array-iteration").findIndex,o=e("../internals/add-to-unscopables"),l=!0;"findIndex"in[]&&Array(1).findIndex(function(){l=!1}),i({target:"Array",proto:!0,forced:l},{findIndex:function(c){return a(this,c,arguments.length>1?arguments[1]:void 0)}}),o("findIndex")},{"../internals/add-to-unscopables":225,"../internals/array-iteration":229,"../internals/export":259}],359:[function(e,r,s){var i=e("../internals/export"),a=e("../internals/array-iteration").find,o=e("../internals/add-to-unscopables"),l=!0;"find"in[]&&Array(1).find(function(){l=!1}),i({target:"Array",proto:!0,forced:l},{find:function(c){return a(this,c,arguments.length>1?arguments[1]:void 0)}}),o("find")},{"../internals/add-to-unscopables":225,"../internals/array-iteration":229,"../internals/export":259}],360:[function(e,r,s){var i=e("../internals/export"),a=e("../internals/array-includes").includes,o=e("../internals/fails"),l=e("../internals/add-to-unscopables");i({target:"Array",proto:!0,forced:o(function(){return!Array(1).includes()})},{includes:function(c){return a(this,c,arguments.length>1?arguments[1]:void 0)}}),l("includes")},{"../internals/add-to-unscopables":225,"../internals/array-includes":228,"../internals/export":259,"../internals/fails":260}],361:[function(e,r,s){var i=e("../internals/to-indexed-object"),a=e("../internals/add-to-unscopables"),o=e("../internals/iterators"),l=e("../internals/internal-state"),c=e("../internals/object-define-property").f,u=e("../internals/iterator-define"),h=e("../internals/create-iter-result-object"),d=e("../internals/is-pure"),f=e("../internals/descriptors"),p=l.set,g=l.getterFor("Array Iterator");r.exports=u(Array,"Array",function(b,w){p(this,{type:"Array Iterator",target:i(b),index:0,kind:w})},function(){var b=g(this),w=b.target,_=b.kind,T=b.index++;if(!w||T>=w.length)return b.target=void 0,h(void 0,!0);switch(_){case"keys":return h(T,!1);case"values":return h(w[T],!1)}return h([T,w[T]],!1)},"values");var m=o.Arguments=o.Array;if(a("keys"),a("values"),a("entries"),!d&&f&&m.name!=="values")try{c(m,"name",{value:"values"})}catch{}},{"../internals/add-to-unscopables":225,"../internals/create-iter-result-object":240,"../internals/descriptors":247,"../internals/internal-state":282,"../internals/is-pure":290,"../internals/iterator-define":296,"../internals/iterators":298,"../internals/object-define-property":308,"../internals/to-indexed-object":341}],362:[function(e,r,s){var i=e("../internals/export"),a=e("../internals/get-built-in"),o=e("../internals/function-apply"),l=e("../internals/function-call"),c=e("../internals/function-uncurry-this"),u=e("../internals/fails"),h=e("../internals/is-callable"),d=e("../internals/is-symbol"),f=e("../internals/array-slice"),p=e("../internals/get-json-replacer-function"),g=e("../internals/symbol-constructor-detection"),m=String,b=a("JSON","stringify"),w=c(/./.exec),_=c("".charAt),T=c("".charCodeAt),M=c("".replace),j=c(1 .toString),A=/[\uD800-\uDFFF]/g,B=/^[\uD800-\uDBFF]$/,H=/^[\uDC00-\uDFFF]$/,U=!g||u(function(){var N=a("Symbol")("stringify detection");return b([N])!=="[null]"||b({a:N})!=="{}"||b(Object(N))!=="{}"}),X=u(function(){return b("\uDF06\uD834")!=='"\\udf06\\ud834"'||b("\uDEAD")!=='"\\udead"'}),V=function(N,C){var x=f(arguments),S=p(C);if(h(S)||N!==void 0&&!d(N))return x[1]=function(k,E){if(h(S)&&(E=l(S,this,m(k),E)),!d(E))return E},o(b,null,x)},O=function(N,C,x){var S=_(x,C-1),k=_(x,C+1);return w(B,N)&&!w(H,k)||w(H,N)&&!w(B,S)?"\\u"+j(T(N,0),16):N};b&&i({target:"JSON",stat:!0,arity:3,forced:U||X},{stringify:function(N,C,x){var S=f(arguments),k=o(U?V:b,null,S);return X&&typeof k=="string"?M(k,A,O):k}})},{"../internals/array-slice":231,"../internals/export":259,"../internals/fails":260,"../internals/function-apply":261,"../internals/function-call":264,"../internals/function-uncurry-this":268,"../internals/get-built-in":269,"../internals/get-json-replacer-function":272,"../internals/is-callable":285,"../internals/is-symbol":292,"../internals/symbol-constructor-detection":336}],363:[function(e,r,s){e("../internals/export")({target:"Number",stat:!0},{isNaN:function(i){return i!=i}})},{"../internals/export":259}],364:[function(e,r,s){var i=e("../internals/export"),a=e("../internals/object-assign");i({target:"Object",stat:!0,arity:2,forced:Object.assign!==a},{assign:a})},{"../internals/export":259,"../internals/object-assign":305}],365:[function(e,r,s){var i=e("../internals/export"),a=e("../internals/symbol-constructor-detection"),o=e("../internals/fails"),l=e("../internals/object-get-own-property-symbols"),c=e("../internals/to-object");i({target:"Object",stat:!0,forced:!a||o(function(){l.f(1)})},{getOwnPropertySymbols:function(u){var h=l.f;return h?h(c(u)):[]}})},{"../internals/export":259,"../internals/fails":260,"../internals/object-get-own-property-symbols":312,"../internals/symbol-constructor-detection":336,"../internals/to-object":344}],366:[function(e,r,s){var i=e("../internals/export"),a=e("../internals/to-object"),o=e("../internals/object-keys");i({target:"Object",stat:!0,forced:e("../internals/fails")(function(){o(1)})},{keys:function(l){return o(a(l))}})},{"../internals/export":259,"../internals/fails":260,"../internals/object-keys":316,"../internals/to-object":344}],367:[function(e,r,s){var i=e("../internals/export"),a=e("../internals/object-to-array").values;i({target:"Object",stat:!0},{values:function(o){return a(o)}})},{"../internals/export":259,"../internals/object-to-array":319}],368:[function(e,r,s){var i=e("../internals/export"),a=e("../internals/function-call"),o=e("../internals/a-callable"),l=e("../internals/new-promise-capability"),c=e("../internals/perform"),u=e("../internals/iterate");i({target:"Promise",stat:!0,forced:e("../internals/promise-statics-incorrect-iteration")},{all:function(h){var d=this,f=l.f(d),p=f.resolve,g=f.reject,m=c(function(){var b=o(d.resolve),w=[],_=0,T=1;u(h,function(M){var j=_++,A=!1;T++,a(b,d,M).then(function(B){A||(A=!0,w[j]=B,--T||p(w))},g)}),--T||p(w)});return m.error&&g(m.value),f.promise}})},{"../internals/a-callable":222,"../internals/export":259,"../internals/function-call":264,"../internals/iterate":293,"../internals/new-promise-capability":303,"../internals/perform":323,"../internals/promise-statics-incorrect-iteration":327}],369:[function(e,r,s){var i=e("../internals/export"),a=e("../internals/is-pure"),o=e("../internals/promise-constructor-detection").CONSTRUCTOR,l=e("../internals/promise-native-constructor"),c=e("../internals/get-built-in"),u=e("../internals/is-callable"),h=e("../internals/define-built-in"),d=l&&l.prototype;if(i({target:"Promise",proto:!0,forced:o,real:!0},{catch:function(p){return this.then(void 0,p)}}),!a&&u(l)){var f=c("Promise").prototype.catch;d.catch!==f&&h(d,"catch",f,{unsafe:!0})}},{"../internals/define-built-in":245,"../internals/export":259,"../internals/get-built-in":269,"../internals/is-callable":285,"../internals/is-pure":290,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325}],370:[function(e,r,s){var i,a,o,l=e("../internals/export"),c=e("../internals/is-pure"),u=e("../internals/engine-is-node"),h=e("../internals/global"),d=e("../internals/function-call"),f=e("../internals/define-built-in"),p=e("../internals/object-set-prototype-of"),g=e("../internals/set-to-string-tag"),m=e("../internals/set-species"),b=e("../internals/a-callable"),w=e("../internals/is-callable"),_=e("../internals/is-object"),T=e("../internals/an-instance"),M=e("../internals/species-constructor"),j=e("../internals/task").set,A=e("../internals/microtask"),B=e("../internals/host-report-errors"),H=e("../internals/perform"),U=e("../internals/queue"),X=e("../internals/internal-state"),V=e("../internals/promise-native-constructor"),O=e("../internals/promise-constructor-detection"),N=e("../internals/new-promise-capability"),C=O.CONSTRUCTOR,x=O.REJECTION_EVENT,S=O.SUBCLASSING,k=X.getterFor("Promise"),E=X.set,I=V&&V.prototype,D=V,F=I,Y=h.TypeError,J=h.document,se=h.process,q=N.f,ee=q,L=!!(J&&J.createEvent&&h.dispatchEvent),P=function(ge){var ke;return!(!_(ge)||!w(ke=ge.then))&&ke},G=function(ge,ke){var xe,Ee,Ie,Pe=ke.value,Ae=ke.state===1,Ge=Ae?ge.ok:ge.fail,st=ge.resolve,et=ge.reject,Rt=ge.domain;try{Ge?(Ae||(ke.rejection===2&&ve(ke),ke.rejection=1),Ge===!0?xe=Pe:(Rt&&Rt.enter(),xe=Ge(Pe),Rt&&(Rt.exit(),Ie=!0)),xe===ge.promise?et(new Y("Promise-chain cycle")):(Ee=P(xe))?d(Ee,xe,st,et):st(xe)):et(Pe)}catch(_t){Rt&&!Ie&&Rt.exit(),et(_t)}},ne=function(ge,ke){ge.notified||(ge.notified=!0,A(function(){for(var xe,Ee=ge.reactions;xe=Ee.get();)G(xe,ge);ge.notified=!1,ke&&!ge.rejection&&ie(ge)}))},ce=function(ge,ke,xe){var Ee,Ie;L?((Ee=J.createEvent("Event")).promise=ke,Ee.reason=xe,Ee.initEvent(ge,!1,!0),h.dispatchEvent(Ee)):Ee={promise:ke,reason:xe},!x&&(Ie=h["on"+ge])?Ie(Ee):ge==="unhandledrejection"&&B("Unhandled promise rejection",xe)},ie=function(ge){d(j,h,function(){var ke,xe=ge.facade,Ee=ge.value;if(ue(ge)&&(ke=H(function(){u?se.emit("unhandledRejection",Ee,xe):ce("unhandledrejection",xe,Ee)}),ge.rejection=u||ue(ge)?2:1,ke.error))throw ke.value})},ue=function(ge){return ge.rejection!==1&&!ge.parent},ve=function(ge){d(j,h,function(){var ke=ge.facade;u?se.emit("rejectionHandled",ke):ce("rejectionhandled",ke,ge.value)})},we=function(ge,ke,xe){return function(Ee){ge(ke,Ee,xe)}},le=function(ge,ke,xe){ge.done||(ge.done=!0,xe&&(ge=xe),ge.value=ke,ge.state=2,ne(ge,!0))},me=function(ge,ke,xe){if(!ge.done){ge.done=!0,xe&&(ge=xe);try{if(ge.facade===ke)throw new Y("Promise can't be resolved itself");var Ee=P(ke);Ee?A(function(){var Ie={done:!1};try{d(Ee,ke,we(me,Ie,ge),we(le,Ie,ge))}catch(Pe){le(Ie,Pe,ge)}}):(ge.value=ke,ge.state=1,ne(ge,!1))}catch(Ie){le({done:!1},Ie,ge)}}};if(C&&(F=(D=function(ge){T(this,F),b(ge),d(i,this);var ke=k(this);try{ge(we(me,ke),we(le,ke))}catch(xe){le(ke,xe)}}).prototype,(i=function(ge){E(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new U,rejection:!1,state:0,value:void 0})}).prototype=f(F,"then",function(ge,ke){var xe=k(this),Ee=q(M(this,D));return xe.parent=!0,Ee.ok=!w(ge)||ge,Ee.fail=w(ke)&&ke,Ee.domain=u?se.domain:void 0,xe.state===0?xe.reactions.add(Ee):A(function(){G(Ee,xe)}),Ee.promise}),a=function(){var ge=new i,ke=k(ge);this.promise=ge,this.resolve=we(me,ke),this.reject=we(le,ke)},N.f=q=function(ge){return ge===D||ge===void 0?new a(ge):ee(ge)},!c&&w(V)&&I!==Object.prototype)){o=I.then,S||f(I,"then",function(ge,ke){var xe=this;return new D(function(Ee,Ie){d(o,xe,Ee,Ie)}).then(ge,ke)},{unsafe:!0});try{delete I.constructor}catch{}p&&p(I,F)}l({global:!0,constructor:!0,wrap:!0,forced:C},{Promise:D}),g(D,"Promise",!1,!0),m("Promise")},{"../internals/a-callable":222,"../internals/an-instance":226,"../internals/define-built-in":245,"../internals/engine-is-node":254,"../internals/export":259,"../internals/function-call":264,"../internals/global":274,"../internals/host-report-errors":277,"../internals/internal-state":282,"../internals/is-callable":285,"../internals/is-object":289,"../internals/is-pure":290,"../internals/microtask":302,"../internals/new-promise-capability":303,"../internals/object-set-prototype-of":318,"../internals/perform":323,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325,"../internals/queue":328,"../internals/set-species":330,"../internals/set-to-string-tag":331,"../internals/species-constructor":335,"../internals/task":339}],371:[function(e,r,s){var i=e("../internals/export"),a=e("../internals/is-pure"),o=e("../internals/promise-native-constructor"),l=e("../internals/fails"),c=e("../internals/get-built-in"),u=e("../internals/is-callable"),h=e("../internals/species-constructor"),d=e("../internals/promise-resolve"),f=e("../internals/define-built-in"),p=o&&o.prototype;if(i({target:"Promise",proto:!0,real:!0,forced:!!o&&l(function(){p.finally.call({then:function(){}},function(){})})},{finally:function(m){var b=h(this,c("Promise")),w=u(m);return this.then(w?function(_){return d(b,m()).then(function(){return _})}:m,w?function(_){return d(b,m()).then(function(){throw _})}:m)}}),!a&&u(o)){var g=c("Promise").prototype.finally;p.finally!==g&&f(p,"finally",g,{unsafe:!0})}},{"../internals/define-built-in":245,"../internals/export":259,"../internals/fails":260,"../internals/get-built-in":269,"../internals/is-callable":285,"../internals/is-pure":290,"../internals/promise-native-constructor":325,"../internals/promise-resolve":326,"../internals/species-constructor":335}],372:[function(e,r,s){e("../modules/es.promise.constructor"),e("../modules/es.promise.all"),e("../modules/es.promise.catch"),e("../modules/es.promise.race"),e("../modules/es.promise.reject"),e("../modules/es.promise.resolve")},{"../modules/es.promise.all":368,"../modules/es.promise.catch":369,"../modules/es.promise.constructor":370,"../modules/es.promise.race":373,"../modules/es.promise.reject":374,"../modules/es.promise.resolve":375}],373:[function(e,r,s){var i=e("../internals/export"),a=e("../internals/function-call"),o=e("../internals/a-callable"),l=e("../internals/new-promise-capability"),c=e("../internals/perform"),u=e("../internals/iterate");i({target:"Promise",stat:!0,forced:e("../internals/promise-statics-incorrect-iteration")},{race:function(h){var d=this,f=l.f(d),p=f.reject,g=c(function(){var m=o(d.resolve);u(h,function(b){a(m,d,b).then(f.resolve,p)})});return g.error&&p(g.value),f.promise}})},{"../internals/a-callable":222,"../internals/export":259,"../internals/function-call":264,"../internals/iterate":293,"../internals/new-promise-capability":303,"../internals/perform":323,"../internals/promise-statics-incorrect-iteration":327}],374:[function(e,r,s){var i=e("../internals/export"),a=e("../internals/function-call"),o=e("../internals/new-promise-capability");i({target:"Promise",stat:!0,forced:e("../internals/promise-constructor-detection").CONSTRUCTOR},{reject:function(l){var c=o.f(this);return a(c.reject,void 0,l),c.promise}})},{"../internals/export":259,"../internals/function-call":264,"../internals/new-promise-capability":303,"../internals/promise-constructor-detection":324}],375:[function(e,r,s){var i=e("../internals/export"),a=e("../internals/get-built-in"),o=e("../internals/is-pure"),l=e("../internals/promise-native-constructor"),c=e("../internals/promise-constructor-detection").CONSTRUCTOR,u=e("../internals/promise-resolve"),h=a("Promise"),d=o&&!c;i({target:"Promise",stat:!0,forced:o||c},{resolve:function(f){return u(d&&this===h?l:this,f)}})},{"../internals/export":259,"../internals/get-built-in":269,"../internals/is-pure":290,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325,"../internals/promise-resolve":326}],376:[function(e,r,s){var i=e("../internals/export"),a=e("../internals/function-uncurry-this"),o=e("../internals/to-absolute-index"),l=RangeError,c=String.fromCharCode,u=String.fromCodePoint,h=a([].join);i({target:"String",stat:!0,arity:1,forced:!!u&&u.length!==1},{fromCodePoint:function(d){for(var f,p=[],g=arguments.length,m=0;g>m;){if(f=+arguments[m++],o(f,1114111)!==f)throw new l(f+" is not a valid code point");p[m]=f<65536?c(f):c(55296+((f-=65536)>>10),f%1024+56320)}return h(p,"")}})},{"../internals/export":259,"../internals/function-uncurry-this":268,"../internals/to-absolute-index":340}],377:[function(e,r,s){var i=e("../internals/export"),a=e("../internals/function-uncurry-this"),o=e("../internals/not-a-regexp"),l=e("../internals/require-object-coercible"),c=e("../internals/to-string"),u=e("../internals/correct-is-regexp-logic"),h=a("".indexOf);i({target:"String",proto:!0,forced:!u("includes")},{includes:function(d){return!!~h(c(l(this)),c(o(d)),arguments.length>1?arguments[1]:void 0)}})},{"../internals/correct-is-regexp-logic":238,"../internals/export":259,"../internals/function-uncurry-this":268,"../internals/not-a-regexp":304,"../internals/require-object-coercible":329,"../internals/to-string":348}],378:[function(e,r,s){e("../internals/well-known-symbol-define")("asyncIterator")},{"../internals/well-known-symbol-define":355}],379:[function(e,r,s){var i=e("../internals/export"),a=e("../internals/global"),o=e("../internals/function-call"),l=e("../internals/function-uncurry-this"),c=e("../internals/is-pure"),u=e("../internals/descriptors"),h=e("../internals/symbol-constructor-detection"),d=e("../internals/fails"),f=e("../internals/has-own-property"),p=e("../internals/object-is-prototype-of"),g=e("../internals/an-object"),m=e("../internals/to-indexed-object"),b=e("../internals/to-property-key"),w=e("../internals/to-string"),_=e("../internals/create-property-descriptor"),T=e("../internals/object-create"),M=e("../internals/object-keys"),j=e("../internals/object-get-own-property-names"),A=e("../internals/object-get-own-property-names-external"),B=e("../internals/object-get-own-property-symbols"),H=e("../internals/object-get-own-property-descriptor"),U=e("../internals/object-define-property"),X=e("../internals/object-define-properties"),V=e("../internals/object-property-is-enumerable"),O=e("../internals/define-built-in"),N=e("../internals/define-built-in-accessor"),C=e("../internals/shared"),x=e("../internals/shared-key"),S=e("../internals/hidden-keys"),k=e("../internals/uid"),E=e("../internals/well-known-symbol"),I=e("../internals/well-known-symbol-wrapped"),D=e("../internals/well-known-symbol-define"),F=e("../internals/symbol-define-to-primitive"),Y=e("../internals/set-to-string-tag"),J=e("../internals/internal-state"),se=e("../internals/array-iteration").forEach,q=x("hidden"),ee=J.set,L=J.getterFor("Symbol"),P=Object.prototype,G=a.Symbol,ne=G&&G.prototype,ce=a.RangeError,ie=a.TypeError,ue=a.QObject,ve=H.f,we=U.f,le=A.f,me=V.f,ge=l([].push),ke=C("symbols"),xe=C("op-symbols"),Ee=C("wks"),Ie=!ue||!ue.prototype||!ue.prototype.findChild,Pe=function(Qe,Ve,it){var wt=ve(P,Ve);wt&&delete P[Ve],we(Qe,Ve,it),wt&&Qe!==P&&we(P,Ve,wt)},Ae=u&&d(function(){return T(we({},"a",{get:function(){return we(this,"a",{value:7}).a}})).a!==7})?Pe:we,Ge=function(Qe,Ve){var it=ke[Qe]=T(ne);return ee(it,{type:"Symbol",tag:Qe,description:Ve}),u||(it.description=Ve),it},st=function(Qe,Ve,it){Qe===P&&st(xe,Ve,it),g(Qe);var wt=b(Ve);return g(it),f(ke,wt)?(it.enumerable?(f(Qe,q)&&Qe[q][wt]&&(Qe[q][wt]=!1),it=T(it,{enumerable:_(0,!1)})):(f(Qe,q)||we(Qe,q,_(1,{})),Qe[q][wt]=!0),Ae(Qe,wt,it)):we(Qe,wt,it)},et=function(Qe,Ve){g(Qe);var it=m(Ve),wt=M(it).concat(yt(it));return se(wt,function(ct){u&&!o(Rt,it,ct)||st(Qe,ct,it[ct])}),Qe},Rt=function(Qe){var Ve=b(Qe),it=o(me,this,Ve);return!(this===P&&f(ke,Ve)&&!f(xe,Ve))&&(!(it||!f(this,Ve)||!f(ke,Ve)||f(this,q)&&this[q][Ve])||it)},_t=function(Qe,Ve){var it=m(Qe),wt=b(Ve);if(it!==P||!f(ke,wt)||f(xe,wt)){var ct=ve(it,wt);return!ct||!f(ke,wt)||f(it,q)&&it[q][wt]||(ct.enumerable=!0),ct}},xt=function(Qe){var Ve=le(m(Qe)),it=[];return se(Ve,function(wt){f(ke,wt)||f(S,wt)||ge(it,wt)}),it},yt=function(Qe){var Ve=Qe===P,it=le(Ve?xe:m(Qe)),wt=[];return se(it,function(ct){!f(ke,ct)||Ve&&!f(P,ct)||ge(wt,ke[ct])}),wt};h||(O(ne=(G=function(){if(p(ne,this))throw new ie("Symbol is not a constructor");var Qe=arguments.length&&arguments[0]!==void 0?w(arguments[0]):void 0,Ve=k(Qe),it=function(wt){this===P&&o(it,xe,wt),f(this,q)&&f(this[q],Ve)&&(this[q][Ve]=!1);var ct=_(1,wt);try{Ae(this,Ve,ct)}catch(dr){if(!(dr instanceof ce))throw dr;Pe(this,Ve,ct)}};return u&&Ie&&Ae(P,Ve,{configurable:!0,set:it}),Ge(Ve,Qe)}).prototype,"toString",function(){return L(this).tag}),O(G,"withoutSetter",function(Qe){return Ge(k(Qe),Qe)}),V.f=Rt,U.f=st,X.f=et,H.f=_t,j.f=A.f=xt,B.f=yt,I.f=function(Qe){return Ge(E(Qe),Qe)},u&&(N(ne,"description",{configurable:!0,get:function(){return L(this).description}}),c||O(P,"propertyIsEnumerable",Rt,{unsafe:!0}))),i({global:!0,constructor:!0,wrap:!0,forced:!h,sham:!h},{Symbol:G}),se(M(Ee),function(Qe){D(Qe)}),i({target:"Symbol",stat:!0,forced:!h},{useSetter:function(){Ie=!0},useSimple:function(){Ie=!1}}),i({target:"Object",stat:!0,forced:!h,sham:!u},{create:function(Qe,Ve){return Ve===void 0?T(Qe):et(T(Qe),Ve)},defineProperty:st,defineProperties:et,getOwnPropertyDescriptor:_t}),i({target:"Object",stat:!0,forced:!h},{getOwnPropertyNames:xt}),F(),Y(G,"Symbol"),S[q]=!0},{"../internals/an-object":227,"../internals/array-iteration":229,"../internals/create-property-descriptor":242,"../internals/define-built-in":245,"../internals/define-built-in-accessor":244,"../internals/descriptors":247,"../internals/export":259,"../internals/fails":260,"../internals/function-call":264,"../internals/function-uncurry-this":268,"../internals/global":274,"../internals/has-own-property":275,"../internals/hidden-keys":276,"../internals/internal-state":282,"../internals/is-pure":290,"../internals/object-create":306,"../internals/object-define-properties":307,"../internals/object-define-property":308,"../internals/object-get-own-property-descriptor":309,"../internals/object-get-own-property-names":311,"../internals/object-get-own-property-names-external":310,"../internals/object-get-own-property-symbols":312,"../internals/object-is-prototype-of":314,"../internals/object-keys":316,"../internals/object-property-is-enumerable":317,"../internals/set-to-string-tag":331,"../internals/shared":334,"../internals/shared-key":332,"../internals/symbol-constructor-detection":336,"../internals/symbol-define-to-primitive":337,"../internals/to-indexed-object":341,"../internals/to-property-key":346,"../internals/to-string":348,"../internals/uid":350,"../internals/well-known-symbol":357,"../internals/well-known-symbol-define":355,"../internals/well-known-symbol-wrapped":356}],380:[function(e,r,s){var i=e("../internals/export"),a=e("../internals/get-built-in"),o=e("../internals/has-own-property"),l=e("../internals/to-string"),c=e("../internals/shared"),u=e("../internals/symbol-registry-detection"),h=c("string-to-symbol-registry"),d=c("symbol-to-string-registry");i({target:"Symbol",stat:!0,forced:!u},{for:function(f){var p=l(f);if(o(h,p))return h[p];var g=a("Symbol")(p);return h[p]=g,d[g]=p,g}})},{"../internals/export":259,"../internals/get-built-in":269,"../internals/has-own-property":275,"../internals/shared":334,"../internals/symbol-registry-detection":338,"../internals/to-string":348}],381:[function(e,r,s){e("../modules/es.symbol.constructor"),e("../modules/es.symbol.for"),e("../modules/es.symbol.key-for"),e("../modules/es.json.stringify"),e("../modules/es.object.get-own-property-symbols")},{"../modules/es.json.stringify":362,"../modules/es.object.get-own-property-symbols":365,"../modules/es.symbol.constructor":379,"../modules/es.symbol.for":380,"../modules/es.symbol.key-for":382}],382:[function(e,r,s){var i=e("../internals/export"),a=e("../internals/has-own-property"),o=e("../internals/is-symbol"),l=e("../internals/try-to-string"),c=e("../internals/shared"),u=e("../internals/symbol-registry-detection"),h=c("symbol-to-string-registry");i({target:"Symbol",stat:!0,forced:!u},{keyFor:function(d){if(!o(d))throw new TypeError(l(d)+" is not a symbol");if(a(h,d))return h[d]}})},{"../internals/export":259,"../internals/has-own-property":275,"../internals/is-symbol":292,"../internals/shared":334,"../internals/symbol-registry-detection":338,"../internals/try-to-string":349}],383:[function(e,r,s){function i(a){return Object.prototype.toString.call(a)}s.isArray=function(a){return Array.isArray?Array.isArray(a):i(a)==="[object Array]"},s.isBoolean=function(a){return typeof a=="boolean"},s.isNull=function(a){return a===null},s.isNullOrUndefined=function(a){return a==null},s.isNumber=function(a){return typeof a=="number"},s.isString=function(a){return typeof a=="string"},s.isSymbol=function(a){return typeof a=="symbol"},s.isUndefined=function(a){return a===void 0},s.isRegExp=function(a){return i(a)==="[object RegExp]"},s.isObject=function(a){return typeof a=="object"&&a!==null},s.isDate=function(a){return i(a)==="[object Date]"},s.isError=function(a){return i(a)==="[object Error]"||a instanceof Error},s.isFunction=function(a){return typeof a=="function"},s.isPrimitive=function(a){return a===null||typeof a=="boolean"||typeof a=="number"||typeof a=="string"||typeof a=="symbol"||a===void 0},s.isBuffer=e("buffer").Buffer.isBuffer},{buffer:220}],384:[function(e,r,s){(function(i){(function(){var a=e("elliptic"),o=e("bn.js");r.exports=function(h){return new c(h)};var l={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}};function c(h){this.curveType=l[h],this.curveType||(this.curveType={name:h}),this.curve=new a.ec(this.curveType.name),this.keys=void 0}function u(h,d,f){Array.isArray(h)||(h=h.toArray());var p=new i(h);if(f&&p.length<f){var g=new i(f-p.length);g.fill(0),p=i.concat([g,p])}return d?p.toString(d):p}l.p224=l.secp224r1,l.p256=l.secp256r1=l.prime256v1,l.p192=l.secp192r1=l.prime192v1,l.p384=l.secp384r1,l.p521=l.secp521r1,c.prototype.generateKeys=function(h,d){return this.keys=this.curve.genKeyPair(),this.getPublicKey(h,d)},c.prototype.computeSecret=function(h,d,f){return d=d||"utf8",i.isBuffer(h)||(h=new i(h,d)),u(this.curve.keyFromPublic(h).getPublic().mul(this.keys.getPrivate()).getX(),f,this.curveType.byteLength)},c.prototype.getPublicKey=function(h,d){var f=this.keys.getPublic(d==="compressed",!0);return d==="hybrid"&&(f[f.length-1]%2?f[0]=7:f[0]=6),u(f,h)},c.prototype.getPrivateKey=function(h){return u(this.keys.getPrivate(),h)},c.prototype.setPublicKey=function(h,d){return d=d||"utf8",i.isBuffer(h)||(h=new i(h,d)),this.keys._importPublic(h),this},c.prototype.setPrivateKey=function(h,d){d=d||"utf8",i.isBuffer(h)||(h=new i(h,d));var f=new o(h);return f=f.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(f),this}}).call(this)}).call(this,e("buffer").Buffer)},{"bn.js":385,buffer:220,elliptic:405}],385:[function(e,r,s){arguments[4][184][0].apply(s,arguments)},{buffer:188,dup:184}],386:[function(e,r,s){var i=e("inherits"),a=e("md5.js"),o=e("ripemd160"),l=e("sha.js"),c=e("cipher-base");function u(h){c.call(this,"digest"),this._hash=h}i(u,c),u.prototype._update=function(h){this._hash.update(h)},u.prototype._final=function(){return this._hash.digest()},r.exports=function(h){return(h=h.toLowerCase())==="md5"?new a:h==="rmd160"||h==="ripemd160"?new o:new u(l(h))}},{"cipher-base":221,inherits:440,"md5.js":450,ripemd160:493,"sha.js":498}],387:[function(e,r,s){var i=e("md5.js");r.exports=function(a){return new i().update(a).digest()}},{"md5.js":450}],388:[function(e,r,s){var i=e("inherits"),a=e("./legacy"),o=e("cipher-base"),l=e("safe-buffer").Buffer,c=e("create-hash/md5"),u=e("ripemd160"),h=e("sha.js"),d=l.alloc(128);function f(p,g){o.call(this,"digest"),typeof g=="string"&&(g=l.from(g));var m=p==="sha512"||p==="sha384"?128:64;this._alg=p,this._key=g,g.length>m?g=(p==="rmd160"?new u:h(p)).update(g).digest():g.length<m&&(g=l.concat([g,d],m));for(var b=this._ipad=l.allocUnsafe(m),w=this._opad=l.allocUnsafe(m),_=0;_<m;_++)b[_]=54^g[_],w[_]=92^g[_];this._hash=p==="rmd160"?new u:h(p),this._hash.update(b)}i(f,o),f.prototype._update=function(p){this._hash.update(p)},f.prototype._final=function(){var p=this._hash.digest();return(this._alg==="rmd160"?new u:h(this._alg)).update(this._opad).update(p).digest()},r.exports=function(p,g){return(p=p.toLowerCase())==="rmd160"||p==="ripemd160"?new f("rmd160",g):p==="md5"?new a(c,g):new f(p,g)}},{"./legacy":389,"cipher-base":221,"create-hash/md5":387,inherits:440,ripemd160:493,"safe-buffer":494,"sha.js":498}],389:[function(e,r,s){var i=e("inherits"),a=e("safe-buffer").Buffer,o=e("cipher-base"),l=a.alloc(128);function c(u,h){o.call(this,"digest"),typeof h=="string"&&(h=a.from(h)),this._alg=u,this._key=h,h.length>64?h=u(h):h.length<64&&(h=a.concat([h,l],64));for(var d=this._ipad=a.allocUnsafe(64),f=this._opad=a.allocUnsafe(64),p=0;p<64;p++)d[p]=54^h[p],f[p]=92^h[p];this._hash=[d]}i(c,o),c.prototype._update=function(u){this._hash.push(u)},c.prototype._final=function(){var u=this._alg(a.concat(this._hash));return this._alg(a.concat([this._opad,u]))},r.exports=c},{"cipher-base":221,inherits:440,"safe-buffer":494}],390:[function(e,r,s){s.randomBytes=s.rng=s.pseudoRandomBytes=s.prng=e("randombytes"),s.createHash=s.Hash=e("create-hash"),s.createHmac=s.Hmac=e("create-hmac");var i=e("browserify-sign/algos"),a=Object.keys(i),o=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(a);s.getHashes=function(){return o};var l=e("pbkdf2");s.pbkdf2=l.pbkdf2,s.pbkdf2Sync=l.pbkdf2Sync;var c=e("browserify-cipher");s.Cipher=c.Cipher,s.createCipher=c.createCipher,s.Cipheriv=c.Cipheriv,s.createCipheriv=c.createCipheriv,s.Decipher=c.Decipher,s.createDecipher=c.createDecipher,s.Decipheriv=c.Decipheriv,s.createDecipheriv=c.createDecipheriv,s.getCiphers=c.getCiphers,s.listCiphers=c.listCiphers;var u=e("diffie-hellman");s.DiffieHellmanGroup=u.DiffieHellmanGroup,s.createDiffieHellmanGroup=u.createDiffieHellmanGroup,s.getDiffieHellman=u.getDiffieHellman,s.createDiffieHellman=u.createDiffieHellman,s.DiffieHellman=u.DiffieHellman;var h=e("browserify-sign");s.createSign=h.createSign,s.Sign=h.Sign,s.createVerify=h.createVerify,s.Verify=h.Verify,s.createECDH=e("create-ecdh");var d=e("public-encrypt");s.publicEncrypt=d.publicEncrypt,s.privateEncrypt=d.privateEncrypt,s.publicDecrypt=d.publicDecrypt,s.privateDecrypt=d.privateDecrypt;var f=e("randomfill");s.randomFill=f.randomFill,s.randomFillSync=f.randomFillSync,s.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join(`
433
+ `)}},{"./der":181,inherits:440}],184:[function(e,r,s){(function(i,a){function o(O,N){if(!O)throw new Error(N||"Assertion failed")}function l(O,N){O.super_=N;var C=function(){};C.prototype=N.prototype,O.prototype=new C,O.prototype.constructor=O}function c(O,N,C){if(c.isBN(O))return O;this.negative=0,this.words=null,this.length=0,this.red=null,O!==null&&(N!=="le"&&N!=="be"||(C=N,N=10),this._init(O||0,N||10,C||"be"))}var u;typeof i=="object"?i.exports=c:(void 0).BN=c,c.BN=c,c.wordSize=26;try{u=typeof window<"u"&&window.Buffer!==void 0?window.Buffer:e("buffer").Buffer}catch{}function h(O,N){var C=O.charCodeAt(N);return C>=65&&C<=70?C-55:C>=97&&C<=102?C-87:C-48&15}function d(O,N,C){var x=h(O,C);return C-1>=N&&(x|=h(O,C-1)<<4),x}function f(O,N,C,x){for(var S=0,k=Math.min(O.length,C),E=N;E<k;E++){var I=O.charCodeAt(E)-48;S*=x,S+=I>=49?I-49+10:I>=17?I-17+10:I}return S}c.isBN=function(O){return O instanceof c||O!==null&&typeof O=="object"&&O.constructor.wordSize===c.wordSize&&Array.isArray(O.words)},c.max=function(O,N){return O.cmp(N)>0?O:N},c.min=function(O,N){return O.cmp(N)<0?O:N},c.prototype._init=function(O,N,C){if(typeof O=="number")return this._initNumber(O,N,C);if(typeof O=="object")return this._initArray(O,N,C);N==="hex"&&(N=16),o(N===(0|N)&&N>=2&&N<=36);var x=0;(O=O.toString().replace(/\s+/g,""))[0]==="-"&&(x++,this.negative=1),x<O.length&&(N===16?this._parseHex(O,x,C):(this._parseBase(O,N,x),C==="le"&&this._initArray(this.toArray(),N,C)))},c.prototype._initNumber=function(O,N,C){O<0&&(this.negative=1,O=-O),O<67108864?(this.words=[67108863&O],this.length=1):O<4503599627370496?(this.words=[67108863&O,O/67108864&67108863],this.length=2):(o(O<9007199254740992),this.words=[67108863&O,O/67108864&67108863,1],this.length=3),C==="le"&&this._initArray(this.toArray(),N,C)},c.prototype._initArray=function(O,N,C){if(o(typeof O.length=="number"),O.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(O.length/3),this.words=new Array(this.length);for(var x=0;x<this.length;x++)this.words[x]=0;var S,k,E=0;if(C==="be")for(x=O.length-1,S=0;x>=0;x-=3)k=O[x]|O[x-1]<<8|O[x-2]<<16,this.words[S]|=k<<E&67108863,this.words[S+1]=k>>>26-E&67108863,(E+=24)>=26&&(E-=26,S++);else if(C==="le")for(x=0,S=0;x<O.length;x+=3)k=O[x]|O[x+1]<<8|O[x+2]<<16,this.words[S]|=k<<E&67108863,this.words[S+1]=k>>>26-E&67108863,(E+=24)>=26&&(E-=26,S++);return this.strip()},c.prototype._parseHex=function(O,N,C){this.length=Math.ceil((O.length-N)/6),this.words=new Array(this.length);for(var x=0;x<this.length;x++)this.words[x]=0;var S,k=0,E=0;if(C==="be")for(x=O.length-1;x>=N;x-=2)S=d(O,N,x)<<k,this.words[E]|=67108863&S,k>=18?(k-=18,E+=1,this.words[E]|=S>>>26):k+=8;else for(x=(O.length-N)%2==0?N+1:N;x<O.length;x+=2)S=d(O,N,x)<<k,this.words[E]|=67108863&S,k>=18?(k-=18,E+=1,this.words[E]|=S>>>26):k+=8;this.strip()},c.prototype._parseBase=function(O,N,C){this.words=[0],this.length=1;for(var x=0,S=1;S<=67108863;S*=N)x++;x--,S=S/N|0;for(var k=O.length-C,E=k%x,I=Math.min(k,k-E)+C,D=0,F=C;F<I;F+=x)D=f(O,F,F+x,N),this.imuln(S),this.words[0]+D<67108864?this.words[0]+=D:this._iaddn(D);if(E!==0){var Y=1;for(D=f(O,F,O.length,N),F=0;F<E;F++)Y*=N;this.imuln(Y),this.words[0]+D<67108864?this.words[0]+=D:this._iaddn(D)}this.strip()},c.prototype.copy=function(O){O.words=new Array(this.length);for(var N=0;N<this.length;N++)O.words[N]=this.words[N];O.length=this.length,O.negative=this.negative,O.red=this.red},c.prototype.clone=function(){var O=new c(null);return this.copy(O),O},c.prototype._expand=function(O){for(;this.length<O;)this.words[this.length++]=0;return this},c.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},c.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},c.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var p=["","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"],g=[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],m=[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];function b(O,N,C){C.negative=N.negative^O.negative;var x=O.length+N.length|0;C.length=x,x=x-1|0;var S=0|O.words[0],k=0|N.words[0],E=S*k,I=67108863&E,D=E/67108864|0;C.words[0]=I;for(var F=1;F<x;F++){for(var Y=D>>>26,J=67108863&D,se=Math.min(F,N.length-1),q=Math.max(0,F-O.length+1);q<=se;q++){var ee=F-q|0;Y+=(E=(S=0|O.words[ee])*(k=0|N.words[q])+J)/67108864|0,J=67108863&E}C.words[F]=0|J,D=0|Y}return D!==0?C.words[F]=0|D:C.length--,C.strip()}c.prototype.toString=function(O,N){var C;if(N=0|N||1,(O=O||10)===16||O==="hex"){C="";for(var x=0,S=0,k=0;k<this.length;k++){var E=this.words[k],I=(16777215&(E<<x|S)).toString(16);C=(S=E>>>24-x&16777215)!==0||k!==this.length-1?p[6-I.length]+I+C:I+C,(x+=2)>=26&&(x-=26,k--)}for(S!==0&&(C=S.toString(16)+C);C.length%N!=0;)C="0"+C;return this.negative!==0&&(C="-"+C),C}if(O===(0|O)&&O>=2&&O<=36){var D=g[O],F=m[O];C="";var Y=this.clone();for(Y.negative=0;!Y.isZero();){var J=Y.modn(F).toString(O);C=(Y=Y.idivn(F)).isZero()?J+C:p[D-J.length]+J+C}for(this.isZero()&&(C="0"+C);C.length%N!=0;)C="0"+C;return this.negative!==0&&(C="-"+C),C}o(!1,"Base should be between 2 and 36")},c.prototype.toNumber=function(){var O=this.words[0];return this.length===2?O+=67108864*this.words[1]:this.length===3&&this.words[2]===1?O+=4503599627370496+67108864*this.words[1]:this.length>2&&o(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-O:O},c.prototype.toJSON=function(){return this.toString(16)},c.prototype.toBuffer=function(O,N){return o(u!==void 0),this.toArrayLike(u,O,N)},c.prototype.toArray=function(O,N){return this.toArrayLike(Array,O,N)},c.prototype.toArrayLike=function(O,N,C){var x=this.byteLength(),S=C||Math.max(1,x);o(x<=S,"byte array longer than desired length"),o(S>0,"Requested array length <= 0"),this.strip();var k,E,I=N==="le",D=new O(S),F=this.clone();if(I){for(E=0;!F.isZero();E++)k=F.andln(255),F.iushrn(8),D[E]=k;for(;E<S;E++)D[E]=0}else{for(E=0;E<S-x;E++)D[E]=0;for(E=0;!F.isZero();E++)k=F.andln(255),F.iushrn(8),D[S-E-1]=k}return D},Math.clz32?c.prototype._countBits=function(O){return 32-Math.clz32(O)}:c.prototype._countBits=function(O){var N=O,C=0;return N>=4096&&(C+=13,N>>>=13),N>=64&&(C+=7,N>>>=7),N>=8&&(C+=4,N>>>=4),N>=2&&(C+=2,N>>>=2),C+N},c.prototype._zeroBits=function(O){if(O===0)return 26;var N=O,C=0;return!(8191&N)&&(C+=13,N>>>=13),!(127&N)&&(C+=7,N>>>=7),!(15&N)&&(C+=4,N>>>=4),!(3&N)&&(C+=2,N>>>=2),!(1&N)&&C++,C},c.prototype.bitLength=function(){var O=this.words[this.length-1],N=this._countBits(O);return 26*(this.length-1)+N},c.prototype.zeroBits=function(){if(this.isZero())return 0;for(var O=0,N=0;N<this.length;N++){var C=this._zeroBits(this.words[N]);if(O+=C,C!==26)break}return O},c.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},c.prototype.toTwos=function(O){return this.negative!==0?this.abs().inotn(O).iaddn(1):this.clone()},c.prototype.fromTwos=function(O){return this.testn(O-1)?this.notn(O).iaddn(1).ineg():this.clone()},c.prototype.isNeg=function(){return this.negative!==0},c.prototype.neg=function(){return this.clone().ineg()},c.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},c.prototype.iuor=function(O){for(;this.length<O.length;)this.words[this.length++]=0;for(var N=0;N<O.length;N++)this.words[N]=this.words[N]|O.words[N];return this.strip()},c.prototype.ior=function(O){return o((this.negative|O.negative)==0),this.iuor(O)},c.prototype.or=function(O){return this.length>O.length?this.clone().ior(O):O.clone().ior(this)},c.prototype.uor=function(O){return this.length>O.length?this.clone().iuor(O):O.clone().iuor(this)},c.prototype.iuand=function(O){var N;N=this.length>O.length?O:this;for(var C=0;C<N.length;C++)this.words[C]=this.words[C]&O.words[C];return this.length=N.length,this.strip()},c.prototype.iand=function(O){return o((this.negative|O.negative)==0),this.iuand(O)},c.prototype.and=function(O){return this.length>O.length?this.clone().iand(O):O.clone().iand(this)},c.prototype.uand=function(O){return this.length>O.length?this.clone().iuand(O):O.clone().iuand(this)},c.prototype.iuxor=function(O){var N,C;this.length>O.length?(N=this,C=O):(N=O,C=this);for(var x=0;x<C.length;x++)this.words[x]=N.words[x]^C.words[x];if(this!==N)for(;x<N.length;x++)this.words[x]=N.words[x];return this.length=N.length,this.strip()},c.prototype.ixor=function(O){return o((this.negative|O.negative)==0),this.iuxor(O)},c.prototype.xor=function(O){return this.length>O.length?this.clone().ixor(O):O.clone().ixor(this)},c.prototype.uxor=function(O){return this.length>O.length?this.clone().iuxor(O):O.clone().iuxor(this)},c.prototype.inotn=function(O){o(typeof O=="number"&&O>=0);var N=0|Math.ceil(O/26),C=O%26;this._expand(N),C>0&&N--;for(var x=0;x<N;x++)this.words[x]=67108863&~this.words[x];return C>0&&(this.words[x]=~this.words[x]&67108863>>26-C),this.strip()},c.prototype.notn=function(O){return this.clone().inotn(O)},c.prototype.setn=function(O,N){o(typeof O=="number"&&O>=0);var C=O/26|0,x=O%26;return this._expand(C+1),this.words[C]=N?this.words[C]|1<<x:this.words[C]&~(1<<x),this.strip()},c.prototype.iadd=function(O){var N,C,x;if(this.negative!==0&&O.negative===0)return this.negative=0,N=this.isub(O),this.negative^=1,this._normSign();if(this.negative===0&&O.negative!==0)return O.negative=0,N=this.isub(O),O.negative=1,N._normSign();this.length>O.length?(C=this,x=O):(C=O,x=this);for(var S=0,k=0;k<x.length;k++)N=(0|C.words[k])+(0|x.words[k])+S,this.words[k]=67108863&N,S=N>>>26;for(;S!==0&&k<C.length;k++)N=(0|C.words[k])+S,this.words[k]=67108863&N,S=N>>>26;if(this.length=C.length,S!==0)this.words[this.length]=S,this.length++;else if(C!==this)for(;k<C.length;k++)this.words[k]=C.words[k];return this},c.prototype.add=function(O){var N;return O.negative!==0&&this.negative===0?(O.negative=0,N=this.sub(O),O.negative^=1,N):O.negative===0&&this.negative!==0?(this.negative=0,N=O.sub(this),this.negative=1,N):this.length>O.length?this.clone().iadd(O):O.clone().iadd(this)},c.prototype.isub=function(O){if(O.negative!==0){O.negative=0;var N=this.iadd(O);return O.negative=1,N._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(O),this.negative=1,this._normSign();var C,x,S=this.cmp(O);if(S===0)return this.negative=0,this.length=1,this.words[0]=0,this;S>0?(C=this,x=O):(C=O,x=this);for(var k=0,E=0;E<x.length;E++)k=(N=(0|C.words[E])-(0|x.words[E])+k)>>26,this.words[E]=67108863&N;for(;k!==0&&E<C.length;E++)k=(N=(0|C.words[E])+k)>>26,this.words[E]=67108863&N;if(k===0&&E<C.length&&C!==this)for(;E<C.length;E++)this.words[E]=C.words[E];return this.length=Math.max(this.length,E),C!==this&&(this.negative=1),this.strip()},c.prototype.sub=function(O){return this.clone().isub(O)};var w=function(O,N,C){var x,S,k,E=O.words,I=N.words,D=C.words,F=0,Y=0|E[0],J=8191&Y,se=Y>>>13,q=0|E[1],ee=8191&q,L=q>>>13,P=0|E[2],G=8191&P,ne=P>>>13,ce=0|E[3],ie=8191&ce,ue=ce>>>13,ve=0|E[4],we=8191&ve,le=ve>>>13,me=0|E[5],ge=8191&me,ke=me>>>13,xe=0|E[6],Ee=8191&xe,Ie=xe>>>13,Pe=0|E[7],Ae=8191&Pe,Ge=Pe>>>13,st=0|E[8],et=8191&st,Rt=st>>>13,_t=0|E[9],xt=8191&_t,yt=_t>>>13,Qe=0|I[0],Ve=8191&Qe,it=Qe>>>13,wt=0|I[1],ct=8191&wt,dr=wt>>>13,Or=0|I[2],Pt=8191&Or,hr=Or>>>13,sr=0|I[3],Wt=8191&sr,Hr=sr>>>13,Qt=0|I[4],pt=8191&Qt,gr=Qt>>>13,qr=0|I[5],Ht=8191&qr,Rr=qr>>>13,Er=0|I[6],qt=8191&Er,ye=Er>>>13,Ce=0|I[7],Le=8191&Ce,tt=Ce>>>13,jt=0|I[8],rt=8191&jt,Vt=jt>>>13,Dt=0|I[9],Et=8191&Dt,Xt=Dt>>>13;C.negative=O.negative^N.negative,C.length=19;var Bt=(F+(x=Math.imul(J,Ve))|0)+((8191&(S=(S=Math.imul(J,it))+Math.imul(se,Ve)|0))<<13)|0;F=((k=Math.imul(se,it))+(S>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,x=Math.imul(ee,Ve),S=(S=Math.imul(ee,it))+Math.imul(L,Ve)|0,k=Math.imul(L,it);var or=(F+(x=x+Math.imul(J,ct)|0)|0)+((8191&(S=(S=S+Math.imul(J,dr)|0)+Math.imul(se,ct)|0))<<13)|0;F=((k=k+Math.imul(se,dr)|0)+(S>>>13)|0)+(or>>>26)|0,or&=67108863,x=Math.imul(G,Ve),S=(S=Math.imul(G,it))+Math.imul(ne,Ve)|0,k=Math.imul(ne,it),x=x+Math.imul(ee,ct)|0,S=(S=S+Math.imul(ee,dr)|0)+Math.imul(L,ct)|0,k=k+Math.imul(L,dr)|0;var an=(F+(x=x+Math.imul(J,Pt)|0)|0)+((8191&(S=(S=S+Math.imul(J,hr)|0)+Math.imul(se,Pt)|0))<<13)|0;F=((k=k+Math.imul(se,hr)|0)+(S>>>13)|0)+(an>>>26)|0,an&=67108863,x=Math.imul(ie,Ve),S=(S=Math.imul(ie,it))+Math.imul(ue,Ve)|0,k=Math.imul(ue,it),x=x+Math.imul(G,ct)|0,S=(S=S+Math.imul(G,dr)|0)+Math.imul(ne,ct)|0,k=k+Math.imul(ne,dr)|0,x=x+Math.imul(ee,Pt)|0,S=(S=S+Math.imul(ee,hr)|0)+Math.imul(L,Pt)|0,k=k+Math.imul(L,hr)|0;var Ur=(F+(x=x+Math.imul(J,Wt)|0)|0)+((8191&(S=(S=S+Math.imul(J,Hr)|0)+Math.imul(se,Wt)|0))<<13)|0;F=((k=k+Math.imul(se,Hr)|0)+(S>>>13)|0)+(Ur>>>26)|0,Ur&=67108863,x=Math.imul(we,Ve),S=(S=Math.imul(we,it))+Math.imul(le,Ve)|0,k=Math.imul(le,it),x=x+Math.imul(ie,ct)|0,S=(S=S+Math.imul(ie,dr)|0)+Math.imul(ue,ct)|0,k=k+Math.imul(ue,dr)|0,x=x+Math.imul(G,Pt)|0,S=(S=S+Math.imul(G,hr)|0)+Math.imul(ne,Pt)|0,k=k+Math.imul(ne,hr)|0,x=x+Math.imul(ee,Wt)|0,S=(S=S+Math.imul(ee,Hr)|0)+Math.imul(L,Wt)|0,k=k+Math.imul(L,Hr)|0;var hn=(F+(x=x+Math.imul(J,pt)|0)|0)+((8191&(S=(S=S+Math.imul(J,gr)|0)+Math.imul(se,pt)|0))<<13)|0;F=((k=k+Math.imul(se,gr)|0)+(S>>>13)|0)+(hn>>>26)|0,hn&=67108863,x=Math.imul(ge,Ve),S=(S=Math.imul(ge,it))+Math.imul(ke,Ve)|0,k=Math.imul(ke,it),x=x+Math.imul(we,ct)|0,S=(S=S+Math.imul(we,dr)|0)+Math.imul(le,ct)|0,k=k+Math.imul(le,dr)|0,x=x+Math.imul(ie,Pt)|0,S=(S=S+Math.imul(ie,hr)|0)+Math.imul(ue,Pt)|0,k=k+Math.imul(ue,hr)|0,x=x+Math.imul(G,Wt)|0,S=(S=S+Math.imul(G,Hr)|0)+Math.imul(ne,Wt)|0,k=k+Math.imul(ne,Hr)|0,x=x+Math.imul(ee,pt)|0,S=(S=S+Math.imul(ee,gr)|0)+Math.imul(L,pt)|0,k=k+Math.imul(L,gr)|0;var vn=(F+(x=x+Math.imul(J,Ht)|0)|0)+((8191&(S=(S=S+Math.imul(J,Rr)|0)+Math.imul(se,Ht)|0))<<13)|0;F=((k=k+Math.imul(se,Rr)|0)+(S>>>13)|0)+(vn>>>26)|0,vn&=67108863,x=Math.imul(Ee,Ve),S=(S=Math.imul(Ee,it))+Math.imul(Ie,Ve)|0,k=Math.imul(Ie,it),x=x+Math.imul(ge,ct)|0,S=(S=S+Math.imul(ge,dr)|0)+Math.imul(ke,ct)|0,k=k+Math.imul(ke,dr)|0,x=x+Math.imul(we,Pt)|0,S=(S=S+Math.imul(we,hr)|0)+Math.imul(le,Pt)|0,k=k+Math.imul(le,hr)|0,x=x+Math.imul(ie,Wt)|0,S=(S=S+Math.imul(ie,Hr)|0)+Math.imul(ue,Wt)|0,k=k+Math.imul(ue,Hr)|0,x=x+Math.imul(G,pt)|0,S=(S=S+Math.imul(G,gr)|0)+Math.imul(ne,pt)|0,k=k+Math.imul(ne,gr)|0,x=x+Math.imul(ee,Ht)|0,S=(S=S+Math.imul(ee,Rr)|0)+Math.imul(L,Ht)|0,k=k+Math.imul(L,Rr)|0;var Cs=(F+(x=x+Math.imul(J,qt)|0)|0)+((8191&(S=(S=S+Math.imul(J,ye)|0)+Math.imul(se,qt)|0))<<13)|0;F=((k=k+Math.imul(se,ye)|0)+(S>>>13)|0)+(Cs>>>26)|0,Cs&=67108863,x=Math.imul(Ae,Ve),S=(S=Math.imul(Ae,it))+Math.imul(Ge,Ve)|0,k=Math.imul(Ge,it),x=x+Math.imul(Ee,ct)|0,S=(S=S+Math.imul(Ee,dr)|0)+Math.imul(Ie,ct)|0,k=k+Math.imul(Ie,dr)|0,x=x+Math.imul(ge,Pt)|0,S=(S=S+Math.imul(ge,hr)|0)+Math.imul(ke,Pt)|0,k=k+Math.imul(ke,hr)|0,x=x+Math.imul(we,Wt)|0,S=(S=S+Math.imul(we,Hr)|0)+Math.imul(le,Wt)|0,k=k+Math.imul(le,Hr)|0,x=x+Math.imul(ie,pt)|0,S=(S=S+Math.imul(ie,gr)|0)+Math.imul(ue,pt)|0,k=k+Math.imul(ue,gr)|0,x=x+Math.imul(G,Ht)|0,S=(S=S+Math.imul(G,Rr)|0)+Math.imul(ne,Ht)|0,k=k+Math.imul(ne,Rr)|0,x=x+Math.imul(ee,qt)|0,S=(S=S+Math.imul(ee,ye)|0)+Math.imul(L,qt)|0,k=k+Math.imul(L,ye)|0;var he=(F+(x=x+Math.imul(J,Le)|0)|0)+((8191&(S=(S=S+Math.imul(J,tt)|0)+Math.imul(se,Le)|0))<<13)|0;F=((k=k+Math.imul(se,tt)|0)+(S>>>13)|0)+(he>>>26)|0,he&=67108863,x=Math.imul(et,Ve),S=(S=Math.imul(et,it))+Math.imul(Rt,Ve)|0,k=Math.imul(Rt,it),x=x+Math.imul(Ae,ct)|0,S=(S=S+Math.imul(Ae,dr)|0)+Math.imul(Ge,ct)|0,k=k+Math.imul(Ge,dr)|0,x=x+Math.imul(Ee,Pt)|0,S=(S=S+Math.imul(Ee,hr)|0)+Math.imul(Ie,Pt)|0,k=k+Math.imul(Ie,hr)|0,x=x+Math.imul(ge,Wt)|0,S=(S=S+Math.imul(ge,Hr)|0)+Math.imul(ke,Wt)|0,k=k+Math.imul(ke,Hr)|0,x=x+Math.imul(we,pt)|0,S=(S=S+Math.imul(we,gr)|0)+Math.imul(le,pt)|0,k=k+Math.imul(le,gr)|0,x=x+Math.imul(ie,Ht)|0,S=(S=S+Math.imul(ie,Rr)|0)+Math.imul(ue,Ht)|0,k=k+Math.imul(ue,Rr)|0,x=x+Math.imul(G,qt)|0,S=(S=S+Math.imul(G,ye)|0)+Math.imul(ne,qt)|0,k=k+Math.imul(ne,ye)|0,x=x+Math.imul(ee,Le)|0,S=(S=S+Math.imul(ee,tt)|0)+Math.imul(L,Le)|0,k=k+Math.imul(L,tt)|0;var Te=(F+(x=x+Math.imul(J,rt)|0)|0)+((8191&(S=(S=S+Math.imul(J,Vt)|0)+Math.imul(se,rt)|0))<<13)|0;F=((k=k+Math.imul(se,Vt)|0)+(S>>>13)|0)+(Te>>>26)|0,Te&=67108863,x=Math.imul(xt,Ve),S=(S=Math.imul(xt,it))+Math.imul(yt,Ve)|0,k=Math.imul(yt,it),x=x+Math.imul(et,ct)|0,S=(S=S+Math.imul(et,dr)|0)+Math.imul(Rt,ct)|0,k=k+Math.imul(Rt,dr)|0,x=x+Math.imul(Ae,Pt)|0,S=(S=S+Math.imul(Ae,hr)|0)+Math.imul(Ge,Pt)|0,k=k+Math.imul(Ge,hr)|0,x=x+Math.imul(Ee,Wt)|0,S=(S=S+Math.imul(Ee,Hr)|0)+Math.imul(Ie,Wt)|0,k=k+Math.imul(Ie,Hr)|0,x=x+Math.imul(ge,pt)|0,S=(S=S+Math.imul(ge,gr)|0)+Math.imul(ke,pt)|0,k=k+Math.imul(ke,gr)|0,x=x+Math.imul(we,Ht)|0,S=(S=S+Math.imul(we,Rr)|0)+Math.imul(le,Ht)|0,k=k+Math.imul(le,Rr)|0,x=x+Math.imul(ie,qt)|0,S=(S=S+Math.imul(ie,ye)|0)+Math.imul(ue,qt)|0,k=k+Math.imul(ue,ye)|0,x=x+Math.imul(G,Le)|0,S=(S=S+Math.imul(G,tt)|0)+Math.imul(ne,Le)|0,k=k+Math.imul(ne,tt)|0,x=x+Math.imul(ee,rt)|0,S=(S=S+Math.imul(ee,Vt)|0)+Math.imul(L,rt)|0,k=k+Math.imul(L,Vt)|0;var ze=(F+(x=x+Math.imul(J,Et)|0)|0)+((8191&(S=(S=S+Math.imul(J,Xt)|0)+Math.imul(se,Et)|0))<<13)|0;F=((k=k+Math.imul(se,Xt)|0)+(S>>>13)|0)+(ze>>>26)|0,ze&=67108863,x=Math.imul(xt,ct),S=(S=Math.imul(xt,dr))+Math.imul(yt,ct)|0,k=Math.imul(yt,dr),x=x+Math.imul(et,Pt)|0,S=(S=S+Math.imul(et,hr)|0)+Math.imul(Rt,Pt)|0,k=k+Math.imul(Rt,hr)|0,x=x+Math.imul(Ae,Wt)|0,S=(S=S+Math.imul(Ae,Hr)|0)+Math.imul(Ge,Wt)|0,k=k+Math.imul(Ge,Hr)|0,x=x+Math.imul(Ee,pt)|0,S=(S=S+Math.imul(Ee,gr)|0)+Math.imul(Ie,pt)|0,k=k+Math.imul(Ie,gr)|0,x=x+Math.imul(ge,Ht)|0,S=(S=S+Math.imul(ge,Rr)|0)+Math.imul(ke,Ht)|0,k=k+Math.imul(ke,Rr)|0,x=x+Math.imul(we,qt)|0,S=(S=S+Math.imul(we,ye)|0)+Math.imul(le,qt)|0,k=k+Math.imul(le,ye)|0,x=x+Math.imul(ie,Le)|0,S=(S=S+Math.imul(ie,tt)|0)+Math.imul(ue,Le)|0,k=k+Math.imul(ue,tt)|0,x=x+Math.imul(G,rt)|0,S=(S=S+Math.imul(G,Vt)|0)+Math.imul(ne,rt)|0,k=k+Math.imul(ne,Vt)|0;var qe=(F+(x=x+Math.imul(ee,Et)|0)|0)+((8191&(S=(S=S+Math.imul(ee,Xt)|0)+Math.imul(L,Et)|0))<<13)|0;F=((k=k+Math.imul(L,Xt)|0)+(S>>>13)|0)+(qe>>>26)|0,qe&=67108863,x=Math.imul(xt,Pt),S=(S=Math.imul(xt,hr))+Math.imul(yt,Pt)|0,k=Math.imul(yt,hr),x=x+Math.imul(et,Wt)|0,S=(S=S+Math.imul(et,Hr)|0)+Math.imul(Rt,Wt)|0,k=k+Math.imul(Rt,Hr)|0,x=x+Math.imul(Ae,pt)|0,S=(S=S+Math.imul(Ae,gr)|0)+Math.imul(Ge,pt)|0,k=k+Math.imul(Ge,gr)|0,x=x+Math.imul(Ee,Ht)|0,S=(S=S+Math.imul(Ee,Rr)|0)+Math.imul(Ie,Ht)|0,k=k+Math.imul(Ie,Rr)|0,x=x+Math.imul(ge,qt)|0,S=(S=S+Math.imul(ge,ye)|0)+Math.imul(ke,qt)|0,k=k+Math.imul(ke,ye)|0,x=x+Math.imul(we,Le)|0,S=(S=S+Math.imul(we,tt)|0)+Math.imul(le,Le)|0,k=k+Math.imul(le,tt)|0,x=x+Math.imul(ie,rt)|0,S=(S=S+Math.imul(ie,Vt)|0)+Math.imul(ue,rt)|0,k=k+Math.imul(ue,Vt)|0;var mt=(F+(x=x+Math.imul(G,Et)|0)|0)+((8191&(S=(S=S+Math.imul(G,Xt)|0)+Math.imul(ne,Et)|0))<<13)|0;F=((k=k+Math.imul(ne,Xt)|0)+(S>>>13)|0)+(mt>>>26)|0,mt&=67108863,x=Math.imul(xt,Wt),S=(S=Math.imul(xt,Hr))+Math.imul(yt,Wt)|0,k=Math.imul(yt,Hr),x=x+Math.imul(et,pt)|0,S=(S=S+Math.imul(et,gr)|0)+Math.imul(Rt,pt)|0,k=k+Math.imul(Rt,gr)|0,x=x+Math.imul(Ae,Ht)|0,S=(S=S+Math.imul(Ae,Rr)|0)+Math.imul(Ge,Ht)|0,k=k+Math.imul(Ge,Rr)|0,x=x+Math.imul(Ee,qt)|0,S=(S=S+Math.imul(Ee,ye)|0)+Math.imul(Ie,qt)|0,k=k+Math.imul(Ie,ye)|0,x=x+Math.imul(ge,Le)|0,S=(S=S+Math.imul(ge,tt)|0)+Math.imul(ke,Le)|0,k=k+Math.imul(ke,tt)|0,x=x+Math.imul(we,rt)|0,S=(S=S+Math.imul(we,Vt)|0)+Math.imul(le,rt)|0,k=k+Math.imul(le,Vt)|0;var Ye=(F+(x=x+Math.imul(ie,Et)|0)|0)+((8191&(S=(S=S+Math.imul(ie,Xt)|0)+Math.imul(ue,Et)|0))<<13)|0;F=((k=k+Math.imul(ue,Xt)|0)+(S>>>13)|0)+(Ye>>>26)|0,Ye&=67108863,x=Math.imul(xt,pt),S=(S=Math.imul(xt,gr))+Math.imul(yt,pt)|0,k=Math.imul(yt,gr),x=x+Math.imul(et,Ht)|0,S=(S=S+Math.imul(et,Rr)|0)+Math.imul(Rt,Ht)|0,k=k+Math.imul(Rt,Rr)|0,x=x+Math.imul(Ae,qt)|0,S=(S=S+Math.imul(Ae,ye)|0)+Math.imul(Ge,qt)|0,k=k+Math.imul(Ge,ye)|0,x=x+Math.imul(Ee,Le)|0,S=(S=S+Math.imul(Ee,tt)|0)+Math.imul(Ie,Le)|0,k=k+Math.imul(Ie,tt)|0,x=x+Math.imul(ge,rt)|0,S=(S=S+Math.imul(ge,Vt)|0)+Math.imul(ke,rt)|0,k=k+Math.imul(ke,Vt)|0;var Ze=(F+(x=x+Math.imul(we,Et)|0)|0)+((8191&(S=(S=S+Math.imul(we,Xt)|0)+Math.imul(le,Et)|0))<<13)|0;F=((k=k+Math.imul(le,Xt)|0)+(S>>>13)|0)+(Ze>>>26)|0,Ze&=67108863,x=Math.imul(xt,Ht),S=(S=Math.imul(xt,Rr))+Math.imul(yt,Ht)|0,k=Math.imul(yt,Rr),x=x+Math.imul(et,qt)|0,S=(S=S+Math.imul(et,ye)|0)+Math.imul(Rt,qt)|0,k=k+Math.imul(Rt,ye)|0,x=x+Math.imul(Ae,Le)|0,S=(S=S+Math.imul(Ae,tt)|0)+Math.imul(Ge,Le)|0,k=k+Math.imul(Ge,tt)|0,x=x+Math.imul(Ee,rt)|0,S=(S=S+Math.imul(Ee,Vt)|0)+Math.imul(Ie,rt)|0,k=k+Math.imul(Ie,Vt)|0;var vr=(F+(x=x+Math.imul(ge,Et)|0)|0)+((8191&(S=(S=S+Math.imul(ge,Xt)|0)+Math.imul(ke,Et)|0))<<13)|0;F=((k=k+Math.imul(ke,Xt)|0)+(S>>>13)|0)+(vr>>>26)|0,vr&=67108863,x=Math.imul(xt,qt),S=(S=Math.imul(xt,ye))+Math.imul(yt,qt)|0,k=Math.imul(yt,ye),x=x+Math.imul(et,Le)|0,S=(S=S+Math.imul(et,tt)|0)+Math.imul(Rt,Le)|0,k=k+Math.imul(Rt,tt)|0,x=x+Math.imul(Ae,rt)|0,S=(S=S+Math.imul(Ae,Vt)|0)+Math.imul(Ge,rt)|0,k=k+Math.imul(Ge,Vt)|0;var ir=(F+(x=x+Math.imul(Ee,Et)|0)|0)+((8191&(S=(S=S+Math.imul(Ee,Xt)|0)+Math.imul(Ie,Et)|0))<<13)|0;F=((k=k+Math.imul(Ie,Xt)|0)+(S>>>13)|0)+(ir>>>26)|0,ir&=67108863,x=Math.imul(xt,Le),S=(S=Math.imul(xt,tt))+Math.imul(yt,Le)|0,k=Math.imul(yt,tt),x=x+Math.imul(et,rt)|0,S=(S=S+Math.imul(et,Vt)|0)+Math.imul(Rt,rt)|0,k=k+Math.imul(Rt,Vt)|0;var lr=(F+(x=x+Math.imul(Ae,Et)|0)|0)+((8191&(S=(S=S+Math.imul(Ae,Xt)|0)+Math.imul(Ge,Et)|0))<<13)|0;F=((k=k+Math.imul(Ge,Xt)|0)+(S>>>13)|0)+(lr>>>26)|0,lr&=67108863,x=Math.imul(xt,rt),S=(S=Math.imul(xt,Vt))+Math.imul(yt,rt)|0,k=Math.imul(yt,Vt);var Lt=(F+(x=x+Math.imul(et,Et)|0)|0)+((8191&(S=(S=S+Math.imul(et,Xt)|0)+Math.imul(Rt,Et)|0))<<13)|0;F=((k=k+Math.imul(Rt,Xt)|0)+(S>>>13)|0)+(Lt>>>26)|0,Lt&=67108863;var Mr=(F+(x=Math.imul(xt,Et))|0)+((8191&(S=(S=Math.imul(xt,Xt))+Math.imul(yt,Et)|0))<<13)|0;return F=((k=Math.imul(yt,Xt))+(S>>>13)|0)+(Mr>>>26)|0,Mr&=67108863,D[0]=Bt,D[1]=or,D[2]=an,D[3]=Ur,D[4]=hn,D[5]=vn,D[6]=Cs,D[7]=he,D[8]=Te,D[9]=ze,D[10]=qe,D[11]=mt,D[12]=Ye,D[13]=Ze,D[14]=vr,D[15]=ir,D[16]=lr,D[17]=Lt,D[18]=Mr,F!==0&&(D[19]=F,C.length++),C};function _(O,N,C){return new T().mulp(O,N,C)}function T(O,N){this.x=O,this.y=N}Math.imul||(w=b),c.prototype.mulTo=function(O,N){var C=this.length+O.length;return this.length===10&&O.length===10?w(this,O,N):C<63?b(this,O,N):C<1024?function(x,S,k){k.negative=S.negative^x.negative,k.length=x.length+S.length;for(var E=0,I=0,D=0;D<k.length-1;D++){var F=I;I=0;for(var Y=67108863&E,J=Math.min(D,S.length-1),se=Math.max(0,D-x.length+1);se<=J;se++){var q=D-se,ee=(0|x.words[q])*(0|S.words[se]),L=67108863&ee;Y=67108863&(L=L+Y|0),I+=(F=(F=F+(ee/67108864|0)|0)+(L>>>26)|0)>>>26,F&=67108863}k.words[D]=Y,E=F,F=I}return E!==0?k.words[D]=E:k.length--,k.strip()}(this,O,N):_(this,O,N)},T.prototype.makeRBT=function(O){for(var N=new Array(O),C=c.prototype._countBits(O)-1,x=0;x<O;x++)N[x]=this.revBin(x,C,O);return N},T.prototype.revBin=function(O,N,C){if(O===0||O===C-1)return O;for(var x=0,S=0;S<N;S++)x|=(1&O)<<N-S-1,O>>=1;return x},T.prototype.permute=function(O,N,C,x,S,k){for(var E=0;E<k;E++)x[E]=N[O[E]],S[E]=C[O[E]]},T.prototype.transform=function(O,N,C,x,S,k){this.permute(k,O,N,C,x,S);for(var E=1;E<S;E<<=1)for(var I=E<<1,D=Math.cos(2*Math.PI/I),F=Math.sin(2*Math.PI/I),Y=0;Y<S;Y+=I)for(var J=D,se=F,q=0;q<E;q++){var ee=C[Y+q],L=x[Y+q],P=C[Y+q+E],G=x[Y+q+E],ne=J*P-se*G;G=J*G+se*P,P=ne,C[Y+q]=ee+P,x[Y+q]=L+G,C[Y+q+E]=ee-P,x[Y+q+E]=L-G,q!==I&&(ne=D*J-F*se,se=D*se+F*J,J=ne)}},T.prototype.guessLen13b=function(O,N){var C=1|Math.max(N,O),x=1&C,S=0;for(C=C/2|0;C;C>>>=1)S++;return 1<<S+1+x},T.prototype.conjugate=function(O,N,C){if(!(C<=1))for(var x=0;x<C/2;x++){var S=O[x];O[x]=O[C-x-1],O[C-x-1]=S,S=N[x],N[x]=-N[C-x-1],N[C-x-1]=-S}},T.prototype.normalize13b=function(O,N){for(var C=0,x=0;x<N/2;x++){var S=8192*Math.round(O[2*x+1]/N)+Math.round(O[2*x]/N)+C;O[x]=67108863&S,C=S<67108864?0:S/67108864|0}return O},T.prototype.convert13b=function(O,N,C,x){for(var S=0,k=0;k<N;k++)S+=0|O[k],C[2*k]=8191&S,S>>>=13,C[2*k+1]=8191&S,S>>>=13;for(k=2*N;k<x;++k)C[k]=0;o(S===0),o((-8192&S)==0)},T.prototype.stub=function(O){for(var N=new Array(O),C=0;C<O;C++)N[C]=0;return N},T.prototype.mulp=function(O,N,C){var x=2*this.guessLen13b(O.length,N.length),S=this.makeRBT(x),k=this.stub(x),E=new Array(x),I=new Array(x),D=new Array(x),F=new Array(x),Y=new Array(x),J=new Array(x),se=C.words;se.length=x,this.convert13b(O.words,O.length,E,x),this.convert13b(N.words,N.length,F,x),this.transform(E,k,I,D,x,S),this.transform(F,k,Y,J,x,S);for(var q=0;q<x;q++){var ee=I[q]*Y[q]-D[q]*J[q];D[q]=I[q]*J[q]+D[q]*Y[q],I[q]=ee}return this.conjugate(I,D,x),this.transform(I,D,se,k,x,S),this.conjugate(se,k,x),this.normalize13b(se,x),C.negative=O.negative^N.negative,C.length=O.length+N.length,C.strip()},c.prototype.mul=function(O){var N=new c(null);return N.words=new Array(this.length+O.length),this.mulTo(O,N)},c.prototype.mulf=function(O){var N=new c(null);return N.words=new Array(this.length+O.length),_(this,O,N)},c.prototype.imul=function(O){return this.clone().mulTo(O,this)},c.prototype.imuln=function(O){o(typeof O=="number"),o(O<67108864);for(var N=0,C=0;C<this.length;C++){var x=(0|this.words[C])*O,S=(67108863&x)+(67108863&N);N>>=26,N+=x/67108864|0,N+=S>>>26,this.words[C]=67108863&S}return N!==0&&(this.words[C]=N,this.length++),this},c.prototype.muln=function(O){return this.clone().imuln(O)},c.prototype.sqr=function(){return this.mul(this)},c.prototype.isqr=function(){return this.imul(this.clone())},c.prototype.pow=function(O){var N=function(k){for(var E=new Array(k.bitLength()),I=0;I<E.length;I++){var D=I/26|0,F=I%26;E[I]=(k.words[D]&1<<F)>>>F}return E}(O);if(N.length===0)return new c(1);for(var C=this,x=0;x<N.length&&N[x]===0;x++,C=C.sqr());if(++x<N.length)for(var S=C.sqr();x<N.length;x++,S=S.sqr())N[x]!==0&&(C=C.mul(S));return C},c.prototype.iushln=function(O){o(typeof O=="number"&&O>=0);var N,C=O%26,x=(O-C)/26,S=67108863>>>26-C<<26-C;if(C!==0){var k=0;for(N=0;N<this.length;N++){var E=this.words[N]&S,I=(0|this.words[N])-E<<C;this.words[N]=I|k,k=E>>>26-C}k&&(this.words[N]=k,this.length++)}if(x!==0){for(N=this.length-1;N>=0;N--)this.words[N+x]=this.words[N];for(N=0;N<x;N++)this.words[N]=0;this.length+=x}return this.strip()},c.prototype.ishln=function(O){return o(this.negative===0),this.iushln(O)},c.prototype.iushrn=function(O,N,C){var x;o(typeof O=="number"&&O>=0),x=N?(N-N%26)/26:0;var S=O%26,k=Math.min((O-S)/26,this.length),E=67108863^67108863>>>S<<S,I=C;if(x-=k,x=Math.max(0,x),I){for(var D=0;D<k;D++)I.words[D]=this.words[D];I.length=k}if(k!==0)if(this.length>k)for(this.length-=k,D=0;D<this.length;D++)this.words[D]=this.words[D+k];else this.words[0]=0,this.length=1;var F=0;for(D=this.length-1;D>=0&&(F!==0||D>=x);D--){var Y=0|this.words[D];this.words[D]=F<<26-S|Y>>>S,F=Y&E}return I&&F!==0&&(I.words[I.length++]=F),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},c.prototype.ishrn=function(O,N,C){return o(this.negative===0),this.iushrn(O,N,C)},c.prototype.shln=function(O){return this.clone().ishln(O)},c.prototype.ushln=function(O){return this.clone().iushln(O)},c.prototype.shrn=function(O){return this.clone().ishrn(O)},c.prototype.ushrn=function(O){return this.clone().iushrn(O)},c.prototype.testn=function(O){o(typeof O=="number"&&O>=0);var N=O%26,C=(O-N)/26,x=1<<N;return!(this.length<=C)&&!!(this.words[C]&x)},c.prototype.imaskn=function(O){o(typeof O=="number"&&O>=0);var N=O%26,C=(O-N)/26;if(o(this.negative===0,"imaskn works only with positive numbers"),this.length<=C)return this;if(N!==0&&C++,this.length=Math.min(C,this.length),N!==0){var x=67108863^67108863>>>N<<N;this.words[this.length-1]&=x}return this.strip()},c.prototype.maskn=function(O){return this.clone().imaskn(O)},c.prototype.iaddn=function(O){return o(typeof O=="number"),o(O<67108864),O<0?this.isubn(-O):this.negative!==0?this.length===1&&(0|this.words[0])<O?(this.words[0]=O-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(O),this.negative=1,this):this._iaddn(O)},c.prototype._iaddn=function(O){this.words[0]+=O;for(var N=0;N<this.length&&this.words[N]>=67108864;N++)this.words[N]-=67108864,N===this.length-1?this.words[N+1]=1:this.words[N+1]++;return this.length=Math.max(this.length,N+1),this},c.prototype.isubn=function(O){if(o(typeof O=="number"),o(O<67108864),O<0)return this.iaddn(-O);if(this.negative!==0)return this.negative=0,this.iaddn(O),this.negative=1,this;if(this.words[0]-=O,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var N=0;N<this.length&&this.words[N]<0;N++)this.words[N]+=67108864,this.words[N+1]-=1;return this.strip()},c.prototype.addn=function(O){return this.clone().iaddn(O)},c.prototype.subn=function(O){return this.clone().isubn(O)},c.prototype.iabs=function(){return this.negative=0,this},c.prototype.abs=function(){return this.clone().iabs()},c.prototype._ishlnsubmul=function(O,N,C){var x,S,k=O.length+C;this._expand(k);var E=0;for(x=0;x<O.length;x++){S=(0|this.words[x+C])+E;var I=(0|O.words[x])*N;E=((S-=67108863&I)>>26)-(I/67108864|0),this.words[x+C]=67108863&S}for(;x<this.length-C;x++)E=(S=(0|this.words[x+C])+E)>>26,this.words[x+C]=67108863&S;if(E===0)return this.strip();for(o(E===-1),E=0,x=0;x<this.length;x++)E=(S=-(0|this.words[x])+E)>>26,this.words[x]=67108863&S;return this.negative=1,this.strip()},c.prototype._wordDiv=function(O,N){var C=(this.length,O.length),x=this.clone(),S=O,k=0|S.words[S.length-1];(C=26-this._countBits(k))!==0&&(S=S.ushln(C),x.iushln(C),k=0|S.words[S.length-1]);var E,I=x.length-S.length;if(N!=="mod"){(E=new c(null)).length=I+1,E.words=new Array(E.length);for(var D=0;D<E.length;D++)E.words[D]=0}var F=x.clone()._ishlnsubmul(S,1,I);F.negative===0&&(x=F,E&&(E.words[I]=1));for(var Y=I-1;Y>=0;Y--){var J=67108864*(0|x.words[S.length+Y])+(0|x.words[S.length+Y-1]);for(J=Math.min(J/k|0,67108863),x._ishlnsubmul(S,J,Y);x.negative!==0;)J--,x.negative=0,x._ishlnsubmul(S,1,Y),x.isZero()||(x.negative^=1);E&&(E.words[Y]=J)}return E&&E.strip(),x.strip(),N!=="div"&&C!==0&&x.iushrn(C),{div:E||null,mod:x}},c.prototype.divmod=function(O,N,C){return o(!O.isZero()),this.isZero()?{div:new c(0),mod:new c(0)}:this.negative!==0&&O.negative===0?(k=this.neg().divmod(O,N),N!=="mod"&&(x=k.div.neg()),N!=="div"&&(S=k.mod.neg(),C&&S.negative!==0&&S.iadd(O)),{div:x,mod:S}):this.negative===0&&O.negative!==0?(k=this.divmod(O.neg(),N),N!=="mod"&&(x=k.div.neg()),{div:x,mod:k.mod}):this.negative&O.negative?(k=this.neg().divmod(O.neg(),N),N!=="div"&&(S=k.mod.neg(),C&&S.negative!==0&&S.isub(O)),{div:k.div,mod:S}):O.length>this.length||this.cmp(O)<0?{div:new c(0),mod:this}:O.length===1?N==="div"?{div:this.divn(O.words[0]),mod:null}:N==="mod"?{div:null,mod:new c(this.modn(O.words[0]))}:{div:this.divn(O.words[0]),mod:new c(this.modn(O.words[0]))}:this._wordDiv(O,N);var x,S,k},c.prototype.div=function(O){return this.divmod(O,"div",!1).div},c.prototype.mod=function(O){return this.divmod(O,"mod",!1).mod},c.prototype.umod=function(O){return this.divmod(O,"mod",!0).mod},c.prototype.divRound=function(O){var N=this.divmod(O);if(N.mod.isZero())return N.div;var C=N.div.negative!==0?N.mod.isub(O):N.mod,x=O.ushrn(1),S=O.andln(1),k=C.cmp(x);return k<0||S===1&&k===0?N.div:N.div.negative!==0?N.div.isubn(1):N.div.iaddn(1)},c.prototype.modn=function(O){o(O<=67108863);for(var N=(1<<26)%O,C=0,x=this.length-1;x>=0;x--)C=(N*C+(0|this.words[x]))%O;return C},c.prototype.idivn=function(O){o(O<=67108863);for(var N=0,C=this.length-1;C>=0;C--){var x=(0|this.words[C])+67108864*N;this.words[C]=x/O|0,N=x%O}return this.strip()},c.prototype.divn=function(O){return this.clone().idivn(O)},c.prototype.egcd=function(O){o(O.negative===0),o(!O.isZero());var N=this,C=O.clone();N=N.negative!==0?N.umod(O):N.clone();for(var x=new c(1),S=new c(0),k=new c(0),E=new c(1),I=0;N.isEven()&&C.isEven();)N.iushrn(1),C.iushrn(1),++I;for(var D=C.clone(),F=N.clone();!N.isZero();){for(var Y=0,J=1;!(N.words[0]&J)&&Y<26;++Y,J<<=1);if(Y>0)for(N.iushrn(Y);Y-- >0;)(x.isOdd()||S.isOdd())&&(x.iadd(D),S.isub(F)),x.iushrn(1),S.iushrn(1);for(var se=0,q=1;!(C.words[0]&q)&&se<26;++se,q<<=1);if(se>0)for(C.iushrn(se);se-- >0;)(k.isOdd()||E.isOdd())&&(k.iadd(D),E.isub(F)),k.iushrn(1),E.iushrn(1);N.cmp(C)>=0?(N.isub(C),x.isub(k),S.isub(E)):(C.isub(N),k.isub(x),E.isub(S))}return{a:k,b:E,gcd:C.iushln(I)}},c.prototype._invmp=function(O){o(O.negative===0),o(!O.isZero());var N=this,C=O.clone();N=N.negative!==0?N.umod(O):N.clone();for(var x,S=new c(1),k=new c(0),E=C.clone();N.cmpn(1)>0&&C.cmpn(1)>0;){for(var I=0,D=1;!(N.words[0]&D)&&I<26;++I,D<<=1);if(I>0)for(N.iushrn(I);I-- >0;)S.isOdd()&&S.iadd(E),S.iushrn(1);for(var F=0,Y=1;!(C.words[0]&Y)&&F<26;++F,Y<<=1);if(F>0)for(C.iushrn(F);F-- >0;)k.isOdd()&&k.iadd(E),k.iushrn(1);N.cmp(C)>=0?(N.isub(C),S.isub(k)):(C.isub(N),k.isub(S))}return(x=N.cmpn(1)===0?S:k).cmpn(0)<0&&x.iadd(O),x},c.prototype.gcd=function(O){if(this.isZero())return O.abs();if(O.isZero())return this.abs();var N=this.clone(),C=O.clone();N.negative=0,C.negative=0;for(var x=0;N.isEven()&&C.isEven();x++)N.iushrn(1),C.iushrn(1);for(;;){for(;N.isEven();)N.iushrn(1);for(;C.isEven();)C.iushrn(1);var S=N.cmp(C);if(S<0){var k=N;N=C,C=k}else if(S===0||C.cmpn(1)===0)break;N.isub(C)}return C.iushln(x)},c.prototype.invm=function(O){return this.egcd(O).a.umod(O)},c.prototype.isEven=function(){return(1&this.words[0])==0},c.prototype.isOdd=function(){return(1&this.words[0])==1},c.prototype.andln=function(O){return this.words[0]&O},c.prototype.bincn=function(O){o(typeof O=="number");var N=O%26,C=(O-N)/26,x=1<<N;if(this.length<=C)return this._expand(C+1),this.words[C]|=x,this;for(var S=x,k=C;S!==0&&k<this.length;k++){var E=0|this.words[k];S=(E+=S)>>>26,E&=67108863,this.words[k]=E}return S!==0&&(this.words[k]=S,this.length++),this},c.prototype.isZero=function(){return this.length===1&&this.words[0]===0},c.prototype.cmpn=function(O){var N,C=O<0;if(this.negative!==0&&!C)return-1;if(this.negative===0&&C)return 1;if(this.strip(),this.length>1)N=1;else{C&&(O=-O),o(O<=67108863,"Number is too big");var x=0|this.words[0];N=x===O?0:x<O?-1:1}return this.negative!==0?0|-N:N},c.prototype.cmp=function(O){if(this.negative!==0&&O.negative===0)return-1;if(this.negative===0&&O.negative!==0)return 1;var N=this.ucmp(O);return this.negative!==0?0|-N:N},c.prototype.ucmp=function(O){if(this.length>O.length)return 1;if(this.length<O.length)return-1;for(var N=0,C=this.length-1;C>=0;C--){var x=0|this.words[C],S=0|O.words[C];if(x!==S){x<S?N=-1:x>S&&(N=1);break}}return N},c.prototype.gtn=function(O){return this.cmpn(O)===1},c.prototype.gt=function(O){return this.cmp(O)===1},c.prototype.gten=function(O){return this.cmpn(O)>=0},c.prototype.gte=function(O){return this.cmp(O)>=0},c.prototype.ltn=function(O){return this.cmpn(O)===-1},c.prototype.lt=function(O){return this.cmp(O)===-1},c.prototype.lten=function(O){return this.cmpn(O)<=0},c.prototype.lte=function(O){return this.cmp(O)<=0},c.prototype.eqn=function(O){return this.cmpn(O)===0},c.prototype.eq=function(O){return this.cmp(O)===0},c.red=function(O){return new X(O)},c.prototype.toRed=function(O){return o(!this.red,"Already a number in reduction context"),o(this.negative===0,"red works only with positives"),O.convertTo(this)._forceRed(O)},c.prototype.fromRed=function(){return o(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},c.prototype._forceRed=function(O){return this.red=O,this},c.prototype.forceRed=function(O){return o(!this.red,"Already a number in reduction context"),this._forceRed(O)},c.prototype.redAdd=function(O){return o(this.red,"redAdd works only with red numbers"),this.red.add(this,O)},c.prototype.redIAdd=function(O){return o(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,O)},c.prototype.redSub=function(O){return o(this.red,"redSub works only with red numbers"),this.red.sub(this,O)},c.prototype.redISub=function(O){return o(this.red,"redISub works only with red numbers"),this.red.isub(this,O)},c.prototype.redShl=function(O){return o(this.red,"redShl works only with red numbers"),this.red.shl(this,O)},c.prototype.redMul=function(O){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,O),this.red.mul(this,O)},c.prototype.redIMul=function(O){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,O),this.red.imul(this,O)},c.prototype.redSqr=function(){return o(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},c.prototype.redISqr=function(){return o(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},c.prototype.redSqrt=function(){return o(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},c.prototype.redInvm=function(){return o(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},c.prototype.redNeg=function(){return o(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},c.prototype.redPow=function(O){return o(this.red&&!O.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,O)};var M={k256:null,p224:null,p192:null,p25519:null};function j(O,N){this.name=O,this.p=new c(N,16),this.n=this.p.bitLength(),this.k=new c(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function A(){j.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function B(){j.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function H(){j.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function U(){j.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function X(O){if(typeof O=="string"){var N=c._prime(O);this.m=N.p,this.prime=N}else o(O.gtn(1),"modulus must be greater than 1"),this.m=O,this.prime=null}function V(O){X.call(this,O),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new c(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)}j.prototype._tmp=function(){var O=new c(null);return O.words=new Array(Math.ceil(this.n/13)),O},j.prototype.ireduce=function(O){var N,C=O;do this.split(C,this.tmp),N=(C=(C=this.imulK(C)).iadd(this.tmp)).bitLength();while(N>this.n);var x=N<this.n?-1:C.ucmp(this.p);return x===0?(C.words[0]=0,C.length=1):x>0?C.isub(this.p):C.strip!==void 0?C.strip():C._strip(),C},j.prototype.split=function(O,N){O.iushrn(this.n,0,N)},j.prototype.imulK=function(O){return O.imul(this.k)},l(A,j),A.prototype.split=function(O,N){for(var C=Math.min(O.length,9),x=0;x<C;x++)N.words[x]=O.words[x];if(N.length=C,O.length<=9)return O.words[0]=0,void(O.length=1);var S=O.words[9];for(N.words[N.length++]=4194303&S,x=10;x<O.length;x++){var k=0|O.words[x];O.words[x-10]=(4194303&k)<<4|S>>>22,S=k}S>>>=22,O.words[x-10]=S,S===0&&O.length>10?O.length-=10:O.length-=9},A.prototype.imulK=function(O){O.words[O.length]=0,O.words[O.length+1]=0,O.length+=2;for(var N=0,C=0;C<O.length;C++){var x=0|O.words[C];N+=977*x,O.words[C]=67108863&N,N=64*x+(N/67108864|0)}return O.words[O.length-1]===0&&(O.length--,O.words[O.length-1]===0&&O.length--),O},l(B,j),l(H,j),l(U,j),U.prototype.imulK=function(O){for(var N=0,C=0;C<O.length;C++){var x=19*(0|O.words[C])+N,S=67108863&x;x>>>=26,O.words[C]=S,N=x}return N!==0&&(O.words[O.length++]=N),O},c._prime=function(O){if(M[O])return M[O];var N;if(O==="k256")N=new A;else if(O==="p224")N=new B;else if(O==="p192")N=new H;else{if(O!=="p25519")throw new Error("Unknown prime "+O);N=new U}return M[O]=N,N},X.prototype._verify1=function(O){o(O.negative===0,"red works only with positives"),o(O.red,"red works only with red numbers")},X.prototype._verify2=function(O,N){o((O.negative|N.negative)==0,"red works only with positives"),o(O.red&&O.red===N.red,"red works only with red numbers")},X.prototype.imod=function(O){return this.prime?this.prime.ireduce(O)._forceRed(this):O.umod(this.m)._forceRed(this)},X.prototype.neg=function(O){return O.isZero()?O.clone():this.m.sub(O)._forceRed(this)},X.prototype.add=function(O,N){this._verify2(O,N);var C=O.add(N);return C.cmp(this.m)>=0&&C.isub(this.m),C._forceRed(this)},X.prototype.iadd=function(O,N){this._verify2(O,N);var C=O.iadd(N);return C.cmp(this.m)>=0&&C.isub(this.m),C},X.prototype.sub=function(O,N){this._verify2(O,N);var C=O.sub(N);return C.cmpn(0)<0&&C.iadd(this.m),C._forceRed(this)},X.prototype.isub=function(O,N){this._verify2(O,N);var C=O.isub(N);return C.cmpn(0)<0&&C.iadd(this.m),C},X.prototype.shl=function(O,N){return this._verify1(O),this.imod(O.ushln(N))},X.prototype.imul=function(O,N){return this._verify2(O,N),this.imod(O.imul(N))},X.prototype.mul=function(O,N){return this._verify2(O,N),this.imod(O.mul(N))},X.prototype.isqr=function(O){return this.imul(O,O.clone())},X.prototype.sqr=function(O){return this.mul(O,O)},X.prototype.sqrt=function(O){if(O.isZero())return O.clone();var N=this.m.andln(3);if(o(N%2==1),N===3){var C=this.m.add(new c(1)).iushrn(2);return this.pow(O,C)}for(var x=this.m.subn(1),S=0;!x.isZero()&&x.andln(1)===0;)S++,x.iushrn(1);o(!x.isZero());var k=new c(1).toRed(this),E=k.redNeg(),I=this.m.subn(1).iushrn(1),D=this.m.bitLength();for(D=new c(2*D*D).toRed(this);this.pow(D,I).cmp(E)!==0;)D.redIAdd(E);for(var F=this.pow(D,x),Y=this.pow(O,x.addn(1).iushrn(1)),J=this.pow(O,x),se=S;J.cmp(k)!==0;){for(var q=J,ee=0;q.cmp(k)!==0;ee++)q=q.redSqr();o(ee<se);var L=this.pow(F,new c(1).iushln(se-ee-1));Y=Y.redMul(L),F=L.redSqr(),J=J.redMul(F),se=ee}return Y},X.prototype.invm=function(O){var N=O._invmp(this.m);return N.negative!==0?(N.negative=0,this.imod(N).redNeg()):this.imod(N)},X.prototype.pow=function(O,N){if(N.isZero())return new c(1).toRed(this);if(N.cmpn(1)===0)return O.clone();var C=new Array(16);C[0]=new c(1).toRed(this),C[1]=O;for(var x=2;x<C.length;x++)C[x]=this.mul(C[x-1],O);var S=C[0],k=0,E=0,I=N.bitLength()%26;for(I===0&&(I=26),x=N.length-1;x>=0;x--){for(var D=N.words[x],F=I-1;F>=0;F--){var Y=D>>F&1;S!==C[0]&&(S=this.sqr(S)),Y!==0||k!==0?(k<<=1,k|=Y,(++E===4||x===0&&F===0)&&(S=this.mul(S,C[k]),E=0,k=0)):E=0}I=26}return S},X.prototype.convertTo=function(O){var N=O.umod(this.m);return N===O?N.clone():N},X.prototype.convertFrom=function(O){var N=O.clone();return N.red=null,N},c.mont=function(O){return new V(O)},l(V,X),V.prototype.convertTo=function(O){return this.imod(O.ushln(this.shift))},V.prototype.convertFrom=function(O){var N=this.imod(O.mul(this.rinv));return N.red=null,N},V.prototype.imul=function(O,N){if(O.isZero()||N.isZero())return O.words[0]=0,O.length=1,O;var C=O.imul(N),x=C.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),S=C.isub(x).iushrn(this.shift),k=S;return S.cmp(this.m)>=0?k=S.isub(this.m):S.cmpn(0)<0&&(k=S.iadd(this.m)),k._forceRed(this)},V.prototype.mul=function(O,N){if(O.isZero()||N.isZero())return new c(0)._forceRed(this);var C=O.mul(N),x=C.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),S=C.isub(x).iushrn(this.shift),k=S;return S.cmp(this.m)>=0?k=S.isub(this.m):S.cmpn(0)<0&&(k=S.iadd(this.m)),k._forceRed(this)},V.prototype.invm=function(O){return this.imod(O._invmp(this.m).mul(this.r2))._forceRed(this)}})(r===void 0||r)},{buffer:188}],185:[function(e,r,s){s.byteLength=function(f){var p=h(f),g=p[0],m=p[1];return 3*(g+m)/4-m},s.toByteArray=function(f){var p,g,m=h(f),b=m[0],w=m[1],_=new o(function(j,A,B){return 3*(A+B)/4-B}(0,b,w)),T=0,M=w>0?b-4:b;for(g=0;g<M;g+=4)p=a[f.charCodeAt(g)]<<18|a[f.charCodeAt(g+1)]<<12|a[f.charCodeAt(g+2)]<<6|a[f.charCodeAt(g+3)],_[T++]=p>>16&255,_[T++]=p>>8&255,_[T++]=255&p;return w===2&&(p=a[f.charCodeAt(g)]<<2|a[f.charCodeAt(g+1)]>>4,_[T++]=255&p),w===1&&(p=a[f.charCodeAt(g)]<<10|a[f.charCodeAt(g+1)]<<4|a[f.charCodeAt(g+2)]>>2,_[T++]=p>>8&255,_[T++]=255&p),_},s.fromByteArray=function(f){for(var p,g=f.length,m=g%3,b=[],w=0,_=g-m;w<_;w+=16383)b.push(d(f,w,w+16383>_?_:w+16383));return m===1?(p=f[g-1],b.push(i[p>>2]+i[p<<4&63]+"==")):m===2&&(p=(f[g-2]<<8)+f[g-1],b.push(i[p>>10]+i[p>>4&63]+i[p<<2&63]+"=")),b.join("")};for(var i=[],a=[],o=typeof Uint8Array<"u"?Uint8Array:Array,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=0,u=l.length;c<u;++c)i[c]=l[c],a[l.charCodeAt(c)]=c;function h(f){var p=f.length;if(p%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var g=f.indexOf("=");return g===-1&&(g=p),[g,g===p?0:4-g%4]}function d(f,p,g){for(var m,b,w=[],_=p;_<g;_+=3)m=(f[_]<<16&16711680)+(f[_+1]<<8&65280)+(255&f[_+2]),w.push(i[(b=m)>>18&63]+i[b>>12&63]+i[b>>6&63]+i[63&b]);return w.join("")}a[45]=62,a[95]=63},{}],186:[function(e,r,s){(function(i,a){function o(C,x){if(!C)throw new Error(x||"Assertion failed")}function l(C,x){C.super_=x;var S=function(){};S.prototype=x.prototype,C.prototype=new S,C.prototype.constructor=C}function c(C,x,S){if(c.isBN(C))return C;this.negative=0,this.words=null,this.length=0,this.red=null,C!==null&&(x!=="le"&&x!=="be"||(S=x,x=10),this._init(C||0,x||10,S||"be"))}var u;typeof i=="object"?i.exports=c:(void 0).BN=c,c.BN=c,c.wordSize=26;try{u=typeof window<"u"&&window.Buffer!==void 0?window.Buffer:e("buffer").Buffer}catch{}function h(C,x){var S=C.charCodeAt(x);return S>=48&&S<=57?S-48:S>=65&&S<=70?S-55:S>=97&&S<=102?S-87:void o(!1,"Invalid character in "+C)}function d(C,x,S){var k=h(C,S);return S-1>=x&&(k|=h(C,S-1)<<4),k}function f(C,x,S,k){for(var E=0,I=0,D=Math.min(C.length,S),F=x;F<D;F++){var Y=C.charCodeAt(F)-48;E*=k,I=Y>=49?Y-49+10:Y>=17?Y-17+10:Y,o(Y>=0&&I<k,"Invalid character"),E+=I}return E}function p(C,x){C.words=x.words,C.length=x.length,C.negative=x.negative,C.red=x.red}if(c.isBN=function(C){return C instanceof c||C!==null&&typeof C=="object"&&C.constructor.wordSize===c.wordSize&&Array.isArray(C.words)},c.max=function(C,x){return C.cmp(x)>0?C:x},c.min=function(C,x){return C.cmp(x)<0?C:x},c.prototype._init=function(C,x,S){if(typeof C=="number")return this._initNumber(C,x,S);if(typeof C=="object")return this._initArray(C,x,S);x==="hex"&&(x=16),o(x===(0|x)&&x>=2&&x<=36);var k=0;(C=C.toString().replace(/\s+/g,""))[0]==="-"&&(k++,this.negative=1),k<C.length&&(x===16?this._parseHex(C,k,S):(this._parseBase(C,x,k),S==="le"&&this._initArray(this.toArray(),x,S)))},c.prototype._initNumber=function(C,x,S){C<0&&(this.negative=1,C=-C),C<67108864?(this.words=[67108863&C],this.length=1):C<4503599627370496?(this.words=[67108863&C,C/67108864&67108863],this.length=2):(o(C<9007199254740992),this.words=[67108863&C,C/67108864&67108863,1],this.length=3),S==="le"&&this._initArray(this.toArray(),x,S)},c.prototype._initArray=function(C,x,S){if(o(typeof C.length=="number"),C.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(C.length/3),this.words=new Array(this.length);for(var k=0;k<this.length;k++)this.words[k]=0;var E,I,D=0;if(S==="be")for(k=C.length-1,E=0;k>=0;k-=3)I=C[k]|C[k-1]<<8|C[k-2]<<16,this.words[E]|=I<<D&67108863,this.words[E+1]=I>>>26-D&67108863,(D+=24)>=26&&(D-=26,E++);else if(S==="le")for(k=0,E=0;k<C.length;k+=3)I=C[k]|C[k+1]<<8|C[k+2]<<16,this.words[E]|=I<<D&67108863,this.words[E+1]=I>>>26-D&67108863,(D+=24)>=26&&(D-=26,E++);return this._strip()},c.prototype._parseHex=function(C,x,S){this.length=Math.ceil((C.length-x)/6),this.words=new Array(this.length);for(var k=0;k<this.length;k++)this.words[k]=0;var E,I=0,D=0;if(S==="be")for(k=C.length-1;k>=x;k-=2)E=d(C,x,k)<<I,this.words[D]|=67108863&E,I>=18?(I-=18,D+=1,this.words[D]|=E>>>26):I+=8;else for(k=(C.length-x)%2==0?x+1:x;k<C.length;k+=2)E=d(C,x,k)<<I,this.words[D]|=67108863&E,I>=18?(I-=18,D+=1,this.words[D]|=E>>>26):I+=8;this._strip()},c.prototype._parseBase=function(C,x,S){this.words=[0],this.length=1;for(var k=0,E=1;E<=67108863;E*=x)k++;k--,E=E/x|0;for(var I=C.length-S,D=I%k,F=Math.min(I,I-D)+S,Y=0,J=S;J<F;J+=k)Y=f(C,J,J+k,x),this.imuln(E),this.words[0]+Y<67108864?this.words[0]+=Y:this._iaddn(Y);if(D!==0){var se=1;for(Y=f(C,J,C.length,x),J=0;J<D;J++)se*=x;this.imuln(se),this.words[0]+Y<67108864?this.words[0]+=Y:this._iaddn(Y)}this._strip()},c.prototype.copy=function(C){C.words=new Array(this.length);for(var x=0;x<this.length;x++)C.words[x]=this.words[x];C.length=this.length,C.negative=this.negative,C.red=this.red},c.prototype._move=function(C){p(C,this)},c.prototype.clone=function(){var C=new c(null);return this.copy(C),C},c.prototype._expand=function(C){for(;this.length<C;)this.words[this.length++]=0;return this},c.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},c.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{c.prototype[Symbol.for("nodejs.util.inspect.custom")]=g}catch{c.prototype.inspect=g}else c.prototype.inspect=g;function g(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var m=["","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"],b=[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],w=[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];c.prototype.toString=function(C,x){var S;if(x=0|x||1,(C=C||10)===16||C==="hex"){S="";for(var k=0,E=0,I=0;I<this.length;I++){var D=this.words[I],F=(16777215&(D<<k|E)).toString(16);E=D>>>24-k&16777215,(k+=2)>=26&&(k-=26,I--),S=E!==0||I!==this.length-1?m[6-F.length]+F+S:F+S}for(E!==0&&(S=E.toString(16)+S);S.length%x!=0;)S="0"+S;return this.negative!==0&&(S="-"+S),S}if(C===(0|C)&&C>=2&&C<=36){var Y=b[C],J=w[C];S="";var se=this.clone();for(se.negative=0;!se.isZero();){var q=se.modrn(J).toString(C);S=(se=se.idivn(J)).isZero()?q+S:m[Y-q.length]+q+S}for(this.isZero()&&(S="0"+S);S.length%x!=0;)S="0"+S;return this.negative!==0&&(S="-"+S),S}o(!1,"Base should be between 2 and 36")},c.prototype.toNumber=function(){var C=this.words[0];return this.length===2?C+=67108864*this.words[1]:this.length===3&&this.words[2]===1?C+=4503599627370496+67108864*this.words[1]:this.length>2&&o(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-C:C},c.prototype.toJSON=function(){return this.toString(16,2)},u&&(c.prototype.toBuffer=function(C,x){return this.toArrayLike(u,C,x)}),c.prototype.toArray=function(C,x){return this.toArrayLike(Array,C,x)};function _(C,x,S){S.negative=x.negative^C.negative;var k=C.length+x.length|0;S.length=k,k=k-1|0;var E=0|C.words[0],I=0|x.words[0],D=E*I,F=67108863&D,Y=D/67108864|0;S.words[0]=F;for(var J=1;J<k;J++){for(var se=Y>>>26,q=67108863&Y,ee=Math.min(J,x.length-1),L=Math.max(0,J-C.length+1);L<=ee;L++){var P=J-L|0;se+=(D=(E=0|C.words[P])*(I=0|x.words[L])+q)/67108864|0,q=67108863&D}S.words[J]=0|q,Y=0|se}return Y!==0?S.words[J]=0|Y:S.length--,S._strip()}c.prototype.toArrayLike=function(C,x,S){this._strip();var k=this.byteLength(),E=S||Math.max(1,k);o(k<=E,"byte array longer than desired length"),o(E>0,"Requested array length <= 0");var I=function(D,F){return D.allocUnsafe?D.allocUnsafe(F):new D(F)}(C,E);return this["_toArrayLike"+(x==="le"?"LE":"BE")](I,k),I},c.prototype._toArrayLikeLE=function(C,x){for(var S=0,k=0,E=0,I=0;E<this.length;E++){var D=this.words[E]<<I|k;C[S++]=255&D,S<C.length&&(C[S++]=D>>8&255),S<C.length&&(C[S++]=D>>16&255),I===6?(S<C.length&&(C[S++]=D>>24&255),k=0,I=0):(k=D>>>24,I+=2)}if(S<C.length)for(C[S++]=k;S<C.length;)C[S++]=0},c.prototype._toArrayLikeBE=function(C,x){for(var S=C.length-1,k=0,E=0,I=0;E<this.length;E++){var D=this.words[E]<<I|k;C[S--]=255&D,S>=0&&(C[S--]=D>>8&255),S>=0&&(C[S--]=D>>16&255),I===6?(S>=0&&(C[S--]=D>>24&255),k=0,I=0):(k=D>>>24,I+=2)}if(S>=0)for(C[S--]=k;S>=0;)C[S--]=0},Math.clz32?c.prototype._countBits=function(C){return 32-Math.clz32(C)}:c.prototype._countBits=function(C){var x=C,S=0;return x>=4096&&(S+=13,x>>>=13),x>=64&&(S+=7,x>>>=7),x>=8&&(S+=4,x>>>=4),x>=2&&(S+=2,x>>>=2),S+x},c.prototype._zeroBits=function(C){if(C===0)return 26;var x=C,S=0;return!(8191&x)&&(S+=13,x>>>=13),!(127&x)&&(S+=7,x>>>=7),!(15&x)&&(S+=4,x>>>=4),!(3&x)&&(S+=2,x>>>=2),!(1&x)&&S++,S},c.prototype.bitLength=function(){var C=this.words[this.length-1],x=this._countBits(C);return 26*(this.length-1)+x},c.prototype.zeroBits=function(){if(this.isZero())return 0;for(var C=0,x=0;x<this.length;x++){var S=this._zeroBits(this.words[x]);if(C+=S,S!==26)break}return C},c.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},c.prototype.toTwos=function(C){return this.negative!==0?this.abs().inotn(C).iaddn(1):this.clone()},c.prototype.fromTwos=function(C){return this.testn(C-1)?this.notn(C).iaddn(1).ineg():this.clone()},c.prototype.isNeg=function(){return this.negative!==0},c.prototype.neg=function(){return this.clone().ineg()},c.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},c.prototype.iuor=function(C){for(;this.length<C.length;)this.words[this.length++]=0;for(var x=0;x<C.length;x++)this.words[x]=this.words[x]|C.words[x];return this._strip()},c.prototype.ior=function(C){return o((this.negative|C.negative)==0),this.iuor(C)},c.prototype.or=function(C){return this.length>C.length?this.clone().ior(C):C.clone().ior(this)},c.prototype.uor=function(C){return this.length>C.length?this.clone().iuor(C):C.clone().iuor(this)},c.prototype.iuand=function(C){var x;x=this.length>C.length?C:this;for(var S=0;S<x.length;S++)this.words[S]=this.words[S]&C.words[S];return this.length=x.length,this._strip()},c.prototype.iand=function(C){return o((this.negative|C.negative)==0),this.iuand(C)},c.prototype.and=function(C){return this.length>C.length?this.clone().iand(C):C.clone().iand(this)},c.prototype.uand=function(C){return this.length>C.length?this.clone().iuand(C):C.clone().iuand(this)},c.prototype.iuxor=function(C){var x,S;this.length>C.length?(x=this,S=C):(x=C,S=this);for(var k=0;k<S.length;k++)this.words[k]=x.words[k]^S.words[k];if(this!==x)for(;k<x.length;k++)this.words[k]=x.words[k];return this.length=x.length,this._strip()},c.prototype.ixor=function(C){return o((this.negative|C.negative)==0),this.iuxor(C)},c.prototype.xor=function(C){return this.length>C.length?this.clone().ixor(C):C.clone().ixor(this)},c.prototype.uxor=function(C){return this.length>C.length?this.clone().iuxor(C):C.clone().iuxor(this)},c.prototype.inotn=function(C){o(typeof C=="number"&&C>=0);var x=0|Math.ceil(C/26),S=C%26;this._expand(x),S>0&&x--;for(var k=0;k<x;k++)this.words[k]=67108863&~this.words[k];return S>0&&(this.words[k]=~this.words[k]&67108863>>26-S),this._strip()},c.prototype.notn=function(C){return this.clone().inotn(C)},c.prototype.setn=function(C,x){o(typeof C=="number"&&C>=0);var S=C/26|0,k=C%26;return this._expand(S+1),this.words[S]=x?this.words[S]|1<<k:this.words[S]&~(1<<k),this._strip()},c.prototype.iadd=function(C){var x,S,k;if(this.negative!==0&&C.negative===0)return this.negative=0,x=this.isub(C),this.negative^=1,this._normSign();if(this.negative===0&&C.negative!==0)return C.negative=0,x=this.isub(C),C.negative=1,x._normSign();this.length>C.length?(S=this,k=C):(S=C,k=this);for(var E=0,I=0;I<k.length;I++)x=(0|S.words[I])+(0|k.words[I])+E,this.words[I]=67108863&x,E=x>>>26;for(;E!==0&&I<S.length;I++)x=(0|S.words[I])+E,this.words[I]=67108863&x,E=x>>>26;if(this.length=S.length,E!==0)this.words[this.length]=E,this.length++;else if(S!==this)for(;I<S.length;I++)this.words[I]=S.words[I];return this},c.prototype.add=function(C){var x;return C.negative!==0&&this.negative===0?(C.negative=0,x=this.sub(C),C.negative^=1,x):C.negative===0&&this.negative!==0?(this.negative=0,x=C.sub(this),this.negative=1,x):this.length>C.length?this.clone().iadd(C):C.clone().iadd(this)},c.prototype.isub=function(C){if(C.negative!==0){C.negative=0;var x=this.iadd(C);return C.negative=1,x._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(C),this.negative=1,this._normSign();var S,k,E=this.cmp(C);if(E===0)return this.negative=0,this.length=1,this.words[0]=0,this;E>0?(S=this,k=C):(S=C,k=this);for(var I=0,D=0;D<k.length;D++)I=(x=(0|S.words[D])-(0|k.words[D])+I)>>26,this.words[D]=67108863&x;for(;I!==0&&D<S.length;D++)I=(x=(0|S.words[D])+I)>>26,this.words[D]=67108863&x;if(I===0&&D<S.length&&S!==this)for(;D<S.length;D++)this.words[D]=S.words[D];return this.length=Math.max(this.length,D),S!==this&&(this.negative=1),this._strip()},c.prototype.sub=function(C){return this.clone().isub(C)};var T=function(C,x,S){var k,E,I,D=C.words,F=x.words,Y=S.words,J=0,se=0|D[0],q=8191&se,ee=se>>>13,L=0|D[1],P=8191&L,G=L>>>13,ne=0|D[2],ce=8191&ne,ie=ne>>>13,ue=0|D[3],ve=8191&ue,we=ue>>>13,le=0|D[4],me=8191&le,ge=le>>>13,ke=0|D[5],xe=8191&ke,Ee=ke>>>13,Ie=0|D[6],Pe=8191&Ie,Ae=Ie>>>13,Ge=0|D[7],st=8191&Ge,et=Ge>>>13,Rt=0|D[8],_t=8191&Rt,xt=Rt>>>13,yt=0|D[9],Qe=8191&yt,Ve=yt>>>13,it=0|F[0],wt=8191&it,ct=it>>>13,dr=0|F[1],Or=8191&dr,Pt=dr>>>13,hr=0|F[2],sr=8191&hr,Wt=hr>>>13,Hr=0|F[3],Qt=8191&Hr,pt=Hr>>>13,gr=0|F[4],qr=8191&gr,Ht=gr>>>13,Rr=0|F[5],Er=8191&Rr,qt=Rr>>>13,ye=0|F[6],Ce=8191&ye,Le=ye>>>13,tt=0|F[7],jt=8191&tt,rt=tt>>>13,Vt=0|F[8],Dt=8191&Vt,Et=Vt>>>13,Xt=0|F[9],Bt=8191&Xt,or=Xt>>>13;S.negative=C.negative^x.negative,S.length=19;var an=(J+(k=Math.imul(q,wt))|0)+((8191&(E=(E=Math.imul(q,ct))+Math.imul(ee,wt)|0))<<13)|0;J=((I=Math.imul(ee,ct))+(E>>>13)|0)+(an>>>26)|0,an&=67108863,k=Math.imul(P,wt),E=(E=Math.imul(P,ct))+Math.imul(G,wt)|0,I=Math.imul(G,ct);var Ur=(J+(k=k+Math.imul(q,Or)|0)|0)+((8191&(E=(E=E+Math.imul(q,Pt)|0)+Math.imul(ee,Or)|0))<<13)|0;J=((I=I+Math.imul(ee,Pt)|0)+(E>>>13)|0)+(Ur>>>26)|0,Ur&=67108863,k=Math.imul(ce,wt),E=(E=Math.imul(ce,ct))+Math.imul(ie,wt)|0,I=Math.imul(ie,ct),k=k+Math.imul(P,Or)|0,E=(E=E+Math.imul(P,Pt)|0)+Math.imul(G,Or)|0,I=I+Math.imul(G,Pt)|0;var hn=(J+(k=k+Math.imul(q,sr)|0)|0)+((8191&(E=(E=E+Math.imul(q,Wt)|0)+Math.imul(ee,sr)|0))<<13)|0;J=((I=I+Math.imul(ee,Wt)|0)+(E>>>13)|0)+(hn>>>26)|0,hn&=67108863,k=Math.imul(ve,wt),E=(E=Math.imul(ve,ct))+Math.imul(we,wt)|0,I=Math.imul(we,ct),k=k+Math.imul(ce,Or)|0,E=(E=E+Math.imul(ce,Pt)|0)+Math.imul(ie,Or)|0,I=I+Math.imul(ie,Pt)|0,k=k+Math.imul(P,sr)|0,E=(E=E+Math.imul(P,Wt)|0)+Math.imul(G,sr)|0,I=I+Math.imul(G,Wt)|0;var vn=(J+(k=k+Math.imul(q,Qt)|0)|0)+((8191&(E=(E=E+Math.imul(q,pt)|0)+Math.imul(ee,Qt)|0))<<13)|0;J=((I=I+Math.imul(ee,pt)|0)+(E>>>13)|0)+(vn>>>26)|0,vn&=67108863,k=Math.imul(me,wt),E=(E=Math.imul(me,ct))+Math.imul(ge,wt)|0,I=Math.imul(ge,ct),k=k+Math.imul(ve,Or)|0,E=(E=E+Math.imul(ve,Pt)|0)+Math.imul(we,Or)|0,I=I+Math.imul(we,Pt)|0,k=k+Math.imul(ce,sr)|0,E=(E=E+Math.imul(ce,Wt)|0)+Math.imul(ie,sr)|0,I=I+Math.imul(ie,Wt)|0,k=k+Math.imul(P,Qt)|0,E=(E=E+Math.imul(P,pt)|0)+Math.imul(G,Qt)|0,I=I+Math.imul(G,pt)|0;var Cs=(J+(k=k+Math.imul(q,qr)|0)|0)+((8191&(E=(E=E+Math.imul(q,Ht)|0)+Math.imul(ee,qr)|0))<<13)|0;J=((I=I+Math.imul(ee,Ht)|0)+(E>>>13)|0)+(Cs>>>26)|0,Cs&=67108863,k=Math.imul(xe,wt),E=(E=Math.imul(xe,ct))+Math.imul(Ee,wt)|0,I=Math.imul(Ee,ct),k=k+Math.imul(me,Or)|0,E=(E=E+Math.imul(me,Pt)|0)+Math.imul(ge,Or)|0,I=I+Math.imul(ge,Pt)|0,k=k+Math.imul(ve,sr)|0,E=(E=E+Math.imul(ve,Wt)|0)+Math.imul(we,sr)|0,I=I+Math.imul(we,Wt)|0,k=k+Math.imul(ce,Qt)|0,E=(E=E+Math.imul(ce,pt)|0)+Math.imul(ie,Qt)|0,I=I+Math.imul(ie,pt)|0,k=k+Math.imul(P,qr)|0,E=(E=E+Math.imul(P,Ht)|0)+Math.imul(G,qr)|0,I=I+Math.imul(G,Ht)|0;var he=(J+(k=k+Math.imul(q,Er)|0)|0)+((8191&(E=(E=E+Math.imul(q,qt)|0)+Math.imul(ee,Er)|0))<<13)|0;J=((I=I+Math.imul(ee,qt)|0)+(E>>>13)|0)+(he>>>26)|0,he&=67108863,k=Math.imul(Pe,wt),E=(E=Math.imul(Pe,ct))+Math.imul(Ae,wt)|0,I=Math.imul(Ae,ct),k=k+Math.imul(xe,Or)|0,E=(E=E+Math.imul(xe,Pt)|0)+Math.imul(Ee,Or)|0,I=I+Math.imul(Ee,Pt)|0,k=k+Math.imul(me,sr)|0,E=(E=E+Math.imul(me,Wt)|0)+Math.imul(ge,sr)|0,I=I+Math.imul(ge,Wt)|0,k=k+Math.imul(ve,Qt)|0,E=(E=E+Math.imul(ve,pt)|0)+Math.imul(we,Qt)|0,I=I+Math.imul(we,pt)|0,k=k+Math.imul(ce,qr)|0,E=(E=E+Math.imul(ce,Ht)|0)+Math.imul(ie,qr)|0,I=I+Math.imul(ie,Ht)|0,k=k+Math.imul(P,Er)|0,E=(E=E+Math.imul(P,qt)|0)+Math.imul(G,Er)|0,I=I+Math.imul(G,qt)|0;var Te=(J+(k=k+Math.imul(q,Ce)|0)|0)+((8191&(E=(E=E+Math.imul(q,Le)|0)+Math.imul(ee,Ce)|0))<<13)|0;J=((I=I+Math.imul(ee,Le)|0)+(E>>>13)|0)+(Te>>>26)|0,Te&=67108863,k=Math.imul(st,wt),E=(E=Math.imul(st,ct))+Math.imul(et,wt)|0,I=Math.imul(et,ct),k=k+Math.imul(Pe,Or)|0,E=(E=E+Math.imul(Pe,Pt)|0)+Math.imul(Ae,Or)|0,I=I+Math.imul(Ae,Pt)|0,k=k+Math.imul(xe,sr)|0,E=(E=E+Math.imul(xe,Wt)|0)+Math.imul(Ee,sr)|0,I=I+Math.imul(Ee,Wt)|0,k=k+Math.imul(me,Qt)|0,E=(E=E+Math.imul(me,pt)|0)+Math.imul(ge,Qt)|0,I=I+Math.imul(ge,pt)|0,k=k+Math.imul(ve,qr)|0,E=(E=E+Math.imul(ve,Ht)|0)+Math.imul(we,qr)|0,I=I+Math.imul(we,Ht)|0,k=k+Math.imul(ce,Er)|0,E=(E=E+Math.imul(ce,qt)|0)+Math.imul(ie,Er)|0,I=I+Math.imul(ie,qt)|0,k=k+Math.imul(P,Ce)|0,E=(E=E+Math.imul(P,Le)|0)+Math.imul(G,Ce)|0,I=I+Math.imul(G,Le)|0;var ze=(J+(k=k+Math.imul(q,jt)|0)|0)+((8191&(E=(E=E+Math.imul(q,rt)|0)+Math.imul(ee,jt)|0))<<13)|0;J=((I=I+Math.imul(ee,rt)|0)+(E>>>13)|0)+(ze>>>26)|0,ze&=67108863,k=Math.imul(_t,wt),E=(E=Math.imul(_t,ct))+Math.imul(xt,wt)|0,I=Math.imul(xt,ct),k=k+Math.imul(st,Or)|0,E=(E=E+Math.imul(st,Pt)|0)+Math.imul(et,Or)|0,I=I+Math.imul(et,Pt)|0,k=k+Math.imul(Pe,sr)|0,E=(E=E+Math.imul(Pe,Wt)|0)+Math.imul(Ae,sr)|0,I=I+Math.imul(Ae,Wt)|0,k=k+Math.imul(xe,Qt)|0,E=(E=E+Math.imul(xe,pt)|0)+Math.imul(Ee,Qt)|0,I=I+Math.imul(Ee,pt)|0,k=k+Math.imul(me,qr)|0,E=(E=E+Math.imul(me,Ht)|0)+Math.imul(ge,qr)|0,I=I+Math.imul(ge,Ht)|0,k=k+Math.imul(ve,Er)|0,E=(E=E+Math.imul(ve,qt)|0)+Math.imul(we,Er)|0,I=I+Math.imul(we,qt)|0,k=k+Math.imul(ce,Ce)|0,E=(E=E+Math.imul(ce,Le)|0)+Math.imul(ie,Ce)|0,I=I+Math.imul(ie,Le)|0,k=k+Math.imul(P,jt)|0,E=(E=E+Math.imul(P,rt)|0)+Math.imul(G,jt)|0,I=I+Math.imul(G,rt)|0;var qe=(J+(k=k+Math.imul(q,Dt)|0)|0)+((8191&(E=(E=E+Math.imul(q,Et)|0)+Math.imul(ee,Dt)|0))<<13)|0;J=((I=I+Math.imul(ee,Et)|0)+(E>>>13)|0)+(qe>>>26)|0,qe&=67108863,k=Math.imul(Qe,wt),E=(E=Math.imul(Qe,ct))+Math.imul(Ve,wt)|0,I=Math.imul(Ve,ct),k=k+Math.imul(_t,Or)|0,E=(E=E+Math.imul(_t,Pt)|0)+Math.imul(xt,Or)|0,I=I+Math.imul(xt,Pt)|0,k=k+Math.imul(st,sr)|0,E=(E=E+Math.imul(st,Wt)|0)+Math.imul(et,sr)|0,I=I+Math.imul(et,Wt)|0,k=k+Math.imul(Pe,Qt)|0,E=(E=E+Math.imul(Pe,pt)|0)+Math.imul(Ae,Qt)|0,I=I+Math.imul(Ae,pt)|0,k=k+Math.imul(xe,qr)|0,E=(E=E+Math.imul(xe,Ht)|0)+Math.imul(Ee,qr)|0,I=I+Math.imul(Ee,Ht)|0,k=k+Math.imul(me,Er)|0,E=(E=E+Math.imul(me,qt)|0)+Math.imul(ge,Er)|0,I=I+Math.imul(ge,qt)|0,k=k+Math.imul(ve,Ce)|0,E=(E=E+Math.imul(ve,Le)|0)+Math.imul(we,Ce)|0,I=I+Math.imul(we,Le)|0,k=k+Math.imul(ce,jt)|0,E=(E=E+Math.imul(ce,rt)|0)+Math.imul(ie,jt)|0,I=I+Math.imul(ie,rt)|0,k=k+Math.imul(P,Dt)|0,E=(E=E+Math.imul(P,Et)|0)+Math.imul(G,Dt)|0,I=I+Math.imul(G,Et)|0;var mt=(J+(k=k+Math.imul(q,Bt)|0)|0)+((8191&(E=(E=E+Math.imul(q,or)|0)+Math.imul(ee,Bt)|0))<<13)|0;J=((I=I+Math.imul(ee,or)|0)+(E>>>13)|0)+(mt>>>26)|0,mt&=67108863,k=Math.imul(Qe,Or),E=(E=Math.imul(Qe,Pt))+Math.imul(Ve,Or)|0,I=Math.imul(Ve,Pt),k=k+Math.imul(_t,sr)|0,E=(E=E+Math.imul(_t,Wt)|0)+Math.imul(xt,sr)|0,I=I+Math.imul(xt,Wt)|0,k=k+Math.imul(st,Qt)|0,E=(E=E+Math.imul(st,pt)|0)+Math.imul(et,Qt)|0,I=I+Math.imul(et,pt)|0,k=k+Math.imul(Pe,qr)|0,E=(E=E+Math.imul(Pe,Ht)|0)+Math.imul(Ae,qr)|0,I=I+Math.imul(Ae,Ht)|0,k=k+Math.imul(xe,Er)|0,E=(E=E+Math.imul(xe,qt)|0)+Math.imul(Ee,Er)|0,I=I+Math.imul(Ee,qt)|0,k=k+Math.imul(me,Ce)|0,E=(E=E+Math.imul(me,Le)|0)+Math.imul(ge,Ce)|0,I=I+Math.imul(ge,Le)|0,k=k+Math.imul(ve,jt)|0,E=(E=E+Math.imul(ve,rt)|0)+Math.imul(we,jt)|0,I=I+Math.imul(we,rt)|0,k=k+Math.imul(ce,Dt)|0,E=(E=E+Math.imul(ce,Et)|0)+Math.imul(ie,Dt)|0,I=I+Math.imul(ie,Et)|0;var Ye=(J+(k=k+Math.imul(P,Bt)|0)|0)+((8191&(E=(E=E+Math.imul(P,or)|0)+Math.imul(G,Bt)|0))<<13)|0;J=((I=I+Math.imul(G,or)|0)+(E>>>13)|0)+(Ye>>>26)|0,Ye&=67108863,k=Math.imul(Qe,sr),E=(E=Math.imul(Qe,Wt))+Math.imul(Ve,sr)|0,I=Math.imul(Ve,Wt),k=k+Math.imul(_t,Qt)|0,E=(E=E+Math.imul(_t,pt)|0)+Math.imul(xt,Qt)|0,I=I+Math.imul(xt,pt)|0,k=k+Math.imul(st,qr)|0,E=(E=E+Math.imul(st,Ht)|0)+Math.imul(et,qr)|0,I=I+Math.imul(et,Ht)|0,k=k+Math.imul(Pe,Er)|0,E=(E=E+Math.imul(Pe,qt)|0)+Math.imul(Ae,Er)|0,I=I+Math.imul(Ae,qt)|0,k=k+Math.imul(xe,Ce)|0,E=(E=E+Math.imul(xe,Le)|0)+Math.imul(Ee,Ce)|0,I=I+Math.imul(Ee,Le)|0,k=k+Math.imul(me,jt)|0,E=(E=E+Math.imul(me,rt)|0)+Math.imul(ge,jt)|0,I=I+Math.imul(ge,rt)|0,k=k+Math.imul(ve,Dt)|0,E=(E=E+Math.imul(ve,Et)|0)+Math.imul(we,Dt)|0,I=I+Math.imul(we,Et)|0;var Ze=(J+(k=k+Math.imul(ce,Bt)|0)|0)+((8191&(E=(E=E+Math.imul(ce,or)|0)+Math.imul(ie,Bt)|0))<<13)|0;J=((I=I+Math.imul(ie,or)|0)+(E>>>13)|0)+(Ze>>>26)|0,Ze&=67108863,k=Math.imul(Qe,Qt),E=(E=Math.imul(Qe,pt))+Math.imul(Ve,Qt)|0,I=Math.imul(Ve,pt),k=k+Math.imul(_t,qr)|0,E=(E=E+Math.imul(_t,Ht)|0)+Math.imul(xt,qr)|0,I=I+Math.imul(xt,Ht)|0,k=k+Math.imul(st,Er)|0,E=(E=E+Math.imul(st,qt)|0)+Math.imul(et,Er)|0,I=I+Math.imul(et,qt)|0,k=k+Math.imul(Pe,Ce)|0,E=(E=E+Math.imul(Pe,Le)|0)+Math.imul(Ae,Ce)|0,I=I+Math.imul(Ae,Le)|0,k=k+Math.imul(xe,jt)|0,E=(E=E+Math.imul(xe,rt)|0)+Math.imul(Ee,jt)|0,I=I+Math.imul(Ee,rt)|0,k=k+Math.imul(me,Dt)|0,E=(E=E+Math.imul(me,Et)|0)+Math.imul(ge,Dt)|0,I=I+Math.imul(ge,Et)|0;var vr=(J+(k=k+Math.imul(ve,Bt)|0)|0)+((8191&(E=(E=E+Math.imul(ve,or)|0)+Math.imul(we,Bt)|0))<<13)|0;J=((I=I+Math.imul(we,or)|0)+(E>>>13)|0)+(vr>>>26)|0,vr&=67108863,k=Math.imul(Qe,qr),E=(E=Math.imul(Qe,Ht))+Math.imul(Ve,qr)|0,I=Math.imul(Ve,Ht),k=k+Math.imul(_t,Er)|0,E=(E=E+Math.imul(_t,qt)|0)+Math.imul(xt,Er)|0,I=I+Math.imul(xt,qt)|0,k=k+Math.imul(st,Ce)|0,E=(E=E+Math.imul(st,Le)|0)+Math.imul(et,Ce)|0,I=I+Math.imul(et,Le)|0,k=k+Math.imul(Pe,jt)|0,E=(E=E+Math.imul(Pe,rt)|0)+Math.imul(Ae,jt)|0,I=I+Math.imul(Ae,rt)|0,k=k+Math.imul(xe,Dt)|0,E=(E=E+Math.imul(xe,Et)|0)+Math.imul(Ee,Dt)|0,I=I+Math.imul(Ee,Et)|0;var ir=(J+(k=k+Math.imul(me,Bt)|0)|0)+((8191&(E=(E=E+Math.imul(me,or)|0)+Math.imul(ge,Bt)|0))<<13)|0;J=((I=I+Math.imul(ge,or)|0)+(E>>>13)|0)+(ir>>>26)|0,ir&=67108863,k=Math.imul(Qe,Er),E=(E=Math.imul(Qe,qt))+Math.imul(Ve,Er)|0,I=Math.imul(Ve,qt),k=k+Math.imul(_t,Ce)|0,E=(E=E+Math.imul(_t,Le)|0)+Math.imul(xt,Ce)|0,I=I+Math.imul(xt,Le)|0,k=k+Math.imul(st,jt)|0,E=(E=E+Math.imul(st,rt)|0)+Math.imul(et,jt)|0,I=I+Math.imul(et,rt)|0,k=k+Math.imul(Pe,Dt)|0,E=(E=E+Math.imul(Pe,Et)|0)+Math.imul(Ae,Dt)|0,I=I+Math.imul(Ae,Et)|0;var lr=(J+(k=k+Math.imul(xe,Bt)|0)|0)+((8191&(E=(E=E+Math.imul(xe,or)|0)+Math.imul(Ee,Bt)|0))<<13)|0;J=((I=I+Math.imul(Ee,or)|0)+(E>>>13)|0)+(lr>>>26)|0,lr&=67108863,k=Math.imul(Qe,Ce),E=(E=Math.imul(Qe,Le))+Math.imul(Ve,Ce)|0,I=Math.imul(Ve,Le),k=k+Math.imul(_t,jt)|0,E=(E=E+Math.imul(_t,rt)|0)+Math.imul(xt,jt)|0,I=I+Math.imul(xt,rt)|0,k=k+Math.imul(st,Dt)|0,E=(E=E+Math.imul(st,Et)|0)+Math.imul(et,Dt)|0,I=I+Math.imul(et,Et)|0;var Lt=(J+(k=k+Math.imul(Pe,Bt)|0)|0)+((8191&(E=(E=E+Math.imul(Pe,or)|0)+Math.imul(Ae,Bt)|0))<<13)|0;J=((I=I+Math.imul(Ae,or)|0)+(E>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,k=Math.imul(Qe,jt),E=(E=Math.imul(Qe,rt))+Math.imul(Ve,jt)|0,I=Math.imul(Ve,rt),k=k+Math.imul(_t,Dt)|0,E=(E=E+Math.imul(_t,Et)|0)+Math.imul(xt,Dt)|0,I=I+Math.imul(xt,Et)|0;var Mr=(J+(k=k+Math.imul(st,Bt)|0)|0)+((8191&(E=(E=E+Math.imul(st,or)|0)+Math.imul(et,Bt)|0))<<13)|0;J=((I=I+Math.imul(et,or)|0)+(E>>>13)|0)+(Mr>>>26)|0,Mr&=67108863,k=Math.imul(Qe,Dt),E=(E=Math.imul(Qe,Et))+Math.imul(Ve,Dt)|0,I=Math.imul(Ve,Et);var Lr=(J+(k=k+Math.imul(_t,Bt)|0)|0)+((8191&(E=(E=E+Math.imul(_t,or)|0)+Math.imul(xt,Bt)|0))<<13)|0;J=((I=I+Math.imul(xt,or)|0)+(E>>>13)|0)+(Lr>>>26)|0,Lr&=67108863;var ar=(J+(k=Math.imul(Qe,Bt))|0)+((8191&(E=(E=Math.imul(Qe,or))+Math.imul(Ve,Bt)|0))<<13)|0;return J=((I=Math.imul(Ve,or))+(E>>>13)|0)+(ar>>>26)|0,ar&=67108863,Y[0]=an,Y[1]=Ur,Y[2]=hn,Y[3]=vn,Y[4]=Cs,Y[5]=he,Y[6]=Te,Y[7]=ze,Y[8]=qe,Y[9]=mt,Y[10]=Ye,Y[11]=Ze,Y[12]=vr,Y[13]=ir,Y[14]=lr,Y[15]=Lt,Y[16]=Mr,Y[17]=Lr,Y[18]=ar,J!==0&&(Y[19]=J,S.length++),S};function M(C,x,S){S.negative=x.negative^C.negative,S.length=C.length+x.length;for(var k=0,E=0,I=0;I<S.length-1;I++){var D=E;E=0;for(var F=67108863&k,Y=Math.min(I,x.length-1),J=Math.max(0,I-C.length+1);J<=Y;J++){var se=I-J,q=(0|C.words[se])*(0|x.words[J]),ee=67108863&q;F=67108863&(ee=ee+F|0),E+=(D=(D=D+(q/67108864|0)|0)+(ee>>>26)|0)>>>26,D&=67108863}S.words[I]=F,k=D,D=E}return k!==0?S.words[I]=k:S.length--,S._strip()}function j(C,x,S){return M(C,x,S)}Math.imul||(T=_),c.prototype.mulTo=function(C,x){var S=this.length+C.length;return this.length===10&&C.length===10?T(this,C,x):S<63?_(this,C,x):S<1024?M(this,C,x):j(this,C,x)},c.prototype.mul=function(C){var x=new c(null);return x.words=new Array(this.length+C.length),this.mulTo(C,x)},c.prototype.mulf=function(C){var x=new c(null);return x.words=new Array(this.length+C.length),j(this,C,x)},c.prototype.imul=function(C){return this.clone().mulTo(C,this)},c.prototype.imuln=function(C){var x=C<0;x&&(C=-C),o(typeof C=="number"),o(C<67108864);for(var S=0,k=0;k<this.length;k++){var E=(0|this.words[k])*C,I=(67108863&E)+(67108863&S);S>>=26,S+=E/67108864|0,S+=I>>>26,this.words[k]=67108863&I}return S!==0&&(this.words[k]=S,this.length++),x?this.ineg():this},c.prototype.muln=function(C){return this.clone().imuln(C)},c.prototype.sqr=function(){return this.mul(this)},c.prototype.isqr=function(){return this.imul(this.clone())},c.prototype.pow=function(C){var x=function(I){for(var D=new Array(I.bitLength()),F=0;F<D.length;F++){var Y=F/26|0,J=F%26;D[F]=I.words[Y]>>>J&1}return D}(C);if(x.length===0)return new c(1);for(var S=this,k=0;k<x.length&&x[k]===0;k++,S=S.sqr());if(++k<x.length)for(var E=S.sqr();k<x.length;k++,E=E.sqr())x[k]!==0&&(S=S.mul(E));return S},c.prototype.iushln=function(C){o(typeof C=="number"&&C>=0);var x,S=C%26,k=(C-S)/26,E=67108863>>>26-S<<26-S;if(S!==0){var I=0;for(x=0;x<this.length;x++){var D=this.words[x]&E,F=(0|this.words[x])-D<<S;this.words[x]=F|I,I=D>>>26-S}I&&(this.words[x]=I,this.length++)}if(k!==0){for(x=this.length-1;x>=0;x--)this.words[x+k]=this.words[x];for(x=0;x<k;x++)this.words[x]=0;this.length+=k}return this._strip()},c.prototype.ishln=function(C){return o(this.negative===0),this.iushln(C)},c.prototype.iushrn=function(C,x,S){var k;o(typeof C=="number"&&C>=0),k=x?(x-x%26)/26:0;var E=C%26,I=Math.min((C-E)/26,this.length),D=67108863^67108863>>>E<<E,F=S;if(k-=I,k=Math.max(0,k),F){for(var Y=0;Y<I;Y++)F.words[Y]=this.words[Y];F.length=I}if(I!==0)if(this.length>I)for(this.length-=I,Y=0;Y<this.length;Y++)this.words[Y]=this.words[Y+I];else this.words[0]=0,this.length=1;var J=0;for(Y=this.length-1;Y>=0&&(J!==0||Y>=k);Y--){var se=0|this.words[Y];this.words[Y]=J<<26-E|se>>>E,J=se&D}return F&&J!==0&&(F.words[F.length++]=J),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},c.prototype.ishrn=function(C,x,S){return o(this.negative===0),this.iushrn(C,x,S)},c.prototype.shln=function(C){return this.clone().ishln(C)},c.prototype.ushln=function(C){return this.clone().iushln(C)},c.prototype.shrn=function(C){return this.clone().ishrn(C)},c.prototype.ushrn=function(C){return this.clone().iushrn(C)},c.prototype.testn=function(C){o(typeof C=="number"&&C>=0);var x=C%26,S=(C-x)/26,k=1<<x;return!(this.length<=S)&&!!(this.words[S]&k)},c.prototype.imaskn=function(C){o(typeof C=="number"&&C>=0);var x=C%26,S=(C-x)/26;if(o(this.negative===0,"imaskn works only with positive numbers"),this.length<=S)return this;if(x!==0&&S++,this.length=Math.min(S,this.length),x!==0){var k=67108863^67108863>>>x<<x;this.words[this.length-1]&=k}return this._strip()},c.prototype.maskn=function(C){return this.clone().imaskn(C)},c.prototype.iaddn=function(C){return o(typeof C=="number"),o(C<67108864),C<0?this.isubn(-C):this.negative!==0?this.length===1&&(0|this.words[0])<=C?(this.words[0]=C-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(C),this.negative=1,this):this._iaddn(C)},c.prototype._iaddn=function(C){this.words[0]+=C;for(var x=0;x<this.length&&this.words[x]>=67108864;x++)this.words[x]-=67108864,x===this.length-1?this.words[x+1]=1:this.words[x+1]++;return this.length=Math.max(this.length,x+1),this},c.prototype.isubn=function(C){if(o(typeof C=="number"),o(C<67108864),C<0)return this.iaddn(-C);if(this.negative!==0)return this.negative=0,this.iaddn(C),this.negative=1,this;if(this.words[0]-=C,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var x=0;x<this.length&&this.words[x]<0;x++)this.words[x]+=67108864,this.words[x+1]-=1;return this._strip()},c.prototype.addn=function(C){return this.clone().iaddn(C)},c.prototype.subn=function(C){return this.clone().isubn(C)},c.prototype.iabs=function(){return this.negative=0,this},c.prototype.abs=function(){return this.clone().iabs()},c.prototype._ishlnsubmul=function(C,x,S){var k,E,I=C.length+S;this._expand(I);var D=0;for(k=0;k<C.length;k++){E=(0|this.words[k+S])+D;var F=(0|C.words[k])*x;D=((E-=67108863&F)>>26)-(F/67108864|0),this.words[k+S]=67108863&E}for(;k<this.length-S;k++)D=(E=(0|this.words[k+S])+D)>>26,this.words[k+S]=67108863&E;if(D===0)return this._strip();for(o(D===-1),D=0,k=0;k<this.length;k++)D=(E=-(0|this.words[k])+D)>>26,this.words[k]=67108863&E;return this.negative=1,this._strip()},c.prototype._wordDiv=function(C,x){var S=(this.length,C.length),k=this.clone(),E=C,I=0|E.words[E.length-1];(S=26-this._countBits(I))!==0&&(E=E.ushln(S),k.iushln(S),I=0|E.words[E.length-1]);var D,F=k.length-E.length;if(x!=="mod"){(D=new c(null)).length=F+1,D.words=new Array(D.length);for(var Y=0;Y<D.length;Y++)D.words[Y]=0}var J=k.clone()._ishlnsubmul(E,1,F);J.negative===0&&(k=J,D&&(D.words[F]=1));for(var se=F-1;se>=0;se--){var q=67108864*(0|k.words[E.length+se])+(0|k.words[E.length+se-1]);for(q=Math.min(q/I|0,67108863),k._ishlnsubmul(E,q,se);k.negative!==0;)q--,k.negative=0,k._ishlnsubmul(E,1,se),k.isZero()||(k.negative^=1);D&&(D.words[se]=q)}return D&&D._strip(),k._strip(),x!=="div"&&S!==0&&k.iushrn(S),{div:D||null,mod:k}},c.prototype.divmod=function(C,x,S){return o(!C.isZero()),this.isZero()?{div:new c(0),mod:new c(0)}:this.negative!==0&&C.negative===0?(I=this.neg().divmod(C,x),x!=="mod"&&(k=I.div.neg()),x!=="div"&&(E=I.mod.neg(),S&&E.negative!==0&&E.iadd(C)),{div:k,mod:E}):this.negative===0&&C.negative!==0?(I=this.divmod(C.neg(),x),x!=="mod"&&(k=I.div.neg()),{div:k,mod:I.mod}):this.negative&C.negative?(I=this.neg().divmod(C.neg(),x),x!=="div"&&(E=I.mod.neg(),S&&E.negative!==0&&E.isub(C)),{div:I.div,mod:E}):C.length>this.length||this.cmp(C)<0?{div:new c(0),mod:this}:C.length===1?x==="div"?{div:this.divn(C.words[0]),mod:null}:x==="mod"?{div:null,mod:new c(this.modrn(C.words[0]))}:{div:this.divn(C.words[0]),mod:new c(this.modrn(C.words[0]))}:this._wordDiv(C,x);var k,E,I},c.prototype.div=function(C){return this.divmod(C,"div",!1).div},c.prototype.mod=function(C){return this.divmod(C,"mod",!1).mod},c.prototype.umod=function(C){return this.divmod(C,"mod",!0).mod},c.prototype.divRound=function(C){var x=this.divmod(C);if(x.mod.isZero())return x.div;var S=x.div.negative!==0?x.mod.isub(C):x.mod,k=C.ushrn(1),E=C.andln(1),I=S.cmp(k);return I<0||E===1&&I===0?x.div:x.div.negative!==0?x.div.isubn(1):x.div.iaddn(1)},c.prototype.modrn=function(C){var x=C<0;x&&(C=-C),o(C<=67108863);for(var S=(1<<26)%C,k=0,E=this.length-1;E>=0;E--)k=(S*k+(0|this.words[E]))%C;return x?-k:k},c.prototype.modn=function(C){return this.modrn(C)},c.prototype.idivn=function(C){var x=C<0;x&&(C=-C),o(C<=67108863);for(var S=0,k=this.length-1;k>=0;k--){var E=(0|this.words[k])+67108864*S;this.words[k]=E/C|0,S=E%C}return this._strip(),x?this.ineg():this},c.prototype.divn=function(C){return this.clone().idivn(C)},c.prototype.egcd=function(C){o(C.negative===0),o(!C.isZero());var x=this,S=C.clone();x=x.negative!==0?x.umod(C):x.clone();for(var k=new c(1),E=new c(0),I=new c(0),D=new c(1),F=0;x.isEven()&&S.isEven();)x.iushrn(1),S.iushrn(1),++F;for(var Y=S.clone(),J=x.clone();!x.isZero();){for(var se=0,q=1;!(x.words[0]&q)&&se<26;++se,q<<=1);if(se>0)for(x.iushrn(se);se-- >0;)(k.isOdd()||E.isOdd())&&(k.iadd(Y),E.isub(J)),k.iushrn(1),E.iushrn(1);for(var ee=0,L=1;!(S.words[0]&L)&&ee<26;++ee,L<<=1);if(ee>0)for(S.iushrn(ee);ee-- >0;)(I.isOdd()||D.isOdd())&&(I.iadd(Y),D.isub(J)),I.iushrn(1),D.iushrn(1);x.cmp(S)>=0?(x.isub(S),k.isub(I),E.isub(D)):(S.isub(x),I.isub(k),D.isub(E))}return{a:I,b:D,gcd:S.iushln(F)}},c.prototype._invmp=function(C){o(C.negative===0),o(!C.isZero());var x=this,S=C.clone();x=x.negative!==0?x.umod(C):x.clone();for(var k,E=new c(1),I=new c(0),D=S.clone();x.cmpn(1)>0&&S.cmpn(1)>0;){for(var F=0,Y=1;!(x.words[0]&Y)&&F<26;++F,Y<<=1);if(F>0)for(x.iushrn(F);F-- >0;)E.isOdd()&&E.iadd(D),E.iushrn(1);for(var J=0,se=1;!(S.words[0]&se)&&J<26;++J,se<<=1);if(J>0)for(S.iushrn(J);J-- >0;)I.isOdd()&&I.iadd(D),I.iushrn(1);x.cmp(S)>=0?(x.isub(S),E.isub(I)):(S.isub(x),I.isub(E))}return(k=x.cmpn(1)===0?E:I).cmpn(0)<0&&k.iadd(C),k},c.prototype.gcd=function(C){if(this.isZero())return C.abs();if(C.isZero())return this.abs();var x=this.clone(),S=C.clone();x.negative=0,S.negative=0;for(var k=0;x.isEven()&&S.isEven();k++)x.iushrn(1),S.iushrn(1);for(;;){for(;x.isEven();)x.iushrn(1);for(;S.isEven();)S.iushrn(1);var E=x.cmp(S);if(E<0){var I=x;x=S,S=I}else if(E===0||S.cmpn(1)===0)break;x.isub(S)}return S.iushln(k)},c.prototype.invm=function(C){return this.egcd(C).a.umod(C)},c.prototype.isEven=function(){return(1&this.words[0])==0},c.prototype.isOdd=function(){return(1&this.words[0])==1},c.prototype.andln=function(C){return this.words[0]&C},c.prototype.bincn=function(C){o(typeof C=="number");var x=C%26,S=(C-x)/26,k=1<<x;if(this.length<=S)return this._expand(S+1),this.words[S]|=k,this;for(var E=k,I=S;E!==0&&I<this.length;I++){var D=0|this.words[I];E=(D+=E)>>>26,D&=67108863,this.words[I]=D}return E!==0&&(this.words[I]=E,this.length++),this},c.prototype.isZero=function(){return this.length===1&&this.words[0]===0},c.prototype.cmpn=function(C){var x,S=C<0;if(this.negative!==0&&!S)return-1;if(this.negative===0&&S)return 1;if(this._strip(),this.length>1)x=1;else{S&&(C=-C),o(C<=67108863,"Number is too big");var k=0|this.words[0];x=k===C?0:k<C?-1:1}return this.negative!==0?0|-x:x},c.prototype.cmp=function(C){if(this.negative!==0&&C.negative===0)return-1;if(this.negative===0&&C.negative!==0)return 1;var x=this.ucmp(C);return this.negative!==0?0|-x:x},c.prototype.ucmp=function(C){if(this.length>C.length)return 1;if(this.length<C.length)return-1;for(var x=0,S=this.length-1;S>=0;S--){var k=0|this.words[S],E=0|C.words[S];if(k!==E){k<E?x=-1:k>E&&(x=1);break}}return x},c.prototype.gtn=function(C){return this.cmpn(C)===1},c.prototype.gt=function(C){return this.cmp(C)===1},c.prototype.gten=function(C){return this.cmpn(C)>=0},c.prototype.gte=function(C){return this.cmp(C)>=0},c.prototype.ltn=function(C){return this.cmpn(C)===-1},c.prototype.lt=function(C){return this.cmp(C)===-1},c.prototype.lten=function(C){return this.cmpn(C)<=0},c.prototype.lte=function(C){return this.cmp(C)<=0},c.prototype.eqn=function(C){return this.cmpn(C)===0},c.prototype.eq=function(C){return this.cmp(C)===0},c.red=function(C){return new O(C)},c.prototype.toRed=function(C){return o(!this.red,"Already a number in reduction context"),o(this.negative===0,"red works only with positives"),C.convertTo(this)._forceRed(C)},c.prototype.fromRed=function(){return o(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},c.prototype._forceRed=function(C){return this.red=C,this},c.prototype.forceRed=function(C){return o(!this.red,"Already a number in reduction context"),this._forceRed(C)},c.prototype.redAdd=function(C){return o(this.red,"redAdd works only with red numbers"),this.red.add(this,C)},c.prototype.redIAdd=function(C){return o(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,C)},c.prototype.redSub=function(C){return o(this.red,"redSub works only with red numbers"),this.red.sub(this,C)},c.prototype.redISub=function(C){return o(this.red,"redISub works only with red numbers"),this.red.isub(this,C)},c.prototype.redShl=function(C){return o(this.red,"redShl works only with red numbers"),this.red.shl(this,C)},c.prototype.redMul=function(C){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,C),this.red.mul(this,C)},c.prototype.redIMul=function(C){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,C),this.red.imul(this,C)},c.prototype.redSqr=function(){return o(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},c.prototype.redISqr=function(){return o(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},c.prototype.redSqrt=function(){return o(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},c.prototype.redInvm=function(){return o(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},c.prototype.redNeg=function(){return o(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},c.prototype.redPow=function(C){return o(this.red&&!C.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,C)};var A={k256:null,p224:null,p192:null,p25519:null};function B(C,x){this.name=C,this.p=new c(x,16),this.n=this.p.bitLength(),this.k=new c(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function H(){B.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function U(){B.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function X(){B.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function V(){B.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function O(C){if(typeof C=="string"){var x=c._prime(C);this.m=x.p,this.prime=x}else o(C.gtn(1),"modulus must be greater than 1"),this.m=C,this.prime=null}function N(C){O.call(this,C),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new c(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)}B.prototype._tmp=function(){var C=new c(null);return C.words=new Array(Math.ceil(this.n/13)),C},B.prototype.ireduce=function(C){var x,S=C;do this.split(S,this.tmp),x=(S=(S=this.imulK(S)).iadd(this.tmp)).bitLength();while(x>this.n);var k=x<this.n?-1:S.ucmp(this.p);return k===0?(S.words[0]=0,S.length=1):k>0?S.isub(this.p):S.strip!==void 0?S.strip():S._strip(),S},B.prototype.split=function(C,x){C.iushrn(this.n,0,x)},B.prototype.imulK=function(C){return C.imul(this.k)},l(H,B),H.prototype.split=function(C,x){for(var S=Math.min(C.length,9),k=0;k<S;k++)x.words[k]=C.words[k];if(x.length=S,C.length<=9)return C.words[0]=0,void(C.length=1);var E=C.words[9];for(x.words[x.length++]=4194303&E,k=10;k<C.length;k++){var I=0|C.words[k];C.words[k-10]=(4194303&I)<<4|E>>>22,E=I}E>>>=22,C.words[k-10]=E,E===0&&C.length>10?C.length-=10:C.length-=9},H.prototype.imulK=function(C){C.words[C.length]=0,C.words[C.length+1]=0,C.length+=2;for(var x=0,S=0;S<C.length;S++){var k=0|C.words[S];x+=977*k,C.words[S]=67108863&x,x=64*k+(x/67108864|0)}return C.words[C.length-1]===0&&(C.length--,C.words[C.length-1]===0&&C.length--),C},l(U,B),l(X,B),l(V,B),V.prototype.imulK=function(C){for(var x=0,S=0;S<C.length;S++){var k=19*(0|C.words[S])+x,E=67108863&k;k>>>=26,C.words[S]=E,x=k}return x!==0&&(C.words[C.length++]=x),C},c._prime=function(C){if(A[C])return A[C];var x;if(C==="k256")x=new H;else if(C==="p224")x=new U;else if(C==="p192")x=new X;else{if(C!=="p25519")throw new Error("Unknown prime "+C);x=new V}return A[C]=x,x},O.prototype._verify1=function(C){o(C.negative===0,"red works only with positives"),o(C.red,"red works only with red numbers")},O.prototype._verify2=function(C,x){o((C.negative|x.negative)==0,"red works only with positives"),o(C.red&&C.red===x.red,"red works only with red numbers")},O.prototype.imod=function(C){return this.prime?this.prime.ireduce(C)._forceRed(this):(p(C,C.umod(this.m)._forceRed(this)),C)},O.prototype.neg=function(C){return C.isZero()?C.clone():this.m.sub(C)._forceRed(this)},O.prototype.add=function(C,x){this._verify2(C,x);var S=C.add(x);return S.cmp(this.m)>=0&&S.isub(this.m),S._forceRed(this)},O.prototype.iadd=function(C,x){this._verify2(C,x);var S=C.iadd(x);return S.cmp(this.m)>=0&&S.isub(this.m),S},O.prototype.sub=function(C,x){this._verify2(C,x);var S=C.sub(x);return S.cmpn(0)<0&&S.iadd(this.m),S._forceRed(this)},O.prototype.isub=function(C,x){this._verify2(C,x);var S=C.isub(x);return S.cmpn(0)<0&&S.iadd(this.m),S},O.prototype.shl=function(C,x){return this._verify1(C),this.imod(C.ushln(x))},O.prototype.imul=function(C,x){return this._verify2(C,x),this.imod(C.imul(x))},O.prototype.mul=function(C,x){return this._verify2(C,x),this.imod(C.mul(x))},O.prototype.isqr=function(C){return this.imul(C,C.clone())},O.prototype.sqr=function(C){return this.mul(C,C)},O.prototype.sqrt=function(C){if(C.isZero())return C.clone();var x=this.m.andln(3);if(o(x%2==1),x===3){var S=this.m.add(new c(1)).iushrn(2);return this.pow(C,S)}for(var k=this.m.subn(1),E=0;!k.isZero()&&k.andln(1)===0;)E++,k.iushrn(1);o(!k.isZero());var I=new c(1).toRed(this),D=I.redNeg(),F=this.m.subn(1).iushrn(1),Y=this.m.bitLength();for(Y=new c(2*Y*Y).toRed(this);this.pow(Y,F).cmp(D)!==0;)Y.redIAdd(D);for(var J=this.pow(Y,k),se=this.pow(C,k.addn(1).iushrn(1)),q=this.pow(C,k),ee=E;q.cmp(I)!==0;){for(var L=q,P=0;L.cmp(I)!==0;P++)L=L.redSqr();o(P<ee);var G=this.pow(J,new c(1).iushln(ee-P-1));se=se.redMul(G),J=G.redSqr(),q=q.redMul(J),ee=P}return se},O.prototype.invm=function(C){var x=C._invmp(this.m);return x.negative!==0?(x.negative=0,this.imod(x).redNeg()):this.imod(x)},O.prototype.pow=function(C,x){if(x.isZero())return new c(1).toRed(this);if(x.cmpn(1)===0)return C.clone();var S=new Array(16);S[0]=new c(1).toRed(this),S[1]=C;for(var k=2;k<S.length;k++)S[k]=this.mul(S[k-1],C);var E=S[0],I=0,D=0,F=x.bitLength()%26;for(F===0&&(F=26),k=x.length-1;k>=0;k--){for(var Y=x.words[k],J=F-1;J>=0;J--){var se=Y>>J&1;E!==S[0]&&(E=this.sqr(E)),se!==0||I!==0?(I<<=1,I|=se,(++D===4||k===0&&J===0)&&(E=this.mul(E,S[I]),D=0,I=0)):D=0}F=26}return E},O.prototype.convertTo=function(C){var x=C.umod(this.m);return x===C?x.clone():x},O.prototype.convertFrom=function(C){var x=C.clone();return x.red=null,x},c.mont=function(C){return new N(C)},l(N,O),N.prototype.convertTo=function(C){return this.imod(C.ushln(this.shift))},N.prototype.convertFrom=function(C){var x=this.imod(C.mul(this.rinv));return x.red=null,x},N.prototype.imul=function(C,x){if(C.isZero()||x.isZero())return C.words[0]=0,C.length=1,C;var S=C.imul(x),k=S.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),E=S.isub(k).iushrn(this.shift),I=E;return E.cmp(this.m)>=0?I=E.isub(this.m):E.cmpn(0)<0&&(I=E.iadd(this.m)),I._forceRed(this)},N.prototype.mul=function(C,x){if(C.isZero()||x.isZero())return new c(0)._forceRed(this);var S=C.mul(x),k=S.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),E=S.isub(k).iushrn(this.shift),I=E;return E.cmp(this.m)>=0?I=E.isub(this.m):E.cmpn(0)<0&&(I=E.iadd(this.m)),I._forceRed(this)},N.prototype.invm=function(C){return this.imod(C._invmp(this.m).mul(this.r2))._forceRed(this)}})(r===void 0||r)},{buffer:188}],187:[function(e,r,s){var i;function a(l){this.rand=l}if(r.exports=function(l){return i||(i=new a(null)),i.generate(l)},r.exports.Rand=a,a.prototype.generate=function(l){return this._rand(l)},a.prototype._rand=function(l){if(this.rand.getBytes)return this.rand.getBytes(l);for(var c=new Uint8Array(l),u=0;u<c.length;u++)c[u]=this.rand.getByte();return c},typeof self=="object")self.crypto&&self.crypto.getRandomValues?a.prototype._rand=function(l){var c=new Uint8Array(l);return self.crypto.getRandomValues(c),c}:self.msCrypto&&self.msCrypto.getRandomValues?a.prototype._rand=function(l){var c=new Uint8Array(l);return self.msCrypto.getRandomValues(c),c}:typeof window=="object"&&(a.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var o=e("crypto");if(typeof o.randomBytes!="function")throw new Error("Not supported");a.prototype._rand=function(l){return o.randomBytes(l)}}catch{}},{crypto:188}],188:[function(e,r,s){},{}],189:[function(e,r,s){var i=e("safe-buffer").Buffer;function a(d){i.isBuffer(d)||(d=i.from(d));for(var f=d.length/4|0,p=new Array(f),g=0;g<f;g++)p[g]=d.readUInt32BE(4*g);return p}function o(d){for(;0<d.length;d++)d[0]=0}function l(d,f,p,g,m){for(var b,w,_,T,M=p[0],j=p[1],A=p[2],B=p[3],H=d[0]^f[0],U=d[1]^f[1],X=d[2]^f[2],V=d[3]^f[3],O=4,N=1;N<m;N++)b=M[H>>>24]^j[U>>>16&255]^A[X>>>8&255]^B[255&V]^f[O++],w=M[U>>>24]^j[X>>>16&255]^A[V>>>8&255]^B[255&H]^f[O++],_=M[X>>>24]^j[V>>>16&255]^A[H>>>8&255]^B[255&U]^f[O++],T=M[V>>>24]^j[H>>>16&255]^A[U>>>8&255]^B[255&X]^f[O++],H=b,U=w,X=_,V=T;return b=(g[H>>>24]<<24|g[U>>>16&255]<<16|g[X>>>8&255]<<8|g[255&V])^f[O++],w=(g[U>>>24]<<24|g[X>>>16&255]<<16|g[V>>>8&255]<<8|g[255&H])^f[O++],_=(g[X>>>24]<<24|g[V>>>16&255]<<16|g[H>>>8&255]<<8|g[255&U])^f[O++],T=(g[V>>>24]<<24|g[H>>>16&255]<<16|g[U>>>8&255]<<8|g[255&X])^f[O++],[b>>>=0,w>>>=0,_>>>=0,T>>>=0]}var c=[0,1,2,4,8,16,32,64,128,27,54],u=function(){for(var d=new Array(256),f=0;f<256;f++)d[f]=f<128?f<<1:f<<1^283;for(var p=[],g=[],m=[[],[],[],[]],b=[[],[],[],[]],w=0,_=0,T=0;T<256;++T){var M=_^_<<1^_<<2^_<<3^_<<4;M=M>>>8^255&M^99,p[w]=M,g[M]=w;var j=d[w],A=d[j],B=d[A],H=257*d[M]^16843008*M;m[0][w]=H<<24|H>>>8,m[1][w]=H<<16|H>>>16,m[2][w]=H<<8|H>>>24,m[3][w]=H,H=16843009*B^65537*A^257*j^16843008*w,b[0][M]=H<<24|H>>>8,b[1][M]=H<<16|H>>>16,b[2][M]=H<<8|H>>>24,b[3][M]=H,w===0?w=_=1:(w=j^d[d[d[B^j]]],_^=d[d[_]])}return{SBOX:p,INV_SBOX:g,SUB_MIX:m,INV_SUB_MIX:b}}();function h(d){this._key=a(d),this._reset()}h.blockSize=16,h.keySize=32,h.prototype.blockSize=h.blockSize,h.prototype.keySize=h.keySize,h.prototype._reset=function(){for(var d=this._key,f=d.length,p=f+6,g=4*(p+1),m=[],b=0;b<f;b++)m[b]=d[b];for(b=f;b<g;b++){var w=m[b-1];b%f==0?(w=w<<8|w>>>24,w=u.SBOX[w>>>24]<<24|u.SBOX[w>>>16&255]<<16|u.SBOX[w>>>8&255]<<8|u.SBOX[255&w],w^=c[b/f|0]<<24):f>6&&b%f==4&&(w=u.SBOX[w>>>24]<<24|u.SBOX[w>>>16&255]<<16|u.SBOX[w>>>8&255]<<8|u.SBOX[255&w]),m[b]=m[b-f]^w}for(var _=[],T=0;T<g;T++){var M=g-T,j=m[M-(T%4?0:4)];_[T]=T<4||M<=4?j:u.INV_SUB_MIX[0][u.SBOX[j>>>24]]^u.INV_SUB_MIX[1][u.SBOX[j>>>16&255]]^u.INV_SUB_MIX[2][u.SBOX[j>>>8&255]]^u.INV_SUB_MIX[3][u.SBOX[255&j]]}this._nRounds=p,this._keySchedule=m,this._invKeySchedule=_},h.prototype.encryptBlockRaw=function(d){return l(d=a(d),this._keySchedule,u.SUB_MIX,u.SBOX,this._nRounds)},h.prototype.encryptBlock=function(d){var f=this.encryptBlockRaw(d),p=i.allocUnsafe(16);return p.writeUInt32BE(f[0],0),p.writeUInt32BE(f[1],4),p.writeUInt32BE(f[2],8),p.writeUInt32BE(f[3],12),p},h.prototype.decryptBlock=function(d){var f=(d=a(d))[1];d[1]=d[3],d[3]=f;var p=l(d,this._invKeySchedule,u.INV_SUB_MIX,u.INV_SBOX,this._nRounds),g=i.allocUnsafe(16);return g.writeUInt32BE(p[0],0),g.writeUInt32BE(p[3],4),g.writeUInt32BE(p[2],8),g.writeUInt32BE(p[1],12),g},h.prototype.scrub=function(){o(this._keySchedule),o(this._invKeySchedule),o(this._key)},r.exports.AES=h},{"safe-buffer":494}],190:[function(e,r,s){var i=e("./aes"),a=e("safe-buffer").Buffer,o=e("cipher-base"),l=e("inherits"),c=e("./ghash"),u=e("buffer-xor"),h=e("./incr32");function d(f,p,g,m){o.call(this);var b=a.alloc(4,0);this._cipher=new i.AES(p);var w=this._cipher.encryptBlock(b);this._ghash=new c(w),g=function(_,T,M){if(T.length===12)return _._finID=a.concat([T,a.from([0,0,0,1])]),a.concat([T,a.from([0,0,0,2])]);var j=new c(M),A=T.length,B=A%16;j.update(T),B&&(B=16-B,j.update(a.alloc(B,0))),j.update(a.alloc(8,0));var H=8*A,U=a.alloc(8);U.writeUIntBE(H,0,8),j.update(U),_._finID=j.state;var X=a.from(_._finID);return h(X),X}(this,g,w),this._prev=a.from(g),this._cache=a.allocUnsafe(0),this._secCache=a.allocUnsafe(0),this._decrypt=m,this._alen=0,this._len=0,this._mode=f,this._authTag=null,this._called=!1}l(d,o),d.prototype._update=function(f){if(!this._called&&this._alen){var p=16-this._alen%16;p<16&&(p=a.alloc(p,0),this._ghash.update(p))}this._called=!0;var g=this._mode.encrypt(this,f);return this._decrypt?this._ghash.update(f):this._ghash.update(g),this._len+=f.length,g},d.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var f=u(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(p,g){var m=0;p.length!==g.length&&m++;for(var b=Math.min(p.length,g.length),w=0;w<b;++w)m+=p[w]^g[w];return m}(f,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=f,this._cipher.scrub()},d.prototype.getAuthTag=function(){if(this._decrypt||!a.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},d.prototype.setAuthTag=function(f){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=f},d.prototype.setAAD=function(f){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(f),this._alen+=f.length},r.exports=d},{"./aes":189,"./ghash":194,"./incr32":195,"buffer-xor":219,"cipher-base":221,inherits:440,"safe-buffer":494}],191:[function(e,r,s){var i=e("./encrypter"),a=e("./decrypter"),o=e("./modes/list.json");s.createCipher=s.Cipher=i.createCipher,s.createCipheriv=s.Cipheriv=i.createCipheriv,s.createDecipher=s.Decipher=a.createDecipher,s.createDecipheriv=s.Decipheriv=a.createDecipheriv,s.listCiphers=s.getCiphers=function(){return Object.keys(o)}},{"./decrypter":192,"./encrypter":193,"./modes/list.json":203}],192:[function(e,r,s){var i=e("./authCipher"),a=e("safe-buffer").Buffer,o=e("./modes"),l=e("./streamCipher"),c=e("cipher-base"),u=e("./aes"),h=e("evp_bytestokey");function d(g,m,b){c.call(this),this._cache=new f,this._last=void 0,this._cipher=new u.AES(m),this._prev=a.from(b),this._mode=g,this._autopadding=!0}function f(){this.cache=a.allocUnsafe(0)}function p(g,m,b){var w=o[g.toLowerCase()];if(!w)throw new TypeError("invalid suite type");if(typeof b=="string"&&(b=a.from(b)),w.mode!=="GCM"&&b.length!==w.iv)throw new TypeError("invalid iv length "+b.length);if(typeof m=="string"&&(m=a.from(m)),m.length!==w.key/8)throw new TypeError("invalid key length "+m.length);return w.type==="stream"?new l(w.module,m,b,!0):w.type==="auth"?new i(w.module,m,b,!0):new d(w.module,m,b)}e("inherits")(d,c),d.prototype._update=function(g){var m,b;this._cache.add(g);for(var w=[];m=this._cache.get(this._autopadding);)b=this._mode.decrypt(this,m),w.push(b);return a.concat(w)},d.prototype._final=function(){var g=this._cache.flush();if(this._autopadding)return function(m){var b=m[15];if(b<1||b>16)throw new Error("unable to decrypt data");for(var w=-1;++w<b;)if(m[w+(16-b)]!==b)throw new Error("unable to decrypt data");if(b!==16)return m.slice(0,16-b)}(this._mode.decrypt(this,g));if(g)throw new Error("data not multiple of block length")},d.prototype.setAutoPadding=function(g){return this._autopadding=!!g,this},f.prototype.add=function(g){this.cache=a.concat([this.cache,g])},f.prototype.get=function(g){var m;if(g){if(this.cache.length>16)return m=this.cache.slice(0,16),this.cache=this.cache.slice(16),m}else if(this.cache.length>=16)return m=this.cache.slice(0,16),this.cache=this.cache.slice(16),m;return null},f.prototype.flush=function(){if(this.cache.length)return this.cache},s.createDecipher=function(g,m){var b=o[g.toLowerCase()];if(!b)throw new TypeError("invalid suite type");var w=h(m,!1,b.key,b.iv);return p(g,w.key,w.iv)},s.createDecipheriv=p},{"./aes":189,"./authCipher":190,"./modes":202,"./streamCipher":205,"cipher-base":221,evp_bytestokey:423,inherits:440,"safe-buffer":494}],193:[function(e,r,s){var i=e("./modes"),a=e("./authCipher"),o=e("safe-buffer").Buffer,l=e("./streamCipher"),c=e("cipher-base"),u=e("./aes"),h=e("evp_bytestokey");function d(m,b,w){c.call(this),this._cache=new p,this._cipher=new u.AES(b),this._prev=o.from(w),this._mode=m,this._autopadding=!0}e("inherits")(d,c),d.prototype._update=function(m){var b,w;this._cache.add(m);for(var _=[];b=this._cache.get();)w=this._mode.encrypt(this,b),_.push(w);return o.concat(_)};var f=o.alloc(16,16);function p(){this.cache=o.allocUnsafe(0)}function g(m,b,w){var _=i[m.toLowerCase()];if(!_)throw new TypeError("invalid suite type");if(typeof b=="string"&&(b=o.from(b)),b.length!==_.key/8)throw new TypeError("invalid key length "+b.length);if(typeof w=="string"&&(w=o.from(w)),_.mode!=="GCM"&&w.length!==_.iv)throw new TypeError("invalid iv length "+w.length);return _.type==="stream"?new l(_.module,b,w):_.type==="auth"?new a(_.module,b,w):new d(_.module,b,w)}d.prototype._final=function(){var m=this._cache.flush();if(this._autopadding)return m=this._mode.encrypt(this,m),this._cipher.scrub(),m;if(!m.equals(f))throw this._cipher.scrub(),new Error("data not multiple of block length")},d.prototype.setAutoPadding=function(m){return this._autopadding=!!m,this},p.prototype.add=function(m){this.cache=o.concat([this.cache,m])},p.prototype.get=function(){if(this.cache.length>15){var m=this.cache.slice(0,16);return this.cache=this.cache.slice(16),m}return null},p.prototype.flush=function(){for(var m=16-this.cache.length,b=o.allocUnsafe(m),w=-1;++w<m;)b.writeUInt8(m,w);return o.concat([this.cache,b])},s.createCipheriv=g,s.createCipher=function(m,b){var w=i[m.toLowerCase()];if(!w)throw new TypeError("invalid suite type");var _=h(b,!1,w.key,w.iv);return g(m,_.key,_.iv)}},{"./aes":189,"./authCipher":190,"./modes":202,"./streamCipher":205,"cipher-base":221,evp_bytestokey:423,inherits:440,"safe-buffer":494}],194:[function(e,r,s){var i=e("safe-buffer").Buffer,a=i.alloc(16,0);function o(c){var u=i.allocUnsafe(16);return u.writeUInt32BE(c[0]>>>0,0),u.writeUInt32BE(c[1]>>>0,4),u.writeUInt32BE(c[2]>>>0,8),u.writeUInt32BE(c[3]>>>0,12),u}function l(c){this.h=c,this.state=i.alloc(16,0),this.cache=i.allocUnsafe(0)}l.prototype.ghash=function(c){for(var u=-1;++u<c.length;)this.state[u]^=c[u];this._multiply()},l.prototype._multiply=function(){for(var c,u,h,d=[(c=this.h).readUInt32BE(0),c.readUInt32BE(4),c.readUInt32BE(8),c.readUInt32BE(12)],f=[0,0,0,0],p=-1;++p<128;){for(this.state[~~(p/8)]&1<<7-p%8&&(f[0]^=d[0],f[1]^=d[1],f[2]^=d[2],f[3]^=d[3]),h=(1&d[3])!=0,u=3;u>0;u--)d[u]=d[u]>>>1|(1&d[u-1])<<31;d[0]=d[0]>>>1,h&&(d[0]=d[0]^225<<24)}this.state=o(f)},l.prototype.update=function(c){var u;for(this.cache=i.concat([this.cache,c]);this.cache.length>=16;)u=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(u)},l.prototype.final=function(c,u){return this.cache.length&&this.ghash(i.concat([this.cache,a],16)),this.ghash(o([0,c,0,u])),this.state},r.exports=l},{"safe-buffer":494}],195:[function(e,r,s){r.exports=function(i){for(var a,o=i.length;o--;){if((a=i.readUInt8(o))!==255){a++,i.writeUInt8(a,o);break}i.writeUInt8(0,o)}}},{}],196:[function(e,r,s){var i=e("buffer-xor");s.encrypt=function(a,o){var l=i(o,a._prev);return a._prev=a._cipher.encryptBlock(l),a._prev},s.decrypt=function(a,o){var l=a._prev;a._prev=o;var c=a._cipher.decryptBlock(o);return i(c,l)}},{"buffer-xor":219}],197:[function(e,r,s){var i=e("safe-buffer").Buffer,a=e("buffer-xor");function o(l,c,u){var h=c.length,d=a(c,l._cache);return l._cache=l._cache.slice(h),l._prev=i.concat([l._prev,u?c:d]),d}s.encrypt=function(l,c,u){for(var h,d=i.allocUnsafe(0);c.length;){if(l._cache.length===0&&(l._cache=l._cipher.encryptBlock(l._prev),l._prev=i.allocUnsafe(0)),!(l._cache.length<=c.length)){d=i.concat([d,o(l,c,u)]);break}h=l._cache.length,d=i.concat([d,o(l,c.slice(0,h),u)]),c=c.slice(h)}return d}},{"buffer-xor":219,"safe-buffer":494}],198:[function(e,r,s){var i=e("safe-buffer").Buffer;function a(l,c,u){for(var h,d,f=-1,p=0;++f<8;)h=c&1<<7-f?128:0,p+=(128&(d=l._cipher.encryptBlock(l._prev)[0]^h))>>f%8,l._prev=o(l._prev,u?h:d);return p}function o(l,c){var u=l.length,h=-1,d=i.allocUnsafe(l.length);for(l=i.concat([l,i.from([c])]);++h<u;)d[h]=l[h]<<1|l[h+1]>>7;return d}s.encrypt=function(l,c,u){for(var h=c.length,d=i.allocUnsafe(h),f=-1;++f<h;)d[f]=a(l,c[f],u);return d}},{"safe-buffer":494}],199:[function(e,r,s){var i=e("safe-buffer").Buffer;function a(o,l,c){var u=o._cipher.encryptBlock(o._prev)[0]^l;return o._prev=i.concat([o._prev.slice(1),i.from([c?l:u])]),u}s.encrypt=function(o,l,c){for(var u=l.length,h=i.allocUnsafe(u),d=-1;++d<u;)h[d]=a(o,l[d],c);return h}},{"safe-buffer":494}],200:[function(e,r,s){var i=e("buffer-xor"),a=e("safe-buffer").Buffer,o=e("../incr32");function l(c){var u=c._cipher.encryptBlockRaw(c._prev);return o(c._prev),u}s.encrypt=function(c,u){var h=Math.ceil(u.length/16),d=c._cache.length;c._cache=a.concat([c._cache,a.allocUnsafe(16*h)]);for(var f=0;f<h;f++){var p=l(c),g=d+16*f;c._cache.writeUInt32BE(p[0],g+0),c._cache.writeUInt32BE(p[1],g+4),c._cache.writeUInt32BE(p[2],g+8),c._cache.writeUInt32BE(p[3],g+12)}var m=c._cache.slice(0,u.length);return c._cache=c._cache.slice(u.length),i(u,m)}},{"../incr32":195,"buffer-xor":219,"safe-buffer":494}],201:[function(e,r,s){s.encrypt=function(i,a){return i._cipher.encryptBlock(a)},s.decrypt=function(i,a){return i._cipher.decryptBlock(a)}},{}],202:[function(e,r,s){var i={ECB:e("./ecb"),CBC:e("./cbc"),CFB:e("./cfb"),CFB8:e("./cfb8"),CFB1:e("./cfb1"),OFB:e("./ofb"),CTR:e("./ctr"),GCM:e("./ctr")},a=e("./list.json");for(var o in a)a[o].module=i[a[o].mode];r.exports=a},{"./cbc":196,"./cfb":197,"./cfb1":198,"./cfb8":199,"./ctr":200,"./ecb":201,"./list.json":203,"./ofb":204}],203:[function(e,r,s){r.exports={"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:{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"},"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"}}},{}],204:[function(e,r,s){(function(i){(function(){var a=e("buffer-xor");function o(l){return l._prev=l._cipher.encryptBlock(l._prev),l._prev}s.encrypt=function(l,c){for(;l._cache.length<c.length;)l._cache=i.concat([l._cache,o(l)]);var u=l._cache.slice(0,c.length);return l._cache=l._cache.slice(c.length),a(c,u)}}).call(this)}).call(this,e("buffer").Buffer)},{buffer:220,"buffer-xor":219}],205:[function(e,r,s){var i=e("./aes"),a=e("safe-buffer").Buffer,o=e("cipher-base");function l(c,u,h,d){o.call(this),this._cipher=new i.AES(u),this._prev=a.from(h),this._cache=a.allocUnsafe(0),this._secCache=a.allocUnsafe(0),this._decrypt=d,this._mode=c}e("inherits")(l,o),l.prototype._update=function(c){return this._mode.encrypt(this,c,this._decrypt)},l.prototype._final=function(){this._cipher.scrub()},r.exports=l},{"./aes":189,"cipher-base":221,inherits:440,"safe-buffer":494}],206:[function(e,r,s){var i=e("browserify-des"),a=e("browserify-aes/browser"),o=e("browserify-aes/modes"),l=e("browserify-des/modes"),c=e("evp_bytestokey");function u(d,f,p){if(d=d.toLowerCase(),o[d])return a.createCipheriv(d,f,p);if(l[d])return new i({key:f,iv:p,mode:d});throw new TypeError("invalid suite type")}function h(d,f,p){if(d=d.toLowerCase(),o[d])return a.createDecipheriv(d,f,p);if(l[d])return new i({key:f,iv:p,mode:d,decrypt:!0});throw new TypeError("invalid suite type")}s.createCipher=s.Cipher=function(d,f){var p,g;if(d=d.toLowerCase(),o[d])p=o[d].key,g=o[d].iv;else{if(!l[d])throw new TypeError("invalid suite type");p=8*l[d].key,g=l[d].iv}var m=c(f,!1,p,g);return u(d,m.key,m.iv)},s.createCipheriv=s.Cipheriv=u,s.createDecipher=s.Decipher=function(d,f){var p,g;if(d=d.toLowerCase(),o[d])p=o[d].key,g=o[d].iv;else{if(!l[d])throw new TypeError("invalid suite type");p=8*l[d].key,g=l[d].iv}var m=c(f,!1,p,g);return h(d,m.key,m.iv)},s.createDecipheriv=s.Decipheriv=h,s.listCiphers=s.getCiphers=function(){return Object.keys(l).concat(a.getCiphers())}},{"browserify-aes/browser":191,"browserify-aes/modes":202,"browserify-des":207,"browserify-des/modes":208,evp_bytestokey:423}],207:[function(e,r,s){var i=e("cipher-base"),a=e("des.js"),o=e("inherits"),l=e("safe-buffer").Buffer,c={"des-ede3-cbc":a.CBC.instantiate(a.EDE),"des-ede3":a.EDE,"des-ede-cbc":a.CBC.instantiate(a.EDE),"des-ede":a.EDE,"des-cbc":a.CBC.instantiate(a.DES),"des-ecb":a.DES};function u(h){i.call(this);var d,f=h.mode.toLowerCase(),p=c[f];d=h.decrypt?"decrypt":"encrypt";var g=h.key;l.isBuffer(g)||(g=l.from(g)),f!=="des-ede"&&f!=="des-ede-cbc"||(g=l.concat([g,g.slice(0,8)]));var m=h.iv;l.isBuffer(m)||(m=l.from(m)),this._des=p.create({key:g,iv:m,type:d})}c.des=c["des-cbc"],c.des3=c["des-ede3-cbc"],r.exports=u,o(u,i),u.prototype._update=function(h){return l.from(this._des.update(h))},u.prototype._final=function(){return l.from(this._des.final())}},{"cipher-base":221,"des.js":394,inherits:440,"safe-buffer":494}],208:[function(e,r,s){s["des-ecb"]={key:8,iv:0},s["des-cbc"]=s.des={key:8,iv:8},s["des-ede3-cbc"]=s.des3={key:24,iv:8},s["des-ede3"]={key:24,iv:0},s["des-ede-cbc"]={key:16,iv:8},s["des-ede"]={key:16,iv:0}},{}],209:[function(e,r,s){(function(i){(function(){var a=e("bn.js"),o=e("randombytes");function l(u){var h,d=u.modulus.byteLength();do h=new a(o(d));while(h.cmp(u.modulus)>=0||!h.umod(u.prime1)||!h.umod(u.prime2));return h}function c(u,h){var d=function(A){var B=l(A);return{blinder:B.toRed(a.mont(A.modulus)).redPow(new a(A.publicExponent)).fromRed(),unblinder:B.invm(A.modulus)}}(h),f=h.modulus.byteLength(),p=new a(u).mul(d.blinder).umod(h.modulus),g=p.toRed(a.mont(h.prime1)),m=p.toRed(a.mont(h.prime2)),b=h.coefficient,w=h.prime1,_=h.prime2,T=g.redPow(h.exponent1).fromRed(),M=m.redPow(h.exponent2).fromRed(),j=T.isub(M).imul(b).umod(w).imul(_);return M.iadd(j).imul(d.unblinder).umod(h.modulus).toArrayLike(i,"be",f)}c.getr=l,r.exports=c}).call(this)}).call(this,e("buffer").Buffer)},{"bn.js":186,buffer:220,randombytes:475}],210:[function(e,r,s){r.exports=e("./browser/algorithms.json")},{"./browser/algorithms.json":211}],211:[function(e,r,s){r.exports={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"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:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:{sign:"dsa",hash:"sha1",id:""},"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:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}}},{}],212:[function(e,r,s){r.exports={"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"}},{}],213:[function(e,r,s){var i=e("safe-buffer").Buffer,a=e("create-hash"),o=e("readable-stream"),l=e("inherits"),c=e("./sign"),u=e("./verify"),h=e("./algorithms.json");function d(m){o.Writable.call(this);var b=h[m];if(!b)throw new Error("Unknown message digest");this._hashType=b.hash,this._hash=a(b.hash),this._tag=b.id,this._signType=b.sign}function f(m){o.Writable.call(this);var b=h[m];if(!b)throw new Error("Unknown message digest");this._hash=a(b.hash),this._tag=b.id,this._signType=b.sign}function p(m){return new d(m)}function g(m){return new f(m)}Object.keys(h).forEach(function(m){h[m].id=i.from(h[m].id,"hex"),h[m.toLowerCase()]=h[m]}),l(d,o.Writable),d.prototype._write=function(m,b,w){this._hash.update(m),w()},d.prototype.update=function(m,b){return typeof m=="string"&&(m=i.from(m,b)),this._hash.update(m),this},d.prototype.sign=function(m,b){this.end();var w=this._hash.digest(),_=c(w,m,this._hashType,this._signType,this._tag);return b?_.toString(b):_},l(f,o.Writable),f.prototype._write=function(m,b,w){this._hash.update(m),w()},f.prototype.update=function(m,b){return typeof m=="string"&&(m=i.from(m,b)),this._hash.update(m),this},f.prototype.verify=function(m,b,w){typeof b=="string"&&(b=i.from(b,w)),this.end();var _=this._hash.digest();return u(b,_,m,this._signType,this._tag)},r.exports={Sign:p,Verify:g,createSign:p,createVerify:g}},{"./algorithms.json":211,"./sign":214,"./verify":215,"create-hash":386,inherits:440,"readable-stream":491,"safe-buffer":494}],214:[function(e,r,s){var i=e("safe-buffer").Buffer,a=e("create-hmac"),o=e("browserify-rsa"),l=e("elliptic").ec,c=e("bn.js"),u=e("parse-asn1"),h=e("./curves.json");function d(m,b,w,_){if((m=i.from(m.toArray())).length<b.byteLength()){var T=i.alloc(b.byteLength()-m.length);m=i.concat([T,m])}var M=w.length,j=function(H,U){H=(H=f(H,U)).mod(U);var X=i.from(H.toArray());if(X.length<U.byteLength()){var V=i.alloc(U.byteLength()-X.length);X=i.concat([V,X])}return X}(w,b),A=i.alloc(M);A.fill(1);var B=i.alloc(M);return B=a(_,B).update(A).update(i.from([0])).update(m).update(j).digest(),A=a(_,B).update(A).digest(),{k:B=a(_,B).update(A).update(i.from([1])).update(m).update(j).digest(),v:A=a(_,B).update(A).digest()}}function f(m,b){var w=new c(m),_=(m.length<<3)-b.bitLength();return _>0&&w.ishrn(_),w}function p(m,b,w){var _,T;do{for(_=i.alloc(0);8*_.length<m.bitLength();)b.v=a(w,b.k).update(b.v).digest(),_=i.concat([_,b.v]);T=f(_,m),b.k=a(w,b.k).update(b.v).update(i.from([0])).digest(),b.v=a(w,b.k).update(b.v).digest()}while(T.cmp(m)!==-1);return T}function g(m,b,w,_){return m.toRed(c.mont(w)).redPow(b).fromRed().mod(_)}r.exports=function(m,b,w,_,T){var M=u(b);if(M.curve){if(_!=="ecdsa"&&_!=="ecdsa/rsa")throw new Error("wrong private key type");return function(H,U){var X=h[U.curve.join(".")];if(!X)throw new Error("unknown curve "+U.curve.join("."));var V=new l(X).keyFromPrivate(U.privateKey).sign(H);return i.from(V.toDER())}(m,M)}if(M.type==="dsa"){if(_!=="dsa")throw new Error("wrong private key type");return function(H,U,X){for(var V,O=U.params.priv_key,N=U.params.p,C=U.params.q,x=U.params.g,S=new c(0),k=f(H,C).mod(C),E=!1,I=d(O,C,H,X);E===!1;)V=p(C,I,X),S=g(x,V,N,C),(E=V.invm(C).imul(k.add(O.mul(S))).mod(C)).cmpn(0)===0&&(E=!1,S=new c(0));return function(D,F){D=D.toArray(),F=F.toArray(),128&D[0]&&(D=[0].concat(D)),128&F[0]&&(F=[0].concat(F));var Y=[48,D.length+F.length+4,2,D.length];return Y=Y.concat(D,[2,F.length],F),i.from(Y)}(S,E)}(m,M,w)}if(_!=="rsa"&&_!=="ecdsa/rsa")throw new Error("wrong private key type");m=i.concat([T,m]);for(var j=M.modulus.byteLength(),A=[0,1];m.length+A.length+1<j;)A.push(255);A.push(0);for(var B=-1;++B<m.length;)A.push(m[B]);return o(A,M)},r.exports.getKey=d,r.exports.makeKey=p},{"./curves.json":212,"bn.js":186,"browserify-rsa":209,"create-hmac":388,elliptic:405,"parse-asn1":459,"safe-buffer":494}],215:[function(e,r,s){var i=e("safe-buffer").Buffer,a=e("bn.js"),o=e("elliptic").ec,l=e("parse-asn1"),c=e("./curves.json");function u(h,d){if(h.cmpn(0)<=0)throw new Error("invalid sig");if(h.cmp(d)>=d)throw new Error("invalid sig")}r.exports=function(h,d,f,p,g){var m=l(f);if(m.type==="ec"){if(p!=="ecdsa"&&p!=="ecdsa/rsa")throw new Error("wrong public key type");return function(A,B,H){var U=c[H.data.algorithm.curve.join(".")];if(!U)throw new Error("unknown curve "+H.data.algorithm.curve.join("."));var X=new o(U),V=H.data.subjectPrivateKey.data;return X.verify(B,A,V)}(h,d,m)}if(m.type==="dsa"){if(p!=="dsa")throw new Error("wrong public key type");return function(A,B,H){var U=H.data.p,X=H.data.q,V=H.data.g,O=H.data.pub_key,N=l.signature.decode(A,"der"),C=N.s,x=N.r;u(C,X),u(x,X);var S=a.mont(U),k=C.invm(X);return V.toRed(S).redPow(new a(B).mul(k).mod(X)).fromRed().mul(O.toRed(S).redPow(x.mul(k).mod(X)).fromRed()).mod(U).mod(X).cmp(x)===0}(h,d,m)}if(p!=="rsa"&&p!=="ecdsa/rsa")throw new Error("wrong public key type");d=i.concat([g,d]);for(var b=m.modulus.byteLength(),w=[1],_=0;d.length+w.length+2<b;)w.push(255),_++;w.push(0);for(var T=-1;++T<d.length;)w.push(d[T]);w=i.from(w);var M=a.mont(m.modulus);h=(h=new a(h).toRed(M)).redPow(new a(m.publicExponent)),h=i.from(h.fromRed().toArray());var j=_<8?1:0;for(b=Math.min(h.length,w.length),h.length!==w.length&&(j=1),T=-1;++T<b;)j|=h[T]^w[T];return j===0}},{"./curves.json":212,"bn.js":186,elliptic:405,"parse-asn1":459,"safe-buffer":494}],216:[function(e,r,s){},{}],217:[function(e,r,s){var i=e("buffer"),a=i.Buffer;function o(c,u){for(var h in c)u[h]=c[h]}function l(c,u,h){return a(c,u,h)}a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?r.exports=i:(o(i,s),s.Buffer=l),o(a,l),l.from=function(c,u,h){if(typeof c=="number")throw new TypeError("Argument must not be a number");return a(c,u,h)},l.alloc=function(c,u,h){if(typeof c!="number")throw new TypeError("Argument must be a number");var d=a(c);return u!==void 0?typeof h=="string"?d.fill(u,h):d.fill(u):d.fill(0),d},l.allocUnsafe=function(c){if(typeof c!="number")throw new TypeError("Argument must be a number");return a(c)},l.allocUnsafeSlow=function(c){if(typeof c!="number")throw new TypeError("Argument must be a number");return i.SlowBuffer(c)}},{buffer:220}],218:[function(e,r,s){var i=e("safe-buffer").Buffer,a=i.isEncoding||function(m){switch((m=""+m)&&m.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 o(m){var b;switch(this.encoding=function(w){var _=function(T){if(!T)return"utf8";for(var M;;)switch(T){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 T;default:if(M)return;T=(""+T).toLowerCase(),M=!0}}(w);if(typeof _!="string"&&(i.isEncoding===a||!a(w)))throw new Error("Unknown encoding: "+w);return _||w}(m),this.encoding){case"utf16le":this.text=u,this.end=h,b=4;break;case"utf8":this.fillLast=c,b=4;break;case"base64":this.text=d,this.end=f,b=3;break;default:return this.write=p,void(this.end=g)}this.lastNeed=0,this.lastTotal=0,this.lastChar=i.allocUnsafe(b)}function l(m){return m<=127?0:m>>5==6?2:m>>4==14?3:m>>3==30?4:m>>6==2?-1:-2}function c(m){var b=this.lastTotal-this.lastNeed,w=function(_,T,M){if((192&T[0])!=128)return _.lastNeed=0,"�";if(_.lastNeed>1&&T.length>1){if((192&T[1])!=128)return _.lastNeed=1,"�";if(_.lastNeed>2&&T.length>2&&(192&T[2])!=128)return _.lastNeed=2,"�"}}(this,m);return w!==void 0?w:this.lastNeed<=m.length?(m.copy(this.lastChar,b,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(m.copy(this.lastChar,b,0,m.length),void(this.lastNeed-=m.length))}function u(m,b){if((m.length-b)%2==0){var w=m.toString("utf16le",b);if(w){var _=w.charCodeAt(w.length-1);if(_>=55296&&_<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=m[m.length-2],this.lastChar[1]=m[m.length-1],w.slice(0,-1)}return w}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=m[m.length-1],m.toString("utf16le",b,m.length-1)}function h(m){var b=m&&m.length?this.write(m):"";if(this.lastNeed){var w=this.lastTotal-this.lastNeed;return b+this.lastChar.toString("utf16le",0,w)}return b}function d(m,b){var w=(m.length-b)%3;return w===0?m.toString("base64",b):(this.lastNeed=3-w,this.lastTotal=3,w===1?this.lastChar[0]=m[m.length-1]:(this.lastChar[0]=m[m.length-2],this.lastChar[1]=m[m.length-1]),m.toString("base64",b,m.length-w))}function f(m){var b=m&&m.length?this.write(m):"";return this.lastNeed?b+this.lastChar.toString("base64",0,3-this.lastNeed):b}function p(m){return m.toString(this.encoding)}function g(m){return m&&m.length?this.write(m):""}s.StringDecoder=o,o.prototype.write=function(m){if(m.length===0)return"";var b,w;if(this.lastNeed){if((b=this.fillLast(m))===void 0)return"";w=this.lastNeed,this.lastNeed=0}else w=0;return w<m.length?b?b+this.text(m,w):this.text(m,w):b||""},o.prototype.end=function(m){var b=m&&m.length?this.write(m):"";return this.lastNeed?b+"�":b},o.prototype.text=function(m,b){var w=function(T,M,j){var A=M.length-1;if(A<j)return 0;var B=l(M[A]);return B>=0?(B>0&&(T.lastNeed=B-1),B):--A<j||B===-2?0:(B=l(M[A]))>=0?(B>0&&(T.lastNeed=B-2),B):--A<j||B===-2?0:(B=l(M[A]))>=0?(B>0&&(B===2?B=0:T.lastNeed=B-3),B):0}(this,m,b);if(!this.lastNeed)return m.toString("utf8",b);this.lastTotal=w;var _=m.length-(w-this.lastNeed);return m.copy(this.lastChar,0,_),m.toString("utf8",b,_)},o.prototype.fillLast=function(m){if(this.lastNeed<=m.length)return m.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);m.copy(this.lastChar,this.lastTotal-this.lastNeed,0,m.length),this.lastNeed-=m.length}},{"safe-buffer":217}],219:[function(e,r,s){(function(i){(function(){r.exports=function(a,o){for(var l=Math.min(a.length,o.length),c=new i(l),u=0;u<l;++u)c[u]=a[u]^o[u];return c}}).call(this)}).call(this,e("buffer").Buffer)},{buffer:220}],220:[function(e,r,s){(function(i){(function(){var a=e("base64-js"),o=e("ieee754");s.Buffer=c,s.SlowBuffer=function(L){return+L!=L&&(L=0),c.alloc(+L)},s.INSPECT_MAX_BYTES=50;function l(L){if(L>2147483647)throw new RangeError('The value "'+L+'" is invalid for option "size"');var P=new Uint8Array(L);return P.__proto__=c.prototype,P}function c(L,P,G){if(typeof L=="number"){if(typeof P=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return d(L)}return u(L,P,G)}function u(L,P,G){if(typeof L=="string")return function(ie,ue){if(typeof ue=="string"&&ue!==""||(ue="utf8"),!c.isEncoding(ue))throw new TypeError("Unknown encoding: "+ue);var ve=0|g(ie,ue),we=l(ve),le=we.write(ie,ue);return le!==ve&&(we=we.slice(0,le)),we}(L,P);if(ArrayBuffer.isView(L))return f(L);if(L==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof L);if(q(L,ArrayBuffer)||L&&q(L.buffer,ArrayBuffer))return function(ie,ue,ve){if(ue<0||ie.byteLength<ue)throw new RangeError('"offset" is outside of buffer bounds');if(ie.byteLength<ue+(ve||0))throw new RangeError('"length" is outside of buffer bounds');var we;return we=ue===void 0&&ve===void 0?new Uint8Array(ie):ve===void 0?new Uint8Array(ie,ue):new Uint8Array(ie,ue,ve),we.__proto__=c.prototype,we}(L,P,G);if(typeof L=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var ne=L.valueOf&&L.valueOf();if(ne!=null&&ne!==L)return c.from(ne,P,G);var ce=function(ie){if(c.isBuffer(ie)){var ue=0|p(ie.length),ve=l(ue);return ve.length===0||ie.copy(ve,0,0,ue),ve}if(ie.length!==void 0)return typeof ie.length!="number"||ee(ie.length)?l(0):f(ie);if(ie.type==="Buffer"&&Array.isArray(ie.data))return f(ie.data)}(L);if(ce)return ce;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof L[Symbol.toPrimitive]=="function")return c.from(L[Symbol.toPrimitive]("string"),P,G);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof L)}function h(L){if(typeof L!="number")throw new TypeError('"size" argument must be of type number');if(L<0)throw new RangeError('The value "'+L+'" is invalid for option "size"')}function d(L){return h(L),l(L<0?0:0|p(L))}function f(L){for(var P=L.length<0?0:0|p(L.length),G=l(P),ne=0;ne<P;ne+=1)G[ne]=255&L[ne];return G}function p(L){if(L>=2147483647)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|L}function g(L,P){if(c.isBuffer(L))return L.length;if(ArrayBuffer.isView(L)||q(L,ArrayBuffer))return L.byteLength;if(typeof L!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof L);var G=L.length,ne=arguments.length>2&&arguments[2]===!0;if(!ne&&G===0)return 0;for(var ce=!1;;)switch(P){case"ascii":case"latin1":case"binary":return G;case"utf8":case"utf-8":return Y(L).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*G;case"hex":return G>>>1;case"base64":return J(L).length;default:if(ce)return ne?-1:Y(L).length;P=(""+P).toLowerCase(),ce=!0}}function m(L,P,G){var ne=!1;if((P===void 0||P<0)&&(P=0),P>this.length||((G===void 0||G>this.length)&&(G=this.length),G<=0)||(G>>>=0)<=(P>>>=0))return"";for(L||(L="utf8");;)switch(L){case"hex":return N(this,P,G);case"utf8":case"utf-8":return X(this,P,G);case"ascii":return V(this,P,G);case"latin1":case"binary":return O(this,P,G);case"base64":return U(this,P,G);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,P,G);default:if(ne)throw new TypeError("Unknown encoding: "+L);L=(L+"").toLowerCase(),ne=!0}}function b(L,P,G){var ne=L[P];L[P]=L[G],L[G]=ne}function w(L,P,G,ne,ce){if(L.length===0)return-1;if(typeof G=="string"?(ne=G,G=0):G>2147483647?G=2147483647:G<-2147483648&&(G=-2147483648),ee(G=+G)&&(G=ce?0:L.length-1),G<0&&(G=L.length+G),G>=L.length){if(ce)return-1;G=L.length-1}else if(G<0){if(!ce)return-1;G=0}if(typeof P=="string"&&(P=c.from(P,ne)),c.isBuffer(P))return P.length===0?-1:_(L,P,G,ne,ce);if(typeof P=="number")return P&=255,typeof Uint8Array.prototype.indexOf=="function"?ce?Uint8Array.prototype.indexOf.call(L,P,G):Uint8Array.prototype.lastIndexOf.call(L,P,G):_(L,[P],G,ne,ce);throw new TypeError("val must be string, number or Buffer")}function _(L,P,G,ne,ce){var ie,ue=1,ve=L.length,we=P.length;if(ne!==void 0&&((ne=String(ne).toLowerCase())==="ucs2"||ne==="ucs-2"||ne==="utf16le"||ne==="utf-16le")){if(L.length<2||P.length<2)return-1;ue=2,ve/=2,we/=2,G/=2}function le(xe,Ee){return ue===1?xe[Ee]:xe.readUInt16BE(Ee*ue)}if(ce){var me=-1;for(ie=G;ie<ve;ie++)if(le(L,ie)===le(P,me===-1?0:ie-me)){if(me===-1&&(me=ie),ie-me+1===we)return me*ue}else me!==-1&&(ie-=ie-me),me=-1}else for(G+we>ve&&(G=ve-we),ie=G;ie>=0;ie--){for(var ge=!0,ke=0;ke<we;ke++)if(le(L,ie+ke)!==le(P,ke)){ge=!1;break}if(ge)return ie}return-1}function T(L,P,G,ne){G=Number(G)||0;var ce=L.length-G;ne?(ne=Number(ne))>ce&&(ne=ce):ne=ce;var ie=P.length;ne>ie/2&&(ne=ie/2);for(var ue=0;ue<ne;++ue){var ve=parseInt(P.substr(2*ue,2),16);if(ee(ve))return ue;L[G+ue]=ve}return ue}function M(L,P,G,ne){return se(Y(P,L.length-G),L,G,ne)}function j(L,P,G,ne){return se(function(ce){for(var ie=[],ue=0;ue<ce.length;++ue)ie.push(255&ce.charCodeAt(ue));return ie}(P),L,G,ne)}function A(L,P,G,ne){return j(L,P,G,ne)}function B(L,P,G,ne){return se(J(P),L,G,ne)}function H(L,P,G,ne){return se(function(ce,ie){for(var ue,ve,we,le=[],me=0;me<ce.length&&!((ie-=2)<0);++me)ue=ce.charCodeAt(me),ve=ue>>8,we=ue%256,le.push(we),le.push(ve);return le}(P,L.length-G),L,G,ne)}function U(L,P,G){return P===0&&G===L.length?a.fromByteArray(L):a.fromByteArray(L.slice(P,G))}function X(L,P,G){G=Math.min(L.length,G);for(var ne=[],ce=P;ce<G;){var ie,ue,ve,we,le=L[ce],me=null,ge=le>239?4:le>223?3:le>191?2:1;if(ce+ge<=G)switch(ge){case 1:le<128&&(me=le);break;case 2:(192&(ie=L[ce+1]))==128&&(we=(31&le)<<6|63&ie)>127&&(me=we);break;case 3:ie=L[ce+1],ue=L[ce+2],(192&ie)==128&&(192&ue)==128&&(we=(15&le)<<12|(63&ie)<<6|63&ue)>2047&&(we<55296||we>57343)&&(me=we);break;case 4:ie=L[ce+1],ue=L[ce+2],ve=L[ce+3],(192&ie)==128&&(192&ue)==128&&(192&ve)==128&&(we=(15&le)<<18|(63&ie)<<12|(63&ue)<<6|63&ve)>65535&&we<1114112&&(me=we)}me===null?(me=65533,ge=1):me>65535&&(me-=65536,ne.push(me>>>10&1023|55296),me=56320|1023&me),ne.push(me),ce+=ge}return function(ke){var xe=ke.length;if(xe<=4096)return String.fromCharCode.apply(String,ke);for(var Ee="",Ie=0;Ie<xe;)Ee+=String.fromCharCode.apply(String,ke.slice(Ie,Ie+=4096));return Ee}(ne)}s.kMaxLength=2147483647,c.TYPED_ARRAY_SUPPORT=function(){try{var L=new Uint8Array(1);return L.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},L.foo()===42}catch{return!1}}(),c.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."),Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),typeof Symbol<"u"&&Symbol.species!=null&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),c.poolSize=8192,c.from=function(L,P,G){return u(L,P,G)},c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,c.alloc=function(L,P,G){return function(ne,ce,ie){return h(ne),ne<=0?l(ne):ce!==void 0?typeof ie=="string"?l(ne).fill(ce,ie):l(ne).fill(ce):l(ne)}(L,P,G)},c.allocUnsafe=function(L){return d(L)},c.allocUnsafeSlow=function(L){return d(L)},c.isBuffer=function(L){return L!=null&&L._isBuffer===!0&&L!==c.prototype},c.compare=function(L,P){if(q(L,Uint8Array)&&(L=c.from(L,L.offset,L.byteLength)),q(P,Uint8Array)&&(P=c.from(P,P.offset,P.byteLength)),!c.isBuffer(L)||!c.isBuffer(P))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(L===P)return 0;for(var G=L.length,ne=P.length,ce=0,ie=Math.min(G,ne);ce<ie;++ce)if(L[ce]!==P[ce]){G=L[ce],ne=P[ce];break}return G<ne?-1:ne<G?1:0},c.isEncoding=function(L){switch(String(L).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}},c.concat=function(L,P){if(!Array.isArray(L))throw new TypeError('"list" argument must be an Array of Buffers');if(L.length===0)return c.alloc(0);var G;if(P===void 0)for(P=0,G=0;G<L.length;++G)P+=L[G].length;var ne=c.allocUnsafe(P),ce=0;for(G=0;G<L.length;++G){var ie=L[G];if(q(ie,Uint8Array)&&(ie=c.from(ie)),!c.isBuffer(ie))throw new TypeError('"list" argument must be an Array of Buffers');ie.copy(ne,ce),ce+=ie.length}return ne},c.byteLength=g,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var L=this.length;if(L%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var P=0;P<L;P+=2)b(this,P,P+1);return this},c.prototype.swap32=function(){var L=this.length;if(L%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var P=0;P<L;P+=4)b(this,P,P+3),b(this,P+1,P+2);return this},c.prototype.swap64=function(){var L=this.length;if(L%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var P=0;P<L;P+=8)b(this,P,P+7),b(this,P+1,P+6),b(this,P+2,P+5),b(this,P+3,P+4);return this},c.prototype.toString=function(){var L=this.length;return L===0?"":arguments.length===0?X(this,0,L):m.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(L){if(!c.isBuffer(L))throw new TypeError("Argument must be a Buffer");return this===L||c.compare(this,L)===0},c.prototype.inspect=function(){var L="",P=s.INSPECT_MAX_BYTES;return L=this.toString("hex",0,P).replace(/(.{2})/g,"$1 ").trim(),this.length>P&&(L+=" ... "),"<Buffer "+L+">"},c.prototype.compare=function(L,P,G,ne,ce){if(q(L,Uint8Array)&&(L=c.from(L,L.offset,L.byteLength)),!c.isBuffer(L))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof L);if(P===void 0&&(P=0),G===void 0&&(G=L?L.length:0),ne===void 0&&(ne=0),ce===void 0&&(ce=this.length),P<0||G>L.length||ne<0||ce>this.length)throw new RangeError("out of range index");if(ne>=ce&&P>=G)return 0;if(ne>=ce)return-1;if(P>=G)return 1;if(this===L)return 0;for(var ie=(ce>>>=0)-(ne>>>=0),ue=(G>>>=0)-(P>>>=0),ve=Math.min(ie,ue),we=this.slice(ne,ce),le=L.slice(P,G),me=0;me<ve;++me)if(we[me]!==le[me]){ie=we[me],ue=le[me];break}return ie<ue?-1:ue<ie?1:0},c.prototype.includes=function(L,P,G){return this.indexOf(L,P,G)!==-1},c.prototype.indexOf=function(L,P,G){return w(this,L,P,G,!0)},c.prototype.lastIndexOf=function(L,P,G){return w(this,L,P,G,!1)},c.prototype.write=function(L,P,G,ne){if(P===void 0)ne="utf8",G=this.length,P=0;else if(G===void 0&&typeof P=="string")ne=P,G=this.length,P=0;else{if(!isFinite(P))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");P>>>=0,isFinite(G)?(G>>>=0,ne===void 0&&(ne="utf8")):(ne=G,G=void 0)}var ce=this.length-P;if((G===void 0||G>ce)&&(G=ce),L.length>0&&(G<0||P<0)||P>this.length)throw new RangeError("Attempt to write outside buffer bounds");ne||(ne="utf8");for(var ie=!1;;)switch(ne){case"hex":return T(this,L,P,G);case"utf8":case"utf-8":return M(this,L,P,G);case"ascii":return j(this,L,P,G);case"latin1":case"binary":return A(this,L,P,G);case"base64":return B(this,L,P,G);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return H(this,L,P,G);default:if(ie)throw new TypeError("Unknown encoding: "+ne);ne=(""+ne).toLowerCase(),ie=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function V(L,P,G){var ne="";G=Math.min(L.length,G);for(var ce=P;ce<G;++ce)ne+=String.fromCharCode(127&L[ce]);return ne}function O(L,P,G){var ne="";G=Math.min(L.length,G);for(var ce=P;ce<G;++ce)ne+=String.fromCharCode(L[ce]);return ne}function N(L,P,G){var ne=L.length;(!P||P<0)&&(P=0),(!G||G<0||G>ne)&&(G=ne);for(var ce="",ie=P;ie<G;++ie)ce+=F(L[ie]);return ce}function C(L,P,G){for(var ne=L.slice(P,G),ce="",ie=0;ie<ne.length;ie+=2)ce+=String.fromCharCode(ne[ie]+256*ne[ie+1]);return ce}function x(L,P,G){if(L%1!=0||L<0)throw new RangeError("offset is not uint");if(L+P>G)throw new RangeError("Trying to access beyond buffer length")}function S(L,P,G,ne,ce,ie){if(!c.isBuffer(L))throw new TypeError('"buffer" argument must be a Buffer instance');if(P>ce||P<ie)throw new RangeError('"value" argument is out of bounds');if(G+ne>L.length)throw new RangeError("Index out of range")}function k(L,P,G,ne,ce,ie){if(G+ne>L.length)throw new RangeError("Index out of range");if(G<0)throw new RangeError("Index out of range")}function E(L,P,G,ne,ce){return P=+P,G>>>=0,ce||k(L,0,G,4),o.write(L,P,G,ne,23,4),G+4}function I(L,P,G,ne,ce){return P=+P,G>>>=0,ce||k(L,0,G,8),o.write(L,P,G,ne,52,8),G+8}c.prototype.slice=function(L,P){var G=this.length;(L=~~L)<0?(L+=G)<0&&(L=0):L>G&&(L=G),(P=P===void 0?G:~~P)<0?(P+=G)<0&&(P=0):P>G&&(P=G),P<L&&(P=L);var ne=this.subarray(L,P);return ne.__proto__=c.prototype,ne},c.prototype.readUIntLE=function(L,P,G){L>>>=0,P>>>=0,G||x(L,P,this.length);for(var ne=this[L],ce=1,ie=0;++ie<P&&(ce*=256);)ne+=this[L+ie]*ce;return ne},c.prototype.readUIntBE=function(L,P,G){L>>>=0,P>>>=0,G||x(L,P,this.length);for(var ne=this[L+--P],ce=1;P>0&&(ce*=256);)ne+=this[L+--P]*ce;return ne},c.prototype.readUInt8=function(L,P){return L>>>=0,P||x(L,1,this.length),this[L]},c.prototype.readUInt16LE=function(L,P){return L>>>=0,P||x(L,2,this.length),this[L]|this[L+1]<<8},c.prototype.readUInt16BE=function(L,P){return L>>>=0,P||x(L,2,this.length),this[L]<<8|this[L+1]},c.prototype.readUInt32LE=function(L,P){return L>>>=0,P||x(L,4,this.length),(this[L]|this[L+1]<<8|this[L+2]<<16)+16777216*this[L+3]},c.prototype.readUInt32BE=function(L,P){return L>>>=0,P||x(L,4,this.length),16777216*this[L]+(this[L+1]<<16|this[L+2]<<8|this[L+3])},c.prototype.readIntLE=function(L,P,G){L>>>=0,P>>>=0,G||x(L,P,this.length);for(var ne=this[L],ce=1,ie=0;++ie<P&&(ce*=256);)ne+=this[L+ie]*ce;return ne>=(ce*=128)&&(ne-=Math.pow(2,8*P)),ne},c.prototype.readIntBE=function(L,P,G){L>>>=0,P>>>=0,G||x(L,P,this.length);for(var ne=P,ce=1,ie=this[L+--ne];ne>0&&(ce*=256);)ie+=this[L+--ne]*ce;return ie>=(ce*=128)&&(ie-=Math.pow(2,8*P)),ie},c.prototype.readInt8=function(L,P){return L>>>=0,P||x(L,1,this.length),128&this[L]?-1*(255-this[L]+1):this[L]},c.prototype.readInt16LE=function(L,P){L>>>=0,P||x(L,2,this.length);var G=this[L]|this[L+1]<<8;return 32768&G?4294901760|G:G},c.prototype.readInt16BE=function(L,P){L>>>=0,P||x(L,2,this.length);var G=this[L+1]|this[L]<<8;return 32768&G?4294901760|G:G},c.prototype.readInt32LE=function(L,P){return L>>>=0,P||x(L,4,this.length),this[L]|this[L+1]<<8|this[L+2]<<16|this[L+3]<<24},c.prototype.readInt32BE=function(L,P){return L>>>=0,P||x(L,4,this.length),this[L]<<24|this[L+1]<<16|this[L+2]<<8|this[L+3]},c.prototype.readFloatLE=function(L,P){return L>>>=0,P||x(L,4,this.length),o.read(this,L,!0,23,4)},c.prototype.readFloatBE=function(L,P){return L>>>=0,P||x(L,4,this.length),o.read(this,L,!1,23,4)},c.prototype.readDoubleLE=function(L,P){return L>>>=0,P||x(L,8,this.length),o.read(this,L,!0,52,8)},c.prototype.readDoubleBE=function(L,P){return L>>>=0,P||x(L,8,this.length),o.read(this,L,!1,52,8)},c.prototype.writeUIntLE=function(L,P,G,ne){L=+L,P>>>=0,G>>>=0,ne||S(this,L,P,G,Math.pow(2,8*G)-1,0);var ce=1,ie=0;for(this[P]=255&L;++ie<G&&(ce*=256);)this[P+ie]=L/ce&255;return P+G},c.prototype.writeUIntBE=function(L,P,G,ne){L=+L,P>>>=0,G>>>=0,ne||S(this,L,P,G,Math.pow(2,8*G)-1,0);var ce=G-1,ie=1;for(this[P+ce]=255&L;--ce>=0&&(ie*=256);)this[P+ce]=L/ie&255;return P+G},c.prototype.writeUInt8=function(L,P,G){return L=+L,P>>>=0,G||S(this,L,P,1,255,0),this[P]=255&L,P+1},c.prototype.writeUInt16LE=function(L,P,G){return L=+L,P>>>=0,G||S(this,L,P,2,65535,0),this[P]=255&L,this[P+1]=L>>>8,P+2},c.prototype.writeUInt16BE=function(L,P,G){return L=+L,P>>>=0,G||S(this,L,P,2,65535,0),this[P]=L>>>8,this[P+1]=255&L,P+2},c.prototype.writeUInt32LE=function(L,P,G){return L=+L,P>>>=0,G||S(this,L,P,4,4294967295,0),this[P+3]=L>>>24,this[P+2]=L>>>16,this[P+1]=L>>>8,this[P]=255&L,P+4},c.prototype.writeUInt32BE=function(L,P,G){return L=+L,P>>>=0,G||S(this,L,P,4,4294967295,0),this[P]=L>>>24,this[P+1]=L>>>16,this[P+2]=L>>>8,this[P+3]=255&L,P+4},c.prototype.writeIntLE=function(L,P,G,ne){if(L=+L,P>>>=0,!ne){var ce=Math.pow(2,8*G-1);S(this,L,P,G,ce-1,-ce)}var ie=0,ue=1,ve=0;for(this[P]=255&L;++ie<G&&(ue*=256);)L<0&&ve===0&&this[P+ie-1]!==0&&(ve=1),this[P+ie]=(L/ue>>0)-ve&255;return P+G},c.prototype.writeIntBE=function(L,P,G,ne){if(L=+L,P>>>=0,!ne){var ce=Math.pow(2,8*G-1);S(this,L,P,G,ce-1,-ce)}var ie=G-1,ue=1,ve=0;for(this[P+ie]=255&L;--ie>=0&&(ue*=256);)L<0&&ve===0&&this[P+ie+1]!==0&&(ve=1),this[P+ie]=(L/ue>>0)-ve&255;return P+G},c.prototype.writeInt8=function(L,P,G){return L=+L,P>>>=0,G||S(this,L,P,1,127,-128),L<0&&(L=255+L+1),this[P]=255&L,P+1},c.prototype.writeInt16LE=function(L,P,G){return L=+L,P>>>=0,G||S(this,L,P,2,32767,-32768),this[P]=255&L,this[P+1]=L>>>8,P+2},c.prototype.writeInt16BE=function(L,P,G){return L=+L,P>>>=0,G||S(this,L,P,2,32767,-32768),this[P]=L>>>8,this[P+1]=255&L,P+2},c.prototype.writeInt32LE=function(L,P,G){return L=+L,P>>>=0,G||S(this,L,P,4,2147483647,-2147483648),this[P]=255&L,this[P+1]=L>>>8,this[P+2]=L>>>16,this[P+3]=L>>>24,P+4},c.prototype.writeInt32BE=function(L,P,G){return L=+L,P>>>=0,G||S(this,L,P,4,2147483647,-2147483648),L<0&&(L=4294967295+L+1),this[P]=L>>>24,this[P+1]=L>>>16,this[P+2]=L>>>8,this[P+3]=255&L,P+4},c.prototype.writeFloatLE=function(L,P,G){return E(this,L,P,!0,G)},c.prototype.writeFloatBE=function(L,P,G){return E(this,L,P,!1,G)},c.prototype.writeDoubleLE=function(L,P,G){return I(this,L,P,!0,G)},c.prototype.writeDoubleBE=function(L,P,G){return I(this,L,P,!1,G)},c.prototype.copy=function(L,P,G,ne){if(!c.isBuffer(L))throw new TypeError("argument should be a Buffer");if(G||(G=0),ne||ne===0||(ne=this.length),P>=L.length&&(P=L.length),P||(P=0),ne>0&&ne<G&&(ne=G),ne===G||L.length===0||this.length===0)return 0;if(P<0)throw new RangeError("targetStart out of bounds");if(G<0||G>=this.length)throw new RangeError("Index out of range");if(ne<0)throw new RangeError("sourceEnd out of bounds");ne>this.length&&(ne=this.length),L.length-P<ne-G&&(ne=L.length-P+G);var ce=ne-G;if(this===L&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin(P,G,ne);else if(this===L&&G<P&&P<ne)for(var ie=ce-1;ie>=0;--ie)L[ie+P]=this[ie+G];else Uint8Array.prototype.set.call(L,this.subarray(G,ne),P);return ce},c.prototype.fill=function(L,P,G,ne){if(typeof L=="string"){if(typeof P=="string"?(ne=P,P=0,G=this.length):typeof G=="string"&&(ne=G,G=this.length),ne!==void 0&&typeof ne!="string")throw new TypeError("encoding must be a string");if(typeof ne=="string"&&!c.isEncoding(ne))throw new TypeError("Unknown encoding: "+ne);if(L.length===1){var ce=L.charCodeAt(0);(ne==="utf8"&&ce<128||ne==="latin1")&&(L=ce)}}else typeof L=="number"&&(L&=255);if(P<0||this.length<P||this.length<G)throw new RangeError("Out of range index");if(G<=P)return this;var ie;if(P>>>=0,G=G===void 0?this.length:G>>>0,L||(L=0),typeof L=="number")for(ie=P;ie<G;++ie)this[ie]=L;else{var ue=c.isBuffer(L)?L:c.from(L,ne),ve=ue.length;if(ve===0)throw new TypeError('The value "'+L+'" is invalid for argument "value"');for(ie=0;ie<G-P;++ie)this[ie+P]=ue[ie%ve]}return this};var D=/[^+/0-9A-Za-z-_]/g;function F(L){return L<16?"0"+L.toString(16):L.toString(16)}function Y(L,P){var G;P=P||1/0;for(var ne=L.length,ce=null,ie=[],ue=0;ue<ne;++ue){if((G=L.charCodeAt(ue))>55295&&G<57344){if(!ce){if(G>56319){(P-=3)>-1&&ie.push(239,191,189);continue}if(ue+1===ne){(P-=3)>-1&&ie.push(239,191,189);continue}ce=G;continue}if(G<56320){(P-=3)>-1&&ie.push(239,191,189),ce=G;continue}G=65536+(ce-55296<<10|G-56320)}else ce&&(P-=3)>-1&&ie.push(239,191,189);if(ce=null,G<128){if((P-=1)<0)break;ie.push(G)}else if(G<2048){if((P-=2)<0)break;ie.push(G>>6|192,63&G|128)}else if(G<65536){if((P-=3)<0)break;ie.push(G>>12|224,G>>6&63|128,63&G|128)}else{if(!(G<1114112))throw new Error("Invalid code point");if((P-=4)<0)break;ie.push(G>>18|240,G>>12&63|128,G>>6&63|128,63&G|128)}}return ie}function J(L){return a.toByteArray(function(P){if((P=(P=P.split("=")[0]).trim().replace(D,"")).length<2)return"";for(;P.length%4!=0;)P+="=";return P}(L))}function se(L,P,G,ne){for(var ce=0;ce<ne&&!(ce+G>=P.length||ce>=L.length);++ce)P[ce+G]=L[ce];return ce}function q(L,P){return L instanceof P||L!=null&&L.constructor!=null&&L.constructor.name!=null&&L.constructor.name===P.name}function ee(L){return L!=L}}).call(this)}).call(this,e("buffer").Buffer)},{"base64-js":185,buffer:220,ieee754:439}],221:[function(e,r,s){var i=e("safe-buffer").Buffer,a=e("stream").Transform,o=e("string_decoder").StringDecoder;function l(c){a.call(this),this.hashMode=typeof c=="string",this.hashMode?this[c]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}e("inherits")(l,a),l.prototype.update=function(c,u,h){typeof c=="string"&&(c=i.from(c,u));var d=this._update(c);return this.hashMode?this:(h&&(d=this._toString(d,h)),d)},l.prototype.setAutoPadding=function(){},l.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},l.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},l.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},l.prototype._transform=function(c,u,h){var d;try{this.hashMode?this._update(c):this.push(this._update(c))}catch(f){d=f}finally{h(d)}},l.prototype._flush=function(c){var u;try{this.push(this.__final())}catch(h){u=h}c(u)},l.prototype._finalOrDigest=function(c){var u=this.__final()||i.alloc(0);return c&&(u=this._toString(u,c,!0)),u},l.prototype._toString=function(c,u,h){if(this._decoder||(this._decoder=new o(u),this._encoding=u),this._encoding!==u)throw new Error("can't switch encodings");var d=this._decoder.write(c);return h&&(d+=this._decoder.end()),d},r.exports=l},{inherits:440,"safe-buffer":494,stream:505,string_decoder:218}],222:[function(e,r,s){var i=e("../internals/is-callable"),a=e("../internals/try-to-string"),o=TypeError;r.exports=function(l){if(i(l))return l;throw new o(a(l)+" is not a function")}},{"../internals/is-callable":285,"../internals/try-to-string":349}],223:[function(e,r,s){var i=e("../internals/is-constructor"),a=e("../internals/try-to-string"),o=TypeError;r.exports=function(l){if(i(l))return l;throw new o(a(l)+" is not a constructor")}},{"../internals/is-constructor":286,"../internals/try-to-string":349}],224:[function(e,r,s){var i=e("../internals/is-callable"),a=String,o=TypeError;r.exports=function(l){if(typeof l=="object"||i(l))return l;throw new o("Can't set "+a(l)+" as a prototype")}},{"../internals/is-callable":285}],225:[function(e,r,s){var i=e("../internals/well-known-symbol"),a=e("../internals/object-create"),o=e("../internals/object-define-property").f,l=i("unscopables"),c=Array.prototype;c[l]===void 0&&o(c,l,{configurable:!0,value:a(null)}),r.exports=function(u){c[l][u]=!0}},{"../internals/object-create":306,"../internals/object-define-property":308,"../internals/well-known-symbol":357}],226:[function(e,r,s){var i=e("../internals/object-is-prototype-of"),a=TypeError;r.exports=function(o,l){if(i(l,o))return o;throw new a("Incorrect invocation")}},{"../internals/object-is-prototype-of":314}],227:[function(e,r,s){var i=e("../internals/is-object"),a=String,o=TypeError;r.exports=function(l){if(i(l))return l;throw new o(a(l)+" is not an object")}},{"../internals/is-object":289}],228:[function(e,r,s){var i=e("../internals/to-indexed-object"),a=e("../internals/to-absolute-index"),o=e("../internals/length-of-array-like"),l=function(c){return function(u,h,d){var f,p=i(u),g=o(p),m=a(d,g);if(c&&h!=h){for(;g>m;)if((f=p[m++])!=f)return!0}else for(;g>m;m++)if((c||m in p)&&p[m]===h)return c||m||0;return!c&&-1}};r.exports={includes:l(!0),indexOf:l(!1)}},{"../internals/length-of-array-like":299,"../internals/to-absolute-index":340,"../internals/to-indexed-object":341}],229:[function(e,r,s){var i=e("../internals/function-bind-context"),a=e("../internals/function-uncurry-this"),o=e("../internals/indexed-object"),l=e("../internals/to-object"),c=e("../internals/length-of-array-like"),u=e("../internals/array-species-create"),h=a([].push),d=function(f){var p=f===1,g=f===2,m=f===3,b=f===4,w=f===6,_=f===7,T=f===5||w;return function(M,j,A,B){for(var H,U,X=l(M),V=o(X),O=i(j,A),N=c(V),C=0,x=B||u,S=p?x(M,N):g||_?x(M,0):void 0;N>C;C++)if((T||C in V)&&(U=O(H=V[C],C,X),f))if(p)S[C]=U;else if(U)switch(f){case 3:return!0;case 5:return H;case 6:return C;case 2:h(S,H)}else switch(f){case 4:return!1;case 7:h(S,H)}return w?-1:m||b?b:S}};r.exports={forEach:d(0),map:d(1),filter:d(2),some:d(3),every:d(4),find:d(5),findIndex:d(6),filterReject:d(7)}},{"../internals/array-species-create":233,"../internals/function-bind-context":262,"../internals/function-uncurry-this":268,"../internals/indexed-object":280,"../internals/length-of-array-like":299,"../internals/to-object":344}],230:[function(e,r,s){var i=e("../internals/to-absolute-index"),a=e("../internals/length-of-array-like"),o=e("../internals/create-property"),l=Array,c=Math.max;r.exports=function(u,h,d){for(var f=a(u),p=i(h,f),g=i(d===void 0?f:d,f),m=l(c(g-p,0)),b=0;p<g;p++,b++)o(m,b,u[p]);return m.length=b,m}},{"../internals/create-property":243,"../internals/length-of-array-like":299,"../internals/to-absolute-index":340}],231:[function(e,r,s){var i=e("../internals/function-uncurry-this");r.exports=i([].slice)},{"../internals/function-uncurry-this":268}],232:[function(e,r,s){var i=e("../internals/is-array"),a=e("../internals/is-constructor"),o=e("../internals/is-object"),l=e("../internals/well-known-symbol")("species"),c=Array;r.exports=function(u){var h;return i(u)&&(h=u.constructor,(a(h)&&(h===c||i(h.prototype))||o(h)&&(h=h[l])===null)&&(h=void 0)),h===void 0?c:h}},{"../internals/is-array":284,"../internals/is-constructor":286,"../internals/is-object":289,"../internals/well-known-symbol":357}],233:[function(e,r,s){var i=e("../internals/array-species-constructor");r.exports=function(a,o){return new(i(a))(o===0?0:o)}},{"../internals/array-species-constructor":232}],234:[function(e,r,s){var i=e("../internals/well-known-symbol")("iterator"),a=!1;try{var o=0,l={next:function(){return{done:!!o++}},return:function(){a=!0}};l[i]=function(){return this},Array.from(l,function(){throw 2})}catch{}r.exports=function(c,u){try{if(!u&&!a)return!1}catch{return!1}var h=!1;try{var d={};d[i]=function(){return{next:function(){return{done:h=!0}}}},c(d)}catch{}return h}},{"../internals/well-known-symbol":357}],235:[function(e,r,s){var i=e("../internals/function-uncurry-this"),a=i({}.toString),o=i("".slice);r.exports=function(l){return o(a(l),8,-1)}},{"../internals/function-uncurry-this":268}],236:[function(e,r,s){var i=e("../internals/to-string-tag-support"),a=e("../internals/is-callable"),o=e("../internals/classof-raw"),l=e("../internals/well-known-symbol")("toStringTag"),c=Object,u=o(function(){return arguments}())==="Arguments";r.exports=i?o:function(h){var d,f,p;return h===void 0?"Undefined":h===null?"Null":typeof(f=function(g,m){try{return g[m]}catch{}}(d=c(h),l))=="string"?f:u?o(d):(p=o(d))==="Object"&&a(d.callee)?"Arguments":p}},{"../internals/classof-raw":235,"../internals/is-callable":285,"../internals/to-string-tag-support":347,"../internals/well-known-symbol":357}],237:[function(e,r,s){var i=e("../internals/has-own-property"),a=e("../internals/own-keys"),o=e("../internals/object-get-own-property-descriptor"),l=e("../internals/object-define-property");r.exports=function(c,u,h){for(var d=a(u),f=l.f,p=o.f,g=0;g<d.length;g++){var m=d[g];i(c,m)||h&&i(h,m)||f(c,m,p(u,m))}}},{"../internals/has-own-property":275,"../internals/object-define-property":308,"../internals/object-get-own-property-descriptor":309,"../internals/own-keys":321}],238:[function(e,r,s){var i=e("../internals/well-known-symbol")("match");r.exports=function(a){var o=/./;try{"/./"[a](o)}catch{try{return o[i]=!1,"/./"[a](o)}catch{}}return!1}},{"../internals/well-known-symbol":357}],239:[function(e,r,s){var i=e("../internals/fails");r.exports=!i(function(){function a(){}return a.prototype.constructor=null,Object.getPrototypeOf(new a)!==a.prototype})},{"../internals/fails":260}],240:[function(e,r,s){r.exports=function(i,a){return{value:i,done:a}}},{}],241:[function(e,r,s){var i=e("../internals/descriptors"),a=e("../internals/object-define-property"),o=e("../internals/create-property-descriptor");r.exports=i?function(l,c,u){return a.f(l,c,o(1,u))}:function(l,c,u){return l[c]=u,l}},{"../internals/create-property-descriptor":242,"../internals/descriptors":247,"../internals/object-define-property":308}],242:[function(e,r,s){r.exports=function(i,a){return{enumerable:!(1&i),configurable:!(2&i),writable:!(4&i),value:a}}},{}],243:[function(e,r,s){var i=e("../internals/to-property-key"),a=e("../internals/object-define-property"),o=e("../internals/create-property-descriptor");r.exports=function(l,c,u){var h=i(c);h in l?a.f(l,h,o(0,u)):l[h]=u}},{"../internals/create-property-descriptor":242,"../internals/object-define-property":308,"../internals/to-property-key":346}],244:[function(e,r,s){var i=e("../internals/make-built-in"),a=e("../internals/object-define-property");r.exports=function(o,l,c){return c.get&&i(c.get,l,{getter:!0}),c.set&&i(c.set,l,{setter:!0}),a.f(o,l,c)}},{"../internals/make-built-in":300,"../internals/object-define-property":308}],245:[function(e,r,s){var i=e("../internals/is-callable"),a=e("../internals/object-define-property"),o=e("../internals/make-built-in"),l=e("../internals/define-global-property");r.exports=function(c,u,h,d){d||(d={});var f=d.enumerable,p=d.name!==void 0?d.name:u;if(i(h)&&o(h,p,d),d.global)f?c[u]=h:l(u,h);else{try{d.unsafe?c[u]&&(f=!0):delete c[u]}catch{}f?c[u]=h:a.f(c,u,{value:h,enumerable:!1,configurable:!d.nonConfigurable,writable:!d.nonWritable})}return c}},{"../internals/define-global-property":246,"../internals/is-callable":285,"../internals/make-built-in":300,"../internals/object-define-property":308}],246:[function(e,r,s){var i=e("../internals/global"),a=Object.defineProperty;r.exports=function(o,l){try{a(i,o,{value:l,configurable:!0,writable:!0})}catch{i[o]=l}return l}},{"../internals/global":274}],247:[function(e,r,s){var i=e("../internals/fails");r.exports=!i(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})},{"../internals/fails":260}],248:[function(e,r,s){var i=typeof document=="object"&&document.all,a=i===void 0&&i!==void 0;r.exports={all:i,IS_HTMLDDA:a}},{}],249:[function(e,r,s){var i=e("../internals/global"),a=e("../internals/is-object"),o=i.document,l=a(o)&&a(o.createElement);r.exports=function(c){return l?o.createElement(c):{}}},{"../internals/global":274,"../internals/is-object":289}],250:[function(e,r,s){var i=e("../internals/engine-is-deno"),a=e("../internals/engine-is-node");r.exports=!i&&!a&&typeof window=="object"&&typeof document=="object"},{"../internals/engine-is-deno":251,"../internals/engine-is-node":254}],251:[function(e,r,s){r.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},{}],252:[function(e,r,s){var i=e("../internals/engine-user-agent");r.exports=/ipad|iphone|ipod/i.test(i)&&typeof Pebble<"u"},{"../internals/engine-user-agent":256}],253:[function(e,r,s){var i=e("../internals/engine-user-agent");r.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(i)},{"../internals/engine-user-agent":256}],254:[function(e,r,s){var i=e("../internals/global"),a=e("../internals/classof-raw");r.exports=a(i.process)==="process"},{"../internals/classof-raw":235,"../internals/global":274}],255:[function(e,r,s){var i=e("../internals/engine-user-agent");r.exports=/web0s(?!.*chrome)/i.test(i)},{"../internals/engine-user-agent":256}],256:[function(e,r,s){r.exports=typeof navigator<"u"&&String(navigator.userAgent)||""},{}],257:[function(e,r,s){var i,a,o=e("../internals/global"),l=e("../internals/engine-user-agent"),c=o.process,u=o.Deno,h=c&&c.versions||u&&u.version,d=h&&h.v8;d&&(a=(i=d.split("."))[0]>0&&i[0]<4?1:+(i[0]+i[1])),!a&&l&&(!(i=l.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=l.match(/Chrome\/(\d+)/))&&(a=+i[1]),r.exports=a},{"../internals/engine-user-agent":256,"../internals/global":274}],258:[function(e,r,s){r.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],259:[function(e,r,s){var i=e("../internals/global"),a=e("../internals/object-get-own-property-descriptor").f,o=e("../internals/create-non-enumerable-property"),l=e("../internals/define-built-in"),c=e("../internals/define-global-property"),u=e("../internals/copy-constructor-properties"),h=e("../internals/is-forced");r.exports=function(d,f){var p,g,m,b,w,_=d.target,T=d.global,M=d.stat;if(p=T?i:M?i[_]||c(_,{}):(i[_]||{}).prototype)for(g in f){if(b=f[g],m=d.dontCallGetSet?(w=a(p,g))&&w.value:p[g],!h(T?g:_+(M?".":"#")+g,d.forced)&&m!==void 0){if(typeof b==typeof m)continue;u(b,m)}(d.sham||m&&m.sham)&&o(b,"sham",!0),l(p,g,b,d)}}},{"../internals/copy-constructor-properties":237,"../internals/create-non-enumerable-property":241,"../internals/define-built-in":245,"../internals/define-global-property":246,"../internals/global":274,"../internals/is-forced":287,"../internals/object-get-own-property-descriptor":309}],260:[function(e,r,s){r.exports=function(i){try{return!!i()}catch{return!0}}},{}],261:[function(e,r,s){var i=e("../internals/function-bind-native"),a=Function.prototype,o=a.apply,l=a.call;r.exports=typeof Reflect=="object"&&Reflect.apply||(i?l.bind(o):function(){return l.apply(o,arguments)})},{"../internals/function-bind-native":263}],262:[function(e,r,s){var i=e("../internals/function-uncurry-this-clause"),a=e("../internals/a-callable"),o=e("../internals/function-bind-native"),l=i(i.bind);r.exports=function(c,u){return a(c),u===void 0?c:o?l(c,u):function(){return c.apply(u,arguments)}}},{"../internals/a-callable":222,"../internals/function-bind-native":263,"../internals/function-uncurry-this-clause":267}],263:[function(e,r,s){var i=e("../internals/fails");r.exports=!i(function(){var a=(function(){}).bind();return typeof a!="function"||a.hasOwnProperty("prototype")})},{"../internals/fails":260}],264:[function(e,r,s){var i=e("../internals/function-bind-native"),a=Function.prototype.call;r.exports=i?a.bind(a):function(){return a.apply(a,arguments)}},{"../internals/function-bind-native":263}],265:[function(e,r,s){var i=e("../internals/descriptors"),a=e("../internals/has-own-property"),o=Function.prototype,l=i&&Object.getOwnPropertyDescriptor,c=a(o,"name"),u=c&&(function(){}).name==="something",h=c&&(!i||i&&l(o,"name").configurable);r.exports={EXISTS:c,PROPER:u,CONFIGURABLE:h}},{"../internals/descriptors":247,"../internals/has-own-property":275}],266:[function(e,r,s){var i=e("../internals/function-uncurry-this"),a=e("../internals/a-callable");r.exports=function(o,l,c){try{return i(a(Object.getOwnPropertyDescriptor(o,l)[c]))}catch{}}},{"../internals/a-callable":222,"../internals/function-uncurry-this":268}],267:[function(e,r,s){var i=e("../internals/classof-raw"),a=e("../internals/function-uncurry-this");r.exports=function(o){if(i(o)==="Function")return a(o)}},{"../internals/classof-raw":235,"../internals/function-uncurry-this":268}],268:[function(e,r,s){var i=e("../internals/function-bind-native"),a=Function.prototype,o=a.call,l=i&&a.bind.bind(o,o);r.exports=i?l:function(c){return function(){return o.apply(c,arguments)}}},{"../internals/function-bind-native":263}],269:[function(e,r,s){var i=e("../internals/global"),a=e("../internals/is-callable"),o=function(l){return a(l)?l:void 0};r.exports=function(l,c){return arguments.length<2?o(i[l]):i[l]&&i[l][c]}},{"../internals/global":274,"../internals/is-callable":285}],270:[function(e,r,s){var i=e("../internals/classof"),a=e("../internals/get-method"),o=e("../internals/is-null-or-undefined"),l=e("../internals/iterators"),c=e("../internals/well-known-symbol")("iterator");r.exports=function(u){if(!o(u))return a(u,c)||a(u,"@@iterator")||l[i(u)]}},{"../internals/classof":236,"../internals/get-method":273,"../internals/is-null-or-undefined":288,"../internals/iterators":298,"../internals/well-known-symbol":357}],271:[function(e,r,s){var i=e("../internals/function-call"),a=e("../internals/a-callable"),o=e("../internals/an-object"),l=e("../internals/try-to-string"),c=e("../internals/get-iterator-method"),u=TypeError;r.exports=function(h,d){var f=arguments.length<2?c(h):d;if(a(f))return o(i(f,h));throw new u(l(h)+" is not iterable")}},{"../internals/a-callable":222,"../internals/an-object":227,"../internals/function-call":264,"../internals/get-iterator-method":270,"../internals/try-to-string":349}],272:[function(e,r,s){var i=e("../internals/function-uncurry-this"),a=e("../internals/is-array"),o=e("../internals/is-callable"),l=e("../internals/classof-raw"),c=e("../internals/to-string"),u=i([].push);r.exports=function(h){if(o(h))return h;if(a(h)){for(var d=h.length,f=[],p=0;p<d;p++){var g=h[p];typeof g=="string"?u(f,g):typeof g!="number"&&l(g)!=="Number"&&l(g)!=="String"||u(f,c(g))}var m=f.length,b=!0;return function(w,_){if(b)return b=!1,_;if(a(this))return _;for(var T=0;T<m;T++)if(f[T]===w)return _}}}},{"../internals/classof-raw":235,"../internals/function-uncurry-this":268,"../internals/is-array":284,"../internals/is-callable":285,"../internals/to-string":348}],273:[function(e,r,s){var i=e("../internals/a-callable"),a=e("../internals/is-null-or-undefined");r.exports=function(o,l){var c=o[l];return a(c)?void 0:i(c)}},{"../internals/a-callable":222,"../internals/is-null-or-undefined":288}],274:[function(e,r,s){(function(i){(function(){var a=function(o){return o&&o.Math===Math&&o};r.exports=a(typeof globalThis=="object"&&globalThis)||a(typeof window=="object"&&window)||a(typeof self=="object"&&self)||a(typeof i=="object"&&i)||function(){return this}()||this||Function("return this")()}).call(this)}).call(this,typeof _r<"u"?_r:typeof self<"u"?self:typeof window<"u"?window:{})},{}],275:[function(e,r,s){var i=e("../internals/function-uncurry-this"),a=e("../internals/to-object"),o=i({}.hasOwnProperty);r.exports=Object.hasOwn||function(l,c){return o(a(l),c)}},{"../internals/function-uncurry-this":268,"../internals/to-object":344}],276:[function(e,r,s){r.exports={}},{}],277:[function(e,r,s){r.exports=function(i,a){try{arguments.length===1?console.error(i):console.error(i,a)}catch{}}},{}],278:[function(e,r,s){var i=e("../internals/get-built-in");r.exports=i("document","documentElement")},{"../internals/get-built-in":269}],279:[function(e,r,s){var i=e("../internals/descriptors"),a=e("../internals/fails"),o=e("../internals/document-create-element");r.exports=!i&&!a(function(){return Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a!==7})},{"../internals/descriptors":247,"../internals/document-create-element":249,"../internals/fails":260}],280:[function(e,r,s){var i=e("../internals/function-uncurry-this"),a=e("../internals/fails"),o=e("../internals/classof-raw"),l=Object,c=i("".split);r.exports=a(function(){return!l("z").propertyIsEnumerable(0)})?function(u){return o(u)==="String"?c(u,""):l(u)}:l},{"../internals/classof-raw":235,"../internals/fails":260,"../internals/function-uncurry-this":268}],281:[function(e,r,s){var i=e("../internals/function-uncurry-this"),a=e("../internals/is-callable"),o=e("../internals/shared-store"),l=i(Function.toString);a(o.inspectSource)||(o.inspectSource=function(c){return l(c)}),r.exports=o.inspectSource},{"../internals/function-uncurry-this":268,"../internals/is-callable":285,"../internals/shared-store":333}],282:[function(e,r,s){var i,a,o,l=e("../internals/weak-map-basic-detection"),c=e("../internals/global"),u=e("../internals/is-object"),h=e("../internals/create-non-enumerable-property"),d=e("../internals/has-own-property"),f=e("../internals/shared-store"),p=e("../internals/shared-key"),g=e("../internals/hidden-keys"),m=c.TypeError,b=c.WeakMap;if(l||f.state){var w=f.state||(f.state=new b);w.get=w.get,w.has=w.has,w.set=w.set,i=function(T,M){if(w.has(T))throw new m("Object already initialized");return M.facade=T,w.set(T,M),M},a=function(T){return w.get(T)||{}},o=function(T){return w.has(T)}}else{var _=p("state");g[_]=!0,i=function(T,M){if(d(T,_))throw new m("Object already initialized");return M.facade=T,h(T,_,M),M},a=function(T){return d(T,_)?T[_]:{}},o=function(T){return d(T,_)}}r.exports={set:i,get:a,has:o,enforce:function(T){return o(T)?a(T):i(T,{})},getterFor:function(T){return function(M){var j;if(!u(M)||(j=a(M)).type!==T)throw new m("Incompatible receiver, "+T+" required");return j}}}},{"../internals/create-non-enumerable-property":241,"../internals/global":274,"../internals/has-own-property":275,"../internals/hidden-keys":276,"../internals/is-object":289,"../internals/shared-key":332,"../internals/shared-store":333,"../internals/weak-map-basic-detection":354}],283:[function(e,r,s){var i=e("../internals/well-known-symbol"),a=e("../internals/iterators"),o=i("iterator"),l=Array.prototype;r.exports=function(c){return c!==void 0&&(a.Array===c||l[o]===c)}},{"../internals/iterators":298,"../internals/well-known-symbol":357}],284:[function(e,r,s){var i=e("../internals/classof-raw");r.exports=Array.isArray||function(a){return i(a)==="Array"}},{"../internals/classof-raw":235}],285:[function(e,r,s){var i=e("../internals/document-all"),a=i.all;r.exports=i.IS_HTMLDDA?function(o){return typeof o=="function"||o===a}:function(o){return typeof o=="function"}},{"../internals/document-all":248}],286:[function(e,r,s){var i=e("../internals/function-uncurry-this"),a=e("../internals/fails"),o=e("../internals/is-callable"),l=e("../internals/classof"),c=e("../internals/get-built-in"),u=e("../internals/inspect-source"),h=function(){},d=[],f=c("Reflect","construct"),p=/^\s*(?:class|function)\b/,g=i(p.exec),m=!p.test(h),b=function(_){if(!o(_))return!1;try{return f(h,d,_),!0}catch{return!1}},w=function(_){if(!o(_))return!1;switch(l(_)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return m||!!g(p,u(_))}catch{return!0}};w.sham=!0,r.exports=!f||a(function(){var _;return b(b.call)||!b(Object)||!b(function(){_=!0})||_})?w:b},{"../internals/classof":236,"../internals/fails":260,"../internals/function-uncurry-this":268,"../internals/get-built-in":269,"../internals/inspect-source":281,"../internals/is-callable":285}],287:[function(e,r,s){var i=e("../internals/fails"),a=e("../internals/is-callable"),o=/#|\.prototype\./,l=function(f,p){var g=u[c(f)];return g===d||g!==h&&(a(p)?i(p):!!p)},c=l.normalize=function(f){return String(f).replace(o,".").toLowerCase()},u=l.data={},h=l.NATIVE="N",d=l.POLYFILL="P";r.exports=l},{"../internals/fails":260,"../internals/is-callable":285}],288:[function(e,r,s){r.exports=function(i){return i==null}},{}],289:[function(e,r,s){var i=e("../internals/is-callable"),a=e("../internals/document-all"),o=a.all;r.exports=a.IS_HTMLDDA?function(l){return typeof l=="object"?l!==null:i(l)||l===o}:function(l){return typeof l=="object"?l!==null:i(l)}},{"../internals/document-all":248,"../internals/is-callable":285}],290:[function(e,r,s){r.exports=!1},{}],291:[function(e,r,s){var i=e("../internals/is-object"),a=e("../internals/classof-raw"),o=e("../internals/well-known-symbol")("match");r.exports=function(l){var c;return i(l)&&((c=l[o])!==void 0?!!c:a(l)==="RegExp")}},{"../internals/classof-raw":235,"../internals/is-object":289,"../internals/well-known-symbol":357}],292:[function(e,r,s){var i=e("../internals/get-built-in"),a=e("../internals/is-callable"),o=e("../internals/object-is-prototype-of"),l=e("../internals/use-symbol-as-uid"),c=Object;r.exports=l?function(u){return typeof u=="symbol"}:function(u){var h=i("Symbol");return a(h)&&o(h.prototype,c(u))}},{"../internals/get-built-in":269,"../internals/is-callable":285,"../internals/object-is-prototype-of":314,"../internals/use-symbol-as-uid":351}],293:[function(e,r,s){var i=e("../internals/function-bind-context"),a=e("../internals/function-call"),o=e("../internals/an-object"),l=e("../internals/try-to-string"),c=e("../internals/is-array-iterator-method"),u=e("../internals/length-of-array-like"),h=e("../internals/object-is-prototype-of"),d=e("../internals/get-iterator"),f=e("../internals/get-iterator-method"),p=e("../internals/iterator-close"),g=TypeError,m=function(w,_){this.stopped=w,this.result=_},b=m.prototype;r.exports=function(w,_,T){var M,j,A,B,H,U,X,V=T&&T.that,O=!(!T||!T.AS_ENTRIES),N=!(!T||!T.IS_RECORD),C=!(!T||!T.IS_ITERATOR),x=!(!T||!T.INTERRUPTED),S=i(_,V),k=function(I){return M&&p(M,"normal",I),new m(!0,I)},E=function(I){return O?(o(I),x?S(I[0],I[1],k):S(I[0],I[1])):x?S(I,k):S(I)};if(N)M=w.iterator;else if(C)M=w;else{if(!(j=f(w)))throw new g(l(w)+" is not iterable");if(c(j)){for(A=0,B=u(w);B>A;A++)if((H=E(w[A]))&&h(b,H))return H;return new m(!1)}M=d(w,j)}for(U=N?w.next:M.next;!(X=a(U,M)).done;){try{H=E(X.value)}catch(I){p(M,"throw",I)}if(typeof H=="object"&&H&&h(b,H))return H}return new m(!1)}},{"../internals/an-object":227,"../internals/function-bind-context":262,"../internals/function-call":264,"../internals/get-iterator":271,"../internals/get-iterator-method":270,"../internals/is-array-iterator-method":283,"../internals/iterator-close":294,"../internals/length-of-array-like":299,"../internals/object-is-prototype-of":314,"../internals/try-to-string":349}],294:[function(e,r,s){var i=e("../internals/function-call"),a=e("../internals/an-object"),o=e("../internals/get-method");r.exports=function(l,c,u){var h,d;a(l);try{if(!(h=o(l,"return"))){if(c==="throw")throw u;return u}h=i(h,l)}catch(f){d=!0,h=f}if(c==="throw")throw u;if(d)throw h;return a(h),u}},{"../internals/an-object":227,"../internals/function-call":264,"../internals/get-method":273}],295:[function(e,r,s){var i=e("../internals/iterators-core").IteratorPrototype,a=e("../internals/object-create"),o=e("../internals/create-property-descriptor"),l=e("../internals/set-to-string-tag"),c=e("../internals/iterators"),u=function(){return this};r.exports=function(h,d,f,p){var g=d+" Iterator";return h.prototype=a(i,{next:o(+!p,f)}),l(h,g,!1,!0),c[g]=u,h}},{"../internals/create-property-descriptor":242,"../internals/iterators":298,"../internals/iterators-core":297,"../internals/object-create":306,"../internals/set-to-string-tag":331}],296:[function(e,r,s){var i=e("../internals/export"),a=e("../internals/function-call"),o=e("../internals/is-pure"),l=e("../internals/function-name"),c=e("../internals/is-callable"),u=e("../internals/iterator-create-constructor"),h=e("../internals/object-get-prototype-of"),d=e("../internals/object-set-prototype-of"),f=e("../internals/set-to-string-tag"),p=e("../internals/create-non-enumerable-property"),g=e("../internals/define-built-in"),m=e("../internals/well-known-symbol"),b=e("../internals/iterators"),w=e("../internals/iterators-core"),_=l.PROPER,T=l.CONFIGURABLE,M=w.IteratorPrototype,j=w.BUGGY_SAFARI_ITERATORS,A=m("iterator"),B=function(){return this};r.exports=function(H,U,X,V,O,N,C){u(X,U,V);var x,S,k,E=function(q){if(q===O&&J)return J;if(!j&&q&&q in F)return F[q];switch(q){case"keys":case"values":case"entries":return function(){return new X(this,q)}}return function(){return new X(this)}},I=U+" Iterator",D=!1,F=H.prototype,Y=F[A]||F["@@iterator"]||O&&F[O],J=!j&&Y||E(O),se=U==="Array"&&F.entries||Y;if(se&&(x=h(se.call(new H)))!==Object.prototype&&x.next&&(o||h(x)===M||(d?d(x,M):c(x[A])||g(x,A,B)),f(x,I,!0,!0),o&&(b[I]=B)),_&&O==="values"&&Y&&Y.name!=="values"&&(!o&&T?p(F,"name","values"):(D=!0,J=function(){return a(Y,this)})),O)if(S={values:E("values"),keys:N?J:E("keys"),entries:E("entries")},C)for(k in S)(j||D||!(k in F))&&g(F,k,S[k]);else i({target:U,proto:!0,forced:j||D},S);return o&&!C||F[A]===J||g(F,A,J,{name:O}),b[U]=J,S}},{"../internals/create-non-enumerable-property":241,"../internals/define-built-in":245,"../internals/export":259,"../internals/function-call":264,"../internals/function-name":265,"../internals/is-callable":285,"../internals/is-pure":290,"../internals/iterator-create-constructor":295,"../internals/iterators":298,"../internals/iterators-core":297,"../internals/object-get-prototype-of":313,"../internals/object-set-prototype-of":318,"../internals/set-to-string-tag":331,"../internals/well-known-symbol":357}],297:[function(e,r,s){var i,a,o,l=e("../internals/fails"),c=e("../internals/is-callable"),u=e("../internals/is-object"),h=e("../internals/object-create"),d=e("../internals/object-get-prototype-of"),f=e("../internals/define-built-in"),p=e("../internals/well-known-symbol"),g=e("../internals/is-pure"),m=p("iterator"),b=!1;[].keys&&("next"in(o=[].keys())?(a=d(d(o)))!==Object.prototype&&(i=a):b=!0),!u(i)||l(function(){var w={};return i[m].call(w)!==w})?i={}:g&&(i=h(i)),c(i[m])||f(i,m,function(){return this}),r.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:b}},{"../internals/define-built-in":245,"../internals/fails":260,"../internals/is-callable":285,"../internals/is-object":289,"../internals/is-pure":290,"../internals/object-create":306,"../internals/object-get-prototype-of":313,"../internals/well-known-symbol":357}],298:[function(e,r,s){arguments[4][276][0].apply(s,arguments)},{dup:276}],299:[function(e,r,s){var i=e("../internals/to-length");r.exports=function(a){return i(a.length)}},{"../internals/to-length":343}],300:[function(e,r,s){var i=e("../internals/function-uncurry-this"),a=e("../internals/fails"),o=e("../internals/is-callable"),l=e("../internals/has-own-property"),c=e("../internals/descriptors"),u=e("../internals/function-name").CONFIGURABLE,h=e("../internals/inspect-source"),d=e("../internals/internal-state"),f=d.enforce,p=d.get,g=String,m=Object.defineProperty,b=i("".slice),w=i("".replace),_=i([].join),T=c&&!a(function(){return m(function(){},"length",{value:8}).length!==8}),M=String(String).split("String"),j=r.exports=function(A,B,H){b(g(B),0,7)==="Symbol("&&(B="["+w(g(B),/^Symbol\(([^)]*)\)/,"$1")+"]"),H&&H.getter&&(B="get "+B),H&&H.setter&&(B="set "+B),(!l(A,"name")||u&&A.name!==B)&&(c?m(A,"name",{value:B,configurable:!0}):A.name=B),T&&H&&l(H,"arity")&&A.length!==H.arity&&m(A,"length",{value:H.arity});try{H&&l(H,"constructor")&&H.constructor?c&&m(A,"prototype",{writable:!1}):A.prototype&&(A.prototype=void 0)}catch{}var U=f(A);return l(U,"source")||(U.source=_(M,typeof B=="string"?B:"")),A};Function.prototype.toString=j(function(){return o(this)&&p(this).source||h(this)},"toString")},{"../internals/descriptors":247,"../internals/fails":260,"../internals/function-name":265,"../internals/function-uncurry-this":268,"../internals/has-own-property":275,"../internals/inspect-source":281,"../internals/internal-state":282,"../internals/is-callable":285}],301:[function(e,r,s){var i=Math.ceil,a=Math.floor;r.exports=Math.trunc||function(o){var l=+o;return(l>0?a:i)(l)}},{}],302:[function(e,r,s){var i,a,o,l,c,u=e("../internals/global"),h=e("../internals/function-bind-context"),d=e("../internals/object-get-own-property-descriptor").f,f=e("../internals/task").set,p=e("../internals/queue"),g=e("../internals/engine-is-ios"),m=e("../internals/engine-is-ios-pebble"),b=e("../internals/engine-is-webos-webkit"),w=e("../internals/engine-is-node"),_=u.MutationObserver||u.WebKitMutationObserver,T=u.document,M=u.process,j=u.Promise,A=d(u,"queueMicrotask"),B=A&&A.value;if(!B){var H=new p,U=function(){var X,V;for(w&&(X=M.domain)&&X.exit();V=H.get();)try{V()}catch(O){throw H.head&&i(),O}X&&X.enter()};g||w||b||!_||!T?!m&&j&&j.resolve?((l=j.resolve(void 0)).constructor=j,c=h(l.then,l),i=function(){c(U)}):w?i=function(){M.nextTick(U)}:(f=h(f,u),i=function(){f(U)}):(a=!0,o=T.createTextNode(""),new _(U).observe(o,{characterData:!0}),i=function(){o.data=a=!a}),B=function(X){H.head||i(),H.add(X)}}r.exports=B},{"../internals/engine-is-ios":253,"../internals/engine-is-ios-pebble":252,"../internals/engine-is-node":254,"../internals/engine-is-webos-webkit":255,"../internals/function-bind-context":262,"../internals/global":274,"../internals/object-get-own-property-descriptor":309,"../internals/queue":328,"../internals/task":339}],303:[function(e,r,s){var i=e("../internals/a-callable"),a=TypeError,o=function(l){var c,u;this.promise=new l(function(h,d){if(c!==void 0||u!==void 0)throw new a("Bad Promise constructor");c=h,u=d}),this.resolve=i(c),this.reject=i(u)};r.exports.f=function(l){return new o(l)}},{"../internals/a-callable":222}],304:[function(e,r,s){var i=e("../internals/is-regexp"),a=TypeError;r.exports=function(o){if(i(o))throw new a("The method doesn't accept regular expressions");return o}},{"../internals/is-regexp":291}],305:[function(e,r,s){var i=e("../internals/descriptors"),a=e("../internals/function-uncurry-this"),o=e("../internals/function-call"),l=e("../internals/fails"),c=e("../internals/object-keys"),u=e("../internals/object-get-own-property-symbols"),h=e("../internals/object-property-is-enumerable"),d=e("../internals/to-object"),f=e("../internals/indexed-object"),p=Object.assign,g=Object.defineProperty,m=a([].concat);r.exports=!p||l(function(){if(i&&p({b:1},p(g({},"a",{enumerable:!0,get:function(){g(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var b={},w={},_=Symbol("assign detection");return b[_]=7,"abcdefghijklmnopqrst".split("").forEach(function(T){w[T]=T}),p({},b)[_]!==7||c(p({},w)).join("")!=="abcdefghijklmnopqrst"})?function(b,w){for(var _=d(b),T=arguments.length,M=1,j=u.f,A=h.f;T>M;)for(var B,H=f(arguments[M++]),U=j?m(c(H),j(H)):c(H),X=U.length,V=0;X>V;)B=U[V++],i&&!o(A,H,B)||(_[B]=H[B]);return _}:p},{"../internals/descriptors":247,"../internals/fails":260,"../internals/function-call":264,"../internals/function-uncurry-this":268,"../internals/indexed-object":280,"../internals/object-get-own-property-symbols":312,"../internals/object-keys":316,"../internals/object-property-is-enumerable":317,"../internals/to-object":344}],306:[function(e,r,s){var i,a=e("../internals/an-object"),o=e("../internals/object-define-properties"),l=e("../internals/enum-bug-keys"),c=e("../internals/hidden-keys"),u=e("../internals/html"),h=e("../internals/document-create-element"),d=e("../internals/shared-key"),f=d("IE_PROTO"),p=function(){},g=function(w){return"<script>"+w+"<\/script>"},m=function(w){w.write(g("")),w.close();var _=w.parentWindow.Object;return w=null,_},b=function(){try{i=new ActiveXObject("htmlfile")}catch{}var w,_;b=typeof document<"u"?document.domain&&i?m(i):((_=h("iframe")).style.display="none",u.appendChild(_),_.src="javascript:",(w=_.contentWindow.document).open(),w.write(g("document.F=Object")),w.close(),w.F):m(i);for(var T=l.length;T--;)delete b.prototype[l[T]];return b()};c[f]=!0,r.exports=Object.create||function(w,_){var T;return w!==null?(p.prototype=a(w),T=new p,p.prototype=null,T[f]=w):T=b(),_===void 0?T:o.f(T,_)}},{"../internals/an-object":227,"../internals/document-create-element":249,"../internals/enum-bug-keys":258,"../internals/hidden-keys":276,"../internals/html":278,"../internals/object-define-properties":307,"../internals/shared-key":332}],307:[function(e,r,s){var i=e("../internals/descriptors"),a=e("../internals/v8-prototype-define-bug"),o=e("../internals/object-define-property"),l=e("../internals/an-object"),c=e("../internals/to-indexed-object"),u=e("../internals/object-keys");s.f=i&&!a?Object.defineProperties:function(h,d){l(h);for(var f,p=c(d),g=u(d),m=g.length,b=0;m>b;)o.f(h,f=g[b++],p[f]);return h}},{"../internals/an-object":227,"../internals/descriptors":247,"../internals/object-define-property":308,"../internals/object-keys":316,"../internals/to-indexed-object":341,"../internals/v8-prototype-define-bug":352}],308:[function(e,r,s){var i=e("../internals/descriptors"),a=e("../internals/ie8-dom-define"),o=e("../internals/v8-prototype-define-bug"),l=e("../internals/an-object"),c=e("../internals/to-property-key"),u=TypeError,h=Object.defineProperty,d=Object.getOwnPropertyDescriptor;s.f=i?o?function(f,p,g){if(l(f),p=c(p),l(g),typeof f=="function"&&p==="prototype"&&"value"in g&&"writable"in g&&!g.writable){var m=d(f,p);m&&m.writable&&(f[p]=g.value,g={configurable:"configurable"in g?g.configurable:m.configurable,enumerable:"enumerable"in g?g.enumerable:m.enumerable,writable:!1})}return h(f,p,g)}:h:function(f,p,g){if(l(f),p=c(p),l(g),a)try{return h(f,p,g)}catch{}if("get"in g||"set"in g)throw new u("Accessors not supported");return"value"in g&&(f[p]=g.value),f}},{"../internals/an-object":227,"../internals/descriptors":247,"../internals/ie8-dom-define":279,"../internals/to-property-key":346,"../internals/v8-prototype-define-bug":352}],309:[function(e,r,s){var i=e("../internals/descriptors"),a=e("../internals/function-call"),o=e("../internals/object-property-is-enumerable"),l=e("../internals/create-property-descriptor"),c=e("../internals/to-indexed-object"),u=e("../internals/to-property-key"),h=e("../internals/has-own-property"),d=e("../internals/ie8-dom-define"),f=Object.getOwnPropertyDescriptor;s.f=i?f:function(p,g){if(p=c(p),g=u(g),d)try{return f(p,g)}catch{}if(h(p,g))return l(!a(o.f,p,g),p[g])}},{"../internals/create-property-descriptor":242,"../internals/descriptors":247,"../internals/function-call":264,"../internals/has-own-property":275,"../internals/ie8-dom-define":279,"../internals/object-property-is-enumerable":317,"../internals/to-indexed-object":341,"../internals/to-property-key":346}],310:[function(e,r,s){var i=e("../internals/classof-raw"),a=e("../internals/to-indexed-object"),o=e("../internals/object-get-own-property-names").f,l=e("../internals/array-slice-simple"),c=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];r.exports.f=function(u){return c&&i(u)==="Window"?function(h){try{return o(h)}catch{return l(c)}}(u):o(a(u))}},{"../internals/array-slice-simple":230,"../internals/classof-raw":235,"../internals/object-get-own-property-names":311,"../internals/to-indexed-object":341}],311:[function(e,r,s){var i=e("../internals/object-keys-internal"),a=e("../internals/enum-bug-keys").concat("length","prototype");s.f=Object.getOwnPropertyNames||function(o){return i(o,a)}},{"../internals/enum-bug-keys":258,"../internals/object-keys-internal":315}],312:[function(e,r,s){s.f=Object.getOwnPropertySymbols},{}],313:[function(e,r,s){var i=e("../internals/has-own-property"),a=e("../internals/is-callable"),o=e("../internals/to-object"),l=e("../internals/shared-key"),c=e("../internals/correct-prototype-getter"),u=l("IE_PROTO"),h=Object,d=h.prototype;r.exports=c?h.getPrototypeOf:function(f){var p=o(f);if(i(p,u))return p[u];var g=p.constructor;return a(g)&&p instanceof g?g.prototype:p instanceof h?d:null}},{"../internals/correct-prototype-getter":239,"../internals/has-own-property":275,"../internals/is-callable":285,"../internals/shared-key":332,"../internals/to-object":344}],314:[function(e,r,s){var i=e("../internals/function-uncurry-this");r.exports=i({}.isPrototypeOf)},{"../internals/function-uncurry-this":268}],315:[function(e,r,s){var i=e("../internals/function-uncurry-this"),a=e("../internals/has-own-property"),o=e("../internals/to-indexed-object"),l=e("../internals/array-includes").indexOf,c=e("../internals/hidden-keys"),u=i([].push);r.exports=function(h,d){var f,p=o(h),g=0,m=[];for(f in p)!a(c,f)&&a(p,f)&&u(m,f);for(;d.length>g;)a(p,f=d[g++])&&(~l(m,f)||u(m,f));return m}},{"../internals/array-includes":228,"../internals/function-uncurry-this":268,"../internals/has-own-property":275,"../internals/hidden-keys":276,"../internals/to-indexed-object":341}],316:[function(e,r,s){var i=e("../internals/object-keys-internal"),a=e("../internals/enum-bug-keys");r.exports=Object.keys||function(o){return i(o,a)}},{"../internals/enum-bug-keys":258,"../internals/object-keys-internal":315}],317:[function(e,r,s){var i={}.propertyIsEnumerable,a=Object.getOwnPropertyDescriptor,o=a&&!i.call({1:2},1);s.f=o?function(l){var c=a(this,l);return!!c&&c.enumerable}:i},{}],318:[function(e,r,s){var i=e("../internals/function-uncurry-this-accessor"),a=e("../internals/an-object"),o=e("../internals/a-possible-prototype");r.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var l,c=!1,u={};try{(l=i(Object.prototype,"__proto__","set"))(u,[]),c=u instanceof Array}catch{}return function(h,d){return a(h),o(d),c?l(h,d):h.__proto__=d,h}}():void 0)},{"../internals/a-possible-prototype":224,"../internals/an-object":227,"../internals/function-uncurry-this-accessor":266}],319:[function(e,r,s){var i=e("../internals/descriptors"),a=e("../internals/fails"),o=e("../internals/function-uncurry-this"),l=e("../internals/object-get-prototype-of"),c=e("../internals/object-keys"),u=e("../internals/to-indexed-object"),h=o(e("../internals/object-property-is-enumerable").f),d=o([].push),f=i&&a(function(){var g=Object.create(null);return g[2]=2,!h(g,2)}),p=function(g){return function(m){for(var b,w=u(m),_=c(w),T=f&&l(w)===null,M=_.length,j=0,A=[];M>j;)b=_[j++],i&&!(T?b in w:h(w,b))||d(A,g?[b,w[b]]:w[b]);return A}};r.exports={entries:p(!0),values:p(!1)}},{"../internals/descriptors":247,"../internals/fails":260,"../internals/function-uncurry-this":268,"../internals/object-get-prototype-of":313,"../internals/object-keys":316,"../internals/object-property-is-enumerable":317,"../internals/to-indexed-object":341}],320:[function(e,r,s){var i=e("../internals/function-call"),a=e("../internals/is-callable"),o=e("../internals/is-object"),l=TypeError;r.exports=function(c,u){var h,d;if(u==="string"&&a(h=c.toString)&&!o(d=i(h,c))||a(h=c.valueOf)&&!o(d=i(h,c))||u!=="string"&&a(h=c.toString)&&!o(d=i(h,c)))return d;throw new l("Can't convert object to primitive value")}},{"../internals/function-call":264,"../internals/is-callable":285,"../internals/is-object":289}],321:[function(e,r,s){var i=e("../internals/get-built-in"),a=e("../internals/function-uncurry-this"),o=e("../internals/object-get-own-property-names"),l=e("../internals/object-get-own-property-symbols"),c=e("../internals/an-object"),u=a([].concat);r.exports=i("Reflect","ownKeys")||function(h){var d=o.f(c(h)),f=l.f;return f?u(d,f(h)):d}},{"../internals/an-object":227,"../internals/function-uncurry-this":268,"../internals/get-built-in":269,"../internals/object-get-own-property-names":311,"../internals/object-get-own-property-symbols":312}],322:[function(e,r,s){var i=e("../internals/global");r.exports=i},{"../internals/global":274}],323:[function(e,r,s){r.exports=function(i){try{return{error:!1,value:i()}}catch(a){return{error:!0,value:a}}}},{}],324:[function(e,r,s){var i=e("../internals/global"),a=e("../internals/promise-native-constructor"),o=e("../internals/is-callable"),l=e("../internals/is-forced"),c=e("../internals/inspect-source"),u=e("../internals/well-known-symbol"),h=e("../internals/engine-is-browser"),d=e("../internals/engine-is-deno"),f=e("../internals/is-pure"),p=e("../internals/engine-v8-version"),g=a&&a.prototype,m=u("species"),b=!1,w=o(i.PromiseRejectionEvent),_=l("Promise",function(){var T=c(a),M=T!==String(a);if(!M&&p===66||f&&(!g.catch||!g.finally))return!0;if(!p||p<51||!/native code/.test(T)){var j=new a(function(B){B(1)}),A=function(B){B(function(){},function(){})};if((j.constructor={})[m]=A,!(b=j.then(function(){})instanceof A))return!0}return!M&&(h||d)&&!w});r.exports={CONSTRUCTOR:_,REJECTION_EVENT:w,SUBCLASSING:b}},{"../internals/engine-is-browser":250,"../internals/engine-is-deno":251,"../internals/engine-v8-version":257,"../internals/global":274,"../internals/inspect-source":281,"../internals/is-callable":285,"../internals/is-forced":287,"../internals/is-pure":290,"../internals/promise-native-constructor":325,"../internals/well-known-symbol":357}],325:[function(e,r,s){var i=e("../internals/global");r.exports=i.Promise},{"../internals/global":274}],326:[function(e,r,s){var i=e("../internals/an-object"),a=e("../internals/is-object"),o=e("../internals/new-promise-capability");r.exports=function(l,c){if(i(l),a(c)&&c.constructor===l)return c;var u=o.f(l);return(0,u.resolve)(c),u.promise}},{"../internals/an-object":227,"../internals/is-object":289,"../internals/new-promise-capability":303}],327:[function(e,r,s){var i=e("../internals/promise-native-constructor"),a=e("../internals/check-correctness-of-iteration"),o=e("../internals/promise-constructor-detection").CONSTRUCTOR;r.exports=o||!a(function(l){i.all(l).then(void 0,function(){})})},{"../internals/check-correctness-of-iteration":234,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325}],328:[function(e,r,s){var i=function(){this.head=null,this.tail=null};i.prototype={add:function(a){var o={item:a,next:null},l=this.tail;l?l.next=o:this.head=o,this.tail=o},get:function(){var a=this.head;if(a)return(this.head=a.next)===null&&(this.tail=null),a.item}},r.exports=i},{}],329:[function(e,r,s){var i=e("../internals/is-null-or-undefined"),a=TypeError;r.exports=function(o){if(i(o))throw new a("Can't call method on "+o);return o}},{"../internals/is-null-or-undefined":288}],330:[function(e,r,s){var i=e("../internals/get-built-in"),a=e("../internals/define-built-in-accessor"),o=e("../internals/well-known-symbol"),l=e("../internals/descriptors"),c=o("species");r.exports=function(u){var h=i(u);l&&h&&!h[c]&&a(h,c,{configurable:!0,get:function(){return this}})}},{"../internals/define-built-in-accessor":244,"../internals/descriptors":247,"../internals/get-built-in":269,"../internals/well-known-symbol":357}],331:[function(e,r,s){var i=e("../internals/object-define-property").f,a=e("../internals/has-own-property"),o=e("../internals/well-known-symbol")("toStringTag");r.exports=function(l,c,u){l&&!u&&(l=l.prototype),l&&!a(l,o)&&i(l,o,{configurable:!0,value:c})}},{"../internals/has-own-property":275,"../internals/object-define-property":308,"../internals/well-known-symbol":357}],332:[function(e,r,s){var i=e("../internals/shared"),a=e("../internals/uid"),o=i("keys");r.exports=function(l){return o[l]||(o[l]=a(l))}},{"../internals/shared":334,"../internals/uid":350}],333:[function(e,r,s){var i=e("../internals/global"),a=e("../internals/define-global-property"),o=i["__core-js_shared__"]||a("__core-js_shared__",{});r.exports=o},{"../internals/define-global-property":246,"../internals/global":274}],334:[function(e,r,s){var i=e("../internals/is-pure"),a=e("../internals/shared-store");(r.exports=function(o,l){return a[o]||(a[o]=l!==void 0?l:{})})("versions",[]).push({version:"3.33.0",mode:i?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE",source:"https://github.com/zloirock/core-js"})},{"../internals/is-pure":290,"../internals/shared-store":333}],335:[function(e,r,s){var i=e("../internals/an-object"),a=e("../internals/a-constructor"),o=e("../internals/is-null-or-undefined"),l=e("../internals/well-known-symbol")("species");r.exports=function(c,u){var h,d=i(c).constructor;return d===void 0||o(h=i(d)[l])?u:a(h)}},{"../internals/a-constructor":223,"../internals/an-object":227,"../internals/is-null-or-undefined":288,"../internals/well-known-symbol":357}],336:[function(e,r,s){var i=e("../internals/engine-v8-version"),a=e("../internals/fails"),o=e("../internals/global").String;r.exports=!!Object.getOwnPropertySymbols&&!a(function(){var l=Symbol("symbol detection");return!o(l)||!(Object(l)instanceof Symbol)||!Symbol.sham&&i&&i<41})},{"../internals/engine-v8-version":257,"../internals/fails":260,"../internals/global":274}],337:[function(e,r,s){var i=e("../internals/function-call"),a=e("../internals/get-built-in"),o=e("../internals/well-known-symbol"),l=e("../internals/define-built-in");r.exports=function(){var c=a("Symbol"),u=c&&c.prototype,h=u&&u.valueOf,d=o("toPrimitive");u&&!u[d]&&l(u,d,function(f){return i(h,this)},{arity:1})}},{"../internals/define-built-in":245,"../internals/function-call":264,"../internals/get-built-in":269,"../internals/well-known-symbol":357}],338:[function(e,r,s){var i=e("../internals/symbol-constructor-detection");r.exports=i&&!!Symbol.for&&!!Symbol.keyFor},{"../internals/symbol-constructor-detection":336}],339:[function(e,r,s){var i,a,o,l,c=e("../internals/global"),u=e("../internals/function-apply"),h=e("../internals/function-bind-context"),d=e("../internals/is-callable"),f=e("../internals/has-own-property"),p=e("../internals/fails"),g=e("../internals/html"),m=e("../internals/array-slice"),b=e("../internals/document-create-element"),w=e("../internals/validate-arguments-length"),_=e("../internals/engine-is-ios"),T=e("../internals/engine-is-node"),M=c.setImmediate,j=c.clearImmediate,A=c.process,B=c.Dispatch,H=c.Function,U=c.MessageChannel,X=c.String,V=0,O={};p(function(){i=c.location});var N=function(k){if(f(O,k)){var E=O[k];delete O[k],E()}},C=function(k){return function(){N(k)}},x=function(k){N(k.data)},S=function(k){c.postMessage(X(k),i.protocol+"//"+i.host)};M&&j||(M=function(k){w(arguments.length,1);var E=d(k)?k:H(k),I=m(arguments,1);return O[++V]=function(){u(E,void 0,I)},a(V),V},j=function(k){delete O[k]},T?a=function(k){A.nextTick(C(k))}:B&&B.now?a=function(k){B.now(C(k))}:U&&!_?(l=(o=new U).port2,o.port1.onmessage=x,a=h(l.postMessage,l)):c.addEventListener&&d(c.postMessage)&&!c.importScripts&&i&&i.protocol!=="file:"&&!p(S)?(a=S,c.addEventListener("message",x,!1)):a="onreadystatechange"in b("script")?function(k){g.appendChild(b("script")).onreadystatechange=function(){g.removeChild(this),N(k)}}:function(k){setTimeout(C(k),0)}),r.exports={set:M,clear:j}},{"../internals/array-slice":231,"../internals/document-create-element":249,"../internals/engine-is-ios":253,"../internals/engine-is-node":254,"../internals/fails":260,"../internals/function-apply":261,"../internals/function-bind-context":262,"../internals/global":274,"../internals/has-own-property":275,"../internals/html":278,"../internals/is-callable":285,"../internals/validate-arguments-length":353}],340:[function(e,r,s){var i=e("../internals/to-integer-or-infinity"),a=Math.max,o=Math.min;r.exports=function(l,c){var u=i(l);return u<0?a(u+c,0):o(u,c)}},{"../internals/to-integer-or-infinity":342}],341:[function(e,r,s){var i=e("../internals/indexed-object"),a=e("../internals/require-object-coercible");r.exports=function(o){return i(a(o))}},{"../internals/indexed-object":280,"../internals/require-object-coercible":329}],342:[function(e,r,s){var i=e("../internals/math-trunc");r.exports=function(a){var o=+a;return o!=o||o===0?0:i(o)}},{"../internals/math-trunc":301}],343:[function(e,r,s){var i=e("../internals/to-integer-or-infinity"),a=Math.min;r.exports=function(o){return o>0?a(i(o),9007199254740991):0}},{"../internals/to-integer-or-infinity":342}],344:[function(e,r,s){var i=e("../internals/require-object-coercible"),a=Object;r.exports=function(o){return a(i(o))}},{"../internals/require-object-coercible":329}],345:[function(e,r,s){var i=e("../internals/function-call"),a=e("../internals/is-object"),o=e("../internals/is-symbol"),l=e("../internals/get-method"),c=e("../internals/ordinary-to-primitive"),u=e("../internals/well-known-symbol"),h=TypeError,d=u("toPrimitive");r.exports=function(f,p){if(!a(f)||o(f))return f;var g,m=l(f,d);if(m){if(p===void 0&&(p="default"),g=i(m,f,p),!a(g)||o(g))return g;throw new h("Can't convert object to primitive value")}return p===void 0&&(p="number"),c(f,p)}},{"../internals/function-call":264,"../internals/get-method":273,"../internals/is-object":289,"../internals/is-symbol":292,"../internals/ordinary-to-primitive":320,"../internals/well-known-symbol":357}],346:[function(e,r,s){var i=e("../internals/to-primitive"),a=e("../internals/is-symbol");r.exports=function(o){var l=i(o,"string");return a(l)?l:l+""}},{"../internals/is-symbol":292,"../internals/to-primitive":345}],347:[function(e,r,s){var i={};i[e("../internals/well-known-symbol")("toStringTag")]="z",r.exports=String(i)==="[object z]"},{"../internals/well-known-symbol":357}],348:[function(e,r,s){var i=e("../internals/classof"),a=String;r.exports=function(o){if(i(o)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return a(o)}},{"../internals/classof":236}],349:[function(e,r,s){var i=String;r.exports=function(a){try{return i(a)}catch{return"Object"}}},{}],350:[function(e,r,s){var i=e("../internals/function-uncurry-this"),a=0,o=Math.random(),l=i(1 .toString);r.exports=function(c){return"Symbol("+(c===void 0?"":c)+")_"+l(++a+o,36)}},{"../internals/function-uncurry-this":268}],351:[function(e,r,s){var i=e("../internals/symbol-constructor-detection");r.exports=i&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},{"../internals/symbol-constructor-detection":336}],352:[function(e,r,s){var i=e("../internals/descriptors"),a=e("../internals/fails");r.exports=i&&a(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})},{"../internals/descriptors":247,"../internals/fails":260}],353:[function(e,r,s){var i=TypeError;r.exports=function(a,o){if(a<o)throw new i("Not enough arguments");return a}},{}],354:[function(e,r,s){var i=e("../internals/global"),a=e("../internals/is-callable"),o=i.WeakMap;r.exports=a(o)&&/native code/.test(String(o))},{"../internals/global":274,"../internals/is-callable":285}],355:[function(e,r,s){var i=e("../internals/path"),a=e("../internals/has-own-property"),o=e("../internals/well-known-symbol-wrapped"),l=e("../internals/object-define-property").f;r.exports=function(c){var u=i.Symbol||(i.Symbol={});a(u,c)||l(u,c,{value:o.f(c)})}},{"../internals/has-own-property":275,"../internals/object-define-property":308,"../internals/path":322,"../internals/well-known-symbol-wrapped":356}],356:[function(e,r,s){var i=e("../internals/well-known-symbol");s.f=i},{"../internals/well-known-symbol":357}],357:[function(e,r,s){var i=e("../internals/global"),a=e("../internals/shared"),o=e("../internals/has-own-property"),l=e("../internals/uid"),c=e("../internals/symbol-constructor-detection"),u=e("../internals/use-symbol-as-uid"),h=i.Symbol,d=a("wks"),f=u?h.for||h:h&&h.withoutSetter||l;r.exports=function(p){return o(d,p)||(d[p]=c&&o(h,p)?h[p]:f("Symbol."+p)),d[p]}},{"../internals/global":274,"../internals/has-own-property":275,"../internals/shared":334,"../internals/symbol-constructor-detection":336,"../internals/uid":350,"../internals/use-symbol-as-uid":351}],358:[function(e,r,s){var i=e("../internals/export"),a=e("../internals/array-iteration").findIndex,o=e("../internals/add-to-unscopables"),l=!0;"findIndex"in[]&&Array(1).findIndex(function(){l=!1}),i({target:"Array",proto:!0,forced:l},{findIndex:function(c){return a(this,c,arguments.length>1?arguments[1]:void 0)}}),o("findIndex")},{"../internals/add-to-unscopables":225,"../internals/array-iteration":229,"../internals/export":259}],359:[function(e,r,s){var i=e("../internals/export"),a=e("../internals/array-iteration").find,o=e("../internals/add-to-unscopables"),l=!0;"find"in[]&&Array(1).find(function(){l=!1}),i({target:"Array",proto:!0,forced:l},{find:function(c){return a(this,c,arguments.length>1?arguments[1]:void 0)}}),o("find")},{"../internals/add-to-unscopables":225,"../internals/array-iteration":229,"../internals/export":259}],360:[function(e,r,s){var i=e("../internals/export"),a=e("../internals/array-includes").includes,o=e("../internals/fails"),l=e("../internals/add-to-unscopables");i({target:"Array",proto:!0,forced:o(function(){return!Array(1).includes()})},{includes:function(c){return a(this,c,arguments.length>1?arguments[1]:void 0)}}),l("includes")},{"../internals/add-to-unscopables":225,"../internals/array-includes":228,"../internals/export":259,"../internals/fails":260}],361:[function(e,r,s){var i=e("../internals/to-indexed-object"),a=e("../internals/add-to-unscopables"),o=e("../internals/iterators"),l=e("../internals/internal-state"),c=e("../internals/object-define-property").f,u=e("../internals/iterator-define"),h=e("../internals/create-iter-result-object"),d=e("../internals/is-pure"),f=e("../internals/descriptors"),p=l.set,g=l.getterFor("Array Iterator");r.exports=u(Array,"Array",function(b,w){p(this,{type:"Array Iterator",target:i(b),index:0,kind:w})},function(){var b=g(this),w=b.target,_=b.kind,T=b.index++;if(!w||T>=w.length)return b.target=void 0,h(void 0,!0);switch(_){case"keys":return h(T,!1);case"values":return h(w[T],!1)}return h([T,w[T]],!1)},"values");var m=o.Arguments=o.Array;if(a("keys"),a("values"),a("entries"),!d&&f&&m.name!=="values")try{c(m,"name",{value:"values"})}catch{}},{"../internals/add-to-unscopables":225,"../internals/create-iter-result-object":240,"../internals/descriptors":247,"../internals/internal-state":282,"../internals/is-pure":290,"../internals/iterator-define":296,"../internals/iterators":298,"../internals/object-define-property":308,"../internals/to-indexed-object":341}],362:[function(e,r,s){var i=e("../internals/export"),a=e("../internals/get-built-in"),o=e("../internals/function-apply"),l=e("../internals/function-call"),c=e("../internals/function-uncurry-this"),u=e("../internals/fails"),h=e("../internals/is-callable"),d=e("../internals/is-symbol"),f=e("../internals/array-slice"),p=e("../internals/get-json-replacer-function"),g=e("../internals/symbol-constructor-detection"),m=String,b=a("JSON","stringify"),w=c(/./.exec),_=c("".charAt),T=c("".charCodeAt),M=c("".replace),j=c(1 .toString),A=/[\uD800-\uDFFF]/g,B=/^[\uD800-\uDBFF]$/,H=/^[\uDC00-\uDFFF]$/,U=!g||u(function(){var N=a("Symbol")("stringify detection");return b([N])!=="[null]"||b({a:N})!=="{}"||b(Object(N))!=="{}"}),X=u(function(){return b("\uDF06\uD834")!=='"\\udf06\\ud834"'||b("\uDEAD")!=='"\\udead"'}),V=function(N,C){var x=f(arguments),S=p(C);if(h(S)||N!==void 0&&!d(N))return x[1]=function(k,E){if(h(S)&&(E=l(S,this,m(k),E)),!d(E))return E},o(b,null,x)},O=function(N,C,x){var S=_(x,C-1),k=_(x,C+1);return w(B,N)&&!w(H,k)||w(H,N)&&!w(B,S)?"\\u"+j(T(N,0),16):N};b&&i({target:"JSON",stat:!0,arity:3,forced:U||X},{stringify:function(N,C,x){var S=f(arguments),k=o(U?V:b,null,S);return X&&typeof k=="string"?M(k,A,O):k}})},{"../internals/array-slice":231,"../internals/export":259,"../internals/fails":260,"../internals/function-apply":261,"../internals/function-call":264,"../internals/function-uncurry-this":268,"../internals/get-built-in":269,"../internals/get-json-replacer-function":272,"../internals/is-callable":285,"../internals/is-symbol":292,"../internals/symbol-constructor-detection":336}],363:[function(e,r,s){e("../internals/export")({target:"Number",stat:!0},{isNaN:function(i){return i!=i}})},{"../internals/export":259}],364:[function(e,r,s){var i=e("../internals/export"),a=e("../internals/object-assign");i({target:"Object",stat:!0,arity:2,forced:Object.assign!==a},{assign:a})},{"../internals/export":259,"../internals/object-assign":305}],365:[function(e,r,s){var i=e("../internals/export"),a=e("../internals/symbol-constructor-detection"),o=e("../internals/fails"),l=e("../internals/object-get-own-property-symbols"),c=e("../internals/to-object");i({target:"Object",stat:!0,forced:!a||o(function(){l.f(1)})},{getOwnPropertySymbols:function(u){var h=l.f;return h?h(c(u)):[]}})},{"../internals/export":259,"../internals/fails":260,"../internals/object-get-own-property-symbols":312,"../internals/symbol-constructor-detection":336,"../internals/to-object":344}],366:[function(e,r,s){var i=e("../internals/export"),a=e("../internals/to-object"),o=e("../internals/object-keys");i({target:"Object",stat:!0,forced:e("../internals/fails")(function(){o(1)})},{keys:function(l){return o(a(l))}})},{"../internals/export":259,"../internals/fails":260,"../internals/object-keys":316,"../internals/to-object":344}],367:[function(e,r,s){var i=e("../internals/export"),a=e("../internals/object-to-array").values;i({target:"Object",stat:!0},{values:function(o){return a(o)}})},{"../internals/export":259,"../internals/object-to-array":319}],368:[function(e,r,s){var i=e("../internals/export"),a=e("../internals/function-call"),o=e("../internals/a-callable"),l=e("../internals/new-promise-capability"),c=e("../internals/perform"),u=e("../internals/iterate");i({target:"Promise",stat:!0,forced:e("../internals/promise-statics-incorrect-iteration")},{all:function(h){var d=this,f=l.f(d),p=f.resolve,g=f.reject,m=c(function(){var b=o(d.resolve),w=[],_=0,T=1;u(h,function(M){var j=_++,A=!1;T++,a(b,d,M).then(function(B){A||(A=!0,w[j]=B,--T||p(w))},g)}),--T||p(w)});return m.error&&g(m.value),f.promise}})},{"../internals/a-callable":222,"../internals/export":259,"../internals/function-call":264,"../internals/iterate":293,"../internals/new-promise-capability":303,"../internals/perform":323,"../internals/promise-statics-incorrect-iteration":327}],369:[function(e,r,s){var i=e("../internals/export"),a=e("../internals/is-pure"),o=e("../internals/promise-constructor-detection").CONSTRUCTOR,l=e("../internals/promise-native-constructor"),c=e("../internals/get-built-in"),u=e("../internals/is-callable"),h=e("../internals/define-built-in"),d=l&&l.prototype;if(i({target:"Promise",proto:!0,forced:o,real:!0},{catch:function(p){return this.then(void 0,p)}}),!a&&u(l)){var f=c("Promise").prototype.catch;d.catch!==f&&h(d,"catch",f,{unsafe:!0})}},{"../internals/define-built-in":245,"../internals/export":259,"../internals/get-built-in":269,"../internals/is-callable":285,"../internals/is-pure":290,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325}],370:[function(e,r,s){var i,a,o,l=e("../internals/export"),c=e("../internals/is-pure"),u=e("../internals/engine-is-node"),h=e("../internals/global"),d=e("../internals/function-call"),f=e("../internals/define-built-in"),p=e("../internals/object-set-prototype-of"),g=e("../internals/set-to-string-tag"),m=e("../internals/set-species"),b=e("../internals/a-callable"),w=e("../internals/is-callable"),_=e("../internals/is-object"),T=e("../internals/an-instance"),M=e("../internals/species-constructor"),j=e("../internals/task").set,A=e("../internals/microtask"),B=e("../internals/host-report-errors"),H=e("../internals/perform"),U=e("../internals/queue"),X=e("../internals/internal-state"),V=e("../internals/promise-native-constructor"),O=e("../internals/promise-constructor-detection"),N=e("../internals/new-promise-capability"),C=O.CONSTRUCTOR,x=O.REJECTION_EVENT,S=O.SUBCLASSING,k=X.getterFor("Promise"),E=X.set,I=V&&V.prototype,D=V,F=I,Y=h.TypeError,J=h.document,se=h.process,q=N.f,ee=q,L=!!(J&&J.createEvent&&h.dispatchEvent),P=function(ge){var ke;return!(!_(ge)||!w(ke=ge.then))&&ke},G=function(ge,ke){var xe,Ee,Ie,Pe=ke.value,Ae=ke.state===1,Ge=Ae?ge.ok:ge.fail,st=ge.resolve,et=ge.reject,Rt=ge.domain;try{Ge?(Ae||(ke.rejection===2&&ve(ke),ke.rejection=1),Ge===!0?xe=Pe:(Rt&&Rt.enter(),xe=Ge(Pe),Rt&&(Rt.exit(),Ie=!0)),xe===ge.promise?et(new Y("Promise-chain cycle")):(Ee=P(xe))?d(Ee,xe,st,et):st(xe)):et(Pe)}catch(_t){Rt&&!Ie&&Rt.exit(),et(_t)}},ne=function(ge,ke){ge.notified||(ge.notified=!0,A(function(){for(var xe,Ee=ge.reactions;xe=Ee.get();)G(xe,ge);ge.notified=!1,ke&&!ge.rejection&&ie(ge)}))},ce=function(ge,ke,xe){var Ee,Ie;L?((Ee=J.createEvent("Event")).promise=ke,Ee.reason=xe,Ee.initEvent(ge,!1,!0),h.dispatchEvent(Ee)):Ee={promise:ke,reason:xe},!x&&(Ie=h["on"+ge])?Ie(Ee):ge==="unhandledrejection"&&B("Unhandled promise rejection",xe)},ie=function(ge){d(j,h,function(){var ke,xe=ge.facade,Ee=ge.value;if(ue(ge)&&(ke=H(function(){u?se.emit("unhandledRejection",Ee,xe):ce("unhandledrejection",xe,Ee)}),ge.rejection=u||ue(ge)?2:1,ke.error))throw ke.value})},ue=function(ge){return ge.rejection!==1&&!ge.parent},ve=function(ge){d(j,h,function(){var ke=ge.facade;u?se.emit("rejectionHandled",ke):ce("rejectionhandled",ke,ge.value)})},we=function(ge,ke,xe){return function(Ee){ge(ke,Ee,xe)}},le=function(ge,ke,xe){ge.done||(ge.done=!0,xe&&(ge=xe),ge.value=ke,ge.state=2,ne(ge,!0))},me=function(ge,ke,xe){if(!ge.done){ge.done=!0,xe&&(ge=xe);try{if(ge.facade===ke)throw new Y("Promise can't be resolved itself");var Ee=P(ke);Ee?A(function(){var Ie={done:!1};try{d(Ee,ke,we(me,Ie,ge),we(le,Ie,ge))}catch(Pe){le(Ie,Pe,ge)}}):(ge.value=ke,ge.state=1,ne(ge,!1))}catch(Ie){le({done:!1},Ie,ge)}}};if(C&&(F=(D=function(ge){T(this,F),b(ge),d(i,this);var ke=k(this);try{ge(we(me,ke),we(le,ke))}catch(xe){le(ke,xe)}}).prototype,(i=function(ge){E(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new U,rejection:!1,state:0,value:void 0})}).prototype=f(F,"then",function(ge,ke){var xe=k(this),Ee=q(M(this,D));return xe.parent=!0,Ee.ok=!w(ge)||ge,Ee.fail=w(ke)&&ke,Ee.domain=u?se.domain:void 0,xe.state===0?xe.reactions.add(Ee):A(function(){G(Ee,xe)}),Ee.promise}),a=function(){var ge=new i,ke=k(ge);this.promise=ge,this.resolve=we(me,ke),this.reject=we(le,ke)},N.f=q=function(ge){return ge===D||ge===void 0?new a(ge):ee(ge)},!c&&w(V)&&I!==Object.prototype)){o=I.then,S||f(I,"then",function(ge,ke){var xe=this;return new D(function(Ee,Ie){d(o,xe,Ee,Ie)}).then(ge,ke)},{unsafe:!0});try{delete I.constructor}catch{}p&&p(I,F)}l({global:!0,constructor:!0,wrap:!0,forced:C},{Promise:D}),g(D,"Promise",!1,!0),m("Promise")},{"../internals/a-callable":222,"../internals/an-instance":226,"../internals/define-built-in":245,"../internals/engine-is-node":254,"../internals/export":259,"../internals/function-call":264,"../internals/global":274,"../internals/host-report-errors":277,"../internals/internal-state":282,"../internals/is-callable":285,"../internals/is-object":289,"../internals/is-pure":290,"../internals/microtask":302,"../internals/new-promise-capability":303,"../internals/object-set-prototype-of":318,"../internals/perform":323,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325,"../internals/queue":328,"../internals/set-species":330,"../internals/set-to-string-tag":331,"../internals/species-constructor":335,"../internals/task":339}],371:[function(e,r,s){var i=e("../internals/export"),a=e("../internals/is-pure"),o=e("../internals/promise-native-constructor"),l=e("../internals/fails"),c=e("../internals/get-built-in"),u=e("../internals/is-callable"),h=e("../internals/species-constructor"),d=e("../internals/promise-resolve"),f=e("../internals/define-built-in"),p=o&&o.prototype;if(i({target:"Promise",proto:!0,real:!0,forced:!!o&&l(function(){p.finally.call({then:function(){}},function(){})})},{finally:function(m){var b=h(this,c("Promise")),w=u(m);return this.then(w?function(_){return d(b,m()).then(function(){return _})}:m,w?function(_){return d(b,m()).then(function(){throw _})}:m)}}),!a&&u(o)){var g=c("Promise").prototype.finally;p.finally!==g&&f(p,"finally",g,{unsafe:!0})}},{"../internals/define-built-in":245,"../internals/export":259,"../internals/fails":260,"../internals/get-built-in":269,"../internals/is-callable":285,"../internals/is-pure":290,"../internals/promise-native-constructor":325,"../internals/promise-resolve":326,"../internals/species-constructor":335}],372:[function(e,r,s){e("../modules/es.promise.constructor"),e("../modules/es.promise.all"),e("../modules/es.promise.catch"),e("../modules/es.promise.race"),e("../modules/es.promise.reject"),e("../modules/es.promise.resolve")},{"../modules/es.promise.all":368,"../modules/es.promise.catch":369,"../modules/es.promise.constructor":370,"../modules/es.promise.race":373,"../modules/es.promise.reject":374,"../modules/es.promise.resolve":375}],373:[function(e,r,s){var i=e("../internals/export"),a=e("../internals/function-call"),o=e("../internals/a-callable"),l=e("../internals/new-promise-capability"),c=e("../internals/perform"),u=e("../internals/iterate");i({target:"Promise",stat:!0,forced:e("../internals/promise-statics-incorrect-iteration")},{race:function(h){var d=this,f=l.f(d),p=f.reject,g=c(function(){var m=o(d.resolve);u(h,function(b){a(m,d,b).then(f.resolve,p)})});return g.error&&p(g.value),f.promise}})},{"../internals/a-callable":222,"../internals/export":259,"../internals/function-call":264,"../internals/iterate":293,"../internals/new-promise-capability":303,"../internals/perform":323,"../internals/promise-statics-incorrect-iteration":327}],374:[function(e,r,s){var i=e("../internals/export"),a=e("../internals/function-call"),o=e("../internals/new-promise-capability");i({target:"Promise",stat:!0,forced:e("../internals/promise-constructor-detection").CONSTRUCTOR},{reject:function(l){var c=o.f(this);return a(c.reject,void 0,l),c.promise}})},{"../internals/export":259,"../internals/function-call":264,"../internals/new-promise-capability":303,"../internals/promise-constructor-detection":324}],375:[function(e,r,s){var i=e("../internals/export"),a=e("../internals/get-built-in"),o=e("../internals/is-pure"),l=e("../internals/promise-native-constructor"),c=e("../internals/promise-constructor-detection").CONSTRUCTOR,u=e("../internals/promise-resolve"),h=a("Promise"),d=o&&!c;i({target:"Promise",stat:!0,forced:o||c},{resolve:function(f){return u(d&&this===h?l:this,f)}})},{"../internals/export":259,"../internals/get-built-in":269,"../internals/is-pure":290,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325,"../internals/promise-resolve":326}],376:[function(e,r,s){var i=e("../internals/export"),a=e("../internals/function-uncurry-this"),o=e("../internals/to-absolute-index"),l=RangeError,c=String.fromCharCode,u=String.fromCodePoint,h=a([].join);i({target:"String",stat:!0,arity:1,forced:!!u&&u.length!==1},{fromCodePoint:function(d){for(var f,p=[],g=arguments.length,m=0;g>m;){if(f=+arguments[m++],o(f,1114111)!==f)throw new l(f+" is not a valid code point");p[m]=f<65536?c(f):c(55296+((f-=65536)>>10),f%1024+56320)}return h(p,"")}})},{"../internals/export":259,"../internals/function-uncurry-this":268,"../internals/to-absolute-index":340}],377:[function(e,r,s){var i=e("../internals/export"),a=e("../internals/function-uncurry-this"),o=e("../internals/not-a-regexp"),l=e("../internals/require-object-coercible"),c=e("../internals/to-string"),u=e("../internals/correct-is-regexp-logic"),h=a("".indexOf);i({target:"String",proto:!0,forced:!u("includes")},{includes:function(d){return!!~h(c(l(this)),c(o(d)),arguments.length>1?arguments[1]:void 0)}})},{"../internals/correct-is-regexp-logic":238,"../internals/export":259,"../internals/function-uncurry-this":268,"../internals/not-a-regexp":304,"../internals/require-object-coercible":329,"../internals/to-string":348}],378:[function(e,r,s){e("../internals/well-known-symbol-define")("asyncIterator")},{"../internals/well-known-symbol-define":355}],379:[function(e,r,s){var i=e("../internals/export"),a=e("../internals/global"),o=e("../internals/function-call"),l=e("../internals/function-uncurry-this"),c=e("../internals/is-pure"),u=e("../internals/descriptors"),h=e("../internals/symbol-constructor-detection"),d=e("../internals/fails"),f=e("../internals/has-own-property"),p=e("../internals/object-is-prototype-of"),g=e("../internals/an-object"),m=e("../internals/to-indexed-object"),b=e("../internals/to-property-key"),w=e("../internals/to-string"),_=e("../internals/create-property-descriptor"),T=e("../internals/object-create"),M=e("../internals/object-keys"),j=e("../internals/object-get-own-property-names"),A=e("../internals/object-get-own-property-names-external"),B=e("../internals/object-get-own-property-symbols"),H=e("../internals/object-get-own-property-descriptor"),U=e("../internals/object-define-property"),X=e("../internals/object-define-properties"),V=e("../internals/object-property-is-enumerable"),O=e("../internals/define-built-in"),N=e("../internals/define-built-in-accessor"),C=e("../internals/shared"),x=e("../internals/shared-key"),S=e("../internals/hidden-keys"),k=e("../internals/uid"),E=e("../internals/well-known-symbol"),I=e("../internals/well-known-symbol-wrapped"),D=e("../internals/well-known-symbol-define"),F=e("../internals/symbol-define-to-primitive"),Y=e("../internals/set-to-string-tag"),J=e("../internals/internal-state"),se=e("../internals/array-iteration").forEach,q=x("hidden"),ee=J.set,L=J.getterFor("Symbol"),P=Object.prototype,G=a.Symbol,ne=G&&G.prototype,ce=a.RangeError,ie=a.TypeError,ue=a.QObject,ve=H.f,we=U.f,le=A.f,me=V.f,ge=l([].push),ke=C("symbols"),xe=C("op-symbols"),Ee=C("wks"),Ie=!ue||!ue.prototype||!ue.prototype.findChild,Pe=function(Qe,Ve,it){var wt=ve(P,Ve);wt&&delete P[Ve],we(Qe,Ve,it),wt&&Qe!==P&&we(P,Ve,wt)},Ae=u&&d(function(){return T(we({},"a",{get:function(){return we(this,"a",{value:7}).a}})).a!==7})?Pe:we,Ge=function(Qe,Ve){var it=ke[Qe]=T(ne);return ee(it,{type:"Symbol",tag:Qe,description:Ve}),u||(it.description=Ve),it},st=function(Qe,Ve,it){Qe===P&&st(xe,Ve,it),g(Qe);var wt=b(Ve);return g(it),f(ke,wt)?(it.enumerable?(f(Qe,q)&&Qe[q][wt]&&(Qe[q][wt]=!1),it=T(it,{enumerable:_(0,!1)})):(f(Qe,q)||we(Qe,q,_(1,{})),Qe[q][wt]=!0),Ae(Qe,wt,it)):we(Qe,wt,it)},et=function(Qe,Ve){g(Qe);var it=m(Ve),wt=M(it).concat(yt(it));return se(wt,function(ct){u&&!o(Rt,it,ct)||st(Qe,ct,it[ct])}),Qe},Rt=function(Qe){var Ve=b(Qe),it=o(me,this,Ve);return!(this===P&&f(ke,Ve)&&!f(xe,Ve))&&(!(it||!f(this,Ve)||!f(ke,Ve)||f(this,q)&&this[q][Ve])||it)},_t=function(Qe,Ve){var it=m(Qe),wt=b(Ve);if(it!==P||!f(ke,wt)||f(xe,wt)){var ct=ve(it,wt);return!ct||!f(ke,wt)||f(it,q)&&it[q][wt]||(ct.enumerable=!0),ct}},xt=function(Qe){var Ve=le(m(Qe)),it=[];return se(Ve,function(wt){f(ke,wt)||f(S,wt)||ge(it,wt)}),it},yt=function(Qe){var Ve=Qe===P,it=le(Ve?xe:m(Qe)),wt=[];return se(it,function(ct){!f(ke,ct)||Ve&&!f(P,ct)||ge(wt,ke[ct])}),wt};h||(O(ne=(G=function(){if(p(ne,this))throw new ie("Symbol is not a constructor");var Qe=arguments.length&&arguments[0]!==void 0?w(arguments[0]):void 0,Ve=k(Qe),it=function(wt){this===P&&o(it,xe,wt),f(this,q)&&f(this[q],Ve)&&(this[q][Ve]=!1);var ct=_(1,wt);try{Ae(this,Ve,ct)}catch(dr){if(!(dr instanceof ce))throw dr;Pe(this,Ve,ct)}};return u&&Ie&&Ae(P,Ve,{configurable:!0,set:it}),Ge(Ve,Qe)}).prototype,"toString",function(){return L(this).tag}),O(G,"withoutSetter",function(Qe){return Ge(k(Qe),Qe)}),V.f=Rt,U.f=st,X.f=et,H.f=_t,j.f=A.f=xt,B.f=yt,I.f=function(Qe){return Ge(E(Qe),Qe)},u&&(N(ne,"description",{configurable:!0,get:function(){return L(this).description}}),c||O(P,"propertyIsEnumerable",Rt,{unsafe:!0}))),i({global:!0,constructor:!0,wrap:!0,forced:!h,sham:!h},{Symbol:G}),se(M(Ee),function(Qe){D(Qe)}),i({target:"Symbol",stat:!0,forced:!h},{useSetter:function(){Ie=!0},useSimple:function(){Ie=!1}}),i({target:"Object",stat:!0,forced:!h,sham:!u},{create:function(Qe,Ve){return Ve===void 0?T(Qe):et(T(Qe),Ve)},defineProperty:st,defineProperties:et,getOwnPropertyDescriptor:_t}),i({target:"Object",stat:!0,forced:!h},{getOwnPropertyNames:xt}),F(),Y(G,"Symbol"),S[q]=!0},{"../internals/an-object":227,"../internals/array-iteration":229,"../internals/create-property-descriptor":242,"../internals/define-built-in":245,"../internals/define-built-in-accessor":244,"../internals/descriptors":247,"../internals/export":259,"../internals/fails":260,"../internals/function-call":264,"../internals/function-uncurry-this":268,"../internals/global":274,"../internals/has-own-property":275,"../internals/hidden-keys":276,"../internals/internal-state":282,"../internals/is-pure":290,"../internals/object-create":306,"../internals/object-define-properties":307,"../internals/object-define-property":308,"../internals/object-get-own-property-descriptor":309,"../internals/object-get-own-property-names":311,"../internals/object-get-own-property-names-external":310,"../internals/object-get-own-property-symbols":312,"../internals/object-is-prototype-of":314,"../internals/object-keys":316,"../internals/object-property-is-enumerable":317,"../internals/set-to-string-tag":331,"../internals/shared":334,"../internals/shared-key":332,"../internals/symbol-constructor-detection":336,"../internals/symbol-define-to-primitive":337,"../internals/to-indexed-object":341,"../internals/to-property-key":346,"../internals/to-string":348,"../internals/uid":350,"../internals/well-known-symbol":357,"../internals/well-known-symbol-define":355,"../internals/well-known-symbol-wrapped":356}],380:[function(e,r,s){var i=e("../internals/export"),a=e("../internals/get-built-in"),o=e("../internals/has-own-property"),l=e("../internals/to-string"),c=e("../internals/shared"),u=e("../internals/symbol-registry-detection"),h=c("string-to-symbol-registry"),d=c("symbol-to-string-registry");i({target:"Symbol",stat:!0,forced:!u},{for:function(f){var p=l(f);if(o(h,p))return h[p];var g=a("Symbol")(p);return h[p]=g,d[g]=p,g}})},{"../internals/export":259,"../internals/get-built-in":269,"../internals/has-own-property":275,"../internals/shared":334,"../internals/symbol-registry-detection":338,"../internals/to-string":348}],381:[function(e,r,s){e("../modules/es.symbol.constructor"),e("../modules/es.symbol.for"),e("../modules/es.symbol.key-for"),e("../modules/es.json.stringify"),e("../modules/es.object.get-own-property-symbols")},{"../modules/es.json.stringify":362,"../modules/es.object.get-own-property-symbols":365,"../modules/es.symbol.constructor":379,"../modules/es.symbol.for":380,"../modules/es.symbol.key-for":382}],382:[function(e,r,s){var i=e("../internals/export"),a=e("../internals/has-own-property"),o=e("../internals/is-symbol"),l=e("../internals/try-to-string"),c=e("../internals/shared"),u=e("../internals/symbol-registry-detection"),h=c("symbol-to-string-registry");i({target:"Symbol",stat:!0,forced:!u},{keyFor:function(d){if(!o(d))throw new TypeError(l(d)+" is not a symbol");if(a(h,d))return h[d]}})},{"../internals/export":259,"../internals/has-own-property":275,"../internals/is-symbol":292,"../internals/shared":334,"../internals/symbol-registry-detection":338,"../internals/try-to-string":349}],383:[function(e,r,s){function i(a){return Object.prototype.toString.call(a)}s.isArray=function(a){return Array.isArray?Array.isArray(a):i(a)==="[object Array]"},s.isBoolean=function(a){return typeof a=="boolean"},s.isNull=function(a){return a===null},s.isNullOrUndefined=function(a){return a==null},s.isNumber=function(a){return typeof a=="number"},s.isString=function(a){return typeof a=="string"},s.isSymbol=function(a){return typeof a=="symbol"},s.isUndefined=function(a){return a===void 0},s.isRegExp=function(a){return i(a)==="[object RegExp]"},s.isObject=function(a){return typeof a=="object"&&a!==null},s.isDate=function(a){return i(a)==="[object Date]"},s.isError=function(a){return i(a)==="[object Error]"||a instanceof Error},s.isFunction=function(a){return typeof a=="function"},s.isPrimitive=function(a){return a===null||typeof a=="boolean"||typeof a=="number"||typeof a=="string"||typeof a=="symbol"||a===void 0},s.isBuffer=e("buffer").Buffer.isBuffer},{buffer:220}],384:[function(e,r,s){(function(i){(function(){var a=e("elliptic"),o=e("bn.js");r.exports=function(h){return new c(h)};var l={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}};function c(h){this.curveType=l[h],this.curveType||(this.curveType={name:h}),this.curve=new a.ec(this.curveType.name),this.keys=void 0}function u(h,d,f){Array.isArray(h)||(h=h.toArray());var p=new i(h);if(f&&p.length<f){var g=new i(f-p.length);g.fill(0),p=i.concat([g,p])}return d?p.toString(d):p}l.p224=l.secp224r1,l.p256=l.secp256r1=l.prime256v1,l.p192=l.secp192r1=l.prime192v1,l.p384=l.secp384r1,l.p521=l.secp521r1,c.prototype.generateKeys=function(h,d){return this.keys=this.curve.genKeyPair(),this.getPublicKey(h,d)},c.prototype.computeSecret=function(h,d,f){return d=d||"utf8",i.isBuffer(h)||(h=new i(h,d)),u(this.curve.keyFromPublic(h).getPublic().mul(this.keys.getPrivate()).getX(),f,this.curveType.byteLength)},c.prototype.getPublicKey=function(h,d){var f=this.keys.getPublic(d==="compressed",!0);return d==="hybrid"&&(f[f.length-1]%2?f[0]=7:f[0]=6),u(f,h)},c.prototype.getPrivateKey=function(h){return u(this.keys.getPrivate(),h)},c.prototype.setPublicKey=function(h,d){return d=d||"utf8",i.isBuffer(h)||(h=new i(h,d)),this.keys._importPublic(h),this},c.prototype.setPrivateKey=function(h,d){d=d||"utf8",i.isBuffer(h)||(h=new i(h,d));var f=new o(h);return f=f.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(f),this}}).call(this)}).call(this,e("buffer").Buffer)},{"bn.js":385,buffer:220,elliptic:405}],385:[function(e,r,s){arguments[4][184][0].apply(s,arguments)},{buffer:188,dup:184}],386:[function(e,r,s){var i=e("inherits"),a=e("md5.js"),o=e("ripemd160"),l=e("sha.js"),c=e("cipher-base");function u(h){c.call(this,"digest"),this._hash=h}i(u,c),u.prototype._update=function(h){this._hash.update(h)},u.prototype._final=function(){return this._hash.digest()},r.exports=function(h){return(h=h.toLowerCase())==="md5"?new a:h==="rmd160"||h==="ripemd160"?new o:new u(l(h))}},{"cipher-base":221,inherits:440,"md5.js":450,ripemd160:493,"sha.js":498}],387:[function(e,r,s){var i=e("md5.js");r.exports=function(a){return new i().update(a).digest()}},{"md5.js":450}],388:[function(e,r,s){var i=e("inherits"),a=e("./legacy"),o=e("cipher-base"),l=e("safe-buffer").Buffer,c=e("create-hash/md5"),u=e("ripemd160"),h=e("sha.js"),d=l.alloc(128);function f(p,g){o.call(this,"digest"),typeof g=="string"&&(g=l.from(g));var m=p==="sha512"||p==="sha384"?128:64;this._alg=p,this._key=g,g.length>m?g=(p==="rmd160"?new u:h(p)).update(g).digest():g.length<m&&(g=l.concat([g,d],m));for(var b=this._ipad=l.allocUnsafe(m),w=this._opad=l.allocUnsafe(m),_=0;_<m;_++)b[_]=54^g[_],w[_]=92^g[_];this._hash=p==="rmd160"?new u:h(p),this._hash.update(b)}i(f,o),f.prototype._update=function(p){this._hash.update(p)},f.prototype._final=function(){var p=this._hash.digest();return(this._alg==="rmd160"?new u:h(this._alg)).update(this._opad).update(p).digest()},r.exports=function(p,g){return(p=p.toLowerCase())==="rmd160"||p==="ripemd160"?new f("rmd160",g):p==="md5"?new a(c,g):new f(p,g)}},{"./legacy":389,"cipher-base":221,"create-hash/md5":387,inherits:440,ripemd160:493,"safe-buffer":494,"sha.js":498}],389:[function(e,r,s){var i=e("inherits"),a=e("safe-buffer").Buffer,o=e("cipher-base"),l=a.alloc(128);function c(u,h){o.call(this,"digest"),typeof h=="string"&&(h=a.from(h)),this._alg=u,this._key=h,h.length>64?h=u(h):h.length<64&&(h=a.concat([h,l],64));for(var d=this._ipad=a.allocUnsafe(64),f=this._opad=a.allocUnsafe(64),p=0;p<64;p++)d[p]=54^h[p],f[p]=92^h[p];this._hash=[d]}i(c,o),c.prototype._update=function(u){this._hash.push(u)},c.prototype._final=function(){var u=this._alg(a.concat(this._hash));return this._alg(a.concat([this._opad,u]))},r.exports=c},{"cipher-base":221,inherits:440,"safe-buffer":494}],390:[function(e,r,s){s.randomBytes=s.rng=s.pseudoRandomBytes=s.prng=e("randombytes"),s.createHash=s.Hash=e("create-hash"),s.createHmac=s.Hmac=e("create-hmac");var i=e("browserify-sign/algos"),a=Object.keys(i),o=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(a);s.getHashes=function(){return o};var l=e("pbkdf2");s.pbkdf2=l.pbkdf2,s.pbkdf2Sync=l.pbkdf2Sync;var c=e("browserify-cipher");s.Cipher=c.Cipher,s.createCipher=c.createCipher,s.Cipheriv=c.Cipheriv,s.createCipheriv=c.createCipheriv,s.Decipher=c.Decipher,s.createDecipher=c.createDecipher,s.Decipheriv=c.Decipheriv,s.createDecipheriv=c.createDecipheriv,s.getCiphers=c.getCiphers,s.listCiphers=c.listCiphers;var u=e("diffie-hellman");s.DiffieHellmanGroup=u.DiffieHellmanGroup,s.createDiffieHellmanGroup=u.createDiffieHellmanGroup,s.getDiffieHellman=u.getDiffieHellman,s.createDiffieHellman=u.createDiffieHellman,s.DiffieHellman=u.DiffieHellman;var h=e("browserify-sign");s.createSign=h.createSign,s.Sign=h.Sign,s.createVerify=h.createVerify,s.Verify=h.Verify,s.createECDH=e("create-ecdh");var d=e("public-encrypt");s.publicEncrypt=d.publicEncrypt,s.privateEncrypt=d.privateEncrypt,s.publicDecrypt=d.publicDecrypt,s.privateDecrypt=d.privateDecrypt;var f=e("randomfill");s.randomFill=f.randomFill,s.randomFillSync=f.randomFillSync,s.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join(`
434
434
  `))},s.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}},{"browserify-cipher":206,"browserify-sign":213,"browserify-sign/algos":210,"create-ecdh":384,"create-hash":386,"create-hmac":388,"diffie-hellman":400,pbkdf2:460,"public-encrypt":468,randombytes:475,randomfill:476}],391:[function(e,r,s){(function(i,a){typeof s=="object"&&r!==void 0?r.exports=a():(i=typeof globalThis<"u"?globalThis:i||self).dayjs=a()})(void 0,function(){var i=6e4,a=36e5,o="millisecond",l="second",c="minute",u="hour",h="day",d="week",f="month",p="quarter",g="year",m="date",b="Invalid Date",w=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,_=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,T={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(x){var S=["th","st","nd","rd"],k=x%100;return"["+x+(S[(k-20)%10]||S[k]||S[0])+"]"}},M=function(x,S,k){var E=String(x);return!E||E.length>=S?x:""+Array(S+1-E.length).join(k)+x},j={s:M,z:function(x){var S=-x.utcOffset(),k=Math.abs(S),E=Math.floor(k/60),I=k%60;return(S<=0?"+":"-")+M(E,2,"0")+":"+M(I,2,"0")},m:function x(S,k){if(S.date()<k.date())return-x(k,S);var E=12*(k.year()-S.year())+(k.month()-S.month()),I=S.clone().add(E,f),D=k-I<0,F=S.clone().add(E+(D?-1:1),f);return+(-(E+(k-I)/(D?I-F:F-I))||0)},a:function(x){return x<0?Math.ceil(x)||0:Math.floor(x)},p:function(x){return{M:f,y:g,w:d,d:h,D:m,h:u,m:c,s:l,ms:o,Q:p}[x]||String(x||"").toLowerCase().replace(/s$/,"")},u:function(x){return x===void 0}},A="en",B={};B[A]=T;var H="$isDayjsObject",U=function(x){return x instanceof N||!(!x||!x[H])},X=function x(S,k,E){var I;if(!S)return A;if(typeof S=="string"){var D=S.toLowerCase();B[D]&&(I=D),k&&(B[D]=k,I=D);var F=S.split("-");if(!I&&F.length>1)return x(F[0])}else{var Y=S.name;B[Y]=S,I=Y}return!E&&I&&(A=I),I||!E&&A},V=function(x,S){if(U(x))return x.clone();var k=typeof S=="object"?S:{};return k.date=x,k.args=arguments,new N(k)},O=j;O.l=X,O.i=U,O.w=function(x,S){return V(x,{locale:S.$L,utc:S.$u,x:S.$x,$offset:S.$offset})};var N=function(){function x(k){this.$L=X(k.locale,null,!0),this.parse(k),this.$x=this.$x||k.x||{},this[H]=!0}var S=x.prototype;return S.parse=function(k){this.$d=function(E){var I=E.date,D=E.utc;if(I===null)return new Date(NaN);if(O.u(I))return new Date;if(I instanceof Date)return new Date(I);if(typeof I=="string"&&!/Z$/i.test(I)){var F=I.match(w);if(F){var Y=F[2]-1||0,J=(F[7]||"0").substring(0,3);return D?new Date(Date.UTC(F[1],Y,F[3]||1,F[4]||0,F[5]||0,F[6]||0,J)):new Date(F[1],Y,F[3]||1,F[4]||0,F[5]||0,F[6]||0,J)}}return new Date(I)}(k),this.init()},S.init=function(){var k=this.$d;this.$y=k.getFullYear(),this.$M=k.getMonth(),this.$D=k.getDate(),this.$W=k.getDay(),this.$H=k.getHours(),this.$m=k.getMinutes(),this.$s=k.getSeconds(),this.$ms=k.getMilliseconds()},S.$utils=function(){return O},S.isValid=function(){return this.$d.toString()!==b},S.isSame=function(k,E){var I=V(k);return this.startOf(E)<=I&&I<=this.endOf(E)},S.isAfter=function(k,E){return V(k)<this.startOf(E)},S.isBefore=function(k,E){return this.endOf(E)<V(k)},S.$g=function(k,E,I){return O.u(k)?this[E]:this.set(I,k)},S.unix=function(){return Math.floor(this.valueOf()/1e3)},S.valueOf=function(){return this.$d.getTime()},S.startOf=function(k,E){var I=this,D=!!O.u(E)||E,F=O.p(k),Y=function(ne,ce){var ie=O.w(I.$u?Date.UTC(I.$y,ce,ne):new Date(I.$y,ce,ne),I);return D?ie:ie.endOf(h)},J=function(ne,ce){return O.w(I.toDate()[ne].apply(I.toDate("s"),(D?[0,0,0,0]:[23,59,59,999]).slice(ce)),I)},se=this.$W,q=this.$M,ee=this.$D,L="set"+(this.$u?"UTC":"");switch(F){case g:return D?Y(1,0):Y(31,11);case f:return D?Y(1,q):Y(0,q+1);case d:var P=this.$locale().weekStart||0,G=(se<P?se+7:se)-P;return Y(D?ee-G:ee+(6-G),q);case h:case m:return J(L+"Hours",0);case u:return J(L+"Minutes",1);case c:return J(L+"Seconds",2);case l:return J(L+"Milliseconds",3);default:return this.clone()}},S.endOf=function(k){return this.startOf(k,!1)},S.$set=function(k,E){var I,D=O.p(k),F="set"+(this.$u?"UTC":""),Y=(I={},I[h]=F+"Date",I[m]=F+"Date",I[f]=F+"Month",I[g]=F+"FullYear",I[u]=F+"Hours",I[c]=F+"Minutes",I[l]=F+"Seconds",I[o]=F+"Milliseconds",I)[D],J=D===h?this.$D+(E-this.$W):E;if(D===f||D===g){var se=this.clone().set(m,1);se.$d[Y](J),se.init(),this.$d=se.set(m,Math.min(this.$D,se.daysInMonth())).$d}else Y&&this.$d[Y](J);return this.init(),this},S.set=function(k,E){return this.clone().$set(k,E)},S.get=function(k){return this[O.p(k)]()},S.add=function(k,E){var I,D=this;k=Number(k);var F=O.p(E),Y=function(q){var ee=V(D);return O.w(ee.date(ee.date()+Math.round(q*k)),D)};if(F===f)return this.set(f,this.$M+k);if(F===g)return this.set(g,this.$y+k);if(F===h)return Y(1);if(F===d)return Y(7);var J=(I={},I[c]=i,I[u]=a,I[l]=1e3,I)[F]||1,se=this.$d.getTime()+k*J;return O.w(se,this)},S.subtract=function(k,E){return this.add(-1*k,E)},S.format=function(k){var E=this,I=this.$locale();if(!this.isValid())return I.invalidDate||b;var D=k||"YYYY-MM-DDTHH:mm:ssZ",F=O.z(this),Y=this.$H,J=this.$m,se=this.$M,q=I.weekdays,ee=I.months,L=I.meridiem,P=function(ce,ie,ue,ve){return ce&&(ce[ie]||ce(E,D))||ue[ie].slice(0,ve)},G=function(ce){return O.s(Y%12||12,ce,"0")},ne=L||function(ce,ie,ue){var ve=ce<12?"AM":"PM";return ue?ve.toLowerCase():ve};return D.replace(_,function(ce,ie){return ie||function(ue){switch(ue){case"YY":return String(E.$y).slice(-2);case"YYYY":return O.s(E.$y,4,"0");case"M":return se+1;case"MM":return O.s(se+1,2,"0");case"MMM":return P(I.monthsShort,se,ee,3);case"MMMM":return P(ee,se);case"D":return E.$D;case"DD":return O.s(E.$D,2,"0");case"d":return String(E.$W);case"dd":return P(I.weekdaysMin,E.$W,q,2);case"ddd":return P(I.weekdaysShort,E.$W,q,3);case"dddd":return q[E.$W];case"H":return String(Y);case"HH":return O.s(Y,2,"0");case"h":return G(1);case"hh":return G(2);case"a":return ne(Y,J,!0);case"A":return ne(Y,J,!1);case"m":return String(J);case"mm":return O.s(J,2,"0");case"s":return String(E.$s);case"ss":return O.s(E.$s,2,"0");case"SSS":return O.s(E.$ms,3,"0");case"Z":return F}return null}(ce)||F.replace(":","")})},S.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},S.diff=function(k,E,I){var D,F=this,Y=O.p(E),J=V(k),se=(J.utcOffset()-this.utcOffset())*i,q=this-J,ee=function(){return O.m(F,J)};switch(Y){case g:D=ee()/12;break;case f:D=ee();break;case p:D=ee()/3;break;case d:D=(q-se)/6048e5;break;case h:D=(q-se)/864e5;break;case u:D=q/a;break;case c:D=q/i;break;case l:D=q/1e3;break;default:D=q}return I?D:O.a(D)},S.daysInMonth=function(){return this.endOf(f).$D},S.$locale=function(){return B[this.$L]},S.locale=function(k,E){if(!k)return this.$L;var I=this.clone(),D=X(k,E,!0);return D&&(I.$L=D),I},S.clone=function(){return O.w(this.$d,this)},S.toDate=function(){return new Date(this.valueOf())},S.toJSON=function(){return this.isValid()?this.toISOString():null},S.toISOString=function(){return this.$d.toISOString()},S.toString=function(){return this.$d.toUTCString()},x}(),C=N.prototype;return V.prototype=C,[["$ms",o],["$s",l],["$m",c],["$H",u],["$W",h],["$M",f],["$y",g],["$D",m]].forEach(function(x){C[x[1]]=function(S){return this.$g(S,x[0],x[1])}}),V.extend=function(x,S){return x.$i||(x(S,N,V),x.$i=!0),V},V.locale=X,V.isDayjs=U,V.unix=function(x){return V(1e3*x)},V.en=B[A],V.Ls=B,V.p={},V})},{}],392:[function(e,r,s){(function(i,a){typeof s=="object"&&r!==void 0?r.exports=a():(i=typeof globalThis<"u"?globalThis:i||self).dayjs_plugin_customParseFormat=a()})(void 0,function(){var i={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},a=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d\d/,l=/\d\d?/,c=/\d*[^-_:/,()\s\d]+/,u={},h=function(w){return(w=+w)+(w>68?1900:2e3)},d=function(w){return function(_){this[w]=+_}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(w){(this.zone||(this.zone={})).offset=function(_){if(!_||_==="Z")return 0;var T=_.match(/([+-]|\d\d)/g),M=60*T[1]+(+T[2]||0);return M===0?0:T[0]==="+"?-M:M}(w)}],p=function(w){var _=u[w];return _&&(_.indexOf?_:_.s.concat(_.f))},g=function(w,_){var T,M=u.meridiem;if(M){for(var j=1;j<=24;j+=1)if(w.indexOf(M(j,0,_))>-1){T=j>12;break}}else T=w===(_?"pm":"PM");return T},m={A:[c,function(w){this.afternoon=g(w,!1)}],a:[c,function(w){this.afternoon=g(w,!0)}],S:[/\d/,function(w){this.milliseconds=100*+w}],SS:[o,function(w){this.milliseconds=10*+w}],SSS:[/\d{3}/,function(w){this.milliseconds=+w}],s:[l,d("seconds")],ss:[l,d("seconds")],m:[l,d("minutes")],mm:[l,d("minutes")],H:[l,d("hours")],h:[l,d("hours")],HH:[l,d("hours")],hh:[l,d("hours")],D:[l,d("day")],DD:[o,d("day")],Do:[c,function(w){var _=u.ordinal,T=w.match(/\d+/);if(this.day=T[0],_)for(var M=1;M<=31;M+=1)_(M).replace(/\[|\]/g,"")===w&&(this.day=M)}],M:[l,d("month")],MM:[o,d("month")],MMM:[c,function(w){var _=p("months"),T=(p("monthsShort")||_.map(function(M){return M.slice(0,3)})).indexOf(w)+1;if(T<1)throw new Error;this.month=T%12||T}],MMMM:[c,function(w){var _=p("months").indexOf(w)+1;if(_<1)throw new Error;this.month=_%12||_}],Y:[/[+-]?\d+/,d("year")],YY:[o,function(w){this.year=h(w)}],YYYY:[/\d{4}/,d("year")],Z:f,ZZ:f};function b(w){var _,T;_=w,T=u&&u.formats;for(var M=(w=_.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(V,O,N){var C=N&&N.toUpperCase();return O||T[N]||i[N]||T[C].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(x,S,k){return S||k.slice(1)})})).match(a),j=M.length,A=0;A<j;A+=1){var B=M[A],H=m[B],U=H&&H[0],X=H&&H[1];M[A]=X?{regex:U,parser:X}:B.replace(/^\[|\]$/g,"")}return function(V){for(var O={},N=0,C=0;N<j;N+=1){var x=M[N];if(typeof x=="string")C+=x.length;else{var S=x.regex,k=x.parser,E=V.slice(C),I=S.exec(E)[0];k.call(O,I),V=V.replace(I,"")}}return function(D){var F=D.afternoon;if(F!==void 0){var Y=D.hours;F?Y<12&&(D.hours+=12):Y===12&&(D.hours=0),delete D.afternoon}}(O),O}}return function(w,_,T){T.p.customParseFormat=!0,w&&w.parseTwoDigitYear&&(h=w.parseTwoDigitYear);var M=_.prototype,j=M.parse;M.parse=function(A){var B=A.date,H=A.utc,U=A.args;this.$u=H;var X=U[1];if(typeof X=="string"){var V=U[2]===!0,O=U[3]===!0,N=V||O,C=U[2];O&&(C=U[2]),u=this.$locale(),!V&&C&&(u=T.Ls[C]),this.$d=function(E,I,D){try{if(["x","X"].indexOf(I)>-1)return new Date((I==="X"?1e3:1)*E);var F=b(I)(E),Y=F.year,J=F.month,se=F.day,q=F.hours,ee=F.minutes,L=F.seconds,P=F.milliseconds,G=F.zone,ne=new Date,ce=se||(Y||J?1:ne.getDate()),ie=Y||ne.getFullYear(),ue=0;Y&&!J||(ue=J>0?J-1:ne.getMonth());var ve=q||0,we=ee||0,le=L||0,me=P||0;return G?new Date(Date.UTC(ie,ue,ce,ve,we,le,me+60*G.offset*1e3)):D?new Date(Date.UTC(ie,ue,ce,ve,we,le,me)):new Date(ie,ue,ce,ve,we,le,me)}catch{return new Date("")}}(B,X,H),this.init(),C&&C!==!0&&(this.$L=this.locale(C).$L),N&&B!=this.format(X)&&(this.$d=new Date("")),u={}}else if(X instanceof Array)for(var x=X.length,S=1;S<=x;S+=1){U[1]=X[S-1];var k=T.apply(this,U);if(k.isValid()){this.$d=k.$d,this.$L=k.$L,this.init();break}S===x&&(this.$d=new Date(""))}else j.call(this,A)}}})},{}],393:[function(e,r,s){(function(i,a){typeof s=="object"&&r!==void 0?r.exports=a():(i=typeof globalThis<"u"?globalThis:i||self).dayjs_plugin_utc=a()})(void 0,function(){var i="minute",a=/[+-]\d\d(?::?\d\d)?/g,o=/([+-]|\d\d)/g;return function(l,c,u){var h=c.prototype;u.utc=function(w){var _={date:w,utc:!0,args:arguments};return new c(_)},h.utc=function(w){var _=u(this.toDate(),{locale:this.$L,utc:!0});return w?_.add(this.utcOffset(),i):_},h.local=function(){return u(this.toDate(),{locale:this.$L,utc:!1})};var d=h.parse;h.parse=function(w){w.utc&&(this.$u=!0),this.$utils().u(w.$offset)||(this.$offset=w.$offset),d.call(this,w)};var f=h.init;h.init=function(){if(this.$u){var w=this.$d;this.$y=w.getUTCFullYear(),this.$M=w.getUTCMonth(),this.$D=w.getUTCDate(),this.$W=w.getUTCDay(),this.$H=w.getUTCHours(),this.$m=w.getUTCMinutes(),this.$s=w.getUTCSeconds(),this.$ms=w.getUTCMilliseconds()}else f.call(this)};var p=h.utcOffset;h.utcOffset=function(w,_){var T=this.$utils().u;if(T(w))return this.$u?0:T(this.$offset)?p.call(this):this.$offset;if(typeof w=="string"&&(w=function(B){B===void 0&&(B="");var H=B.match(a);if(!H)return null;var U=(""+H[0]).match(o)||["-",0,0],X=U[0],V=60*+U[1]+ +U[2];return V===0?0:X==="+"?V:-V}(w))===null)return this;var M=Math.abs(w)<=16?60*w:w,j=this;if(_)return j.$offset=M,j.$u=w===0,j;if(w!==0){var A=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(j=this.local().add(M+A,i)).$offset=M,j.$x.$localOffset=A}else j=this.utc();return j};var g=h.format;h.format=function(w){var _=w||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return g.call(this,_)},h.valueOf=function(){var w=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*w},h.isUTC=function(){return!!this.$u},h.toISOString=function(){return this.toDate().toISOString()},h.toString=function(){return this.toDate().toUTCString()};var m=h.toDate;h.toDate=function(w){return w==="s"&&this.$offset?u(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():m.call(this)};var b=h.diff;h.diff=function(w,_,T){if(w&&this.$u===w.$u)return b.call(this,w,_,T);var M=this.local(),j=u(w).local();return b.call(M,j,_,T)}}})},{}],394:[function(e,r,s){s.utils=e("./des/utils"),s.Cipher=e("./des/cipher"),s.DES=e("./des/des"),s.CBC=e("./des/cbc"),s.EDE=e("./des/ede")},{"./des/cbc":395,"./des/cipher":396,"./des/des":397,"./des/ede":398,"./des/utils":399}],395:[function(e,r,s){var i=e("minimalistic-assert"),a=e("inherits"),o={};function l(c){i.equal(c.length,8,"Invalid IV length"),this.iv=new Array(8);for(var u=0;u<this.iv.length;u++)this.iv[u]=c[u]}s.instantiate=function(c){function u(p){c.call(this,p),this._cbcInit()}a(u,c);for(var h=Object.keys(o),d=0;d<h.length;d++){var f=h[d];u.prototype[f]=o[f]}return u.create=function(p){return new u(p)},u},o._cbcInit=function(){var c=new l(this.options.iv);this._cbcState=c},o._update=function(c,u,h,d){var f=this._cbcState,p=this.constructor.super_.prototype,g=f.iv;if(this.type==="encrypt"){for(var m=0;m<this.blockSize;m++)g[m]^=c[u+m];for(p._update.call(this,g,0,h,d),m=0;m<this.blockSize;m++)g[m]=h[d+m]}else{for(p._update.call(this,c,u,h,d),m=0;m<this.blockSize;m++)h[d+m]^=g[m];for(m=0;m<this.blockSize;m++)g[m]=c[u+m]}}},{inherits:440,"minimalistic-assert":453}],396:[function(e,r,s){var i=e("minimalistic-assert");function a(o){this.options=o,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0,this.padding=o.padding!==!1}r.exports=a,a.prototype._init=function(){},a.prototype.update=function(o){return o.length===0?[]:this.type==="decrypt"?this._updateDecrypt(o):this._updateEncrypt(o)},a.prototype._buffer=function(o,l){for(var c=Math.min(this.buffer.length-this.bufferOff,o.length-l),u=0;u<c;u++)this.buffer[this.bufferOff+u]=o[l+u];return this.bufferOff+=c,c},a.prototype._flushBuffer=function(o,l){return this._update(this.buffer,0,o,l),this.bufferOff=0,this.blockSize},a.prototype._updateEncrypt=function(o){var l=0,c=0,u=(this.bufferOff+o.length)/this.blockSize|0,h=new Array(u*this.blockSize);this.bufferOff!==0&&(l+=this._buffer(o,l),this.bufferOff===this.buffer.length&&(c+=this._flushBuffer(h,c)));for(var d=o.length-(o.length-l)%this.blockSize;l<d;l+=this.blockSize)this._update(o,l,h,c),c+=this.blockSize;for(;l<o.length;l++,this.bufferOff++)this.buffer[this.bufferOff]=o[l];return h},a.prototype._updateDecrypt=function(o){for(var l=0,c=0,u=Math.ceil((this.bufferOff+o.length)/this.blockSize)-1,h=new Array(u*this.blockSize);u>0;u--)l+=this._buffer(o,l),c+=this._flushBuffer(h,c);return l+=this._buffer(o,l),h},a.prototype.final=function(o){var l,c;return o&&(l=this.update(o)),c=this.type==="encrypt"?this._finalEncrypt():this._finalDecrypt(),l?l.concat(c):c},a.prototype._pad=function(o,l){if(l===0)return!1;for(;l<o.length;)o[l++]=0;return!0},a.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var o=new Array(this.blockSize);return this._update(this.buffer,0,o,0),o},a.prototype._unpad=function(o){return o},a.prototype._finalDecrypt=function(){i.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var o=new Array(this.blockSize);return this._flushBuffer(o,0),this._unpad(o)}},{"minimalistic-assert":453}],397:[function(e,r,s){var i=e("minimalistic-assert"),a=e("inherits"),o=e("./utils"),l=e("./cipher");function c(){this.tmp=new Array(2),this.keys=null}function u(d){l.call(this,d);var f=new c;this._desState=f,this.deriveKeys(f,d.key)}a(u,l),r.exports=u,u.create=function(d){return new u(d)};var h=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];u.prototype.deriveKeys=function(d,f){d.keys=new Array(32),i.equal(f.length,this.blockSize,"Invalid key length");var p=o.readUInt32BE(f,0),g=o.readUInt32BE(f,4);o.pc1(p,g,d.tmp,0),p=d.tmp[0],g=d.tmp[1];for(var m=0;m<d.keys.length;m+=2){var b=h[m>>>1];p=o.r28shl(p,b),g=o.r28shl(g,b),o.pc2(p,g,d.keys,m)}},u.prototype._update=function(d,f,p,g){var m=this._desState,b=o.readUInt32BE(d,f),w=o.readUInt32BE(d,f+4);o.ip(b,w,m.tmp,0),b=m.tmp[0],w=m.tmp[1],this.type==="encrypt"?this._encrypt(m,b,w,m.tmp,0):this._decrypt(m,b,w,m.tmp,0),b=m.tmp[0],w=m.tmp[1],o.writeUInt32BE(p,b,g),o.writeUInt32BE(p,w,g+4)},u.prototype._pad=function(d,f){if(this.padding===!1)return!1;for(var p=d.length-f,g=f;g<d.length;g++)d[g]=p;return!0},u.prototype._unpad=function(d){if(this.padding===!1)return d;for(var f=d[d.length-1],p=d.length-f;p<d.length;p++)i.equal(d[p],f);return d.slice(0,d.length-f)},u.prototype._encrypt=function(d,f,p,g,m){for(var b=f,w=p,_=0;_<d.keys.length;_+=2){var T=d.keys[_],M=d.keys[_+1];o.expand(w,d.tmp,0),T^=d.tmp[0],M^=d.tmp[1];var j=o.substitute(T,M),A=w;w=(b^o.permute(j))>>>0,b=A}o.rip(w,b,g,m)},u.prototype._decrypt=function(d,f,p,g,m){for(var b=p,w=f,_=d.keys.length-2;_>=0;_-=2){var T=d.keys[_],M=d.keys[_+1];o.expand(b,d.tmp,0),T^=d.tmp[0],M^=d.tmp[1];var j=o.substitute(T,M),A=b;b=(w^o.permute(j))>>>0,w=A}o.rip(b,w,g,m)}},{"./cipher":396,"./utils":399,inherits:440,"minimalistic-assert":453}],398:[function(e,r,s){var i=e("minimalistic-assert"),a=e("inherits"),o=e("./cipher"),l=e("./des");function c(h,d){i.equal(d.length,24,"Invalid key length");var f=d.slice(0,8),p=d.slice(8,16),g=d.slice(16,24);this.ciphers=h==="encrypt"?[l.create({type:"encrypt",key:f}),l.create({type:"decrypt",key:p}),l.create({type:"encrypt",key:g})]:[l.create({type:"decrypt",key:g}),l.create({type:"encrypt",key:p}),l.create({type:"decrypt",key:f})]}function u(h){o.call(this,h);var d=new c(this.type,this.options.key);this._edeState=d}a(u,o),r.exports=u,u.create=function(h){return new u(h)},u.prototype._update=function(h,d,f,p){var g=this._edeState;g.ciphers[0]._update(h,d,f,p),g.ciphers[1]._update(f,p,f,p),g.ciphers[2]._update(f,p,f,p)},u.prototype._pad=l.prototype._pad,u.prototype._unpad=l.prototype._unpad},{"./cipher":396,"./des":397,inherits:440,"minimalistic-assert":453}],399:[function(e,r,s){s.readUInt32BE=function(l,c){return(l[0+c]<<24|l[1+c]<<16|l[2+c]<<8|l[3+c])>>>0},s.writeUInt32BE=function(l,c,u){l[0+u]=c>>>24,l[1+u]=c>>>16&255,l[2+u]=c>>>8&255,l[3+u]=255&c},s.ip=function(l,c,u,h){for(var d=0,f=0,p=6;p>=0;p-=2){for(var g=0;g<=24;g+=8)d<<=1,d|=c>>>g+p&1;for(g=0;g<=24;g+=8)d<<=1,d|=l>>>g+p&1}for(p=6;p>=0;p-=2){for(g=1;g<=25;g+=8)f<<=1,f|=c>>>g+p&1;for(g=1;g<=25;g+=8)f<<=1,f|=l>>>g+p&1}u[h+0]=d>>>0,u[h+1]=f>>>0},s.rip=function(l,c,u,h){for(var d=0,f=0,p=0;p<4;p++)for(var g=24;g>=0;g-=8)d<<=1,d|=c>>>g+p&1,d<<=1,d|=l>>>g+p&1;for(p=4;p<8;p++)for(g=24;g>=0;g-=8)f<<=1,f|=c>>>g+p&1,f<<=1,f|=l>>>g+p&1;u[h+0]=d>>>0,u[h+1]=f>>>0},s.pc1=function(l,c,u,h){for(var d=0,f=0,p=7;p>=5;p--){for(var g=0;g<=24;g+=8)d<<=1,d|=c>>g+p&1;for(g=0;g<=24;g+=8)d<<=1,d|=l>>g+p&1}for(g=0;g<=24;g+=8)d<<=1,d|=c>>g+p&1;for(p=1;p<=3;p++){for(g=0;g<=24;g+=8)f<<=1,f|=c>>g+p&1;for(g=0;g<=24;g+=8)f<<=1,f|=l>>g+p&1}for(g=0;g<=24;g+=8)f<<=1,f|=l>>g+p&1;u[h+0]=d>>>0,u[h+1]=f>>>0},s.r28shl=function(l,c){return l<<c&268435455|l>>>28-c};var i=[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];s.pc2=function(l,c,u,h){for(var d=0,f=0,p=i.length>>>1,g=0;g<p;g++)d<<=1,d|=l>>>i[g]&1;for(g=p;g<i.length;g++)f<<=1,f|=c>>>i[g]&1;u[h+0]=d>>>0,u[h+1]=f>>>0},s.expand=function(l,c,u){var h=0,d=0;h=(1&l)<<5|l>>>27;for(var f=23;f>=15;f-=4)h<<=6,h|=l>>>f&63;for(f=11;f>=3;f-=4)d|=l>>>f&63,d<<=6;d|=(31&l)<<1|l>>>31,c[u+0]=h>>>0,c[u+1]=d>>>0};var a=[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];s.substitute=function(l,c){for(var u=0,h=0;h<4;h++)u<<=4,u|=a[64*h+(l>>>18-6*h&63)];for(h=0;h<4;h++)u<<=4,u|=a[256+64*h+(c>>>18-6*h&63)];return u>>>0};var o=[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];s.permute=function(l){for(var c=0,u=0;u<o.length;u++)c<<=1,c|=l>>>o[u]&1;return c>>>0},s.padSplit=function(l,c,u){for(var h=l.toString(2);h.length<c;)h="0"+h;for(var d=[],f=0;f<c;f+=u)d.push(h.slice(f,f+u));return d.join(" ")}},{}],400:[function(e,r,s){(function(i){(function(){var a=e("./lib/generatePrime"),o=e("./lib/primes.json"),l=e("./lib/dh"),c={binary:!0,hex:!0,base64:!0};s.DiffieHellmanGroup=s.createDiffieHellmanGroup=s.getDiffieHellman=function(u){var h=new i(o[u].prime,"hex"),d=new i(o[u].gen,"hex");return new l(h,d)},s.createDiffieHellman=s.DiffieHellman=function u(h,d,f,p){return i.isBuffer(d)||c[d]===void 0?u(h,"binary",d,f):(d=d||"binary",p=p||"binary",f=f||new i([2]),i.isBuffer(f)||(f=new i(f,p)),typeof h=="number"?new l(a(h,f),f,!0):(i.isBuffer(h)||(h=new i(h,d)),new l(h,f,!0)))}}).call(this)}).call(this,e("buffer").Buffer)},{"./lib/dh":401,"./lib/generatePrime":402,"./lib/primes.json":403,buffer:220}],401:[function(e,r,s){(function(i){(function(){var a=e("bn.js"),o=new(e("miller-rabin")),l=new a(24),c=new a(11),u=new a(10),h=new a(3),d=new a(7),f=e("./generatePrime"),p=e("randombytes");function g(T,M){return M=M||"utf8",i.isBuffer(T)||(T=new i(T,M)),this._pub=new a(T),this}function m(T,M){return M=M||"utf8",i.isBuffer(T)||(T=new i(T,M)),this._priv=new a(T),this}r.exports=w;var b={};function w(T,M,j){this.setGenerator(M),this.__prime=new a(T),this._prime=a.mont(this.__prime),this._primeLen=T.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,j?(this.setPublicKey=g,this.setPrivateKey=m):this._primeCode=8}function _(T,M){var j=new i(T.toArray());return M?j.toString(M):j}Object.defineProperty(w.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=function(T,M){var j=M.toString("hex"),A=[j,T.toString(16)].join("_");if(A in b)return b[A];var B,H=0;if(T.isEven()||!f.simpleSieve||!f.fermatTest(T)||!o.test(T))return H+=1,H+=j==="02"||j==="05"?8:4,b[A]=H,H;switch(o.test(T.shrn(1))||(H+=2),j){case"02":T.mod(l).cmp(c)&&(H+=8);break;case"05":(B=T.mod(u)).cmp(h)&&B.cmp(d)&&(H+=8);break;default:H+=4}return b[A]=H,H}(this.__prime,this.__gen)),this._primeCode}}),w.prototype.generateKeys=function(){return this._priv||(this._priv=new a(p(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},w.prototype.computeSecret=function(T){var M=(T=(T=new a(T)).toRed(this._prime)).redPow(this._priv).fromRed(),j=new i(M.toArray()),A=this.getPrime();if(j.length<A.length){var B=new i(A.length-j.length);B.fill(0),j=i.concat([B,j])}return j},w.prototype.getPublicKey=function(T){return _(this._pub,T)},w.prototype.getPrivateKey=function(T){return _(this._priv,T)},w.prototype.getPrime=function(T){return _(this.__prime,T)},w.prototype.getGenerator=function(T){return _(this._gen,T)},w.prototype.setGenerator=function(T,M){return M=M||"utf8",i.isBuffer(T)||(T=new i(T,M)),this.__gen=T,this._gen=new a(T),this}}).call(this)}).call(this,e("buffer").Buffer)},{"./generatePrime":402,"bn.js":404,buffer:220,"miller-rabin":451,randombytes:475}],402:[function(e,r,s){var i=e("randombytes");r.exports=T,T.simpleSieve=w,T.fermatTest=_;var a=e("bn.js"),o=new a(24),l=new(e("miller-rabin")),c=new a(1),u=new a(2),h=new a(5),d=(new a(16),new a(8),new a(10)),f=new a(3),p=(new a(7),new a(11)),g=new a(4),m=(new a(12),null);function b(){if(m!==null)return m;var M=[];M[0]=2;for(var j=1,A=3;A<1048576;A+=2){for(var B=Math.ceil(Math.sqrt(A)),H=0;H<j&&M[H]<=B&&A%M[H]!=0;H++);j!==H&&M[H]<=B||(M[j++]=A)}return m=M,M}function w(M){for(var j=b(),A=0;A<j.length;A++)if(M.modn(j[A])===0)return M.cmpn(j[A])===0;return!0}function _(M){var j=a.mont(M);return u.toRed(j).redPow(M.subn(1)).fromRed().cmpn(1)===0}function T(M,j){if(M<16)return new a(j===2||j===5?[140,123]:[140,39]);var A,B;for(j=new a(j);;){for(A=new a(i(Math.ceil(M/8)));A.bitLength()>M;)A.ishrn(1);if(A.isEven()&&A.iadd(c),A.testn(1)||A.iadd(u),j.cmp(u)){if(!j.cmp(h))for(;A.mod(d).cmp(f);)A.iadd(g)}else for(;A.mod(o).cmp(p);)A.iadd(g);if(w(B=A.shrn(1))&&w(A)&&_(B)&&_(A)&&l.test(B)&&l.test(A))return A}}},{"bn.js":404,"miller-rabin":451,randombytes:475}],403:[function(e,r,s){r.exports={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"}}},{}],404:[function(e,r,s){arguments[4][184][0].apply(s,arguments)},{buffer:188,dup:184}],405:[function(e,r,s){var i=s;i.version=e("../package.json").version,i.utils=e("./elliptic/utils"),i.rand=e("brorand"),i.curve=e("./elliptic/curve"),i.curves=e("./elliptic/curves"),i.ec=e("./elliptic/ec"),i.eddsa=e("./elliptic/eddsa")},{"../package.json":421,"./elliptic/curve":408,"./elliptic/curves":411,"./elliptic/ec":412,"./elliptic/eddsa":415,"./elliptic/utils":419,brorand:187}],406:[function(e,r,s){var i=e("bn.js"),a=e("../utils"),o=a.getNAF,l=a.getJSF,c=a.assert;function u(d,f){this.type=d,this.p=new i(f.p,16),this.red=f.prime?i.red(f.prime):i.mont(this.p),this.zero=new i(0).toRed(this.red),this.one=new i(1).toRed(this.red),this.two=new i(2).toRed(this.red),this.n=f.n&&new i(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 p=this.n&&this.p.div(this.n);!p||p.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function h(d,f){this.curve=d,this.type=f,this.precomputed=null}r.exports=u,u.prototype.point=function(){throw new Error("Not implemented")},u.prototype.validate=function(){throw new Error("Not implemented")},u.prototype._fixedNafMul=function(d,f){c(d.precomputed);var p=d._getDoubles(),g=o(f,1,this._bitLength),m=(1<<p.step+1)-(p.step%2==0?2:1);m/=3;var b,w,_=[];for(b=0;b<g.length;b+=p.step){w=0;for(var T=b+p.step-1;T>=b;T--)w=(w<<1)+g[T];_.push(w)}for(var M=this.jpoint(null,null,null),j=this.jpoint(null,null,null),A=m;A>0;A--){for(b=0;b<_.length;b++)(w=_[b])===A?j=j.mixedAdd(p.points[b]):w===-A&&(j=j.mixedAdd(p.points[b].neg()));M=M.add(j)}return M.toP()},u.prototype._wnafMul=function(d,f){var p=4,g=d._getNAFPoints(p);p=g.wnd;for(var m=g.points,b=o(f,p,this._bitLength),w=this.jpoint(null,null,null),_=b.length-1;_>=0;_--){for(var T=0;_>=0&&b[_]===0;_--)T++;if(_>=0&&T++,w=w.dblp(T),_<0)break;var M=b[_];c(M!==0),w=d.type==="affine"?M>0?w.mixedAdd(m[M-1>>1]):w.mixedAdd(m[-M-1>>1].neg()):M>0?w.add(m[M-1>>1]):w.add(m[-M-1>>1].neg())}return d.type==="affine"?w.toP():w},u.prototype._wnafMulAdd=function(d,f,p,g,m){var b,w,_,T=this._wnafT1,M=this._wnafT2,j=this._wnafT3,A=0;for(b=0;b<g;b++){var B=(_=f[b])._getNAFPoints(d);T[b]=B.wnd,M[b]=B.points}for(b=g-1;b>=1;b-=2){var H=b-1,U=b;if(T[H]===1&&T[U]===1){var X=[f[H],null,null,f[U]];f[H].y.cmp(f[U].y)===0?(X[1]=f[H].add(f[U]),X[2]=f[H].toJ().mixedAdd(f[U].neg())):f[H].y.cmp(f[U].y.redNeg())===0?(X[1]=f[H].toJ().mixedAdd(f[U]),X[2]=f[H].add(f[U].neg())):(X[1]=f[H].toJ().mixedAdd(f[U]),X[2]=f[H].toJ().mixedAdd(f[U].neg()));var V=[-3,-1,-5,-7,0,7,5,1,3],O=l(p[H],p[U]);for(A=Math.max(O[0].length,A),j[H]=new Array(A),j[U]=new Array(A),w=0;w<A;w++){var N=0|O[0][w],C=0|O[1][w];j[H][w]=V[3*(N+1)+(C+1)],j[U][w]=0,M[H]=X}}else j[H]=o(p[H],T[H],this._bitLength),j[U]=o(p[U],T[U],this._bitLength),A=Math.max(j[H].length,A),A=Math.max(j[U].length,A)}var x=this.jpoint(null,null,null),S=this._wnafT4;for(b=A;b>=0;b--){for(var k=0;b>=0;){var E=!0;for(w=0;w<g;w++)S[w]=0|j[w][b],S[w]!==0&&(E=!1);if(!E)break;k++,b--}if(b>=0&&k++,x=x.dblp(k),b<0)break;for(w=0;w<g;w++){var I=S[w];I!==0&&(I>0?_=M[w][I-1>>1]:I<0&&(_=M[w][-I-1>>1].neg()),x=_.type==="affine"?x.mixedAdd(_):x.add(_))}}for(b=0;b<g;b++)M[b]=null;return m?x:x.toP()},u.BasePoint=h,h.prototype.eq=function(){throw new Error("Not implemented")},h.prototype.validate=function(){return this.curve.validate(this)},u.prototype.decodePoint=function(d,f){d=a.toArray(d,f);var p=this.p.byteLength();if((d[0]===4||d[0]===6||d[0]===7)&&d.length-1==2*p)return d[0]===6?c(d[d.length-1]%2==0):d[0]===7&&c(d[d.length-1]%2==1),this.point(d.slice(1,1+p),d.slice(1+p,1+2*p));if((d[0]===2||d[0]===3)&&d.length-1===p)return this.pointFromX(d.slice(1,1+p),d[0]===3);throw new Error("Unknown point format")},h.prototype.encodeCompressed=function(d){return this.encode(d,!0)},h.prototype._encode=function(d){var f=this.curve.p.byteLength(),p=this.getX().toArray("be",f);return d?[this.getY().isEven()?2:3].concat(p):[4].concat(p,this.getY().toArray("be",f))},h.prototype.encode=function(d,f){return a.encode(this._encode(f),d)},h.prototype.precompute=function(d){if(this.precomputed)return this;var f={doubles:null,naf:null,beta:null};return f.naf=this._getNAFPoints(8),f.doubles=this._getDoubles(4,d),f.beta=this._getBeta(),this.precomputed=f,this},h.prototype._hasDoubles=function(d){if(!this.precomputed)return!1;var f=this.precomputed.doubles;return!!f&&f.points.length>=Math.ceil((d.bitLength()+1)/f.step)},h.prototype._getDoubles=function(d,f){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var p=[this],g=this,m=0;m<f;m+=d){for(var b=0;b<d;b++)g=g.dbl();p.push(g)}return{step:d,points:p}},h.prototype._getNAFPoints=function(d){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var f=[this],p=(1<<d)-1,g=p===1?null:this.dbl(),m=1;m<p;m++)f[m]=f[m-1].add(g);return{wnd:d,points:f}},h.prototype._getBeta=function(){return null},h.prototype.dblp=function(d){for(var f=this,p=0;p<d;p++)f=f.dbl();return f}},{"../utils":419,"bn.js":420}],407:[function(e,r,s){var i=e("../utils"),a=e("bn.js"),o=e("inherits"),l=e("./base"),c=i.assert;function u(d){this.twisted=(0|d.a)!=1,this.mOneA=this.twisted&&(0|d.a)==-1,this.extended=this.mOneA,l.call(this,"edwards",d),this.a=new a(d.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new a(d.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new a(d.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),c(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(0|d.c)==1}function h(d,f,p,g,m){l.BasePoint.call(this,d,"projective"),f===null&&p===null&&g===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 a(f,16),this.y=new a(p,16),this.z=g?new a(g,16):this.curve.one,this.t=m&&new a(m,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()))))}o(u,l),r.exports=u,u.prototype._mulA=function(d){return this.mOneA?d.redNeg():this.a.redMul(d)},u.prototype._mulC=function(d){return this.oneC?d:this.c.redMul(d)},u.prototype.jpoint=function(d,f,p,g){return this.point(d,f,p,g)},u.prototype.pointFromX=function(d,f){(d=new a(d,16)).red||(d=d.toRed(this.red));var p=d.redSqr(),g=this.c2.redSub(this.a.redMul(p)),m=this.one.redSub(this.c2.redMul(this.d).redMul(p)),b=g.redMul(m.redInvm()),w=b.redSqrt();if(w.redSqr().redSub(b).cmp(this.zero)!==0)throw new Error("invalid point");var _=w.fromRed().isOdd();return(f&&!_||!f&&_)&&(w=w.redNeg()),this.point(d,w)},u.prototype.pointFromY=function(d,f){(d=new a(d,16)).red||(d=d.toRed(this.red));var p=d.redSqr(),g=p.redSub(this.c2),m=p.redMul(this.d).redMul(this.c2).redSub(this.a),b=g.redMul(m.redInvm());if(b.cmp(this.zero)===0){if(f)throw new Error("invalid point");return this.point(this.zero,d)}var w=b.redSqrt();if(w.redSqr().redSub(b).cmp(this.zero)!==0)throw new Error("invalid point");return w.fromRed().isOdd()!==f&&(w=w.redNeg()),this.point(w,d)},u.prototype.validate=function(d){if(d.isInfinity())return!0;d.normalize();var f=d.x.redSqr(),p=d.y.redSqr(),g=f.redMul(this.a).redAdd(p),m=this.c2.redMul(this.one.redAdd(this.d.redMul(f).redMul(p)));return g.cmp(m)===0},o(h,l.BasePoint),u.prototype.pointFromJSON=function(d){return h.fromJSON(this,d)},u.prototype.point=function(d,f,p,g){return new h(this,d,f,p,g)},h.fromJSON=function(d,f){return new h(d,f[0],f[1],f[2])},h.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)+">"},h.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)},h.prototype._extDbl=function(){var d=this.x.redSqr(),f=this.y.redSqr(),p=this.z.redSqr();p=p.redIAdd(p);var g=this.curve._mulA(d),m=this.x.redAdd(this.y).redSqr().redISub(d).redISub(f),b=g.redAdd(f),w=b.redSub(p),_=g.redSub(f),T=m.redMul(w),M=b.redMul(_),j=m.redMul(_),A=w.redMul(b);return this.curve.point(T,M,A,j)},h.prototype._projDbl=function(){var d,f,p,g,m,b,w=this.x.redAdd(this.y).redSqr(),_=this.x.redSqr(),T=this.y.redSqr();if(this.curve.twisted){var M=(g=this.curve._mulA(_)).redAdd(T);this.zOne?(d=w.redSub(_).redSub(T).redMul(M.redSub(this.curve.two)),f=M.redMul(g.redSub(T)),p=M.redSqr().redSub(M).redSub(M)):(m=this.z.redSqr(),b=M.redSub(m).redISub(m),d=w.redSub(_).redISub(T).redMul(b),f=M.redMul(g.redSub(T)),p=M.redMul(b))}else g=_.redAdd(T),m=this.curve._mulC(this.z).redSqr(),b=g.redSub(m).redSub(m),d=this.curve._mulC(w.redISub(g)).redMul(b),f=this.curve._mulC(g).redMul(_.redISub(T)),p=g.redMul(b);return this.curve.point(d,f,p)},h.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},h.prototype._extAdd=function(d){var f=this.y.redSub(this.x).redMul(d.y.redSub(d.x)),p=this.y.redAdd(this.x).redMul(d.y.redAdd(d.x)),g=this.t.redMul(this.curve.dd).redMul(d.t),m=this.z.redMul(d.z.redAdd(d.z)),b=p.redSub(f),w=m.redSub(g),_=m.redAdd(g),T=p.redAdd(f),M=b.redMul(w),j=_.redMul(T),A=b.redMul(T),B=w.redMul(_);return this.curve.point(M,j,B,A)},h.prototype._projAdd=function(d){var f,p,g=this.z.redMul(d.z),m=g.redSqr(),b=this.x.redMul(d.x),w=this.y.redMul(d.y),_=this.curve.d.redMul(b).redMul(w),T=m.redSub(_),M=m.redAdd(_),j=this.x.redAdd(this.y).redMul(d.x.redAdd(d.y)).redISub(b).redISub(w),A=g.redMul(T).redMul(j);return this.curve.twisted?(f=g.redMul(M).redMul(w.redSub(this.curve._mulA(b))),p=T.redMul(M)):(f=g.redMul(M).redMul(w.redSub(b)),p=this.curve._mulC(T).redMul(M)),this.curve.point(A,f,p)},h.prototype.add=function(d){return this.isInfinity()?d:d.isInfinity()?this:this.curve.extended?this._extAdd(d):this._projAdd(d)},h.prototype.mul=function(d){return this._hasDoubles(d)?this.curve._fixedNafMul(this,d):this.curve._wnafMul(this,d)},h.prototype.mulAdd=function(d,f,p){return this.curve._wnafMulAdd(1,[this,f],[d,p],2,!1)},h.prototype.jmulAdd=function(d,f,p){return this.curve._wnafMulAdd(1,[this,f],[d,p],2,!0)},h.prototype.normalize=function(){if(this.zOne)return this;var d=this.z.redInvm();return this.x=this.x.redMul(d),this.y=this.y.redMul(d),this.t&&(this.t=this.t.redMul(d)),this.z=this.curve.one,this.zOne=!0,this},h.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},h.prototype.getX=function(){return this.normalize(),this.x.fromRed()},h.prototype.getY=function(){return this.normalize(),this.y.fromRed()},h.prototype.eq=function(d){return this===d||this.getX().cmp(d.getX())===0&&this.getY().cmp(d.getY())===0},h.prototype.eqXToP=function(d){var f=d.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(f)===0)return!0;for(var p=d.clone(),g=this.curve.redN.redMul(this.z);;){if(p.iadd(this.curve.n),p.cmp(this.curve.p)>=0)return!1;if(f.redIAdd(g),this.x.cmp(f)===0)return!0}},h.prototype.toP=h.prototype.normalize,h.prototype.mixedAdd=h.prototype.add},{"../utils":419,"./base":406,"bn.js":420,inherits:440}],408:[function(e,r,s){var i=s;i.base=e("./base"),i.short=e("./short"),i.mont=e("./mont"),i.edwards=e("./edwards")},{"./base":406,"./edwards":407,"./mont":409,"./short":410}],409:[function(e,r,s){var i=e("bn.js"),a=e("inherits"),o=e("./base"),l=e("../utils");function c(h){o.call(this,"mont",h),this.a=new i(h.a,16).toRed(this.red),this.b=new i(h.b,16).toRed(this.red),this.i4=new i(4).toRed(this.red).redInvm(),this.two=new i(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function u(h,d,f){o.BasePoint.call(this,h,"projective"),d===null&&f===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new i(d,16),this.z=new i(f,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}a(c,o),r.exports=c,c.prototype.validate=function(h){var d=h.normalize().x,f=d.redSqr(),p=f.redMul(d).redAdd(f.redMul(this.a)).redAdd(d);return p.redSqrt().redSqr().cmp(p)===0},a(u,o.BasePoint),c.prototype.decodePoint=function(h,d){return this.point(l.toArray(h,d),1)},c.prototype.point=function(h,d){return new u(this,h,d)},c.prototype.pointFromJSON=function(h){return u.fromJSON(this,h)},u.prototype.precompute=function(){},u.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},u.fromJSON=function(h,d){return new u(h,d[0],d[1]||h.one)},u.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)+">"},u.prototype.isInfinity=function(){return this.z.cmpn(0)===0},u.prototype.dbl=function(){var h=this.x.redAdd(this.z).redSqr(),d=this.x.redSub(this.z).redSqr(),f=h.redSub(d),p=h.redMul(d),g=f.redMul(d.redAdd(this.curve.a24.redMul(f)));return this.curve.point(p,g)},u.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.diffAdd=function(h,d){var f=this.x.redAdd(this.z),p=this.x.redSub(this.z),g=h.x.redAdd(h.z),m=h.x.redSub(h.z).redMul(f),b=g.redMul(p),w=d.z.redMul(m.redAdd(b).redSqr()),_=d.x.redMul(m.redISub(b).redSqr());return this.curve.point(w,_)},u.prototype.mul=function(h){for(var d=h.clone(),f=this,p=this.curve.point(null,null),g=[];d.cmpn(0)!==0;d.iushrn(1))g.push(d.andln(1));for(var m=g.length-1;m>=0;m--)g[m]===0?(f=f.diffAdd(p,this),p=p.dbl()):(p=f.diffAdd(p,this),f=f.dbl());return p},u.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.eq=function(h){return this.getX().cmp(h.getX())===0},u.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},{"../utils":419,"./base":406,"bn.js":420,inherits:440}],410:[function(e,r,s){var i=e("../utils"),a=e("bn.js"),o=e("inherits"),l=e("./base"),c=i.assert;function u(f){l.call(this,"short",f),this.a=new a(f.a,16).toRed(this.red),this.b=new a(f.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(f),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function h(f,p,g,m){l.BasePoint.call(this,f,"affine"),p===null&&g===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new a(p,16),this.y=new a(g,16),m&&(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)}function d(f,p,g,m){l.BasePoint.call(this,f,"jacobian"),p===null&&g===null&&m===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new a(0)):(this.x=new a(p,16),this.y=new a(g,16),this.z=new a(m,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}o(u,l),r.exports=u,u.prototype._getEndomorphism=function(f){if(this.zeroA&&this.g&&this.n&&this.p.modn(3)===1){var p,g;if(f.beta)p=new a(f.beta,16).toRed(this.red);else{var m=this._getEndoRoots(this.p);p=(p=m[0].cmp(m[1])<0?m[0]:m[1]).toRed(this.red)}if(f.lambda)g=new a(f.lambda,16);else{var b=this._getEndoRoots(this.n);this.g.mul(b[0]).x.cmp(this.g.x.redMul(p))===0?g=b[0]:(g=b[1],c(this.g.mul(g).x.cmp(this.g.x.redMul(p))===0))}return{beta:p,lambda:g,basis:f.basis?f.basis.map(function(w){return{a:new a(w.a,16),b:new a(w.b,16)}}):this._getEndoBasis(g)}}},u.prototype._getEndoRoots=function(f){var p=f===this.p?this.red:a.mont(f),g=new a(2).toRed(p).redInvm(),m=g.redNeg(),b=new a(3).toRed(p).redNeg().redSqrt().redMul(g);return[m.redAdd(b).fromRed(),m.redSub(b).fromRed()]},u.prototype._getEndoBasis=function(f){for(var p,g,m,b,w,_,T,M,j,A=this.n.ushrn(Math.floor(this.n.bitLength()/2)),B=f,H=this.n.clone(),U=new a(1),X=new a(0),V=new a(0),O=new a(1),N=0;B.cmpn(0)!==0;){var C=H.div(B);M=H.sub(C.mul(B)),j=V.sub(C.mul(U));var x=O.sub(C.mul(X));if(!m&&M.cmp(A)<0)p=T.neg(),g=U,m=M.neg(),b=j;else if(m&&++N==2)break;T=M,H=B,B=M,V=U,U=j,O=X,X=x}w=M.neg(),_=j;var S=m.sqr().add(b.sqr());return w.sqr().add(_.sqr()).cmp(S)>=0&&(w=p,_=g),m.negative&&(m=m.neg(),b=b.neg()),w.negative&&(w=w.neg(),_=_.neg()),[{a:m,b},{a:w,b:_}]},u.prototype._endoSplit=function(f){var p=this.endo.basis,g=p[0],m=p[1],b=m.b.mul(f).divRound(this.n),w=g.b.neg().mul(f).divRound(this.n),_=b.mul(g.a),T=w.mul(m.a),M=b.mul(g.b),j=w.mul(m.b);return{k1:f.sub(_).sub(T),k2:M.add(j).neg()}},u.prototype.pointFromX=function(f,p){(f=new a(f,16)).red||(f=f.toRed(this.red));var g=f.redSqr().redMul(f).redIAdd(f.redMul(this.a)).redIAdd(this.b),m=g.redSqrt();if(m.redSqr().redSub(g).cmp(this.zero)!==0)throw new Error("invalid point");var b=m.fromRed().isOdd();return(p&&!b||!p&&b)&&(m=m.redNeg()),this.point(f,m)},u.prototype.validate=function(f){if(f.inf)return!0;var p=f.x,g=f.y,m=this.a.redMul(p),b=p.redSqr().redMul(p).redIAdd(m).redIAdd(this.b);return g.redSqr().redISub(b).cmpn(0)===0},u.prototype._endoWnafMulAdd=function(f,p,g){for(var m=this._endoWnafT1,b=this._endoWnafT2,w=0;w<f.length;w++){var _=this._endoSplit(p[w]),T=f[w],M=T._getBeta();_.k1.negative&&(_.k1.ineg(),T=T.neg(!0)),_.k2.negative&&(_.k2.ineg(),M=M.neg(!0)),m[2*w]=T,m[2*w+1]=M,b[2*w]=_.k1,b[2*w+1]=_.k2}for(var j=this._wnafMulAdd(1,m,b,2*w,g),A=0;A<2*w;A++)m[A]=null,b[A]=null;return j},o(h,l.BasePoint),u.prototype.point=function(f,p,g){return new h(this,f,p,g)},u.prototype.pointFromJSON=function(f,p){return h.fromJSON(this,f,p)},h.prototype._getBeta=function(){if(this.curve.endo){var f=this.precomputed;if(f&&f.beta)return f.beta;var p=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(f){var g=this.curve,m=function(b){return g.point(b.x.redMul(g.endo.beta),b.y)};f.beta=p,p.precomputed={beta:null,naf:f.naf&&{wnd:f.naf.wnd,points:f.naf.points.map(m)},doubles:f.doubles&&{step:f.doubles.step,points:f.doubles.points.map(m)}}}return p}},h.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]},h.fromJSON=function(f,p,g){typeof p=="string"&&(p=JSON.parse(p));var m=f.point(p[0],p[1],g);if(!p[2])return m;function b(_){return f.point(_[0],_[1],g)}var w=p[2];return m.precomputed={beta:null,doubles:w.doubles&&{step:w.doubles.step,points:[m].concat(w.doubles.points.map(b))},naf:w.naf&&{wnd:w.naf.wnd,points:[m].concat(w.naf.points.map(b))}},m},h.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)+">"},h.prototype.isInfinity=function(){return this.inf},h.prototype.add=function(f){if(this.inf)return f;if(f.inf)return this;if(this.eq(f))return this.dbl();if(this.neg().eq(f))return this.curve.point(null,null);if(this.x.cmp(f.x)===0)return this.curve.point(null,null);var p=this.y.redSub(f.y);p.cmpn(0)!==0&&(p=p.redMul(this.x.redSub(f.x).redInvm()));var g=p.redSqr().redISub(this.x).redISub(f.x),m=p.redMul(this.x.redSub(g)).redISub(this.y);return this.curve.point(g,m)},h.prototype.dbl=function(){if(this.inf)return this;var f=this.y.redAdd(this.y);if(f.cmpn(0)===0)return this.curve.point(null,null);var p=this.curve.a,g=this.x.redSqr(),m=f.redInvm(),b=g.redAdd(g).redIAdd(g).redIAdd(p).redMul(m),w=b.redSqr().redISub(this.x.redAdd(this.x)),_=b.redMul(this.x.redSub(w)).redISub(this.y);return this.curve.point(w,_)},h.prototype.getX=function(){return this.x.fromRed()},h.prototype.getY=function(){return this.y.fromRed()},h.prototype.mul=function(f){return f=new a(f,16),this.isInfinity()?this:this._hasDoubles(f)?this.curve._fixedNafMul(this,f):this.curve.endo?this.curve._endoWnafMulAdd([this],[f]):this.curve._wnafMul(this,f)},h.prototype.mulAdd=function(f,p,g){var m=[this,p],b=[f,g];return this.curve.endo?this.curve._endoWnafMulAdd(m,b):this.curve._wnafMulAdd(1,m,b,2)},h.prototype.jmulAdd=function(f,p,g){var m=[this,p],b=[f,g];return this.curve.endo?this.curve._endoWnafMulAdd(m,b,!0):this.curve._wnafMulAdd(1,m,b,2,!0)},h.prototype.eq=function(f){return this===f||this.inf===f.inf&&(this.inf||this.x.cmp(f.x)===0&&this.y.cmp(f.y)===0)},h.prototype.neg=function(f){if(this.inf)return this;var p=this.curve.point(this.x,this.y.redNeg());if(f&&this.precomputed){var g=this.precomputed,m=function(b){return b.neg()};p.precomputed={naf:g.naf&&{wnd:g.naf.wnd,points:g.naf.points.map(m)},doubles:g.doubles&&{step:g.doubles.step,points:g.doubles.points.map(m)}}}return p},h.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},o(d,l.BasePoint),u.prototype.jpoint=function(f,p,g){return new d(this,f,p,g)},d.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var f=this.z.redInvm(),p=f.redSqr(),g=this.x.redMul(p),m=this.y.redMul(p).redMul(f);return this.curve.point(g,m)},d.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},d.prototype.add=function(f){if(this.isInfinity())return f;if(f.isInfinity())return this;var p=f.z.redSqr(),g=this.z.redSqr(),m=this.x.redMul(p),b=f.x.redMul(g),w=this.y.redMul(p.redMul(f.z)),_=f.y.redMul(g.redMul(this.z)),T=m.redSub(b),M=w.redSub(_);if(T.cmpn(0)===0)return M.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var j=T.redSqr(),A=j.redMul(T),B=m.redMul(j),H=M.redSqr().redIAdd(A).redISub(B).redISub(B),U=M.redMul(B.redISub(H)).redISub(w.redMul(A)),X=this.z.redMul(f.z).redMul(T);return this.curve.jpoint(H,U,X)},d.prototype.mixedAdd=function(f){if(this.isInfinity())return f.toJ();if(f.isInfinity())return this;var p=this.z.redSqr(),g=this.x,m=f.x.redMul(p),b=this.y,w=f.y.redMul(p).redMul(this.z),_=g.redSub(m),T=b.redSub(w);if(_.cmpn(0)===0)return T.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var M=_.redSqr(),j=M.redMul(_),A=g.redMul(M),B=T.redSqr().redIAdd(j).redISub(A).redISub(A),H=T.redMul(A.redISub(B)).redISub(b.redMul(j)),U=this.z.redMul(_);return this.curve.jpoint(B,H,U)},d.prototype.dblp=function(f){if(f===0)return this;if(this.isInfinity())return this;if(!f)return this.dbl();var p;if(this.curve.zeroA||this.curve.threeA){var g=this;for(p=0;p<f;p++)g=g.dbl();return g}var m=this.curve.a,b=this.curve.tinv,w=this.x,_=this.y,T=this.z,M=T.redSqr().redSqr(),j=_.redAdd(_);for(p=0;p<f;p++){var A=w.redSqr(),B=j.redSqr(),H=B.redSqr(),U=A.redAdd(A).redIAdd(A).redIAdd(m.redMul(M)),X=w.redMul(B),V=U.redSqr().redISub(X.redAdd(X)),O=X.redISub(V),N=U.redMul(O);N=N.redIAdd(N).redISub(H);var C=j.redMul(T);p+1<f&&(M=M.redMul(H)),w=V,T=C,j=N}return this.curve.jpoint(w,j.redMul(b),T)},d.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},d.prototype._zeroDbl=function(){var f,p,g;if(this.zOne){var m=this.x.redSqr(),b=this.y.redSqr(),w=b.redSqr(),_=this.x.redAdd(b).redSqr().redISub(m).redISub(w);_=_.redIAdd(_);var T=m.redAdd(m).redIAdd(m),M=T.redSqr().redISub(_).redISub(_),j=w.redIAdd(w);j=(j=j.redIAdd(j)).redIAdd(j),f=M,p=T.redMul(_.redISub(M)).redISub(j),g=this.y.redAdd(this.y)}else{var A=this.x.redSqr(),B=this.y.redSqr(),H=B.redSqr(),U=this.x.redAdd(B).redSqr().redISub(A).redISub(H);U=U.redIAdd(U);var X=A.redAdd(A).redIAdd(A),V=X.redSqr(),O=H.redIAdd(H);O=(O=O.redIAdd(O)).redIAdd(O),f=V.redISub(U).redISub(U),p=X.redMul(U.redISub(f)).redISub(O),g=(g=this.y.redMul(this.z)).redIAdd(g)}return this.curve.jpoint(f,p,g)},d.prototype._threeDbl=function(){var f,p,g;if(this.zOne){var m=this.x.redSqr(),b=this.y.redSqr(),w=b.redSqr(),_=this.x.redAdd(b).redSqr().redISub(m).redISub(w);_=_.redIAdd(_);var T=m.redAdd(m).redIAdd(m).redIAdd(this.curve.a),M=T.redSqr().redISub(_).redISub(_);f=M;var j=w.redIAdd(w);j=(j=j.redIAdd(j)).redIAdd(j),p=T.redMul(_.redISub(M)).redISub(j),g=this.y.redAdd(this.y)}else{var A=this.z.redSqr(),B=this.y.redSqr(),H=this.x.redMul(B),U=this.x.redSub(A).redMul(this.x.redAdd(A));U=U.redAdd(U).redIAdd(U);var X=H.redIAdd(H),V=(X=X.redIAdd(X)).redAdd(X);f=U.redSqr().redISub(V),g=this.y.redAdd(this.z).redSqr().redISub(B).redISub(A);var O=B.redSqr();O=(O=(O=O.redIAdd(O)).redIAdd(O)).redIAdd(O),p=U.redMul(X.redISub(f)).redISub(O)}return this.curve.jpoint(f,p,g)},d.prototype._dbl=function(){var f=this.curve.a,p=this.x,g=this.y,m=this.z,b=m.redSqr().redSqr(),w=p.redSqr(),_=g.redSqr(),T=w.redAdd(w).redIAdd(w).redIAdd(f.redMul(b)),M=p.redAdd(p),j=(M=M.redIAdd(M)).redMul(_),A=T.redSqr().redISub(j.redAdd(j)),B=j.redISub(A),H=_.redSqr();H=(H=(H=H.redIAdd(H)).redIAdd(H)).redIAdd(H);var U=T.redMul(B).redISub(H),X=g.redAdd(g).redMul(m);return this.curve.jpoint(A,U,X)},d.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var f=this.x.redSqr(),p=this.y.redSqr(),g=this.z.redSqr(),m=p.redSqr(),b=f.redAdd(f).redIAdd(f),w=b.redSqr(),_=this.x.redAdd(p).redSqr().redISub(f).redISub(m),T=(_=(_=(_=_.redIAdd(_)).redAdd(_).redIAdd(_)).redISub(w)).redSqr(),M=m.redIAdd(m);M=(M=(M=M.redIAdd(M)).redIAdd(M)).redIAdd(M);var j=b.redIAdd(_).redSqr().redISub(w).redISub(T).redISub(M),A=p.redMul(j);A=(A=A.redIAdd(A)).redIAdd(A);var B=this.x.redMul(T).redISub(A);B=(B=B.redIAdd(B)).redIAdd(B);var H=this.y.redMul(j.redMul(M.redISub(j)).redISub(_.redMul(T)));H=(H=(H=H.redIAdd(H)).redIAdd(H)).redIAdd(H);var U=this.z.redAdd(_).redSqr().redISub(g).redISub(T);return this.curve.jpoint(B,H,U)},d.prototype.mul=function(f,p){return f=new a(f,p),this.curve._wnafMul(this,f)},d.prototype.eq=function(f){if(f.type==="affine")return this.eq(f.toJ());if(this===f)return!0;var p=this.z.redSqr(),g=f.z.redSqr();if(this.x.redMul(g).redISub(f.x.redMul(p)).cmpn(0)!==0)return!1;var m=p.redMul(this.z),b=g.redMul(f.z);return this.y.redMul(b).redISub(f.y.redMul(m)).cmpn(0)===0},d.prototype.eqXToP=function(f){var p=this.z.redSqr(),g=f.toRed(this.curve.red).redMul(p);if(this.x.cmp(g)===0)return!0;for(var m=f.clone(),b=this.curve.redN.redMul(p);;){if(m.iadd(this.curve.n),m.cmp(this.curve.p)>=0)return!1;if(g.redIAdd(b),this.x.cmp(g)===0)return!0}},d.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)+">"},d.prototype.isInfinity=function(){return this.z.cmpn(0)===0}},{"../utils":419,"./base":406,"bn.js":420,inherits:440}],411:[function(e,r,s){var i,a=s,o=e("hash.js"),l=e("./curve"),c=e("./utils").assert;function u(d){d.type==="short"?this.curve=new l.short(d):d.type==="edwards"?this.curve=new l.edwards(d):this.curve=new l.mont(d),this.g=this.curve.g,this.n=this.curve.n,this.hash=d.hash,c(this.g.validate(),"Invalid curve"),c(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function h(d,f){Object.defineProperty(a,d,{configurable:!0,enumerable:!0,get:function(){var p=new u(f);return Object.defineProperty(a,d,{configurable:!0,enumerable:!0,value:p}),p}})}a.PresetCurve=u,h("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:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),h("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:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),h("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:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),h("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:o.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"]}),h("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:o.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"]}),h("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),h("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:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{i=e("./precomputed/secp256k1")}catch{i=void 0}h("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:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",i]})},{"./curve":408,"./precomputed/secp256k1":418,"./utils":419,"hash.js":426}],412:[function(e,r,s){var i=e("bn.js"),a=e("hmac-drbg"),o=e("../utils"),l=e("../curves"),c=e("brorand"),u=o.assert,h=e("./key"),d=e("./signature");function f(p){if(!(this instanceof f))return new f(p);typeof p=="string"&&(u(Object.prototype.hasOwnProperty.call(l,p),"Unknown curve "+p),p=l[p]),p instanceof l.PresetCurve&&(p={curve:p}),this.curve=p.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=p.curve.g,this.g.precompute(p.curve.n.bitLength()+1),this.hash=p.hash||p.curve.hash}r.exports=f,f.prototype.keyPair=function(p){return new h(this,p)},f.prototype.keyFromPrivate=function(p,g){return h.fromPrivate(this,p,g)},f.prototype.keyFromPublic=function(p,g){return h.fromPublic(this,p,g)},f.prototype.genKeyPair=function(p){p||(p={});for(var g=new a({hash:this.hash,pers:p.pers,persEnc:p.persEnc||"utf8",entropy:p.entropy||c(this.hash.hmacStrength),entropyEnc:p.entropy&&p.entropyEnc||"utf8",nonce:this.n.toArray()}),m=this.n.byteLength(),b=this.n.sub(new i(2));;){var w=new i(g.generate(m));if(!(w.cmp(b)>0))return w.iaddn(1),this.keyFromPrivate(w)}},f.prototype._truncateToN=function(p,g){var m=8*p.byteLength()-this.n.bitLength();return m>0&&(p=p.ushrn(m)),!g&&p.cmp(this.n)>=0?p.sub(this.n):p},f.prototype.sign=function(p,g,m,b){typeof m=="object"&&(b=m,m=null),b||(b={}),g=this.keyFromPrivate(g,m),p=this._truncateToN(new i(p,16));for(var w=this.n.byteLength(),_=g.getPrivate().toArray("be",w),T=p.toArray("be",w),M=new a({hash:this.hash,entropy:_,nonce:T,pers:b.pers,persEnc:b.persEnc||"utf8"}),j=this.n.sub(new i(1)),A=0;;A++){var B=b.k?b.k(A):new i(M.generate(this.n.byteLength()));if(!((B=this._truncateToN(B,!0)).cmpn(1)<=0||B.cmp(j)>=0)){var H=this.g.mul(B);if(!H.isInfinity()){var U=H.getX(),X=U.umod(this.n);if(X.cmpn(0)!==0){var V=B.invm(this.n).mul(X.mul(g.getPrivate()).iadd(p));if((V=V.umod(this.n)).cmpn(0)!==0){var O=(H.getY().isOdd()?1:0)|(U.cmp(X)!==0?2:0);return b.canonical&&V.cmp(this.nh)>0&&(V=this.n.sub(V),O^=1),new d({r:X,s:V,recoveryParam:O})}}}}}},f.prototype.verify=function(p,g,m,b){p=this._truncateToN(new i(p,16)),m=this.keyFromPublic(m,b);var w=(g=new d(g,"hex")).r,_=g.s;if(w.cmpn(1)<0||w.cmp(this.n)>=0||_.cmpn(1)<0||_.cmp(this.n)>=0)return!1;var T,M=_.invm(this.n),j=M.mul(p).umod(this.n),A=M.mul(w).umod(this.n);return this.curve._maxwellTrick?!(T=this.g.jmulAdd(j,m.getPublic(),A)).isInfinity()&&T.eqXToP(w):!(T=this.g.mulAdd(j,m.getPublic(),A)).isInfinity()&&T.getX().umod(this.n).cmp(w)===0},f.prototype.recoverPubKey=function(p,g,m,b){u((3&m)===m,"The recovery param is more than two bits"),g=new d(g,b);var w=this.n,_=new i(p),T=g.r,M=g.s,j=1&m,A=m>>1;if(T.cmp(this.curve.p.umod(this.curve.n))>=0&&A)throw new Error("Unable to find sencond key candinate");T=A?this.curve.pointFromX(T.add(this.curve.n),j):this.curve.pointFromX(T,j);var B=g.r.invm(w),H=w.sub(_).mul(B).umod(w),U=M.mul(B).umod(w);return this.g.mulAdd(H,T,U)},f.prototype.getKeyRecoveryParam=function(p,g,m,b){if((g=new d(g,b)).recoveryParam!==null)return g.recoveryParam;for(var w=0;w<4;w++){var _;try{_=this.recoverPubKey(p,g,w)}catch{continue}if(_.eq(m))return w}throw new Error("Unable to find valid recovery factor")}},{"../curves":411,"../utils":419,"./key":413,"./signature":414,"bn.js":420,brorand:187,"hmac-drbg":438}],413:[function(e,r,s){var i=e("bn.js"),a=e("../utils").assert;function o(l,c){this.ec=l,this.priv=null,this.pub=null,c.priv&&this._importPrivate(c.priv,c.privEnc),c.pub&&this._importPublic(c.pub,c.pubEnc)}r.exports=o,o.fromPublic=function(l,c,u){return c instanceof o?c:new o(l,{pub:c,pubEnc:u})},o.fromPrivate=function(l,c,u){return c instanceof o?c:new o(l,{priv:c,privEnc:u})},o.prototype.validate=function(){var l=this.getPublic();return l.isInfinity()?{result:!1,reason:"Invalid public key"}:l.validate()?l.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"}},o.prototype.getPublic=function(l,c){return typeof l=="string"&&(c=l,l=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),c?this.pub.encode(c,l):this.pub},o.prototype.getPrivate=function(l){return l==="hex"?this.priv.toString(16,2):this.priv},o.prototype._importPrivate=function(l,c){this.priv=new i(l,c||16),this.priv=this.priv.umod(this.ec.curve.n)},o.prototype._importPublic=function(l,c){if(l.x||l.y)return this.ec.curve.type==="mont"?a(l.x,"Need x coordinate"):this.ec.curve.type!=="short"&&this.ec.curve.type!=="edwards"||a(l.x&&l.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(l.x,l.y));this.pub=this.ec.curve.decodePoint(l,c)},o.prototype.derive=function(l){return l.validate()||a(l.validate(),"public point not validated"),l.mul(this.priv).getX()},o.prototype.sign=function(l,c,u){return this.ec.sign(l,this,c,u)},o.prototype.verify=function(l,c){return this.ec.verify(l,c,this)},o.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},{"../utils":419,"bn.js":420}],414:[function(e,r,s){var i=e("bn.js"),a=e("../utils"),o=a.assert;function l(f,p){if(f instanceof l)return f;this._importDER(f,p)||(o(f.r&&f.s,"Signature without r or s"),this.r=new i(f.r,16),this.s=new i(f.s,16),f.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=f.recoveryParam)}function c(){this.place=0}function u(f,p){var g=f[p.place++];if(!(128&g))return g;var m=15&g;if(m===0||m>4)return!1;for(var b=0,w=0,_=p.place;w<m;w++,_++)b<<=8,b|=f[_],b>>>=0;return!(b<=127)&&(p.place=_,b)}function h(f){for(var p=0,g=f.length-1;!f[p]&&!(128&f[p+1])&&p<g;)p++;return p===0?f:f.slice(p)}function d(f,p){if(p<128)f.push(p);else{var g=1+(Math.log(p)/Math.LN2>>>3);for(f.push(128|g);--g;)f.push(p>>>(g<<3)&255);f.push(p)}}r.exports=l,l.prototype._importDER=function(f,p){f=a.toArray(f,p);var g=new c;if(f[g.place++]!==48)return!1;var m=u(f,g);if(m===!1||m+g.place!==f.length||f[g.place++]!==2)return!1;var b=u(f,g);if(b===!1)return!1;var w=f.slice(g.place,b+g.place);if(g.place+=b,f[g.place++]!==2)return!1;var _=u(f,g);if(_===!1||f.length!==_+g.place)return!1;var T=f.slice(g.place,_+g.place);if(w[0]===0){if(!(128&w[1]))return!1;w=w.slice(1)}if(T[0]===0){if(!(128&T[1]))return!1;T=T.slice(1)}return this.r=new i(w),this.s=new i(T),this.recoveryParam=null,!0},l.prototype.toDER=function(f){var p=this.r.toArray(),g=this.s.toArray();for(128&p[0]&&(p=[0].concat(p)),128&g[0]&&(g=[0].concat(g)),p=h(p),g=h(g);!(g[0]||128&g[1]);)g=g.slice(1);var m=[2];d(m,p.length),(m=m.concat(p)).push(2),d(m,g.length);var b=m.concat(g),w=[48];return d(w,b.length),w=w.concat(b),a.encode(w,f)}},{"../utils":419,"bn.js":420}],415:[function(e,r,s){var i=e("hash.js"),a=e("../curves"),o=e("../utils"),l=o.assert,c=o.parseBytes,u=e("./key"),h=e("./signature");function d(f){if(l(f==="ed25519","only tested with ed25519 so far"),!(this instanceof d))return new d(f);f=a[f].curve,this.curve=f,this.g=f.g,this.g.precompute(f.n.bitLength()+1),this.pointClass=f.point().constructor,this.encodingLength=Math.ceil(f.n.bitLength()/8),this.hash=i.sha512}r.exports=d,d.prototype.sign=function(f,p){f=c(f);var g=this.keyFromSecret(p),m=this.hashInt(g.messagePrefix(),f),b=this.g.mul(m),w=this.encodePoint(b),_=this.hashInt(w,g.pubBytes(),f).mul(g.priv()),T=m.add(_).umod(this.curve.n);return this.makeSignature({R:b,S:T,Rencoded:w})},d.prototype.verify=function(f,p,g){f=c(f),p=this.makeSignature(p);var m=this.keyFromPublic(g),b=this.hashInt(p.Rencoded(),m.pubBytes(),f),w=this.g.mul(p.S());return p.R().add(m.pub().mul(b)).eq(w)},d.prototype.hashInt=function(){for(var f=this.hash(),p=0;p<arguments.length;p++)f.update(arguments[p]);return o.intFromLE(f.digest()).umod(this.curve.n)},d.prototype.keyFromPublic=function(f){return u.fromPublic(this,f)},d.prototype.keyFromSecret=function(f){return u.fromSecret(this,f)},d.prototype.makeSignature=function(f){return f instanceof h?f:new h(this,f)},d.prototype.encodePoint=function(f){var p=f.getY().toArray("le",this.encodingLength);return p[this.encodingLength-1]|=f.getX().isOdd()?128:0,p},d.prototype.decodePoint=function(f){var p=(f=o.parseBytes(f)).length-1,g=f.slice(0,p).concat(-129&f[p]),m=(128&f[p])!=0,b=o.intFromLE(g);return this.curve.pointFromY(b,m)},d.prototype.encodeInt=function(f){return f.toArray("le",this.encodingLength)},d.prototype.decodeInt=function(f){return o.intFromLE(f)},d.prototype.isPoint=function(f){return f instanceof this.pointClass}},{"../curves":411,"../utils":419,"./key":416,"./signature":417,"hash.js":426}],416:[function(e,r,s){var i=e("../utils"),a=i.assert,o=i.parseBytes,l=i.cachedProperty;function c(u,h){this.eddsa=u,this._secret=o(h.secret),u.isPoint(h.pub)?this._pub=h.pub:this._pubBytes=o(h.pub)}c.fromPublic=function(u,h){return h instanceof c?h:new c(u,{pub:h})},c.fromSecret=function(u,h){return h instanceof c?h:new c(u,{secret:h})},c.prototype.secret=function(){return this._secret},l(c,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),l(c,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),l(c,"privBytes",function(){var u=this.eddsa,h=this.hash(),d=u.encodingLength-1,f=h.slice(0,u.encodingLength);return f[0]&=248,f[d]&=127,f[d]|=64,f}),l(c,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),l(c,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),l(c,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),c.prototype.sign=function(u){return a(this._secret,"KeyPair can only verify"),this.eddsa.sign(u,this)},c.prototype.verify=function(u,h){return this.eddsa.verify(u,h,this)},c.prototype.getSecret=function(u){return a(this._secret,"KeyPair is public only"),i.encode(this.secret(),u)},c.prototype.getPublic=function(u){return i.encode(this.pubBytes(),u)},r.exports=c},{"../utils":419}],417:[function(e,r,s){var i=e("bn.js"),a=e("../utils"),o=a.assert,l=a.cachedProperty,c=a.parseBytes;function u(h,d){this.eddsa=h,typeof d!="object"&&(d=c(d)),Array.isArray(d)&&(d={R:d.slice(0,h.encodingLength),S:d.slice(h.encodingLength)}),o(d.R&&d.S,"Signature without R or S"),h.isPoint(d.R)&&(this._R=d.R),d.S instanceof i&&(this._S=d.S),this._Rencoded=Array.isArray(d.R)?d.R:d.Rencoded,this._Sencoded=Array.isArray(d.S)?d.S:d.Sencoded}l(u,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),l(u,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),l(u,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),l(u,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),u.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},u.prototype.toHex=function(){return a.encode(this.toBytes(),"hex").toUpperCase()},r.exports=u},{"../utils":419,"bn.js":420}],418:[function(e,r,s){r.exports={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"]]}}},{}],419:[function(e,r,s){var i=s,a=e("bn.js"),o=e("minimalistic-assert"),l=e("minimalistic-crypto-utils");i.assert=o,i.toArray=l.toArray,i.zero2=l.zero2,i.toHex=l.toHex,i.encode=l.encode,i.getNAF=function(c,u,h){var d=new Array(Math.max(c.bitLength(),h)+1);d.fill(0);for(var f=1<<u+1,p=c.clone(),g=0;g<d.length;g++){var m,b=p.andln(f-1);p.isOdd()?(m=b>(f>>1)-1?(f>>1)-b:b,p.isubn(m)):m=0,d[g]=m,p.iushrn(1)}return d},i.getJSF=function(c,u){var h=[[],[]];c=c.clone(),u=u.clone();for(var d,f=0,p=0;c.cmpn(-f)>0||u.cmpn(-p)>0;){var g,m,b=c.andln(3)+f&3,w=u.andln(3)+p&3;b===3&&(b=-1),w===3&&(w=-1),g=1&b?(d=c.andln(7)+f&7)!==3&&d!==5||w!==2?b:-b:0,h[0].push(g),m=1&w?(d=u.andln(7)+p&7)!==3&&d!==5||b!==2?w:-w:0,h[1].push(m),2*f===g+1&&(f=1-f),2*p===m+1&&(p=1-p),c.iushrn(1),u.iushrn(1)}return h},i.cachedProperty=function(c,u,h){var d="_"+u;c.prototype[u]=function(){return this[d]!==void 0?this[d]:this[d]=h.call(this)}},i.parseBytes=function(c){return typeof c=="string"?i.toArray(c,"hex"):c},i.intFromLE=function(c){return new a(c,"hex","le")}},{"bn.js":420,"minimalistic-assert":453,"minimalistic-crypto-utils":454}],420:[function(e,r,s){arguments[4][184][0].apply(s,arguments)},{buffer:188,dup:184}],421:[function(e,r,s){r.exports={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"}}},{}],422:[function(e,r,s){var i=Object.create||function(B){var H=function(){};return H.prototype=B,new H},a=Object.keys||function(B){var H=[];for(var U in B)Object.prototype.hasOwnProperty.call(B,U)&&H.push(U);return U},o=Function.prototype.bind||function(B){var H=this;return function(){return H.apply(B,arguments)}};function l(){this._events&&Object.prototype.hasOwnProperty.call(this,"_events")||(this._events=i(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0}r.exports=l,l.EventEmitter=l,l.prototype._events=void 0,l.prototype._maxListeners=void 0;var c,u=10;try{var h={};Object.defineProperty&&Object.defineProperty(h,"x",{value:0}),c=h.x===0}catch{c=!1}function d(B){return B._maxListeners===void 0?l.defaultMaxListeners:B._maxListeners}function f(B,H,U){if(H)B.call(U);else for(var X=B.length,V=A(B,X),O=0;O<X;++O)V[O].call(U)}function p(B,H,U,X){if(H)B.call(U,X);else for(var V=B.length,O=A(B,V),N=0;N<V;++N)O[N].call(U,X)}function g(B,H,U,X,V){if(H)B.call(U,X,V);else for(var O=B.length,N=A(B,O),C=0;C<O;++C)N[C].call(U,X,V)}function m(B,H,U,X,V,O){if(H)B.call(U,X,V,O);else for(var N=B.length,C=A(B,N),x=0;x<N;++x)C[x].call(U,X,V,O)}function b(B,H,U,X){if(H)B.apply(U,X);else for(var V=B.length,O=A(B,V),N=0;N<V;++N)O[N].apply(U,X)}function w(B,H,U,X){var V,O,N;if(typeof U!="function")throw new TypeError('"listener" argument must be a function');if((O=B._events)?(O.newListener&&(B.emit("newListener",H,U.listener?U.listener:U),O=B._events),N=O[H]):(O=B._events=i(null),B._eventsCount=0),N){if(typeof N=="function"?N=O[H]=X?[U,N]:[N,U]:X?N.unshift(U):N.push(U),!N.warned&&(V=d(B))&&V>0&&N.length>V){N.warned=!0;var C=new Error("Possible EventEmitter memory leak detected. "+N.length+' "'+String(H)+'" listeners added. Use emitter.setMaxListeners() to increase limit.');C.name="MaxListenersExceededWarning",C.emitter=B,C.type=H,C.count=N.length,typeof console=="object"&&console.warn&&console.warn("%s: %s",C.name,C.message)}}else N=O[H]=U,++B._eventsCount;return B}function _(){if(!this.fired)switch(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length){case 0:return this.listener.call(this.target);case 1:return this.listener.call(this.target,arguments[0]);case 2:return this.listener.call(this.target,arguments[0],arguments[1]);case 3:return this.listener.call(this.target,arguments[0],arguments[1],arguments[2]);default:for(var B=new Array(arguments.length),H=0;H<B.length;++H)B[H]=arguments[H];this.listener.apply(this.target,B)}}function T(B,H,U){var X={fired:!1,wrapFn:void 0,target:B,type:H,listener:U},V=o.call(_,X);return V.listener=U,X.wrapFn=V,V}function M(B,H,U){var X=B._events;if(!X)return[];var V=X[H];return V?typeof V=="function"?U?[V.listener||V]:[V]:U?function(O){for(var N=new Array(O.length),C=0;C<N.length;++C)N[C]=O[C].listener||O[C];return N}(V):A(V,V.length):[]}function j(B){var H=this._events;if(H){var U=H[B];if(typeof U=="function")return 1;if(U)return U.length}return 0}function A(B,H){for(var U=new Array(H),X=0;X<H;++X)U[X]=B[X];return U}c?Object.defineProperty(l,"defaultMaxListeners",{enumerable:!0,get:function(){return u},set:function(B){if(typeof B!="number"||B<0||B!=B)throw new TypeError('"defaultMaxListeners" must be a positive number');u=B}}):l.defaultMaxListeners=u,l.prototype.setMaxListeners=function(B){if(typeof B!="number"||B<0||isNaN(B))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=B,this},l.prototype.getMaxListeners=function(){return d(this)},l.prototype.emit=function(B){var H,U,X,V,O,N,C=B==="error";if(N=this._events)C=C&&N.error==null;else if(!C)return!1;if(C){if(arguments.length>1&&(H=arguments[1]),H instanceof Error)throw H;var x=new Error('Unhandled "error" event. ('+H+")");throw x.context=H,x}if(!(U=N[B]))return!1;var S=typeof U=="function";switch(X=arguments.length){case 1:f(U,S,this);break;case 2:p(U,S,this,arguments[1]);break;case 3:g(U,S,this,arguments[1],arguments[2]);break;case 4:m(U,S,this,arguments[1],arguments[2],arguments[3]);break;default:for(V=new Array(X-1),O=1;O<X;O++)V[O-1]=arguments[O];b(U,S,this,V)}return!0},l.prototype.addListener=function(B,H){return w(this,B,H,!1)},l.prototype.on=l.prototype.addListener,l.prototype.prependListener=function(B,H){return w(this,B,H,!0)},l.prototype.once=function(B,H){if(typeof H!="function")throw new TypeError('"listener" argument must be a function');return this.on(B,T(this,B,H)),this},l.prototype.prependOnceListener=function(B,H){if(typeof H!="function")throw new TypeError('"listener" argument must be a function');return this.prependListener(B,T(this,B,H)),this},l.prototype.removeListener=function(B,H){var U,X,V,O,N;if(typeof H!="function")throw new TypeError('"listener" argument must be a function');if(!(X=this._events))return this;if(!(U=X[B]))return this;if(U===H||U.listener===H)--this._eventsCount==0?this._events=i(null):(delete X[B],X.removeListener&&this.emit("removeListener",B,U.listener||H));else if(typeof U!="function"){for(V=-1,O=U.length-1;O>=0;O--)if(U[O]===H||U[O].listener===H){N=U[O].listener,V=O;break}if(V<0)return this;V===0?U.shift():function(C,x){for(var S=x,k=S+1,E=C.length;k<E;S+=1,k+=1)C[S]=C[k];C.pop()}(U,V),U.length===1&&(X[B]=U[0]),X.removeListener&&this.emit("removeListener",B,N||H)}return this},l.prototype.removeAllListeners=function(B){var H,U,X;if(!(U=this._events))return this;if(!U.removeListener)return arguments.length===0?(this._events=i(null),this._eventsCount=0):U[B]&&(--this._eventsCount==0?this._events=i(null):delete U[B]),this;if(arguments.length===0){var V,O=a(U);for(X=0;X<O.length;++X)(V=O[X])!=="removeListener"&&this.removeAllListeners(V);return this.removeAllListeners("removeListener"),this._events=i(null),this._eventsCount=0,this}if(typeof(H=U[B])=="function")this.removeListener(B,H);else if(H)for(X=H.length-1;X>=0;X--)this.removeListener(B,H[X]);return this},l.prototype.listeners=function(B){return M(this,B,!0)},l.prototype.rawListeners=function(B){return M(this,B,!1)},l.listenerCount=function(B,H){return typeof B.listenerCount=="function"?B.listenerCount(H):j.call(B,H)},l.prototype.listenerCount=j,l.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]}},{}],423:[function(e,r,s){var i=e("safe-buffer").Buffer,a=e("md5.js");r.exports=function(o,l,c,u){if(i.isBuffer(o)||(o=i.from(o,"binary")),l&&(i.isBuffer(l)||(l=i.from(l,"binary")),l.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var h=c/8,d=i.alloc(h),f=i.alloc(u||0),p=i.alloc(0);h>0||u>0;){var g=new a;g.update(p),g.update(o),l&&g.update(l),p=g.digest();var m=0;if(h>0){var b=d.length-h;m=Math.min(h,p.length),p.copy(d,b,0,m),h-=m}if(m<p.length&&u>0){var w=f.length-u,_=Math.min(u,p.length-m);p.copy(f,w,m,m+_),u-=_}}return p.fill(0),{key:d,iv:f}}},{"md5.js":450,"safe-buffer":494}],424:[function(e,r,s){Object.defineProperty(s,"__esModule",{value:!0}),s.CsvParserStream=s.ParserOptions=s.parseFile=s.parseStream=s.parseString=s.parse=s.FormatterOptions=s.CsvFormatterStream=s.writeToPath=s.writeToString=s.writeToBuffer=s.writeToStream=s.write=s.format=void 0;var i=e("@fast-csv/format");Object.defineProperty(s,"format",{enumerable:!0,get:function(){return i.format}}),Object.defineProperty(s,"write",{enumerable:!0,get:function(){return i.write}}),Object.defineProperty(s,"writeToStream",{enumerable:!0,get:function(){return i.writeToStream}}),Object.defineProperty(s,"writeToBuffer",{enumerable:!0,get:function(){return i.writeToBuffer}}),Object.defineProperty(s,"writeToString",{enumerable:!0,get:function(){return i.writeToString}}),Object.defineProperty(s,"writeToPath",{enumerable:!0,get:function(){return i.writeToPath}}),Object.defineProperty(s,"CsvFormatterStream",{enumerable:!0,get:function(){return i.CsvFormatterStream}}),Object.defineProperty(s,"FormatterOptions",{enumerable:!0,get:function(){return i.FormatterOptions}});var a=e("@fast-csv/parse");Object.defineProperty(s,"parse",{enumerable:!0,get:function(){return a.parse}}),Object.defineProperty(s,"parseString",{enumerable:!0,get:function(){return a.parseString}}),Object.defineProperty(s,"parseStream",{enumerable:!0,get:function(){return a.parseStream}}),Object.defineProperty(s,"parseFile",{enumerable:!0,get:function(){return a.parseFile}}),Object.defineProperty(s,"ParserOptions",{enumerable:!0,get:function(){return a.ParserOptions}}),Object.defineProperty(s,"CsvParserStream",{enumerable:!0,get:function(){return a.CsvParserStream}})},{"@fast-csv/format":151,"@fast-csv/parse":155}],425:[function(e,r,s){var i=e("safe-buffer").Buffer,a=e("readable-stream").Transform;function o(l){a.call(this),this._block=i.allocUnsafe(l),this._blockSize=l,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}e("inherits")(o,a),o.prototype._transform=function(l,c,u){var h=null;try{this.update(l,c)}catch(d){h=d}u(h)},o.prototype._flush=function(l){var c=null;try{this.push(this.digest())}catch(u){c=u}l(c)},o.prototype.update=function(l,c){if(function(g,m){if(!i.isBuffer(g)&&typeof g!="string")throw new TypeError(m+" must be a string or a buffer")}(l,"Data"),this._finalized)throw new Error("Digest already called");i.isBuffer(l)||(l=i.from(l,c));for(var u=this._block,h=0;this._blockOffset+l.length-h>=this._blockSize;){for(var d=this._blockOffset;d<this._blockSize;)u[d++]=l[h++];this._update(),this._blockOffset=0}for(;h<l.length;)u[this._blockOffset++]=l[h++];for(var f=0,p=8*l.length;p>0;++f)this._length[f]+=p,(p=this._length[f]/4294967296|0)>0&&(this._length[f]-=4294967296*p);return this},o.prototype._update=function(){throw new Error("_update is not implemented")},o.prototype.digest=function(l){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var c=this._digest();l!==void 0&&(c=c.toString(l)),this._block.fill(0),this._blockOffset=0;for(var u=0;u<4;++u)this._length[u]=0;return c},o.prototype._digest=function(){throw new Error("_digest is not implemented")},r.exports=o},{inherits:440,"readable-stream":491,"safe-buffer":494}],426:[function(e,r,s){var i=s;i.utils=e("./hash/utils"),i.common=e("./hash/common"),i.sha=e("./hash/sha"),i.ripemd=e("./hash/ripemd"),i.hmac=e("./hash/hmac"),i.sha1=i.sha.sha1,i.sha256=i.sha.sha256,i.sha224=i.sha.sha224,i.sha384=i.sha.sha384,i.sha512=i.sha.sha512,i.ripemd160=i.ripemd.ripemd160},{"./hash/common":427,"./hash/hmac":428,"./hash/ripemd":429,"./hash/sha":430,"./hash/utils":437}],427:[function(e,r,s){var i=e("./utils"),a=e("minimalistic-assert");function o(){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}s.BlockHash=o,o.prototype.update=function(l,c){if(l=i.toArray(l,c),this.pending?this.pending=this.pending.concat(l):this.pending=l,this.pendingTotal+=l.length,this.pending.length>=this._delta8){var u=(l=this.pending).length%this._delta8;this.pending=l.slice(l.length-u,l.length),this.pending.length===0&&(this.pending=null),l=i.join32(l,0,l.length-u,this.endian);for(var h=0;h<l.length;h+=this._delta32)this._update(l,h,h+this._delta32)}return this},o.prototype.digest=function(l){return this.update(this._pad()),a(this.pending===null),this._digest(l)},o.prototype._pad=function(){var l=this.pendingTotal,c=this._delta8,u=c-(l+this.padLength)%c,h=new Array(u+this.padLength);h[0]=128;for(var d=1;d<u;d++)h[d]=0;if(l<<=3,this.endian==="big"){for(var f=8;f<this.padLength;f++)h[d++]=0;h[d++]=0,h[d++]=0,h[d++]=0,h[d++]=0,h[d++]=l>>>24&255,h[d++]=l>>>16&255,h[d++]=l>>>8&255,h[d++]=255&l}else for(h[d++]=255&l,h[d++]=l>>>8&255,h[d++]=l>>>16&255,h[d++]=l>>>24&255,h[d++]=0,h[d++]=0,h[d++]=0,h[d++]=0,f=8;f<this.padLength;f++)h[d++]=0;return h}},{"./utils":437,"minimalistic-assert":453}],428:[function(e,r,s){var i=e("./utils"),a=e("minimalistic-assert");function o(l,c,u){if(!(this instanceof o))return new o(l,c,u);this.Hash=l,this.blockSize=l.blockSize/8,this.outSize=l.outSize/8,this.inner=null,this.outer=null,this._init(i.toArray(c,u))}r.exports=o,o.prototype._init=function(l){l.length>this.blockSize&&(l=new this.Hash().update(l).digest()),a(l.length<=this.blockSize);for(var c=l.length;c<this.blockSize;c++)l.push(0);for(c=0;c<l.length;c++)l[c]^=54;for(this.inner=new this.Hash().update(l),c=0;c<l.length;c++)l[c]^=106;this.outer=new this.Hash().update(l)},o.prototype.update=function(l,c){return this.inner.update(l,c),this},o.prototype.digest=function(l){return this.outer.update(this.inner.digest()),this.outer.digest(l)}},{"./utils":437,"minimalistic-assert":453}],429:[function(e,r,s){var i=e("./utils"),a=e("./common"),o=i.rotl32,l=i.sum32,c=i.sum32_3,u=i.sum32_4,h=a.BlockHash;function d(){if(!(this instanceof d))return new d;h.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function f(T,M,j,A){return T<=15?M^j^A:T<=31?M&j|~M&A:T<=47?(M|~j)^A:T<=63?M&A|j&~A:M^(j|~A)}function p(T){return T<=15?0:T<=31?1518500249:T<=47?1859775393:T<=63?2400959708:2840853838}function g(T){return T<=15?1352829926:T<=31?1548603684:T<=47?1836072691:T<=63?2053994217:0}i.inherits(d,h),s.ripemd160=d,d.blockSize=512,d.outSize=160,d.hmacStrength=192,d.padLength=64,d.prototype._update=function(T,M){for(var j=this.h[0],A=this.h[1],B=this.h[2],H=this.h[3],U=this.h[4],X=j,V=A,O=B,N=H,C=U,x=0;x<80;x++){var S=l(o(u(j,f(x,A,B,H),T[m[x]+M],p(x)),w[x]),U);j=U,U=H,H=o(B,10),B=A,A=S,S=l(o(u(X,f(79-x,V,O,N),T[b[x]+M],g(x)),_[x]),C),X=C,C=N,N=o(O,10),O=V,V=S}S=c(this.h[1],B,N),this.h[1]=c(this.h[2],H,C),this.h[2]=c(this.h[3],U,X),this.h[3]=c(this.h[4],j,V),this.h[4]=c(this.h[0],A,O),this.h[0]=S},d.prototype._digest=function(T){return T==="hex"?i.toHex32(this.h,"little"):i.split32(this.h,"little")};var m=[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],b=[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],w=[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]},{"./common":427,"./utils":437}],430:[function(e,r,s){s.sha1=e("./sha/1"),s.sha224=e("./sha/224"),s.sha256=e("./sha/256"),s.sha384=e("./sha/384"),s.sha512=e("./sha/512")},{"./sha/1":431,"./sha/224":432,"./sha/256":433,"./sha/384":434,"./sha/512":435}],431:[function(e,r,s){var i=e("../utils"),a=e("../common"),o=e("./common"),l=i.rotl32,c=i.sum32,u=i.sum32_5,h=o.ft_1,d=a.BlockHash,f=[1518500249,1859775393,2400959708,3395469782];function p(){if(!(this instanceof p))return new p;d.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}i.inherits(p,d),r.exports=p,p.blockSize=512,p.outSize=160,p.hmacStrength=80,p.padLength=64,p.prototype._update=function(g,m){for(var b=this.W,w=0;w<16;w++)b[w]=g[m+w];for(;w<b.length;w++)b[w]=l(b[w-3]^b[w-8]^b[w-14]^b[w-16],1);var _=this.h[0],T=this.h[1],M=this.h[2],j=this.h[3],A=this.h[4];for(w=0;w<b.length;w++){var B=~~(w/20),H=u(l(_,5),h(B,T,M,j),A,b[w],f[B]);A=j,j=M,M=l(T,30),T=_,_=H}this.h[0]=c(this.h[0],_),this.h[1]=c(this.h[1],T),this.h[2]=c(this.h[2],M),this.h[3]=c(this.h[3],j),this.h[4]=c(this.h[4],A)},p.prototype._digest=function(g){return g==="hex"?i.toHex32(this.h,"big"):i.split32(this.h,"big")}},{"../common":427,"../utils":437,"./common":436}],432:[function(e,r,s){var i=e("../utils"),a=e("./256");function o(){if(!(this instanceof o))return new o;a.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}i.inherits(o,a),r.exports=o,o.blockSize=512,o.outSize=224,o.hmacStrength=192,o.padLength=64,o.prototype._digest=function(l){return l==="hex"?i.toHex32(this.h.slice(0,7),"big"):i.split32(this.h.slice(0,7),"big")}},{"../utils":437,"./256":433}],433:[function(e,r,s){var i=e("../utils"),a=e("../common"),o=e("./common"),l=e("minimalistic-assert"),c=i.sum32,u=i.sum32_4,h=i.sum32_5,d=o.ch32,f=o.maj32,p=o.s0_256,g=o.s1_256,m=o.g0_256,b=o.g1_256,w=a.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 T(){if(!(this instanceof T))return new T;w.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=_,this.W=new Array(64)}i.inherits(T,w),r.exports=T,T.blockSize=512,T.outSize=256,T.hmacStrength=192,T.padLength=64,T.prototype._update=function(M,j){for(var A=this.W,B=0;B<16;B++)A[B]=M[j+B];for(;B<A.length;B++)A[B]=u(b(A[B-2]),A[B-7],m(A[B-15]),A[B-16]);var H=this.h[0],U=this.h[1],X=this.h[2],V=this.h[3],O=this.h[4],N=this.h[5],C=this.h[6],x=this.h[7];for(l(this.k.length===A.length),B=0;B<A.length;B++){var S=h(x,g(O),d(O,N,C),this.k[B],A[B]),k=c(p(H),f(H,U,X));x=C,C=N,N=O,O=c(V,S),V=X,X=U,U=H,H=c(S,k)}this.h[0]=c(this.h[0],H),this.h[1]=c(this.h[1],U),this.h[2]=c(this.h[2],X),this.h[3]=c(this.h[3],V),this.h[4]=c(this.h[4],O),this.h[5]=c(this.h[5],N),this.h[6]=c(this.h[6],C),this.h[7]=c(this.h[7],x)},T.prototype._digest=function(M){return M==="hex"?i.toHex32(this.h,"big"):i.split32(this.h,"big")}},{"../common":427,"../utils":437,"./common":436,"minimalistic-assert":453}],434:[function(e,r,s){var i=e("../utils"),a=e("./512");function o(){if(!(this instanceof o))return new o;a.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}i.inherits(o,a),r.exports=o,o.blockSize=1024,o.outSize=384,o.hmacStrength=192,o.padLength=128,o.prototype._digest=function(l){return l==="hex"?i.toHex32(this.h.slice(0,12),"big"):i.split32(this.h.slice(0,12),"big")}},{"../utils":437,"./512":435}],435:[function(e,r,s){var i=e("../utils"),a=e("../common"),o=e("minimalistic-assert"),l=i.rotr64_hi,c=i.rotr64_lo,u=i.shr64_hi,h=i.shr64_lo,d=i.sum64,f=i.sum64_hi,p=i.sum64_lo,g=i.sum64_4_hi,m=i.sum64_4_lo,b=i.sum64_5_hi,w=i.sum64_5_lo,_=a.BlockHash,T=[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 M(){if(!(this instanceof M))return new M;_.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=T,this.W=new Array(160)}function j(k,E,I,D,F){var Y=k&I^~k&F;return Y<0&&(Y+=4294967296),Y}function A(k,E,I,D,F,Y){var J=E&D^~E&Y;return J<0&&(J+=4294967296),J}function B(k,E,I,D,F){var Y=k&I^k&F^I&F;return Y<0&&(Y+=4294967296),Y}function H(k,E,I,D,F,Y){var J=E&D^E&Y^D&Y;return J<0&&(J+=4294967296),J}function U(k,E){var I=l(k,E,28)^l(E,k,2)^l(E,k,7);return I<0&&(I+=4294967296),I}function X(k,E){var I=c(k,E,28)^c(E,k,2)^c(E,k,7);return I<0&&(I+=4294967296),I}function V(k,E){var I=l(k,E,14)^l(k,E,18)^l(E,k,9);return I<0&&(I+=4294967296),I}function O(k,E){var I=c(k,E,14)^c(k,E,18)^c(E,k,9);return I<0&&(I+=4294967296),I}function N(k,E){var I=l(k,E,1)^l(k,E,8)^u(k,E,7);return I<0&&(I+=4294967296),I}function C(k,E){var I=c(k,E,1)^c(k,E,8)^h(k,E,7);return I<0&&(I+=4294967296),I}function x(k,E){var I=l(k,E,19)^l(E,k,29)^u(k,E,6);return I<0&&(I+=4294967296),I}function S(k,E){var I=c(k,E,19)^c(E,k,29)^h(k,E,6);return I<0&&(I+=4294967296),I}i.inherits(M,_),r.exports=M,M.blockSize=1024,M.outSize=512,M.hmacStrength=192,M.padLength=128,M.prototype._prepareBlock=function(k,E){for(var I=this.W,D=0;D<32;D++)I[D]=k[E+D];for(;D<I.length;D+=2){var F=x(I[D-4],I[D-3]),Y=S(I[D-4],I[D-3]),J=I[D-14],se=I[D-13],q=N(I[D-30],I[D-29]),ee=C(I[D-30],I[D-29]),L=I[D-32],P=I[D-31];I[D]=g(F,Y,J,se,q,ee,L,P),I[D+1]=m(F,Y,J,se,q,ee,L,P)}},M.prototype._update=function(k,E){this._prepareBlock(k,E);var I=this.W,D=this.h[0],F=this.h[1],Y=this.h[2],J=this.h[3],se=this.h[4],q=this.h[5],ee=this.h[6],L=this.h[7],P=this.h[8],G=this.h[9],ne=this.h[10],ce=this.h[11],ie=this.h[12],ue=this.h[13],ve=this.h[14],we=this.h[15];o(this.k.length===I.length);for(var le=0;le<I.length;le+=2){var me=ve,ge=we,ke=V(P,G),xe=O(P,G),Ee=j(P,G,ne,ce,ie),Ie=A(P,G,ne,ce,ie,ue),Pe=this.k[le],Ae=this.k[le+1],Ge=I[le],st=I[le+1],et=b(me,ge,ke,xe,Ee,Ie,Pe,Ae,Ge,st),Rt=w(me,ge,ke,xe,Ee,Ie,Pe,Ae,Ge,st);me=U(D,F),ge=X(D,F),ke=B(D,F,Y,J,se),xe=H(D,F,Y,J,se,q);var _t=f(me,ge,ke,xe),xt=p(me,ge,ke,xe);ve=ie,we=ue,ie=ne,ue=ce,ne=P,ce=G,P=f(ee,L,et,Rt),G=p(L,L,et,Rt),ee=se,L=q,se=Y,q=J,Y=D,J=F,D=f(et,Rt,_t,xt),F=p(et,Rt,_t,xt)}d(this.h,0,D,F),d(this.h,2,Y,J),d(this.h,4,se,q),d(this.h,6,ee,L),d(this.h,8,P,G),d(this.h,10,ne,ce),d(this.h,12,ie,ue),d(this.h,14,ve,we)},M.prototype._digest=function(k){return k==="hex"?i.toHex32(this.h,"big"):i.split32(this.h,"big")}},{"../common":427,"../utils":437,"minimalistic-assert":453}],436:[function(e,r,s){var i=e("../utils").rotr32;function a(c,u,h){return c&u^~c&h}function o(c,u,h){return c&u^c&h^u&h}function l(c,u,h){return c^u^h}s.ft_1=function(c,u,h,d){return c===0?a(u,h,d):c===1||c===3?l(u,h,d):c===2?o(u,h,d):void 0},s.ch32=a,s.maj32=o,s.p32=l,s.s0_256=function(c){return i(c,2)^i(c,13)^i(c,22)},s.s1_256=function(c){return i(c,6)^i(c,11)^i(c,25)},s.g0_256=function(c){return i(c,7)^i(c,18)^c>>>3},s.g1_256=function(c){return i(c,17)^i(c,19)^c>>>10}},{"../utils":437}],437:[function(e,r,s){var i=e("minimalistic-assert"),a=e("inherits");function o(h,d){return(64512&h.charCodeAt(d))==55296&&!(d<0||d+1>=h.length)&&(64512&h.charCodeAt(d+1))==56320}function l(h){return(h>>>24|h>>>8&65280|h<<8&16711680|(255&h)<<24)>>>0}function c(h){return h.length===1?"0"+h:h}function u(h){return h.length===7?"0"+h:h.length===6?"00"+h:h.length===5?"000"+h:h.length===4?"0000"+h:h.length===3?"00000"+h:h.length===2?"000000"+h:h.length===1?"0000000"+h:h}s.inherits=a,s.toArray=function(h,d){if(Array.isArray(h))return h.slice();if(!h)return[];var f=[];if(typeof h=="string")if(d){if(d==="hex")for((h=h.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(h="0"+h),g=0;g<h.length;g+=2)f.push(parseInt(h[g]+h[g+1],16))}else for(var p=0,g=0;g<h.length;g++){var m=h.charCodeAt(g);m<128?f[p++]=m:m<2048?(f[p++]=m>>6|192,f[p++]=63&m|128):o(h,g)?(m=65536+((1023&m)<<10)+(1023&h.charCodeAt(++g)),f[p++]=m>>18|240,f[p++]=m>>12&63|128,f[p++]=m>>6&63|128,f[p++]=63&m|128):(f[p++]=m>>12|224,f[p++]=m>>6&63|128,f[p++]=63&m|128)}else for(g=0;g<h.length;g++)f[g]=0|h[g];return f},s.toHex=function(h){for(var d="",f=0;f<h.length;f++)d+=c(h[f].toString(16));return d},s.htonl=l,s.toHex32=function(h,d){for(var f="",p=0;p<h.length;p++){var g=h[p];d==="little"&&(g=l(g)),f+=u(g.toString(16))}return f},s.zero2=c,s.zero8=u,s.join32=function(h,d,f,p){var g=f-d;i(g%4==0);for(var m=new Array(g/4),b=0,w=d;b<m.length;b++,w+=4){var _;_=p==="big"?h[w]<<24|h[w+1]<<16|h[w+2]<<8|h[w+3]:h[w+3]<<24|h[w+2]<<16|h[w+1]<<8|h[w],m[b]=_>>>0}return m},s.split32=function(h,d){for(var f=new Array(4*h.length),p=0,g=0;p<h.length;p++,g+=4){var m=h[p];d==="big"?(f[g]=m>>>24,f[g+1]=m>>>16&255,f[g+2]=m>>>8&255,f[g+3]=255&m):(f[g+3]=m>>>24,f[g+2]=m>>>16&255,f[g+1]=m>>>8&255,f[g]=255&m)}return f},s.rotr32=function(h,d){return h>>>d|h<<32-d},s.rotl32=function(h,d){return h<<d|h>>>32-d},s.sum32=function(h,d){return h+d>>>0},s.sum32_3=function(h,d,f){return h+d+f>>>0},s.sum32_4=function(h,d,f,p){return h+d+f+p>>>0},s.sum32_5=function(h,d,f,p,g){return h+d+f+p+g>>>0},s.sum64=function(h,d,f,p){var g=h[d],m=p+h[d+1]>>>0,b=(m<p?1:0)+f+g;h[d]=b>>>0,h[d+1]=m},s.sum64_hi=function(h,d,f,p){return(d+p>>>0<d?1:0)+h+f>>>0},s.sum64_lo=function(h,d,f,p){return d+p>>>0},s.sum64_4_hi=function(h,d,f,p,g,m,b,w){var _=0,T=d;return _+=(T=T+p>>>0)<d?1:0,_+=(T=T+m>>>0)<m?1:0,h+f+g+b+(_+=(T=T+w>>>0)<w?1:0)>>>0},s.sum64_4_lo=function(h,d,f,p,g,m,b,w){return d+p+m+w>>>0},s.sum64_5_hi=function(h,d,f,p,g,m,b,w,_,T){var M=0,j=d;return M+=(j=j+p>>>0)<d?1:0,M+=(j=j+m>>>0)<m?1:0,M+=(j=j+w>>>0)<w?1:0,h+f+g+b+_+(M+=(j=j+T>>>0)<T?1:0)>>>0},s.sum64_5_lo=function(h,d,f,p,g,m,b,w,_,T){return d+p+m+w+T>>>0},s.rotr64_hi=function(h,d,f){return(d<<32-f|h>>>f)>>>0},s.rotr64_lo=function(h,d,f){return(h<<32-f|d>>>f)>>>0},s.shr64_hi=function(h,d,f){return h>>>f},s.shr64_lo=function(h,d,f){return(h<<32-f|d>>>f)>>>0}},{inherits:440,"minimalistic-assert":453}],438:[function(e,r,s){var i=e("hash.js"),a=e("minimalistic-crypto-utils"),o=e("minimalistic-assert");function l(c){if(!(this instanceof l))return new l(c);this.hash=c.hash,this.predResist=!!c.predResist,this.outLen=this.hash.outSize,this.minEntropy=c.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var u=a.toArray(c.entropy,c.entropyEnc||"hex"),h=a.toArray(c.nonce,c.nonceEnc||"hex"),d=a.toArray(c.pers,c.persEnc||"hex");o(u.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(u,h,d)}r.exports=l,l.prototype._init=function(c,u,h){var d=c.concat(u).concat(h);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var f=0;f<this.V.length;f++)this.K[f]=0,this.V[f]=1;this._update(d),this._reseed=1,this.reseedInterval=281474976710656},l.prototype._hmac=function(){return new i.hmac(this.hash,this.K)},l.prototype._update=function(c){var u=this._hmac().update(this.V).update([0]);c&&(u=u.update(c)),this.K=u.digest(),this.V=this._hmac().update(this.V).digest(),c&&(this.K=this._hmac().update(this.V).update([1]).update(c).digest(),this.V=this._hmac().update(this.V).digest())},l.prototype.reseed=function(c,u,h,d){typeof u!="string"&&(d=h,h=u,u=null),c=a.toArray(c,u),h=a.toArray(h,d),o(c.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(c.concat(h||[])),this._reseed=1},l.prototype.generate=function(c,u,h,d){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof u!="string"&&(d=h,h=u,u=null),h&&(h=a.toArray(h,d||"hex"),this._update(h));for(var f=[];f.length<c;)this.V=this._hmac().update(this.V).digest(),f=f.concat(this.V);var p=f.slice(0,c);return this._update(h),this._reseed++,a.encode(p,u)}},{"hash.js":426,"minimalistic-assert":453,"minimalistic-crypto-utils":454}],439:[function(e,r,s){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */s.read=function(i,a,o,l,c){var u,h,d=8*c-l-1,f=(1<<d)-1,p=f>>1,g=-7,m=o?c-1:0,b=o?-1:1,w=i[a+m];for(m+=b,u=w&(1<<-g)-1,w>>=-g,g+=d;g>0;u=256*u+i[a+m],m+=b,g-=8);for(h=u&(1<<-g)-1,u>>=-g,g+=l;g>0;h=256*h+i[a+m],m+=b,g-=8);if(u===0)u=1-p;else{if(u===f)return h?NaN:1/0*(w?-1:1);h+=Math.pow(2,l),u-=p}return(w?-1:1)*h*Math.pow(2,u-l)},s.write=function(i,a,o,l,c,u){var h,d,f,p=8*u-c-1,g=(1<<p)-1,m=g>>1,b=c===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=l?0:u-1,_=l?1:-1,T=a<0||a===0&&1/a<0?1:0;for(a=Math.abs(a),isNaN(a)||a===1/0?(d=isNaN(a)?1:0,h=g):(h=Math.floor(Math.log(a)/Math.LN2),a*(f=Math.pow(2,-h))<1&&(h--,f*=2),(a+=h+m>=1?b/f:b*Math.pow(2,1-m))*f>=2&&(h++,f/=2),h+m>=g?(d=0,h=g):h+m>=1?(d=(a*f-1)*Math.pow(2,c),h+=m):(d=a*Math.pow(2,m-1)*Math.pow(2,c),h=0));c>=8;i[o+w]=255&d,w+=_,d/=256,c-=8);for(h=h<<c|d,p+=c;p>0;i[o+w]=255&h,w+=_,h/=256,p-=8);i[o+w-_]|=128*T}},{}],440:[function(e,r,s){typeof Object.create=="function"?r.exports=function(i,a){a&&(i.super_=a,i.prototype=Object.create(a.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}))}:r.exports=function(i,a){if(a){i.super_=a;var o=function(){};o.prototype=a.prototype,i.prototype=new o,i.prototype.constructor=i}}},{}],441:[function(e,r,s){(function(i,a,o,l,c,u,h,d){(function(){/*!
435
435
 
436
436
  JSZip v3.10.1 - A JavaScript class for generating and reading zip files
@@ -442,7 +442,7 @@ img.ProseMirror-separator {
442
442
  JSZip uses the library pako released under the MIT license :
443
443
  https://github.com/nodeca/pako/blob/main/LICENSE
444
444
  */(function(f){typeof s=="object"&&r!==void 0?r.exports=f():(typeof window<"u"?window:a!==void 0?a:typeof self<"u"?self:this).JSZip=f()})(function(){return function f(p,g,m){function b(T,M){if(!g[T]){if(!p[T]){var j=typeof e=="function"&&e;if(!M&&j)return j(T,!0);if(w)return w(T,!0);var A=new Error("Cannot find module '"+T+"'");throw A.code="MODULE_NOT_FOUND",A}var B=g[T]={exports:{}};p[T][0].call(B.exports,function(H){return b(p[T][1][H]||H)},B,B.exports,f,p,g,m)}return g[T].exports}for(var w=typeof e=="function"&&e,_=0;_<m.length;_++)b(m[_]);return b}({1:[function(f,p,g){var m=f("./utils"),b=f("./support"),w="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";g.encode=function(_){for(var T,M,j,A,B,H,U,X=[],V=0,O=_.length,N=O,C=m.getTypeOf(_)!=="string";V<_.length;)N=O-V,j=C?(T=_[V++],M=V<O?_[V++]:0,V<O?_[V++]:0):(T=_.charCodeAt(V++),M=V<O?_.charCodeAt(V++):0,V<O?_.charCodeAt(V++):0),A=T>>2,B=(3&T)<<4|M>>4,H=1<N?(15&M)<<2|j>>6:64,U=2<N?63&j:64,X.push(w.charAt(A)+w.charAt(B)+w.charAt(H)+w.charAt(U));return X.join("")},g.decode=function(_){var T,M,j,A,B,H,U=0,X=0,V="data:";if(_.substr(0,V.length)===V)throw new Error("Invalid base64 input, it looks like a data url.");var O,N=3*(_=_.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(_.charAt(_.length-1)===w.charAt(64)&&N--,_.charAt(_.length-2)===w.charAt(64)&&N--,N%1!=0)throw new Error("Invalid base64 input, bad content length.");for(O=b.uint8array?new Uint8Array(0|N):new Array(0|N);U<_.length;)T=w.indexOf(_.charAt(U++))<<2|(A=w.indexOf(_.charAt(U++)))>>4,M=(15&A)<<4|(B=w.indexOf(_.charAt(U++)))>>2,j=(3&B)<<6|(H=w.indexOf(_.charAt(U++))),O[X++]=T,B!==64&&(O[X++]=M),H!==64&&(O[X++]=j);return O}},{"./support":30,"./utils":32}],2:[function(f,p,g){var m=f("./external"),b=f("./stream/DataWorker"),w=f("./stream/Crc32Probe"),_=f("./stream/DataLengthProbe");function T(M,j,A,B,H){this.compressedSize=M,this.uncompressedSize=j,this.crc32=A,this.compression=B,this.compressedContent=H}T.prototype={getContentWorker:function(){var M=new b(m.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new _("data_length")),j=this;return M.on("end",function(){if(this.streamInfo.data_length!==j.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),M},getCompressedWorker:function(){return new b(m.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},T.createWorkerFrom=function(M,j,A){return M.pipe(new w).pipe(new _("uncompressedSize")).pipe(j.compressWorker(A)).pipe(new _("compressedSize")).withStreamInfo("compression",j)},p.exports=T},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(f,p,g){var m=f("./stream/GenericWorker");g.STORE={magic:"\0\0",compressWorker:function(){return new m("STORE compression")},uncompressWorker:function(){return new m("STORE decompression")}},g.DEFLATE=f("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(f,p,g){var m=f("./utils"),b=function(){for(var w,_=[],T=0;T<256;T++){w=T;for(var M=0;M<8;M++)w=1&w?3988292384^w>>>1:w>>>1;_[T]=w}return _}();p.exports=function(w,_){return w!==void 0&&w.length?m.getTypeOf(w)!=="string"?function(T,M,j,A){var B=b,H=0+j;T^=-1;for(var U=0;U<H;U++)T=T>>>8^B[255&(T^M[U])];return-1^T}(0|_,w,w.length):function(T,M,j,A){var B=b,H=0+j;T^=-1;for(var U=0;U<H;U++)T=T>>>8^B[255&(T^M.charCodeAt(U))];return-1^T}(0|_,w,w.length):0}},{"./utils":32}],5:[function(f,p,g){g.base64=!1,g.binary=!1,g.dir=!1,g.createFolders=!0,g.date=null,g.compression=null,g.compressionOptions=null,g.comment=null,g.unixPermissions=null,g.dosPermissions=null},{}],6:[function(f,p,g){var m;m=typeof Promise<"u"?Promise:f("lie"),p.exports={Promise:m}},{lie:37}],7:[function(f,p,g){var m=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",b=f("pako"),w=f("./utils"),_=f("./stream/GenericWorker"),T=m?"uint8array":"array";function M(j,A){_.call(this,"FlateWorker/"+j),this._pako=null,this._pakoAction=j,this._pakoOptions=A,this.meta={}}g.magic="\b\0",w.inherits(M,_),M.prototype.processChunk=function(j){this.meta=j.meta,this._pako===null&&this._createPako(),this._pako.push(w.transformTo(T,j.data),!1)},M.prototype.flush=function(){_.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},M.prototype.cleanUp=function(){_.prototype.cleanUp.call(this),this._pako=null},M.prototype._createPako=function(){this._pako=new b[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var j=this;this._pako.onData=function(A){j.push({data:A,meta:j.meta})}},g.compressWorker=function(j){return new M("Deflate",j)},g.uncompressWorker=function(){return new M("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(f,p,g){function m(B,H){var U,X="";for(U=0;U<H;U++)X+=String.fromCharCode(255&B),B>>>=8;return X}function b(B,H,U,X,V,O){var N,C,x=B.file,S=B.compression,k=O!==T.utf8encode,E=w.transformTo("string",O(x.name)),I=w.transformTo("string",T.utf8encode(x.name)),D=x.comment,F=w.transformTo("string",O(D)),Y=w.transformTo("string",T.utf8encode(D)),J=I.length!==x.name.length,se=Y.length!==D.length,q="",ee="",L="",P=x.dir,G=x.date,ne={crc32:0,compressedSize:0,uncompressedSize:0};H&&!U||(ne.crc32=B.crc32,ne.compressedSize=B.compressedSize,ne.uncompressedSize=B.uncompressedSize);var ce=0;H&&(ce|=8),k||!J&&!se||(ce|=2048);var ie=0,ue=0;P&&(ie|=16),V==="UNIX"?(ue=798,ie|=function(we,le){var me=we;return we||(me=le?16893:33204),(65535&me)<<16}(x.unixPermissions,P)):(ue=20,ie|=function(we){return 63&(we||0)}(x.dosPermissions)),N=G.getUTCHours(),N<<=6,N|=G.getUTCMinutes(),N<<=5,N|=G.getUTCSeconds()/2,C=G.getUTCFullYear()-1980,C<<=4,C|=G.getUTCMonth()+1,C<<=5,C|=G.getUTCDate(),J&&(ee=m(1,1)+m(M(E),4)+I,q+="up"+m(ee.length,2)+ee),se&&(L=m(1,1)+m(M(F),4)+Y,q+="uc"+m(L.length,2)+L);var ve="";return ve+=`
445
- \0`,ve+=m(ce,2),ve+=S.magic,ve+=m(N,2),ve+=m(C,2),ve+=m(ne.crc32,4),ve+=m(ne.compressedSize,4),ve+=m(ne.uncompressedSize,4),ve+=m(E.length,2),ve+=m(q.length,2),{fileRecord:j.LOCAL_FILE_HEADER+ve+E+q,dirRecord:j.CENTRAL_FILE_HEADER+m(ue,2)+ve+m(F.length,2)+"\0\0\0\0"+m(ie,4)+m(X,4)+E+q+F}}var w=f("../utils"),_=f("../stream/GenericWorker"),T=f("../utf8"),M=f("../crc32"),j=f("../signature");function A(B,H,U,X){_.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=H,this.zipPlatform=U,this.encodeFileName=X,this.streamFiles=B,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}w.inherits(A,_),A.prototype.push=function(B){var H=B.meta.percent||0,U=this.entriesCount,X=this._sources.length;this.accumulate?this.contentBuffer.push(B):(this.bytesWritten+=B.data.length,_.prototype.push.call(this,{data:B.data,meta:{currentFile:this.currentFile,percent:U?(H+100*(U-X-1))/U:100}}))},A.prototype.openedSource=function(B){this.currentSourceOffset=this.bytesWritten,this.currentFile=B.file.name;var H=this.streamFiles&&!B.file.dir;if(H){var U=b(B,H,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:U.fileRecord,meta:{percent:0}})}else this.accumulate=!0},A.prototype.closedSource=function(B){this.accumulate=!1;var H=this.streamFiles&&!B.file.dir,U=b(B,H,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(U.dirRecord),H)this.push({data:function(X){return j.DATA_DESCRIPTOR+m(X.crc32,4)+m(X.compressedSize,4)+m(X.uncompressedSize,4)}(B),meta:{percent:100}});else for(this.push({data:U.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},A.prototype.flush=function(){for(var B=this.bytesWritten,H=0;H<this.dirRecords.length;H++)this.push({data:this.dirRecords[H],meta:{percent:100}});var U=this.bytesWritten-B,X=function(V,O,N,C,x){var S=w.transformTo("string",x(C));return j.CENTRAL_DIRECTORY_END+"\0\0\0\0"+m(V,2)+m(V,2)+m(O,4)+m(N,4)+m(S.length,2)+S}(this.dirRecords.length,U,B,this.zipComment,this.encodeFileName);this.push({data:X,meta:{percent:100}})},A.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},A.prototype.registerPrevious=function(B){this._sources.push(B);var H=this;return B.on("data",function(U){H.processChunk(U)}),B.on("end",function(){H.closedSource(H.previous.streamInfo),H._sources.length?H.prepareNextSource():H.end()}),B.on("error",function(U){H.error(U)}),this},A.prototype.resume=function(){return!!_.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},A.prototype.error=function(B){var H=this._sources;if(!_.prototype.error.call(this,B))return!1;for(var U=0;U<H.length;U++)try{H[U].error(B)}catch{}return!0},A.prototype.lock=function(){_.prototype.lock.call(this);for(var B=this._sources,H=0;H<B.length;H++)B[H].lock()},p.exports=A},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(f,p,g){var m=f("../compressions"),b=f("./ZipFileWorker");g.generateWorker=function(w,_,T){var M=new b(_.streamFiles,T,_.platform,_.encodeFileName),j=0;try{w.forEach(function(A,B){j++;var H=function(O,N){var C=O||N,x=m[C];if(!x)throw new Error(C+" is not a valid compression method !");return x}(B.options.compression,_.compression),U=B.options.compressionOptions||_.compressionOptions||{},X=B.dir,V=B.date;B._compressWorker(H,U).withStreamInfo("file",{name:A,dir:X,date:V,comment:B.comment||"",unixPermissions:B.unixPermissions,dosPermissions:B.dosPermissions}).pipe(M)}),M.entriesCount=j}catch(A){M.error(A)}return M}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(f,p,g){function m(){if(!(this instanceof m))return new m;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var b=new m;for(var w in this)typeof this[w]!="function"&&(b[w]=this[w]);return b}}(m.prototype=f("./object")).loadAsync=f("./load"),m.support=f("./support"),m.defaults=f("./defaults"),m.version="3.10.1",m.loadAsync=function(b,w){return new m().loadAsync(b,w)},m.external=f("./external"),p.exports=m},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(f,p,g){var m=f("./utils"),b=f("./external"),w=f("./utf8"),_=f("./zipEntries"),T=f("./stream/Crc32Probe"),M=f("./nodejsUtils");function j(A){return new b.Promise(function(B,H){var U=A.decompressed.getContentWorker().pipe(new T);U.on("error",function(X){H(X)}).on("end",function(){U.streamInfo.crc32!==A.decompressed.crc32?H(new Error("Corrupted zip : CRC32 mismatch")):B()}).resume()})}p.exports=function(A,B){var H=this;return B=m.extend(B||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:w.utf8decode}),M.isNode&&M.isStream(A)?b.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):m.prepareContent("the loaded zip file",A,!0,B.optimizedBinaryString,B.base64).then(function(U){var X=new _(B);return X.load(U),X}).then(function(U){var X=[b.Promise.resolve(U)],V=U.files;if(B.checkCRC32)for(var O=0;O<V.length;O++)X.push(j(V[O]));return b.Promise.all(X)}).then(function(U){for(var X=U.shift(),V=X.files,O=0;O<V.length;O++){var N=V[O],C=N.fileNameStr,x=m.resolve(N.fileNameStr);H.file(x,N.decompressed,{binary:!0,optimizedBinaryString:!0,date:N.date,dir:N.dir,comment:N.fileCommentStr.length?N.fileCommentStr:null,unixPermissions:N.unixPermissions,dosPermissions:N.dosPermissions,createFolders:B.createFolders}),N.dir||(H.file(x).unsafeOriginalName=C)}return X.zipComment.length&&(H.comment=X.zipComment),H})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(f,p,g){var m=f("../utils"),b=f("../stream/GenericWorker");function w(_,T){b.call(this,"Nodejs stream input adapter for "+_),this._upstreamEnded=!1,this._bindStream(T)}m.inherits(w,b),w.prototype._bindStream=function(_){var T=this;(this._stream=_).pause(),_.on("data",function(M){T.push({data:M,meta:{percent:0}})}).on("error",function(M){T.isPaused?this.generatedError=M:T.error(M)}).on("end",function(){T.isPaused?T._upstreamEnded=!0:T.end()})},w.prototype.pause=function(){return!!b.prototype.pause.call(this)&&(this._stream.pause(),!0)},w.prototype.resume=function(){return!!b.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},p.exports=w},{"../stream/GenericWorker":28,"../utils":32}],13:[function(f,p,g){var m=f("readable-stream").Readable;function b(w,_,T){m.call(this,_),this._helper=w;var M=this;w.on("data",function(j,A){M.push(j)||M._helper.pause(),T&&T(A)}).on("error",function(j){M.emit("error",j)}).on("end",function(){M.push(null)})}f("../utils").inherits(b,m),b.prototype._read=function(){this._helper.resume()},p.exports=b},{"../utils":32,"readable-stream":16}],14:[function(f,p,g){p.exports={isNode:o!==void 0,newBufferFrom:function(m,b){if(o.from&&o.from!==Uint8Array.from)return o.from(m,b);if(typeof m=="number")throw new Error('The "data" argument must not be a number');return new o(m,b)},allocBuffer:function(m){if(o.alloc)return o.alloc(m);var b=new o(m);return b.fill(0),b},isBuffer:function(m){return o.isBuffer(m)},isStream:function(m){return m&&typeof m.on=="function"&&typeof m.pause=="function"&&typeof m.resume=="function"}}},{}],15:[function(f,p,g){function m(x,S,k){var E,I=w.getTypeOf(S),D=w.extend(k||{},M);D.date=D.date||new Date,D.compression!==null&&(D.compression=D.compression.toUpperCase()),typeof D.unixPermissions=="string"&&(D.unixPermissions=parseInt(D.unixPermissions,8)),D.unixPermissions&&16384&D.unixPermissions&&(D.dir=!0),D.dosPermissions&&16&D.dosPermissions&&(D.dir=!0),D.dir&&(x=V(x)),D.createFolders&&(E=X(x))&&O.call(this,E,!0);var F=I==="string"&&D.binary===!1&&D.base64===!1;k&&k.binary!==void 0||(D.binary=!F),(S instanceof j&&S.uncompressedSize===0||D.dir||!S||S.length===0)&&(D.base64=!1,D.binary=!0,S="",D.compression="STORE",I="string");var Y;Y=S instanceof j||S instanceof _?S:H.isNode&&H.isStream(S)?new U(x,S):w.prepareContent(x,S,D.binary,D.optimizedBinaryString,D.base64);var J=new A(x,Y,D);this.files[x]=J}var b=f("./utf8"),w=f("./utils"),_=f("./stream/GenericWorker"),T=f("./stream/StreamHelper"),M=f("./defaults"),j=f("./compressedObject"),A=f("./zipObject"),B=f("./generate"),H=f("./nodejsUtils"),U=f("./nodejs/NodejsStreamInputAdapter"),X=function(x){x.slice(-1)==="/"&&(x=x.substring(0,x.length-1));var S=x.lastIndexOf("/");return 0<S?x.substring(0,S):""},V=function(x){return x.slice(-1)!=="/"&&(x+="/"),x},O=function(x,S){return S=S!==void 0?S:M.createFolders,x=V(x),this.files[x]||m.call(this,x,null,{dir:!0,createFolders:S}),this.files[x]};function N(x){return Object.prototype.toString.call(x)==="[object RegExp]"}var C={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(x){var S,k,E;for(S in this.files)E=this.files[S],(k=S.slice(this.root.length,S.length))&&S.slice(0,this.root.length)===this.root&&x(k,E)},filter:function(x){var S=[];return this.forEach(function(k,E){x(k,E)&&S.push(E)}),S},file:function(x,S,k){if(arguments.length!==1)return x=this.root+x,m.call(this,x,S,k),this;if(N(x)){var E=x;return this.filter(function(D,F){return!F.dir&&E.test(D)})}var I=this.files[this.root+x];return I&&!I.dir?I:null},folder:function(x){if(!x)return this;if(N(x))return this.filter(function(I,D){return D.dir&&x.test(I)});var S=this.root+x,k=O.call(this,S),E=this.clone();return E.root=k.name,E},remove:function(x){x=this.root+x;var S=this.files[x];if(S||(x.slice(-1)!=="/"&&(x+="/"),S=this.files[x]),S&&!S.dir)delete this.files[x];else for(var k=this.filter(function(I,D){return D.name.slice(0,x.length)===x}),E=0;E<k.length;E++)delete this.files[k[E].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(x){var S,k={};try{if((k=w.extend(x||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:b.utf8encode})).type=k.type.toLowerCase(),k.compression=k.compression.toUpperCase(),k.type==="binarystring"&&(k.type="string"),!k.type)throw new Error("No output type specified.");w.checkSupport(k.type),k.platform!=="darwin"&&k.platform!=="freebsd"&&k.platform!=="linux"&&k.platform!=="sunos"||(k.platform="UNIX"),k.platform==="win32"&&(k.platform="DOS");var E=k.comment||this.comment||"";S=B.generateWorker(this,k,E)}catch(I){(S=new _("error")).error(I)}return new T(S,k.type||"string",k.mimeType)},generateAsync:function(x,S){return this.generateInternalStream(x).accumulate(S)},generateNodeStream:function(x,S){return(x=x||{}).type||(x.type="nodebuffer"),this.generateInternalStream(x).toNodejsStream(S)}};p.exports=C},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(f,p,g){p.exports=f("stream")},{stream:void 0}],17:[function(f,p,g){var m=f("./DataReader");function b(w){m.call(this,w);for(var _=0;_<this.data.length;_++)w[_]=255&w[_]}f("../utils").inherits(b,m),b.prototype.byteAt=function(w){return this.data[this.zero+w]},b.prototype.lastIndexOfSignature=function(w){for(var _=w.charCodeAt(0),T=w.charCodeAt(1),M=w.charCodeAt(2),j=w.charCodeAt(3),A=this.length-4;0<=A;--A)if(this.data[A]===_&&this.data[A+1]===T&&this.data[A+2]===M&&this.data[A+3]===j)return A-this.zero;return-1},b.prototype.readAndCheckSignature=function(w){var _=w.charCodeAt(0),T=w.charCodeAt(1),M=w.charCodeAt(2),j=w.charCodeAt(3),A=this.readData(4);return _===A[0]&&T===A[1]&&M===A[2]&&j===A[3]},b.prototype.readData=function(w){if(this.checkOffset(w),w===0)return[];var _=this.data.slice(this.zero+this.index,this.zero+this.index+w);return this.index+=w,_},p.exports=b},{"../utils":32,"./DataReader":18}],18:[function(f,p,g){var m=f("../utils");function b(w){this.data=w,this.length=w.length,this.index=0,this.zero=0}b.prototype={checkOffset:function(w){this.checkIndex(this.index+w)},checkIndex:function(w){if(this.length<this.zero+w||w<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+w+"). Corrupted zip ?")},setIndex:function(w){this.checkIndex(w),this.index=w},skip:function(w){this.setIndex(this.index+w)},byteAt:function(){},readInt:function(w){var _,T=0;for(this.checkOffset(w),_=this.index+w-1;_>=this.index;_--)T=(T<<8)+this.byteAt(_);return this.index+=w,T},readString:function(w){return m.transformTo("string",this.readData(w))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var w=this.readInt(4);return new Date(Date.UTC(1980+(w>>25&127),(w>>21&15)-1,w>>16&31,w>>11&31,w>>5&63,(31&w)<<1))}},p.exports=b},{"../utils":32}],19:[function(f,p,g){var m=f("./Uint8ArrayReader");function b(w){m.call(this,w)}f("../utils").inherits(b,m),b.prototype.readData=function(w){this.checkOffset(w);var _=this.data.slice(this.zero+this.index,this.zero+this.index+w);return this.index+=w,_},p.exports=b},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(f,p,g){var m=f("./DataReader");function b(w){m.call(this,w)}f("../utils").inherits(b,m),b.prototype.byteAt=function(w){return this.data.charCodeAt(this.zero+w)},b.prototype.lastIndexOfSignature=function(w){return this.data.lastIndexOf(w)-this.zero},b.prototype.readAndCheckSignature=function(w){return w===this.readData(4)},b.prototype.readData=function(w){this.checkOffset(w);var _=this.data.slice(this.zero+this.index,this.zero+this.index+w);return this.index+=w,_},p.exports=b},{"../utils":32,"./DataReader":18}],21:[function(f,p,g){var m=f("./ArrayReader");function b(w){m.call(this,w)}f("../utils").inherits(b,m),b.prototype.readData=function(w){if(this.checkOffset(w),w===0)return new Uint8Array(0);var _=this.data.subarray(this.zero+this.index,this.zero+this.index+w);return this.index+=w,_},p.exports=b},{"../utils":32,"./ArrayReader":17}],22:[function(f,p,g){var m=f("../utils"),b=f("../support"),w=f("./ArrayReader"),_=f("./StringReader"),T=f("./NodeBufferReader"),M=f("./Uint8ArrayReader");p.exports=function(j){var A=m.getTypeOf(j);return m.checkSupport(A),A!=="string"||b.uint8array?A==="nodebuffer"?new T(j):b.uint8array?new M(m.transformTo("uint8array",j)):new w(m.transformTo("array",j)):new _(j)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(f,p,g){g.LOCAL_FILE_HEADER="PK",g.CENTRAL_FILE_HEADER="PK",g.CENTRAL_DIRECTORY_END="PK",g.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",g.ZIP64_CENTRAL_DIRECTORY_END="PK",g.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(f,p,g){var m=f("./GenericWorker"),b=f("../utils");function w(_){m.call(this,"ConvertWorker to "+_),this.destType=_}b.inherits(w,m),w.prototype.processChunk=function(_){this.push({data:b.transformTo(this.destType,_.data),meta:_.meta})},p.exports=w},{"../utils":32,"./GenericWorker":28}],25:[function(f,p,g){var m=f("./GenericWorker"),b=f("../crc32");function w(){m.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}f("../utils").inherits(w,m),w.prototype.processChunk=function(_){this.streamInfo.crc32=b(_.data,this.streamInfo.crc32||0),this.push(_)},p.exports=w},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(f,p,g){var m=f("../utils"),b=f("./GenericWorker");function w(_){b.call(this,"DataLengthProbe for "+_),this.propName=_,this.withStreamInfo(_,0)}m.inherits(w,b),w.prototype.processChunk=function(_){if(_){var T=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=T+_.data.length}b.prototype.processChunk.call(this,_)},p.exports=w},{"../utils":32,"./GenericWorker":28}],27:[function(f,p,g){var m=f("../utils"),b=f("./GenericWorker");function w(_){b.call(this,"DataWorker");var T=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,_.then(function(M){T.dataIsReady=!0,T.data=M,T.max=M&&M.length||0,T.type=m.getTypeOf(M),T.isPaused||T._tickAndRepeat()},function(M){T.error(M)})}m.inherits(w,b),w.prototype.cleanUp=function(){b.prototype.cleanUp.call(this),this.data=null},w.prototype.resume=function(){return!!b.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,m.delay(this._tickAndRepeat,[],this)),!0)},w.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(m.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},w.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var _=null,T=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":_=this.data.substring(this.index,T);break;case"uint8array":_=this.data.subarray(this.index,T);break;case"array":case"nodebuffer":_=this.data.slice(this.index,T)}return this.index=T,this.push({data:_,meta:{percent:this.max?this.index/this.max*100:0}})},p.exports=w},{"../utils":32,"./GenericWorker":28}],28:[function(f,p,g){function m(b){this.name=b||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}m.prototype={push:function(b){this.emit("data",b)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(b){this.emit("error",b)}return!0},error:function(b){return!this.isFinished&&(this.isPaused?this.generatedError=b:(this.isFinished=!0,this.emit("error",b),this.previous&&this.previous.error(b),this.cleanUp()),!0)},on:function(b,w){return this._listeners[b].push(w),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(b,w){if(this._listeners[b])for(var _=0;_<this._listeners[b].length;_++)this._listeners[b][_].call(this,w)},pipe:function(b){return b.registerPrevious(this)},registerPrevious:function(b){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=b.streamInfo,this.mergeStreamInfo(),this.previous=b;var w=this;return b.on("data",function(_){w.processChunk(_)}),b.on("end",function(){w.end()}),b.on("error",function(_){w.error(_)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var b=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),b=!0),this.previous&&this.previous.resume(),!b},flush:function(){},processChunk:function(b){this.push(b)},withStreamInfo:function(b,w){return this.extraStreamInfo[b]=w,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var b in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,b)&&(this.streamInfo[b]=this.extraStreamInfo[b])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var b="Worker "+this.name;return this.previous?this.previous+" -> "+b:b}},p.exports=m},{}],29:[function(f,p,g){var m=f("../utils"),b=f("./ConvertWorker"),w=f("./GenericWorker"),_=f("../base64"),T=f("../support"),M=f("../external"),j=null;if(T.nodestream)try{j=f("../nodejs/NodejsStreamOutputAdapter")}catch{}function A(B,H,U){var X=H;switch(H){case"blob":case"arraybuffer":X="uint8array";break;case"base64":X="string"}try{this._internalType=X,this._outputType=H,this._mimeType=U,m.checkSupport(X),this._worker=B.pipe(new b(X)),B.lock()}catch(V){this._worker=new w("error"),this._worker.error(V)}}A.prototype={accumulate:function(B){return function(H,U){return new M.Promise(function(X,V){var O=[],N=H._internalType,C=H._outputType,x=H._mimeType;H.on("data",function(S,k){O.push(S),U&&U(k)}).on("error",function(S){O=[],V(S)}).on("end",function(){try{var S=function(k,E,I){switch(k){case"blob":return m.newBlob(m.transformTo("arraybuffer",E),I);case"base64":return _.encode(E);default:return m.transformTo(k,E)}}(C,function(k,E){var I,D=0,F=null,Y=0;for(I=0;I<E.length;I++)Y+=E[I].length;switch(k){case"string":return E.join("");case"array":return Array.prototype.concat.apply([],E);case"uint8array":for(F=new Uint8Array(Y),I=0;I<E.length;I++)F.set(E[I],D),D+=E[I].length;return F;case"nodebuffer":return o.concat(E);default:throw new Error("concat : unsupported type '"+k+"'")}}(N,O),x);X(S)}catch(k){V(k)}O=[]}).resume()})}(this,B)},on:function(B,H){var U=this;return B==="data"?this._worker.on(B,function(X){H.call(U,X.data,X.meta)}):this._worker.on(B,function(){m.delay(H,arguments,U)}),this},resume:function(){return m.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(B){if(m.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new j(this,{objectMode:this._outputType!=="nodebuffer"},B)}},p.exports=A},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(f,p,g){if(g.base64=!0,g.array=!0,g.string=!0,g.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",g.nodebuffer=o!==void 0,g.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")g.blob=!1;else{var m=new ArrayBuffer(0);try{g.blob=new Blob([m],{type:"application/zip"}).size===0}catch{try{var b=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);b.append(m),g.blob=b.getBlob("application/zip").size===0}catch{g.blob=!1}}}try{g.nodestream=!!f("readable-stream").Readable}catch{g.nodestream=!1}},{"readable-stream":16}],31:[function(f,p,g){for(var m=f("./utils"),b=f("./support"),w=f("./nodejsUtils"),_=f("./stream/GenericWorker"),T=new Array(256),M=0;M<256;M++)T[M]=252<=M?6:248<=M?5:240<=M?4:224<=M?3:192<=M?2:1;function j(){_.call(this,"utf-8 decode"),this.leftOver=null}function A(){_.call(this,"utf-8 encode")}T[254]=T[254]=1,g.utf8encode=function(B){return b.nodebuffer?w.newBufferFrom(B,"utf-8"):function(H){var U,X,V,O,N,C=H.length,x=0;for(O=0;O<C;O++)(64512&(X=H.charCodeAt(O)))==55296&&O+1<C&&(64512&(V=H.charCodeAt(O+1)))==56320&&(X=65536+(X-55296<<10)+(V-56320),O++),x+=X<128?1:X<2048?2:X<65536?3:4;for(U=b.uint8array?new Uint8Array(x):new Array(x),O=N=0;N<x;O++)(64512&(X=H.charCodeAt(O)))==55296&&O+1<C&&(64512&(V=H.charCodeAt(O+1)))==56320&&(X=65536+(X-55296<<10)+(V-56320),O++),X<128?U[N++]=X:(X<2048?U[N++]=192|X>>>6:(X<65536?U[N++]=224|X>>>12:(U[N++]=240|X>>>18,U[N++]=128|X>>>12&63),U[N++]=128|X>>>6&63),U[N++]=128|63&X);return U}(B)},g.utf8decode=function(B){return b.nodebuffer?m.transformTo("nodebuffer",B).toString("utf-8"):function(H){var U,X,V,O,N=H.length,C=new Array(2*N);for(U=X=0;U<N;)if((V=H[U++])<128)C[X++]=V;else if(4<(O=T[V]))C[X++]=65533,U+=O-1;else{for(V&=O===2?31:O===3?15:7;1<O&&U<N;)V=V<<6|63&H[U++],O--;1<O?C[X++]=65533:V<65536?C[X++]=V:(V-=65536,C[X++]=55296|V>>10&1023,C[X++]=56320|1023&V)}return C.length!==X&&(C.subarray?C=C.subarray(0,X):C.length=X),m.applyFromCharCode(C)}(B=m.transformTo(b.uint8array?"uint8array":"array",B))},m.inherits(j,_),j.prototype.processChunk=function(B){var H=m.transformTo(b.uint8array?"uint8array":"array",B.data);if(this.leftOver&&this.leftOver.length){if(b.uint8array){var U=H;(H=new Uint8Array(U.length+this.leftOver.length)).set(this.leftOver,0),H.set(U,this.leftOver.length)}else H=this.leftOver.concat(H);this.leftOver=null}var X=function(O,N){var C;for((N=N||O.length)>O.length&&(N=O.length),C=N-1;0<=C&&(192&O[C])==128;)C--;return C<0||C===0?N:C+T[O[C]]>N?C:N}(H),V=H;X!==H.length&&(b.uint8array?(V=H.subarray(0,X),this.leftOver=H.subarray(X,H.length)):(V=H.slice(0,X),this.leftOver=H.slice(X,H.length))),this.push({data:g.utf8decode(V),meta:B.meta})},j.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:g.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},g.Utf8DecodeWorker=j,m.inherits(A,_),A.prototype.processChunk=function(B){this.push({data:g.utf8encode(B.data),meta:B.meta})},g.Utf8EncodeWorker=A},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(f,p,g){var m=f("./support"),b=f("./base64"),w=f("./nodejsUtils"),_=f("./external");function T(U){return U}function M(U,X){for(var V=0;V<U.length;++V)X[V]=255&U.charCodeAt(V);return X}f("setimmediate"),g.newBlob=function(U,X){g.checkSupport("blob");try{return new Blob([U],{type:X})}catch{try{var V=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return V.append(U),V.getBlob(X)}catch{throw new Error("Bug : can't construct the Blob.")}}};var j={stringifyByChunk:function(U,X,V){var O=[],N=0,C=U.length;if(C<=V)return String.fromCharCode.apply(null,U);for(;N<C;)X==="array"||X==="nodebuffer"?O.push(String.fromCharCode.apply(null,U.slice(N,Math.min(N+V,C)))):O.push(String.fromCharCode.apply(null,U.subarray(N,Math.min(N+V,C)))),N+=V;return O.join("")},stringifyByChar:function(U){for(var X="",V=0;V<U.length;V++)X+=String.fromCharCode(U[V]);return X},applyCanBeUsed:{uint8array:function(){try{return m.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return m.nodebuffer&&String.fromCharCode.apply(null,w.allocBuffer(1)).length===1}catch{return!1}}()}};function A(U){var X=65536,V=g.getTypeOf(U),O=!0;if(V==="uint8array"?O=j.applyCanBeUsed.uint8array:V==="nodebuffer"&&(O=j.applyCanBeUsed.nodebuffer),O)for(;1<X;)try{return j.stringifyByChunk(U,V,X)}catch{X=Math.floor(X/2)}return j.stringifyByChar(U)}function B(U,X){for(var V=0;V<U.length;V++)X[V]=U[V];return X}g.applyFromCharCode=A;var H={};H.string={string:T,array:function(U){return M(U,new Array(U.length))},arraybuffer:function(U){return H.string.uint8array(U).buffer},uint8array:function(U){return M(U,new Uint8Array(U.length))},nodebuffer:function(U){return M(U,w.allocBuffer(U.length))}},H.array={string:A,array:T,arraybuffer:function(U){return new Uint8Array(U).buffer},uint8array:function(U){return new Uint8Array(U)},nodebuffer:function(U){return w.newBufferFrom(U)}},H.arraybuffer={string:function(U){return A(new Uint8Array(U))},array:function(U){return B(new Uint8Array(U),new Array(U.byteLength))},arraybuffer:T,uint8array:function(U){return new Uint8Array(U)},nodebuffer:function(U){return w.newBufferFrom(new Uint8Array(U))}},H.uint8array={string:A,array:function(U){return B(U,new Array(U.length))},arraybuffer:function(U){return U.buffer},uint8array:T,nodebuffer:function(U){return w.newBufferFrom(U)}},H.nodebuffer={string:A,array:function(U){return B(U,new Array(U.length))},arraybuffer:function(U){return H.nodebuffer.uint8array(U).buffer},uint8array:function(U){return B(U,new Uint8Array(U.length))},nodebuffer:T},g.transformTo=function(U,X){if(X=X||"",!U)return X;g.checkSupport(U);var V=g.getTypeOf(X);return H[V][U](X)},g.resolve=function(U){for(var X=U.split("/"),V=[],O=0;O<X.length;O++){var N=X[O];N==="."||N===""&&O!==0&&O!==X.length-1||(N===".."?V.pop():V.push(N))}return V.join("/")},g.getTypeOf=function(U){return typeof U=="string"?"string":Object.prototype.toString.call(U)==="[object Array]"?"array":m.nodebuffer&&w.isBuffer(U)?"nodebuffer":m.uint8array&&U instanceof Uint8Array?"uint8array":m.arraybuffer&&U instanceof ArrayBuffer?"arraybuffer":void 0},g.checkSupport=function(U){if(!m[U.toLowerCase()])throw new Error(U+" is not supported by this platform")},g.MAX_VALUE_16BITS=65535,g.MAX_VALUE_32BITS=-1,g.pretty=function(U){var X,V,O="";for(V=0;V<(U||"").length;V++)O+="\\x"+((X=U.charCodeAt(V))<16?"0":"")+X.toString(16).toUpperCase();return O},g.delay=function(U,X,V){d(function(){U.apply(V||null,X||[])})},g.inherits=function(U,X){function V(){}V.prototype=X.prototype,U.prototype=new V},g.extend=function(){var U,X,V={};for(U=0;U<arguments.length;U++)for(X in arguments[U])Object.prototype.hasOwnProperty.call(arguments[U],X)&&V[X]===void 0&&(V[X]=arguments[U][X]);return V},g.prepareContent=function(U,X,V,O,N){return _.Promise.resolve(X).then(function(C){return m.blob&&(C instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(C))!==-1)&&typeof FileReader<"u"?new _.Promise(function(x,S){var k=new FileReader;k.onload=function(E){x(E.target.result)},k.onerror=function(E){S(E.target.error)},k.readAsArrayBuffer(C)}):C}).then(function(C){var x=g.getTypeOf(C);return x?(x==="arraybuffer"?C=g.transformTo("uint8array",C):x==="string"&&(N?C=b.decode(C):V&&O!==!0&&(C=function(S){return M(S,m.uint8array?new Uint8Array(S.length):new Array(S.length))}(C))),C):_.Promise.reject(new Error("Can't read the data of '"+U+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(f,p,g){var m=f("./reader/readerFor"),b=f("./utils"),w=f("./signature"),_=f("./zipEntry"),T=f("./support");function M(j){this.files=[],this.loadOptions=j}M.prototype={checkSignature:function(j){if(!this.reader.readAndCheckSignature(j)){this.reader.index-=4;var A=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+b.pretty(A)+", expected "+b.pretty(j)+")")}},isSignature:function(j,A){var B=this.reader.index;this.reader.setIndex(j);var H=this.reader.readString(4)===A;return this.reader.setIndex(B),H},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var j=this.reader.readData(this.zipCommentLength),A=T.uint8array?"uint8array":"array",B=b.transformTo(A,j);this.zipComment=this.loadOptions.decodeFileName(B)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var j,A,B,H=this.zip64EndOfCentralSize-44;0<H;)j=this.reader.readInt(2),A=this.reader.readInt(4),B=this.reader.readData(A),this.zip64ExtensibleData[j]={id:j,length:A,value:B}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var j,A;for(j=0;j<this.files.length;j++)A=this.files[j],this.reader.setIndex(A.localHeaderOffset),this.checkSignature(w.LOCAL_FILE_HEADER),A.readLocalPart(this.reader),A.handleUTF8(),A.processAttributes()},readCentralDir:function(){var j;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(w.CENTRAL_FILE_HEADER);)(j=new _({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(j);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var j=this.reader.lastIndexOfSignature(w.CENTRAL_DIRECTORY_END);if(j<0)throw this.isSignature(0,w.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(j);var A=j;if(this.checkSignature(w.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===b.MAX_VALUE_16BITS||this.diskWithCentralDirStart===b.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===b.MAX_VALUE_16BITS||this.centralDirRecords===b.MAX_VALUE_16BITS||this.centralDirSize===b.MAX_VALUE_32BITS||this.centralDirOffset===b.MAX_VALUE_32BITS){if(this.zip64=!0,(j=this.reader.lastIndexOfSignature(w.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(j),this.checkSignature(w.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,w.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(w.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(w.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var B=this.centralDirOffset+this.centralDirSize;this.zip64&&(B+=20,B+=12+this.zip64EndOfCentralSize);var H=A-B;if(0<H)this.isSignature(A,w.CENTRAL_FILE_HEADER)||(this.reader.zero=H);else if(H<0)throw new Error("Corrupted zip: missing "+Math.abs(H)+" bytes.")},prepareReader:function(j){this.reader=m(j)},load:function(j){this.prepareReader(j),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},p.exports=M},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(f,p,g){var m=f("./reader/readerFor"),b=f("./utils"),w=f("./compressedObject"),_=f("./crc32"),T=f("./utf8"),M=f("./compressions"),j=f("./support");function A(B,H){this.options=B,this.loadOptions=H}A.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(B){var H,U;if(B.skip(22),this.fileNameLength=B.readInt(2),U=B.readInt(2),this.fileName=B.readData(this.fileNameLength),B.skip(U),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((H=function(X){for(var V in M)if(Object.prototype.hasOwnProperty.call(M,V)&&M[V].magic===X)return M[V];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+b.pretty(this.compressionMethod)+" unknown (inner file : "+b.transformTo("string",this.fileName)+")");this.decompressed=new w(this.compressedSize,this.uncompressedSize,this.crc32,H,B.readData(this.compressedSize))},readCentralPart:function(B){this.versionMadeBy=B.readInt(2),B.skip(2),this.bitFlag=B.readInt(2),this.compressionMethod=B.readString(2),this.date=B.readDate(),this.crc32=B.readInt(4),this.compressedSize=B.readInt(4),this.uncompressedSize=B.readInt(4);var H=B.readInt(2);if(this.extraFieldsLength=B.readInt(2),this.fileCommentLength=B.readInt(2),this.diskNumberStart=B.readInt(2),this.internalFileAttributes=B.readInt(2),this.externalFileAttributes=B.readInt(4),this.localHeaderOffset=B.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");B.skip(H),this.readExtraFields(B),this.parseZIP64ExtraField(B),this.fileComment=B.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var B=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),B==0&&(this.dosPermissions=63&this.externalFileAttributes),B==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var B=m(this.extraFields[1].value);this.uncompressedSize===b.MAX_VALUE_32BITS&&(this.uncompressedSize=B.readInt(8)),this.compressedSize===b.MAX_VALUE_32BITS&&(this.compressedSize=B.readInt(8)),this.localHeaderOffset===b.MAX_VALUE_32BITS&&(this.localHeaderOffset=B.readInt(8)),this.diskNumberStart===b.MAX_VALUE_32BITS&&(this.diskNumberStart=B.readInt(4))}},readExtraFields:function(B){var H,U,X,V=B.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});B.index+4<V;)H=B.readInt(2),U=B.readInt(2),X=B.readData(U),this.extraFields[H]={id:H,length:U,value:X};B.setIndex(V)},handleUTF8:function(){var B=j.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=T.utf8decode(this.fileName),this.fileCommentStr=T.utf8decode(this.fileComment);else{var H=this.findExtraFieldUnicodePath();if(H!==null)this.fileNameStr=H;else{var U=b.transformTo(B,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(U)}var X=this.findExtraFieldUnicodeComment();if(X!==null)this.fileCommentStr=X;else{var V=b.transformTo(B,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(V)}}},findExtraFieldUnicodePath:function(){var B=this.extraFields[28789];if(B){var H=m(B.value);return H.readInt(1)!==1||_(this.fileName)!==H.readInt(4)?null:T.utf8decode(H.readData(B.length-5))}return null},findExtraFieldUnicodeComment:function(){var B=this.extraFields[25461];if(B){var H=m(B.value);return H.readInt(1)!==1||_(this.fileComment)!==H.readInt(4)?null:T.utf8decode(H.readData(B.length-5))}return null}},p.exports=A},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(f,p,g){function m(H,U,X){this.name=H,this.dir=X.dir,this.date=X.date,this.comment=X.comment,this.unixPermissions=X.unixPermissions,this.dosPermissions=X.dosPermissions,this._data=U,this._dataBinary=X.binary,this.options={compression:X.compression,compressionOptions:X.compressionOptions}}var b=f("./stream/StreamHelper"),w=f("./stream/DataWorker"),_=f("./utf8"),T=f("./compressedObject"),M=f("./stream/GenericWorker");m.prototype={internalStream:function(H){var U=null,X="string";try{if(!H)throw new Error("No output type specified.");var V=(X=H.toLowerCase())==="string"||X==="text";X!=="binarystring"&&X!=="text"||(X="string"),U=this._decompressWorker();var O=!this._dataBinary;O&&!V&&(U=U.pipe(new _.Utf8EncodeWorker)),!O&&V&&(U=U.pipe(new _.Utf8DecodeWorker))}catch(N){(U=new M("error")).error(N)}return new b(U,X,"")},async:function(H,U){return this.internalStream(H).accumulate(U)},nodeStream:function(H,U){return this.internalStream(H||"nodebuffer").toNodejsStream(U)},_compressWorker:function(H,U){if(this._data instanceof T&&this._data.compression.magic===H.magic)return this._data.getCompressedWorker();var X=this._decompressWorker();return this._dataBinary||(X=X.pipe(new _.Utf8EncodeWorker)),T.createWorkerFrom(X,H,U)},_decompressWorker:function(){return this._data instanceof T?this._data.getContentWorker():this._data instanceof M?this._data:new w(this._data)}};for(var j=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],A=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},B=0;B<j.length;B++)m.prototype[j[B]]=A;p.exports=m},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(f,p,g){(function(m){var b,w,_=m.MutationObserver||m.WebKitMutationObserver;if(_){var T=0,M=new _(H),j=m.document.createTextNode("");M.observe(j,{characterData:!0}),b=function(){j.data=T=++T%2}}else if(m.setImmediate||m.MessageChannel===void 0)b="document"in m&&"onreadystatechange"in m.document.createElement("script")?function(){var U=m.document.createElement("script");U.onreadystatechange=function(){H(),U.onreadystatechange=null,U.parentNode.removeChild(U),U=null},m.document.documentElement.appendChild(U)}:function(){setTimeout(H,0)};else{var A=new m.MessageChannel;A.port1.onmessage=H,b=function(){A.port2.postMessage(0)}}var B=[];function H(){var U,X;w=!0;for(var V=B.length;V;){for(X=B,B=[],U=-1;++U<V;)X[U]();V=B.length}w=!1}p.exports=function(U){B.push(U)!==1||w||b()}}).call(this,a!==void 0?a:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(f,p,g){var m=f("immediate");function b(){}var w={},_=["REJECTED"],T=["FULFILLED"],M=["PENDING"];function j(V){if(typeof V!="function")throw new TypeError("resolver must be a function");this.state=M,this.queue=[],this.outcome=void 0,V!==b&&U(this,V)}function A(V,O,N){this.promise=V,typeof O=="function"&&(this.onFulfilled=O,this.callFulfilled=this.otherCallFulfilled),typeof N=="function"&&(this.onRejected=N,this.callRejected=this.otherCallRejected)}function B(V,O,N){m(function(){var C;try{C=O(N)}catch(x){return w.reject(V,x)}C===V?w.reject(V,new TypeError("Cannot resolve promise with itself")):w.resolve(V,C)})}function H(V){var O=V&&V.then;if(V&&(typeof V=="object"||typeof V=="function")&&typeof O=="function")return function(){O.apply(V,arguments)}}function U(V,O){var N=!1;function C(k){N||(N=!0,w.reject(V,k))}function x(k){N||(N=!0,w.resolve(V,k))}var S=X(function(){O(x,C)});S.status==="error"&&C(S.value)}function X(V,O){var N={};try{N.value=V(O),N.status="success"}catch(C){N.status="error",N.value=C}return N}(p.exports=j).prototype.finally=function(V){if(typeof V!="function")return this;var O=this.constructor;return this.then(function(N){return O.resolve(V()).then(function(){return N})},function(N){return O.resolve(V()).then(function(){throw N})})},j.prototype.catch=function(V){return this.then(null,V)},j.prototype.then=function(V,O){if(typeof V!="function"&&this.state===T||typeof O!="function"&&this.state===_)return this;var N=new this.constructor(b);return this.state!==M?B(N,this.state===T?V:O,this.outcome):this.queue.push(new A(N,V,O)),N},A.prototype.callFulfilled=function(V){w.resolve(this.promise,V)},A.prototype.otherCallFulfilled=function(V){B(this.promise,this.onFulfilled,V)},A.prototype.callRejected=function(V){w.reject(this.promise,V)},A.prototype.otherCallRejected=function(V){B(this.promise,this.onRejected,V)},w.resolve=function(V,O){var N=X(H,O);if(N.status==="error")return w.reject(V,N.value);var C=N.value;if(C)U(V,C);else{V.state=T,V.outcome=O;for(var x=-1,S=V.queue.length;++x<S;)V.queue[x].callFulfilled(O)}return V},w.reject=function(V,O){V.state=_,V.outcome=O;for(var N=-1,C=V.queue.length;++N<C;)V.queue[N].callRejected(O);return V},j.resolve=function(V){return V instanceof this?V:w.resolve(new this(b),V)},j.reject=function(V){var O=new this(b);return w.reject(O,V)},j.all=function(V){var O=this;if(Object.prototype.toString.call(V)!=="[object Array]")return this.reject(new TypeError("must be an array"));var N=V.length,C=!1;if(!N)return this.resolve([]);for(var x=new Array(N),S=0,k=-1,E=new this(b);++k<N;)I(V[k],k);return E;function I(D,F){O.resolve(D).then(function(Y){x[F]=Y,++S!==N||C||(C=!0,w.resolve(E,x))},function(Y){C||(C=!0,w.reject(E,Y))})}},j.race=function(V){if(Object.prototype.toString.call(V)!=="[object Array]")return this.reject(new TypeError("must be an array"));var O=V.length,N=!1;if(!O)return this.resolve([]);for(var C,x=-1,S=new this(b);++x<O;)C=V[x],this.resolve(C).then(function(k){N||(N=!0,w.resolve(S,k))},function(k){N||(N=!0,w.reject(S,k))});return S}},{immediate:36}],38:[function(f,p,g){var m={};(0,f("./lib/utils/common").assign)(m,f("./lib/deflate"),f("./lib/inflate"),f("./lib/zlib/constants")),p.exports=m},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(f,p,g){var m=f("./zlib/deflate"),b=f("./utils/common"),w=f("./utils/strings"),_=f("./zlib/messages"),T=f("./zlib/zstream"),M=Object.prototype.toString;function j(B){if(!(this instanceof j))return new j(B);this.options=b.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},B||{});var H=this.options;H.raw&&0<H.windowBits?H.windowBits=-H.windowBits:H.gzip&&0<H.windowBits&&H.windowBits<16&&(H.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new T,this.strm.avail_out=0;var U=m.deflateInit2(this.strm,H.level,H.method,H.windowBits,H.memLevel,H.strategy);if(U!==0)throw new Error(_[U]);if(H.header&&m.deflateSetHeader(this.strm,H.header),H.dictionary){var X;if(X=typeof H.dictionary=="string"?w.string2buf(H.dictionary):M.call(H.dictionary)==="[object ArrayBuffer]"?new Uint8Array(H.dictionary):H.dictionary,(U=m.deflateSetDictionary(this.strm,X))!==0)throw new Error(_[U]);this._dict_set=!0}}function A(B,H){var U=new j(H);if(U.push(B,!0),U.err)throw U.msg||_[U.err];return U.result}j.prototype.push=function(B,H){var U,X,V=this.strm,O=this.options.chunkSize;if(this.ended)return!1;X=H===~~H?H:H===!0?4:0,typeof B=="string"?V.input=w.string2buf(B):M.call(B)==="[object ArrayBuffer]"?V.input=new Uint8Array(B):V.input=B,V.next_in=0,V.avail_in=V.input.length;do{if(V.avail_out===0&&(V.output=new b.Buf8(O),V.next_out=0,V.avail_out=O),(U=m.deflate(V,X))!==1&&U!==0)return this.onEnd(U),!(this.ended=!0);V.avail_out!==0&&(V.avail_in!==0||X!==4&&X!==2)||(this.options.to==="string"?this.onData(w.buf2binstring(b.shrinkBuf(V.output,V.next_out))):this.onData(b.shrinkBuf(V.output,V.next_out)))}while((0<V.avail_in||V.avail_out===0)&&U!==1);return X===4?(U=m.deflateEnd(this.strm),this.onEnd(U),this.ended=!0,U===0):X!==2||(this.onEnd(0),!(V.avail_out=0))},j.prototype.onData=function(B){this.chunks.push(B)},j.prototype.onEnd=function(B){B===0&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=b.flattenChunks(this.chunks)),this.chunks=[],this.err=B,this.msg=this.strm.msg},g.Deflate=j,g.deflate=A,g.deflateRaw=function(B,H){return(H=H||{}).raw=!0,A(B,H)},g.gzip=function(B,H){return(H=H||{}).gzip=!0,A(B,H)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(f,p,g){var m=f("./zlib/inflate"),b=f("./utils/common"),w=f("./utils/strings"),_=f("./zlib/constants"),T=f("./zlib/messages"),M=f("./zlib/zstream"),j=f("./zlib/gzheader"),A=Object.prototype.toString;function B(U){if(!(this instanceof B))return new B(U);this.options=b.assign({chunkSize:16384,windowBits:0,to:""},U||{});var X=this.options;X.raw&&0<=X.windowBits&&X.windowBits<16&&(X.windowBits=-X.windowBits,X.windowBits===0&&(X.windowBits=-15)),!(0<=X.windowBits&&X.windowBits<16)||U&&U.windowBits||(X.windowBits+=32),15<X.windowBits&&X.windowBits<48&&!(15&X.windowBits)&&(X.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new M,this.strm.avail_out=0;var V=m.inflateInit2(this.strm,X.windowBits);if(V!==_.Z_OK)throw new Error(T[V]);this.header=new j,m.inflateGetHeader(this.strm,this.header)}function H(U,X){var V=new B(X);if(V.push(U,!0),V.err)throw V.msg||T[V.err];return V.result}B.prototype.push=function(U,X){var V,O,N,C,x,S,k=this.strm,E=this.options.chunkSize,I=this.options.dictionary,D=!1;if(this.ended)return!1;O=X===~~X?X:X===!0?_.Z_FINISH:_.Z_NO_FLUSH,typeof U=="string"?k.input=w.binstring2buf(U):A.call(U)==="[object ArrayBuffer]"?k.input=new Uint8Array(U):k.input=U,k.next_in=0,k.avail_in=k.input.length;do{if(k.avail_out===0&&(k.output=new b.Buf8(E),k.next_out=0,k.avail_out=E),(V=m.inflate(k,_.Z_NO_FLUSH))===_.Z_NEED_DICT&&I&&(S=typeof I=="string"?w.string2buf(I):A.call(I)==="[object ArrayBuffer]"?new Uint8Array(I):I,V=m.inflateSetDictionary(this.strm,S)),V===_.Z_BUF_ERROR&&D===!0&&(V=_.Z_OK,D=!1),V!==_.Z_STREAM_END&&V!==_.Z_OK)return this.onEnd(V),!(this.ended=!0);k.next_out&&(k.avail_out!==0&&V!==_.Z_STREAM_END&&(k.avail_in!==0||O!==_.Z_FINISH&&O!==_.Z_SYNC_FLUSH)||(this.options.to==="string"?(N=w.utf8border(k.output,k.next_out),C=k.next_out-N,x=w.buf2string(k.output,N),k.next_out=C,k.avail_out=E-C,C&&b.arraySet(k.output,k.output,N,C,0),this.onData(x)):this.onData(b.shrinkBuf(k.output,k.next_out)))),k.avail_in===0&&k.avail_out===0&&(D=!0)}while((0<k.avail_in||k.avail_out===0)&&V!==_.Z_STREAM_END);return V===_.Z_STREAM_END&&(O=_.Z_FINISH),O===_.Z_FINISH?(V=m.inflateEnd(this.strm),this.onEnd(V),this.ended=!0,V===_.Z_OK):O!==_.Z_SYNC_FLUSH||(this.onEnd(_.Z_OK),!(k.avail_out=0))},B.prototype.onData=function(U){this.chunks.push(U)},B.prototype.onEnd=function(U){U===_.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=b.flattenChunks(this.chunks)),this.chunks=[],this.err=U,this.msg=this.strm.msg},g.Inflate=B,g.inflate=H,g.inflateRaw=function(U,X){return(X=X||{}).raw=!0,H(U,X)},g.ungzip=H},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(f,p,g){var m=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";g.assign=function(_){for(var T=Array.prototype.slice.call(arguments,1);T.length;){var M=T.shift();if(M){if(typeof M!="object")throw new TypeError(M+"must be non-object");for(var j in M)M.hasOwnProperty(j)&&(_[j]=M[j])}}return _},g.shrinkBuf=function(_,T){return _.length===T?_:_.subarray?_.subarray(0,T):(_.length=T,_)};var b={arraySet:function(_,T,M,j,A){if(T.subarray&&_.subarray)_.set(T.subarray(M,M+j),A);else for(var B=0;B<j;B++)_[A+B]=T[M+B]},flattenChunks:function(_){var T,M,j,A,B,H;for(T=j=0,M=_.length;T<M;T++)j+=_[T].length;for(H=new Uint8Array(j),T=A=0,M=_.length;T<M;T++)B=_[T],H.set(B,A),A+=B.length;return H}},w={arraySet:function(_,T,M,j,A){for(var B=0;B<j;B++)_[A+B]=T[M+B]},flattenChunks:function(_){return[].concat.apply([],_)}};g.setTyped=function(_){_?(g.Buf8=Uint8Array,g.Buf16=Uint16Array,g.Buf32=Int32Array,g.assign(g,b)):(g.Buf8=Array,g.Buf16=Array,g.Buf32=Array,g.assign(g,w))},g.setTyped(m)},{}],42:[function(f,p,g){var m=f("./common"),b=!0,w=!0;try{String.fromCharCode.apply(null,[0])}catch{b=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{w=!1}for(var _=new m.Buf8(256),T=0;T<256;T++)_[T]=252<=T?6:248<=T?5:240<=T?4:224<=T?3:192<=T?2:1;function M(j,A){if(A<65537&&(j.subarray&&w||!j.subarray&&b))return String.fromCharCode.apply(null,m.shrinkBuf(j,A));for(var B="",H=0;H<A;H++)B+=String.fromCharCode(j[H]);return B}_[254]=_[254]=1,g.string2buf=function(j){var A,B,H,U,X,V=j.length,O=0;for(U=0;U<V;U++)(64512&(B=j.charCodeAt(U)))==55296&&U+1<V&&(64512&(H=j.charCodeAt(U+1)))==56320&&(B=65536+(B-55296<<10)+(H-56320),U++),O+=B<128?1:B<2048?2:B<65536?3:4;for(A=new m.Buf8(O),U=X=0;X<O;U++)(64512&(B=j.charCodeAt(U)))==55296&&U+1<V&&(64512&(H=j.charCodeAt(U+1)))==56320&&(B=65536+(B-55296<<10)+(H-56320),U++),B<128?A[X++]=B:(B<2048?A[X++]=192|B>>>6:(B<65536?A[X++]=224|B>>>12:(A[X++]=240|B>>>18,A[X++]=128|B>>>12&63),A[X++]=128|B>>>6&63),A[X++]=128|63&B);return A},g.buf2binstring=function(j){return M(j,j.length)},g.binstring2buf=function(j){for(var A=new m.Buf8(j.length),B=0,H=A.length;B<H;B++)A[B]=j.charCodeAt(B);return A},g.buf2string=function(j,A){var B,H,U,X,V=A||j.length,O=new Array(2*V);for(B=H=0;B<V;)if((U=j[B++])<128)O[H++]=U;else if(4<(X=_[U]))O[H++]=65533,B+=X-1;else{for(U&=X===2?31:X===3?15:7;1<X&&B<V;)U=U<<6|63&j[B++],X--;1<X?O[H++]=65533:U<65536?O[H++]=U:(U-=65536,O[H++]=55296|U>>10&1023,O[H++]=56320|1023&U)}return M(O,H)},g.utf8border=function(j,A){var B;for((A=A||j.length)>j.length&&(A=j.length),B=A-1;0<=B&&(192&j[B])==128;)B--;return B<0||B===0?A:B+_[j[B]]>A?B:A}},{"./common":41}],43:[function(f,p,g){p.exports=function(m,b,w,_){for(var T=65535&m|0,M=m>>>16&65535|0,j=0;w!==0;){for(w-=j=2e3<w?2e3:w;M=M+(T=T+b[_++]|0)|0,--j;);T%=65521,M%=65521}return T|M<<16|0}},{}],44:[function(f,p,g){p.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(f,p,g){var m=function(){for(var b,w=[],_=0;_<256;_++){b=_;for(var T=0;T<8;T++)b=1&b?3988292384^b>>>1:b>>>1;w[_]=b}return w}();p.exports=function(b,w,_,T){var M=m,j=T+_;b^=-1;for(var A=T;A<j;A++)b=b>>>8^M[255&(b^w[A])];return-1^b}},{}],46:[function(f,p,g){var m,b=f("../utils/common"),w=f("./trees"),_=f("./adler32"),T=f("./crc32"),M=f("./messages"),j=-2,A=258,B=262,H=113;function U(q,ee){return q.msg=M[ee],ee}function X(q){return(q<<1)-(4<q?9:0)}function V(q){for(var ee=q.length;0<=--ee;)q[ee]=0}function O(q){var ee=q.state,L=ee.pending;L>q.avail_out&&(L=q.avail_out),L!==0&&(b.arraySet(q.output,ee.pending_buf,ee.pending_out,L,q.next_out),q.next_out+=L,ee.pending_out+=L,q.total_out+=L,q.avail_out-=L,ee.pending-=L,ee.pending===0&&(ee.pending_out=0))}function N(q,ee){w._tr_flush_block(q,0<=q.block_start?q.block_start:-1,q.strstart-q.block_start,ee),q.block_start=q.strstart,O(q.strm)}function C(q,ee){q.pending_buf[q.pending++]=ee}function x(q,ee){q.pending_buf[q.pending++]=ee>>>8&255,q.pending_buf[q.pending++]=255&ee}function S(q,ee){var L,P,G=q.max_chain_length,ne=q.strstart,ce=q.prev_length,ie=q.nice_match,ue=q.strstart>q.w_size-B?q.strstart-(q.w_size-B):0,ve=q.window,we=q.w_mask,le=q.prev,me=q.strstart+A,ge=ve[ne+ce-1],ke=ve[ne+ce];q.prev_length>=q.good_match&&(G>>=2),ie>q.lookahead&&(ie=q.lookahead);do if(ve[(L=ee)+ce]===ke&&ve[L+ce-1]===ge&&ve[L]===ve[ne]&&ve[++L]===ve[ne+1]){ne+=2,L++;do;while(ve[++ne]===ve[++L]&&ve[++ne]===ve[++L]&&ve[++ne]===ve[++L]&&ve[++ne]===ve[++L]&&ve[++ne]===ve[++L]&&ve[++ne]===ve[++L]&&ve[++ne]===ve[++L]&&ve[++ne]===ve[++L]&&ne<me);if(P=A-(me-ne),ne=me-A,ce<P){if(q.match_start=ee,ie<=(ce=P))break;ge=ve[ne+ce-1],ke=ve[ne+ce]}}while((ee=le[ee&we])>ue&&--G!=0);return ce<=q.lookahead?ce:q.lookahead}function k(q){var ee,L,P,G,ne,ce,ie,ue,ve,we,le=q.w_size;do{if(G=q.window_size-q.lookahead-q.strstart,q.strstart>=le+(le-B)){for(b.arraySet(q.window,q.window,le,le,0),q.match_start-=le,q.strstart-=le,q.block_start-=le,ee=L=q.hash_size;P=q.head[--ee],q.head[ee]=le<=P?P-le:0,--L;);for(ee=L=le;P=q.prev[--ee],q.prev[ee]=le<=P?P-le:0,--L;);G+=le}if(q.strm.avail_in===0)break;if(ce=q.strm,ie=q.window,ue=q.strstart+q.lookahead,we=void 0,(ve=G)<(we=ce.avail_in)&&(we=ve),L=we===0?0:(ce.avail_in-=we,b.arraySet(ie,ce.input,ce.next_in,we,ue),ce.state.wrap===1?ce.adler=_(ce.adler,ie,we,ue):ce.state.wrap===2&&(ce.adler=T(ce.adler,ie,we,ue)),ce.next_in+=we,ce.total_in+=we,we),q.lookahead+=L,q.lookahead+q.insert>=3)for(ne=q.strstart-q.insert,q.ins_h=q.window[ne],q.ins_h=(q.ins_h<<q.hash_shift^q.window[ne+1])&q.hash_mask;q.insert&&(q.ins_h=(q.ins_h<<q.hash_shift^q.window[ne+3-1])&q.hash_mask,q.prev[ne&q.w_mask]=q.head[q.ins_h],q.head[q.ins_h]=ne,ne++,q.insert--,!(q.lookahead+q.insert<3)););}while(q.lookahead<B&&q.strm.avail_in!==0)}function E(q,ee){for(var L,P;;){if(q.lookahead<B){if(k(q),q.lookahead<B&&ee===0)return 1;if(q.lookahead===0)break}if(L=0,q.lookahead>=3&&(q.ins_h=(q.ins_h<<q.hash_shift^q.window[q.strstart+3-1])&q.hash_mask,L=q.prev[q.strstart&q.w_mask]=q.head[q.ins_h],q.head[q.ins_h]=q.strstart),L!==0&&q.strstart-L<=q.w_size-B&&(q.match_length=S(q,L)),q.match_length>=3)if(P=w._tr_tally(q,q.strstart-q.match_start,q.match_length-3),q.lookahead-=q.match_length,q.match_length<=q.max_lazy_match&&q.lookahead>=3){for(q.match_length--;q.strstart++,q.ins_h=(q.ins_h<<q.hash_shift^q.window[q.strstart+3-1])&q.hash_mask,L=q.prev[q.strstart&q.w_mask]=q.head[q.ins_h],q.head[q.ins_h]=q.strstart,--q.match_length!=0;);q.strstart++}else q.strstart+=q.match_length,q.match_length=0,q.ins_h=q.window[q.strstart],q.ins_h=(q.ins_h<<q.hash_shift^q.window[q.strstart+1])&q.hash_mask;else P=w._tr_tally(q,0,q.window[q.strstart]),q.lookahead--,q.strstart++;if(P&&(N(q,!1),q.strm.avail_out===0))return 1}return q.insert=q.strstart<2?q.strstart:2,ee===4?(N(q,!0),q.strm.avail_out===0?3:4):q.last_lit&&(N(q,!1),q.strm.avail_out===0)?1:2}function I(q,ee){for(var L,P,G;;){if(q.lookahead<B){if(k(q),q.lookahead<B&&ee===0)return 1;if(q.lookahead===0)break}if(L=0,q.lookahead>=3&&(q.ins_h=(q.ins_h<<q.hash_shift^q.window[q.strstart+3-1])&q.hash_mask,L=q.prev[q.strstart&q.w_mask]=q.head[q.ins_h],q.head[q.ins_h]=q.strstart),q.prev_length=q.match_length,q.prev_match=q.match_start,q.match_length=2,L!==0&&q.prev_length<q.max_lazy_match&&q.strstart-L<=q.w_size-B&&(q.match_length=S(q,L),q.match_length<=5&&(q.strategy===1||q.match_length===3&&4096<q.strstart-q.match_start)&&(q.match_length=2)),q.prev_length>=3&&q.match_length<=q.prev_length){for(G=q.strstart+q.lookahead-3,P=w._tr_tally(q,q.strstart-1-q.prev_match,q.prev_length-3),q.lookahead-=q.prev_length-1,q.prev_length-=2;++q.strstart<=G&&(q.ins_h=(q.ins_h<<q.hash_shift^q.window[q.strstart+3-1])&q.hash_mask,L=q.prev[q.strstart&q.w_mask]=q.head[q.ins_h],q.head[q.ins_h]=q.strstart),--q.prev_length!=0;);if(q.match_available=0,q.match_length=2,q.strstart++,P&&(N(q,!1),q.strm.avail_out===0))return 1}else if(q.match_available){if((P=w._tr_tally(q,0,q.window[q.strstart-1]))&&N(q,!1),q.strstart++,q.lookahead--,q.strm.avail_out===0)return 1}else q.match_available=1,q.strstart++,q.lookahead--}return q.match_available&&(P=w._tr_tally(q,0,q.window[q.strstart-1]),q.match_available=0),q.insert=q.strstart<2?q.strstart:2,ee===4?(N(q,!0),q.strm.avail_out===0?3:4):q.last_lit&&(N(q,!1),q.strm.avail_out===0)?1:2}function D(q,ee,L,P,G){this.good_length=q,this.max_lazy=ee,this.nice_length=L,this.max_chain=P,this.func=G}function F(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new b.Buf16(1146),this.dyn_dtree=new b.Buf16(122),this.bl_tree=new b.Buf16(78),V(this.dyn_ltree),V(this.dyn_dtree),V(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new b.Buf16(16),this.heap=new b.Buf16(573),V(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new b.Buf16(573),V(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Y(q){var ee;return q&&q.state?(q.total_in=q.total_out=0,q.data_type=2,(ee=q.state).pending=0,ee.pending_out=0,ee.wrap<0&&(ee.wrap=-ee.wrap),ee.status=ee.wrap?42:H,q.adler=ee.wrap===2?0:1,ee.last_flush=0,w._tr_init(ee),0):U(q,j)}function J(q){var ee=Y(q);return ee===0&&function(L){L.window_size=2*L.w_size,V(L.head),L.max_lazy_match=m[L.level].max_lazy,L.good_match=m[L.level].good_length,L.nice_match=m[L.level].nice_length,L.max_chain_length=m[L.level].max_chain,L.strstart=0,L.block_start=0,L.lookahead=0,L.insert=0,L.match_length=L.prev_length=2,L.match_available=0,L.ins_h=0}(q.state),ee}function se(q,ee,L,P,G,ne){if(!q)return j;var ce=1;if(ee===-1&&(ee=6),P<0?(ce=0,P=-P):15<P&&(ce=2,P-=16),G<1||9<G||L!==8||P<8||15<P||ee<0||9<ee||ne<0||4<ne)return U(q,j);P===8&&(P=9);var ie=new F;return(q.state=ie).strm=q,ie.wrap=ce,ie.gzhead=null,ie.w_bits=P,ie.w_size=1<<ie.w_bits,ie.w_mask=ie.w_size-1,ie.hash_bits=G+7,ie.hash_size=1<<ie.hash_bits,ie.hash_mask=ie.hash_size-1,ie.hash_shift=~~((ie.hash_bits+3-1)/3),ie.window=new b.Buf8(2*ie.w_size),ie.head=new b.Buf16(ie.hash_size),ie.prev=new b.Buf16(ie.w_size),ie.lit_bufsize=1<<G+6,ie.pending_buf_size=4*ie.lit_bufsize,ie.pending_buf=new b.Buf8(ie.pending_buf_size),ie.d_buf=1*ie.lit_bufsize,ie.l_buf=3*ie.lit_bufsize,ie.level=ee,ie.strategy=ne,ie.method=L,J(q)}m=[new D(0,0,0,0,function(q,ee){var L=65535;for(L>q.pending_buf_size-5&&(L=q.pending_buf_size-5);;){if(q.lookahead<=1){if(k(q),q.lookahead===0&&ee===0)return 1;if(q.lookahead===0)break}q.strstart+=q.lookahead,q.lookahead=0;var P=q.block_start+L;if((q.strstart===0||q.strstart>=P)&&(q.lookahead=q.strstart-P,q.strstart=P,N(q,!1),q.strm.avail_out===0)||q.strstart-q.block_start>=q.w_size-B&&(N(q,!1),q.strm.avail_out===0))return 1}return q.insert=0,ee===4?(N(q,!0),q.strm.avail_out===0?3:4):(q.strstart>q.block_start&&(N(q,!1),q.strm.avail_out),1)}),new D(4,4,8,4,E),new D(4,5,16,8,E),new D(4,6,32,32,E),new D(4,4,16,16,I),new D(8,16,32,32,I),new D(8,16,128,128,I),new D(8,32,128,256,I),new D(32,128,258,1024,I),new D(32,258,258,4096,I)],g.deflateInit=function(q,ee){return se(q,ee,8,15,8,0)},g.deflateInit2=se,g.deflateReset=J,g.deflateResetKeep=Y,g.deflateSetHeader=function(q,ee){return q&&q.state?q.state.wrap!==2?j:(q.state.gzhead=ee,0):j},g.deflate=function(q,ee){var L,P,G,ne;if(!q||!q.state||5<ee||ee<0)return q?U(q,j):j;if(P=q.state,!q.output||!q.input&&q.avail_in!==0||P.status===666&&ee!==4)return U(q,q.avail_out===0?-5:j);if(P.strm=q,L=P.last_flush,P.last_flush=ee,P.status===42)if(P.wrap===2)q.adler=0,C(P,31),C(P,139),C(P,8),P.gzhead?(C(P,(P.gzhead.text?1:0)+(P.gzhead.hcrc?2:0)+(P.gzhead.extra?4:0)+(P.gzhead.name?8:0)+(P.gzhead.comment?16:0)),C(P,255&P.gzhead.time),C(P,P.gzhead.time>>8&255),C(P,P.gzhead.time>>16&255),C(P,P.gzhead.time>>24&255),C(P,P.level===9?2:2<=P.strategy||P.level<2?4:0),C(P,255&P.gzhead.os),P.gzhead.extra&&P.gzhead.extra.length&&(C(P,255&P.gzhead.extra.length),C(P,P.gzhead.extra.length>>8&255)),P.gzhead.hcrc&&(q.adler=T(q.adler,P.pending_buf,P.pending,0)),P.gzindex=0,P.status=69):(C(P,0),C(P,0),C(P,0),C(P,0),C(P,0),C(P,P.level===9?2:2<=P.strategy||P.level<2?4:0),C(P,3),P.status=H);else{var ce=8+(P.w_bits-8<<4)<<8;ce|=(2<=P.strategy||P.level<2?0:P.level<6?1:P.level===6?2:3)<<6,P.strstart!==0&&(ce|=32),ce+=31-ce%31,P.status=H,x(P,ce),P.strstart!==0&&(x(P,q.adler>>>16),x(P,65535&q.adler)),q.adler=1}if(P.status===69)if(P.gzhead.extra){for(G=P.pending;P.gzindex<(65535&P.gzhead.extra.length)&&(P.pending!==P.pending_buf_size||(P.gzhead.hcrc&&P.pending>G&&(q.adler=T(q.adler,P.pending_buf,P.pending-G,G)),O(q),G=P.pending,P.pending!==P.pending_buf_size));)C(P,255&P.gzhead.extra[P.gzindex]),P.gzindex++;P.gzhead.hcrc&&P.pending>G&&(q.adler=T(q.adler,P.pending_buf,P.pending-G,G)),P.gzindex===P.gzhead.extra.length&&(P.gzindex=0,P.status=73)}else P.status=73;if(P.status===73)if(P.gzhead.name){G=P.pending;do{if(P.pending===P.pending_buf_size&&(P.gzhead.hcrc&&P.pending>G&&(q.adler=T(q.adler,P.pending_buf,P.pending-G,G)),O(q),G=P.pending,P.pending===P.pending_buf_size)){ne=1;break}ne=P.gzindex<P.gzhead.name.length?255&P.gzhead.name.charCodeAt(P.gzindex++):0,C(P,ne)}while(ne!==0);P.gzhead.hcrc&&P.pending>G&&(q.adler=T(q.adler,P.pending_buf,P.pending-G,G)),ne===0&&(P.gzindex=0,P.status=91)}else P.status=91;if(P.status===91)if(P.gzhead.comment){G=P.pending;do{if(P.pending===P.pending_buf_size&&(P.gzhead.hcrc&&P.pending>G&&(q.adler=T(q.adler,P.pending_buf,P.pending-G,G)),O(q),G=P.pending,P.pending===P.pending_buf_size)){ne=1;break}ne=P.gzindex<P.gzhead.comment.length?255&P.gzhead.comment.charCodeAt(P.gzindex++):0,C(P,ne)}while(ne!==0);P.gzhead.hcrc&&P.pending>G&&(q.adler=T(q.adler,P.pending_buf,P.pending-G,G)),ne===0&&(P.status=103)}else P.status=103;if(P.status===103&&(P.gzhead.hcrc?(P.pending+2>P.pending_buf_size&&O(q),P.pending+2<=P.pending_buf_size&&(C(P,255&q.adler),C(P,q.adler>>8&255),q.adler=0,P.status=H)):P.status=H),P.pending!==0){if(O(q),q.avail_out===0)return P.last_flush=-1,0}else if(q.avail_in===0&&X(ee)<=X(L)&&ee!==4)return U(q,-5);if(P.status===666&&q.avail_in!==0)return U(q,-5);if(q.avail_in!==0||P.lookahead!==0||ee!==0&&P.status!==666){var ie=P.strategy===2?function(ue,ve){for(var we;;){if(ue.lookahead===0&&(k(ue),ue.lookahead===0)){if(ve===0)return 1;break}if(ue.match_length=0,we=w._tr_tally(ue,0,ue.window[ue.strstart]),ue.lookahead--,ue.strstart++,we&&(N(ue,!1),ue.strm.avail_out===0))return 1}return ue.insert=0,ve===4?(N(ue,!0),ue.strm.avail_out===0?3:4):ue.last_lit&&(N(ue,!1),ue.strm.avail_out===0)?1:2}(P,ee):P.strategy===3?function(ue,ve){for(var we,le,me,ge,ke=ue.window;;){if(ue.lookahead<=A){if(k(ue),ue.lookahead<=A&&ve===0)return 1;if(ue.lookahead===0)break}if(ue.match_length=0,ue.lookahead>=3&&0<ue.strstart&&(le=ke[me=ue.strstart-1])===ke[++me]&&le===ke[++me]&&le===ke[++me]){ge=ue.strstart+A;do;while(le===ke[++me]&&le===ke[++me]&&le===ke[++me]&&le===ke[++me]&&le===ke[++me]&&le===ke[++me]&&le===ke[++me]&&le===ke[++me]&&me<ge);ue.match_length=A-(ge-me),ue.match_length>ue.lookahead&&(ue.match_length=ue.lookahead)}if(ue.match_length>=3?(we=w._tr_tally(ue,1,ue.match_length-3),ue.lookahead-=ue.match_length,ue.strstart+=ue.match_length,ue.match_length=0):(we=w._tr_tally(ue,0,ue.window[ue.strstart]),ue.lookahead--,ue.strstart++),we&&(N(ue,!1),ue.strm.avail_out===0))return 1}return ue.insert=0,ve===4?(N(ue,!0),ue.strm.avail_out===0?3:4):ue.last_lit&&(N(ue,!1),ue.strm.avail_out===0)?1:2}(P,ee):m[P.level].func(P,ee);if(ie!==3&&ie!==4||(P.status=666),ie===1||ie===3)return q.avail_out===0&&(P.last_flush=-1),0;if(ie===2&&(ee===1?w._tr_align(P):ee!==5&&(w._tr_stored_block(P,0,0,!1),ee===3&&(V(P.head),P.lookahead===0&&(P.strstart=0,P.block_start=0,P.insert=0))),O(q),q.avail_out===0))return P.last_flush=-1,0}return ee!==4?0:P.wrap<=0?1:(P.wrap===2?(C(P,255&q.adler),C(P,q.adler>>8&255),C(P,q.adler>>16&255),C(P,q.adler>>24&255),C(P,255&q.total_in),C(P,q.total_in>>8&255),C(P,q.total_in>>16&255),C(P,q.total_in>>24&255)):(x(P,q.adler>>>16),x(P,65535&q.adler)),O(q),0<P.wrap&&(P.wrap=-P.wrap),P.pending!==0?0:1)},g.deflateEnd=function(q){var ee;return q&&q.state?(ee=q.state.status)!==42&&ee!==69&&ee!==73&&ee!==91&&ee!==103&&ee!==H&&ee!==666?U(q,j):(q.state=null,ee===H?U(q,-3):0):j},g.deflateSetDictionary=function(q,ee){var L,P,G,ne,ce,ie,ue,ve,we=ee.length;if(!q||!q.state||(ne=(L=q.state).wrap)===2||ne===1&&L.status!==42||L.lookahead)return j;for(ne===1&&(q.adler=_(q.adler,ee,we,0)),L.wrap=0,we>=L.w_size&&(ne===0&&(V(L.head),L.strstart=0,L.block_start=0,L.insert=0),ve=new b.Buf8(L.w_size),b.arraySet(ve,ee,we-L.w_size,L.w_size,0),ee=ve,we=L.w_size),ce=q.avail_in,ie=q.next_in,ue=q.input,q.avail_in=we,q.next_in=0,q.input=ee,k(L);L.lookahead>=3;){for(P=L.strstart,G=L.lookahead-2;L.ins_h=(L.ins_h<<L.hash_shift^L.window[P+3-1])&L.hash_mask,L.prev[P&L.w_mask]=L.head[L.ins_h],L.head[L.ins_h]=P,P++,--G;);L.strstart=P,L.lookahead=2,k(L)}return L.strstart+=L.lookahead,L.block_start=L.strstart,L.insert=L.lookahead,L.lookahead=0,L.match_length=L.prev_length=2,L.match_available=0,q.next_in=ie,q.input=ue,q.avail_in=ce,L.wrap=ne,0},g.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(f,p,g){p.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(f,p,g){p.exports=function(m,b){var w,_,T,M,j,A,B,H,U,X,V,O,N,C,x,S,k,E,I,D,F,Y,J,se,q;w=m.state,_=m.next_in,se=m.input,T=_+(m.avail_in-5),M=m.next_out,q=m.output,j=M-(b-m.avail_out),A=M+(m.avail_out-257),B=w.dmax,H=w.wsize,U=w.whave,X=w.wnext,V=w.window,O=w.hold,N=w.bits,C=w.lencode,x=w.distcode,S=(1<<w.lenbits)-1,k=(1<<w.distbits)-1;e:do{N<15&&(O+=se[_++]<<N,N+=8,O+=se[_++]<<N,N+=8),E=C[O&S];t:for(;;){if(O>>>=I=E>>>24,N-=I,(I=E>>>16&255)==0)q[M++]=65535&E;else{if(!(16&I)){if(!(64&I)){E=C[(65535&E)+(O&(1<<I)-1)];continue t}if(32&I){w.mode=12;break e}m.msg="invalid literal/length code",w.mode=30;break e}D=65535&E,(I&=15)&&(N<I&&(O+=se[_++]<<N,N+=8),D+=O&(1<<I)-1,O>>>=I,N-=I),N<15&&(O+=se[_++]<<N,N+=8,O+=se[_++]<<N,N+=8),E=x[O&k];r:for(;;){if(O>>>=I=E>>>24,N-=I,!(16&(I=E>>>16&255))){if(!(64&I)){E=x[(65535&E)+(O&(1<<I)-1)];continue r}m.msg="invalid distance code",w.mode=30;break e}if(F=65535&E,N<(I&=15)&&(O+=se[_++]<<N,(N+=8)<I&&(O+=se[_++]<<N,N+=8)),B<(F+=O&(1<<I)-1)){m.msg="invalid distance too far back",w.mode=30;break e}if(O>>>=I,N-=I,(I=M-j)<F){if(U<(I=F-I)&&w.sane){m.msg="invalid distance too far back",w.mode=30;break e}if(J=V,(Y=0)===X){if(Y+=H-I,I<D){for(D-=I;q[M++]=V[Y++],--I;);Y=M-F,J=q}}else if(X<I){if(Y+=H+X-I,(I-=X)<D){for(D-=I;q[M++]=V[Y++],--I;);if(Y=0,X<D){for(D-=I=X;q[M++]=V[Y++],--I;);Y=M-F,J=q}}}else if(Y+=X-I,I<D){for(D-=I;q[M++]=V[Y++],--I;);Y=M-F,J=q}for(;2<D;)q[M++]=J[Y++],q[M++]=J[Y++],q[M++]=J[Y++],D-=3;D&&(q[M++]=J[Y++],1<D&&(q[M++]=J[Y++]))}else{for(Y=M-F;q[M++]=q[Y++],q[M++]=q[Y++],q[M++]=q[Y++],2<(D-=3););D&&(q[M++]=q[Y++],1<D&&(q[M++]=q[Y++]))}break}}break}}while(_<T&&M<A);_-=D=N>>3,O&=(1<<(N-=D<<3))-1,m.next_in=_,m.next_out=M,m.avail_in=_<T?T-_+5:5-(_-T),m.avail_out=M<A?A-M+257:257-(M-A),w.hold=O,w.bits=N}},{}],49:[function(f,p,g){var m=f("../utils/common"),b=f("./adler32"),w=f("./crc32"),_=f("./inffast"),T=f("./inftrees"),M=-2;function j(S){return(S>>>24&255)+(S>>>8&65280)+((65280&S)<<8)+((255&S)<<24)}function A(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new m.Buf16(320),this.work=new m.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function B(S){var k;return S&&S.state?(k=S.state,S.total_in=S.total_out=k.total=0,S.msg="",k.wrap&&(S.adler=1&k.wrap),k.mode=1,k.last=0,k.havedict=0,k.dmax=32768,k.head=null,k.hold=0,k.bits=0,k.lencode=k.lendyn=new m.Buf32(852),k.distcode=k.distdyn=new m.Buf32(592),k.sane=1,k.back=-1,0):M}function H(S){var k;return S&&S.state?((k=S.state).wsize=0,k.whave=0,k.wnext=0,B(S)):M}function U(S,k){var E,I;return S&&S.state?(I=S.state,k<0?(E=0,k=-k):(E=1+(k>>4),k<48&&(k&=15)),k&&(k<8||15<k)?M:(I.window!==null&&I.wbits!==k&&(I.window=null),I.wrap=E,I.wbits=k,H(S))):M}function X(S,k){var E,I;return S?(I=new A,(S.state=I).window=null,(E=U(S,k))!==0&&(S.state=null),E):M}var V,O,N=!0;function C(S){if(N){var k;for(V=new m.Buf32(512),O=new m.Buf32(32),k=0;k<144;)S.lens[k++]=8;for(;k<256;)S.lens[k++]=9;for(;k<280;)S.lens[k++]=7;for(;k<288;)S.lens[k++]=8;for(T(1,S.lens,0,288,V,0,S.work,{bits:9}),k=0;k<32;)S.lens[k++]=5;T(2,S.lens,0,32,O,0,S.work,{bits:5}),N=!1}S.lencode=V,S.lenbits=9,S.distcode=O,S.distbits=5}function x(S,k,E,I){var D,F=S.state;return F.window===null&&(F.wsize=1<<F.wbits,F.wnext=0,F.whave=0,F.window=new m.Buf8(F.wsize)),I>=F.wsize?(m.arraySet(F.window,k,E-F.wsize,F.wsize,0),F.wnext=0,F.whave=F.wsize):(I<(D=F.wsize-F.wnext)&&(D=I),m.arraySet(F.window,k,E-I,D,F.wnext),(I-=D)?(m.arraySet(F.window,k,E-I,I,0),F.wnext=I,F.whave=F.wsize):(F.wnext+=D,F.wnext===F.wsize&&(F.wnext=0),F.whave<F.wsize&&(F.whave+=D))),0}g.inflateReset=H,g.inflateReset2=U,g.inflateResetKeep=B,g.inflateInit=function(S){return X(S,15)},g.inflateInit2=X,g.inflate=function(S,k){var E,I,D,F,Y,J,se,q,ee,L,P,G,ne,ce,ie,ue,ve,we,le,me,ge,ke,xe,Ee,Ie=0,Pe=new m.Buf8(4),Ae=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!S||!S.state||!S.output||!S.input&&S.avail_in!==0)return M;(E=S.state).mode===12&&(E.mode=13),Y=S.next_out,D=S.output,se=S.avail_out,F=S.next_in,I=S.input,J=S.avail_in,q=E.hold,ee=E.bits,L=J,P=se,ke=0;e:for(;;)switch(E.mode){case 1:if(E.wrap===0){E.mode=13;break}for(;ee<16;){if(J===0)break e;J--,q+=I[F++]<<ee,ee+=8}if(2&E.wrap&&q===35615){Pe[E.check=0]=255&q,Pe[1]=q>>>8&255,E.check=w(E.check,Pe,2,0),ee=q=0,E.mode=2;break}if(E.flags=0,E.head&&(E.head.done=!1),!(1&E.wrap)||(((255&q)<<8)+(q>>8))%31){S.msg="incorrect header check",E.mode=30;break}if((15&q)!=8){S.msg="unknown compression method",E.mode=30;break}if(ee-=4,ge=8+(15&(q>>>=4)),E.wbits===0)E.wbits=ge;else if(ge>E.wbits){S.msg="invalid window size",E.mode=30;break}E.dmax=1<<ge,S.adler=E.check=1,E.mode=512&q?10:12,ee=q=0;break;case 2:for(;ee<16;){if(J===0)break e;J--,q+=I[F++]<<ee,ee+=8}if(E.flags=q,(255&E.flags)!=8){S.msg="unknown compression method",E.mode=30;break}if(57344&E.flags){S.msg="unknown header flags set",E.mode=30;break}E.head&&(E.head.text=q>>8&1),512&E.flags&&(Pe[0]=255&q,Pe[1]=q>>>8&255,E.check=w(E.check,Pe,2,0)),ee=q=0,E.mode=3;case 3:for(;ee<32;){if(J===0)break e;J--,q+=I[F++]<<ee,ee+=8}E.head&&(E.head.time=q),512&E.flags&&(Pe[0]=255&q,Pe[1]=q>>>8&255,Pe[2]=q>>>16&255,Pe[3]=q>>>24&255,E.check=w(E.check,Pe,4,0)),ee=q=0,E.mode=4;case 4:for(;ee<16;){if(J===0)break e;J--,q+=I[F++]<<ee,ee+=8}E.head&&(E.head.xflags=255&q,E.head.os=q>>8),512&E.flags&&(Pe[0]=255&q,Pe[1]=q>>>8&255,E.check=w(E.check,Pe,2,0)),ee=q=0,E.mode=5;case 5:if(1024&E.flags){for(;ee<16;){if(J===0)break e;J--,q+=I[F++]<<ee,ee+=8}E.length=q,E.head&&(E.head.extra_len=q),512&E.flags&&(Pe[0]=255&q,Pe[1]=q>>>8&255,E.check=w(E.check,Pe,2,0)),ee=q=0}else E.head&&(E.head.extra=null);E.mode=6;case 6:if(1024&E.flags&&(J<(G=E.length)&&(G=J),G&&(E.head&&(ge=E.head.extra_len-E.length,E.head.extra||(E.head.extra=new Array(E.head.extra_len)),m.arraySet(E.head.extra,I,F,G,ge)),512&E.flags&&(E.check=w(E.check,I,G,F)),J-=G,F+=G,E.length-=G),E.length))break e;E.length=0,E.mode=7;case 7:if(2048&E.flags){if(J===0)break e;for(G=0;ge=I[F+G++],E.head&&ge&&E.length<65536&&(E.head.name+=String.fromCharCode(ge)),ge&&G<J;);if(512&E.flags&&(E.check=w(E.check,I,G,F)),J-=G,F+=G,ge)break e}else E.head&&(E.head.name=null);E.length=0,E.mode=8;case 8:if(4096&E.flags){if(J===0)break e;for(G=0;ge=I[F+G++],E.head&&ge&&E.length<65536&&(E.head.comment+=String.fromCharCode(ge)),ge&&G<J;);if(512&E.flags&&(E.check=w(E.check,I,G,F)),J-=G,F+=G,ge)break e}else E.head&&(E.head.comment=null);E.mode=9;case 9:if(512&E.flags){for(;ee<16;){if(J===0)break e;J--,q+=I[F++]<<ee,ee+=8}if(q!==(65535&E.check)){S.msg="header crc mismatch",E.mode=30;break}ee=q=0}E.head&&(E.head.hcrc=E.flags>>9&1,E.head.done=!0),S.adler=E.check=0,E.mode=12;break;case 10:for(;ee<32;){if(J===0)break e;J--,q+=I[F++]<<ee,ee+=8}S.adler=E.check=j(q),ee=q=0,E.mode=11;case 11:if(E.havedict===0)return S.next_out=Y,S.avail_out=se,S.next_in=F,S.avail_in=J,E.hold=q,E.bits=ee,2;S.adler=E.check=1,E.mode=12;case 12:if(k===5||k===6)break e;case 13:if(E.last){q>>>=7&ee,ee-=7&ee,E.mode=27;break}for(;ee<3;){if(J===0)break e;J--,q+=I[F++]<<ee,ee+=8}switch(E.last=1&q,ee-=1,3&(q>>>=1)){case 0:E.mode=14;break;case 1:if(C(E),E.mode=20,k!==6)break;q>>>=2,ee-=2;break e;case 2:E.mode=17;break;case 3:S.msg="invalid block type",E.mode=30}q>>>=2,ee-=2;break;case 14:for(q>>>=7&ee,ee-=7&ee;ee<32;){if(J===0)break e;J--,q+=I[F++]<<ee,ee+=8}if((65535&q)!=(q>>>16^65535)){S.msg="invalid stored block lengths",E.mode=30;break}if(E.length=65535&q,ee=q=0,E.mode=15,k===6)break e;case 15:E.mode=16;case 16:if(G=E.length){if(J<G&&(G=J),se<G&&(G=se),G===0)break e;m.arraySet(D,I,F,G,Y),J-=G,F+=G,se-=G,Y+=G,E.length-=G;break}E.mode=12;break;case 17:for(;ee<14;){if(J===0)break e;J--,q+=I[F++]<<ee,ee+=8}if(E.nlen=257+(31&q),q>>>=5,ee-=5,E.ndist=1+(31&q),q>>>=5,ee-=5,E.ncode=4+(15&q),q>>>=4,ee-=4,286<E.nlen||30<E.ndist){S.msg="too many length or distance symbols",E.mode=30;break}E.have=0,E.mode=18;case 18:for(;E.have<E.ncode;){for(;ee<3;){if(J===0)break e;J--,q+=I[F++]<<ee,ee+=8}E.lens[Ae[E.have++]]=7&q,q>>>=3,ee-=3}for(;E.have<19;)E.lens[Ae[E.have++]]=0;if(E.lencode=E.lendyn,E.lenbits=7,xe={bits:E.lenbits},ke=T(0,E.lens,0,19,E.lencode,0,E.work,xe),E.lenbits=xe.bits,ke){S.msg="invalid code lengths set",E.mode=30;break}E.have=0,E.mode=19;case 19:for(;E.have<E.nlen+E.ndist;){for(;ue=(Ie=E.lencode[q&(1<<E.lenbits)-1])>>>16&255,ve=65535&Ie,!((ie=Ie>>>24)<=ee);){if(J===0)break e;J--,q+=I[F++]<<ee,ee+=8}if(ve<16)q>>>=ie,ee-=ie,E.lens[E.have++]=ve;else{if(ve===16){for(Ee=ie+2;ee<Ee;){if(J===0)break e;J--,q+=I[F++]<<ee,ee+=8}if(q>>>=ie,ee-=ie,E.have===0){S.msg="invalid bit length repeat",E.mode=30;break}ge=E.lens[E.have-1],G=3+(3&q),q>>>=2,ee-=2}else if(ve===17){for(Ee=ie+3;ee<Ee;){if(J===0)break e;J--,q+=I[F++]<<ee,ee+=8}ee-=ie,ge=0,G=3+(7&(q>>>=ie)),q>>>=3,ee-=3}else{for(Ee=ie+7;ee<Ee;){if(J===0)break e;J--,q+=I[F++]<<ee,ee+=8}ee-=ie,ge=0,G=11+(127&(q>>>=ie)),q>>>=7,ee-=7}if(E.have+G>E.nlen+E.ndist){S.msg="invalid bit length repeat",E.mode=30;break}for(;G--;)E.lens[E.have++]=ge}}if(E.mode===30)break;if(E.lens[256]===0){S.msg="invalid code -- missing end-of-block",E.mode=30;break}if(E.lenbits=9,xe={bits:E.lenbits},ke=T(1,E.lens,0,E.nlen,E.lencode,0,E.work,xe),E.lenbits=xe.bits,ke){S.msg="invalid literal/lengths set",E.mode=30;break}if(E.distbits=6,E.distcode=E.distdyn,xe={bits:E.distbits},ke=T(2,E.lens,E.nlen,E.ndist,E.distcode,0,E.work,xe),E.distbits=xe.bits,ke){S.msg="invalid distances set",E.mode=30;break}if(E.mode=20,k===6)break e;case 20:E.mode=21;case 21:if(6<=J&&258<=se){S.next_out=Y,S.avail_out=se,S.next_in=F,S.avail_in=J,E.hold=q,E.bits=ee,_(S,P),Y=S.next_out,D=S.output,se=S.avail_out,F=S.next_in,I=S.input,J=S.avail_in,q=E.hold,ee=E.bits,E.mode===12&&(E.back=-1);break}for(E.back=0;ue=(Ie=E.lencode[q&(1<<E.lenbits)-1])>>>16&255,ve=65535&Ie,!((ie=Ie>>>24)<=ee);){if(J===0)break e;J--,q+=I[F++]<<ee,ee+=8}if(ue&&!(240&ue)){for(we=ie,le=ue,me=ve;ue=(Ie=E.lencode[me+((q&(1<<we+le)-1)>>we)])>>>16&255,ve=65535&Ie,!(we+(ie=Ie>>>24)<=ee);){if(J===0)break e;J--,q+=I[F++]<<ee,ee+=8}q>>>=we,ee-=we,E.back+=we}if(q>>>=ie,ee-=ie,E.back+=ie,E.length=ve,ue===0){E.mode=26;break}if(32&ue){E.back=-1,E.mode=12;break}if(64&ue){S.msg="invalid literal/length code",E.mode=30;break}E.extra=15&ue,E.mode=22;case 22:if(E.extra){for(Ee=E.extra;ee<Ee;){if(J===0)break e;J--,q+=I[F++]<<ee,ee+=8}E.length+=q&(1<<E.extra)-1,q>>>=E.extra,ee-=E.extra,E.back+=E.extra}E.was=E.length,E.mode=23;case 23:for(;ue=(Ie=E.distcode[q&(1<<E.distbits)-1])>>>16&255,ve=65535&Ie,!((ie=Ie>>>24)<=ee);){if(J===0)break e;J--,q+=I[F++]<<ee,ee+=8}if(!(240&ue)){for(we=ie,le=ue,me=ve;ue=(Ie=E.distcode[me+((q&(1<<we+le)-1)>>we)])>>>16&255,ve=65535&Ie,!(we+(ie=Ie>>>24)<=ee);){if(J===0)break e;J--,q+=I[F++]<<ee,ee+=8}q>>>=we,ee-=we,E.back+=we}if(q>>>=ie,ee-=ie,E.back+=ie,64&ue){S.msg="invalid distance code",E.mode=30;break}E.offset=ve,E.extra=15&ue,E.mode=24;case 24:if(E.extra){for(Ee=E.extra;ee<Ee;){if(J===0)break e;J--,q+=I[F++]<<ee,ee+=8}E.offset+=q&(1<<E.extra)-1,q>>>=E.extra,ee-=E.extra,E.back+=E.extra}if(E.offset>E.dmax){S.msg="invalid distance too far back",E.mode=30;break}E.mode=25;case 25:if(se===0)break e;if(G=P-se,E.offset>G){if((G=E.offset-G)>E.whave&&E.sane){S.msg="invalid distance too far back",E.mode=30;break}ne=G>E.wnext?(G-=E.wnext,E.wsize-G):E.wnext-G,G>E.length&&(G=E.length),ce=E.window}else ce=D,ne=Y-E.offset,G=E.length;for(se<G&&(G=se),se-=G,E.length-=G;D[Y++]=ce[ne++],--G;);E.length===0&&(E.mode=21);break;case 26:if(se===0)break e;D[Y++]=E.length,se--,E.mode=21;break;case 27:if(E.wrap){for(;ee<32;){if(J===0)break e;J--,q|=I[F++]<<ee,ee+=8}if(P-=se,S.total_out+=P,E.total+=P,P&&(S.adler=E.check=E.flags?w(E.check,D,P,Y-P):b(E.check,D,P,Y-P)),P=se,(E.flags?q:j(q))!==E.check){S.msg="incorrect data check",E.mode=30;break}ee=q=0}E.mode=28;case 28:if(E.wrap&&E.flags){for(;ee<32;){if(J===0)break e;J--,q+=I[F++]<<ee,ee+=8}if(q!==(4294967295&E.total)){S.msg="incorrect length check",E.mode=30;break}ee=q=0}E.mode=29;case 29:ke=1;break e;case 30:ke=-3;break e;case 31:return-4;case 32:default:return M}return S.next_out=Y,S.avail_out=se,S.next_in=F,S.avail_in=J,E.hold=q,E.bits=ee,(E.wsize||P!==S.avail_out&&E.mode<30&&(E.mode<27||k!==4))&&x(S,S.output,S.next_out,P-S.avail_out)?(E.mode=31,-4):(L-=S.avail_in,P-=S.avail_out,S.total_in+=L,S.total_out+=P,E.total+=P,E.wrap&&P&&(S.adler=E.check=E.flags?w(E.check,D,P,S.next_out-P):b(E.check,D,P,S.next_out-P)),S.data_type=E.bits+(E.last?64:0)+(E.mode===12?128:0)+(E.mode===20||E.mode===15?256:0),(L==0&&P===0||k===4)&&ke===0&&(ke=-5),ke)},g.inflateEnd=function(S){if(!S||!S.state)return M;var k=S.state;return k.window&&(k.window=null),S.state=null,0},g.inflateGetHeader=function(S,k){var E;return S&&S.state&&2&(E=S.state).wrap?((E.head=k).done=!1,0):M},g.inflateSetDictionary=function(S,k){var E,I=k.length;return S&&S.state?(E=S.state).wrap!==0&&E.mode!==11?M:E.mode===11&&b(1,k,I,0)!==E.check?-3:x(S,k,I,I)?(E.mode=31,-4):(E.havedict=1,0):M},g.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(f,p,g){var m=f("../utils/common"),b=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],w=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],_=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],T=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];p.exports=function(M,j,A,B,H,U,X,V){var O,N,C,x,S,k,E,I,D,F=V.bits,Y=0,J=0,se=0,q=0,ee=0,L=0,P=0,G=0,ne=0,ce=0,ie=null,ue=0,ve=new m.Buf16(16),we=new m.Buf16(16),le=null,me=0;for(Y=0;Y<=15;Y++)ve[Y]=0;for(J=0;J<B;J++)ve[j[A+J]]++;for(ee=F,q=15;1<=q&&ve[q]===0;q--);if(q<ee&&(ee=q),q===0)return H[U++]=20971520,H[U++]=20971520,V.bits=1,0;for(se=1;se<q&&ve[se]===0;se++);for(ee<se&&(ee=se),Y=G=1;Y<=15;Y++)if(G<<=1,(G-=ve[Y])<0)return-1;if(0<G&&(M===0||q!==1))return-1;for(we[1]=0,Y=1;Y<15;Y++)we[Y+1]=we[Y]+ve[Y];for(J=0;J<B;J++)j[A+J]!==0&&(X[we[j[A+J]]++]=J);if(k=M===0?(ie=le=X,19):M===1?(ie=b,ue-=257,le=w,me-=257,256):(ie=_,le=T,-1),Y=se,S=U,P=J=ce=0,C=-1,x=(ne=1<<(L=ee))-1,M===1&&852<ne||M===2&&592<ne)return 1;for(;;){for(E=Y-P,D=X[J]<k?(I=0,X[J]):X[J]>k?(I=le[me+X[J]],ie[ue+X[J]]):(I=96,0),O=1<<Y-P,se=N=1<<L;H[S+(ce>>P)+(N-=O)]=E<<24|I<<16|D|0,N!==0;);for(O=1<<Y-1;ce&O;)O>>=1;if(O!==0?(ce&=O-1,ce+=O):ce=0,J++,--ve[Y]==0){if(Y===q)break;Y=j[A+X[J]]}if(ee<Y&&(ce&x)!==C){for(P===0&&(P=ee),S+=se,G=1<<(L=Y-P);L+P<q&&!((G-=ve[L+P])<=0);)L++,G<<=1;if(ne+=1<<L,M===1&&852<ne||M===2&&592<ne)return 1;H[C=ce&x]=ee<<24|L<<16|S-U|0}}return ce!==0&&(H[S+ce]=Y-P<<24|64<<16|0),V.bits=ee,0}},{"../utils/common":41}],51:[function(f,p,g){p.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(f,p,g){var m=f("../utils/common");function b(le){for(var me=le.length;0<=--me;)le[me]=0}var w=256,_=286,T=30,M=15,j=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],A=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],B=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],H=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],U=new Array(576);b(U);var X=new Array(60);b(X);var V=new Array(512);b(V);var O=new Array(256);b(O);var N=new Array(29);b(N);var C,x,S,k=new Array(T);function E(le,me,ge,ke,xe){this.static_tree=le,this.extra_bits=me,this.extra_base=ge,this.elems=ke,this.max_length=xe,this.has_stree=le&&le.length}function I(le,me){this.dyn_tree=le,this.max_code=0,this.stat_desc=me}function D(le){return le<256?V[le]:V[256+(le>>>7)]}function F(le,me){le.pending_buf[le.pending++]=255&me,le.pending_buf[le.pending++]=me>>>8&255}function Y(le,me,ge){le.bi_valid>16-ge?(le.bi_buf|=me<<le.bi_valid&65535,F(le,le.bi_buf),le.bi_buf=me>>16-le.bi_valid,le.bi_valid+=ge-16):(le.bi_buf|=me<<le.bi_valid&65535,le.bi_valid+=ge)}function J(le,me,ge){Y(le,ge[2*me],ge[2*me+1])}function se(le,me){for(var ge=0;ge|=1&le,le>>>=1,ge<<=1,0<--me;);return ge>>>1}function q(le,me,ge){var ke,xe,Ee=new Array(16),Ie=0;for(ke=1;ke<=M;ke++)Ee[ke]=Ie=Ie+ge[ke-1]<<1;for(xe=0;xe<=me;xe++){var Pe=le[2*xe+1];Pe!==0&&(le[2*xe]=se(Ee[Pe]++,Pe))}}function ee(le){var me;for(me=0;me<_;me++)le.dyn_ltree[2*me]=0;for(me=0;me<T;me++)le.dyn_dtree[2*me]=0;for(me=0;me<19;me++)le.bl_tree[2*me]=0;le.dyn_ltree[512]=1,le.opt_len=le.static_len=0,le.last_lit=le.matches=0}function L(le){8<le.bi_valid?F(le,le.bi_buf):0<le.bi_valid&&(le.pending_buf[le.pending++]=le.bi_buf),le.bi_buf=0,le.bi_valid=0}function P(le,me,ge,ke){var xe=2*me,Ee=2*ge;return le[xe]<le[Ee]||le[xe]===le[Ee]&&ke[me]<=ke[ge]}function G(le,me,ge){for(var ke=le.heap[ge],xe=ge<<1;xe<=le.heap_len&&(xe<le.heap_len&&P(me,le.heap[xe+1],le.heap[xe],le.depth)&&xe++,!P(me,ke,le.heap[xe],le.depth));)le.heap[ge]=le.heap[xe],ge=xe,xe<<=1;le.heap[ge]=ke}function ne(le,me,ge){var ke,xe,Ee,Ie,Pe=0;if(le.last_lit!==0)for(;ke=le.pending_buf[le.d_buf+2*Pe]<<8|le.pending_buf[le.d_buf+2*Pe+1],xe=le.pending_buf[le.l_buf+Pe],Pe++,ke===0?J(le,xe,me):(J(le,(Ee=O[xe])+w+1,me),(Ie=j[Ee])!==0&&Y(le,xe-=N[Ee],Ie),J(le,Ee=D(--ke),ge),(Ie=A[Ee])!==0&&Y(le,ke-=k[Ee],Ie)),Pe<le.last_lit;);J(le,256,me)}function ce(le,me){var ge,ke,xe,Ee=me.dyn_tree,Ie=me.stat_desc.static_tree,Pe=me.stat_desc.has_stree,Ae=me.stat_desc.elems,Ge=-1;for(le.heap_len=0,le.heap_max=573,ge=0;ge<Ae;ge++)Ee[2*ge]!==0?(le.heap[++le.heap_len]=Ge=ge,le.depth[ge]=0):Ee[2*ge+1]=0;for(;le.heap_len<2;)Ee[2*(xe=le.heap[++le.heap_len]=Ge<2?++Ge:0)]=1,le.depth[xe]=0,le.opt_len--,Pe&&(le.static_len-=Ie[2*xe+1]);for(me.max_code=Ge,ge=le.heap_len>>1;1<=ge;ge--)G(le,Ee,ge);for(xe=Ae;ge=le.heap[1],le.heap[1]=le.heap[le.heap_len--],G(le,Ee,1),ke=le.heap[1],le.heap[--le.heap_max]=ge,le.heap[--le.heap_max]=ke,Ee[2*xe]=Ee[2*ge]+Ee[2*ke],le.depth[xe]=(le.depth[ge]>=le.depth[ke]?le.depth[ge]:le.depth[ke])+1,Ee[2*ge+1]=Ee[2*ke+1]=xe,le.heap[1]=xe++,G(le,Ee,1),2<=le.heap_len;);le.heap[--le.heap_max]=le.heap[1],function(st,et){var Rt,_t,xt,yt,Qe,Ve,it=et.dyn_tree,wt=et.max_code,ct=et.stat_desc.static_tree,dr=et.stat_desc.has_stree,Or=et.stat_desc.extra_bits,Pt=et.stat_desc.extra_base,hr=et.stat_desc.max_length,sr=0;for(yt=0;yt<=M;yt++)st.bl_count[yt]=0;for(it[2*st.heap[st.heap_max]+1]=0,Rt=st.heap_max+1;Rt<573;Rt++)hr<(yt=it[2*it[2*(_t=st.heap[Rt])+1]+1]+1)&&(yt=hr,sr++),it[2*_t+1]=yt,wt<_t||(st.bl_count[yt]++,Qe=0,Pt<=_t&&(Qe=Or[_t-Pt]),Ve=it[2*_t],st.opt_len+=Ve*(yt+Qe),dr&&(st.static_len+=Ve*(ct[2*_t+1]+Qe)));if(sr!==0){do{for(yt=hr-1;st.bl_count[yt]===0;)yt--;st.bl_count[yt]--,st.bl_count[yt+1]+=2,st.bl_count[hr]--,sr-=2}while(0<sr);for(yt=hr;yt!==0;yt--)for(_t=st.bl_count[yt];_t!==0;)wt<(xt=st.heap[--Rt])||(it[2*xt+1]!==yt&&(st.opt_len+=(yt-it[2*xt+1])*it[2*xt],it[2*xt+1]=yt),_t--)}}(le,me),q(Ee,Ge,le.bl_count)}function ie(le,me,ge){var ke,xe,Ee=-1,Ie=me[1],Pe=0,Ae=7,Ge=4;for(Ie===0&&(Ae=138,Ge=3),me[2*(ge+1)+1]=65535,ke=0;ke<=ge;ke++)xe=Ie,Ie=me[2*(ke+1)+1],++Pe<Ae&&xe===Ie||(Pe<Ge?le.bl_tree[2*xe]+=Pe:xe!==0?(xe!==Ee&&le.bl_tree[2*xe]++,le.bl_tree[32]++):Pe<=10?le.bl_tree[34]++:le.bl_tree[36]++,Ee=xe,Ge=(Pe=0)===Ie?(Ae=138,3):xe===Ie?(Ae=6,3):(Ae=7,4))}function ue(le,me,ge){var ke,xe,Ee=-1,Ie=me[1],Pe=0,Ae=7,Ge=4;for(Ie===0&&(Ae=138,Ge=3),ke=0;ke<=ge;ke++)if(xe=Ie,Ie=me[2*(ke+1)+1],!(++Pe<Ae&&xe===Ie)){if(Pe<Ge)for(;J(le,xe,le.bl_tree),--Pe!=0;);else xe!==0?(xe!==Ee&&(J(le,xe,le.bl_tree),Pe--),J(le,16,le.bl_tree),Y(le,Pe-3,2)):Pe<=10?(J(le,17,le.bl_tree),Y(le,Pe-3,3)):(J(le,18,le.bl_tree),Y(le,Pe-11,7));Ee=xe,Ge=(Pe=0)===Ie?(Ae=138,3):xe===Ie?(Ae=6,3):(Ae=7,4)}}b(k);var ve=!1;function we(le,me,ge,ke){Y(le,0+(ke?1:0),3),function(xe,Ee,Ie,Pe){L(xe),F(xe,Ie),F(xe,~Ie),m.arraySet(xe.pending_buf,xe.window,Ee,Ie,xe.pending),xe.pending+=Ie}(le,me,ge)}g._tr_init=function(le){ve||(function(){var me,ge,ke,xe,Ee,Ie=new Array(16);for(xe=ke=0;xe<28;xe++)for(N[xe]=ke,me=0;me<1<<j[xe];me++)O[ke++]=xe;for(O[ke-1]=xe,xe=Ee=0;xe<16;xe++)for(k[xe]=Ee,me=0;me<1<<A[xe];me++)V[Ee++]=xe;for(Ee>>=7;xe<T;xe++)for(k[xe]=Ee<<7,me=0;me<1<<A[xe]-7;me++)V[256+Ee++]=xe;for(ge=0;ge<=M;ge++)Ie[ge]=0;for(me=0;me<=143;)U[2*me+1]=8,me++,Ie[8]++;for(;me<=255;)U[2*me+1]=9,me++,Ie[9]++;for(;me<=279;)U[2*me+1]=7,me++,Ie[7]++;for(;me<=287;)U[2*me+1]=8,me++,Ie[8]++;for(q(U,287,Ie),me=0;me<T;me++)X[2*me+1]=5,X[2*me]=se(me,5);C=new E(U,j,257,_,M),x=new E(X,A,0,T,M),S=new E(new Array(0),B,0,19,7)}(),ve=!0),le.l_desc=new I(le.dyn_ltree,C),le.d_desc=new I(le.dyn_dtree,x),le.bl_desc=new I(le.bl_tree,S),le.bi_buf=0,le.bi_valid=0,ee(le)},g._tr_stored_block=we,g._tr_flush_block=function(le,me,ge,ke){var xe,Ee,Ie=0;0<le.level?(le.strm.data_type===2&&(le.strm.data_type=function(Pe){var Ae,Ge=4093624447;for(Ae=0;Ae<=31;Ae++,Ge>>>=1)if(1&Ge&&Pe.dyn_ltree[2*Ae]!==0)return 0;if(Pe.dyn_ltree[18]!==0||Pe.dyn_ltree[20]!==0||Pe.dyn_ltree[26]!==0)return 1;for(Ae=32;Ae<w;Ae++)if(Pe.dyn_ltree[2*Ae]!==0)return 1;return 0}(le)),ce(le,le.l_desc),ce(le,le.d_desc),Ie=function(Pe){var Ae;for(ie(Pe,Pe.dyn_ltree,Pe.l_desc.max_code),ie(Pe,Pe.dyn_dtree,Pe.d_desc.max_code),ce(Pe,Pe.bl_desc),Ae=18;3<=Ae&&Pe.bl_tree[2*H[Ae]+1]===0;Ae--);return Pe.opt_len+=3*(Ae+1)+5+5+4,Ae}(le),xe=le.opt_len+3+7>>>3,(Ee=le.static_len+3+7>>>3)<=xe&&(xe=Ee)):xe=Ee=ge+5,ge+4<=xe&&me!==-1?we(le,me,ge,ke):le.strategy===4||Ee===xe?(Y(le,2+(ke?1:0),3),ne(le,U,X)):(Y(le,4+(ke?1:0),3),function(Pe,Ae,Ge,st){var et;for(Y(Pe,Ae-257,5),Y(Pe,Ge-1,5),Y(Pe,st-4,4),et=0;et<st;et++)Y(Pe,Pe.bl_tree[2*H[et]+1],3);ue(Pe,Pe.dyn_ltree,Ae-1),ue(Pe,Pe.dyn_dtree,Ge-1)}(le,le.l_desc.max_code+1,le.d_desc.max_code+1,Ie+1),ne(le,le.dyn_ltree,le.dyn_dtree)),ee(le),ke&&L(le)},g._tr_tally=function(le,me,ge){return le.pending_buf[le.d_buf+2*le.last_lit]=me>>>8&255,le.pending_buf[le.d_buf+2*le.last_lit+1]=255&me,le.pending_buf[le.l_buf+le.last_lit]=255&ge,le.last_lit++,me===0?le.dyn_ltree[2*ge]++:(le.matches++,me--,le.dyn_ltree[2*(O[ge]+w+1)]++,le.dyn_dtree[2*D(me)]++),le.last_lit===le.lit_bufsize-1},g._tr_align=function(le){Y(le,2,3),J(le,256,U),function(me){me.bi_valid===16?(F(me,me.bi_buf),me.bi_buf=0,me.bi_valid=0):8<=me.bi_valid&&(me.pending_buf[me.pending++]=255&me.bi_buf,me.bi_buf>>=8,me.bi_valid-=8)}(le)}},{"../utils/common":41}],53:[function(f,p,g){p.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(f,p,g){(function(m){(function(b,w){if(!b.setImmediate){var _,T,M,j,A=1,B={},H=!1,U=b.document,X=Object.getPrototypeOf&&Object.getPrototypeOf(b);X=X&&X.setTimeout?X:b,_={}.toString.call(b.process)==="[object process]"?function(C){i.nextTick(function(){O(C)})}:function(){if(b.postMessage&&!b.importScripts){var C=!0,x=b.onmessage;return b.onmessage=function(){C=!1},b.postMessage("","*"),b.onmessage=x,C}}()?(j="setImmediate$"+Math.random()+"$",b.addEventListener?b.addEventListener("message",N,!1):b.attachEvent("onmessage",N),function(C){b.postMessage(j+C,"*")}):b.MessageChannel?((M=new MessageChannel).port1.onmessage=function(C){O(C.data)},function(C){M.port2.postMessage(C)}):U&&"onreadystatechange"in U.createElement("script")?(T=U.documentElement,function(C){var x=U.createElement("script");x.onreadystatechange=function(){O(C),x.onreadystatechange=null,T.removeChild(x),x=null},T.appendChild(x)}):function(C){setTimeout(O,0,C)},X.setImmediate=function(C){typeof C!="function"&&(C=new Function(""+C));for(var x=new Array(arguments.length-1),S=0;S<x.length;S++)x[S]=arguments[S+1];var k={callback:C,args:x};return B[A]=k,_(A),A++},X.clearImmediate=V}function V(C){delete B[C]}function O(C){if(H)setTimeout(O,0,C);else{var x=B[C];if(x){H=!0;try{(function(S){var k=S.callback,E=S.args;switch(E.length){case 0:k();break;case 1:k(E[0]);break;case 2:k(E[0],E[1]);break;case 3:k(E[0],E[1],E[2]);break;default:k.apply(void 0,E)}})(x)}finally{V(C),H=!1}}}}function N(C){C.source===b&&typeof C.data=="string"&&C.data.indexOf(j)===0&&O(+C.data.slice(j.length))}})(typeof self>"u"?m===void 0?this:m:self)}).call(this,a!==void 0?a:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})}).call(this)}).call(this,e("_process"),typeof _r<"u"?_r:typeof self<"u"?self:typeof window<"u"?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],e("timers").setImmediate)},{_process:467,buffer:220,timers:523}],442:[function(e,r,s){(function(i){(function(){var a=/[\\^$.*+?()[\]{}|]/g,o=RegExp(a.source),l=typeof i=="object"&&i&&i.Object===Object&&i,c=typeof self=="object"&&self&&self.Object===Object&&self,u=l||c||Function("return this")(),h=Object.prototype.toString,d=u.Symbol,f=d?d.prototype:void 0,p=f?f.toString:void 0;function g(m){if(typeof m=="string")return m;if(function(w){return typeof w=="symbol"||function(_){return!!_&&typeof _=="object"}(w)&&h.call(w)=="[object Symbol]"}(m))return p?p.call(m):"";var b=m+"";return b=="0"&&1/m==-1/0?"-0":b}r.exports=function(m){var b;return(m=(b=m)==null?"":g(b))&&o.test(m)?m.replace(a,"\\$&"):m}}).call(this)}).call(this,typeof _r<"u"?_r:typeof self<"u"?self:typeof window<"u"?window:{})},{}],443:[function(e,r,s){(function(i){(function(){var a="[object Arguments]",o="[object Map]",l="[object Object]",c="[object Set]",u=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,h=/^\w*$/,d=/^\./,f=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,p=/\\(\\)?/g,g=/^\[object .+?Constructor\]$/,m=/^(?:0|[1-9]\d*)$/,b={};b["[object Float32Array]"]=b["[object Float64Array]"]=b["[object Int8Array]"]=b["[object Int16Array]"]=b["[object Int32Array]"]=b["[object Uint8Array]"]=b["[object Uint8ClampedArray]"]=b["[object Uint16Array]"]=b["[object Uint32Array]"]=!0,b[a]=b["[object Array]"]=b["[object ArrayBuffer]"]=b["[object Boolean]"]=b["[object DataView]"]=b["[object Date]"]=b["[object Error]"]=b["[object Function]"]=b[o]=b["[object Number]"]=b[l]=b["[object RegExp]"]=b[c]=b["[object String]"]=b["[object WeakMap]"]=!1;var w=typeof i=="object"&&i&&i.Object===Object&&i,_=typeof self=="object"&&self&&self.Object===Object&&self,T=w||_||Function("return this")(),M=typeof s=="object"&&s&&!s.nodeType&&s,j=M&&typeof r=="object"&&r&&!r.nodeType&&r,A=j&&j.exports===M&&w.process,B=function(){try{return A&&A.binding("util")}catch{}}(),H=B&&B.isTypedArray;function U(he,Te,ze,qe){for(var mt=-1,Ye=he?he.length:0;++mt<Ye;){var Ze=he[mt];Te(qe,Ze,ze(Ze),he)}return qe}function X(he,Te){for(var ze=-1,qe=he?he.length:0;++ze<qe;)if(Te(he[ze],ze,he))return!0;return!1}function V(he){var Te=!1;if(he!=null&&typeof he.toString!="function")try{Te=!!(he+"")}catch{}return Te}function O(he){var Te=-1,ze=Array(he.size);return he.forEach(function(qe,mt){ze[++Te]=[mt,qe]}),ze}function N(he){var Te=-1,ze=Array(he.size);return he.forEach(function(qe){ze[++Te]=qe}),ze}var C,x,S,k=Array.prototype,E=Function.prototype,I=Object.prototype,D=T["__core-js_shared__"],F=(C=/[^.]+$/.exec(D&&D.keys&&D.keys.IE_PROTO||""))?"Symbol(src)_1."+C:"",Y=E.toString,J=I.hasOwnProperty,se=I.toString,q=RegExp("^"+Y.call(J).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ee=T.Symbol,L=T.Uint8Array,P=I.propertyIsEnumerable,G=k.splice,ne=(x=Object.keys,S=Object,function(he){return x(S(he))}),ce=pt(T,"DataView"),ie=pt(T,"Map"),ue=pt(T,"Promise"),ve=pt(T,"Set"),we=pt(T,"WeakMap"),le=pt(Object,"create"),me=Ce(ce),ge=Ce(ie),ke=Ce(ue),xe=Ce(ve),Ee=Ce(we),Ie=ee?ee.prototype:void 0,Pe=Ie?Ie.valueOf:void 0,Ae=Ie?Ie.toString:void 0;function Ge(he){var Te=-1,ze=he?he.length:0;for(this.clear();++Te<ze;){var qe=he[Te];this.set(qe[0],qe[1])}}function st(he){var Te=-1,ze=he?he.length:0;for(this.clear();++Te<ze;){var qe=he[Te];this.set(qe[0],qe[1])}}function et(he){var Te=-1,ze=he?he.length:0;for(this.clear();++Te<ze;){var qe=he[Te];this.set(qe[0],qe[1])}}function Rt(he){var Te=-1,ze=he?he.length:0;for(this.__data__=new et;++Te<ze;)this.add(he[Te])}function _t(he){this.__data__=new st(he)}function xt(he,Te){var ze=Dt(he)||Vt(he)?function(Ze,wr){for(var ir=-1,lr=Array(Ze);++ir<Ze;)lr[ir]=wr(ir);return lr}(he.length,String):[],qe=ze.length,mt=!!qe;for(var Ye in he)!J.call(he,Ye)||mt&&(Ye=="length"||qr(Ye,qe))||ze.push(Ye);return ze}function yt(he,Te){for(var ze=he.length;ze--;)if(rt(he[ze][0],Te))return ze;return-1}function Qe(he,Te,ze,qe){return it(he,function(mt,Ye,Ze){Te(qe,mt,ze(mt),Ze)}),qe}Ge.prototype.clear=function(){this.__data__=le?le(null):{}},Ge.prototype.delete=function(he){return this.has(he)&&delete this.__data__[he]},Ge.prototype.get=function(he){var Te=this.__data__;if(le){var ze=Te[he];return ze==="__lodash_hash_undefined__"?void 0:ze}return J.call(Te,he)?Te[he]:void 0},Ge.prototype.has=function(he){var Te=this.__data__;return le?Te[he]!==void 0:J.call(Te,he)},Ge.prototype.set=function(he,Te){return this.__data__[he]=le&&Te===void 0?"__lodash_hash_undefined__":Te,this},st.prototype.clear=function(){this.__data__=[]},st.prototype.delete=function(he){var Te=this.__data__,ze=yt(Te,he);return!(ze<0)&&(ze==Te.length-1?Te.pop():G.call(Te,ze,1),!0)},st.prototype.get=function(he){var Te=this.__data__,ze=yt(Te,he);return ze<0?void 0:Te[ze][1]},st.prototype.has=function(he){return yt(this.__data__,he)>-1},st.prototype.set=function(he,Te){var ze=this.__data__,qe=yt(ze,he);return qe<0?ze.push([he,Te]):ze[qe][1]=Te,this},et.prototype.clear=function(){this.__data__={hash:new Ge,map:new(ie||st),string:new Ge}},et.prototype.delete=function(he){return Qt(this,he).delete(he)},et.prototype.get=function(he){return Qt(this,he).get(he)},et.prototype.has=function(he){return Qt(this,he).has(he)},et.prototype.set=function(he,Te){return Qt(this,he).set(he,Te),this},Rt.prototype.add=Rt.prototype.push=function(he){return this.__data__.set(he,"__lodash_hash_undefined__"),this},Rt.prototype.has=function(he){return this.__data__.has(he)},_t.prototype.clear=function(){this.__data__=new st},_t.prototype.delete=function(he){return this.__data__.delete(he)},_t.prototype.get=function(he){return this.__data__.get(he)},_t.prototype.has=function(he){return this.__data__.has(he)},_t.prototype.set=function(he,Te){var ze=this.__data__;if(ze instanceof st){var qe=ze.__data__;if(!ie||qe.length<199)return qe.push([he,Te]),this;ze=this.__data__=new et(qe)}return ze.set(he,Te),this};var Ve,it=(Ve=function(he,Te){return he&&wt(he,Te,vn)},function(he,Te){if(he==null)return he;if(!Et(he))return Ve(he,Te);for(var ze=he.length,qe=-1,mt=Object(he);++qe<ze&&Te(mt[qe],qe,mt)!==!1;);return he}),wt=function(he){return function(Te,ze,qe){for(var mt=-1,Ye=Object(Te),Ze=qe(Te),wr=Ze.length;wr--;){var ir=Ze[++mt];if(ze(Ye[ir],ir,Ye)===!1)break}return Te}}();function ct(he,Te){for(var ze=0,qe=(Te=Ht(Te,he)?[Te]:Wt(Te)).length;he!=null&&ze<qe;)he=he[ye(Te[ze++])];return ze&&ze==qe?he:void 0}function dr(he,Te){return he!=null&&Te in Object(he)}function Or(he,Te,ze,qe,mt){return he===Te||(he==null||Te==null||!or(he)&&!an(Te)?he!=he&&Te!=Te:function(Ye,Ze,wr,ir,lr,Lt){var Mr=Dt(Ye),Lr=Dt(Ze),ar="[object Array]",Gr="[object Array]";Mr||(ar=(ar=gr(Ye))==a?l:ar),Lr||(Gr=(Gr=gr(Ze))==a?l:Gr);var gn=ar==l&&!V(Ye),ps=Gr==l&&!V(Ze),$i=ar==Gr;if($i&&!gn)return Lt||(Lt=new _t),Mr||hn(Ye)?Hr(Ye,Ze,wr,ir,lr,Lt):function(Fr,Cr,Pn,ao,oo,zs,Aa){switch(Pn){case"[object DataView]":if(Fr.byteLength!=Cr.byteLength||Fr.byteOffset!=Cr.byteOffset)return!1;Fr=Fr.buffer,Cr=Cr.buffer;case"[object ArrayBuffer]":return!(Fr.byteLength!=Cr.byteLength||!ao(new L(Fr),new L(Cr)));case"[object Boolean]":case"[object Date]":case"[object Number]":return rt(+Fr,+Cr);case"[object Error]":return Fr.name==Cr.name&&Fr.message==Cr.message;case"[object RegExp]":case"[object String]":return Fr==Cr+"";case o:var Ts=O;case c:var Li=2&zs;if(Ts||(Ts=N),Fr.size!=Cr.size&&!Li)return!1;var gc=Aa.get(Fr);if(gc)return gc==Cr;zs|=1,Aa.set(Fr,Cr);var bc=Hr(Ts(Fr),Ts(Cr),ao,oo,zs,Aa);return Aa.delete(Fr),bc;case"[object Symbol]":if(Pe)return Pe.call(Fr)==Pe.call(Cr)}return!1}(Ye,Ze,ar,wr,ir,lr,Lt);if(!(2&lr)){var Ca=gn&&J.call(Ye,"__wrapped__"),Zo=ps&&J.call(Ze,"__wrapped__");if(Ca||Zo){var Ta=Ca?Ye.value():Ye,Qo=Zo?Ze.value():Ze;return Lt||(Lt=new _t),wr(Ta,Qo,ir,lr,Lt)}}return $i?(Lt||(Lt=new _t),function(Fr,Cr,Pn,ao,oo,zs){var Aa=2&oo,Ts=vn(Fr),Li=Ts.length,gc=vn(Cr).length;if(Li!=gc&&!Aa)return!1;for(var bc=Li;bc--;){var li=Ts[bc];if(!(Aa?li in Cr:J.call(Cr,li)))return!1}var Zb=zs.get(Fr);if(Zb&&zs.get(Cr))return Zb==Cr;var yc=!0;zs.set(Fr,Cr),zs.set(Cr,Fr);for(var cf=Aa;++bc<Li;){li=Ts[bc];var Fu=Fr[li],uf=Cr[li];if(ao)var Qb=Aa?ao(uf,Fu,li,Cr,Fr,zs):ao(Fu,uf,li,Fr,Cr,zs);if(!(Qb===void 0?Fu===uf||Pn(Fu,uf,ao,oo,zs):Qb)){yc=!1;break}cf||(cf=li=="constructor")}if(yc&&!cf){var df=Fr.constructor,hf=Cr.constructor;df==hf||!("constructor"in Fr)||!("constructor"in Cr)||typeof df=="function"&&df instanceof df&&typeof hf=="function"&&hf instanceof hf||(yc=!1)}return zs.delete(Fr),zs.delete(Cr),yc}(Ye,Ze,wr,ir,lr,Lt)):!1}(he,Te,Or,ze,qe,mt))}function Pt(he){return!(!or(he)||function(Te){return!!F&&F in Te}(he))&&(Xt(he)||V(he)?q:g).test(Ce(he))}function hr(he){return typeof he=="function"?he:he==null?Cs:typeof he=="object"?Dt(he)?function(qe,mt){return Ht(qe)&&Rr(mt)?Er(ye(qe),mt):function(Ye){var Ze=function(wr,ir,lr){var Lt=wr==null?void 0:ct(wr,ir);return Lt===void 0?lr:Lt}(Ye,qe);return Ze===void 0&&Ze===mt?function(wr,ir){return wr!=null&&function(lr,Lt,Mr){Lt=Ht(Lt,lr)?[Lt]:Wt(Lt);for(var Lr,ar=-1,Gr=Lt.length;++ar<Gr;){var gn=ye(Lt[ar]);if(!(Lr=lr!=null&&Mr(lr,gn)))break;lr=lr[gn]}return Lr||!!(Gr=lr?lr.length:0)&&Bt(Gr)&&qr(gn,Gr)&&(Dt(lr)||Vt(lr))}(wr,ir,dr)}(Ye,qe):Or(mt,Ze,void 0,3)}}(he[0],he[1]):function(qe){var mt=function(Ye){for(var Ze=vn(Ye),wr=Ze.length;wr--;){var ir=Ze[wr],lr=Ye[ir];Ze[wr]=[ir,lr,Rr(lr)]}return Ze}(qe);return mt.length==1&&mt[0][2]?Er(mt[0][0],mt[0][1]):function(Ye){return Ye===qe||function(Ze,wr,ir,lr){var Lt=ir.length,Mr=Lt;if(Ze==null)return!Mr;for(Ze=Object(Ze);Lt--;){var Lr=ir[Lt];if(Lr[2]?Lr[1]!==Ze[Lr[0]]:!(Lr[0]in Ze))return!1}for(;++Lt<Mr;){var ar=(Lr=ir[Lt])[0],Gr=Ze[ar],gn=Lr[1];if(Lr[2]){if(Gr===void 0&&!(ar in Ze))return!1}else{var ps=new _t,$i;if(!($i===void 0?Or(gn,Gr,lr,3,ps):$i))return!1}}return!0}(Ye,qe,mt)}}(he):Ht(Te=he)?(ze=ye(Te),function(qe){return qe==null?void 0:qe[ze]}):function(qe){return function(mt){return ct(mt,qe)}}(Te);var Te,ze}function sr(he){if(ze=(Te=he)&&Te.constructor,qe=typeof ze=="function"&&ze.prototype||I,Te!==qe)return ne(he);var Te,ze,qe,mt=[];for(var Ye in Object(he))J.call(he,Ye)&&Ye!="constructor"&&mt.push(Ye);return mt}function Wt(he){return Dt(he)?he:qt(he)}function Hr(he,Te,ze,qe,mt,Ye){var Ze=2&mt,wr=he.length,ir=Te.length;if(wr!=ir&&!(Ze&&ir>wr))return!1;var lr=Ye.get(he);if(lr&&Ye.get(Te))return lr==Te;var Lt=-1,Mr=!0,Lr=1&mt?new Rt:void 0;for(Ye.set(he,Te),Ye.set(Te,he);++Lt<wr;){var ar=he[Lt],Gr=Te[Lt];if(qe)var gn=Ze?qe(Gr,ar,Lt,Te,he,Ye):qe(ar,Gr,Lt,he,Te,Ye);if(gn!==void 0){if(gn)continue;Mr=!1;break}if(Lr){if(!X(Te,function(ps,$i){if(!Lr.has($i)&&(ar===ps||ze(ar,ps,qe,mt,Ye)))return Lr.add($i)})){Mr=!1;break}}else if(ar!==Gr&&!ze(ar,Gr,qe,mt,Ye)){Mr=!1;break}}return Ye.delete(he),Ye.delete(Te),Mr}function Qt(he,Te){var ze,qe,mt=he.__data__;return((qe=typeof(ze=Te))=="string"||qe=="number"||qe=="symbol"||qe=="boolean"?ze!=="__proto__":ze===null)?mt[typeof Te=="string"?"string":"hash"]:mt.map}function pt(he,Te){var ze=function(qe,mt){return qe==null?void 0:qe[mt]}(he,Te);return Pt(ze)?ze:void 0}var gr=function(he){return se.call(he)};function qr(he,Te){return!!(Te=Te??9007199254740991)&&(typeof he=="number"||m.test(he))&&he>-1&&he%1==0&&he<Te}function Ht(he,Te){if(Dt(he))return!1;var ze=typeof he;return!(ze!="number"&&ze!="symbol"&&ze!="boolean"&&he!=null&&!Ur(he))||h.test(he)||!u.test(he)||Te!=null&&he in Object(Te)}function Rr(he){return he==he&&!or(he)}function Er(he,Te){return function(ze){return ze!=null&&ze[he]===Te&&(Te!==void 0||he in Object(ze))}}(ce&&gr(new ce(new ArrayBuffer(1)))!="[object DataView]"||ie&&gr(new ie)!=o||ue&&gr(ue.resolve())!="[object Promise]"||ve&&gr(new ve)!=c||we&&gr(new we)!="[object WeakMap]")&&(gr=function(he){var Te=se.call(he),ze=Te==l?he.constructor:void 0,qe=ze?Ce(ze):void 0;if(qe)switch(qe){case me:return"[object DataView]";case ge:return o;case ke:return"[object Promise]";case xe:return c;case Ee:return"[object WeakMap]"}return Te});var qt=jt(function(he){var Te;he=(Te=he)==null?"":function(qe){if(typeof qe=="string")return qe;if(Ur(qe))return Ae?Ae.call(qe):"";var mt=qe+"";return mt=="0"&&1/qe==-1/0?"-0":mt}(Te);var ze=[];return d.test(he)&&ze.push(""),he.replace(f,function(qe,mt,Ye,Ze){ze.push(Ye?Ze.replace(p,"$1"):mt||qe)}),ze});function ye(he){if(typeof he=="string"||Ur(he))return he;var Te=he+"";return Te=="0"&&1/he==-1/0?"-0":Te}function Ce(he){if(he!=null){try{return Y.call(he)}catch{}try{return he+""}catch{}}return""}var Le,tt=(Le=function(he,Te,ze){J.call(he,ze)?he[ze].push(Te):he[ze]=[Te]},function(he,Te){var ze=Dt(he)?U:Qe,qe={};return ze(he,Le,hr(Te),qe)});function jt(he,Te){if(typeof he!="function"||Te&&typeof Te!="function")throw new TypeError("Expected a function");var ze=function(){var qe=arguments,mt=Te?Te.apply(this,qe):qe[0],Ye=ze.cache;if(Ye.has(mt))return Ye.get(mt);var Ze=he.apply(this,qe);return ze.cache=Ye.set(mt,Ze),Ze};return ze.cache=new(jt.Cache||et),ze}function rt(he,Te){return he===Te||he!=he&&Te!=Te}function Vt(he){return function(Te){return an(Te)&&Et(Te)}(he)&&J.call(he,"callee")&&(!P.call(he,"callee")||se.call(he)==a)}jt.Cache=et;var Dt=Array.isArray;function Et(he){return he!=null&&Bt(he.length)&&!Xt(he)}function Xt(he){var Te=or(he)?se.call(he):"";return Te=="[object Function]"||Te=="[object GeneratorFunction]"}function Bt(he){return typeof he=="number"&&he>-1&&he%1==0&&he<=9007199254740991}function or(he){var Te=typeof he;return!!he&&(Te=="object"||Te=="function")}function an(he){return!!he&&typeof he=="object"}function Ur(he){return typeof he=="symbol"||an(he)&&se.call(he)=="[object Symbol]"}var hn=H?function(he){return function(Te){return he(Te)}}(H):function(he){return an(he)&&Bt(he.length)&&!!b[se.call(he)]};function vn(he){return Et(he)?xt(he):sr(he)}function Cs(he){return he}r.exports=tt}).call(this)}).call(this,typeof _r<"u"?_r:typeof self<"u"?self:typeof window<"u"?window:{})},{}],444:[function(e,r,s){var i=Object.prototype.toString;r.exports=function(a){return a===!0||a===!1||function(o){return!!o&&typeof o=="object"}(a)&&i.call(a)=="[object Boolean]"}},{}],445:[function(e,r,s){(function(i){(function(){var a="[object Arguments]",o="[object Map]",l="[object Object]",c="[object Set]",u=/^\[object .+?Constructor\]$/,h=/^(?:0|[1-9]\d*)$/,d={};d["[object Float32Array]"]=d["[object Float64Array]"]=d["[object Int8Array]"]=d["[object Int16Array]"]=d["[object Int32Array]"]=d["[object Uint8Array]"]=d["[object Uint8ClampedArray]"]=d["[object Uint16Array]"]=d["[object Uint32Array]"]=!0,d[a]=d["[object Array]"]=d["[object ArrayBuffer]"]=d["[object Boolean]"]=d["[object DataView]"]=d["[object Date]"]=d["[object Error]"]=d["[object Function]"]=d[o]=d["[object Number]"]=d[l]=d["[object RegExp]"]=d[c]=d["[object String]"]=d["[object WeakMap]"]=!1;var f=typeof i=="object"&&i&&i.Object===Object&&i,p=typeof self=="object"&&self&&self.Object===Object&&self,g=f||p||Function("return this")(),m=typeof s=="object"&&s&&!s.nodeType&&s,b=m&&typeof r=="object"&&r&&!r.nodeType&&r,w=b&&b.exports===m,_=w&&f.process,T=function(){try{return _&&_.binding&&_.binding("util")}catch{}}(),M=T&&T.isTypedArray;function j(ye,Ce){for(var Le=-1,tt=ye==null?0:ye.length;++Le<tt;)if(Ce(ye[Le],Le,ye))return!0;return!1}function A(ye){var Ce=-1,Le=Array(ye.size);return ye.forEach(function(tt,jt){Le[++Ce]=[jt,tt]}),Le}function B(ye){var Ce=-1,Le=Array(ye.size);return ye.forEach(function(tt){Le[++Ce]=tt}),Le}var H,U,X,V=Array.prototype,O=Function.prototype,N=Object.prototype,C=g["__core-js_shared__"],x=O.toString,S=N.hasOwnProperty,k=(H=/[^.]+$/.exec(C&&C.keys&&C.keys.IE_PROTO||""))?"Symbol(src)_1."+H:"",E=N.toString,I=RegExp("^"+x.call(S).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),D=w?g.Buffer:void 0,F=g.Symbol,Y=g.Uint8Array,J=N.propertyIsEnumerable,se=V.splice,q=F?F.toStringTag:void 0,ee=Object.getOwnPropertySymbols,L=D?D.isBuffer:void 0,P=(U=Object.keys,X=Object,function(ye){return U(X(ye))}),G=dr(g,"DataView"),ne=dr(g,"Map"),ce=dr(g,"Promise"),ie=dr(g,"Set"),ue=dr(g,"WeakMap"),ve=dr(Object,"create"),we=sr(G),le=sr(ne),me=sr(ce),ge=sr(ie),ke=sr(ue),xe=F?F.prototype:void 0,Ee=xe?xe.valueOf:void 0;function Ie(ye){var Ce=-1,Le=ye==null?0:ye.length;for(this.clear();++Ce<Le;){var tt=ye[Ce];this.set(tt[0],tt[1])}}function Pe(ye){var Ce=-1,Le=ye==null?0:ye.length;for(this.clear();++Ce<Le;){var tt=ye[Ce];this.set(tt[0],tt[1])}}function Ae(ye){var Ce=-1,Le=ye==null?0:ye.length;for(this.clear();++Ce<Le;){var tt=ye[Ce];this.set(tt[0],tt[1])}}function Ge(ye){var Ce=-1,Le=ye==null?0:ye.length;for(this.__data__=new Ae;++Ce<Le;)this.add(ye[Ce])}function st(ye){var Ce=this.__data__=new Pe(ye);this.size=Ce.size}function et(ye,Ce){var Le=Qt(ye),tt=!Le&&Hr(ye),jt=!Le&&!tt&&pt(ye),rt=!Le&&!tt&&!jt&&Er(ye),Vt=Le||tt||jt||rt,Dt=Vt?function(Bt,or){for(var an=-1,Ur=Array(Bt);++an<Bt;)Ur[an]=or(an);return Ur}(ye.length,String):[],Et=Dt.length;for(var Xt in ye)!S.call(ye,Xt)||Vt&&(Xt=="length"||jt&&(Xt=="offset"||Xt=="parent")||rt&&(Xt=="buffer"||Xt=="byteLength"||Xt=="byteOffset")||hr(Xt,Et))||Dt.push(Xt);return Dt}function Rt(ye,Ce){for(var Le=ye.length;Le--;)if(Wt(ye[Le][0],Ce))return Le;return-1}function _t(ye){return ye==null?ye===void 0?"[object Undefined]":"[object Null]":q&&q in Object(ye)?function(Ce){var Le=S.call(Ce,q),tt=Ce[q];try{Ce[q]=void 0;var jt=!0}catch{}var rt=E.call(Ce);return jt&&(Le?Ce[q]=tt:delete Ce[q]),rt}(ye):function(Ce){return E.call(Ce)}(ye)}function xt(ye){return Rr(ye)&&_t(ye)==a}function yt(ye,Ce,Le,tt,jt){return ye===Ce||(ye==null||Ce==null||!Rr(ye)&&!Rr(Ce)?ye!=ye&&Ce!=Ce:function(rt,Vt,Dt,Et,Xt,Bt){var or=Qt(rt),an=Qt(Vt),Ur=or?"[object Array]":Pt(rt),hn=an?"[object Array]":Pt(Vt),vn=(Ur=Ur==a?l:Ur)==l,Cs=(hn=hn==a?l:hn)==l,he=Ur==hn;if(he&&pt(rt)){if(!pt(Vt))return!1;or=!0,vn=!1}if(he&&!vn)return Bt||(Bt=new st),or||Er(rt)?it(rt,Vt,Dt,Et,Xt,Bt):function(Ye,Ze,wr,ir,lr,Lt,Mr){switch(wr){case"[object DataView]":if(Ye.byteLength!=Ze.byteLength||Ye.byteOffset!=Ze.byteOffset)return!1;Ye=Ye.buffer,Ze=Ze.buffer;case"[object ArrayBuffer]":return!(Ye.byteLength!=Ze.byteLength||!Lt(new Y(Ye),new Y(Ze)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Wt(+Ye,+Ze);case"[object Error]":return Ye.name==Ze.name&&Ye.message==Ze.message;case"[object RegExp]":case"[object String]":return Ye==Ze+"";case o:var Lr=A;case c:var ar=1&ir;if(Lr||(Lr=B),Ye.size!=Ze.size&&!ar)return!1;var Gr=Mr.get(Ye);if(Gr)return Gr==Ze;ir|=2,Mr.set(Ye,Ze);var gn=it(Lr(Ye),Lr(Ze),ir,lr,Lt,Mr);return Mr.delete(Ye),gn;case"[object Symbol]":if(Ee)return Ee.call(Ye)==Ee.call(Ze)}return!1}(rt,Vt,Ur,Dt,Et,Xt,Bt);if(!(1&Dt)){var Te=vn&&S.call(rt,"__wrapped__"),ze=Cs&&S.call(Vt,"__wrapped__");if(Te||ze){var qe=Te?rt.value():rt,mt=ze?Vt.value():Vt;return Bt||(Bt=new st),Xt(qe,mt,Dt,Et,Bt)}}return he?(Bt||(Bt=new st),function(Ye,Ze,wr,ir,lr,Lt){var Mr=1&wr,Lr=wt(Ye),ar=Lr.length,Gr=wt(Ze).length;if(ar!=Gr&&!Mr)return!1;for(var gn=ar;gn--;){var ps=Lr[gn];if(!(Mr?ps in Ze:S.call(Ze,ps)))return!1}var $i=Lt.get(Ye);if($i&&Lt.get(Ze))return $i==Ze;var Ca=!0;Lt.set(Ye,Ze),Lt.set(Ze,Ye);for(var Zo=Mr;++gn<ar;){ps=Lr[gn];var Ta=Ye[ps],Qo=Ze[ps];if(ir)var Fr=Mr?ir(Qo,Ta,ps,Ze,Ye,Lt):ir(Ta,Qo,ps,Ye,Ze,Lt);if(!(Fr===void 0?Ta===Qo||lr(Ta,Qo,wr,ir,Lt):Fr)){Ca=!1;break}Zo||(Zo=ps=="constructor")}if(Ca&&!Zo){var Cr=Ye.constructor,Pn=Ze.constructor;Cr==Pn||!("constructor"in Ye)||!("constructor"in Ze)||typeof Cr=="function"&&Cr instanceof Cr&&typeof Pn=="function"&&Pn instanceof Pn||(Ca=!1)}return Lt.delete(Ye),Lt.delete(Ze),Ca}(rt,Vt,Dt,Et,Xt,Bt)):!1}(ye,Ce,Le,tt,yt,jt))}function Qe(ye){return!(!Ht(ye)||function(Ce){return!!k&&k in Ce}(ye))&&(gr(ye)?I:u).test(sr(ye))}function Ve(ye){if(Le=(Ce=ye)&&Ce.constructor,tt=typeof Le=="function"&&Le.prototype||N,Ce!==tt)return P(ye);var Ce,Le,tt,jt=[];for(var rt in Object(ye))S.call(ye,rt)&&rt!="constructor"&&jt.push(rt);return jt}function it(ye,Ce,Le,tt,jt,rt){var Vt=1&Le,Dt=ye.length,Et=Ce.length;if(Dt!=Et&&!(Vt&&Et>Dt))return!1;var Xt=rt.get(ye);if(Xt&&rt.get(Ce))return Xt==Ce;var Bt=-1,or=!0,an=2&Le?new Ge:void 0;for(rt.set(ye,Ce),rt.set(Ce,ye);++Bt<Dt;){var Ur=ye[Bt],hn=Ce[Bt];if(tt)var vn=Vt?tt(hn,Ur,Bt,Ce,ye,rt):tt(Ur,hn,Bt,ye,Ce,rt);if(vn!==void 0){if(vn)continue;or=!1;break}if(an){if(!j(Ce,function(Cs,he){if(Te=he,!an.has(Te)&&(Ur===Cs||jt(Ur,Cs,Le,tt,rt)))return an.push(he);var Te})){or=!1;break}}else if(Ur!==hn&&!jt(Ur,hn,Le,tt,rt)){or=!1;break}}return rt.delete(ye),rt.delete(Ce),or}function wt(ye){return function(Ce,Le,tt){var jt=Le(Ce);return Qt(Ce)?jt:function(rt,Vt){for(var Dt=-1,Et=Vt.length,Xt=rt.length;++Dt<Et;)rt[Xt+Dt]=Vt[Dt];return rt}(jt,tt(Ce))}(ye,qt,Or)}function ct(ye,Ce){var Le,tt,jt=ye.__data__;return((tt=typeof(Le=Ce))=="string"||tt=="number"||tt=="symbol"||tt=="boolean"?Le!=="__proto__":Le===null)?jt[typeof Ce=="string"?"string":"hash"]:jt.map}function dr(ye,Ce){var Le=function(tt,jt){return tt==null?void 0:tt[jt]}(ye,Ce);return Qe(Le)?Le:void 0}Ie.prototype.clear=function(){this.__data__=ve?ve(null):{},this.size=0},Ie.prototype.delete=function(ye){var Ce=this.has(ye)&&delete this.__data__[ye];return this.size-=Ce?1:0,Ce},Ie.prototype.get=function(ye){var Ce=this.__data__;if(ve){var Le=Ce[ye];return Le==="__lodash_hash_undefined__"?void 0:Le}return S.call(Ce,ye)?Ce[ye]:void 0},Ie.prototype.has=function(ye){var Ce=this.__data__;return ve?Ce[ye]!==void 0:S.call(Ce,ye)},Ie.prototype.set=function(ye,Ce){var Le=this.__data__;return this.size+=this.has(ye)?0:1,Le[ye]=ve&&Ce===void 0?"__lodash_hash_undefined__":Ce,this},Pe.prototype.clear=function(){this.__data__=[],this.size=0},Pe.prototype.delete=function(ye){var Ce=this.__data__,Le=Rt(Ce,ye);return!(Le<0)&&(Le==Ce.length-1?Ce.pop():se.call(Ce,Le,1),--this.size,!0)},Pe.prototype.get=function(ye){var Ce=this.__data__,Le=Rt(Ce,ye);return Le<0?void 0:Ce[Le][1]},Pe.prototype.has=function(ye){return Rt(this.__data__,ye)>-1},Pe.prototype.set=function(ye,Ce){var Le=this.__data__,tt=Rt(Le,ye);return tt<0?(++this.size,Le.push([ye,Ce])):Le[tt][1]=Ce,this},Ae.prototype.clear=function(){this.size=0,this.__data__={hash:new Ie,map:new(ne||Pe),string:new Ie}},Ae.prototype.delete=function(ye){var Ce=ct(this,ye).delete(ye);return this.size-=Ce?1:0,Ce},Ae.prototype.get=function(ye){return ct(this,ye).get(ye)},Ae.prototype.has=function(ye){return ct(this,ye).has(ye)},Ae.prototype.set=function(ye,Ce){var Le=ct(this,ye),tt=Le.size;return Le.set(ye,Ce),this.size+=Le.size==tt?0:1,this},Ge.prototype.add=Ge.prototype.push=function(ye){return this.__data__.set(ye,"__lodash_hash_undefined__"),this},Ge.prototype.has=function(ye){return this.__data__.has(ye)},st.prototype.clear=function(){this.__data__=new Pe,this.size=0},st.prototype.delete=function(ye){var Ce=this.__data__,Le=Ce.delete(ye);return this.size=Ce.size,Le},st.prototype.get=function(ye){return this.__data__.get(ye)},st.prototype.has=function(ye){return this.__data__.has(ye)},st.prototype.set=function(ye,Ce){var Le=this.__data__;if(Le instanceof Pe){var tt=Le.__data__;if(!ne||tt.length<199)return tt.push([ye,Ce]),this.size=++Le.size,this;Le=this.__data__=new Ae(tt)}return Le.set(ye,Ce),this.size=Le.size,this};var Or=ee?function(ye){return ye==null?[]:(ye=Object(ye),function(Ce,Le){for(var tt=-1,jt=Ce==null?0:Ce.length,rt=0,Vt=[];++tt<jt;){var Dt=Ce[tt];Le(Dt,tt,Ce)&&(Vt[rt++]=Dt)}return Vt}(ee(ye),function(Ce){return J.call(ye,Ce)}))}:function(){return[]},Pt=_t;function hr(ye,Ce){return!!(Ce=Ce??9007199254740991)&&(typeof ye=="number"||h.test(ye))&&ye>-1&&ye%1==0&&ye<Ce}function sr(ye){if(ye!=null){try{return x.call(ye)}catch{}try{return ye+""}catch{}}return""}function Wt(ye,Ce){return ye===Ce||ye!=ye&&Ce!=Ce}(G&&Pt(new G(new ArrayBuffer(1)))!="[object DataView]"||ne&&Pt(new ne)!=o||ce&&Pt(ce.resolve())!="[object Promise]"||ie&&Pt(new ie)!=c||ue&&Pt(new ue)!="[object WeakMap]")&&(Pt=function(ye){var Ce=_t(ye),Le=Ce==l?ye.constructor:void 0,tt=Le?sr(Le):"";if(tt)switch(tt){case we:return"[object DataView]";case le:return o;case me:return"[object Promise]";case ge:return c;case ke:return"[object WeakMap]"}return Ce});var Hr=xt(function(){return arguments}())?xt:function(ye){return Rr(ye)&&S.call(ye,"callee")&&!J.call(ye,"callee")},Qt=Array.isArray,pt=L||function(){return!1};function gr(ye){if(!Ht(ye))return!1;var Ce=_t(ye);return Ce=="[object Function]"||Ce=="[object GeneratorFunction]"||Ce=="[object AsyncFunction]"||Ce=="[object Proxy]"}function qr(ye){return typeof ye=="number"&&ye>-1&&ye%1==0&&ye<=9007199254740991}function Ht(ye){var Ce=typeof ye;return ye!=null&&(Ce=="object"||Ce=="function")}function Rr(ye){return ye!=null&&typeof ye=="object"}var Er=M?function(ye){return function(Ce){return ye(Ce)}}(M):function(ye){return Rr(ye)&&qr(ye.length)&&!!d[_t(ye)]};function qt(ye){return(Ce=ye)!=null&&qr(Ce.length)&&!gr(Ce)?et(ye):Ve(ye);var Ce}r.exports=function(ye,Ce){return yt(ye,Ce)}}).call(this)}).call(this,typeof _r<"u"?_r:typeof self<"u"?self:typeof window<"u"?window:{})},{}],446:[function(e,r,s){(function(i){(function(){var a=typeof i=="object"&&i&&i.Object===Object&&i,o=typeof self=="object"&&self&&self.Object===Object&&self,l=a||o||Function("return this")(),c=Object.prototype,u=c.hasOwnProperty,h=c.toString,d=l.Symbol,f=d?d.toStringTag:void 0;function p(g){return g==null?g===void 0?"[object Undefined]":"[object Null]":f&&f in Object(g)?function(m){var b=u.call(m,f),w=m[f];try{m[f]=void 0;var _=!0}catch{}var T=h.call(m);return _&&(b?m[f]=w:delete m[f]),T}(g):function(m){return h.call(m)}(g)}r.exports=function(g){if(!function(b){var w=typeof b;return b!=null&&(w=="object"||w=="function")}(g))return!1;var m=p(g);return m=="[object Function]"||m=="[object GeneratorFunction]"||m=="[object AsyncFunction]"||m=="[object Proxy]"}}).call(this)}).call(this,typeof _r<"u"?_r:typeof self<"u"?self:typeof window<"u"?window:{})},{}],447:[function(e,r,s){r.exports=function(i){return i==null}},{}],448:[function(e,r,s){r.exports=function(i){return i===void 0}},{}],449:[function(e,r,s){(function(i){(function(){var a=/^\[object .+?Constructor\]$/,o=typeof i=="object"&&i&&i.Object===Object&&i,l=typeof self=="object"&&self&&self.Object===Object&&self,c=o||l||Function("return this")();function u(F,Y){return!!(F&&F.length)&&function(J,se,q){if(se!=se)return function(P,G,ne,ce){for(var ie=P.length,ue=ne+-1;++ue<ie;)if(G(P[ue],ue,P))return ue;return-1}(J,h,q);for(var ee=q-1,L=J.length;++ee<L;)if(J[ee]===se)return ee;return-1}(F,Y,0)>-1}function h(F){return F!=F}function d(F,Y){return F.has(Y)}function f(F){var Y=-1,J=Array(F.size);return F.forEach(function(se){J[++Y]=se}),J}var p,g=Array.prototype,m=Function.prototype,b=Object.prototype,w=c["__core-js_shared__"],_=(p=/[^.]+$/.exec(w&&w.keys&&w.keys.IE_PROTO||""))?"Symbol(src)_1."+p:"",T=m.toString,M=b.hasOwnProperty,j=b.toString,A=RegExp("^"+T.call(M).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),B=g.splice,H=I(c,"Map"),U=I(c,"Set"),X=I(Object,"create");function V(F){var Y=-1,J=F?F.length:0;for(this.clear();++Y<J;){var se=F[Y];this.set(se[0],se[1])}}function O(F){var Y=-1,J=F?F.length:0;for(this.clear();++Y<J;){var se=F[Y];this.set(se[0],se[1])}}function N(F){var Y=-1,J=F?F.length:0;for(this.clear();++Y<J;){var se=F[Y];this.set(se[0],se[1])}}function C(F){var Y=-1,J=F?F.length:0;for(this.__data__=new N;++Y<J;)this.add(F[Y])}function x(F,Y){for(var J,se,q=F.length;q--;)if((J=F[q][0])===(se=Y)||J!=J&&se!=se)return q;return-1}function S(F){return!(!D(F)||(Y=F,_&&_ in Y))&&(function(J){var se=D(J)?j.call(J):"";return se=="[object Function]"||se=="[object GeneratorFunction]"}(F)||function(J){var se=!1;if(J!=null&&typeof J.toString!="function")try{se=!!(J+"")}catch{}return se}(F)?A:a).test(function(J){if(J!=null){try{return T.call(J)}catch{}try{return J+""}catch{}}return""}(F));var Y}V.prototype.clear=function(){this.__data__=X?X(null):{}},V.prototype.delete=function(F){return this.has(F)&&delete this.__data__[F]},V.prototype.get=function(F){var Y=this.__data__;if(X){var J=Y[F];return J==="__lodash_hash_undefined__"?void 0:J}return M.call(Y,F)?Y[F]:void 0},V.prototype.has=function(F){var Y=this.__data__;return X?Y[F]!==void 0:M.call(Y,F)},V.prototype.set=function(F,Y){return this.__data__[F]=X&&Y===void 0?"__lodash_hash_undefined__":Y,this},O.prototype.clear=function(){this.__data__=[]},O.prototype.delete=function(F){var Y=this.__data__,J=x(Y,F);return!(J<0)&&(J==Y.length-1?Y.pop():B.call(Y,J,1),!0)},O.prototype.get=function(F){var Y=this.__data__,J=x(Y,F);return J<0?void 0:Y[J][1]},O.prototype.has=function(F){return x(this.__data__,F)>-1},O.prototype.set=function(F,Y){var J=this.__data__,se=x(J,F);return se<0?J.push([F,Y]):J[se][1]=Y,this},N.prototype.clear=function(){this.__data__={hash:new V,map:new(H||O),string:new V}},N.prototype.delete=function(F){return E(this,F).delete(F)},N.prototype.get=function(F){return E(this,F).get(F)},N.prototype.has=function(F){return E(this,F).has(F)},N.prototype.set=function(F,Y){return E(this,F).set(F,Y),this},C.prototype.add=C.prototype.push=function(F){return this.__data__.set(F,"__lodash_hash_undefined__"),this},C.prototype.has=function(F){return this.__data__.has(F)};var k=U&&1/f(new U([,-0]))[1]==1/0?function(F){return new U(F)}:function(){};function E(F,Y){var J,se,q=F.__data__;return((se=typeof(J=Y))=="string"||se=="number"||se=="symbol"||se=="boolean"?J!=="__proto__":J===null)?q[typeof Y=="string"?"string":"hash"]:q.map}function I(F,Y){var J=function(se,q){return se==null?void 0:se[q]}(F,Y);return S(J)?J:void 0}function D(F){var Y=typeof F;return!!F&&(Y=="object"||Y=="function")}r.exports=function(F){return F&&F.length?function(Y,J,se){var q=-1,ee=u,L=Y.length,P=!0,G=[],ne=G;if(L>=200){var ce=k(Y);if(ce)return f(ce);P=!1,ee=d,ne=new C}else ne=G;e:for(;++q<L;){var ie=Y[q],ue=ie;if(ie=ie!==0?ie:0,P&&ue==ue){for(var ve=ne.length;ve--;)if(ne[ve]===ue)continue e;G.push(ie)}else ee(ne,ue,se)||(ne!==G&&ne.push(ue),G.push(ie))}return G}(F):[]}}).call(this)}).call(this,typeof _r<"u"?_r:typeof self<"u"?self:typeof window<"u"?window:{})},{}],450:[function(e,r,s){var i=e("inherits"),a=e("hash-base"),o=e("safe-buffer").Buffer,l=new Array(16);function c(){a.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function u(g,m){return g<<m|g>>>32-m}function h(g,m,b,w,_,T,M){return u(g+(m&b|~m&w)+_+T|0,M)+m|0}function d(g,m,b,w,_,T,M){return u(g+(m&w|b&~w)+_+T|0,M)+m|0}function f(g,m,b,w,_,T,M){return u(g+(m^b^w)+_+T|0,M)+m|0}function p(g,m,b,w,_,T,M){return u(g+(b^(m|~w))+_+T|0,M)+m|0}i(c,a),c.prototype._update=function(){for(var g=l,m=0;m<16;++m)g[m]=this._block.readInt32LE(4*m);var b=this._a,w=this._b,_=this._c,T=this._d;b=h(b,w,_,T,g[0],3614090360,7),T=h(T,b,w,_,g[1],3905402710,12),_=h(_,T,b,w,g[2],606105819,17),w=h(w,_,T,b,g[3],3250441966,22),b=h(b,w,_,T,g[4],4118548399,7),T=h(T,b,w,_,g[5],1200080426,12),_=h(_,T,b,w,g[6],2821735955,17),w=h(w,_,T,b,g[7],4249261313,22),b=h(b,w,_,T,g[8],1770035416,7),T=h(T,b,w,_,g[9],2336552879,12),_=h(_,T,b,w,g[10],4294925233,17),w=h(w,_,T,b,g[11],2304563134,22),b=h(b,w,_,T,g[12],1804603682,7),T=h(T,b,w,_,g[13],4254626195,12),_=h(_,T,b,w,g[14],2792965006,17),b=d(b,w=h(w,_,T,b,g[15],1236535329,22),_,T,g[1],4129170786,5),T=d(T,b,w,_,g[6],3225465664,9),_=d(_,T,b,w,g[11],643717713,14),w=d(w,_,T,b,g[0],3921069994,20),b=d(b,w,_,T,g[5],3593408605,5),T=d(T,b,w,_,g[10],38016083,9),_=d(_,T,b,w,g[15],3634488961,14),w=d(w,_,T,b,g[4],3889429448,20),b=d(b,w,_,T,g[9],568446438,5),T=d(T,b,w,_,g[14],3275163606,9),_=d(_,T,b,w,g[3],4107603335,14),w=d(w,_,T,b,g[8],1163531501,20),b=d(b,w,_,T,g[13],2850285829,5),T=d(T,b,w,_,g[2],4243563512,9),_=d(_,T,b,w,g[7],1735328473,14),b=f(b,w=d(w,_,T,b,g[12],2368359562,20),_,T,g[5],4294588738,4),T=f(T,b,w,_,g[8],2272392833,11),_=f(_,T,b,w,g[11],1839030562,16),w=f(w,_,T,b,g[14],4259657740,23),b=f(b,w,_,T,g[1],2763975236,4),T=f(T,b,w,_,g[4],1272893353,11),_=f(_,T,b,w,g[7],4139469664,16),w=f(w,_,T,b,g[10],3200236656,23),b=f(b,w,_,T,g[13],681279174,4),T=f(T,b,w,_,g[0],3936430074,11),_=f(_,T,b,w,g[3],3572445317,16),w=f(w,_,T,b,g[6],76029189,23),b=f(b,w,_,T,g[9],3654602809,4),T=f(T,b,w,_,g[12],3873151461,11),_=f(_,T,b,w,g[15],530742520,16),b=p(b,w=f(w,_,T,b,g[2],3299628645,23),_,T,g[0],4096336452,6),T=p(T,b,w,_,g[7],1126891415,10),_=p(_,T,b,w,g[14],2878612391,15),w=p(w,_,T,b,g[5],4237533241,21),b=p(b,w,_,T,g[12],1700485571,6),T=p(T,b,w,_,g[3],2399980690,10),_=p(_,T,b,w,g[10],4293915773,15),w=p(w,_,T,b,g[1],2240044497,21),b=p(b,w,_,T,g[8],1873313359,6),T=p(T,b,w,_,g[15],4264355552,10),_=p(_,T,b,w,g[6],2734768916,15),w=p(w,_,T,b,g[13],1309151649,21),b=p(b,w,_,T,g[4],4149444226,6),T=p(T,b,w,_,g[11],3174756917,10),_=p(_,T,b,w,g[2],718787259,15),w=p(w,_,T,b,g[9],3951481745,21),this._a=this._a+b|0,this._b=this._b+w|0,this._c=this._c+_|0,this._d=this._d+T|0},c.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 g=o.allocUnsafe(16);return g.writeInt32LE(this._a,0),g.writeInt32LE(this._b,4),g.writeInt32LE(this._c,8),g.writeInt32LE(this._d,12),g},r.exports=c},{"hash-base":425,inherits:440,"safe-buffer":494}],451:[function(e,r,s){var i=e("bn.js"),a=e("brorand");function o(l){this.rand=l||new a.Rand}r.exports=o,o.create=function(l){return new o(l)},o.prototype._randbelow=function(l){var c=l.bitLength(),u=Math.ceil(c/8);do var h=new i(this.rand.generate(u));while(h.cmp(l)>=0);return h},o.prototype._randrange=function(l,c){var u=c.sub(l);return l.add(this._randbelow(u))},o.prototype.test=function(l,c,u){var h=l.bitLength(),d=i.mont(l),f=new i(1).toRed(d);c||(c=Math.max(1,h/48|0));for(var p=l.subn(1),g=0;!p.testn(g);g++);for(var m=l.shrn(g),b=p.toRed(d);c>0;c--){var w=this._randrange(new i(2),p);u&&u(w);var _=w.toRed(d).redPow(m);if(_.cmp(f)!==0&&_.cmp(b)!==0){for(var T=1;T<g;T++){if((_=_.redSqr()).cmp(f)===0)return!1;if(_.cmp(b)===0)break}if(T===g)return!1}}return!0},o.prototype.getDivisor=function(l,c){var u=l.bitLength(),h=i.mont(l),d=new i(1).toRed(h);c||(c=Math.max(1,u/48|0));for(var f=l.subn(1),p=0;!f.testn(p);p++);for(var g=l.shrn(p),m=f.toRed(h);c>0;c--){var b=this._randrange(new i(2),f),w=l.gcd(b);if(w.cmpn(1)!==0)return w;var _=b.toRed(h).redPow(g);if(_.cmp(d)!==0&&_.cmp(m)!==0){for(var T=1;T<p;T++){if((_=_.redSqr()).cmp(d)===0)return _.fromRed().subn(1).gcd(l);if(_.cmp(m)===0)break}if(T===p)return(_=_.redSqr()).fromRed().subn(1).gcd(l)}}return!1}},{"bn.js":452,brorand:187}],452:[function(e,r,s){arguments[4][184][0].apply(s,arguments)},{buffer:188,dup:184}],453:[function(e,r,s){function i(a,o){if(!a)throw new Error(o||"Assertion failed")}r.exports=i,i.equal=function(a,o,l){if(a!=o)throw new Error(l||"Assertion failed: "+a+" != "+o)}},{}],454:[function(e,r,s){var i=s;function a(l){return l.length===1?"0"+l:l}function o(l){for(var c="",u=0;u<l.length;u++)c+=a(l[u].toString(16));return c}i.toArray=function(l,c){if(Array.isArray(l))return l.slice();if(!l)return[];var u=[];if(typeof l!="string"){for(var h=0;h<l.length;h++)u[h]=0|l[h];return u}if(c==="hex")for((l=l.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(l="0"+l),h=0;h<l.length;h+=2)u.push(parseInt(l[h]+l[h+1],16));else for(h=0;h<l.length;h++){var d=l.charCodeAt(h),f=d>>8,p=255&d;f?u.push(f,p):u.push(p)}return u},i.zero2=a,i.toHex=o,i.encode=function(l,c){return c==="hex"?o(l):l}},{}],455:[function(e,r,s){r.exports={"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"}},{}],456:[function(e,r,s){var i=e("asn1.js");s.certificate=e("./certificate");var a=i.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())});s.RSAPrivateKey=a;var o=i.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});s.RSAPublicKey=o;var l=i.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(c),this.key("subjectPublicKey").bitstr())});s.PublicKey=l;var c=i.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())}),u=i.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(c),this.key("subjectPrivateKey").octstr())});s.PrivateKey=u;var h=i.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())});s.EncryptedPrivateKey=h;var d=i.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())});s.DSAPrivateKey=d,s.DSAparam=i.define("DSAparam",function(){this.int()});var f=i.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(p),this.key("publicKey").optional().explicit(1).bitstr())});s.ECPrivateKey=f;var p=i.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});s.signature=i.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},{"./certificate":457,"asn1.js":170}],457:[function(e,r,s){var i=e("asn1.js"),a=i.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),o=i.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),l=i.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),c=i.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(l),this.key("subjectPublicKey").bitstr())}),u=i.define("RelativeDistinguishedName",function(){this.setof(o)}),h=i.define("RDNSequence",function(){this.seqof(u)}),d=i.define("Name",function(){this.choice({rdnSequence:this.use(h)})}),f=i.define("Validity",function(){this.seq().obj(this.key("notBefore").use(a),this.key("notAfter").use(a))}),p=i.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),g=i.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(l),this.key("issuer").use(d),this.key("validity").use(f),this.key("subject").use(d),this.key("subjectPublicKeyInfo").use(c),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(p).optional())}),m=i.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(g),this.key("signatureAlgorithm").use(l),this.key("signatureValue").bitstr())});r.exports=m},{"asn1.js":170}],458:[function(e,r,s){var i=/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,a=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,o=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,l=e("evp_bytestokey"),c=e("browserify-aes"),u=e("safe-buffer").Buffer;r.exports=function(h,d){var f,p=h.toString(),g=p.match(i);if(g){var m="aes"+g[1],b=u.from(g[2],"hex"),w=u.from(g[3].replace(/[\r\n]/g,""),"base64"),_=l(d,b.slice(0,8),parseInt(g[1],10)).key,T=[],M=c.createDecipheriv(m,_,b);T.push(M.update(w)),T.push(M.final()),f=u.concat(T)}else{var j=p.match(o);f=u.from(j[2].replace(/[\r\n]/g,""),"base64")}return{tag:p.match(a)[1],data:f}}},{"browserify-aes":191,evp_bytestokey:423,"safe-buffer":494}],459:[function(e,r,s){var i=e("./asn1"),a=e("./aesid.json"),o=e("./fixProc"),l=e("browserify-aes"),c=e("pbkdf2"),u=e("safe-buffer").Buffer;function h(d){var f;typeof d!="object"||u.isBuffer(d)||(f=d.passphrase,d=d.key),typeof d=="string"&&(d=u.from(d));var p,g,m=o(d,f),b=m.tag,w=m.data;switch(b){case"CERTIFICATE":g=i.certificate.decode(w,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(g||(g=i.PublicKey.decode(w,"der")),p=g.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return i.RSAPublicKey.decode(g.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return g.subjectPrivateKey=g.subjectPublicKey,{type:"ec",data:g};case"1.2.840.10040.4.1":return g.algorithm.params.pub_key=i.DSAparam.decode(g.subjectPublicKey.data,"der"),{type:"dsa",data:g.algorithm.params};default:throw new Error("unknown key id "+p)}case"ENCRYPTED PRIVATE KEY":w=function(_,T){var M=_.algorithm.decrypt.kde.kdeparams.salt,j=parseInt(_.algorithm.decrypt.kde.kdeparams.iters.toString(),10),A=a[_.algorithm.decrypt.cipher.algo.join(".")],B=_.algorithm.decrypt.cipher.iv,H=_.subjectPrivateKey,U=parseInt(A.split("-")[1],10)/8,X=c.pbkdf2Sync(T,M,j,U,"sha1"),V=l.createDecipheriv(A,X,B),O=[];return O.push(V.update(H)),O.push(V.final()),u.concat(O)}(w=i.EncryptedPrivateKey.decode(w,"der"),f);case"PRIVATE KEY":switch(p=(g=i.PrivateKey.decode(w,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return i.RSAPrivateKey.decode(g.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:g.algorithm.curve,privateKey:i.ECPrivateKey.decode(g.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return g.algorithm.params.priv_key=i.DSAparam.decode(g.subjectPrivateKey,"der"),{type:"dsa",params:g.algorithm.params};default:throw new Error("unknown key id "+p)}case"RSA PUBLIC KEY":return i.RSAPublicKey.decode(w,"der");case"RSA PRIVATE KEY":return i.RSAPrivateKey.decode(w,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:i.DSAPrivateKey.decode(w,"der")};case"EC PRIVATE KEY":return{curve:(w=i.ECPrivateKey.decode(w,"der")).parameters.value,privateKey:w.privateKey};default:throw new Error("unknown key type "+b)}}r.exports=h,h.signature=i.signature},{"./aesid.json":455,"./asn1":456,"./fixProc":458,"browserify-aes":191,pbkdf2:460,"safe-buffer":494}],460:[function(e,r,s){s.pbkdf2=e("./lib/async"),s.pbkdf2Sync=e("./lib/sync")},{"./lib/async":461,"./lib/sync":464}],461:[function(e,r,s){(function(i){(function(){var a,o,l=e("safe-buffer").Buffer,c=e("./precondition"),u=e("./default-encoding"),h=e("./sync"),d=e("./to-buffer"),f=i.crypto&&i.crypto.subtle,p={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"},g=[];function m(){return o||(o=i.process&&i.process.nextTick?i.process.nextTick:i.queueMicrotask?i.queueMicrotask:i.setImmediate?i.setImmediate:i.setTimeout)}function b(w,_,T,M,j){return f.importKey("raw",w,{name:"PBKDF2"},!1,["deriveBits"]).then(function(A){return f.deriveBits({name:"PBKDF2",salt:_,iterations:T,hash:{name:j}},A,M<<3)}).then(function(A){return l.from(A)})}r.exports=function(w,_,T,M,j,A){typeof j=="function"&&(A=j,j=void 0);var B=p[(j=j||"sha1").toLowerCase()];if(B&&typeof i.Promise=="function"){if(c(T,M),w=d(w,u,"Password"),_=d(_,u,"Salt"),typeof A!="function")throw new Error("No callback provided to pbkdf2");(function(H,U){H.then(function(X){m()(function(){U(null,X)})},function(X){m()(function(){U(X)})})})(function(H){if(i.process&&!i.process.browser||!f||!f.importKey||!f.deriveBits)return Promise.resolve(!1);if(g[H]!==void 0)return g[H];var U=b(a=a||l.alloc(8),a,10,128,H).then(function(){return!0}).catch(function(){return!1});return g[H]=U,U}(B).then(function(H){return H?b(w,_,T,M,B):h(w,_,T,M,j)}),A)}else m()(function(){var H;try{H=h(w,_,T,M,j)}catch(U){return A(U)}A(null,H)})}}).call(this)}).call(this,typeof _r<"u"?_r:typeof self<"u"?self:typeof window<"u"?window:{})},{"./default-encoding":462,"./precondition":463,"./sync":464,"./to-buffer":465,"safe-buffer":494}],462:[function(e,r,s){(function(i,a){(function(){var o;a.process&&a.process.browser?o="utf-8":a.process&&a.process.version?o=parseInt(i.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary":o="utf-8",r.exports=o}).call(this)}).call(this,e("_process"),typeof _r<"u"?_r:typeof self<"u"?self:typeof window<"u"?window:{})},{_process:467}],463:[function(e,r,s){var i=Math.pow(2,30)-1;r.exports=function(a,o){if(typeof a!="number")throw new TypeError("Iterations not a number");if(a<0)throw new TypeError("Bad iterations");if(typeof o!="number")throw new TypeError("Key length not a number");if(o<0||o>i||o!=o)throw new TypeError("Bad key length")}},{}],464:[function(e,r,s){var i=e("create-hash/md5"),a=e("ripemd160"),o=e("sha.js"),l=e("safe-buffer").Buffer,c=e("./precondition"),u=e("./default-encoding"),h=e("./to-buffer"),d=l.alloc(128),f={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function p(g,m,b){var w=function(B){function H(U){return o(B).update(U).digest()}return B==="rmd160"||B==="ripemd160"?function(U){return new a().update(U).digest()}:B==="md5"?i:H}(g),_=g==="sha512"||g==="sha384"?128:64;m.length>_?m=w(m):m.length<_&&(m=l.concat([m,d],_));for(var T=l.allocUnsafe(_+f[g]),M=l.allocUnsafe(_+f[g]),j=0;j<_;j++)T[j]=54^m[j],M[j]=92^m[j];var A=l.allocUnsafe(_+b+4);T.copy(A,0,0,_),this.ipad1=A,this.ipad2=T,this.opad=M,this.alg=g,this.blocksize=_,this.hash=w,this.size=f[g]}p.prototype.run=function(g,m){return g.copy(m,this.blocksize),this.hash(m).copy(this.opad,this.blocksize),this.hash(this.opad)},r.exports=function(g,m,b,w,_){c(b,w);var T=new p(_=_||"sha1",g=h(g,u,"Password"),(m=h(m,u,"Salt")).length),M=l.allocUnsafe(w),j=l.allocUnsafe(m.length+4);m.copy(j,0,0,m.length);for(var A=0,B=f[_],H=Math.ceil(w/B),U=1;U<=H;U++){j.writeUInt32BE(U,m.length);for(var X=T.run(j,T.ipad1),V=X,O=1;O<b;O++){V=T.run(V,T.ipad2);for(var N=0;N<B;N++)X[N]^=V[N]}X.copy(M,A),A+=B}return M}},{"./default-encoding":462,"./precondition":463,"./to-buffer":465,"create-hash/md5":387,ripemd160:493,"safe-buffer":494,"sha.js":498}],465:[function(e,r,s){var i=e("safe-buffer").Buffer;r.exports=function(a,o,l){if(i.isBuffer(a))return a;if(typeof a=="string")return i.from(a,o);if(ArrayBuffer.isView(a))return i.from(a.buffer);throw new TypeError(l+" must be a string, a Buffer, a typed array or a DataView")}},{"safe-buffer":494}],466:[function(e,r,s){(function(i){(function(){i===void 0||!i.version||i.version.indexOf("v0.")===0||i.version.indexOf("v1.")===0&&i.version.indexOf("v1.8.")!==0?r.exports={nextTick:function(a,o,l,c){if(typeof a!="function")throw new TypeError('"callback" argument must be a function');var u,h,d=arguments.length;switch(d){case 0:case 1:return i.nextTick(a);case 2:return i.nextTick(function(){a.call(null,o)});case 3:return i.nextTick(function(){a.call(null,o,l)});case 4:return i.nextTick(function(){a.call(null,o,l,c)});default:for(u=new Array(d-1),h=0;h<u.length;)u[h++]=arguments[h];return i.nextTick(function(){a.apply(null,u)})}}}:r.exports=i}).call(this)}).call(this,e("_process"))},{_process:467}],467:[function(e,r,s){var i,a,o=r.exports={};function l(){throw new Error("setTimeout has not been defined")}function c(){throw new Error("clearTimeout has not been defined")}function u(_){if(i===setTimeout)return setTimeout(_,0);if((i===l||!i)&&setTimeout)return i=setTimeout,setTimeout(_,0);try{return i(_,0)}catch{try{return i.call(null,_,0)}catch{return i.call(this,_,0)}}}(function(){try{i=typeof setTimeout=="function"?setTimeout:l}catch{i=l}try{a=typeof clearTimeout=="function"?clearTimeout:c}catch{a=c}})();var h,d=[],f=!1,p=-1;function g(){f&&h&&(f=!1,h.length?d=h.concat(d):p=-1,d.length&&m())}function m(){if(!f){var _=u(g);f=!0;for(var T=d.length;T;){for(h=d,d=[];++p<T;)h&&h[p].run();p=-1,T=d.length}h=null,f=!1,function(M){if(a===clearTimeout)return clearTimeout(M);if((a===c||!a)&&clearTimeout)return a=clearTimeout,clearTimeout(M);try{a(M)}catch{try{return a.call(null,M)}catch{return a.call(this,M)}}}(_)}}function b(_,T){this.fun=_,this.array=T}function w(){}o.nextTick=function(_){var T=new Array(arguments.length-1);if(arguments.length>1)for(var M=1;M<arguments.length;M++)T[M-1]=arguments[M];d.push(new b(_,T)),d.length!==1||f||u(m)},b.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=w,o.addListener=w,o.once=w,o.off=w,o.removeListener=w,o.removeAllListeners=w,o.emit=w,o.prependListener=w,o.prependOnceListener=w,o.listeners=function(_){return[]},o.binding=function(_){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(_){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},{}],468:[function(e,r,s){s.publicEncrypt=e("./publicEncrypt"),s.privateDecrypt=e("./privateDecrypt"),s.privateEncrypt=function(i,a){return s.publicEncrypt(i,a,!0)},s.publicDecrypt=function(i,a){return s.privateDecrypt(i,a,!0)}},{"./privateDecrypt":471,"./publicEncrypt":472}],469:[function(e,r,s){var i=e("create-hash"),a=e("safe-buffer").Buffer;function o(l){var c=a.allocUnsafe(4);return c.writeUInt32BE(l,0),c}r.exports=function(l,c){for(var u,h=a.alloc(0),d=0;h.length<c;)u=o(d++),h=a.concat([h,i("sha1").update(l).update(u).digest()]);return h.slice(0,c)}},{"create-hash":386,"safe-buffer":494}],470:[function(e,r,s){arguments[4][184][0].apply(s,arguments)},{buffer:188,dup:184}],471:[function(e,r,s){var i=e("parse-asn1"),a=e("./mgf"),o=e("./xor"),l=e("bn.js"),c=e("browserify-rsa"),u=e("create-hash"),h=e("./withPublic"),d=e("safe-buffer").Buffer;r.exports=function(f,p,g){var m;m=f.padding?f.padding:g?1:4;var b,w=i(f),_=w.modulus.byteLength();if(p.length>_||new l(p).cmp(w.modulus)>=0)throw new Error("decryption error");b=g?h(new l(p),w):c(p,w);var T=d.alloc(_-b.length);if(b=d.concat([T,b],_),m===4)return function(M,j){var A=M.modulus.byteLength(),B=u("sha1").update(d.alloc(0)).digest(),H=B.length;if(j[0]!==0)throw new Error("decryption error");var U=j.slice(1,H+1),X=j.slice(H+1),V=o(U,a(X,H)),O=o(X,a(V,A-H-1));if(function(C,x){C=d.from(C),x=d.from(x);var S=0,k=C.length;C.length!==x.length&&(S++,k=Math.min(C.length,x.length));for(var E=-1;++E<k;)S+=C[E]^x[E];return S}(B,O.slice(0,H)))throw new Error("decryption error");for(var N=H;O[N]===0;)N++;if(O[N++]!==1)throw new Error("decryption error");return O.slice(N)}(w,b);if(m===1)return function(M,j,A){for(var B=j.slice(0,2),H=2,U=0;j[H++]!==0;)if(H>=j.length){U++;break}var X=j.slice(2,H-1);if((B.toString("hex")!=="0002"&&!A||B.toString("hex")!=="0001"&&A)&&U++,X.length<8&&U++,U)throw new Error("decryption error");return j.slice(H)}(0,b,g);if(m===3)return b;throw new Error("unknown padding")}},{"./mgf":469,"./withPublic":473,"./xor":474,"bn.js":470,"browserify-rsa":209,"create-hash":386,"parse-asn1":459,"safe-buffer":494}],472:[function(e,r,s){var i=e("parse-asn1"),a=e("randombytes"),o=e("create-hash"),l=e("./mgf"),c=e("./xor"),u=e("bn.js"),h=e("./withPublic"),d=e("browserify-rsa"),f=e("safe-buffer").Buffer;r.exports=function(p,g,m){var b;b=p.padding?p.padding:m?1:4;var w,_=i(p);if(b===4)w=function(T,M){var j=T.modulus.byteLength(),A=M.length,B=o("sha1").update(f.alloc(0)).digest(),H=B.length,U=2*H;if(A>j-U-2)throw new Error("message too long");var X=f.alloc(j-A-U-2),V=j-H-1,O=a(H),N=c(f.concat([B,X,f.alloc(1,1),M],V),l(O,V)),C=c(O,l(N,H));return new u(f.concat([f.alloc(1),C,N],j))}(_,g);else if(b===1)w=function(T,M,j){var A,B=M.length,H=T.modulus.byteLength();if(B>H-11)throw new Error("message too long");return A=j?f.alloc(H-B-3,255):function(U){for(var X,V=f.allocUnsafe(U),O=0,N=a(2*U),C=0;O<U;)C===N.length&&(N=a(2*U),C=0),(X=N[C++])&&(V[O++]=X);return V}(H-B-3),new u(f.concat([f.from([0,j?1:2]),A,f.alloc(1),M],H))}(_,g,m);else{if(b!==3)throw new Error("unknown padding");if((w=new u(g)).cmp(_.modulus)>=0)throw new Error("data too long for modulus")}return m?d(w,_):h(w,_)}},{"./mgf":469,"./withPublic":473,"./xor":474,"bn.js":470,"browserify-rsa":209,"create-hash":386,"parse-asn1":459,randombytes:475,"safe-buffer":494}],473:[function(e,r,s){var i=e("bn.js"),a=e("safe-buffer").Buffer;r.exports=function(o,l){return a.from(o.toRed(i.mont(l.modulus)).redPow(new i(l.publicExponent)).fromRed().toArray())}},{"bn.js":470,"safe-buffer":494}],474:[function(e,r,s){r.exports=function(i,a){for(var o=i.length,l=-1;++l<o;)i[l]^=a[l];return i}},{}],475:[function(e,r,s){(function(i,a){(function(){var o=e("safe-buffer").Buffer,l=a.crypto||a.msCrypto;l&&l.getRandomValues?r.exports=function(c,u){if(c>4294967295)throw new RangeError("requested too many random bytes");var h=o.allocUnsafe(c);if(c>0)if(c>65536)for(var d=0;d<c;d+=65536)l.getRandomValues(h.slice(d,d+65536));else l.getRandomValues(h);return typeof u=="function"?i.nextTick(function(){u(null,h)}):h}:r.exports=function(){throw new Error(`Secure random number generation is not supported by this browser.
445
+ \0`,ve+=m(ce,2),ve+=S.magic,ve+=m(N,2),ve+=m(C,2),ve+=m(ne.crc32,4),ve+=m(ne.compressedSize,4),ve+=m(ne.uncompressedSize,4),ve+=m(E.length,2),ve+=m(q.length,2),{fileRecord:j.LOCAL_FILE_HEADER+ve+E+q,dirRecord:j.CENTRAL_FILE_HEADER+m(ue,2)+ve+m(F.length,2)+"\0\0\0\0"+m(ie,4)+m(X,4)+E+q+F}}var w=f("../utils"),_=f("../stream/GenericWorker"),T=f("../utf8"),M=f("../crc32"),j=f("../signature");function A(B,H,U,X){_.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=H,this.zipPlatform=U,this.encodeFileName=X,this.streamFiles=B,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}w.inherits(A,_),A.prototype.push=function(B){var H=B.meta.percent||0,U=this.entriesCount,X=this._sources.length;this.accumulate?this.contentBuffer.push(B):(this.bytesWritten+=B.data.length,_.prototype.push.call(this,{data:B.data,meta:{currentFile:this.currentFile,percent:U?(H+100*(U-X-1))/U:100}}))},A.prototype.openedSource=function(B){this.currentSourceOffset=this.bytesWritten,this.currentFile=B.file.name;var H=this.streamFiles&&!B.file.dir;if(H){var U=b(B,H,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:U.fileRecord,meta:{percent:0}})}else this.accumulate=!0},A.prototype.closedSource=function(B){this.accumulate=!1;var H=this.streamFiles&&!B.file.dir,U=b(B,H,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(U.dirRecord),H)this.push({data:function(X){return j.DATA_DESCRIPTOR+m(X.crc32,4)+m(X.compressedSize,4)+m(X.uncompressedSize,4)}(B),meta:{percent:100}});else for(this.push({data:U.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},A.prototype.flush=function(){for(var B=this.bytesWritten,H=0;H<this.dirRecords.length;H++)this.push({data:this.dirRecords[H],meta:{percent:100}});var U=this.bytesWritten-B,X=function(V,O,N,C,x){var S=w.transformTo("string",x(C));return j.CENTRAL_DIRECTORY_END+"\0\0\0\0"+m(V,2)+m(V,2)+m(O,4)+m(N,4)+m(S.length,2)+S}(this.dirRecords.length,U,B,this.zipComment,this.encodeFileName);this.push({data:X,meta:{percent:100}})},A.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},A.prototype.registerPrevious=function(B){this._sources.push(B);var H=this;return B.on("data",function(U){H.processChunk(U)}),B.on("end",function(){H.closedSource(H.previous.streamInfo),H._sources.length?H.prepareNextSource():H.end()}),B.on("error",function(U){H.error(U)}),this},A.prototype.resume=function(){return!!_.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},A.prototype.error=function(B){var H=this._sources;if(!_.prototype.error.call(this,B))return!1;for(var U=0;U<H.length;U++)try{H[U].error(B)}catch{}return!0},A.prototype.lock=function(){_.prototype.lock.call(this);for(var B=this._sources,H=0;H<B.length;H++)B[H].lock()},p.exports=A},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(f,p,g){var m=f("../compressions"),b=f("./ZipFileWorker");g.generateWorker=function(w,_,T){var M=new b(_.streamFiles,T,_.platform,_.encodeFileName),j=0;try{w.forEach(function(A,B){j++;var H=function(O,N){var C=O||N,x=m[C];if(!x)throw new Error(C+" is not a valid compression method !");return x}(B.options.compression,_.compression),U=B.options.compressionOptions||_.compressionOptions||{},X=B.dir,V=B.date;B._compressWorker(H,U).withStreamInfo("file",{name:A,dir:X,date:V,comment:B.comment||"",unixPermissions:B.unixPermissions,dosPermissions:B.dosPermissions}).pipe(M)}),M.entriesCount=j}catch(A){M.error(A)}return M}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(f,p,g){function m(){if(!(this instanceof m))return new m;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var b=new m;for(var w in this)typeof this[w]!="function"&&(b[w]=this[w]);return b}}(m.prototype=f("./object")).loadAsync=f("./load"),m.support=f("./support"),m.defaults=f("./defaults"),m.version="3.10.1",m.loadAsync=function(b,w){return new m().loadAsync(b,w)},m.external=f("./external"),p.exports=m},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(f,p,g){var m=f("./utils"),b=f("./external"),w=f("./utf8"),_=f("./zipEntries"),T=f("./stream/Crc32Probe"),M=f("./nodejsUtils");function j(A){return new b.Promise(function(B,H){var U=A.decompressed.getContentWorker().pipe(new T);U.on("error",function(X){H(X)}).on("end",function(){U.streamInfo.crc32!==A.decompressed.crc32?H(new Error("Corrupted zip : CRC32 mismatch")):B()}).resume()})}p.exports=function(A,B){var H=this;return B=m.extend(B||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:w.utf8decode}),M.isNode&&M.isStream(A)?b.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):m.prepareContent("the loaded zip file",A,!0,B.optimizedBinaryString,B.base64).then(function(U){var X=new _(B);return X.load(U),X}).then(function(U){var X=[b.Promise.resolve(U)],V=U.files;if(B.checkCRC32)for(var O=0;O<V.length;O++)X.push(j(V[O]));return b.Promise.all(X)}).then(function(U){for(var X=U.shift(),V=X.files,O=0;O<V.length;O++){var N=V[O],C=N.fileNameStr,x=m.resolve(N.fileNameStr);H.file(x,N.decompressed,{binary:!0,optimizedBinaryString:!0,date:N.date,dir:N.dir,comment:N.fileCommentStr.length?N.fileCommentStr:null,unixPermissions:N.unixPermissions,dosPermissions:N.dosPermissions,createFolders:B.createFolders}),N.dir||(H.file(x).unsafeOriginalName=C)}return X.zipComment.length&&(H.comment=X.zipComment),H})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(f,p,g){var m=f("../utils"),b=f("../stream/GenericWorker");function w(_,T){b.call(this,"Nodejs stream input adapter for "+_),this._upstreamEnded=!1,this._bindStream(T)}m.inherits(w,b),w.prototype._bindStream=function(_){var T=this;(this._stream=_).pause(),_.on("data",function(M){T.push({data:M,meta:{percent:0}})}).on("error",function(M){T.isPaused?this.generatedError=M:T.error(M)}).on("end",function(){T.isPaused?T._upstreamEnded=!0:T.end()})},w.prototype.pause=function(){return!!b.prototype.pause.call(this)&&(this._stream.pause(),!0)},w.prototype.resume=function(){return!!b.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},p.exports=w},{"../stream/GenericWorker":28,"../utils":32}],13:[function(f,p,g){var m=f("readable-stream").Readable;function b(w,_,T){m.call(this,_),this._helper=w;var M=this;w.on("data",function(j,A){M.push(j)||M._helper.pause(),T&&T(A)}).on("error",function(j){M.emit("error",j)}).on("end",function(){M.push(null)})}f("../utils").inherits(b,m),b.prototype._read=function(){this._helper.resume()},p.exports=b},{"../utils":32,"readable-stream":16}],14:[function(f,p,g){p.exports={isNode:o!==void 0,newBufferFrom:function(m,b){if(o.from&&o.from!==Uint8Array.from)return o.from(m,b);if(typeof m=="number")throw new Error('The "data" argument must not be a number');return new o(m,b)},allocBuffer:function(m){if(o.alloc)return o.alloc(m);var b=new o(m);return b.fill(0),b},isBuffer:function(m){return o.isBuffer(m)},isStream:function(m){return m&&typeof m.on=="function"&&typeof m.pause=="function"&&typeof m.resume=="function"}}},{}],15:[function(f,p,g){function m(x,S,k){var E,I=w.getTypeOf(S),D=w.extend(k||{},M);D.date=D.date||new Date,D.compression!==null&&(D.compression=D.compression.toUpperCase()),typeof D.unixPermissions=="string"&&(D.unixPermissions=parseInt(D.unixPermissions,8)),D.unixPermissions&&16384&D.unixPermissions&&(D.dir=!0),D.dosPermissions&&16&D.dosPermissions&&(D.dir=!0),D.dir&&(x=V(x)),D.createFolders&&(E=X(x))&&O.call(this,E,!0);var F=I==="string"&&D.binary===!1&&D.base64===!1;k&&k.binary!==void 0||(D.binary=!F),(S instanceof j&&S.uncompressedSize===0||D.dir||!S||S.length===0)&&(D.base64=!1,D.binary=!0,S="",D.compression="STORE",I="string");var Y;Y=S instanceof j||S instanceof _?S:H.isNode&&H.isStream(S)?new U(x,S):w.prepareContent(x,S,D.binary,D.optimizedBinaryString,D.base64);var J=new A(x,Y,D);this.files[x]=J}var b=f("./utf8"),w=f("./utils"),_=f("./stream/GenericWorker"),T=f("./stream/StreamHelper"),M=f("./defaults"),j=f("./compressedObject"),A=f("./zipObject"),B=f("./generate"),H=f("./nodejsUtils"),U=f("./nodejs/NodejsStreamInputAdapter"),X=function(x){x.slice(-1)==="/"&&(x=x.substring(0,x.length-1));var S=x.lastIndexOf("/");return 0<S?x.substring(0,S):""},V=function(x){return x.slice(-1)!=="/"&&(x+="/"),x},O=function(x,S){return S=S!==void 0?S:M.createFolders,x=V(x),this.files[x]||m.call(this,x,null,{dir:!0,createFolders:S}),this.files[x]};function N(x){return Object.prototype.toString.call(x)==="[object RegExp]"}var C={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(x){var S,k,E;for(S in this.files)E=this.files[S],(k=S.slice(this.root.length,S.length))&&S.slice(0,this.root.length)===this.root&&x(k,E)},filter:function(x){var S=[];return this.forEach(function(k,E){x(k,E)&&S.push(E)}),S},file:function(x,S,k){if(arguments.length!==1)return x=this.root+x,m.call(this,x,S,k),this;if(N(x)){var E=x;return this.filter(function(D,F){return!F.dir&&E.test(D)})}var I=this.files[this.root+x];return I&&!I.dir?I:null},folder:function(x){if(!x)return this;if(N(x))return this.filter(function(I,D){return D.dir&&x.test(I)});var S=this.root+x,k=O.call(this,S),E=this.clone();return E.root=k.name,E},remove:function(x){x=this.root+x;var S=this.files[x];if(S||(x.slice(-1)!=="/"&&(x+="/"),S=this.files[x]),S&&!S.dir)delete this.files[x];else for(var k=this.filter(function(I,D){return D.name.slice(0,x.length)===x}),E=0;E<k.length;E++)delete this.files[k[E].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(x){var S,k={};try{if((k=w.extend(x||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:b.utf8encode})).type=k.type.toLowerCase(),k.compression=k.compression.toUpperCase(),k.type==="binarystring"&&(k.type="string"),!k.type)throw new Error("No output type specified.");w.checkSupport(k.type),k.platform!=="darwin"&&k.platform!=="freebsd"&&k.platform!=="linux"&&k.platform!=="sunos"||(k.platform="UNIX"),k.platform==="win32"&&(k.platform="DOS");var E=k.comment||this.comment||"";S=B.generateWorker(this,k,E)}catch(I){(S=new _("error")).error(I)}return new T(S,k.type||"string",k.mimeType)},generateAsync:function(x,S){return this.generateInternalStream(x).accumulate(S)},generateNodeStream:function(x,S){return(x=x||{}).type||(x.type="nodebuffer"),this.generateInternalStream(x).toNodejsStream(S)}};p.exports=C},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(f,p,g){p.exports=f("stream")},{stream:void 0}],17:[function(f,p,g){var m=f("./DataReader");function b(w){m.call(this,w);for(var _=0;_<this.data.length;_++)w[_]=255&w[_]}f("../utils").inherits(b,m),b.prototype.byteAt=function(w){return this.data[this.zero+w]},b.prototype.lastIndexOfSignature=function(w){for(var _=w.charCodeAt(0),T=w.charCodeAt(1),M=w.charCodeAt(2),j=w.charCodeAt(3),A=this.length-4;0<=A;--A)if(this.data[A]===_&&this.data[A+1]===T&&this.data[A+2]===M&&this.data[A+3]===j)return A-this.zero;return-1},b.prototype.readAndCheckSignature=function(w){var _=w.charCodeAt(0),T=w.charCodeAt(1),M=w.charCodeAt(2),j=w.charCodeAt(3),A=this.readData(4);return _===A[0]&&T===A[1]&&M===A[2]&&j===A[3]},b.prototype.readData=function(w){if(this.checkOffset(w),w===0)return[];var _=this.data.slice(this.zero+this.index,this.zero+this.index+w);return this.index+=w,_},p.exports=b},{"../utils":32,"./DataReader":18}],18:[function(f,p,g){var m=f("../utils");function b(w){this.data=w,this.length=w.length,this.index=0,this.zero=0}b.prototype={checkOffset:function(w){this.checkIndex(this.index+w)},checkIndex:function(w){if(this.length<this.zero+w||w<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+w+"). Corrupted zip ?")},setIndex:function(w){this.checkIndex(w),this.index=w},skip:function(w){this.setIndex(this.index+w)},byteAt:function(){},readInt:function(w){var _,T=0;for(this.checkOffset(w),_=this.index+w-1;_>=this.index;_--)T=(T<<8)+this.byteAt(_);return this.index+=w,T},readString:function(w){return m.transformTo("string",this.readData(w))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var w=this.readInt(4);return new Date(Date.UTC(1980+(w>>25&127),(w>>21&15)-1,w>>16&31,w>>11&31,w>>5&63,(31&w)<<1))}},p.exports=b},{"../utils":32}],19:[function(f,p,g){var m=f("./Uint8ArrayReader");function b(w){m.call(this,w)}f("../utils").inherits(b,m),b.prototype.readData=function(w){this.checkOffset(w);var _=this.data.slice(this.zero+this.index,this.zero+this.index+w);return this.index+=w,_},p.exports=b},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(f,p,g){var m=f("./DataReader");function b(w){m.call(this,w)}f("../utils").inherits(b,m),b.prototype.byteAt=function(w){return this.data.charCodeAt(this.zero+w)},b.prototype.lastIndexOfSignature=function(w){return this.data.lastIndexOf(w)-this.zero},b.prototype.readAndCheckSignature=function(w){return w===this.readData(4)},b.prototype.readData=function(w){this.checkOffset(w);var _=this.data.slice(this.zero+this.index,this.zero+this.index+w);return this.index+=w,_},p.exports=b},{"../utils":32,"./DataReader":18}],21:[function(f,p,g){var m=f("./ArrayReader");function b(w){m.call(this,w)}f("../utils").inherits(b,m),b.prototype.readData=function(w){if(this.checkOffset(w),w===0)return new Uint8Array(0);var _=this.data.subarray(this.zero+this.index,this.zero+this.index+w);return this.index+=w,_},p.exports=b},{"../utils":32,"./ArrayReader":17}],22:[function(f,p,g){var m=f("../utils"),b=f("../support"),w=f("./ArrayReader"),_=f("./StringReader"),T=f("./NodeBufferReader"),M=f("./Uint8ArrayReader");p.exports=function(j){var A=m.getTypeOf(j);return m.checkSupport(A),A!=="string"||b.uint8array?A==="nodebuffer"?new T(j):b.uint8array?new M(m.transformTo("uint8array",j)):new w(m.transformTo("array",j)):new _(j)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(f,p,g){g.LOCAL_FILE_HEADER="PK",g.CENTRAL_FILE_HEADER="PK",g.CENTRAL_DIRECTORY_END="PK",g.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",g.ZIP64_CENTRAL_DIRECTORY_END="PK",g.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(f,p,g){var m=f("./GenericWorker"),b=f("../utils");function w(_){m.call(this,"ConvertWorker to "+_),this.destType=_}b.inherits(w,m),w.prototype.processChunk=function(_){this.push({data:b.transformTo(this.destType,_.data),meta:_.meta})},p.exports=w},{"../utils":32,"./GenericWorker":28}],25:[function(f,p,g){var m=f("./GenericWorker"),b=f("../crc32");function w(){m.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}f("../utils").inherits(w,m),w.prototype.processChunk=function(_){this.streamInfo.crc32=b(_.data,this.streamInfo.crc32||0),this.push(_)},p.exports=w},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(f,p,g){var m=f("../utils"),b=f("./GenericWorker");function w(_){b.call(this,"DataLengthProbe for "+_),this.propName=_,this.withStreamInfo(_,0)}m.inherits(w,b),w.prototype.processChunk=function(_){if(_){var T=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=T+_.data.length}b.prototype.processChunk.call(this,_)},p.exports=w},{"../utils":32,"./GenericWorker":28}],27:[function(f,p,g){var m=f("../utils"),b=f("./GenericWorker");function w(_){b.call(this,"DataWorker");var T=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,_.then(function(M){T.dataIsReady=!0,T.data=M,T.max=M&&M.length||0,T.type=m.getTypeOf(M),T.isPaused||T._tickAndRepeat()},function(M){T.error(M)})}m.inherits(w,b),w.prototype.cleanUp=function(){b.prototype.cleanUp.call(this),this.data=null},w.prototype.resume=function(){return!!b.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,m.delay(this._tickAndRepeat,[],this)),!0)},w.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(m.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},w.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var _=null,T=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":_=this.data.substring(this.index,T);break;case"uint8array":_=this.data.subarray(this.index,T);break;case"array":case"nodebuffer":_=this.data.slice(this.index,T)}return this.index=T,this.push({data:_,meta:{percent:this.max?this.index/this.max*100:0}})},p.exports=w},{"../utils":32,"./GenericWorker":28}],28:[function(f,p,g){function m(b){this.name=b||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}m.prototype={push:function(b){this.emit("data",b)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(b){this.emit("error",b)}return!0},error:function(b){return!this.isFinished&&(this.isPaused?this.generatedError=b:(this.isFinished=!0,this.emit("error",b),this.previous&&this.previous.error(b),this.cleanUp()),!0)},on:function(b,w){return this._listeners[b].push(w),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(b,w){if(this._listeners[b])for(var _=0;_<this._listeners[b].length;_++)this._listeners[b][_].call(this,w)},pipe:function(b){return b.registerPrevious(this)},registerPrevious:function(b){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=b.streamInfo,this.mergeStreamInfo(),this.previous=b;var w=this;return b.on("data",function(_){w.processChunk(_)}),b.on("end",function(){w.end()}),b.on("error",function(_){w.error(_)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var b=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),b=!0),this.previous&&this.previous.resume(),!b},flush:function(){},processChunk:function(b){this.push(b)},withStreamInfo:function(b,w){return this.extraStreamInfo[b]=w,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var b in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,b)&&(this.streamInfo[b]=this.extraStreamInfo[b])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var b="Worker "+this.name;return this.previous?this.previous+" -> "+b:b}},p.exports=m},{}],29:[function(f,p,g){var m=f("../utils"),b=f("./ConvertWorker"),w=f("./GenericWorker"),_=f("../base64"),T=f("../support"),M=f("../external"),j=null;if(T.nodestream)try{j=f("../nodejs/NodejsStreamOutputAdapter")}catch{}function A(B,H,U){var X=H;switch(H){case"blob":case"arraybuffer":X="uint8array";break;case"base64":X="string"}try{this._internalType=X,this._outputType=H,this._mimeType=U,m.checkSupport(X),this._worker=B.pipe(new b(X)),B.lock()}catch(V){this._worker=new w("error"),this._worker.error(V)}}A.prototype={accumulate:function(B){return function(H,U){return new M.Promise(function(X,V){var O=[],N=H._internalType,C=H._outputType,x=H._mimeType;H.on("data",function(S,k){O.push(S),U&&U(k)}).on("error",function(S){O=[],V(S)}).on("end",function(){try{var S=function(k,E,I){switch(k){case"blob":return m.newBlob(m.transformTo("arraybuffer",E),I);case"base64":return _.encode(E);default:return m.transformTo(k,E)}}(C,function(k,E){var I,D=0,F=null,Y=0;for(I=0;I<E.length;I++)Y+=E[I].length;switch(k){case"string":return E.join("");case"array":return Array.prototype.concat.apply([],E);case"uint8array":for(F=new Uint8Array(Y),I=0;I<E.length;I++)F.set(E[I],D),D+=E[I].length;return F;case"nodebuffer":return o.concat(E);default:throw new Error("concat : unsupported type '"+k+"'")}}(N,O),x);X(S)}catch(k){V(k)}O=[]}).resume()})}(this,B)},on:function(B,H){var U=this;return B==="data"?this._worker.on(B,function(X){H.call(U,X.data,X.meta)}):this._worker.on(B,function(){m.delay(H,arguments,U)}),this},resume:function(){return m.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(B){if(m.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new j(this,{objectMode:this._outputType!=="nodebuffer"},B)}},p.exports=A},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(f,p,g){if(g.base64=!0,g.array=!0,g.string=!0,g.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",g.nodebuffer=o!==void 0,g.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")g.blob=!1;else{var m=new ArrayBuffer(0);try{g.blob=new Blob([m],{type:"application/zip"}).size===0}catch{try{var b=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);b.append(m),g.blob=b.getBlob("application/zip").size===0}catch{g.blob=!1}}}try{g.nodestream=!!f("readable-stream").Readable}catch{g.nodestream=!1}},{"readable-stream":16}],31:[function(f,p,g){for(var m=f("./utils"),b=f("./support"),w=f("./nodejsUtils"),_=f("./stream/GenericWorker"),T=new Array(256),M=0;M<256;M++)T[M]=252<=M?6:248<=M?5:240<=M?4:224<=M?3:192<=M?2:1;function j(){_.call(this,"utf-8 decode"),this.leftOver=null}function A(){_.call(this,"utf-8 encode")}T[254]=T[254]=1,g.utf8encode=function(B){return b.nodebuffer?w.newBufferFrom(B,"utf-8"):function(H){var U,X,V,O,N,C=H.length,x=0;for(O=0;O<C;O++)(64512&(X=H.charCodeAt(O)))==55296&&O+1<C&&(64512&(V=H.charCodeAt(O+1)))==56320&&(X=65536+(X-55296<<10)+(V-56320),O++),x+=X<128?1:X<2048?2:X<65536?3:4;for(U=b.uint8array?new Uint8Array(x):new Array(x),O=N=0;N<x;O++)(64512&(X=H.charCodeAt(O)))==55296&&O+1<C&&(64512&(V=H.charCodeAt(O+1)))==56320&&(X=65536+(X-55296<<10)+(V-56320),O++),X<128?U[N++]=X:(X<2048?U[N++]=192|X>>>6:(X<65536?U[N++]=224|X>>>12:(U[N++]=240|X>>>18,U[N++]=128|X>>>12&63),U[N++]=128|X>>>6&63),U[N++]=128|63&X);return U}(B)},g.utf8decode=function(B){return b.nodebuffer?m.transformTo("nodebuffer",B).toString("utf-8"):function(H){var U,X,V,O,N=H.length,C=new Array(2*N);for(U=X=0;U<N;)if((V=H[U++])<128)C[X++]=V;else if(4<(O=T[V]))C[X++]=65533,U+=O-1;else{for(V&=O===2?31:O===3?15:7;1<O&&U<N;)V=V<<6|63&H[U++],O--;1<O?C[X++]=65533:V<65536?C[X++]=V:(V-=65536,C[X++]=55296|V>>10&1023,C[X++]=56320|1023&V)}return C.length!==X&&(C.subarray?C=C.subarray(0,X):C.length=X),m.applyFromCharCode(C)}(B=m.transformTo(b.uint8array?"uint8array":"array",B))},m.inherits(j,_),j.prototype.processChunk=function(B){var H=m.transformTo(b.uint8array?"uint8array":"array",B.data);if(this.leftOver&&this.leftOver.length){if(b.uint8array){var U=H;(H=new Uint8Array(U.length+this.leftOver.length)).set(this.leftOver,0),H.set(U,this.leftOver.length)}else H=this.leftOver.concat(H);this.leftOver=null}var X=function(O,N){var C;for((N=N||O.length)>O.length&&(N=O.length),C=N-1;0<=C&&(192&O[C])==128;)C--;return C<0||C===0?N:C+T[O[C]]>N?C:N}(H),V=H;X!==H.length&&(b.uint8array?(V=H.subarray(0,X),this.leftOver=H.subarray(X,H.length)):(V=H.slice(0,X),this.leftOver=H.slice(X,H.length))),this.push({data:g.utf8decode(V),meta:B.meta})},j.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:g.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},g.Utf8DecodeWorker=j,m.inherits(A,_),A.prototype.processChunk=function(B){this.push({data:g.utf8encode(B.data),meta:B.meta})},g.Utf8EncodeWorker=A},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(f,p,g){var m=f("./support"),b=f("./base64"),w=f("./nodejsUtils"),_=f("./external");function T(U){return U}function M(U,X){for(var V=0;V<U.length;++V)X[V]=255&U.charCodeAt(V);return X}f("setimmediate"),g.newBlob=function(U,X){g.checkSupport("blob");try{return new Blob([U],{type:X})}catch{try{var V=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return V.append(U),V.getBlob(X)}catch{throw new Error("Bug : can't construct the Blob.")}}};var j={stringifyByChunk:function(U,X,V){var O=[],N=0,C=U.length;if(C<=V)return String.fromCharCode.apply(null,U);for(;N<C;)X==="array"||X==="nodebuffer"?O.push(String.fromCharCode.apply(null,U.slice(N,Math.min(N+V,C)))):O.push(String.fromCharCode.apply(null,U.subarray(N,Math.min(N+V,C)))),N+=V;return O.join("")},stringifyByChar:function(U){for(var X="",V=0;V<U.length;V++)X+=String.fromCharCode(U[V]);return X},applyCanBeUsed:{uint8array:function(){try{return m.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return m.nodebuffer&&String.fromCharCode.apply(null,w.allocBuffer(1)).length===1}catch{return!1}}()}};function A(U){var X=65536,V=g.getTypeOf(U),O=!0;if(V==="uint8array"?O=j.applyCanBeUsed.uint8array:V==="nodebuffer"&&(O=j.applyCanBeUsed.nodebuffer),O)for(;1<X;)try{return j.stringifyByChunk(U,V,X)}catch{X=Math.floor(X/2)}return j.stringifyByChar(U)}function B(U,X){for(var V=0;V<U.length;V++)X[V]=U[V];return X}g.applyFromCharCode=A;var H={};H.string={string:T,array:function(U){return M(U,new Array(U.length))},arraybuffer:function(U){return H.string.uint8array(U).buffer},uint8array:function(U){return M(U,new Uint8Array(U.length))},nodebuffer:function(U){return M(U,w.allocBuffer(U.length))}},H.array={string:A,array:T,arraybuffer:function(U){return new Uint8Array(U).buffer},uint8array:function(U){return new Uint8Array(U)},nodebuffer:function(U){return w.newBufferFrom(U)}},H.arraybuffer={string:function(U){return A(new Uint8Array(U))},array:function(U){return B(new Uint8Array(U),new Array(U.byteLength))},arraybuffer:T,uint8array:function(U){return new Uint8Array(U)},nodebuffer:function(U){return w.newBufferFrom(new Uint8Array(U))}},H.uint8array={string:A,array:function(U){return B(U,new Array(U.length))},arraybuffer:function(U){return U.buffer},uint8array:T,nodebuffer:function(U){return w.newBufferFrom(U)}},H.nodebuffer={string:A,array:function(U){return B(U,new Array(U.length))},arraybuffer:function(U){return H.nodebuffer.uint8array(U).buffer},uint8array:function(U){return B(U,new Uint8Array(U.length))},nodebuffer:T},g.transformTo=function(U,X){if(X=X||"",!U)return X;g.checkSupport(U);var V=g.getTypeOf(X);return H[V][U](X)},g.resolve=function(U){for(var X=U.split("/"),V=[],O=0;O<X.length;O++){var N=X[O];N==="."||N===""&&O!==0&&O!==X.length-1||(N===".."?V.pop():V.push(N))}return V.join("/")},g.getTypeOf=function(U){return typeof U=="string"?"string":Object.prototype.toString.call(U)==="[object Array]"?"array":m.nodebuffer&&w.isBuffer(U)?"nodebuffer":m.uint8array&&U instanceof Uint8Array?"uint8array":m.arraybuffer&&U instanceof ArrayBuffer?"arraybuffer":void 0},g.checkSupport=function(U){if(!m[U.toLowerCase()])throw new Error(U+" is not supported by this platform")},g.MAX_VALUE_16BITS=65535,g.MAX_VALUE_32BITS=-1,g.pretty=function(U){var X,V,O="";for(V=0;V<(U||"").length;V++)O+="\\x"+((X=U.charCodeAt(V))<16?"0":"")+X.toString(16).toUpperCase();return O},g.delay=function(U,X,V){d(function(){U.apply(V||null,X||[])})},g.inherits=function(U,X){function V(){}V.prototype=X.prototype,U.prototype=new V},g.extend=function(){var U,X,V={};for(U=0;U<arguments.length;U++)for(X in arguments[U])Object.prototype.hasOwnProperty.call(arguments[U],X)&&V[X]===void 0&&(V[X]=arguments[U][X]);return V},g.prepareContent=function(U,X,V,O,N){return _.Promise.resolve(X).then(function(C){return m.blob&&(C instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(C))!==-1)&&typeof FileReader<"u"?new _.Promise(function(x,S){var k=new FileReader;k.onload=function(E){x(E.target.result)},k.onerror=function(E){S(E.target.error)},k.readAsArrayBuffer(C)}):C}).then(function(C){var x=g.getTypeOf(C);return x?(x==="arraybuffer"?C=g.transformTo("uint8array",C):x==="string"&&(N?C=b.decode(C):V&&O!==!0&&(C=function(S){return M(S,m.uint8array?new Uint8Array(S.length):new Array(S.length))}(C))),C):_.Promise.reject(new Error("Can't read the data of '"+U+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(f,p,g){var m=f("./reader/readerFor"),b=f("./utils"),w=f("./signature"),_=f("./zipEntry"),T=f("./support");function M(j){this.files=[],this.loadOptions=j}M.prototype={checkSignature:function(j){if(!this.reader.readAndCheckSignature(j)){this.reader.index-=4;var A=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+b.pretty(A)+", expected "+b.pretty(j)+")")}},isSignature:function(j,A){var B=this.reader.index;this.reader.setIndex(j);var H=this.reader.readString(4)===A;return this.reader.setIndex(B),H},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var j=this.reader.readData(this.zipCommentLength),A=T.uint8array?"uint8array":"array",B=b.transformTo(A,j);this.zipComment=this.loadOptions.decodeFileName(B)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var j,A,B,H=this.zip64EndOfCentralSize-44;0<H;)j=this.reader.readInt(2),A=this.reader.readInt(4),B=this.reader.readData(A),this.zip64ExtensibleData[j]={id:j,length:A,value:B}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var j,A;for(j=0;j<this.files.length;j++)A=this.files[j],this.reader.setIndex(A.localHeaderOffset),this.checkSignature(w.LOCAL_FILE_HEADER),A.readLocalPart(this.reader),A.handleUTF8(),A.processAttributes()},readCentralDir:function(){var j;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(w.CENTRAL_FILE_HEADER);)(j=new _({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(j);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var j=this.reader.lastIndexOfSignature(w.CENTRAL_DIRECTORY_END);if(j<0)throw this.isSignature(0,w.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(j);var A=j;if(this.checkSignature(w.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===b.MAX_VALUE_16BITS||this.diskWithCentralDirStart===b.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===b.MAX_VALUE_16BITS||this.centralDirRecords===b.MAX_VALUE_16BITS||this.centralDirSize===b.MAX_VALUE_32BITS||this.centralDirOffset===b.MAX_VALUE_32BITS){if(this.zip64=!0,(j=this.reader.lastIndexOfSignature(w.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(j),this.checkSignature(w.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,w.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(w.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(w.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var B=this.centralDirOffset+this.centralDirSize;this.zip64&&(B+=20,B+=12+this.zip64EndOfCentralSize);var H=A-B;if(0<H)this.isSignature(A,w.CENTRAL_FILE_HEADER)||(this.reader.zero=H);else if(H<0)throw new Error("Corrupted zip: missing "+Math.abs(H)+" bytes.")},prepareReader:function(j){this.reader=m(j)},load:function(j){this.prepareReader(j),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},p.exports=M},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(f,p,g){var m=f("./reader/readerFor"),b=f("./utils"),w=f("./compressedObject"),_=f("./crc32"),T=f("./utf8"),M=f("./compressions"),j=f("./support");function A(B,H){this.options=B,this.loadOptions=H}A.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(B){var H,U;if(B.skip(22),this.fileNameLength=B.readInt(2),U=B.readInt(2),this.fileName=B.readData(this.fileNameLength),B.skip(U),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((H=function(X){for(var V in M)if(Object.prototype.hasOwnProperty.call(M,V)&&M[V].magic===X)return M[V];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+b.pretty(this.compressionMethod)+" unknown (inner file : "+b.transformTo("string",this.fileName)+")");this.decompressed=new w(this.compressedSize,this.uncompressedSize,this.crc32,H,B.readData(this.compressedSize))},readCentralPart:function(B){this.versionMadeBy=B.readInt(2),B.skip(2),this.bitFlag=B.readInt(2),this.compressionMethod=B.readString(2),this.date=B.readDate(),this.crc32=B.readInt(4),this.compressedSize=B.readInt(4),this.uncompressedSize=B.readInt(4);var H=B.readInt(2);if(this.extraFieldsLength=B.readInt(2),this.fileCommentLength=B.readInt(2),this.diskNumberStart=B.readInt(2),this.internalFileAttributes=B.readInt(2),this.externalFileAttributes=B.readInt(4),this.localHeaderOffset=B.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");B.skip(H),this.readExtraFields(B),this.parseZIP64ExtraField(B),this.fileComment=B.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var B=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),B==0&&(this.dosPermissions=63&this.externalFileAttributes),B==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var B=m(this.extraFields[1].value);this.uncompressedSize===b.MAX_VALUE_32BITS&&(this.uncompressedSize=B.readInt(8)),this.compressedSize===b.MAX_VALUE_32BITS&&(this.compressedSize=B.readInt(8)),this.localHeaderOffset===b.MAX_VALUE_32BITS&&(this.localHeaderOffset=B.readInt(8)),this.diskNumberStart===b.MAX_VALUE_32BITS&&(this.diskNumberStart=B.readInt(4))}},readExtraFields:function(B){var H,U,X,V=B.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});B.index+4<V;)H=B.readInt(2),U=B.readInt(2),X=B.readData(U),this.extraFields[H]={id:H,length:U,value:X};B.setIndex(V)},handleUTF8:function(){var B=j.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=T.utf8decode(this.fileName),this.fileCommentStr=T.utf8decode(this.fileComment);else{var H=this.findExtraFieldUnicodePath();if(H!==null)this.fileNameStr=H;else{var U=b.transformTo(B,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(U)}var X=this.findExtraFieldUnicodeComment();if(X!==null)this.fileCommentStr=X;else{var V=b.transformTo(B,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(V)}}},findExtraFieldUnicodePath:function(){var B=this.extraFields[28789];if(B){var H=m(B.value);return H.readInt(1)!==1||_(this.fileName)!==H.readInt(4)?null:T.utf8decode(H.readData(B.length-5))}return null},findExtraFieldUnicodeComment:function(){var B=this.extraFields[25461];if(B){var H=m(B.value);return H.readInt(1)!==1||_(this.fileComment)!==H.readInt(4)?null:T.utf8decode(H.readData(B.length-5))}return null}},p.exports=A},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(f,p,g){function m(H,U,X){this.name=H,this.dir=X.dir,this.date=X.date,this.comment=X.comment,this.unixPermissions=X.unixPermissions,this.dosPermissions=X.dosPermissions,this._data=U,this._dataBinary=X.binary,this.options={compression:X.compression,compressionOptions:X.compressionOptions}}var b=f("./stream/StreamHelper"),w=f("./stream/DataWorker"),_=f("./utf8"),T=f("./compressedObject"),M=f("./stream/GenericWorker");m.prototype={internalStream:function(H){var U=null,X="string";try{if(!H)throw new Error("No output type specified.");var V=(X=H.toLowerCase())==="string"||X==="text";X!=="binarystring"&&X!=="text"||(X="string"),U=this._decompressWorker();var O=!this._dataBinary;O&&!V&&(U=U.pipe(new _.Utf8EncodeWorker)),!O&&V&&(U=U.pipe(new _.Utf8DecodeWorker))}catch(N){(U=new M("error")).error(N)}return new b(U,X,"")},async:function(H,U){return this.internalStream(H).accumulate(U)},nodeStream:function(H,U){return this.internalStream(H||"nodebuffer").toNodejsStream(U)},_compressWorker:function(H,U){if(this._data instanceof T&&this._data.compression.magic===H.magic)return this._data.getCompressedWorker();var X=this._decompressWorker();return this._dataBinary||(X=X.pipe(new _.Utf8EncodeWorker)),T.createWorkerFrom(X,H,U)},_decompressWorker:function(){return this._data instanceof T?this._data.getContentWorker():this._data instanceof M?this._data:new w(this._data)}};for(var j=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],A=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},B=0;B<j.length;B++)m.prototype[j[B]]=A;p.exports=m},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(f,p,g){(function(m){var b,w,_=m.MutationObserver||m.WebKitMutationObserver;if(_){var T=0,M=new _(H),j=m.document.createTextNode("");M.observe(j,{characterData:!0}),b=function(){j.data=T=++T%2}}else if(m.setImmediate||m.MessageChannel===void 0)b="document"in m&&"onreadystatechange"in m.document.createElement("script")?function(){var U=m.document.createElement("script");U.onreadystatechange=function(){H(),U.onreadystatechange=null,U.parentNode.removeChild(U),U=null},m.document.documentElement.appendChild(U)}:function(){setTimeout(H,0)};else{var A=new m.MessageChannel;A.port1.onmessage=H,b=function(){A.port2.postMessage(0)}}var B=[];function H(){var U,X;w=!0;for(var V=B.length;V;){for(X=B,B=[],U=-1;++U<V;)X[U]();V=B.length}w=!1}p.exports=function(U){B.push(U)!==1||w||b()}}).call(this,a!==void 0?a:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(f,p,g){var m=f("immediate");function b(){}var w={},_=["REJECTED"],T=["FULFILLED"],M=["PENDING"];function j(V){if(typeof V!="function")throw new TypeError("resolver must be a function");this.state=M,this.queue=[],this.outcome=void 0,V!==b&&U(this,V)}function A(V,O,N){this.promise=V,typeof O=="function"&&(this.onFulfilled=O,this.callFulfilled=this.otherCallFulfilled),typeof N=="function"&&(this.onRejected=N,this.callRejected=this.otherCallRejected)}function B(V,O,N){m(function(){var C;try{C=O(N)}catch(x){return w.reject(V,x)}C===V?w.reject(V,new TypeError("Cannot resolve promise with itself")):w.resolve(V,C)})}function H(V){var O=V&&V.then;if(V&&(typeof V=="object"||typeof V=="function")&&typeof O=="function")return function(){O.apply(V,arguments)}}function U(V,O){var N=!1;function C(k){N||(N=!0,w.reject(V,k))}function x(k){N||(N=!0,w.resolve(V,k))}var S=X(function(){O(x,C)});S.status==="error"&&C(S.value)}function X(V,O){var N={};try{N.value=V(O),N.status="success"}catch(C){N.status="error",N.value=C}return N}(p.exports=j).prototype.finally=function(V){if(typeof V!="function")return this;var O=this.constructor;return this.then(function(N){return O.resolve(V()).then(function(){return N})},function(N){return O.resolve(V()).then(function(){throw N})})},j.prototype.catch=function(V){return this.then(null,V)},j.prototype.then=function(V,O){if(typeof V!="function"&&this.state===T||typeof O!="function"&&this.state===_)return this;var N=new this.constructor(b);return this.state!==M?B(N,this.state===T?V:O,this.outcome):this.queue.push(new A(N,V,O)),N},A.prototype.callFulfilled=function(V){w.resolve(this.promise,V)},A.prototype.otherCallFulfilled=function(V){B(this.promise,this.onFulfilled,V)},A.prototype.callRejected=function(V){w.reject(this.promise,V)},A.prototype.otherCallRejected=function(V){B(this.promise,this.onRejected,V)},w.resolve=function(V,O){var N=X(H,O);if(N.status==="error")return w.reject(V,N.value);var C=N.value;if(C)U(V,C);else{V.state=T,V.outcome=O;for(var x=-1,S=V.queue.length;++x<S;)V.queue[x].callFulfilled(O)}return V},w.reject=function(V,O){V.state=_,V.outcome=O;for(var N=-1,C=V.queue.length;++N<C;)V.queue[N].callRejected(O);return V},j.resolve=function(V){return V instanceof this?V:w.resolve(new this(b),V)},j.reject=function(V){var O=new this(b);return w.reject(O,V)},j.all=function(V){var O=this;if(Object.prototype.toString.call(V)!=="[object Array]")return this.reject(new TypeError("must be an array"));var N=V.length,C=!1;if(!N)return this.resolve([]);for(var x=new Array(N),S=0,k=-1,E=new this(b);++k<N;)I(V[k],k);return E;function I(D,F){O.resolve(D).then(function(Y){x[F]=Y,++S!==N||C||(C=!0,w.resolve(E,x))},function(Y){C||(C=!0,w.reject(E,Y))})}},j.race=function(V){if(Object.prototype.toString.call(V)!=="[object Array]")return this.reject(new TypeError("must be an array"));var O=V.length,N=!1;if(!O)return this.resolve([]);for(var C,x=-1,S=new this(b);++x<O;)C=V[x],this.resolve(C).then(function(k){N||(N=!0,w.resolve(S,k))},function(k){N||(N=!0,w.reject(S,k))});return S}},{immediate:36}],38:[function(f,p,g){var m={};(0,f("./lib/utils/common").assign)(m,f("./lib/deflate"),f("./lib/inflate"),f("./lib/zlib/constants")),p.exports=m},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(f,p,g){var m=f("./zlib/deflate"),b=f("./utils/common"),w=f("./utils/strings"),_=f("./zlib/messages"),T=f("./zlib/zstream"),M=Object.prototype.toString;function j(B){if(!(this instanceof j))return new j(B);this.options=b.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},B||{});var H=this.options;H.raw&&0<H.windowBits?H.windowBits=-H.windowBits:H.gzip&&0<H.windowBits&&H.windowBits<16&&(H.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new T,this.strm.avail_out=0;var U=m.deflateInit2(this.strm,H.level,H.method,H.windowBits,H.memLevel,H.strategy);if(U!==0)throw new Error(_[U]);if(H.header&&m.deflateSetHeader(this.strm,H.header),H.dictionary){var X;if(X=typeof H.dictionary=="string"?w.string2buf(H.dictionary):M.call(H.dictionary)==="[object ArrayBuffer]"?new Uint8Array(H.dictionary):H.dictionary,(U=m.deflateSetDictionary(this.strm,X))!==0)throw new Error(_[U]);this._dict_set=!0}}function A(B,H){var U=new j(H);if(U.push(B,!0),U.err)throw U.msg||_[U.err];return U.result}j.prototype.push=function(B,H){var U,X,V=this.strm,O=this.options.chunkSize;if(this.ended)return!1;X=H===~~H?H:H===!0?4:0,typeof B=="string"?V.input=w.string2buf(B):M.call(B)==="[object ArrayBuffer]"?V.input=new Uint8Array(B):V.input=B,V.next_in=0,V.avail_in=V.input.length;do{if(V.avail_out===0&&(V.output=new b.Buf8(O),V.next_out=0,V.avail_out=O),(U=m.deflate(V,X))!==1&&U!==0)return this.onEnd(U),!(this.ended=!0);V.avail_out!==0&&(V.avail_in!==0||X!==4&&X!==2)||(this.options.to==="string"?this.onData(w.buf2binstring(b.shrinkBuf(V.output,V.next_out))):this.onData(b.shrinkBuf(V.output,V.next_out)))}while((0<V.avail_in||V.avail_out===0)&&U!==1);return X===4?(U=m.deflateEnd(this.strm),this.onEnd(U),this.ended=!0,U===0):X!==2||(this.onEnd(0),!(V.avail_out=0))},j.prototype.onData=function(B){this.chunks.push(B)},j.prototype.onEnd=function(B){B===0&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=b.flattenChunks(this.chunks)),this.chunks=[],this.err=B,this.msg=this.strm.msg},g.Deflate=j,g.deflate=A,g.deflateRaw=function(B,H){return(H=H||{}).raw=!0,A(B,H)},g.gzip=function(B,H){return(H=H||{}).gzip=!0,A(B,H)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(f,p,g){var m=f("./zlib/inflate"),b=f("./utils/common"),w=f("./utils/strings"),_=f("./zlib/constants"),T=f("./zlib/messages"),M=f("./zlib/zstream"),j=f("./zlib/gzheader"),A=Object.prototype.toString;function B(U){if(!(this instanceof B))return new B(U);this.options=b.assign({chunkSize:16384,windowBits:0,to:""},U||{});var X=this.options;X.raw&&0<=X.windowBits&&X.windowBits<16&&(X.windowBits=-X.windowBits,X.windowBits===0&&(X.windowBits=-15)),!(0<=X.windowBits&&X.windowBits<16)||U&&U.windowBits||(X.windowBits+=32),15<X.windowBits&&X.windowBits<48&&!(15&X.windowBits)&&(X.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new M,this.strm.avail_out=0;var V=m.inflateInit2(this.strm,X.windowBits);if(V!==_.Z_OK)throw new Error(T[V]);this.header=new j,m.inflateGetHeader(this.strm,this.header)}function H(U,X){var V=new B(X);if(V.push(U,!0),V.err)throw V.msg||T[V.err];return V.result}B.prototype.push=function(U,X){var V,O,N,C,x,S,k=this.strm,E=this.options.chunkSize,I=this.options.dictionary,D=!1;if(this.ended)return!1;O=X===~~X?X:X===!0?_.Z_FINISH:_.Z_NO_FLUSH,typeof U=="string"?k.input=w.binstring2buf(U):A.call(U)==="[object ArrayBuffer]"?k.input=new Uint8Array(U):k.input=U,k.next_in=0,k.avail_in=k.input.length;do{if(k.avail_out===0&&(k.output=new b.Buf8(E),k.next_out=0,k.avail_out=E),(V=m.inflate(k,_.Z_NO_FLUSH))===_.Z_NEED_DICT&&I&&(S=typeof I=="string"?w.string2buf(I):A.call(I)==="[object ArrayBuffer]"?new Uint8Array(I):I,V=m.inflateSetDictionary(this.strm,S)),V===_.Z_BUF_ERROR&&D===!0&&(V=_.Z_OK,D=!1),V!==_.Z_STREAM_END&&V!==_.Z_OK)return this.onEnd(V),!(this.ended=!0);k.next_out&&(k.avail_out!==0&&V!==_.Z_STREAM_END&&(k.avail_in!==0||O!==_.Z_FINISH&&O!==_.Z_SYNC_FLUSH)||(this.options.to==="string"?(N=w.utf8border(k.output,k.next_out),C=k.next_out-N,x=w.buf2string(k.output,N),k.next_out=C,k.avail_out=E-C,C&&b.arraySet(k.output,k.output,N,C,0),this.onData(x)):this.onData(b.shrinkBuf(k.output,k.next_out)))),k.avail_in===0&&k.avail_out===0&&(D=!0)}while((0<k.avail_in||k.avail_out===0)&&V!==_.Z_STREAM_END);return V===_.Z_STREAM_END&&(O=_.Z_FINISH),O===_.Z_FINISH?(V=m.inflateEnd(this.strm),this.onEnd(V),this.ended=!0,V===_.Z_OK):O!==_.Z_SYNC_FLUSH||(this.onEnd(_.Z_OK),!(k.avail_out=0))},B.prototype.onData=function(U){this.chunks.push(U)},B.prototype.onEnd=function(U){U===_.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=b.flattenChunks(this.chunks)),this.chunks=[],this.err=U,this.msg=this.strm.msg},g.Inflate=B,g.inflate=H,g.inflateRaw=function(U,X){return(X=X||{}).raw=!0,H(U,X)},g.ungzip=H},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(f,p,g){var m=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";g.assign=function(_){for(var T=Array.prototype.slice.call(arguments,1);T.length;){var M=T.shift();if(M){if(typeof M!="object")throw new TypeError(M+"must be non-object");for(var j in M)M.hasOwnProperty(j)&&(_[j]=M[j])}}return _},g.shrinkBuf=function(_,T){return _.length===T?_:_.subarray?_.subarray(0,T):(_.length=T,_)};var b={arraySet:function(_,T,M,j,A){if(T.subarray&&_.subarray)_.set(T.subarray(M,M+j),A);else for(var B=0;B<j;B++)_[A+B]=T[M+B]},flattenChunks:function(_){var T,M,j,A,B,H;for(T=j=0,M=_.length;T<M;T++)j+=_[T].length;for(H=new Uint8Array(j),T=A=0,M=_.length;T<M;T++)B=_[T],H.set(B,A),A+=B.length;return H}},w={arraySet:function(_,T,M,j,A){for(var B=0;B<j;B++)_[A+B]=T[M+B]},flattenChunks:function(_){return[].concat.apply([],_)}};g.setTyped=function(_){_?(g.Buf8=Uint8Array,g.Buf16=Uint16Array,g.Buf32=Int32Array,g.assign(g,b)):(g.Buf8=Array,g.Buf16=Array,g.Buf32=Array,g.assign(g,w))},g.setTyped(m)},{}],42:[function(f,p,g){var m=f("./common"),b=!0,w=!0;try{String.fromCharCode.apply(null,[0])}catch{b=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{w=!1}for(var _=new m.Buf8(256),T=0;T<256;T++)_[T]=252<=T?6:248<=T?5:240<=T?4:224<=T?3:192<=T?2:1;function M(j,A){if(A<65537&&(j.subarray&&w||!j.subarray&&b))return String.fromCharCode.apply(null,m.shrinkBuf(j,A));for(var B="",H=0;H<A;H++)B+=String.fromCharCode(j[H]);return B}_[254]=_[254]=1,g.string2buf=function(j){var A,B,H,U,X,V=j.length,O=0;for(U=0;U<V;U++)(64512&(B=j.charCodeAt(U)))==55296&&U+1<V&&(64512&(H=j.charCodeAt(U+1)))==56320&&(B=65536+(B-55296<<10)+(H-56320),U++),O+=B<128?1:B<2048?2:B<65536?3:4;for(A=new m.Buf8(O),U=X=0;X<O;U++)(64512&(B=j.charCodeAt(U)))==55296&&U+1<V&&(64512&(H=j.charCodeAt(U+1)))==56320&&(B=65536+(B-55296<<10)+(H-56320),U++),B<128?A[X++]=B:(B<2048?A[X++]=192|B>>>6:(B<65536?A[X++]=224|B>>>12:(A[X++]=240|B>>>18,A[X++]=128|B>>>12&63),A[X++]=128|B>>>6&63),A[X++]=128|63&B);return A},g.buf2binstring=function(j){return M(j,j.length)},g.binstring2buf=function(j){for(var A=new m.Buf8(j.length),B=0,H=A.length;B<H;B++)A[B]=j.charCodeAt(B);return A},g.buf2string=function(j,A){var B,H,U,X,V=A||j.length,O=new Array(2*V);for(B=H=0;B<V;)if((U=j[B++])<128)O[H++]=U;else if(4<(X=_[U]))O[H++]=65533,B+=X-1;else{for(U&=X===2?31:X===3?15:7;1<X&&B<V;)U=U<<6|63&j[B++],X--;1<X?O[H++]=65533:U<65536?O[H++]=U:(U-=65536,O[H++]=55296|U>>10&1023,O[H++]=56320|1023&U)}return M(O,H)},g.utf8border=function(j,A){var B;for((A=A||j.length)>j.length&&(A=j.length),B=A-1;0<=B&&(192&j[B])==128;)B--;return B<0||B===0?A:B+_[j[B]]>A?B:A}},{"./common":41}],43:[function(f,p,g){p.exports=function(m,b,w,_){for(var T=65535&m|0,M=m>>>16&65535|0,j=0;w!==0;){for(w-=j=2e3<w?2e3:w;M=M+(T=T+b[_++]|0)|0,--j;);T%=65521,M%=65521}return T|M<<16|0}},{}],44:[function(f,p,g){p.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(f,p,g){var m=function(){for(var b,w=[],_=0;_<256;_++){b=_;for(var T=0;T<8;T++)b=1&b?3988292384^b>>>1:b>>>1;w[_]=b}return w}();p.exports=function(b,w,_,T){var M=m,j=T+_;b^=-1;for(var A=T;A<j;A++)b=b>>>8^M[255&(b^w[A])];return-1^b}},{}],46:[function(f,p,g){var m,b=f("../utils/common"),w=f("./trees"),_=f("./adler32"),T=f("./crc32"),M=f("./messages"),j=-2,A=258,B=262,H=113;function U(q,ee){return q.msg=M[ee],ee}function X(q){return(q<<1)-(4<q?9:0)}function V(q){for(var ee=q.length;0<=--ee;)q[ee]=0}function O(q){var ee=q.state,L=ee.pending;L>q.avail_out&&(L=q.avail_out),L!==0&&(b.arraySet(q.output,ee.pending_buf,ee.pending_out,L,q.next_out),q.next_out+=L,ee.pending_out+=L,q.total_out+=L,q.avail_out-=L,ee.pending-=L,ee.pending===0&&(ee.pending_out=0))}function N(q,ee){w._tr_flush_block(q,0<=q.block_start?q.block_start:-1,q.strstart-q.block_start,ee),q.block_start=q.strstart,O(q.strm)}function C(q,ee){q.pending_buf[q.pending++]=ee}function x(q,ee){q.pending_buf[q.pending++]=ee>>>8&255,q.pending_buf[q.pending++]=255&ee}function S(q,ee){var L,P,G=q.max_chain_length,ne=q.strstart,ce=q.prev_length,ie=q.nice_match,ue=q.strstart>q.w_size-B?q.strstart-(q.w_size-B):0,ve=q.window,we=q.w_mask,le=q.prev,me=q.strstart+A,ge=ve[ne+ce-1],ke=ve[ne+ce];q.prev_length>=q.good_match&&(G>>=2),ie>q.lookahead&&(ie=q.lookahead);do if(ve[(L=ee)+ce]===ke&&ve[L+ce-1]===ge&&ve[L]===ve[ne]&&ve[++L]===ve[ne+1]){ne+=2,L++;do;while(ve[++ne]===ve[++L]&&ve[++ne]===ve[++L]&&ve[++ne]===ve[++L]&&ve[++ne]===ve[++L]&&ve[++ne]===ve[++L]&&ve[++ne]===ve[++L]&&ve[++ne]===ve[++L]&&ve[++ne]===ve[++L]&&ne<me);if(P=A-(me-ne),ne=me-A,ce<P){if(q.match_start=ee,ie<=(ce=P))break;ge=ve[ne+ce-1],ke=ve[ne+ce]}}while((ee=le[ee&we])>ue&&--G!=0);return ce<=q.lookahead?ce:q.lookahead}function k(q){var ee,L,P,G,ne,ce,ie,ue,ve,we,le=q.w_size;do{if(G=q.window_size-q.lookahead-q.strstart,q.strstart>=le+(le-B)){for(b.arraySet(q.window,q.window,le,le,0),q.match_start-=le,q.strstart-=le,q.block_start-=le,ee=L=q.hash_size;P=q.head[--ee],q.head[ee]=le<=P?P-le:0,--L;);for(ee=L=le;P=q.prev[--ee],q.prev[ee]=le<=P?P-le:0,--L;);G+=le}if(q.strm.avail_in===0)break;if(ce=q.strm,ie=q.window,ue=q.strstart+q.lookahead,we=void 0,(ve=G)<(we=ce.avail_in)&&(we=ve),L=we===0?0:(ce.avail_in-=we,b.arraySet(ie,ce.input,ce.next_in,we,ue),ce.state.wrap===1?ce.adler=_(ce.adler,ie,we,ue):ce.state.wrap===2&&(ce.adler=T(ce.adler,ie,we,ue)),ce.next_in+=we,ce.total_in+=we,we),q.lookahead+=L,q.lookahead+q.insert>=3)for(ne=q.strstart-q.insert,q.ins_h=q.window[ne],q.ins_h=(q.ins_h<<q.hash_shift^q.window[ne+1])&q.hash_mask;q.insert&&(q.ins_h=(q.ins_h<<q.hash_shift^q.window[ne+3-1])&q.hash_mask,q.prev[ne&q.w_mask]=q.head[q.ins_h],q.head[q.ins_h]=ne,ne++,q.insert--,!(q.lookahead+q.insert<3)););}while(q.lookahead<B&&q.strm.avail_in!==0)}function E(q,ee){for(var L,P;;){if(q.lookahead<B){if(k(q),q.lookahead<B&&ee===0)return 1;if(q.lookahead===0)break}if(L=0,q.lookahead>=3&&(q.ins_h=(q.ins_h<<q.hash_shift^q.window[q.strstart+3-1])&q.hash_mask,L=q.prev[q.strstart&q.w_mask]=q.head[q.ins_h],q.head[q.ins_h]=q.strstart),L!==0&&q.strstart-L<=q.w_size-B&&(q.match_length=S(q,L)),q.match_length>=3)if(P=w._tr_tally(q,q.strstart-q.match_start,q.match_length-3),q.lookahead-=q.match_length,q.match_length<=q.max_lazy_match&&q.lookahead>=3){for(q.match_length--;q.strstart++,q.ins_h=(q.ins_h<<q.hash_shift^q.window[q.strstart+3-1])&q.hash_mask,L=q.prev[q.strstart&q.w_mask]=q.head[q.ins_h],q.head[q.ins_h]=q.strstart,--q.match_length!=0;);q.strstart++}else q.strstart+=q.match_length,q.match_length=0,q.ins_h=q.window[q.strstart],q.ins_h=(q.ins_h<<q.hash_shift^q.window[q.strstart+1])&q.hash_mask;else P=w._tr_tally(q,0,q.window[q.strstart]),q.lookahead--,q.strstart++;if(P&&(N(q,!1),q.strm.avail_out===0))return 1}return q.insert=q.strstart<2?q.strstart:2,ee===4?(N(q,!0),q.strm.avail_out===0?3:4):q.last_lit&&(N(q,!1),q.strm.avail_out===0)?1:2}function I(q,ee){for(var L,P,G;;){if(q.lookahead<B){if(k(q),q.lookahead<B&&ee===0)return 1;if(q.lookahead===0)break}if(L=0,q.lookahead>=3&&(q.ins_h=(q.ins_h<<q.hash_shift^q.window[q.strstart+3-1])&q.hash_mask,L=q.prev[q.strstart&q.w_mask]=q.head[q.ins_h],q.head[q.ins_h]=q.strstart),q.prev_length=q.match_length,q.prev_match=q.match_start,q.match_length=2,L!==0&&q.prev_length<q.max_lazy_match&&q.strstart-L<=q.w_size-B&&(q.match_length=S(q,L),q.match_length<=5&&(q.strategy===1||q.match_length===3&&4096<q.strstart-q.match_start)&&(q.match_length=2)),q.prev_length>=3&&q.match_length<=q.prev_length){for(G=q.strstart+q.lookahead-3,P=w._tr_tally(q,q.strstart-1-q.prev_match,q.prev_length-3),q.lookahead-=q.prev_length-1,q.prev_length-=2;++q.strstart<=G&&(q.ins_h=(q.ins_h<<q.hash_shift^q.window[q.strstart+3-1])&q.hash_mask,L=q.prev[q.strstart&q.w_mask]=q.head[q.ins_h],q.head[q.ins_h]=q.strstart),--q.prev_length!=0;);if(q.match_available=0,q.match_length=2,q.strstart++,P&&(N(q,!1),q.strm.avail_out===0))return 1}else if(q.match_available){if((P=w._tr_tally(q,0,q.window[q.strstart-1]))&&N(q,!1),q.strstart++,q.lookahead--,q.strm.avail_out===0)return 1}else q.match_available=1,q.strstart++,q.lookahead--}return q.match_available&&(P=w._tr_tally(q,0,q.window[q.strstart-1]),q.match_available=0),q.insert=q.strstart<2?q.strstart:2,ee===4?(N(q,!0),q.strm.avail_out===0?3:4):q.last_lit&&(N(q,!1),q.strm.avail_out===0)?1:2}function D(q,ee,L,P,G){this.good_length=q,this.max_lazy=ee,this.nice_length=L,this.max_chain=P,this.func=G}function F(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new b.Buf16(1146),this.dyn_dtree=new b.Buf16(122),this.bl_tree=new b.Buf16(78),V(this.dyn_ltree),V(this.dyn_dtree),V(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new b.Buf16(16),this.heap=new b.Buf16(573),V(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new b.Buf16(573),V(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Y(q){var ee;return q&&q.state?(q.total_in=q.total_out=0,q.data_type=2,(ee=q.state).pending=0,ee.pending_out=0,ee.wrap<0&&(ee.wrap=-ee.wrap),ee.status=ee.wrap?42:H,q.adler=ee.wrap===2?0:1,ee.last_flush=0,w._tr_init(ee),0):U(q,j)}function J(q){var ee=Y(q);return ee===0&&function(L){L.window_size=2*L.w_size,V(L.head),L.max_lazy_match=m[L.level].max_lazy,L.good_match=m[L.level].good_length,L.nice_match=m[L.level].nice_length,L.max_chain_length=m[L.level].max_chain,L.strstart=0,L.block_start=0,L.lookahead=0,L.insert=0,L.match_length=L.prev_length=2,L.match_available=0,L.ins_h=0}(q.state),ee}function se(q,ee,L,P,G,ne){if(!q)return j;var ce=1;if(ee===-1&&(ee=6),P<0?(ce=0,P=-P):15<P&&(ce=2,P-=16),G<1||9<G||L!==8||P<8||15<P||ee<0||9<ee||ne<0||4<ne)return U(q,j);P===8&&(P=9);var ie=new F;return(q.state=ie).strm=q,ie.wrap=ce,ie.gzhead=null,ie.w_bits=P,ie.w_size=1<<ie.w_bits,ie.w_mask=ie.w_size-1,ie.hash_bits=G+7,ie.hash_size=1<<ie.hash_bits,ie.hash_mask=ie.hash_size-1,ie.hash_shift=~~((ie.hash_bits+3-1)/3),ie.window=new b.Buf8(2*ie.w_size),ie.head=new b.Buf16(ie.hash_size),ie.prev=new b.Buf16(ie.w_size),ie.lit_bufsize=1<<G+6,ie.pending_buf_size=4*ie.lit_bufsize,ie.pending_buf=new b.Buf8(ie.pending_buf_size),ie.d_buf=1*ie.lit_bufsize,ie.l_buf=3*ie.lit_bufsize,ie.level=ee,ie.strategy=ne,ie.method=L,J(q)}m=[new D(0,0,0,0,function(q,ee){var L=65535;for(L>q.pending_buf_size-5&&(L=q.pending_buf_size-5);;){if(q.lookahead<=1){if(k(q),q.lookahead===0&&ee===0)return 1;if(q.lookahead===0)break}q.strstart+=q.lookahead,q.lookahead=0;var P=q.block_start+L;if((q.strstart===0||q.strstart>=P)&&(q.lookahead=q.strstart-P,q.strstart=P,N(q,!1),q.strm.avail_out===0)||q.strstart-q.block_start>=q.w_size-B&&(N(q,!1),q.strm.avail_out===0))return 1}return q.insert=0,ee===4?(N(q,!0),q.strm.avail_out===0?3:4):(q.strstart>q.block_start&&(N(q,!1),q.strm.avail_out),1)}),new D(4,4,8,4,E),new D(4,5,16,8,E),new D(4,6,32,32,E),new D(4,4,16,16,I),new D(8,16,32,32,I),new D(8,16,128,128,I),new D(8,32,128,256,I),new D(32,128,258,1024,I),new D(32,258,258,4096,I)],g.deflateInit=function(q,ee){return se(q,ee,8,15,8,0)},g.deflateInit2=se,g.deflateReset=J,g.deflateResetKeep=Y,g.deflateSetHeader=function(q,ee){return q&&q.state?q.state.wrap!==2?j:(q.state.gzhead=ee,0):j},g.deflate=function(q,ee){var L,P,G,ne;if(!q||!q.state||5<ee||ee<0)return q?U(q,j):j;if(P=q.state,!q.output||!q.input&&q.avail_in!==0||P.status===666&&ee!==4)return U(q,q.avail_out===0?-5:j);if(P.strm=q,L=P.last_flush,P.last_flush=ee,P.status===42)if(P.wrap===2)q.adler=0,C(P,31),C(P,139),C(P,8),P.gzhead?(C(P,(P.gzhead.text?1:0)+(P.gzhead.hcrc?2:0)+(P.gzhead.extra?4:0)+(P.gzhead.name?8:0)+(P.gzhead.comment?16:0)),C(P,255&P.gzhead.time),C(P,P.gzhead.time>>8&255),C(P,P.gzhead.time>>16&255),C(P,P.gzhead.time>>24&255),C(P,P.level===9?2:2<=P.strategy||P.level<2?4:0),C(P,255&P.gzhead.os),P.gzhead.extra&&P.gzhead.extra.length&&(C(P,255&P.gzhead.extra.length),C(P,P.gzhead.extra.length>>8&255)),P.gzhead.hcrc&&(q.adler=T(q.adler,P.pending_buf,P.pending,0)),P.gzindex=0,P.status=69):(C(P,0),C(P,0),C(P,0),C(P,0),C(P,0),C(P,P.level===9?2:2<=P.strategy||P.level<2?4:0),C(P,3),P.status=H);else{var ce=8+(P.w_bits-8<<4)<<8;ce|=(2<=P.strategy||P.level<2?0:P.level<6?1:P.level===6?2:3)<<6,P.strstart!==0&&(ce|=32),ce+=31-ce%31,P.status=H,x(P,ce),P.strstart!==0&&(x(P,q.adler>>>16),x(P,65535&q.adler)),q.adler=1}if(P.status===69)if(P.gzhead.extra){for(G=P.pending;P.gzindex<(65535&P.gzhead.extra.length)&&(P.pending!==P.pending_buf_size||(P.gzhead.hcrc&&P.pending>G&&(q.adler=T(q.adler,P.pending_buf,P.pending-G,G)),O(q),G=P.pending,P.pending!==P.pending_buf_size));)C(P,255&P.gzhead.extra[P.gzindex]),P.gzindex++;P.gzhead.hcrc&&P.pending>G&&(q.adler=T(q.adler,P.pending_buf,P.pending-G,G)),P.gzindex===P.gzhead.extra.length&&(P.gzindex=0,P.status=73)}else P.status=73;if(P.status===73)if(P.gzhead.name){G=P.pending;do{if(P.pending===P.pending_buf_size&&(P.gzhead.hcrc&&P.pending>G&&(q.adler=T(q.adler,P.pending_buf,P.pending-G,G)),O(q),G=P.pending,P.pending===P.pending_buf_size)){ne=1;break}ne=P.gzindex<P.gzhead.name.length?255&P.gzhead.name.charCodeAt(P.gzindex++):0,C(P,ne)}while(ne!==0);P.gzhead.hcrc&&P.pending>G&&(q.adler=T(q.adler,P.pending_buf,P.pending-G,G)),ne===0&&(P.gzindex=0,P.status=91)}else P.status=91;if(P.status===91)if(P.gzhead.comment){G=P.pending;do{if(P.pending===P.pending_buf_size&&(P.gzhead.hcrc&&P.pending>G&&(q.adler=T(q.adler,P.pending_buf,P.pending-G,G)),O(q),G=P.pending,P.pending===P.pending_buf_size)){ne=1;break}ne=P.gzindex<P.gzhead.comment.length?255&P.gzhead.comment.charCodeAt(P.gzindex++):0,C(P,ne)}while(ne!==0);P.gzhead.hcrc&&P.pending>G&&(q.adler=T(q.adler,P.pending_buf,P.pending-G,G)),ne===0&&(P.status=103)}else P.status=103;if(P.status===103&&(P.gzhead.hcrc?(P.pending+2>P.pending_buf_size&&O(q),P.pending+2<=P.pending_buf_size&&(C(P,255&q.adler),C(P,q.adler>>8&255),q.adler=0,P.status=H)):P.status=H),P.pending!==0){if(O(q),q.avail_out===0)return P.last_flush=-1,0}else if(q.avail_in===0&&X(ee)<=X(L)&&ee!==4)return U(q,-5);if(P.status===666&&q.avail_in!==0)return U(q,-5);if(q.avail_in!==0||P.lookahead!==0||ee!==0&&P.status!==666){var ie=P.strategy===2?function(ue,ve){for(var we;;){if(ue.lookahead===0&&(k(ue),ue.lookahead===0)){if(ve===0)return 1;break}if(ue.match_length=0,we=w._tr_tally(ue,0,ue.window[ue.strstart]),ue.lookahead--,ue.strstart++,we&&(N(ue,!1),ue.strm.avail_out===0))return 1}return ue.insert=0,ve===4?(N(ue,!0),ue.strm.avail_out===0?3:4):ue.last_lit&&(N(ue,!1),ue.strm.avail_out===0)?1:2}(P,ee):P.strategy===3?function(ue,ve){for(var we,le,me,ge,ke=ue.window;;){if(ue.lookahead<=A){if(k(ue),ue.lookahead<=A&&ve===0)return 1;if(ue.lookahead===0)break}if(ue.match_length=0,ue.lookahead>=3&&0<ue.strstart&&(le=ke[me=ue.strstart-1])===ke[++me]&&le===ke[++me]&&le===ke[++me]){ge=ue.strstart+A;do;while(le===ke[++me]&&le===ke[++me]&&le===ke[++me]&&le===ke[++me]&&le===ke[++me]&&le===ke[++me]&&le===ke[++me]&&le===ke[++me]&&me<ge);ue.match_length=A-(ge-me),ue.match_length>ue.lookahead&&(ue.match_length=ue.lookahead)}if(ue.match_length>=3?(we=w._tr_tally(ue,1,ue.match_length-3),ue.lookahead-=ue.match_length,ue.strstart+=ue.match_length,ue.match_length=0):(we=w._tr_tally(ue,0,ue.window[ue.strstart]),ue.lookahead--,ue.strstart++),we&&(N(ue,!1),ue.strm.avail_out===0))return 1}return ue.insert=0,ve===4?(N(ue,!0),ue.strm.avail_out===0?3:4):ue.last_lit&&(N(ue,!1),ue.strm.avail_out===0)?1:2}(P,ee):m[P.level].func(P,ee);if(ie!==3&&ie!==4||(P.status=666),ie===1||ie===3)return q.avail_out===0&&(P.last_flush=-1),0;if(ie===2&&(ee===1?w._tr_align(P):ee!==5&&(w._tr_stored_block(P,0,0,!1),ee===3&&(V(P.head),P.lookahead===0&&(P.strstart=0,P.block_start=0,P.insert=0))),O(q),q.avail_out===0))return P.last_flush=-1,0}return ee!==4?0:P.wrap<=0?1:(P.wrap===2?(C(P,255&q.adler),C(P,q.adler>>8&255),C(P,q.adler>>16&255),C(P,q.adler>>24&255),C(P,255&q.total_in),C(P,q.total_in>>8&255),C(P,q.total_in>>16&255),C(P,q.total_in>>24&255)):(x(P,q.adler>>>16),x(P,65535&q.adler)),O(q),0<P.wrap&&(P.wrap=-P.wrap),P.pending!==0?0:1)},g.deflateEnd=function(q){var ee;return q&&q.state?(ee=q.state.status)!==42&&ee!==69&&ee!==73&&ee!==91&&ee!==103&&ee!==H&&ee!==666?U(q,j):(q.state=null,ee===H?U(q,-3):0):j},g.deflateSetDictionary=function(q,ee){var L,P,G,ne,ce,ie,ue,ve,we=ee.length;if(!q||!q.state||(ne=(L=q.state).wrap)===2||ne===1&&L.status!==42||L.lookahead)return j;for(ne===1&&(q.adler=_(q.adler,ee,we,0)),L.wrap=0,we>=L.w_size&&(ne===0&&(V(L.head),L.strstart=0,L.block_start=0,L.insert=0),ve=new b.Buf8(L.w_size),b.arraySet(ve,ee,we-L.w_size,L.w_size,0),ee=ve,we=L.w_size),ce=q.avail_in,ie=q.next_in,ue=q.input,q.avail_in=we,q.next_in=0,q.input=ee,k(L);L.lookahead>=3;){for(P=L.strstart,G=L.lookahead-2;L.ins_h=(L.ins_h<<L.hash_shift^L.window[P+3-1])&L.hash_mask,L.prev[P&L.w_mask]=L.head[L.ins_h],L.head[L.ins_h]=P,P++,--G;);L.strstart=P,L.lookahead=2,k(L)}return L.strstart+=L.lookahead,L.block_start=L.strstart,L.insert=L.lookahead,L.lookahead=0,L.match_length=L.prev_length=2,L.match_available=0,q.next_in=ie,q.input=ue,q.avail_in=ce,L.wrap=ne,0},g.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(f,p,g){p.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(f,p,g){p.exports=function(m,b){var w,_,T,M,j,A,B,H,U,X,V,O,N,C,x,S,k,E,I,D,F,Y,J,se,q;w=m.state,_=m.next_in,se=m.input,T=_+(m.avail_in-5),M=m.next_out,q=m.output,j=M-(b-m.avail_out),A=M+(m.avail_out-257),B=w.dmax,H=w.wsize,U=w.whave,X=w.wnext,V=w.window,O=w.hold,N=w.bits,C=w.lencode,x=w.distcode,S=(1<<w.lenbits)-1,k=(1<<w.distbits)-1;e:do{N<15&&(O+=se[_++]<<N,N+=8,O+=se[_++]<<N,N+=8),E=C[O&S];t:for(;;){if(O>>>=I=E>>>24,N-=I,(I=E>>>16&255)==0)q[M++]=65535&E;else{if(!(16&I)){if(!(64&I)){E=C[(65535&E)+(O&(1<<I)-1)];continue t}if(32&I){w.mode=12;break e}m.msg="invalid literal/length code",w.mode=30;break e}D=65535&E,(I&=15)&&(N<I&&(O+=se[_++]<<N,N+=8),D+=O&(1<<I)-1,O>>>=I,N-=I),N<15&&(O+=se[_++]<<N,N+=8,O+=se[_++]<<N,N+=8),E=x[O&k];r:for(;;){if(O>>>=I=E>>>24,N-=I,!(16&(I=E>>>16&255))){if(!(64&I)){E=x[(65535&E)+(O&(1<<I)-1)];continue r}m.msg="invalid distance code",w.mode=30;break e}if(F=65535&E,N<(I&=15)&&(O+=se[_++]<<N,(N+=8)<I&&(O+=se[_++]<<N,N+=8)),B<(F+=O&(1<<I)-1)){m.msg="invalid distance too far back",w.mode=30;break e}if(O>>>=I,N-=I,(I=M-j)<F){if(U<(I=F-I)&&w.sane){m.msg="invalid distance too far back",w.mode=30;break e}if(J=V,(Y=0)===X){if(Y+=H-I,I<D){for(D-=I;q[M++]=V[Y++],--I;);Y=M-F,J=q}}else if(X<I){if(Y+=H+X-I,(I-=X)<D){for(D-=I;q[M++]=V[Y++],--I;);if(Y=0,X<D){for(D-=I=X;q[M++]=V[Y++],--I;);Y=M-F,J=q}}}else if(Y+=X-I,I<D){for(D-=I;q[M++]=V[Y++],--I;);Y=M-F,J=q}for(;2<D;)q[M++]=J[Y++],q[M++]=J[Y++],q[M++]=J[Y++],D-=3;D&&(q[M++]=J[Y++],1<D&&(q[M++]=J[Y++]))}else{for(Y=M-F;q[M++]=q[Y++],q[M++]=q[Y++],q[M++]=q[Y++],2<(D-=3););D&&(q[M++]=q[Y++],1<D&&(q[M++]=q[Y++]))}break}}break}}while(_<T&&M<A);_-=D=N>>3,O&=(1<<(N-=D<<3))-1,m.next_in=_,m.next_out=M,m.avail_in=_<T?T-_+5:5-(_-T),m.avail_out=M<A?A-M+257:257-(M-A),w.hold=O,w.bits=N}},{}],49:[function(f,p,g){var m=f("../utils/common"),b=f("./adler32"),w=f("./crc32"),_=f("./inffast"),T=f("./inftrees"),M=-2;function j(S){return(S>>>24&255)+(S>>>8&65280)+((65280&S)<<8)+((255&S)<<24)}function A(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new m.Buf16(320),this.work=new m.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function B(S){var k;return S&&S.state?(k=S.state,S.total_in=S.total_out=k.total=0,S.msg="",k.wrap&&(S.adler=1&k.wrap),k.mode=1,k.last=0,k.havedict=0,k.dmax=32768,k.head=null,k.hold=0,k.bits=0,k.lencode=k.lendyn=new m.Buf32(852),k.distcode=k.distdyn=new m.Buf32(592),k.sane=1,k.back=-1,0):M}function H(S){var k;return S&&S.state?((k=S.state).wsize=0,k.whave=0,k.wnext=0,B(S)):M}function U(S,k){var E,I;return S&&S.state?(I=S.state,k<0?(E=0,k=-k):(E=1+(k>>4),k<48&&(k&=15)),k&&(k<8||15<k)?M:(I.window!==null&&I.wbits!==k&&(I.window=null),I.wrap=E,I.wbits=k,H(S))):M}function X(S,k){var E,I;return S?(I=new A,(S.state=I).window=null,(E=U(S,k))!==0&&(S.state=null),E):M}var V,O,N=!0;function C(S){if(N){var k;for(V=new m.Buf32(512),O=new m.Buf32(32),k=0;k<144;)S.lens[k++]=8;for(;k<256;)S.lens[k++]=9;for(;k<280;)S.lens[k++]=7;for(;k<288;)S.lens[k++]=8;for(T(1,S.lens,0,288,V,0,S.work,{bits:9}),k=0;k<32;)S.lens[k++]=5;T(2,S.lens,0,32,O,0,S.work,{bits:5}),N=!1}S.lencode=V,S.lenbits=9,S.distcode=O,S.distbits=5}function x(S,k,E,I){var D,F=S.state;return F.window===null&&(F.wsize=1<<F.wbits,F.wnext=0,F.whave=0,F.window=new m.Buf8(F.wsize)),I>=F.wsize?(m.arraySet(F.window,k,E-F.wsize,F.wsize,0),F.wnext=0,F.whave=F.wsize):(I<(D=F.wsize-F.wnext)&&(D=I),m.arraySet(F.window,k,E-I,D,F.wnext),(I-=D)?(m.arraySet(F.window,k,E-I,I,0),F.wnext=I,F.whave=F.wsize):(F.wnext+=D,F.wnext===F.wsize&&(F.wnext=0),F.whave<F.wsize&&(F.whave+=D))),0}g.inflateReset=H,g.inflateReset2=U,g.inflateResetKeep=B,g.inflateInit=function(S){return X(S,15)},g.inflateInit2=X,g.inflate=function(S,k){var E,I,D,F,Y,J,se,q,ee,L,P,G,ne,ce,ie,ue,ve,we,le,me,ge,ke,xe,Ee,Ie=0,Pe=new m.Buf8(4),Ae=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!S||!S.state||!S.output||!S.input&&S.avail_in!==0)return M;(E=S.state).mode===12&&(E.mode=13),Y=S.next_out,D=S.output,se=S.avail_out,F=S.next_in,I=S.input,J=S.avail_in,q=E.hold,ee=E.bits,L=J,P=se,ke=0;e:for(;;)switch(E.mode){case 1:if(E.wrap===0){E.mode=13;break}for(;ee<16;){if(J===0)break e;J--,q+=I[F++]<<ee,ee+=8}if(2&E.wrap&&q===35615){Pe[E.check=0]=255&q,Pe[1]=q>>>8&255,E.check=w(E.check,Pe,2,0),ee=q=0,E.mode=2;break}if(E.flags=0,E.head&&(E.head.done=!1),!(1&E.wrap)||(((255&q)<<8)+(q>>8))%31){S.msg="incorrect header check",E.mode=30;break}if((15&q)!=8){S.msg="unknown compression method",E.mode=30;break}if(ee-=4,ge=8+(15&(q>>>=4)),E.wbits===0)E.wbits=ge;else if(ge>E.wbits){S.msg="invalid window size",E.mode=30;break}E.dmax=1<<ge,S.adler=E.check=1,E.mode=512&q?10:12,ee=q=0;break;case 2:for(;ee<16;){if(J===0)break e;J--,q+=I[F++]<<ee,ee+=8}if(E.flags=q,(255&E.flags)!=8){S.msg="unknown compression method",E.mode=30;break}if(57344&E.flags){S.msg="unknown header flags set",E.mode=30;break}E.head&&(E.head.text=q>>8&1),512&E.flags&&(Pe[0]=255&q,Pe[1]=q>>>8&255,E.check=w(E.check,Pe,2,0)),ee=q=0,E.mode=3;case 3:for(;ee<32;){if(J===0)break e;J--,q+=I[F++]<<ee,ee+=8}E.head&&(E.head.time=q),512&E.flags&&(Pe[0]=255&q,Pe[1]=q>>>8&255,Pe[2]=q>>>16&255,Pe[3]=q>>>24&255,E.check=w(E.check,Pe,4,0)),ee=q=0,E.mode=4;case 4:for(;ee<16;){if(J===0)break e;J--,q+=I[F++]<<ee,ee+=8}E.head&&(E.head.xflags=255&q,E.head.os=q>>8),512&E.flags&&(Pe[0]=255&q,Pe[1]=q>>>8&255,E.check=w(E.check,Pe,2,0)),ee=q=0,E.mode=5;case 5:if(1024&E.flags){for(;ee<16;){if(J===0)break e;J--,q+=I[F++]<<ee,ee+=8}E.length=q,E.head&&(E.head.extra_len=q),512&E.flags&&(Pe[0]=255&q,Pe[1]=q>>>8&255,E.check=w(E.check,Pe,2,0)),ee=q=0}else E.head&&(E.head.extra=null);E.mode=6;case 6:if(1024&E.flags&&(J<(G=E.length)&&(G=J),G&&(E.head&&(ge=E.head.extra_len-E.length,E.head.extra||(E.head.extra=new Array(E.head.extra_len)),m.arraySet(E.head.extra,I,F,G,ge)),512&E.flags&&(E.check=w(E.check,I,G,F)),J-=G,F+=G,E.length-=G),E.length))break e;E.length=0,E.mode=7;case 7:if(2048&E.flags){if(J===0)break e;for(G=0;ge=I[F+G++],E.head&&ge&&E.length<65536&&(E.head.name+=String.fromCharCode(ge)),ge&&G<J;);if(512&E.flags&&(E.check=w(E.check,I,G,F)),J-=G,F+=G,ge)break e}else E.head&&(E.head.name=null);E.length=0,E.mode=8;case 8:if(4096&E.flags){if(J===0)break e;for(G=0;ge=I[F+G++],E.head&&ge&&E.length<65536&&(E.head.comment+=String.fromCharCode(ge)),ge&&G<J;);if(512&E.flags&&(E.check=w(E.check,I,G,F)),J-=G,F+=G,ge)break e}else E.head&&(E.head.comment=null);E.mode=9;case 9:if(512&E.flags){for(;ee<16;){if(J===0)break e;J--,q+=I[F++]<<ee,ee+=8}if(q!==(65535&E.check)){S.msg="header crc mismatch",E.mode=30;break}ee=q=0}E.head&&(E.head.hcrc=E.flags>>9&1,E.head.done=!0),S.adler=E.check=0,E.mode=12;break;case 10:for(;ee<32;){if(J===0)break e;J--,q+=I[F++]<<ee,ee+=8}S.adler=E.check=j(q),ee=q=0,E.mode=11;case 11:if(E.havedict===0)return S.next_out=Y,S.avail_out=se,S.next_in=F,S.avail_in=J,E.hold=q,E.bits=ee,2;S.adler=E.check=1,E.mode=12;case 12:if(k===5||k===6)break e;case 13:if(E.last){q>>>=7&ee,ee-=7&ee,E.mode=27;break}for(;ee<3;){if(J===0)break e;J--,q+=I[F++]<<ee,ee+=8}switch(E.last=1&q,ee-=1,3&(q>>>=1)){case 0:E.mode=14;break;case 1:if(C(E),E.mode=20,k!==6)break;q>>>=2,ee-=2;break e;case 2:E.mode=17;break;case 3:S.msg="invalid block type",E.mode=30}q>>>=2,ee-=2;break;case 14:for(q>>>=7&ee,ee-=7&ee;ee<32;){if(J===0)break e;J--,q+=I[F++]<<ee,ee+=8}if((65535&q)!=(q>>>16^65535)){S.msg="invalid stored block lengths",E.mode=30;break}if(E.length=65535&q,ee=q=0,E.mode=15,k===6)break e;case 15:E.mode=16;case 16:if(G=E.length){if(J<G&&(G=J),se<G&&(G=se),G===0)break e;m.arraySet(D,I,F,G,Y),J-=G,F+=G,se-=G,Y+=G,E.length-=G;break}E.mode=12;break;case 17:for(;ee<14;){if(J===0)break e;J--,q+=I[F++]<<ee,ee+=8}if(E.nlen=257+(31&q),q>>>=5,ee-=5,E.ndist=1+(31&q),q>>>=5,ee-=5,E.ncode=4+(15&q),q>>>=4,ee-=4,286<E.nlen||30<E.ndist){S.msg="too many length or distance symbols",E.mode=30;break}E.have=0,E.mode=18;case 18:for(;E.have<E.ncode;){for(;ee<3;){if(J===0)break e;J--,q+=I[F++]<<ee,ee+=8}E.lens[Ae[E.have++]]=7&q,q>>>=3,ee-=3}for(;E.have<19;)E.lens[Ae[E.have++]]=0;if(E.lencode=E.lendyn,E.lenbits=7,xe={bits:E.lenbits},ke=T(0,E.lens,0,19,E.lencode,0,E.work,xe),E.lenbits=xe.bits,ke){S.msg="invalid code lengths set",E.mode=30;break}E.have=0,E.mode=19;case 19:for(;E.have<E.nlen+E.ndist;){for(;ue=(Ie=E.lencode[q&(1<<E.lenbits)-1])>>>16&255,ve=65535&Ie,!((ie=Ie>>>24)<=ee);){if(J===0)break e;J--,q+=I[F++]<<ee,ee+=8}if(ve<16)q>>>=ie,ee-=ie,E.lens[E.have++]=ve;else{if(ve===16){for(Ee=ie+2;ee<Ee;){if(J===0)break e;J--,q+=I[F++]<<ee,ee+=8}if(q>>>=ie,ee-=ie,E.have===0){S.msg="invalid bit length repeat",E.mode=30;break}ge=E.lens[E.have-1],G=3+(3&q),q>>>=2,ee-=2}else if(ve===17){for(Ee=ie+3;ee<Ee;){if(J===0)break e;J--,q+=I[F++]<<ee,ee+=8}ee-=ie,ge=0,G=3+(7&(q>>>=ie)),q>>>=3,ee-=3}else{for(Ee=ie+7;ee<Ee;){if(J===0)break e;J--,q+=I[F++]<<ee,ee+=8}ee-=ie,ge=0,G=11+(127&(q>>>=ie)),q>>>=7,ee-=7}if(E.have+G>E.nlen+E.ndist){S.msg="invalid bit length repeat",E.mode=30;break}for(;G--;)E.lens[E.have++]=ge}}if(E.mode===30)break;if(E.lens[256]===0){S.msg="invalid code -- missing end-of-block",E.mode=30;break}if(E.lenbits=9,xe={bits:E.lenbits},ke=T(1,E.lens,0,E.nlen,E.lencode,0,E.work,xe),E.lenbits=xe.bits,ke){S.msg="invalid literal/lengths set",E.mode=30;break}if(E.distbits=6,E.distcode=E.distdyn,xe={bits:E.distbits},ke=T(2,E.lens,E.nlen,E.ndist,E.distcode,0,E.work,xe),E.distbits=xe.bits,ke){S.msg="invalid distances set",E.mode=30;break}if(E.mode=20,k===6)break e;case 20:E.mode=21;case 21:if(6<=J&&258<=se){S.next_out=Y,S.avail_out=se,S.next_in=F,S.avail_in=J,E.hold=q,E.bits=ee,_(S,P),Y=S.next_out,D=S.output,se=S.avail_out,F=S.next_in,I=S.input,J=S.avail_in,q=E.hold,ee=E.bits,E.mode===12&&(E.back=-1);break}for(E.back=0;ue=(Ie=E.lencode[q&(1<<E.lenbits)-1])>>>16&255,ve=65535&Ie,!((ie=Ie>>>24)<=ee);){if(J===0)break e;J--,q+=I[F++]<<ee,ee+=8}if(ue&&!(240&ue)){for(we=ie,le=ue,me=ve;ue=(Ie=E.lencode[me+((q&(1<<we+le)-1)>>we)])>>>16&255,ve=65535&Ie,!(we+(ie=Ie>>>24)<=ee);){if(J===0)break e;J--,q+=I[F++]<<ee,ee+=8}q>>>=we,ee-=we,E.back+=we}if(q>>>=ie,ee-=ie,E.back+=ie,E.length=ve,ue===0){E.mode=26;break}if(32&ue){E.back=-1,E.mode=12;break}if(64&ue){S.msg="invalid literal/length code",E.mode=30;break}E.extra=15&ue,E.mode=22;case 22:if(E.extra){for(Ee=E.extra;ee<Ee;){if(J===0)break e;J--,q+=I[F++]<<ee,ee+=8}E.length+=q&(1<<E.extra)-1,q>>>=E.extra,ee-=E.extra,E.back+=E.extra}E.was=E.length,E.mode=23;case 23:for(;ue=(Ie=E.distcode[q&(1<<E.distbits)-1])>>>16&255,ve=65535&Ie,!((ie=Ie>>>24)<=ee);){if(J===0)break e;J--,q+=I[F++]<<ee,ee+=8}if(!(240&ue)){for(we=ie,le=ue,me=ve;ue=(Ie=E.distcode[me+((q&(1<<we+le)-1)>>we)])>>>16&255,ve=65535&Ie,!(we+(ie=Ie>>>24)<=ee);){if(J===0)break e;J--,q+=I[F++]<<ee,ee+=8}q>>>=we,ee-=we,E.back+=we}if(q>>>=ie,ee-=ie,E.back+=ie,64&ue){S.msg="invalid distance code",E.mode=30;break}E.offset=ve,E.extra=15&ue,E.mode=24;case 24:if(E.extra){for(Ee=E.extra;ee<Ee;){if(J===0)break e;J--,q+=I[F++]<<ee,ee+=8}E.offset+=q&(1<<E.extra)-1,q>>>=E.extra,ee-=E.extra,E.back+=E.extra}if(E.offset>E.dmax){S.msg="invalid distance too far back",E.mode=30;break}E.mode=25;case 25:if(se===0)break e;if(G=P-se,E.offset>G){if((G=E.offset-G)>E.whave&&E.sane){S.msg="invalid distance too far back",E.mode=30;break}ne=G>E.wnext?(G-=E.wnext,E.wsize-G):E.wnext-G,G>E.length&&(G=E.length),ce=E.window}else ce=D,ne=Y-E.offset,G=E.length;for(se<G&&(G=se),se-=G,E.length-=G;D[Y++]=ce[ne++],--G;);E.length===0&&(E.mode=21);break;case 26:if(se===0)break e;D[Y++]=E.length,se--,E.mode=21;break;case 27:if(E.wrap){for(;ee<32;){if(J===0)break e;J--,q|=I[F++]<<ee,ee+=8}if(P-=se,S.total_out+=P,E.total+=P,P&&(S.adler=E.check=E.flags?w(E.check,D,P,Y-P):b(E.check,D,P,Y-P)),P=se,(E.flags?q:j(q))!==E.check){S.msg="incorrect data check",E.mode=30;break}ee=q=0}E.mode=28;case 28:if(E.wrap&&E.flags){for(;ee<32;){if(J===0)break e;J--,q+=I[F++]<<ee,ee+=8}if(q!==(4294967295&E.total)){S.msg="incorrect length check",E.mode=30;break}ee=q=0}E.mode=29;case 29:ke=1;break e;case 30:ke=-3;break e;case 31:return-4;case 32:default:return M}return S.next_out=Y,S.avail_out=se,S.next_in=F,S.avail_in=J,E.hold=q,E.bits=ee,(E.wsize||P!==S.avail_out&&E.mode<30&&(E.mode<27||k!==4))&&x(S,S.output,S.next_out,P-S.avail_out)?(E.mode=31,-4):(L-=S.avail_in,P-=S.avail_out,S.total_in+=L,S.total_out+=P,E.total+=P,E.wrap&&P&&(S.adler=E.check=E.flags?w(E.check,D,P,S.next_out-P):b(E.check,D,P,S.next_out-P)),S.data_type=E.bits+(E.last?64:0)+(E.mode===12?128:0)+(E.mode===20||E.mode===15?256:0),(L==0&&P===0||k===4)&&ke===0&&(ke=-5),ke)},g.inflateEnd=function(S){if(!S||!S.state)return M;var k=S.state;return k.window&&(k.window=null),S.state=null,0},g.inflateGetHeader=function(S,k){var E;return S&&S.state&&2&(E=S.state).wrap?((E.head=k).done=!1,0):M},g.inflateSetDictionary=function(S,k){var E,I=k.length;return S&&S.state?(E=S.state).wrap!==0&&E.mode!==11?M:E.mode===11&&b(1,k,I,0)!==E.check?-3:x(S,k,I,I)?(E.mode=31,-4):(E.havedict=1,0):M},g.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(f,p,g){var m=f("../utils/common"),b=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],w=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],_=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],T=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];p.exports=function(M,j,A,B,H,U,X,V){var O,N,C,x,S,k,E,I,D,F=V.bits,Y=0,J=0,se=0,q=0,ee=0,L=0,P=0,G=0,ne=0,ce=0,ie=null,ue=0,ve=new m.Buf16(16),we=new m.Buf16(16),le=null,me=0;for(Y=0;Y<=15;Y++)ve[Y]=0;for(J=0;J<B;J++)ve[j[A+J]]++;for(ee=F,q=15;1<=q&&ve[q]===0;q--);if(q<ee&&(ee=q),q===0)return H[U++]=20971520,H[U++]=20971520,V.bits=1,0;for(se=1;se<q&&ve[se]===0;se++);for(ee<se&&(ee=se),Y=G=1;Y<=15;Y++)if(G<<=1,(G-=ve[Y])<0)return-1;if(0<G&&(M===0||q!==1))return-1;for(we[1]=0,Y=1;Y<15;Y++)we[Y+1]=we[Y]+ve[Y];for(J=0;J<B;J++)j[A+J]!==0&&(X[we[j[A+J]]++]=J);if(k=M===0?(ie=le=X,19):M===1?(ie=b,ue-=257,le=w,me-=257,256):(ie=_,le=T,-1),Y=se,S=U,P=J=ce=0,C=-1,x=(ne=1<<(L=ee))-1,M===1&&852<ne||M===2&&592<ne)return 1;for(;;){for(E=Y-P,D=X[J]<k?(I=0,X[J]):X[J]>k?(I=le[me+X[J]],ie[ue+X[J]]):(I=96,0),O=1<<Y-P,se=N=1<<L;H[S+(ce>>P)+(N-=O)]=E<<24|I<<16|D|0,N!==0;);for(O=1<<Y-1;ce&O;)O>>=1;if(O!==0?(ce&=O-1,ce+=O):ce=0,J++,--ve[Y]==0){if(Y===q)break;Y=j[A+X[J]]}if(ee<Y&&(ce&x)!==C){for(P===0&&(P=ee),S+=se,G=1<<(L=Y-P);L+P<q&&!((G-=ve[L+P])<=0);)L++,G<<=1;if(ne+=1<<L,M===1&&852<ne||M===2&&592<ne)return 1;H[C=ce&x]=ee<<24|L<<16|S-U|0}}return ce!==0&&(H[S+ce]=Y-P<<24|64<<16|0),V.bits=ee,0}},{"../utils/common":41}],51:[function(f,p,g){p.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(f,p,g){var m=f("../utils/common");function b(le){for(var me=le.length;0<=--me;)le[me]=0}var w=256,_=286,T=30,M=15,j=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],A=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],B=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],H=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],U=new Array(576);b(U);var X=new Array(60);b(X);var V=new Array(512);b(V);var O=new Array(256);b(O);var N=new Array(29);b(N);var C,x,S,k=new Array(T);function E(le,me,ge,ke,xe){this.static_tree=le,this.extra_bits=me,this.extra_base=ge,this.elems=ke,this.max_length=xe,this.has_stree=le&&le.length}function I(le,me){this.dyn_tree=le,this.max_code=0,this.stat_desc=me}function D(le){return le<256?V[le]:V[256+(le>>>7)]}function F(le,me){le.pending_buf[le.pending++]=255&me,le.pending_buf[le.pending++]=me>>>8&255}function Y(le,me,ge){le.bi_valid>16-ge?(le.bi_buf|=me<<le.bi_valid&65535,F(le,le.bi_buf),le.bi_buf=me>>16-le.bi_valid,le.bi_valid+=ge-16):(le.bi_buf|=me<<le.bi_valid&65535,le.bi_valid+=ge)}function J(le,me,ge){Y(le,ge[2*me],ge[2*me+1])}function se(le,me){for(var ge=0;ge|=1&le,le>>>=1,ge<<=1,0<--me;);return ge>>>1}function q(le,me,ge){var ke,xe,Ee=new Array(16),Ie=0;for(ke=1;ke<=M;ke++)Ee[ke]=Ie=Ie+ge[ke-1]<<1;for(xe=0;xe<=me;xe++){var Pe=le[2*xe+1];Pe!==0&&(le[2*xe]=se(Ee[Pe]++,Pe))}}function ee(le){var me;for(me=0;me<_;me++)le.dyn_ltree[2*me]=0;for(me=0;me<T;me++)le.dyn_dtree[2*me]=0;for(me=0;me<19;me++)le.bl_tree[2*me]=0;le.dyn_ltree[512]=1,le.opt_len=le.static_len=0,le.last_lit=le.matches=0}function L(le){8<le.bi_valid?F(le,le.bi_buf):0<le.bi_valid&&(le.pending_buf[le.pending++]=le.bi_buf),le.bi_buf=0,le.bi_valid=0}function P(le,me,ge,ke){var xe=2*me,Ee=2*ge;return le[xe]<le[Ee]||le[xe]===le[Ee]&&ke[me]<=ke[ge]}function G(le,me,ge){for(var ke=le.heap[ge],xe=ge<<1;xe<=le.heap_len&&(xe<le.heap_len&&P(me,le.heap[xe+1],le.heap[xe],le.depth)&&xe++,!P(me,ke,le.heap[xe],le.depth));)le.heap[ge]=le.heap[xe],ge=xe,xe<<=1;le.heap[ge]=ke}function ne(le,me,ge){var ke,xe,Ee,Ie,Pe=0;if(le.last_lit!==0)for(;ke=le.pending_buf[le.d_buf+2*Pe]<<8|le.pending_buf[le.d_buf+2*Pe+1],xe=le.pending_buf[le.l_buf+Pe],Pe++,ke===0?J(le,xe,me):(J(le,(Ee=O[xe])+w+1,me),(Ie=j[Ee])!==0&&Y(le,xe-=N[Ee],Ie),J(le,Ee=D(--ke),ge),(Ie=A[Ee])!==0&&Y(le,ke-=k[Ee],Ie)),Pe<le.last_lit;);J(le,256,me)}function ce(le,me){var ge,ke,xe,Ee=me.dyn_tree,Ie=me.stat_desc.static_tree,Pe=me.stat_desc.has_stree,Ae=me.stat_desc.elems,Ge=-1;for(le.heap_len=0,le.heap_max=573,ge=0;ge<Ae;ge++)Ee[2*ge]!==0?(le.heap[++le.heap_len]=Ge=ge,le.depth[ge]=0):Ee[2*ge+1]=0;for(;le.heap_len<2;)Ee[2*(xe=le.heap[++le.heap_len]=Ge<2?++Ge:0)]=1,le.depth[xe]=0,le.opt_len--,Pe&&(le.static_len-=Ie[2*xe+1]);for(me.max_code=Ge,ge=le.heap_len>>1;1<=ge;ge--)G(le,Ee,ge);for(xe=Ae;ge=le.heap[1],le.heap[1]=le.heap[le.heap_len--],G(le,Ee,1),ke=le.heap[1],le.heap[--le.heap_max]=ge,le.heap[--le.heap_max]=ke,Ee[2*xe]=Ee[2*ge]+Ee[2*ke],le.depth[xe]=(le.depth[ge]>=le.depth[ke]?le.depth[ge]:le.depth[ke])+1,Ee[2*ge+1]=Ee[2*ke+1]=xe,le.heap[1]=xe++,G(le,Ee,1),2<=le.heap_len;);le.heap[--le.heap_max]=le.heap[1],function(st,et){var Rt,_t,xt,yt,Qe,Ve,it=et.dyn_tree,wt=et.max_code,ct=et.stat_desc.static_tree,dr=et.stat_desc.has_stree,Or=et.stat_desc.extra_bits,Pt=et.stat_desc.extra_base,hr=et.stat_desc.max_length,sr=0;for(yt=0;yt<=M;yt++)st.bl_count[yt]=0;for(it[2*st.heap[st.heap_max]+1]=0,Rt=st.heap_max+1;Rt<573;Rt++)hr<(yt=it[2*it[2*(_t=st.heap[Rt])+1]+1]+1)&&(yt=hr,sr++),it[2*_t+1]=yt,wt<_t||(st.bl_count[yt]++,Qe=0,Pt<=_t&&(Qe=Or[_t-Pt]),Ve=it[2*_t],st.opt_len+=Ve*(yt+Qe),dr&&(st.static_len+=Ve*(ct[2*_t+1]+Qe)));if(sr!==0){do{for(yt=hr-1;st.bl_count[yt]===0;)yt--;st.bl_count[yt]--,st.bl_count[yt+1]+=2,st.bl_count[hr]--,sr-=2}while(0<sr);for(yt=hr;yt!==0;yt--)for(_t=st.bl_count[yt];_t!==0;)wt<(xt=st.heap[--Rt])||(it[2*xt+1]!==yt&&(st.opt_len+=(yt-it[2*xt+1])*it[2*xt],it[2*xt+1]=yt),_t--)}}(le,me),q(Ee,Ge,le.bl_count)}function ie(le,me,ge){var ke,xe,Ee=-1,Ie=me[1],Pe=0,Ae=7,Ge=4;for(Ie===0&&(Ae=138,Ge=3),me[2*(ge+1)+1]=65535,ke=0;ke<=ge;ke++)xe=Ie,Ie=me[2*(ke+1)+1],++Pe<Ae&&xe===Ie||(Pe<Ge?le.bl_tree[2*xe]+=Pe:xe!==0?(xe!==Ee&&le.bl_tree[2*xe]++,le.bl_tree[32]++):Pe<=10?le.bl_tree[34]++:le.bl_tree[36]++,Ee=xe,Ge=(Pe=0)===Ie?(Ae=138,3):xe===Ie?(Ae=6,3):(Ae=7,4))}function ue(le,me,ge){var ke,xe,Ee=-1,Ie=me[1],Pe=0,Ae=7,Ge=4;for(Ie===0&&(Ae=138,Ge=3),ke=0;ke<=ge;ke++)if(xe=Ie,Ie=me[2*(ke+1)+1],!(++Pe<Ae&&xe===Ie)){if(Pe<Ge)for(;J(le,xe,le.bl_tree),--Pe!=0;);else xe!==0?(xe!==Ee&&(J(le,xe,le.bl_tree),Pe--),J(le,16,le.bl_tree),Y(le,Pe-3,2)):Pe<=10?(J(le,17,le.bl_tree),Y(le,Pe-3,3)):(J(le,18,le.bl_tree),Y(le,Pe-11,7));Ee=xe,Ge=(Pe=0)===Ie?(Ae=138,3):xe===Ie?(Ae=6,3):(Ae=7,4)}}b(k);var ve=!1;function we(le,me,ge,ke){Y(le,0+(ke?1:0),3),function(xe,Ee,Ie,Pe){L(xe),F(xe,Ie),F(xe,~Ie),m.arraySet(xe.pending_buf,xe.window,Ee,Ie,xe.pending),xe.pending+=Ie}(le,me,ge)}g._tr_init=function(le){ve||(function(){var me,ge,ke,xe,Ee,Ie=new Array(16);for(xe=ke=0;xe<28;xe++)for(N[xe]=ke,me=0;me<1<<j[xe];me++)O[ke++]=xe;for(O[ke-1]=xe,xe=Ee=0;xe<16;xe++)for(k[xe]=Ee,me=0;me<1<<A[xe];me++)V[Ee++]=xe;for(Ee>>=7;xe<T;xe++)for(k[xe]=Ee<<7,me=0;me<1<<A[xe]-7;me++)V[256+Ee++]=xe;for(ge=0;ge<=M;ge++)Ie[ge]=0;for(me=0;me<=143;)U[2*me+1]=8,me++,Ie[8]++;for(;me<=255;)U[2*me+1]=9,me++,Ie[9]++;for(;me<=279;)U[2*me+1]=7,me++,Ie[7]++;for(;me<=287;)U[2*me+1]=8,me++,Ie[8]++;for(q(U,287,Ie),me=0;me<T;me++)X[2*me+1]=5,X[2*me]=se(me,5);C=new E(U,j,257,_,M),x=new E(X,A,0,T,M),S=new E(new Array(0),B,0,19,7)}(),ve=!0),le.l_desc=new I(le.dyn_ltree,C),le.d_desc=new I(le.dyn_dtree,x),le.bl_desc=new I(le.bl_tree,S),le.bi_buf=0,le.bi_valid=0,ee(le)},g._tr_stored_block=we,g._tr_flush_block=function(le,me,ge,ke){var xe,Ee,Ie=0;0<le.level?(le.strm.data_type===2&&(le.strm.data_type=function(Pe){var Ae,Ge=4093624447;for(Ae=0;Ae<=31;Ae++,Ge>>>=1)if(1&Ge&&Pe.dyn_ltree[2*Ae]!==0)return 0;if(Pe.dyn_ltree[18]!==0||Pe.dyn_ltree[20]!==0||Pe.dyn_ltree[26]!==0)return 1;for(Ae=32;Ae<w;Ae++)if(Pe.dyn_ltree[2*Ae]!==0)return 1;return 0}(le)),ce(le,le.l_desc),ce(le,le.d_desc),Ie=function(Pe){var Ae;for(ie(Pe,Pe.dyn_ltree,Pe.l_desc.max_code),ie(Pe,Pe.dyn_dtree,Pe.d_desc.max_code),ce(Pe,Pe.bl_desc),Ae=18;3<=Ae&&Pe.bl_tree[2*H[Ae]+1]===0;Ae--);return Pe.opt_len+=3*(Ae+1)+5+5+4,Ae}(le),xe=le.opt_len+3+7>>>3,(Ee=le.static_len+3+7>>>3)<=xe&&(xe=Ee)):xe=Ee=ge+5,ge+4<=xe&&me!==-1?we(le,me,ge,ke):le.strategy===4||Ee===xe?(Y(le,2+(ke?1:0),3),ne(le,U,X)):(Y(le,4+(ke?1:0),3),function(Pe,Ae,Ge,st){var et;for(Y(Pe,Ae-257,5),Y(Pe,Ge-1,5),Y(Pe,st-4,4),et=0;et<st;et++)Y(Pe,Pe.bl_tree[2*H[et]+1],3);ue(Pe,Pe.dyn_ltree,Ae-1),ue(Pe,Pe.dyn_dtree,Ge-1)}(le,le.l_desc.max_code+1,le.d_desc.max_code+1,Ie+1),ne(le,le.dyn_ltree,le.dyn_dtree)),ee(le),ke&&L(le)},g._tr_tally=function(le,me,ge){return le.pending_buf[le.d_buf+2*le.last_lit]=me>>>8&255,le.pending_buf[le.d_buf+2*le.last_lit+1]=255&me,le.pending_buf[le.l_buf+le.last_lit]=255&ge,le.last_lit++,me===0?le.dyn_ltree[2*ge]++:(le.matches++,me--,le.dyn_ltree[2*(O[ge]+w+1)]++,le.dyn_dtree[2*D(me)]++),le.last_lit===le.lit_bufsize-1},g._tr_align=function(le){Y(le,2,3),J(le,256,U),function(me){me.bi_valid===16?(F(me,me.bi_buf),me.bi_buf=0,me.bi_valid=0):8<=me.bi_valid&&(me.pending_buf[me.pending++]=255&me.bi_buf,me.bi_buf>>=8,me.bi_valid-=8)}(le)}},{"../utils/common":41}],53:[function(f,p,g){p.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(f,p,g){(function(m){(function(b,w){if(!b.setImmediate){var _,T,M,j,A=1,B={},H=!1,U=b.document,X=Object.getPrototypeOf&&Object.getPrototypeOf(b);X=X&&X.setTimeout?X:b,_={}.toString.call(b.process)==="[object process]"?function(C){i.nextTick(function(){O(C)})}:function(){if(b.postMessage&&!b.importScripts){var C=!0,x=b.onmessage;return b.onmessage=function(){C=!1},b.postMessage("","*"),b.onmessage=x,C}}()?(j="setImmediate$"+Math.random()+"$",b.addEventListener?b.addEventListener("message",N,!1):b.attachEvent("onmessage",N),function(C){b.postMessage(j+C,"*")}):b.MessageChannel?((M=new MessageChannel).port1.onmessage=function(C){O(C.data)},function(C){M.port2.postMessage(C)}):U&&"onreadystatechange"in U.createElement("script")?(T=U.documentElement,function(C){var x=U.createElement("script");x.onreadystatechange=function(){O(C),x.onreadystatechange=null,T.removeChild(x),x=null},T.appendChild(x)}):function(C){setTimeout(O,0,C)},X.setImmediate=function(C){typeof C!="function"&&(C=new Function(""+C));for(var x=new Array(arguments.length-1),S=0;S<x.length;S++)x[S]=arguments[S+1];var k={callback:C,args:x};return B[A]=k,_(A),A++},X.clearImmediate=V}function V(C){delete B[C]}function O(C){if(H)setTimeout(O,0,C);else{var x=B[C];if(x){H=!0;try{(function(S){var k=S.callback,E=S.args;switch(E.length){case 0:k();break;case 1:k(E[0]);break;case 2:k(E[0],E[1]);break;case 3:k(E[0],E[1],E[2]);break;default:k.apply(void 0,E)}})(x)}finally{V(C),H=!1}}}}function N(C){C.source===b&&typeof C.data=="string"&&C.data.indexOf(j)===0&&O(+C.data.slice(j.length))}})(typeof self>"u"?m===void 0?this:m:self)}).call(this,a!==void 0?a:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})}).call(this)}).call(this,e("_process"),typeof _r<"u"?_r:typeof self<"u"?self:typeof window<"u"?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],e("timers").setImmediate)},{_process:467,buffer:220,timers:523}],442:[function(e,r,s){(function(i){(function(){var a=/[\\^$.*+?()[\]{}|]/g,o=RegExp(a.source),l=typeof i=="object"&&i&&i.Object===Object&&i,c=typeof self=="object"&&self&&self.Object===Object&&self,u=l||c||Function("return this")(),h=Object.prototype.toString,d=u.Symbol,f=d?d.prototype:void 0,p=f?f.toString:void 0;function g(m){if(typeof m=="string")return m;if(function(w){return typeof w=="symbol"||function(_){return!!_&&typeof _=="object"}(w)&&h.call(w)=="[object Symbol]"}(m))return p?p.call(m):"";var b=m+"";return b=="0"&&1/m==-1/0?"-0":b}r.exports=function(m){var b;return(m=(b=m)==null?"":g(b))&&o.test(m)?m.replace(a,"\\$&"):m}}).call(this)}).call(this,typeof _r<"u"?_r:typeof self<"u"?self:typeof window<"u"?window:{})},{}],443:[function(e,r,s){(function(i){(function(){var a="[object Arguments]",o="[object Map]",l="[object Object]",c="[object Set]",u=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,h=/^\w*$/,d=/^\./,f=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,p=/\\(\\)?/g,g=/^\[object .+?Constructor\]$/,m=/^(?:0|[1-9]\d*)$/,b={};b["[object Float32Array]"]=b["[object Float64Array]"]=b["[object Int8Array]"]=b["[object Int16Array]"]=b["[object Int32Array]"]=b["[object Uint8Array]"]=b["[object Uint8ClampedArray]"]=b["[object Uint16Array]"]=b["[object Uint32Array]"]=!0,b[a]=b["[object Array]"]=b["[object ArrayBuffer]"]=b["[object Boolean]"]=b["[object DataView]"]=b["[object Date]"]=b["[object Error]"]=b["[object Function]"]=b[o]=b["[object Number]"]=b[l]=b["[object RegExp]"]=b[c]=b["[object String]"]=b["[object WeakMap]"]=!1;var w=typeof i=="object"&&i&&i.Object===Object&&i,_=typeof self=="object"&&self&&self.Object===Object&&self,T=w||_||Function("return this")(),M=typeof s=="object"&&s&&!s.nodeType&&s,j=M&&typeof r=="object"&&r&&!r.nodeType&&r,A=j&&j.exports===M&&w.process,B=function(){try{return A&&A.binding("util")}catch{}}(),H=B&&B.isTypedArray;function U(he,Te,ze,qe){for(var mt=-1,Ye=he?he.length:0;++mt<Ye;){var Ze=he[mt];Te(qe,Ze,ze(Ze),he)}return qe}function X(he,Te){for(var ze=-1,qe=he?he.length:0;++ze<qe;)if(Te(he[ze],ze,he))return!0;return!1}function V(he){var Te=!1;if(he!=null&&typeof he.toString!="function")try{Te=!!(he+"")}catch{}return Te}function O(he){var Te=-1,ze=Array(he.size);return he.forEach(function(qe,mt){ze[++Te]=[mt,qe]}),ze}function N(he){var Te=-1,ze=Array(he.size);return he.forEach(function(qe){ze[++Te]=qe}),ze}var C,x,S,k=Array.prototype,E=Function.prototype,I=Object.prototype,D=T["__core-js_shared__"],F=(C=/[^.]+$/.exec(D&&D.keys&&D.keys.IE_PROTO||""))?"Symbol(src)_1."+C:"",Y=E.toString,J=I.hasOwnProperty,se=I.toString,q=RegExp("^"+Y.call(J).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ee=T.Symbol,L=T.Uint8Array,P=I.propertyIsEnumerable,G=k.splice,ne=(x=Object.keys,S=Object,function(he){return x(S(he))}),ce=pt(T,"DataView"),ie=pt(T,"Map"),ue=pt(T,"Promise"),ve=pt(T,"Set"),we=pt(T,"WeakMap"),le=pt(Object,"create"),me=Ce(ce),ge=Ce(ie),ke=Ce(ue),xe=Ce(ve),Ee=Ce(we),Ie=ee?ee.prototype:void 0,Pe=Ie?Ie.valueOf:void 0,Ae=Ie?Ie.toString:void 0;function Ge(he){var Te=-1,ze=he?he.length:0;for(this.clear();++Te<ze;){var qe=he[Te];this.set(qe[0],qe[1])}}function st(he){var Te=-1,ze=he?he.length:0;for(this.clear();++Te<ze;){var qe=he[Te];this.set(qe[0],qe[1])}}function et(he){var Te=-1,ze=he?he.length:0;for(this.clear();++Te<ze;){var qe=he[Te];this.set(qe[0],qe[1])}}function Rt(he){var Te=-1,ze=he?he.length:0;for(this.__data__=new et;++Te<ze;)this.add(he[Te])}function _t(he){this.__data__=new st(he)}function xt(he,Te){var ze=Dt(he)||Vt(he)?function(Ze,vr){for(var ir=-1,lr=Array(Ze);++ir<Ze;)lr[ir]=vr(ir);return lr}(he.length,String):[],qe=ze.length,mt=!!qe;for(var Ye in he)!J.call(he,Ye)||mt&&(Ye=="length"||qr(Ye,qe))||ze.push(Ye);return ze}function yt(he,Te){for(var ze=he.length;ze--;)if(rt(he[ze][0],Te))return ze;return-1}function Qe(he,Te,ze,qe){return it(he,function(mt,Ye,Ze){Te(qe,mt,ze(mt),Ze)}),qe}Ge.prototype.clear=function(){this.__data__=le?le(null):{}},Ge.prototype.delete=function(he){return this.has(he)&&delete this.__data__[he]},Ge.prototype.get=function(he){var Te=this.__data__;if(le){var ze=Te[he];return ze==="__lodash_hash_undefined__"?void 0:ze}return J.call(Te,he)?Te[he]:void 0},Ge.prototype.has=function(he){var Te=this.__data__;return le?Te[he]!==void 0:J.call(Te,he)},Ge.prototype.set=function(he,Te){return this.__data__[he]=le&&Te===void 0?"__lodash_hash_undefined__":Te,this},st.prototype.clear=function(){this.__data__=[]},st.prototype.delete=function(he){var Te=this.__data__,ze=yt(Te,he);return!(ze<0)&&(ze==Te.length-1?Te.pop():G.call(Te,ze,1),!0)},st.prototype.get=function(he){var Te=this.__data__,ze=yt(Te,he);return ze<0?void 0:Te[ze][1]},st.prototype.has=function(he){return yt(this.__data__,he)>-1},st.prototype.set=function(he,Te){var ze=this.__data__,qe=yt(ze,he);return qe<0?ze.push([he,Te]):ze[qe][1]=Te,this},et.prototype.clear=function(){this.__data__={hash:new Ge,map:new(ie||st),string:new Ge}},et.prototype.delete=function(he){return Qt(this,he).delete(he)},et.prototype.get=function(he){return Qt(this,he).get(he)},et.prototype.has=function(he){return Qt(this,he).has(he)},et.prototype.set=function(he,Te){return Qt(this,he).set(he,Te),this},Rt.prototype.add=Rt.prototype.push=function(he){return this.__data__.set(he,"__lodash_hash_undefined__"),this},Rt.prototype.has=function(he){return this.__data__.has(he)},_t.prototype.clear=function(){this.__data__=new st},_t.prototype.delete=function(he){return this.__data__.delete(he)},_t.prototype.get=function(he){return this.__data__.get(he)},_t.prototype.has=function(he){return this.__data__.has(he)},_t.prototype.set=function(he,Te){var ze=this.__data__;if(ze instanceof st){var qe=ze.__data__;if(!ie||qe.length<199)return qe.push([he,Te]),this;ze=this.__data__=new et(qe)}return ze.set(he,Te),this};var Ve,it=(Ve=function(he,Te){return he&&wt(he,Te,vn)},function(he,Te){if(he==null)return he;if(!Et(he))return Ve(he,Te);for(var ze=he.length,qe=-1,mt=Object(he);++qe<ze&&Te(mt[qe],qe,mt)!==!1;);return he}),wt=function(he){return function(Te,ze,qe){for(var mt=-1,Ye=Object(Te),Ze=qe(Te),vr=Ze.length;vr--;){var ir=Ze[++mt];if(ze(Ye[ir],ir,Ye)===!1)break}return Te}}();function ct(he,Te){for(var ze=0,qe=(Te=Ht(Te,he)?[Te]:Wt(Te)).length;he!=null&&ze<qe;)he=he[ye(Te[ze++])];return ze&&ze==qe?he:void 0}function dr(he,Te){return he!=null&&Te in Object(he)}function Or(he,Te,ze,qe,mt){return he===Te||(he==null||Te==null||!or(he)&&!an(Te)?he!=he&&Te!=Te:function(Ye,Ze,vr,ir,lr,Lt){var Mr=Dt(Ye),Lr=Dt(Ze),ar="[object Array]",Gr="[object Array]";Mr||(ar=(ar=gr(Ye))==a?l:ar),Lr||(Gr=(Gr=gr(Ze))==a?l:Gr);var gn=ar==l&&!V(Ye),ps=Gr==l&&!V(Ze),$i=ar==Gr;if($i&&!gn)return Lt||(Lt=new _t),Mr||hn(Ye)?Hr(Ye,Ze,vr,ir,lr,Lt):function(Fr,Cr,Pn,ao,oo,zs,Aa){switch(Pn){case"[object DataView]":if(Fr.byteLength!=Cr.byteLength||Fr.byteOffset!=Cr.byteOffset)return!1;Fr=Fr.buffer,Cr=Cr.buffer;case"[object ArrayBuffer]":return!(Fr.byteLength!=Cr.byteLength||!ao(new L(Fr),new L(Cr)));case"[object Boolean]":case"[object Date]":case"[object Number]":return rt(+Fr,+Cr);case"[object Error]":return Fr.name==Cr.name&&Fr.message==Cr.message;case"[object RegExp]":case"[object String]":return Fr==Cr+"";case o:var Ts=O;case c:var Li=2&zs;if(Ts||(Ts=N),Fr.size!=Cr.size&&!Li)return!1;var gc=Aa.get(Fr);if(gc)return gc==Cr;zs|=1,Aa.set(Fr,Cr);var bc=Hr(Ts(Fr),Ts(Cr),ao,oo,zs,Aa);return Aa.delete(Fr),bc;case"[object Symbol]":if(Pe)return Pe.call(Fr)==Pe.call(Cr)}return!1}(Ye,Ze,ar,vr,ir,lr,Lt);if(!(2&lr)){var Ca=gn&&J.call(Ye,"__wrapped__"),Zo=ps&&J.call(Ze,"__wrapped__");if(Ca||Zo){var Ta=Ca?Ye.value():Ye,Qo=Zo?Ze.value():Ze;return Lt||(Lt=new _t),vr(Ta,Qo,ir,lr,Lt)}}return $i?(Lt||(Lt=new _t),function(Fr,Cr,Pn,ao,oo,zs){var Aa=2&oo,Ts=vn(Fr),Li=Ts.length,gc=vn(Cr).length;if(Li!=gc&&!Aa)return!1;for(var bc=Li;bc--;){var li=Ts[bc];if(!(Aa?li in Cr:J.call(Cr,li)))return!1}var Zb=zs.get(Fr);if(Zb&&zs.get(Cr))return Zb==Cr;var yc=!0;zs.set(Fr,Cr),zs.set(Cr,Fr);for(var cf=Aa;++bc<Li;){li=Ts[bc];var Fu=Fr[li],uf=Cr[li];if(ao)var Qb=Aa?ao(uf,Fu,li,Cr,Fr,zs):ao(Fu,uf,li,Fr,Cr,zs);if(!(Qb===void 0?Fu===uf||Pn(Fu,uf,ao,oo,zs):Qb)){yc=!1;break}cf||(cf=li=="constructor")}if(yc&&!cf){var df=Fr.constructor,hf=Cr.constructor;df==hf||!("constructor"in Fr)||!("constructor"in Cr)||typeof df=="function"&&df instanceof df&&typeof hf=="function"&&hf instanceof hf||(yc=!1)}return zs.delete(Fr),zs.delete(Cr),yc}(Ye,Ze,vr,ir,lr,Lt)):!1}(he,Te,Or,ze,qe,mt))}function Pt(he){return!(!or(he)||function(Te){return!!F&&F in Te}(he))&&(Xt(he)||V(he)?q:g).test(Ce(he))}function hr(he){return typeof he=="function"?he:he==null?Cs:typeof he=="object"?Dt(he)?function(qe,mt){return Ht(qe)&&Rr(mt)?Er(ye(qe),mt):function(Ye){var Ze=function(vr,ir,lr){var Lt=vr==null?void 0:ct(vr,ir);return Lt===void 0?lr:Lt}(Ye,qe);return Ze===void 0&&Ze===mt?function(vr,ir){return vr!=null&&function(lr,Lt,Mr){Lt=Ht(Lt,lr)?[Lt]:Wt(Lt);for(var Lr,ar=-1,Gr=Lt.length;++ar<Gr;){var gn=ye(Lt[ar]);if(!(Lr=lr!=null&&Mr(lr,gn)))break;lr=lr[gn]}return Lr||!!(Gr=lr?lr.length:0)&&Bt(Gr)&&qr(gn,Gr)&&(Dt(lr)||Vt(lr))}(vr,ir,dr)}(Ye,qe):Or(mt,Ze,void 0,3)}}(he[0],he[1]):function(qe){var mt=function(Ye){for(var Ze=vn(Ye),vr=Ze.length;vr--;){var ir=Ze[vr],lr=Ye[ir];Ze[vr]=[ir,lr,Rr(lr)]}return Ze}(qe);return mt.length==1&&mt[0][2]?Er(mt[0][0],mt[0][1]):function(Ye){return Ye===qe||function(Ze,vr,ir,lr){var Lt=ir.length,Mr=Lt;if(Ze==null)return!Mr;for(Ze=Object(Ze);Lt--;){var Lr=ir[Lt];if(Lr[2]?Lr[1]!==Ze[Lr[0]]:!(Lr[0]in Ze))return!1}for(;++Lt<Mr;){var ar=(Lr=ir[Lt])[0],Gr=Ze[ar],gn=Lr[1];if(Lr[2]){if(Gr===void 0&&!(ar in Ze))return!1}else{var ps=new _t,$i;if(!($i===void 0?Or(gn,Gr,lr,3,ps):$i))return!1}}return!0}(Ye,qe,mt)}}(he):Ht(Te=he)?(ze=ye(Te),function(qe){return qe==null?void 0:qe[ze]}):function(qe){return function(mt){return ct(mt,qe)}}(Te);var Te,ze}function sr(he){if(ze=(Te=he)&&Te.constructor,qe=typeof ze=="function"&&ze.prototype||I,Te!==qe)return ne(he);var Te,ze,qe,mt=[];for(var Ye in Object(he))J.call(he,Ye)&&Ye!="constructor"&&mt.push(Ye);return mt}function Wt(he){return Dt(he)?he:qt(he)}function Hr(he,Te,ze,qe,mt,Ye){var Ze=2&mt,vr=he.length,ir=Te.length;if(vr!=ir&&!(Ze&&ir>vr))return!1;var lr=Ye.get(he);if(lr&&Ye.get(Te))return lr==Te;var Lt=-1,Mr=!0,Lr=1&mt?new Rt:void 0;for(Ye.set(he,Te),Ye.set(Te,he);++Lt<vr;){var ar=he[Lt],Gr=Te[Lt];if(qe)var gn=Ze?qe(Gr,ar,Lt,Te,he,Ye):qe(ar,Gr,Lt,he,Te,Ye);if(gn!==void 0){if(gn)continue;Mr=!1;break}if(Lr){if(!X(Te,function(ps,$i){if(!Lr.has($i)&&(ar===ps||ze(ar,ps,qe,mt,Ye)))return Lr.add($i)})){Mr=!1;break}}else if(ar!==Gr&&!ze(ar,Gr,qe,mt,Ye)){Mr=!1;break}}return Ye.delete(he),Ye.delete(Te),Mr}function Qt(he,Te){var ze,qe,mt=he.__data__;return((qe=typeof(ze=Te))=="string"||qe=="number"||qe=="symbol"||qe=="boolean"?ze!=="__proto__":ze===null)?mt[typeof Te=="string"?"string":"hash"]:mt.map}function pt(he,Te){var ze=function(qe,mt){return qe==null?void 0:qe[mt]}(he,Te);return Pt(ze)?ze:void 0}var gr=function(he){return se.call(he)};function qr(he,Te){return!!(Te=Te??9007199254740991)&&(typeof he=="number"||m.test(he))&&he>-1&&he%1==0&&he<Te}function Ht(he,Te){if(Dt(he))return!1;var ze=typeof he;return!(ze!="number"&&ze!="symbol"&&ze!="boolean"&&he!=null&&!Ur(he))||h.test(he)||!u.test(he)||Te!=null&&he in Object(Te)}function Rr(he){return he==he&&!or(he)}function Er(he,Te){return function(ze){return ze!=null&&ze[he]===Te&&(Te!==void 0||he in Object(ze))}}(ce&&gr(new ce(new ArrayBuffer(1)))!="[object DataView]"||ie&&gr(new ie)!=o||ue&&gr(ue.resolve())!="[object Promise]"||ve&&gr(new ve)!=c||we&&gr(new we)!="[object WeakMap]")&&(gr=function(he){var Te=se.call(he),ze=Te==l?he.constructor:void 0,qe=ze?Ce(ze):void 0;if(qe)switch(qe){case me:return"[object DataView]";case ge:return o;case ke:return"[object Promise]";case xe:return c;case Ee:return"[object WeakMap]"}return Te});var qt=jt(function(he){var Te;he=(Te=he)==null?"":function(qe){if(typeof qe=="string")return qe;if(Ur(qe))return Ae?Ae.call(qe):"";var mt=qe+"";return mt=="0"&&1/qe==-1/0?"-0":mt}(Te);var ze=[];return d.test(he)&&ze.push(""),he.replace(f,function(qe,mt,Ye,Ze){ze.push(Ye?Ze.replace(p,"$1"):mt||qe)}),ze});function ye(he){if(typeof he=="string"||Ur(he))return he;var Te=he+"";return Te=="0"&&1/he==-1/0?"-0":Te}function Ce(he){if(he!=null){try{return Y.call(he)}catch{}try{return he+""}catch{}}return""}var Le,tt=(Le=function(he,Te,ze){J.call(he,ze)?he[ze].push(Te):he[ze]=[Te]},function(he,Te){var ze=Dt(he)?U:Qe,qe={};return ze(he,Le,hr(Te),qe)});function jt(he,Te){if(typeof he!="function"||Te&&typeof Te!="function")throw new TypeError("Expected a function");var ze=function(){var qe=arguments,mt=Te?Te.apply(this,qe):qe[0],Ye=ze.cache;if(Ye.has(mt))return Ye.get(mt);var Ze=he.apply(this,qe);return ze.cache=Ye.set(mt,Ze),Ze};return ze.cache=new(jt.Cache||et),ze}function rt(he,Te){return he===Te||he!=he&&Te!=Te}function Vt(he){return function(Te){return an(Te)&&Et(Te)}(he)&&J.call(he,"callee")&&(!P.call(he,"callee")||se.call(he)==a)}jt.Cache=et;var Dt=Array.isArray;function Et(he){return he!=null&&Bt(he.length)&&!Xt(he)}function Xt(he){var Te=or(he)?se.call(he):"";return Te=="[object Function]"||Te=="[object GeneratorFunction]"}function Bt(he){return typeof he=="number"&&he>-1&&he%1==0&&he<=9007199254740991}function or(he){var Te=typeof he;return!!he&&(Te=="object"||Te=="function")}function an(he){return!!he&&typeof he=="object"}function Ur(he){return typeof he=="symbol"||an(he)&&se.call(he)=="[object Symbol]"}var hn=H?function(he){return function(Te){return he(Te)}}(H):function(he){return an(he)&&Bt(he.length)&&!!b[se.call(he)]};function vn(he){return Et(he)?xt(he):sr(he)}function Cs(he){return he}r.exports=tt}).call(this)}).call(this,typeof _r<"u"?_r:typeof self<"u"?self:typeof window<"u"?window:{})},{}],444:[function(e,r,s){var i=Object.prototype.toString;r.exports=function(a){return a===!0||a===!1||function(o){return!!o&&typeof o=="object"}(a)&&i.call(a)=="[object Boolean]"}},{}],445:[function(e,r,s){(function(i){(function(){var a="[object Arguments]",o="[object Map]",l="[object Object]",c="[object Set]",u=/^\[object .+?Constructor\]$/,h=/^(?:0|[1-9]\d*)$/,d={};d["[object Float32Array]"]=d["[object Float64Array]"]=d["[object Int8Array]"]=d["[object Int16Array]"]=d["[object Int32Array]"]=d["[object Uint8Array]"]=d["[object Uint8ClampedArray]"]=d["[object Uint16Array]"]=d["[object Uint32Array]"]=!0,d[a]=d["[object Array]"]=d["[object ArrayBuffer]"]=d["[object Boolean]"]=d["[object DataView]"]=d["[object Date]"]=d["[object Error]"]=d["[object Function]"]=d[o]=d["[object Number]"]=d[l]=d["[object RegExp]"]=d[c]=d["[object String]"]=d["[object WeakMap]"]=!1;var f=typeof i=="object"&&i&&i.Object===Object&&i,p=typeof self=="object"&&self&&self.Object===Object&&self,g=f||p||Function("return this")(),m=typeof s=="object"&&s&&!s.nodeType&&s,b=m&&typeof r=="object"&&r&&!r.nodeType&&r,w=b&&b.exports===m,_=w&&f.process,T=function(){try{return _&&_.binding&&_.binding("util")}catch{}}(),M=T&&T.isTypedArray;function j(ye,Ce){for(var Le=-1,tt=ye==null?0:ye.length;++Le<tt;)if(Ce(ye[Le],Le,ye))return!0;return!1}function A(ye){var Ce=-1,Le=Array(ye.size);return ye.forEach(function(tt,jt){Le[++Ce]=[jt,tt]}),Le}function B(ye){var Ce=-1,Le=Array(ye.size);return ye.forEach(function(tt){Le[++Ce]=tt}),Le}var H,U,X,V=Array.prototype,O=Function.prototype,N=Object.prototype,C=g["__core-js_shared__"],x=O.toString,S=N.hasOwnProperty,k=(H=/[^.]+$/.exec(C&&C.keys&&C.keys.IE_PROTO||""))?"Symbol(src)_1."+H:"",E=N.toString,I=RegExp("^"+x.call(S).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),D=w?g.Buffer:void 0,F=g.Symbol,Y=g.Uint8Array,J=N.propertyIsEnumerable,se=V.splice,q=F?F.toStringTag:void 0,ee=Object.getOwnPropertySymbols,L=D?D.isBuffer:void 0,P=(U=Object.keys,X=Object,function(ye){return U(X(ye))}),G=dr(g,"DataView"),ne=dr(g,"Map"),ce=dr(g,"Promise"),ie=dr(g,"Set"),ue=dr(g,"WeakMap"),ve=dr(Object,"create"),we=sr(G),le=sr(ne),me=sr(ce),ge=sr(ie),ke=sr(ue),xe=F?F.prototype:void 0,Ee=xe?xe.valueOf:void 0;function Ie(ye){var Ce=-1,Le=ye==null?0:ye.length;for(this.clear();++Ce<Le;){var tt=ye[Ce];this.set(tt[0],tt[1])}}function Pe(ye){var Ce=-1,Le=ye==null?0:ye.length;for(this.clear();++Ce<Le;){var tt=ye[Ce];this.set(tt[0],tt[1])}}function Ae(ye){var Ce=-1,Le=ye==null?0:ye.length;for(this.clear();++Ce<Le;){var tt=ye[Ce];this.set(tt[0],tt[1])}}function Ge(ye){var Ce=-1,Le=ye==null?0:ye.length;for(this.__data__=new Ae;++Ce<Le;)this.add(ye[Ce])}function st(ye){var Ce=this.__data__=new Pe(ye);this.size=Ce.size}function et(ye,Ce){var Le=Qt(ye),tt=!Le&&Hr(ye),jt=!Le&&!tt&&pt(ye),rt=!Le&&!tt&&!jt&&Er(ye),Vt=Le||tt||jt||rt,Dt=Vt?function(Bt,or){for(var an=-1,Ur=Array(Bt);++an<Bt;)Ur[an]=or(an);return Ur}(ye.length,String):[],Et=Dt.length;for(var Xt in ye)!S.call(ye,Xt)||Vt&&(Xt=="length"||jt&&(Xt=="offset"||Xt=="parent")||rt&&(Xt=="buffer"||Xt=="byteLength"||Xt=="byteOffset")||hr(Xt,Et))||Dt.push(Xt);return Dt}function Rt(ye,Ce){for(var Le=ye.length;Le--;)if(Wt(ye[Le][0],Ce))return Le;return-1}function _t(ye){return ye==null?ye===void 0?"[object Undefined]":"[object Null]":q&&q in Object(ye)?function(Ce){var Le=S.call(Ce,q),tt=Ce[q];try{Ce[q]=void 0;var jt=!0}catch{}var rt=E.call(Ce);return jt&&(Le?Ce[q]=tt:delete Ce[q]),rt}(ye):function(Ce){return E.call(Ce)}(ye)}function xt(ye){return Rr(ye)&&_t(ye)==a}function yt(ye,Ce,Le,tt,jt){return ye===Ce||(ye==null||Ce==null||!Rr(ye)&&!Rr(Ce)?ye!=ye&&Ce!=Ce:function(rt,Vt,Dt,Et,Xt,Bt){var or=Qt(rt),an=Qt(Vt),Ur=or?"[object Array]":Pt(rt),hn=an?"[object Array]":Pt(Vt),vn=(Ur=Ur==a?l:Ur)==l,Cs=(hn=hn==a?l:hn)==l,he=Ur==hn;if(he&&pt(rt)){if(!pt(Vt))return!1;or=!0,vn=!1}if(he&&!vn)return Bt||(Bt=new st),or||Er(rt)?it(rt,Vt,Dt,Et,Xt,Bt):function(Ye,Ze,vr,ir,lr,Lt,Mr){switch(vr){case"[object DataView]":if(Ye.byteLength!=Ze.byteLength||Ye.byteOffset!=Ze.byteOffset)return!1;Ye=Ye.buffer,Ze=Ze.buffer;case"[object ArrayBuffer]":return!(Ye.byteLength!=Ze.byteLength||!Lt(new Y(Ye),new Y(Ze)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Wt(+Ye,+Ze);case"[object Error]":return Ye.name==Ze.name&&Ye.message==Ze.message;case"[object RegExp]":case"[object String]":return Ye==Ze+"";case o:var Lr=A;case c:var ar=1&ir;if(Lr||(Lr=B),Ye.size!=Ze.size&&!ar)return!1;var Gr=Mr.get(Ye);if(Gr)return Gr==Ze;ir|=2,Mr.set(Ye,Ze);var gn=it(Lr(Ye),Lr(Ze),ir,lr,Lt,Mr);return Mr.delete(Ye),gn;case"[object Symbol]":if(Ee)return Ee.call(Ye)==Ee.call(Ze)}return!1}(rt,Vt,Ur,Dt,Et,Xt,Bt);if(!(1&Dt)){var Te=vn&&S.call(rt,"__wrapped__"),ze=Cs&&S.call(Vt,"__wrapped__");if(Te||ze){var qe=Te?rt.value():rt,mt=ze?Vt.value():Vt;return Bt||(Bt=new st),Xt(qe,mt,Dt,Et,Bt)}}return he?(Bt||(Bt=new st),function(Ye,Ze,vr,ir,lr,Lt){var Mr=1&vr,Lr=wt(Ye),ar=Lr.length,Gr=wt(Ze).length;if(ar!=Gr&&!Mr)return!1;for(var gn=ar;gn--;){var ps=Lr[gn];if(!(Mr?ps in Ze:S.call(Ze,ps)))return!1}var $i=Lt.get(Ye);if($i&&Lt.get(Ze))return $i==Ze;var Ca=!0;Lt.set(Ye,Ze),Lt.set(Ze,Ye);for(var Zo=Mr;++gn<ar;){ps=Lr[gn];var Ta=Ye[ps],Qo=Ze[ps];if(ir)var Fr=Mr?ir(Qo,Ta,ps,Ze,Ye,Lt):ir(Ta,Qo,ps,Ye,Ze,Lt);if(!(Fr===void 0?Ta===Qo||lr(Ta,Qo,vr,ir,Lt):Fr)){Ca=!1;break}Zo||(Zo=ps=="constructor")}if(Ca&&!Zo){var Cr=Ye.constructor,Pn=Ze.constructor;Cr==Pn||!("constructor"in Ye)||!("constructor"in Ze)||typeof Cr=="function"&&Cr instanceof Cr&&typeof Pn=="function"&&Pn instanceof Pn||(Ca=!1)}return Lt.delete(Ye),Lt.delete(Ze),Ca}(rt,Vt,Dt,Et,Xt,Bt)):!1}(ye,Ce,Le,tt,yt,jt))}function Qe(ye){return!(!Ht(ye)||function(Ce){return!!k&&k in Ce}(ye))&&(gr(ye)?I:u).test(sr(ye))}function Ve(ye){if(Le=(Ce=ye)&&Ce.constructor,tt=typeof Le=="function"&&Le.prototype||N,Ce!==tt)return P(ye);var Ce,Le,tt,jt=[];for(var rt in Object(ye))S.call(ye,rt)&&rt!="constructor"&&jt.push(rt);return jt}function it(ye,Ce,Le,tt,jt,rt){var Vt=1&Le,Dt=ye.length,Et=Ce.length;if(Dt!=Et&&!(Vt&&Et>Dt))return!1;var Xt=rt.get(ye);if(Xt&&rt.get(Ce))return Xt==Ce;var Bt=-1,or=!0,an=2&Le?new Ge:void 0;for(rt.set(ye,Ce),rt.set(Ce,ye);++Bt<Dt;){var Ur=ye[Bt],hn=Ce[Bt];if(tt)var vn=Vt?tt(hn,Ur,Bt,Ce,ye,rt):tt(Ur,hn,Bt,ye,Ce,rt);if(vn!==void 0){if(vn)continue;or=!1;break}if(an){if(!j(Ce,function(Cs,he){if(Te=he,!an.has(Te)&&(Ur===Cs||jt(Ur,Cs,Le,tt,rt)))return an.push(he);var Te})){or=!1;break}}else if(Ur!==hn&&!jt(Ur,hn,Le,tt,rt)){or=!1;break}}return rt.delete(ye),rt.delete(Ce),or}function wt(ye){return function(Ce,Le,tt){var jt=Le(Ce);return Qt(Ce)?jt:function(rt,Vt){for(var Dt=-1,Et=Vt.length,Xt=rt.length;++Dt<Et;)rt[Xt+Dt]=Vt[Dt];return rt}(jt,tt(Ce))}(ye,qt,Or)}function ct(ye,Ce){var Le,tt,jt=ye.__data__;return((tt=typeof(Le=Ce))=="string"||tt=="number"||tt=="symbol"||tt=="boolean"?Le!=="__proto__":Le===null)?jt[typeof Ce=="string"?"string":"hash"]:jt.map}function dr(ye,Ce){var Le=function(tt,jt){return tt==null?void 0:tt[jt]}(ye,Ce);return Qe(Le)?Le:void 0}Ie.prototype.clear=function(){this.__data__=ve?ve(null):{},this.size=0},Ie.prototype.delete=function(ye){var Ce=this.has(ye)&&delete this.__data__[ye];return this.size-=Ce?1:0,Ce},Ie.prototype.get=function(ye){var Ce=this.__data__;if(ve){var Le=Ce[ye];return Le==="__lodash_hash_undefined__"?void 0:Le}return S.call(Ce,ye)?Ce[ye]:void 0},Ie.prototype.has=function(ye){var Ce=this.__data__;return ve?Ce[ye]!==void 0:S.call(Ce,ye)},Ie.prototype.set=function(ye,Ce){var Le=this.__data__;return this.size+=this.has(ye)?0:1,Le[ye]=ve&&Ce===void 0?"__lodash_hash_undefined__":Ce,this},Pe.prototype.clear=function(){this.__data__=[],this.size=0},Pe.prototype.delete=function(ye){var Ce=this.__data__,Le=Rt(Ce,ye);return!(Le<0)&&(Le==Ce.length-1?Ce.pop():se.call(Ce,Le,1),--this.size,!0)},Pe.prototype.get=function(ye){var Ce=this.__data__,Le=Rt(Ce,ye);return Le<0?void 0:Ce[Le][1]},Pe.prototype.has=function(ye){return Rt(this.__data__,ye)>-1},Pe.prototype.set=function(ye,Ce){var Le=this.__data__,tt=Rt(Le,ye);return tt<0?(++this.size,Le.push([ye,Ce])):Le[tt][1]=Ce,this},Ae.prototype.clear=function(){this.size=0,this.__data__={hash:new Ie,map:new(ne||Pe),string:new Ie}},Ae.prototype.delete=function(ye){var Ce=ct(this,ye).delete(ye);return this.size-=Ce?1:0,Ce},Ae.prototype.get=function(ye){return ct(this,ye).get(ye)},Ae.prototype.has=function(ye){return ct(this,ye).has(ye)},Ae.prototype.set=function(ye,Ce){var Le=ct(this,ye),tt=Le.size;return Le.set(ye,Ce),this.size+=Le.size==tt?0:1,this},Ge.prototype.add=Ge.prototype.push=function(ye){return this.__data__.set(ye,"__lodash_hash_undefined__"),this},Ge.prototype.has=function(ye){return this.__data__.has(ye)},st.prototype.clear=function(){this.__data__=new Pe,this.size=0},st.prototype.delete=function(ye){var Ce=this.__data__,Le=Ce.delete(ye);return this.size=Ce.size,Le},st.prototype.get=function(ye){return this.__data__.get(ye)},st.prototype.has=function(ye){return this.__data__.has(ye)},st.prototype.set=function(ye,Ce){var Le=this.__data__;if(Le instanceof Pe){var tt=Le.__data__;if(!ne||tt.length<199)return tt.push([ye,Ce]),this.size=++Le.size,this;Le=this.__data__=new Ae(tt)}return Le.set(ye,Ce),this.size=Le.size,this};var Or=ee?function(ye){return ye==null?[]:(ye=Object(ye),function(Ce,Le){for(var tt=-1,jt=Ce==null?0:Ce.length,rt=0,Vt=[];++tt<jt;){var Dt=Ce[tt];Le(Dt,tt,Ce)&&(Vt[rt++]=Dt)}return Vt}(ee(ye),function(Ce){return J.call(ye,Ce)}))}:function(){return[]},Pt=_t;function hr(ye,Ce){return!!(Ce=Ce??9007199254740991)&&(typeof ye=="number"||h.test(ye))&&ye>-1&&ye%1==0&&ye<Ce}function sr(ye){if(ye!=null){try{return x.call(ye)}catch{}try{return ye+""}catch{}}return""}function Wt(ye,Ce){return ye===Ce||ye!=ye&&Ce!=Ce}(G&&Pt(new G(new ArrayBuffer(1)))!="[object DataView]"||ne&&Pt(new ne)!=o||ce&&Pt(ce.resolve())!="[object Promise]"||ie&&Pt(new ie)!=c||ue&&Pt(new ue)!="[object WeakMap]")&&(Pt=function(ye){var Ce=_t(ye),Le=Ce==l?ye.constructor:void 0,tt=Le?sr(Le):"";if(tt)switch(tt){case we:return"[object DataView]";case le:return o;case me:return"[object Promise]";case ge:return c;case ke:return"[object WeakMap]"}return Ce});var Hr=xt(function(){return arguments}())?xt:function(ye){return Rr(ye)&&S.call(ye,"callee")&&!J.call(ye,"callee")},Qt=Array.isArray,pt=L||function(){return!1};function gr(ye){if(!Ht(ye))return!1;var Ce=_t(ye);return Ce=="[object Function]"||Ce=="[object GeneratorFunction]"||Ce=="[object AsyncFunction]"||Ce=="[object Proxy]"}function qr(ye){return typeof ye=="number"&&ye>-1&&ye%1==0&&ye<=9007199254740991}function Ht(ye){var Ce=typeof ye;return ye!=null&&(Ce=="object"||Ce=="function")}function Rr(ye){return ye!=null&&typeof ye=="object"}var Er=M?function(ye){return function(Ce){return ye(Ce)}}(M):function(ye){return Rr(ye)&&qr(ye.length)&&!!d[_t(ye)]};function qt(ye){return(Ce=ye)!=null&&qr(Ce.length)&&!gr(Ce)?et(ye):Ve(ye);var Ce}r.exports=function(ye,Ce){return yt(ye,Ce)}}).call(this)}).call(this,typeof _r<"u"?_r:typeof self<"u"?self:typeof window<"u"?window:{})},{}],446:[function(e,r,s){(function(i){(function(){var a=typeof i=="object"&&i&&i.Object===Object&&i,o=typeof self=="object"&&self&&self.Object===Object&&self,l=a||o||Function("return this")(),c=Object.prototype,u=c.hasOwnProperty,h=c.toString,d=l.Symbol,f=d?d.toStringTag:void 0;function p(g){return g==null?g===void 0?"[object Undefined]":"[object Null]":f&&f in Object(g)?function(m){var b=u.call(m,f),w=m[f];try{m[f]=void 0;var _=!0}catch{}var T=h.call(m);return _&&(b?m[f]=w:delete m[f]),T}(g):function(m){return h.call(m)}(g)}r.exports=function(g){if(!function(b){var w=typeof b;return b!=null&&(w=="object"||w=="function")}(g))return!1;var m=p(g);return m=="[object Function]"||m=="[object GeneratorFunction]"||m=="[object AsyncFunction]"||m=="[object Proxy]"}}).call(this)}).call(this,typeof _r<"u"?_r:typeof self<"u"?self:typeof window<"u"?window:{})},{}],447:[function(e,r,s){r.exports=function(i){return i==null}},{}],448:[function(e,r,s){r.exports=function(i){return i===void 0}},{}],449:[function(e,r,s){(function(i){(function(){var a=/^\[object .+?Constructor\]$/,o=typeof i=="object"&&i&&i.Object===Object&&i,l=typeof self=="object"&&self&&self.Object===Object&&self,c=o||l||Function("return this")();function u(F,Y){return!!(F&&F.length)&&function(J,se,q){if(se!=se)return function(P,G,ne,ce){for(var ie=P.length,ue=ne+-1;++ue<ie;)if(G(P[ue],ue,P))return ue;return-1}(J,h,q);for(var ee=q-1,L=J.length;++ee<L;)if(J[ee]===se)return ee;return-1}(F,Y,0)>-1}function h(F){return F!=F}function d(F,Y){return F.has(Y)}function f(F){var Y=-1,J=Array(F.size);return F.forEach(function(se){J[++Y]=se}),J}var p,g=Array.prototype,m=Function.prototype,b=Object.prototype,w=c["__core-js_shared__"],_=(p=/[^.]+$/.exec(w&&w.keys&&w.keys.IE_PROTO||""))?"Symbol(src)_1."+p:"",T=m.toString,M=b.hasOwnProperty,j=b.toString,A=RegExp("^"+T.call(M).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),B=g.splice,H=I(c,"Map"),U=I(c,"Set"),X=I(Object,"create");function V(F){var Y=-1,J=F?F.length:0;for(this.clear();++Y<J;){var se=F[Y];this.set(se[0],se[1])}}function O(F){var Y=-1,J=F?F.length:0;for(this.clear();++Y<J;){var se=F[Y];this.set(se[0],se[1])}}function N(F){var Y=-1,J=F?F.length:0;for(this.clear();++Y<J;){var se=F[Y];this.set(se[0],se[1])}}function C(F){var Y=-1,J=F?F.length:0;for(this.__data__=new N;++Y<J;)this.add(F[Y])}function x(F,Y){for(var J,se,q=F.length;q--;)if((J=F[q][0])===(se=Y)||J!=J&&se!=se)return q;return-1}function S(F){return!(!D(F)||(Y=F,_&&_ in Y))&&(function(J){var se=D(J)?j.call(J):"";return se=="[object Function]"||se=="[object GeneratorFunction]"}(F)||function(J){var se=!1;if(J!=null&&typeof J.toString!="function")try{se=!!(J+"")}catch{}return se}(F)?A:a).test(function(J){if(J!=null){try{return T.call(J)}catch{}try{return J+""}catch{}}return""}(F));var Y}V.prototype.clear=function(){this.__data__=X?X(null):{}},V.prototype.delete=function(F){return this.has(F)&&delete this.__data__[F]},V.prototype.get=function(F){var Y=this.__data__;if(X){var J=Y[F];return J==="__lodash_hash_undefined__"?void 0:J}return M.call(Y,F)?Y[F]:void 0},V.prototype.has=function(F){var Y=this.__data__;return X?Y[F]!==void 0:M.call(Y,F)},V.prototype.set=function(F,Y){return this.__data__[F]=X&&Y===void 0?"__lodash_hash_undefined__":Y,this},O.prototype.clear=function(){this.__data__=[]},O.prototype.delete=function(F){var Y=this.__data__,J=x(Y,F);return!(J<0)&&(J==Y.length-1?Y.pop():B.call(Y,J,1),!0)},O.prototype.get=function(F){var Y=this.__data__,J=x(Y,F);return J<0?void 0:Y[J][1]},O.prototype.has=function(F){return x(this.__data__,F)>-1},O.prototype.set=function(F,Y){var J=this.__data__,se=x(J,F);return se<0?J.push([F,Y]):J[se][1]=Y,this},N.prototype.clear=function(){this.__data__={hash:new V,map:new(H||O),string:new V}},N.prototype.delete=function(F){return E(this,F).delete(F)},N.prototype.get=function(F){return E(this,F).get(F)},N.prototype.has=function(F){return E(this,F).has(F)},N.prototype.set=function(F,Y){return E(this,F).set(F,Y),this},C.prototype.add=C.prototype.push=function(F){return this.__data__.set(F,"__lodash_hash_undefined__"),this},C.prototype.has=function(F){return this.__data__.has(F)};var k=U&&1/f(new U([,-0]))[1]==1/0?function(F){return new U(F)}:function(){};function E(F,Y){var J,se,q=F.__data__;return((se=typeof(J=Y))=="string"||se=="number"||se=="symbol"||se=="boolean"?J!=="__proto__":J===null)?q[typeof Y=="string"?"string":"hash"]:q.map}function I(F,Y){var J=function(se,q){return se==null?void 0:se[q]}(F,Y);return S(J)?J:void 0}function D(F){var Y=typeof F;return!!F&&(Y=="object"||Y=="function")}r.exports=function(F){return F&&F.length?function(Y,J,se){var q=-1,ee=u,L=Y.length,P=!0,G=[],ne=G;if(L>=200){var ce=k(Y);if(ce)return f(ce);P=!1,ee=d,ne=new C}else ne=G;e:for(;++q<L;){var ie=Y[q],ue=ie;if(ie=ie!==0?ie:0,P&&ue==ue){for(var ve=ne.length;ve--;)if(ne[ve]===ue)continue e;G.push(ie)}else ee(ne,ue,se)||(ne!==G&&ne.push(ue),G.push(ie))}return G}(F):[]}}).call(this)}).call(this,typeof _r<"u"?_r:typeof self<"u"?self:typeof window<"u"?window:{})},{}],450:[function(e,r,s){var i=e("inherits"),a=e("hash-base"),o=e("safe-buffer").Buffer,l=new Array(16);function c(){a.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function u(g,m){return g<<m|g>>>32-m}function h(g,m,b,w,_,T,M){return u(g+(m&b|~m&w)+_+T|0,M)+m|0}function d(g,m,b,w,_,T,M){return u(g+(m&w|b&~w)+_+T|0,M)+m|0}function f(g,m,b,w,_,T,M){return u(g+(m^b^w)+_+T|0,M)+m|0}function p(g,m,b,w,_,T,M){return u(g+(b^(m|~w))+_+T|0,M)+m|0}i(c,a),c.prototype._update=function(){for(var g=l,m=0;m<16;++m)g[m]=this._block.readInt32LE(4*m);var b=this._a,w=this._b,_=this._c,T=this._d;b=h(b,w,_,T,g[0],3614090360,7),T=h(T,b,w,_,g[1],3905402710,12),_=h(_,T,b,w,g[2],606105819,17),w=h(w,_,T,b,g[3],3250441966,22),b=h(b,w,_,T,g[4],4118548399,7),T=h(T,b,w,_,g[5],1200080426,12),_=h(_,T,b,w,g[6],2821735955,17),w=h(w,_,T,b,g[7],4249261313,22),b=h(b,w,_,T,g[8],1770035416,7),T=h(T,b,w,_,g[9],2336552879,12),_=h(_,T,b,w,g[10],4294925233,17),w=h(w,_,T,b,g[11],2304563134,22),b=h(b,w,_,T,g[12],1804603682,7),T=h(T,b,w,_,g[13],4254626195,12),_=h(_,T,b,w,g[14],2792965006,17),b=d(b,w=h(w,_,T,b,g[15],1236535329,22),_,T,g[1],4129170786,5),T=d(T,b,w,_,g[6],3225465664,9),_=d(_,T,b,w,g[11],643717713,14),w=d(w,_,T,b,g[0],3921069994,20),b=d(b,w,_,T,g[5],3593408605,5),T=d(T,b,w,_,g[10],38016083,9),_=d(_,T,b,w,g[15],3634488961,14),w=d(w,_,T,b,g[4],3889429448,20),b=d(b,w,_,T,g[9],568446438,5),T=d(T,b,w,_,g[14],3275163606,9),_=d(_,T,b,w,g[3],4107603335,14),w=d(w,_,T,b,g[8],1163531501,20),b=d(b,w,_,T,g[13],2850285829,5),T=d(T,b,w,_,g[2],4243563512,9),_=d(_,T,b,w,g[7],1735328473,14),b=f(b,w=d(w,_,T,b,g[12],2368359562,20),_,T,g[5],4294588738,4),T=f(T,b,w,_,g[8],2272392833,11),_=f(_,T,b,w,g[11],1839030562,16),w=f(w,_,T,b,g[14],4259657740,23),b=f(b,w,_,T,g[1],2763975236,4),T=f(T,b,w,_,g[4],1272893353,11),_=f(_,T,b,w,g[7],4139469664,16),w=f(w,_,T,b,g[10],3200236656,23),b=f(b,w,_,T,g[13],681279174,4),T=f(T,b,w,_,g[0],3936430074,11),_=f(_,T,b,w,g[3],3572445317,16),w=f(w,_,T,b,g[6],76029189,23),b=f(b,w,_,T,g[9],3654602809,4),T=f(T,b,w,_,g[12],3873151461,11),_=f(_,T,b,w,g[15],530742520,16),b=p(b,w=f(w,_,T,b,g[2],3299628645,23),_,T,g[0],4096336452,6),T=p(T,b,w,_,g[7],1126891415,10),_=p(_,T,b,w,g[14],2878612391,15),w=p(w,_,T,b,g[5],4237533241,21),b=p(b,w,_,T,g[12],1700485571,6),T=p(T,b,w,_,g[3],2399980690,10),_=p(_,T,b,w,g[10],4293915773,15),w=p(w,_,T,b,g[1],2240044497,21),b=p(b,w,_,T,g[8],1873313359,6),T=p(T,b,w,_,g[15],4264355552,10),_=p(_,T,b,w,g[6],2734768916,15),w=p(w,_,T,b,g[13],1309151649,21),b=p(b,w,_,T,g[4],4149444226,6),T=p(T,b,w,_,g[11],3174756917,10),_=p(_,T,b,w,g[2],718787259,15),w=p(w,_,T,b,g[9],3951481745,21),this._a=this._a+b|0,this._b=this._b+w|0,this._c=this._c+_|0,this._d=this._d+T|0},c.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 g=o.allocUnsafe(16);return g.writeInt32LE(this._a,0),g.writeInt32LE(this._b,4),g.writeInt32LE(this._c,8),g.writeInt32LE(this._d,12),g},r.exports=c},{"hash-base":425,inherits:440,"safe-buffer":494}],451:[function(e,r,s){var i=e("bn.js"),a=e("brorand");function o(l){this.rand=l||new a.Rand}r.exports=o,o.create=function(l){return new o(l)},o.prototype._randbelow=function(l){var c=l.bitLength(),u=Math.ceil(c/8);do var h=new i(this.rand.generate(u));while(h.cmp(l)>=0);return h},o.prototype._randrange=function(l,c){var u=c.sub(l);return l.add(this._randbelow(u))},o.prototype.test=function(l,c,u){var h=l.bitLength(),d=i.mont(l),f=new i(1).toRed(d);c||(c=Math.max(1,h/48|0));for(var p=l.subn(1),g=0;!p.testn(g);g++);for(var m=l.shrn(g),b=p.toRed(d);c>0;c--){var w=this._randrange(new i(2),p);u&&u(w);var _=w.toRed(d).redPow(m);if(_.cmp(f)!==0&&_.cmp(b)!==0){for(var T=1;T<g;T++){if((_=_.redSqr()).cmp(f)===0)return!1;if(_.cmp(b)===0)break}if(T===g)return!1}}return!0},o.prototype.getDivisor=function(l,c){var u=l.bitLength(),h=i.mont(l),d=new i(1).toRed(h);c||(c=Math.max(1,u/48|0));for(var f=l.subn(1),p=0;!f.testn(p);p++);for(var g=l.shrn(p),m=f.toRed(h);c>0;c--){var b=this._randrange(new i(2),f),w=l.gcd(b);if(w.cmpn(1)!==0)return w;var _=b.toRed(h).redPow(g);if(_.cmp(d)!==0&&_.cmp(m)!==0){for(var T=1;T<p;T++){if((_=_.redSqr()).cmp(d)===0)return _.fromRed().subn(1).gcd(l);if(_.cmp(m)===0)break}if(T===p)return(_=_.redSqr()).fromRed().subn(1).gcd(l)}}return!1}},{"bn.js":452,brorand:187}],452:[function(e,r,s){arguments[4][184][0].apply(s,arguments)},{buffer:188,dup:184}],453:[function(e,r,s){function i(a,o){if(!a)throw new Error(o||"Assertion failed")}r.exports=i,i.equal=function(a,o,l){if(a!=o)throw new Error(l||"Assertion failed: "+a+" != "+o)}},{}],454:[function(e,r,s){var i=s;function a(l){return l.length===1?"0"+l:l}function o(l){for(var c="",u=0;u<l.length;u++)c+=a(l[u].toString(16));return c}i.toArray=function(l,c){if(Array.isArray(l))return l.slice();if(!l)return[];var u=[];if(typeof l!="string"){for(var h=0;h<l.length;h++)u[h]=0|l[h];return u}if(c==="hex")for((l=l.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(l="0"+l),h=0;h<l.length;h+=2)u.push(parseInt(l[h]+l[h+1],16));else for(h=0;h<l.length;h++){var d=l.charCodeAt(h),f=d>>8,p=255&d;f?u.push(f,p):u.push(p)}return u},i.zero2=a,i.toHex=o,i.encode=function(l,c){return c==="hex"?o(l):l}},{}],455:[function(e,r,s){r.exports={"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"}},{}],456:[function(e,r,s){var i=e("asn1.js");s.certificate=e("./certificate");var a=i.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())});s.RSAPrivateKey=a;var o=i.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});s.RSAPublicKey=o;var l=i.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(c),this.key("subjectPublicKey").bitstr())});s.PublicKey=l;var c=i.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())}),u=i.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(c),this.key("subjectPrivateKey").octstr())});s.PrivateKey=u;var h=i.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())});s.EncryptedPrivateKey=h;var d=i.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())});s.DSAPrivateKey=d,s.DSAparam=i.define("DSAparam",function(){this.int()});var f=i.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(p),this.key("publicKey").optional().explicit(1).bitstr())});s.ECPrivateKey=f;var p=i.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});s.signature=i.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},{"./certificate":457,"asn1.js":170}],457:[function(e,r,s){var i=e("asn1.js"),a=i.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),o=i.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),l=i.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),c=i.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(l),this.key("subjectPublicKey").bitstr())}),u=i.define("RelativeDistinguishedName",function(){this.setof(o)}),h=i.define("RDNSequence",function(){this.seqof(u)}),d=i.define("Name",function(){this.choice({rdnSequence:this.use(h)})}),f=i.define("Validity",function(){this.seq().obj(this.key("notBefore").use(a),this.key("notAfter").use(a))}),p=i.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),g=i.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(l),this.key("issuer").use(d),this.key("validity").use(f),this.key("subject").use(d),this.key("subjectPublicKeyInfo").use(c),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(p).optional())}),m=i.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(g),this.key("signatureAlgorithm").use(l),this.key("signatureValue").bitstr())});r.exports=m},{"asn1.js":170}],458:[function(e,r,s){var i=/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,a=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,o=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,l=e("evp_bytestokey"),c=e("browserify-aes"),u=e("safe-buffer").Buffer;r.exports=function(h,d){var f,p=h.toString(),g=p.match(i);if(g){var m="aes"+g[1],b=u.from(g[2],"hex"),w=u.from(g[3].replace(/[\r\n]/g,""),"base64"),_=l(d,b.slice(0,8),parseInt(g[1],10)).key,T=[],M=c.createDecipheriv(m,_,b);T.push(M.update(w)),T.push(M.final()),f=u.concat(T)}else{var j=p.match(o);f=u.from(j[2].replace(/[\r\n]/g,""),"base64")}return{tag:p.match(a)[1],data:f}}},{"browserify-aes":191,evp_bytestokey:423,"safe-buffer":494}],459:[function(e,r,s){var i=e("./asn1"),a=e("./aesid.json"),o=e("./fixProc"),l=e("browserify-aes"),c=e("pbkdf2"),u=e("safe-buffer").Buffer;function h(d){var f;typeof d!="object"||u.isBuffer(d)||(f=d.passphrase,d=d.key),typeof d=="string"&&(d=u.from(d));var p,g,m=o(d,f),b=m.tag,w=m.data;switch(b){case"CERTIFICATE":g=i.certificate.decode(w,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(g||(g=i.PublicKey.decode(w,"der")),p=g.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return i.RSAPublicKey.decode(g.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return g.subjectPrivateKey=g.subjectPublicKey,{type:"ec",data:g};case"1.2.840.10040.4.1":return g.algorithm.params.pub_key=i.DSAparam.decode(g.subjectPublicKey.data,"der"),{type:"dsa",data:g.algorithm.params};default:throw new Error("unknown key id "+p)}case"ENCRYPTED PRIVATE KEY":w=function(_,T){var M=_.algorithm.decrypt.kde.kdeparams.salt,j=parseInt(_.algorithm.decrypt.kde.kdeparams.iters.toString(),10),A=a[_.algorithm.decrypt.cipher.algo.join(".")],B=_.algorithm.decrypt.cipher.iv,H=_.subjectPrivateKey,U=parseInt(A.split("-")[1],10)/8,X=c.pbkdf2Sync(T,M,j,U,"sha1"),V=l.createDecipheriv(A,X,B),O=[];return O.push(V.update(H)),O.push(V.final()),u.concat(O)}(w=i.EncryptedPrivateKey.decode(w,"der"),f);case"PRIVATE KEY":switch(p=(g=i.PrivateKey.decode(w,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return i.RSAPrivateKey.decode(g.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:g.algorithm.curve,privateKey:i.ECPrivateKey.decode(g.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return g.algorithm.params.priv_key=i.DSAparam.decode(g.subjectPrivateKey,"der"),{type:"dsa",params:g.algorithm.params};default:throw new Error("unknown key id "+p)}case"RSA PUBLIC KEY":return i.RSAPublicKey.decode(w,"der");case"RSA PRIVATE KEY":return i.RSAPrivateKey.decode(w,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:i.DSAPrivateKey.decode(w,"der")};case"EC PRIVATE KEY":return{curve:(w=i.ECPrivateKey.decode(w,"der")).parameters.value,privateKey:w.privateKey};default:throw new Error("unknown key type "+b)}}r.exports=h,h.signature=i.signature},{"./aesid.json":455,"./asn1":456,"./fixProc":458,"browserify-aes":191,pbkdf2:460,"safe-buffer":494}],460:[function(e,r,s){s.pbkdf2=e("./lib/async"),s.pbkdf2Sync=e("./lib/sync")},{"./lib/async":461,"./lib/sync":464}],461:[function(e,r,s){(function(i){(function(){var a,o,l=e("safe-buffer").Buffer,c=e("./precondition"),u=e("./default-encoding"),h=e("./sync"),d=e("./to-buffer"),f=i.crypto&&i.crypto.subtle,p={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"},g=[];function m(){return o||(o=i.process&&i.process.nextTick?i.process.nextTick:i.queueMicrotask?i.queueMicrotask:i.setImmediate?i.setImmediate:i.setTimeout)}function b(w,_,T,M,j){return f.importKey("raw",w,{name:"PBKDF2"},!1,["deriveBits"]).then(function(A){return f.deriveBits({name:"PBKDF2",salt:_,iterations:T,hash:{name:j}},A,M<<3)}).then(function(A){return l.from(A)})}r.exports=function(w,_,T,M,j,A){typeof j=="function"&&(A=j,j=void 0);var B=p[(j=j||"sha1").toLowerCase()];if(B&&typeof i.Promise=="function"){if(c(T,M),w=d(w,u,"Password"),_=d(_,u,"Salt"),typeof A!="function")throw new Error("No callback provided to pbkdf2");(function(H,U){H.then(function(X){m()(function(){U(null,X)})},function(X){m()(function(){U(X)})})})(function(H){if(i.process&&!i.process.browser||!f||!f.importKey||!f.deriveBits)return Promise.resolve(!1);if(g[H]!==void 0)return g[H];var U=b(a=a||l.alloc(8),a,10,128,H).then(function(){return!0}).catch(function(){return!1});return g[H]=U,U}(B).then(function(H){return H?b(w,_,T,M,B):h(w,_,T,M,j)}),A)}else m()(function(){var H;try{H=h(w,_,T,M,j)}catch(U){return A(U)}A(null,H)})}}).call(this)}).call(this,typeof _r<"u"?_r:typeof self<"u"?self:typeof window<"u"?window:{})},{"./default-encoding":462,"./precondition":463,"./sync":464,"./to-buffer":465,"safe-buffer":494}],462:[function(e,r,s){(function(i,a){(function(){var o;a.process&&a.process.browser?o="utf-8":a.process&&a.process.version?o=parseInt(i.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary":o="utf-8",r.exports=o}).call(this)}).call(this,e("_process"),typeof _r<"u"?_r:typeof self<"u"?self:typeof window<"u"?window:{})},{_process:467}],463:[function(e,r,s){var i=Math.pow(2,30)-1;r.exports=function(a,o){if(typeof a!="number")throw new TypeError("Iterations not a number");if(a<0)throw new TypeError("Bad iterations");if(typeof o!="number")throw new TypeError("Key length not a number");if(o<0||o>i||o!=o)throw new TypeError("Bad key length")}},{}],464:[function(e,r,s){var i=e("create-hash/md5"),a=e("ripemd160"),o=e("sha.js"),l=e("safe-buffer").Buffer,c=e("./precondition"),u=e("./default-encoding"),h=e("./to-buffer"),d=l.alloc(128),f={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function p(g,m,b){var w=function(B){function H(U){return o(B).update(U).digest()}return B==="rmd160"||B==="ripemd160"?function(U){return new a().update(U).digest()}:B==="md5"?i:H}(g),_=g==="sha512"||g==="sha384"?128:64;m.length>_?m=w(m):m.length<_&&(m=l.concat([m,d],_));for(var T=l.allocUnsafe(_+f[g]),M=l.allocUnsafe(_+f[g]),j=0;j<_;j++)T[j]=54^m[j],M[j]=92^m[j];var A=l.allocUnsafe(_+b+4);T.copy(A,0,0,_),this.ipad1=A,this.ipad2=T,this.opad=M,this.alg=g,this.blocksize=_,this.hash=w,this.size=f[g]}p.prototype.run=function(g,m){return g.copy(m,this.blocksize),this.hash(m).copy(this.opad,this.blocksize),this.hash(this.opad)},r.exports=function(g,m,b,w,_){c(b,w);var T=new p(_=_||"sha1",g=h(g,u,"Password"),(m=h(m,u,"Salt")).length),M=l.allocUnsafe(w),j=l.allocUnsafe(m.length+4);m.copy(j,0,0,m.length);for(var A=0,B=f[_],H=Math.ceil(w/B),U=1;U<=H;U++){j.writeUInt32BE(U,m.length);for(var X=T.run(j,T.ipad1),V=X,O=1;O<b;O++){V=T.run(V,T.ipad2);for(var N=0;N<B;N++)X[N]^=V[N]}X.copy(M,A),A+=B}return M}},{"./default-encoding":462,"./precondition":463,"./to-buffer":465,"create-hash/md5":387,ripemd160:493,"safe-buffer":494,"sha.js":498}],465:[function(e,r,s){var i=e("safe-buffer").Buffer;r.exports=function(a,o,l){if(i.isBuffer(a))return a;if(typeof a=="string")return i.from(a,o);if(ArrayBuffer.isView(a))return i.from(a.buffer);throw new TypeError(l+" must be a string, a Buffer, a typed array or a DataView")}},{"safe-buffer":494}],466:[function(e,r,s){(function(i){(function(){i===void 0||!i.version||i.version.indexOf("v0.")===0||i.version.indexOf("v1.")===0&&i.version.indexOf("v1.8.")!==0?r.exports={nextTick:function(a,o,l,c){if(typeof a!="function")throw new TypeError('"callback" argument must be a function');var u,h,d=arguments.length;switch(d){case 0:case 1:return i.nextTick(a);case 2:return i.nextTick(function(){a.call(null,o)});case 3:return i.nextTick(function(){a.call(null,o,l)});case 4:return i.nextTick(function(){a.call(null,o,l,c)});default:for(u=new Array(d-1),h=0;h<u.length;)u[h++]=arguments[h];return i.nextTick(function(){a.apply(null,u)})}}}:r.exports=i}).call(this)}).call(this,e("_process"))},{_process:467}],467:[function(e,r,s){var i,a,o=r.exports={};function l(){throw new Error("setTimeout has not been defined")}function c(){throw new Error("clearTimeout has not been defined")}function u(_){if(i===setTimeout)return setTimeout(_,0);if((i===l||!i)&&setTimeout)return i=setTimeout,setTimeout(_,0);try{return i(_,0)}catch{try{return i.call(null,_,0)}catch{return i.call(this,_,0)}}}(function(){try{i=typeof setTimeout=="function"?setTimeout:l}catch{i=l}try{a=typeof clearTimeout=="function"?clearTimeout:c}catch{a=c}})();var h,d=[],f=!1,p=-1;function g(){f&&h&&(f=!1,h.length?d=h.concat(d):p=-1,d.length&&m())}function m(){if(!f){var _=u(g);f=!0;for(var T=d.length;T;){for(h=d,d=[];++p<T;)h&&h[p].run();p=-1,T=d.length}h=null,f=!1,function(M){if(a===clearTimeout)return clearTimeout(M);if((a===c||!a)&&clearTimeout)return a=clearTimeout,clearTimeout(M);try{a(M)}catch{try{return a.call(null,M)}catch{return a.call(this,M)}}}(_)}}function b(_,T){this.fun=_,this.array=T}function w(){}o.nextTick=function(_){var T=new Array(arguments.length-1);if(arguments.length>1)for(var M=1;M<arguments.length;M++)T[M-1]=arguments[M];d.push(new b(_,T)),d.length!==1||f||u(m)},b.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=w,o.addListener=w,o.once=w,o.off=w,o.removeListener=w,o.removeAllListeners=w,o.emit=w,o.prependListener=w,o.prependOnceListener=w,o.listeners=function(_){return[]},o.binding=function(_){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(_){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},{}],468:[function(e,r,s){s.publicEncrypt=e("./publicEncrypt"),s.privateDecrypt=e("./privateDecrypt"),s.privateEncrypt=function(i,a){return s.publicEncrypt(i,a,!0)},s.publicDecrypt=function(i,a){return s.privateDecrypt(i,a,!0)}},{"./privateDecrypt":471,"./publicEncrypt":472}],469:[function(e,r,s){var i=e("create-hash"),a=e("safe-buffer").Buffer;function o(l){var c=a.allocUnsafe(4);return c.writeUInt32BE(l,0),c}r.exports=function(l,c){for(var u,h=a.alloc(0),d=0;h.length<c;)u=o(d++),h=a.concat([h,i("sha1").update(l).update(u).digest()]);return h.slice(0,c)}},{"create-hash":386,"safe-buffer":494}],470:[function(e,r,s){arguments[4][184][0].apply(s,arguments)},{buffer:188,dup:184}],471:[function(e,r,s){var i=e("parse-asn1"),a=e("./mgf"),o=e("./xor"),l=e("bn.js"),c=e("browserify-rsa"),u=e("create-hash"),h=e("./withPublic"),d=e("safe-buffer").Buffer;r.exports=function(f,p,g){var m;m=f.padding?f.padding:g?1:4;var b,w=i(f),_=w.modulus.byteLength();if(p.length>_||new l(p).cmp(w.modulus)>=0)throw new Error("decryption error");b=g?h(new l(p),w):c(p,w);var T=d.alloc(_-b.length);if(b=d.concat([T,b],_),m===4)return function(M,j){var A=M.modulus.byteLength(),B=u("sha1").update(d.alloc(0)).digest(),H=B.length;if(j[0]!==0)throw new Error("decryption error");var U=j.slice(1,H+1),X=j.slice(H+1),V=o(U,a(X,H)),O=o(X,a(V,A-H-1));if(function(C,x){C=d.from(C),x=d.from(x);var S=0,k=C.length;C.length!==x.length&&(S++,k=Math.min(C.length,x.length));for(var E=-1;++E<k;)S+=C[E]^x[E];return S}(B,O.slice(0,H)))throw new Error("decryption error");for(var N=H;O[N]===0;)N++;if(O[N++]!==1)throw new Error("decryption error");return O.slice(N)}(w,b);if(m===1)return function(M,j,A){for(var B=j.slice(0,2),H=2,U=0;j[H++]!==0;)if(H>=j.length){U++;break}var X=j.slice(2,H-1);if((B.toString("hex")!=="0002"&&!A||B.toString("hex")!=="0001"&&A)&&U++,X.length<8&&U++,U)throw new Error("decryption error");return j.slice(H)}(0,b,g);if(m===3)return b;throw new Error("unknown padding")}},{"./mgf":469,"./withPublic":473,"./xor":474,"bn.js":470,"browserify-rsa":209,"create-hash":386,"parse-asn1":459,"safe-buffer":494}],472:[function(e,r,s){var i=e("parse-asn1"),a=e("randombytes"),o=e("create-hash"),l=e("./mgf"),c=e("./xor"),u=e("bn.js"),h=e("./withPublic"),d=e("browserify-rsa"),f=e("safe-buffer").Buffer;r.exports=function(p,g,m){var b;b=p.padding?p.padding:m?1:4;var w,_=i(p);if(b===4)w=function(T,M){var j=T.modulus.byteLength(),A=M.length,B=o("sha1").update(f.alloc(0)).digest(),H=B.length,U=2*H;if(A>j-U-2)throw new Error("message too long");var X=f.alloc(j-A-U-2),V=j-H-1,O=a(H),N=c(f.concat([B,X,f.alloc(1,1),M],V),l(O,V)),C=c(O,l(N,H));return new u(f.concat([f.alloc(1),C,N],j))}(_,g);else if(b===1)w=function(T,M,j){var A,B=M.length,H=T.modulus.byteLength();if(B>H-11)throw new Error("message too long");return A=j?f.alloc(H-B-3,255):function(U){for(var X,V=f.allocUnsafe(U),O=0,N=a(2*U),C=0;O<U;)C===N.length&&(N=a(2*U),C=0),(X=N[C++])&&(V[O++]=X);return V}(H-B-3),new u(f.concat([f.from([0,j?1:2]),A,f.alloc(1),M],H))}(_,g,m);else{if(b!==3)throw new Error("unknown padding");if((w=new u(g)).cmp(_.modulus)>=0)throw new Error("data too long for modulus")}return m?d(w,_):h(w,_)}},{"./mgf":469,"./withPublic":473,"./xor":474,"bn.js":470,"browserify-rsa":209,"create-hash":386,"parse-asn1":459,randombytes:475,"safe-buffer":494}],473:[function(e,r,s){var i=e("bn.js"),a=e("safe-buffer").Buffer;r.exports=function(o,l){return a.from(o.toRed(i.mont(l.modulus)).redPow(new i(l.publicExponent)).fromRed().toArray())}},{"bn.js":470,"safe-buffer":494}],474:[function(e,r,s){r.exports=function(i,a){for(var o=i.length,l=-1;++l<o;)i[l]^=a[l];return i}},{}],475:[function(e,r,s){(function(i,a){(function(){var o=e("safe-buffer").Buffer,l=a.crypto||a.msCrypto;l&&l.getRandomValues?r.exports=function(c,u){if(c>4294967295)throw new RangeError("requested too many random bytes");var h=o.allocUnsafe(c);if(c>0)if(c>65536)for(var d=0;d<c;d+=65536)l.getRandomValues(h.slice(d,d+65536));else l.getRandomValues(h);return typeof u=="function"?i.nextTick(function(){u(null,h)}):h}:r.exports=function(){throw new Error(`Secure random number generation is not supported by this browser.
446
446
  Use Chrome, Firefox or Internet Explorer 11`)}}).call(this)}).call(this,e("_process"),typeof _r<"u"?_r:typeof self<"u"?self:typeof window<"u"?window:{})},{_process:467,"safe-buffer":494}],476:[function(e,r,s){(function(i,a){(function(){function o(){throw new Error(`secure random number generation not supported by this browser
447
447
  use chrome, FireFox or Internet Explorer 11`)}var l=e("safe-buffer"),c=e("randombytes"),u=l.Buffer,h=l.kMaxLength,d=a.crypto||a.msCrypto,f=Math.pow(2,32)-1;function p(b,w){if(typeof b!="number"||b!=b)throw new TypeError("offset must be a number");if(b>f||b<0)throw new TypeError("offset must be a uint32");if(b>h||b>w)throw new RangeError("offset out of range")}function g(b,w,_){if(typeof b!="number"||b!=b)throw new TypeError("size must be a number");if(b>f||b<0)throw new TypeError("size must be a uint32");if(b+w>_||b>h)throw new RangeError("buffer too small")}function m(b,w,_,T){if(i.browser){var M=b.buffer,j=new Uint8Array(M,w,_);return d.getRandomValues(j),T?void i.nextTick(function(){T(null,b)}):b}if(!T)return c(_).copy(b,w),b;c(_,function(A,B){if(A)return T(A);B.copy(b,w),T(null,b)})}d&&d.getRandomValues||!i.browser?(s.randomFill=function(b,w,_,T){if(!(u.isBuffer(b)||b instanceof a.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof w=="function")T=w,w=0,_=b.length;else if(typeof _=="function")T=_,_=b.length-w;else if(typeof T!="function")throw new TypeError('"cb" argument must be a function');return p(w,b.length),g(_,w,b.length),m(b,w,_,T)},s.randomFillSync=function(b,w,_){if(w===void 0&&(w=0),!(u.isBuffer(b)||b instanceof a.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return p(w,b.length),_===void 0&&(_=b.length-w),g(_,w,b.length),m(b,w,_)}):(s.randomFill=o,s.randomFillSync=o)}).call(this)}).call(this,e("_process"),typeof _r<"u"?_r:typeof self<"u"?self:typeof window<"u"?window:{})},{_process:467,randombytes:475,"safe-buffer":494}],477:[function(e,r,s){var i={};function a(l,c,u){u||(u=Error);var h=function(d){var f,p;function g(m,b,w){return d.call(this,function(_,T,M){return typeof c=="string"?c:c(_,T,M)}(m,b,w))||this}return p=d,(f=g).prototype=Object.create(p.prototype),f.prototype.constructor=f,f.__proto__=p,g}(u);h.prototype.name=u.name,h.prototype.code=l,i[l]=h}function o(l,c){if(Array.isArray(l)){var u=l.length;return l=l.map(function(h){return String(h)}),u>2?"one of ".concat(c," ").concat(l.slice(0,u-1).join(", "),", or ")+l[u-1]:u===2?"one of ".concat(c," ").concat(l[0]," or ").concat(l[1]):"of ".concat(c," ").concat(l[0])}return"of ".concat(c," ").concat(String(l))}a("ERR_INVALID_OPT_VALUE",function(l,c){return'The value "'+c+'" is invalid for option "'+l+'"'},TypeError),a("ERR_INVALID_ARG_TYPE",function(l,c,u){var h,d,f;if(typeof c=="string"&&(d="not ",c.substr(0,d.length)===d)?(h="must not be",c=c.replace(/^not /,"")):h="must be",function(g,m,b){return(b===void 0||b>g.length)&&(b=g.length),g.substring(b-m.length,b)===m}(l," argument"))f="The ".concat(l," ").concat(h," ").concat(o(c,"type"));else{var p=function(g,m,b){return typeof b!="number"&&(b=0),!(b+m.length>g.length)&&g.indexOf(m,b)!==-1}(l,".")?"property":"argument";f='The "'.concat(l,'" ').concat(p," ").concat(h," ").concat(o(c,"type"))}return f+=". Received type ".concat(typeof u)},TypeError),a("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),a("ERR_METHOD_NOT_IMPLEMENTED",function(l){return"The "+l+" method is not implemented"}),a("ERR_STREAM_PREMATURE_CLOSE","Premature close"),a("ERR_STREAM_DESTROYED",function(l){return"Cannot call "+l+" after a stream was destroyed"}),a("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),a("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),a("ERR_STREAM_WRITE_AFTER_END","write after end"),a("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),a("ERR_UNKNOWN_ENCODING",function(l){return"Unknown encoding: "+l},TypeError),a("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),r.exports.codes=i},{}],478:[function(e,r,s){(function(i){(function(){var a=Object.keys||function(g){var m=[];for(var b in g)m.push(b);return m};r.exports=d;var o=e("./_stream_readable"),l=e("./_stream_writable");e("inherits")(d,o);for(var c=a(l.prototype),u=0;u<c.length;u++){var h=c[u];d.prototype[h]||(d.prototype[h]=l.prototype[h])}function d(g){if(!(this instanceof d))return new d(g);o.call(this,g),l.call(this,g),this.allowHalfOpen=!0,g&&(g.readable===!1&&(this.readable=!1),g.writable===!1&&(this.writable=!1),g.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",f)))}function f(){this._writableState.ended||i.nextTick(p,this)}function p(g){g.end()}Object.defineProperty(d.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(d.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(d.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(d.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(g){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=g,this._writableState.destroyed=g)}})}).call(this)}).call(this,e("_process"))},{"./_stream_readable":480,"./_stream_writable":482,_process:467,inherits:440}],479:[function(e,r,s){r.exports=a;var i=e("./_stream_transform");function a(o){if(!(this instanceof a))return new a(o);i.call(this,o)}e("inherits")(a,i),a.prototype._transform=function(o,l,c){c(null,o)}},{"./_stream_transform":481,inherits:440}],480:[function(e,r,s){(function(i,a){(function(){var o;r.exports=V,V.ReadableState=X,e("events").EventEmitter;var l=function(L,P){return L.listeners(P).length},c=e("./internal/streams/stream"),u=e("buffer").Buffer,h=(a!==void 0?a:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},d,f=e("util");d=f&&f.debuglog?f.debuglog("stream"):function(){};var p,g,m,b=e("./internal/streams/buffer_list"),w=e("./internal/streams/destroy"),_=e("./internal/streams/state").getHighWaterMark,T=e("../errors").codes,M=T.ERR_INVALID_ARG_TYPE,j=T.ERR_STREAM_PUSH_AFTER_EOF,A=T.ERR_METHOD_NOT_IMPLEMENTED,B=T.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;e("inherits")(V,c);var H=w.errorOrDestroy,U=["error","close","destroy","pause","resume"];function X(L,P,G){o=o||e("./_stream_duplex"),L=L||{},typeof G!="boolean"&&(G=P instanceof o),this.objectMode=!!L.objectMode,G&&(this.objectMode=this.objectMode||!!L.readableObjectMode),this.highWaterMark=_(this,L,"readableHighWaterMark",G),this.buffer=new b,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=L.emitClose!==!1,this.autoDestroy=!!L.autoDestroy,this.destroyed=!1,this.defaultEncoding=L.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,L.encoding&&(p||(p=e("string_decoder/").StringDecoder),this.decoder=new p(L.encoding),this.encoding=L.encoding)}function V(L){if(o=o||e("./_stream_duplex"),!(this instanceof V))return new V(L);var P=this instanceof o;this._readableState=new X(L,this,P),this.readable=!0,L&&(typeof L.read=="function"&&(this._read=L.read),typeof L.destroy=="function"&&(this._destroy=L.destroy)),c.call(this)}function O(L,P,G,ne,ce){d("readableAddChunk",P);var ie,ue=L._readableState;if(P===null)ue.reading=!1,function(ve,we){if(d("onEofChunk"),!we.ended){if(we.decoder){var le=we.decoder.end();le&&le.length&&(we.buffer.push(le),we.length+=we.objectMode?1:le.length)}we.ended=!0,we.sync?x(ve):(we.needReadable=!1,we.emittedReadable||(we.emittedReadable=!0,S(ve)))}}(L,ue);else if(ce||(ie=function(ve,we){var le;me=we,u.isBuffer(me)||me instanceof h||typeof we=="string"||we===void 0||ve.objectMode||(le=new M("chunk",["string","Buffer","Uint8Array"],we));var me;return le}(ue,P)),ie)H(L,ie);else if(ue.objectMode||P&&P.length>0)if(typeof P=="string"||ue.objectMode||Object.getPrototypeOf(P)===u.prototype||(P=function(ve){return u.from(ve)}(P)),ne)ue.endEmitted?H(L,new B):N(L,ue,P,!0);else if(ue.ended)H(L,new j);else{if(ue.destroyed)return!1;ue.reading=!1,ue.decoder&&!G?(P=ue.decoder.write(P),ue.objectMode||P.length!==0?N(L,ue,P,!1):k(L,ue)):N(L,ue,P,!1)}else ne||(ue.reading=!1,k(L,ue));return!ue.ended&&(ue.length<ue.highWaterMark||ue.length===0)}function N(L,P,G,ne){P.flowing&&P.length===0&&!P.sync?(P.awaitDrain=0,L.emit("data",G)):(P.length+=P.objectMode?1:G.length,ne?P.buffer.unshift(G):P.buffer.push(G),P.needReadable&&x(L)),k(L,P)}Object.defineProperty(V.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(L){this._readableState&&(this._readableState.destroyed=L)}}),V.prototype.destroy=w.destroy,V.prototype._undestroy=w.undestroy,V.prototype._destroy=function(L,P){P(L)},V.prototype.push=function(L,P){var G,ne=this._readableState;return ne.objectMode?G=!0:typeof L=="string"&&((P=P||ne.defaultEncoding)!==ne.encoding&&(L=u.from(L,P),P=""),G=!0),O(this,L,P,!1,G)},V.prototype.unshift=function(L){return O(this,L,null,!0,!1)},V.prototype.isPaused=function(){return this._readableState.flowing===!1},V.prototype.setEncoding=function(L){p||(p=e("string_decoder/").StringDecoder);var P=new p(L);this._readableState.decoder=P,this._readableState.encoding=this._readableState.decoder.encoding;for(var G=this._readableState.buffer.head,ne="";G!==null;)ne+=P.write(G.data),G=G.next;return this._readableState.buffer.clear(),ne!==""&&this._readableState.buffer.push(ne),this._readableState.length=ne.length,this};function C(L,P){return L<=0||P.length===0&&P.ended?0:P.objectMode?1:L!=L?P.flowing&&P.length?P.buffer.head.data.length:P.length:(L>P.highWaterMark&&(P.highWaterMark=function(G){return G>=1073741824?G=1073741824:(G--,G|=G>>>1,G|=G>>>2,G|=G>>>4,G|=G>>>8,G|=G>>>16,G++),G}(L)),L<=P.length?L:P.ended?P.length:(P.needReadable=!0,0))}function x(L){var P=L._readableState;d("emitReadable",P.needReadable,P.emittedReadable),P.needReadable=!1,P.emittedReadable||(d("emitReadable",P.flowing),P.emittedReadable=!0,i.nextTick(S,L))}function S(L){var P=L._readableState;d("emitReadable_",P.destroyed,P.length,P.ended),P.destroyed||!P.length&&!P.ended||(L.emit("readable"),P.emittedReadable=!1),P.needReadable=!P.flowing&&!P.ended&&P.length<=P.highWaterMark,Y(L)}function k(L,P){P.readingMore||(P.readingMore=!0,i.nextTick(E,L,P))}function E(L,P){for(;!P.reading&&!P.ended&&(P.length<P.highWaterMark||P.flowing&&P.length===0);){var G=P.length;if(d("maybeReadMore read 0"),L.read(0),G===P.length)break}P.readingMore=!1}function I(L){var P=L._readableState;P.readableListening=L.listenerCount("readable")>0,P.resumeScheduled&&!P.paused?P.flowing=!0:L.listenerCount("data")>0&&L.resume()}function D(L){d("readable nexttick read 0"),L.read(0)}function F(L,P){d("resume",P.reading),P.reading||L.read(0),P.resumeScheduled=!1,L.emit("resume"),Y(L),P.flowing&&!P.reading&&L.read(0)}function Y(L){var P=L._readableState;for(d("flow",P.flowing);P.flowing&&L.read()!==null;);}function J(L,P){return P.length===0?null:(P.objectMode?G=P.buffer.shift():!L||L>=P.length?(G=P.decoder?P.buffer.join(""):P.buffer.length===1?P.buffer.first():P.buffer.concat(P.length),P.buffer.clear()):G=P.buffer.consume(L,P.decoder),G);var G}function se(L){var P=L._readableState;d("endReadable",P.endEmitted),P.endEmitted||(P.ended=!0,i.nextTick(q,P,L))}function q(L,P){if(d("endReadableNT",L.endEmitted,L.length),!L.endEmitted&&L.length===0&&(L.endEmitted=!0,P.readable=!1,P.emit("end"),L.autoDestroy)){var G=P._writableState;(!G||G.autoDestroy&&G.finished)&&P.destroy()}}function ee(L,P){for(var G=0,ne=L.length;G<ne;G++)if(L[G]===P)return G;return-1}V.prototype.read=function(L){d("read",L),L=parseInt(L,10);var P=this._readableState,G=L;if(L!==0&&(P.emittedReadable=!1),L===0&&P.needReadable&&((P.highWaterMark!==0?P.length>=P.highWaterMark:P.length>0)||P.ended))return d("read: emitReadable",P.length,P.ended),P.length===0&&P.ended?se(this):x(this),null;if((L=C(L,P))===0&&P.ended)return P.length===0&&se(this),null;var ne,ce=P.needReadable;return d("need readable",ce),(P.length===0||P.length-L<P.highWaterMark)&&d("length less than watermark",ce=!0),P.ended||P.reading?d("reading or ended",ce=!1):ce&&(d("do read"),P.reading=!0,P.sync=!0,P.length===0&&(P.needReadable=!0),this._read(P.highWaterMark),P.sync=!1,P.reading||(L=C(G,P))),(ne=L>0?J(L,P):null)===null?(P.needReadable=P.length<=P.highWaterMark,L=0):(P.length-=L,P.awaitDrain=0),P.length===0&&(P.ended||(P.needReadable=!0),G!==L&&P.ended&&se(this)),ne!==null&&this.emit("data",ne),ne},V.prototype._read=function(L){H(this,new A("_read()"))},V.prototype.pipe=function(L,P){var G=this,ne=this._readableState;switch(ne.pipesCount){case 0:ne.pipes=L;break;case 1:ne.pipes=[ne.pipes,L];break;default:ne.pipes.push(L)}ne.pipesCount+=1,d("pipe count=%d opts=%j",ne.pipesCount,P);var ce=(!P||P.end!==!1)&&L!==i.stdout&&L!==i.stderr?ue:xe;function ie(Ee,Ie){d("onunpipe"),Ee===G&&Ie&&Ie.hasUnpiped===!1&&(Ie.hasUnpiped=!0,d("cleanup"),L.removeListener("close",ge),L.removeListener("finish",ke),L.removeListener("drain",ve),L.removeListener("error",me),L.removeListener("unpipe",ie),G.removeListener("end",ue),G.removeListener("end",xe),G.removeListener("data",le),we=!0,!ne.awaitDrain||L._writableState&&!L._writableState.needDrain||ve())}function ue(){d("onend"),L.end()}ne.endEmitted?i.nextTick(ce):G.once("end",ce),L.on("unpipe",ie);var ve=function(Ee){return function(){var Ie=Ee._readableState;d("pipeOnDrain",Ie.awaitDrain),Ie.awaitDrain&&Ie.awaitDrain--,Ie.awaitDrain===0&&l(Ee,"data")&&(Ie.flowing=!0,Y(Ee))}}(G);L.on("drain",ve);var we=!1;function le(Ee){d("ondata");var Ie=L.write(Ee);d("dest.write",Ie),Ie===!1&&((ne.pipesCount===1&&ne.pipes===L||ne.pipesCount>1&&ee(ne.pipes,L)!==-1)&&!we&&(d("false write response, pause",ne.awaitDrain),ne.awaitDrain++),G.pause())}function me(Ee){d("onerror",Ee),xe(),L.removeListener("error",me),l(L,"error")===0&&H(L,Ee)}function ge(){L.removeListener("finish",ke),xe()}function ke(){d("onfinish"),L.removeListener("close",ge),xe()}function xe(){d("unpipe"),G.unpipe(L)}return G.on("data",le),function(Ee,Ie,Pe){if(typeof Ee.prependListener=="function")return Ee.prependListener(Ie,Pe);Ee._events&&Ee._events[Ie]?Array.isArray(Ee._events[Ie])?Ee._events[Ie].unshift(Pe):Ee._events[Ie]=[Pe,Ee._events[Ie]]:Ee.on(Ie,Pe)}(L,"error",me),L.once("close",ge),L.once("finish",ke),L.emit("pipe",G),ne.flowing||(d("pipe resume"),G.resume()),L},V.prototype.unpipe=function(L){var P=this._readableState,G={hasUnpiped:!1};if(P.pipesCount===0)return this;if(P.pipesCount===1)return L&&L!==P.pipes||(L||(L=P.pipes),P.pipes=null,P.pipesCount=0,P.flowing=!1,L&&L.emit("unpipe",this,G)),this;if(!L){var ne=P.pipes,ce=P.pipesCount;P.pipes=null,P.pipesCount=0,P.flowing=!1;for(var ie=0;ie<ce;ie++)ne[ie].emit("unpipe",this,{hasUnpiped:!1});return this}var ue=ee(P.pipes,L);return ue===-1||(P.pipes.splice(ue,1),P.pipesCount-=1,P.pipesCount===1&&(P.pipes=P.pipes[0]),L.emit("unpipe",this,G)),this},V.prototype.on=function(L,P){var G=c.prototype.on.call(this,L,P),ne=this._readableState;return L==="data"?(ne.readableListening=this.listenerCount("readable")>0,ne.flowing!==!1&&this.resume()):L==="readable"&&(ne.endEmitted||ne.readableListening||(ne.readableListening=ne.needReadable=!0,ne.flowing=!1,ne.emittedReadable=!1,d("on readable",ne.length,ne.reading),ne.length?x(this):ne.reading||i.nextTick(D,this))),G},V.prototype.addListener=V.prototype.on,V.prototype.removeListener=function(L,P){var G=c.prototype.removeListener.call(this,L,P);return L==="readable"&&i.nextTick(I,this),G},V.prototype.removeAllListeners=function(L){var P=c.prototype.removeAllListeners.apply(this,arguments);return L!=="readable"&&L!==void 0||i.nextTick(I,this),P},V.prototype.resume=function(){var L=this._readableState;return L.flowing||(d("resume"),L.flowing=!L.readableListening,function(P,G){G.resumeScheduled||(G.resumeScheduled=!0,i.nextTick(F,P,G))}(this,L)),L.paused=!1,this},V.prototype.pause=function(){return d("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(d("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},V.prototype.wrap=function(L){var P=this,G=this._readableState,ne=!1;for(var ce in L.on("end",function(){if(d("wrapped end"),G.decoder&&!G.ended){var ue=G.decoder.end();ue&&ue.length&&P.push(ue)}P.push(null)}),L.on("data",function(ue){d("wrapped data"),G.decoder&&(ue=G.decoder.write(ue)),G.objectMode&&ue==null||(G.objectMode||ue&&ue.length)&&(P.push(ue)||(ne=!0,L.pause()))}),L)this[ce]===void 0&&typeof L[ce]=="function"&&(this[ce]=function(ue){return function(){return L[ue].apply(L,arguments)}}(ce));for(var ie=0;ie<U.length;ie++)L.on(U[ie],this.emit.bind(this,U[ie]));return this._read=function(ue){d("wrapped _read",ue),ne&&(ne=!1,L.resume())},this},typeof Symbol=="function"&&(V.prototype[Symbol.asyncIterator]=function(){return g===void 0&&(g=e("./internal/streams/async_iterator")),g(this)}),Object.defineProperty(V.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(V.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(V.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(L){this._readableState&&(this._readableState.flowing=L)}}),V._fromList=J,Object.defineProperty(V.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),typeof Symbol=="function"&&(V.from=function(L,P){return m===void 0&&(m=e("./internal/streams/from")),m(V,L,P)})}).call(this)}).call(this,e("_process"),typeof _r<"u"?_r:typeof self<"u"?self:typeof window<"u"?window:{})},{"../errors":477,"./_stream_duplex":478,"./internal/streams/async_iterator":483,"./internal/streams/buffer_list":484,"./internal/streams/destroy":485,"./internal/streams/from":487,"./internal/streams/state":489,"./internal/streams/stream":490,_process:467,buffer:220,events:422,inherits:440,"string_decoder/":522,util:188}],481:[function(e,r,s){r.exports=d;var i=e("../errors").codes,a=i.ERR_METHOD_NOT_IMPLEMENTED,o=i.ERR_MULTIPLE_CALLBACK,l=i.ERR_TRANSFORM_ALREADY_TRANSFORMING,c=i.ERR_TRANSFORM_WITH_LENGTH_0,u=e("./_stream_duplex");function h(g,m){var b=this._transformState;b.transforming=!1;var w=b.writecb;if(w===null)return this.emit("error",new o);b.writechunk=null,b.writecb=null,m!=null&&this.push(m),w(g);var _=this._readableState;_.reading=!1,(_.needReadable||_.length<_.highWaterMark)&&this._read(_.highWaterMark)}function d(g){if(!(this instanceof d))return new d(g);u.call(this,g),this._transformState={afterTransform:h.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,g&&(typeof g.transform=="function"&&(this._transform=g.transform),typeof g.flush=="function"&&(this._flush=g.flush)),this.on("prefinish",f)}function f(){var g=this;typeof this._flush!="function"||this._readableState.destroyed?p(this,null,null):this._flush(function(m,b){p(g,m,b)})}function p(g,m,b){if(m)return g.emit("error",m);if(b!=null&&g.push(b),g._writableState.length)throw new c;if(g._transformState.transforming)throw new l;return g.push(null)}e("inherits")(d,u),d.prototype.push=function(g,m){return this._transformState.needTransform=!1,u.prototype.push.call(this,g,m)},d.prototype._transform=function(g,m,b){b(new a("_transform()"))},d.prototype._write=function(g,m,b){var w=this._transformState;if(w.writecb=b,w.writechunk=g,w.writeencoding=m,!w.transforming){var _=this._readableState;(w.needTransform||_.needReadable||_.length<_.highWaterMark)&&this._read(_.highWaterMark)}},d.prototype._read=function(g){var m=this._transformState;m.writechunk===null||m.transforming?m.needTransform=!0:(m.transforming=!0,this._transform(m.writechunk,m.writeencoding,m.afterTransform))},d.prototype._destroy=function(g,m){u.prototype._destroy.call(this,g,function(b){m(b)})}},{"../errors":477,"./_stream_duplex":478,inherits:440}],482:[function(e,r,s){(function(i,a){(function(){function o(E){var I=this;this.next=null,this.entry=null,this.finish=function(){(function(D,F,Y){var J=D.entry;for(D.entry=null;J;){var se=J.callback;F.pendingcb--,se(Y),J=J.next}F.corkedRequestsFree.next=D})(I,E)}}var l;r.exports=V,V.WritableState=X;var c={deprecate:e("util-deprecate")},u=e("./internal/streams/stream"),h=e("buffer").Buffer,d=(a!==void 0?a:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},f,p=e("./internal/streams/destroy"),g=e("./internal/streams/state").getHighWaterMark,m=e("../errors").codes,b=m.ERR_INVALID_ARG_TYPE,w=m.ERR_METHOD_NOT_IMPLEMENTED,_=m.ERR_MULTIPLE_CALLBACK,T=m.ERR_STREAM_CANNOT_PIPE,M=m.ERR_STREAM_DESTROYED,j=m.ERR_STREAM_NULL_VALUES,A=m.ERR_STREAM_WRITE_AFTER_END,B=m.ERR_UNKNOWN_ENCODING,H=p.errorOrDestroy;function U(){}function X(E,I,D){l=l||e("./_stream_duplex"),E=E||{},typeof D!="boolean"&&(D=I instanceof l),this.objectMode=!!E.objectMode,D&&(this.objectMode=this.objectMode||!!E.writableObjectMode),this.highWaterMark=g(this,E,"writableHighWaterMark",D),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var F=E.decodeStrings===!1;this.decodeStrings=!F,this.defaultEncoding=E.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Y){(function(J,se){var q=J._writableState,ee=q.sync,L=q.writecb;if(typeof L!="function")throw new _;if(function(G){G.writing=!1,G.writecb=null,G.length-=G.writelen,G.writelen=0}(q),se)(function(G,ne,ce,ie,ue){--ne.pendingcb,ce?(i.nextTick(ue,ie),i.nextTick(k,G,ne),G._writableState.errorEmitted=!0,H(G,ie)):(ue(ie),G._writableState.errorEmitted=!0,H(G,ie),k(G,ne))})(J,q,ee,se,L);else{var P=x(q)||J.destroyed;P||q.corked||q.bufferProcessing||!q.bufferedRequest||C(J,q),ee?i.nextTick(N,J,q,P,L):N(J,q,P,L)}})(I,Y)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=E.emitClose!==!1,this.autoDestroy=!!E.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function V(E){var I=this instanceof(l=l||e("./_stream_duplex"));if(!I&&!f.call(V,this))return new V(E);this._writableState=new X(E,this,I),this.writable=!0,E&&(typeof E.write=="function"&&(this._write=E.write),typeof E.writev=="function"&&(this._writev=E.writev),typeof E.destroy=="function"&&(this._destroy=E.destroy),typeof E.final=="function"&&(this._final=E.final)),u.call(this)}function O(E,I,D,F,Y,J,se){I.writelen=F,I.writecb=se,I.writing=!0,I.sync=!0,I.destroyed?I.onwrite(new M("write")):D?E._writev(Y,I.onwrite):E._write(Y,J,I.onwrite),I.sync=!1}function N(E,I,D,F){D||function(Y,J){J.length===0&&J.needDrain&&(J.needDrain=!1,Y.emit("drain"))}(E,I),I.pendingcb--,F(),k(E,I)}function C(E,I){I.bufferProcessing=!0;var D=I.bufferedRequest;if(E._writev&&D&&D.next){var F=I.bufferedRequestCount,Y=new Array(F),J=I.corkedRequestsFree;J.entry=D;for(var se=0,q=!0;D;)Y[se]=D,D.isBuf||(q=!1),D=D.next,se+=1;Y.allBuffers=q,O(E,I,!0,I.length,Y,"",J.finish),I.pendingcb++,I.lastBufferedRequest=null,J.next?(I.corkedRequestsFree=J.next,J.next=null):I.corkedRequestsFree=new o(I),I.bufferedRequestCount=0}else{for(;D;){var ee=D.chunk,L=D.encoding,P=D.callback;if(O(E,I,!1,I.objectMode?1:ee.length,ee,L,P),D=D.next,I.bufferedRequestCount--,I.writing)break}D===null&&(I.lastBufferedRequest=null)}I.bufferedRequest=D,I.bufferProcessing=!1}function x(E){return E.ending&&E.length===0&&E.bufferedRequest===null&&!E.finished&&!E.writing}function S(E,I){E._final(function(D){I.pendingcb--,D&&H(E,D),I.prefinished=!0,E.emit("prefinish"),k(E,I)})}function k(E,I){var D=x(I);if(D&&(function(Y,J){J.prefinished||J.finalCalled||(typeof Y._final!="function"||J.destroyed?(J.prefinished=!0,Y.emit("prefinish")):(J.pendingcb++,J.finalCalled=!0,i.nextTick(S,Y,J)))}(E,I),I.pendingcb===0&&(I.finished=!0,E.emit("finish"),I.autoDestroy))){var F=E._readableState;(!F||F.autoDestroy&&F.endEmitted)&&E.destroy()}return D}e("inherits")(V,u),X.prototype.getBuffer=function(){for(var E=this.bufferedRequest,I=[];E;)I.push(E),E=E.next;return I},function(){try{Object.defineProperty(X.prototype,"buffer",{get:c.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}(),typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(f=Function.prototype[Symbol.hasInstance],Object.defineProperty(V,Symbol.hasInstance,{value:function(E){return!!f.call(this,E)||this===V&&E&&E._writableState instanceof X}})):f=function(E){return E instanceof this},V.prototype.pipe=function(){H(this,new T)},V.prototype.write=function(E,I,D){var F,Y=this._writableState,J=!1,se=!Y.objectMode&&(F=E,h.isBuffer(F)||F instanceof d);return se&&!h.isBuffer(E)&&(E=function(q){return h.from(q)}(E)),typeof I=="function"&&(D=I,I=null),se?I="buffer":I||(I=Y.defaultEncoding),typeof D!="function"&&(D=U),Y.ending?function(q,ee){var L=new A;H(q,L),i.nextTick(ee,L)}(this,D):(se||function(q,ee,L,P){var G;return L===null?G=new j:typeof L=="string"||ee.objectMode||(G=new b("chunk",["string","Buffer"],L)),!G||(H(q,G),i.nextTick(P,G),!1)}(this,Y,E,D))&&(Y.pendingcb++,J=function(q,ee,L,P,G,ne){if(!L){var ce=function(we,le,me){return we.objectMode||we.decodeStrings===!1||typeof le!="string"||(le=h.from(le,me)),le}(ee,P,G);P!==ce&&(L=!0,G="buffer",P=ce)}var ie=ee.objectMode?1:P.length;ee.length+=ie;var ue=ee.length<ee.highWaterMark;if(ue||(ee.needDrain=!0),ee.writing||ee.corked){var ve=ee.lastBufferedRequest;ee.lastBufferedRequest={chunk:P,encoding:G,isBuf:L,callback:ne,next:null},ve?ve.next=ee.lastBufferedRequest:ee.bufferedRequest=ee.lastBufferedRequest,ee.bufferedRequestCount+=1}else O(q,ee,!1,ie,P,G,ne);return ue}(this,Y,se,E,I,D)),J},V.prototype.cork=function(){this._writableState.corked++},V.prototype.uncork=function(){var E=this._writableState;E.corked&&(E.corked--,E.writing||E.corked||E.bufferProcessing||!E.bufferedRequest||C(this,E))},V.prototype.setDefaultEncoding=function(E){if(typeof E=="string"&&(E=E.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((E+"").toLowerCase())>-1))throw new B(E);return this._writableState.defaultEncoding=E,this},Object.defineProperty(V.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(V.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),V.prototype._write=function(E,I,D){D(new w("_write()"))},V.prototype._writev=null,V.prototype.end=function(E,I,D){var F=this._writableState;return typeof E=="function"?(D=E,E=null,I=null):typeof I=="function"&&(D=I,I=null),E!=null&&this.write(E,I),F.corked&&(F.corked=1,this.uncork()),F.ending||function(Y,J,se){J.ending=!0,k(Y,J),se&&(J.finished?i.nextTick(se):Y.once("finish",se)),J.ended=!0,Y.writable=!1}(this,F,D),this},Object.defineProperty(V.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(V.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(E){this._writableState&&(this._writableState.destroyed=E)}}),V.prototype.destroy=p.destroy,V.prototype._undestroy=p.undestroy,V.prototype._destroy=function(E,I){I(E)}}).call(this)}).call(this,e("_process"),typeof _r<"u"?_r:typeof self<"u"?self:typeof window<"u"?window:{})},{"../errors":477,"./_stream_duplex":478,"./internal/streams/destroy":485,"./internal/streams/state":489,"./internal/streams/stream":490,_process:467,buffer:220,inherits:440,"util-deprecate":524}],483:[function(e,r,s){(function(i){(function(){var a;function o(M,j,A){return(j=function(B){var H=function(U,X){if(typeof U!="object"||U===null)return U;var V=U[Symbol.toPrimitive];if(V!==void 0){var O=V.call(U,X);if(typeof O!="object")return O;throw new TypeError("@@toPrimitive must return a primitive value.")}return(X==="string"?String:Number)(U)}(B,"string");return typeof H=="symbol"?H:String(H)}(j))in M?Object.defineProperty(M,j,{value:A,enumerable:!0,configurable:!0,writable:!0}):M[j]=A,M}var l=e("./end-of-stream"),c=Symbol("lastResolve"),u=Symbol("lastReject"),h=Symbol("error"),d=Symbol("ended"),f=Symbol("lastPromise"),p=Symbol("handlePromise"),g=Symbol("stream");function m(M,j){return{value:M,done:j}}function b(M){var j=M[c];if(j!==null){var A=M[g].read();A!==null&&(M[f]=null,M[c]=null,M[u]=null,j(m(A,!1)))}}function w(M){i.nextTick(b,M)}var _=Object.getPrototypeOf(function(){}),T=Object.setPrototypeOf((o(a={get stream(){return this[g]},next:function(){var M=this,j=this[h];if(j!==null)return Promise.reject(j);if(this[d])return Promise.resolve(m(void 0,!0));if(this[g].destroyed)return new Promise(function(U,X){i.nextTick(function(){M[h]?X(M[h]):U(m(void 0,!0))})});var A,B=this[f];if(B)A=new Promise(function(U,X){return function(V,O){U.then(function(){X[d]?V(m(void 0,!0)):X[p](V,O)},O)}}(B,this));else{var H=this[g].read();if(H!==null)return Promise.resolve(m(H,!1));A=new Promise(this[p])}return this[f]=A,A}},Symbol.asyncIterator,function(){return this}),o(a,"return",function(){var M=this;return new Promise(function(j,A){M[g].destroy(null,function(B){B?A(B):j(m(void 0,!0))})})}),a),_);r.exports=function(M){var j,A=Object.create(T,(o(j={},g,{value:M,writable:!0}),o(j,c,{value:null,writable:!0}),o(j,u,{value:null,writable:!0}),o(j,h,{value:null,writable:!0}),o(j,d,{value:M._readableState.endEmitted,writable:!0}),o(j,p,{value:function(B,H){var U=A[g].read();U?(A[f]=null,A[c]=null,A[u]=null,B(m(U,!1))):(A[c]=B,A[u]=H)},writable:!0}),j));return A[f]=null,l(M,function(B){if(B&&B.code!=="ERR_STREAM_PREMATURE_CLOSE"){var H=A[u];return H!==null&&(A[f]=null,A[c]=null,A[u]=null,H(B)),void(A[h]=B)}var U=A[c];U!==null&&(A[f]=null,A[c]=null,A[u]=null,U(m(void 0,!0))),A[d]=!0}),M.on("readable",w.bind(null,A)),A}}).call(this)}).call(this,e("_process"))},{"./end-of-stream":486,_process:467}],484:[function(e,r,s){function i(f,p){var g=Object.keys(f);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(f);p&&(m=m.filter(function(b){return Object.getOwnPropertyDescriptor(f,b).enumerable})),g.push.apply(g,m)}return g}function a(f){for(var p=1;p<arguments.length;p++){var g=arguments[p]!=null?arguments[p]:{};p%2?i(Object(g),!0).forEach(function(m){o(f,m,g[m])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(g)):i(Object(g)).forEach(function(m){Object.defineProperty(f,m,Object.getOwnPropertyDescriptor(g,m))})}return f}function o(f,p,g){return(p=c(p))in f?Object.defineProperty(f,p,{value:g,enumerable:!0,configurable:!0,writable:!0}):f[p]=g,f}function l(f,p){for(var g=0;g<p.length;g++){var m=p[g];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(f,c(m.key),m)}}function c(f){var p=function(g,m){if(typeof g!="object"||g===null)return g;var b=g[Symbol.toPrimitive];if(b!==void 0){var w=b.call(g,m);if(typeof w!="object")return w;throw new TypeError("@@toPrimitive must return a primitive value.")}return(m==="string"?String:Number)(g)}(f,"string");return typeof p=="symbol"?p:String(p)}var u=e("buffer").Buffer,h=e("util").inspect,d=h&&h.custom||"inspect";r.exports=function(){function f(){(function(m,b){if(!(m instanceof b))throw new TypeError("Cannot call a class as a function")})(this,f),this.head=null,this.tail=null,this.length=0}var p,g;return p=f,(g=[{key:"push",value:function(m){var b={data:m,next:null};this.length>0?this.tail.next=b:this.head=b,this.tail=b,++this.length}},{key:"unshift",value:function(m){var b={data:m,next:this.head};this.length===0&&(this.tail=b),this.head=b,++this.length}},{key:"shift",value:function(){if(this.length!==0){var m=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,m}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(m){if(this.length===0)return"";for(var b=this.head,w=""+b.data;b=b.next;)w+=m+b.data;return w}},{key:"concat",value:function(m){if(this.length===0)return u.alloc(0);for(var b,w,_,T=u.allocUnsafe(m>>>0),M=this.head,j=0;M;)b=M.data,w=T,_=j,u.prototype.copy.call(b,w,_),j+=M.data.length,M=M.next;return T}},{key:"consume",value:function(m,b){var w;return m<this.head.data.length?(w=this.head.data.slice(0,m),this.head.data=this.head.data.slice(m)):w=m===this.head.data.length?this.shift():b?this._getString(m):this._getBuffer(m),w}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(m){var b=this.head,w=1,_=b.data;for(m-=_.length;b=b.next;){var T=b.data,M=m>T.length?T.length:m;if(M===T.length?_+=T:_+=T.slice(0,m),(m-=M)==0){M===T.length?(++w,b.next?this.head=b.next:this.head=this.tail=null):(this.head=b,b.data=T.slice(M));break}++w}return this.length-=w,_}},{key:"_getBuffer",value:function(m){var b=u.allocUnsafe(m),w=this.head,_=1;for(w.data.copy(b),m-=w.data.length;w=w.next;){var T=w.data,M=m>T.length?T.length:m;if(T.copy(b,b.length-m,0,M),(m-=M)==0){M===T.length?(++_,w.next?this.head=w.next:this.head=this.tail=null):(this.head=w,w.data=T.slice(M));break}++_}return this.length-=_,b}},{key:d,value:function(m,b){return h(this,a(a({},b),{},{depth:0,customInspect:!1}))}}])&&l(p.prototype,g),Object.defineProperty(p,"prototype",{writable:!1}),f}()},{buffer:220,util:188}],485:[function(e,r,s){(function(i){(function(){function a(c,u){l(c,u),o(c)}function o(c){c._writableState&&!c._writableState.emitClose||c._readableState&&!c._readableState.emitClose||c.emit("close")}function l(c,u){c.emit("error",u)}r.exports={destroy:function(c,u){var h=this,d=this._readableState&&this._readableState.destroyed,f=this._writableState&&this._writableState.destroyed;return d||f?(u?u(c):c&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,i.nextTick(l,this,c)):i.nextTick(l,this,c)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(c||null,function(p){!u&&p?h._writableState?h._writableState.errorEmitted?i.nextTick(o,h):(h._writableState.errorEmitted=!0,i.nextTick(a,h,p)):i.nextTick(a,h,p):u?(i.nextTick(o,h),u(p)):i.nextTick(o,h)}),this)},undestroy:function(){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)},errorOrDestroy:function(c,u){var h=c._readableState,d=c._writableState;h&&h.autoDestroy||d&&d.autoDestroy?c.destroy(u):c.emit("error",u)}}}).call(this)}).call(this,e("_process"))},{_process:467}],486:[function(e,r,s){var i=e("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function a(){}r.exports=function o(l,c,u){if(typeof c=="function")return o(l,null,c);c||(c={}),u=function(M){var j=!1;return function(){if(!j){j=!0;for(var A=arguments.length,B=new Array(A),H=0;H<A;H++)B[H]=arguments[H];M.apply(this,B)}}}(u||a);var h=c.readable||c.readable!==!1&&l.readable,d=c.writable||c.writable!==!1&&l.writable,f=function(){l.writable||g()},p=l._writableState&&l._writableState.finished,g=function(){d=!1,p=!0,h||u.call(l)},m=l._readableState&&l._readableState.endEmitted,b=function(){h=!1,m=!0,d||u.call(l)},w=function(M){u.call(l,M)},_=function(){var M;return h&&!m?(l._readableState&&l._readableState.ended||(M=new i),u.call(l,M)):d&&!p?(l._writableState&&l._writableState.ended||(M=new i),u.call(l,M)):void 0},T=function(){l.req.on("finish",g)};return function(M){return M.setHeader&&typeof M.abort=="function"}(l)?(l.on("complete",g),l.on("abort",_),l.req?T():l.on("request",T)):d&&!l._writableState&&(l.on("end",f),l.on("close",f)),l.on("end",b),l.on("finish",g),c.error!==!1&&l.on("error",w),l.on("close",_),function(){l.removeListener("complete",g),l.removeListener("abort",_),l.removeListener("request",T),l.req&&l.req.removeListener("finish",g),l.removeListener("end",f),l.removeListener("close",f),l.removeListener("finish",g),l.removeListener("end",b),l.removeListener("error",w),l.removeListener("close",_)}}},{"../../../errors":477}],487:[function(e,r,s){r.exports=function(){throw new Error("Readable.from is not available in the browser")}},{}],488:[function(e,r,s){var i,a=e("../../../errors").codes,o=a.ERR_MISSING_ARGS,l=a.ERR_STREAM_DESTROYED;function c(p){if(p)throw p}function u(p,g,m,b){b=function(T){var M=!1;return function(){M||(M=!0,T.apply(void 0,arguments))}}(b);var w=!1;p.on("close",function(){w=!0}),i===void 0&&(i=e("./end-of-stream")),i(p,{readable:g,writable:m},function(T){if(T)return b(T);w=!0,b()});var _=!1;return function(T){if(!w&&!_)return _=!0,function(M){return M.setHeader&&typeof M.abort=="function"}(p)?p.abort():typeof p.destroy=="function"?p.destroy():void b(T||new l("pipe"))}}function h(p){p()}function d(p,g){return p.pipe(g)}function f(p){return p.length?typeof p[p.length-1]!="function"?c:p.pop():c}r.exports=function(){for(var p=arguments.length,g=new Array(p),m=0;m<p;m++)g[m]=arguments[m];var b,w=f(g);if(Array.isArray(g[0])&&(g=g[0]),g.length<2)throw new o("streams");var _=g.map(function(T,M){var j=M<g.length-1;return u(T,j,M>0,function(A){b||(b=A),A&&_.forEach(h),j||(_.forEach(h),w(b))})});return g.reduce(d)}},{"../../../errors":477,"./end-of-stream":486}],489:[function(e,r,s){var i=e("../../../errors").codes.ERR_INVALID_OPT_VALUE;r.exports={getHighWaterMark:function(a,o,l,c){var u=function(h,d,f){return h.highWaterMark!=null?h.highWaterMark:d?h[f]:null}(o,c,l);if(u!=null){if(!isFinite(u)||Math.floor(u)!==u||u<0)throw new i(c?l:"highWaterMark",u);return Math.floor(u)}return a.objectMode?16:16384}}},{"../../../errors":477}],490:[function(e,r,s){r.exports=e("events").EventEmitter},{events:422}],491:[function(e,r,s){(s=r.exports=e("./lib/_stream_readable.js")).Stream=s,s.Readable=s,s.Writable=e("./lib/_stream_writable.js"),s.Duplex=e("./lib/_stream_duplex.js"),s.Transform=e("./lib/_stream_transform.js"),s.PassThrough=e("./lib/_stream_passthrough.js"),s.finished=e("./lib/internal/streams/end-of-stream.js"),s.pipeline=e("./lib/internal/streams/pipeline.js")},{"./lib/_stream_duplex.js":478,"./lib/_stream_passthrough.js":479,"./lib/_stream_readable.js":480,"./lib/_stream_transform.js":481,"./lib/_stream_writable.js":482,"./lib/internal/streams/end-of-stream.js":486,"./lib/internal/streams/pipeline.js":488}],492:[function(e,r,s){var i=function(a){var o=Object.prototype,l=o.hasOwnProperty,c=Object.defineProperty||function(k,E,I){k[E]=I.value},u=typeof Symbol=="function"?Symbol:{},h=u.iterator||"@@iterator",d=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function p(k,E,I){return Object.defineProperty(k,E,{value:I,enumerable:!0,configurable:!0,writable:!0}),k[E]}try{p({},"")}catch{p=function(E,I,D){return E[I]=D}}function g(k,E,I,D){var F=E&&E.prototype instanceof w?E:w,Y=Object.create(F.prototype),J=new C(D||[]);return c(Y,"_invoke",{value:X(k,I,J)}),Y}function m(k,E,I){try{return{type:"normal",arg:k.call(E,I)}}catch(D){return{type:"throw",arg:D}}}a.wrap=g;var b={};function w(){}function _(){}function T(){}var M={};p(M,h,function(){return this});var j=Object.getPrototypeOf,A=j&&j(j(x([])));A&&A!==o&&l.call(A,h)&&(M=A);var B=T.prototype=w.prototype=Object.create(M);function H(k){["next","throw","return"].forEach(function(E){p(k,E,function(I){return this._invoke(E,I)})})}function U(k,E){var I;c(this,"_invoke",{value:function(D,F){function Y(){return new E(function(J,se){(function q(ee,L,P,G){var ne=m(k[ee],k,L);if(ne.type!=="throw"){var ce=ne.arg,ie=ce.value;return ie&&typeof ie=="object"&&l.call(ie,"__await")?E.resolve(ie.__await).then(function(ue){q("next",ue,P,G)},function(ue){q("throw",ue,P,G)}):E.resolve(ie).then(function(ue){ce.value=ue,P(ce)},function(ue){return q("throw",ue,P,G)})}G(ne.arg)})(D,F,J,se)})}return I=I?I.then(Y,Y):Y()}})}function X(k,E,I){var D="suspendedStart";return function(F,Y){if(D==="executing")throw new Error("Generator is already running");if(D==="completed"){if(F==="throw")throw Y;return S()}for(I.method=F,I.arg=Y;;){var J=I.delegate;if(J){var se=V(J,I);if(se){if(se===b)continue;return se}}if(I.method==="next")I.sent=I._sent=I.arg;else if(I.method==="throw"){if(D==="suspendedStart")throw D="completed",I.arg;I.dispatchException(I.arg)}else I.method==="return"&&I.abrupt("return",I.arg);D="executing";var q=m(k,E,I);if(q.type==="normal"){if(D=I.done?"completed":"suspendedYield",q.arg===b)continue;return{value:q.arg,done:I.done}}q.type==="throw"&&(D="completed",I.method="throw",I.arg=q.arg)}}}function V(k,E){var I=E.method,D=k.iterator[I];if(D===void 0)return E.delegate=null,I==="throw"&&k.iterator.return&&(E.method="return",E.arg=void 0,V(k,E),E.method==="throw")||I!=="return"&&(E.method="throw",E.arg=new TypeError("The iterator does not provide a '"+I+"' method")),b;var F=m(D,k.iterator,E.arg);if(F.type==="throw")return E.method="throw",E.arg=F.arg,E.delegate=null,b;var Y=F.arg;return Y?Y.done?(E[k.resultName]=Y.value,E.next=k.nextLoc,E.method!=="return"&&(E.method="next",E.arg=void 0),E.delegate=null,b):Y:(E.method="throw",E.arg=new TypeError("iterator result is not an object"),E.delegate=null,b)}function O(k){var E={tryLoc:k[0]};1 in k&&(E.catchLoc=k[1]),2 in k&&(E.finallyLoc=k[2],E.afterLoc=k[3]),this.tryEntries.push(E)}function N(k){var E=k.completion||{};E.type="normal",delete E.arg,k.completion=E}function C(k){this.tryEntries=[{tryLoc:"root"}],k.forEach(O,this),this.reset(!0)}function x(k){if(k){var E=k[h];if(E)return E.call(k);if(typeof k.next=="function")return k;if(!isNaN(k.length)){var I=-1,D=function F(){for(;++I<k.length;)if(l.call(k,I))return F.value=k[I],F.done=!1,F;return F.value=void 0,F.done=!0,F};return D.next=D}}return{next:S}}function S(){return{value:void 0,done:!0}}return _.prototype=T,c(B,"constructor",{value:T,configurable:!0}),c(T,"constructor",{value:_,configurable:!0}),_.displayName=p(T,f,"GeneratorFunction"),a.isGeneratorFunction=function(k){var E=typeof k=="function"&&k.constructor;return!!E&&(E===_||(E.displayName||E.name)==="GeneratorFunction")},a.mark=function(k){return Object.setPrototypeOf?Object.setPrototypeOf(k,T):(k.__proto__=T,p(k,f,"GeneratorFunction")),k.prototype=Object.create(B),k},a.awrap=function(k){return{__await:k}},H(U.prototype),p(U.prototype,d,function(){return this}),a.AsyncIterator=U,a.async=function(k,E,I,D,F){F===void 0&&(F=Promise);var Y=new U(g(k,E,I,D),F);return a.isGeneratorFunction(E)?Y:Y.next().then(function(J){return J.done?J.value:Y.next()})},H(B),p(B,f,"Generator"),p(B,h,function(){return this}),p(B,"toString",function(){return"[object Generator]"}),a.keys=function(k){var E=Object(k),I=[];for(var D in E)I.push(D);return I.reverse(),function F(){for(;I.length;){var Y=I.pop();if(Y in E)return F.value=Y,F.done=!1,F}return F.done=!0,F}},a.values=x,C.prototype={constructor:C,reset:function(k){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(N),!k)for(var E in this)E.charAt(0)==="t"&&l.call(this,E)&&!isNaN(+E.slice(1))&&(this[E]=void 0)},stop:function(){this.done=!0;var k=this.tryEntries[0].completion;if(k.type==="throw")throw k.arg;return this.rval},dispatchException:function(k){if(this.done)throw k;var E=this;function I(q,ee){return Y.type="throw",Y.arg=k,E.next=q,ee&&(E.method="next",E.arg=void 0),!!ee}for(var D=this.tryEntries.length-1;D>=0;--D){var F=this.tryEntries[D],Y=F.completion;if(F.tryLoc==="root")return I("end");if(F.tryLoc<=this.prev){var J=l.call(F,"catchLoc"),se=l.call(F,"finallyLoc");if(J&&se){if(this.prev<F.catchLoc)return I(F.catchLoc,!0);if(this.prev<F.finallyLoc)return I(F.finallyLoc)}else if(J){if(this.prev<F.catchLoc)return I(F.catchLoc,!0)}else{if(!se)throw new Error("try statement without catch or finally");if(this.prev<F.finallyLoc)return I(F.finallyLoc)}}}},abrupt:function(k,E){for(var I=this.tryEntries.length-1;I>=0;--I){var D=this.tryEntries[I];if(D.tryLoc<=this.prev&&l.call(D,"finallyLoc")&&this.prev<D.finallyLoc){var F=D;break}}F&&(k==="break"||k==="continue")&&F.tryLoc<=E&&E<=F.finallyLoc&&(F=null);var Y=F?F.completion:{};return Y.type=k,Y.arg=E,F?(this.method="next",this.next=F.finallyLoc,b):this.complete(Y)},complete:function(k,E){if(k.type==="throw")throw k.arg;return k.type==="break"||k.type==="continue"?this.next=k.arg:k.type==="return"?(this.rval=this.arg=k.arg,this.method="return",this.next="end"):k.type==="normal"&&E&&(this.next=E),b},finish:function(k){for(var E=this.tryEntries.length-1;E>=0;--E){var I=this.tryEntries[E];if(I.finallyLoc===k)return this.complete(I.completion,I.afterLoc),N(I),b}},catch:function(k){for(var E=this.tryEntries.length-1;E>=0;--E){var I=this.tryEntries[E];if(I.tryLoc===k){var D=I.completion;if(D.type==="throw"){var F=D.arg;N(I)}return F}}throw new Error("illegal catch attempt")},delegateYield:function(k,E,I){return this.delegate={iterator:x(k),resultName:E,nextLoc:I},this.method==="next"&&(this.arg=void 0),b}},a}(typeof r=="object"?r.exports:{});try{regeneratorRuntime=i}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=i:Function("r","regeneratorRuntime = r")(i)}},{}],493:[function(e,r,s){var i=e("buffer").Buffer,a=e("inherits"),o=e("hash-base"),l=new Array(16),c=[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],u=[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],h=[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],d=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],f=[0,1518500249,1859775393,2400959708,2840853838],p=[1352829926,1548603684,1836072691,2053994217,0];function g(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function m(j,A){return j<<A|j>>>32-A}function b(j,A,B,H,U,X,V,O){return m(j+(A^B^H)+X+V|0,O)+U|0}function w(j,A,B,H,U,X,V,O){return m(j+(A&B|~A&H)+X+V|0,O)+U|0}function _(j,A,B,H,U,X,V,O){return m(j+((A|~B)^H)+X+V|0,O)+U|0}function T(j,A,B,H,U,X,V,O){return m(j+(A&H|B&~H)+X+V|0,O)+U|0}function M(j,A,B,H,U,X,V,O){return m(j+(A^(B|~H))+X+V|0,O)+U|0}a(g,o),g.prototype._update=function(){for(var j=l,A=0;A<16;++A)j[A]=this._block.readInt32LE(4*A);for(var B=0|this._a,H=0|this._b,U=0|this._c,X=0|this._d,V=0|this._e,O=0|this._a,N=0|this._b,C=0|this._c,x=0|this._d,S=0|this._e,k=0;k<80;k+=1){var E,I;k<16?(E=b(B,H,U,X,V,j[c[k]],f[0],h[k]),I=M(O,N,C,x,S,j[u[k]],p[0],d[k])):k<32?(E=w(B,H,U,X,V,j[c[k]],f[1],h[k]),I=T(O,N,C,x,S,j[u[k]],p[1],d[k])):k<48?(E=_(B,H,U,X,V,j[c[k]],f[2],h[k]),I=_(O,N,C,x,S,j[u[k]],p[2],d[k])):k<64?(E=T(B,H,U,X,V,j[c[k]],f[3],h[k]),I=w(O,N,C,x,S,j[u[k]],p[3],d[k])):(E=M(B,H,U,X,V,j[c[k]],f[4],h[k]),I=b(O,N,C,x,S,j[u[k]],p[4],d[k])),B=V,V=X,X=m(U,10),U=H,H=E,O=S,S=x,x=m(C,10),C=N,N=I}var D=this._b+U+x|0;this._b=this._c+X+S|0,this._c=this._d+V+O|0,this._d=this._e+B+N|0,this._e=this._a+H+C|0,this._a=D},g.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 j=i.alloc?i.alloc(20):new i(20);return j.writeInt32LE(this._a,0),j.writeInt32LE(this._b,4),j.writeInt32LE(this._c,8),j.writeInt32LE(this._d,12),j.writeInt32LE(this._e,16),j},r.exports=g},{buffer:220,"hash-base":425,inherits:440}],494:[function(e,r,s){/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var i=e("buffer"),a=i.Buffer;function o(c,u){for(var h in c)u[h]=c[h]}function l(c,u,h){return a(c,u,h)}a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?r.exports=i:(o(i,s),s.Buffer=l),l.prototype=Object.create(a.prototype),o(a,l),l.from=function(c,u,h){if(typeof c=="number")throw new TypeError("Argument must not be a number");return a(c,u,h)},l.alloc=function(c,u,h){if(typeof c!="number")throw new TypeError("Argument must be a number");var d=a(c);return u!==void 0?typeof h=="string"?d.fill(u,h):d.fill(u):d.fill(0),d},l.allocUnsafe=function(c){if(typeof c!="number")throw new TypeError("Argument must be a number");return a(c)},l.allocUnsafeSlow=function(c){if(typeof c!="number")throw new TypeError("Argument must be a number");return i.SlowBuffer(c)}},{buffer:220}],495:[function(e,r,s){(function(i){(function(){var a,o=e("buffer"),l=o.Buffer,c={};for(a in o)o.hasOwnProperty(a)&&a!=="SlowBuffer"&&a!=="Buffer"&&(c[a]=o[a]);var u=c.Buffer={};for(a in l)l.hasOwnProperty(a)&&a!=="allocUnsafe"&&a!=="allocUnsafeSlow"&&(u[a]=l[a]);if(c.Buffer.prototype=l.prototype,u.from&&u.from!==Uint8Array.from||(u.from=function(h,d,f){if(typeof h=="number")throw new TypeError('The "value" argument must not be of type number. Received type '+typeof h);if(h&&h.length===void 0)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof h);return l(h,d,f)}),u.alloc||(u.alloc=function(h,d,f){if(typeof h!="number")throw new TypeError('The "size" argument must be of type number. Received type '+typeof h);if(h<0||h>=2*(1<<30))throw new RangeError('The value "'+h+'" is invalid for option "size"');var p=l(h);return d&&d.length!==0?typeof f=="string"?p.fill(d,f):p.fill(d):p.fill(0),p}),!c.kStringMaxLength)try{c.kStringMaxLength=i.binding("buffer").kStringMaxLength}catch{}c.constants||(c.constants={MAX_LENGTH:c.kMaxLength},c.kStringMaxLength&&(c.constants.MAX_STRING_LENGTH=c.kStringMaxLength)),r.exports=c}).call(this)}).call(this,e("_process"))},{_process:467,buffer:220}],496:[function(e,r,s){Object.defineProperty(s,"__esModule",{value:!0});const i=e("xmlchars/xml/1.0/ed5"),a=e("xmlchars/xml/1.1/ed2"),o=e("xmlchars/xmlns/1.0/ed3");var l=i.isS,c=i.isChar,u=i.isNameStartChar,h=i.isNameChar,d=i.S_LIST,f=i.NAME_RE,p=a.isChar,g=o.isNCNameStartChar,m=o.isNCNameChar,b=o.NC_NAME_RE;const w="http://www.w3.org/XML/1998/namespace",_="http://www.w3.org/2000/xmlns/",T={__proto__:null,xml:w,xmlns:_},M={__proto__:null,amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},j=x=>x===34||x===39,A=[34,39],B=[...A,91,62],H=[...A,60,93],U=[61,63,...d],X=[...d,62,38,60];function V(x,S,k){switch(S){case"xml":k!==w&&x.fail(`xml prefix must be bound to ${w}.`);break;case"xmlns":k!==_&&x.fail(`xmlns prefix must be bound to ${_}.`)}switch(k){case _:x.fail(S===""?`the default namespace may not be set to ${k}.`:`may not assign a prefix (even "xmlns") to the URI ${_}.`);break;case w:switch(S){case"xml":break;case"":x.fail(`the default namespace may not be set to ${k}.`);break;default:x.fail("may not assign the xml namespace to another prefix.")}}}const O=x=>b.test(x),N=x=>f.test(x);s.EVENTS=["xmldecl","text","processinginstruction","doctype","comment","opentagstart","attribute","opentag","closetag","cdata","error","end","ready"];const C={xmldecl:"xmldeclHandler",text:"textHandler",processinginstruction:"piHandler",doctype:"doctypeHandler",comment:"commentHandler",opentagstart:"openTagStartHandler",attribute:"attributeHandler",opentag:"openTagHandler",closetag:"closeTagHandler",cdata:"cdataHandler",error:"errorHandler",end:"endHandler",ready:"readyHandler"};s.SaxesParser=class{constructor(x){this.opt=x??{},this.fragmentOpt=!!this.opt.fragment;const S=this.xmlnsOpt=!!this.opt.xmlns;if(this.trackPosition=this.opt.position!==!1,this.fileName=this.opt.fileName,S){this.nameStartCheck=g,this.nameCheck=m,this.isName=O,this.processAttribs=this.processAttribsNS,this.pushAttrib=this.pushAttribNS,this.ns=Object.assign({__proto__:null},T);const k=this.opt.additionalNamespaces;k!=null&&(function(E,I){for(const D of Object.keys(I))V(E,D,I[D])}(this,k),Object.assign(this.ns,k))}else this.nameStartCheck=u,this.nameCheck=h,this.isName=N,this.processAttribs=this.processAttribsPlain,this.pushAttrib=this.pushAttribPlain;this.stateTable=[this.sBegin,this.sBeginWhitespace,this.sDoctype,this.sDoctypeQuote,this.sDTD,this.sDTDQuoted,this.sDTDOpenWaka,this.sDTDOpenWakaBang,this.sDTDComment,this.sDTDCommentEnding,this.sDTDCommentEnded,this.sDTDPI,this.sDTDPIEnding,this.sText,this.sEntity,this.sOpenWaka,this.sOpenWakaBang,this.sComment,this.sCommentEnding,this.sCommentEnded,this.sCData,this.sCDataEnding,this.sCDataEnding2,this.sPIFirstChar,this.sPIRest,this.sPIBody,this.sPIEnding,this.sXMLDeclNameStart,this.sXMLDeclName,this.sXMLDeclEq,this.sXMLDeclValueStart,this.sXMLDeclValue,this.sXMLDeclSeparator,this.sXMLDeclEnding,this.sOpenTag,this.sOpenTagSlash,this.sAttrib,this.sAttribName,this.sAttribNameSawWhite,this.sAttribValue,this.sAttribValueQuoted,this.sAttribValueClosed,this.sAttribValueUnquoted,this.sCloseTag,this.sCloseTagSawWhite],this._init()}get closed(){return this._closed}_init(){var x;this.openWakaBang="",this.text="",this.name="",this.piTarget="",this.entity="",this.q=null,this.tags=[],this.tag=null,this.topNS=null,this.chunk="",this.chunkPosition=0,this.i=0,this.prevI=0,this.carriedFromPrevious=void 0,this.forbiddenState=0,this.attribList=[];const{fragmentOpt:S}=this;this.state=S?13:0,this.reportedTextBeforeRoot=this.reportedTextAfterRoot=this.closedRoot=this.sawRoot=S,this.xmlDeclPossible=!S,this.xmlDeclExpects=["version"],this.entityReturnState=void 0;let{defaultXMLVersion:k}=this.opt;if(k===void 0){if(this.opt.forceXMLVersion===!0)throw new Error("forceXMLVersion set but defaultXMLVersion is not set");k="1.0"}this.setXMLVersion(k),this.positionAtNewLine=0,this.doctype=!1,this._closed=!1,this.xmlDecl={version:void 0,encoding:void 0,standalone:void 0},this.line=1,this.column=0,this.ENTITIES=Object.create(M),(x=this.readyHandler)===null||x===void 0||x.call(this)}get position(){return this.chunkPosition+this.i}get columnIndex(){return this.position-this.positionAtNewLine}on(x,S){this[C[x]]=S}off(x){this[C[x]]=void 0}makeError(x){var S;let k=(S=this.fileName)!==null&&S!==void 0?S:"";return this.trackPosition&&(k.length>0&&(k+=":"),k+=`${this.line}:${this.column}`),k.length>0&&(k+=": "),new Error(k+x)}fail(x){const S=this.makeError(x),k=this.errorHandler;if(k===void 0)throw S;return k(S),this}write(x){if(this.closed)return this.fail("cannot write after close; assign an onready handler.");let S=!1;x===null?(S=!0,x=""):typeof x=="object"&&(x=x.toString()),this.carriedFromPrevious!==void 0&&(x=`${this.carriedFromPrevious}${x}`,this.carriedFromPrevious=void 0);let k=x.length;const E=x.charCodeAt(k-1);!S&&(E===13||E>=55296&&E<=56319)&&(this.carriedFromPrevious=x[k-1],k--,x=x.slice(0,k));const{stateTable:I}=this;for(this.chunk=x,this.i=0;this.i<k;)I[this.state].call(this);return this.chunkPosition+=k,S?this.end():this}close(){return this.write(null)}getCode10(){const{chunk:x,i:S}=this;if(this.prevI=S,this.i=S+1,S>=x.length)return-1;const k=x.charCodeAt(S);if(this.column++,k<55296){if(k>=32||k===9)return k;switch(k){case 10:return this.line++,this.column=0,this.positionAtNewLine=this.position,10;case 13:return x.charCodeAt(S+1)===10&&(this.i=S+2),this.line++,this.column=0,this.positionAtNewLine=this.position,-2;default:return this.fail("disallowed character."),k}}if(k>56319)return k>=57344&&k<=65533||this.fail("disallowed character."),k;const E=65536+1024*(k-55296)+(x.charCodeAt(S+1)-56320);return this.i=S+2,E>1114111&&this.fail("disallowed character."),E}getCode11(){const{chunk:x,i:S}=this;if(this.prevI=S,this.i=S+1,S>=x.length)return-1;const k=x.charCodeAt(S);if(this.column++,k<55296){if(k>31&&k<127||k>159&&k!==8232||k===9)return k;switch(k){case 10:return this.line++,this.column=0,this.positionAtNewLine=this.position,10;case 13:{const I=x.charCodeAt(S+1);I!==10&&I!==133||(this.i=S+2)}case 133:case 8232:return this.line++,this.column=0,this.positionAtNewLine=this.position,-2;default:return this.fail("disallowed character."),k}}if(k>56319)return k>=57344&&k<=65533||this.fail("disallowed character."),k;const E=65536+1024*(k-55296)+(x.charCodeAt(S+1)-56320);return this.i=S+2,E>1114111&&this.fail("disallowed character."),E}getCodeNorm(){const x=this.getCode();return x===-2?10:x}unget(){this.i=this.prevI,this.column--}captureTo(x){let{i:S}=this;const{chunk:k}=this;for(;;){const E=this.getCode(),I=E===-2,D=I?10:E;if(D===-1||x.includes(D))return this.text+=k.slice(S,this.prevI),D;I&&(this.text+=k.slice(S,this.prevI)+`
448
448
  `,S=this.i)}}captureToChar(x){let{i:S}=this;const{chunk:k}=this;for(;;){let E=this.getCode();switch(E){case-2:this.text+=k.slice(S,this.prevI)+`
@@ -2094,7 +2094,7 @@ Troubleshooting URL: https://js.langchain.com/docs/troubleshooting/errors/${t}/
2094
2094
  `,n}function g6(n){return!!(n&&typeof n=="object"&&"type"in n&&n.type==="tool_call")}class Bq extends Error{constructor(t,e){super(t),Object.defineProperty(this,"output",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.output=e}}class Fq extends Kc{constructor(t){super({...t,content:""}),Object.defineProperty(this,"id",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.id=t.id}_getType(){return"remove"}get _printableFields(){return{...super._printableFields,id:this.id}}}function zq(n){return g6(n)?n:typeof n.id=="string"&&n.type==="function"&&typeof n.function=="object"&&n.function!==null&&"arguments"in n.function&&typeof n.function.arguments=="string"&&"name"in n.function&&typeof n.function.name=="string"?{id:n.id,args:JSON.parse(n.function.arguments),name:n.function.name,type:"tool_call"}:n}function Hq(n){return typeof n=="object"&&n!=null&&n.lc===1&&Array.isArray(n.id)&&n.kwargs!=null&&typeof n.kwargs=="object"}function US(n){let t,e;if(Hq(n)){const r=n.id.at(-1);r==="HumanMessage"||r==="HumanMessageChunk"?t="user":r==="AIMessage"||r==="AIMessageChunk"?t="assistant":r==="SystemMessage"||r==="SystemMessageChunk"?t="system":r==="FunctionMessage"||r==="FunctionMessageChunk"?t="function":r==="ToolMessage"||r==="ToolMessageChunk"?t="tool":t="unknown",e=n.kwargs}else{const{type:r,...s}=n;t=r,e=s}if(t==="human"||t==="user")return new ip(e);if(t==="ai"||t==="assistant"){const{tool_calls:r,...s}=e;if(!Array.isArray(r))return new Xc(e);const i=r.map(zq);return new Xc({...s,tool_calls:i})}else{if(t==="system")return new HS(e);if(t==="developer")return new HS({...e,additional_kwargs:{...e.additional_kwargs,__openai_role__:"developer"}});if(t==="tool"&&"tool_call_id"in e)return new Lq({...e,content:e.content,tool_call_id:e.tool_call_id,name:e.name});if(t==="remove"&&"id"in e&&typeof e.id=="string")return new Fq({...e,id:e.id});throw qS(new Error(`Unable to coerce message from array: only human, AI, system, developer, or tool message coercion is currently supported.
2095
2095
 
2096
2096
  Received: ${JSON.stringify(n,null,2)}`),"MESSAGE_COERCION_FAILURE")}}function op(n){if(typeof n=="string")return new ip(n);if(sp(n))return n;if(Array.isArray(n)){const[t,e]=n;return US({type:t,content:e})}else if(Pq(n)){const{role:t,...e}=n;return US({...e,type:t})}else return US(n)}function VS(n,t="Human",e="AI"){const r=[];for(const s of n){let i;if(s._getType()==="human")i=t;else if(s._getType()==="ai")i=e;else if(s._getType()==="system")i="System";else if(s._getType()==="function")i="Function";else if(s._getType()==="tool")i="Tool";else if(s._getType()==="generic")i=s.role;else throw new Error(`Got unsupported message type: ${s._getType()}`);const a=s.name?`${s.name}, `:"",o=typeof s.content=="string"?s.content:JSON.stringify(s.content,null,2);r.push(`${i}: ${a}${o}`)}return r.join(`
2097
- `)}function qq(n){var e;const t=n._getType();if(t==="human")return new ew({...n});if(t==="ai"){let r={...n};return"tool_calls"in r&&(r={...r,tool_call_chunks:(e=r.tool_calls)==null?void 0:e.map(s=>({...s,type:"tool_call_chunk",index:void 0,args:JSON.stringify(s.args)}))}),new To({...r})}else{if(t==="system")return new ap({...n});if(t==="function")return new Q0({...n});if(ld.isInstance(n))return new Z0({...n});throw new Error("Unknown message type.")}}var Dr;(function(n){n.assertEqual=s=>{};function t(s){}n.assertIs=t;function e(s){throw new Error}n.assertNever=e,n.arrayToEnum=s=>{const i={};for(const a of s)i[a]=a;return i},n.getValidEnumValues=s=>{const i=n.objectKeys(s).filter(o=>typeof s[s[o]]!="number"),a={};for(const o of i)a[o]=s[o];return n.objectValues(a)},n.objectValues=s=>n.objectKeys(s).map(function(i){return s[i]}),n.objectKeys=typeof Object.keys=="function"?s=>Object.keys(s):s=>{const i=[];for(const a in s)Object.prototype.hasOwnProperty.call(s,a)&&i.push(a);return i},n.find=(s,i)=>{for(const a of s)if(i(a))return a},n.isInteger=typeof Number.isInteger=="function"?s=>Number.isInteger(s):s=>typeof s=="number"&&Number.isFinite(s)&&Math.floor(s)===s;function r(s,i=" | "){return s.map(a=>typeof a=="string"?`'${a}'`:a).join(i)}n.joinValues=r,n.jsonStringifyReplacer=(s,i)=>typeof i=="bigint"?i.toString():i})(Dr||(Dr={}));var b6;(function(n){n.mergeShapes=(t,e)=>({...t,...e})})(b6||(b6={}));const bt=Dr.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),kl=n=>{switch(typeof n){case"undefined":return bt.undefined;case"string":return bt.string;case"number":return Number.isNaN(n)?bt.nan:bt.number;case"boolean":return bt.boolean;case"function":return bt.function;case"bigint":return bt.bigint;case"symbol":return bt.symbol;case"object":return Array.isArray(n)?bt.array:n===null?bt.null:n.then&&typeof n.then=="function"&&n.catch&&typeof n.catch=="function"?bt.promise:typeof Map<"u"&&n instanceof Map?bt.map:typeof Set<"u"&&n instanceof Set?bt.set:typeof Date<"u"&&n instanceof Date?bt.date:bt.object;default:return bt.unknown}},Je=Dr.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class Ao extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const e=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,e):this.__proto__=e,this.name="ZodError",this.issues=t}format(t){const e=t||function(i){return i.message},r={_errors:[]},s=i=>{for(const a of i.issues)if(a.code==="invalid_union")a.unionErrors.map(s);else if(a.code==="invalid_return_type")s(a.returnTypeError);else if(a.code==="invalid_arguments")s(a.argumentsError);else if(a.path.length===0)r._errors.push(e(a));else{let o=r,l=0;for(;l<a.path.length;){const c=a.path[l];l===a.path.length-1?(o[c]=o[c]||{_errors:[]},o[c]._errors.push(e(a))):o[c]=o[c]||{_errors:[]},o=o[c],l++}}};return s(this),r}static assert(t){if(!(t instanceof Ao))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Dr.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=e=>e.message){const e={},r=[];for(const s of this.issues)if(s.path.length>0){const i=s.path[0];e[i]=e[i]||[],e[i].push(t(s))}else r.push(t(s));return{formErrors:r,fieldErrors:e}}get formErrors(){return this.flatten()}}Ao.create=n=>new Ao(n);const WS=(n,t)=>{let e;switch(n.code){case Je.invalid_type:n.received===bt.undefined?e="Required":e=`Expected ${n.expected}, received ${n.received}`;break;case Je.invalid_literal:e=`Invalid literal value, expected ${JSON.stringify(n.expected,Dr.jsonStringifyReplacer)}`;break;case Je.unrecognized_keys:e=`Unrecognized key(s) in object: ${Dr.joinValues(n.keys,", ")}`;break;case Je.invalid_union:e="Invalid input";break;case Je.invalid_union_discriminator:e=`Invalid discriminator value. Expected ${Dr.joinValues(n.options)}`;break;case Je.invalid_enum_value:e=`Invalid enum value. Expected ${Dr.joinValues(n.options)}, received '${n.received}'`;break;case Je.invalid_arguments:e="Invalid function arguments";break;case Je.invalid_return_type:e="Invalid function return type";break;case Je.invalid_date:e="Invalid date";break;case Je.invalid_string:typeof n.validation=="object"?"includes"in n.validation?(e=`Invalid input: must include "${n.validation.includes}"`,typeof n.validation.position=="number"&&(e=`${e} at one or more positions greater than or equal to ${n.validation.position}`)):"startsWith"in n.validation?e=`Invalid input: must start with "${n.validation.startsWith}"`:"endsWith"in n.validation?e=`Invalid input: must end with "${n.validation.endsWith}"`:Dr.assertNever(n.validation):n.validation!=="regex"?e=`Invalid ${n.validation}`:e="Invalid";break;case Je.too_small:n.type==="array"?e=`Array must contain ${n.exact?"exactly":n.inclusive?"at least":"more than"} ${n.minimum} element(s)`:n.type==="string"?e=`String must contain ${n.exact?"exactly":n.inclusive?"at least":"over"} ${n.minimum} character(s)`:n.type==="number"?e=`Number must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${n.minimum}`:n.type==="bigint"?e=`Number must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${n.minimum}`:n.type==="date"?e=`Date must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(n.minimum))}`:e="Invalid input";break;case Je.too_big:n.type==="array"?e=`Array must contain ${n.exact?"exactly":n.inclusive?"at most":"less than"} ${n.maximum} element(s)`:n.type==="string"?e=`String must contain ${n.exact?"exactly":n.inclusive?"at most":"under"} ${n.maximum} character(s)`:n.type==="number"?e=`Number must be ${n.exact?"exactly":n.inclusive?"less than or equal to":"less than"} ${n.maximum}`:n.type==="bigint"?e=`BigInt must be ${n.exact?"exactly":n.inclusive?"less than or equal to":"less than"} ${n.maximum}`:n.type==="date"?e=`Date must be ${n.exact?"exactly":n.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(n.maximum))}`:e="Invalid input";break;case Je.custom:e="Invalid input";break;case Je.invalid_intersection_types:e="Intersection results could not be merged";break;case Je.not_multiple_of:e=`Number must be a multiple of ${n.multipleOf}`;break;case Je.not_finite:e="Number must be finite";break;default:e=t.defaultError,Dr.assertNever(n)}return{message:e}};let Uq=WS;function Vq(){return Uq}const Wq=n=>{const{data:t,path:e,errorMaps:r,issueData:s}=n,i=[...e,...s.path||[]],a={...s,path:i};if(s.message!==void 0)return{...s,path:i,message:s.message};let o="";const l=r.filter(c=>!!c).slice().reverse();for(const c of l)o=c(a,{data:t,defaultError:o}).message;return{...s,path:i,message:o}};function ht(n,t){const e=Vq(),r=Wq({issueData:t,data:n.data,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,e,e===WS?void 0:WS].filter(s=>!!s)});n.common.issues.push(r)}class fi{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,e){const r=[];for(const s of e){if(s.status==="aborted")return rr;s.status==="dirty"&&t.dirty(),r.push(s.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,e){const r=[];for(const s of e){const i=await s.key,a=await s.value;r.push({key:i,value:a})}return fi.mergeObjectSync(t,r)}static mergeObjectSync(t,e){const r={};for(const s of e){const{key:i,value:a}=s;if(i.status==="aborted"||a.status==="aborted")return rr;i.status==="dirty"&&t.dirty(),a.status==="dirty"&&t.dirty(),i.value!=="__proto__"&&(typeof a.value<"u"||s.alwaysSet)&&(r[i.value]=a.value)}return{status:t.value,value:r}}}const rr=Object.freeze({status:"aborted"}),lp=n=>({status:"dirty",value:n}),Ui=n=>({status:"valid",value:n}),y6=n=>n.status==="aborted",w6=n=>n.status==="dirty",cd=n=>n.status==="valid",tw=n=>typeof Promise<"u"&&n instanceof Promise;var St;(function(n){n.errToObj=t=>typeof t=="string"?{message:t}:t||{},n.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(St||(St={}));class El{constructor(t,e,r,s){this._cachedPath=[],this.parent=t,this.data=e,this._path=r,this._key=s}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const v6=(n,t)=>{if(cd(t))return{success:!0,data:t.value};if(!n.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const e=new Ao(n.common.issues);return this._error=e,this._error}}};function br(n){if(!n)return{};const{errorMap:t,invalid_type_error:e,required_error:r,description:s}=n;if(t&&(e||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:s}:{errorMap:(a,o)=>{const{message:l}=n;return a.code==="invalid_enum_value"?{message:l??o.defaultError}:typeof o.data>"u"?{message:l??r??o.defaultError}:a.code!=="invalid_type"?{message:o.defaultError}:{message:l??e??o.defaultError}},description:s}}class Pr{get description(){return this._def.description}_getType(t){return kl(t.data)}_getOrReturnCtx(t,e){return e||{common:t.parent.common,data:t.data,parsedType:kl(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new fi,ctx:{common:t.parent.common,data:t.data,parsedType:kl(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const e=this._parse(t);if(tw(e))throw new Error("Synchronous parse encountered promise.");return e}_parseAsync(t){const e=this._parse(t);return Promise.resolve(e)}parse(t,e){const r=this.safeParse(t,e);if(r.success)return r.data;throw r.error}safeParse(t,e){const r={common:{issues:[],async:(e==null?void 0:e.async)??!1,contextualErrorMap:e==null?void 0:e.errorMap},path:(e==null?void 0:e.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:kl(t)},s=this._parseSync({data:t,path:r.path,parent:r});return v6(r,s)}"~validate"(t){var r,s;const e={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:kl(t)};if(!this["~standard"].async)try{const i=this._parseSync({data:t,path:[],parent:e});return cd(i)?{value:i.value}:{issues:e.common.issues}}catch(i){(s=(r=i==null?void 0:i.message)==null?void 0:r.toLowerCase())!=null&&s.includes("encountered")&&(this["~standard"].async=!0),e.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:e}).then(i=>cd(i)?{value:i.value}:{issues:e.common.issues})}async parseAsync(t,e){const r=await this.safeParseAsync(t,e);if(r.success)return r.data;throw r.error}async safeParseAsync(t,e){const r={common:{issues:[],contextualErrorMap:e==null?void 0:e.errorMap,async:!0},path:(e==null?void 0:e.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:kl(t)},s=this._parse({data:t,path:r.path,parent:r}),i=await(tw(s)?s:Promise.resolve(s));return v6(r,i)}refine(t,e){const r=s=>typeof e=="string"||typeof e>"u"?{message:e}:typeof e=="function"?e(s):e;return this._refinement((s,i)=>{const a=t(s),o=()=>i.addIssue({code:Je.custom,...r(s)});return typeof Promise<"u"&&a instanceof Promise?a.then(l=>l?!0:(o(),!1)):a?!0:(o(),!1)})}refinement(t,e){return this._refinement((r,s)=>t(r)?!0:(s.addIssue(typeof e=="function"?e(r,s):e),!1))}_refinement(t){return new hd({schema:this,typeName:je.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:e=>this["~validate"](e)}}optional(){return Al.create(this,this._def)}nullable(){return fd.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return $a.create(this)}promise(){return iw.create(this,this._def)}or(t){return nw.create([this,t],this._def)}and(t){return sw.create(this,t,this._def)}transform(t){return new hd({...br(this._def),schema:this,typeName:je.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const e=typeof t=="function"?t:()=>t;return new YS({...br(this._def),innerType:this,defaultValue:e,typeName:je.ZodDefault})}brand(){return new mU({typeName:je.ZodBranded,type:this,...br(this._def)})}catch(t){const e=typeof t=="function"?t:()=>t;return new JS({...br(this._def),innerType:this,catchValue:e,typeName:je.ZodCatch})}describe(t){const e=this.constructor;return new e({...this._def,description:t})}pipe(t){return ZS.create(this,t)}readonly(){return QS.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const Gq=/^c[^\s-]{8,}$/i,Kq=/^[0-9a-z]+$/,Xq=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Yq=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Jq=/^[a-z0-9_-]{21}$/i,Zq=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,Qq=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,eU=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,tU="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let GS;const rU=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,nU=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,sU=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,iU=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,aU=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,oU=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,_6="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",lU=new RegExp(`^${_6}$`);function x6(n){let t="[0-5]\\d";n.precision?t=`${t}\\.\\d{${n.precision}}`:n.precision==null&&(t=`${t}(\\.\\d+)?`);const e=n.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${e}`}function cU(n){return new RegExp(`^${x6(n)}$`)}function uU(n){let t=`${_6}T${x6(n)}`;const e=[];return e.push(n.local?"Z?":"Z"),n.offset&&e.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${e.join("|")})`,new RegExp(`^${t}$`)}function dU(n,t){return!!((t==="v4"||!t)&&rU.test(n)||(t==="v6"||!t)&&sU.test(n))}function hU(n,t){if(!Zq.test(n))return!1;try{const[e]=n.split(".");if(!e)return!1;const r=e.replace(/-/g,"+").replace(/_/g,"/").padEnd(e.length+(4-e.length%4)%4,"="),s=JSON.parse(atob(r));return!(typeof s!="object"||s===null||"typ"in s&&(s==null?void 0:s.typ)!=="JWT"||!s.alg||t&&s.alg!==t)}catch{return!1}}function fU(n,t){return!!((t==="v4"||!t)&&nU.test(n)||(t==="v6"||!t)&&iU.test(n))}class Cl extends Pr{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==bt.string){const i=this._getOrReturnCtx(t);return ht(i,{code:Je.invalid_type,expected:bt.string,received:i.parsedType}),rr}const r=new fi;let s;for(const i of this._def.checks)if(i.kind==="min")t.data.length<i.value&&(s=this._getOrReturnCtx(t,s),ht(s,{code:Je.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="max")t.data.length>i.value&&(s=this._getOrReturnCtx(t,s),ht(s,{code:Je.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="length"){const a=t.data.length>i.value,o=t.data.length<i.value;(a||o)&&(s=this._getOrReturnCtx(t,s),a?ht(s,{code:Je.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):o&&ht(s,{code:Je.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),r.dirty())}else if(i.kind==="email")eU.test(t.data)||(s=this._getOrReturnCtx(t,s),ht(s,{validation:"email",code:Je.invalid_string,message:i.message}),r.dirty());else if(i.kind==="emoji")GS||(GS=new RegExp(tU,"u")),GS.test(t.data)||(s=this._getOrReturnCtx(t,s),ht(s,{validation:"emoji",code:Je.invalid_string,message:i.message}),r.dirty());else if(i.kind==="uuid")Yq.test(t.data)||(s=this._getOrReturnCtx(t,s),ht(s,{validation:"uuid",code:Je.invalid_string,message:i.message}),r.dirty());else if(i.kind==="nanoid")Jq.test(t.data)||(s=this._getOrReturnCtx(t,s),ht(s,{validation:"nanoid",code:Je.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid")Gq.test(t.data)||(s=this._getOrReturnCtx(t,s),ht(s,{validation:"cuid",code:Je.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid2")Kq.test(t.data)||(s=this._getOrReturnCtx(t,s),ht(s,{validation:"cuid2",code:Je.invalid_string,message:i.message}),r.dirty());else if(i.kind==="ulid")Xq.test(t.data)||(s=this._getOrReturnCtx(t,s),ht(s,{validation:"ulid",code:Je.invalid_string,message:i.message}),r.dirty());else if(i.kind==="url")try{new URL(t.data)}catch{s=this._getOrReturnCtx(t,s),ht(s,{validation:"url",code:Je.invalid_string,message:i.message}),r.dirty()}else i.kind==="regex"?(i.regex.lastIndex=0,i.regex.test(t.data)||(s=this._getOrReturnCtx(t,s),ht(s,{validation:"regex",code:Je.invalid_string,message:i.message}),r.dirty())):i.kind==="trim"?t.data=t.data.trim():i.kind==="includes"?t.data.includes(i.value,i.position)||(s=this._getOrReturnCtx(t,s),ht(s,{code:Je.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),r.dirty()):i.kind==="toLowerCase"?t.data=t.data.toLowerCase():i.kind==="toUpperCase"?t.data=t.data.toUpperCase():i.kind==="startsWith"?t.data.startsWith(i.value)||(s=this._getOrReturnCtx(t,s),ht(s,{code:Je.invalid_string,validation:{startsWith:i.value},message:i.message}),r.dirty()):i.kind==="endsWith"?t.data.endsWith(i.value)||(s=this._getOrReturnCtx(t,s),ht(s,{code:Je.invalid_string,validation:{endsWith:i.value},message:i.message}),r.dirty()):i.kind==="datetime"?uU(i).test(t.data)||(s=this._getOrReturnCtx(t,s),ht(s,{code:Je.invalid_string,validation:"datetime",message:i.message}),r.dirty()):i.kind==="date"?lU.test(t.data)||(s=this._getOrReturnCtx(t,s),ht(s,{code:Je.invalid_string,validation:"date",message:i.message}),r.dirty()):i.kind==="time"?cU(i).test(t.data)||(s=this._getOrReturnCtx(t,s),ht(s,{code:Je.invalid_string,validation:"time",message:i.message}),r.dirty()):i.kind==="duration"?Qq.test(t.data)||(s=this._getOrReturnCtx(t,s),ht(s,{validation:"duration",code:Je.invalid_string,message:i.message}),r.dirty()):i.kind==="ip"?dU(t.data,i.version)||(s=this._getOrReturnCtx(t,s),ht(s,{validation:"ip",code:Je.invalid_string,message:i.message}),r.dirty()):i.kind==="jwt"?hU(t.data,i.alg)||(s=this._getOrReturnCtx(t,s),ht(s,{validation:"jwt",code:Je.invalid_string,message:i.message}),r.dirty()):i.kind==="cidr"?fU(t.data,i.version)||(s=this._getOrReturnCtx(t,s),ht(s,{validation:"cidr",code:Je.invalid_string,message:i.message}),r.dirty()):i.kind==="base64"?aU.test(t.data)||(s=this._getOrReturnCtx(t,s),ht(s,{validation:"base64",code:Je.invalid_string,message:i.message}),r.dirty()):i.kind==="base64url"?oU.test(t.data)||(s=this._getOrReturnCtx(t,s),ht(s,{validation:"base64url",code:Je.invalid_string,message:i.message}),r.dirty()):Dr.assertNever(i);return{status:r.value,value:t.data}}_regex(t,e,r){return this.refinement(s=>t.test(s),{validation:e,code:Je.invalid_string,...St.errToObj(r)})}_addCheck(t){return new Cl({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...St.errToObj(t)})}url(t){return this._addCheck({kind:"url",...St.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...St.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...St.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...St.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...St.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...St.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...St.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...St.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...St.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...St.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...St.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...St.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(t==null?void 0:t.offset)??!1,local:(t==null?void 0:t.local)??!1,...St.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...St.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...St.errToObj(t)})}regex(t,e){return this._addCheck({kind:"regex",regex:t,...St.errToObj(e)})}includes(t,e){return this._addCheck({kind:"includes",value:t,position:e==null?void 0:e.position,...St.errToObj(e==null?void 0:e.message)})}startsWith(t,e){return this._addCheck({kind:"startsWith",value:t,...St.errToObj(e)})}endsWith(t,e){return this._addCheck({kind:"endsWith",value:t,...St.errToObj(e)})}min(t,e){return this._addCheck({kind:"min",value:t,...St.errToObj(e)})}max(t,e){return this._addCheck({kind:"max",value:t,...St.errToObj(e)})}length(t,e){return this._addCheck({kind:"length",value:t,...St.errToObj(e)})}nonempty(t){return this.min(1,St.errToObj(t))}trim(){return new Cl({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Cl({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Cl({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const e of this._def.checks)e.kind==="min"&&(t===null||e.value>t)&&(t=e.value);return t}get maxLength(){let t=null;for(const e of this._def.checks)e.kind==="max"&&(t===null||e.value<t)&&(t=e.value);return t}}Cl.create=n=>new Cl({checks:[],typeName:je.ZodString,coerce:(n==null?void 0:n.coerce)??!1,...br(n)});function pU(n,t){const e=(n.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,s=e>r?e:r,i=Number.parseInt(n.toFixed(s).replace(".","")),a=Number.parseInt(t.toFixed(s).replace(".",""));return i%a/10**s}class cp extends Pr{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==bt.number){const i=this._getOrReturnCtx(t);return ht(i,{code:Je.invalid_type,expected:bt.number,received:i.parsedType}),rr}let r;const s=new fi;for(const i of this._def.checks)i.kind==="int"?Dr.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),ht(r,{code:Je.invalid_type,expected:"integer",received:"float",message:i.message}),s.dirty()):i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(r=this._getOrReturnCtx(t,r),ht(r,{code:Je.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),s.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),ht(r,{code:Je.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),s.dirty()):i.kind==="multipleOf"?pU(t.data,i.value)!==0&&(r=this._getOrReturnCtx(t,r),ht(r,{code:Je.not_multiple_of,multipleOf:i.value,message:i.message}),s.dirty()):i.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),ht(r,{code:Je.not_finite,message:i.message}),s.dirty()):Dr.assertNever(i);return{status:s.value,value:t.data}}gte(t,e){return this.setLimit("min",t,!0,St.toString(e))}gt(t,e){return this.setLimit("min",t,!1,St.toString(e))}lte(t,e){return this.setLimit("max",t,!0,St.toString(e))}lt(t,e){return this.setLimit("max",t,!1,St.toString(e))}setLimit(t,e,r,s){return new cp({...this._def,checks:[...this._def.checks,{kind:t,value:e,inclusive:r,message:St.toString(s)}]})}_addCheck(t){return new cp({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:St.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:St.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:St.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:St.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:St.toString(t)})}multipleOf(t,e){return this._addCheck({kind:"multipleOf",value:t,message:St.toString(e)})}finite(t){return this._addCheck({kind:"finite",message:St.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:St.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:St.toString(t)})}get minValue(){let t=null;for(const e of this._def.checks)e.kind==="min"&&(t===null||e.value>t)&&(t=e.value);return t}get maxValue(){let t=null;for(const e of this._def.checks)e.kind==="max"&&(t===null||e.value<t)&&(t=e.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&Dr.isInteger(t.value))}get isFinite(){let t=null,e=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(e===null||r.value>e)&&(e=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(e)&&Number.isFinite(t)}}cp.create=n=>new cp({checks:[],typeName:je.ZodNumber,coerce:(n==null?void 0:n.coerce)||!1,...br(n)});class up extends Pr{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==bt.bigint)return this._getInvalidInput(t);let r;const s=new fi;for(const i of this._def.checks)i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(r=this._getOrReturnCtx(t,r),ht(r,{code:Je.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),s.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),ht(r,{code:Je.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),s.dirty()):i.kind==="multipleOf"?t.data%i.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),ht(r,{code:Je.not_multiple_of,multipleOf:i.value,message:i.message}),s.dirty()):Dr.assertNever(i);return{status:s.value,value:t.data}}_getInvalidInput(t){const e=this._getOrReturnCtx(t);return ht(e,{code:Je.invalid_type,expected:bt.bigint,received:e.parsedType}),rr}gte(t,e){return this.setLimit("min",t,!0,St.toString(e))}gt(t,e){return this.setLimit("min",t,!1,St.toString(e))}lte(t,e){return this.setLimit("max",t,!0,St.toString(e))}lt(t,e){return this.setLimit("max",t,!1,St.toString(e))}setLimit(t,e,r,s){return new up({...this._def,checks:[...this._def.checks,{kind:t,value:e,inclusive:r,message:St.toString(s)}]})}_addCheck(t){return new up({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:St.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:St.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:St.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:St.toString(t)})}multipleOf(t,e){return this._addCheck({kind:"multipleOf",value:t,message:St.toString(e)})}get minValue(){let t=null;for(const e of this._def.checks)e.kind==="min"&&(t===null||e.value>t)&&(t=e.value);return t}get maxValue(){let t=null;for(const e of this._def.checks)e.kind==="max"&&(t===null||e.value<t)&&(t=e.value);return t}}up.create=n=>new up({checks:[],typeName:je.ZodBigInt,coerce:(n==null?void 0:n.coerce)??!1,...br(n)});class S6 extends Pr{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==bt.boolean){const r=this._getOrReturnCtx(t);return ht(r,{code:Je.invalid_type,expected:bt.boolean,received:r.parsedType}),rr}return Ui(t.data)}}S6.create=n=>new S6({typeName:je.ZodBoolean,coerce:(n==null?void 0:n.coerce)||!1,...br(n)});class rw extends Pr{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==bt.date){const i=this._getOrReturnCtx(t);return ht(i,{code:Je.invalid_type,expected:bt.date,received:i.parsedType}),rr}if(Number.isNaN(t.data.getTime())){const i=this._getOrReturnCtx(t);return ht(i,{code:Je.invalid_date}),rr}const r=new fi;let s;for(const i of this._def.checks)i.kind==="min"?t.data.getTime()<i.value&&(s=this._getOrReturnCtx(t,s),ht(s,{code:Je.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),r.dirty()):i.kind==="max"?t.data.getTime()>i.value&&(s=this._getOrReturnCtx(t,s),ht(s,{code:Je.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),r.dirty()):Dr.assertNever(i);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new rw({...this._def,checks:[...this._def.checks,t]})}min(t,e){return this._addCheck({kind:"min",value:t.getTime(),message:St.toString(e)})}max(t,e){return this._addCheck({kind:"max",value:t.getTime(),message:St.toString(e)})}get minDate(){let t=null;for(const e of this._def.checks)e.kind==="min"&&(t===null||e.value>t)&&(t=e.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const e of this._def.checks)e.kind==="max"&&(t===null||e.value<t)&&(t=e.value);return t!=null?new Date(t):null}}rw.create=n=>new rw({checks:[],coerce:(n==null?void 0:n.coerce)||!1,typeName:je.ZodDate,...br(n)});class k6 extends Pr{_parse(t){if(this._getType(t)!==bt.symbol){const r=this._getOrReturnCtx(t);return ht(r,{code:Je.invalid_type,expected:bt.symbol,received:r.parsedType}),rr}return Ui(t.data)}}k6.create=n=>new k6({typeName:je.ZodSymbol,...br(n)});class E6 extends Pr{_parse(t){if(this._getType(t)!==bt.undefined){const r=this._getOrReturnCtx(t);return ht(r,{code:Je.invalid_type,expected:bt.undefined,received:r.parsedType}),rr}return Ui(t.data)}}E6.create=n=>new E6({typeName:je.ZodUndefined,...br(n)});class C6 extends Pr{_parse(t){if(this._getType(t)!==bt.null){const r=this._getOrReturnCtx(t);return ht(r,{code:Je.invalid_type,expected:bt.null,received:r.parsedType}),rr}return Ui(t.data)}}C6.create=n=>new C6({typeName:je.ZodNull,...br(n)});class KS extends Pr{constructor(){super(...arguments),this._any=!0}_parse(t){return Ui(t.data)}}KS.create=n=>new KS({typeName:je.ZodAny,...br(n)});class T6 extends Pr{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Ui(t.data)}}T6.create=n=>new T6({typeName:je.ZodUnknown,...br(n)});class Tl extends Pr{_parse(t){const e=this._getOrReturnCtx(t);return ht(e,{code:Je.invalid_type,expected:bt.never,received:e.parsedType}),rr}}Tl.create=n=>new Tl({typeName:je.ZodNever,...br(n)});class A6 extends Pr{_parse(t){if(this._getType(t)!==bt.undefined){const r=this._getOrReturnCtx(t);return ht(r,{code:Je.invalid_type,expected:bt.void,received:r.parsedType}),rr}return Ui(t.data)}}A6.create=n=>new A6({typeName:je.ZodVoid,...br(n)});class $a extends Pr{_parse(t){const{ctx:e,status:r}=this._processInputParams(t),s=this._def;if(e.parsedType!==bt.array)return ht(e,{code:Je.invalid_type,expected:bt.array,received:e.parsedType}),rr;if(s.exactLength!==null){const a=e.data.length>s.exactLength.value,o=e.data.length<s.exactLength.value;(a||o)&&(ht(e,{code:a?Je.too_big:Je.too_small,minimum:o?s.exactLength.value:void 0,maximum:a?s.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:s.exactLength.message}),r.dirty())}if(s.minLength!==null&&e.data.length<s.minLength.value&&(ht(e,{code:Je.too_small,minimum:s.minLength.value,type:"array",inclusive:!0,exact:!1,message:s.minLength.message}),r.dirty()),s.maxLength!==null&&e.data.length>s.maxLength.value&&(ht(e,{code:Je.too_big,maximum:s.maxLength.value,type:"array",inclusive:!0,exact:!1,message:s.maxLength.message}),r.dirty()),e.common.async)return Promise.all([...e.data].map((a,o)=>s.type._parseAsync(new El(e,a,e.path,o)))).then(a=>fi.mergeArray(r,a));const i=[...e.data].map((a,o)=>s.type._parseSync(new El(e,a,e.path,o)));return fi.mergeArray(r,i)}get element(){return this._def.type}min(t,e){return new $a({...this._def,minLength:{value:t,message:St.toString(e)}})}max(t,e){return new $a({...this._def,maxLength:{value:t,message:St.toString(e)}})}length(t,e){return new $a({...this._def,exactLength:{value:t,message:St.toString(e)}})}nonempty(t){return this.min(1,t)}}$a.create=(n,t)=>new $a({type:n,minLength:null,maxLength:null,exactLength:null,typeName:je.ZodArray,...br(t)});function ud(n){if(n instanceof Rn){const t={};for(const e in n.shape){const r=n.shape[e];t[e]=Al.create(ud(r))}return new Rn({...n._def,shape:()=>t})}else return n instanceof $a?new $a({...n._def,type:ud(n.element)}):n instanceof Al?Al.create(ud(n.unwrap())):n instanceof fd?fd.create(ud(n.unwrap())):n instanceof Jc?Jc.create(n.items.map(t=>ud(t))):n}class Rn extends Pr{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),e=Dr.objectKeys(t);return this._cached={shape:t,keys:e},this._cached}_parse(t){if(this._getType(t)!==bt.object){const c=this._getOrReturnCtx(t);return ht(c,{code:Je.invalid_type,expected:bt.object,received:c.parsedType}),rr}const{status:r,ctx:s}=this._processInputParams(t),{shape:i,keys:a}=this._getCached(),o=[];if(!(this._def.catchall instanceof Tl&&this._def.unknownKeys==="strip"))for(const c in s.data)a.includes(c)||o.push(c);const l=[];for(const c of a){const u=i[c],h=s.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new El(s,h,s.path,c)),alwaysSet:c in s.data})}if(this._def.catchall instanceof Tl){const c=this._def.unknownKeys;if(c==="passthrough")for(const u of o)l.push({key:{status:"valid",value:u},value:{status:"valid",value:s.data[u]}});else if(c==="strict")o.length>0&&(ht(s,{code:Je.unrecognized_keys,keys:o}),r.dirty());else if(c!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const c=this._def.catchall;for(const u of o){const h=s.data[u];l.push({key:{status:"valid",value:u},value:c._parse(new El(s,h,s.path,u)),alwaysSet:u in s.data})}}return s.common.async?Promise.resolve().then(async()=>{const c=[];for(const u of l){const h=await u.key,d=await u.value;c.push({key:h,value:d,alwaysSet:u.alwaysSet})}return c}).then(c=>fi.mergeObjectSync(r,c)):fi.mergeObjectSync(r,l)}get shape(){return this._def.shape()}strict(t){return St.errToObj,new Rn({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(e,r)=>{var i,a;const s=((a=(i=this._def).errorMap)==null?void 0:a.call(i,e,r).message)??r.defaultError;return e.code==="unrecognized_keys"?{message:St.errToObj(t).message??s}:{message:s}}}:{}})}strip(){return new Rn({...this._def,unknownKeys:"strip"})}passthrough(){return new Rn({...this._def,unknownKeys:"passthrough"})}extend(t){return new Rn({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Rn({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:je.ZodObject})}setKey(t,e){return this.augment({[t]:e})}catchall(t){return new Rn({...this._def,catchall:t})}pick(t){const e={};for(const r of Dr.objectKeys(t))t[r]&&this.shape[r]&&(e[r]=this.shape[r]);return new Rn({...this._def,shape:()=>e})}omit(t){const e={};for(const r of Dr.objectKeys(this.shape))t[r]||(e[r]=this.shape[r]);return new Rn({...this._def,shape:()=>e})}deepPartial(){return ud(this)}partial(t){const e={};for(const r of Dr.objectKeys(this.shape)){const s=this.shape[r];t&&!t[r]?e[r]=s:e[r]=s.optional()}return new Rn({...this._def,shape:()=>e})}required(t){const e={};for(const r of Dr.objectKeys(this.shape))if(t&&!t[r])e[r]=this.shape[r];else{let i=this.shape[r];for(;i instanceof Al;)i=i._def.innerType;e[r]=i}return new Rn({...this._def,shape:()=>e})}keyof(){return I6(Dr.objectKeys(this.shape))}}Rn.create=(n,t)=>new Rn({shape:()=>n,unknownKeys:"strip",catchall:Tl.create(),typeName:je.ZodObject,...br(t)}),Rn.strictCreate=(n,t)=>new Rn({shape:()=>n,unknownKeys:"strict",catchall:Tl.create(),typeName:je.ZodObject,...br(t)}),Rn.lazycreate=(n,t)=>new Rn({shape:n,unknownKeys:"strip",catchall:Tl.create(),typeName:je.ZodObject,...br(t)});class nw extends Pr{_parse(t){const{ctx:e}=this._processInputParams(t),r=this._def.options;function s(i){for(const o of i)if(o.result.status==="valid")return o.result;for(const o of i)if(o.result.status==="dirty")return e.common.issues.push(...o.ctx.common.issues),o.result;const a=i.map(o=>new Ao(o.ctx.common.issues));return ht(e,{code:Je.invalid_union,unionErrors:a}),rr}if(e.common.async)return Promise.all(r.map(async i=>{const a={...e,common:{...e.common,issues:[]},parent:null};return{result:await i._parseAsync({data:e.data,path:e.path,parent:a}),ctx:a}})).then(s);{let i;const a=[];for(const l of r){const c={...e,common:{...e.common,issues:[]},parent:null},u=l._parseSync({data:e.data,path:e.path,parent:c});if(u.status==="valid")return u;u.status==="dirty"&&!i&&(i={result:u,ctx:c}),c.common.issues.length&&a.push(c.common.issues)}if(i)return e.common.issues.push(...i.ctx.common.issues),i.result;const o=a.map(l=>new Ao(l));return ht(e,{code:Je.invalid_union,unionErrors:o}),rr}}get options(){return this._def.options}}nw.create=(n,t)=>new nw({options:n,typeName:je.ZodUnion,...br(t)});function XS(n,t){const e=kl(n),r=kl(t);if(n===t)return{valid:!0,data:n};if(e===bt.object&&r===bt.object){const s=Dr.objectKeys(t),i=Dr.objectKeys(n).filter(o=>s.indexOf(o)!==-1),a={...n,...t};for(const o of i){const l=XS(n[o],t[o]);if(!l.valid)return{valid:!1};a[o]=l.data}return{valid:!0,data:a}}else if(e===bt.array&&r===bt.array){if(n.length!==t.length)return{valid:!1};const s=[];for(let i=0;i<n.length;i++){const a=n[i],o=t[i],l=XS(a,o);if(!l.valid)return{valid:!1};s.push(l.data)}return{valid:!0,data:s}}else return e===bt.date&&r===bt.date&&+n==+t?{valid:!0,data:n}:{valid:!1}}class sw extends Pr{_parse(t){const{status:e,ctx:r}=this._processInputParams(t),s=(i,a)=>{if(y6(i)||y6(a))return rr;const o=XS(i.value,a.value);return o.valid?((w6(i)||w6(a))&&e.dirty(),{status:e.value,value:o.data}):(ht(r,{code:Je.invalid_intersection_types}),rr)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([i,a])=>s(i,a)):s(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}sw.create=(n,t,e)=>new sw({left:n,right:t,typeName:je.ZodIntersection,...br(e)});class Jc extends Pr{_parse(t){const{status:e,ctx:r}=this._processInputParams(t);if(r.parsedType!==bt.array)return ht(r,{code:Je.invalid_type,expected:bt.array,received:r.parsedType}),rr;if(r.data.length<this._def.items.length)return ht(r,{code:Je.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),rr;!this._def.rest&&r.data.length>this._def.items.length&&(ht(r,{code:Je.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),e.dirty());const i=[...r.data].map((a,o)=>{const l=this._def.items[o]||this._def.rest;return l?l._parse(new El(r,a,r.path,o)):null}).filter(a=>!!a);return r.common.async?Promise.all(i).then(a=>fi.mergeArray(e,a)):fi.mergeArray(e,i)}get items(){return this._def.items}rest(t){return new Jc({...this._def,rest:t})}}Jc.create=(n,t)=>{if(!Array.isArray(n))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Jc({items:n,typeName:je.ZodTuple,rest:null,...br(t)})};class R6 extends Pr{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:e,ctx:r}=this._processInputParams(t);if(r.parsedType!==bt.map)return ht(r,{code:Je.invalid_type,expected:bt.map,received:r.parsedType}),rr;const s=this._def.keyType,i=this._def.valueType,a=[...r.data.entries()].map(([o,l],c)=>({key:s._parse(new El(r,o,r.path,[c,"key"])),value:i._parse(new El(r,l,r.path,[c,"value"]))}));if(r.common.async){const o=new Map;return Promise.resolve().then(async()=>{for(const l of a){const c=await l.key,u=await l.value;if(c.status==="aborted"||u.status==="aborted")return rr;(c.status==="dirty"||u.status==="dirty")&&e.dirty(),o.set(c.value,u.value)}return{status:e.value,value:o}})}else{const o=new Map;for(const l of a){const c=l.key,u=l.value;if(c.status==="aborted"||u.status==="aborted")return rr;(c.status==="dirty"||u.status==="dirty")&&e.dirty(),o.set(c.value,u.value)}return{status:e.value,value:o}}}}R6.create=(n,t,e)=>new R6({valueType:t,keyType:n,typeName:je.ZodMap,...br(e)});class dp extends Pr{_parse(t){const{status:e,ctx:r}=this._processInputParams(t);if(r.parsedType!==bt.set)return ht(r,{code:Je.invalid_type,expected:bt.set,received:r.parsedType}),rr;const s=this._def;s.minSize!==null&&r.data.size<s.minSize.value&&(ht(r,{code:Je.too_small,minimum:s.minSize.value,type:"set",inclusive:!0,exact:!1,message:s.minSize.message}),e.dirty()),s.maxSize!==null&&r.data.size>s.maxSize.value&&(ht(r,{code:Je.too_big,maximum:s.maxSize.value,type:"set",inclusive:!0,exact:!1,message:s.maxSize.message}),e.dirty());const i=this._def.valueType;function a(l){const c=new Set;for(const u of l){if(u.status==="aborted")return rr;u.status==="dirty"&&e.dirty(),c.add(u.value)}return{status:e.value,value:c}}const o=[...r.data.values()].map((l,c)=>i._parse(new El(r,l,r.path,c)));return r.common.async?Promise.all(o).then(l=>a(l)):a(o)}min(t,e){return new dp({...this._def,minSize:{value:t,message:St.toString(e)}})}max(t,e){return new dp({...this._def,maxSize:{value:t,message:St.toString(e)}})}size(t,e){return this.min(t,e).max(t,e)}nonempty(t){return this.min(1,t)}}dp.create=(n,t)=>new dp({valueType:n,minSize:null,maxSize:null,typeName:je.ZodSet,...br(t)});class O6 extends Pr{get schema(){return this._def.getter()}_parse(t){const{ctx:e}=this._processInputParams(t);return this._def.getter()._parse({data:e.data,path:e.path,parent:e})}}O6.create=(n,t)=>new O6({getter:n,typeName:je.ZodLazy,...br(t)});class M6 extends Pr{_parse(t){if(t.data!==this._def.value){const e=this._getOrReturnCtx(t);return ht(e,{received:e.data,code:Je.invalid_literal,expected:this._def.value}),rr}return{status:"valid",value:t.data}}get value(){return this._def.value}}M6.create=(n,t)=>new M6({value:n,typeName:je.ZodLiteral,...br(t)});function I6(n,t){return new dd({values:n,typeName:je.ZodEnum,...br(t)})}class dd extends Pr{_parse(t){if(typeof t.data!="string"){const e=this._getOrReturnCtx(t),r=this._def.values;return ht(e,{expected:Dr.joinValues(r),received:e.parsedType,code:Je.invalid_type}),rr}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const e=this._getOrReturnCtx(t),r=this._def.values;return ht(e,{received:e.data,code:Je.invalid_enum_value,options:r}),rr}return Ui(t.data)}get options(){return this._def.values}get enum(){const t={};for(const e of this._def.values)t[e]=e;return t}get Values(){const t={};for(const e of this._def.values)t[e]=e;return t}get Enum(){const t={};for(const e of this._def.values)t[e]=e;return t}extract(t,e=this._def){return dd.create(t,{...this._def,...e})}exclude(t,e=this._def){return dd.create(this.options.filter(r=>!t.includes(r)),{...this._def,...e})}}dd.create=I6;class N6 extends Pr{_parse(t){const e=Dr.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==bt.string&&r.parsedType!==bt.number){const s=Dr.objectValues(e);return ht(r,{expected:Dr.joinValues(s),received:r.parsedType,code:Je.invalid_type}),rr}if(this._cache||(this._cache=new Set(Dr.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const s=Dr.objectValues(e);return ht(r,{received:r.data,code:Je.invalid_enum_value,options:s}),rr}return Ui(t.data)}get enum(){return this._def.values}}N6.create=(n,t)=>new N6({values:n,typeName:je.ZodNativeEnum,...br(t)});class iw extends Pr{unwrap(){return this._def.type}_parse(t){const{ctx:e}=this._processInputParams(t);if(e.parsedType!==bt.promise&&e.common.async===!1)return ht(e,{code:Je.invalid_type,expected:bt.promise,received:e.parsedType}),rr;const r=e.parsedType===bt.promise?e.data:Promise.resolve(e.data);return Ui(r.then(s=>this._def.type.parseAsync(s,{path:e.path,errorMap:e.common.contextualErrorMap})))}}iw.create=(n,t)=>new iw({type:n,typeName:je.ZodPromise,...br(t)});class hd extends Pr{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===je.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:e,ctx:r}=this._processInputParams(t),s=this._def.effect||null,i={addIssue:a=>{ht(r,a),a.fatal?e.abort():e.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),s.type==="preprocess"){const a=s.transform(r.data,i);if(r.common.async)return Promise.resolve(a).then(async o=>{if(e.value==="aborted")return rr;const l=await this._def.schema._parseAsync({data:o,path:r.path,parent:r});return l.status==="aborted"?rr:l.status==="dirty"||e.value==="dirty"?lp(l.value):l});{if(e.value==="aborted")return rr;const o=this._def.schema._parseSync({data:a,path:r.path,parent:r});return o.status==="aborted"?rr:o.status==="dirty"||e.value==="dirty"?lp(o.value):o}}if(s.type==="refinement"){const a=o=>{const l=s.refinement(o,i);if(r.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return o};if(r.common.async===!1){const o=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?rr:(o.status==="dirty"&&e.dirty(),a(o.value),{status:e.value,value:o.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(o=>o.status==="aborted"?rr:(o.status==="dirty"&&e.dirty(),a(o.value).then(()=>({status:e.value,value:o.value}))))}if(s.type==="transform")if(r.common.async===!1){const a=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!cd(a))return rr;const o=s.transform(a.value,i);if(o instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:e.value,value:o}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(a=>cd(a)?Promise.resolve(s.transform(a.value,i)).then(o=>({status:e.value,value:o})):rr);Dr.assertNever(s)}}hd.create=(n,t,e)=>new hd({schema:n,typeName:je.ZodEffects,effect:t,...br(e)}),hd.createWithPreprocess=(n,t,e)=>new hd({schema:t,effect:{type:"preprocess",transform:n},typeName:je.ZodEffects,...br(e)});class Al extends Pr{_parse(t){return this._getType(t)===bt.undefined?Ui(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Al.create=(n,t)=>new Al({innerType:n,typeName:je.ZodOptional,...br(t)});class fd extends Pr{_parse(t){return this._getType(t)===bt.null?Ui(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}fd.create=(n,t)=>new fd({innerType:n,typeName:je.ZodNullable,...br(t)});class YS extends Pr{_parse(t){const{ctx:e}=this._processInputParams(t);let r=e.data;return e.parsedType===bt.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:e.path,parent:e})}removeDefault(){return this._def.innerType}}YS.create=(n,t)=>new YS({innerType:n,typeName:je.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...br(t)});class JS extends Pr{_parse(t){const{ctx:e}=this._processInputParams(t),r={...e,common:{...e.common,issues:[]}},s=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return tw(s)?s.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new Ao(r.common.issues)},input:r.data})})):{status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new Ao(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}JS.create=(n,t)=>new JS({innerType:n,typeName:je.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...br(t)});class P6 extends Pr{_parse(t){if(this._getType(t)!==bt.nan){const r=this._getOrReturnCtx(t);return ht(r,{code:Je.invalid_type,expected:bt.nan,received:r.parsedType}),rr}return{status:"valid",value:t.data}}}P6.create=n=>new P6({typeName:je.ZodNaN,...br(n)});class mU extends Pr{_parse(t){const{ctx:e}=this._processInputParams(t),r=e.data;return this._def.type._parse({data:r,path:e.path,parent:e})}unwrap(){return this._def.type}}class ZS extends Pr{_parse(t){const{status:e,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const i=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?rr:i.status==="dirty"?(e.dirty(),lp(i.value)):this._def.out._parseAsync({data:i.value,path:r.path,parent:r})})();{const s=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?rr:s.status==="dirty"?(e.dirty(),{status:"dirty",value:s.value}):this._def.out._parseSync({data:s.value,path:r.path,parent:r})}}static create(t,e){return new ZS({in:t,out:e,typeName:je.ZodPipeline})}}class QS extends Pr{_parse(t){const e=this._def.innerType._parse(t),r=s=>(cd(s)&&(s.value=Object.freeze(s.value)),s);return tw(e)?e.then(s=>r(s)):r(e)}unwrap(){return this._def.innerType}}QS.create=(n,t)=>new QS({innerType:n,typeName:je.ZodReadonly,...br(t)});var je;(function(n){n.ZodString="ZodString",n.ZodNumber="ZodNumber",n.ZodNaN="ZodNaN",n.ZodBigInt="ZodBigInt",n.ZodBoolean="ZodBoolean",n.ZodDate="ZodDate",n.ZodSymbol="ZodSymbol",n.ZodUndefined="ZodUndefined",n.ZodNull="ZodNull",n.ZodAny="ZodAny",n.ZodUnknown="ZodUnknown",n.ZodNever="ZodNever",n.ZodVoid="ZodVoid",n.ZodArray="ZodArray",n.ZodObject="ZodObject",n.ZodUnion="ZodUnion",n.ZodDiscriminatedUnion="ZodDiscriminatedUnion",n.ZodIntersection="ZodIntersection",n.ZodTuple="ZodTuple",n.ZodRecord="ZodRecord",n.ZodMap="ZodMap",n.ZodSet="ZodSet",n.ZodFunction="ZodFunction",n.ZodLazy="ZodLazy",n.ZodLiteral="ZodLiteral",n.ZodEnum="ZodEnum",n.ZodEffects="ZodEffects",n.ZodNativeEnum="ZodNativeEnum",n.ZodOptional="ZodOptional",n.ZodNullable="ZodNullable",n.ZodDefault="ZodDefault",n.ZodCatch="ZodCatch",n.ZodPromise="ZodPromise",n.ZodBranded="ZodBranded",n.ZodPipeline="ZodPipeline",n.ZodReadonly="ZodReadonly"})(je||(je={}));const $6=Cl.create,L6=KS.create;Tl.create,$a.create;const j6=Rn.create;nw.create,sw.create,Jc.create,dd.create,iw.create,Al.create,fd.create;var aw={exports:{}},D6={};function Vi(n,t){typeof t=="boolean"&&(t={forever:t}),this._originalTimeouts=JSON.parse(JSON.stringify(n)),this._timeouts=n,this._options=t||{},this._maxRetryTime=t&&t.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}var gU=Vi;Vi.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)},Vi.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null},Vi.prototype.retry=function(n){if(this._timeout&&clearTimeout(this._timeout),!n)return!1;var t=new Date().getTime();if(n&&t-this._operationStart>=this._maxRetryTime)return this._errors.push(n),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(n);var e=this._timeouts.shift();if(e===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),e=this._cachedTimeouts.slice(-1);else return!1;var r=this;return this._timer=setTimeout(function(){r._attempts++,r._operationTimeoutCb&&(r._timeout=setTimeout(function(){r._operationTimeoutCb(r._attempts)},r._operationTimeout),r._options.unref&&r._timeout.unref()),r._fn(r._attempts)},e),this._options.unref&&this._timer.unref(),!0},Vi.prototype.attempt=function(n,t){this._fn=n,t&&(t.timeout&&(this._operationTimeout=t.timeout),t.cb&&(this._operationTimeoutCb=t.cb));var e=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){e._operationTimeoutCb()},e._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)},Vi.prototype.try=function(n){console.log("Using RetryOperation.try() is deprecated"),this.attempt(n)},Vi.prototype.start=function(n){console.log("Using RetryOperation.start() is deprecated"),this.attempt(n)},Vi.prototype.start=Vi.prototype.try,Vi.prototype.errors=function(){return this._errors},Vi.prototype.attempts=function(){return this._attempts},Vi.prototype.mainError=function(){if(this._errors.length===0)return null;for(var n={},t=null,e=0,r=0;r<this._errors.length;r++){var s=this._errors[r],i=s.message,a=(n[i]||0)+1;n[i]=a,a>=e&&(t=s,e=a)}return t},function(n){var t=gU;n.operation=function(e){var r=n.timeouts(e);return new t(r,{forever:e&&(e.forever||e.retries===1/0),unref:e&&e.unref,maxRetryTime:e&&e.maxRetryTime})},n.timeouts=function(e){if(e instanceof Array)return[].concat(e);var r={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var s in e)r[s]=e[s];if(r.minTimeout>r.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var i=[],a=0;a<r.retries;a++)i.push(this.createTimeout(a,r));return e&&e.forever&&!i.length&&i.push(this.createTimeout(a,r)),i.sort(function(o,l){return o-l}),i},n.createTimeout=function(e,r){var s=r.randomize?Math.random()+1:1,i=Math.round(s*Math.max(r.minTimeout,1)*Math.pow(r.factor,e));return i=Math.min(i,r.maxTimeout),i},n.wrap=function(e,r,s){if(r instanceof Array&&(s=r,r=null),!s){s=[];for(var i in e)typeof e[i]=="function"&&s.push(i)}for(var a=0;a<s.length;a++){var o=s[a],l=e[o];e[o]=(function(u){var h=n.operation(r),d=Array.prototype.slice.call(arguments,1),f=d.pop();d.push(function(p){h.retry(p)||(p&&(arguments[0]=h.mainError()),f.apply(this,arguments))}),h.attempt(function(){u.apply(e,d)})}).bind(e,l),e[o].options=r}}}(D6);var bU=D6;const yU=bU,wU=["Failed to fetch","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Network request failed"];let B6=class extends Error{constructor(t){super(),t instanceof Error?(this.originalError=t,{message:t}=t):(this.originalError=new Error(t),this.originalError.stack=this.stack),this.name="AbortError",this.message=t}};const vU=(n,t,e)=>{const r=e.retries-(t-1);return n.attemptNumber=t,n.retriesLeft=r,n},_U=n=>wU.includes(n),F6=(n,t)=>new Promise((e,r)=>{t={onFailedAttempt:()=>{},retries:10,...t};const s=yU.operation(t);s.attempt(async i=>{try{e(await n(i))}catch(a){if(!(a instanceof Error)){r(new TypeError(`Non-error was thrown: "${a}". You should only throw errors.`));return}if(a instanceof B6)s.stop(),r(a.originalError);else if(a instanceof TypeError&&!_U(a.message))s.stop(),r(a);else{vU(a,i,t);try{await t.onFailedAttempt(a)}catch(o){r(o);return}s.retry(a)||r(s.mainError())}}})});aw.exports=F6,aw.exports.default=F6,aw.exports.AbortError=B6;var xU=aw.exports;const ek=jf(xU),SU=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;function hp(n){return typeof n=="string"&&SU.test(n)}function kU(n){if(!hp(n))throw TypeError("Invalid UUID");var t,e=new Uint8Array(16);return e[0]=(t=parseInt(n.slice(0,8),16))>>>24,e[1]=t>>>16&255,e[2]=t>>>8&255,e[3]=t&255,e[4]=(t=parseInt(n.slice(9,13),16))>>>8,e[5]=t&255,e[6]=(t=parseInt(n.slice(14,18),16))>>>8,e[7]=t&255,e[8]=(t=parseInt(n.slice(19,23),16))>>>8,e[9]=t&255,e[10]=(t=parseInt(n.slice(24,36),16))/1099511627776&255,e[11]=t/4294967296&255,e[12]=t>>>24&255,e[13]=t>>>16&255,e[14]=t>>>8&255,e[15]=t&255,e}for(var ss=[],tk=0;tk<256;++tk)ss.push((tk+256).toString(16).slice(1));function rk(n,t=0){return(ss[n[t+0]]+ss[n[t+1]]+ss[n[t+2]]+ss[n[t+3]]+"-"+ss[n[t+4]]+ss[n[t+5]]+"-"+ss[n[t+6]]+ss[n[t+7]]+"-"+ss[n[t+8]]+ss[n[t+9]]+"-"+ss[n[t+10]]+ss[n[t+11]]+ss[n[t+12]]+ss[n[t+13]]+ss[n[t+14]]+ss[n[t+15]]).toLowerCase()}var ow,EU=new Uint8Array(16);function z6(){if(!ow&&(ow=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!ow))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ow(EU)}function CU(n){n=unescape(encodeURIComponent(n));for(var t=[],e=0;e<n.length;++e)t.push(n.charCodeAt(e));return t}var TU="6ba7b810-9dad-11d1-80b4-00c04fd430c8",AU="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function RU(n,t,e){function r(s,i,a,o){var l;if(typeof s=="string"&&(s=CU(s)),typeof i=="string"&&(i=kU(i)),((l=i)===null||l===void 0?void 0:l.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var c=new Uint8Array(16+s.length);if(c.set(i),c.set(s,i.length),c=e(c),c[6]=c[6]&15|t,c[8]=c[8]&63|128,a){o=o||0;for(var u=0;u<16;++u)a[o+u]=c[u];return a}return rk(c)}try{r.name=n}catch{}return r.DNS=TU,r.URL=AU,r}var OU=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const H6={randomUUID:OU};function Ks(n,t,e){if(H6.randomUUID&&!n)return H6.randomUUID();n=n||{};var r=n.random||(n.rng||z6)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,rk(r)}function MU(n,t,e,r){switch(n){case 0:return t&e^~t&r;case 1:return t^e^r;case 2:return t&e^t&r^e&r;case 3:return t^e^r}}function nk(n,t){return n<<t|n>>>32-t}function IU(n){var t=[1518500249,1859775393,2400959708,3395469782],e=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof n=="string"){var r=unescape(encodeURIComponent(n));n=[];for(var s=0;s<r.length;++s)n.push(r.charCodeAt(s))}else Array.isArray(n)||(n=Array.prototype.slice.call(n));n.push(128);for(var i=n.length/4+2,a=Math.ceil(i/16),o=new Array(a),l=0;l<a;++l){for(var c=new Uint32Array(16),u=0;u<16;++u)c[u]=n[l*64+u*4]<<24|n[l*64+u*4+1]<<16|n[l*64+u*4+2]<<8|n[l*64+u*4+3];o[l]=c}o[a-1][14]=(n.length-1)*8/Math.pow(2,32),o[a-1][14]=Math.floor(o[a-1][14]),o[a-1][15]=(n.length-1)*8&4294967295;for(var h=0;h<a;++h){for(var d=new Uint32Array(80),f=0;f<16;++f)d[f]=o[h][f];for(var p=16;p<80;++p)d[p]=nk(d[p-3]^d[p-8]^d[p-14]^d[p-16],1);for(var g=e[0],m=e[1],b=e[2],w=e[3],_=e[4],T=0;T<80;++T){var M=Math.floor(T/20),j=nk(g,5)+MU(M,m,b,w)+_+t[M]+d[T]>>>0;_=w,w=b,b=nk(m,30)>>>0,m=g,g=j}e[0]=e[0]+g>>>0,e[1]=e[1]+m>>>0,e[2]=e[2]+b>>>0,e[3]=e[3]+w>>>0,e[4]=e[4]+_>>>0}return[e[0]>>24&255,e[0]>>16&255,e[0]>>8&255,e[0]&255,e[1]>>24&255,e[1]>>16&255,e[1]>>8&255,e[1]&255,e[2]>>24&255,e[2]>>16&255,e[2]>>8&255,e[2]&255,e[3]>>24&255,e[3]>>16&255,e[3]>>8&255,e[3]&255,e[4]>>24&255,e[4]>>16&255,e[4]>>8&255,e[4]&255]}var fp=RU("v5",80,IU),q6=null,U6=null,ia=0;function NU(n,t,e){n=n||{};var r=0,s=new Uint8Array(16),i=n.random||(n.rng||z6)(),a=n.msecs!==void 0?n.msecs:Date.now(),o=n.seq!==void 0?n.seq:null,l=U6,c=q6;return a>ia&&n.msecs===void 0&&(ia=a,o!==null&&(l=null,c=null)),o!==null&&(o>2147483647&&(o=2147483647),l=o>>>19&4095,c=o&524287),(l===null||c===null)&&(l=i[6]&127,l=l<<8|i[7],c=i[8]&63,c=c<<8|i[9],c=c<<5|i[10]>>>3),a+1e4>ia&&o===null?++c>524287&&(c=0,++l>4095&&(l=0,ia++)):ia=a,U6=l,q6=c,s[r++]=ia/1099511627776&255,s[r++]=ia/4294967296&255,s[r++]=ia/16777216&255,s[r++]=ia/65536&255,s[r++]=ia/256&255,s[r++]=ia&255,s[r++]=l>>>4&15|112,s[r++]=l&255,s[r++]=c>>>13&63|128,s[r++]=c>>>5&255,s[r++]=c<<3&255|i[10]&7,s[r++]=i[11],s[r++]=i[12],s[r++]=i[13],s[r++]=i[14],s[r++]=i[15],t||rk(s)}let PU=class{getStore(){}run(t,e){return e()}};const sk=Symbol.for("ls:tracing_async_local_storage"),$U=new PU;let LU=class{getInstance(){return globalThis[sk]??$U}initializeGlobalInstance(t){globalThis[sk]===void 0&&(globalThis[sk]=t)}};const jU=new LU;function DU(n=!1){const t=jU.getInstance().getStore();if(!n&&t===void 0)throw new Error(`Could not get the current run tree.
2097
+ `)}function qq(n){var e;const t=n._getType();if(t==="human")return new ew({...n});if(t==="ai"){let r={...n};return"tool_calls"in r&&(r={...r,tool_call_chunks:(e=r.tool_calls)==null?void 0:e.map(s=>({...s,type:"tool_call_chunk",index:void 0,args:JSON.stringify(s.args)}))}),new To({...r})}else{if(t==="system")return new ap({...n});if(t==="function")return new Q0({...n});if(ld.isInstance(n))return new Z0({...n});throw new Error("Unknown message type.")}}var Dr;(function(n){n.assertEqual=s=>{};function t(s){}n.assertIs=t;function e(s){throw new Error}n.assertNever=e,n.arrayToEnum=s=>{const i={};for(const a of s)i[a]=a;return i},n.getValidEnumValues=s=>{const i=n.objectKeys(s).filter(o=>typeof s[s[o]]!="number"),a={};for(const o of i)a[o]=s[o];return n.objectValues(a)},n.objectValues=s=>n.objectKeys(s).map(function(i){return s[i]}),n.objectKeys=typeof Object.keys=="function"?s=>Object.keys(s):s=>{const i=[];for(const a in s)Object.prototype.hasOwnProperty.call(s,a)&&i.push(a);return i},n.find=(s,i)=>{for(const a of s)if(i(a))return a},n.isInteger=typeof Number.isInteger=="function"?s=>Number.isInteger(s):s=>typeof s=="number"&&Number.isFinite(s)&&Math.floor(s)===s;function r(s,i=" | "){return s.map(a=>typeof a=="string"?`'${a}'`:a).join(i)}n.joinValues=r,n.jsonStringifyReplacer=(s,i)=>typeof i=="bigint"?i.toString():i})(Dr||(Dr={}));var b6;(function(n){n.mergeShapes=(t,e)=>({...t,...e})})(b6||(b6={}));const bt=Dr.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),kl=n=>{switch(typeof n){case"undefined":return bt.undefined;case"string":return bt.string;case"number":return Number.isNaN(n)?bt.nan:bt.number;case"boolean":return bt.boolean;case"function":return bt.function;case"bigint":return bt.bigint;case"symbol":return bt.symbol;case"object":return Array.isArray(n)?bt.array:n===null?bt.null:n.then&&typeof n.then=="function"&&n.catch&&typeof n.catch=="function"?bt.promise:typeof Map<"u"&&n instanceof Map?bt.map:typeof Set<"u"&&n instanceof Set?bt.set:typeof Date<"u"&&n instanceof Date?bt.date:bt.object;default:return bt.unknown}},Je=Dr.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class Ao extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const e=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,e):this.__proto__=e,this.name="ZodError",this.issues=t}format(t){const e=t||function(i){return i.message},r={_errors:[]},s=i=>{for(const a of i.issues)if(a.code==="invalid_union")a.unionErrors.map(s);else if(a.code==="invalid_return_type")s(a.returnTypeError);else if(a.code==="invalid_arguments")s(a.argumentsError);else if(a.path.length===0)r._errors.push(e(a));else{let o=r,l=0;for(;l<a.path.length;){const c=a.path[l];l===a.path.length-1?(o[c]=o[c]||{_errors:[]},o[c]._errors.push(e(a))):o[c]=o[c]||{_errors:[]},o=o[c],l++}}};return s(this),r}static assert(t){if(!(t instanceof Ao))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Dr.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=e=>e.message){const e={},r=[];for(const s of this.issues)if(s.path.length>0){const i=s.path[0];e[i]=e[i]||[],e[i].push(t(s))}else r.push(t(s));return{formErrors:r,fieldErrors:e}}get formErrors(){return this.flatten()}}Ao.create=n=>new Ao(n);const WS=(n,t)=>{let e;switch(n.code){case Je.invalid_type:n.received===bt.undefined?e="Required":e=`Expected ${n.expected}, received ${n.received}`;break;case Je.invalid_literal:e=`Invalid literal value, expected ${JSON.stringify(n.expected,Dr.jsonStringifyReplacer)}`;break;case Je.unrecognized_keys:e=`Unrecognized key(s) in object: ${Dr.joinValues(n.keys,", ")}`;break;case Je.invalid_union:e="Invalid input";break;case Je.invalid_union_discriminator:e=`Invalid discriminator value. Expected ${Dr.joinValues(n.options)}`;break;case Je.invalid_enum_value:e=`Invalid enum value. Expected ${Dr.joinValues(n.options)}, received '${n.received}'`;break;case Je.invalid_arguments:e="Invalid function arguments";break;case Je.invalid_return_type:e="Invalid function return type";break;case Je.invalid_date:e="Invalid date";break;case Je.invalid_string:typeof n.validation=="object"?"includes"in n.validation?(e=`Invalid input: must include "${n.validation.includes}"`,typeof n.validation.position=="number"&&(e=`${e} at one or more positions greater than or equal to ${n.validation.position}`)):"startsWith"in n.validation?e=`Invalid input: must start with "${n.validation.startsWith}"`:"endsWith"in n.validation?e=`Invalid input: must end with "${n.validation.endsWith}"`:Dr.assertNever(n.validation):n.validation!=="regex"?e=`Invalid ${n.validation}`:e="Invalid";break;case Je.too_small:n.type==="array"?e=`Array must contain ${n.exact?"exactly":n.inclusive?"at least":"more than"} ${n.minimum} element(s)`:n.type==="string"?e=`String must contain ${n.exact?"exactly":n.inclusive?"at least":"over"} ${n.minimum} character(s)`:n.type==="number"?e=`Number must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${n.minimum}`:n.type==="bigint"?e=`Number must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${n.minimum}`:n.type==="date"?e=`Date must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(n.minimum))}`:e="Invalid input";break;case Je.too_big:n.type==="array"?e=`Array must contain ${n.exact?"exactly":n.inclusive?"at most":"less than"} ${n.maximum} element(s)`:n.type==="string"?e=`String must contain ${n.exact?"exactly":n.inclusive?"at most":"under"} ${n.maximum} character(s)`:n.type==="number"?e=`Number must be ${n.exact?"exactly":n.inclusive?"less than or equal to":"less than"} ${n.maximum}`:n.type==="bigint"?e=`BigInt must be ${n.exact?"exactly":n.inclusive?"less than or equal to":"less than"} ${n.maximum}`:n.type==="date"?e=`Date must be ${n.exact?"exactly":n.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(n.maximum))}`:e="Invalid input";break;case Je.custom:e="Invalid input";break;case Je.invalid_intersection_types:e="Intersection results could not be merged";break;case Je.not_multiple_of:e=`Number must be a multiple of ${n.multipleOf}`;break;case Je.not_finite:e="Number must be finite";break;default:e=t.defaultError,Dr.assertNever(n)}return{message:e}};let Uq=WS;function Vq(){return Uq}const Wq=n=>{const{data:t,path:e,errorMaps:r,issueData:s}=n,i=[...e,...s.path||[]],a={...s,path:i};if(s.message!==void 0)return{...s,path:i,message:s.message};let o="";const l=r.filter(c=>!!c).slice().reverse();for(const c of l)o=c(a,{data:t,defaultError:o}).message;return{...s,path:i,message:o}};function ht(n,t){const e=Vq(),r=Wq({issueData:t,data:n.data,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,e,e===WS?void 0:WS].filter(s=>!!s)});n.common.issues.push(r)}class fi{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,e){const r=[];for(const s of e){if(s.status==="aborted")return rr;s.status==="dirty"&&t.dirty(),r.push(s.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,e){const r=[];for(const s of e){const i=await s.key,a=await s.value;r.push({key:i,value:a})}return fi.mergeObjectSync(t,r)}static mergeObjectSync(t,e){const r={};for(const s of e){const{key:i,value:a}=s;if(i.status==="aborted"||a.status==="aborted")return rr;i.status==="dirty"&&t.dirty(),a.status==="dirty"&&t.dirty(),i.value!=="__proto__"&&(typeof a.value<"u"||s.alwaysSet)&&(r[i.value]=a.value)}return{status:t.value,value:r}}}const rr=Object.freeze({status:"aborted"}),lp=n=>({status:"dirty",value:n}),Ui=n=>({status:"valid",value:n}),y6=n=>n.status==="aborted",w6=n=>n.status==="dirty",cd=n=>n.status==="valid",tw=n=>typeof Promise<"u"&&n instanceof Promise;var St;(function(n){n.errToObj=t=>typeof t=="string"?{message:t}:t||{},n.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(St||(St={}));class El{constructor(t,e,r,s){this._cachedPath=[],this.parent=t,this.data=e,this._path=r,this._key=s}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const v6=(n,t)=>{if(cd(t))return{success:!0,data:t.value};if(!n.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const e=new Ao(n.common.issues);return this._error=e,this._error}}};function yr(n){if(!n)return{};const{errorMap:t,invalid_type_error:e,required_error:r,description:s}=n;if(t&&(e||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:s}:{errorMap:(a,o)=>{const{message:l}=n;return a.code==="invalid_enum_value"?{message:l??o.defaultError}:typeof o.data>"u"?{message:l??r??o.defaultError}:a.code!=="invalid_type"?{message:o.defaultError}:{message:l??e??o.defaultError}},description:s}}class Pr{get description(){return this._def.description}_getType(t){return kl(t.data)}_getOrReturnCtx(t,e){return e||{common:t.parent.common,data:t.data,parsedType:kl(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new fi,ctx:{common:t.parent.common,data:t.data,parsedType:kl(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const e=this._parse(t);if(tw(e))throw new Error("Synchronous parse encountered promise.");return e}_parseAsync(t){const e=this._parse(t);return Promise.resolve(e)}parse(t,e){const r=this.safeParse(t,e);if(r.success)return r.data;throw r.error}safeParse(t,e){const r={common:{issues:[],async:(e==null?void 0:e.async)??!1,contextualErrorMap:e==null?void 0:e.errorMap},path:(e==null?void 0:e.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:kl(t)},s=this._parseSync({data:t,path:r.path,parent:r});return v6(r,s)}"~validate"(t){var r,s;const e={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:kl(t)};if(!this["~standard"].async)try{const i=this._parseSync({data:t,path:[],parent:e});return cd(i)?{value:i.value}:{issues:e.common.issues}}catch(i){(s=(r=i==null?void 0:i.message)==null?void 0:r.toLowerCase())!=null&&s.includes("encountered")&&(this["~standard"].async=!0),e.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:e}).then(i=>cd(i)?{value:i.value}:{issues:e.common.issues})}async parseAsync(t,e){const r=await this.safeParseAsync(t,e);if(r.success)return r.data;throw r.error}async safeParseAsync(t,e){const r={common:{issues:[],contextualErrorMap:e==null?void 0:e.errorMap,async:!0},path:(e==null?void 0:e.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:kl(t)},s=this._parse({data:t,path:r.path,parent:r}),i=await(tw(s)?s:Promise.resolve(s));return v6(r,i)}refine(t,e){const r=s=>typeof e=="string"||typeof e>"u"?{message:e}:typeof e=="function"?e(s):e;return this._refinement((s,i)=>{const a=t(s),o=()=>i.addIssue({code:Je.custom,...r(s)});return typeof Promise<"u"&&a instanceof Promise?a.then(l=>l?!0:(o(),!1)):a?!0:(o(),!1)})}refinement(t,e){return this._refinement((r,s)=>t(r)?!0:(s.addIssue(typeof e=="function"?e(r,s):e),!1))}_refinement(t){return new hd({schema:this,typeName:je.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:e=>this["~validate"](e)}}optional(){return Al.create(this,this._def)}nullable(){return fd.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return $a.create(this)}promise(){return iw.create(this,this._def)}or(t){return nw.create([this,t],this._def)}and(t){return sw.create(this,t,this._def)}transform(t){return new hd({...yr(this._def),schema:this,typeName:je.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const e=typeof t=="function"?t:()=>t;return new YS({...yr(this._def),innerType:this,defaultValue:e,typeName:je.ZodDefault})}brand(){return new mU({typeName:je.ZodBranded,type:this,...yr(this._def)})}catch(t){const e=typeof t=="function"?t:()=>t;return new JS({...yr(this._def),innerType:this,catchValue:e,typeName:je.ZodCatch})}describe(t){const e=this.constructor;return new e({...this._def,description:t})}pipe(t){return ZS.create(this,t)}readonly(){return QS.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const Gq=/^c[^\s-]{8,}$/i,Kq=/^[0-9a-z]+$/,Xq=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Yq=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Jq=/^[a-z0-9_-]{21}$/i,Zq=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,Qq=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,eU=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,tU="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let GS;const rU=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,nU=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,sU=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,iU=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,aU=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,oU=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,_6="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",lU=new RegExp(`^${_6}$`);function x6(n){let t="[0-5]\\d";n.precision?t=`${t}\\.\\d{${n.precision}}`:n.precision==null&&(t=`${t}(\\.\\d+)?`);const e=n.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${e}`}function cU(n){return new RegExp(`^${x6(n)}$`)}function uU(n){let t=`${_6}T${x6(n)}`;const e=[];return e.push(n.local?"Z?":"Z"),n.offset&&e.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${e.join("|")})`,new RegExp(`^${t}$`)}function dU(n,t){return!!((t==="v4"||!t)&&rU.test(n)||(t==="v6"||!t)&&sU.test(n))}function hU(n,t){if(!Zq.test(n))return!1;try{const[e]=n.split(".");if(!e)return!1;const r=e.replace(/-/g,"+").replace(/_/g,"/").padEnd(e.length+(4-e.length%4)%4,"="),s=JSON.parse(atob(r));return!(typeof s!="object"||s===null||"typ"in s&&(s==null?void 0:s.typ)!=="JWT"||!s.alg||t&&s.alg!==t)}catch{return!1}}function fU(n,t){return!!((t==="v4"||!t)&&nU.test(n)||(t==="v6"||!t)&&iU.test(n))}class Cl extends Pr{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==bt.string){const i=this._getOrReturnCtx(t);return ht(i,{code:Je.invalid_type,expected:bt.string,received:i.parsedType}),rr}const r=new fi;let s;for(const i of this._def.checks)if(i.kind==="min")t.data.length<i.value&&(s=this._getOrReturnCtx(t,s),ht(s,{code:Je.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="max")t.data.length>i.value&&(s=this._getOrReturnCtx(t,s),ht(s,{code:Je.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="length"){const a=t.data.length>i.value,o=t.data.length<i.value;(a||o)&&(s=this._getOrReturnCtx(t,s),a?ht(s,{code:Je.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):o&&ht(s,{code:Je.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),r.dirty())}else if(i.kind==="email")eU.test(t.data)||(s=this._getOrReturnCtx(t,s),ht(s,{validation:"email",code:Je.invalid_string,message:i.message}),r.dirty());else if(i.kind==="emoji")GS||(GS=new RegExp(tU,"u")),GS.test(t.data)||(s=this._getOrReturnCtx(t,s),ht(s,{validation:"emoji",code:Je.invalid_string,message:i.message}),r.dirty());else if(i.kind==="uuid")Yq.test(t.data)||(s=this._getOrReturnCtx(t,s),ht(s,{validation:"uuid",code:Je.invalid_string,message:i.message}),r.dirty());else if(i.kind==="nanoid")Jq.test(t.data)||(s=this._getOrReturnCtx(t,s),ht(s,{validation:"nanoid",code:Je.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid")Gq.test(t.data)||(s=this._getOrReturnCtx(t,s),ht(s,{validation:"cuid",code:Je.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid2")Kq.test(t.data)||(s=this._getOrReturnCtx(t,s),ht(s,{validation:"cuid2",code:Je.invalid_string,message:i.message}),r.dirty());else if(i.kind==="ulid")Xq.test(t.data)||(s=this._getOrReturnCtx(t,s),ht(s,{validation:"ulid",code:Je.invalid_string,message:i.message}),r.dirty());else if(i.kind==="url")try{new URL(t.data)}catch{s=this._getOrReturnCtx(t,s),ht(s,{validation:"url",code:Je.invalid_string,message:i.message}),r.dirty()}else i.kind==="regex"?(i.regex.lastIndex=0,i.regex.test(t.data)||(s=this._getOrReturnCtx(t,s),ht(s,{validation:"regex",code:Je.invalid_string,message:i.message}),r.dirty())):i.kind==="trim"?t.data=t.data.trim():i.kind==="includes"?t.data.includes(i.value,i.position)||(s=this._getOrReturnCtx(t,s),ht(s,{code:Je.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),r.dirty()):i.kind==="toLowerCase"?t.data=t.data.toLowerCase():i.kind==="toUpperCase"?t.data=t.data.toUpperCase():i.kind==="startsWith"?t.data.startsWith(i.value)||(s=this._getOrReturnCtx(t,s),ht(s,{code:Je.invalid_string,validation:{startsWith:i.value},message:i.message}),r.dirty()):i.kind==="endsWith"?t.data.endsWith(i.value)||(s=this._getOrReturnCtx(t,s),ht(s,{code:Je.invalid_string,validation:{endsWith:i.value},message:i.message}),r.dirty()):i.kind==="datetime"?uU(i).test(t.data)||(s=this._getOrReturnCtx(t,s),ht(s,{code:Je.invalid_string,validation:"datetime",message:i.message}),r.dirty()):i.kind==="date"?lU.test(t.data)||(s=this._getOrReturnCtx(t,s),ht(s,{code:Je.invalid_string,validation:"date",message:i.message}),r.dirty()):i.kind==="time"?cU(i).test(t.data)||(s=this._getOrReturnCtx(t,s),ht(s,{code:Je.invalid_string,validation:"time",message:i.message}),r.dirty()):i.kind==="duration"?Qq.test(t.data)||(s=this._getOrReturnCtx(t,s),ht(s,{validation:"duration",code:Je.invalid_string,message:i.message}),r.dirty()):i.kind==="ip"?dU(t.data,i.version)||(s=this._getOrReturnCtx(t,s),ht(s,{validation:"ip",code:Je.invalid_string,message:i.message}),r.dirty()):i.kind==="jwt"?hU(t.data,i.alg)||(s=this._getOrReturnCtx(t,s),ht(s,{validation:"jwt",code:Je.invalid_string,message:i.message}),r.dirty()):i.kind==="cidr"?fU(t.data,i.version)||(s=this._getOrReturnCtx(t,s),ht(s,{validation:"cidr",code:Je.invalid_string,message:i.message}),r.dirty()):i.kind==="base64"?aU.test(t.data)||(s=this._getOrReturnCtx(t,s),ht(s,{validation:"base64",code:Je.invalid_string,message:i.message}),r.dirty()):i.kind==="base64url"?oU.test(t.data)||(s=this._getOrReturnCtx(t,s),ht(s,{validation:"base64url",code:Je.invalid_string,message:i.message}),r.dirty()):Dr.assertNever(i);return{status:r.value,value:t.data}}_regex(t,e,r){return this.refinement(s=>t.test(s),{validation:e,code:Je.invalid_string,...St.errToObj(r)})}_addCheck(t){return new Cl({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...St.errToObj(t)})}url(t){return this._addCheck({kind:"url",...St.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...St.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...St.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...St.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...St.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...St.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...St.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...St.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...St.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...St.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...St.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...St.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(t==null?void 0:t.offset)??!1,local:(t==null?void 0:t.local)??!1,...St.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...St.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...St.errToObj(t)})}regex(t,e){return this._addCheck({kind:"regex",regex:t,...St.errToObj(e)})}includes(t,e){return this._addCheck({kind:"includes",value:t,position:e==null?void 0:e.position,...St.errToObj(e==null?void 0:e.message)})}startsWith(t,e){return this._addCheck({kind:"startsWith",value:t,...St.errToObj(e)})}endsWith(t,e){return this._addCheck({kind:"endsWith",value:t,...St.errToObj(e)})}min(t,e){return this._addCheck({kind:"min",value:t,...St.errToObj(e)})}max(t,e){return this._addCheck({kind:"max",value:t,...St.errToObj(e)})}length(t,e){return this._addCheck({kind:"length",value:t,...St.errToObj(e)})}nonempty(t){return this.min(1,St.errToObj(t))}trim(){return new Cl({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Cl({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Cl({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const e of this._def.checks)e.kind==="min"&&(t===null||e.value>t)&&(t=e.value);return t}get maxLength(){let t=null;for(const e of this._def.checks)e.kind==="max"&&(t===null||e.value<t)&&(t=e.value);return t}}Cl.create=n=>new Cl({checks:[],typeName:je.ZodString,coerce:(n==null?void 0:n.coerce)??!1,...yr(n)});function pU(n,t){const e=(n.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,s=e>r?e:r,i=Number.parseInt(n.toFixed(s).replace(".","")),a=Number.parseInt(t.toFixed(s).replace(".",""));return i%a/10**s}class cp extends Pr{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==bt.number){const i=this._getOrReturnCtx(t);return ht(i,{code:Je.invalid_type,expected:bt.number,received:i.parsedType}),rr}let r;const s=new fi;for(const i of this._def.checks)i.kind==="int"?Dr.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),ht(r,{code:Je.invalid_type,expected:"integer",received:"float",message:i.message}),s.dirty()):i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(r=this._getOrReturnCtx(t,r),ht(r,{code:Je.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),s.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),ht(r,{code:Je.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),s.dirty()):i.kind==="multipleOf"?pU(t.data,i.value)!==0&&(r=this._getOrReturnCtx(t,r),ht(r,{code:Je.not_multiple_of,multipleOf:i.value,message:i.message}),s.dirty()):i.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),ht(r,{code:Je.not_finite,message:i.message}),s.dirty()):Dr.assertNever(i);return{status:s.value,value:t.data}}gte(t,e){return this.setLimit("min",t,!0,St.toString(e))}gt(t,e){return this.setLimit("min",t,!1,St.toString(e))}lte(t,e){return this.setLimit("max",t,!0,St.toString(e))}lt(t,e){return this.setLimit("max",t,!1,St.toString(e))}setLimit(t,e,r,s){return new cp({...this._def,checks:[...this._def.checks,{kind:t,value:e,inclusive:r,message:St.toString(s)}]})}_addCheck(t){return new cp({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:St.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:St.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:St.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:St.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:St.toString(t)})}multipleOf(t,e){return this._addCheck({kind:"multipleOf",value:t,message:St.toString(e)})}finite(t){return this._addCheck({kind:"finite",message:St.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:St.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:St.toString(t)})}get minValue(){let t=null;for(const e of this._def.checks)e.kind==="min"&&(t===null||e.value>t)&&(t=e.value);return t}get maxValue(){let t=null;for(const e of this._def.checks)e.kind==="max"&&(t===null||e.value<t)&&(t=e.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&Dr.isInteger(t.value))}get isFinite(){let t=null,e=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(e===null||r.value>e)&&(e=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(e)&&Number.isFinite(t)}}cp.create=n=>new cp({checks:[],typeName:je.ZodNumber,coerce:(n==null?void 0:n.coerce)||!1,...yr(n)});class up extends Pr{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==bt.bigint)return this._getInvalidInput(t);let r;const s=new fi;for(const i of this._def.checks)i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(r=this._getOrReturnCtx(t,r),ht(r,{code:Je.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),s.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),ht(r,{code:Je.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),s.dirty()):i.kind==="multipleOf"?t.data%i.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),ht(r,{code:Je.not_multiple_of,multipleOf:i.value,message:i.message}),s.dirty()):Dr.assertNever(i);return{status:s.value,value:t.data}}_getInvalidInput(t){const e=this._getOrReturnCtx(t);return ht(e,{code:Je.invalid_type,expected:bt.bigint,received:e.parsedType}),rr}gte(t,e){return this.setLimit("min",t,!0,St.toString(e))}gt(t,e){return this.setLimit("min",t,!1,St.toString(e))}lte(t,e){return this.setLimit("max",t,!0,St.toString(e))}lt(t,e){return this.setLimit("max",t,!1,St.toString(e))}setLimit(t,e,r,s){return new up({...this._def,checks:[...this._def.checks,{kind:t,value:e,inclusive:r,message:St.toString(s)}]})}_addCheck(t){return new up({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:St.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:St.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:St.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:St.toString(t)})}multipleOf(t,e){return this._addCheck({kind:"multipleOf",value:t,message:St.toString(e)})}get minValue(){let t=null;for(const e of this._def.checks)e.kind==="min"&&(t===null||e.value>t)&&(t=e.value);return t}get maxValue(){let t=null;for(const e of this._def.checks)e.kind==="max"&&(t===null||e.value<t)&&(t=e.value);return t}}up.create=n=>new up({checks:[],typeName:je.ZodBigInt,coerce:(n==null?void 0:n.coerce)??!1,...yr(n)});class S6 extends Pr{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==bt.boolean){const r=this._getOrReturnCtx(t);return ht(r,{code:Je.invalid_type,expected:bt.boolean,received:r.parsedType}),rr}return Ui(t.data)}}S6.create=n=>new S6({typeName:je.ZodBoolean,coerce:(n==null?void 0:n.coerce)||!1,...yr(n)});class rw extends Pr{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==bt.date){const i=this._getOrReturnCtx(t);return ht(i,{code:Je.invalid_type,expected:bt.date,received:i.parsedType}),rr}if(Number.isNaN(t.data.getTime())){const i=this._getOrReturnCtx(t);return ht(i,{code:Je.invalid_date}),rr}const r=new fi;let s;for(const i of this._def.checks)i.kind==="min"?t.data.getTime()<i.value&&(s=this._getOrReturnCtx(t,s),ht(s,{code:Je.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),r.dirty()):i.kind==="max"?t.data.getTime()>i.value&&(s=this._getOrReturnCtx(t,s),ht(s,{code:Je.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),r.dirty()):Dr.assertNever(i);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new rw({...this._def,checks:[...this._def.checks,t]})}min(t,e){return this._addCheck({kind:"min",value:t.getTime(),message:St.toString(e)})}max(t,e){return this._addCheck({kind:"max",value:t.getTime(),message:St.toString(e)})}get minDate(){let t=null;for(const e of this._def.checks)e.kind==="min"&&(t===null||e.value>t)&&(t=e.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const e of this._def.checks)e.kind==="max"&&(t===null||e.value<t)&&(t=e.value);return t!=null?new Date(t):null}}rw.create=n=>new rw({checks:[],coerce:(n==null?void 0:n.coerce)||!1,typeName:je.ZodDate,...yr(n)});class k6 extends Pr{_parse(t){if(this._getType(t)!==bt.symbol){const r=this._getOrReturnCtx(t);return ht(r,{code:Je.invalid_type,expected:bt.symbol,received:r.parsedType}),rr}return Ui(t.data)}}k6.create=n=>new k6({typeName:je.ZodSymbol,...yr(n)});class E6 extends Pr{_parse(t){if(this._getType(t)!==bt.undefined){const r=this._getOrReturnCtx(t);return ht(r,{code:Je.invalid_type,expected:bt.undefined,received:r.parsedType}),rr}return Ui(t.data)}}E6.create=n=>new E6({typeName:je.ZodUndefined,...yr(n)});class C6 extends Pr{_parse(t){if(this._getType(t)!==bt.null){const r=this._getOrReturnCtx(t);return ht(r,{code:Je.invalid_type,expected:bt.null,received:r.parsedType}),rr}return Ui(t.data)}}C6.create=n=>new C6({typeName:je.ZodNull,...yr(n)});class KS extends Pr{constructor(){super(...arguments),this._any=!0}_parse(t){return Ui(t.data)}}KS.create=n=>new KS({typeName:je.ZodAny,...yr(n)});class T6 extends Pr{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Ui(t.data)}}T6.create=n=>new T6({typeName:je.ZodUnknown,...yr(n)});class Tl extends Pr{_parse(t){const e=this._getOrReturnCtx(t);return ht(e,{code:Je.invalid_type,expected:bt.never,received:e.parsedType}),rr}}Tl.create=n=>new Tl({typeName:je.ZodNever,...yr(n)});class A6 extends Pr{_parse(t){if(this._getType(t)!==bt.undefined){const r=this._getOrReturnCtx(t);return ht(r,{code:Je.invalid_type,expected:bt.void,received:r.parsedType}),rr}return Ui(t.data)}}A6.create=n=>new A6({typeName:je.ZodVoid,...yr(n)});class $a extends Pr{_parse(t){const{ctx:e,status:r}=this._processInputParams(t),s=this._def;if(e.parsedType!==bt.array)return ht(e,{code:Je.invalid_type,expected:bt.array,received:e.parsedType}),rr;if(s.exactLength!==null){const a=e.data.length>s.exactLength.value,o=e.data.length<s.exactLength.value;(a||o)&&(ht(e,{code:a?Je.too_big:Je.too_small,minimum:o?s.exactLength.value:void 0,maximum:a?s.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:s.exactLength.message}),r.dirty())}if(s.minLength!==null&&e.data.length<s.minLength.value&&(ht(e,{code:Je.too_small,minimum:s.minLength.value,type:"array",inclusive:!0,exact:!1,message:s.minLength.message}),r.dirty()),s.maxLength!==null&&e.data.length>s.maxLength.value&&(ht(e,{code:Je.too_big,maximum:s.maxLength.value,type:"array",inclusive:!0,exact:!1,message:s.maxLength.message}),r.dirty()),e.common.async)return Promise.all([...e.data].map((a,o)=>s.type._parseAsync(new El(e,a,e.path,o)))).then(a=>fi.mergeArray(r,a));const i=[...e.data].map((a,o)=>s.type._parseSync(new El(e,a,e.path,o)));return fi.mergeArray(r,i)}get element(){return this._def.type}min(t,e){return new $a({...this._def,minLength:{value:t,message:St.toString(e)}})}max(t,e){return new $a({...this._def,maxLength:{value:t,message:St.toString(e)}})}length(t,e){return new $a({...this._def,exactLength:{value:t,message:St.toString(e)}})}nonempty(t){return this.min(1,t)}}$a.create=(n,t)=>new $a({type:n,minLength:null,maxLength:null,exactLength:null,typeName:je.ZodArray,...yr(t)});function ud(n){if(n instanceof Rn){const t={};for(const e in n.shape){const r=n.shape[e];t[e]=Al.create(ud(r))}return new Rn({...n._def,shape:()=>t})}else return n instanceof $a?new $a({...n._def,type:ud(n.element)}):n instanceof Al?Al.create(ud(n.unwrap())):n instanceof fd?fd.create(ud(n.unwrap())):n instanceof Jc?Jc.create(n.items.map(t=>ud(t))):n}class Rn extends Pr{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),e=Dr.objectKeys(t);return this._cached={shape:t,keys:e},this._cached}_parse(t){if(this._getType(t)!==bt.object){const c=this._getOrReturnCtx(t);return ht(c,{code:Je.invalid_type,expected:bt.object,received:c.parsedType}),rr}const{status:r,ctx:s}=this._processInputParams(t),{shape:i,keys:a}=this._getCached(),o=[];if(!(this._def.catchall instanceof Tl&&this._def.unknownKeys==="strip"))for(const c in s.data)a.includes(c)||o.push(c);const l=[];for(const c of a){const u=i[c],h=s.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new El(s,h,s.path,c)),alwaysSet:c in s.data})}if(this._def.catchall instanceof Tl){const c=this._def.unknownKeys;if(c==="passthrough")for(const u of o)l.push({key:{status:"valid",value:u},value:{status:"valid",value:s.data[u]}});else if(c==="strict")o.length>0&&(ht(s,{code:Je.unrecognized_keys,keys:o}),r.dirty());else if(c!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const c=this._def.catchall;for(const u of o){const h=s.data[u];l.push({key:{status:"valid",value:u},value:c._parse(new El(s,h,s.path,u)),alwaysSet:u in s.data})}}return s.common.async?Promise.resolve().then(async()=>{const c=[];for(const u of l){const h=await u.key,d=await u.value;c.push({key:h,value:d,alwaysSet:u.alwaysSet})}return c}).then(c=>fi.mergeObjectSync(r,c)):fi.mergeObjectSync(r,l)}get shape(){return this._def.shape()}strict(t){return St.errToObj,new Rn({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(e,r)=>{var i,a;const s=((a=(i=this._def).errorMap)==null?void 0:a.call(i,e,r).message)??r.defaultError;return e.code==="unrecognized_keys"?{message:St.errToObj(t).message??s}:{message:s}}}:{}})}strip(){return new Rn({...this._def,unknownKeys:"strip"})}passthrough(){return new Rn({...this._def,unknownKeys:"passthrough"})}extend(t){return new Rn({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Rn({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:je.ZodObject})}setKey(t,e){return this.augment({[t]:e})}catchall(t){return new Rn({...this._def,catchall:t})}pick(t){const e={};for(const r of Dr.objectKeys(t))t[r]&&this.shape[r]&&(e[r]=this.shape[r]);return new Rn({...this._def,shape:()=>e})}omit(t){const e={};for(const r of Dr.objectKeys(this.shape))t[r]||(e[r]=this.shape[r]);return new Rn({...this._def,shape:()=>e})}deepPartial(){return ud(this)}partial(t){const e={};for(const r of Dr.objectKeys(this.shape)){const s=this.shape[r];t&&!t[r]?e[r]=s:e[r]=s.optional()}return new Rn({...this._def,shape:()=>e})}required(t){const e={};for(const r of Dr.objectKeys(this.shape))if(t&&!t[r])e[r]=this.shape[r];else{let i=this.shape[r];for(;i instanceof Al;)i=i._def.innerType;e[r]=i}return new Rn({...this._def,shape:()=>e})}keyof(){return I6(Dr.objectKeys(this.shape))}}Rn.create=(n,t)=>new Rn({shape:()=>n,unknownKeys:"strip",catchall:Tl.create(),typeName:je.ZodObject,...yr(t)}),Rn.strictCreate=(n,t)=>new Rn({shape:()=>n,unknownKeys:"strict",catchall:Tl.create(),typeName:je.ZodObject,...yr(t)}),Rn.lazycreate=(n,t)=>new Rn({shape:n,unknownKeys:"strip",catchall:Tl.create(),typeName:je.ZodObject,...yr(t)});class nw extends Pr{_parse(t){const{ctx:e}=this._processInputParams(t),r=this._def.options;function s(i){for(const o of i)if(o.result.status==="valid")return o.result;for(const o of i)if(o.result.status==="dirty")return e.common.issues.push(...o.ctx.common.issues),o.result;const a=i.map(o=>new Ao(o.ctx.common.issues));return ht(e,{code:Je.invalid_union,unionErrors:a}),rr}if(e.common.async)return Promise.all(r.map(async i=>{const a={...e,common:{...e.common,issues:[]},parent:null};return{result:await i._parseAsync({data:e.data,path:e.path,parent:a}),ctx:a}})).then(s);{let i;const a=[];for(const l of r){const c={...e,common:{...e.common,issues:[]},parent:null},u=l._parseSync({data:e.data,path:e.path,parent:c});if(u.status==="valid")return u;u.status==="dirty"&&!i&&(i={result:u,ctx:c}),c.common.issues.length&&a.push(c.common.issues)}if(i)return e.common.issues.push(...i.ctx.common.issues),i.result;const o=a.map(l=>new Ao(l));return ht(e,{code:Je.invalid_union,unionErrors:o}),rr}}get options(){return this._def.options}}nw.create=(n,t)=>new nw({options:n,typeName:je.ZodUnion,...yr(t)});function XS(n,t){const e=kl(n),r=kl(t);if(n===t)return{valid:!0,data:n};if(e===bt.object&&r===bt.object){const s=Dr.objectKeys(t),i=Dr.objectKeys(n).filter(o=>s.indexOf(o)!==-1),a={...n,...t};for(const o of i){const l=XS(n[o],t[o]);if(!l.valid)return{valid:!1};a[o]=l.data}return{valid:!0,data:a}}else if(e===bt.array&&r===bt.array){if(n.length!==t.length)return{valid:!1};const s=[];for(let i=0;i<n.length;i++){const a=n[i],o=t[i],l=XS(a,o);if(!l.valid)return{valid:!1};s.push(l.data)}return{valid:!0,data:s}}else return e===bt.date&&r===bt.date&&+n==+t?{valid:!0,data:n}:{valid:!1}}class sw extends Pr{_parse(t){const{status:e,ctx:r}=this._processInputParams(t),s=(i,a)=>{if(y6(i)||y6(a))return rr;const o=XS(i.value,a.value);return o.valid?((w6(i)||w6(a))&&e.dirty(),{status:e.value,value:o.data}):(ht(r,{code:Je.invalid_intersection_types}),rr)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([i,a])=>s(i,a)):s(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}sw.create=(n,t,e)=>new sw({left:n,right:t,typeName:je.ZodIntersection,...yr(e)});class Jc extends Pr{_parse(t){const{status:e,ctx:r}=this._processInputParams(t);if(r.parsedType!==bt.array)return ht(r,{code:Je.invalid_type,expected:bt.array,received:r.parsedType}),rr;if(r.data.length<this._def.items.length)return ht(r,{code:Je.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),rr;!this._def.rest&&r.data.length>this._def.items.length&&(ht(r,{code:Je.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),e.dirty());const i=[...r.data].map((a,o)=>{const l=this._def.items[o]||this._def.rest;return l?l._parse(new El(r,a,r.path,o)):null}).filter(a=>!!a);return r.common.async?Promise.all(i).then(a=>fi.mergeArray(e,a)):fi.mergeArray(e,i)}get items(){return this._def.items}rest(t){return new Jc({...this._def,rest:t})}}Jc.create=(n,t)=>{if(!Array.isArray(n))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Jc({items:n,typeName:je.ZodTuple,rest:null,...yr(t)})};class R6 extends Pr{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:e,ctx:r}=this._processInputParams(t);if(r.parsedType!==bt.map)return ht(r,{code:Je.invalid_type,expected:bt.map,received:r.parsedType}),rr;const s=this._def.keyType,i=this._def.valueType,a=[...r.data.entries()].map(([o,l],c)=>({key:s._parse(new El(r,o,r.path,[c,"key"])),value:i._parse(new El(r,l,r.path,[c,"value"]))}));if(r.common.async){const o=new Map;return Promise.resolve().then(async()=>{for(const l of a){const c=await l.key,u=await l.value;if(c.status==="aborted"||u.status==="aborted")return rr;(c.status==="dirty"||u.status==="dirty")&&e.dirty(),o.set(c.value,u.value)}return{status:e.value,value:o}})}else{const o=new Map;for(const l of a){const c=l.key,u=l.value;if(c.status==="aborted"||u.status==="aborted")return rr;(c.status==="dirty"||u.status==="dirty")&&e.dirty(),o.set(c.value,u.value)}return{status:e.value,value:o}}}}R6.create=(n,t,e)=>new R6({valueType:t,keyType:n,typeName:je.ZodMap,...yr(e)});class dp extends Pr{_parse(t){const{status:e,ctx:r}=this._processInputParams(t);if(r.parsedType!==bt.set)return ht(r,{code:Je.invalid_type,expected:bt.set,received:r.parsedType}),rr;const s=this._def;s.minSize!==null&&r.data.size<s.minSize.value&&(ht(r,{code:Je.too_small,minimum:s.minSize.value,type:"set",inclusive:!0,exact:!1,message:s.minSize.message}),e.dirty()),s.maxSize!==null&&r.data.size>s.maxSize.value&&(ht(r,{code:Je.too_big,maximum:s.maxSize.value,type:"set",inclusive:!0,exact:!1,message:s.maxSize.message}),e.dirty());const i=this._def.valueType;function a(l){const c=new Set;for(const u of l){if(u.status==="aborted")return rr;u.status==="dirty"&&e.dirty(),c.add(u.value)}return{status:e.value,value:c}}const o=[...r.data.values()].map((l,c)=>i._parse(new El(r,l,r.path,c)));return r.common.async?Promise.all(o).then(l=>a(l)):a(o)}min(t,e){return new dp({...this._def,minSize:{value:t,message:St.toString(e)}})}max(t,e){return new dp({...this._def,maxSize:{value:t,message:St.toString(e)}})}size(t,e){return this.min(t,e).max(t,e)}nonempty(t){return this.min(1,t)}}dp.create=(n,t)=>new dp({valueType:n,minSize:null,maxSize:null,typeName:je.ZodSet,...yr(t)});class O6 extends Pr{get schema(){return this._def.getter()}_parse(t){const{ctx:e}=this._processInputParams(t);return this._def.getter()._parse({data:e.data,path:e.path,parent:e})}}O6.create=(n,t)=>new O6({getter:n,typeName:je.ZodLazy,...yr(t)});class M6 extends Pr{_parse(t){if(t.data!==this._def.value){const e=this._getOrReturnCtx(t);return ht(e,{received:e.data,code:Je.invalid_literal,expected:this._def.value}),rr}return{status:"valid",value:t.data}}get value(){return this._def.value}}M6.create=(n,t)=>new M6({value:n,typeName:je.ZodLiteral,...yr(t)});function I6(n,t){return new dd({values:n,typeName:je.ZodEnum,...yr(t)})}class dd extends Pr{_parse(t){if(typeof t.data!="string"){const e=this._getOrReturnCtx(t),r=this._def.values;return ht(e,{expected:Dr.joinValues(r),received:e.parsedType,code:Je.invalid_type}),rr}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const e=this._getOrReturnCtx(t),r=this._def.values;return ht(e,{received:e.data,code:Je.invalid_enum_value,options:r}),rr}return Ui(t.data)}get options(){return this._def.values}get enum(){const t={};for(const e of this._def.values)t[e]=e;return t}get Values(){const t={};for(const e of this._def.values)t[e]=e;return t}get Enum(){const t={};for(const e of this._def.values)t[e]=e;return t}extract(t,e=this._def){return dd.create(t,{...this._def,...e})}exclude(t,e=this._def){return dd.create(this.options.filter(r=>!t.includes(r)),{...this._def,...e})}}dd.create=I6;class N6 extends Pr{_parse(t){const e=Dr.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==bt.string&&r.parsedType!==bt.number){const s=Dr.objectValues(e);return ht(r,{expected:Dr.joinValues(s),received:r.parsedType,code:Je.invalid_type}),rr}if(this._cache||(this._cache=new Set(Dr.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const s=Dr.objectValues(e);return ht(r,{received:r.data,code:Je.invalid_enum_value,options:s}),rr}return Ui(t.data)}get enum(){return this._def.values}}N6.create=(n,t)=>new N6({values:n,typeName:je.ZodNativeEnum,...yr(t)});class iw extends Pr{unwrap(){return this._def.type}_parse(t){const{ctx:e}=this._processInputParams(t);if(e.parsedType!==bt.promise&&e.common.async===!1)return ht(e,{code:Je.invalid_type,expected:bt.promise,received:e.parsedType}),rr;const r=e.parsedType===bt.promise?e.data:Promise.resolve(e.data);return Ui(r.then(s=>this._def.type.parseAsync(s,{path:e.path,errorMap:e.common.contextualErrorMap})))}}iw.create=(n,t)=>new iw({type:n,typeName:je.ZodPromise,...yr(t)});class hd extends Pr{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===je.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:e,ctx:r}=this._processInputParams(t),s=this._def.effect||null,i={addIssue:a=>{ht(r,a),a.fatal?e.abort():e.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),s.type==="preprocess"){const a=s.transform(r.data,i);if(r.common.async)return Promise.resolve(a).then(async o=>{if(e.value==="aborted")return rr;const l=await this._def.schema._parseAsync({data:o,path:r.path,parent:r});return l.status==="aborted"?rr:l.status==="dirty"||e.value==="dirty"?lp(l.value):l});{if(e.value==="aborted")return rr;const o=this._def.schema._parseSync({data:a,path:r.path,parent:r});return o.status==="aborted"?rr:o.status==="dirty"||e.value==="dirty"?lp(o.value):o}}if(s.type==="refinement"){const a=o=>{const l=s.refinement(o,i);if(r.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return o};if(r.common.async===!1){const o=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?rr:(o.status==="dirty"&&e.dirty(),a(o.value),{status:e.value,value:o.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(o=>o.status==="aborted"?rr:(o.status==="dirty"&&e.dirty(),a(o.value).then(()=>({status:e.value,value:o.value}))))}if(s.type==="transform")if(r.common.async===!1){const a=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!cd(a))return rr;const o=s.transform(a.value,i);if(o instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:e.value,value:o}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(a=>cd(a)?Promise.resolve(s.transform(a.value,i)).then(o=>({status:e.value,value:o})):rr);Dr.assertNever(s)}}hd.create=(n,t,e)=>new hd({schema:n,typeName:je.ZodEffects,effect:t,...yr(e)}),hd.createWithPreprocess=(n,t,e)=>new hd({schema:t,effect:{type:"preprocess",transform:n},typeName:je.ZodEffects,...yr(e)});class Al extends Pr{_parse(t){return this._getType(t)===bt.undefined?Ui(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Al.create=(n,t)=>new Al({innerType:n,typeName:je.ZodOptional,...yr(t)});class fd extends Pr{_parse(t){return this._getType(t)===bt.null?Ui(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}fd.create=(n,t)=>new fd({innerType:n,typeName:je.ZodNullable,...yr(t)});class YS extends Pr{_parse(t){const{ctx:e}=this._processInputParams(t);let r=e.data;return e.parsedType===bt.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:e.path,parent:e})}removeDefault(){return this._def.innerType}}YS.create=(n,t)=>new YS({innerType:n,typeName:je.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...yr(t)});class JS extends Pr{_parse(t){const{ctx:e}=this._processInputParams(t),r={...e,common:{...e.common,issues:[]}},s=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return tw(s)?s.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new Ao(r.common.issues)},input:r.data})})):{status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new Ao(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}JS.create=(n,t)=>new JS({innerType:n,typeName:je.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...yr(t)});class P6 extends Pr{_parse(t){if(this._getType(t)!==bt.nan){const r=this._getOrReturnCtx(t);return ht(r,{code:Je.invalid_type,expected:bt.nan,received:r.parsedType}),rr}return{status:"valid",value:t.data}}}P6.create=n=>new P6({typeName:je.ZodNaN,...yr(n)});class mU extends Pr{_parse(t){const{ctx:e}=this._processInputParams(t),r=e.data;return this._def.type._parse({data:r,path:e.path,parent:e})}unwrap(){return this._def.type}}class ZS extends Pr{_parse(t){const{status:e,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const i=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?rr:i.status==="dirty"?(e.dirty(),lp(i.value)):this._def.out._parseAsync({data:i.value,path:r.path,parent:r})})();{const s=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?rr:s.status==="dirty"?(e.dirty(),{status:"dirty",value:s.value}):this._def.out._parseSync({data:s.value,path:r.path,parent:r})}}static create(t,e){return new ZS({in:t,out:e,typeName:je.ZodPipeline})}}class QS extends Pr{_parse(t){const e=this._def.innerType._parse(t),r=s=>(cd(s)&&(s.value=Object.freeze(s.value)),s);return tw(e)?e.then(s=>r(s)):r(e)}unwrap(){return this._def.innerType}}QS.create=(n,t)=>new QS({innerType:n,typeName:je.ZodReadonly,...yr(t)});var je;(function(n){n.ZodString="ZodString",n.ZodNumber="ZodNumber",n.ZodNaN="ZodNaN",n.ZodBigInt="ZodBigInt",n.ZodBoolean="ZodBoolean",n.ZodDate="ZodDate",n.ZodSymbol="ZodSymbol",n.ZodUndefined="ZodUndefined",n.ZodNull="ZodNull",n.ZodAny="ZodAny",n.ZodUnknown="ZodUnknown",n.ZodNever="ZodNever",n.ZodVoid="ZodVoid",n.ZodArray="ZodArray",n.ZodObject="ZodObject",n.ZodUnion="ZodUnion",n.ZodDiscriminatedUnion="ZodDiscriminatedUnion",n.ZodIntersection="ZodIntersection",n.ZodTuple="ZodTuple",n.ZodRecord="ZodRecord",n.ZodMap="ZodMap",n.ZodSet="ZodSet",n.ZodFunction="ZodFunction",n.ZodLazy="ZodLazy",n.ZodLiteral="ZodLiteral",n.ZodEnum="ZodEnum",n.ZodEffects="ZodEffects",n.ZodNativeEnum="ZodNativeEnum",n.ZodOptional="ZodOptional",n.ZodNullable="ZodNullable",n.ZodDefault="ZodDefault",n.ZodCatch="ZodCatch",n.ZodPromise="ZodPromise",n.ZodBranded="ZodBranded",n.ZodPipeline="ZodPipeline",n.ZodReadonly="ZodReadonly"})(je||(je={}));const $6=Cl.create,L6=KS.create;Tl.create,$a.create;const j6=Rn.create;nw.create,sw.create,Jc.create,dd.create,iw.create,Al.create,fd.create;var aw={exports:{}},D6={};function Vi(n,t){typeof t=="boolean"&&(t={forever:t}),this._originalTimeouts=JSON.parse(JSON.stringify(n)),this._timeouts=n,this._options=t||{},this._maxRetryTime=t&&t.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}var gU=Vi;Vi.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)},Vi.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null},Vi.prototype.retry=function(n){if(this._timeout&&clearTimeout(this._timeout),!n)return!1;var t=new Date().getTime();if(n&&t-this._operationStart>=this._maxRetryTime)return this._errors.push(n),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(n);var e=this._timeouts.shift();if(e===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),e=this._cachedTimeouts.slice(-1);else return!1;var r=this;return this._timer=setTimeout(function(){r._attempts++,r._operationTimeoutCb&&(r._timeout=setTimeout(function(){r._operationTimeoutCb(r._attempts)},r._operationTimeout),r._options.unref&&r._timeout.unref()),r._fn(r._attempts)},e),this._options.unref&&this._timer.unref(),!0},Vi.prototype.attempt=function(n,t){this._fn=n,t&&(t.timeout&&(this._operationTimeout=t.timeout),t.cb&&(this._operationTimeoutCb=t.cb));var e=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){e._operationTimeoutCb()},e._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)},Vi.prototype.try=function(n){console.log("Using RetryOperation.try() is deprecated"),this.attempt(n)},Vi.prototype.start=function(n){console.log("Using RetryOperation.start() is deprecated"),this.attempt(n)},Vi.prototype.start=Vi.prototype.try,Vi.prototype.errors=function(){return this._errors},Vi.prototype.attempts=function(){return this._attempts},Vi.prototype.mainError=function(){if(this._errors.length===0)return null;for(var n={},t=null,e=0,r=0;r<this._errors.length;r++){var s=this._errors[r],i=s.message,a=(n[i]||0)+1;n[i]=a,a>=e&&(t=s,e=a)}return t},function(n){var t=gU;n.operation=function(e){var r=n.timeouts(e);return new t(r,{forever:e&&(e.forever||e.retries===1/0),unref:e&&e.unref,maxRetryTime:e&&e.maxRetryTime})},n.timeouts=function(e){if(e instanceof Array)return[].concat(e);var r={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var s in e)r[s]=e[s];if(r.minTimeout>r.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var i=[],a=0;a<r.retries;a++)i.push(this.createTimeout(a,r));return e&&e.forever&&!i.length&&i.push(this.createTimeout(a,r)),i.sort(function(o,l){return o-l}),i},n.createTimeout=function(e,r){var s=r.randomize?Math.random()+1:1,i=Math.round(s*Math.max(r.minTimeout,1)*Math.pow(r.factor,e));return i=Math.min(i,r.maxTimeout),i},n.wrap=function(e,r,s){if(r instanceof Array&&(s=r,r=null),!s){s=[];for(var i in e)typeof e[i]=="function"&&s.push(i)}for(var a=0;a<s.length;a++){var o=s[a],l=e[o];e[o]=(function(u){var h=n.operation(r),d=Array.prototype.slice.call(arguments,1),f=d.pop();d.push(function(p){h.retry(p)||(p&&(arguments[0]=h.mainError()),f.apply(this,arguments))}),h.attempt(function(){u.apply(e,d)})}).bind(e,l),e[o].options=r}}}(D6);var bU=D6;const yU=bU,wU=["Failed to fetch","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Network request failed"];let B6=class extends Error{constructor(t){super(),t instanceof Error?(this.originalError=t,{message:t}=t):(this.originalError=new Error(t),this.originalError.stack=this.stack),this.name="AbortError",this.message=t}};const vU=(n,t,e)=>{const r=e.retries-(t-1);return n.attemptNumber=t,n.retriesLeft=r,n},_U=n=>wU.includes(n),F6=(n,t)=>new Promise((e,r)=>{t={onFailedAttempt:()=>{},retries:10,...t};const s=yU.operation(t);s.attempt(async i=>{try{e(await n(i))}catch(a){if(!(a instanceof Error)){r(new TypeError(`Non-error was thrown: "${a}". You should only throw errors.`));return}if(a instanceof B6)s.stop(),r(a.originalError);else if(a instanceof TypeError&&!_U(a.message))s.stop(),r(a);else{vU(a,i,t);try{await t.onFailedAttempt(a)}catch(o){r(o);return}s.retry(a)||r(s.mainError())}}})});aw.exports=F6,aw.exports.default=F6,aw.exports.AbortError=B6;var xU=aw.exports;const ek=jf(xU),SU=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;function hp(n){return typeof n=="string"&&SU.test(n)}function kU(n){if(!hp(n))throw TypeError("Invalid UUID");var t,e=new Uint8Array(16);return e[0]=(t=parseInt(n.slice(0,8),16))>>>24,e[1]=t>>>16&255,e[2]=t>>>8&255,e[3]=t&255,e[4]=(t=parseInt(n.slice(9,13),16))>>>8,e[5]=t&255,e[6]=(t=parseInt(n.slice(14,18),16))>>>8,e[7]=t&255,e[8]=(t=parseInt(n.slice(19,23),16))>>>8,e[9]=t&255,e[10]=(t=parseInt(n.slice(24,36),16))/1099511627776&255,e[11]=t/4294967296&255,e[12]=t>>>24&255,e[13]=t>>>16&255,e[14]=t>>>8&255,e[15]=t&255,e}for(var ss=[],tk=0;tk<256;++tk)ss.push((tk+256).toString(16).slice(1));function rk(n,t=0){return(ss[n[t+0]]+ss[n[t+1]]+ss[n[t+2]]+ss[n[t+3]]+"-"+ss[n[t+4]]+ss[n[t+5]]+"-"+ss[n[t+6]]+ss[n[t+7]]+"-"+ss[n[t+8]]+ss[n[t+9]]+"-"+ss[n[t+10]]+ss[n[t+11]]+ss[n[t+12]]+ss[n[t+13]]+ss[n[t+14]]+ss[n[t+15]]).toLowerCase()}var ow,EU=new Uint8Array(16);function z6(){if(!ow&&(ow=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!ow))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ow(EU)}function CU(n){n=unescape(encodeURIComponent(n));for(var t=[],e=0;e<n.length;++e)t.push(n.charCodeAt(e));return t}var TU="6ba7b810-9dad-11d1-80b4-00c04fd430c8",AU="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function RU(n,t,e){function r(s,i,a,o){var l;if(typeof s=="string"&&(s=CU(s)),typeof i=="string"&&(i=kU(i)),((l=i)===null||l===void 0?void 0:l.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var c=new Uint8Array(16+s.length);if(c.set(i),c.set(s,i.length),c=e(c),c[6]=c[6]&15|t,c[8]=c[8]&63|128,a){o=o||0;for(var u=0;u<16;++u)a[o+u]=c[u];return a}return rk(c)}try{r.name=n}catch{}return r.DNS=TU,r.URL=AU,r}var OU=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const H6={randomUUID:OU};function Ks(n,t,e){if(H6.randomUUID&&!n)return H6.randomUUID();n=n||{};var r=n.random||(n.rng||z6)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,rk(r)}function MU(n,t,e,r){switch(n){case 0:return t&e^~t&r;case 1:return t^e^r;case 2:return t&e^t&r^e&r;case 3:return t^e^r}}function nk(n,t){return n<<t|n>>>32-t}function IU(n){var t=[1518500249,1859775393,2400959708,3395469782],e=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof n=="string"){var r=unescape(encodeURIComponent(n));n=[];for(var s=0;s<r.length;++s)n.push(r.charCodeAt(s))}else Array.isArray(n)||(n=Array.prototype.slice.call(n));n.push(128);for(var i=n.length/4+2,a=Math.ceil(i/16),o=new Array(a),l=0;l<a;++l){for(var c=new Uint32Array(16),u=0;u<16;++u)c[u]=n[l*64+u*4]<<24|n[l*64+u*4+1]<<16|n[l*64+u*4+2]<<8|n[l*64+u*4+3];o[l]=c}o[a-1][14]=(n.length-1)*8/Math.pow(2,32),o[a-1][14]=Math.floor(o[a-1][14]),o[a-1][15]=(n.length-1)*8&4294967295;for(var h=0;h<a;++h){for(var d=new Uint32Array(80),f=0;f<16;++f)d[f]=o[h][f];for(var p=16;p<80;++p)d[p]=nk(d[p-3]^d[p-8]^d[p-14]^d[p-16],1);for(var g=e[0],m=e[1],b=e[2],w=e[3],_=e[4],T=0;T<80;++T){var M=Math.floor(T/20),j=nk(g,5)+MU(M,m,b,w)+_+t[M]+d[T]>>>0;_=w,w=b,b=nk(m,30)>>>0,m=g,g=j}e[0]=e[0]+g>>>0,e[1]=e[1]+m>>>0,e[2]=e[2]+b>>>0,e[3]=e[3]+w>>>0,e[4]=e[4]+_>>>0}return[e[0]>>24&255,e[0]>>16&255,e[0]>>8&255,e[0]&255,e[1]>>24&255,e[1]>>16&255,e[1]>>8&255,e[1]&255,e[2]>>24&255,e[2]>>16&255,e[2]>>8&255,e[2]&255,e[3]>>24&255,e[3]>>16&255,e[3]>>8&255,e[3]&255,e[4]>>24&255,e[4]>>16&255,e[4]>>8&255,e[4]&255]}var fp=RU("v5",80,IU),q6=null,U6=null,ia=0;function NU(n,t,e){n=n||{};var r=0,s=new Uint8Array(16),i=n.random||(n.rng||z6)(),a=n.msecs!==void 0?n.msecs:Date.now(),o=n.seq!==void 0?n.seq:null,l=U6,c=q6;return a>ia&&n.msecs===void 0&&(ia=a,o!==null&&(l=null,c=null)),o!==null&&(o>2147483647&&(o=2147483647),l=o>>>19&4095,c=o&524287),(l===null||c===null)&&(l=i[6]&127,l=l<<8|i[7],c=i[8]&63,c=c<<8|i[9],c=c<<5|i[10]>>>3),a+1e4>ia&&o===null?++c>524287&&(c=0,++l>4095&&(l=0,ia++)):ia=a,U6=l,q6=c,s[r++]=ia/1099511627776&255,s[r++]=ia/4294967296&255,s[r++]=ia/16777216&255,s[r++]=ia/65536&255,s[r++]=ia/256&255,s[r++]=ia&255,s[r++]=l>>>4&15|112,s[r++]=l&255,s[r++]=c>>>13&63|128,s[r++]=c>>>5&255,s[r++]=c<<3&255|i[10]&7,s[r++]=i[11],s[r++]=i[12],s[r++]=i[13],s[r++]=i[14],s[r++]=i[15],t||rk(s)}let PU=class{getStore(){}run(t,e){return e()}};const sk=Symbol.for("ls:tracing_async_local_storage"),$U=new PU;let LU=class{getInstance(){return globalThis[sk]??$U}initializeGlobalInstance(t){globalThis[sk]===void 0&&(globalThis[sk]=t)}};const jU=new LU;function DU(n=!1){const t=jU.getInstance().getStore();if(!n&&t===void 0)throw new Error(`Could not get the current run tree.
2098
2098
 
2099
2099
  Please make sure you are calling this method within a traceable function and that tracing is enabled.`);return t}function ik(n){return typeof n=="function"&&"langsmith:traceable"in n}/*!
2100
2100
  * https://github.com/Starcounter-Jack/JSON-Patch
@@ -2327,7 +2327,7 @@ context: `;s.forEach(p=>{u+=`${p.desc} `}),u+=`
2327
2327
  ${r.name}
2328
2328
  </nine-side-menu-item>`}).join("")});de(this,"expand",()=>{y(this,Xb).call(this,"collapse"),document.body.style.width=`calc(100% - ${y(this,lf)}px)`});de(this,"collapse",()=>{y(this,Kb).call(this,"collapse"),document.body.style.width=`calc(100% - ${y(this,of)}px)`,this.shadowRoot.host.style.width="var(--min-width)",setTimeout(()=>{this.shadowRoot.host.style.width=""},300)});Q(this,Gb,e=>{const r=this.shadowRoot.querySelector("nine-side-menu-body");return r?r.querySelectorAll(e):[]});Q(this,Kb,e=>{this.classList.add(e),this.shadowRoot.querySelectorAll("nine-side-menu-item,nine-side-menu-head,nine-side-menu-foot,nine-side-menu-body,nine-side-menu-custom").forEach(r=>{r.classList.add(e)}),y(this,Gb).call(this,"nine-side-menu-item").forEach(r=>{r.classList.add(e)})});Q(this,Xb,e=>{this.classList.remove(e),this.shadowRoot.querySelectorAll("nine-side-menu-item,nine-side-menu-head,nine-side-menu-foot,nine-side-menu-body,nine-side-menu-custom").forEach(r=>{r.classList.remove(e)}),y(this,Gb).call(this,"nine-side-menu-item").forEach(r=>{r.classList.remove(e)})});Q(this,hx,()=>{const e=this.innerHTML.trim();this.innerHTML="",oe(this,of,Number(this.getAttribute("min-width")||48)),oe(this,lf,Number(this.getAttribute("max-width")||256));const r=this.getAttribute("css-path")?`@import "${this.getAttribute("css-path")}";`:"";this.shadowRoot.innerHTML=`
2329
2329
  <style>
2330
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-ux@0.1.182/dist/css/nineMenu.css";
2330
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-ux@0.1.183/dist/css/nineMenu.css";
2331
2331
  ${r}
2332
2332
 
2333
2333
  :host {