'use strict'; /** * @license Angular * (c) 2010-2025 Google LLC. https://angular.dev/ * License: MIT */ function S(Z){Z.__load_patch("mocha",(t,o)=>{let i=t.Mocha;if(typeof i=="undefined")return;if(typeof o=="undefined")throw new Error("Missing Zone.js");let h=o.ProxyZoneSpec,_=o.SyncTestZoneSpec;if(!h)throw new Error("Missing ProxyZoneSpec");if(i.__zone_patch__)throw new Error('"Mocha" has already been patched with "Zone".');i.__zone_patch__=!0;let y=o.current,k=y.fork(new _("Mocha.describe")),f=null,m=y.fork(new h),s={after:t.after,afterEach:t.afterEach,before:t.before,beforeEach:t.beforeEach,describe:t.describe,it:t.it};function a(e,u,c){for(let n=0;n{i.Runner.prototype.runTest=function(c){o.current.scheduleMicroTask("mocha.forceTask",()=>{e.call(this,c)})},i.Runner.prototype.run=function(c){return this.on("test",n=>{f=y.fork(new h)}),this.on("fail",(n,r)=>{let w=f&&f.get("ProxyZoneSpec");if(w&&r)try{r.message+=w.getAndClearPendingTasksInfo()}catch(E){}}),u.call(this,c)}})(i.Runner.prototype.runTest,i.Runner.prototype.run)})}S(Zone);