(self.webpackChunkRemoteClient = self.webpackChunkRemoteClient || []).push([
  [1831],
  {
    49500: (e, t, n) => {
      'use strict';
      n.d(t, { a: () => o, i: () => s });
      var r = n(76506);
      function s(e) {
        return (
          (e = e || r.g.location.hostname),
          c.some((t) => {
            var n;
            return null != (null == (n = e) ? void 0 : n.match(t));
          })
        );
      }
      function o(e, t) {
        return e && (t = t || r.g.location.hostname)
          ? null != t.match(l) || null != t.match(i)
            ? e.replace('static.arcgis.com', 'staticdev.arcgis.com')
            : null != t.match(a) || null != t.match(m)
            ? e.replace('static.arcgis.com', 'staticqa.arcgis.com')
            : e
          : e;
      }
      const l = /^devext.arcgis.com$/,
        a = /^qaext.arcgis.com$/,
        i = /^[\w-]*\.mapsdevext.arcgis.com$/,
        m = /^[\w-]*\.mapsqa.arcgis.com$/,
        c = [/^([\w-]*\.)?[\w-]*\.zrh-dev-local.esri.com$/, l, a, /^jsapps.esri.com$/, i, m];
    },
    71831: (e, t, n) => {
      'use strict';
      n.r(t), n.d(t, { d: () => p, e: () => d, f: () => w, r: () => g, s: () => C });
      var r = n(82058),
        s = n(96467),
        o = n(49500),
        l = n(60991),
        a = n(32101),
        i = n(49900),
        m = n(67477),
        c = n(76506),
        u = n(38742),
        y = n(16218),
        f = n(34635),
        b = n(61847);
      const p = () => !!(0, c.h)('enable-feature:disable-context-navigation'),
        d = () => !!(0, c.h)('enable-feature:direct-3d-object-feature-layer-display'),
        h = {};
      function w(e, t, n) {
        return e.styleUrl
          ? (function (e, t) {
              return N(e, t).then((t) => ({ data: t.data, baseUrl: (0, a.Yd)(e), styleUrl: e }));
            })(e.styleUrl, n)
          : e.styleName
          ? (function (e, t, n) {
              const r = t.portal || i.Z.getDefault();
              let s;
              const o = `${r.url} - ${r.user && r.user.username} - ${e}`;
              return (
                h[o] ||
                  (h[o] = (function (e, t, n) {
                    return t
                      .load(n)
                      .then(() => {
                        const r = new m.Z({
                          disableExtraQuery: !0,
                          query: `owner:${$} AND type:${v} AND typekeywords:"${e}"`,
                        });
                        return t.queryItems(r, n);
                      })
                      .then(({ results: t }) => {
                        let r = null;
                        const s = e.toLowerCase();
                        if (t && Array.isArray(t))
                          for (const e of t)
                            if (
                              e.typeKeywords.some((e) => e.toLowerCase() === s) &&
                              e.type === v &&
                              e.owner === $
                            ) {
                              r = e;
                              break;
                            }
                        if (!r)
                          throw new l.Z(
                            'symbolstyleutils:style-not-found',
                            `The style '${e}' could not be found`,
                            { styleName: e },
                          );
                        return r.load(n);
                      });
                  })(e, r, n)
                    .then((e) => ((s = e), e.fetchData()))
                    .then((t) => ({ data: t, baseUrl: s.itemUrl, styleName: e }))),
                h[o]
              );
            })(e.styleName, t, n)
          : Promise.reject(
              new l.Z(
                'symbolstyleutils:style-url-and-name-missing',
                'Either styleUrl or styleName is required to resolve a style',
              ),
            );
      }
      function g(e, t, n, r) {
        return e.name
          ? e.styleName && 'Esri2DPointSymbolsStyle' === e.styleName
            ? (function (e, t, n) {
                const r = U.replace(/\{SymbolName\}/gi, e.name);
                return N(r, n).then((e) => {
                  const n = Z(e.data);
                  return (0, y.i)(n, {
                    portal: t.portal,
                    url: (0, a.mN)((0, a.Yd)(r)),
                    origin: 'portal-item',
                  });
                });
              })(e, t, r)
            : w(e, t, r).then((s) => S(s, e.name, t, n, r))
          : Promise.reject(
              new l.Z(
                'symbolstyleutils:style-symbol-reference-name-missing',
                'Missing name in style symbol reference',
              ),
            );
      }
      function S(e, t, n, r, i) {
        const m = e.data,
          p = { portal: n.portal, url: (0, a.mN)(e.baseUrl), origin: 'portal-item' },
          d = m.items.find((e) => e.name === t);
        if (!d) {
          const e = `The symbol name '${t}' could not be found`;
          return Promise.reject(
            new l.Z('symbolstyleutils:symbol-name-not-found', e, { symbolName: t }),
          );
        }
        let h = (0, u.f)(
            (function (e, t) {
              if ('cimRef' === t) return e.cimRef;
              if (e.formatInfos && !(0, c.h)('enable-feature:force-wosr'))
                for (const t of e.formatInfos) if ('gltf' === t.type) return t.href;
              return e.webRef;
            })(d, r),
            p,
          ),
          w = d.thumbnail && d.thumbnail.href;
        const g = d.thumbnail && d.thumbnail.imageData;
        (0, o.i)() && ((h = (0, o.a)(h)), (w = (0, o.a)(w)));
        const S = { portal: n.portal, url: (0, a.mN)((0, a.Yd)(h)), origin: 'portal-item' };
        return N(h, i).then((o) => {
          const l = 'cimRef' === r ? Z(o.data) : o.data,
            a = (0, y.i)(l, S);
          if (a && (0, s.dU)(a)) {
            if (w) {
              const e = (0, u.f)(w, p);
              a.thumbnail = new b.T({ url: e });
            } else g && (a.thumbnail = new b.T({ url: `data:image/png;base64,${g}` }));
            e.styleUrl
              ? (a.styleOrigin = new f.S({ portal: n.portal, styleUrl: e.styleUrl, name: t }))
              : e.styleName &&
                (a.styleOrigin = new f.S({ portal: n.portal, styleName: e.styleName, name: t }));
          }
          return a;
        });
      }
      function Z(e) {
        return null === e || 'CIMSymbolReference' === e.type
          ? e
          : { type: 'CIMSymbolReference', symbol: e };
      }
      function N(e, t) {
        const n = { responseType: 'json', query: { f: 'json' }, ...t };
        return (0, r.default)((0, a.Fv)(e), n);
      }
      const $ = 'esri_en',
        v = 'Style',
        U =
          'https://cdn.arcgis.com/sharing/rest/content/items/220936cc6ed342c9937abd8f180e7d1e/resources/styles/cim/{SymbolName}.json?f=json';
      var C = Object.freeze({
        __proto__: null,
        fetchStyle: w,
        resolveWebStyleSymbol: g,
        fetchSymbolFromStyle: S,
        styleNameFromItem: function (e) {
          for (const t of e.typeKeywords)
            if (/^Esri.*Style$/.test(t) && 'Esri Style' !== t) return t;
        },
      });
    },
    9075: (e, t, n) => {
      'use strict';
      n.d(t, { t: () => p });
      var r = n(96467),
        s = n(60991),
        o = n(51589),
        l = n(62259),
        a = n(78548),
        i = n(77894),
        m = n(60669),
        c = n(11305),
        u = n(5909),
        y = n(44790),
        f = n(48208),
        b = n(48243);
      function p(e, t = !1, n = !1, p = !0) {
        if (!e) return { symbol: null };
        let d;
        if ((0, r.dU)(e) || e instanceof o.Z) d = e.clone();
        else if ('cim' === e.type) d = l.Z.fromCIMSymbol(e);
        else if (e instanceof a.Z) d = i.Z.fromSimpleLineSymbol(e);
        else if (e instanceof m.Z) d = l.Z.fromSimpleMarkerSymbol(e);
        else if (e instanceof c.Z) d = l.Z.fromPictureMarkerSymbol(e);
        else if (e instanceof u.Z) d = y.Z.fromSimpleFillSymbol(e);
        else {
          if (!(e instanceof f.Z))
            return {
              error: new s.Z(
                'symbol-conversion:unsupported-2d-symbol',
                `2D symbol of type '${e.type || e.declaredClass}' is unsupported in 3D`,
                { symbol: e },
              ),
            };
          d = p ? b.Z.fromTextSymbol(e) : l.Z.fromTextSymbol(e);
        }
        if ((t && (d.id = e.id), n && (0, r.dU)(d)))
          for (let e = 0; e < d.symbolLayers.length; ++e)
            d.symbolLayers.getItemAt(e)._ignoreDrivers = !0;
        return { symbol: d };
      }
    },
    16218: (e, t, n) => {
      'use strict';
      n.d(t, { i: () => m, c: () => i });
      var r = n(96467),
        s = n(60991),
        o = n(34635),
        l = n(51589),
        a = n(9075);
      function i(e, t, n, r) {
        const i = (function (e, t, n) {
          if (!e) return null;
          if (n && 'web-scene' === n.origin && !(e instanceof o.Z) && !(e instanceof l.Z)) {
            const r =
              'cim' !== e.type
                ? (0, a.t)(e)
                : {
                    symbol: null,
                    error: new s.Z(
                      'symbol-conversion:unsupported-cim-symbol',
                      'CIM symbol is unsupported in web scenes',
                      { symbol: e },
                    ),
                  };
            return r.symbol
              ? r.symbol.write(t, n)
              : (n.messages &&
                  n.messages.push(
                    new s.Z(
                      'symbol:unsupported',
                      `Symbols of type '${e.declaredClass}' are not supported in scenes. Use 3D symbology instead when working with WebScene and SceneView`,
                      { symbol: e, context: n, error: r.error },
                    ),
                  ),
                null);
          }
          return n && 'web-map' === n.origin && 'web-style' === e.type
            ? (n.messages &&
                n.messages.push(
                  new s.Z(
                    'symbol:unsupported',
                    `Symbols of type '${e.declaredClass}' are not supported in webmaps. Use CIMSymbol instead when working with WebMap in MapView.`,
                    { symbol: e, context: n },
                  ),
                ),
              null)
            : e.write(t, n);
        })(e, {}, r);
        i && (t[n] = i);
      }
      function m(e, t) {
        return (0, r.S9)(e, null, t);
      }
      n(91306),
        n(76506),
        n(92143),
        n(31450),
        n(71552),
        n(40642),
        n(17533),
        n(81172),
        n(86656),
        n(22723),
        n(63571),
        n(34250),
        n(59465),
        n(57251),
        n(97714),
        n(2906),
        n(14249),
        n(9801),
        n(53523),
        n(74673),
        n(21972),
        n(23639),
        n(91055),
        n(27794),
        n(6906),
        n(50406),
        n(26341),
        n(42911),
        n(46826),
        n(45433),
        n(60217),
        n(74569),
        n(21801),
        n(73796),
        n(60947),
        n(91597),
        n(86787),
        n(35132),
        n(89623),
        n(84069),
        n(44567),
        n(98380),
        n(92896),
        n(22781),
        n(32422),
        n(30776),
        n(48027),
        n(54174),
        n(82426),
        n(63130),
        n(25696),
        n(66396),
        n(42775),
        n(95834),
        n(34394),
        n(57150),
        n(76726),
        n(20444),
        n(76393),
        n(78548),
        n(2497),
        n(49906),
        n(46527),
        n(48649),
        n(9960),
        n(3101),
        n(5853),
        n(39141),
        n(32101),
        n(38742),
        n(48243),
        n(15324),
        n(76996),
        n(90814),
        n(16796),
        n(16955),
        n(22401),
        n(10401),
        n(49900),
        n(66284),
        n(33921),
        n(3482),
        n(82058),
        n(88762),
        n(73173),
        n(22739),
        n(20543),
        n(67477),
        n(78533),
        n(74653),
        n(91091),
        n(58943),
        n(70737),
        n(8487),
        n(17817),
        n(15459),
        n(61847),
        n(77894),
        n(55187),
        n(8586),
        n(44509),
        n(69814),
        n(11305),
        n(62259),
        n(44790),
        n(5909),
        n(60669),
        n(48208);
    },
  },
]);
