UNPKG

vis-graph3d

Version:

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

33 lines 136 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.1 * @date 2025-07-13T08:06:02.859Z * * @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,e,n,i,r,o,s,a,u="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function c(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function l(){return e?t:(e=1,t=function(t){try{return!!t()}catch(t){return!0}})}function h(){return i?n:(i=1,n=!l()(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))}function f(){if(o)return r;o=1;var t=h(),e=Function.prototype,n=e.call,i=t&&e.bind.bind(n,n);return r=t?i:function(t){return function(){return n.apply(t,arguments)}},r}function d(){return a?s:(a=1,s=f()({}.isPrototypeOf))}var p,m,y,v,g,_,b,w,x,T,S={};function E(){if(m)return p;m=1;var t=function(t){return t&&t.Math===Math&&t};return p=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof u&&u)||t("object"==typeof p&&p)||function(){return this}()||Function("return this")()}function L(){if(v)return y;v=1;var t=h(),e=Function.prototype,n=e.apply,i=e.call;return y="object"==typeof Reflect&&Reflect.apply||(t?i.bind(n):function(){return i.apply(n,arguments)}),y}function C(){if(_)return g;_=1;var t=f(),e=t({}.toString),n=t("".slice);return g=function(t){return n(e(t),8,-1)}}function A(){if(w)return b;w=1;var t=C(),e=f();return b=function(n){if("Function"===t(n))return e(n)}}function P(){if(T)return x;T=1;var t="object"==typeof document&&document.all;return x=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(t){return"function"==typeof t}}var O,D,M,R,I={};function k(){return D?O:(D=1,O=!l()(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))}function z(){if(R)return M;R=1;var t=h(),e=Function.prototype.call;return M=t?e.bind(e):function(){return e.apply(e,arguments)},M}var j,B,F,N,W,Y,G,X,U,V,Z,q,H,Q,$,K,J,tt,et,nt,it,rt,ot,st,at,ut,ct,lt,ht,ft,dt,pt,mt,yt,vt,gt={};function _t(){if(j)return gt;j=1;var t={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,n=e&&!t.call({1:2},1);return gt.f=n?function(t){var n=e(this,t);return!!n&&n.enumerable}:t,gt}function bt(){return F?B:(F=1,B=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}})}function wt(){if(W)return N;W=1;var t=f(),e=l(),n=C(),i=Object,r=t("".split);return N=e(function(){return!i("z").propertyIsEnumerable(0)})?function(t){return"String"===n(t)?r(t,""):i(t)}:i}function xt(){return G?Y:(G=1,Y=function(t){return null==t})}function Tt(){if(U)return X;U=1;var t=xt(),e=TypeError;return X=function(n){if(t(n))throw new e("Can't call method on "+n);return n}}function St(){if(Z)return V;Z=1;var t=wt(),e=Tt();return V=function(n){return t(e(n))}}function Et(){if(H)return q;H=1;var t=P();return q=function(e){return"object"==typeof e?null!==e:t(e)}}function Lt(){return $?Q:($=1,Q={})}function Ct(){if(J)return K;J=1;var t=Lt(),e=E(),n=P(),i=function(t){return n(t)?t:void 0};return K=function(n,r){return arguments.length<2?i(t[n])||i(e[n]):t[n]&&t[n][r]||e[n]&&e[n][r]},K}function At(){if(et)return tt;et=1;var t=E().navigator,e=t&&t.userAgent;return tt=e?String(e):""}function Pt(){if(it)return nt;it=1;var t,e,n=E(),i=At(),r=n.process,o=n.Deno,s=r&&r.versions||o&&o.version,a=s&&s.v8;return a&&(e=(t=a.split("."))[0]>0&&t[0]<4?1:+(t[0]+t[1])),!e&&i&&(!(t=i.match(/Edge\/(\d+)/))||t[1]>=74)&&(t=i.match(/Chrome\/(\d+)/))&&(e=+t[1]),nt=e}function Ot(){if(ot)return rt;ot=1;var t=Pt(),e=l(),n=E().String;return rt=!!Object.getOwnPropertySymbols&&!e(function(){var e=Symbol("symbol detection");return!n(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&t&&t<41})}function Dt(){return at?st:(at=1,st=Ot()&&!Symbol.sham&&"symbol"==typeof Symbol.iterator)}function Mt(){if(ct)return ut;ct=1;var t=Ct(),e=P(),n=d(),i=Object;return ut=Dt()?function(t){return"symbol"==typeof t}:function(r){var o=t("Symbol");return e(o)&&n(o.prototype,i(r))}}function Rt(){if(ht)return lt;ht=1;var t=String;return lt=function(e){try{return t(e)}catch(t){return"Object"}}}function It(){if(dt)return ft;dt=1;var t=P(),e=Rt(),n=TypeError;return ft=function(i){if(t(i))return i;throw new n(e(i)+" is not a function")}}function kt(){if(mt)return pt;mt=1;var t=It(),e=xt();return pt=function(n,i){var r=n[i];return e(r)?void 0:t(r)}}function zt(){if(vt)return yt;vt=1;var t=z(),e=P(),n=Et(),i=TypeError;return yt=function(r,o){var s,a;if("string"===o&&e(s=r.toString)&&!n(a=t(s,r)))return a;if(e(s=r.valueOf)&&!n(a=t(s,r)))return a;if("string"!==o&&e(s=r.toString)&&!n(a=t(s,r)))return a;throw new i("Can't convert object to primitive value")}}var jt,Bt,Ft,Nt,Wt,Yt,Gt,Xt,Ut,Vt,Zt,qt,Ht,Qt,$t,Kt,Jt,te,ee,ne,ie,re,oe,se,ae,ue,ce,le,he={exports:{}};function fe(){return Bt?jt:(Bt=1,jt=!0)}function de(){if(Nt)return Ft;Nt=1;var t=E(),e=Object.defineProperty;return Ft=function(n,i){try{e(t,n,{value:i,configurable:!0,writable:!0})}catch(e){t[n]=i}return i}}function pe(){if(Wt)return he.exports;Wt=1;var t=fe(),e=E(),n=de(),i="__core-js_shared__",r=he.exports=e[i]||n(i,{});return(r.versions||(r.versions=[])).push({version:"3.44.0",mode:t?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.44.0/LICENSE",source:"https://github.com/zloirock/core-js"}),he.exports}function me(){if(Gt)return Yt;Gt=1;var t=pe();return Yt=function(e,n){return t[e]||(t[e]=n||{})}}function ye(){if(Ut)return Xt;Ut=1;var t=Tt(),e=Object;return Xt=function(n){return e(t(n))}}function ve(){if(Zt)return Vt;Zt=1;var t=f(),e=ye(),n=t({}.hasOwnProperty);return Vt=Object.hasOwn||function(t,i){return n(e(t),i)}}function ge(){if(Ht)return qt;Ht=1;var t=f(),e=0,n=Math.random(),i=t(1.1.toString);return qt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+i(++e+n,36)}}function _e(){if($t)return Qt;$t=1;var t=E(),e=me(),n=ve(),i=ge(),r=Ot(),o=Dt(),s=t.Symbol,a=e("wks"),u=o?s.for||s:s&&s.withoutSetter||i;return Qt=function(t){return n(a,t)||(a[t]=r&&n(s,t)?s[t]:u("Symbol."+t)),a[t]}}function be(){if(Jt)return Kt;Jt=1;var t=z(),e=Et(),n=Mt(),i=kt(),r=zt(),o=TypeError,s=_e()("toPrimitive");return Kt=function(a,u){if(!e(a)||n(a))return a;var c,l=i(a,s);if(l){if(void 0===u&&(u="default"),c=t(l,a,u),!e(c)||n(c))return c;throw new o("Can't convert object to primitive value")}return void 0===u&&(u="number"),r(a,u)}}function we(){if(ee)return te;ee=1;var t=be(),e=Mt();return te=function(n){var i=t(n,"string");return e(i)?i:i+""}}function xe(){if(ie)return ne;ie=1;var t=E(),e=Et(),n=t.document,i=e(n)&&e(n.createElement);return ne=function(t){return i?n.createElement(t):{}}}function Te(){if(oe)return re;oe=1;var t=k(),e=l(),n=xe();return re=!t&&!e(function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a})}function Se(){if(se)return I;se=1;var t=k(),e=z(),n=_t(),i=bt(),r=St(),o=we(),s=ve(),a=Te(),u=Object.getOwnPropertyDescriptor;return I.f=t?u:function(t,c){if(t=r(t),c=o(c),a)try{return u(t,c)}catch(t){}if(s(t,c))return i(!e(n.f,t,c),t[c])},I}function Ee(){if(ue)return ae;ue=1;var t=l(),e=P(),n=/#|\.prototype\./,i=function(n,i){var u=o[r(n)];return u===a||u!==s&&(e(i)?t(i):!!i)},r=i.normalize=function(t){return String(t).replace(n,".").toLowerCase()},o=i.data={},s=i.NATIVE="N",a=i.POLYFILL="P";return ae=i}function Le(){if(le)return ce;le=1;var t=A(),e=It(),n=h(),i=t(t.bind);return ce=function(t,r){return e(t),void 0===r?t:n?i(t,r):function(){return t.apply(r,arguments)}},ce}var Ce,Ae,Pe,Oe,De,Me,Re,Ie,ke,ze,je,Be,Fe,Ne,We,Ye,Ge,Xe,Ue,Ve,Ze,qe,He,Qe,$e,Ke,Je,tn,en,nn,rn,on,sn,an,un,cn,ln,hn,fn,dn,pn,mn,yn,vn,gn,_n,bn,wn,xn={};function Tn(){return Ae?Ce:(Ae=1,Ce=k()&&l()(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}))}function Sn(){if(Oe)return Pe;Oe=1;var t=Et(),e=String,n=TypeError;return Pe=function(i){if(t(i))return i;throw new n(e(i)+" is not an object")}}function En(){if(De)return xn;De=1;var t=k(),e=Te(),n=Tn(),i=Sn(),r=we(),o=TypeError,s=Object.defineProperty,a=Object.getOwnPropertyDescriptor,u="enumerable",c="configurable",l="writable";return xn.f=t?n?function(t,e,n){if(i(t),e=r(e),i(n),"function"==typeof t&&"prototype"===e&&"value"in n&&l in n&&!n[l]){var o=a(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 s(t,e,n)}:s:function(t,n,a){if(i(t),n=r(n),i(a),e)try{return s(t,n,a)}catch(t){}if("get"in a||"set"in a)throw new o("Accessors not supported");return"value"in a&&(t[n]=a.value),t},xn}function Ln(){if(Re)return Me;Re=1;var t=k(),e=En(),n=bt();return Me=t?function(t,i,r){return e.f(t,i,n(1,r))}:function(t,e,n){return t[e]=n,t},Me}function Cn(){if(ke)return Ie;ke=1;var t=E(),e=L(),n=A(),i=P(),r=Se().f,o=Ee(),s=Lt(),a=Le(),u=Ln(),c=ve(),l=function(t){var n=function(i,r,o){if(this instanceof n){switch(arguments.length){case 0:return new t;case 1:return new t(i);case 2:return new t(i,r)}return new t(i,r,o)}return e(t,this,arguments)};return n.prototype=t.prototype,n};return Ie=function(e,h){var f,d,p,m,y,v,g,_,b,w=e.target,x=e.global,T=e.stat,S=e.proto,E=x?t:T?t[w]:t[w]&&t[w].prototype,L=x?s:s[w]||u(s,w,{})[w],C=L.prototype;for(m in h)d=!(f=o(x?m:w+(T?".":"#")+m,e.forced))&&E&&c(E,m),v=L[m],d&&(g=e.dontCallGetSet?(b=r(E,m))&&b.value:E[m]),y=d&&g?g:h[m],(f||S||typeof v!=typeof y)&&(_=e.bind&&d?a(y,t):e.wrap&&d?l(y):S&&i(y)?n(y):y,(e.sham||y&&y.sham||v&&v.sham)&&u(_,"sham",!0),u(L,m,_),S&&(c(s,p=w+"Prototype")||u(s,p,{}),u(s[p],m,y),e.real&&C&&(f||!C[m])&&u(C,m,y)))}}function An(){if(je)return ze;je=1;var t=Math.ceil,e=Math.floor;return ze=Math.trunc||function(n){var i=+n;return(i>0?e:t)(i)}}function Pn(){if(Fe)return Be;Fe=1;var t=An();return Be=function(e){var n=+e;return n!=n||0===n?0:t(n)},Be}function On(){if(We)return Ne;We=1;var t=Pn(),e=Math.min;return Ne=function(n){var i=t(n);return i>0?e(i,9007199254740991):0}}function Dn(){if(Ge)return Ye;Ge=1;var t=On();return Ye=function(e){return t(e.length)}}function Mn(){if(Ue)return Xe;Ue=1;var t=Rt(),e=TypeError;return Xe=function(n,i){if(!delete n[i])throw new e("Cannot delete property "+t(i)+" of "+t(n))}}function Rn(){if(Ze)return Ve;Ze=1;var t={};return t[_e()("toStringTag")]="z",Ve="[object z]"===String(t)}function In(){if(He)return qe;He=1;var t=Rn(),e=P(),n=C(),i=_e()("toStringTag"),r=Object,o="Arguments"===n(function(){return arguments}());return qe=t?n:function(t){var s,a,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(a=function(t,e){try{return t[e]}catch(t){}}(s=r(t),i))?a:o?n(s):"Object"===(u=n(s))&&e(s.callee)?"Arguments":u}}function kn(){if($e)return Qe;$e=1;var t=In(),e=String;return Qe=function(n){if("Symbol"===t(n))throw new TypeError("Cannot convert a Symbol value to a string");return e(n)}}function zn(){return Je?Ke:(Je=1,Ke=f()([].slice))}function jn(){if(en)return tn;en=1;var t=zn(),e=Math.floor,n=function(i,r){var o=i.length;if(o<8)for(var s,a,u=1;u<o;){for(a=u,s=i[u];a&&r(i[a-1],s)>0;)i[a]=i[--a];a!==u++&&(i[a]=s)}else for(var c=e(o/2),l=n(t(i,0,c),r),h=n(t(i,c),r),f=l.length,d=h.length,p=0,m=0;p<f||m<d;)i[p+m]=p<f&&m<d?r(l[p],h[m])<=0?l[p++]:h[m++]:p<f?l[p++]:h[m++];return i};return tn=n}function Bn(){if(rn)return nn;rn=1;var t=l();return nn=function(e,n){var i=[][e];return!!i&&t(function(){i.call(null,n||function(){return 1},1)})}}function Fn(){if(sn)return on;sn=1;var t=At().match(/firefox\/(\d+)/i);return on=!!t&&+t[1]}function Nn(){return un?an:(un=1,an=/MSIE|Trident/.test(At()))}function Wn(){if(ln)return cn;ln=1;var t=At().match(/AppleWebKit\/(\d+)\./);return cn=!!t&&+t[1]}function Yn(){if(hn)return S;hn=1;var t=Cn(),e=f(),n=It(),i=ye(),r=Dn(),o=Mn(),s=kn(),a=l(),u=jn(),c=Bn(),h=Fn(),d=Nn(),p=Pt(),m=Wn(),y=[],v=e(y.sort),g=e(y.push),_=a(function(){y.sort(void 0)}),b=a(function(){y.sort(null)}),w=c("sort"),x=!a(function(){if(p)return p<70;if(!(h&&h>3)){if(d)return!0;if(m)return m<603;var t,e,n,i,r="";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(i=0;i<47;i++)y.push({k:e+i,v:n})}for(y.sort(function(t,e){return e.v-t.v}),i=0;i<y.length;i++)e=y[i].k.charAt(0),r.charAt(r.length-1)!==e&&(r+=e);return"DGBEFHACIJK"!==r}});return t({target:"Array",proto:!0,forced:_||!b||!w||!x},{sort:function(t){void 0!==t&&n(t);var e=i(this);if(x)return void 0===t?v(e):v(e,t);var a,c,l=[],h=r(e);for(c=0;c<h;c++)c in e&&g(l,e[c]);for(u(l,function(t){return function(e,n){return void 0===n?-1:void 0===e?1:void 0!==t?+t(e,n)||0:s(e)>s(n)?1:-1}}(t)),a=r(l),c=0;c<a;)e[c]=l[c++];for(;c<h;)o(e,c++);return e}}),S}function Gn(){if(dn)return fn;dn=1;var t=E(),e=Lt();return fn=function(n,i){var r=e[n+"Prototype"],o=r&&r[i];if(o)return o;var s=t[n],a=s&&s.prototype;return a&&a[i]}}function Xn(){return mn?pn:(mn=1,Yn(),pn=Gn()("Array","sort"))}function Un(){if(vn)return yn;vn=1;var t=d(),e=Xn(),n=Array.prototype;return yn=function(i){var r=i.sort;return i===n||t(n,i)&&r===n.sort?e:r}}function Vn(){return _n?gn:(_n=1,gn=Un())}var Zn,qn,Hn,Qn,$n,Kn,Jn,ti,ei,ni,ii,ri,oi,si=c(wn?bn:(wn=1,bn=Vn())),ai={};function ui(){if(qn)return Zn;qn=1;var t=Pn(),e=Math.max,n=Math.min;return Zn=function(i,r){var o=t(i);return o<0?e(o+r,0):n(o,r)}}function ci(){if(Qn)return Hn;Qn=1;var t=St(),e=ui(),n=Dn(),i=function(i){return function(r,o,s){var a=t(r),u=n(a);if(0===u)return!i&&-1;var c,l=e(s,u);if(i&&o!=o){for(;u>l;)if((c=a[l++])!=c)return!0}else for(;u>l;l++)if((i||l in a)&&a[l]===o)return i||l||0;return!i&&-1}};return Hn={includes:i(!0),indexOf:i(!1)}}function li(){return Jn?Kn:(Jn=1,function(){if($n)return ai;$n=1;var t=Cn(),e=A(),n=ci().indexOf,i=Bn(),r=e([].indexOf),o=!!r&&1/r([1],1,-0)<0;t({target:"Array",proto:!0,forced:o||!i("indexOf")},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return o?r(this,t,e)||0:n(this,t,e)}})}(),Kn=Gn()("Array","indexOf"))}function hi(){if(ei)return ti;ei=1;var t=d(),e=li(),n=Array.prototype;return ti=function(i){var r=i.indexOf;return i===n||t(n,i)&&r===n.indexOf?e:r}}function fi(){return ii?ni:(ii=1,ni=hi())}var di,pi,mi,yi,vi,gi,_i,bi,wi,xi,Ti,Si,Ei,Li,Ci,Ai,Pi,Oi,Di,Mi,Ri,Ii,ki,zi=c(oi?ri:(oi=1,ri=fi())),ji={};function Bi(){if(pi)return di;pi=1;var t=C();return di=Array.isArray||function(e){return"Array"===t(e)}}function Fi(){if(yi)return mi;yi=1;var t=f(),e=P(),n=pe(),i=t(Function.toString);return e(n.inspectSource)||(n.inspectSource=function(t){return i(t)}),mi=n.inspectSource}function Ni(){if(gi)return vi;gi=1;var t=f(),e=l(),n=P(),i=In(),r=Ct(),o=Fi(),s=function(){},a=r("Reflect","construct"),u=/^\s*(?:class|function)\b/,c=t(u.exec),h=!u.test(s),d=function(t){if(!n(t))return!1;try{return a(s,[],t),!0}catch(t){return!1}},p=function(t){if(!n(t))return!1;switch(i(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!c(u,o(t))}catch(t){return!0}};return p.sham=!0,vi=!a||e(function(){var t;return d(d.call)||!d(Object)||!d(function(){t=!0})||t})?p:d}function Wi(){if(bi)return _i;bi=1;var t=Bi(),e=Ni(),n=Et(),i=_e()("species"),r=Array;return _i=function(o){var s;return t(o)&&(s=o.constructor,(e(s)&&(s===r||t(s.prototype))||n(s)&&null===(s=s[i]))&&(s=void 0)),void 0===s?r:s}}function Yi(){if(xi)return wi;xi=1;var t=Wi();return wi=function(e,n){return new(t(e))(0===n?0:n)}}function Gi(){if(Si)return Ti;Si=1;var t=Le(),e=f(),n=wt(),i=ye(),r=Dn(),o=Yi(),s=e([].push),a=function(e){var a=1===e,u=2===e,c=3===e,l=4===e,h=6===e,f=7===e,d=5===e||h;return function(p,m,y,v){for(var g,_,b=i(p),w=n(b),x=r(w),T=t(m,y),S=0,E=v||o,L=a?E(p,x):u||f?E(p,0):void 0;x>S;S++)if((d||S in w)&&(_=T(g=w[S],S,b),e))if(a)L[S]=_;else if(_)switch(e){case 3:return!0;case 5:return g;case 6:return S;case 2:s(L,g)}else switch(e){case 4:return!1;case 7:s(L,g)}return h?-1:c||l?l:L}};return Ti={forEach:a(0),map:a(1),filter:a(2),some:a(3),every:a(4),find:a(5),findIndex:a(6),filterReject:a(7)}}function Xi(){if(Li)return Ei;Li=1;var t=l(),e=_e(),n=Pt(),i=e("species");return Ei=function(e){return n>=51||!t(function(){var t=[];return(t.constructor={})[i]=function(){return{foo:1}},1!==t[e](Boolean).foo})},Ei}function Ui(){return Pi?Ai:(Pi=1,function(){if(Ci)return ji;Ci=1;var t=Cn(),e=Gi().filter;t({target:"Array",proto:!0,forced:!Xi()("filter")},{filter:function(t){return e(this,t,arguments.length>1?arguments[1]:void 0)}})}(),Ai=Gn()("Array","filter"))}function Vi(){if(Di)return Oi;Di=1;var t=d(),e=Ui(),n=Array.prototype;return Oi=function(i){var r=i.filter;return i===n||t(n,i)&&r===n.filter?e:r}}function Zi(){return Ri?Mi:(Ri=1,Mi=Vi())}var qi,Hi,Qi,$i,Ki,Ji,tr,er,nr,ir,rr,or,sr,ar=c(ki?Ii:(ki=1,Ii=Zi())),ur={};function cr(){return Hi?qi:(Hi=1,qi="\t\n\v\f\r                 \u2028\u2029\ufeff")}function lr(){if($i)return Qi;$i=1;var t=f(),e=Tt(),n=kn(),i=cr(),r=t("".replace),o=RegExp("^["+i+"]+"),s=RegExp("(^|[^"+i+"])["+i+"]+$"),a=function(t){return function(i){var a=n(e(i));return 1&t&&(a=r(a,o,"")),2&t&&(a=r(a,s,"$1")),a}};return Qi={start:a(1),end:a(2),trim:a(3)}}function hr(){if(Ji)return Ki;Ji=1;var t=E(),e=l(),n=f(),i=kn(),r=lr().trim,o=cr(),s=n("".charAt),a=t.parseFloat,u=t.Symbol,c=u&&u.iterator,h=1/a(o+"-0")!=-1/0||c&&!e(function(){a(Object(c))});return Ki=h?function(t){var e=r(i(t)),n=a(e);return 0===n&&"-"===s(e,0)?-0:n}:a,Ki}function fr(){return nr?er:(nr=1,function(){if(tr)return ur;tr=1;var t=Cn(),e=hr();t({global:!0,forced:parseFloat!==e},{parseFloat:e})}(),er=Lt().parseFloat)}function dr(){return rr?ir:(rr=1,ir=fr())}var pr,mr,yr,vr,gr,_r,br,wr,xr,Tr,Sr,Er,Lr,Cr=c(sr?or:(sr=1,or=dr())),Ar={};function Pr(){if(mr)return pr;mr=1;var t=ye(),e=ui(),n=Dn();return pr=function(i){for(var r=t(this),o=n(r),s=arguments.length,a=e(s>1?arguments[1]:void 0,o),u=s>2?arguments[2]:void 0,c=void 0===u?o:e(u,o);c>a;)r[a++]=i;return r},pr}function Or(){return vr?yr:(vr=1,yr=function(){})}function Dr(){return br?_r:(br=1,function(){if(gr)return Ar;gr=1;var t=Cn(),e=Pr(),n=Or();t({target:"Array",proto:!0},{fill:e}),n("fill")}(),_r=Gn()("Array","fill"))}function Mr(){if(xr)return wr;xr=1;var t=d(),e=Dr(),n=Array.prototype;return wr=function(i){var r=i.fill;return i===n||t(n,i)&&r===n.fill?e:r}}function Rr(){return Sr?Tr:(Sr=1,Tr=Mr())}var Ir,kr,zr,jr,Br,Fr,Nr,Wr,Yr,Gr,Xr,Ur,Vr=c(Lr?Er:(Lr=1,Er=Rr())),Zr={};function qr(){return kr?Ir:(kr=1,Ir={})}function Hr(){if(jr)return zr;jr=1;var t=E(),e=P(),n=t.WeakMap;return zr=e(n)&&/native code/.test(String(n))}function Qr(){if(Fr)return Br;Fr=1;var t=me(),e=ge(),n=t("keys");return Br=function(t){return n[t]||(n[t]=e(t))}}function $r(){return Wr?Nr:(Wr=1,Nr={})}function Kr(){if(Gr)return Yr;Gr=1;var t,e,n,i=Hr(),r=E(),o=Et(),s=Ln(),a=ve(),u=pe(),c=Qr(),l=$r(),h="Object already initialized",f=r.TypeError,d=r.WeakMap;if(i||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 f(h);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 m=c("state");l[m]=!0,t=function(t,e){if(a(t,m))throw new f(h);return e.facade=t,s(t,m,e),e},e=function(t){return a(t,m)?t[m]:{}},n=function(t){return a(t,m)}}return Yr={set:t,get:e,has:n,enforce:function(i){return n(i)?e(i):t(i,{})},getterFor:function(t){return function(n){var i;if(!o(n)||(i=e(n)).type!==t)throw new f("Incompatible receiver, "+t+" required");return i}}}}function Jr(){if(Ur)return Xr;Ur=1;var t=k(),e=ve(),n=Function.prototype,i=t&&Object.getOwnPropertyDescriptor,r=e(n,"name"),o=r&&"something"===function(){}.name,s=r&&(!t||t&&i(n,"name").configurable);return Xr={EXISTS:r,PROPER:o,CONFIGURABLE:s}}var to,eo,no,io,ro,oo,so,ao,uo,co,lo,ho,fo,po,mo,yo,vo,go,_o,bo,wo,xo,To,So,Eo,Lo,Co,Ao,Po,Oo,Do,Mo,Ro,Io,ko,zo,jo,Bo,Fo,No,Wo,Yo,Go,Xo,Uo,Vo,Zo,qo,Ho,Qo,$o={};function Ko(){if(eo)return to;eo=1;var t=f(),e=ve(),n=St(),i=ci().indexOf,r=$r(),o=t([].push);return to=function(t,s){var a,u=n(t),c=0,l=[];for(a in u)!e(r,a)&&e(u,a)&&o(l,a);for(;s.length>c;)e(u,a=s[c++])&&(~i(l,a)||o(l,a));return l},to}function Jo(){return io?no:(io=1,no=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}function ts(){if(oo)return ro;oo=1;var t=Ko(),e=Jo();return ro=Object.keys||function(n){return t(n,e)}}function es(){if(so)return $o;so=1;var t=k(),e=Tn(),n=En(),i=Sn(),r=St(),o=ts();return $o.f=t&&!e?Object.defineProperties:function(t,e){i(t);for(var s,a=r(e),u=o(e),c=u.length,l=0;c>l;)n.f(t,s=u[l++],a[s]);return t},$o}function ns(){return uo?ao:(uo=1,ao=Ct()("document","documentElement"))}function is(){if(lo)return co;lo=1;var t,e=Sn(),n=es(),i=Jo(),r=$r(),o=ns(),s=xe(),a="prototype",u="script",c=Qr()("IE_PROTO"),l=function(){},h=function(t){return"<"+u+">"+t+"</"+u+">"},f=function(t){t.write(h("")),t.close();var e=t.parentWindow.Object;return t=null,e},d=function(){try{t=new ActiveXObject("htmlfile")}catch(t){}var e,n,r;d="undefined"!=typeof document?document.domain&&t?f(t):(n=s("iframe"),r="java"+u+":",n.style.display="none",o.appendChild(n),n.src=String(r),(e=n.contentWindow.document).open(),e.write(h("document.F=Object")),e.close(),e.F):f(t);for(var c=i.length;c--;)delete d[a][i[c]];return d()};return r[c]=!0,co=Object.create||function(t,i){var r;return null!==t?(l[a]=e(t),r=new l,l[a]=null,r[c]=t):r=d(),void 0===i?r:n.f(r,i)}}function rs(){return fo?ho:(fo=1,ho=!l()(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))}function os(){if(mo)return po;mo=1;var t=ve(),e=P(),n=ye(),i=Qr(),r=rs(),o=i("IE_PROTO"),s=Object,a=s.prototype;return po=r?s.getPrototypeOf:function(i){var r=n(i);if(t(r,o))return r[o];var u=r.constructor;return e(u)&&r instanceof u?u.prototype:r instanceof s?a:null},po}function ss(){if(vo)return yo;vo=1;var t=Ln();return yo=function(e,n,i,r){return r&&r.enumerable?e[n]=i:t(e,n,i),e}}function as(){if(_o)return go;_o=1;var t,e,n,i=l(),r=P(),o=Et(),s=is(),a=os(),u=ss(),c=_e(),h=fe(),f=c("iterator"),d=!1;return[].keys&&("next"in(n=[].keys())?(e=a(a(n)))!==Object.prototype&&(t=e):d=!0),!o(t)||i(function(){var e={};return t[f].call(e)!==e})?t={}:h&&(t=s(t)),r(t[f])||u(t,f,function(){return this}),go={IteratorPrototype:t,BUGGY_SAFARI_ITERATORS:d}}function us(){if(wo)return bo;wo=1;var t=Rn(),e=In();return bo=t?{}.toString:function(){return"[object "+e(this)+"]"}}function cs(){if(To)return xo;To=1;var t=Rn(),e=En().f,n=Ln(),i=ve(),r=us(),o=_e()("toStringTag");return xo=function(s,a,u,c){var l=u?s:s&&s.prototype;l&&(i(l,o)||e(l,o,{configurable:!0,value:a}),c&&!t&&n(l,"toString",r))}}function ls(){if(Eo)return So;Eo=1;var t=as().IteratorPrototype,e=is(),n=bt(),i=cs(),r=qr(),o=function(){return this};return So=function(s,a,u,c){var l=a+" Iterator";return s.prototype=e(t,{next:n(+!c,u)}),i(s,l,!1,!0),r[l]=o,s}}function hs(){if(Co)return Lo;Co=1;var t=f(),e=It();return Lo=function(n,i,r){try{return t(e(Object.getOwnPropertyDescriptor(n,i)[r]))}catch(t){}},Lo}function fs(){if(Po)return Ao;Po=1;var t=Et();return Ao=function(e){return t(e)||null===e}}function ds(){if(Do)return Oo;Do=1;var t=fs(),e=String,n=TypeError;return Oo=function(i){if(t(i))return i;throw new n("Can't set "+e(i)+" as a prototype")}}function ps(){if(Ro)return Mo;Ro=1;var t=hs(),e=Et(),n=Tt(),i=ds();return Mo=Object.setPrototypeOf||("__proto__"in{}?function(){var r,o=!1,s={};try{(r=t(Object.prototype,"__proto__","set"))(s,[]),o=s instanceof Array}catch(t){}return function(t,s){return n(t),i(s),e(t)?(o?r(t,s):t.__proto__=s,t):t}}():void 0)}function ms(){if(ko)return Io;ko=1;var t=Cn(),e=z(),n=fe(),i=Jr(),r=P(),o=ls(),s=os(),a=ps(),u=cs(),c=Ln(),l=ss(),h=_e(),f=qr(),d=as(),p=i.PROPER,m=i.CONFIGURABLE,y=d.IteratorPrototype,v=d.BUGGY_SAFARI_ITERATORS,g=h("iterator"),_="keys",b="values",w="entries",x=function(){return this};return Io=function(i,h,d,T,S,E,L){o(d,h,T);var C,A,P,O=function(t){if(t===S&&k)return k;if(!v&&t&&t in R)return R[t];switch(t){case _:case b:case w:return function(){return new d(this,t)}}return function(){return new d(this)}},D=h+" Iterator",M=!1,R=i.prototype,I=R[g]||R["@@iterator"]||S&&R[S],k=!v&&I||O(S),z="Array"===h&&R.entries||I;if(z&&(C=s(z.call(new i)))!==Object.prototype&&C.next&&(n||s(C)===y||(a?a(C,y):r(C[g])||l(C,g,x)),u(C,D,!0,!0),n&&(f[D]=x)),p&&S===b&&I&&I.name!==b&&(!n&&m?c(R,"name",b):(M=!0,k=function(){return e(I,this)})),S)if(A={values:O(b),keys:E?k:O(_),entries:O(w)},L)for(P in A)(v||M||!(P in R))&&l(R,P,A[P]);else t({target:h,proto:!0,forced:v||M},A);return n&&!L||R[g]===k||l(R,g,k,{name:S}),f[h]=k,A}}function ys(){return jo?zo:(jo=1,zo=function(t,e){return{value:t,done:e}})}function vs(){if(Fo)return Bo;Fo=1;var t=St(),e=Or(),n=qr(),i=Kr(),r=En().f,o=ms(),s=ys(),a=fe(),u=k(),c="Array Iterator",l=i.set,h=i.getterFor(c);Bo=o(Array,"Array",function(e,n){l(this,{type:c,target:t(e),index:0,kind:n})},function(){var t=h(this),e=t.target,n=t.index++;if(!e||n>=e.length)return t.target=null,s(void 0,!0);switch(t.kind){case"keys":return s(n,!1);case"values":return s(e[n],!1)}return s([n,e[n]],!1)},"values");var f=n.Arguments=n.Array;if(e("keys"),e("values"),e("entries"),!a&&u&&"values"!==f.name)try{r(f,"name",{value:"values"})}catch(t){}return Bo}function gs(){return Wo?No:(Wo=1,No={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 _s(){return Xo?Go:(Xo=1,vs(),Go=Gn()("Array","values"))}function bs(){return Vo?Uo:(Vo=1,Uo=_s())}function ws(){if(qo)return Zo;qo=1,function(){if(Yo)return Zr;Yo=1,vs();var t=gs(),e=E(),n=cs(),i=qr();for(var r in t)n(e[r],r),i[r]=i.Array}();var t=In(),e=ve(),n=d(),i=bs(),r=Array.prototype,o={DOMTokenList:!0,NodeList:!0};return Zo=function(s){var a=s.values;return s===r||n(r,s)&&a===r.values||e(o,t(s))?i:a}}var xs,Ts,Ss,Es,Ls,Cs,As,Ps,Os,Ds,Ms,Rs=c(Qo?Ho:(Qo=1,Ho=ws())),Is={};function ks(){if(Ts)return xs;Ts=1;var t=Gi().forEach,e=Bn()("forEach");return xs=e?[].forEach:function(e){return t(this,e,arguments.length>1?arguments[1]:void 0)},xs}function zs(){return Ls?Es:(Ls=1,function(){if(Ss)return Is;Ss=1;var t=Cn(),e=ks();t({target:"Array",proto:!0,forced:[].forEach!==e},{forEach:e})}(),Es=Gn()("Array","forEach"))}function js(){return As?Cs:(As=1,Cs=zs())}function Bs(){if(Os)return Ps;Os=1;var t=In(),e=ve(),n=d(),i=js(),r=Array.prototype,o={DOMTokenList:!0,NodeList:!0};return Ps=function(s){var a=s.forEach;return s===r||n(r,s)&&a===r.forEach||e(o,t(s))?i:a}}var Fs,Ns,Ws,Ys,Gs,Xs,Us,Vs=c(Ms?Ds:(Ms=1,Ds=Bs()));function Zs(){return Ws?Ns:(Ws=1,Fs||(Fs=1,Cn()({target:"Array",stat:!0},{isArray:Bi()})),Ns=Lt().Array.isArray)}function qs(){return Gs?Ys:(Gs=1,Ys=Zs())}var Hs,Qs,$s,Ks,Js,ta,ea,na=c(Us?Xs:(Us=1,Xs=qs()));function ia(){return $s?Qs:($s=1,Hs||(Hs=1,Cn()({target:"Number",stat:!0},{isNaN:function(t){return t!=t}})),Qs=Lt().Number.isNaN)}function ra(){return Js?Ks:(Js=1,Ks=ia())}var oa,sa,aa,ua,ca,la,ha,fa,da,pa,ma,ya,va,ga=c(ea?ta:(ea=1,ta=ra())),_a={};function ba(){if(sa)return oa;sa=1;var t=TypeError;return oa=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}}function wa(){if(ua)return aa;ua=1;var t=k(),e=En(),n=bt();return aa=function(i,r,o){t?e.f(i,r,n(0,o)):i[r]=o},aa}function xa(){return ha?la:(ha=1,function(){if(ca)return _a;ca=1;var t=Cn(),e=l(),n=Bi(),i=Et(),r=ye(),o=Dn(),s=ba(),a=wa(),u=Yi(),c=Xi(),h=_e(),f=Pt(),d=h("isConcatSpreadable"),p=f>=51||!e(function(){var t=[];return t[d]=!1,t.concat()[0]!==t}),m=function(t){if(!i(t))return!1;var e=t[d];return void 0!==e?!!e:n(t)};t({target:"Array",proto:!0,arity:1,forced:!p||!c("concat")},{concat:function(t){var e,n,i,c,l,h=r(this),f=u(h,0),d=0;for(e=-1,i=arguments.length;e<i;e++)if(m(l=-1===e?h:arguments[e]))for(c=o(l),s(d+c),n=0;n<c;n++,d++)n in l&&a(f,d,l[n]);else s(d+1),a(f,d++,l);return f.length=d,f}})}(),la=Gn()("Array","concat"))}function Ta(){if(da)return fa;da=1;var t=d(),e=xa(),n=Array.prototype;return fa=function(i){var r=i.concat;return i===n||t(n,i)&&r===n.concat?e:r}}function Sa(){return ma?pa:(ma=1,pa=Ta())}var Ea,La,Ca,Aa,Pa,Oa,Da,Ma=c(va?ya:(va=1,ya=Sa())),Ra={},Ia={};function ka(){if(La)return Ea;La=1;var t=E(),e=At(),n=C(),i=function(t){return e.slice(0,t.length)===t};return Ea=i("Bun/")?"BUN":i("Cloudflare-Workers")?"CLOUDFLARE":i("Deno/")?"DENO":i("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 za(){if(Aa)return Ca;Aa=1;var t=TypeError;return Ca=function(e,n){if(e<n)throw new t("Not enough arguments");return e}}function ja(){if(Oa)return Pa;Oa=1;var t,e=E(),n=L(),i=P(),r=ka(),o=At(),s=zn(),a=za(),u=e.Function,c=/MSIE .\./.test(o)||"BUN"===r&&((t=e.Bun.version.split(".")).length<3||"0"===t[0]&&(t[1]<3||"3"===t[1]&&"0"===t[2]));return Pa=function(t,e){var r=e?2:1;return c?function(o,c){var l=a(arguments.length,1)>r,h=i(o)?o:u(o),f=l?s(arguments,r):[],d=l?function(){n(h,this,f)}:h;return e?t(d,c):t(d)}:t},Pa}var Ba,Fa,Na,Wa,Ya,Ga,Xa={};function Ua(){return Fa||(Fa=1,function(){if(Da)return Ia;Da=1;var t=Cn(),e=E(),n=ja()(e.setInterval,!0);t({global:!0,bind:!0,forced:e.setInterval!==n},{setInterval:n})}(),function(){if(Ba)return Xa;Ba=1;var t=Cn(),e=E(),n=ja()(e.setTimeout,!0);t({global:!0,bind:!0,forced:e.setTimeout!==n},{setTimeout:n})}()),Ra}function Va(){return Wa?Na:(Wa=1,Ua(),Na=Lt().setTimeout)}var Za,qa,Ha,Qa,$a,Ka,Ja,tu,eu,nu,iu=c(Ga?Ya:(Ga=1,Ya=Va())),ru={},ou={};function su(){return Za||(Za=1,ou.f=Object.getOwnPropertySymbols),ou}function au(){if(Ha)return qa;Ha=1;var t=k(),e=f(),n=z(),i=l(),r=ts(),o=su(),s=_t(),a=ye(),u=wt(),c=Object.assign,h=Object.defineProperty,d=e([].concat);return qa=!c||i(function(){if(t&&1!==c({b:1},c(h({},"a",{enumerable:!0,get:function(){h(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},n={},i=Symbol("assign detection"),o="abcdefghijklmnopqrst";return e[i]=7,o.split("").forEach(function(t){n[t]=t}),7!==c({},e)[i]||r(c({},n)).join("")!==o})?function(e,i){for(var c=a(e),l=arguments.length,h=1,f=o.f,p=s.f;l>h;)for(var m,y=u(arguments[h++]),v=f?d(r(y),f(y)):r(y),g=v.length,_=0;g>_;)m=v[_++],t&&!n(p,y,m)||(c[m]=y[m]);return c}:c,qa}function uu(){return Ka?$a:(Ka=1,function(){if(Qa)return ru;Qa=1;var t=Cn(),e=au();t({target:"Object",stat:!0,arity:2,forced:Object.assign!==e},{assign:e})}(),$a=Lt().Object.assign)}function cu(){return tu?Ja:(tu=1,Ja=uu())}var lu,hu=c(nu?eu:(nu=1,eu=cu())),fu={exports:{}};function du(){return lu||(lu=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=(...i)=>{this.off(t,n),e.apply(this,i)};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,i]of n.entries())if(i===e||i.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}(fu)),fu.exports}var pu=c(du()); /*! 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 mu(){return mu=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},mu.apply(this,arguments)}function yu(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function vu(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var gu,_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 i=arguments[n];if(null!=i)for(var r in i)i.hasOwnProperty(r)&&(e[r]=i[r])}return e}:Object.assign,bu=["","webkit","Moz","MS","ms","o"],wu="undefined"==typeof document?{style:{}}:document.createElement("div"),xu=Math.round,Tu=Math.abs,Su=Date.now;function Eu(t,e){for(var n,i,r=e[0].toUpperCase()+e.slice(1),o=0;o<bu.length;){if((i=(n=bu[o])?n+r:e)in t)return i;o++}}gu="undefined"==typeof window?{}:window;var Lu=Eu(wu.style,"touchAction"),Cu=void 0!==Lu;var Au="compute",Pu="auto",Ou="manipulation",Du="none",Mu="pan-x",Ru="pan-y",Iu=function(){if(!Cu)return!1;var t={},e=gu.CSS&&gu.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(n){return t[n]=!e||gu.CSS.supports("touch-action",n)}),t}(),ku="ontouchstart"in gu,zu=void 0!==Eu(gu,"PointerEvent"),ju=ku&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),Bu="touch",Fu="mouse",Nu=16,Wu=24,Yu=["x","y"],Gu=["clientX","clientY"];function Xu(t,e,n){var i;if(t)if(t.forEach)t.forEach(e,n);else if(void 0!==t.length)for(i=0;i<t.length;)e.call(n,t[i],i,t),i++;else for(i in t)t.hasOwnProperty(i)&&e.call(n,t[i],i,t)}function Uu(t,e){return"function"==typeof t?t.apply(e&&e[0]||void 0,e):t}function Vu(t,e){return t.indexOf(e)>-1}var Zu=function(){function t(t,e){this.manager=t,this.set(e)}var e=t.prototype;return e.set=function(t){t===Au&&(t=this.compute()),Cu&&this.manager.element.style&&Iu[t]&&(this.manager.element.style[Lu]=t),this.actions=t.toLowerCase().trim()},e.update=function(){this.set(this.manager.options.touchAction)},e.compute=function(){var t=[];return Xu(this.manager.recognizers,function(e){Uu(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))}),function(t){if(Vu(t,Du))return Du;var e=Vu(t,Mu),n=Vu(t,Ru);return e&&n?Du:e||n?e?Mu:Ru:Vu(t,Ou)?Ou:Pu}(t.join(" "))},e.preventDefaults=function(t){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var i=this.actions,r=Vu(i,Du)&&!Iu[Du],o=Vu(i,Ru)&&!Iu[Ru],s=Vu(i,Mu)&&!Iu[Mu];if(r){var a=1===t.pointers.length,u=t.distance<2,c=t.deltaTime<250;if(a&&u&&c)return}if(!s||!o)return r||o&&6&n||s&&n&Wu?this.preventSrc(e):void 0}},e.preventSrc=function(t){this.manager.session.prevented=!0,t.preventDefault()},t}();function qu(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1}function Hu(t){var e=t.length;if(1===e)return{x:xu(t[0].clientX),y:xu(t[0].clientY)};for(var n=0,i=0,r=0;r<e;)n+=t[r].clientX,i+=t[r].clientY,r++;return{x:xu(n/e),y:xu(i/e)}}function Qu(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:xu(t.pointers[n].clientX),clientY:xu(t.pointers[n].clientY)},n++;return{timeStamp:Su(),pointers:e,center:Hu(e),deltaX:t.deltaX,deltaY:t.deltaY}}function $u(t,e,n){n||(n=Yu);var i=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return Math.sqrt(i*i+r*r)}function Ku(t,e,n){n||(n=Yu);var i=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return 180*Math.atan2(r,i)/Math.PI}function Ju(t,e){return t===e?1:Tu(t)>=Tu(e)?t<0?2:4:e<0?8:Nu}function tc(t,e,n){return{x:e/t||0,y:n/t||0}}function ec(t,e){var n=t.session,i=e.pointers,r=i.length;n.firstInput||(n.firstInput=Qu(e)),r>1&&!n.firstMultiple?n.firstMultiple=Qu(e):1===r&&(n.firstMultiple=!1);var o=n.firstInput,s=n.firstMultiple,a=s?s.center:o.center,u=e.center=Hu(i);e.timeStamp=Su(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=Ku(a,u),e.distance=$u(a,u),function(t,e){var n=e.center,i=t.offsetDelta||{},r=t.prevDelta||{},o=t.prevInput||{};1!==e.eventType&&4!==o.eventType||(r=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},i=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=r.x+(n.x-i.x),e.deltaY=r.y+(n.y-i.y)}(n,e),e.offsetDirection=Ju(e.deltaX,e.deltaY);var c,l,h=tc(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=h.x,e.overallVelocityY=h.y,e.overallVelocity=Tu(h.x)>Tu(h.y)?h.x:h.y,e.scale=s?(c=s.pointers,$u((l=i)[0],l[1],Gu)/$u(c[0],c[1],Gu)):1,e.rotation=s?function(t,e){return Ku(e[1],e[0],Gu)+Ku(t[1],t[0],Gu)}(s.pointers,i):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,i,r,o,s=t.lastInterval||e,a=e.timeStamp-s.timeStamp;if(8!==e.eventType&&(a>25||void 0===s.velocity)){var u=e.deltaX-s.deltaX,c=e.deltaY-s.deltaY,l=tc(a,u,c);i=l.x,r=l.y,n=Tu(l.x)>Tu(l.y)?l.x:l.y,o=Ju(u,c),t.lastInterval=e}else n=s.velocity,i=s.velocityX,r=s.velocityY,o=s.direction;e.velocity=n,e.velocityX=i,e.velocityY=r,e.direction=o}(n,e);var f,d=t.element,p=e.srcEvent;qu(f=p.composedPath?p.composedPath()[0]:p.path?p.path[0]:p.target,d)&&(d=f),e.target=d}function nc(t,e,n){var i=n.pointers.length,r=n.changedPointers.length,o=1&e&&i-r===0,s=12&e&&i-r===0;n.isFirst=!!o,n.isFinal=!!s,o&&(t.session={}),n.eventType=e,ec(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function ic(t){return t.trim().split(/\s+/g)}function rc(t,e,n){Xu(ic(e),function(e){t.addEventListener(e,n,!1)})}function oc(t,e,n){Xu(ic(e),function(e){t.removeEventListener(e,n,!1)})}function sc(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||window}var ac=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){Uu(t.options.enable,[t])&&n.handler(e)},this.init()}var e=t.prototype;return e.handler=function(){},e.init=function(){this.evEl&&rc(this.element,this.evEl,this.domHandler),this.evTarget&&rc(this.target,this.evTarget,this.domHandler),this.evWin&&rc(sc(this.element),this.evWin,this.domHandler)},e.destroy=function(){this.evEl&&oc(this.element,this.evEl,this.domHandler),this.evTarget&&oc(this.target,this.evTarget,this.domHandler),this.evWin&&oc(sc(this.element),this.evWin,this.domHandler)},t}();function uc(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var i=0;i<t.length;){if(n&&t[i][n]==e||!n&&t[i]===e)return i;i++}return-1}var cc={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},lc={2:Bu,3:"pen",4:Fu,5:"kinect"},hc="pointerdown",fc="pointermove pointerup pointercancel";gu.MSPointerEvent&&!gu.PointerEvent&&(hc="MSPointerDown",fc="MSPointerMove MSPointerUp MSPointerCancel");var dc=function(t){function e(){var n,i=e.prototype;return i.evEl=hc,i.evWin=fc,(n=t.apply(this,arguments)||this).store=n.manager.session.pointerEvents=[],n}return yu(e,t),e.prototype.handler=function(t){var e=this.store,n=!1,i=t.type.toLowerCase().replace("ms",""),r=cc[i],o=lc[t.pointerType]||t.pointerType,s=o===Bu,a=uc(e,t.pointerId,"pointerId");1&r&&(0===t.button||s)?a<0&&(e.push(t),a=e.length-1):12&r&&(n=!0),a<0||(e[a]=t,this.callback(this.manager,r,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),n&&e.splice(a,1))},e}(ac);function pc(t){return Array.prototype.slice.call(t,0)}function mc(t,e,n){for(var i=[],r=[],o=0;o<t.length;){var s=e?t[o][e]:t[o];uc(r,s)<0&&i.push(t[o]),r[o]=s,o++}return n&&(i=e?i.sort(function(t,n){return t[e]>n[e]}):i.sort()),i}var yc={touchstart:1,touchmove:2,touchend:4,touchcancel:8},vc=function(t){function e(){var n;return e.prototype.evTarget="touchstart touchmove touchend touchcancel",(n=t.apply(this,arguments)||this).targetIds={},n}return yu(e,t),e.prototype.handler=function(t){var e=yc[t.type],n=gc.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:Bu,srcEvent:t})},e}(ac);function gc(t,e){var n,i,r=pc(t.touches),o=this.targetIds;if(3&e&&1===r.length)return o[r[0].identifier]=!0,[r,r];var s=pc(t.changedTouches),a=[],u=this.target;if(i=r.filter(function(t){return qu(t.target,u)}),1===e)for(n=0;n<i.length;)o[i[n].identifier]=!0,n++;for(n=0;n<s.length;)o[s[n].identifier]&&a.push(s[n]),12&e&&delete o[s[n].identifier],n++;return a.length?[mc(i.concat(a),"identifier",!0),a]:void 0}var _c={mousedown:1,mousemove:2,mouseup:4},bc=function(t){function e(){var n,i=e.prototype;return i.evEl="mousedown",i.evWin="mousemove mouseup",(n=t.apply(this,arguments)||this).pressed=!1,n}return yu(e,t),e.prototype.handler=function(t){var e=_c[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:Fu,srcEvent:t}))},e}(ac);function wc(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var n={x:e.clientX,y:e.clientY},i=this.lastTouches;this.lastTouches.push(n);setTimeout(function(){var t=i.indexOf(n);t>-1&&i.splice(t,1)},2500)}}function xc(t,e){1&t?(this.primaryTouch=e.changedPointers[0].identifier,wc.call(this,e)):12&t&&wc.call(this,e)}function Tc(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,i=0;i<this.lastTouches.length;i++){var r=this.lastTouches[i],o=Math.abs(e-r.x),s=Math.abs(n-r.y);if(o<=25&&s<=25)return!0}return!1}var Sc=function(){return function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).handler=function(t,e,n){var r=n.pointerType===Bu,o=n.pointerType===Fu;if(!(o&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(r)xc.call(vu(vu(i)),e,n);else if(o&&Tc.call(vu(vu(i)),n))return;i.callback(t,e,n)}},i.touch=new vc(i.manager,i.handler),i.mouse=new bc(i.manager,i.handler),i.primaryTouch=null,i.lastTouches=[],i}return yu(e,t),e.prototype.destroy=function(){this.touch.destroy(),this.mouse.destroy()},e}(ac)}();function Ec(t,e,n){return!!Array.isArray(t)&&(Xu(t,n[e],n),!0)}var Lc=32,Cc=1;function Ac(t,e){var n=e.manager;return n?n.get(t):t}function Pc(t){return 16&t?"cancel":8&t?"end":4&t?"move":2&t?"start":""}var Oc=function(){function t(t){void 0===t&&(t={}),this.options=mu({enable:!0},t),this.id=Cc++,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(Ec(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=Ac(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},e.dropRecognizeWith=function(t){return Ec(t,"dropRecognizeWith",this)||(t=Ac(t,this),delete this.simultaneous[t.id]),this},e.requireFailure=function(t){if(Ec(t,"requireFailure",this))return this;var e=this.requireFail;return-1===uc(e,t=Ac(t,this))&&(e.push(t),t.requireFailure(this)),this},e.dropRequireFailure=function(t){if(Ec(t,"dropRequireFailure",this))return this;t=Ac(t,this);var e=uc(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 i(n){e.manager.emit(n,t)}n<8&&i(e.options.event+Pc(n)),i(e.options.event),t.additionalEvent&&i(t.additionalEvent),n>=8&&i(e.options.event+Pc(n))},e.tryEmit=function(t){if(this.canEmit())return this.emit(t);this.state=Lc},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(!Uu(this.options.enable,[this,e]))return this.reset(),void(this.state=Lc);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}(),Dc=function(t){function e(e){var n;return void 0===e&&(e={}),(n=t.call(this,mu({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}yu(e,t);var n=e.prototype;return n.getTouchAction=function(){return[Ou]},n.process=function(t){var e=this,n=this.options,i=t.pointers.length===n.pointers,r=t.distance<n.threshold,o=t.deltaTime<n.time;if(this.reset(),1&t.eventType&&0===this.count)return this.failTimeout();if(r&&o&&i){if(4!==t.eventType)return this.failTimeout();var s=!this.pTime||t.timeStamp-this.pTime<n.interval,a=!this.pCenter||$u(this.pCenter,t.center)<n.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,a&&s?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 Lc},n.failTimeout=function(){var t=this;return this._timer=setTimeout(function(){t.state=Lc},this.options.interval),Lc},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}(Oc),Mc=function(t){function e(e){return void 0===e&&(e={}),t.call(this,mu({pointers:1},e))||this}yu(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,i=6&e,r=this.attrTest(t);return i&&(8&n||!r)?16|e:i||r?4&n?8|e:2&e?4|e:2:Lc},e}(Oc);function Rc(t){return t===Nu?"down":8===t?"up":2===t?"left":4===t?"right":""}var Ic=function(t){function e(e){var n;return void 0===e&&(e={}),(n=t.call(this,mu({event:"pan",threshold:10,pointers:1,direction:30},e))||this).pX=null,n.pY=null,n}yu(e,t);var n=e.prototype;return n.getTouchAction=function(){var t=this.options.direction,e=[];return 6&t&&e.push(Ru),t&Wu&&e.push(Mu),e},n.directionTest=function(t){var e=this.options,n=!0,i=t.distance,r=t.direction,o=t.deltaX,s=t.deltaY;return r&e.direction||(6&e.direction?(r=0===o?1:o<0?2:4,n=o!==this.pX,i=Math.abs(t.deltaX)):(r=0===s?1:s<0?8:Nu,n=s!==this.pY,i=Math.abs(t.deltaY))),t.direction=r,n&&i>e.threshold&&r&e.direction},n.attrTest=function(t){return Mc.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=Rc(e.direction);n&&(e.additionalEvent=this.options.event+n),t.prototype.emit.call(this,e)},e}(Mc),kc=function(t){function e(e){return void 0===e&&(e={}),t.call(this,mu({event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},e))||this}yu(e,t);var n=e.prototype;return n.getTouchAction=function(){return Ic.prototype.getTouchAction.call(this)},n.attrTest=function(e){var n,i=this.options.direction;return 30&i?n=e.overallVelocity:6&i?n=e.overallVelocityX:i&Wu&&(n=e.overallVelocityY),t.prototype.attrTest.call(this,e)&&i&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers===this.options.pointers&&Tu(n)>this.options.velocity&&4&e.eventType},n.emit=function(t){var e=Rc(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)},e}(Mc),zc=function(t){function e(e){return void 0===e&&(e={}),t.call(this,mu({event:"pinch",threshold:0,pointers:2},e))||this}yu(e,t);var n=e.prototype;return n.getTouchAction=function(){return[Du]},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}(Mc),jc=function(t){function e(e){return void 0===e&&(e={}),t.call(this,mu({event:"rotate",threshold:0,pointers:2},e))||this}yu(e,t);var n=e.prototype;return n.getTouchAction=function(){return[Du]},n.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)},e}(Mc),Bc=function(t){function e(e){var n;return void 0===e&&(e={}),(n=t.call(this,mu({event:"press",pointers:1,time:251,threshold:9},e))||this)._timer=null,n._input=null,n}yu(e,t);var n=e.prototype;return n.getTouchAction=function(){return[Pu]},n.process=function(t){var e=this,n=this.options,i=t.pointers.length===n.pointers,r=t.distance<n.threshold,o=t.deltaTime>n.time;if(this._input=t,!r||!i||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 Lc},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=Su(),this.manager.emit(this.options.event,this._input)))},e}(Oc),Fc={domEvents:!1,touchAction:Au,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},Nc=[[jc,{enable:!1}],[zc,{enable:!1},["rotate"]],[kc,{direction:6}],[Ic,{direction:6},["swipe"]],[Dc],[Dc,{event:"doubletap",taps:2},["tap"]],[Bc]];function Wc(t,e){var n,i=t.element;i.style&&(Xu(t.options.cssProps,function(r,o){n=Eu(i.style,o),e?(t.oldCssProps[n]=i.style[n],i.style[n]=r):i.style[n]=t.oldCssProps[n]||""}),e||(t.oldCssProps={}))}var Yc=function(){function t(t,e){var n,i=this;this.options=_u({},Fc,e||{}),this