!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("Cesium")):"function"==typeof define&&define.amd?define(["Cesium"],t):"object"==typeof exports?exports["xbsjMixins/xbsjGroundPrimitiveMixin"]=t(require("Cesium")):e["xbsjMixins/xbsjGroundPrimitiveMixin"]=t(e.Cesium)}("undefined"!=typeof self?self:this,function(e){return function(e){function t(r){if(i[r])return i[r].exports;var n=i[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,t),n.l=!0,n.exports}var i={};return t.m=e,t.c=i,t.d=function(e,i,r){t.o(e,i)||Object.defineProperty(e,i,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var i=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(i,"a",i),i},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=86)}({0:function(t,i){t.exports=e},86:function(e,t,i){"use strict";var r,n;r=[i(0)],void 0!==(n=function(e){function t(t,r){if(!e.defined(t))throw new DeveloperError("viewer is required.");t._xbsjGroundPrimitive||(i(t.scene),t._xbsjGroundPrimitive=!0,e.defineProperties(t,{xbsjGroundPrimitive:{configurable:!0,get:function(){return t._xbsjGroundPrimitive}}}))}function i(t){function i(t,i){var r=t._pickDepths||t._defaultView&&t._defaultView.pickDepths,n=r[i];return e.defined(n)||(n=new e.PickDepth,r[i]=n),n}t.context._us.updateCamera;t.context._us.updateCamera=function(t){this._originUpdateCamera?this._originUpdateCamera.bind(this)(t):e.UniformState.prototype.updateCamera.bind(this)(t),this._xbsjScene=t._scene};var r,n;t.context._us.updatePass;t.context._us.updatePass=function(o){if(this._originUpdatePass?this._originUpdatePass.bind(this)(o):e.UniformState.prototype.updatePass.bind(this)(o),o===e.Pass.CESIUM_3D_TILE_CLASSIFICATION||o===e.Pass.OPAQUE){var a;a=this._xbsjScene._passState||this._xbsjScene._defaultView.passState;var s=this._xbsjScene._context,u=i(t,0);o===e.Pass.CESIUM_3D_TILE_CLASSIFICATION?a.framebuffer&&a.framebuffer.depthStencilTexture&&(u.update(s,a.framebuffer.depthStencilTexture),u.executeCopyDepth(s,a),n=u._depthTexture,r=s.uniformState.globeDepthTexture,s.uniformState.globeDepthTexture=n):o===e.Pass.OPAQUE&&void 0!==a.framebuffer&&(s.uniformState.globeDepthTexture=r)}}}function r(t,i,r,n,o,s,u,c,m){if(void 0===t||void 0===i)return void console.error("必须设置center和width!");r=r||i,n=n||0,s=s||e.Color.WHITE,o=o||"";var h=a(t,i,r,n),p=new e.Material({fabric:{type:"Image",uniforms:{image:o,color:s}}});return new e.XbsjGroundPrimitive({geometryInstances:new e.GeometryInstance({geometry:new e.PolygonGeometry({polygonHierarchy:new e.PolygonHierarchy(h),stRotation:-n})}),appearance:new e.MaterialAppearance({material:p}),classificationType:m,minHeight:u,maxHeight:c})}function n(t,i,r,n,o,a,s,u,c){a=a||e.Color.WHITE,o=o||"";var m=new e.Material({fabric:{type:"Image",uniforms:{image:o,color:a}}}),h=new e.RectangleGeometry({rectangle:e.Rectangle.fromDegrees(t,i,r,n)});return new e.XbsjGroundPrimitive({geometryInstances:new e.GeometryInstance({geometry:h}),appearance:new e.MaterialAppearance({material:m}),classificationType:c,minHeight:s,maxHeight:u})}function o(t,i,r,n){var o=new e.PolygonGeometry({polygonHierarchy:new e.PolygonHierarchy(t),height:i,perPositionHeight:!1,extrudedHeight:r});return new e.ClassificationPrimitive({geometryInstances:[new e.GeometryInstance({geometry:o,attributes:{color:e.ColorGeometryInstanceAttribute.fromColor(n)}})],classificationType:e.ClassificationType.CESIUM_3D_TILE})}e.XbsjGroundPrimitive=function(e,t,i,r,n,o,a,s,u,c,m,h,p,d,l,g,f,v,_,y,b,x,I,w,P,S,C,T,H){function M(t){t=u(t,u.EMPTY_OBJECT);var i=t.appearance,r=t.geometryInstances;if(!c(i)&&c(r))for(var n=g(r)?r:[r],o=n.length,a=0;a