source: trip-planner-front/node_modules/zone.js/bundles/long-stack-trace-zone.umd.min.js@ fa375fe

Last change on this file since fa375fe was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 2.1 KB
Line 
1"use strict";
2/**
3 * @license Angular v12.0.0-next.0
4 * (c) 2010-2020 Google LLC. https://angular.io/
5 * License: MIT
6 */!function(t){"function"==typeof define&&define.amd?define(t):t()}((function(){
7/**
8 * @license
9 * Copyright Google LLC All Rights Reserved.
10 *
11 * Use of this source code is governed by an MIT-style license that can be
12 * found in the LICENSE file at https://angular.io/license
13 */
14var t={},a="__SEP_TAG__@[native]",r=function r(){this.error=o(),this.timestamp=new Date};function e(){return new Error("STACKTRACE TRACKING")}function n(){try{throw e()}catch(t){return t}}var c=e(),i=n(),o=c.stack?e:i.stack?n:e;function _(t){return t.stack?t.stack.split("\n"):[]}function s(a,r){for(var e=_(r),n=0;n<e.length;n++)t.hasOwnProperty(e[n])||a.push(e[n])}function f(t,r){var e=[r?r.trim():""];if(t)for(var n=(new Date).getTime(),c=0;c<t.length;c++){var i=t[c],o=i.timestamp,_="____________________Elapsed "+(n-o.getTime())+" ms; At: "+o;_=_.replace(/[^\w\d]/g,"_"),e.push(a.replace("__SEP_TAG__",_)),s(e,i.error),n=o.getTime()}return e.join("\n")}function u(){return Error.stackTraceLimit>0}Zone.longStackTraceZoneSpec={name:"long-stack-trace",longStackTraceLimit:10,getLongStackTrace:function(t){if(t){var a=t[Zone.__symbol__("currentTaskTrace")];return a?f(a,t.stack):t.stack}},onScheduleTask:function(t,a,e,n){if(u()){var c=Zone.currentTask,i=c&&c.data&&c.data.__creationTrace__||[];(i=[new r].concat(i)).length>this.longStackTraceLimit&&(i.length=this.longStackTraceLimit),n.data||(n.data={}),"eventTask"===n.type&&(n.data=Object.assign({},n.data)),n.data.__creationTrace__=i}return t.scheduleTask(e,n)},onHandleError:function(t,a,r,e){if(u()){var n=Zone.currentTask||e.task;if(e instanceof Error&&n){var c=f(n.data&&n.data.__creationTrace__,e.stack);try{e.stack=e.longStack=c}catch(t){}}}return t.handleError(r,e)}},function T(){if(u()){var e=[];!function t(a,e){e>0&&(a.push(_((new r).error)),t(a,e-1))}(e,2);for(var n=e[0],c=e[1],i=0;i<n.length;i++)if(-1==(s=n[i]).indexOf("STACKTRACE TRACKING")){var o=s.match(/^\s*at\s+/);if(o){a=o[0]+"__SEP_TAG__ (http://localhost)";break}}for(i=0;i<n.length;i++){var s;if((s=n[i])!==c[i])break;t[s]=!0}}}()}));
Note: See TracBrowser for help on using the repository browser.