123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961 |
- import {
- p as p4
- } from "./chunk-F2GA7W55.js";
- import {
- a2 as a3,
- h,
- i as i2,
- n2 as n5,
- u2 as u
- } from "./chunk-3BKH6ISD.js";
- import {
- c,
- d,
- g as g3,
- l as l3
- } from "./chunk-TLDCDW5L.js";
- import {
- g as g2
- } from "./chunk-TDS6IBMU.js";
- import {
- M,
- N
- } from "./chunk-I26BWYY3.js";
- import {
- u as u2
- } from "./chunk-OUUXJOLT.js";
- import {
- x
- } from "./chunk-NLLFSKB2.js";
- import {
- v as v3
- } from "./chunk-WOXHUQGM.js";
- import {
- f,
- i,
- s as s3
- } from "./chunk-FMPQIGFA.js";
- import {
- C,
- _,
- a as a2,
- n as n3,
- n2 as n4,
- y as y5
- } from "./chunk-3FNKD2EB.js";
- import {
- j,
- j2
- } from "./chunk-ZOO4I2U4.js";
- import {
- p as p3
- } from "./chunk-HZ2WKB3G.js";
- import {
- T as T2,
- m as m3
- } from "./chunk-Y74D3LKQ.js";
- import {
- g
- } from "./chunk-7C23ILQ4.js";
- import {
- m as m2,
- n as n2,
- y as y4
- } from "./chunk-3Z755LKF.js";
- import {
- y as y3
- } from "./chunk-JGBXYDGB.js";
- import {
- a,
- m,
- p as p2
- } from "./chunk-FNA5GLRW.js";
- import {
- o as o3
- } from "./chunk-UVVU4UUO.js";
- import {
- l as l2
- } from "./chunk-X4SA4ELJ.js";
- import {
- r as r3
- } from "./chunk-5N7JLUJJ.js";
- import {
- v as v2
- } from "./chunk-RMDDCMKS.js";
- import {
- v2 as v
- } from "./chunk-VCH45Q2I.js";
- import {
- o,
- s as s2
- } from "./chunk-HZRKBTHJ.js";
- import {
- U
- } from "./chunk-DVUG3KID.js";
- import {
- o as o2,
- p,
- w,
- w2
- } from "./chunk-6T6G6LCQ.js";
- import {
- k2 as k,
- r as r2
- } from "./chunk-PQFTYGF5.js";
- import {
- e,
- l3 as l,
- n5 as n,
- t5 as t2,
- y3 as y2
- } from "./chunk-2Z2TG5CU.js";
- import {
- T
- } from "./chunk-SQOPWYIT.js";
- import {
- s3 as s
- } from "./chunk-E5O6P5I2.js";
- import {
- y
- } from "./chunk-SPWQ3AWG.js";
- import {
- e as e2,
- r,
- t
- } from "./chunk-YXWMMD76.js";
- // node_modules/@arcgis/core/renderers/FlowRenderer.js
- var c2;
- var d2 = new s2({ flow_from: "flow-from", flow_to: "flow-to" });
- var h2 = c2 = class extends y5(l) {
- constructor(o5) {
- super(o5), this.density = 0.8, this.color = new l2([255, 255, 255, 1]), this.maxPathLength = 200, this.trailWidth = 1.5, this.flowSpeed = 10, this.trailLength = 100, this.smoothing = 0, this.flowRepresentation = "flow-from", this.type = "flow", this.authoringInfo = null, this.legendOptions = null, this.trailCap = "butt", this.background = "none";
- }
- clone() {
- var _a, _b;
- const { density: o5, maxPathLength: t3, trailWidth: e3, flowSpeed: r4, trailLength: i5, smoothing: s4, flowRepresentation: n7, trailCap: p8, background: a5 } = this, l9 = this.color.clone(), m9 = (this.visualVariables || []).map((o6) => o6.clone()), d6 = (_a = this.authoringInfo) == null ? void 0 : _a.clone(), h5 = (_b = this.legendOptions) == null ? void 0 : _b.clone();
- return new c2({ density: o5, color: l9, maxPathLength: t3, trailWidth: e3, flowSpeed: r4, trailLength: i5, trailCap: p8, background: a5, smoothing: s4, flowRepresentation: n7, visualVariables: m9, authoringInfo: d6, legendOptions: h5 });
- }
- getSymbol(o5, t3) {
- }
- async getSymbolAsync(o5, t3) {
- }
- getSymbols() {
- return [];
- }
- };
- e([y2({ type: Number, json: { write: true } })], h2.prototype, "density", void 0), e([y2({ type: l2, json: { write: { allowNull: true } } })], h2.prototype, "color", void 0), e([y2({ type: Number, cast: o3, json: { write: true } })], h2.prototype, "maxPathLength", void 0), e([y2({ type: Number, cast: o3, json: { write: true } })], h2.prototype, "trailWidth", void 0), e([y2({ type: Number, json: { write: true } })], h2.prototype, "flowSpeed", void 0), e([y2({ type: Number, json: { write: true } })], h2.prototype, "trailLength", void 0), e([y2({ type: Number, cast: o3, json: { write: false } })], h2.prototype, "smoothing", void 0), e([y2({ type: d2.apiValues, json: { type: d2.jsonValues, read: { reader: d2.read }, write: { writer: d2.write } } })], h2.prototype, "flowRepresentation", void 0), e([r3({ flowRenderer: "flow" })], h2.prototype, "type", void 0), e([y2({ type: j, json: { write: true } })], h2.prototype, "authoringInfo", void 0), e([y2({ type: p3, json: { write: true } })], h2.prototype, "legendOptions", void 0), e([y2({ type: String, json: { write: true } })], h2.prototype, "trailCap", void 0), e([y2({ type: String, json: { write: true } })], h2.prototype, "background", void 0), h2 = c2 = e([n("esri.renderers.FlowRenderer")], h2);
- var u3 = h2;
- // node_modules/@arcgis/core/renderers/support/ColormapInfo.js
- var l4 = class extends l {
- constructor() {
- super(...arguments), this.value = null, this.label = null, this.color = null;
- }
- };
- e([y2({ type: Number, json: { write: true } })], l4.prototype, "value", void 0), e([y2({ type: String, json: { write: true } })], l4.prototype, "label", void 0), e([y2({ type: l2, json: { type: [T], write: true } })], l4.prototype, "color", void 0), l4 = e([n("esri.renderers.support.ColormapInfo")], l4);
- var c3 = l4;
- // node_modules/@arcgis/core/renderers/RasterColormapRenderer.js
- var c4;
- var m4 = c4 = class extends l {
- constructor(o5) {
- super(o5), this.colormapInfos = null, this.type = "raster-colormap";
- }
- static createFromColormap(o5, r4) {
- if (!o5)
- return null;
- const t3 = 5 === o5[0].length, e3 = [...o5].sort((o6) => o6[0][0] - o6[1][0]).map((o6) => {
- var _a;
- return c3.fromJSON({ value: o6[0], color: t3 ? o6.slice(1, 5) : o6.slice(1, 4).concat([255]), label: r4 ? (_a = r4[o6[0]]) != null ? _a : "" : o6[0] });
- });
- return new c4({ colormapInfos: e3 });
- }
- static createFromColorramp(o5) {
- const r4 = h(o5, 256);
- return c4.createFromColormap(r4);
- }
- clone() {
- return new c4({ colormapInfos: this.colormapInfos.map((o5) => o5.toJSON()) });
- }
- extractColormap() {
- return this.colormapInfos.map(({ value: o5, color: r4 }) => [o5, r4.r, r4.g, r4.b, r4.a > 1 ? r4.a : 255 * r4.a & 255]).sort((o5, r4) => o5[0] - r4[0]);
- }
- };
- e([y2({ type: [c3], json: { write: true } })], m4.prototype, "colormapInfos", void 0), e([r3({ rasterColormap: "raster-colormap" })], m4.prototype, "type", void 0), m4 = c4 = e([n("esri.renderers.RasterColormapRenderer")], m4);
- var l5 = m4;
- // node_modules/@arcgis/core/renderers/RasterShadedReliefRenderer.js
- var c5;
- var d3 = c5 = class extends l {
- constructor(e3) {
- super(e3), this.altitude = 45, this.azimuth = 315, this.colorRamp = null, this.hillshadeType = "traditional", this.pixelSizePower = 0.664, this.pixelSizeFactor = 0.024, this.scalingType = "none", this.type = "raster-shaded-relief", this.zFactor = 1;
- }
- readColorRamp(e3) {
- return p2(e3);
- }
- clone() {
- return new c5({ hillshadeType: this.hillshadeType, altitude: this.altitude, azimuth: this.azimuth, zFactor: this.zFactor, scalingType: this.scalingType, pixelSizeFactor: this.pixelSizeFactor, pixelSizePower: this.pixelSizePower, colorRamp: y(this.colorRamp) });
- }
- };
- e([y2({ type: Number, json: { write: true } })], d3.prototype, "altitude", void 0), e([y2({ type: Number, json: { write: true } })], d3.prototype, "azimuth", void 0), e([y2({ types: m, json: { write: true } })], d3.prototype, "colorRamp", void 0), e([o2("colorRamp")], d3.prototype, "readColorRamp", null), e([y2({ type: ["traditional", "multi-directional"], json: { write: true } })], d3.prototype, "hillshadeType", void 0), e([y2({ type: Number, json: { write: true } })], d3.prototype, "pixelSizePower", void 0), e([y2({ type: Number, json: { write: true } })], d3.prototype, "pixelSizeFactor", void 0), e([y2({ type: ["none", "adjusted"], json: { write: true } })], d3.prototype, "scalingType", void 0), e([r3({ rasterShadedRelief: "raster-shaded-relief" })], d3.prototype, "type", void 0), e([y2({ type: Number, json: { write: true } })], d3.prototype, "zFactor", void 0), d3 = c5 = e([n("esri.renderers.RasterShadedReliefRenderer")], d3);
- var m5 = d3;
- // node_modules/@arcgis/core/renderers/RasterStretchRenderer.js
- var d4;
- var h3 = d4 = class extends l {
- constructor(t3) {
- super(t3), this.colorRamp = null, this.computeGamma = false, this.dynamicRangeAdjustment = false, this.gamma = [], this.maxPercent = null, this.minPercent = null, this.numberOfStandardDeviations = null, this.outputMax = null, this.outputMin = null, this.sigmoidStrengthLevel = null, this.statistics = [], this.histograms = null, this.useGamma = false, this.stretchType = "none", this.type = "raster-stretch";
- }
- readColorRamp(t3) {
- if (t3)
- return p2(t3);
- }
- writeStatistics(t3, e3, r4) {
- (t3 == null ? void 0 : t3.length) && (Array.isArray(t3[0]) || (t3 = t3.map((t4) => [t4.min, t4.max, t4.avg, t4.stddev])), e3[r4] = t3);
- }
- readStretchType(t3, e3) {
- let r4 = e3.stretchType;
- return "number" == typeof r4 && (r4 = a3[r4]), n5.read(r4);
- }
- clone() {
- return new d4({ stretchType: this.stretchType, outputMin: this.outputMin, outputMax: this.outputMax, useGamma: this.useGamma, computeGamma: this.computeGamma, statistics: y(this.statistics), gamma: y(this.gamma), sigmoidStrengthLevel: this.sigmoidStrengthLevel, numberOfStandardDeviations: this.numberOfStandardDeviations, minPercent: this.minPercent, maxPercent: this.maxPercent, colorRamp: y(this.colorRamp), histograms: y(this.histograms), dynamicRangeAdjustment: this.dynamicRangeAdjustment });
- }
- };
- e([y2({ types: m, json: { write: true } })], h3.prototype, "colorRamp", void 0), e([o2("colorRamp")], h3.prototype, "readColorRamp", null), e([y2({ type: Boolean, json: { write: true } })], h3.prototype, "computeGamma", void 0), e([y2({ type: Boolean, json: { write: { target: "dra" }, read: { source: "dra" } } })], h3.prototype, "dynamicRangeAdjustment", void 0), e([y2({ type: [Number], json: { write: true } })], h3.prototype, "gamma", void 0), e([y2({ type: Number, json: { write: true } })], h3.prototype, "maxPercent", void 0), e([y2({ type: Number, json: { write: true } })], h3.prototype, "minPercent", void 0), e([y2({ type: Number, json: { write: true } })], h3.prototype, "numberOfStandardDeviations", void 0), e([y2({ type: Number, json: { read: { source: "max" }, write: { target: "max" } } })], h3.prototype, "outputMax", void 0), e([y2({ type: Number, json: { read: { source: "min" }, write: { target: "min" } } })], h3.prototype, "outputMin", void 0), e([y2({ type: Number, json: { write: true } })], h3.prototype, "sigmoidStrengthLevel", void 0), e([y2({ json: { type: [[Number]], write: true } })], h3.prototype, "statistics", void 0), e([y2()], h3.prototype, "histograms", void 0), e([r2("statistics")], h3.prototype, "writeStatistics", null), e([y2({ type: Boolean, json: { write: true } })], h3.prototype, "useGamma", void 0), e([y2({ type: n5.apiValues, json: { type: n5.jsonValues, write: n5.write } })], h3.prototype, "stretchType", void 0), e([o2("stretchType", ["stretchType"])], h3.prototype, "readStretchType", null), e([r3({ rasterStretch: "raster-stretch" })], h3.prototype, "type", void 0), h3 = d4 = e([n("esri.renderers.RasterStretchRenderer")], h3);
- var y6 = h3;
- // node_modules/@arcgis/core/renderers/VectorFieldRenderer.js
- var u4;
- var Z = /* @__PURE__ */ new Set(["esriMetersPerSecond", "esriKilometersPerHour", "esriKnots", "esriFeetPerSecond", "esriMilesPerHour"]);
- var b = new s2({ beaufort_ft: "beaufort-ft", beaufort_km: "beaufort-km", beaufort_kn: "beaufort-kn", beaufort_m: "beaufort-m", beaufort_mi: "beaufort-mi", classified_arrow: "classified-arrow", ocean_current_kn: "ocean-current-kn", ocean_current_m: "ocean-current-m", simple_scalar: "simple-scalar", single_arrow: "single-arrow", wind_speed: "wind-barb" });
- var h4 = new s2({ flow_from: "flow-from", flow_to: "flow-to" });
- var E = u4 = class extends y5(l) {
- constructor(e3) {
- super(e3), this.attributeField = "Magnitude", this.flowRepresentation = "flow-from", this.rotationType = "arithmetic", this.style = "single-arrow", this.symbolTileSize = 50, this.type = "vector-field";
- }
- readInputUnit(e3, M2) {
- return Z.has(e3) ? c.fromJSON(e3) : null;
- }
- readOutputUnit(e3, M2) {
- return Z.has(e3) ? c.fromJSON(e3) : null;
- }
- get styleRenderer() {
- const e3 = this.style, M2 = this.attributeField, i5 = this._createStyleRenderer(e3);
- return i5.field = M2, i5;
- }
- get sizeVariables() {
- const e3 = [];
- if (this.visualVariables)
- for (const M2 of this.visualVariables)
- "size" === M2.type && e3.push(M2);
- if (0 === e3.length) {
- const M2 = new j2({ field: "Magnitude", minSize: 0.2 * this.symbolTileSize, maxSize: 0.8 * this.symbolTileSize });
- this.visualVariables ? this.visualVariables.push(M2) : this._set("visualVariables", [M2]), e3.push(M2);
- }
- return e3;
- }
- get rotationVariables() {
- const e3 = [];
- if (this.visualVariables)
- for (const M2 of this.visualVariables)
- "rotation" === M2.type && e3.push(M2);
- if (0 === e3.length) {
- const M2 = new n3({ field: "Direction", rotationType: this.rotationType });
- this.visualVariables ? this.visualVariables.push(M2) : this._set("visualVariables", [M2]), e3.push(M2);
- }
- return e3;
- }
- clone() {
- return new u4({ attributeField: this.attributeField, flowRepresentation: this.flowRepresentation, rotationType: this.rotationType, symbolTileSize: this.symbolTileSize, style: this.style, visualVariables: y(this.visualVariables), inputUnit: this.inputUnit, outputUnit: this.outputUnit });
- }
- async getGraphicsFromPixelData(e3, M2 = false, t3 = []) {
- var _a;
- const a5 = new Array(), I2 = l3(this.inputUnit, this.outputUnit), o5 = ((_a = this.rotationVariables[0]) == null ? void 0 : _a.rotationType) || this.rotationType, A2 = M2 ? d(e3.pixelBlock, "vector-uv", o5, I2) : g3(e3.pixelBlock, "vector-magdir", I2);
- if (t(A2))
- return a5;
- const s4 = e3.extent, d6 = r(A2.mask) && A2.mask.length > 0;
- let n7 = 0;
- const y8 = (s4.xmax - s4.xmin) / A2.width, C2 = (s4.ymax - s4.ymin) / A2.height;
- for (let r4 = 0; r4 < A2.height; r4++)
- for (let e4 = 0; e4 < A2.width; e4++, n7++) {
- let M3 = new w({ x: s4.xmin + e4 * y8 + y8 / 2, y: s4.ymax - r4 * C2 - C2 / 2, spatialReference: s4.spatialReference });
- M3 = (await v3(M3))[0];
- const I3 = t3.some((e5) => e5.intersects(M3));
- if ((!d6 || A2.mask[n7]) && !I3) {
- const e5 = { Magnitude: A2.pixels[0][n7], Direction: A2.pixels[1][n7] }, t4 = new g({ geometry: { type: "point", x: M3.x, y: M3.y, spatialReference: s4.spatialReference }, attributes: e5 });
- t4.symbol = this._getVisualVariablesAppliedSymbol(t4), a5.push(t4);
- }
- }
- return a5;
- }
- getSymbol(e3, M2) {
- }
- async getSymbolAsync(e3, M2) {
- }
- getSymbols() {
- return [];
- }
- getClassBreakInfos() {
- var _a;
- return (_a = this.styleRenderer) == null ? void 0 : _a.classBreakInfos;
- }
- getDefaultSymbol() {
- var _a;
- return (_a = this.styleRenderer) == null ? void 0 : _a.defaultSymbol;
- }
- _getDefaultSymbol(e3) {
- return new y4({ path: "M14,32 14,18 9,23 16,3 22,23 17,18 17,32 z", outline: new m2({ width: 0 }), size: 20, color: e3 || new l2([0, 92, 230]) });
- }
- _getVisualVariablesAppliedSymbol(e3) {
- var _a, _b;
- if (!e3)
- return;
- const M2 = (_b = (_a = this.styleRenderer) == null ? void 0 : _a.getSymbol(e3)) == null ? void 0 : _b.clone(), i5 = this.sizeVariables, t3 = this.rotationVariables;
- if (i5 && i5.length && this.sizeVariables.forEach((i6) => M(M2, T2([i6], e3))), t3 && t3.length) {
- const i6 = "flow-to" === this.flowRepresentation === ("ocean-current-kn" === this.style || "ocean-current-m" === this.style) ? 0 : 180;
- e3.attributes.Direction = e3.attributes.Direction + i6, this.rotationVariables.forEach((i7) => N(M2, m3(i7, e3), i7.axis));
- }
- return M2;
- }
- _createStyleRenderer(e3) {
- let M2 = { defaultSymbol: this._getDefaultSymbol(), classBreakInfos: [] };
- switch (e3) {
- case "single-arrow":
- M2 = this._createSingleArrowRenderer();
- break;
- case "beaufort-kn":
- M2 = this._createBeaufortKnotsRenderer();
- break;
- case "beaufort-m":
- M2 = this._createBeaufortMeterRenderer();
- break;
- case "beaufort-ft":
- M2 = this._createBeaufortFeetRenderer();
- break;
- case "beaufort-mi":
- M2 = this._createBeaufortMilesRenderer();
- break;
- case "beaufort-km":
- M2 = this._createBeaufortKilometersRenderer();
- break;
- case "ocean-current-m":
- M2 = this._createCurrentMeterRenderer();
- break;
- case "ocean-current-kn":
- M2 = this._createCurrentKnotsRenderer();
- break;
- case "simple-scalar":
- M2 = this._createSimpleScalarRenderer();
- break;
- case "wind-barb":
- M2 = this._createWindBarbsRenderer();
- break;
- case "classified-arrow":
- M2 = this._createClassifiedArrowRenderer();
- }
- return new _(M2);
- }
- _createSingleArrowRenderer() {
- return { defaultSymbol: this._getDefaultSymbol() };
- }
- _createBeaufortKnotsRenderer() {
- const e3 = [0, 1, 3, 6, 10, 16, 21, 27, 33, 40, 47, 55, 63], i5 = [[40, 146, 199], [89, 162, 186], [129, 179, 171], [160, 194, 155], [191, 212, 138], [218, 230, 119], [250, 250, 100], [252, 213, 83], [252, 179, 102], [250, 141, 52], [247, 110, 42], [240, 71, 29]];
- return { defaultSymbol: this._getDefaultSymbol(new l2([214, 47, 39])), classBreakInfos: this._getClassBreaks(e3, i5) };
- }
- _createBeaufortMeterRenderer() {
- const e3 = [0, 0.2, 1.8, 3.3, 5.4, 8.5, 11, 14.1, 17.2, 20.8, 24.4, 28.6, 32.7], i5 = [[69, 117, 181], [101, 137, 184], [132, 158, 186], [162, 180, 189], [192, 204, 190], [222, 227, 191], [255, 255, 191], [255, 220, 161], [250, 185, 132], [245, 152, 105], [237, 117, 81], [232, 21, 21]];
- return { defaultSymbol: this._getDefaultSymbol(new l2([214, 47, 39])), classBreakInfos: this._getClassBreaks(e3, i5) };
- }
- _createBeaufortFeetRenderer() {
- const e3 = this._getDefaultSymbol(new l2([214, 47, 39]));
- let i5 = [0, 0.2, 1.8, 3.3, 5.4, 8.5, 11, 14.1, 17.2, 20.8, 24.4, 28.6, 32.7];
- const t3 = [[69, 117, 181], [101, 137, 184], [132, 158, 186], [162, 180, 189], [192, 204, 190], [222, 227, 191], [255, 255, 191], [255, 220, 161], [250, 185, 132], [245, 152, 105], [237, 117, 81], [232, 21, 21]], a5 = 3.28084;
- i5 = i5.map((e4) => e4 * a5);
- return { defaultSymbol: e3, classBreakInfos: this._getClassBreaks(i5, t3) };
- }
- _createBeaufortMilesRenderer() {
- const e3 = this._getDefaultSymbol(new l2([214, 47, 39]));
- let i5 = [0, 0.2, 1.8, 3.3, 5.4, 8.5, 11, 14.1, 17.2, 20.8, 24.4, 28.6, 32.7];
- const t3 = [[69, 117, 181], [101, 137, 184], [132, 158, 186], [162, 180, 189], [192, 204, 190], [222, 227, 191], [255, 255, 191], [255, 220, 161], [250, 185, 132], [245, 152, 105], [237, 117, 81], [232, 21, 21]], a5 = 2.23694;
- i5 = i5.map((e4) => e4 * a5);
- return { defaultSymbol: e3, classBreakInfos: this._getClassBreaks(i5, t3) };
- }
- _createBeaufortKilometersRenderer() {
- const e3 = this._getDefaultSymbol(new l2([214, 47, 39]));
- let i5 = [0, 0.2, 1.8, 3.3, 5.4, 8.5, 11, 14.1, 17.2, 20.8, 24.4, 28.6, 32.7];
- const t3 = [[69, 117, 181], [101, 137, 184], [132, 158, 186], [162, 180, 189], [192, 204, 190], [222, 227, 191], [255, 255, 191], [255, 220, 161], [250, 185, 132], [245, 152, 105], [237, 117, 81], [232, 21, 21]], a5 = 3.6;
- i5 = i5.map((e4) => e4 * a5);
- return { defaultSymbol: e3, classBreakInfos: this._getClassBreaks(i5, t3) };
- }
- _createCurrentMeterRenderer() {
- const e3 = [0, 0.5, 1, 1.5, 2], i5 = [[78, 26, 153], [179, 27, 26], [202, 128, 26], [177, 177, 177]];
- return { defaultSymbol: this._getDefaultSymbol(new l2([177, 177, 177])), classBreakInfos: this._getClassBreaks(e3, i5) };
- }
- _createCurrentKnotsRenderer() {
- const e3 = [0, 0.25, 0.5, 1, 1.5, 2, 2.5, 3, 3.5, 4], i5 = [[0, 0, 0], [0, 37, 100], [78, 26, 153], [151, 0, 100], [179, 27, 26], [177, 78, 26], [202, 128, 26], [177, 179, 52], [177, 177, 177]];
- return { defaultSymbol: this._getDefaultSymbol(new l2([177, 177, 177])), classBreakInfos: this._getClassBreaks(e3, i5) };
- }
- _createClassifiedArrowRenderer() {
- var _a;
- const e3 = this._getDefaultSymbol(new l2([56, 168, 0]));
- let i5 = [0, 1e-6, 3.5, 7, 10.5, 14];
- if ((_a = this.sizeVariables) == null ? void 0 : _a.length) {
- const e4 = this.sizeVariables[0].minDataValue, M2 = this.sizeVariables[0].maxDataValue;
- if (e4 && M2) {
- const t4 = (M2 - e4) / 5;
- i5 = Array.from(Array(6).keys()).map((M3) => e4 + t4 * M3);
- }
- }
- const t3 = [[56, 168, 0], [139, 309, 0], [255, 255, 0], [255, 128, 0], [255, 0, 0]];
- return { defaultSymbol: e3, classBreakInfos: this._getClassBreaks(i5, t3) };
- }
- _createSimpleScalarRenderer() {
- return { defaultSymbol: n2.fromJSON({ imageData: "iVBORw0KGgoAAAANSUhEUgAAACsAAAArCAQAAABLVLlLAAAABGdBTUEAAYagMeiWXwAAAAJiS0dEAACqjSMyAAAACXBIWXMAAABIAAAASABGyWs+AAAC3ElEQVRIx9XXvW4cVRQH8N982btpsIREJECyiCXsxX4DKh6AliqGKCBBE2SlwlHgAbBD/AKmyEYUeQ1KahPZSZQvBCkQLTHZ7KGY8Xodz4w3a1NwbzVzz/znfJ//zbStVC5q3icKak9GAs2QIdDx3PtW/S011NW3p+M5Eomh11ipTIKe6+4LQzHaQ+G+63pIZNJJQXMpljwTwj1brpgx5w1zZlyx5Z4QnllEIm2xeeSUHBf0hV0bejo1Uh09G3aFvgXk7cCJFBc9EdaRVuHJJaOdKyTV2TVhYLMduNR0Q9gxL5GaaTDw8GzejrDRBpxWoGsySRW0dttKuattwNkIlFw2YXgzOdYq4Ox49PlM+JrKd5OusjTWhBuVxUfMX/KXXZ3WEmkuqa67wspR4BTbwtKr/5u4fFgStse/T7EifFPnnYl9zPq4vmUOPrRndgoHjDti1gOPqlyXoifcRNGQzUd31lDyfHmob1Gp35vSr+P6vilcQ5Egtyd8YF/ySg9NhPM+9M/IOaHwp5+PSZayXTvCogEUwlatC3J8LLwYtcWB8EuDXQVuCkV5/B4eNHb7wGBs87LBDS+xjdVSn09wq1G8dFM+9tSUhIGneLvUdniKxKpTYljCpu3j7rVWlHj/P23v4NPGUEyeCQnexe9lJjzEQqMjJs+EzNAX6B98dBZVRmroJx95x/A/6gln18EyfCUsl+qdXb/tjvfbw+mwforpUOBz4XLVoBwAn3aWnfeH246NyBXhrq7TTN5lNSP9RkU+puUJm3W2Tsdq0nZWM07srk7MwQrZSRysjjGWBLRJNsNbfj2JMR4AbxpU1XLAb9Mxfpsq5EjMuuiR8L0JiHOOBX3hiUvOmavN0nMueSzcceFk0BK4pMqLo7vDD1Z0qrtDx7Itt4Xwm9UqbMmk8S0Dtuzb2pvOU99Z1nLTOfleNmvfZfP2pYZmPfajwosKdDBNpacNpVGGsWX9CyDI8Xq/Sj6QAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDE0LTExLTEwVDAzOjE3OjU4LTA1OjAwF+tHyQAAACV0RVh0ZGF0ZTptb2RpZnkAMjAxNC0xMS0xMFQwMzoxNzo1OC0wNTowMGa2/3UAAAAASUVORK5CYII=", height: 20, width: 20, type: "esriPMS", angle: 0 }) };
- }
- _createWindBarbsRenderer() {
- const e3 = Array.from(Array(31).keys()).map((e4) => 5 * e4), M2 = [{ range: "0-5", path: "M20 20 M5 20 A15 15 0 1 0 35 20 A15 15 0 1 0 5 20 M20 20 M10 20 A10 10 0 1 0 30 20 A10 10 0 1 0 10 20", imageData: "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTIwIDIwIE01IDIwIEExNSAxNSAwIDEgMCAzNSAyMCBBMTUgMTUgMCAxIDAgNSAyMCBNMjAgMjAgTTEwIDIwIEExMCAxMCAwIDEgMCAzMCAyMCBBMTAgMTAgMCAxIDAgMTAgMjAiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4=" }, { range: "5-10", path: "M25 0 L25 40 M25 35 L17.5 37.5", imageData: "PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjkgMCAyNyA0NiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMjUgMCBMMjUgNDAgTTI1IDM1IEwxNy41IDM3LjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4=" }, { range: "10-15", path: "M25 0 L25 40 L10 45 L25 40", imageData: "PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjkgMCAyNyA0NiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMjUgMCBMMjUgNDAgTDEwIDQ1IEwyNSA0MCIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg==" }, { range: "15-20", path: "M25 0 L25 40 L10 45 L25 40 M25 35 L17.5 37.5", imageData: "PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjEyIDAgMTUgNDUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0NSBMMjUgNDAgTTI1IDM1IEwxNy41IDM3LjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4=" }, { range: "20-25", path: "M25 0 L25 40 L10 45 L25 40 M25 35 L10 40", imageData: "PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjkgMCAyNiA0NiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMjUgMCBMMjUgNDAgTDEwIDQ1IEwyNSA0MCBNMjUgMzUgTDEwIDQwIiBzdHlsZT0ic3Ryb2tlOnJnYigwLDAsMCk7c3Ryb2tlLXdpZHRoOjEuNSIvPgogPC9zdmc+" }, { range: "25-30", path: "M25 0 L25 40 L10 45 L25 40 M25 35 L10 40 L25 35 M25 30 L17.5 32.5", imageData: "PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjkgMCAyNiA0NiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMjUgMCBMMjUgNDAgTDEwIDQ1IEwyNSA0MCBNMjUgMzUgTDEwIDQwIEwyNSAzNSBNMjUgMzAgTDE3LjUgMzIuNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg==" }, { range: "30-35", path: "M25 0 L25 40 L10 45 L25 40 M25 35 L10 40 L25 35 M25 30 L10 35", imageData: "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjIwcHgiIHZpZXdCb3g9IjkgMCAyNiA0NiI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0NSBMMjUgNDAgTTI1IDM1IEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg==" }, { range: "35-40", path: "M25 0 L25 40 L10 45 L25 40 M25 35 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L17.5 27.5", imageData: "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjIwcHgiIHZpZXdCb3g9IjkgMCAyNiA0NiI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0NSBMMjUgNDAgTTI1IDM1IEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxNy41IDI3LjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4=" }, { range: "40-45", path: "M25 0 L25 40 L10 45 L25 40 M25 35 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30", imageData: "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjIwcHgiIHZpZXdCb3g9IjkgMCAyNiA0NiI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0NSBMMjUgNDAgTTI1IDM1IEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg==" }, { range: "45-50", path: "M25 0 L25 40 L10 45 L25 40 M25 35 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L17.5 22.5", imageData: "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjIwcHgiIHZpZXdCb3g9IjkgMCAyNiA0NiI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0NSBMMjUgNDAgTTI1IDM1IEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCBMMjUgMjUgTTI1IDIwIEwxNy41IDIyLjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4=" }, { range: "50-55", path: "M25 0 L25 40 L10 40 L25 35", imageData: "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjIwcHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4=" }, { range: "55-60", path: "M25 0 L25 40 L10 40 L25 35 M25 30 L17.5 32.5", imageData: "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjIwcHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxNy41IDMyLjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4=" }, { range: "60-65", path: "M25 0 L25 40 L10 40 L25 35 M25 30 L10 35", imageData: "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg==" }, { range: "65-70", path: "M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L17.5 27.5", imageData: "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxNy41IDI3LjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4=" }, { range: "70-75", path: "M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30", imageData: "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg==" }, { range: "75-80", path: "M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L17.5 22.5", imageData: "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCBMMjUgMjUgTTI1IDIwIEwxNy41IDIyLjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4=" }, { range: "80-85", path: "M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L10 25", imageData: "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCBMMjUgMjUgTTI1IDIwIEwxMCAyNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg==" }, { range: "85-90", path: "M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L10 25 L25 20 M25 15 L17.5 17.5", imageData: "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCBMMjUgMjUgTTI1IDIwIEwxMCAyNSBMMjUgMjAgTTI1IDE1IEwxNy41IDE3LjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4=" }, { range: "90-95", path: "M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L10 25 L25 20 M25 15 L10 20", imageData: "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCBMMjUgMjUgTTI1IDIwIEwxMCAyNSBMMjUgMjAgTTI1IDE1IEwxMCAyMCIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg==" }, { range: "95-100", path: "M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L10 25 L25 20 M25 15 L10 20 L25 15 M25 10 L17.5 12.5", imageData: "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCBMMjUgMjUgTTI1IDIwIEwxMCAyNSBMMjUgMjAgTTI1IDE1IEwxMCAyMCBMMjUgMTUgTTI1IDEwIEwxNy41IDEyLjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4=" }, { range: "100-105", path: "M25 0 L25 40 L10 40 L25 35 L10 35 L25 30", imageData: "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg==" }, { range: "105-110", path: "M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L17.5 27.5", imageData: "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDE3LjUgMjcuNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg==" }, { range: "110-115", path: "M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30", imageData: "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIiBzdHlsZT0ic3Ryb2tlOnJnYigwLDAsMCk7c3Ryb2tlLXdpZHRoOjEuNSIvPgogPC9zdmc+" }, { range: "115-120", path: "M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L17.5 22.5", imageData: "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDE3LjUgMjIuNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg==" }, { range: "120-125", path: "M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25", imageData: "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDEwIDI1IiBzdHlsZT0ic3Ryb2tlOnJnYigwLDAsMCk7c3Ryb2tlLXdpZHRoOjEuNSIvPgogPC9zdmc+" }, { range: "125-130", path: "M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25 M25 20 M25 15 L17.5 17.5", imageData: "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDEwIDI1IE0yNSAyMCBNMjUgMTUgTDE3LjUgMTcuNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg==" }, { range: "130-135", path: "M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25 M25 20 M25 15 L10 20", imageData: "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDEwIDI1IE0yNSAyMCBNMjUgMTUgTDEwIDIwIiBzdHlsZT0ic3Ryb2tlOnJnYigwLDAsMCk7c3Ryb2tlLXdpZHRoOjEuNSIvPgogPC9zdmc+" }, { range: "135-140", path: "M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25 M25 20 M25 15 L10 20 M25 15 M25 10 L17.5 12.5", imageData: "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDEwIDI1IE0yNSAyMCBNMjUgMTUgTDEwIDIwIE0yNSAxNSBNMjUgMTAgTDE3LjUgMTIuNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg==" }, { range: "140-145", path: "M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25 M25 20 M25 15 L10 20 M25 15 M25 10 L17.5 12.5", imageData: "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDEwIDI1IE0yNSAyMCBNMjUgMTUgTDEwIDIwIE0yNSAxNSBNMjUgMTAgTDEwIDE1IiBzdHlsZT0ic3Ryb2tlOnJnYigwLDAsMCk7c3Ryb2tlLXdpZHRoOjEuNSIvPgogPC9zdmc+" }, { range: "145-150", path: "M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25 M25 20 M25 15 L10 20 M25 15 M25 10 L17.5 12.5", imageData: "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDEwIDI1IE0yNSAyMCBNMjUgMTUgTDEwIDIwIE0yNSAxNSBNMjUgMTAgTDEwIDE1IE0yNSAxMCBNMjUgNSBMMTcuNSA3LjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4=" }], i5 = n2.fromJSON({ imageData: "iVBORw0KGgoAAAANSUhEUgAAACgAAAApCAQAAADtq6NDAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAJiS0dEAP+Hj8y/AAAACXBIWXMAAA7DAAAOwwHHb6hkAAAEY0lEQVRIx5XXWWxWRRQH8N+d+31tUdGAVjGglYJABFEBY91jfDAg7piYaFTccA++uMQEFRcSXlATtxiXqMQt4G4iisYl0ai4sIQYtVFZ1KIFKdTS0l4f7vRCS5fPebozc+bM/2z/Mzcx0AgSiUxXnKfIdMn875FIhX53U2n/B/s+kKM4UINTjTBZImixxnrv+9a2iL6zEoUBXcoudrWj/OtHm3wt02lfU9Qao9OnHvIhgmww84MEl1qnxfNmGrqHxAizLdPpC6chGcAxKGGcL+30gOERf1BSpUqVslQSV8d5ReZFe8VQ9avufJn31cWwlJV7iafKStGOE/1qvfH9qUxxu8ydUdmuSKbGO8YUdT2inKLG69pM70tliktl5qIkCAJGmusDG7Vqsc0WjZa4UBlBiA5YZIcjYzB7qDtH5kaUJFLs7RGZTZ42W4PRRmtwvbdt1+wGiaS4drEtDttdZYIDNVuAclR3vA3+dI3qHqmVSy7U6Tv1MScCPvPR7nIpFlsdCy3FdTLPGhK92e2CUITjMJ9ocwKxnsZqc3O3JwMma3d6UVLnyVxB4aXemZqvPqLdpJhW3KVVbY4yYImPo6M5Urv50fj+0z/FG9YaEiENs8UtMfXUaTeTePNHlhXfA1UU+2lyD1Il3Gtt9+adfpNG7dNlpg2U/T3KYLZ2dUWFdTgp3/rQ4sK973qnInV5TIf40x3dhvrJPBiqyWUo4wAtLqhQYS71qK+QKOFRywmGK/kpikzV6WMKhh58vGWs4TIJNjiEYLIuP8Tt4/zmLyqk+AyrJSbF+Qq1DgqRUPMxyl+9q3IQhX/rMCJ6tEunriDs1oSyQZKlr9AkhT2ZIARbJfaJS1vtVbHB+Rgi0RK/y1q1BWsEEyLoz40xtGKcARPVWB1BTPO7f4LNtpkUl1aoMbViLyZo0GRjPD3BxnxjqXeLYlvhqYrzMMG3HoyJXa3JjfnGlbYYFlP7Jh3qKsKY4hQ7TY0nG+xwRL61n63mxHtqNHosigyMLmClNwvuecFnOZB88nNBDzNkzhxEZaKMBVoKapggMzvHHXBEpNSSFAvtcFRsVn0bW8LlMmcXs+c0Kne3gRR32+zg4uXwjC6zit6Wt4a8LXVfcp/MtQXHn2ynGbuCmb8GvvFeJLEE82ReU9/n6+dkq2x3buG9Wn94smcgAw631RPR7BTH+kbmHReZoEpOdEe7zWqZl40s0JWs9Hmv7hjBHqPDwsjGKVJnWWqjbdZp1KhJi0aPmxYZsIRhlttgeF+Jlke41QcOQKoqilSb6HJzSvNG3G/UoWnxwsmt+sVaYwd63dRbqdnMyCPVeyRPvpYgdavM22oGKoMUVRbJfOWMwidJ8Zzb1UvmWK/VVUXzHaTjjrVYh1897HT7xxYEVUaa5SWb/WO+YUWa9SrwvigzM8YlzlYv2GSdVCYxxlBtVnnFq5olwp5/BEk/OLsf5LUmG2+inRJdVvjZ97ZH9/zP34ug1O91pf4p+D+JYBpvrKxfbwAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxNC0xMS0xMFQwMzoxMjowOS0wNTowMB9ViV0AAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTQtMTEtMTBUMDM6MTI6MDktMDU6MDBuCDHhAAAAAElFTkSuQmCC", height: 20, width: 20, type: "esriPMS", angle: 0 }), t3 = e3.map((t4, a5) => {
- let I2;
- if (a5 !== e3.length - 1)
- if (0 === a5)
- I2 = { minValue: t4, maxValue: e3[a5 + 1], symbol: i5 };
- else {
- const i6 = n2.fromJSON({ type: "esriPMS", imageData: M2[a5].imageData, contentType: "image/svg+xml", height: 32, width: 32, angle: 0 });
- I2 = { minValue: t4, maxValue: e3[a5 + 1], symbol: i6 };
- }
- return new a2(I2);
- });
- return { defaultSymbol: i5, classBreakInfos: t3 };
- }
- _getClassBreaks(e3, i5) {
- return i5.map((i6, t3) => new a2({ minValue: e3[t3], maxValue: e3[t3 + 1], symbol: this._getDefaultSymbol(new l2(i6)) }));
- }
- };
- e([y2({ type: String, json: { write: true } })], E.prototype, "attributeField", void 0), e([y2({ type: h4.apiValues, json: { type: h4.jsonValues, read: { reader: h4.read }, write: { writer: h4.write } } })], E.prototype, "flowRepresentation", void 0), e([y2({ type: ["geographic", "arithmetic"], json: { write: true } })], E.prototype, "rotationType", void 0), e([y2({ type: b.apiValues, json: { type: b.jsonValues, read: { reader: b.read }, write: { writer: b.write } } })], E.prototype, "style", void 0), e([y2({ json: { write: true } })], E.prototype, "symbolTileSize", void 0), e([y2({ type: c.apiValues, json: { type: c.jsonValues, write: { writer: c.write } } })], E.prototype, "inputUnit", void 0), e([o2("inputUnit")], E.prototype, "readInputUnit", null), e([y2({ type: c.apiValues, json: { type: c.jsonValues, read: { reader: c.read }, write: { writer: c.write } } })], E.prototype, "outputUnit", void 0), e([o2("outputUnit")], E.prototype, "readOutputUnit", null), e([r3({ vectorField: "vector-field" })], E.prototype, "type", void 0), e([y2({ type: _ })], E.prototype, "styleRenderer", null), e([y2({ type: j2 })], E.prototype, "sizeVariables", null), e([y2({ type: n3 })], E.prototype, "rotationVariables", null), E = u4 = e([n("esri.renderers.VectorFieldRenderer")], E);
- var x2 = E;
- // node_modules/@arcgis/core/rasterRenderers.js
- var l6 = { key: "type", base: null, typeMap: { "unique-value": C, "class-breaks": _, "raster-colormap": l5, "raster-stretch": y6, "vector-field": x2, "raster-shaded-relief": m5, flow: u3 } };
- var i3 = { ...l6, typeMap: { ...l6.typeMap } };
- delete i3.typeMap["vector-field"], delete i3.typeMap.flow;
- var f2 = { uniqueValue: C, classBreaks: _, rasterStretch: y6, rasterColormap: l5, vectorField: x2, rasterShadedRelief: m5, flowRenderer: u3 };
- function p5(e3) {
- return e3 && f2[e3.type] || null;
- }
- function u5(r4, s4) {
- if (!r4)
- return null;
- if ("classBreaks" === r4.type && r4.classificationMethod) {
- const e3 = r4.authoringInfo || { classificationMethod: "" };
- e3.classificationMethod = r4.classificationMethod, r4.authoringInfo = e3;
- }
- "vectorField" === r4.type && r4.visualVariables && !Array.isArray(r4.visualVariables) && (r4.visualVariables = [r4.visualVariables]);
- const t3 = p5(r4);
- if (t3) {
- const e3 = new t3();
- return e3.read(r4, s4), e3;
- }
- return s4 && s4.messages && r4 && s4.messages.push(new t2("renderer:unsupported", "Renderers of type '" + (r4.type || "unknown") + "' are not supported", { definition: r4, context: s4 })), null;
- }
- // node_modules/@arcgis/core/layers/support/rasterEnums.js
- var o4 = o()({ RSP_NearestNeighbor: "nearest", RSP_BilinearInterpolation: "bilinear", RSP_CubicConvolution: "cubic", RSP_Majority: "majority" });
- var i4 = o()({ esriNoDataMatchAny: "any", esriNoDataMatchAll: "all" });
- // node_modules/@arcgis/core/layers/support/RasterFunction.js
- var u6;
- var c6 = /* @__PURE__ */ new Set(["raster", "raster2", "dem", "fillraster"]);
- var p6 = /* @__PURE__ */ new Set(["rasters"]);
- var m6 = (t3) => t3 && t3.rasterFunction ? d5.fromJSON(t3) : t3;
- var f3 = (t3) => t3 && t3 instanceof d5 ? t3.toJSON() : t3;
- var l7 = (t3) => (t3 == null ? void 0 : t3.functionName) && !t3.declaredClass;
- var y7 = (t3) => l7(t3) ? new d5(t3) : t3;
- var F = (t3) => {
- if (null == t3)
- return null;
- t3 = y(t3);
- const r4 = {};
- for (const e3 of Object.keys(t3))
- c6.has(e3.toLowerCase()) ? r4[e3] = m6(t3[e3]) : p6.has(e3.toLowerCase()) && Array.isArray(t3[e3]) ? r4[e3] = t3[e3].map(m6) : r4[e3] = t3[e3];
- return r4;
- };
- var d5 = u6 = class extends l {
- constructor(t3) {
- super(t3), this.functionName = null, this.outputPixelType = "unknown", this.variableName = null, this.rasterFunctionDefinition = null;
- }
- set functionArguments(t3) {
- if (t3) {
- const r4 = Object.keys(t3);
- if (r4.some((r5) => c6.has(r5.toLowerCase()) && l7(t3[r5])) || r4.some((r5) => p6.has(r5.toLowerCase()) && Array.isArray(t3[r5]) && t3[r5].some((t4) => l7(t4)))) {
- t3 = y(t3);
- for (const e3 of r4)
- c6.has(e3.toLowerCase()) ? t3[e3] = y7(t3[e3]) : p6.has(e3.toLowerCase()) && Array.isArray(t3[e3]) && (t3[e3] = t3[e3].map((t4) => y7(t4)));
- }
- }
- this._set("functionArguments", t3);
- }
- readFunctionArguments(t3) {
- return F(t3);
- }
- writeFunctionArguments(t3, r4, e3) {
- const o5 = {};
- for (const n7 of Object.keys(t3))
- c6.has(n7.toLowerCase()) ? o5[n7] = f3(t3[n7]) : p6.has(n7.toLowerCase()) && Array.isArray(t3[n7]) ? o5[n7] = t3[n7].map(f3) : o5[n7] = f3(t3[n7]);
- r4[e3] = o5;
- }
- readFunctionName(t3, r4) {
- const e3 = r4.rasterFunctionInfos, o5 = r4.name;
- return o5 || (e3 && e3.length && "None" !== e3[0].name ? e3[0].name : r4.rasterFunctionDefinition ? r4.rasterFunctionDefinition.name : r4.rasterFunction);
- }
- clone() {
- return new u6({ functionName: this.functionName, functionArguments: y(this.functionArguments), outputPixelType: this.outputPixelType, variableName: this.variableName, rasterFunctionDefinition: y(this.rasterFunctionDefinition) });
- }
- };
- e([y2({ json: { type: Object, name: "rasterFunctionArguments" } })], d5.prototype, "functionArguments", null), e([o2("functionArguments")], d5.prototype, "readFunctionArguments", null), e([r2("functionArguments")], d5.prototype, "writeFunctionArguments", null), e([y2({ json: { type: String, write: { target: "rasterFunction" } } })], d5.prototype, "functionName", void 0), e([o2("functionName", ["rasterFunction", "rasterFunctionInfos", "rasterFunctionDefinition"])], d5.prototype, "readFunctionName", null), e([r3({ C128: "c128", C64: "c64", F32: "f32", F64: "f64", S16: "s16", S32: "s32", S8: "s8", U1: "u1", U16: "u16", U2: "u2", U32: "u32", U4: "u4", U8: "u8", UNKNOWN: "unknown" }, { ignoreUnknown: false }), y2({ json: { default: "unknown" } })], d5.prototype, "outputPixelType", void 0), e([y2({ type: String, json: { read: true, write: true } })], d5.prototype, "variableName", void 0), e([y2({ type: Object, json: { name: "rasterFunctionDefinition" } })], d5.prototype, "rasterFunctionDefinition", void 0), d5 = u6 = e([n("esri.layers.support.RasterFunction")], d5);
- var w3 = d5;
- // node_modules/@arcgis/core/layers/support/MultidimensionalSubset.js
- var p7;
- var m7 = { base: p, key: "type", typeMap: { extent: w2, polygon: v } };
- var u7 = p7 = class extends l {
- constructor(e3) {
- super(e3), this.areaOfInterest = null, this.subsetDefinitions = null;
- }
- get dimensions() {
- const { subsetDefinitions: e3 } = this;
- if (null == e3 || 0 === e3.length)
- return [];
- const t3 = /* @__PURE__ */ new Map();
- e3.forEach((e4) => {
- if (!e4.dimensionName)
- return;
- let s5, r4;
- if (Array.isArray(e4.values[0])) {
- const t4 = e4.values;
- s5 = t4[0][0], r4 = t4[e4.values.length - 1][1];
- } else {
- const t4 = e4.values;
- s5 = t4[0], r4 = t4[e4.values.length - 1];
- }
- if (t3.has(e4.dimensionName)) {
- const o5 = t3.get(e4.dimensionName);
- o5[0] = Math.min(s5, o5[0]), o5[1] = Math.max(r4, o5[1]);
- } else
- t3.set(e4.dimensionName, [s5, r4]);
- });
- const s4 = [];
- for (const r4 of t3)
- s4.push({ name: r4[0], extent: r4[1] });
- return s4;
- }
- get variables() {
- const { subsetDefinitions: e3 } = this;
- if (null == e3 || 0 === e3.length)
- return [];
- const t3 = /* @__PURE__ */ new Set();
- return e3.forEach((e4) => {
- e4.variableName && t3.add(e4.variableName);
- }), [...t3];
- }
- clone() {
- var _a;
- const e3 = (_a = this.subsetDefinitions) == null ? void 0 : _a.map((e4) => e4.clone()), t3 = this.areaOfInterest ? this.areaOfInterest.clone() : this.areaOfInterest;
- return new p7({ areaOfInterest: t3, subsetDefinitions: e3 });
- }
- };
- e([y2({ types: m7, json: { read: v2, write: true } })], u7.prototype, "areaOfInterest", void 0), e([y2({ readOnly: true })], u7.prototype, "dimensions", null), e([y2({ readOnly: true })], u7.prototype, "variables", null), e([y2({ type: [p4], json: { write: true } })], u7.prototype, "subsetDefinitions", void 0), u7 = p7 = e([n("esri.layers.support.MultidimensionalSubset")], u7);
- var c7 = u7;
- // node_modules/@arcgis/core/layers/support/RasterJobHandler.js
- var n6 = class {
- constructor() {
- this._workerThread = null, this._destroyed = false;
- }
- async initialize() {
- const e3 = await u2("RasterWorker");
- this._destroyed ? e3.close() : this._workerThread = e3;
- }
- destroy() {
- this._destroyed = true, this._workerThread && (this._workerThread.close(), this._workerThread = null);
- }
- async convertVectorFieldData(r4, o5) {
- if (!this._workerThread)
- throw new s("raster-jobhandler:no-connection", "no available worker connection");
- const n7 = await this._workerThread.invoke("convertVectorFieldData", { pixelBlock: r4.pixelBlock.toJSON(), type: r4.dataType }, o5);
- return n7 ? new g2(n7) : null;
- }
- async decode(r4, o5) {
- if (!this._workerThread)
- throw new s("raster-jobhandler:no-connection", "no available worker connection");
- const n7 = await this._workerThread.invoke("decode", r4, o5);
- return n7 ? new g2(n7) : null;
- }
- async symbolize(o5, n7) {
- if (!this._workerThread)
- throw new s("raster-jobhandler:no-connection", "no available worker connection");
- const a5 = { extent: o5.extent && o5.extent.toJSON(), pixelBlock: r(o5.pixelBlock) && o5.pixelBlock.toJSON(), simpleStretchParams: o5.simpleStretchParams, bandIds: o5.bandIds }, i5 = await this._workerThread.invoke("symbolize", a5, n7);
- return i5 ? new g2(i5) : null;
- }
- async updateSymbolizer(r4, o5) {
- var _a;
- if (!this._workerThread)
- throw new s("raster-jobhandler:no-connection", "no available worker connection");
- const t3 = (_a = r4 == null ? void 0 : r4.rendererJSON) == null ? void 0 : _a.histograms;
- await Promise.all(this._workerThread.broadcast("updateSymbolizer", { symbolizerJSON: r4.toJSON(), histograms: t3 }, o5));
- }
- async updateRasterFunction(r4, o5) {
- if (!this._workerThread)
- throw new s("raster-jobhandler:no-connection", "no available worker connection");
- await Promise.all(this._workerThread.broadcast("updateRasterFunction", { rasterFunctionJSON: r4.toJSON() }, o5));
- }
- async process(o5, n7) {
- var _a;
- if (!this._workerThread)
- throw new s("raster-jobhandler:no-connection", "no available worker connection");
- const a5 = await this._workerThread.invoke("process", { extent: (_a = o5.extent) == null ? void 0 : _a.toJSON(), primaryPixelBlocks: o5.primaryPixelBlocks.map((e3) => r(e3) ? e3.toJSON() : null), primaryRasterIds: o5.primaryRasterIds }, n7);
- return a5 ? new g2(a5) : null;
- }
- async stretch(r4, o5) {
- if (!this._workerThread)
- throw new s("raster-jobhandler:no-connection", "no available worker connection");
- if (!(r4 == null ? void 0 : r4.pixelBlock))
- return null;
- const n7 = { srcPixelBlock: r4.pixelBlock.toJSON(), stretchParams: r4.stretchParams }, a5 = await this._workerThread.invoke("stretch", n7, o5);
- return a5 ? new g2(a5) : null;
- }
- async split(r4, o5) {
- if (!this._workerThread)
- throw new s("raster-jobhandler:no-connection", "no available worker connection");
- if (!(r4 == null ? void 0 : r4.pixelBlock))
- return null;
- const n7 = { srcPixelBlock: r4.pixelBlock.toJSON(), tileSize: r4.tileSize, maximumPyramidLevel: r4.maximumPyramidLevel }, a5 = await this._workerThread.invoke("split", n7, o5);
- return a5 && a5.forEach((e3, r5) => {
- a5.set(r5, e3 ? g2.fromJSON(e3) : null);
- }), a5;
- }
- async estimateStatisticsHistograms(r4, o5) {
- if (!this._workerThread)
- throw new s("raster-jobhandler:no-connection", "no available worker connection");
- if (!(r4 == null ? void 0 : r4.pixelBlock))
- return null;
- const t3 = { srcPixelBlock: r4.pixelBlock.toJSON() };
- return await this._workerThread.invoke("estimateStatisticsHistograms", t3, o5);
- }
- async mosaicAndTransform(o5, n7) {
- var _a;
- if (!this._workerThread)
- throw new s("raster-jobhandler:no-connection", "no available worker connection");
- if (!((_a = o5 == null ? void 0 : o5.srcPixelBlocks) == null ? void 0 : _a.length))
- return { pixelBlock: null };
- const a5 = { ...o5, srcPixelBlocks: o5.srcPixelBlocks.map((e3) => r(e3) ? e3.toJSON() : null) }, i5 = await this._workerThread.invoke("mosaicAndTransform", a5, n7);
- return { pixelBlock: i5.pixelBlock ? new g2(i5.pixelBlock) : null, localNorthDirections: i5.localNorthDirections };
- }
- async createFlowMesh(r4, o5) {
- if (!this._workerThread)
- throw new s("raster-jobhandler:no-connection", "no available worker connection");
- const t3 = { buffer: r4.flowData.data.buffer, maskBuffer: r4.flowData.mask.buffer, width: r4.flowData.width, height: r4.flowData.height }, { meshType: n7, simulationSettings: a5 } = r4, i5 = await this._workerThread.invoke("createFlowMesh", { meshType: n7, flowData: t3, simulationSettings: a5 }, { ...o5, transferList: [t3.buffer, t3.maskBuffer] });
- return { vertexData: new Float32Array(i5.vertexBuffer), indexData: new Uint32Array(i5.indexBuffer) };
- }
- getProjectionOffsetGrid(o5, t3) {
- if (!this._workerThread)
- throw new s("raster-jobhandler:no-connection", "no available worker connection");
- const n7 = r(o5.datumTransformation) ? o5.datumTransformation.steps.map((e3) => ({ wkid: e3.wkid, wkt: e3.wkt, isInverse: e3.isInverse })) : null, a5 = r(o5.rasterTransform) ? o5.rasterTransform.toJSON() : null, i5 = { projectedExtent: o5.projectedExtent.toJSON(), srcBufferExtent: o5.srcBufferExtent.toJSON(), pixelSize: o5.pixelSize, hasWrapAround: o5.hasWrapAround, spacing: o5.spacing, datumTransformationSteps: n7, rasterTransform: a5, isAdaptive: o5.isAdaptive, includeGCSGrid: o5.includeGCSGrid };
- return this._workerThread.invoke("getProjectionOffsetGrid", i5, t3);
- }
- };
- // node_modules/@arcgis/core/renderers/support/rasterRendererHelper.js
- var w4 = 0.25;
- var x3 = a.fromJSON({ type: "multipart", colorRamps: [{ fromColor: [0, 0, 255], toColor: [0, 255, 255] }, { fromColor: [0, 255, 255], toColor: [255, 255, 0] }, { fromColor: [255, 255, 0], toColor: [255, 0, 0] }] });
- var T3 = a.fromJSON(i2[0]);
- var R = /* @__PURE__ */ new Set(["scientific", "standard-time", "vector-uv", "vector-magdir", "vector-u", "vector-v", "vector-magnitude", "vector-direction"]);
- function j3(e3, n7) {
- const { attributeTable: a5, colormap: r4 } = e3;
- if (K(e3)) {
- const n8 = Y(e3);
- if (r(n8))
- return n8;
- }
- if (r(r4)) {
- const n8 = U2(e3);
- if (r(n8))
- return n8;
- }
- if (r(a5)) {
- const n8 = F2(e3);
- if (r(n8))
- return n8;
- }
- return I(e3, n7);
- }
- function k2(e3, t3 = false) {
- const n7 = ["raster-stretch"];
- return O(e3) && n7.push("raster-colormap"), W(e3) && n7.push("unique-value"), J(e3, t3) && n7.push("class-breaks"), A(e3) && n7.push("raster-shaded-relief"), K(e3) && n7.push("vector-field"), Q(e3) && n7.push("flow"), n7;
- }
- function V(e3, t3, n7) {
- const a5 = ["nearest", "bilinear", "cubic", "majority"].find((e4) => e4 === (n7 == null ? void 0 : n7.toLowerCase()));
- if ("Map" === t3)
- return a5 != null ? a5 : "bilinear";
- if ("standard-time" === e3.dataType)
- return a5 != null ? a5 : "nearest";
- return "thematic" === e3.dataType || e3.attributeTable || e3.colormap ? "nearest" === a5 || "majority" === a5 ? a5 : "nearest" : a5 != null ? a5 : "bilinear";
- }
- function I(e3, a5) {
- e3 = S(e3, a5 == null ? void 0 : a5.variableName);
- const { bandCount: r4 } = e3;
- let { bandIds: s4, stretchType: i5 } = a5 || {};
- (s4 == null ? void 0 : s4.some((e4) => e4 >= r4)) && (s4 = null);
- let o5 = e2(e3.statistics), l9 = e2(e3.histograms);
- r4 > 1 ? (s4 = (s4 == null ? void 0 : s4.length) ? s4 : L(e3), o5 = null == o5 ? null : s4 == null ? void 0 : s4.map((e4) => o5[e4]), l9 = null == l9 ? null : s4 == null ? void 0 : s4.map((e4) => l9[e4])) : s4 = [0], null == i5 && (i5 = q(e3));
- let u9 = false;
- switch (i5) {
- case "none":
- u9 = false;
- break;
- case "percent-clip":
- u9 = !(l9 == null ? void 0 : l9.length);
- break;
- default:
- u9 = !(o5 == null ? void 0 : o5.length);
- }
- const { dataType: c8 } = e3, m9 = 1 === (s4 == null ? void 0 : s4.length) && R.has(c8) ? x3 : null, f5 = new y6({ stretchType: i5, dynamicRangeAdjustment: u9, colorRamp: m9, outputMin: 0, outputMax: 255, gamma: 1 === (s4 == null ? void 0 : s4.length) ? [1] : [1, 1, 1], useGamma: false });
- return "percent-clip" === i5 ? f5.maxPercent = f5.minPercent = w4 : "standard-deviation" === i5 && (f5.numberOfStandardDeviations = 2), u9 || !r(e3.multidimensionalInfo) && !(a5 == null ? void 0 : a5.includeStatisticsInStretch) || ("percent-clip" === i5 ? f5.histograms = l9 : "min-max" !== i5 && "standard-deviation" !== i5 || (f5.statistics = o5)), f5;
- }
- function S(e3, a5) {
- if (null == a5)
- return e3;
- let r4 = e2(e3.statistics), s4 = e2(e3.histograms);
- const { multidimensionalInfo: o5 } = e3;
- if (a5 && r(o5)) {
- const e4 = o5.variables.find((e5) => e5.name === a5);
- if (e4) {
- const { statistics: t3, histograms: n7 } = e4;
- (t3 == null ? void 0 : t3.length) && (r4 = t3), (n7 == null ? void 0 : n7.length) && (s4 = n7);
- }
- }
- return u.fromJSON({ ...e3.toJSON(), statistics: r4, histograms: s4 });
- }
- function L(e3) {
- const t3 = e3.bandCount;
- if (1 === t3)
- return null;
- if (2 === t3)
- return [0];
- const n7 = e3.keyProperties && e3.keyProperties.BandProperties;
- let a5;
- if (n7 && n7.length === t3) {
- const { red: e4, green: t4, blue: r4, nir: s4 } = E2(n7);
- null != e4 && null != t4 && null != r4 ? a5 = [e4, t4, r4] : null != s4 && null != e4 && null != t4 && (a5 = [s4, e4, t4]);
- }
- return !a5 && t3 >= 3 && (a5 = [0, 1, 2]), a5;
- }
- function E2(e3) {
- var _a;
- const t3 = {};
- for (let n7 = 0; n7 < e3.length; n7++) {
- const a5 = e3[n7], r4 = (_a = a5.BandName) == null ? void 0 : _a.toLowerCase();
- if ("red" === r4)
- t3.red = n7;
- else if ("green" === r4)
- t3.green = n7;
- else if ("blue" === r4)
- t3.blue = n7;
- else if ("nearinfrared" === r4 || "nearinfrared_1" === r4 || "nir" === r4)
- t3.nir = n7;
- else if (a5.WavelengthMax && a5.WavelengthMin) {
- const e4 = a5.WavelengthMin, r5 = a5.WavelengthMax;
- null == t3.blue && e4 >= 410 && e4 <= 480 && r5 >= 480 && r5 <= 540 ? t3.blue = n7 : null == t3.green && e4 >= 490 && e4 <= 560 && r5 >= 560 && r5 <= 610 ? t3.green = n7 : null == t3.red && e4 >= 595 && e4 <= 670 && r5 >= 660 && r5 <= 730 ? t3.red = n7 : null == t3.nir && e4 >= 700 && e4 <= 860 && r5 >= 800 && r5 <= 950 && (t3.nir = n7);
- }
- }
- return t3;
- }
- function q(e3) {
- let n7 = "percent-clip";
- const { pixelType: a5, dataType: r4, histograms: s4, statistics: i5 } = e3;
- return "u8" !== a5 || "processed" !== r4 && r(s4) && r(i5) ? "u8" === a5 || "elevation" === r4 || R.has(r4) ? n7 = "min-max" : r(s4) ? n7 = "percent-clip" : r(i5) && (n7 = "min-max") : n7 = "none", n7;
- }
- function F2(n7, a5, r4, s4) {
- if (!W(n7, a5))
- return null;
- const { attributeTable: i5, statistics: o5 } = n7, u9 = N2(i5, a5), c8 = z(i5, "red"), p8 = z(i5, "green"), d6 = z(i5, "blue"), b2 = new j(), h5 = [], g4 = /* @__PURE__ */ new Set(), v4 = !!(c8 && p8 && d6);
- if (r(i5))
- i5.features.forEach((t3) => {
- const n8 = t3.attributes[u9.name];
- if (!g4.has(t3.attributes[u9.name]) && null != n8) {
- g4.add(n8);
- const a6 = v4 && ("single" === c8.type || "double" === c8.type) && ("single" === p8.type || "double" === p8.type) && ("single" === d6.type || "double" === d6.type) && !i5.features.some((e3) => e3.attributes[c8.name] > 1 || e3.attributes[p8.name] > 1 || e3.attributes[d6.name] > 1), r5 = a6 ? 255 : 1;
- h5.push(new n4({ value: t3.attributes[u9.name], label: t3.attributes[u9.name] + "", symbol: { type: "simple-fill", style: "solid", outline: null, color: new l2(v4 ? [t3.attributes[c8.name] * r5, t3.attributes[p8.name] * r5, t3.attributes[d6.name] * r5, 1] : [0, 0, 0, 0]) } }));
- }
- });
- else if (o5 == null ? void 0 : o5[0])
- for (let t3 = o5[0].min; t3 <= o5[0].max; t3++)
- h5.push(new n4({ value: t3, label: t3.toString(), symbol: { type: "simple-fill", style: "solid", outline: null, color: new l2([0, 0, 0, 0]) } }));
- if (h5.sort((e3, t3) => e3.value && "string" == typeof e3.value.valueOf() ? 0 : e3.value > t3.value ? 1 : -1), !v4) {
- const t3 = h(T3, h5.length);
- h5.forEach((n8, a6) => n8.symbol.color = new l2(t3[a6].slice(1, 4))), b2.colorRamp = T3;
- }
- if (r4 || s4) {
- const t3 = r4 || h(s4, h5.length).map((e3) => e3.slice(1));
- h5.forEach((n8, a6) => n8.symbol.color = new l2(t3[a6])), b2.colorRamp = s4;
- }
- return new C({ field: u9.name, uniqueValueInfos: h5, authoringInfo: b2 });
- }
- function N2(e3, n7, a5) {
- let r4;
- return r(e3) ? (r4 = n7 ? e3.fields.find((e4) => n7.toLowerCase() === e4.name.toLowerCase()) : P(e3.fields), r4 || (a5 || (r4 = e3.fields.find((e4) => "string" === e4.type)), r4 || (r4 = z(e3, "value")))) : r4 = new y3({ name: "value" }), r4;
- }
- function P(e3) {
- let t3;
- for (let n7 = 0; n7 < e3.length; n7++) {
- const a5 = e3[n7].name.toLowerCase();
- if ("string" === e3[n7].type) {
- if (a5.startsWith("class")) {
- t3 = e3[n7];
- break;
- }
- null == t3 && (a5.endsWith("name") || a5.endsWith("type")) && (t3 = e3[n7]);
- }
- }
- return t3;
- }
- function z(e3, t3) {
- return t(e3) ? null : e3.fields.find((e4) => e4.name.toLowerCase() === t3);
- }
- function W(e3, t3) {
- const { attributeTable: n7, bandCount: r4 } = e3;
- if (t(n7) && H(e3))
- return true;
- if (t(n7) || r4 > 1)
- return false;
- if (t3) {
- if (null == n7.fields.find((e4) => e4.name.toLowerCase() === t3.toLowerCase()))
- return false;
- }
- return true;
- }
- function O(e3) {
- const { bandCount: n7, colormap: a5 } = e3;
- return r(a5) && a5.length > 0 && 1 === n7;
- }
- function U2(e3) {
- if (!O(e3))
- return null;
- let a5;
- const { attributeTable: r4, colormap: s4 } = e3;
- if (r(r4)) {
- const e4 = z(r4, "value"), t3 = N2(r4, null, true);
- "string" === t3.type && (a5 = {}, r4.features.forEach((n7) => {
- const r5 = n7.attributes;
- a5[r5[e4.name]] = t3 ? r5[t3.name] : r5[e4.name];
- }));
- }
- return l5.createFromColormap(e2(s4), a5);
- }
- function A(e3) {
- const { bandCount: t3, dataType: n7, pixelType: a5 } = e3;
- return "elevation" === n7 || "generic" === n7 && 1 === t3 && ("s16" === a5 || "s32" === a5 || "f32" === a5 || "f64" === a5);
- }
- function J(e3, n7 = false) {
- const { attributeTable: a5, bandCount: r4 } = e3;
- return 1 === r4 && (!n7 || r(a5) || r(e3.histograms));
- }
- function H(e3) {
- var _a, _b, _c;
- return ["u8", "s8"].includes(e3.pixelType) && null != ((_b = (_a = e3.statistics) == null ? void 0 : _a[0]) == null ? void 0 : _b.min) && null != ((_c = e3.statistics[0]) == null ? void 0 : _c.max) && 1 === e3.bandCount;
- }
- function K(e3) {
- const { dataType: t3 } = e3;
- return "vector-uv" === t3 || "vector-magdir" === t3;
- }
- function Q(e3) {
- const { dataType: t3 } = e3;
- return "vector-uv" === t3 || "vector-magdir" === t3;
- }
- var X = /* @__PURE__ */ new Map([["m/s", "meter-per-second"], ["km/h", "kilometer-per-hour"], ["knots", "knots"], ["ft/s", "feet-per-second"], ["mph", "mile-per-hour"]]);
- function Y(e3) {
- if (!K(e3))
- return null;
- let n7;
- if (r(e3.statistics) && e3.statistics.length && ("vector-magdir" === e3.dataType || "vector-uv" === e3.dataType)) {
- const { minMagnitude: t3, maxMagnitude: a6 } = te(e3.dataType, e3.statistics);
- n7 = [{ type: "size", field: "Magnitude", minSize: 10, maxSize: 40, minDataValue: t3, maxDataValue: a6 }];
- }
- const a5 = r(e3.multidimensionalInfo) ? X.get(e3.multidimensionalInfo.variables[0].unit) : null, r4 = new x2({ visualVariables: n7, inputUnit: a5, rotationType: "geographic" });
- return r4.visualVariables = [...r4.sizeVariables, ...r4.rotationVariables], r4;
- }
- function Z2(e3) {
- var _a;
- return { color: (_a = e3.symbolLayers[0].material) == null ? void 0 : _a.color, type: "esriSFS", style: "esriSFSSolid" };
- }
- function $2(e3) {
- var _a, _b, _c;
- if ("uniqueValue" === e3.type) {
- const t3 = e3.uniqueValueInfos, n7 = t3 == null ? void 0 : t3[0].symbol;
- return ((_a = n7 == null ? void 0 : n7.symbolLayers) == null ? void 0 : _a.length) && (e3.uniqueValueInfos = t3 == null ? void 0 : t3.map((e4) => ({ value: e4.value, label: e4.label, symbol: e4.symbol ? Z2(e4.symbol) : null }))), e3;
- }
- if ("classBreaks" === e3.type) {
- const t3 = e3.classBreakInfos;
- return ((_c = (_b = t3[0].symbol) == null ? void 0 : _b.symbolLayers) == null ? void 0 : _c.length) && (e3.classBreakInfos = t3.map((e4) => ({ classMinValue: e4.classMinValue, classMaxValue: e4.classMaxValue, label: e4.label, symbol: e4.symbol ? Z2(e4.symbol) : null }))), e3;
- }
- return e3;
- }
- function te(e3, t3) {
- let n7, a5;
- if ("vector-magdir" === e3)
- n7 = t3[0].min, a5 = t3[0].max;
- else {
- const e4 = t3[0].min, r4 = t3[0].max, s4 = t3[1].min, i5 = t3[1].max;
- n7 = 0, a5 = Math.max(Math.abs(e4), Math.abs(s4), Math.abs(r4), Math.abs(i5));
- }
- return { minMagnitude: n7, maxMagnitude: a5 };
- }
- // node_modules/@arcgis/core/rest/imageService/fetchRasterInfo.js
- async function u8(u9, m9, f5) {
- var _a, _b, _c, _d, _e, _f, _g;
- const p8 = f(u9), { renderingRule: c8, sourceJSON: d6 } = m9 || {}, h5 = c8 ? JSON.stringify(c8.rasterFunctionDefinition || c8) : null, g4 = s3({ ...p8.query, renderingRule: h5, f: "json" }), v4 = i(g4, f5);
- u9 = p8.path;
- const y8 = d6 || await U(u9, v4).then((e3) => e3.data), S2 = y8.hasRasterAttributeTable ? U(`${u9}/rasterAttributeTable`, v4) : null, V2 = y8.hasColormap ? U(`${u9}/colormap`, v4) : null, x4 = y8.hasHistograms ? U(`${u9}/histograms`, v4) : null, b2 = y8.currentVersion >= 10.3 ? U(`${u9}/keyProperties`, v4) : null, D = y8.hasMultidimensions ? U(`${u9}/multidimensionalInfo`, v4) : null, R2 = await Promise.allSettled([S2, V2, x4, b2, D]);
- let T4 = null;
- if (y8.minValues && y8.minValues.length === y8.bandCount) {
- T4 = [];
- for (let e3 = 0; e3 < y8.minValues.length; e3++)
- T4.push({ min: y8.minValues[e3], max: y8.maxValues[e3], avg: y8.meanValues[e3], stddev: y8.stdvValues[e3] });
- }
- const j4 = w2.fromJSON(y8.extent), w5 = Math.ceil(j4.width / y8.pixelSizeX - 0.1), J2 = Math.ceil(j4.height / y8.pixelSizeY - 0.1), N3 = k.fromJSON(y8.spatialReference || y8.extent.spatialReference), O2 = "fulfilled" === R2[0].status && R2[0].value ? x.fromJSON(R2[0].value.data) : null, I2 = "fulfilled" === R2[1].status ? (_a = R2[1].value) == null ? void 0 : _a.data.colormap : null, z2 = "fulfilled" === R2[2].status ? (_b = R2[2].value) == null ? void 0 : _b.data.histograms : null, C2 = "fulfilled" === R2[3].status ? (_d = (_c = R2[3].value) == null ? void 0 : _c.data) != null ? _d : {} : {}, $3 = "fulfilled" === R2[4].status ? (_e = R2[4].value) == null ? void 0 : _e.data.multidimensionalInfo : null;
- ((_f = $3 == null ? void 0 : $3.variables) == null ? void 0 : _f.length) && $3.variables.forEach((e3) => {
- var _a2;
- ((_a2 = e3.statistics) == null ? void 0 : _a2.length) && e3.statistics.forEach((e4) => {
- e4.avg = e4.mean, e4.stddev = e4.standardDeviation;
- });
- });
- const { defaultVariable: P2, serviceDataType: E3 } = y8;
- P2 && P2 !== C2.DefaultVariable && (C2.DefaultVariable = P2), E3 && E3.includes("esriImageServiceDataTypeVector") && !E3.includes(C2.DataType) && (C2.DataType = E3.replace("esriImageServiceDataType", ""));
- let M2 = y8.noDataValue;
- return ((_g = y8.noDataValues) == null ? void 0 : _g.length) && y8.noDataValues.some((e3) => e3 !== M2) && (M2 = y8.noDataValues), new u({ width: w5, height: J2, bandCount: y8.bandCount, extent: w2.fromJSON(y8.extent), spatialReference: N3, pixelSize: new w({ x: y8.pixelSizeX, y: y8.pixelSizeY, spatialReference: N3 }), pixelType: y8.pixelType.toLowerCase(), statistics: T4, attributeTable: O2, colormap: I2, histograms: z2, keyProperties: C2, noDataValue: M2, multidimensionalInfo: $3 });
- }
- function m8(e3, t3, a5) {
- return u8(e3, { sourceJSON: t3 }, a5);
- }
- function f4(e3, t3, a5) {
- return u8(e3, { renderingRule: t3 }, a5);
- }
- export {
- l6 as l,
- i3 as i,
- u5 as u,
- w3 as w,
- o4 as o,
- i4 as i2,
- c7 as c,
- n6 as n,
- j3 as j,
- k2 as k,
- V,
- L,
- $2 as $,
- m8 as m,
- f4 as f
- };
- //# sourceMappingURL=chunk-F3LA3K3M.js.map
|