UNPKG

vis-timeline

Version:

Create a fully customizable, interactive timeline with items and ranges.

33 lines 413 kB
/** * vis-timeline and vis-graph2d * https://visjs.github.io/vis-timeline/ * * Create a fully customizable, interactive timeline with items and ranges. * * @version 7.4.9 * @date 2021-06-05T17:20:46.148Z * * @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 t from"moment";import{DataSet as e,createNewDataPipeFrom as i,isDataViewLike as n,DataView as o}from"vis-data/peer/esm/vis-data.js";var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function s(t){var e={exports:{}};return t(e,e.exports),e.exports}var a,l=function(t){return t&&t.Math==Math&&t},h=l("object"==typeof globalThis&&globalThis)||l("object"==typeof window&&window)||l("object"==typeof self&&self)||l("object"==typeof r&&r)||function(){return this}()||Function("return this")(),u=function(t){try{return!!t()}catch(t){return!0}},c=!u((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),d={}.propertyIsEnumerable,p=Object.getOwnPropertyDescriptor,m={f:p&&!d.call({1:2},1)?function(t){var e=p(this,t);return!!e&&e.enumerable}:d},f=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},v={}.toString,g=function(t){return v.call(t).slice(8,-1)},y="".split,b=u((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==g(t)?y.call(t,""):Object(t)}:Object,w=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},k=function(t){return b(w(t))},_=function(t){return"object"==typeof t?null!==t:"function"==typeof t},x=function(t,e){if(!_(t))return t;var i,n;if(e&&"function"==typeof(i=t.toString)&&!_(n=i.call(t)))return n;if("function"==typeof(i=t.valueOf)&&!_(n=i.call(t)))return n;if(!e&&"function"==typeof(i=t.toString)&&!_(n=i.call(t)))return n;throw TypeError("Can't convert object to primitive value")},C=function(t){return Object(w(t))},S={}.hasOwnProperty,D=Object.hasOwn||function(t,e){return S.call(C(t),e)},T=h.document,E=_(T)&&_(T.createElement),O=function(t){return E?T.createElement(t):{}},A=!c&&!u((function(){return 7!=Object.defineProperty(O("div"),"a",{get:function(){return 7}}).a})),I=Object.getOwnPropertyDescriptor,P={f:c?I:function(t,e){if(t=k(t),e=x(e,!0),A)try{return I(t,e)}catch(t){}if(D(t,e))return f(!m.f.call(t,e),t[e])}},M=/#|\.prototype\./,N=function(t,e){var i=R[F(t)];return i==j||i!=L&&("function"==typeof e?u(e):!!e)},F=N.normalize=function(t){return String(t).replace(M,".").toLowerCase()},R=N.data={},L=N.NATIVE="N",j=N.POLYFILL="P",B=N,z={},H=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},G=function(t,e,i){if(H(t),void 0===e)return t;switch(i){case 0:return function(){return t.call(e)};case 1:return function(i){return t.call(e,i)};case 2:return function(i,n){return t.call(e,i,n)};case 3:return function(i,n,o){return t.call(e,i,n,o)}}return function(){return t.apply(e,arguments)}},W=function(t){if(!_(t))throw TypeError(String(t)+" is not an object");return t},Y=Object.defineProperty,V={f:c?Y:function(t,e,i){if(W(t),e=x(e,!0),W(i),A)try{return Y(t,e,i)}catch(t){}if("get"in i||"set"in i)throw TypeError("Accessors not supported");return"value"in i&&(t[e]=i.value),t}},U=c?function(t,e,i){return V.f(t,e,f(1,i))}:function(t,e,i){return t[e]=i,t},X=P.f,q=function(t){var e=function(e,i,n){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,i)}return new t(e,i,n)}return t.apply(this,arguments)};return e.prototype=t.prototype,e},K=function(t,e){var i,n,o,r,s,a,l,u,c=t.target,d=t.global,p=t.stat,m=t.proto,f=d?h:p?h[c]:(h[c]||{}).prototype,v=d?z:z[c]||(z[c]={}),g=v.prototype;for(o in e)i=!B(d?o:c+(p?".":"#")+o,t.forced)&&f&&D(f,o),s=v[o],i&&(a=t.noTargetGet?(u=X(f,o))&&u.value:f[o]),r=i&&a?a:e[o],i&&typeof s==typeof r||(l=t.bind&&i?G(r,h):t.wrap&&i?q(r):m&&"function"==typeof r?G(Function.call,r):r,(t.sham||r&&r.sham||s&&s.sham)&&U(l,"sham",!0),v[o]=l,m&&(D(z,n=c+"Prototype")||U(z,n,{}),z[n][o]=r,t.real&&g&&!g[o]&&U(g,o,r)))},$=function(t){return"function"==typeof t?t:void 0},Q=function(t,e){return arguments.length<2?$(z[t])||$(h[t]):z[t]&&z[t][e]||h[t]&&h[t][e]},Z=Math.ceil,J=Math.floor,tt=function(t){return isNaN(t=+t)?0:(t>0?J:Z)(t)},et=Math.min,it=function(t){return t>0?et(tt(t),9007199254740991):0},nt=Math.max,ot=Math.min,rt=function(t,e){var i=tt(t);return i<0?nt(i+e,0):ot(i,e)},st=function(t){return function(e,i,n){var o,r=k(e),s=it(r.length),a=rt(n,s);if(t&&i!=i){for(;s>a;)if((o=r[a++])!=o)return!0}else for(;s>a;a++)if((t||a in r)&&r[a]===i)return t||a||0;return!t&&-1}},at={includes:st(!0),indexOf:st(!1)},lt={},ht=at.indexOf,ut=function(t,e){var i,n=k(t),o=0,r=[];for(i in n)!D(lt,i)&&D(n,i)&&r.push(i);for(;e.length>o;)D(n,i=e[o++])&&(~ht(r,i)||r.push(i));return r},ct=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],dt=Object.keys||function(t){return ut(t,ct)},pt=c?Object.defineProperties:function(t,e){W(t);for(var i,n=dt(e),o=n.length,r=0;o>r;)V.f(t,i=n[r++],e[i]);return t},mt=Q("document","documentElement"),ft=h["__core-js_shared__"]||function(t,e){try{U(h,t,e)}catch(i){h[t]=e}return e}("__core-js_shared__",{}),vt=s((function(t){(t.exports=function(t,e){return ft[t]||(ft[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.14.0",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),gt=0,yt=Math.random(),bt=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++gt+yt).toString(36)},wt=vt("keys"),kt=function(t){return wt[t]||(wt[t]=bt(t))},_t=kt("IE_PROTO"),xt=function(){},Ct=function(t){return"<script>"+t+"<\/script>"},St=function(){try{a=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;St=a?function(t){t.write(Ct("")),t.close();var e=t.parentWindow.Object;return t=null,e}(a):((e=O("iframe")).style.display="none",mt.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Ct("document.F=Object")),t.close(),t.F);for(var i=ct.length;i--;)delete St.prototype[ct[i]];return St()};lt[_t]=!0;var Dt=Object.create||function(t,e){var i;return null!==t?(xt.prototype=W(t),i=new xt,xt.prototype=null,i[_t]=t):i=St(),void 0===e?i:pt(i,e)},Tt=[].slice,Et={},Ot=function(t,e,i){if(!(e in Et)){for(var n=[],o=0;o<e;o++)n[o]="a["+o+"]";Et[e]=Function("C,a","return new C("+n.join(",")+")")}return Et[e](t,i)},At=Function.bind||function(t){var e=H(this),i=Tt.call(arguments,1),n=function(){var o=i.concat(Tt.call(arguments));return this instanceof n?Ot(e,o.length,o):e.apply(t,o)};return _(e.prototype)&&(n.prototype=e.prototype),n},It=Q("Reflect","construct"),Pt=u((function(){function t(){}return!(It((function(){}),[],t)instanceof t)})),Mt=!u((function(){It((function(){}))})),Nt=Pt||Mt;K({target:"Reflect",stat:!0,forced:Nt,sham:Nt},{construct:function(t,e){H(t),W(e);var i=arguments.length<3?t:H(arguments[2]);if(Mt&&!Pt)return It(t,e,i);if(t==i){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return n.push.apply(n,e),new(At.apply(t,n))}var o=i.prototype,r=Dt(_(o)?o:Object.prototype),s=Function.apply.call(t,r,e);return _(s)?s:r}});var Ft=z.Reflect.construct;function Rt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}K({target:"Object",stat:!0,forced:!c,sham:!c},{defineProperty:V.f});var Lt=s((function(t){var e=z.Object,i=t.exports=function(t,i,n){return e.defineProperty(t,i,n)};e.defineProperty.sham&&(i.sham=!0)})),jt=Lt;function Bt(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),jt(t,n.key,n)}}function zt(t,e,i){return e&&Bt(t.prototype,e),i&&Bt(t,i),t}function Ht(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}K({target:"Object",stat:!0,sham:!c},{create:Dt});var Gt=z.Object,Wt=function(t,e){return Gt.create(t,e)},Yt=Wt,Vt=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,i={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(i,[]),e=i instanceof Array}catch(t){}return function(i,n){return W(i),function(t){if(!_(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype")}(n),e?t.call(i,n):i.__proto__=n,i}}():void 0);K({target:"Object",stat:!0},{setPrototypeOf:Vt});var Ut=z.Object.setPrototypeOf;function Xt(t,e){return(Xt=Ut||function(t,e){return t.__proto__=e,t})(t,e)}function qt(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Yt(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Xt(t,e)}var Kt,$t,Qt=Array.isArray||function(t){return"Array"==g(t)},Zt=function(t,e,i){var n=x(e);n in t?V.f(t,n,f(0,i)):t[n]=i},Jt=Q("navigator","userAgent")||"",te=h.process,ee=te&&te.versions,ie=ee&&ee.v8;ie?$t=(Kt=ie.split("."))[0]<4?1:Kt[0]+Kt[1]:Jt&&(!(Kt=Jt.match(/Edge\/(\d+)/))||Kt[1]>=74)&&(Kt=Jt.match(/Chrome\/(\d+)/))&&($t=Kt[1]);var ne=$t&&+$t,oe=!!Object.getOwnPropertySymbols&&!u((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&ne&&ne<41})),re=oe&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,se=vt("wks"),ae=h.Symbol,le=re?ae:ae&&ae.withoutSetter||bt,he=function(t){return D(se,t)&&(oe||"string"==typeof se[t])||(oe&&D(ae,t)?se[t]=ae[t]:se[t]=le("Symbol."+t)),se[t]},ue=he("species"),ce=function(t,e){var i;return Qt(t)&&("function"!=typeof(i=t.constructor)||i!==Array&&!Qt(i.prototype)?_(i)&&null===(i=i[ue])&&(i=void 0):i=void 0),new(void 0===i?Array:i)(0===e?0:e)},de=he("species"),pe=function(t){return ne>=51||!u((function(){var e=[];return(e.constructor={})[de]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},me=he("isConcatSpreadable"),fe=ne>=51||!u((function(){var t=[];return t[me]=!1,t.concat()[0]!==t})),ve=pe("concat"),ge=function(t){if(!_(t))return!1;var e=t[me];return void 0!==e?!!e:Qt(t)};K({target:"Array",proto:!0,forced:!fe||!ve},{concat:function(t){var e,i,n,o,r,s=C(this),a=ce(s,0),l=0;for(e=-1,n=arguments.length;e<n;e++)if(ge(r=-1===e?s:arguments[e])){if(l+(o=it(r.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(i=0;i<o;i++,l++)i in r&&Zt(a,l,r[i])}else{if(l>=9007199254740991)throw TypeError("Maximum allowed index exceeded");Zt(a,l++,r)}return a.length=l,a}});var ye=ct.concat("length","prototype"),be={f:Object.getOwnPropertyNames||function(t){return ut(t,ye)}},we=be.f,ke={}.toString,_e="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],xe={f:function(t){return _e&&"[object Window]"==ke.call(t)?function(t){try{return we(t)}catch(t){return _e.slice()}}(t):we(k(t))}},Ce={f:Object.getOwnPropertySymbols},Se=function(t,e,i,n){n&&n.enumerable?t[e]=i:U(t,e,i)},De={f:he},Te=V.f,Ee=function(t){var e=z.Symbol||(z.Symbol={});D(e,t)||Te(e,t,{value:De.f(t)})},Oe={};Oe[he("toStringTag")]="z";var Ae="[object z]"===String(Oe),Ie=he("toStringTag"),Pe="Arguments"==g(function(){return arguments}()),Me=Ae?g:function(t){var e,i,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),Ie))?i:Pe?g(e):"Object"==(n=g(e))&&"function"==typeof e.callee?"Arguments":n},Ne=Ae?{}.toString:function(){return"[object "+Me(this)+"]"},Fe=V.f,Re=he("toStringTag"),Le=function(t,e,i,n){if(t){var o=i?t:t.prototype;D(o,Re)||Fe(o,Re,{configurable:!0,value:e}),n&&!Ae&&U(o,"toString",Ne)}},je=Function.toString;"function"!=typeof ft.inspectSource&&(ft.inspectSource=function(t){return je.call(t)});var Be,ze,He,Ge=ft.inspectSource,We=h.WeakMap,Ye="function"==typeof We&&/native code/.test(Ge(We)),Ve=h.WeakMap;if(Ye||ft.state){var Ue=ft.state||(ft.state=new Ve),Xe=Ue.get,qe=Ue.has,Ke=Ue.set;Be=function(t,e){if(qe.call(Ue,t))throw new TypeError("Object already initialized");return e.facade=t,Ke.call(Ue,t,e),e},ze=function(t){return Xe.call(Ue,t)||{}},He=function(t){return qe.call(Ue,t)}}else{var $e=kt("state");lt[$e]=!0,Be=function(t,e){if(D(t,$e))throw new TypeError("Object already initialized");return e.facade=t,U(t,$e,e),e},ze=function(t){return D(t,$e)?t[$e]:{}},He=function(t){return D(t,$e)}}var Qe={set:Be,get:ze,has:He,enforce:function(t){return He(t)?ze(t):Be(t,{})},getterFor:function(t){return function(e){var i;if(!_(e)||(i=ze(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return i}}},Ze=[].push,Je=function(t){var e=1==t,i=2==t,n=3==t,o=4==t,r=6==t,s=7==t,a=5==t||r;return function(l,h,u,c){for(var d,p,m=C(l),f=b(m),v=G(h,u,3),g=it(f.length),y=0,w=c||ce,k=e?w(l,g):i||s?w(l,0):void 0;g>y;y++)if((a||y in f)&&(p=v(d=f[y],y,m),t))if(e)k[y]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return y;case 2:Ze.call(k,d)}else switch(t){case 4:return!1;case 7:Ze.call(k,d)}return r?-1:n||o?o:k}},ti={forEach:Je(0),map:Je(1),filter:Je(2),some:Je(3),every:Je(4),find:Je(5),findIndex:Je(6),filterOut:Je(7)},ei=ti.forEach,ii=kt("hidden"),ni=he("toPrimitive"),oi=Qe.set,ri=Qe.getterFor("Symbol"),si=Object.prototype,ai=h.Symbol,li=Q("JSON","stringify"),hi=P.f,ui=V.f,ci=xe.f,di=m.f,pi=vt("symbols"),mi=vt("op-symbols"),fi=vt("string-to-symbol-registry"),vi=vt("symbol-to-string-registry"),gi=vt("wks"),yi=h.QObject,bi=!yi||!yi.prototype||!yi.prototype.findChild,wi=c&&u((function(){return 7!=Dt(ui({},"a",{get:function(){return ui(this,"a",{value:7}).a}})).a}))?function(t,e,i){var n=hi(si,e);n&&delete si[e],ui(t,e,i),n&&t!==si&&ui(si,e,n)}:ui,ki=function(t,e){var i=pi[t]=Dt(ai.prototype);return oi(i,{type:"Symbol",tag:t,description:e}),c||(i.description=e),i},_i=re?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof ai},xi=function(t,e,i){t===si&&xi(mi,e,i),W(t);var n=x(e,!0);return W(i),D(pi,n)?(i.enumerable?(D(t,ii)&&t[ii][n]&&(t[ii][n]=!1),i=Dt(i,{enumerable:f(0,!1)})):(D(t,ii)||ui(t,ii,f(1,{})),t[ii][n]=!0),wi(t,n,i)):ui(t,n,i)},Ci=function(t,e){W(t);var i=k(e),n=dt(i).concat(Ei(i));return ei(n,(function(e){c&&!Si.call(i,e)||xi(t,e,i[e])})),t},Si=function(t){var e=x(t,!0),i=di.call(this,e);return!(this===si&&D(pi,e)&&!D(mi,e))&&(!(i||!D(this,e)||!D(pi,e)||D(this,ii)&&this[ii][e])||i)},Di=function(t,e){var i=k(t),n=x(e,!0);if(i!==si||!D(pi,n)||D(mi,n)){var o=hi(i,n);return!o||!D(pi,n)||D(i,ii)&&i[ii][n]||(o.enumerable=!0),o}},Ti=function(t){var e=ci(k(t)),i=[];return ei(e,(function(t){D(pi,t)||D(lt,t)||i.push(t)})),i},Ei=function(t){var e=t===si,i=ci(e?mi:k(t)),n=[];return ei(i,(function(t){!D(pi,t)||e&&!D(si,t)||n.push(pi[t])})),n};if(oe||(Se((ai=function(){if(this instanceof ai)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=bt(t),i=function(t){this===si&&i.call(mi,t),D(this,ii)&&D(this[ii],e)&&(this[ii][e]=!1),wi(this,e,f(1,t))};return c&&bi&&wi(si,e,{configurable:!0,set:i}),ki(e,t)}).prototype,"toString",(function(){return ri(this).tag})),Se(ai,"withoutSetter",(function(t){return ki(bt(t),t)})),m.f=Si,V.f=xi,P.f=Di,be.f=xe.f=Ti,Ce.f=Ei,De.f=function(t){return ki(he(t),t)},c&&ui(ai.prototype,"description",{configurable:!0,get:function(){return ri(this).description}})),K({global:!0,wrap:!0,forced:!oe,sham:!oe},{Symbol:ai}),ei(dt(gi),(function(t){Ee(t)})),K({target:"Symbol",stat:!0,forced:!oe},{for:function(t){var e=String(t);if(D(fi,e))return fi[e];var i=ai(e);return fi[e]=i,vi[i]=e,i},keyFor:function(t){if(!_i(t))throw TypeError(t+" is not a symbol");if(D(vi,t))return vi[t]},useSetter:function(){bi=!0},useSimple:function(){bi=!1}}),K({target:"Object",stat:!0,forced:!oe,sham:!c},{create:function(t,e){return void 0===e?Dt(t):Ci(Dt(t),e)},defineProperty:xi,defineProperties:Ci,getOwnPropertyDescriptor:Di}),K({target:"Object",stat:!0,forced:!oe},{getOwnPropertyNames:Ti,getOwnPropertySymbols:Ei}),K({target:"Object",stat:!0,forced:u((function(){Ce.f(1)}))},{getOwnPropertySymbols:function(t){return Ce.f(C(t))}}),li){var Oi=!oe||u((function(){var t=ai();return"[null]"!=li([t])||"{}"!=li({a:t})||"{}"!=li(Object(t))}));K({target:"JSON",stat:!0,forced:Oi},{stringify:function(t,e,i){for(var n,o=[t],r=1;arguments.length>r;)o.push(arguments[r++]);if(n=e,(_(e)||void 0!==t)&&!_i(t))return Qt(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!_i(e))return e}),o[1]=e,li.apply(null,o)}})}ai.prototype[ni]||U(ai.prototype,ni,ai.prototype.valueOf),Le(ai,"Symbol"),lt[ii]=!0,Ee("asyncIterator"),Ee("hasInstance"),Ee("isConcatSpreadable"),Ee("iterator"),Ee("match"),Ee("matchAll"),Ee("replace"),Ee("search"),Ee("species"),Ee("split"),Ee("toPrimitive"),Ee("toStringTag"),Ee("unscopables"),Le(h.JSON,"JSON",!0);var Ai=z.Symbol;Ee("asyncDispose"),Ee("dispose"),Ee("matcher"),Ee("metadata"),Ee("observable"),Ee("patternMatch"),Ee("replaceAll");var Ii,Pi,Mi,Ni=Ai,Fi=function(t){return function(e,i){var n,o,r=String(w(e)),s=tt(i),a=r.length;return s<0||s>=a?t?"":void 0:(n=r.charCodeAt(s))<55296||n>56319||s+1===a||(o=r.charCodeAt(s+1))<56320||o>57343?t?r.charAt(s):n:t?r.slice(s,s+2):o-56320+(n-55296<<10)+65536}},Ri={codeAt:Fi(!1),charAt:Fi(!0)},Li=!u((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),ji=kt("IE_PROTO"),Bi=Object.prototype,zi=Li?Object.getPrototypeOf:function(t){return t=C(t),D(t,ji)?t[ji]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?Bi:null},Hi=he("iterator"),Gi=!1;[].keys&&("next"in(Mi=[].keys())?(Pi=zi(zi(Mi)))!==Object.prototype&&(Ii=Pi):Gi=!0);var Wi=null==Ii||u((function(){var t={};return Ii[Hi].call(t)!==t}));Wi&&(Ii={}),Wi&&!D(Ii,Hi)&&U(Ii,Hi,(function(){return this}));var Yi={IteratorPrototype:Ii,BUGGY_SAFARI_ITERATORS:Gi},Vi={},Ui=Yi.IteratorPrototype,Xi=function(){return this},qi=Yi.IteratorPrototype,Ki=Yi.BUGGY_SAFARI_ITERATORS,$i=he("iterator"),Qi=function(){return this},Zi=function(t,e,i,n,o,r,s){!function(t,e,i){var n=e+" Iterator";t.prototype=Dt(Ui,{next:f(1,i)}),Le(t,n,!1,!0),Vi[n]=Xi}(i,e,n);var a,l,h,u=function(t){if(t===o&&v)return v;if(!Ki&&t in p)return p[t];switch(t){case"keys":case"values":case"entries":return function(){return new i(this,t)}}return function(){return new i(this)}},c=e+" Iterator",d=!1,p=t.prototype,m=p[$i]||p["@@iterator"]||o&&p[o],v=!Ki&&m||u(o),g="Array"==e&&p.entries||m;if(g&&(a=zi(g.call(new t)),qi!==Object.prototype&&a.next&&(Le(a,c,!0,!0),Vi[c]=Qi)),"values"==o&&m&&"values"!==m.name&&(d=!0,v=function(){return m.call(this)}),s&&p[$i]!==v&&U(p,$i,v),Vi[e]=v,o)if(l={values:u("values"),keys:r?v:u("keys"),entries:u("entries")},s)for(h in l)(Ki||d||!(h in p))&&Se(p,h,l[h]);else K({target:e,proto:!0,forced:Ki||d},l);return l},Ji=Ri.charAt,tn=Qe.set,en=Qe.getterFor("String Iterator");Zi(String,"String",(function(t){tn(this,{type:"String Iterator",string:String(t),index:0})}),(function(){var t,e=en(this),i=e.string,n=e.index;return n>=i.length?{value:void 0,done:!0}:(t=Ji(i,n),e.index+=t.length,{value:t,done:!1})}));var nn=Qe.set,on=Qe.getterFor("Array Iterator");Zi(Array,"Array",(function(t,e){nn(this,{type:"Array Iterator",target:k(t),index:0,kind:e})}),(function(){var t=on(this),e=t.target,i=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==i?{value:n,done:!1}:"values"==i?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values"),Vi.Arguments=Vi.Array;var rn=he("toStringTag");for(var sn in{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}){var an=h[sn],ln=an&&an.prototype;ln&&Me(ln)!==rn&&U(ln,rn,sn),Vi[sn]=Vi.Array}var hn=De.f("iterator");function un(t){return(un="function"==typeof Ni&&"symbol"==typeof hn?function(t){return typeof t}:function(t){return t&&"function"==typeof Ni&&t.constructor===Ni&&t!==Ni.prototype?"symbol":typeof t})(t)}function cn(t,e){return!e||"object"!==un(e)&&"function"!=typeof e?Ht(t):e}var dn=u((function(){zi(1)}));K({target:"Object",stat:!0,forced:dn,sham:!Li},{getPrototypeOf:function(t){return zi(C(t))}});var pn=z.Object.getPrototypeOf,mn=pn;function fn(t){return(fn=Ut?mn:function(t){return t.__proto__||mn(t)})(t)}K({target:"Array",stat:!0},{isArray:Qt});var vn=z.Array.isArray,gn=vn;K({target:"Function",proto:!0},{bind:At});var yn=function(t){return z[t+"Prototype"]},bn=yn("Function").bind,wn=Function.prototype,kn=function(t){var e=t.bind;return t===wn||t instanceof Function&&e===wn.bind?bn:e},_n=[].slice,xn=/MSIE .\./.test(Jt),Cn=function(t){return function(e,i){var n=arguments.length>2,o=n?_n.call(arguments,2):void 0;return t(n?function(){("function"==typeof e?e:Function(e)).apply(this,o)}:e,i)}};K({global:!0,bind:!0,forced:xn},{setTimeout:Cn(h.setTimeout),setInterval:Cn(h.setInterval)});var Sn=z.setTimeout,Dn=function(t,e){var i=[][t];return!!i&&u((function(){i.call(null,e||function(){throw 1},1)}))},Tn=ti.forEach,En=Dn("forEach")?[].forEach:function(t){return Tn(this,t,arguments.length>1?arguments[1]:void 0)};K({target:"Array",proto:!0,forced:[].forEach!=En},{forEach:En});var On=yn("Array").forEach,An=Array.prototype,In={DOMTokenList:!0,NodeList:!0},Pn=function(t){var e=t.forEach;return t===An||t instanceof Array&&e===An.forEach||In.hasOwnProperty(Me(t))?On:e},Mn="undefined"!=typeof window&&window.moment||t,Nn=z.Object.getOwnPropertySymbols,Fn=ti.filter,Rn=pe("filter");K({target:"Array",proto:!0,forced:!Rn},{filter:function(t){return Fn(this,t,arguments.length>1?arguments[1]:void 0)}});var Ln=yn("Array").filter,jn=Array.prototype,Bn=function(t){var e=t.filter;return t===jn||t instanceof Array&&e===jn.filter?Ln:e},zn=P.f,Hn=u((function(){zn(1)}));K({target:"Object",stat:!0,forced:!c||Hn,sham:!c},{getOwnPropertyDescriptor:function(t,e){return zn(k(t),e)}});var Gn=s((function(t){var e=z.Object,i=t.exports=function(t,i){return e.getOwnPropertyDescriptor(t,i)};e.getOwnPropertyDescriptor.sham&&(i.sham=!0)})),Wn=Q("Reflect","ownKeys")||function(t){var e=be.f(W(t)),i=Ce.f;return i?e.concat(i(t)):e};K({target:"Object",stat:!0,sham:!c},{getOwnPropertyDescriptors:function(t){for(var e,i,n=k(t),o=P.f,r=Wn(n),s={},a=0;r.length>a;)void 0!==(i=o(n,e=r[a++]))&&Zt(s,e,i);return s}});var Yn=z.Object.getOwnPropertyDescriptors;K({target:"Object",stat:!0,forced:!c,sham:!c},{defineProperties:pt});var Vn=s((function(t){var e=z.Object,i=t.exports=function(t,i){return e.defineProperties(t,i)};e.defineProperties.sham&&(i.sham=!0)}));function Un(t,e,i){return e in t?jt(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var Xn=ti.map,qn=pe("map");K({target:"Array",proto:!0,forced:!qn},{map:function(t){return Xn(this,t,arguments.length>1?arguments[1]:void 0)}});var Kn=yn("Array").map,$n=Array.prototype,Qn=function(t){var e=t.map;return t===$n||t instanceof Array&&e===$n.map?Kn:e},Zn=function(t){return function(e,i,n,o){H(i);var r=C(e),s=b(r),a=it(r.length),l=t?a-1:0,h=t?-1:1;if(n<2)for(;;){if(l in s){o=s[l],l+=h;break}if(l+=h,t?l<0:a<=l)throw TypeError("Reduce of empty array with no initial value")}for(;t?l>=0:a>l;l+=h)l in s&&(o=i(o,s[l],l,r));return o}},Jn={left:Zn(!1),right:Zn(!0)},to="process"==g(h.process),eo=Jn.left,io=Dn("reduce");K({target:"Array",proto:!0,forced:!io||!to&&ne>79&&ne<83},{reduce:function(t){return eo(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}});var no=yn("Array").reduce,oo=Array.prototype,ro=function(t){var e=t.reduce;return t===oo||t instanceof Array&&e===oo.reduce?no:e},so=u((function(){dt(1)}));K({target:"Object",stat:!0,forced:so},{keys:function(t){return dt(C(t))}});var ao=z.Object.keys,lo=Lt,ho=function(t){var e=t.return;if(void 0!==e)return W(e.call(t)).value},uo=function(t,e,i,n){try{return n?e(W(i)[0],i[1]):e(i)}catch(e){throw ho(t),e}},co=he("iterator"),po=Array.prototype,mo=function(t){return void 0!==t&&(Vi.Array===t||po[co]===t)},fo=he("iterator"),vo=function(t){if(null!=t)return t[fo]||t["@@iterator"]||Vi[Me(t)]},go=he("iterator"),yo=!1;try{var bo=0,wo={next:function(){return{done:!!bo++}},return:function(){yo=!0}};wo[go]=function(){return this},Array.from(wo,(function(){throw 2}))}catch(t){}var ko=!function(t,e){if(!e&&!yo)return!1;var i=!1;try{var n={};n[go]=function(){return{next:function(){return{done:i=!0}}}},t(n)}catch(t){}return i}((function(t){Array.from(t)}));K({target:"Array",stat:!0,forced:ko},{from:function(t){var e,i,n,o,r,s,a=C(t),l="function"==typeof this?this:Array,h=arguments.length,u=h>1?arguments[1]:void 0,c=void 0!==u,d=vo(a),p=0;if(c&&(u=G(u,h>2?arguments[2]:void 0,2)),null==d||l==Array&&mo(d))for(i=new l(e=it(a.length));e>p;p++)s=c?u(a[p],p):a[p],Zt(i,p,s);else for(r=(o=d.call(a)).next,i=new l;!(n=r.call(o)).done;p++)s=c?uo(o,u,[n.value,p],!0):n.value,Zt(i,p,s);return i.length=p,i}});var _o=z.Array.from,xo=_o,Co=vo,So=vn;var Do=pe("slice"),To=he("species"),Eo=[].slice,Oo=Math.max;K({target:"Array",proto:!0,forced:!Do},{slice:function(t,e){var i,n,o,r=k(this),s=it(r.length),a=rt(t,s),l=rt(void 0===e?s:e,s);if(Qt(r)&&("function"!=typeof(i=r.constructor)||i!==Array&&!Qt(i.prototype)?_(i)&&null===(i=i[To])&&(i=void 0):i=void 0,i===Array||void 0===i))return Eo.call(r,a,l);for(n=new(void 0===i?Array:i)(Oo(l-a,0)),o=0;a<l;a++,o++)a in r&&Zt(n,o,r[a]);return n.length=o,n}});var Ao=yn("Array").slice,Io=Array.prototype,Po=function(t){var e=t.slice;return t===Io||t instanceof Array&&e===Io.slice?Ao:e},Mo=Po,No=_o;function Fo(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function Ro(t,e){var i;if(t){if("string"==typeof t)return Fo(t,e);var n=Mo(i=Object.prototype.toString.call(t)).call(i,8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?No(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Fo(t,e):void 0}}function Lo(t,e){return function(t){if(So(t))return t}(t)||function(t,e){var i=t&&(void 0!==Ni&&Co(t)||t["@@iterator"]);if(null!=i){var n,o,r=[],s=!0,a=!1;try{for(i=i.call(t);!(s=(n=i.next()).done)&&(r.push(n.value),!e||r.length!==e);s=!0);}catch(t){a=!0,o=t}finally{try{s||null==i.return||i.return()}finally{if(a)throw o}}return r}}(t,e)||Ro(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function jo(t){return function(t){if(So(t))return Fo(t)}(t)||function(t){if(void 0!==Ni&&null!=Co(t)||null!=t["@@iterator"])return No(t)}(t)||Ro(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Bo=Ai,zo=yn("Array").concat,Ho=Array.prototype,Go=function(t){var e=t.concat;return t===Ho||t instanceof Array&&e===Ho.concat?zo:e},Wo=Po;K({target:"Reflect",stat:!0},{ownKeys:Wn});var Yo=z.Reflect.ownKeys;K({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}});var Vo=z.Date.now,Uo=[].reverse,Xo=[1,2];K({target:"Array",proto:!0,forced:String(Xo)===String(Xo.reverse())},{reverse:function(){return Qt(this)&&(this.length=this.length),Uo.call(this)}});var qo=yn("Array").reverse,Ko=Array.prototype,$o=function(t){var e=t.reverse;return t===Ko||t instanceof Array&&e===Ko.reverse?qo:e},Qo=pe("splice"),Zo=Math.max,Jo=Math.min;K({target:"Array",proto:!0,forced:!Qo},{splice:function(t,e){var i,n,o,r,s,a,l=C(this),h=it(l.length),u=rt(t,h),c=arguments.length;if(0===c?i=n=0:1===c?(i=0,n=h-u):(i=c-2,n=Jo(Zo(tt(e),0),h-u)),h+i-n>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(o=ce(l,n),r=0;r<n;r++)(s=u+r)in l&&Zt(o,r,l[s]);if(o.length=n,i<n){for(r=u;r<h-n;r++)a=r+i,(s=r+n)in l?l[a]=l[s]:delete l[a];for(r=h;r>h-n+i;r--)delete l[r-1]}else if(i>n)for(r=h-n;r>u;r--)a=r+i-1,(s=r+n-1)in l?l[a]=l[s]:delete l[a];for(r=0;r<i;r++)l[r+u]=arguments[r+2];return l.length=h-n+i,o}});var tr=yn("Array").splice,er=Array.prototype,ir=function(t){var e=t.splice;return t===er||t instanceof Array&&e===er.splice?tr:e},nr=Object.assign,or=Object.defineProperty,rr=!nr||u((function(){if(c&&1!==nr({b:1},nr(or({},"a",{enumerable:!0,get:function(){or(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},i=Symbol(),n="abcdefghijklmnopqrst";return t[i]=7,n.split("").forEach((function(t){e[t]=t})),7!=nr({},t)[i]||dt(nr({},e)).join("")!=n}))?function(t,e){for(var i=C(t),n=arguments.length,o=1,r=Ce.f,s=m.f;n>o;)for(var a,l=b(arguments[o++]),h=r?dt(l).concat(r(l)):dt(l),u=h.length,d=0;u>d;)a=h[d++],c&&!s.call(l,a)||(i[a]=l[a]);return i}:nr;K({target:"Object",stat:!0,forced:Object.assign!==rr},{assign:rr});var sr=z.Object.assign,ar=at.includes;K({target:"Array",proto:!0},{includes:function(t){return ar(this,t,arguments.length>1?arguments[1]:void 0)}});var lr=yn("Array").includes,hr=he("match"),ur=function(t){if(function(t){var e;return _(t)&&(void 0!==(e=t[hr])?!!e:"RegExp"==g(t))}(t))throw TypeError("The method doesn't accept regular expressions");return t},cr=he("match");K({target:"String",proto:!0,forced:!function(t){var e=/./;try{"/./"[t](e)}catch(i){try{return e[cr]=!1,"/./"[t](e)}catch(t){}}return!1}("includes")},{includes:function(t){return!!~String(w(this)).indexOf(ur(t),arguments.length>1?arguments[1]:void 0)}});var dr=yn("String").includes,pr=Array.prototype,mr=String.prototype,fr=function(t){var e=t.includes;return t===pr||t instanceof Array&&e===pr.includes?lr:"string"==typeof t||t===mr||t instanceof String&&e===mr.includes?dr:e},vr=pn,gr=m.f,yr=function(t){return function(e){for(var i,n=k(e),o=dt(n),r=o.length,s=0,a=[];r>s;)i=o[s++],c&&!gr.call(n,i)||a.push(t?[i,n[i]]:n[i]);return a}},br={entries:yr(!0),values:yr(!1)}.values;K({target:"Object",stat:!0},{values:function(t){return br(t)}});var wr=z.Object.values,kr="\t\n\v\f\r                 \u2028\u2029\ufeff",_r="["+kr+"]",xr=RegExp("^"+_r+_r+"*"),Cr=RegExp(_r+_r+"*$"),Sr=function(t){return function(e){var i=String(w(e));return 1&t&&(i=i.replace(xr,"")),2&t&&(i=i.replace(Cr,"")),i}},Dr={start:Sr(1),end:Sr(2),trim:Sr(3)},Tr=Dr.trim,Er=h.parseInt,Or=/^[+-]?0[Xx]/,Ar=8!==Er(kr+"08")||22!==Er(kr+"0x16")?function(t,e){var i=Tr(String(t));return Er(i,e>>>0||(Or.test(i)?16:10))}:Er;K({global:!0,forced:parseInt!=Ar},{parseInt:Ar});var Ir=z.parseInt,Pr=at.indexOf,Mr=[].indexOf,Nr=!!Mr&&1/[1].indexOf(1,-0)<0,Fr=Dn("indexOf");K({target:"Array",proto:!0,forced:Nr||!Fr},{indexOf:function(t){return Nr?Mr.apply(this,arguments)||0:Pr(this,t,arguments.length>1?arguments[1]:void 0)}});var Rr,Lr=yn("Array").indexOf,jr=Array.prototype,Br=function(t){var e=t.indexOf;return t===jr||t instanceof Array&&e===jr.indexOf?Lr:e},zr=Dr.trim;K({target:"String",proto:!0,forced:(Rr="trim",u((function(){return!!kr[Rr]()||"​…᠎"!="​…᠎"[Rr]()||kr[Rr].name!==Rr})))},{trim:function(){return zr(this)}});var Hr=yn("String").trim,Gr=String.prototype,Wr=function(t){var e=t.trim;return"string"==typeof t||t===Gr||t instanceof String&&e===Gr.trim?Hr:e},Yr=Wt,Vr=Q("JSON","stringify"),Ur=/[\uD800-\uDFFF]/g,Xr=/^[\uD800-\uDBFF]$/,qr=/^[\uDC00-\uDFFF]$/,Kr=function(t,e,i){var n=i.charAt(e-1),o=i.charAt(e+1);return Xr.test(t)&&!qr.test(o)||qr.test(t)&&!Xr.test(n)?"\\u"+t.charCodeAt(0).toString(16):t},$r=u((function(){return'"\\udf06\\ud834"'!==Vr("\udf06\ud834")||'"\\udead"'!==Vr("\udead")}));Vr&&K({target:"JSON",stat:!0,forced:$r},{stringify:function(t,e,i){var n=Vr.apply(null,arguments);return"string"==typeof n?n.replace(Ur,Kr):n}}),z.JSON||(z.JSON={stringify:JSON.stringify});var Qr=function(t,e,i){return z.JSON.stringify.apply(null,arguments)};K({target:"Array",proto:!0},{fill:function(t){for(var e=C(this),i=it(e.length),n=arguments.length,o=rt(n>1?arguments[1]:void 0,i),r=n>2?arguments[2]:void 0,s=void 0===r?i:rt(r,i);s>o;)e[o++]=t;return e}});var Zr=yn("Array").fill,Jr=Array.prototype,ts=function(t){var e=t.fill;return t===Jr||t instanceof Array&&e===Jr.fill?Zr:e},es=s((function(t){function e(t){if(t)return function(t){for(var i in e.prototype)t[i]=e.prototype[i];return t}(t)}t.exports=e,e.prototype.on=e.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},e.prototype.once=function(t,e){function i(){this.off(t,i),e.apply(this,arguments)}return i.fn=e,this.on(t,i),this},e.prototype.off=e.prototype.removeListener=e.prototype.removeAllListeners=e.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var i,n=this._callbacks["$"+t];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var o=0;o<n.length;o++)if((i=n[o])===e||i.fn===e){n.splice(o,1);break}return 0===n.length&&delete this._callbacks["$"+t],this},e.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),i=this._callbacks["$"+t],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(i){n=0;for(var o=(i=i.slice(0)).length;n<o;++n)i[n].apply(this,e)}return this},e.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},e.prototype.hasListeners=function(t){return!!this.listeners(t).length}})); /*! 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 is(){return(is=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t}).apply(this,arguments)}function ns(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function os(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var rs,ss="function"!=typeof Object.assign?function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),i=1;i<arguments.length;i++){var n=arguments[i];if(null!=n)for(var o in n)n.hasOwnProperty(o)&&(e[o]=n[o])}return e}:Object.assign,as=["","webkit","Moz","MS","ms","o"],ls="undefined"==typeof document?{style:{}}:document.createElement("div"),hs=Math.round,us=Math.abs,cs=Date.now;function ds(t,e){for(var i,n,o=e[0].toUpperCase()+e.slice(1),r=0;r<as.length;){if((n=(i=as[r])?i+o:e)in t)return n;r++}}rs="undefined"==typeof window?{}:window;var ps=ds(ls.style,"touchAction"),ms=void 0!==ps;var fs=function(){if(!ms)return!1;var t={},e=rs.CSS&&rs.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(i){return t[i]=!e||rs.CSS.supports("touch-action",i)})),t}(),vs="ontouchstart"in rs,gs=void 0!==ds(rs,"PointerEvent"),ys=vs&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),bs=["x","y"],ws=["clientX","clientY"];function ks(t,e,i){var n;if(t)if(t.forEach)t.forEach(e,i);else if(void 0!==t.length)for(n=0;n<t.length;)e.call(i,t[n],n,t),n++;else for(n in t)t.hasOwnProperty(n)&&e.call(i,t[n],n,t)}function _s(t,e){return"function"==typeof t?t.apply(e&&e[0]||void 0,e):t}function xs(t,e){return t.indexOf(e)>-1}var Cs=function(){function t(t,e){this.manager=t,this.set(e)}var e=t.prototype;return e.set=function(t){"compute"===t&&(t=this.compute()),ms&&this.manager.element.style&&fs[t]&&(this.manager.element.style[ps]=t),this.actions=t.toLowerCase().trim()},e.update=function(){this.set(this.manager.options.touchAction)},e.compute=function(){var t=[];return ks(this.manager.recognizers,(function(e){_s(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),function(t){if(xs(t,"none"))return"none";var e=xs(t,"pan-x"),i=xs(t,"pan-y");return e&&i?"none":e||i?e?"pan-x":"pan-y":xs(t,"manipulation")?"manipulation":"auto"}(t.join(" "))},e.preventDefaults=function(t){var e=t.srcEvent,i=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var n=this.actions,o=xs(n,"none")&&!fs.none,r=xs(n,"pan-y")&&!fs["pan-y"],s=xs(n,"pan-x")&&!fs["pan-x"];if(o){var a=1===t.pointers.length,l=t.distance<2,h=t.deltaTime<250;if(a&&l&&h)return}if(!s||!r)return o||r&&6&i||s&&24&i?this.preventSrc(e):void 0}},e.preventSrc=function(t){this.manager.session.prevented=!0,t.preventDefault()},t}();function Ss(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1}function Ds(t){var e=t.length;if(1===e)return{x:hs(t[0].clientX),y:hs(t[0].clientY)};for(var i=0,n=0,o=0;o<e;)i+=t[o].clientX,n+=t[o].clientY,o++;return{x:hs(i/e),y:hs(n/e)}}function Ts(t){for(var e=[],i=0;i<t.pointers.length;)e[i]={clientX:hs(t.pointers[i].clientX),clientY:hs(t.pointers[i].clientY)},i++;return{timeStamp:cs(),pointers:e,center:Ds(e),deltaX:t.deltaX,deltaY:t.deltaY}}function Es(t,e,i){i||(i=bs);var n=e[i[0]]-t[i[0]],o=e[i[1]]-t[i[1]];return Math.sqrt(n*n+o*o)}function Os(t,e,i){i||(i=bs);var n=e[i[0]]-t[i[0]],o=e[i[1]]-t[i[1]];return 180*Math.atan2(o,n)/Math.PI}function As(t,e){return t===e?1:us(t)>=us(e)?t<0?2:4:e<0?8:16}function Is(t,e,i){return{x:e/t||0,y:i/t||0}}function Ps(t,e){var i=t.session,n=e.pointers,o=n.length;i.firstInput||(i.firstInput=Ts(e)),o>1&&!i.firstMultiple?i.firstMultiple=Ts(e):1===o&&(i.firstMultiple=!1);var r=i.firstInput,s=i.firstMultiple,a=s?s.center:r.center,l=e.center=Ds(n);e.timeStamp=cs(),e.deltaTime=e.timeStamp-r.timeStamp,e.angle=Os(a,l),e.distance=Es(a,l),function(t,e){var i=e.center,n=t.offsetDelta||{},o=t.prevDelta||{},r=t.prevInput||{};1!==e.eventType&&4!==r.eventType||(o=t.prevDelta={x:r.deltaX||0,y:r.deltaY||0},n=t.offsetDelta={x:i.x,y:i.y}),e.deltaX=o.x+(i.x-n.x),e.deltaY=o.y+(i.y-n.y)}(i,e),e.offsetDirection=As(e.deltaX,e.deltaY);var h,u,c=Is(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=c.x,e.overallVelocityY=c.y,e.overallVelocity=us(c.x)>us(c.y)?c.x:c.y,e.scale=s?(h=s.pointers,Es((u=n)[0],u[1],ws)/Es(h[0],h[1],ws)):1,e.rotation=s?function(t,e){return Os(e[1],e[0],ws)+Os(t[1],t[0],ws)}(s.pointers,n):0,e.maxPointers=i.prevInput?e.pointers.length>i.prevInput.maxPointers?e.pointers.length:i.prevInput.maxPointers:e.pointers.length,function(t,e){var i,n,o,r,s=t.lastInterval||e,a=e.timeStamp-s.timeStamp;if(8!==e.eventType&&(a>25||void 0===s.velocity)){var l=e.deltaX-s.deltaX,h=e.deltaY-s.deltaY,u=Is(a,l,h);n=u.x,o=u.y,i=us(u.x)>us(u.y)?u.x:u.y,r=As(l,h),t.lastInterval=e}else i=s.velocity,n=s.velocityX,o=s.velocityY,r=s.direction;e.velocity=i,e.velocityX=n,e.velocityY=o,e.direction=r}(i,e);var d,p=t.element,m=e.srcEvent;Ss(d=m.composedPath?m.composedPath()[0]:m.path?m.path[0]:m.target,p)&&(p=d),e.target=p}function Ms(t,e,i){var n=i.pointers.length,o=i.changedPointers.length,r=1&e&&n-o==0,s=12&e&&n-o==0;i.isFirst=!!r,i.isFinal=!!s,r&&(t.session={}),i.eventType=e,Ps(t,i),t.emit("hammer.input",i),t.recognize(i),t.session.prevInput=i}function Ns(t){return t.trim().split(/\s+/g)}function Fs(t,e,i){ks(Ns(e),(function(e){t.addEventListener(e,i,!1)}))}function Rs(t,e,i){ks(Ns(e),(function(e){t.removeEventListener(e,i,!1)}))}function Ls(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||window}var js=function(){function t(t,e){var i=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){_s(t.options.enable,[t])&&i.handler(e)},this.init()}var e=t.prototype;return e.handler=function(){},e.init=function(){this.evEl&&Fs(this.element,this.evEl,this.domHandler),this.evTarget&&Fs(this.target,this.evTarget,this.domHandler),this.evWin&&Fs(Ls(this.element),this.evWin,this.domHandler)},e.destroy=function(){this.evEl&&Rs(this.element,this.evEl,this.domHandler),this.evTarget&&Rs(this.target,this.evTarget,this.domHandler),this.evWin&&Rs(Ls(this.element),this.evWin,this.domHandler)},t}();function Bs(t,e,i){if(t.indexOf&&!i)return t.indexOf(e);for(var n=0;n<t.length;){if(i&&t[n][i]==e||!i&&t[n]===e)return n;n++}return-1}var zs={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},Hs={2:"touch",3:"pen",4:"mouse",5:"kinect"},Gs="pointerdown",Ws="pointermove pointerup pointercancel";rs.MSPointerEvent&&!rs.PointerEvent&&(Gs="MSPointerDown",Ws="MSPointerMove MSPointerUp MSPointerCancel");var Ys=function(t){function e(){var i,n=e.prototype;return n.evEl=Gs,n.evWin=Ws,(i=t.apply(this,arguments)||this).store=i.manager.session.pointerEvents=[],i}return ns(e,t),e.prototype.handler=function(t){var e=this.store,i=!1,n=t.type.toLowerCase().replace("ms",""),o=zs[n],r=Hs[t.pointerType]||t.pointerType,s="touch"===r,a=Bs(e,t.pointerId,"pointerId");1&o&&(0===t.button||s)?a<0&&(e.push(t),a=e.length-1):12&o&&(i=!0),a<0||(e[a]=t,this.callback(this.manager,o,{pointers:e,changedPointers:[t],pointerType:r,srcEvent:t}),i&&e.splice(a,1))},e}(js);function Vs(t){return Array.prototype.slice.call(t,0)}function Us(t,e,i){for(var n=[],o=[],r=0;r<t.length;){var s=e?t[r][e]:t[r];Bs(o,s)<0&&n.push(t[r]),o[r]=s,r++}return i&&(n=e?n.sort((function(t,i){return t[e]>i[e]})):n.sort()),n}var Xs={touchstart:1,touchmove:2,touchend:4,touchcancel:8},qs=function(t){function e(){var i;return e.prototype.evTarget="touchstart touchmove touchend touchcancel",(i=t.apply(this,arguments)||this).targetIds={},i}return ns(e,t),e.prototype.handler=function(t){var e=Xs[t.type],i=Ks.call(this,t,e);i&&this.callback(this.manager,e,{pointers:i[0],changedPointers:i[1],pointerType:"touch",srcEvent:t})},e}(js);function Ks(t,e){var i,n,o=Vs(t.touches),r=this.targetIds;if(3&e&&1===o.length)return r[o[0].identifier]=!0,[o,o];var s=Vs(t.changedTouches),a=[],l=this.target;if(n=o.filter((function(t){return Ss(t.target,l)})),1===e)for(i=0;i<n.length;)r[n[i].identifier]=!0,i++;for(i=0;i<s.length;)r[s[i].identifier]&&a.push(s[i]),12&e&&delete r[s[i].identifier],i++;return a.length?[Us(n.concat(a),"identifier",!0),a]:void 0}var $s={mousedown:1,mousemove:2,mouseup:4},Qs=function(t){function e(){var i,n=e.prototype;return n.evEl="mousedown",n.evWin="mousemove mouseup",(i=t.apply(this,arguments)||this).pressed=!1,i}return ns(e,t),e.prototype.handler=function(t){var e=$s[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:"mouse",srcEvent:t}))},e}(js);function Zs(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var i={x:e.clientX,y:e.clientY},n=this.lastTouches;this.lastTouches.push(i);setTimeout((function(){var t=n.indexOf(i);t>-1&&n.splice(t,1)}),2500)}}function Js(t,e){1&t?(this.primaryTouch=e.changedPointers[0].identifier,Zs.call(this,e)):12&t&&Zs.call(this,e)}function ta(t){for(var e=t.srcEvent.clientX,i=t.srcEvent.clientY,n=0;n<this.lastTouches.length;n++){var o=this.lastTouches[n],r=Math.abs(e-o.x),s=Math.abs(i-o.y);if(r<=25&&s<=25)return!0}return!1}var ea=function(){return function(t){function e(e,i){var n;return(n=t.call(this,e,i)||this).handler=function(t,e,i){var o="touch"===i.pointerType,r="mouse"===i.pointerType;if(!(r&&i.sourceCapabilities&&i.sourceCapabilities.firesTouchEvents)){if(o)Js.call(os(os(n)),e,i);else if(r&&ta.call(os(os(n)),i))return;n.callback(t,e,i)}},n.touch=new qs(n.manager,n.handler),n.mouse=new Qs(n.manager,n.handler),n.primaryTouch=null,n.lastTouches=[],n}return ns(e,t),e.prototype.destroy=function(){this.touch.destroy(),this.mouse.destroy()},e}(js)}();function ia(t,e,i){return!!Array.isArray(t)&&(ks(t,i[e],i),!0)}var na=1;function oa(t,e){var i=e.manager;return i?i.get(t):t}function ra(t){return 16&t?"cancel":8&t?"end":4&t?"move":2&t?"start":""}var sa=function(){function t(t){void 0===t&&(t={}),this.options=is({enable:!0},t),this.id=na++,this.manager=null,this.state=1,this.simultaneous={},this.requireFail=[]}var e=t.prototype;return e.set=function(t){return ss(this.options,t),this.manager&&this.manager.touchAction.update(),this},e.recognizeWith=function(t){if(ia(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=oa(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},e.dropRecognizeWith=function(t){return ia(t,"dropRecognizeWith",this)||(t=oa(t,this),delete this.simultaneous[t.id]),this},e.requireFailure=function(t){if(ia(t,"requireFailure",this))return this;var e=this.requireFail;return-1===Bs(e,t=oa(t,this))&&(e.push(t),t.requireFailure(this)),this},e.dropRequireFailure=function(t){if(ia(t,"dropRequireFailure",this))return this;t=oa(t,this);var e=Bs(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,i=this.state;function n(i){e.manager.emit(i,t)}i<8&&n(e.options.event+ra(i)),n(e.options.event),t.additionalEvent&&n(t.additionalEvent),i>=8&&n(e.options.event+ra(i))},e.tryEmit=function(t){if(this.canEmit())return this.emit(t);this.state=32},e.canEmit=function(){for(var t=0;t<this.requireFail.length;){if(!(33&this.requireFail[t].state))return!1;t++}return!0},e.recognize=function(t){var e=ss({},t);if(!_s(this.options.enable,[this,e]))return this.reset(),void(this.state=32);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}(),aa=function(t){function e(e){var i;return void 0===e&&(e={}),(i=t.call(this,is({event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},e))||this).pTime=!1,i.pCenter=!1,i._timer=null,i._input=null,i.count=0,i}ns(e,t);var i=e.prototype;return i.getTouchAction=function(){return["manipulation"]},i.process=function(t){var e=this,i=this.options,n=t.pointers.length===i.pointers,o=t.distance<i.threshold,r=t.deltaTime<i.time;if(this.reset(),1&t.eventType&&0===this.count)return this.failTimeout();if(o&&r&&n){if(4!==t.eventType)return this.failTimeout();var s=!this.pTime||t.timeStamp-this.pTime<i.interval,a=!this.pCenter||Es(this.pCenter,t.center)<i.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,a&&s?this.count+=1:this.count=1,this._input=t,0===this.count%i.taps)return this.hasRequireFailures()?(this._timer=setTimeout((function(){e.state=8,e.tryEmit()}),i.interval),2):8}return 32},i.failTimeout=function(){var t=this;return this._timer=setTimeout((function(){t.state=32}),this.options.interval),32},i.reset=function(){clearTimeout(this._timer)},i.emit=function(){8===this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))},e}(sa),la=function(t){function e(e){return void 0===e&&(e={}),t.call(this,is({pointers:1},e))||this}ns(e,t);var i=e.prototype;return i.attrTest=function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},i.process=function(t){var e=this.state,i=t.eventType,n=6&e,o=this.attrTest(t);return n&&(8&i||!o)?16|e:n||o?4&i?8|e:2&e?4|e:2:32},e}(sa);function ha(t){return 16===t?"down":8===t?"up":2===t?"left":4===t?"right":""}var ua=function(t){function e(e){var i;return void 0===e&&(e={}),(i=t.call(this,is({event:"pan",threshold:10,pointers:1,direction:30},e))||this).pX=null,i.pY=null,i}ns(e,t);var i=e.prototype;return i.getTouchAction=function(){var t=this.options.direction,e=[];return 6&t&&e.push("pan-y"),24&t&&e.push("pan-x"),e},i.directionTest=function(t){var e=this.options,i=!0,n=t.distance,o=t.direction,r=t.deltaX,s=t.deltaY;return o&e.direction||(6&e.direction?(o=0===r?1:r<0?2:4,i=r!==this.pX,n=Math.abs(t.deltaX)):(o=0===s?1:s<0?8:16,i=s!==this.pY,n=Math.abs(t.deltaY))),t.direction=o,i&&n>e.threshold&&o&e.direction},i.attrTest=function(t){return la.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},i.emit=function(e){this.pX=e.deltaX,this.pY=e.deltaY;var i=ha(e.direction);i&&(e.additionalEvent=this.options.event+i),t.prototype.emit.call(this,e)},e}(la),ca=function(t){function e(e){return void 0===e&&(e={}),t.call(this,is({event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},e))||this}ns(e,t);var i=e.prototype;return i.getTouchAction=function(){return ua.prototype.getTouchAction.call(this)},i.attrTest=function(e){var i,n=this.options.direction;return 30&n?i=e.overallVelocity:6&n?i=e.overallVelocityX:24&n&&(i=e.overallVelocityY),t.prototype.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers===this.options.pointers&&us(i)>this.options.velocity&&4&e.eventType},i.emit=function(t){var e=ha(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)},e}(la),da=function(t){function e(e){return void 0===e&&(e={}),t.call(this,is({event:"pinch",threshold:0,pointers:2},e))||this}ns(e,t);var i=e.prototype;return i.getTouchAction=function(){return["none"]},i.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},i.emit=function(e){if(1!==e.scale){var i=e.scale<1?"in":"out";e.additionalEvent=this.options.event+i}t.prototype.emit.call(this,e)},e}(la),pa=function(t){function e(e){return void 0===e&&(e={}),t.call(this,is({event:"rotate",threshold:0,pointers:2},e))||this}ns(e,t);var i=e.prototype;return i.getTouchAction=function(){return["none"]},i.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)},e}(la),ma=function(t){function e(e){var i;return void 0===e&&(e={}),(i=t.call(this,is({event:"press",pointers:1,time:251,threshold:9},e))||this)._timer=null,i._input=null,i}ns(e,t);var i=e.prototype;return i.getTouchAction=function(){return["auto"]},i.process=function(t){var e=this,i=this.option