UNPKG

vis-graph3d

Version:

Create interactive, animated 3d graphs. Surfaces, lines, dots and block styling out of the box.

35 lines • 179 kB
/**
 * vis-graph3d
 * https://visjs.github.io/vis-graph3d/
 *
 * Create interactive, animated 3d graphs. Surfaces, lines, dots and block styling out of the box.
 *
 * @version 7.0.4
 * @date    2026-10-25T13:37:24.057Z
 *
 * @copyright (c) 2011-2017 Almende B.V, http://almende.com
 * @copyright (c) 2017-2019 visjs contributors, https://github.com/visjs
 *
 * @license
 * vis.js is dual licensed under both
 *
 *   1. The Apache 2.0 License
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 *   and
 *
 *   2. The MIT License
 *      http://opensource.org/licenses/MIT
 *
 * vis.js may be distributed under either license.
 */
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}var n,r,i,o,a,s,u,c,l,f,h,d,p,v,y,m;function g(){if(r)return n;r=1;var e=function(t){return t&&t.Math===Math&&t};return n=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof t&&t)||e("object"==typeof n&&n)||function(){return this}()||Function("return this")()}function b(){return o?i:(o=1,i=function(t){try{return!!t()}catch(t){return!0}})}function w(){return s?a:(s=1,a=!b()(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))}function _(){if(c)return u;c=1;var t=w(),e=Function.prototype,n=e.apply,r=e.call;return u="object"==typeof Reflect&&Reflect.apply||(t?r.bind(n):function(){return r.apply(n,arguments)}),u}function x(){if(f)return l;f=1;var t=w(),e=Function.prototype,n=e.call,r=t&&e.bind.bind(n,n);return l=t?r:function(t){return function(){return n.apply(t,arguments)}},l}function S(){if(d)return h;d=1;var t=x(),e=t({}.toString),n=t("".slice);return h=function(t){return n(e(t),8,-1)}}function T(){if(v)return p;v=1;var t=S(),e=x();return p=function(n){if("Function"===t(n))return e(n)}}function E(){if(m)return y;m=1;var t="object"==typeof document&&document.all;return y=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(t){return"function"==typeof t}}var O,C,A,L,P={};function D(){return C?O:(C=1,O=!b()(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))}function M(){if(L)return A;L=1;var t=w(),e=Function.prototype.call;return A=t?e.bind(e):function(){return e.apply(e,arguments)},A}var R,I,k,z,j,N,F,B,W,Y,G,X,U,V,Z,q,H,J,K,$,Q,tt,et,nt,rt,it,ot,at,st,ut,ct,lt,ft,ht,dt,pt,vt,yt={};function mt(){if(R)return yt;R=1;var t={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,n=e&&!t.call({1:2},1);return yt.f=n?function(t){var n=e(this,t);return!!n&&n.enumerable}:t,yt}function gt(){return k?I:(k=1,I=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}})}function bt(){if(j)return z;j=1;var t=x(),e=b(),n=S(),r=Object,i=t("".split);return z=e(function(){return!r("z").propertyIsEnumerable(0)})?function(t){return"String"===n(t)?i(t,""):r(t)}:r}function wt(){return F?N:(F=1,N=function(t){return null==t})}function _t(){if(W)return B;W=1;var t=wt(),e=TypeError;return B=function(n){if(t(n))throw new e("Can't call method on "+n);return n}}function xt(){if(G)return Y;G=1;var t=bt(),e=_t();return Y=function(n){return t(e(n))}}function St(){if(U)return X;U=1;var t=E();return X=function(e){return"object"==typeof e?null!==e:t(e)}}function Tt(){return Z?V:(Z=1,V={})}function Et(){if(H)return q;H=1;var t=Tt(),e=g(),n=E(),r=function(t){return n(t)?t:void 0};return q=function(n,i){return arguments.length<2?r(t[n])||r(e[n]):t[n]&&t[n][i]||e[n]&&e[n][i]},q}function Ot(){return K?J:(K=1,J=x()({}.isPrototypeOf))}function Ct(){if(Q)return $;Q=1;var t=g().navigator,e=t&&t.userAgent;return $=e?String(e):""}function At(){if(et)return tt;et=1;var t,e,n=g(),r=Ct(),i=n.process,o=n.Deno,a=i&&i.versions||o&&o.version,s=a&&a.v8;return s&&(e=(t=s.split("."))[0]>0&&t[0]<4?1:+(t[0]+t[1])),!e&&r&&(!(t=r.match(/Edge\/(\d+)/))||t[1]>=74)&&(t=r.match(/Chrome\/(\d+)/))&&(e=+t[1]),tt=e}function Lt(){if(rt)return nt;rt=1;var t=At(),e=b(),n=g().String;return nt=!!Object.getOwnPropertySymbols&&!e(function(){var e=Symbol("symbol detection");return!n(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&t&&t<41}),nt}function Pt(){return ot?it:(ot=1,it=Lt()&&!Symbol.sham&&"symbol"==typeof Symbol.iterator)}function Dt(){if(st)return at;st=1;var t=Et(),e=E(),n=Ot(),r=Object;return at=Pt()?function(t){return"symbol"==typeof t}:function(i){var o=t("Symbol");return e(o)&&n(o.prototype,r(i))}}function Mt(){if(ct)return ut;ct=1;var t=String;return ut=function(e){try{return t(e)}catch(t){return"Object"}}}function Rt(){if(ft)return lt;ft=1;var t=E(),e=Mt(),n=TypeError;return lt=function(r){if(t(r))return r;throw new n(e(r)+" is not a function")}}function It(){if(dt)return ht;dt=1;var t=Rt(),e=wt();return ht=function(n,r){var i=n[r];return e(i)?void 0:t(i)}}function kt(){if(vt)return pt;vt=1;var t=M(),e=E(),n=St(),r=TypeError;return pt=function(i,o){var a,s;if("string"===o&&e(a=i.toString)&&!n(s=t(a,i)))return s;if(e(a=i.valueOf)&&!n(s=t(a,i)))return s;if("string"!==o&&e(a=i.toString)&&!n(s=t(a,i)))return s;throw new r("Can't convert object to primitive value")}}var zt,jt,Nt,Ft,Bt,Wt,Yt,Gt,Xt,Ut,Vt,Zt,qt,Ht,Jt,Kt,$t,Qt,te,ee,ne,re,ie,oe,ae,se,ue,ce,le={exports:{}};function fe(){return jt?zt:(jt=1,zt=!0)}function he(){if(Ft)return Nt;Ft=1;var t=g(),e=Object.defineProperty;return Nt=function(n,r){try{e(t,n,{value:r,configurable:!0,writable:!0})}catch(e){t[n]=r}return r}}function de(){if(Bt)return le.exports;Bt=1;var t=fe(),e=g(),n=he(),r="__core-js_shared__",i=le.exports=e[r]||n(r,{});return(i.versions||(i.versions=[])).push({version:"3.50.0",mode:t?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.50.0/LICENSE",source:"https://github.com/zloirock/core-js"}),le.exports}function pe(){if(Yt)return Wt;Yt=1;var t=de(),e=Object.create||Object;return Wt=function(n,r){return t[n]||(t[n]=r||e(null))}}function ve(){if(Xt)return Gt;Xt=1;var t=_t(),e=Object;return Gt=function(n){return e(t(n))}}function ye(){if(Vt)return Ut;Vt=1;var t=x(),e=ve(),n=t({}.hasOwnProperty);return Ut=Object.hasOwn||function(t,r){return n(e(t),r)}}function me(){if(qt)return Zt;qt=1;var t=x(),e=0,n=Math.random(),r=t(1.1.toString);return Zt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+r(++e+n,36)}}function ge(){if(Jt)return Ht;Jt=1;var t=g(),e=pe(),n=ye(),r=me(),i=Lt(),o=Pt(),a=t.Symbol,s=e("wks"),u=o?a.for||a:a&&a.withoutSetter||r;return Ht=function(t){return n(s,t)||(s[t]=i&&n(a,t)?a[t]:u("Symbol."+t)),s[t]}}function be(){if($t)return Kt;$t=1;var t=M(),e=St(),n=Dt(),r=It(),i=kt(),o=TypeError,a=ge()("toPrimitive");return Kt=function(s,u){if(!e(s)||n(s))return s;var c,l=r(s,a);if(l){if(void 0===u&&(u="default"),c=t(l,s,u),!e(c)||n(c))return c;throw new o("Can't convert object to primitive value")}return void 0===u&&(u="number"),i(s,u)}}function we(){if(te)return Qt;te=1;var t=be(),e=Dt();return Qt=function(n){var r=t(n,"string");return e(r)?r:r+""}}function _e(){if(ne)return ee;ne=1;var t=g(),e=St(),n=t.document,r=e(n)&&e(n.createElement);return ee=function(t){return r?n.createElement(t):{}}}function xe(){if(ie)return re;ie=1;var t=D(),e=b(),n=_e();return re=!t&&!e(function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a})}function Se(){if(oe)return P;oe=1;var t=D(),e=M(),n=mt(),r=gt(),i=xt(),o=we(),a=ye(),s=xe(),u=Object.getOwnPropertyDescriptor;return P.f=t?u:function(t,c){if(t=i(t),c=o(c),s)try{return u(t,c)}catch(t){}if(a(t,c))return r(!e(n.f,t,c),t[c])},P}function Te(){if(se)return ae;se=1;var t=b(),e=E(),n=/#|\.prototype\./,r=function(n,r){var u=o[i(n)];return u===s||u!==a&&(e(r)?t(r):!!r)},i=r.normalize=function(t){return String(t).replace(n,".").toLowerCase()},o=r.data={},a=r.NATIVE="N",s=r.POLYFILL="P";return ae=r}function Ee(){if(ce)return ue;ce=1;var t=T(),e=Rt(),n=w(),r=t(t.bind);return ue=function(t,i){return e(t),void 0===i?t:n?r(t,i):function(){return t.apply(i,arguments)}},ue}var Oe,Ce,Ae,Le,Pe,De,Me,Re,Ie,ke,ze,je,Ne,Fe,Be,We,Ye,Ge,Xe={};function Ue(){return Ce?Oe:(Ce=1,Oe=D()&&b()(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}))}function Ve(){if(Le)return Ae;Le=1;var t=St(),e=String,n=TypeError;return Ae=function(r){if(t(r))return r;throw new n(e(r)+" is not an object")}}function Ze(){if(Pe)return Xe;Pe=1;var t=D(),e=xe(),n=Ue(),r=Ve(),i=we(),o=TypeError,a=Object.defineProperty,s=Object.getOwnPropertyDescriptor,u="enumerable",c="configurable",l="writable";return Xe.f=t?n?function(t,e,n){if(r(t),e=i(e),r(n),"function"==typeof t&&"prototype"===e&&"value"in n&&l in n&&!n[l]){var o=s(t,e);o&&o[l]&&(t[e]=n.value,n={configurable:c in n?n[c]:o[c],enumerable:u in n?n[u]:o[u],writable:!1})}return a(t,e,n)}:a:function(t,n,s){if(r(t),n=i(n),r(s),e)try{return a(t,n,s)}catch(t){}if("get"in s||"set"in s)throw new o("Accessors not supported");return"value"in s&&(t[n]=s.value),t},Xe}function qe(){if(Me)return De;Me=1;var t=D(),e=Ze(),n=gt();return De=t?function(t,r,i){return e.f(t,r,n(1,i))}:function(t,e,n){return t[e]=n,t},De}function He(){if(Ie)return Re;Ie=1;var t=g(),e=_(),n=T(),r=E(),i=Se().f,o=Te(),a=Tt(),s=Ee(),u=qe(),c=ye(),l=function(t){var n=function(r,i,o){if(this instanceof n){switch(arguments.length){case 0:return new t;case 1:return new t(r);case 2:return new t(r,i)}return new t(r,i,o)}return e(t,this,arguments)};return n.prototype=t.prototype,n};return Re=function(e,f){var h,d,p,v,y,m,g,b,w,_=e.target,x=e.global,S=e.stat,T=e.proto,E=x?t:S?t[_]:t[_]&&t[_].prototype,O=x?a:a[_]||u(a,_,{})[_],C=O.prototype;for(v in f)d=!(h=o(x?v:_+(S?".":"#")+v,e.forced))&&E&&c(E,v),m=O[v],d&&(g=e.dontCallGetSet?(w=i(E,v))&&w.value:E[v]),y=d&&g?g:f[v],(h||T||typeof m!=typeof y)&&(b=e.bind&&d?s(y,t):e.wrap&&d?l(y):T&&r(y)?n(y):y,(e.sham||y&&y.sham||m&&m.sham)&&u(b,"sham",!0),u(O,v,b),T&&(c(a,p=_+"Prototype")||u(a,p,{}),u(a[p],v,y),e.real&&C&&(h||!C[v])&&u(C,v,y)))}}function Je(){return ze?ke:(ze=1,ke=Math.sign||function(t){var e=+t;return 0===e||e!=e?e:e<0?-1:1})}function Ke(){return Fe?Ne:(Fe=1,je||(je=1,He()({target:"Math",stat:!0},{sign:Je()})),Ne=Tt().Math.sign)}function $e(){return We?Be:(We=1,Be=Ke())}var Qe=e(Ge?Ye:(Ge=1,Ye=$e()));function tn(t,e,n){this.x=void 0!==t?t:0,this.y=void 0!==e?e:0,this.z=void 0!==n?n:0}function en(){this.armLocation=new tn,this.armRotation={},this.armRotation.horizontal=0,this.armRotation.vertical=0,this.armLength=1.7,this.cameraOffset=new tn,this.offsetMultiplier=.6,this.cameraLocation=new tn,this.cameraRotation=new tn(.5*Math.PI,0,0),this.calculateCameraOrientation()}tn.subtract=function(t,e){const n=new tn;return n.x=t.x-e.x,n.y=t.y-e.y,n.z=t.z-e.z,n},tn.add=function(t,e){const n=new tn;return n.x=t.x+e.x,n.y=t.y+e.y,n.z=t.z+e.z,n},tn.avg=function(t,e){return new tn((t.x+e.x)/2,(t.y+e.y)/2,(t.z+e.z)/2)},tn.scalarProduct=function(t,e){return new tn(t.x*e,t.y*e,t.z*e)},tn.dotProduct=function(t,e){return t.x*e.x+t.y*e.y+t.z*e.z},tn.crossProduct=function(t,e){const n=new tn;return n.x=t.y*e.z-t.z*e.y,n.y=t.z*e.x-t.x*e.z,n.z=t.x*e.y-t.y*e.x,n},tn.prototype.length=function(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)},tn.prototype.normalize=function(){return tn.scalarProduct(this,1/this.length())},en.prototype.setOffset=function(t,e){const n=Math.abs,r=Qe,i=this.offsetMultiplier,o=this.armLength*i;n(t)>o&&(t=r(t)*o),n(e)>o&&(e=r(e)*o),this.cameraOffset.x=t,this.cameraOffset.y=e,this.calculateCameraOrientation()},en.prototype.getOffset=function(){return this.cameraOffset},en.prototype.setArmLocation=function(t,e,n){this.armLocation.x=t,this.armLocation.y=e,this.armLocation.z=n,this.calculateCameraOrientation()},en.prototype.setArmRotation=function(t,e){void 0!==t&&(this.armRotation.horizontal=t),void 0!==e&&(this.armRotation.vertical=e,this.armRotation.vertical<0&&(this.armRotation.vertical=0),this.armRotation.vertical>.5*Math.PI&&(this.armRotation.vertical=.5*Math.PI)),void 0===t&&void 0===e||this.calculateCameraOrientation()},en.prototype.getArmRotation=function(){const t={};return t.horizontal=this.armRotation.horizontal,t.vertical=this.armRotation.vertical,t},en.prototype.setArmLength=function(t){void 0!==t&&(this.armLength=t,this.armLength<.71&&(this.armLength=.71),this.armLength>5&&(this.armLength=5),this.setOffset(this.cameraOffset.x,this.cameraOffset.y),this.calculateCameraOrientation())},en.prototype.getArmLength=function(){return this.armLength},en.prototype.getCameraLocation=function(){return this.cameraLocation},en.prototype.getCameraRotation=function(){return this.cameraRotation},en.prototype.calculateCameraOrientation=function(){this.cameraLocation.x=this.armLocation.x-this.armLength*Math.sin(this.armRotation.horizontal)*Math.cos(this.armRotation.vertical),this.cameraLocation.y=this.armLocation.y-this.armLength*Math.cos(this.armRotation.horizontal)*Math.cos(this.armRotation.vertical),this.cameraLocation.z=this.armLocation.z+this.armLength*Math.sin(this.armRotation.vertical),this.cameraRotation.x=Math.PI/2-this.armRotation.vertical,this.cameraRotation.y=0,this.cameraRotation.z=-this.armRotation.horizontal;const t=this.cameraRotation.x,e=this.cameraRotation.z,n=this.cameraOffset.x,r=this.cameraOffset.y,i=Math.sin,o=Math.cos;this.cameraLocation.x=this.cameraLocation.x+n*o(e)+r*-i(e)*o(t),this.cameraLocation.y=this.cameraLocation.y+n*i(e)+r*o(e)*o(t),this.cameraLocation.z=this.cameraLocation.z+r*i(t)};var nn,rn,on,an,sn,un,cn,ln,fn,hn,dn,pn,vn,yn,mn={};function gn(){return rn?nn:(rn=1,nn=function(){})}function bn(){return an?on:(an=1,on=Object.create?Object.create(null):{})}function wn(){if(un)return sn;un=1;var t=g(),e=E(),n=t.WeakMap;return sn=e(n)&&/native code/.test(String(n))}function _n(){if(ln)return cn;ln=1;var t=pe(),e=me(),n=t("keys");return cn=function(t){return n[t]||(n[t]=e(t))}}function xn(){return hn?fn:(hn=1,fn={})}function Sn(){if(pn)return dn;pn=1;var t,e,n,r=wn(),i=g(),o=St(),a=qe(),s=ye(),u=de(),c=_n(),l=xn(),f="Object already initialized",h=i.TypeError,d=i.WeakMap;if(r||u.state){var p=u.state||(u.state=new d);p.get=p.get,p.has=p.has,p.set=p.set,t=function(t,e){if(p.has(t))throw new h(f);return e.facade=t,p.set(t,e),e},e=function(t){return p.get(t)||{}},n=function(t){return p.has(t)}}else{var v=c("state");l[v]=!0,t=function(t,e){if(s(t,v))throw new h(f);return e.facade=t,a(t,v,e),e},e=function(t){return s(t,v)?t[v]:{}},n=function(t){return s(t,v)}}return dn={set:t,get:e,has:n,enforce:function(r){return n(r)?e(r):t(r,{})},getterFor:function(t){return function(n){var r;if(!o(n)||(r=e(n)).type!==t)throw new h("Incompatible receiver, "+t+" required");return r}}}}function Tn(){if(yn)return vn;yn=1;var t=D(),e=ye(),n=Function.prototype,r=t&&Object.getOwnPropertyDescriptor,i=e(n,"name"),o=i&&"something"===function(){}.name,a=i&&(!t||t&&r(n,"name").configurable);return vn={EXISTS:i,PROPER:o,CONFIGURABLE:a}}var En,On,Cn,An,Ln,Pn,Dn,Mn,Rn,In,kn,zn,jn,Nn,Fn,Bn,Wn,Yn,Gn,Xn,Un,Vn,Zn,qn,Hn,Jn,Kn,$n,Qn,tr,er,nr,rr,ir,or,ar,sr,ur,cr,lr,fr,hr,dr,pr,vr,yr,mr,gr,br,wr,_r,xr,Sr,Tr,Er,Or,Cr,Ar,Lr,Pr,Dr,Mr,Rr,Ir,kr,zr,jr,Nr,Fr={};function Br(){if(On)return En;On=1;var t=Math.ceil,e=Math.floor;return En=Math.trunc||function(n){var r=+n;return(r>0?e:t)(r)}}function Wr(){if(An)return Cn;An=1;var t=Br();return Cn=function(e){var n=+e;return n!=n||0===n?0:t(n)},Cn}function Yr(){if(Pn)return Ln;Pn=1;var t=Wr(),e=Math.max,n=Math.min;return Ln=function(r,i){var o=t(r);return o<0?e(o+i,0):n(o,i)}}function Gr(){if(Mn)return Dn;Mn=1;var t=Wr(),e=Math.min;return Dn=function(n){var r=t(n);return r>0?e(r,9007199254740991):0}}function Xr(){if(In)return Rn;In=1;var t=Gr();return Rn=function(e){return t(e.length)}}function Ur(){if(zn)return kn;zn=1;var t=xt(),e=Yr(),n=Xr(),r=function(r){return function(i,o,a){var s=t(i),u=n(s);if(0===u)return!r&&-1;var c,l=e(a,u);if(r&&o!=o){for(;u>l;)if((c=s[l++])!=c)return!0}else for(;u>l;l++)if((r||l in s)&&s[l]===o)return r||l||0;return!r&&-1}};return kn={includes:r(!0),indexOf:r(!1)}}function Vr(){if(Nn)return jn;Nn=1;var t=x(),e=ye(),n=xt(),r=Ur().indexOf,i=xn(),o=t([].push);return jn=function(t,a){var s,u=n(t),c=0,l=[];for(s in u)!e(i,s)&&e(u,s)&&o(l,s);for(;a.length>c;)e(u,s=a[c++])&&(~r(l,s)||o(l,s));return l},jn}function Zr(){return Bn?Fn:(Bn=1,Fn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}function qr(){if(Yn)return Wn;Yn=1;var t=Vr(),e=Zr();return Wn=Object.keys||function(n){return t(n,e)}}function Hr(){if(Gn)return Fr;Gn=1;var t=D(),e=Ue(),n=Ze(),r=Ve(),i=xt(),o=qr();return Fr.f=t&&!e?Object.defineProperties:function(t,e){r(t);for(var a,s=i(e),u=o(e),c=u.length,l=0;c>l;)n.f(t,a=u[l++],s[a]);return t},Fr}function Jr(){return Un?Xn:(Un=1,Xn=Et()("document","documentElement"))}function Kr(){if(Zn)return Vn;Zn=1;var t,e=Ve(),n=Hr(),r=Zr(),i=xn(),o=Jr(),a=_e(),s="prototype",u="script",c=_n()("IE_PROTO"),l=function(){},f=function(t){return"<"+u+">"+t+"</"+u+">"},h=function(t){t.write(f("")),t.close();var e=t.parentWindow.Object;return t=null,e},d=function(){try{t=new ActiveXObject("htmlfile")}catch(t){}var e,n,i;d="undefined"!=typeof document?document.domain&&t?h(t):(n=a("iframe"),i="java"+u+":",n.style.display="none",o.appendChild(n),n.src=String(i),(e=n.contentWindow.document).open(),e.write(f("document.F=Object")),e.close(),e.F):h(t);for(var c=r.length;c--;)delete d[s][r[c]];return d()};return i[c]=!0,Vn=Object.create||function(t,r){var i;return null!==t?(l[s]=e(t),i=new l,l[s]=null,i[c]=t):i=d(),void 0===r?i:n.f(i,r)}}function $r(){return Hn?qn:(Hn=1,qn=!b()(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))}function Qr(){if(Kn)return Jn;Kn=1;var t=ye(),e=E(),n=ve(),r=_n(),i=$r(),o=r("IE_PROTO"),a=Object,s=a.prototype;return Jn=i?a.getPrototypeOf:function(r){var i=n(r);if(t(i,o))return i[o];var u=i.constructor;return e(u)&&i instanceof u?u.prototype:i instanceof a?s:null},Jn}function ti(){if(Qn)return $n;Qn=1;var t=qe();return $n=function(e,n,r,i){return i&&i.enumerable?e[n]=r:t(e,n,r),e}}function ei(){if(er)return tr;er=1;var t,e,n,r=b(),i=E(),o=St(),a=Kr(),s=Qr(),u=ti(),c=ge(),l=fe(),f=c("iterator"),h=!1;return[].keys&&("next"in(n=[].keys())?(e=s(s(n)))!==Object.prototype&&(t=e):h=!0),!o(t)||r(function(){var e={};return t[f].call(e)!==e})?t={}:l&&(t=a(t)),i(t[f])||u(t,f,function(){return this}),tr={IteratorPrototype:t,BUGGY_SAFARI_ITERATORS:h}}function ni(){if(rr)return nr;rr=1;var t={};return t[ge()("toStringTag")]="z",nr="[object z]"===String(t)}function ri(){if(or)return ir;or=1;var t=ni(),e=E(),n=S(),r=ge()("toStringTag"),i=Object,o="Arguments"===n(function(){return arguments}());return ir=t?n:function(t){var a,s,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(s=function(t,e){try{return t[e]}catch(t){}}(a=i(t),r))?s:o?n(a):"Object"===(u=n(a))&&e(a.callee)?"Arguments":u}}function ii(){if(sr)return ar;sr=1;var t=ni(),e=ri();return ar=t?{}.toString:function(){return"[object "+e(this)+"]"}}function oi(){if(cr)return ur;cr=1;var t=ni(),e=Ze().f,n=qe(),r=ye(),i=ii(),o=ge()("toStringTag");return ur=function(a,s,u,c){var l=u?a:a&&a.prototype;l&&(r(l,o)||e(l,o,{configurable:!0,value:s}),c&&!t&&n(l,"toString",i))}}function ai(){if(fr)return lr;fr=1;var t=ei().IteratorPrototype,e=Kr(),n=gt(),r=oi(),i=bn(),o=function(){return this};return lr=function(a,s,u,c){var l=s+" Iterator";return a.prototype=e(t,{next:n(+!c,u)}),r(a,l,!1,!0),i[l]=o,a}}function si(){if(dr)return hr;dr=1;var t=x(),e=Rt();return hr=function(n,r,i){try{return t(e(Object.getOwnPropertyDescriptor(n,r)[i]))}catch(t){}},hr}function ui(){if(vr)return pr;vr=1;var t=St();return pr=function(e){return t(e)||null===e}}function ci(){if(mr)return yr;mr=1;var t=ui(),e=String,n=TypeError;return yr=function(r){if(t(r))return r;throw new n("Can't set "+e(r)+" as a prototype")}}function li(){if(br)return gr;br=1;var t=si(),e=St(),n=_t(),r=ci();return gr=Object.setPrototypeOf||("__proto__"in{}?function(){var i,o=!1,a={};try{(i=t(Object.prototype,"__proto__","set"))(a,[]),o=a instanceof Array}catch(t){}return function(t,a){return n(t),r(a),e(t)?(o?i(t,a):t.__proto__=a,t):t}}():void 0)}function fi(){if(_r)return wr;_r=1;var t=He(),e=M(),n=fe(),r=Tn(),i=E(),o=ai(),a=Qr(),s=li(),u=oi(),c=qe(),l=ti(),f=ge(),h=bn(),d=ei(),p=r.PROPER,v=r.CONFIGURABLE,y=d.IteratorPrototype,m=d.BUGGY_SAFARI_ITERATORS,g=f("iterator"),b="keys",w="values",_="entries",x=function(){return this};return wr=function(r,f,d,S,T,E,O){o(d,f,S);var C,A,L,P=function(t){if(t===T&&k)return k;if(!m&&t&&t in R)return R[t];switch(t){case b:case w:case _:return function(){return new d(this,t)}}return function(){return new d(this)}},D=f+" Iterator",M=!1,R=r.prototype,I=R[g]||R["@@iterator"]||T&&R[T],k=!m&&I||P(T),z="Array"===f&&R.entries||I;if(z&&(C=a(z.call(new r)))!==Object.prototype&&C.next&&(n||a(C)===y||(s?s(C,y):i(C[g])||l(C,g,x)),u(C,D,!0,!0),n&&(h[D]=x)),p&&T===w&&I&&I.name!==w&&(!n&&v?c(R,"name",w):(M=!0,k=function(){return e(I,this)})),T)if(A={values:P(w),keys:E?k:P(b),entries:P(_)},O)for(L in A)(m||M||!(L in R))&&l(R,L,A[L]);else t({target:f,proto:!0,forced:m||M},A);return n&&!O||R[g]===k||l(R,g,k,{name:T}),h[f]=k,A}}function hi(){return Sr?xr:(Sr=1,xr=function(t,e){return{value:t,done:e}})}function di(){if(Er)return Tr;Er=1;var t=xt(),e=gn(),n=bn(),r=Sn(),i=Ze().f,o=fi(),a=hi(),s=fe(),u=D(),c="Array Iterator",l=r.set,f=r.getterFor(c);Tr=o(Array,"Array",function(e,n){l(this,{type:c,target:t(e),index:0,kind:n})},function(){var t=f(this),e=t.target,n=t.index++;if(!e||n>=e.length)return t.target=null,a(void 0,!0);switch(t.kind){case"keys":return a(n,!1);case"values":return a(e[n],!1)}return a([n,e[n]],!1)},"values");var h=n.Arguments=n.Array;if(e("keys"),e("values"),e("entries"),!s&&u&&"values"!==h.name)try{i(h,"name",{value:"values"})}catch(t){}return Tr}function pi(){return Cr?Or:(Cr=1,Or={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})}function vi(){if(Ar)return mn;Ar=1,di();var t=pi(),e=g(),n=oi(),r=bn();for(var i in t)n(e[i],i),r[i]=r.Array;return mn}function yi(){if(Pr)return Lr;Pr=1;var t=g(),e=Tt();return Lr=function(n,r){var i=e[n+"Prototype"],o=i&&i[r];if(o)return o;var a=t[n],s=a&&a.prototype;return s&&s[r]}}function mi(){return Mr?Dr:(Mr=1,di(),Dr=yi()("Array","values"))}function gi(){return Ir?Rr:(Ir=1,Rr=mi())}function bi(){if(zr)return kr;zr=1,vi();var t=ri(),e=ye(),n=Ot(),r=gi(),i=Array.prototype,o={DOMTokenList:!0,NodeList:!0};return kr=function(a){var s=a.values;return a===i||n(i,a)&&s===i.values||e(o,t(a))?r:s}}var wi,_i,xi,Si,Ti,Ei,Oi,Ci,Ai,Li=e(Nr?jr:(Nr=1,jr=bi())),Pi={},Di={};function Mi(){if(_i)return wi;_i=1;var t=g(),e=Ct(),n=S(),r=function(t){return e.slice(0,t.length)===t};return wi=r("Bun/")?"BUN":r("Cloudflare-Workers")?"CLOUDFLARE":r("Deno/")?"DENO":r("Node.js/")?"NODE":t.Bun&&"string"==typeof Bun.version?"BUN":t.Deno&&"object"==typeof Deno.version?"DENO":"process"===n(t.process)?"NODE":t.window&&t.document?"BROWSER":"REST"}function Ri(){return Si?xi:(Si=1,xi=x()([].slice))}function Ii(){if(Ei)return Ti;Ei=1;var t=TypeError;return Ti=function(e,n){if(e<n)throw new t("Not enough arguments");return e}}function ki(){if(Ci)return Oi;Ci=1;var t,e=g(),n=_(),r=E(),i=Mi(),o=Ct(),a=Ri(),s=Ii(),u=e.Function,c=/MSIE .\./.test(o)||"BUN"===i&&((t=e.Bun.version.split(".")).length<3||"0"===t[0]&&(t[1]<3||"3"===t[1]&&"0"===t[2]));return Oi=function(t,e){var i=e?2:1;return c?function(o,c){var l=s(arguments.length,1)>i,f=r(o)?o:u(o),h=l?a(arguments,i):[],d=l?function(){n(f,this,h)}:f;return e?t(d,c):t(d)}:t},Oi}var zi,ji,Ni,Fi,Bi,Wi,Yi={};function Gi(){return ji||(ji=1,function(){if(Ai)return Di;Ai=1;var t=He(),e=g(),n=ki()(e.setInterval,!0);t({global:!0,bind:!0,forced:e.setInterval!==n},{setInterval:n})}(),function(){if(zi)return Yi;zi=1;var t=He(),e=g(),n=ki()(e.setTimeout,!0);t({global:!0,bind:!0,forced:e.setTimeout!==n},{setTimeout:n})}()),Pi}function Xi(){return Fi?Ni:(Fi=1,Gi(),Ni=Tt().setTimeout)}var Ui,Vi,Zi=e(Wi?Bi:(Wi=1,Bi=Xi())),qi={},Hi={};function Ji(){if(Vi)return Ui;Vi=1;var t=ri(),e=String;return Ui=function(n){if("Symbol"===t(n))throw new TypeError("Cannot convert a Symbol value to a string");return e(n)}}var Ki,$i={};function Qi(){if(Ki)return $i;Ki=1;var t=Vr(),e=Zr().concat("length","prototype");return $i.f=Object.getOwnPropertyNames||function(n){return t(n,e)},$i}var to,eo={};function no(){if(to)return eo;to=1;var t=S(),e=xt(),n=Qi().f,r=Ri(),i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];return eo.f=function(o){return i&&"Window"===t(o)?function(t){try{return n(t)}catch(t){return r(i)}}(o):n(e(o))},eo}var ro,io,oo,ao={};function so(){return ro||(ro=1,ao.f=Object.getOwnPropertySymbols),ao}function uo(){if(oo)return io;oo=1;var t=Ze();return io=function(e,n,r){return t.f(e,n,r)}}var co,lo,fo,ho,po,vo,yo,mo,go,bo,wo,_o,xo,So,To,Eo,Oo,Co,Ao,Lo,Po={};function Do(){if(co)return Po;co=1;var t=ge();return Po.f=t,Po}function Mo(){if(fo)return lo;fo=1;var t=Tt(),e=ye(),n=Do(),r=Ze().f;return lo=function(i){var o=t.Symbol||(t.Symbol={});e(o,i)||r(o,i,{value:n.f(i)})}}function Ro(){if(po)return ho;po=1;var t=M(),e=Et(),n=ge(),r=ti();return ho=function(){var i=e("Symbol"),o=i&&i.prototype,a=o&&o.valueOf,s=n("toPrimitive");o&&!o[s]&&r(o,s,function(e){return t(a,this)},{arity:1})}}function Io(){if(yo)return vo;yo=1;var t=S();return vo=Array.isArray||function(e){return"Array"===t(e)}}function ko(){if(go)return mo;go=1;var t=x(),e=E(),n=de(),r=t(Function.toString);return e(n.inspectSource)||(n.inspectSource=function(t){return r(t)}),mo=n.inspectSource}function zo(){if(wo)return bo;wo=1;var t=x(),e=b(),n=E(),r=ri(),i=Et(),o=ko(),a=function(){},s=i("Reflect","construct"),u=/^\s*(?:class|function)\b/,c=t(u.exec),l=!u.test(a),f=function(t){if(!n(t))return!1;try{return s(a,[],t),!0}catch(t){return!1}},h=function(t){if(!n(t))return!1;switch(r(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return l||!!c(u,o(t))}catch(t){return!0}};return h.sham=!0,bo=!s||e(function(){var t;return f(f.call)||!f(Object)||!f(function(){t=!0})||t})?h:f}function jo(){if(xo)return _o;xo=1;var t=Io(),e=zo(),n=St(),r=ge()("species"),i=Array;return _o=function(o){var a;return t(o)&&(a=o.constructor,(e(a)&&(a===i||t(a.prototype))||n(a)&&null===(a=a[r]))&&(a=void 0)),void 0===a?i:a}}function No(){if(To)return So;To=1;var t=jo();return So=function(e,n){return new(t(e))(0===n?0:n)}}function Fo(){if(Oo)return Eo;Oo=1;var t=D(),e=Ze(),n=gt();return Eo=function(r,i,o){t?e.f(r,i,n(0,o)):r[i]=o},Eo}function Bo(){if(Ao)return Co;Ao=1;var t=Ee(),e=bt(),n=ve(),r=Xr(),i=No(),o=Fo(),a=function(a){var s=1===a,u=2===a,c=3===a,l=4===a,f=6===a,h=7===a,d=5===a||f;return function(p,v,y){for(var m,g,b=n(p),w=e(b),_=r(w),x=t(v,y),S=0,T=0,E=s?i(p,_):u||h?i(p,0):void 0;_>S;S++)if((d||S in w)&&(g=x(m=w[S],S,b),a))if(s)o(E,S,g);else if(g)switch(a){case 3:return!0;case 5:return m;case 6:return S;case 2:o(E,T++,m)}else switch(a){case 4:return!1;case 7:o(E,T++,m)}return f?-1:c||l?l:E}};return Co={forEach:a(0),map:a(1),filter:a(2),some:a(3),every:a(4),find:a(5),findIndex:a(6),filterReject:a(7)}}var Wo,Yo,Go,Xo={};function Uo(){return Yo?Wo:(Yo=1,Wo=Lt()&&!!Symbol.for&&!!Symbol.keyFor)}var Vo,Zo={};var qo,Ho,Jo,Ko,$o,Qo,ta,ea,na,ra={};function ia(){if(Ho)return qo;Ho=1;var t=St(),e=Sn().get;return qo=function(n){if(!t(n))return!1;var r=e(n);return!!r&&"RawJSON"===r.type}}function oa(){return Ko?Jo:(Ko=1,Jo=x()(1.1.valueOf))}function aa(){if(Qo)return $o;Qo=1;var t=x(),e=ye(),n=SyntaxError,r=parseInt,i=String.fromCharCode,o=t("".charAt),a=t("".slice),s=t(/./.exec),u={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"},c=/^[\da-f]{4}$/i,l=/^[\u0000-\u001F]$/;return $o=function(t,f){for(var h=!0,d="";f<t.length;){var p=o(t,f);if("\\"===p){var v=a(t,f,f+2);if(e(u,v))d+=u[v],f+=2;else{if("\\u"!==v)throw new n('Unknown escape sequence: "'+v+'"');var y=a(t,f+=2,f+4);if(!s(c,y))throw new n("Bad Unicode escape at: "+f);d+=i(r(y,16)),f+=4}}else{if('"'===p){h=!1,f++;break}if(s(l,p))throw new n("Bad control character in string literal at: "+f);d+=p,f++}}if(h)throw new n("Unterminated string at: "+f);return{value:d,end:f}}}function sa(){return ea?ta:(ea=1,ta=!b()(function(){var t="9007199254740993",e=JSON.rawJSON(t);return!JSON.isRawJSON(e)||JSON.stringify(e)!==t}))}function ua(){if(na)return ra;na=1;var t=He(),e=Et(),n=M(),r=x(),i=b(),o=Io(),a=E(),s=St(),u=Kr(),c=ia(),l=Dt(),f=S(),h=oa(),d=Ur().includes,p=ye(),v=Ji(),y=aa(),m=me(),g=Lt(),w=sa(),_=String,T=TypeError,O=e("JSON","stringify"),C=e("BigInt"),A=r("".valueOf),L=r((!0).valueOf),P=C&&r(C.prototype.valueOf),D=r(/./.exec),R=r("".charAt),I=r("".charCodeAt),k=r("".replace),z=r("".slice),j=r([].push),N=r([].pop),F=r(1.1.toString),B=/[\uD800-\uDFFF]/g,W=/^[\uD800-\uDBFF]$/,Y=/^[\uDC00-\uDFFF]$/,G=/^\d+$/,X=m(),U=m(),V=m(),Z=X.length,q=U.length,H=!g||i(function(){var t=e("Symbol")("stringify detection");return"[null]"!==O([t])||"{}"!==O({a:t})||"{}"!==O(Object(t))}),J=i(function(){return'"\\udf06\\ud834"'!==O("\udf06\ud834")||'"\\udead"'!==O("\udead")}),K=w?e("JSON","isRawJSON"):c,$=H?function(t,e,r){return O(t,function(t,r){var i=n(e,this,t,r);if(!l(i))return i},r)}:O,Q=function(t,e,n){var r=R(n,e-1),i=R(n,e+1);return D(W,t)&&!D(Y,i)||D(Y,t)&&!D(W,r)?"\\u"+F(I(t,0),16):t},tt=function(t,e){try{return t(e),!0}catch(t){return!1}},et=function(t){if(!s(t)||a(t)||o(t))return!1;try{return!function(t){var e=f(t);return"Number"===e&&tt(h,t)||"String"===e&&tt(A,t)||"Boolean"===e&&tt(L,t)||!!P&&"BigInt"===e&&tt(P,t)}(t)}catch(t){return!0}},nt=function(t,e){return{toJSON:function(){var r=t[e];if(s(r)||"bigint"==typeof r){var i=r.toJSON;a(i)&&(r=n(i,r,e))}return r}}};return O&&t({target:"JSON",stat:!0,arity:3,forced:H||J||!w},{stringify:function(t,e,r){var i,s=a(e)?e:void 0,c=s?void 0:function(t){if(o(t)){for(var e=t.length,n=[],r=u(null),i=0;i<e;i++){var a,s=t[i];if("string"==typeof s)a=s;else{if("number"!=typeof s&&"Number"!==f(s)&&"String"!==f(s))continue;a=v(s)}p(r,a)||(r[a]=!0,j(n,a))}return n}}(e),l=c&&function(t){for(var e=0,n=t.length;e<n;e++)if(D(G,t[e]))return U;return""}(c),h=[],m=[],g=[],b=!1,x=!0,S=$(t,function(t,e){if(t=_(t),c){if(t===V)return N(m),void(i=N(g));if(x)x=!1;else if(this!==i&&!o(this)&&!d(c,t))return}else s&&(e=n(s,this,t,e));if(K(e))return w?e:(b=!0,X+(j(h,e.rawJSON)-1));if(c&&et(e)){if(d(m,e))throw new T("Converting circular structure to JSON");var r=function(t,e,n){for(var r=u(null),i=0,o=e.length;i<o;i++){var a=e[i];r[n+a]=nt(t,a)}return r[V]=null,r}(e,c,l);return j(m,e),j(g,i),i=r,l&&(b=!0),r}return e},r);if("string"!=typeof S)return S;if(J&&(S=k(S,B,Q)),!b)return S;for(var E="",O=S.length,C=0;C<O;C++){var A=R(S,C);if('"'===A){var L=y(S,++C).end-1,P=z(S,C,L);z(P,0,Z)===X?E+=h[z(P,Z)]:z(P,0,q)===U?E+='"'+z(P,q)+'"':E+='"'+P+'"',C=L}else E+=A}return E}}),ra}var ca,la,fa,ha,da,pa,va,ya,ma={};function ga(){return la||(la=1,function(){if(Lo)return Hi;Lo=1;var t=He(),e=g(),n=M(),r=x(),i=fe(),o=D(),a=Lt(),s=b(),u=ye(),c=Ot(),l=Ve(),f=xt(),h=we(),d=Ji(),p=gt(),v=Kr(),y=qr(),m=Qi(),w=no(),_=so(),S=Se(),T=Ze(),E=Hr(),O=mt(),C=ti(),A=uo(),L=pe(),P=_n(),R=xn(),I=me(),k=ge(),z=Do(),j=Mo(),N=Ro(),F=oi(),B=Sn(),W=Bo().forEach,Y=P("hidden"),G="Symbol",X="prototype",U=B.set,V=B.getterFor(G),Z=Object[X],q=e.Symbol,H=q&&q[X],J=e.RangeError,K=e.TypeError,$=e.QObject,Q=S.f,tt=T.f,et=w.f,nt=O.f,rt=r([].push),it=L("symbols"),ot=L("op-symbols"),at=L("wks"),st=!$||!$[X]||!$[X].findChild,ut=function(t,e,n){var r=Q(Z,e);return r&&delete Z[e],tt(t,e,n),r&&t!==Z&&tt(Z,e,r),t},ct=o&&s(function(){return 7!==v(tt({},"a",{get:function(){return tt(this,"a",{value:7}).a}})).a})?ut:tt,lt=function(t,e){var n=it[t]=v(H);return U(n,{type:G,tag:t,description:e}),o||(n.description=e),n},ft=function(t,e,n){t===Z&&ft(ot,e,n),l(t);var r=h(e);return l(n),u(it,r)?(("enumerable"in n?!n.enumerable:!u(t,r)||u(t,Y)&&t[Y][r])?(u(t,Y)||tt(t,Y,p(1,v(null))),t[Y][r]=!0):(u(t,Y)&&t[Y][r]&&(t[Y][r]=!1),n=v(n,{enumerable:p(0,!1)})),ct(t,r,n)):tt(t,r,n)},ht=function(t,e){l(t);var r=f(e),i=y(r).concat(yt(r));return W(i,function(e){o&&!n(dt,r,e)||ft(t,e,r[e])}),t},dt=function(t){var e=h(t),r=n(nt,this,e);return!(this===Z&&u(it,e)&&!u(ot,e))&&(!(r||!u(this,e)||!u(it,e)||u(this,Y)&&this[Y][e])||r)},pt=function(t,e){var n=f(t),r=h(e);if(n!==Z||!u(it,r)||u(ot,r)){var i=Q(n,r);return!i||!u(it,r)||u(n,Y)&&n[Y][r]||(i.enumerable=!0),i}},vt=function(t){var e=et(f(t)),n=[];return W(e,function(t){u(it,t)||u(R,t)||rt(n,t)}),n},yt=function(t){var e=t===Z,n=et(e?ot:f(t)),r=[];return W(n,function(t){!u(it,t)||e&&!u(Z,t)||rt(r,it[t])}),r};a||(q=function(){if(c(H,this))throw new K("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?d(arguments[0]):void 0,r=I(t),i=function(t){var o=void 0===this?e:this;o===Z&&n(i,ot,t),u(o,Y)&&u(o[Y],r)&&(o[Y][r]=!1);var a=p(1,t);try{ct(o,r,a)}catch(t){if(!(t instanceof J))throw t;ut(o,r,a)}};return o&&st&&ct(Z,r,{configurable:!0,set:i}),lt(r,t)},C(H=q[X],"toString",function(){return V(this).tag}),C(q,"withoutSetter",function(t){return lt(I(t),t)}),O.f=dt,T.f=ft,E.f=ht,S.f=pt,m.f=w.f=vt,_.f=yt,z.f=function(t){return lt(k(t),t)},o&&(A(H,"description",{configurable:!0,get:function(){return V(this).description}}),i||C(Z,"propertyIsEnumerable",dt,{unsafe:!0}))),t({global:!0,constructor:!0,wrap:!0,forced:!a,sham:!a},{Symbol:q}),W(y(at),function(t){j(t)}),t({target:G,stat:!0,forced:!a},{useSetter:function(){st=!0},useSimple:function(){st=!1}}),t({target:"Object",stat:!0,forced:!a,sham:!o},{create:function(t,e){return void 0===e?v(t):ht(v(t),e)},defineProperty:ft,defineProperties:ht,getOwnPropertyDescriptor:pt}),t({target:"Object",stat:!0,forced:!a},{getOwnPropertyNames:vt}),N(),F(q,G),R[Y]=!0}(),function(){if(Go)return Xo;Go=1;var t=He(),e=Et(),n=ye(),r=Ji(),i=pe(),o=Uo(),a=i("string-to-symbol-registry"),s=i("symbol-to-string-registry");t({target:"Symbol",stat:!0,forced:!o},{for:function(t){var i=r(t);if(n(a,i))return a[i];var o=e("Symbol")(i);return a[i]=o,s[o]=i,o}})}(),function(){if(Vo)return Zo;Vo=1;var t=He(),e=ye(),n=Dt(),r=Mt(),i=pe(),o=Uo(),a=i("symbol-to-string-registry");t({target:"Symbol",stat:!0,forced:!o},{keyFor:function(t){if(!n(t))throw new TypeError(r(t)+" is not a symbol");if(e(a,t))return a[t]}})}(),ua(),function(){if(ca)return ma;ca=1;var t=He(),e=Lt(),n=b(),r=so(),i=ve();t({target:"Object",stat:!0,forced:!e||n(function(){r.f(1)})},{getOwnPropertySymbols:function(t){var e=r.f;return e?e(i(t)):[]}})}()),qi}function ba(){return ha?fa:(ha=1,ga(),fa=Tt().Object.getOwnPropertySymbols)}function wa(){return pa?da:(pa=1,da=ba())}var _a,xa,Sa,Ta,Ea,Oa,Ca=e(ya?va:(ya=1,va=wa())),Aa={exports:{}},La={};function Pa(){if(xa)return Aa.exports;xa=1,function(){if(_a)return La;_a=1;var t=He(),e=b(),n=xt(),r=Se().f,i=D();t({target:"Object",stat:!0,forced:!i||e(function(){r(1)}),sham:!i},{getOwnPropertyDescriptor:function(t,e){return r(n(t),e)}})}();var t=Tt().Object,e=Aa.exports=function(e,n){return t.getOwnPropertyDescriptor(e,n)};return t.getOwnPropertyDescriptor.sham&&(e.sham=!0),Aa.exports}function Da(){return Ta?Sa:(Ta=1,Sa=Pa())}var Ma,Ra,Ia,ka,za,ja,Na,Fa,Ba,Wa=e(Oa?Ea:(Oa=1,Ea=Da())),Ya={};function Ga(){if(Ra)return Ma;Ra=1;var t=Et(),e=x(),n=Qi(),r=so(),i=Ve(),o=e([].concat);return Ma=t("Reflect","ownKeys")||function(t){var e=n.f(i(t)),a=r.f;return a?o(e,a(t)):e},Ma}function Xa(){return za?ka:(za=1,function(){if(Ia)return Ya;Ia=1;var t=He(),e=D(),n=Ga(),r=xt(),i=Se(),o=Fo();t({target:"Object",stat:!0,sham:!e},{getOwnPropertyDescriptors:function(t){for(var e,a,s=r(t),u=i.f,c=n(s),l={},f=0;c.length>f;)void 0!==(a=u(s,e=c[f++]))&&o(l,e,a);return l}})}(),ka=Tt().Object.getOwnPropertyDescriptors)}function Ua(){return Na?ja:(Na=1,ja=Xa())}var Va,Za,qa,Ha,Ja,Ka,$a=e(Ba?Fa:(Ba=1,Fa=Ua())),Qa={exports:{}},ts={};function es(){if(Va)return ts;Va=1;var t=He(),e=D(),n=Hr().f;return t({target:"Object",stat:!0,forced:Object.defineProperties!==n,sham:!e},{defineProperties:n}),ts}function ns(){if(Za)return Qa.exports;Za=1,es();var t=Tt().Object,e=Qa.exports=function(e,n){return t.defineProperties(e,n)};return t.defineProperties.sham&&(e.sham=!0),Qa.exports}function rs(){return Ha?qa:(Ha=1,qa=ns())}var is,os,as,ss,us,cs,ls,fs,hs,ds,ps,vs=e(Ka?Ja:(Ka=1,Ja=rs()));function ys(){return as?os:(as=1,is||(is=1,He()({target:"Array",stat:!0},{isArray:Io()})),os=Tt().Array.isArray)}function ms(){return us?ss:(us=1,ss=ys())}function gs(){return ls?cs:(ls=1,cs=ms())}function bs(){return hs?fs:(hs=1,fs=gs())}function ws(){return ps?ds:(ps=1,ds=bs())}var _s=e(ws());var xs,Ss,Ts,Es,Os,Cs,As,Ls={};function Ps(){if(Ss)return xs;Ss=1;var t=TypeError;return xs=function(e){if(e>9007199254740991)throw new t("Maximum allowed index exceeded");return e}}function Ds(){if(Es)return Ts;Es=1;var t=D(),e=Io(),n=TypeError,r=Object.getOwnPropertyDescriptor,i=t&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();return Ts=i?function(t,i){if(e(t)&&!r(t,"length").writable)throw new n("Cannot set read only .length");return t.length=i}:function(t,e){return t.length=e}}function Ms(){if(Cs)return Os;Cs=1;var t=b(),e=ge(),n=At(),r=e("species");return Os=function(e){return n>=51||!t(function(){var t=[];return(t.constructor={})[r]=function(){return{foo:1}},1!==t[e](Boolean).foo})},Os}function Rs(){if(As)return Ls;As=1;var t=He(),e=b(),n=Io(),r=St(),i=ve(),o=Xr(),a=Ps(),s=Fo(),u=Ds(),c=No(),l=Ms(),f=ge(),h=At(),d=f("isConcatSpreadable"),p=h>=51||!e(function(){var t=[];return t[d]=!1,t.concat()[0]!==t}),v=function(t){if(!r(t))return!1;var e=t[d];return void 0!==e?!!e:n(t)};return t({target:"Array",proto:!0,arity:1,forced:!p||!l("concat")},{concat:function(t){var e,n,r,l,f,h=i(this),d=c(h,0),p=0;for(e=-1,r=arguments.length;e<r;e++)if(v(f=-1===e?h:arguments[e]))for(l=o(f),a(p+l),n=0;n<l;n++,p++)n in f&&s(d,p,f[n]);else a(p+1),s(d,p++,f);return u(d,p),d}}),Ls}var Is,ks={};function zs(){return Is||(Is=1,Mo()("asyncDispose")),ks}var js;var Ns,Fs={};function Bs(){return Ns||(Ns=1,Mo()("dispose")),Fs}var Ws;var Ys;var Gs,Xs={};function Us(){return Gs||(Gs=1,Mo()("iterator")),Xs}var Vs;var Zs;var qs;var Hs;var Js;var Ks;var $s,Qs={};function tu(){if($s)return Qs;$s=1;var t=Mo(),e=Ro();return t("toPrimitive"),e(),Qs}var eu,nu={};var ru;var iu,ou,au,su,uu,cu={};function lu(){return au?ou:(au=1,Rs(),ga(),zs(),js||(js=1,Mo()("asyncIterator")),Bs(),Ws||(Ws=1,Mo()("hasInstance")),Ys||(Ys=1,Mo()("isConcatSpreadable")),Us(),Vs||(Vs=1,Mo()("match")),Zs||(Zs=1,Mo()("matchAll")),qs||(qs=1,Mo()("replace")),Hs||(Hs=1,Mo()("search")),Js||(Js=1,Mo()("species")),Ks||(Ks=1,Mo()("split")),tu(),function(){if(eu)return nu;eu=1;var t=Et(),e=Mo(),n=oi();e("toStringTag"),n(t("Symbol"),"Symbol")}(),ru||(ru=1,Mo()("unscopables")),function(){if(iu)return cu;iu=1;var t=g();oi()(t.JSON,"JSON",!0)}(),ou=Tt().Symbol)}function fu(){if(uu)return su;uu=1;var t=lu();return vi(),su=t}var hu,du={};var pu;var vu;var yu,mu,gu;function bu(){if(gu)return mu;gu=1;var t=fu();return function(){if(hu)return du;hu=1;var t=ge(),e=Ze().f,n=t("metadata"),r=Function.prototype;void 0===r[n]&&e(r,n,{value:null})}(),pu||(pu=1,zs()),vu||(vu=1,Bs()),yu||(yu=1,Mo()("metadata")),mu=t}var wu,_u,xu;function Su(){if(_u)return wu;_u=1;var t=Et(),e=x(),n=t("Symbol"),r=n.keyFor,i=e(n.prototype.valueOf);return wu=n.isRegisteredSymbol||function(t){try{return void 0!==r(i(t))}catch(t){return!1}}}var Tu,Eu,Ou;function Cu(){if(Eu)return Tu;Eu=1;for(var t=pe(),e=Et(),n=x(),r=Dt(),i=ge(),o=e("Symbol"),a=o.isWellKnownSymbol,s=e("Object","getOwnPropertyNames"),u=n(o.prototype.valueOf),c=t("wks"),l=0,f=s(o),h=f.length;l<h;l++)try{var d=f[l];r(o[d])&&i(d)}catch(t){}return Tu=function(t){if(a&&a(t))return!0;try{for(var e=u(t),n=0,r=s(c),i=r.length;n<i;n++)if(c[r[n]]==e)return!0}catch(t){}return!1},Tu}var Au;var Lu;var Pu;var Du;var Mu;var Ru;var Iu;var ku,zu,ju,Nu,Fu;function Bu(){if(ju)return zu;ju=1;var t=bu();return xu||(xu=1,He()({target:"Symbol",stat:!0},{isRegisteredSymbol:Su()})),Ou||(Ou=1,He()({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:Cu()})),Au||(Au=1,Mo()("customMatcher")),Lu||(Lu=1,Mo()("observable")),Pu||(Pu=1,He()({target:"Symbol",stat:!0,name:"isRegisteredSymbol"},{isRegistered:Su()})),Du||(Du=1,He()({target:"Symbol",stat:!0,name:"isWellKnownSymbol",forced:!0},{isWellKnown:Cu()})),Mu||(Mu=1,Mo()("matcher")),Ru||(Ru=1,Mo()("metadataKey")),Iu||(Iu=1,Mo()("patternMatch")),ku||(ku=1,Mo()("replaceAll")),zu=t}function Wu(){return Fu?Nu:(Fu=1,Nu=Bu())}var Yu,Gu,Xu,Uu,Vu,Zu,qu,Hu,Ju,Ku,$u,Qu,tc,ec,nc,rc,ic,oc=e(Wu()),ac={};function sc(){if(Gu)return Yu;Gu=1;var t=x(),e=Wr(),n=Ji(),r=_t(),i=t("".charAt),o=t("".charCodeAt),a=t("".slice),s=function(t){return function(s,u){var c,l,f=n(r(s)),h=e(u),d=f.length;return h<0||h>=d?t?"":void 0:(c=o(f,h))<55296||c>56319||h+1===d||(l=o(f,h+1))<56320||l>57343?t?i(f,h):c:t?a(f,h,h+2):l-56320+(c-55296<<10)+65536}};return Yu={codeAt:s(!1),charAt:s(!0)}}function uc(){if(Xu)return ac;Xu=1;var t=sc().charAt,e=Ji(),n=Sn(),r=fi(),i=hi(),o="String Iterator",a=n.set,s=n.getterFor(o);return r(String,"String",function(t){a(this,{type:o,string:e(t),index:0})},function(){var e,n=s(this),r=n.string,o=n.index;return o>=r.length?i(void 0,!0):(e=t(r,o),n.index+=e.length,i(e,!1))}),ac}function cc(){if(Vu)return Uu;Vu=1;var t=ri(),e=ye(),n=bn();return Uu=function(r){var i=t(r);return"Arguments"===i&&(i="Array"),e(n,i)?n[i]:void 0}}function lc(){if(qu)return Zu;qu=1;var t=cc(),e=ge()("iterator");return Zu=function(n){return n[e]||n["@@iterator"]||t(n)}}function fc(){return Ju?Hu:(Ju=1,di(),uc(),Hu=lc())}function hc(){if($u)return Ku;$u=1;var t=fc();return vi(),Ku=t}function dc(){return tc?Qu:(tc=1,Qu=hc())}function pc(){return nc?ec:(nc=1,ec=dc())}function vc(){return ic?rc:(ic=1,rc=pc())}var yc,mc,gc,bc,wc,_c,xc,Sc,Tc,Ec,Oc,Cc,Ac,Lc=e(vc()),Pc={};function Dc(){return gc?mc:(gc=1,function(){if(yc)return Pc;yc=1;var t=He(),e=ve(),n=Xr(),r=Ds(),i=Ps();t({target:"Array",proto:!0,arity:1,forced:b()(function(){return 4294967297!==[].push.call({length:4294967296},1)})||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}()},{push:function(t){var o=e(this),a=n(o),s=arguments.length;i(a+s);for(var u=0;u<s;u++)o[a]=arguments[u],a++;return r(o,a),a}})}(),mc=yi()("Array","push"))}function Mc(){if(wc)return bc;wc=1;var t=Ot(),e=Dc(),n=Array.prototype;return bc=function(r){var i=r.push;return r===n||t(n,r)&&i===n.push?e:i}}function Rc(){return xc?_c:(xc=1,_c=Mc())}function Ic(){return Tc?Sc:(Tc=1,Sc=Rc())}function kc(){return Oc?Ec:(Oc=1,Ec=Ic())}function zc(){return Ac?Cc:(Ac=1,Cc=kc())}var jc=e(zc());var Nc,Fc,Bc,Wc,Yc,Gc,Xc,Uc,Vc,Zc,qc,Hc,Jc,Kc={};function $c(){return Bc?Fc:(Bc=1,function(){if(Nc)return Kc;Nc=1;var t=He(),e=Io(),n=zo(),r=St(),i=Yr(),o=Xr(),a=xt(),s=Fo(),u=Ds(),c=ge(),l=Ms(),f=Ri(),h=l("slice"),d=c("species"),p=Array,v=Math.max;t({target:"Array",proto:!0,forced:!h},{slice:function(t,c){var l,h,y,m=a(this),g=o(m),b=i(t,g),w=i(void 0===c?g:c,g);if(e(m)&&(l=m.constructor,(n(l)&&(l===p||e(l.prototype))||r(l)&&null===(l=l[d]))&&(l=void 0),l===p||void 0===l))return f(m,b,w);for(h=new(void 0===l?p:l)(v(w-b,0)),y=0;b<w;b++,y++)b in m&&s(h,y,m[b]);return u(h,y),h}})}(),Fc=yi()("Array","slice"))}function Qc(){if(Yc)return Wc;Yc=1;var t=Ot(),e=$c(),n=Array.prototype;return Wc=function(r){var i=r.slice;return r===n||t(n,r)&&i===n.slice?e:i}}function tl(){return Xc?Gc:(Xc=1,Gc=Qc())}function el(){return Vc?Uc:(Vc=1,Uc=tl())}function nl(){return qc?Zc:(qc=1,Zc=el())}function rl(){return Jc?Hc:(Jc=1,Hc=nl())}var il,ol,al,sl,ul,cl,ll,fl,hl,dl,pl,vl,yl,ml,gl,bl,wl,_l,xl,Sl,Tl,El,Ol,Cl,Al,Ll=e(rl()),Pl={};function Dl(){if(ol)return il;ol=1;var t=M(),e=Ve(),n=It();return il=function(r,i,o){var a,s;e(r);try{if(!(a=n(r,"return"))){if("throw"===i)throw o;return o}a=t(a,r)}catch(t){s=!0,a=t}if("throw"===i)throw o;if(s)throw a;return e(a),o},il}function Ml(){if(sl)return al;sl=1;var t=Ve(),e=Dl();return al=function(n,r,i,o){try{return o?r(t(i)[0],i[1]):r(i)}catch(t){e(n,"throw",t)}},al}function Rl(){if(cl)return ul;cl=1;var t=ge(),e=bn(),n=t("iterator"),r=Array.prototype;return ul=function(t){return void 0!==t&&(e.Array===t||r[n]===t)}}function Il(){if(fl)return ll;fl=1;var t=It(),e=wt(),n=cc(),r=ge()("iterator");return ll=function(i){if(!e(i))return t(i,r)||t(i,"@@iterator")||n(i)}}function kl(){if(dl)return hl;dl=1;var t=M(),e=E(),n=Ve(),r=Mt(),i=Il(),o=TypeError;return hl=function(a,s){var u=arguments.length<2?i(a):s;if(e(u))return n(t(u,a));throw new o(r(a)+" is not iterable")},hl}function zl(){if(vl)return pl;vl=1;var t=Ee(),e=M(),n=ve(),r=Ml(),i=Rl(),o=zo(),a=Xr(),s=Fo(),u=Ds(),c=kl(),l=Il(),f=Dl(),h=Ps(),d=Array;return pl=function(p){var v=o(this),y=arguments.length,m=y>1?arguments[1]:void 0,g=void 0!==m;g&&(m=t(m,y>2?arguments[2]:void 0));var b,w,_,x,S,T,E=n(p),O=l(E),C=0;if(!O||this===d&&i(O))for(b=a(E),w=v?new this(b):d(b);b>C;C++)T=g?m(E[C],C):E[C],s(w,C,T);else for(w=v?new this:[],S=(x=c(E,O)).next;!(_=e(S,x)).done;C++){try{h(C)}catch(t){f(x,"throw",t)}T=g?r(x,m,[_.value,C],!0):_.value;try{s(w,C,T)}catch(t){f(x,"throw",t)}}return u(w,C),w},pl}function jl(){if(ml)return yl;ml=1;var t=ge()("iterator"),e=!1;try{var n=0,r={next:function(){return{done:!!n++}},return:function(){e=!0}};r[t]=function(){return this},Array.from(r,function(){throw 2})}catch(t){}return yl=function(n,r){try{if(!r&&!e)return!1}catch(t){return!1}var i=!1;try{var o={};o[t]=function(){return{next:function(){return{done:i=!0}}}},n(o)}catch(t){}return i},yl}function Nl(){return wl?bl:(wl=1,uc(),function(){if(gl)return Pl;gl=1;var t=He(),e=zl();t({target:"Array",stat:!0,forced:!jl()(function(t){Array.from(t)})},{from:e})}(),bl=Tt().Array.from)}function Fl(){return xl?_l:(xl=1,_l=Nl())}function Bl(){return Tl?Sl:(Tl=1,Sl=Fl())}function Wl(){return Ol?El:(Ol=1,El=Bl())}function Yl(){return Al?Cl:(Al=1,Cl=Wl())}var Gl=e(Yl());function Xl(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Ul(t,e){return function(t){if(_s(t))return t}(t)||function(t,e){var n=null==t?null:void 0!==oc&&Lc(t)||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(jc(s).call(s,r.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(t){var n;if("string"==typeof t)return Xl(t,e);var r=Ll(n={}.toString.call(t)).call(n,8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Gl(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Xl(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Vl,Zl,ql,Hl,Jl,Kl,$l,Ql,tf,ef,nf={exports:{}},rf={};function of(){if(Vl)return rf;Vl=1;var t=He(),e=D(),n=Ze().f;return t({target:"Object",stat:!0,forced:Object.defineProperty!==n,sham:!e},{defineProperty:n}),rf}function af(){if(Zl)return nf.exports;Zl=1,of();var t=Tt().Object,e=nf.exports=function(e,n,r){return t.defineProperty(e,n,r)};return t.defineProperty.sham&&(e.sham=!0),nf.exports}function sf(){return Hl?ql:(Hl=1,ql=af())}function uf(){return Kl?Jl:(Kl=1,Jl=sf())}function cf(){return Ql?$l:(Ql=1,$l=uf())}function lf(){return ef?tf:(ef=1,tf=cf())}var ff,hf,df,pf,vf,yf,mf,gf,bf,wf,_f=e(lf());function xf(){return hf?ff:(hf=1,di(),uc(),Us(),ff=Do().f("iterator"))}function Sf(){if(pf)return df;pf=1;var t=xf();return vi(),df=t}function Tf(){return yf?vf:(yf=1,vf=Sf())}function Ef(){return gf?mf:(gf=1,mf=Tf())}function Of(){return wf?bf:(wf=1,bf=Ef())}var Cf,Af,Lf,Pf,Df,Mf,Rf,If,kf,zf,jf=e(Of());function Nf(t){return Nf="function"==typeof oc&&"symbol"==typeof jf?function(t){return typeof t}:function(t){return t&&"function"==typeof oc&&t.constructor===oc&&t!==oc.prototype?"symbol":typeof t},Nf(t)}function Ff(){return Af?Cf:(Af=1,tu(),Cf=Do().f("toPrimitive"))}function Bf(){return Pf?Lf:(Pf=1,Lf=Ff())}function Wf(){return Mf?Df:(Mf=1,Df=Bf())}function Yf(){return If?Rf:(If=1,Rf=Wf())}function Gf(){return zf?kf:(zf=1,kf=Yf())}var Xf=e(Gf());function Uf(t){var e=function(t,e){if("object"!=Nf(t)||!t)return t;var n=t[Xf];if(void 0!==n){var r=n.call(t,e);if("object"!=Nf(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Nf(e)?e:e+""}function Vf(t,e,n){return(e=Uf(e))in t?_f(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Zf,qf,Hf,Jf,Kf,$f,Qf,th,eh,nh,rh,ih={};function oh(){if(qf)return Zf;qf=1;var t=x(),e=Rt(),n=St(),r=ye(),i=Ri(),o=w(),a=Function,s=t([].concat),u=t([].join),c={};return Zf=o?a.bind:function(t){var o=e(this),l=o.prototype,f=i(arguments,1),h=function(){var e=s(f,i(arguments));return this instanceof h?function(t,e,n){if(!r(c,e)){for(var i=[],o=0;o<e;o++)i[o]="a["+o+"]";c[e]=a("C,a","return new C("+u(i,",")+")")}return c[e](t,n)}(o,e.length,e):o.apply(t,e)};return n(l)&&(h.prototype=l),h},Zf}function ah(){return Kf?Jf:(Kf=1,function(){if(Hf)return ih;Hf=1;var t=He(),e=oh();t({target:"Function",proto:!0,forced:Function.bind!==e},{bind:e})}(),Jf=yi()("Function","bind"))}function sh(){if(Qf)return $f;Qf=1;var t=Ot(),e=ah(),n=Function.prototype;return $f=function(r){var i=r.bind;return r===n||t(n,r)&&i===n.bind?e:i}}function uh(){return eh?th:(eh=1,th=sh())}var ch,lh,fh,hh,dh,ph,vh,yh,mh,gh,bh,wh,_h,xh,Sh,Th=e(rh?nh:(rh=1,nh=uh())),Eh={};function Oh(){if(lh)return ch;lh=1;var t=Rt(),e=ve(),n=bt(),r=Xr(),i=TypeError,o="Reduce of empty array with no initial value",a=function(a){return function(s,u,c,l){var f=e(s),h=n(f),d=r(f);if(t(u),0===d&&c<2)throw new i(o);var p=a?d-1:0,v=a?-1:1;if(c<2)for(;;){if(p in h){l=h[p],p+=v;break}if(p+=v,a?p<0:d<=p)throw new i(o)}for(;a?p>=0:d>p;p+=v)p in h&&(l=u(l,h[p],p,f));return l}};return ch={left:a(!1),right:a(!0)}}function Ch(){if(hh)return fh;hh=1;var t=b();return fh=function(e,n){var r=[][e];return!!r&&t(function(){r.call(null,n||function(){return 1},1)})}}function Ah(){return ph?dh:(ph=1,dh="NODE"===Mi())}function Lh(){return mh?yh:(mh=1,function(){if(vh)return Eh;vh=1;var t=He(),e=Oh().left,n=Ch(),r=At();t({target:"Array",proto:!0,forced:!Ah()&&r>79&&r<83||!n("reduce")},{reduce:function(t){var n=arguments.length;return e(this,t,n,n>1?arguments[1]:void 0)}})}(),yh=yi()("Array","reduce"))}function Ph(){if(bh)return gh;bh=1;var t=Ot(),e=Lh(),n=Array.prototype;return gh=function(r){var i=r.reduce;return r===n||t(n,r)&&i===n.reduce?e:i}}function Dh(){return _h?wh:(_h=1,wh=Ph())}var Mh,Rh,Ih,kh,zh,jh,Nh,Fh,Bh,Wh=e(Sh?xh:(Sh=1,xh=Dh())),Yh={};function Gh(){return Ih?Rh:(Ih=1,function(){if(Mh)return Yh;Mh=1;var t=He(),e=Bo().filter;t({target:"Array",proto:!0,forced:!Ms()("filter")},{filter:function(t){return e(this,t,arguments.length>1?arguments[1]:void 0)}})}(),Rh=yi()("Array","filter"))}function Xh(){if(zh)return kh;zh=1;var t=Ot(),e=Gh(),n=Array.prototype;return kh=function(r){var i=r.filter;return r===n||t(n,r)&&i===n.filter?e:i}}function Uh(){return Nh?jh:(Nh=1,jh=Xh())}var Vh,Zh,qh,Hh,Jh,Kh,$h,Qh,td,ed=e(Bh?Fh:(Bh=1,Fh=Uh())),nd={};function rd(){return qh?Zh:(qh=1,function(){if(Vh)return nd;Vh=1;var t=He(),e=Bo().map;t({target:"Array",proto:!0,forced:!Ms()("map")},{map:function(t){return e(this,t,arguments.length>1?arguments[1]:void 0)}})}(),Zh=yi()("Array","map"))}function id(){if(Jh)return Hh;Jh=1;var t=Ot(),e=rd(),n=Array.prototype;return Hh=function(r){var i=r.map;return r===n||t(n,r)&&i===n.map?e:i}}function od(){return $h?Kh:($h=1,Kh=id())}var ad,sd,ud,cd=e(td?Qh:(td=1,Qh=od())),ld={};function fd(){if(sd)return ad;sd=1;var t=Io(),e=Xr(),n=Ps(),r=Ee(),i=Fo(),o=function(a,s,u,c,l,f,h,d){for(var p,v,y=l,m=0,g=!!h&&r(h,d);m<c;)m in u&&(p=g?g(u[m],m,s):u[m],f>0&&t(p)?(v=e(p),y=o(a,s,p,v,y,f-1)-1):(n(y+1),i(a,y,p)),y++),m++;return y};return ad=o}var hd,dd,pd,vd,yd,md,gd,bd,wd;function _d(){return pd?dd:(pd=1,function(){if(ud)return ld;ud=1;var t=He(),e=fd(),n=Rt(),r=ve(),i=Xr(),o=No();t({target:"Array",proto:!0},{flatMap:function(t){var a,s=r(this),u=i(s);return n(t),a=o(s,0),e(a,s,s,u,0,1,t,arguments.length>1?arguments[1]:void 0),a}})}(),hd||(hd=1,gn()("flatMap")),dd=yi()("Array","flatMap"))}function xd(){if(yd)return vd;yd=1;var t=Ot(),e=_d(),n=Array.prototype;return vd=function(r){var i=r.flatMap;return r===n||t(n,r)&&i===n.flatMap?e:i}}function Sd(){return gd?md:(gd=1,md=xd())}var Td,Ed,Od,Cd,Ad,Ld,Pd,Dd,Md,Rd,Id,kd=e(wd?bd:(wd=1,bd=Sd())),zd={};function jd(){if(Ed)return Td;Ed=1;var t=Bo().forEach,e=Ch()("forEach");return Td=e?[].forEach:function(e){return t(this,e,arguments.length>1?arguments[1]:void 0)},Td}function Nd(){return Ad?Cd:(Ad=1,function(){if(Od)return zd;Od=1;var t=He(),e=jd();t({target:"Array",proto:!0,forced:[].forEach!==e},{forEach:e})}(),Cd=yi()("Array","forEach"))}function Fd(){return Pd?Ld:(Pd=1,Ld=Nd())}function Bd(){if(Md)return Dd;Md=1;var t=ri(),e=ye(),n=Ot(),r=Fd(),i=Array.prototype,o={DOMTokenList:!0,NodeList:!0};return Dd=function(a){var s=a.forEach;return a===i||n(i,a)&&s===i.forEach||e(o,t(a))?r:s}}var Wd,Yd,Gd=e(Id?Rd:(Id=1,Rd=Bd()));var Xd,Ud,Vd,Zd,qd,Hd,Jd,Kd=e(Yd?Wd:(Yd=1,Wd=Sf()));function $d(){if(Vd)return Ud;Vd=1,Xd||(Xd=1,He()({target:"Object",stat:!0,sham:!D()},{create:Kr()}));var t=Tt().Object;return Ud=function(e,n){return t.create(e,n)}}function Qd(){return qd?Zd:(qd=1,Zd=$d())}var tp,ep,np,rp,ip,op,ap,sp,up,cp,lp,fp,hp,dp,pp,vp,yp,mp,gp,bp,wp,_p=e(Jd?Hd:(Jd=1,Hd=Qd())),xp={},Sp={exports:{}};function Tp(){return ep?tp:(ep=1,tp=b()(function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}))}function Ep(){if(rp)return np;rp=1;var t=b(),e=St(),n=S(),r=Tp(),i=Object.isExtensible,o=t(function(){});return np=o||r?function(t){return!!e(t)&&((!r||"ArrayBuffer"!==n(t))&&(!i||i(t)))}:i}function Op(){return op?ip:(op=1,ip=!b()(function(){return Object.isExtensible(Object.preventExtensions({}))}))}function Cp(){if(ap)return Sp.exports;ap=1;var t=He(),e=x(),n=xn(),r=St(),i=ye(),o=Ze().f,a=Qi(),s=no(),u=Ep(),c=me(),l=Op(),f=!1,h=c("meta"),d=0,p=function(t){o(t,h,{value:{objectID:"O"+d++,weakData:{}}})},v=Sp.exports={enable:function(){v.enable=function(){},f=!0;var n=a.f,r=e([].splice),i={};i[h]=1,n(i).length&&(a.f=function(t){for(var e=n(t),i=0,o=e.length;i<o;i++)if(e[i]===h){r(e,i,1);break}return e},t({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:s.f}))},fastKey:function(t,e){if(!r(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,h)){if(!u(t))return"F";if(!e)return"E";p(t)}return t[h].objectID},getWeakData:function(t,e){if(!i(t,h)){if(!u(t))return!0;if(!e)return!1;p(t)}return t[h].weakData},onFreeze:function(t){return l&&f&&u(t)&&!i(t,h)&&p(t),t}};return n[h]=!0,Sp.exports}function Ap(){if(up)return sp;up=1;var t=Ee(),e=M(),n=Ve(),r=Mt(),i=Rl(),o=Xr(),a=Ot(),s=kl(),u=Il(),c=Dl(),l=TypeError,f=function(t,e){this.stopped=t,this.result=e},h=f.prototype;return sp=function(d,p,v){var y,m,g,b,w,_,x,S=v&&v.that,T=!(!v||!v.AS_ENTRIES),E=!(!v||!v.IS_RECORD),O=!(!v||!v.IS_ITERATOR),C=!(!v||!v.INTERRUPTED),A=t(p,S),L=function(t){var e=y;return y=void 0,e&&c(e,"normal"),new f(!0,t)},P=function(t){return T?(n(t),C?A(t[0],t[1],L):A(t[0],t[1])):C?A(t,L):A(t)};if(E)y=d.iterator;else if(O)y=d;else{if(!(m=u(d)))throw new l(r(d)+" is not iterable");if(i(m)){for(g=0,b=o(d);b>g;g++)if((w=P(d[g]))&&a(h,w))return w;return new f(!1)}y=s(d,m)}for(_=E?d.next:y.next;!(x=e(_,y)).done;){var D=x.value;try{w=P(D)}catch(t){if(!y)throw t;c(y,"throw",t)}if("object"==typeof w&&w&&a(h,w))return w}return new f(!1)},sp}function Lp(){if(lp)return cp;lp=1;var t=Ot(),e=TypeError;return cp=function(n,r){if(t(r,n))return n;throw new e("Incorrect invocation")}}function Pp(){if(hp)return fp;hp=1;var t=He(),e=g(),n=Cp(),r=M(),i=b(),o=qe(),a=Ap(),s=Lp(),u=E(),c=St(),l=wt(),f=oi(),h=Ze().f,d=Bo().forEach,p=D(),v=Sn(),y=v.set,m=v.getterFor;return fp=function(v,g,b){var w,_=-1!==v.indexOf("Map"),x=-1!==v.indexOf("Weak"),S=_?"set":"add",T=e[v],E=T&&T.prototype,O={};if(p&&u(T)&&(x||E.forEach&&!i(function(){(new T).entries().next()}))){var C=(w=g(function(t,e){y(s(t,C),{type:v,collection:new T}),l(e)||a(e,t[S],{that:t,AS_ENTRIES:_})})).prototype,A=m(v);d(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(t){var e="add"===t||"set"===t;!(t in E)||x&&"clear"===t||o(C,t,function(n,i){var o=this,a=A(o).collection;if(!e&&x&&!c(n))return"get"===t&&void 0;var s=a[t]("forEach"===t?function(t,e){r(n,i,t,e,o)}:0===n?0:n,i);return e?o:s})}),x||h(C,"size",{configurable:!0,get:function(){return A(this).collection.size}})}else w=b.getConstructor(g,v,_,S),n.enable();return f(w,v,!1,!0),O[v]=w,t({global:!0,forced:!0},O),x||b.setStrong(w,v,_),w}}function Dp(){if(pp)return dp;pp=1;var t=ti();return dp=function(e,n,r){for(var i in n)r&&r.unsafe&&e[i]?e[i]=n[i]:t(e,i,n[i],r);return e}}function Mp(){if(yp)return vp;yp=1;var t=Et(),e=uo(),n=ge(),r=D(),i=n("species");return vp=function(n){var o=t(n);r&&o&&!o[i]&&e(o,i,{configurable:!0,get:function(){return this}})}}function Rp(){if(gp)return mp;gp=1;var t=Kr(),e=uo(),n=Dp(),r=Ee(),i=Lp(),o=wt(),a=Ap(),s=fi(),u=hi(),c=Mp(),l=D(),f=Cp().fastKey,h=Sn(),d=h.set,p=h.getterFor;return mp={getConstructor:function(s,u,c,h){var v=s(function(e,n){i(e,y),d(e,{type:u,index:t(null),first:null,last:null,size:0}),l||(e.size=0),o(n)||a(n,e[h],{that:e,AS_ENTRIES:c})}),y=v.prototype,m=p(u),g=function(t,e,n){var r,i,o=m(t),a=b(t,e);return a?a.value=n:(o.last=a={index:i=f(e,!0),key:e,value:n,previous:r=o.last,next:null,removed:!1},o.first||(o.first=a),r&&(r.next=a),l?o.size++:t.size++,"F"!==i&&(o.index[i]=a)),t},b=function(t,e){var n,r=m(t),i=f(e);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key===e)return n};return n(y,{clear:function(){for(var e=m(this),n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=null),n=n.next;e.first=e.last=null,e.index=t(null),l?e.size=0:this.size=0},delete:function(t){var e=this,n=m(e),r=b(e,t);if(r){var i=r.next,o=r.previous;delete n.index[r.index],r.removed=!0,o&&(o.next=i),i&&(i.previous=o),n.first===r&&(n.first=i),n.last===r&&(n.last=o),l?n.size--:e.size--}return!!r},forEach:function(t){for(var e,n=m(this),i=r(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:n.first;)for(i(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!b(this,t)}}),n(y,c?{get:function(t){var e=b(this,t);return e&&e.value},set:function(t,e){return g(this,0===t?0:t,e)}}:{add:function(t){return g(this,t=0===t?0:t,t)}}),l&&e(y,"size",{configurable:!0,get:function(){return m(this).size}}),v},setStrong:function(t,e,n){var r=e+" Iterator",i=p(e),o=p(r);s(t,e,function(t,e){d(this,{type:r,target:t,state:i(t),kind:e,last:null})},function(){for(var t=o(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?u("keys"===e?n.key:"values"===e?n.value:[n.key,n.value],!1):(t.target=null,u(void 0,!0))},n?"entries":"values",!n,!0),c(e)}},mp}function Ip(){return wp||(wp=1,bp||(bp=1,Pp()("Map",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},Rp()))),xp}var kp,zp,jp,Np,Fp,Bp={};function Wp(){return zp||(zp=1,kp=function(t,e){return 1===e?function(e,n){return e[t](n)}:function(e,n,r){return e[t](n,r)}}),kp}function Yp(){if(Np)return jp;Np=1;var t=Et(),e=Wp(),n=t("Map");return jp={Map:n,set:e("set",2),get:e("get",1),has:e("has",1),remove:e("delete",1),proto:n.prototype}}var Gp,Xp={};var Up,Vp,Zp,qp,Hp,Jp,Kp,$p={};function Qp(){return Zp?Vp:(Zp=1,di(),Ip(),function(){if(Fp)return Bp;Fp=1;var t=He(),e=x(),n=Rt(),r=_t(),i=Ap(),o=Ps(),a=Yp(),s=fe(),u=b(),c=a.Map,l=a.has,f=a.get,h=a.set,d=e([].push),p=s||u(function(){return 1!==c.groupBy("ab",function(t){return t}).get("a").length});t({target:"Map",stat:!0,forced:s||p},{groupBy:function(t,e){r(t),n(e);var a=new c,s=0;return i(t,function(t){o(s);var n=e(t,s++);l(a,n)?d(f(a,n),t):h(a,n,[t])}),a}})}(),function(){if(Gp)return Xp;Gp=1;var t=He(),e=Yp(),n=fe(),r=e.get,i=e.has,o=e.set;t({target:"Map",proto:!0,real:!0,forced:n},{getOrInsert:function(t,e){return i(this,t)?r(this,t):(o(this,t,e),e)}})}(),function(){if(Up)return $p;Up=1;var t=He(),e=Rt(),n=Yp(),r=fe(),i=n.get,o=n.has,a=n.set;t({target:"Map",proto:!0,real:!0,forced:r},{getOrInsertComputed:function(t,n){var r=o(this,t);if(e(n),r)return i(this,t);0===t&&1/t==-1/0&&(t=0);var s=n(t);return a(this,t,s),s}})}(),uc(),Vp=Tt().Map)}function tv(){if(Hp)return qp;Hp=1;var t=Qp();return vi(),qp=t}var ev,nv,rv=e(Kp?Jp:(Kp=1,Jp=tv())),iv={};function ov(){return nv||(nv=1,ev||(ev=1,Pp()("Set",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},Rp()))),iv}var av,sv,uv,cv,lv,fv,hv,dv,pv,vv,yv,mv,gv,bv,wv,_v,xv,Sv,Tv,Ev,Ov,Cv={};function Av(){if(sv)return av;sv=1;var t=Mt(),e=TypeError;return av=function(n){if("object"==typeof n&&"size"in n&&"has"in n&&"add"in n&&"delete"in n&&"keys"in n)return n;throw new e(t(n)+" is not a set")}}function Lv(){if(cv)return uv;cv=1;var t=Et(),e=Wp(),n=t("Set"),r=n.prototype;return uv={Set:n,add:e("add",1),has:e("has",1),remove:e("delete",1),proto:r}}function Pv(){if(fv)return lv;fv=1;var t=M();return lv=function(e,n,r){for(var i,o,a=r?e:e.iterator,s=e.next;!(i=t(s,a)).done;)if(void 0!==(o=n(i.value)))return o},lv}function Dv(){if(dv)return hv;dv=1;var t=Pv();return hv=function(e,n,r){return r?t(e.keys(),n,!0):e.forEach(n)},hv}function Mv(){if(vv)return pv;vv=1;var t=Lv(),e=Dv(),n=t.Set,r=t.add;return pv=function(t){var i=new n;return e(t,function(t){r(i,t)}),i},pv}function Rv(){return mv||(mv=1,yv=function(t){return t.size}),yv}function Iv(){return bv?gv:(bv=1,gv=function(t){return{iterator:t,next:t.next,done:!1}})}function kv(){if(_v)return wv;_v=1;var t=Rt(),e=Ve(),n=M(),r=Wr(),i=Iv(),o="Invalid size",a=RangeError,s=TypeError,u=Math.max,c=function(e,n){this.set=e,this.size=u(n,0),this.has=t(e.has),this.keys=t(e.keys)};return c.prototype={getIterator:function(){return i(e(n(this.keys,this.set)))},includes:function(t){return n(this.has,this.set,t)}},wv=function(t){e(t);var n=+t.size;if(n!=n)throw new s(o);var i=r(n);if(i<0)throw new a(o);return new c(t,i)}}function zv(){if(Sv)return xv;Sv=1;var t=Av(),e=Lv(),n=Mv(),r=Rv(),i=kv(),o=Dv(),a=Pv(),s=e.has,u=e.remove;return xv=function(e){var c=t(this),l=i(e),f=n(c);return r(f)<=l.size?o(f,function(t){l.includes(t)&&u(f,t)}):a(l.getIterator(),function(t){s(f,t)&&u(f,t)}),f}}function jv(){return Ev?Tv:(Ev=1,Tv=function(){return!1})}var Nv,Fv,Bv,Wv={};function Yv(){if(Fv)return Nv;Fv=1;var t=Av(),e=Lv(),n=Rv(),r=kv(),i=Dv(),o=Pv(),a=e.Set,s=e.add,u=e.has;return Nv=function(e){var c=t(this),l=r(e),f=new a;return n(c)>l.size?o(l.getIterator(),function(t){u(c,t)&&s(f,t)}):i(c,function(t){l.includes(t)&&s(f,t)}),f}}var Gv,Xv,Uv,Vv={};function Zv(){if(Xv)return Gv;Xv=1;var t=Av(),e=Lv().has,n=Rv(),r=kv(),i=Dv(),o=Pv(),a=Dl();return Gv=function(s){var u=t(this),c=r(s);if(n(u)<=c.size)return!1!==i(u,function(t){if(c.includes(t))return!1},!0);var l=c.getIterator();return!1!==o(l,function(t){if(e(u,t))return a(l.iterator,"normal",!1)})},Gv}var qv,Hv,Jv,Kv={};function $v(){if(Hv)return qv;Hv=1;var t=Av(),e=Rv(),n=Dv(),r=kv();return qv=function(i){var o=t(this),a=r(i);return!(e(o)>a.size)&&!1!==n(o,function(t){if(!a.includes(t))return!1},!0)}}var Qv,ty,ey,ny={};function ry(){if(ty)return Qv;ty=1;var t=Av(),e=Lv().has,n=Rv(),r=kv(),i=Pv(),o=Dl();return Qv=function(a){var s=t(this),u=r(a);if(n(s)<u.size)return!1;var c=u.getIterator();return!1!==i(c,function(t){if(!e(s,t))return o(c.iterator,"normal",!1)})},Qv}var iy,oy,ay,sy,uy,cy={};function ly(){if(oy)return iy;oy=1;var t=Av(),e=Lv(),n=Mv(),r=kv(),i=Pv(),o=e.add,a=e.has,s=e.remove;return iy=function(e){var u=t(this),c=r(e).getIterator(),l=n(u);return i(c,function(t){a(u,t)?s(l,t):o(l,t)}),l}}function fy(){return sy?ay:(sy=1,ay=function(t){try{var e=new Set,n={size:0,has:function(){return!0},keys:function(){return Object.defineProperty({},"next",{get:function(){return e.clear(),e.add(4),function(){return{done:!0}}}})}},r=e[t](n);return 1===r.size&&4===r.values().next().value}catch(t){return!1}})}var hy,dy,py,vy,yy,my,gy,by,wy,_y={};function xy(){if(dy)return hy;dy=1;var t=Av(),e=Lv().add,n=Mv(),r=kv(),i=Pv();return hy=function(o){var a=t(this),s=r(o).getIterator(),u=n(a);return i(s,function(t){e(u,t)}),u}}function Sy(){return yy?vy:(yy=1,di(),ov(),function(){if(Ov)return Cv;Ov=1;var t=He(),e=zv(),n=b();t({target:"Set",proto:!0,real:!0,forced:!jv()("difference",function(t){return 0===t.size})||n(function(){var t={size:1,has:function(){return!0},keys:function(){var t=0;return{next:function(){var n=t++>1;return e.has(1)&&e.clear(),{done:n,value:2}}}}},e=new Set([1,2,3,4]);return 3!==e.difference(t).size})},{difference:e})}(),function(){if(Bv)return Wv;Bv=1;var t=He(),e=b(),n=Yv();t({target:"Set",proto:!0,real:!0,forced:!jv()("intersection",function(t){return 2===t.size&&t.has(1)&&t.has(2)})||e(function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))})},{intersection:n})}(),function(){if(Uv)return Vv;Uv=1;var t=He(),e=Zv();t({target:"Set",proto:!0,real:!0,forced:!jv()("isDisjointFrom",function(t){return!t})},{isDisjointFrom:e})}(),function(){if(Jv)return Kv;Jv=1;var t=He(),e=$v();t({target:"Set",proto:!0,real:!0,forced:!jv()("isSubsetOf",function(t){return t})},{isSubsetOf:e})}(),function(){if(ey)return ny;ey=1;var t=He(),e=ry();t({target:"Set",proto:!0,real:!0,forced:!jv()("isSupersetOf",function(t){return!t})},{isSupersetOf:e})}(),function(){if(uy)return cy;uy=1;var t=He(),e=ly(),n=fy();t({target:"Set",proto:!0,real:!0,forced:!jv()("symmetricDifference")||!n("symmetricDifference")},{symmetricDifference:e})}(),function(){if(py)return _y;py=1;var t=He(),e=xy(),n=fy();t({target:"Set",proto:!0,real:!0,forced:!jv()("union")||!n("union")},{union:e})}(),uc(),vy=Tt().Set)}function Ty(){if(gy)return my;gy=1;var t=Sy();return vi(),my=t}var Ey,Oy,Cy,Ay,Ly,Py,Dy,My,Ry,Iy,ky,zy,jy,Ny,Fy=e(wy?by:(wy=1,by=Ty()));function By(){if(Oy)return Ey;Oy=1;var t=M(),e=E(),n=Mt(),r=lc(),i=TypeError;return Ey=function(o){var a=r(o);if(e(a))return t(a,o);throw new i(n(o)+" is not iterable")}}function Wy(){return Ay?Cy:(Ay=1,di(),uc(),Cy=By())}function Yy(){if(Py)return Ly;Py=1;var t=Wy();return vi(),Ly=t}function Gy(){return My?Dy:(My=1,Dy=Yy())}function Xy(){return Iy?Ry:(Iy=1,Ry=Gy())}function Uy(){return zy?ky:(zy=1,ky=Xy())}var Vy,Zy,qy,Hy,Jy,Ky,$y,Qy,tm,em,nm,rm=e(Ny?jy:(Ny=1,jy=Uy())),im={};function om(){if(Zy)return Vy;Zy=1;var t=Mt(),e=TypeError;return Vy=function(n,r){if(!delete n[r])throw new e("Cannot delete property "+t(r)+" of "+t(n))}}function am(){return Jy?Hy:(Jy=1,function(){if(qy)return im;qy=1;var t=He(),e=ve(),n=Yr(),r=Wr(),i=Xr(),o=Ds(),a=Ps(),s=No(),u=Fo(),c=om(),l=Ms()("splice"),f=Math.max,h=Math.min;t({target:"Array",proto:!0,forced:!l},{splice:function(t,l){var d,p,v,y,m,g,b=e(this),w=i(b),_=n(t,w),x=arguments.length;for(0===x?d=p=0:1===x?(d=0,p=w-_):(d=x-2,p=h(f(r(l),0),w-_)),a(w+d-p),v=s(b,p),y=0;y<p;y++)(m=_+y)in b&&u(v,y,b[m]);if(o(v,p),d<p){for(y=_;y<w-p;y++)g=y+d,(m=y+p)in b?b[g]=b[m]:c(b,g);for(y=w;y>w-p+d;y--)c(b,y-1)}else if(d>p)for(y=w-p;y>_;y--)g=y+d-1,(m=y+p-1)in b?b[g]=b[m]:c(b,g);for(y=0;y<d;y++)b[y+_]=arguments[y+2];return o(b,w-p+d),v}})}(),Hy=yi()("Array","splice"))}function sm(){if($y)return Ky;$y=1;var t=Ot(),e=am(),n=Array.prototype;return Ky=function(r){var i=r.splice;return r===n||t(n,r)&&i===n.splice?e:i}}function um(){return tm?Qy:(tm=1,Qy=sm())}var cm,lm,fm=e(nm?em:(nm=1,em=um()));var hm,dm,pm,vm,ym,mm,gm,bm,wm,_m=e(lm?cm:(lm=1,cm=ms())),xm={};function Sm(){return pm?dm:(pm=1,function(){if(hm)return xm;hm=1;var t=He(),e=Bo().some;t({target:"Array",proto:!0,forced:!Ch()("some")},{some:function(t){return e(this,t,arguments.length>1?arguments[1]:void 0)}})}(),dm=yi()("Array","some"))}function Tm(){if(ym)return vm;ym=1;var t=Ot(),e=Sm(),n=Array.prototype;return vm=function(r){var i=r.some;return r===n||t(n,r)&&i===n.some?e:i}}function Em(){return gm?mm:(gm=1,mm=Tm())}var Om,Cm,Am,Lm,Pm,Dm,Mm,Rm,Im,km=e(wm?bm:(wm=1,bm=Em())),zm={};function jm(){if(Cm)return Om;Cm=1;var t=D(),e=x(),n=M(),r=b(),i=qr(),o=so(),a=mt(),s=ve(),u=bt(),c=Object.assign,l=Object.defineProperty,f=e([].concat);return Om=!c||r(function(){if(t&&1!==c({b:1},c(l({},"a",{enumerable:!0,get:function(){l(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},n={},r=Symbol("assign detection"),o="abcdefghijklmnopqrst";return e[r]=7,o.split("").forEach(function(t){n[t]=t}),7!==c({},e)[r]||i(c({},n)).join("")!==o})?function(e,r){for(var c=s(e),l=arguments.length,h=1,d=o.f,p=a.f;l>h;)for(var v,y=u(arguments[h++]),m=d?f(i(y),d(y)):i(y),g=m.length,b=0;g>b;)v=m[b++],t&&!n(p,y,v)||(c[v]=y[v]);return c}:c,Om}function Nm(){return Pm?Lm:(Pm=1,function(){if(Am)return zm;Am=1;var t=He(),e=jm();t({target:"Object",stat:!0,arity:2,forced:Object.assign!==e},{assign:e})}(),Lm=Tt().Object.assign)}function Fm(){return Mm?Dm:(Mm=1,Dm=Nm())}var Bm,Wm,Ym,Gm,Xm,Um,Vm,Zm,qm=e(Im?Rm:(Im=1,Rm=Fm()));function Hm(){return Wm?Bm:(Wm=1,Rs(),Bm=yi()("Array","concat"))}function Jm(){if(Gm)return Ym;Gm=1;var t=Ot(),e=Hm(),n=Array.prototype;return Ym=function(r){var i=r.concat;return r===n||t(n,r)&&i===n.concat?e:i}}function Km(){return Um?Xm:(Um=1,Xm=Jm())}var $m,Qm,tg,eg,ng,rg,ig,og,ag=e(Zm?Vm:(Zm=1,Vm=Km()));function sg(){return Qm?$m:(Qm=1,di(),$m=yi()("Array","keys"))}function ug(){return eg?tg:(eg=1,tg=sg())}function cg(){if(rg)return ng;rg=1,vi();var t=ri(),e=ye(),n=Ot(),r=ug(),i=Array.prototype,o={DOMTokenList:!0,NodeList:!0};return ng=function(a){var s=a.keys;return a===i||n(i,a)&&s===i.keys||e(o,t(a))?r:s}}var lg,fg,hg,dg,pg,vg,yg,mg=e(og?ig:(og=1,ig=cg())),gg={};function bg(){return hg?fg:(hg=1,function(){if(lg)return gg;lg=1;var t=He(),e=ve(),n=qr();t({target:"Object",stat:!0,forced:b()(function(){n(1)})},{keys:function(t){return n(e(t))}})}(),fg=Tt().Object.keys)}function wg(){return pg?dg:(pg=1,dg=bg())}var _g,xg,Sg,Tg,Eg,Og,Cg,Ag,Lg,Pg,Dg,Mg,Rg,Ig,kg,zg,jg,Ng=e(yg?vg:(yg=1,vg=wg())),Fg={};function Bg(){if(xg)return _g;xg=1;var t=Ri(),e=Math.floor,n=function(r,i){var o=r.length;if(o<8)for(var a,s,u=1;u<o;){for(s=u,a=r[u];s&&i(r[s-1],a)>0;)r[s]=r[--s];s!==u++&&(r[s]=a)}else for(var c=e(o/2),l=n(t(r,0,c),i),f=n(t(r,c),i),h=l.length,d=f.length,p=0,v=0;p<h||v<d;)r[p+v]=p<h&&v<d?i(l[p],f[v])<=0?l[p++]:f[v++]:p<h?l[p++]:f[v++];return r};return _g=n}function Wg(){if(Tg)return Sg;Tg=1;var t=Ct().match(/firefox\/(\d+)/i);return Sg=!!t&&+t[1]}function Yg(){return Og?Eg:(Og=1,Eg=/MSIE|Trident/.test(Ct()))}function Gg(){if(Ag)return Cg;Ag=1;var t=Ct().match(/AppleWebKit\/(\d+)\./);return Cg=!!t&&+t[1]}function Xg(){if(Lg)return Fg;Lg=1;var t=He(),e=x(),n=Rt(),r=ve(),i=Xr(),o=om(),a=Ji(),s=b(),u=Bg(),c=Ch(),l=Wg(),f=Yg(),h=At(),d=Gg(),p=[],v=e(p.sort),y=e(p.push),m=s(function(){p.sort(void 0)}),g=s(function(){p.sort(null)}),w=c("sort"),_=!s(function(){if(h)return h<70;if(!(l&&l>3)){if(f)return!0;if(d)return d<603;var t,e,n,r,i="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)p.push({k:e+r,v:n})}for(p.sort(function(t,e){return e.v-t.v}),r=0;r<p.length;r++)e=p[r].k.charAt(0),i.charAt(i.length-1)!==e&&(i+=e);return"DGBEFHACIJK"!==i}});return t({target:"Array",proto:!0,forced:m||!g||!w||!_},{sort:function(t){void 0!==t&&n(t);var e=r(this);if(_)return void 0===t?v(e):v(e,t);var s,c,l=[],f=i(e);for(c=0;c<f;c++)c in e&&y(l,e[c]);for(u(l,function(t){return function(e,n){if(void 0===n)return-1;if(void 0===e)return 1;if(void 0!==t)return+t(e,n)||0;var r=a(e),i=a(n);return r===i?0:r>i?1:-1}}(t)),s=i(l),c=0;c<s;)e[c]=l[c++];for(;c<f;)o(e,c++);return e}}),Fg}function Ug(){return Dg?Pg:(Dg=1,Xg(),Pg=yi()("Array","sort"))}function Vg(){if(Rg)return Mg;Rg=1;var t=Ot(),e=Ug(),n=Array.prototype;return Mg=function(r){var i=r.sort;return r===n||t(n,r)&&i===n.sort?e:i}}function Zg(){return kg?Ig:(kg=1,Ig=Vg())}var qg,Hg,Jg,Kg,$g,Qg,tb,eb,nb,rb,ib,ob,ab,sb=e(jg?zg:(jg=1,zg=Zg())),ub={};function cb(){if(Hg)return qg;Hg=1;var t=Wr(),e=Ji(),n=_t(),r=RangeError,i=Math.floor;return qg=function(o){var a=e(n(this)),s="",u=t(o);if(u<0||u===1/0)throw new r("Wrong number of repetitions");for(;u>0;(u=i(u/2))&&(a+=a))u%2&&(s+=a);return s}}function lb(){if(Kg)return Jg;Kg=1;var t=x(),e=Gr(),n=Ji(),r=cb(),i=_t(),o=t(r),a=t("".slice),s=Math.ceil,u=function(t){return function(r,u,c){var l=n(i(r)),f=e(u),h=l.length;if(f<=h)return l;var d,p,v=void 0===c?" ":n(c);return""===v?l:((p=o(v,s((d=f-h)/v.length))).length>d&&(p=a(p,0,d)),t?l+p:p+l)}};return Jg={start:u(!1),end:u(!0)}}function fb(){if(Qg)return $g;Qg=1;var t=x(),e=b(),n=lb().start,r=RangeError,i=isFinite,o=Math.abs,a=Date.prototype,s=a.toISOString,u=t(a.getTime),c=t(a.getUTCDate),l=t(a.getUTCFullYear),f=t(a.getUTCHours),h=t(a.getUTCMilliseconds),d=t(a.getUTCMinutes),p=t(a.getUTCMonth),v=t(a.getUTCSeconds);return $g=e(function(){return"0385-07-25T07:06:39.999Z"!==s.call(new Date(-50000000000001))})||!e(function(){s.call(new Date(NaN))})?function(){if(!i(u(this)))throw new r("Invalid time value");var t=this,e=l(t),a=h(t),s=e<0?"-":e>9999?"+":"";return s+n(o(e),s?6:4,0)+"-"+n(p(t)+1,2,0)+"-"+n(c(t),2,0)+"T"+n(f(t),2,0)+":"+n(d(t),2,0)+":"+n(v(t),2,0)+"."+n(a,3,0)+"Z"}:s,$g}function hb(){if(nb)return eb;nb=1,function(){if(tb)return ub;tb=1;var t=He(),e=M(),n=ve(),r=be(),i=fb(),o=S();t({target:"Date",proto:!0,forced:b()(function(){return null!==new Date(NaN).toJSON()||1!==e(Date.prototype.toJSON,{toISOString:function(){return 1}})})},{toJSON:function(t){var a=n(this),s=r(a,"number");return"number"!=typeof s||isFinite(s)?"toISOString"in a||"Date"!==o(a)?a.toISOString():e(i,a):null}})}(),ua();var t=Tt(),e=_();return t.JSON||(t.JSON={stringify:JSON.stringify}),eb=function(n,r,i){return e(t.JSON.stringify,null,arguments)},eb}function db(){return ib?rb:(ib=1,rb=hb())}var pb,vb,yb,mb,gb,bb,wb,_b,xb=e(ab?ob:(ab=1,ob=db()));function Sb(){return vb?pb:(vb=1,di(),pb=yi()("Array","entries"))}function Tb(){return mb?yb:(mb=1,yb=Sb())}function Eb(){if(bb)return gb;bb=1,vi();var t=ri(),e=ye(),n=Ot(),r=Tb(),i=Array.prototype,o={DOMTokenList:!0,NodeList:!0};return gb=function(a){var s=a.entries;return a===i||n(i,a)&&s===i.entries||e(o,t(a))?r:s}}var Ob,Cb,Ab,Lb,Pb,Db,Mb,Rb=e(_b?wb:(_b=1,wb=Eb()));function Ib(){return Ab?Cb:(Ab=1,Ob||(Ob=1,He()({target:"Reflect",stat:!0},{ownKeys:Ga()})),Cb=Tt().Reflect.ownKeys)}function kb(){return Pb?Lb:(Pb=1,Lb=Ib())}var zb,jb,Nb=e(Mb?Db:(Mb=1,Db=kb()));var Fb,Bb,Wb=e(jb?zb:(jb=1,zb=sf()));var Yb,Gb,Xb=e(Bb?Fb:(Bb=1,Fb=fu()));var Ub,Vb,Zb,qb,Hb,Jb,Kb,$b=e(Gb?Yb:(Gb=1,Yb=tl())),Qb={};function tw(){return Zb?Vb:(Zb=1,function(){if(Ub)return Qb;Ub=1;var t=He(),e=b(),n=ve(),r=Qr(),i=$r();t({target:"Object",stat:!0,forced:e(function(){r(1)}),sham:!i},{getPrototypeOf:function(t){return r(n(t))}})}(),Vb=Tt().Object.getPrototypeOf)}function ew(){return Hb?qb:(Hb=1,qb=tw())}var nw,rw,iw,ow,aw,sw,uw,cw,lw,fw,hw,dw,pw,vw=e(Kb?Jb:(Kb=1,Jb=ew())),yw={};function mw(){return rw?nw:(rw=1,nw="\t\n\v\f\r                 \u2028\u2029\ufeff")}function gw(){if(ow)return iw;ow=1;var t=x(),e=_t(),n=Ji(),r=mw(),i=t("".replace),o=RegExp("^["+r+"]+"),a=RegExp("(^|[^"+r+"])["+r+"]+$"),s=function(t){return function(r){var s=n(e(r));return 1&t&&(s=i(s,o,"")),2&t&&(s=i(s,a,"$1")),s}};return iw={start:s(1),end:s(2),trim:s(3)}}function bw(){if(sw)return aw;sw=1;var t=g(),e=b(),n=x(),r=Ji(),i=gw().trim,o=mw(),a=t.parseInt,s=t.Symbol,u=s&&s.iterator,c=/^[+-]?0x/i,l=n(c.exec),f=8!==a(o+"08")||22!==a(o+"0x16")||u&&!e(function(){a(Object(u))});return aw=f?function(t,e){var n=i(r(t));return a(n,e>>>0||(l(c,n)?16:10))}:a,aw}function ww(){return lw?cw:(lw=1,function(){if(uw)return yw;uw=1;var t=He(),e=bw();t({global:!0,forced:parseInt!==e},{parseInt:e})}(),cw=Tt().parseInt)}function _w(){return hw?fw:(hw=1,fw=ww())}var xw,Sw,Tw,Ew,Ow,Cw,Aw,Lw,Pw,Dw=e(pw?dw:(pw=1,dw=_w())),Mw={};function Rw(){return Tw?Sw:(Tw=1,function(){if(xw)return Mw;xw=1;var t=He(),e=T(),n=Ur().indexOf,r=Ch(),i=e([].indexOf),o=!!i&&1/i([1],1,-0)<0;t({target:"Array",proto:!0,forced:o||!r("indexOf")},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return o?i(this,t,e)||0:n(this,t,e)}})}(),Sw=yi()("Array","indexOf"))}function Iw(){if(Ow)return Ew;Ow=1;var t=Ot(),e=Rw(),n=Array.prototype;return Ew=function(r){var i=r.indexOf;return r===n||t(n,r)&&i===n.indexOf?e:i}}function kw(){return Aw?Cw:(Aw=1,Cw=Iw())}var zw,jw,Nw,Fw,Bw,Ww,Yw,Gw,Xw,Uw,Vw,Zw=e(Pw?Lw:(Pw=1,Lw=kw())),qw={};function Hw(){if(jw)return zw;jw=1;var t=ve(),e=Yr(),n=Xr();return zw=[].fill||function(r){for(var i=t(this),o=n(i),a=arguments.length,s=e(a>1?arguments[1]:void 0,o),u=a>2?arguments[2]:void 0,c=void 0===u?o:e(u,o);c>s;)i[s++]=r;return i},zw}function Jw(){return Bw?Fw:(Bw=1,function(){if(Nw)return qw;Nw=1;var t=He(),e=Hw(),n=gn();t({target:"Array",proto:!0},{fill:e}),n("fill")}(),Fw=yi()("Array","fill"))}function Kw(){if(Yw)return Ww;Yw=1;var t=Ot(),e=Jw(),n=Array.prototype;return Ww=function(r){var i=r.fill;return r===n||t(n,r)&&i===n.fill?e:i}}function $w(){return Xw?Gw:(Xw=1,Gw=Kw())}var Qw,t_=e(Vw?Uw:(Vw=1,Uw=$w())),e_={exports:{}};function n_(){return Qw||(Qw=1,function(t){function e(t){if(t)return function(t){return Object.assign(t,e.prototype),t._callbacks=new Map,t}(t);this._callbacks=new Map}e.prototype.on=function(t,e){const n=this._callbacks.get(t)??[];return n.push(e),this._callbacks.set(t,n),this},e.prototype.once=function(t,e){const n=(...r)=>{this.off(t,n),e.apply(this,r)};return n.fn=e,this.on(t,n),this},e.prototype.off=function(t,e){if(void 0===t&&void 0===e)return this._callbacks.clear(),this;if(void 0===e)return this._callbacks.delete(t),this;const n=this._callbacks.get(t);if(n){for(const[t,r]of n.entries())if(r===e||r.fn===e){n.splice(t,1);break}0===n.length?this._callbacks.delete(t):this._callbacks.set(t,n)}return this},e.prototype.emit=function(t,...e){const n=this._callbacks.get(t);if(n){const t=[...n];for(const n of t)n.apply(this,e)}return this},e.prototype.listeners=function(t){return this._callbacks.get(t)??[]},e.prototype.listenerCount=function(t){if(t)return this.listeners(t).length;let e=0;for(const t of this._callbacks.values())e+=t.length;return e},e.prototype.hasListeners=function(t){return this.listenerCount(t)>0},e.prototype.addEventListener=e.prototype.on,e.prototype.removeListener=e.prototype.off,e.prototype.removeEventListener=e.prototype.off,e.prototype.removeAllListeners=e.prototype.off,t.exports=e}(e_)),e_.exports}var r_=e(n_());
/*! 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 i_(){return i_=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i_.apply(this,arguments)}function o_(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function a_(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var s_,u_="function"!=typeof Object.assign?function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n<arguments.length;n++){var r=arguments[n];if(null!=r)for(var i in r)r.hasOwnProperty(i)&&(e[i]=r[i])}return e}:Object.assign,c_=["","webkit","Moz","MS","ms","o"],l_="undefined"==typeof document?{style:{}}:document.createElement("div"),f_=Math.round,h_=Math.abs,d_=Date.now;function p_(t,e){for(var n,r,i=e[0].toUpperCase()+e.slice(1),o=0;o<c_.length;){if((r=(n=c_[o])?n+i:e)in t)return r;o++}}s_="undefined"==typeof window?{}:window;var v_=p_(l_.style,"touchAction"),y_=void 0!==v_;var m_="compute",g_="auto",b_="manipulation",w_="none",__="pan-x",x_="pan-y",S_=function(){if(!y_)return!1;var t={},e=s_.CSS&&s_.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(n){return t[n]=!e||s_.CSS.supports("touch-action",n)}),t}(),T_="ontouchstart"in s_,E_=void 0!==p_(s_,"PointerEvent"),O_=T_&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),C_="touch",A_="mouse",L_=16,P_=24,D_=["x","y"],M_=["clientX","clientY"];function R_(t,e,n){var r;if(t)if(t.forEach)t.forEach(e,n);else if(void 0!==t.length)for(r=0;r<t.length;)e.call(n,t[r],r,t),r++;else for(r in t)t.hasOwnProperty(r)&&e.call(n,t[r],r,t)}function I_(t,e){return"function"==typeof t?t.apply(e&&e[0]||void 0,e):t}function k_(t,e){return t.indexOf(e)>-1}var z_=function(){function t(t,e){this.manager=t,this.set(e)}var e=t.prototype;return e.set=function(t){t===m_&&(t=this.compute()),y_&&this.manager.element.style&&S_[t]&&(this.manager.element.style[v_]=t),this.actions=t.toLowerCase().trim()},e.update=function(){this.set(this.manager.options.touchAction)},e.compute=function(){var t=[];return R_(this.manager.recognizers,function(e){I_(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))}),function(t){if(k_(t,w_))return w_;var e=k_(t,__),n=k_(t,x_);return e&&n?w_:e||n?e?__:x_:k_(t,b_)?b_:g_}(t.join(" "))},e.preventDefaults=function(t){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var r=this.actions,i=k_(r,w_)&&!S_[w_],o=k_(r,x_)&&!S_[x_],a=k_(r,__)&&!S_[__];if(i){var s=1===t.pointers.length,u=t.distance<2,c=t.deltaTime<250;if(s&&u&&c)return}if(!a||!o)return i||o&&6&n||a&&n&P_?this.preventSrc(e):void 0}},e.preventSrc=function(t){this.manager.session.prevented=!0,t.preventDefault()},t}();function j_(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1}function N_(t){var e=t.length;if(1===e)return{x:f_(t[0].clientX),y:f_(t[0].clientY)};for(var n=0,r=0,i=0;i<e;)n+=t[i].clientX,r+=t[i].clientY,i++;return{x:f_(n/e),y:f_(r/e)}}function F_(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:f_(t.pointers[n].clientX),clientY:f_(t.pointers[n].clientY)},n++;return{timeStamp:d_(),pointers:e,center:N_(e),deltaX:t.deltaX,deltaY:t.deltaY}}function B_(t,e,n){n||(n=D_);var r=e[n[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return Math.sqrt(r*r+i*i)}function W_(t,e,n){n||(n=D_);var r=e[n[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return 180*Math.atan2(i,r)/Math.PI}function Y_(t,e){return t===e?1:h_(t)>=h_(e)?t<0?2:4:e<0?8:L_}function G_(t,e,n){return{x:e/t||0,y:n/t||0}}function X_(t,e){var n=t.session,r=e.pointers,i=r.length;n.firstInput||(n.firstInput=F_(e)),i>1&&!n.firstMultiple?n.firstMultiple=F_(e):1===i&&(n.firstMultiple=!1);var o=n.firstInput,a=n.firstMultiple,s=a?a.center:o.center,u=e.center=N_(r);e.timeStamp=d_(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=W_(s,u),e.distance=B_(s,u),function(t,e){var n=e.center,r=t.offsetDelta||{},i=t.prevDelta||{},o=t.prevInput||{};1!==e.eventType&&4!==o.eventType||(i=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},r=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=i.x+(n.x-r.x),e.deltaY=i.y+(n.y-r.y)}(n,e),e.offsetDirection=Y_(e.deltaX,e.deltaY);var c,l,f=G_(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=f.x,e.overallVelocityY=f.y,e.overallVelocity=h_(f.x)>h_(f.y)?f.x:f.y,e.scale=a?(c=a.pointers,B_((l=r)[0],l[1],M_)/B_(c[0],c[1],M_)):1,e.rotation=a?function(t,e){return W_(e[1],e[0],M_)+W_(t[1],t[0],M_)}(a.pointers,r):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,function(t,e){var n,r,i,o,a=t.lastInterval||e,s=e.timeStamp-a.timeStamp;if(8!==e.eventType&&(s>25||void 0===a.velocity)){var u=e.deltaX-a.deltaX,c=e.deltaY-a.deltaY,l=G_(s,u,c);r=l.x,i=l.y,n=h_(l.x)>h_(l.y)?l.x:l.y,o=Y_(u,c),t.lastInterval=e}else n=a.velocity,r=a.velocityX,i=a.velocityY,o=a.direction;e.velocity=n,e.velocityX=r,e.velocityY=i,e.direction=o}(n,e);var h,d=t.element,p=e.srcEvent;j_(h=p.composedPath?p.composedPath()[0]:p.path?p.path[0]:p.target,d)&&(d=h),e.target=d}function U_(t,e,n){var r=n.pointers.length,i=n.changedPointers.length,o=1&e&&r-i===0,a=12&e&&r-i===0;n.isFirst=!!o,n.isFinal=!!a,o&&(t.session={}),n.eventType=e,X_(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function V_(t){return t.trim().split(/\s+/g)}function Z_(t,e,n){R_(V_(e),function(e){t.addEventListener(e,n,!1)})}function q_(t,e,n){R_(V_(e),function(e){t.removeEventListener(e,n,!1)})}function H_(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||window}var J_=function(){function t(t,e){var n=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){I_(t.options.enable,[t])&&n.handler(e)},this.init()}var e=t.prototype;return e.handler=function(){},e.init=function(){this.evEl&&Z_(this.element,this.evEl,this.domHandler),this.evTarget&&Z_(this.target,this.evTarget,this.domHandler),this.evWin&&Z_(H_(this.element),this.evWin,this.domHandler)},e.destroy=function(){this.evEl&&q_(this.element,this.evEl,this.domHandler),this.evTarget&&q_(this.target,this.evTarget,this.domHandler),this.evWin&&q_(H_(this.element),this.evWin,this.domHandler)},t}();function K_(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var r=0;r<t.length;){if(n&&t[r][n]==e||!n&&t[r]===e)return r;r++}return-1}var $_={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},Q_={2:C_,3:"pen",4:A_,5:"kinect"},tx="pointerdown",ex="pointermove pointerup pointercancel";s_.MSPointerEvent&&!s_.PointerEvent&&(tx="MSPointerDown",ex="MSPointerMove MSPointerUp MSPointerCancel");var nx=function(t){function e(){var n,r=e.prototype;return r.evEl=tx,r.evWin=ex,(n=t.apply(this,arguments)||this).store=n.manager.session.pointerEvents=[],n}return o_(e,t),e.prototype.handler=function(t){var e=this.store,n=!1,r=t.type.toLowerCase().replace("ms",""),i=$_[r],o=Q_[t.pointerType]||t.pointerType,a=o===C_,s=K_(e,t.pointerId,"pointerId");1&i&&(0===t.button||a)?s<0&&(e.push(t),s=e.length-1):12&i&&(n=!0),s<0||(e[s]=t,this.callback(this.manager,i,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),n&&e.splice(s,1))},e}(J_);function rx(t){return Array.prototype.slice.call(t,0)}function ix(t,e,n){for(var r=[],i=[],o=0;o<t.length;){var a=e?t[o][e]:t[o];K_(i,a)<0&&r.push(t[o]),i[o]=a,o++}return n&&(r=e?r.sort(function(t,n){return t[e]>n[e]}):r.sort()),r}var ox={touchstart:1,touchmove:2,touchend:4,touchcancel:8},ax=function(t){function e(){var n;return e.prototype.evTarget="touchstart touchmove touchend touchcancel",(n=t.apply(this,arguments)||this).targetIds={},n}return o_(e,t),e.prototype.handler=function(t){var e=ox[t.type],n=sx.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:C_,srcEvent:t})},e}(J_);function sx(t,e){var n,r,i=rx(t.touches),o=this.targetIds;if(3&e&&1===i.length)return o[i[0].identifier]=!0,[i,i];var a=rx(t.changedTouches),s=[],u=this.target;if(r=i.filter(function(t){return j_(t.target,u)}),1===e)for(n=0;n<r.length;)o[r[n].identifier]=!0,n++;for(n=0;n<a.length;)o[a[n].identifier]&&s.push(a[n]),12&e&&delete o[a[n].identifier],n++;return s.length?[ix(r.concat(s),"identifier",!0),s]:void 0}var ux={mousedown:1,mousemove:2,mouseup:4},cx=function(t){function e(){var n,r=e.prototype;return r.evEl="mousedown",r.evWin="mousemove mouseup",(n=t.apply(this,arguments)||this).pressed=!1,n}return o_(e,t),e.prototype.handler=function(t){var e=ux[t.type];1&e&&0===t.button&&(this.pressed=!0),2&e&&1!==t.which&&(e=4),this.pressed&&(4&e&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:A_,srcEvent:t}))},e}(J_);function lx(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var n={x:e.clientX,y:e.clientY},r=this.lastTouches;this.lastTouches.push(n);setTimeout(function(){var t=r.indexOf(n);t>-1&&r.splice(t,1)},2500)}}function fx(t,e){1&t?(this.primaryTouch=e.changedPointers[0].identifier,lx.call(this,e)):12&t&&lx.call(this,e)}function hx(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,r=0;r<this.lastTouches.length;r++){var i=this.lastTouches[r],o=Math.abs(e-i.x),a=Math.abs(n-i.y);if(o<=25&&a<=25)return!0}return!1}var dx=function(){return function(t){function e(e,n){var r;return(r=t.call(this,e,n)||this).handler=function(t,e,n){var i=n.pointerType===C_,o=n.pointerType===A_;if(!(o&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(i)fx.call(a_(a_(r)),e,n);else if(o&&hx.call(a_(a_(r)),n))return;r.callback(t,e,n)}},r.touch=new ax(r.manager,r.handler),r.mouse=new cx(r.manager,r.handler),r.primaryTouch=null,r.lastTouches=[],r}return o_(e,t),e.prototype.destroy=function(){this.touch.destroy(),this.mouse.destroy()},e}(J_)}();function px(t,e,n){return!!Array.isArray(t)&&(R_(t,n[e],n),!0)}var vx=32,yx=1;function mx(t,e){var n=e.manager;return n?n.get(t):t}function gx(t){return 16&t?"cancel":8&t?"end":4&t?"move":2&t?"start":""}var bx=function(){function t(t){void 0===t&&(t={}),this.options=i_({enable:!0},t),this.id=yx++,this.manager=null,this.state=1,this.simultaneous={},this.requireFail=[]}var e=t.prototype;return e.set=function(t){return u_(this.options,t),this.manager&&this.manager.touchAction.update(),this},e.recognizeWith=function(t){if(px(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=mx(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},e.dropRecognizeWith=function(t){return px(t,"dropRecognizeWith",this)||(t=mx(t,this),delete this.simultaneous[t.id]),this},e.requireFailure=function(t){if(px(t,"requireFailure",this))return this;var e=this.requireFail;return-1===K_(e,t=mx(t,this))&&(e.push(t),t.requireFailure(this)),this},e.dropRequireFailure=function(t){if(px(t,"dropRequireFailure",this))return this;t=mx(t,this);var e=K_(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},e.hasRequireFailures=function(){return this.requireFail.length>0},e.canRecognizeWith=function(t){return!!this.simultaneous[t.id]},e.emit=function(t){var e=this,n=this.state;function r(n){e.manager.emit(n,t)}n<8&&r(e.options.event+gx(n)),r(e.options.event),t.additionalEvent&&r(t.additionalEvent),n>=8&&r(e.options.event+gx(n))},e.tryEmit=function(t){if(this.canEmit())return this.emit(t);this.state=vx},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=u_({},t);if(!I_(this.options.enable,[this,e]))return this.reset(),void(this.state=vx);56&this.state&&(this.state=1),this.state=this.process(e),30&this.state&&this.tryEmit(e)},e.process=function(t){},e.getTouchAction=function(){},e.reset=function(){},t}(),wx=function(t){function e(e){var n;return void 0===e&&(e={}),(n=t.call(this,i_({event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},e))||this).pTime=!1,n.pCenter=!1,n._timer=null,n._input=null,n.count=0,n}o_(e,t);var n=e.prototype;return n.getTouchAction=function(){return[b_]},n.process=function(t){var e=this,n=this.options,r=t.pointers.length===n.pointers,i=t.distance<n.threshold,o=t.deltaTime<n.time;if(this.reset(),1&t.eventType&&0===this.count)return this.failTimeout();if(i&&o&&r){if(4!==t.eventType)return this.failTimeout();var a=!this.pTime||t.timeStamp-this.pTime<n.interval,s=!this.pCenter||B_(this.pCenter,t.center)<n.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,s&&a?this.count+=1:this.count=1,this._input=t,0===this.count%n.taps)return this.hasRequireFailures()?(this._timer=setTimeout(function(){e.state=8,e.tryEmit()},n.interval),2):8}return vx},n.failTimeout=function(){var t=this;return this._timer=setTimeout(function(){t.state=vx},this.options.interval),vx},n.reset=function(){clearTimeout(this._timer)},n.emit=function(){8===this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))},e}(bx),_x=function(t){function e(e){return void 0===e&&(e={}),t.call(this,i_({pointers:1},e))||this}o_(e,t);var n=e.prototype;return n.attrTest=function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},n.process=function(t){var e=this.state,n=t.eventType,r=6&e,i=this.attrTest(t);return r&&(8&n||!i)?16|e:r||i?4&n?8|e:2&e?4|e:2:vx},e}(bx);function xx(t){return t===L_?"down":8===t?"up":2===t?"left":4===t?"right":""}var Sx=function(t){function e(e){var n;return void 0===e&&(e={}),(n=t.call(this,i_({event:"pan",threshold:10,pointers:1,direction:30},e))||this).pX=null,n.pY=null,n}o_(e,t);var n=e.prototype;return n.getTouchAction=function(){var t=this.options.direction,e=[];return 6&t&&e.push(x_),t&P_&&e.push(__),e},n.directionTest=function(t){var e=this.options,n=!0,r=t.distance,i=t.direction,o=t.deltaX,a=t.deltaY;return i&e.direction||(6&e.direction?(i=0===o?1:o<0?2:4,n=o!==this.pX,r=Math.abs(t.deltaX)):(i=0===a?1:a<0?8:L_,n=a!==this.pY,r=Math.abs(t.deltaY))),t.direction=i,n&&r>e.threshold&&i&e.direction},n.attrTest=function(t){return _x.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},n.emit=function(e){this.pX=e.deltaX,this.pY=e.deltaY;var n=xx(e.direction);n&&(e.additionalEvent=this.options.event+n),t.prototype.emit.call(this,e)},e}(_x),Tx=function(t){function e(e){return void 0===e&&(e={}),t.call(this,i_({event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},e))||this}o_(e,t);var n=e.prototype;return n.getTouchAction=function(){return Sx.prototype.getTouchAction.call(this)},n.attrTest=function(e){var n,r=this.options.direction;return 30&r?n=e.overallVelocity:6&r?n=e.overallVelocityX:r&P_&&(n=e.overallVelocityY),t.prototype.attrTest.call(this,e)&&r&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers===this.options.pointers&&h_(n)>this.options.velocity&&4&e.eventType},n.emit=function(t){var e=xx(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)},e}(_x),Ex=function(t){function e(e){return void 0===e&&(e={}),t.call(this,i_({event:"pinch",threshold:0,pointers:2},e))||this}o_(e,t);var n=e.prototype;return n.getTouchAction=function(){return[w_]},n.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},n.emit=function(e){if(1!==e.scale){var n=e.scale<1?"in":"out";e.additionalEvent=this.options.event+n}t.prototype.emit.call(this,e)},e}(_x),Ox=function(t){function e(e){return void 0===e&&(e={}),t.call(this,i_({event:"rotate",threshold:0,pointers:2},e))||this}o_(e,t);var n=e.prototype;return n.getTouchAction=function(){return[w_]},n.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)},e}(_x),Cx=function(t){function e(e){var n;return void 0===e&&(e={}),(n=t.call(this,i_({event:"press",pointers:1,time:251,threshold:9},e))||this)._timer=null,n._input=null,n}o_(e,t);var n=e.prototype;return n.getTouchAction=function(){return[g_]},n.process=function(t){var e=this,n=this.options,r=t.pointers.length===n.pointers,i=t.distance<n.threshold,o=t.deltaTime>n.time;if(this._input=t,!i||!r||12&t.eventType&&!o)this.reset();else if(1&t.eventType)this.reset(),this._timer=setTimeout(function(){e.state=8,e.tryEmit()},n.time);else if(4&t.eventType)return 8;return vx},n.reset=function(){clearTimeout(this._timer)},n.emit=function(t){8===this.state&&(t&&4&t.eventType?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=d_(),this.manager.emit(this.options.event,this._input)))},e}(bx),Ax={domEvents:!1,touchAction:m_,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},Lx=[[Ox,{enable:!1}],[Ex,{enable:!1},["rotate"]],[Tx,{direction:6}],[Sx,{direction:6},["swipe"]],[wx],[wx,{event:"doubletap",taps:2},["tap"]],[Cx]];function Px(t,e){var n,r=t.element;r.style&&(R_(t.options.cssProps,function(i,o){n=p_(r.style,o),e?(t.oldCssProps[n]=r.style[n],r.style[n]=i):r.style[n]=t.oldCssProps[n]||""}),e||(t.oldCssProps={}))}var Dx=function(){function t(t,e){var n,r=this;this.options=u_({},Ax,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new((n=this).options.inputClass||(E_?nx:O_?ax:T_?dx:cx))(n,U_),this.touchAction=new z_(this,this.options.touchAction),Px(this,!0),R_(this.options.recognizers,function(t){var e=r.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])},this)}var e=t.prototype;return e.set=function(t){return u_(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},e.stop=function(t){this.session.stopped=t?2:1},e.recognize=function(t){var e=this.session;if(!e.stopped){var n;this.touchAction.preventDefaults(t);var r=this.recognizers,i=e.curRecognizer;(!i||i&&8&i.state)&&(e.curRecognizer=null,i=null);for(var o=0;o<r.length;)n=r[o],2===e.stopped||i&&n!==i&&!n.canRecognizeWith(i)?n.reset():n.recognize(t),!i&&14&n.state&&(e.curRecognizer=n,i=n),o++}},e.get=function(t){if(t instanceof bx)return t;for(var e=this.recognizers,n=0;n<e.length;n++)if(e[n].options.event===t)return e[n];return null},e.add=function(t){if(px(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},e.remove=function(t){if(px(t,"remove",this))return this;var e=this.get(t);if(t){var n=this.recognizers,r=K_(n,e);-1!==r&&(n.splice(r,1),this.touchAction.update())}return this},e.on=function(t,e){if(void 0===t||void 0===e)return this;var n=this.handlers;return R_(V_(t),function(t){n[t]=n[t]||[],n[t].push(e)}),this},e.off=function(t,e){if(void 0===t)return this;var n=this.handlers;return R_(V_(t),function(t){e?n[t]&&n[t].splice(K_(n[t],e),1):delete n[t]}),this},e.emit=function(t,e){this.options.domEvents&&function(t,e){var n=document.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=e,e.target.dispatchEvent(n)}(t,e);var n=this.handlers[t]&&this.handlers[t].slice();if(n&&n.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var r=0;r<n.length;)n[r](e),r++}},e.destroy=function(){this.element&&Px(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null},t}(),Mx={touchstart:1,touchmove:2,touchend:4,touchcancel:8},Rx=function(t){function e(){var n,r=e.prototype;return r.evTarget="touchstart",r.evWin="touchstart touchmove touchend touchcancel",(n=t.apply(this,arguments)||this).started=!1,n}return o_(e,t),e.prototype.handler=function(t){var e=Mx[t.type];if(1===e&&(this.started=!0),this.started){var n=Ix.call(this,t,e);12&e&&n[0].length-n[1].length===0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:C_,srcEvent:t})}},e}(J_);function Ix(t,e){var n=rx(t.touches),r=rx(t.changedTouches);return 12&e&&(n=ix(n.concat(r),"identifier",!0)),[n,r]}function kx(t,e,n){var r="DEPRECATED METHOD: "+e+"\n"+n+" AT \n";return function(){var e=new Error("get-stack-trace"),n=e&&e.stack?e.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",i=window.console&&(window.console.warn||window.console.log);return i&&i.call(window.console,r,n),t.apply(this,arguments)}}var zx=kx(function(t,e,n){for(var r=Object.keys(e),i=0;i<r.length;)(!n||n&&void 0===t[r[i]])&&(t[r[i]]=e[r[i]]),i++;return t},"extend","Use `assign`."),jx=kx(function(t,e){return zx(t,e,!0)},"merge","Use `assign`.");function Nx(t,e,n){var r,i=e.prototype;(r=t.prototype=Object.create(i)).constructor=t,r._super=i,n&&u_(r,n)}function Fx(t,e){return function(){return t.apply(e,arguments)}}var Bx=function(){var t=function(t,e){return void 0===e&&(e={}),new Dx(t,i_({recognizers:Lx.concat()},e))};return t.VERSION="2.0.17-rc",t.DIRECTION_ALL=30,t.DIRECTION_DOWN=L_,t.DIRECTION_LEFT=2,t.DIRECTION_RIGHT=4,t.DIRECTION_UP=8,t.DIRECTION_HORIZONTAL=6,t.DIRECTION_VERTICAL=P_,t.DIRECTION_NONE=1,t.DIRECTION_DOWN=L_,t.INPUT_START=1,t.INPUT_MOVE=2,t.INPUT_END=4,t.INPUT_CANCEL=8,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=vx,t.Manager=Dx,t.Input=J_,t.TouchAction=z_,t.TouchInput=ax,t.MouseInput=cx,t.PointerEventInput=nx,t.TouchMouseInput=dx,t.SingleTouchInput=Rx,t.Recognizer=bx,t.AttrRecognizer=_x,t.Tap=wx,t.Pan=Sx,t.Swipe=Tx,t.Pinch=Ex,t.Rotate=Ox,t.Press=Cx,t.on=Z_,t.off=q_,t.each=R_,t.merge=jx,t.extend=zx,t.bindFn=Fx,t.assign=u_,t.inherit=Nx,t.bindFn=Fx,t.prefixed=p_,t.toArray=rx,t.inArray=K_,t.uniqueArray=ix,t.splitStr=V_,t.boolOrFn=I_,t.hasParent=j_,t.addEventListeners=Z_,t.removeEventListeners=q_,t.defaults=u_({},Ax,{preset:Lx}),t}();const Wx=Xb("DELETE");function Yx(){const t=Gx(...arguments);return Ux(t),t}function Gx(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(e.length<2)return e[0];if(e.length>2)return Gx(Yx(e[0],e[1]),...$b(e).call(e,2));const r=e[0],i=e[1];if(r instanceof Date&&i instanceof Date)return r.setTime(i.getTime()),r;for(const t of Nb(i))Object.prototype.propertyIsEnumerable.call(i,t)&&(i[t]===Wx?delete r[t]:null===r[t]||null===i[t]||"object"!=typeof r[t]||"object"!=typeof i[t]||_m(r[t])||_m(i[t])?r[t]=Xx(i[t]):r[t]=Gx(r[t],i[t]));return r}function Xx(t){return _m(t)?cd(t).call(t,t=>Xx(t)):"object"==typeof t&&null!==t?t instanceof Date?new Date(t.getTime()):Gx({},t):t}function Ux(t){for(const e of Ng(t))t[e]===Wx?delete t[e]:"object"==typeof t[e]&&null!==t[e]&&Ux(t[e])}const Vx="undefined"!=typeof window?window.Hammer||Bx:function(){return function(){const t=()=>{};return{on:t,off:t,destroy:t,emit:t,get:()=>({set:t})}}()};function Zx(t){var e;this._cleanupQueue=[],this.active=!1,this._dom={container:t,overlay:document.createElement("div")},this._dom.overlay.classList.add("vis-overlay"),this._dom.container.appendChild(this._dom.overlay),this._cleanupQueue.push(()=>{this._dom.overlay.parentNode.removeChild(this._dom.overlay)});const n=Vx(this._dom.overlay);n.on("tap",Th(e=this._onTapOverlay).call(e,this)),this._cleanupQueue.push(()=>{n.destroy()});const r=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];Gd(r).call(r,t=>{n.on(t,t=>{t.srcEvent.stopPropagation()})}),document&&document.body&&(this._onClick=e=>{(function(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1})(e.target,t)||this.deactivate()},document.body.addEventListener("click",this._onClick),this._cleanupQueue.push(()=>{document.body.removeEventListener("click",this._onClick)})),this._escListener=t=>{("key"in t?"Escape"===t.key:27===t.keyCode)&&this.deactivate()}}r_(Zx.prototype),Zx.current=null,Zx.prototype.destroy=function(){this.deactivate();for(const e of fm(t=this._cleanupQueue).call(t,0).toReversed()){var t;e()}},Zx.prototype.activate=function(){Zx.current&&Zx.current.deactivate(),Zx.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)},Zx.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")},Zx.prototype._onTapOverlay=function(t){this.activate(),t.srcEvent.stopPropagation()};const qx=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,Hx=/^#?([a-f\d])([a-f\d])([a-f\d])$/i;function Jx(t,e,n,r){let i=!1;!0===r&&(i=null===e[n]&&void 0!==t[n]),i?delete t[n]:t[n]=e[n]}function Kx(t,e){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)||!0===n)if("object"==typeof e[o]&&null!==e[o]&&vw(e[o])===Object.prototype)void 0===t[o]?t[o]=Kx({},e[o],n):"object"==typeof t[o]&&null!==t[o]&&vw(t[o])===Object.prototype?Kx(t[o],e[o],n):Jx(t,e,o,r);else if(_m(e[o])){var i;t[o]=$b(i=e[o]).call(i)}else Jx(t,e,o,r);return t}function $x(t,e){return[...t,e]}function Qx(t){return $b(t).call(t)}function tS(t){t||(t=window.event),t&&(t.preventDefault?t.preventDefault():t.returnValue=!1)}function eS(t,e,n){let r,i,o;const a=Math.floor(6*t),s=6*t-a,u=n*(1-e),c=n*(1-s*e),l=n*(1-(1-s)*e);switch(a%6){case 0:r=n,i=l,o=u;break;case 1:r=c,i=n,o=u;break;case 2:r=u,i=n,o=l;break;case 3:r=u,i=c,o=n;break;case 4:r=l,i=u,o=n;break;case 5:r=n,i=u,o=c}return{r:Math.floor(255*r),g:Math.floor(255*i),b:Math.floor(255*o)}}let nS,rS=!1;const iS="background: #FFeeee; color: #dd0000";const oS=iS,aS=class t{static validate(e,n,r){rS=!1,nS=n;let i=n;return void 0!==r&&(i=n[r]),t.parse(e,i,[]),rS}static parse(e,n,r){for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.check(i,e,n,r)}static check(e,n,r,i){if(void 0===r[e]&&void 0===r.__any__)return void t.getSuggestion(e,r,i);let o=e,a=!0;void 0===r[e]&&void 0!==r.__any__&&(o="__any__",a="object"===t.getType(n[e]));let s=r[o];a&&void 0!==s.__type__&&(s=s.__type__),t.checkFields(e,n,r,o,s,i)}static checkFields(e,n,r,i,o,a){const s=function(n){console.error("%c"+n+t.printLocation(a,e),iS)},u=t.getType(n[e]),c=o[u];void 0!==c?"array"===t.getType(c)&&-1===Zw(c).call(c,n[e])?(s('Invalid option detected in "'+e+'". Allowed values are:'+t.print(c)+' not "'+n[e]+'". '),rS=!0):"object"===u&&"__any__"!==i&&(a=$x(a,e),t.parse(n[e],r[i],a)):void 0===o.any&&(s('Invalid type received for "'+e+'". Expected: '+t.print(Ng(o))+". Received ["+u+'] "'+n[e]+'"'),rS=!0)}static getType(t){const e=typeof t;return"object"===e?null===t?"null":t instanceof Boolean?"boolean":t instanceof Number?"number":t instanceof String?"string":_m(t)?"array":t instanceof Date?"date":void 0!==t.nodeType?"dom":!0===t._isAMomentObject?"moment":"object":"number"===e?"number":"boolean"===e?"boolean":"string"===e?"string":void 0===e?"undefined":e}static getSuggestion(e,n,r){const i=t.findInOptions(e,n,r,!1),o=t.findInOptions(e,nS,[],!0);let a;a=void 0!==i.indexMatch?" in "+t.printLocation(i.path,e,"")+'Perhaps it was incomplete? Did you mean: "'+i.indexMatch+'"?\n\n':o.distance<=4&&i.distance>o.distance?" in "+t.printLocation(i.path,e,"")+"Perhaps it was misplaced? Matching option found at: "+t.printLocation(o.path,o.closestMatch,""):i.distance<=8?'. Did you mean "'+i.closestMatch+'"?'+t.printLocation(i.path,e):". Did you mean one of these: "+t.print(Ng(n))+t.printLocation(r,e),console.error('%cUnknown option detected: "'+e+'"'+a,iS),rS=!0}static findInOptions(e,n,r){let i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=1e9,a="",s=[];const u=e.toLowerCase();let c;for(const f in n){let h;if(void 0!==n[f].__type__&&!0===i){const i=t.findInOptions(e,n[f],$x(r,f));o>i.distance&&(a=i.closestMatch,s=i.path,o=i.distance,c=i.indexMatch)}else{var l;-1!==Zw(l=f.toLowerCase()).call(l,u)&&(c=f),h=t.levenshteinDistance(e,f),o>h&&(a=f,s=Qx(r),o=h)}}return{closestMatch:a,path:s,distance:o,indexMatch:c}}static printLocation(t,e){let n="\n\n"+(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Problem value found at: \n")+"options = {\n";for(let e=0;e<t.length;e++){for(let t=0;t<e+1;t++)n+="  ";n+=t[e]+": {\n"}for(let e=0;e<t.length+1;e++)n+="  ";n+=e+"\n";for(let e=0;e<t.length+1;e++){for(let r=0;r<t.length-e;r++)n+="  ";n+="}\n"}return n+"\n\n"}static print(t){return xb(t).replace(/(")|(\[)|(\])|(,"__type__")/g,"").replace(/(,)/g,", ")}static levenshteinDistance(t,e){if(0===t.length)return e.length;if(0===e.length)return t.length;const n=[];let r,i;for(r=0;r<=e.length;r++)n[r]=[r];for(i=0;i<=t.length;i++)n[0][i]=i;for(r=1;r<=e.length;r++)for(i=1;i<=t.length;i++)e.charAt(r-1)==t.charAt(i-1)?n[r][i]=n[r-1][i-1]:n[r][i]=Math.min(n[r-1][i-1]+1,Math.min(n[r][i-1]+1,n[r-1][i]+1));return n[e.length][t.length]}},sS=[];for(let t=0;t<256;++t)sS.push((t+256).toString(16).slice(1));const uS=new Uint8Array(16);function cS(t,e,n){return crypto.randomUUID?crypto.randomUUID():function(t){t=t||{};const e=t.random??t.rng?.()??crypto.getRandomValues(uS);if(e.length<16)throw new Error("Random bytes length must be >= 16");return e[6]=15&e[6]|64,e[8]=63&e[8]|128,function(t,e=0){return(sS[t[e+0]]+sS[t[e+1]]+sS[t[e+2]]+sS[t[e+3]]+"-"+sS[t[e+4]]+sS[t[e+5]]+"-"+sS[t[e+6]]+sS[t[e+7]]+"-"+sS[t[e+8]]+sS[t[e+9]]+"-"+sS[t[e+10]]+sS[t[e+11]]+sS[t[e+12]]+sS[t[e+13]]+sS[t[e+14]]+sS[t[e+15]]).toLowerCase()}(e)}(t)}function lS(t,e){var n=Ng(t);if(Ca){var r=Ca(t);e&&(r=ed(r).call(r,function(e){return Wa(t,e).enumerable})),n.push.apply(n,r)}return n}function fS(t){for(var e=1;e<arguments.length;e++){var n,r,i=null!=arguments[e]?arguments[e]:{};e%2?Gd(n=lS(Object(i),!0)).call(n,function(e){Vf(t,e,i[e])}):$a?vs(t,$a(i)):Gd(r=lS(Object(i))).call(r,function(e){Wb(t,e,Wa(i,e))})}return t}function hS(t){return new pS(t)}class dS{constructor(t,e,n){var r,i,o;Vf(this,"_source",void 0),Vf(this,"_transformers",void 0),Vf(this,"_target",void 0),Vf(this,"_listeners",{add:Th(r=this._add).call(r,this),remove:Th(i=this._remove).call(i,this),update:Th(o=this._update).call(o,this)}),this._source=t,this._transformers=e,this._target=n}all(){return this._target.update(this._transformItems(this._source.get())),this}start(){return this._source.on("add",this._listeners.add),this._source.on("remove",this._listeners.remove),this._source.on("update",this._listeners.update),this}stop(){return this._source.off("add",this._listeners.add),this._source.off("remove",this._listeners.remove),this._source.off("update",this._listeners.update),this}_transformItems(t){var e;return Wh(e=this._transformers).call(e,(t,e)=>e(t),t)}_add(t,e){null!=e&&this._target.add(this._transformItems(this._source.get(e.items)))}_update(t,e){null!=e&&this._target.update(this._transformItems(this._source.get(e.items)))}_remove(t,e){null!=e&&this._target.remove(this._transformItems(e.oldData))}}class pS{constructor(t){Vf(this,"_source",void 0),Vf(this,"_transformers",[]),this._source=t}filter(t){return this._transformers.push(e=>ed(e).call(e,t)),this}map(t){return this._transformers.push(e=>cd(e).call(e,t)),this}flatMap(t){return this._transformers.push(e=>kd(e).call(e,t)),this}to(t){return new dS(this._source,this._transformers,t)}}function vS(t){return"string"==typeof t||"number"==typeof t}class yS{constructor(){Vf(this,"_subscribers",{"*":[],add:[],remove:[],update:[]}),Vf(this,"subscribe",yS.prototype.on),Vf(this,"unsubscribe",yS.prototype.off)}_trigger(t,e,n){var r;if("*"===t)throw new Error("Cannot trigger event *");Gd(r=[...this._subscribers[t],...this._subscribers["*"]]).call(r,r=>{r(t,e,null!=n?n:null)})}on(t,e){"function"==typeof e&&this._subscribers[t].push(e)}off(t,e){var n;this._subscribers[t]=ed(n=this._subscribers[t]).call(n,t=>t!==e)}}class mS{constructor(t){Vf(this,"_pairs",void 0),this._pairs=t}*[Kd](){for(const e of this._pairs){var t=Ul(e,2);const n=t[0],r=t[1];yield[n,r]}}*entries(){for(const e of this._pairs){var t=Ul(e,2);const n=t[0],r=t[1];yield[n,r]}}*keys(){for(const t of this._pairs){const e=Ul(t,1)[0];yield e}}*values(){for(const t of this._pairs){const e=Ul(t,2)[1];yield e}}toIdArray(){var t;return cd(t=[...this._pairs]).call(t,t=>t[0])}toItemArray(){var t;return cd(t=[...this._pairs]).call(t,t=>t[1])}toEntryArray(){return[...this._pairs]}toObjectMap(){const t=_p(null);for(const n of this._pairs){var e=Ul(n,2);const r=e[0],i=e[1];t[r]=i}return t}toMap(){return new rv(this._pairs)}toIdSet(){return new Fy(this.toIdArray())}toItemSet(){return new Fy(this.toItemArray())}cache(){return new mS([...this._pairs])}distinct(t){const e=new Fy;for(const r of this._pairs){var n=Ul(r,2);const i=n[0],o=n[1];e.add(t(o,i))}return e}filter(t){const e=this._pairs;return new mS({*[Kd](){for(const r of e){var n=Ul(r,2);const e=n[0],i=n[1];t(i,e)&&(yield[e,i])}}})}forEach(t){for(const n of this._pairs){var e=Ul(n,2);const r=e[0];t(e[1],r)}}map(t){const e=this._pairs;return new mS({*[Kd](){for(const r of e){var n=Ul(r,2);const e=n[0],i=n[1];yield[e,t(i,e)]}}})}max(t){const e=rm(this._pairs);let n=e.next();if(n.done)return null;let r=n.value[1],i=t(n.value[1],n.value[0]);for(;!(n=e.next()).done;){const e=Ul(n.value,2),o=e[0],a=e[1],s=t(a,o);s>i&&(i=s,r=a)}return r}min(t){const e=rm(this._pairs);let n=e.next();if(n.done)return null;let r=n.value[1],i=t(n.value[1],n.value[0]);for(;!(n=e.next()).done;){const e=Ul(n.value,2),o=e[0],a=e[1],s=t(a,o);s<i&&(i=s,r=a)}return r}reduce(t,e){for(const r of this._pairs){var n=Ul(r,2);const i=n[0];e=t(e,n[1],i)}return e}sort(t){return new mS({[Kd]:()=>rm([...this._pairs].toSorted((e,n)=>{let r=Ul(e,2),i=r[0],o=r[1],a=Ul(n,2),s=a[0],u=a[1];return t(o,u,i,s)}))})}}class gS{constructor(t){Vf(this,"delay",void 0),Vf(this,"max",void 0),Vf(this,"_queue",[]),Vf(this,"_timeout",null),Vf(this,"_extended",null),this.delay=null,this.max=1/0,this.setOptions(t)}setOptions(t){t&&void 0!==t.delay&&(this.delay=t.delay),t&&void 0!==t.max&&(this.max=t.max),this._flushIfNeeded()}static extend(t,e){const n=new gS(e);if(void 0!==t.flush)throw new Error("Target object already has a property flush");t.flush=()=>{n.flush()};const r=[{name:"flush",original:void 0}];if(e&&e.replace)for(let i=0;i<e.replace.length;i++){const o=e.replace[i];r.push({name:o,original:t[o]}),n.replace(t,o)}return n._extended={object:t,methods:r},n}destroy(){if(this.flush(),this._extended){const t=this._extended.object,e=this._extended.methods;for(let n=0;n<e.length;n++){const r=e[n];r.original?t[r.name]=r.original:delete t[r.name]}this._extended=null}}replace(t,e){const n=this,r=t[e];if(!r)throw new Error("Method "+e+" undefined");t[e]=function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];n.queue({args:e,fn:r,context:this})}}queue(t){"function"==typeof t?this._queue.push({fn:t}):this._queue.push(t),this._flushIfNeeded()}_flushIfNeeded(){this._queue.length>this.max&&this.flush(),null!=this._timeout&&(clearTimeout(this._timeout),this._timeout=null),this.queue.length>0&&"number"==typeof this.delay&&(this._timeout=Zi(()=>{this.flush()},this.delay))}flush(){var t,e;Gd(t=fm(e=this._queue).call(e,0)).call(t,t=>{t.fn.apply(t.context||t.fn,t.args||[])})}}class bS extends yS{get idProp(){return this._idProp}constructor(t,e){super(),Vf(this,"flush",void 0),Vf(this,"length",void 0),Vf(this,"_options",void 0),Vf(this,"_data",void 0),Vf(this,"_idProp",void 0),Vf(this,"_queue",null),t&&!_m(t)&&(e=t,t=[]),this._options=e||{},this._data=new rv,this.length=0,this._idProp=this._options.fieldId||"id",t&&t.length&&this.add(t),this.setOptions(e)}setOptions(t){t&&void 0!==t.queue&&(!1===t.queue?this._queue&&(this._queue.destroy(),this._queue=null):(this._queue||(this._queue=gS.extend(this,{replace:["add","update","remove"]})),t.queue&&"object"==typeof t.queue&&this._queue.setOptions(t.queue)))}add(t,e){const n=[];let r;if(_m(t)){const e=cd(t).call(t,t=>t[this._idProp]);if(km(e).call(e,t=>this._data.has(t)))throw new Error("A duplicate id was found in the parameter array.");for(let e=0,i=t.length;e<i;e++)r=this._addItem(t[e]),n.push(r)}else{if(!t||"object"!=typeof t)throw new Error("Unknown dataType");r=this._addItem(t),n.push(r)}return n.length&&this._trigger("add",{items:n},e),n}update(t,e){const n=[],r=[],i=[],o=[],a=this._idProp,s=t=>{const e=t[a];if(null!=e&&this._data.has(e)){const n=t,a=qm({},this._data.get(e)),s=this._updateItem(n);r.push(s),o.push(n),i.push(a)}else{const e=this._addItem(t);n.push(e)}};if(_m(t))for(let e=0,n=t.length;e<n;e++)t[e]&&"object"==typeof t[e]?s(t[e]):console.warn("Ignoring input item, which is not an object at index "+e);else{if(!t||"object"!=typeof t)throw new Error("Unknown dataType");s(t)}if(n.length&&this._trigger("add",{items:n},e),r.length){const t={items:r,oldData:i,data:o};this._trigger("update",t,e)}return ag(n).call(n,r)}updateOnly(t,e){var n;_m(t)||(t=[t]);const r=cd(n=cd(t).call(t,t=>{const e=this._data.get(t[this._idProp]);if(null==e)throw new Error("Updating non-existent items is not allowed.");return{oldData:e,update:t}})).call(n,t=>{let e=t.oldData,n=t.update;const r=e[this._idProp],i=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return Yx({},t,...n)}(e,n);return this._data.set(r,i),{id:r,oldData:e,updatedData:i}});if(r.length){const t={items:cd(r).call(r,t=>t.id),oldData:cd(r).call(r,t=>t.oldData),data:cd(r).call(r,t=>t.updatedData)};return this._trigger("update",t,e),t.items}return[]}get(t,e){let n,r,i;vS(t)?(n=t,i=e):_m(t)?(r=t,i=e):i=t;const o=i&&"Object"===i.returnType?"Object":"Array",a=i&&ed(i),s=[];let u,c,l;if(null!=n)u=this._data.get(n),u&&a&&!a(u)&&(u=void 0);else if(null!=r)for(let t=0,e=r.length;t<e;t++)u=this._data.get(r[t]),null==u||a&&!a(u)||s.push(u);else{var f;c=[...mg(f=this._data).call(f)];for(let t=0,e=c.length;t<e;t++)l=c[t],u=this._data.get(l),null==u||a&&!a(u)||s.push(u)}if(i&&i.order&&null==n&&this._sort(s,i.order),i&&i.fields){const t=i.fields;if(null!=n&&null!=u)u=this._filterFields(u,t);else for(let e=0,n=s.length;e<n;e++)s[e]=this._filterFields(s[e],t)}if("Object"==o){const t={};for(let e=0,n=s.length;e<n;e++){const n=s[e];t[n[this._idProp]]=n}return t}return null!=n?null!=u?u:null:s}getIds(t){const e=this._data,n=t&&ed(t),r=t&&t.order,i=[...mg(e).call(e)],o=[];if(n)if(r){const t=[];for(let e=0,r=i.length;e<r;e++){const r=i[e],o=this._data.get(r);null!=o&&n(o)&&t.push(o)}this._sort(t,r);for(let e=0,n=t.length;e<n;e++)o.push(t[e][this._idProp])}else for(let t=0,e=i.length;t<e;t++){const e=i[t],r=this._data.get(e);null!=r&&n(r)&&o.push(r[this._idProp])}else if(r){const t=[];for(let n=0,r=i.length;n<r;n++){const r=i[n];t.push(e.get(r))}this._sort(t,r);for(let e=0,n=t.length;e<n;e++)o.push(t[e][this._idProp])}else for(let t=0,n=i.length;t<n;t++){const n=i[t],r=e.get(n);null!=r&&o.push(r[this._idProp])}return o}getDataSet(){return this}forEach(t,e){const n=e&&ed(e),r=this._data,i=[...mg(r).call(r)];if(e&&e.order){const n=this.get(e);for(let e=0,r=n.length;e<r;e++){const r=n[e];t(r,r[this._idProp])}}else for(let e=0,r=i.length;e<r;e++){const r=i[e],o=this._data.get(r);null==o||n&&!n(o)||t(o,r)}}map(t,e){const n=e&&ed(e),r=[],i=this._data,o=[...mg(i).call(i)];for(let e=0,i=o.length;e<i;e++){const i=o[e],a=this._data.get(i);null==a||n&&!n(a)||r.push(t(a,i))}return e&&e.order&&this._sort(r,e.order),r}_filterFields(t,e){var n;return t?Wh(n=_m(e)?e:Ng(e)).call(n,(e,n)=>(e[n]=t[n],e),{}):t}_sort(t,e){if("string"==typeof e){const n=e;sb(t).call(t,(t,e)=>{const r=t[n],i=e[n];return r>i?1:r<i?-1:0})}else{if("function"!=typeof e)throw new TypeError("Order must be a function or a string");sb(t).call(t,e)}}remove(t,e){const n=[],r=[],i=_m(t)?t:[t];for(let t=0,e=i.length;t<e;t++){const e=this._remove(i[t]);if(e){const t=e[this._idProp];null!=t&&(n.push(t),r.push(e))}}return n.length&&this._trigger("remove",{items:n,oldData:r},e),n}_remove(t){let e;if(vS(t)?e=t:t&&"object"==typeof t&&(e=t[this._idProp]),null!=e&&this._data.has(e)){const t=this._data.get(e)||null;return this._data.delete(e),--this.length,t}return null}clear(t){var e;const n=[...mg(e=this._data).call(e)],r=[];for(let t=0,e=n.length;t<e;t++)r.push(this._data.get(n[t]));return this._data.clear(),this.length=0,this._trigger("remove",{items:n,oldData:r},t),n}max(t){let e=null,n=null;for(const i of Li(r=this._data).call(r)){var r;const o=i[t];"number"==typeof o&&(null==n||o>n)&&(e=i,n=o)}return e||null}min(t){let e=null,n=null;for(const i of Li(r=this._data).call(r)){var r;const o=i[t];"number"==typeof o&&(null==n||o<n)&&(e=i,n=o)}return e||null}distinct(t){const e=this._data,n=[...mg(e).call(e)],r=[];let i=0;for(let o=0,a=n.length;o<a;o++){const a=n[o],s=e.get(a)[t];let u=!1;for(let t=0;t<i;t++)if(r[t]==s){u=!0;break}u||void 0===s||(r[i]=s,i++)}return r}_addItem(t){const e=function(t,e){return null==t[e]&&(t[e]=cS()),t}(t,this._idProp),n=e[this._idProp];if(this._data.has(n))throw new Error("Cannot add item: item with id "+n+" already exists");return this._data.set(n,e),++this.length,n}_updateItem(t){const e=t[this._idProp];if(null==e)throw new Error("Cannot update item: item has no id (item: "+xb(t)+")");const n=this._data.get(e);if(!n)throw new Error("Cannot update item: no item with id "+e+" found");return this._data.set(e,fS(fS({},n),t)),e}stream(t){if(t){const e=this._data;return new mS({*[Kd](){for(const n of t){const t=e.get(n);null!=t&&(yield[n,t])}}})}var e;return new mS({[Kd]:Th(e=Rb(this._data)).call(e,this._data)})}}class wS extends yS{get idProp(){return this.getDataSet().idProp}constructor(t,e){var n;super(),Vf(this,"length",0),Vf(this,"_listener",void 0),Vf(this,"_data",void 0),Vf(this,"_ids",new Fy),Vf(this,"_options",void 0),this._options=e||{},this._listener=Th(n=this._onEvent).call(n,this),this.setData(t)}setData(t){if(this._data){this._data.off&&this._data.off("*",this._listener);const t=this._data.getIds({filter:ed(this._options)}),e=this._data.get(t);this._ids.clear(),this.length=0,this._trigger("remove",{items:t,oldData:e})}if(null!=t){this._data=t;const e=this._data.getIds({filter:ed(this._options)});for(let t=0,n=e.length;t<n;t++){const n=e[t];this._ids.add(n)}this.length=e.length,this._trigger("add",{items:e})}else this._data=new bS;this._data.on&&this._data.on("*",this._listener)}refresh(){const t=this._data.getIds({filter:ed(this._options)}),e=[...this._ids],n={},r=[],i=[],o=[];for(let e=0,i=t.length;e<i;e++){const i=t[e];n[i]=!0,this._ids.has(i)||(r.push(i),this._ids.add(i))}for(let t=0,r=e.length;t<r;t++){const r=e[t],a=this._data.get(r);null==a?console.error("If you see this, report it please."):n[r]||(i.push(r),o.push(a),this._ids.delete(r))}this.length+=r.length-i.length,r.length&&this._trigger("add",{items:r}),i.length&&this._trigger("remove",{items:i,oldData:o})}get(t,e){if(null==this._data)return null;let n,r=null;vS(t)||_m(t)?(r=t,n=e):n=t;const i=qm({},this._options,n),o=ed(this._options),a=n&&ed(n);return o&&a&&(i.filter=t=>o(t)&&a(t)),null==r?this._data.get(i):this._data.get(r,i)}getIds(t){if(this._data.length){const e=ed(this._options),n=null!=t?ed(t):null;let r;return r=n?e?t=>e(t)&&n(t):n:e,this._data.getIds({filter:r,order:t&&t.order})}return[]}forEach(t,e){if(this._data){var n;const r=ed(this._options),i=e&&ed(e);let o;o=i?r?function(t){return r(t)&&i(t)}:i:r,Gd(n=this._data).call(n,t,{filter:o,order:e&&e.order})}}map(t,e){if(this._data){var n;const r=ed(this._options),i=e&&ed(e);let o;return o=i?r?t=>r(t)&&i(t):i:r,cd(n=this._data).call(n,t,{filter:o,order:e&&e.order})}return[]}getDataSet(){return this._data.getDataSet()}stream(t){var e;return this._data.stream(t||{[Kd]:Th(e=mg(this._ids)).call(e,this._ids)})}dispose(){var t;null!==(t=this._data)&&void 0!==t&&t.off&&this._data.off("*",this._listener);const e="This data view has already been disposed of.",n={get:()=>{throw new Error(e)},set:()=>{throw new Error(e)},configurable:!1};for(const t of Nb(wS.prototype))Wb(this,t,n)}_onEvent(t,e,n){if(!e||!e.items||!this._data)return;const r=e.items,i=[],o=[],a=[],s=[],u=[],c=[];switch(t){case"add":for(let t=0,e=r.length;t<e;t++){const e=r[t];this.get(e)&&(this._ids.add(e),i.push(e))}break;case"update":for(let t=0,n=r.length;t<n;t++){const n=r[t];this.get(n)?this._ids.has(n)?(o.push(n),u.push(e.data[t]),s.push(e.oldData[t])):(this._ids.add(n),i.push(n)):this._ids.has(n)&&(this._ids.delete(n),a.push(n),c.push(e.oldData[t]))}break;case"remove":for(let t=0,n=r.length;t<n;t++){const n=r[t];this._ids.has(n)&&(this._ids.delete(n),a.push(n),c.push(e.oldData[t]))}}this.length+=i.length-a.length,i.length&&this._trigger("add",{items:i},n),o.length&&this._trigger("update",{items:o,oldData:s,data:u},n),a.length&&this._trigger("remove",{items:a,oldData:c},n)}}function _S(t,e){return"object"==typeof e&&null!==e&&t===e.idProp&&"function"==typeof e.add&&"function"==typeof e.clear&&"function"==typeof e.distinct&&"function"==typeof Gd(e)&&"function"==typeof e.get&&"function"==typeof e.getDataSet&&"function"==typeof e.getIds&&"number"==typeof e.length&&"function"==typeof cd(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}function xS(t,e){return"object"==typeof e&&null!==e&&t===e.idProp&&"function"==typeof Gd(e)&&"function"==typeof e.get&&"function"==typeof e.getDataSet&&"function"==typeof e.getIds&&"number"==typeof e.length&&"function"==typeof cd(e)&&"function"==typeof e.off&&"function"==typeof e.on&&"function"==typeof e.stream&&_S(t,e.getDataSet())}function SS(t,e,n){this.dataGroup=t,this.column=e,this.graph=n,this.index=void 0,this.value=void 0,this.values=t.getDistinctValues(this.column),Li(this).length>0&&this.selectValue(0),this.dataPoints=[],this.loaded=!1,this.onLoadCallback=void 0,n.animationPreload?(this.loaded=!1,this.loadInBackground()):this.loaded=!0}SS.prototype.isLoaded=function(){return this.loaded},SS.prototype.getLoadedProgress=function(){const t=Li(this).length;let e=0;for(;this.dataPoints[e];)e++;return Math.round(e/t*100)},SS.prototype.getLabel=function(){return this.graph.filterLabel},SS.prototype.getColumn=function(){return this.column},SS.prototype.getSelectedValue=function(){if(void 0!==this.index)return Li(this)[this.index]},SS.prototype.getValues=function(){return Li(this)},SS.prototype.getValue=function(t){if(t>=Li(this).length)throw new Error("Index out of range");return Li(this)[t]},SS.prototype._getDataPoints=function(t){if(void 0===t&&(t=this.index),void 0===t)return[];let e;if(this.dataPoints[t])e=this.dataPoints[t];else{const n={};n.column=this.column,n.value=Li(this)[t];const r=new wS(this.dataGroup.getDataSet(),{filter:function(t){return t[n.column]==n.value}}).get();e=this.dataGroup._getDataPoints(r),this.dataPoints[t]=e}return e},SS.prototype.setOnLoadCallback=function(t){this.onLoadCallback=t},SS.prototype.selectValue=function(t){if(t>=Li(this).length)throw new Error("Index out of range");this.index=t,this.value=Li(this)[t]},SS.prototype.loadInBackground=function(t){void 0===t&&(t=0);const e=this.graph.frame;if(t<Li(this).length){void 0===e.progress&&(e.progress=document.createElement("DIV"),e.progress.style.position="absolute",e.progress.style.color="gray",e.appendChild(e.progress));const n=this.getLoadedProgress();e.progress.innerHTML="Loading animation... "+n+"%",e.progress.style.bottom="60px",e.progress.style.left="10px";const r=this;Zi(function(){r.loadInBackground(t+1)},10),this.loaded=!1}else this.loaded=!0,void 0!==e.progress&&(e.removeChild(e.progress),e.progress=void 0),this.onLoadCallback&&this.onLoadCallback()};var TS,ES,OS,CS,AS,LS,PS,DS,MS,RS={};function IS(){if(ES)return TS;ES=1;var t=g(),e=b(),n=x(),r=Ji(),i=gw().trim,o=mw(),a=n("".charAt),s=t.parseFloat,u=t.Symbol,c=u&&u.iterator,l=1/s(o+"-0")!=-1/0||c&&!e(function(){s(Object(c))});return TS=l?function(t){var e=i(r(t)),n=s(e);return 0===n&&"-"===a(e,0)?-0:n}:s,TS}function kS(){return AS?CS:(AS=1,function(){if(OS)return RS;OS=1;var t=He(),e=IS();t({global:!0,forced:parseFloat!==e},{parseFloat:e})}(),CS=Tt().parseFloat)}function zS(){return PS?LS:(PS=1,LS=kS())}var jS,NS,FS,BS,WS,YS,GS,XS=e(MS?DS:(MS=1,DS=zS()));function US(){return FS?NS:(FS=1,jS||(jS=1,He()({target:"Number",stat:!0},{isNaN:function(t){return t!=t}})),NS=Tt().Number.isNaN)}function VS(){return WS?BS:(WS=1,BS=US())}var ZS=e(GS?YS:(GS=1,YS=VS()));function qS(){this.min=void 0,this.max=void 0}qS.prototype.adjust=function(t){void 0!==t&&((void 0===this.min||this.min>t)&&(this.min=t),(void 0===this.max||this.max<t)&&(this.max=t))},qS.prototype.combine=function(t){this.add(t.min),this.add(t.max)},qS.prototype.expand=function(t){if(void 0===t)return;const e=this.min-t,n=this.max+t;if(e>n)throw new Error("Passed expansion value makes range invalid");this.min=e,this.max=n},qS.prototype.range=function(){return this.max-this.min},qS.prototype.center=function(){return(this.min+this.max)/2};var HS,JS,KS,$S,QS,tT,eT,nT,rT,iT={};function oT(){return KS?JS:(KS=1,function(){if(HS)return iT;HS=1;var t=He(),e=x(),n=Io(),r=e([].reverse),i=[1,2];t({target:"Array",proto:!0,forced:String(i)===String(i.reverse())},{reverse:function(){return n(this)&&(this.length=this.length),r(this)}})}(),JS=yi()("Array","reverse"))}function aT(){if(QS)return $S;QS=1;var t=Ot(),e=oT(),n=Array.prototype;return $S=function(r){var i=r.reverse;return r===n||t(n,r)&&i===n.reverse?e:i}}function sT(){return eT?tT:(eT=1,tT=aT())}var uT=e(rT?nT:(rT=1,nT=sT()));const cT={BAR:0,BARCOLOR:1,BARSIZE:2,DOT:3,DOTLINE:4,DOTCOLOR:5,DOTSIZE:6,GRID:7,LINE:8,SURFACE:9},lT={dot:cT.DOT,"dot-line":cT.DOTLINE,"dot-color":cT.DOTCOLOR,"dot-size":cT.DOTSIZE,line:cT.LINE,grid:cT.GRID,surface:cT.SURFACE,bar:cT.BAR,"bar-color":cT.BARCOLOR,"bar-size":cT.BARSIZE},fT=["width","height","filterLabel","legendLabel","xLabel","yLabel","zLabel","xValueLabel","yValueLabel","zValueLabel","showXAxis","showYAxis","showZAxis","showGrayBottom","showGrid","showPerspective","showShadow","showSurfaceGrid","keepAspectRatio","rotateAxisLabels","verticalRatio","dotSizeRatio","dotSizeMinFraction","dotSizeMaxFraction","showAnimationControls","animationInterval","animationPreload","animationAutoStart","axisColor","axisFontSize","axisFontType","gridColor","xCenter","yCenter","zoomable","tooltipDelay","ctrlToZoom"],hT=["xBarWidth","yBarWidth","valueMin","valueMax","xMin","xMax","xStep","yMin","yMax","yStep","zMin","zMax","zStep"];let dT;function pT(t){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}function vT(t,e){return void 0===t||""===t?e:t+(void 0===(n=e)||""===n||"string"!=typeof n?n:n.charAt(0).toUpperCase()+$b(n).call(n,1));var n}function yT(t,e,n,r){let i,o;for(let a=0;a<n.length;++a)i=n[a],o=vT(r,i),e[o]=t[i]}function mT(t,e,n,r){let i,o;for(let a=0;a<n.length;++a)i=n[a],void 0!==t[i]&&(o=vT(r,i),e[o]=t[i])}function gT(t,e){if(void 0!==t.backgroundColor&&function(t,e){let n="white",r="gray",i=1;if("string"==typeof t)n=t,r="none",i=0;else{if("object"!=typeof t)throw new Error("Unsupported type of backgroundColor");void 0!==t_(t)&&(n=t_(t)),void 0!==t.stroke&&(r=t.stroke),void 0!==t.strokeWidth&&(i=t.strokeWidth)}e.frame.style.backgroundColor=n,e.frame.style.borderColor=r,e.frame.style.borderWidth=i+"px",e.frame.style.borderStyle="solid"}(t.backgroundColor,e),function(t,e){if(void 0===t)return;void 0===e.dataColor&&(e.dataColor={});"string"==typeof t?(e.dataColor.fill=t,e.dataColor.stroke=t):(t_(t)&&(e.dataColor.fill=t_(t)),t.stroke&&(e.dataColor.stroke=t.stroke),void 0!==t.strokeWidth&&(e.dataColor.strokeWidth=t.strokeWidth))}(t.dataColor,e),function(t,e){if(void 0===t)return;let n;if("string"==typeof t){if(n=function(t){const e=lT[t];if(void 0===e)return-1;return e}(t),-1===n)throw new Error("Style '"+t+"' is invalid")}else{if(!function(t){let e=!1;for(const n in cT)if(cT[n]===t){e=!0;break}return e}(t))throw new Error("Style '"+t+"' is invalid");n=t}e.style=n}(t.style,e),void 0!==t.surfaceColors){if(console.warn("`options.surfaceColors` is deprecated and may be removed in a future version. Please use `options.colormap` instead. Note that the `colormap` option uses the inverse array ordering (running from vMin to vMax)."),void 0!==t.colormap)throw new Error("The `colormap` and `surfaceColors` options are mutually exclusive.");"surface"!==e.style?console.warn("Ignoring `surfaceColors` in graph style `"+e.style+"` for backward compatibility (only effective in `surface` plots)."):function(t,e){if(void 0===t||!0===t)return;if(!1===t)return void(e.surfaceColors=void 0);void 0===e.surfaceColors&&(e.surfaceColors={});let n;if(_m(t))n=bT(t);else{if("object"!=typeof t)throw new Error("Unsupported type of surfaceColors");n=wT(t.hue)}uT(n).call(n),e.colormap=n}(t.surfaceColors,e)}else!function(t,e){if(void 0===t)return;let n;if(_m(t))n=bT(t);else if("object"==typeof t)n=wT(t.hue);else{if("function"!=typeof t)throw new Error("Unsupported type of colormap");n=t}e.colormap=n}(t.colormap,e);!function(t,e){if(void 0===t){if(void 0===dT.showLegend){const t=e.style===cT.DOTCOLOR||e.style===cT.DOTSIZE;e.showLegend=t}}else e.showLegend=t}(t.showLegend,e),_T(t.cameraPosition,e),void 0!==t.tooltip&&(e.showTooltip=t.tooltip),null!=t.onclick&&(e.onclick_callback=t.onclick,console.warn("`options.onclick` is deprecated and may be removed in a future version. Please use `Graph3d.on('click', handler)` instead.")),void 0!==t.tooltipStyle&&function(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(_m(n))throw new TypeError("Arrays are not supported by deepExtend");for(let i=0;i<t.length;i++){const o=t[i];if(Object.prototype.hasOwnProperty.call(n,o))if(n[o]&&n[o].constructor===Object)void 0===e[o]&&(e[o]={}),e[o].constructor===Object?Kx(e[o],n[o],!1,r):Jx(e,n,o,r);else{if(_m(n[o]))throw new TypeError("Arrays are not supported by deepExtend");Jx(e,n,o,r)}}}(["tooltipStyle"],e,t)}function bT(t){if(t.length<2)throw new Error("Colormap array length must be 2 or above.");return cd(t).call(t,function(t){if(!/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t))throw new Error("Invalid hex color code supplied to colormap.");return function(t){let e;switch(t.length){case 3:case 4:return e=Hx.exec(t),e?{r:Dw(e[1]+e[1],16),g:Dw(e[2]+e[2],16),b:Dw(e[3]+e[3],16)}:null;case 6:case 7:return e=qx.exec(t),e?{r:Dw(e[1],16),g:Dw(e[2],16),b:Dw(e[3],16)}:null;default:return null}}(t)})}function wT(t){if(void 0===t)throw new Error("Unsupported type of colormap");if(!(t.saturation>=0&&t.saturation<=100))throw new Error("Saturation is out of bounds. Expected range is 0-100.");if(!(t.brightness>=0&&t.brightness<=100))throw new Error("Brightness is out of bounds. Expected range is 0-100.");if(!(t.colorStops>=2))throw new Error("colorStops is out of bounds. Expected 2 or above.");const e=(t.end-t.start)/(t.colorStops-1),n=[];for(let r=0;r<t.colorStops;++r){const i=(t.start+e*r)%360/360;n.push(eS(i<0?i+1:i,t.saturation/100,t.brightness/100))}return n}function _T(t,e){const n=t;void 0!==n&&(void 0===e.camera&&(e.camera=new en),e.camera.setArmRotation(n.horizontal,n.vertical),e.camera.setArmLength(n.distance))}function xT(){this.dataTable=null}xT.prototype.initializeData=function(t,e,n){if(void 0===e)return;let r;if(_m(e)&&(e=new bS(e)),!(e instanceof bS||e instanceof wS))throw new Error("Array, DataSet, or DataView expected");if(r=e.get(),0==r.length)return;this.style=n,this.dataSet&&this.dataSet.off("*",this._onChange),this.dataSet=e,this.dataTable=r;const i=this;this._onChange=function(){t.setData(i.dataSet)},this.dataSet.on("*",this._onChange),this.colX="x",this.colY="y",this.colZ="z";const o=t.hasBars(n);if(o&&(void 0!==t.defaultXBarWidth?this.xBarWidth=t.defaultXBarWidth:this.xBarWidth=this.getSmallestDifference(r,this.colX)||1,void 0!==t.defaultYBarWidth?this.yBarWidth=t.defaultYBarWidth:this.yBarWidth=this.getSmallestDifference(r,this.colY)||1),this._initializeRange(r,this.colX,t,o),this._initializeRange(r,this.colY,t,o),this._initializeRange(r,this.colZ,t,!1),Object.prototype.hasOwnProperty.call(r[0],"style")){this.colValue="style";const e=this.getColumnRange(r,this.colValue);this._setRangeDefaults(e,t.defaultValueMin,t.defaultValueMax),this.valueRange=e}else this.colValue="z",this.valueRange=this.zRange;const a=this.getDataTable();let s;return Object.prototype.hasOwnProperty.call(a[0],"filter")&&void 0===this.dataFilter&&(this.dataFilter=new SS(this,"filter",t),this.dataFilter.setOnLoadCallback(function(){t.redraw()})),s=this.dataFilter?this.dataFilter._getDataPoints():this._getDataPoints(this.getDataTable()),s},xT.prototype._collectRangeSettings=function(t,e){var n;if(-1==Zw(n=["x","y","z"]).call(n,t))throw new Error("Column '"+t+"' invalid");const r=t.toUpperCase();return{barWidth:this[t+"BarWidth"],min:e["default"+r+"Min"],max:e["default"+r+"Max"],step:e["default"+r+"Step"],range_label:t+"Range",step_label:t+"Step"}},xT.prototype._initializeRange=function(t,e,n,r){const i=this._collectRangeSettings(e,n),o=this.getColumnRange(t,e);r&&"z"!=e&&o.expand(i.barWidth/2),this._setRangeDefaults(o,i.min,i.max),this[i.range_label]=o,this[i.step_label]=void 0!==i.step?i.step:o.range()/5},xT.prototype.getDistinctValues=function(t,e){void 0===e&&(e=this.dataTable);const n=[];for(let r=0;r<e.length;r++){const i=e[r][t]||0;-1===Zw(n).call(n,i)&&n.push(i)}return n.toSorted(function(t,e){return t-e})},xT.prototype.getSmallestDifference=function(t,e){const n=this.getDistinctValues(t,e);let r=null;for(let t=1;t<n.length;t++){const e=n[t]-n[t-1];(null==r||r>e)&&(r=e)}return r},xT.prototype.getColumnRange=function(t,e){const n=new qS;for(let r=0;r<t.length;r++){const i=t[r][e];n.adjust(i)}return n},xT.prototype.getNumberOfRows=function(){return this.dataTable.length},xT.prototype._setRangeDefaults=function(t,e,n){void 0!==e&&(t.min=e),void 0!==n&&(t.max=n),t.max<=t.min&&(t.max=t.min+1)},xT.prototype.getDataTable=function(){return this.dataTable},xT.prototype.getDataSet=function(){return this.dataSet},xT.prototype.getDataPoints=function(t){const e=[];for(let n=0;n<t.length;n++){const r=new tn;r.x=t[n][this.colX]||0,r.y=t[n][this.colY]||0,r.z=t[n][this.colZ]||0,r.data=t[n],r.value=t[n][this.colValue]||0;const i={};i.point=r,i.bottom=new tn(r.x,r.y,this.zRange.min),i.trans=void 0,i.screen=void 0,e.push(i)}return e},xT.prototype.initDataAsMatrix=function(t){let e,n,r,i;const o=this.getDistinctValues(this.colX,t),a=this.getDistinctValues(this.colY,t),s=this.getDataPoints(t),u=[];for(r=0;r<s.length;r++){i=s[r];const t=Zw(o).call(o,i.point.x),e=Zw(a).call(a,i.point.y);void 0===u[t]&&(u[t]=[]),u[t][e]=i}for(e=0;e<u.length;e++)for(n=0;n<u[e].length;n++)u[e][n]&&(u[e][n].pointRight=e<u.length-1?u[e+1][n]:void 0,u[e][n].pointTop=n<u[e].length-1?u[e][n+1]:void 0,u[e][n].pointCross=e<u.length-1&&n<u[e].length-1?u[e+1][n+1]:void 0);return s},xT.prototype.getInfo=function(){const t=this.dataFilter;if(t)return t.getLabel()+": "+t.getSelectedValue()},xT.prototype.reload=function(){this.dataTable&&this.setData(this.dataTable)},xT.prototype._getDataPoints=function(t){let e=[];if(this.style===cT.GRID||this.style===cT.SURFACE)e=this.initDataAsMatrix(t);else if(e=this.getDataPoints(t),this.style===cT.LINE)for(let t=0;t<e.length;t++)t>0&&(e[t-1].pointNext=e[t]);return e};const ST="string",TT="boolean",ET="number",OT="object",CT="array",AT={fill:{string:ST},stroke:{string:ST},strokeWidth:{number:ET},__type__:{string:ST,object:OT,undefined:"undefined"}},LT={animationAutoStart:{boolean:TT,undefined:"undefined"},animationInterval:{number:ET},animationPreload:{boolean:TT},axisColor:{string:ST},axisFontSize:{number:ET},axisFontType:{string:ST},backgroundColor:AT,xBarWidth:{number:ET,undefined:"undefined"},yBarWidth:{number:ET,undefined:"undefined"},cameraPosition:{distance:{number:ET},horizontal:{number:ET},vertical:{number:ET},__type__:{object:OT}},zoomable:{boolean:TT},ctrlToZoom:{boolean:TT},xCenter:{string:ST},yCenter:{string:ST},colormap:{hue:{start:{number:ET},end:{number:ET},saturation:{number:ET},brightness:{number:ET},colorStops:{number:ET},__type__:{object:OT}},__type__:{array:CT,object:OT,function:"function",undefined:"undefined"}},dataColor:AT,dotSizeMinFraction:{number:ET},dotSizeMaxFraction:{number:ET},dotSizeRatio:{number:ET},filterLabel:{string:ST},gridColor:{string:ST},onclick:{function:"function"},keepAspectRatio:{boolean:TT},xLabel:{string:ST},yLabel:{string:ST},zLabel:{string:ST},legendLabel:{string:ST},xMin:{number:ET,undefined:"undefined"},yMin:{number:ET,undefined:"undefined"},zMin:{number:ET,undefined:"undefined"},xMax:{number:ET,undefined:"undefined"},yMax:{number:ET,undefined:"undefined"},zMax:{number:ET,undefined:"undefined"},showAnimationControls:{boolean:TT,undefined:"undefined"},showGrayBottom:{boolean:TT},showGrid:{boolean:TT},showLegend:{boolean:TT,undefined:"undefined"},showPerspective:{boolean:TT},showShadow:{boolean:TT},showSurfaceGrid:{boolean:TT},showXAxis:{boolean:TT},showYAxis:{boolean:TT},showZAxis:{boolean:TT},rotateAxisLabels:{boolean:TT},surfaceColors:{hue:{start:{number:ET},end:{number:ET},saturation:{number:ET},brightness:{number:ET},colorStops:{number:ET},__type__:{object:OT}},__type__:{boolean:TT,array:CT,object:OT,undefined:"undefined"}},xStep:{number:ET,undefined:"undefined"},yStep:{number:ET,undefined:"undefined"},zStep:{number:ET,undefined:"undefined"},style:{number:ET,string:["bar","bar-color","bar-size","dot","dot-line","dot-color","dot-size","line","grid","surface"]},tooltip:{boolean:TT,function:"function"},tooltipDelay:{number:ET},tooltipStyle:{content:{color:{string:ST},background:{string:ST},border:{string:ST},borderRadius:{string:ST},boxShadow:{string:ST},padding:{string:ST},__type__:{object:OT}},line:{borderLeft:{string:ST},height:{string:ST},width:{string:ST},pointerEvents:{string:ST},__type__:{object:OT}},dot:{border:{string:ST},borderRadius:{string:ST},height:{string:ST},width:{string:ST},pointerEvents:{string:ST},__type__:{object:OT}},__type__:{object:OT}},xValueLabel:{function:"function"},yValueLabel:{function:"function"},zValueLabel:{function:"function"},valueMax:{number:ET,undefined:"undefined"},valueMin:{number:ET,undefined:"undefined"},verticalRatio:{number:ET},height:{string:ST},width:{string:ST},__type__:{object:OT}};function PT(t,e){this.x=void 0!==t?t:0,this.y=void 0!==e?e:0}function DT(t,e){if(void 0===t)throw new Error("No container element defined");if(this.container=t,this.visible=!e||null==e.visible||e.visible,this.visible){this.frame=document.createElement("DIV"),this.frame.style.width="100%",this.frame.style.position="relative",this.container.appendChild(this.frame),this.frame.prev=document.createElement("INPUT"),this.frame.prev.type="BUTTON",this.frame.prev.value="Prev",this.frame.appendChild(this.frame.prev),this.frame.play=document.createElement("INPUT"),this.frame.play.type="BUTTON",this.frame.play.value="Play",this.frame.appendChild(this.frame.play),this.frame.next=document.createElement("INPUT"),this.frame.next.type="BUTTON",this.frame.next.value="Next",this.frame.appendChild(this.frame.next),this.frame.bar=document.createElement("INPUT"),this.frame.bar.type="BUTTON",this.frame.bar.style.position="absolute",this.frame.bar.style.border="1px solid red",this.frame.bar.style.width="100px",this.frame.bar.style.height="6px",this.frame.bar.style.borderRadius="2px",this.frame.bar.style.MozBorderRadius="2px",this.frame.bar.style.border="1px solid #7F7F7F",this.frame.bar.style.backgroundColor="#E5E5E5",this.frame.appendChild(this.frame.bar),this.frame.slide=document.createElement("INPUT"),this.frame.slide.type="BUTTON",this.frame.slide.style.margin="0px",this.frame.slide.value=" ",this.frame.slide.style.position="relative",this.frame.slide.style.left="-100px",this.frame.appendChild(this.frame.slide);const t=this;this.frame.slide.onmousedown=function(e){t._onMouseDown(e)},this.frame.prev.onclick=function(e){t.prev(e)},this.frame.play.onclick=function(e){t.togglePlay(e)},this.frame.next.onclick=function(e){t.next(e)}}this.onChangeCallback=void 0,this.values=[],this.index=void 0,this.playTimeout=void 0,this.playInterval=1e3,this.playLoop=!0}function MT(t,e,n,r){this._start=0,this._end=0,this._step=1,this.prettyStep=!0,this.precision=5,this._current=0,this.setRange(t,e,n,r)}DT.prototype.prev=function(){let t=this.getIndex();t>0&&(t--,this.setIndex(t))},DT.prototype.next=function(){let t=this.getIndex();t<Li(this).length-1&&(t++,this.setIndex(t))},DT.prototype.playNext=function(){const t=new Date;let e=this.getIndex();e<Li(this).length-1?(e++,this.setIndex(e)):this.playLoop&&(e=0,this.setIndex(e));const n=new Date-t,r=Math.max(this.playInterval-n,0),i=this;this.playTimeout=Zi(function(){i.playNext()},r)},DT.prototype.togglePlay=function(){void 0===this.playTimeout?this.play():this.stop()},DT.prototype.play=function(){this.playTimeout||(this.playNext(),this.frame&&(this.frame.play.value="Stop"))},DT.prototype.stop=function(){clearInterval(this.playTimeout),this.playTimeout=void 0,this.frame&&(this.frame.play.value="Play")},DT.prototype.setOnChangeCallback=function(t){this.onChangeCallback=t},DT.prototype.setPlayInterval=function(t){this.playInterval=t},DT.prototype.getPlayInterval=function(){return this.playInterval},DT.prototype.setPlayLoop=function(t){this.playLoop=t},DT.prototype.onChange=function(){void 0!==this.onChangeCallback&&this.onChangeCallback()},DT.prototype.redraw=function(){if(this.frame){this.frame.bar.style.top=this.frame.clientHeight/2-this.frame.bar.offsetHeight/2+"px",this.frame.bar.style.width=this.frame.clientWidth-this.frame.prev.clientWidth-this.frame.play.clientWidth-this.frame.next.clientWidth-30+"px";const t=this.indexToLeft(this.index);this.frame.slide.style.left=t+"px"}},DT.prototype.setValues=function(t){this.values=t,Li(this).length>0?this.setIndex(0):this.index=void 0},DT.prototype.setIndex=function(t){if(!(t<Li(this).length))throw new Error("Index out of range");this.index=t,this.redraw(),this.onChange()},DT.prototype.getIndex=function(){return this.index},DT.prototype.get=function(){return Li(this)[this.index]},DT.prototype._onMouseDown=function(t){if(!(t.which?1===t.which:1===t.button))return;this.startClientX=t.clientX,this.startSlideX=XS(this.frame.slide.style.left),this.frame.style.cursor="move";const e=this;this.onmousemove=function(t){e._onMouseMove(t)},this.onmouseup=function(t){e._onMouseUp(t)},document.addEventListener("mousemove",this.onmousemove),document.addEventListener("mouseup",this.onmouseup),tS(t)},DT.prototype.leftToIndex=function(t){const e=XS(this.frame.bar.style.width)-this.frame.slide.clientWidth-10,n=t-3;let r=Math.round(n/e*(Li(this).length-1));return r<0&&(r=0),r>Li(this).length-1&&(r=Li(this).length-1),r},DT.prototype.indexToLeft=function(t){const e=XS(this.frame.bar.style.width)-this.frame.slide.clientWidth-10;return t/(Li(this).length-1)*e+3},DT.prototype._onMouseMove=function(t){const e=t.clientX-this.startClientX,n=this.startSlideX+e,r=this.leftToIndex(n);this.setIndex(r),tS()},DT.prototype._onMouseUp=function(){this.frame.style.cursor="auto",document.removeEventListener("mousemove",this.onmousemove),document.removeEventListener("mouseup",this.onmouseup),tS()},MT.prototype.isNumeric=function(t){return!isNaN(XS(t))&&isFinite(t)},MT.prototype.setRange=function(t,e,n,r){if(!this.isNumeric(t))throw new Error("Parameter 'start' is not numeric; value: "+t);if(!this.isNumeric(e))throw new Error("Parameter 'end' is not numeric; value: "+t);if(!this.isNumeric(n))throw new Error("Parameter 'step' is not numeric; value: "+t);this._start=t||0,this._end=e||0,this.setStep(n,r)},MT.prototype.setStep=function(t,e){void 0===t||t<=0||(void 0!==e&&(this.prettyStep=e),!0===this.prettyStep?this._step=MT.calculatePrettyStep(t):this._step=t)},MT.calculatePrettyStep=function(t){const e=function(t){return Math.log(t)/Math.LN10},n=Math.pow(10,Math.round(e(t))),r=2*Math.pow(10,Math.round(e(t/2))),i=5*Math.pow(10,Math.round(e(t/5)));let o=n;return Math.abs(r-t)<=Math.abs(o-t)&&(o=r),Math.abs(i-t)<=Math.abs(o-t)&&(o=i),o<=0&&(o=1),o},MT.prototype.getCurrent=function(){return XS(this._current.toPrecision(this.precision))},MT.prototype.getStep=function(){return this._step},MT.prototype.start=function(t){void 0===t&&(t=!1),this._current=this._start-this._start%this._step,t&&this.getCurrent()<this._start&&this.next()},MT.prototype.next=function(){this._current+=this._step},MT.prototype.end=function(){return this._current>this._end},IT.STYLE=cT;const RT=void 0;function IT(t,e,n){if(!(this instanceof IT))throw new SyntaxError("Constructor must be called with the new operator");this.containerElement=t,this.dataGroup=new xT,this.dataPoints=null,this.create(),function(t,e){if(void 0===t||pT(t))throw new Error("No DEFAULTS passed");if(void 0===e)throw new Error("No dst passed");dT=t,yT(t,e,fT),yT(t,e,hT,"default"),gT(t,e),e.margin=10,e.showTooltip=!1,e.onclick_callback=null,e.eye=new tn(0,0,-1)}(IT.DEFAULTS,this),this.colX=void 0,this.colY=void 0,this.colZ=void 0,this.colValue=void 0,this.setOptions(n),this.setData(e)}function kT(t){return"clientX"in t?t.clientX:t.targetTouches[0]&&t.targetTouches[0].clientX||0}function zT(t){return"clientY"in t?t.clientY:t.targetTouches[0]&&t.targetTouches[0].clientY||0}IT.DEFAULTS={width:"400px",height:"400px",filterLabel:"time",legendLabel:"value",xLabel:"x",yLabel:"y",zLabel:"z",xValueLabel:function(t){return t},yValueLabel:function(t){return t},zValueLabel:function(t){return t},showXAxis:!0,showYAxis:!0,showZAxis:!0,showGrayBottom:!1,showGrid:!0,showPerspective:!0,showShadow:!1,showSurfaceGrid:!0,keepAspectRatio:!0,rotateAxisLabels:!0,verticalRatio:.5,dotSizeRatio:.02,dotSizeMinFraction:.5,dotSizeMaxFraction:2.5,showAnimationControls:RT,animationInterval:1e3,animationPreload:!1,animationAutoStart:RT,axisFontSize:14,axisFontType:"arial",axisColor:"#4D4D4D",gridColor:"#D3D3D3",xCenter:"55%",yCenter:"50%",style:IT.STYLE.DOT,tooltip:!1,tooltipDelay:300,tooltipStyle:{content:{padding:"10px",border:"1px solid #4d4d4d",color:"#1a1a1a",background:"rgba(255,255,255,0.7)",borderRadius:"2px",boxShadow:"5px 5px 10px rgba(128,128,128,0.5)"},line:{height:"40px",width:"0",borderLeft:"1px solid #4d4d4d",pointerEvents:"none"},dot:{height:"0",width:"0",border:"5px solid #4d4d4d",borderRadius:"5px",pointerEvents:"none"}},dataColor:{fill:"#7DC1FF",stroke:"#3267D2",strokeWidth:1},surfaceColors:RT,colormap:RT,cameraPosition:{horizontal:1,vertical:.5,distance:1.7},zoomable:!0,ctrlToZoom:!1,showLegend:RT,backgroundColor:RT,xBarWidth:RT,yBarWidth:RT,valueMin:RT,valueMax:RT,xMin:RT,xMax:RT,xStep:RT,yMin:RT,yMax:RT,yStep:RT,zMin:RT,zMax:RT,zStep:RT},r_(IT.prototype),IT.prototype._setScale=function(){this.scale=new tn(1/this.xRange.range(),1/this.yRange.range(),1/this.zRange.range()),this.keepAspectRatio&&(this.scale.x<this.scale.y?this.scale.y=this.scale.x:this.scale.x=this.scale.y),this.scale.z*=this.verticalRatio,void 0!==this.valueRange&&(this.scale.value=1/this.valueRange.range());const t=this.xRange.center()*this.scale.x,e=this.yRange.center()*this.scale.y,n=this.zRange.center()*this.scale.z;this.camera.setArmLocation(t,e,n)},IT.prototype._convert3Dto2D=function(t){const e=this._convertPointToTranslation(t);return this._convertTranslationToScreen(e)},IT.prototype._convertPointToTranslation=function(t){const e=this.camera.getCameraLocation(),n=this.camera.getCameraRotation(),r=t.x*this.scale.x,i=t.y*this.scale.y,o=t.z*this.scale.z,a=e.x,s=e.y,u=e.z,c=Math.sin(n.x),l=Math.cos(n.x),f=Math.sin(n.y),h=Math.cos(n.y),d=Math.sin(n.z),p=Math.cos(n.z);return new tn(h*(d*(i-s)+p*(r-a))-f*(o-u),c*(h*(o-u)+f*(d*(i-s)+p*(r-a)))+l*(p*(i-s)-d*(r-a)),l*(h*(o-u)+f*(d*(i-s)+p*(r-a)))-c*(p*(i-s)-d*(r-a)))},IT.prototype._convertTranslationToScreen=function(t){const e=this.eye.x,n=this.eye.y,r=this.eye.z,i=t.x,o=t.y,a=t.z;let s,u;return this.showPerspective?(s=r/a*(i-e),u=r/a*(o-n)):(s=i*(-r/this.camera.getArmLength()),u=o*(-r/this.camera.getArmLength())),new PT(this.currentXCenter+s*this.frame.canvas.clientWidth,this.currentYCenter-u*this.frame.canvas.clientWidth)},IT.prototype._calcTranslations=function(t){for(let e=0;e<t.length;e++){const n=t[e];n.trans=this._convertPointToTranslation(n.point),n.screen=this._convertTranslationToScreen(n.trans);const r=this._convertPointToTranslation(n.bottom);n.dist=this.showPerspective?r.length():-r.z}sb(t).call(t,function(t,e){return e.dist-t.dist})},IT.prototype._initializeRanges=function(){const t=this.dataGroup;this.xRange=t.xRange,this.yRange=t.yRange,this.zRange=t.zRange,this.valueRange=t.valueRange,this.xStep=t.xStep,this.yStep=t.yStep,this.zStep=t.zStep,this.xBarWidth=t.xBarWidth,this.yBarWidth=t.yBarWidth,this.colX=t.colX,this.colY=t.colY,this.colZ=t.colZ,this.colValue=t.colValue,this._setScale()},IT.prototype.getDataPoints=function(t){const e=[];for(let n=0;n<t.length;n++){const r=new tn;r.x=t[n][this.colX]||0,r.y=t[n][this.colY]||0,r.z=t[n][this.colZ]||0,r.data=t[n],r.value=t[n][this.colValue]||0;const i={};i.point=r,i.bottom=new tn(r.x,r.y,this.zRange.min),i.trans=void 0,i.screen=void 0,e.push(i)}return e},IT.prototype._getDataPoints=function(t){let e,n,r,i,o=[];if(this.style===IT.STYLE.GRID||this.style===IT.STYLE.SURFACE){const a=this.dataGroup.getDistinctValues(this.colX,t),s=this.dataGroup.getDistinctValues(this.colY,t);o=this.getDataPoints(t);const u=[];for(r=0;r<o.length;r++){i=o[r];const t=Zw(a).call(a,i.point.x),e=Zw(s).call(s,i.point.y);void 0===u[t]&&(u[t]=[]),u[t][e]=i}for(e=0;e<u.length;e++)for(n=0;n<u[e].length;n++)u[e][n]&&(u[e][n].pointRight=e<u.length-1?u[e+1][n]:void 0,u[e][n].pointTop=n<u[e].length-1?u[e][n+1]:void 0,u[e][n].pointCross=e<u.length-1&&n<u[e].length-1?u[e+1][n+1]:void 0)}else if(o=this.getDataPoints(t),this.style===IT.STYLE.LINE)for(r=0;r<o.length;r++)r>0&&(o[r-1].pointNext=o[r]);return o},IT.prototype.create=function(){for(;this.containerElement.hasChildNodes();)this.containerElement.removeChild(this.containerElement.firstChild);this.frame=document.createElement("div"),this.frame.style.position="relative",this.frame.style.overflow="hidden",this.frame.canvas=document.createElement("canvas"),this.frame.canvas.style.position="relative",this.frame.appendChild(this.frame.canvas);{const t=document.createElement("DIV");t.style.color="red",t.style.fontWeight="bold",t.style.padding="10px",t.innerHTML="Error: your browser does not support HTML canvas",this.frame.canvas.appendChild(t)}this.frame.filter=document.createElement("div"),ed(this.frame).style.position="absolute",ed(this.frame).style.bottom="0px",ed(this.frame).style.left="0px",ed(this.frame).style.width="100%",this.frame.appendChild(ed(this.frame));const t=this;this.frame.canvas.addEventListener("mousedown",function(e){t._onMouseDown(e)}),this.frame.canvas.addEventListener("touchstart",function(e){t._onTouchStart(e)}),this.frame.canvas.addEventListener("mousewheel",function(e){t._onWheel(e)}),this.frame.canvas.addEventListener("mousemove",function(e){t._onTooltip(e)}),this.frame.canvas.addEventListener("click",function(e){t._onClick(e)}),this.containerElement.appendChild(this.frame)},IT.prototype._setSize=function(t,e){this.frame.style.width=t,this.frame.style.height=e,this._resizeCanvas()},IT.prototype._resizeCanvas=function(){this.frame.canvas.style.width="100%",this.frame.canvas.style.height="100%",this.frame.canvas.width=this.frame.canvas.clientWidth,this.frame.canvas.height=this.frame.canvas.clientHeight,ed(this.frame).style.width=this.frame.canvas.clientWidth-20+"px"},IT.prototype.animationStart=function(){if(this.animationAutoStart&&this.dataGroup.dataFilter){if(!ed(this.frame)||!ed(this.frame).slider)throw new Error("No animation available");ed(this.frame).slider.play()}},IT.prototype.animationStop=function(){ed(this.frame)&&ed(this.frame).slider&&ed(this.frame).slider.stop()},IT.prototype._resizeCenter=function(){"%"===this.xCenter.charAt(this.xCenter.length-1)?this.currentXCenter=XS(this.xCenter)/100*this.frame.canvas.clientWidth:this.currentXCenter=XS(this.xCenter),"%"===this.yCenter.charAt(this.yCenter.length-1)?this.currentYCenter=XS(this.yCenter)/100*(this.frame.canvas.clientHeight-ed(this.frame).clientHeight):this.currentYCenter=XS(this.yCenter)},IT.prototype.getCameraPosition=function(){const t=this.camera.getArmRotation();return t.distance=this.camera.getArmLength(),t},IT.prototype._readData=function(t){this.dataPoints=this.dataGroup.initializeData(this,t,this.style),this._initializeRanges(),this._redrawFilter()},IT.prototype.setData=function(t){null!=t&&(this._readData(t),this.redraw(),this.animationStart())},IT.prototype.setOptions=function(t){if(void 0===t)return;!0===aS.validate(t,LT)&&console.error("%cErrors have been found in the supplied options object.",oS),this.animationStop(),function(t,e){if(void 0!==t){if(void 0===e)throw new Error("No dst passed");if(void 0===dT||pT(dT))throw new Error("DEFAULTS not set for module Settings");mT(t,e,fT),mT(t,e,hT,"default"),gT(t,e)}}(t,this),this.setPointDrawingMethod(),this._setSize(this.width,this.height),this.setAxisLabelMethod(),this.setData(this.dataGroup.getDataTable()),this.animationStart()},IT.prototype.setPointDrawingMethod=function(){let t;switch(this.style){case IT.STYLE.BAR:t=this._redrawBarGraphPoint;break;case IT.STYLE.BARCOLOR:t=this._redrawBarColorGraphPoint;break;case IT.STYLE.BARSIZE:t=this._redrawBarSizeGraphPoint;break;case IT.STYLE.DOT:t=this._redrawDotGraphPoint;break;case IT.STYLE.DOTLINE:t=this._redrawDotLineGraphPoint;break;case IT.STYLE.DOTCOLOR:t=this._redrawDotColorGraphPoint;break;case IT.STYLE.DOTSIZE:t=this._redrawDotSizeGraphPoint;break;case IT.STYLE.SURFACE:t=this._redrawSurfaceGraphPoint;break;case IT.STYLE.GRID:t=this._redrawGridGraphPoint;break;case IT.STYLE.LINE:t=this._redrawLineGraphPoint;break;default:throw new Error("Can not determine point drawing method for graph style '"+this.style+"'")}this._pointDrawingMethod=t},IT.prototype.setAxisLabelMethod=function(){this.rotateAxisLabels?(this._drawAxisLabelX=this.drawAxisLabelXRotate,this._drawAxisLabelY=this.drawAxisLabelYRotate,this._drawAxisLabelZ=this.drawAxisLabelZRotate):(this._drawAxisLabelX=this.drawAxisLabelX,this._drawAxisLabelY=this.drawAxisLabelY,this._drawAxisLabelZ=this.drawAxisLabelZ)},IT.prototype.redraw=function(){if(void 0===this.dataPoints)throw new Error("Graph data not initialized");this._resizeCanvas(),this._resizeCenter(),this._redrawSlider(),this._redrawClear(),this._redrawAxis(),this._redrawDataGraph(),this._redrawInfo(),this._redrawLegend()},IT.prototype._getContext=function(){const t=this.frame.canvas.getContext("2d");return t.lineJoin="round",t.lineCap="round",t},IT.prototype._redrawClear=function(){const t=this.frame.canvas;t.getContext("2d").clearRect(0,0,t.width,t.height)},IT.prototype._dotSize=function(){return this.frame.clientWidth*this.dotSizeRatio},IT.prototype._getLegendWidth=function(){let t;if(this.style===IT.STYLE.DOTSIZE){t=this._dotSize()*this.dotSizeMaxFraction}else t=this.style===IT.STYLE.BARSIZE?this.xBarWidth:20;return t},IT.prototype._redrawLegend=function(){if(!0!==this.showLegend)return;if(this.style===IT.STYLE.LINE||this.style===IT.STYLE.BARSIZE)return;const t=this.style===IT.STYLE.BARSIZE||this.style===IT.STYLE.DOTSIZE,e=this.style===IT.STYLE.DOTSIZE||this.style===IT.STYLE.DOTCOLOR||this.style===IT.STYLE.SURFACE||this.style===IT.STYLE.BARCOLOR,n=Math.max(.25*this.frame.clientHeight,100),r=this.margin,i=this._getLegendWidth(),o=this.frame.clientWidth-this.margin,a=o-i,s=r+n,u=this._getContext();if(u.lineWidth=1,u.font="14px arial",!1===t){const t=0,e=n;let s;for(s=t;s<e;s++){const n=1-(s-t)/(e-t),i=this._colormap(n,1);u.strokeStyle=i,u.beginPath(),u.moveTo(a,r+s),u.lineTo(o,r+s),u.stroke()}u.strokeStyle=this.axisColor,u.strokeRect(a,r,i,n)}else{let t;this.style===IT.STYLE.DOTSIZE?t=i*(this.dotSizeMinFraction/this.dotSizeMaxFraction):(this.style,IT.STYLE.BARSIZE),u.strokeStyle=this.axisColor,u.fillStyle=t_(this.dataColor),u.beginPath(),u.moveTo(a,r),u.lineTo(o,r),u.lineTo(a+t,s),u.lineTo(a,s),u.closePath(),t_(u).call(u),u.stroke()}const c=e?this.valueRange.min:this.zRange.min,l=e?this.valueRange.max:this.zRange.max,f=new MT(c,l,(l-c)/5,!0);for(f.start(!0);!f.end();){const t=s-(f.getCurrent()-c)/(l-c)*n,e=new PT(a-5,t),r=new PT(a,t);this._line(u,e,r),u.textAlign="right",u.textBaseline="middle",u.fillStyle=this.axisColor,u.fillText(f.getCurrent(),a-10,t),f.next()}u.textAlign="right",u.textBaseline="top";const h=this.legendLabel;u.fillText(h,o,s+this.margin)},IT.prototype._redrawFilter=function(){const t=this.dataGroup.dataFilter,e=ed(this.frame);if(e.innerHTML="",!t)return void(e.slider=void 0);const n=new DT(e,{visible:this.showAnimationControls});e.slider=n,e.style.padding="10px",n.setValues(Li(t)),n.setPlayInterval(this.animationInterval);const r=this;n.setOnChangeCallback(function(){const t=r.dataGroup.dataFilter,e=n.getIndex();t.selectValue(e),r.dataPoints=t._getDataPoints(),r.redraw()})},IT.prototype._redrawSlider=function(){void 0!==ed(this.frame).slider&&ed(this.frame).slider.redraw()},IT.prototype._redrawInfo=function(){const t=this.dataGroup.getInfo();if(void 0===t)return;const e=this._getContext();e.font="14px arial",e.lineStyle="gray",e.fillStyle="gray",e.textAlign="left",e.textBaseline="top";const n=this.margin,r=this.margin;e.fillText(t,n,r)},IT.prototype._line=function(t,e,n,r){void 0!==r&&(t.strokeStyle=r),t.beginPath(),t.moveTo(e.x,e.y),t.lineTo(n.x,n.y),t.stroke()},IT.prototype.drawAxisLabelX=function(t,e,n,r,i){void 0===i&&(i=0);const o=this._convert3Dto2D(e);Math.cos(2*r)>0?(t.textAlign="center",t.textBaseline="top",o.y+=i):Math.sin(2*r)<0?(t.textAlign="right",t.textBaseline="middle"):(t.textAlign="left",t.textBaseline="middle"),t.fillStyle=this.axisColor,t.fillText(n,o.x,o.y)},IT.prototype.drawAxisLabelY=function(t,e,n,r,i){void 0===i&&(i=0);const o=this._convert3Dto2D(e);Math.cos(2*r)<0?(t.textAlign="center",t.textBaseline="top",o.y+=i):Math.sin(2*r)>0?(t.textAlign="right",t.textBaseline="middle"):(t.textAlign="left",t.textBaseline="middle"),t.fillStyle=this.axisColor,t.fillText(n,o.x,o.y)},IT.prototype.drawAxisLabelZ=function(t,e,n,r){void 0===r&&(r=0);const i=this._convert3Dto2D(e);t.textAlign="right",t.textBaseline="middle",t.fillStyle=this.axisColor,t.fillText(n,i.x-r,i.y)},IT.prototype.drawAxisLabelXRotate=function(t,e,n,r,i){const o=this._convert3Dto2D(e);Math.cos(2*r)>0?(t.save(),t.translate(o.x,o.y),t.rotate(-Math.PI/2),t.textAlign="right",t.textBaseline="middle",t.fillStyle=this.axisColor,t.fillText(n,0,0),t.restore()):Math.sin(2*r)<0?(t.textAlign="right",t.textBaseline="middle",t.fillStyle=this.axisColor,t.fillText(n,o.x,o.y)):(t.textAlign="left",t.textBaseline="middle",t.fillStyle=this.axisColor,t.fillText(n,o.x,o.y))},IT.prototype.drawAxisLabelYRotate=function(t,e,n,r,i){const o=this._convert3Dto2D(e);Math.cos(2*r)<0?(t.save(),t.translate(o.x,o.y),t.rotate(-Math.PI/2),t.textAlign="right",t.textBaseline="middle",t.fillStyle=this.axisColor,t.fillText(n,0,0),t.restore()):Math.sin(2*r)>0?(t.textAlign="right",t.textBaseline="middle",t.fillStyle=this.axisColor,t.fillText(n,o.x,o.y)):(t.textAlign="left",t.textBaseline="middle",t.fillStyle=this.axisColor,t.fillText(n,o.x,o.y))},IT.prototype.drawAxisLabelZRotate=function(t,e,n,r){void 0===r&&(r=0);const i=this._convert3Dto2D(e);t.textAlign="right",t.textBaseline="middle",t.fillStyle=this.axisColor,t.fillText(n,i.x-r,i.y)},IT.prototype._line3d=function(t,e,n,r){const i=this._convert3Dto2D(e),o=this._convert3Dto2D(n);this._line(t,i,o,r)},IT.prototype._redrawAxis=function(){const t=this._getContext();let e,n,r,i,o,a,s,u,c,l,f;t.font=this.axisFontSize/this.camera.getArmLength()+"px "+this.axisFontType;const h=.025/this.scale.x,d=.025/this.scale.y,p=5/this.camera.getArmLength(),v=this.camera.getArmRotation().horizontal,y=new PT(Math.cos(v),Math.sin(v)),m=this.xRange,g=this.yRange,b=this.zRange;let w;for(t.lineWidth=1,i=void 0===this.defaultXStep,r=new MT(m.min,m.max,this.xStep,i),r.start(!0);!r.end();){const i=r.getCurrent();if(this.showGrid?(e=new tn(i,g.min,b.min),n=new tn(i,g.max,b.min),this._line3d(t,e,n,this.gridColor)):this.showXAxis&&(e=new tn(i,g.min,b.min),n=new tn(i,g.min+h,b.min),this._line3d(t,e,n,this.axisColor),e=new tn(i,g.max,b.min),n=new tn(i,g.max-h,b.min),this._line3d(t,e,n,this.axisColor)),this.showXAxis){s=y.x>0?g.min:g.max,w=new tn(i,s,b.min);const e="  "+this.xValueLabel(i)+"  ";this._drawAxisLabelX.call(this,t,w,e,v,p)}r.next()}for(t.lineWidth=1,i=void 0===this.defaultYStep,r=new MT(g.min,g.max,this.yStep,i),r.start(!0);!r.end();){const i=r.getCurrent();if(this.showGrid?(e=new tn(m.min,i,b.min),n=new tn(m.max,i,b.min),this._line3d(t,e,n,this.gridColor)):this.showYAxis&&(e=new tn(m.min,i,b.min),n=new tn(m.min+d,i,b.min),this._line3d(t,e,n,this.axisColor),e=new tn(m.max,i,b.min),n=new tn(m.max-d,i,b.min),this._line3d(t,e,n,this.axisColor)),this.showYAxis){a=y.y>0?m.min:m.max,w=new tn(a,i,b.min);const e="  "+this.yValueLabel(i)+"  ";this._drawAxisLabelY.call(this,t,w,e,v,p)}r.next()}if(this.showZAxis){for(t.lineWidth=1,i=void 0===this.defaultZStep,r=new MT(b.min,b.max,this.zStep,i),r.start(!0),a=y.x>0?m.min:m.max,s=y.y<0?g.min:g.max;!r.end();){const e=r.getCurrent(),i=new tn(a,s,e),o=this._convert3Dto2D(i);n=new PT(o.x-p,o.y),this._line(t,o,n,this.axisColor);const u=this.zValueLabel(e)+" ";this._drawAxisLabelZ.call(this,t,i,u,5),r.next()}t.lineWidth=1,e=new tn(a,s,b.min),n=new tn(a,s,b.max),this._line3d(t,e,n,this.axisColor)}if(this.showXAxis){let e,n;t.lineWidth=1,e=new tn(m.min,g.min,b.min),n=new tn(m.max,g.min,b.min),this._line3d(t,e,n,this.axisColor),e=new tn(m.min,g.max,b.min),n=new tn(m.max,g.max,b.min),this._line3d(t,e,n,this.axisColor)}this.showYAxis&&(t.lineWidth=1,e=new tn(m.min,g.min,b.min),n=new tn(m.min,g.max,b.min),this._line3d(t,e,n,this.axisColor),e=new tn(m.max,g.min,b.min),n=new tn(m.max,g.max,b.min),this._line3d(t,e,n,this.axisColor));const _=this.xLabel;_.length>0&&this.showXAxis&&(f=.1/this.scale.y,a=(m.max+3*m.min)/4,s=y.x>0?g.min-f:g.max+f,o=new tn(a,s,b.min),this.drawAxisLabelX(t,o,_,v));const x=this.yLabel;x.length>0&&this.showYAxis&&(l=.1/this.scale.x,a=y.y>0?m.min-l:m.max+l,s=(g.max+3*g.min)/4,o=new tn(a,s,b.min),this.drawAxisLabelY(t,o,x,v));const S=this.zLabel;S.length>0&&this.showZAxis&&(c=30,a=y.x>0?m.min:m.max,s=y.y<0?g.min:g.max,u=(b.max+3*b.min)/4,o=new tn(a,s,u),this.drawAxisLabelZ(t,o,S,30))},IT.prototype._getStrokeWidth=function(t){return void 0!==t?this.showPerspective?1/-t.trans.z*this.dataColor.strokeWidth:-this.eye.z/this.camera.getArmLength()*this.dataColor.strokeWidth:this.dataColor.strokeWidth},IT.prototype._redrawBar=function(t,e,n,r,i,o){let a;const s=this,u=e.point,c=this.zRange.min,l=[{point:new tn(u.x-n,u.y-r,u.z)},{point:new tn(u.x+n,u.y-r,u.z)},{point:new tn(u.x+n,u.y+r,u.z)},{point:new tn(u.x-n,u.y+r,u.z)}],f=[{point:new tn(u.x-n,u.y-r,c)},{point:new tn(u.x+n,u.y-r,c)},{point:new tn(u.x+n,u.y+r,c)},{point:new tn(u.x-n,u.y+r,c)}];Gd(l).call(l,function(t){t.screen=s._convert3Dto2D(t.point)}),Gd(f).call(f,function(t){t.screen=s._convert3Dto2D(t.point)});const h=[{corners:l,center:tn.avg(f[0].point,f[2].point)},{corners:[l[0],l[1],f[1],f[0]],center:tn.avg(f[1].point,f[0].point)},{corners:[l[1],l[2],f[2],f[1]],center:tn.avg(f[2].point,f[1].point)},{corners:[l[2],l[3],f[3],f[2]],center:tn.avg(f[3].point,f[2].point)},{corners:[l[3],l[0],f[0],f[3]],center:tn.avg(f[0].point,f[3].point)}];e.surfaces=h;for(let t=0;t<h.length;t++){a=h[t];const e=this._convertPointToTranslation(a.center);a.dist=this.showPerspective?e.length():-e.z}sb(h).call(h,function(t,e){const n=e.dist-t.dist;return n||(t.corners===l?1:e.corners===l?-1:0)}),t.lineWidth=this._getStrokeWidth(e),t.strokeStyle=o,t.fillStyle=i;for(let e=2;e<h.length;e++)a=h[e],this._polygon(t,a.corners)},IT.prototype._polygon=function(t,e,n,r){if(!(e.length<2)){void 0!==n&&(t.fillStyle=n),void 0!==r&&(t.strokeStyle=r),t.beginPath(),t.moveTo(e[0].screen.x,e[0].screen.y);for(let n=1;n<e.length;++n){const r=e[n];t.lineTo(r.screen.x,r.screen.y)}t.closePath(),t_(t).call(t),t.stroke()}},IT.prototype._drawCircle=function(t,e,n,r,i){const o=this._calcRadius(e,i);t.lineWidth=this._getStrokeWidth(e),t.strokeStyle=r,t.fillStyle=n,t.beginPath(),t.arc(e.screen.x,e.screen.y,o,0,2*Math.PI,!0),t_(t).call(t),t.stroke()},IT.prototype._getColorsRegular=function(t){const e=(t.point.value-this.valueRange.min)*this.scale.value;return{fill:this._colormap(e,1),border:this._colormap(e,.8)}},IT.prototype._getColorsColor=function(t){let e,n,r;if(t&&t.point&&t.point.data&&t.point.data.style&&(r=t.point.data.style),r&&"object"==typeof r&&t_(r)&&r.stroke)return{fill:t_(r),border:r.stroke};if("string"==typeof t.point.value)e=t.point.value,n=t.point.value;else{const r=(t.point.value-this.valueRange.min)*this.scale.value;e=this._colormap(r,1),n=this._colormap(r,.8)}return{fill:e,border:n}},IT.prototype._getColorsSize=function(){return{fill:t_(this.dataColor),border:this.dataColor.stroke}},IT.prototype._colormap=function(t){let e,n,r,i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const a=this.colormap;if(_m(a)){const i=a.length-1,o=Math.max(Math.floor(t*i),0),s=Math.min(o+1,i),u=t*i-o,c=a[o],l=a[s];e=c.r+u*(l.r-c.r),n=c.g+u*(l.g-c.g),r=c.b+u*(l.b-c.b)}else if("function"==typeof a){var s=a(t);e=s.r,n=s.g,r=s.b,i=s.a}else{var u=eS(240*(1-t)/360,1,1);e=u.r,n=u.g,r=u.b}var c,l,f,h,d;return"number"!=typeof i||ZS(i)?ag(c=ag(l="RGB(".concat(Math.round(e*o),", ")).call(l,Math.round(n*o),", ")).call(c,Math.round(r*o),")"):ag(f=ag(h=ag(d="RGBA(".concat(Math.round(e*o),", ")).call(d,Math.round(n*o),", ")).call(h,Math.round(r*o),", ")).call(f,i,")")},IT.prototype._calcRadius=function(t,e){let n;return void 0===e&&(e=this._dotSize()),n=this.showPerspective?e/-t.trans.z:e*(-this.eye.z/this.camera.getArmLength()),n<0&&(n=0),n},IT.prototype._redrawBarGraphPoint=function(t,e){const n=this.xBarWidth/2,r=this.yBarWidth/2,i=this._getColorsRegular(e);this._redrawBar(t,e,n,r,t_(i),i.border)},IT.prototype._redrawBarColorGraphPoint=function(t,e){const n=this.xBarWidth/2,r=this.yBarWidth/2,i=this._getColorsColor(e);this._redrawBar(t,e,n,r,t_(i),i.border)},IT.prototype._redrawBarSizeGraphPoint=function(t,e){const n=(e.point.value-this.valueRange.min)/this.valueRange.range(),r=this.xBarWidth/2*(.8*n+.2),i=this.yBarWidth/2*(.8*n+.2),o=this._getColorsSize();this._redrawBar(t,e,r,i,t_(o),o.border)},IT.prototype._redrawDotGraphPoint=function(t,e){const n=this._getColorsRegular(e);this._drawCircle(t,e,t_(n),n.border)},IT.prototype._redrawDotLineGraphPoint=function(t,e){const n=this._convert3Dto2D(e.bottom);t.lineWidth=1,this._line(t,n,e.screen,this.gridColor),this._redrawDotGraphPoint(t,e)},IT.prototype._redrawDotColorGraphPoint=function(t,e){const n=this._getColorsColor(e);this._drawCircle(t,e,t_(n),n.border)},IT.prototype._redrawDotSizeGraphPoint=function(t,e){const n=this._dotSize(),r=(e.point.value-this.valueRange.min)/this.valueRange.range(),i=n*this.dotSizeMinFraction,o=i+(n*this.dotSizeMaxFraction-i)*r,a=this._getColorsSize();this._drawCircle(t,e,t_(a),a.border,o)},IT.prototype._redrawSurfaceGraphPoint=function(t,e){const n=e.pointRight,r=e.pointTop,i=e.pointCross;if(void 0===e||void 0===n||void 0===r||void 0===i)return;let o,a,s,u=!0;if(this.showGrayBottom||this.showShadow){const t=tn.subtract(i.trans,e.trans),o=tn.subtract(r.trans,n.trans),a=tn.crossProduct(t,o);if(this.showPerspective){const t=tn.avg(tn.avg(e.trans,i.trans),tn.avg(n.trans,r.trans));s=-tn.dotProduct(a.normalize(),t.normalize())}else s=a.z/a.length();u=s>0}if(u||!this.showGrayBottom){const t=((e.point.value+n.point.value+r.point.value+i.point.value)/4-this.valueRange.min)*this.scale.value,a=this.showShadow?(1+s)/2:1;o=this._colormap(t,a)}else o="gray";a=this.showSurfaceGrid?this.axisColor:o,t.lineWidth=this._getStrokeWidth(e);const c=[e,n,i,r];this._polygon(t,c,o,a)},IT.prototype._drawGridLine=function(t,e,n){if(void 0===e||void 0===n)return;const r=((e.point.value+n.point.value)/2-this.valueRange.min)*this.scale.value;t.lineWidth=2*this._getStrokeWidth(e),t.strokeStyle=this._colormap(r,1),this._line(t,e.screen,n.screen)},IT.prototype._redrawGridGraphPoint=function(t,e){this._drawGridLine(t,e,e.pointRight),this._drawGridLine(t,e,e.pointTop)},IT.prototype._redrawLineGraphPoint=function(t,e){void 0!==e.pointNext&&(t.lineWidth=this._getStrokeWidth(e),t.strokeStyle=this.dataColor.stroke,this._line(t,e.screen,e.pointNext.screen))},IT.prototype._redrawDataGraph=function(){const t=this._getContext();let e;if(!(void 0===this.dataPoints||this.dataPoints.length<=0))for(this._calcTranslations(this.dataPoints),e=0;e<this.dataPoints.length;e++){const n=this.dataPoints[e];this._pointDrawingMethod.call(this,t,n)}},IT.prototype._storeMousePosition=function(t){this.startMouseX=kT(t),this.startMouseY=zT(t),this._startCameraOffset=this.camera.getOffset()},IT.prototype._onMouseDown=function(t){if(t=t||window.event,this.leftButtonDown&&this._onMouseUp(t),this.leftButtonDown=t.which?1===t.which:1===t.button,!this.leftButtonDown&&!this.touchDown)return;this._storeMousePosition(t),this.startStart=new Date(this.start),this.startEnd=new Date(this.end),this.startArmRotation=this.camera.getArmRotation(),this.frame.style.cursor="move";const e=this;this.onmousemove=function(t){e._onMouseMove(t)},this.onmouseup=function(t){e._onMouseUp(t)},document.addEventListener("mousemove",e.onmousemove),document.addEventListener("mouseup",e.onmouseup),tS(t)},IT.prototype._onMouseMove=function(t){this.moving=!0,t=t||window.event;const e=XS(kT(t))-this.startMouseX,n=XS(zT(t))-this.startMouseY;if(t&&!0===t.ctrlKey){const r=.5*this.frame.clientWidth,i=.5*this.frame.clientHeight,o=(this._startCameraOffset.x||0)-e/r*this.camera.armLength*.8,a=(this._startCameraOffset.y||0)+n/i*this.camera.armLength*.8;this.camera.setOffset(o,a),this._storeMousePosition(t)}else{let t=this.startArmRotation.horizontal+e/200,r=this.startArmRotation.vertical+n/200;const i=4,o=Math.sin(i/360*2*Math.PI);Math.abs(Math.sin(t))<o&&(t=Math.round(t/Math.PI)*Math.PI-.001),Math.abs(Math.cos(t))<o&&(t=(Math.round(t/Math.PI-.5)+.5)*Math.PI-.001),Math.abs(Math.sin(r))<o&&(r=Math.round(r/Math.PI)*Math.PI),Math.abs(Math.cos(r))<o&&(r=(Math.round(r/Math.PI-.5)+.5)*Math.PI),this.camera.setArmRotation(t,r)}this.redraw();const r=this.getCameraPosition();this.emit("cameraPositionChange",r),tS(t)},IT.prototype._onMouseUp=function(t){this.frame.style.cursor="auto",this.leftButtonDown=!1,document.removeEventListener("mousemove",this.onmousemove),document.removeEventListener("mouseup",this.onmouseup),tS(t)},IT.prototype._onClick=function(t){if(this.onclick_callback||this.hasListeners("click")){if(this.moving)this.moving=!1;else{const e=this.frame.getBoundingClientRect(),n=kT(t)-e.left,r=zT(t)-e.top,i=this._dataPointFromXY(n,r);i&&(this.onclick_callback&&this.onclick_callback(i.point.data),this.emit("click",i.point.data))}tS(t)}},IT.prototype._onTooltip=function(t){const e=this.tooltipDelay,n=this.frame.getBoundingClientRect(),r=kT(t)-n.left,i=zT(t)-n.top;if(this.showTooltip)if(this.tooltipTimeout&&clearTimeout(this.tooltipTimeout),this.leftButtonDown)this._hideTooltip();else if(this.tooltip&&this.tooltip.dataPoint){const t=this._dataPointFromXY(r,i);t!==this.tooltip.dataPoint&&(t?this._showTooltip(t):this._hideTooltip())}else{const t=this;this.tooltipTimeout=Zi(function(){t.tooltipTimeout=null;const e=t._dataPointFromXY(r,i);e&&t._showTooltip(e)},e)}},IT.prototype._onTouchStart=function(t){this.touchDown=!0;const e=this;this.ontouchmove=function(t){e._onTouchMove(t)},this.ontouchend=function(t){e._onTouchEnd(t)},document.addEventListener("touchmove",e.ontouchmove),document.addEventListener("touchend",e.ontouchend),this._onMouseDown(t)},IT.prototype._onTouchMove=function(t){this._onMouseMove(t)},IT.prototype._onTouchEnd=function(t){this.touchDown=!1,document.removeEventListener("touchmove",this.ontouchmove),document.removeEventListener("touchend",this.ontouchend),this._onMouseUp(t)},IT.prototype._onWheel=function(t){if(t||(t=window.event),this.zoomable&&(!this.ctrlToZoom||t.ctrlKey)){let e=0;if(t.wheelDelta?e=t.wheelDelta/120:t.detail&&(e=-t.detail/3),e){const t=this.camera.getArmLength()*(1-e/10);this.camera.setArmLength(t),this.redraw(),this._hideTooltip()}const n=this.getCameraPosition();this.emit("cameraPositionChange",n),tS(t)}},IT.prototype._insideTriangle=function(t,e){const n=e[0],r=e[1],i=e[2];function o(t){return t>0?1:t<0?-1:0}const a=o((r.x-n.x)*(t.y-n.y)-(r.y-n.y)*(t.x-n.x)),s=o((i.x-r.x)*(t.y-r.y)-(i.y-r.y)*(t.x-r.x)),u=o((n.x-i.x)*(t.y-i.y)-(n.y-i.y)*(t.x-i.x));return!(0!=a&&0!=s&&a!=s||0!=s&&0!=u&&s!=u||0!=a&&0!=u&&a!=u)},IT.prototype._dataPointFromXY=function(t,e){const n=new PT(t,e);let r,i=null,o=null,a=null;if(this.style===IT.STYLE.BAR||this.style===IT.STYLE.BARCOLOR||this.style===IT.STYLE.BARSIZE)for(r=this.dataPoints.length-1;r>=0;r--){i=this.dataPoints[r];const t=i.surfaces;if(t)for(let e=t.length-1;e>=0;e--){const r=t[e].corners,o=[r[0].screen,r[1].screen,r[2].screen],a=[r[2].screen,r[3].screen,r[0].screen];if(this._insideTriangle(n,o)||this._insideTriangle(n,a))return i}}else for(r=0;r<this.dataPoints.length;r++){i=this.dataPoints[r];const n=i.screen;if(n){const r=Math.abs(t-n.x),s=Math.abs(e-n.y),u=Math.sqrt(r*r+s*s);(null===a||u<a)&&u<100&&(a=u,o=i)}}return o},IT.prototype.hasBars=function(t){return t==IT.STYLE.BAR||t==IT.STYLE.BARCOLOR||t==IT.STYLE.BARSIZE},IT.prototype._showTooltip=function(t){let e,n,r;this.tooltip?(e=this.tooltip.dom.content,n=this.tooltip.dom.line,r=this.tooltip.dom.dot):(e=document.createElement("div"),qm(e.style,{},this.tooltipStyle.content),e.style.position="absolute",n=document.createElement("div"),qm(n.style,{},this.tooltipStyle.line),n.style.position="absolute",r=document.createElement("div"),qm(r.style,{},this.tooltipStyle.dot),r.style.position="absolute",this.tooltip={dataPoint:null,dom:{content:e,line:n,dot:r}}),this._hideTooltip(),this.tooltip.dataPoint=t,"function"==typeof this.showTooltip?e.innerHTML=this.showTooltip(t.point):e.innerHTML="<table><tr><td>"+this.xLabel+":</td><td>"+t.point.x+"</td></tr><tr><td>"+this.yLabel+":</td><td>"+t.point.y+"</td></tr><tr><td>"+this.zLabel+":</td><td>"+t.point.z+"</td></tr></table>",e.style.left="0",e.style.top="0",this.frame.appendChild(e),this.frame.appendChild(n),this.frame.appendChild(r);const i=e.offsetWidth,o=e.offsetHeight,a=n.offsetHeight,s=r.offsetWidth,u=r.offsetHeight;let c=t.screen.x-i/2;c=Math.min(Math.max(c,10),this.frame.clientWidth-10-i),n.style.left=t.screen.x+"px",n.style.top=t.screen.y-a+"px",e.style.left=c+"px",e.style.top=t.screen.y-a-o+"px",r.style.left=t.screen.x-s/2+"px",r.style.top=t.screen.y-u/2+"px"},IT.prototype._hideTooltip=function(){if(this.tooltip){this.tooltip.dataPoint=null;for(const t in this.tooltip.dom)if(Object.prototype.hasOwnProperty.call(this.tooltip.dom,t)){const e=this.tooltip.dom[t];e&&e.parentNode&&e.parentNode.removeChild(e)}}},IT.prototype.setCameraPosition=function(t){_T(t,this),this.redraw()},IT.prototype.setSize=function(t,e){this._setSize(t,e),this.redraw()};export{Wx as DELETE,bS as DataSet,mS as DataStream,wS as DataView,IT as Graph3d,en as Graph3dCamera,SS as Graph3dFilter,PT as Graph3dPoint2d,tn as Graph3dPoint3d,DT as Graph3dSlider,MT as Graph3dStepNumber,gS as Queue,hS as createNewDataPipeFrom,_S as isDataSetLike,xS as isDataViewLike};
//# sourceMappingURL=vis-graph3d.min.mjs.map