@angular/router 7.0.2 → 7.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v7.0.2
2
+ * @license Angular v7.0.3
3
3
  * (c) 2010-2018 Google, Inc. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -125,7 +125,7 @@ function we(t){throw t}function be(t,e,r){return e.parse("/")}function Ce(t,e){r
125
125
  *
126
126
  * Use of this source code is governed by an MIT-style license that can be
127
127
  * found in the LICENSE file at https://angular.io/license
128
- */(e.rootComponentType,e.config,function(t){return e.serializeUrl(t)},e.paramsInheritanceStrategy),n.tap(function(t){var r=new w(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);o.next(r)}));if(i&&e.rawUrlTree&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){var c=t.extractedUrl,l=t.source,p=t.state,h=t.extras,f=new v(t.id,e.serializeUrl(c),l,p);o.next(f);var d=bt(c,e.rootComponentType).snapshot;return r.of(s({},t,{targetSnapshot:d,urlAfterRedirects:c,extras:s({},h,{skipLocationChange:!1,replaceUrl:!1})}))}return e.rawUrlTree=t.rawUrl,t.resolve(null),r.EMPTY}),fe(function(t){var r=t.extras;return e.hooks.beforePreactivation(t.targetSnapshot,{navigationId:t.id,appliedUrlTree:t.extractedUrl,rawUrlTree:t.rawUrl,skipLocationChange:!!r.skipLocationChange,replaceUrl:!!r.replaceUrl})}),n.tap(function(t){var r=new b(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(r)}),n.map(function(t){return s({},t,{guards:function r(t,e,n){var o=t._root;return function t(e,r,n,o,i){void 0===i&&(i={canDeactivateChecks:[],canActivateChecks:[]});var a=St(r);return e.children.forEach(function(e){!function r(e,n,o,i,a){void 0===a&&(a={canDeactivateChecks:[],canActivateChecks:[]});var u=e.value,s=n?n.value:null,c=o?o.getContext(e.value.outlet):null;if(s&&u.routeConfig===s.routeConfig){var l=function p(t,e,r){switch(r){case"always":return!0;case"paramsOrQueryParamsChange":return!At(t,e)||!F(t.queryParams,e.queryParams);case"paramsChange":default:return!At(t,e)}}(s,u,u.routeConfig.runGuardsAndResolvers);l?a.canActivateChecks.push(new Xt(i)):(u.data=s.data,u._resolvedData=s._resolvedData),t(e,n,u.component?c?c.children:null:o,i,a),l&&a.canDeactivateChecks.push(new te(c.outlet.component,s))}else s&&re(n,c,a),a.canActivateChecks.push(new Xt(i)),t(e,null,u.component?c?c.children:null:o,i,a)}(e,a[e.value.outlet],n,o.concat([e.value]),i),delete a[e.value.outlet]}),W(a,function(t,e){return re(t,n.getContext(e),i)}),i}(o,e?e._root:null,n,[o.value])}(t.targetSnapshot,t.currentSnapshot,e.rootContexts)})}),function p(t,e){return function(o){return o.pipe(n.mergeMap(function(o){var i=o.targetSnapshot,a=o.currentSnapshot,u=o.guards,c=u.canActivateChecks,l=u.canDeactivateChecks;return 0===l.length&&0===c.length?r.of(s({},o,{guardsResult:!0})):function p(t,e,o,i){return r.from(t).pipe(n.mergeMap(function(t){return function a(t,e,o,i,u){var s=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return s&&0!==s.length?r.from(s).pipe(n.mergeMap(function(r){var a=ee(r,e,u);return V(a.canDeactivate?a.canDeactivate(t,e,o,i):a(t,e,o,i)).pipe(n.first())})).pipe(n.every(function(t){return!0===t})):r.of(!0)}(t.component,t.route,o,e,i)}),n.every(function(t){return!0===t}))}(l,i,a,t).pipe(n.mergeMap(function(o){return o?function a(t,e,o,i){return r.from(e).pipe(n.concatMap(function(e){return Q(r.from([function a(t,e){return null!==t&&e&&e(new _(t)),r.of(!0)}(e.route.parent,i),function u(t,e){return null!==t&&e&&e(new A(t)),r.of(!0)}(e.route,i),function s(t,e,o){var i=e[e.length-1],a=e.slice(0,e.length-1).reverse().map(function(t){return function e(t){var e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)}).filter(function(t){return null!==t});return Q(r.from(a).pipe(n.map(function(e){return Q(r.from(e.guards).pipe(n.map(function(r){var a=ee(r,e.node,o);return V(a.canActivateChild?a.canActivateChild(i,t):a(i,t)).pipe(n.first())})))})))}(t,e.path,o),function c(t,e,o){var i=e.routeConfig?e.routeConfig.canActivate:null;return i&&0!==i.length?Q(r.from(i).pipe(n.map(function(r){var i=ee(r,e,o);return V(i.canActivate?i.canActivate(e,t):i(e,t)).pipe(n.first())}))):r.of(!0)}(t,e.route,o)]))}),n.every(function(t){return!0===t}))}(i,c,t,e):r.of(!1)}),n.map(function(t){return s({},o,{guardsResult:t})}))}))}}(e.ngModule.injector,function(t){return e.triggerEvent(t)}),n.tap(function(t){var r=new C(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);e.triggerEvent(r)}),n.filter(function(t){if(!t.guardsResult){e.resetUrlToCurrentUrlTree();var r=new y(t.id,e.serializeUrl(t.extractedUrl),"");return o.next(r),t.resolve(!1),!1}return!0}),fe(function(t){if(t.guards.canActivateChecks.length)return r.of(t).pipe(n.tap(function(t){var r=new R(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(r)}),function o(t,e){return function(o){return o.pipe(n.mergeMap(function(o){var i=o.targetSnapshot,a=o.guards.canActivateChecks;return a.length?r.from(a).pipe(n.concatMap(function(o){return function a(t,e,o,i){return function a(t,e,o,i){var a=Object.keys(t);if(0===a.length)return r.of({});if(1===a.length){var u=a[0];return he(t[u],e,o,i).pipe(n.map(function(t){var e;return(e={})[u]=t,e}))}var s={};return r.from(a).pipe(n.mergeMap(function(r){return he(t[r],e,o,i).pipe(n.map(function(t){return s[r]=t,t}))})).pipe(n.last(),n.map(function(){return s}))}(t._resolve,t,e,i).pipe(n.map(function(e){return t._resolvedData=e,t.data=s({},t.data,Rt(t,o).resolve),null}))}(o.route,i,t,e)}),n.reduce(function(t,e){return t}),n.map(function(t){return o})):r.of(o)}))}}(e.paramsInheritanceStrategy,e.ngModule.injector),n.tap(function(t){var r=new P(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(r)}))}),fe(function(t){var r=t.extras;return e.hooks.afterPreactivation(t.targetSnapshot,{navigationId:t.id,appliedUrlTree:t.extractedUrl,rawUrlTree:t.rawUrl,skipLocationChange:!!r.skipLocationChange,replaceUrl:!!r.replaceUrl})}),n.map(function(t){var n=function o(t,e,n){var o=function t(e,n,o){if(o&&e.shouldReuseRoute(n.value,o.value.snapshot)){(c=o.value)._futureSnapshot=n.value;var i=function a(e,r,n){return r.children.map(function(r){var o,i;try{for(var a=h(n.children),u=a.next();!u.done;u=a.next()){var s=u.value;if(e.shouldReuseRoute(s.value.snapshot,r.value))return t(e,r,s)}}catch(t){o={error:t}}finally{try{u&&!u.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}return t(e,r)})}(e,n,o);return new yt(c,i)}var u=e.retrieve(n.value);if(u){var s=u.route;return function t(e,r){if(e.value.routeConfig!==r.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==r.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");r.value._futureSnapshot=e.value;for(var n=0;n<e.children.length;++n)t(e.children[n],r.children[n])}(n,s),s}var c=function l(t){return new Ct(new r.BehaviorSubject(t.url),new r.BehaviorSubject(t.params),new r.BehaviorSubject(t.queryParams),new r.BehaviorSubject(t.fragment),new r.BehaviorSubject(t.data),t.outlet,t.component,t)}
128
+ */(e.rootComponentType,e.config,function(t){return e.serializeUrl(t)},e.paramsInheritanceStrategy),n.tap(function(t){var r=new w(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);o.next(r)}));if(i&&e.rawUrlTree&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){var c=t.extractedUrl,l=t.source,p=t.state,h=t.extras,f=new v(t.id,e.serializeUrl(c),l,p);o.next(f);var d=bt(c,e.rootComponentType).snapshot;return r.of(s({},t,{targetSnapshot:d,urlAfterRedirects:c,extras:s({},h,{skipLocationChange:!1,replaceUrl:!1})}))}return e.rawUrlTree=t.rawUrl,t.resolve(null),r.EMPTY}),fe(function(t){var r=t.extras;return e.hooks.beforePreactivation(t.targetSnapshot,{navigationId:t.id,appliedUrlTree:t.extractedUrl,rawUrlTree:t.rawUrl,skipLocationChange:!!r.skipLocationChange,replaceUrl:!!r.replaceUrl})}),n.tap(function(t){var r=new b(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(r)}),n.map(function(t){return s({},t,{guards:function r(t,e,n){var o=t._root;return function t(e,r,n,o,i){void 0===i&&(i={canDeactivateChecks:[],canActivateChecks:[]});var a=St(r);return e.children.forEach(function(e){!function r(e,n,o,i,a){void 0===a&&(a={canDeactivateChecks:[],canActivateChecks:[]});var u=e.value,s=n?n.value:null,c=o?o.getContext(e.value.outlet):null;if(s&&u.routeConfig===s.routeConfig){var l=function p(t,e,r){switch(r){case"always":return!0;case"paramsOrQueryParamsChange":return!At(t,e)||!F(t.queryParams,e.queryParams);case"paramsChange":default:return!At(t,e)}}(s,u,u.routeConfig.runGuardsAndResolvers);l?a.canActivateChecks.push(new Xt(i)):(u.data=s.data,u._resolvedData=s._resolvedData),t(e,n,u.component?c?c.children:null:o,i,a),l&&a.canDeactivateChecks.push(new te(c&&c.outlet&&c.outlet.component||null,s))}else s&&re(n,c,a),a.canActivateChecks.push(new Xt(i)),t(e,null,u.component?c?c.children:null:o,i,a)}(e,a[e.value.outlet],n,o.concat([e.value]),i),delete a[e.value.outlet]}),W(a,function(t,e){return re(t,n.getContext(e),i)}),i}(o,e?e._root:null,n,[o.value])}(t.targetSnapshot,t.currentSnapshot,e.rootContexts)})}),function p(t,e){return function(o){return o.pipe(n.mergeMap(function(o){var i=o.targetSnapshot,a=o.currentSnapshot,u=o.guards,c=u.canActivateChecks,l=u.canDeactivateChecks;return 0===l.length&&0===c.length?r.of(s({},o,{guardsResult:!0})):function p(t,e,o,i){return r.from(t).pipe(n.mergeMap(function(t){return function a(t,e,o,i,u){var s=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return s&&0!==s.length?r.from(s).pipe(n.mergeMap(function(r){var a=ee(r,e,u);return V(a.canDeactivate?a.canDeactivate(t,e,o,i):a(t,e,o,i)).pipe(n.first())})).pipe(n.every(function(t){return!0===t})):r.of(!0)}(t.component,t.route,o,e,i)}),n.every(function(t){return!0===t}))}(l,i,a,t).pipe(n.mergeMap(function(o){return o?function a(t,e,o,i){return r.from(e).pipe(n.concatMap(function(e){return Q(r.from([function a(t,e){return null!==t&&e&&e(new _(t)),r.of(!0)}(e.route.parent,i),function u(t,e){return null!==t&&e&&e(new A(t)),r.of(!0)}(e.route,i),function s(t,e,o){var i=e[e.length-1],a=e.slice(0,e.length-1).reverse().map(function(t){return function e(t){var e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)}).filter(function(t){return null!==t});return Q(r.from(a).pipe(n.map(function(e){return Q(r.from(e.guards).pipe(n.map(function(r){var a=ee(r,e.node,o);return V(a.canActivateChild?a.canActivateChild(i,t):a(i,t)).pipe(n.first())})))})))}(t,e.path,o),function c(t,e,o){var i=e.routeConfig?e.routeConfig.canActivate:null;return i&&0!==i.length?Q(r.from(i).pipe(n.map(function(r){var i=ee(r,e,o);return V(i.canActivate?i.canActivate(e,t):i(e,t)).pipe(n.first())}))):r.of(!0)}(t,e.route,o)]))}),n.every(function(t){return!0===t}))}(i,c,t,e):r.of(!1)}),n.map(function(t){return s({},o,{guardsResult:t})}))}))}}(e.ngModule.injector,function(t){return e.triggerEvent(t)}),n.tap(function(t){var r=new C(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);e.triggerEvent(r)}),n.filter(function(t){if(!t.guardsResult){e.resetUrlToCurrentUrlTree();var r=new y(t.id,e.serializeUrl(t.extractedUrl),"");return o.next(r),t.resolve(!1),!1}return!0}),fe(function(t){if(t.guards.canActivateChecks.length)return r.of(t).pipe(n.tap(function(t){var r=new R(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(r)}),function o(t,e){return function(o){return o.pipe(n.mergeMap(function(o){var i=o.targetSnapshot,a=o.guards.canActivateChecks;return a.length?r.from(a).pipe(n.concatMap(function(o){return function a(t,e,o,i){return function a(t,e,o,i){var a=Object.keys(t);if(0===a.length)return r.of({});if(1===a.length){var u=a[0];return he(t[u],e,o,i).pipe(n.map(function(t){var e;return(e={})[u]=t,e}))}var s={};return r.from(a).pipe(n.mergeMap(function(r){return he(t[r],e,o,i).pipe(n.map(function(t){return s[r]=t,t}))})).pipe(n.last(),n.map(function(){return s}))}(t._resolve,t,e,i).pipe(n.map(function(e){return t._resolvedData=e,t.data=s({},t.data,Rt(t,o).resolve),null}))}(o.route,i,t,e)}),n.reduce(function(t,e){return t}),n.map(function(t){return o})):r.of(o)}))}}(e.paramsInheritanceStrategy,e.ngModule.injector),n.tap(function(t){var r=new P(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(r)}))}),fe(function(t){var r=t.extras;return e.hooks.afterPreactivation(t.targetSnapshot,{navigationId:t.id,appliedUrlTree:t.extractedUrl,rawUrlTree:t.rawUrl,skipLocationChange:!!r.skipLocationChange,replaceUrl:!!r.replaceUrl})}),n.map(function(t){var n=function o(t,e,n){var o=function t(e,n,o){if(o&&e.shouldReuseRoute(n.value,o.value.snapshot)){(c=o.value)._futureSnapshot=n.value;var i=function a(e,r,n){return r.children.map(function(r){var o,i;try{for(var a=h(n.children),u=a.next();!u.done;u=a.next()){var s=u.value;if(e.shouldReuseRoute(s.value.snapshot,r.value))return t(e,r,s)}}catch(t){o={error:t}}finally{try{u&&!u.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}return t(e,r)})}(e,n,o);return new yt(c,i)}var u=e.retrieve(n.value);if(u){var s=u.route;return function t(e,r){if(e.value.routeConfig!==r.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==r.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");r.value._futureSnapshot=e.value;for(var n=0;n<e.children.length;++n)t(e.children[n],r.children[n])}(n,s),s}var c=function l(t){return new Ct(new r.BehaviorSubject(t.url),new r.BehaviorSubject(t.params),new r.BehaviorSubject(t.queryParams),new r.BehaviorSubject(t.fragment),new r.BehaviorSubject(t.data),t.outlet,t.component,t)}
129
129
  /**
130
130
  * @license
131
131
  * Copyright Google Inc. All Rights Reserved.
@@ -160,7 +160,7 @@ function we(t){throw t}function be(t,e,r){return e.parse("/")}function Ce(t,e){r
160
160
  *
161
161
  * Use of this source code is governed by an MIT-style license that can be
162
162
  * found in the LICENSE file at https://angular.io/license
163
- */var tr=new e.Version("7.0.2");
163
+ */var tr=new e.Version("7.0.3");
164
164
  /**
165
165
  * @license
166
166
  * Copyright Google Inc. All Rights Reserved.