@arcgis/core 4.34.0-next.93 → 4.34.0-next.94
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/analysis/ElevationProfile/ElevationProfileDisplayUnits.d.ts +4 -0
- package/analysis/ElevationProfile/{ElevationProfileUnits.js → ElevationProfileDisplayUnits.js} +1 -1
- package/analysis/ElevationProfile/ElevationProfileUnits.d.ts +1 -1
- package/analysis/ElevationProfile/ElevationProfileViewOptions.js +1 -1
- package/analysis/ElevationProfileAnalysis.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{db5a985ccc6b7d0ad855.js → 176f56de787bf486be9f.js} +1 -1
- package/assets/esri/core/workers/chunks/{ad67e5eb4b8c0c14cea6.js → 1fc7df018c8f802565a6.js} +1 -1
- package/assets/esri/core/workers/chunks/20f4c6d8b310ecab97be.js +1 -0
- package/assets/esri/core/workers/chunks/25639559336109ff3df1.js +1 -0
- package/assets/esri/core/workers/chunks/26081b6486c623735657.js +1 -0
- package/assets/esri/core/workers/chunks/2698f656405876f4bd20.js +1 -0
- package/assets/esri/core/workers/chunks/{4660798b3b45dcb5cecb.js → 2b9c9a35a6e1f56920b5.js} +2 -2
- package/assets/esri/core/workers/chunks/98381404f2d99a1f9341.js +1 -0
- package/assets/esri/core/workers/chunks/{992b1389710d716d3450.js → a410dcf80d17a2383337.js} +1 -1
- package/assets/esri/core/workers/chunks/{d9d86cf0500fa29d1d43.js → a98b284b147258629947.js} +1 -1
- package/assets/esri/core/workers/chunks/b1ccbc2fef7f7e5e04f7.js +1 -0
- package/assets/esri/core/workers/chunks/c4641c2c130c7b8bcdee.js +1 -0
- package/assets/esri/core/workers/chunks/c9159ebf930af3f336f3.js +1 -0
- package/assets/esri/core/workers/chunks/{8de9e50de0ac66ae1573.js → ce2fcaa21d6efcdf4da5.js} +1 -1
- package/assets/esri/core/workers/chunks/d2df6e685d6cffc5f486.js +1 -0
- package/assets/esri/core/workers/chunks/{c27783ce7ea51a5e49c5.js → e153b61560a7a869db63.js} +1 -1
- package/assets/esri/core/workers/chunks/e2c293331515f3bd0355.js +1 -0
- package/assets/esri/core/workers/chunks/ec7b156425f25d231078.js +1 -0
- package/assets/esri/core/workers/chunks/fb456e7425e09df17d8c.js +1 -0
- package/assets/esri/core/workers/chunks/{f6806780ca2aa591475a.js → fe1dcf9f81da4adbb1fe.js} +1 -1
- package/assets/esri/libs/parquet/pkg/bundle_bg.wasm +0 -0
- package/chunks/WaterSurface.glsl.js +0 -1
- package/chunks/bundle.js +1 -1
- package/colorUtils.js +1 -1
- package/config.js +1 -1
- package/interfaces.d.ts +229 -97
- package/kernel.js +1 -1
- package/layers/GaussianSplatLayer.js +1 -1
- package/layers/graphics/controllers/I3SOnDemandController.js +1 -1
- package/layers/graphics/dehydratedFeatureComparison.js +1 -1
- package/layers/orientedImagery/transformations/imageToWorld.js +1 -1
- package/layers/support/rasterDatasets/InMemoryRaster.js +1 -1
- package/networks/UtilityNetwork.js +1 -1
- package/networks/support/NetworkSystemLayers.js +1 -1
- package/package.json +2 -1
- package/popup/content/AttachmentsContent.js +1 -1
- package/portal/schemas/definitions.js +1 -1
- package/rest/knowledgeGraphService.js +1 -1
- package/support/revision.js +1 -1
- package/views/2d/analysis/ElevationProfile/ElevationProfileInputVisualization2D.js +1 -1
- package/views/2d/analysis/ElevationProfile/ElevationProfileLineVisualization2D.js +1 -1
- package/views/2d/analysis/ElevationProfileAnalysisView2D.js +1 -1
- package/views/2d/layers/imagery/BaseImageryTileSubView2D.js +1 -1
- package/views/2d/layers/imagery/ImageryTileView2D.js +1 -1
- package/views/3d/analysis/ElevationProfile/ElevationProfileInputVisualization3D.js +1 -1
- package/views/3d/analysis/ElevationProfile/ElevationProfileLineSceneComputation.js +1 -1
- package/views/3d/analysis/ElevationProfile/ElevationProfileLineVisualization3D.js +1 -1
- package/views/3d/analysis/ElevationProfileAnalysisView3D.js +1 -1
- package/views/3d/layers/FlowSubView3D.js +1 -1
- package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/objectResourceUtils.js +1 -1
- package/views/3d/support/GaussianSplatSortWorker.js +1 -1
- package/views/3d/support/flow/FlowSubViewTiles3D.js +1 -1
- package/views/3d/support/gaussianSplatting/GaussianSplatDataStore.js +1 -1
- package/views/3d/webgl-engine/core/shaderTechnique/ShaderTechnique.js +1 -1
- package/views/3d/webgl-engine/effects/blit/Blit.js +1 -1
- package/views/3d/webgl-engine/effects/transparency/OITBlendTechnique.js +1 -1
- package/views/3d/webgl-engine/lib/CompositingHelper.js +1 -1
- package/views/3d/webgl-engine/shaders/GaussianSplatDepthCompositionTechnique.js +1 -1
- package/views/PopupView.js +1 -1
- package/views/View.js +1 -1
- package/views/View2D.js +1 -1
- package/views/analysis/ElevationProfile/ElevationProfileChart.js +1 -1
- package/views/analysis/ElevationProfile/ElevationProfileController.js +1 -1
- package/views/analysis/ElevationProfile/ElevationProfileHoveredPointsVisualization.js +1 -1
- package/views/analysis/ElevationProfile/ElevationProfileLineComputation.js +1 -1
- package/views/analysis/ElevationProfile/ElevationProfileLineInputComputation.js +1 -1
- package/views/analysis/ElevationProfile/ElevationProfileResult.js +1 -1
- package/views/analysis/ElevationProfile/ElevationProfileTool.js +1 -1
- package/views/analysis/ElevationProfile/elevationProfileGeometryUtils.js +1 -1
- package/views/analysis/ElevationProfile/elevationProfileInputVisualizationUtils.js +1 -1
- package/views/interactive/snapping/LineSnapper.js +1 -1
- package/views/interactive/snapping/ParallelLineSnapper.js +1 -1
- package/views/interactive/snapping/RightAngleSnapper.js +1 -1
- package/views/interactive/snapping/RightAngleTriangleSnapper.js +1 -1
- package/views/interactive/snapping/snappingUtils.js +1 -1
- package/views/popupAdapter.js +5 -0
- package/views/webgl/ContextState.js +1 -1
- package/views/webgl/RenderingContext.js +1 -1
- package/views/webgl/enums.js +1 -1
- package/widgets/Attachments/AttachmentsViewModel.js +1 -1
- package/widgets/Attachments.js +1 -1
- package/widgets/ElevationProfile/support/chartUtils.js +1 -1
- package/widgets/Feature/FeatureMedia/chartCommon.js +1 -1
- package/widgets/Feature/FeatureMedia/pieChart.js +1 -1
- package/widgets/Feature/FeatureMedia/xyChart.js +1 -1
- package/widgets/Feature/FeatureViewModel.js +1 -1
- package/widgets/FeatureTable/support/ColumnTemplateBase.js +1 -1
- package/widgets/FeatureTable/support/TableTemplate.js +1 -1
- package/widgets/Features/FeaturesViewModel.js +1 -1
- package/widgets/Legend/LegendViewModel.js +1 -1
- package/widgets/Legend/support/ActiveLayerInfo.js +1 -1
- package/widgets/Legend.js +1 -1
- package/widgets/Search/SearchResultRenderer.js +1 -1
- package/widgets/Search/SearchViewModel.js +1 -1
- package/widgets/Search.js +1 -1
- package/widgets/support/chartUtilsAm5.js +1 -1
- package/assets/esri/core/workers/chunks/0b24a6c06d1becbb6815.js +0 -1
- package/assets/esri/core/workers/chunks/19f1bfe815896d4983af.js +0 -1
- package/assets/esri/core/workers/chunks/22c3a21bc9f32c429c48.js +0 -1
- package/assets/esri/core/workers/chunks/3b2ef975831eb75b40fb.js +0 -1
- package/assets/esri/core/workers/chunks/5eb7f6f5121c8830c561.js +0 -1
- package/assets/esri/core/workers/chunks/6c3b585b9cb6bb640fb0.js +0 -1
- package/assets/esri/core/workers/chunks/8b9a50cfaa5a7df02dad.js +0 -1
- package/assets/esri/core/workers/chunks/8ff2daef892881ff2019.js +0 -1
- package/assets/esri/core/workers/chunks/a6a2d4602dfeb62e0ecc.js +0 -1
- package/assets/esri/core/workers/chunks/c95e6bef8c97cf647869.js +0 -1
- package/assets/esri/core/workers/chunks/ce175801937e80e3c487.js +0 -1
- package/assets/esri/core/workers/chunks/d71836cf70b9604832f1.js +0 -1
- package/chunks/Button.js +0 -5
- package/chunks/ColorSet.js +0 -5
- package/chunks/DefaultTheme.js +0 -5
- package/chunks/LineSeries.js +0 -5
- package/chunks/ResponsiveTheme.js +0 -5
- package/chunks/Theme.js +0 -5
- package/chunks/Tick.js +0 -5
- package/chunks/Tooltip.js +0 -5
- package/chunks/ar.js +0 -5
- package/chunks/bg_BG.js +0 -5
- package/chunks/bs_BA.js +0 -5
- package/chunks/ca_ES.js +0 -5
- package/chunks/chartUtilsAm5.js +0 -5
- package/chunks/cs_CZ.js +0 -5
- package/chunks/da_DK.js +0 -5
- package/chunks/de_CH.js +0 -5
- package/chunks/de_DE.js +0 -5
- package/chunks/el_GR.js +0 -5
- package/chunks/en_CA.js +0 -5
- package/chunks/en_US.js +0 -5
- package/chunks/es_ES.js +0 -5
- package/chunks/et_EE.js +0 -5
- package/chunks/fi_FI.js +0 -5
- package/chunks/fr_FR.js +0 -5
- package/chunks/he_IL.js +0 -5
- package/chunks/hr_HR.js +0 -5
- package/chunks/hu_HU.js +0 -5
- package/chunks/id_ID.js +0 -5
- package/chunks/it_IT.js +0 -5
- package/chunks/ja_JP.js +0 -5
- package/chunks/ko_KR.js +0 -5
- package/chunks/lt_LT.js +0 -5
- package/chunks/lv_LV.js +0 -5
- package/chunks/nb_NO.js +0 -5
- package/chunks/nl_NL.js +0 -5
- package/chunks/pl_PL.js +0 -5
- package/chunks/pt_BR.js +0 -5
- package/chunks/pt_PT.js +0 -5
- package/chunks/ro_RO.js +0 -5
- package/chunks/ru_RU.js +0 -5
- package/chunks/sk_SK.js +0 -5
- package/chunks/sl_SL.js +0 -5
- package/chunks/sr_RS.js +0 -5
- package/chunks/sv_SE.js +0 -5
- package/chunks/th_TH.js +0 -5
- package/chunks/tr_TR.js +0 -5
- package/chunks/uk_UA.js +0 -5
- package/chunks/vi_VN.js +0 -5
- package/chunks/zh_Hans.js +0 -5
- package/chunks/zh_Hant.js +0 -5
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7242],{9093:(e,t,n)=>{function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function o(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]}n.d(t,{o8:()=>o,vt:()=>r,zK:()=>a});const a=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:a,clone:o,create:r,fromValues:function(e,t,n,r,o,a,i,u,l,s,c,f,d,h,b,p){return[e,t,n,r,o,a,i,u,l,s,c,f,d,h,b,p]}},Symbol.toStringTag,{value:"Module"}))},9762:(e,t,n)=>{n.r(t),n.d(t,{projectBuffer:()=>o});var r=n(37539);function o(e,t,n,o,a,i,u=Math.floor(e.length/3)){const l=(0,r.jd)(t,a);if(null==l)return!1;if(l===r.pO){if(e===o&&n===i)return!0;const t=n+3*u;for(let r=n,a=i;r<t;r++,a++)o[a]=e[r];return!0}const s=n+3*u;for(let t=n,r=i;t<s;t+=3,r+=3)l(e,t,o,r);return!0}},29242:(e,t,n)=>{function r(){return[1,0,0,0,1,0,0,0,1]}function o(e,t,n,r,o,a,i,u,l){return[e,t,n,r,o,a,i,u,l]}n.d(t,{fA:()=>o,vt:()=>r,zK:()=>a});const a=[1,0,0,0,1,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:a,clone:function(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8]]},create:r,fromValues:o},Symbol.toStringTag,{value:"Module"}))},31635:(e,t,n)=>{function r(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(o=e[u])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i}function o(e,t,n){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var r,o;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose],n&&(o=r)}if("function"!=typeof r)throw new TypeError("Object not disposable.");o&&(r=function(){try{o.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}n.d(t,{Cg:()=>r,hk:()=>i,mS:()=>o}),Object.create,Object.create;var a="function"==typeof SuppressedError?SuppressedError:function(e,t,n){var r=new Error(n);return r.name="SuppressedError",r.error=e,r.suppressed=t,r};function i(e){function t(t){e.error=e.hasError?new a(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}var n,r=0;return function o(){for(;n=e.stack.pop();)try{if(!n.async&&1===r)return r=0,e.stack.push(n),Promise.resolve().then(o);if(n.dispose){var a=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(a).then(o,function(e){return t(e),o()})}else r|=1}catch(e){t(e)}if(1===r)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}()}},34142:(e,t,n)=>{n.r(t),n.d(t,{default:()=>I});var r=n(4576),o=n(34275),a=n(67026),i=n(82534),u=n(38954),l=n(72385),s=n(16930),c=n(9762),f=(n(44208),n(63531)),d=n(69846),h=n(48425),b=n(59418),p=n(37203);function g(e,t,n){return e?.attributeInfo.useElevation?t?function(e,t){const n=new Float64Array(t);for(let r=0;r<t;r++)n[r]=e[3*r+2];return n}(t,n):null:e?.attributeInfo.storageInfo?(0,b.m0)(e.attributeInfo.storageInfo,e.buffer,n,!0):null}function y(e){switch(e){default:case null:case"none":return e=>e;case"low-four-bit":return e=>15&e;case"high-four-bit":return e=>(240&e)>>4;case"absolute-value":return e=>Math.abs(e);case"modulo-ten":return e=>e%10}}function m(e){let t=0;for(const n of e||[])t|=1<<n;return t}var w=n(57005);class M{transform(e){const t=this._transform(e),n=[t.points.buffer,t.rgb.buffer];null!=t.pointIdFilterMap&&n.push(t.pointIdFilterMap.buffer);for(const e of t.attributes)"buffer"in e.values&&(0,o.mw)(e.values.buffer)&&e.values.buffer!==t.rgb.buffer&&n.push(e.values.buffer);return Promise.resolve({result:t,transferList:n})}_transform(e){const t=function(e,t){if(null==e.encoding||""===e.encoding){const n=(0,b.wH)(t,e);if(null==n.vertexAttributes.position)return;const r=(0,b.MA)(t,n.vertexAttributes.position),o=n.header.fields,a=[o.offsetX,o.offsetY,o.offsetZ],i=[o.scaleX,o.scaleY,o.scaleZ],u=r.length/3,l=new Float64Array(3*u);for(let e=0;e<u;e++)l[3*e]=r[3*e]*i[0]+a[0],l[3*e+1]=r[3*e+1]*i[1]+a[1],l[3*e+2]=r[3*e+2]*i[2]+a[2];return l}if("lepcc-xyz"===e.encoding)return(0,p.Me)(t).result}(e.schema,e.geometryBuffer);let n=t.length/3,o=null;const a=new Array,i=g(e.primaryAttributeData,t,n);null!=e.primaryAttributeData&&i&&a.push({attributeInfo:e.primaryAttributeData.attributeInfo,values:i});const u=g(e.modulationAttributeData,t,n);null!=e.modulationAttributeData&&u&&a.push({attributeInfo:e.modulationAttributeData.attributeInfo,values:u});let l=function(e,t,n,r){const{rendererJSON:o,isRGBRenderer:a}=e;let i=null,u=null;if(t&&a)i=t;else if(t&&"pointCloudUniqueValueRenderer"===o?.type){u=h.A.fromJSON(o);const e=u.colorUniqueValueInfos;i=new Uint8Array(3*r);const n=y(u.fieldTransformType);for(let o=0;o<r;o++){const r=(n?n(t[o]):t[o])+"";for(let t=0;t<e.length;t++)if(e[t].values.includes(r)){i[3*o]=e[t].color.r,i[3*o+1]=e[t].color.g,i[3*o+2]=e[t].color.b;break}}}else if(t&&"pointCloudStretchRenderer"===o?.type){u=d.A.fromJSON(o);const e=u.stops;i=new Uint8Array(3*r);const n=y(u.fieldTransformType);for(let o=0;o<r;o++){const r=n?n(t[o]):t[o],a=e.length-1;if(r<e[0].value)i[3*o]=e[0].color.r,i[3*o+1]=e[0].color.g,i[3*o+2]=e[0].color.b;else if(r>=e[a].value)i[3*o]=e[a].color.r,i[3*o+1]=e[a].color.g,i[3*o+2]=e[a].color.b;else for(let t=1;t<e.length;t++)if(r<e[t].value){const n=(r-e[t-1].value)/(e[t].value-e[t-1].value);i[3*o]=e[t].color.r*n+e[t-1].color.r*(1-n),i[3*o+1]=e[t].color.g*n+e[t-1].color.g*(1-n),i[3*o+2]=e[t].color.b*n+e[t-1].color.b*(1-n);break}}}else if(t&&"pointCloudClassBreaksRenderer"===o?.type){u=f.A.fromJSON(o);const e=u.colorClassBreakInfos;i=new Uint8Array(3*r);const n=y(u.fieldTransformType);for(let o=0;o<r;o++){const r=n?n(t[o]):t[o];for(let t=0;t<e.length;t++)if(r>=e[t].minValue&&r<=e[t].maxValue){i[3*o]=e[t].color.r,i[3*o+1]=e[t].color.g,i[3*o+2]=e[t].color.b;break}}}else i=new Uint8Array(3*r).fill(255);if(n&&u?.colorModulation){const e=u.colorModulation.minValue,t=u.colorModulation.maxValue,o=.3;for(let a=0;a<r;a++){const r=n[a],u=r>=t?1:r<=e?o:o+(1-o)*(r-e)/(t-e);i[3*a]=u*i[3*a],i[3*a+1]=u*i[3*a+1],i[3*a+2]=u*i[3*a+2]}}return i}(e.rendererInfo,i,u,n);if(e.filterInfo&&e.filterInfo.length>0&&null!=e.filterAttributesData){const i=e.filterAttributesData.filter(r.Ru).map(e=>{const r=g(e,t,n),o={attributeInfo:e.attributeInfo,values:r};return a.push(o),o});o=new Uint32Array(n),n=function(e,t,n,r,o){const a=e.length/3;let i=0;for(let u=0;u<a;u++){let a=!0;for(let e=0;e<r.length&&a;e++){const{filterJSON:t}=r[e],n=o[e].values[u];switch(t.type){case"pointCloudValueFilter":{const e="exclude"===t.mode;t.values.includes(n)===e&&(a=!1);break}case"pointCloudBitfieldFilter":{const e=m(t.requiredSetBits),r=m(t.requiredClearBits);(n&e)===e&&0===(n&r)||(a=!1);break}case"pointCloudReturnFilter":{const e=15&n,r=n>>>4&15,o=r>1,i=1===e,u=e===r;let l=!1;for(const e of t.includedReturns)if("last"===e&&u||"firstOfMany"===e&&i&&o||"lastOfMany"===e&&u&&o||"single"===e&&!o){l=!0;break}l||(a=!1);break}}}a&&(n[i]=u,e[3*i]=e[3*u],e[3*i+1]=e[3*u+1],e[3*i+2]=e[3*u+2],t[3*i]=t[3*u],t[3*i+1]=t[3*u+1],t[3*i+2]=t[3*u+2],i++)}return i}(t,l,o,e.filterInfo,i)}for(const r of e.userAttributesData){const e=g(r,t,n);a.push({attributeInfo:r.attributeInfo,values:e})}3*n<l.length&&(l=new Uint8Array(l.buffer.slice(0,3*n))),function(e,t,n){if(0!==n)for(let r=0;r<t;r++)e[3*r+2]+=n}(t,n,e.elevationOffset);const c=v(t,n,w.ab.fromData(e.obbData),s.A.fromJSON(e.inSR),s.A.fromJSON(e.outSR));return{obbData:e.obbData,points:c,rgb:l,attributes:a,pointIdFilterMap:o}}}function v(e,t,n,r,o){if(!(0,c.projectBuffer)(e,r,0,e,o,0,t))throw new Error("Can't reproject");const i=(0,l.o8)(n.center),s=(0,l.vt)(),f=(0,l.vt)(),d=(0,l.o8)(n.halfSize);(0,a.Xr)(A,n.quaternion);const h=new Float32Array(3*t);for(let n=0;n<t;n++){let t=3*n;s[0]=e[t]-i[0],s[1]=e[t+1]-i[1],s[2]=e[t+2]-i[2],(0,u.v)(f,s,A),d[0]=Math.max(d[0],Math.abs(f[0])),d[1]=Math.max(d[1],Math.abs(f[1])),d[2]=Math.max(d[2],Math.abs(f[2])),h[t++]=s[0],h[t++]=s[1],h[t]=s[2]}return n.halfSize=d,h}const A=(0,i.vt)();function I(){return new M}},34304:(e,t,n)=>{n.d(t,{DF:()=>l,FD:()=>o,Ov:()=>a,ct:()=>s});let r=1e-6;function o(){return r}const a=Math.random,i=Math.PI/180,u=180/Math.PI;function l(e){return e*i}function s(e){return e*u}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:a,equals:function(e,t){return Math.abs(e-t)<=r*Math.max(1,Math.abs(e),Math.abs(t))},getEpsilon:o,setEpsilon:function(e){r=e},toDegree:s,toRadian:l},Symbol.toStringTag,{value:"Module"}))},37203:(e,t,n)=>{n.d(t,{Ax:()=>y,Me:()=>s,mb:()=>b});var r=n(49186);const o=!0,a={identifierOffset:0,identifierLength:10,versionOffset:10,checksumOffset:12,byteCount:16};function i(e,t,n){return{identifier:String.fromCharCode.apply(null,new Uint8Array(e,n+a.identifierOffset,a.identifierLength)),version:t.getUint16(n+a.versionOffset,o),checksum:t.getUint32(n+a.checksumOffset,o)}}const u={sizeLo:0,sizeHi:4,minX:8,minY:16,minZ:24,maxX:32,maxY:40,maxZ:48,errorX:56,errorY:64,errorZ:72,count:80,reserved:84,byteCount:88};function l(e,t){return{sizeLo:e.getUint32(t+u.sizeLo,o),sizeHi:e.getUint32(t+u.sizeHi,o),minX:e.getFloat64(t+u.minX,o),minY:e.getFloat64(t+u.minY,o),minZ:e.getFloat64(t+u.minZ,o),maxX:e.getFloat64(t+u.maxX,o),maxY:e.getFloat64(t+u.maxY,o),maxZ:e.getFloat64(t+u.maxZ,o),errorX:e.getFloat64(t+u.errorX,o),errorY:e.getFloat64(t+u.errorY,o),errorZ:e.getFloat64(t+u.errorZ,o),count:e.getUint32(t+u.count,o),reserved:e.getUint32(t+u.reserved,o)}}function s(e){const t=new DataView(e,0);let n=0;const{identifier:o,version:s}=i(e,t,n);if(n+=a.byteCount,"LEPCC "!==o)throw new r.A("lepcc-decode-error","Bad identifier");if(s>1)throw new r.A("lepcc-decode-error","Unknown version");const f=l(t,n);if(n+=u.byteCount,f.sizeHi*2**32+f.sizeLo!==e.byteLength)throw new r.A("lepcc-decode-error","Bad size");const d=new Float64Array(3*f.count),h=[],b=[],p=[],g=[];if(n=c(e,n,h),n=c(e,n,b),n=c(e,n,p),n=c(e,n,g),n!==e.byteLength)throw new r.A("lepcc-decode-error","Bad length");let y=0,m=0;for(let e=0;e<h.length;e++){m+=h[e];let t=0;for(let n=0;n<b[e];n++){t+=p[y];const e=g[y];d[3*y]=Math.min(f.maxX,f.minX+2*f.errorX*t),d[3*y+1]=Math.min(f.maxY,f.minY+2*f.errorY*m),d[3*y+2]=Math.min(f.maxZ,f.minZ+2*f.errorZ*e),y++}}return{errorX:f.errorX,errorY:f.errorY,errorZ:f.errorZ,result:d}}function c(e,t,n){const r=[];t=f(e,t,r);const o=[];for(let a=0;a<r.length;a++){o.length=0,t=f(e,t,o);for(let e=0;e<o.length;e++)n.push(o[e]+r[a])}return t}function f(e,t,n){const a=new DataView(e,t),i=a.getUint8(0),u=31&i,l=!!(32&i),s=(192&i)>>6;let c=0;if(0===s)c=a.getUint32(1,o),t+=5;else if(1===s)c=a.getUint16(1,o),t+=3;else{if(2!==s)throw new r.A("lepcc-decode-error","Bad count type");c=a.getUint8(1),t+=2}if(l)throw new r.A("lepcc-decode-error","LUT not implemented");const f=Math.ceil(c*u/8),d=new Uint8Array(e,t,f);let h=0,b=0,p=0;const g=-1>>>32-u;for(let e=0;e<c;e++){for(;b<u;)h|=d[p]<<b,b+=8,p+=1;n[e]=h&g,h>>>=u,b-=u,b+u>32&&(h|=d[p-1]>>8-b)}return t+p}const d={sizeLo:0,sizeHi:4,count:8,colorMapCount:12,lookupMethod:14,compressionMethod:15,byteCount:16};function h(e,t){return{sizeLo:e.getUint32(t+d.sizeLo,o),sizeHi:e.getUint32(t+d.sizeHi,o),count:e.getUint32(t+d.count,o),colorMapCount:e.getUint16(t+d.colorMapCount,o),lookupMethod:e.getUint8(t+d.lookupMethod),compressionMethod:e.getUint8(t+d.compressionMethod)}}function b(e){const t=new DataView(e,0);let n=0;const{identifier:o,version:u}=i(e,t,n);if(n+=a.byteCount,"ClusterRGB"!==o)throw new r.A("lepcc-decode-error","Bad identifier");if(u>1)throw new r.A("lepcc-decode-error","Unknown version");const l=h(t,n);if(n+=d.byteCount,l.sizeHi*2**32+l.sizeLo!==e.byteLength)throw new r.A("lepcc-decode-error","Bad size");if((2===l.lookupMethod||1===l.lookupMethod)&&0===l.compressionMethod){if(3*l.colorMapCount+l.count+n!==e.byteLength||l.colorMapCount>256)throw new r.A("lepcc-decode-error","Bad count");const t=new Uint8Array(e,n,3*l.colorMapCount),o=new Uint8Array(e,n+3*l.colorMapCount,l.count),a=new Uint8Array(3*l.count);for(let e=0;e<l.count;e++){const n=o[e];a[3*e]=t[3*n],a[3*e+1]=t[3*n+1],a[3*e+2]=t[3*n+2]}return a}if(0===l.lookupMethod&&0===l.compressionMethod){if(3*l.count+n!==e.byteLength||0!==l.colorMapCount)throw new r.A("lepcc-decode-error","Bad count");return new Uint8Array(e,n).slice()}if(l.lookupMethod<=2&&1===l.compressionMethod){if(n+3!==e.byteLength||1!==l.colorMapCount)throw new r.A("lepcc-decode-error","Bad count");const o=t.getUint8(n),a=t.getUint8(n+1),i=t.getUint8(n+2),u=new Uint8Array(3*l.count);for(let e=0;e<l.count;e++)u[3*e]=o,u[3*e+1]=a,u[3*e+2]=i;return u}throw new r.A("lepcc-decode-error","Bad method "+l.lookupMethod+","+l.compressionMethod)}const p={sizeLo:0,sizeHi:4,count:8,scaleFactor:12,bitsPerPoint:14,reserved:15,byteCount:16};function g(e,t){return{sizeLo:e.getUint32(t+p.sizeLo,o),sizeHi:e.getUint32(t+p.sizeHi,o),count:e.getUint32(t+p.count,o),scaleFactor:e.getUint16(t+p.scaleFactor,o),bitsPerPoint:e.getUint8(t+p.bitsPerPoint),reserved:e.getUint8(t+p.reserved)}}function y(e){const t=new DataView(e,0);let n=0;const{identifier:o,version:u}=i(e,t,n);if(n+=a.byteCount,"Intensity "!==o)throw new r.A("lepcc-decode-error","Bad identifier");if(u>1)throw new r.A("lepcc-decode-error","Unknown version");const l=g(t,n);if(n+=p.byteCount,l.sizeHi*2**32+l.sizeLo!==e.byteLength)throw new r.A("lepcc-decode-error","Bad size");const s=new Uint16Array(l.count);if(8===l.bitsPerPoint){if(l.count+n!==e.byteLength)throw new r.A("lepcc-decode-error","Bad size");const t=new Uint8Array(e,n,l.count);for(let e=0;e<l.count;e++)s[e]=t[e]*l.scaleFactor}else if(16===l.bitsPerPoint){if(2*l.count+n!==e.byteLength)throw new r.A("lepcc-decode-error","Bad size");const t=new Uint16Array(e,n,l.count);for(let e=0;e<l.count;e++)s[e]=t[e]*l.scaleFactor}else{const t=[];if(f(e,n,t)!==e.byteLength)throw new r.A("lepcc-decode-error","Bad size");for(let e=0;e<l.count;e++)s[e]=t[e]*l.scaleFactor}return s}},37539:(e,t,n)=>{n.d(t,{pO:()=>p,jd:()=>d,Tp:()=>h,w5:()=>f});var r=n(34727),o=n(83047),a=n(73941),i=n(79258);Math.PI;const u=i.$O.radius,l=i.$O.eccentricitySquared,s={a1:u*l,a2:u*l*u*l,a3:u*l*l/2,a4:u*l*u*l*2.5,a5:u*l+u*l*l/2,a6:1-l};i.$O.radius,i.$O.flattening,i.Sw.radius,i.Sw.flattening,i.sH.radius,i.sH.flattening,i.sH.radius;var c=n(21325);const f={2:{5:p,7:null,9:null,10:p,1:I,6:null,8:null,0:null,3:y,11:m,2:p,4:S},5:{5:p,7:null,9:null,10:p,1:I,6:null,8:null,0:null,3:y,11:m,2:p,4:S},7:{5:null,7:p,9:null,10:p,1:null,6:A,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:p,10:p,1:null,6:null,8:v,0:null,3:null,11:null,2:null,4:null},3:{5:g,7:null,9:null,10:g,1:function(e,t,n,r){const o=e[t]/j,a=z-2*Math.atan(Math.exp(-e[t+1]/j)),i=j+e[t+2],u=Math.cos(a)*i;n[r]=Math.cos(o)*u,n[r+1]=Math.sin(o)*u,n[r+2]=Math.sin(a)*i},6:null,8:null,0:null,3:p,11:function(e,t,n,r){g(e,t,n,r),m(n,r,n,r)},2:g,4:function(e,t,n,r){g(e,t,n,r),S(n,r,n,r)}},4:{5:T,7:null,9:null,10:T,1:function(e,t,n,r){T(e,t,n,r),I(n,r,n,r)},6:null,8:null,0:null,3:function(e,t,n,r){T(e,t,n,r),y(n,r,n,r)},11:function(e,t,n,r){T(e,t,n,r),m(n,r,n,r)},2:T,4:p},1:{5:k,7:null,9:null,10:k,1:p,6:null,8:null,0:null,3:function(e,t,n,r){k(e,t,n,r),y(n,r,n,r)},11:function(e,t,n,r){k(e,t,n,r),m(n,r,n,r)},2:k,4:function(e,t,n,r){k(e,t,n,r),S(n,r,n,r)}},6:{5:null,7:O,9:null,10:O,1:null,6:p,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:U,10:U,1:null,6:null,8:p,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:p,3:null,11:null,2:null,4:null},10:{5:p,7:p,9:p,10:p,1:I,6:A,8:v,0:null,3:y,11:m,2:p,4:S},11:{5:w,7:null,9:null,10:w,1:function(e,t,n,r){w(e,t,n,r),I(n,r,n,r)},6:null,8:null,0:null,3:function(e,t,n,r){w(e,t,n,r),y(n,r,n,r)},11:p,2:w,4:function(e,t,n,r){w(e,t,n,r),S(n,r,n,r)}}};function d(e,t){return h(e,t)?.projector}function h(e,t){if(null==e||null==t)return null;if(F.source.spatialReference===e&&F.dest.spatialReference===t)return F;const n=b(e,F.source),r=b(t,F.dest);return 0===n&&0===r?(0,c.aI)(e,t)?F.projector=p:F.projector=null:F.projector=f[n][r],F}function b(e,t){return e?t.spatialReference===e?t.spatialReferenceId:(t.spatialReference=e,"metersPerUnit"in t&&(t.metersPerUnit=(0,o.GA)(e,1)),(0,a.jA)(e)?t.spatialReferenceId=1:(0,c.oT)(e)?t.spatialReferenceId=2:(0,c.K8)(e)?t.spatialReferenceId=3:(0,c.r1)(e)?t.spatialReferenceId=11:e.wkt===a.Ro.wkt?t.spatialReferenceId=4:4490===e.wkid?t.spatialReferenceId=5:e.wkt===a.FY.wkt?t.spatialReferenceId=6:e.wkt===a.LJ.wkt?t.spatialReferenceId=8:(0,c.q8)(e)?t.spatialReferenceId=7:(0,c.KQ)(e)?t.spatialReferenceId=9:t.spatialReferenceId=0):0}function p(e,t,n,r){e!==n&&(n[r++]=e[t++],n[r++]=e[t++],n[r]=e[t])}function g(e,t,n,r){n[r]=x*(e[t]/j),n[r+1]=x*(z-2*Math.atan(Math.exp(-e[t+1]/j))),n[r+2]=e[t+2]}function y(e,t,n,o){!function(e,t,n,o,a){const i=.4999999*Math.PI,u=(0,r.qE)(E*e[t+1],-i,i),l=Math.sin(u);n[o++]=E*e[t]*a.radius,n[o++]=a.halfSemiMajorAxis*Math.log((1+l)/(1-l)),n[o]=e[t+2]}(e,t,n,o,i.$O)}function m(e,t,n,r){n[r]=e[t]*P,n[r+1]=e[t+1]*P,n[r+2]=e[t+2]}function w(e,t,n,r){n[r]=e[t]*R,n[r+1]=e[t+1]*R,n[r+2]=e[t+2]}function M(e,t,n,r,o){const a=o+e[t+2],i=E*e[t+1],u=E*e[t],l=Math.cos(i)*a;n[r]=Math.cos(u)*l,n[r+1]=Math.sin(u)*l,n[r+2]=Math.sin(i)*a}function v(e,t,n,r){M(e,t,n,r,i.Sw.radius)}function A(e,t,n,r){M(e,t,n,r,i.sH.radius)}function I(e,t,n,r){M(e,t,n,r,i.$O.radius)}function C(e,t,n,o,a){const i=e[t],u=e[t+1],l=e[t+2],s=Math.sqrt(i*i+u*u+l*l),c=(0,r.YN)(l/(0===s?1:s)),f=Math.atan2(u,i);n[o++]=x*f,n[o++]=x*c,n[o]=s-a}function U(e,t,n,r){C(e,t,n,r,i.Sw.radius)}function O(e,t,n,r){C(e,t,n,r,i.sH.radius)}function k(e,t,n,r){C(e,t,n,r,i.$O.radius)}function S(e,t,n,r){!function(e,t,n,r,o){const a=E*e[t],i=E*e[t+1],u=e[t+2],l=Math.sin(i),s=Math.cos(i),c=o.radius/Math.sqrt(1-o.eccentricitySquared*l*l);n[r++]=(c+u)*s*Math.cos(a),n[r++]=(c+u)*s*Math.sin(a),n[r++]=(c*(1-o.eccentricitySquared)+u)*l}(e,t,n,r,i.$O)}function T(e,t,n,r){const o=s,a=e[t],u=e[t+1],l=e[t+2];let c,f,d,h,b,p,g,y,m,w,M,v,A,I,C,U,O,k,S,T,F;c=Math.abs(l),f=a*a+u*u,d=Math.sqrt(f),h=f+l*l,b=Math.sqrt(h),T=Math.atan2(u,a),p=l*l/h,g=f/h,I=o.a2/b,C=o.a3-o.a4/b,g>.3?(y=c/b*(1+g*(o.a1+I+p*C)/b),S=Math.asin(y),w=y*y,m=Math.sqrt(1-w)):(m=d/b*(1-p*(o.a5-I-g*C)/b),S=Math.acos(m),w=1-m*m,y=Math.sqrt(w)),M=1-i.$O.eccentricitySquared*w,v=i.$O.radius/Math.sqrt(M),A=o.a6*v,I=d-v*m,C=c-A*y,O=m*I+y*C,U=m*C-y*I,k=U/(A/M+O),S+=k,F=O+U*k/2,l<0&&(S=-S),n[r++]=x*T,n[r++]=x*S,n[r]=F}const F={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:p},E=(0,r.kU)(1),x=(0,r.KJ)(1),z=.5*Math.PI,j=i.$O.radius,P=j*Math.PI/180,R=180/(j*Math.PI)},40876:(e,t,n)=>{n.d(t,{Eq:()=>h,G1:()=>p,TS:()=>a,Tf:()=>m,V6:()=>o,Vm:()=>b,ay:()=>l,c1:()=>g,c4:()=>i,j5:()=>s,lT:()=>f,oW:()=>c});const r={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function o(e){return!!r[e]||!!r[e.toLowerCase()]}function a(e){return r[e]??r[e.toLowerCase()]}function i(e){return[...a(e)]}function u(e,t,n){n<0&&++n,n>1&&--n;const r=6*n;return r<1?e+(t-e)*r:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}function l(e,t,n,r=1){const o=(e%360+360)%360/360,a=n<=.5?n*(t+1):n+t-n*t,i=2*n-a;return[Math.round(255*u(i,a,o+1/3)),Math.round(255*u(i,a,o)),Math.round(255*u(i,a,o-1/3)),r]}function s(e){const t=e.length>5,n=t?8:4,r=(1<<n)-1,o=t?1:17,a=t?9===e.length:5===e.length;let i=Number("0x"+e.slice(1));if(isNaN(i))return null;const u=[0,0,0,1];let l;return a&&(l=i&r,i>>=n,u[3]=o*l/255),l=i&r,i>>=n,u[2]=o*l,l=i&r,i>>=n,u[1]=o*l,l=i&r,i>>=n,u[0]=o*l,u}function c(e){if(!e.startsWith("#")||isNaN(Number(`0x${e.slice(1)}`)))return null;switch(e.length){case 4:case 5:{const t=parseInt(e.slice(1,2),16),n=parseInt(e.slice(2,3),16),r=parseInt(e.slice(3,4),16),o=4===e.length?15:parseInt(e.slice(4),16);return[t+16*t,n+16*n,r+16*r,(o+16*o)/255]}case 7:case 9:return[parseInt(e.slice(1,3),16),parseInt(e.slice(3,5),16),parseInt(e.slice(5,7),16),(7===e.length?255:parseInt(e.slice(7),16))/255];default:return null}}function f(e){const t=e.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(t){const e=t[2].split(/\s*,\s*/),n=t[1];if("rgb"===n&&3===e.length||"rgba"===n&&4===e.length){if(e[0].endsWith("%")){const t=e.map(e=>2.56*parseFloat(e));return 4===e.length&&(t[3]=parseFloat(e[3])),d(t)}return d(e.map(e=>parseFloat(e)))}if("hsl"===n&&3===e.length||"hsla"===n&&4===e.length)return l(parseFloat(e[0]),parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3]??"1"))}return null}function d(e){return e[0]=g(e[0]),e[1]=g(e[1]),e[2]=g(e[2]),e[3]=4===e.length?p(e[3]):1,e}function h(e){let t=o(e)?a(e):null;return t??=f(e),t??=c(e),t}function b(e){const t=h(e);return null!=t?[t[0]/255,t[1]/255,t[2]/255,t[3]]:null}function p(e){return y(e,0,1)}function g(e){return Math.round(y(e,0,255))}function y(e,t,n){return e=Number(e),isNaN(e)?n:e<t?t:e>n?n:e}const m=2.2},51850:(e,t,n)=>{function r(){return[0,0,0]}function o(e){return[e[0],e[1],e[2]]}function a(e,t,n){return[e,t,n]}function i(e,t,n){return[e,t,n]}function u(e,t=[0,0,0]){const n=Math.min(3,e.length);for(let r=0;r<n;++r)t[r]=e[r];return t}function l(){return a(1,1,1)}function s(){return a(1,0,0)}function c(){return a(0,1,0)}function f(){return a(0,0,1)}n.d(t,{CN:()=>i,Cb:()=>g,Cw:()=>b,JP:()=>p,Un:()=>h,ci:()=>u,fA:()=>a,o8:()=>o,uY:()=>d,vt:()=>r});const d=[0,0,0],h=l(),b=s(),p=c(),g=f();Object.freeze(Object.defineProperty({__proto__:null,ONES:h,UNIT_X:b,UNIT_Y:p,UNIT_Z:g,ZEROS:d,clone:o,create:r,freeze:i,fromArray:u,fromValues:a,ones:l,unitX:s,unitY:c,unitZ:f,zeros:function(){return[0,0,0]}},Symbol.toStringTag,{value:"Module"}))},59418:(e,t,n)=>{n.d(t,{wH:()=>p,MA:()=>d,E5:()=>h,m0:()=>y});var r=n(49186),o=n(4718),a=n(53966),i=n(34275),u=n(37203);const l=()=>a.A.getLogger("esri.views.3d.layers.i3s.I3SBinaryReader");function s(e,t,n){let o="",a=0;for(;a<n;){const i=e[t+a];if(i<128)o+=String.fromCharCode(i),a++;else if(i>=192&&i<224){if(a+1>=n)throw new r.A("utf8-decode-error","UTF-8 Decode failed. Two byte character was truncated.");const u=(31&i)<<6|63&e[t+a+1];o+=String.fromCharCode(u),a+=2}else if(i>=224&&i<240){if(a+2>=n)throw new r.A("utf8-decode-error","UTF-8 Decode failed. Multi byte character was truncated.");const u=(15&i)<<12|(63&e[t+a+1])<<6|63&e[t+a+2];o+=String.fromCharCode(u),a+=3}else{if(!(i>=240&&i<248))throw new r.A("utf8-decode-error","UTF-8 Decode failed. Invalid multi byte sequence.");{if(a+3>=n)throw new r.A("utf8-decode-error","UTF-8 Decode failed. Multi byte character was truncated.");const u=(7&i)<<18|(63&e[t+a+1])<<12|(63&e[t+a+2])<<6|63&e[t+a+3];if(u>=65536){const e=55296+(u-65536>>10),t=56320+(1023&u);o+=String.fromCharCode(e,t)}else o+=String.fromCharCode(u);a+=4}}}return o}function c(e,t){const n={byteOffset:0,byteCount:0,fields:Object.create(null)};let r=0;for(let o=0;o<t.length;o++){const a=t[o],i=a.valueType||a.type,u=w[i];n.fields[a.property]=u(e,r),r+=m[i].BYTES_PER_ELEMENT}return n.byteCount=r,n}function f(e,t,n){const o=[];let a,i,u=0;for(i=0;i<e;i+=1){if(a=t[i],a>0){if(o.push(s(n,u,a-1)),0!==n[u+a-1])throw new r.A("string-array-error","Invalid string array: missing null termination.")}else o.push(null);u+=a}return o}function d(e,t){return new(0,m[t.valueType])(e,t.byteOffset,t.count*t.valuesPerElement)}function h(e,t){if(!e)return null;const n=e[t];return(0,i.IY)(e)?n===i.PI?null:n:(0,i._G)(e)?n===i.h2?null:n:n!=n?null:n}function b(e,t,n){if(t!==e&&l().error(`Invalid ${n} buffer size\n expected: ${e}, actual: ${t})`),t<e)throw new r.A("buffer-too-small","Binary buffer is too small",{expectedSize:e,actualSize:t})}function p(e,t){const n=c(e,t&&t.header);let r=n.byteCount;const o={isDraco:!1,header:n,byteOffset:n.byteCount,byteCount:0,vertexAttributes:{}},a=n.fields,i=null!=a.vertexCount?a.vertexCount:a.count;for(const e of t.ordering){if(!t.vertexAttributes[e])continue;const n={...t.vertexAttributes[e],byteOffset:r,count:i},a=g[e]||"_"+e;o.vertexAttributes[a]=n,r+=v(n.valueType)*n.valuesPerElement*i}const u=a.faceCount;if(t.faces&&u){o.faces={};for(const e of t.ordering){if(!t.faces[e])continue;const n={...t.faces[e],byteOffset:r,count:u};o.faces[e]=n,r+=v(n.valueType)*n.valuesPerElement*u}}const l=a.featureCount;if(t.featureAttributes&&t.featureAttributeOrder&&l){o.featureAttributes={};for(const e of t.featureAttributeOrder){if(!t.featureAttributes[e])continue;const n={...t.featureAttributes[e],byteOffset:r,count:l};o.featureAttributes[e]=n,r+=("UInt64"===n.valueType?8:v(n.valueType))*n.valuesPerElement*l}}return b(r,e.byteLength,"geometry"),o.byteCount=r-o.byteOffset,o}const g={position:"position",normal:"normal",color:"color",uv0:"uv0",region:"uvRegion"};function y(e,t,n,a=!1){if("lepcc-rgb"===e.encoding)return a?(0,u.mb)(t):function(e){return Array.isArray(e)?e.length<i.y9?e:new Uint8Array(e):e.length<i.y9?Array.from(e):e}((0,u.mb)(t));if("lepcc-intensity"===e.encoding)return a?(0,u.Ax)(t):function(e){return Array.isArray(e)?e.length<i.y9?e:new Uint16Array(e):e.length<i.y9?Array.from(e):e}((0,u.Ax)(t));if(null!=e.encoding&&""!==e.encoding)throw new r.A("unknown-attribute-storage-info-encoding","Unknown Attribute Storage Info Encoding");e["attributeByteCounts "]&&!e.attributeByteCounts&&(l().warn("Warning: Trailing space in 'attributeByteCounts '."),e.attributeByteCounts=e["attributeByteCounts "]),"ObjectIds"===e.ordering[0]&&e.hasOwnProperty("objectIds")&&(l().warn("Warning: Case error in objectIds"),e.ordering[0]="objectIds");const s=function(e,t,n){const a=null!=t.header?c(e,t.header):{byteOffset:0,byteCount:0,fields:{count:n}},i={header:a,byteOffset:a.byteCount,byteCount:0,entries:Object.create(null)};let u=a.byteCount;for(let e=0;e<t.ordering.length;e++){const n=t.ordering[e],l=(0,o.o8)(t[n]);if(l.count=a.fields.count??0,"String"===l.valueType){if(l.byteOffset=u,l.byteCount=a.fields[n+"ByteCount"],"UTF-8"!==l.encoding)throw new r.A("unsupported-encoding","Unsupported String encoding.",{encoding:l.encoding});if(l.timeEncoding&&"ECMA_ISO8601"!==l.timeEncoding)throw new r.A("unsupported-time-encoding","Unsupported time encoding.",{timeEncoding:l.timeEncoding})}else{if(!M(l.valueType))throw new r.A("unsupported-value-type","Unsupported binary valueType",{valueType:l.valueType});{const e=v(l.valueType);u+=u%e!==0?e-u%e:0,l.byteOffset=u,l.byteCount=e*l.valuesPerElement*l.count}}u+=l.byteCount??0,i.entries[n]=l}return i.byteCount=u-i.byteOffset,i}(t,e,n);b(s.byteOffset+s.byteCount,t.byteLength,"attribute");const p=s.entries.attributeValues||s.entries.objectIds;if(p){if("String"===p.valueType){const e=s.entries.attributeByteCounts,n=d(t,e),r=function(e,t){return new Uint8Array(e,t.byteOffset,t.byteCount)}(t,p);return p.timeEncoding?function(e,t,n){return f(e,t,n).map(e=>{const t=e?Date.parse(e):null;return null==t||Number.isNaN(t)?null:t})}(e.count,n,r):f(e.count,n,r)}return a?d(t,p):function(e,t){const n=d(e,t);if(n.length>=i.y9)return n;const r=new Array;return n.forEach((e,t)=>r.push(h(n,t))),r}(t,p)}throw new r.A("bad-attribute-storage-info","Bad attributeStorageInfo specification.")}const m={Float32:Float32Array,Float64:Float64Array,UInt8:Uint8Array,Int8:Int8Array,UInt16:Uint16Array,Int16:Int16Array,UInt32:Uint32Array,Int32:Int32Array},w={Float32:(e,t)=>new DataView(e,0).getFloat32(t,!0),Float64:(e,t)=>new DataView(e,0).getFloat64(t,!0),UInt8:(e,t)=>new DataView(e,0).getUint8(t),Int8:(e,t)=>new DataView(e,0).getInt8(t),UInt16:(e,t)=>new DataView(e,0).getUint16(t,!0),Int16:(e,t)=>new DataView(e,0).getInt16(t,!0),UInt32:(e,t)=>new DataView(e,0).getUint32(t,!0),Int32:(e,t)=>new DataView(e,0).getInt32(t,!0)};function M(e){return m.hasOwnProperty(e)}function v(e){return M(e)?m[e].BYTES_PER_ELEMENT:0}},72385:(e,t,n)=>{function r(){return new Float32Array(3)}function o(e){const t=new Float32Array(3);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function a(e,t,n){const r=new Float32Array(3);return r[0]=e,r[1]=t,r[2]=n,r}function i(){return r()}function u(){return a(1,1,1)}function l(){return a(1,0,0)}function s(){return a(0,1,0)}function c(){return a(0,0,1)}n.d(t,{fA:()=>a,o8:()=>o,vt:()=>r});const f=i(),d=u(),h=l(),b=s(),p=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:d,UNIT_X:h,UNIT_Y:b,UNIT_Z:p,ZEROS:f,clone:o,create:r,fromValues:a,ones:u,unitX:l,unitY:s,unitZ:c,zeros:i},Symbol.toStringTag,{value:"Module"}))},77690:(e,t,n)=>{n.d(t,{B8:()=>u,Ge:()=>h,I0:()=>d,KC:()=>l,a4:()=>s,hZ:()=>a,hs:()=>f,lw:()=>c,mg:()=>i,z0:()=>o});var r=n(34304);function o(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[4],e[4]=t[5],e[5]=t[6],e[6]=t[8],e[7]=t[9],e[8]=t[10],e}function a(e,t,n,r,o,a,i,u,l,s){return e[0]=t,e[1]=n,e[2]=r,e[3]=o,e[4]=a,e[5]=i,e[6]=u,e[7]=l,e[8]=s,e}function i(e,t){if(e===t){const n=t[1],r=t[2],o=t[5];e[1]=t[3],e[2]=t[6],e[3]=n,e[5]=t[7],e[6]=r,e[7]=o}else e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8];return e}function u(e,t){const n=t[0],r=t[1],o=t[2],a=t[3],i=t[4],u=t[5],l=t[6],s=t[7],c=t[8],f=c*i-u*s,d=-c*a+u*l,h=s*a-i*l;let b=n*f+r*d+o*h;return b?(b=1/b,e[0]=f*b,e[1]=(-c*r+o*s)*b,e[2]=(u*r-o*i)*b,e[3]=d*b,e[4]=(c*n-o*l)*b,e[5]=(-u*n+o*a)*b,e[6]=h*b,e[7]=(-s*n+r*l)*b,e[8]=(i*n-r*a)*b,e):null}function l(e,t){const n=t[0],r=t[1],o=t[2],a=t[3],i=t[4],u=t[5],l=t[6],s=t[7],c=t[8];return e[0]=i*c-u*s,e[1]=o*s-r*c,e[2]=r*u-o*i,e[3]=u*l-a*c,e[4]=n*c-o*l,e[5]=o*a-n*u,e[6]=a*s-i*l,e[7]=r*l-n*s,e[8]=n*i-r*a,e}function s(e){const t=e[0],n=e[1],r=e[2],o=e[3],a=e[4],i=e[5],u=e[6],l=e[7],s=e[8];return t*(s*a-i*l)+n*(-s*o+i*u)+r*(l*o-a*u)}function c(e,t,n){const r=t[0],o=t[1],a=t[2],i=t[3],u=t[4],l=t[5],s=t[6],c=t[7],f=t[8],d=n[0],h=n[1],b=n[2],p=n[3],g=n[4],y=n[5],m=n[6],w=n[7],M=n[8];return e[0]=d*r+h*i+b*s,e[1]=d*o+h*u+b*c,e[2]=d*a+h*l+b*f,e[3]=p*r+g*i+y*s,e[4]=p*o+g*u+y*c,e[5]=p*a+g*l+y*f,e[6]=m*r+w*i+M*s,e[7]=m*o+w*u+M*c,e[8]=m*a+w*l+M*f,e}function f(e,t,n){const r=n[0],o=n[1],a=n[2];return e[0]=r*t[0],e[1]=r*t[1],e[2]=r*t[2],e[3]=o*t[3],e[4]=o*t[4],e[5]=o*t[5],e[6]=a*t[6],e[7]=a*t[7],e[8]=a*t[8],e}function d(e,t){const n=t[0],r=t[1],o=t[2],a=t[3],i=n+n,u=r+r,l=o+o,s=n*i,c=r*i,f=r*u,d=o*i,h=o*u,b=o*l,p=a*i,g=a*u,y=a*l;return e[0]=1-f-b,e[3]=c-y,e[6]=d+g,e[1]=c+y,e[4]=1-s-b,e[7]=h-p,e[2]=d-g,e[5]=h+p,e[8]=1-s-f,e}function h(e,t){const n=t[0],r=t[1],o=t[2],a=t[3],i=t[4],u=t[5],l=t[6],s=t[7],c=t[8],f=t[9],d=t[10],h=t[11],b=t[12],p=t[13],g=t[14],y=t[15],m=n*u-r*i,w=n*l-o*i,M=n*s-a*i,v=r*l-o*u,A=r*s-a*u,I=o*s-a*l,C=c*p-f*b,U=c*g-d*b,O=c*y-h*b,k=f*g-d*p,S=f*y-h*p,T=d*y-h*g;let F=m*T-w*S+M*k+v*O-A*U+I*C;return F?(F=1/F,e[0]=(u*T-l*S+s*k)*F,e[1]=(l*O-i*T-s*U)*F,e[2]=(i*S-u*O+s*C)*F,e[3]=(o*S-r*T-a*k)*F,e[4]=(n*T-o*O+a*U)*F,e[5]=(r*O-n*S-a*C)*F,e[6]=(p*I-g*A+y*v)*F,e[7]=(g*M-b*I-y*w)*F,e[8]=(b*A-p*M+y*m)*F,e):null}function b(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e[3]=t[3]-n[3],e[4]=t[4]-n[4],e[5]=t[5]-n[5],e[6]=t[6]-n[6],e[7]=t[7]-n[7],e[8]=t[8]-n[8],e}const p=c,g=b;Object.freeze(Object.defineProperty({__proto__:null,add:function(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e[3]=t[3]+n[3],e[4]=t[4]+n[4],e[5]=t[5]+n[5],e[6]=t[6]+n[6],e[7]=t[7]+n[7],e[8]=t[8]+n[8],e},adjoint:l,copy:function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e},determinant:s,equals:function(e,t){const n=e[0],o=e[1],a=e[2],i=e[3],u=e[4],l=e[5],s=e[6],c=e[7],f=e[8],d=t[0],h=t[1],b=t[2],p=t[3],g=t[4],y=t[5],m=t[6],w=t[7],M=t[8],v=(0,r.FD)();return Math.abs(n-d)<=v*Math.max(1,Math.abs(n),Math.abs(d))&&Math.abs(o-h)<=v*Math.max(1,Math.abs(o),Math.abs(h))&&Math.abs(a-b)<=v*Math.max(1,Math.abs(a),Math.abs(b))&&Math.abs(i-p)<=v*Math.max(1,Math.abs(i),Math.abs(p))&&Math.abs(u-g)<=v*Math.max(1,Math.abs(u),Math.abs(g))&&Math.abs(l-y)<=v*Math.max(1,Math.abs(l),Math.abs(y))&&Math.abs(s-m)<=v*Math.max(1,Math.abs(s),Math.abs(m))&&Math.abs(c-w)<=v*Math.max(1,Math.abs(c),Math.abs(w))&&Math.abs(f-M)<=v*Math.max(1,Math.abs(f),Math.abs(M))},exactEquals:function(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]&&e[4]===t[4]&&e[5]===t[5]&&e[6]===t[6]&&e[7]===t[7]&&e[8]===t[8]},frob:function(e){return Math.sqrt(e[0]**2+e[1]**2+e[2]**2+e[3]**2+e[4]**2+e[5]**2+e[6]**2+e[7]**2+e[8]**2)},fromMat2d:function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=0,e[3]=t[2],e[4]=t[3],e[5]=0,e[6]=t[4],e[7]=t[5],e[8]=1,e},fromMat4:o,fromQuat:d,fromRotation:function(e,t){const n=Math.sin(t),r=Math.cos(t);return e[0]=r,e[1]=n,e[2]=0,e[3]=-n,e[4]=r,e[5]=0,e[6]=0,e[7]=0,e[8]=1,e},fromScaling:function(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=t[1],e[5]=0,e[6]=0,e[7]=0,e[8]=1,e},fromTranslation:function(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=1,e[5]=0,e[6]=t[0],e[7]=t[1],e[8]=1,e},identity:function(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=1,e[5]=0,e[6]=0,e[7]=0,e[8]=1,e},invert:u,isOrthoNormal:function(e){const t=(0,r.FD)(),n=e[0],o=e[1],a=e[2],i=e[3],u=e[4],l=e[5],s=e[6],c=e[7],f=e[8];return Math.abs(1-(n*n+i*i+s*s))<=t&&Math.abs(1-(o*o+u*u+c*c))<=t&&Math.abs(1-(a*a+l*l+f*f))<=t},mul:p,multiply:c,multiplyScalar:function(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e[4]=t[4]*n,e[5]=t[5]*n,e[6]=t[6]*n,e[7]=t[7]*n,e[8]=t[8]*n,e},multiplyScalarAndAdd:function(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e[2]=t[2]+n[2]*r,e[3]=t[3]+n[3]*r,e[4]=t[4]+n[4]*r,e[5]=t[5]+n[5]*r,e[6]=t[6]+n[6]*r,e[7]=t[7]+n[7]*r,e[8]=t[8]+n[8]*r,e},normalFromMat4:h,normalFromMat4Legacy:function(e,t){const n=t[0],r=t[1],o=t[2],a=t[4],i=t[5],u=t[6],l=t[8],s=t[9],c=t[10],f=c*i-u*s,d=-c*a+u*l,h=s*a-i*l,b=n*f+r*d+o*h;if(!b)return null;const p=1/b;return e[0]=f*p,e[1]=(-c*r+o*s)*p,e[2]=(u*r-o*i)*p,e[3]=d*p,e[4]=(c*n-o*l)*p,e[5]=(-u*n+o*a)*p,e[6]=h*p,e[7]=(-s*n+r*l)*p,e[8]=(i*n-r*a)*p,e},projection:function(e,t,n){return e[0]=2/t,e[1]=0,e[2]=0,e[3]=0,e[4]=-2/n,e[5]=0,e[6]=-1,e[7]=1,e[8]=1,e},rotate:function(e,t,n){const r=t[0],o=t[1],a=t[2],i=t[3],u=t[4],l=t[5],s=t[6],c=t[7],f=t[8],d=Math.sin(n),h=Math.cos(n);return e[0]=h*r+d*i,e[1]=h*o+d*u,e[2]=h*a+d*l,e[3]=h*i-d*r,e[4]=h*u-d*o,e[5]=h*l-d*a,e[6]=s,e[7]=c,e[8]=f,e},scale:f,scaleByVec2:function(e,t,n){const r=n[0],o=n[1];return e[0]=r*t[0],e[1]=r*t[1],e[2]=r*t[2],e[3]=o*t[3],e[4]=o*t[4],e[5]=o*t[5],e},set:a,str:function(e){return"mat3("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+")"},sub:g,subtract:b,translate:function(e,t,n){const r=t[0],o=t[1],a=t[2],i=t[3],u=t[4],l=t[5],s=t[6],c=t[7],f=t[8],d=n[0],h=n[1];return e[0]=r,e[1]=o,e[2]=a,e[3]=i,e[4]=u,e[5]=l,e[6]=d*r+h*i+s,e[7]=d*o+h*u+c,e[8]=d*a+h*l+f,e},transpose:i},Symbol.toStringTag,{value:"Module"}))},93223:(e,t,n)=>{n.d(t,{e:()=>a});var r=n(66552),o=n(10107);function a(e,t={}){const n=e instanceof r.J?e:new r.J(e,t),{alwaysWriteDefaults:a,default:i,ignoreUnknown:u=!0,name:l,nonNullable:s,readOnly:c=!1}=t;return(0,o.MZ)({type:u?n.apiValues:String,json:{type:n.jsonValues,default:i,name:l,read:!c&&{reader:n.read},write:{writer:n.write,alwaysWriteDefaults:a}},nonNullable:s,readOnly:c})}}}]);
|
package/chunks/Button.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
4
|
-
*/
|
|
5
|
-
import{R as e,k as s,l as t,f as i,g as a,m as r}from"./Theme.js";class n extends e{_beforeChanged(){super._beforeChanged(),(this.isDirty("cornerRadiusTL")||this.isDirty("cornerRadiusTR")||this.isDirty("cornerRadiusBR")||this.isDirty("cornerRadiusBL"))&&(this._clear=!0)}_draw(){let e=this.width(),a=this.height(),r=e/Math.abs(e),n=a/Math.abs(a),o=0,h=0;const c=this.get("strokeWidth",0);this.get("containStroke",!1)&&(e-=r*c,a-=n*c,o+=r*c/2,h+=n*c/2);let l=e,d=a;if(s(l)&&s(d)){let e=Math.min(l,d)/2,s=t(this.get("cornerRadiusTL",8),e),a=t(this.get("cornerRadiusTR",8),e),c=t(this.get("cornerRadiusBR",8),e),u=t(this.get("cornerRadiusBL",8),e),g=Math.min(Math.abs(l/2),Math.abs(d/2));s=i(s,0,g),a=i(a,0,g),c=i(c,0,g),u=i(u,0,g);const b=this._display;b.moveTo(o+s*r,h),b.lineTo(o+l-a*r,h),a>0&&b.arcTo(o+l,h,o+l,h+a*n,a),b.lineTo(o+l,h+d-c*n),c>0&&b.arcTo(o+l,h+d,o+l-c*r,h+d,c),b.lineTo(o+u*r,h+d),u>0&&b.arcTo(o,h+d,o,h+d-u*n,u),b.lineTo(o,h+s*n),s>0&&b.arcTo(o,h,o+s*r,h,s),b.closePath()}}}Object.defineProperty(n,"className",{enumerable:!0,configurable:!0,writable:!0,value:"RoundedRectangle"}),Object.defineProperty(n,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:e.classNames.concat([n.className])});class o extends a{_afterNew(){this._settings.themeTags=r(this._settings.themeTags,["button"]),super._afterNew(),this._settings.background||this.set("background",n.new(this._root,{themeTags:r(this._settings.themeTags,["background"])})),this.setPrivate("trustBounds",!0)}_prepareChildren(){if(super._prepareChildren(),this.isDirty("icon")){const e=this._prevSettings.icon,s=this.get("icon");s!==e&&(this._disposeProperty("icon"),e&&e.dispose(),s&&this.children.push(s),this._prevSettings.icon=s)}if(this.isDirty("label")){const e=this._prevSettings.label,s=this.get("label");s!==e&&(this._disposeProperty("label"),e&&e.dispose(),s&&this.children.push(s),this._prevSettings.label=s)}}}Object.defineProperty(o,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Button"}),Object.defineProperty(o,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:a.classNames.concat([o.className])});export{o as B,n as R};
|
package/chunks/ColorSet.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
4
|
-
*/
|
|
5
|
-
import{E as e,C as t}from"./Theme.js";class s extends e{_afterNew(){super._afterNewApplyThemes(),this._dirty.colors=!1}_beforeChanged(){this.isDirty("colors")&&this.reset()}generateColors(){this.setPrivate("currentPass",this.getPrivate("currentPass",0)+1);const e=this.getPrivate("currentPass"),s=this.get("colors",[this.get("baseColor",t.fromHex(16711680))]);this.getPrivate("numColors")||this.setPrivate("numColors",s.length);const r=this.getPrivate("numColors"),a=0,i=this.get("passOptions"),o=this.get("reuse");for(let n=a;n<r;n++)if(o)s.push(s[n]);else{const r=s[n].toHSL();let a=r.h+(i.hue||0)*e;for(;a>1;)a-=1;let o=r.s+(i.saturation||0)*e;o>1&&(o=1),o<0&&(o=0);let l=r.l+(i.lightness||0)*e;for(;l>1;)l-=1;s.push(t.fromHSL(a,o,l))}}getIndex(e){const s=this.get("colors",[]),r=this.get("saturation");return e>=s.length?(this.generateColors(),this.getIndex(e)):null!=r?t.saturate(s[e],r):s[e]}next(){let e=this.getPrivate("currentStep",this.get("startIndex",0));return this.setPrivate("currentStep",e+this.get("step",1)),this.getIndex(e)}reset(){this.setPrivate("currentStep",this.get("startIndex",0)),this.setPrivate("currentPass",0)}}Object.defineProperty(s,"className",{enumerable:!0,configurable:!0,writable:!0,value:"ColorSet"}),Object.defineProperty(s,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:e.classNames.concat([s.className])});export{s as C};
|
package/chunks/DefaultTheme.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
4
|
-
*/
|
|
5
|
-
import{T as e,C as t,o,p as a,a as i,G as n,c as r}from"./Theme.js";function l(e,t,o,a){e.set(t,o.get(a)),o.on(a,o=>{e.set(t,o)})}class s extends e{setupDefaultRules(){super.setupDefaultRules();const e=this._root.language,s=this._root.interfaceColors,d=this._root.horizontalLayout,c=this._root.verticalLayout,u=this.rule.bind(this);u("InterfaceColors").setAll({stroke:t.fromHex(15066597),fill:t.fromHex(15987699),primaryButton:t.fromHex(6788316),primaryButtonHover:t.fromHex(6779356),primaryButtonDown:t.fromHex(6872182),primaryButtonActive:t.fromHex(6872182),primaryButtonDisabled:t.fromHex(14342874),primaryButtonTextDisabled:t.fromHex(16777215),primaryButtonText:t.fromHex(16777215),primaryButtonStroke:t.fromHex(16777215),secondaryButton:t.fromHex(14277081),secondaryButtonHover:t.fromHex(10724259),secondaryButtonDown:t.fromHex(9276813),secondaryButtonActive:t.fromHex(15132390),secondaryButtonText:t.fromHex(0),secondaryButtonStroke:t.fromHex(16777215),grid:t.fromHex(0),background:t.fromHex(16777215),alternativeBackground:t.fromHex(0),text:t.fromHex(0),alternativeText:t.fromHex(16777215),disabled:t.fromHex(11382189),positive:t.fromHex(5288704),negative:t.fromHex(11730944)});{const e=u("ColorSet");e.setAll({passOptions:{hue:.05,saturation:0,lightness:0},colors:[t.fromHex(6797276)],step:1,reuse:!1,startIndex:0}),e.setPrivate("currentStep",0),e.setPrivate("currentPass",0)}u("Entity").setAll({stateAnimationDuration:0,stateAnimationEasing:o(r)}),u("Component").setAll({interpolationDuration:0,interpolationEasing:o(r)}),u("Sprite").setAll({visible:!0,scale:1,opacity:1,rotation:0,position:"relative",tooltipX:a,tooltipY:a,tooltipPosition:"fixed",isMeasured:!0}),u("Sprite").states.create("default",{visible:!0,opacity:1}),u("Container").setAll({interactiveChildren:!0,setStateOnChildren:!1}),u("Graphics").setAll({strokeWidth:1}),u("Chart").setAll({width:i,height:i,interactiveChildren:!1}),u("ZoomableContainer").setAll({width:i,height:i,wheelable:!0,pinchZoom:!0,maxZoomLevel:32,minZoomLevel:1,zoomStep:2,animationEasing:o(r),animationDuration:600,maxPanOut:.4}),u("Sprite",["horizontal","center"]).setAll({centerX:a,x:a}),u("Sprite",["vertical","center"]).setAll({centerY:a,y:a}),u("Container",["horizontal","layout"]).setAll({layout:d}),u("Container",["vertical","layout"]).setAll({layout:c}),u("Pattern").setAll({repetition:"repeat",width:50,height:50,rotation:0,fillOpacity:1}),u("LinePattern").setAll({gap:6,colorOpacity:1,width:49,height:49}),u("RectanglePattern").setAll({gap:6,checkered:!1,centered:!0,maxWidth:5,maxHeight:5,width:48,height:48,strokeWidth:0}),u("CirclePattern").setAll({gap:5,checkered:!1,centered:!1,radius:3,strokeWidth:0,width:45,height:45}),u("GrainPattern").setAll({width:200,height:200,colors:[t.fromHex(0)],size:1,horizontalGap:0,verticalGap:0,density:1,minOpacity:0,maxOpacity:.2});{const e=u("PatternSet");e.setAll({step:1}),l(e,"color",s,"stroke")}u("LinearGradient").setAll({rotation:90}),u("Legend").setAll({fillField:"fill",strokeField:"stroke",nameField:"name",layout:n.new(this._root,{}),layer:30,clickTarget:"itemContainer"}),u("Container",["legend","item","itemcontainer"]).setAll({paddingLeft:5,paddingRight:5,paddingBottom:5,paddingTop:5,layout:d,setStateOnChildren:!0,interactiveChildren:!1,ariaChecked:!0,focusable:!0,ariaLabel:e.translate("Press ENTER to toggle"),role:"checkbox"});{const e=u("Rectangle",["legend","item","background"]);e.setAll({fillOpacity:0}),l(e,"fill",s,"background")}u("Container",["legend","marker"]).setAll({setStateOnChildren:!0,centerY:a,paddingLeft:0,paddingRight:0,paddingBottom:0,paddingTop:0,width:18,height:18}),u("RoundedRectangle",["legend","marker","rectangle"]).setAll({width:i,height:i,cornerRadiusBL:3,cornerRadiusTL:3,cornerRadiusBR:3,cornerRadiusTR:3});{const e=u("RoundedRectangle",["legend","marker","rectangle"]).states.create("disabled",{});l(e,"fill",s,"disabled"),l(e,"stroke",s,"disabled")}u("Label",["legend","label"]).setAll({centerY:a,marginLeft:5,paddingRight:0,paddingLeft:0,paddingTop:0,paddingBottom:0,populateText:!0});l(u("Label",["legend","label"]).states.create("disabled",{}),"fill",s,"disabled");u("Label",["legend","value","label"]).setAll({centerY:a,marginLeft:5,paddingRight:0,paddingLeft:0,paddingTop:0,paddingBottom:0,width:50,centerX:i,populateText:!0});l(u("Label",["legend","value","label"]).states.create("disabled",{}),"fill",s,"disabled");u("HeatLegend").setAll({stepCount:1}),u("RoundedRectangle",["heatlegend","marker"]).setAll({cornerRadiusTR:0,cornerRadiusBR:0,cornerRadiusTL:0,cornerRadiusBL:0}),u("RoundedRectangle",["vertical","heatlegend","marker"]).setAll({height:i,width:15}),u("RoundedRectangle",["horizontal","heatlegend","marker"]).setAll({width:i,height:15}),u("HeatLegend",["vertical"]).setAll({height:i}),u("HeatLegend",["horizontal"]).setAll({width:i}),u("Label",["heatlegend","start"]).setAll({paddingLeft:5,paddingRight:5,paddingTop:5,paddingBottom:5}),u("Label",["heatlegend","end"]).setAll({paddingLeft:5,paddingRight:5,paddingTop:5,paddingBottom:5});{const e=u("Label");e.setAll({paddingTop:8,paddingBottom:8,paddingLeft:10,paddingRight:10,fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',fontSize:"1em",populateText:!1}),l(e,"fill",s,"text")}u("RadialLabel").setAll({textType:"regular",centerY:a,centerX:a,inside:!1,radius:0,baseRadius:i,orientation:"auto",textAlign:"center"}),u("EditableLabel").setAll({editOn:"click",themeTags:["editablelabel"],multiLine:!0}),u("RoundedRectangle",["editablelabel","background"]).setAll({fillOpacity:0,fill:t.fromHex(0),cornerRadiusBL:3,cornerRadiusBR:3,cornerRadiusTL:3,cornerRadiusTR:3,strokeOpacity:0,stroke:t.fromHex(0)}),u("RoundedRectangle",["editablelabel","background"]).states.create("active",{strokeOpacity:.2}),u("RoundedRectangle").setAll({cornerRadiusTL:8,cornerRadiusBL:8,cornerRadiusTR:8,cornerRadiusBR:8}),u("PointedRectangle").setAll({pointerBaseWidth:15,pointerLength:10,cornerRadius:8}),u("Slice").setAll({shiftRadius:0,dRadius:0,dInnerRadius:0});{const e=u("Tick");e.setAll({strokeOpacity:.15,isMeasured:!1,length:4.5,position:"absolute",crisp:!0}),l(e,"stroke",s,"grid")}u("Bullet").setAll({locationX:.5,locationY:.5}),u("Tooltip").setAll({position:"absolute",getFillFromSprite:!0,getStrokeFromSprite:!1,autoTextColor:!0,paddingTop:9,paddingBottom:8,paddingLeft:10,paddingRight:10,marginBottom:5,pointerOrientation:"vertical",centerX:a,centerY:a,animationEasing:o(r),exportable:!1}),u("Polygon").setAll({animationEasing:o(r)});u("PointedRectangle",["tooltip","background"]).setAll({strokeOpacity:.9,cornerRadius:4,pointerLength:4,pointerBaseWidth:8,fillOpacity:.9,stroke:t.fromHex(16777215)});{const e=u("Label",["tooltip"]);e.setAll({role:"tooltip",populateText:!0,paddingRight:0,paddingTop:0,paddingLeft:0,paddingBottom:0}),l(e,"fill",s,"alternativeText")}u("Button").setAll({paddingTop:8,paddingBottom:8,paddingLeft:10,paddingRight:10,interactive:!0,layout:d,interactiveChildren:!1,setStateOnChildren:!0,focusable:!0}),u("Button").states.create("hover",{}),u("Button").states.create("down",{stateAnimationDuration:0}),u("Button").states.create("active",{}),u("Button").states.create("disabled",{forceInactive:!0});{const e=u("RoundedRectangle",["button","background"]);l(e,"fill",s,"primaryButton"),l(e,"stroke",s,"primaryButtonStroke")}l(u("RoundedRectangle",["button","background"]).states.create("hover",{}),"fill",s,"primaryButtonHover");l(u("RoundedRectangle",["button","background"]).states.create("down",{stateAnimationDuration:0}),"fill",s,"primaryButtonDown");l(u("RoundedRectangle",["button","background"]).states.create("active",{}),"fill",s,"primaryButtonActive");l(u("RoundedRectangle",["button","background"]).states.create("disabled",{}),"fill",s,"primaryButtonDisabled");l(u("Graphics",["button","icon"]).states.create("disabled",{}),"fill",s,"primaryButtonTextDisabled");l(u("Label",["button"]).states.create("disabled",{}),"fill",s,"primaryButtonTextDisabled");{const e=u("Graphics",["button","icon"]);e.setAll({forceInactive:!0}),l(e,"stroke",s,"primaryButtonText")}l(u("Label",["button"]),"fill",s,"primaryButtonText");u("Button",["zoom"]).setAll({paddingTop:18,paddingBottom:18,paddingLeft:12,paddingRight:12,centerX:46,centerY:-10,y:0,x:i,role:"button",ariaLabel:e.translate("Zoom Out"),layer:30});{const e=u("RoundedRectangle",["background","button","zoom"]);e.setAll({cornerRadiusBL:40,cornerRadiusBR:40,cornerRadiusTL:40,cornerRadiusTR:40}),l(e,"fill",s,"primaryButton")}l(u("RoundedRectangle",["background","button","zoom"]).states.create("hover",{}),"fill",s,"primaryButtonHover");l(u("RoundedRectangle",["background","button","zoom"]).states.create("down",{stateAnimationDuration:0}),"fill",s,"primaryButtonDown");{const e=u("Graphics",["icon","button","zoom"]);e.setAll({crisp:!0,strokeOpacity:.7,draw:e=>{e.moveTo(0,0),e.lineTo(12,0)}}),l(e,"stroke",s,"primaryButtonText")}u("Button",["resize"]).setAll({paddingTop:9,paddingBottom:9,paddingLeft:13,paddingRight:13,draggable:!0,centerX:a,centerY:a,position:"absolute",role:"slider",ariaValueMin:"0",ariaValueMax:"100",ariaLabel:e.translate("Use up and down arrows to move selection")});{const e=u("RoundedRectangle",["background","resize","button"]);e.setAll({cornerRadiusBL:40,cornerRadiusBR:40,cornerRadiusTL:40,cornerRadiusTR:40}),l(e,"fill",s,"secondaryButton"),l(e,"stroke",s,"secondaryButtonStroke")}l(u("RoundedRectangle",["background","resize","button"]).states.create("hover",{}),"fill",s,"secondaryButtonHover");l(u("RoundedRectangle",["background","resize","button"]).states.create("down",{stateAnimationDuration:0}),"fill",s,"secondaryButtonDown");{const e=u("Graphics",["resize","button","icon"]);e.setAll({interactive:!1,crisp:!0,strokeOpacity:.5,draw:e=>{e.moveTo(0,.5),e.lineTo(0,12.5),e.moveTo(4,.5),e.lineTo(4,12.5)}}),l(e,"stroke",s,"secondaryButtonText")}u("Button",["resize","vertical"]).setAll({rotation:90,cursorOverStyle:"ns-resize"}),u("Button",["resize","horizontal"]).setAll({cursorOverStyle:"ew-resize"}),u("Button",["play"]).setAll({paddingTop:13,paddingBottom:13,paddingLeft:14,paddingRight:14,ariaLabel:e.translate("Play"),toggleKey:"active"});{const e=u("RoundedRectangle",["play","background"]);e.setAll({strokeOpacity:.5,cornerRadiusBL:100,cornerRadiusBR:100,cornerRadiusTL:100,cornerRadiusTR:100}),l(e,"fill",s,"primaryButton")}{const e=u("Graphics",["play","icon"]);e.setAll({stateAnimationDuration:0,dx:1,draw:e=>{e.moveTo(0,-5),e.lineTo(8,0),e.lineTo(0,5),e.lineTo(0,-5)}}),l(e,"fill",s,"primaryButtonText")}u("Graphics",["play","icon"]).states.create("default",{stateAnimationDuration:0}),u("Graphics",["play","icon"]).states.create("active",{stateAnimationDuration:0,draw:e=>{e.moveTo(-4,-5),e.lineTo(-1,-5),e.lineTo(-1,5),e.lineTo(-4,5),e.lineTo(-4,-5),e.moveTo(4,-5),e.lineTo(1,-5),e.lineTo(1,5),e.lineTo(4,5),e.lineTo(4,-5)}}),u("Button",["switch"]).setAll({paddingTop:4,paddingBottom:4,paddingLeft:4,paddingRight:4,ariaLabel:e.translate("Press ENTER to toggle"),toggleKey:"active",width:40,height:24,layout:null});{const e=u("RoundedRectangle",["switch","background"]);e.setAll({strokeOpacity:.5,cornerRadiusBL:100,cornerRadiusBR:100,cornerRadiusTL:100,cornerRadiusTR:100}),l(e,"fill",s,"primaryButton")}{const e=u("Circle",["switch","icon"]);e.setAll({radius:8,centerY:0,centerX:0,dx:0}),l(e,"fill",s,"primaryButtonText")}u("Graphics",["switch","icon"]).states.create("active",{dx:16}),u("Scrollbar").setAll({start:0,end:1,layer:30,animationEasing:o(r)}),u("Scrollbar",["vertical"]).setAll({marginRight:13,marginLeft:13,minWidth:12,height:i}),u("Scrollbar",["horizontal"]).setAll({marginTop:13,marginBottom:13,minHeight:12,width:i}),this.rule("Button",["scrollbar"]).setAll({exportable:!1});{const e=u("RoundedRectangle",["scrollbar","main","background"]);e.setAll({cornerRadiusTL:8,cornerRadiusBL:8,cornerRadiusTR:8,cornerRadiusBR:8,fillOpacity:.8}),l(e,"fill",s,"fill")}{const e=u("RoundedRectangle",["scrollbar","thumb"]);e.setAll({role:"slider",ariaLive:"polite",position:"absolute",draggable:!0}),l(e,"fill",s,"secondaryButton")}l(u("RoundedRectangle",["scrollbar","thumb"]).states.create("hover",{}),"fill",s,"secondaryButtonHover");l(u("RoundedRectangle",["scrollbar","thumb"]).states.create("down",{stateAnimationDuration:0}),"fill",s,"secondaryButtonDown");u("RoundedRectangle",["scrollbar","thumb","vertical"]).setAll({x:a,width:i,centerX:a,ariaLabel:e.translate("Use up and down arrows to move selection")}),u("RoundedRectangle",["scrollbar","thumb","horizontal"]).setAll({y:a,centerY:a,height:i,ariaLabel:e.translate("Use left and right arrows to move selection")});{const e=u("PointedRectangle",["axis","tooltip","background"]);e.setAll({cornerRadius:0}),l(e,"fill",s,"alternativeBackground")}u("Label",["axis","tooltip"]).setAll({role:void 0}),u("Label",["axis","tooltip","y"]).setAll({textAlign:"right"}),u("Label",["axis","tooltip","y","opposite"]).setAll({textAlign:"left"}),u("Label",["axis","tooltip","x"]).setAll({textAlign:"center"}),u("Tooltip",["categoryaxis"]).setAll({labelText:"{category}"}),u("Star").setAll({spikes:5,innerRadius:5,radius:10}),u("Tooltip",["stock"]).setAll({paddingTop:6,paddingBottom:5,paddingLeft:7,paddingRight:7}),u("Tooltip",["indicator"]).setAll({forceHidden:!0}),u("PointedRectangle",["tooltip","stock","axis"]).setAll({pointerLength:0,pointerBaseWidth:0,cornerRadius:3}),u("Label",["tooltip","stock"]).setAll({fontSize:"0.8em"}),u("SpriteResizer").setAll({rotationStep:10,isMeasured:!1});u("Container",["resizer","grip"]).states.create("hover",{});{const e=u("RoundedRectangle",["resizer","grip"]);e.setAll({strokeOpacity:.7,strokeWidth:1,fillOpacity:1,width:12,height:12}),l(e,"fill",s,"background"),l(e,"stroke",s,"alternativeBackground")}{const e=u("RoundedRectangle",["resizer","grip","outline"]);e.setAll({strokeOpacity:0,fillOpacity:0,width:20,height:20}),e.states.create("hover",{fillOpacity:.3}),l(e,"fill",s,"alternativeBackground")}u("RoundedRectangle",["resizer","grip","left"]).setAll({cornerRadiusBL:0,cornerRadiusBR:0,cornerRadiusTL:0,cornerRadiusTR:0}),u("RoundedRectangle",["resizer","grip","right"]).setAll({cornerRadiusBL:0,cornerRadiusBR:0,cornerRadiusTL:0,cornerRadiusTR:0});{const e=u("Rectangle",["resizer","rectangle"]);e.setAll({strokeDasharray:[2,2],strokeOpacity:.5,strokeWidth:1}),l(e,"stroke",s,"alternativeBackground")}u("Graphics",["button","plus","icon"]).setAll({x:a,y:a,draw:e=>{e.moveTo(-4,0),e.lineTo(4,0),e.moveTo(0,-4),e.lineTo(0,4)}}),u("Graphics",["button","minus","icon"]).setAll({x:a,y:a,draw:e=>{e.moveTo(-4,0),e.lineTo(4,0)}}),u("Graphics",["button","home","icon"]).setAll({x:a,y:a,svgPath:"M 8 -1 L 6 -1 L 6 7 L 2 7 L 2 1 L -2 1 L -2 7 L -6 7 L -6 -1 L -8 -1 L 0 -9 L 8 -1 Z M 8 -1"}),u("Button",["zoomtools"]).setAll({marginTop:1,marginBottom:2}),u("ZoomTools").setAll({x:i,centerX:i,y:i,centerY:i,paddingRight:10,paddingBottom:10})}}export{s as D,l as s};
|
package/chunks/LineSeries.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
4
|
-
*/
|
|
5
|
-
import{T as e,C as t,a as i,p as s,k as a,X as o,as as n,aM as r,j as l,N as h,g as d,e as c,R as u,r as g,n as p,H as m,_,i as b,av as x,aN as f,P as v,m as y,ag as w,h as P,aO as A,aH as D,F as k,am as T,aP as M,l as S,q as O,M as C,a0 as X,f as Y,aQ as L,L as F,t as R,u as I,aR as j,b as V}from"./Theme.js";import{C as E}from"./ColorSet.js";import{s as G}from"./DefaultTheme.js";import{w as z,c as N,r as B,S as U,a as W,D as H,C as Z,T as K}from"./Tick.js";import{B as q}from"./Button.js";import{__awaiter as Q}from"tslib";function J(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function $(e){this._context=e}function ee(e){return new $(e)}function te(e){return e[0]}function ie(e){return e[1]}function se(e,t){var i=N(!0),s=null,a=ee,o=null,n=z(r);function r(r){var l,h,d,c=(r=J(r)).length,u=!1;for(null==s&&(o=a(d=n())),l=0;l<=c;++l)!(l<c&&i(h=r[l],l,r))===u&&((u=!u)?o.lineStart():o.lineEnd()),u&&o.point(+e(h,l,r),+t(h,l,r));if(d)return o=null,d+""||null}return e="function"==typeof e?e:void 0===e?te:N(e),t="function"==typeof t?t:void 0===t?ie:N(t),r.x=function(t){return arguments.length?(e="function"==typeof t?t:N(+t),r):e},r.y=function(e){return arguments.length?(t="function"==typeof e?e:N(+e),r):t},r.defined=function(e){return arguments.length?(i="function"==typeof e?e:N(!!e),r):i},r.curve=function(e){return arguments.length?(a=e,null!=s&&(o=a(s)),r):a},r.context=function(e){return arguments.length?(null==e?s=o=null:o=a(s=e),r):s},r}function ae(e,t,i){var s=null,a=N(!0),o=null,n=ee,r=null,l=z(h);function h(h){var d,c,u,g,p,m=(h=J(h)).length,_=!1,b=new Array(m),x=new Array(m);for(null==o&&(r=n(p=l())),d=0;d<=m;++d){if(!(d<m&&a(g=h[d],d,h))===_)if(_=!_)c=d,r.areaStart(),r.lineStart();else{for(r.lineEnd(),r.lineStart(),u=d-1;u>=c;--u)r.point(b[u],x[u]);r.lineEnd(),r.areaEnd()}_&&(b[d]=+e(g,d,h),x[d]=+t(g,d,h),r.point(s?+s(g,d,h):b[d],i?+i(g,d,h):x[d]))}if(p)return r=null,p+""||null}function d(){return se().defined(a).curve(n).context(o)}return e="function"==typeof e?e:void 0===e?te:N(+e),t="function"==typeof t?t:N(void 0===t?0:+t),i="function"==typeof i?i:void 0===i?ie:N(+i),h.x=function(t){return arguments.length?(e="function"==typeof t?t:N(+t),s=null,h):e},h.x0=function(t){return arguments.length?(e="function"==typeof t?t:N(+t),h):e},h.x1=function(e){return arguments.length?(s=null==e?null:"function"==typeof e?e:N(+e),h):s},h.y=function(e){return arguments.length?(t="function"==typeof e?e:N(+e),i=null,h):t},h.y0=function(e){return arguments.length?(t="function"==typeof e?e:N(+e),h):t},h.y1=function(e){return arguments.length?(i=null==e?null:"function"==typeof e?e:N(+e),h):i},h.lineX0=h.lineY0=function(){return d().x(e).y(t)},h.lineY1=function(){return d().x(e).y(i)},h.lineX1=function(){return d().x(s).y(t)},h.defined=function(e){return arguments.length?(a="function"==typeof e?e:N(!!e),h):a},h.curve=function(e){return arguments.length?(n=e,null!=o&&(r=n(o)),h):n},h.context=function(e){return arguments.length?(null==e?o=r=null:r=n(o=e),h):o},h}$.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};class oe extends e{setupDefaultRules(){super.setupDefaultRules();const e=this._root.interfaceColors,h=this._root.language,d=this.rule.bind(this);d("XYChart").setAll({colors:E.new(this._root,{}),paddingLeft:20,paddingRight:20,paddingTop:16,paddingBottom:16,panX:!1,panY:!1,wheelStep:.25,arrangeTooltips:!0,pinchZoomX:!1,pinchZoomY:!1}),d("XYSeries").setAll({legendLabelText:"{name}"}),d("Rectangle",["plotbackground","xy","background"]).setAll({fill:t.fromHex(0),fillOpacity:0}),d("XYChart",["scrollbar","chart"]).setAll({paddingBottom:0,paddingLeft:0,paddingTop:0,paddingRight:0,colors:E.new(this._root,{saturation:0})});{const t=d("Graphics",["scrollbar","overlay"]);t.setAll({fillOpacity:.5}),G(t,"fill",e,"background")}d("RoundedRectangle",["xy","scrollbar","thumb"]).setAll({cornerRadiusTR:0,cornerRadiusTL:0,cornerRadiusBR:0,cornerRadiusBL:0,fillOpacity:0,focusable:!0}),d("RoundedRectangle",["xy","scrollbar","thumb"]).states.create("hover",{fillOpacity:.4}),d("RoundedRectangle",["xy","scrollbar","chart","background"]).setAll({cornerRadiusTL:0,cornerRadiusBL:0,cornerRadiusTR:0,cornerRadiusBR:0}),d("RoundedRectangle",["xy","scrollbar","chart","background","resize","button"]).setAll({cornerRadiusBL:40,cornerRadiusBR:40,cornerRadiusTL:40,cornerRadiusTR:40}),d("AxisRendererX",["xy","chart","scrollbar"]).setAll({strokeOpacity:0,inside:!0}),d("AxisRendererY",["xy","chart","scrollbar"]).setAll({strokeOpacity:0,inside:!0,minGridDistance:5}),d("AxisLabel",["xy","scrollbar","x"]).setAll({opacity:.5,centerY:i,minPosition:.01,maxPosition:.99,fontSize:"0.8em"}),d("AxisLabel",["category"]).setAll({text:"{category}",populateText:!0}),d("AxisLabel",["x"]).setAll({centerY:0}),d("AxisLabel",["x","inside"]).setAll({centerY:i}),d("AxisLabel",["x","inside","opposite"]).setAll({centerY:0}),d("AxisLabel",["x","opposite"]).setAll({centerY:i}),d("AxisLabel",["y"]).setAll({centerX:i}),d("AxisLabel",["y","inside"]).setAll({centerX:0}),d("AxisLabel",["y","inside","opposite"]).setAll({centerX:i}),d("AxisLabel",["y","opposite"]).setAll({centerX:0}),d("AxisLabel",["minor"]).setAll({fontSize:"0.6em"}),d("AxisLabel",["xy","scrollbar","y"]).setAll({visible:!1}),d("Grid",["xy","scrollbar","y"]).setAll({visible:!1}),d("Grid",["xy","scrollbar","x"]).setAll({opacity:.5}),d("XYCursor").setAll({behavior:"none",layer:30,exportable:!1,snapToSeriesBy:"xy",moveThreshold:1});{const t=d("Grid",["cursor","x"]);t.setAll({forceInactive:!0,strokeOpacity:.8,strokeDasharray:[2,2],role:"slider",ariaLabel:h.translate("Use left and right arrows to move selection")}),G(t,"stroke",e,"alternativeBackground")}{const t=d("Grid",["cursor","y"]);t.setAll({forceInactive:!0,strokeOpacity:.8,strokeDasharray:[2,2],role:"slider",ariaLabel:h.translate("Use up and down arrows to move selection")}),G(t,"stroke",e,"alternativeBackground")}{const t=d("Graphics",["cursor","selection"]);t.setAll({fillOpacity:.15}),G(t,"fill",e,"alternativeBackground")}d("Axis").setAll({start:0,end:1,minZoomCount:1,maxZoomCount:1/0,maxZoomFactor:1e3,maxDeviation:.1,snapTooltip:!0,tooltipLocation:.5,panX:!0,panY:!0,zoomX:!0,zoomY:!0,fixAxisSize:!0}),d("AxisLabel").setAll({location:.5,multiLocation:0,centerX:s,centerY:s,paddingTop:3,paddingBottom:3,paddingLeft:5,paddingRight:5}),d("Container",["axis","header"]).setAll({layer:30}),d("Rectangle",["axis","header","background"]).setAll({crisp:!0});{const t=d("AxisRenderer");t.setAll({crisp:!0,strokeOpacity:0}),G(t,"stroke",e,"grid")}d("AxisRendererX").setAll({minGridDistance:120,opposite:!1,inversed:!1,cellStartLocation:0,cellEndLocation:1,width:i}),d("AxisRendererY").setAll({minGridDistance:40,opposite:!1,inversed:!1,cellStartLocation:0,cellEndLocation:1,height:i});{const t=d("Rectangle",["axis","thumb"]);t.setAll({fillOpacity:0}),G(t,"fill",e,"alternativeBackground"),t.states.create("hover",{fillOpacity:.1})}d("Rectangle",["axis","thumb","x"]).setAll({cursorOverStyle:"ew-resize"}),d("Rectangle",["axis","thumb","y"]).setAll({cursorOverStyle:"ns-resize"});{const t=d("Grid");t.setAll({location:0,strokeOpacity:.15,crisp:!0}),G(t,"stroke",e,"grid")}{const t=d("Grid",["minor"]);t.setAll({location:0,strokeOpacity:.07,crisp:!0}),G(t,"stroke",e,"grid")}d("Grid",["base"]).setAll({strokeOpacity:.3});{const t=d("Graphics",["axis","fill"]);t.setAll({visible:!1,isMeasured:!1,position:"absolute",fillOpacity:.05}),G(t,"fill",e,"alternativeBackground")}d("Graphics",["axis","fill","range"]).setAll({isMeasured:!0}),d("Graphics",["series","fill","range"]).setAll({visible:!1,isMeasured:!0}),d("Grid",["series","range"]).setAll({visible:!1}),d("AxisTick",["series","range"]).setAll({visible:!1}),d("AxisLabel",["series","range"]).setAll({visible:!1});{const t=d("AxisTick");t.setAll({location:.5,multiLocation:0,strokeOpacity:1,isMeasured:!1,position:"absolute",visible:!1}),G(t,"stroke",e,"grid")}d("CategoryAxis").setAll({startLocation:0,endLocation:1,fillRule:(e,t)=>{const i=e.get("axisFill");i&&(a(t)&&t%2!=0?i.setPrivate("visible",!1):i.setPrivate("visible",!0))}});const c=[{timeUnit:"millisecond",count:1},{timeUnit:"millisecond",count:5},{timeUnit:"millisecond",count:10},{timeUnit:"millisecond",count:50},{timeUnit:"millisecond",count:100},{timeUnit:"millisecond",count:500},{timeUnit:"second",count:1},{timeUnit:"second",count:5},{timeUnit:"second",count:10},{timeUnit:"second",count:30},{timeUnit:"minute",count:1},{timeUnit:"minute",count:5},{timeUnit:"minute",count:10},{timeUnit:"minute",count:15},{timeUnit:"minute",count:30},{timeUnit:"hour",count:1},{timeUnit:"hour",count:3},{timeUnit:"hour",count:6},{timeUnit:"hour",count:12},{timeUnit:"day",count:1},{timeUnit:"day",count:2},{timeUnit:"day",count:3},{timeUnit:"day",count:4},{timeUnit:"day",count:5},{timeUnit:"week",count:1},{timeUnit:"month",count:1},{timeUnit:"month",count:2},{timeUnit:"month",count:3},{timeUnit:"month",count:6},{timeUnit:"year",count:1},{timeUnit:"year",count:2},{timeUnit:"year",count:5},{timeUnit:"year",count:10},{timeUnit:"year",count:50},{timeUnit:"year",count:100},{timeUnit:"year",count:200},{timeUnit:"year",count:500},{timeUnit:"year",count:1e3},{timeUnit:"year",count:2e3},{timeUnit:"year",count:5e3},{timeUnit:"year",count:1e4},{timeUnit:"year",count:1e5}],u={millisecond:h.translate("_date_millisecond"),second:h.translate("_date_second"),minute:h.translate("_date_minute"),hour:h.translate("_date_hour"),day:h.translate("_date_day"),week:h.translate("_date_day"),month:h.translate("_date_month"),year:h.translate("_date_year")},g={millisecond:h.translate("_date_millisecond"),second:h.translate("_date_second"),minute:h.translate("_date_minute"),hour:h.translate("_date_day"),day:h.translate("_date_day"),week:h.translate("_date_day"),month:h.translate("_date_month")+" "+h.translate("_date_year"),year:h.translate("_date_year")},p={millisecond:h.translate("_date_millisecond_full"),second:h.translate("_date_second_full"),minute:h.translate("_date_minute_full"),hour:h.translate("_date_hour_full"),day:h.translate("_date_day_full"),week:h.translate("_date_week_full"),month:h.translate("_date_month_full"),year:h.translate("_date_year")};d("CategoryDateAxis").setAll({markUnitChange:!0,gridIntervals:n(c),dateFormats:o(u),periodChangeDateFormats:o(g)}),d("DateAxis").setAll({maxZoomFactor:null,strictMinMax:!0,startLocation:0,endLocation:1,markUnitChange:!0,groupData:!1,groupCount:500,gridIntervals:n(c),dateFormats:o(u),periodChangeDateFormats:o(g),tooltipDateFormats:p,groupIntervals:[{timeUnit:"millisecond",count:1},{timeUnit:"millisecond",count:10},{timeUnit:"millisecond",count:100},{timeUnit:"second",count:1},{timeUnit:"second",count:10},{timeUnit:"minute",count:1},{timeUnit:"minute",count:10},{timeUnit:"hour",count:1},{timeUnit:"day",count:1},{timeUnit:"week",count:1},{timeUnit:"month",count:1},{timeUnit:"year",count:1}],fillRule:e=>{const t=e.get("axisFill");if(t){const i=e.component,s=e.get("value"),a=e.get("endValue"),o=i.intervalDuration(),n=i.getPrivate("baseInterval"),r=i.getPrivate("gridInterval",n);let l=i.getPrivate("min",0);if(l=B(new Date(l),r.timeUnit,r.count,this._root.locale.firstDayOfWeek,this._root.utc,void 0,this._root.timezone).getTime(),null!=s&&null!=a){const e=Math.round(Math.round((s-l)/o))/2;e==Math.round(e)?t.setPrivate("visible",!0):t.setPrivate("visible",!1)}}}}),d("GaplessDateAxis").setAll({fillRule:e=>{const t=e.get("axisFill");if(t){const i=e.get("index");let s=!1;a(i)&&i%2!=0||(s=!0),t.setPrivate("visible",s)}}}),d("ValueAxis").setAll({baseValue:0,logarithmic:!1,strictMinMax:!1,autoZoom:!0,fillRule:e=>{const t=e.get("axisFill");if(t){const i=e.component,s=e.get("value"),o=i.getPrivate("step");a(s)&&a(o)&&(r(s/o/2,5)==Math.round(s/o/2)?t.setPrivate("visible",!1):t.setPrivate("visible",!0))}}}),d("DurationAxis").setAll({baseUnit:"second"}),d("XYSeries").setAll({maskBullets:!0,stackToNegative:!0,locationX:.5,locationY:.5,snapTooltip:!1,openValueXGrouped:"open",openValueYGrouped:"open",valueXGrouped:"close",valueYGrouped:"close",seriesTooltipTarget:"series"}),d("BaseColumnSeries").setAll({adjustBulletPosition:!0}),d("ColumnSeries").setAll({clustered:!0}),d("RoundedRectangle",["series","column"]).setAll({position:"absolute",isMeasured:!1,width:l(70),height:l(70),strokeWidth:1,strokeOpacity:1,cornerRadiusBL:0,cornerRadiusTL:0,cornerRadiusBR:0,cornerRadiusTR:0,fillOpacity:1,role:"figure"}),d("LineSeries").setAll({connect:!0,autoGapCount:1.1,stackToNegative:!1}),d("Graphics",["series","stroke"]).setAll({position:"absolute",strokeWidth:1,strokeOpacity:1,isMeasured:!1}),d("Graphics",["series","fill"]).setAll({visible:!1,fillOpacity:0,position:"absolute",strokeWidth:0,strokeOpacity:0,isMeasured:!1}),d("Graphics",["line","series","legend","marker","stroke"]).setAll({draw:(e,t)=>{const i=t.parent;if(i){const t=i.height(),s=i.width();e.moveTo(0,t/2),e.lineTo(s,t/2)}}});{const t=d("Graphics",["line","series","legend","marker","stroke"]).states.create("disabled",{});G(t,"stroke",e,"disabled")}d("Graphics",["line","series","legend","marker","fill"]).setAll({draw:(e,t)=>{const i=t.parent;if(i){const t=i.height(),s=i.width();e.moveTo(0,0),e.lineTo(s,0),e.lineTo(s,t),e.lineTo(0,t),e.lineTo(0,0)}}});{const t=d("Graphics",["line","series","legend","marker","fill"]).states.create("disabled",{});G(t,"stroke",e,"disabled")}d("SmoothedXYLineSeries").setAll({tension:.5}),d("SmoothedXLineSeries").setAll({tension:.5}),d("SmoothedYLineSeries").setAll({tension:.5}),d("Candlestick").setAll({position:"absolute",isMeasured:!1,width:l(50),height:l(50),strokeWidth:1,strokeOpacity:1,cornerRadiusBL:0,cornerRadiusTL:0,cornerRadiusBR:0,cornerRadiusTR:0,fillOpacity:1,role:"figure"}),d("OHLC").setAll({width:l(80),height:l(80)}),d("CandlestickSeries").setAll({lowValueXGrouped:"low",lowValueYGrouped:"low",highValueXGrouped:"high",highValueYGrouped:"high",openValueXGrouped:"open",openValueYGrouped:"open",valueXGrouped:"close",valueYGrouped:"close"});{const t=d("Rectangle",["column","autocolor"]).states.create("riseFromOpen",{});G(t,"fill",e,"positive"),G(t,"stroke",e,"positive")}{const t=d("Rectangle",["column","autocolor"]).states.create("dropFromOpen",{});G(t,"fill",e,"negative"),G(t,"stroke",e,"negative")}d("Rectangle",["column","autocolor","pro"]).states.create("riseFromOpen",{fillOpacity:0}),d("Rectangle",["column","autocolor","pro"]).states.create("dropFromOpen",{fillOpacity:1});{const t=d("Rectangle",["column","autocolor","pro"]).states.create("riseFromPrevious",{});G(t,"fill",e,"positive"),G(t,"stroke",e,"positive")}{const t=d("Rectangle",["column","autocolor","pro"]).states.create("dropFromPrevious",{});G(t,"fill",e,"negative"),G(t,"stroke",e,"negative")}d("RoundedRectangle",["rangegrip"]).setAll({strokeOpacity:0,fillOpacity:0,strokeWidth:1,width:12,height:12});{const t=d("Graphics",["rangegrip","button","icon"]);t.setAll({interactive:!1,crisp:!0,strokeOpacity:.5,draw:e=>{e.moveTo(0,.5),e.lineTo(0,12.5),e.moveTo(2,.5),e.lineTo(2,12.5),e.moveTo(4,.5),e.lineTo(4,12.5)}}),G(t,"stroke",e,"secondaryButtonText")}d("Button",["rangegrip"]).setAll({draggable:!0,paddingTop:0,paddingBottom:0}),d("Button",["rangegrip","vertical"]).setAll({rotation:90,cursorOverStyle:"ns-resize",centerX:s}),d("Button",["rangegrip","horizontal"]).setAll({cursorOverStyle:"ew-resize",centerX:s}),d("Button",["rangegrip","vertical","left"]).setAll({centerY:i}),d("Button",["rangegrip","vertical","right"]).setAll({centerY:0}),d("Button",["rangegrip","horizontal","top"]).setAll({centerY:0}),d("Button",["rangegrip","horizontal","bottom"]).setAll({centerY:i})}}class ne extends U{constructor(){super(...arguments),Object.defineProperty(this,"xAxes",{enumerable:!0,configurable:!0,writable:!0,value:new h}),Object.defineProperty(this,"yAxes",{enumerable:!0,configurable:!0,writable:!0,value:new h}),Object.defineProperty(this,"topAxesContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.chartContainer.children.push(d.new(this._root,{width:i,layout:this._root.verticalLayout}))}),Object.defineProperty(this,"yAxesAndPlotContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.chartContainer.children.push(d.new(this._root,{width:i,height:i,layout:this._root.horizontalLayout}))}),Object.defineProperty(this,"bottomAxesContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.chartContainer.children.push(d.new(this._root,{width:i,layout:this._root.verticalLayout}))}),Object.defineProperty(this,"leftAxesContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.yAxesAndPlotContainer.children.push(d.new(this._root,{height:i,layout:this._root.horizontalLayout}))}),Object.defineProperty(this,"plotsContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.yAxesAndPlotContainer.children.push(d.new(this._root,{width:i,height:i,maskContent:!1}))}),Object.defineProperty(this,"plotContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.plotsContainer.children.push(d.new(this._root,{width:i,height:i}))}),Object.defineProperty(this,"topPlotContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.plotsContainer.children.push(d.new(this._root,{width:i,height:i}))}),Object.defineProperty(this,"gridContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.plotContainer.children.push(d.new(this._root,{width:i,height:i,isMeasured:!1}))}),Object.defineProperty(this,"topGridContainer",{enumerable:!0,configurable:!0,writable:!0,value:d.new(this._root,{width:i,height:i,isMeasured:!1})}),Object.defineProperty(this,"rightAxesContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.yAxesAndPlotContainer.children.push(d.new(this._root,{height:i,layout:this._root.horizontalLayout}))}),Object.defineProperty(this,"axisHeadersContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.plotContainer.children.push(d.new(this._root,{}))}),Object.defineProperty(this,"zoomOutButton",{enumerable:!0,configurable:!0,writable:!0,value:this.topPlotContainer.children.push(q.new(this._root,{themeTags:["zoom"],icon:c.new(this._root,{themeTags:["button","icon"]})}))}),Object.defineProperty(this,"_movePoint",{enumerable:!0,configurable:!0,writable:!0,value:{x:0,y:0}}),Object.defineProperty(this,"_wheelDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_otherCharts",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_movePoints",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_downStartX",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_downEndX",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_downStartY",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_downEndY",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}_afterNew(){this._defaultThemes.push(oe.new(this._root)),super._afterNew(),this._disposers.push(this.xAxes),this._disposers.push(this.yAxes);const e=this._root;let t=this._root.verticalLayout;const i=this.zoomOutButton;i.events.on("click",()=>{this.zoomOut()}),i.hide(0),i.states.lookup("default").set("opacity",1),this.chartContainer.set("layout",t);const s=this.plotContainer;s.children.push(this.seriesContainer),this._disposers.push(this._processAxis(this.xAxes,this.bottomAxesContainer)),this._disposers.push(this._processAxis(this.yAxes,this.leftAxesContainer)),s.children.push(this.topGridContainer),s.children.push(this.bulletsContainer),s.set("interactive",!0),s.set("interactiveChildren",!1),s.set("background",u.new(e,{themeTags:["plotbackground","xy","background"]})),this._disposers.push(s.events.on("pointerdown",e=>{this._handlePlotDown(e)})),this._disposers.push(s.events.on("globalpointerup",e=>{this._handlePlotUp(e)})),this._disposers.push(s.events.on("globalpointermove",e=>{this._handlePlotMove(e)})),this._maskGrid(),this._setUpTouch()}_beforeChanged(){super._beforeChanged(),(this.isDirty("pinchZoomX")||this.isDirty("pinchZoomY")||this.get("panX")||this.get("panY"))&&this._setUpTouch()}_setUpTouch(){this.plotContainer._display.cancelTouch||(this.plotContainer._display.cancelTouch=!!(this.get("pinchZoomX")||this.get("pinchZoomY")||this.get("panX")||this.get("panY")))}_maskGrid(){this.gridContainer.set("maskContent",!0),this.topGridContainer.set("maskContent",!0)}_removeSeries(e){e._unstack(),e._posXDp&&e._posXDp.dispose(),e._posYDp&&e._posYDp.dispose(),e.set("baseAxis",void 0);const t=e.get("xAxis");t&&(g(t.series,e),t.markDirtyExtremes());const i=e.get("yAxis");i&&(g(i.series,e),i.markDirtyExtremes());const s=this.get("cursor");if(s){const t=s.get("snapToSeries");t&&g(t,e)}super._removeSeries(e)}handleWheel(e){const t=this.get("wheelX"),i=this.get("wheelY"),s=this.plotContainer,a=e.originalEvent;let o=!1;if(!p(a,this))return;o=!0;const n=s.toLocal(e.point),r=this.get("wheelStep",.2),l=a.deltaY/100,h=a.deltaX/100,d=this.get("wheelZoomPositionX"),c=this.get("wheelZoomPositionY");"zoomX"!==t&&"zoomXY"!==t||0==h||this.xAxes.each(e=>{if(e.get("zoomX")){let t=e.get("start"),i=e.get("end"),a=e.fixPosition(n.x/s.width());null!=d&&(a=d);let l=e.get("maxDeviation",0),c=Math.min(1+l,Math.max(-l,t-r*(i-t)*h*a)),u=Math.max(-l,Math.min(1+l,i+r*(i-t)*h*(1-a)));c==t&&u==i&&(o=!1),1/(u-c)<e.getPrivate("maxZoomFactor",1/0)/e.get("minZoomCount",1)?this._handleWheelAnimation(e.zoom(c,u)):o=!1}}),"zoomX"!==i&&"zoomXY"!==i||0==l||this.xAxes.each(e=>{if(e.get("zoomX")){let t=e.get("start"),i=e.get("end"),a=e.fixPosition(n.x/s.width());null!=d&&(a=d);let h=e.get("maxDeviation",0),c=Math.min(1+h,Math.max(-h,t-r*(i-t)*l*a)),u=Math.max(-h,Math.min(1+h,i+r*(i-t)*l*(1-a)));c==t&&u==i&&(o=!1),1/(u-c)<e.getPrivate("maxZoomFactor",1/0)/e.get("minZoomCount",1)?this._handleWheelAnimation(e.zoom(c,u)):o=!1}}),"zoomY"!==t&&"zoomXY"!==t||0==h||this.yAxes.each(e=>{if(e.get("zoomY")){let t=e.get("start"),i=e.get("end"),a=e.fixPosition(n.y/s.height());null!=c&&(a=c);let l=e.get("maxDeviation",0),d=Math.min(1+l,Math.max(-l,t-r*(i-t)*h*a)),u=Math.max(-l,Math.min(1+l,i+r*(i-t)*h*(1-a)));d==t&&u==i&&(o=!1),1/(u-d)<e.getPrivate("maxZoomFactor",1/0)/e.get("minZoomCount",1)?this._handleWheelAnimation(e.zoom(d,u)):o=!1}}),"zoomY"!==i&&"zoomXY"!==i||0==l||this.yAxes.each(e=>{if(e.get("zoomY")){let t=e.get("start"),i=e.get("end"),a=e.fixPosition(n.y/s.height());null!=c&&(a=c);let h=e.get("maxDeviation",0),d=Math.min(1+h,Math.max(-h,t-r*(i-t)*l*a)),u=Math.max(-h,Math.min(1+h,i+r*(i-t)*l*(1-a)));d==t&&u==i&&(o=!1),1/(u-d)<e.getPrivate("maxZoomFactor",1/0)/e.get("minZoomCount",1)?this._handleWheelAnimation(e.zoom(d,u)):o=!1}}),"panX"!==t&&"panXY"!==t||0==h||this.xAxes.each(e=>{if(e.get("panX")){let t=e.get("start"),i=e.get("end"),s=this._getWheelSign(e)*r*(i-t)*h,a=t+s,n=i+s,l=this._fixWheel(a,n);a=l[0],n=l[1],a==t&&n==i&&(o=!1),this._handleWheelAnimation(e.zoom(a,n))}}),"panX"!==i&&"panXY"!==i||0==l||this.xAxes.each(e=>{if(e.get("panX")){let t=e.get("start"),i=e.get("end"),s=this._getWheelSign(e)*r*(i-t)*l,a=t+s,n=i+s,h=this._fixWheel(a,n);a=h[0],n=h[1],a==t&&n==i&&(o=!1),this._handleWheelAnimation(e.zoom(a,n))}}),"panY"!==t&&"panXY"!==t||0==h||this.yAxes.each(e=>{if(e.get("panY")){let t=e.get("start"),i=e.get("end"),s=this._getWheelSign(e)*r*(i-t)*h,a=t+s,n=i+s,l=this._fixWheel(a,n);a=l[0],n=l[1],a==t&&n==i&&(o=!1),this._handleWheelAnimation(e.zoom(a,n))}}),"panY"!==i&&"panXY"!==i||0==l||this.yAxes.each(e=>{if(e.get("panY")){let t=e.get("start"),i=e.get("end"),s=this._getWheelSign(e)*r*(i-t)*l,a=t-s,n=i-s,h=this._fixWheel(a,n);a=h[0],n=h[1],a==t&&n==i&&(o=!1),this._handleWheelAnimation(e.zoom(a,n))}}),o&&a.preventDefault()}_handleSetWheel(){const e=this.get("wheelX"),t=this.get("wheelY"),i=this.plotContainer;"none"!==e||"none"!==t?(this._wheelDp=i.events.on("wheel",i=>{const s=i.originalEvent;("none"!==e&&0!=Math.abs(s.deltaX)||"none"!==t&&0!=Math.abs(s.deltaY))&&this.handleWheel(i)}),this._disposers.push(this._wheelDp)):this._wheelDp&&this._wheelDp.dispose()}_getWheelSign(e){let t=1;return e.get("renderer").get("inversed")&&(t=-1),t}_fixWheel(e,t){const i=t-e;return e<0&&(t=(e=0)+i),t>1&&(e=(t=1)-i),[e,t]}_handlePlotDown(e){const t=e.originalEvent;if(2==t.button)return;const i=this.plotContainer;let s=i.toLocal(e.point);if(this.get("pinchZoomX")||this.get("pinchZoomY")){if(t.pointerId&&m(i._downPoints).length>0){const e=this.xAxes.getIndex(0),t=this.yAxes.getIndex(0);e&&(this._downStartX=e.get("start",0),this._downEndX=e.get("end",1)),t&&(this._downStartY=t.get("start",0),this._downEndY=t.get("end",1))}}if((this.get("panX")||this.get("panY"))&&s.x>=0&&s.y>=0&&s.x<=i.width()&&s.y<=this.height()){this._downPoint={x:t.clientX,y:t.clientY};const i=this.get("panX"),s=this.get("panY");i&&this.xAxes.each(e=>{e._panStart=e.get("start"),e._panEnd=e.get("end")}),s&&this.yAxes.each(e=>{e._panStart=e.get("start"),e._panEnd=e.get("end")});const a="panstarted";this.events.isEnabled(a)&&this.events.dispatch(a,{type:a,target:this,originalEvent:e.originalEvent})}}_handleWheelAnimation(e){e?e.events.on("stopped",()=>{this._dispatchWheelAnimation()}):this._dispatchWheelAnimation()}_dispatchWheelAnimation(){const e="wheelended";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this})}_handlePlotUp(e){const t=this._downPoint;if(t&&(this.get("panX")||this.get("panY"))){if(e.originalEvent.clientX==t.x&&e.originalEvent.clientY==t.y){const t="pancancelled";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this,originalEvent:e.originalEvent})}const i="panended";this.events.isEnabled(i)&&this.events.dispatch(i,{type:i,target:this,originalEvent:e.originalEvent})}this._downPoint=void 0,this.xAxes.each(e=>{e._isPanning=!1}),this.yAxes.each(e=>{e._isPanning=!1})}_handlePlotMove(e){const t=this.plotContainer;if(this.get("pinchZoomX")||this.get("pinchZoomY")){const i=e.originalEvent.pointerId;if(i&&(this._movePoints[i]=e.point,m(t._downPoints).length>1))return void this._handlePinch()}let i=this._downPoint;if(i){i=t.toLocal(this._root.documentPointToRoot(i));let s=t.toLocal(e.point);const a=this.get("panX"),o=this.get("panY");if(a){let e=this.get("scrollbarX");e&&e.events.disableType("rangechanged"),this.xAxes.each(e=>{if(e.get("panX")){e._isPanning=!0;let a=e._panStart,o=e._panEnd,n=(o-a)*(i.x-s.x)/t.width();e.get("renderer").get("inversed")&&(n*=-1);let r=a+n,l=o+n;l-r<1+2*e.get("maxDeviation",1)&&(e.set("start",r),e.set("end",l))}}),e&&e.events.enableType("rangechanged")}if(o){let e=this.get("scrollbarY");e&&e.events.disableType("rangechanged"),this.yAxes.each(e=>{if(e.get("panY")){e._isPanning=!0;let a=e._panStart,o=e._panEnd,n=(o-a)*(i.y-s.y)/t.height();e.get("renderer").get("inversed")&&(n*=-1);let r=a-n,l=o-n;l-r<1+2*e.get("maxDeviation",1)&&(e.set("start",r),e.set("end",l))}}),e&&e.events.enableType("rangechanged")}}}_handlePinch(){const e=this.plotContainer;let t=0,i=[],s=[];if(_(e._downPoints,(e,a)=>{i[t]=a;let o=this._movePoints[e];o&&(s[t]=o),t++}),i.length>1&&s.length>1){const t=e.width(),a=e.height();let o=i[0],n=i[1],r=s[0],l=s[1];if(o&&n&&r&&l){if(r=e.toLocal(r),l=e.toLocal(l),o=e.toLocal(o),n=e.toLocal(n),this.get("pinchZoomX")){const e=this._downStartX,i=this._downEndX;if(null!=e&&null!=i){o.x>n.x&&([o,n]=[n,o],[r,l]=[l,r]);let s=e+o.x/t*(i-e),a=e+n.x/t*(i-e),h=e+r.x/t*(i-e),d=e+l.x/t*(i-e),c=Math.max(.001,a-s)/Math.max(.001,d-h),u=e*c+s-h*c,g=i*c+a-d*c;this.xAxes.each(e=>{let t=e.fixPosition(u),i=e.fixPosition(g);e.zoom(t,i,0)})}}if(this.get("pinchZoomY")){const e=this._downStartY,t=this._downEndY;if(null!=e&&null!=t){o.y<n.y&&([o,n]=[n,o],[r,l]=[l,r]);let i=e+(1-o.y/a)*(t-e),s=e+(1-n.y/a)*(t-e),h=e+(1-r.y/a)*(t-e),d=e+(1-l.y/a)*(t-e),c=Math.max(.001,s-i)/Math.max(.001,d-h),u=e*c+i-h*c,g=t*c+s-d*c;this.yAxes.each(e=>{let t=e.fixPosition(u),i=e.fixPosition(g);e.zoom(t,i,0)})}}}}}_handleCursorPosition(){const e=this.get("cursor");if(e){const t=e.getPrivate("point");let i=e.get("snapToSeries");if(e._downPoint&&(i=void 0),i&&t){const s=e.get("snapToSeriesBy"),a=[];b(i,e=>{if(!e.isHidden()&&!e.isHiding())if("x!"!=s&&"y!"!=s){const t=e.startIndex(),i=e.endIndex();for(let s=t;s<i;s++){const t=e.dataItems[s];t&&!t.isHidden()&&a.push(t)}}else{const t=e.get("tooltipDataItem");t&&a.push(t)}});let o,n=1/0;if(b(a,e=>{const i=e.get("point");if(i){let a=0;a="x"==s||"x!"==s?Math.abs(t.x-i.x):"y"==s||"y!"==s?Math.abs(t.y-i.y):Math.hypot(t.x-i.x,t.y-i.y),a<n&&(n=a,o=e)}}),b(i,e=>{const t=e.get("tooltip");t&&t._setDataItem(void 0)}),o){let t=o.component;t.showDataItemTooltip(o),t.setRaw("tooltipDataItem",o);const i=o.get("point");i&&e.handleMove(t.toGlobal({x:i.x-t.x(),y:i.y-t.y()}),!0)}}}}_updateCursor(){let e=this.get("cursor");e&&e.updateCursor()}_addCursor(e){this.plotContainer.children.push(e)}_prepareChildren(){if(super._prepareChildren(),this.series.each(e=>{this._colorize(e)}),(this.isDirty("wheelX")||this.isDirty("wheelY"))&&this._handleSetWheel(),this.isDirty("cursor")){const e=this._prevSettings.cursor,t=this.get("cursor");t!==e&&(this._disposeProperty("cursor"),e&&e.dispose(),t&&(t._setChart(this),this._addCursor(t),this._pushPropertyDisposer("cursor",t.events.on("selectended",()=>{this._handleCursorSelectEnd()}))),this._prevSettings.cursor=t)}if(this.isDirty("scrollbarX")){const e=this._prevSettings.scrollbarX,t=this.get("scrollbarX");t!==e&&(this._disposeProperty("scrollbarX"),e&&e.dispose(),t&&(t.parent||this.topAxesContainer.children.push(t),this._pushPropertyDisposer("scrollbarX",t.events.on("rangechanged",e=>{this._handleScrollbar(this.xAxes,e.start,e.end,e.grip)})),this._pushPropertyDisposer("scrollbarX",t.events.on("released",()=>{this.xAxes.each(e=>{e.get("zoomable")&&this._handleAxisSelection(e)})})),t.setPrivate("positionTextFunction",e=>{const t=this.xAxes.getIndex(0);return t&&t.getTooltipText(e,!1)||""})),this._prevSettings.scrollbarX=t)}if(this.isDirty("scrollbarY")){const e=this._prevSettings.scrollbarY,t=this.get("scrollbarY");t!==e&&(this._disposeProperty("scrollbarY"),e&&e.dispose(),t&&(t.parent||this.rightAxesContainer.children.push(t),this._pushPropertyDisposer("scrollbarY",t.events.on("rangechanged",e=>{this._handleScrollbar(this.yAxes,e.start,e.end,e.grip)})),this._pushPropertyDisposer("scrollbarY",t.events.on("released",()=>{this.yAxes.each(e=>{e.get("zoomable")&&this._handleAxisSelection(e)})})),t.setPrivate("positionTextFunction",e=>{const t=this.yAxes.getIndex(0);return t&&t.getTooltipText(e,!1)||""})),this._prevSettings.scrollbarY=t)}this._handleZoomOut()}_processSeries(e){super._processSeries(e);const t=e.get("xAxis"),i=e.get("yAxis");x(t.series,e),x(i.series,e),e._posXDp=e.addDisposer(t.events.on("positionchanged",()=>{e._fixPosition()})),e._posXDp=e.addDisposer(i.events.on("positionchanged",()=>{e._fixPosition()})),e.get("baseAxis")||(i.isType("CategoryAxis")||i.isType("DateAxis")?e.set("baseAxis",i):e.set("baseAxis",t)),e.get("stacked")&&(e._markDirtyKey("stacked"),b(e.dataItems,e=>{e.set("stackToItemY",void 0),e.set("stackToItemX",void 0)})),e._markDirtyAxes(),i.markDirtyExtremes(),t.markDirtyExtremes(),t._seriesAdded=!0,i._seriesAdded=!0,this._colorize(e)}_colorize(e){const t=this.get("colors");if(t&&null==e.get("fill")){const i=t.next();e._setSoft("stroke",i),e._setSoft("fill",i)}const i=this.get("patterns");if(i&&null==e.get("fillPattern")){const t=i.next();e._setSoft("fillPattern",t)}}_handleCursorSelectEnd(){const e=this.get("cursor"),t=e.get("behavior"),i=e.getPrivate("downPositionX",0),s=e.getPrivate("downPositionY",0),a=Math.min(1,Math.max(0,e.getPrivate("positionX",.5))),o=Math.min(1,Math.max(0,e.getPrivate("positionY",.5)));this.xAxes.each(e=>{if("zoomX"===t||"zoomXY"===t){let t=e.toAxisPosition(i),s=e.toAxisPosition(a);e.zoom(t,s)}e.setPrivate("updateScrollbar",!0)}),this.yAxes.each(e=>{if("zoomY"===t||"zoomXY"===t){let t=e.toAxisPosition(s),i=e.toAxisPosition(o);e.zoom(t,i)}e.setPrivate("updateScrollbar",!0)})}_handleScrollbar(e,t,i,s){e.each(e=>{let a=e.fixPosition(t),o=e.fixPosition(i),n=e.zoom(a,o,void 0,s);const r="updateScrollbar";e.setPrivateRaw(r,!1),n?n.events.on("stopped",()=>{e.setPrivateRaw(r,!0)}):e.setPrivateRaw(r,!0)})}_processAxis(e,t){return e.events.onAll(e=>{if("clear"===e.type)b(e.oldValues,e=>{this._removeAxis(e)});else if("push"===e.type)t.children.push(e.newValue),e.newValue.processChart(this);else if("setIndex"===e.type)t.children.setIndex(e.index,e.newValue),e.newValue.processChart(this);else if("insertIndex"===e.type)t.children.insertIndex(e.index,e.newValue),e.newValue.processChart(this);else if("removeIndex"===e.type)this._removeAxis(e.oldValue);else{if("moveIndex"!==e.type)throw new Error("Unknown IListEvent type");t.children.moveValue(e.value,e.newIndex),e.value.processChart(this)}})}_removeAxis(e){if(!e.isDisposed()){const t=e.parent;t&&t.children.removeValue(e);const i=e.gridContainer,s=i.parent;s&&s.children.removeValue(i);const a=e.topGridContainer,o=a.parent;o&&o.children.removeValue(a)}}_updateChartLayout(){const e=this.leftAxesContainer.width(),t=this.rightAxesContainer.width(),i=this.bottomAxesContainer;i.set("paddingLeft",e),i.set("paddingRight",t);const s=this.topAxesContainer;s.set("paddingLeft",e),s.set("paddingRight",t)}processAxis(e){this.get("cursor")&&(this.addDisposer(e.on("start",()=>{this._updateCursor()})),this.addDisposer(e.on("end",()=>{this._updateCursor()})))}_handleAxisSelection(e,t){let i=e.fixPosition(e.get("start",0)),s=e.fixPosition(e.get("end",1));if(i>s&&([i,s]=[s,i]),-1!=this.xAxes.indexOf(e)){if(t||e.getPrivate("updateScrollbar")){let e=this.get("scrollbarX");!e||e.getPrivate("isBusy")&&!t||(e.setRaw("start",i),e.setRaw("end",s),e.updateGrips())}}else if(-1!=this.yAxes.indexOf(e)&&(t||e.getPrivate("updateScrollbar"))){let e=this.get("scrollbarY");!e||e.getPrivate("isBusy")&&!t||(e.setRaw("start",i),e.setRaw("end",s),e.updateGrips())}this._handleZoomOut()}_handleZoomOut(){let e=this.zoomOutButton;if(e&&e.parent){let t=!1;this.xAxes.each(e=>{0==r(e.get("start",0),5)&&1==r(e.get("end",1),5)||(t=!0)}),this.yAxes.each(e=>{0==r(e.get("start",0),5)&&1==r(e.get("end",1),5)||(t=!0)}),t?e.isHidden()&&e.show():e.hide()}}inPlot(e){const t=this.plotContainer,i=this.getPrivate("otherCharts",this._otherCharts),s=t.toGlobal(e);if(e.x>=-.5&&e.y>=-.5&&e.x<=t.width()+.5&&e.y<=t.height()+.5)return!0;if(i)for(let a=i.length-1;a>=0;a--){const e=i[a];if(e!=this){const t=e.plotContainer,i=this._root.rootPointToDocument(s),a=e._root.documentPointToRoot(i),o=t.toLocal(a);if(o.x>=-.1&&o.y>=-.1&&o.x<=t.width()+.1&&o.y<=t.height()+.1)return!0}}return!1}arrangeTooltips(){const e=this.plotContainer,t=e.width(),i=e.height();let s=this.height();const o=this._root.tooltipContainer.get("layerMargin");o&&o.bottom>s&&(s=o.bottom);let n=e._display.toGlobal({x:0,y:0}),r=e._display.toGlobal({x:t,y:i});const l=[];let h,d,c=0,u=1/0,g=this._movePoint,p=this.get("maxTooltipDistance"),m=this.get("maxTooltipDistanceBy","xy");a(p)&&this.series.each(e=>{if(!e.isHidden()){const t=e.get("tooltip");if(t){let i=t.get("pointTo");if(i){let t=Math.hypot(g.x-i.x,g.y-i.y);"x"==m?t=Math.abs(g.x-i.x):"y"==m&&(t=Math.abs(g.y-i.y)),t<u&&(u=t,h=e,d=i)}}}});const _=[];if(this.series.each(e=>{const t=e.get("tooltip");if(t&&!t.get("forceHidden")){let i=!1,s=t.get("pointTo");if(s){if(p>=0){let s=t.get("pointTo");if(s&&d&&e!=h){let e=Math.hypot(d.x-s.x,d.y-s.y);"x"==m?e=Math.abs(d.x-s.x):"y"==m&&(e=Math.abs(d.y-s.y)),e>p&&(i=!0)}}else-1==p&&e!=h&&(i=!0);this.inPlot(this._tooltipToLocal(s))&&t.dataItem?i||(c+=s.y):i=!0,i||e.isHidden()||e.isHiding()?t.hide(0):(t.show(),l.push(t),_.push(e))}}}),this.setPrivate("tooltipSeries",_),this.get("arrangeTooltips")){let e=0,t=0;const a=this._root.tooltipContainer,o=l.length;if(c/o>i/2+n.y){l.sort((e,t)=>f(t.get("pointTo").y,e.get("pointTo").y));let i=r.y;if(b(l,s=>{let o=s.height();t++,e+=o;let l=s.get("centerY");l instanceof v&&(o*=l.value),o+=s.get("marginBottom",0),s.set("bounds",{left:n.x,top:n.y,right:r.x,bottom:i}),s.setPrivate("customData",{left:n.x,top:n.y,right:r.x,bottom:i}),i=Math.min(i-o,s._fy-o),s.parent==a&&a.children.moveValue(s,0)}),i<0){l.reverse();let e=i;b(l,s=>{t++;let a=s.get("bounds");if(a){let t=a.top-i,o=a.bottom-i;t<e&&(t=e,o=t+s.height()),s.set("bounds",{left:a.left,top:t,right:a.right,bottom:o}),e=a.bottom-i+s.get("marginBottom",0)}})}}else{l.reverse(),l.sort((e,t)=>f(e.get("pointTo").y,t.get("pointTo").y));let i=0;if(b(l,o=>{t++;let l=o.height();e+=l;let h=o.get("centerY");h instanceof v&&(l*=h.value),l+=o.get("marginBottom",0),o.set("bounds",{left:n.x,top:i,right:r.x,bottom:Math.max(n.y+s,i+l)}),o.parent==a&&a.children.moveValue(o,0),i=Math.max(i+l,o._fy+l)}),i>s){l.reverse();let e=s;b(l,a=>{t++;let o=a.get("bounds");if(o){let t=o.top-(s-i),n=o.bottom-(s-i);n>e&&(n=e,t=n-a.height()),a.set("bounds",{left:o.left,top:t,right:o.right,bottom:n}),e=n-a.height()-a.get("marginBottom",0)}})}}0==e&&t>0&&this._disposers.push(this.root.events.once("frameended",()=>{this.arrangeTooltips()}))}}_tooltipToLocal(e){return this.plotContainer.toLocal(e)}zoomOut(){this.xAxes.each(e=>{e.setPrivate("updateScrollbar",!0),e.zoom(0,1)}),this.yAxes.each(e=>{e.setPrivate("updateScrollbar",!0),e.zoom(0,1)})}_dispose(){super._dispose();const e=this.get("cursor");e&&e.dispose()}}Object.defineProperty(ne,"className",{enumerable:!0,configurable:!0,writable:!0,value:"XYChart"}),Object.defineProperty(ne,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:U.classNames.concat([ne.className])});class re extends c{_beforeChanged(){super._beforeChanged(),(this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&(this._clear=!0)}}Object.defineProperty(re,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Grid"}),Object.defineProperty(re,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:c.classNames.concat([re.className])});class le extends d{constructor(){super(...arguments),Object.defineProperty(this,"_alwaysShow",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"lineX",{enumerable:!0,configurable:!0,writable:!0,value:this.children.push(re.new(this._root,{themeTags:["x"]}))}),Object.defineProperty(this,"lineY",{enumerable:!0,configurable:!0,writable:!0,value:this.children.push(re.new(this._root,{themeTags:["y"]}))}),Object.defineProperty(this,"selection",{enumerable:!0,configurable:!0,writable:!0,value:this.children.push(c.new(this._root,{themeTags:["selection","cursor"],layer:30}))}),Object.defineProperty(this,"_movePoint",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_lastPoint",{enumerable:!0,configurable:!0,writable:!0,value:{x:0,y:0}}),Object.defineProperty(this,"_lastPoint2",{enumerable:!0,configurable:!0,writable:!0,value:{x:0,y:0}}),Object.defineProperty(this,"_tooltipX",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_tooltipY",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"chart",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_toX",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_toY",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}_afterNew(){this._settings.themeTags=y(this._settings.themeTags,["xy","cursor"]),super._afterNew(),this.setAll({width:i,height:i,isMeasured:!0,position:"absolute"}),this.states.create("hidden",{visible:!0,opacity:0}),this._drawLines(),this.setPrivateRaw("visible",!1),this._disposers.push(this.setTimeout(()=>{this.setPrivate("visible",!0)},500)),this._disposers.push(this.lineX.events.on("positionchanged",()=>{this._handleXLine()})),this._disposers.push(this.lineY.events.on("positionchanged",()=>{this._handleYLine()})),this._disposers.push(this.lineX.events.on("focus",()=>this._handleLineFocus())),this._disposers.push(this.lineX.events.on("blur",()=>this._handleLineBlur())),this._disposers.push(this.lineY.events.on("focus",()=>this._handleLineFocus())),this._disposers.push(this.lineY.events.on("blur",()=>this._handleLineBlur())),w("keyboardevents")&&this._disposers.push(P(document,"keydown",e=>{this._handleLineMove(D(e),e.ctrlKey)}))}_setUpTouch(){const e=this.chart;e&&(e.plotContainer._display.cancelTouch="none"!=this.get("behavior"))}_handleXLine(){let e=this.lineX.x(),t=!0;(e<0||e>this.width())&&(t=!1),this.lineX.setPrivate("visible",t)}_handleYLine(){let e=this.lineY.y(),t=!0;(e<0||e>this.height())&&(t=!1),this.lineY.setPrivate("visible",t)}_handleLineMove(e,t){let i="";const s=this.chart;let a;if(s&&s.xAxes.length){this._root.focused(this.lineX)?(i="positionX",a=s.xAxes.getIndex(0)):this._root.focused(this.lineY)&&(a=s.yAxes.getIndex(0),i="positionY");let o=1;if(t&&(o=5),a){let t,s=a.get("renderer").get("inversed",!1);"ArrowRight"==e||"ArrowDown"==e?t=1:"ArrowLeft"==e||"ArrowUp"==e?t=-1:"Tab"==e&&(t=0),null!=t&&(s&&(t*=-1),this.set(i,a.nextPosition(t*o)))}}}_handleLineFocus(){this._alwaysShow=this.get("alwaysShow",!1),this.setAll({positionX:this.getPrivate("positionX",0),positionY:this.getPrivate("positionY",0),alwaysShow:!0}),this._handleLineMove("Tab")}_handleLineBlur(){(this.lineX.isFocus()||this.lineY.isFocus())&&this.setAll({positionX:void 0,positionY:void 0,alwaysShow:this._alwaysShow})}_prepareChildren(){if(super._prepareChildren(),this.isDirty("xAxis")){this._tooltipX=!1;const e=this.get("xAxis");if(e){const t=e.get("tooltip");t&&(this._tooltipX=!0,this._disposers.push(t.on("pointTo",()=>{this._updateXLine(t)})))}}if(this.isDirty("yAxis")){this._tooltipY=!1;const e=this.get("yAxis");if(e){const t=e.get("tooltip");t&&(this._tooltipY=!0,this._disposers.push(t.on("pointTo",()=>{this._updateYLine(t)})))}}}_handleSyncWith(){const e=this.chart;if(e){const t=this.get("syncWith"),i=[];t&&b(t,e=>{const t=e.chart;t&&i.push(t)}),e._otherCharts=i}}_updateChildren(){if(super._updateChildren(),this._handleSyncWith(),this.isDirty("positionX")||this.isDirty("positionY")){const e=this.get("positionX"),t=this.get("positionY");null==e&&null==t?this.hide(0):(this._movePoint=this.toGlobal(this._getPoint(this.get("positionX",0),this.get("positionY",0))),this.handleMove())}}_updateXLine(e){let t=r(this._display.toLocal(e.get("pointTo",{x:0,y:0})).x,3);this._toX!=t&&(this.lineX.animate({key:"x",to:t,duration:e.get("animationDuration",0),easing:e.get("animationEasing")}),this._toX=t)}_updateYLine(e){let t=r(this._display.toLocal(e.get("pointTo",{x:0,y:0})).y,3);this._toY!=t&&(this.lineY.animate({key:"y",to:t,duration:e.get("animationDuration",0),easing:e.get("animationEasing")}),this._toY=t)}_drawLines(){this.lineX.set("draw",e=>{e.moveTo(0,0),e.lineTo(0,this.height())}),this.lineY.set("draw",e=>{e.moveTo(0,0),e.lineTo(this.width(),0)})}updateCursor(){this.get("alwaysShow")&&(this._movePoint=this.toGlobal(this._getPoint(this.get("positionX",0),this.get("positionY",0)))),this.handleMove()}_setChart(e){this.chart=e,this._handleSyncWith();const t=e.plotContainer;this.events.on("boundschanged",()=>{this._disposers.push(this.setTimeout(()=>{this.updateCursor()},50))}),w("touchevents")&&(this._disposers.push(t.events.on("click",e=>{A(e.originalEvent)&&this._handleMove(e)})),this._setUpTouch()),this._disposers.push(t.events.on("pointerdown",e=>{this._handleCursorDown(e)})),this._disposers.push(t.events.on("globalpointerup",e=>{this._handleCursorUp(e),e.native||this.isHidden()||this._handleMove(e)})),this._disposers.push(t.events.on("globalpointermove",e=>{(this.get("syncWith")||0!=m(t._downPoints).length||e.native||!this.isHidden())&&(this._handleMove(e),Math.hypot(this._lastPoint2.x-e.point.x,this._lastPoint2.y-e.point.y)>1&&(this._handleLineBlur(),this._lastPoint2=e.point))}));const i=this.parent;i&&i.children.moveValue(this.selection)}_inPlot(e){const t=this.chart;return!!t&&t.inPlot(e)}_handleCursorDown(e){if(2==e.originalEvent.button)return;const t=e.point;let i=this._display.toLocal(t);const s=this.chart;if(this.selection.set("draw",()=>{}),s&&this._inPlot(i)){if(this._downPoint=i,"none"!=this.get("behavior")){this.selection.show();const t="selectstarted";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this,originalEvent:e.originalEvent})}let t=this._getPosition(i).x,s=this._getPosition(i).y;this.setPrivate("downPositionX",t),this.setPrivate("downPositionY",s)}}_handleCursorUp(e){if(this._downPoint){const t=this.get("behavior","none");if("none"!=t){"z"===t.charAt(0)&&this.selection.hide();const i=e.point;let s=this._display.toLocal(i);const a=this._downPoint,o=this.get("moveThreshold",1);if(s&&a){let i=!1;if("zoomX"!==t&&"zoomXY"!==t&&"selectX"!==t&&"selectXY"!==t||Math.abs(s.x-a.x)>o&&(i=!0),"zoomY"!==t&&"zoomXY"!==t&&"selectY"!==t&&"selectXY"!==t||Math.abs(s.y-a.y)>o&&(i=!0),i){const t="selectended";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this,originalEvent:e.originalEvent})}else{const t="selectcancelled";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this,originalEvent:e.originalEvent})}}}}this._downPoint=void 0}_handleMove(e){if(this.getPrivate("visible")){const t=this.chart;if(t&&m(t.plotContainer._downPoints).length>1)return void this.set("forceHidden",!0);this.set("forceHidden",!1);const i=e.point,s=this._lastPoint;if(Math.round(s.x)===Math.round(i.x)&&Math.round(s.y)===Math.round(i.y))return;this._lastPoint=i,this.setPrivate("lastPoint",i),this.handleMove({x:i.x,y:i.y},!1,e.originalEvent)}}_getPosition(e){return{x:e.x/this.width(),y:e.y/this.height()}}handleMove(e,t,i){e||(e=this._movePoint);const s=this.get("alwaysShow");if(!e)return void this.hide(0);this._movePoint=e;let o=this._display.toLocal(e),n=this.chart;if(n&&(this._inPlot(o)||this._downPoint)){if(n._movePoint=e,this.isHidden()){this.show();"z"==this.get("behavior","").charAt(0)&&this.selection.set("draw",()=>{})}let r=o.x,l=o.y,h=this._getPosition(o);this.setPrivate("point",o);let d=this.get("snapToSeries");this._downPoint&&(d=void 0);let c=this.get("positionX"),u=h.x;a(c)&&(u=c);let g=this.get("positionY"),p=h.y;a(g)&&(p=g),this.setPrivate("positionX",u),this.setPrivate("positionY",p);const m=this._getPoint(u,p);if(r=m.x,l=m.y,n.xAxes.each(e=>{e._handleCursorPosition(u,d),s&&e.handleCursorShow()}),n.yAxes.each(e=>{e._handleCursorPosition(p,d),s&&e.handleCursorShow()}),!t){n._handleCursorPosition();const t="cursormoved";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this,point:e,originalEvent:i})}this._updateLines(r,l),n.arrangeTooltips()}else if(!this._downPoint&&!s){this.hide(0);const e="cursorhidden";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this})}this._downPoint&&"none"!=this.get("behavior")&&this._updateSelection(o)}_getPoint(e,t){return{x:this.width()*e,y:this.height()*t}}_updateLines(e,t){this._tooltipX||this.lineX.set("x",e),this._tooltipY||this.lineY.set("y",t),this._drawLines()}_updateSelection(e){const t=this.selection,i=this.get("behavior"),s=this.width(),a=this.height();e.x<0&&(e.x=0),e.x>s&&(e.x=s),e.y<0&&(e.y=0),e.y>a&&(e.y=a),t.set("draw",t=>{const o=this._downPoint;o&&("zoomXY"===i||"selectXY"===i?(t.moveTo(o.x,o.y),t.lineTo(o.x,e.y),t.lineTo(e.x,e.y),t.lineTo(e.x,o.y),t.lineTo(o.x,o.y)):"zoomX"===i||"selectX"===i?(t.moveTo(o.x,0),t.lineTo(o.x,a),t.lineTo(e.x,a),t.lineTo(e.x,0),t.lineTo(o.x,0)):"zoomY"!==i&&"selectY"!==i||(t.moveTo(0,o.y),t.lineTo(s,o.y),t.lineTo(s,e.y),t.lineTo(0,e.y),t.lineTo(0,o.y)))})}_onHide(){if(this.isHidden()){let e=this.chart;e&&(e.xAxes.each(e=>{e.handleCursorHide()}),e.yAxes.each(e=>{e.handleCursorHide()}),e.series.each(e=>{e.handleCursorHide()}))}super._onHide()}_onShow(){if(!this.isHidden()){let e=this.chart;e&&(e.xAxes.each(e=>{e.handleCursorShow()}),e.yAxes.each(e=>{e.handleCursorShow()}))}super._onShow()}_dispose(){super._dispose(),this.selection.dispose()}}function he(e,t){return null==e?t:null==t?e:t<e?t:e}function de(e,t){return null==e?t:null==t?e:t>e?t:e}Object.defineProperty(le,"className",{enumerable:!0,configurable:!0,writable:!0,value:"XYCursor"}),Object.defineProperty(le,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:d.classNames.concat([le.className])});class ce extends W{constructor(){super(...arguments),Object.defineProperty(this,"_xField",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_yField",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_xOpenField",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_yOpenField",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_xLowField",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_xHighField",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_yLowField",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_yHighField",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_axesDirty",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_stackDirty",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_selectionProcessed",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_dataSets",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_mainContainerMask",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_x",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_y",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_bullets",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"mainContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.children.push(d.new(this._root,{}))}),Object.defineProperty(this,"axisRanges",{enumerable:!0,configurable:!0,writable:!0,value:new k}),Object.defineProperty(this,"_skipped",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_couldStackTo",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_reallyStackedTo",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_stackedSeries",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_aLocationX0",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_aLocationX1",{enumerable:!0,configurable:!0,writable:!0,value:1}),Object.defineProperty(this,"_aLocationY0",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_aLocationY1",{enumerable:!0,configurable:!0,writable:!0,value:1}),Object.defineProperty(this,"_showBullets",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"valueXFields",{enumerable:!0,configurable:!0,writable:!0,value:["valueX","openValueX","lowValueX","highValueX"]}),Object.defineProperty(this,"valueYFields",{enumerable:!0,configurable:!0,writable:!0,value:["valueY","openValueY","lowValueY","highValueY"]}),Object.defineProperty(this,"_valueXFields",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_valueYFields",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_valueXShowFields",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_valueYShowFields",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"__valueXShowFields",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"__valueYShowFields",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_emptyDataItem",{enumerable:!0,configurable:!0,writable:!0,value:new H(this,void 0,{})}),Object.defineProperty(this,"_dataSetId",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_tooltipFieldX",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_tooltipFieldY",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_posXDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_posYDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}_afterNew(){this.fields.push("categoryX","categoryY","openCategoryX","openCategoryY"),this.valueFields.push("valueX","valueY","openValueX","openValueY","lowValueX","lowValueY","highValueX","highValueY"),this._setRawDefault("vcx",1),this._setRawDefault("vcy",1),this._setRawDefault("valueXShow","valueXWorking"),this._setRawDefault("valueYShow","valueYWorking"),this._setRawDefault("openValueXShow","openValueXWorking"),this._setRawDefault("openValueYShow","openValueYWorking"),this._setRawDefault("lowValueXShow","lowValueXWorking"),this._setRawDefault("lowValueYShow","lowValueYWorking"),this._setRawDefault("highValueXShow","highValueXWorking"),this._setRawDefault("highValueYShow","highValueYWorking"),this._setRawDefault("lowValueXGrouped","low"),this._setRawDefault("lowValueYGrouped","low"),this._setRawDefault("highValueXGrouped","high"),this._setRawDefault("highValueYGrouped","high"),super._afterNew(),this.set("maskContent",!0),this._disposers.push(this.axisRanges.events.onAll(e=>{if("clear"===e.type)b(e.oldValues,e=>{this._removeAxisRange(e)});else if("push"===e.type)this._processAxisRange(e.newValue);else if("setIndex"===e.type)this._processAxisRange(e.newValue);else if("insertIndex"===e.type)this._processAxisRange(e.newValue);else if("removeIndex"===e.type)this._removeAxisRange(e.oldValue);else{if("moveIndex"!==e.type)throw new Error("Unknown IStreamEvent type");this._processAxisRange(e.value)}})),this.states.create("hidden",{opacity:1,visible:!1}),this.onPrivate("startIndex",()=>{this.root.events.once("frameended",()=>{this.updateLegendValue()})}),this.onPrivate("endIndex",()=>{this.root.events.once("frameended",()=>{this.updateLegendValue()})}),this._makeFieldNames()}_processAxisRange(e){const t=d.new(this._root,{});e.container=t,this.children.push(t),e.series=this;const i=e.axisDataItem;i.setRaw("isRange",!0);const s=i.component;if(s){s._processAxisRange(i,["range","series"]);const e=i.get("bullet");if(e){const t=e.get("sprite");t&&t.setPrivate("visible",!1)}const a=i.get("axisFill");a&&t.set("mask",a),s._seriesAxisRanges.push(i)}}_onDataClear(){super._onDataClear(),_(this._dataSets,(e,t)=>{b(t,e=>{e.dispose()}),t.length=0})}_removeAxisRange(e){const t=e.axisDataItem,i=t.component;t.dispose(),g(i._seriesAxisRanges,t);const s=e.container;s&&s.dispose()}_updateFields(){super._updateFields(),this._valueXFields=[],this._valueYFields=[],this._valueXShowFields=[],this._valueYShowFields=[],this.__valueXShowFields=[],this.__valueYShowFields=[],this.valueXFields&&b(this.valueXFields,e=>{if(this.get(e+"Field")){this._valueXFields.push(e);let t=this.get(e+"Show");this.__valueXShowFields.push(t),-1!=t.indexOf("Working")?this._valueXShowFields.push(t.split("Working")[0]):this._valueXShowFields.push(t)}}),this.valueYFields&&b(this.valueYFields,e=>{if(this.get(e+"Field")){this._valueYFields.push(e);let t=this.get(e+"Show");this.__valueYShowFields.push(t),-1!=t.indexOf("Working")?this._valueYShowFields.push(t.split("Working")[0]):this._valueYShowFields.push(t)}})}_dispose(){super._dispose(),this._bullets={};const e=this.chart;e&&e.series.removeValue(this),T(this.get("xAxis").series,this),T(this.get("yAxis").series,this)}_min(e,t){let i=he(this.getPrivate(e),t);this.setPrivate(e,i)}_max(e,t){let i=de(this.getPrivate(e),t);this.setPrivate(e,i)}_shouldMakeBullet(e){const t=this.get("xAxis"),i=this.get("yAxis"),s=this.get("baseAxis");if(!t.inited||!i.inited)return!1;const a=this.get("minBulletDistance",0);if(a>0){let e=this.startIndex(),o=this.endIndex()-e;if(t==s){if(t.get("renderer").axisLength()/o<a/5)return!1}else if(i==s&&i.get("renderer").axisLength()/o<a/5)return!1}return null!=e.get(this._xField)&&null!=e.get(this._yField)}_makeFieldNames(){const e=this.get("xAxis"),t=this.get("yAxis"),i=e.getPrivate("name"),s=M(i),a=t.getPrivate("name"),o=M(a),n=e.get("renderer").getPrivate("letter"),r=t.get("renderer").getPrivate("letter"),l="open",h="low",d="high",c="Show";"ValueAxis"===e.className?(this._xField=this.get(i+n+c),this._xOpenField=this.get(l+s+n+c),this._xLowField=this.get(h+s+n+c),this._xHighField=this.get(d+s+n+c)):(this._xField=i+n,this._xOpenField=l+s+n,this._xLowField=h+s+n,this._xHighField=d+s+n),"ValueAxis"===t.className?(this._yField=this.get(a+r+c),this._yOpenField=this.get(l+o+r+c),this._yLowField=this.get(h+o+r+c),this._yHighField=this.get(d+o+r+c)):(this._yField=a+r,this._yOpenField=l+o+r,this._yLowField=h+o+r,this._yHighField=d+o+r)}_fixVC(){const e=this.get("xAxis"),t=this.get("yAxis"),i=this.get("baseAxis"),s=this.states.lookup("hidden"),a=this.get("sequencedInterpolation");if(s){let o=0;a&&(o=.999999999999),e===i?s.set("vcy",o):(t===i||s.set("vcy",o),s.set("vcx",o))}}_handleMaskBullets(){this.isDirty("maskBullets")&&this.bulletsContainer.set("maskContent",this.get("maskBullets"))}_fixPosition(){const e=this.get("xAxis"),t=this.get("yAxis");this.set("x",e.x()-S(e.get("centerX",0),e.width())-e.parent.get("paddingLeft",0)),this.set("y",t.y()-S(t.get("centerY",0),t.height())-t.parent.get("paddingTop",0)),this.bulletsContainer.set("y",this.y()),this.bulletsContainer.set("x",this.x())}_prepareChildren(){super._prepareChildren(),this._bullets={},(this.isDirty("valueYShow")||this.isDirty("valueXShow")||this.isDirty("openValueYShow")||this.isDirty("openValueXShow")||this.isDirty("lowValueYShow")||this.isDirty("lowValueXShow")||this.isDirty("highValueYShow")||this.isDirty("highValueXShow"))&&(this._updateFields(),this._makeFieldNames(),this._valuesDirty=!0),(this.isDirty("xAxis")||this.isDirty("yAxis"))&&(this._valuesDirty=!0),this.set("width",this.get("xAxis").width()),this.set("height",this.get("yAxis").height()),this._handleMaskBullets();const e=this.get("xAxis"),t=this.get("yAxis"),i=this.get("baseAxis");let s;switch(this.get("tooltipPositionX")){case"open":s=this._xOpenField;break;case"low":s=this._xLowField;break;case"high":s=this._xHighField;break;default:s=this._xField}this._tooltipFieldX=s;let a;switch(this.get("tooltipPositionY")){case"open":a=this._yOpenField;break;case"low":a=this._yLowField;break;case"high":a=this._yHighField;break;default:a=this._yField}this._tooltipFieldY=a,this.isDirty("baseAxis")&&this._fixVC(),this._fixPosition();const o=this.get("stacked");if(this.isDirty("stacked")&&(o?this._valuesDirty&&!this._dataProcessed||this._stack():this._unstack()),this._valuesDirty&&!this._dataProcessed&&(this._dataProcessed=!0,o&&this._stack(),b(this.dataItems,i=>{b(this._valueXShowFields,e=>{let t=i.get(e);null!=t&&(o&&(t+=this.getStackedXValue(i,e)),this._min("minX",t),this._max("maxX",t))}),b(this._valueYShowFields,e=>{let t=i.get(e);null!=t&&(o&&(t+=this.getStackedYValue(i,e)),this._min("minY",t),this._max("maxY",t))}),e.processSeriesDataItem(i,this._valueXFields),t.processSeriesDataItem(i,this._valueYFields)}),e._seriesValuesDirty=!0,t._seriesValuesDirty=!0,this.get("ignoreMinMax")||((this.isPrivateDirty("minX")||this.isPrivateDirty("maxX"))&&e.markDirtyExtremes(),(this.isPrivateDirty("minY")||this.isPrivateDirty("maxY"))&&t.markDirtyExtremes()),this._markStakedDirtyStack(),this.get("tooltipDataItem")||this.updateLegendValue(void 0)),(this.isDirty("vcx")||this.isDirty("vcy"))&&this._markStakedDirtyStack(),this._dataGrouped||(e._groupSeriesData(this),t._groupSeriesData(this),this._dataGrouped=!0),this._valuesDirty||this.isPrivateDirty("startIndex")||this.isPrivateDirty("adjustedStartIndex")||this.isPrivateDirty("endIndex")||this.isDirty("vcx")||this.isDirty("vcy")||this._stackDirty||this._sizeDirty){let s=this.startIndex(),a=this.endIndex(),o=this.get("minBulletDistance",0);if(o>0&&i&&(i.get("renderer").axisLength()/(a-s)>o?this._showBullets=!0:this._showBullets=!1),(this._psi!=s||this._pei!=a||this.isDirty("vcx")||this.isDirty("vcy")||this.isPrivateDirty("adjustedStartIndex")||this._stackDirty||this._valuesDirty)&&!this._selectionProcessed){this._selectionProcessed=!0;const o=this.get("vcx",1),n=this.get("vcy",1),r=this.get("stacked",!1),l=this.getPrivate("outOfSelection");if(i===e||!i)if(t._calculateTotals(),this.setPrivateRaw("selectionMinY",void 0),this.setPrivateRaw("selectionMaxY",void 0),l)t.markDirtySelectionExtremes();else for(let e=s;e<a;e++)this.processYSelectionDataItem(this.dataItems[e],n,r);if(i===t||!i)if(e._calculateTotals(),this.setPrivateRaw("selectionMinX",void 0),this.setPrivateRaw("selectionMaxX",void 0),l)t.markDirtySelectionExtremes();else for(let e=s;e<a;e++)this.processXSelectionDataItem(this.dataItems[e],o,r);if((i===e||!i)&&("valueYWorking"!==this.get("valueYShow")||this.get("useSelectionExtremes"))){const e=this.getPrivate("selectionMinY");null!=e&&(this.setPrivateRaw("minY",e),t.markDirtyExtremes());const i=this.getPrivate("selectionMaxY");null!=i&&(this.setPrivateRaw("maxY",i),t.markDirtyExtremes())}if((i===t||!i)&&("valueXWorking"!==this.get("valueXShow")||this.get("useSelectionExtremes"))){const i=this.getPrivate("selectionMinX");null!=i&&(this.setPrivateRaw("minX",i),t.markDirtyExtremes());const s=this.getPrivate("selectionMaxX");null!=s&&(this.setPrivateRaw("maxX",s),e.markDirtyExtremes())}(this.isPrivateDirty("selectionMinX")||this.isPrivateDirty("selectionMaxX"))&&e.markDirtySelectionExtremes(),(this.isPrivateDirty("selectionMinY")||this.isPrivateDirty("selectionMaxY"))&&t.markDirtySelectionExtremes()}}}_makeRangeMask(){if(this.axisRanges.length>0){let e=this._mainContainerMask;null==e&&(e=this.children.push(c.new(this._root,{})),this._mainContainerMask=e,e.set("draw",(t,i)=>{const s=this.parent;if(s){const e=this._root.container.width(),a=this._root.container.height();t.moveTo(-e,-a),t.lineTo(-e,2*a),t.lineTo(2*e,2*a),t.lineTo(2*e,-a),t.lineTo(-e,-a),this.axisRanges.each(e=>{const a=e.axisDataItem.get("axisFill");if(s&&a){let e=a.get("draw");e&&e(t,i)}})}this.mainContainer._display.mask=e._display})),e.markDirty(),e._markDirtyKey("fill")}else this.mainContainer._display.mask=null}_updateChildren(){super._updateChildren(),this._x=this.x(),this._y=this.y(),this._makeRangeMask()}_stack(){const e=this.chart;if(e){const t=e.series.indexOf(this);if(this._couldStackTo=[],t>0){let i;for(let s=t-1;s>=0&&(i=e.series.getIndex(s),i.get("xAxis")!==this.get("xAxis")||i.get("yAxis")!==this.get("yAxis")||i.className!==this.className||(this._couldStackTo.push(i),i.get("stacked")));s--);}this._stackDataItems()}}_unstack(){_(this._reallyStackedTo,(e,t)=>{delete t._stackedSeries[this.uid]}),this._reallyStackedTo={},b(this.dataItems,e=>{e.setRaw("stackToItemY",void 0),e.setRaw("stackToItemX",void 0)})}_handleRemoved(){const e=this.get("xAxis");e&&e._handleSeriesRemoved();const t=this.get("yAxis");t&&t._handleSeriesRemoved()}_stackDataItems(){const e=this.get("baseAxis"),t=this.get("xAxis"),i=this.get("yAxis");let s,o;e===t?(s="valueY",o="stackToItemY"):e===i&&(s="valueX",o="stackToItemX");let n=this._couldStackTo.length,r=0;const l=this.get("stackToNegative");this._reallyStackedTo={},b(this.dataItems,e=>{for(let t=0;t<n;t++){let i=this._couldStackTo[t],h=i.dataItems[r],d=e.get(s);if(h){let r=h.get(s);if(l){if(!a(d))break;if(a(r)){if(t==n-1&&e.setRaw(o,void 0),d>=0&&r>=0){e.setRaw(o,h),this._reallyStackedTo[i.uid]=i,i._stackedSeries[this.uid]=this;break}if(d<0&&r<0){e.setRaw(o,h),this._reallyStackedTo[i.uid]=i,i._stackedSeries[this.uid]=this;break}}}else if(a(d)&&a(r)){e.setRaw(o,h),this._reallyStackedTo[i.uid]=i,i._stackedSeries[this.uid]=this;break}}}r++})}processXSelectionDataItem(e,t,i){b(this.__valueXShowFields,s=>{let a=e.get(s);null!=a&&(i&&(a+=this.getStackedXValueWorking(e,s)),this._min("selectionMinX",a),this._max("selectionMaxX",a*t))})}processYSelectionDataItem(e,t,i){b(this.__valueYShowFields,s=>{let a=e.get(s);null!=a&&(i&&(a+=this.getStackedYValueWorking(e,s)),this._min("selectionMinY",a),this._max("selectionMaxY",a*t))})}getStackedYValueWorking(e,t){const i=e.get("stackToItemY");if(i){const e=i.component;return i.get(t,0)*e.get("vcy",1)+this.getStackedYValueWorking(i,t)}return 0}getStackedXValueWorking(e,t){const i=e.get("stackToItemX");if(i){const e=i.component;return i.get(t,0)*e.get("vcx",1)+this.getStackedXValueWorking(i,t)}return 0}getStackedYValue(e,t){const i=e.get("stackToItemY");return i?i.get(t,0)+this.getStackedYValue(i,t):0}getStackedXValue(e,t){const i=e.get("stackToItemX");return i?i.get(t,0)+this.getStackedXValue(i,t):0}createLegendMarker(e){this.updateLegendMarker()}_markDirtyAxes(){this._axesDirty=!0,this.markDirty()}_markDataSetDirty(){this._afterDataChange(),this._valuesDirty=!0,this._dataProcessed=!1,this._aggregatesCalculated=!1,this.markDirty()}_clearDirty(){super._clearDirty(),this._axesDirty=!1,this._selectionProcessed=!1,this._stackDirty=!1,this._dataProcessed=!1}_positionBullet(e){let t=e.get("sprite");if(t){let i=t.dataItem,s=e.get("locationX",i.get("locationX",.5)),a=e.get("locationY",i.get("locationY",.5)),o=this.get("xAxis"),n=this.get("yAxis"),r=this.get("exactLocationX",!1),l=this.get("exactLocationY",!1),h=o.getDataItemPositionX(i,this._xField,s,this.get("vcx",1),r),d=n.getDataItemPositionY(i,this._yField,a,this.get("vcy",1),l),c=this.getPoint(h,d),u=i.get("left",c.x),g=i.get("right",c.x),p=i.get("top",c.y),m=i.get("bottom",c.y),_=0,b=0,x=g-u,f=m-p;if(this._shouldShowBullet(h,d)){t.setPrivate("visible",!e.getPrivate("hidden"));let o=e.get("field");const n=this.get("baseAxis"),g=this.get("xAxis"),p=this.get("yAxis");if(null!=o){let e;n==g?("value"==o?e=this._yField:"open"==o?e=this._yOpenField:"high"==o?e=this._yHighField:"low"==o&&(e=this._yLowField),e&&(d=p.getDataItemPositionY(i,e,0,this.get("vcy",1),l),c=p.get("renderer").positionToPoint(d),b=c.y,_=u+x*s)):("value"==o?e=this._xField:"open"==o?e=this._xOpenField:"high"==o?e=this._xHighField:"low"==o&&(e=this._xLowField),e&&(h=g.getDataItemPositionX(i,e,0,this.get("vcx",1),r),c=g.get("renderer").positionToPoint(h),_=c.x,b=m-f*a))}else _=u+x*s,b=m-f*a;const v=e.get("stacked");if(v){const e=this.chart;if(n==g){let i=this._bullets[h+"_"+d];if(i){let s=i.bounds(),a=t.localBounds(),o=b;b=s.top,"down"==v?b=s.bottom-a.top:"auto"==v?e&&(o<e.plotContainer.height()/2?b=s.bottom-a.top:b+=a.bottom):b+=a.bottom}this._bullets[h+"_"+d]=t}else{let i=this._bullets[h+"_"+d];if(i){let s=i.bounds(),a=t.localBounds(),o=_;_=s.right,"down"==v?_=s.left-a.right:"auto"==v?e&&(o<e.plotContainer.width()/2?_=s.left-a.right:_-=a.left):_-=a.left}this._bullets[h+"_"+d]=t}}t.isType("Label")&&(t.setPrivate("maxWidth",Math.abs(x)),t.setPrivate("maxHeight",Math.abs(f))),t.setAll({x:_,y:b})}else t.setPrivate("visible",!1)}}_shouldShowBullet(e,t){return this._showBullets}setDataSet(e){if(this._dataSets[e]){this._handleDataSetChange(),this._dataItems=this._dataSets[e],this._markDataSetDirty(),this._dataSetId=e;const t="datasetchanged";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this,id:e})}}resetGrouping(){_(this._dataSets,(e,t)=>{t!=this._mainDataItems&&b(t,e=>{e.dispose()})}),this._dataSets={},this._dataItems=this.mainDataItems}_handleDataSetChange(){b(this._dataItems,e=>{let t=e.bullets;t&&b(t,e=>{if(e){let t=e.get("sprite");t&&t.setPrivate("visible",!1)}})}),this._selectionProcessed=!1}show(e){const t=Object.create(null,{show:{get:()=>super.show}});return Q(this,void 0,void 0,function*(){this._fixVC();let i=[];i.push(t.show.call(this,e).then(()=>{this._isShowing=!1;let e=this.get("xAxis"),t=this.get("yAxis"),i=this.get("baseAxis");t!==i&&t.markDirtySelectionExtremes(),e!==i&&e.markDirtySelectionExtremes()})),i.push(this.bulletsContainer.show(e)),i.push(this._sequencedShowHide(!0,e)),yield Promise.all(i)})}hide(e){const t=Object.create(null,{hide:{get:()=>super.hide}});return Q(this,void 0,void 0,function*(){this._fixVC();let i=[];i.push(t.hide.call(this,e).then(()=>{this._isHiding=!1})),i.push(this.bulletsContainer.hide(e)),i.push(this._sequencedShowHide(!1,e)),yield Promise.all(i)})}showDataItem(e,t){const i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return Q(this,void 0,void 0,function*(){const s=[i.showDataItem.call(this,e,t)];a(t)||(t=this.get("stateAnimationDuration",0));const o=this.get("stateAnimationEasing");b(this._valueFields,i=>{s.push(e.animate({key:i+"Working",to:e.get(i),duration:t,easing:o}).waitForStop())}),yield Promise.all(s)})}hideDataItem(e,t){const i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return Q(this,void 0,void 0,function*(){const s=[i.hideDataItem.call(this,e,t)],o=this.states.create("hidden",{});a(t)||(t=o.get("stateAnimationDuration",this.get("stateAnimationDuration",0)));const n=o.get("stateAnimationEasing",this.get("stateAnimationEasing")),r=this.get("xAxis"),l=this.get("yAxis"),h=this.get("baseAxis"),d=this.get("stacked");if(h!==r&&h||b(this._valueYFields,i=>{let o=l.getPrivate("min"),r=l.baseValue();a(o)&&o>r&&(r=o),d&&(r=0),null!=e.get(i)&&s.push(e.animate({key:i+"Working",to:r,duration:t,easing:n}).waitForStop())}),h===l||!h){let i=r.getPrivate("min"),o=r.baseValue();a(i)&&i>o&&(o=i),d&&(o=0),b(this._valueXFields,i=>{null!=e.get(i)&&s.push(e.animate({key:i+"Working",to:o,duration:t,easing:n}).waitForStop())})}yield Promise.all(s)})}_markDirtyStack(){this._stackDirty=!0,this.markDirty(),this._markStakedDirtyStack()}_markStakedDirtyStack(){const e=this._stackedSeries;e&&_(e,(e,t)=>{t._stackDirty||t._markDirtyStack()})}_afterChanged(){super._afterChanged(),this._skipped&&(this._markDirtyAxes(),this._skipped=!1)}showDataItemTooltip(e){this.getPrivate("doNotUpdateLegend")||(this.updateLegendMarker(e),this.updateLegendValue(e));const t=this.get("tooltip"),i=this.get("exactLocationX",!1),s=this.get("exactLocationY",!1);if(t)if(!this.isHidden()&&this.get("visible")){if(t._setDataItem(e),e){let a=this.get("locationX",0),o=this.get("locationY",1),n=e.get("locationX",a),r=e.get("locationY",o);const l=this.get("xAxis"),h=this.get("yAxis"),d=this.get("vcx",1),c=this.get("vcy",1),u=l.getDataItemPositionX(e,this._tooltipFieldX,this._aLocationX0+(this._aLocationX1-this._aLocationX0)*n,d,i),g=h.getDataItemPositionY(e,this._tooltipFieldY,this._aLocationY0+(this._aLocationY1-this._aLocationY0)*r,c,s),p=this.getPoint(u,g);let m=!0;if(b(this._valueFields,t=>{null==e.get(t)&&(m=!1)}),m){const i=this.chart;i&&i.inPlot(p)?(t.label.text.markDirtyText(),t.set("tooltipTarget",this._getTooltipTarget(e)),t.set("pointTo",this._display.toGlobal({x:p.x,y:p.y}))):t._setDataItem(void 0)}else t._setDataItem(void 0)}}else this.hideTooltip()}hideTooltip(){const e=this.get("tooltip");return e&&e.set("tooltipTarget",this),super.hideTooltip()}_getTooltipTarget(e){if("bullet"==this.get("seriesTooltipTarget")){const t=e.bullets;if(t&&t.length>0){const e=t[0].get("sprite");if(e)return e}}return this}updateLegendValue(e){const t=this.get("legendDataItem");if(t){const i=t.get("label");if(i){let t="";e?(i._setDataItem(e),t=this.get("legendLabelText",i.get("text",this.get("name","")))):(i._setDataItem(this._emptyDataItem),t=this.get("legendRangeLabelText",this.get("legendLabelText",i.get("text",this.get("name",""))))),i.set("text",t)}const s=t.get("valueLabel");if(s){let t="";e?(s._setDataItem(e),t=this.get("legendValueText",s.get("text",""))):(s._setDataItem(this._emptyDataItem),t=this.get("legendRangeValueText",s.get("text",""))),s.set("text",t)}}}_getItemReaderLabel(){let e="X: {"+this._xField;return this.get("xAxis").isType("DateAxis")&&(e+=".formatDate()"),e+="}; Y: {"+this._yField,this.get("yAxis").isType("DateAxis")&&(e+=".formatDate()"),e+="}",e}getPoint(e,t){let i=this.get("xAxis").get("renderer").positionToCoordinate(e),s=this.get("yAxis").get("renderer").positionToCoordinate(t),a=999999999;return s<-a&&(s=-a),s>a&&(s=a),i<-a&&(i=-a),i>a&&(i=a),{x:i,y:s}}_shouldInclude(e){return!0}handleCursorHide(){this.hideTooltip(),this.updateLegendValue(void 0),this.updateLegendMarker(void 0)}_afterDataChange(){super._afterDataChange(),this.get("xAxis")._markDirtyKey("start"),this.get("yAxis")._markDirtyKey("start"),this.resetExtremes()}resetExtremes(){this.setPrivate("selectionMinX",void 0),this.setPrivate("selectionMaxX",void 0),this.setPrivate("selectionMinY",void 0),this.setPrivate("selectionMaxY",void 0),this.setPrivate("minX",void 0),this.setPrivate("minY",void 0),this.setPrivate("maxX",void 0),this.setPrivate("maxY",void 0)}createAxisRange(e){return this.axisRanges.push({axisDataItem:e})}get mainDataItems(){return this._mainDataItems}_adjustStartIndex(e){const t=this.get("xAxis");if(this.get("baseAxis")==t&&t.isType("DateAxis")){const i=t.baseDuration(),s=t.getPrivate("selectionMin",t.getPrivate("min",0)),a=i*this.get("locationX",.5);let o=-1/0;for(;o<s;){const t=this.dataItems[e];if(!t)break;{const i=t.open;if(o=i?i.valueX:t.get("valueX",0),o+=a,!(o<s))break;e++}}}return e}}Object.defineProperty(ce,"className",{enumerable:!0,configurable:!0,writable:!0,value:"XYSeries"}),Object.defineProperty(ce,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:W.classNames.concat([ce.className])});class ue extends Z{constructor(){super(...arguments),Object.defineProperty(this,"_series",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_isPanning",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"minorDataItems",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"labelsContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.children.push(d.new(this._root,{}))}),Object.defineProperty(this,"gridContainer",{enumerable:!0,configurable:!0,writable:!0,value:d.new(this._root,{width:i,height:i})}),Object.defineProperty(this,"topGridContainer",{enumerable:!0,configurable:!0,writable:!0,value:d.new(this._root,{width:i,height:i})}),Object.defineProperty(this,"bulletsContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.children.push(d.new(this._root,{isMeasured:!1,width:i,height:i,position:"absolute"}))}),Object.defineProperty(this,"chart",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_rangesDirty",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_panStart",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_panEnd",{enumerable:!0,configurable:!0,writable:!0,value:1}),Object.defineProperty(this,"_sAnimation",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_eAnimation",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_skipSync",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"axisRanges",{enumerable:!0,configurable:!0,writable:!0,value:new k}),Object.defineProperty(this,"_seriesAxisRanges",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"ghostLabel",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_cursorPosition",{enumerable:!0,configurable:!0,writable:!0,value:-1}),Object.defineProperty(this,"_snapToSeries",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_seriesValuesDirty",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_seriesAdded",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"axisHeader",{enumerable:!0,configurable:!0,writable:!0,value:this.children.push(d.new(this._root,{themeTags:["axis","header"],position:"absolute",background:u.new(this._root,{themeTags:["header","background"],fill:this._root.interfaceColors.get("background")})}))}),Object.defineProperty(this,"_bullets",{enumerable:!0,configurable:!0,writable:!0,value:{}})}_dispose(){this.gridContainer.dispose(),this.topGridContainer.dispose(),this.bulletsContainer.dispose(),this.labelsContainer.dispose(),this.axisHeader.dispose(),super._dispose()}_afterNew(){super._afterNew(),this.setPrivate("updateScrollbar",!0),this._disposers.push(this.axisRanges.events.onAll(e=>{if("clear"===e.type)b(e.oldValues,e=>{e.dispose()});else if("push"===e.type)this._processAxisRange(e.newValue,["range"]);else if("setIndex"===e.type)this._processAxisRange(e.newValue,["range"]);else if("insertIndex"===e.type)this._processAxisRange(e.newValue,["range"]);else if("removeIndex"===e.type)this.disposeDataItem(e.oldValue);else{if("moveIndex"!==e.type)throw new Error("Unknown IStreamEvent type");this._processAxisRange(e.value,["range"])}}));const e=this.get("renderer");e&&(e.axis=this,e.processAxis()),this.children.push(e),this.ghostLabel=e.makeLabel(new H(this,void 0,{}),[]),this.ghostLabel.adapters.disable("text"),this.ghostLabel.setAll({opacity:0,tooltipText:void 0,tooltipHTML:void 0,interactive:!1}),this.ghostLabel.events.disable()}_updateFinals(e,t){}zoom(e,t,i,s){if(this.get("zoomable",!0))if(this._updateFinals(e,t),this.get("start")!==e||this.get("end")!=t){let o=this._sAnimation,n=this._eAnimation;e>t&&([e,t]=[t,e]);let r=this.get("maxDeviation",.5)*Math.min(1,t-e);e<-r&&(e=-r),t>1+r&&(t=1+r),a(i)||(i=this.get("interpolationDuration",0)),s||(s="end");let l=this.getPrivate("maxZoomFactor",this.get("maxZoomFactor",100)),h=l;1===t&&0!==e&&(s=e<this.get("start",0)?"start":"end"),0===e&&1!==t&&(s=t>this.get("end",1)?"end":"start");let d=this.get("minZoomCount",0),c=this.get("maxZoomCount",1/0);a(d)&&(l=h/d);let u=1;if(a(c)&&(u=h/c),"start"===s?(c>0&&1/(t-e)<u&&(t=e+1/u),1/(t-e)>l&&(t=e+1/l),t>1&&t-e<1/l&&(e=t-1/l)):(c>0&&1/(t-e)<u&&(e=t-1/u),1/(t-e)>l&&(e=t-1/l),e<0&&t-e<1/l&&(t=e+1/l)),1/(t-e)>l&&(t=e+1/l),1/(t-e)>l&&(e=t-1/l),null!=c&&null!=d&&e==this.get("start")&&t==this.get("end")){const e=this.chart;e&&e._handleAxisSelection(this,!0)}if((o&&o.playing&&o.to==e||this.get("start")==e)&&(n&&n.playing&&n.to==t||this.get("end")==t))return;if(i>0){let s,a,o=this.get("interpolationEasing");if(this.get("start")!=e&&(s=this.animate({key:"start",to:e,duration:i,easing:o})),this.get("end")!=t&&(a=this.animate({key:"end",to:t,duration:i,easing:o})),this._sAnimation=s,this._eAnimation=a,s)return s;if(a)return a}else this.set("start",e),this.set("end",t)}else this._sAnimation&&this._sAnimation.stop(),this._eAnimation&&this._eAnimation.stop()}get series(){return this._series}_processAxisRange(e,t){e.setRaw("isRange",!0),this._createAssets(e,t),this._rangesDirty=!0,this._prepareDataItem(e);const i=e.get("above"),s=this.topGridContainer,a=e.get("grid");i&&a&&s.children.moveValue(a);const o=e.get("axisFill");i&&o&&s.children.moveValue(o)}_prepareDataItem(e,t){}markDirtyExtremes(){}markDirtySelectionExtremes(){}_calculateTotals(){}_updateAxisRanges(){this._bullets={},this.axisRanges.each(e=>{this._prepareDataItem(e)}),b(this._seriesAxisRanges,e=>{this._prepareDataItem(e)})}_prepareChildren(){if(super._prepareChildren(),this.get("fixAxisSize")?this.ghostLabel.set("visible",!0):this.ghostLabel.set("visible",!1),this.isDirty("start")||this.isDirty("end")){const e=this.chart;e&&e._updateCursor();let t=this.get("start",0),i=this.get("end",1),s=this.get("maxDeviation",.5)*Math.min(1,i-t);if(t<-s){let e=t+s;t=-s,this.setRaw("start",t),this.isDirty("end")&&this.setRaw("end",i-e)}if(i>1+s){let e=i-1-s;i=1+s,this.setRaw("end",i),this.isDirty("start")&&this.setRaw("start",t-e)}}const e=this.get("renderer");if(e._start=this.get("start"),e._end=this.get("end"),e._inversed=e.get("inversed",!1),e._axisLength=e.axisLength()/(e._end-e._start),e._updateLC(),this.isDirty("tooltip")){const t=this.get("tooltip");if(t){const i=e.get("themeTags");t.addTag("axis"),t.addTag(this.className.toLowerCase()),t._applyThemes(),i&&(t.set("themeTags",y(t.get("themeTags"),i)),t.label._applyThemes())}}}_updateTooltipBounds(){const e=this.get("tooltip");e&&this.get("renderer").updateTooltipBounds(e)}_updateBounds(){super._updateBounds(),this._updateTooltipBounds()}processChart(e){this.chart=e;this.get("renderer").chart=e,e.gridContainer.children.push(this.gridContainer),e.topGridContainer.children.push(this.topGridContainer),e.axisHeadersContainer.children.push(this.axisHeader),this.on("start",()=>{e._handleAxisSelection(this)}),this.on("end",()=>{e._handleAxisSelection(this)}),e.plotContainer.onPrivate("width",()=>{this.markDirtySize()}),e.plotContainer.onPrivate("height",()=>{this.markDirtySize()}),e.processAxis(this)}hideDataItem(e){return this._toggleFHDataItem(e,!0),super.hideDataItem(e)}showDataItem(e){return this._toggleFHDataItem(e,!1),super.showDataItem(e)}_toggleFHDataItem(e,t){const i="forceHidden",s=e.get("label");s&&s.set(i,t);const a=e.get("grid");a&&a.set(i,t);const o=e.get("tick");o&&o.set(i,t);const n=e.get("axisFill");n&&n.set(i,t);const r=e.get("bullet");if(r){const e=r.get("sprite");e&&e.set(i,t)}}_toggleDataItem(e,t){const i=e.get("label"),s="visible";i&&i.setPrivate(s,t);const a=e.get("grid");a&&a.setPrivate(s,t);const o=e.get("tick");o&&o.setPrivate(s,t);const n=e.get("axisFill");n&&n.setPrivate(s,t);const r=e.get("bullet");if(r){const e=r.get("sprite");e&&e.setPrivate(s,t)}}_createAssets(e,t,i){var s,a,o;const n=this.get("renderer");let r="minor";const l=e.get("label");if(l){let a=l.get("themeTags"),o=!1;i?-1==(null==a?void 0:a.indexOf(r))&&(o=!0):-1!=(null==a?void 0:a.indexOf(r))&&(o=!0),o&&(null===(s=l.parent)||void 0===s||s.children.removeValue(l),n.makeLabel(e,t),l.dispose(),n.labels.removeValue(l))}else n.makeLabel(e,t);const h=e.get("grid");if(h){let s=h.get("themeTags"),o=!1;i?-1==(null==s?void 0:s.indexOf(r))&&(o=!0):-1!=(null==s?void 0:s.indexOf(r))&&(o=!0),o&&(null===(a=h.parent)||void 0===a||a.children.removeValue(h),n.makeGrid(e,t),h.dispose(),n.grid.removeValue(h))}else n.makeGrid(e,t);const d=e.get("tick");if(d){let s=!1,a=d.get("themeTags");i?-1==(null==a?void 0:a.indexOf(r))&&(s=!0):-1!=(null==a?void 0:a.indexOf(r))&&(s=!0),s&&(null===(o=d.parent)||void 0===o||o.children.removeValue(d),n.makeTick(e,t),d.dispose(),n.ticks.removeValue(d))}else n.makeTick(e,t);i||e.get("axisFill")||n.makeAxisFill(e,t),this._processBullet(e)}_processBullet(e){let t=e.get("bullet"),i=this.get("bullet");if(t||!i||e.get("isRange")||(t=i(this._root,this,e)),t){t.axis=this;const i=t.get("sprite");i&&(i._setDataItem(e),e.setRaw("bullet",t),i.parent||this.bulletsContainer.children.push(i))}}_afterChanged(){super._afterChanged();const e=this.chart;e&&(e._updateChartLayout(),e.axisHeadersContainer.markDirtySize()),this.get("renderer")._updatePositions(),this._seriesAdded=!1}disposeDataItem(e){super.disposeDataItem(e);const t=this.get("renderer"),i=e.get("label");i&&(t.labels.removeValue(i),i.dispose());const s=e.get("tick");s&&(t.ticks.removeValue(s),s.dispose());const a=e.get("grid");a&&(t.grid.removeValue(a),a.dispose());const o=e.get("axisFill");o&&(t.axisFills.removeValue(o),o.dispose());const n=e.get("bullet");n&&n.dispose()}_updateGhost(){this.setPrivate("cellWidth",this.getCellWidthPosition()*this.get("renderer").axisLength());const e=this.ghostLabel;if(!e.isHidden()){const t=e.localBounds(),i=Math.ceil(t.right-t.left);let s=e.get("text");b(this.dataItems,e=>{const t=e.get("label");if(t&&!t.isHidden()){const e=t.localBounds();Math.ceil(e.right-e.left)>i&&(s=t.text._getText())}}),e.set("text",s)}let t=this.get("start",0),i=this.get("end",1);this.get("renderer").updateLabel(e,t+.5*(i-t))}_handleCursorPosition(e,t){e=this.get("renderer").toAxisPosition(e),this._cursorPosition=e,this._snapToSeries=t,this.updateTooltip()}updateTooltip(){const e=this._snapToSeries;let t=this._cursorPosition;const i=this.get("tooltip"),s=this.get("renderer");a(t)&&(b(this.series,i=>{if(i.get("baseAxis")===this){const s=this.getSeriesItem(i,t,this.get("tooltipLocation"));e&&-1!=e.indexOf(i)?(i.updateLegendMarker(s),i.updateLegendValue(s),i._settings.tooltipDataItem=s):(i.showDataItemTooltip(s),i.setRaw("tooltipDataItem",s))}}),this.get("snapTooltip")&&(t=this.roundAxisPosition(t,this.get("tooltipLocation",.5))),this.setPrivateRaw("tooltipPosition",t),i&&(s.updateTooltipBounds(i),O(t)?i.hide(0):(this._updateTooltipText(i,t),s.positionTooltip(i,t),t<this.get("start",0)||t>this.get("end",1)?i.hide(0):i.show(0))))}_updateTooltipText(e,t){e.label.set("text",this.getTooltipText(t))}roundAxisPosition(e,t){return e}_handleSeriesRemoved(){}handleCursorShow(){let e=this.get("tooltip");e&&e.show()}handleCursorHide(){let e=this.get("tooltip");e&&e.hide()}processSeriesDataItem(e,t){}_clearDirty(){super._clearDirty(),this._sizeDirty=!1,this._rangesDirty=!1}coordinateToPosition(e){const t=this.get("renderer");return t.toAxisPosition(e/t.axisLength())}toAxisPosition(e){return this.get("renderer").toAxisPosition(e)}toGlobalPosition(e){return this.get("renderer").toGlobalPosition(e)}fixPosition(e){return this.get("renderer").fixPosition(e)}shouldGap(e,t,i,s){return!1}createAxisRange(e){return this.axisRanges.push(e)}_groupSeriesData(e){}getCellWidthPosition(){return.05}}Object.defineProperty(ue,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Axis"}),Object.defineProperty(ue,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:Z.classNames.concat([ue.className])});class ge extends ue{constructor(){super(...arguments),Object.defineProperty(this,"_dirtyExtremes",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_dirtySelectionExtremes",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_dseHandled",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_deltaMinMax",{enumerable:!0,configurable:!0,writable:!0,value:1}),Object.defineProperty(this,"_minReal",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_maxReal",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_minRealLog",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_baseValue",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_syncDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_minLogAdjusted",{enumerable:!0,configurable:!0,writable:!0,value:1})}markDirtyExtremes(){this._dirtyExtremes=!0,this.markDirty()}markDirtySelectionExtremes(){this._dirtySelectionExtremes=!0,this.markDirty()}_afterNew(){this._settings.themeTags=y(this._settings.themeTags,["axis"]),this.setPrivateRaw("name","value"),this.addTag("value"),super._afterNew()}_prepareChildren(){if(super._prepareChildren(),this.isDirty("syncWithAxis")){this._prevSettings.syncWithAxis&&this._syncDp&&this._syncDp.dispose();let e=this.get("syncWithAxis");e&&(this._syncDp=new C([e.onPrivate("selectionMinFinal",()=>{this._dirtySelectionExtremes=!0}),e.onPrivate("selectionMaxFinal",()=>{this._dirtySelectionExtremes=!0})]))}let e=!1;if((this.isDirty("min")||this.isDirty("max")||this.isDirty("maxPrecision")||this.isDirty("numberFormat"))&&(e=!0,this.ghostLabel.set("text","")),(this._sizeDirty||this._dirtyExtremes||this._valuesDirty||e||this.isPrivateDirty("width")||this.isPrivateDirty("height")||this.isDirty("extraMin")||this.isDirty("extraMax")||this.isDirty("logarithmic")||this.isDirty("treatZeroAs")||this.isDirty("baseValue")||this.isDirty("strictMinMax")||this.isDirty("strictMinMaxSelection"))&&(this._getMinMax(),this._dirtyExtremes=!1),this._handleSizeDirty(),this._dirtySelectionExtremes&&!this._isPanning&&this.get("autoZoom",!0)){const e=this.chart;let t=!1;if(e){const i=this.get("renderer").getPrivate("letter");"Y"==i?e.xAxes.each(e=>{"ValueAxis"!=e.className&&(t=!0)}):"X"==i&&e.yAxes.each(e=>{"ValueAxis"!=e.className&&(t=!0)})}t&&this._getSelectionMinMax(),this._dirtySelectionExtremes=!1}this._groupData(),(this._sizeDirty||this._valuesDirty||this.isDirty("start")||this.isDirty("end")||this.isPrivateDirty("min")||this.isPrivateDirty("selectionMax")||this.isPrivateDirty("selectionMin")||this.isPrivateDirty("max")||this.isPrivateDirty("step")||this.isPrivateDirty("width")||this.isPrivateDirty("height")||this.isDirty("logarithmic"))&&(this._handleRangeChange(),this._prepareAxisItems(),this._updateAxisRanges()),this._baseValue=this.baseValue()}_handleSizeDirty(){this._sizeDirty&&!this._dseHandled&&(this._dirtySelectionExtremes=!0,this._dseHandled=!0,this.getPrivate("selectionMinFinal")==this.getPrivate("selectionMin")&&this.getPrivate("selectionMaxFinal")==this.getPrivate("selectionMax")||(this._dirtySelectionExtremes=!1))}_clearDirty(){super._clearDirty(),this._dseHandled=!1}_groupData(){}_formatText(e){const t=this.get("numberFormat"),i=this.getNumberFormatter();let s="";return s=t?i.format(e,t):i.format(e,void 0,this.getPrivate("stepDecimalPlaces")),s}_prepareAxisItems(){const e=this.getPrivate("min"),t=this.getPrivate("max");if(a(e)&&a(t)){const t=this.get("logarithmic"),i=this.getPrivate("step"),s=this.getPrivate("selectionMin"),o=this.getPrivate("selectionMax")+i;let n=s-i,l=1,h=e;if(t){if(n=this._minLogAdjusted,n<s)for(;n<s;)n+=i;if(h=n,h<=0){let e=this._minRealLog;a(e)||(e=1),h=Math.pow(10,Math.log(e)*Math.LOG10E),i<1&&(h=a(this._minRealLog)?this._minRealLog:Math.pow(10,-50))}l=Math.log(o-i)*Math.LOG10E-Math.log(h)*Math.LOG10E,l>2&&(n=Math.pow(10,Math.log(h)*Math.LOG10E-50))}const d=this.get("renderer"),c=d.get("minorLabelsEnabled"),u=d.get("minorGridEnabled",c);let g=Math.pow(10,Math.floor(Math.log(Math.abs(i))*Math.LOG10E));const p=Math.round(i/g);let m=2;r(p/5,10)%1==0&&(m=5),r(p/10,10)%1==0&&(m=10);let _=i/m,x=0,f=0,v=-1/0;for(;n<o;){let e;this.dataItems.length<x+1?(e=new H(this,void 0,{}),this._dataItems.push(e),this.processDataItem(e)):e=this.dataItems[x],this._createAssets(e,[]),this._toggleDataItem(e,!0),e.setRaw("value",n);const s=e.get("label");s&&s.set("text",this._formatText(n)),this._prepareDataItem(e);let a=n;if(t&&l>2?a=Math.pow(10,Math.log(h)*Math.LOG10E+x-50):a+=i,u){let e=n+_;if(t){if(l>2){_=this._adjustMinMax(n,a,10).step}e=n+_}for(;e<a-1e-11*i;){let t;this.minorDataItems.length<f+1?(t=new H(this,void 0,{}),this.minorDataItems.push(t),this.processDataItem(t)):t=this.minorDataItems[f],this._createAssets(t,["minor"],!0),this._toggleDataItem(t,!0),t.setRaw("value",e);const i=t.get("label");i&&(c?i.set("text",this._formatText(e)):i.setPrivate("visible",!1)),this._prepareDataItem(t),e+=_,f++}}if(n=a,v==n)break;let o=Math.pow(10,Math.floor(Math.log(Math.abs(i))*Math.LOG10E));if(o<1&&!t){let e=Math.round(Math.abs(Math.log(Math.abs(o))*Math.LOG10E))+2;n=r(n,e)}x++,t&&l<=2&&n-i<i&&(n=i),v=n}for(let e=x;e<this.dataItems.length;e++)this._toggleDataItem(this.dataItems[e],!1);for(let e=f;e<this.minorDataItems.length;e++)this._toggleDataItem(this.minorDataItems[e],!1);b(this.series,e=>{e.inited&&e._markDirtyAxes()}),this._updateGhost()}}_prepareDataItem(e,t){let i=this.get("renderer"),s=e.get("value"),o=e.get("endValue"),n=this.valueToPosition(s),r=n,l=this.valueToPosition(s+this.getPrivate("step"));a(o)&&(r=this.valueToPosition(o),l=r),e.get("isRange")&&null==o&&(l=n);let h=r,d=e.get("labelEndValue");null!=d&&(h=this.valueToPosition(d)),i.updateLabel(e.get("label"),n,h,t);const c=e.get("grid");if(i.updateGrid(c,n,r),c&&(s==this.get("baseValue",0)?(c.addTag("base"),c._applyThemes()):c.hasTag("base")&&(c.removeTag("base"),c._applyThemes())),i.updateTick(e.get("tick"),n,h,t),i.updateFill(e.get("axisFill"),n,l),this._processBullet(e),i.updateBullet(e.get("bullet"),n,r),!e.get("isRange")){const t=this.get("fillRule");t&&t(e)}}_handleRangeChange(){let e=this.positionToValue(this.get("start",0)),t=this.positionToValue(this.get("end",1));const i=this.get("renderer").gridCount();let s=this._adjustMinMax(e,t,i,!0),a=X(s.step);this.setPrivateRaw("stepDecimalPlaces",a),e=r(e,a),t=r(t,a),s=this._adjustMinMax(e,t,i,!0);let o=s.step;e=s.min,t=s.max,this.getPrivate("selectionMin")===e&&this.getPrivate("selectionMax")===t&&this.getPrivate("step")===o||(this.setPrivateRaw("selectionMin",e),this.setPrivateRaw("selectionMax",t),this.setPrivateRaw("step",o))}positionToValue(e){const t=this.getPrivate("min"),i=this.getPrivate("max");return this.get("logarithmic")?Math.pow(Math.E,(e*(Math.log(i)*Math.LOG10E-Math.log(t)*Math.LOG10E)+Math.log(t)*Math.LOG10E)/Math.LOG10E):e*(i-t)+t}valueToPosition(e){const t=this.getPrivate("min"),i=this.getPrivate("max");if(this.get("logarithmic")){if(e<=0){let t=this.get("treatZeroAs");a(t)&&(e=t)}return(Math.log(e)*Math.LOG10E-Math.log(t)*Math.LOG10E)/(Math.log(i)*Math.LOG10E-Math.log(t)*Math.LOG10E)}return(e-t)/(i-t)}valueToFinalPosition(e){const t=this.getPrivate("minFinal"),i=this.getPrivate("maxFinal");if(this.get("logarithmic")){if(e<=0){let t=this.get("treatZeroAs");a(t)&&(e=t)}return(Math.log(e)*Math.LOG10E-Math.log(t)*Math.LOG10E)/(Math.log(i)*Math.LOG10E-Math.log(t)*Math.LOG10E)}return(e-t)/(i-t)}getX(e,t,i){e=i+(e-i)*t;const s=this.valueToPosition(e);return this._settings.renderer.positionToCoordinate(s)}getY(e,t,i){e=i+(e-i)*t;const s=this.valueToPosition(e);return this._settings.renderer.positionToCoordinate(s)}getDataItemCoordinateX(e,t,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionX(e,t,i,s))}getDataItemPositionX(e,t,i,s){let a=e.get(t);if(e.get("stackToItemX")){a=a*s+e.component.getStackedXValueWorking(e,t)}else a=this._baseValue+(a-this._baseValue)*s;return this.valueToPosition(a)}getDataItemCoordinateY(e,t,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionY(e,t,i,s))}getDataItemPositionY(e,t,i,s){let a=e.get(t);if(e.get("stackToItemY")){a=a*s+e.component.getStackedYValueWorking(e,t)}else a=this._baseValue+(a-this._baseValue)*s;return this.valueToPosition(a)}basePosition(){return this.valueToPosition(this.baseValue())}baseValue(){const e=Math.min(this.getPrivate("minFinal",-1/0),this.getPrivate("selectionMin",-1/0)),t=Math.max(this.getPrivate("maxFinal",1/0),this.getPrivate("selectionMax",1/0));let i=this.get("baseValue",0);return i<e&&(i=e),i>t&&(i=t),i}cellEndValue(e){return e}fixSmallStep(e){return 1+e===1?(e*=2,this.fixSmallStep(e)):e}_fixMin(e){return e}_fixMax(e){return e}_calculateTotals(){if(this.get("calculateTotals")){let e=this.series[0];if(e){let t=e.startIndex();if(e.dataItems.length>0){t>0&&t--;let i,s,a=e.endIndex();a<e.dataItems.length&&a++,e.get("yAxis")==this?(i="valueY",s="vcy"):e.get("xAxis")==this&&(i="valueX",s="vcx");let o=i+"Working";if(i)for(let e=t;e<a;e++){let t=0,a=0;b(this.series,i=>{if(!i.get("excludeFromTotal")){let n=i.dataItems[e];if(n){let e=n.get(o)*i.get(s);O(e)||(t+=e,a+=Math.abs(e))}}}),b(this.series,n=>{if(!n.get("excludeFromTotal")){let r=n.dataItems[e];if(r){let e=r.get(o)*n.get(s);if(!O(e)){r.set(i+"Total",a),r.set(i+"Sum",t);let s=e/a*100;0==a&&(s=0),r.set(i+"TotalPercent",s)}}}})}}}}}_getSelectionMinMax(){const e=this.getPrivate("minFinal"),t=this.getPrivate("maxFinal"),i=this.get("min"),s=this.get("max");let o=this.get("extraMin",0),n=this.get("extraMax",0);this.get("logarithmic")&&(null==this.get("extraMin")&&(o=.1),null==this.get("extraMax")&&(n=.2));const l=this.get("renderer").gridCount(),h=this.get("strictMinMaxSelection");let d=this.get("strictMinMax");if(a(e)&&a(t)){let c=t,u=e;if(b(this.series,e=>{if(!e.get("ignoreMinMax")){let t,i;const s=e.getPrivate("outOfSelection");if(e.get("xAxis")===this){if(!s){let s=e.getPrivate("minX"),a=e.getPrivate("maxX");0==e.startIndex()&&e.endIndex()==e.dataItems.length||(s=void 0,a=void 0),t=e.getPrivate("selectionMinX",s),i=e.getPrivate("selectionMaxX",a)}}else if(e.get("yAxis")===this&&!s){let s=e.getPrivate("minY"),a=e.getPrivate("maxY");0==e.startIndex()&&e.endIndex()==e.dataItems.length||(s=void 0,a=void 0),t=e.getPrivate("selectionMinY",s),i=e.getPrivate("selectionMaxY",a)}e.isHidden()||e.isShowing()||(a(t)&&(c=Math.min(c,t)),a(i)&&(u=Math.max(u,i)))}}),this.axisRanges.each(e=>{if(e.get("affectsMinMax")){let t=e.get("value");null!=t&&(c=Math.min(c,t),u=Math.max(u,t)),t=e.get("endValue"),null!=t&&(c=Math.min(c,t),u=Math.max(u,t))}}),c>u&&([c,u]=[u,c]),a(i)?c=d?i:e:d&&a(this._minReal)&&(c=this._minReal),a(s)?u=d?s:t:d&&a(this._maxReal)&&(u=this._maxReal),c===u){let t=c;if(c-=this._deltaMinMax,u+=this._deltaMinMax,c<e){let i=t-e;0==i&&(i=this._deltaMinMax),c=t-i,u=t+i,d=!0}let i=this._adjustMinMax(c,u,l,d);c=i.min,u=i.max}let g=c,p=u,m=u-c;c-=m*o,u+=m*n;let _=this._adjustMinMax(c,u,l);c=_.min,u=_.max,c=Y(c,e,t),u=Y(u,e,t),_=this._adjustMinMax(c,u,l,!0),d||(c=_.min,u=_.max);const x=this.get("syncWithAxis");if(x&&(_=this._syncAxes(c,u,_.step,x.getPrivate("selectionMinFinal",x.getPrivate("minFinal",0)),x.getPrivate("selectionMaxFinal",x.getPrivate("maxFinal",1)),x.getPrivate("selectionStepFinal",x.getPrivate("step",1))),_.min<e&&(_.min=e),_.max>t&&(_.max=t),c=_.min,u=_.max),d&&(a(i)&&(c=Math.max(c,i)),a(s)&&(u=Math.min(u,s))),h&&(c=g-(p-g)*o,u=p+(p-g)*n),d){c=a(i)?i:g,u=a(s)?s:p,u-c<=1e-8&&(c-=this._deltaMinMax,u+=this._deltaMinMax);let e=u-c;c-=e*o,u+=e*n}this.get("logarithmic")&&(c<=0&&(c=g*(1-Math.min(o,.99))),c<e&&(c=e),u>t&&(u=t));let f=Math.min(20,Math.ceil(Math.log(this.getPrivate("maxZoomFactor",100)+1)/Math.LN10)+2),v=r(this.valueToFinalPosition(c),f),y=r(this.valueToFinalPosition(u),f);this.setPrivateRaw("selectionMinFinal",c),this.setPrivateRaw("selectionMaxFinal",u),this.setPrivateRaw("selectionStepFinal",_.step),this.zoom(v,y)}}_getMinMax(){let e=this.get("min"),t=this.get("max"),i=1/0,s=-1/0,o=this.get("extraMin",0),n=this.get("extraMax",0);this.get("logarithmic")&&(this.get("strictMinMax")||(null==this.get("extraMin")&&(o=.1),null==this.get("extraMax")&&(n=.2)));let l=1/0;if(b(this.series,e=>{if(!e.get("ignoreMinMax")){let t,o;if(e.get("xAxis")===this?(t=e.getPrivate("minX"),o=e.getPrivate("maxX")):e.get("yAxis")===this&&(t=e.getPrivate("minY"),o=e.getPrivate("maxY")),a(t)&&a(o)){i=Math.min(i,t),s=Math.max(s,o);let e=o-t;e<=0&&(e=Math.abs(o/100)),e<l&&(l=e)}}}),this.axisRanges.each(e=>{if(e.get("affectsMinMax")){let t=e.get("value");null!=t&&(i=Math.min(i,t),s=Math.max(s,t)),t=e.get("endValue"),null!=t&&(i=Math.min(i,t),s=Math.max(s,t))}}),this.get("logarithmic")){let e=this.get("treatZeroAs");a(e)&&i<=0&&(i=e)}if(0===i&&0===s&&(s=.9,i=-.9),a(e)&&(i=e),a(t)&&(s=t),i===1/0||s===-1/0)return this.setPrivate("minFinal",void 0),void this.setPrivate("maxFinal",void 0);i>s&&([i,s]=[s,i]);const h=i,d=s;let c=this.adapters.fold("min",i),u=this.adapters.fold("max",s);this._minRealLog=i,a(c)&&(i=c),a(u)&&(s=u),i=this._fixMin(i),s=this._fixMax(s),s-i<=1/Math.pow(10,15)&&(s-i!==0?this._deltaMinMax=(s-i)/2:this._getDelta(s),i-=this._deltaMinMax,s+=this._deltaMinMax),i-=(s-i)*o,s+=(s-i)*n,this.get("logarithmic")&&(i<0&&h>=0&&(i=0),s>0&&d<=0&&(s=0)),this._minReal=i,this._maxReal=s;let g=this.get("strictMinMax"),p=this.get("strictMinMaxSelection",!1);p&&(g=p);let m=g;a(t)&&(m=!0);let _=this.get("renderer").gridCount(),x=this._adjustMinMax(i,s,_,m);if(i=x.min,s=x.max,x=this._adjustMinMax(i,s,_,!0),i=x.min,s=x.max,g){i=a(e)?e:this._minReal,s=a(t)?t:this._maxReal,s-i<=1e-8&&(i-=this._deltaMinMax,s+=this._deltaMinMax);let r=s-i;i-=r*o,s+=r*n}c=this.adapters.fold("min",i),u=this.adapters.fold("max",s),a(c)&&(i=c),a(u)&&(s=u),l==1/0&&(l=s-i);let f=Math.round(Math.abs(Math.log(Math.abs(s-i))*Math.LOG10E))+5;i=r(i,f),s=r(s,f);const v=this.get("syncWithAxis");if(v&&(x=this._syncAxes(i,s,x.step,v.getPrivate("minFinal",v.getPrivate("min",0)),v.getPrivate("maxFinal",v.getPrivate("max",1)),v.getPrivate("step",1)),i=x.min,s=x.max),this.setPrivateRaw("maxZoomFactor",Math.max(1,Math.ceil((s-i)/l*this.get("maxZoomFactor",100)))),this._fixZoomFactor(),this.get("logarithmic")&&(this._minLogAdjusted=i,i=this._minReal,s=this._maxReal,i<=0&&(i=h*(1-Math.min(o,.99)))),a(i)&&a(s)&&(this.getPrivate("minFinal")!==i||this.getPrivate("maxFinal")!==s)){this.setPrivate("minFinal",i),this.setPrivate("maxFinal",s),this._saveMinMax(i,s);const e=this.get("interpolationDuration",0),t=this.get("interpolationEasing");this.animatePrivate({key:"min",to:i,duration:e,easing:t}),this.animatePrivate({key:"max",to:s,duration:e,easing:t})}}_fixZoomFactor(){}_getDelta(e){let t=Math.log(Math.abs(e))*Math.LOG10E,i=Math.pow(10,Math.floor(t));i/=10,this._deltaMinMax=i}_saveMinMax(e,t){}_adjustMinMax(e,t,i,s){i<=1&&(i=1),i=Math.round(i);let o=e,n=t,l=t-e;0===l&&(l=Math.abs(t));let h=Math.log(Math.abs(l))*Math.LOG10E,d=Math.pow(10,Math.floor(h));d/=10;let c=d;s&&(c=0),s?(e=Math.floor(e/d)*d,t=Math.ceil(t/d)*d):(e=Math.ceil(e/d)*d-c,t=Math.floor(t/d)*d+c),e<0&&o>=0&&(e=0),t>0&&n<=0&&(t=0),h=Math.log(Math.abs(l))*Math.LOG10E,d=Math.pow(10,Math.floor(h)),d/=100;let u=Math.ceil(l/i/d)*d,g=Math.pow(10,Math.floor(Math.log(Math.abs(u))*Math.LOG10E)),p=Math.ceil(u/g);p>5?p=10:p<=5&&p>2&&(p=5),u=Math.ceil(u/(g*p))*g*p;let m=this.get("maxPrecision");if(a(m)){let e=L(u,m);m<Number.MAX_VALUE&&u!==e&&(u=e,0==u&&(u=1))}let _=0;g<1&&(_=Math.round(Math.abs(Math.log(Math.abs(g))*Math.LOG10E))+1,u=r(u,_));let b,x=Math.floor(e/u);return e=r(u*x,_),b=s?Math.floor(t/u):Math.ceil(t/u),b===x&&b++,(t=r(u*b,_))<n&&(t+=u),e>o&&(e-=u),u=this.fixSmallStep(u),{min:e,max:t,step:u}}getTooltipText(e,t){const i=this.get("tooltipNumberFormat",this.get("numberFormat")),s=this.getNumberFormatter(),a=this.get("extraTooltipPrecision",0),o=this.getPrivate("stepDecimalPlaces",0)+a,n=r(this.positionToValue(e),o);return i?s.format(n,i):s.format(n,void 0,o)}getSeriesItem(e,t){let i,s,a=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),o=this.positionToValue(t);if(b(e.dataItems,(e,t)=>{const n=Math.abs(e.get(a)-o);(void 0===i||n<s)&&(i=t,s=n)}),null!=i)return e.dataItems[i]}zoomToValues(e,t,i){const s=this.getPrivate("minFinal",0),a=this.getPrivate("maxFinal",0);null!=this.getPrivate("min")&&null!=this.getPrivate("max")&&this.zoom((e-s)/(a-s),(t-s)/(a-s),i)}_syncAxes(e,t,i,s,o,n){if(this.get("syncWithAxis")){let r=Math.round(o-s)/n,l=Math.round((t-e)/i),h=this.get("renderer").gridCount();if(a(r)&&a(l)){let s=!1,a=0,o=.01*(t-e),n=e,l=t,d=i;for(;1!=s;)if(s=this._checkSync(n,l,d,r),a++,a>500&&(s=!0),s)e=n,t=l,i=d;else{a/3==Math.round(a/3)?(n=e-o*a,e>=0&&n<0&&(n=0)):(l=t+o*a,l<=0&&l>0&&(l=0));let i=this._adjustMinMax(n,l,h,!0);n=i.min,l=i.max,d=i.step}}}return{min:e,max:t,step:i}}_checkSync(e,t,i,s){let a=(t-e)/i;for(let o=1;o<s;o++)if(r(a/o,1)==s||a*o==s)return!0;return!1}getCellWidthPosition(){let e=this.getPrivate("selectionMax",this.getPrivate("max")),t=this.getPrivate("selectionMin",this.getPrivate("min"));return a(e)&&a(t)?this.getPrivate("step",1)/(e-t):.05}nextPosition(e){null==e&&(e=1),"Y"==this.get("renderer").getPrivate("letter")&&(e*=-1);let t=this.positionToValue(this.getPrivate("tooltipPosition",0));return t+=this.getPrivate("step",1)*e,t=Y(t,this.getPrivate("selectionMin",0),this.getPrivate("selectionMax",1)),this.toGlobalPosition(this.valueToPosition(t))}}Object.defineProperty(ge,"className",{enumerable:!0,configurable:!0,writable:!0,value:"ValueAxis"}),Object.defineProperty(ge,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:ue.classNames.concat([ge.className])});class pe extends F{constructor(){super(...arguments),Object.defineProperty(this,"_tickPoints",{enumerable:!0,configurable:!0,writable:!0,value:[]})}}Object.defineProperty(pe,"className",{enumerable:!0,configurable:!0,writable:!0,value:"AxisLabel"}),Object.defineProperty(pe,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:F.classNames.concat([pe.className])});class me extends K{constructor(){super(...arguments),Object.defineProperty(this,"_tickPoints",{enumerable:!0,configurable:!0,writable:!0,value:[]})}}Object.defineProperty(me,"className",{enumerable:!0,configurable:!0,writable:!0,value:"AxisTick"}),Object.defineProperty(me,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:K.classNames.concat([me.className])});class _e extends c{constructor(){super(...arguments),Object.defineProperty(this,"_axisLength",{enumerable:!0,configurable:!0,writable:!0,value:100}),Object.defineProperty(this,"_start",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_end",{enumerable:!0,configurable:!0,writable:!0,value:1}),Object.defineProperty(this,"_inversed",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_minSize",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"chart",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_lc",{enumerable:!0,configurable:!0,writable:!0,value:1}),Object.defineProperty(this,"_ls",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_thumbDownPoint",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_downStart",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_downEnd",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"ticks",{enumerable:!0,configurable:!0,writable:!0,value:this.addDisposer(new R(I.new({}),()=>me._new(this._root,{themeTags:y(this.ticks.template.get("themeTags",[]),this.get("themeTags",[]))},[this.ticks.template])))}),Object.defineProperty(this,"grid",{enumerable:!0,configurable:!0,writable:!0,value:this.addDisposer(new R(I.new({}),()=>re._new(this._root,{themeTags:y(this.grid.template.get("themeTags",[]),this.get("themeTags",[]))},[this.grid.template])))}),Object.defineProperty(this,"axisFills",{enumerable:!0,configurable:!0,writable:!0,value:this.addDisposer(new R(I.new({}),()=>c._new(this._root,{themeTags:y(this.axisFills.template.get("themeTags",["axis","fill"]),this.get("themeTags",[]))},[this.axisFills.template])))}),Object.defineProperty(this,"labels",{enumerable:!0,configurable:!0,writable:!0,value:this.addDisposer(new R(I.new({}),()=>pe._new(this._root,{themeTags:y(this.labels.template.get("themeTags",[]),this.get("themeTags",[]))},[this.labels.template])))}),Object.defineProperty(this,"axis",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"thumb",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}makeTick(e,t){const i=this.ticks.make();return i._setDataItem(e),e.setRaw("tick",i),i.set("themeTags",y(i.get("themeTags"),t)),this.axis.labelsContainer.children.push(i),this.ticks.push(i),i}makeGrid(e,t){const i=this.grid.make();return i._setDataItem(e),e.setRaw("grid",i),i.set("themeTags",y(i.get("themeTags"),t)),this.axis.gridContainer.children.push(i),this.grid.push(i),i}makeAxisFill(e,t){const i=this.axisFills.make();return i._setDataItem(e),i.set("themeTags",y(i.get("themeTags"),t)),this.axis.gridContainer.children.push(i),e.setRaw("axisFill",i),this.axisFills.push(i),i}makeLabel(e,t){const i=this.labels.make();return i.set("themeTags",y(i.get("themeTags"),t)),this.axis.labelsContainer.children.moveValue(i,0),i._setDataItem(e),e.setRaw("label",i),this.labels.push(i),i}axisLength(){return 0}gridCount(){return this.axisLength()/this.get("minGridDistance",50)}_updatePositions(){}_afterNew(){super._afterNew(),this.set("isMeasured",!1);const e=this.thumb;e&&(this._disposers.push(e.events.on("pointerdown",e=>{this._handleThumbDown(e)})),this._disposers.push(e.events.on("globalpointerup",e=>{this._handleThumbUp(e)})),this._disposers.push(e.events.on("globalpointermove",e=>{this._handleThumbMove(e)})))}_beforeChanged(){super._beforeChanged(),this.isDirty("minGridDistance")&&this.root.events.once("frameended",()=>{this.axis.markDirtySize()})}_changed(){if(super._changed(),this.isDirty("pan")){const e=this.thumb;if(e){const t=this.axis.labelsContainer,i=this.get("pan");"zoom"==i?t.children.push(e):"none"==i&&t.children.removeValue(e)}}}_handleThumbDown(e){this._thumbDownPoint=this.toLocal(e.point);const t=this.axis;this._downStart=t.get("start"),this._downEnd=t.get("end")}_handleThumbUp(e){this._thumbDownPoint=void 0}_handleThumbMove(e){const t=this._thumbDownPoint;if(t){const i=this.toLocal(e.point),s=this._downStart,a=this._downEnd,o=this._getPan(i,t)*Math.min(1,a-s)/2*this.get("panSensitivity",1);this.axis.zoom(s-o,a+o,0)}}_getPan(e,t){return 0}positionToCoordinate(e){return this._inversed?(this._end-e)*this._axisLength:(e-this._start)*this._axisLength}updateTooltipBounds(e){}_updateSize(){this.markDirty(),this._clear=!0}toAxisPosition(e){const t=this._start||0,i=this._end||1;return e*=i-t,e=this.get("inversed")?i-e:t+e}toGlobalPosition(e){const t=this._start||0,i=this._end||1;return this.get("inversed")?e=i-e:e-=t,e/=i-t}fixPosition(e){return this.get("inversed")?1-e:e}_updateLC(){}toggleVisibility(e,t,i,s){let a=this.axis;const o=a.get("start",0),n=a.get("end",1);t<o+(n-o)*(i-1e-4)||t>o+(n-o)*(s+1e-4)?e.setPrivate("visible",!1):e.setPrivate("visible",!0)}_positionTooltip(e,t){const i=this.chart;i&&(e.set("pointTo",this._display.toGlobal(t)),i.inPlot(t)||e.hide())}processAxis(){}}Object.defineProperty(_e,"className",{enumerable:!0,configurable:!0,writable:!0,value:"AxisRenderer"}),Object.defineProperty(_e,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:c.classNames.concat([_e.className])});class be extends _e{constructor(){super(...arguments),Object.defineProperty(this,"thumb",{enumerable:!0,configurable:!0,writable:!0,value:u.new(this._root,{width:i,isMeasured:!1,themeTags:["axis","x","thumb"]})})}_afterNew(){this._settings.themeTags=y(this._settings.themeTags,["renderer","x"]),super._afterNew(),this.setPrivateRaw("letter","X");const e=this.grid.template;e.set("height",i),e.set("width",0),e.set("draw",(e,t)=>{e.moveTo(0,0),e.lineTo(0,t.height())}),this.set("draw",(e,t)=>{e.moveTo(0,0),e.lineTo(t.width(),0)})}_changed(){super._changed();const e=this.axis;e.ghostLabel.setPrivate("visible",!this.get("inside")),e.ghostLabel.set("x",-1e3);const t="opposite",i="inside";if(this.isDirty(t)||this.isDirty(i)){const s=this.chart,a=e.children;if(this.get(i)?e.addTag(i):e.removeTag(i),s){if(this.get(t)){const i=s.topAxesContainer.children;-1==i.indexOf(e)&&i.insertIndex(0,e),e.addTag(t),a.moveValue(this)}else{const i=s.bottomAxesContainer.children;-1==i.indexOf(e)&&i.moveValue(e),e.removeTag(t),a.moveValue(this,0)}e.ghostLabel._applyThemes(),this.labels.each(e=>{e._applyThemes()}),this.root._markDirtyRedraw()}e.markDirtySize()}this.thumb.setPrivate("height",e.labelsContainer.height())}_getPan(e,t){return(t.x-e.x)/this.width()}toAxisPosition(e){const t=this._start||0,i=this._end||1;return e=(e-=this._ls)*(i-t)/this._lc,e=this.get("inversed")?i-e:t+e}toGlobalPosition(e){const t=this._start||0,i=this._end||1;return this.get("inversed")?e=i-e:e-=t,e=e/(i-t)*this._lc,e+=this._ls}_updateLC(){const e=this.axis,t=e.parent;if(t){const i=t.innerWidth();this._lc=this.axisLength()/i,this._ls=(e.x()-t.get("paddingLeft",0))/i}}_updatePositions(){const e=this.axis,t=e.x()-S(e.get("centerX",0),e.width())-e.parent.get("paddingLeft",0);e.gridContainer.set("x",t),e.topGridContainer.set("x",t),e.bulletsContainer.set("y",this.y());const i=e.chart;if(i){const t=i.plotContainer,s=e.axisHeader;let a=e.get("marginLeft",0),o=e.x()-a;const n=e.parent;n&&(o-=n.get("paddingLeft",0)),s.children.length>0?(a=e.axisHeader.width(),e.set("marginLeft",a+1)):s.set("width",a),s.setAll({x:o,y:-1,height:t.height()+2})}}processAxis(){super.processAxis();const e=this.axis;null==e.get("width")&&e.set("width",i);const t=this._root.verticalLayout;e.set("layout",t),e.labelsContainer.set("width",i),e.axisHeader.setAll({layout:t})}axisLength(){return this.axis.width()}positionToPoint(e){return{x:this.positionToCoordinate(e),y:0}}updateTick(e,t,s,o){if(e){a(t)||(t=0);let n=.5;n=a(o)&&o>1?e.get("multiLocation",n):e.get("location",n),a(s)&&s!=t&&(t+=(s-t)*n),e.set("x",this.positionToCoordinate(t));let r=e.get("length",0);const l=e.get("inside",this.get("inside",!1));this.get("opposite")?(e.set("y",i),l||(r*=-1)):(e.set("y",0),l&&(r*=-1)),e.set("draw",e=>{e.moveTo(0,0),e.lineTo(0,r)}),this.toggleVisibility(e,t,e.get("minPosition",0),e.get("maxPosition",1))}}updateLabel(e,t,s,o){if(e){let n=.5;n=a(o)&&o>1?e.get("multiLocation",n):e.get("location",n),a(t)||(t=0);const r=e.get("inside",this.get("inside",!1));this.get("opposite")?r?(e.set("position","absolute"),e.set("y",0)):(e.set("position","relative"),e.set("y",i)):r?(e.set("y",0),e.set("position","absolute")):(e.set("y",void 0),e.set("position","relative")),a(s)&&s!=t&&(t+=(s-t)*n),e.set("x",this.positionToCoordinate(t)),this.toggleVisibility(e,t,e.get("minPosition",0),e.get("maxPosition",1))}}updateGrid(e,t,i){if(e){a(t)||(t=0);let s=e.get("location",.5);a(i)&&i!=t&&(t+=(i-t)*s),e.set("x",this.positionToCoordinate(t)),this.toggleVisibility(e,t,0,1)}}updateBullet(e,t,i){if(e){const s=e.get("sprite");if(s){a(t)||(t=0);let o=e.get("location",.5);a(i)&&i!=t&&(t+=(i-t)*o);let n=this.axis.roundAxisPosition(t,o),r=this.axis._bullets[n],l=-1;if(this.get("opposite")&&(l=1),e.get("stacked"))if(r){let e=r.get("sprite");e&&s.set("y",e.y()+e.height()*l)}else s.set("y",0);this.axis._bullets[n]=e,s.set("x",this.positionToCoordinate(t)),this.toggleVisibility(s,t,0,1)}}}updateFill(e,t,i){if(e){a(t)||(t=0),a(i)||(i=1);let s=this.positionToCoordinate(t),o=this.positionToCoordinate(i);this.fillDrawMethod(e,s,o)}}fillDrawMethod(e,t,i){e.set("draw",e=>{const s=this.axis.gridContainer.height(),a=this.width();i<t&&([i,t]=[t,i]),t>a||i<0||(e.moveTo(t,0),e.lineTo(i,0),e.lineTo(i,s),e.lineTo(t,s),e.lineTo(t,0))})}positionTooltip(e,t){this._positionTooltip(e,{x:this.positionToCoordinate(t),y:0})}updateTooltipBounds(e){const t=this.get("inside"),i=1e5;let s=this._display.toGlobal({x:0,y:0}),a=s.x,o=0,n=this.axisLength(),r=i,l="up";this.get("opposite")?t?(l="up",o=s.y,r=i):(l="down",o=s.y-i,r=i):t?(l="down",o=s.y-i,r=i):(l="up",o=s.y,r=i);const h={left:a,right:a+n,top:o,bottom:o+r},d=e.get("bounds");j(h,d)||(e.set("bounds",h),e.set("pointerOrientation",l))}}Object.defineProperty(be,"className",{enumerable:!0,configurable:!0,writable:!0,value:"AxisRendererX"}),Object.defineProperty(be,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:_e.classNames.concat([be.className])});class xe extends _e{constructor(){super(...arguments),Object.defineProperty(this,"_downY",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"thumb",{enumerable:!0,configurable:!0,writable:!0,value:u.new(this._root,{height:i,isMeasured:!1,themeTags:["axis","y","thumb"]})})}_afterNew(){this._settings.themeTags=y(this._settings.themeTags,["renderer","y"]),this._settings.opposite&&this._settings.themeTags.push("opposite"),super._afterNew(),this.setPrivateRaw("letter","Y");const e=this.grid.template;e.set("width",i),e.set("height",0),e.set("draw",(e,t)=>{e.moveTo(0,0),e.lineTo(t.width(),0)}),this.set("draw",(e,t)=>{e.moveTo(0,0),e.lineTo(0,t.height())})}_getPan(e,t){return(e.y-t.y)/this.height()}_changed(){super._changed();const e=this.axis;e.ghostLabel.setPrivate("visible",!this.get("inside")),e.ghostLabel.set("y",-1e3);const t=this.thumb,i="opposite",s="inside",a=this.chart;if(this.isDirty(i)||this.isDirty(s)){const t=e.children;if(this.get(s)?e.addTag(s):e.removeTag(s),a){if(this.get(i)){const s=a.rightAxesContainer.children;-1==s.indexOf(e)&&s.moveValue(e,0),e.addTag(i),t.moveValue(this,0)}else{const s=a.leftAxesContainer.children;-1==s.indexOf(e)&&s.moveValue(e),e.removeTag(i),t.moveValue(this)}e.ghostLabel._applyThemes(),this.labels.each(e=>{e._applyThemes()}),this.root._markDirtyRedraw()}e.markDirtySize()}const o=e.labelsContainer.width();a&&(this.get(i)?t.set("centerX",0):t.set("centerX",o)),t.setPrivate("width",o)}processAxis(){super.processAxis();const e=this.axis;null==e.get("height")&&e.set("height",i);const t=this._root.horizontalLayout;e.set("layout",t),e.labelsContainer.set("height",i),e.axisHeader.set("layout",t)}_updatePositions(){const e=this.axis,t=e.y()-S(e.get("centerY",0),e.height());e.gridContainer.set("y",t),e.topGridContainer.set("y",t),e.bulletsContainer.set("x",this.x());const i=e.chart;if(i){const t=i.plotContainer,s=e.axisHeader;let a=e.get("marginTop",0);s.children.length>0?(a=e.axisHeader.height(),e.set("marginTop",a+1)):s.set("height",a),s.setAll({y:e.y()-a,x:-1,width:t.width()+2})}}axisLength(){return this.axis.innerHeight()}positionToPoint(e){return{x:0,y:this.positionToCoordinate(e)}}updateLabel(e,t,i,s){if(e){a(t)||(t=0);let o=.5;o=a(s)&&s>1?e.get("multiLocation",o):e.get("location",o);const n=this.get("opposite"),r=e.get("inside",this.get("inside",!1));n?(e.set("x",0),r?e.set("position","absolute"):e.set("position","relative")):r?(e.set("x",0),e.set("position","absolute")):(e.set("x",void 0),e.set("position","relative")),a(i)&&i!=t&&(t+=(i-t)*o),e.set("y",this.positionToCoordinate(t)),this.toggleVisibility(e,t,e.get("minPosition",0),e.get("maxPosition",1))}}updateGrid(e,t,i){if(e){a(t)||(t=0);let s=e.get("location",.5);a(i)&&i!=t&&(t+=(i-t)*s),e.set("y",this.positionToCoordinate(t)),this.toggleVisibility(e,t,0,1)}}updateTick(e,t,i,s){if(e){a(t)||(t=0);let o=.5;o=a(s)&&s>1?e.get("multiLocation",o):e.get("location",o),a(i)&&i!=t&&(t+=(i-t)*o),e.set("y",this.positionToCoordinate(t));let n=e.get("length",0);const r=e.get("inside",this.get("inside",!1));this.get("opposite")?(e.set("x",0),r&&(n*=-1)):r||(n*=-1),e.set("draw",e=>{e.moveTo(0,0),e.lineTo(n,0)}),this.toggleVisibility(e,t,e.get("minPosition",0),e.get("maxPosition",1))}}updateBullet(e,t,i){if(e){const s=e.get("sprite");if(s){a(t)||(t=0);let o=e.get("location",.5);a(i)&&i!=t&&(t+=(i-t)*o);let n=this.axis.roundAxisPosition(t,o),r=this.axis._bullets[n],l=1;if(this.get("opposite")&&(l=-1),e.get("stacked"))if(r){let e=r.get("sprite");e&&s.set("x",e.x()+e.width()*l)}else s.set("x",0);this.axis._bullets[n]=e,s.set("y",this.positionToCoordinate(t)),this.toggleVisibility(s,t,0,1)}}}updateFill(e,t,i){if(e){a(t)||(t=0),a(i)||(i=1);let s=this.positionToCoordinate(t),o=this.positionToCoordinate(i);this.fillDrawMethod(e,s,o)}}fillDrawMethod(e,t,i){e.set("draw",e=>{const s=this.axis.gridContainer.width(),a=this.height();i<t&&([i,t]=[t,i]),t>a||i<0||(e.moveTo(0,t),e.lineTo(s,t),e.lineTo(s,i),e.lineTo(0,i),e.lineTo(0,t))})}positionToCoordinate(e){return this._inversed?(e-this._start)*this._axisLength:(this._end-e)*this._axisLength}positionTooltip(e,t){this._positionTooltip(e,{x:0,y:this.positionToCoordinate(t)})}updateTooltipBounds(e){const t=this.get("inside"),i=1e5;let s=this._display.toGlobal({x:0,y:0}),a=s.y,o=0,n=this.axisLength(),r=i,l="right";this.get("opposite")?t?(l="right",o=s.x-i,r=i):(l="left",o=s.x,r=i):t?(l="left",o=s.x,r=i):(l="right",o=s.x-i,r=i);const h={left:o,right:o+r,top:a,bottom:a+n},d=e.get("bounds");j(h,d)||(e.set("bounds",h),e.set("pointerOrientation",l))}_updateLC(){const e=this.axis,t=e.parent;if(t){const i=t.innerHeight();this._lc=this.axisLength()/i,this._ls=e.y()/i}}toAxisPosition(e){const t=this._start||0,i=this._end||1;return e=(e-=this._ls)*(i-t)/this._lc,e=this.get("inversed")?t+e:i-e}toGlobalPosition(e){const t=this._start||0,i=this._end||1;return this.get("inversed")?e-=t:e=i-e,e=e/(i-t)*this._lc,e+=this._ls}fixPosition(e){return this.get("inversed")?e:1-e}}Object.defineProperty(xe,"className",{enumerable:!0,configurable:!0,writable:!0,value:"AxisRendererY"}),Object.defineProperty(xe,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:_e.classNames.concat([xe.className])});class fe extends ce{constructor(){super(...arguments),Object.defineProperty(this,"_endIndex",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_strokeGenerator",{enumerable:!0,configurable:!0,writable:!0,value:se()}),Object.defineProperty(this,"_fillGenerator",{enumerable:!0,configurable:!0,writable:!0,value:ae()}),Object.defineProperty(this,"_legendStroke",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_legendFill",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"strokes",{enumerable:!0,configurable:!0,writable:!0,value:this.addDisposer(new R(I.new({}),()=>c._new(this._root,{themeTags:y(this.strokes.template.get("themeTags",[]),["line","series","stroke"])},[this.strokes.template])))}),Object.defineProperty(this,"fills",{enumerable:!0,configurable:!0,writable:!0,value:this.addDisposer(new R(I.new({}),()=>c._new(this._root,{themeTags:y(this.strokes.template.get("themeTags",[]),["line","series","fill"])},[this.fills.template])))}),Object.defineProperty(this,"_fillTemplate",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_strokeTemplate",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_previousPoint",{enumerable:!0,configurable:!0,writable:!0,value:[0,0,0,0]}),Object.defineProperty(this,"_dindex",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_sindex",{enumerable:!0,configurable:!0,writable:!0,value:0})}_afterNew(){this._fillGenerator.y0(function(e){return e[3]}),this._fillGenerator.x0(function(e){return e[2]}),this._fillGenerator.y1(function(e){return e[1]}),this._fillGenerator.x1(function(e){return e[0]}),super._afterNew()}makeStroke(e){const t=this.mainContainer.children.push(e.make());return e.push(t),t}makeFill(e){const t=this.mainContainer.children.push(e.make());return e.push(t),t}_updateChildren(){this._strokeTemplate=void 0,this._fillTemplate=void 0;let e=this.get("xAxis"),t=this.get("yAxis");if(this.isDirty("stroke")){const e=this.get("stroke");this.strokes.template.set("stroke",e);const t=this._legendStroke;t&&t.states.lookup("default").set("stroke",e)}if(this.isDirty("fill")){const e=this.get("fill");this.fills.template.set("fill",e);const t=this._legendFill;t&&t.states.lookup("default").set("fill",e)}if(this.isDirty("fillPattern")){const e=this.get("fillPattern");this.fills.template.set("fillPattern",e);const t=this._legendFill;t&&t.states.lookup("default").set("fillPattern",e)}if(this.isDirty("curveFactory")){const e=this.get("curveFactory");e&&(this._strokeGenerator.curve(e),this._fillGenerator.curve(e))}if(e.inited&&t.inited){if(this._axesDirty||this._valuesDirty||this._stackDirty||this.isDirty("vcx")||this.isDirty("vcy")||this._sizeDirty||this.isDirty("connect")||this.isDirty("curveFactory")){this.fills.each(e=>{e.setPrivate("visible",!1)}),this.strokes.each(e=>{e.setPrivate("visible",!1)}),this.axisRanges.each(e=>{let t=e.fills;t&&t.each(e=>{e.setPrivate("visible",!1)});let i=e.strokes;i&&i.each(e=>{e.setPrivate("visible",!1)})});let e=this.startIndex(),t=this.strokes.template.get("templateField"),i=this.fills.template.get("templateField"),s=!0,o=!0;t&&(s=!1),i&&(o=!1);for(let l=e-1;l>=0;l--){let n=this.dataItems[l],r=!0,h=n.dataContext;if(t&&h[t]&&(s=!0),i&&h[i]&&(o=!0),b(this._valueFields,e=>{a(n.get(e))||(r=!1)}),r&&s&&o){e=l;break}}let n=this.dataItems.length,r=this.endIndex();if(r<n){r++;for(let e=r;e<n;e++){let t=this.dataItems[e],i=!0;if(b(this._valueFields,e=>{a(t.get(e))||(i=!1)}),i){r=e+1;break}}}if(e>0&&e--,this._endIndex=r,this._clearGraphics(),this._sindex=0,this._dindex=e,1==this.dataItems.length)this._startSegment(0);else for(;this._dindex<r-1;)this._startSegment(this._dindex),this._sindex++}}else this._skipped=!0;super._updateChildren()}_clearGraphics(){this.strokes.clear(),this.fills.clear(),this.axisRanges.each(e=>{e.fills.clear(),e.strokes.clear()})}_startSegment(e){let t=this._endIndex,i=t;const s=this.get("autoGapCount"),a=this.get("connect"),o=this.makeFill(this.fills),n=this._fillTemplate,r=this.fills.template;n&&n!=r&&(o.template=n),o.setPrivate("visible",!0);const l=this.makeStroke(this.strokes),h=this._strokeTemplate;h&&h!=this.strokes.template&&(l.template=h),l.setPrivate("visible",!0);let d=this.get("xAxis"),c=this.get("yAxis"),u=this.get("baseAxis"),g=this.get("vcx",1),p=this.get("vcy",1),m=this._xField,_=this._yField,b=this._xOpenField,x=this._yOpenField;const f=this.get("openValueXField"),v=this.get("openValueYField");f||(b=this._xField),v||(x=this._yField);const y=this.get("stacked"),w=d.basePosition(),P=c.basePosition();let A;A=u===c?this._yField:this._xField;const D=[];let k=[];D.push(k);const T=this.strokes.template.get("templateField"),M=this.fills.template.get("templateField");let S=this.get("locationX",.5),O=this.get("locationY",.5),C=this.get("openLocationX",S),X=this.get("openLocationY",O);const Y=this.get("minDistance",0);let L,F=this.fills.template.get("visible");this.axisRanges.length>0&&(F=!0);let R=!1;(y||f||v)&&(R=!0);const j={points:k,segments:D,stacked:y,getOpen:R,basePosX:w,basePosY:P,fillVisible:F,xField:m,yField:_,xOpenField:b,yOpenField:x,vcx:g,vcy:p,baseAxis:u,xAxis:d,yAxis:c,locationX:S,locationY:O,openLocationX:C,openLocationY:X,minDistance:Y};let V=this._strokeTemplate,E=this._fillTemplate;for(L=e;L<i;L++){this._dindex=L;const t=this._dataItems[L];let n=t.get(m),r=t.get(_);if(null==n||null==r?a||(k=[],D.push(k),j.points=k):this._getPoints(t,j),T){let s=t.dataContext[T];if(s){if(s instanceof I||(s=I.new(s)),this._strokeTemplate=s,L>e){i=L;break}V=s,l.template=s}}if(M){let s=t.dataContext[M];if(s){if(s instanceof I||(s=I.new(s)),this._fillTemplate=s,L>e){i=L;break}E=s,o.template=s}}if(!a){let e=this.dataItems[L+1];e&&u.shouldGap(t,e,s,A)&&(k=[],D.push(k),j.points=k)}}o.setRaw("userData",[e,L]),l.setRaw("userData",[e,L]),L===t&&this._endLine(k,D[0][0]),l&&this._drawStroke(l,D),o&&this._drawFill(o,D),this.axisRanges.each(t=>{const i=t.container,s=t.fills,a=this.makeFill(s);i&&i.children.push(a),a.setPrivate("visible",!0),this._drawFill(a,D);const o=t.strokes,n=this.makeStroke(o);i&&i.children.push(n),V&&V!=this.strokes.template&&(n.template=V),E&&E!=this.fills.template&&(a.template=E),n.setPrivate("visible",!0),this._drawStroke(n,D),a.setRaw("userData",[e,L]),n.setRaw("userData",[e,L])})}_getPoints(e,t){let i=t.points,s=e.get("locationX",t.locationX),a=e.get("locationY",t.locationY);const o=this.get("exactLocationX",!1),n=this.get("exactLocationY",!1);let r=t.xAxis.getDataItemPositionX(e,t.xField,s,t.vcx,o),l=t.yAxis.getDataItemPositionY(e,t.yField,a,t.vcy,n);if(this._shouldInclude(r)){const s=this.getPoint(r,l),a=[s.x,s.y];if(s.x+=this._x,s.y+=this._y,e.set("point",s),t.fillVisible){let i=r,s=l;if(t.baseAxis===t.xAxis?s=t.basePosY:t.baseAxis===t.yAxis&&(i=t.basePosX),t.getOpen){let a=e.get(t.xOpenField),r=e.get(t.yOpenField);if(null!=a&&null!=r){let a=e.get("openLocationX",t.openLocationX),r=e.get("openLocationY",t.openLocationY);if(t.stacked){let l=e.get("stackToItemX"),h=e.get("stackToItemY");l?(i=t.xAxis.getDataItemPositionX(l,t.xField,a,l.component.get("vcx"),o),O(i)&&(i=t.basePosX)):i=t.yAxis===t.baseAxis?t.basePosX:t.xAxis.getDataItemPositionX(e,t.xOpenField,a,t.vcx,o),h?(s=t.yAxis.getDataItemPositionY(h,t.yField,r,h.component.get("vcy"),n),O(s)&&(s=t.basePosY)):s=t.xAxis===t.baseAxis?t.basePosY:t.yAxis.getDataItemPositionY(e,t.yOpenField,r,t.vcy,n)}else i=t.xAxis.getDataItemPositionX(e,t.xOpenField,a,t.vcx,o),s=t.yAxis.getDataItemPositionY(e,t.yOpenField,r,t.vcy,n)}}let h=this.getPoint(i,s);a[2]=h.x,a[3]=h.y}if(t.minDistance>0){const e=a[0],s=a[1],o=a[2],n=a[3],r=this._previousPoint,l=r[0],h=r[1],d=r[2],c=r[3];(Math.hypot(e-l,s-h)>t.minDistance||o&&n&&Math.hypot(o-d,n-c)>t.minDistance)&&(i.push(a),this._previousPoint=a)}else i.push(a)}}_endLine(e,t){}_drawStroke(e,t){e.get("visible")&&!e.get("forceHidden")&&e.set("draw",e=>{b(t,t=>{this._strokeGenerator.context(e),this._strokeGenerator(t)})})}_drawFill(e,t){e.get("visible")&&!e.get("forceHidden")&&e.set("draw",e=>{b(t,t=>{this._fillGenerator.context(e),this._fillGenerator(t)})})}_processAxisRange(e){super._processAxisRange(e),e.fills=new R(I.new({}),()=>c._new(this._root,{themeTags:y(e.fills.template.get("themeTags",[]),["line","series","fill"])},[this.fills.template,e.fills.template])),e.strokes=new R(I.new({}),()=>c._new(this._root,{themeTags:y(e.strokes.template.get("themeTags",[]),["line","series","stroke"])},[this.strokes.template,e.strokes.template]))}createLegendMarker(e){const t=this.get("legendDataItem");if(t){const e=t.get("marker"),i=t.get("markerRectangle");i&&i.setPrivate("visible",!1),e.set("background",u.new(e._root,{fillOpacity:0,fill:V(0)}));const s=e.children.push(c._new(e._root,{themeTags:["line","series","legend","marker","stroke"],interactive:!1},[this.strokes.template]));this._legendStroke=s;const a=e.children.push(c._new(e._root,{themeTags:["line","series","legend","marker","fill"]},[this.fills.template]));this._legendFill=a;const o=this._root.interfaceColors.get("disabled");if(s.states.create("disabled",{fill:o,stroke:o}),a.states.create("disabled",{fill:o,stroke:o}),this.bullets.length>0){const t=this.bullets.getIndex(0);if(t){const i=t(e._root,this,new H(this,{legend:!0},{}));if(i){const t=i.get("sprite");t instanceof c&&t.states.create("disabled",{fill:o,stroke:o}),t&&(t.setAll({tooltipText:void 0,tooltipHTML:void 0,focusable:void 0,focusableGroup:void 0,ariaLabel:void 0}),e.children.push(t),t.setAll({x:e.width()/2,y:e.height()/2}),e.events.on("boundschanged",()=>{t.setAll({x:e.width()/2,y:e.height()/2})}))}}}}}}Object.defineProperty(fe,"className",{enumerable:!0,configurable:!0,writable:!0,value:"LineSeries"}),Object.defineProperty(fe,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:ce.classNames.concat([fe.className])});export{be as A,fe as L,ge as V,ne as X,le as a,xe as b,ce as c,ue as d};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
4
|
-
*/
|
|
5
|
-
import{T as e,C as t,M as i,r as a,i as n,j as r,a as s}from"./Theme.js";class l extends e{setupDefaultRules(){super.setupDefaultRules(),this.rule("InterfaceColors").setAll({stroke:t.fromHex(0),fill:t.fromHex(2829099),primaryButton:t.lighten(t.fromHex(6788316),-.2),primaryButtonHover:t.lighten(t.fromHex(6779356),-.2),primaryButtonDown:t.lighten(t.fromHex(6872181),-.2),primaryButtonActive:t.lighten(t.fromHex(6872182),-.2),primaryButtonText:t.fromHex(16777215),primaryButtonStroke:t.lighten(t.fromHex(6788316),-.2),secondaryButton:t.fromHex(3881787),secondaryButtonHover:t.lighten(t.fromHex(3881787),.1),secondaryButtonDown:t.lighten(t.fromHex(3881787),.15),secondaryButtonActive:t.lighten(t.fromHex(3881787),.2),secondaryButtonText:t.fromHex(12303291),secondaryButtonStroke:t.lighten(t.fromHex(3881787),-.2),grid:t.fromHex(12303291),background:t.fromHex(0),alternativeBackground:t.fromHex(16777215),text:t.fromHex(16777215),alternativeText:t.fromHex(0),disabled:t.fromHex(11382189),positive:t.fromHex(5288704),negative:t.fromHex(11730944)})}}class o extends e{constructor(e,t){super(e,t),Object.defineProperty(this,"_dp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"responsiveRules",{enumerable:!0,configurable:!0,writable:!0,value:[]}),this._dp=new i([this._root._rootContainer.onPrivate("width",e=>{this._isUsed()&&this._maybeApplyRules()}),this._root._rootContainer.onPrivate("height",e=>{this._isUsed()&&this._maybeApplyRules()})])}static widthXXS(e,t){return e<=o.XXS}static widthXS(e,t){return e<=o.XS}static widthS(e,t){return e<=o.S}static widthM(e,t){return e<=o.M}static widthL(e,t){return e<=o.L}static widthXL(e,t){return e<=o.XL}static widthXXL(e,t){return e<=o.XXL}static heightXXS(e,t){return t<=o.XXS}static heightXS(e,t){return t<=o.XS}static heightS(e,t){return t<=o.S}static heightM(e,t){return t<=o.M}static heightL(e,t){return t<=o.L}static heightXL(e,t){return t<=o.XL}static heightXXL(e,t){return t<=o.XXL}static isXXS(e,t){return e<=o.XXS&&t<=o.XXS}static isXS(e,t){return e<=o.XS&&t<=o.XS}static isS(e,t){return e<=o.S&&t<=o.S}static isM(e,t){return e<=o.M&&t<=o.M}static isL(e,t){return e<=o.L&&t<=o.L}static isXL(e,t){return e<=o.XL&&t<=o.XL}static isXXL(e,t){return e<=o.XXL&&t<=o.XXL}static maybeXXS(e,t){return e<=o.XXS||t<=o.XXS}static maybeXS(e,t){return e<=o.XS||t<=o.XS}static maybeS(e,t){return e<=o.S||t<=o.S}static maybeM(e,t){return e<=o.M||t<=o.M}static maybeL(e,t){return e<=o.L||t<=o.L}static maybeXL(e,t){return e<=o.XL||t<=o.XL}static maybeXXL(e,t){return e<=o.XXL||t<=o.XXL}static newEmpty(e){return new this(e,!0)}addRule(e){return e.name&&!e.template&&(e.template=this.rule(e.name,e.tags)),this.responsiveRules.push(e),this._maybeApplyRule(e),e}removeRule(e){a(this.responsiveRules,e)}dispose(){this._dp&&this._dp.dispose()}_isUsed(){return-1!==this._root._rootContainer.get("themes").indexOf(this)}_maybeApplyRules(){n(this.responsiveRules,e=>{this._maybeUnapplyRule(e)}),n(this.responsiveRules,e=>{this._maybeApplyRule(e)})}_maybeApplyRule(e){if(e.applied)return;const t=this._root._rootContainer.getPrivate("width"),i=this._root._rootContainer.getPrivate("height");e.relevant.call(e,t,i)&&(e.applied=!0,e.template&&e.settings&&e.template.setAll(e.settings),e.applying&&e.applying.call(e))}_maybeUnapplyRule(e){if(!e.applied)return;const t=this._root._rootContainer.getPrivate("width"),i=this._root._rootContainer.getPrivate("height");e.relevant.call(e,t,i)||(e.applied=!1,e.template&&e.template.removeAll(),e.removing&&e.removing.call(e))}setupDefaultRules(){super.setupDefaultRules();const e=e=>this.addRule(e);e({name:"Chart",relevant:o.widthXXS,settings:{paddingLeft:0,paddingRight:0}}),e({name:"Chart",relevant:o.heightXXS,settings:{paddingTop:0,paddingBottom:0}}),e({name:"Bullet",relevant:o.isXS,settings:{forceHidden:!0}}),e({name:"Legend",relevant:o.isXS,settings:{forceHidden:!0}}),e({name:"HeatLegend",tags:["vertical"],relevant:o.widthXS,settings:{forceHidden:!0}}),e({name:"HeatLegend",tags:["horizontal"],relevant:o.heightXS,settings:{forceHidden:!0}}),e({name:"Label",tags:["heatlegend","start"],relevant:o.maybeXS,settings:{forceHidden:!0}}),e({name:"Label",tags:["heatlegend","end"],relevant:o.maybeXS,settings:{forceHidden:!0}}),e({name:"Button",tags:["resize"],relevant:o.maybeXS,settings:{forceHidden:!0}}),e({name:"AxisRendererX",relevant:o.heightXS,settings:{inside:!0}}),e({name:"AxisRendererY",relevant:o.widthXS,settings:{inside:!0}}),e({name:"AxisRendererXLabel",relevant:o.heightXS,settings:{minPosition:.1,maxPosition:.9}}),e({name:"AxisLabel",tags:["y"],relevant:o.widthXS,settings:{centerY:s,maxPosition:.9}}),e({name:"AxisLabel",tags:["x"],relevant:o.heightXXS,settings:{forceHidden:!0}}),e({name:"AxisLabel",tags:["x","minor"],relevant:o.widthXXL,settings:{forceHidden:!0}}),e({name:"AxisLabel",tags:["y"],relevant:o.widthXXS,settings:{forceHidden:!0}}),e({name:"AxisLabel",tags:["y","minor"],relevant:o.heightXXL,settings:{forceHidden:!0}}),e({name:"AxisTick",tags:["x"],relevant:o.heightXS,settings:{inside:!0,minPosition:.1,maxPosition:.9}}),e({name:"AxisTick",tags:["y"],relevant:o.widthXXS,settings:{inside:!0,minPosition:.1,maxPosition:.9}}),e({name:"Grid",relevant:o.maybeXXS,settings:{forceHidden:!0}}),e({name:"RadialLabel",tags:["radial"],relevant:o.maybeXS,settings:{forceHidden:!0}}),e({name:"RadialLabel",tags:["circular"],relevant:o.maybeS,settings:{inside:!0}}),e({name:"AxisTick",relevant:o.maybeS,settings:{inside:!0}}),e({name:"RadialLabel",tags:["circular"],relevant:o.maybeXS,settings:{forceHidden:!0}}),e({name:"AxisTick",tags:["circular"],relevant:o.maybeXS,settings:{inside:!0}}),e({name:"PieChart",relevant:o.maybeXS,settings:{radius:r(99)}}),e({name:"PieChart",relevant:o.widthM,settings:{radius:r(99)}}),e({name:"RadialLabel",tags:["pie"],relevant:o.maybeXS,settings:{forceHidden:!0}}),e({name:"RadialLabel",tags:["pie"],relevant:o.widthM,settings:{forceHidden:!0}}),e({name:"Tick",tags:["pie"],relevant:o.maybeXS,settings:{forceHidden:!0}}),e({name:"Tick",tags:["pie"],relevant:o.widthM,settings:{forceHidden:!0}}),e({name:"FunnelSeries",relevant:o.widthM,settings:{alignLabels:!1}}),e({name:"Label",tags:["funnel","vertical"],relevant:o.widthL,settings:{forceHidden:!0}}),e({name:"Tick",tags:["funnel","vertical"],relevant:o.widthL,settings:{forceHidden:!0}}),e({name:"Label",tags:["funnel","horizontal"],relevant:o.heightS,settings:{forceHidden:!0}}),e({name:"Tick",tags:["funnel","horizontal"],relevant:o.heightS,settings:{forceHidden:!0}}),e({name:"PyramidSeries",relevant:o.widthM,settings:{alignLabels:!1}}),e({name:"Label",tags:["pyramid","vertical"],relevant:o.widthL,settings:{forceHidden:!0}}),e({name:"Tick",tags:["pyramid","vertical"],relevant:o.widthL,settings:{forceHidden:!0}}),e({name:"Label",tags:["pyramid","horizontal"],relevant:o.heightS,settings:{forceHidden:!0}}),e({name:"Tick",tags:["pyramid","horizontal"],relevant:o.heightS,settings:{forceHidden:!0}}),e({name:"PictorialStackedSeries",relevant:o.widthM,settings:{alignLabels:!1}}),e({name:"Label",tags:["pictorial","vertical"],relevant:o.widthL,settings:{forceHidden:!0}}),e({name:"Tick",tags:["pictorial","vertical"],relevant:o.widthL,settings:{forceHidden:!0}}),e({name:"Label",tags:["pictorial","horizontal"],relevant:o.heightS,settings:{forceHidden:!0}}),e({name:"Tick",tags:["pictorial","horizontal"],relevant:o.heightS,settings:{forceHidden:!0}}),e({name:"Label",tags:["flow","horizontal"],relevant:o.widthS,settings:{forceHidden:!0}}),e({name:"Label",tags:["flow","vertical"],relevant:o.heightS,settings:{forceHidden:!0}}),e({name:"Chord",relevant:o.maybeXS,settings:{radius:r(99)}}),e({name:"Label",tags:["hierarchy","node"],relevant:o.maybeXS,settings:{forceHidden:!0}})}}Object.defineProperty(o,"XXS",{enumerable:!0,configurable:!0,writable:!0,value:100}),Object.defineProperty(o,"XS",{enumerable:!0,configurable:!0,writable:!0,value:200}),Object.defineProperty(o,"S",{enumerable:!0,configurable:!0,writable:!0,value:300}),Object.defineProperty(o,"M",{enumerable:!0,configurable:!0,writable:!0,value:400}),Object.defineProperty(o,"L",{enumerable:!0,configurable:!0,writable:!0,value:600}),Object.defineProperty(o,"XL",{enumerable:!0,configurable:!0,writable:!0,value:800}),Object.defineProperty(o,"XXL",{enumerable:!0,configurable:!0,writable:!0,value:1e3});export{l as D,o as R};
|