vis-graph3d
Version:
Create interactive, animated 3d graphs. Surfaces, lines, dots and block styling out of the box.
33 lines • 178 kB
JavaScript
/**
* vis-graph3d
* https://visjs.github.io/vis-graph3d/
*
* Create interactive, animated 3d graphs. Surfaces, lines, dots and block styling out of the box.
*
* @version 6.0.6
* @date 2023-11-24T17:25:06.133Z
*
* @copyright (c) 2011-2017 Almende B.V, http://almende.com
* @copyright (c) 2017-2019 visjs contributors, https://github.com/visjs
*
* @license
* vis.js is dual licensed under both
*
* 1. The Apache 2.0 License
* http://www.apache.org/licenses/LICENSE-2.0
*
* and
*
* 2. The MIT License
* http://opensource.org/licenses/MIT
*
* vis.js may be distributed under either license.
*/
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).vis=t.vis||{})}(this,(function(t){var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var n=function(t){return t&&t.Math===Math&&t},i=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||function(){return this}()||e||Function("return this")(),o=function(t){try{return!!t()}catch(t){return!0}},a=!o((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),s=a,u=Function.prototype,c=u.apply,l=u.call,h="object"==typeof Reflect&&Reflect.apply||(s?l.bind(c):function(){return l.apply(c,arguments)}),f=a,p=Function.prototype,d=p.call,v=f&&p.bind.bind(d,d),y=f?v:function(t){return function(){return d.apply(t,arguments)}},m=y,g=m({}.toString),b=m("".slice),w=function(t){return b(g(t),8,-1)},_=w,x=y,S=function(t){if("Function"===_(t))return x(t)},T="object"==typeof document&&document.all,E={all:T,IS_HTMLDDA:void 0===T&&void 0!==T},k=E.all,L=E.IS_HTMLDDA?function(t){return"function"==typeof t||t===k}:function(t){return"function"==typeof t},C={},O=!o((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),A=a,P=Function.prototype.call,D=A?P.bind(P):function(){return P.apply(P,arguments)},M={},R={}.propertyIsEnumerable,I=Object.getOwnPropertyDescriptor,j=I&&!R.call({1:2},1);M.f=j?function(t){var e=I(this,t);return!!e&&e.enumerable}:R;var z,F,N=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},B=o,W=w,Y=Object,G=y("".split),U=B((function(){return!Y("z").propertyIsEnumerable(0)}))?function(t){return"String"===W(t)?G(t,""):Y(t)}:Y,X=function(t){return null==t},V=X,Z=TypeError,q=function(t){if(V(t))throw new Z("Can't call method on "+t);return t},H=U,K=q,J=function(t){return H(K(t))},$=L,Q=E.all,tt=E.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:$(t)||t===Q}:function(t){return"object"==typeof t?null!==t:$(t)},et={},rt=et,nt=i,it=L,ot=function(t){return it(t)?t:void 0},at=function(t,e){return arguments.length<2?ot(rt[t])||ot(nt[t]):rt[t]&&rt[t][e]||nt[t]&&nt[t][e]},st=y({}.isPrototypeOf),ut="undefined"!=typeof navigator&&String(navigator.userAgent)||"",ct=i,lt=ut,ht=ct.process,ft=ct.Deno,pt=ht&&ht.versions||ft&&ft.version,dt=pt&&pt.v8;dt&&(F=(z=dt.split("."))[0]>0&&z[0]<4?1:+(z[0]+z[1])),!F&<&&(!(z=lt.match(/Edge\/(\d+)/))||z[1]>=74)&&(z=lt.match(/Chrome\/(\d+)/))&&(F=+z[1]);var vt=F,yt=vt,mt=o,gt=i.String,bt=!!Object.getOwnPropertySymbols&&!mt((function(){var t=Symbol("symbol detection");return!gt(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&yt&&yt<41})),wt=bt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,_t=at,xt=L,St=st,Tt=Object,Et=wt?function(t){return"symbol"==typeof t}:function(t){var e=_t("Symbol");return xt(e)&&St(e.prototype,Tt(t))},kt=String,Lt=function(t){try{return kt(t)}catch(t){return"Object"}},Ct=L,Ot=Lt,At=TypeError,Pt=function(t){if(Ct(t))return t;throw new At(Ot(t)+" is not a function")},Dt=Pt,Mt=X,Rt=function(t,e){var r=t[e];return Mt(r)?void 0:Dt(r)},It=D,jt=L,zt=tt,Ft=TypeError,Nt={exports:{}},Bt=i,Wt=Object.defineProperty,Yt=function(t,e){try{Wt(Bt,t,{value:e,configurable:!0,writable:!0})}catch(r){Bt[t]=e}return e},Gt="__core-js_shared__",Ut=i[Gt]||Yt(Gt,{}),Xt=Ut;(Nt.exports=function(t,e){return Xt[t]||(Xt[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.33.2",mode:"pure",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.2/LICENSE",source:"https://github.com/zloirock/core-js"});var Vt=Nt.exports,Zt=q,qt=Object,Ht=function(t){return qt(Zt(t))},Kt=Ht,Jt=y({}.hasOwnProperty),$t=Object.hasOwn||function(t,e){return Jt(Kt(t),e)},Qt=y,te=0,ee=Math.random(),re=Qt(1..toString),ne=function(t){return"Symbol("+(void 0===t?"":t)+")_"+re(++te+ee,36)},ie=Vt,oe=$t,ae=ne,se=bt,ue=wt,ce=i.Symbol,le=ie("wks"),he=ue?ce.for||ce:ce&&ce.withoutSetter||ae,fe=function(t){return oe(le,t)||(le[t]=se&&oe(ce,t)?ce[t]:he("Symbol."+t)),le[t]},pe=D,de=tt,ve=Et,ye=Rt,me=function(t,e){var r,n;if("string"===e&&jt(r=t.toString)&&!zt(n=It(r,t)))return n;if(jt(r=t.valueOf)&&!zt(n=It(r,t)))return n;if("string"!==e&&jt(r=t.toString)&&!zt(n=It(r,t)))return n;throw new Ft("Can't convert object to primitive value")},ge=TypeError,be=fe("toPrimitive"),we=function(t,e){if(!de(t)||ve(t))return t;var r,n=ye(t,be);if(n){if(void 0===e&&(e="default"),r=pe(n,t,e),!de(r)||ve(r))return r;throw new ge("Can't convert object to primitive value")}return void 0===e&&(e="number"),me(t,e)},_e=Et,xe=function(t){var e=we(t,"string");return _e(e)?e:e+""},Se=tt,Te=i.document,Ee=Se(Te)&&Se(Te.createElement),ke=function(t){return Ee?Te.createElement(t):{}},Le=ke,Ce=!O&&!o((function(){return 7!==Object.defineProperty(Le("div"),"a",{get:function(){return 7}}).a})),Oe=O,Ae=D,Pe=M,De=N,Me=J,Re=xe,Ie=$t,je=Ce,ze=Object.getOwnPropertyDescriptor;C.f=Oe?ze:function(t,e){if(t=Me(t),e=Re(e),je)try{return ze(t,e)}catch(t){}if(Ie(t,e))return De(!Ae(Pe.f,t,e),t[e])};var Fe=o,Ne=L,Be=/#|\.prototype\./,We=function(t,e){var r=Ge[Ye(t)];return r===Xe||r!==Ue&&(Ne(e)?Fe(e):!!e)},Ye=We.normalize=function(t){return String(t).replace(Be,".").toLowerCase()},Ge=We.data={},Ue=We.NATIVE="N",Xe=We.POLYFILL="P",Ve=We,Ze=Pt,qe=a,He=S(S.bind),Ke=function(t,e){return Ze(t),void 0===e?t:qe?He(t,e):function(){return t.apply(e,arguments)}},Je={},$e=O&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Qe=tt,tr=String,er=TypeError,rr=function(t){if(Qe(t))return t;throw new er(tr(t)+" is not an object")},nr=O,ir=Ce,or=$e,ar=rr,sr=xe,ur=TypeError,cr=Object.defineProperty,lr=Object.getOwnPropertyDescriptor,hr="enumerable",fr="configurable",pr="writable";Je.f=nr?or?function(t,e,r){if(ar(t),e=sr(e),ar(r),"function"==typeof t&&"prototype"===e&&"value"in r&&pr in r&&!r[pr]){var n=lr(t,e);n&&n[pr]&&(t[e]=r.value,r={configurable:fr in r?r[fr]:n[fr],enumerable:hr in r?r[hr]:n[hr],writable:!1})}return cr(t,e,r)}:cr:function(t,e,r){if(ar(t),e=sr(e),ar(r),ir)try{return cr(t,e,r)}catch(t){}if("get"in r||"set"in r)throw new ur("Accessors not supported");return"value"in r&&(t[e]=r.value),t};var dr=Je,vr=N,yr=O?function(t,e,r){return dr.f(t,e,vr(1,r))}:function(t,e,r){return t[e]=r,t},mr=i,gr=h,br=S,wr=L,_r=C.f,xr=Ve,Sr=et,Tr=Ke,Er=yr,kr=$t,Lr=function(t){var e=function(r,n,i){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(r);case 2:return new t(r,n)}return new t(r,n,i)}return gr(t,this,arguments)};return e.prototype=t.prototype,e},Cr=function(t,e){var r,n,i,o,a,s,u,c,l,h=t.target,f=t.global,p=t.stat,d=t.proto,v=f?mr:p?mr[h]:(mr[h]||{}).prototype,y=f?Sr:Sr[h]||Er(Sr,h,{})[h],m=y.prototype;for(o in e)n=!(r=xr(f?o:h+(p?".":"#")+o,t.forced))&&v&&kr(v,o),s=y[o],n&&(u=t.dontCallGetSet?(l=_r(v,o))&&l.value:v[o]),a=n&&u?u:e[o],n&&typeof s==typeof a||(c=t.bind&&n?Tr(a,mr):t.wrap&&n?Lr(a):d&&wr(a)?br(a):a,(t.sham||a&&a.sham||s&&s.sham)&&Er(c,"sham",!0),Er(y,o,c),d&&(kr(Sr,i=h+"Prototype")||Er(Sr,i,{}),Er(Sr[i],o,a),t.real&&m&&(r||!m[o])&&Er(m,o,a)))},Or=w,Ar=Array.isArray||function(t){return"Array"===Or(t)},Pr=Math.ceil,Dr=Math.floor,Mr=Math.trunc||function(t){var e=+t;return(e>0?Dr:Pr)(e)},Rr=function(t){var e=+t;return e!=e||0===e?0:Mr(e)},Ir=Rr,jr=Math.min,zr=function(t){return t>0?jr(Ir(t),9007199254740991):0},Fr=function(t){return zr(t.length)},Nr=TypeError,Br=function(t){if(t>9007199254740991)throw Nr("Maximum allowed index exceeded");return t},Wr=xe,Yr=Je,Gr=N,Ur=function(t,e,r){var n=Wr(e);n in t?Yr.f(t,n,Gr(0,r)):t[n]=r},Xr={};Xr[fe("toStringTag")]="z";var Vr="[object z]"===String(Xr),Zr=Vr,qr=L,Hr=w,Kr=fe("toStringTag"),Jr=Object,$r="Arguments"===Hr(function(){return arguments}()),Qr=Zr?Hr:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=Jr(t),Kr))?r:$r?Hr(e):"Object"===(n=Hr(e))&&qr(e.callee)?"Arguments":n},tn=L,en=Ut,rn=y(Function.toString);tn(en.inspectSource)||(en.inspectSource=function(t){return rn(t)});var nn=en.inspectSource,on=y,an=o,sn=L,un=Qr,cn=nn,ln=function(){},hn=[],fn=at("Reflect","construct"),pn=/^\s*(?:class|function)\b/,dn=on(pn.exec),vn=!pn.test(ln),yn=function(t){if(!sn(t))return!1;try{return fn(ln,hn,t),!0}catch(t){return!1}},mn=function(t){if(!sn(t))return!1;switch(un(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return vn||!!dn(pn,cn(t))}catch(t){return!0}};mn.sham=!0;var gn=!fn||an((function(){var t;return yn(yn.call)||!yn(Object)||!yn((function(){t=!0}))||t}))?mn:yn,bn=Ar,wn=gn,_n=tt,xn=fe("species"),Sn=Array,Tn=function(t){var e;return bn(t)&&(e=t.constructor,(wn(e)&&(e===Sn||bn(e.prototype))||_n(e)&&null===(e=e[xn]))&&(e=void 0)),void 0===e?Sn:e},En=function(t,e){return new(Tn(t))(0===e?0:e)},kn=o,Ln=vt,Cn=fe("species"),On=function(t){return Ln>=51||!kn((function(){var e=[];return(e.constructor={})[Cn]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},An=Cr,Pn=o,Dn=Ar,Mn=tt,Rn=Ht,In=Fr,jn=Br,zn=Ur,Fn=En,Nn=On,Bn=vt,Wn=fe("isConcatSpreadable"),Yn=Bn>=51||!Pn((function(){var t=[];return t[Wn]=!1,t.concat()[0]!==t})),Gn=function(t){if(!Mn(t))return!1;var e=t[Wn];return void 0!==e?!!e:Dn(t)};An({target:"Array",proto:!0,arity:1,forced:!Yn||!Nn("concat")},{concat:function(t){var e,r,n,i,o,a=Rn(this),s=Fn(a,0),u=0;for(e=-1,n=arguments.length;e<n;e++)if(Gn(o=-1===e?a:arguments[e]))for(i=In(o),jn(u+i),r=0;r<i;r++,u++)r in o&&zn(s,u,o[r]);else jn(u+1),zn(s,u++,o);return s.length=u,s}});var Un=Qr,Xn=String,Vn=function(t){if("Symbol"===Un(t))throw new TypeError("Cannot convert a Symbol value to a string");return Xn(t)},Zn={},qn=Rr,Hn=Math.max,Kn=Math.min,Jn=function(t,e){var r=qn(t);return r<0?Hn(r+e,0):Kn(r,e)},$n=J,Qn=Jn,ti=Fr,ei=function(t){return function(e,r,n){var i,o=$n(e),a=ti(o),s=Qn(n,a);if(t&&r!=r){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((t||s in o)&&o[s]===r)return t||s||0;return!t&&-1}},ri={includes:ei(!0),indexOf:ei(!1)},ni={},ii=$t,oi=J,ai=ri.indexOf,si=ni,ui=y([].push),ci=function(t,e){var r,n=oi(t),i=0,o=[];for(r in n)!ii(si,r)&&ii(n,r)&&ui(o,r);for(;e.length>i;)ii(n,r=e[i++])&&(~ai(o,r)||ui(o,r));return o},li=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],hi=ci,fi=li,pi=Object.keys||function(t){return hi(t,fi)},di=O,vi=$e,yi=Je,mi=rr,gi=J,bi=pi;Zn.f=di&&!vi?Object.defineProperties:function(t,e){mi(t);for(var r,n=gi(e),i=bi(e),o=i.length,a=0;o>a;)yi.f(t,r=i[a++],n[r]);return t};var wi,_i=at("document","documentElement"),xi=ne,Si=Vt("keys"),Ti=function(t){return Si[t]||(Si[t]=xi(t))},Ei=rr,ki=Zn,Li=li,Ci=ni,Oi=_i,Ai=ke,Pi="prototype",Di="script",Mi=Ti("IE_PROTO"),Ri=function(){},Ii=function(t){return"<"+Di+">"+t+"</"+Di+">"},ji=function(t){t.write(Ii("")),t.close();var e=t.parentWindow.Object;return t=null,e},zi=function(){try{wi=new ActiveXObject("htmlfile")}catch(t){}var t,e,r;zi="undefined"!=typeof document?document.domain&&wi?ji(wi):(e=Ai("iframe"),r="java"+Di+":",e.style.display="none",Oi.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(Ii("document.F=Object")),t.close(),t.F):ji(wi);for(var n=Li.length;n--;)delete zi[Pi][Li[n]];return zi()};Ci[Mi]=!0;var Fi=Object.create||function(t,e){var r;return null!==t?(Ri[Pi]=Ei(t),r=new Ri,Ri[Pi]=null,r[Mi]=t):r=zi(),void 0===e?r:ki.f(r,e)},Ni={},Bi=ci,Wi=li.concat("length","prototype");Ni.f=Object.getOwnPropertyNames||function(t){return Bi(t,Wi)};var Yi={},Gi=Jn,Ui=Fr,Xi=Ur,Vi=Array,Zi=Math.max,qi=function(t,e,r){for(var n=Ui(t),i=Gi(e,n),o=Gi(void 0===r?n:r,n),a=Vi(Zi(o-i,0)),s=0;i<o;i++,s++)Xi(a,s,t[i]);return a.length=s,a},Hi=w,Ki=J,Ji=Ni.f,$i=qi,Qi="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];Yi.f=function(t){return Qi&&"Window"===Hi(t)?function(t){try{return Ji(t)}catch(t){return $i(Qi)}}(t):Ji(Ki(t))};var to={};to.f=Object.getOwnPropertySymbols;var eo=yr,ro=function(t,e,r,n){return n&&n.enumerable?t[e]=r:eo(t,e,r),t},no=Je,io=function(t,e,r){return no.f(t,e,r)},oo={},ao=fe;oo.f=ao;var so,uo,co,lo=et,ho=$t,fo=oo,po=Je.f,vo=function(t){var e=lo.Symbol||(lo.Symbol={});ho(e,t)||po(e,t,{value:fo.f(t)})},yo=D,mo=at,go=fe,bo=ro,wo=function(){var t=mo("Symbol"),e=t&&t.prototype,r=e&&e.valueOf,n=go("toPrimitive");e&&!e[n]&&bo(e,n,(function(t){return yo(r,this)}),{arity:1})},_o=Qr,xo=Vr?{}.toString:function(){return"[object "+_o(this)+"]"},So=Vr,To=Je.f,Eo=yr,ko=$t,Lo=xo,Co=fe("toStringTag"),Oo=function(t,e,r,n){if(t){var i=r?t:t.prototype;ko(i,Co)||To(i,Co,{configurable:!0,value:e}),n&&!So&&Eo(i,"toString",Lo)}},Ao=L,Po=i.WeakMap,Do=Ao(Po)&&/native code/.test(String(Po)),Mo=i,Ro=tt,Io=yr,jo=$t,zo=Ut,Fo=Ti,No=ni,Bo="Object already initialized",Wo=Mo.TypeError,Yo=Mo.WeakMap;if(Do||zo.state){var Go=zo.state||(zo.state=new Yo);Go.get=Go.get,Go.has=Go.has,Go.set=Go.set,so=function(t,e){if(Go.has(t))throw new Wo(Bo);return e.facade=t,Go.set(t,e),e},uo=function(t){return Go.get(t)||{}},co=function(t){return Go.has(t)}}else{var Uo=Fo("state");No[Uo]=!0,so=function(t,e){if(jo(t,Uo))throw new Wo(Bo);return e.facade=t,Io(t,Uo,e),e},uo=function(t){return jo(t,Uo)?t[Uo]:{}},co=function(t){return jo(t,Uo)}}var Xo={set:so,get:uo,has:co,enforce:function(t){return co(t)?uo(t):so(t,{})},getterFor:function(t){return function(e){var r;if(!Ro(e)||(r=uo(e)).type!==t)throw new Wo("Incompatible receiver, "+t+" required");return r}}},Vo=Ke,Zo=U,qo=Ht,Ho=Fr,Ko=En,Jo=y([].push),$o=function(t){var e=1===t,r=2===t,n=3===t,i=4===t,o=6===t,a=7===t,s=5===t||o;return function(u,c,l,h){for(var f,p,d=qo(u),v=Zo(d),y=Vo(c,l),m=Ho(v),g=0,b=h||Ko,w=e?b(u,m):r||a?b(u,0):void 0;m>g;g++)if((s||g in v)&&(p=y(f=v[g],g,d),t))if(e)w[g]=p;else if(p)switch(t){case 3:return!0;case 5:return f;case 6:return g;case 2:Jo(w,f)}else switch(t){case 4:return!1;case 7:Jo(w,f)}return o?-1:n||i?i:w}},Qo={forEach:$o(0),map:$o(1),filter:$o(2),some:$o(3),every:$o(4),find:$o(5),findIndex:$o(6),filterReject:$o(7)},ta=Cr,ea=i,ra=D,na=y,ia=O,oa=bt,aa=o,sa=$t,ua=st,ca=rr,la=J,ha=xe,fa=Vn,pa=N,da=Fi,va=pi,ya=Ni,ma=Yi,ga=to,ba=C,wa=Je,_a=Zn,xa=M,Sa=ro,Ta=io,Ea=Vt,ka=ni,La=ne,Ca=fe,Oa=oo,Aa=vo,Pa=wo,Da=Oo,Ma=Xo,Ra=Qo.forEach,Ia=Ti("hidden"),ja="Symbol",za="prototype",Fa=Ma.set,Na=Ma.getterFor(ja),Ba=Object[za],Wa=ea.Symbol,Ya=Wa&&Wa[za],Ga=ea.RangeError,Ua=ea.TypeError,Xa=ea.QObject,Va=ba.f,Za=wa.f,qa=ma.f,Ha=xa.f,Ka=na([].push),Ja=Ea("symbols"),$a=Ea("op-symbols"),Qa=Ea("wks"),ts=!Xa||!Xa[za]||!Xa[za].findChild,es=function(t,e,r){var n=Va(Ba,e);n&&delete Ba[e],Za(t,e,r),n&&t!==Ba&&Za(Ba,e,n)},rs=ia&&aa((function(){return 7!==da(Za({},"a",{get:function(){return Za(this,"a",{value:7}).a}})).a}))?es:Za,ns=function(t,e){var r=Ja[t]=da(Ya);return Fa(r,{type:ja,tag:t,description:e}),ia||(r.description=e),r},is=function(t,e,r){t===Ba&&is($a,e,r),ca(t);var n=ha(e);return ca(r),sa(Ja,n)?(r.enumerable?(sa(t,Ia)&&t[Ia][n]&&(t[Ia][n]=!1),r=da(r,{enumerable:pa(0,!1)})):(sa(t,Ia)||Za(t,Ia,pa(1,{})),t[Ia][n]=!0),rs(t,n,r)):Za(t,n,r)},os=function(t,e){ca(t);var r=la(e),n=va(r).concat(cs(r));return Ra(n,(function(e){ia&&!ra(as,r,e)||is(t,e,r[e])})),t},as=function(t){var e=ha(t),r=ra(Ha,this,e);return!(this===Ba&&sa(Ja,e)&&!sa($a,e))&&(!(r||!sa(this,e)||!sa(Ja,e)||sa(this,Ia)&&this[Ia][e])||r)},ss=function(t,e){var r=la(t),n=ha(e);if(r!==Ba||!sa(Ja,n)||sa($a,n)){var i=Va(r,n);return!i||!sa(Ja,n)||sa(r,Ia)&&r[Ia][n]||(i.enumerable=!0),i}},us=function(t){var e=qa(la(t)),r=[];return Ra(e,(function(t){sa(Ja,t)||sa(ka,t)||Ka(r,t)})),r},cs=function(t){var e=t===Ba,r=qa(e?$a:la(t)),n=[];return Ra(r,(function(t){!sa(Ja,t)||e&&!sa(Ba,t)||Ka(n,Ja[t])})),n};oa||(Wa=function(){if(ua(Ya,this))throw new Ua("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?fa(arguments[0]):void 0,e=La(t),r=function(t){var n=void 0===this?ea:this;n===Ba&&ra(r,$a,t),sa(n,Ia)&&sa(n[Ia],e)&&(n[Ia][e]=!1);var i=pa(1,t);try{rs(n,e,i)}catch(t){if(!(t instanceof Ga))throw t;es(n,e,i)}};return ia&&ts&&rs(Ba,e,{configurable:!0,set:r}),ns(e,t)},Sa(Ya=Wa[za],"toString",(function(){return Na(this).tag})),Sa(Wa,"withoutSetter",(function(t){return ns(La(t),t)})),xa.f=as,wa.f=is,_a.f=os,ba.f=ss,ya.f=ma.f=us,ga.f=cs,Oa.f=function(t){return ns(Ca(t),t)},ia&&Ta(Ya,"description",{configurable:!0,get:function(){return Na(this).description}})),ta({global:!0,constructor:!0,wrap:!0,forced:!oa,sham:!oa},{Symbol:Wa}),Ra(va(Qa),(function(t){Aa(t)})),ta({target:ja,stat:!0,forced:!oa},{useSetter:function(){ts=!0},useSimple:function(){ts=!1}}),ta({target:"Object",stat:!0,forced:!oa,sham:!ia},{create:function(t,e){return void 0===e?da(t):os(da(t),e)},defineProperty:is,defineProperties:os,getOwnPropertyDescriptor:ss}),ta({target:"Object",stat:!0,forced:!oa},{getOwnPropertyNames:us}),Pa(),Da(Wa,ja),ka[Ia]=!0;var ls=bt&&!!Symbol.for&&!!Symbol.keyFor,hs=Cr,fs=at,ps=$t,ds=Vn,vs=Vt,ys=ls,ms=vs("string-to-symbol-registry"),gs=vs("symbol-to-string-registry");hs({target:"Symbol",stat:!0,forced:!ys},{for:function(t){var e=ds(t);if(ps(ms,e))return ms[e];var r=fs("Symbol")(e);return ms[e]=r,gs[r]=e,r}});var bs=Cr,ws=$t,_s=Et,xs=Lt,Ss=ls,Ts=Vt("symbol-to-string-registry");bs({target:"Symbol",stat:!0,forced:!Ss},{keyFor:function(t){if(!_s(t))throw new TypeError(xs(t)+" is not a symbol");if(ws(Ts,t))return Ts[t]}});var Es=y([].slice),ks=Ar,Ls=L,Cs=w,Os=Vn,As=y([].push),Ps=Cr,Ds=at,Ms=h,Rs=D,Is=y,js=o,zs=L,Fs=Et,Ns=Es,Bs=function(t){if(Ls(t))return t;if(ks(t)){for(var e=t.length,r=[],n=0;n<e;n++){var i=t[n];"string"==typeof i?As(r,i):"number"!=typeof i&&"Number"!==Cs(i)&&"String"!==Cs(i)||As(r,Os(i))}var o=r.length,a=!0;return function(t,e){if(a)return a=!1,e;if(ks(this))return e;for(var n=0;n<o;n++)if(r[n]===t)return e}}},Ws=bt,Ys=String,Gs=Ds("JSON","stringify"),Us=Is(/./.exec),Xs=Is("".charAt),Vs=Is("".charCodeAt),Zs=Is("".replace),qs=Is(1..toString),Hs=/[\uD800-\uDFFF]/g,Ks=/^[\uD800-\uDBFF]$/,Js=/^[\uDC00-\uDFFF]$/,$s=!Ws||js((function(){var t=Ds("Symbol")("stringify detection");return"[null]"!==Gs([t])||"{}"!==Gs({a:t})||"{}"!==Gs(Object(t))})),Qs=js((function(){return'"\\udf06\\ud834"'!==Gs("\udf06\ud834")||'"\\udead"'!==Gs("\udead")})),tu=function(t,e){var r=Ns(arguments),n=Bs(e);if(zs(n)||void 0!==t&&!Fs(t))return r[1]=function(t,e){if(zs(n)&&(e=Rs(n,this,Ys(t),e)),!Fs(e))return e},Ms(Gs,null,r)},eu=function(t,e,r){var n=Xs(r,e-1),i=Xs(r,e+1);return Us(Ks,t)&&!Us(Js,i)||Us(Js,t)&&!Us(Ks,n)?"\\u"+qs(Vs(t,0),16):t};Gs&&Ps({target:"JSON",stat:!0,arity:3,forced:$s||Qs},{stringify:function(t,e,r){var n=Ns(arguments),i=Ms($s?tu:Gs,null,n);return Qs&&"string"==typeof i?Zs(i,Hs,eu):i}});var ru=to,nu=Ht;Cr({target:"Object",stat:!0,forced:!bt||o((function(){ru.f(1)}))},{getOwnPropertySymbols:function(t){var e=ru.f;return e?e(nu(t)):[]}}),vo("asyncIterator"),vo("hasInstance"),vo("isConcatSpreadable"),vo("iterator"),vo("match"),vo("matchAll"),vo("replace"),vo("search"),vo("species"),vo("split");var iu=wo;vo("toPrimitive"),iu();var ou=at,au=Oo;vo("toStringTag"),au(ou("Symbol"),"Symbol"),vo("unscopables"),Oo(i.JSON,"JSON",!0);var su,uu,cu,lu=et.Symbol,hu={},fu=O,pu=$t,du=Function.prototype,vu=fu&&Object.getOwnPropertyDescriptor,yu=pu(du,"name"),mu={EXISTS:yu,PROPER:yu&&"something"===function(){}.name,CONFIGURABLE:yu&&(!fu||fu&&vu(du,"name").configurable)},gu=!o((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),bu=$t,wu=L,_u=Ht,xu=gu,Su=Ti("IE_PROTO"),Tu=Object,Eu=Tu.prototype,ku=xu?Tu.getPrototypeOf:function(t){var e=_u(t);if(bu(e,Su))return e[Su];var r=e.constructor;return wu(r)&&e instanceof r?r.prototype:e instanceof Tu?Eu:null},Lu=o,Cu=L,Ou=tt,Au=Fi,Pu=ku,Du=ro,Mu=fe("iterator"),Ru=!1;[].keys&&("next"in(cu=[].keys())?(uu=Pu(Pu(cu)))!==Object.prototype&&(su=uu):Ru=!0);var Iu=!Ou(su)||Lu((function(){var t={};return su[Mu].call(t)!==t}));Cu((su=Iu?{}:Au(su))[Mu])||Du(su,Mu,(function(){return this}));var ju={IteratorPrototype:su,BUGGY_SAFARI_ITERATORS:Ru},zu=ju.IteratorPrototype,Fu=Fi,Nu=N,Bu=Oo,Wu=hu,Yu=function(){return this},Gu=y,Uu=Pt,Xu=L,Vu=String,Zu=TypeError,qu=function(t,e,r){try{return Gu(Uu(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(t){}},Hu=rr,Ku=function(t){if("object"==typeof t||Xu(t))return t;throw new Zu("Can't set "+Vu(t)+" as a prototype")},Ju=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=qu(Object.prototype,"__proto__","set"))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return Hu(r),Ku(n),e?t(r,n):r.__proto__=n,r}}():void 0),$u=Cr,Qu=D,tc=mu,ec=function(t,e,r,n){var i=e+" Iterator";return t.prototype=Fu(zu,{next:Nu(+!n,r)}),Bu(t,i,!1,!0),Wu[i]=Yu,t},rc=ku,nc=Oo,ic=ro,oc=hu,ac=ju,sc=tc.PROPER,uc=ac.BUGGY_SAFARI_ITERATORS,cc=fe("iterator"),lc="keys",hc="values",fc="entries",pc=function(){return this},dc=function(t,e,r,n,i,o,a){ec(r,e,n);var s,u,c,l=function(t){if(t===i&&v)return v;if(!uc&&t&&t in p)return p[t];switch(t){case lc:case hc:case fc:return function(){return new r(this,t)}}return function(){return new r(this)}},h=e+" Iterator",f=!1,p=t.prototype,d=p[cc]||p["@@iterator"]||i&&p[i],v=!uc&&d||l(i),y="Array"===e&&p.entries||d;if(y&&(s=rc(y.call(new t)))!==Object.prototype&&s.next&&(nc(s,h,!0,!0),oc[h]=pc),sc&&i===hc&&d&&d.name!==hc&&(f=!0,v=function(){return Qu(d,this)}),i)if(u={values:l(hc),keys:o?v:l(lc),entries:l(fc)},a)for(c in u)(uc||f||!(c in p))&&ic(p,c,u[c]);else $u({target:e,proto:!0,forced:uc||f},u);return a&&p[cc]!==v&&ic(p,cc,v,{name:i}),oc[e]=v,u},vc=function(t,e){return{value:t,done:e}},yc=J,mc=hu,gc=Xo;Je.f;var bc=dc,wc=vc,_c="Array Iterator",xc=gc.set,Sc=gc.getterFor(_c);bc(Array,"Array",(function(t,e){xc(this,{type:_c,target:yc(t),index:0,kind:e})}),(function(){var t=Sc(this),e=t.target,r=t.index++;if(!e||r>=e.length)return t.target=void 0,wc(void 0,!0);switch(t.kind){case"keys":return wc(r,!1);case"values":return wc(e[r],!1)}return wc([r,e[r]],!1)}),"values"),mc.Arguments=mc.Array;var Tc={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Ec=i,kc=Qr,Lc=yr,Cc=hu,Oc=fe("toStringTag");for(var Ac in Tc){var Pc=Ec[Ac],Dc=Pc&&Pc.prototype;Dc&&kc(Dc)!==Oc&&Lc(Dc,Oc,Ac),Cc[Ac]=Cc.Array}var Mc=lu,Rc=fe,Ic=Je.f,jc=Rc("metadata"),zc=Function.prototype;void 0===zc[jc]&&Ic(zc,jc,{value:null}),vo("asyncDispose"),vo("dispose"),vo("metadata");var Fc=Mc,Nc=y,Bc=at("Symbol"),Wc=Bc.keyFor,Yc=Nc(Bc.prototype.valueOf),Gc=Bc.isRegisteredSymbol||function(t){try{return void 0!==Wc(Yc(t))}catch(t){return!1}};Cr({target:"Symbol",stat:!0},{isRegisteredSymbol:Gc});for(var Uc=Vt,Xc=at,Vc=y,Zc=Et,qc=fe,Hc=Xc("Symbol"),Kc=Hc.isWellKnownSymbol,Jc=Xc("Object","getOwnPropertyNames"),$c=Vc(Hc.prototype.valueOf),Qc=Uc("wks"),tl=0,el=Jc(Hc),rl=el.length;tl<rl;tl++)try{var nl=el[tl];Zc(Hc[nl])&&qc(nl)}catch(t){}var il=function(t){if(Kc&&Kc(t))return!0;try{for(var e=$c(t),r=0,n=Jc(Qc),i=n.length;r<i;r++)if(Qc[n[r]]==e)return!0}catch(t){}return!1};Cr({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:il}),vo("matcher"),vo("observable"),Cr({target:"Symbol",stat:!0,name:"isRegisteredSymbol"},{isRegistered:Gc}),Cr({target:"Symbol",stat:!0,name:"isWellKnownSymbol",forced:!0},{isWellKnown:il}),vo("metadataKey"),vo("patternMatch"),vo("replaceAll");var ol=Fc,al=r(ol),sl=y,ul=Rr,cl=Vn,ll=q,hl=sl("".charAt),fl=sl("".charCodeAt),pl=sl("".slice),dl=function(t){return function(e,r){var n,i,o=cl(ll(e)),a=ul(r),s=o.length;return a<0||a>=s?t?"":void 0:(n=fl(o,a))<55296||n>56319||a+1===s||(i=fl(o,a+1))<56320||i>57343?t?hl(o,a):n:t?pl(o,a,a+2):i-56320+(n-55296<<10)+65536}},vl={codeAt:dl(!1),charAt:dl(!0)}.charAt,yl=Vn,ml=Xo,gl=dc,bl=vc,wl="String Iterator",_l=ml.set,xl=ml.getterFor(wl);gl(String,"String",(function(t){_l(this,{type:wl,string:yl(t),index:0})}),(function(){var t,e=xl(this),r=e.string,n=e.index;return n>=r.length?bl(void 0,!0):(t=vl(r,n),e.index+=t.length,bl(t,!1))}));var Sl=oo.f("iterator"),Tl=Sl,El=r(Tl);function kl(t){return kl="function"==typeof al&&"symbol"==typeof El?function(t){return typeof t}:function(t){return t&&"function"==typeof al&&t.constructor===al&&t!==al.prototype?"symbol":typeof t},kl(t)}var Ll=Lt,Cl=TypeError,Ol=function(t,e){if(!delete t[e])throw new Cl("Cannot delete property "+Ll(e)+" of "+Ll(t))},Al=qi,Pl=Math.floor,Dl=function(t,e){var r=t.length,n=Pl(r/2);return r<8?Ml(t,e):Rl(t,Dl(Al(t,0,n),e),Dl(Al(t,n),e),e)},Ml=function(t,e){for(var r,n,i=t.length,o=1;o<i;){for(n=o,r=t[o];n&&e(t[n-1],r)>0;)t[n]=t[--n];n!==o++&&(t[n]=r)}return t},Rl=function(t,e,r,n){for(var i=e.length,o=r.length,a=0,s=0;a<i||s<o;)t[a+s]=a<i&&s<o?n(e[a],r[s])<=0?e[a++]:r[s++]:a<i?e[a++]:r[s++];return t},Il=Dl,jl=o,zl=function(t,e){var r=[][t];return!!r&&jl((function(){r.call(null,e||function(){return 1},1)}))},Fl=ut.match(/firefox\/(\d+)/i),Nl=!!Fl&&+Fl[1],Bl=/MSIE|Trident/.test(ut),Wl=ut.match(/AppleWebKit\/(\d+)\./),Yl=!!Wl&&+Wl[1],Gl=Cr,Ul=y,Xl=Pt,Vl=Ht,Zl=Fr,ql=Ol,Hl=Vn,Kl=o,Jl=Il,$l=zl,Ql=Nl,th=Bl,eh=vt,rh=Yl,nh=[],ih=Ul(nh.sort),oh=Ul(nh.push),ah=Kl((function(){nh.sort(void 0)})),sh=Kl((function(){nh.sort(null)})),uh=$l("sort"),ch=!Kl((function(){if(eh)return eh<70;if(!(Ql&&Ql>3)){if(th)return!0;if(rh)return rh<603;var t,e,r,n,i="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(n=0;n<47;n++)nh.push({k:e+n,v:r})}for(nh.sort((function(t,e){return e.v-t.v})),n=0;n<nh.length;n++)e=nh[n].k.charAt(0),i.charAt(i.length-1)!==e&&(i+=e);return"DGBEFHACIJK"!==i}}));Gl({target:"Array",proto:!0,forced:ah||!sh||!uh||!ch},{sort:function(t){void 0!==t&&Xl(t);var e=Vl(this);if(ch)return void 0===t?ih(e):ih(e,t);var r,n,i=[],o=Zl(e);for(n=0;n<o;n++)n in e&&oh(i,e[n]);for(Jl(i,function(t){return function(e,r){return void 0===r?-1:void 0===e?1:void 0!==t?+t(e,r)||0:Hl(e)>Hl(r)?1:-1}}(t)),r=Zl(i),n=0;n<r;)e[n]=i[n++];for(;n<o;)ql(e,n++);return e}});var lh=i,hh=et,fh=function(t,e){var r=hh[t+"Prototype"],n=r&&r[e];if(n)return n;var i=lh[t],o=i&&i.prototype;return o&&o[e]},ph=fh("Array","sort"),dh=st,vh=ph,yh=Array.prototype,mh=r((function(t){var e=t.sort;return t===yh||dh(yh,t)&&e===yh.sort?vh:e})),gh=Cr,bh=ri.indexOf,wh=zl,_h=S([].indexOf),xh=!!_h&&1/_h([1],1,-0)<0;gh({target:"Array",proto:!0,forced:xh||!wh("indexOf")},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return xh?_h(this,t,e)||0:bh(this,t,e)}});var Sh=fh("Array","indexOf"),Th=st,Eh=Sh,kh=Array.prototype,Lh=r((function(t){var e=t.indexOf;return t===kh||Th(kh,t)&&e===kh.indexOf?Eh:e})),Ch=Qo.filter;Cr({target:"Array",proto:!0,forced:!On("filter")},{filter:function(t){return Ch(this,t,arguments.length>1?arguments[1]:void 0)}});var Oh=fh("Array","filter"),Ah=st,Ph=Oh,Dh=Array.prototype,Mh=r((function(t){var e=t.filter;return t===Dh||Ah(Dh,t)&&e===Dh.filter?Ph:e})),Rh="\t\n\v\f\r \u2028\u2029\ufeff",Ih=q,jh=Vn,zh=Rh,Fh=y("".replace),Nh=RegExp("^["+zh+"]+"),Bh=RegExp("(^|[^"+zh+"])["+zh+"]+$"),Wh=function(t){return function(e){var r=jh(Ih(e));return 1&t&&(r=Fh(r,Nh,"")),2&t&&(r=Fh(r,Bh,"$1")),r}},Yh={start:Wh(1),end:Wh(2),trim:Wh(3)},Gh=i,Uh=o,Xh=Vn,Vh=Yh.trim,Zh=Rh,qh=y("".charAt),Hh=Gh.parseFloat,Kh=Gh.Symbol,Jh=Kh&&Kh.iterator,$h=1/Hh(Zh+"-0")!=-1/0||Jh&&!Uh((function(){Hh(Object(Jh))}))?function(t){var e=Vh(Xh(t)),r=Hh(e);return 0===r&&"-"===qh(e,0)?-0:r}:Hh;Cr({global:!0,forced:parseFloat!==$h},{parseFloat:$h});var Qh=r(et.parseFloat),tf=Ht,ef=Jn,rf=Fr,nf=function(t){for(var e=tf(this),r=rf(e),n=arguments.length,i=ef(n>1?arguments[1]:void 0,r),o=n>2?arguments[2]:void 0,a=void 0===o?r:ef(o,r);a>i;)e[i++]=t;return e};Cr({target:"Array",proto:!0},{fill:nf});var of=fh("Array","fill"),af=st,sf=of,uf=Array.prototype,cf=r((function(t){var e=t.fill;return t===uf||af(uf,t)&&e===uf.fill?sf:e})),lf=fh("Array","values"),hf=Qr,ff=$t,pf=st,df=lf,vf=Array.prototype,yf={DOMTokenList:!0,NodeList:!0},mf=r((function(t){var e=t.values;return t===vf||pf(vf,t)&&e===vf.values||ff(yf,hf(t))?df:e})),gf=Qo.forEach,bf=zl("forEach")?[].forEach:function(t){return gf(this,t,arguments.length>1?arguments[1]:void 0)};Cr({target:"Array",proto:!0,forced:[].forEach!==bf},{forEach:bf});var wf=fh("Array","forEach"),_f=Qr,xf=$t,Sf=st,Tf=wf,Ef=Array.prototype,kf={DOMTokenList:!0,NodeList:!0},Lf=function(t){var e=t.forEach;return t===Ef||Sf(Ef,t)&&e===Ef.forEach||xf(kf,_f(t))?Tf:e},Cf=r(Lf);Cr({target:"Array",stat:!0},{isArray:Ar});var Of=et.Array.isArray,Af=r(Of);Cr({target:"Number",stat:!0},{isNaN:function(t){return t!=t}});var Pf=r(et.Number.isNaN),Df=fh("Array","concat"),Mf=st,Rf=Df,If=Array.prototype,jf=r((function(t){var e=t.concat;return t===If||Mf(If,t)&&e===If.concat?Rf:e})),zf="function"==typeof Bun&&Bun&&"string"==typeof Bun.version,Ff=TypeError,Nf=function(t,e){if(t<e)throw new Ff("Not enough arguments");return t},Bf=i,Wf=h,Yf=L,Gf=zf,Uf=ut,Xf=Es,Vf=Nf,Zf=Bf.Function,qf=/MSIE .\./.test(Uf)||Gf&&function(){var t=Bf.Bun.version.split(".");return t.length<3||"0"===t[0]&&(t[1]<3||"3"===t[1]&&"0"===t[2])}(),Hf=function(t,e){var r=e?2:1;return qf?function(n,i){var o=Vf(arguments.length,1)>r,a=Yf(n)?n:Zf(n),s=o?Xf(arguments,r):[],u=o?function(){Wf(a,this,s)}:a;return e?t(u,i):t(u)}:t},Kf=Cr,Jf=i,$f=Hf(Jf.setInterval,!0);Kf({global:!0,bind:!0,forced:Jf.setInterval!==$f},{setInterval:$f});var Qf=Cr,tp=i,ep=Hf(tp.setTimeout,!0);Qf({global:!0,bind:!0,forced:tp.setTimeout!==ep},{setTimeout:ep});var rp=r(et.setTimeout),np=O,ip=y,op=D,ap=o,sp=pi,up=to,cp=M,lp=Ht,hp=U,fp=Object.assign,pp=Object.defineProperty,dp=ip([].concat),vp=!fp||ap((function(){if(np&&1!==fp({b:1},fp(pp({},"a",{enumerable:!0,get:function(){pp(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol("assign detection"),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach((function(t){e[t]=t})),7!==fp({},t)[r]||sp(fp({},e)).join("")!==n}))?function(t,e){for(var r=lp(t),n=arguments.length,i=1,o=up.f,a=cp.f;n>i;)for(var s,u=hp(arguments[i++]),c=o?dp(sp(u),o(u)):sp(u),l=c.length,h=0;l>h;)s=c[h++],np&&!op(a,u,s)||(r[s]=u[s]);return r}:fp,yp=vp;Cr({target:"Object",stat:!0,arity:2,forced:Object.assign!==yp},{assign:yp});var mp=r(et.Object.assign),gp={exports:{}};!function(t){function e(t){if(t)return function(t){return Object.assign(t,e.prototype),t._callbacks=new Map,t}(t);this._callbacks=new Map}e.prototype.on=function(t,e){const r=this._callbacks.get(t)??[];return r.push(e),this._callbacks.set(t,r),this},e.prototype.once=function(t,e){const r=(...n)=>{this.off(t,r),e.apply(this,n)};return r.fn=e,this.on(t,r),this},e.prototype.off=function(t,e){if(void 0===t&&void 0===e)return this._callbacks.clear(),this;if(void 0===e)return this._callbacks.delete(t),this;const r=this._callbacks.get(t);if(r){for(const[t,n]of r.entries())if(n===e||n.fn===e){r.splice(t,1);break}0===r.length?this._callbacks.delete(t):this._callbacks.set(t,r)}return this},e.prototype.emit=function(t,...e){const r=this._callbacks.get(t);if(r){const t=[...r];for(const r of t)r.apply(this,e)}return this},e.prototype.listeners=function(t){return this._callbacks.get(t)??[]},e.prototype.listenerCount=function(t){if(t)return this.listeners(t).length;let e=0;for(const t of this._callbacks.values())e+=t.length;return e},e.prototype.hasListeners=function(t){return this.listenerCount(t)>0},e.prototype.addEventListener=e.prototype.on,e.prototype.removeListener=e.prototype.off,e.prototype.removeEventListener=e.prototype.off,e.prototype.removeAllListeners=e.prototype.off,t.exports=e}(gp);var bp=r(gp.exports),wp=D,_p=rr,xp=Rt,Sp=function(t,e,r){var n,i;_p(t);try{if(!(n=xp(t,"return"))){if("throw"===e)throw r;return r}n=wp(n,t)}catch(t){i=!0,n=t}if("throw"===e)throw r;if(i)throw n;return _p(n),r},Tp=rr,Ep=Sp,kp=hu,Lp=fe("iterator"),Cp=Array.prototype,Op=function(t){return void 0!==t&&(kp.Array===t||Cp[Lp]===t)},Ap=Qr,Pp=Rt,Dp=X,Mp=hu,Rp=fe("iterator"),Ip=function(t){if(!Dp(t))return Pp(t,Rp)||Pp(t,"@@iterator")||Mp[Ap(t)]},jp=D,zp=Pt,Fp=rr,Np=Lt,Bp=Ip,Wp=TypeError,Yp=function(t,e){var r=arguments.length<2?Bp(t):e;if(zp(r))return Fp(jp(r,t));throw new Wp(Np(t)+" is not iterable")},Gp=Ke,Up=D,Xp=Ht,Vp=function(t,e,r,n){try{return n?e(Tp(r)[0],r[1]):e(r)}catch(e){Ep(t,"throw",e)}},Zp=Op,qp=gn,Hp=Fr,Kp=Ur,Jp=Yp,$p=Ip,Qp=Array,td=fe("iterator"),ed=!1;try{var rd=0,nd={next:function(){return{done:!!rd++}},return:function(){ed=!0}};nd[td]=function(){return this},Array.from(nd,(function(){throw 2}))}catch(t){}var id=function(t,e){try{if(!e&&!ed)return!1}catch(t){return!1}var r=!1;try{var n={};n[td]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(t){}return r},od=function(t){var e=Xp(t),r=qp(this),n=arguments.length,i=n>1?arguments[1]:void 0,o=void 0!==i;o&&(i=Gp(i,n>2?arguments[2]:void 0));var a,s,u,c,l,h,f=$p(e),p=0;if(!f||this===Qp&&Zp(f))for(a=Hp(e),s=r?new this(a):Qp(a);a>p;p++)h=o?i(e[p],p):e[p],Kp(s,p,h);else for(l=(c=Jp(e,f)).next,s=r?new this:[];!(u=Up(l,c)).done;p++)h=o?Vp(c,i,[u.value,p],!0):u.value,Kp(s,p,h);return s.length=p,s};Cr({target:"Array",stat:!0,forced:!id((function(t){Array.from(t)}))},{from:od});var ad=et.Array.from,sd=r(ad),ud=Ip,cd=r(ud),ld=r(ud);function hd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var fd={exports:{}},pd=Cr,dd=O,vd=Je.f;pd({target:"Object",stat:!0,forced:Object.defineProperty!==vd,sham:!dd},{defineProperty:vd});var yd=et.Object,md=fd.exports=function(t,e,r){return yd.defineProperty(t,e,r)};yd.defineProperty.sham&&(md.sham=!0);var gd=fd.exports,bd=gd,wd=r(bd),_d=r(oo.f("toPrimitive"));function xd(t){var e=function(t,e){if("object"!==kl(t)||null===t)return t;var r=t[_d];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==kl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===kl(e)?e:String(e)}function Sd(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),wd(t,xd(n.key),n)}}function Td(t,e,r){return e&&Sd(t.prototype,e),r&&Sd(t,r),wd(t,"prototype",{writable:!1}),t}var Ed=r(Of);var kd=O,Ld=Ar,Cd=TypeError,Od=Object.getOwnPropertyDescriptor,Ad=kd&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}()?function(t,e){if(Ld(t)&&!Od(t,"length").writable)throw new Cd("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e},Pd=Ht,Dd=Fr,Md=Ad,Rd=Br;Cr({target:"Array",proto:!0,arity:1,forced:o((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}()},{push:function(t){var e=Pd(this),r=Dd(e),n=arguments.length;Rd(r+n);for(var i=0;i<n;i++)e[r]=arguments[i],r++;return Md(e,r),r}});var Id=fh("Array","push"),jd=st,zd=Id,Fd=Array.prototype,Nd=function(t){var e=t.push;return t===Fd||jd(Fd,t)&&e===Fd.push?zd:e},Bd=r(Nd);var Wd=Cr,Yd=Ar,Gd=gn,Ud=tt,Xd=Jn,Vd=Fr,Zd=J,qd=Ur,Hd=fe,Kd=Es,Jd=On("slice"),$d=Hd("species"),Qd=Array,tv=Math.max;Wd({target:"Array",proto:!0,forced:!Jd},{slice:function(t,e){var r,n,i,o=Zd(this),a=Vd(o),s=Xd(t,a),u=Xd(void 0===e?a:e,a);if(Yd(o)&&(r=o.constructor,(Gd(r)&&(r===Qd||Yd(r.prototype))||Ud(r)&&null===(r=r[$d]))&&(r=void 0),r===Qd||void 0===r))return Kd(o,s,u);for(n=new(void 0===r?Qd:r)(tv(u-s,0)),i=0;s<u;s++,i++)s in o&&qd(n,i,o[s]);return n.length=i,n}});var ev=fh("Array","slice"),rv=st,nv=ev,iv=Array.prototype,ov=function(t){var e=t.slice;return t===iv||rv(iv,t)&&e===iv.slice?nv:e},av=ov,sv=r(av),uv=r(ad);function cv(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function lv(t,e){var r;if(t){if("string"==typeof t)return cv(t,e);var n=sv(r=Object.prototype.toString.call(t)).call(r,8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?uv(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?cv(t,e):void 0}}function hv(t,e){return function(t){if(Ed(t))return t}(t)||function(t,e){var r=null==t?null:void 0!==al&&cd(t)||t["@@iterator"];if(null!=r){var n,i,o,a,s=[],u=!0,c=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(Bd(s).call(s,n.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||lv(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fv(t){return function(t){if(Ed(t))return cv(t)}(t)||function(t){if(void 0!==al&&null!=cd(t)||null!=t["@@iterator"])return uv(t)}(t)||lv(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var pv=r(Mc),dv=r(ov),vv=at,yv=Ni,mv=to,gv=rr,bv=y([].concat),wv=vv("Reflect","ownKeys")||function(t){var e=yv.f(gv(t)),r=mv.f;return r?bv(e,r(t)):e};Cr({target:"Reflect",stat:!0},{ownKeys:wv});var _v=r(et.Reflect.ownKeys),xv=Qo.map;Cr({target:"Array",proto:!0,forced:!On("map")},{map:function(t){return xv(this,t,arguments.length>1?arguments[1]:void 0)}});var Sv=fh("Array","map"),Tv=st,Ev=Sv,kv=Array.prototype,Lv=r((function(t){var e=t.map;return t===kv||Tv(kv,t)&&e===kv.map?Ev:e})),Cv=Ht,Ov=pi;Cr({target:"Object",stat:!0,forced:o((function(){Ov(1)}))},{keys:function(t){return Ov(Cv(t))}});var Av=r(et.Object.keys),Pv=y,Dv=Pt,Mv=tt,Rv=$t,Iv=Es,jv=a,zv=Function,Fv=Pv([].concat),Nv=Pv([].join),Bv={},Wv=jv?zv.bind:function(t){var e=Dv(this),r=e.prototype,n=Iv(arguments,1),i=function(){var r=Fv(n,Iv(arguments));return this instanceof i?function(t,e,r){if(!Rv(Bv,e)){for(var n=[],i=0;i<e;i++)n[i]="a["+i+"]";Bv[e]=zv("C,a","return new C("+Nv(n,",")+")")}return Bv[e](t,r)}(e,r.length,r):e.apply(t,r)};return Mv(r)&&(i.prototype=r),i},Yv=Wv;Cr({target:"Function",proto:!0,forced:Function.bind!==Yv},{bind:Yv});var Gv=fh("Function","bind"),Uv=st,Xv=Gv,Vv=Function.prototype,Zv=function(t){var e=t.bind;return t===Vv||Uv(Vv,t)&&e===Vv.bind?Xv:e},qv=r(Zv),Hv=Cr,Kv=Ar,Jv=y([].reverse),$v=[1,2];Hv({target:"Array",proto:!0,forced:String($v)===String($v.reverse())},{reverse:function(){return Kv(this)&&(this.length=this.length),Jv(this)}});var Qv=fh("Array","reverse"),ty=st,ey=Qv,ry=Array.prototype,ny=function(t){var e=t.reverse;return t===ry||ty(ry,t)&&e===ry.reverse?ey:e},iy=r(ny),oy=Cr,ay=Ht,sy=Jn,uy=Rr,cy=Fr,ly=Ad,hy=Br,fy=En,py=Ur,dy=Ol,vy=On("splice"),yy=Math.max,my=Math.min;oy({target:"Array",proto:!0,forced:!vy},{splice:function(t,e){var r,n,i,o,a,s,u=ay(this),c=cy(u),l=sy(t,c),h=arguments.length;for(0===h?r=n=0:1===h?(r=0,n=c-l):(r=h-2,n=my(yy(uy(e),0),c-l)),hy(c+r-n),i=fy(u,n),o=0;o<n;o++)(a=l+o)in u&&py(i,o,u[a]);if(i.length=n,r<n){for(o=l;o<c-n;o++)s=o+r,(a=o+n)in u?u[s]=u[a]:dy(u,s);for(o=c;o>c-n+r;o--)dy(u,o-1)}else if(r>n)for(o=c-n;o>l;o--)s=o+r-1,(a=o+n-1)in u?u[s]=u[a]:dy(u,s);for(o=0;o<r;o++)u[o+l]=arguments[o+2];return ly(u,c-n+r),i}});var gy=fh("Array","splice"),by=st,wy=gy,_y=Array.prototype,xy=r((function(t){var e=t.splice;return t===_y||by(_y,t)&&e===_y.splice?wy:e})),Sy=Ht,Ty=ku,Ey=gu;Cr({target:"Object",stat:!0,forced:o((function(){Ty(1)})),sham:!Ey},{getPrototypeOf:function(t){return Ty(Sy(t))}});var ky=et.Object.getPrototypeOf,Ly=r(ky),Cy=i,Oy=o,Ay=y,Py=Vn,Dy=Yh.trim,My=Rh,Ry=Cy.parseInt,Iy=Cy.Symbol,jy=Iy&&Iy.iterator,zy=/^[+-]?0x/i,Fy=Ay(zy.exec),Ny=8!==Ry(My+"08")||22!==Ry(My+"0x16")||jy&&!Oy((function(){Ry(Object(jy))}))?function(t,e){var r=Dy(Py(t));return Ry(r,e>>>0||(Fy(zy,r)?16:10))}:Ry;Cr({global:!0,forced:parseInt!==Ny},{parseInt:Ny});var By=r(et.parseInt);Cr({target:"Object",stat:!0,sham:!O},{create:Fi});var Wy=et.Object,Yy=function(t,e){return Wy.create(t,e)},Gy=r(Yy),Uy=et,Xy=h;Uy.JSON||(Uy.JSON={stringify:JSON.stringify});var Vy,Zy=function(t,e,r){return Xy(Uy.JSON.stringify,null,arguments)},qy=r(Zy);
/*! Hammer.JS - v2.0.17-rc - 2019-12-16
* http://naver.github.io/egjs
*
* Forked By Naver egjs
* Copyright (c) hammerjs
* Licensed under the MIT license */
function Hy(){return Hy=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Hy.apply(this,arguments)}function Ky(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function Jy(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}Vy="function"!=typeof Object.assign?function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),r=1;r<arguments.length;r++){var n=arguments[r];if(null!=n)for(var i in n)n.hasOwnProperty(i)&&(e[i]=n[i])}return e}:Object.assign;var $y,Qy=Vy,tm=["","webkit","Moz","MS","ms","o"],em="undefined"==typeof document?{style:{}}:document.createElement("div"),rm=Math.round,nm=Math.abs,im=Date.now;function om(t,e){for(var r,n,i=e[0].toUpperCase()+e.slice(1),o=0;o<tm.length;){if((n=(r=tm[o])?r+i:e)in t)return n;o++}}$y="undefined"==typeof window?{}:window;var am=om(em.style,"touchAction"),sm=void 0!==am;var um="compute",cm="auto",lm="manipulation",hm="none",fm="pan-x",pm="pan-y",dm=function(){if(!sm)return!1;var t={},e=$y.CSS&&$y.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(r){return t[r]=!e||$y.CSS.supports("touch-action",r)})),t}(),vm="ontouchstart"in $y,ym=void 0!==om($y,"PointerEvent"),mm=vm&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),gm="touch",bm="mouse",wm=25,_m=1,xm=4,Sm=8,Tm=1,Em=2,km=4,Lm=8,Cm=16,Om=Em|km,Am=Lm|Cm,Pm=Om|Am,Dm=["x","y"],Mm=["clientX","clientY"];function Rm(t,e,r){var n;if(t)if(t.forEach)t.forEach(e,r);else if(void 0!==t.length)for(n=0;n<t.length;)e.call(r,t[n],n,t),n++;else for(n in t)t.hasOwnProperty(n)&&e.call(r,t[n],n,t)}function Im(t,e){return"function"==typeof t?t.apply(e&&e[0]||void 0,e):t}function jm(t,e){return t.indexOf(e)>-1}var zm=function(){function t(t,e){this.manager=t,this.set(e)}var e=t.prototype;return e.set=function(t){t===um&&(t=this.compute()),sm&&this.manager.element.style&&dm[t]&&(this.manager.element.style[am]=t),this.actions=t.toLowerCase().trim()},e.update=function(){this.set(this.manager.options.touchAction)},e.compute=function(){var t=[];return Rm(this.manager.recognizers,(function(e){Im(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),function(t){if(jm(t,hm))return hm;var e=jm(t,fm),r=jm(t,pm);return e&&r?hm:e||r?e?fm:pm:jm(t,lm)?lm:cm}(t.join(" "))},e.preventDefaults=function(t){var e=t.srcEvent,r=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var n=this.actions,i=jm(n,hm)&&!dm[hm],o=jm(n,pm)&&!dm[pm],a=jm(n,fm)&&!dm[fm];if(i){var s=1===t.pointers.length,u=t.distance<2,c=t.deltaTime<250;if(s&&u&&c)return}if(!a||!o)return i||o&&r&Om||a&&r&Am?this.preventSrc(e):void 0}},e.preventSrc=function(t){this.manager.session.prevented=!0,t.preventDefault()},t}();function Fm(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1}function Nm(t){var e=t.length;if(1===e)return{x:rm(t[0].clientX),y:rm(t[0].clientY)};for(var r=0,n=0,i=0;i<e;)r+=t[i].clientX,n+=t[i].clientY,i++;return{x:rm(r/e),y:rm(n/e)}}function Bm(t){for(var e=[],r=0;r<t.pointers.length;)e[r]={clientX:rm(t.pointers[r].clientX),clientY:rm(t.pointers[r].clientY)},r++;return{timeStamp:im(),pointers:e,center:Nm(e),deltaX:t.deltaX,deltaY:t.deltaY}}function Wm(t,e,r){r||(r=Dm);var n=e[r[0]]-t[r[0]],i=e[r[1]]-t[r[1]];return Math.sqrt(n*n+i*i)}function Ym(t,e,r){r||(r=Dm);var n=e[r[0]]-t[r[0]],i=e[r[1]]-t[r[1]];return 180*Math.atan2(i,n)/Math.PI}function Gm(t,e){return t===e?Tm:nm(t)>=nm(e)?t<0?Em:km:e<0?Lm:Cm}function Um(t,e,r){return{x:e/t||0,y:r/t||0}}function Xm(t,e){var r=t.session,n=e.pointers,i=n.length;r.firstInput||(r.firstInput=Bm(e)),i>1&&!r.firstMultiple?r.firstMultiple=Bm(e):1===i&&(r.firstMultiple=!1);var o=r.firstInput,a=r.firstMultiple,s=a?a.center:o.center,u=e.center=Nm(n);e.timeStamp=im(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=Ym(s,u),e.distance=Wm(s,u),function(t,e){var r=e.center,n=t.offsetDelta||{},i=t.prevDelta||{},o=t.prevInput||{};e.eventType!==_m&&o.eventType!==xm||(i=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},n=t.offsetDelta={x:r.x,y:r.y}),e.deltaX=i.x+(r.x-n.x),e.deltaY=i.y+(r.y-n.y)}(r,e),e.offsetDirection=Gm(e.deltaX,e.deltaY);var c,l,h=Um(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=h.x,e.overallVelocityY=h.y,e.overallVelocity=nm(h.x)>nm(h.y)?h.x:h.y,e.scale=a?(c=a.pointers,Wm((l=n)[0],l[1],Mm)/Wm(c[0],c[1],Mm)):1,e.rotation=a?function(t,e){return Ym(e[1],e[0],Mm)+Ym(t[1],t[0],Mm)}(a.pointers,n):0,e.maxPointers=r.prevInput?e.pointers.length>r.prevInput.maxPointers?e.pointers.length:r.prevInput.maxPointers:e.pointers.length,function(t,e){var r,n,i,o,a=t.lastInterval||e,s=e.timeStamp-a.timeStamp;if(e.eventType!==Sm&&(s>wm||void 0===a.velocity)){var u=e.deltaX-a.deltaX,c=e.deltaY-a.deltaY,l=Um(s,u,c);n=l.x,i=l.y,r=nm(l.x)>nm(l.y)?l.x:l.y,o=Gm(u,c),t.lastInterval=e}else r=a.velocity,n=a.velocityX,i=a.velocityY,o=a.direction;e.velocity=r,e.velocityX=n,e.velocityY=i,e.direction=o}(r,e);var f,p=t.element,d=e.srcEvent;Fm(f=d.composedPath?d.composedPath()[0]:d.path?d.path[0]:d.target,p)&&(p=f),e.target=p}function Vm(t,e,r){var n=r.pointers.length,i=r.changedPointers.length,o=e&_m&&n-i==0,a=e&(xm|Sm)&&n-i==0;r.isFirst=!!o,r.isFinal=!!a,o&&(t.session={}),r.eventType=e,Xm(t,r),t.emit("hammer.input",r),t.recognize(r),t.session.prevInput=r}function Zm(t){return t.trim().split(/\s+/g)}function qm(t,e,r){Rm(Zm(e),(function(e){t.addEventListener(e,r,!1)}))}function Hm(t,e,r){Rm(Zm(e),(function(e){t.removeEventListener(e,r,!1)}))}function Km(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||window}var Jm=function(){function t(t,e){var r=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){Im(t.options.enable,[t])&&r.handler(e)},this.init()}var e=t.prototype;return e.handler=function(){},e.init=function(){this.evEl&&qm(this.element,this.evEl,this.domHandler),this.evTarget&&qm(this.target,this.evTarget,this.domHandler),this.evWin&&qm(Km(this.element),this.evWin,this.domHandler)},e.destroy=function(){this.evEl&&Hm(this.element,this.evEl,this.domHandler),this.evTarget&&Hm(this.target,this.evTarget,this.domHandler),this.evWin&&Hm(Km(this.element),this.evWin,this.domHandler)},t}();function $m(t,e,r){if(t.indexOf&&!r)return t.indexOf(e);for(var n=0;n<t.length;){if(r&&t[n][r]==e||!r&&t[n]===e)return n;n++}return-1}var Qm={pointerdown:_m,pointermove:2,pointerup:xm,pointercancel:Sm,pointerout:Sm},tg={2:gm,3:"pen",4:bm,5:"kinect"},eg="pointerdown",rg="pointermove pointerup pointercancel";$y.MSPointerEvent&&!$y.PointerEvent&&(eg="MSPointerDown",rg="MSPointerMove MSPointerUp MSPointerCancel");var ng=function(t){function e(){var r,n=e.prototype;return n.evEl=eg,n.evWin=rg,(r=t.apply(this,arguments)||this).store=r.manager.session.pointerEvents=[],r}return Ky(e,t),e.prototype.handler=function(t){var e=this.store,r=!1,n=t.type.toLowerCase().replace("ms",""),i=Qm[n],o=tg[t.pointerType]||t.pointerType,a=o===gm,s=$m(e,t.pointerId,"pointerId");i&_m&&(0===t.button||a)?s<0&&(e.push(t),s=e.length-1):i&(xm|Sm)&&(r=!0),s<0||(e[s]=t,this.callback(this.manager,i,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),r&&e.splice(s,1))},e}(Jm);function ig(t){return Array.prototype.slice.call(t,0)}function og(t,e,r){for(var n=[],i=[],o=0;o<t.length;){var a=e?t[o][e]:t[o];$m(i,a)<0&&n.push(t[o]),i[o]=a,o++}return r&&(n=e?n.sort((function(t,r){return t[e]>r[e]})):n.sort()),n}var ag={touchstart:_m,touchmove:2,touchend:xm,touchcancel:Sm},sg=function(t){function e(){var r;return e.prototype.evTarget="touchstart touchmove touchend touchcancel",(r=t.apply(this,arguments)||this).targetIds={},r}return Ky(e,t),e.prototype.handler=function(t){var e=ag[t.type],r=ug.call(this,t,e);r&&this.callback(this.manager,e,{pointers:r[0],changedPointers:r[1],pointerType:gm,srcEvent:t})},e}(Jm);function ug(t,e){var r,n,i=ig(t.touches),o=this.targetIds;if(e&(2|_m)&&1===i.length)return o[i[0].identifier]=!0,[i,i];var a=ig(t.changedTouches),s=[],u=this.target;if(n=i.filter((function(t){return Fm(t.target,u)})),e===_m)for(r=0;r<n.length;)o[n[r].identifier]=!0,r++;for(r=0;r<a.length;)o[a[r].identifier]&&s.push(a[r]),e&(xm|Sm)&&delete o[a[r].identifier],r++;return s.length?[og(n.concat(s),"identifier",!0),s]:void 0}var cg={mousedown:_m,mousemove:2,mouseup:xm},lg=function(t){function e(){var r,n=e.prototype;return n.evEl="mousedown",n.evWin="mousemove mouseup",(r=t.apply(this,arguments)||this).pressed=!1,r}return Ky(e,t),e.protot