UNPKG

cal-heatmap

Version:

Cal-Heatmap is a javascript module to create calendar heatmap to visualize time series data

1 lines 155 kB
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("d3-selection"),require("d3-color"),require("d3"),require("d3-fetch")):"function"==typeof define&&define.amd?define(["d3-selection","d3-color","d3","d3-fetch"],e):(t="undefined"!=typeof globalThis?globalThis:t||self).CalHeatmap=e(t.d3,t.d3,t.d3,t.d3)}(this,(function(t,e,n,r){"use strict";function i(){i=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function l(t,e,n,i){var o=e&&e.prototype instanceof d?e:d,a=Object.create(o.prototype),u=new _(i||[]);return r(a,"_invoke",{value:O(t,n,u)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var h={};function d(){}function p(){}function v(){}var y={};c(y,a,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(M([])));g&&g!==e&&n.call(g,a)&&(y=g);var b=v.prototype=d.prototype=Object.create(y);function w(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function i(r,o,a,u){var s=f(t[r],t,o);if("throw"!==s.type){var c=s.arg,l=c.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){i("next",t,a,u)}),(function(t){i("throw",t,a,u)})):e.resolve(l).then((function(t){c.value=t,a(c)}),(function(t){return i("throw",t,a,u)}))}u(s.arg)}var o;r(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){i(t,n,e,r)}))}return o=o?o.then(r,r):r()}})}function O(t,e,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return D()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var u=k(a,n);if(u){if(u===h)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var s=f(t,e,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===h)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}function k(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,k(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var i=f(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,h;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function _(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function M(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:D}}function D(){return{value:void 0,done:!0}}return p.prototype=v,r(b,"constructor",{value:v,configurable:!0}),r(v,"constructor",{value:p,configurable:!0}),p.displayName=c(v,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,c(t,s,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},w(x.prototype),c(x.prototype,u,(function(){return this})),t.AsyncIterator=x,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new x(l(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(b),c(b,s,"Generator"),c(b,a,(function(){return this})),c(b,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=M,_.prototype={constructor:_,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var u=n.call(o,"catchLoc"),s=n.call(o,"finallyLoc");if(u&&s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),j(n),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;j(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:M(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},t}function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(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),Object.defineProperty(t,d(r.key),r)}}function s(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function c(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,u=[],s=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(u.push(r.value),u.length!==e);s=!0);}catch(t){c=!0,i=t}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return u}}(t,e)||f(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t){return function(t){if(Array.isArray(t))return h(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||f(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.")}()}function f(t,e){if(t){if("string"==typeof t)return h(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(t,e):void 0}}function h(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 d(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}var p="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function v(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var y=function(t){return t&&t.Math===Math&&t},m=y("object"==typeof globalThis&&globalThis)||y("object"==typeof window&&window)||y("object"==typeof self&&self)||y("object"==typeof p&&p)||y("object"==typeof p&&p)||function(){return this}()||Function("return this")(),g={exports:{}},b=m,w=Object.defineProperty,x=function(t,e){try{w(b,t,{value:e,configurable:!0,writable:!0})}catch(n){b[t]=e}return e},O=x,k="__core-js_shared__",S=m[k]||O(k,{}),j=S;(g.exports=function(t,e){return j[t]||(j[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.34.0",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.34.0/LICENSE",source:"https://github.com/zloirock/core-js"});var _,M,D=g.exports,P=function(t){try{return!!t()}catch(t){return!0}},$=!P((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),E=$,L=Function.prototype,T=L.call,C=E&&L.bind.bind(T,T),A=E?C:function(t){return function(){return T.apply(t,arguments)}},R=function(t){return null==t},I=R,N=TypeError,W=function(t){if(I(t))throw new N("Can't call method on "+t);return t},Y=W,z=Object,F=function(t){return z(Y(t))},H=F,B=A({}.hasOwnProperty),G=Object.hasOwn||function(t,e){return B(H(t),e)},U=A,q=0,V=Math.random(),K=U(1..toString),Z=function(t){return"Symbol("+(void 0===t?"":t)+")_"+K(++q+V,36)},Q="undefined"!=typeof navigator&&String(navigator.userAgent)||"",J=m,X=Q,tt=J.process,et=J.Deno,nt=tt&&tt.versions||et&&et.version,rt=nt&&nt.v8;rt&&(M=(_=rt.split("."))[0]>0&&_[0]<4?1:+(_[0]+_[1])),!M&&X&&(!(_=X.match(/Edge\/(\d+)/))||_[1]>=74)&&(_=X.match(/Chrome\/(\d+)/))&&(M=+_[1]);var it=M,ot=it,at=P,ut=m.String,st=!!Object.getOwnPropertySymbols&&!at((function(){var t=Symbol("symbol detection");return!ut(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&ot&&ot<41})),ct=st&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,lt=D,ft=G,ht=Z,dt=st,pt=ct,vt=m.Symbol,yt=lt("wks"),mt=pt?vt.for||vt:vt&&vt.withoutSetter||ht,gt=function(t){return ft(yt,t)||(yt[t]=dt&&ft(vt,t)?vt[t]:mt("Symbol."+t)),yt[t]},bt={};bt[gt("toStringTag")]="z";var wt="[object z]"===String(bt),xt="object"==typeof document&&document.all,Ot={all:xt,IS_HTMLDDA:void 0===xt&&void 0!==xt},kt=Ot.all,St=Ot.IS_HTMLDDA?function(t){return"function"==typeof t||t===kt}:function(t){return"function"==typeof t},jt={},_t=!P((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),Mt=St,Dt=Ot.all,Pt=Ot.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:Mt(t)||t===Dt}:function(t){return"object"==typeof t?null!==t:Mt(t)},$t=Pt,Et=m.document,Lt=$t(Et)&&$t(Et.createElement),Tt=function(t){return Lt?Et.createElement(t):{}},Ct=Tt,At=!_t&&!P((function(){return 7!==Object.defineProperty(Ct("div"),"a",{get:function(){return 7}}).a})),Rt=_t&&P((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),It=Pt,Nt=String,Wt=TypeError,Yt=function(t){if(It(t))return t;throw new Wt(Nt(t)+" is not an object")},zt=$,Ft=Function.prototype.call,Ht=zt?Ft.bind(Ft):function(){return Ft.apply(Ft,arguments)},Bt=m,Gt=St,Ut=function(t,e){return arguments.length<2?(n=Bt[t],Gt(n)?n:void 0):Bt[t]&&Bt[t][e];var n},qt=A({}.isPrototypeOf),Vt=Ut,Kt=St,Zt=qt,Qt=Object,Jt=ct?function(t){return"symbol"==typeof t}:function(t){var e=Vt("Symbol");return Kt(e)&&Zt(e.prototype,Qt(t))},Xt=String,te=function(t){try{return Xt(t)}catch(t){return"Object"}},ee=St,ne=te,re=TypeError,ie=function(t){if(ee(t))return t;throw new re(ne(t)+" is not a function")},oe=ie,ae=R,ue=function(t,e){var n=t[e];return ae(n)?void 0:oe(n)},se=Ht,ce=St,le=Pt,fe=TypeError,he=Ht,de=Pt,pe=Jt,ve=ue,ye=function(t,e){var n,r;if("string"===e&&ce(n=t.toString)&&!le(r=se(n,t)))return r;if(ce(n=t.valueOf)&&!le(r=se(n,t)))return r;if("string"!==e&&ce(n=t.toString)&&!le(r=se(n,t)))return r;throw new fe("Can't convert object to primitive value")},me=TypeError,ge=gt("toPrimitive"),be=function(t,e){if(!de(t)||pe(t))return t;var n,r=ve(t,ge);if(r){if(void 0===e&&(e="default"),n=he(r,t,e),!de(n)||pe(n))return n;throw new me("Can't convert object to primitive value")}return void 0===e&&(e="number"),ye(t,e)},we=Jt,xe=function(t){var e=be(t,"string");return we(e)?e:e+""},Oe=_t,ke=At,Se=Rt,je=Yt,_e=xe,Me=TypeError,De=Object.defineProperty,Pe=Object.getOwnPropertyDescriptor,$e="enumerable",Ee="configurable",Le="writable";jt.f=Oe?Se?function(t,e,n){if(je(t),e=_e(e),je(n),"function"==typeof t&&"prototype"===e&&"value"in n&&Le in n&&!n[Le]){var r=Pe(t,e);r&&r[Le]&&(t[e]=n.value,n={configurable:Ee in n?n[Ee]:r[Ee],enumerable:$e in n?n[$e]:r[$e],writable:!1})}return De(t,e,n)}:De:function(t,e,n){if(je(t),e=_e(e),je(n),ke)try{return De(t,e,n)}catch(t){}if("get"in n||"set"in n)throw new Me("Accessors not supported");return"value"in n&&(t[e]=n.value),t};var Te={exports:{}},Ce=_t,Ae=G,Re=Function.prototype,Ie=Ce&&Object.getOwnPropertyDescriptor,Ne=Ae(Re,"name"),We={EXISTS:Ne,PROPER:Ne&&"something"===function(){}.name,CONFIGURABLE:Ne&&(!Ce||Ce&&Ie(Re,"name").configurable)},Ye=St,ze=S,Fe=A(Function.toString);Ye(ze.inspectSource)||(ze.inspectSource=function(t){return Fe(t)});var He,Be,Ge,Ue=ze.inspectSource,qe=St,Ve=m.WeakMap,Ke=qe(Ve)&&/native code/.test(String(Ve)),Ze=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},Qe=jt,Je=Ze,Xe=_t?function(t,e,n){return Qe.f(t,e,Je(1,n))}:function(t,e,n){return t[e]=n,t},tn=Z,en=D("keys"),nn=function(t){return en[t]||(en[t]=tn(t))},rn={},on=Ke,an=m,un=Pt,sn=Xe,cn=G,ln=S,fn=nn,hn=rn,dn="Object already initialized",pn=an.TypeError,vn=an.WeakMap;if(on||ln.state){var yn=ln.state||(ln.state=new vn);yn.get=yn.get,yn.has=yn.has,yn.set=yn.set,He=function(t,e){if(yn.has(t))throw new pn(dn);return e.facade=t,yn.set(t,e),e},Be=function(t){return yn.get(t)||{}},Ge=function(t){return yn.has(t)}}else{var mn=fn("state");hn[mn]=!0,He=function(t,e){if(cn(t,mn))throw new pn(dn);return e.facade=t,sn(t,mn,e),e},Be=function(t){return cn(t,mn)?t[mn]:{}},Ge=function(t){return cn(t,mn)}}var gn={set:He,get:Be,has:Ge,enforce:function(t){return Ge(t)?Be(t):He(t,{})},getterFor:function(t){return function(e){var n;if(!un(e)||(n=Be(e)).type!==t)throw new pn("Incompatible receiver, "+t+" required");return n}}},bn=A,wn=P,xn=St,On=G,kn=_t,Sn=We.CONFIGURABLE,jn=Ue,_n=gn.enforce,Mn=gn.get,Dn=String,Pn=Object.defineProperty,$n=bn("".slice),En=bn("".replace),Ln=bn([].join),Tn=kn&&!wn((function(){return 8!==Pn((function(){}),"length",{value:8}).length})),Cn=String(String).split("String"),An=Te.exports=function(t,e,n){"Symbol("===$n(Dn(e),0,7)&&(e="["+En(Dn(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!On(t,"name")||Sn&&t.name!==e)&&(kn?Pn(t,"name",{value:e,configurable:!0}):t.name=e),Tn&&n&&On(n,"arity")&&t.length!==n.arity&&Pn(t,"length",{value:n.arity});try{n&&On(n,"constructor")&&n.constructor?kn&&Pn(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=_n(t);return On(r,"source")||(r.source=Ln(Cn,"string"==typeof e?e:"")),t};Function.prototype.toString=An((function(){return xn(this)&&Mn(this).source||jn(this)}),"toString");var Rn=Te.exports,In=St,Nn=jt,Wn=Rn,Yn=x,zn=function(t,e,n,r){r||(r={});var i=r.enumerable,o=void 0!==r.name?r.name:e;if(In(n)&&Wn(n,o,r),r.global)i?t[e]=n:Yn(e,n);else{try{r.unsafe?t[e]&&(i=!0):delete t[e]}catch(t){}i?t[e]=n:Nn.f(t,e,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},Fn=A,Hn=Fn({}.toString),Bn=Fn("".slice),Gn=function(t){return Bn(Hn(t),8,-1)},Un=wt,qn=St,Vn=Gn,Kn=gt("toStringTag"),Zn=Object,Qn="Arguments"===Vn(function(){return arguments}()),Jn=Un?Vn: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=Zn(t),Kn))?n:Qn?Vn(e):"Object"===(r=Vn(e))&&qn(e.callee)?"Arguments":r},Xn=Jn,tr=wt?{}.toString:function(){return"[object "+Xn(this)+"]"};wt||zn(Object.prototype,"toString",tr,{unsafe:!0});var er={},nr={},rr={}.propertyIsEnumerable,ir=Object.getOwnPropertyDescriptor,or=ir&&!rr.call({1:2},1);nr.f=or?function(t){var e=ir(this,t);return!!e&&e.enumerable}:rr;var ar=P,ur=Gn,sr=Object,cr=A("".split),lr=ar((function(){return!sr("z").propertyIsEnumerable(0)}))?function(t){return"String"===ur(t)?cr(t,""):sr(t)}:sr,fr=lr,hr=W,dr=function(t){return fr(hr(t))},pr=_t,vr=Ht,yr=nr,mr=Ze,gr=dr,br=xe,wr=G,xr=At,Or=Object.getOwnPropertyDescriptor;er.f=pr?Or:function(t,e){if(t=gr(t),e=br(e),xr)try{return Or(t,e)}catch(t){}if(wr(t,e))return mr(!vr(yr.f,t,e),t[e])};var kr={},Sr=Math.ceil,jr=Math.floor,_r=Math.trunc||function(t){var e=+t;return(e>0?jr:Sr)(e)},Mr=function(t){var e=+t;return e!=e||0===e?0:_r(e)},Dr=Mr,Pr=Math.max,$r=Math.min,Er=function(t,e){var n=Dr(t);return n<0?Pr(n+e,0):$r(n,e)},Lr=Mr,Tr=Math.min,Cr=function(t){return t>0?Tr(Lr(t),9007199254740991):0},Ar=Cr,Rr=function(t){return Ar(t.length)},Ir=dr,Nr=Er,Wr=Rr,Yr=function(t){return function(e,n,r){var i,o=Ir(e),a=Wr(o),u=Nr(r,a);if(t&&n!=n){for(;a>u;)if((i=o[u++])!=i)return!0}else for(;a>u;u++)if((t||u in o)&&o[u]===n)return t||u||0;return!t&&-1}},zr={includes:Yr(!0),indexOf:Yr(!1)},Fr=G,Hr=dr,Br=zr.indexOf,Gr=rn,Ur=A([].push),qr=function(t,e){var n,r=Hr(t),i=0,o=[];for(n in r)!Fr(Gr,n)&&Fr(r,n)&&Ur(o,n);for(;e.length>i;)Fr(r,n=e[i++])&&(~Br(o,n)||Ur(o,n));return o},Vr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Kr=qr,Zr=Vr.concat("length","prototype");kr.f=Object.getOwnPropertyNames||function(t){return Kr(t,Zr)};var Qr={};Qr.f=Object.getOwnPropertySymbols;var Jr=Ut,Xr=kr,ti=Qr,ei=Yt,ni=A([].concat),ri=Jr("Reflect","ownKeys")||function(t){var e=Xr.f(ei(t)),n=ti.f;return n?ni(e,n(t)):e},ii=G,oi=ri,ai=er,ui=jt,si=P,ci=St,li=/#|\.prototype\./,fi=function(t,e){var n=di[hi(t)];return n===vi||n!==pi&&(ci(e)?si(e):!!e)},hi=fi.normalize=function(t){return String(t).replace(li,".").toLowerCase()},di=fi.data={},pi=fi.NATIVE="N",vi=fi.POLYFILL="P",yi=fi,mi=m,gi=er.f,bi=Xe,wi=zn,xi=x,Oi=function(t,e,n){for(var r=oi(e),i=ui.f,o=ai.f,a=0;a<r.length;a++){var u=r[a];ii(t,u)||n&&ii(n,u)||i(t,u,o(e,u))}},ki=yi,Si=function(t,e){var n,r,i,o,a,u=t.target,s=t.global,c=t.stat;if(n=s?mi:c?mi[u]||xi(u,{}):(mi[u]||{}).prototype)for(r in e){if(o=e[r],i=t.dontCallGetSet?(a=gi(n,r))&&a.value:n[r],!ki(s?r:u+(c?".":"#")+r,t.forced)&&void 0!==i){if(typeof o==typeof i)continue;Oi(o,i)}(t.sham||i&&i.sham)&&bi(o,"sham",!0),wi(n,r,o,t)}},ji="process"===Gn(m.process),_i=A,Mi=ie,Di=St,Pi=String,$i=TypeError,Ei=function(t,e,n){try{return _i(Mi(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(t){}},Li=Yt,Ti=function(t){if("object"==typeof t||Di(t))return t;throw new $i("Can't set "+Pi(t)+" as a prototype")},Ci=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Ei(Object.prototype,"__proto__","set"))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return Li(n),Ti(r),e?t(n,r):n.__proto__=r,n}}():void 0),Ai=jt.f,Ri=G,Ii=gt("toStringTag"),Ni=function(t,e,n){t&&!n&&(t=t.prototype),t&&!Ri(t,Ii)&&Ai(t,Ii,{configurable:!0,value:e})},Wi=Rn,Yi=jt,zi=function(t,e,n){return n.get&&Wi(n.get,e,{getter:!0}),n.set&&Wi(n.set,e,{setter:!0}),Yi.f(t,e,n)},Fi=Ut,Hi=zi,Bi=_t,Gi=gt("species"),Ui=function(t){var e=Fi(t);Bi&&e&&!e[Gi]&&Hi(e,Gi,{configurable:!0,get:function(){return this}})},qi=qt,Vi=TypeError,Ki=function(t,e){if(qi(e,t))return t;throw new Vi("Incorrect invocation")},Zi=A,Qi=P,Ji=St,Xi=Jn,to=Ue,eo=function(){},no=[],ro=Ut("Reflect","construct"),io=/^\s*(?:class|function)\b/,oo=Zi(io.exec),ao=!io.test(eo),uo=function(t){if(!Ji(t))return!1;try{return ro(eo,no,t),!0}catch(t){return!1}},so=function(t){if(!Ji(t))return!1;switch(Xi(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return ao||!!oo(io,to(t))}catch(t){return!0}};so.sham=!0;var co,lo,fo,ho,po=!ro||Qi((function(){var t;return uo(uo.call)||!uo(Object)||!uo((function(){t=!0}))||t}))?so:uo,vo=po,yo=te,mo=TypeError,go=Yt,bo=function(t){if(vo(t))return t;throw new mo(yo(t)+" is not a constructor")},wo=R,xo=gt("species"),Oo=$,ko=Function.prototype,So=ko.apply,jo=ko.call,_o="object"==typeof Reflect&&Reflect.apply||(Oo?jo.bind(So):function(){return jo.apply(So,arguments)}),Mo=Gn,Do=A,Po=function(t){if("Function"===Mo(t))return Do(t)},$o=ie,Eo=$,Lo=Po(Po.bind),To=function(t,e){return $o(t),void 0===e?t:Eo?Lo(t,e):function(){return t.apply(e,arguments)}},Co=Ut("document","documentElement"),Ao=A([].slice),Ro=TypeError,Io=/(?:ipad|iphone|ipod).*applewebkit/i.test(Q),No=m,Wo=_o,Yo=To,zo=St,Fo=G,Ho=P,Bo=Co,Go=Ao,Uo=Tt,qo=function(t,e){if(t<e)throw new Ro("Not enough arguments");return t},Vo=Io,Ko=ji,Zo=No.setImmediate,Qo=No.clearImmediate,Jo=No.process,Xo=No.Dispatch,ta=No.Function,ea=No.MessageChannel,na=No.String,ra=0,ia={},oa="onreadystatechange";Ho((function(){co=No.location}));var aa=function(t){if(Fo(ia,t)){var e=ia[t];delete ia[t],e()}},ua=function(t){return function(){aa(t)}},sa=function(t){aa(t.data)},ca=function(t){No.postMessage(na(t),co.protocol+"//"+co.host)};Zo&&Qo||(Zo=function(t){qo(arguments.length,1);var e=zo(t)?t:ta(t),n=Go(arguments,1);return ia[++ra]=function(){Wo(e,void 0,n)},lo(ra),ra},Qo=function(t){delete ia[t]},Ko?lo=function(t){Jo.nextTick(ua(t))}:Xo&&Xo.now?lo=function(t){Xo.now(ua(t))}:ea&&!Vo?(ho=(fo=new ea).port2,fo.port1.onmessage=sa,lo=Yo(ho.postMessage,ho)):No.addEventListener&&zo(No.postMessage)&&!No.importScripts&&co&&"file:"!==co.protocol&&!Ho(ca)?(lo=ca,No.addEventListener("message",sa,!1)):lo=oa in Uo("script")?function(t){Bo.appendChild(Uo("script"))[oa]=function(){Bo.removeChild(this),aa(t)}}:function(t){setTimeout(ua(t),0)});var la={set:Zo,clear:Qo},fa=function(){this.head=null,this.tail=null};fa.prototype={add:function(t){var e={item:t,next:null},n=this.tail;n?n.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var ha,da,pa,va,ya,ma=fa,ga=/ipad|iphone|ipod/i.test(Q)&&"undefined"!=typeof Pebble,ba=/web0s(?!.*chrome)/i.test(Q),wa=m,xa=To,Oa=er.f,ka=la.set,Sa=ma,ja=Io,_a=ga,Ma=ba,Da=ji,Pa=wa.MutationObserver||wa.WebKitMutationObserver,$a=wa.document,Ea=wa.process,La=wa.Promise,Ta=Oa(wa,"queueMicrotask"),Ca=Ta&&Ta.value;if(!Ca){var Aa=new Sa,Ra=function(){var t,e;for(Da&&(t=Ea.domain)&&t.exit();e=Aa.get();)try{e()}catch(t){throw Aa.head&&ha(),t}t&&t.enter()};ja||Da||Ma||!Pa||!$a?!_a&&La&&La.resolve?((va=La.resolve(void 0)).constructor=La,ya=xa(va.then,va),ha=function(){ya(Ra)}):Da?ha=function(){Ea.nextTick(Ra)}:(ka=xa(ka,wa),ha=function(){ka(Ra)}):(da=!0,pa=$a.createTextNode(""),new Pa(Ra).observe(pa,{characterData:!0}),ha=function(){pa.data=da=!da}),Ca=function(t){Aa.head||ha(),Aa.add(t)}}var Ia=Ca,Na=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},Wa=m.Promise,Ya="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,za=!Ya&&!ji&&"object"==typeof window&&"object"==typeof document,Fa=m,Ha=Wa,Ba=St,Ga=yi,Ua=Ue,qa=gt,Va=za,Ka=Ya,Za=it;Ha&&Ha.prototype;var Qa=qa("species"),Ja=!1,Xa=Ba(Fa.PromiseRejectionEvent),tu=Ga("Promise",(function(){var t=Ua(Ha),e=t!==String(Ha);if(!e&&66===Za)return!0;if(!Za||Za<51||!/native code/.test(t)){var n=new Ha((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};if((n.constructor={})[Qa]=r,!(Ja=n.then((function(){}))instanceof r))return!0}return!e&&(Va||Ka)&&!Xa})),eu={CONSTRUCTOR:tu,REJECTION_EVENT:Xa,SUBCLASSING:Ja},nu={},ru=ie,iu=TypeError,ou=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw new iu("Bad Promise constructor");e=t,n=r})),this.resolve=ru(e),this.reject=ru(n)};nu.f=function(t){return new ou(t)};var au,uu,su,cu=Si,lu=ji,fu=m,hu=Ht,du=zn,pu=Ci,vu=Ni,yu=Ui,mu=ie,gu=St,bu=Pt,wu=Ki,xu=function(t,e){var n,r=go(t).constructor;return void 0===r||wo(n=go(r)[xo])?e:bo(n)},Ou=la.set,ku=Ia,Su=function(t,e){try{1===arguments.length?console.error(t):console.error(t,e)}catch(t){}},ju=Na,_u=ma,Mu=gn,Du=Wa,Pu=nu,$u="Promise",Eu=eu.CONSTRUCTOR,Lu=eu.REJECTION_EVENT,Tu=eu.SUBCLASSING,Cu=Mu.getterFor($u),Au=Mu.set,Ru=Du&&Du.prototype,Iu=Du,Nu=Ru,Wu=fu.TypeError,Yu=fu.document,zu=fu.process,Fu=Pu.f,Hu=Fu,Bu=!!(Yu&&Yu.createEvent&&fu.dispatchEvent),Gu="unhandledrejection",Uu=function(t){var e;return!(!bu(t)||!gu(e=t.then))&&e},qu=function(t,e){var n,r,i,o=e.value,a=1===e.state,u=a?t.ok:t.fail,s=t.resolve,c=t.reject,l=t.domain;try{u?(a||(2===e.rejection&&Ju(e),e.rejection=1),!0===u?n=o:(l&&l.enter(),n=u(o),l&&(l.exit(),i=!0)),n===t.promise?c(new Wu("Promise-chain cycle")):(r=Uu(n))?hu(r,n,s,c):s(n)):c(o)}catch(t){l&&!i&&l.exit(),c(t)}},Vu=function(t,e){t.notified||(t.notified=!0,ku((function(){for(var n,r=t.reactions;n=r.get();)qu(n,t);t.notified=!1,e&&!t.rejection&&Zu(t)})))},Ku=function(t,e,n){var r,i;Bu?((r=Yu.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),fu.dispatchEvent(r)):r={promise:e,reason:n},!Lu&&(i=fu["on"+t])?i(r):t===Gu&&Su("Unhandled promise rejection",n)},Zu=function(t){hu(Ou,fu,(function(){var e,n=t.facade,r=t.value;if(Qu(t)&&(e=ju((function(){lu?zu.emit("unhandledRejection",r,n):Ku(Gu,n,r)})),t.rejection=lu||Qu(t)?2:1,e.error))throw e.value}))},Qu=function(t){return 1!==t.rejection&&!t.parent},Ju=function(t){hu(Ou,fu,(function(){var e=t.facade;lu?zu.emit("rejectionHandled",e):Ku("rejectionhandled",e,t.value)}))},Xu=function(t,e,n){return function(r){t(e,r,n)}},ts=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,Vu(t,!0))},es=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw new Wu("Promise can't be resolved itself");var r=Uu(e);r?ku((function(){var n={done:!1};try{hu(r,e,Xu(es,n,t),Xu(ts,n,t))}catch(e){ts(n,e,t)}})):(t.value=e,t.state=1,Vu(t,!1))}catch(e){ts({done:!1},e,t)}}};if(Eu&&(Nu=(Iu=function(t){wu(this,Nu),mu(t),hu(au,this);var e=Cu(this);try{t(Xu(es,e),Xu(ts,e))}catch(t){ts(e,t)}}).prototype,(au=function(t){Au(this,{type:$u,done:!1,notified:!1,parent:!1,reactions:new _u,rejection:!1,state:0,value:void 0})}).prototype=du(Nu,"then",(function(t,e){var n=Cu(this),r=Fu(xu(this,Iu));return n.parent=!0,r.ok=!gu(t)||t,r.fail=gu(e)&&e,r.domain=lu?zu.domain:void 0,0===n.state?n.reactions.add(r):ku((function(){qu(r,n)})),r.promise})),uu=function(){var t=new au,e=Cu(t);this.promise=t,this.resolve=Xu(es,e),this.reject=Xu(ts,e)},Pu.f=Fu=function(t){return t===Iu||undefined===t?new uu(t):Hu(t)},gu(Du)&&Ru!==Object.prototype)){su=Ru.then,Tu||du(Ru,"then",(function(t,e){var n=this;return new Iu((function(t,e){hu(su,n,t,e)})).then(t,e)}),{unsafe:!0});try{delete Ru.constructor}catch(t){}pu&&pu(Ru,Nu)}cu({global:!0,constructor:!0,wrap:!0,forced:Eu},{Promise:Iu}),vu(Iu,$u,!1),yu($u);var ns={},rs=ns,is=gt("iterator"),os=Array.prototype,as=function(t){return void 0!==t&&(rs.Array===t||os[is]===t)},us=Jn,ss=ue,cs=R,ls=ns,fs=gt("iterator"),hs=function(t){if(!cs(t))return ss(t,fs)||ss(t,"@@iterator")||ls[us(t)]},ds=Ht,ps=ie,vs=Yt,ys=te,ms=hs,gs=TypeError,bs=function(t,e){var n=arguments.length<2?ms(t):e;if(ps(n))return vs(ds(n,t));throw new gs(ys(t)+" is not iterable")},ws=Ht,xs=Yt,Os=ue,ks=function(t,e,n){var r,i;xs(t);try{if(!(r=Os(t,"return"))){if("throw"===e)throw n;return n}r=ws(r,t)}catch(t){i=!0,r=t}if("throw"===e)throw n;if(i)throw r;return xs(r),n},Ss=To,js=Ht,_s=Yt,Ms=te,Ds=as,Ps=Rr,$s=qt,Es=bs,Ls=hs,Ts=ks,Cs=TypeError,As=function(t,e){this.stopped=t,this.result=e},Rs=As.prototype,Is=function(t,e,n){var r,i,o,a,u,s,c,l=n&&n.that,f=!(!n||!n.AS_ENTRIES),h=!(!n||!n.IS_RECORD),d=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),v=Ss(e,l),y=function(t){return r&&Ts(r,"normal",t),new As(!0,t)},m=function(t){return f?(_s(t),p?v(t[0],t[1],y):v(t[0],t[1])):p?v(t,y):v(t)};if(h)r=t.iterator;else if(d)r=t;else{if(!(i=Ls(t)))throw new Cs(Ms(t)+" is not iterable");if(Ds(i)){for(o=0,a=Ps(t);a>o;o++)if((u=m(t[o]))&&$s(Rs,u))return u;return new As(!1)}r=Es(t,i)}for(s=h?t.next:r.next;!(c=js(s,r)).done;){try{u=m(c.value)}catch(t){Ts(r,"throw",t)}if("object"==typeof u&&u&&$s(Rs,u))return u}return new As(!1)},Ns=gt("iterator"),Ws=!1;try{var Ys=0,zs={next:function(){return{done:!!Ys++}},return:function(){Ws=!0}};zs[Ns]=function(){return this},Array.from(zs,(function(){throw 2}))}catch(t){}var Fs=function(t,e){try{if(!e&&!Ws)return!1}catch(t){return!1}var n=!1;try{var r={};r[Ns]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n},Hs=Wa,Bs=eu.CONSTRUCTOR||!Fs((function(t){Hs.all(t).then(void 0,(function(){}))})),Gs=Ht,Us=ie,qs=nu,Vs=Na,Ks=Is;Si({target:"Promise",stat:!0,forced:Bs},{all:function(t){var e=this,n=qs.f(e),r=n.resolve,i=n.reject,o=Vs((function(){var n=Us(e.resolve),o=[],a=0,u=1;Ks(t,(function(t){var s=a++,c=!1;u++,Gs(n,e,t).then((function(t){c||(c=!0,o[s]=t,--u||r(o))}),i)})),--u||r(o)}));return o.error&&i(o.value),n.promise}});var Zs=Si,Qs=eu.CONSTRUCTOR,Js=Wa,Xs=Ut,tc=St,ec=zn,nc=Js&&Js.prototype;if(Zs({target:"Promise",proto:!0,forced:Qs,real:!0},{catch:function(t){return this.then(void 0,t)}}),tc(Js)){var rc=Xs("Promise").prototype.catch;nc.catch!==rc&&ec(nc,"catch",rc,{unsafe:!0})}var ic=Ht,oc=ie,ac=nu,uc=Na,sc=Is;Si({target:"Promise",stat:!0,forced:Bs},{race:function(t){var e=this,n=ac.f(e),r=n.reject,i=uc((function(){var i=oc(e.resolve);sc(t,(function(t){ic(i,e,t).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}});var cc=Ht,lc=nu;Si({target:"Promise",stat:!0,forced:eu.CONSTRUCTOR},{reject:function(t){var e=lc.f(this);return cc(e.reject,void 0,t),e.promise}});var fc=Yt,hc=Pt,dc=nu,pc=Si,vc=eu.CONSTRUCTOR,yc=function(t,e){if(fc(t),hc(e)&&e.constructor===t)return e;var n=dc.f(t);return(0,n.resolve)(e),n.promise};Ut("Promise"),pc({target:"Promise",stat:!0,forced:vc},{resolve:function(t){return yc(this,t)}});var mc={},gc=qr,bc=Vr,wc=Object.keys||function(t){return gc(t,bc)},xc=_t,Oc=Rt,kc=jt,Sc=Yt,jc=dr,_c=wc;mc.f=xc&&!Oc?Object.defineProperties:function(t,e){Sc(t);for(var n,r=jc(e),i=_c(e),o=i.length,a=0;o>a;)kc.f(t,n=i[a++],r[n]);return t};var Mc,Dc=Yt,Pc=mc,$c=Vr,Ec=rn,Lc=Co,Tc=Tt,Cc="prototype",Ac="script",Rc=nn("IE_PROTO"),Ic=function(){},Nc=function(t){return"<"+Ac+">"+t+"</"+Ac+">"},Wc=function(t){t.write(Nc("")),t.close();var e=t.parentWindow.Object;return t=null,e},Yc=function(){try{Mc=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;Yc="undefined"!=typeof document?document.domain&&Mc?Wc(Mc):(e=Tc("iframe"),n="java"+Ac+":",e.style.display="none",Lc.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(Nc("document.F=Object")),t.close(),t.F):Wc(Mc);for(var r=$c.length;r--;)delete Yc[Cc][$c[r]];return Yc()};Ec[Rc]=!0;var zc=Object.create||function(t,e){var n;return null!==t?(Ic[Cc]=Dc(t),n=new Ic,Ic[Cc]=null,n[Rc]=t):n=Yc(),void 0===e?n:Pc.f(n,e)},Fc=gt,Hc=zc,Bc=jt.f,Gc=Fc("unscopables"),Uc=Array.prototype;void 0===Uc[Gc]&&Bc(Uc,Gc,{configurable:!0,value:Hc(null)});var qc,Vc,Kc,Zc=function(t){Uc[Gc][t]=!0},Qc=!P((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Jc=G,Xc=St,tl=F,el=Qc,nl=nn("IE_PROTO"),rl=Object,il=rl.prototype,ol=el?rl.getPrototypeOf:function(t){var e=tl(t);if(Jc(e,nl))return e[nl];var n=e.constructor;return Xc(n)&&e instanceof n?n.prototype:e instanceof rl?il:null},al=P,ul=St,sl=Pt,cl=ol,ll=zn,fl=gt("iterator"),hl=!1;[].keys&&("next"in(Kc=[].keys())?(Vc=cl(cl(Kc)))!==Object.prototype&&(qc=Vc):hl=!0);var dl=!sl(qc)||al((function(){var t={};return qc[fl].call(t)!==t}));dl&&(qc={}),ul(qc[fl])||ll(qc,fl,(function(){return this}));var pl={IteratorPrototype:qc,BUGGY_SAFARI_ITERATORS:hl},vl=pl.IteratorPrototype,yl=zc,ml=Ze,gl=Ni,bl=ns,wl=function(){return this},xl=Si,Ol=Ht,kl=St,Sl=function(t,e,n,r){var i=e+" Iterator";return t.prototype=yl(vl,{next:ml(+!r,n)}),gl(t,i,!1),bl[i]=wl,t},jl=ol,_l=Ci,Ml=Ni,Dl=Xe,Pl=zn,$l=ns,El=We.PROPER,Ll=We.CONFIGURABLE,Tl=pl.IteratorPrototype,Cl=pl.BUGGY_SAFARI_ITERATORS,Al=gt("iterator"),Rl="keys",Il="values",Nl="entries",Wl=function(){return this},Yl=function(t,e,n,r,i,o,a){Sl(n,e,r);var u,s,c,l=function(t){if(t===i&&v)return v;if(!Cl&&t&&t in d)return d[t];switch(t){case Rl:case Il:case Nl:return function(){return new n(this,t)}}return function(){return new n(this)}},f=e+" Iterator",h=!1,d=t.prototype,p=d[Al]||d["@@iterator"]||i&&d[i],v=!Cl&&p||l(i),y="Array"===e&&d.entries||p;if(y&&(u=jl(y.call(new t)))!==Object.prototype&&u.next&&(jl(u)!==Tl&&(_l?_l(u,Tl):kl(u[Al])||Pl(u,Al,Wl)),Ml(u,f,!0)),El&&i===Il&&p&&p.name!==Il&&(Ll?Dl(d,"name",Il):(h=!0,v=function(){return Ol(p,this)})),i)if(s={values:l(Il),keys:o?v:l(Rl),entries:l(Nl)},a)for(c in s)(Cl||h||!(c in d))&&Pl(d,c,s[c]);else xl({target:e,proto:!0,forced:Cl||h},s);return d[Al]!==v&&Pl(d,Al,v,{name:i}),$l[e]=v,s},zl=function(t,e){return{value:t,done:e}},Fl=dr,Hl=Zc,Bl=ns,Gl=gn,Ul=jt.f,ql=Yl,Vl=zl,Kl=_t,Zl="Array Iterator",Ql=Gl.set,Jl=Gl.getterFor(Zl),Xl=ql(Array,"Array",(function(t,e){Ql(this,{type:Zl,target:Fl(t),index:0,kind:e})}),(function(){var t=Jl(this),e=t.target,n=t.index++;if(!e||n>=e.length)return t.target=void 0,Vl(void 0,!0);switch(t.kind){case"keys":return Vl(n,!1);case"values":return Vl(e[n],!1)}return Vl([n,e[n]],!1)}),"values"),tf=Bl.Arguments=Bl.Array;if(Hl("keys"),Hl("values"),Hl("entries"),Kl&&"values"!==tf.name)try{Ul(tf,"name",{value:"values"})}catch(t){}var ef=Ht,nf=ie,rf=nu,of=Na,af=Is;Si({target:"Promise",stat:!0,forced:Bs},{allSettled:function(t){var e=this,n=rf.f(e),r=n.resolve,i=n.reject,o=of((function(){var n=nf(e.resolve),i=[],o=0,a=1;af(t,(function(t){var u=o++,s=!1;a++,ef(n,e,t).then((function(t){s||(s=!0,i[u]={status:"fulfilled",value:t},--a||r(i))}),(function(t){s||(s=!0,i[u]={status:"rejected",reason:t},--a||r(i))}))})),--a||r(i)}));return o.error&&i(o.value),n.promise}});var uf=Jn,sf=String,cf=function(t){if("Symbol"===uf(t))throw new TypeError("Cannot convert a Symbol value to a string");return sf(t)},lf=A,ff=Mr,hf=cf,df=W,pf=lf("".charAt),vf=lf("".charCodeAt),yf=lf("".slice),mf=function(t){return function(e,n){var r,i,o=hf(df(e)),a=ff(n),u=o.length;return a<0||a>=u?t?"":void 0:(r=vf(o,a))<55296||r>56319||a+1===u||(i=vf(o,a+1))<56320||i>57343?t?pf(o,a):r:t?yf(o,a,a+2):i-56320+(r-55296<<10)+65536}},gf={codeAt:mf(!1),charAt:mf(!0)},bf=gf.charAt,wf=cf,xf=gn,Of=Yl,kf=zl,Sf="String Iterator",jf=xf.set,_f=xf.getterFor(Sf);Of(String,"String",(function(t){jf(this,{type:Sf,string:wf(t),index:0})}),(function(){var t,e=_f(this),n=e.string,r=e.index;return r>=n.length?kf(void 0,!0):(t=bf(n,r),e.index+=t.length,kf(t,!1))}));var Mf={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},Df=Tt("span").classList,Pf=Df&&Df.constructor&&Df.constructor.prototype,$f=Pf===Object.prototype?void 0:Pf,Ef=m,Lf=Mf,Tf=$f,Cf=Xl,Af=Xe,Rf=Ni,If=gt("iterator"),Nf=Cf.values,Wf=function(t,e){if(t){if(t[If]!==Nf)try{Af(t,If,Nf)}catch(e){t[If]=Nf}if(Rf(t,e,!0),Lf[e])for(var n in Cf)if(t[n]!==Cf[n])try{Af(t,n,Cf[n])}catch(e){t[n]=Cf[n]}}};for(var Yf in Lf)Wf(Ef[Yf]&&Ef[Yf].prototype,Yf);Wf(Tf,"DOMTokenList");var zf=F,Ff=Er,Hf=Rr,Bf=function(t){for(var e=zf(this),n=Hf(e),r=arguments.length,i=Ff(r>1?arguments[1]:void 0,n),o=r>2?arguments[2]:void 0,a=void 0===o?n:Ff(o,n);a>i;)e[i++]=t;return e},Gf=Zc;Si({target:"Array",proto:!0},{fill:Bf}),Gf("fill");var Uf=Gn,qf=Array.isArray||function(t){return"Array"===Uf(t)},Vf=xe,Kf=jt,Zf=Ze,Qf=function(t,e,n){var r=Vf(e);r in t?Kf.f(t,r,Zf(0,n)):t[r]=n},Jf=P,Xf=it,th=gt("species"),eh=function(t){return Xf>=51||!Jf((function(){var e=[];return(e.constructor={})[th]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},nh=Si,rh=qf,ih=po,oh=Pt,ah=Er,uh=Rr,sh=dr,ch=Qf,lh=gt,fh=Ao,hh=eh("slice"),dh=lh("species"),ph=Array,vh=Math.max;function yh(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{s(r.next(t))}catch(t){o(t)}}function u(t){try{s(r.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}s((r=r.apply(t,e||[])).next())}))}function mh(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)}nh({target:"Array",proto:!0,forced:!hh},{slice:function(t,e){var n,r,i,o=sh(this),a=uh(o),u=ah(t,a),s=ah(void 0===e?a:e,a);if(rh(o)&&(n=o.constructor,(ih(n)&&(n===ph||rh(n.prototype))||oh(n)&&null===(n=n[dh]))&&(n=void 0),n===ph||void 0===n))return fh(o,u,s);for(r=new(void 0===n?ph:n)(vh(s-u,0)),i=0;u<s;u++,i++)u in o&&ch(r,i,o[u]);return r.length=i,r}});var gh={exports:{}};!function(t){var e=Object.prototype.hasOwnProperty,n="~";function r(){}function i(t,e,n){this.fn=t,this.context=e,this.once=n||!1}function o(t,e,r,o,a){if("function"!=typeof r)throw new TypeError("The listener must be a function");var u=new i(r,o||t,a),s=n?n+e:e;return t._events[s]?t._events[s].fn?t._events[s]=[t._events[s],u]:t._events[s].push(u):(t._events[s]=u,t._eventsCount++),t}function a(t,e){0==--t._eventsCount?t._events=new r:delete t._events[e]}function u(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),u.prototype.eventNames=function(){var t,r,i=[];if(0===this._eventsCount)return i;for(r in t=this._events)e.call(t,r)&&i.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(t)):i},u.prototype.listeners=function(t){var e=n?n+t:t,r=this._events[e];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,o=r.length,a=new Array(o);i<o;i++)a[i]=r[i].fn;return a},u.prototype.listenerCount=function(t){var e=n?n+t:t,r=this._events[e];return r?r.fn?1:r.length:0},u.prototype.emit=function(t,e,r,i,o,a){var u=n?n+t:t;if(!this._events[u])return!1;var s,c,l=this._events[u],f=arguments.length;if(l.fn){switch(l.once&&this.removeListener(t,l.fn,void 0,!0),f){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,e),!0;case 3:return l.fn.call(l.context,e,r),!0;case 4:return l.fn.call(l.context,e,r,i),!0;case 5:return l.fn.call(l.context,e,r,i,o),!0;case 6:return l.fn.call(l.context,e,r,i,o,a),!0}for(c=1,s=new Array(f-1);c<f;c++)s[c-1]=arguments[c];l.fn.apply(l.context,s)}else{var h,d=l.length;for(c=0;c<d;c++)switch(l[c].once&&this.removeListener(t,l[c].fn,void 0,!0),f){case 1:l[c].fn.call(l[c].context);break;case 2:l[c].fn.call(l[c].context,e);break;case 3:l[c].fn.call(l[c].context,e,r);break;case 4:l[c].fn.call(l[c].context,e,r,i);break;default:if(!s)for(h=1,s=new Array(f-1);h<f;h++)s[h-1]=arguments[h];l[c].fn.apply(l[c].context,s)}}return!0},u.prototype.on=function(t,e,n){return o(this,t,e,n,!1)},u.prototype.once=function(t,e,n){return o(this,t,e,n,!0)},u.prototype.removeListener=function(t,e,r,i){var o=n?n+t:t;if(!this._events[o])return this;if(!e)return a(this,o),this;var u=this._events[o];if(u.fn)u.fn!==e||i&&!u.once||r&&u.context!==r||a(this,o);else{for(var s=0,c=[],l=u.length;s<l;s++)(u[s].fn!==e||i&&!u[s].once||r&&u[s].context!==r)&&c.push(u[s]);c.length?this._events[o]=1===c.length?c[0]:c:a(this,o)}return this},u.prototype.removeAllListeners=function(t){var e;return t?(e=n?n+t:t,this._events[e]&&a(this,e)):(this._events=new r,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=n,u.EventEmitter=u,t.exports=u}(gh);var bh=v(gh.exports),wh=Array.isArray;function xh(){if(!arguments.length)return[];var t=arguments[0];return wh(t)?t:[t]}var Oh=qf,kh=po,Sh=Pt,jh=gt("species"),_h=Array,Mh=function(t){var e;return Oh(t)&&(e=t.constructor,(kh(e)&&(e===_h||Oh(e.prototype))||Sh(e)&&null===(e=e[jh]))&&(e=void 0)),void 0===e?_h:e},Dh=function(t,e){return new(Mh(t))(0===e?0:e)},Ph=To,$h=lr,Eh=F,Lh=Rr,Th=Dh,Ch=A([].push),Ah=function(t){var e=1===t,n=2===t,r=3===t,i=4===t,o=6===t,a=7===t,u=5===t||o;return function(s,c,l,f){for(var h,d,p=Eh(s),v=$h(p),y=Lh(v),m=Ph(c,l),g=0,b=f||Th,w=e?b(s,y):n||a?b(s,0):void 0;y>g;g++)if((u||g in v)&&(d=m(h=v[g],g,p),t))if(e)w[g]=d;else if(d)switch(t){case 3:return!0;case 5:return h;case 6:return g;case 2:Ch(w,h)}else switch(t){case 4:return!1;case 7:Ch(w,h)}return o?-1:r||i?i:w}},Rh={forEach:Ah(0),map:Ah(1),filter:Ah(2),some:Ah(3),every:Ah(4),find:Ah(5),findIndex:Ah(6),filterReject:Ah(7)},Ih=Rh.map;Si({target:"Array",proto:!0,forced:!eh("map")},{map:function(t){return Ih(this,t,arguments.length>1?arguments[1]:void 0)}});var Nh=_t,Wh=A,Yh=Ht,zh=P,Fh=wc,Hh=Qr,Bh=nr,Gh=F,Uh=lr,qh=Object.assign,Vh=Object.defineProperty,Kh=Wh([].concat),Zh=!qh||zh((function(){if(Nh&&1!==qh({b:1},qh(Vh({},"a",{enumerable:!0,get:function(){Vh(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol("assign detection"),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!==qh({},t)[n]||Fh(qh({},e)).join("")!==r}))?function(t,e){for(var n=Gh(t),r=arguments.length,i=1,o=Hh.f,a=Bh.f;r>i;)for(var u,s=Uh(arguments[i++]),c=o?Kh(Fh(s),o(s)):Fh(s),l=c.length,f=0;l>f;)u=c[f++],Nh&&!Yh(a,s,u)||(n[u]=s[u]);return n}:qh,Qh=Zh;Si({target:"Object",stat:!0,arity:2,forced:Object.assign!==Qh},{assign:Qh});var Jh={exports:{}},Xh={},td=Er,ed=Rr,nd=Qf,rd=Array,id=Math.max,od=function(t,e,n){for(var r=ed(t),i=td(e,r),o=td(void 0===n?r:n,r),a=rd(id(o-i,0)),u=0;i<o;i++,u++)nd(a,u,t[i]);return a.length=u,a},ad=Gn,ud=dr,sd=kr.f,cd=od,ld="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];Xh.f=function(t){return ld&&"Window"===ad(t)?function(t){try{return sd(t)}catch(t){return cd(ld)}}(t):sd(ud(t))};var fd=P((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),hd=P,dd=Pt,pd=Gn,vd=fd,yd=Object.isExtensible,md=hd((function(){yd(1)}))||vd?function(t){return!!dd(t)&&((!vd||"ArrayBuffer"!==pd(t))&&(!yd||yd(t)))}:yd,gd=!P((function(){return Object.isExtensible(Object.preventExtensions({}))})),bd=Si,wd=A,xd=rn,Od=Pt,kd=G,Sd=jt.f,jd=kr,_d=Xh,Md=md,Dd=gd,Pd=!1,$d=Z("meta"),Ed=0,Ld=function(t){Sd(t,$d,{value:{objectID:"O"+Ed++,weakData:{}}})},Td=Jh.exports={enable:function(){Td.enable=function(){},Pd=!0;var t=jd.f,e=wd([].splice),n={};n[$d]=1,t(n).length&&(jd.f=function(n){for(var r=t(n),i=0,o=r.length;i<o;i++)if(r[i]===$d){e(r,i,1);break}return r},bd({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:_d.f}))},fastKey:function(t,e){if(!Od(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!kd(t,$d)){if(!Md(t))return"F";if(!e)return"E";Ld(t)}return t[$d].objectID},getWeakData:function(t,e){if(!kd(t,$d)){if(!Md(t))return!0;if(!e)return!1;Ld(t)}return t[$d].weakData},onFreeze:function(t){return Dd&&Pd&&Md(t)&&!kd(t,$d)&&Ld(t),t}};xd[$d]=!0;var Cd=Jh.exports,Ad=St,Rd=Pt,Id=Ci,Nd=Si,Wd=m,Yd=A,zd=yi,Fd=zn,Hd=Cd,Bd=Is,Gd=Ki,Ud=St,qd=R,Vd=Pt,Kd=P,Zd=Fs,Qd=Ni,Jd=function(t,e,n){var r,i;return Id&&Ad(r=e.constructor)&&r!==n&&Rd(i=r.prototype)&&i!==n.prototype&&Id(t,i),t},Xd=function(t,e,n){var r=-1!==t.indexOf("Map"),i=-1!==t.indexOf("Weak"),o=r?"set":"add",a=Wd[t],u=a&&a.prototype,s=a,c={},l=function(t){var e=Yd(u[t]);Fd(u,t,"add"===t?function(t){return e(this,0===t?0:t),this}:"delete"===t?function(t){return!(i&&!Vd(t))&&e(this,0===t?0:t)}:"get"===t?function(t){return i&&!Vd(t)?void 0:e(this,0===t?0:t)}:"has"===t?function(t){return!(i&&!Vd(t))&&e(this,0===t?0:t)}:function(t,n){return e(this,0===t?0:t,n),this})};if(zd(t,!Ud(a)||!(i||u.forEach&&!Kd((function(){(new a).entries().next()})))))s=n.getConstructor(e,t,r,o),Hd.enable();else if(zd(t,!0)){var f=new s,h=f[o](i?{}:-0,1)!==f,d=Kd((function(){f.has(1)})),p=Zd((function(t){new a(t)})),v=!i&&Kd((function(){for(var t=new a,e=5;e--;)t[o](e,e);return!t.has(-0)}));p||((s=e((function(t,e){Gd(t,u);var n=Jd(new a,t,s);return qd(e)||Bd(e,n[o],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=s),(d||v)&&(l("delete"),l("has"),r&&l("get")),(v||h)&&l(o),i&&u.clear&&delete u.clear}return c[t]=s,Nd({global:!0,constructor:!0,forced:s!==a},c),Qd(s,t),i||n.setStrong(s,t,r),s},tp=zn,ep=function(t,e,n){for(var r in e)tp(t,r,e[r],n);return t},np=A,rp=ep,ip=Cd.getWeakData,op=Ki,ap=Yt,up=R,sp=Pt,cp=Is,lp=G,fp=gn.set,hp=gn.getterFor,dp=Rh.find,pp=Rh.findIndex,vp=np([].splice),yp=0,mp=function(t){return t.frozen||(t.frozen=new gp)},gp=function(){this.entries=[]},bp=function(t,e){return dp(t.entries,(function(t){return t[0]===e}))};gp.prototype={get:function(t){var e=bp(this,t);if(e)return e[1]},has:function(t){return!!bp(this,t)},set:function(t,e){var n=bp(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=pp(this.entries,(function(e){return e[0]===t}));return~e&&vp(this.entries,e,1),!!~e}};var wp,xp,Op={getConstructor:function(t,e,n,r){var i=t((function(t,i){op(t,o),fp(t,{type:e,id:yp++,frozen:void 0}),up(i)||cp(i,t[r],{that:t,AS_ENTRIES:n})})),o=i.prototype,a=hp(e),u=function(t,e,n){var r=a(t),i=ip(ap(e),!0);return!0===i?mp(r).set(e,n):i[r.id]=n,t};return rp(o,{delete:function(t){var e=a(this);if(!sp(t))return!1;var n=ip(t);return!0===n?mp(e).delete(t):n&&lp(n,e.id)&&delete n[e.id]},has:function(t){var e=a(this);if(!sp(t))return!1;var n=ip(t);return!0===n?mp(e).has(t):n&&lp(n,e.id)}}),rp(o,n?{get:function(t){var e=a(this);if(sp(t)){var n=ip(t);return!0===n?mp(e).get(t):n?n[e.id]:void 0}},set:function(t,e){return u(this,t,e)}}:{add:function(t){return u(this,t,!0)}}),i}};Xd("WeakSet",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),Op),function(t){t[t.SCROLL_NONE=0]="SCROLL_NONE",t[t.SCROLL_BACKWARD=1]="SCROLL_BACKWARD",t[t.SCROLL_FORWARD=2]="SCROLL_FORWARD"}(wp||(wp={})),function(t){t[t.TOP=0]="TOP",t[t.RIGHT=1]="RIGHT",t[t.BOTTOM=2]="BOTTOM",t[t.LEFT=3]="LEFT"}(xp||(xp={}));var kp,Sp,jp,_p="red",Mp=[0,100],Dp=function(){function t(e){a(this,t),kp.add(this),this.calendar=e,this.maxDomainReached=!1,this.minDomainReached=!1}return s(t,[{key:"loadNewDomains",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:wp.SCROLL_NONE,r=this.calendar.options.options,i=this.calendar.templateCollection,o=r.date.min?i.get(r.domain.type).extractUnit(+r.date.min):void 0,a=r.date.max?i.get(r.domain.type).extractUnit(+r.date.max):void 0,u=this.calendar.domainCollection;return mh(this,kp,"m",Sp).call(this,t,o,a,n)?wp.SCROLL_NONE:(n!==wp.SCROLL_NONE&&t.clamp(o,a).slice(r.range,n===wp.SCROLL_FORWARD),u.merge(t,r.range,(function(n,o){var a=null;return a=t.at(o+1)?t.at(o+1):e.calendar.dateHelper.intervals(r.domain.type,n,2).pop(),i.get(r.subDomain.type).mapping(n,a).map((function(t){return Object.assign(Object.assign({},t),{v:r.data.defaultValue})}))})),mh(this,kp,"m",jp).call(this,u.min,u.max,o,a),n===wp.SCROLL_BACKWARD?this.calendar.eventEmitter.emit("domainsLoaded",[u.min]):n===wp.SCROLL_FORWARD&&this.calendar.eventEmitter.emit("domainsLoaded",[u.max]),n)}},{key:"jumpTo",value:function(t,e){var n=this.calendar,r=n.domainCollection,i=n.options,o=new Date(r.min),a=new Date(r.max);return t<o?this.loadNewDomains(this.calendar.createDomainCollection(t,o,!1),wp.SCROLL_BACKWARD):e?this.loadNewDomains(this.calendar.createDomainCollection(t,i.options.range),o<t?wp.SCROLL_FORWARD:wp.SCROLL_BACKWARD):t>a?this.loadNewDomains(this.calendar.createDomainCollection(a,t,!1),wp.SCROLL_FORWARD):wp.SCROLL_NONE}}]),t}();kp=new WeakSet,Sp=function(t,e,n,r){return!!(n&&t.max>=n&&this.maxDomainReached&&r===wp.SCROLL_FORWARD)||!!(e&&t.min<=e&&this.minDomainReached&&r===wp.SCROLL_BACKWARD)},jp=function(t,e,n,r){if(n){var i=t<=n;this.calendar.eventEmitter.emit(i?"minDateReached":"minDateNotReached"),this.minDomainReached=i}if(r){var o=e>=r;this.calendar.eventEmitter.emit(o?"maxDateReached":"maxDateNotReached"),this.maxDomainReached=o}};var Pp=TypeError,$p=Si,Ep=P,Lp=qf,Tp=Pt,Cp=F,Ap=Rr,Rp=function(t){if(t>9007199254740991)throw Pp("Maximum allowed index exceeded");return t},Ip=Qf,Np=Dh,Wp=eh,Yp=it,zp=gt("isConcatSpreadable"),Fp=Yp>=51||!Ep((function(){var t=[];return t[zp]=!1,t.concat()[0]!==t})),Hp=function(t){if(!Tp(t))return!1;var e=t[zp];return void 0!==e?!!e:Lp(t)};$p({target:"Array",proto:!0,arity:1,forced:!Fp||!Wp("concat")},{concat:function(t){var e,n,r,i,o,a=Cp(this),u=Np(a,0),s=0;for(e=-1,r=arguments.leng