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O,GAAEyJ,KAAaE,IAC5B,OAAI6D,EAAkCxN,KAGtCwN,EAAkCxN,GAAOmO,OAAMC,EAAAA,EAAAA,IAAc,YAAW3E,kBAA0BE,WAC/F0E,MAAMC,IACFA,EAAKC,IACRd,IAEKa,EAAKE,UAEXC,OAAM,IAAMhB,OATND,EAAkCxN,EAW5C,CAuBQ0O,EAAiB9F,EAAAA,EAAAA,GAAmBe,EAAM,OAAQuE,EAC1D,CAYDH,eAAeY,EAAelF,EAAWE,GACvCF,EAAUoE,sBAAwBI,EAAcxE,EAAWE,GAC3DgE,EAAclE,EACf,CAUD,SAASmF,EAAgBnF,GACvBA,EAAUoF,iBAAmBC,CAC9B,CAQD,SAASC,EAAmBtF,GAC1BA,EAAUoF,sBAAmBjO,CAC9B,CACD,SAASkO,IACPnB,EAAcpN,KACf","sources":["../node_modules/@arcgis/core/node_modules/@esri/calcite-components/dist/components/guid.js","../node_modules/@arcgis/core/node_modules/@esri/calcite-components/dist/components/key.js","../node_modules/@arcgis/core/node_modules/@esri/calcite-components/dist/components/loader.js","../node_modules/@arcgis/core/node_modules/@esri/calcite-components/dist/components/locale.js","../node_modules/@arcgis/core/node_modules/@esri/calcite-components/dist/components/observers.js","../node_modules/@arcgis/core/node_modules/@esri/calcite-components/dist/components/t9n.js"],"sourcesContent":["/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n * v1.0.8-next.4\n */\nfunction gen(counts) {\n return counts\n .map((count) => {\n let out = \"\";\n for (let i = 0; i < count; i++) {\n out += (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1);\n }\n return out;\n })\n .join(\"-\");\n}\nconst guid = () => gen([2, 1, 1, 1, 3]);\n\nexport { guid as g };\n","/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n * v1.0.8-next.4\n */\nfunction isActivationKey(key) {\n return key === \"Enter\" || key === \" \";\n}\nconst numberKeys = [\"0\", \"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\"];\n\nexport { isActivationKey as i, numberKeys as n };\n","/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n * v1.0.8-next.4\n */\nimport { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client/index.js';\nimport { g as guid } from './guid.js';\n\nconst loaderCss = \"@charset \\\"UTF-8\\\";@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing);--calcite-floating-ui-z-index:600}:host([hidden]){display:none}:host{position:relative;margin-inline:auto;display:none;align-items:center;justify-content:center;opacity:1;min-block-size:var(--calcite-loader-size);font-size:var(--calcite-loader-font-size);stroke:var(--calcite-ui-brand);stroke-width:3;fill:none;transform:scale(1, 1);animation:loader-color-shift calc(var(--calcite-internal-animation-timing-slow) * 2) alternate-reverse infinite linear;padding-block:var(--calcite-loader-padding, 4rem)}:host([scale=s]){--calcite-loader-font-size:var(--calcite-font-size--2);--calcite-loader-size:2rem;--calcite-loader-size-inline:0.75rem}:host([scale=m]){--calcite-loader-font-size:var(--calcite-font-size-0);--calcite-loader-size:4rem;--calcite-loader-size-inline:1rem}:host([scale=l]){--calcite-loader-font-size:var(--calcite-font-size-2);--calcite-loader-size:6rem;--calcite-loader-size-inline:1.5rem}:host([no-padding]){padding-block:0px}:host{display:flex}.loader__text{display:block;text-align:center;font-size:var(--calcite-font-size--2);line-height:1rem;color:var(--calcite-ui-text-1);margin-block-start:calc(var(--calcite-loader-size) + 1.5rem)}.loader__percentage{position:absolute;display:block;text-align:center;color:var(--calcite-ui-text-1);font-size:var(--calcite-loader-font-size);inline-size:var(--calcite-loader-size);inset-inline-start:50%;margin-inline-start:calc(var(--calcite-loader-size) / 2 * -1);line-height:0.25;transform:scale(1, 1)}.loader__svgs{position:absolute;overflow:visible;opacity:1;inline-size:var(--calcite-loader-size);block-size:var(--calcite-loader-size);inset-inline-start:50%;margin-inline-start:calc(var(--calcite-loader-size) / 2 * -1);transform:scale(1, 1)}.loader__svg{position:absolute;inset-block-start:0px;transform-origin:center;overflow:visible;inset-inline-start:0;inline-size:var(--calcite-loader-size);block-size:var(--calcite-loader-size);animation-iteration-count:infinite;animation-timing-function:linear;animation-name:loader-clockwise}@supports (display: grid){.loader__svg--1{animation-name:loader-offset-1}.loader__svg--2{animation-name:loader-offset-2}.loader__svg--3{animation-name:loader-offset-3}}:host([type=determinate]){animation:none;stroke:var(--calcite-ui-border-3)}:host([type=determinate]) .loader__svg--3{animation:none;stroke:var(--calcite-ui-brand);stroke-dasharray:150.79632;transform:rotate(-90deg);transition:all var(--calcite-internal-animation-timing-fast) linear}:host([inline]){position:relative;margin:0px;animation:none;stroke:currentColor;stroke-width:2;padding-block:0px;block-size:var(--calcite-loader-size-inline);min-block-size:var(--calcite-loader-size-inline);inline-size:var(--calcite-loader-size-inline);margin-inline-end:calc(var(--calcite-loader-size-inline) * 0.5);vertical-align:calc(var(--calcite-loader-size-inline) * -1 * 0.2)}:host([inline]) .loader__svgs{inset-block-start:0px;margin:0px;inset-inline-start:0;inline-size:var(--calcite-loader-size-inline);block-size:var(--calcite-loader-size-inline)}:host([inline]) .loader__svg{inline-size:var(--calcite-loader-size-inline);block-size:var(--calcite-loader-size-inline)}:host([complete]){opacity:0;transform:scale(0.75, 0.75);transform-origin:center;transition:opacity var(--calcite-internal-animation-timing-medium) linear 1000ms, transform var(--calcite-internal-animation-timing-medium) linear 1000ms}:host([complete]) .loader__svgs{opacity:0;transform:scale(0.75, 0.75);transform-origin:center;transition:opacity calc(180ms * var(--calcite-internal-duration-factor)) linear 800ms, transform calc(180ms * var(--calcite-internal-duration-factor)) linear 800ms}:host([complete]) .loader__percentage{color:var(--calcite-ui-brand);transform:scale(1.05, 1.05);transform-origin:center;transition:color var(--calcite-internal-animation-timing-medium) linear, transform var(--calcite-internal-animation-timing-medium) linear}.loader__svg--1{stroke-dasharray:27.9252444444% 139.6262222222%;animation-duration:calc(var(--calcite-internal-animation-timing-slow) * 2.4)}@keyframes loader-offset-1{0%{stroke-dasharray:27.9252444444% 251.3272%;stroke-dashoffset:0}50%{stroke-dasharray:139.6262222222% 139.6262222222%;stroke-dashoffset:-83.7757333333%}100%{stroke-dasharray:27.9252444444% 251.3272%;stroke-dashoffset:-279.2524444444%}}.loader__svg--2{stroke-dasharray:55.8504888889% 139.6262222222%;animation-duration:calc(var(--calcite-internal-animation-timing-slow) * 3.2)}@keyframes loader-offset-2{0%{stroke-dasharray:55.8504888889% 223.4019555556%;stroke-dashoffset:0}50%{stroke-dasharray:139.6262222222% 139.6262222222%;stroke-dashoffset:-97.7383555556%}100%{stroke-dasharray:55.8504888889% 223.4019555556%;stroke-dashoffset:-279.2524444444%}}.loader__svg--3{stroke-dasharray:13.9626222222% 139.6262222222%;animation-duration:calc(var(--calcite-internal-animation-timing-slow) * 3.867)}@keyframes loader-offset-3{0%{stroke-dasharray:13.9626222222% 265.2898222222%;stroke-dashoffset:0}50%{stroke-dasharray:139.6262222222% 139.6262222222%;stroke-dashoffset:-76.7944222222%}100%{stroke-dasharray:13.9626222222% 265.2898222222%;stroke-dashoffset:-279.2524444444%}}@keyframes loader-color-shift{0%{stroke:var(--calcite-ui-brand)}33%{stroke:var(--calcite-ui-brand-press)}66%{stroke:var(--calcite-ui-brand-hover)}100%{stroke:var(--calcite-ui-brand)}}@keyframes loader-clockwise{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}\";\n\nconst Loader = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {\n constructor() {\n super();\n this.__registerHost();\n this.__attachShadow();\n this.inline = false;\n this.label = undefined;\n this.scale = \"m\";\n this.type = undefined;\n this.value = 0;\n this.text = \"\";\n }\n //--------------------------------------------------------------------------\n //\n // Lifecycle\n //\n //--------------------------------------------------------------------------\n render() {\n const { el, inline, label, scale, text, type, value } = this;\n const id = el.id || guid();\n const radiusRatio = 0.45;\n const size = inline ? this.getInlineSize(scale) : this.getSize(scale);\n const radius = size * radiusRatio;\n const viewbox = `0 0 ${size} ${size}`;\n const isDeterminate = type === \"determinate\";\n const circumference = 2 * radius * Math.PI;\n const progress = (value / 100) * circumference;\n const remaining = circumference - progress;\n const valueNow = Math.floor(value);\n const hostAttributes = {\n \"aria-valuenow\": valueNow,\n \"aria-valuemin\": 0,\n \"aria-valuemax\": 100,\n complete: valueNow === 100\n };\n const svgAttributes = { r: radius, cx: size / 2, cy: size / 2 };\n const determinateStyle = { \"stroke-dasharray\": `${progress} ${remaining}` };\n return (h(Host, { \"aria-label\": label, id: id, role: \"progressbar\", ...(isDeterminate ? hostAttributes : {}) }, h(\"div\", { class: \"loader__svgs\" }, h(\"svg\", { \"aria-hidden\": \"true\", class: \"loader__svg loader__svg--1\", viewBox: viewbox }, h(\"circle\", { ...svgAttributes })), h(\"svg\", { \"aria-hidden\": \"true\", class: \"loader__svg loader__svg--2\", viewBox: viewbox }, h(\"circle\", { ...svgAttributes })), h(\"svg\", { \"aria-hidden\": \"true\", class: \"loader__svg loader__svg--3\", viewBox: viewbox, ...(isDeterminate ? { style: determinateStyle } : {}) }, h(\"circle\", { ...svgAttributes }))), text && h(\"div\", { class: \"loader__text\" }, text), isDeterminate && h(\"div\", { class: \"loader__percentage\" }, value)));\n }\n //--------------------------------------------------------------------------\n //\n // Private Methods\n //\n //--------------------------------------------------------------------------\n /**\n * Return the proper sizes based on the scale property\n *\n * @param scale\n */\n getSize(scale) {\n return {\n s: 32,\n m: 56,\n l: 80\n }[scale];\n }\n getInlineSize(scale) {\n return {\n s: 12,\n m: 16,\n l: 20\n }[scale];\n }\n get el() { return this; }\n static get style() { return loaderCss; }\n}, [1, \"calcite-loader\", {\n \"inline\": [516],\n \"label\": [1],\n \"scale\": [513],\n \"type\": [513],\n \"value\": [2],\n \"text\": [1]\n }]);\nfunction defineCustomElement() {\n if (typeof customElements === \"undefined\") {\n return;\n }\n const components = [\"calcite-loader\"];\n components.forEach(tagName => { switch (tagName) {\n case \"calcite-loader\":\n if (!customElements.get(tagName)) {\n customElements.define(tagName, Loader);\n }\n break;\n } });\n}\ndefineCustomElement();\n\nexport { Loader as L, defineCustomElement as d };\n","/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n * v1.0.8-next.4\n */\nimport { v as containsCrossShadowBoundary, r as closestElementCrossShadowBoundary } from './dom.js';\nimport { n as numberKeys } from './key.js';\nimport { c as createObserver } from './observers.js';\n\nconst defaultMinusSignRegex = new RegExp(\"-\", \"g\");\nconst unnecessaryDecimalRegex = new RegExp(\"\\\\.?0+$\");\n// adopted from https://stackoverflow.com/a/66939244\nclass BigDecimal {\n constructor(input) {\n this.add = (num) => BigDecimal.fromBigInt(this.value + new BigDecimal(num).value);\n this.subtract = (num) => BigDecimal.fromBigInt(this.value - new BigDecimal(num).value);\n this.multiply = (num) => BigDecimal._divRound(this.value * new BigDecimal(num).value, BigDecimal.SHIFT);\n this.divide = (num) => BigDecimal._divRound(this.value * BigDecimal.SHIFT, new BigDecimal(num).value);\n if (input instanceof BigDecimal) {\n return input;\n }\n const [integers, decimals] = String(input).split(\".\").concat(\"\");\n this.value =\n BigInt(integers + decimals.padEnd(BigDecimal.DECIMALS, \"0\").slice(0, BigDecimal.DECIMALS)) +\n BigInt(BigDecimal.ROUNDED && decimals[BigDecimal.DECIMALS] >= \"5\");\n this.isNegative = input.charAt(0) === \"-\";\n }\n getIntegersAndDecimals() {\n const s = this.value\n .toString()\n .replace(defaultMinusSignRegex, \"\")\n .padStart(BigDecimal.DECIMALS + 1, \"0\");\n const integers = s.slice(0, -BigDecimal.DECIMALS);\n const decimals = s.slice(-BigDecimal.DECIMALS).replace(unnecessaryDecimalRegex, \"\");\n return { integers, decimals };\n }\n toString() {\n const { integers, decimals } = this.getIntegersAndDecimals();\n return `${this.isNegative ? \"-\" : \"\"}${integers}${decimals.length ? \".\" + decimals : \"\"}`;\n }\n formatToParts(formatter) {\n const { integers, decimals } = this.getIntegersAndDecimals();\n const parts = formatter.numberFormatter.formatToParts(BigInt(integers));\n this.isNegative && parts.unshift({ type: \"minusSign\", value: formatter.minusSign });\n if (decimals.length) {\n parts.push({ type: \"decimal\", value: formatter.decimal });\n decimals.split(\"\").forEach((char) => parts.push({ type: \"fraction\", value: char }));\n }\n return parts;\n }\n format(formatter) {\n const { integers, decimals } = this.getIntegersAndDecimals();\n const integersFormatted = `${this.isNegative ? formatter.minusSign : \"\"}${formatter.numberFormatter.format(BigInt(integers))}`;\n const decimalsFormatted = decimals.length\n ? `${formatter.decimal}${decimals\n .split(\"\")\n .map((char) => formatter.numberFormatter.format(Number(char)))\n .join(\"\")}`\n : \"\";\n return `${integersFormatted}${decimalsFormatted}`;\n }\n}\n// Configuration: constants\nBigDecimal.DECIMALS = 100; // number of decimals on all instances\nBigDecimal.ROUNDED = true; // numbers are truncated (false) or rounded (true)\nBigDecimal.SHIFT = BigInt(\"1\" + \"0\".repeat(BigDecimal.DECIMALS)); // derived constant\nBigDecimal._divRound = (dividend, divisor) => BigDecimal.fromBigInt(dividend / divisor + (BigDecimal.ROUNDED ? ((dividend * BigInt(2)) / divisor) % BigInt(2) : BigInt(0)));\nBigDecimal.fromBigInt = (bigint) => Object.assign(Object.create(BigDecimal.prototype), { value: bigint });\nfunction isValidNumber(numberString) {\n return !(!numberString || isNaN(Number(numberString)));\n}\nfunction parseNumberString(numberString) {\n if (!numberString || !stringContainsNumbers(numberString)) {\n return \"\";\n }\n return sanitizeExponentialNumberString(numberString, (nonExpoNumString) => {\n let containsDecimal = false;\n const result = nonExpoNumString\n .split(\"\")\n .filter((value, i) => {\n if (value.match(/\\./g) && !containsDecimal) {\n containsDecimal = true;\n return true;\n }\n if (value.match(/\\-/g) && i === 0) {\n return true;\n }\n return numberKeys.includes(value);\n })\n .reduce((string, part) => string + part);\n return isValidNumber(result) ? new BigDecimal(result).toString() : \"\";\n });\n}\n// regex for number sanitization\nconst allLeadingZerosOptionallyNegative = /^([-0])0+(?=\\d)/;\nconst decimalOnlyAtEndOfString = /(?!^\\.)\\.$/;\nconst allHyphensExceptTheStart = /(?!^-)-/g;\nconst isNegativeDecimalOnlyZeros = /^-\\b0\\b\\.?0*$/;\nconst sanitizeNumberString = (numberString) => sanitizeExponentialNumberString(numberString, (nonExpoNumString) => {\n const sanitizedValue = nonExpoNumString\n .replace(allHyphensExceptTheStart, \"\")\n .replace(decimalOnlyAtEndOfString, \"\")\n .replace(allLeadingZerosOptionallyNegative, \"$1\");\n return isValidNumber(sanitizedValue)\n ? isNegativeDecimalOnlyZeros.test(sanitizedValue)\n ? sanitizedValue\n : new BigDecimal(sanitizedValue).toString()\n : nonExpoNumString;\n});\nfunction sanitizeExponentialNumberString(numberString, func) {\n if (!numberString) {\n return numberString;\n }\n const firstE = numberString.toLowerCase().indexOf(\"e\") + 1;\n if (!firstE) {\n return func(numberString);\n }\n return numberString\n .replace(/[eE]*$/g, \"\")\n .substring(0, firstE)\n .concat(numberString.slice(firstE).replace(/[eE]/g, \"\"))\n .split(/[eE]/)\n .map((section, i) => (i === 1 ? func(section.replace(/\\./g, \"\")) : func(section)))\n .join(\"e\")\n .replace(/^e/, \"1e\");\n}\nfunction stringContainsNumbers(string) {\n return numberKeys.some((number) => string.includes(number));\n}\n\nconst defaultLocale = \"en\";\nconst t9nLocales = [\n \"ar\",\n \"bg\",\n \"bs\",\n \"ca\",\n \"cs\",\n \"da\",\n \"de\",\n \"el\",\n defaultLocale,\n \"es\",\n \"et\",\n \"fi\",\n \"fr\",\n \"he\",\n \"hr\",\n \"hu\",\n \"id\",\n \"it\",\n \"ja\",\n \"ko\",\n \"lt\",\n \"lv\",\n \"no\",\n \"nl\",\n \"pl\",\n \"pt-BR\",\n \"pt-PT\",\n \"ro\",\n \"ru\",\n \"sk\",\n \"sl\",\n \"sr\",\n \"sv\",\n \"th\",\n \"tr\",\n \"uk\",\n \"vi\",\n \"zh-CN\",\n \"zh-HK\",\n \"zh-TW\"\n];\nconst locales = [\n \"ar\",\n \"bg\",\n \"bs\",\n \"ca\",\n \"cs\",\n \"da\",\n \"de\",\n \"de-CH\",\n \"el\",\n defaultLocale,\n \"en-AU\",\n \"en-CA\",\n \"en-GB\",\n \"es\",\n \"es-MX\",\n \"et\",\n \"fi\",\n \"fr\",\n \"fr-CH\",\n \"he\",\n \"hi\",\n \"hr\",\n \"hu\",\n \"id\",\n \"it\",\n \"it-CH\",\n \"ja\",\n \"ko\",\n \"lt\",\n \"lv\",\n \"mk\",\n \"no\",\n \"nl\",\n \"pl\",\n \"pt\",\n \"pt-PT\",\n \"ro\",\n \"ru\",\n \"sk\",\n \"sl\",\n \"sr\",\n \"sv\",\n \"th\",\n \"tr\",\n \"uk\",\n \"vi\",\n \"zh-CN\",\n \"zh-HK\",\n \"zh-TW\"\n];\nconst numberingSystems = [\n \"arab\",\n \"arabext\",\n \"bali\",\n \"beng\",\n \"deva\",\n \"fullwide\",\n \"gujr\",\n \"guru\",\n \"hanidec\",\n \"khmr\",\n \"knda\",\n \"laoo\",\n \"latn\",\n \"limb\",\n \"mlym\",\n \"mong\",\n \"mymr\",\n \"orya\",\n \"tamldec\",\n \"telu\",\n \"thai\",\n \"tibt\"\n];\nconst isNumberingSystemSupported = (numberingSystem) => numberingSystems.includes(numberingSystem);\nconst browserNumberingSystem = new Intl.NumberFormat().resolvedOptions().numberingSystem;\nconst defaultNumberingSystem = browserNumberingSystem === \"arab\" || !isNumberingSystemSupported(browserNumberingSystem)\n ? \"latn\"\n : browserNumberingSystem;\nconst getSupportedNumberingSystem = (numberingSystem) => isNumberingSystemSupported(numberingSystem) ? numberingSystem : defaultNumberingSystem;\n/**\n * Gets the locale that best matches the context.\n *\n * @param locale – the BCP 47 locale code\n * @param context - specifies whether the locale code should match in the context of CLDR or T9N (translation)\n */\nfunction getSupportedLocale(locale, context = \"cldr\") {\n const contextualLocales = context === \"cldr\" ? locales : t9nLocales;\n if (!locale) {\n return defaultLocale;\n }\n if (contextualLocales.includes(locale)) {\n return locale;\n }\n locale = locale.toLowerCase();\n // we support both 'nb' and 'no' (BCP 47) for Norwegian but only `no` has corresponding bundle\n if (locale === \"nb\") {\n return \"no\";\n }\n // we use `pt-BR` as it will have the same translations as `pt`, which has no corresponding bundle\n if (context === \"t9n\" && locale === \"pt\") {\n return \"pt-BR\";\n }\n if (locale.includes(\"-\")) {\n locale = locale.replace(/(\\w+)-(\\w+)/, (_match, language, region) => `${language}-${region.toUpperCase()}`);\n if (!contextualLocales.includes(locale)) {\n locale = locale.split(\"-\")[0];\n }\n }\n // we can `zh-CN` as base translation for chinese locales which has no corresponding bundle.\n if (locale === \"zh\") {\n return \"zh-CN\";\n }\n if (!contextualLocales.includes(locale)) {\n console.warn(`Translations for the \"${locale}\" locale are not available and will fall back to the default, English (en).`);\n return defaultLocale;\n }\n return locale;\n}\nconst connectedComponents = new Set();\n/**\n * This utility sets up internals for messages support.\n *\n * It needs to be called in `connectedCallback` before any logic that depends on locale\n *\n * @param component\n */\nfunction connectLocalized(component) {\n updateEffectiveLocale(component);\n if (connectedComponents.size === 0) {\n mutationObserver?.observe(document.documentElement, {\n attributes: true,\n attributeFilter: [\"lang\"],\n subtree: true\n });\n }\n connectedComponents.add(component);\n}\n/**\n * This is only exported for components that implemented the now deprecated `locale` prop.\n *\n * Do not use this utils for new components.\n *\n * @param component\n */\nfunction updateEffectiveLocale(component) {\n component.effectiveLocale = getLocale(component);\n}\n/**\n * This utility tears down internals for messages support.\n *\n * It needs to be called in `disconnectedCallback`\n *\n * @param component\n */\nfunction disconnectLocalized(component) {\n connectedComponents.delete(component);\n if (connectedComponents.size === 0) {\n mutationObserver.disconnect();\n }\n}\nconst mutationObserver = createObserver(\"mutation\", (records) => {\n records.forEach((record) => {\n const el = record.target;\n connectedComponents.forEach((component) => {\n const inUnrelatedSubtree = !containsCrossShadowBoundary(el, component.el);\n if (inUnrelatedSubtree) {\n return;\n }\n const closestLangEl = closestElementCrossShadowBoundary(component.el, \"[lang]\");\n if (!closestLangEl) {\n component.effectiveLocale = defaultLocale;\n return;\n }\n const closestLang = closestLangEl.lang;\n component.effectiveLocale =\n // user set lang=\"\" means unknown language, so we use default\n closestLangEl.hasAttribute(\"lang\") && closestLang === \"\" ? defaultLocale : closestLang;\n });\n });\n});\n/**\n * This util helps resolve a component's locale.\n * It will also fall back on the deprecated `locale` if a component implemented this previously.\n *\n * @param component\n */\nfunction getLocale(component) {\n return (component.el.lang ||\n closestElementCrossShadowBoundary(component.el, \"[lang]\")?.lang ||\n document.documentElement.lang ||\n defaultLocale);\n}\n/**\n * This util formats and parses numbers for localization\n */\nclass NumberStringFormat {\n constructor() {\n this.delocalize = (numberString) => \n // For performance, (de)localization is skipped if the formatter isn't initialized.\n // In order to localize/delocalize, e.g. when lang/numberingSystem props are not default values,\n // `numberFormatOptions` must be set in a component to create and cache the formatter.\n this._numberFormatOptions\n ? sanitizeExponentialNumberString(numberString, (nonExpoNumString) => nonExpoNumString\n .trim()\n .replace(new RegExp(`[${this._minusSign}]`, \"g\"), \"-\")\n .replace(new RegExp(`[${this._group}]`, \"g\"), \"\")\n .replace(new RegExp(`[${this._decimal}]`, \"g\"), \".\")\n .replace(new RegExp(`[${this._digits.join(\"\")}]`, \"g\"), this._getDigitIndex))\n : numberString;\n this.localize = (numberString) => this._numberFormatOptions\n ? sanitizeExponentialNumberString(numberString, (nonExpoNumString) => isValidNumber(nonExpoNumString.trim())\n ? new BigDecimal(nonExpoNumString.trim())\n .format(this)\n .replace(new RegExp(`[${this._actualGroup}]`, \"g\"), this._group)\n : nonExpoNumString)\n : numberString;\n }\n get group() {\n return this._group;\n }\n get decimal() {\n return this._decimal;\n }\n get minusSign() {\n return this._minusSign;\n }\n get digits() {\n return this._digits;\n }\n get numberFormatter() {\n return this._numberFormatter;\n }\n get numberFormatOptions() {\n return this._numberFormatOptions;\n }\n /**\n * numberFormatOptions needs to be set before localize/delocalize is called to ensure the options are up to date\n */\n set numberFormatOptions(options) {\n options.locale = getSupportedLocale(options?.locale);\n options.numberingSystem = getSupportedNumberingSystem(options?.numberingSystem);\n if (\n // No need to create the formatter if `locale` and `numberingSystem`\n // are the default values and `numberFormatOptions` has not been set\n (!this._numberFormatOptions &&\n options.locale === defaultLocale &&\n options.numberingSystem === defaultNumberingSystem &&\n // don't skip initialization if any options besides locale/numberingSystem are set\n Object.keys(options).length === 2) ||\n // cache formatter by only recreating when options change\n JSON.stringify(this._numberFormatOptions) === JSON.stringify(options)) {\n return;\n }\n this._numberFormatOptions = options;\n this._numberFormatter = new Intl.NumberFormat(this._numberFormatOptions.locale, this._numberFormatOptions);\n this._digits = [\n ...new Intl.NumberFormat(this._numberFormatOptions.locale, {\n useGrouping: false,\n numberingSystem: this._numberFormatOptions.numberingSystem\n }).format(9876543210)\n ].reverse();\n const index = new Map(this._digits.map((d, i) => [d, i]));\n const parts = new Intl.NumberFormat(this._numberFormatOptions.locale).formatToParts(-12345678.9);\n this._actualGroup = parts.find((d) => d.type === \"group\").value;\n // change whitespace group characters that don't render correctly\n this._group = this._actualGroup.trim().length === 0 ? \" \" : this._actualGroup;\n this._decimal = parts.find((d) => d.type === \"decimal\").value;\n this._minusSign = parts.find((d) => d.type === \"minusSign\").value;\n this._getDigitIndex = (d) => index.get(d);\n }\n}\nconst numberStringFormatter = new NumberStringFormat();\n\nexport { defaultNumberingSystem as a, getSupportedNumberingSystem as b, connectLocalized as c, disconnectLocalized as d, getSupportedLocale as g, isValidNumber as i, numberStringFormatter as n, parseNumberString as p, sanitizeNumberString as s };\n","/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n * v1.0.8-next.4\n */\nimport { Build } from '@stencil/core/internal/client/index.js';\n\n/**\n * This utility ensures observers are created only for browser contexts.\n *\n * @param type - the type of observer to create\n * @param callback - the observer callback\n * @param options - the observer options\n */\nfunction createObserver(type, callback, options) {\n if (!Build.isBrowser) {\n return undefined;\n }\n const Observer = getObserver(type);\n return new Observer(callback, options);\n}\nfunction getObserver(type) {\n // based on https://github.com/whatwg/dom/issues/126#issuecomment-1049814948\n class ExtendedMutationObserver extends window.MutationObserver {\n constructor(callback) {\n super(callback);\n this.observedEntry = [];\n this.callback = callback;\n }\n observe(target, options) {\n this.observedEntry.push({ target, options });\n return super.observe(target, options);\n }\n unobserve(target) {\n const newObservedEntries = this.observedEntry.filter((observed) => observed.target !== target);\n this.observedEntry = [];\n this.callback(super.takeRecords(), this);\n this.disconnect();\n newObservedEntries.forEach((observed) => this.observe(observed.target, observed.options));\n }\n }\n return (function () {\n return (type === \"intersection\"\n ? window.IntersectionObserver\n : type === \"mutation\"\n ? ExtendedMutationObserver\n : window.ResizeObserver);\n })();\n}\n\nexport { createObserver as c };\n","/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n * v1.0.8-next.4\n */\nimport { getAssetPath } from '@stencil/core/internal/client/index.js';\nimport { g as getSupportedLocale } from './locale.js';\n\nconst componentLangToMessageBundleCache = {};\nasync function getMessageBundle(lang, component) {\n const key = `${component}_${lang}`;\n if (componentLangToMessageBundleCache[key]) {\n return componentLangToMessageBundleCache[key];\n }\n componentLangToMessageBundleCache[key] = fetch(getAssetPath(`./assets/${component}/t9n/messages_${lang}.json`))\n .then((resp) => {\n if (!resp.ok) {\n throwMessageFetchError();\n }\n return resp.json();\n })\n .catch(() => throwMessageFetchError());\n return componentLangToMessageBundleCache[key];\n}\nfunction throwMessageFetchError() {\n throw new Error(\"could not fetch component message bundle\");\n}\nfunction mergeMessages(component) {\n component.messages = {\n ...component.defaultMessages,\n ...component.messageOverrides\n };\n}\n/**\n * This utility sets up the messages used by the component. It should be awaited in the `componentWillLoad` lifecycle hook.\n *\n * @param component\n */\nasync function setUpMessages(component) {\n component.defaultMessages = await fetchMessages(component, component.effectiveLocale);\n mergeMessages(component);\n}\nasync function fetchMessages(component, lang) {\n const { el } = component;\n const tag = el.tagName.toLowerCase();\n const componentName = tag.replace(\"calcite-\", \"\");\n return getMessageBundle(getSupportedLocale(lang, \"t9n\"), componentName);\n}\n/**\n * This utility must be set up for the component to update its default message bundle if the locale changes.\n *\n * It can be set up in **either** of the following ways:\n *\n * 1. called from `LocalizedComponent`'s `onLocaleChange` method or\n * 2. called from a watcher configured to watch `LocalizedComponent`'s `effectiveLocale` prop\n *\n * @param component\n * @param lang\n */\nasync function updateMessages(component, lang) {\n component.defaultMessages = await fetchMessages(component, lang);\n mergeMessages(component);\n}\n/**\n * This utility sets up internals for messages support.\n *\n * It needs to be called in `connectedCallback`\n *\n * **Note**: this must be called after `LocalizedComponent`'s `connectLocalized` method.\n *\n * @param component\n */\nfunction connectMessages(component) {\n component.onMessagesChange = defaultOnMessagesChange;\n}\n/**\n * This utility tears down internals for messages support.\n *\n * It needs to be called in `disconnectedCallback`\n *\n * @param component\n */\nfunction disconnectMessages(component) {\n component.onMessagesChange = undefined;\n}\nfunction defaultOnMessagesChange() {\n mergeMessages(this);\n}\n\nexport { connectMessages as c, disconnectMessages as d, setUpMessages as s, updateMessages as u };\n"],"names":["guid","map","count","out","i","Math","random","toString","substring","join","isActivationKey","key","numberKeys","Loader","proxyCustomElement","HTMLElement","constructor","super","this","__registerHost","__attachShadow","inline","label","undefined","scale","type","value","text","render","el","id","size","getInlineSize","getSize","radius","viewbox","isDeterminate","circumference","PI","progress","remaining","valueNow","floor","hostAttributes","complete","svgAttributes","r","cx","cy","determinateStyle","h","Host","role","class","viewBox","style","s","m","l","defineCustomElement","customElements","forEach","tagName","get","define","defaultMinusSignRegex","RegExp","unnecessaryDecimalRegex","BigDecimal","input","add","num","fromBigInt","subtract","multiply","_divRound","SHIFT","divide","integers","decimals","String","split","concat","BigInt","padEnd","DECIMALS","slice","ROUNDED","isNegative","charAt","getIntegersAndDecimals","replace","padStart","length","formatToParts","formatter","parts","numberFormatter","unshift","minusSign","push","decimal","char","format","Number","isValidNumber","numberString","isNaN","parseNumberString","string","number","includes","sanitizeExponentialNumberString","nonExpoNumString","containsDecimal","result","filter","match","reduce","part","repeat","dividend","divisor","bigint","Object","assign","create","prototype","allLeadingZerosOptionallyNegative","decimalOnlyAtEndOfString","allHyphensExceptTheStart","isNegativeDecimalOnlyZeros","sanitizeNumberString","sanitizedValue","test","func","firstE","toLowerCase","indexOf","section","defaultLocale","t9nLocales","locales","numberingSystems","isNumberingSystemSupported","numberingSystem","browserNumberingSystem","Intl","NumberFormat","resolvedOptions","defaultNumberingSystem","getSupportedLocale","locale","context","contextualLocales","_match","language","region","toUpperCase","console","warn","connectedComponents","Set","connectLocalized","component","effectiveLocale","lang","closestElementCrossShadowBoundary","document","documentElement","getLocale","updateEffectiveLocale","mutationObserver","observe","attributes","attributeFilter","subtree","disconnectLocalized","delete","disconnect","createObserver","records","record","target","containsCrossShadowBoundary","closestLangEl","closestLang","hasAttribute","numberStringFormatter","delocalize","_numberFormatOptions","trim","_minusSign","_group","_decimal","_digits","_getDigitIndex","localize","_actualGroup","group","digits","_numberFormatter","numberFormatOptions","options","keys","JSON","stringify","useGrouping","reverse","index","Map","d","find","callback","Build","Observer","ExtendedMutationObserver","window","MutationObserver","observedEntry","unobserve","newObservedEntries","observed","takeRecords","IntersectionObserver","ResizeObserver","getObserver","componentLangToMessageBundleCache","throwMessageFetchError","Error","mergeMessages","messages","defaultMessages","messageOverrides","async","setUpMessages","fetchMessages","componentName","fetch","getAssetPath","then","resp","ok","json","catch","getMessageBundle","updateMessages","connectMessages","onMessagesChange","defaultOnMessagesChange","disconnectMessages"],"sourceRoot":""}