bimland/dist/Cesium/ThirdParty/Workers/PlotAlgo/PlotAlgoInclude.js

906 lines
2.9 MiB
JavaScript
Raw Normal View History

2023-07-26 17:04:38 +08:00
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
/******/ }
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ i: moduleId,
/******/ l: false,
/******/ exports: {}
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.l = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // identity function for calling harmony imports with the correct context
/******/ __webpack_require__.i = function(value) { return value; };
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ }
/******/ };
/******/
/******/ // getDefaultExport function for compatibility with non-harmony modules
/******/ __webpack_require__.n = function(module) {
/******/ var getter = module && module.__esModule ?
/******/ function getDefault() { return module['default']; } :
/******/ function getModuleExports() { return module; };
/******/ __webpack_require__.d(getter, 'a', getter);
/******/ return getter;
/******/ };
/******/
/******/ // Object.prototype.hasOwnProperty.call
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "";
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 5);
/******/ })
/************************************************************************/
/******/ ([
/* 0 */
/***/ (function(module, exports) {
/* COPYRIGHT 2012 SUPERMAP
* 本程序只能在有效的授权许可下使用
* 未经许可不得以任何手段擅自使用或传播*/
/**
* @requires SuperMap/BaseTypes.js
*/
/**
* Namespace: SuperMap.Lang
* 国际化的命名空间包含多种语言和方法库来设置和获取当前的语言
*/
var SuperMapAlgoPlot = window.SuperMapAlgoPlot = window.SuperMapAlgoPlot || {};
/***
* @private
* @type {{translate: SuperMap.PlotLang.translate}}
*/
SuperMapAlgoPlot.PlotLang = {
/**
* APIMethod: translate
* 从当前语言字符串的字典查找key
* getCode获取的值用来判断合适的字典字典存储在 <SuperMap.Lang> 方法中
*
* Parameters:
* key - {String} 字典中i18n字符串值的关键字.
* context - {Object} <SuperMap.String.format> 使用此参数
*
* Returns:
* {String} 国际化的字符串
*/
translate: function(key, context) {
var dictionary = SuperMapAlgoPlot.PlotLang["zh-CN"];
var message = dictionary && dictionary[key];
if(!message) {
// Message not found, fall back to message key
message = key;
}
if(context) {
message = SuperMapAlgoPlot.String.format(message, context);
}
return message;
}
};
/**
* @private
* APIMethod: SuperMap.plotI18n
* <SuperMap.Lang.translate> 的别名. 当前语言字符串的字典查找key
* getCode获取的值用来判断合适的字典字典存储在 <SuperMap.Lang> 方法中
*
* Parameters:
* key - {String} 字典中i18n字符串值的关键字.
* context - {Object} <SuperMap.String.format> 使用此参数
*
* Returns:
* {String} 国际化的字符串
*/
SuperMapAlgoPlot.plotI18n = SuperMapAlgoPlot.PlotLang.translate;
/**
* @private
* */
SuperMapAlgoPlot.PlotLang["zh-CN"] = {
//字体
'SongTi':"宋体",
//text
'text':"文本",
'textSizeLabel':"字体大小",
'textSizeTitle':"字体大小",
'textFaceNameLabel':"字体",
'textFaceNameTitle':"字体",
'textAlignLabel':"水平对齐方式",
'textAlignTitle':"文本的水平对齐方式",
'textVerticalAlignmentLabel':"垂直对齐方式",
'textVerticalAlignmentTitle':"文本的垂直对齐方式",
'textHaloRadiusLabel':"文本边框宽度",
'textHaloRadiusTitle':"文本的外围边框的宽度",
'textHaloColorLabel':"文本边框颜色",
'textHaloColorTitle':"文本的外围边框的颜色",
'textFillLabel':"文本颜色",
'textFillTitle':"文本的颜色值",
'textOpacityLabel':"透明度",
'textOpacityTitle':"文本的透明度",
'textDxLabel':"横向偏移",
'textDxTitle':"文本的横向偏移值",
'textDyLabel':"纵向偏移值",
'textDyTitle':"文本的纵向偏移值",
'textCompOpLabel':"叠加方式",
'textCompOpTitle':"文本之间相互叠加里使用的覆盖或者是异或等运算方式",
'expandingPointContent':"展",
'volleyPointContent':"齐",
'rendezvousPointContent':"会",
'supplyPointContent':"补",
//symbolAlgo
//JB
'symbolAlgo_17703':"加",
'symbolAlgo_17704':"急",
'symbolAlgo_21600':"冲",
'symbolAlgo_28000_1':"危",
'symbolAlgo_28000_2':"中",
'symbolAlgo_28000_3':"轻",
'symbolAlgo_315':"突击",
'symbolAlgo_31304':"慑阻",
'symbolAlgo_3010301':"调",
'symbolAlgo_3010303':"出",
'symbolAlgo_3010304':"协",
//WJ
'symbolAlgo_2121505':"火",
'symbolAlgo_2121506':"墩",
'symbolAlgo_2121507':"复",
'symbolAlgo_2121601':"遥",
'symbolAlgo_2121602':"障",
'symbolAlgo_30010':"?",
'symbolAlgo_3001101':"集",
'symbolAlgo_3001102':"暴",
'symbolAlgo_3001103':"骚",
'symbolAlgo_3001104':"私",
'symbolAlgo_3001105':"盗",
'symbolAlgo_30020':"水",
'symbolAlgo_3002001':"震",
'symbolAlgo_3002004':"火",
'symbolAlgo_30025':"滞",
'symbolAlgo_5010301':"调",
'symbolAlgo_5010303':"出",
'symbolAlgo_5010304':"协",
'symbolAlgo_5010401':"JZ",
'symbolAlgo_5022001':"ZD0",
'symbolAlgo_5034801':"催",
"symbolAlgo_60203":"避",
'symbolAlgo_60301':"爆",
'symbolAlgo_6030101':"挖",
'symbolAlgo_6030102':"浇",
'symbolAlgo_6030103':"砌",
'symbolAlgo_6030104':"装",
'symbolAlgo_6030105':"石",
'symbolAlgo_6030106':"沙",
'symbolAlgo_6030107':"练",
'symbolAlgo_60304':"隧",
'symbolAlgo_3002501':"踏",
'symbolAlgo_30026':"灾",
'symbolAlgo_40104':"缉",
'symbolAlgo_4030301':"标",
'symbolAlgo_4030302':"劝",
'symbolAlgo_4030303':"疏",
'symbolAlgo_40304':"警",
'symbolAlgo_4030401':"警",
//basic symbol
'polyLine':"折线",
'parallelogram':"平行四边形",
'circle':"圆",
'ellipse':"椭圆",
'annotation':"注记",
'regularPolygon':"正多边形",
'polygon':"多边形",
'bezier':"贝塞尔曲线",
'closedBesselCurve':"闭合贝塞尔曲线",
'kidney':"集结地",
'brace':"大括号",
'trapezoid':"梯形",
'rectangle':"矩形",
'chord':"弓形",
'sector':"扇形",
'arc':"弧线",
'parallel':"平行线",
'annoframe':"注记指示框",
'tooltipBoxM':"多角标注框",
'runway':"跑道线",
'curveEight':"八字形",
'arrowLine':"箭头线",
'pathText':"沿线注记",
'concentricCircle':"同心圆",
'combinedCircle':"组合圆",
'freeCurve':"自由线",
'nodeChain':"节点链",
'lineMarking':"线型标注",
'symbolTextBox':"标注框",
'parallelFlatArrow':"平行平耳箭头",
'multipleArrow':"多箭头",
'trapezoidalFlatArrow':"梯形平耳箭头",
'besselPointArrow':"贝塞尔尖耳箭头",
'besselArrow':"普通贝塞尔箭头",
'doubleArrow':"钳击箭头",
'brokenSpaceTriangleArrow':"折线空三角箭头",
'besselDovetailArrow':"贝塞尔燕尾箭头",
'ordinaryLineArrow':"普通折线箭头",
'besselPointedEarsTailArrow':"贝塞尔尖耳燕尾箭头",
'besselTipArrow':"贝塞尔尖耳单点箭头",
'besselArrowNoGraph':"普通贝塞尔箭头(不随图)",
'brokenSpaceTriangleArrowNoGraph':"折线空三角箭头(不随图)",
'besselPointedEarsTailArrowNoGraph':"贝塞尔尖耳燕尾箭头(不随图)",
'ordinaryLineArrowNoGraph':"普通折线箭头(不随图)",
'combianationArrow':"组合箭头",
'symbolAlgo_311':'进攻方向',
'symbolAlgo_317':'钳击',
//new obj
'airDeployment':"空军兵力部署",
'airRoute':"空军航线",
'arcRegion':"扇形区域",
'flagGroup':"多旗",
'lineRelation':"对象间连线",
'polygonRegion':"多边形区域管理",
'navyRoute':"海军航线",
'missileRoute':"导弹航线",
'navyDeployment':"海军兵力部署",
'satelliteTimeWindows':"卫星时间窗",
'satellite':"卫星",
'symbolText':"对象标注",
'symbolText1':"对象标注(带指示线)",
'interferenceBeam':"干扰波束",
'groupObject':"组合对象",
//routeNodeTypeName
'RENDEZVOUS': "会合点",
'EXPANDING': "展开点",
'VOLLEY': "齐射点",
'STANDBY': "待机点",
'SUPPLY': "补给点",
'TAKEOFF': "起飞点",
'INITIAL': "初始点",
'VISUALINITAL': "可视初始点",
'LANCH': "发射点",
'TURNING': "转弯点",
'AIMING': "瞄准点",
'COMMONROUTE': "普通航路点",
'WEAPONLAUNCH': "武器发射点",
'TARGET': "目标点",
'ATTACK':"攻击点",
'SUPPRESS':"压制点",
'EIGHTSPIRAL':"八字盘旋点",
'HAPPYVALLEY':"跑马圈点",
'LITERATESIGN':"标牌文字",
'undoStackOverflow': '撤销的栈溢出',
//Mapviewer
'noContent':'无内容',
'lableTitle': '_标签图层'
};
/***/ }),
/* 1 */
/***/ (function(module, exports) {
!function(){"use strict";function t(e){"@babel/helpers - typeof";return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function e(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}function o(t,e){return(o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function l(e){var o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var l,r=n(e);if(o){var i=n(this).constructor;l=Reflect.construct(r,arguments,i)}else l=r.apply(this,arguments);return function(e,o){if(o&&("object"===t(o)||"function"==typeof o))return o;if(void 0!==o)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(e)}(this,l)}}function n(t){return(n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var r=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&o(t,e)}(u,SuperMapAlgoPlot.AlgoSymbol);var n,r,i,a=l(u);function u(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),0===(e=a.call(this,t)).scaleValues.length&&(e.scaleValues.push(.5),e.scaleValues.push(.03)),e}return n=u,(r=[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length&&(this.scaleValues.push(.5),this.scaleValues.push(.03));var e=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),o=this.scaleValues[0];this.isEdit||(this.scaleValues[1]=this.getSubSymbolScaleValue());var l=this.scaleValues[1]*e,n=o*e,r=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(t,n);if(-1!==r.index){for(var i=r.pt,a=SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,[i,new SuperMapAlgoPlot.Point(i.x+l,i.y)]),u=0;u<t.length-1;u++){var p,s=t[u],c=t[u+1],P=SuperMapAlgoPlot.PlottingUtil.distance(i,s),f=SuperMapAlgoPlot.PlottingUtil.distance(i,c);if(!(P<l&&f<l))if(P>l&&f<l||P<l&&f>l){var g;g=P>l?s:c,(p=this.getLineAddCircleIntersectPts(s,c,a)).length>0&&this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[p[0],g])}else{var y=SuperMapAlgoPlot.PlottingUtil.projectPoint(i,s,c);if(SuperMapAlgoPlot.PlottingUtil.distance(i,y)>=l)this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[s,c]);else if(SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLine(y,s,c)){if((p=this.getLineAddCircleIntersectPts(s,c,a)).length>0){p.unshift(s),p.push(c);for(var h=0;h<p.length-1;h++)this.isLineInCircle(p[h],p[h+1],i,l)||this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[p[h],p[h+1]])}}else this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[s,c])}}this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,[i,new SuperMapAlgoPlot.Point(i.x+l,i.y)]),this.scalePoints=[];var S=i;S.isScalePoint=!0,S.tag=0,this.scalePoints.push(S);var b=new SuperMapAlgoPlot.Point(i.x+l,i.y);b.isScalePoint=!0,b.tag=1,this.scalePoints.push(b),this.finish()}}}},{key:"isLineInCircle",value:function(t,e,o,l){var n=new SuperMapAlgoPlot.Point((t.x+e.x)/2,(t.y+e.y)/2);return l>SuperMapAlgoPlot.PlottingUtil.distance(n,o)}},{key:"getLineAddCircleIntersectPts",value:function(t,e,o){var l=o.slice();l[0].x===l[l.length-1].x&&l[0].y===l[l.length-1].y||l.push
/***/ }),
/* 2 */
/***/ (function(module, exports) {
!function(){"use strict";function t(e){"@babel/helpers - typeof";return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function e(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}function o(t,e){return(o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function l(e){var o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var l,r=n(e);if(o){var i=n(this).constructor;l=Reflect.construct(r,arguments,i)}else l=r.apply(this,arguments);return function(e,o){if(o&&("object"===t(o)||"function"==typeof o))return o;if(void 0!==o)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(e)}(this,l)}}function n(t){return(n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var r=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&o(t,e)}(u,SuperMapAlgoPlot.AlgoSymbol);var n,r,i,a=l(u);function u(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),0===(e=a.call(this,t)).scaleValues.length&&(e.scaleValues[0]=.1,e.scaleValues[1]=.2),e}return n=u,(r=[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length&&(this.scaleValues=[],this.scaleValues[0]=.1,this.scaleValues[1]=.2),this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue());var e,o,l=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]),n=SuperMapAlgoPlot.PlottingUtil.radian(t[0],t[1])*SuperMapAlgoPlot.PlottingUtil.RTOD,r=this.scaleValues[0],i=this.scaleValues[1],a=r*l,u=[];for(e=90;e<=270;e+=3)o=SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],a,a,e+n),u.push(o);var p=[];for(e=-90;e<=90;e+=3)o=SuperMapAlgoPlot.PlottingUtil.circlePoint(t[1],a,a,e+n),p.push(o);var s=l*i,c=new SuperMapAlgoPlot.Point((u[0].x+p[p.length-1].x)/2,(u[0].y+p[p.length-1].y)/2),P=SuperMapAlgoPlot.PlottingUtil.linePnt(u[0],p[p.length-1],.5*(l-1.2*s)),f=SuperMapAlgoPlot.PlottingUtil.linePnt(p[p.length-1],u[0],.5*(l-1.2*s)),g=SuperMapAlgoPlot.PlottingUtil.radian(f,P)*SuperMapAlgoPlot.PlottingUtil.RTOD,y=[];y.push(P),y.push.apply(y,u),y.push.apply(y,p),y.push(f),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,SuperMapAlgoPlot.PlottingUtil.inverse(y)),this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],c,.9*s,g-90),this.scalePoints=[],this.addScalePoint(u[u.length-1]);var h=SuperMapAlgoPlot.PlottingUtil.circlePoint(c,s,s,g+90);this.addScalePoint(h),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.minEditPts>o.length)return;var l=SuperMapAlgoPlot.PlottingUtil.distance(o[0],o[1]);if(0==t){var n=SuperMapAlgoPlot.PlottingUtil.distance(e,o[0])/l;this.scaleValues[0]=n}else if(1==t){var r=this.scaleValues[0]*l,i=SuperMapAlgoPlot.PlottingUtil.radian(o[0],o[1])*SuperMapAlgoPlot.PlottingUtil.RTOD,a=SuperMapAlgoPlot.PlottingUtil.circlePoint(o[0],r,r,90+i),u=SuperMapAlgoPlot.PlottingUtil.circlePoint(o[1],r,r,90+i),p=new SuperMa
/***/ }),
/* 3 */
/***/ (function(module, exports) {
!function(){"use strict";function t(e){"@babel/helpers - typeof";return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function e(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}function o(t,e){return(o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function l(e){var o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var l,r=n(e);if(o){var i=n(this).constructor;l=Reflect.construct(r,arguments,i)}else l=r.apply(this,arguments);return function(e,o){if(o&&("object"===t(o)||"function"==typeof o))return o;if(void 0!==o)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(e)}(this,l)}}function n(t){return(n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var r=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&o(t,e)}(u,SuperMapAlgoPlot.AlgoSymbol);var n,r,i,a=l(u);function u(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),0===(e=a.call(this,t)).scaleValues.length&&(e.scaleValues.push(.04),e.scaleValues.push(1),e.scaleValues.push(.12)),e}return n=u,(r=[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var o=this.scaleValues[0],l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),n=o*l,r=this.scaleValues[2]*l*.5,i=!1;i=0===this.scaleValues[1];var a=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e);if(0!==a){for(var u=[],p=0;p<=a;p+=r){var s=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,p);if(!(s.index<0)){var c=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(n,e[s.index+1],s.pt);if(i?u.push(c.pntRight):u.push(c.pntLeft),Math.abs(p)<=1e-6){this.scalePoints=[];var P=new SuperMapAlgoPlot.Point(u[0].x,u[0].y);P.isScalePoint=!0,P.tag=0,this.scalePoints.push(P)}else Math.abs(2*r-p)<=1e-6&&((P=new SuperMapAlgoPlot.Point(s.pt.x,s.pt.y)).isScalePoint=!0,P.tag=1,this.scalePoints.push(P));i=!i}}this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,u);for(var f=u.length,g=0,y=0;y<f-1;++y){var S=new SuperMapAlgoPlot.Point(u[y].x,u[y].y),h=new SuperMapAlgoPlot.Point(u[y+1].x,u[y+1].y);g=.3*SuperMapAlgoPlot.PlottingUtil.distance(S,h);var b=[],A=SuperMapAlgoPlot.PlottingUtil.findPointOnLineByRatio(.5,u[y],u[y+1]),d=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(.5*g,u[y],A);b.push(d.pntLeft),b.push(d.pntRight),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,b)}this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length<this.minEditPts)return;var l=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o),n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);if(0===t){var r=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(1,l[1],l[0]),i=SuperMapAlgoPlot.PlottingUtil.pointProjectToSegment(e,r.pntRight,r.pntLeft),a=SuperMapAlgoPlot.PlottingUtil.distance(i.projectPoint,o
/***/ }),
/* 4 */
/***/ (function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(setImmediate) {/*!
*
* iclient-plot-webgl-common.(https://iclient.supermap.io)
* Copyright© 2000 - 2022 SuperMap Software Co.Ltd
* license: Apache-2.0
* version: v11.0.0-alpha
*
*/!function(){var t={937:function(t){!function(e){"use strict";if(e.__disableNativeFetch||!e.fetch){a.prototype.append=function(t,e){t=i(t),e=r(e);var o=this.map[t];o||(o=[],this.map[t]=o),o.push(e)},a.prototype.delete=function(t){delete this.map[i(t)]},a.prototype.get=function(t){var e=this.map[i(t)];return e?e[0]:null},a.prototype.getAll=function(t){return this.map[i(t)]||[]},a.prototype.has=function(t){return this.map.hasOwnProperty(i(t))},a.prototype.set=function(t,e){this.map[i(t)]=[r(e)]},a.prototype.forEach=function(t,e){Object.getOwnPropertyNames(this.map).forEach(function(o){this.map[o].forEach(function(l){t.call(e,l,o,this)},this)},this)};var o={blob:"FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in e,arrayBuffer:"ArrayBuffer"in e},l=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];f.prototype.clone=function(){return new f(this)},c.call(f.prototype),c.call(P.prototype),P.prototype.clone=function(){return new P(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new a(this.headers),url:this.url})},P.error=function(){var t=new P(null,{status:0,statusText:""});return t.type="error",t};var n=[301,302,303,307,308];P.redirect=function(t,e){if(-1===n.indexOf(e))throw new RangeError("Invalid status code");return new P(null,{status:e,headers:{location:t}})},e.Headers=a,e.Request=f,e.Response=P,e.fetch=function(t,e){return new Promise(function(l,n){var i;i=f.prototype.isPrototypeOf(t)&&!e?t:new f(t,e);var r=new XMLHttpRequest;var s=!1;function u(){if(4===r.readyState){var t=1223===r.status?204:r.status;if(t<100||t>599){if(s)return;return s=!0,void n(new TypeError("Network request failed"))}var e={status:t,statusText:r.statusText,headers:function(t){var e=new a;return t.getAllResponseHeaders().trim().split("\n").forEach(function(t){var o=t.trim().split(":"),l=o.shift().trim(),n=o.join(":").trim();e.append(l,n)}),e}(r),url:"responseURL"in r?r.responseURL:/^X-Request-URL:/m.test(r.getAllResponseHeaders())?r.getResponseHeader("X-Request-URL"):void 0},o="response"in r?r.response:r.responseText;s||(s=!0,l(new P(o,e)))}}r.onreadystatechange=u,r.onload=u,r.onerror=function(){s||(s=!0,n(new TypeError("Network request failed")))},r.open(i.method,i.url,!0);try{"include"===i.credentials&&("withCredentials"in r?r.withCredentials=!0:console&&console.warn&&console.warn("withCredentials is not supported, you can ignore this warning"))}catch(t){console&&console.warn&&console.warn("set withCredentials error:"+t)}"responseType"in r&&o.blob&&(r.responseType="blob"),i.headers.forEach(function(t,e){r.setRequestHeader(e,t)}),r.send(void 0===i._bodyInit?null:i._bodyInit)})},e.fetch.polyfill=!0,t.exports&&(t.exports=e.fetch)}function i(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function r(t){return"string"!=typeof t&&(t=String(t)),t}function a(t){this.map={},t instanceof a?t.forEach(function(t,e){this.append(e,t)},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function s(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function u(t){return new Promise(function(e,o){t.onload=function(){e(t.result)},t.onerror=function(){o(t.error)}})}function p(t){var e=new FileReader;return e.readAsArrayBuffer(t),u(e)}function c(){return this.bodyUsed=!1,this._initBody=function(t,e){if(this._bodyInit=t,"string"==typeof t)this._bodyText=t;else if(o.blob&&Blob.prototype.isPrototypeOf(t))this._bodyBlob=t,this._options=e;else if(o.formData&&FormData.prototype.isPrototypeOf(t))this._bodyFormData=t;else if(t){if(!o.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(t))throw new Error("unsupported BodyInit type")}else this._bodyText=""},o.blob?(this.blob=function(){var t=s(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){ret
/* Copyright© 2000 - 2018 SuperMap Software Co.Ltd. All rights reserved.
* This program are made available under the terms of the Apache License, Version 2.0
* which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
var t=window.SuperMap=window.SuperMap||{};t.Widgets=window.SuperMap.Widgets||{};var e=function(t){var e=this.constructor;return this.then(function(o){return e.resolve(t()).then(function(){return o})},function(o){return e.resolve(t()).then(function(){return e.reject(o)})})};function l(t){"@babel/helpers - typeof";return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var n=function(t){return new this(function(e,o){if(!t||void 0===t.length)return o(new TypeError(l(t)+" "+t+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var n=Array.prototype.slice.call(t);if(0===n.length)return e([]);var i=n.length;function r(t,o){if(o&&("object"===l(o)||"function"==typeof o)){var a=o.then;if("function"==typeof a)return void a.call(o,function(e){r(t,e)},function(o){n[t]={status:"rejected",reason:o},0==--i&&e(n)})}n[t]={status:"fulfilled",value:o},0==--i&&e(n)}for(var a=0;a<n.length;a++)r(a,n[a])})};function i(t){"@babel/helpers - typeof";return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var r=setTimeout;function a(t){return Boolean(t&&void 0!==t.length)}function s(){}function u(t){if(!(this instanceof u))throw new TypeError("Promises must be constructed via new");if("function"!=typeof t)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],P(t,this)}function p(t,e){for(;3===t._state;)t=t._value;0!==t._state?(t._handled=!0,u._immediateFn(function(){var o=1===t._state?e.onFulfilled:e.onRejected;if(null!==o){var l;try{l=o(t._value)}catch(t){return void f(e.promise,t)}c(e.promise,l)}else(1===t._state?c:f)(e.promise,t._value)})):t._deferreds.push(e)}function c(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"===i(e)||"function"==typeof e)){var o=e.then;if(e instanceof u)return t._state=3,t._value=e,void y(t);if("function"==typeof o)return void P((l=o,n=e,function(){l.apply(n,arguments)}),t)}t._state=1,t._value=e,y(t)}catch(e){f(t,e)}var l,n}function f(t,e){t._state=2,t._value=e,y(t)}function y(t){2===t._state&&0===t._deferreds.length&&u._immediateFn(function(){t._handled||u._unhandledRejectionFn(t._value)});for(var e=0,o=t._deferreds.length;e<o;e++)p(t,t._deferreds[e]);t._deferreds=null}function P(t,e){var o=!1;try{t(function(t){o||(o=!0,c(e,t))},function(t){o||(o=!0,f(e,t))})}catch(t){if(o)return;o=!0,f(e,t)}}u.prototype.catch=function(t){return this.then(null,t)},u.prototype.then=function(t,e){var o=new this.constructor(s);return p(this,new function(t,e,o){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof e?e:null,this.promise=o}(t,e,o)),o},u.prototype.finally=e,u.all=function(t){return new u(function(e,o){if(!a(t))return o(new TypeError("Promise.all accepts an array"));var l=Array.prototype.slice.call(t);if(0===l.length)return e([]);var n=l.length;function r(t,a){try{if(a&&("object"===i(a)||"function"==typeof a)){var s=a.then;if("function"==typeof s)return void s.call(a,function(e){r(t,e)},o)}l[t]=a,0==--n&&e(l)}catch(t){o(t)}}for(var s=0;s<l.length;s++)r(s,l[s])})},u.allSettled=n,u.resolve=function(t){return t&&"object"===i(t)&&t.constructor===u?t:new u(function(e){e(t)})},u.reject=function(t){return new u(function(e,o){o(t)})},u.race=function(t){return new u(function(e,o){if(!a(t))return o(new TypeError("Promise.race accepts an array"));for(var l=0,n=t.length;l<n;l++)u.resolve(t[l]).then(e,o)})},u._immediateFn="function"==typeof setImmediate&&function(t){setImmediate(t)}||function(t){r(t,0)},u._unhandledRejectionFn=function(t){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",t)};var h=u;
/* Copyright© 2000 - 2018 SuperMap Software Co.Ltd. All rights reserved.
* This program are made available under the terms of the Apache License, Version 2.0
* which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
window.Promise=h;o(937);var g=o(238),S=o.n(g);function A(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}
/* Copyright© 2000 - 2018 SuperMap Software Co.Ltd. All rights reserved.
* This program are made available under the terms of the Apache License, Version 2.0
* which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
t.inherit=function(e,o){var l,n,i,r=function(){};for(r.prototype=o.prototype,e.prototype=new r,l=2,n=arguments.length;l<n;l++)"function"==typeof(i=arguments[l])&&(i=i.prototype),t.Util.extend(e.prototype,i)},t.mixin=function(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];for(var l=function(t,e,o){return e&&A(t.prototype,e),o&&A(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t}(function t(o){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);for(var l=0;l<e.length;l++)r(this,new e[l](o))}),n=0;n<e.length;n++){var i=e[n];r(l,i),r(l.prototype,i.prototype),r(l.prototype,new i)}return l;function r(t,e){var o=Object.getOwnPropertyNames(e);Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(e)));for(var l=0;l<o.length;l++){var n=o[l];if("constructor"!==n&&"prototype"!==n&&"name"!==n&&"length"!==n){var i=Object.getOwnPropertyDescriptor(e,n);window.ActiveXObject?Object.defineProperty(t,n,i||{}):Object.defineProperty(t,n,i)}}}};t.String={startsWith:function(t,e){return 0==t.indexOf(e)},contains:function(t,e){return-1!=t.indexOf(e)},trim:function(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")},camelize:function(t){for(var e=t.split("-"),o=e[0],l=1,n=e.length;l<n;l++){var i=e[l];o+=i.charAt(0).toUpperCase()+i.substring(1)}return o},format:function(e,o,l){o||(o=window);return e.replace(t.String.tokenRegEx,function(t,e){for(var n,i=e.split(/\.+/),r=0;r<i.length;r++)0==r&&(n=o),n=n[i[r]];return"function"==typeof n&&(n=l?n.apply(null,l):n()),void 0===n?"undefined":n})},tokenRegEx:/\$\{([\w.]+?)\}/g,numberRegEx:/^([+-]?)(?=\d|\.\d)\d*(\.\d*)?([Ee]([+-]?\d+))?$/,isNumeric:function(e){return t.String.numberRegEx.test(e)},numericIf:function(e){return t.String.isNumeric(e)?parseFloat(e):e}};var d=t.Number={decimalSeparator:".",thousandsSeparator:",",limitSigDigs:function(t,e){var o=0;return e>0&&(o=parseFloat(t.toPrecision(e))),o},format:function(e,o,l,n){o=void 0!==o?o:0,l=void 0!==l?l:t.Number.thousandsSeparator,n=void 0!==n?n:t.Number.decimalSeparator,null!=o&&(e=parseFloat(e.toFixed(o)));var i=e.toString().split(".");1===i.length&&null==o&&(o=0);var r,a=i[0];if(l)for(var s=/(-?[0-9]+)([0-9]{3})/;s.test(a);)a=a.replace(s,"$1"+l+"$2");if(0==o)r=a;else{var u=i.length>1?i[1]:"0";null!=o&&(u+=new Array(o-u.length+1).join("0")),r=a+n+u}return r}};Number.prototype.limitSigDigs||(Number.prototype.limitSigDigs=function(t){return d.limitSigDigs(this,t)});var b=t.Function={bind:function(t,e){var o=Array.prototype.slice.apply(arguments,[2]);return function(){var l=o.concat(Array.prototype.slice.apply(arguments,[0]));return t.apply(e,l)}},bindAsEventListener:function(t,e){return function(o){return t.call(e,o||window.event)}},False:function(){return!1},True:function(){return!0},Void:function(){}};t.Array={filter:function(t,e,o){var l=[];if(Array.prototype.filter)l=t.filter(e,o);else{var n=t.length;if("function"!=typeof e)throw new TypeError;for(var i=0;i<n;i++)if(i in t){var r=t[i];e.call(o,r,i,t)&&l.push(r)}}return l}};function M(t){"@babel/helpers - typeof";return(M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}
/* Copyright© 2000 - 2018 SuperMap Software Co.Ltd. All rights reserved.
* This program are made available under the terms of the Apache License, Version 2.0
* which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var v,m,O,T=t.Util=t.Util||{};function w(t){"@babel/helpers - typeof";return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}
/* Copyright© 2000 - 2018 SuperMap Software Co.Ltd. All rights reserved.
* This program are made available under the terms of the Apache License, Version 2.0
* which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/t.Util.extend=function(t,e){if(t=t||{},e){for(var o in e){var l=e[o];void 0!==l&&(t[o]=l)}!("function"==typeof window.Event&&e instanceof window.Event)&&e.hasOwnProperty&&e.hasOwnProperty("toString")&&(t.toString=e.toString)}return t},t.Util.copy=function(t,e){var o;if(t=t||{},e)for(var l in t)void 0!==(o=e[l])&&(t[l]=o)},t.Util.reset=function(t){for(var e in t=t||{})if(t.hasOwnProperty(e)){if("object"===M(t[e])&&t[e]instanceof Array){for(var o in t[e])t[e][o].destroy&&t[e][o].destroy();t[e].length=0}else"object"===M(t[e])&&t[e]instanceof Object&&t[e].destroy&&t[e].destroy();t[e]=null}},t.Util.getElement=function(){for(var t=[],e=0,o=arguments.length;e<o;e++){var l=arguments[e];if("string"==typeof l&&(l=document.getElementById(l)),1===arguments.length)return l;t.push(l)}return t},t.Util.isElement=function(t){return!(!t||1!==t.nodeType)},t.Util.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)},t.Util.removeItem=function(t,e){for(var o=t.length-1;o>=0;o--)t[o]===e&&t.splice(o,1);return t},t.Util.indexOf=function(t,e){if(null==t)return-1;if("function"==typeof t.indexOf)return t.indexOf(e);for(var o=0,l=t.length;o<l;o++)if(t[o]===e)return o;return-1},t.Util.modifyDOMElement=function(t,e,o,l,n,i,r,a){e&&(t.id=e),o&&(t.style.left=o.x+"px",t.style.top=o.y+"px"),l&&(t.style.width=l.w+"px",t.style.height=l.h+"px"),n&&(t.style.position=n),i&&(t.style.border=i),r&&(t.style.overflow=r),parseFloat(a)>=0&&parseFloat(a)<1?(t.style.filter="alpha(opacity="+100*a+")",t.style.opacity=a):1===parseFloat(a)&&(t.style.filter="",t.style.opacity="")},t.Util.applyDefaults=function(t,e){t=t||{};var o="function"==typeof window.Event&&e instanceof window.Event;for(var l in e)(void 0===t[l]||!o&&e.hasOwnProperty&&e.hasOwnProperty(l)&&!t.hasOwnProperty(l))&&(t[l]=e[l]);return!o&&e&&e.hasOwnProperty&&e.hasOwnProperty("toString")&&!t.hasOwnProperty("toString")&&(t.toString=e.toString),t},t.Util.getParameterString=function(t){var e=[];for(var o in t){var l=t[o];if(null!=l&&"function"!=typeof l){var n;if("object"===M(l)&&l.constructor===Array){for(var i,r=[],a=0,s=l.length;a<s;a++)i=l[a],r.push(encodeURIComponent(null===i||void 0===i?"":i));n=r.join(",")}else n=encodeURIComponent(l);e.push(encodeURIComponent(o)+"="+n)}}return e.join("&")},t.Util.urlAppend=function(t,e){var o=t;if(e){var l=(t+" ").split(/[?&]/);o+=" "===l.pop()?e:l.length?"&"+e:"?"+e}return o},t.Util.DEFAULT_PRECISION=14,t.Util.toFloat=function(e,o){return null==o&&(o=t.Util.DEFAULT_PRECISION),"number"!=typeof e&&(e=parseFloat(e)),0===o?e:parseFloat(e.toPrecision(o))},t.Util.rad=function(t){return t*Math.PI/180},t.Util.getParameters=function(e){e=null===e||void 0===e?window.location.href:e;var o="";if(t.String.contains(e,"?")){var l=e.indexOf("?")+1,n=t.String.contains(e,"#")?e.indexOf("#"):e.length;o=e.substring(l,n)}for(var i={},r=o.split(/[&;]/),a=0,s=r.length;a<s;++a){var u=r[a].split("=");if(u[0]){var p=u[0];try{p=decodeURIComponent(p)}catch(t){p=unescape(p)}var c=(u[1]||"").replace(/\+/g," ");try{c=decodeURIComponent(c)}catch(t){c=unescape(c)}1==(c=c.split(",")).length&&(c=c[0]),i[p]=c}}return i},t.Util.lastSeqID=0,t.Util.createUniqueID=function(e){return null==e&&(e="id_"),t.Util.lastSeqID+=1,e+t.Util.lastSeqID},t.INCHES_PER_UNIT={inches:1,ft:12,mi:63360,m:39.3701,km:39370.1,dd:4374754,yd:36},t.INCHES_PER_UNIT.in=t.INCHES_PER_UNIT.inches,t.INCHES_PER_UNIT.degrees=t.INCHES_PER_UNIT.dd,t.INCHES_PER_UNIT.nmi=1852*t.INCHES_PER_UNIT.m,t.METERS_PER_INCH=.0254000508001016,t.Util.extend(t.INCHES_PER_UNIT,{Inch:t.INCHES_PER_UNIT.inches,Meter:1/t.METERS_PER_INCH,Foot:.3048006096012192/t.METERS_PER_INCH,IFoot:.3048/t.METERS_PER_INCH,ClarkeFoot:.3047972651151/t.METERS_PER_INCH,SearsFoot:.30479947153867626/t.METERS_PER_INCH,GoldCoastFoot:.3047997101815088/t.METERS_PER_INCH,IInch:.0254/t.METERS_PER_INCH,MicroInch:254e-7/t.METERS_PER_INCH,Mil:2.54e-8/t.METERS_PER_INCH,Centimeter:.01/t.METERS_PER_INCH,Kilometer:1e3/t.METERS_PER_INCH,Yard:.9144018288036576/t.MET
/* Copyright© 2000 - 2018 SuperMap Software Co.Ltd. All rights reserved.
* This program are made available under the terms of the Apache License, Version 2.0
* which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
var U=function(){function e(o,l,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),this.x=o?parseFloat(o):0,this.y=l?parseFloat(l):0,this.mode=n,this.CLASS_NAME="SuperMap.Pixel",t.Pixel.Mode={LeftTop:"lefttop",RightTop:"righttop",RightBottom:"rightbottom",LeftBottom:"leftbottom"}}var o,l,n;return o=e,(l=[{key:"toString",value:function(){return"x="+this.x+",y="+this.y}},{key:"clone",value:function(){return new e(this.x,this.y,this.mode)}},{key:"equals",value:function(t){var e=!1;return null!=t&&(e=this.x==t.x&&this.y==t.y||isNaN(this.x)&&isNaN(this.y)&&isNaN(t.x)&&isNaN(t.y)),e}},{key:"distanceTo",value:function(t){return Math.sqrt(Math.pow(this.x-t.x,2)+Math.pow(this.y-t.y,2))}},{key:"add",value:function(t,o){if(null==t||null==o)throw new TypeError("Pixel.add cannot receive null values");return new e(this.x+t,this.y+o)}},{key:"offset",value:function(t){var e=this.clone();return t&&(e=this.add(t.x,t.y)),e}},{key:"destroy",value:function(){this.x=null,this.y=null,this.mode=null}}])&&I(o.prototype,l),n&&I(o,n),Object.defineProperty(o,"prototype",{writable:!1}),e}();t.Pixel=U;
/* Copyright© 2000 - 2018 SuperMap Software Co.Ltd. All rights reserved.
* This program are made available under the terms of the Apache License, Version 2.0
* which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
var _=t.Event={observers:!1,KEY_SPACE:32,KEY_BACKSPACE:8,KEY_TAB:9,KEY_RETURN:13,KEY_ESC:27,KEY_LEFT:37,KEY_UP:38,KEY_RIGHT:39,KEY_DOWN:40,KEY_DELETE:46,element:function(t){return t.target||t.srcElement},isSingleTouch:function(t){return t.touches&&1===t.touches.length},isMultiTouch:function(t){return t.touches&&t.touches.length>1},isLeftClick:function(t){return t.which&&1===t.which||t.button&&1===t.button},isRightClick:function(t){return t.which&&3===t.which||t.button&&2===t.button},stop:function(t,e){e||(t.preventDefault?t.preventDefault():t.returnValue=!1),t.stopPropagation?t.stopPropagation():t.cancelBubble=!0},findElement:function(e,o){for(var l=t.Event.element(e);l.parentNode&&(!l.tagName||l.tagName.toUpperCase()!=o.toUpperCase());)l=l.parentNode;return l},observe:function(t,e,o,l){var n=T.getElement(t);if(l=l||!1,"keypress"===e&&(navigator.appVersion.match(/Konqueror|Safari|KHTML/)||n.attachEvent)&&(e="keydown"),this.observers||(this.observers={}),!n._eventCacheID){var i="eventCacheID_";n.id&&(i=n.id+"_"+i),n._eventCacheID=T.createUniqueID(i)}var r=n._eventCacheID;this.observers[r]||(this.observers[r]=[]),this.observers[r].push({element:n,name:e,observer:o,useCapture:l}),n.addEventListener?n.addEventListener(e,o,l):n.attachEvent&&n.attachEvent("on"+e,o)},stopObservingElement:function(e){var o=T.getElement(e)._eventCacheID;this._removeElementObservers(t.Event.observers[o])},_removeElementObservers:function(e){if(e)for(var o=e.length-1;o>=0;o--){var l=e[o],n=new Array(l.element,l.name,l.observer,l.useCapture);t.Event.stopObserving.apply(this,n)}},stopObserving:function(e,o,l,n){n=n||!1;var i=T.getElement(e),r=i._eventCacheID;"keypress"===o&&(navigator.appVersion.match(/Konqueror|Safari|KHTML/)||i.detachEvent)&&(o="keydown");var a=!1,s=t.Event.observers[r];if(s)for(var u=0;!a&&u<s.length;){var p=s[u];if(p.name===o&&p.observer===l&&p.useCapture===n){s.splice(u,1),0==s.length&&delete t.Event.observers[r],a=!0;break}u++}return a&&(i.removeEventListener?i.removeEventListener(o,l,n):i&&i.detachEvent&&i.detachEvent("on"+o,l)),a},unloadCache:function(){if(t.Event&&t.Event.observers){for(var e in t.Event.observers){var o=t.Event.observers[e];t.Event._removeElementObservers.apply(this,[o])}t.Event.observers=!1}},CLASS_NAME:"SuperMap.Event"};function N(t){"@babel/helpers - typeof";return(N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function D(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}t.Event=_,t.Event.observe(window,"unload",t.Event.unloadCache,!1);
/* Copyright© 2000 - 2018 SuperMap Software Co.Ltd. All rights reserved.
* This program are made available under the terms of the Apache License, Version 2.0
* which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
var B=function(){function t(e,o,l,n,i){if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.BROWSER_EVENTS=["mouseover","mouseout","mousedown","mouseup","mousemove","click","dblclick","rightclick","dblrightclick","resize","focus","blur","touchstart","touchmove","touchend","keydown","MSPointerDown","MSPointerUp","pointerdown","pointerup","MSGestureStart","MSGestureChange","MSGestureEnd","contextmenu"],this.listeners={},this.object=e,this.element=null,this.eventTypes=[],this.eventHandler=null,this.fallThrough=n,this.includeXY=!1,this.extensions={},this.extensionCount={},this.clearMouseListener=null,T.extend(this,i),null!=l)for(var r=0,a=l.length;r<a;r++)this.addEventType(l[r]);null!=o&&this.attachToElement(o),this.CLASS_NAME="SuperMap.Events"}var e,o,l;return e=t,(o=[{key:"destroy",value:function(){for(var t in this.extensions)"boolean"!=typeof this.extensions[t]&&this.extensions[t].destroy();this.extensions=null,this.element&&(_.stopObservingElement(this.element),this.element.hasScrollEvent&&_.stopObserving(window,"scroll",this.clearMouseListener)),this.element=null,this.listeners=null,this.object=null,this.eventTypes=null,this.fallThrough=null,this.eventHandler=null}},{key:"addEventType",value:function(t){this.listeners[t]||(this.eventTypes.push(t),this.listeners[t]=[])}},{key:"attachToElement",value:function(t){this.element?_.stopObservingElement(this.element):(this.eventHandler=b.bindAsEventListener(this.handleBrowserEvent,this),this.clearMouseListener=b.bind(this.clearMouseCache,this)),this.element=t;for(var e=0,o=this.BROWSER_EVENTS.length;e<o;e++){var l=this.BROWSER_EVENTS[e];this.addEventType(l),_.observe(t,l,this.eventHandler)}_.observe(t,"dragstart",_.stop)}},{key:"on",value:function(t){for(var e in t)"scope"!==e&&t.hasOwnProperty(e)&&this.register(e,t.scope,t[e])}},{key:"register",value:function(e,o,l,n){if(e in t&&!this.extensions[e]&&(this.extensions[e]=new t[e](this)),null!=l&&-1!==T.indexOf(this.eventTypes,e)){null==o&&(o=this.object);var i=this.listeners[e];i||(i=[],this.listeners[e]=i,this.extensionCount[e]=0);var r={obj:o,func:l};n?(i.splice(this.extensionCount[e],0,r),"object"===N(n)&&n.extension&&this.extensionCount[e]++):i.push(r)}}},{key:"registerPriority",value:function(t,e,o){this.register(t,e,o,!0)}},{key:"un",value:function(t){for(var e in t)"scope"!==e&&t.hasOwnProperty(e)&&this.unregister(e,t.scope,t[e])}},{key:"unregister",value:function(t,e,o){null==e&&(e=this.object);var l=this.listeners[t];if(null!=l)for(var n=0,i=l.length;n<i;n++)if(l[n].obj===e&&l[n].func===o){l.splice(n,1);break}}},{key:"remove",value:function(t){null!=this.listeners[t]&&(this.listeners[t]=[])}},{key:"triggerEvent",value:function(t,e){var o=this.listeners[t];if(o&&0!=o.length){var l;null==e&&(e={}),e.object=this.object,e.element=this.element,e.type||(e.type=t);for(var n=0,i=(o=o.slice()).length;n<i;n++){var r=o[n];if(void 0!=(l=r.func.apply(r.obj,[e]))&&0==l)break}return this.fallThrough||_.stop(e,!0),l}}},{key:"handleBrowserEvent",value:function(t){var e=t.type,o=this.listeners[e];if(o&&0!=o.length){var l=t.touches;if(l&&l[0]){for(var n,i=0,r=0,a=l.length,s=0;s<a;++s)i+=(n=l[s]).clientX,r+=n.clientY;t.clientX=i/a,t.clientY=r/a}this.includeXY&&(t.xy=this.getMousePosition(t)),this.triggerEvent(e,t)}}},{key:"clearMouseCache",value:function(){this.element.scrolls=null,this.element.lefttop=null;var t=document.body;t&&(0==t.scrollTop&&0==t.scrollLeft||!navigator.userAgent.match(/iPhone/i))&&(this.element.offsets=null)}},{key:"getMousePosition",value:function(t){if(this.includeXY?this.element.hasScrollEvent||(_.observe(window,"scroll",this.clearMouseListener),this.element.hasScrollEvent=!0):this.clearMouseCache(),!this.element.scrolls){var e=T.getViewportElement();this.element.scrolls=[e.scrollLeft,e.scrollTop]}return this.element.lefttop||(this.element.lefttop=[document.documentElement.clientLeft||0,document.documentElement.clientTop||0]),this.element.offsets||(this.element.offsets=T.pagePosition(this.element)),new U(t.clientX+this.element.scrolls[0]-this.element.offsets
/* Copyright© 2000 - 2018 SuperMap Software Co.Ltd. All rights reserved.
* This program are made available under the terms of the Apache License, Version 2.0
* which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
var j=function(){function t(e,o){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.value=e||"",this.name=o||"token",this.CLASS_NAME="SuperMap.Credential"}var e,o,l;return e=t,(o=[{key:"getUrlParameters",value:function(){return this.name+"="+this.value}},{key:"getValue",value:function(){return this.value}},{key:"destroy",value:function(){this.value=null,this.name=null}}])&&k(e.prototype,o),l&&k(e,l),Object.defineProperty(e,"prototype",{writable:!1}),t}();function V(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}j.CREDENTIAL=null,t.Credential=j;
/* Copyright© 2000 - 2018 SuperMap Software Co.Ltd. All rights reserved.
* This program are made available under the terms of the Apache License, Version 2.0
* which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
var Y=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,o,l;return e=t,l=[{key:"generateToken",value:function(t,e){var o=this.servers[t];if(o)return C.post(o.tokenServiceUrl,JSON.stringify(e.toJSON())).then(function(t){return t.text()})}},{key:"registerServers",value:function(t){this.servers=this.servers||{},T.isArray(t)||(t=[t]);for(var e=0;e<t.length;e++){var o=t[e];this.servers[o.server]=o}}},{key:"registerToken",value:function(t,e){if(this.tokens=this.tokens||{},t&&e){var o=this._getTokenStorageKey(t);this.tokens[o]=e}}},{key:"registerKey",value:function(t,e){if(this.keys=this.keys||{},t&&!(t.length<1)&&e){t=T.isArray(t)?t:[t];for(var o=0;o<t.length;o++){var l=this._getUrlRestString(t[0])||t[0];this.keys[l]=e}}}},{key:"getServerInfo",value:function(t){return this.servers=this.servers||{},this.servers[t]}},{key:"getToken",value:function(t){if(t){this.tokens=this.tokens||{};var e=this._getTokenStorageKey(t);return this.tokens[e]}}},{key:"getKey",value:function(t){this.keys=this.keys||{};var e=this._getUrlRestString(t)||t;return this.keys[e]}},{key:"loginiServer",value:function(t,e,o,l){t+="/"===t.substr(t.length-1,1)?"services/security/login.json":"/services/security/login.json";var n={username:e&&e.toString(),password:o&&o.toString(),rememberme:l};n=JSON.stringify(n);return C.post(t,n,{headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"}}).then(function(t){return t.json()})}},{key:"logoutiServer",value:function(t){t+="/"===t.substr(t.length-1,1)?"services/security/logout":"/services/security/logout";return C.get(t,"",{headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},withoutFormatSuffix:!0}).then(function(){return!0}).catch(function(){return!1})}},{key:"loginOnline",value:function(e,o){var l=t.SSO+"/login?service="+e;this._open(l,o)}},{key:"loginiPortal",value:function(t,e,o){t+="/"===t.substr(t.length-1,1)?"web/login.json":"/web/login.json";var l={username:e&&e.toString(),password:o&&o.toString()};l=JSON.stringify(l);return C.post(t,l,{headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},withCredentials:!0}).then(function(t){return t.json()})}},{key:"logoutiPortal",value:function(t){t+="/"===t.substr(t.length-1,1)?"services/security/logout":"/services/security/logout";return C.get(t,"",{headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},withCredentials:!0,withoutFormatSuffix:!0}).then(function(){return!0}).catch(function(){return!1})}},{key:"loginManager",value:function(t,e,o){if(T.isInTheSameDomain(t)){var l="/"===t.substr(t.length-1,1)?t+"icloud/security/tokens.json":t+"/icloud/security/tokens.json",n=e||{},i={username:n.userName&&n.userName.toString(),password:n.password&&n.password.toString()};i=JSON.stringify(i);var r=this;return C.post(l,i,{headers:{Accept:"*/*","Content-Type":"application/json"}}).then(function(t){t.text().then(function(t){return r.imanagerToken=t,t})})}var a=!o||o.isNewTab;this._open(t,a)}},{key:"destroyAllCredentials",value:function(){this.keys=null,this.tokens=null,this.servers=null}},{key:"destroyToken",value:function(t){if(t){var e=this._getTokenStorageKey(t);this.tokens=this.tokens||{},this.tokens[e]&&delete this.tokens[e]}}},{key:"destroyKey",value:function(t){if(t){this.keys=this.keys||{};var e=this._getUrlRestString(t)||t;this.keys[e]&&delete this.keys[e]}}},{key:"_open",value:function(t,e){e=null==e||e;var o=window.screen.availWidth/2-this.INNER_WINDOW_WIDTH/2,l=window.screen.availHeight/2-this.INNER_WINDOW_HEIGHT/2,n="height="+this.INNER_WINDOW_HEIGHT+", width="+this.INNER_WINDOW_WIDTH+",top="+l+", left="+o+",toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, status=no";e?window.open(t,"login"):window.open(t,"login",n)}},{key:"_getTokenStorageKey",value:function(t){var e=t.match(/(.*?):\/\/([^\/]+)/i);return e?e[0]:t}},{key:"_getUrlRestString",value:function(t){if(!t)return t;var e=t.match(/http:\/\/(.*\/rest)/i);return e?e[0]:t}}],(o=null)&&V(e.prototype,o),l&&V(e,l),Object.defineProperty(e
/* Copyright© 2000 - 2018 SuperMap Software Co.Ltd. All rights reserved.
* This program are made available under the terms of the Apache License, Version 2.0
* which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
t.DataFormat={GEOJSON:"GEOJSON",ISERVER:"ISERVER"};var F=t.ServerType={ISERVER:"ISERVER",IPORTAL:"IPORTAL",ONLINE:"ONLINE"};t.GeometryType={LINE:"LINE",LINEM:"LINEM",POINT:"POINT",REGION:"REGION",ELLIPSE:"ELLIPSE",CIRCLE:"CIRCLE",TEXT:"TEXT",RECTANGLE:"RECTANGLE",UNKNOWN:"UNKNOWN"},t.QueryOption={ATTRIBUTE:"ATTRIBUTE",ATTRIBUTEANDGEOMETRY:"ATTRIBUTEANDGEOMETRY",GEOMETRY:"GEOMETRY"},t.JoinType={INNERJOIN:"INNERJOIN",LEFTJOIN:"LEFTJOIN"},t.SpatialQueryMode={CONTAIN:"CONTAIN",CROSS:"CROSS",DISJOINT:"DISJOINT",IDENTITY:"IDENTITY",INTERSECT:"INTERSECT",NONE:"NONE",OVERLAP:"OVERLAP",TOUCH:"TOUCH",WITHIN:"WITHIN"},t.SpatialRelationType={CONTAIN:"CONTAIN",INTERSECT:"INTERSECT",WITHIN:"WITHIN"},t.MeasureMode={DISTANCE:"DISTANCE",AREA:"AREA"},t.Unit={METER:"METER",KILOMETER:"KILOMETER",MILE:"MILE",YARD:"YARD",DEGREE:"DEGREE",MILLIMETER:"MILLIMETER",CENTIMETER:"CENTIMETER",INCH:"INCH",DECIMETER:"DECIMETER",FOOT:"FOOT",SECOND:"SECOND",MINUTE:"MINUTE",RADIAN:"RADIAN"},t.BufferRadiusUnit={CENTIMETER:"CENTIMETER",DECIMETER:"DECIMETER",FOOT:"FOOT",INCH:"INCH",KILOMETER:"KILOMETER",METER:"METER",MILE:"MILE",MILLIMETER:"MILLIMETER",YARD:"YARD"},t.EngineType={IMAGEPLUGINS:"IMAGEPLUGINS",OGC:"OGC",ORACLEPLUS:"ORACLEPLUS",SDBPLUS:"SDBPLUS",SQLPLUS:"SQLPLUS",UDB:"UDB"},t.ThemeGraphTextFormat={CAPTION:"CAPTION",CAPTION_PERCENT:"CAPTION_PERCENT",CAPTION_VALUE:"CAPTION_VALUE",PERCENT:"PERCENT",VALUE:"VALUE"},t.ThemeGraphType={AREA:"AREA",BAR:"BAR",BAR3D:"BAR3D",LINE:"LINE",PIE:"PIE",PIE3D:"PIE3D",POINT:"POINT",RING:"RING",ROSE:"ROSE",ROSE3D:"ROSE3D",STACK_BAR:"STACK_BAR",STACK_BAR3D:"STACK_BAR3D",STEP:"STEP"},t.GraphAxesTextDisplayMode={ALL:"ALL",NONE:"NONE",YAXES:"YAXES"},t.GraduatedMode={CONSTANT:"CONSTANT",LOGARITHM:"LOGARITHM",SQUAREROOT:"SQUAREROOT"},t.RangeMode={CUSTOMINTERVAL:"CUSTOMINTERVAL",EQUALINTERVAL:"EQUALINTERVAL",LOGARITHM:"LOGARITHM",QUANTILE:"QUANTILE",SQUAREROOT:"SQUAREROOT",STDDEVIATION:"STDDEVIATION"},t.ThemeType={DOTDENSITY:"DOTDENSITY",GRADUATEDSYMBOL:"GRADUATEDSYMBOL",GRAPH:"GRAPH",LABEL:"LABEL",RANGE:"RANGE",UNIQUE:"UNIQUE"},t.ColorGradientType={BLACK_WHITE:"BLACKWHITE",BLUE_BLACK:"BLUEBLACK",BLUE_RED:"BLUERED",BLUE_WHITE:"BLUEWHITE",CYAN_BLACK:"CYANBLACK",CYAN_BLUE:"CYANBLUE",CYAN_GREEN:"CYANGREEN",CYAN_WHITE:"CYANWHITE",GREEN_BLACK:"GREENBLACK",GREEN_BLUE:"GREENBLUE",GREEN_ORANGE_VIOLET:"GREENORANGEVIOLET",GREEN_RED:"GREENRED",GREEN_WHITE:"GREENWHITE",PINK_BLACK:"PINKBLACK",PINK_BLUE:"PINKBLUE",PINK_RED:"PINKRED",PINK_WHITE:"PINKWHITE",RAIN_BOW:"RAINBOW",RED_BLACK:"REDBLACK",RED_WHITE:"REDWHITE",SPECTRUM:"SPECTRUM",TERRAIN:"TERRAIN",YELLOW_BLACK:"YELLOWBLACK",YELLOW_BLUE:"YELLOWBLUE",YELLOW_GREEN:"YELLOWGREEN",YELLOW_RED:"YELLOWRED",YELLOW_WHITE:"YELLOWWHITE"},t.TextAlignment={TOPLEFT:"TOPLEFT",TOPCENTER:"TOPCENTER",TOPRIGHT:"TOPRIGHT",BASELINELEFT:"BASELINELEFT",BASELINECENTER:"BASELINECENTER",BASELINERIGHT:"BASELINERIGHT",BOTTOMLEFT:"BOTTOMLEFT",BOTTOMCENTER:"BOTTOMCENTER",BOTTOMRIGHT:"BOTTOMRIGHT",MIDDLELEFT:"MIDDLELEFT",MIDDLECENTER:"MIDDLECENTER",MIDDLERIGHT:"MIDDLERIGHT"},t.FillGradientMode={NONE:"NONE",LINEAR:"LINEAR",RADIAL:"RADIAL",CONICAL:"CONICAL",SQUARE:"SQUARE"},t.AlongLineDirection={NORMAL:"ALONG_LINE_NORMAL",LB_TO_RT:"LEFT_BOTTOM_TO_RIGHT_TOP",LT_TO_RB:"LEFT_TOP_TO_RIGHT_BOTTOM",RB_TO_LT:"RIGHT_BOTTOM_TO_LEFT_TOP",RT_TO_LB:"RIGHT_TOP_TO_LEFT_BOTTOM"},t.LabelBackShape={DIAMOND:"DIAMOND",ELLIPSE:"ELLIPSE",MARKER:"MARKER",NONE:"NONE",RECT:"RECT",ROUNDRECT:"ROUNDRECT",TRIANGLE:"TRIANGLE"},t.LabelOverLengthMode={NEWLINE:"NEWLINE",NONE:"NONE",OMIT:"OMIT"},t.DirectionType={EAST:"EAST",NONE:"NONE",NORTH:"NORTH",SOURTH:"SOURTH",WEST:"WEST"},t.SideType={LEFT:"LEFT",MIDDLE:"MIDDLE",NONE:"NONE",RIGHT:"RIGHT"},t.SupplyCenterType={FIXEDCENTER:"FIXEDCENTER",NULL:"NULL",OPTIONALCENTER:"OPTIONALCENTER"},t.TurnType={AHEAD:"AHEAD",BACK:"BACK",END:"END",LEFT:"LEFT",NONE:"NONE",RIGHT:"RIGHT"},t.BufferEndType={FLAT:"FLAT",ROUND:"ROUND"},t.OverlayOperationType={CLIP:"CLIP",ERASE:"ERASE",IDENTITY:"IDENTITY",INTERSECT:"INTERSECT",UNION:"UNION",UPDATE:"UPDATE",XOR:"XOR"},t.OutputType={INDEXEDHDFS:"INDEXEDHDFS",UDB:"UDB",MONGODB:
/* Copyright© 2000 - 2018 SuperMap Software Co.Ltd. All rights reserved.
* This program are made available under the terms of the Apache License, Version 2.0
* which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
var W=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.data=null,this.keepData=!1,T.extend(this,e),this.options=e,this.CLASS_NAME="SuperMap.Format"}var e,o,l;return e=t,(o=[{key:"destroy",value:function(){}},{key:"read",value:function(t){}},{key:"write",value:function(t){}}])&&z(e.prototype,o),l&&z(e,l),Object.defineProperty(e,"prototype",{writable:!1}),t}();function G(t){"@babel/helpers - typeof";return(G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function H(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}function q(t,e){return(q=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function X(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var o,l=J(t);if(e){var n=J(this).constructor;o=Reflect.construct(l,arguments,n)}else o=l.apply(this,arguments);return function(t,e){if(e&&("object"===G(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,o)}}function J(t){return(J=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}
/* Copyright© 2000 - 2018 SuperMap Software Co.Ltd. All rights reserved.
* This program are made available under the terms of the Apache License, Version 2.0
* which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/t.Format=W;var K=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&q(t,e)}(i,W);var e,o,l,n=X(i);function i(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(e=n.call(this,t)).indent=" ",e.space=" ",e.newline="\n",e.level=0,e.pretty=!1,e.nativeJSON=!(!window.JSON||"function"!=typeof JSON.parse||"function"!=typeof JSON.stringify),e.CLASS_NAME="SuperMap.Format.JSON",e.serialize={object:function(t){if(null==t)return"null";if(t.constructor===Date)return this.serialize.date.apply(this,[t]);if(t.constructor===Array)return this.serialize.array.apply(this,[t]);var e,o,l,n=["{"];this.level+=1;var i=!1;for(e in t)t.hasOwnProperty(e)&&(o=this.write.apply(this,[e,this.pretty]),l=this.write.apply(this,[t[e],this.pretty]),null!=o&&null!=l&&(i&&n.push(","),n.push(this.writeNewline(),this.writeIndent(),o,":",this.writeSpace(),l),i=!0));return this.level-=1,n.push(this.writeNewline(),this.writeIndent(),"}"),n.join("")},array:function(t){var e,o=["["];this.level+=1;for(var l=0,n=t.length;l<n;++l)null!=(e=this.write.apply(this,[t[l],this.pretty]))&&(l>0&&o.push(","),o.push(this.writeNewline(),this.writeIndent(),e));return this.level-=1,o.push(this.writeNewline(),this.writeIndent(),"]"),o.join("")},string:function(t){var e={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return/["\\\x00-\x1f]/.test(t)?'"'+t.replace(/([\x00-\x1f\\"])/g,function(t,o){var l=e[o];return l||(l=o.charCodeAt(),"\\u00"+Math.floor(l/16).toString(16)+(l%16).toString(16))})+'"':'"'+t+'"'},number:function(t){return isFinite(t)?String(t):"null"},boolean:function(t){return String(t)},date:function(t){function e(t){return t<10?"0"+t:t}return'"'+t.getFullYear()+"-"+e(t.getMonth()+1)+"-"+e(t.getDate())+"T"+e(t.getHours())+":"+e(t.getMinutes())+":"+e(t.getSeconds())+'"'}},e}return e=i,(o=[{key:"read",value:function(t,e){var o;if(this.nativeJSON)try{o=JSON.parse(t,e)}catch(t){}return this.keepData&&(this.data=o),o}},{key:"write",value:function(t,e){this.pretty=!!e;var o=null,l=G(t);if(this.serialize[l])try{o=!this.pretty&&this.nativeJSON?JSON.stringify(t):this.serialize[l].apply(this,[t])}catch(t){}return o}},{key:"writeIndent",value:function(){var t=[];if(this.pretty)for(var e=0;e<this.level;++e)t.push(this.indent);return t.join("")}},{key:"writeNewline",value:function(){return this.pretty?this.newline:""}},{key:"writeSpace",value:function(){return this.pretty?this.space:""}}])&&H(e.prototype,o),l&&H(e,l),Object.defineProperty(e,"prototype",{writable:!1}),i}();function Q(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}t.Format.JSON=K;
/* Copyright© 2000 - 2018 SuperMap Software Co.Ltd. All rights reserved.
* This program are made available under the terms of the Apache License, Version 2.0
* which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
var Z=function(){function t(e,o){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var l=this;this.EVENT_TYPES=["processCompleted","processFailed"],this.events=null,this.eventListeners=null,this.url=null,this.urls=null,this.proxy=null,this.serverType=null,this.index=null,this.length=null,this.options=null,this.totalTimes=null,this.POLLING_TIMES=3,this._processSuccess=null,this._processFailed=null,this.isInTheSameDomain=null,this.withCredentials=!1,T.isArray(e)?(l.urls=e,l.length=e.length,l.totalTimes=l.length,1===l.length?l.url=e[0]:(l.index=parseInt(Math.random()*l.length),l.url=e[l.index])):(l.totalTimes=1,l.url=e),T.isArray(e)&&!l.isServiceSupportPolling()&&(l.url=e[0],l.totalTimes=1),l.serverType=l.serverType||F.ISERVER,o=o||{},T.extend(this,o),l.isInTheSameDomain=T.isInTheSameDomain(l.url),l.events=new B(l,null,l.EVENT_TYPES,!0),l.eventListeners instanceof Object&&l.events.on(l.eventListeners),this.CLASS_NAME="SuperMap.CommonServiceBase"}var e,o,l;return e=t,(o=[{key:"destroy",value:function(){var t=this;T.isArray(t.urls)&&(t.urls=null,t.index=null,t.length=null,t.totalTimes=null),t.url=null,t.options=null,t._processSuccess=null,t._processFailed=null,t.isInTheSameDomain=null,t.EVENT_TYPES=null,t.events&&(t.events.destroy(),t.events=null),t.eventListeners&&(t.eventListeners=null)}},{key:"request",value:function(t){var e=this;t.url=t.url||e.url,t.proxy=t.proxy||e.proxy,t.withCredentials=void 0!=t.withCredentials?t.withCredentials:e.withCredentials,t.isInTheSameDomain=e.isInTheSameDomain;var o=this.getCredential(t.url);if(o){var l=t.url.substring(t.url.length-1,t.url.length);t.url.indexOf("?")>-1&&"?"===l?t.url+=o.getUrlParameters():t.url.indexOf("?")>-1&&"?"!==l?t.url+="&"+o.getUrlParameters():t.url+="?"+o.getUrlParameters()}e.calculatePollingTimes(),e._processSuccess=t.success,e._processFailed=t.failure,t.scope=e,t.success=e.getUrlCompleted,t.failure=e.getUrlFailed,e.options=t,e._commit(e.options)}},{key:"getCredential",value:function(t){var e,o,l=t;switch(this.serverType){case F.IPORTAL:(e=(o=Y.getToken(l))?new j(o,"token"):null)||(e=(o=Y.getKey(l))?new j(o,"key"):null);break;case F.ONLINE:e=(o=Y.getKey(l))?new j(o,"key"):null;break;default:e=(o=Y.getToken(l))?new j(o,"token"):null}return e}},{key:"getUrlCompleted",value:function(t){this._processSuccess(t)}},{key:"getUrlFailed",value:function(t){this.totalTimes>0?(this.totalTimes--,this.ajaxPolling()):this._processFailed(t)}},{key:"ajaxPolling",value:function(){var t=this,e=t.options.url,o=/^http:\/\/([a-z]{9}|(\d+\.){3}\d+):\d{0,4}/;t.index=parseInt(Math.random()*t.length),t.url=t.urls[t.index],e=e.replace(o,o.exec(t.url)[0]),t.options.url=e,t.options.isInTheSameDomain=T.isInTheSameDomain(e),t._commit(t.options)}},{key:"calculatePollingTimes",value:function(){var t=this;t.times?t.totalTimes>t.POLLING_TIMES?t.times>t.POLLING_TIMES?t.totalTimes=t.POLLING_TIMES:t.totalTimes=t.times:t.times<t.totalTimes&&(t.totalTimes=t.times):t.totalTimes>t.POLLING_TIMES&&(t.totalTimes=t.POLLING_TIMES),t.totalTimes--}},{key:"isServiceSupportPolling",value:function(){return!("SuperMap.REST.ThemeService"===this.CLASS_NAME||"SuperMap.REST.EditFeaturesService"===this.CLASS_NAME)}},{key:"serviceProcessCompleted",value:function(t){t=T.transformResult(t),this.events.triggerEvent("processCompleted",{result:t})}},{key:"serviceProcessFailed",value:function(t){var e=(t=T.transformResult(t)).error||t;this.events.triggerEvent("processFailed",{error:e})}},{key:"_commit",value:function(t){"POST"!==t.method&&"PUT"!==t.method||(t.params&&(t.url=T.urlAppend(t.url,T.getParameterString(t.params||{}))),t.params=t.data),C.commit(t.method,t.url,t.params,{headers:t.headers,withCredentials:t.withCredentials,timeout:t.async?0:null,proxy:t.proxy}).then(function(t){return t.text?t.text():t.json?t.json():t}).then(function(e){var o=e;("string"==typeof e&&(o=(new K).read(e)),(!o||o.error||o.code>=300&&304!==o.code)&&(o=o&&o.error?{error:o.error}:{error:o}),o.error)?(t.scope?b.bind(t.failure,t.scope):t.failure)(o):(o.succeed=void 0==o.succeed||o.succeed,(t.scope?b
/* Copyright© 2000 - 2018 SuperMap Software Co.Ltd. All rights reserved.
* This program are made available under the terms of the Apache License, Version 2.0
* which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
var tt=function(){function t(e,o){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.w=e?parseFloat(e):0,this.h=e?parseFloat(o):0,this.CLASS_NAME="SuperMap.Size"}var e,o,l;return e=t,(o=[{key:"toString",value:function(){return"w="+this.w+",h="+this.h}},{key:"clone",value:function(){return new t(this.w,this.h)}},{key:"equals",value:function(t){var e=!1;return null!=t&&(e=this.w===t.w&&this.h===t.h||isNaN(this.w)&&isNaN(this.h)&&isNaN(t.w)&&isNaN(t.h)),e}},{key:"destroy",value:function(){this.w=null,this.h=null}}])&&$(e.prototype,o),l&&$(e,l),Object.defineProperty(e,"prototype",{writable:!1}),t}();function et(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}t.Size=tt;
/* Copyright© 2000 - 2018 SuperMap Software Co.Ltd. All rights reserved.
* This program are made available under the terms of the Apache License, Version 2.0
* which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
var ot=function(){function t(e,o){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),T.isArray(e)&&(o=e[1],e=e[0]),this.lon=e?T.toFloat(e):0,this.lat=o?T.toFloat(o):0,this.CLASS_NAME="SuperMap.LonLat"}var e,o,l;return e=t,l=[{key:"fromString",value:function(e){var o=e.split(",");return new t(o[0],o[1])}},{key:"fromArray",value:function(e){var o=T.isArray(e);return new t(o&&e[0],o&&e[1])}}],(o=[{key:"toString",value:function(){return"lon="+this.lon+",lat="+this.lat}},{key:"toShortString",value:function(){return this.lon+","+this.lat}},{key:"clone",value:function(){return new t(this.lon,this.lat)}},{key:"add",value:function(e,o){if(null==e||null==o)throw new TypeError("LonLat.add cannot receive null values");return new t(this.lon+T.toFloat(e),this.lat+T.toFloat(o))}},{key:"equals",value:function(t){var e=!1;return null!=t&&(e=this.lon===t.lon&&this.lat===t.lat||isNaN(this.lon)&&isNaN(this.lat)&&isNaN(t.lon)&&isNaN(t.lat)),e}},{key:"wrapDateLine",value:function(t){var e=this.clone();if(t){for(;e.lon<t.left;)e.lon+=t.getWidth();for(;e.lon>t.right;)e.lon-=t.getWidth()}return e}},{key:"destroy",value:function(){this.lon=null,this.lat=null}}])&&et(e.prototype,o),l&&et(e,l),Object.defineProperty(e,"prototype",{writable:!1}),t}();function lt(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}
/* Copyright© 2000 - 2018 SuperMap Software Co.Ltd. All rights reserved.
* This program are made available under the terms of the Apache License, Version 2.0
* which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
var nt=function(){function t(e,o,l,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),T.isArray(e)&&(n=e[3],l=e[2],o=e[1],e=e[0]),this.left=null!=e?T.toFloat(e):this.left,this.bottom=null!=o?T.toFloat(o):this.bottom,this.right=null!=l?T.toFloat(l):this.right,this.top=null!=n?T.toFloat(n):this.top,this.centerLonLat=null,this.CLASS_NAME="SuperMap.Bounds"}var e,o,l;return e=t,l=[{key:"fromString",value:function(e,o){var l=e.split(",");return t.fromArray(l,o)}},{key:"fromArray",value:function(e,o){return!0===o?new t(e[1],e[0],e[3],e[2]):new t(e[0],e[1],e[2],e[3])}},{key:"fromSize",value:function(e){return new t(0,e.h,e.w,0)}},{key:"oppositeQuadrant",value:function(t){var e="";return e+="t"===t.charAt(0)?"b":"t",e+="l"===t.charAt(1)?"r":"l"}}],(o=[{key:"clone",value:function(){return new t(this.left,this.bottom,this.right,this.top)}},{key:"equals",value:function(t){var e=!1;return null!=t&&(e=this.left===t.left&&this.right===t.right&&this.top===t.top&&this.bottom===t.bottom),e}},{key:"toString",value:function(){return[this.left,this.bottom,this.right,this.top].join(",")}},{key:"toArray",value:function(t){return!0===t?[this.bottom,this.left,this.top,this.right]:[this.left,this.bottom,this.right,this.top]}},{key:"toBBOX",value:function(t,e){null==t&&(t=6);var o=Math.pow(10,t),l=Math.round(this.left*o)/o,n=Math.round(this.bottom*o)/o,i=Math.round(this.right*o)/o,r=Math.round(this.top*o)/o;return!0===e?n+","+l+","+r+","+i:l+","+n+","+i+","+r}},{key:"getWidth",value:function(){return this.right-this.left}},{key:"getHeight",value:function(){return this.top-this.bottom}},{key:"getSize",value:function(){return new tt(this.getWidth(),this.getHeight())}},{key:"getCenterPixel",value:function(){return new U((this.left+this.right)/2,(this.bottom+this.top)/2)}},{key:"getCenterLonLat",value:function(){return this.centerLonLat||(this.centerLonLat=new ot((this.left+this.right)/2,(this.bottom+this.top)/2)),this.centerLonLat}},{key:"scale",value:function(e,o){var l,n;return e=e||1,null==o&&(o=this.getCenterLonLat()),"SuperMap.LonLat"===o.CLASS_NAME?(l=o.lon,n=o.lat):(l=o.x,n=o.y),new t((this.left-l)*e+l,(this.bottom-n)*e+n,(this.right-l)*e+l,(this.top-n)*e+n)}},{key:"add",value:function(e,o){if(null==e||null==o)throw new TypeError("Bounds.add cannot receive null values");return new t(this.left+e,this.bottom+o,this.right+e,this.top+o)}},{key:"extend",value:function(e){var o=null;if(e){switch(e.CLASS_NAME){case"SuperMap.LonLat":o=new t(e.lon,e.lat,e.lon,e.lat);break;case"SuperMap.Geometry.Point":o=new t(e.x,e.y,e.x,e.y);break;case"SuperMap.Bounds":o=e}o&&(this.centerLonLat=null,(null==this.left||o.left<this.left)&&(this.left=o.left),(null==this.bottom||o.bottom<this.bottom)&&(this.bottom=o.bottom),(null==this.right||o.right>this.right)&&(this.right=o.right),(null==this.top||o.top>this.top)&&(this.top=o.top))}}},{key:"containsLonLat",value:function(t,e){"boolean"==typeof e&&(e={inclusive:e}),e=e||{};var o=this.contains(t.lon,t.lat,e.inclusive),l=e.worldBounds;if(l&&!o){var n=l.getWidth(),i=(l.left+l.right)/2,r=Math.round((t.lon-i)/n);o=this.containsLonLat({lon:t.lon-r*n,lat:t.lat},{inclusive:e.inclusive})}return o}},{key:"containsPixel",value:function(t,e){return this.contains(t.x,t.y,e)}},{key:"contains",value:function(t,e,o){if(null==o&&(o=!0),null==t||null==e)return!1;t=T.toFloat(t),e=T.toFloat(e);var l=!1;return l=o?t>=this.left&&t<=this.right&&e>=this.bottom&&e<=this.top:t>this.left&&t<this.right&&e>this.bottom&&e<this.top,l}},{key:"intersectsBounds",value:function(t,e){if("boolean"==typeof e&&(e={inclusive:e}),(e=e||{}).worldBounds){var o=this.wrapDateLine(e.worldBounds);t=t.wrapDateLine(e.worldBounds)}else o=this;null==e.inclusive&&(e.inclusive=!0);var l=!1,n=o.left===t.right||o.right===t.left||o.top===t.bottom||o.bottom===t.top;if(e.inclusive||!n){var i=t.bottom>=o.bottom&&t.bottom<=o.top||o.bottom>=t.bottom&&o.bottom<=t.top,r=t.top>=o.bottom&&t.top<=o.top||o.top>t.bottom&&o.top<t.top,a=t.left>=o.left&&t.left<=o.right||o.left>=t.left&&o.left<=t.right,s=t.right>=o.left&&t.right<=o.right
/* Copyright© 2000 - 2018 SuperMap Software Co.Ltd. All rights reserved.
* This program are made available under the terms of the Apache License, Version 2.0
* which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/SuperMap.Plot.CalculateSVGGradient=He;var Ke=function(){function t(e,o,l,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.x=parseFloat(e),this.y=parseFloat(o),this.tag=n||0==n?parseFloat(n):null,this.type=l||"Point",this.CLASS_NAME="SuperMapAlgoPlot"}var e,o,l;return e=t,(o=[{key:"clone",value:function(e){return null==e&&(e=new t(this.x,this.y)),SuperMap.Util.applyDefaults(e,this),e}},{key:"calculateBounds",value:function(){this.bounds=new Bounds(this.x,this.y,this.x,this.y)}},{key:"equals",value:function(t){var e=!1;return null!=t&&(e=this.x===t.x&&this.y===t.y||isNaN(this.x)&&isNaN(this.y)&&isNaN(t.x)&&isNaN(t.y)),e}},{key:"move",value:function(t,e){this.x=this.x+t,this.y=this.y+e,this.clearBounds()}},{key:"toShortString",value:function(){return this.x+", "+this.y}},{key:"destroy",value:function(){this.x=null,this.y=null,this.tag=null,Xe(Je(t.prototype),"destroy",this).call(this)}},{key:"getVertices",value:function(t){return[this]}}])&&qe(e.prototype,o),l&&qe(e,l),Object.defineProperty(e,"prototype",{writable:!1}),t}();SuperMapAlgoPlot.Point=Ke;SuperMapAlgoPlot.AnalysisSymbol=SuperMapAlgoPlot.AnalysisSymbol||{};function Qe(t){"@babel/helpers - typeof";return(Qe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}SuperMapAlgoPlot.AnalysisSymbol.analysisBasicInfo=function(t){var e=new Object;return e.libID=t.libID,e.code=t.code,e.symbolType=t.symbolType,e.symbolName=t.symbolName,e.textContent=t.textContent,e.minEditPts=t.algoMinEditPts,e.maxEditPts=t.algoMaxEditPts,e.surroundLineType=t.surroundLineType,e},SuperMapAlgoPlot.AnalysisSymbol.analysisDotBasicInfo=function(t){var e=SuperMapAlgoPlot.PlottingUtil.DPI,o=new Object;o.anchorPoint=new SuperMapAlgoPlot.Point(t.anchorPoint.x,t.anchorPoint.y);var l=0,n=0;return void 0!==t.symbolSizeInLib?(l=Math.round(t.symbolSizeInLib.x*e/25.4/10),n=Math.round(t.symbolSizeInLib.y*e/25.4/10)):(l=Math.round(t.symbolSize.x*e/25.4/10),n=Math.round(t.symbolSize.y*e/25.4/10)),o.symbolSizeInLib=new SuperMap.Size(l,n),o.symbolSizeInLib.w=l,o.symbolSizeInLib.h=n,o.middleMarkBounds=new SuperMap.Bounds(t.middleMarkBounds.leftBottom.x,t.middleMarkBounds.leftBottom.y,t.middleMarkBounds.rightTop.x,t.middleMarkBounds.rightTop.y),o},SuperMapAlgoPlot.AnalysisSymbol.analysisAlgoBasicInfo=function(t,e){var o=new Object;if(o.subSymbols=[],o.scalePoints=[],o.scaleValues=[],e&&t.subSymbols)for(var l=0;l<t.subSymbols.length;l++)o.subSymbols.push(new SuperMapAlgoPlot.SubSymbol(t.libID,t.subSymbols[l]));if(t.scalePoints){o.scalePoints=[];for(var n=0;n<t.scalePoints.length;n++){var i=new SuperMapAlgoPlot.Point(t.scalePoints[n].x,t.scalePoints[n].y);i.tag=n,i.isScalePoint=!0,o.scalePoints.push(i)}}if(t.scaleValues)for(var r=0;r<t.scaleValues.length;r++)o.scaleValues.push(t.scaleValues[r]);return o},SuperMapAlgoPlot.AnalysisSymbol.analysisSymbolCells=function(t,e){var o=[];if(t&&(function(t,o){if(t.innerCells&&t.innerCells.length)for(var l=0;l<t.innerCells.length;l++){var n=t.innerCells[l];if(t.symbolIsCanFill&&n.type!==SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL){var i=new Object,r=SuperMapAlgoPlot.AnalysisSymbol.getStyle(t,e);i.type=32,i.style={fillSymbolID:r.fillSymbolID,fillColor:r.fillColor,fillOpacity:r.fillOpacity,strokeOpacity:0,strokeWidth:0,fillLimit:!1,lineColorLimit:!0,lineWidthLimit:!0},i.positionPoints=[];for(var a=0;a<n.positionPoints.length;a++){var s=new SuperMapAlgoPlot.Point(n.positionPoints[a].x,n.positionPoints[a].y);i.positionPoints.push(s)}o.push(i)}}}(t,o),t.innerCells)){var l=t.innerCells;if(0!==l.length)for(var n=0;n<l.length;n++)o.push(SuperMapAlgoPlot.AnalysisSymbol.analysisInnerCell(l[n],e))}return o},SuperMapAlgoPlot.AnalysisSymbol.analysisInnerCell=function(t,e){var o=new Object;if(o.positionPoints=[],t){if(void 0!==t.polybezierClose&&(o.polybezierClose=t.p
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(6).setImmediate))
/***/ }),
/* 5 */
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(4);
__webpack_require__(1);
__webpack_require__(2);
__webpack_require__(3);
__webpack_require__(0);
/***/ }),
/* 6 */
/***/ (function(module, exports, __webpack_require__) {
var apply = Function.prototype.apply;
// DOM APIs, for completeness
exports.setTimeout = function() {
return new Timeout(apply.call(setTimeout, window, arguments), clearTimeout);
};
exports.setInterval = function() {
return new Timeout(apply.call(setInterval, window, arguments), clearInterval);
};
exports.clearTimeout =
exports.clearInterval = function(timeout) {
if (timeout) {
timeout.close();
}
};
function Timeout(id, clearFn) {
this._id = id;
this._clearFn = clearFn;
}
Timeout.prototype.unref = Timeout.prototype.ref = function() {};
Timeout.prototype.close = function() {
this._clearFn.call(window, this._id);
};
// Does not start the time, just sets up the members needed.
exports.enroll = function(item, msecs) {
clearTimeout(item._idleTimeoutId);
item._idleTimeout = msecs;
};
exports.unenroll = function(item) {
clearTimeout(item._idleTimeoutId);
item._idleTimeout = -1;
};
exports._unrefActive = exports.active = function(item) {
clearTimeout(item._idleTimeoutId);
var msecs = item._idleTimeout;
if (msecs >= 0) {
item._idleTimeoutId = setTimeout(function onTimeout() {
if (item._onTimeout)
item._onTimeout();
}, msecs);
}
};
// setimmediate attaches itself to the global object
__webpack_require__(8);
exports.setImmediate = setImmediate;
exports.clearImmediate = clearImmediate;
/***/ }),
/* 7 */
/***/ (function(module, exports) {
// shim for using process in browser
var process = module.exports = {};
// cached from whatever global is present so that test runners that stub it
// don't break things. But we need to wrap it in a try catch in case it is
// wrapped in strict mode code which doesn't define any globals. It's inside a
// function because try/catches deoptimize in certain engines.
var cachedSetTimeout;
var cachedClearTimeout;
function defaultSetTimout() {
throw new Error('setTimeout has not been defined');
}
function defaultClearTimeout () {
throw new Error('clearTimeout has not been defined');
}
(function () {
try {
if (typeof setTimeout === 'function') {
cachedSetTimeout = setTimeout;
} else {
cachedSetTimeout = defaultSetTimout;
}
} catch (e) {
cachedSetTimeout = defaultSetTimout;
}
try {
if (typeof clearTimeout === 'function') {
cachedClearTimeout = clearTimeout;
} else {
cachedClearTimeout = defaultClearTimeout;
}
} catch (e) {
cachedClearTimeout = defaultClearTimeout;
}
} ())
function runTimeout(fun) {
if (cachedSetTimeout === setTimeout) {
//normal enviroments in sane situations
return setTimeout(fun, 0);
}
// if setTimeout wasn't available but was latter defined
if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
cachedSetTimeout = setTimeout;
return setTimeout(fun, 0);
}
try {
// when when somebody has screwed with setTimeout but no I.E. maddness
return cachedSetTimeout(fun, 0);
} catch(e){
try {
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
return cachedSetTimeout.call(null, fun, 0);
} catch(e){
// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
return cachedSetTimeout.call(this, fun, 0);
}
}
}
function runClearTimeout(marker) {
if (cachedClearTimeout === clearTimeout) {
//normal enviroments in sane situations
return clearTimeout(marker);
}
// if clearTimeout wasn't available but was latter defined
if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
cachedClearTimeout = clearTimeout;
return clearTimeout(marker);
}
try {
// when when somebody has screwed with setTimeout but no I.E. maddness
return cachedClearTimeout(marker);
} catch (e){
try {
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
return cachedClearTimeout.call(null, marker);
} catch (e){
// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
// Some versions of I.E. have different rules for clearTimeout vs setTimeout
return cachedClearTimeout.call(this, marker);
}
}
}
var queue = [];
var draining = false;
var currentQueue;
var queueIndex = -1;
function cleanUpNextTick() {
if (!draining || !currentQueue) {
return;
}
draining = false;
if (currentQueue.length) {
queue = currentQueue.concat(queue);
} else {
queueIndex = -1;
}
if (queue.length) {
drainQueue();
}
}
function drainQueue() {
if (draining) {
return;
}
var timeout = runTimeout(cleanUpNextTick);
draining = true;
var len = queue.length;
while(len) {
currentQueue = queue;
queue = [];
while (++queueIndex < len) {
if (currentQueue) {
currentQueue[queueIndex].run();
}
}
queueIndex = -1;
len = queue.length;
}
currentQueue = null;
draining = false;
runClearTimeout(timeout);
}
process.nextTick = function (fun) {
var args = new Array(arguments.length - 1);
if (arguments.length > 1) {
for (var i = 1; i < arguments.length; i++) {
args[i - 1] = arguments[i];
}
}
queue.push(new Item(fun, args));
if (queue.length === 1 && !draining) {
runTimeout(drainQueue);
}
};
// v8 likes predictible objects
function Item(fun, array) {
this.fun = fun;
this.array = array;
}
Item.prototype.run = function () {
this.fun.apply(null, this.array);
};
process.title = 'browser';
process.browser = true;
process.env = {};
process.argv = [];
process.version = ''; // empty string to avoid regexp issues
process.versions = {};
function noop() {}
process.on = noop;
process.addListener = noop;
process.once = noop;
process.off = noop;
process.removeListener = noop;
process.removeAllListeners = noop;
process.emit = noop;
process.prependListener = noop;
process.prependOnceListener = noop;
process.listeners = function (name) { return [] }
process.binding = function (name) {
throw new Error('process.binding is not supported');
};
process.cwd = function () { return '/' };
process.chdir = function (dir) {
throw new Error('process.chdir is not supported');
};
process.umask = function() { return 0; };
/***/ }),
/* 8 */
/***/ (function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(global, process) {(function (global, undefined) {
"use strict";
if (global.setImmediate) {
return;
}
var nextHandle = 1; // Spec says greater than zero
var tasksByHandle = {};
var currentlyRunningATask = false;
var doc = global.document;
var registerImmediate;
function setImmediate(callback) {
// Callback can either be a function or a string
if (typeof callback !== "function") {
callback = new Function("" + callback);
}
// Copy function arguments
var args = new Array(arguments.length - 1);
for (var i = 0; i < args.length; i++) {
args[i] = arguments[i + 1];
}
// Store and register the task
var task = { callback: callback, args: args };
tasksByHandle[nextHandle] = task;
registerImmediate(nextHandle);
return nextHandle++;
}
function clearImmediate(handle) {
delete tasksByHandle[handle];
}
function run(task) {
var callback = task.callback;
var args = task.args;
switch (args.length) {
case 0:
callback();
break;
case 1:
callback(args[0]);
break;
case 2:
callback(args[0], args[1]);
break;
case 3:
callback(args[0], args[1], args[2]);
break;
default:
callback.apply(undefined, args);
break;
}
}
function runIfPresent(handle) {
// From the spec: "Wait until any invocations of this algorithm started before this one have completed."
// So if we're currently running a task, we'll need to delay this invocation.
if (currentlyRunningATask) {
// Delay by doing a setTimeout. setImmediate was tried instead, but in Firefox 7 it generated a
// "too much recursion" error.
setTimeout(runIfPresent, 0, handle);
} else {
var task = tasksByHandle[handle];
if (task) {
currentlyRunningATask = true;
try {
run(task);
} finally {
clearImmediate(handle);
currentlyRunningATask = false;
}
}
}
}
function installNextTickImplementation() {
registerImmediate = function(handle) {
process.nextTick(function () { runIfPresent(handle); });
};
}
function canUsePostMessage() {
// The test against `importScripts` prevents this implementation from being installed inside a web worker,
// where `global.postMessage` means something completely different and can't be used for this purpose.
if (global.postMessage && !global.importScripts) {
var postMessageIsAsynchronous = true;
var oldOnMessage = global.onmessage;
global.onmessage = function() {
postMessageIsAsynchronous = false;
};
global.postMessage("", "*");
global.onmessage = oldOnMessage;
return postMessageIsAsynchronous;
}
}
function installPostMessageImplementation() {
// Installs an event handler on `global` for the `message` event: see
// * https://developer.mozilla.org/en/DOM/window.postMessage
// * http://www.whatwg.org/specs/web-apps/current-work/multipage/comms.html#crossDocumentMessages
var messagePrefix = "setImmediate$" + Math.random() + "$";
var onGlobalMessage = function(event) {
if (event.source === global &&
typeof event.data === "string" &&
event.data.indexOf(messagePrefix) === 0) {
runIfPresent(+event.data.slice(messagePrefix.length));
}
};
if (global.addEventListener) {
global.addEventListener("message", onGlobalMessage, false);
} else {
global.attachEvent("onmessage", onGlobalMessage);
}
registerImmediate = function(handle) {
global.postMessage(messagePrefix + handle, "*");
};
}
function installMessageChannelImplementation() {
var channel = new MessageChannel();
channel.port1.onmessage = function(event) {
var handle = event.data;
runIfPresent(handle);
};
registerImmediate = function(handle) {
channel.port2.postMessage(handle);
};
}
function installReadyStateChangeImplementation() {
var html = doc.documentElement;
registerImmediate = function(handle) {
// Create a <script> element; its readystatechange event will be fired asynchronously once it is inserted
// into the document. Do so, thus queuing up the task. Remember to clean up once it's been called.
var script = doc.createElement("script");
script.onreadystatechange = function () {
runIfPresent(handle);
script.onreadystatechange = null;
html.removeChild(script);
script = null;
};
html.appendChild(script);
};
}
function installSetTimeoutImplementation() {
registerImmediate = function(handle) {
setTimeout(runIfPresent, 0, handle);
};
}
// If supported, we should attach to the prototype of global, since that is where setTimeout et al. live.
var attachTo = Object.getPrototypeOf && Object.getPrototypeOf(global);
attachTo = attachTo && attachTo.setTimeout ? attachTo : global;
// Don't get fooled by e.g. browserify environments.
if ({}.toString.call(global.process) === "[object process]") {
// For Node.js before 0.9
installNextTickImplementation();
} else if (canUsePostMessage()) {
// For non-IE10 modern browsers
installPostMessageImplementation();
} else if (global.MessageChannel) {
// For web workers, where supported
installMessageChannelImplementation();
} else if (doc && "onreadystatechange" in doc.createElement("script")) {
// For IE 68
installReadyStateChangeImplementation();
} else {
// For older browsers
installSetTimeoutImplementation();
}
attachTo.setImmediate = setImmediate;
attachTo.clearImmediate = clearImmediate;
}(typeof self === "undefined" ? typeof global === "undefined" ? this : global : self));
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(9), __webpack_require__(7)))
/***/ }),
/* 9 */
/***/ (function(module, exports) {
var g;
// This works in non-strict mode
g = (function() {
return this;
})();
try {
// This works if eval is allowed (see CSP)
g = g || Function("return this")() || (1,eval)("this");
} catch(e) {
// This works if the window reference is available
if(typeof window === "object")
g = window;
}
// g can still be undefined, but nothing to do about it...
// We return undefined, instead of nothing here, so it's
// easier to handle this case. if(!global) { ...}
module.exports = g;
/***/ })
/******/ ]);