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