mirror of https://github.com/ghostfolio/ghostfolio
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
36 KiB
9 lines
36 KiB
'use strict';
|
|
/**
|
|
* @license Angular
|
|
* (c) 2010-2025 Google LLC. https://angular.dev/
|
|
* License: MIT
|
|
*/(function(g,f){if(typeof define=="function"&&define.amd){define(["timers","crypto","events","fs"],function(_d_0,_d_1,_d_2,_d_3){var d={"timers": _d_0,"crypto": _d_1,"events": _d_2,"fs": _d_3},r=function(m){if(m in d) return d[m];if(typeof require=="function") return require(m);throw new Error("Cannot find module '"+m+"'")};return f(r)})}else if(typeof exports=="object" && typeof module<"u"){module.exports=f(require)}else{var gN={"timers":"timers","crypto":"crypto","events":"events","fs":"fs"},gReq=function(r){var mod = r in gN ? g[gN[r]] : g[r]; return mod };var m=f(gReq);for(var i in m) g[i]=m[i]}}(typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : this,function(require){var exports={};var __exports=exports;var module={exports};
|
|
"use strict";(function(he,ve){if(typeof define=="function"&&define.amd)define(["timers","crypto","events","fs"],function(Te,ge,Fe,ze){var me={timers:Te,crypto:ge,events:Fe,fs:ze},Ae=function(ke){if(ke in me)return me[ke];if(typeof require=="function")return require(ke);throw new Error("Cannot find module '"+ke+"'")};return ve(Ae)});else if(typeof exports=="object"&&typeof module<"u")module.exports=ve(require);else{var Re={timers:"timers",crypto:"crypto",events:"events",fs:"fs"},Ce=function(Te){var ge=Te in Re?he[Re[Te]]:he[Te];return ge},Ie=ve(Ce);for(var Ne in Ie)he[Ne]=Ie[Ne]}})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:exports,function(he){var ve={},Re=ve,Ce={exports:ve},Ie=Object.defineProperty,Ne=Object.defineProperties,Te=Object.getOwnPropertyDescriptors,ge=Object.getOwnPropertySymbols,Fe=Object.prototype.hasOwnProperty,ze=Object.prototype.propertyIsEnumerable,me=function(e,o,u){return o in e?Ie(e,o,{enumerable:!0,configurable:!0,writable:!0,value:u}):e[o]=u},Ae=function(e,o){for(var u in o||(o={}))Fe.call(o,u)&&me(e,u,o[u]);if(ge)for(var a=0,l=ge(o);a<l.length;a++){var u=l[a];ze.call(o,u)&&me(e,u,o[u])}return e},ke=function(e,o){return Ne(e,Te(o))},w=function(e,o,u){return me(e,typeof o!="symbol"?o+"":o,u),u},se=globalThis;function re(e){var o=se.__Zone_symbol_prefix||"__zone_symbol__";return o+e}function vr(){var e=se.performance;function o(v){e&&e.mark&&e.mark(v)}function u(v,t){e&&e.measure&&e.measure(v,t)}o("Zone");var a=function(){function v(t,r){w(this,"_parent"),w(this,"_name"),w(this,"_properties"),w(this,"_zoneDelegate"),this._parent=t,this._name=r?r.name||"unnamed":"<root>",this._properties=r&&r.properties||{},this._zoneDelegate=new _(this,this._parent&&this._parent._zoneDelegate,r)}return v.assertZonePatched=function(){if(se.Promise!==R.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.)")},Object.defineProperty(v,"root",{get:function(){for(var t=v.current;t.parent;)t=t.parent;return t},enumerable:!1,configurable:!0}),Object.defineProperty(v,"current",{get:function(){return x.zone},enumerable:!1,configurable:!0}),Object.defineProperty(v,"currentTask",{get:function(){return ie},enumerable:!1,configurable:!0}),v.__load_patch=function(t,r,n){if(n===void 0&&(n=!1),R.hasOwnProperty(t)){var E=se[re("forceDuplicateZoneCheck")]===!0;if(!n&&E)throw Error("Already loaded patch: "+t)}else if(!se["__Zone_disable_"+t]){var M="Zone:"+t;o(M),R[t]=r(se,v,q),u(M,M)}},Object.defineProperty(v.prototype,"parent",{get:function(){return this._parent},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),v.prototype.get=function(t){var r=this.getZoneWith(t);if(r)return r._properties[t]},v.prototype.getZoneWith=function(t){for(var r=this;r;){if(r._properties.hasOwnProperty(t))return r;r=r._parent}return null},v.prototype.fork=function(t){if(!t)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,t)},v.prototype.wrap=function(t,r){if(typeof t!="function")throw new Error("Expecting function got: "+t);var n=this._zoneDelegate.intercept(this,t,r),E=this;return function(){return E.runGuarded(n,this,arguments,r)}},v.prototype.run=function(t,r,n,E){x={parent:x,zone:this};try{return this._zoneDelegate.invoke(this,t,r,n,E)}finally{x=x.parent}},v.prototype.runGuarded=function(t,r,n,E){r===void 0&&(r=null),x={parent:x,zone:this};try{try{return this._zoneDelegate.invoke(this,t,r,n,E)}catch(M){if(this._zoneDelegate.handleError(this,M))throw M}}finally{x=x.parent}},v.prototype.runTask=function(t,r,n){if(t.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(t.zone||ne).name+"; Execution: "+this.name+")");var E=t,M=t.type,W=t.data,ue=W===void 0?{}:W,ye=ue.isPeriodic,ce=ye===void 0?!1:ye,pe=ue.isRefreshable,s=pe===void 0?!1:pe;if(!(t.state===A&&(M===H||M===b))){var f=t.state!=Y;f&&E._transitionTo(Y,p);var h=ie;ie=E,x={parent:x,zone:this};try{M==b&&t.data&&!ce&&!s&&(t.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,E,r,n)}catch(m){if(this._zoneDelegate.handleError(this,m))throw m}}finally{var i=t.state;if(i!==A&&i!==B)if(M==H||ce||s&&i===S)f&&E._transitionTo(p,Y,S);else{var d=E._zoneDelegates;this._updateTaskCount(E,-1),f&&E._transitionTo(A,Y,A),s&&(E._zoneDelegates=d)}x=x.parent,ie=h}}},v.prototype.scheduleTask=function(t){if(t.zone&&t.zone!==this)for(var r=this;r;){if(r===t.zone)throw Error("can not reschedule task to ".concat(this.name," which is descendants of the original zone ").concat(t.zone.name));r=r.parent}t._transitionTo(S,A);var n=[];t._zoneDelegates=n,t._zone=this;try{t=this._zoneDelegate.scheduleTask(this,t)}catch(E){throw t._transitionTo(B,S,A),this._zoneDelegate.handleError(this,E),E}return t._zoneDelegates===n&&this._updateTaskCount(t,1),t.state==S&&t._transitionTo(p,S),t},v.prototype.scheduleMicroTask=function(t,r,n,E){return this.scheduleTask(new T(V,t,r,n,E,void 0))},v.prototype.scheduleMacroTask=function(t,r,n,E,M){return this.scheduleTask(new T(b,t,r,n,E,M))},v.prototype.scheduleEventTask=function(t,r,n,E,M){return this.scheduleTask(new T(H,t,r,n,E,M))},v.prototype.cancelTask=function(t){if(t.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(t.zone||ne).name+"; Execution: "+this.name+")");if(!(t.state!==p&&t.state!==Y)){t._transitionTo(U,p,Y);try{this._zoneDelegate.cancelTask(this,t)}catch(r){throw t._transitionTo(B,U),this._zoneDelegate.handleError(this,r),r}return this._updateTaskCount(t,-1),t._transitionTo(A,U),t.runCount=-1,t}},v.prototype._updateTaskCount=function(t,r){var n=t._zoneDelegates;r==-1&&(t._zoneDelegates=null);for(var E=0;E<n.length;E++)n[E]._updateTaskCount(t.type,r)},v}();w(a,"__symbol__",re);var l=a,c={name:"",onHasTask:function(v,t,r,n){return v.hasTask(r,n)},onScheduleTask:function(v,t,r,n){return v.scheduleTask(r,n)},onInvokeTask:function(v,t,r,n,E,M){return v.invokeTask(r,n,E,M)},onCancelTask:function(v,t,r,n){return v.cancelTask(r,n)}},_=function(){function v(t,r,n){w(this,"_zone"),w(this,"_taskCounts",{microTask:0,macroTask:0,eventTask:0}),w(this,"_parentDelegate"),w(this,"_forkDlgt"),w(this,"_forkZS"),w(this,"_forkCurrZone"),w(this,"_interceptDlgt"),w(this,"_interceptZS"),w(this,"_interceptCurrZone"),w(this,"_invokeDlgt"),w(this,"_invokeZS"),w(this,"_invokeCurrZone"),w(this,"_handleErrorDlgt"),w(this,"_handleErrorZS"),w(this,"_handleErrorCurrZone"),w(this,"_scheduleTaskDlgt"),w(this,"_scheduleTaskZS"),w(this,"_scheduleTaskCurrZone"),w(this,"_invokeTaskDlgt"),w(this,"_invokeTaskZS"),w(this,"_invokeTaskCurrZone"),w(this,"_cancelTaskDlgt"),w(this,"_cancelTaskZS"),w(this,"_cancelTaskCurrZone"),w(this,"_hasTaskDlgt"),w(this,"_hasTaskDlgtOwner"),w(this,"_hasTaskZS"),w(this,"_hasTaskCurrZone"),this._zone=t,this._parentDelegate=r,this._forkZS=n&&(n&&n.onFork?n:r._forkZS),this._forkDlgt=n&&(n.onFork?r:r._forkDlgt),this._forkCurrZone=n&&(n.onFork?this._zone:r._forkCurrZone),this._interceptZS=n&&(n.onIntercept?n:r._interceptZS),this._interceptDlgt=n&&(n.onIntercept?r:r._interceptDlgt),this._interceptCurrZone=n&&(n.onIntercept?this._zone:r._interceptCurrZone),this._invokeZS=n&&(n.onInvoke?n:r._invokeZS),this._invokeDlgt=n&&(n.onInvoke?r:r._invokeDlgt),this._invokeCurrZone=n&&(n.onInvoke?this._zone:r._invokeCurrZone),this._handleErrorZS=n&&(n.onHandleError?n:r._handleErrorZS),this._handleErrorDlgt=n&&(n.onHandleError?r:r._handleErrorDlgt),this._handleErrorCurrZone=n&&(n.onHandleError?this._zone:r._handleErrorCurrZone),this._scheduleTaskZS=n&&(n.onScheduleTask?n:r._scheduleTaskZS),this._scheduleTaskDlgt=n&&(n.onScheduleTask?r:r._scheduleTaskDlgt),this._scheduleTaskCurrZone=n&&(n.onScheduleTask?this._zone:r._scheduleTaskCurrZone),this._invokeTaskZS=n&&(n.onInvokeTask?n:r._invokeTaskZS),this._invokeTaskDlgt=n&&(n.onInvokeTask?r:r._invokeTaskDlgt),this._invokeTaskCurrZone=n&&(n.onInvokeTask?this._zone:r._invokeTaskCurrZone),this._cancelTaskZS=n&&(n.onCancelTask?n:r._cancelTaskZS),this._cancelTaskDlgt=n&&(n.onCancelTask?r:r._cancelTaskDlgt),this._cancelTaskCurrZone=n&&(n.onCancelTask?this._zone:r._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;var E=n&&n.onHasTask,M=r&&r._hasTaskZS;(E||M)&&(this._hasTaskZS=E?n:c,this._hasTaskDlgt=r,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=this._zone,n.onScheduleTask||(this._scheduleTaskZS=c,this._scheduleTaskDlgt=r,this._scheduleTaskCurrZone=this._zone),n.onInvokeTask||(this._invokeTaskZS=c,this._invokeTaskDlgt=r,this._invokeTaskCurrZone=this._zone),n.onCancelTask||(this._cancelTaskZS=c,this._cancelTaskDlgt=r,this._cancelTaskCurrZone=this._zone))}return Object.defineProperty(v.prototype,"zone",{get:function(){return this._zone},enumerable:!1,configurable:!0}),v.prototype.fork=function(t,r){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,t,r):new l(t,r)},v.prototype.intercept=function(t,r,n){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,t,r,n):r},v.prototype.invoke=function(t,r,n,E,M){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,t,r,n,E,M):r.apply(n,E)},v.prototype.handleError=function(t,r){return this._handleErrorZS?this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,t,r):!0},v.prototype.scheduleTask=function(t,r){var n=r;if(this._scheduleTaskZS)this._hasTaskZS&&n._zoneDelegates.push(this._hasTaskDlgtOwner),n=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,t,r),n||(n=r);else if(r.scheduleFn)r.scheduleFn(r);else if(r.type==V)N(r);else throw new Error("Task is missing scheduleFn.");return n},v.prototype.invokeTask=function(t,r,n,E){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,t,r,n,E):r.callback.apply(n,E)},v.prototype.cancelTask=function(t,r){var n;if(this._cancelTaskZS)n=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,t,r);else{if(!r.cancelFn)throw Error("Task is not cancelable");n=r.cancelFn(r)}return n},v.prototype.hasTask=function(t,r){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,t,r)}catch(n){this.handleError(t,n)}},v.prototype._updateTaskCount=function(t,r){var n=this._taskCounts,E=n[t],M=n[t]=E+r;if(M<0)throw new Error("More tasks executed then were scheduled.");if(E==0||M==0){var W={microTask:n.microTask>0,macroTask:n.macroTask>0,eventTask:n.eventTask>0,change:t};this.hasTask(this._zone,W)}},v}(),T=function(){function v(t,r,n,E,M,W){if(w(this,"type"),w(this,"source"),w(this,"invoke"),w(this,"callback"),w(this,"data"),w(this,"scheduleFn"),w(this,"cancelFn"),w(this,"_zone",null),w(this,"runCount",0),w(this,"_zoneDelegates",null),w(this,"_state","notScheduled"),this.type=t,this.source=r,this.data=E,this.scheduleFn=M,this.cancelFn=W,!n)throw new Error("callback is not defined");this.callback=n;var ue=this;t===H&&E&&E.useG?this.invoke=v.invokeTask:this.invoke=function(){return v.invokeTask.call(se,ue,this,arguments)}}return v.invokeTask=function(t,r,n){t||(t=this),le++;try{return t.runCount++,t.zone.runTask(t,r,n)}finally{le==1&&K(),le--}},Object.defineProperty(v.prototype,"zone",{get:function(){return this._zone},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),v.prototype.cancelScheduleRequest=function(){this._transitionTo(A,S)},v.prototype._transitionTo=function(t,r,n){if(this._state===r||this._state===n)this._state=t,t==A&&(this._zoneDelegates=null);else throw new Error("".concat(this.type," '").concat(this.source,"': can not transition to '").concat(t,"', expecting state '").concat(r,"'").concat(n?" or '"+n+"'":"",", was '").concat(this._state,"'."))},v.prototype.toString=function(){return this.data&&typeof this.data.handleId!="undefined"?this.data.handleId.toString():Object.prototype.toString.call(this)},v.prototype.toJSON=function(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}},v}(),y=re("setTimeout"),I=re("Promise"),P=re("then"),k=[],L=!1,j;function ee(v){if(j||se[I]&&(j=se[I].resolve(0)),j){var t=j[P];t||(t=j.then),t.call(j,v)}else se[y](v,0)}function N(v){le===0&&k.length===0&&ee(K),v&&k.push(v)}function K(){if(!L){for(L=!0;k.length;){var v=k;k=[];for(var t=0;t<v.length;t++){var r=v[t];try{r.zone.runTask(r,null,null)}catch(n){q.onUnhandledError(n)}}}q.microtaskDrainDone(),L=!1}}var ne={name:"NO ZONE"},A="notScheduled",S="scheduling",p="scheduled",Y="running",U="canceling",B="unknown",V="microTask",b="macroTask",H="eventTask",R={},q={symbol:re,currentZoneFrame:function(){return x},onUnhandledError:G,microtaskDrainDone:G,scheduleMicroTask:N,showUncaughtError:function(){return!l[re("ignoreConsoleErrorUncaughtError")]},patchEventTarget:function(){return[]},patchOnProperties:G,patchMethod:function(){return G},bindArguments:function(){return[]},patchThen:function(){return G},patchMacroTask:function(){return G},patchEventPrototype:function(){return G},getGlobalObjects:function(){},ObjectDefineProperty:function(){return G},ObjectGetOwnPropertyDescriptor:function(){},ObjectCreate:function(){},ArraySlice:function(){return[]},patchClass:function(){return G},wrapWithCurrentZone:function(){return G},filterProperties:function(){return[]},attachOriginToPatched:function(){return G},_redefineProperty:function(){return G},patchCallbacks:function(){return G},nativeScheduleMicroTask:ee},x={parent:null,zone:new l(null,null)},ie=null,le=0;function G(){}return u("Zone","Zone"),l}var Ue=Object.getOwnPropertyDescriptor,dr=Object.defineProperty,Be=Object.getPrototypeOf,_r=Array.prototype.slice,Ye="addEventListener",Je="removeEventListener",Hr=re(Ye),xr=re(Je),de="true",_e="false",Me=re("");function pr(e,o){return Zone.current.wrap(e,o)}function Qe(e,o,u,a,l){return Zone.current.scheduleMacroTask(e,o,u,a,l)}var Q=re,Le=typeof window!="undefined",je=Le?window:void 0,te=Le&&je||globalThis,Tr="removeAttribute";function yr(e,o){for(var u=e.length-1;u>=0;u--)typeof e[u]=="function"&&(e[u]=pr(e[u],o+"_"+u));return e}function Er(e){return e?e.writable===!1?!1:!(typeof e.get=="function"&&typeof e.set=="undefined"):!0}var Ke=typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope,Xe=!("nw"in te)&&typeof te.process!="undefined"&&te.process.toString()==="[object process]",gr=!Xe&&!Ke&&!!(Le&&je.HTMLElement),$e=typeof te.process!="undefined"&&te.process.toString()==="[object process]"&&!Ke&&!!(Le&&je.HTMLElement),Ve={},mr=Q("enable_beforeunload"),qe=function(e){if(e=e||te.event,!!e){var o=Ve[e.type];o||(o=Ve[e.type]=Q("ON_PROPERTY"+e.type));var u=this||e.target||te,a=u[o],l;if(gr&&u===je&&e.type==="error"){var c=e;l=a&&a.call(this,c.message,c.filename,c.lineno,c.colno,c.error),l===!0&&e.preventDefault()}else l=a&&a.apply(this,arguments),e.type==="beforeunload"&&te[mr]&&typeof l=="string"?e.returnValue=l:l!=null&&!l&&e.preventDefault();return l}};function er(e,o,u){var a=Ue(e,o);if(!a&&u){var l=Ue(u,o);l&&(a={enumerable:!0,configurable:!0})}if(!(!a||!a.configurable)){var c=Q("on"+o+"patched");if(!(e.hasOwnProperty(c)&&e[c])){delete a.writable,delete a.value;var _=a.get,T=a.set,y=o.slice(2),I=Ve[y];I||(I=Ve[y]=Q("ON_PROPERTY"+y)),a.set=function(P){var k=this;if(!k&&e===te&&(k=te),!!k){var L=k[I];typeof L=="function"&&k.removeEventListener(y,qe),T==null||T.call(k,null),k[I]=P,typeof P=="function"&&k.addEventListener(y,qe,!1)}},a.get=function(){var P=this;if(!P&&e===te&&(P=te),!P)return null;var k=P[I];if(k)return k;if(_){var L=_.call(this);if(L)return a.set.call(this,L),typeof P[Tr]=="function"&&P.removeAttribute(o),L}return null},dr(e,o,a),e[c]=!0}}}function kr(e,o,u){if(o)for(var a=0;a<o.length;a++)er(e,"on"+o[a],u);else{var l=[];for(var c in e)c.slice(0,2)=="on"&&l.push(c);for(var _=0;_<l.length;_++)er(e,l[_],u)}}var Fr=Q("originalInstance");function br(e,o){if(typeof Object.getOwnPropertySymbols=="function"){var u=Object.getOwnPropertySymbols(e);u.forEach(function(a){var l=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(o,a,{get:function(){return e[a]},set:function(c){l&&(!l.writable||typeof l.set!="function")||(e[a]=c)},enumerable:l?l.enumerable:!0,configurable:l?l.configurable:!0})})}}var rr=!1;function wr(e){rr=e}function be(e,o,u){for(var a=e;a&&!a.hasOwnProperty(o);)a=Be(a);!a&&e[o]&&(a=e);var l=Q(o),c=null;if(a&&(!(c=a[l])||!a.hasOwnProperty(l))){c=a[l]=a[o];var _=a&&Ue(a,o);if(Er(_)){var T=u(c,l,o);a[o]=function(){return T(this,arguments)},Oe(a[o],c),rr&&br(c,a[o])}}return c}function Ge(e,o,u){var a=null;function l(c){var _=c.data;return _.args[_.cbIdx]=function(){c.invoke.apply(this,arguments)},a.apply(_.target,_.args),c}a=be(e,o,function(c){return function(_,T){var y=u(_,T);return y.cbIdx>=0&&typeof T[y.cbIdx]=="function"?Qe(y.name,T[y.cbIdx],y,l):c.apply(_,T)}})}function Pr(e,o,u){var a=null;function l(c){var _=c.data;return _.args[_.cbIdx]=function(){c.invoke.apply(this,arguments)},a.apply(_.target,_.args),c}a=be(e,o,function(c){return function(_,T){var y=u(_,T);return y.cbIdx>=0&&typeof T[y.cbIdx]=="function"?Zone.current.scheduleMicroTask(y.name,T[y.cbIdx],y,l):c.apply(_,T)}})}function Oe(e,o){e[Q("OriginalDelegate")]=o}function tr(e){return typeof e=="function"}function nr(e){return typeof e=="number"}function Sr(e){e.__load_patch("ZoneAwarePromise",function(o,u,a){var l=Object.getOwnPropertyDescriptor,c=Object.defineProperty;function _(s){if(s&&s.toString===Object.prototype.toString){var f=s.constructor&&s.constructor.name;return(f||"")+": "+JSON.stringify(s)}return s?s.toString():Object.prototype.toString.call(s)}var T=a.symbol,y=[],I=o[T("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")]!==!1,P=T("Promise"),k=T("then"),L="__creationTrace__";a.onUnhandledError=function(s){if(a.showUncaughtError()){var f=s&&s.rejection;f?console.error("Unhandled Promise rejection:",f instanceof Error?f.message:f,"; Zone:",s.zone.name,"; Task:",s.task&&s.task.source,"; Value:",f,f instanceof Error?f.stack:void 0):console.error(s)}},a.microtaskDrainDone=function(){for(var s=function(){var f=y.shift();try{f.zone.runGuarded(function(){throw f.throwOriginal?f.rejection:f})}catch(h){ee(h)}};y.length;)s()};var j=T("unhandledPromiseRejectionHandler");function ee(s){a.onUnhandledError(s);try{var f=u[j];typeof f=="function"&&f.call(this,s)}catch(h){}}function N(s){return s&&typeof s.then=="function"}function K(s){return s}function ne(s){return W.reject(s)}var A=T("state"),S=T("value"),p=T("finally"),Y=T("parentPromiseValue"),U=T("parentPromiseState"),B="Promise.then",V=null,b=!0,H=!1,R=0;function q(s,f){return function(h){try{G(s,f,h)}catch(i){G(s,!1,i)}}}var x=function(){var s=!1;return function(h){return function(){s||(s=!0,h.apply(null,arguments))}}},ie="Promise resolved with itself",le=T("currentTaskTrace");function G(s,f,h){var i=x();if(s===h)throw new TypeError(ie);if(s[A]===V){var d=null;try{(typeof h=="object"||typeof h=="function")&&(d=h&&h.then)}catch(D){return i(function(){G(s,!1,D)})(),s}if(f!==H&&h instanceof W&&h.hasOwnProperty(A)&&h.hasOwnProperty(S)&&h[A]!==V)t(h),G(s,h[A],h[S]);else if(f!==H&&typeof d=="function")try{d.call(h,i(q(s,f)),i(q(s,!1)))}catch(D){i(function(){G(s,!1,D)})()}else{s[A]=f;var m=s[S];if(s[S]=h,s[p]===p&&f===b&&(s[A]=s[U],s[S]=s[Y]),f===H&&h instanceof Error){var g=u.currentTask&&u.currentTask.data&&u.currentTask.data[L];g&&c(h,le,{configurable:!0,enumerable:!1,writable:!0,value:g})}for(var Z=0;Z<m.length;)r(s,m[Z++],m[Z++],m[Z++],m[Z++]);if(m.length==0&&f==H){s[A]=R;var O=h;try{throw new Error("Uncaught (in promise): "+_(h)+(h&&h.stack?"\n"+h.stack:""))}catch(D){O=D}I&&(O.throwOriginal=!0),O.rejection=h,O.promise=s,O.zone=u.current,O.task=u.currentTask,y.push(O),a.scheduleMicroTask()}}}return s}var v=T("rejectionHandledHandler");function t(s){if(s[A]===R){try{var f=u[v];f&&typeof f=="function"&&f.call(this,{rejection:s[S],promise:s})}catch(i){}s[A]=H;for(var h=0;h<y.length;h++)s===y[h].promise&&y.splice(h,1)}}function r(s,f,h,i,d){t(s);var m=s[A],g=m?typeof i=="function"?i:K:typeof d=="function"?d:ne;f.scheduleMicroTask(B,function(){try{var Z=s[S],O=!!h&&p===h[p];O&&(h[Y]=Z,h[U]=m);var D=f.run(g,void 0,O&&g!==ne&&g!==K?[]:[Z]);G(h,!0,D)}catch(C){G(h,!1,C)}},h)}var n="function ZoneAwarePromise() { [native code] }",E=function(){},M=o.AggregateError,W=function(){function s(f){var h=this;if(!(h instanceof s))throw new Error("Must be an instanceof Promise.");h[A]=V,h[S]=[];try{var i=x();f&&f(i(q(h,b)),i(q(h,H)))}catch(d){G(h,!1,d)}}return s.toString=function(){return n},s.resolve=function(f){return f instanceof s?f:G(new this(null),b,f)},s.reject=function(f){return G(new this(null),H,f)},s.withResolvers=function(){var f={};return f.promise=new s(function(h,i){f.resolve=h,f.reject=i}),f},s.any=function(f){if(!f||typeof f[Symbol.iterator]!="function")return Promise.reject(new M([],"All promises were rejected"));var h=[],i=0;try{for(var d=0,m=f;d<m.length;d++){var g=m[d];i++,h.push(s.resolve(g))}}catch(D){return Promise.reject(new M([],"All promises were rejected"))}if(i===0)return Promise.reject(new M([],"All promises were rejected"));var Z=!1,O=[];return new s(function(D,C){for(var F=0;F<h.length;F++)h[F].then(function($){Z||(Z=!0,D($))},function($){O.push($),i--,i===0&&(Z=!0,C(new M(O,"All promises were rejected")))})})},s.race=function(f){var h,i,d=new this(function(C,F){h=C,i=F});function m(C){h(C)}function g(C){i(C)}for(var Z=0,O=f;Z<O.length;Z++){var D=O[Z];N(D)||(D=this.resolve(D)),D.then(m,g)}return d},s.all=function(f){return s.allWithCallback(f)},s.allSettled=function(f){var h=this&&this.prototype instanceof s?this:s;return h.allWithCallback(f,{thenCallback:function(i){return{status:"fulfilled",value:i}},errorCallback:function(i){return{status:"rejected",reason:i}}})},s.allWithCallback=function(f,h){for(var i,d,m=new this(function(J,X){i=J,d=X}),g=2,Z=0,O=[],D=function(J){N(J)||(J=C.resolve(J));var X=Z;try{J.then(function(z){O[X]=h?h.thenCallback(z):z,g--,g===0&&i(O)},function(z){h?(O[X]=h.errorCallback(z),g--,g===0&&i(O)):d(z)})}catch(z){d(z)}g++,Z++},C=this,F=0,$=f;F<$.length;F++){var fe=$[F];D(fe)}return g-=2,g===0&&i(O),m},Object.defineProperty(s.prototype,Symbol.toStringTag,{get:function(){return"Promise"},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,Symbol.species,{get:function(){return s},enumerable:!1,configurable:!0}),s.prototype.then=function(f,h){var i,d=(i=this.constructor)==null?void 0:i[Symbol.species];(!d||typeof d!="function")&&(d=this.constructor||s);var m=new d(E),g=u.current;return this[A]==V?this[S].push(g,m,f,h):r(this,g,m,f,h),m},s.prototype.catch=function(f){return this.then(null,f)},s.prototype.finally=function(f){var h,i=(h=this.constructor)==null?void 0:h[Symbol.species];(!i||typeof i!="function")&&(i=s);var d=new i(E);d[p]=p;var m=u.current;return this[A]==V?this[S].push(m,d,f,f):r(this,m,d,f,f),d},s}();W.resolve=W.resolve,W.reject=W.reject,W.race=W.race,W.all=W.all;var ue=o[P]=o.Promise;o.Promise=W;var ye=T("thenPatched");function ce(s){var f=s.prototype,h=l(f,"then");if(!(h&&(h.writable===!1||!h.configurable))){var i=f.then;f[k]=i,s.prototype.then=function(d,m){var g=this,Z=new W(function(O,D){i.call(g,O,D)});return Z.then(d,m)},s[ye]=!0}}a.patchThen=ce;function pe(s){return function(f,h){var i=s.apply(f,h);if(i instanceof W)return i;var d=i.constructor;return d[ye]||ce(d),i}}return ue&&(ce(ue),be(o,"fetch",function(s){return pe(s)})),Promise[u.__symbol__("uncaughtPromiseErrors")]=y,W})}function Zr(e){e.__load_patch("toString",function(o){var u=Function.prototype.toString,a=Q("OriginalDelegate"),l=Q("Promise"),c=Q("Error"),_=function(){if(typeof this=="function"){var P=this[a];if(P)return typeof P=="function"?u.call(P):Object.prototype.toString.call(P);if(this===Promise){var k=o[l];if(k)return u.call(k)}if(this===Error){var L=o[c];if(L)return u.call(L)}}return u.call(this)};_[a]=u,Function.prototype.toString=_;var T=Object.prototype.toString,y="[object Promise]";Object.prototype.toString=function(){return typeof Promise=="function"&&this instanceof Promise?y:T.call(this)}})}function Or(){var e,o=globalThis,u=o[re("forceDuplicateZoneCheck")]===!0;if(o.Zone&&(u||typeof o.Zone.__symbol__!="function"))throw new Error("Zone already loaded.");return(e=o.Zone)!=null||(o.Zone=vr()),o.Zone}var Dr={useG:!0},oe={},Rr={},or=new RegExp("^"+Me+"(\\w+)(true|false)$"),Cr=Q("propagationStopped");function ir(e,o){var u=(o?o(e):e)+_e,a=(o?o(e):e)+de,l=Me+u,c=Me+a;oe[e]={},oe[e][_e]=l,oe[e][de]=c}function Ir(e,o,u,a){var l=a&&a.add||Ye,c=a&&a.rm||Je,_=a&&a.listeners||"eventListeners",T=a&&a.rmAll||"removeAllListeners",y=Q(l),I="."+l+":",P="prependListener",k="."+P+":",L=function(S,p,Y){if(!S.isRemoved){var U=S.callback;typeof U=="object"&&U.handleEvent&&(S.callback=function(H){return U.handleEvent(H)},S.originalDelegate=U);var B;try{S.invoke(S,p,[Y])}catch(H){B=H}var V=S.options;if(V&&typeof V=="object"&&V.once){var b=S.originalDelegate?S.originalDelegate:S.callback;p[c].call(p,Y.type,b,V)}return B}};function j(S,p,Y){if(p=p||e.event,!!p){var U=S||p.target||e,B=U[oe[p.type][Y?de:_e]];if(B){var V=[];if(B.length===1){var b=L(B[0],U,p);b&&V.push(b)}else for(var H=B.slice(),R=0;R<H.length&&!(p&&p[Cr]===!0);R++){var b=L(H[R],U,p);b&&V.push(b)}if(V.length===1)throw V[0];for(var q=function(x){var ie=V[x];o.nativeScheduleMicroTask(function(){throw ie})},R=0;R<V.length;R++)q(R)}}}var ee=function(S){return j(this,S,!1)},N=function(S){return j(this,S,!0)};function K(S,p){if(!S)return!1;var Y=!0;p&&p.useG!==void 0&&(Y=p.useG);var U=p&&p.vh,B=!0;p&&p.chkDup!==void 0&&(B=p.chkDup);var V=!1;p&&p.rt!==void 0&&(V=p.rt);for(var b=S;b&&!b.hasOwnProperty(l);)b=Be(b);if(!b&&S[l]&&(b=S),!b||b[y])return!1;var H=p&&p.eventNameToString,R={},q=b[y]=b[l],x=b[Q(c)]=b[c],ie=b[Q(_)]=b[_],le=b[Q(T)]=b[T],G;p&&p.prepend&&(G=b[Q(p.prepend)]=b[p.prepend]);function v(i,d){return d?typeof i=="boolean"?{capture:i,passive:!0}:i?typeof i=="object"&&i.passive!==!1?ke(Ae({},i),{passive:!0}):i:{passive:!0}:i}var t=function(i){if(!R.isExisting)return q.call(R.target,R.eventName,R.capture?N:ee,R.options)},r=function(i){if(!i.isRemoved){var d=oe[i.eventName],m=void 0;d&&(m=d[i.capture?de:_e]);var g=m&&i.target[m];if(g)for(var Z=0;Z<g.length;Z++){var O=g[Z];if(O===i){g.splice(Z,1),i.isRemoved=!0,i.removeAbortListener&&(i.removeAbortListener(),i.removeAbortListener=null),g.length===0&&(i.allRemoved=!0,i.target[m]=null);break}}}if(i.allRemoved)return x.call(i.target,i.eventName,i.capture?N:ee,i.options)},n=function(i){return q.call(R.target,R.eventName,i.invoke,R.options)},E=function(i){return G.call(R.target,R.eventName,i.invoke,R.options)},M=function(i){return x.call(i.target,i.eventName,i.invoke,i.options)},W=Y?t:n,ue=Y?r:M,ye=function(i,d){var m=typeof d;return m==="function"&&i.callback===d||m==="object"&&i.originalDelegate===d},ce=(p==null?void 0:p.diff)||ye,pe=Zone[Q("UNPATCHED_EVENTS")],s=e[Q("PASSIVE_EVENTS")];function f(i){if(typeof i=="object"&&i!==null){var d=Ae({},i);return i.signal&&(d.signal=i.signal),d}return i}var h=function(i,d,m,g,Z,O){return Z===void 0&&(Z=!1),O===void 0&&(O=!1),function(){var D=this||e,C=arguments[0];p&&p.transferEventName&&(C=p.transferEventName(C));var F=arguments[1];if(!F)return i.apply(this,arguments);if(Xe&&C==="uncaughtException")return i.apply(this,arguments);var $=!1;if(typeof F!="function"){if(!F.handleEvent)return i.apply(this,arguments);$=!0}if(!(U&&!U(i,F,D,arguments))){var fe=!!s&&s.indexOf(C)!==-1,J=f(v(arguments[2],fe)),X=J==null?void 0:J.signal;if(!(X!=null&&X.aborted)){if(pe){for(var z=0;z<pe.length;z++)if(C===pe[z])return fe?i.call(D,C,F,J):i.apply(this,arguments)}var Ee=J?typeof J=="boolean"?!0:J.capture:!1,sr=J&&typeof J=="object"?J.once:!1,Gr=Zone.current,We=oe[C];We||(ir(C,H),We=oe[C]);var ur=We[Ee?de:_e],Ze=D[ur],lr=!1;if(Ze){if(lr=!0,B){for(var z=0;z<Ze.length;z++)if(ce(Ze[z],F))return}}else Ze=D[ur]=[];var xe,cr=D.constructor.name,fr=Rr[cr];fr&&(xe=fr[C]),xe||(xe=cr+d+(H?H(C):C)),R.options=J,sr&&(R.options.once=!1),R.target=D,R.capture=Ee,R.eventName=C,R.isExisting=lr;var De=Y?Dr:void 0;De&&(De.taskData=R),X&&(R.options.signal=void 0);var ae=Gr.scheduleEventTask(xe,F,De,m,g);if(X){R.options.signal=X;var hr=function(){return ae.zone.cancelTask(ae)};i.call(X,"abort",hr,{once:!0}),ae.removeAbortListener=function(){return X.removeEventListener("abort",hr)}}if(R.target=null,De&&(De.taskData=null),sr&&(R.options.once=!0),typeof ae.options!="boolean"&&(ae.options=J),ae.target=D,ae.capture=Ee,ae.eventName=C,$&&(ae.originalDelegate=F),O?Ze.unshift(ae):Ze.push(ae),Z)return D}}}};return b[l]=h(q,I,W,ue,V),G&&(b[P]=h(G,k,E,ue,V,!0)),b[c]=function(){var i=this||e,d=arguments[0];p&&p.transferEventName&&(d=p.transferEventName(d));var m=arguments[2],g=m?typeof m=="boolean"?!0:m.capture:!1,Z=arguments[1];if(!Z)return x.apply(this,arguments);if(!(U&&!U(x,Z,i,arguments))){var O=oe[d],D;O&&(D=O[g?de:_e]);var C=D&&i[D];if(C)for(var F=0;F<C.length;F++){var $=C[F];if(ce($,Z)){if(C.splice(F,1),$.isRemoved=!0,C.length===0&&($.allRemoved=!0,i[D]=null,!g&&typeof d=="string")){var fe=Me+"ON_PROPERTY"+d;i[fe]=null}return $.zone.cancelTask($),V?i:void 0}}return x.apply(this,arguments)}},b[_]=function(){var i=this||e,d=arguments[0];p&&p.transferEventName&&(d=p.transferEventName(d));for(var m=[],g=ar(i,H?H(d):d),Z=0;Z<g.length;Z++){var O=g[Z],D=O.originalDelegate?O.originalDelegate:O.callback;m.push(D)}return m},b[T]=function(){var i=this||e,d=arguments[0];if(d){p&&p.transferEventName&&(d=p.transferEventName(d));var C=oe[d];if(C){var F=C[_e],$=C[de],fe=i[F],J=i[$];if(fe)for(var X=fe.slice(),g=0;g<X.length;g++){var z=X[g],Ee=z.originalDelegate?z.originalDelegate:z.callback;this[c].call(this,d,Ee,z.options)}if(J)for(var X=J.slice(),g=0;g<X.length;g++){var z=X[g],Ee=z.originalDelegate?z.originalDelegate:z.callback;this[c].call(this,d,Ee,z.options)}}}else{for(var m=Object.keys(i),g=0;g<m.length;g++){var Z=m[g],O=or.exec(Z),D=O&&O[1];D&&D!=="removeListener"&&this[T].call(this,D)}this[T].call(this,"removeListener")}if(V)return this},Oe(b[l],q),Oe(b[c],x),le&&Oe(b[T],le),ie&&Oe(b[_],ie),!0}for(var ne=[],A=0;A<u.length;A++)ne[A]=K(u[A],a);return ne}function ar(e,o){if(!o){var u=[];for(var a in e){var l=or.exec(a),c=l&&l[1];if(c&&(!o||c===o)){var _=e[a];if(_)for(var T=0;T<_.length;T++)u.push(_[T])}}return u}var y=oe[o];y||(ir(o),y=oe[o]);var I=e[y[_e]],P=e[y[de]];return I?P?I.concat(P):I.slice():P?P.slice():[]}function Nr(e,o){o.patchMethod(e,"queueMicrotask",function(u){return function(a,l){Zone.current.scheduleMicroTask("queueMicrotask",l[0])}})}var He=Q("zoneTask");function we(e,o,u,a){var l=null,c=null;o+=a,u+=a;var _={};function T(I){var P=I.data;P.args[0]=function(){return I.invoke.apply(this,arguments)};var k=l.apply(e,P.args);return nr(k)?P.handleId=k:(P.handle=k,P.isRefreshable=tr(k.refresh)),I}function y(I){var P=I.data,k=P.handle,L=P.handleId;return c.call(e,k!=null?k:L)}l=be(e,o,function(I){return function(P,k){var L;if(tr(k[0])){var j={isRefreshable:!1,isPeriodic:a==="Interval",delay:a==="Timeout"||a==="Interval"?k[1]||0:void 0,args:k},ee=k[0];k[0]=function(){try{return ee.apply(this,arguments)}finally{var B=j.handle,V=j.handleId,b=j.isPeriodic,H=j.isRefreshable;!b&&!H&&(V?delete _[V]:B&&(B[He]=null))}};var N=Qe(o,k[0],j,T,y);if(!N)return N;var K=N.data,ne=K.handleId,A=K.handle,S=K.isRefreshable,p=K.isPeriodic;if(ne)_[ne]=N;else if(A&&(A[He]=N,S&&!p)){var Y=A.refresh;A.refresh=function(){var U=N.zone,B=N.state;return B==="notScheduled"?(N._state="scheduled",U._updateTaskCount(N,1)):B==="running"&&(N._state="scheduling"),Y.call(this)}}return(L=A!=null?A:ne)!=null?L:N}else return I.apply(e,k)}}),c=be(e,u,function(I){return function(P,k){var L=k[0],j;nr(L)?(j=_[L],delete _[L]):(j=L==null?void 0:L[He],j?L[He]=null:j=L),j!=null&&j.type?j.cancelFn&&j.zone.cancelTask(j):I.apply(e,k)}})}function Ar(e){e.__load_patch("EventEmitter",function(o,u,a){var l="addListener",c="prependListener",_="removeListener",T="removeAllListeners",y="listeners",I="on",P="off",k=function(N,K){return N.callback===K||N.callback.listener===K},L=function(N){return typeof N=="string"?N:N?N.toString().replace("(","_").replace(")","_"):""};function j(N){var K=Ir(o,a,[N],{useG:!1,add:l,rm:_,prepend:c,rmAll:T,listeners:y,chkDup:!1,rt:!0,diff:k,eventNameToString:L});K&&K[0]&&(N[I]=N[l],N[P]=N[_])}var ee;try{ee=he("events")}catch(N){}ee&&ee.EventEmitter&&j(ee.EventEmitter.prototype)})}function Mr(e){e.__load_patch("fs",function(o,u,a){var l,c;try{c=he("fs")}catch(y){}if(c){var _=["access","appendFile","chmod","chown","close","exists","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","lutimes","link","lstat","mkdir","mkdtemp","open","opendir","read","readdir","readFile","readlink","realpath","rename","rmdir","stat","symlink","truncate","unlink","utimes","write","writeFile","writev"];_.filter(function(y){return!!c[y]&&typeof c[y]=="function"}).forEach(function(y){Ge(c,y,function(I,P){return{name:"fs."+y,args:P,cbIdx:P.length>0?P.length-1:-1,target:I}})});var T=(l=c.realpath)==null?void 0:l[a.symbol("OriginalDelegate")];T!=null&&T.native&&(c.realpath.native=T.native,Ge(c.realpath,"native",function(y,I){return{args:I,target:y,cbIdx:I.length>0?I.length-1:-1,name:"fs.realpath.native"}}))}})}function Lr(e){e.__load_patch("node_util",function(o,u,a){a.patchOnProperties=kr,a.patchMethod=be,a.bindArguments=yr,a.patchMacroTask=Ge,wr(!0)})}var Pe="set",Se="clear";function jr(e){Lr(e),Ar(e),Mr(e),e.__load_patch("node_timers",function(o,u){var a=!1;try{var l=he("timers"),c=o.setTimeout===l.setTimeout;if(!c&&!$e){var _=l.setTimeout;l.setTimeout=function(){return a=!0,_.apply(this,arguments)};var T=o.setTimeout(function(){},100);clearTimeout(T),l.setTimeout=_}we(l,Pe,Se,"Timeout"),we(l,Pe,Se,"Interval"),we(l,Pe,Se,"Immediate")}catch(y){}$e||(a?(o[u.__symbol__("setTimeout")]=o.setTimeout,o[u.__symbol__("setInterval")]=o.setInterval,o[u.__symbol__("setImmediate")]=o.setImmediate):(we(o,Pe,Se,"Timeout"),we(o,Pe,Se,"Interval"),we(o,Pe,Se,"Immediate")))}),e.__load_patch("nextTick",function(){Pr(process,"nextTick",function(o,u){return{name:"process.nextTick",args:u,cbIdx:u.length>0&&typeof u[0]=="function"?0:-1,target:process}})}),e.__load_patch("handleUnhandledPromiseRejection",function(o,u,a){u[a.symbol("unhandledPromiseRejectionHandler")]=l("unhandledRejection"),u[a.symbol("rejectionHandledHandler")]=l("rejectionHandled");function l(c){return function(_){var T=ar(process,c);T.forEach(function(y){c==="unhandledRejection"?y.invoke(_.rejection,_.promise):c==="rejectionHandled"&&y.invoke(_.promise)})}}}),e.__load_patch("crypto",function(){var o;try{o=he("crypto")}catch(a){}if(o){var u=["randomBytes","pbkdf2"];u.forEach(function(a){Ge(o,a,function(l,c){return{name:"crypto."+a,args:c,cbIdx:c.length>0&&typeof c[c.length-1]=="function"?c.length-1:-1,target:o}})})}}),e.__load_patch("console",function(o,u){var a=["dir","log","info","error","warn","assert","debug","timeEnd","trace"];a.forEach(function(l){var c=console[u.__symbol__(l)]=console[l];c&&(console[l]=function(){var _=_r.call(arguments);return u.current===u.root?c.apply(this,_):u.root.run(c,this,_)})})}),e.__load_patch("queueMicrotask",function(o,u,a){Nr(o,a)})}function Vr(){var e=Or();return jr(e),Sr(e),Zr(e),e}return Vr(),Re!=ve&&(Ce.exports=ve),Ce.exports});
|
|
|
|
if(__exports != exports)module.exports = exports;return module.exports}));
|
|
|