'use strict'; /** * @license Angular * (c) 2010-2025 Google LLC. https://angular.dev/ * License: MIT */(function(g,f){if(typeof define=="function"&&define.amd){define(f)}else if(typeof exports=="object" && typeof module<"u"){module.exports=f()}else{var m=f();for(var i in m) g[i]=m[i]}}(typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : this,function(){var exports={};var __exports=exports;var module={exports}; "use strict";(function(ge,be){if(typeof define=="function"&&define.amd)define(be);else if(typeof exports=="object"&&typeof module<"u")module.exports=be();else{var Pe=be();for(var Ce in Pe)ge[Ce]=Pe[Ce]}})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:exports,function(){var ge={},be=ge,Pe={exports:ge},Ce=Object.defineProperty,yr=Object.defineProperties,gr=Object.getOwnPropertyDescriptors,qe=Object.getOwnPropertySymbols,mr=Object.prototype.hasOwnProperty,kr=Object.prototype.propertyIsEnumerable,Ae=function(r,e,a){return e in r?Ce(r,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):r[e]=a},Je=function(r,e){for(var a in e||(e={}))mr.call(e,a)&&Ae(r,a,e[a]);if(qe)for(var t=0,s=qe(e);t",this._properties=n&&n.properties||{},this._zoneDelegate=new d(this,this._parent&&this._parent._zoneDelegate,n)}return v.assertZonePatched=function(){if(ce.Promise!==D.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 o=v.current;o.parent;)o=o.parent;return o},enumerable:!1,configurable:!0}),Object.defineProperty(v,"current",{get:function(){return E.zone},enumerable:!1,configurable:!0}),Object.defineProperty(v,"currentTask",{get:function(){return B},enumerable:!1,configurable:!0}),v.__load_patch=function(o,n,i){if(i===void 0&&(i=!1),D.hasOwnProperty(o)){var y=ce[ie("forceDuplicateZoneCheck")]===!0;if(!i&&y)throw Error("Already loaded patch: "+o)}else if(!ce["__Zone_disable_"+o]){var A="Zone:"+o;e(A),D[o]=n(ce,v,ee),a(A,A)}},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(o){var n=this.getZoneWith(o);if(n)return n._properties[o]},v.prototype.getZoneWith=function(o){for(var n=this;n;){if(n._properties.hasOwnProperty(o))return n;n=n._parent}return null},v.prototype.fork=function(o){if(!o)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,o)},v.prototype.wrap=function(o,n){if(typeof o!="function")throw new Error("Expecting function got: "+o);var i=this._zoneDelegate.intercept(this,o,n),y=this;return function(){return y.runGuarded(i,this,arguments,n)}},v.prototype.run=function(o,n,i,y){E={parent:E,zone:this};try{return this._zoneDelegate.invoke(this,o,n,i,y)}finally{E=E.parent}},v.prototype.runGuarded=function(o,n,i,y){n===void 0&&(n=null),E={parent:E,zone:this};try{try{return this._zoneDelegate.invoke(this,o,n,i,y)}catch(A){if(this._zoneDelegate.handleError(this,A))throw A}}finally{E=E.parent}},v.prototype.runTask=function(o,n,i){if(o.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(o.zone||oe).name+"; Execution: "+this.name+")");var y=o,A=o.type,J=o.data,le=J===void 0?{}:J,Ee=le.isPeriodic,de=Ee===void 0?!1:Ee,pe=le.isRefreshable,c=pe===void 0?!1:pe;if(!(o.state===M&&(A===z||A===R))){var f=o.state!=q;f&&y._transitionTo(q,T);var h=B;B=y,E={parent:E,zone:this};try{A==R&&o.data&&!de&&!c&&(o.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,y,n,i)}catch(P){if(this._zoneDelegate.handleError(this,P))throw P}}finally{var u=o.state;if(u!==M&&u!==Y)if(A==z||de||c&&u===S)f&&y._transitionTo(T,q,S);else{var _=y._zoneDelegates;this._updateTaskCount(y,-1),f&&y._transitionTo(M,q,M),c&&(y._zoneDelegates=_)}E=E.parent,B=h}}},v.prototype.scheduleTask=function(o){if(o.zone&&o.zone!==this)for(var n=this;n;){if(n===o.zone)throw Error("can not reschedule task to ".concat(this.name," which is descendants of the original zone ").concat(o.zone.name));n=n.parent}o._transitionTo(S,M);var i=[];o._zoneDelegates=i,o._zone=this;try{o=this._zoneDelegate.scheduleTask(this,o)}catch(y){throw o._transitionTo(Y,S,M),this._zoneDelegate.handleError(this,y),y}return o._zoneDelegates===i&&this._updateTaskCount(o,1),o.state==S&&o._transitionTo(T,S),o},v.prototype.scheduleMicroTask=function(o,n,i,y){return this.scheduleTask(new g(V,o,n,i,y,void 0))},v.prototype.scheduleMacroTask=function(o,n,i,y,A){return this.scheduleTask(new g(R,o,n,i,y,A))},v.prototype.scheduleEventTask=function(o,n,i,y,A){return this.scheduleTask(new g(z,o,n,i,y,A))},v.prototype.cancelTask=function(o){if(o.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(o.zone||oe).name+"; Execution: "+this.name+")");if(!(o.state!==T&&o.state!==q)){o._transitionTo(U,T,q);try{this._zoneDelegate.cancelTask(this,o)}catch(n){throw o._transitionTo(Y,U),this._zoneDelegate.handleError(this,n),n}return this._updateTaskCount(o,-1),o._transitionTo(M,U),o.runCount=-1,o}},v.prototype._updateTaskCount=function(o,n){var i=o._zoneDelegates;n==-1&&(o._zoneDelegates=null);for(var y=0;y0,macroTask:i.macroTask>0,eventTask:i.eventTask>0,change:o};this.hasTask(this._zone,J)}},v}(),g=function(){function v(o,n,i,y,A,J){if(O(this,"type"),O(this,"source"),O(this,"invoke"),O(this,"callback"),O(this,"data"),O(this,"scheduleFn"),O(this,"cancelFn"),O(this,"_zone",null),O(this,"runCount",0),O(this,"_zoneDelegates",null),O(this,"_state","notScheduled"),this.type=o,this.source=n,this.data=y,this.scheduleFn=A,this.cancelFn=J,!i)throw new Error("callback is not defined");this.callback=i;var le=this;o===z&&y&&y.useG?this.invoke=v.invokeTask:this.invoke=function(){return v.invokeTask.call(ce,le,this,arguments)}}return v.invokeTask=function(o,n,i){o||(o=this),Z++;try{return o.runCount++,o.zone.runTask(o,n,i)}finally{Z==1&&ne(),Z--}},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(M,S)},v.prototype._transitionTo=function(o,n,i){if(this._state===n||this._state===i)this._state=o,o==M&&(this._zoneDelegates=null);else throw new Error("".concat(this.type," '").concat(this.source,"': can not transition to '").concat(o,"', expecting state '").concat(n,"'").concat(i?" or '"+i+"'":"",", 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}(),m=ie("setTimeout"),C=ie("Promise"),p=ie("then"),k=[],w=!1,j;function K(v){if(j||ce[C]&&(j=ce[C].resolve(0)),j){var o=j[p];o||(o=j.then),o.call(j,v)}else ce[m](v,0)}function X(v){Z===0&&k.length===0&&K(ne),v&&k.push(v)}function ne(){if(!w){for(w=!0;k.length;){var v=k;k=[];for(var o=0;o=0;a--)typeof r[a]=="function"&&(r[a]=ze(r[a],e+"_"+a));return r}function Cr(r,e){for(var a=r.constructor.name,t=function(l){var d=e[l],g=r[d];if(g){var m=we(r,d);if(!Ke(m))return"continue";r[d]=function(C){var p=function(){return C.apply(this,xe(arguments,a+"."+d))};return _e(p,C),p}(g)}},s=0;s=0&&typeof g[m.cbIdx]=="function"?Ue(m.name,g[m.cbIdx],m,s):l.apply(d,g)}})}function _e(r,e){r[G("OriginalDelegate")]=e}function nr(r){return typeof r=="function"}function or(r){return typeof r=="number"}var Ir={useG:!0},ae={},ir={},ar=new RegExp("^"+Re+"(\\w+)(true|false)$"),sr=G("propagationStopped");function ur(r,e){var a=(e?e(r):r)+he,t=(e?e(r):r)+fe,s=Re+a,l=Re+t;ae[r]={},ae[r][he]=s,ae[r][fe]=l}function Mr(r,e,a,t){var s=t&&t.add||Fe,l=t&&t.rm||Ve,d=t&&t.listeners||"eventListeners",g=t&&t.rmAll||"removeAllListeners",m=G(s),C="."+s+":",p="prependListener",k="."+p+":",w=function(S,T,q){if(!S.isRemoved){var U=S.callback;typeof U=="object"&&U.handleEvent&&(S.callback=function(z){return U.handleEvent(z)},S.originalDelegate=U);var Y;try{S.invoke(S,T,[q])}catch(z){Y=z}var V=S.options;if(V&&typeof V=="object"&&V.once){var R=S.originalDelegate?S.originalDelegate:S.callback;T[l].call(T,q.type,R,V)}return Y}};function j(S,T,q){if(T=T||r.event,!!T){var U=S||T.target||r,Y=U[ae[T.type][q?fe:he]];if(Y){var V=[];if(Y.length===1){var R=w(Y[0],U,T);R&&V.push(R)}else for(var z=Y.slice(),D=0;D2}).map(function(e){return e.substring(2)})}function Br(r,e){if(!(Ne&&!$e)&&!Zone[r.symbol("patchEvents")]){var a=e.__Zone_ignore_on_properties,t=[];if(We){var s=window;t=t.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]),fr(s,Xe(s),a,He(s))}t=t.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(var l=0;l0){var i=E.invoke;E.invoke=function(){for(var y=Z[a.__symbol__("loadfalse")],A=0;A