UNPKG

24.7 kBJavaScriptView Raw
1/**
2 * @license Angular v10.0.7
3 * (c) 2010-2020 Google LLC. https://angular.io/
4 * License: MIT
5 */
6!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/platform-browser")):"function"==typeof define&&define.amd?define("@angular/upgrade/static",["exports","@angular/core","@angular/platform-browser"],e):e(((t=t||self).ng=t.ng||{},t.ng.upgrade=t.ng.upgrade||{},t.ng.upgrade.static={}),t.ng.core,t.ng.platformBrowser)}(this,(function(t,e,n){"use strict";
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 */function r(){throw new Error("AngularJS v1.x is not loaded!")}var o=function(){return r()};o.cleanData=r;var i={bootstrap:r,module:r,element:o,injector:r,version:void 0,resumeBootstrap:r,getTestability:r};try{window.hasOwnProperty("angular")&&(i=window.angular)}catch(t){}function a(t){i=t}function c(){return i}var s=function(t,e){return i.module(t,e)},u=function(t){return i.element(t)};u.cleanData=function(t){return i.element.cleanData(t)};var p=function(t,e){return(p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function l(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function h(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(l(arguments[e]));return t}
14/**
15 * @license
16 * Copyright Google LLC All Rights Reserved.
17 *
18 * Use of this source code is governed by an MIT-style license that can be
19 * found in the LICENSE file at https://angular.io/license
20 */
21var d="$$angularInjector",f=function(){function t(t,e){this.prop=t,this.attr=e,this.parseBinding()}return t.prototype.parseBinding=function(){this.bracketAttr="["+this.attr+"]",this.parenAttr="("+this.attr+")",this.bracketParenAttr="[("+this.attr+")]";var t=this.attr.charAt(0).toUpperCase()+this.attr.substr(1);this.onAttr="on"+t,this.bindAttr="bind"+t,this.bindonAttr="bindon"+t},t}(),g=/^(?:x|data)[:\-_]/i,m=/[:\-_]+(.)/g;function v(t){return"$"+t+"Controller"}function y(t){return t.overriddenName||t.name||t.toString().split("\n")[0]}function $(t){return t.has("$$angularDowngradedModuleCount")?t.get("$$angularDowngradedModuleCount"):0}function b(t){return t.has("$$angularUpgradeAppType")?t.get("$$angularUpgradeAppType"):0}function w(t){return"function"==typeof t}function j(t,e,n,r){var o=b(t),i=$(t);switch(o){case 1:case 2:if(e)throw new Error("Error while "+r+": 'downgradedModule' unexpectedly specified.\nYou should not specify a value for 'downgradedModule', unless you are downgrading more than one Angular module (via 'downgradeModule()').");break;case 3:if(!e&&i>=2)throw new Error("Error while "+r+": 'downgradedModule' not specified.\nThis application contains more than one downgraded Angular module, thus you need to always specify 'downgradedModule' when downgrading components and injectables.");if(!t.has(n))throw new Error("Error while "+r+": Unable to find the specified downgraded module.\nDid you forget to downgrade an Angular module or include it in the AngularJS application?");break;default:throw new Error("Error while "+r+": Not a valid '@angular/upgrade' application.\nDid you forget to downgrade an Angular module or include it in the AngularJS application?")}}
22/**
23 * @license
24 * Copyright Google LLC All Rights Reserved.
25 *
26 * Use of this source code is governed by an MIT-style license that can be
27 * found in the LICENSE file at https://angular.io/license
28 */
29var C,O={__UNINITIALIZED__:!0},E=function(){function t(t,e,n,r,o,i,a,c,s,u){this.element=t,this.attrs=e,this.scope=n,this.ngModel=r,this.parentInjector=o,this.$injector=i,this.$compile=a,this.$parse=c,this.componentFactory=s,this.wrapCallback=u,this.implementsOnChanges=!1,this.inputChangeCount=0,this.inputChanges={},this.componentScope=n.$new()}return t.prototype.compileContents=function(){var t=this,e=[],n=this.groupProjectableNodes().map((function(e){return t.$compile(e)}));return this.element.empty(),n.forEach((function(n){n(t.scope,(function(n){e.push(n),t.element.append(n)}))})),e},t.prototype.createComponent=function(t){var n=e.Injector.create({providers:[{provide:"$scope",useValue:this.componentScope}],parent:this.parentInjector,name:"DowngradeComponentAdapter"});this.componentRef=this.componentFactory.create(n,t,this.element[0]),this.viewChangeDetector=this.componentRef.injector.get(e.ChangeDetectorRef),this.changeDetector=this.componentRef.changeDetectorRef,this.component=this.componentRef.instance;var r=this.componentRef.injector.get(e.Testability,null);r&&this.componentRef.injector.get(e.TestabilityRegistry).registerApplication(this.componentRef.location.nativeElement,r),function o(t,e){t&&function n(t){return"function"==typeof t.writeValue&&"function"==typeof t.registerOnChange}(e)&&(t.$render=function(){e.writeValue(t.$viewValue)},e.registerOnChange(t.$setViewValue.bind(t)),"function"==typeof e.registerOnTouched&&e.registerOnTouched(t.$setTouched.bind(t)))}(this.ngModel,this.component)},t.prototype.setupInputs=function(t,n){var r=this;void 0===n&&(n=!0);for(var o=this.attrs,i=this.componentFactory.inputs||[],a=function(t){var e,n,a=new f(i[t].propName,i[t].templateName),s=null;if(o.hasOwnProperty(a.attr)){var u=(e=a.prop,n=O,function(t){(function o(t,e){return t===e||t!=t&&e!=e})(n,t)||(n===O&&(n=t),r.updateInput(e,n,t),n=t)});o.$observe(a.attr,u);var p=c.componentScope.$watch((function(){p(),p=null,u(o[a.attr])}))}else o.hasOwnProperty(a.bindAttr)?s=o[a.bindAttr]:o.hasOwnProperty(a.bracketAttr)?s=o[a.bracketAttr]:o.hasOwnProperty(a.bindonAttr)?s=o[a.bindonAttr]:o.hasOwnProperty(a.bracketParenAttr)&&(s=o[a.bracketParenAttr]);if(null!=s){var l=function(t){return function(e,n){return r.updateInput(t,n,e)}}(a.prop);c.componentScope.$watch(s,l)}},c=this,s=0;s<i.length;s++)a(s);var u=function(){return r.changeDetector.detectChanges()},p=this.componentFactory.componentType.prototype;if(this.implementsOnChanges=!(!p||!p.ngOnChanges),this.componentScope.$watch((function(){return r.inputChangeCount}),this.wrapCallback((function(){if(r.implementsOnChanges){var t=r.inputChanges;r.inputChanges={},r.component.ngOnChanges(t)}r.viewChangeDetector.markForCheck(),n||u()}))),n&&this.componentScope.$watch(this.wrapCallback(u)),t||!n)var l=this.componentScope.$watch((function(){l(),l=null,r.parentInjector.get(e.ApplicationRef).attachView(r.componentRef.hostView)}))},t.prototype.setupOutputs=function(){for(var t=this.attrs,e=this.componentFactory.outputs||[],n=0;n<e.length;n++){var r=new f(e[n].propName,e[n].templateName),o=r.bindonAttr.substring(0,r.bindonAttr.length-6),i="[("+r.bracketParenAttr.substring(2,r.bracketParenAttr.length-8)+")]";t.hasOwnProperty(o)&&this.subscribeToOutput(r,t[o],!0),t.hasOwnProperty(i)&&this.subscribeToOutput(r,t[i],!0),t.hasOwnProperty(r.onAttr)&&this.subscribeToOutput(r,t[r.onAttr]),t.hasOwnProperty(r.parenAttr)&&this.subscribeToOutput(r,t[r.parenAttr])}},t.prototype.subscribeToOutput=function(t,e,n){var r=this;void 0===n&&(n=!1);var o=this.$parse(e),i=o.assign;if(n&&!i)throw new Error("Expression '"+e+"' is not assignable!");var a=this.component[t.prop];if(!a)throw new Error("Missing emitter '"+t.prop+"' on component '"+y(this.componentFactory.componentType)+"'!");a.subscribe({next:n?function(t){return i(r.scope,t)}:function(t){return o(r.scope,{$event:t})}})},t.prototype.registerCleanup=function(){var t=this,n=this.componentRef.injector.get(e.TestabilityRegistry),r=this.wrapCallback((function(){return t.componentRef.destroy()})),o=!1;this.element.on("$destroy",(function(){return t.componentScope.$destroy()})),this.componentScope.$on("$destroy",(function(){o||(o=!0,n.unregisterApplication(t.componentRef.location.nativeElement),r())}))},t.prototype.getInjector=function(){return this.componentRef.injector},t.prototype.updateInput=function(t,n,r){this.implementsOnChanges&&(this.inputChanges[t]=new e.SimpleChange(n,r,n===r)),this.inputChangeCount++,this.component[t]=r},t.prototype.groupProjectableNodes=function(){return function t(e,n){for(var r=[],o=0,i=e.length;o<i;++o)r[o]=[];for(var a=0,c=n.length;a<c;++a){var s=n[a],u=A(s,e);null!=u&&r[u].push(s)}return r}(this.componentFactory.ngContentSelectors,this.element.contents())},t}();function A(t,e){for(var n=[],r=-1,o=0;o<e.length;o++){var i=e[o];"*"===i?r=o:T(t,i)&&n.push(o)}return n.sort(),-1!==r&&n.push(r),n.length?n[0]:null}function T(t,e){if(!C){var n=Element.prototype;C=n.matches||n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}return t.nodeType===Node.ELEMENT_NODE&&C.call(t,e)}
30/**
31 * @license
32 * Copyright Google LLC All Rights Reserved.
33 *
34 * Use of this source code is governed by an MIT-style license that can be
35 * found in the LICENSE file at https://angular.io/license
36 */var _=function(){function t(){this.resolved=!1,this.callbacks=[]}return t.all=function(e){var n=new t,r=0,o=[],i=function(t,i){o[t]=i,++r===e.length&&n.resolve(o)};return e.forEach((function(t,e){!function n(t){return!!t&&w(t.then)}(t)?i(e,t):t.then((function(t){return i(e,t)}))})),n},t.prototype.resolve=function(t){this.resolved||(this.value=t,this.resolved=!0,this.callbacks.forEach((function(e){return e(t)})),this.callbacks.length=0)},t.prototype.then=function(t){this.resolved?t(this.value):this.callbacks.push(t)},t}(),D=function(t){function e(e){var n=t.call(this)||this;return n.element=e,n.injectorKey=v(d),e.data(n.injectorKey,n),n}return function n(t,e){function n(){this.constructor=t}p(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}(e,t),e.prototype.resolve=function(e){this.element.data(this.injectorKey,e),this.element=null,t.prototype.resolve.call(this,e)},e}(_),k=new e.Version("10.0.7"),S=null;function I(t){S=t}function M(){if(!S)throw new Error("Trying to get the AngularJS injector before it being set.");var t=S;return S=null,t}function P(t){return t.get("$rootScope")}function R(t){return t.get("$compile")}function N(t){return t.get("$parse")}var B=[{provide:"$injector",useFactory:M,deps:[]},{provide:"$rootScope",useFactory:P,deps:["$injector"]},{provide:"$compile",useFactory:R,deps:["$injector"]},{provide:"$parse",useFactory:N,deps:["$injector"]}],U=function(){function t(t){this.modInjector=t}return t.prototype.get=function(t,n){return n===e.ɵNOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR?n:this.modInjector.get(t,n)},t}(),L=0;
37/**
38 * @license
39 * Copyright Google LLC All Rights Reserved.
40 *
41 * Use of this source code is governed by an MIT-style license that can be
42 * found in the LICENSE file at https://angular.io/license
43 */function x(t){return t}var F=/^(\^\^?)?(\?)?(\^\^?)?/,q=function(){function t(e,n,r,o){this.injector=e,this.name=n,this.$injector=e.get("$injector"),this.$compile=this.$injector.get("$compile"),this.$controller=this.$injector.get("$controller"),this.element=r.nativeElement,this.$element=u(this.element),this.directive=o||t.getDirective(this.$injector,n)}return t.getDirective=function(t,e){var n=t.get(e+"Directive");if(n.length>1)throw new Error("Only support single directive definition for: "+e);var r=n[0];return r.compile&&!r.link&&Z(e,"compile"),r.replace&&Z(e,"replace"),r.terminal&&Z(e,"terminal"),r},t.getTemplate=function(t,e,n,r){if(void 0===n&&(n=!1),void 0!==e.template)return V(e.template,r);if(e.templateUrl){var o=t.get("$templateCache"),i=V(e.templateUrl,r),a=o.get(i);if(void 0!==a)return a;if(!n)throw new Error("loading directive templates asynchronously is not supported");return new Promise((function(e,n){t.get("$httpBackend")("GET",i,null,(function(t,r){200===t?e(o.put(i,r)):n("GET component template from '"+i+"' returned '"+t+": "+r+"'")}))}))}throw new Error("Directive '"+e.name+"' is not a component, it is missing template.")},t.prototype.buildController=function(t,e){var n=this.$controller(t,{$scope:e,$element:this.$element},null,this.directive.controllerAs);return this.$element.data(v(this.directive.name),n),n},t.prototype.compileTemplate=function(e){return void 0===e&&(e=t.getTemplate(this.$injector,this.directive,!1,this.$element)),this.compileHtml(e)},t.prototype.onDestroy=function(t,e){e&&w(e.$onDestroy)&&e.$onDestroy(),t.$destroy(),u.cleanData([this.element]),u.cleanData(this.element.querySelectorAll("*"))},t.prototype.prepareTransclusion=function(){var t=this,e=this.directive.transclude,n=this.extractChildNodes(),r=function(t,e){return e(o,t=t||{$destroy:function(){}})},o=n;if(e){var i=Object.create(null);if("object"==typeof e){o=[];var a=Object.create(null),c=Object.create(null);Object.keys(e).forEach((function(t){var n=e[t],r="?"===n.charAt(0);n=r?n.substring(1):n,a[n]=t,i[t]=null,c[t]=r})),n.forEach((function(t){var e=a[function n(t){return t.replace(g,"").replace(m,(function(t,e){return e.toUpperCase()}))}(t.nodeName.toLowerCase())];e?(c[e]=!0,i[e]=i[e]||[],i[e].push(t)):o.push(t)})),Object.keys(c).forEach((function(e){if(!c[e])throw new Error("Required transclusion slot '"+e+"' on directive: "+t.name)})),Object.keys(i).filter((function(t){return i[t]})).forEach((function(t){var e=i[t];i[t]=function(t,n){return n(e,t)}}))}r.$$slots=i,o.forEach((function(t){t.nodeType!==Node.TEXT_NODE||t.nodeValue||(t.nodeValue="‌")}))}return r},t.prototype.resolveAndBindRequiredControllers=function(t){var e=this.getDirectiveRequire(),n=this.resolveRequire(e);if(t&&this.directive.bindToController&&z(e)){var r=n;Object.keys(r).forEach((function(e){t[e]=r[e]}))}return n},t.prototype.compileHtml=function(t){return this.element.innerHTML=t,this.$compile(this.element.childNodes)},t.prototype.extractChildNodes=function(){for(var t,e=[];t=this.element.firstChild;)this.element.removeChild(t),e.push(t);return e},t.prototype.getDirectiveRequire=function(){var t=this.directive.require||this.directive.controller&&this.directive.name;return z(t)&&Object.keys(t).forEach((function(e){var n=t[e],r=n.match(F);n.substring(r[0].length)||(t[e]=r[0]+e)})),t},t.prototype.resolveRequire=function(t,e){var n=this;if(t){if(Array.isArray(t))return t.map((function(t){return n.resolveRequire(t)}));if("object"==typeof t){var r={};return Object.keys(t).forEach((function(e){return r[e]=n.resolveRequire(t[e])})),r}if("string"==typeof t){var o=t.match(F),i=o[1]||o[3],a=t.substring(o[0].length),c=!!o[2],s=!!i,u="^^"===i,p=v(a),l=u?this.$element.parent():this.$element,h=s?l.inheritedData(p):l.data(p);if(!h&&!c)throw new Error("Unable to find required '"+t+"' in upgraded directive '"+this.name+"'.");return h}throw new Error("Unrecognized 'require' syntax on upgraded directive '"+this.name+"': "+t)}return null},t}();function V(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return w(t)?t.apply(void 0,h(e)):t}function z(t){return t&&!Array.isArray(t)&&"object"==typeof t}function Z(t,e){throw new Error("Upgraded directive '"+t+"' contains unsupported feature: '"+e+"'.")}
44/**
45 * @license
46 * Copyright Google LLC All Rights Reserved.
47 *
48 * Use of this source code is governed by an MIT-style license that can be
49 * found in the LICENSE file at https://angular.io/license
50 */var W={__UNINITIALIZED__:!0},J=function J(){this.twoWayBoundProperties=[],this.twoWayBoundLastValues=[],this.expressionBoundProperties=[],this.propertyToOutputMap={}},H=function(){function t(t,e,n){this.name=t,this.elementRef=e,this.injector=n,this.helper=new q(n,t,e),this.$injector=this.helper.$injector,this.element=this.helper.element,this.$element=this.helper.$element,this.directive=this.helper.directive,this.bindings=this.initializeBindings(this.directive);var r=n.get("$scope");this.$componentScope=r.$new(!!this.directive.scope),this.initializeOutputs()}return t.prototype.ngOnInit=function(){var t=this,e=this.helper.prepareTransclusion(),n=this.helper.compileTemplate(),r=this.directive.controller,o=this.directive.bindToController;if(r)this.controllerInstance=this.helper.buildController(r,this.$componentScope);else if(o)throw new Error("Upgraded directive '"+this.directive.name+"' specifies 'bindToController' but no controller.");this.bindingDestination=o?this.controllerInstance:this.$componentScope,this.bindOutputs();var i=this.helper.resolveAndBindRequiredControllers(this.controllerInstance);if(this.pendingChanges&&(this.forwardChanges(this.pendingChanges),this.pendingChanges=null),this.controllerInstance&&w(this.controllerInstance.$onInit)&&this.controllerInstance.$onInit(),this.controllerInstance&&w(this.controllerInstance.$doCheck)){var a=function(){return t.controllerInstance.$doCheck()};this.unregisterDoCheckWatcher=this.$componentScope.$parent.$watch(a),a()}var c=this.directive.link,s="object"==typeof c&&c.pre,u="object"==typeof c?c.post:c;s&&s(this.$componentScope,this.$element,"NOT_SUPPORTED",i,"NOT_SUPPORTED"),n(this.$componentScope,null,{parentBoundTranscludeFn:e}),u&&u(this.$componentScope,this.$element,"NOT_SUPPORTED",i,"NOT_SUPPORTED"),this.controllerInstance&&w(this.controllerInstance.$postLink)&&this.controllerInstance.$postLink()},t.prototype.ngOnChanges=function(t){this.bindingDestination?this.forwardChanges(t):this.pendingChanges=t},t.prototype.ngDoCheck=function(){var t=this,e=this.bindings.twoWayBoundLastValues,n=this.bindings.propertyToOutputMap;this.bindings.twoWayBoundProperties.forEach((function(r,o){var i=t.bindingDestination[r];Object.is(i,e[o])||(t[n[r]].emit(i),e[o]=i)}))},t.prototype.ngOnDestroy=function(){w(this.unregisterDoCheckWatcher)&&this.unregisterDoCheckWatcher(),this.helper.onDestroy(this.$componentScope,this.controllerInstance)},t.prototype.initializeBindings=function(t){var e=this,n="object"==typeof t.bindToController;if(n&&Object.keys(t.scope).length)throw new Error("Binding definitions on scope and controller at the same time is not supported.");var r=n?t.bindToController:t.scope,o=new J;return"object"==typeof r&&Object.keys(r).forEach((function(t){var n=r[t].charAt(0);switch(n){case"@":case"<":break;case"=":o.twoWayBoundProperties.push(t),o.twoWayBoundLastValues.push(W),o.propertyToOutputMap[t]=t+"Change";break;case"&":o.expressionBoundProperties.push(t),o.propertyToOutputMap[t]=t;break;default:var i=JSON.stringify(r);throw new Error("Unexpected mapping '"+n+"' in '"+i+"' in '"+e.name+"' directive.")}})),o},t.prototype.initializeOutputs=function(){var t=this;this.bindings.twoWayBoundProperties.concat(this.bindings.expressionBoundProperties).forEach((function(n){t[t.bindings.propertyToOutputMap[n]]=new e.EventEmitter}))},t.prototype.bindOutputs=function(){var t=this;this.bindings.expressionBoundProperties.forEach((function(e){var n=t[t.bindings.propertyToOutputMap[e]];t.bindingDestination[e]=function(t){return n.emit(t)}}))},t.prototype.forwardChanges=function(t){var e=this;Object.keys(t).forEach((function(n){return e.bindingDestination[n]=t[n].currentValue})),w(this.bindingDestination.$onChanges)&&this.bindingDestination.$onChanges(t)},t}();H.decorators=[{type:e.Directive}],H.ctorParameters=function(){return[{type:String},{type:e.ElementRef},{type:e.Injector}]};var G=function(){function t(t,e){this.ngZone=e,this.injector=new U(t)}return t.prototype.bootstrap=function(t,n,r){var o=this;void 0===n&&(n=[]);var a="$$UpgradeModule.init",c=(s(a,[]).constant("$$angularUpgradeAppType",2).value(d,this.injector).factory("$$angularLazyModuleRef",[d,function(t){return{injector:t}}]).config(["$provide","$injector",function(t,n){n.has("$$testability")&&t.decorator("$$testability",["$delegate",function(t){var n=t.whenStable,r=o.injector,i=function(o){n.call(t,(function(){var n=r.get(e.Testability);n.isStable()?o():n.whenStable(i.bind(t,o))}))};return t.whenStable=i,t}]),n.has("$interval")&&t.decorator("$interval",["$delegate",function(t){var e=function(e,n,r,i){for(var a=[],c=4;c<arguments.length;c++)a[c-4]=arguments[c];return o.ngZone.runOutsideAngular((function(){return t.apply(void 0,h([function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];setTimeout((function(){o.ngZone.run((function(){return e.apply(void 0,h(t))}))}))},n,r,i],a))}))};return e.cancel=t.cancel,e}])}]).run(["$injector",function(n){o.$injector=n,I(n),o.injector.get("$injector"),u(t).data(v(d),o.injector),setTimeout((function(){var t=n.get("$rootScope"),r=o.ngZone.onMicrotaskEmpty.subscribe((function(){return t.$$phase?(e.isDevMode()&&console.warn("A digest was triggered while one was already in progress. This may mean that something is triggering digests outside the Angular zone."),t.$evalAsync()):t.$digest()}));t.$on("$destroy",(function(){r.unsubscribe()}))}),0)}]),s("$$UpgradeModule",[a].concat(n))),p=window.angular;if(p.resumeBootstrap=void 0,this.ngZone.run((function(){!function(t,e,n){i.bootstrap(t,e,n)}(t,[c.name],r)})),p.resumeBootstrap){var l=p.resumeBootstrap,f=this.ngZone;p.resumeBootstrap=function(){var t=this,e=arguments;return p.resumeBootstrap=l,f.run((function(){return p.resumeBootstrap.apply(t,e)}))}}},t}();G.decorators=[{type:e.NgModule,args:[{providers:[B]}]}],G.ctorParameters=function(){return[{type:e.Injector},{type:e.NgZone}]},
51/**
52 * @license
53 * Copyright Google LLC All Rights Reserved.
54 *
55 * Use of this source code is governed by an MIT-style license that can be
56 * found in the LICENSE file at https://angular.io/license
57 */
58/**
59 * @license
60 * Copyright Google LLC All Rights Reserved.
61 *
62 * Use of this source code is governed by an MIT-style license that can be
63 * found in the LICENSE file at https://angular.io/license
64 */
65t.UpgradeComponent=H,t.UpgradeModule=G,t.VERSION=k,t.downgradeComponent=function K(t){var n=function(n,r,o){var i,a=3===b(r),c=a?function(t){return function(){return e.NgZone.isInAngularZone()?t():i.run(t)}}:function(t){return t},s=a&&$(r)>1;return{restrict:"E",terminal:!0,require:["?^^$$angularInjector","?ngModel"],link:function(u,p,h,d){var f=d[1],g=d[0],m=void 0,v=!1;if(!g||s){var $=t.downgradedModule||"",b="$$angularLazyModuleRef"+$,w="instantiating component '"+y(t.component)+"'";j(r,$,b,w);var C=r.get(b);m=C.injector||C.promise}var O=function(i,s){var l=s.get(e.ComponentFactoryResolver).resolveComponentFactory(t.component);if(!l)throw new Error("Expecting ComponentFactory for: "+y(t.component));var d=new D(p),g=new E(p,h,u,f,i,r,n,o,l,c),m=g.compileContents();g.createComponent(m),g.setupInputs(a,t.propagateDigest),g.setupOutputs(),g.registerCleanup(),d.resolve(g.getInjector()),v&&u.$evalAsync((function(){}))},A=a?function(t,n){i||(i=t.get(e.NgZone)),c((function(){return O(t,n)}))()}:O;_.all([g||m,m||g]).then((function(t){var e=l(t,2);return A(e[0],e[1])})),v=!0}}};return n.$inject=["$compile","$injector","$parse"],n},t.downgradeInjectable=
66/**
67 * @license
68 * Copyright Google LLC All Rights Reserved.
69 *
70 * Use of this source code is governed by an MIT-style license that can be
71 * found in the LICENSE file at https://angular.io/license
72 */
73function Y(t,e){void 0===e&&(e="");var n=function(n){var r=""+d+e,o=w(t)?y(t):String(t);return j(n,e,r,"instantiating injectable '"+o+"'"),n.get(r).get(t)};return n.$inject=["$injector"],n}
74/**
75 * @license
76 * Copyright Google LLC All Rights Reserved.
77 *
78 * Use of this source code is governed by an MIT-style license that can be
79 * found in the LICENSE file at https://angular.io/license
80 */,t.downgradeModule=function X(t){var e,r="$$UpgradeModule.lazy"+ ++L,o="$$angularLazyModuleRef"+r,i=""+d+r,a=w(t)?t:function(e){return n.platformBrowser(e).bootstrapModuleFactory(t)};return s(r,[]).constant("$$angularUpgradeAppType",3).factory(d,[i,x]).factory(i,(function(){if(!e)throw new Error("Trying to get the Angular injector before bootstrapping the corresponding Angular module.");return e})).factory("$$angularLazyModuleRef",[o,x]).factory(o,["$injector",function(t){I(t);var n={promise:a(B).then((function(t){return(e=n.injector=new U(t.injector)).get("$injector"),e}))};return n}]).config(["$injector","$provide",function(t,e){e.constant("$$angularDowngradedModuleCount",$(t)+1)}]),r},t.getAngularJSGlobal=c,t.getAngularLib=function Q(){return c()},t.setAngularJSGlobal=a,t.setAngularLib=function tt(t){a(t)},t.ɵangular_packages_upgrade_static_static_a=M,t.ɵangular_packages_upgrade_static_static_b=P,t.ɵangular_packages_upgrade_static_static_c=R,t.ɵangular_packages_upgrade_static_static_d=N,t.ɵangular_packages_upgrade_static_static_e=B,Object.defineProperty(t,"__esModule",{value:!0})}));
\No newline at end of file