qa-prevention-gwj-vue/static/map/cesium91/CesiumUnminified/Workers/Transforms-5b829630.js

2 lines
39 KiB
JavaScript
Raw Normal View History

2023-12-17 15:30:40 +08:00
define(["exports","./when-422ea0ae","./Cartesian2-bd414876","./Cartesian3-e0307675","./Matrix4-4c545f70","./Check-741c5f3c","./defaultValue-81eec7ed","./Resource-8ae1a924","./RuntimeError-26acdd3b","./Math-e73894ab"],(function(e,t,n,r,a,s,i,o,u,l){"use strict";let d;const c={requestFullscreen:void 0,exitFullscreen:void 0,fullscreenEnabled:void 0,fullscreenElement:void 0,fullscreenchange:void 0,fullscreenerror:void 0},f={};let p,m,h,y,w,x,C,_,S,E,g,M,O,D,A,T,P;function R(e){const t=e.split(".");for(let e=0,n=t.length;e<n;++e)t[e]=parseInt(t[e],10);return t}function I(){if(!i.defined(m)&&(m=!1,!b())){const e=/ Chrome\/([\.0-9]+)/.exec(p.userAgent);null!==e&&(m=!0,h=R(e[1]))}return m}function N(){if(!i.defined(y)&&(y=!1,!I()&&!b()&&/ Safari\/[\.0-9]+/.test(p.userAgent))){const e=/ Version\/([\.0-9]+)/.exec(p.userAgent);null!==e&&(y=!0,w=R(e[1]))}return y}function U(){if(!i.defined(x)){x=!1;const e=/ AppleWebKit\/([\.0-9]+)(\+?)/.exec(p.userAgent);null!==e&&(x=!0,C=R(e[1]),C.isNightly=!!e[2])}return x}function F(){if(!i.defined(_)){let e;_=!1,"Microsoft Internet Explorer"===p.appName?(e=/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(p.userAgent),null!==e&&(_=!0,S=R(e[1]))):"Netscape"===p.appName&&(e=/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(p.userAgent),null!==e&&(_=!0,S=R(e[1])))}return _}function b(){if(!i.defined(E)){E=!1;const e=/ Edge\/([\.0-9]+)/.exec(p.userAgent);null!==e&&(E=!0,g=R(e[1]))}return E}function z(){if(!i.defined(M)){M=!1;const e=/Firefox\/([\.0-9]+)/.exec(p.userAgent);null!==e&&(M=!0,O=R(e[1]))}return M}function W(){if(!i.defined(P)){const e=document.createElement("canvas");e.setAttribute("style","image-rendering: -moz-crisp-edges;image-rendering: pixelated;");const t=e.style.imageRendering;P=i.defined(t)&&""!==t,P&&(T=t)}return P}function q(){return q._result}Object.defineProperties(f,{element:{get:function(){if(f.supportsFullscreen())return document[c.fullscreenElement]}},changeEventName:{get:function(){if(f.supportsFullscreen())return c.fullscreenchange}},errorEventName:{get:function(){if(f.supportsFullscreen())return c.fullscreenerror}},enabled:{get:function(){if(f.supportsFullscreen())return document[c.fullscreenEnabled]}},fullscreen:{get:function(){if(f.supportsFullscreen())return null!==f.element}}}),f.supportsFullscreen=function(){if(i.defined(d))return d;d=!1;const e=document.body;if("function"==typeof e.requestFullscreen)return c.requestFullscreen="requestFullscreen",c.exitFullscreen="exitFullscreen",c.fullscreenEnabled="fullscreenEnabled",c.fullscreenElement="fullscreenElement",c.fullscreenchange="fullscreenchange",c.fullscreenerror="fullscreenerror",d=!0,d;const t=["webkit","moz","o","ms","khtml"];let n;for(let r=0,a=t.length;r<a;++r){const a=t[r];n=`${a}RequestFullscreen`,"function"==typeof e[n]?(c.requestFullscreen=n,d=!0):(n=`${a}RequestFullScreen`,"function"==typeof e[n]&&(c.requestFullscreen=n,d=!0)),n=`${a}ExitFullscreen`,"function"==typeof document[n]?c.exitFullscreen=n:(n=`${a}CancelFullScreen`,"function"==typeof document[n]&&(c.exitFullscreen=n)),n=`${a}FullscreenEnabled`,void 0!==document[n]?c.fullscreenEnabled=n:(n=`${a}FullScreenEnabled`,void 0!==document[n]&&(c.fullscreenEnabled=n)),n=`${a}FullscreenElement`,void 0!==document[n]?c.fullscreenElement=n:(n=`${a}FullScreenElement`,void 0!==document[n]&&(c.fullscreenElement=n)),n=`${a}fullscreenchange`,void 0!==document[`on${n}`]&&("ms"===a&&(n="MSFullscreenChange"),c.fullscreenchange=n),n=`${a}fullscreenerror`,void 0!==document[`on${n}`]&&("ms"===a&&(n="MSFullscreenError"),c.fullscreenerror=n)}return d},f.requestFullscreen=function(e,t){f.supportsFullscreen()&&e[c.requestFullscreen]({vrDisplay:t})},f.exitFullscreen=function(){f.supportsFullscreen()&&document[c.exitFullscreen]()},f._names=c,p="undefined"!=typeof navigator?navigator:{},q._promise=void 0,q._result=void 0,q.initialize=function(){if(i.defined(q._promise))return q._promise;const e=t.when.defer();if(q._promise=e.promise,b())return q._result=!1,e.resolve(q._result),e.promise;const n=new Image;return n.onload=function(){q._result=n.width>0&&n.height>0,e.resolve(q._result)},n.onerror=fu