homebridge-config-ui-x 5.0.0-beta.23 → 5.0.0-beta.24
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.
- package/package.json +1 -1
- package/public/3rdpartylicenses.txt +0 -70
- package/public/{chunk-FCTX2YEK.js → chunk-23BZOS52.js} +1 -1
- package/public/{chunk-IYYWSVBH.js → chunk-2AEDCPAZ.js} +1 -1
- package/public/{chunk-33OXRXUC.js → chunk-2U34OGZ2.js} +1 -1
- package/public/{chunk-4XUOS275.js → chunk-34534FR6.js} +1 -1
- package/public/chunk-3EOLD2RC.js +1 -0
- package/public/chunk-3NLYPA3O.js +1 -0
- package/public/{chunk-2SJOCVSL.js → chunk-4VIMFDES.js} +1 -1
- package/public/{chunk-7WGR5I6Z.js → chunk-5TMMPP6L.js} +1 -1
- package/public/chunk-7VE3PNKY.js +1 -0
- package/public/{chunk-NNPWW7QY.js → chunk-A2XZOBXK.js} +1 -1
- package/public/{chunk-MA3HOSPP.js → chunk-AUNYWYZK.js} +1 -1
- package/public/{chunk-QN6P2WRK.js → chunk-AWFGX4UH.js} +1 -1
- package/public/{chunk-P6375ABC.js → chunk-BPUJQP7S.js} +1 -1
- package/public/{chunk-CKXSP7IR.js → chunk-BXNSSZQU.js} +1 -1
- package/public/{chunk-75LZTZGF.js → chunk-CE76KHI4.js} +1 -1
- package/public/chunk-CGB55TWP.js +1 -0
- package/public/{chunk-HPJ3LUSD.js → chunk-CO6C42ID.js} +1 -1
- package/public/chunk-CWAROVXL.js +1 -0
- package/public/{chunk-ET5ASDZV.js → chunk-CWLESZWI.js} +1 -1
- package/public/{chunk-LJNRODOH.js → chunk-DGZPMACM.js} +1 -1
- package/public/{chunk-XT73VRCU.js → chunk-DTCZUF5X.js} +1 -1
- package/public/chunk-E4NNL36U.js +1 -0
- package/public/{chunk-Z4LQDDZT.js → chunk-EPTTTCYA.js} +1 -1
- package/public/{chunk-DBMSQ32L.js → chunk-FN54I3N2.js} +1 -1
- package/public/{chunk-YQQIYYEJ.js → chunk-FR2SRQ6O.js} +1 -1
- package/public/{chunk-C5RNSBNS.js → chunk-FVYSS7A6.js} +1 -1
- package/public/{chunk-E4LCOK4T.js → chunk-GCSRDNWU.js} +1 -1
- package/public/{chunk-P2OEQDP7.js → chunk-GHS7224B.js} +1 -1
- package/public/{chunk-WTYP6A2G.js → chunk-GPATGB7A.js} +1 -1
- package/public/{chunk-YSOWPBAG.js → chunk-HGVWDZM7.js} +1 -1
- package/public/chunk-I7RBEGVL.js +1 -0
- package/public/{chunk-X34XL3Z7.js → chunk-IXX3QR3W.js} +1 -1
- package/public/{chunk-2F3XEUAD.js → chunk-JK2TIEOZ.js} +1 -1
- package/public/chunk-JRE4YLKQ.js +1 -0
- package/public/{chunk-QQELI3RK.js → chunk-L7XNUEKD.js} +1 -1
- package/public/{chunk-QADRQCUN.js → chunk-LAZONQ56.js} +1 -1
- package/public/{chunk-27FPUPTN.js → chunk-LN2VCCLR.js} +1 -1
- package/public/{chunk-K2VKBYPF.js → chunk-MEQQHR4J.js} +1 -1
- package/public/chunk-NIQ3CMM3.js +1 -0
- package/public/{chunk-GZ5DOCVG.js → chunk-NMCUOQS6.js} +1 -1
- package/public/chunk-NSKRVV2Q.js +1 -0
- package/public/{chunk-MP2566JB.js → chunk-O57GSOID.js} +1 -1
- package/public/{chunk-TQODQLMU.js → chunk-OIPTRAIJ.js} +1 -1
- package/public/{chunk-W3NZWHLA.js → chunk-OXB2TK4Y.js} +1 -1
- package/public/{chunk-YG5UHXGO.js → chunk-P24MYBIN.js} +1 -1
- package/public/{chunk-5PUZ56HW.js → chunk-PAPJD32S.js} +1 -1
- package/public/{chunk-7VZO5R4J.js → chunk-PZ34U5OV.js} +1 -1
- package/public/{chunk-J4I2UKEG.js → chunk-QRHPGHWR.js} +5 -5
- package/public/chunk-S562WX6B.js +1 -0
- package/public/{chunk-V6DGQLQO.js → chunk-SAUJHLW4.js} +1 -1
- package/public/{chunk-NFFAXZA6.js → chunk-SQIPIZV2.js} +1 -1
- package/public/chunk-USZR6IOE.js +1 -0
- package/public/chunk-WAV54USB.js +1 -0
- package/public/{chunk-HVJRSDCO.js → chunk-WLWKH3SS.js} +1 -1
- package/public/{chunk-EOXXEC54.js → chunk-WREHLPR6.js} +1 -1
- package/public/{chunk-E2YV2VI5.js → chunk-WXDRU7AD.js} +1 -1
- package/public/{chunk-LAFQ6QBN.js → chunk-X34UWQ4G.js} +1 -1
- package/public/{chunk-BOYCBPUU.js → chunk-XVCYUDXV.js} +1 -1
- package/public/{chunk-CBI3LF3A.js → chunk-YMEOGTJF.js} +1 -1
- package/public/{chunk-EE3AXC6U.js → chunk-YNSIFZ5S.js} +1 -1
- package/public/{chunk-EJFSW4SK.js → chunk-YVIUWSSI.js} +1 -1
- package/public/chunk-Z3THJJ67.js +1 -0
- package/public/{chunk-JHT7FCNA.js → chunk-Z4RRWRCY.js} +1 -1
- package/public/chunk-ZPJB4ZAQ.js +1 -0
- package/public/index.html +1 -1
- package/public/{main-VBJHYWNC.js → main-67JW6AVL.js} +1 -1
- package/public/chunk-3T7LR3KP.js +0 -1
- package/public/chunk-4GEGP5GO.js +0 -1
- package/public/chunk-6KTSVDPB.js +0 -1
- package/public/chunk-7PD4QI6O.js +0 -1
- package/public/chunk-CFFLJ5JD.js +0 -1
- package/public/chunk-F3YCS6HT.js +0 -1
- package/public/chunk-GABFFUBD.js +0 -1
- package/public/chunk-GEH6XWDN.js +0 -1
- package/public/chunk-KMMOUPYM.js +0 -1
- package/public/chunk-L224W57S.js +0 -1
- package/public/chunk-LXRPNSLW.js +0 -1
- package/public/chunk-NRCSHT3L.js +0 -1
- package/public/chunk-RMEDSCQG.js +0 -1
- package/public/chunk-SYZ2D5X2.js +0 -1
- package/public/chunk-YCLJUAE2.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as At,b as KF}from"./chunk-YSOWPBAG.js";import{a as Ss}from"./chunk-5SBO5IQQ.js";import{a as Qu,b as Xu}from"./chunk-2DMDQOK2.js";import{a as Is,b as Qi}from"./chunk-JHT7FCNA.js";import{a as As}from"./chunk-CEFSEL4J.js";import{a as vs,b as Bs}from"./chunk-LJNOSMWT.js";import{a as fo}from"./chunk-JHGDWS5G.js";import{a as ws}from"./chunk-67EN4M44.js";import{a as xs}from"./chunk-NNPWW7QY.js";import{a as sn,b as ln,c as dn,d as cn,e as pn,f as mn,g as Ju,m as he,n as Re,o as Zu}from"./chunk-J4I2UKEG.js";import{a as Cs,b as Uu,c as Wu,e as ot,f as hs,h as gs,i as Es,k as bs,l as fu,m as _s,o as Gu,r as an,s as Ji,t as Zi,x as ys,y as wt,z as io}from"./chunk-UUOIJNVA.js";import{a as Ku}from"./chunk-E4LCOK4T.js";import{d as iu}from"./chunk-EBVMWV7Q.js";import{a as Fs}from"./chunk-33OXRXUC.js";import{b as ke}from"./chunk-CBI3LF3A.js";import{a as uu,b as oe,j as de}from"./chunk-HVJRSDCO.js";import{e as ms}from"./chunk-YXTLNUTK.js";import{a as le,b as Ce}from"./chunk-Q4VBD4HY.js";import{Aa as ns,Ac as xu,Bb as $,Bc as uo,Cc as y,D as is,Dc as B,Ec as rt,Fa as Bt,Ga as rs,Ia as Jf,Ic as ps,Ka as Zf,Lb as U,M as Wf,Mb as h,Nb as xt,Ob as zu,Pb as J,Qb as as,Rb as A,Tb as et,Ub as tt,Vb as ut,Wb as d,Xb as c,Yb as w,Zb as ss,_ as to,_b as ls,a as Q,ac as H,b as ve,ba as Wi,bd as jt,cd as wu,db as Fe,dc as O,dd as it,e as F,ec as C,g as Oe,ga as fs,gb as os,h as W,ha as vt,ia as Gf,ib as s,ic as tn,jb as ce,jc as un,jd as on,k as Ya,kc as fn,lc as nn,ma as Kf,mb as Qf,mc as rn,n as pt,na as S,nd as Dn,oc as E,pb as Xf,pc as z,q as es,qc as V,rb as Yf,rc as Me,sc as ds,tc as Ie,ub as K,uc as Se,v as ts,vb as en,vc as $e,w as fe,wa as Gi,wb as Lu,wc as cs,x as us,xa as N,xb as Ds,xc as qe,ya as q,yc as Ki,zc as Hu}from"./chunk-NHJLTSH3.js";var ks=F((tN,$s)=>{function ZF(){this.__data__=[],this.size=0}$s.exports=ZF});var Fn=F((uN,Ts)=>{function QF(e,u){return e===u||e!==e&&u!==u}Ts.exports=QF});var Xi=F((iN,Ps)=>{var XF=Fn();function YF(e,u){for(var t=e.length;t--;)if(XF(e[t][0],u))return t;return-1}Ps.exports=YF});var Ms=F((fN,Os)=>{var eC=Xi(),tC=Array.prototype,uC=tC.splice;function iC(e){var u=this.__data__,t=eC(u,e);if(t<0)return!1;var i=u.length-1;return t==i?u.pop():uC.call(u,t,1),--this.size,!0}Os.exports=iC});var Ns=F((nN,js)=>{var fC=Xi();function nC(e){var u=this.__data__,t=fC(u,e);return t<0?void 0:u[t][1]}js.exports=nC});var Vs=F((rN,qs)=>{var rC=Xi();function oC(e){return rC(this.__data__,e)>-1}qs.exports=oC});var Ls=F((oN,Rs)=>{var DC=Xi();function aC(e,u){var t=this.__data__,i=DC(t,e);return i<0?(++this.size,t.push([e,u])):t[i][1]=u,this}Rs.exports=aC});var Yi=F((DN,zs)=>{var sC=ks(),lC=Ms(),dC=Ns(),cC=Vs(),pC=Ls();function Yu(e){var u=-1,t=e==null?0:e.length;for(this.clear();++u<t;){var i=e[u];this.set(i[0],i[1])}}Yu.prototype.clear=sC;Yu.prototype.delete=lC;Yu.prototype.get=dC;Yu.prototype.has=cC;Yu.prototype.set=pC;zs.exports=Yu});var Us=F((aN,Hs)=>{var mC=Yi();function FC(){this.__data__=new mC,this.size=0}Hs.exports=FC});var Gs=F((sN,Ws)=>{function CC(e){var u=this.__data__,t=u.delete(e);return this.size=u.size,t}Ws.exports=CC});var Js=F((lN,Ks)=>{function hC(e){return this.__data__.get(e)}Ks.exports=hC});var Qs=F((dN,Zs)=>{function gC(e){return this.__data__.has(e)}Zs.exports=gC});var no=F((cN,Xs)=>{var EC=typeof global=="object"&&global&&global.Object===Object&&global;Xs.exports=EC});var It=F((pN,Ys)=>{var bC=no(),_C=typeof self=="object"&&self&&self.Object===Object&&self,yC=bC||_C||Function("return this")();Ys.exports=yC});var ei=F((mN,e0)=>{var vC=It(),BC=vC.Symbol;e0.exports=BC});var f0=F((FN,i0)=>{var t0=ei(),u0=Object.prototype,xC=u0.hasOwnProperty,wC=u0.toString,ef=t0?t0.toStringTag:void 0;function AC(e){var u=xC.call(e,ef),t=e[ef];try{e[ef]=void 0;var i=!0}catch{}var f=wC.call(e);return i&&(u?e[ef]=t:delete e[ef]),f}i0.exports=AC});var r0=F((CN,n0)=>{var IC=Object.prototype,SC=IC.toString;function $C(e){return SC.call(e)}n0.exports=$C});var Au=F((hN,a0)=>{var o0=ei(),kC=f0(),TC=r0(),PC="[object Null]",OC="[object Undefined]",D0=o0?o0.toStringTag:void 0;function MC(e){return e==null?e===void 0?OC:PC:D0&&D0 in Object(e)?kC(e):TC(e)}a0.exports=MC});var Iu=F((gN,s0)=>{function jC(e){var u=typeof e;return e!=null&&(u=="object"||u=="function")}s0.exports=jC});var ro=F((EN,l0)=>{var NC=Au(),qC=Iu(),VC="[object AsyncFunction]",RC="[object Function]",LC="[object GeneratorFunction]",zC="[object Proxy]";function HC(e){if(!qC(e))return!1;var u=NC(e);return u==RC||u==LC||u==VC||u==zC}l0.exports=HC});var c0=F((bN,d0)=>{var UC=It(),WC=UC["__core-js_shared__"];d0.exports=WC});var F0=F((_N,m0)=>{var oo=c0(),p0=function(){var e=/[^.]+$/.exec(oo&&oo.keys&&oo.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function GC(e){return!!p0&&p0 in e}m0.exports=GC});var Do=F((yN,C0)=>{var KC=Function.prototype,JC=KC.toString;function ZC(e){if(e!=null){try{return JC.call(e)}catch{}try{return e+""}catch{}}return""}C0.exports=ZC});var g0=F((vN,h0)=>{var QC=ro(),XC=F0(),YC=Iu(),e4=Do(),t4=/[\\^$.*+?()[\]{}|]/g,u4=/^\[object .+?Constructor\]$/,i4=Function.prototype,f4=Object.prototype,n4=i4.toString,r4=f4.hasOwnProperty,o4=RegExp("^"+n4.call(r4).replace(t4,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function D4(e){if(!YC(e)||XC(e))return!1;var u=QC(e)?o4:u4;return u.test(e4(e))}h0.exports=D4});var b0=F((BN,E0)=>{function a4(e,u){return e==null?void 0:e[u]}E0.exports=a4});var ru=F((xN,_0)=>{var s4=g0(),l4=b0();function d4(e,u){var t=l4(e,u);return s4(t)?t:void 0}_0.exports=d4});var Cn=F((wN,y0)=>{var c4=ru(),p4=It(),m4=c4(p4,"Map");y0.exports=m4});var tf=F((AN,v0)=>{var F4=ru(),C4=F4(Object,"create");v0.exports=C4});var w0=F((IN,x0)=>{var B0=tf();function h4(){this.__data__=B0?B0(null):{},this.size=0}x0.exports=h4});var I0=F((SN,A0)=>{function g4(e){var u=this.has(e)&&delete this.__data__[e];return this.size-=u?1:0,u}A0.exports=g4});var $0=F(($N,S0)=>{var E4=tf(),b4="__lodash_hash_undefined__",_4=Object.prototype,y4=_4.hasOwnProperty;function v4(e){var u=this.__data__;if(E4){var t=u[e];return t===b4?void 0:t}return y4.call(u,e)?u[e]:void 0}S0.exports=v4});var T0=F((kN,k0)=>{var B4=tf(),x4=Object.prototype,w4=x4.hasOwnProperty;function A4(e){var u=this.__data__;return B4?u[e]!==void 0:w4.call(u,e)}k0.exports=A4});var O0=F((TN,P0)=>{var I4=tf(),S4="__lodash_hash_undefined__";function $4(e,u){var t=this.__data__;return this.size+=this.has(e)?0:1,t[e]=I4&&u===void 0?S4:u,this}P0.exports=$4});var j0=F((PN,M0)=>{var k4=w0(),T4=I0(),P4=$0(),O4=T0(),M4=O0();function ti(e){var u=-1,t=e==null?0:e.length;for(this.clear();++u<t;){var i=e[u];this.set(i[0],i[1])}}ti.prototype.clear=k4;ti.prototype.delete=T4;ti.prototype.get=P4;ti.prototype.has=O4;ti.prototype.set=M4;M0.exports=ti});var V0=F((ON,q0)=>{var N0=j0(),j4=Yi(),N4=Cn();function q4(){this.size=0,this.__data__={hash:new N0,map:new(N4||j4),string:new N0}}q0.exports=q4});var L0=F((MN,R0)=>{function V4(e){var u=typeof e;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?e!=="__proto__":e===null}R0.exports=V4});var uf=F((jN,z0)=>{var R4=L0();function L4(e,u){var t=e.__data__;return R4(u)?t[typeof u=="string"?"string":"hash"]:t.map}z0.exports=L4});var U0=F((NN,H0)=>{var z4=uf();function H4(e){var u=z4(this,e).delete(e);return this.size-=u?1:0,u}H0.exports=H4});var G0=F((qN,W0)=>{var U4=uf();function W4(e){return U4(this,e).get(e)}W0.exports=W4});var J0=F((VN,K0)=>{var G4=uf();function K4(e){return G4(this,e).has(e)}K0.exports=K4});var Q0=F((RN,Z0)=>{var J4=uf();function Z4(e,u){var t=J4(this,e),i=t.size;return t.set(e,u),this.size+=t.size==i?0:1,this}Z0.exports=Z4});var hn=F((LN,X0)=>{var Q4=V0(),X4=U0(),Y4=G0(),e5=J0(),t5=Q0();function ui(e){var u=-1,t=e==null?0:e.length;for(this.clear();++u<t;){var i=e[u];this.set(i[0],i[1])}}ui.prototype.clear=Q4;ui.prototype.delete=X4;ui.prototype.get=Y4;ui.prototype.has=e5;ui.prototype.set=t5;X0.exports=ui});var e1=F((zN,Y0)=>{var u5=Yi(),i5=Cn(),f5=hn(),n5=200;function r5(e,u){var t=this.__data__;if(t instanceof u5){var i=t.__data__;if(!i5||i.length<n5-1)return i.push([e,u]),this.size=++t.size,this;t=this.__data__=new f5(i)}return t.set(e,u),this.size=t.size,this}Y0.exports=r5});var gn=F((HN,t1)=>{var o5=Yi(),D5=Us(),a5=Gs(),s5=Js(),l5=Qs(),d5=e1();function ii(e){var u=this.__data__=new o5(e);this.size=u.size}ii.prototype.clear=D5;ii.prototype.delete=a5;ii.prototype.get=s5;ii.prototype.has=l5;ii.prototype.set=d5;t1.exports=ii});var i1=F((UN,u1)=>{function c5(e,u){for(var t=-1,i=e==null?0:e.length;++t<i&&u(e[t],t,e)!==!1;);return e}u1.exports=c5});var n1=F((WN,f1)=>{var p5=ru(),m5=function(){try{var e=p5(Object,"defineProperty");return e({},"",{}),e}catch{}}();f1.exports=m5});var ao=F((GN,o1)=>{var r1=n1();function F5(e,u,t){u=="__proto__"&&r1?r1(e,u,{configurable:!0,enumerable:!0,value:t,writable:!0}):e[u]=t}o1.exports=F5});var so=F((KN,D1)=>{var C5=ao(),h5=Fn(),g5=Object.prototype,E5=g5.hasOwnProperty;function b5(e,u,t){var i=e[u];(!(E5.call(e,u)&&h5(i,t))||t===void 0&&!(u in e))&&C5(e,u,t)}D1.exports=b5});var ff=F((JN,a1)=>{var _5=so(),y5=ao();function v5(e,u,t,i){var f=!t;t||(t={});for(var n=-1,r=u.length;++n<r;){var o=u[n],D=i?i(t[o],e[o],o,t,e):void 0;D===void 0&&(D=e[o]),f?y5(t,o,D):_5(t,o,D)}return t}a1.exports=v5});var l1=F((ZN,s1)=>{function B5(e,u){for(var t=-1,i=Array(e);++t<e;)i[t]=u(t);return i}s1.exports=B5});var Ht=F((QN,d1)=>{function x5(e){return e!=null&&typeof e=="object"}d1.exports=x5});var p1=F((XN,c1)=>{var w5=Au(),A5=Ht(),I5="[object Arguments]";function S5(e){return A5(e)&&w5(e)==I5}c1.exports=S5});var lo=F((YN,C1)=>{var m1=p1(),$5=Ht(),F1=Object.prototype,k5=F1.hasOwnProperty,T5=F1.propertyIsEnumerable,P5=m1(function(){return arguments}())?m1:function(e){return $5(e)&&k5.call(e,"callee")&&!T5.call(e,"callee")};C1.exports=P5});var mt=F((eq,h1)=>{var O5=Array.isArray;h1.exports=O5});var E1=F((tq,g1)=>{function M5(){return!1}g1.exports=M5});var En=F((nf,fi)=>{var j5=It(),N5=E1(),y1=typeof nf=="object"&&nf&&!nf.nodeType&&nf,b1=y1&&typeof fi=="object"&&fi&&!fi.nodeType&&fi,q5=b1&&b1.exports===y1,_1=q5?j5.Buffer:void 0,V5=_1?_1.isBuffer:void 0,R5=V5||N5;fi.exports=R5});var co=F((uq,v1)=>{var L5=9007199254740991,z5=/^(?:0|[1-9]\d*)$/;function H5(e,u){var t=typeof e;return u=u==null?L5:u,!!u&&(t=="number"||t!="symbol"&&z5.test(e))&&e>-1&&e%1==0&&e<u}v1.exports=H5});var bn=F((iq,B1)=>{var U5=9007199254740991;function W5(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=U5}B1.exports=W5});var w1=F((fq,x1)=>{var G5=Au(),K5=bn(),J5=Ht(),Z5="[object Arguments]",Q5="[object Array]",X5="[object Boolean]",Y5="[object Date]",eh="[object Error]",th="[object Function]",uh="[object Map]",ih="[object Number]",fh="[object Object]",nh="[object RegExp]",rh="[object Set]",oh="[object String]",Dh="[object WeakMap]",ah="[object ArrayBuffer]",sh="[object DataView]",lh="[object Float32Array]",dh="[object Float64Array]",ch="[object Int8Array]",ph="[object Int16Array]",mh="[object Int32Array]",Fh="[object Uint8Array]",Ch="[object Uint8ClampedArray]",hh="[object Uint16Array]",gh="[object Uint32Array]",Be={};Be[lh]=Be[dh]=Be[ch]=Be[ph]=Be[mh]=Be[Fh]=Be[Ch]=Be[hh]=Be[gh]=!0;Be[Z5]=Be[Q5]=Be[ah]=Be[X5]=Be[sh]=Be[Y5]=Be[eh]=Be[th]=Be[uh]=Be[ih]=Be[fh]=Be[nh]=Be[rh]=Be[oh]=Be[Dh]=!1;function Eh(e){return J5(e)&&K5(e.length)&&!!Be[G5(e)]}x1.exports=Eh});var _n=F((nq,A1)=>{function bh(e){return function(u){return e(u)}}A1.exports=bh});var yn=F((rf,ni)=>{var _h=no(),I1=typeof rf=="object"&&rf&&!rf.nodeType&&rf,of=I1&&typeof ni=="object"&&ni&&!ni.nodeType&&ni,yh=of&&of.exports===I1,po=yh&&_h.process,vh=function(){try{var e=of&&of.require&&of.require("util").types;return e||po&&po.binding&&po.binding("util")}catch{}}();ni.exports=vh});var mo=F((rq,k1)=>{var Bh=w1(),xh=_n(),S1=yn(),$1=S1&&S1.isTypedArray,wh=$1?xh($1):Bh;k1.exports=wh});var Fo=F((oq,T1)=>{var Ah=l1(),Ih=lo(),Sh=mt(),$h=En(),kh=co(),Th=mo(),Ph=Object.prototype,Oh=Ph.hasOwnProperty;function Mh(e,u){var t=Sh(e),i=!t&&Ih(e),f=!t&&!i&&$h(e),n=!t&&!i&&!f&&Th(e),r=t||i||f||n,o=r?Ah(e.length,String):[],D=o.length;for(var a in e)(u||Oh.call(e,a))&&!(r&&(a=="length"||f&&(a=="offset"||a=="parent")||n&&(a=="buffer"||a=="byteLength"||a=="byteOffset")||kh(a,D)))&&o.push(a);return o}T1.exports=Mh});var vn=F((Dq,P1)=>{var jh=Object.prototype;function Nh(e){var u=e&&e.constructor,t=typeof u=="function"&&u.prototype||jh;return e===t}P1.exports=Nh});var Co=F((aq,O1)=>{function qh(e,u){return function(t){return e(u(t))}}O1.exports=qh});var j1=F((sq,M1)=>{var Vh=Co(),Rh=Vh(Object.keys,Object);M1.exports=Rh});var q1=F((lq,N1)=>{var Lh=vn(),zh=j1(),Hh=Object.prototype,Uh=Hh.hasOwnProperty;function Wh(e){if(!Lh(e))return zh(e);var u=[];for(var t in Object(e))Uh.call(e,t)&&t!="constructor"&&u.push(t);return u}N1.exports=Wh});var Df=F((dq,V1)=>{var Gh=ro(),Kh=bn();function Jh(e){return e!=null&&Kh(e.length)&&!Gh(e)}V1.exports=Jh});var ri=F((cq,R1)=>{var Zh=Fo(),Qh=q1(),Xh=Df();function Yh(e){return Xh(e)?Zh(e):Qh(e)}R1.exports=Yh});var z1=F((pq,L1)=>{var eg=ff(),tg=ri();function ug(e,u){return e&&eg(u,tg(u),e)}L1.exports=ug});var U1=F((mq,H1)=>{function ig(e){var u=[];if(e!=null)for(var t in Object(e))u.push(t);return u}H1.exports=ig});var G1=F((Fq,W1)=>{var fg=Iu(),ng=vn(),rg=U1(),og=Object.prototype,Dg=og.hasOwnProperty;function ag(e){if(!fg(e))return rg(e);var u=ng(e),t=[];for(var i in e)i=="constructor"&&(u||!Dg.call(e,i))||t.push(i);return t}W1.exports=ag});var Bn=F((Cq,K1)=>{var sg=Fo(),lg=G1(),dg=Df();function cg(e){return dg(e)?sg(e,!0):lg(e)}K1.exports=cg});var Z1=F((hq,J1)=>{var pg=ff(),mg=Bn();function Fg(e,u){return e&&pg(u,mg(u),e)}J1.exports=Fg});var tl=F((af,oi)=>{var Cg=It(),el=typeof af=="object"&&af&&!af.nodeType&&af,Q1=el&&typeof oi=="object"&&oi&&!oi.nodeType&&oi,hg=Q1&&Q1.exports===el,X1=hg?Cg.Buffer:void 0,Y1=X1?X1.allocUnsafe:void 0;function gg(e,u){if(u)return e.slice();var t=e.length,i=Y1?Y1(t):new e.constructor(t);return e.copy(i),i}oi.exports=gg});var il=F((gq,ul)=>{function Eg(e,u){var t=-1,i=e.length;for(u||(u=Array(i));++t<i;)u[t]=e[t];return u}ul.exports=Eg});var ho=F((Eq,fl)=>{function bg(e,u){for(var t=-1,i=e==null?0:e.length,f=0,n=[];++t<i;){var r=e[t];u(r,t,e)&&(n[f++]=r)}return n}fl.exports=bg});var go=F((bq,nl)=>{function _g(){return[]}nl.exports=_g});var xn=F((_q,ol)=>{var yg=ho(),vg=go(),Bg=Object.prototype,xg=Bg.propertyIsEnumerable,rl=Object.getOwnPropertySymbols,wg=rl?function(e){return e==null?[]:(e=Object(e),yg(rl(e),function(u){return xg.call(e,u)}))}:vg;ol.exports=wg});var al=F((yq,Dl)=>{var Ag=ff(),Ig=xn();function Sg(e,u){return Ag(e,Ig(e),u)}Dl.exports=Sg});var Eo=F((vq,sl)=>{function $g(e,u){for(var t=-1,i=u.length,f=e.length;++t<i;)e[f+t]=u[t];return e}sl.exports=$g});var wn=F((Bq,ll)=>{var kg=Co(),Tg=kg(Object.getPrototypeOf,Object);ll.exports=Tg});var bo=F((xq,dl)=>{var Pg=Eo(),Og=wn(),Mg=xn(),jg=go(),Ng=Object.getOwnPropertySymbols,qg=Ng?function(e){for(var u=[];e;)Pg(u,Mg(e)),e=Og(e);return u}:jg;dl.exports=qg});var pl=F((wq,cl)=>{var Vg=ff(),Rg=bo();function Lg(e,u){return Vg(e,Rg(e),u)}cl.exports=Lg});var _o=F((Aq,ml)=>{var zg=Eo(),Hg=mt();function Ug(e,u,t){var i=u(e);return Hg(e)?i:zg(i,t(e))}ml.exports=Ug});var yo=F((Iq,Fl)=>{var Wg=_o(),Gg=xn(),Kg=ri();function Jg(e){return Wg(e,Kg,Gg)}Fl.exports=Jg});var hl=F((Sq,Cl)=>{var Zg=_o(),Qg=bo(),Xg=Bn();function Yg(e){return Zg(e,Xg,Qg)}Cl.exports=Yg});var El=F(($q,gl)=>{var e6=ru(),t6=It(),u6=e6(t6,"DataView");gl.exports=u6});var _l=F((kq,bl)=>{var i6=ru(),f6=It(),n6=i6(f6,"Promise");bl.exports=n6});var vl=F((Tq,yl)=>{var r6=ru(),o6=It(),D6=r6(o6,"Set");yl.exports=D6});var xl=F((Pq,Bl)=>{var a6=ru(),s6=It(),l6=a6(s6,"WeakMap");Bl.exports=l6});var sf=F((Oq,Tl)=>{var vo=El(),Bo=Cn(),xo=_l(),wo=vl(),Ao=xl(),kl=Au(),Di=Do(),wl="[object Map]",d6="[object Object]",Al="[object Promise]",Il="[object Set]",Sl="[object WeakMap]",$l="[object DataView]",c6=Di(vo),p6=Di(Bo),m6=Di(xo),F6=Di(wo),C6=Di(Ao),Su=kl;(vo&&Su(new vo(new ArrayBuffer(1)))!=$l||Bo&&Su(new Bo)!=wl||xo&&Su(xo.resolve())!=Al||wo&&Su(new wo)!=Il||Ao&&Su(new Ao)!=Sl)&&(Su=function(e){var u=kl(e),t=u==d6?e.constructor:void 0,i=t?Di(t):"";if(i)switch(i){case c6:return $l;case p6:return wl;case m6:return Al;case F6:return Il;case C6:return Sl}return u});Tl.exports=Su});var Ol=F((Mq,Pl)=>{var h6=Object.prototype,g6=h6.hasOwnProperty;function E6(e){var u=e.length,t=new e.constructor(u);return u&&typeof e[0]=="string"&&g6.call(e,"index")&&(t.index=e.index,t.input=e.input),t}Pl.exports=E6});var Io=F((jq,Ml)=>{var b6=It(),_6=b6.Uint8Array;Ml.exports=_6});var An=F((Nq,Nl)=>{var jl=Io();function y6(e){var u=new e.constructor(e.byteLength);return new jl(u).set(new jl(e)),u}Nl.exports=y6});var Vl=F((qq,ql)=>{var v6=An();function B6(e,u){var t=u?v6(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.byteLength)}ql.exports=B6});var Ll=F((Vq,Rl)=>{var x6=/\w*$/;function w6(e){var u=new e.constructor(e.source,x6.exec(e));return u.lastIndex=e.lastIndex,u}Rl.exports=w6});var Gl=F((Rq,Wl)=>{var zl=ei(),Hl=zl?zl.prototype:void 0,Ul=Hl?Hl.valueOf:void 0;function A6(e){return Ul?Object(Ul.call(e)):{}}Wl.exports=A6});var Jl=F((Lq,Kl)=>{var I6=An();function S6(e,u){var t=u?I6(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.length)}Kl.exports=S6});var Ql=F((zq,Zl)=>{var $6=An(),k6=Vl(),T6=Ll(),P6=Gl(),O6=Jl(),M6="[object Boolean]",j6="[object Date]",N6="[object Map]",q6="[object Number]",V6="[object RegExp]",R6="[object Set]",L6="[object String]",z6="[object Symbol]",H6="[object ArrayBuffer]",U6="[object DataView]",W6="[object Float32Array]",G6="[object Float64Array]",K6="[object Int8Array]",J6="[object Int16Array]",Z6="[object Int32Array]",Q6="[object Uint8Array]",X6="[object Uint8ClampedArray]",Y6="[object Uint16Array]",eE="[object Uint32Array]";function tE(e,u,t){var i=e.constructor;switch(u){case H6:return $6(e);case M6:case j6:return new i(+e);case U6:return k6(e,t);case W6:case G6:case K6:case J6:case Z6:case Q6:case X6:case Y6:case eE:return O6(e,t);case N6:return new i;case q6:case L6:return new i(e);case V6:return T6(e);case R6:return new i;case z6:return P6(e)}}Zl.exports=tE});var e3=F((Hq,Yl)=>{var uE=Iu(),Xl=Object.create,iE=function(){function e(){}return function(u){if(!uE(u))return{};if(Xl)return Xl(u);e.prototype=u;var t=new e;return e.prototype=void 0,t}}();Yl.exports=iE});var u3=F((Uq,t3)=>{var fE=e3(),nE=wn(),rE=vn();function oE(e){return typeof e.constructor=="function"&&!rE(e)?fE(nE(e)):{}}t3.exports=oE});var f3=F((Wq,i3)=>{var DE=sf(),aE=Ht(),sE="[object Map]";function lE(e){return aE(e)&&DE(e)==sE}i3.exports=lE});var D3=F((Gq,o3)=>{var dE=f3(),cE=_n(),n3=yn(),r3=n3&&n3.isMap,pE=r3?cE(r3):dE;o3.exports=pE});var s3=F((Kq,a3)=>{var mE=sf(),FE=Ht(),CE="[object Set]";function hE(e){return FE(e)&&mE(e)==CE}a3.exports=hE});var p3=F((Jq,c3)=>{var gE=s3(),EE=_n(),l3=yn(),d3=l3&&l3.isSet,bE=d3?EE(d3):gE;c3.exports=bE});var g3=F((Zq,h3)=>{var _E=gn(),yE=i1(),vE=so(),BE=z1(),xE=Z1(),wE=tl(),AE=il(),IE=al(),SE=pl(),$E=yo(),kE=hl(),TE=sf(),PE=Ol(),OE=Ql(),ME=u3(),jE=mt(),NE=En(),qE=D3(),VE=Iu(),RE=p3(),LE=ri(),zE=Bn(),HE=1,UE=2,WE=4,m3="[object Arguments]",GE="[object Array]",KE="[object Boolean]",JE="[object Date]",ZE="[object Error]",F3="[object Function]",QE="[object GeneratorFunction]",XE="[object Map]",YE="[object Number]",C3="[object Object]",eb="[object RegExp]",tb="[object Set]",ub="[object String]",ib="[object Symbol]",fb="[object WeakMap]",nb="[object ArrayBuffer]",rb="[object DataView]",ob="[object Float32Array]",Db="[object Float64Array]",ab="[object Int8Array]",sb="[object Int16Array]",lb="[object Int32Array]",db="[object Uint8Array]",cb="[object Uint8ClampedArray]",pb="[object Uint16Array]",mb="[object Uint32Array]",_e={};_e[m3]=_e[GE]=_e[nb]=_e[rb]=_e[KE]=_e[JE]=_e[ob]=_e[Db]=_e[ab]=_e[sb]=_e[lb]=_e[XE]=_e[YE]=_e[C3]=_e[eb]=_e[tb]=_e[ub]=_e[ib]=_e[db]=_e[cb]=_e[pb]=_e[mb]=!0;_e[ZE]=_e[F3]=_e[fb]=!1;function In(e,u,t,i,f,n){var r,o=u&HE,D=u&UE,a=u&WE;if(t&&(r=f?t(e,i,f,n):t(e)),r!==void 0)return r;if(!VE(e))return e;var l=jE(e);if(l){if(r=PE(e),!o)return AE(e,r)}else{var m=TE(e),p=m==F3||m==QE;if(NE(e))return wE(e,o);if(m==C3||m==m3||p&&!f){if(r=D||p?{}:ME(e),!o)return D?SE(e,xE(r,e)):IE(e,BE(r,e))}else{if(!_e[m])return f?e:{};r=OE(e,m,o)}}n||(n=new _E);var b=n.get(e);if(b)return b;n.set(e,r),RE(e)?e.forEach(function(v){r.add(In(v,u,t,v,e,n))}):qE(e)&&e.forEach(function(v,I){r.set(I,In(v,u,t,I,e,n))});var g=a?D?kE:$E:D?zE:LE,_=l?void 0:g(e);return yE(_||e,function(v,I){_&&(I=v,v=e[I]),vE(r,I,In(v,u,t,I,e,n))}),r}h3.exports=In});var b3=F((Qq,E3)=>{var Fb=g3(),Cb=1,hb=4;function gb(e){return Fb(e,Cb|hb)}E3.exports=gb});var y3=F((Xq,_3)=>{var Eb="__lodash_hash_undefined__";function bb(e){return this.__data__.set(e,Eb),this}_3.exports=bb});var B3=F((Yq,v3)=>{function _b(e){return this.__data__.has(e)}v3.exports=_b});var w3=F((eV,x3)=>{var yb=hn(),vb=y3(),Bb=B3();function Sn(e){var u=-1,t=e==null?0:e.length;for(this.__data__=new yb;++u<t;)this.add(e[u])}Sn.prototype.add=Sn.prototype.push=vb;Sn.prototype.has=Bb;x3.exports=Sn});var I3=F((tV,A3)=>{function xb(e,u){for(var t=-1,i=e==null?0:e.length;++t<i;)if(u(e[t],t,e))return!0;return!1}A3.exports=xb});var $3=F((uV,S3)=>{function wb(e,u){return e.has(u)}S3.exports=wb});var So=F((iV,k3)=>{var Ab=w3(),Ib=I3(),Sb=$3(),$b=1,kb=2;function Tb(e,u,t,i,f,n){var r=t&$b,o=e.length,D=u.length;if(o!=D&&!(r&&D>o))return!1;var a=n.get(e),l=n.get(u);if(a&&l)return a==u&&l==e;var m=-1,p=!0,b=t&kb?new Ab:void 0;for(n.set(e,u),n.set(u,e);++m<o;){var g=e[m],_=u[m];if(i)var v=r?i(_,g,m,u,e,n):i(g,_,m,e,u,n);if(v!==void 0){if(v)continue;p=!1;break}if(b){if(!Ib(u,function(I,P){if(!Sb(b,P)&&(g===I||f(g,I,t,i,n)))return b.push(P)})){p=!1;break}}else if(!(g===_||f(g,_,t,i,n))){p=!1;break}}return n.delete(e),n.delete(u),p}k3.exports=Tb});var P3=F((fV,T3)=>{function Pb(e){var u=-1,t=Array(e.size);return e.forEach(function(i,f){t[++u]=[f,i]}),t}T3.exports=Pb});var M3=F((nV,O3)=>{function Ob(e){var u=-1,t=Array(e.size);return e.forEach(function(i){t[++u]=i}),t}O3.exports=Ob});var R3=F((rV,V3)=>{var j3=ei(),N3=Io(),Mb=Fn(),jb=So(),Nb=P3(),qb=M3(),Vb=1,Rb=2,Lb="[object Boolean]",zb="[object Date]",Hb="[object Error]",Ub="[object Map]",Wb="[object Number]",Gb="[object RegExp]",Kb="[object Set]",Jb="[object String]",Zb="[object Symbol]",Qb="[object ArrayBuffer]",Xb="[object DataView]",q3=j3?j3.prototype:void 0,$o=q3?q3.valueOf:void 0;function Yb(e,u,t,i,f,n,r){switch(t){case Xb:if(e.byteLength!=u.byteLength||e.byteOffset!=u.byteOffset)return!1;e=e.buffer,u=u.buffer;case Qb:return!(e.byteLength!=u.byteLength||!n(new N3(e),new N3(u)));case Lb:case zb:case Wb:return Mb(+e,+u);case Hb:return e.name==u.name&&e.message==u.message;case Gb:case Jb:return e==u+"";case Ub:var o=Nb;case Kb:var D=i&Vb;if(o||(o=qb),e.size!=u.size&&!D)return!1;var a=r.get(e);if(a)return a==u;i|=Rb,r.set(e,u);var l=jb(o(e),o(u),i,f,n,r);return r.delete(e),l;case Zb:if($o)return $o.call(e)==$o.call(u)}return!1}V3.exports=Yb});var H3=F((oV,z3)=>{var L3=yo(),e_=1,t_=Object.prototype,u_=t_.hasOwnProperty;function i_(e,u,t,i,f,n){var r=t&e_,o=L3(e),D=o.length,a=L3(u),l=a.length;if(D!=l&&!r)return!1;for(var m=D;m--;){var p=o[m];if(!(r?p in u:u_.call(u,p)))return!1}var b=n.get(e),g=n.get(u);if(b&&g)return b==u&&g==e;var _=!0;n.set(e,u),n.set(u,e);for(var v=r;++m<D;){p=o[m];var I=e[p],P=u[p];if(i)var R=r?i(P,I,p,u,e,n):i(I,P,p,e,u,n);if(!(R===void 0?I===P||f(I,P,t,i,n):R)){_=!1;break}v||(v=p=="constructor")}if(_&&!v){var L=e.constructor,M=u.constructor;L!=M&&"constructor"in e&&"constructor"in u&&!(typeof L=="function"&&L instanceof L&&typeof M=="function"&&M instanceof M)&&(_=!1)}return n.delete(e),n.delete(u),_}z3.exports=i_});var X3=F((DV,Q3)=>{var ko=gn(),f_=So(),n_=R3(),r_=H3(),U3=sf(),W3=mt(),G3=En(),o_=mo(),D_=1,K3="[object Arguments]",J3="[object Array]",$n="[object Object]",a_=Object.prototype,Z3=a_.hasOwnProperty;function s_(e,u,t,i,f,n){var r=W3(e),o=W3(u),D=r?J3:U3(e),a=o?J3:U3(u);D=D==K3?$n:D,a=a==K3?$n:a;var l=D==$n,m=a==$n,p=D==a;if(p&&G3(e)){if(!G3(u))return!1;r=!0,l=!1}if(p&&!l)return n||(n=new ko),r||o_(e)?f_(e,u,t,i,f,n):n_(e,u,D,t,i,f,n);if(!(t&D_)){var b=l&&Z3.call(e,"__wrapped__"),g=m&&Z3.call(u,"__wrapped__");if(b||g){var _=b?e.value():e,v=g?u.value():u;return n||(n=new ko),f(_,v,t,i,n)}}return p?(n||(n=new ko),r_(e,u,t,i,f,n)):!1}Q3.exports=s_});var kn=F((aV,td)=>{var l_=X3(),Y3=Ht();function ed(e,u,t,i,f){return e===u?!0:e==null||u==null||!Y3(e)&&!Y3(u)?e!==e&&u!==u:l_(e,u,t,i,ed,f)}td.exports=ed});var id=F((sV,ud)=>{var d_=kn();function c_(e,u){return d_(e,u)}ud.exports=c_});var cf=F(ae=>{"use strict";Object.defineProperty(ae,"__esModule",{value:!0});ae.regexpCode=ae.getEsmExportName=ae.getProperty=ae.safeStringify=ae.stringify=ae.strConcat=ae.addCodeArg=ae.str=ae._=ae.nil=ae._Code=ae.Name=ae.IDENTIFIER=ae._CodeOrName=void 0;var lf=class{};ae._CodeOrName=lf;ae.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var $u=class extends lf{constructor(u){if(super(),!ae.IDENTIFIER.test(u))throw new Error("CodeGen: name must be a valid identifier");this.str=u}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};ae.Name=$u;var ht=class extends lf{constructor(u){super(),this._items=typeof u=="string"?[u]:u}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let u=this._items[0];return u===""||u==='""'}get str(){var u;return(u=this._str)!==null&&u!==void 0?u:this._str=this._items.reduce((t,i)=>`${t}${i}`,"")}get names(){var u;return(u=this._names)!==null&&u!==void 0?u:this._names=this._items.reduce((t,i)=>(i instanceof $u&&(t[i.str]=(t[i.str]||0)+1),t),{})}};ae._Code=ht;ae.nil=new ht("");function fd(e,...u){let t=[e[0]],i=0;for(;i<u.length;)Po(t,u[i]),t.push(e[++i]);return new ht(t)}ae._=fd;var To=new ht("+");function nd(e,...u){let t=[df(e[0])],i=0;for(;i<u.length;)t.push(To),Po(t,u[i]),t.push(To,df(e[++i]));return p_(t),new ht(t)}ae.str=nd;function Po(e,u){u instanceof ht?e.push(...u._items):u instanceof $u?e.push(u):e.push(C_(u))}ae.addCodeArg=Po;function p_(e){let u=1;for(;u<e.length-1;){if(e[u]===To){let t=m_(e[u-1],e[u+1]);if(t!==void 0){e.splice(u-1,3,t);continue}e[u++]="+"}u++}}function m_(e,u){if(u==='""')return e;if(e==='""')return u;if(typeof e=="string")return u instanceof $u||e[e.length-1]!=='"'?void 0:typeof u!="string"?`${e.slice(0,-1)}${u}"`:u[0]==='"'?e.slice(0,-1)+u.slice(1):void 0;if(typeof u=="string"&&u[0]==='"'&&!(e instanceof $u))return`"${e}${u.slice(1)}`}function F_(e,u){return u.emptyStr()?e:e.emptyStr()?u:nd`${e}${u}`}ae.strConcat=F_;function C_(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:df(Array.isArray(e)?e.join(","):e)}function h_(e){return new ht(df(e))}ae.stringify=h_;function df(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}ae.safeStringify=df;function g_(e){return typeof e=="string"&&ae.IDENTIFIER.test(e)?new ht(`.${e}`):fd`[${e}]`}ae.getProperty=g_;function E_(e){if(typeof e=="string"&&ae.IDENTIFIER.test(e))return new ht(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}ae.getEsmExportName=E_;function b_(e){return new ht(e.toString())}ae.regexpCode=b_});var jo=F(at=>{"use strict";Object.defineProperty(at,"__esModule",{value:!0});at.ValueScope=at.ValueScopeName=at.Scope=at.varKinds=at.UsedValueState=void 0;var Dt=cf(),Oo=class extends Error{constructor(u){super(`CodeGen: "code" for ${u} not defined`),this.value=u.value}},Tn=function(e){return e[e.Started=0]="Started",e[e.Completed=1]="Completed",e}(Tn||(at.UsedValueState=Tn={}));at.varKinds={const:new Dt.Name("const"),let:new Dt.Name("let"),var:new Dt.Name("var")};var Pn=class{constructor({prefixes:u,parent:t}={}){this._names={},this._prefixes=u,this._parent=t}toName(u){return u instanceof Dt.Name?u:this.name(u)}name(u){return new Dt.Name(this._newName(u))}_newName(u){let t=this._names[u]||this._nameGroup(u);return`${u}${t.index++}`}_nameGroup(u){var t,i;if(!((i=(t=this._parent)===null||t===void 0?void 0:t._prefixes)===null||i===void 0)&&i.has(u)||this._prefixes&&!this._prefixes.has(u))throw new Error(`CodeGen: prefix "${u}" is not allowed in this scope`);return this._names[u]={prefix:u,index:0}}};at.Scope=Pn;var On=class extends Dt.Name{constructor(u,t){super(t),this.prefix=u}setValue(u,{property:t,itemIndex:i}){this.value=u,this.scopePath=(0,Dt._)`.${new Dt.Name(t)}[${i}]`}};at.ValueScopeName=On;var __=(0,Dt._)`\n`,Mo=class extends Pn{constructor(u){super(u),this._values={},this._scope=u.scope,this.opts=ve(Q({},u),{_n:u.lines?__:Dt.nil})}get(){return this._scope}name(u){return new On(u,this._newName(u))}value(u,t){var i;if(t.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let f=this.toName(u),{prefix:n}=f,r=(i=t.key)!==null&&i!==void 0?i:t.ref,o=this._values[n];if(o){let l=o.get(r);if(l)return l}else o=this._values[n]=new Map;o.set(r,f);let D=this._scope[n]||(this._scope[n]=[]),a=D.length;return D[a]=t.ref,f.setValue(t,{property:n,itemIndex:a}),f}getValue(u,t){let i=this._values[u];if(i)return i.get(t)}scopeRefs(u,t=this._values){return this._reduceValues(t,i=>{if(i.scopePath===void 0)throw new Error(`CodeGen: name "${i}" has no value`);return(0,Dt._)`${u}${i.scopePath}`})}scopeCode(u=this._values,t,i){return this._reduceValues(u,f=>{if(f.value===void 0)throw new Error(`CodeGen: name "${f}" has no value`);return f.value.code},t,i)}_reduceValues(u,t,i={},f){let n=Dt.nil;for(let r in u){let o=u[r];if(!o)continue;let D=i[r]=i[r]||new Map;o.forEach(a=>{if(D.has(a))return;D.set(a,Tn.Started);let l=t(a);if(l){let m=this.opts.es5?at.varKinds.var:at.varKinds.const;n=(0,Dt._)`${n}${m} ${a} = ${l};${this.opts._n}`}else if(l=f==null?void 0:f(a))n=(0,Dt._)`${n}${l}${this.opts._n}`;else throw new Oo(a);D.set(a,Tn.Completed)})}return n}};at.ValueScope=Mo});var ue=F(te=>{"use strict";Object.defineProperty(te,"__esModule",{value:!0});te.or=te.and=te.not=te.CodeGen=te.operators=te.varKinds=te.ValueScopeName=te.ValueScope=te.Scope=te.Name=te.regexpCode=te.stringify=te.getProperty=te.nil=te.strConcat=te.str=te._=void 0;var re=cf(),St=jo(),ou=cf();Object.defineProperty(te,"_",{enumerable:!0,get:function(){return ou._}});Object.defineProperty(te,"str",{enumerable:!0,get:function(){return ou.str}});Object.defineProperty(te,"strConcat",{enumerable:!0,get:function(){return ou.strConcat}});Object.defineProperty(te,"nil",{enumerable:!0,get:function(){return ou.nil}});Object.defineProperty(te,"getProperty",{enumerable:!0,get:function(){return ou.getProperty}});Object.defineProperty(te,"stringify",{enumerable:!0,get:function(){return ou.stringify}});Object.defineProperty(te,"regexpCode",{enumerable:!0,get:function(){return ou.regexpCode}});Object.defineProperty(te,"Name",{enumerable:!0,get:function(){return ou.Name}});var Vn=jo();Object.defineProperty(te,"Scope",{enumerable:!0,get:function(){return Vn.Scope}});Object.defineProperty(te,"ValueScope",{enumerable:!0,get:function(){return Vn.ValueScope}});Object.defineProperty(te,"ValueScopeName",{enumerable:!0,get:function(){return Vn.ValueScopeName}});Object.defineProperty(te,"varKinds",{enumerable:!0,get:function(){return Vn.varKinds}});te.operators={GT:new re._Code(">"),GTE:new re._Code(">="),LT:new re._Code("<"),LTE:new re._Code("<="),EQ:new re._Code("==="),NEQ:new re._Code("!=="),NOT:new re._Code("!"),OR:new re._Code("||"),AND:new re._Code("&&"),ADD:new re._Code("+")};var Ut=class{optimizeNodes(){return this}optimizeNames(u,t){return this}},No=class extends Ut{constructor(u,t,i){super(),this.varKind=u,this.name=t,this.rhs=i}render({es5:u,_n:t}){let i=u?St.varKinds.var:this.varKind,f=this.rhs===void 0?"":` = ${this.rhs}`;return`${i} ${this.name}${f};`+t}optimizeNames(u,t){if(u[this.name.str])return this.rhs&&(this.rhs=ai(this.rhs,u,t)),this}get names(){return this.rhs instanceof re._CodeOrName?this.rhs.names:{}}},jn=class extends Ut{constructor(u,t,i){super(),this.lhs=u,this.rhs=t,this.sideEffects=i}render({_n:u}){return`${this.lhs} = ${this.rhs};`+u}optimizeNames(u,t){if(!(this.lhs instanceof re.Name&&!u[this.lhs.str]&&!this.sideEffects))return this.rhs=ai(this.rhs,u,t),this}get names(){let u=this.lhs instanceof re.Name?{}:Q({},this.lhs.names);return qn(u,this.rhs)}},qo=class extends jn{constructor(u,t,i,f){super(u,i,f),this.op=t}render({_n:u}){return`${this.lhs} ${this.op}= ${this.rhs};`+u}},Vo=class extends Ut{constructor(u){super(),this.label=u,this.names={}}render({_n:u}){return`${this.label}:`+u}},Ro=class extends Ut{constructor(u){super(),this.label=u,this.names={}}render({_n:u}){return`break${this.label?` ${this.label}`:""};`+u}},Lo=class extends Ut{constructor(u){super(),this.error=u}render({_n:u}){return`throw ${this.error};`+u}get names(){return this.error.names}},zo=class extends Ut{constructor(u){super(),this.code=u}render({_n:u}){return`${this.code};`+u}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(u,t){return this.code=ai(this.code,u,t),this}get names(){return this.code instanceof re._CodeOrName?this.code.names:{}}},pf=class extends Ut{constructor(u=[]){super(),this.nodes=u}render(u){return this.nodes.reduce((t,i)=>t+i.render(u),"")}optimizeNodes(){let{nodes:u}=this,t=u.length;for(;t--;){let i=u[t].optimizeNodes();Array.isArray(i)?u.splice(t,1,...i):i?u[t]=i:u.splice(t,1)}return u.length>0?this:void 0}optimizeNames(u,t){let{nodes:i}=this,f=i.length;for(;f--;){let n=i[f];n.optimizeNames(u,t)||(y_(u,n.names),i.splice(f,1))}return i.length>0?this:void 0}get names(){return this.nodes.reduce((u,t)=>ku(u,t.names),{})}},Wt=class extends pf{render(u){return"{"+u._n+super.render(u)+"}"+u._n}},Ho=class extends pf{},Uo=(()=>{class e extends Wt{}return e.kind="else",e})(),Mn=(()=>{class e extends Wt{constructor(t,i){super(i),this.condition=t}render(t){let i=`if(${this.condition})`+super.render(t);return this.else&&(i+="else "+this.else.render(t)),i}optimizeNodes(){super.optimizeNodes();let t=this.condition;if(t===!0)return this.nodes;let i=this.else;if(i){let f=i.optimizeNodes();i=this.else=Array.isArray(f)?new Uo(f):f}if(i)return t===!1?i instanceof e?i:i.nodes:this.nodes.length?this:new e(sd(t),i instanceof e?[i]:i.nodes);if(!(t===!1||!this.nodes.length))return this}optimizeNames(t,i){var f;if(this.else=(f=this.else)===null||f===void 0?void 0:f.optimizeNames(t,i),!!(super.optimizeNames(t,i)||this.else))return this.condition=ai(this.condition,t,i),this}get names(){let t=super.names;return qn(t,this.condition),this.else&&ku(t,this.else.names),t}}return e.kind="if",e})(),Rn=(()=>{class e extends Wt{}return e.kind="for",e})(),Wo=class extends Rn{constructor(u){super(),this.iteration=u}render(u){return`for(${this.iteration})`+super.render(u)}optimizeNames(u,t){if(super.optimizeNames(u,t))return this.iteration=ai(this.iteration,u,t),this}get names(){return ku(super.names,this.iteration.names)}},Go=class extends Rn{constructor(u,t,i,f){super(),this.varKind=u,this.name=t,this.from=i,this.to=f}render(u){let t=u.es5?St.varKinds.var:this.varKind,{name:i,from:f,to:n}=this;return`for(${t} ${i}=${f}; ${i}<${n}; ${i}++)`+super.render(u)}get names(){let u=qn(super.names,this.from);return qn(u,this.to)}},Nn=class extends Rn{constructor(u,t,i,f){super(),this.loop=u,this.varKind=t,this.name=i,this.iterable=f}render(u){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(u)}optimizeNames(u,t){if(super.optimizeNames(u,t))return this.iterable=ai(this.iterable,u,t),this}get names(){return ku(super.names,this.iterable.names)}},rd=(()=>{class e extends Wt{constructor(t,i,f){super(),this.name=t,this.args=i,this.async=f}render(t){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(t)}}return e.kind="func",e})(),od=(()=>{class e extends pf{render(t){return"return "+super.render(t)}}return e.kind="return",e})(),Ko=class extends Wt{render(u){let t="try"+super.render(u);return this.catch&&(t+=this.catch.render(u)),this.finally&&(t+=this.finally.render(u)),t}optimizeNodes(){var u,t;return super.optimizeNodes(),(u=this.catch)===null||u===void 0||u.optimizeNodes(),(t=this.finally)===null||t===void 0||t.optimizeNodes(),this}optimizeNames(u,t){var i,f;return super.optimizeNames(u,t),(i=this.catch)===null||i===void 0||i.optimizeNames(u,t),(f=this.finally)===null||f===void 0||f.optimizeNames(u,t),this}get names(){let u=super.names;return this.catch&&ku(u,this.catch.names),this.finally&&ku(u,this.finally.names),u}},Dd=(()=>{class e extends Wt{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}}return e.kind="catch",e})(),ad=(()=>{class e extends Wt{render(t){return"finally"+super.render(t)}}return e.kind="finally",e})(),Jo=class{constructor(u,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts=ve(Q({},t),{_n:t.lines?`
|
|
1
|
+
import{a as At,b as KF}from"./chunk-HGVWDZM7.js";import{a as Ss}from"./chunk-5SBO5IQQ.js";import{a as Qu,b as Xu}from"./chunk-2DMDQOK2.js";import{a as Is,b as Qi}from"./chunk-Z4RRWRCY.js";import{a as As}from"./chunk-CEFSEL4J.js";import{a as vs,b as Bs}from"./chunk-LJNOSMWT.js";import{a as fo}from"./chunk-JHGDWS5G.js";import{a as ws}from"./chunk-67EN4M44.js";import{a as xs}from"./chunk-A2XZOBXK.js";import{a as sn,b as ln,c as dn,d as cn,e as pn,f as mn,g as Ju,m as he,n as Re,o as Zu}from"./chunk-QRHPGHWR.js";import{a as Cs,b as Uu,c as Wu,e as ot,f as hs,h as gs,i as Es,k as bs,l as fu,m as _s,o as Gu,r as an,s as Ji,t as Zi,x as ys,y as wt,z as io}from"./chunk-UUOIJNVA.js";import{a as Ku}from"./chunk-GCSRDNWU.js";import{d as iu}from"./chunk-EBVMWV7Q.js";import{a as Fs}from"./chunk-2U34OGZ2.js";import{b as ke}from"./chunk-YMEOGTJF.js";import{a as uu,b as oe,j as de}from"./chunk-WLWKH3SS.js";import{e as ms}from"./chunk-YXTLNUTK.js";import{a as le,b as Ce}from"./chunk-Q4VBD4HY.js";import{Aa as ns,Ac as xu,Bb as $,Bc as uo,Cc as y,D as is,Dc as B,Ec as rt,Fa as Bt,Ga as rs,Ia as Jf,Ic as ps,Ka as Zf,Lb as U,M as Wf,Mb as h,Nb as xt,Ob as zu,Pb as J,Qb as as,Rb as A,Tb as et,Ub as tt,Vb as ut,Wb as d,Xb as c,Yb as w,Zb as ss,_ as to,_b as ls,a as Q,ac as H,b as ve,ba as Wi,bd as jt,cd as wu,db as Fe,dc as O,dd as it,e as F,ec as C,g as Oe,ga as fs,gb as os,h as W,ha as vt,ia as Gf,ib as s,ic as tn,jb as ce,jc as un,jd as on,k as Ya,kc as fn,lc as nn,ma as Kf,mb as Qf,mc as rn,n as pt,na as S,nd as Dn,oc as E,pb as Xf,pc as z,q as es,qc as V,rb as Yf,rc as Me,sc as ds,tc as Ie,ub as K,uc as Se,v as ts,vb as en,vc as $e,w as fe,wa as Gi,wb as Lu,wc as cs,x as us,xa as N,xb as Ds,xc as qe,ya as q,yc as Ki,zc as Hu}from"./chunk-NHJLTSH3.js";var ks=F((tN,$s)=>{function ZF(){this.__data__=[],this.size=0}$s.exports=ZF});var Fn=F((uN,Ts)=>{function QF(e,u){return e===u||e!==e&&u!==u}Ts.exports=QF});var Xi=F((iN,Ps)=>{var XF=Fn();function YF(e,u){for(var t=e.length;t--;)if(XF(e[t][0],u))return t;return-1}Ps.exports=YF});var Ms=F((fN,Os)=>{var eC=Xi(),tC=Array.prototype,uC=tC.splice;function iC(e){var u=this.__data__,t=eC(u,e);if(t<0)return!1;var i=u.length-1;return t==i?u.pop():uC.call(u,t,1),--this.size,!0}Os.exports=iC});var Ns=F((nN,js)=>{var fC=Xi();function nC(e){var u=this.__data__,t=fC(u,e);return t<0?void 0:u[t][1]}js.exports=nC});var Vs=F((rN,qs)=>{var rC=Xi();function oC(e){return rC(this.__data__,e)>-1}qs.exports=oC});var Ls=F((oN,Rs)=>{var DC=Xi();function aC(e,u){var t=this.__data__,i=DC(t,e);return i<0?(++this.size,t.push([e,u])):t[i][1]=u,this}Rs.exports=aC});var Yi=F((DN,zs)=>{var sC=ks(),lC=Ms(),dC=Ns(),cC=Vs(),pC=Ls();function Yu(e){var u=-1,t=e==null?0:e.length;for(this.clear();++u<t;){var i=e[u];this.set(i[0],i[1])}}Yu.prototype.clear=sC;Yu.prototype.delete=lC;Yu.prototype.get=dC;Yu.prototype.has=cC;Yu.prototype.set=pC;zs.exports=Yu});var Us=F((aN,Hs)=>{var mC=Yi();function FC(){this.__data__=new mC,this.size=0}Hs.exports=FC});var Gs=F((sN,Ws)=>{function CC(e){var u=this.__data__,t=u.delete(e);return this.size=u.size,t}Ws.exports=CC});var Js=F((lN,Ks)=>{function hC(e){return this.__data__.get(e)}Ks.exports=hC});var Qs=F((dN,Zs)=>{function gC(e){return this.__data__.has(e)}Zs.exports=gC});var no=F((cN,Xs)=>{var EC=typeof global=="object"&&global&&global.Object===Object&&global;Xs.exports=EC});var It=F((pN,Ys)=>{var bC=no(),_C=typeof self=="object"&&self&&self.Object===Object&&self,yC=bC||_C||Function("return this")();Ys.exports=yC});var ei=F((mN,e0)=>{var vC=It(),BC=vC.Symbol;e0.exports=BC});var f0=F((FN,i0)=>{var t0=ei(),u0=Object.prototype,xC=u0.hasOwnProperty,wC=u0.toString,ef=t0?t0.toStringTag:void 0;function AC(e){var u=xC.call(e,ef),t=e[ef];try{e[ef]=void 0;var i=!0}catch{}var f=wC.call(e);return i&&(u?e[ef]=t:delete e[ef]),f}i0.exports=AC});var r0=F((CN,n0)=>{var IC=Object.prototype,SC=IC.toString;function $C(e){return SC.call(e)}n0.exports=$C});var Au=F((hN,a0)=>{var o0=ei(),kC=f0(),TC=r0(),PC="[object Null]",OC="[object Undefined]",D0=o0?o0.toStringTag:void 0;function MC(e){return e==null?e===void 0?OC:PC:D0&&D0 in Object(e)?kC(e):TC(e)}a0.exports=MC});var Iu=F((gN,s0)=>{function jC(e){var u=typeof e;return e!=null&&(u=="object"||u=="function")}s0.exports=jC});var ro=F((EN,l0)=>{var NC=Au(),qC=Iu(),VC="[object AsyncFunction]",RC="[object Function]",LC="[object GeneratorFunction]",zC="[object Proxy]";function HC(e){if(!qC(e))return!1;var u=NC(e);return u==RC||u==LC||u==VC||u==zC}l0.exports=HC});var c0=F((bN,d0)=>{var UC=It(),WC=UC["__core-js_shared__"];d0.exports=WC});var F0=F((_N,m0)=>{var oo=c0(),p0=function(){var e=/[^.]+$/.exec(oo&&oo.keys&&oo.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function GC(e){return!!p0&&p0 in e}m0.exports=GC});var Do=F((yN,C0)=>{var KC=Function.prototype,JC=KC.toString;function ZC(e){if(e!=null){try{return JC.call(e)}catch{}try{return e+""}catch{}}return""}C0.exports=ZC});var g0=F((vN,h0)=>{var QC=ro(),XC=F0(),YC=Iu(),e4=Do(),t4=/[\\^$.*+?()[\]{}|]/g,u4=/^\[object .+?Constructor\]$/,i4=Function.prototype,f4=Object.prototype,n4=i4.toString,r4=f4.hasOwnProperty,o4=RegExp("^"+n4.call(r4).replace(t4,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function D4(e){if(!YC(e)||XC(e))return!1;var u=QC(e)?o4:u4;return u.test(e4(e))}h0.exports=D4});var b0=F((BN,E0)=>{function a4(e,u){return e==null?void 0:e[u]}E0.exports=a4});var ru=F((xN,_0)=>{var s4=g0(),l4=b0();function d4(e,u){var t=l4(e,u);return s4(t)?t:void 0}_0.exports=d4});var Cn=F((wN,y0)=>{var c4=ru(),p4=It(),m4=c4(p4,"Map");y0.exports=m4});var tf=F((AN,v0)=>{var F4=ru(),C4=F4(Object,"create");v0.exports=C4});var w0=F((IN,x0)=>{var B0=tf();function h4(){this.__data__=B0?B0(null):{},this.size=0}x0.exports=h4});var I0=F((SN,A0)=>{function g4(e){var u=this.has(e)&&delete this.__data__[e];return this.size-=u?1:0,u}A0.exports=g4});var $0=F(($N,S0)=>{var E4=tf(),b4="__lodash_hash_undefined__",_4=Object.prototype,y4=_4.hasOwnProperty;function v4(e){var u=this.__data__;if(E4){var t=u[e];return t===b4?void 0:t}return y4.call(u,e)?u[e]:void 0}S0.exports=v4});var T0=F((kN,k0)=>{var B4=tf(),x4=Object.prototype,w4=x4.hasOwnProperty;function A4(e){var u=this.__data__;return B4?u[e]!==void 0:w4.call(u,e)}k0.exports=A4});var O0=F((TN,P0)=>{var I4=tf(),S4="__lodash_hash_undefined__";function $4(e,u){var t=this.__data__;return this.size+=this.has(e)?0:1,t[e]=I4&&u===void 0?S4:u,this}P0.exports=$4});var j0=F((PN,M0)=>{var k4=w0(),T4=I0(),P4=$0(),O4=T0(),M4=O0();function ti(e){var u=-1,t=e==null?0:e.length;for(this.clear();++u<t;){var i=e[u];this.set(i[0],i[1])}}ti.prototype.clear=k4;ti.prototype.delete=T4;ti.prototype.get=P4;ti.prototype.has=O4;ti.prototype.set=M4;M0.exports=ti});var V0=F((ON,q0)=>{var N0=j0(),j4=Yi(),N4=Cn();function q4(){this.size=0,this.__data__={hash:new N0,map:new(N4||j4),string:new N0}}q0.exports=q4});var L0=F((MN,R0)=>{function V4(e){var u=typeof e;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?e!=="__proto__":e===null}R0.exports=V4});var uf=F((jN,z0)=>{var R4=L0();function L4(e,u){var t=e.__data__;return R4(u)?t[typeof u=="string"?"string":"hash"]:t.map}z0.exports=L4});var U0=F((NN,H0)=>{var z4=uf();function H4(e){var u=z4(this,e).delete(e);return this.size-=u?1:0,u}H0.exports=H4});var G0=F((qN,W0)=>{var U4=uf();function W4(e){return U4(this,e).get(e)}W0.exports=W4});var J0=F((VN,K0)=>{var G4=uf();function K4(e){return G4(this,e).has(e)}K0.exports=K4});var Q0=F((RN,Z0)=>{var J4=uf();function Z4(e,u){var t=J4(this,e),i=t.size;return t.set(e,u),this.size+=t.size==i?0:1,this}Z0.exports=Z4});var hn=F((LN,X0)=>{var Q4=V0(),X4=U0(),Y4=G0(),e5=J0(),t5=Q0();function ui(e){var u=-1,t=e==null?0:e.length;for(this.clear();++u<t;){var i=e[u];this.set(i[0],i[1])}}ui.prototype.clear=Q4;ui.prototype.delete=X4;ui.prototype.get=Y4;ui.prototype.has=e5;ui.prototype.set=t5;X0.exports=ui});var e1=F((zN,Y0)=>{var u5=Yi(),i5=Cn(),f5=hn(),n5=200;function r5(e,u){var t=this.__data__;if(t instanceof u5){var i=t.__data__;if(!i5||i.length<n5-1)return i.push([e,u]),this.size=++t.size,this;t=this.__data__=new f5(i)}return t.set(e,u),this.size=t.size,this}Y0.exports=r5});var gn=F((HN,t1)=>{var o5=Yi(),D5=Us(),a5=Gs(),s5=Js(),l5=Qs(),d5=e1();function ii(e){var u=this.__data__=new o5(e);this.size=u.size}ii.prototype.clear=D5;ii.prototype.delete=a5;ii.prototype.get=s5;ii.prototype.has=l5;ii.prototype.set=d5;t1.exports=ii});var i1=F((UN,u1)=>{function c5(e,u){for(var t=-1,i=e==null?0:e.length;++t<i&&u(e[t],t,e)!==!1;);return e}u1.exports=c5});var n1=F((WN,f1)=>{var p5=ru(),m5=function(){try{var e=p5(Object,"defineProperty");return e({},"",{}),e}catch{}}();f1.exports=m5});var ao=F((GN,o1)=>{var r1=n1();function F5(e,u,t){u=="__proto__"&&r1?r1(e,u,{configurable:!0,enumerable:!0,value:t,writable:!0}):e[u]=t}o1.exports=F5});var so=F((KN,D1)=>{var C5=ao(),h5=Fn(),g5=Object.prototype,E5=g5.hasOwnProperty;function b5(e,u,t){var i=e[u];(!(E5.call(e,u)&&h5(i,t))||t===void 0&&!(u in e))&&C5(e,u,t)}D1.exports=b5});var ff=F((JN,a1)=>{var _5=so(),y5=ao();function v5(e,u,t,i){var f=!t;t||(t={});for(var n=-1,r=u.length;++n<r;){var o=u[n],D=i?i(t[o],e[o],o,t,e):void 0;D===void 0&&(D=e[o]),f?y5(t,o,D):_5(t,o,D)}return t}a1.exports=v5});var l1=F((ZN,s1)=>{function B5(e,u){for(var t=-1,i=Array(e);++t<e;)i[t]=u(t);return i}s1.exports=B5});var Ht=F((QN,d1)=>{function x5(e){return e!=null&&typeof e=="object"}d1.exports=x5});var p1=F((XN,c1)=>{var w5=Au(),A5=Ht(),I5="[object Arguments]";function S5(e){return A5(e)&&w5(e)==I5}c1.exports=S5});var lo=F((YN,C1)=>{var m1=p1(),$5=Ht(),F1=Object.prototype,k5=F1.hasOwnProperty,T5=F1.propertyIsEnumerable,P5=m1(function(){return arguments}())?m1:function(e){return $5(e)&&k5.call(e,"callee")&&!T5.call(e,"callee")};C1.exports=P5});var mt=F((eq,h1)=>{var O5=Array.isArray;h1.exports=O5});var E1=F((tq,g1)=>{function M5(){return!1}g1.exports=M5});var En=F((nf,fi)=>{var j5=It(),N5=E1(),y1=typeof nf=="object"&&nf&&!nf.nodeType&&nf,b1=y1&&typeof fi=="object"&&fi&&!fi.nodeType&&fi,q5=b1&&b1.exports===y1,_1=q5?j5.Buffer:void 0,V5=_1?_1.isBuffer:void 0,R5=V5||N5;fi.exports=R5});var co=F((uq,v1)=>{var L5=9007199254740991,z5=/^(?:0|[1-9]\d*)$/;function H5(e,u){var t=typeof e;return u=u==null?L5:u,!!u&&(t=="number"||t!="symbol"&&z5.test(e))&&e>-1&&e%1==0&&e<u}v1.exports=H5});var bn=F((iq,B1)=>{var U5=9007199254740991;function W5(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=U5}B1.exports=W5});var w1=F((fq,x1)=>{var G5=Au(),K5=bn(),J5=Ht(),Z5="[object Arguments]",Q5="[object Array]",X5="[object Boolean]",Y5="[object Date]",eh="[object Error]",th="[object Function]",uh="[object Map]",ih="[object Number]",fh="[object Object]",nh="[object RegExp]",rh="[object Set]",oh="[object String]",Dh="[object WeakMap]",ah="[object ArrayBuffer]",sh="[object DataView]",lh="[object Float32Array]",dh="[object Float64Array]",ch="[object Int8Array]",ph="[object Int16Array]",mh="[object Int32Array]",Fh="[object Uint8Array]",Ch="[object Uint8ClampedArray]",hh="[object Uint16Array]",gh="[object Uint32Array]",Be={};Be[lh]=Be[dh]=Be[ch]=Be[ph]=Be[mh]=Be[Fh]=Be[Ch]=Be[hh]=Be[gh]=!0;Be[Z5]=Be[Q5]=Be[ah]=Be[X5]=Be[sh]=Be[Y5]=Be[eh]=Be[th]=Be[uh]=Be[ih]=Be[fh]=Be[nh]=Be[rh]=Be[oh]=Be[Dh]=!1;function Eh(e){return J5(e)&&K5(e.length)&&!!Be[G5(e)]}x1.exports=Eh});var _n=F((nq,A1)=>{function bh(e){return function(u){return e(u)}}A1.exports=bh});var yn=F((rf,ni)=>{var _h=no(),I1=typeof rf=="object"&&rf&&!rf.nodeType&&rf,of=I1&&typeof ni=="object"&&ni&&!ni.nodeType&&ni,yh=of&&of.exports===I1,po=yh&&_h.process,vh=function(){try{var e=of&&of.require&&of.require("util").types;return e||po&&po.binding&&po.binding("util")}catch{}}();ni.exports=vh});var mo=F((rq,k1)=>{var Bh=w1(),xh=_n(),S1=yn(),$1=S1&&S1.isTypedArray,wh=$1?xh($1):Bh;k1.exports=wh});var Fo=F((oq,T1)=>{var Ah=l1(),Ih=lo(),Sh=mt(),$h=En(),kh=co(),Th=mo(),Ph=Object.prototype,Oh=Ph.hasOwnProperty;function Mh(e,u){var t=Sh(e),i=!t&&Ih(e),f=!t&&!i&&$h(e),n=!t&&!i&&!f&&Th(e),r=t||i||f||n,o=r?Ah(e.length,String):[],D=o.length;for(var a in e)(u||Oh.call(e,a))&&!(r&&(a=="length"||f&&(a=="offset"||a=="parent")||n&&(a=="buffer"||a=="byteLength"||a=="byteOffset")||kh(a,D)))&&o.push(a);return o}T1.exports=Mh});var vn=F((Dq,P1)=>{var jh=Object.prototype;function Nh(e){var u=e&&e.constructor,t=typeof u=="function"&&u.prototype||jh;return e===t}P1.exports=Nh});var Co=F((aq,O1)=>{function qh(e,u){return function(t){return e(u(t))}}O1.exports=qh});var j1=F((sq,M1)=>{var Vh=Co(),Rh=Vh(Object.keys,Object);M1.exports=Rh});var q1=F((lq,N1)=>{var Lh=vn(),zh=j1(),Hh=Object.prototype,Uh=Hh.hasOwnProperty;function Wh(e){if(!Lh(e))return zh(e);var u=[];for(var t in Object(e))Uh.call(e,t)&&t!="constructor"&&u.push(t);return u}N1.exports=Wh});var Df=F((dq,V1)=>{var Gh=ro(),Kh=bn();function Jh(e){return e!=null&&Kh(e.length)&&!Gh(e)}V1.exports=Jh});var ri=F((cq,R1)=>{var Zh=Fo(),Qh=q1(),Xh=Df();function Yh(e){return Xh(e)?Zh(e):Qh(e)}R1.exports=Yh});var z1=F((pq,L1)=>{var eg=ff(),tg=ri();function ug(e,u){return e&&eg(u,tg(u),e)}L1.exports=ug});var U1=F((mq,H1)=>{function ig(e){var u=[];if(e!=null)for(var t in Object(e))u.push(t);return u}H1.exports=ig});var G1=F((Fq,W1)=>{var fg=Iu(),ng=vn(),rg=U1(),og=Object.prototype,Dg=og.hasOwnProperty;function ag(e){if(!fg(e))return rg(e);var u=ng(e),t=[];for(var i in e)i=="constructor"&&(u||!Dg.call(e,i))||t.push(i);return t}W1.exports=ag});var Bn=F((Cq,K1)=>{var sg=Fo(),lg=G1(),dg=Df();function cg(e){return dg(e)?sg(e,!0):lg(e)}K1.exports=cg});var Z1=F((hq,J1)=>{var pg=ff(),mg=Bn();function Fg(e,u){return e&&pg(u,mg(u),e)}J1.exports=Fg});var tl=F((af,oi)=>{var Cg=It(),el=typeof af=="object"&&af&&!af.nodeType&&af,Q1=el&&typeof oi=="object"&&oi&&!oi.nodeType&&oi,hg=Q1&&Q1.exports===el,X1=hg?Cg.Buffer:void 0,Y1=X1?X1.allocUnsafe:void 0;function gg(e,u){if(u)return e.slice();var t=e.length,i=Y1?Y1(t):new e.constructor(t);return e.copy(i),i}oi.exports=gg});var il=F((gq,ul)=>{function Eg(e,u){var t=-1,i=e.length;for(u||(u=Array(i));++t<i;)u[t]=e[t];return u}ul.exports=Eg});var ho=F((Eq,fl)=>{function bg(e,u){for(var t=-1,i=e==null?0:e.length,f=0,n=[];++t<i;){var r=e[t];u(r,t,e)&&(n[f++]=r)}return n}fl.exports=bg});var go=F((bq,nl)=>{function _g(){return[]}nl.exports=_g});var xn=F((_q,ol)=>{var yg=ho(),vg=go(),Bg=Object.prototype,xg=Bg.propertyIsEnumerable,rl=Object.getOwnPropertySymbols,wg=rl?function(e){return e==null?[]:(e=Object(e),yg(rl(e),function(u){return xg.call(e,u)}))}:vg;ol.exports=wg});var al=F((yq,Dl)=>{var Ag=ff(),Ig=xn();function Sg(e,u){return Ag(e,Ig(e),u)}Dl.exports=Sg});var Eo=F((vq,sl)=>{function $g(e,u){for(var t=-1,i=u.length,f=e.length;++t<i;)e[f+t]=u[t];return e}sl.exports=$g});var wn=F((Bq,ll)=>{var kg=Co(),Tg=kg(Object.getPrototypeOf,Object);ll.exports=Tg});var bo=F((xq,dl)=>{var Pg=Eo(),Og=wn(),Mg=xn(),jg=go(),Ng=Object.getOwnPropertySymbols,qg=Ng?function(e){for(var u=[];e;)Pg(u,Mg(e)),e=Og(e);return u}:jg;dl.exports=qg});var pl=F((wq,cl)=>{var Vg=ff(),Rg=bo();function Lg(e,u){return Vg(e,Rg(e),u)}cl.exports=Lg});var _o=F((Aq,ml)=>{var zg=Eo(),Hg=mt();function Ug(e,u,t){var i=u(e);return Hg(e)?i:zg(i,t(e))}ml.exports=Ug});var yo=F((Iq,Fl)=>{var Wg=_o(),Gg=xn(),Kg=ri();function Jg(e){return Wg(e,Kg,Gg)}Fl.exports=Jg});var hl=F((Sq,Cl)=>{var Zg=_o(),Qg=bo(),Xg=Bn();function Yg(e){return Zg(e,Xg,Qg)}Cl.exports=Yg});var El=F(($q,gl)=>{var e6=ru(),t6=It(),u6=e6(t6,"DataView");gl.exports=u6});var _l=F((kq,bl)=>{var i6=ru(),f6=It(),n6=i6(f6,"Promise");bl.exports=n6});var vl=F((Tq,yl)=>{var r6=ru(),o6=It(),D6=r6(o6,"Set");yl.exports=D6});var xl=F((Pq,Bl)=>{var a6=ru(),s6=It(),l6=a6(s6,"WeakMap");Bl.exports=l6});var sf=F((Oq,Tl)=>{var vo=El(),Bo=Cn(),xo=_l(),wo=vl(),Ao=xl(),kl=Au(),Di=Do(),wl="[object Map]",d6="[object Object]",Al="[object Promise]",Il="[object Set]",Sl="[object WeakMap]",$l="[object DataView]",c6=Di(vo),p6=Di(Bo),m6=Di(xo),F6=Di(wo),C6=Di(Ao),Su=kl;(vo&&Su(new vo(new ArrayBuffer(1)))!=$l||Bo&&Su(new Bo)!=wl||xo&&Su(xo.resolve())!=Al||wo&&Su(new wo)!=Il||Ao&&Su(new Ao)!=Sl)&&(Su=function(e){var u=kl(e),t=u==d6?e.constructor:void 0,i=t?Di(t):"";if(i)switch(i){case c6:return $l;case p6:return wl;case m6:return Al;case F6:return Il;case C6:return Sl}return u});Tl.exports=Su});var Ol=F((Mq,Pl)=>{var h6=Object.prototype,g6=h6.hasOwnProperty;function E6(e){var u=e.length,t=new e.constructor(u);return u&&typeof e[0]=="string"&&g6.call(e,"index")&&(t.index=e.index,t.input=e.input),t}Pl.exports=E6});var Io=F((jq,Ml)=>{var b6=It(),_6=b6.Uint8Array;Ml.exports=_6});var An=F((Nq,Nl)=>{var jl=Io();function y6(e){var u=new e.constructor(e.byteLength);return new jl(u).set(new jl(e)),u}Nl.exports=y6});var Vl=F((qq,ql)=>{var v6=An();function B6(e,u){var t=u?v6(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.byteLength)}ql.exports=B6});var Ll=F((Vq,Rl)=>{var x6=/\w*$/;function w6(e){var u=new e.constructor(e.source,x6.exec(e));return u.lastIndex=e.lastIndex,u}Rl.exports=w6});var Gl=F((Rq,Wl)=>{var zl=ei(),Hl=zl?zl.prototype:void 0,Ul=Hl?Hl.valueOf:void 0;function A6(e){return Ul?Object(Ul.call(e)):{}}Wl.exports=A6});var Jl=F((Lq,Kl)=>{var I6=An();function S6(e,u){var t=u?I6(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.length)}Kl.exports=S6});var Ql=F((zq,Zl)=>{var $6=An(),k6=Vl(),T6=Ll(),P6=Gl(),O6=Jl(),M6="[object Boolean]",j6="[object Date]",N6="[object Map]",q6="[object Number]",V6="[object RegExp]",R6="[object Set]",L6="[object String]",z6="[object Symbol]",H6="[object ArrayBuffer]",U6="[object DataView]",W6="[object Float32Array]",G6="[object Float64Array]",K6="[object Int8Array]",J6="[object Int16Array]",Z6="[object Int32Array]",Q6="[object Uint8Array]",X6="[object Uint8ClampedArray]",Y6="[object Uint16Array]",eE="[object Uint32Array]";function tE(e,u,t){var i=e.constructor;switch(u){case H6:return $6(e);case M6:case j6:return new i(+e);case U6:return k6(e,t);case W6:case G6:case K6:case J6:case Z6:case Q6:case X6:case Y6:case eE:return O6(e,t);case N6:return new i;case q6:case L6:return new i(e);case V6:return T6(e);case R6:return new i;case z6:return P6(e)}}Zl.exports=tE});var e3=F((Hq,Yl)=>{var uE=Iu(),Xl=Object.create,iE=function(){function e(){}return function(u){if(!uE(u))return{};if(Xl)return Xl(u);e.prototype=u;var t=new e;return e.prototype=void 0,t}}();Yl.exports=iE});var u3=F((Uq,t3)=>{var fE=e3(),nE=wn(),rE=vn();function oE(e){return typeof e.constructor=="function"&&!rE(e)?fE(nE(e)):{}}t3.exports=oE});var f3=F((Wq,i3)=>{var DE=sf(),aE=Ht(),sE="[object Map]";function lE(e){return aE(e)&&DE(e)==sE}i3.exports=lE});var D3=F((Gq,o3)=>{var dE=f3(),cE=_n(),n3=yn(),r3=n3&&n3.isMap,pE=r3?cE(r3):dE;o3.exports=pE});var s3=F((Kq,a3)=>{var mE=sf(),FE=Ht(),CE="[object Set]";function hE(e){return FE(e)&&mE(e)==CE}a3.exports=hE});var p3=F((Jq,c3)=>{var gE=s3(),EE=_n(),l3=yn(),d3=l3&&l3.isSet,bE=d3?EE(d3):gE;c3.exports=bE});var g3=F((Zq,h3)=>{var _E=gn(),yE=i1(),vE=so(),BE=z1(),xE=Z1(),wE=tl(),AE=il(),IE=al(),SE=pl(),$E=yo(),kE=hl(),TE=sf(),PE=Ol(),OE=Ql(),ME=u3(),jE=mt(),NE=En(),qE=D3(),VE=Iu(),RE=p3(),LE=ri(),zE=Bn(),HE=1,UE=2,WE=4,m3="[object Arguments]",GE="[object Array]",KE="[object Boolean]",JE="[object Date]",ZE="[object Error]",F3="[object Function]",QE="[object GeneratorFunction]",XE="[object Map]",YE="[object Number]",C3="[object Object]",eb="[object RegExp]",tb="[object Set]",ub="[object String]",ib="[object Symbol]",fb="[object WeakMap]",nb="[object ArrayBuffer]",rb="[object DataView]",ob="[object Float32Array]",Db="[object Float64Array]",ab="[object Int8Array]",sb="[object Int16Array]",lb="[object Int32Array]",db="[object Uint8Array]",cb="[object Uint8ClampedArray]",pb="[object Uint16Array]",mb="[object Uint32Array]",_e={};_e[m3]=_e[GE]=_e[nb]=_e[rb]=_e[KE]=_e[JE]=_e[ob]=_e[Db]=_e[ab]=_e[sb]=_e[lb]=_e[XE]=_e[YE]=_e[C3]=_e[eb]=_e[tb]=_e[ub]=_e[ib]=_e[db]=_e[cb]=_e[pb]=_e[mb]=!0;_e[ZE]=_e[F3]=_e[fb]=!1;function In(e,u,t,i,f,n){var r,o=u&HE,D=u&UE,a=u&WE;if(t&&(r=f?t(e,i,f,n):t(e)),r!==void 0)return r;if(!VE(e))return e;var l=jE(e);if(l){if(r=PE(e),!o)return AE(e,r)}else{var m=TE(e),p=m==F3||m==QE;if(NE(e))return wE(e,o);if(m==C3||m==m3||p&&!f){if(r=D||p?{}:ME(e),!o)return D?SE(e,xE(r,e)):IE(e,BE(r,e))}else{if(!_e[m])return f?e:{};r=OE(e,m,o)}}n||(n=new _E);var b=n.get(e);if(b)return b;n.set(e,r),RE(e)?e.forEach(function(v){r.add(In(v,u,t,v,e,n))}):qE(e)&&e.forEach(function(v,I){r.set(I,In(v,u,t,I,e,n))});var g=a?D?kE:$E:D?zE:LE,_=l?void 0:g(e);return yE(_||e,function(v,I){_&&(I=v,v=e[I]),vE(r,I,In(v,u,t,I,e,n))}),r}h3.exports=In});var b3=F((Qq,E3)=>{var Fb=g3(),Cb=1,hb=4;function gb(e){return Fb(e,Cb|hb)}E3.exports=gb});var y3=F((Xq,_3)=>{var Eb="__lodash_hash_undefined__";function bb(e){return this.__data__.set(e,Eb),this}_3.exports=bb});var B3=F((Yq,v3)=>{function _b(e){return this.__data__.has(e)}v3.exports=_b});var w3=F((eV,x3)=>{var yb=hn(),vb=y3(),Bb=B3();function Sn(e){var u=-1,t=e==null?0:e.length;for(this.__data__=new yb;++u<t;)this.add(e[u])}Sn.prototype.add=Sn.prototype.push=vb;Sn.prototype.has=Bb;x3.exports=Sn});var I3=F((tV,A3)=>{function xb(e,u){for(var t=-1,i=e==null?0:e.length;++t<i;)if(u(e[t],t,e))return!0;return!1}A3.exports=xb});var $3=F((uV,S3)=>{function wb(e,u){return e.has(u)}S3.exports=wb});var So=F((iV,k3)=>{var Ab=w3(),Ib=I3(),Sb=$3(),$b=1,kb=2;function Tb(e,u,t,i,f,n){var r=t&$b,o=e.length,D=u.length;if(o!=D&&!(r&&D>o))return!1;var a=n.get(e),l=n.get(u);if(a&&l)return a==u&&l==e;var m=-1,p=!0,b=t&kb?new Ab:void 0;for(n.set(e,u),n.set(u,e);++m<o;){var g=e[m],_=u[m];if(i)var v=r?i(_,g,m,u,e,n):i(g,_,m,e,u,n);if(v!==void 0){if(v)continue;p=!1;break}if(b){if(!Ib(u,function(I,P){if(!Sb(b,P)&&(g===I||f(g,I,t,i,n)))return b.push(P)})){p=!1;break}}else if(!(g===_||f(g,_,t,i,n))){p=!1;break}}return n.delete(e),n.delete(u),p}k3.exports=Tb});var P3=F((fV,T3)=>{function Pb(e){var u=-1,t=Array(e.size);return e.forEach(function(i,f){t[++u]=[f,i]}),t}T3.exports=Pb});var M3=F((nV,O3)=>{function Ob(e){var u=-1,t=Array(e.size);return e.forEach(function(i){t[++u]=i}),t}O3.exports=Ob});var R3=F((rV,V3)=>{var j3=ei(),N3=Io(),Mb=Fn(),jb=So(),Nb=P3(),qb=M3(),Vb=1,Rb=2,Lb="[object Boolean]",zb="[object Date]",Hb="[object Error]",Ub="[object Map]",Wb="[object Number]",Gb="[object RegExp]",Kb="[object Set]",Jb="[object String]",Zb="[object Symbol]",Qb="[object ArrayBuffer]",Xb="[object DataView]",q3=j3?j3.prototype:void 0,$o=q3?q3.valueOf:void 0;function Yb(e,u,t,i,f,n,r){switch(t){case Xb:if(e.byteLength!=u.byteLength||e.byteOffset!=u.byteOffset)return!1;e=e.buffer,u=u.buffer;case Qb:return!(e.byteLength!=u.byteLength||!n(new N3(e),new N3(u)));case Lb:case zb:case Wb:return Mb(+e,+u);case Hb:return e.name==u.name&&e.message==u.message;case Gb:case Jb:return e==u+"";case Ub:var o=Nb;case Kb:var D=i&Vb;if(o||(o=qb),e.size!=u.size&&!D)return!1;var a=r.get(e);if(a)return a==u;i|=Rb,r.set(e,u);var l=jb(o(e),o(u),i,f,n,r);return r.delete(e),l;case Zb:if($o)return $o.call(e)==$o.call(u)}return!1}V3.exports=Yb});var H3=F((oV,z3)=>{var L3=yo(),e_=1,t_=Object.prototype,u_=t_.hasOwnProperty;function i_(e,u,t,i,f,n){var r=t&e_,o=L3(e),D=o.length,a=L3(u),l=a.length;if(D!=l&&!r)return!1;for(var m=D;m--;){var p=o[m];if(!(r?p in u:u_.call(u,p)))return!1}var b=n.get(e),g=n.get(u);if(b&&g)return b==u&&g==e;var _=!0;n.set(e,u),n.set(u,e);for(var v=r;++m<D;){p=o[m];var I=e[p],P=u[p];if(i)var R=r?i(P,I,p,u,e,n):i(I,P,p,e,u,n);if(!(R===void 0?I===P||f(I,P,t,i,n):R)){_=!1;break}v||(v=p=="constructor")}if(_&&!v){var L=e.constructor,M=u.constructor;L!=M&&"constructor"in e&&"constructor"in u&&!(typeof L=="function"&&L instanceof L&&typeof M=="function"&&M instanceof M)&&(_=!1)}return n.delete(e),n.delete(u),_}z3.exports=i_});var X3=F((DV,Q3)=>{var ko=gn(),f_=So(),n_=R3(),r_=H3(),U3=sf(),W3=mt(),G3=En(),o_=mo(),D_=1,K3="[object Arguments]",J3="[object Array]",$n="[object Object]",a_=Object.prototype,Z3=a_.hasOwnProperty;function s_(e,u,t,i,f,n){var r=W3(e),o=W3(u),D=r?J3:U3(e),a=o?J3:U3(u);D=D==K3?$n:D,a=a==K3?$n:a;var l=D==$n,m=a==$n,p=D==a;if(p&&G3(e)){if(!G3(u))return!1;r=!0,l=!1}if(p&&!l)return n||(n=new ko),r||o_(e)?f_(e,u,t,i,f,n):n_(e,u,D,t,i,f,n);if(!(t&D_)){var b=l&&Z3.call(e,"__wrapped__"),g=m&&Z3.call(u,"__wrapped__");if(b||g){var _=b?e.value():e,v=g?u.value():u;return n||(n=new ko),f(_,v,t,i,n)}}return p?(n||(n=new ko),r_(e,u,t,i,f,n)):!1}Q3.exports=s_});var kn=F((aV,td)=>{var l_=X3(),Y3=Ht();function ed(e,u,t,i,f){return e===u?!0:e==null||u==null||!Y3(e)&&!Y3(u)?e!==e&&u!==u:l_(e,u,t,i,ed,f)}td.exports=ed});var id=F((sV,ud)=>{var d_=kn();function c_(e,u){return d_(e,u)}ud.exports=c_});var cf=F(ae=>{"use strict";Object.defineProperty(ae,"__esModule",{value:!0});ae.regexpCode=ae.getEsmExportName=ae.getProperty=ae.safeStringify=ae.stringify=ae.strConcat=ae.addCodeArg=ae.str=ae._=ae.nil=ae._Code=ae.Name=ae.IDENTIFIER=ae._CodeOrName=void 0;var lf=class{};ae._CodeOrName=lf;ae.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var $u=class extends lf{constructor(u){if(super(),!ae.IDENTIFIER.test(u))throw new Error("CodeGen: name must be a valid identifier");this.str=u}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};ae.Name=$u;var ht=class extends lf{constructor(u){super(),this._items=typeof u=="string"?[u]:u}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let u=this._items[0];return u===""||u==='""'}get str(){var u;return(u=this._str)!==null&&u!==void 0?u:this._str=this._items.reduce((t,i)=>`${t}${i}`,"")}get names(){var u;return(u=this._names)!==null&&u!==void 0?u:this._names=this._items.reduce((t,i)=>(i instanceof $u&&(t[i.str]=(t[i.str]||0)+1),t),{})}};ae._Code=ht;ae.nil=new ht("");function fd(e,...u){let t=[e[0]],i=0;for(;i<u.length;)Po(t,u[i]),t.push(e[++i]);return new ht(t)}ae._=fd;var To=new ht("+");function nd(e,...u){let t=[df(e[0])],i=0;for(;i<u.length;)t.push(To),Po(t,u[i]),t.push(To,df(e[++i]));return p_(t),new ht(t)}ae.str=nd;function Po(e,u){u instanceof ht?e.push(...u._items):u instanceof $u?e.push(u):e.push(C_(u))}ae.addCodeArg=Po;function p_(e){let u=1;for(;u<e.length-1;){if(e[u]===To){let t=m_(e[u-1],e[u+1]);if(t!==void 0){e.splice(u-1,3,t);continue}e[u++]="+"}u++}}function m_(e,u){if(u==='""')return e;if(e==='""')return u;if(typeof e=="string")return u instanceof $u||e[e.length-1]!=='"'?void 0:typeof u!="string"?`${e.slice(0,-1)}${u}"`:u[0]==='"'?e.slice(0,-1)+u.slice(1):void 0;if(typeof u=="string"&&u[0]==='"'&&!(e instanceof $u))return`"${e}${u.slice(1)}`}function F_(e,u){return u.emptyStr()?e:e.emptyStr()?u:nd`${e}${u}`}ae.strConcat=F_;function C_(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:df(Array.isArray(e)?e.join(","):e)}function h_(e){return new ht(df(e))}ae.stringify=h_;function df(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}ae.safeStringify=df;function g_(e){return typeof e=="string"&&ae.IDENTIFIER.test(e)?new ht(`.${e}`):fd`[${e}]`}ae.getProperty=g_;function E_(e){if(typeof e=="string"&&ae.IDENTIFIER.test(e))return new ht(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}ae.getEsmExportName=E_;function b_(e){return new ht(e.toString())}ae.regexpCode=b_});var jo=F(at=>{"use strict";Object.defineProperty(at,"__esModule",{value:!0});at.ValueScope=at.ValueScopeName=at.Scope=at.varKinds=at.UsedValueState=void 0;var Dt=cf(),Oo=class extends Error{constructor(u){super(`CodeGen: "code" for ${u} not defined`),this.value=u.value}},Tn=function(e){return e[e.Started=0]="Started",e[e.Completed=1]="Completed",e}(Tn||(at.UsedValueState=Tn={}));at.varKinds={const:new Dt.Name("const"),let:new Dt.Name("let"),var:new Dt.Name("var")};var Pn=class{constructor({prefixes:u,parent:t}={}){this._names={},this._prefixes=u,this._parent=t}toName(u){return u instanceof Dt.Name?u:this.name(u)}name(u){return new Dt.Name(this._newName(u))}_newName(u){let t=this._names[u]||this._nameGroup(u);return`${u}${t.index++}`}_nameGroup(u){var t,i;if(!((i=(t=this._parent)===null||t===void 0?void 0:t._prefixes)===null||i===void 0)&&i.has(u)||this._prefixes&&!this._prefixes.has(u))throw new Error(`CodeGen: prefix "${u}" is not allowed in this scope`);return this._names[u]={prefix:u,index:0}}};at.Scope=Pn;var On=class extends Dt.Name{constructor(u,t){super(t),this.prefix=u}setValue(u,{property:t,itemIndex:i}){this.value=u,this.scopePath=(0,Dt._)`.${new Dt.Name(t)}[${i}]`}};at.ValueScopeName=On;var __=(0,Dt._)`\n`,Mo=class extends Pn{constructor(u){super(u),this._values={},this._scope=u.scope,this.opts=ve(Q({},u),{_n:u.lines?__:Dt.nil})}get(){return this._scope}name(u){return new On(u,this._newName(u))}value(u,t){var i;if(t.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let f=this.toName(u),{prefix:n}=f,r=(i=t.key)!==null&&i!==void 0?i:t.ref,o=this._values[n];if(o){let l=o.get(r);if(l)return l}else o=this._values[n]=new Map;o.set(r,f);let D=this._scope[n]||(this._scope[n]=[]),a=D.length;return D[a]=t.ref,f.setValue(t,{property:n,itemIndex:a}),f}getValue(u,t){let i=this._values[u];if(i)return i.get(t)}scopeRefs(u,t=this._values){return this._reduceValues(t,i=>{if(i.scopePath===void 0)throw new Error(`CodeGen: name "${i}" has no value`);return(0,Dt._)`${u}${i.scopePath}`})}scopeCode(u=this._values,t,i){return this._reduceValues(u,f=>{if(f.value===void 0)throw new Error(`CodeGen: name "${f}" has no value`);return f.value.code},t,i)}_reduceValues(u,t,i={},f){let n=Dt.nil;for(let r in u){let o=u[r];if(!o)continue;let D=i[r]=i[r]||new Map;o.forEach(a=>{if(D.has(a))return;D.set(a,Tn.Started);let l=t(a);if(l){let m=this.opts.es5?at.varKinds.var:at.varKinds.const;n=(0,Dt._)`${n}${m} ${a} = ${l};${this.opts._n}`}else if(l=f==null?void 0:f(a))n=(0,Dt._)`${n}${l}${this.opts._n}`;else throw new Oo(a);D.set(a,Tn.Completed)})}return n}};at.ValueScope=Mo});var ue=F(te=>{"use strict";Object.defineProperty(te,"__esModule",{value:!0});te.or=te.and=te.not=te.CodeGen=te.operators=te.varKinds=te.ValueScopeName=te.ValueScope=te.Scope=te.Name=te.regexpCode=te.stringify=te.getProperty=te.nil=te.strConcat=te.str=te._=void 0;var re=cf(),St=jo(),ou=cf();Object.defineProperty(te,"_",{enumerable:!0,get:function(){return ou._}});Object.defineProperty(te,"str",{enumerable:!0,get:function(){return ou.str}});Object.defineProperty(te,"strConcat",{enumerable:!0,get:function(){return ou.strConcat}});Object.defineProperty(te,"nil",{enumerable:!0,get:function(){return ou.nil}});Object.defineProperty(te,"getProperty",{enumerable:!0,get:function(){return ou.getProperty}});Object.defineProperty(te,"stringify",{enumerable:!0,get:function(){return ou.stringify}});Object.defineProperty(te,"regexpCode",{enumerable:!0,get:function(){return ou.regexpCode}});Object.defineProperty(te,"Name",{enumerable:!0,get:function(){return ou.Name}});var Vn=jo();Object.defineProperty(te,"Scope",{enumerable:!0,get:function(){return Vn.Scope}});Object.defineProperty(te,"ValueScope",{enumerable:!0,get:function(){return Vn.ValueScope}});Object.defineProperty(te,"ValueScopeName",{enumerable:!0,get:function(){return Vn.ValueScopeName}});Object.defineProperty(te,"varKinds",{enumerable:!0,get:function(){return Vn.varKinds}});te.operators={GT:new re._Code(">"),GTE:new re._Code(">="),LT:new re._Code("<"),LTE:new re._Code("<="),EQ:new re._Code("==="),NEQ:new re._Code("!=="),NOT:new re._Code("!"),OR:new re._Code("||"),AND:new re._Code("&&"),ADD:new re._Code("+")};var Ut=class{optimizeNodes(){return this}optimizeNames(u,t){return this}},No=class extends Ut{constructor(u,t,i){super(),this.varKind=u,this.name=t,this.rhs=i}render({es5:u,_n:t}){let i=u?St.varKinds.var:this.varKind,f=this.rhs===void 0?"":` = ${this.rhs}`;return`${i} ${this.name}${f};`+t}optimizeNames(u,t){if(u[this.name.str])return this.rhs&&(this.rhs=ai(this.rhs,u,t)),this}get names(){return this.rhs instanceof re._CodeOrName?this.rhs.names:{}}},jn=class extends Ut{constructor(u,t,i){super(),this.lhs=u,this.rhs=t,this.sideEffects=i}render({_n:u}){return`${this.lhs} = ${this.rhs};`+u}optimizeNames(u,t){if(!(this.lhs instanceof re.Name&&!u[this.lhs.str]&&!this.sideEffects))return this.rhs=ai(this.rhs,u,t),this}get names(){let u=this.lhs instanceof re.Name?{}:Q({},this.lhs.names);return qn(u,this.rhs)}},qo=class extends jn{constructor(u,t,i,f){super(u,i,f),this.op=t}render({_n:u}){return`${this.lhs} ${this.op}= ${this.rhs};`+u}},Vo=class extends Ut{constructor(u){super(),this.label=u,this.names={}}render({_n:u}){return`${this.label}:`+u}},Ro=class extends Ut{constructor(u){super(),this.label=u,this.names={}}render({_n:u}){return`break${this.label?` ${this.label}`:""};`+u}},Lo=class extends Ut{constructor(u){super(),this.error=u}render({_n:u}){return`throw ${this.error};`+u}get names(){return this.error.names}},zo=class extends Ut{constructor(u){super(),this.code=u}render({_n:u}){return`${this.code};`+u}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(u,t){return this.code=ai(this.code,u,t),this}get names(){return this.code instanceof re._CodeOrName?this.code.names:{}}},pf=class extends Ut{constructor(u=[]){super(),this.nodes=u}render(u){return this.nodes.reduce((t,i)=>t+i.render(u),"")}optimizeNodes(){let{nodes:u}=this,t=u.length;for(;t--;){let i=u[t].optimizeNodes();Array.isArray(i)?u.splice(t,1,...i):i?u[t]=i:u.splice(t,1)}return u.length>0?this:void 0}optimizeNames(u,t){let{nodes:i}=this,f=i.length;for(;f--;){let n=i[f];n.optimizeNames(u,t)||(y_(u,n.names),i.splice(f,1))}return i.length>0?this:void 0}get names(){return this.nodes.reduce((u,t)=>ku(u,t.names),{})}},Wt=class extends pf{render(u){return"{"+u._n+super.render(u)+"}"+u._n}},Ho=class extends pf{},Uo=(()=>{class e extends Wt{}return e.kind="else",e})(),Mn=(()=>{class e extends Wt{constructor(t,i){super(i),this.condition=t}render(t){let i=`if(${this.condition})`+super.render(t);return this.else&&(i+="else "+this.else.render(t)),i}optimizeNodes(){super.optimizeNodes();let t=this.condition;if(t===!0)return this.nodes;let i=this.else;if(i){let f=i.optimizeNodes();i=this.else=Array.isArray(f)?new Uo(f):f}if(i)return t===!1?i instanceof e?i:i.nodes:this.nodes.length?this:new e(sd(t),i instanceof e?[i]:i.nodes);if(!(t===!1||!this.nodes.length))return this}optimizeNames(t,i){var f;if(this.else=(f=this.else)===null||f===void 0?void 0:f.optimizeNames(t,i),!!(super.optimizeNames(t,i)||this.else))return this.condition=ai(this.condition,t,i),this}get names(){let t=super.names;return qn(t,this.condition),this.else&&ku(t,this.else.names),t}}return e.kind="if",e})(),Rn=(()=>{class e extends Wt{}return e.kind="for",e})(),Wo=class extends Rn{constructor(u){super(),this.iteration=u}render(u){return`for(${this.iteration})`+super.render(u)}optimizeNames(u,t){if(super.optimizeNames(u,t))return this.iteration=ai(this.iteration,u,t),this}get names(){return ku(super.names,this.iteration.names)}},Go=class extends Rn{constructor(u,t,i,f){super(),this.varKind=u,this.name=t,this.from=i,this.to=f}render(u){let t=u.es5?St.varKinds.var:this.varKind,{name:i,from:f,to:n}=this;return`for(${t} ${i}=${f}; ${i}<${n}; ${i}++)`+super.render(u)}get names(){let u=qn(super.names,this.from);return qn(u,this.to)}},Nn=class extends Rn{constructor(u,t,i,f){super(),this.loop=u,this.varKind=t,this.name=i,this.iterable=f}render(u){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(u)}optimizeNames(u,t){if(super.optimizeNames(u,t))return this.iterable=ai(this.iterable,u,t),this}get names(){return ku(super.names,this.iterable.names)}},rd=(()=>{class e extends Wt{constructor(t,i,f){super(),this.name=t,this.args=i,this.async=f}render(t){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(t)}}return e.kind="func",e})(),od=(()=>{class e extends pf{render(t){return"return "+super.render(t)}}return e.kind="return",e})(),Ko=class extends Wt{render(u){let t="try"+super.render(u);return this.catch&&(t+=this.catch.render(u)),this.finally&&(t+=this.finally.render(u)),t}optimizeNodes(){var u,t;return super.optimizeNodes(),(u=this.catch)===null||u===void 0||u.optimizeNodes(),(t=this.finally)===null||t===void 0||t.optimizeNodes(),this}optimizeNames(u,t){var i,f;return super.optimizeNames(u,t),(i=this.catch)===null||i===void 0||i.optimizeNames(u,t),(f=this.finally)===null||f===void 0||f.optimizeNames(u,t),this}get names(){let u=super.names;return this.catch&&ku(u,this.catch.names),this.finally&&ku(u,this.finally.names),u}},Dd=(()=>{class e extends Wt{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}}return e.kind="catch",e})(),ad=(()=>{class e extends Wt{render(t){return"finally"+super.render(t)}}return e.kind="finally",e})(),Jo=class{constructor(u,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts=ve(Q({},t),{_n:t.lines?`
|
|
2
2
|
`:""}),this._extScope=u,this._scope=new St.Scope({parent:u}),this._nodes=[new Ho]}toString(){return this._root.render(this.opts)}name(u){return this._scope.name(u)}scopeName(u){return this._extScope.name(u)}scopeValue(u,t){let i=this._extScope.value(u,t);return(this._values[i.prefix]||(this._values[i.prefix]=new Set)).add(i),i}getScopeValue(u,t){return this._extScope.getValue(u,t)}scopeRefs(u){return this._extScope.scopeRefs(u,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(u,t,i,f){let n=this._scope.toName(t);return i!==void 0&&f&&(this._constants[n.str]=i),this._leafNode(new No(u,n,i)),n}const(u,t,i){return this._def(St.varKinds.const,u,t,i)}let(u,t,i){return this._def(St.varKinds.let,u,t,i)}var(u,t,i){return this._def(St.varKinds.var,u,t,i)}assign(u,t,i){return this._leafNode(new jn(u,t,i))}add(u,t){return this._leafNode(new qo(u,te.operators.ADD,t))}code(u){return typeof u=="function"?u():u!==re.nil&&this._leafNode(new zo(u)),this}object(...u){let t=["{"];for(let[i,f]of u)t.length>1&&t.push(","),t.push(i),(i!==f||this.opts.es5)&&(t.push(":"),(0,re.addCodeArg)(t,f));return t.push("}"),new re._Code(t)}if(u,t,i){if(this._blockNode(new Mn(u)),t&&i)this.code(t).else().code(i).endIf();else if(t)this.code(t).endIf();else if(i)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(u){return this._elseNode(new Mn(u))}else(){return this._elseNode(new Uo)}endIf(){return this._endBlockNode(Mn,Uo)}_for(u,t){return this._blockNode(u),t&&this.code(t).endFor(),this}for(u,t){return this._for(new Wo(u),t)}forRange(u,t,i,f,n=this.opts.es5?St.varKinds.var:St.varKinds.let){let r=this._scope.toName(u);return this._for(new Go(n,r,t,i),()=>f(r))}forOf(u,t,i,f=St.varKinds.const){let n=this._scope.toName(u);if(this.opts.es5){let r=t instanceof re.Name?t:this.var("_arr",t);return this.forRange("_i",0,(0,re._)`${r}.length`,o=>{this.var(n,(0,re._)`${r}[${o}]`),i(n)})}return this._for(new Nn("of",f,n,t),()=>i(n))}forIn(u,t,i,f=this.opts.es5?St.varKinds.var:St.varKinds.const){if(this.opts.ownProperties)return this.forOf(u,(0,re._)`Object.keys(${t})`,i);let n=this._scope.toName(u);return this._for(new Nn("in",f,n,t),()=>i(n))}endFor(){return this._endBlockNode(Rn)}label(u){return this._leafNode(new Vo(u))}break(u){return this._leafNode(new Ro(u))}return(u){let t=new od;if(this._blockNode(t),this.code(u),t.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(od)}try(u,t,i){if(!t&&!i)throw new Error('CodeGen: "try" without "catch" and "finally"');let f=new Ko;if(this._blockNode(f),this.code(u),t){let n=this.name("e");this._currNode=f.catch=new Dd(n),t(n)}return i&&(this._currNode=f.finally=new ad,this.code(i)),this._endBlockNode(Dd,ad)}throw(u){return this._leafNode(new Lo(u))}block(u,t){return this._blockStarts.push(this._nodes.length),u&&this.code(u).endBlock(t),this}endBlock(u){let t=this._blockStarts.pop();if(t===void 0)throw new Error("CodeGen: not in self-balancing block");let i=this._nodes.length-t;if(i<0||u!==void 0&&i!==u)throw new Error(`CodeGen: wrong number of nodes: ${i} vs ${u} expected`);return this._nodes.length=t,this}func(u,t=re.nil,i,f){return this._blockNode(new rd(u,t,i)),f&&this.code(f).endFunc(),this}endFunc(){return this._endBlockNode(rd)}optimize(u=1){for(;u-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(u){return this._currNode.nodes.push(u),this}_blockNode(u){this._currNode.nodes.push(u),this._nodes.push(u)}_endBlockNode(u,t){let i=this._currNode;if(i instanceof u||t&&i instanceof t)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${t?`${u.kind}/${t.kind}`:u.kind}"`)}_elseNode(u){let t=this._currNode;if(!(t instanceof Mn))throw new Error('CodeGen: "else" without "if"');return this._currNode=t.else=u,this}get _root(){return this._nodes[0]}get _currNode(){let u=this._nodes;return u[u.length-1]}set _currNode(u){let t=this._nodes;t[t.length-1]=u}};te.CodeGen=Jo;function ku(e,u){for(let t in u)e[t]=(e[t]||0)+(u[t]||0);return e}function qn(e,u){return u instanceof re._CodeOrName?ku(e,u.names):e}function ai(e,u,t){if(e instanceof re.Name)return i(e);if(!f(e))return e;return new re._Code(e._items.reduce((n,r)=>(r instanceof re.Name&&(r=i(r)),r instanceof re._Code?n.push(...r._items):n.push(r),n),[]));function i(n){let r=t[n.str];return r===void 0||u[n.str]!==1?n:(delete u[n.str],r)}function f(n){return n instanceof re._Code&&n._items.some(r=>r instanceof re.Name&&u[r.str]===1&&t[r.str]!==void 0)}}function y_(e,u){for(let t in u)e[t]=(e[t]||0)-(u[t]||0)}function sd(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,re._)`!${Zo(e)}`}te.not=sd;var v_=ld(te.operators.AND);function B_(...e){return e.reduce(v_)}te.and=B_;var x_=ld(te.operators.OR);function w_(...e){return e.reduce(x_)}te.or=w_;function ld(e){return(u,t)=>u===re.nil?t:t===re.nil?u:(0,re._)`${Zo(u)} ${e} ${Zo(t)}`}function Zo(e){return e instanceof re.Name?e:(0,re._)`(${e})`}});var se=F(ie=>{"use strict";Object.defineProperty(ie,"__esModule",{value:!0});ie.checkStrictMode=ie.getErrorPath=ie.Type=ie.useFunc=ie.setEvaluated=ie.evaluatedPropsToName=ie.mergeEvaluated=ie.eachItem=ie.unescapeJsonPointer=ie.escapeJsonPointer=ie.escapeFragment=ie.unescapeFragment=ie.schemaRefOrVal=ie.schemaHasRulesButRef=ie.schemaHasRules=ie.checkUnknownRules=ie.alwaysValidSchema=ie.toHash=void 0;var Ee=ue(),A_=cf();function I_(e){let u={};for(let t of e)u[t]=!0;return u}ie.toHash=I_;function S_(e,u){return typeof u=="boolean"?u:Object.keys(u).length===0?!0:(pd(e,u),!md(u,e.self.RULES.all))}ie.alwaysValidSchema=S_;function pd(e,u=e.schema){let{opts:t,self:i}=e;if(!t.strictSchema||typeof u=="boolean")return;let f=i.RULES.keywords;for(let n in u)f[n]||hd(e,`unknown keyword: "${n}"`)}ie.checkUnknownRules=pd;function md(e,u){if(typeof e=="boolean")return!e;for(let t in e)if(u[t])return!0;return!1}ie.schemaHasRules=md;function $_(e,u){if(typeof e=="boolean")return!e;for(let t in e)if(t!=="$ref"&&u.all[t])return!0;return!1}ie.schemaHasRulesButRef=$_;function k_({topSchemaRef:e,schemaPath:u},t,i,f){if(!f){if(typeof t=="number"||typeof t=="boolean")return t;if(typeof t=="string")return(0,Ee._)`${t}`}return(0,Ee._)`${e}${u}${(0,Ee.getProperty)(i)}`}ie.schemaRefOrVal=k_;function T_(e){return Fd(decodeURIComponent(e))}ie.unescapeFragment=T_;function P_(e){return encodeURIComponent(Xo(e))}ie.escapeFragment=P_;function Xo(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}ie.escapeJsonPointer=Xo;function Fd(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}ie.unescapeJsonPointer=Fd;function O_(e,u){if(Array.isArray(e))for(let t of e)u(t);else u(e)}ie.eachItem=O_;function dd({mergeNames:e,mergeToName:u,mergeValues:t,resultToName:i}){return(f,n,r,o)=>{let D=r===void 0?n:r instanceof Ee.Name?(n instanceof Ee.Name?e(f,n,r):u(f,n,r),r):n instanceof Ee.Name?(u(f,r,n),n):t(n,r);return o===Ee.Name&&!(D instanceof Ee.Name)?i(f,D):D}}ie.mergeEvaluated={props:dd({mergeNames:(e,u,t)=>e.if((0,Ee._)`${t} !== true && ${u} !== undefined`,()=>{e.if((0,Ee._)`${u} === true`,()=>e.assign(t,!0),()=>e.assign(t,(0,Ee._)`${t} || {}`).code((0,Ee._)`Object.assign(${t}, ${u})`))}),mergeToName:(e,u,t)=>e.if((0,Ee._)`${t} !== true`,()=>{u===!0?e.assign(t,!0):(e.assign(t,(0,Ee._)`${t} || {}`),Yo(e,t,u))}),mergeValues:(e,u)=>e===!0?!0:Q(Q({},e),u),resultToName:Cd}),items:dd({mergeNames:(e,u,t)=>e.if((0,Ee._)`${t} !== true && ${u} !== undefined`,()=>e.assign(t,(0,Ee._)`${u} === true ? true : ${t} > ${u} ? ${t} : ${u}`)),mergeToName:(e,u,t)=>e.if((0,Ee._)`${t} !== true`,()=>e.assign(t,u===!0?!0:(0,Ee._)`${t} > ${u} ? ${t} : ${u}`)),mergeValues:(e,u)=>e===!0?!0:Math.max(e,u),resultToName:(e,u)=>e.var("items",u)})};function Cd(e,u){if(u===!0)return e.var("props",!0);let t=e.var("props",(0,Ee._)`{}`);return u!==void 0&&Yo(e,t,u),t}ie.evaluatedPropsToName=Cd;function Yo(e,u,t){Object.keys(t).forEach(i=>e.assign((0,Ee._)`${u}${(0,Ee.getProperty)(i)}`,!0))}ie.setEvaluated=Yo;var cd={};function M_(e,u){return e.scopeValue("func",{ref:u,code:cd[u.code]||(cd[u.code]=new A_._Code(u.code))})}ie.useFunc=M_;var Qo=function(e){return e[e.Num=0]="Num",e[e.Str=1]="Str",e}(Qo||(ie.Type=Qo={}));function j_(e,u,t){if(e instanceof Ee.Name){let i=u===Qo.Num;return t?i?(0,Ee._)`"[" + ${e} + "]"`:(0,Ee._)`"['" + ${e} + "']"`:i?(0,Ee._)`"/" + ${e}`:(0,Ee._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return t?(0,Ee.getProperty)(e).toString():"/"+Xo(e)}ie.getErrorPath=j_;function hd(e,u,t=e.opts.strictSchema){if(t){if(u=`strict mode: ${u}`,t===!0)throw new Error(u);e.self.logger.warn(u)}}ie.checkStrictMode=hd});var Gt=F(eD=>{"use strict";Object.defineProperty(eD,"__esModule",{value:!0});var Ke=ue(),N_={data:new Ke.Name("data"),valCxt:new Ke.Name("valCxt"),instancePath:new Ke.Name("instancePath"),parentData:new Ke.Name("parentData"),parentDataProperty:new Ke.Name("parentDataProperty"),rootData:new Ke.Name("rootData"),dynamicAnchors:new Ke.Name("dynamicAnchors"),vErrors:new Ke.Name("vErrors"),errors:new Ke.Name("errors"),this:new Ke.Name("this"),self:new Ke.Name("self"),scope:new Ke.Name("scope"),json:new Ke.Name("json"),jsonPos:new Ke.Name("jsonPos"),jsonLen:new Ke.Name("jsonLen"),jsonPart:new Ke.Name("jsonPart")};eD.default=N_});var mf=F(Je=>{"use strict";Object.defineProperty(Je,"__esModule",{value:!0});Je.extendErrors=Je.resetErrorsCount=Je.reportExtraError=Je.reportError=Je.keyword$DataError=Je.keywordError=void 0;var De=ue(),Ln=se(),ft=Gt();Je.keywordError={message:({keyword:e})=>(0,De.str)`must pass "${e}" keyword validation`};Je.keyword$DataError={message:({keyword:e,schemaType:u})=>u?(0,De.str)`"${e}" keyword must be ${u} ($data)`:(0,De.str)`"${e}" keyword is invalid ($data)`};function q_(e,u=Je.keywordError,t,i){let{it:f}=e,{gen:n,compositeRule:r,allErrors:o}=f,D=bd(e,u,t);(i!=null?i:r||o)?gd(n,D):Ed(f,(0,De._)`[${D}]`)}Je.reportError=q_;function V_(e,u=Je.keywordError,t){let{it:i}=e,{gen:f,compositeRule:n,allErrors:r}=i,o=bd(e,u,t);gd(f,o),n||r||Ed(i,ft.default.vErrors)}Je.reportExtraError=V_;function R_(e,u){e.assign(ft.default.errors,u),e.if((0,De._)`${ft.default.vErrors} !== null`,()=>e.if(u,()=>e.assign((0,De._)`${ft.default.vErrors}.length`,u),()=>e.assign(ft.default.vErrors,null)))}Je.resetErrorsCount=R_;function L_({gen:e,keyword:u,schemaValue:t,data:i,errsCount:f,it:n}){if(f===void 0)throw new Error("ajv implementation error");let r=e.name("err");e.forRange("i",f,ft.default.errors,o=>{e.const(r,(0,De._)`${ft.default.vErrors}[${o}]`),e.if((0,De._)`${r}.instancePath === undefined`,()=>e.assign((0,De._)`${r}.instancePath`,(0,De.strConcat)(ft.default.instancePath,n.errorPath))),e.assign((0,De._)`${r}.schemaPath`,(0,De.str)`${n.errSchemaPath}/${u}`),n.opts.verbose&&(e.assign((0,De._)`${r}.schema`,t),e.assign((0,De._)`${r}.data`,i))})}Je.extendErrors=L_;function gd(e,u){let t=e.const("err",u);e.if((0,De._)`${ft.default.vErrors} === null`,()=>e.assign(ft.default.vErrors,(0,De._)`[${t}]`),(0,De._)`${ft.default.vErrors}.push(${t})`),e.code((0,De._)`${ft.default.errors}++`)}function Ed(e,u){let{gen:t,validateName:i,schemaEnv:f}=e;f.$async?t.throw((0,De._)`new ${e.ValidationError}(${u})`):(t.assign((0,De._)`${i}.errors`,u),t.return(!1))}var Tu={keyword:new De.Name("keyword"),schemaPath:new De.Name("schemaPath"),params:new De.Name("params"),propertyName:new De.Name("propertyName"),message:new De.Name("message"),schema:new De.Name("schema"),parentSchema:new De.Name("parentSchema")};function bd(e,u,t){let{createErrors:i}=e.it;return i===!1?(0,De._)`{}`:z_(e,u,t)}function z_(e,u,t={}){let{gen:i,it:f}=e,n=[H_(f,t),U_(e,t)];return W_(e,u,n),i.object(...n)}function H_({errorPath:e},{instancePath:u}){let t=u?(0,De.str)`${e}${(0,Ln.getErrorPath)(u,Ln.Type.Str)}`:e;return[ft.default.instancePath,(0,De.strConcat)(ft.default.instancePath,t)]}function U_({keyword:e,it:{errSchemaPath:u}},{schemaPath:t,parentSchema:i}){let f=i?u:(0,De.str)`${u}/${e}`;return t&&(f=(0,De.str)`${f}${(0,Ln.getErrorPath)(t,Ln.Type.Str)}`),[Tu.schemaPath,f]}function W_(e,{params:u,message:t},i){let{keyword:f,data:n,schemaValue:r,it:o}=e,{opts:D,propertyName:a,topSchemaRef:l,schemaPath:m}=o;i.push([Tu.keyword,f],[Tu.params,typeof u=="function"?u(e):u||(0,De._)`{}`]),D.messages&&i.push([Tu.message,typeof t=="function"?t(e):t]),D.verbose&&i.push([Tu.schema,r],[Tu.parentSchema,(0,De._)`${l}${m}`],[ft.default.data,n]),a&&i.push([Tu.propertyName,a])}});var yd=F(si=>{"use strict";Object.defineProperty(si,"__esModule",{value:!0});si.boolOrEmptySchema=si.topBoolOrEmptySchema=void 0;var G_=mf(),K_=ue(),J_=Gt(),Z_={message:"boolean schema is false"};function Q_(e){let{gen:u,schema:t,validateName:i}=e;t===!1?_d(e,!1):typeof t=="object"&&t.$async===!0?u.return(J_.default.data):(u.assign((0,K_._)`${i}.errors`,null),u.return(!0))}si.topBoolOrEmptySchema=Q_;function X_(e,u){let{gen:t,schema:i}=e;i===!1?(t.var(u,!1),_d(e)):t.var(u,!0)}si.boolOrEmptySchema=X_;function _d(e,u){let{gen:t,data:i}=e,f={gen:t,keyword:"false schema",data:i,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,G_.reportError)(f,Z_,void 0,u)}});var tD=F(li=>{"use strict";Object.defineProperty(li,"__esModule",{value:!0});li.getRules=li.isJSONType=void 0;var Y_=["string","number","integer","boolean","null","object","array"],e9=new Set(Y_);function t9(e){return typeof e=="string"&&e9.has(e)}li.isJSONType=t9;function u9(){let e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:ve(Q({},e),{integer:!0,boolean:!0,null:!0}),rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}li.getRules=u9});var uD=F(Du=>{"use strict";Object.defineProperty(Du,"__esModule",{value:!0});Du.shouldUseRule=Du.shouldUseGroup=Du.schemaHasRulesForType=void 0;function i9({schema:e,self:u},t){let i=u.RULES.types[t];return i&&i!==!0&&vd(e,i)}Du.schemaHasRulesForType=i9;function vd(e,u){return u.rules.some(t=>Bd(e,t))}Du.shouldUseGroup=vd;function Bd(e,u){var t;return e[u.keyword]!==void 0||((t=u.definition.implements)===null||t===void 0?void 0:t.some(i=>e[i]!==void 0))}Du.shouldUseRule=Bd});var Ff=F(Ze=>{"use strict";Object.defineProperty(Ze,"__esModule",{value:!0});Ze.reportTypeError=Ze.checkDataTypes=Ze.checkDataType=Ze.coerceAndCheckDataType=Ze.getJSONTypes=Ze.getSchemaTypes=Ze.DataType=void 0;var f9=tD(),n9=uD(),r9=mf(),ee=ue(),xd=se(),di=function(e){return e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong",e}(di||(Ze.DataType=di={}));function o9(e){let u=wd(e.type);if(u.includes("null")){if(e.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!u.length&&e.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');e.nullable===!0&&u.push("null")}return u}Ze.getSchemaTypes=o9;function wd(e){let u=Array.isArray(e)?e:e?[e]:[];if(u.every(f9.isJSONType))return u;throw new Error("type must be JSONType or JSONType[]: "+u.join(","))}Ze.getJSONTypes=wd;function D9(e,u){let{gen:t,data:i,opts:f}=e,n=a9(u,f.coerceTypes),r=u.length>0&&!(n.length===0&&u.length===1&&(0,n9.schemaHasRulesForType)(e,u[0]));if(r){let o=fD(u,i,f.strictNumbers,di.Wrong);t.if(o,()=>{n.length?s9(e,u,n):nD(e)})}return r}Ze.coerceAndCheckDataType=D9;var Ad=new Set(["string","number","integer","boolean","null"]);function a9(e,u){return u?e.filter(t=>Ad.has(t)||u==="array"&&t==="array"):[]}function s9(e,u,t){let{gen:i,data:f,opts:n}=e,r=i.let("dataType",(0,ee._)`typeof ${f}`),o=i.let("coerced",(0,ee._)`undefined`);n.coerceTypes==="array"&&i.if((0,ee._)`${r} == 'object' && Array.isArray(${f}) && ${f}.length == 1`,()=>i.assign(f,(0,ee._)`${f}[0]`).assign(r,(0,ee._)`typeof ${f}`).if(fD(u,f,n.strictNumbers),()=>i.assign(o,f))),i.if((0,ee._)`${o} !== undefined`);for(let a of t)(Ad.has(a)||a==="array"&&n.coerceTypes==="array")&&D(a);i.else(),nD(e),i.endIf(),i.if((0,ee._)`${o} !== undefined`,()=>{i.assign(f,o),l9(e,o)});function D(a){switch(a){case"string":i.elseIf((0,ee._)`${r} == "number" || ${r} == "boolean"`).assign(o,(0,ee._)`"" + ${f}`).elseIf((0,ee._)`${f} === null`).assign(o,(0,ee._)`""`);return;case"number":i.elseIf((0,ee._)`${r} == "boolean" || ${f} === null
|
|
3
3
|
|| (${r} == "string" && ${f} && ${f} == +${f})`).assign(o,(0,ee._)`+${f}`);return;case"integer":i.elseIf((0,ee._)`${r} === "boolean" || ${f} === null
|
|
4
4
|
|| (${r} === "string" && ${f} && ${f} == +${f} && !(${f} % 1))`).assign(o,(0,ee._)`+${f}`);return;case"boolean":i.elseIf((0,ee._)`${f} === "false" || ${f} === 0 || ${f} === null`).assign(o,!1).elseIf((0,ee._)`${f} === "true" || ${f} === 1`).assign(o,!0);return;case"null":i.elseIf((0,ee._)`${f} === "" || ${f} === 0 || ${f} === false`),i.assign(o,null);return;case"array":i.elseIf((0,ee._)`${r} === "string" || ${r} === "number"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as s}from"./chunk-EBVMWV7Q.js";import{c as i}from"./chunk-
|
|
1
|
+
import{d as s}from"./chunk-EBVMWV7Q.js";import{c as i}from"./chunk-2U34OGZ2.js";import{j as o}from"./chunk-WLWKH3SS.js";import{a}from"./chunk-Q4VBD4HY.js";import{ha as e,na as r}from"./chunk-NHJLTSH3.js";var v=(()=>{class t{$auth=r(i);$router=r(s);$translate=r(a);$toastr=r(o);constructor(){}canActivate(){return this.$auth.user&&this.$auth.user.admin?!0:(this.$toastr.error(this.$translate.instant("toast.no_auth"),this.$translate.instant("toast.title_error")),this.$router.navigate(["/"]),!1)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=e({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();export{v as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as pe}from"./chunk-33OXRXUC.js";import{a as he}from"./chunk-HVJRSDCO.js";import{f as We,ha as ue,k as fe,n as X,na as le}from"./chunk-NHJLTSH3.js";var d=Object.create(null);d.open="0";d.close="1";d.ping="2";d.pong="3";d.message="4";d.upgrade="5";d.noop="6";var S=Object.create(null);Object.keys(d).forEach(r=>{S[d[r]]=r});var O={type:"error",data:"parser error"};var ye=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",ge=typeof ArrayBuffer=="function",_e=r=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(r):r&&r.buffer instanceof ArrayBuffer,B=({type:r,data:e},t,s)=>ye&&e instanceof Blob?t?s(e):de(e,s):ge&&(e instanceof ArrayBuffer||_e(e))?t?s(e):de(new Blob([e]),s):s(d[r]+(e||"")),de=(r,e)=>{let t=new FileReader;return t.onload=function(){let s=t.result.split(",")[1];e("b"+(s||""))},t.readAsDataURL(r)};function me(r){return r instanceof Uint8Array?r:r instanceof ArrayBuffer?new Uint8Array(r):new Uint8Array(r.buffer,r.byteOffset,r.byteLength)}var $;function be(r,e){if(ye&&r.data instanceof Blob)return r.data.arrayBuffer().then(me).then(e);if(ge&&(r.data instanceof ArrayBuffer||_e(r.data)))return e(me(r.data));B(r,!1,t=>{$||($=new TextEncoder),e($.encode(t))})}var we="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",N=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let r=0;r<we.length;r++)N[we.charCodeAt(r)]=r;var ke=r=>{let e=r.length*.75,t=r.length,s,i=0,n,o,c,a;r[r.length-1]==="="&&(e--,r[r.length-2]==="="&&e--);let m=new ArrayBuffer(e),p=new Uint8Array(m);for(s=0;s<t;s+=4)n=N[r.charCodeAt(s)],o=N[r.charCodeAt(s+1)],c=N[r.charCodeAt(s+2)],a=N[r.charCodeAt(s+3)],p[i++]=n<<2|o>>4,p[i++]=(o&15)<<4|c>>2,p[i++]=(c&3)<<6|a&63;return m};var Ke=typeof ArrayBuffer=="function",L=(r,e)=>{if(typeof r!="string")return{type:"message",data:Ee(r,e)};let t=r.charAt(0);return t==="b"?{type:"message",data:Ye(r.substring(1),e)}:S[t]?r.length>1?{type:S[t],data:r.substring(1)}:{type:S[t]}:O},Ye=(r,e)=>{if(Ke){let t=ke(r);return Ee(t,e)}else return{base64:!0,data:r}},Ee=(r,e)=>{switch(e){case"blob":return r instanceof Blob?r:new Blob([r]);case"arraybuffer":default:return r instanceof ArrayBuffer?r:r.buffer}};var ve="",xe=(r,e)=>{let t=r.length,s=new Array(t),i=0;r.forEach((n,o)=>{B(n,!1,c=>{s[o]=c,++i===t&&e(s.join(ve))})})},Te=(r,e)=>{let t=r.split(ve),s=[];for(let i=0;i<t.length;i++){let n=L(t[i],e);if(s.push(n),n.type==="error")break}return s};function Ae(){return new TransformStream({transform(r,e){be(r,t=>{let s=t.length,i;if(s<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,s);else if(s<65536){i=new Uint8Array(3);let n=new DataView(i.buffer);n.setUint8(0,126),n.setUint16(1,s)}else{i=new Uint8Array(9);let n=new DataView(i.buffer);n.setUint8(0,127),n.setBigUint64(1,BigInt(s))}r.data&&typeof r.data!="string"&&(i[0]|=128),e.enqueue(i),e.enqueue(t)})}})}var Q;function U(r){return r.reduce((e,t)=>e+t.length,0)}function V(r,e){if(r[0].length===e)return r.shift();let t=new Uint8Array(e),s=0;for(let i=0;i<e;i++)t[i]=r[0][s++],s===r[0].length&&(r.shift(),s=0);return r.length&&s<r[0].length&&(r[0]=r[0].slice(s)),t}function Re(r,e){Q||(Q=new TextDecoder);let t=[],s=0,i=-1,n=!1;return new TransformStream({transform(o,c){for(t.push(o);;){if(s===0){if(U(t)<1)break;let a=V(t,1);n=(a[0]&128)===128,i=a[0]&127,i<126?s=3:i===126?s=1:s=2}else if(s===1){if(U(t)<2)break;let a=V(t,2);i=new DataView(a.buffer,a.byteOffset,a.length).getUint16(0),s=3}else if(s===2){if(U(t)<8)break;let a=V(t,8),m=new DataView(a.buffer,a.byteOffset,a.length),p=m.getUint32(0);if(p>Math.pow(2,21)-1){c.enqueue(O);break}i=p*Math.pow(2,32)+m.getUint32(4),s=3}else{if(U(t)<i)break;let a=V(t,i);c.enqueue(L(n?a:Q.decode(a),e)),s=0}if(i===0||i>r){c.enqueue(O);break}}}})}var j=4;function f(r){if(r)return Je(r)}function Je(r){for(var e in f.prototype)r[e]=f.prototype[e];return r}f.prototype.on=f.prototype.addEventListener=function(r,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+r]=this._callbacks["$"+r]||[]).push(e),this};f.prototype.once=function(r,e){function t(){this.off(r,t),e.apply(this,arguments)}return t.fn=e,this.on(r,t),this};f.prototype.off=f.prototype.removeListener=f.prototype.removeAllListeners=f.prototype.removeEventListener=function(r,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var t=this._callbacks["$"+r];if(!t)return this;if(arguments.length==1)return delete this._callbacks["$"+r],this;for(var s,i=0;i<t.length;i++)if(s=t[i],s===e||s.fn===e){t.splice(i,1);break}return t.length===0&&delete this._callbacks["$"+r],this};f.prototype.emit=function(r){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),t=this._callbacks["$"+r],s=1;s<arguments.length;s++)e[s-1]=arguments[s];if(t){t=t.slice(0);for(var s=0,i=t.length;s<i;++s)t[s].apply(this,e)}return this};f.prototype.emitReserved=f.prototype.emit;f.prototype.listeners=function(r){return this._callbacks=this._callbacks||{},this._callbacks["$"+r]||[]};f.prototype.hasListeners=function(r){return!!this.listeners(r).length};var y=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,t)=>t(e,0),u=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),Ce="arraybuffer";function M(r,...e){return e.reduce((t,s)=>(r.hasOwnProperty(s)&&(t[s]=r[s]),t),{})}var ze=u.setTimeout,Xe=u.clearTimeout;function g(r,e){e.useNativeTimers?(r.setTimeoutFn=ze.bind(u),r.clearTimeoutFn=Xe.bind(u)):(r.setTimeoutFn=u.setTimeout.bind(u),r.clearTimeoutFn=u.clearTimeout.bind(u))}var $e=1.33;function Se(r){return typeof r=="string"?Qe(r):Math.ceil((r.byteLength||r.size)*$e)}function Qe(r){let e=0,t=0;for(let s=0,i=r.length;s<i;s++)e=r.charCodeAt(s),e<128?t+=1:e<2048?t+=2:e<55296||e>=57344?t+=3:(s++,t+=4);return t}function H(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function Oe(r){let e="";for(let t in r)r.hasOwnProperty(t)&&(e.length&&(e+="&"),e+=encodeURIComponent(t)+"="+encodeURIComponent(r[t]));return e}function Be(r){let e={},t=r.split("&");for(let s=0,i=t.length;s<i;s++){let n=t[s].split("=");e[decodeURIComponent(n[0])]=decodeURIComponent(n[1])}return e}var W=class extends Error{constructor(e,t,s){super(e),this.description=t,this.context=s,this.type="TransportError"}},_=class extends f{constructor(e){super(),this.writable=!1,g(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,t,s){return super.emitReserved("error",new W(e,t,s)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(e){this.readyState==="open"&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){let t=L(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){let e=this.opts.hostname;return e.indexOf(":")===-1?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(e){let t=Oe(e);return t.length?"?"+t:""}};var P=class extends _{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";let t=()=>{this.readyState="paused",e()};if(this._polling||!this.writable){let s=0;this._polling&&(s++,this.once("pollComplete",function(){--s||t()})),this.writable||(s++,this.once("drain",function(){--s||t()}))}else t()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){let t=s=>{if(this.readyState==="opening"&&s.type==="open"&&this.onOpen(),s.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(s)};Te(e,this.socket.binaryType).forEach(t),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){let e=()=>{this.write([{type:"close"}])};this.readyState==="open"?e():this.once("open",e)}write(e){this.writable=!1,xe(e,t=>{this.doWrite(t,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let e=this.opts.secure?"https":"http",t=this.query||{};return this.opts.timestampRequests!==!1&&(t[this.opts.timestampParam]=H()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.createUri(e,t)}};var Ne=!1;try{Ne=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}var Le=Ne;function je(){}var G=class extends P{constructor(e){if(super(e),typeof location<"u"){let t=location.protocol==="https:",s=location.port;s||(s=t?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||s!==e.port}}doWrite(e,t){let s=this.request({method:"POST",data:e});s.on("success",t),s.on("error",(i,n)=>{this.onError("xhr post error",i,n)})}doPoll(){let e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(t,s)=>{this.onError("xhr poll error",t,s)}),this.pollXhr=e}},K=(()=>{class r extends f{constructor(t,s,i){super(),this.createRequest=t,g(this,i),this._opts=i,this._method=i.method||"GET",this._uri=s,this._data=i.data!==void 0?i.data:null,this._create()}_create(){var t;let s=M(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");s.xdomain=!!this._opts.xd;let i=this._xhr=this.createRequest(s);try{i.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){i.setDisableHeaderCheck&&i.setDisableHeaderCheck(!0);for(let n in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(n)&&i.setRequestHeader(n,this._opts.extraHeaders[n])}}catch{}if(this._method==="POST")try{i.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{i.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(i),"withCredentials"in i&&(i.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(i.timeout=this._opts.requestTimeout),i.onreadystatechange=()=>{var n;i.readyState===3&&((n=this._opts.cookieJar)===null||n===void 0||n.parseCookies(i.getResponseHeader("set-cookie"))),i.readyState===4&&(i.status===200||i.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof i.status=="number"?i.status:0)},0))},i.send(this._data)}catch(n){this.setTimeoutFn(()=>{this._onError(n)},0);return}typeof document<"u"&&(this._index=r.requestsCount++,r.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=je,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete r.requests[this._index],this._xhr=null}}_onLoad(){let t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}return r.requestsCount=0,r.requests={},r})();if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Pe);else if(typeof addEventListener=="function"){let r="onpagehide"in u?"pagehide":"unload";addEventListener(r,Pe,!1)}}function Pe(){for(let r in K.requests)K.requests.hasOwnProperty(r)&&K.requests[r].abort()}var Ge=function(){let r=qe({xdomain:!1});return r&&r.responseType!==null}(),w=class extends G{constructor(e){super(e);let t=e&&e.forceBase64;this.supportsBinary=Ge&&!t}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new K(qe,this.uri(),e)}};function qe(r){let e=r.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||Le))return new XMLHttpRequest}catch{}if(!e)try{return new u[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}var De=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",ee=class extends _{get name(){return"websocket"}doOpen(){let e=this.uri(),t=this.opts.protocols,s=De?{}:M(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(s.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,t,s)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let s=e[t],i=t===e.length-1;B(s,this.supportsBinary,n=>{try{this.doWrite(s,n)}catch{}i&&y(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){let e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=H()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}},Z=u.WebSocket||u.MozWebSocket,k=class extends ee{createSocket(e,t,s){return De?new Z(e,t,s):t?new Z(e,t):new Z(e)}doWrite(e,t){this.ws.send(t)}};var v=class extends _{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved("error",e)}this._transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(e=>{let t=Re(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=e.readable.pipeThrough(t).getReader(),i=Ae();i.readable.pipeTo(e.writable),this._writer=i.writable.getWriter();let n=()=>{s.read().then(({done:c,value:a})=>{c||(this.onPacket(a),n())}).catch(c=>{})};n();let o={type:"open"};this.query.sid&&(o.data=`{"sid":"${this.query.sid}"}`),this._writer.write(o).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let s=e[t],i=t===e.length-1;this._writer.write(s).then(()=>{i&&y(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}};var te={websocket:k,webtransport:v,polling:w};var Ze=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,et=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function x(r){if(r.length>8e3)throw"URI too long";let e=r,t=r.indexOf("["),s=r.indexOf("]");t!=-1&&s!=-1&&(r=r.substring(0,t)+r.substring(t,s).replace(/:/g,";")+r.substring(s,r.length));let i=Ze.exec(r||""),n={},o=14;for(;o--;)n[et[o]]=i[o]||"";return t!=-1&&s!=-1&&(n.source=e,n.host=n.host.substring(1,n.host.length-1).replace(/;/g,":"),n.authority=n.authority.replace("[","").replace("]","").replace(/;/g,":"),n.ipv6uri=!0),n.pathNames=tt(n,n.path),n.queryKey=st(n,n.query),n}function tt(r,e){let t=/\/{2,9}/g,s=e.replace(t,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&s.splice(0,1),e.slice(-1)=="/"&&s.splice(s.length-1,1),s}function st(r,e){let t={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(s,i,n){i&&(t[i]=n)}),t}var se=typeof addEventListener=="function"&&typeof removeEventListener=="function",Y=[];se&&addEventListener("offline",()=>{Y.forEach(r=>r())},!1);var J=(()=>{class r extends f{constructor(t,s){if(super(),this.binaryType=Ce,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(s=t,t=null),t){let i=x(t);s.hostname=i.host,s.secure=i.protocol==="https"||i.protocol==="wss",s.port=i.port,i.query&&(s.query=i.query)}else s.host&&(s.hostname=x(s.host).host);g(this,s),this.secure=s.secure!=null?s.secure:typeof location<"u"&&location.protocol==="https:",s.hostname&&!s.port&&(s.port=this.secure?"443":"80"),this.hostname=s.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=s.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},s.transports.forEach(i=>{let n=i.prototype.name;this.transports.push(n),this._transportsByName[n]=i}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},s),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=Be(this.opts.query)),se&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},Y.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){let s=Object.assign({},this.opts.query);s.EIO=j,s.transport=t,this.id&&(s.sid=this.id);let i=Object.assign({},this.opts,{query:s,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](i)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}let t=this.opts.rememberUpgrade&&r.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";let s=this.createTransport(t);s.open(),this.setTransport(s)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",s=>this._onClose("transport close",s))}onOpen(){this.readyState="open",r.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":let s=new Error("server error");s.code=t.data,this._onError(s);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let s=1;for(let i=0;i<this.writeBuffer.length;i++){let n=this.writeBuffer[i].data;if(n&&(s+=Se(n)),i>0&&s>this._maxPayload)return this.writeBuffer.slice(0,i);s+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,y(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,s,i){return this._sendPacket("message",t,s,i),this}send(t,s,i){return this._sendPacket("message",t,s,i),this}_sendPacket(t,s,i,n){if(typeof s=="function"&&(n=s,s=void 0),typeof i=="function"&&(n=i,i=null),this.readyState==="closing"||this.readyState==="closed")return;i=i||{},i.compress=i.compress!==!1;let o={type:t,data:s,options:i};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),n&&this.once("flush",n),this.flush()}close(){let t=()=>{this._onClose("forced close"),this.transport.close()},s=()=>{this.off("upgrade",s),this.off("upgradeError",s),t()},i=()=>{this.once("upgrade",s),this.once("upgradeError",s)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?i():t()}):this.upgrading?i():t()),this}_onError(t){if(r.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,s){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),se&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let i=Y.indexOf(this._offlineEventListener);i!==-1&&Y.splice(i,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,s),this.writeBuffer=[],this._prevBufferLen=0}}}return r.protocol=j,r})(),z=class extends J{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_probe(e){let t=this.createTransport(e),s=!1;J.priorWebsocketSuccess=!1;let i=()=>{s||(t.send([{type:"ping",data:"probe"}]),t.once("packet",b=>{if(!s)if(b.type==="pong"&&b.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;J.priorWebsocketSuccess=t.name==="websocket",this.transport.pause(()=>{s||this.readyState!=="closed"&&(p(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())})}else{let C=new Error("probe error");C.transport=t.name,this.emitReserved("upgradeError",C)}}))};function n(){s||(s=!0,p(),t.close(),t=null)}let o=b=>{let C=new Error("probe error: "+b);C.transport=t.name,n(),this.emitReserved("upgradeError",C)};function c(){o("transport closed")}function a(){o("socket closed")}function m(b){t&&b.name!==t.name&&n()}let p=()=>{t.removeListener("open",i),t.removeListener("error",o),t.removeListener("close",c),this.off("close",a),this.off("upgrading",m)};t.once("open",i),t.once("error",o),t.once("close",c),this.once("close",a),this.once("upgrading",m),this._upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{s||t.open()},200):t.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){let t=[];for(let s=0;s<e.length;s++)~this.transports.indexOf(e[s])&&t.push(e[s]);return t}},T=class extends z{constructor(e,t={}){let s=typeof e=="object"?e:t;(!s.transports||s.transports&&typeof s.transports[0]=="string")&&(s.transports=(s.transports||["polling","websocket","webtransport"]).map(i=>te[i]).filter(i=>!!i)),super(e,s)}};var ds=T.protocol;function Fe(r,e="",t){let s=r;t=t||typeof location<"u"&&location,r==null&&(r=t.protocol+"//"+t.host),typeof r=="string"&&(r.charAt(0)==="/"&&(r.charAt(1)==="/"?r=t.protocol+r:r=t.host+r),/^(https?|wss?):\/\//.test(r)||(typeof t<"u"?r=t.protocol+"//"+r:r="https://"+r),s=x(r)),s.port||(/^(http|ws)$/.test(s.protocol)?s.port="80":/^(http|ws)s$/.test(s.protocol)&&(s.port="443")),s.path=s.path||"/";let n=s.host.indexOf(":")!==-1?"["+s.host+"]":s.host;return s.id=s.protocol+"://"+n+":"+s.port+e,s.href=s.protocol+"://"+n+(t&&t.port===s.port?"":":"+s.port),s}var ae={};We(ae,{Decoder:()=>oe,Encoder:()=>ne,PacketType:()=>h,protocol:()=>He});var it=typeof ArrayBuffer=="function",nt=r=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(r):r.buffer instanceof ArrayBuffer,Ie=Object.prototype.toString,ot=typeof Blob=="function"||typeof Blob<"u"&&Ie.call(Blob)==="[object BlobConstructor]",ct=typeof File=="function"||typeof File<"u"&&Ie.call(File)==="[object FileConstructor]";function D(r){return it&&(r instanceof ArrayBuffer||nt(r))||ot&&r instanceof Blob||ct&&r instanceof File}function q(r,e){if(!r||typeof r!="object")return!1;if(Array.isArray(r)){for(let t=0,s=r.length;t<s;t++)if(q(r[t]))return!0;return!1}if(D(r))return!0;if(r.toJSON&&typeof r.toJSON=="function"&&arguments.length===1)return q(r.toJSON(),!0);for(let t in r)if(Object.prototype.hasOwnProperty.call(r,t)&&q(r[t]))return!0;return!1}function Ue(r){let e=[],t=r.data,s=r;return s.data=re(t,e),s.attachments=e.length,{packet:s,buffers:e}}function re(r,e){if(!r)return r;if(D(r)){let t={_placeholder:!0,num:e.length};return e.push(r),t}else if(Array.isArray(r)){let t=new Array(r.length);for(let s=0;s<r.length;s++)t[s]=re(r[s],e);return t}else if(typeof r=="object"&&!(r instanceof Date)){let t={};for(let s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=re(r[s],e));return t}return r}function Ve(r,e){return r.data=ie(r.data,e),delete r.attachments,r}function ie(r,e){if(!r)return r;if(r&&r._placeholder===!0){if(typeof r.num=="number"&&r.num>=0&&r.num<e.length)return e[r.num];throw new Error("illegal attachments")}else if(Array.isArray(r))for(let t=0;t<r.length;t++)r[t]=ie(r[t],e);else if(typeof r=="object")for(let t in r)Object.prototype.hasOwnProperty.call(r,t)&&(r[t]=ie(r[t],e));return r}var at=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],He=5,h=function(r){return r[r.CONNECT=0]="CONNECT",r[r.DISCONNECT=1]="DISCONNECT",r[r.EVENT=2]="EVENT",r[r.ACK=3]="ACK",r[r.CONNECT_ERROR=4]="CONNECT_ERROR",r[r.BINARY_EVENT=5]="BINARY_EVENT",r[r.BINARY_ACK=6]="BINARY_ACK",r}(h||{}),ne=class{constructor(e){this.replacer=e}encode(e){return(e.type===h.EVENT||e.type===h.ACK)&&q(e)?this.encodeAsBinary({type:e.type===h.EVENT?h.BINARY_EVENT:h.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let t=""+e.type;return(e.type===h.BINARY_EVENT||e.type===h.BINARY_ACK)&&(t+=e.attachments+"-"),e.nsp&&e.nsp!=="/"&&(t+=e.nsp+","),e.id!=null&&(t+=e.id),e.data!=null&&(t+=JSON.stringify(e.data,this.replacer)),t}encodeAsBinary(e){let t=Ue(e),s=this.encodeAsString(t.packet),i=t.buffers;return i.unshift(s),i}};function Me(r){return Object.prototype.toString.call(r)==="[object Object]"}var oe=class r extends f{constructor(e){super(),this.reviver=e}add(e){let t;if(typeof e=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");t=this.decodeString(e);let s=t.type===h.BINARY_EVENT;s||t.type===h.BINARY_ACK?(t.type=s?h.EVENT:h.ACK,this.reconstructor=new ce(t),t.attachments===0&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t)}else if(D(e)||e.base64)if(this.reconstructor)t=this.reconstructor.takeBinaryData(e),t&&(this.reconstructor=null,super.emitReserved("decoded",t));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+e)}decodeString(e){let t=0,s={type:Number(e.charAt(0))};if(h[s.type]===void 0)throw new Error("unknown packet type "+s.type);if(s.type===h.BINARY_EVENT||s.type===h.BINARY_ACK){let n=t+1;for(;e.charAt(++t)!=="-"&&t!=e.length;);let o=e.substring(n,t);if(o!=Number(o)||e.charAt(t)!=="-")throw new Error("Illegal attachments");s.attachments=Number(o)}if(e.charAt(t+1)==="/"){let n=t+1;for(;++t&&!(e.charAt(t)===","||t===e.length););s.nsp=e.substring(n,t)}else s.nsp="/";let i=e.charAt(t+1);if(i!==""&&Number(i)==i){let n=t+1;for(;++t;){let o=e.charAt(t);if(o==null||Number(o)!=o){--t;break}if(t===e.length)break}s.id=Number(e.substring(n,t+1))}if(e.charAt(++t)){let n=this.tryParse(e.substr(t));if(r.isPayloadValid(s.type,n))s.data=n;else throw new Error("invalid payload")}return s}tryParse(e){try{return JSON.parse(e,this.reviver)}catch{return!1}}static isPayloadValid(e,t){switch(e){case h.CONNECT:return Me(t);case h.DISCONNECT:return t===void 0;case h.CONNECT_ERROR:return typeof t=="string"||Me(t);case h.EVENT:case h.BINARY_EVENT:return Array.isArray(t)&&(typeof t[0]=="number"||typeof t[0]=="string"&&at.indexOf(t[0])===-1);case h.ACK:case h.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}},ce=class{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){let t=Ve(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};function l(r,e,t){return r.on(e,t),function(){r.off(e,t)}}var ht=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),A=class extends f{constructor(e,t,s){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,s&&s.auth&&(this.auth=s.auth),this._opts=Object.assign({},s),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let e=this.io;this.subs=[l(e,"open",this.onopen.bind(this)),l(e,"packet",this.onpacket.bind(this)),l(e,"error",this.onerror.bind(this)),l(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){var s,i,n;if(ht.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;let o={type:h.EVENT,data:t};if(o.options={},o.options.compress=this.flags.compress!==!1,typeof t[t.length-1]=="function"){let p=this.ids++,b=t.pop();this._registerAckCallback(p,b),o.id=p}let c=(i=(s=this.io.engine)===null||s===void 0?void 0:s.transport)===null||i===void 0?void 0:i.writable,a=this.connected&&!(!((n=this.io.engine)===null||n===void 0)&&n._hasPingExpired());return this.flags.volatile&&!c||(a?(this.notifyOutgoingListeners(o),this.packet(o)):this.sendBuffer.push(o)),this.flags={},this}_registerAckCallback(e,t){var s;let i=(s=this.flags.timeout)!==null&&s!==void 0?s:this._opts.ackTimeout;if(i===void 0){this.acks[e]=t;return}let n=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let c=0;c<this.sendBuffer.length;c++)this.sendBuffer[c].id===e&&this.sendBuffer.splice(c,1);t.call(this,new Error("operation has timed out"))},i),o=(...c)=>{this.io.clearTimeoutFn(n),t.apply(this,c)};o.withError=!0,this.acks[e]=o}emitWithAck(e,...t){return new Promise((s,i)=>{let n=(o,c)=>o?i(o):s(c);n.withError=!0,t.push(n),this.emit(e,...t)})}_addToQueue(e){let t;typeof e[e.length-1]=="function"&&(t=e.pop());let s={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((i,...n)=>s!==this._queue[0]?void 0:(i!==null?s.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(i)):(this._queue.shift(),t&&t(null,...n)),s.pending=!1,this._drainQueue())),this._queue.push(s),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;let t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth=="function"?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:h.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(s=>String(s.id)===e)){let s=this.acks[e];delete this.acks[e],s.withError&&s.call(this,new Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case h.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case h.EVENT:case h.BINARY_EVENT:this.onevent(e);break;case h.ACK:case h.BINARY_ACK:this.onack(e);break;case h.DISCONNECT:this.ondisconnect();break;case h.CONNECT_ERROR:this.destroy();let s=new Error(e.data.message);s.data=e.data.data,this.emitReserved("connect_error",s);break}}onevent(e){let t=e.data||[];e.id!=null&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){let t=this._anyListeners.slice();for(let s of t)s.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]=="string"&&(this._lastOffset=e[e.length-1])}ack(e){let t=this,s=!1;return function(...i){s||(s=!0,t.packet({type:h.ACK,id:e,data:i}))}}onack(e){let t=this.acks[e.id];typeof t=="function"&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:h.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){let t=this._anyListeners;for(let s=0;s<t.length;s++)if(e===t[s])return t.splice(s,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){let t=this._anyOutgoingListeners;for(let s=0;s<t.length;s++)if(e===t[s])return t.splice(s,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){let t=this._anyOutgoingListeners.slice();for(let s of t)s.apply(this,e.data)}}};function E(r){r=r||{},this.ms=r.min||100,this.max=r.max||1e4,this.factor=r.factor||2,this.jitter=r.jitter>0&&r.jitter<=1?r.jitter:0,this.attempts=0}E.prototype.duration=function(){var r=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),t=Math.floor(e*this.jitter*r);r=Math.floor(e*10)&1?r+t:r-t}return Math.min(r,this.max)|0};E.prototype.reset=function(){this.attempts=0};E.prototype.setMin=function(r){this.ms=r};E.prototype.setMax=function(r){this.max=r};E.prototype.setJitter=function(r){this.jitter=r};var R=class extends f{constructor(e,t){var s;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(t=e,e=void 0),t=t||{},t.path=t.path||"/socket.io",this.opts=t,g(this,t),this.reconnection(t.reconnection!==!1),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor((s=t.randomizationFactor)!==null&&s!==void 0?s:.5),this.backoff=new E({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(t.timeout==null?2e4:t.timeout),this._readyState="closed",this.uri=e;let i=t.parser||ae;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=t.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(t=this.backoff)===null||t===void 0||t.setMin(e),this)}randomizationFactor(e){var t;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(t=this.backoff)===null||t===void 0||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(t=this.backoff)===null||t===void 0||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new T(this.uri,this.opts);let t=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;let i=l(t,"open",function(){s.onopen(),e&&e()}),n=c=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",c),e?e(c):this.maybeReconnectOnOpen()},o=l(t,"error",n);if(this._timeout!==!1){let c=this._timeout,a=this.setTimeoutFn(()=>{i(),n(new Error("timeout")),t.close()},c);this.opts.autoUnref&&a.unref(),this.subs.push(()=>{this.clearTimeoutFn(a)})}return this.subs.push(i),this.subs.push(o),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let e=this.engine;this.subs.push(l(e,"ping",this.onping.bind(this)),l(e,"data",this.ondata.bind(this)),l(e,"error",this.onerror.bind(this)),l(e,"close",this.onclose.bind(this)),l(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(t){this.onclose("parse error",t)}}ondecoded(e){y(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let s=this.nsps[e];return s?this._autoConnect&&!s.active&&s.connect():(s=new A(this,e,t),this.nsps[e]=s),s}_destroy(e){let t=Object.keys(this.nsps);for(let s of t)if(this.nsps[s].active)return;this._close()}_packet(e){let t=this.encoder.encode(e);for(let s=0;s<t.length;s++)this.engine.write(t[s],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(e,t){var s;this.cleanup(),(s=this.engine)===null||s===void 0||s.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let t=this.backoff.duration();this._reconnecting=!0;let s=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(i=>{i?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",i)):e.onreconnect()}))},t);this.opts.autoUnref&&s.unref(),this.subs.push(()=>{this.clearTimeoutFn(s)})}}onreconnect(){let e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}};var F={};function I(r,e){typeof r=="object"&&(e=r,r=void 0),e=e||{};let t=Fe(r,e.path||"/socket.io"),s=t.source,i=t.id,n=t.path,o=F[i]&&n in F[i].nsps,c=e.forceNew||e["force new connection"]||e.multiplex===!1||o,a;return c?a=new R(s,e):(F[i]||(F[i]=new R(s,e)),a=F[i]),t.query&&!e.query&&(e.query=t.queryKey),a.socket(t.path,e)}Object.assign(I,{Manager:R,Socket:A,io:I,connect:I});var cr=(()=>{class r{$auth=le(pe);namespaceConnectionCache={};constructor(){}connectToNamespace(t){if(this.namespaceConnectionCache[t]){let s=this.namespaceConnectionCache[t];return s.connected=new X,setTimeout(()=>{s.socket.connected&&s.connected.next(void 0)}),s.socket.on("connect",()=>{s.connected.next(void 0)}),s.end=()=>{s.socket.emit("end"),s.socket.removeAllListeners(),s.connected.complete()},this.namespaceConnectionCache[t]}else{let s=this.establishConnectionToNamespace(t);return s.connected=new X,s.socket.on("connect",()=>{s.connected.next(void 0)}),s.end=()=>{s.socket.emit("end"),s.socket.removeAllListeners(),s.connected.complete()},this.namespaceConnectionCache[t]=s,s}}getExistingNamespace(t){return this.namespaceConnectionCache[t]}establishConnectionToNamespace(t){let s=I(`${he.api.socket}/${t}`,{query:{token:this.$auth.token}});return{socket:s,request:(n,o)=>new fe(c=>{s.emit(n,o,a=>{typeof a=="object"&&a.error?c.error(a):c.next(a),c.complete()})})}}static \u0275fac=function(s){return new(s||r)};static \u0275prov=ue({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();export{cr as a};
|
|
1
|
+
import{c as pe}from"./chunk-2U34OGZ2.js";import{a as he}from"./chunk-WLWKH3SS.js";import{f as We,ha as ue,k as fe,n as X,na as le}from"./chunk-NHJLTSH3.js";var d=Object.create(null);d.open="0";d.close="1";d.ping="2";d.pong="3";d.message="4";d.upgrade="5";d.noop="6";var S=Object.create(null);Object.keys(d).forEach(r=>{S[d[r]]=r});var O={type:"error",data:"parser error"};var ye=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",ge=typeof ArrayBuffer=="function",_e=r=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(r):r&&r.buffer instanceof ArrayBuffer,B=({type:r,data:e},t,s)=>ye&&e instanceof Blob?t?s(e):de(e,s):ge&&(e instanceof ArrayBuffer||_e(e))?t?s(e):de(new Blob([e]),s):s(d[r]+(e||"")),de=(r,e)=>{let t=new FileReader;return t.onload=function(){let s=t.result.split(",")[1];e("b"+(s||""))},t.readAsDataURL(r)};function me(r){return r instanceof Uint8Array?r:r instanceof ArrayBuffer?new Uint8Array(r):new Uint8Array(r.buffer,r.byteOffset,r.byteLength)}var $;function be(r,e){if(ye&&r.data instanceof Blob)return r.data.arrayBuffer().then(me).then(e);if(ge&&(r.data instanceof ArrayBuffer||_e(r.data)))return e(me(r.data));B(r,!1,t=>{$||($=new TextEncoder),e($.encode(t))})}var we="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",N=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let r=0;r<we.length;r++)N[we.charCodeAt(r)]=r;var ke=r=>{let e=r.length*.75,t=r.length,s,i=0,n,o,c,a;r[r.length-1]==="="&&(e--,r[r.length-2]==="="&&e--);let m=new ArrayBuffer(e),p=new Uint8Array(m);for(s=0;s<t;s+=4)n=N[r.charCodeAt(s)],o=N[r.charCodeAt(s+1)],c=N[r.charCodeAt(s+2)],a=N[r.charCodeAt(s+3)],p[i++]=n<<2|o>>4,p[i++]=(o&15)<<4|c>>2,p[i++]=(c&3)<<6|a&63;return m};var Ke=typeof ArrayBuffer=="function",L=(r,e)=>{if(typeof r!="string")return{type:"message",data:Ee(r,e)};let t=r.charAt(0);return t==="b"?{type:"message",data:Ye(r.substring(1),e)}:S[t]?r.length>1?{type:S[t],data:r.substring(1)}:{type:S[t]}:O},Ye=(r,e)=>{if(Ke){let t=ke(r);return Ee(t,e)}else return{base64:!0,data:r}},Ee=(r,e)=>{switch(e){case"blob":return r instanceof Blob?r:new Blob([r]);case"arraybuffer":default:return r instanceof ArrayBuffer?r:r.buffer}};var ve="",xe=(r,e)=>{let t=r.length,s=new Array(t),i=0;r.forEach((n,o)=>{B(n,!1,c=>{s[o]=c,++i===t&&e(s.join(ve))})})},Te=(r,e)=>{let t=r.split(ve),s=[];for(let i=0;i<t.length;i++){let n=L(t[i],e);if(s.push(n),n.type==="error")break}return s};function Ae(){return new TransformStream({transform(r,e){be(r,t=>{let s=t.length,i;if(s<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,s);else if(s<65536){i=new Uint8Array(3);let n=new DataView(i.buffer);n.setUint8(0,126),n.setUint16(1,s)}else{i=new Uint8Array(9);let n=new DataView(i.buffer);n.setUint8(0,127),n.setBigUint64(1,BigInt(s))}r.data&&typeof r.data!="string"&&(i[0]|=128),e.enqueue(i),e.enqueue(t)})}})}var Q;function U(r){return r.reduce((e,t)=>e+t.length,0)}function V(r,e){if(r[0].length===e)return r.shift();let t=new Uint8Array(e),s=0;for(let i=0;i<e;i++)t[i]=r[0][s++],s===r[0].length&&(r.shift(),s=0);return r.length&&s<r[0].length&&(r[0]=r[0].slice(s)),t}function Re(r,e){Q||(Q=new TextDecoder);let t=[],s=0,i=-1,n=!1;return new TransformStream({transform(o,c){for(t.push(o);;){if(s===0){if(U(t)<1)break;let a=V(t,1);n=(a[0]&128)===128,i=a[0]&127,i<126?s=3:i===126?s=1:s=2}else if(s===1){if(U(t)<2)break;let a=V(t,2);i=new DataView(a.buffer,a.byteOffset,a.length).getUint16(0),s=3}else if(s===2){if(U(t)<8)break;let a=V(t,8),m=new DataView(a.buffer,a.byteOffset,a.length),p=m.getUint32(0);if(p>Math.pow(2,21)-1){c.enqueue(O);break}i=p*Math.pow(2,32)+m.getUint32(4),s=3}else{if(U(t)<i)break;let a=V(t,i);c.enqueue(L(n?a:Q.decode(a),e)),s=0}if(i===0||i>r){c.enqueue(O);break}}}})}var j=4;function f(r){if(r)return Je(r)}function Je(r){for(var e in f.prototype)r[e]=f.prototype[e];return r}f.prototype.on=f.prototype.addEventListener=function(r,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+r]=this._callbacks["$"+r]||[]).push(e),this};f.prototype.once=function(r,e){function t(){this.off(r,t),e.apply(this,arguments)}return t.fn=e,this.on(r,t),this};f.prototype.off=f.prototype.removeListener=f.prototype.removeAllListeners=f.prototype.removeEventListener=function(r,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var t=this._callbacks["$"+r];if(!t)return this;if(arguments.length==1)return delete this._callbacks["$"+r],this;for(var s,i=0;i<t.length;i++)if(s=t[i],s===e||s.fn===e){t.splice(i,1);break}return t.length===0&&delete this._callbacks["$"+r],this};f.prototype.emit=function(r){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),t=this._callbacks["$"+r],s=1;s<arguments.length;s++)e[s-1]=arguments[s];if(t){t=t.slice(0);for(var s=0,i=t.length;s<i;++s)t[s].apply(this,e)}return this};f.prototype.emitReserved=f.prototype.emit;f.prototype.listeners=function(r){return this._callbacks=this._callbacks||{},this._callbacks["$"+r]||[]};f.prototype.hasListeners=function(r){return!!this.listeners(r).length};var y=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,t)=>t(e,0),u=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),Ce="arraybuffer";function M(r,...e){return e.reduce((t,s)=>(r.hasOwnProperty(s)&&(t[s]=r[s]),t),{})}var ze=u.setTimeout,Xe=u.clearTimeout;function g(r,e){e.useNativeTimers?(r.setTimeoutFn=ze.bind(u),r.clearTimeoutFn=Xe.bind(u)):(r.setTimeoutFn=u.setTimeout.bind(u),r.clearTimeoutFn=u.clearTimeout.bind(u))}var $e=1.33;function Se(r){return typeof r=="string"?Qe(r):Math.ceil((r.byteLength||r.size)*$e)}function Qe(r){let e=0,t=0;for(let s=0,i=r.length;s<i;s++)e=r.charCodeAt(s),e<128?t+=1:e<2048?t+=2:e<55296||e>=57344?t+=3:(s++,t+=4);return t}function H(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function Oe(r){let e="";for(let t in r)r.hasOwnProperty(t)&&(e.length&&(e+="&"),e+=encodeURIComponent(t)+"="+encodeURIComponent(r[t]));return e}function Be(r){let e={},t=r.split("&");for(let s=0,i=t.length;s<i;s++){let n=t[s].split("=");e[decodeURIComponent(n[0])]=decodeURIComponent(n[1])}return e}var W=class extends Error{constructor(e,t,s){super(e),this.description=t,this.context=s,this.type="TransportError"}},_=class extends f{constructor(e){super(),this.writable=!1,g(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,t,s){return super.emitReserved("error",new W(e,t,s)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(e){this.readyState==="open"&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){let t=L(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){let e=this.opts.hostname;return e.indexOf(":")===-1?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(e){let t=Oe(e);return t.length?"?"+t:""}};var P=class extends _{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";let t=()=>{this.readyState="paused",e()};if(this._polling||!this.writable){let s=0;this._polling&&(s++,this.once("pollComplete",function(){--s||t()})),this.writable||(s++,this.once("drain",function(){--s||t()}))}else t()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){let t=s=>{if(this.readyState==="opening"&&s.type==="open"&&this.onOpen(),s.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(s)};Te(e,this.socket.binaryType).forEach(t),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){let e=()=>{this.write([{type:"close"}])};this.readyState==="open"?e():this.once("open",e)}write(e){this.writable=!1,xe(e,t=>{this.doWrite(t,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let e=this.opts.secure?"https":"http",t=this.query||{};return this.opts.timestampRequests!==!1&&(t[this.opts.timestampParam]=H()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.createUri(e,t)}};var Ne=!1;try{Ne=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}var Le=Ne;function je(){}var G=class extends P{constructor(e){if(super(e),typeof location<"u"){let t=location.protocol==="https:",s=location.port;s||(s=t?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||s!==e.port}}doWrite(e,t){let s=this.request({method:"POST",data:e});s.on("success",t),s.on("error",(i,n)=>{this.onError("xhr post error",i,n)})}doPoll(){let e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(t,s)=>{this.onError("xhr poll error",t,s)}),this.pollXhr=e}},K=(()=>{class r extends f{constructor(t,s,i){super(),this.createRequest=t,g(this,i),this._opts=i,this._method=i.method||"GET",this._uri=s,this._data=i.data!==void 0?i.data:null,this._create()}_create(){var t;let s=M(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");s.xdomain=!!this._opts.xd;let i=this._xhr=this.createRequest(s);try{i.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){i.setDisableHeaderCheck&&i.setDisableHeaderCheck(!0);for(let n in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(n)&&i.setRequestHeader(n,this._opts.extraHeaders[n])}}catch{}if(this._method==="POST")try{i.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{i.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(i),"withCredentials"in i&&(i.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(i.timeout=this._opts.requestTimeout),i.onreadystatechange=()=>{var n;i.readyState===3&&((n=this._opts.cookieJar)===null||n===void 0||n.parseCookies(i.getResponseHeader("set-cookie"))),i.readyState===4&&(i.status===200||i.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof i.status=="number"?i.status:0)},0))},i.send(this._data)}catch(n){this.setTimeoutFn(()=>{this._onError(n)},0);return}typeof document<"u"&&(this._index=r.requestsCount++,r.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=je,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete r.requests[this._index],this._xhr=null}}_onLoad(){let t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}return r.requestsCount=0,r.requests={},r})();if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Pe);else if(typeof addEventListener=="function"){let r="onpagehide"in u?"pagehide":"unload";addEventListener(r,Pe,!1)}}function Pe(){for(let r in K.requests)K.requests.hasOwnProperty(r)&&K.requests[r].abort()}var Ge=function(){let r=qe({xdomain:!1});return r&&r.responseType!==null}(),w=class extends G{constructor(e){super(e);let t=e&&e.forceBase64;this.supportsBinary=Ge&&!t}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new K(qe,this.uri(),e)}};function qe(r){let e=r.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||Le))return new XMLHttpRequest}catch{}if(!e)try{return new u[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}var De=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",ee=class extends _{get name(){return"websocket"}doOpen(){let e=this.uri(),t=this.opts.protocols,s=De?{}:M(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(s.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,t,s)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let s=e[t],i=t===e.length-1;B(s,this.supportsBinary,n=>{try{this.doWrite(s,n)}catch{}i&&y(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){let e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=H()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}},Z=u.WebSocket||u.MozWebSocket,k=class extends ee{createSocket(e,t,s){return De?new Z(e,t,s):t?new Z(e,t):new Z(e)}doWrite(e,t){this.ws.send(t)}};var v=class extends _{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved("error",e)}this._transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(e=>{let t=Re(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=e.readable.pipeThrough(t).getReader(),i=Ae();i.readable.pipeTo(e.writable),this._writer=i.writable.getWriter();let n=()=>{s.read().then(({done:c,value:a})=>{c||(this.onPacket(a),n())}).catch(c=>{})};n();let o={type:"open"};this.query.sid&&(o.data=`{"sid":"${this.query.sid}"}`),this._writer.write(o).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let s=e[t],i=t===e.length-1;this._writer.write(s).then(()=>{i&&y(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}};var te={websocket:k,webtransport:v,polling:w};var Ze=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,et=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function x(r){if(r.length>8e3)throw"URI too long";let e=r,t=r.indexOf("["),s=r.indexOf("]");t!=-1&&s!=-1&&(r=r.substring(0,t)+r.substring(t,s).replace(/:/g,";")+r.substring(s,r.length));let i=Ze.exec(r||""),n={},o=14;for(;o--;)n[et[o]]=i[o]||"";return t!=-1&&s!=-1&&(n.source=e,n.host=n.host.substring(1,n.host.length-1).replace(/;/g,":"),n.authority=n.authority.replace("[","").replace("]","").replace(/;/g,":"),n.ipv6uri=!0),n.pathNames=tt(n,n.path),n.queryKey=st(n,n.query),n}function tt(r,e){let t=/\/{2,9}/g,s=e.replace(t,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&s.splice(0,1),e.slice(-1)=="/"&&s.splice(s.length-1,1),s}function st(r,e){let t={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(s,i,n){i&&(t[i]=n)}),t}var se=typeof addEventListener=="function"&&typeof removeEventListener=="function",Y=[];se&&addEventListener("offline",()=>{Y.forEach(r=>r())},!1);var J=(()=>{class r extends f{constructor(t,s){if(super(),this.binaryType=Ce,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(s=t,t=null),t){let i=x(t);s.hostname=i.host,s.secure=i.protocol==="https"||i.protocol==="wss",s.port=i.port,i.query&&(s.query=i.query)}else s.host&&(s.hostname=x(s.host).host);g(this,s),this.secure=s.secure!=null?s.secure:typeof location<"u"&&location.protocol==="https:",s.hostname&&!s.port&&(s.port=this.secure?"443":"80"),this.hostname=s.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=s.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},s.transports.forEach(i=>{let n=i.prototype.name;this.transports.push(n),this._transportsByName[n]=i}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},s),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=Be(this.opts.query)),se&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},Y.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){let s=Object.assign({},this.opts.query);s.EIO=j,s.transport=t,this.id&&(s.sid=this.id);let i=Object.assign({},this.opts,{query:s,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](i)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}let t=this.opts.rememberUpgrade&&r.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";let s=this.createTransport(t);s.open(),this.setTransport(s)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",s=>this._onClose("transport close",s))}onOpen(){this.readyState="open",r.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":let s=new Error("server error");s.code=t.data,this._onError(s);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let s=1;for(let i=0;i<this.writeBuffer.length;i++){let n=this.writeBuffer[i].data;if(n&&(s+=Se(n)),i>0&&s>this._maxPayload)return this.writeBuffer.slice(0,i);s+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,y(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,s,i){return this._sendPacket("message",t,s,i),this}send(t,s,i){return this._sendPacket("message",t,s,i),this}_sendPacket(t,s,i,n){if(typeof s=="function"&&(n=s,s=void 0),typeof i=="function"&&(n=i,i=null),this.readyState==="closing"||this.readyState==="closed")return;i=i||{},i.compress=i.compress!==!1;let o={type:t,data:s,options:i};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),n&&this.once("flush",n),this.flush()}close(){let t=()=>{this._onClose("forced close"),this.transport.close()},s=()=>{this.off("upgrade",s),this.off("upgradeError",s),t()},i=()=>{this.once("upgrade",s),this.once("upgradeError",s)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?i():t()}):this.upgrading?i():t()),this}_onError(t){if(r.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,s){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),se&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let i=Y.indexOf(this._offlineEventListener);i!==-1&&Y.splice(i,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,s),this.writeBuffer=[],this._prevBufferLen=0}}}return r.protocol=j,r})(),z=class extends J{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_probe(e){let t=this.createTransport(e),s=!1;J.priorWebsocketSuccess=!1;let i=()=>{s||(t.send([{type:"ping",data:"probe"}]),t.once("packet",b=>{if(!s)if(b.type==="pong"&&b.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;J.priorWebsocketSuccess=t.name==="websocket",this.transport.pause(()=>{s||this.readyState!=="closed"&&(p(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())})}else{let C=new Error("probe error");C.transport=t.name,this.emitReserved("upgradeError",C)}}))};function n(){s||(s=!0,p(),t.close(),t=null)}let o=b=>{let C=new Error("probe error: "+b);C.transport=t.name,n(),this.emitReserved("upgradeError",C)};function c(){o("transport closed")}function a(){o("socket closed")}function m(b){t&&b.name!==t.name&&n()}let p=()=>{t.removeListener("open",i),t.removeListener("error",o),t.removeListener("close",c),this.off("close",a),this.off("upgrading",m)};t.once("open",i),t.once("error",o),t.once("close",c),this.once("close",a),this.once("upgrading",m),this._upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{s||t.open()},200):t.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){let t=[];for(let s=0;s<e.length;s++)~this.transports.indexOf(e[s])&&t.push(e[s]);return t}},T=class extends z{constructor(e,t={}){let s=typeof e=="object"?e:t;(!s.transports||s.transports&&typeof s.transports[0]=="string")&&(s.transports=(s.transports||["polling","websocket","webtransport"]).map(i=>te[i]).filter(i=>!!i)),super(e,s)}};var ds=T.protocol;function Fe(r,e="",t){let s=r;t=t||typeof location<"u"&&location,r==null&&(r=t.protocol+"//"+t.host),typeof r=="string"&&(r.charAt(0)==="/"&&(r.charAt(1)==="/"?r=t.protocol+r:r=t.host+r),/^(https?|wss?):\/\//.test(r)||(typeof t<"u"?r=t.protocol+"//"+r:r="https://"+r),s=x(r)),s.port||(/^(http|ws)$/.test(s.protocol)?s.port="80":/^(http|ws)s$/.test(s.protocol)&&(s.port="443")),s.path=s.path||"/";let n=s.host.indexOf(":")!==-1?"["+s.host+"]":s.host;return s.id=s.protocol+"://"+n+":"+s.port+e,s.href=s.protocol+"://"+n+(t&&t.port===s.port?"":":"+s.port),s}var ae={};We(ae,{Decoder:()=>oe,Encoder:()=>ne,PacketType:()=>h,protocol:()=>He});var it=typeof ArrayBuffer=="function",nt=r=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(r):r.buffer instanceof ArrayBuffer,Ie=Object.prototype.toString,ot=typeof Blob=="function"||typeof Blob<"u"&&Ie.call(Blob)==="[object BlobConstructor]",ct=typeof File=="function"||typeof File<"u"&&Ie.call(File)==="[object FileConstructor]";function D(r){return it&&(r instanceof ArrayBuffer||nt(r))||ot&&r instanceof Blob||ct&&r instanceof File}function q(r,e){if(!r||typeof r!="object")return!1;if(Array.isArray(r)){for(let t=0,s=r.length;t<s;t++)if(q(r[t]))return!0;return!1}if(D(r))return!0;if(r.toJSON&&typeof r.toJSON=="function"&&arguments.length===1)return q(r.toJSON(),!0);for(let t in r)if(Object.prototype.hasOwnProperty.call(r,t)&&q(r[t]))return!0;return!1}function Ue(r){let e=[],t=r.data,s=r;return s.data=re(t,e),s.attachments=e.length,{packet:s,buffers:e}}function re(r,e){if(!r)return r;if(D(r)){let t={_placeholder:!0,num:e.length};return e.push(r),t}else if(Array.isArray(r)){let t=new Array(r.length);for(let s=0;s<r.length;s++)t[s]=re(r[s],e);return t}else if(typeof r=="object"&&!(r instanceof Date)){let t={};for(let s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=re(r[s],e));return t}return r}function Ve(r,e){return r.data=ie(r.data,e),delete r.attachments,r}function ie(r,e){if(!r)return r;if(r&&r._placeholder===!0){if(typeof r.num=="number"&&r.num>=0&&r.num<e.length)return e[r.num];throw new Error("illegal attachments")}else if(Array.isArray(r))for(let t=0;t<r.length;t++)r[t]=ie(r[t],e);else if(typeof r=="object")for(let t in r)Object.prototype.hasOwnProperty.call(r,t)&&(r[t]=ie(r[t],e));return r}var at=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],He=5,h=function(r){return r[r.CONNECT=0]="CONNECT",r[r.DISCONNECT=1]="DISCONNECT",r[r.EVENT=2]="EVENT",r[r.ACK=3]="ACK",r[r.CONNECT_ERROR=4]="CONNECT_ERROR",r[r.BINARY_EVENT=5]="BINARY_EVENT",r[r.BINARY_ACK=6]="BINARY_ACK",r}(h||{}),ne=class{constructor(e){this.replacer=e}encode(e){return(e.type===h.EVENT||e.type===h.ACK)&&q(e)?this.encodeAsBinary({type:e.type===h.EVENT?h.BINARY_EVENT:h.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let t=""+e.type;return(e.type===h.BINARY_EVENT||e.type===h.BINARY_ACK)&&(t+=e.attachments+"-"),e.nsp&&e.nsp!=="/"&&(t+=e.nsp+","),e.id!=null&&(t+=e.id),e.data!=null&&(t+=JSON.stringify(e.data,this.replacer)),t}encodeAsBinary(e){let t=Ue(e),s=this.encodeAsString(t.packet),i=t.buffers;return i.unshift(s),i}};function Me(r){return Object.prototype.toString.call(r)==="[object Object]"}var oe=class r extends f{constructor(e){super(),this.reviver=e}add(e){let t;if(typeof e=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");t=this.decodeString(e);let s=t.type===h.BINARY_EVENT;s||t.type===h.BINARY_ACK?(t.type=s?h.EVENT:h.ACK,this.reconstructor=new ce(t),t.attachments===0&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t)}else if(D(e)||e.base64)if(this.reconstructor)t=this.reconstructor.takeBinaryData(e),t&&(this.reconstructor=null,super.emitReserved("decoded",t));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+e)}decodeString(e){let t=0,s={type:Number(e.charAt(0))};if(h[s.type]===void 0)throw new Error("unknown packet type "+s.type);if(s.type===h.BINARY_EVENT||s.type===h.BINARY_ACK){let n=t+1;for(;e.charAt(++t)!=="-"&&t!=e.length;);let o=e.substring(n,t);if(o!=Number(o)||e.charAt(t)!=="-")throw new Error("Illegal attachments");s.attachments=Number(o)}if(e.charAt(t+1)==="/"){let n=t+1;for(;++t&&!(e.charAt(t)===","||t===e.length););s.nsp=e.substring(n,t)}else s.nsp="/";let i=e.charAt(t+1);if(i!==""&&Number(i)==i){let n=t+1;for(;++t;){let o=e.charAt(t);if(o==null||Number(o)!=o){--t;break}if(t===e.length)break}s.id=Number(e.substring(n,t+1))}if(e.charAt(++t)){let n=this.tryParse(e.substr(t));if(r.isPayloadValid(s.type,n))s.data=n;else throw new Error("invalid payload")}return s}tryParse(e){try{return JSON.parse(e,this.reviver)}catch{return!1}}static isPayloadValid(e,t){switch(e){case h.CONNECT:return Me(t);case h.DISCONNECT:return t===void 0;case h.CONNECT_ERROR:return typeof t=="string"||Me(t);case h.EVENT:case h.BINARY_EVENT:return Array.isArray(t)&&(typeof t[0]=="number"||typeof t[0]=="string"&&at.indexOf(t[0])===-1);case h.ACK:case h.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}},ce=class{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){let t=Ve(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};function l(r,e,t){return r.on(e,t),function(){r.off(e,t)}}var ht=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),A=class extends f{constructor(e,t,s){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,s&&s.auth&&(this.auth=s.auth),this._opts=Object.assign({},s),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let e=this.io;this.subs=[l(e,"open",this.onopen.bind(this)),l(e,"packet",this.onpacket.bind(this)),l(e,"error",this.onerror.bind(this)),l(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){var s,i,n;if(ht.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;let o={type:h.EVENT,data:t};if(o.options={},o.options.compress=this.flags.compress!==!1,typeof t[t.length-1]=="function"){let p=this.ids++,b=t.pop();this._registerAckCallback(p,b),o.id=p}let c=(i=(s=this.io.engine)===null||s===void 0?void 0:s.transport)===null||i===void 0?void 0:i.writable,a=this.connected&&!(!((n=this.io.engine)===null||n===void 0)&&n._hasPingExpired());return this.flags.volatile&&!c||(a?(this.notifyOutgoingListeners(o),this.packet(o)):this.sendBuffer.push(o)),this.flags={},this}_registerAckCallback(e,t){var s;let i=(s=this.flags.timeout)!==null&&s!==void 0?s:this._opts.ackTimeout;if(i===void 0){this.acks[e]=t;return}let n=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let c=0;c<this.sendBuffer.length;c++)this.sendBuffer[c].id===e&&this.sendBuffer.splice(c,1);t.call(this,new Error("operation has timed out"))},i),o=(...c)=>{this.io.clearTimeoutFn(n),t.apply(this,c)};o.withError=!0,this.acks[e]=o}emitWithAck(e,...t){return new Promise((s,i)=>{let n=(o,c)=>o?i(o):s(c);n.withError=!0,t.push(n),this.emit(e,...t)})}_addToQueue(e){let t;typeof e[e.length-1]=="function"&&(t=e.pop());let s={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((i,...n)=>s!==this._queue[0]?void 0:(i!==null?s.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(i)):(this._queue.shift(),t&&t(null,...n)),s.pending=!1,this._drainQueue())),this._queue.push(s),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;let t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth=="function"?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:h.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(s=>String(s.id)===e)){let s=this.acks[e];delete this.acks[e],s.withError&&s.call(this,new Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case h.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case h.EVENT:case h.BINARY_EVENT:this.onevent(e);break;case h.ACK:case h.BINARY_ACK:this.onack(e);break;case h.DISCONNECT:this.ondisconnect();break;case h.CONNECT_ERROR:this.destroy();let s=new Error(e.data.message);s.data=e.data.data,this.emitReserved("connect_error",s);break}}onevent(e){let t=e.data||[];e.id!=null&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){let t=this._anyListeners.slice();for(let s of t)s.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]=="string"&&(this._lastOffset=e[e.length-1])}ack(e){let t=this,s=!1;return function(...i){s||(s=!0,t.packet({type:h.ACK,id:e,data:i}))}}onack(e){let t=this.acks[e.id];typeof t=="function"&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:h.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){let t=this._anyListeners;for(let s=0;s<t.length;s++)if(e===t[s])return t.splice(s,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){let t=this._anyOutgoingListeners;for(let s=0;s<t.length;s++)if(e===t[s])return t.splice(s,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){let t=this._anyOutgoingListeners.slice();for(let s of t)s.apply(this,e.data)}}};function E(r){r=r||{},this.ms=r.min||100,this.max=r.max||1e4,this.factor=r.factor||2,this.jitter=r.jitter>0&&r.jitter<=1?r.jitter:0,this.attempts=0}E.prototype.duration=function(){var r=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),t=Math.floor(e*this.jitter*r);r=Math.floor(e*10)&1?r+t:r-t}return Math.min(r,this.max)|0};E.prototype.reset=function(){this.attempts=0};E.prototype.setMin=function(r){this.ms=r};E.prototype.setMax=function(r){this.max=r};E.prototype.setJitter=function(r){this.jitter=r};var R=class extends f{constructor(e,t){var s;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(t=e,e=void 0),t=t||{},t.path=t.path||"/socket.io",this.opts=t,g(this,t),this.reconnection(t.reconnection!==!1),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor((s=t.randomizationFactor)!==null&&s!==void 0?s:.5),this.backoff=new E({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(t.timeout==null?2e4:t.timeout),this._readyState="closed",this.uri=e;let i=t.parser||ae;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=t.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(t=this.backoff)===null||t===void 0||t.setMin(e),this)}randomizationFactor(e){var t;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(t=this.backoff)===null||t===void 0||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(t=this.backoff)===null||t===void 0||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new T(this.uri,this.opts);let t=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;let i=l(t,"open",function(){s.onopen(),e&&e()}),n=c=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",c),e?e(c):this.maybeReconnectOnOpen()},o=l(t,"error",n);if(this._timeout!==!1){let c=this._timeout,a=this.setTimeoutFn(()=>{i(),n(new Error("timeout")),t.close()},c);this.opts.autoUnref&&a.unref(),this.subs.push(()=>{this.clearTimeoutFn(a)})}return this.subs.push(i),this.subs.push(o),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let e=this.engine;this.subs.push(l(e,"ping",this.onping.bind(this)),l(e,"data",this.ondata.bind(this)),l(e,"error",this.onerror.bind(this)),l(e,"close",this.onclose.bind(this)),l(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(t){this.onclose("parse error",t)}}ondecoded(e){y(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let s=this.nsps[e];return s?this._autoConnect&&!s.active&&s.connect():(s=new A(this,e,t),this.nsps[e]=s),s}_destroy(e){let t=Object.keys(this.nsps);for(let s of t)if(this.nsps[s].active)return;this._close()}_packet(e){let t=this.encoder.encode(e);for(let s=0;s<t.length;s++)this.engine.write(t[s],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(e,t){var s;this.cleanup(),(s=this.engine)===null||s===void 0||s.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let t=this.backoff.duration();this._reconnecting=!0;let s=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(i=>{i?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",i)):e.onreconnect()}))},t);this.opts.autoUnref&&s.unref(),this.subs.push(()=>{this.clearTimeoutFn(s)})}}onreconnect(){let e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}};var F={};function I(r,e){typeof r=="object"&&(e=r,r=void 0),e=e||{};let t=Fe(r,e.path||"/socket.io"),s=t.source,i=t.id,n=t.path,o=F[i]&&n in F[i].nsps,c=e.forceNew||e["force new connection"]||e.multiplex===!1||o,a;return c?a=new R(s,e):(F[i]||(F[i]=new R(s,e)),a=F[i]),t.query&&!e.query&&(e.query=t.queryKey),a.socket(t.path,e)}Object.assign(I,{Manager:R,Socket:A,io:I,connect:I});var cr=(()=>{class r{$auth=le(pe);namespaceConnectionCache={};constructor(){}connectToNamespace(t){if(this.namespaceConnectionCache[t]){let s=this.namespaceConnectionCache[t];return s.connected=new X,setTimeout(()=>{s.socket.connected&&s.connected.next(void 0)}),s.socket.on("connect",()=>{s.connected.next(void 0)}),s.end=()=>{s.socket.emit("end"),s.socket.removeAllListeners(),s.connected.complete()},this.namespaceConnectionCache[t]}else{let s=this.establishConnectionToNamespace(t);return s.connected=new X,s.socket.on("connect",()=>{s.connected.next(void 0)}),s.end=()=>{s.socket.emit("end"),s.socket.removeAllListeners(),s.connected.complete()},this.namespaceConnectionCache[t]=s,s}}getExistingNamespace(t){return this.namespaceConnectionCache[t]}establishConnectionToNamespace(t){let s=I(`${he.api.socket}/${t}`,{query:{token:this.$auth.token}});return{socket:s,request:(n,o)=>new fe(c=>{s.emit(n,o,a=>{typeof a=="object"&&a.error?c.error(a):c.next(a),c.complete()})})}}static \u0275fac=function(s){return new(s||r)};static \u0275prov=ue({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();export{cr as a};
|