'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",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;E0,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=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=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;Z0?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}));