ng-implementation/angular18/dist/easy-angular/polyfills.bffe7b9ad1daa123.js

1 line
34 KiB
JavaScript
Raw Normal View History

2025-10-15 11:17:29 +02:00
"use strict";(self.webpackChunkEasyAngular=self.webpackChunkEasyAngular||[]).push([[461],{2523:(ke,De,Ze)=>{Ze(6935);const Ue=":";Error;const He=function(r,...s){if(He.translate){const h=He.translate(r,s);r=h[0],s=h[1]}let u=st(r[0],r.raw[0]);for(let h=1;h<r.length;h++)u+=s[h-1]+st(r[h],r.raw[h]);return u},dt=":";function st(r,s){return s.charAt(0)===dt?r.substring(function $e(r,s){for(let u=1,h=1;u<r.length;u++,h++)if("\\"===s[h])h++;else if(r[u]===Ue)return u;throw new Error(`Unterminated $localize metadata block in "${s}".`)}(r,s)+1):r}globalThis.$localize=He},6935:()=>{!function(e){const n=e.performance;function a(B){n&&n.mark&&n.mark(B)}function i(B,v){n&&n.measure&&n.measure(B,v)}a("Zone");const l=e.__Zone_symbol_prefix||"__zone_symbol__";function f(B){return l+B}const E=!0===e[f("forceDuplicateZoneCheck")];if(e.Zone){if(E||"function"!=typeof e.Zone.__symbol__)throw new Error("Zone already loaded.");return e.Zone}let m=(()=>{class B{static#e=this.__symbol__=f;static assertZonePatched(){if(e.Promise!==pe.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=B.current;for(;t.parent;)t=t.parent;return t}static get current(){return J.zone}static get currentTask(){return ge}static __load_patch(t,o,I=!1){if(pe.hasOwnProperty(t)){if(!I&&E)throw Error("Already loaded patch: "+t)}else if(!e["__Zone_disable_"+t]){const Z="Zone:"+t;a(Z),pe[t]=o(e,B,oe),i(Z,Z)}}get parent(){return this._parent}get name(){return this._name}constructor(t,o){this._parent=t,this._name=o?o.name||"unnamed":"<root>",this._properties=o&&o.properties||{},this._zoneDelegate=new S(this,this._parent&&this._parent._zoneDelegate,o)}get(t){const o=this.getZoneWith(t);if(o)return o._properties[t]}getZoneWith(t){let o=this;for(;o;){if(o._properties.hasOwnProperty(t))return o;o=o._parent}return null}fork(t){if(!t)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,t)}wrap(t,o){if("function"!=typeof t)throw new Error("Expecting function got: "+t);const I=this._zoneDelegate.intercept(this,t,o),Z=this;return function(){return Z.runGuarded(I,this,arguments,o)}}run(t,o,I,Z){J={parent:J,zone:this};try{return this._zoneDelegate.invoke(this,t,o,I,Z)}finally{J=J.parent}}runGuarded(t,o=null,I,Z){J={parent:J,zone:this};try{try{return this._zoneDelegate.invoke(this,t,o,I,Z)}catch(se){if(this._zoneDelegate.handleError(this,se))throw se}}finally{J=J.parent}}runTask(t,o,I){if(t.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(t.zone||ce).name+"; Execution: "+this.name+")");if(t.state===G&&(t.type===le||t.type===C))return;const Z=t.state!=k;Z&&t._transitionTo(k,V),t.runCount++;const se=ge;ge=t,J={parent:J,zone:this};try{t.type==C&&t.data&&!t.data.isPeriodic&&(t.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,t,o,I)}catch(_){if(this._zoneDelegate.handleError(this,_))throw _}}finally{t.state!==G&&t.state!==g&&(t.type==le||t.data&&t.data.isPeriodic?Z&&t._transitionTo(V,k):(t.runCount=0,this._updateTaskCount(t,-1),Z&&t._transitionTo(G,k,G))),J=J.parent,ge=se}}scheduleTask(t){if(t.zone&&t.zone!==this){let I=this;for(;I;){if(I===t.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${t.zone.name}`);I=I.parent}}t._transitionTo(re,G);const o=[];t._zoneDelegates=o,t._zone=this;try{t=this._zoneDelegate.scheduleTask(this,t)}catch(I){throw t._transitionTo(g,re,G),this._zoneDelegate.handleError(this,I),I}return t._zoneDelegates===o&&this._updateTaskCount(t,1),t.state==re&&t._transitionTo(V,re),t}scheduleMicroTask(t,o,I,Z){return this.scheduleTask(new b($,t,o,I,Z,void 0))}scheduleMacroTask(t,o,I,Z,se){return this.scheduleTask(new b(C,t,o,I,Z,se))}scheduleEventTask(t,o,I,Z,se){return this.scheduleTask(new b(le,t,o,I,Z,se))}cancelTask(t){if(t.zone!=this)throw new Error("A task can