8 lines
123 KiB
JavaScript
8 lines
123 KiB
JavaScript
((t,e)=>{"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):(t="undefined"!=typeof globalThis?globalThis:t||self,e(t.vis=t.vis||{}))})(this,function(M){function N(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function F(t){return t&&t.Math==Math&&t}function r(t){try{return!!t()}catch(t){return!0}}function z(t){return nt(rt(t),8,-1)}function U(t){if("Function"===ot(t))return it(t)}function q(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}function Y(t){return null==t}function W(t){if(gt(t))throw mt("Can't call method on "+t);return t}function G(t){return bt(xt(t))}function X(t){return Ot(t)?t:void 0}function V(t,e){return arguments.length<2?X(Et[t])||X(Tt[t]):Et[t]&&Et[t][e]||Tt[t]&&Tt[t][e]}var B={},H={get exports(){return B},set exports(t){B=t}},$={},n={get exports(){return $},set exports(t){$=t}},J={},K={get exports(){return J},set exports(t){J=t}},t=F("object"==typeof globalThis&&globalThis)||F("object"==typeof window&&window)||F("object"==typeof self&&self)||F("object"==typeof t&&t)||function(){return this}()||Function("return this")(),o=r,o=!o(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}),i=o,Q=Function.prototype,Z=Q.apply,tt=Q.call,Q="object"==typeof Reflect&&Reflect.apply||(i?tt.bind(Z):function(){return tt.apply(Z,arguments)}),i=o,a=Function.prototype,et=a.call,a=i&&a.bind.bind(et,et),i=i?a:function(t){return function(){return et.apply(t,arguments)}},a=i,rt=a({}.toString),nt=a("".slice),ot=z,it=i,a="object"==typeof document&&document.all,s=void 0===a&&void 0!==a,a={all:a,IS_HTMLDDA:s},s=a,at=s.all,s=s.IS_HTMLDDA?function(t){return"function"==typeof t||t===at}:function(t){return"function"==typeof t},st={},ut=r,ut=!ut(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),ct=o,ft=Function.prototype.call,ct=ct?ft.bind(ft):function(){return ft.apply(ft,arguments)},lt={},u={}.propertyIsEnumerable,pt=Object.getOwnPropertyDescriptor,ht=pt&&!u.call({1:2},1),ht=(lt.f=ht?function(t){var e=pt(this,t);return!!e&&e.enumerable}:u,i),u=r,dt=z,vt=Object,yt=ht("".split),ht=u(function(){return!vt("z").propertyIsEnumerable(0)})?function(t){return"String"==dt(t)?yt(t,""):vt(t)}:vt,gt=Y,mt=TypeError,bt=ht,xt=W,_t=s,u=a,wt=u.all,a=u.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:_t(t)||t===wt}:function(t){return"object"==typeof t?null!==t:_t(t)},u={},Et=u,Tt=t,Ot=s,c=i,c=c({}.isPrototypeOf),St="undefined"!=typeof navigator&&String(navigator.userAgent)||"",f=t,l=St,kt=f.process,f=f.Deno,kt=kt&&kt.versions||f&&f.version,f=kt&&kt.v8;if(f){d=f.split(".");Ut=0<d[0]&&d[0]<4?1:+(d[0]+d[1])}if(!Ut&&l){d=l.match(/Edge\/(\d+)/);if(!d||74<=d[1]){d=l.match(/Chrome\/(\d+)/);d&&(Ut=+d[1])}}function jt(t){try{return Xt(t)}catch(t){return"Object"}}function At(t){if(Vt(t))return t;throw Ht(Bt(t)+" is not a function")}function Pt(t,e){var r=t[e];return Jt(r)?void 0:$t(r)}function It(t){return ue(se(t))}function Dt(t){return"Symbol("+(void 0===t?"":t)+")_"+he(++le+pe,36)}function p(t){de(me,t)||(me[t]=ye&&de(ge,t)?ge[t]:be("Symbol."+t));return me[t]}function Lt(t){var e=ke(t,"string");return je(e)?e:e+""}function Ct(t){return Pe?Ae.createElement(t):{}}function Rt(t,e){var r=Ge[We(t)];return r==Ve||r!=Xe&&(qe(e)?Ue(e):!!e)}function Mt(t,e){Be(t);return void 0===e?t:He?$e(t,e):function(){return t.apply(e,arguments)}}function Nt(t){if(Je(t))return t;throw Qe(Ke(t)+" is not an object")}function Ft(n){function o(t,e,r){if(this instanceof o){switch(arguments.length){case 0:return new n;case 1:return new n(t);case 2:return new n(t,e)}return new n(t,e,r)}return lr(n,this,arguments)}o.prototype=n.prototype;return o}function h(t,e){var r,n,o,i,a,s,u=t.target,c=t.global,f=t.stat,l=t.proto,p=c?fr:f?fr[u]:(fr[u]||{}).prototype,h=c?yr:yr[u]||mr(yr,u,{})[u],d=h.prototype;for(n in e){r=vr(c?n:u+(f?".":"#")+n,t.forced);a=!r&&p&&br(p,n);i=h[n];if(a)if(t.dontCallGetSet){s=dr(p,n);s=s&&s.value}else s=p[n];o=a&&s?s:e[n];if(!a||typeof i!=typeof o){a=t.bind&&a?gr(o,fr):t.wrap&&a?Ft(o):l&&hr(o)?pr(o):o;(t.sham||o&&o.sham||i&&i.sham)&&mr(a,"sham",!0);mr(h,n,a);if(l){i=u+"Prototype";br(yr,i)||mr(yr,i,{});mr(yr[i],n,o);t.real&&d&&(r||!d[n])&&mr(d,n,o)}}}}var kt=Ut,zt=kt,f=r,l=!!Object.getOwnPropertySymbols&&!f(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&zt&&zt<41}),d=l,Ut=d&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,qt=V,Yt=s,Wt=c,f=Ut,Gt=Object,d=f?function(t){return"symbol"==typeof t}:function(t){var e=qt("Symbol");return Yt(e)&&Wt(e.prototype,Gt(t))},Xt=String,Vt=s,Bt=jt,Ht=TypeError,$t=At,Jt=Y,Kt=ct,Qt=s,Zt=a,te=TypeError,ee={},f={get exports(){return ee},set exports(t){ee=t}},re=t,ne=Object.defineProperty,oe=t,v=function(e,r){try{ne(re,e,{value:r,configurable:!0,writable:!0})}catch(t){re[e]=r}return r},ie="__core-js_shared__",oe=oe[ie]||v(ie,{}),v=oe,ae=v,se=((f.exports=function(t,e){return ae[t]||(ae[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.29.0",mode:"pure",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.29.0/LICENSE",source:"https://github.com/zloirock/core-js"}),W),ue=Object,ie=i,ce=It,fe=ie({}.hasOwnProperty),oe=Object.hasOwn||function(t,e){return fe(ce(t),e)},f=i,le=0,pe=Math.random(),he=f(1..toString),ie=t,f=ee,de=oe,ve=Dt,ye=l,ge=ie.Symbol,me=f("wks"),be=Ut?ge.for||ge:ge&&ge.withoutSetter||ve,xe=ct,_e=a,we=d,Ee=Pt,Te=function(t,e){var r,n;if("string"===e&&Qt(r=t.toString)&&!Zt(n=Kt(r,t)))return n;if(Qt(r=t.valueOf)&&!Zt(n=Kt(r,t)))return n;if("string"!==e&&Qt(r=t.toString)&&!Zt(n=Kt(r,t)))return n;throw te("Can't convert object to primitive value")},ie=p,Oe=TypeError,Se=ie("toPrimitive"),ke=function(t,e){if(!_e(t)||we(t))return t;var r=Ee(t,Se);if(r){void 0===e&&(e="default");r=xe(r,t,e);if(!_e(r)||we(r))return r;throw Oe("Can't convert object to primitive value")}void 0===e&&(e="number");return Te(t,e)},je=d,f=t,Ut=a,Ae=f.document,Pe=Ut(Ae)&&Ut(Ae.createElement),ve=ut,ie=r,Ie=Ct,f=!ve&&!ie(function(){return 7!=Object.defineProperty(Ie("div"),"a",{get:function(){return 7}}).a}),Ut=ut,De=ct,Le=lt,Ce=q,Re=G,Me=Lt,Ne=oe,Fe=f,ze=Object.getOwnPropertyDescriptor,Ue=(st.f=Ut?ze:function(t,e){t=Re(t);e=Me(e);if(Fe)try{return ze(t,e)}catch(t){}if(Ne(t,e))return Ce(!De(Le.f,t,e),t[e])},r),qe=s,Ye=/#|\.prototype\./,We=Rt.normalize=function(t){return String(t).replace(Ye,".").toLowerCase()},Ge=Rt.data={},Xe=Rt.NATIVE="N",Ve=Rt.POLYFILL="P",ve=Rt,ie=U,Be=At,He=o,$e=ie(ie.bind),Ut={},ie=ut,y=r,ie=ie&&y(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),Je=a,Ke=String,Qe=TypeError,y=ut,Ze=f,f=ie,tr=Nt,er=Lt,rr=TypeError,nr=Object.defineProperty,or=Object.getOwnPropertyDescriptor,ir="enumerable",ar="configurable",sr="writable",y=(Ut.f=y?f?function(t,e,r){tr(t);e=er(e);tr(r);if("function"==typeof t&&"prototype"===e&&"value"in r&&sr in r&&!r[sr]){var n=or(t,e);if(n&&n[sr]){t[e]=r.value;r={configurable:(ar in r?r:n)[ar],enumerable:(ir in r?r:n)[ir],writable:!1}}}return nr(t,e,r)}:nr:function(t,e,r){tr(t);e=er(e);tr(r);if(Ze)try{return nr(t,e,r)}catch(t){}if("get"in r||"set"in r)throw rr("Accessors not supported");"value"in r&&(t[e]=r.value);return t},ut),ur=Ut,cr=q,f=y?function(t,e,r){return ur.f(t,e,cr(1,r))}:function(t,e,r){t[e]=r;return t},fr=t,lr=Q,pr=U,hr=s,dr=st.f,vr=ve,yr=u,gr=Mt,mr=f,br=oe,y=h,g=ut,m=Ut.f,y=(y({target:"Object",stat:!0,forced:Object.defineProperty!==m,sham:!g},{defineProperty:m}),u),xr=y.Object,g=K.exports=function(t,e,r){return xr.defineProperty(t,e,r)},m=(xr.defineProperty.sham&&(g.sham=!0),J),y=m,K=y,g=K,m=g,K=m;R=n,R.exports=K;R=H,R.exports=$;function _r(t){var e=+t;return e!=e||0==e?0:Zr(e)}function wr(t){return rn(t.length)}function Er(t){if(9007199254740991<t)throw nn("Maximum allowed index exceeded");return t}function Tr(t,e,r){var n=on(e);n in t?an.f(t,n,sn(0,r)):t[n]=r}function Or(){}function Sr(t){if(!vn(t))return!1;try{xn(Or,bn,t);return!0}catch(t){return!1}}function kr(t){if(!vn(t))return!1;switch(yn(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return En||!!wn(_n,mn(t))}catch(t){return!0}}function jr(t,e){return new(An(t))(0===e?0:e)}function Ar(r){return 51<=In||!Pn(function(){var t=[],e=t.constructor={};e[Dn]=function(){return{foo:1}};return 1!==t[r](Boolean).foo})}function Pr(t){if("Symbol"===Gn(t))throw TypeError("Cannot convert a Symbol value to a string");return Xn(t)}function Ir(t,e){var r=Vn(t);return r<0?Bn(r+e,0):Hn(r,e)}function Dr(s){return function(t,e,r){var n,o=$n(t),i=Kn(o),a=Jn(r,i);if(s&&e!=e)for(;a<i;){n=o[a++];if(n!=n)return!0}else for(;a<i;a++)if((s||a in o)&&o[a]===e)return s||a||0;return!s&&-1}}function Lr(t,e){var r,n=Zn(t),o=0,i=[];for(r in n)!Qn(eo,r)&&Qn(n,r)&&ro(i,r);for(;e.length>o;)!Qn(n,r=e[o++])||~to(i,r)||ro(i,r);return i}function Cr(t){return lo[t]||(lo[t]=fo(t))}function Rr(){}function Mr(t){t.write(To(""));t.close();var e=t.parentWindow.Object;t=null;return e}function Nr(t,e,r){for(var n=Ao(t),o=jo(e,n),i=jo(void 0===r?n:r,n),a=Io(Do(i-o,0)),s=0;o<i;o++,s++)Po(a,s,t[o]);a.length=s;return a}function Fr(t,e,r,n){n&&n.enumerable?t[e]=r:zo(t,e,r);return t}function zr(t,e,r){return Uo.f(t,e,r)}function Ur(t){var e=Yo.Symbol||(Yo.Symbol={});Wo(e,t)||Xo(e,t,{value:Go.f(t)})}function qr(){var t=Bo("Symbol"),t=t&&t.prototype,e=t&&t.valueOf,r=Ho("toPrimitive");t&&!t[r]&&$o(t,r,function(t){return Vo(e,this)},{arity:1})}function Yr(t,e,r,n){if(t){var o=r?t:t.prototype;ti(o,ri)||Qo(o,ri,{configurable:!0,value:e});n&&!Ko&&Zo(o,"toString",ei)}}var Wr,Gr,Xr,Vr,Br=e(B),Hr={},g={get exports(){return Hr},set exports(t){Hr=t}},$r={},m={get exports(){return $r},set exports(t){$r=t}},Jr=z,n=Array.isArray||function(t){return"Array"==Jr(t)},Kr=Math.ceil,Qr=Math.floor,K=Math.trunc||function(t){var e=+t;return(0<e?Qr:Kr)(e)},Zr=K,tn=_r,en=Math.min,rn=function(t){return 0<t?en(tn(t),9007199254740991):0},nn=TypeError,on=Lt,an=Ut,sn=q,H=p,K=H("toStringTag"),H={},K=(H[K]="z","[object z]"===String(H)),H=K,un=s,cn=z,fn=p,ln=fn("toStringTag"),pn=Object,hn="Arguments"==cn(function(){return arguments}()),fn=H?cn:function(t){var e,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=((t,e)=>{try{return t[e]}catch(t){}})(e=pn(t),ln))?r:hn?cn(e):"Object"==(r=cn(e))&&un(e.callee)?"Arguments":r},H=i,b=s,x=v,dn=H(Function.toString),H=(b(x.inspectSource)||(x.inspectSource=function(t){return dn(t)}),x.inspectSource),b=i,x=r,vn=s,yn=fn,gn=V,mn=H,bn=[],xn=gn("Reflect","construct"),_n=/^\s*(?:class|function)\b/,wn=b(_n.exec),En=!_n.exec(Or),gn=(kr.sham=!0,!xn||x(function(){var t;return Sr(Sr.call)||!Sr(Object)||!Sr(function(){t=!0})||t})?kr:Sr),Tn=n,On=gn,Sn=a,b=p,kn=b("species"),jn=Array,An=function(t){var e;if(Tn(t)){e=t.constructor;if(On(e)&&(e===jn||Tn(e.prototype)))e=void 0;else if(Sn(e)){e=e[kn];null===e&&(e=void 0)}}return void 0===e?jn:e},Pn=r,x=p,In=kt,Dn=x("species"),b=h,x=r,Ln=n,Cn=a,Rn=It,Mn=wr,Nn=Er,Fn=Tr,zn=jr,Un=Ar,qn=p,Yn=kt,Wn=qn("isConcatSpreadable"),qn=51<=Yn||!x(function(){var t=[];t[Wn]=!1;return t.concat()[0]!==t}),Yn=!qn||!Un("concat"),Gn=(b({target:"Array",proto:!0,arity:1,forced:Yn},{concat:function(t){for(var e,r,n,o,i,a=Rn(this),s=zn(a,0),u=0,c=-1,f=arguments.length;c<f;c++){n=-1===c?a:arguments[c];if(o=n,i=void 0,!Cn(o)||(i=o[Wn],void 0!==i?!i:!Ln(o))){Nn(u+1);Fn(s,u++,n)}else{r=Mn(n);Nn(u+r);for(e=0;e<r;e++,u++)e in n&&Fn(s,u,n[e])}}s.length=u;return s}}),fn),Xn=String,x={},Vn=_r,Bn=Math.max,Hn=Math.min,$n=G,Jn=Ir,Kn=wr,qn={includes:Dr(!0),indexOf:Dr(!1)},Un={},b=i,Qn=oe,Zn=G,to=qn.indexOf,eo=Un,ro=b([].push),Yn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],no=Lr,oo=Yn,b=Object.keys||function(t){return no(t,oo)},io=ut,ao=Ut,so=Nt,uo=G,co=b,io=(x.f=io&&!ie?Object.defineProperties:function(t,e){so(t);for(var r,n=uo(e),o=co(e),i=o.length,a=0;a<i;)ao.f(t,r=o[a++],n[r]);return t},V),ie=io("document","documentElement"),io=ee,fo=Dt,lo=io("keys"),po=Nt,ho=x,vo=Yn,io=Un,yo=ie,go=Ct,mo=Cr,bo=">",xo="<",_o="prototype",wo="script",Eo=mo("IE_PROTO"),To=function(t){return xo+wo+bo+t+xo+"/"+wo+bo},Oo=function(){try{Wr=new ActiveXObject("htmlfile")}catch(t){}Oo="undefined"==typeof document||document.domain&&Wr?Mr(Wr):(()=>{var t=go("iframe"),e="java"+wo+":";t.style.display="none";yo.appendChild(t);t.src=String(e);e=t.contentWindow.document;e.open();e.write(To("document.F=Object"));e.close();return e.F})();for(var t=vo.length;t--;)delete Oo[_o][vo[t]];return Oo()},mo=(io[Eo]=!0,Object.create||function(t,e){var r;if(null!==t){Rr[_o]=po(t);r=new Rr;Rr[_o]=null;r[Eo]=t}else r=Oo();return void 0===e?r:ho.f(r,e)}),io={},So=Lr,ko=Yn.concat("length","prototype"),Yn=(io.f=Object.getOwnPropertyNames||function(t){return So(t,ko)},{}),jo=Ir,Ao=wr,Po=Tr,Io=Array,Do=Math.max,Lo=z,Co=G,Ro=io.f,Mo=Nr,No="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Fo=(Yn.f=function(t){if(!No||"Window"!=Lo(t))return Ro(Co(t));try{return Ro(t)}catch(t){return Mo(No)}},{}),zo=(Fo.f=Object.getOwnPropertySymbols,f),Uo=Ut,_={},qo=p,Yo=(_.f=qo,u),Wo=oe,Go=_,Xo=Ut.f,Vo=ct,Bo=V,Ho=p,$o=Fr,qo=K,Jo=fn,qo=qo?{}.toString:function(){return"[object "+Jo(this)+"]"},Ko=K,Qo=Ut.f,Zo=f,ti=oe,ei=qo,K=p,ri=K("toStringTag"),qo=t,K=s,qo=qo.WeakMap,K=K(qo)&&/native code/.test(String(qo)),qo=K,K=t,ni=a,oi=f,ii=oe,w=Cr,E=Un,ai="Object already initialized",si=K.TypeError,K=K.WeakMap;if(qo||v.state){var ui=v.state||(v.state=new K);ui.get=ui.get;ui.has=ui.has;ui.set=ui.set;Gr=function(t,e){if(ui.has(t))throw si(ai);e.facade=t;ui.set(t,e);return e};Xr=function(t){return ui.get(t)||{}};Vr=function(t){return ui.has(t)}}else{var ci=w("state");E[ci]=!0;Gr=function(t,e){if(ii(t,ci))throw si(ai);e.facade=t;oi(t,ci,e);return e};Xr=function(t){return ii(t,ci)?t[ci]:{}};Vr=function(t){return ii(t,ci)}}function fi(h){var d=1==h,v=2==h,y=3==h,g=4==h,m=6==h,b=7==h,x=5==h||m;return function(t,e,r,n){for(var o,i,a=xi(t),s=bi(a),u=mi(e,r),c=_i(s),f=0,l=n||wi,p=d?l(t,c):v||b?l(t,0):void 0;f<c;f++)if(x||f in s){o=s[f];i=u(o,f,a);if(h)if(d)p[f]=i;else if(i)switch(h){case 3:return!0;case 5:return o;case 6:return f;case 2:Ei(p,o)}else switch(h){case 4:return!1;case 7:Ei(p,o)}}return m?-1:y||g?g:p}}function li(t,e){var r=ia[t]=Li(Qi);$i(r,{type:Hi,tag:t,description:e});Oi||(r.description=e);return r}function pi(t,e,r){t===Ki&&pi(aa,e,r);ji(t);var n=Pi(e);ji(r);if(Si(ia,n)){if(r.enumerable){Si(t,Bi)&&t[Bi][n]&&(t[Bi][n]=!1);r=Li(r,{enumerable:Di(0,!1)})}else{Si(t,Bi)||ea(t,Bi,Di(1,{}));t[Bi][n]=!0}return ua(t,n,r)}return ea(t,n,r)}function hi(e,t){ji(e);var r=Ai(t),n=Ci(r).concat(gi(r));Vi(n,function(t){Oi&&!Ti(di,r,t)||pi(e,t,r[t])});return e}function di(t){var e=Pi(t),r=Ti(na,this,e);return!(this===Ki&&Si(ia,e)&&!Si(aa,e))&&(!(r||!Si(this,e)||!Si(ia,e)||Si(this,Bi)&&this[Bi][e])||r)}function vi(t,e){var r=Ai(t),n=Pi(e);if(r!==Ki||!Si(ia,n)||Si(aa,n)){var o=ta(r,n);!o||!Si(ia,n)||Si(r,Bi)&&r[Bi][n]||(o.enumerable=!0);return o}}function yi(t){var e=ra(Ai(t)),r=[];Vi(e,function(t){Si(ia,t)||Si(qi,t)||oa(r,t)});return r}function gi(t){var e=t===Ki,r=ra(e?aa:Ai(t)),n=[];Vi(r,function(t){!Si(ia,t)||e&&!Si(Ki,t)||oa(n,ia[t])});return n}var qo={set:Gr,get:Xr,has:Vr,enforce:function(t){return Vr(t)?Xr(t):Gr(t,{})},getterFor:function(r){return function(t){var e;if(ni(t)&&(e=Xr(t)).type===r)return e;throw si("Incompatible receiver, "+r+" required")}}},mi=Mt,v=i,bi=ht,xi=It,_i=wr,wi=jr,Ei=v([].push),K={forEach:fi(0),map:fi(1),filter:fi(2),some:fi(3),every:fi(4),find:fi(5),findIndex:fi(6),filterReject:fi(7)},w=h,E=t,Ti=ct,v=i,Oi=ut,T=l,O=r,Si=oe,ki=c,ji=Nt,Ai=G,Pi=Lt,Ii=Pr,Di=q,Li=mo,Ci=b,Ri=io,Mi=Yn,Ni=Fo,Fi=st,S=Ut,zi=x,k=lt,j=Fr,A=zr,P=ee,Ui=Cr,qi=Un,Yi=Dt,Wi=p,I=_,Gi=Ur,D=qr,Xi=Yr,L=qo,Vi=K.forEach,Bi=Ui("hidden"),Hi="Symbol",Ui="prototype",$i=L.set,Ji=L.getterFor(Hi),Ki=Object[Ui],L=E.Symbol,Qi=L&&L[Ui],Zi=E.TypeError,E=E.QObject,ta=Fi.f,ea=S.f,ra=Mi.f,na=k.f,oa=v([].push),ia=P("symbols"),aa=P("op-symbols"),v=P("wks"),sa=!E||!E[Ui]||!E[Ui].findChild,ua=Oi&&O(function(){return 7!=Li(ea({},"a",{get:function(){return ea(this,"a",{value:7}).a}})).a})?function(t,e,r){var n=ta(Ki,e);n&&delete Ki[e];ea(t,e,r);n&&t!==Ki&&ea(Ki,e,n)}:ea;if(!T){L=function(){if(ki(Qi,this))throw Zi("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?Ii(arguments[0]):void 0,e=Yi(t),r=function(t){this===Ki&&Ti(r,aa,t);Si(this,Bi)&&Si(this[Bi],e)&&(this[Bi][e]=!1);ua(this,e,Di(1,t))};Oi&&sa&&ua(Ki,e,{configurable:!0,set:r});return li(e,t)};Qi=L[Ui];j(Qi,"toString",function(){return Ji(this).tag});j(L,"withoutSetter",function(t){return li(Yi(t),t)});k.f=di;S.f=pi;zi.f=hi;Fi.f=vi;Ri.f=Mi.f=yi;Ni.f=gi;I.f=function(t){return li(Wi(t),t)};Oi&&A(Qi,"description",{configurable:!0,get:function(){return Ji(this).description}})}w({global:!0,constructor:!0,wrap:!0,forced:!T,sham:!T},{Symbol:L});Vi(Ci(v),function(t){Gi(t)});w({target:Hi,stat:!0,forced:!T},{useSetter:function(){sa=!0},useSimple:function(){sa=!1}});w({target:"Object",stat:!0,forced:!T,sham:!Oi},{create:function(t,e){return void 0===e?Li(t):hi(Li(t),e)},defineProperty:pi,defineProperties:hi,getOwnPropertyDescriptor:vi});w({target:"Object",stat:!0,forced:!T},{getOwnPropertyNames:yi});D();Xi(L,Hi);qi[Bi]=!0;function ca(t,e){var r=Pa(arguments),n=Ia(e);if(ja(n)||void 0!==t&&!Aa(t))return r[1]=function(t,e){ja(n)&&(e=ka(n,this,Da(t),e));if(!Aa(e))return e},Sa(La,null,r)}function fa(t,e,r){var n=Ra(r,e-1),o=Ra(r,e+1);return Ca(Ua,t)&&!Ca(qa,o)||Ca(qa,t)&&!Ca(Ua,n)?"\\u"+Fa(Ma(t,0),16):t}var P=l,E=P&&!!Symbol.for&&!!Symbol.keyFor,O=h,la=V,pa=oe,ha=Pr,Ui=ee,j=E,da=Ui("string-to-symbol-registry"),va=Ui("symbol-to-string-registry"),k=(O({target:"Symbol",stat:!0,forced:!j},{for:function(t){var e=ha(t);if(pa(da,e))return da[e];var r=la("Symbol")(e);da[e]=r;va[r]=e;return r}}),h),ya=oe,ga=d,ma=jt,S=ee,zi=E,ba=S("symbol-to-string-registry"),Fi=(k({target:"Symbol",stat:!0,forced:!zi},{keyFor:function(t){if(!ga(t))throw TypeError(ma(t)+" is not a symbol");if(ya(ba,t))return ba[t]}}),i),Ri=Fi([].slice),Mi=i,xa=n,_a=s,wa=z,Ea=Pr,Ta=Mi([].push),Ni=h,Oa=V,Sa=Q,ka=ct,I=i,A=r,ja=s,Aa=d,Pa=Ri,Ia=function(t){if(_a(t))return t;if(xa(t)){for(var e=t.length,n=[],r=0;r<e;r++){var o=t[r];"string"==typeof o?Ta(n,o):"number"!=typeof o&&"Number"!=wa(o)&&"String"!=wa(o)||Ta(n,Ea(o))}var i=n.length,a=!0;return function(t,e){if(a)return a=!1,e;if(xa(this))return e;for(var r=0;r<i;r++)if(n[r]===t)return e}}},v=l,Da=String,La=Oa("JSON","stringify"),Ca=I(/./.exec),Ra=I("".charAt),Ma=I("".charCodeAt),Na=I("".replace),Fa=I(1..toString),za=/[\uD800-\uDFFF]/g,Ua=/^[\uD800-\uDBFF]$/,qa=/^[\uDC00-\uDFFF]$/,Ya=!v||A(function(){var t=Oa("Symbol")();return"[null]"!=La([t])||"{}"!=La({a:t})||"{}"!=La(Object(t))}),Wa=A(function(){return'"\\udf06\\ud834"'!==La("\udf06\ud834")||'"\\udead"'!==La("\udead")}),w=(La&&Ni({target:"JSON",stat:!0,arity:3,forced:Ya||Wa},{stringify:function(t,e,r){var n=Pa(arguments),n=Sa(Ya?ca:La,null,n);return Wa&&"string"==typeof n?Na(n,za,fa):n}}),h),T=l,D=r,Ga=Fo,Xa=It,Xi=!T||D(function(){Ga.f(1)}),L=(w({target:"Object",stat:!0,forced:Xi},{getOwnPropertySymbols:function(t){var e=Ga.f;return e?e(Xa(t)):[]}}),Ur),P=(L("asyncIterator"),Ur),Ui=(P("hasInstance"),Ur),O=(Ui("isConcatSpreadable"),Ur),j=(O("iterator"),Ur),E=(j("match"),Ur),S=(E("matchAll"),Ur),k=(S("replace"),Ur),zi=(k("search"),Ur),Fi=(zi("species"),Ur),Mi=(Fi("split"),Ur),I=qr;Mi("toPrimitive");I();v=V,A=Ur,Ni=Yr;A("toStringTag");Ni(v("Symbol"),"Symbol");var l=Ur,T=(l("unscopables"),t),D=Yr,w=(D(T.JSON,"JSON",!0),u),Xi=w.Symbol,L={},P=ut,Ui=oe,O=Function.prototype,j=P&&Object.getOwnPropertyDescriptor,E=Ui(O,"name"),S=E&&"something"===function(){}.name,k=E&&(!P||j(O,"name").configurable),zi={EXISTS:E,PROPER:S,CONFIGURABLE:k},Fi=r,Mi=!Fi(function(){function t(){}t.prototype.constructor=null;return Object.getPrototypeOf(new t)!==t.prototype}),Va=oe,Ba=s,Ha=It,I=Cr,A=Mi,$a=I("IE_PROTO"),Ja=Object,Ka=Ja.prototype,Ni=A?Ja.getPrototypeOf:function(t){var e,r=Ha(t);return Va(r,$a)?r[$a]:(e=r.constructor,Ba(e)&&r instanceof e?e.prototype:r instanceof Ja?Ka:null)},v=r,l=s,D=a,T=mo,w=Ni,Ui=Fr,P=p,Qa=P("iterator"),j=!1;if([].keys){O=[].keys();if("next"in O){E=w(w(O));E!==Object.prototype&&(ns=E)}else j=!0}function Za(){return this}function ts(){return this}function es(t,e,r,n,o,i,a){bs(r,e,n);function s(t){if(t===o&&d)return d;if(!Os&&t in p)return p[t];switch(t){case"keys":case ks:case js:return function(){return new r(this,t)}}return function(){return new r(this)}}var u,c,f=e+" Iterator",l=!1,p=t.prototype,h=p[Ss]||p["@@iterator"]||o&&p[o],d=!Os&&h||s(o),v="Array"==e&&p.entries||h;if(v){v=xs(v.call(new t));if(v!==Object.prototype&&v.next){_s(v,f,!0,!0);Es[f]=ts}}if(Ts&&o==ks&&h&&h.name!==ks){l=!0;d=function(){return ms(h,this)}}if(o){u={values:s(ks),keys:i?d:s("keys"),entries:s(js)};if(a)for(c in u)!Os&&!l&&c in p||ws(p,c,u[c]);else gs({target:e,proto:!0,forced:Os||l},u)}a&&p[Ss]!==d&&ws(p,Ss,d,{name:o});Es[e]=d;return u}function rs(t,e){return{value:t,done:e}}var S=!D(ns)||v(function(){var t={};return ns[Qa].call(t)!==t}),ns=S?{}:T(ns),k=(l(ns[Qa])||Ui(ns,Qa,function(){return this}),{IteratorPrototype:ns,BUGGY_SAFARI_ITERATORS:j}),os=k.IteratorPrototype,is=mo,as=q,ss=Yr,us=L,cs=i,fs=At,ls=s,ps=String,hs=TypeError,ds=function(t,e,r){try{return cs(fs(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(t){}},vs=Nt,ys=function(t){if("object"==typeof t||ls(t))return t;throw hs("Can't set "+ps(t)+" as a prototype")},Fi=Object.setPrototypeOf||("__proto__"in{}?(()=>{var r,n=!1,t={};try{r=ds(Object.prototype,"__proto__","set");r(t,[]);n=t instanceof Array}catch(t){}return function(t,e){vs(t);ys(e);n?r(t,e):t.__proto__=e;return t}})():void 0),gs=h,ms=ct,I=zi,bs=function(t,e,r,n){var o=e+" Iterator";t.prototype=is(os,{next:as(+!n,r)});ss(t,o,!1,!0);us[o]=Za;return t},xs=Ni,_s=Yr,ws=Fr,A=p,Es=L,P=k,Ts=I.PROPER,Os=P.BUGGY_SAFARI_ITERATORS,Ss=A("iterator"),ks="values",js="entries",As=G,w=L,O=qo,E=es,Ps=rs,Is="Array Iterator",Ds=O.set,Ls=O.getterFor(Is);E(Array,"Array",function(t,e){Ds(this,{type:Is,target:As(t),index:0,kind:e})},function(){var t=Ls(this),e=t.target,r=t.kind,n=t.index++;if(!e||n>=e.length)return t.target=void 0,Ps(void 0,!0);return Ps("keys"==r?n:"values"==r?e[n]:[n,e[n]],!1)},"values");w.Arguments=w.Array;var Cs,D={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},Rs=t,Ms=fn,Ns=f,Fs=L,v=p,zs=v("toStringTag");for(Cs in D){var Us=Rs[Cs],Us=Us&&Us.prototype;Us&&Ms(Us)!==zs&&Ns(Us,zs,Cs);Fs[Cs]=Fs.Array}for(var S=Xi,T=S,l=Ur,Ui=(l("dispose"),T),j=Ui,k=Ur,I=(k("asyncDispose"),h),P=V,A=i,O=P("Symbol"),qs=O.keyFor,Ys=A(O.prototype.valueOf),E=(I({target:"Symbol",stat:!0},{isRegistered:function(t){try{return void 0!==qs(Ys(t))}catch(t){return!1}}}),h),w=ee,v=V,D=i,Ws=d,Gs=p,Xs=v("Symbol"),Vs=Xs.isWellKnown,Bs=v("Object","getOwnPropertyNames"),Hs=D(Xs.prototype.valueOf),$s=w("wks"),Js=0,Ks=Bs(Xs),Qs=Ks.length;Js<Qs;Js++)try{var Zs=Ks[Js];Ws(Xs[Zs])&&Gs(Zs)}catch(t){}E({target:"Symbol",stat:!0,forced:!0},{isWellKnown:function(t){if(Vs&&Vs(t))return!0;try{for(var e=Hs(t),r=0,n=Bs($s),o=n.length;r<o;r++)if($s[n[r]]==e)return!0}catch(t){}return!1}});Xi=Ur,S=(Xi("matcher"),Ur),l=(S("metadataKey"),Ur),Ui=(l("observable"),Ur),k=(Ui("metadata"),Ur),P=(k("patternMatch"),Ur),A=(P("replaceAll"),j),O=A;R=m,R.exports=O;R=g,R.exports=$r;function tu(a){return function(t,e){var r,n=iu(au(t)),o=ou(e),i=n.length;if(o<0||i<=o)return a?"":void 0;r=uu(n,o);return r<55296||56319<r||o+1===i||(i=uu(n,o+1))<56320||57343<i?a?su(n,o):r:a?cu(n,o,o+2):i-56320+(r-55296<<10)+65536}}var eu=e(Hr),ru={},I={get exports(){return ru},set exports(t){ru=t}},nu={},d={get exports(){return nu},set exports(t){nu=t}},v=i,ou=_r,iu=Pr,au=W,su=v("".charAt),uu=v("".charCodeAt),cu=v("".slice),D={codeAt:tu(!1),charAt:tu(!0)},fu=D.charAt,lu=Pr,w=qo,E=es,pu=rs,hu="String Iterator",du=w.set,vu=w.getterFor(hu),Xi=(E(String,"String",function(t){du(this,{type:hu,string:lu(t),index:0})},function(){var t=vu(this),e=t.string,r=t.index;if(r>=e.length)return pu(void 0,!0);e=fu(e,r);t.index+=e.length;return pu(e,!1)}),_),S=Xi.f("iterator"),l=S,Ui=l,k=Ui,P=k,j=P,A=j;R=d,R.exports=A;R=I,R.exports=nu;var yu=e(ru);function gu(t){return gu="function"==typeof eu&&"symbol"==typeof yu?function(t){return typeof t}:function(t){return t&&"function"==typeof eu&&t.constructor===eu&&t!==eu.prototype?"symbol":typeof t},gu(t)}var mu={},m={get exports(){return mu},set exports(t){mu=t}},bu={},O={get exports(){return bu},set exports(t){bu=t}},g=_,v=g.f("toPrimitive"),D=v,w=D,E=w,Xi=E,S=Xi,l=S;R=O,R.exports=l;R=m,R.exports=bu;var xu=e(mu);function _u(t){var e=((t,e)=>{if("object"!==gu(t)||null===t)return t;var r=t[xu];if(void 0===r)return("string"===e?String:Number)(t);r=r.call(t,e||"default");if("object"!==gu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string");return"symbol"===gu(e)?e:String(e)}function wu(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);Br(t,_u(n.key),n)}}function Eu(t,e,r){e&&wu(t.prototype,e);r&&wu(t,r);Br(t,"prototype",{writable:!1})}function C(t,e,r){e=_u(e);e in t?Br(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r;return t}function Tu(t){return Yu[t+"Prototype"]}function Ou(t){var e=t.bind;return t===Xu||Wu(Xu,t)&&e===Xu.bind?Gu:e}function Su(c){return function(t,e,r,n){Hu(e);var o=$u(t),i=Ju(o),a=Ku(o),s=c?a-1:0,u=c?-1:1;if(r<2)for(;;){if(s in i){n=i[s];s+=u;break}s+=u;if(c?s<0:a<=s)throw Qu("Reduce of empty array with no initial value")}for(;c?0<=s:s<a;s+=u)s in i&&(n=e(n,i[s],s,o));return n}}function ku(t,e){var r=[][t];return!!r&&Zu(function(){r.call(null,e||function(){return 1},1)})}function ju(t){var e=t.reduce;return t===nc||ec(nc,t)&&e===nc.reduce?rc:e}function Au(t){var e=t.filter;return t===cc||sc(cc,t)&&e===cc.filter?uc:e}function Pu(t){var e=t.map;return t===vc||hc(vc,t)&&e===vc.map?dc:e}function Iu(t,e,r,n,o,i,a,s){for(var u,c,f=o,l=0,p=!!a&&_c(a,s);l<n;){if(l in r){u=p?p(r[l],l,e):r[l];if(0<i&&mc(u)){c=bc(u);f=Iu(t,e,u,c,f,i-1)-1}else{xc(f+1);t[f]=u}f++}l++}return f}function Du(t){var e=t.flatMap;return t===Ac||kc(Ac,t)&&e===Ac.flatMap?jc:e}var Lu={},k={get exports(){return Lu},set exports(t){Lu=t}},P=i,Cu=At,Ru=a,Mu=oe,Nu=Ri,j=o,Fu=Function,zu=P([].concat),Uu=P([].join),qu={},d=j?Fu.bind:function(a){var s=Cu(this),t=s.prototype,u=Nu(arguments,1),c=function(){var t=zu(u,Nu(arguments));if(this instanceof c){var e=s,r=t.length,n=t;if(!Mu(qu,r)){for(var o=[],i=0;i<r;i++)o[i]="a["+i+"]";qu[r]=Fu("C,a","return new C("+Uu(o,",")+")")}return qu[r](e,n)}return s.apply(a,t)};Ru(t)&&(c.prototype=t);return c},A=h,I=d,Yu=(A({target:"Function",proto:!0,forced:Function.bind!==I},{bind:I}),u),_=Tu,g=_("Function").bind,Wu=c,Gu=g,Xu=Function.prototype,v=Ou,Vu=(R=k,R.exports=v,e(Lu)),Bu={},D={get exports(){return Bu},set exports(t){Bu=t}},Hu=At,$u=It,Ju=ht,Ku=wr,Qu=TypeError,w={left:Su(!1),right:Su(!0)},Zu=r,E=z,Xi="undefined"!=typeof process&&"process"==E(process),S=h,tc=w.left,O=ku,l=kt,m=Xi,o=!m&&79<l&&l<83,P=o||!O("reduce"),j=(S({target:"Array",proto:!0,forced:P},{reduce:function(t){var e=arguments.length;return tc(this,t,e,1<e?arguments[1]:void 0)}}),Tu),A=j("Array").reduce,ec=c,rc=A,nc=Array.prototype,I=ju,oc=(R=D,R.exports=I,e(Bu)),ic={},_={get exports(){return ic},set exports(t){ic=t}},g=h,ac=K.filter,k=Ar,E=k("filter"),w=(g({target:"Array",proto:!0,forced:!E},{filter:function(t){return ac(this,t,1<arguments.length?arguments[1]:void 0)}}),Tu),m=w("Array").filter,sc=c,uc=m,cc=Array.prototype,l=Au,fc=(R=_,R.exports=l,e(ic)),lc={},o={get exports(){return lc},set exports(t){lc=t}},O=h,pc=K.map,S=Ar,P=S("map"),j=(O({target:"Array",proto:!0,forced:!P},{map:function(t){return pc(this,t,1<arguments.length?arguments[1]:void 0)}}),Tu),A=j("Array").map,hc=c,dc=A,vc=Array.prototype,D=Pu,yc=(R=o,R.exports=D,e(lc)),gc={},I={get exports(){return gc},set exports(t){gc=t}},mc=n,bc=wr,xc=Er,_c=Mt,k=Iu,g=h,wc=k,Ec=At,Tc=It,Oc=wr,Sc=jr,E=(g({target:"Array",proto:!0},{flatMap:function(t){var e,r=Tc(this),n=Oc(r);Ec(t);e=Sc(r,0);e.length=wc(e,r,r,n,0,1,t,1<arguments.length?arguments[1]:void 0);return e}}),Tu),w=E("Array").flatMap,kc=c,jc=w,Ac=Array.prototype,m=Du,Pc=(R=I,R.exports=m,e(gc));function Ic(t,e,r){var n,o;zc(t);try{n=Uc(t,"return");if(!n){if("throw"===e)throw r;return r}n=Fc(n,t)}catch(t){o=!0;n=t}if("throw"===e)throw r;if(o)throw n;zc(n);return r}function Dc(t){return void 0!==t&&(Wc.Array===t||Xc[Gc]===t)}function Lc(t){if(!Hc(t))return Bc(t,Jc)||Bc(t,"@@iterator")||$c[Vc(t)]}function Cc(t,e){var r=arguments.length<2?ef(t):e;if(Qc(r))return Zc(Kc(r,t));throw rf(tf(t)+" is not iterable")}var Rc=(()=>{function o(t,e,r){var n;N(this,o);C(this,"_source",void 0);C(this,"_transformers",void 0);C(this,"_target",void 0);C(this,"_listeners",{add:Vu(n=this._add).call(n,this),remove:Vu(n=this._remove).call(n,this),update:Vu(n=this._update).call(n,this)});this._source=t;this._transformers=e;this._target=r}Eu(o,[{key:"all",value:function(){this._target.update(this._transformItems(this._source.get()));return this}},{key:"start",value:function(){this._source.on("add",this._listeners.add);this._source.on("remove",this._listeners.remove);this._source.on("update",this._listeners.update);return this}},{key:"stop",value:function(){this._source.off("add",this._listeners.add);this._source.off("remove",this._listeners.remove);this._source.off("update",this._listeners.update);return this}},{key:"_transformItems",value:function(t){var e;return oc(e=this._transformers).call(e,function(t,e){return e(t)},t)}},{key:"_add",value:function(t,e){null!=e&&this._target.add(this._transformItems(this._source.get(e.items)))}},{key:"_update",value:function(t,e){null!=e&&this._target.update(this._transformItems(this._source.get(e.items)))}},{key:"_remove",value:function(t,e){null!=e&&this._target.remove(this._transformItems(e.oldData))}}]);return o})(),Mc=(()=>{function e(t){N(this,e);C(this,"_source",void 0);C(this,"_transformers",[]);this._source=t}Eu(e,[{key:"filter",value:function(e){this._transformers.push(function(t){return fc(t).call(t,e)});return this}},{key:"map",value:function(e){this._transformers.push(function(t){return yc(t).call(t,e)});return this}},{key:"flatMap",value:function(e){this._transformers.push(function(t){return Pc(t).call(t,e)});return this}},{key:"to",value:function(t){return new Rc(this._source,this._transformers,t)}}]);return e})(),Nc={},_={get exports(){return Nc},set exports(t){Nc=t}},Fc=ct,zc=Nt,Uc=Pt,qc=Nt,Yc=Ic,l=p,Wc=L,Gc=l("iterator"),Xc=Array.prototype,Vc=fn,Bc=Pt,Hc=Y,$c=L,S=p,Jc=S("iterator"),Kc=ct,Qc=At,Zc=Nt,tf=jt,ef=Lc,rf=TypeError,nf=Mt,of=ct,af=It,sf=function(e,t,r,n){try{return n?t(qc(r)[0],r[1]):t(r)}catch(t){Yc(e,"throw",t)}},uf=Dc,cf=gn,ff=wr,lf=Tr,pf=Cc,hf=Lc,df=Array,O=p,vf=O("iterator"),yf=!1;try{var gf=0,mf={next:function(){return{done:!!gf++}},return:function(){yf=!0}};mf[vf]=function(){return this};Array.from(mf,function(){throw 2})}catch(t){}function bf(t,e){if(!e&&!yf)return!1;var r=!1;try{var n={};n[vf]=function(){return{next:function(){return{done:r=!0}}}};t(n)}catch(t){}return r}function xf(t){var e,r,n,o,i,a,s=af(t),u=cf(this),c=arguments.length,f=1<c?arguments[1]:void 0,l=void 0!==f,c=(l&&(f=nf(f,2<c?arguments[2]:void 0)),hf(s)),p=0;if(!c||this===df&&uf(c)){e=ff(s);r=u?new this(e):df(e);for(;p<e;p++){a=l?f(s[p],p):s[p];lf(r,p,a)}}else{o=pf(s,c);i=o.next;r=u?new this:[];for(;!(n=of(i,o)).done;p++){a=l?sf(o,f,[n.value,p],!0):n.value;lf(r,p,a)}}r.length=p;return r}var P=h,j=bf,A=!j(function(t){Array.from(t)}),o=(P({target:"Array",stat:!0,forced:A},{from:xf}),u),D=o.Array.from,k=D,g=k,_f=(R=_,R.exports=g,e(Nc)),wf={},E={get exports(){return wf},set exports(t){wf=t}},Ef={},w={get exports(){return Ef},set exports(t){Ef=t}},I=Lc,m=I,l=m,L=l,S=L,O=S,mf=O,j=mf;R=w,R.exports=j;R=E,R.exports=Ef;var Tf=e(wf),Of={},P={get exports(){return Of},set exports(t){Of=t}},A=u,o=A.Object.getOwnPropertySymbols,D=o,k=D,Sf=(R=P,R.exports=k,e(Of)),kf={},_={get exports(){return kf},set exports(t){kf=t}},jf={},I={get exports(){return jf},set exports(t){jf=t}},m=h,l=r,Af=G,Pf=st.f,L=ut,S=!L||l(function(){Pf(1)}),O=(m({target:"Object",stat:!0,forced:S,sham:!L},{getOwnPropertyDescriptor:function(t,e){return Pf(Af(t),e)}}),u),If=O.Object,mf=I.exports=function(t,e){return If.getOwnPropertyDescriptor(t,e)},w=(If.getOwnPropertyDescriptor.sham&&(mf.sham=!0),jf),j=w,Df=(R=_,R.exports=j,e(kf)),Lf={},E={get exports(){return Lf},set exports(t){Lf=t}},A=V,o=i,Cf=io,Rf=Fo,Mf=Nt,Nf=o([].concat),D=A("Reflect","ownKeys")||function(t){var e=Cf.f(Mf(t)),r=Rf.f;return r?Nf(e,r(t)):e},P=h,k=ut,Ff=D,zf=G,Uf=st,qf=Tr,l=(P({target:"Object",stat:!0,sham:!k},{getOwnPropertyDescriptors:function(t){for(var e,r,n=zf(t),o=Uf.f,i=Ff(n),a={},s=0;i.length>s;){r=o(n,e=i[s++]);void 0!==r&&qf(a,e,r)}return a}}),u),m=l.Object.getOwnPropertyDescriptors,S=m,L=S,Yf=(R=E,R.exports=L,e(Lf)),Wf={},O={get exports(){return Wf},set exports(t){Wf=t}},Gf={},I={get exports(){return Gf},set exports(t){Gf=t}},mf=h,w=ut,_=x.f,j=(mf({target:"Object",stat:!0,forced:Object.defineProperties!==_,sham:!w},{defineProperties:_}),u),Xf=j.Object,o=I.exports=function(t,e){return Xf.defineProperties(t,e)},A=(Xf.defineProperties.sham&&(o.sham=!0),Gf),P=A,Vf=(R=O,R.exports=P,e(Wf)),Bf={},k={get exports(){return Bf},set exports(t){Bf=t}},Hf=(R=k,R.exports=y,e(Bf)),$f={},l={get exports(){return $f},set exports(t){$f=t}},Jf={},m={get exports(){return Jf},set exports(t){Jf=t}},S=h,E=n,L=(S({target:"Array",stat:!0},{isArray:E}),u),x=L.Array.isArray,mf=x,w=mf,_=w,j=_,I=j,o=I;R=m,R.exports=o;R=l,R.exports=Jf;var Kf=e($f);function Qf(t){var e=t.slice;return t===dl||pl(dl,t)&&e===dl.slice?hl:e}var Zf={},A={get exports(){return Zf},set exports(t){Zf=t}},tl={},O={get exports(){return tl},set exports(t){tl=t}},P=h,el=n,rl=gn,nl=a,ol=Ir,il=wr,al=G,sl=Tr,k=p,y=Ar,ul=Ri,S=y("slice"),cl=k("species"),fl=Array,ll=Math.max,E=(P({target:"Array",proto:!0,forced:!S},{slice:function(t,e){var r,n,o,i=al(this),a=il(i),s=ol(t,a),u=ol(void 0===e?a:e,a);if(el(i)){r=i.constructor;if(rl(r)&&(r===fl||el(r.prototype)))r=void 0;else if(nl(r)){r=r[cl];null===r&&(r=void 0)}if(r===fl||void 0===r)return ul(i,s,u)}n=new(void 0===r?fl:r)(ll(u-s,0));for(o=0;s<u;s++,o++)s in i&&sl(n,o,i[s]);n.length=o;return n}}),Tu),L=E("Array").slice,pl=c,hl=L,dl=Array.prototype,x=Qf,mf=x,_=mf,j=_,I=j;R=O,R.exports=I;R=A,R.exports=tl;var vl=e(Zf),yl={},m={get exports(){return yl},set exports(t){yl=t}},gl={},o={get exports(){return gl},set exports(t){gl=t}},l=g,y=l,k=y,P=k;R=o,R.exports=P;R=m,R.exports=gl;var ml=e(yl);function bl(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 xl(t,e){if(t){if("string"==typeof t)return bl(t,e);var r=vl(r=Object.prototype.toString.call(t)).call(r,8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);return"Map"===r||"Set"===r?ml(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?bl(t,e):void 0}}function _l(t,e){return(t=>{if(Kf(t))return t})(t)||((t,e)=>{var r=null==t?null:void 0!==eu&&Tf(t)||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],u=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}})(t,e)||xl(t,e)||(()=>{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 wl(t){return(t=>{if(Kf(t))return bl(t)})(t)||(t=>{if(void 0!==eu&&null!=Tf(t)||null!=t["@@iterator"])return ml(t)})(t)||xl(t)||(()=>{throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")})()}function El(t){var e=t.concat;return t===Gl||Yl(Gl,t)&&e===Gl.concat?Wl:e}function Tl(t){var e=t.forEach;return t===lp||cp(lp,t)&&e===lp.forEach||up(pp,sp(t))?fp:e}function Ol(t){var e=t.reverse;return t===bp||gp(bp,t)&&e===bp.reverse?mp:e}function Sl(t,e){if(!delete t[e])throw Sp("Cannot delete property "+Op(e)+" of "+Op(t))}function kl(t){var e=t.splice;return t===Up||Fp(Up,t)&&e===Up.splice?zp:e}function jl(t){var e=t.includes;return t===vh||ph(vh,t)&&e===vh.includes?hh:"string"==typeof t||t===yh||ph(yh,t)&&e===yh.includes?dh:e}function Al(s){return function(t){for(var e,r=Eh(t),n=wh(r),o=n.length,i=0,a=[];i<o;){e=n[i++];_h&&!Th(r,e)||Oh(a,s?[e,r[e]]:r[e])}return a}}function Pl(r){return function(t){var e=Ah(jh(t));1&r&&(e=Ph(e,Ih,""));2&r&&(e=Ph(e,Dh,"$1"));return e}}function Il(t){var e=t.indexOf;return t===Xh||Wh(Xh,t)&&e===Xh.indexOf?Gh:e}function Dl(t){var e=t.trim;return"string"==typeof t||t===Zh||Kh(Zh,t)&&e===Zh.trim?Qh:e}function Ll(t,e){return ed.create(t,e)}function Cl(t,e,r){return id(od.JSON.stringify,null,arguments)}function Rl(t,e){if(t<e)throw ud("Not enough arguments");return t}function Ml(i,a){var s=a?2:1;return dd?function(t,e){var r=pd(arguments.length,1)>s,n=fd(t)?t:hd(t),o=r?ld(arguments,s):[],r=r?function(){cd(n,this,o)}:n;return a?i(r,e):i(r)}:i}function Nl(t){for(var e=gd(this),r=bd(e),n=arguments.length,o=md(1<n?arguments[1]:void 0,r),n=2<n?arguments[2]:void 0,i=void 0===n?r:md(n,r);o<i;)e[o++]=t;return e}function Fl(t){var e=t.fill;return t===wd||xd(wd,t)&&e===wd.fill?_d:e}var zl={},S={get exports(){return zl},set exports(t){zl=t}},Ul=(R=S,R.exports=T,e(zl)),ql={},E={get exports(){return ql},set exports(t){ql=t}},L=Tu,mf=L("Array").concat,Yl=c,Wl=mf,Gl=Array.prototype,_=El,Xl=(R=E,R.exports=_,e(ql)),Vl={},j={get exports(){return Vl},set exports(t){Vl=t}},Bl=(R=j,R.exports=x,e(Vl)),Hl={},O={get exports(){return Hl},set exports(t){Hl=t}},I=h,A=D,g=(I({target:"Reflect",stat:!0},{ownKeys:A}),u),l=g.Reflect.ownKeys,y=l,k=y,$l=(R=O,R.exports=k,e(Hl)),Jl={},o={get exports(){return Jl},set exports(t){Jl=t}},Kl=(R=o,R.exports=w,e(Jl)),Ql={},P={get exports(){return Ql},set exports(t){Ql=t}},m=h,Zl=It,tp=b,S=r,T=S(function(){tp(1)}),L=(m({target:"Object",stat:!0,forced:T},{keys:function(t){return tp(Zl(t))}}),u),mf=L.Object.keys,E=mf,_=E,ep=(R=P,R.exports=_,e(Ql)),rp={},j={get exports(){return rp},set exports(t){rp=t}},x=h,I=i,np=Date,op=I(np.prototype.getTime),A=(x({target:"Date",stat:!0},{now:function(){return op(new np)}}),u),g=A.Date.now,l=g,y=l,ip=(R=j,R.exports=y,{}),O={get exports(){return ip},set exports(t){ip=t}},ap=K.forEach,k=ku,o=k("forEach"),w=o?[].forEach:function(t){return ap(this,t,1<arguments.length?arguments[1]:void 0)},S=h,m=w,T=(S({target:"Array",proto:!0,forced:[].forEach!=m},{forEach:m}),Tu),L=T("Array").forEach,mf=L,E=mf,sp=fn,up=oe,cp=c,fp=E,lp=Array.prototype,pp={DOMTokenList:!0,NodeList:!0},hp=(R=O,R.exports=Tl,e(ip)),dp={},P={get exports(){return dp},set exports(t){dp=t}},_=h,I=i,vp=n,yp=I([].reverse),x=[1,2],A=(_({target:"Array",proto:!0,forced:String(x)===String(x.reverse())},{reverse:function(){vp(this)&&(this.length=this.length);return yp(this)}}),Tu),g=A("Array").reverse,gp=c,mp=g,bp=Array.prototype,l=Ol,xp=(R=P,R.exports=l,e(dp)),_p={},j={get exports(){return _p},set exports(t){_p=t}},y=ut,wp=n,Ep=TypeError,Tp=Object.getOwnPropertyDescriptor,k=y&&!function(){if(void 0!==this)return 1;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}(),o=k?function(t,e){if(wp(t)&&!Tp(t,"length").writable)throw Ep("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e},Op=jt,Sp=TypeError,w=h,kp=It,jp=Ir,Ap=_r,Pp=wr,Ip=o,Dp=Er,Lp=jr,Cp=Tr,Rp=Sl,S=Ar,m=S("splice"),Mp=Math.max,Np=Math.min,T=(w({target:"Array",proto:!0,forced:!m},{splice:function(t,e){var r,n,o,i,a,s,u=kp(this),c=Pp(u),f=jp(t,c),l=arguments.length;if(0===l)r=n=0;else if(1===l){r=0;n=c-f}else{r=l-2;n=Np(Mp(Ap(e),0),c-f)}Dp(c+r-n);o=Lp(u,n);for(i=0;i<n;i++){a=f+i;a in u&&Cp(o,i,u[a])}o.length=n;if(r<n){for(i=f;i<c-n;i++){a=i+n;s=i+r;a in u?u[s]=u[a]:Rp(u,s)}for(i=c;c-n+r<i;i--)Rp(u,i-1)}else if(n<r)for(i=c-n;f<i;i--){a=i+n-1;s=i+r-1;a in u?u[s]=u[a]:Rp(u,s)}for(i=0;i<r;i++)u[i+f]=arguments[i+2];Ip(u,c-n+r);return o}}),Tu),L=T("Array").splice,Fp=c,zp=L,Up=Array.prototype,mf=kl,qp=(R=j,R.exports=mf,e(_p)),Yp={},E={get exports(){return Yp},set exports(t){Yp=t}},Wp=ut,O=i,Gp=ct,I=r,Xp=b,Vp=Fo,Bp=lt,Hp=It,$p=ht,Jp=Object.assign,Kp=Object.defineProperty,Qp=O([].concat),_=!Jp||I(function(){if(Wp&&1!==Jp({b:1},Jp(Kp({},"a",{enumerable:!0,get:function(){Kp(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";t[r]=7;n.split("").forEach(function(t){e[t]=t});return 7!=Jp({},t)[r]||Xp(Jp({},e)).join("")!=n})?function(t,e){for(var r=Hp(t),n=arguments.length,o=1,i=Vp.f,a=Bp.f;o<n;)for(var s,u=$p(arguments[o++]),c=i?Qp(Xp(u),i(u)):Xp(u),f=c.length,l=0;l<f;){s=c[l++];Wp&&!Gp(a,u,s)||(r[s]=u[s])}return r}:Jp,x=h,A=_,g=(x({target:"Object",stat:!0,arity:2,forced:Object.assign!==A},{assign:A}),u),P=g.Object.assign,n=P,y=n,Zp=(R=E,R.exports=y,e(Yp)),th={},k={get exports(){return th},set exports(t){th=t}},o=h,eh=qn.includes,S=r,w=S(function(){return!Array(1).includes()}),m=(o({target:"Array",proto:!0,forced:w},{includes:function(t){return eh(this,t,1<arguments.length?arguments[1]:void 0)}}),Tu),T=m("Array").includes,rh=a,nh=z,L=p,oh=L("match"),ih=function(t){var e;return rh(t)&&(void 0!==(e=t[oh])?!!e:"RegExp"==nh(t))},ah=TypeError,j=p,sh=j("match"),Fo=h,ht=i,uh=function(t){if(ih(t))throw ah("The method doesn't accept regular expressions");return t},ch=W,fh=Pr,O=function(e){var r=/./;try{"/./"[e](r)}catch(t){try{r[sh]=!1;return"/./"[e](r)}catch(t){}}return!1},lh=ht("".indexOf),I=(Fo({target:"String",proto:!0,forced:!O("includes")},{includes:function(t){return!!~lh(fh(ch(this)),fh(uh(t)),1<arguments.length?arguments[1]:void 0)}}),Tu),_=I("String").includes,ph=c,hh=T,dh=_,vh=Array.prototype,yh=String.prototype,x=jl,gh=(R=k,R.exports=x,{}),A={get exports(){return gh},set exports(t){gh=t}},g=h,P=r,mh=It,bh=Ni,n=Mi,E=P(function(){bh(1)}),y=(g({target:"Object",stat:!0,forced:E,sham:!n},{getPrototypeOf:function(t){return bh(mh(t))}}),u),S=y.Object.getPrototypeOf,o=S,w=o,xh=(R=A,R.exports=w,{}),m={get exports(){return xh},set exports(t){xh=t}},_h=ut,L=i,wh=b,Eh=G,j=lt.f,Th=L(j),Oh=L([].push),ht={entries:Al(!0),values:Al(!1)},Fo=h,Sh=ht.values,O=(Fo({target:"Object",stat:!0},{values:function(t){return Sh(t)}}),u),I=O.Object.values,T=I,_=T,kh=(R=m,R.exports=_,{}),k={get exports(){return kh},set exports(t){kh=t}},x="\t\n\v\f\r \u2028\u2029\ufeff",Mi=i,jh=W,Ah=Pr,P=x,Ph=Mi("".replace),Ih=RegExp("^["+P+"]+"),Dh=RegExp("(^|[^"+P+"])["+P+"]+$"),g={start:Pl(1),end:Pl(2),trim:Pl(3)},E=t,n=r,y=i,Lh=Pr,Ch=g.trim,S=x,Rh=E.parseInt,o=E.Symbol,Mh=o&&o.iterator,Nh=/^[+-]?0x/i,Fh=y(Nh.exec),A=8!==Rh(S+"08")||22!==Rh(S+"0x16")||Mh&&!n(function(){Rh(Object(Mh))}),b=A?function(t,e){var r=Ch(Lh(t));return Rh(r,e>>>0||(Fh(Nh,r)?16:10))}:Rh,lt=h,j=b,L=(lt({global:!0,forced:parseInt!=j},{parseInt:j}),u),ht=L.parseInt,Fo=ht,O=Fo,zh=(R=k,R.exports=O,{}),I={get exports(){return zh},set exports(t){zh=t}},T=h,m=U,Uh=qn.indexOf,_=ku,qh=m([].indexOf),Yh=!!qh&&1/qh([1],1,-0)<0,Mi=Yh||!_("indexOf"),P=(T({target:"Array",proto:!0,forced:Mi},{indexOf:function(t){var e=1<arguments.length?arguments[1]:void 0;return Yh?qh(this,t,e)||0:Uh(this,t,e)}}),Tu),E=P("Array").indexOf,Wh=c,Gh=E,Xh=Array.prototype,o=Il,Vh=(R=I,R.exports=o,{}),y={get exports(){return Vh},set exports(t){Vh=t}},Bh=zi.PROPER,Hh=r,$h=x,S=h,Jh=g.trim,n=function(t){return Hh(function(){return!!$h[t]()||"
"!=="
"[t]()||Bh&&$h[t].name!==t})},A=(S({target:"String",proto:!0,forced:n("trim")},{trim:function(){return Jh(this)}}),Tu),b=A("String").trim,Kh=c,Qh=b,Zh=String.prototype,lt=Dl,td=(R=y,R.exports=lt,{}),j={get exports(){return td},set exports(t){td=t}},L=h,ht=ut,Fo=mo,k=(L({target:"Object",stat:!0,sham:!ht},{create:Fo}),u),ed=k.Object,O=Ll,rd=(R=j,R.exports=O,e(td)),nd={},qn={get exports(){return nd},set exports(t){nd=t}},od=u,id=Q,m=(od.JSON||(od.JSON={stringify:JSON.stringify}),Cl),ad=(R=qn,R.exports=m,e(nd)),sd={},_={get exports(){return sd},set exports(t){sd=t}},T="function"==typeof Bun&&Bun&&"string"==typeof Bun.version,ud=TypeError,Mi=t,cd=Q,fd=s,P=T,E=St,ld=Ri,pd=Rl,hd=Mi.Function,dd=/MSIE .\./.test(E)||P&&(I=Mi.Bun.version.split("."),I.length<3||0==I[0]&&(I[1]<3||3==I[1]&&0==I[2])),o=h,zi=t,x=Ml,g=x(zi.setInterval,!0),S=(o({global:!0,bind:!0,forced:zi.setInterval!==g},{setInterval:g}),h),n=t,A=Ml,b=A(n.setTimeout,!0),y=(S({global:!0,bind:!0,forced:n.setTimeout!==b},{setTimeout:b}),u),lt=y.setTimeout,vd=(R=_,R.exports=lt,e(sd)),yd={},L={get exports(){return yd},set exports(t){yd=t}},gd=It,md=Ir,bd=wr,ht=h,Fo=(ht({target:"Array",proto:!0},{fill:Nl}),Tu),k=Fo("Array").fill,xd=c,_d=k,wd=Array.prototype,j=Fl,Ed=(R=L,R.exports=j,{}),qn={get exports(){return Ed},set exports(t){Ed=t}},R=qn;R.exports=Td;function Td(t){if(t){var e,r=t;for(e in Td.prototype)r[e]=Td.prototype[e];return r}}Td.prototype.on=Td.prototype.addEventListener=function(t,e){this._callbacks=this._callbacks||{};(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e);return this};Td.prototype.once=function(t,e){function r(){this.off(t,r);e.apply(this,arguments)}r.fn=e;this.on(t,r);return this};Td.prototype.off=Td.prototype.removeListener=Td.prototype.removeAllListeners=Td.prototype.removeEventListener=function(t,e){this._callbacks=this._callbacks||{};if(0==arguments.length)this._callbacks={};else{var r=this._callbacks["$"+t];if(r)if(1==arguments.length)delete this._callbacks["$"+t];else{for(var n,o=0;o<r.length;o++){n=r[o];if(n===e||n.fn===e){r.splice(o,1);break}}0===r.length&&delete this._callbacks["$"+t]}}return this};Td.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),r=this._callbacks["$"+t],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(r)for(var r=r.slice(0),n=0,o=r.length;n<o;++n)r[n].apply(this,e);return this};Td.prototype.listeners=function(t){this._callbacks=this._callbacks||{};return this._callbacks["$"+t]||[]};Td.prototype.hasListeners=function(t){return!!this.listeners(t).length};m=Ed;
|
||
/*! 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 Od(){Od=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r,n=arguments[e];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t};return Od.apply(this,arguments)}function Sd(t,e){t.prototype=Object.create(e.prototype);t.prototype.constructor=t;t.__proto__=e}function kd(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var T="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 o in n)n.hasOwnProperty(o)&&(e[o]=n[o])}return e}:Object.assign,jd=T,Ad=["","webkit","Moz","MS","ms","o"],E="undefined"==typeof document?{style:{}}:document.createElement("div"),Pd=Math.round,Id=Math.abs,Dd=Date.now;function Ld(t,e){for(var r,n=e[0].toUpperCase()+e.slice(1),o=0;o<Ad.length;){r=Ad[o];r=r?r+n:e;if(r in t)return r;o++}}var Cd="undefined"==typeof window?{}:window,Rd=Ld(E.style,"touchAction"),Md=void 0!==Rd;var Nd="compute",Fd="manipulation",zd="none",Ud="pan-x",qd="pan-y",Yd=(()=>{if(!Md)return!1;var e={},r=Cd.CSS&&Cd.CSS.supports;["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(t){return e[t]=!r||Cd.CSS.supports("touch-action",t)});return e})(),Wd="ontouchstart"in Cd,Gd=void 0!==Ld(Cd,"PointerEvent"),Xd=Wd&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),Vd="touch",Bd="mouse",Hd=25,$d=1,Jd=4,Kd=8,Qd=1,Zd=2,tv=4,ev=8,rv=16,nv=Zd|tv,ov=ev|rv,iv=nv|ov,av=["x","y"],sv=["clientX","clientY"];function uv(t,e,r){if(t)if(t.forEach)t.forEach(e,r);else if(void 0!==t.length){n=0;for(;n<t.length;){e.call(r,t[n],n,t);n++}}else for(var n in t)t.hasOwnProperty(n)&&e.call(r,t[n],n,t)}function cv(t,e){return"function"==typeof t?t.apply(e&&e[0]||void 0,e):t}function fv(t,e){return-1<t.indexOf(e)}var lv=(()=>{function t(t,e){this.manager=t;this.set(e)}var e=t.prototype;e.set=function(t){t===Nd&&(t=this.compute());Md&&this.manager.element.style&&Yd[t]&&(this.manager.element.style[Rd]=t);this.actions=t.toLowerCase().trim()};e.update=function(){this.set(this.manager.options.touchAction)};e.compute=function(){var t,e,r,n=[];uv(this.manager.recognizers,function(t){cv(t.options.enable,[t])&&(n=n.concat(t.getTouchAction()))});return t=n.join(" "),fv(t,zd)||(e=fv(t,Ud),r=fv(t,qd),e&&r)?zd:e||r?e?Ud:qd:fv(t,Fd)?Fd:"auto"};e.preventDefaults=function(t){var e=t.srcEvent,r=t.offsetDirection;if(!this.manager.session.prevented){var n=this.actions,o=fv(n,zd)&&!Yd[zd],i=fv(n,qd)&&!Yd[qd],n=fv(n,Ud)&&!Yd[Ud];if(o){var a=1===t.pointers.length,s=t.distance<2,u=t.deltaTime<250;if(a&&s&&u)return}return n&&i?void 0:o||i&&r&nv||n&&r&ov?this.preventSrc(e):void 0}e.preventDefault()};e.preventSrc=function(t){this.manager.session.prevented=!0;t.preventDefault()};return t})();function pv(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1}function hv(t){var e=t.length;if(1===e)return{x:Pd(t[0].clientX),y:Pd(t[0].clientY)};for(var r=0,n=0,o=0;o<e;){r+=t[o].clientX;n+=t[o].clientY;o++}return{x:Pd(r/e),y:Pd(n/e)}}function dv(t){for(var e=[],r=0;r<t.pointers.length;){e[r]={clientX:Pd(t.pointers[r].clientX),clientY:Pd(t.pointers[r].clientY)};r++}return{timeStamp:Dd(),pointers:e,center:hv(e),deltaX:t.deltaX,deltaY:t.deltaY}}function vv(t,e,r){r=r||av;var n=e[r[0]]-t[r[0]],o=e[r[1]]-t[r[1]];return Math.sqrt(n*n+o*o)}function yv(t,e,r){r=r||av;var n=e[r[0]]-t[r[0]],o=e[r[1]]-t[r[1]];return 180*Math.atan2(o,n)/Math.PI}function gv(t,e){return t===e?Qd:Id(t)>=Id(e)?t<0?Zd:tv:e<0?ev:rv}function mv(t,e,r){return{x:e/t||0,y:r/t||0}}function bv(t,e){var r=t.session,n=e.pointers,o=n.length;r.firstInput||(r.firstInput=dv(e));1<o&&!r.firstMultiple?r.firstMultiple=dv(e):1===o&&(r.firstMultiple=!1);var o=r.firstInput,i=r.firstMultiple,a=(i||o).center,s=e.center=hv(n);e.timeStamp=Dd();e.deltaTime=e.timeStamp-o.timeStamp;e.angle=yv(a,s);e.distance=vv(a,s);var u=r,c=e,o=c.center,a=u.offsetDelta||{},s=u.prevDelta||{},f=u.prevInput||{};if(c.eventType===$d||f.eventType===Jd){s=u.prevDelta={x:f.deltaX||0,y:f.deltaY||0};a=u.offsetDelta={x:o.x,y:o.y}}c.deltaX=s.x+(o.x-a.x);c.deltaY=s.y+(o.y-a.y);e.offsetDirection=gv(e.deltaX,e.deltaY);f=mv(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=f.x;e.overallVelocityY=f.y;e.overallVelocity=Id(f.x)>Id(f.y)?f.x:f.y;e.scale=i?(u=i.pointers,c=n,vv(c[0],c[1],sv)/vv(u[0],u[1],sv)):1;e.rotation=i?(c=i.pointers,u=n,yv(u[1],u[0],sv)+yv(c[1],c[0],sv)):0;e.maxPointers=!r.prevInput||e.pointers.length>r.prevInput.maxPointers?e.pointers.length:r.prevInput.maxPointers;u=r,c=e,s=u.lastInterval||c,o=c.timeStamp-s.timeStamp;if(c.eventType!==Kd&&(Hd<o||void 0===s.velocity)){var l=c.deltaX-s.deltaX,a=c.deltaY-s.deltaY,o=mv(o,l,a),p=o.x,h=o.y,d=Id(o.x)>Id(o.y)?o.x:o.y,l=gv(l,a);u.lastInterval=c}else{d=s.velocity;p=s.velocityX;h=s.velocityY;l=s.direction}c.velocity=d;c.velocityX=p;c.velocityY=h;c.direction=l;f=t.element,i=e.srcEvent,n=i.composedPath?i.composedPath()[0]:i.path?i.path[0]:i.target;pv(n,f)&&(f=n);e.target=f}function xv(t,e,r){var n=r.pointers.length,o=r.changedPointers.length,i=e&$d&&n-o==0,n=e&(Jd|Kd)&&n-o==0;r.isFirst=!!i;r.isFinal=!!n;i&&(t.session={});r.eventType=e;bv(t,r);t.emit("hammer.input",r);t.recognize(r);t.session.prevInput=r}function _v(t){return t.trim().split(/\s+/g)}function wv(e,t,r){uv(_v(t),function(t){e.addEventListener(t,r,!1)})}function Ev(e,t,r){uv(_v(t),function(t){e.removeEventListener(t,r,!1)})}function Tv(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||window}var Ov=(()=>{function t(e,t){var r=this;this.manager=e;this.callback=t;this.element=e.element;this.target=e.options.inputTarget;this.domHandler=function(t){cv(e.options.enable,[e])&&r.handler(t)};this.init()}var e=t.prototype;e.handler=function(){};e.init=function(){this.evEl&&wv(this.element,this.evEl,this.domHandler);this.evTarget&&wv(this.target,this.evTarget,this.domHandler);this.evWin&&wv(Tv(this.element),this.evWin,this.domHandler)};e.destroy=function(){this.evEl&&Ev(this.element,this.evEl,this.domHandler);this.evTarget&&Ev(this.target,this.evTarget,this.domHandler);this.evWin&&Ev(Tv(this.element),this.evWin,this.domHandler)};return t})();function Sv(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 kv={pointerdown:$d,pointermove:2,pointerup:Jd,pointercancel:Kd,pointerout:Kd},jv={2:Vd,3:"pen",4:Bd,5:"kinect"},Av="pointerdown",Pv="pointermove pointerup pointercancel";if(Cd.MSPointerEvent&&!Cd.PointerEvent){Av="MSPointerDown";Pv="MSPointerMove MSPointerUp MSPointerCancel"}var Iv=(e=>{Sd(r,e);function r(){var t=r.prototype;t.evEl=Av;t.evWin=Pv;t=e.apply(this,arguments)||this;t.store=t.manager.session.pointerEvents=[];return t}var t=r.prototype;t.handler=function(t){var e=this.store,r=!1,n=t.type.toLowerCase().replace("ms",""),n=kv[n],o=jv[t.pointerType]||t.pointerType,i=o===Vd,a=Sv(e,t.pointerId,"pointerId");if(n&$d&&(0===t.button||i)){if(a<0){e.push(t);a=e.length-1}}else n&(Jd|Kd)&&(r=!0);if(!(a<0)){e[a]=t;this.callback(this.manager,n,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t});r&&e.splice(a,1)}};return r})(Ov);function Dv(t){return Array.prototype.slice.call(t,0)}function Lv(t,r,e){for(var n=[],o=[],i=0;i<t.length;){var a=r?t[i][r]:t[i];Sv(o,a)<0&&n.push(t[i]);o[i]=a;i++}e&&(n=r?n.sort(function(t,e){return t[r]>e[r]}):n.sort());return n}var Cv={touchstart:$d,touchmove:2,touchend:Jd,touchcancel:Kd},Rv=(e=>{Sd(r,e);function r(){var t;r.prototype.evTarget="touchstart touchmove touchend touchcancel";t=e.apply(this,arguments)||this;t.targetIds={};return t}var t=r.prototype;t.handler=function(t){var e=Cv[t.type],r=function(t,e){var r,n,o=Dv(t.touches),i=this.targetIds;if(e&(2|$d)&&1===o.length)return i[o[0].identifier]=!0,[o,o];var a=Dv(t.changedTouches),s=[],u=this.target;n=o.filter(function(t){return pv(t.target,u)});if(e===$d){r=0;for(;r<n.length;){i[n[r].identifier]=!0;r++}}r=0;for(;r<a.length;){i[a[r].identifier]&&s.push(a[r]);e&(Jd|Kd)&&delete i[a[r].identifier];r++}if(s.length)return[Lv(n.concat(s),"identifier",!0),s]}.call(this,t,e);r&&this.callback(this.manager,e,{pointers:r[0],changedPointers:r[1],pointerType:Vd,srcEvent:t})};return r})(Ov);var Mv={mousedown:$d,mousemove:2,mouseup:Jd},Nv=(e=>{Sd(r,e);function r(){var t=r.prototype;t.evEl="mousedown";t.evWin="mousemove mouseup";t=e.apply(this,arguments)||this;t.pressed=!1;return t}var t=r.prototype;t.handler=function(t){var e=Mv[t.type];e&$d&&0===t.button&&(this.pressed=!0);2&e&&1!==t.which&&(e=Jd);if(this.pressed){e&Jd&&(this.pressed=!1);this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:Bd,srcEvent:t})}};return r})(Ov),Fv=2500,zv=25;function Uv(t){var e=t.changedPointers,e=e[0];if(e.identifier===this.primaryTouch){var r={x:e.clientX,y:e.clientY},n=this.lastTouches;this.lastTouches.push(r);setTimeout(function(){var t=n.indexOf(r);-1<t&&n.splice(t,1)},Fv)}}var qv=(()=>{var t=(r=>{Sd(t,r);function t(t,e){var i=r.call(this,t,e)||this;i.handler=function(t,e,r){var n=r.pointerType===Vd,o=r.pointerType===Bd;if(!(o&&r.sourceCapabilities&&r.sourceCapabilities.firesTouchEvents)){if(n)!function(t,e){if(t&$d){this.primaryTouch=e.changedPointers[0].identifier;Uv.call(this,e)}else t&(Jd|Kd)&&Uv.call(this,e)}.call(kd(kd(i)),e,r);else if(o&&function(t){for(var e=t.srcEvent.clientX,r=t.srcEvent.clientY,n=0;n<this.lastTouches.length;n++){var o=this.lastTouches[n],i=Math.abs(e-o.x),o=Math.abs(r-o.y);if(i<=zv&&o<=zv)return!0}return!1}.call(kd(kd(i)),r))return;i.callback(t,e,r)}};i.touch=new Rv(i.manager,i.handler);i.mouse=new Nv(i.manager,i.handler);i.primaryTouch=null;i.lastTouches=[];return i}var e=t.prototype;e.destroy=function(){this.touch.destroy();this.mouse.destroy()};return t})(Ov);return t})();function Yv(t,e,r){if(Array.isArray(t))return uv(t,r[e],r),1}var Wv=1;function Gv(t,e){var r=e.manager;return r?r.get(t):t}function Xv(t){return 16&t?"cancel":8&t?"end":4&t?"move":2&t?"start":""}var Vv=(()=>{function t(t){void 0===t&&(t={});this.options=Od({enable:!0},t);this.id=Wv++;this.manager=null;this.state=1;this.simultaneous={};this.requireFail=[]}var e=t.prototype;e.set=function(t){jd(this.options,t);this.manager&&this.manager.touchAction.update();return this};e.recognizeWith=function(t){if(!Yv(t,"recognizeWith",this)){var e=this.simultaneous;t=Gv(t,this);if(!e[t.id]){e[t.id]=t;t.recognizeWith(this)}}return this};e.dropRecognizeWith=function(t){if(!Yv(t,"dropRecognizeWith",this)){t=Gv(t,this);delete this.simultaneous[t.id]}return this};e.requireFailure=function(t){if(!Yv(t,"requireFailure",this)){var e=this.requireFail;t=Gv(t,this);if(-1===Sv(e,t)){e.push(t);t.requireFailure(this)}}return this};e.dropRequireFailure=function(t){if(!Yv(t,"dropRequireFailure",this)){t=Gv(t,this);var e=Sv(this.requireFail,t);-1<e&&this.requireFail.splice(e,1)}return this};e.hasRequireFailures=function(){return 0<this.requireFail.length};e.canRecognizeWith=function(t){return!!this.simultaneous[t.id]};e.emit=function(e){var r=this,t=this.state;function n(t){r.manager.emit(t,e)}t<8&&n(r.options.event+Xv(t));n(r.options.event);e.additionalEvent&&n(e.additionalEvent);8<=t&&n(r.options.event+Xv(t))};e.tryEmit=function(t){if(this.canEmit())return this.emit(t);this.state=32};e.canEmit=function(){for(var t=0;t<this.requireFail.length;){if(!(33&this.requireFail[t].state))return!1;t++}return!0};e.recognize=function(t){var e=jd({},t);if(cv(this.options.enable,[this,e])){56&this.state&&(this.state=1);this.state=this.process(e);30&this.state&&this.tryEmit(e)}else{this.reset();this.state=32}};e.process=function(t){};e.getTouchAction=function(){};e.reset=function(){};return t})(),Bv=(r=>{Sd(t,r);function t(t){var e;void 0===t&&(t={});e=r.call(this,Od({event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},t))||this;e.pTime=!1;e.pCenter=!1;e._timer=null;e._input=null;e.count=0;return e}var e=t.prototype;e.getTouchAction=function(){return[Fd]};e.process=function(t){var e=this,r=this.options,n=t.pointers.length===r.pointers,o=t.distance<r.threshold,i=t.deltaTime<r.time;this.reset();if(t.eventType&$d&&0===this.count)return this.failTimeout();if(o&&i&&n){if(t.eventType!==Jd)return this.failTimeout();o=!this.pTime||t.timeStamp-this.pTime<r.interval,i=!this.pCenter||vv(this.pCenter,t.center)<r.posThreshold;this.pTime=t.timeStamp;this.pCenter=t.center;i&&o?this.count+=1:this.count=1;this._input=t;n=this.count%r.taps;if(0==n)return this.hasRequireFailures()?(this._timer=setTimeout(function(){e.state=8;e.tryEmit()},r.interval),2):8}return 32};e.failTimeout=function(){var t=this;this._timer=setTimeout(function(){t.state=32},this.options.interval);return 32};e.reset=function(){clearTimeout(this._timer)};e.emit=function(){if(8===this.state){this._input.tapCount=this.count;this.manager.emit(this.options.event,this._input)}};return t})(Vv),Hv=(e=>{Sd(t,e);function t(t){void 0===t&&(t={});return e.call(this,Od({pointers:1},t))||this}var r=t.prototype;r.attrTest=function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e};r.process=function(t){var e=this.state,r=t.eventType,n=6&e,o=this.attrTest(t);return n&&(r&Kd||!o)?16|e:n||o?r&Jd?8|e:2&e?4|e:2:32};return t})(Vv);function $v(t){return t===rv?"down":t===ev?"up":t===Zd?"left":t===tv?"right":""}var Jv=(r=>{Sd(t,r);function t(t){var e;void 0===t&&(t={});e=r.call(this,Od({event:"pan",threshold:10,pointers:1,direction:iv},t))||this;e.pX=null;e.pY=null;return e}var e=t.prototype;e.getTouchAction=function(){var t=this.options.direction,e=[];t&nv&&e.push(qd);t&ov&&e.push(Ud);return e};e.directionTest=function(t){var e=this.options,r=!0,n=t.distance,o=t.direction,i=t.deltaX,a=t.deltaY;if(!(o&e.direction))if(e.direction&nv){o=0===i?Qd:i<0?Zd:tv;r=i!==this.pX;n=Math.abs(t.deltaX)}else{o=0===a?Qd:a<0?ev:rv;r=a!==this.pY;n=Math.abs(t.deltaY)}t.direction=o;return r&&n>e.threshold&&o&e.direction};e.attrTest=function(t){return Hv.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))};e.emit=function(t){this.pX=t.deltaX;this.pY=t.deltaY;var e=$v(t.direction);e&&(t.additionalEvent=this.options.event+e);r.prototype.emit.call(this,t)};return t})(Hv),Kv=(n=>{Sd(t,n);function t(t){void 0===t&&(t={});return n.call(this,Od({event:"swipe",threshold:10,velocity:.3,direction:nv|ov,pointers:1},t))||this}var e=t.prototype;e.getTouchAction=function(){return Jv.prototype.getTouchAction.call(this)};e.attrTest=function(t){var e,r=this.options.direction;r&(nv|ov)?e=t.overallVelocity:r&nv?e=t.overallVelocityX:r&ov&&(e=t.overallVelocityY);return n.prototype.attrTest.call(this,t)&&r&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers===this.options.pointers&&Id(e)>this.options.velocity&&t.eventType&Jd};e.emit=function(t){var e=$v(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t);this.manager.emit(this.options.event,t)};return t})(Hv),Qv=(r=>{Sd(t,r);function t(t){void 0===t&&(t={});return r.call(this,Od({event:"pinch",threshold:0,pointers:2},t))||this}var e=t.prototype;e.getTouchAction=function(){return[zd]};e.attrTest=function(t){return r.prototype.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||2&this.state)};e.emit=function(t){if(1!==t.scale){var e=t.scale<1?"in":"out";t.additionalEvent=this.options.event+e}r.prototype.emit.call(this,t)};return t})(Hv),Zv=(e=>{Sd(t,e);function t(t){void 0===t&&(t={});return e.call(this,Od({event:"rotate",threshold:0,pointers:2},t))||this}var r=t.prototype;r.getTouchAction=function(){return[zd]};r.attrTest=function(t){return e.prototype.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||2&this.state)};return t})(Hv),ty=(r=>{Sd(t,r);function t(t){var e;void 0===t&&(t={});e=r.call(this,Od({event:"press",pointers:1,time:251,threshold:9},t))||this;e._timer=null;e._input=null;return e}var e=t.prototype;e.getTouchAction=function(){return["auto"]};e.process=function(t){var e=this,r=this.options,n=t.pointers.length===r.pointers,o=t.distance<r.threshold,i=r.time<t.deltaTime;this._input=t;if(!o||!n||t.eventType&(Jd|Kd)&&!i)this.reset();else if(t.eventType&$d){this.reset();this._timer=setTimeout(function(){e.state=8;e.tryEmit()},r.time)}else if(t.eventType&Jd)return 8;return 32};e.reset=function(){clearTimeout(this._timer)};e.emit=function(t){if(8===this.state)if(t&&t.eventType&Jd)this.manager.emit(this.options.event+"up",t);else{this._input.timeStamp=Dd();this.manager.emit(this.options.event,this._input)}};return t})(Vv),ey={domEvents:!1,touchAction:Nd,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},ry=[[Zv,{enable:!1}],[Qv,{enable:!1},["rotate"]],[Kv,{direction:nv}],[Jv,{direction:nv},["swipe"]],[Bv],[Bv,{event:"doubletap",taps:2},["tap"]],[ty]];function ny(r,n){var o,i=r.element;if(i.style){uv(r.options.cssProps,function(t,e){o=Ld(i.style,e);if(n){r.oldCssProps[o]=i.style[o];i.style[o]=t}else i.style[o]=r.oldCssProps[o]||""});n||(r.oldCssProps={})}}var oy=(()=>{function t(t,e){var r,n=this;this.options=jd({},ey,e||{});this.options.inputTarget=this.options.inputTarget||t;this.handlers={};this.session={};this.recognizers=[];this.oldCssProps={};this.element=t;this.input=(e=this,r=e.options.inputClass,r=r||(Gd?Iv:Xd?Rv:Wd?qv:Nv),new r(e,xv));this.touchAction=new lv(this,this.options.touchAction);ny(this,!0);uv(this.options.recognizers,function(t){var e=n.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]);t[3]&&e.requireFailure(t[3])},this)}var e=t.prototype;e.set=function(t){jd(this.options,t);t.touchAction&&this.touchAction.update();if(t.inputTarget){this.input.destroy();this.input.target=t.inputTarget;this.input.init()}return this};e.stop=function(t){this.session.stopped=t?2:1};e.recognize=function(t){var e=this.session;if(!e.stopped){this.touchAction.preventDefaults(t);var r,n=this.recognizers,o=e.curRecognizer;if(!o||8&o.state){e.curRecognizer=null;o=null}for(var i=0;i<n.length;){r=n[i];2===e.stopped||o&&r!==o&&!r.canRecognizeWith(o)?r.reset():r.recognize(t);if(!o&&14&r.state){e.curRecognizer=r;o=r}i++}}};e.get=function(t){if(t instanceof Vv)return t;for(var e=this.recognizers,r=0;r<e.length;r++)if(e[r].options.event===t)return e[r];return null};e.add=function(t){if(Yv(t,"add",this))return this;var e=this.get(t.options.event);e&&this.remove(e);this.recognizers.push(t);t.manager=this;this.touchAction.update();return t};e.remove=function(t){if(!Yv(t,"remove",this)){var e=this.get(t);if(t){var r=this.recognizers,e=Sv(r,e);if(-1!==e){r.splice(e,1);this.touchAction.update()}}}return this};e.on=function(t,e){if(void 0!==t&&void 0!==e){var r=this.handlers;uv(_v(t),function(t){r[t]=r[t]||[];r[t].push(e)})}return this};e.off=function(t,e){if(void 0!==t){var r=this.handlers;uv(_v(t),function(t){e?r[t]&&r[t].splice(Sv(r[t],e),1):delete r[t]})}return this};e.emit=function(t,e){if(this.options.domEvents){var r=t,n=e,o=document.createEvent("Event");o.initEvent(r,!0,!0);o.gesture=n;n.target.dispatchEvent(o)}var i=this.handlers[t]&&this.handlers[t].slice();if(i&&i.length){e.type=t;e.preventDefault=function(){e.srcEvent.preventDefault()};for(var a=0;a<i.length;){i[a](e);a++}}};e.destroy=function(){this.element&&ny(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null};return t})(),iy={touchstart:$d,touchmove:2,touchend:Jd,touchcancel:Kd},ay=(e=>{Sd(r,e);function r(){var t=r.prototype;t.evTarget="touchstart";t.evWin="touchstart touchmove touchend touchcancel";t=e.apply(this,arguments)||this;t.started=!1;return t}var t=r.prototype;t.handler=function(t){var e=iy[t.type];e===$d&&(this.started=!0);if(this.started){var r=function(t,e){var r=Dv(t.touches),n=Dv(t.changedTouches);e&(Jd|Kd)&&(r=Lv(r.concat(n),"identifier",!0));return[r,n]}.call(this,t,e);e&(Jd|Kd)&&r[0].length-r[1].length==0&&(this.started=!1);this.callback(this.manager,e,{pointers:r[0],changedPointers:r[1],pointerType:Vd,srcEvent:t})}};return r})(Ov);function sy(r,t,e){var n="DEPRECATED METHOD: "+t+"\n"+e+" AT \n";return function(){var t=new Error("get-stack-trace"),t=t&&t.stack?t.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",e=window.console&&(window.console.warn||window.console.log);e&&e.call(window.console,n,t);return r.apply(this,arguments)}}var uy=sy(function(t,e,r){for(var n=Object.keys(e),o=0;o<n.length;){r&&void 0!==t[n[o]]||(t[n[o]]=e[n[o]]);o++}return t},"extend","Use `assign`."),cy=sy(function(t,e){return uy(t,e,!0)},"merge","Use `assign`.");function fy(t,e,r){var n=e.prototype,o=t.prototype=Object.create(n);o.constructor=t;o._super=n;r&&jd(o,r)}function ly(t,e){return function(){return t.apply(e,arguments)}}P=(()=>{function t(t,e){void 0===e&&(e={});return new oy(t,Od({recognizers:ry.concat()},e))}t.VERSION="2.0.17-rc";t.DIRECTION_ALL=iv;t.DIRECTION_DOWN=rv;t.DIRECTION_LEFT=Zd;t.DIRECTION_RIGHT=tv;t.DIRECTION_UP=ev;t.DIRECTION_HORIZONTAL=nv;t.DIRECTION_VERTICAL=ov;t.DIRECTION_NONE=Qd;t.DIRECTION_DOWN=rv;t.INPUT_START=$d;t.INPUT_MOVE=2;t.INPUT_END=Jd;t.INPUT_CANCEL=Kd;t.STATE_POSSIBLE=1;t.STATE_BEGAN=2;t.STATE_CHANGED=4;t.STATE_ENDED=8;t.STATE_RECOGNIZED=8;t.STATE_CANCELLED=16;t.STATE_FAILED=32;t.Manager=oy;t.Input=Ov;t.TouchAction=lv;t.TouchInput=Rv;t.MouseInput=Nv;t.PointerEventInput=Iv;t.TouchMouseInput=qv;t.SingleTouchInput=ay;t.Recognizer=Vv;t.AttrRecognizer=Hv;t.Tap=Bv;t.Pan=Jv;t.Swipe=Kv;t.Pinch=Qv;t.Rotate=Zv;t.Press=ty;t.on=wv;t.off=Ev;t.each=uv;t.merge=cy;t.extend=uy;t.bindFn=ly;t.assign=jd;t.inherit=fy;t.bindFn=ly;t.prefixed=Ld;t.toArray=Dv;t.inArray=Sv;t.uniqueArray=Lv;t.splitStr=_v;t.boolOrFn=cv;t.hasParent=pv;t.addEventListeners=wv;t.removeEventListeners=Ev;t.defaults=jd({},ey,{preset:ry});return t})(),Mi=P;function py(t,e){var r,n,o,i=void 0!==Ul&&Tf(t)||t["@@iterator"];if(i)return r=!0,n=!1,{s:function(){i=i.call(t)},n:function(){var t=i.next();r=t.done;return t},e:function(t){n=!0;o=t},f:function(){try{r||null==i.return||i.return()}finally{if(n)throw o}}};if(Kl(t)||(i=((t,e)=>{if(t){if("string"==typeof t)return hy(t,e);var r=Bl(r=Object.prototype.toString.call(t)).call(r,8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);return"Map"===r||"Set"===r?_f(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?hy(t,e):void 0}})(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var a=0,s=function(){};return{s:s,n:function(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}},e:function(t){throw t},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function hy(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}var dy=Ul("DELETE");function vy(){var t=yy.apply(void 0,arguments);!function t(e){for(var r=0,n=ep(e);r<n.length;r++){var o=n[r];e[o]===dy?delete e[o]:"object"===gu(e[o])&&null!==e[o]&&t(e[o])}}(t);return t}function yy(){for(var t,e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];if(r.length<2)return r[0];if(2<r.length)return yy.apply(void 0,Xl(t=[vy(r[0],r[1])]).call(t,wl(Bl(r).call(r,2))));var o,i=r[0],a=r[1],s=py($l(a));try{for(s.s();!(o=s.n()).done;){var u=o.value;Object.prototype.propertyIsEnumerable.call(a,u)&&(a[u]===dy?delete i[u]:null===i[u]||null===a[u]||"object"!==gu(i[u])||"object"!==gu(a[u])||Kl(i[u])||Kl(a[u])?i[u]=function e(t){return Kl(t)?yc(t).call(t,function(t){return e(t)}):"object"===gu(t)&&null!==t?yy({},t):t}(a[u]):i[u]=yy(i[u],a[u]))}}catch(t){s.e(t)}finally{s.f()}return i}var gy="undefined"!=typeof window?window.Hammer||Mi:function(){return{on:t,off:t,destroy:t,emit:t,get:function(){return{set:t}}};function t(){}};function my(e){var r=this;this._cleanupQueue=[];this.active=!1;this._dom={container:e,overlay:document.createElement("div")};this._dom.overlay.classList.add("vis-overlay");this._dom.container.appendChild(this._dom.overlay);this._cleanupQueue.push(function(){r._dom.overlay.parentNode.removeChild(r._dom.overlay)});var n=gy(this._dom.overlay);n.on("tap",Vu(t=this._onTapOverlay).call(t,this));this._cleanupQueue.push(function(){n.destroy()});var t=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];hp(t).call(t,function(t){n.on(t,function(t){t.srcEvent.stopPropagation()})});if(document&&document.body){this._onClick=function(t){((t,e)=>{for(;t;){if(t===e)return 1;t=t.parentNode}})(t.target,e)||r.deactivate()};document.body.addEventListener("click",this._onClick);this._cleanupQueue.push(function(){document.body.removeEventListener("click",r._onClick)})}this._escListener=function(t){("key"in t?"Escape"===t.key:27===t.keyCode)&&r.deactivate()}}m(my.prototype);my.current=null;my.prototype.destroy=function(){this.deactivate();var t,e,r=py(xp(t=qp(t=this._cleanupQueue).call(t,0)).call(t));try{for(r.s();!(e=r.n()).done;){var n=e.value;n()}}catch(t){r.e(t)}finally{r.f()}};my.prototype.activate=function(){my.current&&my.current.deactivate();my.current=this;this.active=!0;this._dom.overlay.style.display="none";this._dom.container.classList.add("vis-active");this.emit("change");this.emit("activate");document.body.addEventListener("keydown",this._escListener)};my.prototype.deactivate=function(){this.active=!1;this._dom.overlay.style.display="block";this._dom.container.classList.remove("vis-active");document.body.removeEventListener("keydown",this._escListener);this.emit("change");this.emit("deactivate")};my.prototype._onTapOverlay=function(t){this.activate();t.srcEvent.stopPropagation()};function by(t){if(_y(t))return t;throw Ey(wy(t)+" is not a constructor")}var xy={},I={get exports(){return xy},set exports(t){xy=t}},_y=gn,wy=jt,Ey=TypeError,x=h,o=V,Ty=Q,Oy=d,Sy=by,ky=Nt,jy=a,Ay=mo,zi=r,Py=o("Reflect","construct"),Iy=Object.prototype,Dy=[].push,Ly=zi(function(){function t(){}return!(Py(function(){},[],t)instanceof t)}),Cy=!zi(function(){Py(function(){})}),g=Ly||Cy,A=(x({target:"Reflect",stat:!0,forced:g,sham:g},{construct:function(t,e){Sy(t);ky(e);var r=arguments.length<3?t:Sy(arguments[2]);if(Cy&&!Ly)return Py(t,e,r);if(t==r){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];Ty(Dy,n,e);return new(Ty(Oy,t,n))}n=r.prototype,r=Ay(jy(n)?n:Iy),n=Ty(t,r,e);return jy(n)?n:r}}),u),S=A.Reflect.construct,n=S,b=n,Ry=(R=I,R.exports=b,e(xy));function My(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var Ny={},y={get exports(){return Ny},set exports(t){Ny=t}},Fy={},_={get exports(){return Fy},set exports(t){Fy=t}},lt=O,ht=lt,Fo=ht,k=Fo;R=_,R.exports=k;R=y,R.exports=Fy;var zy=e(Ny),Uy={},L={get exports(){return Uy},set exports(t){Uy=t}},qy={},j={get exports(){return qy},set exports(t){qy=t}},qn=h,T=Fi,E=(qn({target:"Object",stat:!0},{setPrototypeOf:T}),u),P=E.Object.setPrototypeOf,Mi=P,m=Mi,gn=m,d=gn,o=d,zi=o;R=j,R.exports=zi;R=L,R.exports=qy;var Yy=e(Uy),Wy={},x={get exports(){return Wy},set exports(t){Wy=t}},Gy={},g={get exports(){return Gy},set exports(t){Gy=t}},A=v,S=A,n=S,I=n;R=g,R.exports=I;R=x,R.exports=Gy;var Xy=e(Wy);function Vy(t,e){var r;Vy=Yy?Xy(r=Yy).call(r):function(t,e){t.__proto__=e;return t};return Vy(t,e)}function By(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=zy(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}});Br(t,"prototype",{writable:!1});e&&Vy(t,e)}function Hy(t,e){if(e&&("object"===gu(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return My(t)}var $y={},b={get exports(){return $y},set exports(t){$y=t}},Jy={},O={get exports(){return Jy},set exports(t){Jy=t}},lt=w,ht=lt,Fo=ht,_=Fo;R=O,R.exports=_;R=b,R.exports=Jy;var Ky=e($y);function Qy(t){var e;Qy=Yy?Xy(e=Ky).call(e):function(t){return t.__proto__||Ky(t)};return Qy(t)}var Zy,tg,eg,rg={},k={get exports(){return rg},set exports(t){rg=t}},ng={},y={get exports(){return ng},set exports(t){ng=t}};Zy=y,tg=Hr,eg=ru,Zy.exports=og,Zy.exports.__esModule=!0,Zy.exports.default=Zy.exports;function og(t){return Zy.exports=og="function"==typeof tg&&"symbol"==typeof eg?function(t){return typeof t}:function(t){return t&&"function"==typeof tg&&t.constructor===tg&&t!==tg.prototype?"symbol":typeof t},Zy.exports.__esModule=!0,Zy.exports.default=Zy.exports,og(t)}var ig={},qn={get exports(){return ig},set exports(t){ig=t}},ag={},T={get exports(){return ag},set exports(t){ag=t}},E=Tl,P=E,Mi=P,m=Mi;R=T,R.exports=m;R=qn,R.exports=ag;function sg(t,e){this.stopped=t;this.result=e}function ug(t,e,r){function n(t){i&&Gg(i,"normal",t);return new sg(!0,t)}function o(t){return p?(Ng(t),v?y(t[0],t[1],n):y(t[0],t[1])):v?y(t,n):y(t)}var i,a,s,u,c,f,l=r&&r.that,p=!(!r||!r.AS_ENTRIES),h=!(!r||!r.IS_RECORD),d=!(!r||!r.IS_ITERATOR),v=!(!r||!r.INTERRUPTED),y=Rg(e,l);if(h)i=t.iterator;else if(d)i=t;else{l=Wg(t);if(!l)throw Xg(Fg(t)+" is not iterable");if(zg(l)){for(a=0,s=Ug(t);a<s;a++){u=o(t[a]);if(u&&qg(Vg,u))return u}return new sg(!1)}i=Yg(t,l)}c=(h?t:i).next;for(;!(f=Mg(c,i)).done;){try{u=o(f.value)}catch(t){Gg(i,"throw",t)}if("object"==typeof u&&u&&qg(Vg,u))return u}return new sg(!1)}function cg(t,e){var r,n=Hg(a0,this);if(Jg)r=Jg(o0(),n?$g(this):a0);else{r=n?this:Kg(a0);Qg(r,n0,"Error")}void 0!==e&&Qg(r,"message",r0(e));t0(r,cg,r.stack,1);2<arguments.length&&Zg(r,arguments[2]);n=[];e0(t,i0,{that:n});Qg(r,"errors",n);return r}function fg(t){var e=s0(t);c0&&e&&!e[f0]&&u0(e,f0,{configurable:!0,get:function(){return this}})}function lg(t,e){if(l0(e,t))return t;throw p0("Incorrect invocation")}function pg(t,e){var r=h0(t).constructor;return void 0===r||v0(r=h0(r)[y0])?e:d0(r)}function hg(t){return function(){D0(t)}}function dg(t){D0(t.data)}function vg(t){g0.postMessage(j0(t),yg.protocol+"//"+yg.host)}var yg,gg,mg={},gn={get exports(){return mg},set exports(t){mg=t}},bg={},d={get exports(){return bg},set exports(t){bg=t}},xg=oe,_g=D,wg=st,Eg=Ut,Tg=a,Og=f,o=i,Sg=Error,kg=o("".replace),j=String(Sg("zxcasd").stack),jg=/\n\s*at [^:]*:[^\n]*/,Ag=jg.test(j),zi=r,Pg=q,L=!zi(function(){var t=Error("a");if(!("stack"in t))return!0;Object.defineProperty(t,"stack",Pg(1,7));return 7!==t.stack}),Ig=f,Dg=function(t,e){if(Ag&&"string"==typeof t&&!Sg.prepareStackTrace)for(;e--;)t=kg(t,jg,"");return t},Lg=L,Cg=Error.captureStackTrace,Rg=Mt,Mg=ct,Ng=Nt,Fg=jt,zg=Dc,Ug=wr,qg=c,Yg=Cc,Wg=Lc,Gg=Ic,Xg=TypeError,Vg=sg.prototype,Bg=Pr,v=h,Hg=c,$g=Ni,Jg=Fi,A=function(t,e,r){for(var n=_g(e),o=Eg.f,i=wg.f,a=0;a<n.length;a++){var s=n[a];xg(t,s)||r&&xg(r,s)||o(t,s,i(e,s))}},Kg=mo,Qg=f,S=q,Zg=function(t,e){Tg(e)&&"cause"in e&&Og(t,"cause",e.cause)},t0=function(t,e,r,n){Lg&&(Cg?Cg(t,e):Ig(t,"stack",Dg(r,n)))},e0=ug,r0=function(t,e){return void 0===t?arguments.length<2?"":e:Bg(t)},n=p,n0=n("toStringTag"),o0=Error,i0=[].push,a0=(Jg?Jg(cg,o0):A(cg,o0,{name:!0}),cg.prototype=Kg(o0.prototype,{constructor:S(1,cg),message:S(1,""),name:S(1,"AggregateError")})),s0=(v({global:!0,constructor:!0,arity:2},{AggregateError:cg}),V),u0=zr,g=p,c0=ut,f0=g("species"),l0=c,p0=TypeError,h0=Nt,d0=by,v0=Y,I=p,y0=I("species"),x=St,w=/(?:ipad|iphone|ipod).*applewebkit/i.test(x),g0=t,m0=Q,lt=Mt,b0=s,x0=oe,ht=r,_0=ie,w0=Ri,E0=Ct,T0=Rl,Fo=w,O=Xi,_=g0.setImmediate,b=g0.clearImmediate,O0=g0.process,S0=g0.Dispatch,k0=g0.Function,y=g0.MessageChannel,j0=g0.String,A0=0,P0={},I0="onreadystatechange",D0=(ht(function(){yg=g0.location}),function(t){if(x0(P0,t)){var e=P0[t];delete P0[t];e()}});if(!_||!b){_=function(t){T0(arguments.length,1);var e=b0(t)?t:k0(t),r=w0(arguments,1);P0[++A0]=function(){m0(e,void 0,r)};gg(A0);return A0};b=function(t){delete P0[t]};if(O)gg=function(t){O0.nextTick(hg(t))};else if(S0&&S0.now)gg=function(t){S0.now(hg(t))};else if(y&&!Fo){E=new y;P=E.port2;E.port1.onmessage=dg;gg=lt(P.postMessage,P)}else if(g0.addEventListener&&b0(g0.postMessage)&&!g0.importScripts&&yg&&"file:"!==yg.protocol&&!ht(vg)){gg=vg;g0.addEventListener("message",dg,!1)}else gg=I0 in E0("script")?function(t){_0.appendChild(E0("script"))[I0]=function(){_0.removeChild(this);D0(t)}}:function(t){setTimeout(hg(t),0)}}function L0(){this.head=null;this.tail=null}var C0,R0,M0,N0,Mi={set:_,clear:b},T=(L0.prototype={add:function(t){var e={item:t,next:null},r=this.tail;r?r.next=e:this.head=e;this.tail=e},get:function(){var t=this.head;if(t){var e=this.head=t.next;null===e&&(this.tail=null);return t.item}}},L0),m=St,qn=/ipad|iphone|ipod/i.test(m)&&"undefined"!=typeof Pebble,D=St,o=/web0s(?!.*chrome)/i.test(D),j=t,zi=Mt,L=st.f,F0=Mi.set,Ni=T,Fi=w,n=qn,A=o,z0=Xi,S=j.MutationObserver||j.WebKitMutationObserver,v=j.document,U0=j.process,g=j.Promise,I=L(j,"queueMicrotask"),x=I&&I.value;if(!x){var q0=new Ni,Y0=function(){var t,e;z0&&(t=U0.domain)&&t.exit();for(;e=q0.get();)try{e()}catch(t){q0.head&&C0();throw t}t&&t.enter()};if(Fi||z0||A||!S||!v)if(!n&&g&&g.resolve){Q=g.resolve(void 0);Q.constructor=g;N0=zi(Q.then,Q);C0=function(){N0(Y0)}}else if(z0)C0=function(){U0.nextTick(Y0)};else{F0=zi(F0,j);C0=function(){F0(Y0)}}else{R0=!0;M0=v.createTextNode("");new S(Y0).observe(M0,{characterData:!0});C0=function(){M0.data=R0=!R0}}x=function(t){q0.head||C0();q0.add(t)}}function W0(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}function G0(t){var r,n;this.promise=new t(function(t,e){if(void 0!==r||void 0!==n)throw om("Bad Promise constructor");r=t;n=e});this.resolve=nm(r);this.reject=nm(n)}function X0(e){sm(hm,am,function(){var t=e.facade;im?Sm.emit("rejectionHandled",t):zm(Im,t,e.value)})}var V0,B0,ie=x,Ri=t,O=Ri.Promise,Fo="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,y=Fo,E=Xi,lt=!y&&!E&&"object"==typeof window&&"object"==typeof document,P=t,H0=O,ht=s,_=ve,$0=H,b=p,J0=lt,K0=Fo,Q0=kt,Z0=H0&&H0.prototype,tm=b("species"),em=!1,rm=ht(P.PromiseRejectionEvent),m=_("Promise",function(){var t=$0(H0),e=t!==String(H0);if(!e&&66===Q0)return!0;if(!Z0.catch||!Z0.finally)return!0;if(!Q0||Q0<51||!/native code/.test(t)){var t=new H0(function(t){t(1)}),r=function(t){t(function(){},function(){})},n=t.constructor={};n[tm]=r;em=t.then(function(){})instanceof r;if(!em)return!0}return!e&&(J0||K0)&&!rm}),D={CONSTRUCTOR:m,REJECTION_EVENT:rm,SUBCLASSING:em},st={},nm=At,om=TypeError,w=(st.f=function(t){return new G0(t)},h),im=Xi,am=t,sm=ct,qn=Fr,o=Yr,L=fg,um=At,cm=s,fm=a,lm=lg,pm=pg,hm=Mi.set,dm=ie,vm=function(t,e){try{1==arguments.length?console.error(t):console.error(t,e)}catch(t){}},ym=W0,gm=T,I=qo,Ni=O,Fi=D,A=st,mm="Promise",n=Fi.CONSTRUCTOR,bm=Fi.REJECTION_EVENT,xm=I.getterFor(mm),_m=I.set,g=Ni&&Ni.prototype,wm=Ni,Em=g,Tm=am.TypeError,Om=am.document,Sm=am.process,km=A.f,jm=km,Am=!!(Om&&Om.createEvent&&am.dispatchEvent),Pm="unhandledrejection",Im="rejectionhandled",Dm=1,Lm=2,Cm=1,Rm=2,Mm=function(t){var e;return!(!fm(t)||!cm(e=t.then))&&e},Nm=function(t,e){var r,n,o,i=e.value,a=e.state==Dm,s=a?t.ok:t.fail,u=t.resolve,c=t.reject,f=t.domain;try{if(s){if(!a){e.rejection===Rm&&X0(e);e.rejection=Cm}if(!0===s)r=i;else{f&&f.enter();r=s(i);if(f){f.exit();o=!0}}r===t.promise?c(Tm("Promise-chain cycle")):(n=Mm(r))?sm(n,r,u,c):u(r)}else c(i)}catch(t){f&&!o&&f.exit();c(t)}},Fm=function(r,n){if(!r.notified){r.notified=!0;dm(function(){for(var t,e=r.reactions;t=e.get();)Nm(t,r);r.notified=!1;n&&!r.rejection&&Um(r)})}},zm=function(t,e,r){var n,o;if(Am){n=Om.createEvent("Event");n.promise=e;n.reason=r;n.initEvent(t,!1,!0);am.dispatchEvent(n)}else n={promise:e,reason:r};!bm&&(o=am["on"+t])?o(n):t===Pm&&vm("Unhandled promise rejection",r)},Um=function(n){sm(hm,am,function(){var t=n.facade,e=n.value,r=qm(n);if(r){r=ym(function(){im?Sm.emit("unhandledRejection",e,t):zm(Pm,t,e)});n.rejection=im||qm(n)?Rm:Cm;if(r.error)throw r.value}})},qm=function(t){return t.rejection!==Cm&&!t.parent},Ym=function(e,r,n){return function(t){e(r,t,n)}},Wm=function(t,e,r){if(!t.done){t.done=!0;r&&(t=r);t.value=e;t.state=Lm;Fm(t,!0)}},Gm=function(r,t,e){if(!r.done){r.done=!0;e&&(r=e);try{if(r.facade===t)throw Tm("Promise can't be resolved itself");var n=Mm(t);if(n)dm(function(){var e={done:!1};try{sm(n,t,Ym(Gm,e,r),Ym(Wm,e,r))}catch(t){Wm(e,t,r)}});else{r.value=t;r.state=Dm;Fm(r,!1)}}catch(t){Wm({done:!1},t,r)}}};if(n){wm=function(t){lm(this,Em);um(t);sm(V0,this);var e=xm(this);try{t(Ym(Gm,e),Ym(Wm,e))}catch(t){Wm(e,t)}};Em=wm.prototype;V0=function(t){_m(this,{type:mm,done:!1,notified:!1,parent:!1,reactions:new gm,rejection:!1,state:0,value:void 0})};V0.prototype=qn(Em,"then",function(t,e){var r=xm(this),n=km(pm(this,wm));r.parent=!0;n.ok=!cm(t)||t;n.fail=cm(e)&&e;n.domain=im?Sm.domain:void 0;0==r.state?r.reactions.add(n):dm(function(){Nm(n,r)});return n.promise});B0=function(){var t=new V0,e=xm(t);this.promise=t;this.resolve=Ym(Gm,e);this.reject=Ym(Wm,e)};A.f=km=function(t){return t===wm||void 0===t?new B0:jm(t)}}w({global:!0,constructor:!0,wrap:!0,forced:n},{Promise:wm});o(wm,mm,!1,!0);L(mm);var Xm=O,Q=bf,zi=D.CONSTRUCTOR,j=zi||!Q(function(t){Xm.all(t).then(void 0,function(){})}),v=h,Vm=ct,Bm=At,Hm=st,$m=W0,Jm=ug,S=j,x=(v({target:"Promise",stat:!0,forced:S},{all:function(t){var s=this,e=Hm.f(s),u=e.resolve,c=e.reject,r=$m(function(){var n=Bm(s.resolve),o=[],i=0,a=1;Jm(t,function(t){var e=i++,r=!1;a++;Vm(n,s,t).then(function(t){if(!r){r=!0;o[e]=t;--a||u(o)}},c)});--a||u(o)});r.error&&c(r.value);return e.promise}}),h),Ri=D.CONSTRUCTOR,y=O;y&&y.prototype;x({target:"Promise",proto:!0,forced:Ri,real:!0},{catch:function(t){return this.then(void 0,t)}});function Km(t,e){ib(t);if(ab(e)&&e.constructor===t)return e;var r=sb.f(t),n=r.resolve;n(e);return r.promise}var E=h,Qm=ct,Zm=At,tb=st,eb=W0,rb=ug,ve=j,H=(E({target:"Promise",stat:!0,forced:ve},{race:function(t){var r=this,n=tb.f(r),o=n.reject,e=eb(function(){var e=Zm(r.resolve);rb(t,function(t){Qm(e,r,t).then(n.resolve,o)})});e.error&&o(e.value);return n.promise}}),h),nb=ct,ob=st,lt=D.CONSTRUCTOR,ib=(H({target:"Promise",stat:!0,forced:lt},{reject:function(t){var e=ob.f(this);nb(e.reject,void 0,t);return e.promise}}),Nt),ab=a,sb=st,Fo=h,b=V,ub=O,ht=D.CONSTRUCTOR,cb=Km,fb=b("Promise"),lb=!ht,P=(Fo({target:"Promise",stat:!0,forced:!0},{resolve:function(t){return cb(lb&&this===fb?ub:this,t)}}),h),pb=ct,hb=At,db=st,vb=W0,yb=ug,_=j,m=(P({target:"Promise",stat:!0,forced:_},{allSettled:function(t){var s=this,e=db.f(s),u=e.resolve,r=e.reject,n=vb(function(){var n=hb(s.resolve),o=[],i=0,a=1;yb(t,function(t){var e=i++,r=!1;a++;pb(n,s,t).then(function(t){if(!r){r=!0;o[e]={status:"fulfilled",value:t};--a||u(o)}},function(t){if(!r){r=!0;o[e]={status:"rejected",reason:t};--a||u(o)}})});--a||u(o)});n.error&&r(n.value);return e.promise}}),h),gb=ct,mb=At,bb=V,xb=st,_b=W0,wb=ug,Xi=j,Eb="No one promise resolved",Mi=(m({target:"Promise",stat:!0,forced:Xi},{any:function(t){var u=this,c=bb("AggregateError"),e=xb.f(u),f=e.resolve,l=e.reject,r=_b(function(){var n=mb(u.resolve),o=[],i=0,a=1,s=!1;wb(t,function(t){var e=i++,r=!1;a++;gb(n,u,t).then(function(t){if(!r&&!s){s=!0;f(t)}},function(t){if(!r&&!s){r=!0;o[e]=t;--a||l(new c(o,Eb))}})});--a||l(new c(o,Eb))});r.error&&l(r.value);return e.promise}}),h),ie=O,T=r,Tb=V,Ob=s,Sb=pg,kb=Km,jb=ie&&ie.prototype,Fi=!!ie&&T(function(){jb.finally.call({then:function(){}},function(){})}),I=(Mi({target:"Promise",proto:!0,real:!0,forced:Fi},{finally:function(e){var r=Sb(this,Tb("Promise")),t=Ob(e);return this.then(t?function(t){return kb(r,e()).then(function(){return t})}:e,t?function(t){return kb(r,e()).then(function(){throw t})}:e)}}),u),Ni=I.Promise,g=Ni,qn=g,A=qn,w=A,n=h,Ab=st,Pb=W0,o=(n({target:"Promise",stat:!0,forced:!0},{try:function(t){var e=Ab.f(this),r=Pb(t);(r.error?e.reject:e.resolve)(r.value);return e.promise}}),w),L=o;R=d,R.exports=L;R=gn,R.exports=bg;var Ib,Db,Lb,Cb,Rb,Mb,Nb,Fb,zb,Ub,qb,Yb={},zi={get exports(){return Yb},set exports(t){Yb=t}},Wb={},Q={get exports(){return Wb},set exports(t){Wb=t}},v=l,S=v,y=S,x=y;R=Q,R.exports=x;R=zi,R.exports=Wb;Ib=k,Db=ng.default,Lb=B,Cb=Hr,Rb=Ny,Mb=$y,Nb=ig,Fb=Uy,zb=mg,Ub=Yb,qb=Zf,Ib.exports=Gb,Ib.exports.__esModule=!0,Ib.exports.default=Ib.exports;function Gb(){Ib.exports=function(){return a},Ib.exports.__esModule=!0,Ib.exports.default=Ib.exports;var a={},t=Object.prototype,f=t.hasOwnProperty,l=Lb||function(t,e,r){t[e]=r.value},e="function"==typeof Cb?Cb:{},n=e.iterator||"@@iterator",r=e.asyncIterator||"@@asyncIterator",o=e.toStringTag||"@@toStringTag";function i(t,e,r){return Lb(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{i({},"")}catch(t){i=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var o,i,a,s,u=e&&e.prototype instanceof d?e:d,u=Rb(u.prototype),c=new _(n||[]);return l(u,"_invoke",{value:(o=t,i=r,a=c,s="suspendedStart",function(t,e){if("executing"===s)throw new Error("Generator is already running");if("completed"===s){if("throw"===t)throw e;return E()}for(a.method=t,a.arg=e;;){var r=a.delegate;if(r){r=function t(e,r){var n=r.method,o=e.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;n=p(o,e.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,h;o=n.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,h):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)}(r,a);if(r){if(r===h)continue;return r}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if("suspendedStart"===s)throw s="completed",a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);s="executing";r=p(o,i,a);if("normal"===r.type){if(s=a.done?"completed":"suspendedYield",r.arg===h)continue;return{value:r.arg,done:a.done}}"throw"===r.type&&(s="completed",a.method="throw",a.arg=r.arg)}})}),u}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}a.wrap=s;var h={};function d(){}function u(){}function c(){}var e={},v=(i(e,n,function(){return this}),Mb),v=v&&v(v(w([]))),y=(v&&v!==t&&f.call(v,n)&&(e=v),c.prototype=d.prototype=Rb(e));function g(t){var e;Nb(e=["next","throw","return"]).call(e,function(e){i(t,e,function(t){return this._invoke(e,t)})})}function m(u,c){var e;l(this,"_invoke",{value:function(r,n){function t(){return new c(function(t,e){!function e(t,r,n,o){var i,a,s=p(u[t],u,r);if("throw"!==s.type)return i=s.arg,a=i.value,a&&"object"==Db(a)&&f.call(a,"__await")?c.resolve(a.__await).then(function(t){e("next",t,n,o)},function(t){e("throw",t,n,o)}):c.resolve(a).then(function(t){i.value=t,n(i)},function(t){return e("throw",t,n,o)});o(s.arg)}(r,n,t,e)})}return e=e?e.then(t,t):t()}})}function b(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function _(t){this.tryEntries=[{tryLoc:"root"}],Nb(t).call(t,b,this),this.reset(!0)}function w(e){if(e){var r,t=e[n];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return r=-1,t=function t(){for(;++r<e.length;)if(f.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t},t.next=t}return{next:E}}function E(){return{value:void 0,done:!0}}return u.prototype=c,l(y,"constructor",{value:c,configurable:!0}),l(c,"constructor",{value:u,configurable:!0}),u.displayName=i(c,o,"GeneratorFunction"),a.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===u||"GeneratorFunction"===(e.displayName||e.name))},a.mark=function(t){return Fb?Fb(t,c):(t.__proto__=c,i(t,o,"GeneratorFunction")),t.prototype=Rb(y),t},a.awrap=function(t){return{__await:t}},g(m.prototype),i(m.prototype,r,function(){return this}),a.AsyncIterator=m,a.async=function(t,e,r,n,o){void 0===o&&(o=zb);var i=new m(s(t,e,r,n),o);return a.isGeneratorFunction(e)?i:i.next().then(function(t){return t.done?t.value:i.next()})},g(y),i(y,o,"Generator"),i(y,n,function(){return this}),i(y,"toString",function(){return"[object Generator]"}),a.keys=function(t){var e,r=Object(t),n=[];for(e in r)n.push(e);return Ub(n).call(n),function t(){for(;n.length;){var e=n.pop();if(e in r)return t.value=e,t.done=!1,t}return t.done=!0,t}},a.values=w,_.prototype={constructor:_,reset:function(t){var e;if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,Nb(e=this.tryEntries).call(e,x),!t)for(var r in this)"t"===r.charAt(0)&&f.call(this,r)&&!isNaN(+qb(r).call(r,1))&&(this[r]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(r){if(this.done)throw r;var n=this;function t(t,e){return i.type="throw",i.arg=r,n.next=t,e&&(n.method="next",n.arg=void 0),!!e}for(var e=this.tryEntries.length-1;0<=e;--e){var o=this.tryEntries[e],i=o.completion;if("root"===o.tryLoc)return t("end");if(o.tryLoc<=this.prev){var a=f.call(o,"catchLoc"),s=f.call(o,"finallyLoc");if(a&&s){if(this.prev<o.catchLoc)return t(o.catchLoc,!0);if(this.prev<o.finallyLoc)return t(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return t(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return t(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;0<=r;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&f.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,h):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),x(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;x(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:w(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},a}var Ri=rg(),Xb=Ri;try{regeneratorRuntime=Ri}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=Ri:Function("r","regeneratorRuntime = r")(Ri)}function Vb(t){f1(t,y1,{value:{objectID:"O"+g1++,weakData:{}}})}function Bb(r,t,e){var n=-1!==r.indexOf("Map"),i=-1!==r.indexOf("Weak"),o=n?"set":"add",a=x1[r],s=a&&a.prototype,u={};if(I1&&S1(a)&&(i||s.forEach&&!w1(function(){(new a).entries().next()}))){var c=t(function(t,e){D1(O1(t,f),{type:r,collection:new a});null!=e&&T1(e,t[o],{that:t,AS_ENTRIES:n})}),f=c.prototype,l=L1(r);P1(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(n){var o="add"==n||"set"==n;n in s&&(!i||"clear"!=n)&&E1(f,n,function(t,e){var r=l(this).collection;return o||!i||k1(t)?(r=r[n](0===t?0:t,e),o?this:r):"get"==n&&void 0})});i||A1(f,"size",{configurable:!0,get:function(){return l(this).collection.size}})}else{c=e.getConstructor(t,r,n,o);_1.enable()}j1(c,r,!1,!0);u[r]=c;b1({global:!0,forced:!0},u);i||e.setStrong(c,r,n);return c}function Hb(t){var e=t.some;return t===tx||Q1(tx,t)&&e===tx.some?Z1:e}function $b(t){var e=t.keys;return t===sx||ix(sx,t)&&e===sx.keys||ox(ux,nx(t))?ax:e}function Jb(t,e){var r=t.length,n=px(r/2);if(r<8){for(var o,i,a=t,s=e,u=a.length,c=1;c<u;){i=c;o=a[c];for(;i&&0<s(a[i-1],o);)a[i]=a[--i];i!==c++&&(a[i]=o)}return a}for(var f=t,l=Jb(lx(t,0,n),e),p=Jb(lx(t,n),e),h=e,d=l.length,v=p.length,y=0,g=0;y<d||g<v;)f[y+g]=y<d&&g<v?h(l[y],p[g])<=0?l[y++]:p[g++]:y<d?l[y++]:p[g++];return f}function Kb(t){var e=t.sort;return t===Ax||kx(Ax,t)&&e===Ax.sort?jx:e}function Qb(t){var e=t.values;return t===Mx||Cx(Mx,t)&&e===Mx.values||Lx(Nx,Dx(t))?Rx:e}function Zb(t){var e=t.entries;return t===Vx||Gx(Vx,t)&&e===Vx.entries||Wx(Bx,Yx(t))?Xx:e}var t1={},E={get exports(){return t1},set exports(t){t1=t}},e1={},ve={get exports(){return e1},set exports(t){e1=t}},H=r,lt=H(function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),D=r,r1=a,n1=z,o1=lt,i1=Object.isExtensible,b=D(function(){i1(1)}),ht=b||o1?function(t){return!(!r1(t)||o1&&"ArrayBuffer"==n1(t))&&(!i1||i1(t))}:i1,Fo=r,P=!Fo(function(){return Object.isExtensible(Object.preventExtensions({}))}),a1=h,s1=i,_=Un,u1=a,c1=oe,f1=Ut.f,l1=io,p1=Yn,h1=ht,ct=Dt,d1=P,v1=!1,y1=ct("meta"),g1=0,m1=ve.exports={enable:function(){m1.enable=function(){};v1=!0;var o=l1.f,i=s1([].splice),t={};t[y1]=1;if(o(t).length){l1.f=function(t){for(var e=o(t),r=0,n=e.length;r<n;r++)if(e[r]===y1){i(e,r,1);break}return e};a1({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:p1.f})}},fastKey:function(t,e){if(!u1(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!c1(t,y1)){if(!h1(t))return"F";if(!e)return"E";Vb(t)}return t[y1].objectID},getWeakData:function(t,e){if(!c1(t,y1)){if(!h1(t))return!0;if(!e)return!1;Vb(t)}return t[y1].weakData},onFreeze:function(t){d1&&v1&&h1(t)&&!c1(t,y1)&&Vb(t);return t}},b1=(_[y1]=!0,h),x1=t,_1=e1,w1=r,E1=f,T1=ug,O1=lg,S1=s,k1=a,j1=Yr,A1=Ut.f,P1=K.forEach,I1=ut,j=qo,D1=j.set,L1=j.getterFor,C1=Fr,R1=mo,M1=zr,N1=function(t,e,r){for(var n in e)r&&r.unsafe&&t[n]?t[n]=e[n]:C1(t,n,e[n],r);return t},F1=Mt,z1=lg,U1=Y,q1=ug,Y1=es,W1=rs,G1=fg,X1=ut,V1=e1.fastKey,m=qo,B1=m.set,H1=m.getterFor,Xi={getConstructor:function(t,r,n,o){function i(t,e,r){var n,o,i=u(t),a=s(t,e);if(a)a.value=r;else{i.last=a={index:o=V1(e,!0),key:e,value:r,previous:n=i.last,next:void 0,removed:!1};i.first||(i.first=a);n&&(n.next=a);X1?i.size++:t.size++;"F"!==o&&(i.index[o]=a)}return t}function s(t,e){var r,n=u(t),o=V1(e);if("F"!==o)return n.index[o];for(r=n.first;r;r=r.next)if(r.key==e)return r}var e=t(function(t,e){z1(t,a);B1(t,{type:r,index:R1(null),first:void 0,last:void 0,size:0});X1||(t.size=0);U1(e)||q1(e,t[o],{that:t,AS_ENTRIES:n})}),a=e.prototype,u=H1(r);N1(a,{clear:function(){for(var t=u(this),e=t.index,r=t.first;r;){r.removed=!0;r.previous&&(r.previous=r.previous.next=void 0);delete e[r.index];r=r.next}t.first=t.last=void 0;X1?t.size=0:this.size=0},delete:function(t){var e=u(this),r=s(this,t);if(r){var n=r.next,o=r.previous;delete e.index[r.index];r.removed=!0;o&&(o.next=n);n&&(n.previous=o);e.first==r&&(e.first=n);e.last==r&&(e.last=o);X1?e.size--:this.size--}return!!r},forEach:function(t){for(var e,r=u(this),n=F1(t,1<arguments.length?arguments[1]:void 0);e=e?e.next:r.first;){n(e.value,e.key,this);for(;e&&e.removed;)e=e.previous}},has:function(t){return!!s(this,t)}});N1(a,n?{get:function(t){var e=s(this,t);return e&&e.value},set:function(t,e){return i(this,0===t?0:t,e)}}:{add:function(t){return i(this,t=0===t?0:t,t)}});X1&&M1(a,"size",{configurable:!0,get:function(){return u(this).size}});return e},setStrong:function(t,e,r){var n=e+" Iterator",o=H1(e),i=H1(n);Y1(t,e,function(t,e){B1(this,{type:n,target:t,state:o(t),kind:e,last:void 0})},function(){for(var t=i(this),e=t.kind,r=t.last;r&&r.removed;)r=r.previous;return t.target&&(t.last=r=r?r.next:t.state.first)?W1("keys"==e?r.key:"values"==e?r.value:[r.key,r.value],!1):(t.target=void 0,W1(void 0,!0))},r?"entries":"values",!r,!0);G1(e)}},O=Bb,ie=Xi,T=(O("Map",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},ie),u),Mi=T.Map,Fi=Mi,I=Fi,$1=(R=E,R.exports=I,e(t1)),J1={},Ni={get exports(){return J1},set exports(t){J1=t}},g=h,K1=K.some,qn=ku,A=qn("some"),st=(g({target:"Array",proto:!0,forced:!A},{some:function(t){return K1(this,t,1<arguments.length?arguments[1]:void 0)}}),Tu),n=st("Array").some,Q1=c,Z1=n,tx=Array.prototype,w=Hb,ex=(R=Ni,R.exports=w,e(J1)),rx={},o={get exports(){return rx},set exports(t){rx=t}},d=Tu,L=d("Array").keys,gn=L,l=gn,nx=fn,ox=oe,ix=c,ax=l,sx=Array.prototype,ux={DOMTokenList:!0,NodeList:!0},cx=(R=o,R.exports=$b,e(rx)),fx={},v={get exports(){return fx},set exports(t){fx=t}},lx=Nr,px=Math.floor,S=Jb,y=St,Q=y.match(/firefox\/(\d+)/i),x=!!Q&&+Q[1],zi=St,k=/MSIE|Trident/.test(zi),Ri=St,H=Ri.match(/AppleWebKit\/(\d+)\./),lt=!!H&&+H[1],D=h,b=i,hx=At,dx=It,vx=wr,yx=Sl,gx=Pr,Fo=r,mx=S,Un=ku,bx=x,xx=k,_x=kt,wx=lt,Ex=[],Tx=b(Ex.sort),Ox=b(Ex.push),io=Fo(function(){Ex.sort(void 0)}),Yn=Fo(function(){Ex.sort(null)}),ht=Un("sort"),Sx=!Fo(function(){if(_x)return _x<70;if(!(bx&&3<bx)){if(xx)return!0;if(wx)return wx<603;for(var t,e,r,n="",o=65;o<76;o++){t=String.fromCharCode(o);switch(o){case 66:case 69:case 70:case 72:e=3;break;case 68:case 71:e=4;break;default:e=2}for(r=0;r<47;r++)Ex.push({k:t+r,v:e})}Ex.sort(function(t,e){return e.v-t.v});for(r=0;r<Ex.length;r++){t=Ex[r].k.charAt(0);n.charAt(n.length-1)!==t&&(n+=t)}return"DGBEFHACIJK"!==n}}),P=io||!Yn||!ht||!Sx,ct=(D({target:"Array",proto:!0,forced:P},{sort:function(t){void 0!==t&&hx(t);var e=dx(this);if(Sx)return void 0===t?Tx(e):Tx(e,t);for(var r,n,o=[],i=vx(e),a=0;a<i;a++)a in e&&Ox(o,e[a]);mx(o,(n=t,function(t,e){return void 0===e?-1:void 0===t?1:void 0!==n?+n(t,e)||0:gx(t)>gx(e)?1:-1}));r=vx(o);a=0;for(;a<r;)e[a]=o[a++];for(;a<i;)yx(e,a++);return e}}),Tu),ve=ct("Array").sort,kx=c,jx=ve,Ax=Array.prototype,_=Kb,Px=(R=v,R.exports=_,e(fx)),Ix={},t={get exports(){return Ix},set exports(t){Ix=t}},f=Tu,s=f("Array").values,a=s,Ut=a,Dx=fn,Lx=oe,Cx=c,Rx=Ut,Mx=Array.prototype,Nx={DOMTokenList:!0,NodeList:!0},Fx=(R=t,R.exports=Qb,e(Ix)),zx={},j={get exports(){return zx},set exports(t){zx=t}},Ux=(R=j,R.exports=Ui,e(zx)),qx={},mo={get exports(){return qx},set exports(t){qx=t}},ut=Tu,qo=ut("Array").entries,m=qo,O=m,Yx=fn,Wx=oe,Gx=c,Xx=O,Vx=Array.prototype,Bx={DOMTokenList:!0,NodeList:!0},Hx=(R=mo,R.exports=Zb,e(qx));let $x,Jx=new Uint8Array(16);let Kx=[];for(let t=0;t<256;++t)Kx.push((t+256).toString(16).slice(1));var ie="undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Qx={randomUUID:ie};function Zx(t,e,r){if(Qx.randomUUID&&!e&&!t)return Qx.randomUUID();t=t||{};var n,o=t.random||(t.rng||function(){if(!$x){$x="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto);if(!$x)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported")}return $x(Jx)})();o[6]=15&o[6]|64;o[8]=63&o[8]|128;if(e){r=r||0;for(let t=0;t<16;++t)e[r+t]=o[t];return e}return t=o,n=0,(Kx[t[n+0]]+Kx[t[n+1]]+Kx[t[n+2]]+Kx[t[n+3]]+"-"+Kx[t[n+4]]+Kx[t[n+5]]+"-"+Kx[t[n+6]]+Kx[t[n+7]]+"-"+Kx[t[n+8]]+Kx[t[n+9]]+"-"+Kx[t[n+10]]+Kx[t[n+11]]+Kx[t[n+12]]+Kx[t[n+13]]+Kx[t[n+14]]+Kx[t[n+15]]).toLowerCase()}function t_(t){return"string"==typeof t||"number"==typeof t}var e_=(()=>{function a(t){N(this,a);C(this,"delay",void 0);C(this,"max",void 0);C(this,"_queue",[]);C(this,"_timeout",null);C(this,"_extended",null);this.delay=null;this.max=1/0;this.setOptions(t)}Eu(a,[{key:"setOptions",value:function(t){t&&void 0!==t.delay&&(this.delay=t.delay);t&&void 0!==t.max&&(this.max=t.max);this._flushIfNeeded()}},{key:"destroy",value:function(){this.flush();if(this._extended){for(var t=this._extended.object,e=this._extended.methods,r=0;r<e.length;r++){var n=e[r];n.original?t[n.name]=n.original:delete t[n.name]}this._extended=null}}},{key:"replace",value:function(t,e){var n=this,o=t[e];if(!o)throw new Error("Method "+e+" undefined");t[e]=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];n.queue({args:e,fn:o,context:this})}}},{key:"queue",value:function(t){"function"==typeof t?this._queue.push({fn:t}):this._queue.push(t);this._flushIfNeeded()}},{key:"_flushIfNeeded",value:function(){var t=this;this._queue.length>this.max&&this.flush();if(null!=this._timeout){clearTimeout(this._timeout);this._timeout=null}0<this.queue.length&&"number"==typeof this.delay&&(this._timeout=vd(function(){t.flush()},this.delay))}},{key:"flush",value:function(){var t;hp(t=qp(t=this._queue).call(t,0)).call(t,function(t){t.fn.apply(t.context||t.fn,t.args||[])})}}],[{key:"extend",value:function(t,e){var r=new a(e);if(void 0!==t.flush)throw new Error("Target object already has a property flush");t.flush=function(){r.flush()};var n=[{name:"flush",original:void 0}];if(e&&e.replace)for(var o=0;o<e.replace.length;o++){var i=e.replace[o];n.push({name:i,original:t[i]});r.replace(t,i)}r._extended={object:t,methods:n};return r}}]);return a})(),T=(()=>{function t(){N(this,t);C(this,"_subscribers",{"*":[],add:[],remove:[],update:[]});C(this,"subscribe",t.prototype.on);C(this,"unsubscribe",t.prototype.off)}Eu(t,[{key:"_trigger",value:function(e,r,n){var t;if("*"===e)throw new Error("Cannot trigger event *");hp(t=Xl(t=[]).call(t,wl(this._subscribers[e]),wl(this._subscribers["*"]))).call(t,function(t){t(e,r,null!=n?n:null)})}},{key:"on",value:function(t,e){"function"==typeof e&&this._subscribers[t].push(e)}},{key:"off",value:function(t,e){var r;this._subscribers[t]=fc(r=this._subscribers[t]).call(r,function(t){return t!==e})}}]);return t})(),r_={},Mi={get exports(){return r_},set exports(t){r_=t}},Fi=Bb,E=Xi,I=(Fi("Set",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},E),u),K=I.Set,qn=K,g=qn,n_=(R=Mi,R.exports=g,e(r_)),o_={},A={get exports(){return o_},set exports(t){o_=t}},i_={},st={get exports(){return i_},set exports(t){i_=t}},n=Cc,Ni=n,w=Ni,d=w,L=d,gn=L,l=gn,o=l;R=st,R.exports=o;R=A,R.exports=i_;var a_=e(o_);function s_(t,e){var r,n,o,i=void 0!==Ul&&Tf(t)||t["@@iterator"];if(i)return r=!0,n=!1,{s:function(){i=i.call(t)},n:function(){var t=i.next();r=t.done;return t},e:function(t){n=!0;o=t},f:function(){try{r||null==i.return||i.return()}finally{if(n)throw o}}};if(Kl(t)||(i=((t,e)=>{if(t){if("string"==typeof t)return u_(t,e);var r=Bl(r=Object.prototype.toString.call(t)).call(r,8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);return"Map"===r||"Set"===r?_f(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u_(t,e):void 0}})(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var a=0,s=function(){};return{s:s,n:function(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}},e:function(t){throw t},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function u_(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}var c_=Ux,f_=(()=>{function r(t){N(this,r);C(this,"_pairs",void 0);this._pairs=t}Eu(r,[{key:c_,value:Xb.mark(function t(){var e,r,n;return Xb.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:e=s_(this._pairs);t.prev=1;e.s();case 3:if((n=e.n()).done){t.next=9;break}n=_l(n.value,2),r=n[0],n=n[1];t.next=7;return[r,n];case 7:t.next=3;break;case 9:t.next=14;break;case 11:t.prev=11;t.t0=t.catch(1);e.e(t.t0);case 14:t.prev=14;e.f();return t.finish(14);case 17:case"end":return t.stop()}},t,this,[[1,11,14,17]])})},{key:"entries",value:Xb.mark(function t(){var e,r,n;return Xb.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:e=s_(this._pairs);t.prev=1;e.s();case 3:if((n=e.n()).done){t.next=9;break}n=_l(n.value,2),r=n[0],n=n[1];t.next=7;return[r,n];case 7:t.next=3;break;case 9:t.next=14;break;case 11:t.prev=11;t.t0=t.catch(1);e.e(t.t0);case 14:t.prev=14;e.f();return t.finish(14);case 17:case"end":return t.stop()}},t,this,[[1,11,14,17]])})},{key:"keys",value:Xb.mark(function t(){var e,r;return Xb.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:e=s_(this._pairs);t.prev=1;e.s();case 3:if((r=e.n()).done){t.next=9;break}r=_l(r.value,1),r=r[0];t.next=7;return r;case 7:t.next=3;break;case 9:t.next=14;break;case 11:t.prev=11;t.t0=t.catch(1);e.e(t.t0);case 14:t.prev=14;e.f();return t.finish(14);case 17:case"end":return t.stop()}},t,this,[[1,11,14,17]])})},{key:"values",value:Xb.mark(function t(){var e,r;return Xb.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:e=s_(this._pairs);t.prev=1;e.s();case 3:if((r=e.n()).done){t.next=9;break}r=_l(r.value,2),r=r[1];t.next=7;return r;case 7:t.next=3;break;case 9:t.next=14;break;case 11:t.prev=11;t.t0=t.catch(1);e.e(t.t0);case 14:t.prev=14;e.f();return t.finish(14);case 17:case"end":return t.stop()}},t,this,[[1,11,14,17]])})},{key:"toIdArray",value:function(){var t;return yc(t=wl(this._pairs)).call(t,function(t){return t[0]})}},{key:"toItemArray",value:function(){var t;return yc(t=wl(this._pairs)).call(t,function(t){return t[1]})}},{key:"toEntryArray",value:function(){return wl(this._pairs)}},{key:"toObjectMap",value:function(){var t,e=rd(null),r=s_(this._pairs);try{for(r.s();!(t=r.n()).done;){var n=_l(t.value,2),o=n[0],i=n[1];e[o]=i}}catch(t){r.e(t)}finally{r.f()}return e}},{key:"toMap",value:function(){return new $1(this._pairs)}},{key:"toIdSet",value:function(){return new n_(this.toIdArray())}},{key:"toItemSet",value:function(){return new n_(this.toItemArray())}},{key:"cache",value:function(){return new r(wl(this._pairs))}},{key:"distinct",value:function(t){var e,r=new n_,n=s_(this._pairs);try{for(n.s();!(e=n.n()).done;){var o=_l(e.value,2),i=o[0],a=o[1];r.add(t(a,i))}}catch(t){n.e(t)}finally{n.f()}return r}},{key:"filter",value:function(i){var a=this._pairs;return new r(C({},Ux,Xb.mark(function t(){var e,r,n,o;return Xb.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:e=s_(a);t.prev=1;e.s();case 3:if((r=e.n()).done){t.next=10;break}r=_l(r.value,2),n=r[0],o=r[1];if(!i(o,n)){t.next=8;break}t.next=8;return[n,o];case 8:t.next=3;break;case 10:t.next=15;break;case 12:t.prev=12;t.t0=t.catch(1);e.e(t.t0);case 15:t.prev=15;e.f();return t.finish(15);case 18:case"end":return t.stop()}},t,null,[[1,12,15,18]])})))}},{key:"forEach",value:function(t){var e,r=s_(this._pairs);try{for(r.s();!(e=r.n()).done;){var n=_l(e.value,2),o=n[0],i=n[1];t(i,o)}}catch(t){r.e(t)}finally{r.f()}}},{key:"map",value:function(o){var i=this._pairs;return new r(C({},Ux,Xb.mark(function t(){var e,r,n;return Xb.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:e=s_(i);t.prev=1;e.s();case 3:if((n=e.n()).done){t.next=9;break}n=_l(n.value,2),r=n[0],n=n[1];t.next=7;return[r,o(n,r)];case 7:t.next=3;break;case 9:t.next=14;break;case 11:t.prev=11;t.t0=t.catch(1);e.e(t.t0);case 14:t.prev=14;e.f();return t.finish(14);case 17:case"end":return t.stop()}},t,null,[[1,11,14,17]])})))}},{key:"max",value:function(t){var e=a_(this._pairs),r=e.next();if(r.done)return null;for(var n=r.value[1],o=t(r.value[1],r.value[0]);!(r=e.next()).done;){var i=_l(r.value,2),a=i[0],i=i[1],a=t(i,a);if(o<a){o=a;n=i}}return n}},{key:"min",value:function(t){var e=a_(this._pairs),r=e.next();if(r.done)return null;for(var n=r.value[1],o=t(r.value[1],r.value[0]);!(r=e.next()).done;){var i=_l(r.value,2),a=i[0],i=i[1],a=t(i,a);if(a<o){o=a;n=i}}return n}},{key:"reduce",value:function(t,e){var r,n=s_(this._pairs);try{for(n.s();!(r=n.n()).done;){var o=_l(r.value,2),i=o[0],a=o[1];e=t(e,a,i)}}catch(t){n.e(t)}finally{n.f()}return e}},{key:"sort",value:function(a){var e=this;return new r(C({},Ux,function(){var t;return a_(Px(t=wl(e._pairs)).call(t,function(t,e){var r=_l(t,2),n=r[0],r=r[1],o=_l(e,2),i=o[0],o=o[1];return a(r,o,n,i)}))}))}}]);return r})();function l_(e,t){var r=ep(e);if(Sf){var n=Sf(e);t&&(n=fc(n).call(n,function(t){return Df(e,t).enumerable})),r.push.apply(r,n)}return r}function p_(e){for(var t=1;t<arguments.length;t++){var r,n=null!=arguments[t]?arguments[t]:{};t%2?hp(r=l_(Object(n),!0)).call(r,function(t){C(e,t,n[t])}):Yf?Vf(e,Yf(n)):hp(r=l_(Object(n))).call(r,function(t){Hf(e,t,Df(n,t))})}return e}function h_(t,e){var r,n,o,i=void 0!==Ul&&Tf(t)||t["@@iterator"];if(i)return r=!0,n=!1,{s:function(){i=i.call(t)},n:function(){var t=i.next();r=t.done;return t},e:function(t){n=!0;o=t},f:function(){try{r||null==i.return||i.return()}finally{if(n)throw o}}};if(Kl(t)||(i=((t,e)=>{if(t){if("string"==typeof t)return d_(t,e);var r=Bl(r=Object.prototype.toString.call(t)).call(r,8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);return"Map"===r||"Set"===r?_f(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?d_(t,e):void 0}})(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var a=0,s=function(){};return{s:s,n:function(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}},e:function(t){throw t},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function d_(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 v_(r){var n=(()=>{if("undefined"==typeof Reflect||!Ry)return!1;if(Ry.sham)return!1;if("function"==typeof Proxy)return!0;try{Boolean.prototype.valueOf.call(Ry(Boolean,[],function(){}));return!0}catch(t){return!1}})();return function(){var t,e=Qy(r);t=n?(t=Qy(this).constructor,Ry(e,arguments,t)):e.apply(this,arguments);return Hy(this,t)}}var y_=(t=>{By(o,t);var n=v_(o);function o(t,e){var r;N(this,o);r=n.call(this);C(My(r),"flush",void 0);C(My(r),"length",void 0);C(My(r),"_options",void 0);C(My(r),"_data",void 0);C(My(r),"_idProp",void 0);C(My(r),"_queue",null);if(t&&!Kl(t)){e=t;t=[]}r._options=e||{};r._data=new $1;r.length=0;r._idProp=r._options.fieldId||"id";t&&t.length&&r.add(t);r.setOptions(e);return r}Eu(o,[{key:"idProp",get:function(){return this._idProp}},{key:"setOptions",value:function(t){if(t&&void 0!==t.queue)if(!1===t.queue){if(this._queue){this._queue.destroy();this._queue=null}}else{this._queue||(this._queue=e_.extend(this,{replace:["add","update","remove"]}));t.queue&&"object"===gu(t.queue)&&this._queue.setOptions(t.queue)}}},{key:"add",value:function(t,e){var r,n=this,o=[];if(Kl(t)){var i=yc(t).call(t,function(t){return t[n._idProp]});if(ex(i).call(i,function(t){return n._data.has(t)}))throw new Error("A duplicate id was found in the parameter array.");for(var a=0,s=t.length;a<s;a++){r=this._addItem(t[a]);o.push(r)}}else{if(!t||"object"!==gu(t))throw new Error("Unknown dataType");r=this._addItem(t);o.push(r)}o.length&&this._trigger("add",{items:o},e);return o}},{key:"update",value:function(t,e){function r(t){var e=t[c];if(null!=e&&o._data.has(e)){var r=t,e=Zp({},o._data.get(e)),n=o._updateItem(r);a.push(n);u.push(r);s.push(e)}else{n=o._addItem(t);i.push(n)}}var o=this,i=[],a=[],s=[],u=[],c=this._idProp;if(Kl(t))for(var n=0,f=t.length;n<f;n++)t[n]&&"object"===gu(t[n])?r(t[n]):console.warn("Ignoring input item, which is not an object at index "+n);else{if(!t||"object"!==gu(t))throw new Error("Unknown dataType");r(t)}i.length&&this._trigger("add",{items:i},e);if(a.length){var l={items:a,oldData:s,data:u};this._trigger("update",l,e)}return Xl(i).call(i,a)}},{key:"updateOnly",value:function(t,e){var o=this,r=(Kl(t)||(t=[t]),yc(r=yc(t).call(t,function(t){var e=o._data.get(t[o._idProp]);if(null==e)throw new Error("Updating non-existent items is not allowed.");return{oldData:e,update:t}})).call(r,function(t){var e=t.oldData,r=t.update,n=e[o._idProp],r=function(t){for(var e,r=arguments.length,n=new Array(1<r?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return vy.apply(void 0,Xl(e=[{},t]).call(e,n))}(e,r);o._data.set(n,r);return{id:n,oldData:e,updatedData:r}}));if(r.length){r={items:yc(r).call(r,function(t){return t.id}),oldData:yc(r).call(r,function(t){return t.oldData}),data:yc(r).call(r,function(t){return t.updatedData})};this._trigger("update",r,e);return r.items}return[]}},{key:"get",value:function(t,e){var r=void 0,n=void 0,o=void 0;if(t_(t)){r=t;o=e}else if(Kl(t)){n=t;o=e}else o=t;var i,a=o&&"Object"===o.returnType?"Object":"Array",s=o&&fc(o),u=[],c=void 0;if(null!=r){c=this._data.get(r);c&&s&&!s(c)&&(c=void 0)}else if(null!=n)for(var f=0,l=n.length;f<l;f++){c=this._data.get(n[f]);null==c||s&&!s(c)||u.push(c)}else for(var p,h=wl(cx(p=this._data).call(p)),d=0,v=h.length;d<v;d++){i=h[d];c=this._data.get(i);null==c||s&&!s(c)||u.push(c)}o&&o.order&&null==r&&this._sort(u,o.order);if(o&&o.fields){var y=o.fields;if(null!=r&&null!=c)c=this._filterFields(c,y);else for(var g=0,m=u.length;g<m;g++)u[g]=this._filterFields(u[g],y)}if("Object"!=a)return null!=r?null!=(p=c)?p:null:u;for(var b={},x=0,_=u.length;x<_;x++){var w=u[x],E=w[this._idProp];b[E]=w}return b}},{key:"getIds",value:function(t){var e=this._data,r=t&&fc(t),n=t&&t.order,o=wl(cx(e).call(e)),i=[];if(r)if(n){for(var a=[],s=0,u=o.length;s<u;s++){var c=o[s],c=this._data.get(c);null!=c&&r(c)&&a.push(c)}this._sort(a,n);for(var f=0,l=a.length;f<l;f++)i.push(a[f][this._idProp])}else for(var p=0,h=o.length;p<h;p++){var d=o[p],d=this._data.get(d);null!=d&&r(d)&&i.push(d[this._idProp])}else if(n){for(var v=[],y=0,g=o.length;y<g;y++){var m=o[y];v.push(e.get(m))}this._sort(v,n);for(var b=0,x=v.length;b<x;b++)i.push(v[b][this._idProp])}else for(var _=0,w=o.length;_<w;_++){var E=o[_],E=e.get(E);null!=E&&i.push(E[this._idProp])}return i}},{key:"getDataSet",value:function(){return this}},{key:"forEach",value:function(t,e){var r=e&&fc(e),n=this._data,o=wl(cx(n).call(n));if(e&&e.order)for(var i=this.get(e),a=0,s=i.length;a<s;a++){var u=i[a],c=u[this._idProp];t(u,c)}else for(var f=0,l=o.length;f<l;f++){var p=o[f],h=this._data.get(p);null==h||r&&!r(h)||t(h,p)}}},{key:"map",value:function(t,e){for(var r=e&&fc(e),n=[],o=this._data,i=wl(cx(o).call(o)),a=0,s=i.length;a<s;a++){var u=i[a],c=this._data.get(u);null==c||r&&!r(c)||n.push(t(c,u))}e&&e.order&&this._sort(n,e.order);return n}},{key:"_filterFields",value:function(r,t){var e;return r&&oc(e=Kl(t)?t:ep(t)).call(e,function(t,e){t[e]=r[e];return t},{})}},{key:"_sort",value:function(t,e){if("string"==typeof e){var o=e;Px(t).call(t,function(t,e){var r=t[o],n=e[o];return n<r?1:r<n?-1:0})}else{if("function"!=typeof e)throw new TypeError("Order must be a function or a string");Px(t).call(t,e)}}},{key:"remove",value:function(t,e){for(var r=[],n=[],o=Kl(t)?t:[t],i=0,a=o.length;i<a;i++){var s=this._remove(o[i]);if(s){var u=s[this._idProp];if(null!=u){r.push(u);n.push(s)}}}r.length&&this._trigger("remove",{items:r,oldData:n},e);return r}},{key:"_remove",value:function(t){var e;t_(t)?e=t:t&&"object"===gu(t)&&(e=t[this._idProp]);if(null!=e&&this._data.has(e)){var r=this._data.get(e)||null;this._data.delete(e);--this.length;return r}return null}},{key:"clear",value:function(t){for(var e,r=wl(cx(e=this._data).call(e)),n=[],o=0,i=r.length;o<i;o++)n.push(this._data.get(r[o]));this._data.clear();this.length=0;this._trigger("remove",{items:r,oldData:n},t);return r}},{key:"max",value:function(t){var e,r,n=null,o=null,i=h_(Fx(e=this._data).call(e));try{for(i.s();!(r=i.n()).done;){var a=r.value,s=a[t];if("number"==typeof s&&(null==o||o<s)){n=a;o=s}}}catch(t){i.e(t)}finally{i.f()}return n||null}},{key:"min",value:function(t){var e,r,n=null,o=null,i=h_(Fx(e=this._data).call(e));try{for(i.s();!(r=i.n()).done;){var a=r.value,s=a[t];if("number"==typeof s&&(null==o||s<o)){n=a;o=s}}}catch(t){i.e(t)}finally{i.f()}return n||null}},{key:"distinct",value:function(t){for(var e=this._data,r=wl(cx(e).call(e)),n=[],o=0,i=0,a=r.length;i<a;i++){for(var s=r[i],s=e.get(s),u=s[t],c=!1,f=0;f<o;f++)if(n[f]==u){c=!0;break}if(!c&&void 0!==u){n[o]=u;o++}}return n}},{key:"_addItem",value:function(t){var e=((t,e)=>{null==t[e]&&(t[e]=Zx());return t})(t,this._idProp),r=e[this._idProp];if(this._data.has(r))throw new Error("Cannot add item: item with id "+r+" already exists");this._data.set(r,e);++this.length;return r}},{key:"_updateItem",value:function(t){var e=t[this._idProp];if(null==e)throw new Error("Cannot update item: item has no id (item: "+ad(t)+")");var r=this._data.get(e);if(!r)throw new Error("Cannot update item: no item with id "+e+" found");this._data.set(e,p_(p_({},r),t));return e}},{key:"stream",value:function(i){var a,t;return i?(a=this._data,new f_(C({},Ux,Xb.mark(function t(){var e,r,n,o;return Xb.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:e=h_(i);t.prev=1;e.s();case 3:if((r=e.n()).done){t.next=11;break}n=r.value;o=a.get(n);if(null==o){t.next=9;break}t.next=9;return[n,o];case 9:t.next=3;break;case 11:t.next=16;break;case 13:t.prev=13;t.t0=t.catch(1);e.e(t.t0);case 16:t.prev=16;e.f();return t.finish(16);case 19:case"end":return t.stop()}},t,null,[[1,13,16,19]])})))):new f_(C({},Ux,Vu(t=Hx(this._data)).call(t,this._data)))}}]);return o})(T);function g_(t,e){var r,n,o,i=void 0!==Ul&&Tf(t)||t["@@iterator"];if(i)return r=!0,n=!1,{s:function(){i=i.call(t)},n:function(){var t=i.next();r=t.done;return t},e:function(t){n=!0;o=t},f:function(){try{r||null==i.return||i.return()}finally{if(n)throw o}}};if(Kl(t)||(i=((t,e)=>{if(t){if("string"==typeof t)return m_(t,e);var r=Bl(r=Object.prototype.toString.call(t)).call(r,8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);return"Map"===r||"Set"===r?_f(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?m_(t,e):void 0}})(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var a=0,s=function(){};return{s:s,n:function(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}},e:function(t){throw t},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function m_(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 b_(r){var n=(()=>{if("undefined"==typeof Reflect||!Ry)return!1;if(Ry.sham)return!1;if("function"==typeof Proxy)return!0;try{Boolean.prototype.valueOf.call(Ry(Boolean,[],function(){}));return!0}catch(t){return!1}})();return function(){var t,e=Qy(r);t=n?(t=Qy(this).constructor,Ry(e,arguments,t)):e.apply(this,arguments);return Hy(this,t)}}y=(t=>{By(a,t);var o=b_(a);function a(t,e){var r,n;N(this,a);n=o.call(this);C(My(n),"length",0);C(My(n),"_listener",void 0);C(My(n),"_data",void 0);C(My(n),"_ids",new n_);C(My(n),"_options",void 0);n._options=e||{};n._listener=Vu(r=n._onEvent).call(r,My(n));n.setData(t);return n}Eu(a,[{key:"idProp",get:function(){return this.getDataSet().idProp}},{key:"setData",value:function(t){if(this._data){this._data.off&&this._data.off("*",this._listener);var e=this._data.getIds({filter:fc(this._options)}),r=this._data.get(e);this._ids.clear();this.length=0;this._trigger("remove",{items:e,oldData:r})}if(null!=t){this._data=t;for(var n=this._data.getIds({filter:fc(this._options)}),o=0,i=n.length;o<i;o++){var a=n[o];this._ids.add(a)}this.length=n.length;this._trigger("add",{items:n})}else this._data=new y_;this._data.on&&this._data.on("*",this._listener)}},{key:"refresh",value:function(){for(var t=this._data.getIds({filter:fc(this._options)}),e=wl(this._ids),r={},n=[],o=[],i=[],a=0,s=t.length;a<s;a++){var u=t[a];r[u]=!0;if(!this._ids.has(u)){n.push(u);this._ids.add(u)}}for(var c=0,f=e.length;c<f;c++){var l=e[c],p=this._data.get(l);if(null==p)console.error("If you see this, report it please.");else if(!r[l]){o.push(l);i.push(p);this._ids.delete(l)}}this.length+=n.length-o.length;n.length&&this._trigger("add",{items:n});o.length&&this._trigger("remove",{items:o,oldData:i})}},{key:"get",value:function(t,e){if(null==this._data)return null;var r,n=null;if(t_(t)||Kl(t)){n=t;r=e}else r=t;var o=Zp({},this._options,r),i=fc(this._options),a=r&&fc(r);i&&a&&(o.filter=function(t){return i(t)&&a(t)});return null==n?this._data.get(o):this._data.get(n,o)}},{key:"getIds",value:function(t){var e,r,n;return this._data.length?(e=fc(this._options),r=null!=t?fc(t):null,n=r?e?function(t){return e(t)&&r(t)}:r:e,this._data.getIds({filter:n,order:t&&t.order})):[]}},{key:"forEach",value:function(t,e){if(this._data){var r,n=fc(this._options),o=e&&fc(e),i=o?n?function(t){return n(t)&&o(t)}:o:n;hp(r=this._data).call(r,t,{filter:i,order:e&&e.order})}}},{key:"map",value:function(t,e){var r,n,o,i;return this._data?(n=fc(this._options),o=e&&fc(e),i=o?n?function(t){return n(t)&&o(t)}:o:n,yc(r=this._data).call(r,t,{filter:i,order:e&&e.order})):[]}},{key:"getDataSet",value:function(){return this._data.getDataSet()}},{key:"stream",value:function(t){var e;return this._data.stream(t||C({},Ux,Vu(e=cx(this._ids)).call(e,this._ids)))}},{key:"dispose",value:function(){null!=(t=this._data)&&t.off&&this._data.off("*",this._listener);var t,e,r="This data view has already been disposed of.",n={get:function(){throw new Error(r)},set:function(){throw new Error(r)},configurable:!1},o=g_($l(a.prototype));try{for(o.s();!(e=o.n()).done;){var i=e.value;Hf(this,i,n)}}catch(t){o.e(t)}finally{o.f()}}},{key:"_onEvent",value:function(t,e,r){if(e&&e.items&&this._data){var n=e.items,o=[],i=[],a=[],s=[],u=[],c=[];switch(t){case"add":for(var f=0,l=n.length;f<l;f++){var p=n[f],h=this.get(p);if(h){this._ids.add(p);o.push(p)}}break;case"update":for(var d=0,v=n.length;d<v;d++){var y=n[d],g=this.get(y);if(g)if(this._ids.has(y)){i.push(y);u.push(e.data[d]);s.push(e.oldData[d])}else{this._ids.add(y);o.push(y)}else if(this._ids.has(y)){this._ids.delete(y);a.push(y);c.push(e.oldData[d])}}break;case"remove":for(var m=0,b=n.length;m<b;m++){var x=n[m];if(this._ids.has(x)){this._ids.delete(x);a.push(x);c.push(e.oldData[m])}}}this.length+=o.length-a.length;o.length&&this._trigger("add",{items:o},r);i.length&&this._trigger("update",{items:i,oldData:s,data:u},r);a.length&&this._trigger("remove",{items:a,oldData:c},r)}}}]);return a})(T);function x_(t,e){return"object"===gu(e)&&null!==e&&t===e.idProp&&"function"==typeof e.add&&"function"==typeof e.clear&&"function"==typeof e.distinct&&"function"==typeof hp(e)&&"function"==typeof e.get&&"function"==typeof e.getDataSet&&"function"==typeof e.getIds&&"number"==typeof e.length&&"function"==typeof yc(e)&&"function"==typeof e.max&&"function"==typeof e.min&&"function"==typeof e.off&&"function"==typeof e.on&&"function"==typeof e.remove&&"function"==typeof e.setOptions&&"function"==typeof e.stream&&"function"==typeof e.update&&"function"==typeof e.updateOnly}M.DELETE=dy;M.DataSet=y_;M.DataStream=f_;M.DataView=y;M.Queue=e_;M.createNewDataPipeFrom=function(t){return new Mc(t)};M.isDataSetLike=x_;M.isDataViewLike=function(t,e){return"object"===gu(e)&&null!==e&&t===e.idProp&&"function"==typeof hp(e)&&"function"==typeof e.get&&"function"==typeof e.getDataSet&&"function"==typeof e.getIds&&"number"==typeof e.length&&"function"==typeof yc(e)&&"function"==typeof e.off&&"function"==typeof e.on&&"function"==typeof e.stream&&x_(t,e.getDataSet())}});
|
||
//# sourceMappingURL=vis-data.js.map
|