vis-util 5.0.0 → 5.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/declarations/deep-object-assign.d.ts +0 -2
- package/declarations/deep-object-assign.d.ts.map +1 -1
- package/declarations/entry-esnext.d.ts +1 -0
- package/declarations/entry-esnext.d.ts.map +1 -1
- package/declarations/random/alea.d.ts +0 -1
- package/declarations/random/alea.d.ts.map +1 -1
- package/declarations/shared/configurator-types.d.ts +13 -7
- package/declarations/shared/configurator-types.d.ts.map +1 -1
- package/declarations/util.d.ts +0 -58
- package/declarations/util.d.ts.map +1 -1
- package/esnext/esm/vis-util.js +2351 -73
- package/esnext/esm/vis-util.js.map +1 -1
- package/esnext/esm/vis-util.min.js +3 -3
- package/esnext/esm/vis-util.min.js.map +1 -1
- package/esnext/umd/vis-util.js +2364 -77
- package/esnext/umd/vis-util.js.map +1 -1
- package/esnext/umd/vis-util.min.js +3 -3
- package/esnext/umd/vis-util.min.js.map +1 -1
- package/package.json +24 -27
- package/peer/esm/vis-util.js +9378 -3038
- package/peer/esm/vis-util.js.map +1 -1
- package/peer/esm/vis-util.min.js +9 -3
- package/peer/esm/vis-util.min.js.map +1 -1
- package/peer/umd/vis-util.js +11208 -4861
- package/peer/umd/vis-util.js.map +1 -1
- package/peer/umd/vis-util.min.js +9 -3
- package/peer/umd/vis-util.min.js.map +1 -1
- package/standalone/esm/vis-util.js +9378 -3038
- package/standalone/esm/vis-util.js.map +1 -1
- package/standalone/esm/vis-util.min.js +9 -3
- package/standalone/esm/vis-util.min.js.map +1 -1
- package/standalone/umd/vis-util.js +11208 -4861
- package/standalone/umd/vis-util.js.map +1 -1
- package/standalone/umd/vis-util.min.js +9 -3
- package/standalone/umd/vis-util.min.js.map +1 -1
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
*
|
|
5
5
|
* utilitie collection for visjs
|
|
6
6
|
*
|
|
7
|
-
* @version 5.0.
|
|
8
|
-
* @date
|
|
7
|
+
* @version 5.0.3
|
|
8
|
+
* @date 2022-03-04T18:53:16.725Z
|
|
9
9
|
*
|
|
10
10
|
* @copyright (c) 2011-2017 Almende B.V, http://almende.com
|
|
11
11
|
* @copyright (c) 2017-2019 visjs contributors, https://github.com/visjs
|
|
@@ -23,5 +23,11 @@
|
|
|
23
23
|
*
|
|
24
24
|
* vis.js may be distributed under either license.
|
|
25
25
|
*/
|
|
26
|
-
!function(t,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports):"function"==typeof define&&define.amd?define(["exports"],r):r((t="undefined"!=typeof globalThis?globalThis:t||self).vis=t.vis||{})}(this,(function(t){var r=function(t){try{return!!t()}catch(t){return!0}},e={}.toString,n=function(t){return e.call(t).slice(8,-1)},o="".split,i=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==n(t)?o.call(t,""):Object(t)}:Object,a=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},u=function(t){return i(a(t))},c={},f="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function l(t){var r={exports:{}};return t(r,r.exports),r.exports}var s=function(t){return t&&t.Math==Math&&t},p=s("object"==typeof globalThis&&globalThis)||s("object"==typeof window&&window)||s("object"==typeof self&&self)||s("object"==typeof f&&f)||function(){return this}()||Function("return this")(),v=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),h=function(t){return"object"==typeof t?null!==t:"function"==typeof t},d=p.document,y=h(d)&&h(d.createElement),g=function(t){return y?d.createElement(t):{}},b=!v&&!r((function(){return 7!=Object.defineProperty(g("div"),"a",{get:function(){return 7}}).a})),m=function(t){if(!h(t))throw TypeError(String(t)+" is not an object");return t},O=function(t,r){if(!h(t))return t;var e,n;if(r&&"function"==typeof(e=t.toString)&&!h(n=e.call(t)))return n;if("function"==typeof(e=t.valueOf)&&!h(n=e.call(t)))return n;if(!r&&"function"==typeof(e=t.toString)&&!h(n=e.call(t)))return n;throw TypeError("Can't convert object to primitive value")},w=Object.defineProperty,S={f:v?w:function(t,r,e){if(m(t),r=O(r,!0),m(e),b)try{return w(t,r,e)}catch(t){}if("get"in e||"set"in e)throw TypeError("Accessors not supported");return"value"in e&&(t[r]=e.value),t}},j=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}},A=v?function(t,r,e){return S.f(t,r,j(1,e))}:function(t,r,e){return t[r]=e,t},E="__core-js_shared__",x=p[E]||function(t,r){try{A(p,t,r)}catch(e){p[t]=r}return r}(E,{}),P=Function.toString;"function"!=typeof x.inspectSource&&(x.inspectSource=function(t){return P.call(t)});var T,k,M,C=x.inspectSource,I=p.WeakMap,L="function"==typeof I&&/native code/.test(C(I)),D={}.hasOwnProperty,N=function(t,r){return D.call(t,r)},R=l((function(t){(t.exports=function(t,r){return x[t]||(x[t]=void 0!==r?r:{})})("versions",[]).push({version:"3.8.1",mode:"pure",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),_=0,F=Math.random(),B=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++_+F).toString(36)},G=R("keys"),V=function(t){return G[t]||(G[t]=B(t))},H={},Q=p.WeakMap;if(L){var $=x.state||(x.state=new Q),W=$.get,z=$.has,U=$.set;T=function(t,r){return r.facade=t,U.call($,t,r),r},k=function(t){return W.call($,t)||{}},M=function(t){return z.call($,t)}}else{var q=V("state");H[q]=!0,T=function(t,r){return r.facade=t,A(t,q,r),r},k=function(t){return N(t,q)?t[q]:{}},M=function(t){return N(t,q)}}var J,K,Y,X={set:T,get:k,has:M,enforce:function(t){return M(t)?k(t):T(t,{})},getterFor:function(t){return function(r){var e;if(!h(r)||(e=k(r)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return e}}},Z={}.propertyIsEnumerable,tt=Object.getOwnPropertyDescriptor,rt={f:tt&&!Z.call({1:2},1)?function(t){var r=tt(this,t);return!!r&&r.enumerable}:Z},et=Object.getOwnPropertyDescriptor,nt={f:v?et:function(t,r){if(t=u(t),r=O(r,!0),b)try{return et(t,r)}catch(t){}if(N(t,r))return j(!rt.f.call(t,r),t[r])}},ot=/#|\.prototype\./,it=function(t,e){var n=ut[at(t)];return n==ft||n!=ct&&("function"==typeof e?r(e):!!e)},at=it.normalize=function(t){return String(t).replace(ot,".").toLowerCase()},ut=it.data={},ct=it.NATIVE="N",ft=it.POLYFILL="P",lt=it,st={},pt=function(t,r,e){if(function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function")}(t),void 0===r)return t;switch(e){case 0:return function(){return t.call(r)};case 1:return function(e){return t.call(r,e)};case 2:return function(e,n){return t.call(r,e,n)};case 3:return function(e,n,o){return t.call(r,e,n,o)}}return function(){return t.apply(r,arguments)}},vt=nt.f,ht=function(t){var r=function(r,e,n){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(r);case 2:return new t(r,e)}return new t(r,e,n)}return t.apply(this,arguments)};return r.prototype=t.prototype,r},dt=function(t,r){var e,n,o,i,a,u,c,f,l=t.target,s=t.global,v=t.stat,h=t.proto,d=s?p:v?p[l]:(p[l]||{}).prototype,y=s?st:st[l]||(st[l]={}),g=y.prototype;for(o in r)e=!lt(s?o:l+(v?".":"#")+o,t.forced)&&d&&N(d,o),a=y[o],e&&(u=t.noTargetGet?(f=vt(d,o))&&f.value:d[o]),i=e&&u?u:r[o],e&&typeof a==typeof i||(c=t.bind&&e?pt(i,p):t.wrap&&e?ht(i):h&&"function"==typeof i?pt(Function.call,i):i,(t.sham||i&&i.sham||a&&a.sham)&&A(c,"sham",!0),y[o]=c,h&&(N(st,n=l+"Prototype")||A(st,n,{}),st[n][o]=i,t.real&&g&&!g[o]&&A(g,o,i)))},yt=function(t){return Object(a(t))},gt=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),bt=V("IE_PROTO"),mt=Object.prototype,Ot=gt?Object.getPrototypeOf:function(t){return t=yt(t),N(t,bt)?t[bt]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?mt:null},wt=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())})),St=wt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,jt=R("wks"),At=p.Symbol,Et=St?At:At&&At.withoutSetter||B,xt=function(t){return N(jt,t)||(wt&&N(At,t)?jt[t]=At[t]:jt[t]=Et("Symbol."+t)),jt[t]},Pt=(xt("iterator"),!1);[].keys&&("next"in(Y=[].keys())?(K=Ot(Ot(Y)))!==Object.prototype&&(J=K):Pt=!0),null==J&&(J={});var Tt,kt={IteratorPrototype:J,BUGGY_SAFARI_ITERATORS:Pt},Mt=Math.ceil,Ct=Math.floor,It=function(t){return isNaN(t=+t)?0:(t>0?Ct:Mt)(t)},Lt=Math.min,Dt=function(t){return t>0?Lt(It(t),9007199254740991):0},Nt=Math.max,Rt=Math.min,_t=function(t,r){var e=It(t);return e<0?Nt(e+r,0):Rt(e,r)},Ft=function(t){return function(r,e,n){var o,i=u(r),a=Dt(i.length),c=_t(n,a);if(t&&e!=e){for(;a>c;)if((o=i[c++])!=o)return!0}else for(;a>c;c++)if((t||c in i)&&i[c]===e)return t||c||0;return!t&&-1}},Bt={includes:Ft(!0),indexOf:Ft(!1)},Gt=Bt.indexOf,Vt=function(t,r){var e,n=u(t),o=0,i=[];for(e in n)!N(H,e)&&N(n,e)&&i.push(e);for(;r.length>o;)N(n,e=r[o++])&&(~Gt(i,e)||i.push(e));return i},Ht=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Qt=Object.keys||function(t){return Vt(t,Ht)},$t=v?Object.defineProperties:function(t,r){m(t);for(var e,n=Qt(r),o=n.length,i=0;o>i;)S.f(t,e=n[i++],r[e]);return t},Wt=function(t){return"function"==typeof t?t:void 0},zt=function(t,r){return arguments.length<2?Wt(st[t])||Wt(p[t]):st[t]&&st[t][r]||p[t]&&p[t][r]},Ut=zt("document","documentElement"),qt=V("IE_PROTO"),Jt=function(){},Kt=function(t){return"<script>"+t+"</"+"script>"},Yt=function(){try{Tt=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,r;Yt=Tt?function(t){t.write(Kt("")),t.close();var r=t.parentWindow.Object;return t=null,r}(Tt):((r=g("iframe")).style.display="none",Ut.appendChild(r),r.src=String("javascript:"),(t=r.contentWindow.document).open(),t.write(Kt("document.F=Object")),t.close(),t.F);for(var e=Ht.length;e--;)delete Yt.prototype[Ht[e]];return Yt()};H[qt]=!0;var Xt=Object.create||function(t,r){var e;return null!==t?(Jt.prototype=m(t),e=new Jt,Jt.prototype=null,e[qt]=t):e=Yt(),void 0===r?e:$t(e,r)},Zt={};Zt[xt("toStringTag")]="z";var tr="[object z]"===String(Zt),rr=xt("toStringTag"),er="Arguments"==n(function(){return arguments}()),nr=tr?n:function(t){var r,e,o;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,r){try{return t[r]}catch(t){}}(r=Object(t),rr))?e:er?n(r):"Object"==(o=n(r))&&"function"==typeof r.callee?"Arguments":o},or=tr?{}.toString:function(){return"[object "+nr(this)+"]"},ir=S.f,ar=xt("toStringTag"),ur=function(t,r,e,n){if(t){var o=e?t:t.prototype;N(o,ar)||ir(o,ar,{configurable:!0,value:r}),n&&!tr&&A(o,"toString",or)}},cr=kt.IteratorPrototype,fr=function(){return this},lr=(Object.setPrototypeOf||"__proto__"in{}&&function(){var t,r=!1,e={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(e,[]),r=e instanceof Array}catch(t){}}(),function(t,r,e,n){n&&n.enumerable?t[r]=e:A(t,r,e)}),sr=kt.IteratorPrototype,pr=kt.BUGGY_SAFARI_ITERATORS,vr=xt("iterator"),hr="keys",dr="values",yr="entries",gr=function(){return this},br=function(t,r,e,n,o,i,a){!function(t,r,e){var n=r+" Iterator";t.prototype=Xt(cr,{next:j(1,e)}),ur(t,n,!1,!0),c[n]=fr}(e,r,n);var u,f,l,s=function(t){if(t===o&&y)return y;if(!pr&&t in h)return h[t];switch(t){case hr:case dr:case yr:return function(){return new e(this,t)}}return function(){return new e(this)}},p=r+" Iterator",v=!1,h=t.prototype,d=h[vr]||h["@@iterator"]||o&&h[o],y=!pr&&d||s(o),g="Array"==r&&h.entries||d;if(g&&(u=Ot(g.call(new t)),sr!==Object.prototype&&u.next&&(ur(u,p,!0,!0),c[p]=gr)),o==dr&&d&&d.name!==dr&&(v=!0,y=function(){return d.call(this)}),a&&h[vr]!==y&&A(h,vr,y),c[r]=y,o)if(f={values:s(dr),keys:i?y:s(hr),entries:s(yr)},a)for(l in f)(pr||v||!(l in h))&&lr(h,l,f[l]);else dt({target:r,proto:!0,forced:pr||v},f);return f},mr="Array Iterator",Or=X.set,wr=X.getterFor(mr);br(Array,"Array",(function(t,r){Or(this,{type:mr,target:u(t),index:0,kind:r})}),(function(){var t=wr(this),r=t.target,e=t.kind,n=t.index++;return!r||n>=r.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==e?{value:n,done:!1}:"values"==e?{value:r[n],done:!1}:{value:[n,r[n]],done:!1}}),"values");c.Arguments=c.Array;var Sr=xt("toStringTag");for(var jr 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 Ar=p[jr],Er=Ar&&Ar.prototype;Er&&nr(Er)!==Sr&&A(Er,Sr,jr),c[jr]=c.Array}var xr=function(t){return function(r,e){var n,o,i=String(a(r)),u=It(e),c=i.length;return u<0||u>=c?t?"":void 0:(n=i.charCodeAt(u))<55296||n>56319||u+1===c||(o=i.charCodeAt(u+1))<56320||o>57343?t?i.charAt(u):n:t?i.slice(u,u+2):o-56320+(n-55296<<10)+65536}},Pr={codeAt:xr(!1),charAt:xr(!0)}.charAt,Tr="String Iterator",kr=X.set,Mr=X.getterFor(Tr);br(String,"String",(function(t){kr(this,{type:Tr,string:String(t),index:0})}),(function(){var t,r=Mr(this),e=r.string,n=r.index;return n>=e.length?{value:void 0,done:!0}:(t=Pr(e,n),r.index+=t.length,{value:t,done:!1})}));var Cr=xt("iterator"),Ir=function(t){if(null!=t)return t[Cr]||t["@@iterator"]||c[nr(t)]},Lr=function(t){var r=Ir(t);if("function"!=typeof r)throw TypeError(String(t)+" is not iterable");return m(r.call(t))},Dr=Ir,Nr=function(t,r,e,n){try{return n?r(m(e)[0],e[1]):r(e)}catch(r){throw function(t){var r=t.return;if(void 0!==r)m(r.call(t)).value}(t),r}},Rr=xt("iterator"),_r=Array.prototype,Fr=function(t){return void 0!==t&&(c.Array===t||_r[Rr]===t)},Br=function(t,r,e){var n=O(r);n in t?S.f(t,n,j(0,e)):t[n]=e},Gr=xt("iterator"),Vr=!1;try{var Hr=0,Qr={next:function(){return{done:!!Hr++}},return:function(){Vr=!0}};Qr[Gr]=function(){return this},Array.from(Qr,(function(){throw 2}))}catch(t){}var $r=!function(t,r){if(!r&&!Vr)return!1;var e=!1;try{var n={};n[Gr]=function(){return{next:function(){return{done:e=!0}}}},t(n)}catch(t){}return e}((function(t){Array.from(t)}));dt({target:"Array",stat:!0,forced:$r},{from:function(t){var r,e,n,o,i,a,u=yt(t),c="function"==typeof this?this:Array,f=arguments.length,l=f>1?arguments[1]:void 0,s=void 0!==l,p=Ir(u),v=0;if(s&&(l=pt(l,f>2?arguments[2]:void 0,2)),null==p||c==Array&&Fr(p))for(e=new c(r=Dt(u.length));r>v;v++)a=s?l(u[v],v):u[v],Br(e,v,a);else for(i=(o=p.call(u)).next,e=new c;!(n=i.call(o)).done;v++)a=s?Nr(o,l,[n.value,v],!0):n.value,Br(e,v,a);return e.length=v,e}});var Wr=st.Array.from,zr=Wr,Ur=r((function(){Qt(1)}));dt({target:"Object",stat:!0,forced:Ur},{keys:function(t){return Qt(yt(t))}});var qr,Jr,Kr=st.Object.keys,Yr=Array.isArray||function(t){return"Array"==n(t)},Xr=xt("species"),Zr=function(t,r){var e;return Yr(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!Yr(e.prototype)?h(e)&&null===(e=e[Xr])&&(e=void 0):e=void 0),new(void 0===e?Array:e)(0===r?0:r)},te=[].push,re=function(t){var r=1==t,e=2==t,n=3==t,o=4==t,a=6==t,u=7==t,c=5==t||a;return function(f,l,s,p){for(var v,h,d=yt(f),y=i(d),g=pt(l,s,3),b=Dt(y.length),m=0,O=p||Zr,w=r?O(f,b):e||u?O(f,0):void 0;b>m;m++)if((c||m in y)&&(h=g(v=y[m],m,d),t))if(r)w[m]=h;else if(h)switch(t){case 3:return!0;case 5:return v;case 6:return m;case 2:te.call(w,v)}else switch(t){case 4:return!1;case 7:te.call(w,v)}return a?-1:n||o?o:w}},ee={forEach:re(0),map:re(1),filter:re(2),some:re(3),every:re(4),find:re(5),findIndex:re(6),filterOut:re(7)},ne=zt("navigator","userAgent")||"",oe=p.process,ie=oe&&oe.versions,ae=ie&&ie.v8;ae?Jr=(qr=ae.split("."))[0]+qr[1]:ne&&(!(qr=ne.match(/Edge\/(\d+)/))||qr[1]>=74)&&(qr=ne.match(/Chrome\/(\d+)/))&&(Jr=qr[1]);var ue=Jr&&+Jr,ce=xt("species"),fe=function(t){return ue>=51||!r((function(){var r=[];return(r.constructor={})[ce]=function(){return{foo:1}},1!==r[t](Boolean).foo}))},le=Object.defineProperty,se={},pe=function(t){throw t},ve=function(t,e){if(N(se,t))return se[t];e||(e={});var n=[][t],o=!!N(e,"ACCESSORS")&&e.ACCESSORS,i=N(e,0)?e[0]:pe,a=N(e,1)?e[1]:void 0;return se[t]=!!n&&!r((function(){if(o&&!v)return!0;var t={length:-1};o?le(t,1,{enumerable:!0,get:pe}):t[1]=1,n.call(t,i,a)}))},he=ee.map,de=fe("map"),ye=ve("map");dt({target:"Array",proto:!0,forced:!de||!ye},{map:function(t){return he(this,t,arguments.length>1?arguments[1]:void 0)}});var ge=function(t){return st[t+"Prototype"]},be=ge("Array").map,me=Array.prototype,Oe=function(t){var r=t.map;return t===me||t instanceof Array&&r===me.map?be:r};dt({target:"Array",stat:!0},{isArray:Yr});var we=st.Array.isArray,Se=we,je={f:xt},Ae=S.f,Ee=function(t){var r=st.Symbol||(st.Symbol={});N(r,t)||Ae(r,t,{value:je.f(t)})};Ee("iterator");var xe=je.f("iterator"),Pe=xt("isConcatSpreadable"),Te=9007199254740991,ke="Maximum allowed index exceeded",Me=ue>=51||!r((function(){var t=[];return t[Pe]=!1,t.concat()[0]!==t})),Ce=fe("concat"),Ie=function(t){if(!h(t))return!1;var r=t[Pe];return void 0!==r?!!r:Yr(t)};dt({target:"Array",proto:!0,forced:!Me||!Ce},{concat:function(t){var r,e,n,o,i,a=yt(this),u=Zr(a,0),c=0;for(r=-1,n=arguments.length;r<n;r++)if(Ie(i=-1===r?a:arguments[r])){if(c+(o=Dt(i.length))>Te)throw TypeError(ke);for(e=0;e<o;e++,c++)e in i&&Br(u,c,i[e])}else{if(c>=Te)throw TypeError(ke);Br(u,c++,i)}return u.length=c,u}});var Le=Ht.concat("length","prototype"),De={f:Object.getOwnPropertyNames||function(t){return Vt(t,Le)}},Ne=De.f,Re={}.toString,_e="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Fe={f:function(t){return _e&&"[object Window]"==Re.call(t)?function(t){try{return Ne(t)}catch(t){return _e.slice()}}(t):Ne(u(t))}},Be={f:Object.getOwnPropertySymbols},Ge=ee.forEach,Ve=V("hidden"),He="Symbol",Qe=xt("toPrimitive"),$e=X.set,We=X.getterFor(He),ze=Object.prototype,Ue=p.Symbol,qe=zt("JSON","stringify"),Je=nt.f,Ke=S.f,Ye=Fe.f,Xe=rt.f,Ze=R("symbols"),tn=R("op-symbols"),rn=R("string-to-symbol-registry"),en=R("symbol-to-string-registry"),nn=R("wks"),on=p.QObject,an=!on||!on.prototype||!on.prototype.findChild,un=v&&r((function(){return 7!=Xt(Ke({},"a",{get:function(){return Ke(this,"a",{value:7}).a}})).a}))?function(t,r,e){var n=Je(ze,r);n&&delete ze[r],Ke(t,r,e),n&&t!==ze&&Ke(ze,r,n)}:Ke,cn=function(t,r){var e=Ze[t]=Xt(Ue.prototype);return $e(e,{type:He,tag:t,description:r}),v||(e.description=r),e},fn=St?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof Ue},ln=function(t,r,e){t===ze&&ln(tn,r,e),m(t);var n=O(r,!0);return m(e),N(Ze,n)?(e.enumerable?(N(t,Ve)&&t[Ve][n]&&(t[Ve][n]=!1),e=Xt(e,{enumerable:j(0,!1)})):(N(t,Ve)||Ke(t,Ve,j(1,{})),t[Ve][n]=!0),un(t,n,e)):Ke(t,n,e)},sn=function(t,r){m(t);var e=u(r),n=Qt(e).concat(dn(e));return Ge(n,(function(r){v&&!pn.call(e,r)||ln(t,r,e[r])})),t},pn=function(t){var r=O(t,!0),e=Xe.call(this,r);return!(this===ze&&N(Ze,r)&&!N(tn,r))&&(!(e||!N(this,r)||!N(Ze,r)||N(this,Ve)&&this[Ve][r])||e)},vn=function(t,r){var e=u(t),n=O(r,!0);if(e!==ze||!N(Ze,n)||N(tn,n)){var o=Je(e,n);return!o||!N(Ze,n)||N(e,Ve)&&e[Ve][n]||(o.enumerable=!0),o}},hn=function(t){var r=Ye(u(t)),e=[];return Ge(r,(function(t){N(Ze,t)||N(H,t)||e.push(t)})),e},dn=function(t){var r=t===ze,e=Ye(r?tn:u(t)),n=[];return Ge(e,(function(t){!N(Ze,t)||r&&!N(ze,t)||n.push(Ze[t])})),n};if(wt||(lr((Ue=function(){if(this instanceof Ue)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,r=B(t),e=function(t){this===ze&&e.call(tn,t),N(this,Ve)&&N(this[Ve],r)&&(this[Ve][r]=!1),un(this,r,j(1,t))};return v&&an&&un(ze,r,{configurable:!0,set:e}),cn(r,t)}).prototype,"toString",(function(){return We(this).tag})),lr(Ue,"withoutSetter",(function(t){return cn(B(t),t)})),rt.f=pn,S.f=ln,nt.f=vn,De.f=Fe.f=hn,Be.f=dn,je.f=function(t){return cn(xt(t),t)},v&&Ke(Ue.prototype,"description",{configurable:!0,get:function(){return We(this).description}})),dt({global:!0,wrap:!0,forced:!wt,sham:!wt},{Symbol:Ue}),Ge(Qt(nn),(function(t){Ee(t)})),dt({target:He,stat:!0,forced:!wt},{for:function(t){var r=String(t);if(N(rn,r))return rn[r];var e=Ue(r);return rn[r]=e,en[e]=r,e},keyFor:function(t){if(!fn(t))throw TypeError(t+" is not a symbol");if(N(en,t))return en[t]},useSetter:function(){an=!0},useSimple:function(){an=!1}}),dt({target:"Object",stat:!0,forced:!wt,sham:!v},{create:function(t,r){return void 0===r?Xt(t):sn(Xt(t),r)},defineProperty:ln,defineProperties:sn,getOwnPropertyDescriptor:vn}),dt({target:"Object",stat:!0,forced:!wt},{getOwnPropertyNames:hn,getOwnPropertySymbols:dn}),dt({target:"Object",stat:!0,forced:r((function(){Be.f(1)}))},{getOwnPropertySymbols:function(t){return Be.f(yt(t))}}),qe){var yn=!wt||r((function(){var t=Ue();return"[null]"!=qe([t])||"{}"!=qe({a:t})||"{}"!=qe(Object(t))}));dt({target:"JSON",stat:!0,forced:yn},{stringify:function(t,r,e){for(var n,o=[t],i=1;arguments.length>i;)o.push(arguments[i++]);if(n=r,(h(r)||void 0!==t)&&!fn(t))return Yr(r)||(r=function(t,r){if("function"==typeof n&&(r=n.call(this,t,r)),!fn(r))return r}),o[1]=r,qe.apply(null,o)}})}Ue.prototype[Qe]||A(Ue.prototype,Qe,Ue.prototype.valueOf),ur(Ue,He),H[Ve]=!0,Ee("asyncIterator"),Ee("hasInstance"),Ee("isConcatSpreadable"),Ee("match"),Ee("matchAll"),Ee("replace"),Ee("search"),Ee("species"),Ee("split"),Ee("toPrimitive"),Ee("toStringTag"),Ee("unscopables"),ur(p.JSON,"JSON",!0);var gn=st.Symbol;Ee("asyncDispose"),Ee("dispose"),Ee("observable"),Ee("patternMatch"),Ee("replaceAll");var bn=gn,mn=l((function(t){function r(e){return t.exports=r="function"==typeof bn&&"symbol"==typeof xe?function(t){return typeof t}:function(t){return t&&"function"==typeof bn&&t.constructor===bn&&t!==bn.prototype?"symbol":typeof t},r(e)}t.exports=r})),On=zt("Reflect","ownKeys")||function(t){var r=De.f(m(t)),e=Be.f;return e?r.concat(e(t)):r};dt({target:"Reflect",stat:!0},{ownKeys:On});var wn=st.Reflect.ownKeys,Sn=fe("slice"),jn=ve("slice",{ACCESSORS:!0,0:0,1:2}),An=xt("species"),En=[].slice,xn=Math.max;dt({target:"Array",proto:!0,forced:!Sn||!jn},{slice:function(t,r){var e,n,o,i=u(this),a=Dt(i.length),c=_t(t,a),f=_t(void 0===r?a:r,a);if(Yr(i)&&("function"!=typeof(e=i.constructor)||e!==Array&&!Yr(e.prototype)?h(e)&&null===(e=e[An])&&(e=void 0):e=void 0,e===Array||void 0===e))return En.call(i,c,f);for(n=new(void 0===e?Array:e)(xn(f-c,0)),o=0;c<f;c++,o++)c in i&&Br(n,o,i[c]);return n.length=o,n}});var Pn=ge("Array").slice,Tn=Array.prototype,kn=function(t){var r=t.slice;return t===Tn||t instanceof Array&&r===Tn.slice?Pn:r},Mn=kn,Cn=we;var In=function(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n};var Ln=function(t){if(Cn(t))return In(t)},Dn=Wr,Nn=xt("iterator"),Rn=function(t){var r=Object(t);return void 0!==r[Nn]||"@@iterator"in r||c.hasOwnProperty(nr(r))};var _n=function(t){if(void 0!==bn&&Rn(Object(t)))return Dn(t)},Fn=kn;var Bn=function(t,r){var e;if(t){if("string"==typeof t)return In(t,r);var n=Fn(e=Object.prototype.toString.call(t)).call(e,8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Dn(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?In(t,r):void 0}};var Gn=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 Vn=function(t){return Ln(t)||_n(t)||Bn(t)||Gn()},Hn=ge("Array").concat,Qn=Array.prototype,$n=function(t){var r=t.concat;return t===Qn||t instanceof Array&&r===Qn.concat?Hn:r},Wn=gn;function zn(t,r){var e;if(void 0===Wn||null==Dr(t)){if(Se(t)||(e=function(t,r){var e;if(!t)return;if("string"==typeof t)return Un(t,r);var n=Mn(e=Object.prototype.toString.call(t)).call(e,8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return zr(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Un(t,r)}(t))||r&&t&&"number"==typeof t.length){e&&(t=e);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){e=Lr(t)},n:function(){var t=e.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==e.return||e.return()}finally{if(u)throw i}}}}function Un(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}var qn=Wn("DELETE");function Jn(){var t=Kn.apply(void 0,arguments);return Xn(t),t}function Kn(){for(var t=arguments.length,r=new Array(t),e=0;e<t;e++)r[e]=arguments[e];if(r.length<2)return r[0];var n;if(r.length>2)return Kn.apply(void 0,$n(n=[Jn(r[0],r[1])]).call(n,Vn(Mn(r).call(r,2))));var o,i=r[0],a=r[1],u=zn(wn(a));try{for(u.s();!(o=u.n()).done;){var c=o.value;Object.prototype.propertyIsEnumerable.call(a,c)&&(a[c]===qn?delete i[c]:null===i[c]||null===a[c]||"object"!==mn(i[c])||"object"!==mn(a[c])||Se(i[c])||Se(a[c])?i[c]=Yn(a[c]):i[c]=Kn(i[c],a[c]))}}catch(t){u.e(t)}finally{u.f()}return i}function Yn(t){return Se(t)?Oe(t).call(t,(function(t){return Yn(t)})):"object"===mn(t)&&null!==t?Kn({},t):t}function Xn(t){for(var r=0,e=Kr(t);r<e.length;r++){var n=e[r];t[n]===qn?delete t[n]:"object"===mn(t[n])&&null!==t[n]&&Xn(t[n])}}var Zn=function(t){if(Cn(t))return t};var to=function(t,r){if(void 0!==bn&&Rn(Object(t))){var e=[],n=!0,o=!1,i=void 0;try{for(var a,u=Lr(t);!(n=(a=u.next()).done)&&(e.push(a.value),!r||e.length!==r);n=!0);}catch(t){o=!0,i=t}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return e}};var ro=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")};var eo=function(t,r){return Zn(t)||to(t,r)||Bn(t,r)||ro()};dt({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}});var no=st.Date.now;function oo(t){var r=function(){for(var t=io(),r=t(" "),e=t(" "),n=t(" "),o=0;o<arguments.length;o++)(r-=t(o<0||arguments.length<=o?void 0:arguments[o]))<0&&(r+=1),(e-=t(o<0||arguments.length<=o?void 0:arguments[o]))<0&&(e+=1),(n-=t(o<0||arguments.length<=o?void 0:arguments[o]))<0&&(n+=1);return[r,e,n]}(t),e=eo(r,3),n=e[0],o=e[1],i=e[2],a=1,u=function(){var t=2091639*n+2.3283064365386963e-10*a;return n=o,o=i,i=t-(a=0|t)};return u.uint32=function(){return 4294967296*u()},u.fract53=function(){return u()+11102230246251565e-32*(2097152*u()|0)},u.algorithm="Alea",u.seed=t,u.version="0.9",u}function io(){var t=4022871197;return function(r){for(var e=r.toString(),n=0;n<e.length;n++){var o=.02519603282416938*(t+=e.charCodeAt(n));o-=t=o>>>0,t=(o*=t)>>>0,t+=4294967296*(o-=t)}return 2.3283064365386963e-10*(t>>>0)}}dt({target:"Object",stat:!0,forced:!v,sham:!v},{defineProperty:S.f});var ao=l((function(t){var r=st.Object,e=t.exports=function(t,e,n){return r.defineProperty(t,e,n)};r.defineProperty.sham&&(e.sham=!0)})),uo=ao;dt({target:"Object",stat:!0,forced:!v,sham:!v},{defineProperties:$t});var co=l((function(t){var r=st.Object,e=t.exports=function(t,e){return r.defineProperties(t,e)};r.defineProperties.sham&&(e.sham=!0)}));dt({target:"Object",stat:!0,sham:!v},{getOwnPropertyDescriptors:function(t){for(var r,e,n=u(t),o=nt.f,i=On(n),a={},c=0;i.length>c;)void 0!==(e=o(n,r=i[c++]))&&Br(a,r,e);return a}});var fo=st.Object.getOwnPropertyDescriptors,lo=nt.f,so=r((function(){lo(1)}));dt({target:"Object",stat:!0,forced:!v||so,sham:!v},{getOwnPropertyDescriptor:function(t,r){return lo(u(t),r)}});var po=l((function(t){var r=st.Object,e=t.exports=function(t,e){return r.getOwnPropertyDescriptor(t,e)};r.getOwnPropertyDescriptor.sham&&(e.sham=!0)})),vo=st.Object.getOwnPropertySymbols;dt({target:"Object",stat:!0,sham:!v},{create:Xt});var ho=st.Object,yo=function(t,r){return ho.create(t,r)},go=ao;var bo,mo=function(t,r,e){return r in t?go(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t},Oo="\t\n\v\f\r \u2028\u2029\ufeff",wo="["+Oo+"]",So=RegExp("^"+wo+wo+"*"),jo=RegExp(wo+wo+"*$"),Ao=function(t){return function(r){var e=String(a(r));return 1&t&&(e=e.replace(So,"")),2&t&&(e=e.replace(jo,"")),e}},Eo={start:Ao(1),end:Ao(2),trim:Ao(3)},xo=Eo.trim;dt({target:"String",proto:!0,forced:(bo="trim",r((function(){return!!Oo[bo]()||"
"!="
"[bo]()||Oo[bo].name!==bo})))},{trim:function(){return xo(this)}});var Po=ge("String").trim,To=String.prototype,ko=function(t){var r=t.trim;return"string"==typeof t||t===To||t instanceof String&&r===To.trim?Po:r},Mo=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){throw 1},1)}))},Co=ee.forEach,Io=Mo("forEach"),Lo=ve("forEach"),Do=Io&&Lo?[].forEach:function(t){return Co(this,t,arguments.length>1?arguments[1]:void 0)};dt({target:"Array",proto:!0,forced:[].forEach!=Do},{forEach:Do});var No=ge("Array").forEach,Ro=Array.prototype,_o={DOMTokenList:!0,NodeList:!0},Fo=function(t){var r=t.forEach;return t===Ro||t instanceof Array&&r===Ro.forEach||_o.hasOwnProperty(nr(t))?No:r},Bo=Bt.indexOf,Go=[].indexOf,Vo=!!Go&&1/[1].indexOf(1,-0)<0,Ho=Mo("indexOf"),Qo=ve("indexOf",{ACCESSORS:!0,1:0});dt({target:"Array",proto:!0,forced:Vo||!Ho||!Qo},{indexOf:function(t){return Vo?Go.apply(this,arguments)||0:Bo(this,t,arguments.length>1?arguments[1]:void 0)}});var $o=ge("Array").indexOf,Wo=Array.prototype,zo=function(t){var r=t.indexOf;return t===Wo||t instanceof Array&&r===Wo.indexOf?$o:r},Uo=Eo.trim,qo=p.parseInt,Jo=/^[+-]?0[Xx]/,Ko=8!==qo(Oo+"08")||22!==qo(Oo+"0x16")?function(t,r){var e=Uo(String(t));return qo(e,r>>>0||(Jo.test(e)?16:10))}:qo;dt({global:!0,forced:parseInt!=Ko},{parseInt:Ko});var Yo=st.parseInt,Xo=rt.f,Zo=function(t){return function(r){for(var e,n=u(r),o=Qt(n),i=o.length,a=0,c=[];i>a;)e=o[a++],v&&!Xo.call(n,e)||c.push(t?[e,n[e]]:n[e]);return c}},ti={entries:Zo(!0),values:Zo(!1)}.values;dt({target:"Object",stat:!0},{values:function(t){return ti(t)}});var ri=st.Object.values,ei=ee.filter,ni=fe("filter"),oi=ve("filter");dt({target:"Array",proto:!0,forced:!ni||!oi},{filter:function(t){return ei(this,t,arguments.length>1?arguments[1]:void 0)}});var ii=ge("Array").filter,ai=Array.prototype,ui=function(t){var r=t.filter;return t===ai||t instanceof Array&&r===ai.filter?ii:r},ci=r((function(){Ot(1)}));dt({target:"Object",stat:!0,forced:ci,sham:!gt},{getPrototypeOf:function(t){return Ot(yt(t))}});var fi=st.Object.getPrototypeOf,li=Bt.includes,si=ve("indexOf",{ACCESSORS:!0,1:0});dt({target:"Array",proto:!0,forced:!si},{includes:function(t){return li(this,t,arguments.length>1?arguments[1]:void 0)}});var pi=ge("Array").includes,vi=xt("match"),hi=function(t){if(function(t){var r;return h(t)&&(void 0!==(r=t[vi])?!!r:"RegExp"==n(t))}(t))throw TypeError("The method doesn't accept regular expressions");return t},di=xt("match");dt({target:"String",proto:!0,forced:!function(t){var r=/./;try{"/./"[t](r)}catch(e){try{return r[di]=!1,"/./"[t](r)}catch(t){}}return!1}("includes")},{includes:function(t){return!!~String(a(this)).indexOf(hi(t),arguments.length>1?arguments[1]:void 0)}});var yi=ge("String").includes,gi=Array.prototype,bi=String.prototype,mi=function(t){var r=t.includes;return t===gi||t instanceof Array&&r===gi.includes?pi:"string"==typeof t||t===bi||t instanceof String&&r===bi.includes?yi:r},Oi=Object.assign,wi=Object.defineProperty,Si=!Oi||r((function(){if(v&&1!==Oi({b:1},Oi(wi({},"a",{enumerable:!0,get:function(){wi(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},r={},e=Symbol(),n="abcdefghijklmnopqrst";return t[e]=7,n.split("").forEach((function(t){r[t]=t})),7!=Oi({},t)[e]||Qt(Oi({},r)).join("")!=n}))?function(t,r){for(var e=yt(t),n=arguments.length,o=1,a=Be.f,u=rt.f;n>o;)for(var c,f=i(arguments[o++]),l=a?Qt(f).concat(a(f)):Qt(f),s=l.length,p=0;s>p;)c=l[p++],v&&!u.call(f,c)||(e[c]=f[c]);return e}:Oi;dt({target:"Object",stat:!0,forced:Object.assign!==Si},{assign:Si});var ji=st.Object.assign;function Ai(t,r){var e;if(void 0===Wn||null==Dr(t)){if(Se(t)||(e=function(t,r){var e;if(!t)return;if("string"==typeof t)return Ei(t,r);var n=Mn(e=Object.prototype.toString.call(t)).call(e,8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return zr(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ei(t,r)}(t))||r&&t&&"number"==typeof t.length){e&&(t=e);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){e=Lr(t)},n:function(){var t=e.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==e.return||e.return()}finally{if(u)throw i}}}}function Ei(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}function xi(t,r){var e=Kr(t);if(vo){var n=vo(t);r&&(n=ui(n).call(n,(function(r){return po(t,r).enumerable}))),e.push.apply(e,n)}return e}function Pi(t){for(var r=1;r<arguments.length;r++){var e,n=null!=arguments[r]?arguments[r]:{};if(r%2)Fo(e=xi(Object(n),!0)).call(e,(function(r){mo(t,r,n[r])}));else if(fo)co(t,fo(n));else{var o;Fo(o=xi(Object(n))).call(o,(function(r){uo(t,r,po(n,r))}))}}return t}var Ti=/^\/?Date\((-?\d+)/i,ki=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,Mi=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,Ci=/^rgb\( *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *\)$/i,Ii=/^rgba\( *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *([01]|0?\.\d+) *\)$/i;function Li(t){return t instanceof Number||"number"==typeof t}function Di(t){return t instanceof String||"string"==typeof t}function Ni(t){return"object"===mn(t)&&null!==t}function Ri(t,r,e,n){var o=!1;!0===n&&(o=null===r[e]&&void 0!==t[e]),o?delete t[e]:t[e]=r[e]}var _i=ji;function Fi(t,r){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];for(var o in r)if(Object.prototype.hasOwnProperty.call(r,o)||!0===e)if("object"===mn(r[o])&&null!==r[o]&&fi(r[o])===Object.prototype)void 0===t[o]?t[o]=Fi({},r[o],e):"object"===mn(t[o])&&null!==t[o]&&fi(t[o])===Object.prototype?Fi(t[o],r[o],e):Ri(t,r,o,n);else if(Se(r[o])){var i;t[o]=Mn(i=r[o]).call(i)}else Ri(t,r,o,n);return t}var Bi=ri;var Gi={asBoolean:function(t,r){return"function"==typeof t&&(t=t()),null!=t?0!=t:r||null},asNumber:function(t,r){return"function"==typeof t&&(t=t()),null!=t?Number(t)||r||null:r||null},asString:function(t,r){return"function"==typeof t&&(t=t()),null!=t?String(t):r||null},asSize:function(t,r){return"function"==typeof t&&(t=t()),Di(t)?t:Li(t)?t+"px":r||null},asElement:function(t,r){return"function"==typeof t&&(t=t()),t||r||null}};function Vi(t){var r;switch(t.length){case 3:case 4:return(r=Mi.exec(t))?{r:Yo(r[1]+r[1],16),g:Yo(r[2]+r[2],16),b:Yo(r[3]+r[3],16)}:null;case 6:case 7:return(r=ki.exec(t))?{r:Yo(r[1],16),g:Yo(r[2],16),b:Yo(r[3],16)}:null;default:return null}}function Hi(t,r,e){var n;return"#"+Mn(n=((1<<24)+(t<<16)+(r<<8)+e).toString(16)).call(n,1)}function Qi(t,r,e){t/=255,r/=255,e/=255;var n=Math.min(t,Math.min(r,e)),o=Math.max(t,Math.max(r,e));return n===o?{h:0,s:0,v:n}:{h:60*((t===n?3:e===n?1:5)-(t===n?r-e:e===n?t-r:e-t)/(o-n))/360,s:(o-n)/o,v:o}}var $i=function(t){var r,e={};return Fo(r=t.split(";")).call(r,(function(t){if(""!=ko(t).call(t)){var r,n,o=t.split(":"),i=ko(r=o[0]).call(r),a=ko(n=o[1]).call(n);e[i]=a}})),e},Wi=function(t){var r;return Oe(r=Kr(t)).call(r,(function(r){return r+": "+t[r]})).join("; ")};function zi(t,r,e){var n,o,i,a=Math.floor(6*t),u=6*t-a,c=e*(1-r),f=e*(1-u*r),l=e*(1-(1-u)*r);switch(a%6){case 0:n=e,o=l,i=c;break;case 1:n=f,o=e,i=c;break;case 2:n=c,o=e,i=l;break;case 3:n=c,o=f,i=e;break;case 4:n=l,o=c,i=e;break;case 5:n=e,o=c,i=f}return{r:Math.floor(255*n),g:Math.floor(255*o),b:Math.floor(255*i)}}function Ui(t,r,e){var n=zi(t,r,e);return Hi(n.r,n.g,n.b)}function qi(t){var r=Vi(t);if(!r)throw new TypeError("'".concat(t,"' is not a valid color."));return Qi(r.r,r.g,r.b)}function Ji(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)}function Ki(t){return Ci.test(t)}function Yi(t){if(null===t||"object"!==mn(t))return null;if(t instanceof Element)return t;var r=yo(t);for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&"object"==mn(t[e])&&(r[e]=Yi(t[e]));return r}t.Alea=function(){for(var t=arguments.length,r=new Array(t),e=0;e<t;e++)r[e]=arguments[e];return oo(r.length?r:[no()])},t.DELETE=qn,t.HSVToHex=Ui,t.HSVToRGB=zi,t.RGBToHSV=Qi,t.RGBToHex=Hi,t.addClassName=function(t,r){var e=t.className.split(" "),n=r.split(" ");e=$n(e).call(e,ui(n).call(n,(function(t){return!mi(e).call(e,t)}))),t.className=e.join(" ")},t.addCssText=function(t,r){var e=$i(t.style.cssText),n=$i(r),o=Pi(Pi({},e),n);t.style.cssText=Wi(o)},t.addEventListener=function(t,r,e,n){var o;t.addEventListener?(void 0===n&&(n=!1),"mousewheel"===r&&mi(o=navigator.userAgent).call(o,"Firefox")&&(r="DOMMouseScroll"),t.addEventListener(r,e,n)):t.attachEvent("on"+r,e)},t.binarySearchCustom=function(t,r,e,n){for(var o=0,i=0,a=t.length-1;i<=a&&o<1e4;){var u=Math.floor((i+a)/2),c=t[u],f=r(void 0===n?c[e]:c[e][n]);if(0==f)return u;-1==f?i=u+1:a=u-1,o++}return-1},t.binarySearchValue=function(t,r,e,n,o){var i,a,u,c,f=0,l=0,s=t.length-1;for(o=null!=o?o:function(t,r){return t==r?0:t<r?-1:1};l<=s&&f<1e4;){if(c=Math.floor(.5*(s+l)),i=t[Math.max(0,c-1)][e],a=t[c][e],u=t[Math.min(t.length-1,c+1)][e],0==o(a,r))return c;if(o(i,r)<0&&o(a,r)>0)return"before"==n?Math.max(0,c-1):c;if(o(a,r)<0&&o(u,r)>0)return"before"==n?c:Math.min(t.length-1,c+1);o(a,r)<0?l=c+1:s=c-1,f++}return-1},t.bridgeObject=Yi,t.copyAndExtendArray=function(t,r){var e;return $n(e=[]).call(e,Vn(t),[r])},t.copyArray=function(t){return Mn(t).call(t)},t.deepExtend=Fi,t.deepObjectAssign=Jn,t.easingFunctions={linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return t*(2-t)},easeInOutQuad:function(t){return t<.5?2*t*t:(4-2*t)*t-1},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return--t*t*t+1},easeInOutCubic:function(t){return t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return 1- --t*t*t*t},easeInOutQuart:function(t){return t<.5?8*t*t*t*t:1-8*--t*t*t*t},easeInQuint:function(t){return t*t*t*t*t},easeOutQuint:function(t){return 1+--t*t*t*t*t},easeInOutQuint:function(t){return t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t}},t.equalArray=function(t,r){if(t.length!==r.length)return!1;for(var e=0,n=t.length;e<n;e++)if(t[e]!=r[e])return!1;return!0},t.extend=_i,t.fillIfDefined=function t(r,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];for(var o in r)if(void 0!==e[o])if(null===e[o]||"object"!==mn(e[o]))Ri(r,e,o,n);else{var i=r[o],a=e[o];Ni(i)&&Ni(a)&&t(i,a,n)}},t.forEach=function(t,r){if(Se(t))for(var e=t.length,n=0;n<e;n++)r(t[n],n,t);else for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&r(t[o],o,t)},t.getAbsoluteLeft=function(t){return t.getBoundingClientRect().left},t.getAbsoluteRight=function(t){return t.getBoundingClientRect().right},t.getAbsoluteTop=function(t){return t.getBoundingClientRect().top},t.getScrollBarWidth=function(){var t=document.createElement("p");t.style.width="100%",t.style.height="200px";var r=document.createElement("div");r.style.position="absolute",r.style.top="0px",r.style.left="0px",r.style.visibility="hidden",r.style.width="200px",r.style.height="150px",r.style.overflow="hidden",r.appendChild(t),document.body.appendChild(r);var e=t.offsetWidth;r.style.overflow="scroll";var n=t.offsetWidth;return e==n&&(n=r.clientWidth),document.body.removeChild(r),e-n},t.getTarget=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.event,r=null;return t&&(t.target?r=t.target:t.srcElement&&(r=t.srcElement)),r instanceof Element&&(null==r.nodeType||3!=r.nodeType||(r=r.parentNode)instanceof Element)?r:null},t.getType=function(t){var r=mn(t);return"object"===r?null===t?"null":t instanceof Boolean?"Boolean":t instanceof Number?"Number":t instanceof String?"String":Se(t)?"Array":t instanceof Date?"Date":"Object":"number"===r?"Number":"boolean"===r?"Boolean":"string"===r?"String":void 0===r?"undefined":r},t.hasParent=function(t,r){for(var e=t;e;){if(e===r)return!0;if(!e.parentNode)return!1;e=e.parentNode}return!1},t.hexToHSV=qi,t.hexToRGB=Vi,t.insertSort=function(t,r){for(var e=0;e<t.length;e++){var n=t[e],o=void 0;for(o=e;o>0&&r(n,t[o-1])<0;o--)t[o]=t[o-1];t[o]=n}return t},t.isDate=function(t){if(t instanceof Date)return!0;if(Di(t)){if(Ti.exec(t))return!0;if(!isNaN(Date.parse(t)))return!0}return!1},t.isNumber=Li,t.isObject=Ni,t.isString=Di,t.isValidHex=Ji,t.isValidRGB=Ki,t.isValidRGBA=function(t){return Ii.test(t)},t.mergeOptions=function(t,r,e){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=function(t){return null!=t},i=function(t){return null!==t&&"object"===mn(t)},a=function(t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))return!1;return!0};if(!i(t))throw new Error("Parameter mergeTarget must be an object");if(!i(r))throw new Error("Parameter options must be an object");if(!o(e))throw new Error("Parameter option must have a value");if(!i(n))throw new Error("Parameter globalOptions must be an object");var u=function(t,r,e){i(t[e])||(t[e]={});var n=r[e],o=t[e];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(o[a]=n[a])},c=r[e],f=i(n)&&!a(n),l=f?n[e]:void 0,s=l?l.enabled:void 0;if(void 0!==c){if("boolean"==typeof c)return i(t[e])||(t[e]={}),void(t[e].enabled=c);if(null===c&&!i(t[e])){if(!o(l))return;t[e]=yo(l)}if(i(c)){var p=!0;void 0!==c.enabled?p=c.enabled:void 0!==s&&(p=l.enabled),u(t,r,e),t[e].enabled=p}}},t.option=Gi,t.overrideOpacity=function(t,r){if(mi(t).call(t,"rgba"))return t;if(mi(t).call(t,"rgb")){var e=t.substr(zo(t).call(t,"(")+1).replace(")","").split(",");return"rgba("+e[0]+","+e[1]+","+e[2]+","+r+")"}var n=Vi(t);return null==n?t:"rgba("+n.r+","+n.g+","+n.b+","+r+")"},t.parseColor=function(t,r){if(Di(t)){var e=t;if(Ki(e)){var n,o=Oe(n=e.substr(4).substr(0,e.length-5).split(",")).call(n,(function(t){return Yo(t)}));e=Hi(o[0],o[1],o[2])}if(!0===Ji(e)){var i=qi(e),a={h:i.h,s:.8*i.s,v:Math.min(1,1.02*i.v)},u={h:i.h,s:Math.min(1,1.25*i.s),v:.8*i.v},c=Ui(u.h,u.s,u.v),f=Ui(a.h,a.s,a.v);return{background:e,border:c,highlight:{background:f,border:c},hover:{background:f,border:c}}}return{background:e,border:e,highlight:{background:e,border:e},hover:{background:e,border:e}}}return r?{background:t.background||r.background,border:t.border||r.border,highlight:Di(t.highlight)?{border:t.highlight,background:t.highlight}:{background:t.highlight&&t.highlight.background||r.highlight.background,border:t.highlight&&t.highlight.border||r.highlight.border},hover:Di(t.hover)?{border:t.hover,background:t.hover}:{border:t.hover&&t.hover.border||r.hover.border,background:t.hover&&t.hover.background||r.hover.background}}:{background:t.background||void 0,border:t.border||void 0,highlight:Di(t.highlight)?{border:t.highlight,background:t.highlight}:{background:t.highlight&&t.highlight.background||void 0,border:t.highlight&&t.highlight.border||void 0},hover:Di(t.hover)?{border:t.hover,background:t.hover}:{border:t.hover&&t.hover.border||void 0,background:t.hover&&t.hover.background||void 0}}},t.preventDefault=function(t){t||(t=window.event),t&&(t.preventDefault?t.preventDefault():t.returnValue=!1)},t.pureDeepObjectAssign=function(t){for(var r,e=arguments.length,n=new Array(e>1?e-1:0),o=1;o<e;o++)n[o-1]=arguments[o];return Jn.apply(void 0,$n(r=[{},t]).call(r,n))},t.recursiveDOMDelete=function t(r){if(r)for(;!0===r.hasChildNodes();){var e=r.firstChild;e&&(t(e),r.removeChild(e))}},t.removeClassName=function(t,r){var e=t.className.split(" "),n=r.split(" ");e=ui(e).call(e,(function(t){return!mi(n).call(n,t)})),t.className=e.join(" ")},t.removeCssText=function(t,r){var e=$i(t.style.cssText),n=$i(r);for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&delete e[o];t.style.cssText=Wi(e)},t.removeEventListener=function(t,r,e,n){var o;t.removeEventListener?(void 0===n&&(n=!1),"mousewheel"===r&&mi(o=navigator.userAgent).call(o,"Firefox")&&(r="DOMMouseScroll"),t.removeEventListener(r,e,n)):t.detachEvent("on"+r,e)},t.selectiveBridgeObject=function(t,r){if(null!==r&&"object"===mn(r)){for(var e=yo(r),n=0;n<t.length;n++)Object.prototype.hasOwnProperty.call(r,t[n])&&"object"==mn(r[t[n]])&&(e[t[n]]=Yi(r[t[n]]));return e}return null},t.selectiveDeepExtend=function(t,r,e){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(Se(e))throw new TypeError("Arrays are not supported by deepExtend");for(var o=0;o<t.length;o++){var i=t[o];if(Object.prototype.hasOwnProperty.call(e,i))if(e[i]&&e[i].constructor===Object)void 0===r[i]&&(r[i]={}),r[i].constructor===Object?Fi(r[i],e[i],!1,n):Ri(r,e,i,n);else{if(Se(e[i]))throw new TypeError("Arrays are not supported by deepExtend");Ri(r,e,i,n)}}return r},t.selectiveExtend=function(t,r){if(!Se(t))throw new Error("Array with property names expected as first argument");for(var e=arguments.length,n=new Array(e>2?e-2:0),o=2;o<e;o++)n[o-2]=arguments[o];for(var i=0,a=n;i<a.length;i++)for(var u=a[i],c=0;c<t.length;c++){var f=t[c];u&&Object.prototype.hasOwnProperty.call(u,f)&&(r[f]=u[f])}return r},t.selectiveNotDeepExtend=function(t,r,e){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(Se(e))throw new TypeError("Arrays are not supported by deepExtend");for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)&&!mi(t).call(t,o))if(e[o]&&e[o].constructor===Object)void 0===r[o]&&(r[o]={}),r[o].constructor===Object?Fi(r[o],e[o]):Ri(r,e,o,n);else if(Se(e[o])){r[o]=[];for(var i=0;i<e[o].length;i++)r[o].push(e[o][i])}else Ri(r,e,o,n);return r},t.throttle=function(t){var r=!1;return function(){r||(r=!0,requestAnimationFrame((function(){r=!1,t()})))}},t.toArray=Bi,t.topMost=function(t,r){var e;Se(r)||(r=[r]);var n,o=Ai(t);try{for(o.s();!(n=o.n()).done;){var i=n.value;if(i){e=i[r[0]];for(var a=1;a<r.length;a++)e&&(e=e[r[a]]);if(void 0!==e)break}}}catch(t){o.e(t)}finally{o.f()}return e},t.updateProperty=function(t,r,e){return t[r]!==e&&(t[r]=e,!0)},Object.defineProperty(t,"__esModule",{value:!0})}));
|
|
26
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).vis=t.vis||{})}(this,(function(t){var e,n,r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},i=Math.ceil,o=Math.floor,a=function(t){return isNaN(t=+t)?0:(t>0?o:i)(t)},s={},c=function(t){return t&&t.Math==Math&&t},l=c("object"==typeof globalThis&&globalThis)||c("object"==typeof window&&window)||c("object"==typeof self&&self)||c("object"==typeof r&&r)||function(){return this}()||Function("return this")(),u=s,h=l,f=function(t){return"function"==typeof t?t:void 0},p=function(t,e){return arguments.length<2?f(u[t])||f(h[t]):u[t]&&u[t][e]||h[t]&&h[t][e]},v=p("navigator","userAgent")||"",d=l,g=v,y=d.process,m=d.Deno,b=y&&y.versions||m&&m.version,k=b&&b.v8;k?n=(e=k.split("."))[0]<4?1:e[0]+e[1]:g&&(!(e=g.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=g.match(/Chrome\/(\d+)/))&&(n=e[1]);var w=n&&+n,C=function(t){try{return!!t()}catch(t){return!0}},E=w,O=C,T=!!Object.getOwnPropertySymbols&&!O((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&E&&E<41})),_=T&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,F=p,A=_?function(t){return"symbol"==typeof t}:function(t){var e=F("Symbol");return"function"==typeof e&&Object(t)instanceof e},x=A,S=function(t){if(x(t))throw TypeError("Cannot convert a Symbol value to a string");return String(t)},P=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},D=a,j=S,I=P,R=function(t){return function(e,n){var r,i,o=j(I(e)),a=D(n),s=o.length;return a<0||a>=s?t?"":void 0:(r=o.charCodeAt(a))<55296||r>56319||a+1===s||(i=o.charCodeAt(a+1))<56320||i>57343?t?o.charAt(a):r:t?o.slice(a,a+2):i-56320+(r-55296<<10)+65536}},N={codeAt:R(!1),charAt:R(!0)},M=l,B=function(t,e){try{Object.defineProperty(M,t,{value:e,configurable:!0,writable:!0})}catch(n){M[t]=e}return e},L="__core-js_shared__",H=l[L]||B(L,{}),z=H,W=Function.toString;"function"!=typeof z.inspectSource&&(z.inspectSource=function(t){return W.call(t)});var V=z.inspectSource,q=l.WeakMap,Y="function"==typeof q&&/native code/.test(V(q)),X=function(t){return"object"==typeof t?null!==t:"function"==typeof t},G=!C((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),U={},$=X,Q=l.document,J=$(Q)&&$(Q.createElement),K=function(t){return J?Q.createElement(t):{}},Z=K,tt=!G&&!C((function(){return 7!=Object.defineProperty(Z("div"),"a",{get:function(){return 7}}).a})),et=X,nt=function(t){if(!et(t))throw TypeError(String(t)+" is not an object");return t},rt=X,it={exports:{}},ot=H;(it.exports=function(t,e){return ot[t]||(ot[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.16.2",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"});var at=P,st=function(t){return Object(at(t))},ct=st,lt={}.hasOwnProperty,ut=Object.hasOwn||function(t,e){return lt.call(ct(t),e)},ht=0,ft=Math.random(),pt=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++ht+ft).toString(36)},vt=l,dt=it.exports,gt=ut,yt=pt,mt=T,bt=_,kt=dt("wks"),wt=vt.Symbol,Ct=bt?wt:wt&&wt.withoutSetter||yt,Et=function(t){return gt(kt,t)&&(mt||"string"==typeof kt[t])||(mt&>(wt,t)?kt[t]=wt[t]:kt[t]=Ct("Symbol."+t)),kt[t]},Ot=X,Tt=A,_t=function(t,e){var n,r;if("string"===e&&"function"==typeof(n=t.toString)&&!rt(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!rt(r=n.call(t)))return r;if("string"!==e&&"function"==typeof(n=t.toString)&&!rt(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},Ft=Et("toPrimitive"),At=function(t,e){if(!Ot(t)||Tt(t))return t;var n,r=t[Ft];if(void 0!==r){if(void 0===e&&(e="default"),n=r.call(t,e),!Ot(n)||Tt(n))return n;throw TypeError("Can't convert object to primitive value")}return void 0===e&&(e="number"),_t(t,e)},xt=A,St=function(t){var e=At(t,"string");return xt(e)?e:String(e)},Pt=G,Dt=tt,jt=nt,It=St,Rt=Object.defineProperty;U.f=Pt?Rt:function(t,e,n){if(jt(t),e=It(e),jt(n),Dt)try{return Rt(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t};var Nt,Mt,Bt,Lt=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},Ht=U,zt=Lt,Wt=G?function(t,e,n){return Ht.f(t,e,zt(1,n))}:function(t,e,n){return t[e]=n,t},Vt=it.exports,qt=pt,Yt=Vt("keys"),Xt=function(t){return Yt[t]||(Yt[t]=qt(t))},Gt={},Ut=Y,$t=X,Qt=Wt,Jt=ut,Kt=H,Zt=Xt,te=Gt,ee="Object already initialized",ne=l.WeakMap;if(Ut||Kt.state){var re=Kt.state||(Kt.state=new ne),ie=re.get,oe=re.has,ae=re.set;Nt=function(t,e){if(oe.call(re,t))throw new TypeError(ee);return e.facade=t,ae.call(re,t,e),e},Mt=function(t){return ie.call(re,t)||{}},Bt=function(t){return oe.call(re,t)}}else{var se=Zt("state");te[se]=!0,Nt=function(t,e){if(Jt(t,se))throw new TypeError(ee);return e.facade=t,Qt(t,se,e),e},Mt=function(t){return Jt(t,se)?t[se]:{}},Bt=function(t){return Jt(t,se)}}var ce={set:Nt,get:Mt,has:Bt,enforce:function(t){return Bt(t)?Mt(t):Nt(t,{})},getterFor:function(t){return function(e){var n;if(!$t(e)||(n=Mt(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},le={},ue={},he={}.propertyIsEnumerable,fe=Object.getOwnPropertyDescriptor,pe=fe&&!he.call({1:2},1);ue.f=pe?function(t){var e=fe(this,t);return!!e&&e.enumerable}:he;var ve={}.toString,de=function(t){return ve.call(t).slice(8,-1)},ge=de,ye="".split,me=C((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==ge(t)?ye.call(t,""):Object(t)}:Object,be=me,ke=P,we=function(t){return be(ke(t))},Ce=G,Ee=ue,Oe=Lt,Te=we,_e=St,Fe=ut,Ae=tt,xe=Object.getOwnPropertyDescriptor;le.f=Ce?xe:function(t,e){if(t=Te(t),e=_e(e),Ae)try{return xe(t,e)}catch(t){}if(Fe(t,e))return Oe(!Ee.f.call(t,e),t[e])};var Se,Pe,De,je=C,Ie=/#|\.prototype\./,Re=function(t,e){var n=Me[Ne(t)];return n==Le||n!=Be&&("function"==typeof e?je(e):!!e)},Ne=Re.normalize=function(t){return String(t).replace(Ie,".").toLowerCase()},Me=Re.data={},Be=Re.NATIVE="N",Le=Re.POLYFILL="P",He=Re,ze=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},We=ze,Ve=function(t,e,n){if(We(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}},qe=l,Ye=le.f,Xe=He,Ge=s,Ue=Ve,$e=Wt,Qe=ut,Je=function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e},Ke=function(t,e){var n,r,i,o,a,s,c,l,u=t.target,h=t.global,f=t.stat,p=t.proto,v=h?qe:f?qe[u]:(qe[u]||{}).prototype,d=h?Ge:Ge[u]||(Ge[u]={}),g=d.prototype;for(i in e)n=!Xe(h?i:u+(f?".":"#")+i,t.forced)&&v&&Qe(v,i),a=d[i],n&&(s=t.noTargetGet?(l=Ye(v,i))&&l.value:v[i]),o=n&&s?s:e[i],n&&typeof a==typeof o||(c=t.bind&&n?Ue(o,qe):t.wrap&&n?Je(o):p&&"function"==typeof o?Ue(Function.call,o):o,(t.sham||o&&o.sham||a&&a.sham)&&$e(c,"sham",!0),d[i]=c,p&&(Qe(Ge,r=u+"Prototype")||$e(Ge,r,{}),Ge[r][i]=o,t.real&&g&&!g[i]&&$e(g,i,o)))},Ze=!C((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),tn=ut,en=st,nn=Ze,rn=Xt("IE_PROTO"),on=Object.prototype,an=nn?Object.getPrototypeOf:function(t){return t=en(t),tn(t,rn)?t[rn]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?on:null},sn=C,cn=an,ln=Wt,un=ut,hn=Et("iterator"),fn=!1;[].keys&&("next"in(De=[].keys())?(Pe=cn(cn(De)))!==Object.prototype&&(Se=Pe):fn=!0);var pn=null==Se||sn((function(){var t={};return Se[hn].call(t)!==t}));pn&&(Se={}),pn&&!un(Se,hn)&&ln(Se,hn,(function(){return this}));var vn,dn={IteratorPrototype:Se,BUGGY_SAFARI_ITERATORS:fn},gn=a,yn=Math.min,mn=function(t){return t>0?yn(gn(t),9007199254740991):0},bn=a,kn=Math.max,wn=Math.min,Cn=function(t,e){var n=bn(t);return n<0?kn(n+e,0):wn(n,e)},En=we,On=mn,Tn=Cn,_n=function(t){return function(e,n,r){var i,o=En(e),a=On(o.length),s=Tn(r,a);if(t&&n!=n){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((t||s in o)&&o[s]===n)return t||s||0;return!t&&-1}},Fn={includes:_n(!0),indexOf:_n(!1)},An=ut,xn=we,Sn=Fn.indexOf,Pn=Gt,Dn=function(t,e){var n,r=xn(t),i=0,o=[];for(n in r)!An(Pn,n)&&An(r,n)&&o.push(n);for(;e.length>i;)An(r,n=e[i++])&&(~Sn(o,n)||o.push(n));return o},jn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],In=Dn,Rn=jn,Nn=Object.keys||function(t){return In(t,Rn)},Mn=U,Bn=nt,Ln=Nn,Hn=G?Object.defineProperties:function(t,e){Bn(t);for(var n,r=Ln(e),i=r.length,o=0;i>o;)Mn.f(t,n=r[o++],e[n]);return t},zn=p("document","documentElement"),Wn=nt,Vn=Hn,qn=jn,Yn=Gt,Xn=zn,Gn=K,Un=Xt("IE_PROTO"),$n=function(){},Qn=function(t){return"<script>"+t+"</"+"script>"},Jn=function(t){t.write(Qn("")),t.close();var e=t.parentWindow.Object;return t=null,e},Kn=function(){try{vn=new ActiveXObject("htmlfile")}catch(t){}var t,e;Kn="undefined"!=typeof document?document.domain&&vn?Jn(vn):((e=Gn("iframe")).style.display="none",Xn.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Qn("document.F=Object")),t.close(),t.F):Jn(vn);for(var n=qn.length;n--;)delete Kn.prototype[qn[n]];return Kn()};Yn[Un]=!0;var Zn=Object.create||function(t,e){var n;return null!==t?($n.prototype=Wn(t),n=new $n,$n.prototype=null,n[Un]=t):n=Kn(),void 0===e?n:Vn(n,e)},tr={};tr[Et("toStringTag")]="z";var er="[object z]"===String(tr),nr=er,rr=de,ir=Et("toStringTag"),or="Arguments"==rr(function(){return arguments}()),ar=nr?rr:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),ir))?n:or?rr(e):"Object"==(r=rr(e))&&"function"==typeof e.callee?"Arguments":r},sr=ar,cr=er?{}.toString:function(){return"[object "+sr(this)+"]"},lr=er,ur=U.f,hr=Wt,fr=ut,pr=cr,vr=Et("toStringTag"),dr=function(t,e,n,r){if(t){var i=n?t:t.prototype;fr(i,vr)||ur(i,vr,{configurable:!0,value:e}),r&&!lr&&hr(i,"toString",pr)}},gr={},yr=dn.IteratorPrototype,mr=Zn,br=Lt,kr=dr,wr=gr,Cr=function(){return this};Object.setPrototypeOf||"__proto__"in{}&&function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(t){}}();var Er=Wt,Or=function(t,e,n,r){r&&r.enumerable?t[e]=n:Er(t,e,n)},Tr=Ke,_r=function(t,e,n){var r=e+" Iterator";return t.prototype=mr(yr,{next:br(1,n)}),kr(t,r,!1,!0),wr[r]=Cr,t},Fr=an,Ar=dr,xr=Wt,Sr=Or,Pr=gr,Dr=dn.IteratorPrototype,jr=dn.BUGGY_SAFARI_ITERATORS,Ir=Et("iterator"),Rr="keys",Nr="values",Mr="entries",Br=function(){return this},Lr=function(t,e,n,r,i,o,a){_r(n,e,r);var s,c,l,u=function(t){if(t===i&&d)return d;if(!jr&&t in p)return p[t];switch(t){case Rr:case Nr:case Mr:return function(){return new n(this,t)}}return function(){return new n(this)}},h=e+" Iterator",f=!1,p=t.prototype,v=p[Ir]||p["@@iterator"]||i&&p[i],d=!jr&&v||u(i),g="Array"==e&&p.entries||v;if(g&&(s=Fr(g.call(new t)),Dr!==Object.prototype&&s.next&&(Ar(s,h,!0,!0),Pr[h]=Br)),i==Nr&&v&&v.name!==Nr&&(f=!0,d=function(){return v.call(this)}),a&&p[Ir]!==d&&xr(p,Ir,d),Pr[e]=d,i)if(c={values:u(Nr),keys:o?d:u(Rr),entries:u(Mr)},a)for(l in c)(jr||f||!(l in p))&&Sr(p,l,c[l]);else Tr({target:e,proto:!0,forced:jr||f},c);return c},Hr=N.charAt,zr=S,Wr=ce,Vr=Lr,qr="String Iterator",Yr=Wr.set,Xr=Wr.getterFor(qr);Vr(String,"String",(function(t){Yr(this,{type:qr,string:zr(t),index:0})}),(function(){var t,e=Xr(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=Hr(n,r),e.index+=t.length,{value:t,done:!1})}));var Gr=nt,Ur=nt,$r=function(t){var e=t.return;if(void 0!==e)return Gr(e.call(t)).value},Qr=gr,Jr=Et("iterator"),Kr=Array.prototype,Zr=St,ti=U,ei=Lt,ni=function(t,e,n){var r=Zr(e);r in t?ti.f(t,r,ei(0,n)):t[r]=n},ri=ar,ii=gr,oi=Et("iterator"),ai=function(t){if(null!=t)return t[oi]||t["@@iterator"]||ii[ri(t)]},si=Ve,ci=st,li=function(t,e,n,r){try{return r?e(Ur(n)[0],n[1]):e(n)}catch(e){throw $r(t),e}},ui=function(t){return void 0!==t&&(Qr.Array===t||Kr[Jr]===t)},hi=mn,fi=ni,pi=ai,vi=Et("iterator"),di=!1;try{var gi=0,yi={next:function(){return{done:!!gi++}},return:function(){di=!0}};yi[vi]=function(){return this},Array.from(yi,(function(){throw 2}))}catch(t){}var mi=function(t){var e,n,r,i,o,a,s=ci(t),c="function"==typeof this?this:Array,l=arguments.length,u=l>1?arguments[1]:void 0,h=void 0!==u,f=pi(s),p=0;if(h&&(u=si(u,l>2?arguments[2]:void 0,2)),null==f||c==Array&&ui(f))for(n=new c(e=hi(s.length));e>p;p++)a=h?u(s[p],p):s[p],fi(n,p,a);else for(o=(i=f.call(s)).next,n=new c;!(r=o.call(i)).done;p++)a=h?li(i,u,[r.value,p],!0):r.value,fi(n,p,a);return n.length=p,n};Ke({target:"Array",stat:!0,forced:!function(t,e){if(!e&&!di)return!1;var n=!1;try{var r={};r[vi]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n}((function(t){Array.from(t)}))},{from:mi});var bi=s.Array.from,ki=bi,wi=we,Ci=gr,Ei=ce,Oi=Lr,Ti="Array Iterator",_i=Ei.set,Fi=Ei.getterFor(Ti);Oi(Array,"Array",(function(t,e){_i(this,{type:Ti,target:wi(t),index:0,kind:e})}),(function(){var t=Fi(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values"),Ci.Arguments=Ci.Array;var Ai=ai,xi={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},Si=l,Pi=ar,Di=Wt,ji=gr,Ii=Et("toStringTag");for(var Ri in xi){var Ni=Si[Ri],Mi=Ni&&Ni.prototype;Mi&&Pi(Mi)!==Ii&&Di(Mi,Ii,Ri),ji[Ri]=ji.Array}var Bi=Ai,Li=de,Hi=Array.isArray||function(t){return"Array"==Li(t)},zi=X,Wi=Hi,Vi=Et("species"),qi=function(t){var e;return Wi(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!Wi(e.prototype)?zi(e)&&null===(e=e[Vi])&&(e=void 0):e=void 0),void 0===e?Array:e},Yi=function(t,e){return new(qi(t))(0===e?0:e)},Xi=C,Gi=w,Ui=Et("species"),$i=function(t){return Gi>=51||!Xi((function(){var e=[];return(e.constructor={})[Ui]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Qi=Ke,Ji=C,Ki=Hi,Zi=X,to=st,eo=mn,no=ni,ro=Yi,io=$i,oo=w,ao=Et("isConcatSpreadable"),so=9007199254740991,co="Maximum allowed index exceeded",lo=oo>=51||!Ji((function(){var t=[];return t[ao]=!1,t.concat()[0]!==t})),uo=io("concat"),ho=function(t){if(!Zi(t))return!1;var e=t[ao];return void 0!==e?!!e:Ki(t)};Qi({target:"Array",proto:!0,forced:!lo||!uo},{concat:function(t){var e,n,r,i,o,a=to(this),s=ro(a,0),c=0;for(e=-1,r=arguments.length;e<r;e++)if(ho(o=-1===e?a:arguments[e])){if(c+(i=eo(o.length))>so)throw TypeError(co);for(n=0;n<i;n++,c++)n in o&&no(s,c,o[n])}else{if(c>=so)throw TypeError(co);no(s,c++,o)}return s.length=c,s}});var fo={},po=Dn,vo=jn.concat("length","prototype");fo.f=Object.getOwnPropertyNames||function(t){return po(t,vo)};var go={},yo=we,mo=fo.f,bo={}.toString,ko="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];go.f=function(t){return ko&&"[object Window]"==bo.call(t)?function(t){try{return mo(t)}catch(t){return ko.slice()}}(t):mo(yo(t))};var wo={};wo.f=Object.getOwnPropertySymbols;var Co={},Eo=Et;Co.f=Eo;var Oo=s,To=ut,_o=Co,Fo=U.f,Ao=function(t){var e=Oo.Symbol||(Oo.Symbol={});To(e,t)||Fo(e,t,{value:_o.f(t)})},xo=Ve,So=me,Po=st,Do=mn,jo=Yi,Io=[].push,Ro=function(t){var e=1==t,n=2==t,r=3==t,i=4==t,o=6==t,a=7==t,s=5==t||o;return function(c,l,u,h){for(var f,p,v=Po(c),d=So(v),g=xo(l,u,3),y=Do(d.length),m=0,b=h||jo,k=e?b(c,y):n||a?b(c,0):void 0;y>m;m++)if((s||m in d)&&(p=g(f=d[m],m,v),t))if(e)k[m]=p;else if(p)switch(t){case 3:return!0;case 5:return f;case 6:return m;case 2:Io.call(k,f)}else switch(t){case 4:return!1;case 7:Io.call(k,f)}return o?-1:r||i?i:k}},No={forEach:Ro(0),map:Ro(1),filter:Ro(2),some:Ro(3),every:Ro(4),find:Ro(5),findIndex:Ro(6),filterReject:Ro(7)},Mo=Ke,Bo=l,Lo=p,Ho=G,zo=T,Wo=C,Vo=ut,qo=Hi,Yo=X,Xo=A,Go=nt,Uo=st,$o=we,Qo=St,Jo=S,Ko=Lt,Zo=Zn,ta=Nn,ea=fo,na=go,ra=wo,ia=le,oa=U,aa=ue,sa=Wt,ca=Or,la=it.exports,ua=Gt,ha=pt,fa=Et,pa=Co,va=Ao,da=dr,ga=ce,ya=No.forEach,ma=Xt("hidden"),ba="Symbol",ka=fa("toPrimitive"),wa=ga.set,Ca=ga.getterFor(ba),Ea=Object.prototype,Oa=Bo.Symbol,Ta=Lo("JSON","stringify"),_a=ia.f,Fa=oa.f,Aa=na.f,xa=aa.f,Sa=la("symbols"),Pa=la("op-symbols"),Da=la("string-to-symbol-registry"),ja=la("symbol-to-string-registry"),Ia=la("wks"),Ra=Bo.QObject,Na=!Ra||!Ra.prototype||!Ra.prototype.findChild,Ma=Ho&&Wo((function(){return 7!=Zo(Fa({},"a",{get:function(){return Fa(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=_a(Ea,e);r&&delete Ea[e],Fa(t,e,n),r&&t!==Ea&&Fa(Ea,e,r)}:Fa,Ba=function(t,e){var n=Sa[t]=Zo(Oa.prototype);return wa(n,{type:ba,tag:t,description:e}),Ho||(n.description=e),n},La=function(t,e,n){t===Ea&&La(Pa,e,n),Go(t);var r=Qo(e);return Go(n),Vo(Sa,r)?(n.enumerable?(Vo(t,ma)&&t[ma][r]&&(t[ma][r]=!1),n=Zo(n,{enumerable:Ko(0,!1)})):(Vo(t,ma)||Fa(t,ma,Ko(1,{})),t[ma][r]=!0),Ma(t,r,n)):Fa(t,r,n)},Ha=function(t,e){Go(t);var n=$o(e),r=ta(n).concat(qa(n));return ya(r,(function(e){Ho&&!za.call(n,e)||La(t,e,n[e])})),t},za=function(t){var e=Qo(t),n=xa.call(this,e);return!(this===Ea&&Vo(Sa,e)&&!Vo(Pa,e))&&(!(n||!Vo(this,e)||!Vo(Sa,e)||Vo(this,ma)&&this[ma][e])||n)},Wa=function(t,e){var n=$o(t),r=Qo(e);if(n!==Ea||!Vo(Sa,r)||Vo(Pa,r)){var i=_a(n,r);return!i||!Vo(Sa,r)||Vo(n,ma)&&n[ma][r]||(i.enumerable=!0),i}},Va=function(t){var e=Aa($o(t)),n=[];return ya(e,(function(t){Vo(Sa,t)||Vo(ua,t)||n.push(t)})),n},qa=function(t){var e=t===Ea,n=Aa(e?Pa:$o(t)),r=[];return ya(n,(function(t){!Vo(Sa,t)||e&&!Vo(Ea,t)||r.push(Sa[t])})),r};(zo||(ca((Oa=function(){if(this instanceof Oa)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?Jo(arguments[0]):void 0,e=ha(t),n=function(t){this===Ea&&n.call(Pa,t),Vo(this,ma)&&Vo(this[ma],e)&&(this[ma][e]=!1),Ma(this,e,Ko(1,t))};return Ho&&Na&&Ma(Ea,e,{configurable:!0,set:n}),Ba(e,t)}).prototype,"toString",(function(){return Ca(this).tag})),ca(Oa,"withoutSetter",(function(t){return Ba(ha(t),t)})),aa.f=za,oa.f=La,ia.f=Wa,ea.f=na.f=Va,ra.f=qa,pa.f=function(t){return Ba(fa(t),t)},Ho&&Fa(Oa.prototype,"description",{configurable:!0,get:function(){return Ca(this).description}})),Mo({global:!0,wrap:!0,forced:!zo,sham:!zo},{Symbol:Oa}),ya(ta(Ia),(function(t){va(t)})),Mo({target:ba,stat:!0,forced:!zo},{for:function(t){var e=Jo(t);if(Vo(Da,e))return Da[e];var n=Oa(e);return Da[e]=n,ja[n]=e,n},keyFor:function(t){if(!Xo(t))throw TypeError(t+" is not a symbol");if(Vo(ja,t))return ja[t]},useSetter:function(){Na=!0},useSimple:function(){Na=!1}}),Mo({target:"Object",stat:!0,forced:!zo,sham:!Ho},{create:function(t,e){return void 0===e?Zo(t):Ha(Zo(t),e)},defineProperty:La,defineProperties:Ha,getOwnPropertyDescriptor:Wa}),Mo({target:"Object",stat:!0,forced:!zo},{getOwnPropertyNames:Va,getOwnPropertySymbols:qa}),Mo({target:"Object",stat:!0,forced:Wo((function(){ra.f(1)}))},{getOwnPropertySymbols:function(t){return ra.f(Uo(t))}}),Ta)&&Mo({target:"JSON",stat:!0,forced:!zo||Wo((function(){var t=Oa();return"[null]"!=Ta([t])||"{}"!=Ta({a:t})||"{}"!=Ta(Object(t))}))},{stringify:function(t,e,n){for(var r,i=[t],o=1;arguments.length>o;)i.push(arguments[o++]);if(r=e,(Yo(e)||void 0!==t)&&!Xo(t))return qo(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!Xo(e))return e}),i[1]=e,Ta.apply(null,i)}});Oa.prototype[ka]||sa(Oa.prototype,ka,Oa.prototype.valueOf),da(Oa,ba),ua[ma]=!0,Ao("asyncIterator"),Ao("hasInstance"),Ao("isConcatSpreadable"),Ao("iterator"),Ao("match"),Ao("matchAll"),Ao("replace"),Ao("search"),Ao("species"),Ao("split"),Ao("toPrimitive"),Ao("toStringTag"),Ao("unscopables"),dr(l.JSON,"JSON",!0);var Ya=s.Symbol;Ao("asyncDispose"),Ao("dispose"),Ao("matcher"),Ao("metadata"),Ao("observable"),Ao("patternMatch"),Ao("replaceAll");var Xa=Ya,Ga=Co.f("iterator");function Ua(t){return(Ua="function"==typeof Xa&&"symbol"==typeof Ga?function(t){return typeof t}:function(t){return t&&"function"==typeof Xa&&t.constructor===Xa&&t!==Xa.prototype?"symbol":typeof t})(t)}Ke({target:"Array",stat:!0},{isArray:Hi});var $a=s.Array.isArray,Qa=$a;function Ja(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Ka=bi;var Za=Ke,ts=X,es=Hi,ns=Cn,rs=mn,is=we,os=ni,as=Et,ss=$i("slice"),cs=as("species"),ls=[].slice,us=Math.max;Za({target:"Array",proto:!0,forced:!ss},{slice:function(t,e){var n,r,i,o=is(this),a=rs(o.length),s=ns(t,a),c=ns(void 0===e?a:e,a);if(es(o)&&("function"!=typeof(n=o.constructor)||n!==Array&&!es(n.prototype)?ts(n)&&null===(n=n[cs])&&(n=void 0):n=void 0,n===Array||void 0===n))return ls.call(o,s,c);for(r=new(void 0===n?Array:n)(us(c-s,0)),i=0;s<c;s++,i++)s in o&&os(r,i,o[s]);return r.length=i,r}});var hs=s,fs=function(t){return hs[t+"Prototype"]},ps=fs("Array").slice,vs=Array.prototype,ds=function(t){var e=t.slice;return t===vs||t instanceof Array&&e===vs.slice?ps:e},gs=ds;function ys(t,e){var n;if(t){if("string"==typeof t)return Ja(t,e);var r=gs(n=Object.prototype.toString.call(t)).call(n,8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Ka(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ja(t,e):void 0}}function ms(t){return function(t){if(Qa(t))return Ja(t)}(t)||function(t){if(void 0!==Xa&&null!=Bi(t)||null!=t["@@iterator"])return Ka(t)}(t)||ys(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 bs=Ya,ks=fs("Array").concat,ws=Array.prototype,Cs=function(t){var e=t.concat;return t===ws||t instanceof Array&&e===ws.concat?ks:e},Es=ds,Os=fo,Ts=wo,_s=nt,Fs=p("Reflect","ownKeys")||function(t){var e=Os.f(_s(t)),n=Ts.f;return n?e.concat(n(t)):e};Ke({target:"Reflect",stat:!0},{ownKeys:Fs});var As=s.Reflect.ownKeys,xs=$a,Ss=No.map;Ke({target:"Array",proto:!0,forced:!$i("map")},{map:function(t){return Ss(this,t,arguments.length>1?arguments[1]:void 0)}});var Ps=fs("Array").map,Ds=Array.prototype,js=function(t){var e=t.map;return t===Ds||t instanceof Array&&e===Ds.map?Ps:e},Is=st,Rs=Nn;Ke({target:"Object",stat:!0,forced:C((function(){Rs(1)}))},{keys:function(t){return Rs(Is(t))}});var Ns=s.Object.keys;function Ms(t,e){var n=void 0!==bs&&Bi(t)||t["@@iterator"];if(!n){if(xs(t)||(n=function(t,e){var n;if(!t)return;if("string"==typeof t)return Bs(t,e);var r=Es(n=Object.prototype.toString.call(t)).call(n,8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return ki(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Bs(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Bs(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Ls=bs("DELETE");function Hs(){var t=zs.apply(void 0,arguments);return Vs(t),t}function zs(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(e.length<2)return e[0];var r;if(e.length>2)return zs.apply(void 0,Cs(r=[Hs(e[0],e[1])]).call(r,ms(Es(e).call(e,2))));var i,o=e[0],a=e[1],s=Ms(As(a));try{for(s.s();!(i=s.n()).done;){var c=i.value;Object.prototype.propertyIsEnumerable.call(a,c)&&(a[c]===Ls?delete o[c]:null===o[c]||null===a[c]||"object"!==Ua(o[c])||"object"!==Ua(a[c])||xs(o[c])||xs(a[c])?o[c]=Ws(a[c]):o[c]=zs(o[c],a[c]))}}catch(t){s.e(t)}finally{s.f()}return o}function Ws(t){return xs(t)?js(t).call(t,(function(t){return Ws(t)})):"object"===Ua(t)&&null!==t?zs({},t):t}function Vs(t){for(var e=0,n=Ns(t);e<n.length;e++){var r=n[e];t[r]===Ls?delete t[r]:"object"===Ua(t[r])&&null!==t[r]&&Vs(t[r])}}function qs(t,e){return function(t){if(Qa(t))return t}(t)||function(t,e){var n=null==t?null:void 0!==Xa&&Bi(t)||t["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(t){s=!0,i=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(t,e)||ys(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.")}()}Ke({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}});var Ys=s.Date.now;function Xs(t){var e=qs(function(){for(var t=Gs(),e=t(" "),n=t(" "),r=t(" "),i=0;i<arguments.length;i++)(e-=t(i<0||arguments.length<=i?void 0:arguments[i]))<0&&(e+=1),(n-=t(i<0||arguments.length<=i?void 0:arguments[i]))<0&&(n+=1),(r-=t(i<0||arguments.length<=i?void 0:arguments[i]))<0&&(r+=1);return[e,n,r]}(t),3),n=e[0],r=e[1],i=e[2],o=1,a=function(){var t=2091639*n+2.3283064365386963e-10*o;return n=r,r=i,i=t-(o=0|t)};return a.uint32=function(){return 4294967296*a()},a.fract53=function(){return a()+11102230246251565e-32*(2097152*a()|0)},a.algorithm="Alea",a.seed=t,a.version="0.9",a}function Gs(){var t=4022871197;return function(e){for(var n=e.toString(),r=0;r<n.length;r++){var i=.02519603282416938*(t+=n.charCodeAt(r));i-=t=i>>>0,t=(i*=t)>>>0,t+=4294967296*(i-=t)}return 2.3283064365386963e-10*(t>>>0)}}var Us=ze,$s=X,Qs=[].slice,Js={},Ks=function(t,e,n){if(!(e in Js)){for(var r=[],i=0;i<e;i++)r[i]="a["+i+"]";Js[e]=Function("C,a","return new C("+r.join(",")+")")}return Js[e](t,n)};Ke({target:"Function",proto:!0},{bind:Function.bind||function(t){var e=Us(this),n=Qs.call(arguments,1),r=function(){var i=n.concat(Qs.call(arguments));return this instanceof r?Ks(e,i.length,i):e.apply(t,i)};return $s(e.prototype)&&(r.prototype=e.prototype),r}});var Zs=fs("Function").bind,tc=Function.prototype,ec=function(t){var e=t.bind;return t===tc||t instanceof Function&&e===tc.bind?Zs:e},nc=C,rc=function(t,e){var n=[][t];return!!n&&nc((function(){n.call(null,e||function(){throw 1},1)}))},ic=No.forEach,oc=rc("forEach")?[].forEach:function(t){return ic(this,t,arguments.length>1?arguments[1]:void 0)};Ke({target:"Array",proto:!0,forced:[].forEach!=oc},{forEach:oc});var ac=fs("Array").forEach,sc=ar,cc=Array.prototype,lc={DOMTokenList:!0,NodeList:!0},uc=function(t){var e=t.forEach;return t===cc||t instanceof Array&&e===cc.forEach||lc.hasOwnProperty(sc(t))?ac:e},hc=Hi,fc=[].reverse,pc=[1,2];Ke({target:"Array",proto:!0,forced:String(pc)===String(pc.reverse())},{reverse:function(){return hc(this)&&(this.length=this.length),fc.call(this)}});var vc=fs("Array").reverse,dc=Array.prototype,gc=function(t){var e=t.reverse;return t===dc||t instanceof Array&&e===dc.reverse?vc:e},yc=Ke,mc=Cn,bc=a,kc=mn,wc=st,Cc=Yi,Ec=ni,Oc=$i("splice"),Tc=Math.max,_c=Math.min,Fc=9007199254740991,Ac="Maximum allowed length exceeded";yc({target:"Array",proto:!0,forced:!Oc},{splice:function(t,e){var n,r,i,o,a,s,c=wc(this),l=kc(c.length),u=mc(t,l),h=arguments.length;if(0===h?n=r=0:1===h?(n=0,r=l-u):(n=h-2,r=_c(Tc(bc(e),0),l-u)),l+n-r>Fc)throw TypeError(Ac);for(i=Cc(c,r),o=0;o<r;o++)(a=u+o)in c&&Ec(i,o,c[a]);if(i.length=r,n<r){for(o=u;o<l-r;o++)s=o+n,(a=o+r)in c?c[s]=c[a]:delete c[s];for(o=l;o>l-r+n;o--)delete c[o-1]}else if(n>r)for(o=l-r;o>u;o--)s=o+n-1,(a=o+r-1)in c?c[s]=c[a]:delete c[s];for(o=0;o<n;o++)c[o+u]=arguments[o+2];return c.length=l-r+n,i}});var xc=fs("Array").splice,Sc=Array.prototype,Pc=function(t){var e=t.splice;return t===Sc||t instanceof Array&&e===Sc.splice?xc:e},Dc={exports:{}};!function(t){function e(t){if(t)return function(t){for(var n in e.prototype)t[n]=e.prototype[n];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 n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),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 n,r=this._callbacks["$"+t];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var i=0;i<r.length;i++)if((n=r[i])===e||n.fn===e){r.splice(i,1);break}return 0===r.length&&delete this._callbacks["$"+t],this},e.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),n=this._callbacks["$"+t],r=1;r<arguments.length;r++)e[r-1]=arguments[r];if(n){r=0;for(var i=(n=n.slice(0)).length;r<i;++r)n[r].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}}(Dc);var jc=Dc.exports;
|
|
27
|
+
/*! Hammer.JS - v2.0.17-rc - 2019-12-16
|
|
28
|
+
* http://naver.github.io/egjs
|
|
29
|
+
*
|
|
30
|
+
* Forked By Naver egjs
|
|
31
|
+
* Copyright (c) hammerjs
|
|
32
|
+
* Licensed under the MIT license */function Ic(){return(Ic=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function Rc(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function Nc(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var Mc,Bc="function"!=typeof Object.assign?function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n<arguments.length;n++){var r=arguments[n];if(null!=r)for(var i in r)r.hasOwnProperty(i)&&(e[i]=r[i])}return e}:Object.assign,Lc=["","webkit","Moz","MS","ms","o"],Hc="undefined"==typeof document?{style:{}}:document.createElement("div"),zc=Math.round,Wc=Math.abs,Vc=Date.now;function qc(t,e){for(var n,r,i=e[0].toUpperCase()+e.slice(1),o=0;o<Lc.length;){if((r=(n=Lc[o])?n+i:e)in t)return r;o++}}Mc="undefined"==typeof window?{}:window;var Yc=qc(Hc.style,"touchAction"),Xc=void 0!==Yc;var Gc="compute",Uc="auto",$c="manipulation",Qc="none",Jc="pan-x",Kc="pan-y",Zc=function(){if(!Xc)return!1;var t={},e=Mc.CSS&&Mc.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(n){return t[n]=!e||Mc.CSS.supports("touch-action",n)})),t}(),tl="ontouchstart"in Mc,el=void 0!==qc(Mc,"PointerEvent"),nl=tl&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),rl="touch",il="mouse",ol=16,al=24,sl=["x","y"],cl=["clientX","clientY"];function ll(t,e,n){var r;if(t)if(t.forEach)t.forEach(e,n);else if(void 0!==t.length)for(r=0;r<t.length;)e.call(n,t[r],r,t),r++;else for(r in t)t.hasOwnProperty(r)&&e.call(n,t[r],r,t)}function ul(t,e){return"function"==typeof t?t.apply(e&&e[0]||void 0,e):t}function hl(t,e){return t.indexOf(e)>-1}var fl=function(){function t(t,e){this.manager=t,this.set(e)}var e=t.prototype;return e.set=function(t){t===Gc&&(t=this.compute()),Xc&&this.manager.element.style&&Zc[t]&&(this.manager.element.style[Yc]=t),this.actions=t.toLowerCase().trim()},e.update=function(){this.set(this.manager.options.touchAction)},e.compute=function(){var t=[];return ll(this.manager.recognizers,(function(e){ul(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),function(t){if(hl(t,Qc))return Qc;var e=hl(t,Jc),n=hl(t,Kc);return e&&n?Qc:e||n?e?Jc:Kc:hl(t,$c)?$c:Uc}(t.join(" "))},e.preventDefaults=function(t){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var r=this.actions,i=hl(r,Qc)&&!Zc.none,o=hl(r,Kc)&&!Zc["pan-y"],a=hl(r,Jc)&&!Zc["pan-x"];if(i){var s=1===t.pointers.length,c=t.distance<2,l=t.deltaTime<250;if(s&&c&&l)return}if(!a||!o)return i||o&&6&n||a&&n&al?this.preventSrc(e):void 0}},e.preventSrc=function(t){this.manager.session.prevented=!0,t.preventDefault()},t}();function pl(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1}function vl(t){var e=t.length;if(1===e)return{x:zc(t[0].clientX),y:zc(t[0].clientY)};for(var n=0,r=0,i=0;i<e;)n+=t[i].clientX,r+=t[i].clientY,i++;return{x:zc(n/e),y:zc(r/e)}}function dl(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:zc(t.pointers[n].clientX),clientY:zc(t.pointers[n].clientY)},n++;return{timeStamp:Vc(),pointers:e,center:vl(e),deltaX:t.deltaX,deltaY:t.deltaY}}function gl(t,e,n){n||(n=sl);var r=e[n[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return Math.sqrt(r*r+i*i)}function yl(t,e,n){n||(n=sl);var r=e[n[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return 180*Math.atan2(i,r)/Math.PI}function ml(t,e){return t===e?1:Wc(t)>=Wc(e)?t<0?2:4:e<0?8:ol}function bl(t,e,n){return{x:e/t||0,y:n/t||0}}function kl(t,e){var n=t.session,r=e.pointers,i=r.length;n.firstInput||(n.firstInput=dl(e)),i>1&&!n.firstMultiple?n.firstMultiple=dl(e):1===i&&(n.firstMultiple=!1);var o=n.firstInput,a=n.firstMultiple,s=a?a.center:o.center,c=e.center=vl(r);e.timeStamp=Vc(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=yl(s,c),e.distance=gl(s,c),function(t,e){var n=e.center,r=t.offsetDelta||{},i=t.prevDelta||{},o=t.prevInput||{};1!==e.eventType&&4!==o.eventType||(i=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},r=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=i.x+(n.x-r.x),e.deltaY=i.y+(n.y-r.y)}(n,e),e.offsetDirection=ml(e.deltaX,e.deltaY);var l,u,h=bl(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=h.x,e.overallVelocityY=h.y,e.overallVelocity=Wc(h.x)>Wc(h.y)?h.x:h.y,e.scale=a?(l=a.pointers,gl((u=r)[0],u[1],cl)/gl(l[0],l[1],cl)):1,e.rotation=a?function(t,e){return yl(e[1],e[0],cl)+yl(t[1],t[0],cl)}(a.pointers,r):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,function(t,e){var n,r,i,o,a=t.lastInterval||e,s=e.timeStamp-a.timeStamp;if(8!==e.eventType&&(s>25||void 0===a.velocity)){var c=e.deltaX-a.deltaX,l=e.deltaY-a.deltaY,u=bl(s,c,l);r=u.x,i=u.y,n=Wc(u.x)>Wc(u.y)?u.x:u.y,o=ml(c,l),t.lastInterval=e}else n=a.velocity,r=a.velocityX,i=a.velocityY,o=a.direction;e.velocity=n,e.velocityX=r,e.velocityY=i,e.direction=o}(n,e);var f,p=t.element,v=e.srcEvent;pl(f=v.composedPath?v.composedPath()[0]:v.path?v.path[0]:v.target,p)&&(p=f),e.target=p}function wl(t,e,n){var r=n.pointers.length,i=n.changedPointers.length,o=1&e&&r-i==0,a=12&e&&r-i==0;n.isFirst=!!o,n.isFinal=!!a,o&&(t.session={}),n.eventType=e,kl(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function Cl(t){return t.trim().split(/\s+/g)}function El(t,e,n){ll(Cl(e),(function(e){t.addEventListener(e,n,!1)}))}function Ol(t,e,n){ll(Cl(e),(function(e){t.removeEventListener(e,n,!1)}))}function Tl(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||window}var _l=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){ul(t.options.enable,[t])&&n.handler(e)},this.init()}var e=t.prototype;return e.handler=function(){},e.init=function(){this.evEl&&El(this.element,this.evEl,this.domHandler),this.evTarget&&El(this.target,this.evTarget,this.domHandler),this.evWin&&El(Tl(this.element),this.evWin,this.domHandler)},e.destroy=function(){this.evEl&&Ol(this.element,this.evEl,this.domHandler),this.evTarget&&Ol(this.target,this.evTarget,this.domHandler),this.evWin&&Ol(Tl(this.element),this.evWin,this.domHandler)},t}();function Fl(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var r=0;r<t.length;){if(n&&t[r][n]==e||!n&&t[r]===e)return r;r++}return-1}var Al={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},xl={2:rl,3:"pen",4:il,5:"kinect"},Sl="pointerdown",Pl="pointermove pointerup pointercancel";Mc.MSPointerEvent&&!Mc.PointerEvent&&(Sl="MSPointerDown",Pl="MSPointerMove MSPointerUp MSPointerCancel");var Dl=function(t){function e(){var n,r=e.prototype;return r.evEl=Sl,r.evWin=Pl,(n=t.apply(this,arguments)||this).store=n.manager.session.pointerEvents=[],n}return Rc(e,t),e.prototype.handler=function(t){var e=this.store,n=!1,r=t.type.toLowerCase().replace("ms",""),i=Al[r],o=xl[t.pointerType]||t.pointerType,a=o===rl,s=Fl(e,t.pointerId,"pointerId");1&i&&(0===t.button||a)?s<0&&(e.push(t),s=e.length-1):12&i&&(n=!0),s<0||(e[s]=t,this.callback(this.manager,i,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),n&&e.splice(s,1))},e}(_l);function jl(t){return Array.prototype.slice.call(t,0)}function Il(t,e,n){for(var r=[],i=[],o=0;o<t.length;){var a=e?t[o][e]:t[o];Fl(i,a)<0&&r.push(t[o]),i[o]=a,o++}return n&&(r=e?r.sort((function(t,n){return t[e]>n[e]})):r.sort()),r}var Rl={touchstart:1,touchmove:2,touchend:4,touchcancel:8},Nl="touchstart touchmove touchend touchcancel",Ml=function(t){function e(){var n;return e.prototype.evTarget=Nl,(n=t.apply(this,arguments)||this).targetIds={},n}return Rc(e,t),e.prototype.handler=function(t){var e=Rl[t.type],n=Bl.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:rl,srcEvent:t})},e}(_l);function Bl(t,e){var n,r,i=jl(t.touches),o=this.targetIds;if(3&e&&1===i.length)return o[i[0].identifier]=!0,[i,i];var a=jl(t.changedTouches),s=[],c=this.target;if(r=i.filter((function(t){return pl(t.target,c)})),1===e)for(n=0;n<r.length;)o[r[n].identifier]=!0,n++;for(n=0;n<a.length;)o[a[n].identifier]&&s.push(a[n]),12&e&&delete o[a[n].identifier],n++;return s.length?[Il(r.concat(s),"identifier",!0),s]:void 0}var Ll={mousedown:1,mousemove:2,mouseup:4},Hl="mousedown",zl="mousemove mouseup",Wl=function(t){function e(){var n,r=e.prototype;return r.evEl=Hl,r.evWin=zl,(n=t.apply(this,arguments)||this).pressed=!1,n}return Rc(e,t),e.prototype.handler=function(t){var e=Ll[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:il,srcEvent:t}))},e}(_l);function Vl(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var n={x:e.clientX,y:e.clientY},r=this.lastTouches;this.lastTouches.push(n);setTimeout((function(){var t=r.indexOf(n);t>-1&&r.splice(t,1)}),2500)}}function ql(t,e){1&t?(this.primaryTouch=e.changedPointers[0].identifier,Vl.call(this,e)):12&t&&Vl.call(this,e)}function Yl(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,r=0;r<this.lastTouches.length;r++){var i=this.lastTouches[r],o=Math.abs(e-i.x),a=Math.abs(n-i.y);if(o<=25&&a<=25)return!0}return!1}var Xl=function(){return function(t){function e(e,n){var r;return(r=t.call(this,e,n)||this).handler=function(t,e,n){var i=n.pointerType===rl,o=n.pointerType===il;if(!(o&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(i)ql.call(Nc(Nc(r)),e,n);else if(o&&Yl.call(Nc(Nc(r)),n))return;r.callback(t,e,n)}},r.touch=new Ml(r.manager,r.handler),r.mouse=new Wl(r.manager,r.handler),r.primaryTouch=null,r.lastTouches=[],r}return Rc(e,t),e.prototype.destroy=function(){this.touch.destroy(),this.mouse.destroy()},e}(_l)}();function Gl(t,e,n){return!!Array.isArray(t)&&(ll(t,n[e],n),!0)}var Ul=32,$l=1;function Ql(t,e){var n=e.manager;return n?n.get(t):t}function Jl(t){return 16&t?"cancel":8&t?"end":4&t?"move":2&t?"start":""}var Kl=function(){function t(t){void 0===t&&(t={}),this.options=Ic({enable:!0},t),this.id=$l++,this.manager=null,this.state=1,this.simultaneous={},this.requireFail=[]}var e=t.prototype;return e.set=function(t){return Bc(this.options,t),this.manager&&this.manager.touchAction.update(),this},e.recognizeWith=function(t){if(Gl(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=Ql(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},e.dropRecognizeWith=function(t){return Gl(t,"dropRecognizeWith",this)||(t=Ql(t,this),delete this.simultaneous[t.id]),this},e.requireFailure=function(t){if(Gl(t,"requireFailure",this))return this;var e=this.requireFail;return-1===Fl(e,t=Ql(t,this))&&(e.push(t),t.requireFailure(this)),this},e.dropRequireFailure=function(t){if(Gl(t,"dropRequireFailure",this))return this;t=Ql(t,this);var e=Fl(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},e.hasRequireFailures=function(){return this.requireFail.length>0},e.canRecognizeWith=function(t){return!!this.simultaneous[t.id]},e.emit=function(t){var e=this,n=this.state;function r(n){e.manager.emit(n,t)}n<8&&r(e.options.event+Jl(n)),r(e.options.event),t.additionalEvent&&r(t.additionalEvent),n>=8&&r(e.options.event+Jl(n))},e.tryEmit=function(t){if(this.canEmit())return this.emit(t);this.state=Ul},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=Bc({},t);if(!ul(this.options.enable,[this,e]))return this.reset(),void(this.state=Ul);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}(),Zl=function(t){function e(e){var n;return void 0===e&&(e={}),(n=t.call(this,Ic({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}Rc(e,t);var n=e.prototype;return n.getTouchAction=function(){return[$c]},n.process=function(t){var e=this,n=this.options,r=t.pointers.length===n.pointers,i=t.distance<n.threshold,o=t.deltaTime<n.time;if(this.reset(),1&t.eventType&&0===this.count)return this.failTimeout();if(i&&o&&r){if(4!==t.eventType)return this.failTimeout();var a=!this.pTime||t.timeStamp-this.pTime<n.interval,s=!this.pCenter||gl(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 Ul},n.failTimeout=function(){var t=this;return this._timer=setTimeout((function(){t.state=Ul}),this.options.interval),Ul},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}(Kl),tu=function(t){function e(e){return void 0===e&&(e={}),t.call(this,Ic({pointers:1},e))||this}Rc(e,t);var n=e.prototype;return n.attrTest=function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},n.process=function(t){var e=this.state,n=t.eventType,r=6&e,i=this.attrTest(t);return r&&(8&n||!i)?16|e:r||i?4&n?8|e:2&e?4|e:2:Ul},e}(Kl);function eu(t){return t===ol?"down":8===t?"up":2===t?"left":4===t?"right":""}var nu=function(t){function e(e){var n;return void 0===e&&(e={}),(n=t.call(this,Ic({event:"pan",threshold:10,pointers:1,direction:30},e))||this).pX=null,n.pY=null,n}Rc(e,t);var n=e.prototype;return n.getTouchAction=function(){var t=this.options.direction,e=[];return 6&t&&e.push(Kc),t&al&&e.push(Jc),e},n.directionTest=function(t){var e=this.options,n=!0,r=t.distance,i=t.direction,o=t.deltaX,a=t.deltaY;return i&e.direction||(6&e.direction?(i=0===o?1:o<0?2:4,n=o!==this.pX,r=Math.abs(t.deltaX)):(i=0===a?1:a<0?8:ol,n=a!==this.pY,r=Math.abs(t.deltaY))),t.direction=i,n&&r>e.threshold&&i&e.direction},n.attrTest=function(t){return tu.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=eu(e.direction);n&&(e.additionalEvent=this.options.event+n),t.prototype.emit.call(this,e)},e}(tu),ru=function(t){function e(e){return void 0===e&&(e={}),t.call(this,Ic({event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},e))||this}Rc(e,t);var n=e.prototype;return n.getTouchAction=function(){return nu.prototype.getTouchAction.call(this)},n.attrTest=function(e){var n,r=this.options.direction;return 30&r?n=e.overallVelocity:6&r?n=e.overallVelocityX:r&al&&(n=e.overallVelocityY),t.prototype.attrTest.call(this,e)&&r&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers===this.options.pointers&&Wc(n)>this.options.velocity&&4&e.eventType},n.emit=function(t){var e=eu(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)},e}(tu),iu=function(t){function e(e){return void 0===e&&(e={}),t.call(this,Ic({event:"pinch",threshold:0,pointers:2},e))||this}Rc(e,t);var n=e.prototype;return n.getTouchAction=function(){return[Qc]},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}(tu),ou=function(t){function e(e){return void 0===e&&(e={}),t.call(this,Ic({event:"rotate",threshold:0,pointers:2},e))||this}Rc(e,t);var n=e.prototype;return n.getTouchAction=function(){return[Qc]},n.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)},e}(tu),au=function(t){function e(e){var n;return void 0===e&&(e={}),(n=t.call(this,Ic({event:"press",pointers:1,time:251,threshold:9},e))||this)._timer=null,n._input=null,n}Rc(e,t);var n=e.prototype;return n.getTouchAction=function(){return[Uc]},n.process=function(t){var e=this,n=this.options,r=t.pointers.length===n.pointers,i=t.distance<n.threshold,o=t.deltaTime>n.time;if(this._input=t,!i||!r||12&t.eventType&&!o)this.reset();else if(1&t.eventType)this.reset(),this._timer=setTimeout((function(){e.state=8,e.tryEmit()}),n.time);else if(4&t.eventType)return 8;return Ul},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=Vc(),this.manager.emit(this.options.event,this._input)))},e}(Kl),su={domEvents:!1,touchAction:Gc,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},cu=[[ou,{enable:!1}],[iu,{enable:!1},["rotate"]],[ru,{direction:6}],[nu,{direction:6},["swipe"]],[Zl],[Zl,{event:"doubletap",taps:2},["tap"]],[au]];function lu(t,e){var n,r=t.element;r.style&&(ll(t.options.cssProps,(function(i,o){n=qc(r.style,o),e?(t.oldCssProps[n]=r.style[n],r.style[n]=i):r.style[n]=t.oldCssProps[n]||""})),e||(t.oldCssProps={}))}var uu=function(){function t(t,e){var n,r=this;this.options=Bc({},su,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new((n=this).options.inputClass||(el?Dl:nl?Ml:tl?Xl:Wl))(n,wl),this.touchAction=new fl(this,this.options.touchAction),lu(this,!0),ll(this.options.recognizers,(function(t){var e=r.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])}),this)}var e=t.prototype;return e.set=function(t){return Bc(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},e.stop=function(t){this.session.stopped=t?2:1},e.recognize=function(t){var e=this.session;if(!e.stopped){var n;this.touchAction.preventDefaults(t);var r=this.recognizers,i=e.curRecognizer;(!i||i&&8&i.state)&&(e.curRecognizer=null,i=null);for(var o=0;o<r.length;)n=r[o],2===e.stopped||i&&n!==i&&!n.canRecognizeWith(i)?n.reset():n.recognize(t),!i&&14&n.state&&(e.curRecognizer=n,i=n),o++}},e.get=function(t){if(t instanceof Kl)return t;for(var e=this.recognizers,n=0;n<e.length;n++)if(e[n].options.event===t)return e[n];return null},e.add=function(t){if(Gl(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},e.remove=function(t){if(Gl(t,"remove",this))return this;var e=this.get(t);if(t){var n=this.recognizers,r=Fl(n,e);-1!==r&&(n.splice(r,1),this.touchAction.update())}return this},e.on=function(t,e){if(void 0===t||void 0===e)return this;var n=this.handlers;return ll(Cl(t),(function(t){n[t]=n[t]||[],n[t].push(e)})),this},e.off=function(t,e){if(void 0===t)return this;var n=this.handlers;return ll(Cl(t),(function(t){e?n[t]&&n[t].splice(Fl(n[t],e),1):delete n[t]})),this},e.emit=function(t,e){this.options.domEvents&&function(t,e){var n=document.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=e,e.target.dispatchEvent(n)}(t,e);var n=this.handlers[t]&&this.handlers[t].slice();if(n&&n.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var r=0;r<n.length;)n[r](e),r++}},e.destroy=function(){this.element&&lu(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null},t}(),hu={touchstart:1,touchmove:2,touchend:4,touchcancel:8},fu="touchstart",pu="touchstart touchmove touchend touchcancel",vu=function(t){function e(){var n,r=e.prototype;return r.evTarget=fu,r.evWin=pu,(n=t.apply(this,arguments)||this).started=!1,n}return Rc(e,t),e.prototype.handler=function(t){var e=hu[t.type];if(1===e&&(this.started=!0),this.started){var n=du.call(this,t,e);12&e&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:rl,srcEvent:t})}},e}(_l);function du(t,e){var n=jl(t.touches),r=jl(t.changedTouches);return 12&e&&(n=Il(n.concat(r),"identifier",!0)),[n,r]}function gu(t,e,n){var r="DEPRECATED METHOD: "+e+"\n"+n+" AT \n";return function(){var e=new Error("get-stack-trace"),n=e&&e.stack?e.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",i=window.console&&(window.console.warn||window.console.log);return i&&i.call(window.console,r,n),t.apply(this,arguments)}}var yu=gu((function(t,e,n){for(var r=Object.keys(e),i=0;i<r.length;)(!n||n&&void 0===t[r[i]])&&(t[r[i]]=e[r[i]]),i++;return t}),"extend","Use `assign`."),mu=gu((function(t,e){return yu(t,e,!0)}),"merge","Use `assign`.");function bu(t,e,n){var r,i=e.prototype;(r=t.prototype=Object.create(i)).constructor=t,r._super=i,n&&Bc(r,n)}function ku(t,e){return function(){return t.apply(e,arguments)}}var wu=function(){var t=function(t,e){return void 0===e&&(e={}),new uu(t,Ic({recognizers:cu.concat()},e))};return t.VERSION="2.0.17-rc",t.DIRECTION_ALL=30,t.DIRECTION_DOWN=ol,t.DIRECTION_LEFT=2,t.DIRECTION_RIGHT=4,t.DIRECTION_UP=8,t.DIRECTION_HORIZONTAL=6,t.DIRECTION_VERTICAL=al,t.DIRECTION_NONE=1,t.DIRECTION_DOWN=ol,t.INPUT_START=1,t.INPUT_MOVE=2,t.INPUT_END=4,t.INPUT_CANCEL=8,t.STATE_POSSIBLE=1,t.STATE_BEGAN=2,t.STATE_CHANGED=4,t.STATE_ENDED=8,t.STATE_RECOGNIZED=8,t.STATE_CANCELLED=16,t.STATE_FAILED=Ul,t.Manager=uu,t.Input=_l,t.TouchAction=fl,t.TouchInput=Ml,t.MouseInput=Wl,t.PointerEventInput=Dl,t.TouchMouseInput=Xl,t.SingleTouchInput=vu,t.Recognizer=Kl,t.AttrRecognizer=tu,t.Tap=Zl,t.Pan=nu,t.Swipe=ru,t.Pinch=iu,t.Rotate=ou,t.Press=au,t.on=El,t.off=Ol,t.each=ll,t.merge=mu,t.extend=yu,t.bindFn=ku,t.assign=Bc,t.inherit=bu,t.bindFn=ku,t.prefixed=qc,t.toArray=jl,t.inArray=Fl,t.uniqueArray=Il,t.splitStr=Cl,t.boolOrFn=ul,t.hasParent=pl,t.addEventListeners=El,t.removeEventListeners=Ol,t.defaults=Bc({},su,{preset:cu}),t}();var Cu="undefined"!=typeof window?window.Hammer||wu:function(){return{on:t=function(){},off:t,destroy:t,emit:t,get:function(){return{set:t}}};var t};function Eu(t,e){var n=void 0!==bs&&Bi(t)||t["@@iterator"];if(!n){if(xs(t)||(n=function(t,e){var n;if(!t)return;if("string"==typeof t)return Ou(t,e);var r=Es(n=Object.prototype.toString.call(t)).call(n,8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return ki(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ou(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Ou(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Tu(t){var e,n=this;this._cleanupQueue=[],this.active=!1,this._dom={container:t,overlay:document.createElement("div")},this._dom.overlay.classList.add("vis-overlay"),this._dom.container.appendChild(this._dom.overlay),this._cleanupQueue.push((function(){n._dom.overlay.parentNode.removeChild(n._dom.overlay)}));var r=Cu(this._dom.overlay);r.on("tap",ec(e=this._onTapOverlay).call(e,this)),this._cleanupQueue.push((function(){r.destroy()}));var i=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];uc(i).call(i,(function(t){r.on(t,(function(t){t.srcEvent.stopPropagation()}))})),document&&document.body&&(this._onClick=function(e){(function(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1})(e.target,t)||n.deactivate()},document.body.addEventListener("click",this._onClick),this._cleanupQueue.push((function(){document.body.removeEventListener("click",n._onClick)}))),this._escListener=function(t){("key"in t?"Escape"===t.key:27===t.keyCode)&&n.deactivate()}}function _u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}jc(Tu.prototype),Tu.current=null,Tu.prototype.destroy=function(){var t,e;this.deactivate();var n,r=Eu(gc(t=Pc(e=this._cleanupQueue).call(e,0)).call(t));try{for(r.s();!(n=r.n()).done;){(0,n.value)()}}catch(t){r.e(t)}finally{r.f()}},Tu.prototype.activate=function(){Tu.current&&Tu.current.deactivate(),Tu.current=this,this.active=!0,this._dom.overlay.style.display="none",this._dom.container.classList.add("vis-active"),this.emit("change"),this.emit("activate"),document.body.addEventListener("keydown",this._escListener)},Tu.prototype.deactivate=function(){this.active=!1,this._dom.overlay.style.display="block",this._dom.container.classList.remove("vis-active"),document.body.removeEventListener("keydown",this._escListener),this.emit("change"),this.emit("deactivate")},Tu.prototype._onTapOverlay=function(t){this.activate(),t.srcEvent.stopPropagation()};var Fu={exports:{}};Ke({target:"Object",stat:!0,forced:!G,sham:!G},{defineProperty:U.f});var Au=s.Object,xu=Fu.exports=function(t,e,n){return Au.defineProperty(t,e,n)};Au.defineProperty.sham&&(xu.sham=!0);var Su=Fu.exports,Pu=Su;function Du(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Pu(t,r.key,r)}}function ju(t,e,n){return e&&Du(t.prototype,e),n&&Du(t,n),t}var Iu=Ke,Ru=C,Nu=p("JSON","stringify"),Mu=/[\uD800-\uDFFF]/g,Bu=/^[\uD800-\uDBFF]$/,Lu=/^[\uDC00-\uDFFF]$/,Hu=function(t,e,n){var r=n.charAt(e-1),i=n.charAt(e+1);return Bu.test(t)&&!Lu.test(i)||Lu.test(t)&&!Bu.test(r)?"\\u"+t.charCodeAt(0).toString(16):t},zu=Ru((function(){return'"\\udf06\\ud834"'!==Nu("\udf06\ud834")||'"\\udead"'!==Nu("\udead")}));Nu&&Iu({target:"JSON",stat:!0,forced:zu},{stringify:function(t,e,n){var r=Nu.apply(null,arguments);return"string"==typeof r?r.replace(Mu,Hu):r}});var Wu=s;Wu.JSON||(Wu.JSON={stringify:JSON.stringify});var Vu=function(t,e,n){return Wu.JSON.stringify.apply(null,arguments)},qu=G,Yu=C,Xu=Nn,Gu=wo,Uu=ue,$u=st,Qu=me,Ju=Object.assign,Ku=Object.defineProperty,Zu=!Ju||Yu((function(){if(qu&&1!==Ju({b:1},Ju(Ku({},"a",{enumerable:!0,get:function(){Ku(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=Ju({},t)[n]||Xu(Ju({},e)).join("")!=r}))?function(t,e){for(var n=$u(t),r=arguments.length,i=1,o=Gu.f,a=Uu.f;r>i;)for(var s,c=Qu(arguments[i++]),l=o?Xu(c).concat(o(c)):Xu(c),u=l.length,h=0;u>h;)s=l[h++],qu&&!a.call(c,s)||(n[s]=c[s]);return n}:Ju;Ke({target:"Object",stat:!0,forced:Object.assign!==Zu},{assign:Zu});var th=s.Object.assign,eh=l,nh=[].slice,rh=function(t){return function(e,n){var r=arguments.length>2,i=r?nh.call(arguments,2):void 0;return t(r?function(){("function"==typeof e?e:Function(e)).apply(this,i)}:e,n)}};Ke({global:!0,bind:!0,forced:/MSIE .\./.test(v)},{setTimeout:rh(eh.setTimeout),setInterval:rh(eh.setInterval)});var ih=s.setTimeout,oh=st,ah=Cn,sh=mn;Ke({target:"Array",proto:!0},{fill:function(t){for(var e=oh(this),n=sh(e.length),r=arguments.length,i=ah(r>1?arguments[1]:void 0,n),o=r>2?arguments[2]:void 0,a=void 0===o?n:ah(o,n);a>i;)e[i++]=t;return e}});var ch=fs("Array").fill,lh=Array.prototype,uh=function(t){var e=t.fill;return t===lh||t instanceof Array&&e===lh.fill?ch:e},hh=s.Object.getOwnPropertySymbols,fh={exports:{}},ph=Ke,vh=C,dh=we,gh=le.f,yh=G,mh=vh((function(){gh(1)}));ph({target:"Object",stat:!0,forced:!yh||mh,sham:!yh},{getOwnPropertyDescriptor:function(t,e){return gh(dh(t),e)}});var bh=s.Object,kh=fh.exports=function(t,e){return bh.getOwnPropertyDescriptor(t,e)};bh.getOwnPropertyDescriptor.sham&&(kh.sham=!0);var wh=fh.exports,Ch=Fs,Eh=we,Oh=le,Th=ni;Ke({target:"Object",stat:!0,sham:!G},{getOwnPropertyDescriptors:function(t){for(var e,n,r=Eh(t),i=Oh.f,o=Ch(r),a={},s=0;o.length>s;)void 0!==(n=i(r,e=o[s++]))&&Th(a,e,n);return a}});var _h=s.Object.getOwnPropertyDescriptors,Fh={exports:{}};Ke({target:"Object",stat:!0,forced:!G,sham:!G},{defineProperties:Hn});var Ah=s.Object,xh=Fh.exports=function(t,e){return Ah.defineProperties(t,e)};Ah.defineProperties.sham&&(xh.sham=!0);var Sh=Fh.exports,Ph=Su;function Dh(t,e,n){return e in t?Pu(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var jh=Fn.includes;Ke({target:"Array",proto:!0},{includes:function(t){return jh(this,t,arguments.length>1?arguments[1]:void 0)}});var Ih=fs("Array").includes,Rh=X,Nh=de,Mh=Et("match"),Bh=function(t){var e;return Rh(t)&&(void 0!==(e=t[Mh])?!!e:"RegExp"==Nh(t))},Lh=Et("match"),Hh=function(t){if(Bh(t))throw TypeError("The method doesn't accept regular expressions");return t},zh=P,Wh=S;Ke({target:"String",proto:!0,forced:!function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[Lh]=!1,"/./"[t](e)}catch(t){}}return!1}("includes")},{includes:function(t){return!!~Wh(zh(this)).indexOf(Wh(Hh(t)),arguments.length>1?arguments[1]:void 0)}});var Vh=fs("String").includes,qh=Ih,Yh=Vh,Xh=Array.prototype,Gh=String.prototype,Uh=function(t){var e=t.includes;return t===Xh||t instanceof Array&&e===Xh.includes?qh:"string"==typeof t||t===Gh||t instanceof String&&e===Gh.includes?Yh:e},$h=st,Qh=an,Jh=Ze;Ke({target:"Object",stat:!0,forced:C((function(){Qh(1)})),sham:!Jh},{getPrototypeOf:function(t){return Qh($h(t))}});var Kh=s.Object.getPrototypeOf,Zh=No.filter;Ke({target:"Array",proto:!0,forced:!$i("filter")},{filter:function(t){return Zh(this,t,arguments.length>1?arguments[1]:void 0)}});var tf=fs("Array").filter,ef=Array.prototype,nf=function(t){var e=t.filter;return t===ef||t instanceof Array&&e===ef.filter?tf:e},rf=G,of=Nn,af=we,sf=ue.f,cf=function(t){return function(e){for(var n,r=af(e),i=of(r),o=i.length,a=0,s=[];o>a;)n=i[a++],rf&&!sf.call(r,n)||s.push(t?[n,r[n]]:r[n]);return s}},lf={entries:cf(!0),values:cf(!1)}.values;Ke({target:"Object",stat:!0},{values:function(t){return lf(t)}});var uf=s.Object.values,hf="\t\n\v\f\r \u2028\u2029\ufeff",ff=P,pf=S,vf="[\t\n\v\f\r \u2028\u2029\ufeff]",df=RegExp("^"+vf+vf+"*"),gf=RegExp(vf+vf+"*$"),yf=function(t){return function(e){var n=pf(ff(e));return 1&t&&(n=n.replace(df,"")),2&t&&(n=n.replace(gf,"")),n}},mf={start:yf(1),end:yf(2),trim:yf(3)},bf=S,kf=mf.trim,wf=hf,Cf=l.parseInt,Ef=/^[+-]?0[Xx]/,Of=8!==Cf(wf+"08")||22!==Cf(wf+"0x16")?function(t,e){var n=kf(bf(t));return Cf(n,e>>>0||(Ef.test(n)?16:10))}:Cf;Ke({global:!0,forced:parseInt!=Of},{parseInt:Of});var Tf=s.parseInt,_f=Ke,Ff=Fn.indexOf,Af=rc,xf=[].indexOf,Sf=!!xf&&1/[1].indexOf(1,-0)<0,Pf=Af("indexOf");_f({target:"Array",proto:!0,forced:Sf||!Pf},{indexOf:function(t){return Sf?xf.apply(this,arguments)||0:Ff(this,t,arguments.length>1?arguments[1]:void 0)}});var Df=fs("Array").indexOf,jf=Array.prototype,If=function(t){var e=t.indexOf;return t===jf||t instanceof Array&&e===jf.indexOf?Df:e},Rf=C,Nf=hf,Mf=mf.trim;Ke({target:"String",proto:!0,forced:function(t){return Rf((function(){return!!Nf[t]()||"
"!="
"[t]()||Nf[t].name!==t}))}("trim")},{trim:function(){return Mf(this)}});var Bf=fs("String").trim,Lf=String.prototype,Hf=function(t){var e=t.trim;return"string"==typeof t||t===Lf||t instanceof String&&e===Lf.trim?Bf:e};Ke({target:"Object",stat:!0,sham:!G},{create:Zn});var zf=s.Object,Wf=function(t,e){return zf.create(t,e)};function Vf(t,e){var n=void 0!==bs&&Bi(t)||t["@@iterator"];if(!n){if(xs(t)||(n=function(t,e){var n;if(!t)return;if("string"==typeof t)return qf(t,e);var r=Es(n=Object.prototype.toString.call(t)).call(n,8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return ki(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return qf(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function qf(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Yf(t,e){var n=Ns(t);if(hh){var r=hh(t);e&&(r=nf(r).call(r,(function(e){return wh(t,e).enumerable}))),n.push.apply(n,r)}return n}function Xf(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)uc(n=Yf(Object(r),!0)).call(n,(function(e){Dh(t,e,r[e])}));else if(_h)Sh(t,_h(r));else{var i;uc(i=Yf(Object(r))).call(i,(function(e){Ph(t,e,wh(r,e))}))}}return t}var Gf=/^\/?Date\((-?\d+)/i,Uf=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,$f=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,Qf=/^rgb\( *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *\)$/i,Jf=/^rgba\( *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *([01]|0?\.\d+) *\)$/i;function Kf(t){return t instanceof Number||"number"==typeof t}function Zf(t){return t instanceof String||"string"==typeof t}function tp(t){return"object"===Ua(t)&&null!==t}function ep(t,e,n,r){var i=!1;!0===r&&(i=null===e[n]&&void 0!==t[n]),i?delete t[n]:t[n]=e[n]}var np=th;function rp(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)||!0===n)if("object"===Ua(e[i])&&null!==e[i]&&Kh(e[i])===Object.prototype)void 0===t[i]?t[i]=rp({},e[i],n):"object"===Ua(t[i])&&null!==t[i]&&Kh(t[i])===Object.prototype?rp(t[i],e[i],n):ep(t,e,i,r);else if(xs(e[i])){var o;t[i]=Es(o=e[i]).call(o)}else ep(t,e,i,r);return t}function ip(t,e){var n;return Cs(n=[]).call(n,ms(t),[e])}function op(t){return Es(t).call(t)}var ap=uf;var sp={asBoolean:function(t,e){return"function"==typeof t&&(t=t()),null!=t?0!=t:e||null},asNumber:function(t,e){return"function"==typeof t&&(t=t()),null!=t?Number(t)||e||null:e||null},asString:function(t,e){return"function"==typeof t&&(t=t()),null!=t?String(t):e||null},asSize:function(t,e){return"function"==typeof t&&(t=t()),Zf(t)?t:Kf(t)?t+"px":e||null},asElement:function(t,e){return"function"==typeof t&&(t=t()),t||e||null}};function cp(t){var e;switch(t.length){case 3:case 4:return(e=$f.exec(t))?{r:Tf(e[1]+e[1],16),g:Tf(e[2]+e[2],16),b:Tf(e[3]+e[3],16)}:null;case 6:case 7:return(e=Uf.exec(t))?{r:Tf(e[1],16),g:Tf(e[2],16),b:Tf(e[3],16)}:null;default:return null}}function lp(t,e,n){var r;return"#"+Es(r=((1<<24)+(t<<16)+(e<<8)+n).toString(16)).call(r,1)}function up(t,e,n){t/=255,e/=255,n/=255;var r=Math.min(t,Math.min(e,n)),i=Math.max(t,Math.max(e,n));return r===i?{h:0,s:0,v:r}:{h:60*((t===r?3:n===r?1:5)-(t===r?e-n:n===r?t-e:n-t)/(i-r))/360,s:(i-r)/i,v:i}}var hp=function(t){var e,n={};return uc(e=t.split(";")).call(e,(function(t){if(""!=Hf(t).call(t)){var e,r,i=t.split(":"),o=Hf(e=i[0]).call(e),a=Hf(r=i[1]).call(r);n[o]=a}})),n},fp=function(t){var e;return js(e=Ns(t)).call(e,(function(e){return e+": "+t[e]})).join("; ")};function pp(t,e,n){var r,i,o,a=Math.floor(6*t),s=6*t-a,c=n*(1-e),l=n*(1-s*e),u=n*(1-(1-s)*e);switch(a%6){case 0:r=n,i=u,o=c;break;case 1:r=l,i=n,o=c;break;case 2:r=c,i=n,o=u;break;case 3:r=c,i=l,o=n;break;case 4:r=u,i=c,o=n;break;case 5:r=n,i=c,o=l}return{r:Math.floor(255*r),g:Math.floor(255*i),b:Math.floor(255*o)}}function vp(t,e,n){var r=pp(t,e,n);return lp(r.r,r.g,r.b)}function dp(t){var e=cp(t);if(!e)throw new TypeError("'".concat(t,"' is not a valid color."));return up(e.r,e.g,e.b)}function gp(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)}function yp(t){return Qf.test(t)}function mp(t){return Jf.test(t)}function bp(t){if(null===t||"object"!==Ua(t))return null;if(t instanceof Element)return t;var e=Wf(t);for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&"object"==Ua(t[n])&&(e[n]=bp(t[n]));return e}var kp={black:"#000000",navy:"#000080",darkblue:"#00008B",mediumblue:"#0000CD",blue:"#0000FF",darkgreen:"#006400",green:"#008000",teal:"#008080",darkcyan:"#008B8B",deepskyblue:"#00BFFF",darkturquoise:"#00CED1",mediumspringgreen:"#00FA9A",lime:"#00FF00",springgreen:"#00FF7F",aqua:"#00FFFF",cyan:"#00FFFF",midnightblue:"#191970",dodgerblue:"#1E90FF",lightseagreen:"#20B2AA",forestgreen:"#228B22",seagreen:"#2E8B57",darkslategray:"#2F4F4F",limegreen:"#32CD32",mediumseagreen:"#3CB371",turquoise:"#40E0D0",royalblue:"#4169E1",steelblue:"#4682B4",darkslateblue:"#483D8B",mediumturquoise:"#48D1CC",indigo:"#4B0082",darkolivegreen:"#556B2F",cadetblue:"#5F9EA0",cornflowerblue:"#6495ED",mediumaquamarine:"#66CDAA",dimgray:"#696969",slateblue:"#6A5ACD",olivedrab:"#6B8E23",slategray:"#708090",lightslategray:"#778899",mediumslateblue:"#7B68EE",lawngreen:"#7CFC00",chartreuse:"#7FFF00",aquamarine:"#7FFFD4",maroon:"#800000",purple:"#800080",olive:"#808000",gray:"#808080",skyblue:"#87CEEB",lightskyblue:"#87CEFA",blueviolet:"#8A2BE2",darkred:"#8B0000",darkmagenta:"#8B008B",saddlebrown:"#8B4513",darkseagreen:"#8FBC8F",lightgreen:"#90EE90",mediumpurple:"#9370D8",darkviolet:"#9400D3",palegreen:"#98FB98",darkorchid:"#9932CC",yellowgreen:"#9ACD32",sienna:"#A0522D",brown:"#A52A2A",darkgray:"#A9A9A9",lightblue:"#ADD8E6",greenyellow:"#ADFF2F",paleturquoise:"#AFEEEE",lightsteelblue:"#B0C4DE",powderblue:"#B0E0E6",firebrick:"#B22222",darkgoldenrod:"#B8860B",mediumorchid:"#BA55D3",rosybrown:"#BC8F8F",darkkhaki:"#BDB76B",silver:"#C0C0C0",mediumvioletred:"#C71585",indianred:"#CD5C5C",peru:"#CD853F",chocolate:"#D2691E",tan:"#D2B48C",lightgrey:"#D3D3D3",palevioletred:"#D87093",thistle:"#D8BFD8",orchid:"#DA70D6",goldenrod:"#DAA520",crimson:"#DC143C",gainsboro:"#DCDCDC",plum:"#DDA0DD",burlywood:"#DEB887",lightcyan:"#E0FFFF",lavender:"#E6E6FA",darksalmon:"#E9967A",violet:"#EE82EE",palegoldenrod:"#EEE8AA",lightcoral:"#F08080",khaki:"#F0E68C",aliceblue:"#F0F8FF",honeydew:"#F0FFF0",azure:"#F0FFFF",sandybrown:"#F4A460",wheat:"#F5DEB3",beige:"#F5F5DC",whitesmoke:"#F5F5F5",mintcream:"#F5FFFA",ghostwhite:"#F8F8FF",salmon:"#FA8072",antiquewhite:"#FAEBD7",linen:"#FAF0E6",lightgoldenrodyellow:"#FAFAD2",oldlace:"#FDF5E6",red:"#FF0000",fuchsia:"#FF00FF",magenta:"#FF00FF",deeppink:"#FF1493",orangered:"#FF4500",tomato:"#FF6347",hotpink:"#FF69B4",coral:"#FF7F50",darkorange:"#FF8C00",lightsalmon:"#FFA07A",orange:"#FFA500",lightpink:"#FFB6C1",pink:"#FFC0CB",gold:"#FFD700",peachpuff:"#FFDAB9",navajowhite:"#FFDEAD",moccasin:"#FFE4B5",bisque:"#FFE4C4",mistyrose:"#FFE4E1",blanchedalmond:"#FFEBCD",papayawhip:"#FFEFD5",lavenderblush:"#FFF0F5",seashell:"#FFF5EE",cornsilk:"#FFF8DC",lemonchiffon:"#FFFACD",floralwhite:"#FFFAF0",snow:"#FFFAFA",yellow:"#FFFF00",lightyellow:"#FFFFE0",ivory:"#FFFFF0",white:"#FFFFFF"},wp=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;_u(this,t),this.pixelRatio=e,this.generated=!1,this.centerCoordinates={x:144.5,y:144.5},this.r=289*.49,this.color={r:255,g:255,b:255,a:1},this.hueCircle=void 0,this.initialColor={r:255,g:255,b:255,a:1},this.previousColor=void 0,this.applied=!1,this.updateCallback=function(){},this.closeCallback=function(){},this._create()}return ju(t,[{key:"insertTo",value:function(t){void 0!==this.hammer&&(this.hammer.destroy(),this.hammer=void 0),this.container=t,this.container.appendChild(this.frame),this._bindHammer(),this._setSize()}},{key:"setUpdateCallback",value:function(t){if("function"!=typeof t)throw new Error("Function attempted to set as colorPicker update callback is not a function.");this.updateCallback=t}},{key:"setCloseCallback",value:function(t){if("function"!=typeof t)throw new Error("Function attempted to set as colorPicker closing callback is not a function.");this.closeCallback=t}},{key:"_isColorString",value:function(t){if("string"==typeof t)return kp[t]}},{key:"setColor",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if("none"!==t){var n,r=this._isColorString(t);if(void 0!==r&&(t=r),!0===Zf(t)){if(!0===yp(t)){var i=t.substr(4).substr(0,t.length-5).split(",");n={r:i[0],g:i[1],b:i[2],a:1}}else if(!0===mp(t)){var o=t.substr(5).substr(0,t.length-6).split(",");n={r:o[0],g:o[1],b:o[2],a:o[3]}}else if(!0===gp(t)){var a=cp(t);n={r:a.r,g:a.g,b:a.b,a:1}}}else if(t instanceof Object&&void 0!==t.r&&void 0!==t.g&&void 0!==t.b){var s=void 0!==t.a?t.a:"1.0";n={r:t.r,g:t.g,b:t.b,a:s}}if(void 0===n)throw new Error("Unknown color passed to the colorPicker. Supported are strings: rgb, hex, rgba. Object: rgb ({r:r,g:g,b:b,[a:a]}). Supplied: "+Vu(t));this._setColor(n,e)}}},{key:"show",value:function(){void 0!==this.closeCallback&&(this.closeCallback(),this.closeCallback=void 0),this.applied=!1,this.frame.style.display="block",this._generateHueCircle()}},{key:"_hide",value:function(){var t=this,e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];!0===e&&(this.previousColor=th({},this.color)),!0===this.applied&&this.updateCallback(this.initialColor),this.frame.style.display="none",ih((function(){void 0!==t.closeCallback&&(t.closeCallback(),t.closeCallback=void 0)}),0)}},{key:"_save",value:function(){this.updateCallback(this.color),this.applied=!1,this._hide()}},{key:"_apply",value:function(){this.applied=!0,this.updateCallback(this.color),this._updatePicker(this.color)}},{key:"_loadLast",value:function(){void 0!==this.previousColor?this.setColor(this.previousColor,!1):alert("There is no last color to load...")}},{key:"_setColor",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];!0===e&&(this.initialColor=th({},t)),this.color=t;var n=up(t.r,t.g,t.b),r=2*Math.PI,i=this.r*n.s,o=this.centerCoordinates.x+i*Math.sin(r*n.h),a=this.centerCoordinates.y+i*Math.cos(r*n.h);this.colorPickerSelector.style.left=o-.5*this.colorPickerSelector.clientWidth+"px",this.colorPickerSelector.style.top=a-.5*this.colorPickerSelector.clientHeight+"px",this._updatePicker(t)}},{key:"_setOpacity",value:function(t){this.color.a=t/100,this._updatePicker(this.color)}},{key:"_setBrightness",value:function(t){var e=up(this.color.r,this.color.g,this.color.b);e.v=t/100;var n=pp(e.h,e.s,e.v);n.a=this.color.a,this.color=n,this._updatePicker()}},{key:"_updatePicker",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.color,e=up(t.r,t.g,t.b),n=this.colorPickerCanvas.getContext("2d");void 0===this.pixelRation&&(this.pixelRatio=(window.devicePixelRatio||1)/(n.webkitBackingStorePixelRatio||n.mozBackingStorePixelRatio||n.msBackingStorePixelRatio||n.oBackingStorePixelRatio||n.backingStorePixelRatio||1)),n.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var r=this.colorPickerCanvas.clientWidth,i=this.colorPickerCanvas.clientHeight;n.clearRect(0,0,r,i),n.putImageData(this.hueCircle,0,0),n.fillStyle="rgba(0,0,0,"+(1-e.v)+")",n.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),uh(n).call(n),this.brightnessRange.value=100*e.v,this.opacityRange.value=100*t.a,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}},{key:"_setSize",value:function(){this.colorPickerCanvas.style.width="100%",this.colorPickerCanvas.style.height="100%",this.colorPickerCanvas.width=289*this.pixelRatio,this.colorPickerCanvas.height=289*this.pixelRatio}},{key:"_create",value:function(){var t,e,n,r;if(this.frame=document.createElement("div"),this.frame.className="vis-color-picker",this.colorPickerDiv=document.createElement("div"),this.colorPickerSelector=document.createElement("div"),this.colorPickerSelector.className="vis-selector",this.colorPickerDiv.appendChild(this.colorPickerSelector),this.colorPickerCanvas=document.createElement("canvas"),this.colorPickerDiv.appendChild(this.colorPickerCanvas),this.colorPickerCanvas.getContext){var i=this.colorPickerCanvas.getContext("2d");this.pixelRatio=(window.devicePixelRatio||1)/(i.webkitBackingStorePixelRatio||i.mozBackingStorePixelRatio||i.msBackingStorePixelRatio||i.oBackingStorePixelRatio||i.backingStorePixelRatio||1),this.colorPickerCanvas.getContext("2d").setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}else{var o=document.createElement("DIV");o.style.color="red",o.style.fontWeight="bold",o.style.padding="10px",o.innerText="Error: your browser does not support HTML canvas",this.colorPickerCanvas.appendChild(o)}this.colorPickerDiv.className="vis-color",this.opacityDiv=document.createElement("div"),this.opacityDiv.className="vis-opacity",this.brightnessDiv=document.createElement("div"),this.brightnessDiv.className="vis-brightness",this.arrowDiv=document.createElement("div"),this.arrowDiv.className="vis-arrow",this.opacityRange=document.createElement("input");try{this.opacityRange.type="range",this.opacityRange.min="0",this.opacityRange.max="100"}catch(t){}this.opacityRange.value="100",this.opacityRange.className="vis-range",this.brightnessRange=document.createElement("input");try{this.brightnessRange.type="range",this.brightnessRange.min="0",this.brightnessRange.max="100"}catch(t){}this.brightnessRange.value="100",this.brightnessRange.className="vis-range",this.opacityDiv.appendChild(this.opacityRange),this.brightnessDiv.appendChild(this.brightnessRange);var a=this;this.opacityRange.onchange=function(){a._setOpacity(this.value)},this.opacityRange.oninput=function(){a._setOpacity(this.value)},this.brightnessRange.onchange=function(){a._setBrightness(this.value)},this.brightnessRange.oninput=function(){a._setBrightness(this.value)},this.brightnessLabel=document.createElement("div"),this.brightnessLabel.className="vis-label vis-brightness",this.brightnessLabel.innerText="brightness:",this.opacityLabel=document.createElement("div"),this.opacityLabel.className="vis-label vis-opacity",this.opacityLabel.innerText="opacity:",this.newColorDiv=document.createElement("div"),this.newColorDiv.className="vis-new-color",this.newColorDiv.innerText="new",this.initialColorDiv=document.createElement("div"),this.initialColorDiv.className="vis-initial-color",this.initialColorDiv.innerText="initial",this.cancelButton=document.createElement("div"),this.cancelButton.className="vis-button vis-cancel",this.cancelButton.innerText="cancel",this.cancelButton.onclick=ec(t=this._hide).call(t,this,!1),this.applyButton=document.createElement("div"),this.applyButton.className="vis-button vis-apply",this.applyButton.innerText="apply",this.applyButton.onclick=ec(e=this._apply).call(e,this),this.saveButton=document.createElement("div"),this.saveButton.className="vis-button vis-save",this.saveButton.innerText="save",this.saveButton.onclick=ec(n=this._save).call(n,this),this.loadButton=document.createElement("div"),this.loadButton.className="vis-button vis-load",this.loadButton.innerText="load last",this.loadButton.onclick=ec(r=this._loadLast).call(r,this),this.frame.appendChild(this.colorPickerDiv),this.frame.appendChild(this.arrowDiv),this.frame.appendChild(this.brightnessLabel),this.frame.appendChild(this.brightnessDiv),this.frame.appendChild(this.opacityLabel),this.frame.appendChild(this.opacityDiv),this.frame.appendChild(this.newColorDiv),this.frame.appendChild(this.initialColorDiv),this.frame.appendChild(this.cancelButton),this.frame.appendChild(this.applyButton),this.frame.appendChild(this.saveButton),this.frame.appendChild(this.loadButton)}},{key:"_bindHammer",value:function(){var t=this;this.drag={},this.pinch={},this.hammer=new Cu(this.colorPickerCanvas),this.hammer.get("pinch").set({enable:!0}),this.hammer.on("hammer.input",(function(e){e.isFirst&&t._moveSelector(e)})),this.hammer.on("tap",(function(e){t._moveSelector(e)})),this.hammer.on("panstart",(function(e){t._moveSelector(e)})),this.hammer.on("panmove",(function(e){t._moveSelector(e)})),this.hammer.on("panend",(function(e){t._moveSelector(e)}))}},{key:"_generateHueCircle",value:function(){if(!1===this.generated){var t=this.colorPickerCanvas.getContext("2d");void 0===this.pixelRation&&(this.pixelRatio=(window.devicePixelRatio||1)/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1)),t.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var e,n,r,i,o=this.colorPickerCanvas.clientWidth,a=this.colorPickerCanvas.clientHeight;t.clearRect(0,0,o,a),this.centerCoordinates={x:.5*o,y:.5*a},this.r=.49*o;var s,c=2*Math.PI/360,l=1/this.r;for(r=0;r<360;r++)for(i=0;i<this.r;i++)e=this.centerCoordinates.x+i*Math.sin(c*r),n=this.centerCoordinates.y+i*Math.cos(c*r),s=pp(.002777777777777778*r,i*l,1),t.fillStyle="rgb("+s.r+","+s.g+","+s.b+")",t.fillRect(e-.5,n-.5,2,2);t.strokeStyle="rgba(0,0,0,1)",t.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),t.stroke(),this.hueCircle=t.getImageData(0,0,o,a)}this.generated=!0}},{key:"_moveSelector",value:function(t){var e=this.colorPickerDiv.getBoundingClientRect(),n=t.center.x-e.left,r=t.center.y-e.top,i=.5*this.colorPickerDiv.clientHeight,o=.5*this.colorPickerDiv.clientWidth,a=n-o,s=r-i,c=Math.atan2(a,s),l=.98*Math.min(Math.sqrt(a*a+s*s),o),u=Math.cos(c)*l+i,h=Math.sin(c)*l+o;this.colorPickerSelector.style.top=u-.5*this.colorPickerSelector.clientHeight+"px",this.colorPickerSelector.style.left=h-.5*this.colorPickerSelector.clientWidth+"px";var f=c/(2*Math.PI);f=f<0?f+1:f;var p=l/this.r,v=up(this.color.r,this.color.g,this.color.b);v.h=f,v.s=p;var d=pp(v.h,v.s,v.v);d.a=this.color.a,this.color=d,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}}]),t}();function Cp(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(e.length<1)throw new TypeError("Invalid arguments.");if(1===e.length)return document.createTextNode(e[0]);var r=document.createElement(e[0]);return r.appendChild(Cp.apply(void 0,ms(Es(e).call(e,1)))),r}var Ep,Op=function(){function t(e,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){return!1};_u(this,t),this.parent=e,this.changedOptions=[],this.container=n,this.allowCreation=!1,this.hideOption=o,this.options={},this.initialized=!1,this.popupCounter=0,this.defaultOptions={enabled:!1,filter:!0,container:void 0,showButton:!0},th(this.options,this.defaultOptions),this.configureOptions=r,this.moduleOptions={},this.domElements=[],this.popupDiv={},this.popupLimit=5,this.popupHistory={},this.colorPicker=new wp(i),this.wrapper=void 0}return ju(t,[{key:"setOptions",value:function(t){if(void 0!==t){this.popupHistory={},this._removePopup();var e=!0;if("string"==typeof t)this.options.filter=t;else if(xs(t))this.options.filter=t.join();else if("object"===Ua(t)){if(null==t)throw new TypeError("options cannot be null");void 0!==t.container&&(this.options.container=t.container),void 0!==nf(t)&&(this.options.filter=nf(t)),void 0!==t.showButton&&(this.options.showButton=t.showButton),void 0!==t.enabled&&(e=t.enabled)}else"boolean"==typeof t?(this.options.filter=!0,e=t):"function"==typeof t&&(this.options.filter=t,e=!0);!1===nf(this.options)&&(e=!1),this.options.enabled=e}this._clean()}},{key:"setModuleOptions",value:function(t){this.moduleOptions=t,!0===this.options.enabled&&(this._clean(),void 0!==this.options.container&&(this.container=this.options.container),this._create())}},{key:"_create",value:function(){this._clean(),this.changedOptions=[];var t=nf(this.options),e=0,n=!1;for(var r in this.configureOptions)Object.prototype.hasOwnProperty.call(this.configureOptions,r)&&(this.allowCreation=!1,n=!1,"function"==typeof t?n=(n=t(r,[]))||this._handleObject(this.configureOptions[r],[r],!0):!0!==t&&-1===If(t).call(t,r)||(n=!0),!1!==n&&(this.allowCreation=!0,e>0&&this._makeItem([]),this._makeHeader(r),this._handleObject(this.configureOptions[r],[r])),e++);this._makeButton(),this._push()}},{key:"_push",value:function(){this.wrapper=document.createElement("div"),this.wrapper.className="vis-configuration-wrapper",this.container.appendChild(this.wrapper);for(var t=0;t<this.domElements.length;t++)this.wrapper.appendChild(this.domElements[t]);this._showPopupIfNeeded()}},{key:"_clean",value:function(){for(var t=0;t<this.domElements.length;t++)this.wrapper.removeChild(this.domElements[t]);void 0!==this.wrapper&&(this.container.removeChild(this.wrapper),this.wrapper=void 0),this.domElements=[],this._removePopup()}},{key:"_getValue",value:function(t){for(var e=this.moduleOptions,n=0;n<t.length;n++){if(void 0===e[t[n]]){e=void 0;break}e=e[t[n]]}return e}},{key:"_makeItem",value:function(t){if(!0===this.allowCreation){var e=document.createElement("div");e.className="vis-configuration vis-config-item vis-config-s"+t.length;for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return uc(r).call(r,(function(t){e.appendChild(t)})),this.domElements.push(e),this.domElements.length}return 0}},{key:"_makeHeader",value:function(t){var e=document.createElement("div");e.className="vis-configuration vis-config-header",e.innerText=t,this._makeItem([],e)}},{key:"_makeLabel",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=document.createElement("div");if(r.className="vis-configuration vis-config-label vis-config-s"+e.length,!0===n){for(;r.firstChild;)r.removeChild(r.firstChild);r.appendChild(Cp("i","b",t))}else r.innerText=t+":";return r}},{key:"_makeDropdown",value:function(t,e,n){var r=document.createElement("select");r.className="vis-configuration vis-config-select";var i=0;void 0!==e&&-1!==If(t).call(t,e)&&(i=If(t).call(t,e));for(var o=0;o<t.length;o++){var a=document.createElement("option");a.value=t[o],o===i&&(a.selected="selected"),a.innerText=t[o],r.appendChild(a)}var s=this;r.onchange=function(){s._update(this.value,n)};var c=this._makeLabel(n[n.length-1],n);this._makeItem(n,c,r)}},{key:"_makeRange",value:function(t,e,n){var r=t[0],i=t[1],o=t[2],a=t[3],s=document.createElement("input");s.className="vis-configuration vis-config-range";try{s.type="range",s.min=i,s.max=o}catch(t){}s.step=a;var c="",l=0;if(void 0!==e){var u=1.2;e<0&&e*u<i?(s.min=Math.ceil(e*u),l=s.min,c="range increased"):e/u<i&&(s.min=Math.ceil(e/u),l=s.min,c="range increased"),e*u>o&&1!==o&&(s.max=Math.ceil(e*u),l=s.max,c="range increased"),s.value=e}else s.value=r;var h=document.createElement("input");h.className="vis-configuration vis-config-rangeinput",h.value=s.value;var f=this;s.onchange=function(){h.value=this.value,f._update(Number(this.value),n)},s.oninput=function(){h.value=this.value};var p=this._makeLabel(n[n.length-1],n),v=this._makeItem(n,p,s,h);""!==c&&this.popupHistory[v]!==l&&(this.popupHistory[v]=l,this._setupPopup(c,v))}},{key:"_makeButton",value:function(){var t=this;if(!0===this.options.showButton){var e=document.createElement("div");e.className="vis-configuration vis-config-button",e.innerText="generate options",e.onclick=function(){t._printOptions()},e.onmouseover=function(){e.className="vis-configuration vis-config-button hover"},e.onmouseout=function(){e.className="vis-configuration vis-config-button"},this.optionsContainer=document.createElement("div"),this.optionsContainer.className="vis-configuration vis-config-option-container",this.domElements.push(this.optionsContainer),this.domElements.push(e)}}},{key:"_setupPopup",value:function(t,e){var n=this;if(!0===this.initialized&&!0===this.allowCreation&&this.popupCounter<this.popupLimit){var r=document.createElement("div");r.id="vis-configuration-popup",r.className="vis-configuration-popup",r.innerText=t,r.onclick=function(){n._removePopup()},this.popupCounter+=1,this.popupDiv={html:r,index:e}}}},{key:"_removePopup",value:function(){void 0!==this.popupDiv.html&&(this.popupDiv.html.parentNode.removeChild(this.popupDiv.html),clearTimeout(this.popupDiv.hideTimeout),clearTimeout(this.popupDiv.deleteTimeout),this.popupDiv={})}},{key:"_showPopupIfNeeded",value:function(){var t=this;if(void 0!==this.popupDiv.html){var e=this.domElements[this.popupDiv.index].getBoundingClientRect();this.popupDiv.html.style.left=e.left+"px",this.popupDiv.html.style.top=e.top-30+"px",document.body.appendChild(this.popupDiv.html),this.popupDiv.hideTimeout=ih((function(){t.popupDiv.html.style.opacity=0}),1500),this.popupDiv.deleteTimeout=ih((function(){t._removePopup()}),1800)}}},{key:"_makeCheckbox",value:function(t,e,n){var r=document.createElement("input");r.type="checkbox",r.className="vis-configuration vis-config-checkbox",r.checked=t,void 0!==e&&(r.checked=e,e!==t&&("object"===Ua(t)?e!==t.enabled&&this.changedOptions.push({path:n,value:e}):this.changedOptions.push({path:n,value:e})));var i=this;r.onchange=function(){i._update(this.checked,n)};var o=this._makeLabel(n[n.length-1],n);this._makeItem(n,o,r)}},{key:"_makeTextInput",value:function(t,e,n){var r=document.createElement("input");r.type="text",r.className="vis-configuration vis-config-text",r.value=e,e!==t&&this.changedOptions.push({path:n,value:e});var i=this;r.onchange=function(){i._update(this.value,n)};var o=this._makeLabel(n[n.length-1],n);this._makeItem(n,o,r)}},{key:"_makeColorField",value:function(t,e,n){var r=this,i=t[1],o=document.createElement("div");"none"!==(e=void 0===e?i:e)?(o.className="vis-configuration vis-config-colorBlock",o.style.backgroundColor=e):o.className="vis-configuration vis-config-colorBlock none",e=void 0===e?i:e,o.onclick=function(){r._showColorPicker(e,o,n)};var a=this._makeLabel(n[n.length-1],n);this._makeItem(n,a,o)}},{key:"_showColorPicker",value:function(t,e,n){var r=this;e.onclick=function(){},this.colorPicker.insertTo(e),this.colorPicker.show(),this.colorPicker.setColor(t),this.colorPicker.setUpdateCallback((function(t){var i="rgba("+t.r+","+t.g+","+t.b+","+t.a+")";e.style.backgroundColor=i,r._update(i,n)})),this.colorPicker.setCloseCallback((function(){e.onclick=function(){r._showColorPicker(t,e,n)}}))}},{key:"_handleObject",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!1,i=nf(this.options),o=!1;for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a)){r=!0;var s=t[a],c=ip(e,a);if("function"==typeof i&&!1===(r=i(a,e))&&!xs(s)&&"string"!=typeof s&&"boolean"!=typeof s&&s instanceof Object&&(this.allowCreation=!1,r=this._handleObject(s,c,!0),this.allowCreation=!1===n),!1!==r){o=!0;var l=this._getValue(c);if(xs(s))this._handleArray(s,l,c);else if("string"==typeof s)this._makeTextInput(s,l,c);else if("boolean"==typeof s)this._makeCheckbox(s,l,c);else if(s instanceof Object){if(!this.hideOption(e,a,this.moduleOptions))if(void 0!==s.enabled){var u=ip(c,"enabled"),h=this._getValue(u);if(!0===h){var f=this._makeLabel(a,c,!0);this._makeItem(c,f),o=this._handleObject(s,c)||o}else this._makeCheckbox(s,h,c)}else{var p=this._makeLabel(a,c,!0);this._makeItem(c,p),o=this._handleObject(s,c)||o}}else console.error("dont know how to handle",s,a,c)}}return o}},{key:"_handleArray",value:function(t,e,n){"string"==typeof t[0]&&"color"===t[0]?(this._makeColorField(t,e,n),t[1]!==e&&this.changedOptions.push({path:n,value:e})):"string"==typeof t[0]?(this._makeDropdown(t,e,n),t[0]!==e&&this.changedOptions.push({path:n,value:e})):"number"==typeof t[0]&&(this._makeRange(t,e,n),t[0]!==e&&this.changedOptions.push({path:n,value:Number(e)}))}},{key:"_update",value:function(t,e){var n=this._constructOptions(t,e);this.parent.body&&this.parent.body.emitter&&this.parent.body.emitter.emit&&this.parent.body.emitter.emit("configChange",n),this.initialized=!0,this.parent.setOptions(n)}},{key:"_constructOptions",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n;t="false"!==(t="true"===t||t)&&t;for(var i=0;i<e.length;i++)"global"!==e[i]&&(void 0===r[e[i]]&&(r[e[i]]={}),i!==e.length-1?r=r[e[i]]:r[e[i]]=t);return n}},{key:"_printOptions",value:function(){for(var t=this.getOptions();this.optionsContainer.firstChild;)this.optionsContainer.removeChild(this.optionsContainer.firstChild);this.optionsContainer.appendChild(Cp("pre","const options = "+Vu(t,null,2)))}},{key:"getOptions",value:function(){for(var t={},e=0;e<this.changedOptions.length;e++)this._constructOptions(this.changedOptions[e].value,this.changedOptions[e].path,t);return t}}]),t}(),Tp=!1,_p="background: #FFeeee; color: #dd0000",Fp=Tu,Ap=wp,xp=Op,Sp=Cu,Pp=function(){function t(e,n){_u(this,t),this.container=e,this.overflowMethod=n||"cap",this.x=0,this.y=0,this.padding=5,this.hidden=!1,this.frame=document.createElement("div"),this.frame.className="vis-tooltip",this.container.appendChild(this.frame)}return ju(t,[{key:"setPosition",value:function(t,e){this.x=Tf(t),this.y=Tf(e)}},{key:"setText",value:function(t){if(t instanceof Element){for(;this.frame.firstChild;)this.frame.removeChild(this.frame.firstChild);this.frame.appendChild(t)}else this.frame.innerText=t}},{key:"show",value:function(t){if(void 0===t&&(t=!0),!0===t){var e=this.frame.clientHeight,n=this.frame.clientWidth,r=this.frame.parentNode.clientHeight,i=this.frame.parentNode.clientWidth,o=0,a=0;if("flip"==this.overflowMethod){var s=!1,c=!0;this.y-e<this.padding&&(c=!1),this.x+n>i-this.padding&&(s=!0),o=s?this.x-n:this.x,a=c?this.y-e:this.y}else(a=this.y-e)+e+this.padding>r&&(a=r-e-this.padding),a<this.padding&&(a=this.padding),(o=this.x)+n+this.padding>i&&(o=i-n-this.padding),o<this.padding&&(o=this.padding);this.frame.style.left=o+"px",this.frame.style.top=a+"px",this.frame.style.visibility="visible",this.hidden=!1}else this.hide()}},{key:"hide",value:function(){this.hidden=!0,this.frame.style.left="0",this.frame.style.top="0",this.frame.style.visibility="hidden"}},{key:"destroy",value:function(){this.frame.parentNode.removeChild(this.frame)}}]),t}(),Dp=function(){function t(){_u(this,t)}return ju(t,null,[{key:"validate",value:function(e,n,r){Tp=!1,Ep=n;var i=n;return void 0!==r&&(i=n[r]),t.parse(e,i,[]),Tp}},{key:"parse",value:function(e,n,r){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.check(i,e,n,r)}},{key:"check",value:function(e,n,r,i){if(void 0!==r[e]||void 0!==r.__any__){var o=e,a=!0;void 0===r[e]&&void 0!==r.__any__&&(o="__any__",a="object"===t.getType(n[e]));var s=r[o];a&&void 0!==s.__type__&&(s=s.__type__),t.checkFields(e,n,r,o,s,i)}else t.getSuggestion(e,r,i)}},{key:"checkFields",value:function(e,n,r,i,o,a){var s=function(n){console.error("%c"+n+t.printLocation(a,e),_p)},c=t.getType(n[e]),l=o[c];void 0!==l?"array"===t.getType(l)&&-1===If(l).call(l,n[e])?(s('Invalid option detected in "'+e+'". Allowed values are:'+t.print(l)+' not "'+n[e]+'". '),Tp=!0):"object"===c&&"__any__"!==i&&(a=ip(a,e),t.parse(n[e],r[i],a)):void 0===o.any&&(s('Invalid type received for "'+e+'". Expected: '+t.print(Ns(o))+". Received ["+c+'] "'+n[e]+'"'),Tp=!0)}},{key:"getType",value:function(t){var e=Ua(t);return"object"===e?null===t?"null":t instanceof Boolean?"boolean":t instanceof Number?"number":t instanceof String?"string":xs(t)?"array":t instanceof Date?"date":void 0!==t.nodeType?"dom":!0===t._isAMomentObject?"moment":"object":"number"===e?"number":"boolean"===e?"boolean":"string"===e?"string":void 0===e?"undefined":e}},{key:"getSuggestion",value:function(e,n,r){var i,o=t.findInOptions(e,n,r,!1),a=t.findInOptions(e,Ep,[],!0);i=void 0!==o.indexMatch?" in "+t.printLocation(o.path,e,"")+'Perhaps it was incomplete? Did you mean: "'+o.indexMatch+'"?\n\n':a.distance<=4&&o.distance>a.distance?" in "+t.printLocation(o.path,e,"")+"Perhaps it was misplaced? Matching option found at: "+t.printLocation(a.path,a.closestMatch,""):o.distance<=8?'. Did you mean "'+o.closestMatch+'"?'+t.printLocation(o.path,e):". Did you mean one of these: "+t.print(Ns(n))+t.printLocation(r,e),console.error('%cUnknown option detected: "'+e+'"'+i,_p),Tp=!0}},{key:"findInOptions",value:function(e,n,r){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=1e9,a="",s=[],c=e.toLowerCase(),l=void 0;for(var u in n){var h=void 0;if(void 0!==n[u].__type__&&!0===i){var f=t.findInOptions(e,n[u],ip(r,u));o>f.distance&&(a=f.closestMatch,s=f.path,o=f.distance,l=f.indexMatch)}else{var p;-1!==If(p=u.toLowerCase()).call(p,c)&&(l=u),o>(h=t.levenshteinDistance(e,u))&&(a=u,s=op(r),o=h)}}return{closestMatch:a,path:s,distance:o,indexMatch:l}}},{key:"printLocation",value:function(t,e){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Problem value found at: \n",r="\n\n"+n+"options = {\n",i=0;i<t.length;i++){for(var o=0;o<i+1;o++)r+=" ";r+=t[i]+": {\n"}for(var a=0;a<t.length+1;a++)r+=" ";r+=e+"\n";for(var s=0;s<t.length+1;s++){for(var c=0;c<t.length-s;c++)r+=" ";r+="}\n"}return r+"\n\n"}},{key:"print",value:function(t){return Vu(t).replace(/(")|(\[)|(\])|(,"__type__")/g,"").replace(/(,)/g,", ")}},{key:"levenshteinDistance",value:function(t,e){if(0===t.length)return e.length;if(0===e.length)return t.length;var n,r,i=[];for(n=0;n<=e.length;n++)i[n]=[n];for(r=0;r<=t.length;r++)i[0][r]=r;for(n=1;n<=e.length;n++)for(r=1;r<=t.length;r++)e.charAt(n-1)==t.charAt(r-1)?i[n][r]=i[n-1][r-1]:i[n][r]=Math.min(i[n-1][r-1]+1,Math.min(i[n][r-1]+1,i[n-1][r]+1));return i[e.length][t.length]}}]),t}();t.Activator=Fp,t.Alea=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return Xs(e.length?e:[Ys()])},t.ColorPicker=Ap,t.Configurator=xp,t.DELETE=Ls,t.HSVToHex=vp,t.HSVToRGB=pp,t.Hammer=Sp,t.Popup=Pp,t.RGBToHSV=up,t.RGBToHex=lp,t.VALIDATOR_PRINT_STYLE="background: #FFeeee; color: #dd0000",t.Validator=Dp,t.addClassName=function(t,e){var n=t.className.split(" "),r=e.split(" ");n=Cs(n).call(n,nf(r).call(r,(function(t){return!Uh(n).call(n,t)}))),t.className=n.join(" ")},t.addCssText=function(t,e){var n=hp(t.style.cssText),r=hp(e),i=Xf(Xf({},n),r);t.style.cssText=fp(i)},t.addEventListener=function(t,e,n,r){var i;t.addEventListener?(void 0===r&&(r=!1),"mousewheel"===e&&Uh(i=navigator.userAgent).call(i,"Firefox")&&(e="DOMMouseScroll"),t.addEventListener(e,n,r)):t.attachEvent("on"+e,n)},t.binarySearchCustom=function(t,e,n,r){for(var i=0,o=0,a=t.length-1;o<=a&&i<1e4;){var s=Math.floor((o+a)/2),c=t[s],l=e(void 0===r?c[n]:c[n][r]);if(0==l)return s;-1==l?o=s+1:a=s-1,i++}return-1},t.binarySearchValue=function(t,e,n,r,i){var o,a,s,c,l=0,u=0,h=t.length-1;for(i=null!=i?i:function(t,e){return t==e?0:t<e?-1:1};u<=h&&l<1e4;){if(c=Math.floor(.5*(h+u)),o=t[Math.max(0,c-1)][n],a=t[c][n],s=t[Math.min(t.length-1,c+1)][n],0==i(a,e))return c;if(i(o,e)<0&&i(a,e)>0)return"before"==r?Math.max(0,c-1):c;if(i(a,e)<0&&i(s,e)>0)return"before"==r?c:Math.min(t.length-1,c+1);i(a,e)<0?u=c+1:h=c-1,l++}return-1},t.bridgeObject=bp,t.copyAndExtendArray=ip,t.copyArray=op,t.deepExtend=rp,t.deepObjectAssign=Hs,t.easingFunctions={linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return t*(2-t)},easeInOutQuad:function(t){return t<.5?2*t*t:(4-2*t)*t-1},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return--t*t*t+1},easeInOutCubic:function(t){return t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return 1- --t*t*t*t},easeInOutQuart:function(t){return t<.5?8*t*t*t*t:1-8*--t*t*t*t},easeInQuint:function(t){return t*t*t*t*t},easeOutQuint:function(t){return 1+--t*t*t*t*t},easeInOutQuint:function(t){return t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t}},t.equalArray=function(t,e){if(t.length!==e.length)return!1;for(var n=0,r=t.length;n<r;n++)if(t[n]!=e[n])return!1;return!0},t.extend=np,t.fillIfDefined=function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];for(var i in e)if(void 0!==n[i])if(null===n[i]||"object"!==Ua(n[i]))ep(e,n,i,r);else{var o=e[i],a=n[i];tp(o)&&tp(a)&&t(o,a,r)}},t.forEach=function(t,e){if(xs(t))for(var n=t.length,r=0;r<n;r++)e(t[r],r,t);else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e(t[i],i,t)},t.getAbsoluteLeft=function(t){return t.getBoundingClientRect().left},t.getAbsoluteRight=function(t){return t.getBoundingClientRect().right},t.getAbsoluteTop=function(t){return t.getBoundingClientRect().top},t.getScrollBarWidth=function(){var t=document.createElement("p");t.style.width="100%",t.style.height="200px";var e=document.createElement("div");e.style.position="absolute",e.style.top="0px",e.style.left="0px",e.style.visibility="hidden",e.style.width="200px",e.style.height="150px",e.style.overflow="hidden",e.appendChild(t),document.body.appendChild(e);var n=t.offsetWidth;e.style.overflow="scroll";var r=t.offsetWidth;return n==r&&(r=e.clientWidth),document.body.removeChild(e),n-r},t.getTarget=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.event,e=null;return t&&(t.target?e=t.target:t.srcElement&&(e=t.srcElement)),e instanceof Element&&(null==e.nodeType||3!=e.nodeType||(e=e.parentNode)instanceof Element)?e:null},t.getType=function(t){var e=Ua(t);return"object"===e?null===t?"null":t instanceof Boolean?"Boolean":t instanceof Number?"Number":t instanceof String?"String":xs(t)?"Array":t instanceof Date?"Date":"Object":"number"===e?"Number":"boolean"===e?"Boolean":"string"===e?"String":void 0===e?"undefined":e},t.hasParent=function(t,e){for(var n=t;n;){if(n===e)return!0;if(!n.parentNode)return!1;n=n.parentNode}return!1},t.hexToHSV=dp,t.hexToRGB=cp,t.insertSort=function(t,e){for(var n=0;n<t.length;n++){var r=t[n],i=void 0;for(i=n;i>0&&e(r,t[i-1])<0;i--)t[i]=t[i-1];t[i]=r}return t},t.isDate=function(t){if(t instanceof Date)return!0;if(Zf(t)){if(Gf.exec(t))return!0;if(!isNaN(Date.parse(t)))return!0}return!1},t.isNumber=Kf,t.isObject=tp,t.isString=Zf,t.isValidHex=gp,t.isValidRGB=yp,t.isValidRGBA=mp,t.mergeOptions=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=function(t){return null!=t},o=function(t){return null!==t&&"object"===Ua(t)},a=function(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0};if(!o(t))throw new Error("Parameter mergeTarget must be an object");if(!o(e))throw new Error("Parameter options must be an object");if(!i(n))throw new Error("Parameter option must have a value");if(!o(r))throw new Error("Parameter globalOptions must be an object");var s=function(t,e,n){o(t[n])||(t[n]={});var r=e[n],i=t[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},c=e[n],l=o(r)&&!a(r),u=l?r[n]:void 0,h=u?u.enabled:void 0;if(void 0!==c){if("boolean"==typeof c)return o(t[n])||(t[n]={}),void(t[n].enabled=c);if(null===c&&!o(t[n])){if(!i(u))return;t[n]=Wf(u)}if(o(c)){var f=!0;void 0!==c.enabled?f=c.enabled:void 0!==h&&(f=u.enabled),s(t,e,n),t[n].enabled=f}}},t.option=sp,t.overrideOpacity=function(t,e){if(Uh(t).call(t,"rgba"))return t;if(Uh(t).call(t,"rgb")){var n=t.substr(If(t).call(t,"(")+1).replace(")","").split(",");return"rgba("+n[0]+","+n[1]+","+n[2]+","+e+")"}var r=cp(t);return null==r?t:"rgba("+r.r+","+r.g+","+r.b+","+e+")"},t.parseColor=function(t,e){if(Zf(t)){var n=t;if(yp(n)){var r,i=js(r=n.substr(4).substr(0,n.length-5).split(",")).call(r,(function(t){return Tf(t)}));n=lp(i[0],i[1],i[2])}if(!0===gp(n)){var o=dp(n),a={h:o.h,s:.8*o.s,v:Math.min(1,1.02*o.v)},s={h:o.h,s:Math.min(1,1.25*o.s),v:.8*o.v},c=vp(s.h,s.s,s.v),l=vp(a.h,a.s,a.v);return{background:n,border:c,highlight:{background:l,border:c},hover:{background:l,border:c}}}return{background:n,border:n,highlight:{background:n,border:n},hover:{background:n,border:n}}}return e?{background:t.background||e.background,border:t.border||e.border,highlight:Zf(t.highlight)?{border:t.highlight,background:t.highlight}:{background:t.highlight&&t.highlight.background||e.highlight.background,border:t.highlight&&t.highlight.border||e.highlight.border},hover:Zf(t.hover)?{border:t.hover,background:t.hover}:{border:t.hover&&t.hover.border||e.hover.border,background:t.hover&&t.hover.background||e.hover.background}}:{background:t.background||void 0,border:t.border||void 0,highlight:Zf(t.highlight)?{border:t.highlight,background:t.highlight}:{background:t.highlight&&t.highlight.background||void 0,border:t.highlight&&t.highlight.border||void 0},hover:Zf(t.hover)?{border:t.hover,background:t.hover}:{border:t.hover&&t.hover.border||void 0,background:t.hover&&t.hover.background||void 0}}},t.preventDefault=function(t){t||(t=window.event),t&&(t.preventDefault?t.preventDefault():t.returnValue=!1)},t.pureDeepObjectAssign=function(t){for(var e,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return Hs.apply(void 0,Cs(e=[{},t]).call(e,r))},t.recursiveDOMDelete=function t(e){if(e)for(;!0===e.hasChildNodes();){var n=e.firstChild;n&&(t(n),e.removeChild(n))}},t.removeClassName=function(t,e){var n=t.className.split(" "),r=e.split(" ");n=nf(n).call(n,(function(t){return!Uh(r).call(r,t)})),t.className=n.join(" ")},t.removeCssText=function(t,e){var n=hp(t.style.cssText),r=hp(e);for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&delete n[i];t.style.cssText=fp(n)},t.removeEventListener=function(t,e,n,r){var i;t.removeEventListener?(void 0===r&&(r=!1),"mousewheel"===e&&Uh(i=navigator.userAgent).call(i,"Firefox")&&(e="DOMMouseScroll"),t.removeEventListener(e,n,r)):t.detachEvent("on"+e,n)},t.selectiveBridgeObject=function(t,e){if(null!==e&&"object"===Ua(e)){for(var n=Wf(e),r=0;r<t.length;r++)Object.prototype.hasOwnProperty.call(e,t[r])&&"object"==Ua(e[t[r]])&&(n[t[r]]=bp(e[t[r]]));return n}return null},t.selectiveDeepExtend=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(xs(n))throw new TypeError("Arrays are not supported by deepExtend");for(var i=0;i<t.length;i++){var o=t[i];if(Object.prototype.hasOwnProperty.call(n,o))if(n[o]&&n[o].constructor===Object)void 0===e[o]&&(e[o]={}),e[o].constructor===Object?rp(e[o],n[o],!1,r):ep(e,n,o,r);else{if(xs(n[o]))throw new TypeError("Arrays are not supported by deepExtend");ep(e,n,o,r)}}return e},t.selectiveExtend=function(t,e){if(!xs(t))throw new Error("Array with property names expected as first argument");for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];for(var o=0,a=r;o<a.length;o++)for(var s=a[o],c=0;c<t.length;c++){var l=t[c];s&&Object.prototype.hasOwnProperty.call(s,l)&&(e[l]=s[l])}return e},t.selectiveNotDeepExtend=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(xs(n))throw new TypeError("Arrays are not supported by deepExtend");for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)&&!Uh(t).call(t,i))if(n[i]&&n[i].constructor===Object)void 0===e[i]&&(e[i]={}),e[i].constructor===Object?rp(e[i],n[i]):ep(e,n,i,r);else if(xs(n[i])){e[i]=[];for(var o=0;o<n[i].length;o++)e[i].push(n[i][o])}else ep(e,n,i,r);return e},t.throttle=function(t){var e=!1;return function(){e||(e=!0,requestAnimationFrame((function(){e=!1,t()})))}},t.toArray=ap,t.topMost=function(t,e){var n;xs(e)||(e=[e]);var r,i=Vf(t);try{for(i.s();!(r=i.n()).done;){var o=r.value;if(o){n=o[e[0]];for(var a=1;a<e.length;a++)n&&(n=n[e[a]]);if(void 0!==n)break}}}catch(t){i.e(t)}finally{i.f()}return n},t.updateProperty=function(t,e,n){return t[e]!==n&&(t[e]=n,!0)},Object.defineProperty(t,"__esModule",{value:!0})}));
|
|
27
33
|
//# sourceMappingURL=vis-util.min.js.map
|