blob: e2b4b7dd6daf4d85ad781c0b5928d355b0bbe145 [file] [log] [blame]
/**
* @license Angular v8.1.1
* (c) 2010-2019 Google LLC. https://angular.io/
* License: MIT
*/
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/platform-browser"),require("@angular/animations"),require("@angular/animations/browser"),require("@angular/common")):"function"==typeof define&&define.amd?define("@angular/platform-browser/animations",["exports","@angular/core","@angular/platform-browser","@angular/animations","@angular/animations/browser","@angular/common"],t):t(((e=e||self).ng=e.ng||{},e.ng.platformBrowser=e.ng.platformBrowser||{},e.ng.platformBrowser.animations={}),e.ng.core,e.ng.platformBrowser,e.ng.animations,e.ng.animations.browser,e.ng.common)}(this,function(e,t,n,r,i,o){"use strict";var a=function(e,t){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function s(e,t){function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function u(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}function c(e,t){return function(n,r){t(n,r,e)}}function l(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function d(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function p(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(d(arguments[t]));return e}var f=function(e){function n(n,r){var i=e.call(this)||this;return i._nextAnimationId=0,i._renderer=n.createRenderer(r.body,{id:"0",encapsulation:t.ViewEncapsulation.None,styles:[],data:{animation:[]}}),i}return s(n,e),n.prototype.build=function(e){var t=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(e)?r.sequence(e):e;return y(this._renderer,null,t,"register",[n]),new h(t,this._renderer)},u([t.Injectable(),c(1,t.Inject(o.DOCUMENT)),l("design:paramtypes",[t.RendererFactory2,Object])],n)}(r.AnimationBuilder),h=function(e){function t(t,n){var r=e.call(this)||this;return r._id=t,r._renderer=n,r}return s(t,e),t.prototype.create=function(e,t){return new m(this._id,e,t||{},this._renderer)},t}(r.AnimationFactory),m=function(){function e(e,t,n,r){this.id=e,this.element=t,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}return e.prototype._listen=function(e,t){return this._renderer.listen(this.element,"@@"+this.id+":"+e,t)},e.prototype._command=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return y(this._renderer,this.element,this.id,e,t)},e.prototype.onDone=function(e){this._listen("done",e)},e.prototype.onStart=function(e){this._listen("start",e)},e.prototype.onDestroy=function(e){this._listen("destroy",e)},e.prototype.init=function(){this._command("init")},e.prototype.hasStarted=function(){return this._started},e.prototype.play=function(){this._command("play"),this._started=!0},e.prototype.pause=function(){this._command("pause")},e.prototype.restart=function(){this._command("restart")},e.prototype.finish=function(){this._command("finish")},e.prototype.destroy=function(){this._command("destroy")},e.prototype.reset=function(){this._command("reset")},e.prototype.setPosition=function(e){this._command("setPosition",e)},e.prototype.getPosition=function(){return 0},e}();function y(e,t,n,r,i){return e.setProperty(t,"@@"+n+":"+r,i)}var g=function(){function e(e,t,n){this.delegate=e,this.engine=t,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),t.onRemovalComplete=function(e,t){t&&t.parentNode(e)&&t.removeChild(e.parentNode,e)}}return e.prototype.createRenderer=function(e,t){var n=this,r=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){var i=this._rendererCache.get(r);return i||(i=new _("",r,this.engine),this._rendererCache.set(r,i)),i}var o=t.id,a=t.id+"-"+this._currentId;return this._currentId++,this.engine.register(a,e),t.data.animation.forEach(function(t){return n.engine.registerTrigger(o,a,e,t.name,t)}),new b(this,a,r,this.engine)},e.prototype.begin=function(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()},e.prototype._scheduleCountTask=function(){var e=this;this.promise.then(function(){e._microtaskId++})},e.prototype.scheduleListenerCallback=function(e,t,n){var r=this;e>=0&&e<this._microtaskId?this._zone.run(function(){return t(n)}):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(function(){r._zone.run(function(){r._animationCallbacksBuffer.forEach(function(e){var t=d(e,2);(0,t[0])(t[1])}),r._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,n]))},e.prototype.end=function(){var e=this;this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(function(){e._scheduleCountTask(),e.engine.flush(e._microtaskId)}),this.delegate.end&&this.delegate.end()},e.prototype.whenRenderingDone=function(){return this.engine.whenRenderingDone()},u([t.Injectable(),l("design:paramtypes",[t.RendererFactory2,iAnimationEngine,t.NgZone])],e)}(),_=function(){function e(e,t,n){this.namespaceId=e,this.delegate=t,this.engine=n,this.destroyNode=this.delegate.destroyNode?function(e){return t.destroyNode(e)}:null}return Object.defineProperty(e.prototype,"data",{get:function(){return this.delegate.data},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()},e.prototype.createElement=function(e,t){return this.delegate.createElement(e,t)},e.prototype.createComment=function(e){return this.delegate.createComment(e)},e.prototype.createText=function(e){return this.delegate.createText(e)},e.prototype.appendChild=function(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)},e.prototype.insertBefore=function(e,t,n){this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,!0)},e.prototype.removeChild=function(e,t,n){this.engine.onRemove(this.namespaceId,t,this.delegate,n)},e.prototype.selectRootElement=function(e,t){return this.delegate.selectRootElement(e,t)},e.prototype.parentNode=function(e){return this.delegate.parentNode(e)},e.prototype.nextSibling=function(e){return this.delegate.nextSibling(e)},e.prototype.setAttribute=function(e,t,n,r){this.delegate.setAttribute(e,t,n,r)},e.prototype.removeAttribute=function(e,t,n){this.delegate.removeAttribute(e,t,n)},e.prototype.addClass=function(e,t){this.delegate.addClass(e,t)},e.prototype.removeClass=function(e,t){this.delegate.removeClass(e,t)},e.prototype.setStyle=function(e,t,n,r){this.delegate.setStyle(e,t,n,r)},e.prototype.removeStyle=function(e,t,n){this.delegate.removeStyle(e,t,n)},e.prototype.setProperty=function(e,t,n){"@"==t.charAt(0)&&"@.disabled"==t?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)},e.prototype.setValue=function(e,t){this.delegate.setValue(e,t)},e.prototype.listen=function(e,t,n){return this.delegate.listen(e,t,n)},e.prototype.disableAnimations=function(e,t){this.engine.disableAnimations(e,t)},e}(),b=function(e){function t(t,n,r,i){var o=e.call(this,n,r,i)||this;return o.factory=t,o.namespaceId=n,o}return s(t,e),t.prototype.setProperty=function(e,t,n){"@"==t.charAt(0)?"."==t.charAt(1)&&"@.disabled"==t?this.disableAnimations(e,n=void 0===n||!!n):this.engine.process(this.namespaceId,e,t.substr(1),n):this.delegate.setProperty(e,t,n)},t.prototype.listen=function(e,t,n){var r,i=this;if("@"==t.charAt(0)){var o=function a(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(e),s=t.substr(1),u="";return"@"!=s.charAt(0)&&(s=(r=d(function c(e){var t=e.indexOf(".");return[e.substring(0,t),e.substr(t+1)]}
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/(s),2))[0],u=r[1]),this.engine.listen(this.namespaceId,o,s,u,function(e){i.factory.scheduleListenerCallback(e._data||-1,n,e)})}return this.delegate.listen(e,t,n)},t}(_),v=function(e){function n(t,n,r){return e.call(this,t.body,n,r)||this}return s(n,e),u([t.Injectable(),c(0,t.Inject(o.DOCUMENT)),l("design:paramtypes",[Object,i.AnimationDriver,iAnimationStyleNormalizer])],n)}(iAnimationEngine);function A(){return isupportsWebAnimations()?new iWebAnimationsDriver:new iCssKeyframesDriver}function w(){return new iWebAnimationsStyleNormalizer}function C(e,t,n){return new g(e,t,n)}var I=new t.InjectionToken("AnimationModuleType"),R=[{provide:r.AnimationBuilder,useClass:f},{provide:iAnimationStyleNormalizer,useFactory:w},{provide:iAnimationEngine,useClass:v},{provide:t.RendererFactory2,useFactory:C,deps:[nDomRendererFactory2,iAnimationEngine,t.NgZone]}],N=p([{provide:i.AnimationDriver,useFactory:A},{provide:I,useValue:"BrowserAnimations"}],R),k=p([{provide:i.AnimationDriver,useClass:iNoopAnimationDriver},{provide:I,useValue:"NoopAnimations"}],R),B=function(){return u([t.NgModule({exports:[n.BrowserModule],providers:N})],function e(){})}(),D=function(){return u([t.NgModule({exports:[n.BrowserModule],providers:k})],function e(){})}();
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
eangular_packages_platform_browser_animations_animations_f=_,eangular_packages_platform_browser_animations_animations_d=N,eangular_packages_platform_browser_animations_animations_e=k,eangular_packages_platform_browser_animations_animations_b=w,eangular_packages_platform_browser_animations_animations_c=C,eangular_packages_platform_browser_animations_animations_a=A,e.BrowserAnimationsModule=B,e.NoopAnimationsModule=D,e.ANIMATION_MODULE_TYPE=I,eBrowserAnimationBuilder=f,eBrowserAnimationFactory=h,eAnimationRenderer=b,eAnimationRendererFactory=g,eInjectableAnimationEngine=v,Object.defineProperty(e,"__esModule",{value:!0})});