UNPKG

angular-material-datatransfer

Version:

A HTML5 datatransfer UI for handling upload and download of multiple simultaneous files.

2 lines 1.05 MB
/*! angular-material-datatransfer-app - 4.0.3 */ !function(e){function r(r){for(var n,l,f=r[0],i=r[1],p=r[2],c=0,s=[];c<f.length;c++)l=f[c],Object.prototype.hasOwnProperty.call(o,l)&&o[l]&&s.push(o[l][0]),o[l]=0;for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n]);for(a&&a(r);s.length;)s.shift()();return u.push.apply(u,p||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,f=1;f<t.length;f++)0!==o[t[f]]&&(n=!1);n&&(u.splice(r--,1),e=l(l.s=t[0]))}return e}var n={},o={0:0},u=[];function l(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,l),t.l=!0,t.exports}l.m=e,l.c=n,l.d=function(e,r,t){l.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},l.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(e,r){if(1&r&&(e=l(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(l.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)l.d(t,n,(function(r){return e[r]}).bind(null,n));return t},l.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(r,"a",r),r},l.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},l.p="";var f=window.webpackJsonp=window.webpackJsonp||[],i=f.push.bind(f);f.push=r,f=f.slice();for(var p=0;p<f.length;p++)r(f[p]);var a=i;t()}([]);(window.webpackJsonp=window.webpackJsonp||[]).push([[4],{2:function(t,e,n){t.exports=n("hN/g")},"9HG0":function(t,e,n){var o;!function(r,i,s,a){"use strict";var c,l=["","webkit","Moz","MS","ms","o"],u=i.createElement("div"),h="function",p=Math.round,f=Math.abs,d=Date.now;function g(t,e,n){return setTimeout(b(t,n),e)}function m(t,e,n){return!!Array.isArray(t)&&(v(t,n[e],n),!0)}function v(t,e,n){var o;if(t)if(t.forEach)t.forEach(e,n);else if(t.length!==a)for(o=0;o<t.length;)e.call(n,t[o],o,t),o++;else for(o in t)t.hasOwnProperty(o)&&e.call(n,t[o],o,t)}function y(t,e,n){var o="DEPRECATED METHOD: "+e+"\n"+n+" AT \n";return function(){var e=new Error("get-stack-trace"),n=e&&e.stack?e.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",i=r.console&&(r.console.warn||r.console.log);return i&&i.call(r.console,o,n),t.apply(this,arguments)}}c="function"!=typeof Object.assign?function(t){if(t===a||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n<arguments.length;n++){var o=arguments[n];if(o!==a&&null!==o)for(var r in o)o.hasOwnProperty(r)&&(e[r]=o[r])}return e}:Object.assign;var _=y((function(t,e,n){for(var o=Object.keys(e),r=0;r<o.length;)(!n||n&&t[o[r]]===a)&&(t[o[r]]=e[o[r]]),r++;return t}),"extend","Use `assign`."),T=y((function(t,e){return _(t,e,!0)}),"merge","Use `assign`.");function k(t,e,n){var o,r=e.prototype;(o=t.prototype=Object.create(r)).constructor=t,o._super=r,n&&c(o,n)}function b(t,e){return function(){return t.apply(e,arguments)}}function E(t,e){return typeof t==h?t.apply(e&&e[0]||a,e):t}function w(t,e){return t===a?e:t}function S(t,e,n){v(C(e),(function(e){t.addEventListener(e,n,!1)}))}function D(t,e,n){v(C(e),(function(e){t.removeEventListener(e,n,!1)}))}function P(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function Z(t,e){return t.indexOf(e)>-1}function C(t){return t.trim().split(/\s+/g)}function O(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var o=0;o<t.length;){if(n&&t[o][n]==e||!n&&t[o]===e)return o;o++}return-1}function z(t){return Array.prototype.slice.call(t,0)}function I(t,e,n){for(var o=[],r=[],i=0;i<t.length;){var s=e?t[i][e]:t[i];O(r,s)<0&&o.push(t[i]),r[i]=s,i++}return n&&(o=e?o.sort((function(t,n){return t[e]>n[e]})):o.sort()),o}function x(t,e){for(var n,o,r=e[0].toUpperCase()+e.slice(1),i=0;i<l.length;){if((o=(n=l[i])?n+r:e)in t)return o;i++}return a}var R=1;function A(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||r}var j="ontouchstart"in r,M=x(r,"PointerEvent")!==a,N=j&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),L=25,F=1,H=2,X=4,q=8,W=1,Y=2,G=4,U=8,V=16,B=Y|G,$=U|V,J=B|$,K=["x","y"],Q=["clientX","clientY"];function tt(t,e){var n=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){E(t.options.enable,[t])&&n.handler(e)},this.init()}function et(t,e,n){var o=n.pointers.length,r=n.changedPointers.length,i=e&F&&o-r==0,s=e&(X|q)&&o-r==0;n.isFirst=!!i,n.isFinal=!!s,i&&(t.session={}),n.eventType=e,function(t,e){var n=t.session,o=e.pointers,r=o.length;n.firstInput||(n.firstInput=nt(e)),r>1&&!n.firstMultiple?n.firstMultiple=nt(e):1===r&&(n.firstMultiple=!1);var i=n.firstInput,s=n.firstMultiple,c=s?s.center:i.center,l=e.center=ot(o);e.timeStamp=d(),e.deltaTime=e.timeStamp-i.timeStamp,e.angle=at(c,l),e.distance=st(c,l),function(t,e){var n=e.center,o=t.offsetDelta||{},r=t.prevDelta||{},i=t.prevInput||{};e.eventType!==F&&i.eventType!==X||(r=t.prevDelta={x:i.deltaX||0,y:i.deltaY||0},o=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=r.x+(n.x-o.x),e.deltaY=r.y+(n.y-o.y)}(n,e),e.offsetDirection=it(e.deltaX,e.deltaY);var u,h,p=rt(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=p.x,e.overallVelocityY=p.y,e.overallVelocity=f(p.x)>f(p.y)?p.x:p.y,e.scale=s?(u=s.pointers,st((h=o)[0],h[1],Q)/st(u[0],u[1],Q)):1,e.rotation=s?function(t,e){return at(e[1],e[0],Q)+at(t[1],t[0],Q)}(s.pointers,o):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,function(t,e){var n,o,r,i,s=t.lastInterval||e,c=e.timeStamp-s.timeStamp;if(e.eventType!=q&&(c>L||s.velocity===a)){var l=e.deltaX-s.deltaX,u=e.deltaY-s.deltaY,h=rt(c,l,u);o=h.x,r=h.y,n=f(h.x)>f(h.y)?h.x:h.y,i=it(l,u),t.lastInterval=e}else n=s.velocity,o=s.velocityX,r=s.velocityY,i=s.direction;e.velocity=n,e.velocityX=o,e.velocityY=r,e.direction=i}(n,e);var g=t.element;P(e.srcEvent.target,g)&&(g=e.srcEvent.target),e.target=g}(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function nt(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:p(t.pointers[n].clientX),clientY:p(t.pointers[n].clientY)},n++;return{timeStamp:d(),pointers:e,center:ot(e),deltaX:t.deltaX,deltaY:t.deltaY}}function ot(t){var e=t.length;if(1===e)return{x:p(t[0].clientX),y:p(t[0].clientY)};for(var n=0,o=0,r=0;r<e;)n+=t[r].clientX,o+=t[r].clientY,r++;return{x:p(n/e),y:p(o/e)}}function rt(t,e,n){return{x:e/t||0,y:n/t||0}}function it(t,e){return t===e?W:f(t)>=f(e)?t<0?Y:G:e<0?U:V}function st(t,e,n){n||(n=K);var o=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return Math.sqrt(o*o+r*r)}function at(t,e,n){return n||(n=K),180*Math.atan2(e[n[1]]-t[n[1]],e[n[0]]-t[n[0]])/Math.PI}tt.prototype={handler:function(){},init:function(){this.evEl&&S(this.element,this.evEl,this.domHandler),this.evTarget&&S(this.target,this.evTarget,this.domHandler),this.evWin&&S(A(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&D(this.element,this.evEl,this.domHandler),this.evTarget&&D(this.target,this.evTarget,this.domHandler),this.evWin&&D(A(this.element),this.evWin,this.domHandler)}};var ct={mousedown:F,mousemove:H,mouseup:X},lt="mousedown",ut="mousemove mouseup";function ht(){this.evEl=lt,this.evWin=ut,this.pressed=!1,tt.apply(this,arguments)}k(ht,tt,{handler:function(t){var e=ct[t.type];e&F&&0===t.button&&(this.pressed=!0),e&H&&1!==t.which&&(e=X),this.pressed&&(e&X&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:"mouse",srcEvent:t}))}});var pt={pointerdown:F,pointermove:H,pointerup:X,pointercancel:q,pointerout:q},ft={2:"touch",3:"pen",4:"mouse",5:"kinect"},dt="pointerdown",gt="pointermove pointerup pointercancel";function mt(){this.evEl=dt,this.evWin=gt,tt.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}r.MSPointerEvent&&!r.PointerEvent&&(dt="MSPointerDown",gt="MSPointerMove MSPointerUp MSPointerCancel"),k(mt,tt,{handler:function(t){var e=this.store,n=!1,o=t.type.toLowerCase().replace("ms",""),r=pt[o],i=ft[t.pointerType]||t.pointerType,s="touch"==i,a=O(e,t.pointerId,"pointerId");r&F&&(0===t.button||s)?a<0&&(e.push(t),a=e.length-1):r&(X|q)&&(n=!0),a<0||(e[a]=t,this.callback(this.manager,r,{pointers:e,changedPointers:[t],pointerType:i,srcEvent:t}),n&&e.splice(a,1))}});var vt={touchstart:F,touchmove:H,touchend:X,touchcancel:q},yt="touchstart",_t="touchstart touchmove touchend touchcancel";function Tt(){this.evTarget=yt,this.evWin=_t,this.started=!1,tt.apply(this,arguments)}function kt(t,e){var n=z(t.touches),o=z(t.changedTouches);return e&(X|q)&&(n=I(n.concat(o),"identifier",!0)),[n,o]}k(Tt,tt,{handler:function(t){var e=vt[t.type];if(e===F&&(this.started=!0),this.started){var n=kt.call(this,t,e);e&(X|q)&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:t})}}});var bt={touchstart:F,touchmove:H,touchend:X,touchcancel:q},Et="touchstart touchmove touchend touchcancel";function wt(){this.evTarget=Et,this.targetIds={},tt.apply(this,arguments)}function St(t,e){var n=z(t.touches),o=this.targetIds;if(e&(F|H)&&1===n.length)return o[n[0].identifier]=!0,[n,n];var r,i,s=z(t.changedTouches),a=[],c=this.target;if(i=n.filter((function(t){return P(t.target,c)})),e===F)for(r=0;r<i.length;)o[i[r].identifier]=!0,r++;for(r=0;r<s.length;)o[s[r].identifier]&&a.push(s[r]),e&(X|q)&&delete o[s[r].identifier],r++;return a.length?[I(i.concat(a),"identifier",!0),a]:void 0}k(wt,tt,{handler:function(t){var e=bt[t.type],n=St.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:t})}});var Dt=2500,Pt=25;function Zt(){tt.apply(this,arguments);var t=b(this.handler,this);this.touch=new wt(this.manager,t),this.mouse=new ht(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function Ct(t,e){t&F?(this.primaryTouch=e.changedPointers[0].identifier,Ot.call(this,e)):t&(X|q)&&Ot.call(this,e)}function Ot(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var n={x:e.clientX,y:e.clientY};this.lastTouches.push(n);var o=this.lastTouches;setTimeout((function(){var t=o.indexOf(n);t>-1&&o.splice(t,1)}),Dt)}}function zt(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,o=0;o<this.lastTouches.length;o++){var r=this.lastTouches[o],i=Math.abs(e-r.x),s=Math.abs(n-r.y);if(i<=Pt&&s<=Pt)return!0}return!1}k(Zt,tt,{handler:function(t,e,n){var o="mouse"==n.pointerType;if(!(o&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if("touch"==n.pointerType)Ct.call(this,e,n);else if(o&&zt.call(this,n))return;this.callback(t,e,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var It=x(u.style,"touchAction"),xt=It!==a,Rt=function(){if(!xt)return!1;var t={},e=r.CSS&&r.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(n){t[n]=!e||r.CSS.supports("touch-action",n)})),t}();function At(t,e){this.manager=t,this.set(e)}At.prototype={set:function(t){"compute"==t&&(t=this.compute()),xt&&this.manager.element.style&&Rt[t]&&(this.manager.element.style[It]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return v(this.manager.recognizers,(function(e){E(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),function(t){if(Z(t,"none"))return"none";var e=Z(t,"pan-x"),n=Z(t,"pan-y");return e&&n?"none":e||n?e?"pan-x":"pan-y":Z(t,"manipulation")?"manipulation":"auto"}(t.join(" "))},preventDefaults:function(t){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var o=this.actions,r=Z(o,"none")&&!Rt.none,i=Z(o,"pan-y")&&!Rt["pan-y"],s=Z(o,"pan-x")&&!Rt["pan-x"];if(r&&1===t.pointers.length&&t.distance<2&&t.deltaTime<250)return;if(!s||!i)return r||i&&n&B||s&&n&$?this.preventSrc(e):void 0}},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var jt=1,Mt=2,Nt=4,Lt=8,Ft=Lt,Ht=16;function Xt(t){this.options=c({},this.defaults,t||{}),this.id=R++,this.manager=null,this.options.enable=w(this.options.enable,!0),this.state=jt,this.simultaneous={},this.requireFail=[]}function qt(t){return t&Ht?"cancel":t&Lt?"end":t&Nt?"move":t&Mt?"start":""}function Wt(t){return t==V?"down":t==U?"up":t==Y?"left":t==G?"right":""}function Yt(t,e){var n=e.manager;return n?n.get(t):t}function Gt(){Xt.apply(this,arguments)}function Ut(){Gt.apply(this,arguments),this.pX=null,this.pY=null}function Vt(){Gt.apply(this,arguments)}function Bt(){Xt.apply(this,arguments),this._timer=null,this._input=null}function $t(){Gt.apply(this,arguments)}function Jt(){Gt.apply(this,arguments)}function Kt(){Xt.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function Qt(t,e){return(e=e||{}).recognizers=w(e.recognizers,Qt.defaults.preset),new te(t,e)}function te(t,e){var n;this.options=c({},Qt.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new((n=this).options.inputClass||(M?mt:N?wt:j?Zt:ht))(n,et),this.touchAction=new At(this,this.options.touchAction),ee(this,!0),v(this.options.recognizers,(function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])}),this)}function ee(t,e){var n,o=t.element;o.style&&(v(t.options.cssProps,(function(r,i){n=x(o.style,i),e?(t.oldCssProps[n]=o.style[n],o.style[n]=r):o.style[n]=t.oldCssProps[n]||""})),e||(t.oldCssProps={}))}Xt.prototype={defaults:{},set:function(t){return c(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(m(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=Yt(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return m(t,"dropRecognizeWith",this)?this:(t=Yt(t,this),delete this.simultaneous[t.id],this)},requireFailure:function(t){if(m(t,"requireFailure",this))return this;var e=this.requireFail;return-1===O(e,t=Yt(t,this))&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(m(t,"dropRequireFailure",this))return this;t=Yt(t,this);var e=O(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){var e=this,n=this.state;function o(n){e.manager.emit(n,t)}n<Lt&&o(e.options.event+qt(n)),o(e.options.event),t.additionalEvent&&o(t.additionalEvent),n>=Lt&&o(e.options.event+qt(n))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=32},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(this.requireFail[t].state&(32|jt)))return!1;t++}return!0},recognize:function(t){var e=c({},t);if(!E(this.options.enable,[this,e]))return this.reset(),void(this.state=32);this.state&(Ft|Ht|32)&&(this.state=jt),this.state=this.process(e),this.state&(Mt|Nt|Lt|Ht)&&this.tryEmit(e)},process:function(t){},getTouchAction:function(){},reset:function(){}},k(Gt,Xt,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,n=t.eventType,o=e&(Mt|Nt),r=this.attrTest(t);return o&&(n&q||!r)?e|Ht:o||r?n&X?e|Lt:e&Mt?e|Nt:Mt:32}}),k(Ut,Gt,{defaults:{event:"pan",threshold:10,pointers:1,direction:J},getTouchAction:function(){var t=this.options.direction,e=[];return t&B&&e.push("pan-y"),t&$&&e.push("pan-x"),e},directionTest:function(t){var e=this.options,n=!0,o=t.distance,r=t.direction,i=t.deltaX,s=t.deltaY;return r&e.direction||(e.direction&B?(r=0===i?W:i<0?Y:G,n=i!=this.pX,o=Math.abs(t.deltaX)):(r=0===s?W:s<0?U:V,n=s!=this.pY,o=Math.abs(t.deltaY))),t.direction=r,n&&o>e.threshold&&r&e.direction},attrTest:function(t){return Gt.prototype.attrTest.call(this,t)&&(this.state&Mt||!(this.state&Mt)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=Wt(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),k(Vt,Gt,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||this.state&Mt)},emit:function(t){1!==t.scale&&(t.additionalEvent=this.options.event+(t.scale<1?"in":"out")),this._super.emit.call(this,t)}}),k(Bt,Xt,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,o=t.distance<e.threshold,r=t.deltaTime>e.time;if(this._input=t,!o||!n||t.eventType&(X|q)&&!r)this.reset();else if(t.eventType&F)this.reset(),this._timer=g((function(){this.state=Ft,this.tryEmit()}),e.time,this);else if(t.eventType&X)return Ft;return 32},reset:function(){clearTimeout(this._timer)},emit:function(t){this.state===Ft&&(t&&t.eventType&X?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=d(),this.manager.emit(this.options.event,this._input)))}}),k($t,Gt,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state&Mt)}}),k(Jt,Gt,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:B|$,pointers:1},getTouchAction:function(){return Ut.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return n&(B|$)?e=t.overallVelocity:n&B?e=t.overallVelocityX:n&$&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&n&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&f(e)>this.options.velocity&&t.eventType&X},emit:function(t){var e=Wt(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),k(Kt,Xt,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return["manipulation"]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,o=t.distance<e.threshold,r=t.deltaTime<e.time;if(this.reset(),t.eventType&F&&0===this.count)return this.failTimeout();if(o&&r&&n){if(t.eventType!=X)return this.failTimeout();var i=!this.pTime||t.timeStamp-this.pTime<e.interval,s=!this.pCenter||st(this.pCenter,t.center)<e.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,s&&i?this.count+=1:this.count=1,this._input=t,0==this.count%e.taps)return this.hasRequireFailures()?(this._timer=g((function(){this.state=Ft,this.tryEmit()}),e.interval,this),Mt):Ft}return 32},failTimeout:function(){return this._timer=g((function(){this.state=32}),this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==Ft&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),Qt.VERSION="2.0.7",Qt.defaults={domEvents:!1,touchAction:"compute",enable:!0,inputTarget:null,inputClass:null,preset:[[$t,{enable:!1}],[Vt,{enable:!1},["rotate"]],[Jt,{direction:B}],[Ut,{direction:B},["swipe"]],[Kt],[Kt,{event:"doubletap",taps:2},["tap"]],[Bt]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},te.prototype={set:function(t){return c(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?2:1},recognize:function(t){var e=this.session;if(!e.stopped){var n;this.touchAction.preventDefaults(t);var o=this.recognizers,r=e.curRecognizer;(!r||r&&r.state&Ft)&&(r=e.curRecognizer=null);for(var i=0;i<o.length;)n=o[i],2===e.stopped||r&&n!=r&&!n.canRecognizeWith(r)?n.reset():n.recognize(t),!r&&n.state&(Mt|Nt|Lt)&&(r=e.curRecognizer=n),i++}},get:function(t){if(t instanceof Xt)return t;for(var e=this.recognizers,n=0;n<e.length;n++)if(e[n].options.event==t)return e[n];return null},add:function(t){if(m(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},remove:function(t){if(m(t,"remove",this))return this;if(t=this.get(t)){var e=this.recognizers,n=O(e,t);-1!==n&&(e.splice(n,1),this.touchAction.update())}return this},on:function(t,e){if(t!==a&&e!==a){var n=this.handlers;return v(C(t),(function(t){n[t]=n[t]||[],n[t].push(e)})),this}},off:function(t,e){if(t!==a){var n=this.handlers;return v(C(t),(function(t){e?n[t]&&n[t].splice(O(n[t],e),1):delete n[t]})),this}},emit:function(t,e){this.options.domEvents&&function(t,e){var n=i.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=e,e.target.dispatchEvent(n)}(t,e);var n=this.handlers[t]&&this.handlers[t].slice();if(n&&n.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var o=0;o<n.length;)n[o](e),o++}},destroy:function(){this.element&&ee(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},c(Qt,{INPUT_START:F,INPUT_MOVE:H,INPUT_END:X,INPUT_CANCEL:q,STATE_POSSIBLE:jt,STATE_BEGAN:Mt,STATE_CHANGED:Nt,STATE_ENDED:Lt,STATE_RECOGNIZED:Ft,STATE_CANCELLED:Ht,STATE_FAILED:32,DIRECTION_NONE:W,DIRECTION_LEFT:Y,DIRECTION_RIGHT:G,DIRECTION_UP:U,DIRECTION_DOWN:V,DIRECTION_HORIZONTAL:B,DIRECTION_VERTICAL:$,DIRECTION_ALL:J,Manager:te,Input:tt,TouchAction:At,TouchInput:wt,MouseInput:ht,PointerEventInput:mt,TouchMouseInput:Zt,SingleTouchInput:Tt,Recognizer:Xt,AttrRecognizer:Gt,Tap:Kt,Pan:Ut,Swipe:Jt,Pinch:Vt,Rotate:$t,Press:Bt,on:S,off:D,each:v,merge:T,extend:_,assign:c,inherit:k,bindFn:b,prefixed:x}),(void 0!==r?r:"undefined"!=typeof self?self:{}).Hammer=Qt,(o=(function(){return Qt}).call(e,n,e,t))===a||(t.exports=o)}(window,document)},"hN/g":function(t,e,n){"use strict";n.r(e),n("nf2o"),n("9HG0")},nf2o:function(t,e,n){var o,r;void 0===(r="function"==typeof(o=function(){"use strict";!function(t){const e=t.performance;function n(t){e&&e.mark&&e.mark(t)}function o(t,n){e&&e.measure&&e.measure(t,n)}n("Zone");const r=t.__Zone_symbol_prefix||"__zone_symbol__";function i(t){return r+t}const s=!0===t[i("forceDuplicateZoneCheck")];if(t.Zone){if(s||"function"!=typeof t.Zone.__symbol__)throw new Error("Zone already loaded.");return t.Zone}class a{constructor(t,e){this._parent=t,this._name=e?e.name||"unnamed":"<root>",this._properties=e&&e.properties||{},this._zoneDelegate=new l(this,this._parent&&this._parent._zoneDelegate,e)}static assertZonePatched(){if(t.Promise!==C.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.)")}static get root(){let t=a.current;for(;t.parent;)t=t.parent;return t}static get current(){return z.zone}static get currentTask(){return I}static __load_patch(e,r){if(C.hasOwnProperty(e)){if(s)throw Error("Already loaded patch: "+e)}else if(!t["__Zone_disable_"+e]){const i="Zone:"+e;n(i),C[e]=r(t,a,O),o(i,i)}}get parent(){return this._parent}get name(){return this._name}get(t){const e=this.getZoneWith(t);if(e)return e._properties[t]}getZoneWith(t){let e=this;for(;e;){if(e._properties.hasOwnProperty(t))return e;e=e._parent}return null}fork(t){if(!t)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,t)}wrap(t,e){if("function"!=typeof t)throw new Error("Expecting function got: "+t);const n=this._zoneDelegate.intercept(this,t,e),o=this;return function(){return o.runGuarded(n,this,arguments,e)}}run(t,e,n,o){z={parent:z,zone:this};try{return this._zoneDelegate.invoke(this,t,e,n,o)}finally{z=z.parent}}runGuarded(t,e=null,n,o){z={parent:z,zone:this};try{try{return this._zoneDelegate.invoke(this,t,e,n,o)}catch(r){if(this._zoneDelegate.handleError(this,r))throw r}}finally{z=z.parent}}runTask(t,e,n){if(t.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(t.zone||_).name+"; Execution: "+this.name+")");if(t.state===T&&(t.type===Z||t.type===P))return;const o=t.state!=E;o&&t._transitionTo(E,b),t.runCount++;const r=I;I=t,z={parent:z,zone:this};try{t.type==P&&t.data&&!t.data.isPeriodic&&(t.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,t,e,n)}catch(i){if(this._zoneDelegate.handleError(this,i))throw i}}finally{t.state!==T&&t.state!==S&&(t.type==Z||t.data&&t.data.isPeriodic?o&&t._transitionTo(b,E):(t.runCount=0,this._updateTaskCount(t,-1),o&&t._transitionTo(T,E,T))),z=z.parent,I=r}}scheduleTask(t){if(t.zone&&t.zone!==this){let e=this;for(;e;){if(e===t.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${t.zone.name}`);e=e.parent}}t._transitionTo(k,T);const e=[];t._zoneDelegates=e,t._zone=this;try{t=this._zoneDelegate.scheduleTask(this,t)}catch(n){throw t._transitionTo(S,k,T),this._zoneDelegate.handleError(this,n),n}return t._zoneDelegates===e&&this._updateTaskCount(t,1),t.state==k&&t._transitionTo(b,k),t}scheduleMicroTask(t,e,n,o){return this.scheduleTask(new u(D,t,e,n,o,void 0))}scheduleMacroTask(t,e,n,o,r){return this.scheduleTask(new u(P,t,e,n,o,r))}scheduleEventTask(t,e,n,o,r){return this.scheduleTask(new u(Z,t,e,n,o,r))}cancelTask(t){if(t.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(t.zone||_).name+"; Execution: "+this.name+")");t._transitionTo(w,b,E);try{this._zoneDelegate.cancelTask(this,t)}catch(e){throw t._transitionTo(S,w),this._zoneDelegate.handleError(this,e),e}return this._updateTaskCount(t,-1),t._transitionTo(T,w),t.runCount=0,t}_updateTaskCount(t,e){const n=t._zoneDelegates;-1==e&&(t._zoneDelegates=null);for(let o=0;o<n.length;o++)n[o]._updateTaskCount(t.type,e)}}a.__symbol__=i;const c={name:"",onHasTask:(t,e,n,o)=>t.hasTask(n,o),onScheduleTask:(t,e,n,o)=>t.scheduleTask(n,o),onInvokeTask:(t,e,n,o,r,i)=>t.invokeTask(n,o,r,i),onCancelTask:(t,e,n,o)=>t.cancelTask(n,o)};class l{constructor(t,e,n){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=t,this._parentDelegate=e,this._forkZS=n&&(n&&n.onFork?n:e._forkZS),this._forkDlgt=n&&(n.onFork?e:e._forkDlgt),this._forkCurrZone=n&&(n.onFork?this.zone:e._forkCurrZone),this._interceptZS=n&&(n.onIntercept?n:e._interceptZS),this._interceptDlgt=n&&(n.onIntercept?e:e._interceptDlgt),this._interceptCurrZone=n&&(n.onIntercept?this.zone:e._interceptCurrZone),this._invokeZS=n&&(n.onInvoke?n:e._invokeZS),this._invokeDlgt=n&&(n.onInvoke?e:e._invokeDlgt),this._invokeCurrZone=n&&(n.onInvoke?this.zone:e._invokeCurrZone),this._handleErrorZS=n&&(n.onHandleError?n:e._handleErrorZS),this._handleErrorDlgt=n&&(n.onHandleError?e:e._handleErrorDlgt),this._handleErrorCurrZone=n&&(n.onHandleError?this.zone:e._handleErrorCurrZone),this._scheduleTaskZS=n&&(n.onScheduleTask?n:e._scheduleTaskZS),this._scheduleTaskDlgt=n&&(n.onScheduleTask?e:e._scheduleTaskDlgt),this._scheduleTaskCurrZone=n&&(n.onScheduleTask?this.zone:e._scheduleTaskCurrZone),this._invokeTaskZS=n&&(n.onInvokeTask?n:e._invokeTaskZS),this._invokeTaskDlgt=n&&(n.onInvokeTask?e:e._invokeTaskDlgt),this._invokeTaskCurrZone=n&&(n.onInvokeTask?this.zone:e._invokeTaskCurrZone),this._cancelTaskZS=n&&(n.onCancelTask?n:e._cancelTaskZS),this._cancelTaskDlgt=n&&(n.onCancelTask?e:e._cancelTaskDlgt),this._cancelTaskCurrZone=n&&(n.onCancelTask?this.zone:e._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const o=n&&n.onHasTask;(o||e&&e._hasTaskZS)&&(this._hasTaskZS=o?n:c,this._hasTaskDlgt=e,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=t,n.onScheduleTask||(this._scheduleTaskZS=c,this._scheduleTaskDlgt=e,this._scheduleTaskCurrZone=this.zone),n.onInvokeTask||(this._invokeTaskZS=c,this._invokeTaskDlgt=e,this._invokeTaskCurrZone=this.zone),n.onCancelTask||(this._cancelTaskZS=c,this._cancelTaskDlgt=e,this._cancelTaskCurrZone=this.zone))}fork(t,e){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,t,e):new a(t,e)}intercept(t,e,n){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,t,e,n):e}invoke(t,e,n,o,r){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,t,e,n,o,r):e.apply(n,o)}handleError(t,e){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,t,e)}scheduleTask(t,e){let n=e;if(this._scheduleTaskZS)this._hasTaskZS&&n._zoneDelegates.push(this._hasTaskDlgtOwner),(n=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,t,e))||(n=e);else if(e.scheduleFn)e.scheduleFn(e);else{if(e.type!=D)throw new Error("Task is missing scheduleFn.");v(e)}return n}invokeTask(t,e,n,o){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,t,e,n,o):e.callback.apply(n,o)}cancelTask(t,e){let n;if(this._cancelTaskZS)n=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,t,e);else{if(!e.cancelFn)throw Error("Task is not cancelable");n=e.cancelFn(e)}return n}hasTask(t,e){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,t,e)}catch(n){this.handleError(t,n)}}_updateTaskCount(t,e){const n=this._taskCounts,o=n[t],r=n[t]=o+e;if(r<0)throw new Error("More tasks executed then were scheduled.");0!=o&&0!=r||this.hasTask(this.zone,{microTask:n.microTask>0,macroTask:n.macroTask>0,eventTask:n.eventTask>0,change:t})}}class u{constructor(e,n,o,r,i,s){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=e,this.source=n,this.data=r,this.scheduleFn=i,this.cancelFn=s,!o)throw new Error("callback is not defined");this.callback=o;const a=this;this.invoke=e===Z&&r&&r.useG?u.invokeTask:function(){return u.invokeTask.call(t,a,this,arguments)}}static invokeTask(t,e,n){t||(t=this),x++;try{return t.runCount++,t.zone.runTask(t,e,n)}finally{1==x&&y(),x--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(T,k)}_transitionTo(t,e,n){if(this._state!==e&&this._state!==n)throw new Error(`${this.type} '${this.source}': can not transition to '${t}', expecting state '${e}'${n?" or '"+n+"'":""}, was '${this._state}'.`);this._state=t,t==T&&(this._zoneDelegates=null)}toString(){return this.data&&void 0!==this.data.handleId?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}const h=i("setTimeout"),p=i("Promise"),f=i("then");let d,g=[],m=!1;function v(e){if(0===x&&0===g.length)if(d||t[p]&&(d=t[p].resolve(0)),d){let t=d[f];t||(t=d.then),t.call(d,y)}else t[h](y,0);e&&g.push(e)}function y(){if(!m){for(m=!0;g.length;){const e=g;g=[];for(let n=0;n<e.length;n++){const o=e[n];try{o.zone.runTask(o,null,null)}catch(t){O.onUnhandledError(t)}}}O.microtaskDrainDone(),m=!1}}const _={name:"NO ZONE"},T="notScheduled",k="scheduling",b="scheduled",E="running",w="canceling",S="unknown",D="microTask",P="macroTask",Z="eventTask",C={},O={symbol:i,currentZoneFrame:()=>z,onUnhandledError:R,microtaskDrainDone:R,scheduleMicroTask:v,showUncaughtError:()=>!a[i("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:R,patchMethod:()=>R,bindArguments:()=>[],patchThen:()=>R,patchMacroTask:()=>R,setNativePromise:t=>{t&&"function"==typeof t.resolve&&(d=t.resolve(0))},patchEventPrototype:()=>R,isIEOrEdge:()=>!1,getGlobalObjects:()=>void 0,ObjectDefineProperty:()=>R,ObjectGetOwnPropertyDescriptor:()=>void 0,ObjectCreate:()=>void 0,ArraySlice:()=>[],patchClass:()=>R,wrapWithCurrentZone:()=>R,filterProperties:()=>[],attachOriginToPatched:()=>R,_redefineProperty:()=>R,patchCallbacks:()=>R};let z={parent:null,zone:new a(null,null)},I=null,x=0;function R(){}o("Zone","Zone"),t.Zone=a}("undefined"!=typeof window&&window||"undefined"!=typeof self&&self||global),Zone.__load_patch("ZoneAwarePromise",(t,e,n)=>{const o=Object.getOwnPropertyDescriptor,r=Object.defineProperty,i=n.symbol,s=[],a=i("Promise"),c=i("then"),l="__creationTrace__";n.onUnhandledError=t=>{if(n.showUncaughtError()){const e=t&&t.rejection;e?console.error("Unhandled Promise rejection:",e instanceof Error?e.message:e,"; Zone:",t.zone.name,"; Task:",t.task&&t.task.source,"; Value:",e,e instanceof Error?e.stack:void 0):console.error(t)}},n.microtaskDrainDone=()=>{for(;s.length;)for(;s.length;){const e=s.shift();try{e.zone.runGuarded(()=>{throw e})}catch(t){h(t)}}};const u=i("unhandledPromiseRejectionHandler");function h(t){n.onUnhandledError(t);try{const n=e[u];n&&"function"==typeof n&&n.call(this,t)}catch(o){}}function p(t){return t&&t.then}function f(t){return t}function d(t){return R.reject(t)}const g=i("state"),m=i("value"),v=i("finally"),y=i("parentPromiseValue"),_=i("parentPromiseState"),T="Promise.then",k=null,b=!0,E=!1,w=0;function S(t,e){return n=>{try{C(t,e,n)}catch(o){C(t,!1,o)}}}const D=function(){let t=!1;return function(e){return function(){t||(t=!0,e.apply(null,arguments))}}},P="Promise resolved with itself",Z=i("currentTaskTrace");function C(t,o,i){const a=D();if(t===i)throw new TypeError(P);if(t[g]===k){let h=null;try{"object"!=typeof i&&"function"!=typeof i||(h=i&&i.then)}catch(u){return a(()=>{C(t,!1,u)})(),t}if(o!==E&&i instanceof R&&i.hasOwnProperty(g)&&i.hasOwnProperty(m)&&i[g]!==k)z(i),C(t,i[g],i[m]);else if(o!==E&&"function"==typeof h)try{h.call(i,a(S(t,o)),a(S(t,!1)))}catch(u){a(()=>{C(t,!1,u)})()}else{t[g]=o;const a=t[m];if(t[m]=i,t[v]===v&&o===b&&(t[g]=t[_],t[m]=t[y]),o===E&&i instanceof Error){const t=e.currentTask&&e.currentTask.data&&e.currentTask.data[l];t&&r(i,Z,{configurable:!0,enumerable:!1,writable:!0,value:t})}for(let e=0;e<a.length;)I(t,a[e++],a[e++],a[e++],a[e++]);if(0==a.length&&o==E){t[g]=w;try{throw new Error("Uncaught (in promise): "+((c=i)&&c.toString===Object.prototype.toString?(c.constructor&&c.constructor.name||"")+": "+JSON.stringify(c):c?c.toString():Object.prototype.toString.call(c))+(i&&i.stack?"\n"+i.stack:""))}catch(u){const o=u;o.rejection=i,o.promise=t,o.zone=e.current,o.task=e.currentTask,s.push(o),n.scheduleMicroTask()}}}}var c;return t}const O=i("rejectionHandledHandler");function z(t){if(t[g]===w){try{const n=e[O];n&&"function"==typeof n&&n.call(this,{rejection:t[m],promise:t})}catch(n){}t[g]=E;for(let e=0;e<s.length;e++)t===s[e].promise&&s.splice(e,1)}}function I(t,e,n,o,r){z(t);const i=t[g],s=i?"function"==typeof o?o:f:"function"==typeof r?r:d;e.scheduleMicroTask(T,()=>{try{const o=t[m],r=!!n&&v===n[v];r&&(n[y]=o,n[_]=i);const a=e.run(s,void 0,r&&s!==d&&s!==f?[]:[o]);C(n,!0,a)}catch(o){C(n,!1,o)}},n)}const x="function ZoneAwarePromise() { [native code] }";class R{constructor(t){const e=this;if(!(e instanceof R))throw new Error("Must be an instanceof Promise.");e[g]=k,e[m]=[];try{t&&t(S(e,b),S(e,E))}catch(n){C(e,!1,n)}}static toString(){return x}static resolve(t){return C(new this(null),b,t)}static reject(t){return C(new this(null),E,t)}static race(t){let e,n,o=new this((t,o)=>{e=t,n=o});function r(t){e(t)}function i(t){n(t)}for(let s of t)p(s)||(s=this.resolve(s)),s.then(r,i);return o}static all(t){return R.allWithCallback(t)}static allSettled(t){return(this&&this.prototype instanceof R?this:R).allWithCallback(t,{thenCallback:t=>({status:"fulfilled",value:t}),errorCallback:t=>({status:"rejected",reason:t})})}static allWithCallback(t,e){let n,o,r=new this((t,e)=>{n=t,o=e}),i=2,s=0;const a=[];for(let l of t){p(l)||(l=this.resolve(l));const t=s;try{l.then(o=>{a[t]=e?e.thenCallback(o):o,0==--i&&n(a)},r=>{e?(a[t]=e.errorCallback(r),0==--i&&n(a)):o(r)})}catch(c){o(c)}i++,s++}return 0==(i-=2)&&n(a),r}get[Symbol.toStringTag](){return"Promise"}then(t,n){const o=new this.constructor(null),r=e.current;return this[g]==k?this[m].push(r,o,t,n):I(this,r,o,t,n),o}catch(t){return this.then(null,t)}finally(t){const n=new this.constructor(null);n[v]=v;const o=e.current;return this[g]==k?this[m].push(o,n,t,t):I(this,o,n,t,t),n}}R.resolve=R.resolve,R.reject=R.reject,R.race=R.race,R.all=R.all;const A=t[a]=t.Promise,j=e.__symbol__("ZoneAwarePromise");let M=o(t,"Promise");M&&!M.configurable||(M&&delete M.writable,M&&delete M.value,M||(M={configurable:!0,enumerable:!0}),M.get=function(){return t[j]?t[j]:t[a]},M.set=function(e){e===R?t[j]=e:(t[a]=e,e.prototype[c]||L(e),n.setNativePromise(e))},r(t,"Promise",M)),t.Promise=R;const N=i("thenPatched");function L(t){const e=t.prototype,n=o(e,"then");if(n&&(!1===n.writable||!n.configurable))return;const r=e.then;e[c]=r,t.prototype.then=function(t,e){return new R((t,e)=>{r.call(this,t,e)}).then(t,e)},t[N]=!0}if(n.patchThen=L,A){L(A);const e=t.fetch;"function"==typeof e&&(t[n.symbol("fetch")]=e,t.fetch=function(t){return function(){let e=t.apply(this,arguments);if(e instanceof R)return e;let n=e.constructor;return n[N]||L(n),e}}(e))}return Promise[e.__symbol__("uncaughtPromiseErrors")]=s,R});const t=Object.getOwnPropertyDescriptor,e=Object.defineProperty,n=Object.getPrototypeOf,o=Object.create,r=Array.prototype.slice,i="addEventListener",s="removeEventListener",a=Zone.__symbol__(i),c=Zone.__symbol__(s),l="true",u="false",h=Zone.__symbol__("");function p(t,e){return Zone.current.wrap(t,e)}function f(t,e,n,o,r){return Zone.current.scheduleMacroTask(t,e,n,o,r)}const d=Zone.__symbol__,g="undefined"!=typeof window,m=g?window:void 0,v=g&&m||"object"==typeof self&&self||global,y="removeAttribute",_=[null];function T(t,e){for(let n=t.length-1;n>=0;n--)"function"==typeof t[n]&&(t[n]=p(t[n],e+"_"+n));return t}function k(t){return!t||!1!==t.writable&&!("function"==typeof t.get&&void 0===t.set)}const b="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,E=!("nw"in v)&&void 0!==v.process&&"[object process]"==={}.toString.call(v.process),w=!E&&!b&&!(!g||!m.HTMLElement),S=void 0!==v.process&&"[object process]"==={}.toString.call(v.process)&&!b&&!(!g||!m.HTMLElement),D={},P=function(t){if(!(t=t||v.event))return;let e=D[t.type];e||(e=D[t.type]=d("ON_PROPERTY"+t.type));const n=this||t.target||v,o=n[e];let r;if(w&&n===m&&"error"===t.type){const e=t;!0===(r=o&&o.call(this,e.message,e.filename,e.lineno,e.colno,e.error))&&t.preventDefault()}else null==(r=o&&o.apply(this,arguments))||r||t.preventDefault();return r};function Z(n,o,r){let i=t(n,o);if(!i&&r&&t(r,o)&&(i={enumerable:!0,configurable:!0}),!i||!i.configurable)return;const s=d("on"+o+"patched");if(n.hasOwnProperty(s)&&n[s])return;delete i.writable,delete i.value;const a=i.get,c=i.set,l=o.substr(2);let u=D[l];u||(u=D[l]=d("ON_PROPERTY"+l)),i.set=function(t){let e=this;e||n!==v||(e=v),e&&(e[u]&&e.removeEventListener(l,P),c&&c.apply(e,_),"function"==typeof t?(e[u]=t,e.addEventListener(l,P,!1)):e[u]=null)},i.get=function(){let t=this;if(t||n!==v||(t=v),!t)return null;const e=t[u];if(e)return e;if(a){let e=a&&a.call(this);if(e)return i.set.call(this,e),"function"==typeof t[y]&&t.removeAttribute(o),e}return null},e(n,o,i),n[s]=!0}function C(t,e,n){if(e)for(let o=0;o<e.length;o++)Z(t,"on"+e[o],n);else{const e=[];for(const n in t)"on"==n.substr(0,2)&&e.push(n);for(let o=0;o<e.length;o++)Z(t,e[o],n)}}const O=d("originalInstance");function z(t){const n=v[t];if(!n)return;v[d(t)]=n,v[t]=function(){const e=T(arguments,t);switch(e.length){case 0:this[O]=new n;break;case 1:this[O]=new n(e[0]);break;case 2:this[O]=new n(e[0],e[1]);break;case 3:this[O]=new n(e[0],e[1],e[2]);break;case 4:this[O]=new n(e[0],e[1],e[2],e[3]);break;default:throw new Error("Arg list too long.")}},A(v[t],n);const o=new n((function(){}));let r;for(r in o)"XMLHttpRequest"===t&&"responseBlob"===r||function(n){"function"==typeof o[n]?v[t].prototype[n]=function(){return this[O][n].apply(this[O],arguments)}:e(v[t].prototype,n,{set:function(e){"function"==typeof e?(this[O][n]=p(e,t+"."+n),A(this[O][n],e)):this[O][n]=e},get:function(){return this[O][n]}})}(r);for(r in n)"prototype"!==r&&n.hasOwnProperty(r)&&(v[t][r]=n[r])}let I=!1;function x(e,o,r){let i=e;for(;i&&!i.hasOwnProperty(o);)i=n(i);!i&&e[o]&&(i=e);const s=d(o);let a=null;if(i&&!(a=i[s])&&(a=i[s]=i[o],k(i&&t(i,o)))){const t=r(a,s,o);i[o]=function(){return t(this,arguments)},A(i[o],a),I&&(c=a,l=i[o],"function"==typeof Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(c).forEach(t=>{const e=Object.getOwnPropertyDescriptor(c,t);Object.defineProperty(l,t,{get:function(){return c[t]},set:function(n){(!e||e.writable&&"function"==typeof e.set)&&(c[t]=n)},enumerable:!e||e.enumerable,configurable:!e||e.configurable})}))}var c,l;return a}function R(t,e,n){let o=null;function r(t){const e=t.data;return e.args[e.cbIdx]=function(){t.invoke.apply(this,arguments)},o.apply(e.target,e.args),t}o=x(t,e,t=>(function(e,o){const i=n(e,o);return i.cbIdx>=0&&"function"==typeof o[i.cbIdx]?f(i.name,o[i.cbIdx],i,r):t.apply(e,o)}))}function A(t,e){t[d("OriginalDelegate")]=e}let j=!1,M=!1;function N(){try{const t=m.navigator.userAgent;if(-1!==t.indexOf("MSIE ")||-1!==t.indexOf("Trident/"))return!0}catch(t){}return!1}function L(){if(j)return M;j=!0;try{const t=m.navigator.userAgent;-1===t.indexOf("MSIE ")&&-1===t.indexOf("Trident/")&&-1===t.indexOf("Edge/")||(M=!0)}catch(t){}return M}Zone.__load_patch("toString",t=>{const e=Function.prototype.toString,n=d("OriginalDelegate"),o=d("Promise"),r=d("Error"),i=function(){if("function"==typeof this){const i=this[n];if(i)return"function"==typeof i?e.call(i):Object.prototype.toString.call(i);if(this===Promise){const n=t[o];if(n)return e.call(n)}if(this===Error){const n=t[r];if(n)return e.call(n)}}return e.call(this)};i[n]=e,Function.prototype.toString=i;const s=Object.prototype.toString;Object.prototype.toString=function(){return this instanceof Promise?"[object Promise]":s.call(this)}});let F=!1;if("undefined"!=typeof window)try{const t=Object.defineProperty({},"passive",{get:function(){F=!0}});window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch(pt){F=!1}const H={useG:!0},X={},q={},W=new RegExp("^"+h+"(\\w+)(true|false)$"),Y=d("propagationStopped");function G(t,e,o){const r=o&&o.add||i,a=o&&o.rm||s,c=o&&o.listeners||"eventListeners",p=o&&o.rmAll||"removeAllListeners",f=d(r),g="."+r+":",m="prependListener",v="."+m+":",y=function(t,e,n){if(t.isRemoved)return;const o=t.callback;"object"==typeof o&&o.handleEvent&&(t.callback=t=>o.handleEvent(t),t.originalDelegate=o),t.invoke(t,e,[n]);const r=t.options;r&&"object"==typeof r&&r.once&&e[a].call(e,n.type,t.originalDelegate?t.originalDelegate:t.callback,r)},_=function(e){if(!(e=e||t.event))return;const n=this||e.target||t,o=n[X[e.type][u]];if(o)if(1===o.length)y(o[0],n,e);else{const t=o.slice();for(let o=0;o<t.length&&(!e||!0!==e[Y]);o++)y(t[o],n,e)}},T=function(e){if(!(e=e||t.event))return;const n=this||e.target||t,o=n[X[e.type][l]];if(o)if(1===o.length)y(o[0],n,e);else{const t=o.slice();for(let o=0;o<t.length&&(!e||!0!==e[Y]);o++)y(t[o],n,e)}};function k(e,o){if(!e)return!1;let i=!0;o&&void 0!==o.useG&&(i=o.useG);const s=o&&o.vh;let y=!0;o&&void 0!==o.chkDup&&(y=o.chkDup);let k=!1;o&&void 0!==o.rt&&(k=o.rt);let b=e;for(;b&&!b.hasOwnProperty(r);)b=n(b);if(!b&&e[r]&&(b=e),!b)return!1;if(b[f])return!1;const w=o&&o.eventNameToString,S={},D=b[f]=b[r],P=b[d(a)]=b[a],Z=b[d(c)]=b[c],C=b[d(p)]=b[p];let O;function z(t){F||"boolean"==typeof S.options||null==S.options||(t.options=!!S.options.capture,S.options=t.options)}o&&o.prepend&&(O=b[d(o.prepend)]=b[o.prepend]);const I=i?function(t){if(!S.isExisting)return z(t),D.call(S.target,S.eventName,S.capture?T:_,S.options)}:function(t){return z(t),D.call(S.target,S.eventName,t.invoke,S.options)},x=i?function(t){if(!t.isRemoved){const e=X[t.eventName];let n;e&&(n=e[t.capture?l:u]);const o=n&&t.target[n];if(o)for(let r=0;r<o.length;r++)if(o[r]===t){o.splice(r,1),t.isRemoved=!0,0===o.length&&(t.allRemoved=!0,t.target[n]=null);break}}if(t.allRemoved)return P.call(t.target,t.eventName,t.capture?T:_,t.options)}:function(t){return P.call(t.target,t.eventName,t.invoke,t.options)},R=o&&o.diff?o.diff:function(t,e){const n=typeof e;return"function"===n&&t.callback===e||"object"===n&&t.originalDelegate===e},j=Zone[d("BLACK_LISTED_EVENTS")],M=function(e,n,r,a,c=!1,p=!1){return function(){const f=this||t;let d=arguments[0];o&&o.transferEventName&&(d=o.transferEventName(d));let g=arguments[1];if(!g)return e.apply(this,arguments);if(E&&"uncaughtException"===d)return e.apply(this,arguments);let m=!1;if("function"!=typeof g){if(!g.handleEvent)return e.apply(this,arguments);m=!0}if(s&&!s(e,g,f,arguments))return;const v=arguments[2];if(j)for(let t=0;t<j.length;t++)if(d===j[t])return e.apply(this,arguments);let _,T=!1;void 0===v?_=!1:!0===v?_=!0:!1===v?_=!1:(_=!!v&&!!v.capture,T=!!v&&!!v.once);const k=Zone.current,b=X[d];let D;if(b)D=b[_?l:u];else{const t=(w?w(d):d)+u,e=(w?w(d):d)+l,n=h+t,o=h+e;X[d]={},X[d][u]=n,X[d][l]=o,D=_?o:n}let P,Z=f[D],C=!1;if(Z){if(C=!0,y)for(let t=0;t<Z.length;t++)if(R(Z[t],g))return}else Z=f[D]=[];const O=f.constructor.name,z=q[O];z&&(P=z[d]),P||(P=O+n+(w?w(d):d)),S.options=v,T&&(S.options.once=!1),S.target=f,S.capture=_,S.eventName=d,S.isExisting=C;const I=i?H:void 0;I&&(I.taskData=S);const x=k.scheduleEventTask(P,g,I,r,a);return S.target=null,I&&(I.taskData=null),T&&(v.once=!0),(F||"boolean"!=typeof x.options)&&(x.options=v),x.target=f,x.capture=_,x.eventName=d,m&&(x.originalDelegate=g),p?Z.unshift(x):Z.push(x),c?f:void 0}};return b[r]=M(D,g,I,x,k),O&&(b[m]=M(O,v,(function(t){return O.call(S.target,S.eventName,t.invoke,S.options)}),x,k,!0)),b[a]=function(){const e=this||t;let n=arguments[0];o&&o.transferEventName&&(n=o.transferEventName(n));const r=arguments[2];let i;i=void 0!==r&&(!0===r||!1!==r&&!!r&&!!r.capture);const a=arguments[1];if(!a)return P.apply(this,arguments);if(s&&!s(P,a,e,arguments))return;const c=X[n];let p;c&&(p=c[i?l:u]);const f=p&&e[p];if(f)for(let t=0;t<f.length;t++){const o=f[t];if(R(o,a))return f.splice(t,1),o.isRemoved=!0,0===f.length&&(o.allRemoved=!0,e[p]=null,"string"==typeof n)&&(e[h+"ON_PROPERTY"+n]=null),o.zone.cancelTask(o),k?e:void 0}return P.apply(this,arguments)},b[c]=function(){const e=this||t;let n=arguments[0];o&&o.transferEventName&&(n=o.transferEventName(n));const r=[],i=U(e,w?w(n):n);for(let t=0;t<i.length;t++){const e=i[t];r.push(e.originalDelegate?e.originalDelegate:e.callback)}return r},b[p]=function(){const e=this||t;let n=arguments[0];if(n){o&&o.transferEventName&&(n=o.transferEventName(n));const t=X[n];if(t){const o=e[t[u]],r=e[t[l]];if(o){const t=o.slice();for(let e=0;e<t.length;e++){const o=t[e];this[a].call(this,n,o.originalDelegate?o.originalDelegate:o.callback,o.options)}}if(r){const t=r.slice();for(let e=0;e<t.length;e++){const o=t[e];this[a].call(this,n,o.originalDelegate?o.originalDelegate:o.callback,o.options)}}}}else{const t=Object.keys(e);for(let e=0;e<t.length;e++){const n=W.exec(t[e]);let o=n&&n[1];o&&"removeListener"!==o&&this[p].call(this,o)}this[p].call(this,"removeListener")}if(k)return this},A(b[r],D),A(b[a],P),C&&A(b[p],C),Z&&A(b[c],Z),!0}let b=[];for(let n=0;n<e.length;n++)b[n]=k(e[n],o);return b}function U(t,e){const n=[];for(let o in t){const r=W.exec(o);let i=r&&r[1];if(i&&(!e||i===e)){const e=t[o];if(e)for(let t=0;t<e.length;t++)n.push(e[t])}}return n}function V(t,e){const n=t.Event;n&&n.prototype&&e.patchMethod(n.prototype,"stopImmediatePropagation",t=>(function(e,n){e[Y]=!0,t&&t.apply(e,n)}))}function B(t,e,n,o,r){const i=Zone.__symbol__(o);if(e[i])return;const s=e[i]=e[o];e[o]=function(i,a,c){return a&&a.prototype&&r.forEach((function(e){const r=`${n}.${o}::`+e,i=a.prototype;if(i.hasOwnProperty(e)){const n=t.ObjectGetOwnPropertyDescriptor(i,e);n&&n.value?(n.value=t.wrapWithCurrentZone(n.value,r),t._redefineProperty(a.prototype,e,n)):i[e]&&(i[e]=t.wrapWithCurrentZone(i[e],r))}else i[e]&&(i[e]=t.wrapWithCurrentZone(i[e],r))})),s.call(e,i,a,c)},t.attachOriginToPatched(e[o],s)}const $=["absolutedeviceorientation","afterinput","afterprint","appinstalled","beforeinstallprompt","beforeprint","beforeunload","devicelight","devicemotion","deviceorientation","deviceorientationabsolute","deviceproximity","hashchange","languagechange","message","mozbeforepaint","offline","online","paint","pageshow","pagehide","popstate","rejectionhandled","storage","unhandledrejection","unload","userproximity","vrdisplyconnected","vrdisplaydisconnected","vrdisplaypresentchange"],J=["encrypted","waitingforkey","msneedkey","mozinterruptbegin","mozinterruptend"],K=["load"],Q=["blur","error","focus","load","resize","scroll","messageerror"],tt=["bounce","finish","start"],et=["loadstart","progress","abort","error","load","progress","timeout","loadend","readystatechange"],nt=["upgradeneeded","complete","abort","success","error","blocked","versionchange","close"],ot=["close","error","open","message"],rt=["error","message"],it=["abort","animationcancel","animationend","animationiteration","auxclick","beforeinput","blur","cancel","canplay","canplaythrough","change","compositionstart","compositionupdate","compositionend","cuechange","click","close","contextmenu","curechange","dblclick","drag","dragend","dragenter","dragexit","dragleave","dragover","drop","durationchange","emptied","ended","error","focus","focusin","focusout","gotpointercapture","input","invalid","keydown","keypress","keyup","load","loadstart","loadeddata","loadedmetadata","lostpointercapture","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup","mousewheel","orientationchange","pause","play","playing","pointercancel","pointerdown","pointerenter","pointerleave","pointerlockchange","mozpointerlockchange","webkitpointerlockerchange","pointerlockerror","mozpointerlockerror","webkitpointerlockerror","pointermove","pointout","pointerover","pointerup","progress","ratechange","reset","resize","scroll","seeked","seeking","select","selectionchange","selectstart","sh