| 123456789 |
- /**
- * @license
- * Copyright Google LLC 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
- */
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/common")):"function"==typeof define&&define.amd?define("@angular/cdk/platform",["exports","@angular/core","@angular/common"],t):t((e.ng=e.ng||{},e.ng.cdk=e.ng.cdk||{},e.ng.cdk.platform={}),e.ng.core,e.ng.common)}(this,function(e,t,n){"use strict";function r(){if(c)return c;if("object"!=typeof document||!document)return c=new Set(h);var e=document.createElement("input");return c=new Set(h.filter(function(t){return e.setAttribute("type",t),e.type===t}))}function o(){if(null==l&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return l=!0}}))}finally{l=l||!1}return l}function i(e){return o()?e:!!e.capture}function s(){return!!("object"==typeof document&&"scrollBehavior"in document.documentElement.style)}function a(){if("object"!=typeof document||!document)return m.NORMAL;if(!g){var e=document.createElement("div"),t=e.style;e.dir="rtl",t.height="1px",t.width="1px",t.overflow="auto",t.visibility="hidden",t.pointerEvents="none",t.position="absolute";var n=document.createElement("div"),r=n.style;r.width="2px",r.height="1px",e.appendChild(n),document.body.appendChild(e),g=m.NORMAL,0===e.scrollLeft&&(e.scrollLeft=1,g=0===e.scrollLeft?m.NEGATED:m.INVERTED),e.parentNode.removeChild(e)}return g}function u(){if(null==E){var e="undefined"!=typeof document?document.head:null;E=!(!e||!e.createShadowRoot&&!e.attachShadow)}return E}var d;try{d="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(e){d=!1}var c,l,f=function(){function e(e){this._platformId=e,this.isBrowser=this._platformId?n.isPlatformBrowser(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!d)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}return e.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[{type:Object,decorators:[{type:t.Optional},{type:t.Inject,args:[t.PLATFORM_ID]}]}]},e.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new e(t.ɵɵinject(t.PLATFORM_ID,8))},token:e,providedIn:"root"}),e}(),p=function(){function e(){}return e.decorators=[{type:t.NgModule,args:[{}]}],e}(),h=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"],m={NORMAL:0,NEGATED:1,INVERTED:2};m[m.NORMAL]="NORMAL",m[m.NEGATED]="NEGATED",m[m.INVERTED]="INVERTED";var g,E;e.Platform=f,e.PlatformModule=p,e.getSupportedInputTypes=r,e.supportsPassiveEventListeners=o,e.normalizePassiveListenerOptions=i,e.supportsScrollBehavior=s,e.getRtlScrollAxisType=a,e.RtlScrollAxisType=m,e._supportsShadowDom=u,Object.defineProperty(e,"__esModule",{value:!0})});
- //# sourceMappingURL=cdk-platform.umd.min.js.map
|