(self.webpackChunkClientApp=self.webpackChunkClientApp||[]).push([[429],{203:function($,we,Ee){"use strict";!function(le){function G(){var je=this||self;je.globalThis=je,delete le.prototype._T_}"object"!=typeof globalThis&&(this?G():(le.defineProperty(le.prototype,"_T_",{configurable:!0,get:G}),_T_))}(Object),globalThis,Ee(8583),Ee(5386)},5386:function($,we,Ee){var re;!function(z,Y,le,G){"use strict";var He,je=["","webkit","Moz","MS","ms","o"],pt=Y.createElement("div"),Fe=Math.round,Me=Math.abs,Ze=Date.now;function Le(r,e,t){return setTimeout(Be(r,t),e)}function Ne(r,e,t){return!!Array.isArray(r)&&(me(r,t[e],t),!0)}function me(r,e,t){var a;if(r)if(r.forEach)r.forEach(e,t);else if(r.length!==G)for(a=0;a<r.length;)e.call(t,r[a],a,r),a++;else for(a in r)r.hasOwnProperty(a)&&e.call(t,r[a],a,r)}function rt(r,e,t){var a="DEPRECATED METHOD: "+e+"\n"+t+" AT \n";return function(){var h=new Error("get-stack-trace"),_=h&&h.stack?h.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",x=z.console&&(z.console.warn||z.console.log);return x&&x.call(z.console,a,_),r.apply(this,arguments)}}He="function"!=typeof Object.assign?function(e){if(e===G||null===e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),a=1;a<arguments.length;a++){var h=arguments[a];if(h!==G&&null!==h)for(var _ in h)h.hasOwnProperty(_)&&(t[_]=h[_])}return t}:Object.assign;var yt=rt(function(e,t,a){for(var h=Object.keys(t),_=0;_<h.length;)(!a||a&&e[h[_]]===G)&&(e[h[_]]=t[h[_]]),_++;return e},"extend","Use `assign`."),te=rt(function(e,t){return yt(e,t,!0)},"merge","Use `assign`.");function be(r,e,t){var h,a=e.prototype;(h=r.prototype=Object.create(a)).constructor=r,h._super=a,t&&He(h,t)}function Be(r,e){return function(){return r.apply(e,arguments)}}function _e(r,e){return"function"==typeof r?r.apply(e&&e[0]||G,e):r}function At(r,e){return r===G?e:r}function nt(r,e,t){me(Qe(e),function(a){r.addEventListener(a,t,!1)})}function gt(r,e,t){me(Qe(e),function(a){r.removeEventListener(a,t,!1)})}function Pt(r,e){for(;r;){if(r==e)return!0;r=r.parentNode}return!1}function qe(r,e){return r.indexOf(e)>-1}function Qe(r){return r.trim().split(/\s+/g)}function Je(r,e,t){if(r.indexOf&&!t)return r.indexOf(e);for(var a=0;a<r.length;){if(t&&r[a][t]==e||!t&&r[a]===e)return a;a++}return-1}function ft(r){return Array.prototype.slice.call(r,0)}function ht(r,e,t){for(var a=[],h=[],_=0;_<r.length;){var x=e?r[_][e]:r[_];Je(h,x)<0&&a.push(r[_]),h[_]=x,_++}return t&&(a=e?a.sort(function(Ce,De){return Ce[e]>De[e]}):a.sort()),a}function vt(r,e){for(var t,a,h=e[0].toUpperCase()+e.slice(1),_=0;_<je.length;){if((a=(t=je[_])?t+h:e)in r)return a;_++}return G}var Rt=1;function Ue(r){var e=r.ownerDocument||r;return e.defaultView||e.parentWindow||z}var Ve="ontouchstart"in z,Dt=vt(z,"PointerEvent")!==G,ze=Ve&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),it="touch",bt="mouse",Ot=["x","y"],ct=["clientX","clientY"];function xe(r,e){var t=this;this.manager=r,this.callback=e,this.element=r.element,this.target=r.options.inputTarget,this.domHandler=function(a){_e(r.options.enable,[r])&&t.handler(a)},this.init()}function lt(r,e,t){var a=t.pointers.length,h=t.changedPointers.length,_=1&e&&a-h==0,x=12&e&&a-h==0;t.isFirst=!!_,t.isFinal=!!x,_&&(r.session={}),t.eventType=e,function Zt(r,e){var t=r.session,a=e.pointers,h=a.length;t.firstInput||(t.firstInput=i(e)),h>1&&!t.firstMultiple?t.firstMultiple=i(e):1===h&&(t.firstMultiple=!1);var _=t.firstInput,x=t.firstMultiple,Te=x?x.center:_.center,Ce=e.center=o(a);e.timeStamp=Ze(),e.deltaTime=e.timeStamp-_.timeStamp,e.angle=d(Te,Ce),e.distance=f(Te,Ce),function Lt(r,e){var t=e.center,a=r.offsetDelta||{},h=r.prevDelta||{},_=r.prevInput||{};(1===e.eventType||4===_.eventType)&&(h=r.prevDelta={x:_.deltaX||0,y:_.deltaY||0},a=r.offsetDelta={x:t.x,y:t.y}),e.deltaX=h.x+(t.x-a.x),e.deltaY=h.y+(t.y-a.y)}(t,e),e.offsetDirection=u(e.deltaX,e.deltaY);var De=s(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=De.x,e.overallVelocityY=De.y,e.overallVelocity=Me(De.x)>Me(De.y)?De.x:De.y,e.scale=x?function b(r,e){return f(e[0],e[1],ct)/f(r[0],r[1],ct)}(x.pointers,a):1,e.rotation=x?function E(r,e){return d(e[1],e[0],ct)+d(r[1],r[0],ct)}(x.pointers,a):0,e.maxPointers=t.prevInput?e.pointers.length>t.prevInput.maxPointers?e.pointers.length:t.prevInput.maxPointers:e.pointers.length,function Ht(r,e){var h,_,x,Te,t=r.lastInterval||e,a=e.timeStamp-t.timeStamp;if(8!=e.eventType&&(a>25||t.velocity===G)){var Ce=e.deltaX-t.deltaX,De=e.deltaY-t.deltaY,Xe=s(a,Ce,De);_=Xe.x,x=Xe.y,h=Me(Xe.x)>Me(Xe.y)?Xe.x:Xe.y,Te=u(Ce,De),r.lastInterval=e}else h=t.velocity,_=t.velocityX,x=t.velocityY,Te=t.direction;e.velocity=h,e.velocityX=_,e.velocityY=x,e.direction=Te}(t,e);var Xe=r.element;Pt(e.srcEvent.target,Xe)&&(Xe=e.srcEvent.target),e.target=Xe}(r,t),r.emit("hammer.input",t),r.recognize(t),r.session.prevInput=t}function i(r){for(var e=[],t=0;t<r.pointers.length;)e[t]={clientX:Fe(r.pointers[t].clientX),clientY:Fe(r.pointers[t].clientY)},t++;return{timeStamp:Ze(),pointers:e,center:o(e),deltaX:r.deltaX,deltaY:r.deltaY}}function o(r){var e=r.length;if(1===e)return{x:Fe(r[0].clientX),y:Fe(r[0].clientY)};for(var t=0,a=0,h=0;h<e;)t+=r[h].clientX,a+=r[h].clientY,h++;return{x:Fe(t/e),y:Fe(a/e)}}function s(r,e,t){return{x:e/r||0,y:t/r||0}}function u(r,e){return r===e?1:Me(r)>=Me(e)?r<0?2:4:e<0?8:16}function f(r,e,t){t||(t=Ot);var a=e[t[0]]-r[t[0]],h=e[t[1]]-r[t[1]];return Math.sqrt(a*a+h*h)}function d(r,e,t){return t||(t=Ot),180*Math.atan2(e[t[1]]-r[t[1]],e[t[0]]-r[t[0]])/Math.PI}xe.prototype={handler:function(){},init:function(){this.evEl&&nt(this.element,this.evEl,this.domHandler),this.evTarget&&nt(this.target,this.evTarget,this.domHandler),this.evWin&&nt(Ue(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&gt(this.element,this.evEl,this.domHandler),this.evTarget&&gt(this.target,this.evTarget,this.domHandler),this.evWin&&gt(Ue(this.element),this.evWin,this.domHandler)}};var N={mousedown:1,mousemove:2,mouseup:4},D="mousedown",S="mousemove mouseup";function A(){this.evEl=D,this.evWin=S,this.pressed=!1,xe.apply(this,arguments)}be(A,xe,{handler:function(e){var t=N[e.type];1&t&&0===e.button&&(this.pressed=!0),2&t&&1!==e.which&&(t=4),this.pressed&&(4&t&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:bt,srcEvent:e}))}});var M={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},W={2:it,3:"pen",4:bt,5:"kinect"},Q="pointerdown",K="pointermove pointerup pointercancel";function ke(){this.evEl=Q,this.evWin=K,xe.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}z.MSPointerEvent&&!z.PointerEvent&&(Q="MSPointerDown",K="MSPointerMove MSPointerUp MSPointerCancel"),be(ke,xe,{handler:function(e){var t=this.store,a=!1,h=e.type.toLowerCase().replace("ms",""),_=M[h],x=W[e.pointerType]||e.pointerType,Te=x==it,Ce=Je(t,e.pointerId,"pointerId");1&_&&(0===e.button||Te)?Ce<0&&(t.push(e),Ce=t.length-1):12&_&&(a=!0),!(Ce<0)&&(t[Ce]=e,this.callback(this.manager,_,{pointers:t,changedPointers:[e],pointerType:x,srcEvent:e}),a&&t.splice(Ce,1))}});var ue={touchstart:1,touchmove:2,touchend:4,touchcancel:8},ce="touchstart",fe="touchstart touchmove touchend touchcancel";function g(){this.evTarget=ce,this.evWin=fe,this.started=!1,xe.apply(this,arguments)}function ie(r,e){var t=ft(r.touches),a=ft(r.changedTouches);return 12&e&&(t=ht(t.concat(a),"identifier",!0)),[t,a]}be(g,xe,{handler:function(e){var t=ue[e.type];if(1===t&&(this.started=!0),this.started){var a=ie.call(this,e,t);12&t&&a[0].length-a[1].length==0&&(this.started=!1),this.callback(this.manager,t,{pointers:a[0],changedPointers:a[1],pointerType:it,srcEvent:e})}}});var he={touchstart:1,touchmove:2,touchend:4,touchcancel:8},ae="touchstart touchmove touchend touchcancel";function ee(){this.evTarget=ae,this.targetIds={},xe.apply(this,arguments)}function R(r,e){var t=ft(r.touches),a=this.targetIds;if(3&e&&1===t.length)return a[t[0].identifier]=!0,[t,t];var h,_,x=ft(r.changedTouches),Te=[],Ce=this.target;if(_=t.filter(function(De){return Pt(De.target,Ce)}),1===e)for(h=0;h<_.length;)a[_[h].identifier]=!0,h++;for(h=0;h<x.length;)a[x[h].identifier]&&Te.push(x[h]),12&e&&delete a[x[h].identifier],h++;return Te.length?[ht(_.concat(Te),"identifier",!0),Te]:void 0}function Z(){xe.apply(this,arguments);var r=Be(this.handler,this);this.touch=new ee(this.manager,r),this.mouse=new A(this.manager,r),this.primaryTouch=null,this.lastTouches=[]}function X(r,e){1&r?(this.primaryTouch=e.changedPointers[0].identifier,L.call(this,e)):12&r&&L.call(this,e)}function L(r){var e=r.changedPointers[0];if(e.identifier===this.primaryTouch){var t={x:e.clientX,y:e.clientY};this.lastTouches.push(t);var a=this.lastTouches;setTimeout(function(){var x=a.indexOf(t);x>-1&&a.splice(x,1)},2500)}}function se(r){for(var e=r.srcEvent.clientX,t=r.srcEvent.clientY,a=0;a<this.lastTouches.length;a++){var h=this.lastTouches[a],_=Math.abs(e-h.x),x=Math.abs(t-h.y);if(_<=25&&x<=25)return!0}return!1}be(ee,xe,{handler:function(e){var t=he[e.type],a=R.call(this,e,t);!a||this.callback(this.manager,t,{pointers:a[0],changedPointers:a[1],pointerType:it,srcEvent:e})}}),be(Z,xe,{handler:function(e,t,a){var _=a.pointerType==bt;if(!(_&&a.sourceCapabilities&&a.sourceCapabilities.firesTouchEvents)){if(a.pointerType==it)X.call(this,t,a);else if(_&&se.call(this,a))return;this.callback(e,t,a)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var ne=vt(pt.style,"touchAction"),Ae=ne!==G,Se="compute",k="manipulation",m="none",c="pan-x",n="pan-y",v=function T(){if(!Ae)return!1;var r={},e=z.CSS&&z.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(t){r[t]=!e||z.CSS.supports("touch-action",t)}),r}();function H(r,e){this.manager=r,this.set(e)}H.prototype={set:function(e){e==Se&&(e=this.compute()),Ae&&this.manager.element.style&&v[e]&&(this.manager.element.style[ne]=e),this.actions=e.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var e=[];return me(this.manager.recognizers,function(t){_e(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))}),function F(r){if(qe(r,m))return m;var e=qe(r,c),t=qe(r,n);return e&&t?m:e||t?e?c:n:qe(r,k)?k:"auto"}(e.join(" "))},preventDefaults:function(e){var t=e.srcEvent,a=e.offsetDirection;if(!this.manager.session.prevented){var h=this.actions,_=qe(h,m)&&!v[m],x=qe(h,n)&&!v[n],Te=qe(h,c)&&!v[c];if(_&&1===e.pointers.length&&e.distance<2&&e.deltaTime<250)return;return Te&&x||!(_||x&&6&a||Te&&24&a)?void 0:this.preventSrc(t)}t.preventDefault()},preventSrc:function(e){this.manager.session.prevented=!0,e.preventDefault()}};var C=32;function w(r){this.options=He({},this.defaults,r||{}),this.id=function wt(){return Rt++}(),this.manager=null,this.options.enable=At(this.options.enable,!0),this.state=1,this.simultaneous={},this.requireFail=[]}function J(r){return 16&r?"cancel":8&r?"end":4&r?"move":2&r?"start":""}function V(r){return 16==r?"down":8==r?"up":2==r?"left":4==r?"right":""}function B(r,e){var t=e.manager;return t?t.get(r):r}function U(){w.apply(this,arguments)}function oe(){U.apply(this,arguments),this.pX=null,this.pY=null}function Ie(){U.apply(this,arguments)}function de(){w.apply(this,arguments),this._timer=null,this._input=null}function Re(){U.apply(this,arguments)}function Pe(){U.apply(this,arguments)}function Ye(){w.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function ge(r,e){return(e=e||{}).recognizers=At(e.recognizers,ge.defaults.preset),new We(r,e)}function We(r,e){this.options=He({},ge.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||r,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=r,this.input=function mt(r){return new(r.options.inputClass||(Dt?ke:ze?ee:Ve?Z:A))(r,lt)}(this),this.touchAction=new H(this,this.options.touchAction),St(this,!0),me(this.options.recognizers,function(t){var a=this.add(new t[0](t[1]));t[2]&&a.recognizeWith(t[2]),t[3]&&a.requireFailure(t[3])},this)}function St(r,e){var a,t=r.element;t.style&&(me(r.options.cssProps,function(h,_){a=vt(t.style,_),e?(r.oldCssProps[a]=t.style[a],t.style[a]=h):t.style[a]=r.oldCssProps[a]||""}),e||(r.oldCssProps={}))}w.prototype={defaults:{},set:function(e){return He(this.options,e),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(e){if(Ne(e,"recognizeWith",this))return this;var t=this.simultaneous;return t[(e=B(e,this)).id]||(t[e.id]=e,e.recognizeWith(this)),this},dropRecognizeWith:function(e){return Ne(e,"dropRecognizeWith",this)||(e=B(e,this),delete this.simultaneous[e.id]),this},requireFailure:function(e){if(Ne(e,"requireFailure",this))return this;var t=this.requireFail;return-1===Je(t,e=B(e,this))&&(t.push(e),e.requireFailure(this)),this},dropRequireFailure:function(e){if(Ne(e,"dropRequireFailure",this))return this;e=B(e,this);var t=Je(this.requireFail,e);return t>-1&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(e){return!!this.simultaneous[e.id]},emit:function(e){var t=this,a=this.state;function h(_){t.manager.emit(_,e)}a<8&&h(t.options.event+J(a)),h(t.options.event),e.additionalEvent&&h(e.additionalEvent),a>=8&&h(t.options.event+J(a))},tryEmit:function(e){if(this.canEmit())return this.emit(e);this.state=C},canEmit:function(){for(var e=0;e<this.requireFail.length;){if(!(33&this.requireFail[e].state))return!1;e++}return!0},recognize:function(e){var t=He({},e);if(!_e(this.options.enable,[this,t]))return this.reset(),void(this.state=C);56&this.state&&(this.state=1),this.state=this.process(t),30&this.state&&this.tryEmit(t)},process:function(e){},getTouchAction:function(){},reset:function(){}},be(U,w,{defaults:{pointers:1},attrTest:function(e){var t=this.options.pointers;return 0===t||e.pointers.length===t},process:function(e){var t=this.state,a=e.eventType,h=6&t,_=this.attrTest(e);return h&&(8&a||!_)?16|t:h||_?4&a?8|t:2&t?4|t:2:C}}),be(oe,U,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var e=this.options.direction,t=[];return 6&e&&t.push(n),24&e&&t.push(c),t},directionTest:function(e){var t=this.options,a=!0,h=e.distance,_=e.direction,x=e.deltaX,Te=e.deltaY;return _&t.direction||(6&t.direction?(_=0===x?1:x<0?2:4,a=x!=this.pX,h=Math.abs(e.deltaX)):(_=0===Te?1:Te<0?8:16,a=Te!=this.pY,h=Math.abs(e.deltaY))),e.direction=_,a&&h>t.threshold&&_&t.direction},attrTest:function(e){return U.prototype.attrTest.call(this,e)&&(2&this.state||!(2&this.state)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=V(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),be(Ie,U,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[m]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},emit:function(e){1!==e.scale&&(e.additionalEvent=this.options.event+(e.scale<1?"in":"out")),this._super.emit.call(this,e)}}),be(de,w,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(e){var t=this.options,a=e.pointers.length===t.pointers,h=e.distance<t.threshold,_=e.deltaTime>t.time;if(this._input=e,!h||!a||12&e.eventType&&!_)this.reset();else if(1&e.eventType)this.reset(),this._timer=Le(function(){this.state=8,this.tryEmit()},t.time,this);else if(4&e.eventType)return 8;return C},reset:function(){clearTimeout(this._timer)},emit:function(e){8===this.state&&(e&&4&e.eventType?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=Ze(),this.manager.emit(this.options.event,this._input)))}}),be(Re,U,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[m]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)}}),be(Pe,U,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return oe.prototype.getTouchAction.call(this)},attrTest:function(e){var a,t=this.options.direction;return 30&t?a=e.overallVelocity:6&t?a=e.overallVelocityX:24&t&&(a=e.overallVelocityY),this._super.attrTest.call(this,e)&&t&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&Me(a)>this.options.velocity&&4&e.eventType},emit:function(e){var t=V(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),be(Ye,w,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[k]},process:function(e){var t=this.options,a=e.pointers.length===t.pointers,h=e.distance<t.threshold,_=e.deltaTime<t.time;if(this.reset(),1&e.eventType&&0===this.count)return this.failTimeout();if(h&&_&&a){if(4!=e.eventType)return this.failTimeout();var x=!this.pTime||e.timeStamp-this.pTime<t.interval,Te=!this.pCenter||f(this.pCenter,e.center)<t.posThreshold;if(this.pTime=e.timeStamp,this.pCenter=e.center,Te&&x?this.count+=1:this.count=1,this._input=e,0==this.count%t.taps)return this.hasRequireFailures()?(this._timer=Le(function(){this.state=8,this.tryEmit()},t.interval,this),2):8}return C},failTimeout:function(){return this._timer=Le(function(){this.state=C},this.options.interval,this),C},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),ge.VERSION="2.0.7",ge.defaults={domEvents:!1,touchAction:Se,enable:!0,inputTarget:null,inputClass:null,preset:[[Re,{enable:!1}],[Ie,{enable:!1},["rotate"]],[Pe,{direction:6}],[oe,{direction:6},["swipe"]],[Ye],[Ye,{event:"doubletap",taps:2},["tap"]],[de]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},We.prototype={set:function(e){return He(this.options,e),e.touchAction&&this.touchAction.update(),e.inputTarget&&(this.input.destroy(),this.input.target=e.inputTarget,this.input.init()),this},stop:function(e){this.session.stopped=e?2:1},recognize:function(e){var t=this.session;if(!t.stopped){this.touchAction.preventDefaults(e);var a,h=this.recognizers,_=t.curRecognizer;(!_||_&&8&_.state)&&(_=t.curRecognizer=null);for(var x=0;x<h.length;)a=h[x],2===t.stopped||_&&a!=_&&!a.canRecognizeWith(_)?a.reset():a.recognize(e),!_&&14&a.state&&(_=t.curRecognizer=a),x++}},get:function(e){if(e instanceof w)return e;for(var t=this.recognizers,a=0;a<t.length;a++)if(t[a].options.event==e)return t[a];return null},add:function(e){if(Ne(e,"add",this))return this;var t=this.get(e.options.event);return t&&this.remove(t),this.recognizers.push(e),e.manager=this,this.touchAction.update(),e},remove:function(e){if(Ne(e,"remove",this))return this;if(e=this.get(e)){var t=this.recognizers,a=Je(t,e);-1!==a&&(t.splice(a,1),this.touchAction.update())}return this},on:function(e,t){if(e!==G&&t!==G){var a=this.handlers;return me(Qe(e),function(h){a[h]=a[h]||[],a[h].push(t)}),this}},off:function(e,t){if(e!==G){var a=this.handlers;return me(Qe(e),function(h){t?a[h]&&a[h].splice(Je(a[h],t),1):delete a[h]}),this}},emit:function(e,t){this.options.domEvents&&function Nt(r,e){var t=Y.createEvent("Event");t.initEvent(r,!0,!0),t.gesture=e,e.target.dispatchEvent(t)}(e,t);var a=this.handlers[e]&&this.handlers[e].slice();if(a&&a.length){t.type=e,t.preventDefault=function(){t.srcEvent.preventDefault()};for(var h=0;h<a.length;)a[h](t),h++}},destroy:function(){this.element&&St(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},He(ge,{INPUT_START:1,INPUT_MOVE:2,INPUT_END:4,INPUT_CANCEL:8,STATE_POSSIBLE:1,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:C,DIRECTION_NONE:1,DIRECTION_LEFT:2,DIRECTION_RIGHT:4,DIRECTION_UP:8,DIRECTION_DOWN:16,DIRECTION_HORIZONTAL:6,DIRECTION_VERTICAL:24,DIRECTION_ALL:30,Manager:We,Input:xe,TouchAction:H,TouchInput:ee,MouseInput:A,PointerEventInput:ke,TouchMouseInput:Z,SingleTouchInput:g,Recognizer:w,AttrRecognizer:U,Tap:Ye,Pan:oe,Swipe:Pe,Pinch:Ie,Rotate:Re,Press:de,on:nt,off:gt,each:me,merge:te,extend:yt,assign:He,inherit:be,bindFn:Be,prefixed:vt}),(void 0!==z?z:"undefined"!=typeof self?self:{}).Hammer=ge,(re=function(){return ge}.call(we,Ee,we,$))!==G&&($.exports=re)}(window,document)},8583:function($,we,Ee){"use strict";var re=Ee(580).default,z=Ee(4575).default,Y=Ee(3913).default;!function(i){var o=i.performance;function s(k){o&&o.mark&&o.mark(k)}function u(k,m){o&&o.measure&&o.measure(k,m)}s("Zone");var f=i.__Zone_symbol_prefix||"__zone_symbol__";function d(k){return f+k}var E=!0===i[d("forceDuplicateZoneCheck")];if(i.Zone){if(E||"function"!=typeof i.Zone.__symbol__)throw new Error("Zone already loaded.");return i.Zone}var ke,b=function(){var k=function(){function m(c,n){z(this,m),this._parent=c,this._name=n?n.name||"unnamed":"<root>",this._properties=n&&n.properties||{},this._zoneDelegate=new D(this,this._parent&&this._parent._zoneDelegate,n)}return Y(m,[{key:"parent",get:function(){return this._parent}},{key:"name",get:function(){return this._name}},{key:"get",value:function(n){var v=this.getZoneWith(n);if(v)return v._properties[n]}},{key:"getZoneWith",value:function(n){for(var v=this;v;){if(v._properties.hasOwnProperty(n))return v;v=v._parent}return null}},{key:"fork",value:function(n){if(!n)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,n)}},{key:"wrap",value:function(n,v){if("function"!=typeof n)throw new Error("Expecting function got: "+n);var H=this._zoneDelegate.intercept(this,n,v),F=this;return function(){return F.runGuarded(H,this,arguments,v)}}},{key:"run",value:function(n,v,H,F){ne={parent:ne,zone:this};try{return this._zoneDelegate.invoke(this,n,v,H,F)}finally{ne=ne.parent}}},{key:"runGuarded",value:function(n){var v=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,H=arguments.length>2?arguments[2]:void 0,F=arguments.length>3?arguments[3]:void 0;ne={parent:ne,zone:this};try{try{return this._zoneDelegate.invoke(this,n,v,H,F)}catch(T){if(this._zoneDelegate.handleError(this,T))throw T}}finally{ne=ne.parent}}},{key:"runTask",value:function(n,v,H){if(n.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(n.zone||g).name+"; Execution: "+this.name+")");if(n.state!==ie||n.type!==X&&n.type!==Z){var F=n.state!=ee;F&&n._transitionTo(ee,ae),n.runCount++;var T=Ae;Ae=n,ne={parent:ne,zone:this};try{n.type==Z&&n.data&&!n.data.isPeriodic&&(n.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,n,v,H)}catch(O){if(this._zoneDelegate.handleError(this,O))throw O}}finally{n.state!==ie&&n.state!==ve&&(n.type==X||n.data&&n.data.isPeriodic?F&&n._transitionTo(ae,ee):(n.runCount=0,this._updateTaskCount(n,-1),F&&n._transitionTo(ie,ee,ie))),ne=ne.parent,Ae=T}}}},{key:"scheduleTask",value:function(n){if(n.zone&&n.zone!==this)for(var v=this;v;){if(v===n.zone)throw Error("can not reschedule task to ".concat(this.name," which is descendants of the original zone ").concat(n.zone.name));v=v.parent}n._transitionTo(he,ie);var H=[];n._zoneDelegates=H,n._zone=this;try{n=this._zoneDelegate.scheduleTask(this,n)}catch(F){throw n._transitionTo(ve,he,ie),this._zoneDelegate.handleError(this,F),F}return n._zoneDelegates===H&&this._updateTaskCount(n,1),n.state==he&&n._transitionTo(ae,he),n}},{key:"scheduleMicroTask",value:function(n,v,H,F){return this.scheduleTask(new S(j,n,v,H,F,void 0))}},{key:"scheduleMacroTask",value:function(n,v,H,F,T){return this.scheduleTask(new S(Z,n,v,H,F,T))}},{key:"scheduleEventTask",value:function(n,v,H,F,T){return this.scheduleTask(new S(X,n,v,H,F,T))}},{key:"cancelTask",value:function(n){if(n.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(n.zone||g).name+"; Execution: "+this.name+")");n._transitionTo(R,ae,ee);try{this._zoneDelegate.cancelTask(this,n)}catch(v){throw n._transitionTo(ve,R),this._zoneDelegate.handleError(this,v),v}return this._updateTaskCount(n,-1),n._transitionTo(ie,R),n.runCount=0,n}},{key:"_updateTaskCount",value:function(n,v){var H=n._zoneDelegates;-1==v&&(n._zoneDelegates=null);for(var F=0;F<H.length;F++)H[F]._updateTaskCount(n.type,v)}}],[{key:"assertZonePatched",value:function(){if(i.Promise!==L.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}},{key:"root",get:function(){for(var n=m.current;n.parent;)n=n.parent;return n}},{key:"current",get:function(){return ne.zone}},{key:"currentTask",get:function(){return Ae}},{key:"__load_patch",value:function(n,v){var H=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(L.hasOwnProperty(n)){if(!H&&E)throw Error("Already loaded patch: "+n)}else if(!i["__Zone_disable_"+n]){var F="Zone:"+n;s(F),L[n]=v(i,m,se),u(F,F)}}}]),m}();return k.__symbol__=d,k}(),N={name:"",onHasTask:function(m,c,n,v){return m.hasTask(n,v)},onScheduleTask:function(m,c,n,v){return m.scheduleTask(n,v)},onInvokeTask:function(m,c,n,v,H,F){return m.invokeTask(n,v,H,F)},onCancelTask:function(m,c,n,v){return m.cancelTask(n,v)}},D=function(){function k(m,c,n){z(this,k),this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=m,this._parentDelegate=c,this._forkZS=n&&(n&&n.onFork?n:c._forkZS),this._forkDlgt=n&&(n.onFork?c:c._forkDlgt),this._forkCurrZone=n&&(n.onFork?this.zone:c._forkCurrZone),this._interceptZS=n&&(n.onIntercept?n:c._interceptZS),this._interceptDlgt=n&&(n.onIntercept?c:c._interceptDlgt),this._interceptCurrZone=n&&(n.onIntercept?this.zone:c._interceptCurrZone),this._invokeZS=n&&(n.onInvoke?n:c._invokeZS),this._invokeDlgt=n&&(n.onInvoke?c:c._invokeDlgt),this._invokeCurrZone=n&&(n.onInvoke?this.zone:c._invokeCurrZone),this._handleErrorZS=n&&(n.onHandleError?n:c._handleErrorZS),this._handleErrorDlgt=n&&(n.onHandleError?c:c._handleErrorDlgt),this._handleErrorCurrZone=n&&(n.onHandleError?this.zone:c._handleErrorCurrZone),this._scheduleTaskZS=n&&(n.onScheduleTask?n:c._scheduleTaskZS),this._scheduleTaskDlgt=n&&(n.onScheduleTask?c:c._scheduleTaskDlgt),this._scheduleTaskCurrZone=n&&(n.onScheduleTask?this.zone:c._scheduleTaskCurrZone),this._invokeTaskZS=n&&(n.onInvokeTask?n:c._invokeTaskZS),this._invokeTaskDlgt=n&&(n.onInvokeTask?c:c._invokeTaskDlgt),this._invokeTaskCurrZone=n&&(n.onInvokeTask?this.zone:c._invokeTaskCurrZone),this._cancelTaskZS=n&&(n.onCancelTask?n:c._cancelTaskZS),this._cancelTaskDlgt=n&&(n.onCancelTask?c:c._cancelTaskDlgt),this._cancelTaskCurrZone=n&&(n.onCancelTask?this.zone:c._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;var v=n&&n.onHasTask;(v||c&&c._hasTaskZS)&&(this._hasTaskZS=v?n:N,this._hasTaskDlgt=c,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=m,n.onScheduleTask||(this._scheduleTaskZS=N,this._scheduleTaskDlgt=c,this._scheduleTaskCurrZone=this.zone),n.onInvokeTask||(this._invokeTaskZS=N,this._invokeTaskDlgt=c,this._invokeTaskCurrZone=this.zone),n.onCancelTask||(this._cancelTaskZS=N,this._cancelTaskDlgt=c,this._cancelTaskCurrZone=this.zone))}return Y(k,[{key:"fork",value:function(c,n){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,c,n):new b(c,n)}},{key:"intercept",value:function(c,n,v){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,c,n,v):n}},{key:"invoke",value:function(c,n,v,H,F){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,c,n,v,H,F):n.apply(v,H)}},{key:"handleError",value:function(c,n){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,c,n)}},{key:"scheduleTask",value:function(c,n){var v=n;if(this._scheduleTaskZS)this._hasTaskZS&&v._zoneDelegates.push(this._hasTaskDlgtOwner),(v=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,c,n))||(v=n);else if(n.scheduleFn)n.scheduleFn(n);else{if(n.type!=j)throw new Error("Task is missing scheduleFn.");ce(n)}return v}},{key:"invokeTask",value:function(c,n,v,H){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,c,n,v,H):n.callback.apply(v,H)}},{key:"cancelTask",value:function(c,n){var v;if(this._cancelTaskZS)v=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,c,n);else{if(!n.cancelFn)throw Error("Task is not cancelable");v=n.cancelFn(n)}return v}},{key:"hasTask",value:function(c,n){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,c,n)}catch(v){this.handleError(c,v)}}},{key:"_updateTaskCount",value:function(c,n){var v=this._taskCounts,H=v[c],F=v[c]=H+n;if(F<0)throw new Error("More tasks executed then were scheduled.");0!=H&&0!=F||this.hasTask(this.zone,{microTask:v.microTask>0,macroTask:v.macroTask>0,eventTask:v.eventTask>0,change:c})}}]),k}(),S=function(){function k(m,c,n,v,H,F){if(z(this,k),this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=m,this.source=c,this.data=v,this.scheduleFn=H,this.cancelFn=F,!n)throw new Error("callback is not defined");this.callback=n;var T=this;this.invoke=m===X&&v&&v.useG?k.invokeTask:function(){return k.invokeTask.call(i,T,this,arguments)}}return Y(k,[{key:"zone",get:function(){return this._zone}},{key:"state",get:function(){return this._state}},{key:"cancelScheduleRequest",value:function(){this._transitionTo(ie,he)}},{key:"_transitionTo",value:function(c,n,v){if(this._state!==n&&this._state!==v)throw new Error("".concat(this.type," '").concat(this.source,"': can not transition to '").concat(c,"', expecting state '").concat(n,"'").concat(v?" or '"+v+"'":"",", was '").concat(this._state,"'."));this._state=c,c==ie&&(this._zoneDelegates=null)}},{key:"toString",value:function(){return this.data&&void 0!==this.data.handleId?this.data.handleId.toString():Object.prototype.toString.call(this)}},{key:"toJSON",value:function(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}],[{key:"invokeTask",value:function(c,n,v){c||(c=this),Se++;try{return c.runCount++,c.zone.runTask(c,n,v)}finally{1==Se&&fe(),Se--}}}]),k}(),A=d("setTimeout"),M=d("Promise"),W=d("then"),Q=[],K=!1;function ue(k){if(ke||i[M]&&(ke=i[M].resolve(0)),ke){var m=ke[W];m||(m=ke.then),m.call(ke,k)}else i[A](k,0)}function ce(k){0===Se&&0===Q.length&&ue(fe),k&&Q.push(k)}function fe(){if(!K){for(K=!0;Q.length;){var k=Q;Q=[];for(var m=0;m<k.length;m++){var c=k[m];try{c.zone.runTask(c,null,null)}catch(n){se.onUnhandledError(n)}}}se.microtaskDrainDone(),K=!1}}var g={name:"NO ZONE"},ie="notScheduled",he="scheduling",ae="scheduled",ee="running",R="canceling",ve="unknown",j="microTask",Z="macroTask",X="eventTask",L={},se={symbol:d,currentZoneFrame:function(){return ne},onUnhandledError:pe,microtaskDrainDone:pe,scheduleMicroTask:ce,showUncaughtError:function(){return!b[d("ignoreConsoleErrorUncaughtError")]},patchEventTarget:function(){return[]},patchOnProperties:pe,patchMethod:function(){return pe},bindArguments:function(){return[]},patchThen:function(){return pe},patchMacroTask:function(){return pe},patchEventPrototype:function(){return pe},isIEOrEdge:function(){return!1},getGlobalObjects:function(){},ObjectDefineProperty:function(){return pe},ObjectGetOwnPropertyDescriptor:function(){},ObjectCreate:function(){},ArraySlice:function(){return[]},patchClass:function(){return pe},wrapWithCurrentZone:function(){return pe},filterProperties:function(){return[]},attachOriginToPatched:function(){return pe},_redefineProperty:function(){return pe},patchCallbacks:function(){return pe},nativeScheduleMicroTask:ue},ne={parent:null,zone:new b(null,null)},Ae=null,Se=0;function pe(){}u("Zone","Zone"),i.Zone=b}("undefined"!=typeof window&&window||"undefined"!=typeof self&&self||global);var le=Object.getOwnPropertyDescriptor,G=Object.defineProperty,je=Object.getPrototypeOf,pt=Object.create,Et=Array.prototype.slice,Fe="addEventListener",Me="removeEventListener",Ze=Zone.__symbol__(Fe),Le=Zone.__symbol__(Me),Ne="true",me="false",rt=Zone.__symbol__("");function He(i,o){return Zone.current.wrap(i,o)}function yt(i,o,s,u,f){return Zone.current.scheduleMacroTask(i,o,s,u,f)}var te=Zone.__symbol__,be="undefined"!=typeof window,Be=be?window:void 0,_e=be&&Be||"object"==typeof self&&self||global;function nt(i,o){for(var s=i.length-1;s>=0;s--)"function"==typeof i[s]&&(i[s]=He(i[s],o+"_"+s));return i}function Pt(i){return!i||!1!==i.writable&&!("function"==typeof i.get&&void 0===i.set)}var qe="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,Qe=!("nw"in _e)&&void 0!==_e.process&&"[object process]"==={}.toString.call(_e.process),Je=!Qe&&!qe&&!(!be||!Be.HTMLElement),ft=void 0!==_e.process&&"[object process]"==={}.toString.call(_e.process)&&!qe&&!(!be||!Be.HTMLElement),ht={},vt=function(o){if(o=o||_e.event){var s=ht[o.type];s||(s=ht[o.type]=te("ON_PROPERTY"+o.type));var d,u=this||o.target||_e,f=u[s];if(Je&&u===Be&&"error"===o.type){var E=o;!0===(d=f&&f.call(this,E.message,E.filename,E.lineno,E.colno,E.error))&&o.preventDefault()}else null!=(d=f&&f.apply(this,arguments))&&!d&&o.preventDefault();return d}};function Rt(i,o,s){var u=le(i,o);if(!u&&s&&le(s,o)&&(u={enumerable:!0,configurable:!0}),u&&u.configurable){var d=te("on"+o+"patched");if(!i.hasOwnProperty(d)||!i[d]){delete u.writable,delete u.value;var E=u.get,b=u.set,N=o.substr(2),D=ht[N];D||(D=ht[N]=te("ON_PROPERTY"+N)),u.set=function(S){var A=this;!A&&i===_e&&(A=_e),A&&("function"==typeof A[D]&&A.removeEventListener(N,vt),b&&b.call(A,null),A[D]=S,"function"==typeof S&&A.addEventListener(N,vt,!1))},u.get=function(){var S=this;if(!S&&i===_e&&(S=_e),!S)return null;var A=S[D];if(A)return A;if(E){var M=E.call(this);if(M)return u.set.call(this,M),"function"==typeof S.removeAttribute&&S.removeAttribute(o),M}return null},G(i,o,u),i[d]=!0}}}function wt(i,o,s){if(o)for(var u=0;u<o.length;u++)Rt(i,"on"+o[u],s);else{var f=[];for(var d in i)"on"==d.substr(0,2)&&f.push(d);for(var E=0;E<f.length;E++)Rt(i,f[E],s)}}var Ue=te("originalInstance");function dt(i){var o=_e[i];if(o){_e[te(i)]=o,_e[i]=function(){var f=nt(arguments,i);switch(f.length){case 0:this[Ue]=new o;break;case 1:this[Ue]=new o(f[0]);break;case 2:this[Ue]=new o(f[0],f[1]);break;case 3:this[Ue]=new o(f[0],f[1],f[2]);break;case 4:this[Ue]=new o(f[0],f[1],f[2],f[3]);break;default:throw new Error("Arg list too long.")}},ze(_e[i],o);var u,s=new o(function(){});for(u in s)"XMLHttpRequest"===i&&"responseBlob"===u||function(f){"function"==typeof s[f]?_e[i].prototype[f]=function(){return this[Ue][f].apply(this[Ue],arguments)}:G(_e[i].prototype,f,{set:function(E){"function"==typeof E?(this[Ue][f]=He(E,i+"."+f),ze(this[Ue][f],E)):this[Ue][f]=E},get:function(){return this[Ue][f]}})}(u);for(u in o)"prototype"!==u&&o.hasOwnProperty(u)&&(_e[i][u]=o[u])}}function Ve(i,o,s){for(var u=i;u&&!u.hasOwnProperty(o);)u=je(u);!u&&i[o]&&(u=i);var f=te(o),d=null;if(u&&(!(d=u[f])||!u.hasOwnProperty(f))&&(d=u[f]=u[o],Pt(u&&le(u,o)))){var b=s(d,f,o);u[o]=function(){return b(this,arguments)},ze(u[o],d)}return d}function Dt(i,o,s){var u=null;function f(d){var E=d.data;return E.args[E.cbIdx]=function(){d.invoke.apply(this,arguments)},u.apply(E.target,E.args),d}u=Ve(i,o,function(d){return function(E,b){var N=s(E,b);return N.cbIdx>=0&&"function"==typeof b[N.cbIdx]?yt(N.name,b[N.cbIdx],N,f):d.apply(E,b)}})}function ze(i,o){i[te("OriginalDelegate")]=o}var it=!1,Ct=!1;function Mt(){if(it)return Ct;it=!0;try{var i=Be.navigator.userAgent;(-1!==i.indexOf("MSIE ")||-1!==i.indexOf("Trident/")||-1!==i.indexOf("Edge/"))&&(Ct=!0)}catch(o){}return Ct}Zone.__load_patch("ZoneAwarePromise",function(i,o,s){var u=Object.getOwnPropertyDescriptor,f=Object.defineProperty,E=s.symbol,b=[],N=!0===i[E("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],D=E("Promise"),S=E("then");s.onUnhandledError=function(T){if(s.showUncaughtError()){var O=T&&T.rejection;O?console.error("Unhandled Promise rejection:",O instanceof Error?O.message:O,"; Zone:",T.zone.name,"; Task:",T.task&&T.task.source,"; Value:",O,O instanceof Error?O.stack:void 0):console.error(T)}},s.microtaskDrainDone=function(){for(var T=function(){var p=b.shift();try{p.zone.runGuarded(function(){throw p.throwOriginal?p.rejection:p})}catch(y){!function W(T){s.onUnhandledError(T);try{var O=o[M];"function"==typeof O&&O.call(this,T)}catch(p){}}(y)}};b.length;)T()};var M=E("unhandledPromiseRejectionHandler");function Q(T){return T&&T.then}function K(T){return T}function ke(T){return c.reject(T)}var ue=E("state"),ce=E("value"),fe=E("finally"),g=E("parentPromiseValue"),ie=E("parentPromiseState"),ae=null,R=!1;function j(T,O){return function(p){try{se(T,O,p)}catch(y){se(T,!1,y)}}}var L=E("currentTaskTrace");function se(T,O,p){var y=function(){var O=!1;return function(y){return function(){O||(O=!0,y.apply(null,arguments))}}}();if(T===p)throw new TypeError("Promise resolved with itself");if(T[ue]===ae){var l=null;try{("object"==typeof p||"function"==typeof p)&&(l=p&&p.then)}catch(J){return y(function(){se(T,!1,J)})(),T}if(O!==R&&p instanceof c&&p.hasOwnProperty(ue)&&p.hasOwnProperty(ce)&&p[ue]!==ae)Ae(p),se(T,p[ue],p[ce]);else if(O!==R&&"function"==typeof l)try{l.call(p,y(j(T,O)),y(j(T,!1)))}catch(J){y(function(){se(T,!1,J)})()}else{T[ue]=O;var P=T[ce];if(T[ce]=p,T[fe]===fe&&!0===O&&(T[ue]=T[ie],T[ce]=T[g]),O===R&&p instanceof Error){var I=o.currentTask&&o.currentTask.data&&o.currentTask.data.__creationTrace__;I&&f(p,L,{configurable:!0,enumerable:!1,writable:!0,value:I})}for(var C=0;C<P.length;)Se(T,P[C++],P[C++],P[C++],P[C++]);if(0==P.length&&O==R){T[ue]=0;var w=p;try{throw new Error("Uncaught (in promise): "+function d(T){return T&&T.toString===Object.prototype.toString?(T.constructor&&T.constructor.name||"")+": "+JSON.stringify(T):T?T.toString():Object.prototype.toString.call(T)}(p)+(p&&p.stack?"\n"+p.stack:""))}catch(J){w=J}N&&(w.throwOriginal=!0),w.rejection=p,w.promise=T,w.zone=o.current,w.task=o.currentTask,b.push(w),s.scheduleMicroTask()}}}return T}var ne=E("rejectionHandledHandler");function Ae(T){if(0===T[ue]){try{var O=o[ne];O&&"function"==typeof O&&O.call(this,{rejection:T[ce],promise:T})}catch(y){}T[ue]=R;for(var p=0;p<b.length;p++)T===b[p].promise&&b.splice(p,1)}}function Se(T,O,p,y,l){Ae(T);var P=T[ue],I=P?"function"==typeof y?y:K:"function"==typeof l?l:ke;O.scheduleMicroTask("Promise.then",function(){try{var C=T[ce],w=!!p&&fe===p[fe];w&&(p[g]=C,p[ie]=P);var J=O.run(I,void 0,w&&I!==ke&&I!==K?[]:[C]);se(p,!0,J)}catch(V){se(p,!1,V)}},p)}var k=function(){},m=i.AggregateError,c=function(T,O){function p(y){z(this,p);var l=this;if(!(l instanceof p))throw new Error("Must be an instanceof Promise.");l[ue]=ae,l[ce]=[];try{y&&y(j(l,!0),j(l,R))}catch(P){se(l,!1,P)}}return Y(p,[{key:T,get:function(){return"Promise"}},{key:O,get:function(){return p}},{key:"then",value:function(l,P){var I=this.constructor[Symbol.species];(!I||"function"!=typeof I)&&(I=this.constructor||p);var C=new I(k),w=o.current;return this[ue]==ae?this[ce].push(w,C,l,P):Se(this,w,C,l,P),C}},{key:"catch",value:function(l){return this.then(null,l)}},{key:"finally",value:function(l){var P=this.constructor[Symbol.species];(!P||"function"!=typeof P)&&(P=p);var I=new P(k);I[fe]=fe;var C=o.current;return this[ue]==ae?this[ce].push(C,I,l,l):Se(this,C,I,l,l),I}}],[{key:"toString",value:function(){return"function ZoneAwarePromise() { [native code] }"}},{key:"resolve",value:function(l){return se(new this(null),!0,l)}},{key:"reject",value:function(l){return se(new this(null),R,l)}},{key:"any",value:function(l){if(!l||"function"!=typeof l[Symbol.iterator])return Promise.reject(new m([],"All promises were rejected"));var P=[],I=0;try{var w,C=re(l);try{for(C.s();!(w=C.n()).done;)I++,P.push(p.resolve(w.value))}catch(U){C.e(U)}finally{C.f()}}catch(U){return Promise.reject(new m([],"All promises were rejected"))}if(0===I)return Promise.reject(new m([],"All promises were rejected"));var V=!1,B=[];return new p(function(U,oe){for(var Ie=0;Ie<P.length;Ie++)P[Ie].then(function(de){V||(V=!0,U(de))},function(de){B.push(de),0==--I&&(V=!0,oe(new m(B,"All promises were rejected")))})})}},{key:"race",value:function(l){var P,I,C=new this(function(oe,Ie){P=oe,I=Ie});function w(oe){P(oe)}function J(oe){I(oe)}var B,V=re(l);try{for(V.s();!(B=V.n()).done;){var U=B.value;Q(U)||(U=this.resolve(U)),U.then(w,J)}}catch(oe){V.e(oe)}finally{V.f()}return C}},{key:"all",value:function(l){return p.allWithCallback(l)}},{key:"allSettled",value:function(l){return(this&&this.prototype instanceof p?this:p).allWithCallback(l,{thenCallback:function(C){return{status:"fulfilled",value:C}},errorCallback:function(C){return{status:"rejected",reason:C}}})}},{key:"allWithCallback",value:function(l,P){var C,w,Ie,I=this,J=new this(function(Re,Pe){C=Re,w=Pe}),V=2,B=0,U=[],oe=re(l);try{var de=function(){var Pe=Ie.value;Q(Pe)||(Pe=I.resolve(Pe));var Ye=B;try{Pe.then(function(ge){U[Ye]=P?P.thenCallback(ge):ge,0==--V&&C(U)},function(ge){P?(U[Ye]=P.errorCallback(ge),0==--V&&C(U)):w(ge)})}catch(ge){w(ge)}V++,B++};for(oe.s();!(Ie=oe.n()).done;)de()}catch(Re){oe.e(Re)}finally{oe.f()}return 0==(V-=2)&&C(U),J}}]),p}(Symbol.toStringTag,Symbol.species);c.resolve=c.resolve,c.reject=c.reject,c.race=c.race,c.all=c.all;var n=i[D]=i.Promise;i.Promise=c;var v=E("thenPatched");function H(T){var O=T.prototype,p=u(O,"then");if(!p||!1!==p.writable&&p.configurable){var y=O.then;O[S]=y,T.prototype.then=function(l,P){var I=this;return new c(function(w,J){y.call(I,w,J)}).then(l,P)},T[v]=!0}}return s.patchThen=H,n&&(H(n),Ve(i,"fetch",function(T){return function F(T){return function(O,p){var y=T.apply(O,p);if(y instanceof c)return y;var l=y.constructor;return l[v]||H(l),y}}(T)})),Promise[o.__symbol__("uncaughtPromiseErrors")]=b,c}),Zone.__load_patch("toString",function(i){var o=Function.prototype.toString,s=te("OriginalDelegate"),u=te("Promise"),f=te("Error"),d=function(){if("function"==typeof this){var D=this[s];if(D)return"function"==typeof D?o.call(D):Object.prototype.toString.call(D);if(this===Promise){var S=i[u];if(S)return o.call(S)}if(this===Error){var A=i[f];if(A)return o.call(A)}}return o.call(this)};d[s]=o,Function.prototype.toString=d;var E=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":E.call(this)}});var at=!1;if("undefined"!=typeof window)try{var ye=Object.defineProperty({},"passive",{get:function(){at=!0}});window.addEventListener("test",ye,ye),window.removeEventListener("test",ye,ye)}catch(i){at=!1}var Ke={useG:!0},q={},Oe={},Tt=new RegExp("^"+rt+"(\\w+)(true|false)$"),ot=te("propagationStopped");function st(i,o){var s=(o?o(i):i)+me,u=(o?o(i):i)+Ne,f=rt+s,d=rt+u;q[i]={},q[i][me]=f,q[i][Ne]=d}function _t(i,o,s,u){var f=u&&u.add||Fe,d=u&&u.rm||Me,E=u&&u.listeners||"eventListeners",b=u&&u.rmAll||"removeAllListeners",N=te(f),D="."+f+":",M=function(g,ie,he){if(!g.isRemoved){var ee,ae=g.callback;"object"==typeof ae&&ae.handleEvent&&(g.callback=function(j){return ae.handleEvent(j)},g.originalDelegate=ae);try{g.invoke(g,ie,[he])}catch(j){ee=j}var R=g.options;return R&&"object"==typeof R&&R.once&&ie[d].call(ie,he.type,g.originalDelegate?g.originalDelegate:g.callback,R),ee}};function W(fe,g,ie){if(g=g||i.event){var he=fe||g.target||i,ae=he[q[g.type][ie?Ne:me]];if(ae){var ee=[];if(1===ae.length){var R=M(ae[0],he,g);R&&ee.push(R)}else for(var ve=ae.slice(),j=0;j<ve.length&&(!g||!0!==g[ot]);j++){var Z=M(ve[j],he,g);Z&&ee.push(Z)}if(1===ee.length)throw ee[0];for(var X=function(ne){var Ae=ee[ne];o.nativeScheduleMicroTask(function(){throw Ae})},L=0;L<ee.length;L++)X(L)}}}var Q=function(g){return W(this,g,!1)},K=function(g){return W(this,g,!0)};function ke(fe,g){if(!fe)return!1;var ie=!0;g&&void 0!==g.useG&&(ie=g.useG);var he=g&&g.vh,ae=!0;g&&void 0!==g.chkDup&&(ae=g.chkDup);var ee=!1;g&&void 0!==g.rt&&(ee=g.rt);for(var R=fe;R&&!R.hasOwnProperty(f);)R=je(R);if(!R&&fe[f]&&(R=fe),!R||R[N])return!1;var ne,ve=g&&g.eventNameToString,j={},Z=R[N]=R[f],X=R[te(d)]=R[d],L=R[te(E)]=R[E],se=R[te(b)]=R[b];function Ae(y,l){return!at&&"object"==typeof y&&y?!!y.capture:at&&l?"boolean"==typeof y?{capture:y,passive:!0}:y?"object"==typeof y&&!1!==y.passive?Object.assign(Object.assign({},y),{passive:!0}):y:{passive:!0}:y}g&&g.prepend&&(ne=R[te(g.prepend)]=R[g.prepend]);var n=ie?function(l){if(!j.isExisting)return Z.call(j.target,j.eventName,j.capture?K:Q,j.options)}:function(l){return Z.call(j.target,j.eventName,l.invoke,j.options)},v=ie?function(l){if(!l.isRemoved){var I,P=q[l.eventName];P&&(I=P[l.capture?Ne:me]);var C=I&&l.target[I];if(C)for(var w=0;w<C.length;w++)if(C[w]===l){C.splice(w,1),l.isRemoved=!0,0===C.length&&(l.allRemoved=!0,l.target[I]=null);break}}if(l.allRemoved)return X.call(l.target,l.eventName,l.capture?K:Q,l.options)}:function(l){return X.call(l.target,l.eventName,l.invoke,l.options)},F=g&&g.diff?g.diff:function(l,P){var I=typeof P;return"function"===I&&l.callback===P||"object"===I&&l.originalDelegate===P},T=Zone[te("UNPATCHED_EVENTS")],O=i[te("PASSIVE_EVENTS")],p=function(l,P,I,C){var w=arguments.length>4&&void 0!==arguments[4]&&arguments[4],J=arguments.length>5&&void 0!==arguments[5]&&arguments[5];return function(){var V=this||i,B=arguments[0];g&&g.transferEventName&&(B=g.transferEventName(B));var U=arguments[1];if(!U)return l.apply(this,arguments);if(Qe&&"uncaughtException"===B)return l.apply(this,arguments);var oe=!1;if("function"!=typeof U){if(!U.handleEvent)return l.apply(this,arguments);oe=!0}if(!he||he(l,U,V,arguments)){var Ie=at&&!!O&&-1!==O.indexOf(B),de=Ae(arguments[2],Ie);if(T)for(var Re=0;Re<T.length;Re++)if(B===T[Re])return Ie?l.call(V,B,U,de):l.apply(this,arguments);var Pe=!!de&&("boolean"==typeof de||de.capture),Ye=!(!de||"object"!=typeof de)&&de.once,ge=Zone.current,tt=q[B];tt||(st(B,ve),tt=q[B]);var $e=tt[Pe?Ne:me],We=V[$e],St=!1;if(We){if(St=!0,ae)for(var Nt=0;Nt<We.length;Nt++)if(F(We[Nt],U))return}else We=V[$e]=[];var kt,r=V.constructor.name,e=Oe[r];e&&(kt=e[B]),kt||(kt=r+P+(ve?ve(B):B)),j.options=de,Ye&&(j.options.once=!1),j.target=V,j.capture=Pe,j.eventName=B,j.isExisting=St;var t=ie?Ke:void 0;t&&(t.taskData=j);var a=ge.scheduleEventTask(kt,U,t,I,C);if(j.target=null,t&&(t.taskData=null),Ye&&(de.once=!0),!at&&"boolean"==typeof a.options||(a.options=de),a.target=V,a.capture=Pe,a.eventName=B,oe&&(a.originalDelegate=U),J?We.unshift(a):We.push(a),w)return V}}};return R[f]=p(Z,D,n,v,ee),ne&&(R.prependListener=p(ne,".prependListener:",function(l){return ne.call(j.target,j.eventName,l.invoke,j.options)},v,ee,!0)),R[d]=function(){var y=this||i,l=arguments[0];g&&g.transferEventName&&(l=g.transferEventName(l));var P=arguments[2],I=!!P&&("boolean"==typeof P||P.capture),C=arguments[1];if(!C)return X.apply(this,arguments);if(!he||he(X,C,y,arguments)){var J,w=q[l];w&&(J=w[I?Ne:me]);var V=J&&y[J];if(V)for(var B=0;B<V.length;B++){var U=V[B];if(F(U,C)){if(V.splice(B,1),U.isRemoved=!0,0===V.length&&(U.allRemoved=!0,y[J]=null,"string"==typeof l)){var oe=rt+"ON_PROPERTY"+l;y[oe]=null}return U.zone.cancelTask(U),ee?y:void 0}}return X.apply(this,arguments)}},R[E]=function(){var y=this||i,l=arguments[0];g&&g.transferEventName&&(l=g.transferEventName(l));for(var P=[],I=ut(y,ve?ve(l):l),C=0;C<I.length;C++){var w=I[C],J=w.originalDelegate?w.originalDelegate:w.callback;P.push(J)}return P},R[b]=function(){var y=this||i,l=arguments[0];if(l){g&&g.transferEventName&&(l=g.transferEventName(l));var V=q[l];if(V){var B=V[me],U=V[Ne],oe=y[B],Ie=y[U];if(oe)for(var de=oe.slice(),Re=0;Re<de.length;Re++){var Pe=de[Re],Ye=Pe.originalDelegate?Pe.originalDelegate:Pe.callback;this[d].call(this,l,Ye,Pe.options)}if(Ie)for(var ge=Ie.slice(),tt=0;tt<ge.length;tt++){var $e=ge[tt],We=$e.originalDelegate?$e.originalDelegate:$e.callback;this[d].call(this,l,We,$e.options)}}}else{for(var P=Object.keys(y),I=0;I<P.length;I++){var C=P[I],w=Tt.exec(C),J=w&&w[1];J&&"removeListener"!==J&&this[b].call(this,J)}this[b].call(this,"removeListener")}if(ee)return this},ze(R[f],Z),ze(R[d],X),se&&ze(R[b],se),L&&ze(R[E],L),!0}for(var ue=[],ce=0;ce<s.length;ce++)ue[ce]=ke(s[ce],u);return ue}function ut(i,o){if(!o){var s=[];for(var u in i){var f=Tt.exec(u),d=f&&f[1];if(d&&(!o||d===o)){var E=i[u];if(E)for(var b=0;b<E.length;b++)s.push(E[b])}}return s}var N=q[o];N||(st(o),N=q[o]);var D=i[N[me]],S=i[N[Ne]];return D?S?D.concat(S):D.slice():S?S.slice():[]}function Ge(i,o){var s=i.Event;s&&s.prototype&&o.patchMethod(s.prototype,"stopImmediatePropagation",function(u){return function(f,d){f[ot]=!0,u&&u.apply(f,d)}})}function et(i,o,s,u,f){var d=Zone.__symbol__(u);if(!o[d]){var E=o[d]=o[u];o[u]=function(b,N,D){return N&&N.prototype&&f.forEach(function(S){var A="".concat(s,".").concat(u,"::")+S,M=N.prototype;if(M.hasOwnProperty(S)){var W=i.ObjectGetOwnPropertyDescriptor(M,S);W&&W.value?(W.value=i.wrapWithCurrentZone(W.value,A),i._redefineProperty(N.prototype,S,W)):M[S]&&(M[S]=i.wrapWithCurrentZone(M[S],A))}else M[S]&&(M[S]=i.wrapWithCurrentZone(M[S],A))}),E.call(o,b,N,D)},i.attachOriginToPatched(o[u],E)}}function It(i,o,s){if(!s||0===s.length)return o;var u=s.filter(function(d){return d.target===i});if(!u||0===u.length)return o;var f=u[0].ignoreProperties;return o.filter(function(d){return-1===f.indexOf(d)})}function Ot(i,o,s,u){i&&wt(i,It(i,o,s),u)}function ct(i){return Object.getOwnPropertyNames(i).filter(function(o){return o.startsWith("on")&&o.length>2}).map(function(o){return o.substring(2)})}Zone.__load_patch("util",function(i,o,s){var u=ct(i);s.patchOnProperties=wt,s.patchMethod=Ve,s.bindArguments=nt,s.patchMacroTask=Dt;var f=o.__symbol__("BLACK_LISTED_EVENTS"),d=o.__symbol__("UNPATCHED_EVENTS");i[d]&&(i[f]=i[d]),i[f]&&(o[f]=o[d]=i[f]),s.patchEventPrototype=Ge,s.patchEventTarget=_t,s.isIEOrEdge=Mt,s.ObjectDefineProperty=G,s.ObjectGetOwnPropertyDescriptor=le,s.ObjectCreate=pt,s.ArraySlice=Et,s.patchClass=dt,s.wrapWithCurrentZone=He,s.filterProperties=It,s.attachOriginToPatched=ze,s._redefineProperty=Object.defineProperty,s.patchCallbacks=et,s.getGlobalObjects=function(){return{globalSources:Oe,zoneSymbolEventNames:q,eventNames:u,isBrowser:Je,isMix:ft,isNode:Qe,TRUE_STR:Ne,FALSE_STR:me,ZONE_SYMBOL_PREFIX:rt,ADD_EVENT_LISTENER_STR:Fe,REMOVE_EVENT_LISTENER_STR:Me}}});var mt=te("zoneTask");function lt(i,o,s,u){var f=null,d=null;s+=u;var E={};function b(D){var S=D.data;return S.args[0]=function(){return D.invoke.apply(this,arguments)},S.handleId=f.apply(i,S.args),D}function N(D){return d.call(i,D.data.handleId)}f=Ve(i,o+=u,function(D){return function(S,A){if("function"==typeof A[0]){var M={isPeriodic:"Interval"===u,delay:"Timeout"===u||"Interval"===u?A[1]||0:void 0,args:A},W=A[0];A[0]=function(){try{return W.apply(this,arguments)}finally{M.isPeriodic||("number"==typeof M.handleId?delete E[M.handleId]:M.handleId&&(M.handleId[mt]=null))}};var Q=yt(o,A[0],M,b,N);if(!Q)return Q;var K=Q.data.handleId;return"number"==typeof K?E[K]=Q:K&&(K[mt]=Q),K&&K.ref&&K.unref&&"function"==typeof K.ref&&"function"==typeof K.unref&&(Q.ref=K.ref.bind(K),Q.unref=K.unref.bind(K)),"number"==typeof K||K?K:Q}return D.apply(i,A)}}),d=Ve(i,s,function(D){return function(S,A){var W,M=A[0];"number"==typeof M?W=E[M]:(W=M&&M[mt])||(W=M),W&&"string"==typeof W.type?"notScheduled"!==W.state&&(W.cancelFn&&W.data.isPeriodic||0===W.runCount)&&("number"==typeof M?delete E[M]:M&&(M[mt]=null),W.zone.cancelTask(W)):D.apply(i,A)}})}Zone.__load_patch("legacy",function(i){var o=i[Zone.__symbol__("legacyPatch")];o&&o()}),Zone.__load_patch("queueMicrotask",function(i,o,s){s.patchMethod(i,"queueMicrotask",function(u){return function(f,d){o.current.scheduleMicroTask("queueMicrotask",d[0])}})}),Zone.__load_patch("timers",function(i){var o="set",s="clear";lt(i,o,s,"Timeout"),lt(i,o,s,"Interval"),lt(i,o,s,"Immediate")}),Zone.__load_patch("requestAnimationFrame",function(i){lt(i,"request","cancel","AnimationFrame"),lt(i,"mozRequest","mozCancel","AnimationFrame"),lt(i,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",function(i,o){for(var s=["alert","prompt","confirm"],u=0;u<s.length;u++)Ve(i,s[u],function(d,E,b){return function(N,D){return o.current.run(d,i,D,b)}})}),Zone.__load_patch("EventTarget",function(i,o,s){(function Ht(i,o){o.patchEventPrototype(i,o)})(i,s),function Lt(i,o){if(!Zone[o.symbol("patchEventTarget")]){for(var s=o.getGlobalObjects(),u=s.eventNames,f=s.zoneSymbolEventNames,d=s.TRUE_STR,E=s.FALSE_STR,b=s.ZONE_SYMBOL_PREFIX,N=0;N<u.length;N++){var D=u[N],M=b+(D+E),W=b+(D+d);f[D]={},f[D][E]=M,f[D][d]=W}var Q=i.EventTarget;if(Q&&Q.prototype)o.patchEventTarget(i,o,[Q&&Q.prototype])}}(i,s);var u=i.XMLHttpRequestEventTarget;u&&u.prototype&&s.patchEventTarget(i,s,[u.prototype])}),Zone.__load_patch("MutationObserver",function(i,o,s){dt("MutationObserver"),dt("WebKitMutationObserver")}),Zone.__load_patch("IntersectionObserver",function(i,o,s){dt("IntersectionObserver")}),Zone.__load_patch("FileReader",function(i,o,s){dt("FileReader")}),Zone.__load_patch("on_property",function(i,o,s){!function xe(i,o){if((!Qe||ft)&&!Zone[i.symbol("patchEvents")]){var s=o.__Zone_ignore_on_properties,u=[];if(Je){var f=window;u=u.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);var d=function bt(){try{var i=Be.navigator.userAgent;if(-1!==i.indexOf("MSIE ")||-1!==i.indexOf("Trident/"))return!0}catch(o){}return!1}()?[{target:f,ignoreProperties:["error"]}]:[];Ot(f,ct(f),s&&s.concat(d),je(f))}u=u.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(var E=0;E<u.length;E++){var b=o[u[E]];b&&b.prototype&&Ot(b.prototype,ct(b.prototype),s)}}}(s,i)}),Zone.__load_patch("customElements",function(i,o,s){!function Zt(i,o){var s=o.getGlobalObjects();(s.isBrowser||s.isMix)&&i.customElements&&"customElements"in i&&o.patchCallbacks(o,i.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(i,s)}),Zone.__load_patch("XHR",function(i,o){!function N(D){var S=D.XMLHttpRequest;if(S){var A=S.prototype,W=A[Ze],Q=A[Le];if(!W){var K=D.XMLHttpRequestEventTarget;if(K){var ke=K.prototype;W=ke[Ze],Q=ke[Le]}}var ue="readystatechange",ce="scheduled",he=Ve(A,"open",function(){return function(Z,X){return Z[u]=0==X[2],Z[E]=X[1],he.apply(Z,X)}}),ee=te("fetchTaskAborting"),R=te("fetchTaskScheduling"),ve=Ve(A,"send",function(){return function(Z,X){if(!0===o.current[R]||Z[u])return ve.apply(Z,X);var L={target:Z,url:Z[E],isPeriodic:!1,args:X,aborted:!1},se=yt("XMLHttpRequest.send",g,L,fe,ie);Z&&!0===Z[b]&&!L.aborted&&se.state===ce&&se.invoke()}}),j=Ve(A,"abort",function(){return function(Z,X){var L=function M(Z){return Z[s]}(Z);if(L&&"string"==typeof L.type){if(null==L.cancelFn||L.data&&L.data.aborted)return;L.zone.cancelTask(L)}else if(!0===o.current[ee])return j.apply(Z,X)}})}function fe(Z){var X=Z.data,L=X.target;L[d]=!1,L[b]=!1;var se=L[f];W||(W=L[Ze],Q=L[Le]),se&&Q.call(L,ue,se);var ne=L[f]=function(){if(L.readyState===L.DONE)if(!X.aborted&&L[d]&&Z.state===ce){var Se=L[o.__symbol__("loadfalse")];if(0!==L.status&&Se&&Se.length>0){var pe=Z.invoke;Z.invoke=function(){for(var k=L[o.__symbol__("loadfalse")],m=0;m<k.length;m++)k[m]===Z&&k.splice(m,1);!X.aborted&&Z.state===ce&&pe.call(Z)},Se.push(Z)}else Z.invoke()}else!X.aborted&&!1===L[d]&&(L[b]=!0)};return W.call(L,ue,ne),L[s]||(L[s]=Z),ve.apply(L,X.args),L[d]=!0,Z}function g(){}function ie(Z){var X=Z.data;return X.aborted=!0,j.apply(X.target,X.args)}}(i);var s=te("xhrTask"),u=te("xhrSync"),f=te("xhrListener"),d=te("xhrScheduled"),E=te("xhrURL"),b=te("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",function(i){i.navigator&&i.navigator.geolocation&&function gt(i,o){for(var s=i.constructor.name,u=function(b){var A,M,N=o[b],D=i[N];if(D){if(!Pt(le(i,N)))return"continue";i[N]=(M=function(){return A.apply(this,nt(arguments,s+"."+N))},ze(M,A=D),M)}},f=0;f<o.length;f++)u(f)}(i.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",function(i,o){function s(u){return function(f){ut(i,u).forEach(function(E){var b=i.PromiseRejectionEvent;if(b){var N=new b(u,{promise:f.promise,reason:f.rejection});E.invoke(N)}})}}i.PromiseRejectionEvent&&(o[te("unhandledPromiseRejectionHandler")]=s("unhandledrejection"),o[te("rejectionHandledHandler")]=s("rejectionhandled"))})},7228:function($){$.exports=function we(Ee,re){(null==re||re>Ee.length)&&(re=Ee.length);for(var z=0,Y=new Array(re);z<re;z++)Y[z]=Ee[z];return Y},$.exports.__esModule=!0,$.exports.default=$.exports},4575:function($){$.exports=function we(Ee,re){if(!(Ee instanceof re))throw new TypeError("Cannot call a class as a function")},$.exports.__esModule=!0,$.exports.default=$.exports},3913:function($){function we(re,z){for(var Y=0;Y<z.length;Y++){var le=z[Y];le.enumerable=le.enumerable||!1,le.configurable=!0,"value"in le&&(le.writable=!0),Object.defineProperty(re,le.key,le)}}$.exports=function Ee(re,z,Y){return z&&we(re.prototype,z),Y&&we(re,Y),Object.defineProperty(re,"prototype",{writable:!1}),re},$.exports.__esModule=!0,$.exports.default=$.exports},580:function($,we,Ee){var re=Ee(379);$.exports=function z(Y,le){var G="undefined"!=typeof Symbol&&Y[Symbol.iterator]||Y["@@iterator"];if(!G){if(Array.isArray(Y)||(G=re(Y))||le&&Y&&"number"==typeof Y.length){G&&(Y=G);var je=0,pt=function(){};return{s:pt,n:function(){return je>=Y.length?{done:!0}:{done:!1,value:Y[je++]}},e:function(Le){throw Le},f:pt}}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 Me,Et=!0,Fe=!1;return{s:function(){G=G.call(Y)},n:function(){var Le=G.next();return Et=Le.done,Le},e:function(Le){Fe=!0,Me=Le},f:function(){try{!Et&&null!=G.return&&G.return()}finally{if(Fe)throw Me}}}},$.exports.__esModule=!0,$.exports.default=$.exports},379:function($,we,Ee){var re=Ee(7228);$.exports=function z(Y,le){if(Y){if("string"==typeof Y)return re(Y,le);var G=Object.prototype.toString.call(Y).slice(8,-1);if("Object"===G&&Y.constructor&&(G=Y.constructor.name),"Map"===G||"Set"===G)return Array.from(Y);if("Arguments"===G||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(G))return re(Y,le)}},$.exports.__esModule=!0,$.exports.default=$.exports}},function($){$($.s=203)}]); 

Javascript Online Compiler

Write, Run & Share Javascript code online using OneCompiler's JS online compiler for free. It's one of the robust, feature-rich online compilers for Javascript language. Getting started with the OneCompiler's Javascript editor is easy and fast. The editor shows sample boilerplate code when you choose language as Javascript and start coding.

About Javascript

Javascript(JS) is a object-oriented programming language which adhere to ECMA Script Standards. Javascript is required to design the behaviour of the web pages.

Key Features

  • Open-source
  • Just-in-time compiled language
  • Embedded along with HTML and makes web pages alive
  • Originally named as LiveScript.
  • Executable in both browser and server which has Javascript engines like V8(chrome), SpiderMonkey(Firefox) etc.

Syntax help

STDIN Example

var readline = require('readline');
var rl = readline.createInterface({
  input: process.stdin,
  output: process.stdout,
  terminal: false
});

rl.on('line', function(line){
    console.log("Hello, " + line);
});

variable declaration

KeywordDescriptionScope
varVar is used to declare variables(old way of declaring variables)Function or global scope
letlet is also used to declare variables(new way)Global or block Scope
constconst is used to declare const values. Once the value is assigned, it can not be modifiedGlobal or block Scope

Backtick Strings

Interpolation

let greetings = `Hello ${name}`

Multi line Strings

const msg = `
hello
world!
`

Arrays

An array is a collection of items or values.

Syntax:

let arrayName = [value1, value2,..etc];
// or
let arrayName = new Array("value1","value2",..etc);

Example:

let mobiles = ["iPhone", "Samsung", "Pixel"];

// accessing an array
console.log(mobiles[0]);

// changing an array element
mobiles[3] = "Nokia";

Arrow functions

Arrow Functions helps developers to write code in concise way, it’s introduced in ES6.
Arrow functions can be written in multiple ways. Below are couple of ways to use arrow function but it can be written in many other ways as well.

Syntax:

() => expression

Example:

const numbers = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
const squaresOfEvenNumbers = numbers.filter(ele => ele % 2 == 0)
                                    .map(ele => ele ** 2);
console.log(squaresOfEvenNumbers);

De-structuring

Arrays

let [firstName, lastName] = ['Foo', 'Bar']

Objects

let {firstName, lastName} = {
  firstName: 'Foo',
  lastName: 'Bar'
}

rest(...) operator

 const {
    title,
    firstName,
    lastName,
    ...rest
  } = record;

Spread(...) operator

//Object spread
const post = {
  ...options,
  type: "new"
}
//array spread
const users = [
  ...adminUsers,
  ...normalUsers
]

Functions

function greetings({ name = 'Foo' } = {}) { //Defaulting name to Foo
  console.log(`Hello ${name}!`);
}
 
greet() // Hello Foo
greet({ name: 'Bar' }) // Hi Bar

Loops

1. If:

IF is used to execute a block of code based on a condition.

Syntax

if(condition){
    // code
}

2. If-Else:

Else part is used to execute the block of code when the condition fails.

Syntax

if(condition){
    // code
} else {
    // code
}

3. Switch:

Switch is used to replace nested If-Else statements.

Syntax

switch(condition){
    case 'value1' :
        //code
        [break;]
    case 'value2' :
        //code
        [break;]
    .......
    default :
        //code
        [break;]
}

4. For

For loop is used to iterate a set of statements based on a condition.

for(Initialization; Condition; Increment/decrement){  
//code  
} 

5. While

While is also used to iterate a set of statements based on a condition. Usually while is preferred when number of iterations are not known in advance.

while (condition) {  
  // code 
}  

6. Do-While

Do-while is also used to iterate a set of statements based on a condition. It is mostly used when you need to execute the statements atleast once.

do {  
  // code 
} while (condition); 

Classes

ES6 introduced classes along with OOPS concepts in JS. Class is similar to a function which you can think like kind of template which will get called when ever you initialize class.

Syntax:

class className {
  constructor() { ... } //Mandatory Class method
  method1() { ... }
  method2() { ... }
  ...
}

Example:

class Mobile {
  constructor(model) {
    this.name = model;
  }
}

mbl = new Mobile("iPhone");