6 | !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/platform-browser"),require("@angular/common")):"function"==typeof define&&define.amd?define("@angular/platform-browser/testing",["exports","@angular/core","@angular/platform-browser","@angular/common"],t):t(((e=e||self).ng=e.ng||{},e.ng.platformBrowser=e.ng.platformBrowser||{},e.ng.platformBrowser.testing={}),e.ng.core,e.ng.platformBrowser,e.ng.common)}(this,(function(e,t,r,o){"use strict";
|
20 | var n=function(){function e(e){this._overrideUa=e}return Object.defineProperty(e.prototype,"_ua",{get:function(){return"string"==typeof this._overrideUa?this._overrideUa:o.ɵgetDOM()?o.ɵgetDOM().getUserAgent():""},enumerable:!1,configurable:!0}),e.setup=function(){return new e(null)},Object.defineProperty(e.prototype,"isFirefox",{get:function(){return this._ua.indexOf("Firefox")>-1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isAndroid",{get:function(){return this._ua.indexOf("Mozilla/5.0")>-1&&this._ua.indexOf("Android")>-1&&this._ua.indexOf("AppleWebKit")>-1&&-1==this._ua.indexOf("Chrome")&&-1==this._ua.indexOf("IEMobile")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isEdge",{get:function(){return this._ua.indexOf("Edge")>-1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isIE",{get:function(){return this._ua.indexOf("Trident")>-1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isWebkit",{get:function(){return this._ua.indexOf("AppleWebKit")>-1&&-1==this._ua.indexOf("Edge")&&-1==this._ua.indexOf("IEMobile")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isIOS7",{get:function(){return(this._ua.indexOf("iPhone OS 7")>-1||this._ua.indexOf("iPad OS 7")>-1)&&-1==this._ua.indexOf("IEMobile")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isSlow",{get:function(){return this.isAndroid||this.isIE||this.isIOS7},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"supportsNativeIntlApi",{get:function(){return!!t.ɵglobal.Intl&&t.ɵglobal.Intl!==t.ɵglobal.IntlPolyfill},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isChromeDesktop",{get:function(){return this._ua.indexOf("Chrome")>-1&&-1==this._ua.indexOf("Mobile Safari")&&-1==this._ua.indexOf("Edge")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isOldChrome",{get:function(){return this._ua.indexOf("Chrome")>-1&&this._ua.indexOf("Chrome/3")>-1&&-1==this._ua.indexOf("Edge")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"supportsCustomElements",{get:function(){return void 0!==t.ɵglobal.customElements},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"supportsDeprecatedCustomCustomElementsV0",{get:function(){return void 0!==document.registerElement},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"supportsRegExUnicodeFlag",{get:function(){return RegExp.prototype.hasOwnProperty("unicode")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"supportsShadowDom",{get:function(){return void 0!==document.createElement("div").attachShadow},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"supportsDeprecatedShadowDomV0",{get:function(){return void 0!==document.createElement("div").createShadowRoot},enumerable:!1,configurable:!0}),e}();function i(){return new t.NgZone({enableLongStackTrace:!0,shouldCoalesceEventChangeDetection:!1})}n.setup();var u,a=t.createPlatformFactory(t.platformCore,"browserTesting",[{provide:t.PLATFORM_INITIALIZER,useValue:
|