UNPKG

vis-graph3d

Version:

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

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