forked from rriet/flightbag
-
Notifications
You must be signed in to change notification settings - Fork 0
/
polyfills.7076518a9af696c7.js
1 lines (1 loc) · 33.7 KB
/
polyfills.7076518a9af696c7.js
1
"use strict";(self.webpackChunkeflight=self.webpackChunkeflight||[]).push([[429],{955:(fe,ge,me)=>{const we="undefined"!=typeof globalThis&&globalThis,Me="undefined"!=typeof window&&window,Pe="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Re=we||"undefined"!=typeof global&&global||Me||Pe,Te=function($,...O){if(Te.translate){const Y=Te.translate($,O);$=Y[0],O=Y[1]}let se=oe($[0],$.raw[0]);for(let Y=1;Y<$.length;Y++)se+=O[Y-1]+oe($[Y],$.raw[Y]);return se};function oe($,O){return":"===O.charAt(0)?$.substring(function ye($,O){for(let se=1,Y=1;se<$.length;se++,Y++)if("\\"===O[Y])Y++;else if(":"===$[se])return se;throw new Error(`Unterminated $localize metadata block in "${O}".`)}($,O)+1):$}Re.$localize=Te,me(583)},583:()=>{!function(e){const n=e.performance;function i(M){n&&n.mark&&n.mark(M)}function o(M,E){n&&n.measure&&n.measure(M,E)}i("Zone");const c=e.__Zone_symbol_prefix||"__zone_symbol__";function a(M){return c+M}const T=!0===e[a("forceDuplicateZoneCheck")];if(e.Zone){if(T||"function"!=typeof e.Zone.__symbol__)throw new Error("Zone already loaded.");return e.Zone}let d=(()=>{class M{constructor(t,r){this._parent=t,this._name=r?r.name||"unnamed":"<root>",this._properties=r&&r.properties||{},this._zoneDelegate=new v(this,this._parent&&this._parent._zoneDelegate,r)}static assertZonePatched(){if(e.Promise!==le.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=M.current;for(;t.parent;)t=t.parent;return t}static get current(){return U.zone}static get currentTask(){return ae}static __load_patch(t,r,k=!1){if(le.hasOwnProperty(t)){if(!k&&T)throw Error("Already loaded patch: "+t)}else if(!e["__Zone_disable_"+t]){const C="Zone:"+t;i(C),le[t]=r(e,M,X),o(C,C)}}get parent(){return this._parent}get name(){return this._name}get(t){const r=this.getZoneWith(t);if(r)return r._properties[t]}getZoneWith(t){let r=this;for(;r;){if(r._properties.hasOwnProperty(t))return r;r=r._parent}return null}fork(t){if(!t)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,t)}wrap(t,r){if("function"!=typeof t)throw new Error("Expecting function got: "+t);const k=this._zoneDelegate.intercept(this,t,r),C=this;return function(){return C.runGuarded(k,this,arguments,r)}}run(t,r,k,C){U={parent:U,zone:this};try{return this._zoneDelegate.invoke(this,t,r,k,C)}finally{U=U.parent}}runGuarded(t,r=null,k,C){U={parent:U,zone:this};try{try{return this._zoneDelegate.invoke(this,t,r,k,C)}catch(J){if(this._zoneDelegate.handleError(this,J))throw J}}finally{U=U.parent}}runTask(t,r,k){if(t.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(t.zone||Q).name+"; Execution: "+this.name+")");if(t.state===x&&(t.type===te||t.type===w))return;const C=t.state!=y;C&&t._transitionTo(y,j),t.runCount++;const J=ae;ae=t,U={parent:U,zone:this};try{t.type==w&&t.data&&!t.data.isPeriodic&&(t.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,t,r,k)}catch(l){if(this._zoneDelegate.handleError(this,l))throw l}}finally{t.state!==x&&t.state!==h&&(t.type==te||t.data&&t.data.isPeriodic?C&&t._transitionTo(j,y):(t.runCount=0,this._updateTaskCount(t,-1),C&&t._transitionTo(x,y,x))),U=U.parent,ae=J}}scheduleTask(t){if(t.zone&&t.zone!==this){let k=this;for(;k;){if(k===t.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${t.zone.name}`);k=k.parent}}t._transitionTo(z,x);const r=[];t._zoneDelegates=r,t._zone=this;try{t=this._zoneDelegate.scheduleTask(this,t)}catch(k){throw t._transitionTo(h,z,x),this._zoneDelegate.handleError(this,k),k}return t._zoneDelegates===r&&this._updateTaskCount(t,1),t.state==z&&t._transitionTo(j,z),t}scheduleMicroTask(t,r,k,C){return this.scheduleTask(new p(L,t,r,k,C,void 0))}scheduleMacroTask(t,r,k,C,J){return this.scheduleTask(new p(w,t,r,k,C,J))}scheduleEventTask(t,r,k,C,J){return this.scheduleTask(new p(te,t,r,k,C,J))}cancelTask(t){if(t.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(t.zone||Q).name+"; Execution: "+this.name+")");t._transitionTo(G,j,y);try{this._zoneDelegate.cancelTask(this,t)}catch(r){throw t._transitionTo(h,G),this._zoneDelegate.handleError(this,r),r}return this._updateTaskCount(t,-1),t._transitionTo(x,G),t.runCount=0,t}_updateTaskCount(t,r){const k=t._zoneDelegates;-1==r&&(t._zoneDelegates=null);for(let C=0;C<k.length;C++)k[C]._updateTaskCount(t.type,r)}}return M.__symbol__=a,M})();const b={name:"",onHasTask:(M,E,t,r)=>M.hasTask(t,r),onScheduleTask:(M,E,t,r)=>M.scheduleTask(t,r),onInvokeTask:(M,E,t,r,k,C)=>M.invokeTask(t,r,k,C),onCancelTask:(M,E,t,r)=>M.cancelTask(t,r)};class v{constructor(E,t,r){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=E,this._parentDelegate=t,this._forkZS=r&&(r&&r.onFork?r:t._forkZS),this._forkDlgt=r&&(r.onFork?t:t._forkDlgt),this._forkCurrZone=r&&(r.onFork?this.zone:t._forkCurrZone),this._interceptZS=r&&(r.onIntercept?r:t._interceptZS),this._interceptDlgt=r&&(r.onIntercept?t:t._interceptDlgt),this._interceptCurrZone=r&&(r.onIntercept?this.zone:t._interceptCurrZone),this._invokeZS=r&&(r.onInvoke?r:t._invokeZS),this._invokeDlgt=r&&(r.onInvoke?t:t._invokeDlgt),this._invokeCurrZone=r&&(r.onInvoke?this.zone:t._invokeCurrZone),this._handleErrorZS=r&&(r.onHandleError?r:t._handleErrorZS),this._handleErrorDlgt=r&&(r.onHandleError?t:t._handleErrorDlgt),this._handleErrorCurrZone=r&&(r.onHandleError?this.zone:t._handleErrorCurrZone),this._scheduleTaskZS=r&&(r.onScheduleTask?r:t._scheduleTaskZS),this._scheduleTaskDlgt=r&&(r.onScheduleTask?t:t._scheduleTaskDlgt),this._scheduleTaskCurrZone=r&&(r.onScheduleTask?this.zone:t._scheduleTaskCurrZone),this._invokeTaskZS=r&&(r.onInvokeTask?r:t._invokeTaskZS),this._invokeTaskDlgt=r&&(r.onInvokeTask?t:t._invokeTaskDlgt),this._invokeTaskCurrZone=r&&(r.onInvokeTask?this.zone:t._invokeTaskCurrZone),this._cancelTaskZS=r&&(r.onCancelTask?r:t._cancelTaskZS),this._cancelTaskDlgt=r&&(r.onCancelTask?t:t._cancelTaskDlgt),this._cancelTaskCurrZone=r&&(r.onCancelTask?this.zone:t._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const k=r&&r.onHasTask;(k||t&&t._hasTaskZS)&&(this._hasTaskZS=k?r:b,this._hasTaskDlgt=t,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=E,r.onScheduleTask||(this._scheduleTaskZS=b,this._scheduleTaskDlgt=t,this._scheduleTaskCurrZone=this.zone),r.onInvokeTask||(this._invokeTaskZS=b,this._invokeTaskDlgt=t,this._invokeTaskCurrZone=this.zone),r.onCancelTask||(this._cancelTaskZS=b,this._cancelTaskDlgt=t,this._cancelTaskCurrZone=this.zone))}fork(E,t){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,E,t):new d(E,t)}intercept(E,t,r){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,E,t,r):t}invoke(E,t,r,k,C){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,E,t,r,k,C):t.apply(r,k)}handleError(E,t){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,E,t)}scheduleTask(E,t){let r=t;if(this._scheduleTaskZS)this._hasTaskZS&&r._zoneDelegates.push(this._hasTaskDlgtOwner),r=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,E,t),r||(r=t);else if(t.scheduleFn)t.scheduleFn(t);else{if(t.type!=L)throw new Error("Task is missing scheduleFn.");R(t)}return r}invokeTask(E,t,r,k){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,E,t,r,k):t.callback.apply(r,k)}cancelTask(E,t){let r;if(this._cancelTaskZS)r=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,E,t);else{if(!t.cancelFn)throw Error("Task is not cancelable");r=t.cancelFn(t)}return r}hasTask(E,t){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,E,t)}catch(r){this.handleError(E,r)}}_updateTaskCount(E,t){const r=this._taskCounts,k=r[E],C=r[E]=k+t;if(C<0)throw new Error("More tasks executed then were scheduled.");0!=k&&0!=C||this.hasTask(this.zone,{microTask:r.microTask>0,macroTask:r.macroTask>0,eventTask:r.eventTask>0,change:E})}}class p{constructor(E,t,r,k,C,J){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=E,this.source=t,this.data=k,this.scheduleFn=C,this.cancelFn=J,!r)throw new Error("callback is not defined");this.callback=r;const l=this;this.invoke=E===te&&k&&k.useG?p.invokeTask:function(){return p.invokeTask.call(e,l,this,arguments)}}static invokeTask(E,t,r){E||(E=this),ne++;try{return E.runCount++,E.zone.runTask(E,t,r)}finally{1==ne&&_(),ne--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(x,z)}_transitionTo(E,t,r){if(this._state!==t&&this._state!==r)throw new Error(`${this.type} '${this.source}': can not transition to '${E}', expecting state '${t}'${r?" or '"+r+"'":""}, was '${this._state}'.`);this._state=E,E==x&&(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 A=a("setTimeout"),N=a("Promise"),I=a("then");let ee,F=[],H=!1;function q(M){if(ee||e[N]&&(ee=e[N].resolve(0)),ee){let E=ee[I];E||(E=ee.then),E.call(ee,M)}else e[A](M,0)}function R(M){0===ne&&0===F.length&&q(_),M&&F.push(M)}function _(){if(!H){for(H=!0;F.length;){const M=F;F=[];for(let E=0;E<M.length;E++){const t=M[E];try{t.zone.runTask(t,null,null)}catch(r){X.onUnhandledError(r)}}}X.microtaskDrainDone(),H=!1}}const Q={name:"NO ZONE"},x="notScheduled",z="scheduling",j="scheduled",y="running",G="canceling",h="unknown",L="microTask",w="macroTask",te="eventTask",le={},X={symbol:a,currentZoneFrame:()=>U,onUnhandledError:W,microtaskDrainDone:W,scheduleMicroTask:R,showUncaughtError:()=>!d[a("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:W,patchMethod:()=>W,bindArguments:()=>[],patchThen:()=>W,patchMacroTask:()=>W,patchEventPrototype:()=>W,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>W,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>W,wrapWithCurrentZone:()=>W,filterProperties:()=>[],attachOriginToPatched:()=>W,_redefineProperty:()=>W,patchCallbacks:()=>W,nativeScheduleMicroTask:q};let U={parent:null,zone:new d(null,null)},ae=null,ne=0;function W(){}o("Zone","Zone"),e.Zone=d}("undefined"!=typeof window&&window||"undefined"!=typeof self&&self||global);const fe=Object.getOwnPropertyDescriptor,ge=Object.defineProperty,me=Object.getPrototypeOf,we=Object.create,Me=Array.prototype.slice,Pe="addEventListener",Oe="removeEventListener",Re=Zone.__symbol__(Pe),Te=Zone.__symbol__(Oe),re="true",oe="false",ye=Zone.__symbol__("");function De(e,n){return Zone.current.wrap(e,n)}function $(e,n,i,o,c){return Zone.current.scheduleMacroTask(e,n,i,o,c)}const O=Zone.__symbol__,se="undefined"!=typeof window,Y=se?window:void 0,K=se&&Y||"object"==typeof self&&self||global;function Ae(e,n){for(let i=e.length-1;i>=0;i--)"function"==typeof e[i]&&(e[i]=De(e[i],n+"_"+i));return e}function Be(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&void 0===e.set)}const Fe="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,Ze=!("nw"in K)&&void 0!==K.process&&"[object process]"==={}.toString.call(K.process),je=!Ze&&!Fe&&!(!se||!Y.HTMLElement),Ue=void 0!==K.process&&"[object process]"==={}.toString.call(K.process)&&!Fe&&!(!se||!Y.HTMLElement),Ne={},We=function(e){if(!(e=e||K.event))return;let n=Ne[e.type];n||(n=Ne[e.type]=O("ON_PROPERTY"+e.type));const i=this||e.target||K,o=i[n];let c;if(je&&i===Y&&"error"===e.type){const a=e;c=o&&o.call(this,a.message,a.filename,a.lineno,a.colno,a.error),!0===c&&e.preventDefault()}else c=o&&o.apply(this,arguments),null!=c&&!c&&e.preventDefault();return c};function qe(e,n,i){let o=fe(e,n);if(!o&&i&&fe(i,n)&&(o={enumerable:!0,configurable:!0}),!o||!o.configurable)return;const c=O("on"+n+"patched");if(e.hasOwnProperty(c)&&e[c])return;delete o.writable,delete o.value;const a=o.get,T=o.set,d=n.substr(2);let b=Ne[d];b||(b=Ne[d]=O("ON_PROPERTY"+d)),o.set=function(v){let p=this;!p&&e===K&&(p=K),p&&("function"==typeof p[b]&&p.removeEventListener(d,We),T&&T.call(p,null),p[b]=v,"function"==typeof v&&p.addEventListener(d,We,!1))},o.get=function(){let v=this;if(!v&&e===K&&(v=K),!v)return null;const p=v[b];if(p)return p;if(a){let A=a.call(this);if(A)return o.set.call(this,A),"function"==typeof v.removeAttribute&&v.removeAttribute(n),A}return null},ge(e,n,o),e[c]=!0}function ze(e,n,i){if(n)for(let o=0;o<n.length;o++)qe(e,"on"+n[o],i);else{const o=[];for(const c in e)"on"==c.substr(0,2)&&o.push(c);for(let c=0;c<o.length;c++)qe(e,o[c],i)}}const ce=O("originalInstance");function Ce(e){const n=K[e];if(!n)return;K[O(e)]=n,K[e]=function(){const c=Ae(arguments,e);switch(c.length){case 0:this[ce]=new n;break;case 1:this[ce]=new n(c[0]);break;case 2:this[ce]=new n(c[0],c[1]);break;case 3:this[ce]=new n(c[0],c[1],c[2]);break;case 4:this[ce]=new n(c[0],c[1],c[2],c[3]);break;default:throw new Error("Arg list too long.")}},de(K[e],n);const i=new n(function(){});let o;for(o in i)"XMLHttpRequest"===e&&"responseBlob"===o||function(c){"function"==typeof i[c]?K[e].prototype[c]=function(){return this[ce][c].apply(this[ce],arguments)}:ge(K[e].prototype,c,{set:function(a){"function"==typeof a?(this[ce][c]=De(a,e+"."+c),de(this[ce][c],a)):this[ce][c]=a},get:function(){return this[ce][c]}})}(o);for(o in n)"prototype"!==o&&n.hasOwnProperty(o)&&(K[e][o]=n[o])}function he(e,n,i){let o=e;for(;o&&!o.hasOwnProperty(n);)o=me(o);!o&&e[n]&&(o=e);const c=O(n);let a=null;if(o&&(!(a=o[c])||!o.hasOwnProperty(c))&&(a=o[c]=o[n],Be(o&&fe(o,n)))){const d=i(a,c,n);o[n]=function(){return d(this,arguments)},de(o[n],a)}return a}function lt(e,n,i){let o=null;function c(a){const T=a.data;return T.args[T.cbIdx]=function(){a.invoke.apply(this,arguments)},o.apply(T.target,T.args),a}o=he(e,n,a=>function(T,d){const b=i(T,d);return b.cbIdx>=0&&"function"==typeof d[b.cbIdx]?$(b.name,d[b.cbIdx],b,c):a.apply(T,d)})}function de(e,n){e[O("OriginalDelegate")]=n}let Xe=!1,He=!1;function ft(){if(Xe)return He;Xe=!0;try{const e=Y.navigator.userAgent;(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/")||-1!==e.indexOf("Edge/"))&&(He=!0)}catch(e){}return He}Zone.__load_patch("ZoneAwarePromise",(e,n,i)=>{const o=Object.getOwnPropertyDescriptor,c=Object.defineProperty,T=i.symbol,d=[],b=!0===e[T("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],v=T("Promise"),p=T("then");i.onUnhandledError=l=>{if(i.showUncaughtError()){const u=l&&l.rejection;u?console.error("Unhandled Promise rejection:",u instanceof Error?u.message:u,"; Zone:",l.zone.name,"; Task:",l.task&&l.task.source,"; Value:",u,u instanceof Error?u.stack:void 0):console.error(l)}},i.microtaskDrainDone=()=>{for(;d.length;){const l=d.shift();try{l.zone.runGuarded(()=>{throw l.throwOriginal?l.rejection:l})}catch(u){I(u)}}};const N=T("unhandledPromiseRejectionHandler");function I(l){i.onUnhandledError(l);try{const u=n[N];"function"==typeof u&&u.call(this,l)}catch(u){}}function F(l){return l&&l.then}function H(l){return l}function ee(l){return t.reject(l)}const q=T("state"),R=T("value"),_=T("finally"),Q=T("parentPromiseValue"),x=T("parentPromiseState"),j=null,y=!0,G=!1;function L(l,u){return s=>{try{X(l,u,s)}catch(f){X(l,!1,f)}}}const le=T("currentTaskTrace");function X(l,u,s){const f=function(){let l=!1;return function(s){return function(){l||(l=!0,s.apply(null,arguments))}}}();if(l===s)throw new TypeError("Promise resolved with itself");if(l[q]===j){let m=null;try{("object"==typeof s||"function"==typeof s)&&(m=s&&s.then)}catch(P){return f(()=>{X(l,!1,P)})(),l}if(u!==G&&s instanceof t&&s.hasOwnProperty(q)&&s.hasOwnProperty(R)&&s[q]!==j)ae(s),X(l,s[q],s[R]);else if(u!==G&&"function"==typeof m)try{m.call(s,f(L(l,u)),f(L(l,!1)))}catch(P){f(()=>{X(l,!1,P)})()}else{l[q]=u;const P=l[R];if(l[R]=s,l[_]===_&&u===y&&(l[q]=l[x],l[R]=l[Q]),u===G&&s instanceof Error){const g=n.currentTask&&n.currentTask.data&&n.currentTask.data.__creationTrace__;g&&c(s,le,{configurable:!0,enumerable:!1,writable:!0,value:g})}for(let g=0;g<P.length;)ne(l,P[g++],P[g++],P[g++],P[g++]);if(0==P.length&&u==G){l[q]=0;let g=s;try{throw new Error("Uncaught (in promise): "+function a(l){return l&&l.toString===Object.prototype.toString?(l.constructor&&l.constructor.name||"")+": "+JSON.stringify(l):l?l.toString():Object.prototype.toString.call(l)}(s)+(s&&s.stack?"\n"+s.stack:""))}catch(S){g=S}b&&(g.throwOriginal=!0),g.rejection=s,g.promise=l,g.zone=n.current,g.task=n.currentTask,d.push(g),i.scheduleMicroTask()}}}return l}const U=T("rejectionHandledHandler");function ae(l){if(0===l[q]){try{const u=n[U];u&&"function"==typeof u&&u.call(this,{rejection:l[R],promise:l})}catch(u){}l[q]=G;for(let u=0;u<d.length;u++)l===d[u].promise&&d.splice(u,1)}}function ne(l,u,s,f,m){ae(l);const P=l[q],g=P?"function"==typeof f?f:H:"function"==typeof m?m:ee;u.scheduleMicroTask("Promise.then",()=>{try{const S=l[R],D=!!s&&_===s[_];D&&(s[Q]=S,s[x]=P);const Z=u.run(g,void 0,D&&g!==ee&&g!==H?[]:[S]);X(s,!0,Z)}catch(S){X(s,!1,S)}},s)}const M=function(){},E=e.AggregateError;class t{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(u){return X(new this(null),y,u)}static reject(u){return X(new this(null),G,u)}static any(u){if(!u||"function"!=typeof u[Symbol.iterator])return Promise.reject(new E([],"All promises were rejected"));const s=[];let f=0;try{for(let g of u)f++,s.push(t.resolve(g))}catch(g){return Promise.reject(new E([],"All promises were rejected"))}if(0===f)return Promise.reject(new E([],"All promises were rejected"));let m=!1;const P=[];return new t((g,S)=>{for(let D=0;D<s.length;D++)s[D].then(Z=>{m||(m=!0,g(Z))},Z=>{P.push(Z),f--,0===f&&(m=!0,S(new E(P,"All promises were rejected")))})})}static race(u){let s,f,m=new this((S,D)=>{s=S,f=D});function P(S){s(S)}function g(S){f(S)}for(let S of u)F(S)||(S=this.resolve(S)),S.then(P,g);return m}static all(u){return t.allWithCallback(u)}static allSettled(u){return(this&&this.prototype instanceof t?this:t).allWithCallback(u,{thenCallback:f=>({status:"fulfilled",value:f}),errorCallback:f=>({status:"rejected",reason:f})})}static allWithCallback(u,s){let f,m,P=new this((Z,V)=>{f=Z,m=V}),g=2,S=0;const D=[];for(let Z of u){F(Z)||(Z=this.resolve(Z));const V=S;try{Z.then(B=>{D[V]=s?s.thenCallback(B):B,g--,0===g&&f(D)},B=>{s?(D[V]=s.errorCallback(B),g--,0===g&&f(D)):m(B)})}catch(B){m(B)}g++,S++}return g-=2,0===g&&f(D),P}constructor(u){const s=this;if(!(s instanceof t))throw new Error("Must be an instanceof Promise.");s[q]=j,s[R]=[];try{u&&u(L(s,y),L(s,G))}catch(f){X(s,!1,f)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return t}then(u,s){let f=this.constructor[Symbol.species];(!f||"function"!=typeof f)&&(f=this.constructor||t);const m=new f(M),P=n.current;return this[q]==j?this[R].push(P,m,u,s):ne(this,P,m,u,s),m}catch(u){return this.then(null,u)}finally(u){let s=this.constructor[Symbol.species];(!s||"function"!=typeof s)&&(s=t);const f=new s(M);f[_]=_;const m=n.current;return this[q]==j?this[R].push(m,f,u,u):ne(this,m,f,u,u),f}}t.resolve=t.resolve,t.reject=t.reject,t.race=t.race,t.all=t.all;const r=e[v]=e.Promise;e.Promise=t;const k=T("thenPatched");function C(l){const u=l.prototype,s=o(u,"then");if(s&&(!1===s.writable||!s.configurable))return;const f=u.then;u[p]=f,l.prototype.then=function(m,P){return new t((S,D)=>{f.call(this,S,D)}).then(m,P)},l[k]=!0}return i.patchThen=C,r&&(C(r),he(e,"fetch",l=>function J(l){return function(u,s){let f=l.apply(u,s);if(f instanceof t)return f;let m=f.constructor;return m[k]||C(m),f}}(l))),Promise[n.__symbol__("uncaughtPromiseErrors")]=d,t}),Zone.__load_patch("toString",e=>{const n=Function.prototype.toString,i=O("OriginalDelegate"),o=O("Promise"),c=O("Error"),a=function(){if("function"==typeof this){const v=this[i];if(v)return"function"==typeof v?n.call(v):Object.prototype.toString.call(v);if(this===Promise){const p=e[o];if(p)return n.call(p)}if(this===Error){const p=e[c];if(p)return n.call(p)}}return n.call(this)};a[i]=n,Function.prototype.toString=a;const T=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":T.call(this)}});let ke=!1;if("undefined"!=typeof window)try{const e=Object.defineProperty({},"passive",{get:function(){ke=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch(e){ke=!1}const ht={useG:!0},ie={},Ye={},$e=new RegExp("^"+ye+"(\\w+)(true|false)$"),Ke=O("propagationStopped");function Je(e,n){const i=(n?n(e):e)+oe,o=(n?n(e):e)+re,c=ye+i,a=ye+o;ie[e]={},ie[e][oe]=c,ie[e][re]=a}function dt(e,n,i,o){const c=o&&o.add||Pe,a=o&&o.rm||Oe,T=o&&o.listeners||"eventListeners",d=o&&o.rmAll||"removeAllListeners",b=O(c),v="."+c+":",N=function(R,_,Q){if(R.isRemoved)return;const x=R.callback;let z;"object"==typeof x&&x.handleEvent&&(R.callback=y=>x.handleEvent(y),R.originalDelegate=x);try{R.invoke(R,_,[Q])}catch(y){z=y}const j=R.options;return j&&"object"==typeof j&&j.once&&_[a].call(_,Q.type,R.originalDelegate?R.originalDelegate:R.callback,j),z};function I(R,_,Q){if(!(_=_||e.event))return;const x=R||_.target||e,z=x[ie[_.type][Q?re:oe]];if(z){const j=[];if(1===z.length){const y=N(z[0],x,_);y&&j.push(y)}else{const y=z.slice();for(let G=0;G<y.length&&(!_||!0!==_[Ke]);G++){const h=N(y[G],x,_);h&&j.push(h)}}if(1===j.length)throw j[0];for(let y=0;y<j.length;y++){const G=j[y];n.nativeScheduleMicroTask(()=>{throw G})}}}const F=function(R){return I(this,R,!1)},H=function(R){return I(this,R,!0)};function ee(R,_){if(!R)return!1;let Q=!0;_&&void 0!==_.useG&&(Q=_.useG);const x=_&&_.vh;let z=!0;_&&void 0!==_.chkDup&&(z=_.chkDup);let j=!1;_&&void 0!==_.rt&&(j=_.rt);let y=R;for(;y&&!y.hasOwnProperty(c);)y=me(y);if(!y&&R[c]&&(y=R),!y||y[b])return!1;const G=_&&_.eventNameToString,h={},L=y[b]=y[c],w=y[O(a)]=y[a],te=y[O(T)]=y[T],le=y[O(d)]=y[d];let X;function U(s,f){return!ke&&"object"==typeof s&&s?!!s.capture:ke&&f?"boolean"==typeof s?{capture:s,passive:!0}:s?"object"==typeof s&&!1!==s.passive?Object.assign(Object.assign({},s),{passive:!0}):s:{passive:!0}:s}_&&_.prepend&&(X=y[O(_.prepend)]=y[_.prepend]);const t=Q?function(s){if(!h.isExisting)return L.call(h.target,h.eventName,h.capture?H:F,h.options)}:function(s){return L.call(h.target,h.eventName,s.invoke,h.options)},r=Q?function(s){if(!s.isRemoved){const f=ie[s.eventName];let m;f&&(m=f[s.capture?re:oe]);const P=m&&s.target[m];if(P)for(let g=0;g<P.length;g++)if(P[g]===s){P.splice(g,1),s.isRemoved=!0,0===P.length&&(s.allRemoved=!0,s.target[m]=null);break}}if(s.allRemoved)return w.call(s.target,s.eventName,s.capture?H:F,s.options)}:function(s){return w.call(s.target,s.eventName,s.invoke,s.options)},C=_&&_.diff?_.diff:function(s,f){const m=typeof f;return"function"===m&&s.callback===f||"object"===m&&s.originalDelegate===f},J=Zone[O("UNPATCHED_EVENTS")],l=e[O("PASSIVE_EVENTS")],u=function(s,f,m,P,g=!1,S=!1){return function(){const D=this||e;let Z=arguments[0];_&&_.transferEventName&&(Z=_.transferEventName(Z));let V=arguments[1];if(!V)return s.apply(this,arguments);if(Ze&&"uncaughtException"===Z)return s.apply(this,arguments);let B=!1;if("function"!=typeof V){if(!V.handleEvent)return s.apply(this,arguments);B=!0}if(x&&!x(s,V,D,arguments))return;const _e=ke&&!!l&&-1!==l.indexOf(Z),ue=U(arguments[2],_e);if(J)for(let pe=0;pe<J.length;pe++)if(Z===J[pe])return _e?s.call(D,Z,V,ue):s.apply(this,arguments);const Ge=!!ue&&("boolean"==typeof ue||ue.capture),nt=!(!ue||"object"!=typeof ue)&&ue.once,mt=Zone.current;let Ve=ie[Z];Ve||(Je(Z,G),Ve=ie[Z]);const rt=Ve[Ge?re:oe];let Le,be=D[rt],ot=!1;if(be){if(ot=!0,z)for(let pe=0;pe<be.length;pe++)if(C(be[pe],V))return}else be=D[rt]=[];const st=D.constructor.name,it=Ye[st];it&&(Le=it[Z]),Le||(Le=st+f+(G?G(Z):Z)),h.options=ue,nt&&(h.options.once=!1),h.target=D,h.capture=Ge,h.eventName=Z,h.isExisting=ot;const Se=Q?ht:void 0;Se&&(Se.taskData=h);const Ee=mt.scheduleEventTask(Le,V,Se,m,P);return h.target=null,Se&&(Se.taskData=null),nt&&(ue.once=!0),!ke&&"boolean"==typeof Ee.options||(Ee.options=ue),Ee.target=D,Ee.capture=Ge,Ee.eventName=Z,B&&(Ee.originalDelegate=V),S?be.unshift(Ee):be.push(Ee),g?D:void 0}};return y[c]=u(L,v,t,r,j),X&&(y.prependListener=u(X,".prependListener:",function(s){return X.call(h.target,h.eventName,s.invoke,h.options)},r,j,!0)),y[a]=function(){const s=this||e;let f=arguments[0];_&&_.transferEventName&&(f=_.transferEventName(f));const m=arguments[2],P=!!m&&("boolean"==typeof m||m.capture),g=arguments[1];if(!g)return w.apply(this,arguments);if(x&&!x(w,g,s,arguments))return;const S=ie[f];let D;S&&(D=S[P?re:oe]);const Z=D&&s[D];if(Z)for(let V=0;V<Z.length;V++){const B=Z[V];if(C(B,g))return Z.splice(V,1),B.isRemoved=!0,0===Z.length&&(B.allRemoved=!0,s[D]=null,"string"==typeof f)&&(s[ye+"ON_PROPERTY"+f]=null),B.zone.cancelTask(B),j?s:void 0}return w.apply(this,arguments)},y[T]=function(){const s=this||e;let f=arguments[0];_&&_.transferEventName&&(f=_.transferEventName(f));const m=[],P=Qe(s,G?G(f):f);for(let g=0;g<P.length;g++){const S=P[g];m.push(S.originalDelegate?S.originalDelegate:S.callback)}return m},y[d]=function(){const s=this||e;let f=arguments[0];if(f){_&&_.transferEventName&&(f=_.transferEventName(f));const m=ie[f];if(m){const S=s[m[oe]],D=s[m[re]];if(S){const Z=S.slice();for(let V=0;V<Z.length;V++){const B=Z[V];this[a].call(this,f,B.originalDelegate?B.originalDelegate:B.callback,B.options)}}if(D){const Z=D.slice();for(let V=0;V<Z.length;V++){const B=Z[V];this[a].call(this,f,B.originalDelegate?B.originalDelegate:B.callback,B.options)}}}}else{const m=Object.keys(s);for(let P=0;P<m.length;P++){const S=$e.exec(m[P]);let D=S&&S[1];D&&"removeListener"!==D&&this[d].call(this,D)}this[d].call(this,"removeListener")}if(j)return this},de(y[c],L),de(y[a],w),le&&de(y[d],le),te&&de(y[T],te),!0}let q=[];for(let R=0;R<i.length;R++)q[R]=ee(i[R],o);return q}function Qe(e,n){if(!n){const a=[];for(let T in e){const d=$e.exec(T);let b=d&&d[1];if(b&&(!n||b===n)){const v=e[T];if(v)for(let p=0;p<v.length;p++)a.push(v[p])}}return a}let i=ie[n];i||(Je(n),i=ie[n]);const o=e[i[oe]],c=e[i[re]];return o?c?o.concat(c):o.slice():c?c.slice():[]}function _t(e,n){const i=e.Event;i&&i.prototype&&n.patchMethod(i.prototype,"stopImmediatePropagation",o=>function(c,a){c[Ke]=!0,o&&o.apply(c,a)})}function Et(e,n,i,o,c){const a=Zone.__symbol__(o);if(n[a])return;const T=n[a]=n[o];n[o]=function(d,b,v){return b&&b.prototype&&c.forEach(function(p){const A=`${i}.${o}::`+p,N=b.prototype;if(N.hasOwnProperty(p)){const I=e.ObjectGetOwnPropertyDescriptor(N,p);I&&I.value?(I.value=e.wrapWithCurrentZone(I.value,A),e._redefineProperty(b.prototype,p,I)):N[p]&&(N[p]=e.wrapWithCurrentZone(N[p],A))}else N[p]&&(N[p]=e.wrapWithCurrentZone(N[p],A))}),T.call(n,d,b,v)},e.attachOriginToPatched(n[o],T)}function et(e,n,i){if(!i||0===i.length)return n;const o=i.filter(a=>a.target===e);if(!o||0===o.length)return n;const c=o[0].ignoreProperties;return n.filter(a=>-1===c.indexOf(a))}function tt(e,n,i,o){e&&ze(e,et(e,n,i),o)}function xe(e){return Object.getOwnPropertyNames(e).filter(n=>n.startsWith("on")&&n.length>2).map(n=>n.substring(2))}Zone.__load_patch("util",(e,n,i)=>{const o=xe(e);i.patchOnProperties=ze,i.patchMethod=he,i.bindArguments=Ae,i.patchMacroTask=lt;const c=n.__symbol__("BLACK_LISTED_EVENTS"),a=n.__symbol__("UNPATCHED_EVENTS");e[a]&&(e[c]=e[a]),e[c]&&(n[c]=n[a]=e[c]),i.patchEventPrototype=_t,i.patchEventTarget=dt,i.isIEOrEdge=ft,i.ObjectDefineProperty=ge,i.ObjectGetOwnPropertyDescriptor=fe,i.ObjectCreate=we,i.ArraySlice=Me,i.patchClass=Ce,i.wrapWithCurrentZone=De,i.filterProperties=et,i.attachOriginToPatched=de,i._redefineProperty=Object.defineProperty,i.patchCallbacks=Et,i.getGlobalObjects=()=>({globalSources:Ye,zoneSymbolEventNames:ie,eventNames:o,isBrowser:je,isMix:Ue,isNode:Ze,TRUE_STR:re,FALSE_STR:oe,ZONE_SYMBOL_PREFIX:ye,ADD_EVENT_LISTENER_STR:Pe,REMOVE_EVENT_LISTENER_STR:Oe})});const Ie=O("zoneTask");function ve(e,n,i,o){let c=null,a=null;i+=o;const T={};function d(v){const p=v.data;return p.args[0]=function(){return v.invoke.apply(this,arguments)},p.handleId=c.apply(e,p.args),v}function b(v){return a.call(e,v.data.handleId)}c=he(e,n+=o,v=>function(p,A){if("function"==typeof A[0]){const N={isPeriodic:"Interval"===o,delay:"Timeout"===o||"Interval"===o?A[1]||0:void 0,args:A},I=A[0];A[0]=function(){try{return I.apply(this,arguments)}finally{N.isPeriodic||("number"==typeof N.handleId?delete T[N.handleId]:N.handleId&&(N.handleId[Ie]=null))}};const F=$(n,A[0],N,d,b);if(!F)return F;const H=F.data.handleId;return"number"==typeof H?T[H]=F:H&&(H[Ie]=F),H&&H.ref&&H.unref&&"function"==typeof H.ref&&"function"==typeof H.unref&&(F.ref=H.ref.bind(H),F.unref=H.unref.bind(H)),"number"==typeof H||H?H:F}return v.apply(e,A)}),a=he(e,i,v=>function(p,A){const N=A[0];let I;"number"==typeof N?I=T[N]:(I=N&&N[Ie],I||(I=N)),I&&"string"==typeof I.type?"notScheduled"!==I.state&&(I.cancelFn&&I.data.isPeriodic||0===I.runCount)&&("number"==typeof N?delete T[N]:N&&(N[Ie]=null),I.zone.cancelTask(I)):v.apply(e,A)})}Zone.__load_patch("legacy",e=>{const n=e[Zone.__symbol__("legacyPatch")];n&&n()}),Zone.__load_patch("queueMicrotask",(e,n,i)=>{i.patchMethod(e,"queueMicrotask",o=>function(c,a){n.current.scheduleMicroTask("queueMicrotask",a[0])})}),Zone.__load_patch("timers",e=>{const n="set",i="clear";ve(e,n,i,"Timeout"),ve(e,n,i,"Interval"),ve(e,n,i,"Immediate")}),Zone.__load_patch("requestAnimationFrame",e=>{ve(e,"request","cancel","AnimationFrame"),ve(e,"mozRequest","mozCancel","AnimationFrame"),ve(e,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",(e,n)=>{const i=["alert","prompt","confirm"];for(let o=0;o<i.length;o++)he(e,i[o],(a,T,d)=>function(b,v){return n.current.run(a,e,v,d)})}),Zone.__load_patch("EventTarget",(e,n,i)=>{(function gt(e,n){n.patchEventPrototype(e,n)})(e,i),function pt(e,n){if(Zone[n.symbol("patchEventTarget")])return;const{eventNames:i,zoneSymbolEventNames:o,TRUE_STR:c,FALSE_STR:a,ZONE_SYMBOL_PREFIX:T}=n.getGlobalObjects();for(let b=0;b<i.length;b++){const v=i[b],N=T+(v+a),I=T+(v+c);o[v]={},o[v][a]=N,o[v][c]=I}const d=e.EventTarget;d&&d.prototype&&n.patchEventTarget(e,n,[d&&d.prototype])}(e,i);const o=e.XMLHttpRequestEventTarget;o&&o.prototype&&i.patchEventTarget(e,i,[o.prototype])}),Zone.__load_patch("MutationObserver",(e,n,i)=>{Ce("MutationObserver"),Ce("WebKitMutationObserver")}),Zone.__load_patch("IntersectionObserver",(e,n,i)=>{Ce("IntersectionObserver")}),Zone.__load_patch("FileReader",(e,n,i)=>{Ce("FileReader")}),Zone.__load_patch("on_property",(e,n,i)=>{!function Tt(e,n){if(Ze&&!Ue||Zone[e.symbol("patchEvents")])return;const i=n.__Zone_ignore_on_properties;let o=[];if(je){const c=window;o=o.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);const a=function ut(){try{const e=Y.navigator.userAgent;if(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/"))return!0}catch(e){}return!1}()?[{target:c,ignoreProperties:["error"]}]:[];tt(c,xe(c),i&&i.concat(a),me(c))}o=o.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let c=0;c<o.length;c++){const a=n[o[c]];a&&a.prototype&&tt(a.prototype,xe(a.prototype),i)}}(i,e)}),Zone.__load_patch("customElements",(e,n,i)=>{!function yt(e,n){const{isBrowser:i,isMix:o}=n.getGlobalObjects();(i||o)&&e.customElements&&"customElements"in e&&n.patchCallbacks(n,e.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(e,i)}),Zone.__load_patch("XHR",(e,n)=>{!function b(v){const p=v.XMLHttpRequest;if(!p)return;const A=p.prototype;let I=A[Re],F=A[Te];if(!I){const h=v.XMLHttpRequestEventTarget;if(h){const L=h.prototype;I=L[Re],F=L[Te]}}const H="readystatechange",ee="scheduled";function q(h){const L=h.data,w=L.target;w[a]=!1,w[d]=!1;const te=w[c];I||(I=w[Re],F=w[Te]),te&&F.call(w,H,te);const le=w[c]=()=>{if(w.readyState===w.DONE)if(!L.aborted&&w[a]&&h.state===ee){const U=w[n.__symbol__("loadfalse")];if(0!==w.status&&U&&U.length>0){const ae=h.invoke;h.invoke=function(){const ne=w[n.__symbol__("loadfalse")];for(let W=0;W<ne.length;W++)ne[W]===h&&ne.splice(W,1);!L.aborted&&h.state===ee&&ae.call(h)},U.push(h)}else h.invoke()}else!L.aborted&&!1===w[a]&&(w[d]=!0)};return I.call(w,H,le),w[i]||(w[i]=h),y.apply(w,L.args),w[a]=!0,h}function R(){}function _(h){const L=h.data;return L.aborted=!0,G.apply(L.target,L.args)}const Q=he(A,"open",()=>function(h,L){return h[o]=0==L[2],h[T]=L[1],Q.apply(h,L)}),z=O("fetchTaskAborting"),j=O("fetchTaskScheduling"),y=he(A,"send",()=>function(h,L){if(!0===n.current[j]||h[o])return y.apply(h,L);{const w={target:h,url:h[T],isPeriodic:!1,args:L,aborted:!1},te=$("XMLHttpRequest.send",R,w,q,_);h&&!0===h[d]&&!w.aborted&&te.state===ee&&te.invoke()}}),G=he(A,"abort",()=>function(h,L){const w=function N(h){return h[i]}(h);if(w&&"string"==typeof w.type){if(null==w.cancelFn||w.data&&w.data.aborted)return;w.zone.cancelTask(w)}else if(!0===n.current[z])return G.apply(h,L)})}(e);const i=O("xhrTask"),o=O("xhrSync"),c=O("xhrListener"),a=O("xhrScheduled"),T=O("xhrURL"),d=O("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",e=>{e.navigator&&e.navigator.geolocation&&function at(e,n){const i=e.constructor.name;for(let o=0;o<n.length;o++){const c=n[o],a=e[c];if(a){if(!Be(fe(e,c)))continue;e[c]=(d=>{const b=function(){return d.apply(this,Ae(arguments,i+"."+c))};return de(b,d),b})(a)}}}(e.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",(e,n)=>{function i(o){return function(c){Qe(e,o).forEach(T=>{const d=e.PromiseRejectionEvent;if(d){const b=new d(o,{promise:c.promise,reason:c.rejection});T.invoke(b)}})}}e.PromiseRejectionEvent&&(n[O("unhandledPromiseRejectionHandler")]=i("unhandledrejection"),n[O("rejectionHandledHandler")]=i("rejectionhandled"))})}},fe=>{fe(fe.s=955)}]);